Oscar Plaisant 871cbb94b4 update
2024-03-27 15:59:45 +01:00

647 lines
1.2 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";const $e=require("obsidian"),zn=require("electron"),Z4=require("@codemirror/view");function C2(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const J4={},e3={},t3={},n3={},E2={"Search with":" Search with ","or enter address":" or enter address","Default Search Engine":"Default Search Engine","Set Custom Search Engine Url":"Set Custom Search Engine Url","Set custom search engine url for yourself. 'Duckduckgo' By default":"Set custom search engine url for yourself. 'Duckduckgo' By default","Custom Link to Highlight Format":"Custom Link to Highlight Format","Copy Link to Highlight Format":"Copy Link to Highlight Format","Set copy link to text fragment format. [{CONTENT}]({URL}) By default. You can also set {TIME:YYYY-MM-DD HH:mm:ss} to get the current date.":"Set copy link to text fragment format. [{CONTENT}]({URL}) By default. You can also set {TIME:YYYY-MM-DD HH:mm:ss} to get the current date.","Open URL In Same Tab":"Open In Same Tab",Custom:"Custom",Baidu:"Baidu",Yahoo:"Yahoo",Bing:"Bing",Google:"Google",DuckDuckGo:"DuckDuckGo","Toggle Same Tab In Web Browser":"Toggle Same Tab In Web Browser","Clear Current Page History":"Clear Current Page History","Open Current URL In External Browser":"Open Current URL In External Browser","Search Text":"Search Text","Copy Plain Text":"Copy Plain Text","Copy Link to Highlight":"Copy Link to Highlight","Copy Video Timestamp":"Copy Video Time","Open URL In Obsidian Web From Other Software":"Open URL In Obsidian Web From Other Software","(Reload to take effect)":"(Reload to take effect)","Copy BookmarkLets Success":"Copy BookmarkLets Success","Refresh Current Page":"Refresh Current Page","Show Search Bar In Empty Page":"Show Search Bar In Empty Page","You enabled obsidian-web-browser plugin, please disable it/disable surfing to avoid conflict.":"You enabled obsidian-web-browser plugin, please disable it/disable Surfing to avoid conflict.","You didn't enable show tab title bar in apperance settings, please enable it to use surfing happily.":"You didn't enable show tab header in apperance settings, please enable it to use Surfing happily.","Get Current Timestamp from Web Browser":"Get Current Timestamp from Web Browser","Search In Current Page Title Bar":"Search In Current Page Title Bar"," <- Drag or click on me":" <- Drag or click on me",Name:"Name",Url:"Url","Custom Search":"Custom Search","Delete Custom Search":"Delete Custom Search","Add new custom search engine":"Add new custom search engine","Search all settings":"Search all settings",General:"General",Search:"Search",Bookmark:"Bookmark",Theme:"Theme","Always Show Custom Engines":"Always Show Custom Engines","Save Current Page As Markdown":"Save Current Page As Markdown","Save As Markdown Path":"Save As Markdown Path","Path like /_Tempcard":"Path like /_Tempcard","Search Engine":"Search Engine",settings:"settings","Using ":"Using "," to search":" to search","Surfing Iframe":"Surfing Iframe","Surfing is using iframe to prevent crashed when loading some websites.":"Surfing is using iframe to prevent crashed when loading some websites.","Open With External Browser":"Open With External Browser","Open With Surfing":"Open With Surfing","When click on the URL from same domain name in the note, jump to the same surfing view rather than opening a new Surfing view.":"When click on the URL from same domain name in the note, jump to the same surfing view rather than opening a new Surfing view.","Jump to Opened Page":"Jump to Opened Page","Open Quick Switcher":"Open Quick Switcher | Ctrl/CMD+O","Close Current Leaf":"Close Current Leaf | Ctrl/CMD+W","Create A New Note":"Create A New Note | Ctrl/CMD+N","Show Other Search Engines When Searching":"Show Other Search Engines When Searching","Random Icons From Default Art":"Random Icons From Default Art","Working On, Not Available Now":"Working On, Not Available Now","Toggle Dark Mode":"Toggle Dark Mode","[Experimental] Replace Iframe In Canvas":"[Experimental] Replace Iframe In Canvas","Use icon list to replace defult text actions in empty view":"Use icon list to replace defult text actions in empty view","Open BookmarkBar & Bookmark Manager":"Open BookmarkBar & Bookmark Manager",Pagination:"Pagination",Category:"Category","Default Column List":"Default Column List","Show Refresh Button Near Search Bar":"Show Refresh Button Near Search Bar","Focus On Current Search Bar":"Focus On Current Search Bar","Default Category Filter Type":"Default Filter Type",Tree:"Tree",Menu:"Menu",Description:"Description",Tags:"Tags",Created:"Created",Modified:"Modified",Action:"Action","Search from ":"Search from "," bookmarks":" bookmarks","Save Bookmark When Open URI":"Save Bookmark When Open URI","Copy Current Viewport As Image":"Copy Current Viewport As Image",Back:"Back",Forward:"Forward",star:"star","Copy failed, you may focus on surfing view, click the title bar, and try again.":"Copy failed, you may focus on surfing view, click the title bar, and try again.","Default Category (Use , to split)":"Default Category (Use , to split)","Send to ReadWise":"Send to ReadWise","Add a action in page haader to Send to ReadWise.":"Add a action in page haader to Send to ReadWise.","Disable / to search when on these sites":"Disable / to search when on these sites","Hover Popover":"Hover Popover","Show a popover when hover on the link.":"Show a popover when hover on the link.","Enable HTML Preview":"Enable HTML Preview","Enable HTML Preview in Surfing":"Enable HTML Preview in Surfing"},r3={},o3={},i3={},a3={},s3={},l3={},c3={},u3={},d3={},f3={},p3={},v3={},h3={},g3={},m3={},b3={},y3={"Search with":"使用 ","or enter address":" 搜索,或输入地址","Default Search Engine":"默认搜索引擎","Set Custom Search Engine Url":"设置自定义搜索引擎网址","Set custom search engine url for yourself. 'Duckduckgo' By default":"设置自定义搜索引擎网址。默认为'Duckduckgo'","Custom Link to Highlight Format":"自定义指向突出显示的链接的格式","Copy Link to Highlight Format":"复制指向突出显示的链接的格式","Set copy link to text fragment format. [{CONTENT}]({URL}) By default. You can also set {TIME:YYYY-MM-DD HH:mm:ss} to get the current date.":"设置复制文本片段的链接的格式。默认为[{CONTENT}]({URL})。你也可以设置{TIME:YYYY-MM-DD HH:mm:ss}来获取当前日期时间。","Open URL In Same Tab":"在固定且唯一标签页中打开网页",Custom:"自定义",Baidu:"百度",Yahoo:"雅虎",Bing:"必应",Google:"谷歌",DuckDuckGo:"DuckDuckGo","Toggle Same Tab In Web Browser":"切换是否在固定且唯一标签页访问网址","Clear Current Page History":"清除当前页面的历史记录","Open Current URL In External Browser":"在外部浏览器中打开当前网址","Search Text":"搜索文本","Copy Plain Text":"复制纯文本","Copy Link to Highlight":"复制指向突出显示的链接","Copy Video Timestamp":"复制视频时间戳","Open URL In Obsidian Web From Other Software":"从别的软件在 Obsidian Web 中打开网址","(Reload to take effect)":"(重启 Ob 以生效)","Copy BookmarkLets Success":"复制 BookmarkLets 成功","Refresh Current Page":"刷新当前页面","Show Search Bar In Empty Page":"在空白页面中显示搜索栏","You enabled obsidian-web-browser plugin, please disable it/disable surfing to avoid conflict.":"你启用了 obsidian-web-browser 插件,请禁用它或禁用 surfing 插件以避免冲突。","You didn't enable show tab title bar in apperance settings, please enable it to use surfing happily.":"你没有在外观设置中启用显示标签页标题,请启用它以便使用 surfing。","Get Current Timestamp from Web Browser":"从浏览器获取当前时间戳","Search In Current Page Title Bar":"在当前页面标题栏中搜索"," <- Drag or click on me":" <- 拖动或点击",Name:"名称",Url:"链接","Custom Search":"自定义搜索","Delete Custom Search":"删除自定义","Add new custom search engine":"添加新的自定义搜索引擎","Search all settings":"搜索设置",General:"常规选项",Search:"搜索选项",Theme:"主题选项",Bookmark:"书签选项","Always Show Custom Engines":"始终显示自定义引擎","Save Current Page As Markdown":"保存当前网页为 Markdown","Save As Markdown Path":"保存为 Markdown 路径","Path like /_Tempcard":"路径例如 /_Tempcard","Search Engine":"搜索引擎",settings:"设置","Using ":"使用"," to search":"来检索","Surfing Iframe":"Surfing Iframe","Surfing is using iframe to prevent crashed when loading some websites.":"Surfing 使用 iframe 来防止加载某些网站时崩溃。","Open With External Browser":"在外部浏览器中打开","Open With Surfing":"在 Surfing 中打开","When click on the URL from same domain name in the note, jump to the same surfing view rather than opening a new Surfing view.":"当在笔记中点击相同域名的 URL 时,跳转到相同的 Surfing 视图而不是打开新的 Surfing 视图。","Jump to Opened Page":"跳转到已打开的页面","Open Quick Switcher":"打开快速切换 | Ctrl/CMD+O","Close Current Leaf":"关闭当前的页面 | Ctrl/CMD+W","Create A New Note":"新建笔记 | Ctrl/CMD+N","Show Other Search Engines When Searching":"搜索时显示其它搜索引擎","Random Icons From Default Art":"从默认的 Art 中挑选随机 Icon","Working On, Not Available Now":"正在建设中,当前不可用","Toggle Dark Mode":"切换夜间模式","[Experimental] Replace Iframe In Canvas":"【实验性功能】在 Canvas 中替换网页节点","Use icon list to replace defult text actions in empty view":"使用图标列替换空页面中的默认文本操作","Open BookmarkBar & Bookmark Manager":"打开书签栏和书签管理器",Pagination:"分页书签数",Category:"分类","Default Column List":"默认的列","Show Refresh Button Near Search Bar":"在搜索栏旁边显示刷新按钮","Focus On Current Search Bar":"聚焦到当前的搜索栏","Default Category Filter Type":"默认目录过滤形式",Tree:"树状",Menu:"菜单",Description:"描述",Tags:"标签",Created:"创建时间",Modified:"修改时间",Action:"操作","Search from ":"从"," bookmarks":"个书签中搜索","Save Bookmark When Open URI":"打开 URI 时保存书签","Copy Current Viewport As Image":"复制当前页面为图片",Back:"返回",Forward:"前进",star:"星标","Copy failed, you may focus on surfing view, click the title bar, and try again.":"复制失败,你可能聚焦到了 Surfing 视图,点击标题栏,然后再试一次。","Default Category (Use , to split)":"默认分类 (用,分层)","Send to ReadWise":"发送到 ReadWise","Add a action in page haader to Send to ReadWise.":"在页面标题栏中添加一个动作来发送到 ReadWise。","Disable / to search when on these sites":"当在这些网站中禁止按 / 来搜索的功能","Show a popover when hover on the link.":"当鼠标悬停在链接上时显示一个弹出窗口。","Hover Popover":"悬停弹出窗口"},w3={},x3={ar:J4,cs:e3,da:t3,de:n3,en:E2,"en-gb":r3,es:o3,fr:i3,hi:a3,id:s3,it:l3,ja:c3,ko:u3,nl:d3,nn:f3,pl:p3,pt:v3,"pt-br":h3,ro:g3,ru:m3,tr:b3,"zh-cn":y3,"zh-tw":w3},ES=x3[$e.moment.locale()];function Ne(e){return ES&&ES[e]||E2[e]}var Xr="top",Mo="bottom",No="right",Gr="left",iy="auto",ad=[Xr,Mo,No,Gr],Al="start",ju="end",S3="clippingParents",k2="viewport",Uc="popper",C3="reference",kS=ad.reduce(function(e,t){return e.concat([t+"-"+Al,t+"-"+ju])},[]),O2=[].concat(ad,[iy]).reduce(function(e,t){return e.concat([t,t+"-"+Al,t+"-"+ju])},[]),E3="beforeRead",k3="read",O3="afterRead",$3="beforeMain",I3="main",T3="afterMain",P3="beforeWrite",M3="write",N3="afterWrite",R3=[E3,k3,O3,$3,I3,T3,P3,M3,N3];function Ci(e){return e?(e.nodeName||"").toLowerCase():null}function fo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Cs(e){var t=fo(e).Element;return e instanceof t||e instanceof Element}function Po(e){var t=fo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ay(e){if(typeof ShadowRoot>"u")return!1;var t=fo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function D3(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Po(i)||!Ci(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function j3(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(c,f){return c[f]="",c},{});!Po(o)||!Ci(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const L3={name:"applyStyles",enabled:!0,phase:"write",fn:D3,effect:j3,requires:["computeStyles"]};function mi(e){return e.split("-")[0]}var bs=Math.max,Dp=Math.min,zl=Math.round;function d0(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function $2(){return!/^((?!chrome|android).)*safari/i.test(d0())}function Fl(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Po(e)&&(o=e.offsetWidth>0&&zl(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&zl(r.height)/e.offsetHeight||1);var a=Cs(e)?fo(e):window,s=a.visualViewport,c=!$2()&&n,f=(r.left+(c&&s?s.offsetLeft:0))/o,p=(r.top+(c&&s?s.offsetTop:0))/i,v=r.width/o,g=r.height/i;return{width:v,height:g,top:p,right:f+v,bottom:p+g,left:f,x:f,y:p}}function sy(e){var t=Fl(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function I2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ay(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _i(e){return fo(e).getComputedStyle(e)}function B3(e){return["table","td","th"].indexOf(Ci(e))>=0}function _a(e){return((Cs(e)?e.ownerDocument:e.document)||window.document).documentElement}function bv(e){return Ci(e)==="html"?e:e.assignedSlot||e.parentNode||(ay(e)?e.host:null)||_a(e)}function OS(e){return!Po(e)||_i(e).position==="fixed"?null:e.offsetParent}function A3(e){var t=/firefox/i.test(d0()),n=/Trident/i.test(d0());if(n&&Po(e)){var r=_i(e);if(r.position==="fixed")return null}var o=bv(e);for(ay(o)&&(o=o.host);Po(o)&&["html","body"].indexOf(Ci(o))<0;){var i=_i(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function sd(e){for(var t=fo(e),n=OS(e);n&&B3(n)&&_i(n).position==="static";)n=OS(n);return n&&(Ci(n)==="html"||Ci(n)==="body"&&_i(n).position==="static")?t:n||A3(e)||t}function ly(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pu(e,t,n){return bs(e,Dp(t,n))}function z3(e,t,n){var r=pu(e,t,n);return r>n?n:r}function T2(){return{top:0,right:0,bottom:0,left:0}}function P2(e){return Object.assign({},T2(),e)}function M2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var F3=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,P2(typeof t!="number"?t:M2(t,ad))};function H3(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=mi(n.placement),c=ly(s),f=[Gr,No].indexOf(s)>=0,p=f?"height":"width";if(!(!i||!a)){var v=F3(o.padding,n),g=sy(i),m=c==="y"?Xr:Gr,y=c==="y"?Mo:No,b=n.rects.reference[p]+n.rects.reference[c]-a[c]-n.rects.popper[p],w=a[c]-n.rects.reference[c],S=sd(i),C=S?c==="y"?S.clientHeight||0:S.clientWidth||0:0,E=b/2-w/2,k=v[m],I=C-g[p]-v[y],$=C/2-g[p]/2+E,T=pu(k,$,I),N=c;n.modifiersData[r]=(t={},t[N]=T,t.centerOffset=T-$,t)}}function _3(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||I2(t.elements.popper,o)&&(t.elements.arrow=o))}const V3={name:"arrow",enabled:!0,phase:"main",fn:H3,effect:_3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Hl(e){return e.split("-")[1]}var W3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function U3(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:zl(n*o)/o||0,y:zl(r*o)/o||0}}function $S(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,v=e.isFixed,g=a.x,m=g===void 0?0:g,y=a.y,b=y===void 0?0:y,w=typeof p=="function"?p({x:m,y:b}):{x:m,y:b};m=w.x,b=w.y;var S=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),E=Gr,k=Xr,I=window;if(f){var $=sd(n),T="clientHeight",N="clientWidth";if($===fo(n)&&($=_a(n),_i($).position!=="static"&&s==="absolute"&&(T="scrollHeight",N="scrollWidth")),o===Xr||(o===Gr||o===No)&&i===ju){k=Mo;var P=v&&$===I&&I.visualViewport?I.visualViewport.height:$[T];b-=P-r.height,b*=c?1:-1}if(o===Gr||(o===Xr||o===Mo)&&i===ju){E=No;var D=v&&$===I&&I.visualViewport?I.visualViewport.width:$[N];m-=D-r.width,m*=c?1:-1}}var j=Object.assign({position:s},f&&W3),F=p===!0?U3({x:m,y:b},fo(n)):{x:m,y:b};if(m=F.x,b=F.y,c){var z;return Object.assign({},j,(z={},z[k]=C?"0":"",z[E]=S?"0":"",z.transform=(I.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",z))}return Object.assign({},j,(t={},t[k]=C?b+"px":"",t[E]=S?m+"px":"",t.transform="",t))}function K3(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,c=s===void 0?!0:s,f={placement:mi(t.placement),variation:Hl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,$S(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,$S(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const q3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:K3,data:{}};var Mf={passive:!0};function X3(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,c=fo(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(p){p.addEventListener("scroll",n.update,Mf)}),s&&c.addEventListener("resize",n.update,Mf),function(){i&&f.forEach(function(p){p.removeEventListener("scroll",n.update,Mf)}),s&&c.removeEventListener("resize",n.update,Mf)}}const G3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:X3,data:{}};var Y3={left:"right",right:"left",bottom:"top",top:"bottom"};function vp(e){return e.replace(/left|right|bottom|top/g,function(t){return Y3[t]})}var Q3={start:"end",end:"start"};function IS(e){return e.replace(/start|end/g,function(t){return Q3[t]})}function cy(e){var t=fo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function uy(e){return Fl(_a(e)).left+cy(e).scrollLeft}function Z3(e,t){var n=fo(e),r=_a(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var f=$2();(f||!f&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+uy(e),y:c}}function J3(e){var t,n=_a(e),r=cy(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=bs(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=bs(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+uy(e),c=-r.scrollTop;return _i(o||n).direction==="rtl"&&(s+=bs(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}function dy(e){var t=_i(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function N2(e){return["html","body","#document"].indexOf(Ci(e))>=0?e.ownerDocument.body:Po(e)&&dy(e)?e:N2(bv(e))}function vu(e,t){var n;t===void 0&&(t=[]);var r=N2(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=fo(r),a=o?[i].concat(i.visualViewport||[],dy(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(vu(bv(a)))}function f0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ej(e,t){var n=Fl(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function TS(e,t,n){return t===k2?f0(Z3(e,n)):Cs(t)?ej(t,n):f0(J3(_a(e)))}function tj(e){var t=vu(bv(e)),n=["absolute","fixed"].indexOf(_i(e).position)>=0,r=n&&Po(e)?sd(e):e;return Cs(r)?t.filter(function(o){return Cs(o)&&I2(o,r)&&Ci(o)!=="body"}):[]}function nj(e,t,n,r){var o=t==="clippingParents"?tj(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(c,f){var p=TS(e,f,r);return c.top=bs(p.top,c.top),c.right=Dp(p.right,c.right),c.bottom=Dp(p.bottom,c.bottom),c.left=bs(p.left,c.left),c},TS(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function R2(e){var t=e.reference,n=e.element,r=e.placement,o=r?mi(r):null,i=r?Hl(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(o){case Xr:c={x:a,y:t.y-n.height};break;case Mo:c={x:a,y:t.y+t.height};break;case No:c={x:t.x+t.width,y:s};break;case Gr:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var f=o?ly(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(i){case Al:c[f]=c[f]-(t[p]/2-n[p]/2);break;case ju:c[f]=c[f]+(t[p]/2-n[p]/2);break}}return c}function Lu(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,c=s===void 0?S3:s,f=n.rootBoundary,p=f===void 0?k2:f,v=n.elementContext,g=v===void 0?Uc:v,m=n.altBoundary,y=m===void 0?!1:m,b=n.padding,w=b===void 0?0:b,S=P2(typeof w!="number"?w:M2(w,ad)),C=g===Uc?C3:Uc,E=e.rects.popper,k=e.elements[y?C:g],I=nj(Cs(k)?k:k.contextElement||_a(e.elements.popper),c,p,a),$=Fl(e.elements.reference),T=R2({reference:$,element:E,strategy:"absolute",placement:o}),N=f0(Object.assign({},E,T)),P=g===Uc?N:$,D={top:I.top-P.top+S.top,bottom:P.bottom-I.bottom+S.bottom,left:I.left-P.left+S.left,right:P.right-I.right+S.right},j=e.modifiersData.offset;if(g===Uc&&j){var F=j[o];Object.keys(D).forEach(function(z){var B=[No,Mo].indexOf(z)>=0?1:-1,_=[Xr,Mo].indexOf(z)>=0?"y":"x";D[z]+=F[_]*B})}return D}function rj(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?O2:c,p=Hl(r),v=p?s?kS:kS.filter(function(y){return Hl(y)===p}):ad,g=v.filter(function(y){return f.indexOf(y)>=0});g.length===0&&(g=v);var m=g.reduce(function(y,b){return y[b]=Lu(e,{placement:b,boundary:o,rootBoundary:i,padding:a})[mi(b)],y},{});return Object.keys(m).sort(function(y,b){return m[y]-m[b]})}function oj(e){if(mi(e)===iy)return[];var t=vp(e);return[IS(e),t,IS(t)]}function ij(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,c=n.fallbackPlacements,f=n.padding,p=n.boundary,v=n.rootBoundary,g=n.altBoundary,m=n.flipVariations,y=m===void 0?!0:m,b=n.allowedAutoPlacements,w=t.options.placement,S=mi(w),C=S===w,E=c||(C||!y?[vp(w)]:oj(w)),k=[w].concat(E).reduce(function(q,G){return q.concat(mi(G)===iy?rj(t,{placement:G,boundary:p,rootBoundary:v,padding:f,flipVariations:y,allowedAutoPlacements:b}):G)},[]),I=t.rects.reference,$=t.rects.popper,T=new Map,N=!0,P=k[0],D=0;D<k.length;D++){var j=k[D],F=mi(j),z=Hl(j)===Al,B=[Xr,Mo].indexOf(F)>=0,_=B?"width":"height",H=Lu(t,{placement:j,boundary:p,rootBoundary:v,altBoundary:g,padding:f}),L=B?z?No:Gr:z?Mo:Xr;I[_]>$[_]&&(L=vp(L));var A=vp(L),U=[];if(i&&U.push(H[F]<=0),s&&U.push(H[L]<=0,H[A]<=0),U.every(function(q){return q})){P=j,N=!1;break}T.set(j,U)}if(N)for(var R=y?3:1,V=function(G){var K=k.find(function(J){var oe=T.get(J);if(oe)return oe.slice(0,G).every(function(fe){return fe})});if(K)return P=K,"break"},Y=R;Y>0;Y--){var X=V(Y);if(X==="break")break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}}const aj={name:"flip",enabled:!0,phase:"main",fn:ij,requiresIfExists:["offset"],data:{_skip:!1}};function PS(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function MS(e){return[Xr,No,Mo,Gr].some(function(t){return e[t]>=0})}function sj(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Lu(t,{elementContext:"reference"}),s=Lu(t,{altBoundary:!0}),c=PS(a,r),f=PS(s,o,i),p=MS(c),v=MS(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":v})}const lj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sj};function cj(e,t,n){var r=mi(e),o=[Gr,Xr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Gr,No].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function uj(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=O2.reduce(function(p,v){return p[v]=cj(v,t.rects,i),p},{}),s=a[t.placement],c=s.x,f=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=a}const dj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:uj};function fj(e){var t=e.state,n=e.name;t.modifiersData[n]=R2({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const pj={name:"popperOffsets",enabled:!0,phase:"read",fn:fj,data:{}};function vj(e){return e==="x"?"y":"x"}function hj(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,v=n.padding,g=n.tether,m=g===void 0?!0:g,y=n.tetherOffset,b=y===void 0?0:y,w=Lu(t,{boundary:c,rootBoundary:f,padding:v,altBoundary:p}),S=mi(t.placement),C=Hl(t.placement),E=!C,k=ly(S),I=vj(k),$=t.modifiersData.popperOffsets,T=t.rects.reference,N=t.rects.popper,P=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,D=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if($){if(i){var z,B=k==="y"?Xr:Gr,_=k==="y"?Mo:No,H=k==="y"?"height":"width",L=$[k],A=L+w[B],U=L-w[_],R=m?-N[H]/2:0,V=C===Al?T[H]:N[H],Y=C===Al?-N[H]:-T[H],X=t.elements.arrow,q=m&&X?sy(X):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:T2(),K=G[B],J=G[_],oe=pu(0,T[H],q[H]),fe=E?T[H]/2-R-oe-K-D.mainAxis:V-oe-K-D.mainAxis,ce=E?-T[H]/2+R+oe+J+D.mainAxis:Y+oe+J+D.mainAxis,ee=t.elements.arrow&&sd(t.elements.arrow),ie=ee?k==="y"?ee.clientTop||0:ee.clientLeft||0:0,te=(z=j==null?void 0:j[k])!=null?z:0,re=L+fe-te-ie,le=L+ce-te,ge=pu(m?Dp(A,re):A,L,m?bs(U,le):U);$[k]=ge,F[k]=ge-L}if(s){var be,Se=k==="x"?Xr:Gr,pe=k==="x"?Mo:No,me=$[I],xe=I==="y"?"height":"width",Pe=me+w[Se],Ie=me-w[pe],De=[Xr,Gr].indexOf(S)!==-1,Be=(be=j==null?void 0:j[I])!=null?be:0,qe=De?Pe:me-T[xe]-N[xe]-Be+D.altAxis,lt=De?me+T[xe]+N[xe]-Be-D.altAxis:Ie,et=m&&De?z3(qe,me,lt):pu(m?qe:Pe,me,m?lt:Ie);$[I]=et,F[I]=et-me}t.modifiersData[r]=F}}const gj={name:"preventOverflow",enabled:!0,phase:"main",fn:hj,requiresIfExists:["offset"]};function mj(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bj(e){return e===fo(e)||!Po(e)?cy(e):mj(e)}function yj(e){var t=e.getBoundingClientRect(),n=zl(t.width)/e.offsetWidth||1,r=zl(t.height)/e.offsetHeight||1;return n!==1||r!==1}function wj(e,t,n){n===void 0&&(n=!1);var r=Po(t),o=Po(t)&&yj(t),i=_a(t),a=Fl(e,o,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Ci(t)!=="body"||dy(i))&&(s=bj(t)),Po(t)?(c=Fl(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=uy(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function xj(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function Sj(e){var t=xj(e);return R3.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Cj(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ej(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var NS={placement:"bottom",modifiers:[],strategy:"absolute"};function RS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function kj(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?NS:o;return function(s,c,f){f===void 0&&(f=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},NS,i),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},v=[],g=!1,m={state:p,setOptions:function(S){var C=typeof S=="function"?S(p.options):S;b(),p.options=Object.assign({},i,p.options,C),p.scrollParents={reference:Cs(s)?vu(s):s.contextElement?vu(s.contextElement):[],popper:vu(c)};var E=Sj(Ej([].concat(r,p.options.modifiers)));return p.orderedModifiers=E.filter(function(k){return k.enabled}),y(),m.update()},forceUpdate:function(){if(!g){var S=p.elements,C=S.reference,E=S.popper;if(RS(C,E)){p.rects={reference:wj(C,sd(E),p.options.strategy==="fixed"),popper:sy(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(D){return p.modifiersData[D.name]=Object.assign({},D.data)});for(var k=0;k<p.orderedModifiers.length;k++){if(p.reset===!0){p.reset=!1,k=-1;continue}var I=p.orderedModifiers[k],$=I.fn,T=I.options,N=T===void 0?{}:T,P=I.name;typeof $=="function"&&(p=$({state:p,options:N,name:P,instance:m})||p)}}}},update:Cj(function(){return new Promise(function(w){m.forceUpdate(),w(p)})}),destroy:function(){b(),g=!0}};if(!RS(s,c))return m;m.setOptions(f).then(function(w){!g&&f.onFirstUpdate&&f.onFirstUpdate(w)});function y(){p.orderedModifiers.forEach(function(w){var S=w.name,C=w.options,E=C===void 0?{}:C,k=w.effect;if(typeof k=="function"){var I=k({state:p,name:S,instance:m,options:E}),$=function(){};v.push(I||$)}})}function b(){v.forEach(function(w){return w()}),v=[]}return m}}var Oj=[G3,pj,q3,L3,dj,aj,gj,V3,lj],$j=kj({defaultModifiers:Oj});const Ij=`- Computer
- 算法
- 数据结构
- obsidian
- surfing
- dataview
`,Tj=["name","description","url","category","tags","created","modified","action"],$o={defaultSearchEngine:"duckduckgo",customSearchEngine:[{name:"duckduckgo",url:"https://duckduckgo.com/?q="}],hoverPopover:!0,ignoreList:["notion","craft"],alwaysShowCustomSearch:!1,showOtherSearchEngines:!1,showSearchBarInPage:!1,markdownPath:"/",customHighlightFormat:!1,highlightFormat:"[{CONTENT}]({URL})",highlightInSameTab:!1,openInSameTab:!1,showRefreshButton:!1,openInObsidianWeb:!1,useCustomIcons:!1,useWebview:!1,useIconList:!0,darkMode:!1,randomBackground:!1,lastOpenedFiles:!1,bookmarkManager:{openBookMark:!1,saveBookMark:!1,sendToReadWise:!1,pagination:"12",category:Ij,defaultCategory:"ROOT",defaultColumnList:Tj,defaultFilterType:"tree"},treeData:[],enableHtmlPreview:!0},bi=[{name:"Google",url:"https://www.google.com/search?q="},{name:"Bing",url:"https://www.bing.com/search?q="},{name:"Duckduckgo",url:"https://duckduckgo.com/?q="},{name:"Yahoo",url:"https://search.yahoo.com/search?p="},{name:"Baidu",url:"https://www.baidu.com/s?wd="},{name:"Yandex",url:"https://yandex.com/search/?text="},{name:"Wikipedia",url:"https://en.wikipedia.org/w/index.php?search="}],Pj={General:"chrome",Search:"search",Theme:"brush",Bookmark:"bookmark"};class Mj extends $e.PluginSettingTab{constructor(t,n){super(t,n),this.applyDebounceTimer=0,this.tabContent=new Map,this.selectedTab="General",this.searchSettingInfo=new Map,this.plugin=n}applySettingsUpdate(){clearTimeout(this.applyDebounceTimer);const t=this.plugin;this.applyDebounceTimer=window.setTimeout(()=>{t.saveSettings()},100)}display(){const{containerEl:t}=this;t.empty(),this.generateSettingsTitle(),this.addTabHeader()}generateSettingsTitle(){const t=this.containerEl.createDiv("wb-setting-title");t.createEl("h2",{text:"Web Browser"}),this.generateSearchBar(t)}addTabHeader(){const t=this.containerEl.createEl("nav",{cls:"wb-setting-header"});this.navigateEl=t.createDiv("wb-setting-tab-group");const n=this.containerEl.createDiv("wb-setting-content");this.createTabAndContent("General",this.navigateEl,n,(r,o)=>this.generateGeneralSettings(o,r)),this.createTabAndContent("Search",this.navigateEl,n,(r,o)=>this.generateSearchSettings(o,r)),this.createTabAndContent("Theme",this.navigateEl,n,(r,o)=>this.generateThemeSettings(o,r)),this.createTabAndContent("Bookmark",this.navigateEl,n,(r,o)=>this.generateBookmarkManagerSettings(o,r)),this.createSearchZeroState(n)}generateSearchBar(t){const n=new $e.Setting(t);n.settingEl.style.border="none",n.addSearch(r=>{this.search=r}),this.search.setPlaceholder(Ne("Search all settings")),this.search.inputEl.oninput=()=>{for(const r of this.tabContent){const o=r[1];o.navButton.removeClass("wb-navigation-item-selected"),o.content.show(),o.heading.show();const i=this.search.getValue();this.selectedTab==""&&i.trim()!=""&&this.searchSettings(i.toLowerCase()),this.selectedTab=""}this.navigateEl.addClass("wb-setting-searching")},this.search.inputEl.onblur=()=>{this.navigateEl.removeClass("wb-setting-searching")},this.search.onChange(r=>{r===""&&this.navigateEl.children[0].dispatchEvent(new PointerEvent("click")),this.searchSettings(r.toLowerCase())})}createTabAndContent(t,n,r,o){const i=this.selectedTab===t,a=n.createDiv("wb-navigation-item");a.addClass("wb-desktop"),$e.setIcon(a.createEl("div",{cls:"wb-navigation-item-icon"}),Pj[t]),a.createSpan().setText(Ne(t)),a.onclick=()=>{if(this.selectedTab==t)return;a.addClass("wb-navigation-item-selected");const p=this.tabContent.get(t);if((p==null?void 0:p.content).show(),this.selectedTab!=""){const v=this.tabContent.get(this.selectedTab);v==null||v.navButton.removeClass("wb-navigation-item-selected"),(v==null?void 0:v.content).hide()}else{this.searchZeroState.hide();for(const v of this.searchSettingInfo)for(const g of v[1])g.containerEl.show();for(const v of this.tabContent){const g=v[1];g.heading.hide(),t!==v[0]&&g.content.hide()}}this.selectedTab=t};const c=r.createDiv("wb-tab-settings"),f=c.createEl("h2",{cls:"wb-setting-heading",text:t+" Settings"});f.hide(),c.id=t.toLowerCase().replace(" ","-"),i?a.addClass("wb-navigation-item-selected"):c.hide(),o&&o(c,t),this.tabContent.set(t,{content:c,heading:f,navButton:a})}searchSettings(t){var o;const n=new Set,r=(i,a)=>{i.show(),n.has(a)||n.add(a)};for(const i of this.searchSettingInfo){const a=i[0],s=i[1];for(const c of s)if(t.trim()===""||(o=c.alias)!=null&&o.includes(t)||c.description.includes(t)||c.name.includes(t))r(c.containerEl,a);else if(c.options)for(const f of c.options){if(f.description.toLowerCase().includes(t)||f.name.toLowerCase().includes(t)){r(c.containerEl,a);break}else if(f.options){for(const p of f.options)if(p.description.toLowerCase().includes(t)||p.value.toLowerCase().includes(t)){r(c.containerEl,a);break}}c.containerEl.hide()}else c.containerEl.hide()}for(const i of this.tabContent)n.has(i[0])?i[1].heading.show():i[1].heading.hide();n.size===0?this.searchZeroState.show():this.searchZeroState.hide()}generateGeneralSettings(t,n){this.addOpenInSameTab(t,n),this.addHoverPopover(t,n),this.addEnableHTMLPreview(t,n),this.addRefreshButton(t,n),this.addHighlightFormat(t,n),this.addMarkdownPath(t,n),this.addReplaceIframeInCanvas(t,n),this.addOpenInObsidianWeb(t,n),this.addAboutInfo(t,n)}generateSearchSettings(t,n){this.addInpageSearch(t,n),this.addSearchEngine(t,n)}generateThemeSettings(t,n){this.useIconList(t,n),this.addDarkMode(t,n),this.addRandomBackground(t,n),this.addMyIcons(t,n)}generateBookmarkManagerSettings(t,n){this.addBookmarkManagerSettings(t,n)}addSettingToMasterSettingsList(t,n,r="",o="",i=null,a=null){var c;const s={containerEl:n,name:r.toLowerCase(),description:o.toLowerCase(),options:i,alias:a};this.searchSettingInfo.has(t)?(c=this.searchSettingInfo.get(t))==null||c.push(s):this.searchSettingInfo.set(t,[s])}createSearchZeroState(t){this.searchZeroState=t.createDiv(),this.searchZeroState.hide(),this.searchZeroState.createEl($e.Platform.isMobile?"h3":"h2",{text:"No settings match search"}).style.textAlign="center"}addRefreshButton(t,n){const r=Ne("Show Refresh Button Near Search Bar"),o=new $e.Setting(n).setName(r).addToggle(i=>{i.setValue(this.plugin.settings.showRefreshButton).onChange(async a=>{this.plugin.settings.showRefreshButton=a,this.applySettingsUpdate()})});this.addSettingToMasterSettingsList(t,o.settingEl,r)}addInpageSearch(t,n){let r=Ne("Show Search Bar In Empty Page"),o=new $e.Setting(n).setName(r).addToggle(i=>{i.setValue(this.plugin.settings.showSearchBarInPage).onChange(async a=>{this.plugin.settings.showSearchBarInPage=a,this.applySettingsUpdate(),setTimeout(()=>{this.display()},200)})});this.addSettingToMasterSettingsList(t,o.settingEl,r),this.plugin.settings.showSearchBarInPage&&(r="Show last opened files",o=new $e.Setting(n).setName(r).addToggle(i=>{i.setValue(this.plugin.settings.lastOpenedFiles).onChange(async a=>{this.plugin.settings.lastOpenedFiles=a,this.applySettingsUpdate()})}),this.addSettingToMasterSettingsList(t,o.settingEl,r))}addSearchEngine(t,n){let r=Ne("Default Search Engine"),o=new $e.Setting(n).setName(r).addDropdown(async i=>{const a=i.addOption("duckduckgo",Ne("DuckDuckGo")).addOption("google",Ne("Google")).addOption("bing",Ne("Bing")).addOption("yahoo",Ne("Yahoo")).addOption("baidu",Ne("Baidu"));this.plugin.settings.customSearchEngine.forEach((s,c)=>{a.addOption(s.name,s.name)}),a.setValue(this.plugin.settings.defaultSearchEngine).onChange(async s=>{this.plugin.settings.defaultSearchEngine=s,this.applySettingsUpdate(),this.display()})});this.addSettingToMasterSettingsList(t,o.settingEl,r),r=Ne("Show Other Search Engines When Searching")+" "+Ne("(Reload to take effect)"),o=new $e.Setting(n).setName(r).addToggle(i=>{i.setValue(this.plugin.settings.showOtherSearchEngines).onChange(async a=>{this.plugin.settings.showOtherSearchEngines=a,this.applySettingsUpdate()})}),this.addSettingToMasterSettingsList(t,o.settingEl,r),r=Ne("Disable / to search when on these sites"),o=new $e.Setting(n).setName(r).addText(i=>{i.setPlaceholder($o.ignoreList.join(",")).setValue(this.plugin.settings.ignoreList.join(",")).onChange(async a=>{this.plugin.settings.ignoreList=a.split(","),this.applySettingsUpdate()})}),this.addSettingToMasterSettingsList(t,o.settingEl,r),r=Ne("Always Show Custom Engines"),o=new $e.Setting(n).setName(r).addToggle(i=>{i.setValue(this.plugin.settings.alwaysShowCustomSearch).onChange(async a=>{this.plugin.settings.alwaysShowCustomSearch=a,this.applySettingsUpdate(),this.display()})}),this.addSettingToMasterSettingsList(t,o.settingEl,r),this.plugin.settings.alwaysShowCustomSearch&&(typeof this.plugin.settings.customSearchEngine!="object"&&(this.plugin.settings.customSearchEngine=$o.customSearchEngine),r=Ne("Add new custom search engine"),o=new $e.Setting(n).setName(r).addButton(i=>i.setButtonText("+").onClick(async()=>{this.plugin.settings.customSearchEngine.push({name:`Custom Search ${this.plugin.settings.customSearchEngine.length+1}`,url:"https://www.google.com/search?q="}),await this.plugin.saveSettings(),this.display()})),this.addSettingToMasterSettingsList(t,o.settingEl,r),this.plugin.settings.customSearchEngine.forEach((i,a)=>{r=i.name?i.name:Ne("Custom Search")+`${this.plugin.settings.customSearchEngine.length>1?` ${a+1}`:""}`;const s=new $e.Setting(n).setClass("search-engine-setting").setName(r).addButton(v=>v.setButtonText(Ne("Delete Custom Search")).onClick(async()=>{this.plugin.settings.customSearchEngine.splice(a,1),await this.plugin.saveSettings(),this.display()})),c=s.settingEl.createEl("div","search-engine-main-settings"),f=c.createEl("div","search-engine-main-settings-name"),p=c.createEl("div","search-engine-main-settings-url");f.createEl("label",{text:Ne("Name")}),f.createEl("input",{cls:"search-engine-name-input",type:"text",value:i.name}).on("change",".search-engine-name-input",async v=>{const g=v.target;this.plugin.settings.customSearchEngine[a]={...i,name:g.value},await this.plugin.saveSettings()}),p.createEl("label",{text:Ne("Url")}),p.createEl("input",{cls:"search-engine-url-input",type:"text",value:i.url}).on("change",".search-engine-url-input",async v=>{const g=v.target;this.plugin.settings.customSearchEngine[a]={...i,url:g.value},await this.plugin.saveSettings()}),this.addSettingToMasterSettingsList(t,s.settingEl,r+Ne("Search Engine"))}))}addMarkdownPath(t,n){const r=Ne("Save As Markdown Path"),o=new $e.Setting(n).setName(r).addText(i=>i.setPlaceholder(Ne("Path like /_Tempcard")).setValue(this.plugin.settings.markdownPath).onChange(async a=>{this.plugin.settings.markdownPath=a,this.applySettingsUpdate()}));this.addSettingToMasterSettingsList(t,o.settingEl,r)}addHighlightFormat(t,n){let r=Ne("Custom Link to Highlight Format"),o=new $e.Setting(n).setName(r).addToggle(a=>{a.setValue(this.plugin.settings.customHighlightFormat).onChange(async s=>{this.plugin.settings.customHighlightFormat=s,this.applySettingsUpdate(),this.display()})});if(this.addSettingToMasterSettingsList(t,o.settingEl,r),!this.plugin.settings.customHighlightFormat)return;r=Ne("Copy Link to Highlight Format");let i=Ne("Set copy link to text fragment format. [{CONTENT}]({URL}) By default. You can also set {TIME:YYYY-MM-DD HH:mm:ss} to get the current date.");o=new $e.Setting(n).setName(r).setDesc(i).addText(a=>a.setPlaceholder($o.highlightFormat).setValue(this.plugin.settings.highlightFormat).onChange(async s=>{s===""&&(this.plugin.settings.highlightFormat=$o.highlightFormat,this.applySettingsUpdate(),this.display()),this.plugin.settings.highlightFormat=s,this.applySettingsUpdate()})),this.addSettingToMasterSettingsList(t,o.settingEl,r,i),r=Ne("Jump to Opened Page"),i=Ne("When click on the URL from same domain name in the note, jump to the same surfing view rather than opening a new Surfing view."),o=new $e.Setting(n).setName(r).setDesc(i).addToggle(a=>{a.setValue(this.plugin.settings.highlightInSameTab).onChange(async s=>{this.plugin.settings.highlightInSameTab=s,this.applySettingsUpdate()})}),this.addSettingToMasterSettingsList(t,o.settingEl,r,i)}addOpenInSameTab(t,n){const r=Ne("Open URL In Same Tab"),o=new $e.Setting(n).setName(r).addToggle(i=>{i.setValue(this.plugin.settings.openInSameTab).onChange(async a=>{this.plugin.settings.openInSameTab=a,this.applySettingsUpdate(),this.display()})});this.addSettingToMasterSettingsList(t,o.settingEl,r)}addHoverPopover(t,n){const r=Ne("Hover Popover"),o=Ne("Show a popover when hover on the link."),i=new $e.Setting(n).setName(r).setDesc(o).addToggle(a=>{a.setValue(this.plugin.settings.hoverPopover).onChange(async s=>{this.plugin.settings.hoverPopover=s,this.applySettingsUpdate()})});this.addSettingToMasterSettingsList(t,i.settingEl,r,o)}addEnableHTMLPreview(t,n){const r=Ne("Enable HTML Preview"),o=Ne("Enable HTML Preview in Surfing"),i=new $e.Setting(n).setName(r).setDesc(o).addToggle(a=>{a.setValue(this.plugin.settings.enableHtmlPreview).onChange(async s=>{this.plugin.settings.enableHtmlPreview=s,this.applySettingsUpdate()})});this.addSettingToMasterSettingsList(t,i.settingEl,r,o)}addReplaceIframeInCanvas(t,n){const r=Ne("[Experimental] Replace Iframe In Canvas")+Ne("(Reload to take effect)"),o=new $e.Setting(n).setName(r).addToggle(i=>{i.setValue(this.plugin.settings.useWebview).onChange(async a=>{this.plugin.settings.useWebview=a,this.applySettingsUpdate()})});this.addSettingToMasterSettingsList(t,o.settingEl,r)}addOpenInObsidianWeb(t,n){const r=Ne("Open URL In Obsidian Web From Other Software")+" "+Ne("(Reload to take effect)"),o=new $e.Setting(n).setName(r).addToggle(s=>{s.setValue(this.plugin.settings.openInObsidianWeb).onChange(async c=>{this.plugin.settings.openInObsidianWeb=c,this.applySettingsUpdate(),this.display()})});if(this.addSettingToMasterSettingsList(t,o.settingEl,r),!this.plugin.settings.openInObsidianWeb)return;const i=n.createDiv({cls:"bookmarklets-container"}),a=i.createEl("button",{cls:"wb-btn"});a.createEl("a",{text:"Obsidian BookmarkLets Code",cls:"cm-url",href:"javascript:(function(){var%20i%20%3Ddocument.location.href%3B%20document.location.href%3D%22obsidian%3A%2F%2Fweb-open%3Furl%3D%22%20%2B%20encodeURIComponent%28i%29%3B})();"}),a.addEventListener("click",s=>{s.preventDefault(),zn.clipboard.writeText("javascript:(function(){var%20i%20%3Ddocument.location.href%3B%20document.location.href%3D%22obsidian%3A%2F%2Fweb-open%3Furl%3D%22%20%2B%20encodeURIComponent%28i%29%3B})();"),new $e.Notice(Ne("Copy BookmarkLets Success"))}),i.createEl("span",{cls:"wb-btn-tip",text:Ne(" <- Drag or click on me")}),this.addSettingToMasterSettingsList(t,i,r)}addAboutInfo(t,n){const r=n.createDiv({cls:"wb-about-card"});$e.setIcon(r.createDiv({cls:"wb-about-icon"}),"surfing"),r.createEl("div",{cls:"wb-about-text",text:"Surfing"});const o=this.plugin.manifest.version,i="https://github.com/Quorafind/Obsidian-Surfing/releases/tag/"+o;r.createEl("a",{cls:"wb-about-version",href:i,text:o}),this.addSettingToMasterSettingsList(t,r,"surfing")}useIconList(t,n){const r=Ne("Use icon list to replace defult text actions in empty view")+Ne("(Reload to take effect)"),o=new $e.Setting(n).setName(r).addToggle(i=>{i.setValue(this.plugin.settings.useIconList).onChange(async a=>{this.plugin.settings.useIconList=a,this.applySettingsUpdate()})});this.addSettingToMasterSettingsList(t,o.settingEl,r)}addDarkMode(t,n){const r=Ne("Toggle Dark Mode"),o=new $e.Setting(n).setName(r).addToggle(i=>{i.setValue(this.plugin.settings.darkMode).onChange(async a=>{this.plugin.settings.darkMode=a,this.applySettingsUpdate()})});this.addSettingToMasterSettingsList(t,o.settingEl,r)}addRandomBackground(t,n){const r="Random Background",o=new $e.Setting(n).setName(r).addToggle(i=>{i.setValue(this.plugin.settings.randomBackground).onChange(async a=>{this.plugin.settings.randomBackground=a,this.applySettingsUpdate()})});this.addSettingToMasterSettingsList(t,o.settingEl,r)}addMyIcons(t,n){let r=Ne("Working On, Not Available Now"),o=new $e.Setting(n).setName(r);o.settingEl.classList.add("wb-theme-settings-working-on"),this.addSettingToMasterSettingsList(t,o.settingEl,"theme"),r=Ne("Random Icons From Default Art"),o=new $e.Setting(n).setName(r).addToggle(i=>{i.setValue(this.plugin.settings.useCustomIcons).setDisabled(!0).onChange(async a=>{this.plugin.settings.useCustomIcons=a,this.applySettingsUpdate()})}),this.addSettingToMasterSettingsList(t,o.settingEl,"theme surfing")}addBookmarkManagerSettings(t,n){const r=new $e.Setting(n).setName(Ne("Open BookmarkBar & Bookmark Manager")).addToggle(v=>{v.setValue(this.plugin.settings.bookmarkManager.openBookMark).onChange(async g=>{this.plugin.settings.bookmarkManager.openBookMark=g,this.applySettingsUpdate(),this.display()})});if(this.addSettingToMasterSettingsList(t,r.settingEl,Ne("Open BookmarkBar & Bookmark Manager")),!this.plugin.settings.bookmarkManager.openBookMark)return;const o=new $e.Setting(n).setName(Ne("Save Bookmark When Open URI")).addToggle(v=>{v.setValue(this.plugin.settings.bookmarkManager.saveBookMark).onChange(async g=>{this.plugin.settings.bookmarkManager.saveBookMark=g,this.applySettingsUpdate()})});this.addSettingToMasterSettingsList(t,o.settingEl,Ne("Save Bookmark When Open URI"));const i=new $e.Setting(n).setName(Ne("Send to ReadWise")).setDesc(Ne("Add a action in page haader to Send to ReadWise.")).addToggle(v=>{v.setValue(this.plugin.settings.bookmarkManager.sendToReadWise).onChange(async g=>{this.plugin.settings.bookmarkManager.sendToReadWise=g,this.applySettingsUpdate()})});this.addSettingToMasterSettingsList(t,i.settingEl,Ne("Send to ReadWise"));const a=new $e.Setting(n).setName(Ne("Pagination")).addText(v=>v.setPlaceholder($o.bookmarkManager.pagination).setValue(this.plugin.settings.bookmarkManager.pagination).onChange(async g=>{g===""&&(this.plugin.settings.bookmarkManager.pagination=$o.bookmarkManager.pagination,this.applySettingsUpdate(),this.display()),this.plugin.settings.bookmarkManager.pagination=g,this.applySettingsUpdate()}));this.addSettingToMasterSettingsList(t,a.settingEl,Ne("Pagination"));const s=new $e.Setting(n).setName(Ne("Category")).addTextArea(v=>{v.setPlaceholder($o.bookmarkManager.category).setValue(this.plugin.settings.bookmarkManager.category).onChange(g=>{this.plugin.settings.bookmarkManager.category=g===""?$o.bookmarkManager.category:g,this.applySettingsUpdate()})});this.addSettingToMasterSettingsList(t,s.settingEl,Ne("Category"));const c=new $e.Setting(n).setName(Ne("Default Category (Use , to split)")).addText(v=>{v.setPlaceholder($o.bookmarkManager.defaultCategory).setValue(this.plugin.settings.bookmarkManager.defaultCategory).onChange(g=>{this.plugin.settings.bookmarkManager.defaultCategory=g,this.applySettingsUpdate()})});this.addSettingToMasterSettingsList(t,c.settingEl,Ne("Default Category (Use , to split)"));const f=new $e.Setting(n).setName(Ne("Default Column List")).addText(v=>{v.setPlaceholder($o.bookmarkManager.defaultColumnList.join(" ")).setValue(this.plugin.settings.bookmarkManager.defaultColumnList.join(" ")).onChange(async g=>{g===""&&(this.plugin.settings.bookmarkManager.defaultColumnList=$o.bookmarkManager.defaultColumnList,this.applySettingsUpdate(),this.display()),this.plugin.settings.bookmarkManager.defaultColumnList=g.split(" "),this.applySettingsUpdate()})});this.addSettingToMasterSettingsList(t,f.settingEl,Ne("Default Column List"));const p=new $e.Setting(n).setName(Ne("Default Category Filter Type")).addDropdown(async v=>{v.addOption("tree",Ne("Tree")).addOption("menu",Ne("Menu")).setValue(this.plugin.settings.bookmarkManager.defaultFilterType).onChange(async m=>{this.plugin.settings.bookmarkManager.defaultFilterType=m,this.applySettingsUpdate()})});this.addSettingToMasterSettingsList(t,p.settingEl,Ne("Default Category Filter Type"))}}const Nj=(e,t)=>(e%t+t)%t;class Rj{constructor(t,n,r){this.owner=t,this.containerEl=n,n.on("click",".suggestion-item",this.onSuggestionClick.bind(this)),n.on("mousemove",".suggestion-item",this.onSuggestionMouseover.bind(this)),r.register([],"ArrowUp",a=>{if(!a.isComposing)return this.setSelectedItem(this.selectedItem-1,!0),!1}),r.register([],"ArrowDown",a=>{if(!a.isComposing)return this.setSelectedItem(this.selectedItem+1,!0),!1}),r.register([],"Enter",a=>{if(!a.isComposing)return this.useSelectedItem(a),!1});const o=app.plugins.getPlugin("surfing").settings,i=[...bi,...o.customSearchEngine];for(let a=0;a<i.length;a++){if(a===9){r.register(["Mod"],"0",s=>{if(!s.isComposing)return this.setSelectedItem(a,!1),this.useSelectedItem(s),!1});break}r.register(["Mod"],`${a+1}`,s=>{if(!s.isComposing)return this.setSelectedItem(a,!1),this.useSelectedItem(s),!1})}}onSuggestionClick(t,n){t.preventDefault();const r=this.suggestions.indexOf(n);this.setSelectedItem(r,!1),this.useSelectedItem(t)}onSuggestionMouseover(t,n){const r=this.suggestions.indexOf(n);this.setSelectedItem(r,!1)}setSuggestions(t){this.containerEl.empty();const n=[];t.forEach((r,o)=>{const i=this.containerEl.createDiv("suggestion-item");this.owner.renderSuggestion(r,i),o<10&&i.createEl("div",{text:`${$e.Platform.isMacOS?"CMD + ":"Ctrl + "}${o!=9?o+1:0}`,cls:"wb-search-suggestion-index"}),n.push(i)}),this.values=t,this.suggestions=n,this.setSelectedItem(0,!1)}useSelectedItem(t){const n=this.values[this.selectedItem];n&&this.owner.selectSuggestion(n,t)}setSelectedItem(t,n){const r=Nj(t,this.suggestions.length),o=this.suggestions[this.selectedItem],i=this.suggestions[r];o==null||o.removeClass("is-selected"),i==null||i.addClass("is-selected"),this.selectedItem=r,n&&i.scrollIntoView(!1)}}class fy{constructor(t,n){this.app=t,this.inputEl=n,this.scope=new $e.Scope,this.suggestEl=createDiv("wb-search-suggestion-container");const r=this.suggestEl.createDiv("wb-search-suggestion");this.suggest=new Rj(this,r,this.scope),this.scope.register([],"Escape",this.close.bind(this)),this.inputEl.addEventListener("input",this.onInputChanged.bind(this)),this.inputEl.addEventListener("focus",this.onInputChanged.bind(this)),this.inputEl.addEventListener("blur",this.close.bind(this)),this.suggestEl.on("mousedown",".wb-search-suggestion-container",o=>{o.preventDefault()})}onInputChanged(){const t=this.inputEl.value,n=this.getSuggestions(t);if(!n||/^\s{0,}$/.test(t)){this.close();return}n.length>0?(this.suggest.setSuggestions(n),this.open(this.app.dom.appContainerEl,this.inputEl)):this.close()}open(t,n){this.app.keymap.pushScope(this.scope),t.appendChild(this.suggestEl),this.popper=$j(n,this.suggestEl,{placement:"bottom-start",modifiers:[{name:"sameWidth",enabled:!0,fn:({state:r,instance:o})=>{const i=`${r.rects.reference.width}px`;r.styles.popper.width!==i&&(r.styles.popper.width=i,o.update())},phase:"beforeWrite",requires:["computeStyles"]},{name:"offset",options:{offset:[0,5]}}]})}close(){this.app.keymap.popScope(this.scope),this.suggest.setSuggestions([]),this.popper&&this.popper.destroy(),this.suggestEl.detach()}}class Dj{constructor(t,n,r,o){this.leaf=t,this.webContents=n,this.plugin=r,this.onload()}onload(){const t=this.leaf.view.contentEl;this.searchBoxEl=t.createEl("div",{cls:"wb-search-box"}),this.inputEl=this.searchBoxEl.createEl("input",{type:"text",placeholder:"",cls:"wb-search-input"});const n=this.searchBoxEl.createEl("div",{cls:"wb-search-button-group"});this.backwardButtonEl=n.createEl("div",{cls:"wb-search-button search-forward"}),this.forwardButtonEl=n.createEl("div",{cls:"wb-search-button search-backward"}),this.closeButtonEl=n.createEl("div",{cls:"wb-search-button search-close"}),this.closeButtonEl.addEventListener("click",this.unload.bind(this)),this.backwardButtonEl.addEventListener("click",this.backward.bind(this)),this.forwardButtonEl.addEventListener("click",this.forward.bind(this)),this.inputEl.addEventListener("keyup",this.search.bind(this)),this.inputEl.addEventListener("keyup",this.exist.bind(this)),$e.setIcon(this.closeButtonEl,"x"),$e.setIcon(this.backwardButtonEl,"arrow-up"),$e.setIcon(this.forwardButtonEl,"arrow-down"),this.inputEl.focus()}search(t){t.preventDefault(),this.inputEl.value!==""&&(t.key==="Enter"&&!t.shiftKey&&this.forward(),t.key==="Enter"&&t.shiftKey&&this.backward())}exist(t){t.preventDefault(),t.key==="Escape"&&this.unload()}backward(){this.inputEl.value!==""&&(this.clicked?this.webContents.findInPage(this.inputEl.value,{forward:!1,findNext:!1}):this.webContents.findInPage(this.inputEl.value,{forward:!1,findNext:!0}),this.clicked=!0)}forward(){this.inputEl.value!==""&&(this.clicked?this.webContents.findInPage(this.inputEl.value,{forward:!0,findNext:!1}):this.webContents.findInPage(this.inputEl.value,{forward:!0,findNext:!0}),this.clicked=!0)}unload(){this.webContents.stopFindInPage("clearSelection"),this.inputEl.value="",this.closeButtonEl.removeEventListener("click",this.unload),this.backwardButtonEl.removeEventListener("click",this.backward),this.forwardButtonEl.removeEventListener("click",this.forward),this.inputEl.removeEventListener("keyup",this.search),this.inputEl.removeEventListener("keyup",this.exist),this.searchBoxEl.detach()}}class jj{constructor(t){this.content=t,this.sContent=t.split(`
`)}searchLines(t,n){return t.substring(t.substring(0,n).lastIndexOf(`
`)+1,n+t.substring(n).indexOf(`
`))}search(t,n){let r="";if(!n)r=this.searchLines(this.content,t);else{r=this.searchLines(this.content,t);const o=this.sContent.findIndex(i=>i.startsWith(r));o===0?r=this.sContent.slice(0,2).filter(i=>i&&i.trim()).join("<br>"):r=this.sContent.slice(o-1,o+1).filter(i=>i&&i.trim()).join("<br>")}return r}}class Lj{constructor(t,n,r,o){this.parent=t,this.path=n,this.foundWords=r,this.matches=o}async onload(){const t=this.parent.createEl("div",{cls:"wb-omni-item"});t.createEl("div",{cls:"wb-omni-item-path",text:this.path});const n=t.createEl("div",{cls:"wb-omni-item-content-list"}),r=app.vault.getAbstractFileByPath(this.path);let o="";if(r instanceof $e.TFile&&(o=await app.vault.cachedRead(r)),!r)return;const i=new jj(o);this.matches.length>0&&this.matches.forEach(a=>{const s=n.createEl("div",{cls:"wb-content-list-text"});s.innerHTML=i.search(a.offset,!0)})}}class Bj{constructor(t,n){this.plugin=n,this.leaf=t}onload(){this.wbOmniSearchCtnEl=this.leaf.view.contentEl.createEl("div",{cls:"wb-omni-box"}),this.hide()}hide(){this.wbOmniSearchCtnEl.isShown()&&this.wbOmniSearchCtnEl.hide()}show(){this.wbOmniSearchCtnEl.isShown()||this.wbOmniSearchCtnEl.show()}notFound(){this.wbOmniSearchCtnEl.empty(),this.wbOmniSearchCtnEl.createEl("div",{text:"No results found",cls:"wb-omni-item-notfound"})}tick(t){var n;if(this.result!==t&&(this.result=t),this.result!==t&&(this.result=t),!this.result||((n=this.result)==null?void 0:n.length)===0){this.show(),this.notFound();return}if(this.result.length>0){if(!this.result[0].foundWords.find(r=>r===this.query)){this.notFound();return}this.show(),this.result.forEach(r=>{new Lj(this.wbOmniSearchCtnEl,r.path,r.foundWords,r.matches).onload()})}}async update(t){if(this.query===t)return;this.wbOmniSearchCtnEl.empty(),this.query=t;const n=await(omnisearch==null?void 0:omnisearch.search(this.query));this.tick(n),(!n||(n==null?void 0:n.length)===0)&&setTimeout(async()=>{const r=await omnisearch.search(this.query);this.tick(r)},3e3)}onunload(){this.wbOmniSearchCtnEl.empty(),this.wbOmniSearchCtnEl.detach()}}class Aj{constructor(t,n,r,o,i){this.parentEl=t,this.plugin=n,this.item=o,this.view=r,this.bookmark=i}onload(){typeof this.item=="object"&&(this.item.value||this.item.children)&&this.item.value!=="ROOT"?this.renderFolder():this.renderBookmark()}renderFolder(){const t=this.parentEl.createEl("div",{cls:"wb-bookmark-folder"}),n=t.createEl("div",{cls:"wb-bookmark-folder-icon"});t.createEl("div",{cls:"wb-bookmark-folder-title",text:this.item.label}),$e.setIcon(n,"folder-closed");let r;t.onclick=o=>{const i=new $e.Menu;if(!r){const a=o.target,s=a.parentElement;s.classList.contains("wb-bookmark-folder")?r=s.getBoundingClientRect():r=a.getBoundingClientRect()}this.loopMenu(i,this.item),i.showAtPosition({x:r.left,y:r.bottom})}}loopMenu(t,n){n!=null&&n.children&&(n==null||n.children.forEach(o=>{let i;if(t.addItem(a=>i=a.setTitle(o.label).setIcon("folder-closed").setSubmenu()),!(o!=null&&o.children)){const a=this.bookmark.filter(s=>s.category.length?s.category[s.category.length-1]===o.value:!1);a.length>0&&a.forEach(s=>{i==null||i.addItem(c=>{c.setIcon("surfing").setTitle(s.name).onClick(f=>{if(f.shiftKey){window.open(s.url,"_blank","external");return}!f.ctrlKey&&!f.metaKey?Qt.spawnWebBrowserView(!1,{url:s.url}):Qt.spawnWebBrowserView(!0,{url:s.url})})})})}o!=null&&o.children&&i&&this.loopMenu(i,o)}));const r=this.bookmark.filter(o=>{var i;return o.category.length?(i=o.category[o.category.length-1])==null?void 0:i.contains(n.value):!1});r.length>0&&r.forEach(o=>{t.addItem(i=>{i.setIcon("surfing").setTitle(o.name).onClick(a=>{if(a.shiftKey){window.open(o.url,"_blank","external");return}!a.ctrlKey&&!a.metaKey?Qt.spawnWebBrowserView(!1,{url:o.url}):Qt.spawnWebBrowserView(!0,{url:o.url})})})})}renderBookmark(){if(this.bookmark.length===0)return;const t=this.bookmark.filter(n=>{var r;return(n==null?void 0:n.category[0])===((r=this.item)==null?void 0:r.value)&&(n==null?void 0:n.category.length)===1});(t==null?void 0:t.length)>0&&t.forEach(n=>{const r=this.parentEl.createEl("div",{cls:"wb-bookmark-item"}),o=r.createEl("div",{cls:"wb-bookmark-item-icon"});$e.setIcon(o,"album"),r.createEl("div",{cls:"wb-bookmark-item-title",text:n.name}),r.onclick=i=>{if(i.shiftKey){window.open(n.url,"","external");return}!i.ctrlKey&&!i.metaKey?Qt.spawnWebBrowserView(!1,{url:n.url}):Qt.spawnWebBrowserView(!0,{url:n.url})}})}}const py=`${app.vault.configDir}/surfing-bookmark.json`,La=async()=>JSON.parse(await app.vault.adapter.read(py)),Tl=async e=>{await app.vault.adapter.write(py,JSON.stringify(e,null,2))},D2=async()=>{await app.vault.adapter.write(py,JSON.stringify({bookmarks:[{id:"2014068036",name:"Obsidian",url:"https://obsidian.md/",description:"A awesome note-taking tool",category:["ROOT"],tags:"",created:1672840861051,modified:1672840861052}],categories:[{value:"ROOT",text:"ROOT",label:"ROOT",children:[]}]},null,2))};function Ms(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var j2={exports:{}},Kc={},L2={exports:{}},rn={},DS;function zj(){if(DS)return rn;DS=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.iterator;function g(R){return R===null||typeof R!="object"?null:(R=v&&R[v]||R["@@iterator"],typeof R=="function"?R:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,b={};function w(R,V,Y){this.props=R,this.context=V,this.refs=b,this.updater=Y||m}w.prototype.isReactComponent={},w.prototype.setState=function(R,V){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,V,"setState")},w.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function S(){}S.prototype=w.prototype;function C(R,V,Y){this.props=R,this.context=V,this.refs=b,this.updater=Y||m}var E=C.prototype=new S;E.constructor=C,y(E,w.prototype),E.isPureReactComponent=!0;var k=Array.isArray,I=Object.prototype.hasOwnProperty,$={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function N(R,V,Y){var X,q={},G=null,K=null;if(V!=null)for(X in V.ref!==void 0&&(K=V.ref),V.key!==void 0&&(G=""+V.key),V)I.call(V,X)&&!T.hasOwnProperty(X)&&(q[X]=V[X]);var J=arguments.length-2;if(J===1)q.children=Y;else if(1<J){for(var oe=Array(J),fe=0;fe<J;fe++)oe[fe]=arguments[fe+2];q.children=oe}if(R&&R.defaultProps)for(X in J=R.defaultProps,J)q[X]===void 0&&(q[X]=J[X]);return{$$typeof:e,type:R,key:G,ref:K,props:q,_owner:$.current}}function P(R,V){return{$$typeof:e,type:R.type,key:V,ref:R.ref,props:R.props,_owner:R._owner}}function D(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function j(R){var V={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(Y){return V[Y]})}var F=/\/+/g;function z(R,V){return typeof R=="object"&&R!==null&&R.key!=null?j(""+R.key):V.toString(36)}function B(R,V,Y,X,q){var G=typeof R;(G==="undefined"||G==="boolean")&&(R=null);var K=!1;if(R===null)K=!0;else switch(G){case"string":case"number":K=!0;break;case"object":switch(R.$$typeof){case e:case t:K=!0}}if(K)return K=R,q=q(K),R=X===""?"."+z(K,0):X,k(q)?(Y="",R!=null&&(Y=R.replace(F,"$&/")+"/"),B(q,V,Y,"",function(fe){return fe})):q!=null&&(D(q)&&(q=P(q,Y+(!q.key||K&&K.key===q.key?"":(""+q.key).replace(F,"$&/")+"/")+R)),V.push(q)),1;if(K=0,X=X===""?".":X+":",k(R))for(var J=0;J<R.length;J++){G=R[J];var oe=X+z(G,J);K+=B(G,V,Y,oe,q)}else if(oe=g(R),typeof oe=="function")for(R=oe.call(R),J=0;!(G=R.next()).done;)G=G.value,oe=X+z(G,J++),K+=B(G,V,Y,oe,q);else if(G==="object")throw V=String(R),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return K}function _(R,V,Y){if(R==null)return R;var X=[],q=0;return B(R,X,"","",function(G){return V.call(Y,G,q++)}),X}function H(R){if(R._status===-1){var V=R._result;V=V(),V.then(function(Y){(R._status===0||R._status===-1)&&(R._status=1,R._result=Y)},function(Y){(R._status===0||R._status===-1)&&(R._status=2,R._result=Y)}),R._status===-1&&(R._status=0,R._result=V)}if(R._status===1)return R._result.default;throw R._result}var L={current:null},A={transition:null},U={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:A,ReactCurrentOwner:$};return rn.Children={map:_,forEach:function(R,V,Y){_(R,function(){V.apply(this,arguments)},Y)},count:function(R){var V=0;return _(R,function(){V++}),V},toArray:function(R){return _(R,function(V){return V})||[]},only:function(R){if(!D(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},rn.Component=w,rn.Fragment=n,rn.Profiler=o,rn.PureComponent=C,rn.StrictMode=r,rn.Suspense=c,rn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,rn.cloneElement=function(R,V,Y){if(R==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+R+".");var X=y({},R.props),q=R.key,G=R.ref,K=R._owner;if(V!=null){if(V.ref!==void 0&&(G=V.ref,K=$.current),V.key!==void 0&&(q=""+V.key),R.type&&R.type.defaultProps)var J=R.type.defaultProps;for(oe in V)I.call(V,oe)&&!T.hasOwnProperty(oe)&&(X[oe]=V[oe]===void 0&&J!==void 0?J[oe]:V[oe])}var oe=arguments.length-2;if(oe===1)X.children=Y;else if(1<oe){J=Array(oe);for(var fe=0;fe<oe;fe++)J[fe]=arguments[fe+2];X.children=J}return{$$typeof:e,type:R.type,key:q,ref:G,props:X,_owner:K}},rn.createContext=function(R){return R={$$typeof:a,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},R.Provider={$$typeof:i,_context:R},R.Consumer=R},rn.createElement=N,rn.createFactory=function(R){var V=N.bind(null,R);return V.type=R,V},rn.createRef=function(){return{current:null}},rn.forwardRef=function(R){return{$$typeof:s,render:R}},rn.isValidElement=D,rn.lazy=function(R){return{$$typeof:p,_payload:{_status:-1,_result:R},_init:H}},rn.memo=function(R,V){return{$$typeof:f,type:R,compare:V===void 0?null:V}},rn.startTransition=function(R){var V=A.transition;A.transition={};try{R()}finally{A.transition=V}},rn.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},rn.useCallback=function(R,V){return L.current.useCallback(R,V)},rn.useContext=function(R){return L.current.useContext(R)},rn.useDebugValue=function(){},rn.useDeferredValue=function(R){return L.current.useDeferredValue(R)},rn.useEffect=function(R,V){return L.current.useEffect(R,V)},rn.useId=function(){return L.current.useId()},rn.useImperativeHandle=function(R,V,Y){return L.current.useImperativeHandle(R,V,Y)},rn.useInsertionEffect=function(R,V){return L.current.useInsertionEffect(R,V)},rn.useLayoutEffect=function(R,V){return L.current.useLayoutEffect(R,V)},rn.useMemo=function(R,V){return L.current.useMemo(R,V)},rn.useReducer=function(R,V,Y){return L.current.useReducer(R,V,Y)},rn.useRef=function(R){return L.current.useRef(R)},rn.useState=function(R){return L.current.useState(R)},rn.useSyncExternalStore=function(R,V,Y){return L.current.useSyncExternalStore(R,V,Y)},rn.useTransition=function(){return L.current.useTransition()},rn.version="18.2.0",rn}L2.exports=zj();var d=L2.exports;const de=Ms(d),ld=C2({__proto__:null,default:de},[d]);var jS;function Fj(){if(jS)return Kc;jS=1;var e=d,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,c,f){var p,v={},g=null,m=null;f!==void 0&&(g=""+f),c.key!==void 0&&(g=""+c.key),c.ref!==void 0&&(m=c.ref);for(p in c)r.call(c,p)&&!i.hasOwnProperty(p)&&(v[p]=c[p]);if(s&&s.defaultProps)for(p in c=s.defaultProps,c)v[p]===void 0&&(v[p]=c[p]);return{$$typeof:t,type:s,key:g,ref:m,props:v,_owner:o.current}}return Kc.Fragment=n,Kc.jsx=a,Kc.jsxs=a,Kc}j2.exports=Fj();var nt=j2.exports,yv={},B2={exports:{}},qr={},Xg={exports:{}},Gg={},LS;function Hj(){return LS||(LS=1,function(e){function t(A,U){var R=A.length;A.push(U);e:for(;0<R;){var V=R-1>>>1,Y=A[V];if(0<o(Y,U))A[V]=U,A[R]=Y,R=V;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var U=A[0],R=A.pop();if(R!==U){A[0]=R;e:for(var V=0,Y=A.length,X=Y>>>1;V<X;){var q=2*(V+1)-1,G=A[q],K=q+1,J=A[K];if(0>o(G,R))K<Y&&0>o(J,G)?(A[V]=J,A[K]=R,V=K):(A[V]=G,A[q]=R,V=q);else if(K<Y&&0>o(J,R))A[V]=J,A[K]=R,V=K;else break e}}return U}function o(A,U){var R=A.sortIndex-U.sortIndex;return R!==0?R:A.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var c=[],f=[],p=1,v=null,g=3,m=!1,y=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(A){for(var U=n(f);U!==null;){if(U.callback===null)r(f);else if(U.startTime<=A)r(f),U.sortIndex=U.expirationTime,t(c,U);else break;U=n(f)}}function k(A){if(b=!1,E(A),!y)if(n(c)!==null)y=!0,H(I);else{var U=n(f);U!==null&&L(k,U.startTime-A)}}function I(A,U){y=!1,b&&(b=!1,S(N),N=-1),m=!0;var R=g;try{for(E(U),v=n(c);v!==null&&(!(v.expirationTime>U)||A&&!j());){var V=v.callback;if(typeof V=="function"){v.callback=null,g=v.priorityLevel;var Y=V(v.expirationTime<=U);U=e.unstable_now(),typeof Y=="function"?v.callback=Y:v===n(c)&&r(c),E(U)}else r(c);v=n(c)}if(v!==null)var X=!0;else{var q=n(f);q!==null&&L(k,q.startTime-U),X=!1}return X}finally{v=null,g=R,m=!1}}var $=!1,T=null,N=-1,P=5,D=-1;function j(){return!(e.unstable_now()-D<P)}function F(){if(T!==null){var A=e.unstable_now();D=A;var U=!0;try{U=T(!0,A)}finally{U?z():($=!1,T=null)}}else $=!1}var z;if(typeof C=="function")z=function(){C(F)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,_=B.port2;B.port1.onmessage=F,z=function(){_.postMessage(null)}}else z=function(){w(F,0)};function H(A){T=A,$||($=!0,z())}function L(A,U){N=w(function(){A(e.unstable_now())},U)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){y||m||(y=!0,H(I))},e.unstable_forceFrameRate=function(A){0>A||125<A||(P=0<A?Math.floor(1e3/A):5)},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(A){switch(g){case 1:case 2:case 3:var U=3;break;default:U=g}var R=g;g=U;try{return A()}finally{g=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,U){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var R=g;g=A;try{return U()}finally{g=R}},e.unstable_scheduleCallback=function(A,U,R){var V=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?V+R:V):R=V,A){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=R+Y,A={id:p++,callback:U,priorityLevel:A,startTime:R,expirationTime:Y,sortIndex:-1},R>V?(A.sortIndex=R,t(f,A),n(c)===null&&A===n(f)&&(b?(S(N),N=-1):b=!0,L(k,R-V))):(A.sortIndex=Y,t(c,A),y||m||(y=!0,H(I))),A},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(A){var U=g;return function(){var R=g;g=U;try{return A.apply(this,arguments)}finally{g=R}}}}(Gg)),Gg}var BS;function _j(){return BS||(BS=1,Xg.exports=Hj()),Xg.exports}var AS;function Vj(){if(AS)return qr;AS=1;var e=d,t=_j();function n(l){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+l,h=1;h<arguments.length;h++)u+="&args[]="+encodeURIComponent(arguments[h]);return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function i(l,u){a(l,u),a(l+"Capture",u)}function a(l,u){for(o[l]=u,l=0;l<u.length;l++)r.add(u[l])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,f=/^[: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]*$/,p={},v={};function g(l){return c.call(v,l)?!0:c.call(p,l)?!1:f.test(l)?v[l]=!0:(p[l]=!0,!1)}function m(l,u,h,x){if(h!==null&&h.type===0)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":return x?!1:h!==null?!h.acceptsBooleans:(l=l.toLowerCase().slice(0,5),l!=="data-"&&l!=="aria-");default:return!1}}function y(l,u,h,x){if(u===null||typeof u>"u"||m(l,u,h,x))return!0;if(x)return!1;if(h!==null)switch(h.type){case 3:return!u;case 4:return u===!1;case 5:return isNaN(u);case 6:return isNaN(u)||1>u}return!1}function b(l,u,h,x,O,M,W){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=x,this.attributeNamespace=O,this.mustUseProperty=h,this.propertyName=l,this.type=u,this.sanitizeURL=M,this.removeEmptyString=W}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){w[l]=new b(l,0,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var u=l[0];w[u]=new b(u,1,!1,l[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){w[l]=new b(l,2,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){w[l]=new b(l,2,!1,l,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(l){w[l]=new b(l,3,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){w[l]=new b(l,3,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){w[l]=new b(l,4,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){w[l]=new b(l,6,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){w[l]=new b(l,5,!1,l.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function C(l){return l[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(l){var u=l.replace(S,C);w[u]=new b(u,1,!1,l,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(l){var u=l.replace(S,C);w[u]=new b(u,1,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var u=l.replace(S,C);w[u]=new b(u,1,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){w[l]=new b(l,1,!1,l.toLowerCase(),null,!1,!1)}),w.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){w[l]=new b(l,1,!1,l.toLowerCase(),null,!0,!0)});function E(l,u,h,x){var O=w.hasOwnProperty(u)?w[u]:null;(O!==null?O.type!==0:x||!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(y(u,h,O,x)&&(h=null),x||O===null?g(u)&&(h===null?l.removeAttribute(u):l.setAttribute(u,""+h)):O.mustUseProperty?l[O.propertyName]=h===null?O.type===3?!1:"":h:(u=O.attributeName,x=O.attributeNamespace,h===null?l.removeAttribute(u):(O=O.type,h=O===3||O===4&&h===!0?"":""+h,x?l.setAttributeNS(x,u,h):l.setAttribute(u,h))))}var k=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,I=Symbol.for("react.element"),$=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),j=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),A=Symbol.iterator;function U(l){return l===null||typeof l!="object"?null:(l=A&&l[A]||l["@@iterator"],typeof l=="function"?l:null)}var R=Object.assign,V;function Y(l){if(V===void 0)try{throw Error()}catch(h){var u=h.stack.trim().match(/\n( *(at )?)/);V=u&&u[1]||""}return`
`+V+l}var X=!1;function q(l,u){if(!l||X)return"";X=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(Ce){var x=Ce}Reflect.construct(l,[],u)}else{try{u.call()}catch(Ce){x=Ce}l.call(u.prototype)}else{try{throw Error()}catch(Ce){x=Ce}l()}}catch(Ce){if(Ce&&x&&typeof Ce.stack=="string"){for(var O=Ce.stack.split(`
`),M=x.stack.split(`
`),W=O.length-1,ne=M.length-1;1<=W&&0<=ne&&O[W]!==M[ne];)ne--;for(;1<=W&&0<=ne;W--,ne--)if(O[W]!==M[ne]){if(W!==1||ne!==1)do if(W--,ne--,0>ne||O[W]!==M[ne]){var ue=`
`+O[W].replace(" at new "," at ");return l.displayName&&ue.includes("<anonymous>")&&(ue=ue.replace("<anonymous>",l.displayName)),ue}while(1<=W&&0<=ne);break}}}finally{X=!1,Error.prepareStackTrace=h}return(l=l?l.displayName||l.name:"")?Y(l):""}function G(l){switch(l.tag){case 5:return Y(l.type);case 16:return Y("Lazy");case 13:return Y("Suspense");case 19:return Y("SuspenseList");case 0:case 2:case 15:return l=q(l.type,!1),l;case 11:return l=q(l.type.render,!1),l;case 1:return l=q(l.type,!0),l;default:return""}}function K(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case T:return"Fragment";case $:return"Portal";case P:return"Profiler";case N:return"StrictMode";case z:return"Suspense";case B:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case j:return(l.displayName||"Context")+".Consumer";case D:return(l._context.displayName||"Context")+".Provider";case F:var u=l.render;return l=l.displayName,l||(l=u.displayName||u.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case _:return u=l.displayName||null,u!==null?u:K(l.type)||"Memo";case H:u=l._payload,l=l._init;try{return K(l(u))}catch{}}return null}function J(l){var u=l.type;switch(l.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=u.render,l=l.displayName||l.name||"",u.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return K(u);case 8:return u===N?"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 u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function oe(l){switch(typeof l){case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function fe(l){var u=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function ce(l){var u=fe(l)?"checked":"value",h=Object.getOwnPropertyDescriptor(l.constructor.prototype,u),x=""+l[u];if(!l.hasOwnProperty(u)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var O=h.get,M=h.set;return Object.defineProperty(l,u,{configurable:!0,get:function(){return O.call(this)},set:function(W){x=""+W,M.call(this,W)}}),Object.defineProperty(l,u,{enumerable:h.enumerable}),{getValue:function(){return x},setValue:function(W){x=""+W},stopTracking:function(){l._valueTracker=null,delete l[u]}}}}function ee(l){l._valueTracker||(l._valueTracker=ce(l))}function ie(l){if(!l)return!1;var u=l._valueTracker;if(!u)return!0;var h=u.getValue(),x="";return l&&(x=fe(l)?l.checked?"true":"false":l.value),l=x,l!==h?(u.setValue(l),!0):!1}function te(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}function re(l,u){var h=u.checked;return R({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:h??l._wrapperState.initialChecked})}function le(l,u){var h=u.defaultValue==null?"":u.defaultValue,x=u.checked!=null?u.checked:u.defaultChecked;h=oe(u.value!=null?u.value:h),l._wrapperState={initialChecked:x,initialValue:h,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function ge(l,u){u=u.checked,u!=null&&E(l,"checked",u,!1)}function be(l,u){ge(l,u);var h=oe(u.value),x=u.type;if(h!=null)x==="number"?(h===0&&l.value===""||l.value!=h)&&(l.value=""+h):l.value!==""+h&&(l.value=""+h);else if(x==="submit"||x==="reset"){l.removeAttribute("value");return}u.hasOwnProperty("value")?pe(l,u.type,h):u.hasOwnProperty("defaultValue")&&pe(l,u.type,oe(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(l.defaultChecked=!!u.defaultChecked)}function Se(l,u,h){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var x=u.type;if(!(x!=="submit"&&x!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+l._wrapperState.initialValue,h||u===l.value||(l.value=u),l.defaultValue=u}h=l.name,h!==""&&(l.name=""),l.defaultChecked=!!l._wrapperState.initialChecked,h!==""&&(l.name=h)}function pe(l,u,h){(u!=="number"||te(l.ownerDocument)!==l)&&(h==null?l.defaultValue=""+l._wrapperState.initialValue:l.defaultValue!==""+h&&(l.defaultValue=""+h))}var me=Array.isArray;function xe(l,u,h,x){if(l=l.options,u){u={};for(var O=0;O<h.length;O++)u["$"+h[O]]=!0;for(h=0;h<l.length;h++)O=u.hasOwnProperty("$"+l[h].value),l[h].selected!==O&&(l[h].selected=O),O&&x&&(l[h].defaultSelected=!0)}else{for(h=""+oe(h),u=null,O=0;O<l.length;O++){if(l[O].value===h){l[O].selected=!0,x&&(l[O].defaultSelected=!0);return}u!==null||l[O].disabled||(u=l[O])}u!==null&&(u.selected=!0)}}function Pe(l,u){if(u.dangerouslySetInnerHTML!=null)throw Error(n(91));return R({},u,{value:void 0,defaultValue:void 0,children:""+l._wrapperState.initialValue})}function Ie(l,u){var h=u.value;if(h==null){if(h=u.children,u=u.defaultValue,h!=null){if(u!=null)throw Error(n(92));if(me(h)){if(1<h.length)throw Error(n(93));h=h[0]}u=h}u==null&&(u=""),h=u}l._wrapperState={initialValue:oe(h)}}function De(l,u){var h=oe(u.value),x=oe(u.defaultValue);h!=null&&(h=""+h,h!==l.value&&(l.value=h),u.defaultValue==null&&l.defaultValue!==h&&(l.defaultValue=h)),x!=null&&(l.defaultValue=""+x)}function Be(l){var u=l.textContent;u===l._wrapperState.initialValue&&u!==""&&u!==null&&(l.value=u)}function qe(l){switch(l){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lt(l,u){return l==null||l==="http://www.w3.org/1999/xhtml"?qe(u):l==="http://www.w3.org/2000/svg"&&u==="foreignObject"?"http://www.w3.org/1999/xhtml":l}var et,He=function(l){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(u,h,x,O){MSApp.execUnsafeLocalFunction(function(){return l(u,h,x,O)})}:l}(function(l,u){if(l.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in l)l.innerHTML=u;else{for(et=et||document.createElement("div"),et.innerHTML="<svg>"+u.valueOf().toString()+"</svg>",u=et.firstChild;l.firstChild;)l.removeChild(l.firstChild);for(;u.firstChild;)l.appendChild(u.firstChild)}});function Fe(l,u){if(u){var h=l.firstChild;if(h&&h===l.lastChild&&h.nodeType===3){h.nodeValue=u;return}}l.textContent=u}var Re={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},ft=["Webkit","ms","Moz","O"];Object.keys(Re).forEach(function(l){ft.forEach(function(u){u=u+l.charAt(0).toUpperCase()+l.substring(1),Re[u]=Re[l]})});function Me(l,u,h){return u==null||typeof u=="boolean"||u===""?"":h||typeof u!="number"||u===0||Re.hasOwnProperty(l)&&Re[l]?(""+u).trim():u+"px"}function We(l,u){l=l.style;for(var h in u)if(u.hasOwnProperty(h)){var x=h.indexOf("--")===0,O=Me(h,u[h],x);h==="float"&&(h="cssFloat"),x?l.setProperty(h,O):l[h]=O}}var Le=R({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 je(l,u){if(u){if(Le[l]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(n(137,l));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(n(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(n(61))}if(u.style!=null&&typeof u.style!="object")throw Error(n(62))}}function Ye(l,u){if(l.indexOf("-")===-1)return typeof u.is=="string";switch(l){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 mt=null;function bt(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Oe=null,Ge=null,ct=null;function Mt(l){if(l=Pc(l)){if(typeof Oe!="function")throw Error(n(280));var u=l.stateNode;u&&(u=Ud(u),Oe(l.stateNode,l.type,u))}}function ut(l){Ge?ct?ct.push(l):ct=[l]:Ge=l}function ze(){if(Ge){var l=Ge,u=ct;if(ct=Ge=null,Mt(l),u)for(l=0;l<u.length;l++)Mt(u[l])}}function Qe(l,u){return l(u)}function Xe(){}var rt=!1;function it(l,u,h){if(rt)return l(u,h);rt=!0;try{return Qe(l,u,h)}finally{rt=!1,(Ge!==null||ct!==null)&&(Xe(),ze())}}function tt(l,u){var h=l.stateNode;if(h===null)return null;var x=Ud(h);if(x===null)return null;h=x[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(x=!x.disabled)||(l=l.type,x=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!x;break e;default:l=!1}if(l)return null;if(h&&typeof h!="function")throw Error(n(231,u,typeof h));return h}var Ke=!1;if(s)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){Ke=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch{Ke=!1}function xt(l,u,h,x,O,M,W,ne,ue){var Ce=Array.prototype.slice.call(arguments,3);try{u.apply(h,Ce)}catch(Ve){this.onError(Ve)}}var Nt=!1,Ot=null,ot=!1,at=null,_t={onError:function(l){Nt=!0,Ot=l}};function Ct(l,u,h,x,O,M,W,ne,ue){Nt=!1,Ot=null,xt.apply(_t,arguments)}function zt(l,u,h,x,O,M,W,ne,ue){if(Ct.apply(this,arguments),Nt){if(Nt){var Ce=Ot;Nt=!1,Ot=null}else throw Error(n(198));ot||(ot=!0,at=Ce)}}function Jt(l){var u=l,h=l;if(l.alternate)for(;u.return;)u=u.return;else{l=u;do u=l,u.flags&4098&&(h=u.return),l=u.return;while(l)}return u.tag===3?h:null}function st(l){if(l.tag===13){var u=l.memoizedState;if(u===null&&(l=l.alternate,l!==null&&(u=l.memoizedState)),u!==null)return u.dehydrated}return null}function pt(l){if(Jt(l)!==l)throw Error(n(188))}function Rt(l){var u=l.alternate;if(!u){if(u=Jt(l),u===null)throw Error(n(188));return u!==l?null:l}for(var h=l,x=u;;){var O=h.return;if(O===null)break;var M=O.alternate;if(M===null){if(x=O.return,x!==null){h=x;continue}break}if(O.child===M.child){for(M=O.child;M;){if(M===h)return pt(O),l;if(M===x)return pt(O),u;M=M.sibling}throw Error(n(188))}if(h.return!==x.return)h=O,x=M;else{for(var W=!1,ne=O.child;ne;){if(ne===h){W=!0,h=O,x=M;break}if(ne===x){W=!0,x=O,h=M;break}ne=ne.sibling}if(!W){for(ne=M.child;ne;){if(ne===h){W=!0,h=M,x=O;break}if(ne===x){W=!0,x=M,h=O;break}ne=ne.sibling}if(!W)throw Error(n(189))}}if(h.alternate!==x)throw Error(n(190))}if(h.tag!==3)throw Error(n(188));return h.stateNode.current===h?l:u}function Ft(l){return l=Rt(l),l!==null?fn(l):null}function fn(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var u=fn(l);if(u!==null)return u;l=l.sibling}return null}var ln=t.unstable_scheduleCallback,Hn=t.unstable_cancelCallback,yn=t.unstable_shouldYield,Yn=t.unstable_requestPaint,Yt=t.unstable_now,wn=t.unstable_getCurrentPriorityLevel,nr=t.unstable_ImmediatePriority,Nr=t.unstable_UserBlockingPriority,vt=t.unstable_NormalPriority,Ut=t.unstable_LowPriority,tn=t.unstable_IdlePriority,hn=null,gn=null;function Er(l){if(gn&&typeof gn.onCommitFiberRoot=="function")try{gn.onCommitFiberRoot(hn,l,void 0,(l.current.flags&128)===128)}catch{}}var Cn=Math.clz32?Math.clz32:kr,rr=Math.log,Hr=Math.LN2;function kr(l){return l>>>=0,l===0?32:31-(rr(l)/Hr|0)|0}var Xt=64,Kt=4194304;function dt(l){switch(l&-l){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 l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function yt(l,u){var h=l.pendingLanes;if(h===0)return 0;var x=0,O=l.suspendedLanes,M=l.pingedLanes,W=h&268435455;if(W!==0){var ne=W&~O;ne!==0?x=dt(ne):(M&=W,M!==0&&(x=dt(M)))}else W=h&~O,W!==0?x=dt(W):M!==0&&(x=dt(M));if(x===0)return 0;if(u!==0&&u!==x&&!(u&O)&&(O=x&-x,M=u&-u,O>=M||O===16&&(M&4194240)!==0))return u;if(x&4&&(x|=h&16),u=l.entangledLanes,u!==0)for(l=l.entanglements,u&=x;0<u;)h=31-Cn(u),O=1<<h,x|=l[h],u&=~O;return x}function en(l,u){switch(l){case 1:case 2:case 4:return u+250;case 8:case 16:case 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 u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bn(l,u){for(var h=l.suspendedLanes,x=l.pingedLanes,O=l.expirationTimes,M=l.pendingLanes;0<M;){var W=31-Cn(M),ne=1<<W,ue=O[W];ue===-1?(!(ne&h)||ne&x)&&(O[W]=en(ne,u)):ue<=u&&(l.expiredLanes|=ne),M&=~ne}}function cn(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function xn(){var l=Xt;return Xt<<=1,!(Xt&4194240)&&(Xt=64),l}function In(l){for(var u=[],h=0;31>h;h++)u.push(l);return u}function _n(l,u,h){l.pendingLanes|=u,u!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,u=31-Cn(u),l[u]=h}function Pt(l,u){var h=l.pendingLanes&~u;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=u,l.mutableReadLanes&=u,l.entangledLanes&=u,u=l.entanglements;var x=l.eventTimes;for(l=l.expirationTimes;0<h;){var O=31-Cn(h),M=1<<O;u[O]=0,x[O]=-1,l[O]=-1,h&=~M}}function Lt(l,u){var h=l.entangledLanes|=u;for(l=l.entanglements;h;){var x=31-Cn(h),O=1<<x;O&u|l[x]&u&&(l[x]|=u),h&=~O}}var $t=0;function nn(l){return l&=-l,1<l?4<l?l&268435455?16:536870912:4:1}var or,Qn,fr,yr,Rr,eo=!1,si=[],to=null,po=null,vo=null,ki=new Map,Oi=new Map,ht=[],Vt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Tn(l,u){switch(l){case"focusin":case"focusout":to=null;break;case"dragenter":case"dragleave":po=null;break;case"mouseover":case"mouseout":vo=null;break;case"pointerover":case"pointerout":ki.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oi.delete(u.pointerId)}}function Pn(l,u,h,x,O,M){return l===null||l.nativeEvent!==M?(l={blockedOn:u,domEventName:h,eventSystemFlags:x,nativeEvent:M,targetContainers:[O]},u!==null&&(u=Pc(u),u!==null&&Qn(u)),l):(l.eventSystemFlags|=x,u=l.targetContainers,O!==null&&u.indexOf(O)===-1&&u.push(O),l)}function Ln(l,u,h,x,O){switch(u){case"focusin":return to=Pn(to,l,u,h,x,O),!0;case"dragenter":return po=Pn(po,l,u,h,x,O),!0;case"mouseover":return vo=Pn(vo,l,u,h,x,O),!0;case"pointerover":var M=O.pointerId;return ki.set(M,Pn(ki.get(M)||null,l,u,h,x,O)),!0;case"gotpointercapture":return M=O.pointerId,Oi.set(M,Pn(Oi.get(M)||null,l,u,h,x,O)),!0}return!1}function Ua(l){var u=Ka(l.target);if(u!==null){var h=Jt(u);if(h!==null){if(u=h.tag,u===13){if(u=st(h),u!==null){l.blockedOn=u,Rr(l.priority,function(){fr(h)});return}}else if(u===3&&h.stateNode.current.memoizedState.isDehydrated){l.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}l.blockedOn=null}function na(l){if(l.blockedOn!==null)return!1;for(var u=l.targetContainers;0<u.length;){var h=xh(l.domEventName,l.eventSystemFlags,u[0],l.nativeEvent);if(h===null){h=l.nativeEvent;var x=new h.constructor(h.type,h);mt=x,h.target.dispatchEvent(x),mt=null}else return u=Pc(h),u!==null&&Qn(u),l.blockedOn=h,!1;u.shift()}return!0}function gc(l,u,h){na(l)&&h.delete(u)}function Bs(){eo=!1,to!==null&&na(to)&&(to=null),po!==null&&na(po)&&(po=null),vo!==null&&na(vo)&&(vo=null),ki.forEach(gc),Oi.forEach(gc)}function mc(l,u){l.blockedOn===u&&(l.blockedOn=null,eo||(eo=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bs)))}function bc(l){function u(O){return mc(O,l)}if(0<si.length){mc(si[0],l);for(var h=1;h<si.length;h++){var x=si[h];x.blockedOn===l&&(x.blockedOn=null)}}for(to!==null&&mc(to,l),po!==null&&mc(po,l),vo!==null&&mc(vo,l),ki.forEach(u),Oi.forEach(u),h=0;h<ht.length;h++)x=ht[h],x.blockedOn===l&&(x.blockedOn=null);for(;0<ht.length&&(h=ht[0],h.blockedOn===null);)Ua(h),h.blockedOn===null&&ht.shift()}var As=k.ReactCurrentBatchConfig,Nd=!0;function CD(l,u,h,x){var O=$t,M=As.transition;As.transition=null;try{$t=1,wh(l,u,h,x)}finally{$t=O,As.transition=M}}function ED(l,u,h,x){var O=$t,M=As.transition;As.transition=null;try{$t=4,wh(l,u,h,x)}finally{$t=O,As.transition=M}}function wh(l,u,h,x){if(Nd){var O=xh(l,u,h,x);if(O===null)Ah(l,u,x,Rd,h),Tn(l,x);else if(Ln(O,l,u,h,x))x.stopPropagation();else if(Tn(l,x),u&4&&-1<Vt.indexOf(l)){for(;O!==null;){var M=Pc(O);if(M!==null&&or(M),M=xh(l,u,h,x),M===null&&Ah(l,u,x,Rd,h),M===O)break;O=M}O!==null&&x.stopPropagation()}else Ah(l,u,x,null,h)}}var Rd=null;function xh(l,u,h,x){if(Rd=null,l=bt(x),l=Ka(l),l!==null)if(u=Jt(l),u===null)l=null;else if(h=u.tag,h===13){if(l=st(u),l!==null)return l;l=null}else if(h===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;l=null}else u!==l&&(l=null);return Rd=l,null}function c1(l){switch(l){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(wn()){case nr:return 1;case Nr:return 4;case vt:case Ut:return 16;case tn:return 536870912;default:return 16}default:return 16}}var ra=null,Sh=null,Dd=null;function u1(){if(Dd)return Dd;var l,u=Sh,h=u.length,x,O="value"in ra?ra.value:ra.textContent,M=O.length;for(l=0;l<h&&u[l]===O[l];l++);var W=h-l;for(x=1;x<=W&&u[h-x]===O[M-x];x++);return Dd=O.slice(l,1<x?1-x:void 0)}function jd(l){var u=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&u===13&&(l=13)):l=u,l===10&&(l=13),32<=l||l===13?l:0}function Ld(){return!0}function d1(){return!1}function no(l){function u(h,x,O,M,W){this._reactName=h,this._targetInst=O,this.type=x,this.nativeEvent=M,this.target=W,this.currentTarget=null;for(var ne in l)l.hasOwnProperty(ne)&&(h=l[ne],this[ne]=h?h(M):M[ne]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?Ld:d1,this.isPropagationStopped=d1,this}return R(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=Ld)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=Ld)},persist:function(){},isPersistent:Ld}),u}var zs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ch=no(zs),yc=R({},zs,{view:0,detail:0}),kD=no(yc),Eh,kh,wc,Bd=R({},yc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$h,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==wc&&(wc&&l.type==="mousemove"?(Eh=l.screenX-wc.screenX,kh=l.screenY-wc.screenY):kh=Eh=0,wc=l),Eh)},movementY:function(l){return"movementY"in l?l.movementY:kh}}),f1=no(Bd),OD=R({},Bd,{dataTransfer:0}),$D=no(OD),ID=R({},yc,{relatedTarget:0}),Oh=no(ID),TD=R({},zs,{animationName:0,elapsedTime:0,pseudoElement:0}),PD=no(TD),MD=R({},zs,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),ND=no(MD),RD=R({},zs,{data:0}),p1=no(RD),DD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jD={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},LD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function BD(l){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(l):(l=LD[l])?!!u[l]:!1}function $h(){return BD}var AD=R({},yc,{key:function(l){if(l.key){var u=DD[l.key]||l.key;if(u!=="Unidentified")return u}return l.type==="keypress"?(l=jd(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?jD[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$h,charCode:function(l){return l.type==="keypress"?jd(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?jd(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),zD=no(AD),FD=R({},Bd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),v1=no(FD),HD=R({},yc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$h}),_D=no(HD),VD=R({},zs,{propertyName:0,elapsedTime:0,pseudoElement:0}),WD=no(VD),UD=R({},Bd,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),KD=no(UD),qD=[9,13,27,32],Ih=s&&"CompositionEvent"in window,xc=null;s&&"documentMode"in document&&(xc=document.documentMode);var XD=s&&"TextEvent"in window&&!xc,h1=s&&(!Ih||xc&&8<xc&&11>=xc),g1=" ",m1=!1;function b1(l,u){switch(l){case"keyup":return qD.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function y1(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Fs=!1;function GD(l,u){switch(l){case"compositionend":return y1(u);case"keypress":return u.which!==32?null:(m1=!0,g1);case"textInput":return l=u.data,l===g1&&m1?null:l;default:return null}}function YD(l,u){if(Fs)return l==="compositionend"||!Ih&&b1(l,u)?(l=u1(),Dd=Sh=ra=null,Fs=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return h1&&u.locale!=="ko"?null:u.data;default:return null}}var QD={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function w1(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u==="input"?!!QD[l.type]:u==="textarea"}function x1(l,u,h,x){ut(x),u=_d(u,"onChange"),0<u.length&&(h=new Ch("onChange","change",null,h,x),l.push({event:h,listeners:u}))}var Sc=null,Cc=null;function ZD(l){z1(l,0)}function Ad(l){var u=Us(l);if(ie(u))return l}function JD(l,u){if(l==="change")return u}var S1=!1;if(s){var Th;if(s){var Ph="oninput"in document;if(!Ph){var C1=document.createElement("div");C1.setAttribute("oninput","return;"),Ph=typeof C1.oninput=="function"}Th=Ph}else Th=!1;S1=Th&&(!document.documentMode||9<document.documentMode)}function E1(){Sc&&(Sc.detachEvent("onpropertychange",k1),Cc=Sc=null)}function k1(l){if(l.propertyName==="value"&&Ad(Cc)){var u=[];x1(u,Cc,l,bt(l)),it(ZD,u)}}function e4(l,u,h){l==="focusin"?(E1(),Sc=u,Cc=h,Sc.attachEvent("onpropertychange",k1)):l==="focusout"&&E1()}function t4(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Ad(Cc)}function n4(l,u){if(l==="click")return Ad(u)}function r4(l,u){if(l==="input"||l==="change")return Ad(u)}function o4(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var zo=typeof Object.is=="function"?Object.is:o4;function Ec(l,u){if(zo(l,u))return!0;if(typeof l!="object"||l===null||typeof u!="object"||u===null)return!1;var h=Object.keys(l),x=Object.keys(u);if(h.length!==x.length)return!1;for(x=0;x<h.length;x++){var O=h[x];if(!c.call(u,O)||!zo(l[O],u[O]))return!1}return!0}function O1(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function $1(l,u){var h=O1(l);l=0;for(var x;h;){if(h.nodeType===3){if(x=l+h.textContent.length,l<=u&&x>=u)return{node:h,offset:u-l};l=x}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=O1(h)}}function I1(l,u){return l&&u?l===u?!0:l&&l.nodeType===3?!1:u&&u.nodeType===3?I1(l,u.parentNode):"contains"in l?l.contains(u):l.compareDocumentPosition?!!(l.compareDocumentPosition(u)&16):!1:!1}function T1(){for(var l=window,u=te();u instanceof l.HTMLIFrameElement;){try{var h=typeof u.contentWindow.location.href=="string"}catch{h=!1}if(h)l=u.contentWindow;else break;u=te(l.document)}return u}function Mh(l){var u=l&&l.nodeName&&l.nodeName.toLowerCase();return u&&(u==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||u==="textarea"||l.contentEditable==="true")}function i4(l){var u=T1(),h=l.focusedElem,x=l.selectionRange;if(u!==h&&h&&h.ownerDocument&&I1(h.ownerDocument.documentElement,h)){if(x!==null&&Mh(h)){if(u=x.start,l=x.end,l===void 0&&(l=u),"selectionStart"in h)h.selectionStart=u,h.selectionEnd=Math.min(l,h.value.length);else if(l=(u=h.ownerDocument||document)&&u.defaultView||window,l.getSelection){l=l.getSelection();var O=h.textContent.length,M=Math.min(x.start,O);x=x.end===void 0?M:Math.min(x.end,O),!l.extend&&M>x&&(O=x,x=M,M=O),O=$1(h,M);var W=$1(h,x);O&&W&&(l.rangeCount!==1||l.anchorNode!==O.node||l.anchorOffset!==O.offset||l.focusNode!==W.node||l.focusOffset!==W.offset)&&(u=u.createRange(),u.setStart(O.node,O.offset),l.removeAllRanges(),M>x?(l.addRange(u),l.extend(W.node,W.offset)):(u.setEnd(W.node,W.offset),l.addRange(u)))}}for(u=[],l=h;l=l.parentNode;)l.nodeType===1&&u.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<u.length;h++)l=u[h],l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}var a4=s&&"documentMode"in document&&11>=document.documentMode,Hs=null,Nh=null,kc=null,Rh=!1;function P1(l,u,h){var x=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;Rh||Hs==null||Hs!==te(x)||(x=Hs,"selectionStart"in x&&Mh(x)?x={start:x.selectionStart,end:x.selectionEnd}:(x=(x.ownerDocument&&x.ownerDocument.defaultView||window).getSelection(),x={anchorNode:x.anchorNode,anchorOffset:x.anchorOffset,focusNode:x.focusNode,focusOffset:x.focusOffset}),kc&&Ec(kc,x)||(kc=x,x=_d(Nh,"onSelect"),0<x.length&&(u=new Ch("onSelect","select",null,u,h),l.push({event:u,listeners:x}),u.target=Hs)))}function zd(l,u){var h={};return h[l.toLowerCase()]=u.toLowerCase(),h["Webkit"+l]="webkit"+u,h["Moz"+l]="moz"+u,h}var _s={animationend:zd("Animation","AnimationEnd"),animationiteration:zd("Animation","AnimationIteration"),animationstart:zd("Animation","AnimationStart"),transitionend:zd("Transition","TransitionEnd")},Dh={},M1={};s&&(M1=document.createElement("div").style,"AnimationEvent"in window||(delete _s.animationend.animation,delete _s.animationiteration.animation,delete _s.animationstart.animation),"TransitionEvent"in window||delete _s.transitionend.transition);function Fd(l){if(Dh[l])return Dh[l];if(!_s[l])return l;var u=_s[l],h;for(h in u)if(u.hasOwnProperty(h)&&h in M1)return Dh[l]=u[h];return l}var N1=Fd("animationend"),R1=Fd("animationiteration"),D1=Fd("animationstart"),j1=Fd("transitionend"),L1=new Map,B1="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function oa(l,u){L1.set(l,u),i(u,[l])}for(var jh=0;jh<B1.length;jh++){var Lh=B1[jh],s4=Lh.toLowerCase(),l4=Lh[0].toUpperCase()+Lh.slice(1);oa(s4,"on"+l4)}oa(N1,"onAnimationEnd"),oa(R1,"onAnimationIteration"),oa(D1,"onAnimationStart"),oa("dblclick","onDoubleClick"),oa("focusin","onFocus"),oa("focusout","onBlur"),oa(j1,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),c4=new Set("cancel close invalid load scroll toggle".split(" ").concat(Oc));function A1(l,u,h){var x=l.type||"unknown-event";l.currentTarget=h,zt(x,u,void 0,l),l.currentTarget=null}function z1(l,u){u=(u&4)!==0;for(var h=0;h<l.length;h++){var x=l[h],O=x.event;x=x.listeners;e:{var M=void 0;if(u)for(var W=x.length-1;0<=W;W--){var ne=x[W],ue=ne.instance,Ce=ne.currentTarget;if(ne=ne.listener,ue!==M&&O.isPropagationStopped())break e;A1(O,ne,Ce),M=ue}else for(W=0;W<x.length;W++){if(ne=x[W],ue=ne.instance,Ce=ne.currentTarget,ne=ne.listener,ue!==M&&O.isPropagationStopped())break e;A1(O,ne,Ce),M=ue}}}if(ot)throw l=at,ot=!1,at=null,l}function Mn(l,u){var h=u[Wh];h===void 0&&(h=u[Wh]=new Set);var x=l+"__bubble";h.has(x)||(F1(u,l,2,!1),h.add(x))}function Bh(l,u,h){var x=0;u&&(x|=4),F1(h,l,x,u)}var Hd="_reactListening"+Math.random().toString(36).slice(2);function $c(l){if(!l[Hd]){l[Hd]=!0,r.forEach(function(h){h!=="selectionchange"&&(c4.has(h)||Bh(h,!1,l),Bh(h,!0,l))});var u=l.nodeType===9?l:l.ownerDocument;u===null||u[Hd]||(u[Hd]=!0,Bh("selectionchange",!1,u))}}function F1(l,u,h,x){switch(c1(u)){case 1:var O=CD;break;case 4:O=ED;break;default:O=wh}h=O.bind(null,u,h,l),O=void 0,!Ke||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(O=!0),x?O!==void 0?l.addEventListener(u,h,{capture:!0,passive:O}):l.addEventListener(u,h,!0):O!==void 0?l.addEventListener(u,h,{passive:O}):l.addEventListener(u,h,!1)}function Ah(l,u,h,x,O){var M=x;if(!(u&1)&&!(u&2)&&x!==null)e:for(;;){if(x===null)return;var W=x.tag;if(W===3||W===4){var ne=x.stateNode.containerInfo;if(ne===O||ne.nodeType===8&&ne.parentNode===O)break;if(W===4)for(W=x.return;W!==null;){var ue=W.tag;if((ue===3||ue===4)&&(ue=W.stateNode.containerInfo,ue===O||ue.nodeType===8&&ue.parentNode===O))return;W=W.return}for(;ne!==null;){if(W=Ka(ne),W===null)return;if(ue=W.tag,ue===5||ue===6){x=M=W;continue e}ne=ne.parentNode}}x=x.return}it(function(){var Ce=M,Ve=bt(h),Ue=[];e:{var _e=L1.get(l);if(_e!==void 0){var gt=Ch,St=l;switch(l){case"keypress":if(jd(h)===0)break e;case"keydown":case"keyup":gt=zD;break;case"focusin":St="focus",gt=Oh;break;case"focusout":St="blur",gt=Oh;break;case"beforeblur":case"afterblur":gt=Oh;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":gt=f1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":gt=$D;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":gt=_D;break;case N1:case R1:case D1:gt=PD;break;case j1:gt=WD;break;case"scroll":gt=kD;break;case"wheel":gt=KD;break;case"copy":case"cut":case"paste":gt=ND;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":gt=v1}var Et=(u&4)!==0,Xn=!Et&&l==="scroll",ye=Et?_e!==null?_e+"Capture":null:_e;Et=[];for(var ve=Ce,we;ve!==null;){we=ve;var Ze=we.stateNode;if(we.tag===5&&Ze!==null&&(we=Ze,ye!==null&&(Ze=tt(ve,ye),Ze!=null&&Et.push(Ic(ve,Ze,we)))),Xn)break;ve=ve.return}0<Et.length&&(_e=new gt(_e,St,null,h,Ve),Ue.push({event:_e,listeners:Et}))}}if(!(u&7)){e:{if(_e=l==="mouseover"||l==="pointerover",gt=l==="mouseout"||l==="pointerout",_e&&h!==mt&&(St=h.relatedTarget||h.fromElement)&&(Ka(St)||St[$i]))break e;if((gt||_e)&&(_e=Ve.window===Ve?Ve:(_e=Ve.ownerDocument)?_e.defaultView||_e.parentWindow:window,gt?(St=h.relatedTarget||h.toElement,gt=Ce,St=St?Ka(St):null,St!==null&&(Xn=Jt(St),St!==Xn||St.tag!==5&&St.tag!==6)&&(St=null)):(gt=null,St=Ce),gt!==St)){if(Et=f1,Ze="onMouseLeave",ye="onMouseEnter",ve="mouse",(l==="pointerout"||l==="pointerover")&&(Et=v1,Ze="onPointerLeave",ye="onPointerEnter",ve="pointer"),Xn=gt==null?_e:Us(gt),we=St==null?_e:Us(St),_e=new Et(Ze,ve+"leave",gt,h,Ve),_e.target=Xn,_e.relatedTarget=we,Ze=null,Ka(Ve)===Ce&&(Et=new Et(ye,ve+"enter",St,h,Ve),Et.target=we,Et.relatedTarget=Xn,Ze=Et),Xn=Ze,gt&&St)t:{for(Et=gt,ye=St,ve=0,we=Et;we;we=Vs(we))ve++;for(we=0,Ze=ye;Ze;Ze=Vs(Ze))we++;for(;0<ve-we;)Et=Vs(Et),ve--;for(;0<we-ve;)ye=Vs(ye),we--;for(;ve--;){if(Et===ye||ye!==null&&Et===ye.alternate)break t;Et=Vs(Et),ye=Vs(ye)}Et=null}else Et=null;gt!==null&&H1(Ue,_e,gt,Et,!1),St!==null&&Xn!==null&&H1(Ue,Xn,St,Et,!0)}}e:{if(_e=Ce?Us(Ce):window,gt=_e.nodeName&&_e.nodeName.toLowerCase(),gt==="select"||gt==="input"&&_e.type==="file")var It=JD;else if(w1(_e))if(S1)It=r4;else{It=t4;var Bt=e4}else(gt=_e.nodeName)&&gt.toLowerCase()==="input"&&(_e.type==="checkbox"||_e.type==="radio")&&(It=n4);if(It&&(It=It(l,Ce))){x1(Ue,It,h,Ve);break e}Bt&&Bt(l,_e,Ce),l==="focusout"&&(Bt=_e._wrapperState)&&Bt.controlled&&_e.type==="number"&&pe(_e,"number",_e.value)}switch(Bt=Ce?Us(Ce):window,l){case"focusin":(w1(Bt)||Bt.contentEditable==="true")&&(Hs=Bt,Nh=Ce,kc=null);break;case"focusout":kc=Nh=Hs=null;break;case"mousedown":Rh=!0;break;case"contextmenu":case"mouseup":case"dragend":Rh=!1,P1(Ue,h,Ve);break;case"selectionchange":if(a4)break;case"keydown":case"keyup":P1(Ue,h,Ve)}var At;if(Ih)e:{switch(l){case"compositionstart":var Wt="onCompositionStart";break e;case"compositionend":Wt="onCompositionEnd";break e;case"compositionupdate":Wt="onCompositionUpdate";break e}Wt=void 0}else Fs?b1(l,h)&&(Wt="onCompositionEnd"):l==="keydown"&&h.keyCode===229&&(Wt="onCompositionStart");Wt&&(h1&&h.locale!=="ko"&&(Fs||Wt!=="onCompositionStart"?Wt==="onCompositionEnd"&&Fs&&(At=u1()):(ra=Ve,Sh="value"in ra?ra.value:ra.textContent,Fs=!0)),Bt=_d(Ce,Wt),0<Bt.length&&(Wt=new p1(Wt,l,null,h,Ve),Ue.push({event:Wt,listeners:Bt}),At?Wt.data=At:(At=y1(h),At!==null&&(Wt.data=At)))),(At=XD?GD(l,h):YD(l,h))&&(Ce=_d(Ce,"onBeforeInput"),0<Ce.length&&(Ve=new p1("onBeforeInput","beforeinput",null,h,Ve),Ue.push({event:Ve,listeners:Ce}),Ve.data=At))}z1(Ue,u)})}function Ic(l,u,h){return{instance:l,listener:u,currentTarget:h}}function _d(l,u){for(var h=u+"Capture",x=[];l!==null;){var O=l,M=O.stateNode;O.tag===5&&M!==null&&(O=M,M=tt(l,h),M!=null&&x.unshift(Ic(l,M,O)),M=tt(l,u),M!=null&&x.push(Ic(l,M,O))),l=l.return}return x}function Vs(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5);return l||null}function H1(l,u,h,x,O){for(var M=u._reactName,W=[];h!==null&&h!==x;){var ne=h,ue=ne.alternate,Ce=ne.stateNode;if(ue!==null&&ue===x)break;ne.tag===5&&Ce!==null&&(ne=Ce,O?(ue=tt(h,M),ue!=null&&W.unshift(Ic(h,ue,ne))):O||(ue=tt(h,M),ue!=null&&W.push(Ic(h,ue,ne)))),h=h.return}W.length!==0&&l.push({event:u,listeners:W})}var u4=/\r\n?/g,d4=/\u0000|\uFFFD/g;function _1(l){return(typeof l=="string"?l:""+l).replace(u4,`
`).replace(d4,"")}function Vd(l,u,h){if(u=_1(u),_1(l)!==u&&h)throw Error(n(425))}function Wd(){}var zh=null,Fh=null;function Hh(l,u){return l==="textarea"||l==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var _h=typeof setTimeout=="function"?setTimeout:void 0,f4=typeof clearTimeout=="function"?clearTimeout:void 0,V1=typeof Promise=="function"?Promise:void 0,p4=typeof queueMicrotask=="function"?queueMicrotask:typeof V1<"u"?function(l){return V1.resolve(null).then(l).catch(v4)}:_h;function v4(l){setTimeout(function(){throw l})}function Vh(l,u){var h=u,x=0;do{var O=h.nextSibling;if(l.removeChild(h),O&&O.nodeType===8)if(h=O.data,h==="/$"){if(x===0){l.removeChild(O),bc(u);return}x--}else h!=="$"&&h!=="$?"&&h!=="$!"||x++;h=O}while(h);bc(u)}function ia(l){for(;l!=null;l=l.nextSibling){var u=l.nodeType;if(u===1||u===3)break;if(u===8){if(u=l.data,u==="$"||u==="$!"||u==="$?")break;if(u==="/$")return null}}return l}function W1(l){l=l.previousSibling;for(var u=0;l;){if(l.nodeType===8){var h=l.data;if(h==="$"||h==="$!"||h==="$?"){if(u===0)return l;u--}else h==="/$"&&u++}l=l.previousSibling}return null}var Ws=Math.random().toString(36).slice(2),li="__reactFiber$"+Ws,Tc="__reactProps$"+Ws,$i="__reactContainer$"+Ws,Wh="__reactEvents$"+Ws,h4="__reactListeners$"+Ws,g4="__reactHandles$"+Ws;function Ka(l){var u=l[li];if(u)return u;for(var h=l.parentNode;h;){if(u=h[$i]||h[li]){if(h=u.alternate,u.child!==null||h!==null&&h.child!==null)for(l=W1(l);l!==null;){if(h=l[li])return h;l=W1(l)}return u}l=h,h=l.parentNode}return null}function Pc(l){return l=l[li]||l[$i],!l||l.tag!==5&&l.tag!==6&&l.tag!==13&&l.tag!==3?null:l}function Us(l){if(l.tag===5||l.tag===6)return l.stateNode;throw Error(n(33))}function Ud(l){return l[Tc]||null}var Uh=[],Ks=-1;function aa(l){return{current:l}}function Nn(l){0>Ks||(l.current=Uh[Ks],Uh[Ks]=null,Ks--)}function kn(l,u){Ks++,Uh[Ks]=l.current,l.current=u}var sa={},Or=aa(sa),_r=aa(!1),qa=sa;function qs(l,u){var h=l.type.contextTypes;if(!h)return sa;var x=l.stateNode;if(x&&x.__reactInternalMemoizedUnmaskedChildContext===u)return x.__reactInternalMemoizedMaskedChildContext;var O={},M;for(M in h)O[M]=u[M];return x&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=u,l.__reactInternalMemoizedMaskedChildContext=O),O}function Vr(l){return l=l.childContextTypes,l!=null}function Kd(){Nn(_r),Nn(Or)}function U1(l,u,h){if(Or.current!==sa)throw Error(n(168));kn(Or,u),kn(_r,h)}function K1(l,u,h){var x=l.stateNode;if(u=u.childContextTypes,typeof x.getChildContext!="function")return h;x=x.getChildContext();for(var O in x)if(!(O in u))throw Error(n(108,J(l)||"Unknown",O));return R({},h,x)}function qd(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||sa,qa=Or.current,kn(Or,l),kn(_r,_r.current),!0}function q1(l,u,h){var x=l.stateNode;if(!x)throw Error(n(169));h?(l=K1(l,u,qa),x.__reactInternalMemoizedMergedChildContext=l,Nn(_r),Nn(Or),kn(Or,l)):Nn(_r),kn(_r,h)}var Ii=null,Xd=!1,Kh=!1;function X1(l){Ii===null?Ii=[l]:Ii.push(l)}function m4(l){Xd=!0,X1(l)}function la(){if(!Kh&&Ii!==null){Kh=!0;var l=0,u=$t;try{var h=Ii;for($t=1;l<h.length;l++){var x=h[l];do x=x(!0);while(x!==null)}Ii=null,Xd=!1}catch(O){throw Ii!==null&&(Ii=Ii.slice(l+1)),ln(nr,la),O}finally{$t=u,Kh=!1}}return null}var Xs=[],Gs=0,Gd=null,Yd=0,ho=[],go=0,Xa=null,Ti=1,Pi="";function Ga(l,u){Xs[Gs++]=Yd,Xs[Gs++]=Gd,Gd=l,Yd=u}function G1(l,u,h){ho[go++]=Ti,ho[go++]=Pi,ho[go++]=Xa,Xa=l;var x=Ti;l=Pi;var O=32-Cn(x)-1;x&=~(1<<O),h+=1;var M=32-Cn(u)+O;if(30<M){var W=O-O%5;M=(x&(1<<W)-1).toString(32),x>>=W,O-=W,Ti=1<<32-Cn(u)+O|h<<O|x,Pi=M+l}else Ti=1<<M|h<<O|x,Pi=l}function qh(l){l.return!==null&&(Ga(l,1),G1(l,1,0))}function Xh(l){for(;l===Gd;)Gd=Xs[--Gs],Xs[Gs]=null,Yd=Xs[--Gs],Xs[Gs]=null;for(;l===Xa;)Xa=ho[--go],ho[go]=null,Pi=ho[--go],ho[go]=null,Ti=ho[--go],ho[go]=null}var ro=null,oo=null,Bn=!1,Fo=null;function Y1(l,u){var h=wo(5,null,null,0);h.elementType="DELETED",h.stateNode=u,h.return=l,u=l.deletions,u===null?(l.deletions=[h],l.flags|=16):u.push(h)}function Q1(l,u){switch(l.tag){case 5:var h=l.type;return u=u.nodeType!==1||h.toLowerCase()!==u.nodeName.toLowerCase()?null:u,u!==null?(l.stateNode=u,ro=l,oo=ia(u.firstChild),!0):!1;case 6:return u=l.pendingProps===""||u.nodeType!==3?null:u,u!==null?(l.stateNode=u,ro=l,oo=null,!0):!1;case 13:return u=u.nodeType!==8?null:u,u!==null?(h=Xa!==null?{id:Ti,overflow:Pi}:null,l.memoizedState={dehydrated:u,treeContext:h,retryLane:1073741824},h=wo(18,null,null,0),h.stateNode=u,h.return=l,l.child=h,ro=l,oo=null,!0):!1;default:return!1}}function Gh(l){return(l.mode&1)!==0&&(l.flags&128)===0}function Yh(l){if(Bn){var u=oo;if(u){var h=u;if(!Q1(l,u)){if(Gh(l))throw Error(n(418));u=ia(h.nextSibling);var x=ro;u&&Q1(l,u)?Y1(x,h):(l.flags=l.flags&-4097|2,Bn=!1,ro=l)}}else{if(Gh(l))throw Error(n(418));l.flags=l.flags&-4097|2,Bn=!1,ro=l}}}function Z1(l){for(l=l.return;l!==null&&l.tag!==5&&l.tag!==3&&l.tag!==13;)l=l.return;ro=l}function Qd(l){if(l!==ro)return!1;if(!Bn)return Z1(l),Bn=!0,!1;var u;if((u=l.tag!==3)&&!(u=l.tag!==5)&&(u=l.type,u=u!=="head"&&u!=="body"&&!Hh(l.type,l.memoizedProps)),u&&(u=oo)){if(Gh(l))throw J1(),Error(n(418));for(;u;)Y1(l,u),u=ia(u.nextSibling)}if(Z1(l),l.tag===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(n(317));e:{for(l=l.nextSibling,u=0;l;){if(l.nodeType===8){var h=l.data;if(h==="/$"){if(u===0){oo=ia(l.nextSibling);break e}u--}else h!=="$"&&h!=="$!"&&h!=="$?"||u++}l=l.nextSibling}oo=null}}else oo=ro?ia(l.stateNode.nextSibling):null;return!0}function J1(){for(var l=oo;l;)l=ia(l.nextSibling)}function Ys(){oo=ro=null,Bn=!1}function Qh(l){Fo===null?Fo=[l]:Fo.push(l)}var b4=k.ReactCurrentBatchConfig;function Ho(l,u){if(l&&l.defaultProps){u=R({},u),l=l.defaultProps;for(var h in l)u[h]===void 0&&(u[h]=l[h]);return u}return u}var Zd=aa(null),Jd=null,Qs=null,Zh=null;function Jh(){Zh=Qs=Jd=null}function eg(l){var u=Zd.current;Nn(Zd),l._currentValue=u}function tg(l,u,h){for(;l!==null;){var x=l.alternate;if((l.childLanes&u)!==u?(l.childLanes|=u,x!==null&&(x.childLanes|=u)):x!==null&&(x.childLanes&u)!==u&&(x.childLanes|=u),l===h)break;l=l.return}}function Zs(l,u){Jd=l,Zh=Qs=null,l=l.dependencies,l!==null&&l.firstContext!==null&&(l.lanes&u&&(Wr=!0),l.firstContext=null)}function mo(l){var u=l._currentValue;if(Zh!==l)if(l={context:l,memoizedValue:u,next:null},Qs===null){if(Jd===null)throw Error(n(308));Qs=l,Jd.dependencies={lanes:0,firstContext:l}}else Qs=Qs.next=l;return u}var Ya=null;function ng(l){Ya===null?Ya=[l]:Ya.push(l)}function ex(l,u,h,x){var O=u.interleaved;return O===null?(h.next=h,ng(u)):(h.next=O.next,O.next=h),u.interleaved=h,Mi(l,x)}function Mi(l,u){l.lanes|=u;var h=l.alternate;for(h!==null&&(h.lanes|=u),h=l,l=l.return;l!==null;)l.childLanes|=u,h=l.alternate,h!==null&&(h.childLanes|=u),h=l,l=l.return;return h.tag===3?h.stateNode:null}var ca=!1;function rg(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tx(l,u){l=l.updateQueue,u.updateQueue===l&&(u.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects})}function Ni(l,u){return{eventTime:l,lane:u,tag:0,payload:null,callback:null,next:null}}function ua(l,u,h){var x=l.updateQueue;if(x===null)return null;if(x=x.shared,dn&2){var O=x.pending;return O===null?u.next=u:(u.next=O.next,O.next=u),x.pending=u,Mi(l,h)}return O=x.interleaved,O===null?(u.next=u,ng(x)):(u.next=O.next,O.next=u),x.interleaved=u,Mi(l,h)}function ef(l,u,h){if(u=u.updateQueue,u!==null&&(u=u.shared,(h&4194240)!==0)){var x=u.lanes;x&=l.pendingLanes,h|=x,u.lanes=h,Lt(l,h)}}function nx(l,u){var h=l.updateQueue,x=l.alternate;if(x!==null&&(x=x.updateQueue,h===x)){var O=null,M=null;if(h=h.firstBaseUpdate,h!==null){do{var W={eventTime:h.eventTime,lane:h.lane,tag:h.tag,payload:h.payload,callback:h.callback,next:null};M===null?O=M=W:M=M.next=W,h=h.next}while(h!==null);M===null?O=M=u:M=M.next=u}else O=M=u;h={baseState:x.baseState,firstBaseUpdate:O,lastBaseUpdate:M,shared:x.shared,effects:x.effects},l.updateQueue=h;return}l=h.lastBaseUpdate,l===null?h.firstBaseUpdate=u:l.next=u,h.lastBaseUpdate=u}function tf(l,u,h,x){var O=l.updateQueue;ca=!1;var M=O.firstBaseUpdate,W=O.lastBaseUpdate,ne=O.shared.pending;if(ne!==null){O.shared.pending=null;var ue=ne,Ce=ue.next;ue.next=null,W===null?M=Ce:W.next=Ce,W=ue;var Ve=l.alternate;Ve!==null&&(Ve=Ve.updateQueue,ne=Ve.lastBaseUpdate,ne!==W&&(ne===null?Ve.firstBaseUpdate=Ce:ne.next=Ce,Ve.lastBaseUpdate=ue))}if(M!==null){var Ue=O.baseState;W=0,Ve=Ce=ue=null,ne=M;do{var _e=ne.lane,gt=ne.eventTime;if((x&_e)===_e){Ve!==null&&(Ve=Ve.next={eventTime:gt,lane:0,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null});e:{var St=l,Et=ne;switch(_e=u,gt=h,Et.tag){case 1:if(St=Et.payload,typeof St=="function"){Ue=St.call(gt,Ue,_e);break e}Ue=St;break e;case 3:St.flags=St.flags&-65537|128;case 0:if(St=Et.payload,_e=typeof St=="function"?St.call(gt,Ue,_e):St,_e==null)break e;Ue=R({},Ue,_e);break e;case 2:ca=!0}}ne.callback!==null&&ne.lane!==0&&(l.flags|=64,_e=O.effects,_e===null?O.effects=[ne]:_e.push(ne))}else gt={eventTime:gt,lane:_e,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null},Ve===null?(Ce=Ve=gt,ue=Ue):Ve=Ve.next=gt,W|=_e;if(ne=ne.next,ne===null){if(ne=O.shared.pending,ne===null)break;_e=ne,ne=_e.next,_e.next=null,O.lastBaseUpdate=_e,O.shared.pending=null}}while(!0);if(Ve===null&&(ue=Ue),O.baseState=ue,O.firstBaseUpdate=Ce,O.lastBaseUpdate=Ve,u=O.shared.interleaved,u!==null){O=u;do W|=O.lane,O=O.next;while(O!==u)}else M===null&&(O.shared.lanes=0);Ja|=W,l.lanes=W,l.memoizedState=Ue}}function rx(l,u,h){if(l=u.effects,u.effects=null,l!==null)for(u=0;u<l.length;u++){var x=l[u],O=x.callback;if(O!==null){if(x.callback=null,x=h,typeof O!="function")throw Error(n(191,O));O.call(x)}}}var ox=new e.Component().refs;function og(l,u,h,x){u=l.memoizedState,h=h(x,u),h=h==null?u:R({},u,h),l.memoizedState=h,l.lanes===0&&(l.updateQueue.baseState=h)}var nf={isMounted:function(l){return(l=l._reactInternals)?Jt(l)===l:!1},enqueueSetState:function(l,u,h){l=l._reactInternals;var x=jr(),O=va(l),M=Ni(x,O);M.payload=u,h!=null&&(M.callback=h),u=ua(l,M,O),u!==null&&(Wo(u,l,O,x),ef(u,l,O))},enqueueReplaceState:function(l,u,h){l=l._reactInternals;var x=jr(),O=va(l),M=Ni(x,O);M.tag=1,M.payload=u,h!=null&&(M.callback=h),u=ua(l,M,O),u!==null&&(Wo(u,l,O,x),ef(u,l,O))},enqueueForceUpdate:function(l,u){l=l._reactInternals;var h=jr(),x=va(l),O=Ni(h,x);O.tag=2,u!=null&&(O.callback=u),u=ua(l,O,x),u!==null&&(Wo(u,l,x,h),ef(u,l,x))}};function ix(l,u,h,x,O,M,W){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(x,M,W):u.prototype&&u.prototype.isPureReactComponent?!Ec(h,x)||!Ec(O,M):!0}function ax(l,u,h){var x=!1,O=sa,M=u.contextType;return typeof M=="object"&&M!==null?M=mo(M):(O=Vr(u)?qa:Or.current,x=u.contextTypes,M=(x=x!=null)?qs(l,O):sa),u=new u(h,M),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=nf,l.stateNode=u,u._reactInternals=l,x&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=O,l.__reactInternalMemoizedMaskedChildContext=M),u}function sx(l,u,h,x){l=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(h,x),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(h,x),u.state!==l&&nf.enqueueReplaceState(u,u.state,null)}function ig(l,u,h,x){var O=l.stateNode;O.props=h,O.state=l.memoizedState,O.refs=ox,rg(l);var M=u.contextType;typeof M=="object"&&M!==null?O.context=mo(M):(M=Vr(u)?qa:Or.current,O.context=qs(l,M)),O.state=l.memoizedState,M=u.getDerivedStateFromProps,typeof M=="function"&&(og(l,u,M,h),O.state=l.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(u=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),u!==O.state&&nf.enqueueReplaceState(O,O.state,null),tf(l,h,O,x),O.state=l.memoizedState),typeof O.componentDidMount=="function"&&(l.flags|=4194308)}function Mc(l,u,h){if(l=h.ref,l!==null&&typeof l!="function"&&typeof l!="object"){if(h._owner){if(h=h._owner,h){if(h.tag!==1)throw Error(n(309));var x=h.stateNode}if(!x)throw Error(n(147,l));var O=x,M=""+l;return u!==null&&u.ref!==null&&typeof u.ref=="function"&&u.ref._stringRef===M?u.ref:(u=function(W){var ne=O.refs;ne===ox&&(ne=O.refs={}),W===null?delete ne[M]:ne[M]=W},u._stringRef=M,u)}if(typeof l!="string")throw Error(n(284));if(!h._owner)throw Error(n(290,l))}return l}function rf(l,u){throw l=Object.prototype.toString.call(u),Error(n(31,l==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":l))}function lx(l){var u=l._init;return u(l._payload)}function cx(l){function u(ye,ve){if(l){var we=ye.deletions;we===null?(ye.deletions=[ve],ye.flags|=16):we.push(ve)}}function h(ye,ve){if(!l)return null;for(;ve!==null;)u(ye,ve),ve=ve.sibling;return null}function x(ye,ve){for(ye=new Map;ve!==null;)ve.key!==null?ye.set(ve.key,ve):ye.set(ve.index,ve),ve=ve.sibling;return ye}function O(ye,ve){return ye=ga(ye,ve),ye.index=0,ye.sibling=null,ye}function M(ye,ve,we){return ye.index=we,l?(we=ye.alternate,we!==null?(we=we.index,we<ve?(ye.flags|=2,ve):we):(ye.flags|=2,ve)):(ye.flags|=1048576,ve)}function W(ye){return l&&ye.alternate===null&&(ye.flags|=2),ye}function ne(ye,ve,we,Ze){return ve===null||ve.tag!==6?(ve=_g(we,ye.mode,Ze),ve.return=ye,ve):(ve=O(ve,we),ve.return=ye,ve)}function ue(ye,ve,we,Ze){var It=we.type;return It===T?Ve(ye,ve,we.props.children,Ze,we.key):ve!==null&&(ve.elementType===It||typeof It=="object"&&It!==null&&It.$$typeof===H&&lx(It)===ve.type)?(Ze=O(ve,we.props),Ze.ref=Mc(ye,ve,we),Ze.return=ye,Ze):(Ze=Cf(we.type,we.key,we.props,null,ye.mode,Ze),Ze.ref=Mc(ye,ve,we),Ze.return=ye,Ze)}function Ce(ye,ve,we,Ze){return ve===null||ve.tag!==4||ve.stateNode.containerInfo!==we.containerInfo||ve.stateNode.implementation!==we.implementation?(ve=Vg(we,ye.mode,Ze),ve.return=ye,ve):(ve=O(ve,we.children||[]),ve.return=ye,ve)}function Ve(ye,ve,we,Ze,It){return ve===null||ve.tag!==7?(ve=rs(we,ye.mode,Ze,It),ve.return=ye,ve):(ve=O(ve,we),ve.return=ye,ve)}function Ue(ye,ve,we){if(typeof ve=="string"&&ve!==""||typeof ve=="number")return ve=_g(""+ve,ye.mode,we),ve.return=ye,ve;if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case I:return we=Cf(ve.type,ve.key,ve.props,null,ye.mode,we),we.ref=Mc(ye,null,ve),we.return=ye,we;case $:return ve=Vg(ve,ye.mode,we),ve.return=ye,ve;case H:var Ze=ve._init;return Ue(ye,Ze(ve._payload),we)}if(me(ve)||U(ve))return ve=rs(ve,ye.mode,we,null),ve.return=ye,ve;rf(ye,ve)}return null}function _e(ye,ve,we,Ze){var It=ve!==null?ve.key:null;if(typeof we=="string"&&we!==""||typeof we=="number")return It!==null?null:ne(ye,ve,""+we,Ze);if(typeof we=="object"&&we!==null){switch(we.$$typeof){case I:return we.key===It?ue(ye,ve,we,Ze):null;case $:return we.key===It?Ce(ye,ve,we,Ze):null;case H:return It=we._init,_e(ye,ve,It(we._payload),Ze)}if(me(we)||U(we))return It!==null?null:Ve(ye,ve,we,Ze,null);rf(ye,we)}return null}function gt(ye,ve,we,Ze,It){if(typeof Ze=="string"&&Ze!==""||typeof Ze=="number")return ye=ye.get(we)||null,ne(ve,ye,""+Ze,It);if(typeof Ze=="object"&&Ze!==null){switch(Ze.$$typeof){case I:return ye=ye.get(Ze.key===null?we:Ze.key)||null,ue(ve,ye,Ze,It);case $:return ye=ye.get(Ze.key===null?we:Ze.key)||null,Ce(ve,ye,Ze,It);case H:var Bt=Ze._init;return gt(ye,ve,we,Bt(Ze._payload),It)}if(me(Ze)||U(Ze))return ye=ye.get(we)||null,Ve(ve,ye,Ze,It,null);rf(ve,Ze)}return null}function St(ye,ve,we,Ze){for(var It=null,Bt=null,At=ve,Wt=ve=0,hr=null;At!==null&&Wt<we.length;Wt++){At.index>Wt?(hr=At,At=null):hr=At.sibling;var pn=_e(ye,At,we[Wt],Ze);if(pn===null){At===null&&(At=hr);break}l&&At&&pn.alternate===null&&u(ye,At),ve=M(pn,ve,Wt),Bt===null?It=pn:Bt.sibling=pn,Bt=pn,At=hr}if(Wt===we.length)return h(ye,At),Bn&&Ga(ye,Wt),It;if(At===null){for(;Wt<we.length;Wt++)At=Ue(ye,we[Wt],Ze),At!==null&&(ve=M(At,ve,Wt),Bt===null?It=At:Bt.sibling=At,Bt=At);return Bn&&Ga(ye,Wt),It}for(At=x(ye,At);Wt<we.length;Wt++)hr=gt(At,ye,Wt,we[Wt],Ze),hr!==null&&(l&&hr.alternate!==null&&At.delete(hr.key===null?Wt:hr.key),ve=M(hr,ve,Wt),Bt===null?It=hr:Bt.sibling=hr,Bt=hr);return l&&At.forEach(function(ma){return u(ye,ma)}),Bn&&Ga(ye,Wt),It}function Et(ye,ve,we,Ze){var It=U(we);if(typeof It!="function")throw Error(n(150));if(we=It.call(we),we==null)throw Error(n(151));for(var Bt=It=null,At=ve,Wt=ve=0,hr=null,pn=we.next();At!==null&&!pn.done;Wt++,pn=we.next()){At.index>Wt?(hr=At,At=null):hr=At.sibling;var ma=_e(ye,At,pn.value,Ze);if(ma===null){At===null&&(At=hr);break}l&&At&&ma.alternate===null&&u(ye,At),ve=M(ma,ve,Wt),Bt===null?It=ma:Bt.sibling=ma,Bt=ma,At=hr}if(pn.done)return h(ye,At),Bn&&Ga(ye,Wt),It;if(At===null){for(;!pn.done;Wt++,pn=we.next())pn=Ue(ye,pn.value,Ze),pn!==null&&(ve=M(pn,ve,Wt),Bt===null?It=pn:Bt.sibling=pn,Bt=pn);return Bn&&Ga(ye,Wt),It}for(At=x(ye,At);!pn.done;Wt++,pn=we.next())pn=gt(At,ye,Wt,pn.value,Ze),pn!==null&&(l&&pn.alternate!==null&&At.delete(pn.key===null?Wt:pn.key),ve=M(pn,ve,Wt),Bt===null?It=pn:Bt.sibling=pn,Bt=pn);return l&&At.forEach(function(Q4){return u(ye,Q4)}),Bn&&Ga(ye,Wt),It}function Xn(ye,ve,we,Ze){if(typeof we=="object"&&we!==null&&we.type===T&&we.key===null&&(we=we.props.children),typeof we=="object"&&we!==null){switch(we.$$typeof){case I:e:{for(var It=we.key,Bt=ve;Bt!==null;){if(Bt.key===It){if(It=we.type,It===T){if(Bt.tag===7){h(ye,Bt.sibling),ve=O(Bt,we.props.children),ve.return=ye,ye=ve;break e}}else if(Bt.elementType===It||typeof It=="object"&&It!==null&&It.$$typeof===H&&lx(It)===Bt.type){h(ye,Bt.sibling),ve=O(Bt,we.props),ve.ref=Mc(ye,Bt,we),ve.return=ye,ye=ve;break e}h(ye,Bt);break}else u(ye,Bt);Bt=Bt.sibling}we.type===T?(ve=rs(we.props.children,ye.mode,Ze,we.key),ve.return=ye,ye=ve):(Ze=Cf(we.type,we.key,we.props,null,ye.mode,Ze),Ze.ref=Mc(ye,ve,we),Ze.return=ye,ye=Ze)}return W(ye);case $:e:{for(Bt=we.key;ve!==null;){if(ve.key===Bt)if(ve.tag===4&&ve.stateNode.containerInfo===we.containerInfo&&ve.stateNode.implementation===we.implementation){h(ye,ve.sibling),ve=O(ve,we.children||[]),ve.return=ye,ye=ve;break e}else{h(ye,ve);break}else u(ye,ve);ve=ve.sibling}ve=Vg(we,ye.mode,Ze),ve.return=ye,ye=ve}return W(ye);case H:return Bt=we._init,Xn(ye,ve,Bt(we._payload),Ze)}if(me(we))return St(ye,ve,we,Ze);if(U(we))return Et(ye,ve,we,Ze);rf(ye,we)}return typeof we=="string"&&we!==""||typeof we=="number"?(we=""+we,ve!==null&&ve.tag===6?(h(ye,ve.sibling),ve=O(ve,we),ve.return=ye,ye=ve):(h(ye,ve),ve=_g(we,ye.mode,Ze),ve.return=ye,ye=ve),W(ye)):h(ye,ve)}return Xn}var Js=cx(!0),ux=cx(!1),Nc={},ci=aa(Nc),Rc=aa(Nc),Dc=aa(Nc);function Qa(l){if(l===Nc)throw Error(n(174));return l}function ag(l,u){switch(kn(Dc,u),kn(Rc,l),kn(ci,Nc),l=u.nodeType,l){case 9:case 11:u=(u=u.documentElement)?u.namespaceURI:lt(null,"");break;default:l=l===8?u.parentNode:u,u=l.namespaceURI||null,l=l.tagName,u=lt(u,l)}Nn(ci),kn(ci,u)}function el(){Nn(ci),Nn(Rc),Nn(Dc)}function dx(l){Qa(Dc.current);var u=Qa(ci.current),h=lt(u,l.type);u!==h&&(kn(Rc,l),kn(ci,h))}function sg(l){Rc.current===l&&(Nn(ci),Nn(Rc))}var Vn=aa(0);function of(l){for(var u=l;u!==null;){if(u.tag===13){var h=u.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||h.data==="$?"||h.data==="$!"))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if(u.flags&128)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var lg=[];function cg(){for(var l=0;l<lg.length;l++)lg[l]._workInProgressVersionPrimary=null;lg.length=0}var af=k.ReactCurrentDispatcher,ug=k.ReactCurrentBatchConfig,Za=0,Wn=null,ir=null,pr=null,sf=!1,jc=!1,Lc=0,y4=0;function $r(){throw Error(n(321))}function dg(l,u){if(u===null)return!1;for(var h=0;h<u.length&&h<l.length;h++)if(!zo(l[h],u[h]))return!1;return!0}function fg(l,u,h,x,O,M){if(Za=M,Wn=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,af.current=l===null||l.memoizedState===null?C4:E4,l=h(x,O),jc){M=0;do{if(jc=!1,Lc=0,25<=M)throw Error(n(301));M+=1,pr=ir=null,u.updateQueue=null,af.current=k4,l=h(x,O)}while(jc)}if(af.current=uf,u=ir!==null&&ir.next!==null,Za=0,pr=ir=Wn=null,sf=!1,u)throw Error(n(300));return l}function pg(){var l=Lc!==0;return Lc=0,l}function ui(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pr===null?Wn.memoizedState=pr=l:pr=pr.next=l,pr}function bo(){if(ir===null){var l=Wn.alternate;l=l!==null?l.memoizedState:null}else l=ir.next;var u=pr===null?Wn.memoizedState:pr.next;if(u!==null)pr=u,ir=l;else{if(l===null)throw Error(n(310));ir=l,l={memoizedState:ir.memoizedState,baseState:ir.baseState,baseQueue:ir.baseQueue,queue:ir.queue,next:null},pr===null?Wn.memoizedState=pr=l:pr=pr.next=l}return pr}function Bc(l,u){return typeof u=="function"?u(l):u}function vg(l){var u=bo(),h=u.queue;if(h===null)throw Error(n(311));h.lastRenderedReducer=l;var x=ir,O=x.baseQueue,M=h.pending;if(M!==null){if(O!==null){var W=O.next;O.next=M.next,M.next=W}x.baseQueue=O=M,h.pending=null}if(O!==null){M=O.next,x=x.baseState;var ne=W=null,ue=null,Ce=M;do{var Ve=Ce.lane;if((Za&Ve)===Ve)ue!==null&&(ue=ue.next={lane:0,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null}),x=Ce.hasEagerState?Ce.eagerState:l(x,Ce.action);else{var Ue={lane:Ve,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null};ue===null?(ne=ue=Ue,W=x):ue=ue.next=Ue,Wn.lanes|=Ve,Ja|=Ve}Ce=Ce.next}while(Ce!==null&&Ce!==M);ue===null?W=x:ue.next=ne,zo(x,u.memoizedState)||(Wr=!0),u.memoizedState=x,u.baseState=W,u.baseQueue=ue,h.lastRenderedState=x}if(l=h.interleaved,l!==null){O=l;do M=O.lane,Wn.lanes|=M,Ja|=M,O=O.next;while(O!==l)}else O===null&&(h.lanes=0);return[u.memoizedState,h.dispatch]}function hg(l){var u=bo(),h=u.queue;if(h===null)throw Error(n(311));h.lastRenderedReducer=l;var x=h.dispatch,O=h.pending,M=u.memoizedState;if(O!==null){h.pending=null;var W=O=O.next;do M=l(M,W.action),W=W.next;while(W!==O);zo(M,u.memoizedState)||(Wr=!0),u.memoizedState=M,u.baseQueue===null&&(u.baseState=M),h.lastRenderedState=M}return[M,x]}function fx(){}function px(l,u){var h=Wn,x=bo(),O=u(),M=!zo(x.memoizedState,O);if(M&&(x.memoizedState=O,Wr=!0),x=x.queue,gg(gx.bind(null,h,x,l),[l]),x.getSnapshot!==u||M||pr!==null&&pr.memoizedState.tag&1){if(h.flags|=2048,Ac(9,hx.bind(null,h,x,O,u),void 0,null),vr===null)throw Error(n(349));Za&30||vx(h,u,O)}return O}function vx(l,u,h){l.flags|=16384,l={getSnapshot:u,value:h},u=Wn.updateQueue,u===null?(u={lastEffect:null,stores:null},Wn.updateQueue=u,u.stores=[l]):(h=u.stores,h===null?u.stores=[l]:h.push(l))}function hx(l,u,h,x){u.value=h,u.getSnapshot=x,mx(u)&&bx(l)}function gx(l,u,h){return h(function(){mx(u)&&bx(l)})}function mx(l){var u=l.getSnapshot;l=l.value;try{var h=u();return!zo(l,h)}catch{return!0}}function bx(l){var u=Mi(l,1);u!==null&&Wo(u,l,1,-1)}function yx(l){var u=ui();return typeof l=="function"&&(l=l()),u.memoizedState=u.baseState=l,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Bc,lastRenderedState:l},u.queue=l,l=l.dispatch=S4.bind(null,Wn,l),[u.memoizedState,l]}function Ac(l,u,h,x){return l={tag:l,create:u,destroy:h,deps:x,next:null},u=Wn.updateQueue,u===null?(u={lastEffect:null,stores:null},Wn.updateQueue=u,u.lastEffect=l.next=l):(h=u.lastEffect,h===null?u.lastEffect=l.next=l:(x=h.next,h.next=l,l.next=x,u.lastEffect=l)),l}function wx(){return bo().memoizedState}function lf(l,u,h,x){var O=ui();Wn.flags|=l,O.memoizedState=Ac(1|u,h,void 0,x===void 0?null:x)}function cf(l,u,h,x){var O=bo();x=x===void 0?null:x;var M=void 0;if(ir!==null){var W=ir.memoizedState;if(M=W.destroy,x!==null&&dg(x,W.deps)){O.memoizedState=Ac(u,h,M,x);return}}Wn.flags|=l,O.memoizedState=Ac(1|u,h,M,x)}function xx(l,u){return lf(8390656,8,l,u)}function gg(l,u){return cf(2048,8,l,u)}function Sx(l,u){return cf(4,2,l,u)}function Cx(l,u){return cf(4,4,l,u)}function Ex(l,u){if(typeof u=="function")return l=l(),u(l),function(){u(null)};if(u!=null)return l=l(),u.current=l,function(){u.current=null}}function kx(l,u,h){return h=h!=null?h.concat([l]):null,cf(4,4,Ex.bind(null,u,l),h)}function mg(){}function Ox(l,u){var h=bo();u=u===void 0?null:u;var x=h.memoizedState;return x!==null&&u!==null&&dg(u,x[1])?x[0]:(h.memoizedState=[l,u],l)}function $x(l,u){var h=bo();u=u===void 0?null:u;var x=h.memoizedState;return x!==null&&u!==null&&dg(u,x[1])?x[0]:(l=l(),h.memoizedState=[l,u],l)}function Ix(l,u,h){return Za&21?(zo(h,u)||(h=xn(),Wn.lanes|=h,Ja|=h,l.baseState=!0),u):(l.baseState&&(l.baseState=!1,Wr=!0),l.memoizedState=h)}function w4(l,u){var h=$t;$t=h!==0&&4>h?h:4,l(!0);var x=ug.transition;ug.transition={};try{l(!1),u()}finally{$t=h,ug.transition=x}}function Tx(){return bo().memoizedState}function x4(l,u,h){var x=va(l);if(h={lane:x,action:h,hasEagerState:!1,eagerState:null,next:null},Px(l))Mx(u,h);else if(h=ex(l,u,h,x),h!==null){var O=jr();Wo(h,l,x,O),Nx(h,u,x)}}function S4(l,u,h){var x=va(l),O={lane:x,action:h,hasEagerState:!1,eagerState:null,next:null};if(Px(l))Mx(u,O);else{var M=l.alternate;if(l.lanes===0&&(M===null||M.lanes===0)&&(M=u.lastRenderedReducer,M!==null))try{var W=u.lastRenderedState,ne=M(W,h);if(O.hasEagerState=!0,O.eagerState=ne,zo(ne,W)){var ue=u.interleaved;ue===null?(O.next=O,ng(u)):(O.next=ue.next,ue.next=O),u.interleaved=O;return}}catch{}h=ex(l,u,O,x),h!==null&&(O=jr(),Wo(h,l,x,O),Nx(h,u,x))}}function Px(l){var u=l.alternate;return l===Wn||u!==null&&u===Wn}function Mx(l,u){jc=sf=!0;var h=l.pending;h===null?u.next=u:(u.next=h.next,h.next=u),l.pending=u}function Nx(l,u,h){if(h&4194240){var x=u.lanes;x&=l.pendingLanes,h|=x,u.lanes=h,Lt(l,h)}}var uf={readContext:mo,useCallback:$r,useContext:$r,useEffect:$r,useImperativeHandle:$r,useInsertionEffect:$r,useLayoutEffect:$r,useMemo:$r,useReducer:$r,useRef:$r,useState:$r,useDebugValue:$r,useDeferredValue:$r,useTransition:$r,useMutableSource:$r,useSyncExternalStore:$r,useId:$r,unstable_isNewReconciler:!1},C4={readContext:mo,useCallback:function(l,u){return ui().memoizedState=[l,u===void 0?null:u],l},useContext:mo,useEffect:xx,useImperativeHandle:function(l,u,h){return h=h!=null?h.concat([l]):null,lf(4194308,4,Ex.bind(null,u,l),h)},useLayoutEffect:function(l,u){return lf(4194308,4,l,u)},useInsertionEffect:function(l,u){return lf(4,2,l,u)},useMemo:function(l,u){var h=ui();return u=u===void 0?null:u,l=l(),h.memoizedState=[l,u],l},useReducer:function(l,u,h){var x=ui();return u=h!==void 0?h(u):u,x.memoizedState=x.baseState=u,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:u},x.queue=l,l=l.dispatch=x4.bind(null,Wn,l),[x.memoizedState,l]},useRef:function(l){var u=ui();return l={current:l},u.memoizedState=l},useState:yx,useDebugValue:mg,useDeferredValue:function(l){return ui().memoizedState=l},useTransition:function(){var l=yx(!1),u=l[0];return l=w4.bind(null,l[1]),ui().memoizedState=l,[u,l]},useMutableSource:function(){},useSyncExternalStore:function(l,u,h){var x=Wn,O=ui();if(Bn){if(h===void 0)throw Error(n(407));h=h()}else{if(h=u(),vr===null)throw Error(n(349));Za&30||vx(x,u,h)}O.memoizedState=h;var M={value:h,getSnapshot:u};return O.queue=M,xx(gx.bind(null,x,M,l),[l]),x.flags|=2048,Ac(9,hx.bind(null,x,M,h,u),void 0,null),h},useId:function(){var l=ui(),u=vr.identifierPrefix;if(Bn){var h=Pi,x=Ti;h=(x&~(1<<32-Cn(x)-1)).toString(32)+h,u=":"+u+"R"+h,h=Lc++,0<h&&(u+="H"+h.toString(32)),u+=":"}else h=y4++,u=":"+u+"r"+h.toString(32)+":";return l.memoizedState=u},unstable_isNewReconciler:!1},E4={readContext:mo,useCallback:Ox,useContext:mo,useEffect:gg,useImperativeHandle:kx,useInsertionEffect:Sx,useLayoutEffect:Cx,useMemo:$x,useReducer:vg,useRef:wx,useState:function(){return vg(Bc)},useDebugValue:mg,useDeferredValue:function(l){var u=bo();return Ix(u,ir.memoizedState,l)},useTransition:function(){var l=vg(Bc)[0],u=bo().memoizedState;return[l,u]},useMutableSource:fx,useSyncExternalStore:px,useId:Tx,unstable_isNewReconciler:!1},k4={readContext:mo,useCallback:Ox,useContext:mo,useEffect:gg,useImperativeHandle:kx,useInsertionEffect:Sx,useLayoutEffect:Cx,useMemo:$x,useReducer:hg,useRef:wx,useState:function(){return hg(Bc)},useDebugValue:mg,useDeferredValue:function(l){var u=bo();return ir===null?u.memoizedState=l:Ix(u,ir.memoizedState,l)},useTransition:function(){var l=hg(Bc)[0],u=bo().memoizedState;return[l,u]},useMutableSource:fx,useSyncExternalStore:px,useId:Tx,unstable_isNewReconciler:!1};function tl(l,u){try{var h="",x=u;do h+=G(x),x=x.return;while(x);var O=h}catch(M){O=`
Error generating stack: `+M.message+`
`+M.stack}return{value:l,source:u,stack:O,digest:null}}function bg(l,u,h){return{value:l,source:null,stack:h??null,digest:u??null}}function yg(l,u){try{}catch(h){setTimeout(function(){throw h})}}var O4=typeof WeakMap=="function"?WeakMap:Map;function Rx(l,u,h){h=Ni(-1,h),h.tag=3,h.payload={element:null};var x=u.value;return h.callback=function(){mf||(mf=!0,Dg=x),yg(l,u)},h}function Dx(l,u,h){h=Ni(-1,h),h.tag=3;var x=l.type.getDerivedStateFromError;if(typeof x=="function"){var O=u.value;h.payload=function(){return x(O)},h.callback=function(){yg(l,u)}}var M=l.stateNode;return M!==null&&typeof M.componentDidCatch=="function"&&(h.callback=function(){yg(l,u),typeof x!="function"&&(fa===null?fa=new Set([this]):fa.add(this));var W=u.stack;this.componentDidCatch(u.value,{componentStack:W!==null?W:""})}),h}function jx(l,u,h){var x=l.pingCache;if(x===null){x=l.pingCache=new O4;var O=new Set;x.set(u,O)}else O=x.get(u),O===void 0&&(O=new Set,x.set(u,O));O.has(h)||(O.add(h),l=F4.bind(null,l,u,h),u.then(l,l))}function Lx(l){do{var u;if((u=l.tag===13)&&(u=l.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return l;l=l.return}while(l!==null);return null}function Bx(l,u,h,x,O){return l.mode&1?(l.flags|=65536,l.lanes=O,l):(l===u?l.flags|=65536:(l.flags|=128,h.flags|=131072,h.flags&=-52805,h.tag===1&&(h.alternate===null?h.tag=17:(u=Ni(-1,1),u.tag=2,ua(h,u,1))),h.lanes|=1),l)}var $4=k.ReactCurrentOwner,Wr=!1;function Dr(l,u,h,x){u.child=l===null?ux(u,null,h,x):Js(u,l.child,h,x)}function Ax(l,u,h,x,O){h=h.render;var M=u.ref;return Zs(u,O),x=fg(l,u,h,x,M,O),h=pg(),l!==null&&!Wr?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~O,Ri(l,u,O)):(Bn&&h&&qh(u),u.flags|=1,Dr(l,u,x,O),u.child)}function zx(l,u,h,x,O){if(l===null){var M=h.type;return typeof M=="function"&&!Hg(M)&&M.defaultProps===void 0&&h.compare===null&&h.defaultProps===void 0?(u.tag=15,u.type=M,Fx(l,u,M,x,O)):(l=Cf(h.type,null,x,u,u.mode,O),l.ref=u.ref,l.return=u,u.child=l)}if(M=l.child,!(l.lanes&O)){var W=M.memoizedProps;if(h=h.compare,h=h!==null?h:Ec,h(W,x)&&l.ref===u.ref)return Ri(l,u,O)}return u.flags|=1,l=ga(M,x),l.ref=u.ref,l.return=u,u.child=l}function Fx(l,u,h,x,O){if(l!==null){var M=l.memoizedProps;if(Ec(M,x)&&l.ref===u.ref)if(Wr=!1,u.pendingProps=x=M,(l.lanes&O)!==0)l.flags&131072&&(Wr=!0);else return u.lanes=l.lanes,Ri(l,u,O)}return wg(l,u,h,x,O)}function Hx(l,u,h){var x=u.pendingProps,O=x.children,M=l!==null?l.memoizedState:null;if(x.mode==="hidden")if(!(u.mode&1))u.memoizedState={baseLanes:0,cachePool:null,transitions:null},kn(rl,io),io|=h;else{if(!(h&1073741824))return l=M!==null?M.baseLanes|h:h,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:l,cachePool:null,transitions:null},u.updateQueue=null,kn(rl,io),io|=l,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},x=M!==null?M.baseLanes:h,kn(rl,io),io|=x}else M!==null?(x=M.baseLanes|h,u.memoizedState=null):x=h,kn(rl,io),io|=x;return Dr(l,u,O,h),u.child}function _x(l,u){var h=u.ref;(l===null&&h!==null||l!==null&&l.ref!==h)&&(u.flags|=512,u.flags|=2097152)}function wg(l,u,h,x,O){var M=Vr(h)?qa:Or.current;return M=qs(u,M),Zs(u,O),h=fg(l,u,h,x,M,O),x=pg(),l!==null&&!Wr?(u.updateQueue=l.updateQueue,u.flags&=-2053,l.lanes&=~O,Ri(l,u,O)):(Bn&&x&&qh(u),u.flags|=1,Dr(l,u,h,O),u.child)}function Vx(l,u,h,x,O){if(Vr(h)){var M=!0;qd(u)}else M=!1;if(Zs(u,O),u.stateNode===null)ff(l,u),ax(u,h,x),ig(u,h,x,O),x=!0;else if(l===null){var W=u.stateNode,ne=u.memoizedProps;W.props=ne;var ue=W.context,Ce=h.contextType;typeof Ce=="object"&&Ce!==null?Ce=mo(Ce):(Ce=Vr(h)?qa:Or.current,Ce=qs(u,Ce));var Ve=h.getDerivedStateFromProps,Ue=typeof Ve=="function"||typeof W.getSnapshotBeforeUpdate=="function";Ue||typeof W.UNSAFE_componentWillReceiveProps!="function"&&typeof W.componentWillReceiveProps!="function"||(ne!==x||ue!==Ce)&&sx(u,W,x,Ce),ca=!1;var _e=u.memoizedState;W.state=_e,tf(u,x,W,O),ue=u.memoizedState,ne!==x||_e!==ue||_r.current||ca?(typeof Ve=="function"&&(og(u,h,Ve,x),ue=u.memoizedState),(ne=ca||ix(u,h,ne,x,_e,ue,Ce))?(Ue||typeof W.UNSAFE_componentWillMount!="function"&&typeof W.componentWillMount!="function"||(typeof W.componentWillMount=="function"&&W.componentWillMount(),typeof W.UNSAFE_componentWillMount=="function"&&W.UNSAFE_componentWillMount()),typeof W.componentDidMount=="function"&&(u.flags|=4194308)):(typeof W.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=x,u.memoizedState=ue),W.props=x,W.state=ue,W.context=Ce,x=ne):(typeof W.componentDidMount=="function"&&(u.flags|=4194308),x=!1)}else{W=u.stateNode,tx(l,u),ne=u.memoizedProps,Ce=u.type===u.elementType?ne:Ho(u.type,ne),W.props=Ce,Ue=u.pendingProps,_e=W.context,ue=h.contextType,typeof ue=="object"&&ue!==null?ue=mo(ue):(ue=Vr(h)?qa:Or.current,ue=qs(u,ue));var gt=h.getDerivedStateFromProps;(Ve=typeof gt=="function"||typeof W.getSnapshotBeforeUpdate=="function")||typeof W.UNSAFE_componentWillReceiveProps!="function"&&typeof W.componentWillReceiveProps!="function"||(ne!==Ue||_e!==ue)&&sx(u,W,x,ue),ca=!1,_e=u.memoizedState,W.state=_e,tf(u,x,W,O);var St=u.memoizedState;ne!==Ue||_e!==St||_r.current||ca?(typeof gt=="function"&&(og(u,h,gt,x),St=u.memoizedState),(Ce=ca||ix(u,h,Ce,x,_e,St,ue)||!1)?(Ve||typeof W.UNSAFE_componentWillUpdate!="function"&&typeof W.componentWillUpdate!="function"||(typeof W.componentWillUpdate=="function"&&W.componentWillUpdate(x,St,ue),typeof W.UNSAFE_componentWillUpdate=="function"&&W.UNSAFE_componentWillUpdate(x,St,ue)),typeof W.componentDidUpdate=="function"&&(u.flags|=4),typeof W.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof W.componentDidUpdate!="function"||ne===l.memoizedProps&&_e===l.memoizedState||(u.flags|=4),typeof W.getSnapshotBeforeUpdate!="function"||ne===l.memoizedProps&&_e===l.memoizedState||(u.flags|=1024),u.memoizedProps=x,u.memoizedState=St),W.props=x,W.state=St,W.context=ue,x=Ce):(typeof W.componentDidUpdate!="function"||ne===l.memoizedProps&&_e===l.memoizedState||(u.flags|=4),typeof W.getSnapshotBeforeUpdate!="function"||ne===l.memoizedProps&&_e===l.memoizedState||(u.flags|=1024),x=!1)}return xg(l,u,h,x,M,O)}function xg(l,u,h,x,O,M){_x(l,u);var W=(u.flags&128)!==0;if(!x&&!W)return O&&q1(u,h,!1),Ri(l,u,M);x=u.stateNode,$4.current=u;var ne=W&&typeof h.getDerivedStateFromError!="function"?null:x.render();return u.flags|=1,l!==null&&W?(u.child=Js(u,l.child,null,M),u.child=Js(u,null,ne,M)):Dr(l,u,ne,M),u.memoizedState=x.state,O&&q1(u,h,!0),u.child}function Wx(l){var u=l.stateNode;u.pendingContext?U1(l,u.pendingContext,u.pendingContext!==u.context):u.context&&U1(l,u.context,!1),ag(l,u.containerInfo)}function Ux(l,u,h,x,O){return Ys(),Qh(O),u.flags|=256,Dr(l,u,h,x),u.child}var Sg={dehydrated:null,treeContext:null,retryLane:0};function Cg(l){return{baseLanes:l,cachePool:null,transitions:null}}function Kx(l,u,h){var x=u.pendingProps,O=Vn.current,M=!1,W=(u.flags&128)!==0,ne;if((ne=W)||(ne=l!==null&&l.memoizedState===null?!1:(O&2)!==0),ne?(M=!0,u.flags&=-129):(l===null||l.memoizedState!==null)&&(O|=1),kn(Vn,O&1),l===null)return Yh(u),l=u.memoizedState,l!==null&&(l=l.dehydrated,l!==null)?(u.mode&1?l.data==="$!"?u.lanes=8:u.lanes=1073741824:u.lanes=1,null):(W=x.children,l=x.fallback,M?(x=u.mode,M=u.child,W={mode:"hidden",children:W},!(x&1)&&M!==null?(M.childLanes=0,M.pendingProps=W):M=Ef(W,x,0,null),l=rs(l,x,h,null),M.return=u,l.return=u,M.sibling=l,u.child=M,u.child.memoizedState=Cg(h),u.memoizedState=Sg,l):Eg(u,W));if(O=l.memoizedState,O!==null&&(ne=O.dehydrated,ne!==null))return I4(l,u,W,x,ne,O,h);if(M){M=x.fallback,W=u.mode,O=l.child,ne=O.sibling;var ue={mode:"hidden",children:x.children};return!(W&1)&&u.child!==O?(x=u.child,x.childLanes=0,x.pendingProps=ue,u.deletions=null):(x=ga(O,ue),x.subtreeFlags=O.subtreeFlags&14680064),ne!==null?M=ga(ne,M):(M=rs(M,W,h,null),M.flags|=2),M.return=u,x.return=u,x.sibling=M,u.child=x,x=M,M=u.child,W=l.child.memoizedState,W=W===null?Cg(h):{baseLanes:W.baseLanes|h,cachePool:null,transitions:W.transitions},M.memoizedState=W,M.childLanes=l.childLanes&~h,u.memoizedState=Sg,x}return M=l.child,l=M.sibling,x=ga(M,{mode:"visible",children:x.children}),!(u.mode&1)&&(x.lanes=h),x.return=u,x.sibling=null,l!==null&&(h=u.deletions,h===null?(u.deletions=[l],u.flags|=16):h.push(l)),u.child=x,u.memoizedState=null,x}function Eg(l,u){return u=Ef({mode:"visible",children:u},l.mode,0,null),u.return=l,l.child=u}function df(l,u,h,x){return x!==null&&Qh(x),Js(u,l.child,null,h),l=Eg(u,u.pendingProps.children),l.flags|=2,u.memoizedState=null,l}function I4(l,u,h,x,O,M,W){if(h)return u.flags&256?(u.flags&=-257,x=bg(Error(n(422))),df(l,u,W,x)):u.memoizedState!==null?(u.child=l.child,u.flags|=128,null):(M=x.fallback,O=u.mode,x=Ef({mode:"visible",children:x.children},O,0,null),M=rs(M,O,W,null),M.flags|=2,x.return=u,M.return=u,x.sibling=M,u.child=x,u.mode&1&&Js(u,l.child,null,W),u.child.memoizedState=Cg(W),u.memoizedState=Sg,M);if(!(u.mode&1))return df(l,u,W,null);if(O.data==="$!"){if(x=O.nextSibling&&O.nextSibling.dataset,x)var ne=x.dgst;return x=ne,M=Error(n(419)),x=bg(M,x,void 0),df(l,u,W,x)}if(ne=(W&l.childLanes)!==0,Wr||ne){if(x=vr,x!==null){switch(W&-W){case 4:O=2;break;case 16:O=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:O=32;break;case 536870912:O=268435456;break;default:O=0}O=O&(x.suspendedLanes|W)?0:O,O!==0&&O!==M.retryLane&&(M.retryLane=O,Mi(l,O),Wo(x,l,O,-1))}return Fg(),x=bg(Error(n(421))),df(l,u,W,x)}return O.data==="$?"?(u.flags|=128,u.child=l.child,u=H4.bind(null,l),O._reactRetry=u,null):(l=M.treeContext,oo=ia(O.nextSibling),ro=u,Bn=!0,Fo=null,l!==null&&(ho[go++]=Ti,ho[go++]=Pi,ho[go++]=Xa,Ti=l.id,Pi=l.overflow,Xa=u),u=Eg(u,x.children),u.flags|=4096,u)}function qx(l,u,h){l.lanes|=u;var x=l.alternate;x!==null&&(x.lanes|=u),tg(l.return,u,h)}function kg(l,u,h,x,O){var M=l.memoizedState;M===null?l.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:x,tail:h,tailMode:O}:(M.isBackwards=u,M.rendering=null,M.renderingStartTime=0,M.last=x,M.tail=h,M.tailMode=O)}function Xx(l,u,h){var x=u.pendingProps,O=x.revealOrder,M=x.tail;if(Dr(l,u,x.children,h),x=Vn.current,x&2)x=x&1|2,u.flags|=128;else{if(l!==null&&l.flags&128)e:for(l=u.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&qx(l,h,u);else if(l.tag===19)qx(l,h,u);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===u)break e;for(;l.sibling===null;){if(l.return===null||l.return===u)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}x&=1}if(kn(Vn,x),!(u.mode&1))u.memoizedState=null;else switch(O){case"forwards":for(h=u.child,O=null;h!==null;)l=h.alternate,l!==null&&of(l)===null&&(O=h),h=h.sibling;h=O,h===null?(O=u.child,u.child=null):(O=h.sibling,h.sibling=null),kg(u,!1,O,h,M);break;case"backwards":for(h=null,O=u.child,u.child=null;O!==null;){if(l=O.alternate,l!==null&&of(l)===null){u.child=O;break}l=O.sibling,O.sibling=h,h=O,O=l}kg(u,!0,h,null,M);break;case"together":kg(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function ff(l,u){!(u.mode&1)&&l!==null&&(l.alternate=null,u.alternate=null,u.flags|=2)}function Ri(l,u,h){if(l!==null&&(u.dependencies=l.dependencies),Ja|=u.lanes,!(h&u.childLanes))return null;if(l!==null&&u.child!==l.child)throw Error(n(153));if(u.child!==null){for(l=u.child,h=ga(l,l.pendingProps),u.child=h,h.return=u;l.sibling!==null;)l=l.sibling,h=h.sibling=ga(l,l.pendingProps),h.return=u;h.sibling=null}return u.child}function T4(l,u,h){switch(u.tag){case 3:Wx(u),Ys();break;case 5:dx(u);break;case 1:Vr(u.type)&&qd(u);break;case 4:ag(u,u.stateNode.containerInfo);break;case 10:var x=u.type._context,O=u.memoizedProps.value;kn(Zd,x._currentValue),x._currentValue=O;break;case 13:if(x=u.memoizedState,x!==null)return x.dehydrated!==null?(kn(Vn,Vn.current&1),u.flags|=128,null):h&u.child.childLanes?Kx(l,u,h):(kn(Vn,Vn.current&1),l=Ri(l,u,h),l!==null?l.sibling:null);kn(Vn,Vn.current&1);break;case 19:if(x=(h&u.childLanes)!==0,l.flags&128){if(x)return Xx(l,u,h);u.flags|=128}if(O=u.memoizedState,O!==null&&(O.rendering=null,O.tail=null,O.lastEffect=null),kn(Vn,Vn.current),x)break;return null;case 22:case 23:return u.lanes=0,Hx(l,u,h)}return Ri(l,u,h)}var Gx,Og,Yx,Qx;Gx=function(l,u){for(var h=u.child;h!==null;){if(h.tag===5||h.tag===6)l.appendChild(h.stateNode);else if(h.tag!==4&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===u)break;for(;h.sibling===null;){if(h.return===null||h.return===u)return;h=h.return}h.sibling.return=h.return,h=h.sibling}},Og=function(){},Yx=function(l,u,h,x){var O=l.memoizedProps;if(O!==x){l=u.stateNode,Qa(ci.current);var M=null;switch(h){case"input":O=re(l,O),x=re(l,x),M=[];break;case"select":O=R({},O,{value:void 0}),x=R({},x,{value:void 0}),M=[];break;case"textarea":O=Pe(l,O),x=Pe(l,x),M=[];break;default:typeof O.onClick!="function"&&typeof x.onClick=="function"&&(l.onclick=Wd)}je(h,x);var W;h=null;for(Ce in O)if(!x.hasOwnProperty(Ce)&&O.hasOwnProperty(Ce)&&O[Ce]!=null)if(Ce==="style"){var ne=O[Ce];for(W in ne)ne.hasOwnProperty(W)&&(h||(h={}),h[W]="")}else Ce!=="dangerouslySetInnerHTML"&&Ce!=="children"&&Ce!=="suppressContentEditableWarning"&&Ce!=="suppressHydrationWarning"&&Ce!=="autoFocus"&&(o.hasOwnProperty(Ce)?M||(M=[]):(M=M||[]).push(Ce,null));for(Ce in x){var ue=x[Ce];if(ne=O!=null?O[Ce]:void 0,x.hasOwnProperty(Ce)&&ue!==ne&&(ue!=null||ne!=null))if(Ce==="style")if(ne){for(W in ne)!ne.hasOwnProperty(W)||ue&&ue.hasOwnProperty(W)||(h||(h={}),h[W]="");for(W in ue)ue.hasOwnProperty(W)&&ne[W]!==ue[W]&&(h||(h={}),h[W]=ue[W])}else h||(M||(M=[]),M.push(Ce,h)),h=ue;else Ce==="dangerouslySetInnerHTML"?(ue=ue?ue.__html:void 0,ne=ne?ne.__html:void 0,ue!=null&&ne!==ue&&(M=M||[]).push(Ce,ue)):Ce==="children"?typeof ue!="string"&&typeof ue!="number"||(M=M||[]).push(Ce,""+ue):Ce!=="suppressContentEditableWarning"&&Ce!=="suppressHydrationWarning"&&(o.hasOwnProperty(Ce)?(ue!=null&&Ce==="onScroll"&&Mn("scroll",l),M||ne===ue||(M=[])):(M=M||[]).push(Ce,ue))}h&&(M=M||[]).push("style",h);var Ce=M;(u.updateQueue=Ce)&&(u.flags|=4)}},Qx=function(l,u,h,x){h!==x&&(u.flags|=4)};function zc(l,u){if(!Bn)switch(l.tailMode){case"hidden":u=l.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?l.tail=null:h.sibling=null;break;case"collapsed":h=l.tail;for(var x=null;h!==null;)h.alternate!==null&&(x=h),h=h.sibling;x===null?u||l.tail===null?l.tail=null:l.tail.sibling=null:x.sibling=null}}function Ir(l){var u=l.alternate!==null&&l.alternate.child===l.child,h=0,x=0;if(u)for(var O=l.child;O!==null;)h|=O.lanes|O.childLanes,x|=O.subtreeFlags&14680064,x|=O.flags&14680064,O.return=l,O=O.sibling;else for(O=l.child;O!==null;)h|=O.lanes|O.childLanes,x|=O.subtreeFlags,x|=O.flags,O.return=l,O=O.sibling;return l.subtreeFlags|=x,l.childLanes=h,u}function P4(l,u,h){var x=u.pendingProps;switch(Xh(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ir(u),null;case 1:return Vr(u.type)&&Kd(),Ir(u),null;case 3:return x=u.stateNode,el(),Nn(_r),Nn(Or),cg(),x.pendingContext&&(x.context=x.pendingContext,x.pendingContext=null),(l===null||l.child===null)&&(Qd(u)?u.flags|=4:l===null||l.memoizedState.isDehydrated&&!(u.flags&256)||(u.flags|=1024,Fo!==null&&(Bg(Fo),Fo=null))),Og(l,u),Ir(u),null;case 5:sg(u);var O=Qa(Dc.current);if(h=u.type,l!==null&&u.stateNode!=null)Yx(l,u,h,x,O),l.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!x){if(u.stateNode===null)throw Error(n(166));return Ir(u),null}if(l=Qa(ci.current),Qd(u)){x=u.stateNode,h=u.type;var M=u.memoizedProps;switch(x[li]=u,x[Tc]=M,l=(u.mode&1)!==0,h){case"dialog":Mn("cancel",x),Mn("close",x);break;case"iframe":case"object":case"embed":Mn("load",x);break;case"video":case"audio":for(O=0;O<Oc.length;O++)Mn(Oc[O],x);break;case"source":Mn("error",x);break;case"img":case"image":case"link":Mn("error",x),Mn("load",x);break;case"details":Mn("toggle",x);break;case"input":le(x,M),Mn("invalid",x);break;case"select":x._wrapperState={wasMultiple:!!M.multiple},Mn("invalid",x);break;case"textarea":Ie(x,M),Mn("invalid",x)}je(h,M),O=null;for(var W in M)if(M.hasOwnProperty(W)){var ne=M[W];W==="children"?typeof ne=="string"?x.textContent!==ne&&(M.suppressHydrationWarning!==!0&&Vd(x.textContent,ne,l),O=["children",ne]):typeof ne=="number"&&x.textContent!==""+ne&&(M.suppressHydrationWarning!==!0&&Vd(x.textContent,ne,l),O=["children",""+ne]):o.hasOwnProperty(W)&&ne!=null&&W==="onScroll"&&Mn("scroll",x)}switch(h){case"input":ee(x),Se(x,M,!0);break;case"textarea":ee(x),Be(x);break;case"select":case"option":break;default:typeof M.onClick=="function"&&(x.onclick=Wd)}x=O,u.updateQueue=x,x!==null&&(u.flags|=4)}else{W=O.nodeType===9?O:O.ownerDocument,l==="http://www.w3.org/1999/xhtml"&&(l=qe(h)),l==="http://www.w3.org/1999/xhtml"?h==="script"?(l=W.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild)):typeof x.is=="string"?l=W.createElement(h,{is:x.is}):(l=W.createElement(h),h==="select"&&(W=l,x.multiple?W.multiple=!0:x.size&&(W.size=x.size))):l=W.createElementNS(l,h),l[li]=u,l[Tc]=x,Gx(l,u,!1,!1),u.stateNode=l;e:{switch(W=Ye(h,x),h){case"dialog":Mn("cancel",l),Mn("close",l),O=x;break;case"iframe":case"object":case"embed":Mn("load",l),O=x;break;case"video":case"audio":for(O=0;O<Oc.length;O++)Mn(Oc[O],l);O=x;break;case"source":Mn("error",l),O=x;break;case"img":case"image":case"link":Mn("error",l),Mn("load",l),O=x;break;case"details":Mn("toggle",l),O=x;break;case"input":le(l,x),O=re(l,x),Mn("invalid",l);break;case"option":O=x;break;case"select":l._wrapperState={wasMultiple:!!x.multiple},O=R({},x,{value:void 0}),Mn("invalid",l);break;case"textarea":Ie(l,x),O=Pe(l,x),Mn("invalid",l);break;default:O=x}je(h,O),ne=O;for(M in ne)if(ne.hasOwnProperty(M)){var ue=ne[M];M==="style"?We(l,ue):M==="dangerouslySetInnerHTML"?(ue=ue?ue.__html:void 0,ue!=null&&He(l,ue)):M==="children"?typeof ue=="string"?(h!=="textarea"||ue!=="")&&Fe(l,ue):typeof ue=="number"&&Fe(l,""+ue):M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&M!=="autoFocus"&&(o.hasOwnProperty(M)?ue!=null&&M==="onScroll"&&Mn("scroll",l):ue!=null&&E(l,M,ue,W))}switch(h){case"input":ee(l),Se(l,x,!1);break;case"textarea":ee(l),Be(l);break;case"option":x.value!=null&&l.setAttribute("value",""+oe(x.value));break;case"select":l.multiple=!!x.multiple,M=x.value,M!=null?xe(l,!!x.multiple,M,!1):x.defaultValue!=null&&xe(l,!!x.multiple,x.defaultValue,!0);break;default:typeof O.onClick=="function"&&(l.onclick=Wd)}switch(h){case"button":case"input":case"select":case"textarea":x=!!x.autoFocus;break e;case"img":x=!0;break e;default:x=!1}}x&&(u.flags|=4)}u.ref!==null&&(u.flags|=512,u.flags|=2097152)}return Ir(u),null;case 6:if(l&&u.stateNode!=null)Qx(l,u,l.memoizedProps,x);else{if(typeof x!="string"&&u.stateNode===null)throw Error(n(166));if(h=Qa(Dc.current),Qa(ci.current),Qd(u)){if(x=u.stateNode,h=u.memoizedProps,x[li]=u,(M=x.nodeValue!==h)&&(l=ro,l!==null))switch(l.tag){case 3:Vd(x.nodeValue,h,(l.mode&1)!==0);break;case 5:l.memoizedProps.suppressHydrationWarning!==!0&&Vd(x.nodeValue,h,(l.mode&1)!==0)}M&&(u.flags|=4)}else x=(h.nodeType===9?h:h.ownerDocument).createTextNode(x),x[li]=u,u.stateNode=x}return Ir(u),null;case 13:if(Nn(Vn),x=u.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(Bn&&oo!==null&&u.mode&1&&!(u.flags&128))J1(),Ys(),u.flags|=98560,M=!1;else if(M=Qd(u),x!==null&&x.dehydrated!==null){if(l===null){if(!M)throw Error(n(318));if(M=u.memoizedState,M=M!==null?M.dehydrated:null,!M)throw Error(n(317));M[li]=u}else Ys(),!(u.flags&128)&&(u.memoizedState=null),u.flags|=4;Ir(u),M=!1}else Fo!==null&&(Bg(Fo),Fo=null),M=!0;if(!M)return u.flags&65536?u:null}return u.flags&128?(u.lanes=h,u):(x=x!==null,x!==(l!==null&&l.memoizedState!==null)&&x&&(u.child.flags|=8192,u.mode&1&&(l===null||Vn.current&1?ar===0&&(ar=3):Fg())),u.updateQueue!==null&&(u.flags|=4),Ir(u),null);case 4:return el(),Og(l,u),l===null&&$c(u.stateNode.containerInfo),Ir(u),null;case 10:return eg(u.type._context),Ir(u),null;case 17:return Vr(u.type)&&Kd(),Ir(u),null;case 19:if(Nn(Vn),M=u.memoizedState,M===null)return Ir(u),null;if(x=(u.flags&128)!==0,W=M.rendering,W===null)if(x)zc(M,!1);else{if(ar!==0||l!==null&&l.flags&128)for(l=u.child;l!==null;){if(W=of(l),W!==null){for(u.flags|=128,zc(M,!1),x=W.updateQueue,x!==null&&(u.updateQueue=x,u.flags|=4),u.subtreeFlags=0,x=h,h=u.child;h!==null;)M=h,l=x,M.flags&=14680066,W=M.alternate,W===null?(M.childLanes=0,M.lanes=l,M.child=null,M.subtreeFlags=0,M.memoizedProps=null,M.memoizedState=null,M.updateQueue=null,M.dependencies=null,M.stateNode=null):(M.childLanes=W.childLanes,M.lanes=W.lanes,M.child=W.child,M.subtreeFlags=0,M.deletions=null,M.memoizedProps=W.memoizedProps,M.memoizedState=W.memoizedState,M.updateQueue=W.updateQueue,M.type=W.type,l=W.dependencies,M.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),h=h.sibling;return kn(Vn,Vn.current&1|2),u.child}l=l.sibling}M.tail!==null&&Yt()>ol&&(u.flags|=128,x=!0,zc(M,!1),u.lanes=4194304)}else{if(!x)if(l=of(W),l!==null){if(u.flags|=128,x=!0,h=l.updateQueue,h!==null&&(u.updateQueue=h,u.flags|=4),zc(M,!0),M.tail===null&&M.tailMode==="hidden"&&!W.alternate&&!Bn)return Ir(u),null}else 2*Yt()-M.renderingStartTime>ol&&h!==1073741824&&(u.flags|=128,x=!0,zc(M,!1),u.lanes=4194304);M.isBackwards?(W.sibling=u.child,u.child=W):(h=M.last,h!==null?h.sibling=W:u.child=W,M.last=W)}return M.tail!==null?(u=M.tail,M.rendering=u,M.tail=u.sibling,M.renderingStartTime=Yt(),u.sibling=null,h=Vn.current,kn(Vn,x?h&1|2:h&1),u):(Ir(u),null);case 22:case 23:return zg(),x=u.memoizedState!==null,l!==null&&l.memoizedState!==null!==x&&(u.flags|=8192),x&&u.mode&1?io&1073741824&&(Ir(u),u.subtreeFlags&6&&(u.flags|=8192)):Ir(u),null;case 24:return null;case 25:return null}throw Error(n(156,u.tag))}function M4(l,u){switch(Xh(u),u.tag){case 1:return Vr(u.type)&&Kd(),l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 3:return el(),Nn(_r),Nn(Or),cg(),l=u.flags,l&65536&&!(l&128)?(u.flags=l&-65537|128,u):null;case 5:return sg(u),null;case 13:if(Nn(Vn),l=u.memoizedState,l!==null&&l.dehydrated!==null){if(u.alternate===null)throw Error(n(340));Ys()}return l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 19:return Nn(Vn),null;case 4:return el(),null;case 10:return eg(u.type._context),null;case 22:case 23:return zg(),null;case 24:return null;default:return null}}var pf=!1,Tr=!1,N4=typeof WeakSet=="function"?WeakSet:Set,wt=null;function nl(l,u){var h=l.ref;if(h!==null)if(typeof h=="function")try{h(null)}catch(x){Un(l,u,x)}else h.current=null}function $g(l,u,h){try{h()}catch(x){Un(l,u,x)}}var Zx=!1;function R4(l,u){if(zh=Nd,l=T1(),Mh(l)){if("selectionStart"in l)var h={start:l.selectionStart,end:l.selectionEnd};else e:{h=(h=l.ownerDocument)&&h.defaultView||window;var x=h.getSelection&&h.getSelection();if(x&&x.rangeCount!==0){h=x.anchorNode;var O=x.anchorOffset,M=x.focusNode;x=x.focusOffset;try{h.nodeType,M.nodeType}catch{h=null;break e}var W=0,ne=-1,ue=-1,Ce=0,Ve=0,Ue=l,_e=null;t:for(;;){for(var gt;Ue!==h||O!==0&&Ue.nodeType!==3||(ne=W+O),Ue!==M||x!==0&&Ue.nodeType!==3||(ue=W+x),Ue.nodeType===3&&(W+=Ue.nodeValue.length),(gt=Ue.firstChild)!==null;)_e=Ue,Ue=gt;for(;;){if(Ue===l)break t;if(_e===h&&++Ce===O&&(ne=W),_e===M&&++Ve===x&&(ue=W),(gt=Ue.nextSibling)!==null)break;Ue=_e,_e=Ue.parentNode}Ue=gt}h=ne===-1||ue===-1?null:{start:ne,end:ue}}else h=null}h=h||{start:0,end:0}}else h=null;for(Fh={focusedElem:l,selectionRange:h},Nd=!1,wt=u;wt!==null;)if(u=wt,l=u.child,(u.subtreeFlags&1028)!==0&&l!==null)l.return=u,wt=l;else for(;wt!==null;){u=wt;try{var St=u.alternate;if(u.flags&1024)switch(u.tag){case 0:case 11:case 15:break;case 1:if(St!==null){var Et=St.memoizedProps,Xn=St.memoizedState,ye=u.stateNode,ve=ye.getSnapshotBeforeUpdate(u.elementType===u.type?Et:Ho(u.type,Et),Xn);ye.__reactInternalSnapshotBeforeUpdate=ve}break;case 3:var we=u.stateNode.containerInfo;we.nodeType===1?we.textContent="":we.nodeType===9&&we.documentElement&&we.removeChild(we.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Ze){Un(u,u.return,Ze)}if(l=u.sibling,l!==null){l.return=u.return,wt=l;break}wt=u.return}return St=Zx,Zx=!1,St}function Fc(l,u,h){var x=u.updateQueue;if(x=x!==null?x.lastEffect:null,x!==null){var O=x=x.next;do{if((O.tag&l)===l){var M=O.destroy;O.destroy=void 0,M!==void 0&&$g(u,h,M)}O=O.next}while(O!==x)}}function vf(l,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var h=u=u.next;do{if((h.tag&l)===l){var x=h.create;h.destroy=x()}h=h.next}while(h!==u)}}function Ig(l){var u=l.ref;if(u!==null){var h=l.stateNode;switch(l.tag){case 5:l=h;break;default:l=h}typeof u=="function"?u(l):u.current=l}}function Jx(l){var u=l.alternate;u!==null&&(l.alternate=null,Jx(u)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(u=l.stateNode,u!==null&&(delete u[li],delete u[Tc],delete u[Wh],delete u[h4],delete u[g4])),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function eS(l){return l.tag===5||l.tag===3||l.tag===4}function tS(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||eS(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Tg(l,u,h){var x=l.tag;if(x===5||x===6)l=l.stateNode,u?h.nodeType===8?h.parentNode.insertBefore(l,u):h.insertBefore(l,u):(h.nodeType===8?(u=h.parentNode,u.insertBefore(l,h)):(u=h,u.appendChild(l)),h=h._reactRootContainer,h!=null||u.onclick!==null||(u.onclick=Wd));else if(x!==4&&(l=l.child,l!==null))for(Tg(l,u,h),l=l.sibling;l!==null;)Tg(l,u,h),l=l.sibling}function Pg(l,u,h){var x=l.tag;if(x===5||x===6)l=l.stateNode,u?h.insertBefore(l,u):h.appendChild(l);else if(x!==4&&(l=l.child,l!==null))for(Pg(l,u,h),l=l.sibling;l!==null;)Pg(l,u,h),l=l.sibling}var wr=null,_o=!1;function da(l,u,h){for(h=h.child;h!==null;)nS(l,u,h),h=h.sibling}function nS(l,u,h){if(gn&&typeof gn.onCommitFiberUnmount=="function")try{gn.onCommitFiberUnmount(hn,h)}catch{}switch(h.tag){case 5:Tr||nl(h,u);case 6:var x=wr,O=_o;wr=null,da(l,u,h),wr=x,_o=O,wr!==null&&(_o?(l=wr,h=h.stateNode,l.nodeType===8?l.parentNode.removeChild(h):l.removeChild(h)):wr.removeChild(h.stateNode));break;case 18:wr!==null&&(_o?(l=wr,h=h.stateNode,l.nodeType===8?Vh(l.parentNode,h):l.nodeType===1&&Vh(l,h),bc(l)):Vh(wr,h.stateNode));break;case 4:x=wr,O=_o,wr=h.stateNode.containerInfo,_o=!0,da(l,u,h),wr=x,_o=O;break;case 0:case 11:case 14:case 15:if(!Tr&&(x=h.updateQueue,x!==null&&(x=x.lastEffect,x!==null))){O=x=x.next;do{var M=O,W=M.destroy;M=M.tag,W!==void 0&&(M&2||M&4)&&$g(h,u,W),O=O.next}while(O!==x)}da(l,u,h);break;case 1:if(!Tr&&(nl(h,u),x=h.stateNode,typeof x.componentWillUnmount=="function"))try{x.props=h.memoizedProps,x.state=h.memoizedState,x.componentWillUnmount()}catch(ne){Un(h,u,ne)}da(l,u,h);break;case 21:da(l,u,h);break;case 22:h.mode&1?(Tr=(x=Tr)||h.memoizedState!==null,da(l,u,h),Tr=x):da(l,u,h);break;default:da(l,u,h)}}function rS(l){var u=l.updateQueue;if(u!==null){l.updateQueue=null;var h=l.stateNode;h===null&&(h=l.stateNode=new N4),u.forEach(function(x){var O=_4.bind(null,l,x);h.has(x)||(h.add(x),x.then(O,O))})}}function Vo(l,u){var h=u.deletions;if(h!==null)for(var x=0;x<h.length;x++){var O=h[x];try{var M=l,W=u,ne=W;e:for(;ne!==null;){switch(ne.tag){case 5:wr=ne.stateNode,_o=!1;break e;case 3:wr=ne.stateNode.containerInfo,_o=!0;break e;case 4:wr=ne.stateNode.containerInfo,_o=!0;break e}ne=ne.return}if(wr===null)throw Error(n(160));nS(M,W,O),wr=null,_o=!1;var ue=O.alternate;ue!==null&&(ue.return=null),O.return=null}catch(Ce){Un(O,u,Ce)}}if(u.subtreeFlags&12854)for(u=u.child;u!==null;)oS(u,l),u=u.sibling}function oS(l,u){var h=l.alternate,x=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:if(Vo(u,l),di(l),x&4){try{Fc(3,l,l.return),vf(3,l)}catch(Et){Un(l,l.return,Et)}try{Fc(5,l,l.return)}catch(Et){Un(l,l.return,Et)}}break;case 1:Vo(u,l),di(l),x&512&&h!==null&&nl(h,h.return);break;case 5:if(Vo(u,l),di(l),x&512&&h!==null&&nl(h,h.return),l.flags&32){var O=l.stateNode;try{Fe(O,"")}catch(Et){Un(l,l.return,Et)}}if(x&4&&(O=l.stateNode,O!=null)){var M=l.memoizedProps,W=h!==null?h.memoizedProps:M,ne=l.type,ue=l.updateQueue;if(l.updateQueue=null,ue!==null)try{ne==="input"&&M.type==="radio"&&M.name!=null&&ge(O,M),Ye(ne,W);var Ce=Ye(ne,M);for(W=0;W<ue.length;W+=2){var Ve=ue[W],Ue=ue[W+1];Ve==="style"?We(O,Ue):Ve==="dangerouslySetInnerHTML"?He(O,Ue):Ve==="children"?Fe(O,Ue):E(O,Ve,Ue,Ce)}switch(ne){case"input":be(O,M);break;case"textarea":De(O,M);break;case"select":var _e=O._wrapperState.wasMultiple;O._wrapperState.wasMultiple=!!M.multiple;var gt=M.value;gt!=null?xe(O,!!M.multiple,gt,!1):_e!==!!M.multiple&&(M.defaultValue!=null?xe(O,!!M.multiple,M.defaultValue,!0):xe(O,!!M.multiple,M.multiple?[]:"",!1))}O[Tc]=M}catch(Et){Un(l,l.return,Et)}}break;case 6:if(Vo(u,l),di(l),x&4){if(l.stateNode===null)throw Error(n(162));O=l.stateNode,M=l.memoizedProps;try{O.nodeValue=M}catch(Et){Un(l,l.return,Et)}}break;case 3:if(Vo(u,l),di(l),x&4&&h!==null&&h.memoizedState.isDehydrated)try{bc(u.containerInfo)}catch(Et){Un(l,l.return,Et)}break;case 4:Vo(u,l),di(l);break;case 13:Vo(u,l),di(l),O=l.child,O.flags&8192&&(M=O.memoizedState!==null,O.stateNode.isHidden=M,!M||O.alternate!==null&&O.alternate.memoizedState!==null||(Rg=Yt())),x&4&&rS(l);break;case 22:if(Ve=h!==null&&h.memoizedState!==null,l.mode&1?(Tr=(Ce=Tr)||Ve,Vo(u,l),Tr=Ce):Vo(u,l),di(l),x&8192){if(Ce=l.memoizedState!==null,(l.stateNode.isHidden=Ce)&&!Ve&&l.mode&1)for(wt=l,Ve=l.child;Ve!==null;){for(Ue=wt=Ve;wt!==null;){switch(_e=wt,gt=_e.child,_e.tag){case 0:case 11:case 14:case 15:Fc(4,_e,_e.return);break;case 1:nl(_e,_e.return);var St=_e.stateNode;if(typeof St.componentWillUnmount=="function"){x=_e,h=_e.return;try{u=x,St.props=u.memoizedProps,St.state=u.memoizedState,St.componentWillUnmount()}catch(Et){Un(x,h,Et)}}break;case 5:nl(_e,_e.return);break;case 22:if(_e.memoizedState!==null){sS(Ue);continue}}gt!==null?(gt.return=_e,wt=gt):sS(Ue)}Ve=Ve.sibling}e:for(Ve=null,Ue=l;;){if(Ue.tag===5){if(Ve===null){Ve=Ue;try{O=Ue.stateNode,Ce?(M=O.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none"):(ne=Ue.stateNode,ue=Ue.memoizedProps.style,W=ue!=null&&ue.hasOwnProperty("display")?ue.display:null,ne.style.display=Me("display",W))}catch(Et){Un(l,l.return,Et)}}}else if(Ue.tag===6){if(Ve===null)try{Ue.stateNode.nodeValue=Ce?"":Ue.memoizedProps}catch(Et){Un(l,l.return,Et)}}else if((Ue.tag!==22&&Ue.tag!==23||Ue.memoizedState===null||Ue===l)&&Ue.child!==null){Ue.child.return=Ue,Ue=Ue.child;continue}if(Ue===l)break e;for(;Ue.sibling===null;){if(Ue.return===null||Ue.return===l)break e;Ve===Ue&&(Ve=null),Ue=Ue.return}Ve===Ue&&(Ve=null),Ue.sibling.return=Ue.return,Ue=Ue.sibling}}break;case 19:Vo(u,l),di(l),x&4&&rS(l);break;case 21:break;default:Vo(u,l),di(l)}}function di(l){var u=l.flags;if(u&2){try{e:{for(var h=l.return;h!==null;){if(eS(h)){var x=h;break e}h=h.return}throw Error(n(160))}switch(x.tag){case 5:var O=x.stateNode;x.flags&32&&(Fe(O,""),x.flags&=-33);var M=tS(l);Pg(l,M,O);break;case 3:case 4:var W=x.stateNode.containerInfo,ne=tS(l);Tg(l,ne,W);break;default:throw Error(n(161))}}catch(ue){Un(l,l.return,ue)}l.flags&=-3}u&4096&&(l.flags&=-4097)}function D4(l,u,h){wt=l,iS(l)}function iS(l,u,h){for(var x=(l.mode&1)!==0;wt!==null;){var O=wt,M=O.child;if(O.tag===22&&x){var W=O.memoizedState!==null||pf;if(!W){var ne=O.alternate,ue=ne!==null&&ne.memoizedState!==null||Tr;ne=pf;var Ce=Tr;if(pf=W,(Tr=ue)&&!Ce)for(wt=O;wt!==null;)W=wt,ue=W.child,W.tag===22&&W.memoizedState!==null?lS(O):ue!==null?(ue.return=W,wt=ue):lS(O);for(;M!==null;)wt=M,iS(M),M=M.sibling;wt=O,pf=ne,Tr=Ce}aS(l)}else O.subtreeFlags&8772&&M!==null?(M.return=O,wt=M):aS(l)}}function aS(l){for(;wt!==null;){var u=wt;if(u.flags&8772){var h=u.alternate;try{if(u.flags&8772)switch(u.tag){case 0:case 11:case 15:Tr||vf(5,u);break;case 1:var x=u.stateNode;if(u.flags&4&&!Tr)if(h===null)x.componentDidMount();else{var O=u.elementType===u.type?h.memoizedProps:Ho(u.type,h.memoizedProps);x.componentDidUpdate(O,h.memoizedState,x.__reactInternalSnapshotBeforeUpdate)}var M=u.updateQueue;M!==null&&rx(u,M,x);break;case 3:var W=u.updateQueue;if(W!==null){if(h=null,u.child!==null)switch(u.child.tag){case 5:h=u.child.stateNode;break;case 1:h=u.child.stateNode}rx(u,W,h)}break;case 5:var ne=u.stateNode;if(h===null&&u.flags&4){h=ne;var ue=u.memoizedProps;switch(u.type){case"button":case"input":case"select":case"textarea":ue.autoFocus&&h.focus();break;case"img":ue.src&&(h.src=ue.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(u.memoizedState===null){var Ce=u.alternate;if(Ce!==null){var Ve=Ce.memoizedState;if(Ve!==null){var Ue=Ve.dehydrated;Ue!==null&&bc(Ue)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Tr||u.flags&512&&Ig(u)}catch(_e){Un(u,u.return,_e)}}if(u===l){wt=null;break}if(h=u.sibling,h!==null){h.return=u.return,wt=h;break}wt=u.return}}function sS(l){for(;wt!==null;){var u=wt;if(u===l){wt=null;break}var h=u.sibling;if(h!==null){h.return=u.return,wt=h;break}wt=u.return}}function lS(l){for(;wt!==null;){var u=wt;try{switch(u.tag){case 0:case 11:case 15:var h=u.return;try{vf(4,u)}catch(ue){Un(u,h,ue)}break;case 1:var x=u.stateNode;if(typeof x.componentDidMount=="function"){var O=u.return;try{x.componentDidMount()}catch(ue){Un(u,O,ue)}}var M=u.return;try{Ig(u)}catch(ue){Un(u,M,ue)}break;case 5:var W=u.return;try{Ig(u)}catch(ue){Un(u,W,ue)}}}catch(ue){Un(u,u.return,ue)}if(u===l){wt=null;break}var ne=u.sibling;if(ne!==null){ne.return=u.return,wt=ne;break}wt=u.return}}var j4=Math.ceil,hf=k.ReactCurrentDispatcher,Mg=k.ReactCurrentOwner,yo=k.ReactCurrentBatchConfig,dn=0,vr=null,Zn=null,xr=0,io=0,rl=aa(0),ar=0,Hc=null,Ja=0,gf=0,Ng=0,_c=null,Ur=null,Rg=0,ol=1/0,Di=null,mf=!1,Dg=null,fa=null,bf=!1,pa=null,yf=0,Vc=0,jg=null,wf=-1,xf=0;function jr(){return dn&6?Yt():wf!==-1?wf:wf=Yt()}function va(l){return l.mode&1?dn&2&&xr!==0?xr&-xr:b4.transition!==null?(xf===0&&(xf=xn()),xf):(l=$t,l!==0||(l=window.event,l=l===void 0?16:c1(l.type)),l):1}function Wo(l,u,h,x){if(50<Vc)throw Vc=0,jg=null,Error(n(185));_n(l,h,x),(!(dn&2)||l!==vr)&&(l===vr&&(!(dn&2)&&(gf|=h),ar===4&&ha(l,xr)),Kr(l,x),h===1&&dn===0&&!(u.mode&1)&&(ol=Yt()+500,Xd&&la()))}function Kr(l,u){var h=l.callbackNode;bn(l,u);var x=yt(l,l===vr?xr:0);if(x===0)h!==null&&Hn(h),l.callbackNode=null,l.callbackPriority=0;else if(u=x&-x,l.callbackPriority!==u){if(h!=null&&Hn(h),u===1)l.tag===0?m4(uS.bind(null,l)):X1(uS.bind(null,l)),p4(function(){!(dn&6)&&la()}),h=null;else{switch(nn(x)){case 1:h=nr;break;case 4:h=Nr;break;case 16:h=vt;break;case 536870912:h=tn;break;default:h=vt}h=bS(h,cS.bind(null,l))}l.callbackPriority=u,l.callbackNode=h}}function cS(l,u){if(wf=-1,xf=0,dn&6)throw Error(n(327));var h=l.callbackNode;if(il()&&l.callbackNode!==h)return null;var x=yt(l,l===vr?xr:0);if(x===0)return null;if(x&30||x&l.expiredLanes||u)u=Sf(l,x);else{u=x;var O=dn;dn|=2;var M=fS();(vr!==l||xr!==u)&&(Di=null,ol=Yt()+500,ts(l,u));do try{A4();break}catch(ne){dS(l,ne)}while(!0);Jh(),hf.current=M,dn=O,Zn!==null?u=0:(vr=null,xr=0,u=ar)}if(u!==0){if(u===2&&(O=cn(l),O!==0&&(x=O,u=Lg(l,O))),u===1)throw h=Hc,ts(l,0),ha(l,x),Kr(l,Yt()),h;if(u===6)ha(l,x);else{if(O=l.current.alternate,!(x&30)&&!L4(O)&&(u=Sf(l,x),u===2&&(M=cn(l),M!==0&&(x=M,u=Lg(l,M))),u===1))throw h=Hc,ts(l,0),ha(l,x),Kr(l,Yt()),h;switch(l.finishedWork=O,l.finishedLanes=x,u){case 0:case 1:throw Error(n(345));case 2:ns(l,Ur,Di);break;case 3:if(ha(l,x),(x&130023424)===x&&(u=Rg+500-Yt(),10<u)){if(yt(l,0)!==0)break;if(O=l.suspendedLanes,(O&x)!==x){jr(),l.pingedLanes|=l.suspendedLanes&O;break}l.timeoutHandle=_h(ns.bind(null,l,Ur,Di),u);break}ns(l,Ur,Di);break;case 4:if(ha(l,x),(x&4194240)===x)break;for(u=l.eventTimes,O=-1;0<x;){var W=31-Cn(x);M=1<<W,W=u[W],W>O&&(O=W),x&=~M}if(x=O,x=Yt()-x,x=(120>x?120:480>x?480:1080>x?1080:1920>x?1920:3e3>x?3e3:4320>x?4320:1960*j4(x/1960))-x,10<x){l.timeoutHandle=_h(ns.bind(null,l,Ur,Di),x);break}ns(l,Ur,Di);break;case 5:ns(l,Ur,Di);break;default:throw Error(n(329))}}}return Kr(l,Yt()),l.callbackNode===h?cS.bind(null,l):null}function Lg(l,u){var h=_c;return l.current.memoizedState.isDehydrated&&(ts(l,u).flags|=256),l=Sf(l,u),l!==2&&(u=Ur,Ur=h,u!==null&&Bg(u)),l}function Bg(l){Ur===null?Ur=l:Ur.push.apply(Ur,l)}function L4(l){for(var u=l;;){if(u.flags&16384){var h=u.updateQueue;if(h!==null&&(h=h.stores,h!==null))for(var x=0;x<h.length;x++){var O=h[x],M=O.getSnapshot;O=O.value;try{if(!zo(M(),O))return!1}catch{return!1}}}if(h=u.child,u.subtreeFlags&16384&&h!==null)h.return=u,u=h;else{if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function ha(l,u){for(u&=~Ng,u&=~gf,l.suspendedLanes|=u,l.pingedLanes&=~u,l=l.expirationTimes;0<u;){var h=31-Cn(u),x=1<<h;l[h]=-1,u&=~x}}function uS(l){if(dn&6)throw Error(n(327));il();var u=yt(l,0);if(!(u&1))return Kr(l,Yt()),null;var h=Sf(l,u);if(l.tag!==0&&h===2){var x=cn(l);x!==0&&(u=x,h=Lg(l,x))}if(h===1)throw h=Hc,ts(l,0),ha(l,u),Kr(l,Yt()),h;if(h===6)throw Error(n(345));return l.finishedWork=l.current.alternate,l.finishedLanes=u,ns(l,Ur,Di),Kr(l,Yt()),null}function Ag(l,u){var h=dn;dn|=1;try{return l(u)}finally{dn=h,dn===0&&(ol=Yt()+500,Xd&&la())}}function es(l){pa!==null&&pa.tag===0&&!(dn&6)&&il();var u=dn;dn|=1;var h=yo.transition,x=$t;try{if(yo.transition=null,$t=1,l)return l()}finally{$t=x,yo.transition=h,dn=u,!(dn&6)&&la()}}function zg(){io=rl.current,Nn(rl)}function ts(l,u){l.finishedWork=null,l.finishedLanes=0;var h=l.timeoutHandle;if(h!==-1&&(l.timeoutHandle=-1,f4(h)),Zn!==null)for(h=Zn.return;h!==null;){var x=h;switch(Xh(x),x.tag){case 1:x=x.type.childContextTypes,x!=null&&Kd();break;case 3:el(),Nn(_r),Nn(Or),cg();break;case 5:sg(x);break;case 4:el();break;case 13:Nn(Vn);break;case 19:Nn(Vn);break;case 10:eg(x.type._context);break;case 22:case 23:zg()}h=h.return}if(vr=l,Zn=l=ga(l.current,null),xr=io=u,ar=0,Hc=null,Ng=gf=Ja=0,Ur=_c=null,Ya!==null){for(u=0;u<Ya.length;u++)if(h=Ya[u],x=h.interleaved,x!==null){h.interleaved=null;var O=x.next,M=h.pending;if(M!==null){var W=M.next;M.next=O,x.next=W}h.pending=x}Ya=null}return l}function dS(l,u){do{var h=Zn;try{if(Jh(),af.current=uf,sf){for(var x=Wn.memoizedState;x!==null;){var O=x.queue;O!==null&&(O.pending=null),x=x.next}sf=!1}if(Za=0,pr=ir=Wn=null,jc=!1,Lc=0,Mg.current=null,h===null||h.return===null){ar=1,Hc=u,Zn=null;break}e:{var M=l,W=h.return,ne=h,ue=u;if(u=xr,ne.flags|=32768,ue!==null&&typeof ue=="object"&&typeof ue.then=="function"){var Ce=ue,Ve=ne,Ue=Ve.tag;if(!(Ve.mode&1)&&(Ue===0||Ue===11||Ue===15)){var _e=Ve.alternate;_e?(Ve.updateQueue=_e.updateQueue,Ve.memoizedState=_e.memoizedState,Ve.lanes=_e.lanes):(Ve.updateQueue=null,Ve.memoizedState=null)}var gt=Lx(W);if(gt!==null){gt.flags&=-257,Bx(gt,W,ne,M,u),gt.mode&1&&jx(M,Ce,u),u=gt,ue=Ce;var St=u.updateQueue;if(St===null){var Et=new Set;Et.add(ue),u.updateQueue=Et}else St.add(ue);break e}else{if(!(u&1)){jx(M,Ce,u),Fg();break e}ue=Error(n(426))}}else if(Bn&&ne.mode&1){var Xn=Lx(W);if(Xn!==null){!(Xn.flags&65536)&&(Xn.flags|=256),Bx(Xn,W,ne,M,u),Qh(tl(ue,ne));break e}}M=ue=tl(ue,ne),ar!==4&&(ar=2),_c===null?_c=[M]:_c.push(M),M=W;do{switch(M.tag){case 3:M.flags|=65536,u&=-u,M.lanes|=u;var ye=Rx(M,ue,u);nx(M,ye);break e;case 1:ne=ue;var ve=M.type,we=M.stateNode;if(!(M.flags&128)&&(typeof ve.getDerivedStateFromError=="function"||we!==null&&typeof we.componentDidCatch=="function"&&(fa===null||!fa.has(we)))){M.flags|=65536,u&=-u,M.lanes|=u;var Ze=Dx(M,ne,u);nx(M,Ze);break e}}M=M.return}while(M!==null)}vS(h)}catch(It){u=It,Zn===h&&h!==null&&(Zn=h=h.return);continue}break}while(!0)}function fS(){var l=hf.current;return hf.current=uf,l===null?uf:l}function Fg(){(ar===0||ar===3||ar===2)&&(ar=4),vr===null||!(Ja&268435455)&&!(gf&268435455)||ha(vr,xr)}function Sf(l,u){var h=dn;dn|=2;var x=fS();(vr!==l||xr!==u)&&(Di=null,ts(l,u));do try{B4();break}catch(O){dS(l,O)}while(!0);if(Jh(),dn=h,hf.current=x,Zn!==null)throw Error(n(261));return vr=null,xr=0,ar}function B4(){for(;Zn!==null;)pS(Zn)}function A4(){for(;Zn!==null&&!yn();)pS(Zn)}function pS(l){var u=mS(l.alternate,l,io);l.memoizedProps=l.pendingProps,u===null?vS(l):Zn=u,Mg.current=null}function vS(l){var u=l;do{var h=u.alternate;if(l=u.return,u.flags&32768){if(h=M4(h,u),h!==null){h.flags&=32767,Zn=h;return}if(l!==null)l.flags|=32768,l.subtreeFlags=0,l.deletions=null;else{ar=6,Zn=null;return}}else if(h=P4(h,u,io),h!==null){Zn=h;return}if(u=u.sibling,u!==null){Zn=u;return}Zn=u=l}while(u!==null);ar===0&&(ar=5)}function ns(l,u,h){var x=$t,O=yo.transition;try{yo.transition=null,$t=1,z4(l,u,h,x)}finally{yo.transition=O,$t=x}return null}function z4(l,u,h,x){do il();while(pa!==null);if(dn&6)throw Error(n(327));h=l.finishedWork;var O=l.finishedLanes;if(h===null)return null;if(l.finishedWork=null,l.finishedLanes=0,h===l.current)throw Error(n(177));l.callbackNode=null,l.callbackPriority=0;var M=h.lanes|h.childLanes;if(Pt(l,M),l===vr&&(Zn=vr=null,xr=0),!(h.subtreeFlags&2064)&&!(h.flags&2064)||bf||(bf=!0,bS(vt,function(){return il(),null})),M=(h.flags&15990)!==0,h.subtreeFlags&15990||M){M=yo.transition,yo.transition=null;var W=$t;$t=1;var ne=dn;dn|=4,Mg.current=null,R4(l,h),oS(h,l),i4(Fh),Nd=!!zh,Fh=zh=null,l.current=h,D4(h),Yn(),dn=ne,$t=W,yo.transition=M}else l.current=h;if(bf&&(bf=!1,pa=l,yf=O),M=l.pendingLanes,M===0&&(fa=null),Er(h.stateNode),Kr(l,Yt()),u!==null)for(x=l.onRecoverableError,h=0;h<u.length;h++)O=u[h],x(O.value,{componentStack:O.stack,digest:O.digest});if(mf)throw mf=!1,l=Dg,Dg=null,l;return yf&1&&l.tag!==0&&il(),M=l.pendingLanes,M&1?l===jg?Vc++:(Vc=0,jg=l):Vc=0,la(),null}function il(){if(pa!==null){var l=nn(yf),u=yo.transition,h=$t;try{if(yo.transition=null,$t=16>l?16:l,pa===null)var x=!1;else{if(l=pa,pa=null,yf=0,dn&6)throw Error(n(331));var O=dn;for(dn|=4,wt=l.current;wt!==null;){var M=wt,W=M.child;if(wt.flags&16){var ne=M.deletions;if(ne!==null){for(var ue=0;ue<ne.length;ue++){var Ce=ne[ue];for(wt=Ce;wt!==null;){var Ve=wt;switch(Ve.tag){case 0:case 11:case 15:Fc(8,Ve,M)}var Ue=Ve.child;if(Ue!==null)Ue.return=Ve,wt=Ue;else for(;wt!==null;){Ve=wt;var _e=Ve.sibling,gt=Ve.return;if(Jx(Ve),Ve===Ce){wt=null;break}if(_e!==null){_e.return=gt,wt=_e;break}wt=gt}}}var St=M.alternate;if(St!==null){var Et=St.child;if(Et!==null){St.child=null;do{var Xn=Et.sibling;Et.sibling=null,Et=Xn}while(Et!==null)}}wt=M}}if(M.subtreeFlags&2064&&W!==null)W.return=M,wt=W;else e:for(;wt!==null;){if(M=wt,M.flags&2048)switch(M.tag){case 0:case 11:case 15:Fc(9,M,M.return)}var ye=M.sibling;if(ye!==null){ye.return=M.return,wt=ye;break e}wt=M.return}}var ve=l.current;for(wt=ve;wt!==null;){W=wt;var we=W.child;if(W.subtreeFlags&2064&&we!==null)we.return=W,wt=we;else e:for(W=ve;wt!==null;){if(ne=wt,ne.flags&2048)try{switch(ne.tag){case 0:case 11:case 15:vf(9,ne)}}catch(It){Un(ne,ne.return,It)}if(ne===W){wt=null;break e}var Ze=ne.sibling;if(Ze!==null){Ze.return=ne.return,wt=Ze;break e}wt=ne.return}}if(dn=O,la(),gn&&typeof gn.onPostCommitFiberRoot=="function")try{gn.onPostCommitFiberRoot(hn,l)}catch{}x=!0}return x}finally{$t=h,yo.transition=u}}return!1}function hS(l,u,h){u=tl(h,u),u=Rx(l,u,1),l=ua(l,u,1),u=jr(),l!==null&&(_n(l,1,u),Kr(l,u))}function Un(l,u,h){if(l.tag===3)hS(l,l,h);else for(;u!==null;){if(u.tag===3){hS(u,l,h);break}else if(u.tag===1){var x=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&(fa===null||!fa.has(x))){l=tl(h,l),l=Dx(u,l,1),u=ua(u,l,1),l=jr(),u!==null&&(_n(u,1,l),Kr(u,l));break}}u=u.return}}function F4(l,u,h){var x=l.pingCache;x!==null&&x.delete(u),u=jr(),l.pingedLanes|=l.suspendedLanes&h,vr===l&&(xr&h)===h&&(ar===4||ar===3&&(xr&130023424)===xr&&500>Yt()-Rg?ts(l,0):Ng|=h),Kr(l,u)}function gS(l,u){u===0&&(l.mode&1?(u=Kt,Kt<<=1,!(Kt&130023424)&&(Kt=4194304)):u=1);var h=jr();l=Mi(l,u),l!==null&&(_n(l,u,h),Kr(l,h))}function H4(l){var u=l.memoizedState,h=0;u!==null&&(h=u.retryLane),gS(l,h)}function _4(l,u){var h=0;switch(l.tag){case 13:var x=l.stateNode,O=l.memoizedState;O!==null&&(h=O.retryLane);break;case 19:x=l.stateNode;break;default:throw Error(n(314))}x!==null&&x.delete(u),gS(l,h)}var mS;mS=function(l,u,h){if(l!==null)if(l.memoizedProps!==u.pendingProps||_r.current)Wr=!0;else{if(!(l.lanes&h)&&!(u.flags&128))return Wr=!1,T4(l,u,h);Wr=!!(l.flags&131072)}else Wr=!1,Bn&&u.flags&1048576&&G1(u,Yd,u.index);switch(u.lanes=0,u.tag){case 2:var x=u.type;ff(l,u),l=u.pendingProps;var O=qs(u,Or.current);Zs(u,h),O=fg(null,u,x,l,O,h);var M=pg();return u.flags|=1,typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,Vr(x)?(M=!0,qd(u)):M=!1,u.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,rg(u),O.updater=nf,u.stateNode=O,O._reactInternals=u,ig(u,x,l,h),u=xg(null,u,x,!0,M,h)):(u.tag=0,Bn&&M&&qh(u),Dr(null,u,O,h),u=u.child),u;case 16:x=u.elementType;e:{switch(ff(l,u),l=u.pendingProps,O=x._init,x=O(x._payload),u.type=x,O=u.tag=W4(x),l=Ho(x,l),O){case 0:u=wg(null,u,x,l,h);break e;case 1:u=Vx(null,u,x,l,h);break e;case 11:u=Ax(null,u,x,l,h);break e;case 14:u=zx(null,u,x,Ho(x.type,l),h);break e}throw Error(n(306,x,""))}return u;case 0:return x=u.type,O=u.pendingProps,O=u.elementType===x?O:Ho(x,O),wg(l,u,x,O,h);case 1:return x=u.type,O=u.pendingProps,O=u.elementType===x?O:Ho(x,O),Vx(l,u,x,O,h);case 3:e:{if(Wx(u),l===null)throw Error(n(387));x=u.pendingProps,M=u.memoizedState,O=M.element,tx(l,u),tf(u,x,null,h);var W=u.memoizedState;if(x=W.element,M.isDehydrated)if(M={element:x,isDehydrated:!1,cache:W.cache,pendingSuspenseBoundaries:W.pendingSuspenseBoundaries,transitions:W.transitions},u.updateQueue.baseState=M,u.memoizedState=M,u.flags&256){O=tl(Error(n(423)),u),u=Ux(l,u,x,h,O);break e}else if(x!==O){O=tl(Error(n(424)),u),u=Ux(l,u,x,h,O);break e}else for(oo=ia(u.stateNode.containerInfo.firstChild),ro=u,Bn=!0,Fo=null,h=ux(u,null,x,h),u.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else{if(Ys(),x===O){u=Ri(l,u,h);break e}Dr(l,u,x,h)}u=u.child}return u;case 5:return dx(u),l===null&&Yh(u),x=u.type,O=u.pendingProps,M=l!==null?l.memoizedProps:null,W=O.children,Hh(x,O)?W=null:M!==null&&Hh(x,M)&&(u.flags|=32),_x(l,u),Dr(l,u,W,h),u.child;case 6:return l===null&&Yh(u),null;case 13:return Kx(l,u,h);case 4:return ag(u,u.stateNode.containerInfo),x=u.pendingProps,l===null?u.child=Js(u,null,x,h):Dr(l,u,x,h),u.child;case 11:return x=u.type,O=u.pendingProps,O=u.elementType===x?O:Ho(x,O),Ax(l,u,x,O,h);case 7:return Dr(l,u,u.pendingProps,h),u.child;case 8:return Dr(l,u,u.pendingProps.children,h),u.child;case 12:return Dr(l,u,u.pendingProps.children,h),u.child;case 10:e:{if(x=u.type._context,O=u.pendingProps,M=u.memoizedProps,W=O.value,kn(Zd,x._currentValue),x._currentValue=W,M!==null)if(zo(M.value,W)){if(M.children===O.children&&!_r.current){u=Ri(l,u,h);break e}}else for(M=u.child,M!==null&&(M.return=u);M!==null;){var ne=M.dependencies;if(ne!==null){W=M.child;for(var ue=ne.firstContext;ue!==null;){if(ue.context===x){if(M.tag===1){ue=Ni(-1,h&-h),ue.tag=2;var Ce=M.updateQueue;if(Ce!==null){Ce=Ce.shared;var Ve=Ce.pending;Ve===null?ue.next=ue:(ue.next=Ve.next,Ve.next=ue),Ce.pending=ue}}M.lanes|=h,ue=M.alternate,ue!==null&&(ue.lanes|=h),tg(M.return,h,u),ne.lanes|=h;break}ue=ue.next}}else if(M.tag===10)W=M.type===u.type?null:M.child;else if(M.tag===18){if(W=M.return,W===null)throw Error(n(341));W.lanes|=h,ne=W.alternate,ne!==null&&(ne.lanes|=h),tg(W,h,u),W=M.sibling}else W=M.child;if(W!==null)W.return=M;else for(W=M;W!==null;){if(W===u){W=null;break}if(M=W.sibling,M!==null){M.return=W.return,W=M;break}W=W.return}M=W}Dr(l,u,O.children,h),u=u.child}return u;case 9:return O=u.type,x=u.pendingProps.children,Zs(u,h),O=mo(O),x=x(O),u.flags|=1,Dr(l,u,x,h),u.child;case 14:return x=u.type,O=Ho(x,u.pendingProps),O=Ho(x.type,O),zx(l,u,x,O,h);case 15:return Fx(l,u,u.type,u.pendingProps,h);case 17:return x=u.type,O=u.pendingProps,O=u.elementType===x?O:Ho(x,O),ff(l,u),u.tag=1,Vr(x)?(l=!0,qd(u)):l=!1,Zs(u,h),ax(u,x,O),ig(u,x,O,h),xg(null,u,x,!0,l,h);case 19:return Xx(l,u,h);case 22:return Hx(l,u,h)}throw Error(n(156,u.tag))};function bS(l,u){return ln(l,u)}function V4(l,u,h,x){this.tag=l,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wo(l,u,h,x){return new V4(l,u,h,x)}function Hg(l){return l=l.prototype,!(!l||!l.isReactComponent)}function W4(l){if(typeof l=="function")return Hg(l)?1:0;if(l!=null){if(l=l.$$typeof,l===F)return 11;if(l===_)return 14}return 2}function ga(l,u){var h=l.alternate;return h===null?(h=wo(l.tag,u,l.key,l.mode),h.elementType=l.elementType,h.type=l.type,h.stateNode=l.stateNode,h.alternate=l,l.alternate=h):(h.pendingProps=u,h.type=l.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=l.flags&14680064,h.childLanes=l.childLanes,h.lanes=l.lanes,h.child=l.child,h.memoizedProps=l.memoizedProps,h.memoizedState=l.memoizedState,h.updateQueue=l.updateQueue,u=l.dependencies,h.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},h.sibling=l.sibling,h.index=l.index,h.ref=l.ref,h}function Cf(l,u,h,x,O,M){var W=2;if(x=l,typeof l=="function")Hg(l)&&(W=1);else if(typeof l=="string")W=5;else e:switch(l){case T:return rs(h.children,O,M,u);case N:W=8,O|=8;break;case P:return l=wo(12,h,u,O|2),l.elementType=P,l.lanes=M,l;case z:return l=wo(13,h,u,O),l.elementType=z,l.lanes=M,l;case B:return l=wo(19,h,u,O),l.elementType=B,l.lanes=M,l;case L:return Ef(h,O,M,u);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case D:W=10;break e;case j:W=9;break e;case F:W=11;break e;case _:W=14;break e;case H:W=16,x=null;break e}throw Error(n(130,l==null?l:typeof l,""))}return u=wo(W,h,u,O),u.elementType=l,u.type=x,u.lanes=M,u}function rs(l,u,h,x){return l=wo(7,l,x,u),l.lanes=h,l}function Ef(l,u,h,x){return l=wo(22,l,x,u),l.elementType=L,l.lanes=h,l.stateNode={isHidden:!1},l}function _g(l,u,h){return l=wo(6,l,null,u),l.lanes=h,l}function Vg(l,u,h){return u=wo(4,l.children!==null?l.children:[],l.key,u),u.lanes=h,u.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},u}function U4(l,u,h,x,O){this.tag=u,this.containerInfo=l,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=In(0),this.expirationTimes=In(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=In(0),this.identifierPrefix=x,this.onRecoverableError=O,this.mutableSourceEagerHydrationData=null}function Wg(l,u,h,x,O,M,W,ne,ue){return l=new U4(l,u,h,ne,ue),u===1?(u=1,M===!0&&(u|=8)):u=0,M=wo(3,null,null,u),l.current=M,M.stateNode=l,M.memoizedState={element:x,isDehydrated:h,cache:null,transitions:null,pendingSuspenseBoundaries:null},rg(M),l}function K4(l,u,h){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$,key:x==null?null:""+x,children:l,containerInfo:u,implementation:h}}function yS(l){if(!l)return sa;l=l._reactInternals;e:{if(Jt(l)!==l||l.tag!==1)throw Error(n(170));var u=l;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(Vr(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(u!==null);throw Error(n(171))}if(l.tag===1){var h=l.type;if(Vr(h))return K1(l,h,u)}return u}function wS(l,u,h,x,O,M,W,ne,ue){return l=Wg(h,x,!0,l,O,M,W,ne,ue),l.context=yS(null),h=l.current,x=jr(),O=va(h),M=Ni(x,O),M.callback=u??null,ua(h,M,O),l.current.lanes=O,_n(l,O,x),Kr(l,x),l}function kf(l,u,h,x){var O=u.current,M=jr(),W=va(O);return h=yS(h),u.context===null?u.context=h:u.pendingContext=h,u=Ni(M,W),u.payload={element:l},x=x===void 0?null:x,x!==null&&(u.callback=x),l=ua(O,u,W),l!==null&&(Wo(l,O,W,M),ef(l,O,W)),W}function Of(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 5:return l.child.stateNode;default:return l.child.stateNode}}function xS(l,u){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var h=l.retryLane;l.retryLane=h!==0&&h<u?h:u}}function Ug(l,u){xS(l,u),(l=l.alternate)&&xS(l,u)}function q4(){return null}var SS=typeof reportError=="function"?reportError:function(l){};function Kg(l){this._internalRoot=l}$f.prototype.render=Kg.prototype.render=function(l){var u=this._internalRoot;if(u===null)throw Error(n(409));kf(l,u,null,null)},$f.prototype.unmount=Kg.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var u=l.containerInfo;es(function(){kf(null,l,null,null)}),u[$i]=null}};function $f(l){this._internalRoot=l}$f.prototype.unstable_scheduleHydration=function(l){if(l){var u=yr();l={blockedOn:null,target:l,priority:u};for(var h=0;h<ht.length&&u!==0&&u<ht[h].priority;h++);ht.splice(h,0,l),h===0&&Ua(l)}};function qg(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function If(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11&&(l.nodeType!==8||l.nodeValue!==" react-mount-point-unstable "))}function CS(){}function X4(l,u,h,x,O){if(O){if(typeof x=="function"){var M=x;x=function(){var Ce=Of(W);M.call(Ce)}}var W=wS(u,x,l,0,null,!1,!1,"",CS);return l._reactRootContainer=W,l[$i]=W.current,$c(l.nodeType===8?l.parentNode:l),es(),W}for(;O=l.lastChild;)l.removeChild(O);if(typeof x=="function"){var ne=x;x=function(){var Ce=Of(ue);ne.call(Ce)}}var ue=Wg(l,0,!1,null,null,!1,!1,"",CS);return l._reactRootContainer=ue,l[$i]=ue.current,$c(l.nodeType===8?l.parentNode:l),es(function(){kf(u,ue,h,x)}),ue}function Tf(l,u,h,x,O){var M=h._reactRootContainer;if(M){var W=M;if(typeof O=="function"){var ne=O;O=function(){var ue=Of(W);ne.call(ue)}}kf(u,W,l,O)}else W=X4(h,u,l,O,x);return Of(W)}or=function(l){switch(l.tag){case 3:var u=l.stateNode;if(u.current.memoizedState.isDehydrated){var h=dt(u.pendingLanes);h!==0&&(Lt(u,h|1),Kr(u,Yt()),!(dn&6)&&(ol=Yt()+500,la()))}break;case 13:es(function(){var x=Mi(l,1);if(x!==null){var O=jr();Wo(x,l,1,O)}}),Ug(l,1)}},Qn=function(l){if(l.tag===13){var u=Mi(l,134217728);if(u!==null){var h=jr();Wo(u,l,134217728,h)}Ug(l,134217728)}},fr=function(l){if(l.tag===13){var u=va(l),h=Mi(l,u);if(h!==null){var x=jr();Wo(h,l,u,x)}Ug(l,u)}},yr=function(){return $t},Rr=function(l,u){var h=$t;try{return $t=l,u()}finally{$t=h}},Oe=function(l,u,h){switch(u){case"input":if(be(l,h),u=h.name,h.type==="radio"&&u!=null){for(h=l;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),u=0;u<h.length;u++){var x=h[u];if(x!==l&&x.form===l.form){var O=Ud(x);if(!O)throw Error(n(90));ie(x),be(x,O)}}}break;case"textarea":De(l,h);break;case"select":u=h.value,u!=null&&xe(l,!!h.multiple,u,!1)}},Qe=Ag,Xe=es;var G4={usingClientEntryPoint:!1,Events:[Pc,Us,Ud,ut,ze,Ag]},Wc={findFiberByHostInstance:Ka,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Y4={bundleType:Wc.bundleType,version:Wc.version,rendererPackageName:Wc.rendererPackageName,rendererConfig:Wc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(l){return l=Ft(l),l===null?null:l.stateNode},findFiberByHostInstance:Wc.findFiberByHostInstance||q4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pf.isDisabled&&Pf.supportsFiber)try{hn=Pf.inject(Y4),gn=Pf}catch{}}return qr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G4,qr.createPortal=function(l,u){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!qg(u))throw Error(n(200));return K4(l,u,null,h)},qr.createRoot=function(l,u){if(!qg(l))throw Error(n(299));var h=!1,x="",O=SS;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(x=u.identifierPrefix),u.onRecoverableError!==void 0&&(O=u.onRecoverableError)),u=Wg(l,1,!1,null,null,h,!1,x,O),l[$i]=u.current,$c(l.nodeType===8?l.parentNode:l),new Kg(u)},qr.findDOMNode=function(l){if(l==null)return null;if(l.nodeType===1)return l;var u=l._reactInternals;if(u===void 0)throw typeof l.render=="function"?Error(n(188)):(l=Object.keys(l).join(","),Error(n(268,l)));return l=Ft(u),l=l===null?null:l.stateNode,l},qr.flushSync=function(l){return es(l)},qr.hydrate=function(l,u,h){if(!If(u))throw Error(n(200));return Tf(null,l,u,!0,h)},qr.hydrateRoot=function(l,u,h){if(!qg(l))throw Error(n(405));var x=h!=null&&h.hydratedSources||null,O=!1,M="",W=SS;if(h!=null&&(h.unstable_strictMode===!0&&(O=!0),h.identifierPrefix!==void 0&&(M=h.identifierPrefix),h.onRecoverableError!==void 0&&(W=h.onRecoverableError)),u=wS(u,null,l,1,h??null,O,!1,M,W),l[$i]=u.current,$c(l),x)for(l=0;l<x.length;l++)h=x[l],O=h._getVersion,O=O(h._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[h,O]:u.mutableSourceEagerHydrationData.push(h,O);return new $f(u)},qr.render=function(l,u,h){if(!If(u))throw Error(n(200));return Tf(null,l,u,!1,h)},qr.unmountComponentAtNode=function(l){if(!If(l))throw Error(n(40));return l._reactRootContainer?(es(function(){Tf(null,null,l,!1,function(){l._reactRootContainer=null,l[$i]=null})}),!0):!1},qr.unstable_batchedUpdates=Ag,qr.unstable_renderSubtreeIntoContainer=function(l,u,h,x){if(!If(h))throw Error(n(200));if(l==null||l._reactInternals===void 0)throw Error(n(38));return Tf(l,u,h,!1,x)},qr.version="18.2.0-next-9e3b772b8-20220608",qr}function A2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A2)}catch{}}A2();B2.exports=Vj();var ei=B2.exports;const jp=Ms(ei),Wj=C2({__proto__:null,default:jp},[ei]);var z2=ei;yv.createRoot=z2.createRoot;yv.hydrateRoot=z2.hydrateRoot;var F2={exports:{}};(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(F2);var Uj=F2.exports;const ae=Ms(Uj);function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke.apply(this,arguments)}var H2={exports:{}},mn={},zS;function Kj(){if(zS)return mn;zS=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function b(w){if(typeof w=="object"&&w!==null){var S=w.$$typeof;switch(S){case e:switch(w=w.type,w){case n:case o:case r:case f:case p:return w;default:switch(w=w&&w.$$typeof,w){case s:case a:case c:case g:case v:case i:return w;default:return S}}case t:return S}}}return mn.ContextConsumer=a,mn.ContextProvider=i,mn.Element=e,mn.ForwardRef=c,mn.Fragment=n,mn.Lazy=g,mn.Memo=v,mn.Portal=t,mn.Profiler=o,mn.StrictMode=r,mn.Suspense=f,mn.SuspenseList=p,mn.isAsyncMode=function(){return!1},mn.isConcurrentMode=function(){return!1},mn.isContextConsumer=function(w){return b(w)===a},mn.isContextProvider=function(w){return b(w)===i},mn.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},mn.isForwardRef=function(w){return b(w)===c},mn.isFragment=function(w){return b(w)===n},mn.isLazy=function(w){return b(w)===g},mn.isMemo=function(w){return b(w)===v},mn.isPortal=function(w){return b(w)===t},mn.isProfiler=function(w){return b(w)===o},mn.isStrictMode=function(w){return b(w)===r},mn.isSuspense=function(w){return b(w)===f},mn.isSuspenseList=function(w){return b(w)===p},mn.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===o||w===r||w===f||w===p||w===m||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===v||w.$$typeof===i||w.$$typeof===a||w.$$typeof===c||w.$$typeof===y||w.getModuleId!==void 0)},mn.typeOf=b,mn}H2.exports=Kj();var vy=H2.exports;function Yr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return de.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Yr(r)):vy.isFragment(r)&&r.props?n=n.concat(Yr(r.props.children,t)):n.push(r))}),n}var p0={},qj=function(t){};function Xj(e,t){}function Gj(e,t){}function Yj(){p0={}}function _2(e,t,n){!t&&!p0[n]&&(e(!1,n),p0[n]=!0)}function Dn(e,t){_2(Xj,e,t)}function Qj(e,t){_2(Gj,e,t)}Dn.preMessage=qj;Dn.resetWarned=Yj;Dn.noteOnce=Qj;function Tt(e){"@babel/helpers - typeof";return Tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tt(e)}function Zj(e,t){if(Tt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Tt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V2(e){var t=Zj(e,"string");return Tt(t)=="symbol"?t:String(t)}function Q(e,t,n){return t=V2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FS(Object(n),!0).forEach(function(r){Q(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lp(e){return e instanceof HTMLElement||e instanceof SVGElement}function hu(e){return Lp(e)?e:e instanceof de.Component?jp.findDOMNode(e):null}function Ns(e,t,n){var r=d.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Bu(e,t){typeof e=="function"?e(t):Tt(e)==="object"&&e&&"current"in e&&(e.current=t)}function Zr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(o){return o});return r.length<=1?r[0]:function(o){t.forEach(function(i){Bu(i,o)})}}function Rs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ns(function(){return Zr.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(i,a){return i!==o[a]})})}function ti(e){var t,n,r=vy.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render))}function Jj(e){return!d.isValidElement(e)||vy.isFragment(e)?!1:ti(e)}var v0=d.createContext(null);function eL(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),o=d.useRef([]),i=d.useContext(v0),a=d.useCallback(function(s,c,f){r.current+=1;var p=r.current;o.current.push({size:s,element:c,data:f}),Promise.resolve().then(function(){p===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(s,c,f)},[n,i]);return d.createElement(v0.Provider,{value:a},t)}var W2=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t}()}(),h0=typeof window<"u"&&typeof document<"u"&&window.document===document,Bp=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),tL=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Bp):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),nL=2;function rL(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){tL(i)}function s(){var c=Date.now();if(n){if(c-o<nL)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=c}return s}var oL=20,iL=["top","right","bottom","left","width","height","size","weight"],aL=typeof MutationObserver<"u",sL=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=rL(this.refresh.bind(this),oL)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!h0||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),aL?(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)},e.prototype.disconnect_=function(){!h0||!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)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=iL.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),U2=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},_l=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Bp},K2=wv(0,0,0,0);function Ap(e){return parseFloat(e)||0}function HS(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+Ap(i)},0)}function lL(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=Ap(a)}return n}function cL(e){var t=e.getBBox();return wv(0,0,t.width,t.height)}function uL(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return K2;var r=_l(e).getComputedStyle(e),o=lL(r),i=o.left+o.right,a=o.top+o.bottom,s=Ap(r.width),c=Ap(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=HS(r,"left","right")+i),Math.round(c+a)!==n&&(c-=HS(r,"top","bottom")+a)),!fL(e)){var f=Math.round(s+i)-t,p=Math.round(c+a)-n;Math.abs(f)!==1&&(s-=f),Math.abs(p)!==1&&(c-=p)}return wv(o.left,o.top,s,c)}var dL=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof _l(e).SVGGraphicsElement}:function(e){return e instanceof _l(e).SVGElement&&typeof e.getBBox=="function"}}();function fL(e){return e===_l(e).document.documentElement}function pL(e){return h0?dL(e)?cL(e):uL(e):K2}function vL(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return U2(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function wv(e,t,n,r){return{x:e,y:t,width:n,height:r}}var hL=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=wv(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=pL(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),gL=function(){function e(t,n){var r=vL(n);U2(this,{target:t,contentRect:r})}return e}(),mL=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new W2,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof _l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new hL(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof _l(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new gL(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),q2=typeof WeakMap<"u"?new WeakMap:new W2,X2=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=sL.getInstance(),r=new mL(t,n,this);q2.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){X2.prototype[e]=function(){var t;return(t=q2.get(this))[e].apply(t,arguments)}});var bL=function(){return typeof Bp.ResizeObserver<"u"?Bp.ResizeObserver:X2}(),Ia=new Map;function yL(e){e.forEach(function(t){var n,r=t.target;(n=Ia.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var G2=new bL(yL);function wL(e,t){Ia.has(e)||(Ia.set(e,new Set),G2.observe(e)),Ia.get(e).add(t)}function xL(e,t){Ia.has(e)&&(Ia.get(e).delete(t),Ia.get(e).size||(G2.unobserve(e),Ia.delete(e)))}function ur(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,V2(r.key),r)}}function dr(e,t,n){return t&&_S(e.prototype,t),n&&_S(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function g0(e,t){return g0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},g0(e,t)}function oi(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g0(e,t)}function Ba(e){return Ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ba(e)}function xv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xv=function(){return!!e})()}function Dt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hy(e,t){if(t&&(Tt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dt(e)}function Zi(e){var t=xv();return function(){var r=Ba(e),o;if(t){var i=Ba(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return hy(this,o)}}var SL=function(e){oi(n,e);var t=Zi(n);function n(){return ur(this,n),t.apply(this,arguments)}return dr(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function CL(e,t){var n=e.children,r=e.disabled,o=d.useRef(null),i=d.useRef(null),a=d.useContext(v0),s=typeof n=="function",c=s?n(o):n,f=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!s&&d.isValidElement(c)&&ti(c),v=p?c.ref:null,g=Rs(v,o),m=function(){var S;return hu(o.current)||(o.current&&Tt(o.current)==="object"?hu((S=o.current)===null||S===void 0?void 0:S.nativeElement):null)||hu(i.current)};d.useImperativeHandle(t,function(){return m()});var y=d.useRef(e);y.current=e;var b=d.useCallback(function(w){var S=y.current,C=S.onResize,E=S.data,k=w.getBoundingClientRect(),I=k.width,$=k.height,T=w.offsetWidth,N=w.offsetHeight,P=Math.floor(I),D=Math.floor($);if(f.current.width!==P||f.current.height!==D||f.current.offsetWidth!==T||f.current.offsetHeight!==N){var j={width:P,height:D,offsetWidth:T,offsetHeight:N};f.current=j;var F=T===Math.round(I)?I:T,z=N===Math.round($)?$:N,B=Z(Z({},j),{},{offsetWidth:F,offsetHeight:z});a==null||a(B,w,E),C&&Promise.resolve().then(function(){C(B,w)})}},[]);return d.useEffect(function(){var w=m();return w&&!r&&wL(w,b),function(){return xL(w,b)}},[o.current,r]),d.createElement(SL,{ref:i},p?d.cloneElement(c,{ref:g}):c)}var EL=d.forwardRef(CL),kL="rc-observer-key";function OL(e,t){var n=e.children,r=typeof n=="function"?[n]:Yr(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(kL,"-").concat(i);return d.createElement(EL,ke({},e,{key:a,ref:i===0?t:void 0}),o)})}var Lo=d.forwardRef(OL);Lo.Collection=eL;function qn(e,t){var n=Z({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function m0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $L(e){if(Array.isArray(e))return m0(e)}function Y2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gy(e,t){if(e){if(typeof e=="string")return m0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m0(e,t)}}function IL(){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 Ee(e){return $L(e)||Y2(e)||gy(e)||IL()}var Q2=function(t){return+setTimeout(t,16)},Z2=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Q2=function(t){return window.requestAnimationFrame(t)},Z2=function(t){return window.cancelAnimationFrame(t)});var VS=0,my=new Map;function J2(e){my.delete(e)}var vn=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;VS+=1;var r=VS;function o(i){if(i===0)J2(r),t();else{var a=Q2(function(){o(i-1)});my.set(r,a)}}return o(n),r};vn.cancel=function(e){var t=my.get(e);return J2(e),Z2(t)};function e$(e){if(Array.isArray(e))return e}function TL(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,f=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(p){f=!0,o=p}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw o}}return s}}function t$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function he(e,t){return e$(e)||TL(e,t)||gy(e,t)||t$()}function zp(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function sr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function b0(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var WS="data-rc-order",US="data-rc-priority",PL="rc-util-key",y0=new Map;function n$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):PL}function Sv(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function ML(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function r$(e){return Array.from((y0.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function o$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!sr())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=ML(r),s=a==="prependQueue",c=document.createElement("style");c.setAttribute(WS,a),s&&i&&c.setAttribute(US,"".concat(i)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var f=Sv(t),p=f.firstChild;if(r){if(s){var v=r$(f).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(WS)))return!1;var m=Number(g.getAttribute(US)||0);return i>=m});if(v.length)return f.insertBefore(c,v[v.length-1].nextSibling),c}f.insertBefore(c,p)}else f.appendChild(c);return c}function i$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Sv(t);return r$(n).find(function(r){return r.getAttribute(n$(t))===e})}function Au(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=i$(e,t);if(n){var r=Sv(t);r.removeChild(n)}}function NL(e,t){var n=y0.get(e);if(!n||!b0(document,n)){var r=o$("",t),o=r.parentNode;y0.set(e,o),e.removeChild(r)}}function Aa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Sv(n);NL(r,n);var o=i$(t,n);if(o){var i,a;if((i=n.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=n.csp)===null||a===void 0?void 0:a.nonce)){var s;o.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var c=o$(e,n);return c.setAttribute(n$(n),t),c}function RL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function jt(e,t){if(e==null)return{};var n=RL(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(i);if(Dn(!c,"Warning: There may be circular references"),c)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var f=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var p=0;p<i.length;p++)if(!o(i[p],a[p],f))return!1;return!0}if(i&&a&&Tt(i)==="object"&&Tt(a)==="object"){var v=Object.keys(i);return v.length!==Object.keys(a).length?!1:v.every(function(g){return o(i[g],a[g],f)})}return!1}return o(e,t)}var DL="%";function w0(e){return e.join(DL)}var jL=function(){function e(t){ur(this,e),Q(this,"instanceId",void 0),Q(this,"cache",new Map),this.instanceId=t}return dr(e,[{key:"get",value:function(n){return this.opGet(w0(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(w0(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),i=r(o);i===null?this.cache.delete(n):this.cache.set(n,i)}}]),e}(),Vl="data-token-hash",Qo="data-css-hash",Ta="__cssinjs_instance__";function LL(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Qo,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Ta]=o[Ta]||e,o[Ta]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Qo,"]"))).forEach(function(o){var i=o.getAttribute(Qo);if(r[i]){if(o[Ta]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new jL(e)}var Cv=d.createContext({hashPriority:"low",cache:LL(),defaultCache:!0});function BL(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var by=function(){function e(){ur(this,e),Q(this,"cache",void 0),Q(this,"keys",void 0),Q(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return dr(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else{var c;a=(c=a)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(f,p){var v=he(f,2),g=v[1];return o.internalGet(p)[1]<g?[p,o.internalGet(p)[1]]:f},[this.keys[0],this.cacheCallTimes]),a=he(i,1),s=a[0];this.delete(s)}this.keys.push(n)}var c=this.cache;n.forEach(function(f,p){if(p===n.length-1)c.set(f,{value:[r,o.cacheCallTimes++]});else{var v=c.get(f);v?v.map||(v.map=new Map):c.set(f,{map:new Map}),c=c.get(f).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!BL(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();Q(by,"MAX_CACHE_SIZE",20);Q(by,"MAX_CACHE_OFFSET",5);var KS=0,a$=function(){function e(t){ur(this,e),Q(this,"derivatives",void 0),Q(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=KS,t.length===0&&(t.length>0,void 0),KS+=1}return dr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Yg=new by;function zu(e){var t=Array.isArray(e)?e:[e];return Yg.has(t)||Yg.set(t,new a$(t)),Yg.get(t)}var AL=new WeakMap,Qg={};function zL(e,t){for(var n=AL,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Qg)||n.set(Qg,e()),n.get(Qg)}var qS=new WeakMap;function gu(e){var t=qS.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof a$?t+=r.id:r&&Tt(r)==="object"?t+=gu(r):t+=r}),qS.set(e,t)),t}function XS(e,t){return zp("".concat(t,"_").concat(gu(e)))}var mu="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),s$="_bAmBoO_";function FL(e,t,n){if(sr()){var r,o;Aa(e,mu);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t==null||t(i),document.body.appendChild(i);var a=n?n(i):(r=getComputedStyle(i).content)===null||r===void 0?void 0:r.includes(s$);return(o=i.parentNode)===null||o===void 0||o.removeChild(i),Au(mu),a}return!1}var Zg=void 0;function HL(){return Zg===void 0&&(Zg=FL("@layer ".concat(mu," { .").concat(mu,' { content: "').concat(s$,'"!important; } }'),function(e){e.className=mu})),Zg}var x0=sr();function se(e){return typeof e=="number"?"".concat(e,"px"):e}function Fp(e,t,n){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=Z(Z({},o),{},(r={},Q(r,Vl,t),Q(r,Qo,n),r)),s=Object.keys(a).map(function(c){var f=a[c];return f?"".concat(c,'="').concat(f,'"'):null}).filter(function(c){return c}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var l$=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").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()},_L=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var i=he(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},c$=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var s,c,f=he(a,2),p=f[0],v=f[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[p])i[p]=v;else if((typeof v=="string"||typeof v=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[p])){var g,m=l$(p,r==null?void 0:r.prefix);o[m]=typeof v=="number"&&!(r!=null&&(g=r.unitless)!==null&&g!==void 0&&g[p])?"".concat(v,"px"):String(v),i[p]="var(".concat(m,")")}}),[i,_L(o,n,{scope:r==null?void 0:r.scope})]},GS=sr()?d.useLayoutEffect:d.useEffect,on=function(t,n){var r=d.useRef(!0);GS(function(){return t(r.current)},n),GS(function(){return r.current=!1,function(){r.current=!0}},[])},YS=function(t,n){on(function(r){if(!r)return t()},n)},VL=Z({},ld),QS=VL.useInsertionEffect,WL=function(t,n,r){d.useMemo(t,r),on(function(){return n(!0)},r)},UL=QS?function(e,t,n){return QS(function(){return e(),t()},n)}:WL,KL=Z({},ld),qL=KL.useInsertionEffect,XL=function(t){var n=[],r=!1;function o(i){r||n.push(i)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},GL=function(){return function(t){t()}},YL=typeof qL<"u"?XL:GL;function yy(e,t,n,r,o){var i=d.useContext(Cv),a=i.cache,s=[e].concat(Ee(t)),c=w0(s),f=YL([c]),p=function(y){a.opUpdate(c,function(b){var w=b||[void 0,void 0],S=he(w,2),C=S[0],E=C===void 0?0:C,k=S[1],I=k,$=I||n(),T=[E,$];return y?y(T):T})};d.useMemo(function(){p()},[c]);var v=a.opGet(c),g=v[1];return UL(function(){o==null||o(g)},function(m){return p(function(y){var b=he(y,2),w=b[0],S=b[1];return m&&w===0&&(o==null||o(g)),[w+1,S]}),function(){a.opUpdate(c,function(y){var b=y||[],w=he(b,2),S=w[0],C=S===void 0?0:S,E=w[1],k=C-1;return k===0?(f(function(){(m||!a.opGet(c))&&(r==null||r(E,!1))}),null):[C-1,E]})}},[c]),g}var QL={},ZL="css",us=new Map;function JL(e){us.set(e,(us.get(e)||0)+1)}function e6(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Vl,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ta]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var t6=0;function n6(e,t){us.set(e,(us.get(e)||0)-1);var n=Array.from(us.keys()),r=n.filter(function(o){var i=us.get(o)||0;return i<=0});n.length-r.length>t6&&r.forEach(function(o){e6(o,t),us.delete(o)})}var u$=function(t,n,r,o){var i=r.getDerivativeToken(t),a=Z(Z({},i),n);return o&&(a=o(a)),a},d$="token";function r6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d.useContext(Cv),o=r.cache.instanceId,i=r.container,a=n.salt,s=a===void 0?"":a,c=n.override,f=c===void 0?QL:c,p=n.formatToken,v=n.getComputedToken,g=n.cssVar,m=zL(function(){return Object.assign.apply(Object,[{}].concat(Ee(t)))},t),y=gu(m),b=gu(f),w=g?gu(g):"",S=yy(d$,[s,e.id,y,b,w],function(){var C,E=v?v(m,f,e):u$(m,f,e,p),k=Z({},E),I="";if(g){var $=c$(E,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),T=he($,2);E=T[0],I=T[1]}var N=XS(E,s);E._tokenKey=N,k._tokenKey=XS(k,s);var P=(C=g==null?void 0:g.key)!==null&&C!==void 0?C:N;E._themeKey=P,JL(P);var D="".concat(ZL,"-").concat(zp(N));return E._hashId=D,[E,D,k,I,(g==null?void 0:g.key)||""]},function(C){n6(C[0]._themeKey,o)},function(C){var E=he(C,4),k=E[0],I=E[3];if(g&&I){var $=Aa(I,zp("css-variables-".concat(k._themeKey)),{mark:Qo,prepend:"queue",attachTo:i,priority:-999});$[Ta]=o,$.setAttribute(Vl,k._themeKey)}});return S}var o6=function(t,n,r){var o=he(t,5),i=o[2],a=o[3],s=o[4],c=r||{},f=c.plain;if(!a)return null;var p=i._tokenKey,v=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)},m=Fp(a,s,p,g,f);return[v,p,m]},i6={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},f$="comm",p$="rule",v$="decl",a6="@import",s6="@keyframes",l6="@layer",c6=Math.abs,wy=String.fromCharCode;function h$(e){return e.trim()}function hp(e,t,n){return e.replace(t,n)}function u6(e,t){return e.indexOf(t)}function Fu(e,t){return e.charCodeAt(t)|0}function Hu(e,t,n){return e.slice(t,n)}function ka(e){return e.length}function g$(e){return e.length}function Nf(e,t){return t.push(e),e}var Ev=1,Wl=1,m$=0,Ro=0,er=0,ec="";function xy(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ev,column:Wl,length:a,return:""}}function d6(){return er}function f6(){return er=Ro>0?Fu(ec,--Ro):0,Wl--,er===10&&(Wl=1,Ev--),er}function Zo(){return er=Ro<m$?Fu(ec,Ro++):0,Wl++,er===10&&(Wl=1,Ev++),er}function ys(){return Fu(ec,Ro)}function gp(){return Ro}function kv(e,t){return Hu(ec,e,t)}function S0(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function p6(e){return Ev=Wl=1,m$=ka(ec=e),Ro=0,[]}function v6(e){return ec="",e}function Jg(e){return h$(kv(Ro-1,C0(e===91?e+2:e===40?e+1:e)))}function h6(e){for(;(er=ys())&&er<33;)Zo();return S0(e)>2||S0(er)>3?"":" "}function g6(e,t){for(;--t&&Zo()&&!(er<48||er>102||er>57&&er<65||er>70&&er<97););return kv(e,gp()+(t<6&&ys()==32&&Zo()==32))}function C0(e){for(;Zo();)switch(er){case e:return Ro;case 34:case 39:e!==34&&e!==39&&C0(er);break;case 40:e===41&&C0(e);break;case 92:Zo();break}return Ro}function m6(e,t){for(;Zo()&&e+er!==57;)if(e+er===84&&ys()===47)break;return"/*"+kv(t,Ro-1)+"*"+wy(e===47?e:Zo())}function b6(e){for(;!S0(ys());)Zo();return kv(e,Ro)}function y6(e){return v6(mp("",null,null,null,[""],e=p6(e),0,[0],e))}function mp(e,t,n,r,o,i,a,s,c){for(var f=0,p=0,v=a,g=0,m=0,y=0,b=1,w=1,S=1,C=0,E="",k=o,I=i,$=r,T=E;w;)switch(y=C,C=Zo()){case 40:if(y!=108&&Fu(T,v-1)==58){u6(T+=hp(Jg(C),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:T+=Jg(C);break;case 9:case 10:case 13:case 32:T+=h6(y);break;case 92:T+=g6(gp()-1,7);continue;case 47:switch(ys()){case 42:case 47:Nf(w6(m6(Zo(),gp()),t,n),c);break;default:T+="/"}break;case 123*b:s[f++]=ka(T)*S;case 125*b:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+p:S==-1&&(T=hp(T,/\f/g,"")),m>0&&ka(T)-v&&Nf(m>32?JS(T+";",r,n,v-1):JS(hp(T," ","")+";",r,n,v-2),c);break;case 59:T+=";";default:if(Nf($=ZS(T,t,n,f,p,o,s,E,k=[],I=[],v),i),C===123)if(p===0)mp(T,t,$,$,k,i,v,s,I);else switch(g===99&&Fu(T,3)===110?100:g){case 100:case 108:case 109:case 115:mp(e,$,$,r&&Nf(ZS(e,$,$,0,0,o,s,E,o,k=[],v),I),o,I,v,s,r?k:I);break;default:mp(T,$,$,$,[""],I,0,s,I)}}f=p=m=0,b=S=1,E=T="",v=a;break;case 58:v=1+ka(T),m=y;default:if(b<1){if(C==123)--b;else if(C==125&&b++==0&&f6()==125)continue}switch(T+=wy(C),C*b){case 38:S=p>0?1:(T+="\f",-1);break;case 44:s[f++]=(ka(T)-1)*S,S=1;break;case 64:ys()===45&&(T+=Jg(Zo())),g=ys(),p=v=ka(E=T+=b6(gp())),C++;break;case 45:y===45&&ka(T)==2&&(b=0)}}return i}function ZS(e,t,n,r,o,i,a,s,c,f,p){for(var v=o-1,g=o===0?i:[""],m=g$(g),y=0,b=0,w=0;y<r;++y)for(var S=0,C=Hu(e,v+1,v=c6(b=a[y])),E=e;S<m;++S)(E=h$(b>0?g[S]+" "+C:hp(C,/&\f/g,g[S])))&&(c[w++]=E);return xy(e,t,n,o===0?p$:s,c,f,p)}function w6(e,t,n){return xy(e,t,n,f$,wy(d6()),Hu(e,2,-2),0)}function JS(e,t,n,r){return xy(e,t,n,v$,Hu(e,0,r),Hu(e,r+1,-1),r)}function E0(e,t){for(var n="",r=g$(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function x6(e,t,n,r){switch(e.type){case l6:if(e.children.length)break;case a6:case v$:return e.return=e.return||e.value;case f$:return"";case s6:return e.return=e.value+"{"+E0(e.children,r)+"}";case p$:e.value=e.props.join(",")}return ka(n=E0(e.children,r))?e.return=e.value+"{"+n+"}":""}var eC="data-ant-cssinjs-cache-path",b$="_FILE_STYLE__",ws,y$=!0;function S6(){if(!ws&&(ws={},sr())){var e=document.createElement("div");e.className=eC,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=he(i,2),s=a[0],c=a[1];ws[s]=c});var n=document.querySelector("style[".concat(eC,"]"));if(n){var r;y$=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function C6(e){return S6(),!!ws[e]}function E6(e){var t=ws[e],n=null;if(t&&sr())if(y$)n=b$;else{var r=document.querySelector("style[".concat(Qo,'="').concat(ws[e],'"]'));r?n=r.innerHTML:delete ws[e]}return[n,t]}var k6="_skip_check_",w$="_multi_value_";function k0(e){var t=E0(y6(e),x6);return t.replace(/\{%%%\:[^;];}/g,";")}function O6(e){return Tt(e)==="object"&&e&&(k6 in e||w$ in e)}function $6(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var s,c=a.trim().split(/\s+/),f=c[0]||"",p=((s=f.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return f="".concat(p).concat(o).concat(f.slice(p.length)),[f].concat(Ee(c.slice(1))).join(" ")});return i.join(",")}var I6=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,c=n.layer;n.path;var f=n.hashPriority,p=n.transformers,v=p===void 0?[]:p;n.linters;var g="",m={};function y(E){var k=E.getName(s);if(!m[k]){var I=e(E.style,n,{root:!1,parentSelectors:a}),$=he(I,1),T=$[0];m[k]="@keyframes ".concat(E.getName(s)).concat(T)}}function b(E){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function(I){Array.isArray(I)?b(I,k):I&&k.push(I)}),k}var w=b(Array.isArray(t)?t:[t]);if(w.forEach(function(E){var k=typeof E=="string"&&!o?{}:E;if(typeof k=="string")g+="".concat(k,`
`);else if(k._keyframe)y(k);else{var I=v.reduce(function($,T){var N;return(T==null||(N=T.visit)===null||N===void 0?void 0:N.call(T,$))||$},k);Object.keys(I).forEach(function($){var T=I[$];if(Tt(T)==="object"&&T&&($!=="animationName"||!T._keyframe)&&!O6(T)){var N=!1,P=$.trim(),D=!1;(o||i)&&s?P.startsWith("@")?N=!0:P=$6($,s,f):o&&!s&&(P==="&"||P==="")&&(P="",D=!0);var j=e(T,n,{root:D,injectHash:N,parentSelectors:[].concat(Ee(a),[P])}),F=he(j,2),z=F[0],B=F[1];m=Z(Z({},m),B),g+="".concat(P).concat(z)}else{let L=function(A,U){var R=A.replace(/[A-Z]/g,function(Y){return"-".concat(Y.toLowerCase())}),V=U;!i6[A]&&typeof V=="number"&&V!==0&&(V="".concat(V,"px")),A==="animationName"&&U!==null&&U!==void 0&&U._keyframe&&(y(U),V=U.getName(s)),g+="".concat(R,":").concat(V,";")};var _,H=(_=T==null?void 0:T.value)!==null&&_!==void 0?_:T;Tt(T)==="object"&&T!==null&&T!==void 0&&T[w$]&&Array.isArray(H)?H.forEach(function(A){L($,A)}):L($,H)}})}}),!o)g="{".concat(g,"}");else if(c&&HL()){var S=c.split(","),C=S[S.length-1].trim();g="@layer ".concat(C," {").concat(g,"}"),S.length>1&&(g="@layer ".concat(c,"{%%%:%}").concat(g))}return[g,m]};function x$(e,t){return zp("".concat(e.join("%")).concat(t))}function T6(){return null}var S$="style";function O0(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,c=e.order,f=c===void 0?0:c,p=d.useContext(Cv),v=p.autoClear;p.mock;var g=p.defaultCache,m=p.hashPriority,y=p.container,b=p.ssrInline,w=p.transformers,S=p.linters,C=p.cache,E=n._tokenKey,k=[E].concat(Ee(r)),I=x0,$=yy(S$,k,function(){var j=k.join("|");if(C6(j)){var F=E6(j),z=he(F,2),B=z[0],_=z[1];if(B)return[B,E,_,{},s,f]}var H=t(),L=I6(H,{hashId:o,hashPriority:m,layer:i,path:r.join("-"),transformers:w,linters:S}),A=he(L,2),U=A[0],R=A[1],V=k0(U),Y=x$(k,V);return[V,E,Y,R,s,f]},function(j,F){var z=he(j,3),B=z[2];(F||v)&&x0&&Au(B,{mark:Qo})},function(j){var F=he(j,4),z=F[0];F[1];var B=F[2],_=F[3];if(I&&z!==b$){var H={mark:Qo,prepend:"queue",attachTo:y,priority:f},L=typeof a=="function"?a():a;L&&(H.csp={nonce:L});var A=Aa(z,B,H);A[Ta]=C.instanceId,A.setAttribute(Vl,E),Object.keys(_).forEach(function(U){Aa(k0(_[U]),"_effect-".concat(U),H)})}}),T=he($,3),N=T[0],P=T[1],D=T[2];return function(j){var F;if(!b||I||!g)F=d.createElement(T6,null);else{var z;F=d.createElement("style",ke({},(z={},Q(z,Vl,P),Q(z,Qo,D),z),{dangerouslySetInnerHTML:{__html:N}}))}return d.createElement(d.Fragment,null,F,j)}}var P6=function(t,n,r){var o=he(t,6),i=o[0],a=o[1],s=o[2],c=o[3],f=o[4],p=o[5],v=r||{},g=v.plain;if(f)return null;var m=i,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)};return m=Fp(i,a,s,y,g),c&&Object.keys(c).forEach(function(b){if(!n[b]){n[b]=!0;var w=k0(c[b]);m+=Fp(w,a,"_effect-".concat(b),y,g)}}),[p,s,m]},C$="cssVar",M6=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,c=t.scope,f=c===void 0?"":c,p=d.useContext(Cv),v=p.cache.instanceId,g=p.container,m=s._tokenKey,y=[].concat(Ee(t.path),[r,f,m]),b=yy(C$,y,function(){var w=n(),S=c$(w,r,{prefix:o,unitless:i,ignore:a,scope:f}),C=he(S,2),E=C[0],k=C[1],I=x$(y,k);return[E,k,I,r]},function(w){var S=he(w,3),C=S[2];x0&&Au(C,{mark:Qo})},function(w){var S=he(w,3),C=S[1],E=S[2];if(C){var k=Aa(C,E,{mark:Qo,prepend:"queue",attachTo:g,priority:-999});k[Ta]=v,k.setAttribute(Vl,r)}});return b},N6=function(t,n,r){var o=he(t,4),i=o[1],a=o[2],s=o[3],c=r||{},f=c.plain;if(!i)return null;var p=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},g=Fp(i,s,a,v,f);return[p,a,g]},qc;qc={},Q(qc,S$,P6),Q(qc,d$,o6),Q(qc,C$,N6);var sn=function(){function e(t,n){ur(this,e),Q(this,"name",void 0),Q(this,"style",void 0),Q(this,"_keyframe",!0),this.name=t,this.style=n}return dr(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function al(e){return e.notSplit=!0,e}al(["borderTop","borderBottom"]),al(["borderTop"]),al(["borderBottom"]),al(["borderLeft","borderRight"]),al(["borderLeft"]),al(["borderRight"]);var Sy=d.createContext({});function E$(e){return e$(e)||Y2(e)||gy(e)||t$()}function To(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function k$(e,t,n,r){if(!t.length)return n;var o=E$(t),i=o[0],a=o.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=Ee(e):s=Z({},e),r&&n===void 0&&a.length===1?delete s[i][a[0]]:s[i]=k$(s[i],a,n,r),s}function Xo(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!To(e,t.slice(0,-1))?e:k$(e,t,n,r)}function R6(e){return Tt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function tC(e){return Array.isArray(e)?[]:{}}var D6=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function El(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=tC(t[0]);return t.forEach(function(o){function i(a,s){var c=new Set(s),f=To(o,a),p=Array.isArray(f);if(p||R6(f)){if(!c.has(f)){c.add(f);var v=To(r,a);p?r=Xo(r,a,[]):(!v||Tt(v)!=="object")&&(r=Xo(r,a,tC(f))),D6(f).forEach(function(g){i([].concat(Ee(a),[g]),c)})}}else r=Xo(r,a,f)}i([])}),r}function j6(){}const L6=d.createContext({}),Ds=()=>{const e=()=>{};return e.deprecated=j6,e},O$=d.createContext(void 0);var $$={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"},B6={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 A6={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},I$=A6,z6={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"]},B6),timePickerLocale:Object.assign({},I$)},nC=z6,ao="${label} is not a valid ${type}",ni={locale:"en",Pagination:$$,DatePicker:nC,TimePicker:I$,Calendar:nC,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"},PageHeader:{back:"Back"},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:ao,method:ao,array:ao,object:ao,number:ao,date:ao,boolean:ao,integer:ao,float:ao,regexp:ao,email:ao,url:ao,hex:ao},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"}};let bp=Object.assign({},ni.Modal),yp=[];const rC=()=>yp.reduce((e,t)=>Object.assign(Object.assign({},e),t),ni.Modal);function F6(e){if(e){const t=Object.assign({},e);return yp.push(t),bp=rC(),()=>{yp=yp.filter(n=>n!==t),bp=rC()}}bp=Object.assign({},ni.Modal)}function T$(){return bp}const H6=d.createContext(void 0),Cy=H6,Ji=(e,t)=>{const n=d.useContext(Cy),r=d.useMemo(()=>{var i;const a=t||ni[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=d.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?ni.locale:i},[n]);return[r,o]},_6="internalMark",V6=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>F6(t&&t.Modal),[t]);const o=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(Cy.Provider,{value:o},n)},W6=V6;function Sr(e,t){U6(e)&&(e="100%");var n=K6(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Rf(e){return Math.min(1,Math.max(0,e))}function U6(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function K6(e){return typeof e=="string"&&e.indexOf("%")!==-1}function P$(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Df(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ps(e){return e.length===1?"0"+e:String(e)}function q6(e,t,n){return{r:Sr(e,255)*255,g:Sr(t,255)*255,b:Sr(n,255)*255}}function oC(e,t,n){e=Sr(e,255),t=Sr(t,255),n=Sr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var c=r-o;switch(a=s>.5?c/(2-r-o):c/(r+o),r){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4;break}i/=6}return{h:i,s:a,l:s}}function em(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function X6(e,t,n){var r,o,i;if(e=Sr(e,360),t=Sr(t,100),n=Sr(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=em(s,a,e+1/3),o=em(s,a,e),i=em(s,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function $0(e,t,n){e=Sr(e,255),t=Sr(t,255),n=Sr(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,c=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:c,v:a}}function G6(e,t,n){e=Sr(e,360)*6,t=Sr(t,100),n=Sr(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),c=r%6,f=[n,a,i,i,s,n][c],p=[s,n,n,a,i,i][c],v=[i,i,s,n,n,a][c];return{r:f*255,g:p*255,b:v*255}}function I0(e,t,n,r){var o=[ps(Math.round(e).toString(16)),ps(Math.round(t).toString(16)),ps(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Y6(e,t,n,r,o){var i=[ps(Math.round(e).toString(16)),ps(Math.round(t).toString(16)),ps(Math.round(n).toString(16)),ps(Q6(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Q6(e){return Math.round(parseFloat(e)*255).toString(16)}function iC(e){return lo(e)/255}function lo(e){return parseInt(e,16)}function Z6(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var T0={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 Sl(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=tB(e)),typeof e=="object"&&(ji(e.r)&&ji(e.g)&&ji(e.b)?(t=q6(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ji(e.h)&&ji(e.s)&&ji(e.v)?(r=Df(e.s),o=Df(e.v),t=G6(e.h,r,o),a=!0,s="hsv"):ji(e.h)&&ji(e.s)&&ji(e.l)&&(r=Df(e.s),i=Df(e.l),t=X6(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=P$(n),{ok:a,format:e.format||s,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:n}}var J6="[-\\+]?\\d+%?",eB="[-\\+]?\\d*\\.\\d+%?",Pa="(?:".concat(eB,")|(?:").concat(J6,")"),tm="[\\s|\\(]+(".concat(Pa,")[,|\\s]+(").concat(Pa,")[,|\\s]+(").concat(Pa,")\\s*\\)?"),nm="[\\s|\\(]+(".concat(Pa,")[,|\\s]+(").concat(Pa,")[,|\\s]+(").concat(Pa,")[,|\\s]+(").concat(Pa,")\\s*\\)?"),qo={CSS_UNIT:new RegExp(Pa),rgb:new RegExp("rgb"+tm),rgba:new RegExp("rgba"+nm),hsl:new RegExp("hsl"+tm),hsla:new RegExp("hsla"+nm),hsv:new RegExp("hsv"+tm),hsva:new RegExp("hsva"+nm),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 tB(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(T0[e])e=T0[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=qo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=qo.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=qo.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=qo.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=qo.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=qo.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=qo.hex8.exec(e),n?{r:lo(n[1]),g:lo(n[2]),b:lo(n[3]),a:iC(n[4]),format:t?"name":"hex8"}:(n=qo.hex6.exec(e),n?{r:lo(n[1]),g:lo(n[2]),b:lo(n[3]),format:t?"name":"hex"}:(n=qo.hex4.exec(e),n?{r:lo(n[1]+n[1]),g:lo(n[2]+n[2]),b:lo(n[3]+n[3]),a:iC(n[4]+n[4]),format:t?"name":"hex8"}:(n=qo.hex3.exec(e),n?{r:lo(n[1]+n[1]),g:lo(n[2]+n[2]),b:lo(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ji(e){return!!qo.CSS_UNIT.exec(String(e))}var En=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=Z6(t)),this.originalInput=t;var o=Sl(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=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.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(),n,r,o,i=t.r/255,a=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=P$(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=$0(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=$0(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=oC(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=oC(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),I0(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),Y6(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),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Sr(n,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(n){return Math.round(Sr(n,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="#"+I0(this.r,this.g,this.b,!1),n=0,r=Object.entries(T0);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||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 n=this.toHsl();return n.l+=t/100,n.l=Rf(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*(-t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*(-t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*(-t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Rf(n.l),new e(n)},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 n=this.toHsl();return n.s-=t/100,n.s=Rf(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Rf(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));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 n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.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 n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),jf=2,aC=.16,nB=.05,rB=.05,oB=.15,M$=5,N$=4,iB=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function sC(e){var t=e.r,n=e.g,r=e.b,o=$0(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function Lf(e){var t=e.r,n=e.g,r=e.b;return"#".concat(I0(t,n,r,!1))}function aB(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function lC(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-jf*t:Math.round(e.h)+jf*t:r=n?Math.round(e.h)+jf*t:Math.round(e.h)-jf*t,r<0?r+=360:r>=360&&(r-=360),r}function cC(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-aC*t:t===N$?r=e.s+aC:r=e.s+nB*t,r>1&&(r=1),n&&t===M$&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function uC(e,t,n){var r;return n?r=e.v+rB*t:r=e.v-oB*t,r>1&&(r=1),Number(r.toFixed(2))}function Wi(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Sl(e),o=M$;o>0;o-=1){var i=sC(r),a=Lf(Sl({h:lC(i,o,!0),s:cC(i,o,!0),v:uC(i,o,!0)}));n.push(a)}n.push(Lf(r));for(var s=1;s<=N$;s+=1){var c=sC(r),f=Lf(Sl({h:lC(c,s),s:cC(c,s),v:uC(c,s)}));n.push(f)}return t.theme==="dark"?iB.map(function(p){var v=p.index,g=p.opacity,m=Lf(aB(Sl(t.backgroundColor||"#141414"),Sl(n[v]),g*100));return m}):n}var Pl={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"},bu={},rm={};Object.keys(Pl).forEach(function(e){bu[e]=Wi(Pl[e]),bu[e].primary=bu[e][5],rm[e]=Wi(Pl[e],{theme:"dark",backgroundColor:"#141414"}),rm[e].primary=rm[e][5]});var sB=bu.gold,P0=bu.blue;const R$=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function lB(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Ey={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"},Ul=Object.assign(Object.assign({},Ey),{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});function D$(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:c,colorBgBase:f,colorTextBase:p}=e,v=n(c),g=n(o),m=n(i),y=n(a),b=n(s),w=r(f,p),S=e.colorLink||e.colorInfo,C=n(S);return Object.assign(Object.assign({},w),{colorPrimaryBg:v[1],colorPrimaryBgHover:v[2],colorPrimaryBorder:v[3],colorPrimaryBorderHover:v[4],colorPrimaryHover:v[5],colorPrimary:v[6],colorPrimaryActive:v[7],colorPrimaryTextHover:v[8],colorPrimaryText:v[9],colorPrimaryTextActive:v[10],colorSuccessBg:g[1],colorSuccessBgHover:g[2],colorSuccessBorder:g[3],colorSuccessBorderHover:g[4],colorSuccessHover:g[4],colorSuccess:g[6],colorSuccessActive:g[7],colorSuccessTextHover:g[8],colorSuccessText:g[9],colorSuccessTextActive:g[10],colorErrorBg:y[1],colorErrorBgHover:y[2],colorErrorBorder:y[3],colorErrorBorderHover:y[4],colorErrorHover:y[5],colorError:y[6],colorErrorActive:y[7],colorErrorTextHover:y[8],colorErrorText:y[9],colorErrorTextActive:y[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:C[4],colorLink:C[6],colorLinkActive:C[7],colorBgMask:new En("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const cB=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function uB(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},cB(r))}const Li=(e,t)=>new En(e).setAlpha(t).toRgbString(),Xc=(e,t)=>new En(e).darken(t).toHexString(),dB=e=>{const t=Wi(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]}},fB=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Li(r,.88),colorTextSecondary:Li(r,.65),colorTextTertiary:Li(r,.45),colorTextQuaternary:Li(r,.25),colorFill:Li(r,.15),colorFillSecondary:Li(r,.06),colorFillTertiary:Li(r,.04),colorFillQuaternary:Li(r,.02),colorBgLayout:Xc(n,4),colorBgContainer:Xc(n,0),colorBgElevated:Xc(n,0),colorBgSpotlight:Li(r,.85),colorBgBlur:"transparent",colorBorder:Xc(n,15),colorBorderSecondary:Xc(n,6)}};function wp(e){return(e+8)/e}function pB(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(2.71828,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:wp(n)}))}const j$=e=>{const t=pB(e),n=t.map(p=>p.size),r=t.map(p=>p.lineHeight),o=n[1],i=n[0],a=n[2],s=r[1],c=r[0],f=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:f,lineHeightSM:c,fontHeight:Math.round(s*o),fontHeightLG:Math.round(f*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function cd(e){const t=Object.keys(Ey).map(n=>{const r=Wi(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),D$(e,{generateColorPalettes:dB,generateNeutralColorPalettes:fB})),j$(e.fontSize)),lB(e)),R$(e)),uB(e))}const L$=zu(cd),Hp={token:Ul,override:{override:Ul},hashed:!0},B$=de.createContext(Hp),ky="anticon",vB=(e,t)=>t||(e?`ant-${e}`:"ant"),kt=d.createContext({getPrefixCls:vB,iconPrefixCls:ky}),hB=`-ant-${Date.now()}-${Math.random()}`;function gB(e,t){const n={},r=(a,s)=>{let c=a.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},o=(a,s)=>{const c=new En(a),f=Wi(c.toRgbString());n[`${s}-color`]=r(c),n[`${s}-color-disabled`]=f[1],n[`${s}-color-hover`]=f[4],n[`${s}-color-active`]=f[6],n[`${s}-color-outline`]=c.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=f[0],n[`${s}-color-deprecated-border`]=f[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new En(t.primaryColor),s=Wi(a.toRgbString());s.forEach((f,p)=>{n[`primary-${p+1}`]=f}),n["primary-color-deprecated-l-35"]=r(a,f=>f.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,f=>f.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,f=>f.tint(20)),n["primary-color-deprecated-t-50"]=r(a,f=>f.tint(50)),n["primary-color-deprecated-f-12"]=r(a,f=>f.setAlpha(f.getAlpha()*.12));const c=new En(s[0]);n["primary-color-active-deprecated-f-30"]=r(c,f=>f.setAlpha(f.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(c,f=>f.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(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
`)}
}
`.trim()}function mB(e,t){const n=gB(e,t);sr()&&Aa(n,`${hB}-dynamic-theme`)}const M0=d.createContext(!1),Oy=e=>{let{children:t,disabled:n}=e;const r=d.useContext(M0);return d.createElement(M0.Provider,{value:n??r},t)},Ei=M0,N0=d.createContext(void 0),bB=e=>{let{children:t,size:n}=e;const r=d.useContext(N0);return d.createElement(N0.Provider,{value:n||r},t)},ud=N0;function yB(){const e=d.useContext(Ei),t=d.useContext(ud);return{componentDisabled:e,componentSize:t}}const _u=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],wB="5.13.2";function om(e){return e>=0&&e<=255}function Bf(e,t){const{r:n,g:r,b:o,a:i}=new En(e).toRgb();if(i<1)return e;const{r:a,g:s,b:c}=new En(t).toRgb();for(let f=.01;f<=1;f+=.01){const p=Math.round((n-a*(1-f))/f),v=Math.round((r-s*(1-f))/f),g=Math.round((o-c*(1-f))/f);if(om(p)&&om(v)&&om(g))return new En({r:p,g:v,b:g,a:Math.round(f*100)/100}).toRgbString()}return new En({r:n,g:r,b:o,a:1}).toRgbString()}var xB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function $y(e){const{override:t}=e,n=xB(e,["override"]),r=Object.assign({},t);Object.keys(Ul).forEach(g=>{delete r[g]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,c=992,f=1200,p=1600;if(o.motion===!1){const g="0s";o.motionDurationFast=g,o.motionDurationMid=g,o.motionDurationSlow=g}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Bf(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:Bf(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Bf(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:Bf(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowSecondary:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowTertiary:`
0 1px 2px 0 rgba(0, 0, 0, 0.03),
0 1px 6px -1px rgba(0, 0, 0, 0.02),
0 2px 4px 0 rgba(0, 0, 0, 0.02)
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:f-1,screenXL:f,screenXLMin:f,screenXLMax:p-1,screenXXL:p,screenXXLMin:p,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
0 1px 2px -2px ${new En("rgba(0, 0, 0, 0.16)").toRgbString()},
0 3px 6px 0 ${new En("rgba(0, 0, 0, 0.12)").toRgbString()},
0 5px 12px 4px ${new En("rgba(0, 0, 0, 0.09)").toRgbString()}
`,boxShadowDrawerRight:`
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerLeft:`
6px 0 16px 0 rgba(0, 0, 0, 0.08),
3px 0 6px -4px rgba(0, 0, 0, 0.12),
9px 0 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerUp:`
0 6px 16px 0 rgba(0, 0, 0, 0.08),
0 3px 6px -4px rgba(0, 0, 0, 0.12),
0 9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowDrawerDown:`
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var dC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const A$={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},z$={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},SB={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},F$=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=dC(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=$y(a),i&&Object.entries(i).forEach(s=>{let[c,f]=s;const{theme:p}=f,v=dC(f,["theme"]);let g=v;p&&(g=F$(Object.assign(Object.assign({},a),v),{override:v},p)),a[c]=g}),a};function tr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=de.useContext(B$),i=`${wB}-${t||""}`,a=n||L$,[s,c,f]=r6(a,[Ul,e],{salt:i,override:r,getComputedToken:F$,formatToken:$y,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:A$,ignore:z$,preserve:SB}});return[a,f,t?c:"",s,o]}function Rn(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function Ra(e){var t=d.useRef(!1),n=d.useState(e),r=he(n,2),o=r[0],i=r[1];d.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,c){c&&t.current||i(s)}return[o,a]}function im(e){return e!==void 0}function Fn(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=Ra(function(){return im(o)?o:im(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),c=he(s,2),f=c[0],p=c[1],v=o!==void 0?o:f,g=a?a(v):v,m=Rn(i),y=Ra([v]),b=he(y,2),w=b[0],S=b[1];YS(function(){var E=w[0];f!==E&&m(f,E)},[w]),YS(function(){im(o)||p(o)},[o]);var C=Rn(function(E,k){p(E,k),S([v],k)});return[g,C]}const Iy=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),za={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},$n=function(e){let t=arguments.length>1&&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}},Ov=()=>({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"}}),Es=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),CB=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"}}}),EB=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Fa=e=>({outline:`${se(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Vu=e=>({"&:focus-visible":Object.assign({},Fa(e))});let kB=dr(function e(){ur(this,e)});const H$=kB;function OB(e,t,n){return t=Ba(t),hy(e,xv()?Reflect.construct(t,n||[],Ba(e).constructor):t.apply(e,n))}let $B=function(e){oi(t,e);function t(n){var r;return ur(this,t),r=OB(this,t),r.result=0,n instanceof t?r.result=n.result:typeof n=="number"&&(r.result=n),r}return dr(t,[{key:"add",value:function(r){return r instanceof t?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof t?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof t?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof t?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),t}(H$);function IB(e,t,n){return t=Ba(t),hy(e,xv()?Reflect.construct(t,n||[],Ba(e).constructor):t.apply(e,n))}const _$="CALC_UNIT";function am(e){return typeof e=="number"?`${e}${_$}`:e}let TB=function(e){oi(t,e);function t(n){var r;return ur(this,t),r=IB(this,t),r.result="",n instanceof t?r.result=`(${n.result})`:typeof n=="number"?r.result=am(n):typeof n=="string"&&(r.result=n),r}return dr(t,[{key:"add",value:function(r){return r instanceof t?this.result=`${this.result} + ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} + ${am(r)}`),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof t?this.result=`${this.result} - ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} - ${am(r)}`),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} * ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} * ${r}`),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof t?this.result=`${this.result} / ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} / ${r}`),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?`(${this.result})`:this.result}},{key:"equal",value:function(r){const{unit:o=!0}=r||{},i=new RegExp(`${_$}`,"g");return this.result=this.result.replace(i,o?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),t}(H$);const PB=e=>{const t=e==="css"?TB:$B;return n=>new t(n)};function MB(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return`max(${n.map(o=>se(o)).join(",")})`},min:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return`min(${n.map(o=>se(o)).join(",")})`}}}const V$=typeof CSSINJS_STATISTIC<"u";let R0=!0;function un(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!V$)return Object.assign.apply(Object,[{}].concat(t));R0=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>o[a]})})}),R0=!0,r}const fC={};function NB(){}const RB=e=>{let t,n=e,r=NB;return V$&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(o,i){return R0&&t.add(i),o[i]}}),r=(o,i)=>{var a;fC[o]={global:Array.from(t),component:Object.assign(Object.assign({},(a=fC[o])===null||a===void 0?void 0:a.component),i)}}),{token:n,keys:t,flush:r}},W$=(e,t)=>{const[n,r]=tr();return O0({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Ov()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},U$=(e,t,n)=>{var r;return typeof n=="function"?n(un(t,(r=t[e])!==null&&r!==void 0?r:{})):n??{}},K$=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:a}=r;a.forEach(s=>{let[c,f]=s;var p;(o!=null&&o[c]||o!=null&&o[f])&&((p=o[f])!==null&&p!==void 0||(o[f]=o==null?void 0:o[c]))})}const i=Object.assign(Object.assign({},n),o);return Object.keys(i).forEach(a=>{i[a]===t[a]&&delete i[a]}),i},DB=(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 $v(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return s=>{const[c,f,p,v,g]=tr(),{getPrefixCls:m,iconPrefixCls:y,csp:b}=d.useContext(kt),w=m(),S=g?"css":"js",C=PB(S),{max:E,min:k}=MB(S),I={theme:c,token:v,hashId:p,nonce:()=>b==null?void 0:b.nonce,clientOnly:r.clientOnly,order:r.order||-999};return O0(Object.assign(Object.assign({},I),{clientOnly:!1,path:["Shared",w]}),()=>[{"&":CB(v)}]),W$(y,b),[O0(Object.assign(Object.assign({},I),{path:[a,s,y]}),()=>{if(r.injectStyle===!1)return[];const{token:T,flush:N}=RB(v),P=U$(i,f,n),D=`.${s}`,j=K$(i,f,P,{deprecatedTokens:r.deprecatedTokens});g&&Object.keys(P).forEach(B=>{P[B]=`var(${l$(B,DB(i,g.prefix))})`});const F=un(T,{componentCls:D,prefixCls:s,iconCls:`.${y}`,antCls:`.${w}`,calc:C,max:E,min:k},g?P:j),z=t(F,{hashId:p,prefixCls:s,rootPrefixCls:w,iconPrefixCls:y});return N(i,j),[r.resetStyle===!1?null:EB(F,s),z]}),p]}}const tc=(e,t,n,r)=>{const o=$v(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return a=>{let{prefixCls:s}=a;return o(s),null}},jB=(e,t,n)=>{function r(f){return`${e}${f.slice(0,1).toUpperCase()}${f.slice(1)}`}const{unitless:o={},injectStyle:i=!0}=n??{},a={[r("zIndexPopup")]:!0};Object.keys(o).forEach(f=>{a[r(f)]=o[f]});const s=f=>{let{rootCls:p,cssVar:v}=f;const[,g]=tr();return M6({path:[e],prefix:v.prefix,key:v==null?void 0:v.key,unitless:Object.assign(Object.assign({},A$),a),ignore:z$,token:g,scope:p},()=>{const m=U$(e,g,t),y=K$(e,g,m,{deprecatedTokens:n==null?void 0:n.deprecatedTokens});return Object.keys(m).forEach(b=>{y[r(b)]=y[b],delete y[b]}),y}),null};return f=>{const[,,,,p]=tr();return[v=>i&&p?de.createElement(de.Fragment,null,de.createElement(s,{rootCls:f,cssVar:p,component:e}),v):v,p==null?void 0:p.key]}},jn=(e,t,n,r)=>{const o=$v(e,t,n,r),i=jB(Array.isArray(e)?e[0]:e,n,r);return function(a){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a;const[,c]=o(a),[f,p]=i(s);return[f,c,p]}};function q$(e,t){return _u.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const LB=Object.assign({},ld),{useId:pC}=LB,BB=()=>"",AB=typeof pC>"u"?BB:pC;function zB(e,t){Ds();const n=e||{},r=n.inherit===!1||!t?Hp:t,o=AB();return Ns(()=>{var i,a;if(!e)return t;const s=Object.assign({},r.components);Object.keys(e.components||{}).forEach(p=>{s[p]=Object.assign(Object.assign({},s[p]),e.components[p])});const c=`css-var-${o.replace(/:/g,"")}`,f=((i=n.cssVar)!==null&&i!==void 0?i:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof r.cssVar=="object"?r.cssVar:{}),typeof n.cssVar=="object"?n.cssVar:{}),{key:typeof n.cssVar=="object"&&((a=n.cssVar)===null||a===void 0?void 0:a.key)||c});return Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:s,cssVar:f})},[n,r],(i,a)=>i.some((s,c)=>{const f=a[c];return!Vi(s,f,!0)}))}var FB=["children"],X$=d.createContext({});function HB(e){var t=e.children,n=jt(e,FB);return d.createElement(X$.Provider,{value:n},t)}var _B=function(e){oi(n,e);var t=Zi(n);function n(){return ur(this,n),t.apply(this,arguments)}return dr(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component),ls="none",Af="appear",zf="enter",Ff="leave",vC="none",Go="prepare",kl="start",Ol="active",Ty="end",G$="prepared";function hC(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function VB(e,t){var n={animationend:hC("Animation","AnimationEnd"),transitionend:hC("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var WB=VB(sr(),typeof window<"u"?window:{}),Y$={};if(sr()){var UB=document.createElement("div");Y$=UB.style}var Hf={};function Q$(e){if(Hf[e])return Hf[e];var t=WB[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Y$)return Hf[e]=t[i],Hf[e]}return""}var Z$=Q$("animationend"),J$=Q$("transitionend"),eI=!!(Z$&&J$),gC=Z$||"animationend",mC=J$||"transitionend";function bC(e,t){if(!e)return null;if(Tt(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const KB=function(e){var t=d.useRef(),n=d.useRef(e);n.current=e;var r=d.useCallback(function(a){n.current(a)},[]);function o(a){a&&(a.removeEventListener(mC,r),a.removeEventListener(gC,r))}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener(mC,r),a.addEventListener(gC,r),t.current=a)}return d.useEffect(function(){return function(){o(t.current)}},[]),[i,o]};var tI=sr()?d.useLayoutEffect:d.useEffect;const qB=function(){var e=d.useRef(null);function t(){vn.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=vn(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return d.useEffect(function(){return function(){t()}},[]),[n,t]};var XB=[Go,kl,Ol,Ty],GB=[Go,G$],nI=!1,YB=!0;function rI(e){return e===Ol||e===Ty}const QB=function(e,t,n){var r=Ra(vC),o=he(r,2),i=o[0],a=o[1],s=qB(),c=he(s,2),f=c[0],p=c[1];function v(){a(Go,!0)}var g=t?GB:XB;return tI(function(){if(i!==vC&&i!==Ty){var m=g.indexOf(i),y=g[m+1],b=n(i);b===nI?a(y,!0):y&&f(function(w){function S(){w.isCanceled()||a(y,!0)}b===!0?S():Promise.resolve(b).then(S)})}},[e,i]),d.useEffect(function(){return function(){p()}},[]),[v,i]};function ZB(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,c=r.motionLeave,f=c===void 0?!0:c,p=r.motionDeadline,v=r.motionLeaveImmediately,g=r.onAppearPrepare,m=r.onEnterPrepare,y=r.onLeavePrepare,b=r.onAppearStart,w=r.onEnterStart,S=r.onLeaveStart,C=r.onAppearActive,E=r.onEnterActive,k=r.onLeaveActive,I=r.onAppearEnd,$=r.onEnterEnd,T=r.onLeaveEnd,N=r.onVisibleChanged,P=Ra(),D=he(P,2),j=D[0],F=D[1],z=Ra(ls),B=he(z,2),_=B[0],H=B[1],L=Ra(null),A=he(L,2),U=A[0],R=A[1],V=d.useRef(!1),Y=d.useRef(null);function X(){return n()}var q=d.useRef(!1);function G(){H(ls,!0),R(null,!0)}function K(pe){var me=X();if(!(pe&&!pe.deadline&&pe.target!==me)){var xe=q.current,Pe;_===Af&&xe?Pe=I==null?void 0:I(me,pe):_===zf&&xe?Pe=$==null?void 0:$(me,pe):_===Ff&&xe&&(Pe=T==null?void 0:T(me,pe)),_!==ls&&xe&&Pe!==!1&&G()}}var J=KB(K),oe=he(J,1),fe=oe[0],ce=function(me){var xe,Pe,Ie;switch(me){case Af:return xe={},Q(xe,Go,g),Q(xe,kl,b),Q(xe,Ol,C),xe;case zf:return Pe={},Q(Pe,Go,m),Q(Pe,kl,w),Q(Pe,Ol,E),Pe;case Ff:return Ie={},Q(Ie,Go,y),Q(Ie,kl,S),Q(Ie,Ol,k),Ie;default:return{}}},ee=d.useMemo(function(){return ce(_)},[_]),ie=QB(_,!e,function(pe){if(pe===Go){var me=ee[Go];return me?me(X()):nI}if(le in ee){var xe;R(((xe=ee[le])===null||xe===void 0?void 0:xe.call(ee,X(),null))||null)}return le===Ol&&(fe(X()),p>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){K({deadline:!0})},p))),le===G$&&G(),YB}),te=he(ie,2),re=te[0],le=te[1],ge=rI(le);q.current=ge,tI(function(){F(t);var pe=V.current;V.current=!0;var me;!pe&&t&&s&&(me=Af),pe&&t&&i&&(me=zf),(pe&&!t&&f||!pe&&v&&!t&&f)&&(me=Ff);var xe=ce(me);me&&(e||xe[Go])?(H(me),re()):H(ls)},[t]),d.useEffect(function(){(_===Af&&!s||_===zf&&!i||_===Ff&&!f)&&H(ls)},[s,i,f]),d.useEffect(function(){return function(){V.current=!1,clearTimeout(Y.current)}},[]);var be=d.useRef(!1);d.useEffect(function(){j&&(be.current=!0),j!==void 0&&_===ls&&((be.current||j)&&(N==null||N(j)),be.current=!0)},[j,_]);var Se=U;return ee[Go]&&le===kl&&(Se=Z({transition:"none"},Se)),[_,le,Se,j??t]}function JB(e){var t=e;Tt(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=d.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,c=o.removeOnLeave,f=c===void 0?!0:c,p=o.forceRender,v=o.children,g=o.motionName,m=o.leavedClassName,y=o.eventProps,b=d.useContext(X$),w=b.motion,S=n(o,w),C=d.useRef(),E=d.useRef();function k(){try{return C.current instanceof HTMLElement?C.current:hu(E.current)}catch{return null}}var I=ZB(S,s,k,o),$=he(I,4),T=$[0],N=$[1],P=$[2],D=$[3],j=d.useRef(D);D&&(j.current=!0);var F=d.useCallback(function(R){C.current=R,Bu(i,R)},[i]),z,B=Z(Z({},y),{},{visible:s});if(!v)z=null;else if(T===ls)D?z=v(Z({},B),F):!f&&j.current&&m?z=v(Z(Z({},B),{},{className:m}),F):p||!f&&!m?z=v(Z(Z({},B),{},{style:{display:"none"}}),F):z=null;else{var _,H;N===Go?H="prepare":rI(N)?H="active":N===kl&&(H="start");var L=bC(g,"".concat(T,"-").concat(H));z=v(Z(Z({},B),{},{className:ae(bC(g,T),(_={},Q(_,L,L&&H),Q(_,g,typeof g=="string"),_)),style:P}),F)}if(d.isValidElement(z)&&ti(z)){var A=z,U=A.ref;U||(z=d.cloneElement(z,{ref:F}))}return d.createElement(_B,{ref:E},z)});return r.displayName="CSSMotion",r}const Bo=JB(eI);var D0="add",j0="keep",L0="remove",sm="removed";function eA(e){var t;return e&&Tt(e)==="object"&&"key"in e?t=e:t={key:e},Z(Z({},t),{},{key:String(t.key)})}function B0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(eA)}function tA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=B0(e),a=B0(t);i.forEach(function(f){for(var p=!1,v=r;v<o;v+=1){var g=a[v];if(g.key===f.key){r<v&&(n=n.concat(a.slice(r,v).map(function(m){return Z(Z({},m),{},{status:D0})})),r=v),n.push(Z(Z({},g),{},{status:j0})),r+=1,p=!0;break}}p||n.push(Z(Z({},f),{},{status:L0}))}),r<o&&(n=n.concat(a.slice(r).map(function(f){return Z(Z({},f),{},{status:D0})})));var s={};n.forEach(function(f){var p=f.key;s[p]=(s[p]||0)+1});var c=Object.keys(s).filter(function(f){return s[f]>1});return c.forEach(function(f){n=n.filter(function(p){var v=p.key,g=p.status;return v!==f||g!==L0}),n.forEach(function(p){p.key===f&&(p.status=j0)})}),n}var nA=["component","children","onVisibleChanged","onAllRemoved"],rA=["status"],oA=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function iA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bo,n=function(r){oi(i,r);var o=Zi(i);function i(){var a;ur(this,i);for(var s=arguments.length,c=new Array(s),f=0;f<s;f++)c[f]=arguments[f];return a=o.call.apply(o,[this].concat(c)),Q(Dt(a),"state",{keyEntities:[]}),Q(Dt(a),"removeKey",function(p){var v=a.state.keyEntities,g=v.map(function(m){return m.key!==p?m:Z(Z({},m),{},{status:sm})});return a.setState({keyEntities:g}),g.filter(function(m){var y=m.status;return y!==sm}).length}),a}return dr(i,[{key:"render",value:function(){var s=this,c=this.state.keyEntities,f=this.props,p=f.component,v=f.children,g=f.onVisibleChanged,m=f.onAllRemoved,y=jt(f,nA),b=p||d.Fragment,w={};return oA.forEach(function(S){w[S]=y[S],delete y[S]}),delete y.keys,d.createElement(b,y,c.map(function(S,C){var E=S.status,k=jt(S,rA),I=E===D0||E===j0;return d.createElement(t,ke({},w,{key:k.key,visible:I,eventProps:k,onVisibleChanged:function(T){if(g==null||g(T,{key:k.key}),!T){var N=s.removeKey(k.key);N===0&&m&&m()}}}),function($,T){return v(Z(Z({},$),{},{index:C}),T)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,c){var f=s.keys,p=c.keyEntities,v=B0(f),g=tA(p,v);return{keyEntities:g.filter(function(m){var y=p.find(function(b){var w=b.key;return m.key===w});return!(y&&y.status===sm&&m.status===L0)})}}}]),i}(d.Component);return Q(n,"defaultProps",{component:"div"}),n}const oI=iA(eI);function aA(e){const{children:t}=e,[,n]=tr(),{motion:r}=n,o=d.useRef(!1);return o.current=o.current||r===!1,o.current?d.createElement(HB,{motion:r},t):t}const sA=()=>null;var lA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cA=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],uA="ant";let _p,iI,aI,sI;function xp(){return _p||uA}function dA(){return iI||ky}function fA(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const pA=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(_p=t),n!==void 0&&(iI=n),"holderRender"in e&&(sI=o),r&&(fA(r)?mB(xp(),r):aI=r)},vA=()=>({getPrefixCls:(e,t)=>t||(e?`${xp()}-${e}`:xp()),getIconPrefixCls:dA,getRootPrefixCls:()=>_p||xp(),getTheme:()=>aI,holderRender:sI}),hA=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:c,direction:f,space:p,virtual:v,dropdownMatchSelectWidth:g,popupMatchSelectWidth:m,popupOverflow:y,legacyLocale:b,parentContext:w,iconPrefixCls:S,theme:C,componentDisabled:E,segmented:k,statistic:I,spin:$,calendar:T,carousel:N,cascader:P,collapse:D,typography:j,checkbox:F,descriptions:z,divider:B,drawer:_,skeleton:H,steps:L,image:A,layout:U,list:R,mentions:V,modal:Y,progress:X,result:q,slider:G,breadcrumb:K,menu:J,pagination:oe,input:fe,empty:ce,badge:ee,radio:ie,rate:te,switch:re,transfer:le,avatar:ge,message:be,tag:Se,table:pe,card:me,tabs:xe,timeline:Pe,timePicker:Ie,upload:De,notification:Be,tree:qe,colorPicker:lt,datePicker:et,rangePicker:He,flex:Fe,wave:Re,dropdown:ft,warning:Me}=e,We=d.useCallback((ze,Qe)=>{const{prefixCls:Xe}=e;if(Qe)return Qe;const rt=Xe||w.getPrefixCls("");return ze?`${rt}-${ze}`:rt},[w.getPrefixCls,e.prefixCls]),Le=S||w.iconPrefixCls||ky,je=n||w.csp;W$(Le,je);const Ye=zB(C,w.theme),mt={csp:je,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||b,direction:f,space:p,virtual:v,popupMatchSelectWidth:m??g,popupOverflow:y,getPrefixCls:We,iconPrefixCls:Le,theme:Ye,segmented:k,statistic:I,spin:$,calendar:T,carousel:N,cascader:P,collapse:D,typography:j,checkbox:F,descriptions:z,divider:B,drawer:_,skeleton:H,steps:L,image:A,input:fe,layout:U,list:R,mentions:V,modal:Y,progress:X,result:q,slider:G,breadcrumb:K,menu:J,pagination:oe,empty:ce,badge:ee,radio:ie,rate:te,switch:re,transfer:le,avatar:ge,message:be,tag:Se,table:pe,card:me,tabs:xe,timeline:Pe,timePicker:Ie,upload:De,notification:Be,tree:qe,colorPicker:lt,datePicker:et,rangePicker:He,flex:Fe,wave:Re,dropdown:ft,warning:Me},bt=Object.assign({},w);Object.keys(mt).forEach(ze=>{mt[ze]!==void 0&&(bt[ze]=mt[ze])}),cA.forEach(ze=>{const Qe=e[ze];Qe&&(bt[ze]=Qe)});const Oe=Ns(()=>bt,bt,(ze,Qe)=>{const Xe=Object.keys(ze),rt=Object.keys(Qe);return Xe.length!==rt.length||Xe.some(it=>ze[it]!==Qe[it])}),Ge=d.useMemo(()=>({prefixCls:Le,csp:je}),[Le,je]);let ct=d.createElement(d.Fragment,null,d.createElement(sA,{dropdownMatchSelectWidth:g}),t);const Mt=d.useMemo(()=>{var ze,Qe,Xe,rt;return El(((ze=ni.Form)===null||ze===void 0?void 0:ze.defaultValidateMessages)||{},((Xe=(Qe=Oe.locale)===null||Qe===void 0?void 0:Qe.Form)===null||Xe===void 0?void 0:Xe.defaultValidateMessages)||{},((rt=Oe.form)===null||rt===void 0?void 0:rt.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Oe,a==null?void 0:a.validateMessages]);Object.keys(Mt).length>0&&(ct=d.createElement(O$.Provider,{value:Mt},ct)),s&&(ct=d.createElement(W6,{locale:s,_ANT_MARK__:_6},ct)),(Le||je)&&(ct=d.createElement(Sy.Provider,{value:Ge},ct)),c&&(ct=d.createElement(bB,{size:c},ct)),ct=d.createElement(aA,null,ct);const ut=d.useMemo(()=>{const ze=Ye||{},{algorithm:Qe,token:Xe,components:rt,cssVar:it}=ze,tt=lA(ze,["algorithm","token","components","cssVar"]),Ke=Qe&&(!Array.isArray(Qe)||Qe.length>0)?zu(Qe):L$,Ae={};Object.entries(rt||{}).forEach(Nt=>{let[Ot,ot]=Nt;const at=Object.assign({},ot);"algorithm"in at&&(at.algorithm===!0?at.theme=Ke:(Array.isArray(at.algorithm)||typeof at.algorithm=="function")&&(at.theme=zu(at.algorithm)),delete at.algorithm),Ae[Ot]=at});const xt=Object.assign(Object.assign({},Ul),Xe);return Object.assign(Object.assign({},tt),{theme:Ke,token:xt,components:Ae,override:Object.assign({override:xt},Ae),cssVar:it})},[Ye]);return C&&(ct=d.createElement(B$.Provider,{value:ut},ct)),Oe.warning&&(ct=d.createElement(L6.Provider,{value:Oe.warning},ct)),E!==void 0&&(ct=d.createElement(Oy,{disabled:E},ct)),d.createElement(kt.Provider,{value:Oe},ct)},nc=e=>{const t=d.useContext(kt),n=d.useContext(Cy);return d.createElement(hA,Object.assign({parentContext:t,legacyLocale:n},e))};nc.ConfigContext=kt;nc.SizeContext=ud;nc.config=pA;nc.useConfig=yB;Object.defineProperty(nc,"SizeContext",{get:()=>ud});const Iv=nc;var gA={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 mA=gA;function lI(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function bA(e){return lI(e)instanceof ShadowRoot}function Vp(e){return bA(e)?lI(e):null}function yA(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function wA(e,t){Dn(e,"[@ant-design/icons] ".concat(t))}function yC(e){return Tt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Tt(e.icon)==="object"||typeof e.icon=="function")}function wC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[yA(n)]=r}return t},{})}function A0(e,t,n){return n?de.createElement(e.tag,Z(Z({key:t},wC(e.attrs)),n),(e.children||[]).map(function(r,o){return A0(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):de.createElement(e.tag,Z({key:t},wC(e.attrs)),(e.children||[]).map(function(r,o){return A0(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function cI(e){return Wi(e)[0]}function uI(e){return e?Array.isArray(e)?e:[e]:[]}var xA=`
.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);
}
}
`,SA=function(t){var n=d.useContext(Sy),r=n.csp,o=n.prefixCls,i=xA;o&&(i=i.replace(/anticon/g,o)),d.useEffect(function(){var a=t.current,s=Vp(a);Aa(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},CA=["icon","className","onClick","style","primaryColor","secondaryColor"],yu={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function EA(e){var t=e.primaryColor,n=e.secondaryColor;yu.primaryColor=t,yu.secondaryColor=n||cI(t),yu.calculated=!!n}function kA(){return Z({},yu)}var Tv=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,c=jt(t,CA),f=d.useRef(),p=yu;if(a&&(p={primaryColor:a,secondaryColor:s||cI(a)}),SA(f),wA(yC(n),"icon should be icon definiton, but got ".concat(n)),!yC(n))return null;var v=n;return v&&typeof v.icon=="function"&&(v=Z(Z({},v),{},{icon:v.icon(p.primaryColor,p.secondaryColor)})),A0(v.icon,"svg-".concat(v.name),Z(Z({className:r,onClick:o,style:i,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:f}))};Tv.displayName="IconReact";Tv.getTwoToneColors=kA;Tv.setTwoToneColors=EA;const Py=Tv;function dI(e){var t=uI(e),n=he(t,2),r=n[0],o=n[1];return Py.setTwoToneColors({primaryColor:r,secondaryColor:o})}function OA(){var e=Py.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var $A=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];dI(P0.primary);var Pv=d.forwardRef(function(e,t){var n,r=e.className,o=e.icon,i=e.spin,a=e.rotate,s=e.tabIndex,c=e.onClick,f=e.twoToneColor,p=jt(e,$A),v=d.useContext(Sy),g=v.prefixCls,m=g===void 0?"anticon":g,y=v.rootClassName,b=ae(y,m,(n={},Q(n,"".concat(m,"-").concat(o.name),!!o.name),Q(n,"".concat(m,"-spin"),!!i||o.name==="loading"),n),r),w=s;w===void 0&&c&&(w=-1);var S=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,C=uI(f),E=he(C,2),k=E[0],I=E[1];return d.createElement("span",ke({role:"img","aria-label":o.name},p,{ref:t,tabIndex:w,onClick:c,className:b}),d.createElement(Py,{icon:o,primaryColor:k,secondaryColor:I,style:S}))});Pv.displayName="AntdIcon";Pv.getTwoToneColor=OA;Pv.setTwoToneColor=dI;const Zt=Pv;var IA=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:mA}))};const My=d.forwardRef(IA);var TA={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 PA=TA;var MA=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:PA}))};const rc=d.forwardRef(MA);var NA={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const RA=NA;var DA=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:RA}))};const oc=d.forwardRef(DA);var jA={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 LA=jA;var BA=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:LA}))};const Mv=d.forwardRef(BA);var AA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const zA=AA;var FA=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:zA}))};const HA=d.forwardRef(FA);var _A=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,VA=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,WA="".concat(_A," ").concat(VA).split(/[\s\n]+/),UA="aria-",KA="data-";function xC(e,t){return e.indexOf(t)===0}function Do(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=Z({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||xC(o,UA))||n.data&&xC(o,KA)||n.attr&&WA.includes(o))&&(r[o]=e[o])}),r}const{isValidElement:Ar}=ld;function fI(e){return e&&Ar(e)&&e.type===d.Fragment}function qA(e,t,n){return Ar(e)?d.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t}function mr(e,t){return qA(e,e,t)}const SC=e=>typeof e=="object"&&e!=null&&e.nodeType===1,CC=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",lm=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return CC(n.overflowY,t)||CC(n.overflowX,t)||(r=>{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},_f=(e,t,n,r,o,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0,XA=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},EC=(e,t)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:c,boundary:f,skipOverflowHiddenElements:p}=t,v=typeof f=="function"?f:H=>H!==f;if(!SC(e))throw new TypeError("Invalid target");const g=document.scrollingElement||document.documentElement,m=[];let y=e;for(;SC(y)&&v(y);){if(y=XA(y),y===g){m.push(y);break}y!=null&&y===document.body&&lm(y)&&!lm(document.documentElement)||y!=null&&lm(y,p)&&m.push(y)}const b=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,w=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:S,scrollY:C}=window,{height:E,width:k,top:I,right:$,bottom:T,left:N}=e.getBoundingClientRect(),{top:P,right:D,bottom:j,left:F}=(H=>{const L=window.getComputedStyle(H);return{top:parseFloat(L.scrollMarginTop)||0,right:parseFloat(L.scrollMarginRight)||0,bottom:parseFloat(L.scrollMarginBottom)||0,left:parseFloat(L.scrollMarginLeft)||0}})(e);let z=s==="start"||s==="nearest"?I-P:s==="end"?T+j:I+E/2-P+j,B=c==="center"?N+k/2-F+D:c==="end"?$+D:N-F;const _=[];for(let H=0;H<m.length;H++){const L=m[H],{height:A,width:U,top:R,right:V,bottom:Y,left:X}=L.getBoundingClientRect();if(a==="if-needed"&&I>=0&&N>=0&&T<=w&&$<=b&&I>=R&&T<=Y&&N>=X&&$<=V)return _;const q=getComputedStyle(L),G=parseInt(q.borderLeftWidth,10),K=parseInt(q.borderTopWidth,10),J=parseInt(q.borderRightWidth,10),oe=parseInt(q.borderBottomWidth,10);let fe=0,ce=0;const ee="offsetWidth"in L?L.offsetWidth-L.clientWidth-G-J:0,ie="offsetHeight"in L?L.offsetHeight-L.clientHeight-K-oe:0,te="offsetWidth"in L?L.offsetWidth===0?0:U/L.offsetWidth:0,re="offsetHeight"in L?L.offsetHeight===0?0:A/L.offsetHeight:0;if(g===L)fe=s==="start"?z:s==="end"?z-w:s==="nearest"?_f(C,C+w,w,K,oe,C+z,C+z+E,E):z-w/2,ce=c==="start"?B:c==="center"?B-b/2:c==="end"?B-b:_f(S,S+b,b,G,J,S+B,S+B+k,k),fe=Math.max(0,fe+C),ce=Math.max(0,ce+S);else{fe=s==="start"?z-R-K:s==="end"?z-Y+oe+ie:s==="nearest"?_f(R,Y,A,K,oe+ie,z,z+E,E):z-(R+A/2)+ie/2,ce=c==="start"?B-X-G:c==="center"?B-(X+U/2)+ee/2:c==="end"?B-V+J+ee:_f(X,V,U,G,J+ee,B,B+k,k);const{scrollLeft:le,scrollTop:ge}=L;fe=re===0?0:Math.max(0,Math.min(ge+fe/re,L.scrollHeight-A/re+ie)),ce=te===0?0:Math.max(0,Math.min(le+ce/te,L.scrollWidth-U/te+ee)),z+=ge-fe,B+=le-ce}_.push({el:L,top:fe,left:ce})}return _},GA=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function YA(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 n=(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(EC(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of EC(e,GA(t))){const s=i-n.top+n.bottom,c=a-n.left+n.right;o.scroll({top:s,left:c,behavior:r})}}function z0(e){return e!=null&&e===e.window}function QA(e,t){var n,r;if(typeof window>"u")return 0;const o=t?"scrollTop":"scrollLeft";let i=0;return z0(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[o]:(e instanceof HTMLElement||e)&&(i=e[o]),e&&!z0(e)&&typeof i!="number"&&(i=(r=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||r===void 0?void 0:r[o]),i}function ZA(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function JA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=QA(i,!0),s=Date.now(),c=()=>{const p=Date.now()-s,v=ZA(p>o?o:p,a,e,o);z0(i)?i.scrollTo(window.pageXOffset,v):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=v:i.scrollTop=v,p<o?vn(c):typeof r=="function"&&r()};vn(c)}const br=e=>{const[,,,,t]=tr();return t?`${e}-css-var`:""};var Te={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=Te.F1&&n<=Te.F12)return!1;switch(n){case Te.ALT:case Te.CAPS_LOCK:case Te.CONTEXT_MENU:case Te.CTRL:case Te.DOWN:case Te.END:case Te.ESC:case Te.HOME:case Te.INSERT:case Te.LEFT:case Te.MAC_FF_META:case Te.META:case Te.NUMLOCK:case Te.NUM_CENTER:case Te.PAGE_DOWN:case Te.PAGE_UP:case Te.PAUSE:case Te.PRINT_SCREEN:case Te.RIGHT:case Te.SHIFT:case Te.UP:case Te.WIN_KEY:case Te.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Te.ZERO&&t<=Te.NINE||t>=Te.NUM_ZERO&&t<=Te.NUM_MULTIPLY||t>=Te.A&&t<=Te.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Te.SPACE:case Te.QUESTION_MARK:case Te.NUM_PLUS:case Te.NUM_MINUS:case Te.NUM_PERIOD:case Te.NUM_DIVISION:case Te.SEMICOLON:case Te.DASH:case Te.EQUALS:case Te.COMMA:case Te.PERIOD:case Te.SLASH:case Te.APOSTROPHE:case Te.SINGLE_QUOTE:case Te.OPEN_SQUARE_BRACKET:case Te.BACKSLASH:case Te.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ez={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 tz=ez;var nz=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:tz}))};const ks=d.forwardRef(nz),rz=de.createContext(void 0),Nv=rz,cs=100,oz=10,pI=cs*oz,vI={Modal:cs,Drawer:cs,Popover:cs,Popconfirm:cs,Tooltip:cs,Tour:cs},iz={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function az(e){return e in vI}function ic(e,t){const[,n]=tr(),r=de.useContext(Nv),o=az(e);if(t!==void 0)return[t,t];let i=r??0;return o?(i+=(r?0:n.zIndexPopupBase)+vI[e],i=Math.min(i,n.zIndexPopupBase+pI)):i+=iz[e],[r===void 0?t:i,i]}function sz(){const[e,t]=d.useState([]),n=d.useCallback(r=>(t(o=>[].concat(Ee(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}function Cr(){Cr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(H,L,A){H[L]=A.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(H,L,A){return Object.defineProperty(H,L,{value:A,enumerable:!0,configurable:!0,writable:!0}),H[L]}try{f({},"")}catch{f=function(A,U,R){return A[U]=R}}function p(H,L,A,U){var R=L&&L.prototype instanceof S?L:S,V=Object.create(R.prototype),Y=new B(U||[]);return o(V,"_invoke",{value:D(H,A,Y)}),V}function v(H,L,A){try{return{type:"normal",arg:H.call(L,A)}}catch(U){return{type:"throw",arg:U}}}t.wrap=p;var g="suspendedStart",m="suspendedYield",y="executing",b="completed",w={};function S(){}function C(){}function E(){}var k={};f(k,a,function(){return this});var I=Object.getPrototypeOf,$=I&&I(I(_([])));$&&$!==n&&r.call($,a)&&(k=$);var T=E.prototype=S.prototype=Object.create(k);function N(H){["next","throw","return"].forEach(function(L){f(H,L,function(A){return this._invoke(L,A)})})}function P(H,L){function A(R,V,Y,X){var q=v(H[R],H,V);if(q.type!=="throw"){var G=q.arg,K=G.value;return K&&Tt(K)=="object"&&r.call(K,"__await")?L.resolve(K.__await).then(function(J){A("next",J,Y,X)},function(J){A("throw",J,Y,X)}):L.resolve(K).then(function(J){G.value=J,Y(G)},function(J){return A("throw",J,Y,X)})}X(q.arg)}var U;o(this,"_invoke",{value:function(V,Y){function X(){return new L(function(q,G){A(V,Y,q,G)})}return U=U?U.then(X,X):X()}})}function D(H,L,A){var U=g;return function(R,V){if(U===y)throw new Error("Generator is already running");if(U===b){if(R==="throw")throw V;return{value:e,done:!0}}for(A.method=R,A.arg=V;;){var Y=A.delegate;if(Y){var X=j(Y,A);if(X){if(X===w)continue;return X}}if(A.method==="next")A.sent=A._sent=A.arg;else if(A.method==="throw"){if(U===g)throw U=b,A.arg;A.dispatchException(A.arg)}else A.method==="return"&&A.abrupt("return",A.arg);U=y;var q=v(H,L,A);if(q.type==="normal"){if(U=A.done?b:m,q.arg===w)continue;return{value:q.arg,done:A.done}}q.type==="throw"&&(U=b,A.method="throw",A.arg=q.arg)}}}function j(H,L){var A=L.method,U=H.iterator[A];if(U===e)return L.delegate=null,A==="throw"&&H.iterator.return&&(L.method="return",L.arg=e,j(H,L),L.method==="throw")||A!=="return"&&(L.method="throw",L.arg=new TypeError("The iterator does not provide a '"+A+"' method")),w;var R=v(U,H.iterator,L.arg);if(R.type==="throw")return L.method="throw",L.arg=R.arg,L.delegate=null,w;var V=R.arg;return V?V.done?(L[H.resultName]=V.value,L.next=H.nextLoc,L.method!=="return"&&(L.method="next",L.arg=e),L.delegate=null,w):V:(L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,w)}function F(H){var L={tryLoc:H[0]};1 in H&&(L.catchLoc=H[1]),2 in H&&(L.finallyLoc=H[2],L.afterLoc=H[3]),this.tryEntries.push(L)}function z(H){var L=H.completion||{};L.type="normal",delete L.arg,H.completion=L}function B(H){this.tryEntries=[{tryLoc:"root"}],H.forEach(F,this),this.reset(!0)}function _(H){if(H||H===""){var L=H[a];if(L)return L.call(H);if(typeof H.next=="function")return H;if(!isNaN(H.length)){var A=-1,U=function R(){for(;++A<H.length;)if(r.call(H,A))return R.value=H[A],R.done=!1,R;return R.value=e,R.done=!0,R};return U.next=U}}throw new TypeError(Tt(H)+" is not iterable")}return C.prototype=E,o(T,"constructor",{value:E,configurable:!0}),o(E,"constructor",{value:C,configurable:!0}),C.displayName=f(E,c,"GeneratorFunction"),t.isGeneratorFunction=function(H){var L=typeof H=="function"&&H.constructor;return!!L&&(L===C||(L.displayName||L.name)==="GeneratorFunction")},t.mark=function(H){return Object.setPrototypeOf?Object.setPrototypeOf(H,E):(H.__proto__=E,f(H,c,"GeneratorFunction")),H.prototype=Object.create(T),H},t.awrap=function(H){return{__await:H}},N(P.prototype),f(P.prototype,s,function(){return this}),t.AsyncIterator=P,t.async=function(H,L,A,U,R){R===void 0&&(R=Promise);var V=new P(p(H,L,A,U),R);return t.isGeneratorFunction(L)?V:V.next().then(function(Y){return Y.done?Y.value:V.next()})},N(T),f(T,c,"Generator"),f(T,a,function(){return this}),f(T,"toString",function(){return"[object Generator]"}),t.keys=function(H){var L=Object(H),A=[];for(var U in L)A.push(U);return A.reverse(),function R(){for(;A.length;){var V=A.pop();if(V in L)return R.value=V,R.done=!1,R}return R.done=!0,R}},t.values=_,B.prototype={constructor:B,reset:function(L){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(z),!L)for(var A in this)A.charAt(0)==="t"&&r.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=e)},stop:function(){this.done=!0;var L=this.tryEntries[0].completion;if(L.type==="throw")throw L.arg;return this.rval},dispatchException:function(L){if(this.done)throw L;var A=this;function U(G,K){return Y.type="throw",Y.arg=L,A.next=G,K&&(A.method="next",A.arg=e),!!K}for(var R=this.tryEntries.length-1;R>=0;--R){var V=this.tryEntries[R],Y=V.completion;if(V.tryLoc==="root")return U("end");if(V.tryLoc<=this.prev){var X=r.call(V,"catchLoc"),q=r.call(V,"finallyLoc");if(X&&q){if(this.prev<V.catchLoc)return U(V.catchLoc,!0);if(this.prev<V.finallyLoc)return U(V.finallyLoc)}else if(X){if(this.prev<V.catchLoc)return U(V.catchLoc,!0)}else{if(!q)throw new Error("try statement without catch or finally");if(this.prev<V.finallyLoc)return U(V.finallyLoc)}}}},abrupt:function(L,A){for(var U=this.tryEntries.length-1;U>=0;--U){var R=this.tryEntries[U];if(R.tryLoc<=this.prev&&r.call(R,"finallyLoc")&&this.prev<R.finallyLoc){var V=R;break}}V&&(L==="break"||L==="continue")&&V.tryLoc<=A&&A<=V.finallyLoc&&(V=null);var Y=V?V.completion:{};return Y.type=L,Y.arg=A,V?(this.method="next",this.next=V.finallyLoc,w):this.complete(Y)},complete:function(L,A){if(L.type==="throw")throw L.arg;return L.type==="break"||L.type==="continue"?this.next=L.arg:L.type==="return"?(this.rval=this.arg=L.arg,this.method="return",this.next="end"):L.type==="normal"&&A&&(this.next=A),w},finish:function(L){for(var A=this.tryEntries.length-1;A>=0;--A){var U=this.tryEntries[A];if(U.finallyLoc===L)return this.complete(U.completion,U.afterLoc),z(U),w}},catch:function(L){for(var A=this.tryEntries.length-1;A>=0;--A){var U=this.tryEntries[A];if(U.tryLoc===L){var R=U.completion;if(R.type==="throw"){var V=R.arg;z(U)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(L,A,U){return this.delegate={iterator:_(L),resultName:A,nextLoc:U},this.method==="next"&&(this.arg=e),w}},t}function kC(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(f){n(f);return}s.done?t(c):Promise.resolve(c).then(r,o)}function Va(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(c){kC(i,r,o,a,s,"next",c)}function s(c){kC(i,r,o,a,s,"throw",c)}a(void 0)})}}var dd=Z({},Wj),lz=dd.version,cz=dd.render,uz=dd.unmountComponentAtNode,Rv;try{var dz=Number((lz||"").split(".")[0]);dz>=18&&(Rv=dd.createRoot)}catch{}function OC(e){var t=dd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Tt(t)==="object"&&(t.usingClientEntryPoint=e)}var Wp="__rc_react_root__";function fz(e,t){OC(!0);var n=t[Wp]||Rv(t);OC(!1),n.render(e),t[Wp]=n}function pz(e,t){cz(e,t)}function hI(e,t){if(Rv){fz(e,t);return}pz(e,t)}function vz(e){return F0.apply(this,arguments)}function F0(){return F0=Va(Cr().mark(function e(t){return Cr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Wp])===null||o===void 0||o.unmount(),delete t[Wp]}));case 1:case"end":return r.stop()}},e)})),F0.apply(this,arguments)}function hz(e){uz(e)}function gI(e){return H0.apply(this,arguments)}function H0(){return H0=Va(Cr().mark(function e(t){return Cr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Rv===void 0){r.next=2;break}return r.abrupt("return",vz(t));case 2:hz(t);case 3:case"end":return r.stop()}},e)})),H0.apply(this,arguments)}const cm=()=>({height:0,opacity:0}),$C=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},gz=e=>({height:e?e.offsetHeight:0}),um=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Wu=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:cm,onEnterStart:cm,onAppearActive:$C,onEnterActive:$C,onLeaveStart:gz,onLeaveActive:cm,onAppearEnd:um,onEnterEnd:um,onLeaveEnd:um,motionDeadline:500}},Ui=(e,t,n)=>n!==void 0?n:`${e}-${t}`,fd=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},mz=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},bz=$v("Wave",e=>[mz(e)]);function yz(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 dm(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&yz(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function wz(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return dm(t)?t:dm(n)?n:dm(r)?r:null}const Dv="ant-wave-target";function fm(e){return Number.isNaN(e)?0:e}const xz=e=>{const{className:t,target:n,component:r}=e,o=d.useRef(null),[i,a]=d.useState(null),[s,c]=d.useState([]),[f,p]=d.useState(0),[v,g]=d.useState(0),[m,y]=d.useState(0),[b,w]=d.useState(0),[S,C]=d.useState(!1),E={left:f,top:v,width:m,height:b,borderRadius:s.map($=>`${$}px`).join(" ")};i&&(E["--wave-color"]=i);function k(){const $=getComputedStyle(n);a(wz(n));const T=$.position==="static",{borderLeftWidth:N,borderTopWidth:P}=$;p(T?n.offsetLeft:fm(-parseFloat(N))),g(T?n.offsetTop:fm(-parseFloat(P))),y(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:D,borderTopRightRadius:j,borderBottomLeftRadius:F,borderBottomRightRadius:z}=$;c([D,j,z,F].map(B=>fm(parseFloat(B))))}if(d.useEffect(()=>{if(n){const $=vn(()=>{k(),C(!0)});let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(k),T.observe(n)),()=>{vn.cancel($),T==null||T.disconnect()}}},[]),!S)return null;const I=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Dv));return d.createElement(Bo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,T)=>{var N;if(T.deadline||T.propertyName==="opacity"){const P=(N=o.current)===null||N===void 0?void 0:N.parentElement;gI(P).then(()=>{P==null||P.remove()})}return!1}},$=>{let{className:T}=$;return d.createElement("div",{ref:o,className:ae(t,{"wave-quick":I},T),style:E})})},Sz=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.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),hI(d.createElement(xz,Object.assign({},t,{target:e})),o)},Cz=Sz;function Ez(e,t,n){const{wave:r}=d.useContext(kt),[,o,i]=tr(),a=Rn(f=>{const p=e.current;if(r!=null&&r.disabled||!p)return;const v=p.querySelector(`.${Dv}`)||p,{showEffect:g}=r||{};(g||Cz)(v,{className:t,token:o,component:n,event:f,hashId:i})}),s=d.useRef();return f=>{vn.cancel(s.current),s.current=vn(()=>{a(f)})}}const kz=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=d.useContext(kt),i=d.useRef(null),a=o("wave"),[,s]=bz(a),c=Ez(i,ae(a,s),r);if(de.useEffect(()=>{const p=i.current;if(!p||p.nodeType!==1||n)return;const v=g=>{!fd(g.target)||!p.getAttribute||p.getAttribute("disabled")||p.disabled||p.className.includes("disabled")||p.className.includes("-leave")||c(g)};return p.addEventListener("click",v,!0),()=>{p.removeEventListener("click",v,!0)}},[n]),!de.isValidElement(t))return t??null;const f=ti(t)?Zr(t.ref,i):i;return mr(t,{ref:f})},jv=kz,ii=e=>{const t=de.useContext(ud);return de.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Oz=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},$z=Oz,Iz=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"}}}},Tz=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},mI=jn("Space",e=>{const t=un(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Iz(t),Tz(t),$z(t)]},()=>({}),{resetStyle:!1});var bI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Lv=d.createContext(null),ac=(e,t)=>{const n=d.useContext(Lv),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return ae(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Uu=e=>{let{children:t}=e;return d.createElement(Lv.Provider,{value:null},t)},Pz=e=>{var{children:t}=e,n=bI(e,["children"]);return d.createElement(Lv.Provider,{value:n},t)},Mz=e=>{const{getPrefixCls:t,direction:n}=d.useContext(kt),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:c,children:f}=e,p=bI(e,["size","direction","block","prefixCls","className","rootClassName","children"]),v=ii(E=>r??E),g=t("space-compact",a),[m,y]=mI(g),b=ae(g,y,{[`${g}-rtl`]:n==="rtl",[`${g}-block`]:i,[`${g}-vertical`]:o==="vertical"},s,c),w=d.useContext(Lv),S=Yr(f),C=d.useMemo(()=>S.map((E,k)=>{const I=E&&E.key||`${g}-item-${k}`;return d.createElement(Pz,{key:I,compactSize:v,compactDirection:o,isFirstItem:k===0&&(!w||(w==null?void 0:w.isFirstItem)),isLastItem:k===S.length-1&&(!w||(w==null?void 0:w.isLastItem))},E)}),[r,S,w]);return S.length===0?null:m(d.createElement("div",Object.assign({className:b},p),C))},Nz=Mz;var Rz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yI=d.createContext(void 0),Dz=e=>{const{getPrefixCls:t,direction:n}=d.useContext(kt),{prefixCls:r,size:o,className:i}=e,a=Rz(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,c]=tr();let f="";switch(o){case"large":f="lg";break;case"small":f="sm";break}const p=ae(s,{[`${s}-${f}`]:f,[`${s}-rtl`]:n==="rtl"},i,c);return d.createElement(yI.Provider,{value:o},d.createElement("div",Object.assign({},a,{className:p})))},jz=Dz,IC=/^[\u4e00-\u9fa5]{2}$/,_0=IC.test.bind(IC);function Ny(e){return e==="danger"?{danger:!0}:{type:e}}function TC(e){return typeof e=="string"}function pm(e){return e==="text"||e==="link"}function Lz(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&TC(e.type)&&_0(e.props.children)?mr(e,{children:e.props.children.split("").join(n)}):TC(e)?_0(e)?de.createElement("span",null,e.split("").join(n)):de.createElement("span",null,e):fI(e)?de.createElement("span",null,e):e}function Bz(e,t){let n=!1;const r=[];return de.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,c=r[s];r[s]=`${c}${o}`}else r.push(o);n=a}),de.Children.map(r,o=>Lz(o,t))}const Az=d.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=ae(`${i}-icon`,n);return de.createElement("span",{ref:t,className:a,style:r},o)}),wI=Az,PC=d.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,iconClassName:i}=e;const a=ae(`${n}-loading-icon`,r);return de.createElement(wI,{prefixCls:n,className:a,style:o,ref:t},de.createElement(ks,{className:i}))}),vm=()=>({width:0,opacity:0,transform:"scale(0)"}),hm=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),zz=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?de.createElement(PC,{prefixCls:t,className:o,style:i}):de.createElement(Bo,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:vm,onAppearActive:hm,onEnterStart:vm,onEnterActive:hm,onLeaveStart:hm,onLeaveActive:vm},(s,c)=>{let{className:f,style:p}=s;return de.createElement(PC,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),p),ref:c,iconClassName:f})})},Fz=zz,MC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Hz=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},MC(`${t}-primary`,o),MC(`${t}-danger`,i)]}},_z=Hz,xI=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return un(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},SI=e=>{var t,n,r,o,i,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,f=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,p=(o=e.contentLineHeight)!==null&&o!==void 0?o:wp(s),v=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:wp(c),g=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:wp(f);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:s,contentFontSizeSM:c,contentFontSizeLG:f,contentLineHeight:p,contentLineHeightSM:v,contentLineHeightLG:g,paddingBlock:Math.max((e.controlHeight-s*p)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*v)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-f*g)/2-e.lineWidth,0)}},Vz=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${se(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},[`> ${n} + span, > span + ${n}`]:{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({},Vu(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},Ki=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Wz=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Uz=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),Kz=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Ku=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Ki(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Ry=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Kz(e))}),CI=e=>Object.assign({},Ry(e)),Up=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),EI=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},CI(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Ki(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Ku(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},Ki(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ku(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Ry(e))}),qz=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},CI(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Ki(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Ku(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},Ki(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Ku(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ry(e))}),Xz=e=>Object.assign(Object.assign({},EI(e)),{borderStyle:"dashed"}),Gz=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Ki(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Up(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ki(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Up(e))}),Yz=e=>Object.assign(Object.assign(Object.assign({},Ki(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Up(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Up(e)),Ki(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),Qz=e=>{const{componentCls:t}=e;return{[`${t}-default`]:EI(e),[`${t}-primary`]:qz(e),[`${t}-dashed`]:Xz(e),[`${t}-link`]:Gz(e),[`${t}-text`]:Yz(e),[`${t}-ghost`]:Ku(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Dy=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:s,iconCls:c,buttonPaddingVertical:f}=e,p=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:o,lineHeight:i,height:r,padding:`${se(f)} ${se(s)}`,borderRadius:a,[`&${p}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[c]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:Wz(e)},{[`${n}${n}-round${t}`]:Uz(e)}]},Zz=e=>Dy(un(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight})),Jz=e=>{const t=un(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 Dy(t,`${e.componentCls}-sm`)},e5=e=>{const t=un(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Dy(t,`${e.componentCls}-lg`)},t5=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},n5=jn("Button",e=>{const t=xI(e);return[Vz(t),Jz(t),Zz(t),e5(t),t5(t),Qz(t),_z(t)]},SI,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function r5(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function o5(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Bv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},r5(e,r,t)),o5(n,r,t))}}function i5(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 a5(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 s5(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},i5(e,t)),a5(e.componentCls,t))}}const l5=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${se(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:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${se(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},c5=tc(["Button","compact"],e=>{const t=xI(e);return[Bv(t),s5(t),l5(t)]},SI);var u5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function d5(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const f5=(e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,type:a="default",danger:s,shape:c="default",size:f,styles:p,disabled:v,className:g,rootClassName:m,children:y,icon:b,ghost:w=!1,block:S=!1,htmlType:C="button",classNames:E,style:k={}}=e,I=u5(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:$,autoInsertSpaceInButton:T,direction:N,button:P}=d.useContext(kt),D=$("btn",i),[j,F,z]=n5(D),B=d.useContext(Ei),_=v??B,H=d.useContext(yI),L=d.useMemo(()=>d5(o),[o]),[A,U]=d.useState(L.loading),[R,V]=d.useState(!1),Y=d.createRef(),X=Zr(t,Y),q=d.Children.count(y)===1&&!b&&!pm(a);d.useEffect(()=>{let xe=null;L.delay>0?xe=setTimeout(()=>{xe=null,U(!0)},L.delay):U(L.loading);function Pe(){xe&&(clearTimeout(xe),xe=null)}return Pe},[L]),d.useEffect(()=>{if(!X||!X.current||T===!1)return;const xe=X.current.textContent;q&&_0(xe)?R||V(!0):R&&V(!1)},[X]);const G=xe=>{const{onClick:Pe}=e;if(A||_){xe.preventDefault();return}Pe==null||Pe(xe)},K=T!==!1,{compactSize:J,compactItemClassnames:oe}=ac(D,N),fe={large:"lg",small:"sm",middle:void 0},ce=ii(xe=>{var Pe,Ie;return(Ie=(Pe=f??J)!==null&&Pe!==void 0?Pe:H)!==null&&Ie!==void 0?Ie:xe}),ee=ce&&fe[ce]||"",ie=A?"loading":b,te=qn(I,["navigate"]),re=ae(D,F,z,{[`${D}-${c}`]:c!=="default"&&c,[`${D}-${a}`]:a,[`${D}-${ee}`]:ee,[`${D}-icon-only`]:!y&&y!==0&&!!ie,[`${D}-background-ghost`]:w&&!pm(a),[`${D}-loading`]:A,[`${D}-two-chinese-chars`]:R&&K&&!A,[`${D}-block`]:S,[`${D}-dangerous`]:!!s,[`${D}-rtl`]:N==="rtl"},oe,g,m,P==null?void 0:P.className),le=Object.assign(Object.assign({},P==null?void 0:P.style),k),ge=ae(E==null?void 0:E.icon,(n=P==null?void 0:P.classNames)===null||n===void 0?void 0:n.icon),be=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),((r=P==null?void 0:P.styles)===null||r===void 0?void 0:r.icon)||{}),Se=b&&!A?de.createElement(wI,{prefixCls:D,className:ge,style:be},b):de.createElement(Fz,{existIcon:!!b,prefixCls:D,loading:!!A}),pe=y||y===0?Bz(y,q&&K):null;if(te.href!==void 0)return j(de.createElement("a",Object.assign({},te,{className:ae(re,{[`${D}-disabled`]:_}),href:_?void 0:te.href,style:le,onClick:G,ref:X,tabIndex:_?-1:0}),Se,pe));let me=de.createElement("button",Object.assign({},I,{type:C,className:re,style:le,onClick:G,disabled:_,ref:X}),Se,pe,!!oe&&de.createElement(c5,{key:"compact",prefixCls:D}));return pm(a)||(me=de.createElement(jv,{component:"Button",disabled:!!A},me)),j(me)},jy=d.forwardRef(f5);jy.Group=jz;jy.__ANT_BUTTON=!0;const zr=jy;function NC(e){return!!(e&&e.then)}const p5=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:c,quitOnNullishReturnValue:f,actionFn:p}=e,v=d.useRef(!1),g=d.useRef(null),[m,y]=Ra(!1),b=function(){i==null||i.apply(void 0,arguments)};d.useEffect(()=>{let C=null;return a&&(C=setTimeout(()=>{var E;(E=g.current)===null||E===void 0||E.focus()})),()=>{C&&clearTimeout(C)}},[]);const w=C=>{NC(C)&&(y(!0),C.then(function(){y(!1,!0),b.apply(void 0,arguments),v.current=!1},E=>{if(y(!1,!0),v.current=!1,!(c!=null&&c()))return Promise.reject(E)}))},S=C=>{if(v.current)return;if(v.current=!0,!p){b();return}let E;if(s){if(E=p(C),f&&!NC(E)){v.current=!1,b(C);return}}else if(p.length)E=p(i),v.current=!1;else if(E=p(),!E){b();return}w(E)};return d.createElement(zr,Object.assign({},Ny(t),{onClick:S,loading:m,prefixCls:r},o,{ref:g}),n)},Ly=p5,pd=de.createContext({}),{Provider:kI}=pd,v5=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:s,onConfirm:c}=d.useContext(pd);return o?de.createElement(Ly,{isSilent:r,actionFn:s,close:function(){a==null||a.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},RC=v5,h5=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:s,onOk:c}=d.useContext(pd);return de.createElement(Ly,{isSilent:n,type:a||"primary",actionFn:c,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)},DC=h5;var OI=d.createContext(null),jC=[];function g5(e,t){var n=d.useState(function(){if(!sr())return null;var y=document.createElement("div");return y}),r=he(n,1),o=r[0],i=d.useRef(!1),a=d.useContext(OI),s=d.useState(jC),c=he(s,2),f=c[0],p=c[1],v=a||(i.current?void 0:function(y){p(function(b){var w=[y].concat(Ee(b));return w})});function g(){o.parentElement||document.body.appendChild(o),i.current=!0}function m(){var y;(y=o.parentElement)===null||y===void 0||y.removeChild(o),i.current=!1}return on(function(){return e?a?a(g):g():m(),m},[e]),on(function(){f.length&&(f.forEach(function(y){return y()}),p(jC))},[f]),[o,v]}var gm;function V0(e){if(typeof document>"u")return 0;if(e||gm===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),gm=o-i}return gm}function LC(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?V0():n}function W0(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:LC(n),height:LC(r)}}function m5(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var b5="rc-util-locker-".concat(Date.now()),BC=0;function y5(e){var t=!!e,n=d.useState(function(){return BC+=1,"".concat(b5,"_").concat(BC)}),r=he(n,1),o=r[0];on(function(){if(t){var i=W0(document.body).width,a=m5();Aa(`
html body {
overflow-y: hidden;
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
}`),o)}else Au(o);return function(){Au(o)}},[t,o])}var AC=!1;function w5(e){return typeof e=="boolean"&&(AC=e),AC}var zC=function(t){return t===!1?!1:!sr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},By=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,s=e.children,c=d.useState(n),f=he(c,2),p=f[0],v=f[1],g=p||n;d.useEffect(function(){(a||n)&&v(n)},[n,a]);var m=d.useState(function(){return zC(o)}),y=he(m,2),b=y[0],w=y[1];d.useEffect(function(){var j=zC(o);w(j??null)});var S=g5(g&&!b),C=he(S,2),E=C[0],k=C[1],I=b??E;y5(r&&n&&sr()&&(I===E||I===document.body));var $=null;if(s&&ti(s)&&t){var T=s;$=T.ref}var N=Rs($,t);if(!g||!sr()||b===void 0)return null;var P=I===!1||w5(),D=s;return t&&(D=d.cloneElement(s,{ref:N})),d.createElement(OI.Provider,{value:k},P?D:ei.createPortal(D,I))}),$I=d.createContext({});function x5(){var e=Z({},ld);return e.useId}var FC=0,HC=x5();const II=HC?function(t){var n=HC();return t||n}:function(t){var n=d.useState("ssr-id"),r=he(n,2),o=r[0],i=r[1];return d.useEffect(function(){var a=FC;FC+=1,i("rc_unique_".concat(a))},[]),t||o};function _C(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function VC(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function S5(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=VC(o),n.top+=VC(o,!0),n}const C5=d.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var WC={width:0,height:0,overflow:"hidden",outline:"none"},TI=de.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,s=e.footer,c=e.closable,f=e.closeIcon,p=e.onClose,v=e.children,g=e.bodyStyle,m=e.bodyProps,y=e.modalRender,b=e.onMouseDown,w=e.onMouseUp,S=e.holderRef,C=e.visible,E=e.forceRender,k=e.width,I=e.height,$=e.classNames,T=e.styles,N=de.useContext($I),P=N.panel,D=Rs(S,P),j=d.useRef(),F=d.useRef();de.useImperativeHandle(t,function(){return{focus:function(){var U;(U=j.current)===null||U===void 0||U.focus()},changeActive:function(U){var R=document,V=R.activeElement;U&&V===F.current?j.current.focus():!U&&V===j.current&&F.current.focus()}}});var z={};k!==void 0&&(z.width=k),I!==void 0&&(z.height=I);var B;s&&(B=de.createElement("div",{className:ae("".concat(n,"-footer"),$==null?void 0:$.footer),style:Z({},T==null?void 0:T.footer)},s));var _;i&&(_=de.createElement("div",{className:ae("".concat(n,"-header"),$==null?void 0:$.header),style:Z({},T==null?void 0:T.header)},de.createElement("div",{className:"".concat(n,"-title"),id:a},i)));var H;c&&(H=de.createElement("button",{type:"button",onClick:p,"aria-label":"Close",className:"".concat(n,"-close")},f||de.createElement("span",{className:"".concat(n,"-close-x")})));var L=de.createElement("div",{className:ae("".concat(n,"-content"),$==null?void 0:$.content),style:T==null?void 0:T.content},H,_,de.createElement("div",ke({className:ae("".concat(n,"-body"),$==null?void 0:$.body),style:Z(Z({},g),T==null?void 0:T.body)},m),v),B);return de.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:D,style:Z(Z({},o),z),className:ae(n,r),onMouseDown:b,onMouseUp:w},de.createElement("div",{tabIndex:0,ref:j,style:WC,"aria-hidden":"true"}),de.createElement(C5,{shouldUpdate:C||E},y?y(L):L),de.createElement("div",{tabIndex:0,ref:F,style:WC,"aria-hidden":"true"}))}),PI=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,s=e.forceRender,c=e.destroyOnClose,f=e.motionName,p=e.ariaId,v=e.onVisibleChanged,g=e.mousePosition,m=d.useRef(),y=d.useState(),b=he(y,2),w=b[0],S=b[1],C={};w&&(C.transformOrigin=w);function E(){var k=S5(m.current);S(g?"".concat(g.x-k.left,"px ").concat(g.y-k.top,"px"):"")}return d.createElement(Bo,{visible:a,onVisibleChanged:v,onAppearPrepare:E,onEnterPrepare:E,forceRender:s,motionName:f,removeOnLeave:c,ref:m},function(k,I){var $=k.className,T=k.style;return d.createElement(TI,ke({},e,{ref:t,title:r,ariaId:p,prefixCls:n,holderRef:I,style:Z(Z(Z({},T),o),C),className:ae(i,$)}))})});PI.displayName="Content";function E5(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,a=e.className;return d.createElement(Bo,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(s,c){var f=s.className,p=s.style;return d.createElement("div",ke({ref:c,style:Z(Z({},p),n),className:ae("".concat(t,"-mask"),f,a)},o))})}function k5(e){var t=e.prefixCls,n=t===void 0?"rc-dialog":t,r=e.zIndex,o=e.visible,i=o===void 0?!1:o,a=e.keyboard,s=a===void 0?!0:a,c=e.focusTriggerAfterClose,f=c===void 0?!0:c,p=e.wrapStyle,v=e.wrapClassName,g=e.wrapProps,m=e.onClose,y=e.afterOpenChange,b=e.afterClose,w=e.transitionName,S=e.animation,C=e.closable,E=C===void 0?!0:C,k=e.mask,I=k===void 0?!0:k,$=e.maskTransitionName,T=e.maskAnimation,N=e.maskClosable,P=N===void 0?!0:N,D=e.maskStyle,j=e.maskProps,F=e.rootClassName,z=e.classNames,B=e.styles,_=d.useRef(),H=d.useRef(),L=d.useRef(),A=d.useState(i),U=he(A,2),R=U[0],V=U[1],Y=II();function X(){b0(H.current,document.activeElement)||(_.current=document.activeElement)}function q(){if(!b0(H.current,document.activeElement)){var te;(te=L.current)===null||te===void 0||te.focus()}}function G(te){if(te)q();else{if(V(!1),I&&_.current&&f){try{_.current.focus({preventScroll:!0})}catch{}_.current=null}R&&(b==null||b())}y==null||y(te)}function K(te){m==null||m(te)}var J=d.useRef(!1),oe=d.useRef(),fe=function(){clearTimeout(oe.current),J.current=!0},ce=function(){oe.current=setTimeout(function(){J.current=!1})},ee=null;P&&(ee=function(re){J.current?J.current=!1:H.current===re.target&&K(re)});function ie(te){if(s&&te.keyCode===Te.ESC){te.stopPropagation(),K(te);return}i&&te.keyCode===Te.TAB&&L.current.changeActive(!te.shiftKey)}return d.useEffect(function(){i&&(V(!0),X())},[i]),d.useEffect(function(){return function(){clearTimeout(oe.current)}},[]),d.createElement("div",ke({className:ae("".concat(n,"-root"),F)},Do(e,{data:!0})),d.createElement(E5,{prefixCls:n,visible:I&&i,motionName:_C(n,$,T),style:Z(Z({zIndex:r},D),B==null?void 0:B.mask),maskProps:j,className:z==null?void 0:z.mask}),d.createElement("div",ke({tabIndex:-1,onKeyDown:ie,className:ae("".concat(n,"-wrap"),v,z==null?void 0:z.wrapper),ref:H,onClick:ee,style:Z(Z(Z({zIndex:r},p),B==null?void 0:B.wrapper),{},{display:R?null:"none"})},g),d.createElement(PI,ke({},e,{onMouseDown:fe,onMouseUp:ce,ref:L,closable:E,ariaId:Y,prefixCls:n,visible:i&&R,onClose:K,onVisibleChanged:G,motionName:_C(n,w,S)}))))}var MI=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,s=t.afterClose,c=t.panelRef,f=d.useState(n),p=he(f,2),v=p[0],g=p[1],m=d.useMemo(function(){return{panel:c}},[c]);return d.useEffect(function(){n&&g(!0)},[n]),!o&&a&&!v?null:d.createElement($I.Provider,{value:m},d.createElement(By,{open:n||o||v,autoDestroy:!1,getContainer:r,autoLock:n||v},d.createElement(k5,ke({},t,{destroyOnClose:a,afterClose:function(){s==null||s(),g(!1)}}))))};MI.displayName="Dialog";function O5(e,t,n){return typeof e=="boolean"?e:t===void 0?!!n:t!==!1&&t!==null}function NI(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:de.createElement(oc,null),o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!O5(e,t,o))return[!1,null];const a=typeof t=="boolean"||t===void 0||t===null?r:t;return[!0,n?n(a):a]}var RI=function(t){if(sr()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},$5=function(t,n){if(!RI(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function U0(e,t){return!Array.isArray(e)&&t!==void 0?$5(e,t):RI(e)}const I5=()=>sr()&&window.document.documentElement;var vs="RC_FORM_INTERNAL_HOOKS",Sn=function(){Dn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Os=d.createContext({getFieldValue:Sn,getFieldsValue:Sn,getFieldError:Sn,getFieldWarning:Sn,getFieldsError:Sn,isFieldsTouched:Sn,isFieldTouched:Sn,isFieldValidating:Sn,isFieldsValidating:Sn,resetFields:Sn,setFields:Sn,setFieldValue:Sn,setFieldsValue:Sn,validateFields:Sn,submit:Sn,getInternalHooks:function(){return Sn(),{dispatch:Sn,initEntityValue:Sn,registerField:Sn,useSubscribe:Sn,setInitialValues:Sn,destroyForm:Sn,setCallbacks:Sn,registerWatch:Sn,getFields:Sn,setValidateMessages:Sn,setPreserve:Sn,getInitialValue:Sn}}}),qu=d.createContext(null);function K0(e){return e==null?[]:Array.isArray(e)?e:[e]}function T5(e){return e&&!!e._init}function hs(){return hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hs.apply(this,arguments)}function P5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xu(e,t)}function q0(e){return q0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},q0(e)}function Xu(e,t){return Xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Xu(e,t)}function M5(){if(typeof Reflect>"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 Sp(e,t,n){return M5()?Sp=Reflect.construct.bind():Sp=function(o,i,a){var s=[null];s.push.apply(s,i);var c=Function.bind.apply(o,s),f=new c;return a&&Xu(f,a.prototype),f},Sp.apply(null,arguments)}function N5(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function X0(e){var t=typeof Map=="function"?new Map:void 0;return X0=function(r){if(r===null||!N5(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return Sp(r,arguments,q0(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Xu(o,r)},X0(e)}var R5=/%[sdj%]/g,D5=function(){};typeof process<"u"&&process.env;function G0(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function uo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(R5,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function j5(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function lr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||j5(t)&&typeof e=="string"&&!e)}function L5(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,s||[]),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function UC(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r+=1,s<o?t(e[s],i):n([])}i([])}function B5(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var KC=function(e){P5(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t}(X0(Error));function A5(e,t,n,r,o){if(t.first){var i=new Promise(function(g,m){var y=function(S){return r(S),S.length?m(new KC(S,G0(S))):g(o)},b=B5(e);UC(b,n,y)});return i.catch(function(g){return g}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,f=0,p=[],v=new Promise(function(g,m){var y=function(w){if(p.push.apply(p,w),f++,f===c)return r(p),p.length?m(new KC(p,G0(p))):g(o)};s.length||(r(p),g(o)),s.forEach(function(b){var w=e[b];a.indexOf(b)!==-1?UC(w,n,y):L5(w,n,y)})});return v.catch(function(g){return g}),v}function z5(e){return!!(e&&e.message!==void 0)}function F5(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function qC(e,t){return function(n){var r;return e.fullFields?r=F5(t,e.fullFields):r=t[n.field||e.fullField],z5(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function XC(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=hs({},e[n],r):e[n]=r}}return e}var DI=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||lr(n,a||t.type))&&o.push(uo(i.messages.required,t.fullField))},H5=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(uo(i.messages.whitespace,t.fullField))},Vf,_5=function(){if(Vf)return Vf;var e="[a-fA-F\\d:]",t=function(k){return k&&k.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=(`
(?:
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+o+"$"),c=function(k){return k&&k.exact?i:new RegExp("(?:"+t(k)+n+t(k)+")|(?:"+t(k)+o+t(k)+")","g")};c.v4=function(E){return E&&E.exact?a:new RegExp(""+t(E)+n+t(E),"g")},c.v6=function(E){return E&&E.exact?s:new RegExp(""+t(E)+o+t(E),"g")};var f="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",v=c.v4().source,g=c.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",w="(?::\\d{2,5})?",S='(?:[/?#][^\\s"]*)?',C="(?:"+f+"|www\\.)"+p+"(?:localhost|"+v+"|"+g+"|"+m+y+b+")"+w+S;return Vf=new RegExp("(?:^"+C+"$)","i"),Vf},GC={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},su={integer:function(t){return su.number(t)&&parseInt(t,10)===t},float:function(t){return su.number(t)&&!su.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"&&!su.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(GC.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(_5())},hex:function(t){return typeof t=="string"&&!!t.match(GC.hex)}},V5=function(t,n,r,o,i){if(t.required&&n===void 0){DI(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?su[s](n)||o.push(uo(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(uo(i.messages.types[s],t.fullField,t.type))},W5=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",c=typeof t.max=="number",f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=n,v=null,g=typeof n=="number",m=typeof n=="string",y=Array.isArray(n);if(g?v="number":m?v="string":y&&(v="array"),!v)return!1;y&&(p=n.length),m&&(p=n.replace(f,"_").length),a?p!==t.len&&o.push(uo(i.messages[v].len,t.fullField,t.len)):s&&!c&&p<t.min?o.push(uo(i.messages[v].min,t.fullField,t.min)):c&&!s&&p>t.max?o.push(uo(i.messages[v].max,t.fullField,t.max)):s&&c&&(p<t.min||p>t.max)&&o.push(uo(i.messages[v].range,t.fullField,t.min,t.max))},sl="enum",U5=function(t,n,r,o,i){t[sl]=Array.isArray(t[sl])?t[sl]:[],t[sl].indexOf(n)===-1&&o.push(uo(i.messages[sl],t.fullField,t[sl].join(", ")))},K5=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(uo(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(uo(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},an={required:DI,whitespace:H5,type:V5,range:W5,enum:U5,pattern:K5},q5=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(lr(n,"string")&&!t.required)return r();an.required(t,n,o,a,i,"string"),lr(n,"string")||(an.type(t,n,o,a,i),an.range(t,n,o,a,i),an.pattern(t,n,o,a,i),t.whitespace===!0&&an.whitespace(t,n,o,a,i))}r(a)},X5=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(lr(n)&&!t.required)return r();an.required(t,n,o,a,i),n!==void 0&&an.type(t,n,o,a,i)}r(a)},G5=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),lr(n)&&!t.required)return r();an.required(t,n,o,a,i),n!==void 0&&(an.type(t,n,o,a,i),an.range(t,n,o,a,i))}r(a)},Y5=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(lr(n)&&!t.required)return r();an.required(t,n,o,a,i),n!==void 0&&an.type(t,n,o,a,i)}r(a)},Q5=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(lr(n)&&!t.required)return r();an.required(t,n,o,a,i),lr(n)||an.type(t,n,o,a,i)}r(a)},Z5=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(lr(n)&&!t.required)return r();an.required(t,n,o,a,i),n!==void 0&&(an.type(t,n,o,a,i),an.range(t,n,o,a,i))}r(a)},J5=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(lr(n)&&!t.required)return r();an.required(t,n,o,a,i),n!==void 0&&(an.type(t,n,o,a,i),an.range(t,n,o,a,i))}r(a)},e8=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();an.required(t,n,o,a,i,"array"),n!=null&&(an.type(t,n,o,a,i),an.range(t,n,o,a,i))}r(a)},t8=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(lr(n)&&!t.required)return r();an.required(t,n,o,a,i),n!==void 0&&an.type(t,n,o,a,i)}r(a)},n8="enum",r8=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(lr(n)&&!t.required)return r();an.required(t,n,o,a,i),n!==void 0&&an[n8](t,n,o,a,i)}r(a)},o8=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(lr(n,"string")&&!t.required)return r();an.required(t,n,o,a,i),lr(n,"string")||an.pattern(t,n,o,a,i)}r(a)},i8=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(lr(n,"date")&&!t.required)return r();if(an.required(t,n,o,a,i),!lr(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),an.type(t,c,o,a,i),c&&an.range(t,c.getTime(),o,a,i)}}r(a)},a8=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":typeof n;an.required(t,n,o,a,i,s),r(a)},mm=function(t,n,r,o,i){var a=t.type,s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(lr(n,a)&&!t.required)return r();an.required(t,n,o,s,i,a),lr(n,a)||an.type(t,n,o,s,i)}r(s)},s8=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(lr(n)&&!t.required)return r();an.required(t,n,o,a,i)}r(a)},wu={string:q5,method:X5,number:G5,boolean:Y5,regexp:Q5,integer:Z5,float:J5,array:e8,object:t8,enum:r8,pattern:o8,date:i8,url:mm,hex:mm,email:mm,required:a8,any:s8};function Y0(){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 Q0=Y0(),vd=function(){function e(n){this.rules=null,this._messages=Q0,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=XC(Y0(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var s=r,c=o,f=i;if(typeof c=="function"&&(f=c,c={}),!this.rules||Object.keys(this.rules).length===0)return f&&f(null,s),Promise.resolve(s);function p(b){var w=[],S={};function C(k){if(Array.isArray(k)){var I;w=(I=w).concat.apply(I,k)}else w.push(k)}for(var E=0;E<b.length;E++)C(b[E]);w.length?(S=G0(w),f(w,S)):f(null,s)}if(c.messages){var v=this.messages();v===Q0&&(v=Y0()),XC(v,c.messages),c.messages=v}else c.messages=this.messages();var g={},m=c.keys||Object.keys(this.rules);m.forEach(function(b){var w=a.rules[b],S=s[b];w.forEach(function(C){var E=C;typeof E.transform=="function"&&(s===r&&(s=hs({},s)),S=s[b]=E.transform(S)),typeof E=="function"?E={validator:E}:E=hs({},E),E.validator=a.getValidationMethod(E),E.validator&&(E.field=b,E.fullField=E.fullField||b,E.type=a.getType(E),g[b]=g[b]||[],g[b].push({rule:E,value:S,source:s,field:b}))})});var y={};return A5(g,c,function(b,w){var S=b.rule,C=(S.type==="object"||S.type==="array")&&(typeof S.fields=="object"||typeof S.defaultField=="object");C=C&&(S.required||!S.required&&b.value),S.field=b.field;function E($,T){return hs({},T,{fullField:S.fullField+"."+$,fullFields:S.fullFields?[].concat(S.fullFields,[$]):[$]})}function k($){$===void 0&&($=[]);var T=Array.isArray($)?$:[$];!c.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&S.message!==void 0&&(T=[].concat(S.message));var N=T.map(qC(S,s));if(c.first&&N.length)return y[S.field]=1,w(N);if(!C)w(N);else{if(S.required&&!b.value)return S.message!==void 0?N=[].concat(S.message).map(qC(S,s)):c.error&&(N=[c.error(S,uo(c.messages.required,S.field))]),w(N);var P={};S.defaultField&&Object.keys(b.value).map(function(F){P[F]=S.defaultField}),P=hs({},P,b.rule.fields);var D={};Object.keys(P).forEach(function(F){var z=P[F],B=Array.isArray(z)?z:[z];D[F]=B.map(E.bind(null,F))});var j=new e(D);j.messages(c.messages),b.rule.options&&(b.rule.options.messages=c.messages,b.rule.options.error=c.error),j.validate(b.value,b.rule.options||c,function(F){var z=[];N&&N.length&&z.push.apply(z,N),F&&F.length&&z.push.apply(z,F),w(z.length?z:null)})}}var I;if(S.asyncValidator)I=S.asyncValidator(S,b.value,k,b.source,c);else if(S.validator){try{I=S.validator(S,b.value,k,b.source,c)}catch($){console.error==null,c.suppressValidatorError||setTimeout(function(){throw $},0),k($.message)}I===!0?k():I===!1?k(typeof S.message=="function"?S.message(S.fullField||S.field):S.message||(S.fullField||S.field)+" fails"):I instanceof Array?k(I):I instanceof Error&&k(I.message)}I&&I.then&&I.then(function(){return k()},function($){return k($)})},function(b){p(b)},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!wu.hasOwnProperty(r.type))throw new Error(uo("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),i=o.indexOf("message");return i!==-1&&o.splice(i,1),o.length===1&&o[0]==="required"?wu.required:wu[this.getType(r)]||void 0},e}();vd.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");wu[t]=n};vd.warning=D5;vd.messages=Q0;vd.validators=wu;var so="'${name}' is not a valid ${type}",jI={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:so,method:so,array:so,object:so,number:so,date:so,boolean:so,integer:so,float:so,regexp:so,email:so,url:so,hex:so},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},YC=vd;function l8(e,t){return e.replace(/\$\{\w+\}/g,function(n){var r=n.slice(2,-1);return t[r]})}var QC="CODE_LOGIC_ERROR";function Z0(e,t,n,r,o){return J0.apply(this,arguments)}function J0(){return J0=Va(Cr().mark(function e(t,n,r,o,i){var a,s,c,f,p,v,g,m,y;return Cr().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return a=Z({},r),delete a.ruleIndex,YC.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch{return Promise.reject(QC)}}),c=null,a&&a.type==="array"&&a.defaultField&&(c=a.defaultField,delete a.defaultField),f=new YC(Q({},t,[a])),p=El(jI,o.validateMessages),f.messages(p),v=[],w.prev=10,w.next=13,Promise.resolve(f.validate(Q({},t,n),Z({},o)));case 13:w.next=18;break;case 15:w.prev=15,w.t0=w.catch(10),w.t0.errors&&(v=w.t0.errors.map(function(S,C){var E=S.message,k=E===QC?p.default:E;return d.isValidElement(k)?d.cloneElement(k,{key:"error_".concat(C)}):k}));case 18:if(!(!v.length&&c)){w.next=23;break}return w.next=21,Promise.all(n.map(function(S,C){return Z0("".concat(t,".").concat(C),S,c,o,i)}));case 21:return g=w.sent,w.abrupt("return",g.reduce(function(S,C){return[].concat(Ee(S),Ee(C))},[]));case 23:return m=Z(Z({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),y=v.map(function(S){return typeof S=="string"?l8(S,m):S}),w.abrupt("return",y);case 26:case"end":return w.stop()}},e,null,[[10,15]])})),J0.apply(this,arguments)}function c8(e,t,n,r,o,i){var a=e.join("."),s=n.map(function(p,v){var g=p.validator,m=Z(Z({},p),{},{ruleIndex:v});return g&&(m.validator=function(y,b,w){var S=!1,C=function(){for(var I=arguments.length,$=new Array(I),T=0;T<I;T++)$[T]=arguments[T];Promise.resolve().then(function(){Dn(!S,"Your validator function has already return a promise. `callback` will be ignored."),S||w.apply(void 0,$)})},E=g(y,b,C);S=E&&typeof E.then=="function"&&typeof E.catch=="function",Dn(S,"`callback` is deprecated. Please return a promise instead."),S&&E.then(function(){w()}).catch(function(k){w(k||" ")})}),m}).sort(function(p,v){var g=p.warningOnly,m=p.ruleIndex,y=v.warningOnly,b=v.ruleIndex;return!!g==!!y?m-b:g?1:-1}),c;if(o===!0)c=new Promise(function(){var p=Va(Cr().mark(function v(g,m){var y,b,w;return Cr().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:y=0;case 1:if(!(y<s.length)){C.next=12;break}return b=s[y],C.next=5,Z0(a,t,b,r,i);case 5:if(w=C.sent,!w.length){C.next=9;break}return m([{errors:w,rule:b}]),C.abrupt("return");case 9:y+=1,C.next=1;break;case 12:g([]);case 13:case"end":return C.stop()}},v)}));return function(v,g){return p.apply(this,arguments)}}());else{var f=s.map(function(p){return Z0(a,t,p,r,i).then(function(v){return{errors:v,rule:p}})});c=(o?d8(f):u8(f)).then(function(p){return Promise.reject(p)})}return c.catch(function(p){return p}),c}function u8(e){return eb.apply(this,arguments)}function eb(){return eb=Va(Cr().mark(function e(t){return Cr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,Ee(o));return a}));case 1:case"end":return r.stop()}},e)})),eb.apply(this,arguments)}function d8(e){return tb.apply(this,arguments)}function tb(){return tb=Va(Cr().mark(function e(t){var n;return Cr().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(s){s.errors.length&&i([s]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),tb.apply(this,arguments)}function Gn(e){return K0(e)}function ZC(e,t){var n={};return t.forEach(function(r){var o=To(e,r);n=Xo(n,r,o)}),n}function Ml(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return LI(t,r,n)})}function LI(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function f8(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Tt(e)!=="object"||Tt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Ee(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function p8(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Tt(t.target)==="object"&&e in t.target?t.target[e]:t}function JC(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Ee(e.slice(0,n)),[o],Ee(e.slice(n,t)),Ee(e.slice(t+1,r))):i<0?[].concat(Ee(e.slice(0,t)),Ee(e.slice(t+1,n+1)),[o],Ee(e.slice(n+1,r))):e}var v8=["name"],xo=[];function eE(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Ay=function(e){oi(n,e);var t=Zi(n);function n(r){var o;if(ur(this,n),o=t.call(this,r),Q(Dt(o),"state",{resetCount:0}),Q(Dt(o),"cancelRegisterFunc",null),Q(Dt(o),"mounted",!1),Q(Dt(o),"touched",!1),Q(Dt(o),"dirty",!1),Q(Dt(o),"validatePromise",void 0),Q(Dt(o),"prevValidating",void 0),Q(Dt(o),"errors",xo),Q(Dt(o),"warnings",xo),Q(Dt(o),"cancelRegister",function(){var c=o.props,f=c.preserve,p=c.isListField,v=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(p,f,Gn(v)),o.cancelRegisterFunc=null}),Q(Dt(o),"getNamePath",function(){var c=o.props,f=c.name,p=c.fieldContext,v=p.prefixName,g=v===void 0?[]:v;return f!==void 0?[].concat(Ee(g),Ee(f)):[]}),Q(Dt(o),"getRules",function(){var c=o.props,f=c.rules,p=f===void 0?[]:f,v=c.fieldContext;return p.map(function(g){return typeof g=="function"?g(v):g})}),Q(Dt(o),"refresh",function(){o.mounted&&o.setState(function(c){var f=c.resetCount;return{resetCount:f+1}})}),Q(Dt(o),"metaCache",null),Q(Dt(o),"triggerMetaEvent",function(c){var f=o.props.onMetaChange;if(f){var p=Z(Z({},o.getMeta()),{},{destroy:c});Vi(o.metaCache,p)||f(p),o.metaCache=p}else o.metaCache=null}),Q(Dt(o),"onStoreChange",function(c,f,p){var v=o.props,g=v.shouldUpdate,m=v.dependencies,y=m===void 0?[]:m,b=v.onReset,w=p.store,S=o.getNamePath(),C=o.getValue(c),E=o.getValue(w),k=f&&Ml(f,S);switch(p.type==="valueUpdate"&&p.source==="external"&&C!==E&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=xo,o.warnings=xo,o.triggerMetaEvent()),p.type){case"reset":if(!f||k){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=xo,o.warnings=xo,o.triggerMetaEvent(),b==null||b(),o.refresh();return}break;case"remove":if(g){o.reRender();return}break;case"setField":var I=p.data;if(k){"touched"in I&&(o.touched=I.touched),"validating"in I&&!("originRCField"in I)&&(o.validatePromise=I.validating?Promise.resolve([]):null),"errors"in I&&(o.errors=I.errors||xo),"warnings"in I&&(o.warnings=I.warnings||xo),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in I&&Ml(f,S,!0)){o.reRender();return}if(g&&!S.length&&eE(g,c,w,C,E,p)){o.reRender();return}break;case"dependenciesUpdate":var $=y.map(Gn);if($.some(function(T){return Ml(p.relatedFields,T)})){o.reRender();return}break;default:if(k||(!y.length||S.length||g)&&eE(g,c,w,C,E,p)){o.reRender();return}break}g===!0&&o.reRender()}),Q(Dt(o),"validateRules",function(c){var f=o.getNamePath(),p=o.getValue(),v=c||{},g=v.triggerName,m=v.validateOnly,y=m===void 0?!1:m,b=Promise.resolve().then(Va(Cr().mark(function w(){var S,C,E,k,I,$,T;return Cr().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(S=o.props,C=S.validateFirst,E=C===void 0?!1:C,k=S.messageVariables,I=S.validateDebounce,$=o.getRules(),g&&($=$.filter(function(D){return D}).filter(function(D){var j=D.validateTrigger;if(!j)return!0;var F=K0(j);return F.includes(g)})),!(I&&g)){P.next=10;break}return P.next=8,new Promise(function(D){setTimeout(D,I)});case 8:if(o.validatePromise===b){P.next=10;break}return P.abrupt("return",[]);case 10:return T=c8(f,p,$,c,E,k),T.catch(function(D){return D}).then(function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xo;if(o.validatePromise===b){var j;o.validatePromise=null;var F=[],z=[];(j=D.forEach)===null||j===void 0||j.call(D,function(B){var _=B.rule.warningOnly,H=B.errors,L=H===void 0?xo:H;_?z.push.apply(z,Ee(L)):F.push.apply(F,Ee(L))}),o.errors=F,o.warnings=z,o.triggerMetaEvent(),o.reRender()}}),P.abrupt("return",T);case 13:case"end":return P.stop()}},w)})));return y||(o.validatePromise=b,o.dirty=!0,o.errors=xo,o.warnings=xo,o.triggerMetaEvent(),o.reRender()),b}),Q(Dt(o),"isFieldValidating",function(){return!!o.validatePromise}),Q(Dt(o),"isFieldTouched",function(){return o.touched}),Q(Dt(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,f=c.getInternalHooks(vs),p=f.getInitialValue;return p(o.getNamePath())!==void 0}),Q(Dt(o),"getErrors",function(){return o.errors}),Q(Dt(o),"getWarnings",function(){return o.warnings}),Q(Dt(o),"isListField",function(){return o.props.isListField}),Q(Dt(o),"isList",function(){return o.props.isList}),Q(Dt(o),"isPreserve",function(){return o.props.preserve}),Q(Dt(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}),Q(Dt(o),"getOnlyChild",function(c){if(typeof c=="function"){var f=o.getMeta();return Z(Z({},o.getOnlyChild(c(o.getControlled(),f,o.props.fieldContext))),{},{isFunction:!0})}var p=Yr(c);return p.length!==1||!d.isValidElement(p[0])?{child:p,isFunction:!1}:{child:p[0],isFunction:!1}}),Q(Dt(o),"getValue",function(c){var f=o.props.fieldContext.getFieldsValue,p=o.getNamePath();return To(c||f(!0),p)}),Q(Dt(o),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=o.props,p=f.trigger,v=f.validateTrigger,g=f.getValueFromEvent,m=f.normalize,y=f.valuePropName,b=f.getValueProps,w=f.fieldContext,S=v!==void 0?v:w.validateTrigger,C=o.getNamePath(),E=w.getInternalHooks,k=w.getFieldsValue,I=E(vs),$=I.dispatch,T=o.getValue(),N=b||function(F){return Q({},y,F)},P=c[p],D=Z(Z({},c),N(T));D[p]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var F,z=arguments.length,B=new Array(z),_=0;_<z;_++)B[_]=arguments[_];g?F=g.apply(void 0,B):F=p8.apply(void 0,[y].concat(B)),m&&(F=m(F,T,k(!0))),$({type:"updateValue",namePath:C,value:F}),P&&P.apply(void 0,B)};var j=K0(S||[]);return j.forEach(function(F){var z=D[F];D[F]=function(){z&&z.apply(void 0,arguments);var B=o.props.rules;B&&B.length&&$({type:"validateField",namePath:C,triggerName:F})}}),D}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(vs),s=a.initEntityValue;s(Dt(o))}return o}return dr(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,c=s(vs),f=c.registerField;this.cancelRegisterFunc=f(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),s=a.child,c=a.isFunction,f;return c?f=s:d.isValidElement(s)?f=d.cloneElement(s,this.getControlled(s.props)):(Dn(!s,"`children` of Field is not validate ReactElement."),f=s),d.createElement(d.Fragment,{key:o},f)}}]),n}(d.Component);Q(Ay,"contextType",Os);Q(Ay,"defaultProps",{trigger:"onChange",valuePropName:"value"});function zy(e){var t=e.name,n=jt(e,v8),r=d.useContext(Os),o=d.useContext(qu),i=t!==void 0?Gn(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),d.createElement(Ay,ke({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function BI(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=d.useContext(Os),c=d.useContext(qu),f=d.useRef({keys:[],id:0}),p=f.current,v=d.useMemo(function(){var b=Gn(s.prefixName)||[];return[].concat(Ee(b),Ee(Gn(t)))},[s.prefixName,t]),g=d.useMemo(function(){return Z(Z({},s),{},{prefixName:v})},[s,v]),m=d.useMemo(function(){return{getKey:function(w){var S=v.length,C=w[S];return[p.keys[C],w.slice(S+1)]}}},[v]);if(typeof r!="function")return Dn(!1,"Form.List only accepts function as children."),null;var y=function(w,S,C){var E=C.source;return E==="internal"?!1:w!==S};return d.createElement(qu.Provider,{value:m},d.createElement(Os.Provider,{value:g},d.createElement(zy,{name:[],shouldUpdate:y,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a??!!c},function(b,w){var S=b.value,C=S===void 0?[]:S,E=b.onChange,k=s.getFieldValue,I=function(){var P=k(v||[]);return P||[]},$={add:function(P,D){var j=I();D>=0&&D<=j.length?(p.keys=[].concat(Ee(p.keys.slice(0,D)),[p.id],Ee(p.keys.slice(D))),E([].concat(Ee(j.slice(0,D)),[P],Ee(j.slice(D))))):(p.keys=[].concat(Ee(p.keys),[p.id]),E([].concat(Ee(j),[P]))),p.id+=1},remove:function(P){var D=I(),j=new Set(Array.isArray(P)?P:[P]);j.size<=0||(p.keys=p.keys.filter(function(F,z){return!j.has(z)}),E(D.filter(function(F,z){return!j.has(z)})))},move:function(P,D){if(P!==D){var j=I();P<0||P>=j.length||D<0||D>=j.length||(p.keys=JC(p.keys,P,D),E(JC(j,P,D)))}}},T=C||[];return Array.isArray(T)||(T=[]),r(T.map(function(N,P){var D=p.keys[P];return D===void 0&&(p.keys[P]=p.id,D=p.keys[P],p.id+=1),{name:P,key:D,isListField:!0}}),$,w)})))}function h8(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var AI="__@field_split__";function bm(e){return e.map(function(t){return"".concat(Tt(t),":").concat(t)}).join(AI)}var ll=function(){function e(){ur(this,e),Q(this,"kvs",new Map)}return dr(e,[{key:"set",value:function(n,r){this.kvs.set(bm(n),r)}},{key:"get",value:function(n){return this.kvs.get(bm(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(bm(n))}},{key:"map",value:function(n){return Ee(this.kvs.entries()).map(function(r){var o=he(r,2),i=o[0],a=o[1],s=i.split(AI);return n({key:s.map(function(c){var f=c.match(/^([^:]*):(.*)$/),p=he(f,3),v=p[1],g=p[2];return v==="number"?Number(g):g}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),g8=["name"],m8=dr(function e(t){var n=this;ur(this,e),Q(this,"formHooked",!1),Q(this,"forceRootUpdate",void 0),Q(this,"subscribable",!0),Q(this,"store",{}),Q(this,"fieldEntities",[]),Q(this,"initialValues",{}),Q(this,"callbacks",{}),Q(this,"validateMessages",null),Q(this,"preserve",null),Q(this,"lastValidatePromise",null),Q(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),Q(this,"getInternalHooks",function(r){return r===vs?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Dn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Q(this,"useSubscribe",function(r){n.subscribable=r}),Q(this,"prevWithoutPreserves",null),Q(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=El(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var c=s.key;a=Xo(a,c,To(r,c))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),Q(this,"destroyForm",function(){var r=new ll;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||r.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=r}),Q(this,"getInitialValue",function(r){var o=To(n.initialValues,r);return r.length?El(o):o}),Q(this,"setCallbacks",function(r){n.callbacks=r}),Q(this,"setValidateMessages",function(r){n.validateMessages=r}),Q(this,"setPreserve",function(r){n.preserve=r}),Q(this,"watchList",[]),Q(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),Q(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),Q(this,"timeoutId",null),Q(this,"warningUnhooked",function(){}),Q(this,"updateStore",function(r){n.store=r}),Q(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),Q(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new ll;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),Q(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=Gn(i);return o.get(a)||{INVALIDATE_NAME_PATH:Gn(i)}})}),Q(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,s;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&Tt(r)==="object"&&(s=r.strict,a=r.filter),i===!0&&!a)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),f=[];return c.forEach(function(p){var v,g,m="INVALIDATE_NAME_PATH"in p?p.INVALIDATE_NAME_PATH:p.getNamePath();if(s){var y,b;if((y=(b=p).isList)!==null&&y!==void 0&&y.call(b))return}else if(!i&&(v=(g=p).isListField)!==null&&v!==void 0&&v.call(g))return;if(!a)f.push(m);else{var w="getMeta"in p?p.getMeta():null;a(w)&&f.push(m)}}),ZC(n.store,f.map(Gn))}),Q(this,"getFieldValue",function(r){n.warningUnhooked();var o=Gn(r);return To(n.store,o)}),Q(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Gn(r[a]),errors:[],warnings:[]}})}),Q(this,"getFieldError",function(r){n.warningUnhooked();var o=Gn(r),i=n.getFieldsError([o])[0];return i.errors}),Q(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Gn(r),i=n.getFieldsError([o])[0];return i.warnings}),Q(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],s=o[1],c,f=!1;o.length===0?c=null:o.length===1?Array.isArray(a)?(c=a.map(Gn),f=!1):(c=null,f=a):(c=a.map(Gn),f=s);var p=n.getFieldEntities(!0),v=function(w){return w.isFieldTouched()};if(!c)return f?p.every(v):p.some(v);var g=new ll;c.forEach(function(b){g.set(b,[])}),p.forEach(function(b){var w=b.getNamePath();c.forEach(function(S){S.every(function(C,E){return w[E]===C})&&g.update(S,function(C){return[].concat(Ee(C),[b])})})});var m=function(w){return w.some(v)},y=g.map(function(b){var w=b.value;return w});return f?y.every(m):y.some(m)}),Q(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),Q(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(Gn);return o.some(function(a){var s=a.getNamePath();return Ml(i,s)&&a.isFieldValidating()})}),Q(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),Q(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new ll,i=n.getFieldEntities(!0);i.forEach(function(c){var f=c.props.initialValue,p=c.getNamePath();if(f!==void 0){var v=o.get(p)||new Set;v.add({entity:c,value:f}),o.set(p,v)}});var a=function(f){f.forEach(function(p){var v=p.props.initialValue;if(v!==void 0){var g=p.getNamePath(),m=n.getInitialValue(g);if(m!==void 0)Dn(!1,"Form already set 'initialValues' with path '".concat(g.join("."),"'. Field can not overwrite it."));else{var y=o.get(g);if(y&&y.size>1)Dn(!1,"Multiple Field with path '".concat(g.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(y){var b=n.getFieldValue(g),w=p.isListField();!w&&(!r.skipExist||b===void 0)&&n.updateStore(Xo(n.store,g,Ee(y)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var f=o.get(c);if(f){var p;(p=s).push.apply(p,Ee(Ee(f).map(function(v){return v.entity})))}})):s=i,a(s)}),Q(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(El(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Gn);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Xo(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),Q(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var s=a.name,c=jt(a,g8),f=Gn(s);i.push(f),"value"in c&&n.updateStore(Xo(n.store,f,c.value)),n.notifyObservers(o,[f],{type:"setField",data:a})}),n.notifyWatch(i)}),Q(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),s=i.getMeta(),c=Z(Z({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),Q(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=To(n.store,i);a===void 0&&n.updateStore(Xo(n.store,i,o))}}),Q(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),Q(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(v){return v!==r}),!n.isMergedPreserve(s)&&(!a||c.length>1)){var f=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==f&&n.fieldEntities.every(function(v){return!LI(v.getNamePath(),o)})){var p=n.store;n.updateStore(Xo(p,o,f,!0)),n.notifyObservers(p,[o],{type:"remove"}),n.triggerDependenciesUpdate(p,o)}}n.notifyWatch([o])}}),Q(this,"dispatch",function(r){switch(r.type){case"updateValue":var o=r.namePath,i=r.value;n.updateValue(o,i);break;case"validateField":var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}),Q(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=Z(Z({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(r,o,a)})}else n.forceRootUpdate()}),Q(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(Ee(i))}),i}),Q(this,"updateValue",function(r,o){var i=Gn(r),a=n.store;n.updateStore(Xo(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),c=n.callbacks.onValuesChange;if(c){var f=ZC(n.store,[i]);c(f,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Ee(s)))}),Q(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=El(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),Q(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),Q(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new ll;n.getFieldEntities().forEach(function(c){var f=c.props.dependencies;(f||[]).forEach(function(p){var v=Gn(p);a.update(v,function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return g.add(c),g})})});var s=function c(f){var p=a.get(f)||new Set;p.forEach(function(v){if(!o.has(v)){o.add(v);var g=v.getNamePath();v.isFieldDirty()&&g.length&&(i.push(g),c(g))}})};return s(r),i}),Q(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new ll;o.forEach(function(f){var p=f.name,v=f.errors;s.set(p,v)}),a.forEach(function(f){f.errors=s.get(f.name)||f.errors})}var c=a.filter(function(f){var p=f.name;return Ml(r,p)});c.length&&i(c,a)}}),Q(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var s=!!i,c=s?i.map(Gn):[],f=[],p=String(Date.now()),v=new Set,g=a||{},m=g.recursive,y=g.dirty;n.getFieldEntities(!0).forEach(function(C){if(s||c.push(C.getNamePath()),!(!C.props.rules||!C.props.rules.length)&&!(y&&!C.isFieldDirty())){var E=C.getNamePath();if(v.add(E.join(p)),!s||Ml(c,E,m)){var k=C.validateRules(Z({validateMessages:Z(Z({},jI),n.validateMessages)},a));f.push(k.then(function(){return{name:E,errors:[],warnings:[]}}).catch(function(I){var $,T=[],N=[];return($=I.forEach)===null||$===void 0||$.call(I,function(P){var D=P.rule.warningOnly,j=P.errors;D?N.push.apply(N,Ee(j)):T.push.apply(T,Ee(j))}),T.length?Promise.reject({name:E,errors:T,warnings:N}):{name:E,errors:T,warnings:N}}))}}});var b=h8(f);n.lastValidatePromise=b,b.catch(function(C){return C}).then(function(C){var E=C.map(function(k){var I=k.name;return I});n.notifyObservers(n.store,E,{type:"validateFinish"}),n.triggerOnFieldsChange(E,C)});var w=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(C){var E=C.filter(function(k){return k&&k.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:E,outOfDate:n.lastValidatePromise!==b})});w.catch(function(C){return C});var S=c.filter(function(C){return v.has(C.join(p))});return n.triggerOnFieldsChange(S),w}),Q(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch{}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function Fy(e){var t=d.useRef(),n=d.useState({}),r=he(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new m8(i);t.current=a.getForm()}return[t.current]}var nb=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),zI=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=d.useContext(nb),s=d.useRef({});return d.createElement(nb.Provider,{value:Z(Z({},a),{},{validateMessages:Z(Z({},a.validateMessages),n),triggerFormChange:function(f,p){r&&r(f,{changedFields:p,forms:s.current}),a.triggerFormChange(f,p)},triggerFormFinish:function(f,p){o&&o(f,{values:p,forms:s.current}),a.triggerFormFinish(f,p)},registerForm:function(f,p){f&&(s.current=Z(Z({},s.current),{},Q({},f,p))),a.registerForm(f,p)},unregisterForm:function(f){var p=Z({},s.current);delete p[f],s.current=p,a.unregisterForm(f)}})},i)},b8=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],y8=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,c=t.children,f=t.component,p=f===void 0?"form":f,v=t.validateMessages,g=t.validateTrigger,m=g===void 0?"onChange":g,y=t.onValuesChange,b=t.onFieldsChange,w=t.onFinish,S=t.onFinishFailed,C=jt(t,b8),E=d.useContext(nb),k=Fy(a),I=he(k,1),$=I[0],T=$.getInternalHooks(vs),N=T.useSubscribe,P=T.setInitialValues,D=T.setCallbacks,j=T.setValidateMessages,F=T.setPreserve,z=T.destroyForm;d.useImperativeHandle(n,function(){return $}),d.useEffect(function(){return E.registerForm(r,$),function(){E.unregisterForm(r)}},[E,$,r]),j(Z(Z({},E.validateMessages),v)),D({onValuesChange:y,onFieldsChange:function(Y){if(E.triggerFormChange(r,Y),b){for(var X=arguments.length,q=new Array(X>1?X-1:0),G=1;G<X;G++)q[G-1]=arguments[G];b.apply(void 0,[Y].concat(q))}},onFinish:function(Y){E.triggerFormFinish(r,Y),w&&w(Y)},onFinishFailed:S}),F(s);var B=d.useRef(null);P(o,!B.current),B.current||(B.current=!0),d.useEffect(function(){return z},[]);var _,H=typeof c=="function";if(H){var L=$.getFieldsValue(!0);_=c(L,$)}else _=c;N(!H);var A=d.useRef();d.useEffect(function(){f8(A.current||[],i||[])||$.setFields(i||[]),A.current=i},[i,$]);var U=d.useMemo(function(){return Z(Z({},$),{},{validateTrigger:m})},[$,m]),R=d.createElement(qu.Provider,{value:null},d.createElement(Os.Provider,{value:U},_));return p===!1?R:d.createElement(p,ke({},C,{onSubmit:function(Y){Y.preventDefault(),Y.stopPropagation(),$.submit()},onReset:function(Y){var X;Y.preventDefault(),$.resetFields(),(X=C.onReset)===null||X===void 0||X.call(C,Y)}}),R)};function tE(e){try{return JSON.stringify(e)}catch{return Math.random()}}function FI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=o===void 0?{}:o,a=T5(i)?{form:i}:i,s=a.form,c=d.useState(),f=he(c,2),p=f[0],v=f[1],g=d.useMemo(function(){return tE(p)},[p]),m=d.useRef(g);m.current=g;var y=d.useContext(Os),b=s||y,w=b&&b._init,S=Gn(r),C=d.useRef(S);return C.current=S,d.useEffect(function(){if(w){var E=b.getFieldsValue,k=b.getInternalHooks,I=k(vs),$=I.registerWatch,T=function(j,F){var z=a.preserve?F:j;return typeof r=="function"?r(z):To(z,C.current)},N=$(function(D,j){var F=T(D,j),z=tE(F);m.current!==z&&(m.current=z,v(F))}),P=T(E(),E(!0));return p!==P&&v(P),N}},[w]),p}var w8=d.forwardRef(y8),sc=w8;sc.FormProvider=zI;sc.Field=zy;sc.List=BI;sc.useForm=Fy;sc.useWatch=FI;const qi=d.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),HI=d.createContext(null),_I=e=>{const t=qn(e,["prefixCls"]);return d.createElement(zI,Object.assign({},t))},Hy=d.createContext({prefixCls:""}),Qr=d.createContext({}),rb=e=>{let{children:t,status:n,override:r}=e;const o=d.useContext(Qr),i=d.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return d.createElement(Qr.Provider,{value:i},t)},VI=d.createContext(void 0);function nE(){}const x8=d.createContext({add:nE,remove:nE});function S8(e){const t=d.useContext(x8),n=d.useRef();return Rn(o=>{if(o){const i=e?o.querySelector(e):o;t.add(i),n.current=i}else t.remove(n.current)})}const C8=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=d.useContext(pd);return de.createElement(zr,Object.assign({onClick:n},e),t)},rE=C8,E8=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=d.useContext(pd);return de.createElement(zr,Object.assign({},Ny(n),{loading:e,onClick:o},t),r)},oE=E8;function WI(e,t){return de.createElement("span",{className:`${e}-close-x`},t||de.createElement(oc,{className:`${e}-close-icon`}))}const UI=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:c,footer:f}=e,[p]=Ji("Modal",T$()),v=t||(p==null?void 0:p.okText),g=r||(p==null?void 0:p.cancelText),m={confirmLoading:o,okButtonProps:s,cancelButtonProps:c,okTextLocale:v,cancelTextLocale:g,okType:n,onOk:i,onCancel:a},y=de.useMemo(()=>m,Ee(Object.values(m)));let b;return typeof f=="function"||typeof f>"u"?(b=de.createElement(de.Fragment,null,de.createElement(rE,null),de.createElement(oE,null)),typeof f=="function"&&(b=f(b,{OkBtn:oE,CancelBtn:rE})),b=de.createElement(kI,{value:y},b)):b=f,de.createElement(Oy,{disabled:!1},b)},k8=e=>({animationDuration:e,animationFillMode:"both"}),O8=e=>({animationDuration:e,animationFillMode:"both"}),Av=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
${i}${e}-enter,
${i}${e}-appear
`]:Object.assign(Object.assign({},k8(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},O8(r)),{animationPlayState:"paused"}),[`
${i}${e}-enter${e}-enter-active,
${i}${e}-appear${e}-appear-active
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},$8=new sn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),I8=new sn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),KI=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Av(r,$8,I8,e.motionDurationMid,t),{[`
${o}${r}-enter,
${o}${r}-appear
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},T8=new sn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),P8=new sn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),M8=new sn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),N8=new sn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),R8=new sn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),D8=new sn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),j8=new sn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),L8=new sn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),B8={"move-up":{inKeyframes:j8,outKeyframes:L8},"move-down":{inKeyframes:T8,outKeyframes:P8},"move-left":{inKeyframes:M8,outKeyframes:N8},"move-right":{inKeyframes:R8,outKeyframes:D8}},Kp=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=B8[t];return[Av(r,o,i,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},_y=new sn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Vy=new sn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Wy=new sn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Uy=new sn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),A8=new sn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),z8=new sn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),F8=new sn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),H8=new sn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),_8={"slide-up":{inKeyframes:_y,outKeyframes:Vy},"slide-down":{inKeyframes:Wy,outKeyframes:Uy},"slide-left":{inKeyframes:A8,outKeyframes:z8},"slide-right":{inKeyframes:F8,outKeyframes:H8}},Kl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=_8[t];return[Av(r,o,i,e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Ky=new sn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),V8=new sn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),iE=new sn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),aE=new sn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),W8=new sn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),U8=new sn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),K8=new sn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),q8=new sn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),X8=new sn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),G8=new sn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Y8=new sn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Q8=new sn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Z8={zoom:{inKeyframes:Ky,outKeyframes:V8},"zoom-big":{inKeyframes:iE,outKeyframes:aE},"zoom-big-fast":{inKeyframes:iE,outKeyframes:aE},"zoom-left":{inKeyframes:K8,outKeyframes:q8},"zoom-right":{inKeyframes:X8,outKeyframes:G8},"zoom-up":{inKeyframes:W8,outKeyframes:U8},"zoom-down":{inKeyframes:Y8,outKeyframes:Q8}},hd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Z8[t];return[Av(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
${r}-enter,
${r}-appear
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},J8=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`}}}),zv=J8;function sE(e){return{position:e,inset:0}}const eF=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},sE("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},sE("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:KI(e)}]},tF=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${se(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},$n(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${se(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${se(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:e.closeBtnActiveBg}},Vu(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
${t}-body,
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},nF=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},qI=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return un(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},XI=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent,closeBtnActiveBg:e.wireframe?"transparent":e.colorFillContentHover,contentPadding:e.wireframe?0:`${se(e.paddingMD)} ${se(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${se(e.padding)} ${se(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${se(e.paddingXS)} ${se(e.padding)}`:0,footerBorderTop:e.wireframe?`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${se(e.padding*2)} ${se(e.padding*2)} ${se(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),GI=jn("Modal",e=>{const t=qI(e);return[tF(t),nF(t),eF(t),hd(t,"zoom")]},XI,{unitless:{titleLineHeight:!0}});var rF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ob;const oF=e=>{ob={x:e.pageX,y:e.pageY},setTimeout(()=>{ob=null},100)};I5()&&document.documentElement.addEventListener("click",oF,!0);const iF=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=d.useContext(kt),a=Y=>{const{onCancel:X}=e;X==null||X(Y)},s=Y=>{const{onOk:X}=e;X==null||X(Y)},{prefixCls:c,className:f,rootClassName:p,open:v,wrapClassName:g,centered:m,getContainer:y,closeIcon:b,closable:w,focusTriggerAfterClose:S=!0,style:C,visible:E,width:k=520,footer:I,classNames:$,styles:T}=e,N=rF(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),P=r("modal",c),D=r(),j=br(P),[F,z,B]=GI(P,j),_=ae(g,{[`${P}-centered`]:!!m,[`${P}-wrap-rtl`]:o==="rtl"}),H=I!==null&&d.createElement(UI,Object.assign({},e,{onOk:s,onCancel:a})),[L,A]=NI(w,b,Y=>WI(P,Y),d.createElement(oc,{className:`${P}-close-icon`}),!0),U=S8(`.${P}-content`),[R,V]=ic("Modal",N.zIndex);return F(d.createElement(Uu,null,d.createElement(rb,{status:!0,override:!0},d.createElement(Nv.Provider,{value:V},d.createElement(MI,Object.assign({width:k},N,{zIndex:R,getContainer:y===void 0?n:y,prefixCls:P,rootClassName:ae(z,p,B,j),footer:H,visible:v??E,mousePosition:(t=N.mousePosition)!==null&&t!==void 0?t:ob,onClose:a,closable:L,closeIcon:A,focusTriggerAfterClose:S,transitionName:Ui(D,"zoom",e.transitionName),maskTransitionName:Ui(D,"fade",e.maskTransitionName),className:ae(z,f,i==null?void 0:i.className),style:Object.assign(Object.assign({},i==null?void 0:i.style),C),classNames:Object.assign(Object.assign({wrapper:_},i==null?void 0:i.classNames),$),styles:Object.assign(Object.assign({},i==null?void 0:i.styles),T),panelRef:U}))))))},YI=iF,aF=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:f}=e,p=`${t}-confirm`;return{[p]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${p}-body-wrapper`]:Object.assign({},Es()),[`&${t} ${t}-body`]:{padding:f},[`${p}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${p}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${se(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${p}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${p}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${p}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${p}-error ${p}-body > ${e.iconCls}`]:{color:e.colorError},[`${p}-warning ${p}-body > ${e.iconCls},
${p}-confirm ${p}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${p}-info ${p}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${p}-success ${p}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},sF=tc(["Modal","confirm"],e=>{const t=qI(e);return[aF(t)]},XI,{order:-1e3});var lF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function QI(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:s,footer:c,locale:f}=e,p=lF(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let v=n;if(!n&&n!==null)switch(a){case"info":v=d.createElement(HA,null);break;case"success":v=d.createElement(My,null);break;case"error":v=d.createElement(rc,null);break;default:v=d.createElement(Mv,null)}const g=s??a==="confirm",m=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[y]=Ji("Modal"),b=f||y,w=r||(g?b==null?void 0:b.okText:b==null?void 0:b.justOkText),S=o||(b==null?void 0:b.cancelText),C=Object.assign({autoFocusButton:m,cancelTextLocale:S,okTextLocale:w,mergedOkCancel:g},p),E=d.useMemo(()=>C,Ee(Object.values(C))),k=d.createElement(d.Fragment,null,d.createElement(RC,null),d.createElement(DC,null)),I=e.title!==void 0&&e.title!==null,$=`${i}-body`;return d.createElement("div",{className:`${i}-body-wrapper`},d.createElement("div",{className:ae($,{[`${$}-has-title`]:I})},v,d.createElement("div",{className:`${i}-paragraph`},I&&d.createElement("span",{className:`${i}-title`},e.title),d.createElement("div",{className:`${i}-content`},e.content))),c===void 0||typeof c=="function"?d.createElement(kI,{value:E},d.createElement("div",{className:`${i}-btns`},typeof c=="function"?c(k,{OkBtn:DC,CancelBtn:RC}):k)):c,d.createElement(sF,{prefixCls:t}))}const cF=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:s,maskStyle:c,direction:f,prefixCls:p,wrapClassName:v,rootPrefixCls:g,bodyStyle:m,closable:y=!1,closeIcon:b,modalRender:w,focusTriggerAfterClose:S,onConfirm:C,styles:E}=e,k=`${p}-confirm`,I=e.width||416,$=e.style||{},T=e.mask===void 0?!0:e.mask,N=e.maskClosable===void 0?!1:e.maskClosable,P=ae(k,`${k}-${e.type}`,{[`${k}-rtl`]:f==="rtl"},e.className),[,D]=tr(),j=d.useMemo(()=>n!==void 0?n:D.zIndexPopupBase+pI,[n,D]);return d.createElement(YI,{prefixCls:p,className:P,wrapClassName:ae({[`${k}-centered`]:!!e.centered},v),onCancel:()=>{t==null||t({triggerCancel:!0}),C==null||C(!1)},open:o,title:"",footer:null,transitionName:Ui(g||"","zoom",e.transitionName),maskTransitionName:Ui(g||"","fade",e.maskTransitionName),mask:T,maskClosable:N,style:$,styles:Object.assign({body:m,mask:c},E),width:I,zIndex:j,afterClose:r,keyboard:i,centered:a,getContainer:s,closable:y,closeIcon:b,modalRender:w,focusTriggerAfterClose:S},d.createElement(QI,Object.assign({},e,{confirmPrefixCls:k})))},uF=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return d.createElement(Iv,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},d.createElement(cF,Object.assign({},e)))},ZI=uF,gs=[];let JI="";function eT(){return JI}const dF=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=T$(),s=d.useContext(kt),c=eT()||s.getPrefixCls(),f=r||`${c}-modal`;let p=o;return p===!1&&(p=void 0),de.createElement(ZI,Object.assign({},e,{rootPrefixCls:c,prefixCls:f,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:i??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:p}))};function gd(e){const t=vA(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:s,open:!0}),o;function i(){for(var f=arguments.length,p=new Array(f),v=0;v<f;v++)p[v]=arguments[v];const g=p.some(m=>m&&m.triggerCancel);e.onCancel&&g&&e.onCancel.apply(e,[()=>{}].concat(Ee(p.slice(1))));for(let m=0;m<gs.length;m++)if(gs[m]===s){gs.splice(m,1);break}gI(n)}function a(f){clearTimeout(o),o=setTimeout(()=>{const p=t.getPrefixCls(void 0,eT()),v=t.getIconPrefixCls(),g=t.getTheme(),m=de.createElement(dF,Object.assign({},f));hI(de.createElement(Iv,{prefixCls:p,iconPrefixCls:v,theme:g},t.holderRender?t.holderRender(m):m),n)})}function s(){for(var f=arguments.length,p=new Array(f),v=0;v<f;v++)p[v]=arguments[v];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,p)}}),r.visible&&delete r.visible,a(r)}function c(f){typeof f=="function"?r=f(r):r=Object.assign(Object.assign({},r),f),a(r)}return a(r),gs.push(s),{destroy:s,update:c}}function tT(e){return Object.assign(Object.assign({},e),{type:"warning"})}function nT(e){return Object.assign(Object.assign({},e),{type:"info"})}function rT(e){return Object.assign(Object.assign({},e),{type:"success"})}function oT(e){return Object.assign(Object.assign({},e),{type:"error"})}function iT(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function fF(e){let{rootPrefixCls:t}=e;JI=t}var pF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const vF=(e,t)=>{var n,{afterClose:r,config:o}=e,i=pF(e,["afterClose","config"]);const[a,s]=d.useState(!0),[c,f]=d.useState(o),{direction:p,getPrefixCls:v}=d.useContext(kt),g=v("modal"),m=v(),y=()=>{var C;r(),(C=c.afterClose)===null||C===void 0||C.call(c)},b=function(){s(!1);for(var C=arguments.length,E=new Array(C),k=0;k<C;k++)E[k]=arguments[k];const I=E.some($=>$&&$.triggerCancel);c.onCancel&&I&&c.onCancel.apply(c,[()=>{}].concat(Ee(E.slice(1))))};d.useImperativeHandle(t,()=>({destroy:b,update:C=>{f(E=>Object.assign(Object.assign({},E),C))}}));const w=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[S]=Ji("Modal",ni.Modal);return d.createElement(ZI,Object.assign({prefixCls:g,rootPrefixCls:m},c,{close:b,open:a,afterClose:y,okText:c.okText||(w?S==null?void 0:S.okText:S==null?void 0:S.justOkText),direction:c.direction||p,cancelText:c.cancelText||(S==null?void 0:S.cancelText)},i))},hF=d.forwardRef(vF);let lE=0;const gF=d.memo(d.forwardRef((e,t)=>{const[n,r]=sz();return d.useImperativeHandle(t,()=>({patchElement:r}),[]),d.createElement(d.Fragment,null,n)}));function mF(){const e=d.useRef(null),[t,n]=d.useState([]);d.useEffect(()=>{t.length&&(Ee(t).forEach(a=>{a()}),n([]))},[t]);const r=d.useCallback(i=>function(s){var c;lE+=1;const f=d.createRef();let p;const v=new Promise(w=>{p=w});let g=!1,m;const y=d.createElement(hF,{key:`modal-${lE}`,config:i(s),ref:f,afterClose:()=>{m==null||m()},isSilent:()=>g,onConfirm:w=>{p(w)}});return m=(c=e.current)===null||c===void 0?void 0:c.patchElement(y),m&&gs.push(m),{destroy:()=>{function w(){var S;(S=f.current)===null||S===void 0||S.destroy()}f.current?w():n(S=>[].concat(Ee(S),[w]))},update:w=>{function S(){var C;(C=f.current)===null||C===void 0||C.update(w)}f.current?S():n(C=>[].concat(Ee(C),[S]))},then:w=>(g=!0,v.then(w))}},[]);return[d.useMemo(()=>({info:r(nT),success:r(rT),error:r(oT),warning:r(tT),confirm:r(iT)}),[]),d.createElement(gF,{key:"modal-holder",ref:e})]}function aT(e){return t=>d.createElement(Iv,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const qy=(e,t,n,r)=>aT(i=>{const{prefixCls:a,style:s}=i,c=d.useRef(null),[f,p]=d.useState(0),[v,g]=d.useState(0),[m,y]=Fn(!1,{value:i.open}),{getPrefixCls:b}=d.useContext(kt),w=b(t||"select",a);d.useEffect(()=>{if(y(!0),typeof ResizeObserver<"u"){const E=new ResizeObserver(I=>{const $=I[0].target;p($.offsetHeight+8),g($.offsetWidth)}),k=setInterval(()=>{var I;const $=n?`.${n(w)}`:`.${w}-dropdown`,T=(I=c.current)===null||I===void 0?void 0:I.querySelector($);T&&(clearInterval(k),E.observe(T))},10);return()=>{clearInterval(k),E.disconnect()}}},[]);let S=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});r&&(S=r(S));const C={paddingBottom:f,position:"relative",minWidth:v};return d.createElement("div",{ref:c,style:C},d.createElement(e,Object.assign({},S)))}),sT=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))};var Fv=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,s=t.onClick,c=typeof r=="function"?r(o):r;return d.createElement("span",{className:n,onMouseDown:function(p){p.preventDefault(),a==null||a(p)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},c!==void 0?c:d.createElement("span",{className:ae(n.split(/\s+/).map(function(f){return"".concat(f,"-icon")}))},i))},bF=function(t,n,r,o,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,f=de.useMemo(function(){if(Tt(o)==="object")return o.clearIcon;if(i)return i},[o,i]),p=de.useMemo(function(){return!!(!a&&o&&(r.length||s)&&!(c==="combobox"&&s===""))},[o,a,r.length,s,c]);return{allowClear:p,clearIcon:de.createElement(Fv,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:f},"×")}},lT=d.createContext(null);function cT(){return d.useContext(lT)}function yF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),n=he(t,2),r=n[0],o=n[1],i=d.useRef(null),a=function(){window.clearTimeout(i.current)};d.useEffect(function(){return a},[]);var s=function(f,p){a(),i.current=window.setTimeout(function(){o(f),p&&p()},e)};return[r,s,a]}function uT(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function wF(e,t,n,r){var o=d.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var c=a.target;c.shadowRoot&&a.composed&&(c=a.composedPath()[0]||c),o.current.open&&e().filter(function(f){return f}).every(function(f){return!f.contains(c)&&f!==c})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var xF=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],cl=void 0;function SF(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,c=e.registerSize,f=e.itemKey,p=e.className,v=e.style,g=e.children,m=e.display,y=e.order,b=e.component,w=b===void 0?"div":b,S=jt(e,xF),C=a&&!m;function E(N){c(f,N)}d.useEffect(function(){return function(){E(null)}},[]);var k=i&&o!==cl?i(o):g,I;r||(I={opacity:C?0:1,height:C?0:cl,overflowY:C?"hidden":cl,order:a?y:cl,pointerEvents:C?"none":cl,position:C?"absolute":cl});var $={};C&&($["aria-hidden"]=!0);var T=d.createElement(w,ke({className:ae(!r&&n,p),style:Z(Z({},I),v)},$,S,{ref:t}),k);return a&&(T=d.createElement(Lo,{onResize:function(P){var D=P.offsetWidth;E(D)},disabled:s},T)),T}var xu=d.forwardRef(SF);xu.displayName="Item";function CF(e){if(typeof MessageChannel>"u")vn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function EF(){var e=d.useRef(null),t=function(r){e.current||(e.current=[],CF(function(){ei.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function Gc(e,t){var n=d.useState(t),r=he(n,2),o=r[0],i=r[1],a=Rn(function(s){e(function(){i(s)})});return[o,a]}var qp=de.createContext(null),kF=["component"],OF=["className"],$F=["className"],IF=function(t,n){var r=d.useContext(qp);if(!r){var o=t.component,i=o===void 0?"div":o,a=jt(t,kF);return d.createElement(i,ke({},a,{ref:n}))}var s=r.className,c=jt(r,OF),f=t.className,p=jt(t,$F);return d.createElement(qp.Provider,{value:null},d.createElement(xu,ke({ref:n,className:ae(s,f)},c,p)))},dT=d.forwardRef(IF);dT.displayName="RawItem";var TF=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],fT="responsive",pT="invalidate";function PF(e){return"+ ".concat(e.length," ...")}function MF(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,c=e.itemKey,f=e.itemWidth,p=f===void 0?10:f,v=e.ssr,g=e.style,m=e.className,y=e.maxCount,b=e.renderRest,w=e.renderRawRest,S=e.suffix,C=e.component,E=C===void 0?"div":C,k=e.itemComponent,I=e.onVisibleChange,$=jt(e,TF),T=v==="full",N=EF(),P=Gc(N,null),D=he(P,2),j=D[0],F=D[1],z=j||0,B=Gc(N,new Map),_=he(B,2),H=_[0],L=_[1],A=Gc(N,0),U=he(A,2),R=U[0],V=U[1],Y=Gc(N,0),X=he(Y,2),q=X[0],G=X[1],K=Gc(N,0),J=he(K,2),oe=J[0],fe=J[1],ce=d.useState(null),ee=he(ce,2),ie=ee[0],te=ee[1],re=d.useState(null),le=he(re,2),ge=le[0],be=le[1],Se=d.useMemo(function(){return ge===null&&T?Number.MAX_SAFE_INTEGER:ge||0},[ge,j]),pe=d.useState(!1),me=he(pe,2),xe=me[0],Pe=me[1],Ie="".concat(r,"-item"),De=Math.max(R,q),Be=y===fT,qe=i.length&&Be,lt=y===pT,et=qe||typeof y=="number"&&i.length>y,He=d.useMemo(function(){var Xe=i;return qe?j===null&&T?Xe=i:Xe=i.slice(0,Math.min(i.length,z/p)):typeof y=="number"&&(Xe=i.slice(0,y)),Xe},[i,p,j,y,qe]),Fe=d.useMemo(function(){return qe?i.slice(Se+1):i.slice(He.length)},[i,He,qe,Se]),Re=d.useCallback(function(Xe,rt){var it;return typeof c=="function"?c(Xe):(it=c&&(Xe==null?void 0:Xe[c]))!==null&&it!==void 0?it:rt},[c]),ft=d.useCallback(a||function(Xe){return Xe},[a]);function Me(Xe,rt,it){ge===Xe&&(rt===void 0||rt===ie)||(be(Xe),it||(Pe(Xe<i.length-1),I==null||I(Xe)),rt!==void 0&&te(rt))}function We(Xe,rt){F(rt.clientWidth)}function Le(Xe,rt){L(function(it){var tt=new Map(it);return rt===null?tt.delete(Xe):tt.set(Xe,rt),tt})}function je(Xe,rt){G(rt),V(q)}function Ye(Xe,rt){fe(rt)}function mt(Xe){return H.get(Re(He[Xe],Xe))}on(function(){if(z&&typeof De=="number"&&He){var Xe=oe,rt=He.length,it=rt-1;if(!rt){Me(0,null);return}for(var tt=0;tt<rt;tt+=1){var Ke=mt(tt);if(T&&(Ke=Ke||0),Ke===void 0){Me(tt-1,void 0,!0);break}if(Xe+=Ke,it===0&&Xe<=z||tt===it-1&&Xe+mt(it)<=z){Me(it,null);break}else if(Xe+De>z){Me(tt-1,Xe-Ke-oe+q);break}}S&&mt(0)+oe>z&&te(null)}},[z,H,q,oe,Re,He]);var bt=xe&&!!Fe.length,Oe={};ie!==null&&qe&&(Oe={position:"absolute",left:ie,top:0});var Ge={prefixCls:Ie,responsive:qe,component:k,invalidate:lt},ct=s?function(Xe,rt){var it=Re(Xe,rt);return d.createElement(qp.Provider,{key:it,value:Z(Z({},Ge),{},{order:rt,item:Xe,itemKey:it,registerSize:Le,display:rt<=Se})},s(Xe,rt))}:function(Xe,rt){var it=Re(Xe,rt);return d.createElement(xu,ke({},Ge,{order:rt,key:it,item:Xe,renderItem:ft,itemKey:it,registerSize:Le,display:rt<=Se}))},Mt,ut={order:bt?Se:Number.MAX_SAFE_INTEGER,className:"".concat(Ie,"-rest"),registerSize:je,display:bt};if(w)w&&(Mt=d.createElement(qp.Provider,{value:Z(Z({},Ge),ut)},w(Fe)));else{var ze=b||PF;Mt=d.createElement(xu,ke({},Ge,ut),typeof ze=="function"?ze(Fe):ze)}var Qe=d.createElement(E,ke({className:ae(!lt&&r,m),style:g,ref:t},$),He.map(ct),et?Mt:null,S&&d.createElement(xu,ke({},Ge,{responsive:Be,responsiveDisabled:!qe,order:Se,className:"".concat(Ie,"-suffix"),registerSize:Ye,display:!0,style:Oe}),S));return Be&&(Qe=d.createElement(Lo,{onResize:We,disabled:!qe},Qe)),Qe}var yi=d.forwardRef(MF);yi.displayName="Overflow";yi.Item=dT;yi.RESPONSIVE=fT;yi.INVALIDATE=pT;var NF=function(t,n){var r,o=t.prefixCls,i=t.id,a=t.inputElement,s=t.disabled,c=t.tabIndex,f=t.autoFocus,p=t.autoComplete,v=t.editable,g=t.activeDescendantId,m=t.value,y=t.maxLength,b=t.onKeyDown,w=t.onMouseDown,S=t.onChange,C=t.onPaste,E=t.onCompositionStart,k=t.onCompositionEnd,I=t.open,$=t.attrs,T=a||d.createElement("input",null),N=T,P=N.ref,D=N.props,j=D.onKeyDown,F=D.onChange,z=D.onMouseDown,B=D.onCompositionStart,_=D.onCompositionEnd,H=D.style;return"maxLength"in T.props,T=d.cloneElement(T,Z(Z(Z({type:"search"},D),{},{id:i,ref:Zr(n,P),disabled:s,tabIndex:c,autoComplete:p||"off",autoFocus:f,className:ae("".concat(o,"-selection-search-input"),(r=T)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":I||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":I?g:void 0},$),{},{value:v?m:"",maxLength:y,readOnly:!v,unselectable:v?null:"on",style:Z(Z({},H),{},{opacity:v?null:0}),onKeyDown:function(A){b(A),j&&j(A)},onMouseDown:function(A){w(A),z&&z(A)},onChange:function(A){S(A),F&&F(A)},onCompositionStart:function(A){E(A),B&&B(A)},onCompositionEnd:function(A){k(A),_&&_(A)},onPaste:C})),T},vT=d.forwardRef(NF);function hT(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var RF=typeof window<"u"&&window.document&&window.document.documentElement,DF=RF;function jF(e){return e!=null}function LF(e){return!e&&e!==0}function cE(e){return["string","number"].includes(Tt(e))}function gT(e){var t=void 0;return e&&(cE(e.title)?t=e.title.toString():cE(e.label)&&(t=e.label.toString())),t}function BF(e,t){DF?d.useLayoutEffect(e,t):d.useEffect(e,t)}function AF(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var uE=function(t){t.preventDefault(),t.stopPropagation()},zF=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,s=t.autoClearSearchValue,c=t.inputRef,f=t.placeholder,p=t.disabled,v=t.mode,g=t.showSearch,m=t.autoFocus,y=t.autoComplete,b=t.activeDescendantId,w=t.tabIndex,S=t.removeIcon,C=t.maxTagCount,E=t.maxTagTextLength,k=t.maxTagPlaceholder,I=k===void 0?function(te){return"+ ".concat(te.length," ...")}:k,$=t.tagRender,T=t.onToggleOpen,N=t.onRemove,P=t.onInputChange,D=t.onInputPaste,j=t.onInputKeyDown,F=t.onInputMouseDown,z=t.onInputCompositionStart,B=t.onInputCompositionEnd,_=d.useRef(null),H=d.useState(0),L=he(H,2),A=L[0],U=L[1],R=d.useState(!1),V=he(R,2),Y=V[0],X=V[1],q="".concat(r,"-selection"),G=i||v==="multiple"&&s===!1||v==="tags"?a:"",K=v==="tags"||v==="multiple"&&s===!1||g&&(i||Y);BF(function(){U(_.current.scrollWidth)},[G]);var J=function(re,le,ge,be,Se){return d.createElement("span",{title:gT(re),className:ae("".concat(q,"-item"),Q({},"".concat(q,"-item-disabled"),ge))},d.createElement("span",{className:"".concat(q,"-item-content")},le),be&&d.createElement(Fv,{className:"".concat(q,"-item-remove"),onMouseDown:uE,onClick:Se,customizeIcon:S},"×"))},oe=function(re,le,ge,be,Se){var pe=function(xe){uE(xe),T(!i)};return d.createElement("span",{onMouseDown:pe},$({label:le,value:re,disabled:ge,closable:be,onClose:Se}))},fe=function(re){var le=re.disabled,ge=re.label,be=re.value,Se=!p&&!le,pe=ge;if(typeof E=="number"&&(typeof ge=="string"||typeof ge=="number")){var me=String(pe);me.length>E&&(pe="".concat(me.slice(0,E),"..."))}var xe=function(Ie){Ie&&Ie.stopPropagation(),N(re)};return typeof $=="function"?oe(be,pe,le,Se,xe):J(re,pe,le,Se,xe)},ce=function(re){var le=typeof I=="function"?I(re):I;return J({title:le},le,!1)},ee=d.createElement("div",{className:"".concat(q,"-search"),style:{width:A},onFocus:function(){X(!0)},onBlur:function(){X(!1)}},d.createElement(vT,{ref:c,open:i,prefixCls:r,id:n,inputElement:null,disabled:p,autoFocus:m,autoComplete:y,editable:K,activeDescendantId:b,value:G,onKeyDown:j,onMouseDown:F,onChange:P,onPaste:D,onCompositionStart:z,onCompositionEnd:B,tabIndex:w,attrs:Do(t,!0)}),d.createElement("span",{ref:_,className:"".concat(q,"-search-mirror"),"aria-hidden":!0},G," ")),ie=d.createElement(yi,{prefixCls:"".concat(q,"-overflow"),data:o,renderItem:fe,renderRest:ce,suffix:ee,itemKey:AF,maxCount:C});return d.createElement(d.Fragment,null,ie,!o.length&&!G&&d.createElement("span",{className:"".concat(q,"-placeholder")},f))},FF=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,c=t.autoComplete,f=t.activeDescendantId,p=t.mode,v=t.open,g=t.values,m=t.placeholder,y=t.tabIndex,b=t.showSearch,w=t.searchValue,S=t.activeValue,C=t.maxLength,E=t.onInputKeyDown,k=t.onInputMouseDown,I=t.onInputChange,$=t.onInputPaste,T=t.onInputCompositionStart,N=t.onInputCompositionEnd,P=t.title,D=d.useState(!1),j=he(D,2),F=j[0],z=j[1],B=p==="combobox",_=B||b,H=g[0],L=w||"";B&&S&&!F&&(L=S),d.useEffect(function(){B&&z(!1)},[B,S]);var A=p!=="combobox"&&!v&&!b?!1:!!L,U=P===void 0?gT(H):P,R=d.useMemo(function(){return H?null:d.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:A?{visibility:"hidden"}:void 0},m)},[H,A,m,r]);return d.createElement(d.Fragment,null,d.createElement("span",{className:"".concat(r,"-selection-search")},d.createElement(vT,{ref:i,prefixCls:r,id:o,open:v,inputElement:n,disabled:a,autoFocus:s,autoComplete:c,editable:_,activeDescendantId:f,value:L,onKeyDown:E,onMouseDown:k,onChange:function(Y){z(!0),I(Y)},onPaste:$,onCompositionStart:T,onCompositionEnd:N,tabIndex:y,attrs:Do(t,!0),maxLength:B?C:void 0})),!B&&H?d.createElement("span",{className:"".concat(r,"-selection-item"),title:U,style:A?{visibility:"hidden"}:void 0},H.label):null,R)};function HF(e){return![Te.ESC,Te.SHIFT,Te.BACKSPACE,Te.TAB,Te.WIN_KEY,Te.ALT,Te.META,Te.WIN_KEY_RIGHT,Te.CTRL,Te.SEMICOLON,Te.EQUALS,Te.CAPS_LOCK,Te.CONTEXT_MENU,Te.F1,Te.F2,Te.F3,Te.F4,Te.F5,Te.F6,Te.F7,Te.F8,Te.F9,Te.F10,Te.F11,Te.F12].includes(e)}var _F=function(t,n){var r=d.useRef(null),o=d.useRef(!1),i=t.prefixCls,a=t.open,s=t.mode,c=t.showSearch,f=t.tokenWithEnter,p=t.autoClearSearchValue,v=t.onSearch,g=t.onSearchSubmit,m=t.onToggleOpen,y=t.onInputKeyDown,b=t.domRef;d.useImperativeHandle(n,function(){return{focus:function(){r.current.focus()},blur:function(){r.current.blur()}}});var w=uT(0),S=he(w,2),C=S[0],E=S[1],k=function(L){var A=L.which;(A===Te.UP||A===Te.DOWN)&&L.preventDefault(),y&&y(L),A===Te.ENTER&&s==="tags"&&!o.current&&!a&&(g==null||g(L.target.value)),HF(A)&&m(!0)},I=function(){E(!0)},$=d.useRef(null),T=function(L){v(L,!0,o.current)!==!1&&m(!0)},N=function(){o.current=!0},P=function(L){o.current=!1,s!=="combobox"&&T(L.target.value)},D=function(L){var A=L.target.value;if(f&&$.current&&/[\r\n]/.test($.current)){var U=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");A=A.replace(U,$.current)}$.current=null,T(A)},j=function(L){var A=L.clipboardData,U=A==null?void 0:A.getData("text");$.current=U||""},F=function(L){var A=L.target;if(A!==r.current){var U=document.body.style.msTouchAction!==void 0;U?setTimeout(function(){r.current.focus()}):r.current.focus()}},z=function(L){var A=C();L.target!==r.current&&!A&&s!=="combobox"&&L.preventDefault(),(s!=="combobox"&&(!c||!A)||!a)&&(a&&p!==!1&&v("",!0,!1),m())},B={inputRef:r,onInputKeyDown:k,onInputMouseDown:I,onInputChange:D,onInputPaste:j,onInputCompositionStart:N,onInputCompositionEnd:P},_=s==="multiple"||s==="tags"?d.createElement(zF,ke({},t,B)):d.createElement(FF,ke({},t,B));return d.createElement("div",{ref:b,className:"".concat(i,"-selector"),onClick:F,onMouseDown:z},_)},VF=d.forwardRef(_F);function WF(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,c=o.x,f=c===void 0?0:c,p=o.y,v=p===void 0?0:p,g=d.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(n.autoArrow!==!1){var y=n.points[0],b=n.points[1],w=y[0],S=y[1],C=b[0],E=b[1];w===C||!["t","b"].includes(w)?m.top=v:w==="t"?m.top=0:m.bottom=0,S===E||!["l","r"].includes(S)?m.left=f:S==="l"?m.left=0:m.right=0}return d.createElement("div",{ref:g,className:ae("".concat(t,"-arrow"),a),style:m},s)}function UF(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?d.createElement(Bo,ke({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return d.createElement("div",{style:{zIndex:r},className:ae("".concat(t,"-mask"),s)})}):null}var KF=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),qF=d.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,c=e.open,f=e.keepDom,p=e.fresh,v=e.onClick,g=e.mask,m=e.arrow,y=e.arrowPos,b=e.align,w=e.motion,S=e.maskMotion,C=e.forceRender,E=e.getPopupContainer,k=e.autoDestroy,I=e.portal,$=e.zIndex,T=e.onMouseEnter,N=e.onMouseLeave,P=e.onPointerEnter,D=e.ready,j=e.offsetX,F=e.offsetY,z=e.offsetR,B=e.offsetB,_=e.onAlign,H=e.onPrepare,L=e.stretch,A=e.targetWidth,U=e.targetHeight,R=typeof n=="function"?n():n,V=c||f,Y=(E==null?void 0:E.length)>0,X=d.useState(!E||!Y),q=he(X,2),G=q[0],K=q[1];if(on(function(){!G&&Y&&a&&K(!0)},[G,Y,a]),!G)return null;var J="auto",oe={left:"-1000vw",top:"-1000vh",right:J,bottom:J};if(D||!c){var fe,ce=b.points,ee=b.dynamicInset||((fe=b._experimental)===null||fe===void 0?void 0:fe.dynamicInset),ie=ee&&ce[0][1]==="r",te=ee&&ce[0][0]==="b";ie?(oe.right=z,oe.left=J):(oe.left=j,oe.right=J),te?(oe.bottom=B,oe.top=J):(oe.top=F,oe.bottom=J)}var re={};return L&&(L.includes("height")&&U?re.height=U:L.includes("minHeight")&&U&&(re.minHeight=U),L.includes("width")&&A?re.width=A:L.includes("minWidth")&&A&&(re.minWidth=A)),c||(re.pointerEvents="none"),d.createElement(I,{open:C||V,getContainer:E&&function(){return E(a)},autoDestroy:k},d.createElement(UF,{prefixCls:o,open:c,zIndex:$,mask:g,motion:S}),d.createElement(Lo,{onResize:_,disabled:!c},function(le){return d.createElement(Bo,ke({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(o,"-hidden")},w,{onAppearPrepare:H,onEnterPrepare:H,visible:c,onVisibleChanged:function(be){var Se;w==null||(Se=w.onVisibleChanged)===null||Se===void 0||Se.call(w,be),s(be)}}),function(ge,be){var Se=ge.className,pe=ge.style,me=ae(o,Se,r);return d.createElement("div",{ref:Zr(le,t,be),className:me,style:Z(Z(Z(Z({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},oe),re),pe),{},{boxSizing:"border-box",zIndex:$},i),onMouseEnter:T,onMouseLeave:N,onPointerEnter:P,onClick:v},m&&d.createElement(WF,{prefixCls:o,arrow:m,arrowPos:y,align:b}),d.createElement(KF,{cache:!c&&!p},R))})}))}),XF=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=ti(n),i=d.useCallback(function(s){Bu(t,r?r(s):s)},[r]),a=Rs(i,n.ref);return o?d.cloneElement(n,{ref:a}):n}),dE=d.createContext(null);function fE(e){return e?Array.isArray(e)?e:[e]:[]}function GF(e,t,n,r){return d.useMemo(function(){var o=fE(n??t),i=fE(r??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function YF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function QF(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,c=i[a];if(YF((s=e[c])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}function pE(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function md(e){return e.ownerDocument.defaultView}function ib(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=md(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(c){return r.includes(c)})&&t.push(n),n=n.parentElement}return t}function Gu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Yc(e){return Gu(parseFloat(e),0)}function vE(e,t){var n=Z({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=md(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,c=o.borderBottomWidth,f=o.borderLeftWidth,p=o.borderRightWidth,v=r.getBoundingClientRect(),g=r.offsetHeight,m=r.clientHeight,y=r.offsetWidth,b=r.clientWidth,w=Yc(s),S=Yc(c),C=Yc(f),E=Yc(p),k=Gu(Math.round(v.width/y*1e3)/1e3),I=Gu(Math.round(v.height/g*1e3)/1e3),$=(y-b-C-E)*k,T=(g-m-w-S)*I,N=w*I,P=S*I,D=C*k,j=E*k,F=0,z=0;if(i==="clip"){var B=Yc(a);F=B*k,z=B*I}var _=v.x+D-F,H=v.y+N-z,L=_+v.width+2*F-D-j-$,A=H+v.height+2*z-N-P-T;n.left=Math.max(n.left,_),n.top=Math.max(n.top,H),n.right=Math.min(n.right,L),n.bottom=Math.min(n.bottom,A)}}),n}function hE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function gE(e,t){var n=t||[],r=he(n,2),o=r[0],i=r[1];return[hE(e.width,o),hE(e.height,i)]}function mE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ul(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function ba(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function ZF(e,t,n,r,o,i,a){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=he(s,2),f=c[0],p=c[1],v=d.useRef(0),g=d.useMemo(function(){return t?ib(t):[]},[t]),m=d.useRef({}),y=function(){m.current={}};e||y();var b=Rn(function(){if(t&&n&&e){let nn=function(Qn,fr){var yr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me,Rr=R.x+Qn,eo=R.y+fr,si=Rr+fe,to=eo+oe,po=Math.max(Rr,yr.left),vo=Math.max(eo,yr.top),ki=Math.min(si,yr.right),Oi=Math.min(to,yr.bottom);return Math.max(0,(ki-po)*(Oi-vo))},or=function(){_t=R.y+ze,Ct=_t+oe,zt=R.x+ut,Jt=zt+fe};var C,E,k=t,I=k.ownerDocument,$=md(k),T=$.getComputedStyle(k),N=T.width,P=T.height,D=T.position,j=k.style.left,F=k.style.top,z=k.style.right,B=k.style.bottom,_=k.style.overflow,H=Z(Z({},o[r]),i),L=I.createElement("div");(C=k.parentElement)===null||C===void 0||C.appendChild(L),L.style.left="".concat(k.offsetLeft,"px"),L.style.top="".concat(k.offsetTop,"px"),L.style.position=D,L.style.height="".concat(k.offsetHeight,"px"),L.style.width="".concat(k.offsetWidth,"px"),k.style.left="0",k.style.top="0",k.style.right="auto",k.style.bottom="auto",k.style.overflow="hidden";var A;if(Array.isArray(n))A={x:n[0],y:n[1],width:0,height:0};else{var U=n.getBoundingClientRect();A={x:U.x,y:U.y,width:U.width,height:U.height}}var R=k.getBoundingClientRect(),V=I.documentElement,Y=V.clientWidth,X=V.clientHeight,q=V.scrollWidth,G=V.scrollHeight,K=V.scrollTop,J=V.scrollLeft,oe=R.height,fe=R.width,ce=A.height,ee=A.width,ie={left:0,top:0,right:Y,bottom:X},te={left:-J,top:-K,right:q-J,bottom:G-K},re=H.htmlRegion,le="visible",ge="visibleFirst";re!=="scroll"&&re!==ge&&(re=le);var be=re===ge,Se=vE(te,g),pe=vE(ie,g),me=re===le?pe:Se,xe=be?pe:me;k.style.left="auto",k.style.top="auto",k.style.right="0",k.style.bottom="0";var Pe=k.getBoundingClientRect();k.style.left=j,k.style.top=F,k.style.right=z,k.style.bottom=B,k.style.overflow=_,(E=k.parentElement)===null||E===void 0||E.removeChild(L);var Ie=Gu(Math.round(fe/parseFloat(N)*1e3)/1e3),De=Gu(Math.round(oe/parseFloat(P)*1e3)/1e3);if(Ie===0||De===0||Lp(n)&&!fd(n))return;var Be=H.offset,qe=H.targetOffset,lt=gE(R,Be),et=he(lt,2),He=et[0],Fe=et[1],Re=gE(A,qe),ft=he(Re,2),Me=ft[0],We=ft[1];A.x-=Me,A.y-=We;var Le=H.points||[],je=he(Le,2),Ye=je[0],mt=je[1],bt=mE(mt),Oe=mE(Ye),Ge=ul(A,bt),ct=ul(R,Oe),Mt=Z({},H),ut=Ge.x-ct.x+He,ze=Ge.y-ct.y+Fe,Qe=nn(ut,ze),Xe=nn(ut,ze,pe),rt=ul(A,["t","l"]),it=ul(R,["t","l"]),tt=ul(A,["b","r"]),Ke=ul(R,["b","r"]),Ae=H.overflow||{},xt=Ae.adjustX,Nt=Ae.adjustY,Ot=Ae.shiftX,ot=Ae.shiftY,at=function(fr){return typeof fr=="boolean"?fr:fr>=0},_t,Ct,zt,Jt;or();var st=at(Nt),pt=Oe[0]===bt[0];if(st&&Oe[0]==="t"&&(Ct>xe.bottom||m.current.bt)){var Rt=ze;pt?Rt-=oe-ce:Rt=rt.y-Ke.y-Fe;var Ft=nn(ut,Rt),fn=nn(ut,Rt,pe);Ft>Qe||Ft===Qe&&(!be||fn>=Xe)?(m.current.bt=!0,ze=Rt,Fe=-Fe,Mt.points=[ba(Oe,0),ba(bt,0)]):m.current.bt=!1}if(st&&Oe[0]==="b"&&(_t<xe.top||m.current.tb)){var ln=ze;pt?ln+=oe-ce:ln=tt.y-it.y-Fe;var Hn=nn(ut,ln),yn=nn(ut,ln,pe);Hn>Qe||Hn===Qe&&(!be||yn>=Xe)?(m.current.tb=!0,ze=ln,Fe=-Fe,Mt.points=[ba(Oe,0),ba(bt,0)]):m.current.tb=!1}var Yn=at(xt),Yt=Oe[1]===bt[1];if(Yn&&Oe[1]==="l"&&(Jt>xe.right||m.current.rl)){var wn=ut;Yt?wn-=fe-ee:wn=rt.x-Ke.x-He;var nr=nn(wn,ze),Nr=nn(wn,ze,pe);nr>Qe||nr===Qe&&(!be||Nr>=Xe)?(m.current.rl=!0,ut=wn,He=-He,Mt.points=[ba(Oe,1),ba(bt,1)]):m.current.rl=!1}if(Yn&&Oe[1]==="r"&&(zt<xe.left||m.current.lr)){var vt=ut;Yt?vt+=fe-ee:vt=tt.x-it.x-He;var Ut=nn(vt,ze),tn=nn(vt,ze,pe);Ut>Qe||Ut===Qe&&(!be||tn>=Xe)?(m.current.lr=!0,ut=vt,He=-He,Mt.points=[ba(Oe,1),ba(bt,1)]):m.current.lr=!1}or();var hn=Ot===!0?0:Ot;typeof hn=="number"&&(zt<pe.left&&(ut-=zt-pe.left-He,A.x+ee<pe.left+hn&&(ut+=A.x-pe.left+ee-hn)),Jt>pe.right&&(ut-=Jt-pe.right-He,A.x>pe.right-hn&&(ut+=A.x-pe.right+hn)));var gn=ot===!0?0:ot;typeof gn=="number"&&(_t<pe.top&&(ze-=_t-pe.top-Fe,A.y+ce<pe.top+gn&&(ze+=A.y-pe.top+ce-gn)),Ct>pe.bottom&&(ze-=Ct-pe.bottom-Fe,A.y>pe.bottom-gn&&(ze+=A.y-pe.bottom+gn)));var Er=R.x+ut,Cn=Er+fe,rr=R.y+ze,Hr=rr+oe,kr=A.x,Xt=kr+ee,Kt=A.y,dt=Kt+ce,yt=Math.max(Er,kr),en=Math.min(Cn,Xt),bn=(yt+en)/2,cn=bn-Er,xn=Math.max(rr,Kt),In=Math.min(Hr,dt),_n=(xn+In)/2,Pt=_n-rr;a==null||a(t,Mt);var Lt=Pe.right-R.x-(ut+R.width),$t=Pe.bottom-R.y-(ze+R.height);p({ready:!0,offsetX:ut/Ie,offsetY:ze/De,offsetR:Lt/Ie,offsetB:$t/De,arrowX:cn/Ie,arrowY:Pt/De,scaleX:Ie,scaleY:De,align:Mt})}}),w=function(){v.current+=1;var E=v.current;Promise.resolve().then(function(){v.current===E&&b()})},S=function(){p(function(E){return Z(Z({},E),{},{ready:!1})})};return on(S,[r]),on(function(){e||S()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,w]}function JF(e,t,n,r,o){on(function(){if(e&&t&&n){let v=function(){r(),o()};var i=t,a=n,s=ib(i),c=ib(a),f=md(a),p=new Set([f].concat(Ee(s),Ee(c)));return p.forEach(function(g){g.addEventListener("scroll",v,{passive:!0})}),f.addEventListener("resize",v,{passive:!0}),r(),function(){p.forEach(function(g){g.removeEventListener("scroll",v),f.removeEventListener("resize",v)})}}},[e,t,n])}function eH(e,t,n,r,o,i,a,s){var c=d.useRef(e),f=d.useRef(!1);c.current!==e&&(f.current=!0,c.current=e),d.useEffect(function(){var p=vn(function(){f.current=!1});return function(){vn.cancel(p)}},[e]),d.useEffect(function(){if(t&&r&&(!o||i)){var p=function(){var $=!1,T=function(D){var j=D.target;$=a(j)},N=function(D){var j=D.target;!f.current&&c.current&&!$&&!a(j)&&s(!1)};return[T,N]},v=p(),g=he(v,2),m=g[0],y=g[1],b=p(),w=he(b,2),S=w[0],C=w[1],E=md(r);E.addEventListener("mousedown",m,!0),E.addEventListener("click",y,!0),E.addEventListener("contextmenu",y,!0);var k=Vp(n);return k&&(k.addEventListener("mousedown",S,!0),k.addEventListener("click",C,!0),k.addEventListener("contextmenu",C,!0)),function(){E.removeEventListener("mousedown",m,!0),E.removeEventListener("click",y,!0),E.removeEventListener("contextmenu",y,!0),k&&(k.removeEventListener("mousedown",S,!0),k.removeEventListener("click",C,!0),k.removeEventListener("contextmenu",C,!0))}}},[t,n,r,o,i])}var tH=["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 nH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:By,t=d.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,c=s===void 0?"hover":s,f=n.showAction,p=n.hideAction,v=n.popupVisible,g=n.defaultPopupVisible,m=n.onPopupVisibleChange,y=n.afterPopupVisibleChange,b=n.mouseEnterDelay,w=n.mouseLeaveDelay,S=w===void 0?.1:w,C=n.focusDelay,E=n.blurDelay,k=n.mask,I=n.maskClosable,$=I===void 0?!0:I,T=n.getPopupContainer,N=n.forceRender,P=n.autoDestroy,D=n.destroyPopupOnHide,j=n.popup,F=n.popupClassName,z=n.popupStyle,B=n.popupPlacement,_=n.builtinPlacements,H=_===void 0?{}:_,L=n.popupAlign,A=n.zIndex,U=n.stretch,R=n.getPopupClassNameFromAlign,V=n.fresh,Y=n.alignPoint,X=n.onPopupClick,q=n.onPopupAlign,G=n.arrow,K=n.popupMotion,J=n.maskMotion,oe=n.popupTransitionName,fe=n.popupAnimation,ce=n.maskTransitionName,ee=n.maskAnimation,ie=n.className,te=n.getTriggerDOMNode,re=jt(n,tH),le=P||D||!1,ge=d.useState(!1),be=he(ge,2),Se=be[0],pe=be[1];on(function(){pe(sT())},[]);var me=d.useRef({}),xe=d.useContext(dE),Pe=d.useMemo(function(){return{registerSubPopup:function(Vt,Tn){me.current[Vt]=Tn,xe==null||xe.registerSubPopup(Vt,Tn)}}},[xe]),Ie=II(),De=d.useState(null),Be=he(De,2),qe=Be[0],lt=Be[1],et=Rn(function(ht){Lp(ht)&&qe!==ht&&lt(ht),xe==null||xe.registerSubPopup(Ie,ht)}),He=d.useState(null),Fe=he(He,2),Re=Fe[0],ft=Fe[1],Me=d.useRef(null),We=Rn(function(ht){Lp(ht)&&Re!==ht&&(ft(ht),Me.current=ht)}),Le=d.Children.only(a),je=(Le==null?void 0:Le.props)||{},Ye={},mt=Rn(function(ht){var Vt,Tn,Pn=Re;return(Pn==null?void 0:Pn.contains(ht))||((Vt=Vp(Pn))===null||Vt===void 0?void 0:Vt.host)===ht||ht===Pn||(qe==null?void 0:qe.contains(ht))||((Tn=Vp(qe))===null||Tn===void 0?void 0:Tn.host)===ht||ht===qe||Object.values(me.current).some(function(Ln){return(Ln==null?void 0:Ln.contains(ht))||ht===Ln})}),bt=pE(i,K,fe,oe),Oe=pE(i,J,ee,ce),Ge=d.useState(g||!1),ct=he(Ge,2),Mt=ct[0],ut=ct[1],ze=v??Mt,Qe=Rn(function(ht){v===void 0&&ut(ht)});on(function(){ut(v||!1)},[v]);var Xe=d.useRef(ze);Xe.current=ze;var rt=d.useRef([]);rt.current=[];var it=Rn(function(ht){var Vt;Qe(ht),((Vt=rt.current[rt.current.length-1])!==null&&Vt!==void 0?Vt:ze)!==ht&&(rt.current.push(ht),m==null||m(ht))}),tt=d.useRef(),Ke=function(){clearTimeout(tt.current)},Ae=function(Vt){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ke(),Tn===0?it(Vt):tt.current=setTimeout(function(){it(Vt)},Tn*1e3)};d.useEffect(function(){return Ke},[]);var xt=d.useState(!1),Nt=he(xt,2),Ot=Nt[0],ot=Nt[1];on(function(ht){(!ht||ze)&&ot(!0)},[ze]);var at=d.useState(null),_t=he(at,2),Ct=_t[0],zt=_t[1],Jt=d.useState([0,0]),st=he(Jt,2),pt=st[0],Rt=st[1],Ft=function(Vt){Rt([Vt.clientX,Vt.clientY])},fn=ZF(ze,qe,Y?pt:Re,B,H,L,q),ln=he(fn,11),Hn=ln[0],yn=ln[1],Yn=ln[2],Yt=ln[3],wn=ln[4],nr=ln[5],Nr=ln[6],vt=ln[7],Ut=ln[8],tn=ln[9],hn=ln[10],gn=GF(Se,c,f,p),Er=he(gn,2),Cn=Er[0],rr=Er[1],Hr=Cn.has("click"),kr=rr.has("click")||rr.has("contextMenu"),Xt=Rn(function(){Ot||hn()}),Kt=function(){Xe.current&&Y&&kr&&Ae(!1)};JF(ze,Re,qe,Xt,Kt),on(function(){Xt()},[pt,B]),on(function(){ze&&!(H!=null&&H[B])&&Xt()},[JSON.stringify(L)]);var dt=d.useMemo(function(){var ht=QF(H,i,tn,Y);return ae(ht,R==null?void 0:R(tn))},[tn,R,H,i,Y]);d.useImperativeHandle(r,function(){return{nativeElement:Me.current,forceAlign:Xt}});var yt=d.useState(0),en=he(yt,2),bn=en[0],cn=en[1],xn=d.useState(0),In=he(xn,2),_n=In[0],Pt=In[1],Lt=function(){if(U&&Re){var Vt=Re.getBoundingClientRect();cn(Vt.width),Pt(Vt.height)}},$t=function(){Lt(),Xt()},nn=function(Vt){ot(!1),hn(),y==null||y(Vt)},or=function(){return new Promise(function(Vt){Lt(),zt(function(){return Vt})})};on(function(){Ct&&(hn(),Ct(),zt(null))},[Ct]);function Qn(ht,Vt,Tn,Pn){Ye[ht]=function(Ln){var Ua;Pn==null||Pn(Ln),Ae(Vt,Tn);for(var na=arguments.length,gc=new Array(na>1?na-1:0),Bs=1;Bs<na;Bs++)gc[Bs-1]=arguments[Bs];(Ua=je[ht])===null||Ua===void 0||Ua.call.apply(Ua,[je,Ln].concat(gc))}}(Hr||kr)&&(Ye.onClick=function(ht){var Vt;Xe.current&&kr?Ae(!1):!Xe.current&&Hr&&(Ft(ht),Ae(!0));for(var Tn=arguments.length,Pn=new Array(Tn>1?Tn-1:0),Ln=1;Ln<Tn;Ln++)Pn[Ln-1]=arguments[Ln];(Vt=je.onClick)===null||Vt===void 0||Vt.call.apply(Vt,[je,ht].concat(Pn))}),eH(ze,kr,Re,qe,k,$,mt,Ae);var fr=Cn.has("hover"),yr=rr.has("hover"),Rr,eo;fr&&(Qn("onMouseEnter",!0,b,function(ht){Ft(ht)}),Qn("onPointerEnter",!0,b,function(ht){Ft(ht)}),Rr=function(Vt){(ze||Ot)&&qe!==null&&qe!==void 0&&qe.contains(Vt.target)&&Ae(!0,b)},Y&&(Ye.onMouseMove=function(ht){var Vt;(Vt=je.onMouseMove)===null||Vt===void 0||Vt.call(je,ht)})),yr&&(Qn("onMouseLeave",!1,S),Qn("onPointerLeave",!1,S),eo=function(){Ae(!1,S)}),Cn.has("focus")&&Qn("onFocus",!0,C),rr.has("focus")&&Qn("onBlur",!1,E),Cn.has("contextMenu")&&(Ye.onContextMenu=function(ht){var Vt;Xe.current&&rr.has("contextMenu")?Ae(!1):(Ft(ht),Ae(!0)),ht.preventDefault();for(var Tn=arguments.length,Pn=new Array(Tn>1?Tn-1:0),Ln=1;Ln<Tn;Ln++)Pn[Ln-1]=arguments[Ln];(Vt=je.onContextMenu)===null||Vt===void 0||Vt.call.apply(Vt,[je,ht].concat(Pn))}),ie&&(Ye.className=ae(je.className,ie));var si=Z(Z({},je),Ye),to={},po=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];po.forEach(function(ht){re[ht]&&(to[ht]=function(){for(var Vt,Tn=arguments.length,Pn=new Array(Tn),Ln=0;Ln<Tn;Ln++)Pn[Ln]=arguments[Ln];(Vt=si[ht])===null||Vt===void 0||Vt.call.apply(Vt,[si].concat(Pn)),re[ht].apply(re,Pn)})});var vo=d.cloneElement(Le,Z(Z({},si),to)),ki={x:nr,y:Nr},Oi=G?Z({},G!==!0?G:{}):null;return d.createElement(d.Fragment,null,d.createElement(Lo,{disabled:!ze,ref:We,onResize:$t},d.createElement(XF,{getTriggerDOMNode:te},vo)),d.createElement(dE.Provider,{value:Pe},d.createElement(qF,{portal:e,ref:et,prefixCls:i,popup:j,className:ae(F,dt),style:z,target:Re,onMouseEnter:Rr,onMouseLeave:eo,onPointerEnter:Rr,zIndex:A,open:ze,keepDom:Ot,fresh:V,onClick:X,mask:k,motion:bt,maskMotion:Oe,onVisibleChanged:nn,onPrepare:or,forceRender:N,autoDestroy:le,getPopupContainer:T,align:tn,arrow:Oi,arrowPos:ki,ready:Hn,offsetX:yn,offsetY:Yn,offsetR:Yt,offsetB:wn,onAlign:Xt,stretch:U,targetWidth:bn/vt,targetHeight:_n/Ut})))});return t}const Hv=nH(By);var rH=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],oH=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},iH=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,a=t.popupElement,s=t.animation,c=t.transitionName,f=t.dropdownStyle,p=t.dropdownClassName,v=t.direction,g=v===void 0?"ltr":v,m=t.placement,y=t.builtinPlacements,b=t.dropdownMatchSelectWidth,w=t.dropdownRender,S=t.dropdownAlign,C=t.getPopupContainer,E=t.empty,k=t.getTriggerDOMNode,I=t.onPopupVisibleChange,$=t.onPopupMouseEnter,T=jt(t,rH),N="".concat(r,"-dropdown"),P=a;w&&(P=w(a));var D=d.useMemo(function(){return y||oH(b)},[y,b]),j=s?"".concat(N,"-").concat(s):c,F=typeof b=="number",z=d.useMemo(function(){return F?null:b===!1?"minWidth":"width"},[b,F]),B=f;F&&(B=Z(Z({},B),{},{width:b}));var _=d.useRef(null);return d.useImperativeHandle(n,function(){return{getPopupElement:function(){return _.current}}}),d.createElement(Hv,ke({},T,{showAction:I?["click"]:[],hideAction:I?["click"]:[],popupPlacement:m||(g==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:D,prefixCls:N,popupTransitionName:j,popup:d.createElement("div",{ref:_,onMouseEnter:$},P),stretch:z,popupAlign:S,popupVisible:o,getPopupContainer:C,popupClassName:ae(p,Q({},"".concat(N,"-empty"),E)),popupStyle:B,getTriggerDOMNode:k,onPopupVisibleChange:I}),i)},aH=d.forwardRef(iH);function bE(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function mT(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:o||"value",options:i||"options",groupLabel:a||s}}function sH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=mT(n,!1),a=i.label,s=i.value,c=i.options,f=i.groupLabel;function p(v,g){Array.isArray(v)&&v.forEach(function(m){if(g||!(c in m)){var y=m[s];o.push({key:bE(m,o.length),groupOption:g,data:m,label:m[a],value:y})}else{var b=m[f];b===void 0&&r&&(b=m.label),o.push({key:bE(m,o.length),group:!0,data:m,label:b}),p(m[c],!0)}})}return p(e,!1),o}function ab(e){var t=Z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Dn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var lH=function(t,n,r){if(!n||!n.length)return null;var o=!1,i=function s(c,f){var p=E$(f),v=p[0],g=p.slice(1);if(!v)return[c];var m=c.split(v);return o=o||m.length>1,m.reduce(function(y,b){return[].concat(Ee(y),Ee(s(b,g)))},[]).filter(Boolean)},a=i(t,n);return o?typeof r<"u"?a.slice(0,r):a:null},Xy=d.createContext(null),cH=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],uH=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],sb=function(t){return t==="tags"||t==="multiple"},bT=d.forwardRef(function(e,t){var n,r,o=e.id,i=e.prefixCls,a=e.className,s=e.showSearch,c=e.tagRender,f=e.direction,p=e.omitDomProps,v=e.displayValues,g=e.onDisplayValuesChange,m=e.emptyOptions,y=e.notFoundContent,b=y===void 0?"Not Found":y,w=e.onClear,S=e.mode,C=e.disabled,E=e.loading,k=e.getInputElement,I=e.getRawInputElement,$=e.open,T=e.defaultOpen,N=e.onDropdownVisibleChange,P=e.activeValue,D=e.onActiveValueChange,j=e.activeDescendantId,F=e.searchValue,z=e.autoClearSearchValue,B=e.onSearch,_=e.onSearchSplit,H=e.tokenSeparators,L=e.allowClear,A=e.suffixIcon,U=e.clearIcon,R=e.OptionList,V=e.animation,Y=e.transitionName,X=e.dropdownStyle,q=e.dropdownClassName,G=e.dropdownMatchSelectWidth,K=e.dropdownRender,J=e.dropdownAlign,oe=e.placement,fe=e.builtinPlacements,ce=e.getPopupContainer,ee=e.showAction,ie=ee===void 0?[]:ee,te=e.onFocus,re=e.onBlur,le=e.onKeyUp,ge=e.onKeyDown,be=e.onMouseDown,Se=jt(e,cH),pe=sb(S),me=(s!==void 0?s:pe)||S==="combobox",xe=Z({},Se);uH.forEach(function(dt){delete xe[dt]}),p==null||p.forEach(function(dt){delete xe[dt]});var Pe=d.useState(!1),Ie=he(Pe,2),De=Ie[0],Be=Ie[1];d.useEffect(function(){Be(sT())},[]);var qe=d.useRef(null),lt=d.useRef(null),et=d.useRef(null),He=d.useRef(null),Fe=d.useRef(null),Re=d.useRef(!1),ft=yF(),Me=he(ft,3),We=Me[0],Le=Me[1],je=Me[2];d.useImperativeHandle(t,function(){var dt,yt;return{focus:(dt=He.current)===null||dt===void 0?void 0:dt.focus,blur:(yt=He.current)===null||yt===void 0?void 0:yt.blur,scrollTo:function(bn){var cn;return(cn=Fe.current)===null||cn===void 0?void 0:cn.scrollTo(bn)}}});var Ye=d.useMemo(function(){var dt;if(S!=="combobox")return F;var yt=(dt=v[0])===null||dt===void 0?void 0:dt.value;return typeof yt=="string"||typeof yt=="number"?String(yt):""},[F,S,v]),mt=S==="combobox"&&typeof k=="function"&&k()||null,bt=typeof I=="function"&&I(),Oe=Rs(lt,bt==null||(n=bt.props)===null||n===void 0?void 0:n.ref),Ge=d.useState(!1),ct=he(Ge,2),Mt=ct[0],ut=ct[1];on(function(){ut(!0)},[]);var ze=Fn(!1,{defaultValue:T,value:$}),Qe=he(ze,2),Xe=Qe[0],rt=Qe[1],it=Mt?Xe:!1,tt=!b&&m;(C||tt&&it&&S==="combobox")&&(it=!1);var Ke=tt?!1:it,Ae=d.useCallback(function(dt){var yt=dt!==void 0?dt:!it;C||(rt(yt),it!==yt&&(N==null||N(yt)))},[C,it,rt,N]),xt=d.useMemo(function(){return(H||[]).some(function(dt){return[`
`,`\r
`].includes(dt)})},[H]),Nt=d.useContext(Xy)||{},Ot=Nt.maxCount,ot=Nt.rawValues,at=function(yt,en,bn){if(!((ot==null?void 0:ot.size)>=Ot)){var cn=!0,xn=yt;D==null||D(null);var In=lH(yt,H,Ot&&Ot-ot.size),_n=bn?null:In;return S!=="combobox"&&_n&&(xn="",_==null||_(_n),Ae(!1),cn=!1),B&&Ye!==xn&&B(xn,{source:en?"typing":"effect"}),cn}},_t=function(yt){!yt||!yt.trim()||B(yt,{source:"submit"})};d.useEffect(function(){!it&&!pe&&S!=="combobox"&&at("",!1,!1)},[it]),d.useEffect(function(){Xe&&C&&rt(!1),C&&!Re.current&&Le(!1)},[C]);var Ct=uT(),zt=he(Ct,2),Jt=zt[0],st=zt[1],pt=function(yt){var en=Jt(),bn=yt.which;if(bn===Te.ENTER&&(S!=="combobox"&&yt.preventDefault(),it||Ae(!0)),st(!!Ye),bn===Te.BACKSPACE&&!en&&pe&&!Ye&&v.length){for(var cn=Ee(v),xn=null,In=cn.length-1;In>=0;In-=1){var _n=cn[In];if(!_n.disabled){cn.splice(In,1),xn=_n;break}}xn&&g(cn,{type:"remove",values:[xn]})}for(var Pt=arguments.length,Lt=new Array(Pt>1?Pt-1:0),$t=1;$t<Pt;$t++)Lt[$t-1]=arguments[$t];if(it){var nn;(nn=Fe.current)===null||nn===void 0||nn.onKeyDown.apply(nn,[yt].concat(Lt))}ge==null||ge.apply(void 0,[yt].concat(Lt))},Rt=function(yt){for(var en=arguments.length,bn=new Array(en>1?en-1:0),cn=1;cn<en;cn++)bn[cn-1]=arguments[cn];if(it){var xn;(xn=Fe.current)===null||xn===void 0||xn.onKeyUp.apply(xn,[yt].concat(bn))}le==null||le.apply(void 0,[yt].concat(bn))},Ft=function(yt){var en=v.filter(function(bn){return bn!==yt});g(en,{type:"remove",values:[yt]})},fn=d.useRef(!1),ln=function(){Le(!0),C||(te&&!fn.current&&te.apply(void 0,arguments),ie.includes("focus")&&Ae(!0)),fn.current=!0},Hn=function(){Re.current=!0,Le(!1,function(){fn.current=!1,Re.current=!1,Ae(!1)}),!C&&(Ye&&(S==="tags"?B(Ye,{source:"submit"}):S==="multiple"&&B("",{source:"blur"})),re&&re.apply(void 0,arguments))},yn=[];d.useEffect(function(){return function(){yn.forEach(function(dt){return clearTimeout(dt)}),yn.splice(0,yn.length)}},[]);var Yn=function(yt){var en,bn=yt.target,cn=(en=et.current)===null||en===void 0?void 0:en.getPopupElement();if(cn&&cn.contains(bn)){var xn=setTimeout(function(){var Lt=yn.indexOf(xn);if(Lt!==-1&&yn.splice(Lt,1),je(),!De&&!cn.contains(document.activeElement)){var $t;($t=He.current)===null||$t===void 0||$t.focus()}});yn.push(xn)}for(var In=arguments.length,_n=new Array(In>1?In-1:0),Pt=1;Pt<In;Pt++)_n[Pt-1]=arguments[Pt];be==null||be.apply(void 0,[yt].concat(_n))},Yt=d.useState({}),wn=he(Yt,2),nr=wn[1];function Nr(){nr({})}var vt;bt&&(vt=function(yt){Ae(yt)}),wF(function(){var dt;return[qe.current,(dt=et.current)===null||dt===void 0?void 0:dt.getPopupElement()]},Ke,Ae,!!bt);var Ut=d.useMemo(function(){return Z(Z({},e),{},{notFoundContent:b,open:it,triggerOpen:Ke,id:o,showSearch:me,multiple:pe,toggleOpen:Ae})},[e,b,Ke,it,o,me,pe,Ae]),tn=!!A||E,hn;tn&&(hn=d.createElement(Fv,{className:ae("".concat(i,"-arrow"),Q({},"".concat(i,"-arrow-loading"),E)),customizeIcon:A,customizeIconProps:{loading:E,searchValue:Ye,open:it,focused:We,showSearch:me}}));var gn=function(){var yt;w==null||w(),(yt=He.current)===null||yt===void 0||yt.focus(),g([],{type:"clear",values:v}),at("",!1,!1)},Er=bF(i,gn,v,L,U,C,Ye,S),Cn=Er.allowClear,rr=Er.clearIcon,Hr=d.createElement(R,{ref:Fe}),kr=ae(i,a,(r={},Q(r,"".concat(i,"-focused"),We),Q(r,"".concat(i,"-multiple"),pe),Q(r,"".concat(i,"-single"),!pe),Q(r,"".concat(i,"-allow-clear"),L),Q(r,"".concat(i,"-show-arrow"),tn),Q(r,"".concat(i,"-disabled"),C),Q(r,"".concat(i,"-loading"),E),Q(r,"".concat(i,"-open"),it),Q(r,"".concat(i,"-customize-input"),mt),Q(r,"".concat(i,"-show-search"),me),r)),Xt=d.createElement(aH,{ref:et,disabled:C,prefixCls:i,visible:Ke,popupElement:Hr,animation:V,transitionName:Y,dropdownStyle:X,dropdownClassName:q,direction:f,dropdownMatchSelectWidth:G,dropdownRender:K,dropdownAlign:J,placement:oe,builtinPlacements:fe,getPopupContainer:ce,empty:m,getTriggerDOMNode:function(){return lt.current},onPopupVisibleChange:vt,onPopupMouseEnter:Nr},bt?d.cloneElement(bt,{ref:Oe}):d.createElement(VF,ke({},e,{domRef:lt,prefixCls:i,inputElement:mt,ref:He,id:o,showSearch:me,autoClearSearchValue:z,mode:S,activeDescendantId:j,tagRender:c,values:v,open:it,onToggleOpen:Ae,activeValue:P,searchValue:Ye,onSearch:at,onSearchSubmit:_t,onRemove:Ft,tokenWithEnter:xt}))),Kt;return bt?Kt=Xt:Kt=d.createElement("div",ke({className:kr},xe,{ref:qe,onMouseDown:Yn,onKeyDown:pt,onKeyUp:Rt,onFocus:ln,onBlur:Hn}),We&&!it&&d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(v.map(function(dt){var yt=dt.label,en=dt.value;return["number","string"].includes(Tt(yt))?yt:en}).join(", "))),Xt,hn,Cn&&rr),d.createElement(lT.Provider,{value:Ut},Kt)}),Gy=function(){return null};Gy.isSelectOptGroup=!0;var Yy=function(){return null};Yy.isSelectOption=!0;var yT=d.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,s=e.onInnerResize,c=e.innerProps,f=e.rtl,p=e.extra,v={},g={display:"flex",flexDirection:"column"};if(r!==void 0){var m;v={height:n,position:"relative",overflow:"hidden"},g=Z(Z({},g),{},(m={transform:"translateY(".concat(r,"px)")},Q(m,f?"marginRight":"marginLeft",-o),Q(m,"position","absolute"),Q(m,"left",0),Q(m,"right",0),Q(m,"top",0),m))}return d.createElement("div",{style:v},d.createElement(Lo,{onResize:function(b){var w=b.offsetHeight;w&&s&&s()}},d.createElement("div",ke({style:g,className:ae(Q({},"".concat(a,"-holder-inner"),a)),ref:t},c),i,p)))});yT.displayName="Filler";function yE(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var wE=d.forwardRef(function(e,t){var n,r=e.prefixCls,o=e.rtl,i=e.scrollOffset,a=e.scrollRange,s=e.onStartMove,c=e.onStopMove,f=e.onScroll,p=e.horizontal,v=e.spinSize,g=e.containerSize,m=e.style,y=e.thumbStyle,b=d.useState(!1),w=he(b,2),S=w[0],C=w[1],E=d.useState(null),k=he(E,2),I=k[0],$=k[1],T=d.useState(null),N=he(T,2),P=N[0],D=N[1],j=!o,F=d.useRef(),z=d.useRef(),B=d.useState(!1),_=he(B,2),H=_[0],L=_[1],A=d.useRef(),U=function(){clearTimeout(A.current),L(!0),A.current=setTimeout(function(){L(!1)},3e3)},R=a-g||0,V=g-v||0,Y=R>0,X=d.useMemo(function(){if(i===0||R===0)return 0;var ie=i/R;return ie*V},[i,R,V]),q=function(te){te.stopPropagation(),te.preventDefault()},G=d.useRef({top:X,dragging:S,pageY:I,startTop:P});G.current={top:X,dragging:S,pageY:I,startTop:P};var K=function(te){C(!0),$(yE(te,p)),D(G.current.top),s(),te.stopPropagation(),te.preventDefault()};d.useEffect(function(){var ie=function(ge){ge.preventDefault()},te=F.current,re=z.current;return te.addEventListener("touchstart",ie),re.addEventListener("touchstart",K),function(){te.removeEventListener("touchstart",ie),re.removeEventListener("touchstart",K)}},[]);var J=d.useRef();J.current=R;var oe=d.useRef();oe.current=V,d.useEffect(function(){if(S){var ie,te=function(ge){var be=G.current,Se=be.dragging,pe=be.pageY,me=be.startTop;if(vn.cancel(ie),Se){var xe=yE(ge,p)-pe,Pe=me;!j&&p?Pe-=xe:Pe+=xe;var Ie=J.current,De=oe.current,Be=De?Pe/De:0,qe=Math.ceil(Be*Ie);qe=Math.max(qe,0),qe=Math.min(qe,Ie),ie=vn(function(){f(qe,p)})}},re=function(){C(!1),c()};return window.addEventListener("mousemove",te),window.addEventListener("touchmove",te),window.addEventListener("mouseup",re),window.addEventListener("touchend",re),function(){window.removeEventListener("mousemove",te),window.removeEventListener("touchmove",te),window.removeEventListener("mouseup",re),window.removeEventListener("touchend",re),vn.cancel(ie)}}},[S]),d.useEffect(function(){U()},[i]),d.useImperativeHandle(t,function(){return{delayHidden:U}});var fe="".concat(r,"-scrollbar"),ce={position:"absolute",visibility:H&&Y?null:"hidden"},ee={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return p?(ce.height=8,ce.left=0,ce.right=0,ce.bottom=0,ee.height="100%",ee.width=v,j?ee.left=X:ee.right=X):(ce.width=8,ce.top=0,ce.bottom=0,j?ce.right=0:ce.left=0,ee.width="100%",ee.height=v,ee.top=X),d.createElement("div",{ref:F,className:ae(fe,(n={},Q(n,"".concat(fe,"-horizontal"),p),Q(n,"".concat(fe,"-vertical"),!p),Q(n,"".concat(fe,"-visible"),H),n)),style:Z(Z({},ce),m),onMouseDown:q,onMouseMove:U},d.createElement("div",{ref:z,className:ae("".concat(fe,"-thumb"),Q({},"".concat(fe,"-thumb-moving"),S)),style:Z(Z({},ee),y),onMouseDown:K}))});function dH(e){var t=e.children,n=e.setRef,r=d.useCallback(function(o){n(o)},[]);return d.cloneElement(t,{ref:r})}function fH(e,t,n,r,o,i,a){var s=a.getKey;return e.slice(t,n+1).map(function(c,f){var p=t+f,v=i(c,p,{style:{width:r}}),g=s(c);return d.createElement(dH,{key:g,setRef:function(y){return o(c,y)}},v)})}var pH=function(){function e(){ur(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return dr(e,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function vH(e,t,n){var r=d.useState(0),o=he(r,2),i=o[0],a=o[1],s=d.useRef(new Map),c=d.useRef(new pH),f=d.useRef();function p(){vn.cancel(f.current)}function v(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;p();var y=function(){s.current.forEach(function(w,S){if(w&&w.offsetParent){var C=hu(w),E=C.offsetHeight;c.current.get(S)!==E&&c.current.set(S,C.offsetHeight)}}),a(function(w){return w+1})};m?y():f.current=vn(y)}function g(m,y){var b=e(m),w=s.current.get(b);y?(s.current.set(b,y),v()):s.current.delete(b),!w!=!y&&(y?t==null||t(m):n==null||n(m))}return d.useEffect(function(){return p},[]),[g,v,c.current,i]}var hH=10;function gH(e,t,n,r,o,i,a,s){var c=d.useRef(),f=d.useState(null),p=he(f,2),v=p[0],g=p[1];return on(function(){if(v&&v.times<hH){if(!e.current){g(function(U){return Z({},U)});return}i();var m=v.targetAlign,y=v.originAlign,b=v.index,w=v.offset,S=e.current.clientHeight,C=!1,E=m,k=null;if(S){for(var I=m||y,$=0,T=0,N=0,P=Math.min(t.length-1,b),D=0;D<=P;D+=1){var j=o(t[D]);T=$;var F=n.get(j);N=T+(F===void 0?r:F),$=N}for(var z=I==="top"?w:S-w,B=P;B>=0;B-=1){var _=o(t[B]),H=n.get(_);if(H===void 0){C=!0;break}if(z-=H,z<=0)break}switch(I){case"top":k=T-w;break;case"bottom":k=N-S+w;break;default:var L=e.current.scrollTop,A=L+S;T<L?E="top":N>A&&(E="bottom")}k!==null&&a(k),k!==v.lastTop&&(C=!0)}C&&g(Z(Z({},v),{},{times:v.times+1,targetAlign:E,lastTop:k}))}},[v,e.current]),function(m){if(m==null){s();return}if(vn.cancel(c.current),typeof m=="number")a(m);else if(m&&Tt(m)==="object"){var y,b=m.align;"index"in m?y=m.index:y=t.findIndex(function(C){return o(C)===m.key});var w=m.offset,S=w===void 0?0:w;g({times:0,index:y,offset:S,originAlign:b})}}}function mH(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);var s={__EMPTY_ITEM__:!0};function c(y){return y!==void 0?n(y):s}for(var f=null,p=Math.abs(r-o)!==1,v=0;v<a.length;v+=1){var g=c(i[v]),m=c(a[v]);if(g!==m){f=v,p=p||g!==c(a[v+1]);break}}return f===null?null:{index:f,multiple:p}}function bH(e,t,n){var r=d.useState(e),o=he(r,2),i=o[0],a=o[1],s=d.useState(null),c=he(s,2),f=c[0],p=c[1];return d.useEffect(function(){var v=mH(i||[],e||[],t);(v==null?void 0:v.index)!==void 0&&(n==null||n(v.index),p(e[v.index])),a(e)},[e]),[f]}var xE=(typeof navigator>"u"?"undefined":Tt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const wT=function(e,t){var n=d.useRef(!1),r=d.useRef(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var i=d.useRef({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=a<0&&i.current.top||a>0&&i.current.bottom;return s&&c?(clearTimeout(r.current),n.current=!1):(!c||n.current)&&o(),!n.current&&c}};function yH(e,t,n,r,o){var i=d.useRef(0),a=d.useRef(null),s=d.useRef(null),c=d.useRef(!1),f=wT(t,n);function p(w,S){vn.cancel(a.current),i.current+=S,s.current=S,!f(S)&&(xE||w.preventDefault(),a.current=vn(function(){var C=c.current?10:1;o(i.current*C),i.current=0}))}function v(w,S){o(S,!0),xE||w.preventDefault()}var g=d.useRef(null),m=d.useRef(null);function y(w){if(e){vn.cancel(m.current),m.current=vn(function(){g.current=null},2);var S=w.deltaX,C=w.deltaY,E=w.shiftKey,k=S,I=C;(g.current==="sx"||!g.current&&E&&C&&!S)&&(k=C,I=0,g.current="sx");var $=Math.abs(k),T=Math.abs(I);g.current===null&&(g.current=r&&$>T?"x":"y"),g.current==="y"?p(w,I):v(w,k)}}function b(w){e&&(c.current=w.detail===s.current)}return[y,b]}var wH=14/15;function xH(e,t,n){var r=d.useRef(!1),o=d.useRef(0),i=d.useRef(null),a=d.useRef(null),s,c=function(g){if(r.current){var m=Math.ceil(g.touches[0].pageY),y=o.current-m;o.current=m,n(y)&&g.preventDefault(),clearInterval(a.current),a.current=setInterval(function(){y*=wH,(!n(y,!0)||Math.abs(y)<=.1)&&clearInterval(a.current)},16)}},f=function(){r.current=!1,s()},p=function(g){s(),g.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(g.touches[0].pageY),i.current=g.target,i.current.addEventListener("touchmove",c),i.current.addEventListener("touchend",f))};s=function(){i.current&&(i.current.removeEventListener("touchmove",c),i.current.removeEventListener("touchend",f))},on(function(){return e&&t.current.addEventListener("touchstart",p),function(){var v;(v=t.current)===null||v===void 0||v.removeEventListener("touchstart",p),s(),clearInterval(a.current)}},[e])}var SH=20;function SE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*100;return isNaN(n)&&(n=0),n=Math.max(n,SH),n=Math.min(n,e/2),Math.floor(n)}function CH(e,t,n,r){var o=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=he(o,2),a=i[0],s=i[1],c=function(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p,g=a.get(p),m=a.get(v);if(g===void 0||m===void 0)for(var y=e.length,b=s.length;b<y;b+=1){var w,S=e[b],C=t(S);a.set(C,b);var E=(w=n.get(C))!==null&&w!==void 0?w:r;if(s[b]=(s[b-1]||0)+E,C===p&&(g=b),C===v&&(m=b),g!==void 0&&m!==void 0)break}return{top:s[g-1]||0,bottom:s[m]}};return c}var EH=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],kH=[],OH={overflowY:"auto",overflowAnchor:"none"};function $H(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,c=s===void 0?!0:s,f=e.style,p=e.data,v=e.children,g=e.itemKey,m=e.virtual,y=e.direction,b=e.scrollWidth,w=e.component,S=w===void 0?"div":w,C=e.onScroll,E=e.onVirtualScroll,k=e.onVisibleChange,I=e.innerProps,$=e.extraRender,T=e.styles,N=jt(e,EH),P=!!(m!==!1&&i&&a),D=P&&p&&(a*p.length>i||!!b),j=y==="rtl",F=ae(r,Q({},"".concat(r,"-rtl"),j),o),z=p||kH,B=d.useRef(),_=d.useRef(),H=d.useState(0),L=he(H,2),A=L[0],U=L[1],R=d.useState(0),V=he(R,2),Y=V[0],X=V[1],q=d.useState(!1),G=he(q,2),K=G[0],J=G[1],oe=function(){J(!0)},fe=function(){J(!1)},ce=d.useCallback(function(st){return typeof g=="function"?g(st):st==null?void 0:st[g]},[g]),ee={getKey:ce};function ie(st){U(function(pt){var Rt;typeof st=="function"?Rt=st(pt):Rt=st;var Ft=Oe(Rt);return B.current.scrollTop=Ft,Ft})}var te=d.useRef({start:0,end:z.length}),re=d.useRef(),le=bH(z,ce),ge=he(le,1),be=ge[0];re.current=be;var Se=vH(ce,null,null),pe=he(Se,4),me=pe[0],xe=pe[1],Pe=pe[2],Ie=pe[3],De=d.useMemo(function(){if(!P)return{scrollHeight:void 0,start:0,end:z.length-1,offset:void 0};if(!D){var st;return{scrollHeight:((st=_.current)===null||st===void 0?void 0:st.offsetHeight)||0,start:0,end:z.length-1,offset:void 0}}for(var pt=0,Rt,Ft,fn,ln=z.length,Hn=0;Hn<ln;Hn+=1){var yn=z[Hn],Yn=ce(yn),Yt=Pe.get(Yn),wn=pt+(Yt===void 0?a:Yt);wn>=A&&Rt===void 0&&(Rt=Hn,Ft=pt),wn>A+i&&fn===void 0&&(fn=Hn),pt=wn}return Rt===void 0&&(Rt=0,Ft=0,fn=Math.ceil(i/a)),fn===void 0&&(fn=z.length-1),fn=Math.min(fn+1,z.length-1),{scrollHeight:pt,start:Rt,end:fn,offset:Ft}},[D,P,A,z,Ie,i]),Be=De.scrollHeight,qe=De.start,lt=De.end,et=De.offset;te.current.start=qe,te.current.end=lt;var He=d.useState({width:0,height:i}),Fe=he(He,2),Re=Fe[0],ft=Fe[1],Me=function(pt){ft({width:pt.width||pt.offsetWidth,height:pt.height||pt.offsetHeight})},We=d.useRef(),Le=d.useRef(),je=d.useMemo(function(){return SE(Re.width,b)},[Re.width,b]),Ye=d.useMemo(function(){return SE(Re.height,Be)},[Re.height,Be]),mt=Be-i,bt=d.useRef(mt);bt.current=mt;function Oe(st){var pt=st;return Number.isNaN(bt.current)||(pt=Math.min(pt,bt.current)),pt=Math.max(pt,0),pt}var Ge=A<=0,ct=A>=mt,Mt=wT(Ge,ct),ut=function(){return{x:j?-Y:Y,y:A}},ze=d.useRef(ut()),Qe=Rn(function(){if(E){var st=ut();(ze.current.x!==st.x||ze.current.y!==st.y)&&(E(st),ze.current=st)}});function Xe(st,pt){var Rt=st;pt?(ei.flushSync(function(){X(Rt)}),Qe()):ie(Rt)}function rt(st){var pt=st.currentTarget.scrollTop;pt!==A&&ie(pt),C==null||C(st),Qe()}var it=function(pt){var Rt=pt,Ft=b-Re.width;return Rt=Math.max(Rt,0),Rt=Math.min(Rt,Ft),Rt},tt=Rn(function(st,pt){pt?(ei.flushSync(function(){X(function(Rt){var Ft=Rt+(j?-st:st);return it(Ft)})}),Qe()):ie(function(Rt){var Ft=Rt+st;return Ft})}),Ke=yH(P,Ge,ct,!!b,tt),Ae=he(Ke,2),xt=Ae[0],Nt=Ae[1];xH(P,B,function(st,pt){return Mt(st,pt)?!1:(xt({preventDefault:function(){},deltaY:st}),!0)}),on(function(){function st(Rt){P&&Rt.preventDefault()}var pt=B.current;return pt.addEventListener("wheel",xt),pt.addEventListener("DOMMouseScroll",Nt),pt.addEventListener("MozMousePixelScroll",st),function(){pt.removeEventListener("wheel",xt),pt.removeEventListener("DOMMouseScroll",Nt),pt.removeEventListener("MozMousePixelScroll",st)}},[P]),on(function(){b&&X(function(st){return it(st)})},[Re.width,b]);var Ot=function(){var pt,Rt;(pt=We.current)===null||pt===void 0||pt.delayHidden(),(Rt=Le.current)===null||Rt===void 0||Rt.delayHidden()},ot=gH(B,z,Pe,a,ce,function(){return xe(!0)},ie,Ot);d.useImperativeHandle(t,function(){return{getScrollInfo:ut,scrollTo:function(pt){function Rt(Ft){return Ft&&Tt(Ft)==="object"&&("left"in Ft||"top"in Ft)}Rt(pt)?(pt.left!==void 0&&X(it(pt.left)),ot(pt.top)):ot(pt)}}}),on(function(){if(k){var st=z.slice(qe,lt+1);k(st,z)}},[qe,lt,z]);var at=CH(z,ce,Pe,a),_t=$==null?void 0:$({start:qe,end:lt,virtual:D,offsetX:Y,offsetY:et,rtl:j,getSize:at}),Ct=fH(z,qe,lt,b,me,v,ee),zt=null;i&&(zt=Z(Q({},c?"height":"maxHeight",i),OH),P&&(zt.overflowY="hidden",b&&(zt.overflowX="hidden"),K&&(zt.pointerEvents="none")));var Jt={};return j&&(Jt.dir="rtl"),d.createElement("div",ke({style:Z(Z({},f),{},{position:"relative"}),className:F},Jt,N),d.createElement(Lo,{onResize:Me},d.createElement(S,{className:"".concat(r,"-holder"),style:zt,ref:B,onScroll:rt,onMouseEnter:Ot},d.createElement(yT,{prefixCls:r,height:Be,offsetX:Y,offsetY:et,scrollWidth:b,onInnerResize:xe,ref:_,innerProps:I,rtl:j,extra:_t},Ct))),D&&Be>i&&d.createElement(wE,{ref:We,prefixCls:r,scrollOffset:A,scrollRange:Be,rtl:j,onScroll:Xe,onStartMove:oe,onStopMove:fe,spinSize:Ye,containerSize:Re.height,style:T==null?void 0:T.verticalScrollBar,thumbStyle:T==null?void 0:T.verticalScrollBarThumb}),D&&b&&d.createElement(wE,{ref:Le,prefixCls:r,scrollOffset:Y,scrollRange:b,rtl:j,onScroll:Xe,onStartMove:oe,onStopMove:fe,spinSize:je,containerSize:Re.width,horizontal:!0,style:T==null?void 0:T.horizontalScrollBar,thumbStyle:T==null?void 0:T.horizontalScrollBarThumb}))}var _v=d.forwardRef($H);_v.displayName="List";function IH(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var TH=["disabled","title","children","style","className"];function CE(e){return typeof e=="string"||typeof e=="number"}var PH=function(t,n){var r=cT(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,c=r.mode,f=r.searchValue,p=r.toggleOpen,v=r.notFoundContent,g=r.onPopupScroll,m=d.useContext(Xy),y=m.maxCount,b=m.flattenOptions,w=m.onActiveValue,S=m.defaultActiveFirstOption,C=m.onSelect,E=m.menuItemSelectedIcon,k=m.rawValues,I=m.fieldNames,$=m.virtual,T=m.direction,N=m.listHeight,P=m.listItemHeight,D=m.optionRender,j="".concat(o,"-item"),F=Ns(function(){return b},[a,b],function(ce,ee){return ee[0]&&ce[1]!==ee[1]}),z=d.useRef(null),B=d.useMemo(function(){return s&&typeof y<"u"&&(k==null?void 0:k.size)>=y},[s,y,k==null?void 0:k.size]),_=function(ee){ee.preventDefault()},H=function(ee){var ie;(ie=z.current)===null||ie===void 0||ie.scrollTo(typeof ee=="number"?{index:ee}:ee)},L=function(ee){for(var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,te=F.length,re=0;re<te;re+=1){var le=(ee+re*ie+te)%te,ge=F[le]||{},be=ge.group,Se=ge.data;if(!be&&!(Se!=null&&Se.disabled)&&!B)return le}return-1},A=d.useState(function(){return L(0)}),U=he(A,2),R=U[0],V=U[1],Y=function(ee){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;V(ee);var te={source:ie?"keyboard":"mouse"},re=F[ee];if(!re){w(null,-1,te);return}w(re.value,ee,te)};d.useEffect(function(){Y(S!==!1?L(0):-1)},[F.length,f]);var X=d.useCallback(function(ce){return k.has(ce)&&c!=="combobox"},[c,Ee(k).toString(),k.size]);d.useEffect(function(){var ce=setTimeout(function(){if(!s&&a&&k.size===1){var ie=Array.from(k)[0],te=F.findIndex(function(re){var le=re.data;return le.value===ie});te!==-1&&(Y(te),H(te))}});if(a){var ee;(ee=z.current)===null||ee===void 0||ee.scrollTo(void 0)}return function(){return clearTimeout(ce)}},[a,f]);var q=function(ee){ee!==void 0&&C(ee,{selected:!k.has(ee)}),s||p(!1)};if(d.useImperativeHandle(n,function(){return{onKeyDown:function(ee){var ie=ee.which,te=ee.ctrlKey;switch(ie){case Te.N:case Te.P:case Te.UP:case Te.DOWN:var re=0;if(ie===Te.UP?re=-1:ie===Te.DOWN?re=1:IH()&&te&&(ie===Te.N?re=1:ie===Te.P&&(re=-1)),re!==0){var le=L(R+re,re);H(le),Y(le,!0)}break;case Te.ENTER:var ge,be=F[R];be&&!(be!=null&&(ge=be.data)!==null&&ge!==void 0&&ge.disabled)&&!B?q(be.value):q(void 0),a&&ee.preventDefault();break;case Te.ESC:p(!1),a&&ee.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ee){H(ee)}}}),F.length===0)return d.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(j,"-empty"),onMouseDown:_},v);var G=Object.keys(I).map(function(ce){return I[ce]}),K=function(ee){return ee.label};function J(ce,ee){var ie=ce.group;return{role:ie?"presentation":"option",id:"".concat(i,"_list_").concat(ee)}}var oe=function(ee){var ie=F[ee];if(!ie)return null;var te=ie.data||{},re=te.value,le=ie.group,ge=Do(te,!0),be=K(ie);return ie?d.createElement("div",ke({"aria-label":typeof be=="string"&&!le?be:null},ge,{key:ee},J(ie,ee),{"aria-selected":X(re)}),re):null},fe={role:"listbox",id:"".concat(i,"_list")};return d.createElement(d.Fragment,null,$&&d.createElement("div",ke({},fe,{style:{height:0,width:0,overflow:"hidden"}}),oe(R-1),oe(R),oe(R+1)),d.createElement(_v,{itemKey:"key",ref:z,data:F,height:N,itemHeight:P,fullHeight:!1,onMouseDown:_,onScroll:g,virtual:$,direction:T,innerProps:$?null:fe},function(ce,ee){var ie,te=ce.group,re=ce.groupOption,le=ce.data,ge=ce.label,be=ce.value,Se=le.key;if(te){var pe,me=(pe=le.title)!==null&&pe!==void 0?pe:CE(ge)?ge.toString():void 0;return d.createElement("div",{className:ae(j,"".concat(j,"-group")),title:me},ge!==void 0?ge:Se)}var xe=le.disabled,Pe=le.title;le.children;var Ie=le.style,De=le.className,Be=jt(le,TH),qe=qn(Be,G),lt=X(be),et=xe||!lt&&B,He="".concat(j,"-option"),Fe=ae(j,He,De,(ie={},Q(ie,"".concat(He,"-grouped"),re),Q(ie,"".concat(He,"-active"),R===ee&&!et),Q(ie,"".concat(He,"-disabled"),et),Q(ie,"".concat(He,"-selected"),lt),ie)),Re=K(ce),ft=!E||typeof E=="function"||lt,Me=typeof Re=="number"?Re:Re||be,We=CE(Me)?Me.toString():void 0;return Pe!==void 0&&(We=Pe),d.createElement("div",ke({},Do(qe),$?{}:J(ce,ee),{"aria-selected":lt,className:Fe,title:We,onMouseMove:function(){R===ee||et||Y(ee)},onClick:function(){et||q(be)},style:Ie}),d.createElement("div",{className:"".concat(He,"-content")},typeof D=="function"?D(ce,{index:ee}):Me),d.isValidElement(E)||lt,ft&&d.createElement(Fv,{className:"".concat(j,"-option-state"),customizeIcon:E,customizeIconProps:{value:be,disabled:et,isSelected:lt}},lt?"✓":null))}))},MH=d.forwardRef(PH);const NH=function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var i=n.current,a=i.values,s=i.options,c=e.map(function(v){if(v.label===void 0){var g;return Z(Z({},v),{},{label:(g=a.get(v.value))===null||g===void 0?void 0:g.label})}return v}),f=new Map,p=new Map;return c.forEach(function(v){f.set(v.value,v),p.set(v.value,t.get(v.value)||s.get(v.value))}),n.current.values=f,n.current.options=p,c},[e,t]),o=d.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function ym(e,t){return hT(e).join("").toUpperCase().includes(t)}const RH=function(e,t,n,r,o){return d.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,s=t.value,c=[],f=typeof r=="function",p=n.toUpperCase(),v=f?r:function(m,y){return o?ym(y[o],p):y[i]?ym(y[a!=="children"?a:"label"],p):ym(y[s],p)},g=f?function(m){return ab(m)}:function(m){return m};return e.forEach(function(m){if(m[i]){var y=v(n,g(m));if(y)c.push(m);else{var b=m[i].filter(function(w){return v(n,g(w))});b.length&&c.push(Z(Z({},m),{},Q({},i,b)))}return}v(n,g(m))&&c.push(m)}),c},[e,r,o,n,t])};var EE=0,DH=sr();function jH(){var e;return DH?(e=EE,EE+=1):e="TEST_OR_SSR",e}function xT(e){var t=d.useState(),n=he(t,2),r=n[0],o=n[1];return d.useEffect(function(){o("rc_select_".concat(jH()))},[]),e||r}var LH=["children","value"],BH=["children"];function AH(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=jt(r,LH);return Z({key:n,value:i!==void 0?i:n,children:o},a)}function ST(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Yr(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,c=s.children,f=jt(s,BH);return t||!i?AH(n):Z(Z({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},f),{},{options:ST(c)})}).filter(function(n){return n})}var zH=function(t,n,r,o,i){return d.useMemo(function(){var a=t,s=!t;s&&(a=ST(n));var c=new Map,f=new Map,p=function(m,y,b){b&&typeof b=="string"&&m.set(y[b],y)},v=function g(m){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=0;b<m.length;b+=1){var w=m[b];!w[r.options]||y?(c.set(w[r.value],w),p(f,w,r.label),p(f,w,o),p(f,w,i)):g(w[r.options],!0)}};return v(a),{options:a,valueOptions:c,labelOptions:f}},[t,n,r,o,i])};function kE(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var FH=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange","maxCount"],HH=["inputValue"];function _H(e){return!e||Tt(e)!=="object"}var VH=d.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,s=e.fieldNames,c=e.inputValue,f=e.searchValue,p=e.onSearch,v=e.autoClearSearchValue,g=v===void 0?!0:v,m=e.onSelect,y=e.onDeselect,b=e.dropdownMatchSelectWidth,w=b===void 0?!0:b,S=e.filterOption,C=e.filterSort,E=e.optionFilterProp,k=e.optionLabelProp,I=e.options,$=e.optionRender,T=e.children,N=e.defaultActiveFirstOption,P=e.menuItemSelectedIcon,D=e.virtual,j=e.direction,F=e.listHeight,z=F===void 0?200:F,B=e.listItemHeight,_=B===void 0?20:B,H=e.value,L=e.defaultValue,A=e.labelInValue,U=e.onChange,R=e.maxCount,V=jt(e,FH),Y=xT(n),X=sb(r),q=!!(!I&&T),G=d.useMemo(function(){return S===void 0&&r==="combobox"?!1:S},[S,r]),K=d.useMemo(function(){return mT(s,q)},[JSON.stringify(s),q]),J=Fn("",{value:f!==void 0?f:c,postState:function(Ke){return Ke||""}}),oe=he(J,2),fe=oe[0],ce=oe[1],ee=zH(I,T,K,E,k),ie=ee.valueOptions,te=ee.labelOptions,re=ee.options,le=d.useCallback(function(tt){var Ke=hT(tt);return Ke.map(function(Ae){var xt,Nt,Ot,ot,at;if(_H(Ae))xt=Ae;else{var _t;Ot=Ae.key,Nt=Ae.label,xt=(_t=Ae.value)!==null&&_t!==void 0?_t:Ot}var Ct=ie.get(xt);if(Ct){var zt;Nt===void 0&&(Nt=Ct==null?void 0:Ct[k||K.label]),Ot===void 0&&(Ot=(zt=Ct==null?void 0:Ct.key)!==null&&zt!==void 0?zt:xt),ot=Ct==null?void 0:Ct.disabled,at=Ct==null?void 0:Ct.title}return{label:Nt,value:xt,key:Ot,disabled:ot,title:at}})},[K,k,ie]),ge=Fn(L,{value:H}),be=he(ge,2),Se=be[0],pe=be[1],me=d.useMemo(function(){var tt,Ke=X&&Se===null?[]:Se,Ae=le(Ke);return r==="combobox"&&LF((tt=Ae[0])===null||tt===void 0?void 0:tt.value)?[]:Ae},[Se,le,r,X]),xe=NH(me,ie),Pe=he(xe,2),Ie=Pe[0],De=Pe[1],Be=d.useMemo(function(){if(!r&&Ie.length===1){var tt=Ie[0];if(tt.value===null&&(tt.label===null||tt.label===void 0))return[]}return Ie.map(function(Ke){var Ae;return Z(Z({},Ke),{},{label:(Ae=Ke.label)!==null&&Ae!==void 0?Ae:Ke.value})})},[r,Ie]),qe=d.useMemo(function(){return new Set(Ie.map(function(tt){return tt.value}))},[Ie]);d.useEffect(function(){if(r==="combobox"){var tt,Ke=(tt=Ie[0])===null||tt===void 0?void 0:tt.value;ce(jF(Ke)?String(Ke):"")}},[Ie]);var lt=kE(function(tt,Ke){var Ae,xt=Ke??tt;return Ae={},Q(Ae,K.value,tt),Q(Ae,K.label,xt),Ae}),et=d.useMemo(function(){if(r!=="tags")return re;var tt=Ee(re),Ke=function(xt){return ie.has(xt)};return Ee(Ie).sort(function(Ae,xt){return Ae.value<xt.value?-1:1}).forEach(function(Ae){var xt=Ae.value;Ke(xt)||tt.push(lt(xt,Ae.label))}),tt},[lt,re,ie,Ie,r]),He=RH(et,K,fe,G,E),Fe=d.useMemo(function(){return r!=="tags"||!fe||He.some(function(tt){return tt[E||"value"]===fe})||He.some(function(tt){return tt[K.value]===fe})?He:[lt(fe)].concat(Ee(He))},[lt,E,r,He,fe,K]),Re=d.useMemo(function(){return C?Ee(Fe).sort(function(tt,Ke){return C(tt,Ke)}):Fe},[Fe,C]),ft=d.useMemo(function(){return sH(Re,{fieldNames:K,childrenAsData:q})},[Re,K,q]),Me=function(Ke){var Ae=le(Ke);if(pe(Ae),U&&(Ae.length!==Ie.length||Ae.some(function(Ot,ot){var at;return((at=Ie[ot])===null||at===void 0?void 0:at.value)!==(Ot==null?void 0:Ot.value)}))){var xt=A?Ae:Ae.map(function(Ot){return Ot.value}),Nt=Ae.map(function(Ot){return ab(De(Ot.value))});U(X?xt:xt[0],X?Nt:Nt[0])}},We=d.useState(null),Le=he(We,2),je=Le[0],Ye=Le[1],mt=d.useState(0),bt=he(mt,2),Oe=bt[0],Ge=bt[1],ct=N!==void 0?N:r!=="combobox",Mt=d.useCallback(function(tt,Ke){var Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},xt=Ae.source,Nt=xt===void 0?"keyboard":xt;Ge(Ke),a&&r==="combobox"&&tt!==null&&Nt==="keyboard"&&Ye(String(tt))},[a,r]),ut=function(Ke,Ae,xt){var Nt=function(){var Rt,Ft=De(Ke);return[A?{label:Ft==null?void 0:Ft[K.label],value:Ke,key:(Rt=Ft==null?void 0:Ft.key)!==null&&Rt!==void 0?Rt:Ke}:Ke,ab(Ft)]};if(Ae&&m){var Ot=Nt(),ot=he(Ot,2),at=ot[0],_t=ot[1];m(at,_t)}else if(!Ae&&y&&xt!=="clear"){var Ct=Nt(),zt=he(Ct,2),Jt=zt[0],st=zt[1];y(Jt,st)}},ze=kE(function(tt,Ke){var Ae,xt=X?Ke.selected:!0;xt?Ae=X?[].concat(Ee(Ie),[tt]):[tt]:Ae=Ie.filter(function(Nt){return Nt.value!==tt}),Me(Ae),ut(tt,xt),r==="combobox"?Ye(""):(!sb||g)&&(ce(""),Ye(""))}),Qe=function(Ke,Ae){Me(Ke);var xt=Ae.type,Nt=Ae.values;(xt==="remove"||xt==="clear")&&Nt.forEach(function(Ot){ut(Ot.value,!1,xt)})},Xe=function(Ke,Ae){if(ce(Ke),Ye(null),Ae.source==="submit"){var xt=(Ke||"").trim();if(xt){var Nt=Array.from(new Set([].concat(Ee(qe),[xt])));Me(Nt),ut(xt,!0),ce("")}return}Ae.source!=="blur"&&(r==="combobox"&&Me(Ke),p==null||p(Ke))},rt=function(Ke){var Ae=Ke;r!=="tags"&&(Ae=Ke.map(function(Nt){var Ot=te.get(Nt);return Ot==null?void 0:Ot.value}).filter(function(Nt){return Nt!==void 0}));var xt=Array.from(new Set([].concat(Ee(qe),Ee(Ae))));Me(xt),xt.forEach(function(Nt){ut(Nt,!0)})},it=d.useMemo(function(){var tt=D!==!1&&w!==!1;return Z(Z({},ee),{},{flattenOptions:ft,onActiveValue:Mt,defaultActiveFirstOption:ct,onSelect:ze,menuItemSelectedIcon:P,rawValues:qe,fieldNames:K,virtual:tt,direction:j,listHeight:z,listItemHeight:_,childrenAsData:q,maxCount:R,optionRender:$})},[R,ee,ft,Mt,ct,ze,P,qe,K,D,w,j,z,_,q,$]);return d.createElement(Xy.Provider,{value:it},d.createElement(bT,ke({},V,{id:Y,prefixCls:i,ref:t,omitDomProps:HH,mode:r,displayValues:Be,onDisplayValuesChange:Qe,direction:j,searchValue:fe,onSearch:Xe,autoClearSearchValue:g,onSearchSplit:rt,dropdownMatchSelectWidth:w,OptionList:MH,emptyOptions:!ft.length,activeValue:je,activeDescendantId:"".concat(Y,"_list_").concat(Oe)})))}),Qy=VH;Qy.Option=Yy;Qy.OptGroup=Gy;function Yu(e,t,n){return ae({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Vv=(e,t)=>t||e,WH=()=>{const[,e]=tr(),n=new En(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),d.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),d.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),d.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),d.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},UH=WH,KH=()=>{const[,e]=tr(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:a,contentColor:s}=d.useMemo(()=>({borderColor:new En(t).onBackground(o).toHexShortString(),shadowColor:new En(n).onBackground(o).toHexShortString(),contentColor:new En(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:a,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:i},d.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),d.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},qH=KH,XH=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},GH=jn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=un(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[XH(o)]});var YH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const CT=d.createElement(UH,null),ET=d.createElement(qH,null),Zy=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=CT,description:i,children:a,imageStyle:s,style:c}=e,f=YH(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:p,direction:v,empty:g}=d.useContext(kt),m=p("empty",r),[y,b,w]=GH(m),[S]=Ji("Empty"),C=typeof i<"u"?i:S==null?void 0:S.description,E=typeof C=="string"?C:"empty";let k=null;return typeof o=="string"?k=d.createElement("img",{alt:E,src:o}):k=o,y(d.createElement("div",Object.assign({className:ae(b,w,m,g==null?void 0:g.className,{[`${m}-normal`]:o===ET,[`${m}-rtl`]:v==="rtl"},t,n),style:Object.assign(Object.assign({},g==null?void 0:g.style),c)},f),d.createElement("div",{className:`${m}-image`,style:s},k),C&&d.createElement("div",{className:`${m}-description`},C),a&&d.createElement("div",{className:`${m}-footer`},a)))};Zy.PRESENTED_IMAGE_DEFAULT=CT;Zy.PRESENTED_IMAGE_SIMPLE=ET;const ds=Zy,QH=e=>{const{componentName:t}=e,{getPrefixCls:n}=d.useContext(kt),r=n("empty");switch(t){case"Table":case"List":return de.createElement(ds,{image:ds.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return de.createElement(ds,{image:ds.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return de.createElement(ds,null)}},Wv=QH,ZH=["outlined","borderless","filled"],Uv=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const n=d.useContext(VI);let r;typeof e<"u"?r=e:t===!1?r="borderless":r=n??"outlined";const o=ZH.includes(r);return[r,o]},JH=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function kT(e,t){return e||JH(t)}const e_=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},t_=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},$n(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
${o}${s}bottomLeft,
${i}${s}bottomLeft
`]:{animationName:_y},[`
${o}${s}topLeft,
${i}${s}topLeft,
${o}${s}topRight,
${i}${s}topRight
`]:{animationName:Wy},[`${a}${s}bottomLeft`]:{animationName:Vy},[`
${a}${s}topLeft,
${a}${s}topRight
`]:{animationName:Uy},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},e_(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},za),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}}}),"&-rtl":{direction:"rtl"}})},Kl(e,"slide-up"),Kl(e,"slide-down"),Kp(e,"move-up"),Kp(e,"move-down")]},dl=2,n_=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()};function wm(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=n_(e),s=t?`${n}-${t}`:"";return{[`${n}-multiple${s}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(dl).mul(2).equal(),paddingBlock:e.calc(a).sub(dl).equal(),borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${se(dl)} 0`,lineHeight:se(i),visibility:"hidden",content:'"\\a0"'}},[`
&${n}-show-arrow ${n}-selector,
&${n}-allow-clear ${n}-selector
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:dl,marginBottom:dl,lineHeight:se(e.calc(i).sub(e.calc(e.lineWidth).mul(2)).equal()),borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:e.calc(dl).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Ov()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:se(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const r_=e=>{const{componentCls:t}=e,n=un(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=un(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[wm(e),wm(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},wm(r,"lg")]};function xm(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},$n(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${n}-selection-item,
${n}-selection-placeholder
`]:{padding:0,lineHeight:se(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${n}-show-arrow ${n}-selection-item,
&${n}-show-arrow ${n}-selection-placeholder
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${se(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:se(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${se(r)}`,"&:after":{display:"none"}}}}}}}function o_(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[xm(e),xm(un(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${se(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
&${t}-show-arrow ${t}-selection-item,
&${t}-show-arrow ${t}-selection-placeholder
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},xm(un(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const i_=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:i,colorText:a,fontWeightStrong:s,controlItemBgActive:c,controlItemBgHover:f,colorBgContainer:p,colorFillSecondary:v,controlHeightLG:g,controlHeightSM:m,colorBgContainerDisabled:y,colorTextDisabled:b}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:s,optionSelectedBg:c,optionActiveBg:f,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:p,clearBg:p,singleItemHeightLG:g,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:m,multipleItemHeightLG:r,multipleSelectorBgDisabled:y,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25)}},OT=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${se(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${se(o)} ${t.activeShadowColor}`,outline:0}}}},OE=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},OT(e,t))}),a_=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},OT(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),OE(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),OE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${se(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),$T=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${se(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},$E=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},$T(e,t))}),s_=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},$T(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),$E(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),$E(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),l_=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${se(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),c_=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},a_(e)),s_(e)),l_(e))}),u_=c_,d_=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},f_=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},p_=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},$n(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},d_(e)),f_(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},za),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},za),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Ov()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},v_=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},p_(e),o_(e),r_(e),t_(e),{[`${t}-rtl`]:{direction:"rtl"}},Bv(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},IT=jn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=un(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[v_(r),u_(r)]},i_,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var h_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const g_=h_;var m_=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:g_}))};const Jy=d.forwardRef(m_);var b_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const y_=b_;var w_=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:y_}))};const TT=d.forwardRef(w_);var x_={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 S_=x_;var C_=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:S_}))};const ew=d.forwardRef(C_);function PT(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:c,showSuffixIcon:f,feedbackIcon:p,showArrow:v,componentName:g}=e;const m=n??d.createElement(rc,null),y=C=>t===null&&!s&&!v?null:d.createElement(d.Fragment,null,f!==!1&&C,s&&p);let b=null;if(t!==void 0)b=y(t);else if(i)b=y(d.createElement(ks,{spin:!0}));else{const C=`${c}-suffix`;b=E=>{let{open:k,showSearch:I}=E;return y(k&&I?d.createElement(ew,{className:C}):d.createElement(TT,{className:C}))}}let w=null;r!==void 0?w=r:a?w=d.createElement(Jy,null):w=null;let S=null;return o!==void 0?S=o:S=d.createElement(oc,null),{clearIcon:m,suffixIcon:b,itemIcon:w,removeIcon:S}}function MT(e,t){return t!==void 0?t:e!==null}var E_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const NT="SECRET_COMBOBOX_MODE_DO_NOT_USE",k_=(e,t)=>{var n;const{prefixCls:r,bordered:o,className:i,rootClassName:a,getPopupContainer:s,popupClassName:c,dropdownClassName:f,listHeight:p=256,placement:v,listItemHeight:g,size:m,disabled:y,notFoundContent:b,status:w,builtinPlacements:S,dropdownMatchSelectWidth:C,popupMatchSelectWidth:E,direction:k,style:I,allowClear:$,variant:T,dropdownStyle:N,transitionName:P,tagRender:D,maxCount:j}=e,F=E_(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:z,getPrefixCls:B,renderEmpty:_,direction:H,virtual:L,popupMatchSelectWidth:A,popupOverflow:U,select:R}=d.useContext(kt),[,V]=tr(),Y=g??(V==null?void 0:V.controlHeight),X=B("select",r),q=B(),G=k??H,{compactSize:K,compactItemClassnames:J}=ac(X,G),[oe,fe]=Uv(T,o),ce=br(X),[ee,ie,te]=IT(X,ce),re=d.useMemo(()=>{const{mode:Ye}=e;if(Ye!=="combobox")return Ye===NT?"combobox":Ye},[e.mode]),le=re==="multiple"||re==="tags",ge=MT(e.suffixIcon,e.showArrow),be=(n=E??C)!==null&&n!==void 0?n:A,{status:Se,hasFeedback:pe,isFormItemInput:me,feedbackIcon:xe}=d.useContext(Qr),Pe=Vv(Se,w);let Ie;b!==void 0?Ie=b:re==="combobox"?Ie=null:Ie=(_==null?void 0:_("Select"))||d.createElement(Wv,{componentName:"Select"});const{suffixIcon:De,itemIcon:Be,removeIcon:qe,clearIcon:lt}=PT(Object.assign(Object.assign({},F),{multiple:le,hasFeedback:pe,feedbackIcon:xe,showSuffixIcon:ge,prefixCls:X,componentName:"Select"})),et=$===!0?{clearIcon:lt}:$,He=qn(F,["suffixIcon","itemIcon"]),Fe=ae(c||f,{[`${X}-dropdown-${G}`]:G==="rtl"},a,te,ce,ie),Re=ii(Ye=>{var mt;return(mt=m??K)!==null&&mt!==void 0?mt:Ye}),ft=d.useContext(Ei),Me=y??ft,We=ae({[`${X}-lg`]:Re==="large",[`${X}-sm`]:Re==="small",[`${X}-rtl`]:G==="rtl",[`${X}-${oe}`]:fe,[`${X}-in-form-item`]:me},Yu(X,Pe,pe),J,R==null?void 0:R.className,i,a,te,ce,ie),Le=d.useMemo(()=>v!==void 0?v:G==="rtl"?"bottomRight":"bottomLeft",[v,G]),[je]=ic("SelectLike",N==null?void 0:N.zIndex);return ee(d.createElement(Qy,Object.assign({ref:t,virtual:L,showSearch:R==null?void 0:R.showSearch},He,{style:Object.assign(Object.assign({},R==null?void 0:R.style),I),dropdownMatchSelectWidth:be,transitionName:Ui(q,"slide-up",P),builtinPlacements:kT(S,U),listHeight:p,listItemHeight:Y,mode:re,prefixCls:X,placement:Le,direction:G,suffixIcon:De,menuItemSelectedIcon:Be,removeIcon:qe,allowClear:et,notFoundContent:Ie,className:We,getPopupContainer:s||z,dropdownClassName:Fe,disabled:Me,dropdownStyle:Object.assign(Object.assign({},N),{zIndex:je}),maxCount:le?j:void 0,tagRender:le?D:void 0})))},lc=d.forwardRef(k_),O_=qy(lc);lc.SECRET_COMBOBOX_MODE_DO_NOT_USE=NT;lc.Option=Yy;lc.OptGroup=Gy;lc._InternalPanelDoNotUseOrYouWillBeFired=O_;const cc=lc,Qu=["xxl","xl","lg","md","sm","xs"],$_=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)`}),I_=e=>{const t=e,n=[].concat(Qu).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,s=`screen${i}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(o<n.length-1){const c=`screen${i}Max`;if(!(t[s]<=t[c]))throw new Error(`${s}<=${c} fails : !(${t[s]}<=${t[c]})`);const p=`screen${n[o+1].toUpperCase()}Min`;if(!(t[c]<=t[p]))throw new Error(`${c}<=${p} fails : !(${t[c]}<=${t[p]})`)}}),e};function RT(){const[,e]=tr(),t=$_(I_(e));return de.useMemo(()=>{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],s=f=>{let{matches:p}=f;this.dispatch(Object.assign(Object.assign({},o),{[i]:p}))},c=window.matchMedia(a);c.addListener(s),this.matchHandlers[a]={mql:c,listener:s},s(c)})},responsiveMap:t}},[e])}function tw(){const[,e]=d.useReducer(t=>t+1,0);return e}function DT(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=d.useRef({}),n=tw(),r=RT();return on(()=>{const o=r.subscribe(i=>{t.current=i,e&&n()});return()=>r.unsubscribe(o)},[]),t.current}const ql=e=>e?typeof e=="function"?e():e:null;function nw(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return d.createElement("div",{className:ae("".concat(n,"-content"),i),style:a},d.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var fl={shiftX:64,adjustY:1},pl={adjustX:1,shiftY:!0},So=[0,0],T_={left:{points:["cr","cl"],overflow:pl,offset:[-4,0],targetOffset:So},right:{points:["cl","cr"],overflow:pl,offset:[4,0],targetOffset:So},top:{points:["bc","tc"],overflow:fl,offset:[0,-4],targetOffset:So},bottom:{points:["tc","bc"],overflow:fl,offset:[0,4],targetOffset:So},topLeft:{points:["bl","tl"],overflow:fl,offset:[0,-4],targetOffset:So},leftTop:{points:["tr","tl"],overflow:pl,offset:[-4,0],targetOffset:So},topRight:{points:["br","tr"],overflow:fl,offset:[0,-4],targetOffset:So},rightTop:{points:["tl","tr"],overflow:pl,offset:[4,0],targetOffset:So},bottomRight:{points:["tr","br"],overflow:fl,offset:[0,4],targetOffset:So},rightBottom:{points:["bl","br"],overflow:pl,offset:[4,0],targetOffset:So},bottomLeft:{points:["tl","bl"],overflow:fl,offset:[0,4],targetOffset:So},leftBottom:{points:["br","bl"],overflow:pl,offset:[-4,0],targetOffset:So}},P_=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],M_=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,c=t.mouseLeaveDelay,f=c===void 0?.1:c,p=t.overlayStyle,v=t.prefixCls,g=v===void 0?"rc-tooltip":v,m=t.children,y=t.onVisibleChange,b=t.afterVisibleChange,w=t.transitionName,S=t.animation,C=t.motion,E=t.placement,k=E===void 0?"right":E,I=t.align,$=I===void 0?{}:I,T=t.destroyTooltipOnHide,N=T===void 0?!1:T,P=t.defaultVisible,D=t.getTooltipContainer,j=t.overlayInnerStyle;t.arrowContent;var F=t.overlay,z=t.id,B=t.showArrow,_=B===void 0?!0:B,H=jt(t,P_),L=d.useRef(null);d.useImperativeHandle(n,function(){return L.current});var A=Z({},H);"visible"in t&&(A.popupVisible=t.visible);var U=function(){return d.createElement(nw,{key:"content",prefixCls:g,id:z,overlayInnerStyle:j},F)};return d.createElement(Hv,ke({popupClassName:r,prefixCls:g,popup:U,action:i,builtinPlacements:T_,popupPlacement:k,ref:L,popupAlign:$,getPopupContainer:D,onPopupVisibleChange:y,afterPopupVisibleChange:b,popupTransitionName:w,popupAnimation:S,popupMotion:C,defaultPopupVisible:P,autoDestroy:N,mouseLeaveDelay:f,popupStyle:p,mouseEnterDelay:s,arrow:_},A),m)};const N_=d.forwardRef(M_);function rw(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,s=r*1/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),f=o-n*(1/Math.sqrt(2)),p=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),v=2*o-f,g=p,m=2*o-s,y=c,b=2*o-i,w=a,S=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),C=r*(Math.sqrt(2)-1),E=`polygon(${C}px 100%, 50% ${C}px, ${2*o-C}px 100%, ${C}px 100%)`,k=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${s} ${c} L ${f} ${p} A ${n} ${n} 0 0 1 ${v} ${g} L ${m} ${y} A ${r} ${r} 0 0 0 ${b} ${w} Z')`;return{arrowShadowWidth:S,arrowPath:k,arrowPolygon:E}}const R_=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${se(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},jT=8;function Kv(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?jT:r}}function Wf(e,t){return e?t:{}}function ow(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},R_(e,t,o)),{"&:before":{background:t}})]},Wf(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),Wf(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),Wf(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Wf(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function D_(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const IE={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"]}},j_={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"]}},L_=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function LT(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,c={};return Object.keys(IE).forEach(f=>{const p=r&&j_[f]||IE[f],v=Object.assign(Object.assign({},p),{offset:[0,0],dynamicInset:!0});switch(c[f]=v,L_.has(f)&&(v.autoArrow=!1),f){case"top":case"topLeft":case"topRight":v.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":v.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":v.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":v.offset[0]=s+o;break}const g=Kv({contentRadius:i,limitVerticalRadius:!0});if(r)switch(f){case"topLeft":case"bottomLeft":v.offset[0]=-g.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":v.offset[0]=g.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":v.offset[1]=-g.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":v.offset[1]=g.arrowOffsetHorizontal+s;break}v.overflow=D_(f,g,t,n),a&&(v.htmlRegion="visibleFirst")}),c}const B_=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:c,paddingSM:f,paddingXS:p}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${se(e.calc(f).div(2).equal())} ${se(p)}`,color:r,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,jT)}},[`${t}-content`]:{position:"relative"}}),q$(e,(v,g)=>{let{darkColor:m}=g;return{[`&${t}-${v}`]:{[`${t}-inner`]:{backgroundColor:m},[`${t}-arrow`]:{"--antd-arrow-background-color":m}}}})),{"&-rtl":{direction:"rtl"}})},ow(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},A_=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Kv({contentRadius:e.borderRadius,limitVerticalRadius:!0})),rw(un(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),BT=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return jn("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,s=un(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[B_(s),hd(r,"zoom-big-fast")]},A_,{resetStyle:!1,injectStyle:t})(e)},z_=_u.map(e=>`${e}-inverse`),F_=["success","processing","error","default","warning"];function AT(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ee(z_),Ee(_u)).includes(e):_u.includes(e)}function H_(e){return F_.includes(e)}function zT(e,t){const n=AT(t),r=ae({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const __=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=d.useContext(kt),c=s("tooltip",t),[f,p,v]=BT(c),g=zT(c,i),m=g.arrowStyle,y=Object.assign(Object.assign({},a),g.overlayStyle),b=ae(p,v,c,`${c}-pure`,`${c}-placement-${r}`,n,g.className);return f(d.createElement("div",{className:b,style:m},d.createElement("div",{className:`${c}-arrow`}),d.createElement(nw,Object.assign({},e,{className:p,prefixCls:c,overlayInnerStyle:y}),o)))},V_=__;var W_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const FT=d.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:s,color:c,overlayInnerStyle:f,children:p,afterOpenChange:v,afterVisibleChange:g,destroyTooltipOnHide:m,arrow:y=!0,title:b,overlay:w,builtinPlacements:S,arrowPointAtCenter:C=!1,autoAdjustOverflow:E=!0}=e,k=!!y,[,I]=tr(),{getPopupContainer:$,getPrefixCls:T,direction:N}=d.useContext(kt),P=Ds(),D=d.useRef(null),j=()=>{var Ie;(Ie=D.current)===null||Ie===void 0||Ie.forceAlign()};d.useImperativeHandle(t,()=>({forceAlign:j,forcePopupAlign:()=>{P.deprecated(!1,"forcePopupAlign","forceAlign"),j()}}));const[F,z]=Fn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),B=!b&&!w&&b!==0,_=Ie=>{var De,Be;z(B?!1:Ie),B||((De=e.onOpenChange)===null||De===void 0||De.call(e,Ie),(Be=e.onVisibleChange)===null||Be===void 0||Be.call(e,Ie))},H=d.useMemo(()=>{var Ie,De;let Be=C;return typeof y=="object"&&(Be=(De=(Ie=y.pointAtCenter)!==null&&Ie!==void 0?Ie:y.arrowPointAtCenter)!==null&&De!==void 0?De:C),S||LT({arrowPointAtCenter:Be,autoAdjustOverflow:E,arrowWidth:k?I.sizePopupArrow:0,borderRadius:I.borderRadius,offset:I.marginXXS,visibleFirst:!0})},[C,y,S,I]),L=d.useMemo(()=>b===0?b:w||b||"",[w,b]),A=d.createElement(Uu,null,typeof L=="function"?L():L),{getPopupContainer:U,placement:R="top",mouseEnterDelay:V=.1,mouseLeaveDelay:Y=.1,overlayStyle:X,rootClassName:q}=e,G=W_(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),K=T("tooltip",o),J=T(),oe=e["data-popover-inject"];let fe=F;!("open"in e)&&!("visible"in e)&&B&&(fe=!1);const ce=Ar(p)&&!fI(p)?p:d.createElement("span",null,p),ee=ce.props,ie=!ee.className||typeof ee.className=="string"?ae(ee.className,i||`${K}-open`):ee.className,[te,re,le]=BT(K,!oe),ge=zT(K,c),be=ge.arrowStyle,Se=Object.assign(Object.assign({},f),ge.overlayStyle),pe=ae(s,{[`${K}-rtl`]:N==="rtl"},ge.className,q,re,le),[me,xe]=ic("Tooltip",G.zIndex),Pe=d.createElement(N_,Object.assign({},G,{zIndex:me,showArrow:k,placement:R,mouseEnterDelay:V,mouseLeaveDelay:Y,prefixCls:K,overlayClassName:pe,overlayStyle:Object.assign(Object.assign({},be),X),getTooltipContainer:U||a||$,ref:D,builtinPlacements:H,overlay:A,visible:fe,onVisibleChange:_,afterVisibleChange:v??g,overlayInnerStyle:Se,arrowContent:d.createElement("span",{className:`${K}-arrow-content`}),motion:{motionName:Ui(J,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),fe?mr(ce,{className:ie}):ce);return te(d.createElement(Nv.Provider,{value:xe},Pe))});FT._InternalPanelDoNotUseOrYouWillBeFired=V_;const Xi=FT,U_=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:f,titleMarginBottom:p,colorBgElevated:v,popoverBg:g,titleBorderBottom:m,innerContentPadding:y,titlePadding:b}=e;return[{[t]:Object.assign(Object.assign({},$n(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:f,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":v,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:g,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:p,color:s,fontWeight:o,borderBottom:m,padding:b},[`${t}-inner-content`]:{color:n,padding:y}})},ow(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},K_=e=>{const{componentCls:t}=e;return{[t]:_u.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},q_=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:c,lineType:f,colorSplit:p,paddingSM:v}=e,g=n-r,m=g/2,y=g/2-t,b=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},rw(e)),Kv({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:c,titlePadding:i?`${m}px ${b}px ${y}px`:0,titleBorderBottom:i?`${t}px ${f} ${p}`:"none",innerContentPadding:i?`${v}px ${b}px`:0})},HT=jn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=un(e,{popoverBg:t,popoverColor:n});return[U_(r),K_(r),hd(r,"zoom-big")]},q_,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var X_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const G_=(e,t,n)=>!t&&!n?null:d.createElement(d.Fragment,null,t&&d.createElement("div",{className:`${e}-title`},ql(t)),d.createElement("div",{className:`${e}-inner-content`},ql(n))),Y_=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:c}=e;return d.createElement("div",{className:ae(t,n,`${n}-pure`,`${n}-placement-${i}`,r),style:o},d.createElement("div",{className:`${n}-arrow`}),d.createElement(nw,Object.assign({},e,{className:t,prefixCls:n}),c||G_(n,a,s)))},Q_=e=>{const{prefixCls:t,className:n}=e,r=X_(e,["prefixCls","className"]),{getPrefixCls:o}=d.useContext(kt),i=o("popover",t),[a,s,c]=HT(i);return a(d.createElement(Y_,Object.assign({},r,{prefixCls:i,hashId:s,className:ae(n,c)})))},_T=Q_;var Z_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const J_=e=>{let{title:t,content:n,prefixCls:r}=e;return d.createElement(d.Fragment,null,t&&d.createElement("div",{className:`${r}-title`},ql(t)),d.createElement("div",{className:`${r}-inner-content`},ql(n)))},VT=d.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:o,overlayClassName:i,placement:a="top",trigger:s="hover",mouseEnterDelay:c=.1,mouseLeaveDelay:f=.1,overlayStyle:p={}}=e,v=Z_(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:g}=d.useContext(kt),m=g("popover",n),[y,b,w]=HT(m),S=g(),C=ae(i,b,w);return y(d.createElement(Xi,Object.assign({placement:a,trigger:s,mouseEnterDelay:c,mouseLeaveDelay:f,overlayStyle:p},v,{prefixCls:m,overlayClassName:C,ref:t,overlay:r||o?d.createElement(J_,{prefixCls:m,title:r,content:o}):null,transitionName:Ui(S,"zoom-big",v.transitionName),"data-popover-inject":!0})))});VT._InternalPanelDoNotUseOrYouWillBeFired=_T;const e9=VT;var t9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const n9=t9;var r9=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:n9}))};const Xp=d.forwardRef(r9);var o9=Te.ESC,i9=Te.TAB;function a9(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=d.useRef(!1),s=function(){if(t){var v,g;(v=n.current)===null||v===void 0||(g=v.focus)===null||g===void 0||g.call(v),r==null||r(!1)}},c=function(){var v;return(v=i.current)!==null&&v!==void 0&&v.focus?(i.current.focus(),a.current=!0,!0):!1},f=function(v){switch(v.keyCode){case o9:s();break;case i9:var g=!1;a.current||(g=c()),g?v.preventDefault():s();break}};d.useEffect(function(){return t?(window.addEventListener("keydown",f),o&&vn(c,3),function(){window.removeEventListener("keydown",f),a.current=!1}):function(){a.current=!1}},[t])}var s9=d.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=d.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=Zr(t,i==null?void 0:i.ref);return de.createElement(de.Fragment,null,r&&de.createElement("div",{className:"".concat(o,"-arrow")}),de.cloneElement(i,{ref:ti(i)?a:void 0}))}),vl={adjustX:1,adjustY:1},hl=[0,0],l9={topLeft:{points:["bl","tl"],overflow:vl,offset:[0,-4],targetOffset:hl},top:{points:["bc","tc"],overflow:vl,offset:[0,-4],targetOffset:hl},topRight:{points:["br","tr"],overflow:vl,offset:[0,-4],targetOffset:hl},bottomLeft:{points:["tl","bl"],overflow:vl,offset:[0,4],targetOffset:hl},bottom:{points:["tc","bc"],overflow:vl,offset:[0,4],targetOffset:hl},bottomRight:{points:["tr","br"],overflow:vl,offset:[0,4],targetOffset:hl}},c9=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function u9(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,s=e.transitionName,c=e.animation,f=e.align,p=e.placement,v=p===void 0?"bottomLeft":p,g=e.placements,m=g===void 0?l9:g,y=e.getPopupContainer,b=e.showAction,w=e.hideAction,S=e.overlayClassName,C=e.overlayStyle,E=e.visible,k=e.trigger,I=k===void 0?["hover"]:k,$=e.autoFocus,T=e.overlay,N=e.children,P=e.onVisibleChange,D=jt(e,c9),j=de.useState(),F=he(j,2),z=F[0],B=F[1],_="visible"in e?E:z,H=de.useRef(null),L=de.useRef(null),A=de.useRef(null);de.useImperativeHandle(t,function(){return H.current});var U=function(oe){B(oe),P==null||P(oe)};a9({visible:_,triggerRef:A,onVisibleChange:U,autoFocus:$,overlayRef:L});var R=function(oe){var fe=e.onOverlayClick;B(!1),fe&&fe(oe)},V=function(){return de.createElement(s9,{ref:L,overlay:T,prefixCls:a,arrow:o})},Y=function(){return typeof T=="function"?V:V()},X=function(){var oe=e.minOverlayWidthMatchTrigger,fe=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?oe:!fe},q=function(){var oe=e.openClassName;return oe!==void 0?oe:"".concat(a,"-open")},G=de.cloneElement(N,{className:ae((n=N.props)===null||n===void 0?void 0:n.className,_&&q()),ref:ti(N)?Zr(A,N.ref):void 0}),K=w;return!K&&I.indexOf("contextMenu")!==-1&&(K=["click"]),de.createElement(Hv,ke({builtinPlacements:m},D,{prefixCls:a,ref:H,popupClassName:ae(S,Q({},"".concat(a,"-show-arrow"),o)),popupStyle:C,action:I,showAction:b,hideAction:K,popupPlacement:v,popupAlign:f,popupTransitionName:s,popupAnimation:c,popupVisible:_,stretch:X()?"minWidth":"",popup:Y(),onPopupVisibleChange:U,onPopupClick:R,getPopupContainer:y}),G)}const d9=de.forwardRef(u9);var WT=d.createContext(null);function UT(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function KT(e){var t=d.useContext(WT);return UT(t,e)}var f9=["children","locked"],ri=d.createContext(null);function p9(e,t){var n=Z({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Zu(e){var t=e.children,n=e.locked,r=jt(e,f9),o=d.useContext(ri),i=Ns(function(){return p9(o,r)},[o,r],function(a,s){return!n&&(a[0]!==s[0]||!Vi(a[1],s[1],!0))});return d.createElement(ri.Provider,{value:i},t)}var v9=[],qT=d.createContext(null);function qv(){return d.useContext(qT)}var XT=d.createContext(v9);function uc(e){var t=d.useContext(XT);return d.useMemo(function(){return e!==void 0?[].concat(Ee(t),[e]):t},[t,e])}var GT=d.createContext(null),iw=d.createContext({});function TE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(fd(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function h9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ee(e.querySelectorAll("*")).filter(function(r){return TE(r,t)});return TE(e,t)&&n.unshift(e),n}var lb=Te.LEFT,cb=Te.RIGHT,ub=Te.UP,Cp=Te.DOWN,Ep=Te.ENTER,YT=Te.ESC,Qc=Te.HOME,Zc=Te.END,PE=[ub,Cp,lb,cb];function g9(e,t,n,r){var o,i,a,s,c="prev",f="next",p="children",v="parent";if(e==="inline"&&r===Ep)return{inlineTrigger:!0};var g=(o={},Q(o,ub,c),Q(o,Cp,f),o),m=(i={},Q(i,lb,n?f:c),Q(i,cb,n?c:f),Q(i,Cp,p),Q(i,Ep,p),i),y=(a={},Q(a,ub,c),Q(a,Cp,f),Q(a,Ep,p),Q(a,YT,v),Q(a,lb,n?p:v),Q(a,cb,n?v:p),a),b={inline:g,horizontal:m,vertical:y,inlineSub:g,horizontalSub:y,verticalSub:y},w=(s=b["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[r];switch(w){case c:return{offset:-1,sibling:!0};case f:return{offset:1,sibling:!0};case v:return{offset:-1,sibling:!1};case p:return{offset:1,sibling:!1};default:return null}}function m9(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function b9(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function aw(e,t){var n=h9(e,!0);return n.filter(function(r){return t.has(r)})}function ME(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=aw(e,t),i=o.length,a=o.findIndex(function(s){return n===s});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var db=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(UT(n,a),"']"));s&&(r.add(s),i.set(s,a),o.set(a,s))}),{elements:r,key2element:o,element2key:i}};function y9(e,t,n,r,o,i,a,s,c,f){var p=d.useRef(),v=d.useRef();v.current=t;var g=function(){vn.cancel(p.current)};return d.useEffect(function(){return function(){g()}},[]),function(m){var y=m.which;if([].concat(PE,[Ep,YT,Qc,Zc]).includes(y)){var b=i(),w=db(b,r),S=w,C=S.elements,E=S.key2element,k=S.element2key,I=E.get(t),$=b9(I,C),T=k.get($),N=g9(e,a(T,!0).length===1,n,y);if(!N&&y!==Qc&&y!==Zc)return;(PE.includes(y)||[Qc,Zc].includes(y))&&m.preventDefault();var P=function(L){if(L){var A=L,U=L.querySelector("a");U!=null&&U.getAttribute("href")&&(A=U);var R=k.get(L);s(R),g(),p.current=vn(function(){v.current===R&&A.focus()})}};if([Qc,Zc].includes(y)||N.sibling||!$){var D;!$||e==="inline"?D=o.current:D=m9($);var j,F=aw(D,C);y===Qc?j=F[0]:y===Zc?j=F[F.length-1]:j=ME(D,C,$,N.offset),P(j)}else if(N.inlineTrigger)c(T);else if(N.offset>0)c(T,!0),g(),p.current=vn(function(){w=db(b,r);var H=$.getAttribute("aria-controls"),L=document.getElementById(H),A=ME(L,w.elements);P(A)},5);else if(N.offset<0){var z=a(T,!0),B=z[z.length-2],_=E.get(B);c(B,!1),P(_)}}f==null||f(m)}}function w9(e){Promise.resolve().then(e)}var sw="__RC_UTIL_PATH_SPLIT__",NE=function(t){return t.join(sw)},x9=function(t){return t.split(sw)},fb="rc-menu-more";function S9(){var e=d.useState({}),t=he(e,2),n=t[1],r=d.useRef(new Map),o=d.useRef(new Map),i=d.useState([]),a=he(i,2),s=a[0],c=a[1],f=d.useRef(0),p=d.useRef(!1),v=function(){p.current||n({})},g=d.useCallback(function(E,k){var I=NE(k);o.current.set(I,E),r.current.set(E,I),f.current+=1;var $=f.current;w9(function(){$===f.current&&v()})},[]),m=d.useCallback(function(E,k){var I=NE(k);o.current.delete(I),r.current.delete(E)},[]),y=d.useCallback(function(E){c(E)},[]),b=d.useCallback(function(E,k){var I=r.current.get(E)||"",$=x9(I);return k&&s.includes($[0])&&$.unshift(fb),$},[s]),w=d.useCallback(function(E,k){return E.some(function(I){var $=b(I,!0);return $.includes(k)})},[b]),S=function(){var k=Ee(r.current.keys());return s.length&&k.push(fb),k},C=d.useCallback(function(E){var k="".concat(r.current.get(E)).concat(sw),I=new Set;return Ee(o.current.keys()).forEach(function($){$.startsWith(k)&&I.add(o.current.get($))}),I},[]);return d.useEffect(function(){return function(){p.current=!0}},[]),{registerPath:g,unregisterPath:m,refreshOverflowKeys:y,isSubPathKey:w,getKeyPath:b,getKeys:S,getSubPathKeys:C}}function lu(e){var t=d.useRef(e);t.current=e;var n=d.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var C9=Math.random().toFixed(5).toString().slice(2),RE=0;function E9(e){var t=Fn(e,{value:e}),n=he(t,2),r=n[0],o=n[1];return d.useEffect(function(){RE+=1;var i="".concat(C9,"-").concat(RE);o("rc-menu-uuid-".concat(i))},[]),r}function QT(e,t,n,r){var o=d.useContext(ri),i=o.activeKey,a=o.onActive,s=o.onInactive,c={active:i===e};return t||(c.onMouseEnter=function(f){n==null||n({key:e,domEvent:f}),a(e)},c.onMouseLeave=function(f){r==null||r({key:e,domEvent:f}),s(e)}),c}function ZT(e){var t=d.useContext(ri),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function JT(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=d.createElement(t,Z({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var k9=["item"];function Gp(e){var t=e.item,n=jt(e,k9);return Object.defineProperty(n,"item",{get:function(){return Dn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var O9=["title","attribute","elementRef"],$9=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],I9=["active"],T9=function(e){oi(n,e);var t=Zi(n);function n(){return ur(this,n),t.apply(this,arguments)}return dr(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,s=o.elementRef,c=jt(o,O9),f=qn(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Dn(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),d.createElement(yi.Item,ke({},a,{title:typeof i=="string"?i:void 0},f,{ref:s}))}}]),n}(d.Component),P9=d.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey;e.warnKey;var a=e.disabled,s=e.itemIcon,c=e.children,f=e.role,p=e.onMouseEnter,v=e.onMouseLeave,g=e.onClick,m=e.onKeyDown,y=e.onFocus,b=jt(e,$9),w=KT(i),S=d.useContext(ri),C=S.prefixCls,E=S.onItemClick,k=S.disabled,I=S.overflowDisabled,$=S.itemIcon,T=S.selectedKeys,N=S.onActive,P=d.useContext(iw),D=P._internalRenderMenuItem,j="".concat(C,"-item"),F=d.useRef(),z=d.useRef(),B=k||a,_=Rs(t,z),H=uc(i),L=function(ce){return{key:i,keyPath:Ee(H).reverse(),item:F.current,domEvent:ce}},A=s||$,U=QT(i,B,p,v),R=U.active,V=jt(U,I9),Y=T.includes(i),X=ZT(H.length),q=function(ce){if(!B){var ee=L(ce);g==null||g(Gp(ee)),E(ee)}},G=function(ce){if(m==null||m(ce),ce.which===Te.ENTER){var ee=L(ce);g==null||g(Gp(ee)),E(ee)}},K=function(ce){N(i),y==null||y(ce)},J={};e.role==="option"&&(J["aria-selected"]=Y);var oe=d.createElement(T9,ke({ref:F,elementRef:_,role:f===null?"none":f||"menuitem",tabIndex:a?null:-1,"data-menu-id":I&&w?null:w},b,V,J,{component:"li","aria-disabled":a,style:Z(Z({},X),r),className:ae(j,(n={},Q(n,"".concat(j,"-active"),R),Q(n,"".concat(j,"-selected"),Y),Q(n,"".concat(j,"-disabled"),B),n),o),onClick:q,onKeyDown:G,onFocus:K}),c,d.createElement(JT,{props:Z(Z({},e),{},{isSelected:Y}),icon:A}));return D&&(oe=D(oe,e,{selected:Y})),oe});function M9(e,t){var n=e.eventKey,r=qv(),o=uc(n);return d.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:d.createElement(P9,ke({},e,{ref:t}))}const Xv=d.forwardRef(M9);var N9=["className","children"],R9=function(t,n){var r=t.className,o=t.children,i=jt(t,N9),a=d.useContext(ri),s=a.prefixCls,c=a.mode,f=a.rtl;return d.createElement("ul",ke({className:ae(s,f&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(c==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},lw=d.forwardRef(R9);lw.displayName="SubMenuList";function cw(e,t){return Yr(e).map(function(n,r){if(d.isValidElement(n)){var o,i,a=n.key,s=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,c=s==null;c&&(s="tmp_key-".concat([].concat(Ee(t),[r]).join("-")));var f={key:s,eventKey:s};return d.cloneElement(n,f)}return n})}var Mr={adjustX:1,adjustY:1},D9={topLeft:{points:["bl","tl"],overflow:Mr},topRight:{points:["br","tr"],overflow:Mr},bottomLeft:{points:["tl","bl"],overflow:Mr},bottomRight:{points:["tr","br"],overflow:Mr},leftTop:{points:["tr","tl"],overflow:Mr},leftBottom:{points:["br","bl"],overflow:Mr},rightTop:{points:["tl","tr"],overflow:Mr},rightBottom:{points:["bl","br"],overflow:Mr}},j9={topLeft:{points:["bl","tl"],overflow:Mr},topRight:{points:["br","tr"],overflow:Mr},bottomLeft:{points:["tl","bl"],overflow:Mr},bottomRight:{points:["tr","br"],overflow:Mr},rightTop:{points:["tr","tl"],overflow:Mr},rightBottom:{points:["br","bl"],overflow:Mr},leftTop:{points:["tl","tr"],overflow:Mr},leftBottom:{points:["bl","br"],overflow:Mr}};function eP(e,t,n){if(t)return t;if(n)return n[e]||n.other}var L9={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function B9(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,s=e.popupOffset,c=e.disabled,f=e.mode,p=e.onVisibleChange,v=d.useContext(ri),g=v.getPopupContainer,m=v.rtl,y=v.subMenuOpenDelay,b=v.subMenuCloseDelay,w=v.builtinPlacements,S=v.triggerSubMenuAction,C=v.forceSubMenuRender,E=v.rootClassName,k=v.motion,I=v.defaultMotions,$=d.useState(!1),T=he($,2),N=T[0],P=T[1],D=Z(m?Z({},j9):Z({},D9),w),j=L9[f],F=eP(f,k,I),z=d.useRef(F);f!=="inline"&&(z.current=F);var B=Z(Z({},z.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),_=d.useRef();return d.useEffect(function(){return _.current=vn(function(){P(n)}),function(){vn.cancel(_.current)}},[n]),d.createElement(Hv,{prefixCls:t,popupClassName:ae("".concat(t,"-popup"),Q({},"".concat(t,"-rtl"),m),a,E),stretch:f==="horizontal"?"minWidth":null,getPopupContainer:g,builtinPlacements:D,popupPlacement:j,popupVisible:N,popup:o,popupStyle:i,popupAlign:s&&{offset:s},action:c?[]:[S],mouseEnterDelay:y,mouseLeaveDelay:b,onPopupVisibleChange:p,forceRender:C,popupMotion:B,fresh:!0},r)}function A9(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=d.useContext(ri),s=a.prefixCls,c=a.forceSubMenuRender,f=a.motion,p=a.defaultMotions,v=a.mode,g=d.useRef(!1);g.current=v===i;var m=d.useState(!g.current),y=he(m,2),b=y[0],w=y[1],S=g.current?n:!1;d.useEffect(function(){g.current&&w(!1)},[v]);var C=Z({},eP(i,f,p));r.length>1&&(C.motionAppear=!1);var E=C.onVisibleChanged;return C.onVisibleChanged=function(k){return!g.current&&!k&&w(!0),E==null?void 0:E(k)},b?null:d.createElement(Zu,{mode:i,locked:!g.current},d.createElement(Bo,ke({visible:S},C,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(k){var I=k.className,$=k.style;return d.createElement(lw,{id:t,className:I,style:$},o)}))}var z9=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],F9=["active"],H9=function(t){var n,r=t.style,o=t.className,i=t.title,a=t.eventKey;t.warnKey;var s=t.disabled,c=t.internalPopupClose,f=t.children,p=t.itemIcon,v=t.expandIcon,g=t.popupClassName,m=t.popupOffset,y=t.popupStyle,b=t.onClick,w=t.onMouseEnter,S=t.onMouseLeave,C=t.onTitleClick,E=t.onTitleMouseEnter,k=t.onTitleMouseLeave,I=jt(t,z9),$=KT(a),T=d.useContext(ri),N=T.prefixCls,P=T.mode,D=T.openKeys,j=T.disabled,F=T.overflowDisabled,z=T.activeKey,B=T.selectedKeys,_=T.itemIcon,H=T.expandIcon,L=T.onItemClick,A=T.onOpenChange,U=T.onActive,R=d.useContext(iw),V=R._internalRenderSubMenuItem,Y=d.useContext(GT),X=Y.isSubPathKey,q=uc(),G="".concat(N,"-submenu"),K=j||s,J=d.useRef(),oe=d.useRef(),fe=p??_,ce=v??H,ee=D.includes(a),ie=!F&&ee,te=X(B,a),re=QT(a,K,E,k),le=re.active,ge=jt(re,F9),be=d.useState(!1),Se=he(be,2),pe=Se[0],me=Se[1],xe=function(je){K||me(je)},Pe=function(je){xe(!0),w==null||w({key:a,domEvent:je})},Ie=function(je){xe(!1),S==null||S({key:a,domEvent:je})},De=d.useMemo(function(){return le||(P!=="inline"?pe||X([z],a):!1)},[P,le,z,pe,a,X]),Be=ZT(q.length),qe=function(je){K||(C==null||C({key:a,domEvent:je}),P==="inline"&&A(a,!ee))},lt=lu(function(Le){b==null||b(Gp(Le)),L(Le)}),et=function(je){P!=="inline"&&A(a,je)},He=function(){U(a)},Fe=$&&"".concat($,"-popup"),Re=d.createElement("div",ke({role:"menuitem",style:Be,className:"".concat(G,"-title"),tabIndex:K?null:-1,ref:J,title:typeof i=="string"?i:null,"data-menu-id":F&&$?null:$,"aria-expanded":ie,"aria-haspopup":!0,"aria-controls":Fe,"aria-disabled":K,onClick:qe,onFocus:He},ge),i,d.createElement(JT,{icon:P!=="horizontal"?ce:void 0,props:Z(Z({},t),{},{isOpen:ie,isSubMenu:!0})},d.createElement("i",{className:"".concat(G,"-arrow")}))),ft=d.useRef(P);if(P!=="inline"&&q.length>1?ft.current="vertical":ft.current=P,!F){var Me=ft.current;Re=d.createElement(B9,{mode:Me,prefixCls:G,visible:!c&&ie&&P!=="inline",popupClassName:g,popupOffset:m,popupStyle:y,popup:d.createElement(Zu,{mode:Me==="horizontal"?"vertical":Me},d.createElement(lw,{id:Fe,ref:oe},f)),disabled:K,onVisibleChange:et},Re)}var We=d.createElement(yi.Item,ke({role:"none"},I,{component:"li",style:r,className:ae(G,"".concat(G,"-").concat(P),o,(n={},Q(n,"".concat(G,"-open"),ie),Q(n,"".concat(G,"-active"),De),Q(n,"".concat(G,"-selected"),te),Q(n,"".concat(G,"-disabled"),K),n)),onMouseEnter:Pe,onMouseLeave:Ie}),Re,!F&&d.createElement(A9,{id:Fe,open:ie,keyPath:q},f));return V&&(We=V(We,t,{selected:te,active:De,open:ie,disabled:K})),d.createElement(Zu,{onItemClick:lt,mode:P==="horizontal"?"vertical":P,itemIcon:fe,expandIcon:ce},We)};function Gv(e){var t=e.eventKey,n=e.children,r=uc(t),o=cw(n,r),i=qv();d.useEffect(function(){if(i)return i.registerPath(t,r),function(){i.unregisterPath(t,r)}},[r]);var a;return i?a=o:a=d.createElement(H9,e,o),d.createElement(XT.Provider,{value:r},a)}var _9=["className","title","eventKey","children"],V9=["children"],W9=function(t){var n=t.className,r=t.title;t.eventKey;var o=t.children,i=jt(t,_9),a=d.useContext(ri),s=a.prefixCls,c="".concat(s,"-item-group");return d.createElement("li",ke({role:"presentation"},i,{onClick:function(p){return p.stopPropagation()},className:ae(c,n)}),d.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),d.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))};function Yv(e){var t=e.children,n=jt(e,V9),r=uc(n.eventKey),o=cw(t,r),i=qv();return i?o:d.createElement(W9,qn(n,["warnKey"]),o)}function uw(e){var t=e.className,n=e.style,r=d.useContext(ri),o=r.prefixCls,i=qv();return i?null:d.createElement("li",{role:"separator",className:ae("".concat(o,"-item-divider"),t),style:n})}var U9=["label","children","key","type"];function pb(e){return(e||[]).map(function(t,n){if(t&&Tt(t)==="object"){var r=t,o=r.label,i=r.children,a=r.key,s=r.type,c=jt(r,U9),f=a??"tmp-".concat(n);return i||s==="group"?s==="group"?d.createElement(Yv,ke({key:f},c,{title:o}),pb(i)):d.createElement(Gv,ke({key:f},c,{title:o}),pb(i)):s==="divider"?d.createElement(uw,ke({key:f},c)):d.createElement(Xv,ke({key:f},c),o)}return null}).filter(function(t){return t})}function K9(e,t,n){var r=e;return t&&(r=pb(t)),cw(r,n)}var q9=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],gl=[],X9=d.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,s=o.rootClassName,c=o.style,f=o.className,p=o.tabIndex,v=p===void 0?0:p,g=o.items,m=o.children,y=o.direction,b=o.id,w=o.mode,S=w===void 0?"vertical":w,C=o.inlineCollapsed,E=o.disabled,k=o.disabledOverflow,I=o.subMenuOpenDelay,$=I===void 0?.1:I,T=o.subMenuCloseDelay,N=T===void 0?.1:T,P=o.forceSubMenuRender,D=o.defaultOpenKeys,j=o.openKeys,F=o.activeKey,z=o.defaultActiveFirst,B=o.selectable,_=B===void 0?!0:B,H=o.multiple,L=H===void 0?!1:H,A=o.defaultSelectedKeys,U=o.selectedKeys,R=o.onSelect,V=o.onDeselect,Y=o.inlineIndent,X=Y===void 0?24:Y,q=o.motion,G=o.defaultMotions,K=o.triggerSubMenuAction,J=K===void 0?"hover":K,oe=o.builtinPlacements,fe=o.itemIcon,ce=o.expandIcon,ee=o.overflowedIndicator,ie=ee===void 0?"...":ee,te=o.overflowedIndicatorPopupClassName,re=o.getPopupContainer,le=o.onClick,ge=o.onOpenChange,be=o.onKeyDown;o.openAnimation,o.openTransitionName;var Se=o._internalRenderMenuItem,pe=o._internalRenderSubMenuItem,me=jt(o,q9),xe=d.useMemo(function(){return K9(m,g,gl)},[m,g]),Pe=d.useState(!1),Ie=he(Pe,2),De=Ie[0],Be=Ie[1],qe=d.useRef(),lt=E9(b),et=y==="rtl",He=Fn(D,{value:j,postState:function(Kt){return Kt||gl}}),Fe=he(He,2),Re=Fe[0],ft=Fe[1],Me=function(Kt){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function yt(){ft(Kt),ge==null||ge(Kt)}dt?ei.flushSync(yt):yt()},We=d.useState(Re),Le=he(We,2),je=Le[0],Ye=Le[1],mt=d.useRef(!1),bt=d.useMemo(function(){return(S==="inline"||S==="vertical")&&C?["vertical",C]:[S,!1]},[S,C]),Oe=he(bt,2),Ge=Oe[0],ct=Oe[1],Mt=Ge==="inline",ut=d.useState(Ge),ze=he(ut,2),Qe=ze[0],Xe=ze[1],rt=d.useState(ct),it=he(rt,2),tt=it[0],Ke=it[1];d.useEffect(function(){Xe(Ge),Ke(ct),mt.current&&(Mt?ft(je):Me(gl))},[Ge,ct]);var Ae=d.useState(0),xt=he(Ae,2),Nt=xt[0],Ot=xt[1],ot=Nt>=xe.length-1||Qe!=="horizontal"||k;d.useEffect(function(){Mt&&Ye(Re)},[Re]),d.useEffect(function(){return mt.current=!0,function(){mt.current=!1}},[]);var at=S9(),_t=at.registerPath,Ct=at.unregisterPath,zt=at.refreshOverflowKeys,Jt=at.isSubPathKey,st=at.getKeyPath,pt=at.getKeys,Rt=at.getSubPathKeys,Ft=d.useMemo(function(){return{registerPath:_t,unregisterPath:Ct}},[_t,Ct]),fn=d.useMemo(function(){return{isSubPathKey:Jt}},[Jt]);d.useEffect(function(){zt(ot?gl:xe.slice(Nt+1).map(function(Xt){return Xt.key}))},[Nt,ot]);var ln=Fn(F||z&&((n=xe[0])===null||n===void 0?void 0:n.key),{value:F}),Hn=he(ln,2),yn=Hn[0],Yn=Hn[1],Yt=lu(function(Xt){Yn(Xt)}),wn=lu(function(){Yn(void 0)});d.useImperativeHandle(t,function(){return{list:qe.current,focus:function(Kt){var dt,yt=pt(),en=db(yt,lt),bn=en.elements,cn=en.key2element,xn=en.element2key,In=aw(qe.current,bn),_n=yn??(In[0]?xn.get(In[0]):(dt=xe.find(function($t){return!$t.props.disabled}))===null||dt===void 0?void 0:dt.key),Pt=cn.get(_n);if(_n&&Pt){var Lt;Pt==null||(Lt=Pt.focus)===null||Lt===void 0||Lt.call(Pt,Kt)}}}});var nr=Fn(A||[],{value:U,postState:function(Kt){return Array.isArray(Kt)?Kt:Kt==null?gl:[Kt]}}),Nr=he(nr,2),vt=Nr[0],Ut=Nr[1],tn=function(Kt){if(_){var dt=Kt.key,yt=vt.includes(dt),en;L?yt?en=vt.filter(function(cn){return cn!==dt}):en=[].concat(Ee(vt),[dt]):en=[dt],Ut(en);var bn=Z(Z({},Kt),{},{selectedKeys:en});yt?V==null||V(bn):R==null||R(bn)}!L&&Re.length&&Qe!=="inline"&&Me(gl)},hn=lu(function(Xt){le==null||le(Gp(Xt)),tn(Xt)}),gn=lu(function(Xt,Kt){var dt=Re.filter(function(en){return en!==Xt});if(Kt)dt.push(Xt);else if(Qe!=="inline"){var yt=Rt(Xt);dt=dt.filter(function(en){return!yt.has(en)})}Vi(Re,dt,!0)||Me(dt,!0)}),Er=function(Kt,dt){var yt=dt??!Re.includes(Kt);gn(Kt,yt)},Cn=y9(Qe,yn,et,lt,qe,pt,st,Yn,Er,be);d.useEffect(function(){Be(!0)},[]);var rr=d.useMemo(function(){return{_internalRenderMenuItem:Se,_internalRenderSubMenuItem:pe}},[Se,pe]),Hr=Qe!=="horizontal"||k?xe:xe.map(function(Xt,Kt){return d.createElement(Zu,{key:Xt.key,overflowDisabled:Kt>Nt},Xt)}),kr=d.createElement(yi,ke({id:b,ref:qe,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Xv,className:ae(a,"".concat(a,"-root"),"".concat(a,"-").concat(Qe),f,(r={},Q(r,"".concat(a,"-inline-collapsed"),tt),Q(r,"".concat(a,"-rtl"),et),r),s),dir:y,style:c,role:"menu",tabIndex:v,data:Hr,renderRawItem:function(Kt){return Kt},renderRawRest:function(Kt){var dt=Kt.length,yt=dt?xe.slice(-dt):null;return d.createElement(Gv,{eventKey:fb,title:ie,disabled:ot,internalPopupClose:dt===0,popupClassName:te},yt)},maxCount:Qe!=="horizontal"||k?yi.INVALIDATE:yi.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Kt){Ot(Kt)},onKeyDown:Cn},me));return d.createElement(iw.Provider,{value:rr},d.createElement(WT.Provider,{value:lt},d.createElement(Zu,{prefixCls:a,rootClassName:s,mode:Qe,openKeys:Re,rtl:et,disabled:E,motion:De?q:null,defaultMotions:De?G:null,activeKey:yn,onActive:Yt,onInactive:wn,selectedKeys:vt,inlineIndent:X,subMenuOpenDelay:$,subMenuCloseDelay:N,forceSubMenuRender:P,builtinPlacements:oe,triggerSubMenuAction:J,getPopupContainer:re,itemIcon:fe,expandIcon:ce,onItemClick:hn,onOpenChange:gn},d.createElement(GT.Provider,{value:fn},kr),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(qT.Provider,{value:Ft},xe)))))}),bd=X9;bd.Item=Xv;bd.SubMenu=Gv;bd.ItemGroup=Yv;bd.Divider=uw;var G9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};const Y9=G9;var Q9=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:Y9}))};const vb=d.forwardRef(Q9),tP=d.createContext({});var Z9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const J9=Z9;var e7=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:J9}))};const nP=d.forwardRef(e7);var t7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const n7=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=t7(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=d.useContext(kt),a=i("menu",t),s=ae({[`${a}-item-divider-dashed`]:!!r},n);return d.createElement(uw,Object.assign({className:s},o))},rP=n7,r7=d.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Yp=r7,o7=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a}=e,{prefixCls:s,firstLevel:c,direction:f,disableMenuItemTitleTooltip:p,inlineCollapsed:v}=d.useContext(Yp),g=C=>{const E=d.createElement("span",{className:`${s}-title-content`},r);return(!o||Ar(r)&&r.type==="span")&&r&&C&&c&&typeof r=="string"?d.createElement("div",{className:`${s}-inline-collapsed-noicon`},r.charAt(0)):E},{siderCollapsed:m}=d.useContext(tP);let y=i;typeof i>"u"?y=c?r:"":i===!1&&(y="");const b={title:y};!m&&!v&&(b.title=null,b.open=!1);const w=Yr(r).length;let S=d.createElement(Xv,Object.assign({},qn(e,["title","icon","danger"]),{className:ae({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(o?w+1:w)===1},n),title:typeof i=="string"?i:void 0}),mr(o,{className:ae(Ar(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),g(v));return p||(S=d.createElement(Xi,Object.assign({},b,{placement:f==="rtl"?"left":"right",overlayClassName:`${s}-inline-collapsed-tooltip`}),S)),S},oP=o7,i7=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=d.useContext(Yp),{prefixCls:s,inlineCollapsed:c,theme:f}=a,p=uc();let v;if(!r)v=c&&!p.length&&o&&typeof o=="string"?d.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):d.createElement("span",{className:`${s}-title-content`},o);else{const y=Ar(o)&&o.type==="span";v=d.createElement(d.Fragment,null,mr(r,{className:ae(Ar(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),y?o:d.createElement("span",{className:`${s}-title-content`},o))}const g=d.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[m]=ic("Menu");return d.createElement(Yp.Provider,{value:g},d.createElement(Gv,Object.assign({},qn(e,["icon"]),{title:v,popupClassName:ae(s,n,`${s}-${i||f}`),popupStyle:{zIndex:m}})))},iP=i7;var a7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function hb(e){return(e||[]).map((t,n)=>{if(t&&typeof t=="object"){const r=t,{label:o,children:i,key:a,type:s}=r,c=a7(r,["label","children","key","type"]),f=a??`tmp-${n}`;return i||s==="group"?s==="group"?d.createElement(Yv,Object.assign({key:f},c,{title:o}),hb(i)):d.createElement(iP,Object.assign({key:f},c,{title:o}),hb(i)):s==="divider"?d.createElement(rP,Object.assign({key:f},c)):d.createElement(oP,Object.assign({key:f},c),o)}return null}).filter(t=>t)}function s7(e){return d.useMemo(()=>e&&hb(e),[e])}var l7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Qp=d.createContext(null),aP=d.forwardRef((e,t)=>{const{children:n}=e,r=l7(e,["children"]),o=d.useContext(Qp),i=d.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=Jj(n),s=Rs(t,a?n.ref:null);return d.createElement(Qp.Provider,{value:i},d.createElement(Uu,null,a?d.cloneElement(n,{ref:s}):n))}),c7=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${se(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
> ${t}-item-active,
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},u7=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${se(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${se(n)})`}}}}},DE=e=>Object.assign({},Fa(e)),jE=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,groupTitleColor:i,itemBg:a,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:f,activeBarWidth:p,activeBarBorderWidth:v,motionDurationSlow:g,motionEaseInOut:m,motionEaseOut:y,itemPaddingInline:b,motionDurationMid:w,itemHoverColor:S,lineType:C,colorSplit:E,itemDisabledColor:k,dangerItemColor:I,dangerItemHoverColor:$,dangerItemSelectedColor:T,dangerItemActiveBg:N,dangerItemSelectedBg:P,popupBg:D,itemHoverBg:j,itemActiveBg:F,menuSubMenuBg:z,horizontalItemSelectedColor:B,horizontalItemSelectedBg:_,horizontalItemBorderRadius:H,horizontalItemHoverBg:L}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:Object.assign({},DE(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${k} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:S}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:j},"&:active":{backgroundColor:F}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:j},"&:active":{backgroundColor:F}}},[`${n}-item-danger`]:{color:I,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:$}},[`&${n}-item:active`]:{background:N}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:T},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:P}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},DE(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:z},[`&${n}-popup > ${n}`]:{backgroundColor:D},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:D},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:v,marginTop:e.calc(v).mul(-1).equal(),marginBottom:0,borderRadius:H,"&::after":{position:"absolute",insetInline:b,bottom:0,borderBottom:`${se(f)} solid transparent`,transition:`border-color ${g} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:L,"&::after":{borderBottomWidth:f,borderBottomColor:B}},"&-selected":{color:B,backgroundColor:_,"&:hover":{backgroundColor:_},"&::after":{borderBottomWidth:f,borderBottomColor:B}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${se(v)} ${C} ${E}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${se(p)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${w} ${y}`,`opacity ${w} ${y}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:T}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${w} ${m}`,`opacity ${w} ${m}`].join(",")}}}}}},LE=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:s,itemWidth:c}=e,f=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:se(n),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:se(n)},[`${t}-item-group-list ${t}-submenu-title,
${t}-submenu-title`]:{paddingInlineEnd:f}}},d7=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionDurationMid:s,motionEaseOut:c,paddingXL:f,itemMarginInline:p,fontSizeLG:v,motionDurationSlow:g,paddingXS:m,boxShadowSecondary:y,collapsedWidth:b,collapsedIconSize:w}=e,S={height:r,lineHeight:se(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},LE(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},LE(e)),{boxShadow:y})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${se(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${g}`,`background ${g}`,`padding ${s} ${c}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:S,[`& ${t}-item-group-title`]:{paddingInlineStart:f}},[`${t}-item`]:S}},{[`${t}-inline-collapsed`]:{width:b,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:v,textAlign:"center"}}},[`> ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${se(e.calc(v).div(2).equal())} - ${se(p)})`,textOverflow:"clip",[`
${t}-submenu-arrow,
${t}-submenu-expand-icon
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:w,lineHeight:se(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},za),{paddingInline:m})}}]},BE=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Ov()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},AE=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${se(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${se(a)})`}}}}},f7=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:c,colorSplit:f,lineWidth:p,zIndexPopup:v,borderRadiusLG:g,subMenuItemBorderRadius:m,menuArrowSize:y,menuArrowOffset:b,lineType:w,menuPanelMaskInset:S,groupTitleLineHeight:C,groupTitleFontSize:E}=e;return[{"":{[`${n}`]:Object.assign(Object.assign({},Es()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),Es()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${se(s)} ${se(c)}`,fontSize:E,lineHeight:C,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:f,borderStyle:w,borderWidth:0,borderTopWidth:p,marginBlock:p,padding:0,"&-dashed":{borderStyle:"dashed"}}}),BE(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${se(e.calc(r).mul(2).equal())} ${se(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:v,borderRadius:g,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${se(S)} 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:S},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:g},BE(e)),AE(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:m},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})}}),AE(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${se(b)})`},"&::after":{transform:`rotate(45deg) translateX(${se(e.calc(b).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${se(e.calc(y).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${se(e.calc(b).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${se(b)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},p7=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:c,colorTextDescription:f,colorBgContainer:p,colorFillAlter:v,colorFillContent:g,lineWidth:m,lineWidthBold:y,controlItemBgActive:b,colorBgTextHover:w,controlHeightLG:S,lineHeight:C,colorBgElevated:E,marginXXS:k,padding:I,fontSize:$,controlHeightSM:T,fontSizeLG:N,colorTextLightSolid:P,colorErrorHover:D}=e,j=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,F=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:m,z=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,B=new En(P).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:f,groupTitleColor:f,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:p,itemBg:p,colorItemBgHover:w,itemHoverBg:w,colorItemBgActive:g,itemActiveBg:b,colorSubItemBg:v,subMenuItemBg:v,colorItemBgSelected:b,itemSelectedBg:b,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:j,colorActiveBarHeight:y,activeBarHeight:y,colorActiveBarBorderSize:m,activeBarBorderWidth:F,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:z,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:S,groupTitleLineHeight:C,collapsedWidth:S*2,popupBg:E,itemMarginBlock:k,itemPaddingInline:I,horizontalLineHeight:`${S*1.15}px`,iconSize:$,iconMarginInlineEnd:T-$,collapsedIconSize:N,groupTitleFontSize:$,darkItemDisabledColor:new En(P).setAlpha(.25).toRgbString(),darkItemColor:B,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:P,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:B,darkItemHoverColor:P,darkDangerItemHoverColor:D,darkDangerItemSelectedColor:P,darkDangerItemActiveBg:i,itemWidth:j?`calc(100% + ${F}px)`:`calc(100% - ${z*2}px)`}},v7=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return jn("Menu",o=>{const{colorBgElevated:i,colorPrimary:a,colorTextLightSolid:s,controlHeightLG:c,fontSize:f,darkItemColor:p,darkDangerItemColor:v,darkItemBg:g,darkSubMenuItemBg:m,darkItemSelectedColor:y,darkItemSelectedBg:b,darkDangerItemSelectedBg:w,darkItemHoverBg:S,darkGroupTitleColor:C,darkItemHoverColor:E,darkItemDisabledColor:k,darkDangerItemHoverColor:I,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:T,popupBg:N,darkPopupBg:P}=o,D=o.calc(f).div(7).mul(5).equal(),j=un(o,{menuArrowSize:D,menuHorizontalHeight:o.calc(c).mul(1.15).equal(),menuArrowOffset:o.calc(D).mul(.25).equal(),menuPanelMaskInset:-7,menuSubMenuBg:i,calc:o.calc,popupBg:N}),F=un(j,{itemColor:p,itemHoverColor:E,groupTitleColor:C,itemSelectedColor:y,itemBg:g,popupBg:P,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:b,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:S,itemDisabledColor:k,dangerItemColor:v,dangerItemHoverColor:I,dangerItemSelectedColor:$,dangerItemActiveBg:T,dangerItemSelectedBg:w,menuSubMenuBg:m,horizontalItemSelectedColor:s,horizontalItemSelectedBg:a});return[f7(j),c7(j),d7(j),jE(j,"light"),jE(F,"dark"),u7(j),zv(j),Kl(j,"slide-up"),Kl(j,"slide-down"),hd(j,"zoom-big")]},p7,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)};var h7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const g7=d.forwardRef((e,t)=>{var n,r;const o=d.useContext(Qp),i=o||{},{getPrefixCls:a,getPopupContainer:s,direction:c,menu:f}=d.useContext(kt),p=a(),{prefixCls:v,className:g,style:m,theme:y="light",expandIcon:b,_internalDisableMenuItemTitleTooltip:w,inlineCollapsed:S,siderCollapsed:C,items:E,children:k,rootClassName:I,mode:$,selectable:T,onClick:N,overflowedIndicatorPopupClassName:P}=e,D=h7(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),j=qn(D,["collapsedWidth"]),F=s7(E)||k;(n=i.validator)===null||n===void 0||n.call(i,{mode:$});const z=Rn(function(){var K;N==null||N.apply(void 0,arguments),(K=i.onClick)===null||K===void 0||K.call(i)}),B=i.mode||$,_=T??i.selectable,H=d.useMemo(()=>C!==void 0?C:S,[S,C]),L={horizontal:{motionName:`${p}-slide-up`},inline:Wu(p),other:{motionName:`${p}-zoom-big`}},A=a("menu",v||i.prefixCls),U=br(A),[R,V,Y]=v7(A,U,!o),X=ae(`${A}-${y}`,f==null?void 0:f.className,g);let q;if(typeof b=="function")q=b;else if(b===null||b===!1)q=null;else if(i.expandIcon===null||i.expandIcon===!1)q=null;else{const K=b??i.expandIcon;q=mr(K,{className:ae(`${A}-submenu-expand-icon`,Ar(K)?(r=K.props)===null||r===void 0?void 0:r.className:"")})}const G=d.useMemo(()=>({prefixCls:A,inlineCollapsed:H||!1,direction:c,firstLevel:!0,theme:y,mode:B,disableMenuItemTitleTooltip:w}),[A,H,c,w,y]);return R(d.createElement(Qp.Provider,{value:null},d.createElement(Yp.Provider,{value:G},d.createElement(bd,Object.assign({getPopupContainer:s,overflowedIndicator:d.createElement(nP,null),overflowedIndicatorPopupClassName:ae(A,`${A}-${y}`,P),mode:B,selectable:_,onClick:z},j,{inlineCollapsed:H,style:Object.assign(Object.assign({},f==null?void 0:f.style),m),className:X,prefixCls:A,direction:c,defaultMotions:L,expandIcon:q,ref:t,rootClassName:ae(I,V,i.rootClassName,Y,U)}),F))))}),m7=g7,yd=d.forwardRef((e,t)=>{const n=d.useRef(null),r=d.useContext(tP);return d.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),d.createElement(m7,Object.assign({ref:n},e,r))});yd.Item=oP;yd.SubMenu=iP;yd.Divider=rP;yd.ItemGroup=Yv;const sP=yd,b7=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},y7=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:c,paddingBlock:f,fontSize:p,dropdownEdgeChildPadding:v,colorTextDisabled:g,fontSizeIcon:m,controlPaddingHorizontal:y,colorBgElevated:b}=e;return[{[t]:Object.assign(Object.assign({},$n(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:m}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:m},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:_y},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Wy},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Vy},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Uy}})},ow(e,b,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{[n]:Object.assign(Object.assign({padding:v,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Vu(e)),{[`${n}-item-group-title`]:{padding:`${se(f)} ${se(y)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:p,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${se(f)} ${se(y)}`,color:e.colorText,fontWeight:"normal",fontSize:p,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Vu(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:g,cursor:"not-allowed","&:hover":{color:g,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${se(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:m,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${se(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(y).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:g,backgroundColor:b,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[Kl(e,"slide-up"),Kl(e,"slide-down"),Kp(e,"move-up"),Kp(e,"move-down"),hd(e,"zoom-big")]]},w7=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Kv({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),rw(e)),x7=jn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=un(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[y7(i),b7(i)]},w7),dw=e=>{const{menu:t,arrow:n,prefixCls:r,children:o,trigger:i,disabled:a,dropdownRender:s,getPopupContainer:c,overlayClassName:f,rootClassName:p,overlayStyle:v,open:g,onOpenChange:m,visible:y,onVisibleChange:b,mouseEnterDelay:w=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:C=!0,placement:E="",overlay:k,transitionName:I}=e,{getPopupContainer:$,getPrefixCls:T,direction:N,dropdown:P}=d.useContext(kt);Ds();const D=d.useMemo(()=>{const ie=T();return I!==void 0?I:E.includes("top")?`${ie}-slide-down`:`${ie}-slide-up`},[T,E,I]),j=d.useMemo(()=>E?E.includes("Center")?E.slice(0,E.indexOf("Center")):E:N==="rtl"?"bottomRight":"bottomLeft",[E,N]),F=T("dropdown",r),z=br(F),[B,_,H]=x7(F,z),[,L]=tr(),A=d.Children.only(o),U=mr(A,{className:ae(`${F}-trigger`,{[`${F}-rtl`]:N==="rtl"},A.props.className),disabled:a}),R=a?[]:i;let V;R&&R.includes("contextMenu")&&(V=!0);const[Y,X]=Fn(!1,{value:g??y}),q=Rn(ie=>{m==null||m(ie,{source:"trigger"}),b==null||b(ie),X(ie)}),G=ae(f,p,_,H,z,P==null?void 0:P.className,{[`${F}-rtl`]:N==="rtl"}),K=LT({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:C,offset:L.marginXXS,arrowWidth:n?L.sizePopupArrow:0,borderRadius:L.borderRadius}),J=d.useCallback(()=>{t!=null&&t.selectable&&(t!=null&&t.multiple)||(m==null||m(!1,{source:"menu"}),X(!1))},[t==null?void 0:t.selectable,t==null?void 0:t.multiple]),oe=()=>{let ie;return t!=null&&t.items?ie=d.createElement(sP,Object.assign({},t)):typeof k=="function"?ie=k():ie=k,s&&(ie=s(ie)),ie=d.Children.only(typeof ie=="string"?d.createElement("span",null,ie):ie),d.createElement(aP,{prefixCls:`${F}-menu`,rootClassName:ae(H,z),expandIcon:d.createElement("span",{className:`${F}-menu-submenu-arrow`},d.createElement(Xp,{className:`${F}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:J,validator:te=>{}},ie)},[fe,ce]=ic("Dropdown",v==null?void 0:v.zIndex);let ee=d.createElement(d9,Object.assign({alignPoint:V},qn(e,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:S,visible:Y,builtinPlacements:K,arrow:!!n,overlayClassName:G,prefixCls:F,getPopupContainer:c||$,transitionName:D,trigger:R,overlay:oe,placement:j,onVisibleChange:q,overlayStyle:Object.assign(Object.assign(Object.assign({},P==null?void 0:P.style),v),{zIndex:fe})}),U);return fe&&(ee=d.createElement(Nv.Provider,{value:ce},ee)),B(ee)};function S7(e){return Object.assign(Object.assign({},e),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const C7=qy(dw,"dropdown",e=>e,S7),E7=e=>d.createElement(C7,Object.assign({},e),d.createElement("span",null));dw._InternalPanelDoNotUseOrYouWillBeFired=E7;const lP=dw,cP=d.createContext(null),k7=cP.Provider,uP=d.createContext(null),O7=uP.Provider;var $7=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],dP=d.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-checkbox":r,i=e.className,a=e.style,s=e.checked,c=e.disabled,f=e.defaultChecked,p=f===void 0?!1:f,v=e.type,g=v===void 0?"checkbox":v,m=e.title,y=e.onChange,b=jt(e,$7),w=d.useRef(null),S=Fn(p,{value:s}),C=he(S,2),E=C[0],k=C[1];d.useImperativeHandle(t,function(){return{focus:function(){var N;(N=w.current)===null||N===void 0||N.focus()},blur:function(){var N;(N=w.current)===null||N===void 0||N.blur()},input:w.current}});var I=ae(o,i,(n={},Q(n,"".concat(o,"-checked"),E),Q(n,"".concat(o,"-disabled"),c),n)),$=function(N){c||("checked"in e||k(N.target.checked),y==null||y({target:Z(Z({},e),{},{type:g,checked:N.target.checked}),stopPropagation:function(){N.stopPropagation()},preventDefault:function(){N.preventDefault()},nativeEvent:N.nativeEvent}))};return d.createElement("span",{className:I,title:m,style:a},d.createElement("input",ke({},b,{className:"".concat(o,"-input"),ref:w,onChange:$,disabled:c,checked:!!E,type:g})),d.createElement("span",{className:"".concat(o,"-inner")}))});const I7=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},$n(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},T7=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:f,lineWidth:p,colorBgContainerDisabled:v,colorTextDisabled:g,paddingXS:m,dotColorDisabled:y,lineType:b,radioColor:w,radioBgColor:S,calc:C}=e,E=`${t}-inner`,I=C(o).sub(C(4).mul(2)),$=C(1).mul(o).equal();return{[`${t}-wrapper`]:Object.assign(Object.assign({},$n(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${se(p)} ${b} ${r}`,borderRadius:"50%",visibility:"hidden",content:'""'},[t]:Object.assign(Object.assign({},$n(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
&:hover ${E}`]:{borderColor:r},[`${t}-input:focus-visible + ${E}`]:Object.assign({},Fa(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:$,height:$,marginBlockStart:C(1).mul(o).div(-2).equal(),marginInlineStart:C(1).mul(o).div(-2).equal(),backgroundColor:w,borderBlockStart:0,borderInlineStart:0,borderRadius:$,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:$,height:$,backgroundColor:c,borderColor:f,borderStyle:"solid",borderWidth:p,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[E]:{borderColor:r,backgroundColor:S,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[E]:{backgroundColor:v,borderColor:f,cursor:"not-allowed","&::after":{backgroundColor:y}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${t}-checked`]:{[E]:{"&::after":{transform:`scale(${C(I).div(o).equal({unit:!1})})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},P7=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:c,buttonPaddingInline:f,fontSize:p,buttonBg:v,fontSizeLG:g,controlHeightLG:m,controlHeightSM:y,paddingXS:b,borderRadius:w,borderRadiusSM:S,borderRadiusLG:C,buttonCheckedBg:E,buttonSolidCheckedColor:k,colorTextDisabled:I,colorBgContainerDisabled:$,buttonCheckedBgDisabled:T,buttonCheckedColorDisabled:N,colorPrimary:P,colorPrimaryHover:D,colorPrimaryActive:j,buttonSolidCheckedBg:F,buttonSolidCheckedHoverBg:z,buttonSolidCheckedActiveBg:B,calc:_}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:f,paddingBlock:0,color:t,fontSize:p,lineHeight:se(_(n).sub(_(o).mul(2)).equal()),background:v,border:`${se(o)} ${i} ${a}`,borderBlockStartWidth:_(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:_(o).mul(-1).equal(),insetInlineStart:_(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${se(o)} ${i} ${a}`,borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w},"&:first-child:last-child":{borderRadius:w},[`${r}-group-large &`]:{height:m,fontSize:g,lineHeight:se(_(m).sub(_(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},[`${r}-group-small &`]:{height:y,paddingInline:_(b).sub(o).equal(),paddingBlock:0,lineHeight:se(_(y).sub(_(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},"&:hover":{position:"relative",color:P},"&:has(:focus-visible)":Object.assign({},Fa(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:P,background:E,borderColor:P,"&::before":{backgroundColor:P},"&:first-child":{borderColor:P},"&:hover":{color:D,borderColor:D,"&::before":{backgroundColor:D}},"&:active":{color:j,borderColor:j,"&::before":{backgroundColor:j}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:k,background:F,borderColor:F,"&:hover":{color:k,background:z,borderColor:z},"&:active":{color:k,background:B,borderColor:B}},"&-disabled":{color:I,backgroundColor:$,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:I,backgroundColor:$,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:N,backgroundColor:T,borderColor:a,boxShadow:"none"}}}},M7=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:f,colorTextLightSolid:p,colorPrimary:v,colorPrimaryHover:g,colorPrimaryActive:m,colorWhite:y}=e,b=4,w=i,S=t?w-b*2:w-(b+o)*2;return{radioSize:w,dotSize:S,dotColorDisabled:c,buttonSolidCheckedColor:p,buttonSolidCheckedBg:v,buttonSolidCheckedHoverBg:g,buttonSolidCheckedActiveBg:m,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:f,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?v:y,radioBgColor:t?s:v}},fP=jn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${se(n)} ${t}`,i=un(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[I7(i),T7(i),P7(i)]},M7,{unitless:{radioSize:!0,dotSize:!0}});var N7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const R7=(e,t)=>{var n,r;const o=d.useContext(cP),i=d.useContext(uP),{getPrefixCls:a,direction:s,radio:c}=d.useContext(kt),f=d.useRef(null),p=Zr(t,f),{isFormItemInput:v}=d.useContext(Qr),g=B=>{var _,H;(_=e.onChange)===null||_===void 0||_.call(e,B),(H=o==null?void 0:o.onChange)===null||H===void 0||H.call(o,B)},{prefixCls:m,className:y,rootClassName:b,children:w,style:S,title:C}=e,E=N7(e,["prefixCls","className","rootClassName","children","style","title"]),k=a("radio",m),I=((o==null?void 0:o.optionType)||i)==="button",$=I?`${k}-button`:k,T=br(k),[N,P,D]=fP(k,T),j=Object.assign({},E),F=d.useContext(Ei);o&&(j.name=o.name,j.onChange=g,j.checked=e.value===o.value,j.disabled=(n=j.disabled)!==null&&n!==void 0?n:o.disabled),j.disabled=(r=j.disabled)!==null&&r!==void 0?r:F;const z=ae(`${$}-wrapper`,{[`${$}-wrapper-checked`]:j.checked,[`${$}-wrapper-disabled`]:j.disabled,[`${$}-wrapper-rtl`]:s==="rtl",[`${$}-wrapper-in-form-item`]:v},c==null?void 0:c.className,y,b,P,D,T);return N(d.createElement(jv,{component:"Radio",disabled:j.disabled},d.createElement("label",{className:z,style:Object.assign(Object.assign({},c==null?void 0:c.style),S),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:C},d.createElement(dP,Object.assign({},j,{className:ae(j.className,!I&&Dv),type:"radio",prefixCls:$,ref:p})),w!==void 0?d.createElement("span",null,w):null)))},D7=d.forwardRef(R7),Zp=D7,j7=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(kt),[o,i]=Fn(e.defaultValue,{value:e.value}),a=B=>{const _=o,H=B.target.value;"value"in e||i(H);const{onChange:L}=e;L&&H!==_&&L(B)},{prefixCls:s,className:c,rootClassName:f,options:p,buttonStyle:v="outline",disabled:g,children:m,size:y,style:b,id:w,onMouseEnter:S,onMouseLeave:C,onFocus:E,onBlur:k}=e,I=n("radio",s),$=`${I}-group`,T=br(I),[N,P,D]=fP(I,T);let j=m;p&&p.length>0&&(j=p.map(B=>typeof B=="string"||typeof B=="number"?d.createElement(Zp,{key:B.toString(),prefixCls:I,disabled:g,value:B,checked:o===B},B):d.createElement(Zp,{key:`radio-group-value-options-${B.value}`,prefixCls:I,disabled:B.disabled||g,value:B.value,checked:o===B.value,title:B.title,style:B.style,id:B.id,required:B.required},B.label)));const F=ii(y),z=ae($,`${$}-${v}`,{[`${$}-${F}`]:F,[`${$}-rtl`]:r==="rtl"},c,f,P,D,T);return N(d.createElement("div",Object.assign({},Do(e,{aria:!0,data:!0}),{className:z,style:b,onMouseEnter:S,onMouseLeave:C,onFocus:E,onBlur:k,id:w,ref:t}),d.createElement(k7,{value:{onChange:a,value:o,disabled:e.disabled,name:e.name,optionType:e.optionType}},j)))}),L7=d.memo(j7);var B7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const A7=(e,t)=>{const{getPrefixCls:n}=d.useContext(kt),{prefixCls:r}=e,o=B7(e,["prefixCls"]),i=n("radio",r);return d.createElement(O7,{value:"button"},d.createElement(Zp,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},z7=d.forwardRef(A7),Qv=Zp;Qv.Button=z7;Qv.Group=L7;Qv.__ANT_RADIO=!0;const pP=Qv;function vP(e){return un(e,{inputAffixPadding:e.paddingXXS})}const hP=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:c,paddingSM:f,controlPaddingHorizontalSM:p,controlPaddingHorizontal:v,colorFillAlter:g,colorPrimaryHover:m,colorPrimary:y,controlOutlineWidth:b,controlOutline:w,colorErrorOutline:S,colorWarningOutline:C,colorBgContainer:E}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-s*c)/2*10)/10-o,paddingInline:f-o,paddingInlineSM:p-o,paddingInlineLG:v-o,addonBg:g,activeBorderColor:y,hoverBorderColor:m,activeShadow:`0 0 0 ${b}px ${w}`,errorActiveShadow:`0 0 0 ${b}px ${S}`,warningActiveShadow:`0 0 0 ${b}px ${C}`,hoverBg:E,activeBg:E,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},F7=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Zv=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},F7(un(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),fw=(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}}),zE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},fw(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),H7=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fw(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Zv(e))}),zE(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),zE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),FE=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),_7=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},FE(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),FE(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Zv(e))}})}),V7=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),gP=(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}}),HE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},gP(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),W7=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gP(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Zv(e))}),HE(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),HE(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),_E=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),U7=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:`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},_E(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),_E(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:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),K7=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),mP=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${se(t)} ${se(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},pw=e=>({padding:`${se(e.paddingBlockSM)} ${se(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),vw=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${se(e.paddingBlock)} ${se(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},K7(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({},mP(e)),"&-sm":Object.assign({},pw(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),q7=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},mP(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},pw(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-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 ${se(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${se(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${se(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${se(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${se(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-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,[`${n}-select ${n}-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"},Es()),{[`${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,
& > ${n}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
& > ${n}-select-auto-complete ${t},
& > ${n}-cascader-picker ${t},
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${n}-select:first-child > ${n}-select-selector,
& > ${n}-select-auto-complete:first-child ${t},
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
& > ${n}-select:last-child > ${n}-select-selector,
& > ${n}-cascader-picker:last-child ${t},
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{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}}}})}},X7=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),vw(e)),H7(e)),W7(e)),V7(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},G7=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 ${se(e.inputAffixPadding)}`}}}},Y7=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},vw(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:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),G7(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},Q7=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},$n(e)),q7(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:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},_7(e)),U7(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}}})})}},Z7=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-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,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-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}}}}},J7=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{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:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},eV=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},hw=jn("Input",e=>{const t=un(e,vP(e));return[X7(t),J7(t),Y7(t),Q7(t),Z7(t),eV(t),Bv(t)]},hP);function tV(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?!1:o,a=r.noLeading,s=a===void 0?!1:a,c=r.debounceMode,f=c===void 0?void 0:c,p,v=!1,g=0;function m(){p&&clearTimeout(p)}function y(w){var S=w||{},C=S.upcomingOnly,E=C===void 0?!1:C;m(),v=!E}function b(){for(var w=arguments.length,S=new Array(w),C=0;C<w;C++)S[C]=arguments[C];var E=this,k=Date.now()-g;if(v)return;function I(){g=Date.now(),t.apply(E,S)}function $(){p=void 0}!s&&f&&!p&&I(),m(),f===void 0&&k>e?s?(g=Date.now(),i||(p=setTimeout(f?$:I,e))):I():i!==!0&&(p=setTimeout(f?$:I,f===void 0?e-k:e))}return b.cancel=y,b}function nV(e,t,n){var r=n||{},o=r.atBegin,i=o===void 0?!1:o;return tV(e,t,{debounceMode:i!==!1})}var dc=d.createContext(null),Nl="__rc_cascader_search_mark__",rV=function(t,n,r){var o=r.label;return n.some(function(i){return String(i[o]).toLowerCase().includes(t.toLowerCase())})},oV=function(t,n,r,o){return n.map(function(i){return i[o.label]}).join(" / ")};const iV=function(e,t,n,r,o,i){var a=o.filter,s=a===void 0?rV:a,c=o.render,f=c===void 0?oV:c,p=o.limit,v=p===void 0?50:p,g=o.sort;return d.useMemo(function(){var m=[];if(!e)return[];function y(b,w){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;b.forEach(function(C){if(!(!g&&v!==!1&&v>0&&m.length>=v)){var E=[].concat(Ee(w),[C]),k=C[n.children],I=S||C.disabled;if((!k||k.length===0||i)&&s(e,E,{label:n.label})){var $;m.push(Z(Z({},C),{},($={disabled:I},Q($,n.label,f(e,E,r,n)),Q($,Nl,E),Q($,n.children,void 0),$)))}k&&y(C[n.children],E,I)}})}return y(t,[]),g&&m.sort(function(b,w){return g(b[Nl],w[Nl],e,n)}),v!==!1&&v>0?m.slice(0,v):m},[e,t,n,r,f,i,s,g,v])};var gw="__RC_CASCADER_SPLIT__",bP="SHOW_PARENT",yP="SHOW_CHILD";function Jo(e){return e.join(gw)}function Xl(e){return e.map(Jo)}function aV(e){return e.split(gw)}function wP(e){var t=e||{},n=t.label,r=t.value,o=t.children,i=r||"value";return{label:n||"label",value:i,key:i,children:o||"children"}}function cu(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function sV(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function xP(e,t){return e.map(function(n){var r;return(r=n[Nl])===null||r===void 0?void 0:r.map(function(o){return o[t.value]})})}function lV(e){return Array.isArray(e)&&Array.isArray(e[0])}function Jp(e){return e?lV(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function SP(e,t,n){var r=new Set(e),o=t();return e.filter(function(i){var a=o[i],s=a?a.parent:null,c=a?a.children:null;return a&&a.node.disabled?!0:n===yP?!(c&&c.some(function(f){return f.key&&r.has(f.key)})):!(s&&!s.node.disabled&&r.has(s.key))})}function Gl(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=t,i=[],a=function(){var f,p,v,g=e[s],m=(f=o)===null||f===void 0?void 0:f.findIndex(function(b){var w=b[n.value];return r?String(w)===String(g):w===g}),y=m!==-1?(p=o)===null||p===void 0?void 0:p[m]:null;i.push({value:(v=y==null?void 0:y[n.value])!==null&&v!==void 0?v:g,index:m,option:y}),o=y==null?void 0:y[n.children]},s=0;s<e.length;s+=1)a();return i}const cV=function(e,t,n,r,o){return d.useMemo(function(){var i=o||function(a){var s=r?a.slice(-1):a,c=" / ";return s.every(function(f){return["string","number"].includes(Tt(f))})?s.join(c):s.reduce(function(f,p,v){var g=d.isValidElement(p)?d.cloneElement(p,{key:v}):p;return v===0?[g]:[].concat(Ee(f),[c,g])},[])};return e.map(function(a){var s,c=Gl(a,t,n),f=i(c.map(function(v){var g,m=v.option,y=v.value;return(g=m==null?void 0:m[n.label])!==null&&g!==void 0?g:y}),c.map(function(v){var g=v.option;return g})),p=Jo(a);return{label:f,value:p,key:p,valueCells:a,disabled:(s=c[c.length-1])===null||s===void 0||(s=s.option)===null||s===void 0?void 0:s.disabled}})},[e,t,n,o,r])};function CP(e,t){return d.useCallback(function(n){var r=[],o=[];return n.forEach(function(i){var a=Gl(i,e,t);a.every(function(s){return s.option})?o.push(i):r.push(i)}),[o,r]},[e,t])}function co(e,t){return e[t]}var uV=["children"];function EP(e,t){return"".concat(e,"-").concat(t)}function dV(e){return e&&e.type&&e.type.isTreeNode}function wd(e,t){return e??t}function Yl(e){var t=e||{},n=t.title,r=t._title,o=t.key,i=t.children,a=n||"title";return{title:a,_title:r||[a],key:o||"key",children:i||"children"}}function kP(e){function t(n){var r=Yr(n);return r.map(function(o){if(!dV(o))return Dn(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var i=o.key,a=o.props,s=a.children,c=jt(a,uV),f=Z({key:i},c),p=t(s);return p.length&&(f.children=p),f}).filter(function(o){return o})}return t(e)}function Sm(e,t,n){var r=Yl(n),o=r._title,i=r.key,a=r.children,s=new Set(t===!0?[]:t),c=[];function f(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return p.map(function(g,m){for(var y=EP(v?v.pos:"0",m),b=wd(g[i],y),w,S=0;S<o.length;S+=1){var C=o[S];if(g[C]!==void 0){w=g[C];break}}var E=Z(Z({},qn(g,[].concat(Ee(o),[i,a]))),{},{title:w,key:b,parent:v,pos:y,children:null,data:g,isStart:[].concat(Ee(v?v.isStart:[]),[m===0]),isEnd:[].concat(Ee(v?v.isEnd:[]),[m===p.length-1])});return c.push(E),t===!0||s.has(b)?E.children=f(g[a]||[],E):E.children=[],E})}return f(e),c}function fV(e,t,n){var r={};Tt(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var o=r,i=o.childrenPropName,a=o.externalGetKey,s=o.fieldNames,c=Yl(s),f=c.key,p=c.children,v=i||p,g;a?typeof a=="string"?g=function(b){return b[a]}:typeof a=="function"&&(g=function(b){return a(b)}):g=function(b,w){return wd(b[f],w)};function m(y,b,w,S){var C=y?y[v]:e,E=y?EP(w.pos,b):"0",k=y?[].concat(Ee(S),[y]):[];if(y){var I=g(y,E),$={node:y,index:b,pos:E,key:I,parentPos:w.node?w.pos:null,level:w.level+1,nodes:k};t($)}C&&C.forEach(function(T,N){m(T,N,{node:y,pos:E,level:w?w.level+1:-1},k)})}m(null)}function Jv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,s=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,f=i||c,p={},v={},g={posEntities:p,keyEntities:v};return n&&(g=n(g)||g),fV(e,function(m){var y=m.node,b=m.index,w=m.pos,S=m.key,C=m.parentPos,E=m.level,k=m.nodes,I={node:y,nodes:k,index:b,key:S,pos:w,level:E},$=wd(S,w);p[w]=I,v[$]=I,I.parent=p[C],I.parent&&(I.parent.children=I.parent.children||[],I.parent.children.push(I)),r&&r(I,g)},{externalGetKey:f,childrenPropName:a,fieldNames:s}),o&&o(g),g}function Su(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,f=t.dropPosition,p=t.keyEntities,v=co(p,e),g={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(v?v.pos:""),dragOver:c===e&&f===0,dragOverGapTop:c===e&&f===-1,dragOverGapBottom:c===e&&f===1};return g}function Jn(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,s=e.halfChecked,c=e.dragOver,f=e.dragOverGapTop,p=e.dragOverGapBottom,v=e.pos,g=e.active,m=e.eventKey,y=Z(Z({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:s,dragOver:c,dragOverGapTop:f,dragOverGapBottom:p,pos:v,active:g,key:m});return"props"in y||Object.defineProperty(y,"props",{get:function(){return Dn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),y}const pV=function(e,t){var n=d.useRef({options:null,info:null}),r=d.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=Jv(e,{fieldNames:t,initWrapper:function(i){return Z(Z({},i),{},{pathKeyEntities:{}})},processEntity:function(i,a){var s=i.nodes.map(function(c){return c[t.value]}).join(gw);a.pathKeyEntities[s]=i,i.key=s}})),n.current.info.pathKeyEntities},[t,e]);return r};function OP(e,t){var n=d.useMemo(function(){return t||[]},[t]),r=pV(n,e),o=d.useCallback(function(i){var a=r();return i.map(function(s){var c=a[s].nodes;return c.map(function(f){return f[e.value]})})},[r,e]);return[n,r,o]}function vV(e){return d.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&Tt(e)==="object"&&(t=Z(Z({},t),e)),t.limit<=0&&delete t.limit,[!0,t]},[e])}function $P(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function hV(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function gV(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){var s=t.get(a)||new Set;s.forEach(function(v){var g=v.key,m=v.node,y=v.children,b=y===void 0?[]:y;o.has(g)&&!r(m)&&b.filter(function(w){return!r(w.node)}).forEach(function(w){o.add(w.key)})})}for(var c=new Set,f=n;f>=0;f-=1){var p=t.get(f)||new Set;p.forEach(function(v){var g=v.parent,m=v.node;if(!(r(m)||!v.parent||c.has(v.parent.key))){if(r(v.parent.node)){c.add(g.key);return}var y=!0,b=!1;(g.children||[]).filter(function(w){return!r(w.node)}).forEach(function(w){var S=w.key,C=o.has(S);y&&!C&&(y=!1),!b&&(C||i.has(S))&&(b=!0)}),y&&o.add(g.key),b&&i.add(g.key),c.add(g.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from($P(i,o))}}function mV(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),s=0;s<=r;s+=1){var c=n.get(s)||new Set;c.forEach(function(g){var m=g.key,y=g.node,b=g.children,w=b===void 0?[]:b;!i.has(m)&&!a.has(m)&&!o(y)&&w.filter(function(S){return!o(S.node)}).forEach(function(S){i.delete(S.key)})})}a=new Set;for(var f=new Set,p=r;p>=0;p-=1){var v=n.get(p)||new Set;v.forEach(function(g){var m=g.parent,y=g.node;if(!(o(y)||!g.parent||f.has(g.parent.key))){if(o(g.parent.node)){f.add(m.key);return}var b=!0,w=!1;(m.children||[]).filter(function(S){return!o(S.node)}).forEach(function(S){var C=S.key,E=i.has(C);b&&!E&&(b=!1),!w&&(E||a.has(C))&&(w=!0)}),b||i.delete(m.key),w&&a.add(m.key),f.add(m.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from($P(a,i))}}function Hi(e,t,n,r){var o=[],i;r?i=r:i=hV;var a=new Set(e.filter(function(p){var v=!!co(n,p);return v||o.push(p),v})),s=new Map,c=0;Object.keys(n).forEach(function(p){var v=n[p],g=v.level,m=s.get(g);m||(m=new Set,s.set(g,m)),m.add(v),c=Math.max(c,g)}),Dn(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(p){return"'".concat(p,"'")}).join(", ")));var f;return t===!0?f=gV(a,s,c,i):f=mV(a,t.halfCheckedKeys,s,c,i),f}function IP(e,t,n,r,o,i,a,s){return function(c){if(!e)t(c);else{var f=Jo(c),p=Xl(n),v=Xl(r),g=p.includes(f),m=o.some(function($){return Jo($)===f}),y=n,b=o;if(m&&!g)b=o.filter(function($){return Jo($)!==f});else{var w=g?p.filter(function($){return $!==f}):[].concat(Ee(p),[f]),S=i(),C;if(g){var E=Hi(w,{checked:!1,halfCheckedKeys:v},S);C=E.checkedKeys}else{var k=Hi(w,!0,S);C=k.checkedKeys}var I=SP(C,i,s);y=a(I)}t([].concat(Ee(b),Ee(y)))}}}function TP(e,t,n,r,o){return d.useMemo(function(){var i=o(t),a=he(i,2),s=a[0],c=a[1];if(!e||!t.length)return[s,[],c];var f=Xl(s),p=n(),v=Hi(f,!0,p),g=v.checkedKeys,m=v.halfCheckedKeys;return[r(g),r(m),c]},[e,t,n,r,o])}var bV=d.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function yV(e){var t,n=e.prefixCls,r=e.checked,o=e.halfChecked,i=e.disabled,a=e.onClick,s=e.disableCheckbox,c=d.useContext(dc),f=c.checkable,p=typeof f!="boolean"?f:null;return d.createElement("span",{className:ae("".concat(n),(t={},Q(t,"".concat(n,"-checked"),r),Q(t,"".concat(n,"-indeterminate"),!r&&o),Q(t,"".concat(n,"-disabled"),i||s),t)),onClick:a},p)}var PP="__cascader_fix_label__";function wV(e){var t=e.prefixCls,n=e.multiple,r=e.options,o=e.activeValue,i=e.prevValuePath,a=e.onToggleOpen,s=e.onSelect,c=e.onActive,f=e.checkedSet,p=e.halfCheckedSet,v=e.loadingKeys,g=e.isSelectable,m=e.searchValue,y="".concat(t,"-menu"),b="".concat(t,"-menu-item"),w=d.useContext(dc),S=w.fieldNames,C=w.changeOnSelect,E=w.expandTrigger,k=w.expandIcon,I=w.loadingIcon,$=w.dropdownMenuColumnStyle,T=E==="hover",N=d.useMemo(function(){return r.map(function(P){var D,j=P.disabled,F=P.disableCheckbox,z=P[Nl],B=(D=P[PP])!==null&&D!==void 0?D:P[S.label],_=P[S.value],H=cu(P,S),L=z?z.map(function(Y){return Y[S.value]}):[].concat(Ee(i),[_]),A=Jo(L),U=v.includes(A),R=f.has(A),V=p.has(A);return{disabled:j,label:B,value:_,isLeaf:H,isLoading:U,checked:R,halfChecked:V,option:P,disableCheckbox:F,fullPath:L,fullPathKey:A}})},[r,f,S,p,v,i]);return d.createElement("ul",{className:y,role:"menu"},N.map(function(P){var D,j=P.disabled,F=P.label,z=P.value,B=P.isLeaf,_=P.isLoading,H=P.checked,L=P.halfChecked,A=P.option,U=P.fullPath,R=P.fullPathKey,V=P.disableCheckbox,Y=function(){if(!(j||m)){var K=Ee(U);T&&B&&K.pop(),c(K)}},X=function(){g(A)&&s(U,B)},q;return typeof A.title=="string"?q=A.title:typeof F=="string"&&(q=F),d.createElement("li",{key:R,className:ae(b,(D={},Q(D,"".concat(b,"-expand"),!B),Q(D,"".concat(b,"-active"),o===z||o===R),Q(D,"".concat(b,"-disabled"),j),Q(D,"".concat(b,"-loading"),_),D)),style:$,role:"menuitemcheckbox",title:q,"aria-checked":H,"data-path-key":R,onClick:function(){Y(),!V&&(!n||B)&&X()},onDoubleClick:function(){C&&a(!1)},onMouseEnter:function(){T&&Y()},onMouseDown:function(K){K.preventDefault()}},n&&d.createElement(yV,{prefixCls:"".concat(t,"-checkbox"),checked:H,halfChecked:L,disabled:j||V,disableCheckbox:V,onClick:function(K){V||(K.stopPropagation(),X())}}),d.createElement("div",{className:"".concat(b,"-content")},F),!_&&k&&!B&&d.createElement("div",{className:"".concat(b,"-expand-icon")},k),_&&I&&d.createElement("div",{className:"".concat(b,"-loading-icon")},I))}))}const xV=function(e,t){var n=d.useContext(dc),r=n.values,o=r[0],i=d.useState([]),a=he(i,2),s=a[0],c=a[1];return d.useEffect(function(){t&&!e&&c(o||[])},[t,o]),[s,c]},SV=function(e,t,n,r,o,i,a){var s=a.direction,c=a.searchValue,f=a.toggleOpen,p=a.open,v=s==="rtl",g=d.useMemo(function(){for(var $=-1,T=t,N=[],P=[],D=r.length,j=xP(t,n),F=function(L){var A=T.findIndex(function(U,R){return(j[R]?Jo(j[R]):U[n.value])===r[L]});if(A===-1)return 1;$=A,N.push($),P.push(r[L]),T=T[$][n.children]},z=0;z<D&&T&&!F(z);z+=1);for(var B=t,_=0;_<N.length-1;_+=1)B=B[N[_]][n.children];return[P,$,B,j]},[r,n,t]),m=he(g,4),y=m[0],b=m[1],w=m[2],S=m[3],C=function(T){o(T)},E=function(T){var N=w.length,P=b;P===-1&&T<0&&(P=N);for(var D=0;D<N;D+=1){P=(P+T+N)%N;var j=w[P];if(j&&!j.disabled){var F=y.slice(0,-1).concat(S[P]?Jo(S[P]):j[n.value]);C(F);return}}},k=function(){if(y.length>1){var T=y.slice(0,-1);C(T)}else f(!1)},I=function(){var T,N=((T=w[b])===null||T===void 0?void 0:T[n.children])||[],P=N.find(function(j){return!j.disabled});if(P){var D=[].concat(Ee(y),[P[n.value]]);C(D)}};d.useImperativeHandle(e,function(){return{onKeyDown:function(T){var N=T.which;switch(N){case Te.UP:case Te.DOWN:var P=0;N===Te.UP?P=-1:N===Te.DOWN&&(P=1),P!==0&&E(P);break;case Te.LEFT:if(c)break;v?I():k();break;case Te.RIGHT:if(c)break;v?k():I();break;case Te.BACKSPACE:c||k();break;case Te.ENTER:if(y.length){var D=w[b],j=(D==null?void 0:D[Nl])||[];j.length?i(j.map(function(F){return F[n.value]}),j[j.length-1]):i(y,w[b])}break;case Te.ESC:f(!1),p&&T.stopPropagation()}},onKeyUp:function(){}}})};var MP=d.forwardRef(function(e,t){var n,r,o,i=e.prefixCls,a=e.multiple,s=e.searchValue,c=e.toggleOpen,f=e.notFoundContent,p=e.direction,v=e.open,g=d.useRef(),m=p==="rtl",y=d.useContext(dc),b=y.options,w=y.values,S=y.halfValues,C=y.fieldNames,E=y.changeOnSelect,k=y.onSelect,I=y.searchOptions,$=y.dropdownPrefixCls,T=y.loadData,N=y.expandTrigger,P=$||i,D=d.useState([]),j=he(D,2),F=j[0],z=j[1],B=function(te){if(!(!T||s)){var re=Gl(te,b,C),le=re.map(function(Se){var pe=Se.option;return pe}),ge=le[le.length-1];if(ge&&!cu(ge,C)){var be=Jo(te);z(function(Se){return[].concat(Ee(Se),[be])}),T(le)}}};d.useEffect(function(){F.length&&F.forEach(function(ie){var te=aV(ie),re=Gl(te,b,C,!0).map(function(ge){var be=ge.option;return be}),le=re[re.length-1];(!le||le[C.children]||cu(le,C))&&z(function(ge){return ge.filter(function(be){return be!==ie})})})},[b,F,C]);var _=d.useMemo(function(){return new Set(Xl(w))},[w]),H=d.useMemo(function(){return new Set(Xl(S))},[S]),L=xV(a,v),A=he(L,2),U=A[0],R=A[1],V=function(te){R(te),B(te)},Y=function(te){var re=te.disabled,le=cu(te,C);return!re&&(le||E||a)},X=function(te,re){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;k(te),!a&&(re||E&&(N==="hover"||le))&&c(!1)},q=d.useMemo(function(){return s?I:b},[s,I,b]),G=d.useMemo(function(){for(var ie=[{options:q}],te=q,re=xP(te,C),le=function(){var Se=U[ge],pe=te.find(function(xe,Pe){return(re[Pe]?Jo(re[Pe]):xe[C.value])===Se}),me=pe==null?void 0:pe[C.children];if(!(me!=null&&me.length))return 1;te=me,ie.push({options:me})},ge=0;ge<U.length&&!le();ge+=1);return ie},[q,U,C]),K=function(te,re){Y(re)&&X(te,cu(re,C),!0)};SV(t,q,C,U,V,K,{direction:p,searchValue:s,toggleOpen:c,open:v}),d.useEffect(function(){for(var ie=0;ie<U.length;ie+=1){var te,re=U.slice(0,ie+1),le=Jo(re),ge=(te=g.current)===null||te===void 0?void 0:te.querySelector('li[data-path-key="'.concat(le.replace(/\\{0,2}"/g,'\\"'),'"]'));ge&&sV(ge)}},[U]);var J=!((n=G[0])!==null&&n!==void 0&&(n=n.options)!==null&&n!==void 0&&n.length),oe=[(r={},Q(r,C.value,"__EMPTY__"),Q(r,PP,f),Q(r,"disabled",!0),r)],fe=Z(Z({},e),{},{multiple:!J&&a,onSelect:X,onActive:V,onToggleOpen:c,checkedSet:_,halfCheckedSet:H,loadingKeys:F,isSelectable:Y}),ce=J?[{options:oe}]:G,ee=ce.map(function(ie,te){var re=U.slice(0,te),le=U[te];return d.createElement(wV,ke({key:te},fe,{searchValue:s,prefixCls:P,options:ie.options,prevValuePath:re,activeValue:le}))});return d.createElement(bV,{open:v},d.createElement("div",{className:ae("".concat(P,"-menus"),(o={},Q(o,"".concat(P,"-menu-empty"),J),Q(o,"".concat(P,"-rtl"),m),o)),ref:g},ee))}),CV=d.forwardRef(function(e,t){var n=cT();return d.createElement(MP,ke({},e,n,{ref:t}))});function EV(){}function NP(e){var t,n=e,r=n.prefixCls,o=r===void 0?"rc-cascader":r,i=n.style,a=n.className,s=n.options,c=n.checkable,f=n.defaultValue,p=n.value,v=n.fieldNames,g=n.changeOnSelect,m=n.onChange,y=n.showCheckedStrategy,b=n.loadData,w=n.expandTrigger,S=n.expandIcon,C=S===void 0?">":S,E=n.loadingIcon,k=n.direction,I=n.notFoundContent,$=I===void 0?"Not Found":I,T=!!c,N=Fn(f,{value:p,postState:Jp}),P=he(N,2),D=P[0],j=P[1],F=d.useMemo(function(){return wP(v)},[JSON.stringify(v)]),z=OP(F,s),B=he(z,3),_=B[0],H=B[1],L=B[2],A=CP(_,F),U=TP(T,D,H,L,A),R=he(U,3),V=R[0],Y=R[1],X=R[2],q=Rn(function(ce){if(j(ce),m){var ee=Jp(ce),ie=ee.map(function(le){return Gl(le,_,F).map(function(ge){return ge.option})}),te=T?ee:ee[0],re=T?ie:ie[0];m(te,re)}}),G=IP(T,q,V,Y,X,H,L,y),K=Rn(function(ce){G(ce)}),J=d.useMemo(function(){return{options:_,fieldNames:F,values:V,halfValues:Y,changeOnSelect:g,onSelect:K,checkable:c,searchOptions:[],dropdownPrefixCls:null,loadData:b,expandTrigger:w,expandIcon:C,loadingIcon:E,dropdownMenuColumnStyle:null}},[_,F,V,Y,g,K,c,b,w,C,E]),oe="".concat(o,"-panel"),fe=!_.length;return d.createElement(dc.Provider,{value:J},d.createElement("div",{className:ae(oe,(t={},Q(t,"".concat(oe,"-rtl"),k==="rtl"),Q(t,"".concat(oe,"-empty"),fe),t),a),style:i},fe?$:d.createElement(MP,{prefixCls:o,searchValue:null,multiple:T,toggleOpen:EV,open:!0,direction:k})))}var kV=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"],xd=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-cascader":r,i=e.fieldNames,a=e.defaultValue,s=e.value,c=e.changeOnSelect,f=e.onChange,p=e.displayRender,v=e.checkable,g=e.autoClearSearchValue,m=g===void 0?!0:g,y=e.searchValue,b=e.onSearch,w=e.showSearch,S=e.expandTrigger,C=e.options,E=e.dropdownPrefixCls,k=e.loadData,I=e.popupVisible,$=e.open,T=e.popupClassName,N=e.dropdownClassName,P=e.dropdownMenuColumnStyle,D=e.dropdownStyle,j=e.popupPlacement,F=e.placement,z=e.onDropdownVisibleChange,B=e.onPopupVisibleChange,_=e.expandIcon,H=_===void 0?">":_,L=e.loadingIcon,A=e.children,U=e.dropdownMatchSelectWidth,R=U===void 0?!1:U,V=e.showCheckedStrategy,Y=V===void 0?bP:V,X=jt(e,kV),q=xT(n),G=!!v,K=Fn(a,{value:s,postState:Jp}),J=he(K,2),oe=J[0],fe=J[1],ce=d.useMemo(function(){return wP(i)},[JSON.stringify(i)]),ee=OP(ce,C),ie=he(ee,3),te=ie[0],re=ie[1],le=ie[2],ge=Fn("",{value:y,postState:function(Qe){return Qe||""}}),be=he(ge,2),Se=be[0],pe=be[1],me=function(Qe,Xe){pe(Qe),Xe.source!=="blur"&&b&&b(Qe)},xe=vV(w),Pe=he(xe,2),Ie=Pe[0],De=Pe[1],Be=iV(Se,te,ce,E||o,De,c),qe=CP(te,ce),lt=TP(G,oe,re,le,qe),et=he(lt,3),He=et[0],Fe=et[1],Re=et[2],ft=d.useMemo(function(){var ze=Xl(He),Qe=SP(ze,re,Y);return[].concat(Ee(Re),Ee(le(Qe)))},[He,re,le,Re,Y]),Me=cV(ft,te,ce,G,p),We=Rn(function(ze){if(fe(ze),f){var Qe=Jp(ze),Xe=Qe.map(function(tt){return Gl(tt,te,ce).map(function(Ke){return Ke.option})}),rt=G?Qe:Qe[0],it=G?Xe:Xe[0];f(rt,it)}}),Le=IP(G,We,He,Fe,Re,re,le,Y),je=Rn(function(ze){(!G||m)&&pe(""),Le(ze)}),Ye=function(Qe,Xe){if(Xe.type==="clear"){We([]);return}var rt=Xe.values[0],it=rt.valueCells;je(it)},mt=$!==void 0?$:I,bt=N||T,Oe=F||j,Ge=function(Qe){z==null||z(Qe),B==null||B(Qe)},ct=d.useMemo(function(){return{options:te,fieldNames:ce,values:He,halfValues:Fe,changeOnSelect:c,onSelect:je,checkable:v,searchOptions:Be,dropdownPrefixCls:E,loadData:k,expandTrigger:S,expandIcon:H,loadingIcon:L,dropdownMenuColumnStyle:P}},[te,ce,He,Fe,c,je,v,Be,E,k,S,H,L,P]),Mt=!(Se?Be:te).length,ut=Se&&De.matchInputWidth||Mt?{}:{minWidth:"auto"};return d.createElement(dc.Provider,{value:ct},d.createElement(bT,ke({},X,{ref:t,id:q,prefixCls:o,autoClearSearchValue:m,dropdownMatchSelectWidth:R,dropdownStyle:Z(Z({},ut),D),displayValues:Me,onDisplayValuesChange:Ye,mode:G?"multiple":void 0,searchValue:Se,onSearch:me,showSearch:Ie,OptionList:CV,emptyOptions:Mt,open:mt,dropdownClassName:bt,placement:Oe,onDropdownVisibleChange:Ge,getRawInputElement:function(){return A}})))});xd.SHOW_PARENT=bP;xd.SHOW_CHILD=yP;xd.Panel=NP;function RP(e,t){const{getPrefixCls:n,direction:r,renderEmpty:o}=d.useContext(kt),i=t||r,a=n("select",e),s=n("cascader",e);return[a,s,i,o]}function DP(e,t){return d.useMemo(()=>t?d.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}function jP(e,t,n){let r=n;n||(r=t?d.createElement(vb,null):d.createElement(Xp,null));const o=d.createElement("span",{className:`${e}-menu-item-loading-icon`},d.createElement(ks,{spin:!0}));return[r,o]}const OV=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},$n(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},$n(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},$n(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Fa(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${se(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
${n}:not(${n}-disabled),
${t}:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
${n}-checked:not(${n}-disabled),
${t}-checked:not(${t}-disabled)
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function mw(e,t){const n=un(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[OV(n)]}const LP=jn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[mw(n,e)]}),$V=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,o=`
&${r}-expand ${r}-expand-icon,
${r}-loading-icon
`;return[mw(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},za),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[o]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[o]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},BP=$V,IV=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},BP(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},Bv(e)]},AP=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS}},zP=jn("Cascader",e=>[IV(e)],AP),TV=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[BP(e),{display:"inline-flex",border:`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},PV=$v(["Cascader","Panel"],e=>TV(e),AP),MV=e=>{const{prefixCls:t,className:n,multiple:r,rootClassName:o,notFoundContent:i,direction:a,expandIcon:s}=e,[c,f,p,v]=RP(t,a),g=br(f),[m,y,b]=zP(f,g);PV(f);const w=p==="rtl",[S,C]=jP(c,w,s),E=i||(v==null?void 0:v("Cascader"))||d.createElement(Wv,{componentName:"Cascader"}),k=DP(f,r);return m(d.createElement(NP,Object.assign({},e,{checkable:k,prefixCls:f,className:ae(n,y,o,b,g),notFoundContent:E,direction:p,expandIcon:S,loadingIcon:C})))},NV=MV;var RV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const{SHOW_CHILD:DV,SHOW_PARENT:jV}=xd;function LV(e,t,n){const r=e.toLowerCase().split(t).reduce((a,s,c)=>c===0?[s]:[].concat(Ee(a),[t,s]),[]),o=[];let i=0;return r.forEach((a,s)=>{const c=i+a.length;let f=e.slice(i,c);i=c,s%2===1&&(f=d.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${s}`},f)),o.push(f)}),o}const BV=(e,t,n,r)=>{const o=[],i=e.toLowerCase();return t.forEach((a,s)=>{s!==0&&o.push(" / ");let c=a[r.label];const f=typeof c;(f==="string"||f==="number")&&(c=LV(String(c),i,n)),o.push(c)}),o},fc=d.forwardRef((e,t)=>{var n;const{prefixCls:r,size:o,disabled:i,className:a,rootClassName:s,multiple:c,bordered:f=!0,transitionName:p,choiceTransitionName:v="",popupClassName:g,dropdownClassName:m,expandIcon:y,placement:b,showSearch:w,allowClear:S=!0,notFoundContent:C,direction:E,getPopupContainer:k,status:I,showArrow:$,builtinPlacements:T,style:N,variant:P}=e,D=RV(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),j=qn(D,["suffixIcon"]),{getPopupContainer:F,getPrefixCls:z,popupOverflow:B,cascader:_}=d.useContext(kt),{status:H,hasFeedback:L,isFormItemInput:A,feedbackIcon:U}=d.useContext(Qr),R=Vv(H,I),[V,Y,X,q]=RP(r,E),G=X==="rtl",K=z(),J=br(V),[oe,fe,ce]=IT(V,J),ee=br(Y),[ie]=zP(Y,ee),{compactSize:te,compactItemClassnames:re}=ac(V,E),[le,ge]=Uv(P,f),be=C||(q==null?void 0:q("Cascader"))||d.createElement(Wv,{componentName:"Cascader"}),Se=ae(g||m,`${Y}-dropdown`,{[`${Y}-dropdown-rtl`]:X==="rtl"},s,J,ee,fe,ce),pe=d.useMemo(()=>{if(!w)return w;let We={render:BV};return typeof w=="object"&&(We=Object.assign(Object.assign({},We),w)),We},[w]),me=ii(We=>{var Le;return(Le=o??te)!==null&&Le!==void 0?Le:We}),xe=d.useContext(Ei),Pe=i??xe,[Ie,De]=jP(V,G,y),Be=DP(Y,c),qe=MT(e.suffixIcon,$),{suffixIcon:lt,removeIcon:et,clearIcon:He}=PT(Object.assign(Object.assign({},e),{hasFeedback:L,feedbackIcon:U,showSuffixIcon:qe,multiple:c,prefixCls:V,componentName:"Cascader"})),Fe=d.useMemo(()=>b!==void 0?b:G?"bottomRight":"bottomLeft",[b,G]),Re=S===!0?{clearIcon:He}:S,[ft]=ic("SelectLike",(n=j.dropdownStyle)===null||n===void 0?void 0:n.zIndex),Me=d.createElement(xd,Object.assign({prefixCls:V,className:ae(!r&&Y,{[`${V}-lg`]:me==="large",[`${V}-sm`]:me==="small",[`${V}-rtl`]:G,[`${V}-${le}`]:ge,[`${V}-in-form-item`]:A},Yu(V,R,L),re,_==null?void 0:_.className,a,s,J,ee,fe,ce),disabled:Pe,style:Object.assign(Object.assign({},_==null?void 0:_.style),N)},j,{builtinPlacements:kT(T,B),direction:X,placement:Fe,notFoundContent:be,allowClear:Re,showSearch:pe,expandIcon:Ie,suffixIcon:lt,removeIcon:et,loadingIcon:De,checkable:Be,dropdownClassName:Se,dropdownPrefixCls:r||Y,dropdownStyle:Object.assign(Object.assign({},j.dropdownStyle),{zIndex:ft}),choiceTransitionName:Ui(K,"",v),transitionName:Ui(K,"slide-up",p),getPopupContainer:k||F,ref:t}));return ie(oe(Me))}),AV=qy(fc);fc.SHOW_PARENT=jV;fc.SHOW_CHILD=DV;fc.Panel=NV;fc._InternalPanelDoNotUseOrYouWillBeFired=AV;const zV=fc,FV=de.createContext(null),FP=FV;var HV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _V=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:c,onMouseEnter:f,onMouseLeave:p,skipGroup:v=!1,disabled:g}=e,m=HV(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:y,direction:b,checkbox:w}=d.useContext(kt),S=d.useContext(FP),{isFormItemInput:C}=d.useContext(Qr),E=d.useContext(Ei),k=(n=(S==null?void 0:S.disabled)||g)!==null&&n!==void 0?n:E,I=d.useRef(m.value);d.useEffect(()=>{S==null||S.registerValue(m.value)},[]),d.useEffect(()=>{if(!v)return m.value!==I.current&&(S==null||S.cancelValue(I.current),S==null||S.registerValue(m.value),I.current=m.value),()=>S==null?void 0:S.cancelValue(m.value)},[m.value]);const $=y("checkbox",r),T=br($),[N,P,D]=LP($,T),j=Object.assign({},m);S&&!v&&(j.onChange=function(){m.onChange&&m.onChange.apply(m,arguments),S.toggleOption&&S.toggleOption({label:a,value:m.value})},j.name=S.name,j.checked=S.value.includes(m.value));const F=ae(`${$}-wrapper`,{[`${$}-rtl`]:b==="rtl",[`${$}-wrapper-checked`]:j.checked,[`${$}-wrapper-disabled`]:k,[`${$}-wrapper-in-form-item`]:C},w==null?void 0:w.className,o,i,D,T,P),z=ae({[`${$}-indeterminate`]:s},Dv,P),B=s?"mixed":void 0;return N(d.createElement(jv,{component:"Checkbox",disabled:k},d.createElement("label",{className:F,style:Object.assign(Object.assign({},w==null?void 0:w.style),c),onMouseEnter:f,onMouseLeave:p},d.createElement(dP,Object.assign({"aria-checked":B},j,{prefixCls:$,className:z,disabled:k,ref:t})),a!==void 0&&d.createElement("span",null,a))))},HP=d.forwardRef(_V);var VV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const WV=d.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:s,style:c,onChange:f}=e,p=VV(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:v,direction:g}=d.useContext(kt),[m,y]=d.useState(p.value||n||[]),[b,w]=d.useState([]);d.useEffect(()=>{"value"in p&&y(p.value||[])},[p.value]);const S=d.useMemo(()=>o.map(_=>typeof _=="string"||typeof _=="number"?{label:_,value:_}:_),[o]),C=_=>{w(H=>H.filter(L=>L!==_))},E=_=>{w(H=>[].concat(Ee(H),[_]))},k=_=>{const H=m.indexOf(_.value),L=Ee(m);H===-1?L.push(_.value):L.splice(H,1),"value"in p||y(L),f==null||f(L.filter(A=>b.includes(A)).sort((A,U)=>{const R=S.findIndex(Y=>Y.value===A),V=S.findIndex(Y=>Y.value===U);return R-V}))},I=v("checkbox",i),$=`${I}-group`,T=br(I),[N,P,D]=LP(I,T),j=qn(p,["value","disabled"]),F=o.length?S.map(_=>d.createElement(HP,{prefixCls:I,key:_.value.toString(),disabled:"disabled"in _?_.disabled:p.disabled,value:_.value,checked:m.includes(_.value),onChange:_.onChange,className:`${$}-item`,style:_.style,title:_.title,id:_.id,required:_.required},_.label)):r,z={toggleOption:k,value:m,disabled:p.disabled,name:p.name,registerValue:E,cancelValue:C},B=ae($,{[`${$}-rtl`]:g==="rtl"},a,s,D,T,P);return N(d.createElement("div",Object.assign({className:B,style:c},j,{ref:t}),d.createElement(FP.Provider,{value:z},F)))}),UV=WV,$s=HP;$s.Group=UV;$s.__ANT_CHECKBOX=!0;const KV=d.createContext({}),_P=KV,qV=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"}}}},XV=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},GV=(e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let i=r;i>=0;i--)i===0?(o[`${n}${t}-${i}`]={display:"none"},o[`${n}-push-${i}`]={insetInlineStart:"auto"},o[`${n}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${i}`]={marginInlineStart:0},o[`${n}${t}-order-${i}`]={order:0}):(o[`${n}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/r*100}%`,maxWidth:`${i/r*100}%`}],o[`${n}${t}-push-${i}`]={insetInlineStart:`${i/r*100}%`},o[`${n}${t}-pull-${i}`]={insetInlineEnd:`${i/r*100}%`},o[`${n}${t}-offset-${i}`]={marginInlineStart:`${i/r*100}%`},o[`${n}${t}-order-${i}`]={order:i});return o},gb=(e,t)=>GV(e,t),YV=(e,t,n)=>({[`@media (min-width: ${se(t)})`]:Object.assign({},gb(e,n))}),QV=()=>({}),ZV=()=>({}),JV=jn("Grid",qV,QV),eW=jn("Grid",e=>{const t=un(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[XV(t),gb(t,""),gb(t,"-xs"),Object.keys(n).map(r=>YV(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},ZV);var tW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function nW(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const rW=["xs","sm","md","lg","xl","xxl"],oW=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(kt),{gutter:o,wrap:i}=d.useContext(_P),{prefixCls:a,span:s,order:c,offset:f,push:p,pull:v,className:g,children:m,flex:y,style:b}=e,w=tW(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=n("col",a),[C,E,k]=eW(S);let I={};rW.forEach(N=>{let P={};const D=e[N];typeof D=="number"?P.span=D:typeof D=="object"&&(P=D||{}),delete w[N],I=Object.assign(Object.assign({},I),{[`${S}-${N}-${P.span}`]:P.span!==void 0,[`${S}-${N}-order-${P.order}`]:P.order||P.order===0,[`${S}-${N}-offset-${P.offset}`]:P.offset||P.offset===0,[`${S}-${N}-push-${P.push}`]:P.push||P.push===0,[`${S}-${N}-pull-${P.pull}`]:P.pull||P.pull===0,[`${S}-${N}-flex-${P.flex}`]:P.flex||P.flex==="auto",[`${S}-rtl`]:r==="rtl"})});const $=ae(S,{[`${S}-${s}`]:s!==void 0,[`${S}-order-${c}`]:c,[`${S}-offset-${f}`]:f,[`${S}-push-${p}`]:p,[`${S}-pull-${v}`]:v},g,I,E,k),T={};if(o&&o[0]>0){const N=o[0]/2;T.paddingLeft=N,T.paddingRight=N}return y&&(T.flex=nW(y),i===!1&&!T.minWidth&&(T.minWidth=0)),C(d.createElement("div",Object.assign({},w,{style:Object.assign(Object.assign({},T),b),className:$,ref:t}),m))}),ev=oW;var iW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function VE(e,t){const[n,r]=d.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<Qu.length;i++){const a=Qu[i];if(!t[a])continue;const s=e[a];if(s!==void 0){r(s);return}}};return d.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const aW=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:c=0,wrap:f}=e,p=iW(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:v,direction:g}=d.useContext(kt),[m,y]=d.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[b,w]=d.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),S=VE(o,b),C=VE(r,b),E=d.useRef(c),k=RT();d.useEffect(()=>{const L=k.subscribe(A=>{w(A);const U=E.current||0;(!Array.isArray(U)&&typeof U=="object"||Array.isArray(U)&&(typeof U[0]=="object"||typeof U[1]=="object"))&&y(A)});return()=>k.unsubscribe(L)},[]);const I=()=>{const L=[void 0,void 0];return(Array.isArray(c)?c:[c,void 0]).forEach((U,R)=>{if(typeof U=="object")for(let V=0;V<Qu.length;V++){const Y=Qu[V];if(m[Y]&&U[Y]!==void 0){L[R]=U[Y];break}}else L[R]=U}),L},$=v("row",n),[T,N,P]=JV($),D=I(),j=ae($,{[`${$}-no-wrap`]:f===!1,[`${$}-${C}`]:C,[`${$}-${S}`]:S,[`${$}-rtl`]:g==="rtl"},i,N,P),F={},z=D[0]!=null&&D[0]>0?D[0]/-2:void 0;z&&(F.marginLeft=z,F.marginRight=z),[,F.rowGap]=D;const[B,_]=D,H=d.useMemo(()=>({gutter:[B,_],wrap:f}),[B,_,f]);return T(d.createElement(_P.Provider,{value:H},d.createElement("div",Object.assign({},p,{className:j,style:Object.assign(Object.assign({},F),a),ref:t}),s)))}),VP=aW;function sW(e){return!!(e.addonBefore||e.addonAfter)}function lW(e){return!!(e.prefix||e.suffix||e.allowClear)}function tv(e,t,n,r){if(n){var o=t;if(t.type==="click"){var i=e.cloneNode(!0);o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",n(o);return}if(e.type!=="file"&&r!==void 0){var a=e.cloneNode(!0);o=Object.create(t,{target:{value:a},currentTarget:{value:a}}),a.value=r,n(o);return}n(o)}}function cW(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var WP=function(t){var n,r,o=t.inputElement,i=t.children,a=t.prefixCls,s=t.prefix,c=t.suffix,f=t.addonBefore,p=t.addonAfter,v=t.className,g=t.style,m=t.disabled,y=t.readOnly,b=t.focused,w=t.triggerFocus,S=t.allowClear,C=t.value,E=t.handleReset,k=t.hidden,I=t.classes,$=t.classNames,T=t.dataAttrs,N=t.styles,P=t.components,D=i??o,j=(P==null?void 0:P.affixWrapper)||"span",F=(P==null?void 0:P.groupWrapper)||"span",z=(P==null?void 0:P.wrapper)||"span",B=(P==null?void 0:P.groupAddon)||"span",_=d.useRef(null),H=function(re){var le;(le=_.current)!==null&&le!==void 0&&le.contains(re.target)&&(w==null||w())},L=lW(t),A=d.cloneElement(D,{value:C,className:ae(D.props.className,!L&&($==null?void 0:$.variant))||null});if(L){var U,R=null;if(S){var V,Y=!m&&!y&&C,X="".concat(a,"-clear-icon"),q=Tt(S)==="object"&&S!==null&&S!==void 0&&S.clearIcon?S.clearIcon:"✖";R=de.createElement("span",{onClick:E,onMouseDown:function(re){return re.preventDefault()},className:ae(X,(V={},Q(V,"".concat(X,"-hidden"),!Y),Q(V,"".concat(X,"-has-suffix"),!!c),V)),role:"button",tabIndex:-1},q)}var G="".concat(a,"-affix-wrapper"),K=ae(G,(U={},Q(U,"".concat(a,"-disabled"),m),Q(U,"".concat(G,"-disabled"),m),Q(U,"".concat(G,"-focused"),b),Q(U,"".concat(G,"-readonly"),y),Q(U,"".concat(G,"-input-with-clear-btn"),c&&S&&C),U),I==null?void 0:I.affixWrapper,$==null?void 0:$.affixWrapper,$==null?void 0:$.variant),J=(c||S)&&de.createElement("span",{className:ae("".concat(a,"-suffix"),$==null?void 0:$.suffix),style:N==null?void 0:N.suffix},R,c);A=de.createElement(j,ke({className:K,style:N==null?void 0:N.affixWrapper,onClick:H},T==null?void 0:T.affixWrapper,{ref:_}),s&&de.createElement("span",{className:ae("".concat(a,"-prefix"),$==null?void 0:$.prefix),style:N==null?void 0:N.prefix},s),A,J)}if(sW(t)){var oe="".concat(a,"-group"),fe="".concat(oe,"-addon"),ce="".concat(oe,"-wrapper"),ee=ae("".concat(a,"-wrapper"),oe,I==null?void 0:I.wrapper,$==null?void 0:$.wrapper),ie=ae(ce,Q({},"".concat(ce,"-disabled"),m),I==null?void 0:I.group,$==null?void 0:$.groupWrapper);A=de.createElement(F,{className:ie},de.createElement(z,{className:ee},f&&de.createElement(B,{className:fe},f),A,p&&de.createElement(B,{className:fe},p)))}return de.cloneElement(A,{className:ae((n=A.props)===null||n===void 0?void 0:n.className,v)||null,style:Z(Z({},(r=A.props)===null||r===void 0?void 0:r.style),g),hidden:k})},uW=["show"];function UP(e,t){return d.useMemo(function(){var n={};t&&(n.show=Tt(t)==="object"&&t.formatter?t.formatter:!!t),n=Z(Z({},n),e);var r=n,o=r.show,i=jt(r,uW);return Z(Z({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var dW=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],fW=d.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,c=e.prefixCls,f=c===void 0?"rc-input":c,p=e.disabled,v=e.htmlSize,g=e.className,m=e.maxLength,y=e.suffix,b=e.showCount,w=e.count,S=e.type,C=S===void 0?"text":S,E=e.classes,k=e.classNames,I=e.styles,$=e.onCompositionStart,T=e.onCompositionEnd,N=jt(e,dW),P=d.useState(!1),D=he(P,2),j=D[0],F=D[1],z=d.useRef(!1),B=d.useRef(null),_=function(me){B.current&&cW(B.current,me)},H=Fn(e.defaultValue,{value:e.value}),L=he(H,2),A=L[0],U=L[1],R=A==null?"":String(A),V=d.useState(null),Y=he(V,2),X=Y[0],q=Y[1],G=UP(w,b),K=G.max||m,J=G.strategy(R),oe=!!K&&J>K;d.useImperativeHandle(t,function(){return{focus:_,blur:function(){var me;(me=B.current)===null||me===void 0||me.blur()},setSelectionRange:function(me,xe,Pe){var Ie;(Ie=B.current)===null||Ie===void 0||Ie.setSelectionRange(me,xe,Pe)},select:function(){var me;(me=B.current)===null||me===void 0||me.select()},input:B.current}}),d.useEffect(function(){F(function(pe){return pe&&p?!1:pe})},[p]);var fe=function(me,xe,Pe){var Ie=xe;if(!z.current&&G.exceedFormatter&&G.max&&G.strategy(xe)>G.max){if(Ie=G.exceedFormatter(xe,{max:G.max}),xe!==Ie){var De,Be;q([((De=B.current)===null||De===void 0?void 0:De.selectionStart)||0,((Be=B.current)===null||Be===void 0?void 0:Be.selectionEnd)||0])}}else if(Pe.source==="compositionEnd")return;U(Ie),B.current&&tv(B.current,me,r,Ie)};d.useEffect(function(){if(X){var pe;(pe=B.current)===null||pe===void 0||pe.setSelectionRange.apply(pe,Ee(X))}},[X]);var ce=function(me){fe(me,me.target.value,{source:"change"})},ee=function(me){z.current=!1,fe(me,me.currentTarget.value,{source:"compositionEnd"}),T==null||T(me)},ie=function(me){a&&me.key==="Enter"&&a(me),s==null||s(me)},te=function(me){F(!0),o==null||o(me)},re=function(me){F(!1),i==null||i(me)},le=function(me){U(""),_(),B.current&&tv(B.current,me,r)},ge=oe&&"".concat(f,"-out-of-range"),be=function(){var me=qn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return de.createElement("input",ke({autoComplete:n},me,{onChange:ce,onFocus:te,onBlur:re,onKeyDown:ie,className:ae(f,Q({},"".concat(f,"-disabled"),p),k==null?void 0:k.input),style:I==null?void 0:I.input,ref:B,size:v,type:C,onCompositionStart:function(Pe){z.current=!0,$==null||$(Pe)},onCompositionEnd:ee}))},Se=function(){var me=Number(K)>0;if(y||G.show){var xe=G.showFormatter?G.showFormatter({value:R,count:J,maxLength:K}):"".concat(J).concat(me?" / ".concat(K):"");return de.createElement(de.Fragment,null,G.show&&de.createElement("span",{className:ae("".concat(f,"-show-count-suffix"),Q({},"".concat(f,"-show-count-has-suffix"),!!y),k==null?void 0:k.count),style:Z({},I==null?void 0:I.count)},xe),y)}return null};return de.createElement(WP,ke({},N,{prefixCls:f,className:ae(g,ge),handleReset:le,value:R,focused:j,triggerFocus:_,suffix:Se(),disabled:p,classes:E,classNames:k,styles:I}),be())});const pW=e=>{const{getPrefixCls:t,direction:n}=d.useContext(kt),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,c]=hw(a),f=ae(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},c,o),p=d.useContext(Qr),v=d.useMemo(()=>Object.assign(Object.assign({},p),{isFormItemInput:!1}),[p]);return s(d.createElement("span",{className:f,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},d.createElement(Qr.Provider,{value:v},e.children)))},vW=pW;function KP(e,t){const n=d.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return d.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function hW(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const gW=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:de.createElement(rc,null)}),t};var mW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function bW(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r);break}}}const yW=d.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:s,onBlur:c,onFocus:f,suffix:p,allowClear:v,addonAfter:g,addonBefore:m,className:y,style:b,styles:w,rootClassName:S,onChange:C,classNames:E,variant:k}=e,I=mW(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:$,direction:T,input:N}=de.useContext(kt),P=$("input",r),D=d.useRef(null),j=br(P),[F,z,B]=hw(P,j),{compactSize:_,compactItemClassnames:H}=ac(P,T),L=ii(te=>{var re;return(re=a??_)!==null&&re!==void 0?re:te}),A=de.useContext(Ei),U=s??A,{status:R,hasFeedback:V,feedbackIcon:Y}=d.useContext(Qr),X=Vv(R,i),q=hW(e)||!!V;d.useRef(q);const G=KP(D,!0),K=te=>{G(),c==null||c(te)},J=te=>{G(),f==null||f(te)},oe=te=>{G(),C==null||C(te)},fe=(V||p)&&de.createElement(de.Fragment,null,p,V&&Y),ce=gW(v),[ee,ie]=Uv(k,o);return F(de.createElement(fW,Object.assign({ref:Zr(t,D),prefixCls:P,autoComplete:N==null?void 0:N.autoComplete},I,{disabled:U,onBlur:K,onFocus:J,style:Object.assign(Object.assign({},N==null?void 0:N.style),b),styles:Object.assign(Object.assign({},N==null?void 0:N.styles),w),suffix:fe,allowClear:ce,className:ae(y,S,B,j,H,N==null?void 0:N.className),onChange:oe,addonAfter:g&&de.createElement(Uu,null,de.createElement(rb,{override:!0,status:!0},g)),addonBefore:m&&de.createElement(Uu,null,de.createElement(rb,{override:!0,status:!0},m)),classNames:Object.assign(Object.assign(Object.assign({},E),N==null?void 0:N.classNames),{input:ae({[`${P}-sm`]:L==="small",[`${P}-lg`]:L==="large",[`${P}-rtl`]:T==="rtl"},E==null?void 0:E.input,(n=N==null?void 0:N.classNames)===null||n===void 0?void 0:n.input,z),variant:ae({[`${P}-${ee}`]:ie},Yu(P,X)),affixWrapper:ae({[`${P}-affix-wrapper-sm`]:L==="small",[`${P}-affix-wrapper-lg`]:L==="large",[`${P}-affix-wrapper-rtl`]:T==="rtl"},z),wrapper:ae({[`${P}-group-rtl`]:T==="rtl"},z),groupWrapper:ae({[`${P}-group-wrapper-sm`]:L==="small",[`${P}-group-wrapper-lg`]:L==="large",[`${P}-group-wrapper-rtl`]:T==="rtl",[`${P}-group-wrapper-${ee}`]:ie},Yu(`${P}-group-wrapper`,X,V),z)})})))}),bw=yW;var wW={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 xW=wW;var SW=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:xW}))};const CW=d.forwardRef(SW);var EW={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 kW=EW;var OW=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:kW}))};const qP=d.forwardRef(OW);var $W=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const IW=e=>e?d.createElement(qP,null):d.createElement(CW,null),TW={click:"onClick",hover:"onMouseOver"},PW=d.forwardRef((e,t)=>{const{visibilityToggle:n=!0}=e,r=typeof n=="object"&&n.visible!==void 0,[o,i]=d.useState(()=>r?n.visible:!1),a=d.useRef(null);d.useEffect(()=>{r&&i(n.visible)},[r,n]);const s=KP(a),c=()=>{const{disabled:I}=e;I||(o&&s(),i($=>{var T;const N=!$;return typeof n=="object"&&((T=n.onVisibleChange)===null||T===void 0||T.call(n,N)),N}))},f=I=>{const{action:$="click",iconRender:T=IW}=e,N=TW[$]||"",P=T(o),D={[N]:c,className:`${I}-icon`,key:"passwordIcon",onMouseDown:j=>{j.preventDefault()},onMouseUp:j=>{j.preventDefault()}};return d.cloneElement(d.isValidElement(P)?P:d.createElement("span",null,P),D)},{className:p,prefixCls:v,inputPrefixCls:g,size:m}=e,y=$W(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:b}=d.useContext(kt),w=b("input",g),S=b("input-password",v),C=n&&f(S),E=ae(S,p,{[`${S}-${m}`]:!!m}),k=Object.assign(Object.assign({},qn(y,["suffix","iconRender","visibilityToggle"])),{type:o?"text":"password",className:E,prefixCls:w,suffix:C});return m&&(k.size=m),d.createElement(bw,Object.assign({ref:Zr(t,a)},k))}),MW=PW;var NW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const RW=d.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:c,loading:f,disabled:p,onSearch:v,onChange:g,onCompositionStart:m,onCompositionEnd:y}=e,b=NW(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:w,direction:S}=d.useContext(kt),C=d.useRef(!1),E=w("input-search",n),k=w("input",r),{compactSize:I}=ac(E,S),$=ii(R=>{var V;return(V=i??I)!==null&&V!==void 0?V:R}),T=d.useRef(null),N=R=>{R&&R.target&&R.type==="click"&&v&&v(R.target.value,R,{source:"clear"}),g&&g(R)},P=R=>{var V;document.activeElement===((V=T.current)===null||V===void 0?void 0:V.input)&&R.preventDefault()},D=R=>{var V,Y;v&&v((Y=(V=T.current)===null||V===void 0?void 0:V.input)===null||Y===void 0?void 0:Y.value,R,{source:"input"})},j=R=>{C.current||f||D(R)},F=typeof s=="boolean"?d.createElement(ew,null):null,z=`${E}-button`;let B;const _=s||{},H=_.type&&_.type.__ANT_BUTTON===!0;H||_.type==="button"?B=mr(_,Object.assign({onMouseDown:P,onClick:R=>{var V,Y;(Y=(V=_==null?void 0:_.props)===null||V===void 0?void 0:V.onClick)===null||Y===void 0||Y.call(V,R),D(R)},key:"enterButton"},H?{className:z,size:$}:{})):B=d.createElement(zr,{className:z,type:s?"primary":void 0,size:$,disabled:p,key:"enterButton",onMouseDown:P,onClick:D,loading:f,icon:F},s),c&&(B=[B,mr(c,{key:"addonAfter"})]);const L=ae(E,{[`${E}-rtl`]:S==="rtl",[`${E}-${$}`]:!!$,[`${E}-with-button`]:!!s},o),A=R=>{C.current=!0,m==null||m(R)},U=R=>{C.current=!1,y==null||y(R)};return d.createElement(bw,Object.assign({ref:Zr(T,t),onPressEnter:j},b,{size:$,onCompositionStart:A,onCompositionEnd:U,prefixCls:k,addonAfter:B,suffix:a,onChange:N,className:L,disabled:p}))}),DW=RW;var jW=`
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;
`,LW=["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"],Cm={},Co;function BW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Cm[n])return Cm[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=LW.map(function(f){return"".concat(f,":").concat(r.getPropertyValue(f))}).join(";"),c={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Cm[n]=c),c}function AW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Co||(Co=document.createElement("textarea"),Co.setAttribute("tab-index","-1"),Co.setAttribute("aria-hidden","true"),document.body.appendChild(Co)),e.getAttribute("wrap")?Co.setAttribute("wrap",e.getAttribute("wrap")):Co.removeAttribute("wrap");var o=BW(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,c=o.sizingStyle;Co.setAttribute("style","".concat(c,";").concat(jW)),Co.value=e.value||e.placeholder||"";var f=void 0,p=void 0,v,g=Co.scrollHeight;if(s==="border-box"?g+=a:s==="content-box"&&(g-=i),n!==null||r!==null){Co.value=" ";var m=Co.scrollHeight-i;n!==null&&(f=m*n,s==="border-box"&&(f=f+i+a),g=Math.max(f,g)),r!==null&&(p=m*r,s==="border-box"&&(p=p+i+a),v=g>p?"":"hidden",g=Math.min(p,g))}var y={height:g,overflowY:v,resize:"none"};return f&&(y.minHeight=f),p&&(y.maxHeight=p),y}var zW=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Em=0,km=1,Om=2,FW=d.forwardRef(function(e,t){var n=e,r=n.prefixCls;n.onPressEnter;var o=n.defaultValue,i=n.value,a=n.autoSize,s=n.onResize,c=n.className,f=n.style,p=n.disabled,v=n.onChange;n.onInternalAutoSize;var g=jt(n,zW),m=Fn(o,{value:i,postState:function(q){return q??""}}),y=he(m,2),b=y[0],w=y[1],S=function(q){w(q.target.value),v==null||v(q)},C=d.useRef();d.useImperativeHandle(t,function(){return{textArea:C.current}});var E=d.useMemo(function(){return a&&Tt(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),k=he(E,2),I=k[0],$=k[1],T=!!a,N=function(){try{if(document.activeElement===C.current){var q=C.current,G=q.selectionStart,K=q.selectionEnd,J=q.scrollTop;C.current.setSelectionRange(G,K),C.current.scrollTop=J}}catch{}},P=d.useState(Om),D=he(P,2),j=D[0],F=D[1],z=d.useState(),B=he(z,2),_=B[0],H=B[1],L=function(){F(Em)};on(function(){T&&L()},[i,I,$,T]),on(function(){if(j===Em)F(km);else if(j===km){var X=AW(C.current,!1,I,$);F(Om),H(X)}else N()},[j]);var A=d.useRef(),U=function(){vn.cancel(A.current)},R=function(q){j===Om&&(s==null||s(q),a&&(U(),A.current=vn(function(){L()})))};d.useEffect(function(){return U},[]);var V=T?_:null,Y=Z(Z({},f),V);return(j===Em||j===km)&&(Y.overflowY="hidden",Y.overflowX="hidden"),d.createElement(Lo,{onResize:R,disabled:!(a||s)},d.createElement("textarea",ke({},g,{ref:C,style:Y,className:ae(r,c,Q({},"".concat(r,"-disabled"),p)),disabled:p,value:b,onChange:S})))}),HW=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],_W=de.forwardRef(function(e,t){var n,r,o=e.defaultValue,i=e.value,a=e.onFocus,s=e.onBlur,c=e.onChange,f=e.allowClear,p=e.maxLength,v=e.onCompositionStart,g=e.onCompositionEnd,m=e.suffix,y=e.prefixCls,b=y===void 0?"rc-textarea":y,w=e.showCount,S=e.count,C=e.className,E=e.style,k=e.disabled,I=e.hidden,$=e.classNames,T=e.styles,N=e.onResize,P=jt(e,HW),D=Fn(o,{value:i,defaultValue:o}),j=he(D,2),F=j[0],z=j[1],B=F==null?"":String(F),_=de.useState(!1),H=he(_,2),L=H[0],A=H[1],U=de.useRef(!1),R=de.useState(null),V=he(R,2),Y=V[0],X=V[1],q=d.useRef(null),G=function(){var He;return(He=q.current)===null||He===void 0?void 0:He.textArea},K=function(){G().focus()};d.useImperativeHandle(t,function(){return{resizableTextArea:q.current,focus:K,blur:function(){G().blur()}}}),d.useEffect(function(){A(function(et){return!k&&et})},[k]);var J=de.useState(null),oe=he(J,2),fe=oe[0],ce=oe[1];de.useEffect(function(){if(fe){var et;(et=G()).setSelectionRange.apply(et,Ee(fe))}},[fe]);var ee=UP(S,w),ie=(n=ee.max)!==null&&n!==void 0?n:p,te=Number(ie)>0,re=ee.strategy(B),le=!!ie&&re>ie,ge=function(He,Fe){var Re=Fe;!U.current&&ee.exceedFormatter&&ee.max&&ee.strategy(Fe)>ee.max&&(Re=ee.exceedFormatter(Fe,{max:ee.max}),Fe!==Re&&ce([G().selectionStart||0,G().selectionEnd||0])),z(Re),tv(He.currentTarget,He,c,Re)},be=function(He){U.current=!0,v==null||v(He)},Se=function(He){U.current=!1,ge(He,He.currentTarget.value),g==null||g(He)},pe=function(He){ge(He,He.target.value)},me=function(He){var Fe=P.onPressEnter,Re=P.onKeyDown;He.key==="Enter"&&Fe&&Fe(He),Re==null||Re(He)},xe=function(He){A(!0),a==null||a(He)},Pe=function(He){A(!1),s==null||s(He)},Ie=function(He){z(""),K(),tv(G(),He,c)},De=m,Be;ee.show&&(ee.showFormatter?Be=ee.showFormatter({value:B,count:re,maxLength:ie}):Be="".concat(re).concat(te?" / ".concat(ie):""),De=de.createElement(de.Fragment,null,De,de.createElement("span",{className:ae("".concat(b,"-data-count"),$==null?void 0:$.count),style:T==null?void 0:T.count},Be)));var qe=function(He){var Fe;N==null||N(He),(Fe=G())!==null&&Fe!==void 0&&Fe.style.height&&X(!0)},lt=!P.autoSize&&!w&&!f;return de.createElement(WP,{value:B,allowClear:f,handleReset:Ie,suffix:De,prefixCls:b,classNames:Z(Z({},$),{},{affixWrapper:ae($==null?void 0:$.affixWrapper,(r={},Q(r,"".concat(b,"-show-count"),w),Q(r,"".concat(b,"-textarea-allow-clear"),f),r))}),disabled:k,focused:L,className:ae(C,le&&"".concat(b,"-out-of-range")),style:Z(Z({},E),Y&&!lt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Be=="string"?Be:void 0}},hidden:I},de.createElement(FW,ke({},P,{maxLength:p,onKeyDown:me,onChange:pe,onFocus:xe,onBlur:Pe,onCompositionStart:be,onCompositionEnd:Se,className:ae($==null?void 0:$.textarea),style:Z(Z({},T==null?void 0:T.textarea),{},{resize:E==null?void 0:E.resize}),disabled:k,prefixCls:b,onResize:qe,ref:q})))}),VW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const WW=d.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:s,allowClear:c,classNames:f,rootClassName:p,className:v,variant:g}=e,m=VW(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","variant"]),{getPrefixCls:y,direction:b}=d.useContext(kt),w=ii(i),S=d.useContext(Ei),C=a??S,{status:E,hasFeedback:k,feedbackIcon:I}=d.useContext(Qr),$=Vv(E,s),T=d.useRef(null);d.useImperativeHandle(t,()=>{var H;return{resizableTextArea:(H=T.current)===null||H===void 0?void 0:H.resizableTextArea,focus:L=>{var A,U;bW((U=(A=T.current)===null||A===void 0?void 0:A.resizableTextArea)===null||U===void 0?void 0:U.textArea,L)},blur:()=>{var L;return(L=T.current)===null||L===void 0?void 0:L.blur()}}});const N=y("input",r);let P;typeof c=="object"&&(c!=null&&c.clearIcon)?P=c:c&&(P={clearIcon:d.createElement(rc,null)});const D=br(N),[j,F,z]=hw(N,D),[B,_]=Uv(g,o);return j(d.createElement(_W,Object.assign({},m,{disabled:C,allowClear:P,className:ae(z,D,v,p),classNames:Object.assign(Object.assign({},f),{textarea:ae({[`${N}-sm`]:w==="small",[`${N}-lg`]:w==="large"},F,f==null?void 0:f.textarea),variant:ae({[`${N}-${B}`]:_},Yu(N,$)),affixWrapper:ae(`${N}-textarea-affix-wrapper`,{[`${N}-affix-wrapper-rtl`]:b==="rtl",[`${N}-affix-wrapper-sm`]:w==="small",[`${N}-affix-wrapper-lg`]:w==="large",[`${N}-textarea-show-count`]:e.showCount||((n=e.count)===null||n===void 0?void 0:n.show)},F)}),prefixCls:N,suffix:k&&d.createElement("span",{className:`${N}-textarea-suffix`},I),ref:T})))}),XP=WW,Sd=bw;Sd.Group=vW;Sd.Search=DW;Sd.TextArea=XP;Sd.Password=MW;const fs=Sd;function WE(e){return["small","middle","large"].includes(e)}function UE(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const GP=de.createContext({latestIndex:0}),UW=GP.Provider,KW=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=d.useContext(GP);return r==null?null:d.createElement(d.Fragment,null,d.createElement("div",{className:t,style:i},r),n<a&&o&&d.createElement("span",{className:`${t}-split`},o))},qW=KW;var XW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const GW=d.forwardRef((e,t)=>{var n,r;const{getPrefixCls:o,space:i,direction:a}=d.useContext(kt),{size:s=(i==null?void 0:i.size)||"small",align:c,className:f,rootClassName:p,children:v,direction:g="horizontal",prefixCls:m,split:y,style:b,wrap:w=!1,classNames:S,styles:C}=e,E=XW(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[k,I]=Array.isArray(s)?s:[s,s],$=WE(I),T=WE(k),N=UE(I),P=UE(k),D=Yr(v,{keepEmpty:!0}),j=c===void 0&&g==="horizontal"?"center":c,F=o("space",m),[z,B,_]=mI(F),H=ae(F,i==null?void 0:i.className,B,`${F}-${g}`,{[`${F}-rtl`]:a==="rtl",[`${F}-align-${j}`]:j,[`${F}-gap-row-${I}`]:$,[`${F}-gap-col-${k}`]:T},f,p,_),L=ae(`${F}-item`,(n=S==null?void 0:S.item)!==null&&n!==void 0?n:(r=i==null?void 0:i.classNames)===null||r===void 0?void 0:r.item);let A=0;const U=D.map((Y,X)=>{var q,G;Y!=null&&(A=X);const K=Y&&Y.key||`${L}-${X}`;return d.createElement(qW,{className:L,key:K,index:X,split:y,style:(q=C==null?void 0:C.item)!==null&&q!==void 0?q:(G=i==null?void 0:i.styles)===null||G===void 0?void 0:G.item},Y)}),R=d.useMemo(()=>({latestIndex:A}),[A]);if(D.length===0)return null;const V={};return w&&(V.flexWrap="wrap"),!T&&P&&(V.columnGap=k),!$&&N&&(V.rowGap=I),z(d.createElement("div",Object.assign({ref:t,className:H,style:Object.assign(Object.assign(Object.assign({},V),i==null?void 0:i.style),b)},E),d.createElement(UW,{value:R},U)))}),YP=GW;YP.Compact=Nz;const QP=YP;var YW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ZP=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=d.useContext(kt),{prefixCls:o,type:i="default",danger:a,disabled:s,loading:c,onClick:f,htmlType:p,children:v,className:g,menu:m,arrow:y,autoFocus:b,overlay:w,trigger:S,align:C,open:E,onOpenChange:k,placement:I,getPopupContainer:$,href:T,icon:N=d.createElement(nP,null),title:P,buttonsRender:D=oe=>oe,mouseEnterDelay:j,mouseLeaveDelay:F,overlayClassName:z,overlayStyle:B,destroyPopupOnHide:_,dropdownRender:H}=e,L=YW(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),A=n("dropdown",o),U=`${A}-button`,R={menu:m,arrow:y,autoFocus:b,align:C,disabled:s,trigger:s?[]:S,onOpenChange:k,getPopupContainer:$||t,mouseEnterDelay:j,mouseLeaveDelay:F,overlayClassName:z,overlayStyle:B,destroyPopupOnHide:_,dropdownRender:H},{compactSize:V,compactItemClassnames:Y}=ac(A,r),X=ae(U,Y,g);"overlay"in e&&(R.overlay=w),"open"in e&&(R.open=E),"placement"in e?R.placement=I:R.placement=r==="rtl"?"bottomLeft":"bottomRight";const q=d.createElement(zr,{type:i,danger:a,disabled:s,loading:c,onClick:f,htmlType:p,href:T,title:P},v),G=d.createElement(zr,{type:i,danger:a,icon:N}),[K,J]=D([q,G]);return d.createElement(QP.Compact,Object.assign({className:X,size:V,block:!0},L),K,d.createElement(lP,Object.assign({},R),J))};ZP.__ANT_BUTTON=!0;const QW=ZP,JP=lP;JP.Button=QW;const eM=JP;var ZW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const JW=ZW;var eU=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:JW}))};const tU=d.forwardRef(eU);function nv(e){const[t,n]=d.useState(e);return d.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const nU=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},
opacity ${e.motionDurationSlow} ${e.motionEaseInOut},
transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},rU=nU,oU=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${se(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 ${se(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),KE=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},iU=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},$n(e)),oU(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},KE(e,e.controlHeightSM)),"&-large":Object.assign({},KE(e,e.controlHeightLG))})}},aU=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:f,labelColonMarginInlineEnd:p,itemMarginBottom:v}=e;return{[t]:Object.assign(Object.assign({},$n(e)),{marginBottom:v,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:a,fontSize:s,[`> ${n}`]:{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:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-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:f,marginInlineEnd:p},[`&${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:Ky,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},sU=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},lU=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Cl=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),cU=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Cl(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},uU=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,
.${r}-col-24${n}-label,
.${r}-col-xl-24${n}-label`]:Cl(e),[`@media (max-width: ${se(e.screenXSMax)})`]:[cU(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:Cl(e)}}],[`@media (max-width: ${se(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:Cl(e)}},[`@media (max-width: ${se(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:Cl(e)}},[`@media (max-width: ${se(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:Cl(e)}}}},dU=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}),tM=(e,t)=>un(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),yw=jn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=tM(e,n);return[iU(r),aU(r),rU(r),sU(r),lU(r),uU(r),zv(r),Ky]},dU,{order:-1e3}),qE=[];function $m(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const fU=e=>{let{help:t,helpStatus:n,errors:r=qE,warnings:o=qE,className:i,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:c}=d.useContext(Hy),f=`${c}-item-explain`,p=br(c),[v,g,m]=yw(c,p),y=d.useMemo(()=>Wu(c),[c]),b=nv(r),w=nv(o),S=d.useMemo(()=>t!=null?[$m(t,"help",n)]:[].concat(Ee(b.map((E,k)=>$m(E,"error","error",k))),Ee(w.map((E,k)=>$m(E,"warning","warning",k)))),[t,n,b,w]),C={};return a&&(C.id=`${a}_help`),v(d.createElement(Bo,{motionDeadline:y.motionDeadline,motionName:`${c}-show-help`,visible:!!S.length,onVisibleChanged:s},E=>{const{className:k,style:I}=E;return d.createElement("div",Object.assign({},C,{className:ae(f,k,m,p,i,g),style:I,role:"alert"}),d.createElement(oI,Object.assign({keys:S},Wu(c),{motionName:`${c}-show-help-item`,component:!1}),$=>{const{key:T,error:N,errorStatus:P,className:D,style:j}=$;return d.createElement("div",{key:T,className:ae(D,{[`${f}-${P}`]:P}),style:j},N)}))}))},nM=fU,pU=["parentNode"],vU="form_item";function Cu(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function rM(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:pU.includes(n)?`${vU}_${n}`:n}function oM(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function XE(e){return Cu(e).join("_")}function iM(e){const[t]=Fy(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=XE(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=Cu(o),s=rM(a,r.__INTERNAL__.name),c=s?document.getElementById(s):null;c&&YA(c,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},getFieldInstance:o=>{const i=XE(o);return n.current[i]}}),[e,t]);return[r]}var hU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const gU=(e,t)=>{const n=d.useContext(Ei),{getPrefixCls:r,direction:o,form:i}=d.useContext(kt),{prefixCls:a,className:s,rootClassName:c,size:f,disabled:p=n,form:v,colon:g,labelAlign:m,labelWrap:y,labelCol:b,wrapperCol:w,hideRequiredMark:S,layout:C="horizontal",scrollToFirstError:E,requiredMark:k,onFinishFailed:I,name:$,style:T,feedbackIcons:N,variant:P}=e,D=hU(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),j=ii(f),F=d.useContext(O$),z=d.useMemo(()=>k!==void 0?k:S?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[S,k,i]),B=g??(i==null?void 0:i.colon),_=r("form",a),H=br(_),[L,A,U]=yw(_,H),R=ae(_,`${_}-${C}`,{[`${_}-hide-required-mark`]:z===!1,[`${_}-rtl`]:o==="rtl",[`${_}-${j}`]:j},U,H,A,i==null?void 0:i.className,s,c),[V]=iM(v),{__INTERNAL__:Y}=V;Y.name=$;const X=d.useMemo(()=>({name:$,labelAlign:m,labelCol:b,labelWrap:y,wrapperCol:w,vertical:C==="vertical",colon:B,requiredMark:z,itemRef:Y.itemRef,form:V,feedbackIcons:N}),[$,m,b,w,C,B,z,V,N]);d.useImperativeHandle(t,()=>V);const q=(K,J)=>{if(K){let oe={block:"nearest"};typeof K=="object"&&(oe=K),V.scrollToField(J,oe)}},G=K=>{if(I==null||I(K),K.errorFields.length){const J=K.errorFields[0].name;if(E!==void 0){q(E,J);return}i&&i.scrollToFirstError!==void 0&&q(i.scrollToFirstError,J)}};return L(d.createElement(VI.Provider,{value:P},d.createElement(Oy,{disabled:p},d.createElement(ud.Provider,{value:j},d.createElement(_I,{validateMessages:F},d.createElement(qi.Provider,{value:X},d.createElement(sc,Object.assign({id:$},D,{name:$,onFinishFailed:G,form:V,style:Object.assign(Object.assign({},i==null?void 0:i.style),T),className:R}))))))))},mU=d.forwardRef(gU);function bU(e){if(typeof e=="function")return e;const t=Yr(e);return t.length<=1?t[0]:t}const aM=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(Qr);return{status:e,errors:t,warnings:n}};aM.Context=Qr;const yU=aM;function wU(e){const[t,n]=d.useState(e),r=d.useRef(null),o=d.useRef([]),i=d.useRef(!1);d.useEffect(()=>(i.current=!1,()=>{i.current=!0,vn.cancel(r.current),r.current=null}),[]);function a(s){i.current||(r.current===null&&(o.current=[],r.current=vn(()=>{r.current=null,n(c=>{let f=c;return o.current.forEach(p=>{f=p(f)}),f})})),o.current.push(s))}return[t,a]}function xU(){const{itemRef:e}=d.useContext(qi),t=d.useRef({});function n(r,o){const i=o&&typeof o=="object"&&o.ref,a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=Zr(e(r),i)),t.current.ref}return n}const SU=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},CU=tc(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=tM(e,n);return[SU(r)]}),EU=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:s,extra:c,help:f,fieldId:p,marginBottom:v,onErrorVisibleChanged:g}=e,m=`${t}-item`,y=d.useContext(qi),b=r||y.wrapperCol||{},w=ae(`${m}-control`,b.className),S=d.useMemo(()=>Object.assign({},y),[y]);delete S.labelCol,delete S.wrapperCol;const C=d.createElement("div",{className:`${m}-control-input`},d.createElement("div",{className:`${m}-control-input-content`},o)),E=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),k=v!==null||i.length||a.length?d.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},d.createElement(Hy.Provider,{value:E},d.createElement(nM,{fieldId:p,errors:i,warnings:a,help:f,helpStatus:n,className:`${m}-explain-connected`,onVisibleChanged:g})),!!v&&d.createElement("div",{style:{width:0,height:v}})):null,I={};p&&(I.id=`${p}_extra`);const $=c?d.createElement("div",Object.assign({},I,{className:`${m}-extra`}),c):null,T=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:C,errorList:k,extra:$}):d.createElement(d.Fragment,null,C,k,$);return d.createElement(qi.Provider,{value:S},d.createElement(ev,Object.assign({},b,{className:w}),T),d.createElement(CU,{prefixCls:t}))},kU=EU;var OU={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 $U=OU;var IU=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:$U}))};const TU=d.forwardRef(IU);var PU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function MU(e){return e?typeof e=="object"&&!d.isValidElement(e)?e:{title:e}:null}const NU=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:s,requiredMark:c,tooltip:f}=e;var p;const[v]=Ji("Form"),{vertical:g,labelAlign:m,labelCol:y,labelWrap:b,colon:w}=d.useContext(qi);if(!n)return null;const S=o||y||{},C=i||m,E=`${t}-item-label`,k=ae(E,C==="left"&&`${E}-left`,S.className,{[`${E}-wrap`]:!!b});let I=n;const $=a===!0||w!==!1&&a!==!1;$&&!g&&typeof n=="string"&&n.trim()!==""&&(I=n.replace(/[:|]\s*$/,""));const N=MU(f);if(N){const{icon:F=d.createElement(TU,null)}=N,z=PU(N,["icon"]),B=d.createElement(Xi,Object.assign({},z),d.cloneElement(F,{className:`${t}-item-tooltip`,title:"",onClick:_=>{_.preventDefault()},tabIndex:null}));I=d.createElement(d.Fragment,null,I,B)}const P=c==="optional",D=typeof c=="function";D?I=c(I,{required:!!s}):P&&!s&&(I=d.createElement(d.Fragment,null,I,d.createElement("span",{className:`${t}-item-optional`,title:""},(v==null?void 0:v.optional)||((p=ni.Form)===null||p===void 0?void 0:p.optional))));const j=ae({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:P||D,[`${t}-item-no-colon`]:!$});return d.createElement(ev,Object.assign({},S,{className:k}),d.createElement("label",{htmlFor:r,className:j,title:typeof n=="string"?n:""},I))},RU=NU,DU={success:My,warning:Mv,error:rc,validating:ks};function sM(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:s,noStyle:c}=e;const f=`${a}-item`,{feedbackIcons:p}=d.useContext(qi),v=oM(n,r,s,null,!!o,i),{isFormItemInput:g,status:m,hasFeedback:y,feedbackIcon:b}=d.useContext(Qr),w=d.useMemo(()=>{var S;let C;if(o){const k=o!==!0&&o.icons||p,I=v&&((S=k==null?void 0:k({status:v,errors:n,warnings:r}))===null||S===void 0?void 0:S[v]),$=v&&DU[v];C=I!==!1&&$?d.createElement("span",{className:ae(`${f}-feedback-icon`,`${f}-feedback-icon-${v}`)},I||d.createElement($,null)):null}const E={status:v||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:C,isFormItemInput:!0};return c&&(E.status=(v??m)||"",E.isFormItemInput=g,E.hasFeedback=!!(o??y),E.feedbackIcon=o!==void 0?E.feedbackIcon:b),E},[v,o,c,g,m]);return d.createElement(Qr.Provider,{value:w},t)}var jU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function LU(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:s,validateStatus:c,meta:f,hasFeedback:p,hidden:v,children:g,fieldId:m,required:y,isRequired:b,onSubItemMetaChange:w}=e,S=jU(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),C=`${t}-item`,{requiredMark:E}=d.useContext(qi),k=d.useRef(null),I=nv(a),$=nv(s),T=i!=null,N=!!(T||a.length||s.length),P=!!k.current&&fd(k.current),[D,j]=d.useState(null);on(()=>{if(N&&k.current){const H=getComputedStyle(k.current);j(parseInt(H.marginBottom,10))}},[N,P]);const F=H=>{H||j(null)},B=function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const L=H?I:f.errors,A=H?$:f.warnings;return oM(L,A,f,"",!!p,c)}(),_=ae(C,n,r,{[`${C}-with-help`]:T||I.length||$.length,[`${C}-has-feedback`]:B&&p,[`${C}-has-success`]:B==="success",[`${C}-has-warning`]:B==="warning",[`${C}-has-error`]:B==="error",[`${C}-is-validating`]:B==="validating",[`${C}-hidden`]:v});return d.createElement("div",{className:_,style:o,ref:k},d.createElement(VP,Object.assign({className:`${C}-row`},qn(S,["_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"])),d.createElement(RU,Object.assign({htmlFor:m},e,{requiredMark:E,required:y??b,prefixCls:t})),d.createElement(kU,Object.assign({},e,f,{errors:I,warnings:$,prefixCls:t,status:B,help:i,marginBottom:D,onErrorVisibleChanged:F}),d.createElement(HI.Provider,{value:w},d.createElement(sM,{prefixCls:t,meta:f,errors:f.errors,warnings:f.warnings,hasFeedback:p,validateStatus:B},g)))),!!D&&d.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-D}}))}const BU="__SPLIT__";function AU(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const zU=d.memo(e=>{let{children:t}=e;return t},(e,t)=>AU(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function GE(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function FU(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:s,children:c,required:f,label:p,messageVariables:v,trigger:g="onChange",validateTrigger:m,hidden:y,help:b}=e,{getPrefixCls:w}=d.useContext(kt),{name:S}=d.useContext(qi),C=bU(c),E=typeof C=="function",k=d.useContext(HI),{validateTrigger:I}=d.useContext(Os),$=m!==void 0?m:I,T=t!=null,N=w("form",i),P=br(N),[D,j,F]=yw(N,P);Ds();const z=d.useContext(qu),B=d.useRef(),[_,H]=wU({}),[L,A]=Ra(()=>GE()),U=K=>{const J=z==null?void 0:z.getKey(K.name);if(A(K.destroy?GE():K,!0),n&&b!==!1&&k){let oe=K.name;if(K.destroy)oe=B.current||oe;else if(J!==void 0){const[fe,ce]=J;oe=[fe].concat(Ee(ce)),B.current=oe}k(K,oe)}},R=(K,J)=>{H(oe=>{const fe=Object.assign({},oe),ee=[].concat(Ee(K.name.slice(0,-1)),Ee(J)).join(BU);return K.destroy?delete fe[ee]:fe[ee]=K,fe})},[V,Y]=d.useMemo(()=>{const K=Ee(L.errors),J=Ee(L.warnings);return Object.values(_).forEach(oe=>{K.push.apply(K,Ee(oe.errors||[])),J.push.apply(J,Ee(oe.warnings||[]))}),[K,J]},[_,L.errors,L.warnings]),X=xU();function q(K,J,oe){return n&&!y?d.createElement(sM,{prefixCls:N,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:L,errors:V,warnings:Y,noStyle:!0},K):d.createElement(LU,Object.assign({key:"row"},e,{className:ae(r,F,P,j),prefixCls:N,fieldId:J,isRequired:oe,errors:V,warnings:Y,meta:L,onSubItemMetaChange:R}),K)}if(!T&&!E&&!o)return D(q(C));let G={};return typeof p=="string"?G.label=p:t&&(G.label=String(t)),v&&(G=Object.assign(Object.assign({},G),v)),D(d.createElement(zy,Object.assign({},e,{messageVariables:G,trigger:g,validateTrigger:$,onMetaChange:U}),(K,J,oe)=>{const fe=Cu(t).length&&J?J.name:[],ce=rM(fe,S),ee=f!==void 0?f:!!(s&&s.some(re=>{if(re&&typeof re=="object"&&re.required&&!re.warningOnly)return!0;if(typeof re=="function"){const le=re(oe);return le&&le.required&&!le.warningOnly}return!1})),ie=Object.assign({},K);let te=null;if(Array.isArray(C)&&T)te=C;else if(!(E&&(!(a||o)||T))){if(!(o&&!E&&!T))if(Ar(C)){const re=Object.assign(Object.assign({},C.props),ie);if(re.id||(re.id=ce),b||V.length>0||Y.length>0||e.extra){const be=[];(b||V.length>0)&&be.push(`${ce}_help`),e.extra&&be.push(`${ce}_extra`),re["aria-describedby"]=be.join(" ")}V.length>0&&(re["aria-invalid"]="true"),ee&&(re["aria-required"]="true"),ti(C)&&(re.ref=X(fe,C)),new Set([].concat(Ee(Cu(g)),Ee(Cu($)))).forEach(be=>{re[be]=function(){for(var Se,pe,me,xe,Pe,Ie=arguments.length,De=new Array(Ie),Be=0;Be<Ie;Be++)De[Be]=arguments[Be];(me=ie[be])===null||me===void 0||(Se=me).call.apply(Se,[ie].concat(De)),(Pe=(xe=C.props)[be])===null||Pe===void 0||(pe=Pe).call.apply(pe,[xe].concat(De))}});const ge=[re["aria-required"],re["aria-invalid"],re["aria-describedby"]];te=d.createElement(zU,{control:ie,update:C,childProps:ge},mr(C,re))}else E&&(a||o)&&!T?te=C(oe):te=C}return q(te,ce,ee)}))}const lM=FU;lM.useStatus=yU;const HU=lM;var _U=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const VU=e=>{var{prefixCls:t,children:n}=e,r=_U(e,["prefixCls","children"]);const{getPrefixCls:o}=d.useContext(kt),i=o("form",t),a=d.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return d.createElement(BI,Object.assign({},r),(s,c,f)=>d.createElement(Hy.Provider,{value:a},n(s.map(p=>Object.assign(Object.assign({},p),{fieldKey:p.key})),c,{errors:f.errors,warnings:f.warnings})))},WU=VU;function UU(){const{form:e}=d.useContext(qi);return e}const gr=mU;gr.Item=HU;gr.List=WU;gr.ErrorList=nM;gr.useForm=iM;gr.useFormInstance=UU;gr.useWatch=FI;gr.Provider=_I;gr.create=()=>{};function YE(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function Uf(e,t,n,r){var o=jp.unstable_batchedUpdates?function(a){jp.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}const KU=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach(r=>{const o=n[r];o!==void 0&&(e[r]=o)})}return e};var qU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const XU=qU;var GU=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:XU}))};const QE=d.forwardRef(GU);var YU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const QU=YU;var ZU=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:QU}))};const ZE=d.forwardRef(ZU);var JU={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},eK=["10","20","50","100"],tK=function(t){var n=t.pageSizeOptions,r=n===void 0?eK:n,o=t.locale,i=t.changeSize,a=t.pageSize,s=t.goButton,c=t.quickGo,f=t.rootPrefixCls,p=t.selectComponentClass,v=t.selectPrefixCls,g=t.disabled,m=t.buildOptionText,y=de.useState(""),b=he(y,2),w=b[0],S=b[1],C=function(){return!w||Number.isNaN(w)?void 0:Number(w)},E=typeof m=="function"?m:function(B){return"".concat(B," ").concat(o.items_per_page)},k=function(_){i==null||i(Number(_))},I=function(_){S(_.target.value)},$=function(_){s||w===""||(S(""),!(_.relatedTarget&&(_.relatedTarget.className.indexOf("".concat(f,"-item-link"))>=0||_.relatedTarget.className.indexOf("".concat(f,"-item"))>=0))&&(c==null||c(C())))},T=function(_){w!==""&&(_.keyCode===Te.ENTER||_.type==="click")&&(S(""),c==null||c(C()))},N=function(){return r.some(function(_){return _.toString()===a.toString()})?r:r.concat([a.toString()]).sort(function(_,H){var L=Number.isNaN(Number(_))?0:Number(_),A=Number.isNaN(Number(H))?0:Number(H);return L-A})},P="".concat(f,"-options");if(!i&&!c)return null;var D=null,j=null,F=null;if(i&&p){var z=N().map(function(B,_){return de.createElement(p.Option,{key:_,value:B.toString()},E(B))});D=de.createElement(p,{disabled:g,prefixCls:v,showSearch:!1,className:"".concat(P,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||r[0]).toString(),onChange:k,getPopupContainer:function(_){return _.parentNode},"aria-label":o.page_size,defaultOpen:!1},z)}return c&&(s&&(F=typeof s=="boolean"?de.createElement("button",{type:"button",onClick:T,onKeyUp:T,disabled:g,className:"".concat(P,"-quick-jumper-button")},o.jump_to_confirm):de.createElement("span",{onClick:T,onKeyUp:T},s)),j=de.createElement("div",{className:"".concat(P,"-quick-jumper")},o.jump_to,de.createElement("input",{disabled:g,type:"text",value:w,onChange:I,onKeyUp:T,onBlur:$,"aria-label":o.page}),o.page,F)),de.createElement("li",{className:P},D,j)},Jc=function(t){var n,r=t.rootPrefixCls,o=t.page,i=t.active,a=t.className,s=t.showTitle,c=t.onClick,f=t.onKeyPress,p=t.itemRender,v="".concat(r,"-item"),g=ae(v,"".concat(v,"-").concat(o),(n={},Q(n,"".concat(v,"-active"),i),Q(n,"".concat(v,"-disabled"),!o),n),a),m=function(){c(o)},y=function(S){f(S,c,o)},b=p(o,"page",de.createElement("a",{rel:"nofollow"},o));return b?de.createElement("li",{title:s?String(o):null,className:g,onClick:m,onKeyDown:y,tabIndex:0},b):null},nK=function(t,n,r){return r};function JE(){}function ek(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function os(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var rK=function(t){var n,r=t.prefixCls,o=r===void 0?"rc-pagination":r,i=t.selectPrefixCls,a=i===void 0?"rc-select":i,s=t.className,c=t.selectComponentClass,f=t.current,p=t.defaultCurrent,v=p===void 0?1:p,g=t.total,m=g===void 0?0:g,y=t.pageSize,b=t.defaultPageSize,w=b===void 0?10:b,S=t.onChange,C=S===void 0?JE:S,E=t.hideOnSinglePage,k=t.showPrevNextJumpers,I=k===void 0?!0:k,$=t.showQuickJumper,T=t.showLessItems,N=t.showTitle,P=N===void 0?!0:N,D=t.onShowSizeChange,j=D===void 0?JE:D,F=t.locale,z=F===void 0?JU:F,B=t.style,_=t.totalBoundaryShowSizeChanger,H=_===void 0?50:_,L=t.disabled,A=t.simple,U=t.showTotal,R=t.showSizeChanger,V=t.pageSizeOptions,Y=t.itemRender,X=Y===void 0?nK:Y,q=t.jumpPrevIcon,G=t.jumpNextIcon,K=t.prevIcon,J=t.nextIcon,oe=de.useRef(null),fe=Fn(10,{value:y,defaultValue:w}),ce=he(fe,2),ee=ce[0],ie=ce[1],te=Fn(1,{value:f,defaultValue:v,postState:function(Ut){return Math.max(1,Math.min(Ut,os(void 0,ee,m)))}}),re=he(te,2),le=re[0],ge=re[1],be=de.useState(le),Se=he(be,2),pe=Se[0],me=Se[1];d.useEffect(function(){me(le)},[le]);var xe=Math.max(1,le-(T?3:5)),Pe=Math.min(os(void 0,ee,m),le+(T?3:5));function Ie(vt,Ut){var tn=vt||de.createElement("button",{type:"button","aria-label":Ut,className:"".concat(o,"-item-link")});return typeof vt=="function"&&(tn=de.createElement(vt,Z({},t))),tn}function De(vt){var Ut=vt.target.value,tn=os(void 0,ee,m),hn;return Ut===""?hn=Ut:Number.isNaN(Number(Ut))?hn=pe:Ut>=tn?hn=tn:hn=Number(Ut),hn}function Be(vt){return ek(vt)&&vt!==le&&ek(m)&&m>0}var qe=m>ee?$:!1;function lt(vt){(vt.keyCode===Te.UP||vt.keyCode===Te.DOWN)&&vt.preventDefault()}function et(vt){var Ut=De(vt);switch(Ut!==pe&&me(Ut),vt.keyCode){case Te.ENTER:Re(Ut);break;case Te.UP:Re(Ut-1);break;case Te.DOWN:Re(Ut+1);break}}function He(vt){Re(De(vt))}function Fe(vt){var Ut=os(vt,ee,m),tn=le>Ut&&Ut!==0?Ut:le;ie(vt),me(tn),j==null||j(le,vt),ge(tn),C==null||C(tn,vt)}function Re(vt){if(Be(vt)&&!L){var Ut=os(void 0,ee,m),tn=vt;return vt>Ut?tn=Ut:vt<1&&(tn=1),tn!==pe&&me(tn),ge(tn),C==null||C(tn,ee),tn}return le}var ft=le>1,Me=le<os(void 0,ee,m),We=R??m>H;function Le(){ft&&Re(le-1)}function je(){Me&&Re(le+1)}function Ye(){Re(xe)}function mt(){Re(Pe)}function bt(vt,Ut){if(vt.key==="Enter"||vt.charCode===Te.ENTER||vt.keyCode===Te.ENTER){for(var tn=arguments.length,hn=new Array(tn>2?tn-2:0),gn=2;gn<tn;gn++)hn[gn-2]=arguments[gn];Ut.apply(void 0,hn)}}function Oe(vt){bt(vt,Le)}function Ge(vt){bt(vt,je)}function ct(vt){bt(vt,Ye)}function Mt(vt){bt(vt,mt)}function ut(vt){var Ut=X(vt,"prev",Ie(K,"prev page"));return de.isValidElement(Ut)?de.cloneElement(Ut,{disabled:!ft}):Ut}function ze(vt){var Ut=X(vt,"next",Ie(J,"next page"));return de.isValidElement(Ut)?de.cloneElement(Ut,{disabled:!Me}):Ut}function Qe(vt){(vt.type==="click"||vt.keyCode===Te.ENTER)&&Re(pe)}var Xe=null,rt=Do(t,{aria:!0,data:!0}),it=U&&de.createElement("li",{className:"".concat(o,"-total-text")},U(m,[m===0?0:(le-1)*ee+1,le*ee>m?m:le*ee])),tt=null,Ke=os(void 0,ee,m);if(E&&m<=ee)return null;var Ae=[],xt={rootPrefixCls:o,onClick:Re,onKeyPress:bt,showTitle:P,itemRender:X,page:-1},Nt=le-1>0?le-1:0,Ot=le+1<Ke?le+1:Ke,ot=$&&$.goButton,at=ot,_t=null;A&&(ot&&(typeof ot=="boolean"?at=de.createElement("button",{type:"button",onClick:Qe,onKeyUp:Qe},z.jump_to_confirm):at=de.createElement("span",{onClick:Qe,onKeyUp:Qe},ot),at=de.createElement("li",{title:P?"".concat(z.jump_to).concat(le,"/").concat(Ke):null,className:"".concat(o,"-simple-pager")},at)),_t=de.createElement("li",{title:P?"".concat(le,"/").concat(Ke):null,className:"".concat(o,"-simple-pager")},de.createElement("input",{type:"text",value:pe,disabled:L,onKeyDown:lt,onKeyUp:et,onChange:et,onBlur:He,size:3}),de.createElement("span",{className:"".concat(o,"-slash")},"/"),Ke));var Ct=T?1:2;if(Ke<=3+Ct*2){Ke||Ae.push(de.createElement(Jc,ke({},xt,{key:"noPager",page:1,className:"".concat(o,"-item-disabled")})));for(var zt=1;zt<=Ke;zt+=1)Ae.push(de.createElement(Jc,ke({},xt,{key:zt,page:zt,active:le===zt})))}else{var Jt=T?z.prev_3:z.prev_5,st=T?z.next_3:z.next_5,pt=X(xe,"jump-prev",Ie(q,"prev page")),Rt=X(Pe,"jump-next",Ie(G,"next page"));I&&(Xe=pt?de.createElement("li",{title:P?Jt:null,key:"prev",onClick:Ye,tabIndex:0,onKeyDown:ct,className:ae("".concat(o,"-jump-prev"),Q({},"".concat(o,"-jump-prev-custom-icon"),!!q))},pt):null,tt=Rt?de.createElement("li",{title:P?st:null,key:"next",onClick:mt,tabIndex:0,onKeyDown:Mt,className:ae("".concat(o,"-jump-next"),Q({},"".concat(o,"-jump-next-custom-icon"),!!G))},Rt):null);var Ft=Math.max(1,le-Ct),fn=Math.min(le+Ct,Ke);le-1<=Ct&&(fn=1+Ct*2),Ke-le<=Ct&&(Ft=Ke-Ct*2);for(var ln=Ft;ln<=fn;ln+=1)Ae.push(de.createElement(Jc,ke({},xt,{key:ln,page:ln,active:le===ln})));if(le-1>=Ct*2&&le!==3&&(Ae[0]=de.cloneElement(Ae[0],{className:ae("".concat(o,"-item-after-jump-prev"),Ae[0].props.className)}),Ae.unshift(Xe)),Ke-le>=Ct*2&&le!==Ke-2){var Hn=Ae[Ae.length-1];Ae[Ae.length-1]=de.cloneElement(Hn,{className:ae("".concat(o,"-item-before-jump-next"),Hn.props.className)}),Ae.push(tt)}Ft!==1&&Ae.unshift(de.createElement(Jc,ke({},xt,{key:1,page:1}))),fn!==Ke&&Ae.push(de.createElement(Jc,ke({},xt,{key:Ke,page:Ke})))}var yn=ut(Nt);if(yn){var Yn=!ft||!Ke;yn=de.createElement("li",{title:P?z.prev_page:null,onClick:Le,tabIndex:Yn?null:0,onKeyDown:Oe,className:ae("".concat(o,"-prev"),Q({},"".concat(o,"-disabled"),Yn)),"aria-disabled":Yn},yn)}var Yt=ze(Ot);if(Yt){var wn,nr;A?(wn=!Me,nr=ft?0:null):(wn=!Me||!Ke,nr=wn?null:0),Yt=de.createElement("li",{title:P?z.next_page:null,onClick:je,tabIndex:nr,onKeyDown:Ge,className:ae("".concat(o,"-next"),Q({},"".concat(o,"-disabled"),wn)),"aria-disabled":wn},Yt)}var Nr=ae(o,s,(n={},Q(n,"".concat(o,"-simple"),A),Q(n,"".concat(o,"-disabled"),L),n));return de.createElement("ul",ke({className:Nr,style:B,ref:oe},rt),it,yn,A?_t:Ae,Yt,de.createElement(tK,{locale:z,rootPrefixCls:o,disabled:L,selectComponentClass:c,selectPrefixCls:a,changeSize:We?Fe:null,pageSize:ee,pageSizeOptions:V,quickGo:qe?Re:null,goButton:at}))};const cM=e=>d.createElement(cc,Object.assign({},e,{showSearch:!0,size:"small"})),uM=e=>d.createElement(cc,Object.assign({},e,{showSearch:!0,size:"middle"}));cM.Option=cc.Option;uM.Option=cc.Option;const oK=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},iK=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:se(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:se(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:se(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
&${t}-mini ${t}-prev ${t}-item-link,
&${t}-mini ${t}-next ${t}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:se(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:se(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:se(e.itemSizeSM),input:Object.assign(Object.assign({},pw(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},aK=e=>{const{componentCls:t}=e;return{[`
&${t}-simple ${t}-prev,
&${t}-simple ${t}-next
`]:{height:e.itemSizeSM,lineHeight:se(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:se(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${se(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${se(e.inputOutlineOffset)} 0 ${se(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},sK=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
${t}-prev,
${t}-jump-prev,
${t}-jump-next
`]:{marginInlineEnd:e.marginXS},[`
${t}-prev,
${t}-next,
${t}-jump-prev,
${t}-jump-next
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${se(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${se(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:se(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},vw(e)),fw(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Zv(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},lK=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:se(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${se(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${se(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},cK=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:se(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),lK(e)),sK(e)),aK(e)),iK(e)),oK(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},uK=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Vu(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Fa(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Fa(e))}}}},dM=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},hP(e)),fM=e=>un(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},vP(e)),dK=jn("Pagination",e=>{const t=fM(e);return[cK(t),uK(t)]},dM),fK=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},pK=tc(["Pagination","bordered"],e=>{const t=fM(e);return[fK(t)]},dM);var vK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hK=e=>{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,style:i,size:a,locale:s,selectComponentClass:c,responsive:f,showSizeChanger:p}=e,v=vK(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:g}=DT(f),[,m]=tr(),{getPrefixCls:y,direction:b,pagination:w={}}=d.useContext(kt),S=y("pagination",t),[C,E,k]=dK(S),I=p??w.showSizeChanger,$=d.useMemo(()=>{const B=d.createElement("span",{className:`${S}-item-ellipsis`},"•••"),_=d.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},b==="rtl"?d.createElement(Xp,null):d.createElement(vb,null)),H=d.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},b==="rtl"?d.createElement(vb,null):d.createElement(Xp,null)),L=d.createElement("a",{className:`${S}-item-link`},d.createElement("div",{className:`${S}-item-container`},b==="rtl"?d.createElement(ZE,{className:`${S}-item-link-icon`}):d.createElement(QE,{className:`${S}-item-link-icon`}),B)),A=d.createElement("a",{className:`${S}-item-link`},d.createElement("div",{className:`${S}-item-container`},b==="rtl"?d.createElement(QE,{className:`${S}-item-link-icon`}):d.createElement(ZE,{className:`${S}-item-link-icon`}),B));return{prevIcon:_,nextIcon:H,jumpPrevIcon:L,jumpNextIcon:A}},[b,S]),[T]=Ji("Pagination",$$),N=Object.assign(Object.assign({},T),s),P=ii(a),D=P==="small"||!!(g&&!P&&f),j=y("select",n),F=ae({[`${S}-mini`]:D,[`${S}-rtl`]:b==="rtl",[`${S}-bordered`]:m.wireframe},w==null?void 0:w.className,r,o,E,k),z=Object.assign(Object.assign({},w==null?void 0:w.style),i);return C(d.createElement(d.Fragment,null,m.wireframe&&d.createElement(pK,{prefixCls:S}),d.createElement(rK,Object.assign({},$,v,{style:z,prefixCls:S,selectPrefixCls:j,className:F,selectComponentClass:c||(D?cM:uM),locale:N,showSizeChanger:I}))))},gK=hK,mK=new sn("antSpinMove",{to:{opacity:1}}),bK=new sn("antRotate",{to:{transform:"rotate(405deg)"}}),yK=e=>{const{componentCls:t,calc:n}=e;return{[`${t}`]:Object.assign(Object.assign({},$n(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${t}-dot ${t}-dot-item`]:{backgroundColor:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:mK,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:bK,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t}-dot`]:{fontSize:e.dotSizeSM,i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{fontSize:e.dotSizeLG,i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},wK=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},xK=jn("Spin",e=>{const t=un(e,{spinDotDefault:e.colorTextDescription});return[yK(t)]},wK);var SK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let kp=null;function CK(e,t){const{indicator:n}=t,r=`${e}-dot`;return n===null?null:Ar(n)?mr(n,{className:ae(n.props.className,r)}):Ar(kp)?mr(kp,{className:ae(kp.props.className,r)}):d.createElement("span",{className:ae(r,`${e}-dot-spin`)},d.createElement("i",{className:`${e}-dot-item`,key:1}),d.createElement("i",{className:`${e}-dot-item`,key:2}),d.createElement("i",{className:`${e}-dot-item`,key:3}),d.createElement("i",{className:`${e}-dot-item`,key:4}))}function EK(e,t){return!!e&&!!t&&!isNaN(Number(t))}const pM=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:o,rootClassName:i,size:a="default",tip:s,wrapperClassName:c,style:f,children:p,fullscreen:v}=e,g=SK(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:m}=d.useContext(kt),y=m("spin",t),[b,w,S]=xK(y),[C,E]=d.useState(()=>n&&!EK(n,r));d.useEffect(()=>{if(n){const F=nV(r,()=>{E(!0)});return F(),()=>{var z;(z=F==null?void 0:F.cancel)===null||z===void 0||z.call(F)}}E(!1)},[r,n]);const k=d.useMemo(()=>typeof p<"u"&&!v,[p,v]),{direction:I,spin:$}=d.useContext(kt),T=ae(y,$==null?void 0:$.className,{[`${y}-sm`]:a==="small",[`${y}-lg`]:a==="large",[`${y}-spinning`]:C,[`${y}-show-text`]:!!s,[`${y}-fullscreen`]:v,[`${y}-fullscreen-show`]:v&&C,[`${y}-rtl`]:I==="rtl"},o,i,w,S),N=ae(`${y}-container`,{[`${y}-blur`]:C}),P=qn(g,["indicator"]),D=Object.assign(Object.assign({},$==null?void 0:$.style),f),j=d.createElement("div",Object.assign({},P,{style:D,className:T,"aria-live":"polite","aria-busy":C}),CK(y,e),s&&(k||v)?d.createElement("div",{className:`${y}-text`},s):null);return b(k?d.createElement("div",Object.assign({},P,{className:ae(`${y}-nested-loading`,c,w,S)}),C&&d.createElement("div",{key:"loading"},j),d.createElement("div",{className:N,key:"container"},p)):j)};pM.setDefaultIndicator=e=>{kp=e};const kK=pM;var OK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $K=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:s,footer:c}=e,f=OK(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:p}=d.useContext(kt),v=p(),g=t||p("modal"),m=br(v),[y,b,w]=GI(g,m),S=`${g}-confirm`;let C={};return i?C={closable:o??!1,title:"",footer:"",children:d.createElement(QI,Object.assign({},e,{prefixCls:g,confirmPrefixCls:S,rootPrefixCls:v,content:s}))}:C={closable:o??!0,title:a,footer:c!==null&&d.createElement(UI,Object.assign({},e)),children:s},y(d.createElement(TI,Object.assign({prefixCls:g,className:ae(b,`${g}-pure-panel`,i&&S,i&&`${S}-${i}`,n,w,m)},f,{closeIcon:WI(g,r),closable:o},C)))},IK=aT($K);function vM(e){return gd(tT(e))}const ai=YI;ai.useModal=mF;ai.info=function(t){return gd(nT(t))};ai.success=function(t){return gd(rT(t))};ai.error=function(t){return gd(oT(t))};ai.warning=vM;ai.warn=vM;ai.confirm=function(t){return gd(iT(t))};ai.destroyAll=function(){for(;gs.length;){const t=gs.pop();t&&t()}};ai.config=fF;ai._InternalPanelDoNotUseOrYouWillBeFired=IK;const TK=ai,PK=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:s,marginXS:c,fontSize:f,fontWeightStrong:p,colorTextHeading:v}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:f},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:f,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:p,color:v,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}},MK=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},hM=jn("Popconfirm",e=>PK(e),MK,{resetStyle:!1});var NK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const gM=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:s,okType:c="primary",icon:f=d.createElement(Mv,null),showCancel:p=!0,close:v,onConfirm:g,onCancel:m,onPopupClick:y}=e,{getPrefixCls:b}=d.useContext(kt),[w]=Ji("Popconfirm",ni.Popconfirm),S=ql(o),C=ql(i);return d.createElement("div",{className:`${t}-inner-content`,onClick:y},d.createElement("div",{className:`${t}-message`},f&&d.createElement("span",{className:`${t}-message-icon`},f),d.createElement("div",{className:`${t}-message-text`},S&&d.createElement("div",{className:ae(`${t}-title`)},S),C&&d.createElement("div",{className:`${t}-description`},C))),d.createElement("div",{className:`${t}-buttons`},p&&d.createElement(zr,Object.assign({onClick:m,size:"small"},r),a||(w==null?void 0:w.cancelText)),d.createElement(Ly,{buttonProps:Object.assign(Object.assign({size:"small"},Ny(c)),n),actionFn:g,close:v,prefixCls:b("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(w==null?void 0:w.okText))))},RK=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,i=NK(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=d.useContext(kt),s=a("popconfirm",t),[c]=hM(s);return c(d.createElement(_T,{placement:n,className:ae(s,r),style:o,content:d.createElement(gM,Object.assign({prefixCls:s},i))}))},DK=RK;var jK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const mM=d.forwardRef((e,t)=>{var n,r;const{prefixCls:o,placement:i="top",trigger:a="click",okType:s="primary",icon:c=d.createElement(Mv,null),children:f,overlayClassName:p,onOpenChange:v,onVisibleChange:g}=e,m=jK(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:y}=d.useContext(kt),[b,w]=Fn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),S=(D,j)=>{w(D,!0),g==null||g(D),v==null||v(D,j)},C=D=>{S(!1,D)},E=D=>{var j;return(j=e.onConfirm)===null||j===void 0?void 0:j.call(void 0,D)},k=D=>{var j;S(!1,D),(j=e.onCancel)===null||j===void 0||j.call(void 0,D)},I=D=>{D.keyCode===Te.ESC&&b&&S(!1,D)},$=D=>{const{disabled:j=!1}=e;j||S(D)},T=y("popconfirm",o),N=ae(T,p),[P]=hM(T);return P(d.createElement(e9,Object.assign({},qn(m,["title"]),{trigger:a,placement:i,onOpenChange:$,open:b,ref:t,overlayClassName:N,content:d.createElement(gM,Object.assign({okType:s,icon:c},e,{prefixCls:T,close:C,onConfirm:E,onCancel:k})),"data-popover-inject":!0}),mr(f,{onKeyDown:D=>{var j,F;d.isValidElement(f)&&((F=f==null?void 0:(j=f.props).onKeyDown)===null||F===void 0||F.call(j,D)),I(D)}})))});mM._InternalPanelDoNotUseOrYouWillBeFired=DK;const LK=mM;var BK={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},AK=function(){var t=d.useRef([]),n=d.useRef(null);return d.useEffect(function(){var r=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(n.current=Date.now())}),t.current},tk=0,zK=sr();function FK(){var e;return zK?(e=tk,tk+=1):e="TEST_OR_SSR",e}const HK=function(e){var t=d.useState(),n=he(t,2),r=n[0],o=n[1];return d.useEffect(function(){o("rc_progress_".concat(FK()))},[]),e||r};var nk=function(t){var n=t.bg,r=t.children;return d.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function rk(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)})}var _K=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,i=e.radius,a=e.style,s=e.ptg,c=e.strokeLinecap,f=e.strokeWidth,p=e.size,v=e.gapDegree,g=r&&Tt(r)==="object",m=g?"#FFF":void 0,y=p/2,b=d.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:y,cy:y,stroke:m,strokeLinecap:c,strokeWidth:f,opacity:s===0?0:1,style:a,ref:t});if(!g)return b;var w="".concat(o,"-conic"),S=v?"".concat(180+v/2,"deg"):"0deg",C=rk(r,(360-v)/360),E=rk(r,1),k="conic-gradient(from ".concat(S,", ").concat(C.join(", "),")"),I="linear-gradient(to ".concat(v?"bottom":"top",", ").concat(E.join(", "),")");return d.createElement(d.Fragment,null,d.createElement("mask",{id:w},b),d.createElement("foreignObject",{x:0,y:0,width:p,height:p,mask:"url(#".concat(w,")")},d.createElement(nk,{bg:I},d.createElement(nk,{bg:k}))))}),uu=100,Im=function(t,n,r,o,i,a,s,c,f,p){var v=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,g=r/100*360*((360-a)/360),m=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],y=(100-o)/100*n;f==="round"&&o!==100&&(y+=p/2,y>=n&&(y=n-.01));var b=uu/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:y+v,transform:"rotate(".concat(i+g+m,"deg)"),transformOrigin:"".concat(b,"px ").concat(b,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},VK=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ok(e){var t=e??[];return Array.isArray(t)?t:[t]}var WK=function(t){var n=Z(Z({},BK),t),r=n.id,o=n.prefixCls,i=n.steps,a=n.strokeWidth,s=n.trailWidth,c=n.gapDegree,f=c===void 0?0:c,p=n.gapPosition,v=n.trailColor,g=n.strokeLinecap,m=n.style,y=n.className,b=n.strokeColor,w=n.percent,S=jt(n,VK),C=uu/2,E=HK(r),k="".concat(E,"-gradient"),I=C-a/2,$=Math.PI*2*I,T=f>0?90+f/2:-90,N=$*((360-f)/360),P=Tt(i)==="object"?i:{count:i,space:2},D=P.count,j=P.space,F=ok(w),z=ok(b),B=z.find(function(V){return V&&Tt(V)==="object"}),_=B&&Tt(B)==="object",H=_?"butt":g,L=Im($,N,0,100,T,f,p,v,H,a),A=AK(),U=function(){var Y=0;return F.map(function(X,q){var G=z[q]||z[z.length-1],K=Im($,N,Y,X,T,f,p,G,H,a);return Y+=X,d.createElement(_K,{key:q,color:G,ptg:X,radius:I,prefixCls:o,gradientId:k,style:K,strokeLinecap:H,strokeWidth:a,gapDegree:f,ref:function(oe){A[q]=oe},size:uu})}).reverse()},R=function(){var Y=Math.round(D*(F[0]/100)),X=100/D,q=0;return new Array(D).fill(null).map(function(G,K){var J=K<=Y-1?z[0]:v,oe=J&&Tt(J)==="object"?"url(#".concat(k,")"):void 0,fe=Im($,N,q,X,T,f,p,J,"butt",a,j);return q+=(N-fe.strokeDashoffset+j)*100/N,d.createElement("circle",{key:K,className:"".concat(o,"-circle-path"),r:I,cx:C,cy:C,stroke:oe,strokeWidth:a,opacity:1,style:fe,ref:function(ee){A[K]=ee}})})};return d.createElement("svg",ke({className:ae("".concat(o,"-circle"),y),viewBox:"0 0 ".concat(uu," ").concat(uu),style:m,id:r,role:"presentation"},S),!D&&d.createElement("circle",{className:"".concat(o,"-circle-trail"),r:I,cx:C,cy:C,stroke:v,strokeLinecap:H,strokeWidth:s||a,style:L}),D?R():U())};function Da(e){return!e||e<0?0:e>100?100:e}function rv(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const UK=e=>{let{percent:t,success:n,successPercent:r}=e;const o=Da(rv({success:n,successPercent:r}));return[o,Da(Da(t)-o)]},KK=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Pl.green,n||null]},eh=(e,t,n)=>{var r,o,i,a;let s=-1,c=-1;if(t==="step"){const f=n.steps,p=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,c=p??8):typeof e=="number"?[s,c]=[e,e]:[s=14,c=8]=e,s*=f}else if(t==="line"){const f=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?c=f||(e==="small"?6:8):typeof e=="number"?[s,c]=[e,e]:[s=-1,c=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,c]=[e,e]:(s=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,c=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,c]},qK=3,XK=e=>qK/e*100,GK=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:i,width:a=120,type:s,children:c,success:f,size:p=a}=e,[v,g]=eh(p,"circle");let{strokeWidth:m}=e;m===void 0&&(m=Math.max(XK(v),6));const y={width:v,height:g,fontSize:v*.15+6},b=d.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),w=o||s==="dashboard"&&"bottom"||void 0,S=Object.prototype.toString.call(e.strokeColor)==="[object Object]",C=KK({success:f,strokeColor:e.strokeColor}),E=ae(`${t}-inner`,{[`${t}-circle-gradient`]:S}),k=d.createElement(WK,{percent:UK(e),strokeWidth:m,trailWidth:m,strokeColor:C,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:b,gapPosition:w});return d.createElement("div",{className:E,style:y},v<=20?d.createElement(Xi,{title:c},d.createElement("span",null,k)):d.createElement(d.Fragment,null,k,c))},YK=GK,ov="--progress-line-stroke-color",bM="--progress-percent",ik=e=>{const t=e?"100%":"-100%";return new sn(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},QK=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},$n(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${se(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${se(e.paddingXS)})`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${ov})`]},height:"100%",width:`calc(1 / var(${bM}) * 100%)`,display:"block"}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:ik(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:ik(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},ZK=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},JK=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},eq=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},tq=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),nq=jn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=un(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[QK(n),ZK(n),JK(n),eq(n)]},tq);var rq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const oq=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:o}=n;return`${o} ${r}%`}).join(", ")},iq=(e,t)=>{const{from:n=Pl.blue,to:r=Pl.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=rq(e,["from","to","direction"]);if(Object.keys(i).length!==0){const s=oq(i),c=`linear-gradient(${o}, ${s})`;return{background:c,[ov]:c}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[ov]:a}},aq=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:c,trailColor:f=null,success:p}=e,v=a&&typeof a!="string"?iq(a,n):{[ov]:a,background:a},g=s==="square"||s==="butt"?0:void 0,m=o??[-1,i||(o==="small"?6:8)],[y,b]=eh(m,"line",{strokeWidth:i}),w={backgroundColor:f||void 0,borderRadius:g},S=Object.assign(Object.assign({width:`${Da(r)}%`,height:b,borderRadius:g},v),{[bM]:Da(r)/100}),C=rv(e),E={width:`${Da(C)}%`,height:b,borderRadius:g,backgroundColor:p==null?void 0:p.strokeColor},k={width:y<0?"100%":y,height:b};return d.createElement(d.Fragment,null,d.createElement("div",{className:`${t}-outer`,style:k},d.createElement("div",{className:`${t}-inner`,style:w},d.createElement("div",{className:`${t}-bg`,style:S}),C!==void 0?d.createElement("div",{className:`${t}-success-bg`,style:E}):null)),c)},sq=aq,lq=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:o=8,strokeColor:i,trailColor:a=null,prefixCls:s,children:c}=e,f=Math.round(n*(r/100)),v=t??[t==="small"?2:14,o],[g,m]=eh(v,"step",{steps:n,strokeWidth:o}),y=g/n,b=new Array(n);for(let w=0;w<n;w++){const S=Array.isArray(i)?i[w]:i;b[w]=d.createElement("div",{key:w,className:ae(`${s}-steps-item`,{[`${s}-steps-item-active`]:w<=f-1}),style:{backgroundColor:w<=f-1?S:a,width:y,height:m}})}return d.createElement("div",{className:`${s}-steps-outer`},b,c)},cq=lq;var uq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const dq=["normal","exception","active","success"],fq=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,steps:i,strokeColor:a,percent:s=0,size:c="default",showInfo:f=!0,type:p="line",status:v,format:g,style:m}=e,y=uq(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),b=d.useMemo(()=>{var z,B;const _=rv(e);return parseInt(_!==void 0?(z=_??0)===null||z===void 0?void 0:z.toString():(B=s??0)===null||B===void 0?void 0:B.toString(),10)},[s,e.success,e.successPercent]),w=d.useMemo(()=>!dq.includes(v)&&b>=100?"success":v||"normal",[v,b]),{getPrefixCls:S,direction:C,progress:E}=d.useContext(kt),k=S("progress",n),[I,$,T]=nq(k),N=d.useMemo(()=>{if(!f)return null;const z=rv(e);let B;const _=g||(L=>`${L}%`),H=p==="line";return g||w!=="exception"&&w!=="success"?B=_(Da(s),Da(z)):w==="exception"?B=H?d.createElement(rc,null):d.createElement(oc,null):w==="success"&&(B=H?d.createElement(My,null):d.createElement(Jy,null)),d.createElement("span",{className:`${k}-text`,title:typeof B=="string"?B:void 0},B)},[f,s,b,w,p,k,g]),P=Array.isArray(a)?a[0]:a,D=typeof a=="string"||Array.isArray(a)?a:void 0;let j;p==="line"?j=i?d.createElement(cq,Object.assign({},e,{strokeColor:D,prefixCls:k,steps:i}),N):d.createElement(sq,Object.assign({},e,{strokeColor:P,prefixCls:k,direction:C}),N):(p==="circle"||p==="dashboard")&&(j=d.createElement(YK,Object.assign({},e,{strokeColor:P,prefixCls:k,progressStatus:w}),N));const F=ae(k,`${k}-status-${w}`,`${k}-${p==="dashboard"&&"circle"||i&&"steps"||p}`,{[`${k}-inline-circle`]:p==="circle"&&eh(c,"circle")[0]<=20,[`${k}-show-info`]:f,[`${k}-${c}`]:typeof c=="string",[`${k}-rtl`]:C==="rtl"},E==null?void 0:E.className,r,o,$,T);return I(d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},E==null?void 0:E.style),m),className:F,role:"progressbar","aria-valuenow":b},qn(y,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),j))}),pq=fq;var Oa={},Cd="rc-table-internal-hook";function ww(e){var t=d.createContext(void 0),n=function(o){var i=o.value,a=o.children,s=d.useRef(i);s.current=i;var c=d.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),f=he(c,1),p=f[0];return on(function(){ei.unstable_batchedUpdates(function(){p.listeners.forEach(function(v){v(i)})})},[i]),d.createElement(t.Provider,{value:p},a)};return{Context:t,Provider:n,defaultValue:e}}function Fr(e,t){var n=Rn(typeof t=="function"?t:function(v){if(t===void 0)return v;if(!Array.isArray(t))return v[t];var g={};return t.forEach(function(m){g[m]=v[m]}),g}),r=d.useContext(e==null?void 0:e.Context),o=r||{},i=o.listeners,a=o.getValue,s=d.useRef();s.current=n(r?a():e==null?void 0:e.defaultValue);var c=d.useState({}),f=he(c,2),p=f[1];return on(function(){if(!r)return;function v(g){var m=n(g);Vi(s.current,m,!0)||p({})}return i.add(v),function(){i.delete(v)}},[r]),s.current}function vq(){var e=d.createContext(null);function t(){return d.useContext(e)}function n(o,i){var a=ti(o),s=function(f,p){var v=a?{ref:p}:{},g=d.useRef(0),m=d.useRef(f),y=t();return y!==null?d.createElement(o,ke({},f,v)):((!i||i(m.current,f))&&(g.current+=1),m.current=f,d.createElement(e.Provider,{value:g.current},d.createElement(o,ke({},f,v))))};return a?d.forwardRef(s):s}function r(o,i){var a=ti(o),s=function(f,p){var v=a?{ref:p}:{};return t(),d.createElement(o,ke({},f,v))};return a?d.memo(d.forwardRef(s),i):d.memo(s,i)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var xw=vq(),yM=xw.makeImmutable,pc=xw.responseImmutable,hq=xw.useImmutableMark,Jr=ww();function gq(e,t){var n=d.useRef(0);n.current+=1;var r=d.useRef(e),o=[];Object.keys(e||{}).map(function(a){var s;(e==null?void 0:e[a])!==((s=r.current)===null||s===void 0?void 0:s[a])&&o.push(a)}),r.current=e;var i=d.useRef([]);return o.length&&(i.current=o),d.useDebugValue(n.current),d.useDebugValue(i.current.join(", ")),n.current}var mq=d.memo(function(){var e=gq();return d.createElement("h1",null,"Render Times: ",e)});mq.displayName="RenderBlock";var wM=d.createContext({renderWithProps:!1}),bq="RC_TABLE_KEY";function yq(e){return e==null?[]:Array.isArray(e)?e:[e]}function th(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},i=o.key,a=o.dataIndex,s=i||yq(a).join("-")||bq;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function mb(e){return e!=null}function wq(e){return e&&Tt(e)==="object"&&!Array.isArray(e)&&!d.isValidElement(e)}function xq(e,t,n,r,o,i){var a=d.useContext(wM),s=hq(),c=Ns(function(){if(mb(r))return[r];var f=t==null||t===""?[]:Array.isArray(t)?t:[t],p=To(e,f),v=p,g=void 0;if(o){var m=o(p,e,n);wq(m)?(v=m.children,g=m.props,a.renderWithProps=!0):v=m}return[v,g]},[s,e,r,t,o,n],function(f,p){if(i){var v=he(f,2),g=v[1],m=he(p,2),y=m[1];return i(y,g)}return a.renderWithProps?!0:!Vi(f,p,!0)});return c}function Sq(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function Cq(e,t){return Fr(Jr,function(n){var r=Sq(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var Eq=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,i,a=n===!0?{showTitle:!0}:n;return a&&(a.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?i=o.toString():d.isValidElement(o)&&typeof o.props.children=="string"&&(i=o.props.children)),i};function kq(e){var t,n,r,o,i,a,s,c,f=e.component,p=e.children,v=e.ellipsis,g=e.scope,m=e.prefixCls,y=e.className,b=e.align,w=e.record,S=e.render,C=e.dataIndex,E=e.renderIndex,k=e.shouldCellUpdate,I=e.index,$=e.rowType,T=e.colSpan,N=e.rowSpan,P=e.fixLeft,D=e.fixRight,j=e.firstFixLeft,F=e.lastFixLeft,z=e.firstFixRight,B=e.lastFixRight,_=e.appendNode,H=e.additionalProps,L=H===void 0?{}:H,A=e.isSticky,U="".concat(m,"-cell"),R=Fr(Jr,["supportSticky","allColumnsFixedLeft"]),V=R.supportSticky,Y=R.allColumnsFixedLeft,X=xq(w,C,E,p,S,k),q=he(X,2),G=q[0],K=q[1],J={},oe=typeof P=="number"&&V,fe=typeof D=="number"&&V;oe&&(J.position="sticky",J.left=P),fe&&(J.position="sticky",J.right=D);var ce=(t=(n=(r=K==null?void 0:K.colSpan)!==null&&r!==void 0?r:L.colSpan)!==null&&n!==void 0?n:T)!==null&&t!==void 0?t:1,ee=(o=(i=(a=K==null?void 0:K.rowSpan)!==null&&a!==void 0?a:L.rowSpan)!==null&&i!==void 0?i:N)!==null&&o!==void 0?o:1,ie=Cq(I,ee),te=he(ie,2),re=te[0],le=te[1],ge=Rn(function(Ie){var De;w&&le(I,I+ee-1),L==null||(De=L.onMouseEnter)===null||De===void 0||De.call(L,Ie)}),be=Rn(function(Ie){var De;w&&le(-1,-1),L==null||(De=L.onMouseLeave)===null||De===void 0||De.call(L,Ie)});if(ce===0||ee===0)return null;var Se=(s=L.title)!==null&&s!==void 0?s:Eq({rowType:$,ellipsis:v,children:G}),pe=ae(U,y,(c={},Q(Q(Q(Q(Q(Q(Q(Q(Q(Q(c,"".concat(U,"-fix-left"),oe&&V),"".concat(U,"-fix-left-first"),j&&V),"".concat(U,"-fix-left-last"),F&&V),"".concat(U,"-fix-left-all"),F&&Y&&V),"".concat(U,"-fix-right"),fe&&V),"".concat(U,"-fix-right-first"),z&&V),"".concat(U,"-fix-right-last"),B&&V),"".concat(U,"-ellipsis"),v),"".concat(U,"-with-append"),_),"".concat(U,"-fix-sticky"),(oe||fe)&&A&&V),Q(c,"".concat(U,"-row-hover"),!K&&re)),L.className,K==null?void 0:K.className),me={};b&&(me.textAlign=b);var xe=Z(Z(Z(Z({},J),L.style),me),K==null?void 0:K.style),Pe=G;return Tt(Pe)==="object"&&!Array.isArray(Pe)&&!d.isValidElement(Pe)&&(Pe=null),v&&(F||z)&&(Pe=d.createElement("span",{className:"".concat(U,"-content")},Pe)),d.createElement(f,ke({},K,L,{className:pe,style:xe,title:Se,scope:g,onMouseEnter:ge,onMouseLeave:be,colSpan:ce!==1?ce:null,rowSpan:ee!==1?ee:null}),_,Pe)}const js=d.memo(kq);function Sw(e,t,n,r,o,i){var a=n[e]||{},s=n[t]||{},c,f;a.fixed==="left"?c=r.left[o==="rtl"?t:e]:s.fixed==="right"&&(f=r.right[o==="rtl"?e:t]);var p=!1,v=!1,g=!1,m=!1,y=n[t+1],b=n[e-1],w=!(i!=null&&i.children);if(o==="rtl"){if(c!==void 0){var S=b&&b.fixed==="left";m=!S&&w}else if(f!==void 0){var C=y&&y.fixed==="right";g=!C&&w}}else if(c!==void 0){var E=y&&y.fixed==="left";p=!E&&w}else if(f!==void 0){var k=b&&b.fixed==="right";v=!k&&w}return{fixLeft:c,fixRight:f,lastFixLeft:p,firstFixRight:v,lastFixRight:g,firstFixLeft:m,isSticky:r.isSticky}}var xM=d.createContext({});function Oq(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=o===void 0?1:o,a=e.rowSpan,s=e.align,c=Fr(Jr,["prefixCls","direction"]),f=c.prefixCls,p=c.direction,v=d.useContext(xM),g=v.scrollColumnIndex,m=v.stickyOffsets,y=v.flattenColumns,b=v.columns,w=n+i-1,S=w+1===g?i+1:i,C=Sw(n,n+S-1,y,m,p,b==null?void 0:b[n]);return d.createElement(js,ke({className:t,index:n,component:"td",prefixCls:f,record:null,dataIndex:null,align:s,colSpan:S,rowSpan:a,render:function(){return r}},C))}var $q=["children"];function Iq(e){var t=e.children,n=jt(e,$q);return d.createElement("tr",n,t)}function nh(e){var t=e.children;return t}nh.Row=Iq;nh.Cell=Oq;function Tq(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=e.columns,i=Fr(Jr,"prefixCls"),a=r.length-1,s=r[a],c=d.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:s!=null&&s.scrollbar?a:null,columns:o}},[s,r,a,n,o]);return d.createElement(xM.Provider,{value:c},d.createElement("tfoot",{className:"".concat(i,"-summary")},t))}const Kf=pc(Tq);var SM=nh;function Pq(e){return null}function Mq(e){return null}function CM(e,t,n,r,o,i,a){e.push({record:t,indent:n,index:a});var s=i(t),c=o==null?void 0:o.has(s);if(t&&Array.isArray(t[r])&&c)for(var f=0;f<t[r].length;f+=1)CM(e,t[r][f],n+1,r,o,i,f)}function EM(e,t,n,r){var o=d.useMemo(function(){if(n!=null&&n.size){for(var i=[],a=0;a<(e==null?void 0:e.length);a+=1){var s=e[a];CM(i,s,0,t,n,r,a)}return i}return e==null?void 0:e.map(function(c,f){return{record:c,indent:0,index:f}})},[e,t,n,r]);return o}function kM(e,t,n,r){var o=Fr(Jr,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),i=o.flattenColumns,a=o.expandableType,s=o.expandedKeys,c=o.childrenColumnName,f=o.onTriggerExpand,p=o.rowExpandable,v=o.onRow,g=o.expandRowByClick,m=o.rowClassName,y=a==="nest",b=a==="row"&&(!p||p(e)),w=b||y,S=s&&s.has(t),C=c&&e&&e[c],E=Rn(f),k=v==null?void 0:v(e,n),I=k==null?void 0:k.onClick,$=function(D){g&&w&&f(e,D);for(var j=arguments.length,F=new Array(j>1?j-1:0),z=1;z<j;z++)F[z-1]=arguments[z];I==null||I.apply(void 0,[D].concat(F))},T;typeof m=="string"?T=m:typeof m=="function"&&(T=m(e,n,r));var N=th(i);return Z(Z({},o),{},{columnsKey:N,nestExpandable:y,expanded:S,hasNestChildren:C,record:e,onTriggerExpand:E,rowSupportExpand:b,expandable:w,rowProps:Z(Z({},k),{},{className:ae(T,k==null?void 0:k.className),onClick:$})})}function OM(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,i=e.className,a=e.expanded,s=e.colSpan,c=e.isEmpty,f=Fr(Jr,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),p=f.scrollbarSize,v=f.fixHeader,g=f.fixColumn,m=f.componentWidth,y=f.horizonScroll,b=n;return(c?y&&m:g)&&(b=d.createElement("div",{style:{width:m-(v?p:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},b)),d.createElement(r,{className:i,style:{display:a?null:"none"}},d.createElement(js,{component:o,prefixCls:t,colSpan:s},b))}function $M(e,t,n,r,o){var i=e.record,a=e.prefixCls,s=e.columnsKey,c=e.fixedInfoList,f=e.expandIconColumnIndex,p=e.nestExpandable,v=e.indentSize,g=e.expandIcon,m=e.expanded,y=e.hasNestChildren,b=e.onTriggerExpand,w=s[n],S=c[n],C;n===(f||0)&&p&&(C=d.createElement(d.Fragment,null,d.createElement("span",{style:{paddingLeft:"".concat(v*r,"px")},className:"".concat(a,"-row-indent indent-level-").concat(r)}),g({prefixCls:a,expanded:m,expandable:y,record:i,onExpand:b})));var E;return t.onCell&&(E=t.onCell(i,o)),{key:w,fixedInfo:S,appendCellNode:C,additionalCellProps:E||{}}}function IM(e){var t=e.className,n=e.style,r=e.record,o=e.index,i=e.renderIndex,a=e.rowKey,s=e.indent,c=s===void 0?0:s,f=e.rowComponent,p=e.cellComponent,v=e.scopeCellComponent,g=kM(r,a,o,c),m=g.prefixCls,y=g.flattenColumns,b=g.expandedRowClassName,w=g.expandedRowRender,S=g.rowProps,C=g.expanded,E=g.rowSupportExpand,k=d.useRef(!1);k.current||(k.current=C);var I=d.createElement(f,ke({},S,{"data-row-key":a,className:ae(t,"".concat(m,"-row"),"".concat(m,"-row-level-").concat(c),S==null?void 0:S.className),style:Z(Z({},n),S==null?void 0:S.style)}),y.map(function(P,D){var j=P.render,F=P.dataIndex,z=P.className,B=$M(g,P,D,c,o),_=B.key,H=B.fixedInfo,L=B.appendCellNode,A=B.additionalCellProps;return d.createElement(js,ke({className:z,ellipsis:P.ellipsis,align:P.align,scope:P.rowScope,component:P.rowScope?v:p,prefixCls:m,key:_,record:r,index:o,renderIndex:i,dataIndex:F,render:j,shouldCellUpdate:P.shouldCellUpdate},H,{appendNode:L,additionalProps:A}))})),$;if(E&&(k.current||C)){var T=w(r,o,c+1,C),N=b&&b(r,o,c);$=d.createElement(OM,{expanded:C,className:ae("".concat(m,"-expanded-row"),"".concat(m,"-expanded-row-level-").concat(c+1),N),prefixCls:m,component:f,cellComponent:p,colSpan:y.length,isEmpty:!1},T)}return d.createElement(d.Fragment,null,I,$)}IM.displayName="BodyRow";const Nq=pc(IM);function Rq(e){var t=e.columnKey,n=e.onColumnResize,r=d.useRef();return d.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),d.createElement(Lo,{data:t},d.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},d.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function Dq(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return d.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},d.createElement(Lo.Collection,{onBatchResize:function(i){i.forEach(function(a){var s=a.data,c=a.size;r(s,c.offsetWidth)})}},n.map(function(o){return d.createElement(Rq,{key:o,columnKey:o,onColumnResize:r})})))}function TM(e){var t=e.data,n=e.measureColumnWidth,r=Fr(Jr,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),o=r.prefixCls,i=r.getComponent,a=r.onColumnResize,s=r.flattenColumns,c=r.getRowKey,f=r.expandedKeys,p=r.childrenColumnName,v=r.emptyNode,g=EM(t,p,f,c),m=d.useRef({renderWithProps:!1}),y=i(["body","wrapper"],"tbody"),b=i(["body","row"],"tr"),w=i(["body","cell"],"td"),S=i(["body","cell"],"th"),C;t.length?C=g.map(function(k,I){var $=k.record,T=k.indent,N=k.index,P=c($,I);return d.createElement(Nq,{key:P,rowKey:P,record:$,index:I,renderIndex:N,rowComponent:b,cellComponent:w,scopeCellComponent:S,getRowKey:c,indent:T})}):C=d.createElement(OM,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:b,cellComponent:w,colSpan:s.length,isEmpty:!0},v);var E=th(s);return d.createElement(wM.Provider,{value:m.current},d.createElement(y,{className:"".concat(o,"-tbody")},n&&d.createElement(Dq,{prefixCls:o,columnsKey:E,onColumnResize:a}),C))}TM.displayName="Body";const jq=pc(TM);var Lq=["expandable"],Eu="RC_TABLE_INTERNAL_COL_DEFINE";function Bq(e){var t=e.expandable,n=jt(e,Lq),r;return"expandable"in e?r=Z(Z({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var Aq=["columnType"];function PM(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=[],i=r||n.length,a=!1,s=i-1;s>=0;s-=1){var c=t[s],f=n&&n[s],p=f&&f[Eu];if(c||p||a){var v=p||{};v.columnType;var g=jt(v,Aq);o.unshift(d.createElement("col",ke({key:s,style:{width:c}},g))),a=!0}}return d.createElement("colgroup",null,o)}var zq=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Fq(e,t){return d.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var o=e[r];if(o!==void 0)n[r]=o;else return null}return n},[e.join("_"),t])}var MM=d.forwardRef(function(e,t){var n=e.className,r=e.noData,o=e.columns,i=e.flattenColumns,a=e.colWidths,s=e.columCount,c=e.stickyOffsets,f=e.direction,p=e.fixHeader,v=e.stickyTopOffset,g=e.stickyBottomOffset,m=e.stickyClassName,y=e.onScroll,b=e.maxContentScroll,w=e.children,S=jt(e,zq),C=Fr(Jr,["prefixCls","scrollbarSize","isSticky"]),E=C.prefixCls,k=C.scrollbarSize,I=C.isSticky,$=I&&!p?0:k,T=d.useRef(null),N=d.useCallback(function(H){Bu(t,H),Bu(T,H)},[]);d.useEffect(function(){var H;function L(A){var U=A,R=U.currentTarget,V=U.deltaX;V&&(y({currentTarget:R,scrollLeft:R.scrollLeft+V}),A.preventDefault())}return(H=T.current)===null||H===void 0||H.addEventListener("wheel",L),function(){var A;(A=T.current)===null||A===void 0||A.removeEventListener("wheel",L)}},[]);var P=d.useMemo(function(){return i.every(function(H){return H.width})},[i]),D=i[i.length-1],j={fixed:D?D.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(E,"-cell-scrollbar")}}},F=d.useMemo(function(){return $?[].concat(Ee(o),[j]):o},[$,o]),z=d.useMemo(function(){return $?[].concat(Ee(i),[j]):i},[$,i]),B=d.useMemo(function(){var H=c.right,L=c.left;return Z(Z({},c),{},{left:f==="rtl"?[].concat(Ee(L.map(function(A){return A+$})),[0]):L,right:f==="rtl"?H:[].concat(Ee(H.map(function(A){return A+$})),[0]),isSticky:I})},[$,c,I]),_=Fq(a,s);return d.createElement("div",{style:Z({overflow:"hidden"},I?{top:v,bottom:g}:{}),ref:N,className:ae(n,Q({},m,!!m))},d.createElement("table",{style:{tableLayout:"fixed",visibility:r||_?null:"hidden"}},(!r||!b||P)&&d.createElement(PM,{colWidths:_?[].concat(Ee(_),[$]):[],columCount:s+1,columns:z}),w(Z(Z({},S),{},{stickyOffsets:B,columns:F,flattenColumns:z}))))});MM.displayName="FixedHolder";const ak=d.memo(MM);function NM(e){var t=e.cells,n=e.stickyOffsets,r=e.flattenColumns,o=e.rowComponent,i=e.cellComponent,a=e.tdCellComponent,s=e.onHeaderRow,c=e.index,f=Fr(Jr,["prefixCls","direction"]),p=f.prefixCls,v=f.direction,g;s&&(g=s(t.map(function(y){return y.column}),c));var m=th(t.map(function(y){return y.column}));return d.createElement(o,g,t.map(function(y,b){var w=y.column,S=Sw(y.colStart,y.colEnd,r,n,v,w),C;return w&&w.onHeaderCell&&(C=y.column.onHeaderCell(w)),d.createElement(js,ke({},y,{scope:w.title?y.colSpan>1?"colgroup":"col":null,ellipsis:w.ellipsis,align:w.align,component:w.title?i:a,prefixCls:p,key:m[b]},S,{additionalProps:C,rowType:"header"}))}))}NM.displayName="HeaderRow";function Hq(e){var t=[];function n(a,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var f=s,p=a.filter(Boolean).map(function(v){var g={key:v.key,className:v.className||"",children:v.title,column:v,colStart:f},m=1,y=v.children;return y&&y.length>0&&(m=n(y,f,c+1).reduce(function(b,w){return b+w},0),g.hasSubColumns=!0),"colSpan"in v&&(m=v.colSpan),"rowSpan"in v&&(g.rowSpan=v.rowSpan),g.colSpan=m,g.colEnd=g.colStart+m-1,t[c].push(g),f+=m,m});return p}n(e,0);for(var r=t.length,o=function(s){t[s].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-s)})},i=0;i<r;i+=1)o(i);return t}function _q(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,i=Fr(Jr,["prefixCls","getComponent"]),a=i.prefixCls,s=i.getComponent,c=d.useMemo(function(){return Hq(n)},[n]),f=s(["header","wrapper"],"thead"),p=s(["header","row"],"tr"),v=s(["header","cell"],"th"),g=s(["header","cell"],"td");return d.createElement(f,{className:"".concat(a,"-thead")},c.map(function(m,y){var b=d.createElement(NM,{key:y,flattenColumns:r,cells:m,stickyOffsets:t,rowComponent:p,cellComponent:v,tdCellComponent:g,onHeaderRow:o,index:y});return b}))}const sk=pc(_q);function lk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function Vq(e,t,n){return d.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(g){var m=lk(t,g.width);m?r+=m:o+=1});var i=Math.max(t,n),a=Math.max(i-r,o),s=o,c=a/o,f=0,p=e.map(function(g){var m=Z({},g),y=lk(t,m.width);if(y)m.width=y;else{var b=Math.floor(c);m.width=s===1?a:b,a-=b,s-=1}return f+=m.width,m});if(f<i){var v=i/f;a=i,p.forEach(function(g,m){var y=Math.floor(g.width*v);g.width=m===p.length-1?a:y,a-=y})}return[p,Math.max(f,i)]}return[e,t]},[e,t,n])}var Wq=["children"],Uq=["fixed"];function Cw(e){return Yr(e).filter(function(t){return d.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,o=r.children,i=jt(r,Wq),a=Z({key:n},i);return o&&(a.children=Cw(o)),a})}function RM(e){return e.filter(function(t){return t&&Tt(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?Z(Z({},t),{},{children:RM(n)}):t})}function bb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&Tt(n)==="object"}).reduce(function(n,r,o){var i=r.fixed,a=i===!0?"left":i,s="".concat(t,"-").concat(o),c=r.children;return c&&c.length>0?[].concat(Ee(n),Ee(bb(c,s).map(function(f){return Z({fixed:a},f)}))):[].concat(Ee(n),[Z(Z({key:s},r),{},{fixed:a})])},[])}function Kq(e){return e.map(function(t){var n=t.fixed,r=jt(t,Uq),o=n;return n==="left"?o="right":n==="right"&&(o="left"),Z({fixed:o},r)})}function qq(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,a=e.expandedKeys,s=e.columnTitle,c=e.getRowKey,f=e.onTriggerExpand,p=e.expandIcon,v=e.rowExpandable,g=e.expandIconColumnIndex,m=e.direction,y=e.expandRowByClick,b=e.columnWidth,w=e.fixed,S=e.scrollWidth,C=e.clientWidth,E=d.useMemo(function(){var j=r||Cw(o)||[];return RM(j.slice())},[r,o]),k=d.useMemo(function(){if(i){var j=E.slice();if(!j.includes(Oa)){var F=g||0;F>=0&&j.splice(F,0,Oa)}var z=j.indexOf(Oa);j=j.filter(function(L,A){return L!==Oa||A===z});var B=E[z],_;(w==="left"||w)&&!g?_="left":(w==="right"||w)&&g===E.length?_="right":_=B?B.fixed:null;var H=Q(Q(Q(Q(Q(Q({},Eu,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",_),"className","".concat(n,"-row-expand-icon-cell")),"width",b),"render",function(A,U,R){var V=c(U,R),Y=a.has(V),X=v?v(U):!0,q=p({prefixCls:n,expanded:Y,expandable:X,record:U,onExpand:f});return y?d.createElement("span",{onClick:function(K){return K.stopPropagation()}},q):q});return j.map(function(L){return L===Oa?H:L})}return E.filter(function(L){return L!==Oa})},[i,E,c,a,p,m]),I=d.useMemo(function(){var j=k;return t&&(j=t(j)),j.length||(j=[{render:function(){return null}}]),j},[t,k,m]),$=d.useMemo(function(){return m==="rtl"?Kq(bb(I)):bb(I)},[I,m,S]),T=Vq($,S,C),N=he(T,2),P=N[0],D=N[1];return[I,P,D]}function Xq(e){var t=e.prefixCls,n=e.record,r=e.onExpand,o=e.expanded,i=e.expandable,a="".concat(t,"-row-expand-icon");if(!i)return d.createElement("span",{className:ae(a,"".concat(t,"-row-spaced"))});var s=function(f){r(n,f),f.stopPropagation()};return d.createElement("span",{className:ae(a,Q(Q({},"".concat(t,"-row-expanded"),o),"".concat(t,"-row-collapsed"),!o)),onClick:s})}function Gq(e,t,n){var r=[];function o(i){(i||[]).forEach(function(a,s){r.push(t(a,s)),o(a[n])})}return o(e),r}function Yq(e,t,n){var r=Bq(e),o=r.expandIcon,i=r.expandedRowKeys,a=r.defaultExpandedRowKeys,s=r.defaultExpandAllRows,c=r.expandedRowRender,f=r.onExpand,p=r.onExpandedRowsChange,v=r.childrenColumnName,g=o||Xq,m=v||"children",y=d.useMemo(function(){return c?"row":e.expandable&&e.internalHooks===Cd&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(I){return I&&Tt(I)==="object"&&I[m]})?"nest":!1},[!!c,t]),b=d.useState(function(){return a||(s?Gq(t,n,m):[])}),w=he(b,2),S=w[0],C=w[1],E=d.useMemo(function(){return new Set(i||S||[])},[i,S]),k=d.useCallback(function(I){var $=n(I,t.indexOf(I)),T,N=E.has($);N?(E.delete($),T=Ee(E)):T=[].concat(Ee(E),[$]),C(T),f&&f(!N,I),p&&p(T)},[n,E,t,f,p]);return[r,y,E,g,m,k]}function Qq(e,t,n,r){var o=e.map(function(i,a){return Sw(a,a,e,t,n,r==null?void 0:r[a])});return Ns(function(){return o},[o],function(i,a){return!Vi(i,a)})}function DM(e){var t=d.useRef(e),n=d.useState({}),r=he(n,2),o=r[1],i=d.useRef(null),a=d.useRef([]);function s(c){a.current.push(c);var f=Promise.resolve();i.current=f,f.then(function(){if(i.current===f){var p=a.current,v=t.current;a.current=[],p.forEach(function(g){t.current=g(t.current)}),i.current=null,v!==t.current&&o({})}})}return d.useEffect(function(){return function(){i.current=null}},[]),[t.current,s]}function Zq(e){var t=d.useRef(e||null),n=d.useRef();function r(){window.clearTimeout(n.current)}function o(a){t.current=a,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function i(){return t.current}return d.useEffect(function(){return r},[]),[o,i]}function Jq(){var e=d.useState(-1),t=he(e,2),n=t[0],r=t[1],o=d.useState(-1),i=he(o,2),a=i[0],s=i[1],c=d.useCallback(function(f,p){r(f),s(p)},[]);return[n,a,c]}var ck=sr()?window:null;function eX(e,t){var n=Tt(e)==="object"?e:{},r=n.offsetHeader,o=r===void 0?0:r,i=n.offsetSummary,a=i===void 0?0:i,s=n.offsetScroll,c=s===void 0?0:s,f=n.getContainer,p=f===void 0?function(){return ck}:f,v=p()||ck;return d.useMemo(function(){var g=!!e;return{isSticky:g,stickyClassName:g?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:a,offsetScroll:c,container:v}},[c,o,a,t,v])}function tX(e,t,n){var r=d.useMemo(function(){for(var o=[],i=[],a=0,s=0,c=0;c<t;c+=1)if(n==="rtl"){i[c]=s,s+=e[c]||0;var f=t-c-1;o[f]=a,a+=e[f]||0}else{o[c]=a,a+=e[c]||0;var p=t-c-1;i[p]=s,s+=e[p]||0}return{left:o,right:i}},[e,t,n]);return r}function uk(e){var t=e.className,n=e.children;return d.createElement("div",{className:t},n)}var nX=function(t,n){var r,o,i=t.scrollBodyRef,a=t.onScroll,s=t.offsetScroll,c=t.container,f=Fr(Jr,"prefixCls"),p=((r=i.current)===null||r===void 0?void 0:r.scrollWidth)||0,v=((o=i.current)===null||o===void 0?void 0:o.clientWidth)||0,g=p&&v*(v/p),m=d.useRef(),y=DM({scrollLeft:0,isHiddenScrollBar:!1}),b=he(y,2),w=b[0],S=b[1],C=d.useRef({delta:0,x:0}),E=d.useState(!1),k=he(E,2),I=k[0],$=k[1],T=function(){$(!1)},N=function(z){z.persist(),C.current.delta=z.pageX-w.scrollLeft,C.current.x=0,$(!0),z.preventDefault()},P=function(z){var B,_=z||((B=window)===null||B===void 0?void 0:B.event),H=_.buttons;if(!I||H===0){I&&$(!1);return}var L=C.current.x+z.pageX-C.current.x-C.current.delta;L<=0&&(L=0),L+g>=v&&(L=v-g),a({scrollLeft:L/v*(p+2)}),C.current.x=z.pageX},D=function(){if(i.current){var z=YE(i.current).top,B=z+i.current.offsetHeight,_=c===window?document.documentElement.scrollTop+window.innerHeight:YE(c).top+c.clientHeight;B-V0()<=_||z>=_-s?S(function(H){return Z(Z({},H),{},{isHiddenScrollBar:!0})}):S(function(H){return Z(Z({},H),{},{isHiddenScrollBar:!1})})}},j=function(z){S(function(B){return Z(Z({},B),{},{scrollLeft:z/p*v||0})})};return d.useImperativeHandle(n,function(){return{setScrollLeft:j}}),d.useEffect(function(){var F=Uf(document.body,"mouseup",T,!1),z=Uf(document.body,"mousemove",P,!1);return D(),function(){F.remove(),z.remove()}},[g,I]),d.useEffect(function(){var F=Uf(c,"scroll",D,!1),z=Uf(window,"resize",D,!1);return function(){F.remove(),z.remove()}},[c]),d.useEffect(function(){w.isHiddenScrollBar||S(function(F){var z=i.current;return z?Z(Z({},F),{},{scrollLeft:z.scrollLeft/z.scrollWidth*z.clientWidth}):F})},[w.isHiddenScrollBar]),p<=v||!g||w.isHiddenScrollBar?null:d.createElement("div",{style:{height:V0(),width:v,bottom:s},className:"".concat(f,"-sticky-scroll")},d.createElement("div",{onMouseDown:N,ref:m,className:ae("".concat(f,"-sticky-scroll-bar"),Q({},"".concat(f,"-sticky-scroll-bar-active"),I)),style:{width:"".concat(g,"px"),transform:"translate3d(".concat(w.scrollLeft,"px, 0, 0)")}}))};const rX=d.forwardRef(nX);var jM="rc-table",oX=[],iX={};function aX(){return"No Data"}function sX(e,t){var n=Z({rowKey:"key",prefixCls:jM,emptyText:aX},e),r=n.prefixCls,o=n.className,i=n.rowClassName,a=n.style,s=n.data,c=n.rowKey,f=n.scroll,p=n.tableLayout,v=n.direction,g=n.title,m=n.footer,y=n.summary,b=n.caption,w=n.id,S=n.showHeader,C=n.components,E=n.emptyText,k=n.onRow,I=n.onHeaderRow,$=n.internalHooks,T=n.transformColumns,N=n.internalRefs,P=n.tailor,D=n.getContainerWidth,j=n.sticky,F=s||oX,z=!!F.length,B=$===Cd,_=d.useCallback(function(Pt,Lt){return To(C,Pt)||Lt},[C]),H=d.useMemo(function(){return typeof c=="function"?c:function(Pt){var Lt=Pt&&Pt[c];return Lt}},[c]),L=_(["body"]),A=Jq(),U=he(A,3),R=U[0],V=U[1],Y=U[2],X=Yq(n,F,H),q=he(X,6),G=q[0],K=q[1],J=q[2],oe=q[3],fe=q[4],ce=q[5],ee=f==null?void 0:f.x,ie=d.useState(0),te=he(ie,2),re=te[0],le=te[1],ge=qq(Z(Z(Z({},n),G),{},{expandable:!!G.expandedRowRender,columnTitle:G.columnTitle,expandedKeys:J,getRowKey:H,onTriggerExpand:ce,expandIcon:oe,expandIconColumnIndex:G.expandIconColumnIndex,direction:v,scrollWidth:B&&P&&typeof ee=="number"?ee:null,clientWidth:re}),B?T:null),be=he(ge,3),Se=be[0],pe=be[1],me=be[2],xe=me??ee,Pe=d.useMemo(function(){return{columns:Se,flattenColumns:pe}},[Se,pe]),Ie=d.useRef(),De=d.useRef(),Be=d.useRef(),qe=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:Ie.current,scrollTo:function(Lt){var $t;if(Be.current instanceof HTMLElement){var nn=Lt.index,or=Lt.top,Qn=Lt.key;if(or){var fr;(fr=Be.current)===null||fr===void 0||fr.scrollTo({top:or})}else{var yr,Rr=Qn??H(F[nn]);(yr=Be.current.querySelector('[data-row-key="'.concat(Rr,'"]')))===null||yr===void 0||yr.scrollIntoView()}}else($t=Be.current)!==null&&$t!==void 0&&$t.scrollTo&&Be.current.scrollTo(Lt)}}});var lt=d.useRef(),et=d.useState(!1),He=he(et,2),Fe=He[0],Re=He[1],ft=d.useState(!1),Me=he(ft,2),We=Me[0],Le=Me[1],je=DM(new Map),Ye=he(je,2),mt=Ye[0],bt=Ye[1],Oe=th(pe),Ge=Oe.map(function(Pt){return mt.get(Pt)}),ct=d.useMemo(function(){return Ge},[Ge.join("_")]),Mt=tX(ct,pe.length,v),ut=f&&mb(f.y),ze=f&&mb(xe)||!!G.fixed,Qe=ze&&pe.some(function(Pt){var Lt=Pt.fixed;return Lt}),Xe=d.useRef(),rt=eX(j,r),it=rt.isSticky,tt=rt.offsetHeader,Ke=rt.offsetSummary,Ae=rt.offsetScroll,xt=rt.stickyClassName,Nt=rt.container,Ot=d.useMemo(function(){return y==null?void 0:y(F)},[y,F]),ot=(ut||it)&&d.isValidElement(Ot)&&Ot.type===nh&&Ot.props.fixed,at,_t,Ct;ut&&(_t={overflowY:"scroll",maxHeight:f.y}),ze&&(at={overflowX:"auto"},ut||(_t={overflowY:"hidden"}),Ct={width:xe===!0?"auto":xe,minWidth:"100%"});var zt=d.useCallback(function(Pt,Lt){fd(Ie.current)&&bt(function($t){if($t.get(Pt)!==Lt){var nn=new Map($t);return nn.set(Pt,Lt),nn}return $t})},[]),Jt=Zq(null),st=he(Jt,2),pt=st[0],Rt=st[1];function Ft(Pt,Lt){Lt&&(typeof Lt=="function"?Lt(Pt):Lt.scrollLeft!==Pt&&(Lt.scrollLeft=Pt,Lt.scrollLeft!==Pt&&setTimeout(function(){Lt.scrollLeft=Pt},0)))}var fn=Rn(function(Pt){var Lt=Pt.currentTarget,$t=Pt.scrollLeft,nn=v==="rtl",or=typeof $t=="number"?$t:Lt.scrollLeft,Qn=Lt||iX;if(!Rt()||Rt()===Qn){var fr;pt(Qn),Ft(or,De.current),Ft(or,Be.current),Ft(or,lt.current),Ft(or,(fr=Xe.current)===null||fr===void 0?void 0:fr.setScrollLeft)}var yr=Lt||De.current;if(yr){var Rr=yr.scrollWidth,eo=yr.clientWidth;if(Rr===eo){Re(!1),Le(!1);return}nn?(Re(-or<Rr-eo),Le(-or>0)):(Re(or>0),Le(or<Rr-eo))}}),ln=function(){ze&&Be.current?fn({currentTarget:Be.current}):(Re(!1),Le(!1))},Hn=function(Lt){var $t=Lt.width,nn=Ie.current?Ie.current.offsetWidth:$t;B&&D&&Ie.current&&(nn=D(Ie.current,nn)||nn),nn!==re&&(ln(),le(nn))},yn=d.useRef(!1);d.useEffect(function(){yn.current&&ln()},[ze,s,Se.length]),d.useEffect(function(){yn.current=!0},[]);var Yn=d.useState(0),Yt=he(Yn,2),wn=Yt[0],nr=Yt[1],Nr=d.useState(!0),vt=he(Nr,2),Ut=vt[0],tn=vt[1];d.useEffect(function(){(!P||!B)&&(Be.current instanceof Element?nr(W0(Be.current).width):nr(W0(qe.current).width)),tn(U0("position","sticky"))},[]),d.useEffect(function(){B&&N&&(N.body.current=Be.current)});var hn=d.useCallback(function(Pt){return d.createElement(d.Fragment,null,d.createElement(sk,Pt),ot==="top"&&d.createElement(Kf,Pt,Ot))},[ot,Ot]),gn=d.useCallback(function(Pt){return d.createElement(Kf,Pt,Ot)},[Ot]),Er=_(["table"],"table"),Cn=d.useMemo(function(){return p||(Qe?xe==="max-content"?"auto":"fixed":ut||it||pe.some(function(Pt){var Lt=Pt.ellipsis;return Lt})?"fixed":"auto")},[ut,Qe,pe,p,it]),rr,Hr={colWidths:ct,columCount:pe.length,stickyOffsets:Mt,onHeaderRow:I,fixHeader:ut,scroll:f},kr=d.useMemo(function(){return z?null:typeof E=="function"?E():E},[z,E]),Xt=d.createElement(jq,{data:F,measureColumnWidth:ut||ze||it}),Kt=d.createElement(PM,{colWidths:pe.map(function(Pt){var Lt=Pt.width;return Lt}),columns:pe}),dt=b!=null?d.createElement("caption",{className:"".concat(r,"-caption")},b):void 0,yt=Do(n,{data:!0}),en=Do(n,{aria:!0});if(ut||it){var bn;typeof L=="function"?(bn=L(F,{scrollbarSize:wn,ref:Be,onScroll:fn}),Hr.colWidths=pe.map(function(Pt,Lt){var $t=Pt.width,nn=Lt===pe.length-1?$t-wn:$t;return typeof nn=="number"&&!Number.isNaN(nn)?nn:0})):bn=d.createElement("div",{style:Z(Z({},at),_t),onScroll:fn,ref:Be,className:ae("".concat(r,"-body"))},d.createElement(Er,ke({style:Z(Z({},Ct),{},{tableLayout:Cn})},en),dt,Kt,Xt,!ot&&Ot&&d.createElement(Kf,{stickyOffsets:Mt,flattenColumns:pe,columns:Se},Ot)));var cn=Z(Z(Z({noData:!F.length,maxContentScroll:ze&&xe==="max-content"},Hr),Pe),{},{direction:v,stickyClassName:xt,onScroll:fn});rr=d.createElement(d.Fragment,null,S!==!1&&d.createElement(ak,ke({},cn,{stickyTopOffset:tt,className:"".concat(r,"-header"),ref:De}),hn),bn,ot&&ot!=="top"&&d.createElement(ak,ke({},cn,{stickyBottomOffset:Ke,className:"".concat(r,"-summary"),ref:lt}),gn),it&&Be.current&&Be.current instanceof Element&&d.createElement(rX,{ref:Xe,offsetScroll:Ae,scrollBodyRef:Be,onScroll:fn,container:Nt}))}else rr=d.createElement("div",{style:Z(Z({},at),_t),className:ae("".concat(r,"-content")),onScroll:fn,ref:Be},d.createElement(Er,ke({style:Z(Z({},Ct),{},{tableLayout:Cn})},en),dt,Kt,S!==!1&&d.createElement(sk,ke({},Hr,Pe)),Xt,Ot&&d.createElement(Kf,{stickyOffsets:Mt,flattenColumns:pe,columns:Se},Ot)));var xn=d.createElement("div",ke({className:ae(r,o,Q(Q(Q(Q(Q(Q(Q(Q(Q({},"".concat(r,"-rtl"),v==="rtl"),"".concat(r,"-ping-left"),Fe),"".concat(r,"-ping-right"),We),"".concat(r,"-layout-fixed"),p==="fixed"),"".concat(r,"-fixed-header"),ut),"".concat(r,"-fixed-column"),Qe),"".concat(r,"-scroll-horizontal"),ze),"".concat(r,"-has-fix-left"),pe[0]&&pe[0].fixed),"".concat(r,"-has-fix-right"),pe[pe.length-1]&&pe[pe.length-1].fixed==="right")),style:a,id:w,ref:Ie},yt),g&&d.createElement(uk,{className:"".concat(r,"-title")},g(F)),d.createElement("div",{ref:qe,className:"".concat(r,"-container")},rr),m&&d.createElement(uk,{className:"".concat(r,"-footer")},m(F)));ze&&(xn=d.createElement(Lo,{onResize:Hn},xn));var In=Qq(pe,Mt,v,Se),_n=d.useMemo(function(){return{scrollX:xe,prefixCls:r,getComponent:_,scrollbarSize:wn,direction:v,fixedInfoList:In,isSticky:it,supportSticky:Ut,componentWidth:re,fixHeader:ut,fixColumn:Qe,horizonScroll:ze,tableLayout:Cn,rowClassName:i,expandedRowClassName:G.expandedRowClassName,expandIcon:oe,expandableType:K,expandRowByClick:G.expandRowByClick,expandedRowRender:G.expandedRowRender,onTriggerExpand:ce,expandIconColumnIndex:G.expandIconColumnIndex,indentSize:G.indentSize,allColumnsFixedLeft:pe.every(function(Pt){return Pt.fixed==="left"}),emptyNode:kr,columns:Se,flattenColumns:pe,onColumnResize:zt,hoverStartRow:R,hoverEndRow:V,onHover:Y,rowExpandable:G.rowExpandable,onRow:k,getRowKey:H,expandedKeys:J,childrenColumnName:fe}},[xe,r,_,wn,v,In,it,Ut,re,ut,Qe,ze,Cn,i,G.expandedRowClassName,oe,K,G.expandRowByClick,G.expandedRowRender,ce,G.expandIconColumnIndex,G.indentSize,kr,Se,pe,zt,R,V,Y,G.rowExpandable,k,H,J,fe]);return d.createElement(Jr.Provider,{value:_n},xn)}var lX=d.forwardRef(sX);function LM(e){return yM(lX,e)}var vc=LM();vc.EXPAND_COLUMN=Oa;vc.INTERNAL_HOOKS=Cd;vc.Column=Pq;vc.ColumnGroup=Mq;vc.Summary=SM;var BM=ww(null),AM=ww(null);function cX(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function uX(e){var t=e.rowInfo,n=e.column,r=e.colIndex,o=e.indent,i=e.index,a=e.renderIndex,s=e.record,c=e.style,f=e.className,p=e.inverse,v=e.getHeight,g=n.render,m=n.dataIndex,y=n.className,b=n.width,w=Fr(AM,["columnsOffset"]),S=w.columnsOffset,C=$M(t,n,r,o,i),E=C.key,k=C.fixedInfo,I=C.appendCellNode,$=C.additionalCellProps,T=$.style,N=$.colSpan,P=N===void 0?1:N,D=$.rowSpan,j=D===void 0?1:D,F=r-1,z=cX(F,P,S),B=P>1?b-z:0,_=Z(Z(Z({},T),c),{},{flex:"0 0 ".concat(z,"px"),width:"".concat(z,"px"),marginRight:B,pointerEvents:"auto"}),H=d.useMemo(function(){return p?j<=1:P===0||j===0||j>1},[j,P,p]);H?_.visibility="hidden":p&&(_.height=v==null?void 0:v(j));var L=H?function(){return null}:g,A={};return(j===0||P===0)&&(A.rowSpan=1,A.colSpan=1),d.createElement(js,ke({className:ae(y,f),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:"div",prefixCls:t.prefixCls,key:E,record:s,index:i,renderIndex:a,dataIndex:m,render:L,shouldCellUpdate:n.shouldCellUpdate},k,{appendNode:I,additionalProps:Z(Z({},$),{},{style:_},A)}))}var dX=["data","index","className","rowKey","style","extra","getHeight"],fX=d.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,i=e.rowKey,a=e.style,s=e.extra,c=e.getHeight,f=jt(e,dX),p=n.record,v=n.indent,g=n.index,m=Fr(Jr,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),y=m.scrollX,b=m.flattenColumns,w=m.prefixCls,S=m.fixColumn,C=m.componentWidth,E=kM(p,i,r,v),k=E.rowSupportExpand,I=E.expanded,$=E.rowProps,T=E.expandedRowRender,N=E.expandedRowClassName,P;if(k&&I){var D=T(p,r,v+1,I),j=N==null?void 0:N(p,r,v),F={};S&&(F={style:Q({},"--virtual-width","".concat(C,"px"))});var z="".concat(w,"-expanded-row-cell");P=d.createElement("div",{className:ae("".concat(w,"-expanded-row"),"".concat(w,"-expanded-row-level-").concat(v+1),j)},d.createElement(js,{component:"div",prefixCls:w,className:ae(z,Q({},"".concat(z,"-fixed"),S)),additionalProps:F},D))}var B=Z(Z({},a),{},{width:y});s&&(B.position="absolute",B.pointerEvents="none");var _=d.createElement("div",ke({},$,f,{ref:k?null:t,className:ae(o,"".concat(w,"-row"),$==null?void 0:$.className,Q({},"".concat(w,"-row-extra"),s)),style:Z(Z({},B),$==null?void 0:$.style)}),b.map(function(H,L){return d.createElement(uX,{key:L,rowInfo:E,column:H,colIndex:L,indent:v,index:r,renderIndex:g,record:p,inverse:s,getHeight:c})}));return k?d.createElement("div",{ref:t},_,P):_}),dk=pc(fX),pX=d.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=Fr(Jr,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),i=o.flattenColumns,a=o.onColumnResize,s=o.getRowKey,c=o.expandedKeys,f=o.prefixCls,p=o.childrenColumnName,v=o.emptyNode,g=o.scrollX,m=Fr(BM),y=m.sticky,b=m.scrollY,w=m.listItemHeight,S=d.useRef(),C=EM(n,p,c,s),E=d.useMemo(function(){var j=0;return i.map(function(F){var z=F.width,B=F.key;return j+=z,[B,z,j]})},[i]),k=d.useMemo(function(){return E.map(function(j){return j[2]})},[E]);d.useEffect(function(){E.forEach(function(j){var F=he(j,2),z=F[0],B=F[1];a(z,B)})},[E]),d.useImperativeHandle(t,function(){var j={scrollTo:function(z){var B;(B=S.current)===null||B===void 0||B.scrollTo(z)}};return Object.defineProperty(j,"scrollLeft",{get:function(){var z;return((z=S.current)===null||z===void 0?void 0:z.getScrollInfo().x)||0},set:function(z){var B;(B=S.current)===null||B===void 0||B.scrollTo({left:z})}}),j});var I=function(F,z){var B,_=(B=C[z])===null||B===void 0?void 0:B.record,H=F.onCell;if(H){var L,A=H(_,z);return(L=A==null?void 0:A.rowSpan)!==null&&L!==void 0?L:1}return 1},$=function(F){var z=F.start,B=F.end,_=F.getSize,H=F.offsetY;if(B<0)return null;for(var L=i.filter(function(fe){return I(fe,z)===0}),A=z,U=function(ce){if(L=L.filter(function(ee){return I(ee,ce)===0}),!L.length)return A=ce,1},R=z;R>=0&&!U(R);R-=1);for(var V=i.filter(function(fe){return I(fe,B)!==1}),Y=B,X=function(ce){if(V=V.filter(function(ee){return I(ee,ce)!==1}),!V.length)return Y=Math.max(ce-1,B),1},q=B;q<C.length&&!X(q);q+=1);for(var G=[],K=function(ce){var ee=C[ce];if(!ee)return 1;i.some(function(ie){return I(ie,ce)>1})&&G.push(ce)},J=A;J<=Y;J+=1)K(J);var oe=G.map(function(fe){var ce=C[fe],ee=s(ce.record,fe),ie=function(le){var ge=fe+le-1,be=s(C[ge].record,ge),Se=_(ee,be);return Se.bottom-Se.top},te=_(ee);return d.createElement(dk,{key:fe,data:ce,rowKey:ee,index:fe,style:{top:-H+te.top},extra:!0,getHeight:ie})});return oe},T=d.useMemo(function(){return{columnsOffset:k}},[k]),N="".concat(f,"-tbody"),P;if(C.length){var D={};y&&(D.position="sticky",D.bottom=0,Tt(y)==="object"&&y.offsetScroll&&(D.bottom=y.offsetScroll)),P=d.createElement(_v,{fullHeight:!1,ref:S,styles:{horizontalScrollBar:D},className:ae(N,"".concat(N,"-virtual")),height:b,itemHeight:w||24,data:C,itemKey:function(F){return s(F.record)},scrollWidth:g,onVirtualScroll:function(F){var z=F.x;r({scrollLeft:z})},extraRender:$},function(j,F,z){var B=s(j.record,F);return d.createElement(dk,ke({data:j,rowKey:B,index:F},z))})}else P=d.createElement("div",{className:ae("".concat(f,"-placeholder"))},d.createElement(js,{component:"div",prefixCls:f},v));return d.createElement(AM.Provider,{value:T},P)}),vX=pc(pX),hX=function(t,n){var r=n.ref,o=n.onScroll;return d.createElement(vX,{ref:r,data:t,onScroll:o})};function gX(e,t){var n=e.columns,r=e.scroll,o=e.sticky,i=e.prefixCls,a=i===void 0?jM:i,s=e.className,c=e.listItemHeight,f=e.components,p=r||{},v=p.x,g=p.y;typeof v!="number"&&(v=1),typeof g!="number"&&(g=500);var m=d.useMemo(function(){return{sticky:o,scrollY:g,listItemHeight:c}},[o,g,c]);return d.createElement(BM.Provider,{value:m},d.createElement(vc,ke({},e,{className:ae(s,"".concat(a,"-virtual")),scroll:Z(Z({},r),{},{x:v}),components:Z(Z({},f),{},{body:hX}),columns:n,internalHooks:Cd,tailor:!0,ref:t})))}var mX=d.forwardRef(gX);function zM(e){return yM(mX,e)}zM();function bX(e){return null}function yX(e){return null}var Ew=d.createContext(null),wX=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,i=t.isEnd,a="".concat(n,"-indent-unit"),s=[],c=0;c<r;c+=1){var f;s.push(d.createElement("span",{key:c,className:ae(a,(f={},Q(f,"".concat(a,"-start"),o[c]),Q(f,"".concat(a,"-end"),i[c]),f))}))}return d.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)};const xX=d.memo(wX);var SX=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],fk="open",pk="close",CX="---",EX=function(e){oi(n,e);var t=Zi(n);function n(){var r;ur(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),r.state={dragNodeHighlight:!1},r.selectHandle=void 0,r.cacheIndent=void 0,r.onSelectorClick=function(s){var c=r.props.context.onNodeClick;c(s,Jn(r.props)),r.isSelectable()?r.onSelect(s):r.onCheck(s)},r.onSelectorDoubleClick=function(s){var c=r.props.context.onNodeDoubleClick;c(s,Jn(r.props))},r.onSelect=function(s){if(!r.isDisabled()){var c=r.props.context.onNodeSelect;c(s,Jn(r.props))}},r.onCheck=function(s){if(!r.isDisabled()){var c=r.props,f=c.disableCheckbox,p=c.checked,v=r.props.context.onNodeCheck;if(!(!r.isCheckable()||f)){var g=!p;v(s,Jn(r.props),g)}}},r.onMouseEnter=function(s){var c=r.props.context.onNodeMouseEnter;c(s,Jn(r.props))},r.onMouseLeave=function(s){var c=r.props.context.onNodeMouseLeave;c(s,Jn(r.props))},r.onContextMenu=function(s){var c=r.props.context.onNodeContextMenu;c(s,Jn(r.props))},r.onDragStart=function(s){var c=r.props.context.onNodeDragStart;s.stopPropagation(),r.setState({dragNodeHighlight:!0}),c(s,Dt(r));try{s.dataTransfer.setData("text/plain","")}catch{}},r.onDragEnter=function(s){var c=r.props.context.onNodeDragEnter;s.preventDefault(),s.stopPropagation(),c(s,Dt(r))},r.onDragOver=function(s){var c=r.props.context.onNodeDragOver;s.preventDefault(),s.stopPropagation(),c(s,Dt(r))},r.onDragLeave=function(s){var c=r.props.context.onNodeDragLeave;s.stopPropagation(),c(s,Dt(r))},r.onDragEnd=function(s){var c=r.props.context.onNodeDragEnd;s.stopPropagation(),r.setState({dragNodeHighlight:!1}),c(s,Dt(r))},r.onDrop=function(s){var c=r.props.context.onNodeDrop;s.preventDefault(),s.stopPropagation(),r.setState({dragNodeHighlight:!1}),c(s,Dt(r))},r.onExpand=function(s){var c=r.props,f=c.loading,p=c.context.onNodeExpand;f||p(s,Jn(r.props))},r.setSelectHandle=function(s){r.selectHandle=s},r.getNodeState=function(){var s=r.props.expanded;return r.isLeaf()?null:s?fk:pk},r.hasChildren=function(){var s=r.props.eventKey,c=r.props.context.keyEntities,f=co(c,s)||{},p=f.children;return!!(p||[]).length},r.isLeaf=function(){var s=r.props,c=s.isLeaf,f=s.loaded,p=r.props.context.loadData,v=r.hasChildren();return c===!1?!1:c||!p&&!v||p&&f&&!v},r.isDisabled=function(){var s=r.props.disabled,c=r.props.context.disabled;return!!(c||s)},r.isCheckable=function(){var s=r.props.checkable,c=r.props.context.checkable;return!c||s===!1?!1:c},r.syncLoadData=function(s){var c=s.expanded,f=s.loading,p=s.loaded,v=r.props.context,g=v.loadData,m=v.onNodeLoad;f||g&&c&&!r.isLeaf()&&!r.hasChildren()&&!p&&m(Jn(r.props))},r.isDraggable=function(){var s=r.props,c=s.data,f=s.context.draggable;return!!(f&&(!f.nodeDraggable||f.nodeDraggable(c)))},r.renderDragHandler=function(){var s=r.props.context,c=s.draggable,f=s.prefixCls;return c!=null&&c.icon?d.createElement("span",{className:"".concat(f,"-draggable-icon")},c.icon):null},r.renderSwitcherIconDom=function(s){var c=r.props.switcherIcon,f=r.props.context.switcherIcon,p=c||f;return typeof p=="function"?p(Z(Z({},r.props),{},{isLeaf:s})):p},r.renderSwitcher=function(){var s=r.props.expanded,c=r.props.context.prefixCls;if(r.isLeaf()){var f=r.renderSwitcherIconDom(!0);return f!==!1?d.createElement("span",{className:ae("".concat(c,"-switcher"),"".concat(c,"-switcher-noop"))},f):null}var p=ae("".concat(c,"-switcher"),"".concat(c,"-switcher_").concat(s?fk:pk)),v=r.renderSwitcherIconDom(!1);return v!==!1?d.createElement("span",{onClick:r.onExpand,className:p},v):null},r.renderCheckbox=function(){var s=r.props,c=s.checked,f=s.halfChecked,p=s.disableCheckbox,v=r.props.context.prefixCls,g=r.isDisabled(),m=r.isCheckable();if(!m)return null;var y=typeof m!="boolean"?m:null;return d.createElement("span",{className:ae("".concat(v,"-checkbox"),c&&"".concat(v,"-checkbox-checked"),!c&&f&&"".concat(v,"-checkbox-indeterminate"),(g||p)&&"".concat(v,"-checkbox-disabled")),onClick:r.onCheck},y)},r.renderIcon=function(){var s=r.props.loading,c=r.props.context.prefixCls;return d.createElement("span",{className:ae("".concat(c,"-iconEle"),"".concat(c,"-icon__").concat(r.getNodeState()||"docu"),s&&"".concat(c,"-icon_loading"))})},r.renderSelector=function(){var s=r.state.dragNodeHighlight,c=r.props,f=c.title,p=f===void 0?CX:f,v=c.selected,g=c.icon,m=c.loading,y=c.data,b=r.props.context,w=b.prefixCls,S=b.showIcon,C=b.icon,E=b.loadData,k=b.titleRender,I=r.isDisabled(),$="".concat(w,"-node-content-wrapper"),T;if(S){var N=g||C;T=N?d.createElement("span",{className:ae("".concat(w,"-iconEle"),"".concat(w,"-icon__customize"))},typeof N=="function"?N(r.props):N):r.renderIcon()}else E&&m&&(T=r.renderIcon());var P;typeof p=="function"?P=p(y):k?P=k(y):P=p;var D=d.createElement("span",{className:"".concat(w,"-title")},P);return d.createElement("span",{ref:r.setSelectHandle,title:typeof p=="string"?p:"",className:ae("".concat($),"".concat($,"-").concat(r.getNodeState()||"normal"),!I&&(v||s)&&"".concat(w,"-node-selected")),onMouseEnter:r.onMouseEnter,onMouseLeave:r.onMouseLeave,onContextMenu:r.onContextMenu,onClick:r.onSelectorClick,onDoubleClick:r.onSelectorDoubleClick},T,D,r.renderDropIndicator())},r.renderDropIndicator=function(){var s=r.props,c=s.disabled,f=s.eventKey,p=r.props.context,v=p.draggable,g=p.dropLevelOffset,m=p.dropPosition,y=p.prefixCls,b=p.indent,w=p.dropIndicatorRender,S=p.dragOverNodeKey,C=p.direction,E=!!v,k=!c&&E&&S===f,I=b??r.cacheIndent;return r.cacheIndent=b,k?w({dropPosition:m,dropLevelOffset:g,indent:I,prefixCls:y,direction:C}):null},r}return dr(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var o=this.props.selectable,i=this.props.context.selectable;return typeof o=="boolean"?o:i}},{key:"render",value:function(){var o,i=this.props,a=i.eventKey,s=i.className,c=i.style,f=i.dragOver,p=i.dragOverGapTop,v=i.dragOverGapBottom,g=i.isLeaf,m=i.isStart,y=i.isEnd,b=i.expanded,w=i.selected,S=i.checked,C=i.halfChecked,E=i.loading,k=i.domRef,I=i.active;i.data;var $=i.onMouseMove,T=i.selectable,N=jt(i,SX),P=this.props.context,D=P.prefixCls,j=P.filterTreeNode,F=P.keyEntities,z=P.dropContainerKey,B=P.dropTargetKey,_=P.draggingNodeKey,H=this.isDisabled(),L=Do(N,{aria:!0,data:!0}),A=co(F,a)||{},U=A.level,R=y[y.length-1],V=this.isDraggable(),Y=!H&&V,X=_===a,q=T!==void 0?{"aria-selected":!!T}:void 0;return d.createElement("div",ke({ref:k,className:ae(s,"".concat(D,"-treenode"),(o={},Q(o,"".concat(D,"-treenode-disabled"),H),Q(o,"".concat(D,"-treenode-switcher-").concat(b?"open":"close"),!g),Q(o,"".concat(D,"-treenode-checkbox-checked"),S),Q(o,"".concat(D,"-treenode-checkbox-indeterminate"),C),Q(o,"".concat(D,"-treenode-selected"),w),Q(o,"".concat(D,"-treenode-loading"),E),Q(o,"".concat(D,"-treenode-active"),I),Q(o,"".concat(D,"-treenode-leaf-last"),R),Q(o,"".concat(D,"-treenode-draggable"),V),Q(o,"dragging",X),Q(o,"drop-target",B===a),Q(o,"drop-container",z===a),Q(o,"drag-over",!H&&f),Q(o,"drag-over-gap-top",!H&&p),Q(o,"drag-over-gap-bottom",!H&&v),Q(o,"filter-node",j&&j(Jn(this.props))),o)),style:c,draggable:Y,"aria-grabbed":X,onDragStart:Y?this.onDragStart:void 0,onDragEnter:V?this.onDragEnter:void 0,onDragOver:V?this.onDragOver:void 0,onDragLeave:V?this.onDragLeave:void 0,onDrop:V?this.onDrop:void 0,onDragEnd:V?this.onDragEnd:void 0,onMouseMove:$},q,L),d.createElement(xX,{prefixCls:D,level:U,isStart:m,isEnd:y}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(d.Component),Ql=function(t){return d.createElement(Ew.Consumer,null,function(n){return d.createElement(EX,ke({},t,{context:n}))})};Ql.displayName="TreeNode";Ql.isTreeNode=1;function pi(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function zi(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function kw(e){return e.split("-")}function kX(e,t){var n=[],r=co(t,e);function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(a){var s=a.key,c=a.children;n.push(s),o(c)})}return o(r.children),n}function OX(e){if(e.parent){var t=kw(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function $X(e){var t=kw(e.pos);return Number(t[t.length-1])===0}function vk(e,t,n,r,o,i,a,s,c,f){var p,v=e.clientX,g=e.clientY,m=e.target.getBoundingClientRect(),y=m.top,b=m.height,w=(f==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-v),S=(w-12)/r,C=co(s,n.props.eventKey);if(g<y+b/2){var E=a.findIndex(function(_){return _.key===C.key}),k=E<=0?0:E-1,I=a[k].key;C=co(s,I)}var $=C.key,T=C,N=C.key,P=0,D=0;if(!c.includes($))for(var j=0;j<S&&OX(C);j+=1)C=C.parent,D+=1;var F=t.props.data,z=C.node,B=!0;return $X(C)&&C.level===0&&g<y+b/2&&i({dragNode:F,dropNode:z,dropPosition:-1})&&C.key===n.props.eventKey?P=-1:(T.children||[]).length&&c.includes(N)?i({dragNode:F,dropNode:z,dropPosition:0})?P=0:B=!1:D===0?S>-1.5?i({dragNode:F,dropNode:z,dropPosition:1})?P=1:B=!1:i({dragNode:F,dropNode:z,dropPosition:0})?P=0:i({dragNode:F,dropNode:z,dropPosition:1})?P=1:B=!1:i({dragNode:F,dropNode:z,dropPosition:1})?P=1:B=!1,{dropPosition:P,dropLevelOffset:D,dropTargetKey:C.key,dropTargetPos:C.pos,dragOverNodeKey:N,dropContainerKey:P===0?null:((p=C.parent)===null||p===void 0?void 0:p.key)||null,dropAllowed:B}}function hk(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function Tm(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Tt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Dn(!1,"`checkedKeys` is not an array or an object"),null;return t}function yb(e,t){var n=new Set;function r(o){if(!n.has(o)){var i=co(t,o);if(i){n.add(o);var a=i.parent,s=i.node;s.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(o){r(o)}),Ee(n)}function IX(e){const[t,n]=d.useState(null);return[d.useCallback((i,a,s)=>{const c=t??i,f=Math.min(c||0,i),p=Math.max(c||0,i),v=a.slice(f,p+1).map(y=>e(y)),g=v.some(y=>!s.has(y)),m=[];return v.forEach(y=>{g?(s.has(y)||m.push(y),s.add(y)):(s.delete(y),m.push(y))}),n(g?p:null),m},[t]),i=>{n(i)}]}const Sa={},wb="SELECT_ALL",xb="SELECT_INVERT",Sb="SELECT_NONE",gk=[],FM=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Ee(n),Ee(FM(e,r[e]))))}),n},TX=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:a,onSelect:s,onSelectAll:c,onSelectInvert:f,onSelectNone:p,onSelectMultiple:v,columnWidth:g,type:m,selections:y,fixed:b,renderCell:w,hideSelectAll:S,checkStrictly:C=!0}=t||{},{prefixCls:E,data:k,pageData:I,getRecordByKey:$,getRowKey:T,expandType:N,childrenColumnName:P,locale:D,getPopupContainer:j}=e,F=Ds(),[z,B]=IX(ee=>ee),[_,H]=Fn(r||o||gk,{value:r}),L=d.useRef(new Map),A=d.useCallback(ee=>{if(n){const ie=new Map;ee.forEach(te=>{let re=$(te);!re&&L.current.has(te)&&(re=L.current.get(te)),ie.set(te,re)}),L.current=ie}},[$,n]);d.useEffect(()=>{A(_)},[_]);const{keyEntities:U}=d.useMemo(()=>{if(C)return{keyEntities:null};let ee=k;if(n){const ie=new Set(k.map((re,le)=>T(re,le))),te=Array.from(L.current).reduce((re,le)=>{let[ge,be]=le;return ie.has(ge)?re:re.concat(be)},[]);ee=[].concat(Ee(ee),Ee(te))}return Jv(ee,{externalGetKey:T,childrenPropName:P})},[k,T,C,P,n]),R=d.useMemo(()=>FM(P,I),[P,I]),V=d.useMemo(()=>{const ee=new Map;return R.forEach((ie,te)=>{const re=T(ie,te),le=(i?i(ie):null)||{};ee.set(re,le)}),ee},[R,T,i]),Y=d.useCallback(ee=>{var ie;return!!(!((ie=V.get(T(ee)))===null||ie===void 0)&&ie.disabled)},[V,T]),[X,q]=d.useMemo(()=>{if(C)return[_||[],[]];const{checkedKeys:ee,halfCheckedKeys:ie}=Hi(_,!0,U,Y);return[ee||[],ie]},[_,C,U,Y]),G=d.useMemo(()=>{const ee=m==="radio"?X.slice(0,1):X;return new Set(ee)},[X,m]),K=d.useMemo(()=>m==="radio"?new Set:new Set(q),[q,m]);d.useEffect(()=>{t||H(gk)},[!!t]);const J=d.useCallback((ee,ie)=>{let te,re;A(ee),n?(te=ee,re=ee.map(le=>L.current.get(le))):(te=[],re=[],ee.forEach(le=>{const ge=$(le);ge!==void 0&&(te.push(le),re.push(ge))})),H(te),a==null||a(te,re,{type:ie})},[H,$,a,n]),oe=d.useCallback((ee,ie,te,re)=>{if(s){const le=te.map(ge=>$(ge));s($(ee),ie,le,re)}J(te,"single")},[s,$,J]),fe=d.useMemo(()=>!y||S?null:(y===!0?[wb,xb,Sb]:y).map(ie=>ie===wb?{key:"all",text:D.selectionAll,onSelect(){J(k.map((te,re)=>T(te,re)).filter(te=>{const re=V.get(te);return!(re!=null&&re.disabled)||G.has(te)}),"all")}}:ie===xb?{key:"invert",text:D.selectInvert,onSelect(){const te=new Set(G);I.forEach((le,ge)=>{const be=T(le,ge),Se=V.get(be);Se!=null&&Se.disabled||(te.has(be)?te.delete(be):te.add(be))});const re=Array.from(te);f&&(F.deprecated(!1,"onSelectInvert","onChange"),f(re)),J(re,"invert")}}:ie===Sb?{key:"none",text:D.selectNone,onSelect(){p==null||p(),J(Array.from(G).filter(te=>{const re=V.get(te);return re==null?void 0:re.disabled}),"none")}}:ie).map(ie=>Object.assign(Object.assign({},ie),{onSelect:function(){for(var te,re,le=arguments.length,ge=new Array(le),be=0;be<le;be++)ge[be]=arguments[be];(re=ie.onSelect)===null||re===void 0||(te=re).call.apply(te,[ie].concat(ge)),B(null)}})),[y,G,I,T,f,J]);return[d.useCallback(ee=>{var ie;if(!t)return ee.filter(Fe=>Fe!==Sa);let te=Ee(ee);const re=new Set(G),le=R.map(T).filter(Fe=>!V.get(Fe).disabled),ge=le.every(Fe=>re.has(Fe)),be=le.some(Fe=>re.has(Fe)),Se=()=>{const Fe=[];ge?le.forEach(ft=>{re.delete(ft),Fe.push(ft)}):le.forEach(ft=>{re.has(ft)||(re.add(ft),Fe.push(ft))});const Re=Array.from(re);c==null||c(!ge,Re.map(ft=>$(ft)),Fe.map(ft=>$(ft))),J(Re,"all"),B(null)};let pe,me;if(m!=="radio"){let Fe;if(fe){const Le={getPopupContainer:j,items:fe.map((je,Ye)=>{const{key:mt,text:bt,onSelect:Oe}=je;return{key:mt??Ye,onClick:()=>{Oe==null||Oe(le)},label:bt}})};Fe=d.createElement("div",{className:`${E}-selection-extra`},d.createElement(eM,{menu:Le,getPopupContainer:j},d.createElement("span",null,d.createElement(TT,null))))}const Re=R.map((Le,je)=>{const Ye=T(Le,je),mt=V.get(Ye)||{};return Object.assign({checked:re.has(Ye)},mt)}).filter(Le=>{let{disabled:je}=Le;return je}),ft=!!Re.length&&Re.length===R.length,Me=ft&&Re.every(Le=>{let{checked:je}=Le;return je}),We=ft&&Re.some(Le=>{let{checked:je}=Le;return je});me=d.createElement($s,{checked:ft?Me:!!R.length&&ge,indeterminate:ft?!Me&&We:!ge&&be,onChange:Se,disabled:R.length===0||ft,"aria-label":Fe?"Custom selection":"Select all",skipGroup:!0}),pe=!S&&d.createElement("div",{className:`${E}-selection`},me,Fe)}let xe;m==="radio"?xe=(Fe,Re,ft)=>{const Me=T(Re,ft),We=re.has(Me);return{node:d.createElement(pP,Object.assign({},V.get(Me),{checked:We,onClick:Le=>Le.stopPropagation(),onChange:Le=>{re.has(Me)||oe(Me,!0,[Me],Le.nativeEvent)}})),checked:We}}:xe=(Fe,Re,ft)=>{var Me;const We=T(Re,ft),Le=re.has(We),je=K.has(We),Ye=V.get(We);let mt;return N==="nest"?mt=je:mt=(Me=Ye==null?void 0:Ye.indeterminate)!==null&&Me!==void 0?Me:je,{node:d.createElement($s,Object.assign({},Ye,{indeterminate:mt,checked:Le,skipGroup:!0,onClick:bt=>bt.stopPropagation(),onChange:bt=>{let{nativeEvent:Oe}=bt;const{shiftKey:Ge}=Oe,ct=le.findIndex(ut=>ut===We),Mt=X.some(ut=>le.includes(ut));if(Ge&&C&&Mt){const ut=z(ct,le,re),ze=Array.from(re);v==null||v(!Le,ze.map(Qe=>$(Qe)),ut.map(Qe=>$(Qe))),J(ze,"multiple")}else{const ut=X;if(C){const ze=Le?pi(ut,We):zi(ut,We);oe(We,!Le,ze,Oe)}else{const ze=Hi([].concat(Ee(ut),[We]),!0,U,Y),{checkedKeys:Qe,halfCheckedKeys:Xe}=ze;let rt=Qe;if(Le){const it=new Set(Qe);it.delete(We),rt=Hi(Array.from(it),{checked:!1,halfCheckedKeys:Xe},U,Y).checkedKeys}oe(We,!Le,rt,Oe)}}B(Le?null:ct)}})),checked:Le}};const Pe=(Fe,Re,ft)=>{const{node:Me,checked:We}=xe(Fe,Re,ft);return w?w(We,Re,ft,Me):Me};if(!te.includes(Sa))if(te.findIndex(Fe=>{var Re;return((Re=Fe[Eu])===null||Re===void 0?void 0:Re.columnType)==="EXPAND_COLUMN"})===0){const[Fe,...Re]=te;te=[Fe,Sa].concat(Ee(Re))}else te=[Sa].concat(Ee(te));const Ie=te.indexOf(Sa);te=te.filter((Fe,Re)=>Fe!==Sa||Re===Ie);const De=te[Ie-1],Be=te[Ie+1];let qe=b;qe===void 0&&((Be==null?void 0:Be.fixed)!==void 0?qe=Be.fixed:(De==null?void 0:De.fixed)!==void 0&&(qe=De.fixed)),qe&&De&&((ie=De[Eu])===null||ie===void 0?void 0:ie.columnType)==="EXPAND_COLUMN"&&De.fixed===void 0&&(De.fixed=qe);const lt=ae(`${E}-selection-col`,{[`${E}-selection-col-with-dropdown`]:y&&m==="checkbox"}),et=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(me):t.columnTitle:pe,He={fixed:qe,width:g,className:`${E}-selection-column`,title:et(),render:Pe,onCell:t.onCell,[Eu]:{className:lt}};return te.map(Fe=>Fe===Sa?He:Fe)},[T,R,t,X,G,K,g,fe,N,V,v,oe,Y]),G]};function PX(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function MX(e,t){return d.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,i){return n[i]?n[i]:Reflect.get(o,i)}}):PX(r,n)})}function NX(e){return function(n){let{prefixCls:r,onExpand:o,record:i,expanded:a,expandable:s}=n;const c=`${r}-row-expand-icon`;return d.createElement("button",{type:"button",onClick:f=>{o(i,f),f.stopPropagation()},className:ae(c,{[`${c}-spaced`]:!s,[`${c}-expanded`]:s&&a,[`${c}-collapsed`]:s&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function RX(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let i=r;if(o){const a=getComputedStyle(o),s=parseInt(a.borderLeftWidth,10),c=parseInt(a.borderRightWidth,10);i=r-s-c}return i}}function Is(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function Ed(e,t){return t?`${t}-${e}`:`${e}`}function rh(e,t){return typeof e=="function"?e(t):e}function DX(e,t){const n=rh(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n}var jX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const LX=jX;var BX=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:LX}))};const AX=d.forwardRef(BX);function zX(e){const t=d.useRef(e),n=tw();return[()=>t.current,r=>{t.current=r,n()}]}function FX(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r;break}return d.createElement("div",{style:o})}function HM(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function HX(e,t){var n=d.useState(!1),r=he(n,2),o=r[0],i=r[1];on(function(){if(o)return e(),function(){t()}},[o]),on(function(){return i(!0),function(){i(!1)}},[])}var _X=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],_M=function(t,n){var r=t.className,o=t.style,i=t.motion,a=t.motionNodes,s=t.motionType,c=t.onMotionStart,f=t.onMotionEnd,p=t.active,v=t.treeNodeRequiredProps,g=jt(t,_X),m=d.useState(!0),y=he(m,2),b=y[0],w=y[1],S=d.useContext(Ew),C=S.prefixCls,E=a&&s!=="hide";on(function(){a&&E!==b&&w(E)},[a]);var k=function(){a&&c()},I=d.useRef(!1),$=function(){a&&!I.current&&(I.current=!0,f())};HX(k,$);var T=function(P){E===P&&$()};return a?d.createElement(Bo,ke({ref:n,visible:b},i,{motionAppear:s==="show",onVisibleChanged:T}),function(N,P){var D=N.className,j=N.style;return d.createElement("div",{ref:P,className:ae("".concat(C,"-treenode-motion"),D),style:j},a.map(function(F){var z=ke({},(HM(F.data),F.data)),B=F.title,_=F.key,H=F.isStart,L=F.isEnd;delete z.children;var A=Su(_,v);return d.createElement(Ql,ke({},z,A,{title:B,active:p,data:F.data,key:_,isStart:H,isEnd:L}))}))}):d.createElement(Ql,ke({domRef:n,className:r,style:o},g,{active:p}))};_M.displayName="MotionTreeNode";var VX=d.forwardRef(_M);function WX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(i,a){var s=new Map;i.forEach(function(f){s.set(f,!0)});var c=a.filter(function(f){return!s.has(f)});return c.length===1?c[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function mk(e,t,n){var r=e.findIndex(function(s){return s.key===n}),o=e[r+1],i=t.findIndex(function(s){return s.key===n});if(o){var a=t.findIndex(function(s){return s.key===o.key});return t.slice(i+1,a)}return t.slice(i+1)}var UX=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],bk={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},KX=function(){},Ts="RC_TREE_MOTION_".concat(Math.random()),Cb={key:Ts},VM={key:Ts,level:0,index:0,pos:"0",node:Cb,nodes:[Cb]},yk={parent:null,children:[],pos:VM.pos,data:Cb,title:null,key:Ts,isStart:[],isEnd:[]};function wk(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function xk(e){var t=e.key,n=e.pos;return wd(t,n)}function qX(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var WM=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,i=e.selectedKeys,a=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,f=e.halfCheckedKeys,p=e.keyEntities,v=e.disabled,g=e.dragging,m=e.dragOverNodeKey,y=e.dropPosition,b=e.motion,w=e.height,S=e.itemHeight,C=e.virtual,E=e.focusable,k=e.activeItem,I=e.focused,$=e.tabIndex,T=e.onKeyDown,N=e.onFocus,P=e.onBlur,D=e.onActiveChange,j=e.onListChangeStart,F=e.onListChangeEnd,z=jt(e,UX),B=d.useRef(null),_=d.useRef(null);d.useImperativeHandle(t,function(){return{scrollTo:function(xe){B.current.scrollTo(xe)},getIndentWidth:function(){return _.current.offsetWidth}}});var H=d.useState(o),L=he(H,2),A=L[0],U=L[1],R=d.useState(r),V=he(R,2),Y=V[0],X=V[1],q=d.useState(r),G=he(q,2),K=G[0],J=G[1],oe=d.useState([]),fe=he(oe,2),ce=fe[0],ee=fe[1],ie=d.useState(null),te=he(ie,2),re=te[0],le=te[1],ge=d.useRef(r);ge.current=r;function be(){var me=ge.current;X(me),J(me),ee([]),le(null),F()}on(function(){U(o);var me=WX(A,o);if(me.key!==null)if(me.add){var xe=Y.findIndex(function(lt){var et=lt.key;return et===me.key}),Pe=wk(mk(Y,r,me.key),C,w,S),Ie=Y.slice();Ie.splice(xe+1,0,yk),J(Ie),ee(Pe),le("show")}else{var De=r.findIndex(function(lt){var et=lt.key;return et===me.key}),Be=wk(mk(r,Y,me.key),C,w,S),qe=r.slice();qe.splice(De+1,0,yk),J(qe),ee(Be),le("hide")}else Y!==r&&(X(r),J(r))},[o,r]),d.useEffect(function(){g||be()},[g]);var Se=b?K:r,pe={expandedKeys:o,selectedKeys:i,loadedKeys:s,loadingKeys:c,checkedKeys:a,halfCheckedKeys:f,dragOverNodeKey:m,dropPosition:y,keyEntities:p};return d.createElement(d.Fragment,null,I&&k&&d.createElement("span",{style:bk,"aria-live":"assertive"},qX(k)),d.createElement("div",null,d.createElement("input",{style:bk,disabled:E===!1||v,tabIndex:E!==!1?$:null,onKeyDown:T,onFocus:N,onBlur:P,value:"",onChange:KX,"aria-label":"for screen reader"})),d.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},d.createElement("div",{className:"".concat(n,"-indent")},d.createElement("div",{ref:_,className:"".concat(n,"-indent-unit")}))),d.createElement(_v,ke({},z,{data:Se,itemKey:xk,height:w,fullHeight:!1,virtual:C,itemHeight:S,prefixCls:"".concat(n,"-list"),ref:B,onVisibleChange:function(xe,Pe){var Ie=new Set(xe),De=Pe.filter(function(Be){return!Ie.has(Be)});De.some(function(Be){return xk(Be)===Ts})&&be()}}),function(me){var xe=me.pos,Pe=ke({},(HM(me.data),me.data)),Ie=me.title,De=me.key,Be=me.isStart,qe=me.isEnd,lt=wd(De,xe);delete Pe.key,delete Pe.children;var et=Su(lt,pe);return d.createElement(VX,ke({},Pe,et,{title:Ie,active:!!k&&De===k.key,pos:xe,data:me.data,isStart:Be,isEnd:qe,motion:b,motionNodes:De===Ts?ce:null,motionType:re,onMotionStart:j,onMotionEnd:be,treeNodeRequiredProps:pe,onMouseMove:function(){D(null)}}))}))});WM.displayName="NodeList";var XX=10,Ow=function(e){oi(n,e);var t=Zi(n);function n(){var r;ur(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),r.destroyed=!1,r.delayedDragEnterLogic=void 0,r.loadingRetryTimes={},r.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Yl()},r.dragStartMousePosition=null,r.dragNode=void 0,r.currentMouseOverDroppableNodeKey=null,r.listRef=d.createRef(),r.onNodeDragStart=function(s,c){var f=r.state,p=f.expandedKeys,v=f.keyEntities,g=r.props.onDragStart,m=c.props.eventKey;r.dragNode=c,r.dragStartMousePosition={x:s.clientX,y:s.clientY};var y=pi(p,m);r.setState({draggingNodeKey:m,dragChildrenKeys:kX(m,v),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(y),window.addEventListener("dragend",r.onWindowDragEnd),g==null||g({event:s,node:Jn(c.props)})},r.onNodeDragEnter=function(s,c){var f=r.state,p=f.expandedKeys,v=f.keyEntities,g=f.dragChildrenKeys,m=f.flattenNodes,y=f.indent,b=r.props,w=b.onDragEnter,S=b.onExpand,C=b.allowDrop,E=b.direction,k=c.props,I=k.pos,$=k.eventKey,T=Dt(r),N=T.dragNode;if(r.currentMouseOverDroppableNodeKey!==$&&(r.currentMouseOverDroppableNodeKey=$),!N){r.resetDragState();return}var P=vk(s,N,c,y,r.dragStartMousePosition,C,m,v,p,E),D=P.dropPosition,j=P.dropLevelOffset,F=P.dropTargetKey,z=P.dropContainerKey,B=P.dropTargetPos,_=P.dropAllowed,H=P.dragOverNodeKey;if(g.indexOf(F)!==-1||!_){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(L){clearTimeout(r.delayedDragEnterLogic[L])}),N.props.eventKey!==c.props.eventKey&&(s.persist(),r.delayedDragEnterLogic[I]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var L=Ee(p),A=co(v,c.props.eventKey);A&&(A.children||[]).length&&(L=zi(p,c.props.eventKey)),"expandedKeys"in r.props||r.setExpandedKeys(L),S==null||S(L,{node:Jn(c.props),expanded:!0,nativeEvent:s.nativeEvent})}},800)),N.props.eventKey===F&&j===0){r.resetDragState();return}r.setState({dragOverNodeKey:H,dropPosition:D,dropLevelOffset:j,dropTargetKey:F,dropContainerKey:z,dropTargetPos:B,dropAllowed:_}),w==null||w({event:s,node:Jn(c.props),expandedKeys:p})},r.onNodeDragOver=function(s,c){var f=r.state,p=f.dragChildrenKeys,v=f.flattenNodes,g=f.keyEntities,m=f.expandedKeys,y=f.indent,b=r.props,w=b.onDragOver,S=b.allowDrop,C=b.direction,E=Dt(r),k=E.dragNode;if(k){var I=vk(s,k,c,y,r.dragStartMousePosition,S,v,g,m,C),$=I.dropPosition,T=I.dropLevelOffset,N=I.dropTargetKey,P=I.dropContainerKey,D=I.dropAllowed,j=I.dropTargetPos,F=I.dragOverNodeKey;p.indexOf(N)!==-1||!D||(k.props.eventKey===N&&T===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():$===r.state.dropPosition&&T===r.state.dropLevelOffset&&N===r.state.dropTargetKey&&P===r.state.dropContainerKey&&j===r.state.dropTargetPos&&D===r.state.dropAllowed&&F===r.state.dragOverNodeKey||r.setState({dropPosition:$,dropLevelOffset:T,dropTargetKey:N,dropContainerKey:P,dropTargetPos:j,dropAllowed:D,dragOverNodeKey:F}),w==null||w({event:s,node:Jn(c.props)}))}},r.onNodeDragLeave=function(s,c){r.currentMouseOverDroppableNodeKey===c.props.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var f=r.props.onDragLeave;f==null||f({event:s,node:Jn(c.props)})},r.onWindowDragEnd=function(s){r.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)},r.onNodeDragEnd=function(s,c){var f=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),f==null||f({event:s,node:Jn(c.props)}),r.dragNode=null,window.removeEventListener("dragend",r.onWindowDragEnd)},r.onNodeDrop=function(s,c){var f,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,v=r.state,g=v.dragChildrenKeys,m=v.dropPosition,y=v.dropTargetKey,b=v.dropTargetPos,w=v.dropAllowed;if(w){var S=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),y!==null){var C=Z(Z({},Su(y,r.getTreeNodeRequiredProps())),{},{active:((f=r.getActiveItem())===null||f===void 0?void 0:f.key)===y,data:co(r.state.keyEntities,y).node}),E=g.indexOf(y)!==-1;Dn(!E,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var k=kw(b),I={event:s,node:Jn(C),dragNode:r.dragNode?Jn(r.dragNode.props):null,dragNodesKeys:[r.dragNode.props.eventKey].concat(g),dropToGap:m!==0,dropPosition:m+Number(k[k.length-1])};p||S==null||S(I),r.dragNode=null}}},r.cleanDragState=function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null},r.triggerExpandActionExpand=function(s,c){var f=r.state,p=f.expandedKeys,v=f.flattenNodes,g=c.expanded,m=c.key,y=c.isLeaf;if(!(y||s.shiftKey||s.metaKey||s.ctrlKey)){var b=v.filter(function(S){return S.key===m})[0],w=Jn(Z(Z({},Su(m,r.getTreeNodeRequiredProps())),{},{data:b.data}));r.setExpandedKeys(g?pi(p,m):zi(p,m)),r.onNodeExpand(s,w)}},r.onNodeClick=function(s,c){var f=r.props,p=f.onClick,v=f.expandAction;v==="click"&&r.triggerExpandActionExpand(s,c),p==null||p(s,c)},r.onNodeDoubleClick=function(s,c){var f=r.props,p=f.onDoubleClick,v=f.expandAction;v==="doubleClick"&&r.triggerExpandActionExpand(s,c),p==null||p(s,c)},r.onNodeSelect=function(s,c){var f=r.state.selectedKeys,p=r.state,v=p.keyEntities,g=p.fieldNames,m=r.props,y=m.onSelect,b=m.multiple,w=c.selected,S=c[g.key],C=!w;C?b?f=zi(f,S):f=[S]:f=pi(f,S);var E=f.map(function(k){var I=co(v,k);return I?I.node:null}).filter(function(k){return k});r.setUncontrolledState({selectedKeys:f}),y==null||y(f,{event:"select",selected:C,node:c,selectedNodes:E,nativeEvent:s.nativeEvent})},r.onNodeCheck=function(s,c,f){var p=r.state,v=p.keyEntities,g=p.checkedKeys,m=p.halfCheckedKeys,y=r.props,b=y.checkStrictly,w=y.onCheck,S=c.key,C,E={event:"check",node:c,checked:f,nativeEvent:s.nativeEvent};if(b){var k=f?zi(g,S):pi(g,S),I=pi(m,S);C={checked:k,halfChecked:I},E.checkedNodes=k.map(function(j){return co(v,j)}).filter(function(j){return j}).map(function(j){return j.node}),r.setUncontrolledState({checkedKeys:k})}else{var $=Hi([].concat(Ee(g),[S]),!0,v),T=$.checkedKeys,N=$.halfCheckedKeys;if(!f){var P=new Set(T);P.delete(S);var D=Hi(Array.from(P),{checked:!1,halfCheckedKeys:N},v);T=D.checkedKeys,N=D.halfCheckedKeys}C=T,E.checkedNodes=[],E.checkedNodesPositions=[],E.halfCheckedKeys=N,T.forEach(function(j){var F=co(v,j);if(F){var z=F.node,B=F.pos;E.checkedNodes.push(z),E.checkedNodesPositions.push({node:z,pos:B})}}),r.setUncontrolledState({checkedKeys:T},!1,{halfCheckedKeys:N})}w==null||w(C,E)},r.onNodeLoad=function(s){var c=s.key,f=new Promise(function(p,v){r.setState(function(g){var m=g.loadedKeys,y=m===void 0?[]:m,b=g.loadingKeys,w=b===void 0?[]:b,S=r.props,C=S.loadData,E=S.onLoad;if(!C||y.indexOf(c)!==-1||w.indexOf(c)!==-1)return null;var k=C(s);return k.then(function(){var I=r.state.loadedKeys,$=zi(I,c);E==null||E($,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:$}),r.setState(function(T){return{loadingKeys:pi(T.loadingKeys,c)}}),p()}).catch(function(I){if(r.setState(function(T){return{loadingKeys:pi(T.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=XX){var $=r.state.loadedKeys;Dn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:zi($,c)}),p()}v(I)}),{loadingKeys:zi(w,c)}})});return f.catch(function(){}),f},r.onNodeMouseEnter=function(s,c){var f=r.props.onMouseEnter;f==null||f({event:s,node:c})},r.onNodeMouseLeave=function(s,c){var f=r.props.onMouseLeave;f==null||f({event:s,node:c})},r.onNodeContextMenu=function(s,c){var f=r.props.onRightClick;f&&(s.preventDefault(),f({event:s,node:c}))},r.onFocus=function(){var s=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,f=new Array(c),p=0;p<c;p++)f[p]=arguments[p];s==null||s.apply(void 0,f)},r.onBlur=function(){var s=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var c=arguments.length,f=new Array(c),p=0;p<c;p++)f[p]=arguments[p];s==null||s.apply(void 0,f)},r.getTreeNodeRequiredProps=function(){var s=r.state,c=s.expandedKeys,f=s.selectedKeys,p=s.loadedKeys,v=s.loadingKeys,g=s.checkedKeys,m=s.halfCheckedKeys,y=s.dragOverNodeKey,b=s.dropPosition,w=s.keyEntities;return{expandedKeys:c||[],selectedKeys:f||[],loadedKeys:p||[],loadingKeys:v||[],checkedKeys:g||[],halfCheckedKeys:m||[],dragOverNodeKey:y,dropPosition:b,keyEntities:w}},r.setExpandedKeys=function(s){var c=r.state,f=c.treeData,p=c.fieldNames,v=Sm(f,s,p);r.setUncontrolledState({expandedKeys:s,flattenNodes:v},!0)},r.onNodeExpand=function(s,c){var f=r.state.expandedKeys,p=r.state,v=p.listChanging,g=p.fieldNames,m=r.props,y=m.onExpand,b=m.loadData,w=c.expanded,S=c[g.key];if(!v){var C=f.indexOf(S),E=!w;if(Dn(w&&C!==-1||!w&&C===-1,"Expand state not sync with index check"),E?f=zi(f,S):f=pi(f,S),r.setExpandedKeys(f),y==null||y(f,{node:c,expanded:E,nativeEvent:s.nativeEvent}),E&&b){var k=r.onNodeLoad(c);k&&k.then(function(){var I=Sm(r.state.treeData,f,g);r.setUncontrolledState({flattenNodes:I})}).catch(function(){var I=r.state.expandedKeys,$=pi(I,S);r.setExpandedKeys($)})}}},r.onListChangeStart=function(){r.setUncontrolledState({listChanging:!0})},r.onListChangeEnd=function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})},r.onActiveChange=function(s){var c=r.state.activeKey,f=r.props,p=f.onActiveChange,v=f.itemScrollOffset,g=v===void 0?0:v;c!==s&&(r.setState({activeKey:s}),s!==null&&r.scrollTo({key:s,offset:g}),p==null||p(s))},r.getActiveItem=function(){var s=r.state,c=s.activeKey,f=s.flattenNodes;return c===null?null:f.find(function(p){var v=p.key;return v===c})||null},r.offsetActiveKey=function(s){var c=r.state,f=c.flattenNodes,p=c.activeKey,v=f.findIndex(function(y){var b=y.key;return b===p});v===-1&&s<0&&(v=f.length),v=(v+s+f.length)%f.length;var g=f[v];if(g){var m=g.key;r.onActiveChange(m)}else r.onActiveChange(null)},r.onKeyDown=function(s){var c=r.state,f=c.activeKey,p=c.expandedKeys,v=c.checkedKeys,g=c.fieldNames,m=r.props,y=m.onKeyDown,b=m.checkable,w=m.selectable;switch(s.which){case Te.UP:r.offsetActiveKey(-1),s.preventDefault();break;case Te.DOWN:r.offsetActiveKey(1),s.preventDefault();break}var S=r.getActiveItem();if(S&&S.data){var C=r.getTreeNodeRequiredProps(),E=S.data.isLeaf===!1||!!(S.data[g.children]||[]).length,k=Jn(Z(Z({},Su(f,C)),{},{data:S.data,active:!0}));switch(s.which){case Te.LEFT:E&&p.includes(f)?r.onNodeExpand({},k):S.parent&&r.onActiveChange(S.parent.key),s.preventDefault();break;case Te.RIGHT:E&&!p.includes(f)?r.onNodeExpand({},k):S.children&&S.children.length&&r.onActiveChange(S.children[0].key),s.preventDefault();break;case Te.ENTER:case Te.SPACE:b&&!k.disabled&&k.checkable!==!1&&!k.disableCheckbox?r.onNodeCheck({},k,!v.includes(f)):!b&&w&&!k.disabled&&k.selectable!==!1&&r.onNodeSelect({},k);break}}y==null||y(s)},r.setUncontrolledState=function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var p=!1,v=!0,g={};Object.keys(s).forEach(function(m){if(m in r.props){v=!1;return}p=!0,g[m]=s[m]}),p&&(!c||v)&&r.setState(Z(Z({},g),f))}},r.scrollTo=function(s){r.listRef.current.scrollTo(s)},r}return dr(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,i=o.activeKey,a=o.itemScrollOffset,s=a===void 0?0:a;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o,i=this.state,a=i.focused,s=i.flattenNodes,c=i.keyEntities,f=i.draggingNodeKey,p=i.activeKey,v=i.dropLevelOffset,g=i.dropContainerKey,m=i.dropTargetKey,y=i.dropPosition,b=i.dragOverNodeKey,w=i.indent,S=this.props,C=S.prefixCls,E=S.className,k=S.style,I=S.showLine,$=S.focusable,T=S.tabIndex,N=T===void 0?0:T,P=S.selectable,D=S.showIcon,j=S.icon,F=S.switcherIcon,z=S.draggable,B=S.checkable,_=S.checkStrictly,H=S.disabled,L=S.motion,A=S.loadData,U=S.filterTreeNode,R=S.height,V=S.itemHeight,Y=S.virtual,X=S.titleRender,q=S.dropIndicatorRender,G=S.onContextMenu,K=S.onScroll,J=S.direction,oe=S.rootClassName,fe=S.rootStyle,ce=Do(this.props,{aria:!0,data:!0}),ee;return z&&(Tt(z)==="object"?ee=z:typeof z=="function"?ee={nodeDraggable:z}:ee={}),d.createElement(Ew.Provider,{value:{prefixCls:C,selectable:P,showIcon:D,icon:j,switcherIcon:F,draggable:ee,draggingNodeKey:f,checkable:B,checkStrictly:_,disabled:H,keyEntities:c,dropLevelOffset:v,dropContainerKey:g,dropTargetKey:m,dropPosition:y,dragOverNodeKey:b,indent:w,direction:J,dropIndicatorRender:q,loadData:A,filterTreeNode:U,titleRender:X,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},d.createElement("div",{role:"tree",className:ae(C,E,oe,(o={},Q(o,"".concat(C,"-show-line"),I),Q(o,"".concat(C,"-focused"),a),Q(o,"".concat(C,"-active-focused"),p!==null),o)),style:fe},d.createElement(WM,ke({ref:this.listRef,prefixCls:C,style:k,data:s,disabled:H,selectable:P,checkable:!!B,motion:L,dragging:f!==null,height:R,itemHeight:V,virtual:Y,focusable:$,focused:a,tabIndex:N,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:G,onScroll:K},this.getTreeNodeRequiredProps(),ce))))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,s={prevProps:o};function c($){return!a&&$ in o||a&&a[$]!==o[$]}var f,p=i.fieldNames;if(c("fieldNames")&&(p=Yl(o.fieldNames),s.fieldNames=p),c("treeData")?f=o.treeData:c("children")&&(Dn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),f=kP(o.children)),f){s.treeData=f;var v=Jv(f,{fieldNames:p});s.keyEntities=Z(Q({},Ts,VM),v.keyEntities)}var g=s.keyEntities||i.keyEntities;if(c("expandedKeys")||a&&c("autoExpandParent"))s.expandedKeys=o.autoExpandParent||!a&&o.defaultExpandParent?yb(o.expandedKeys,g):o.expandedKeys;else if(!a&&o.defaultExpandAll){var m=Z({},g);delete m[Ts],s.expandedKeys=Object.keys(m).map(function($){return m[$].key})}else!a&&o.defaultExpandedKeys&&(s.expandedKeys=o.autoExpandParent||o.defaultExpandParent?yb(o.defaultExpandedKeys,g):o.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,f||s.expandedKeys){var y=Sm(f||i.treeData,s.expandedKeys||i.expandedKeys,p);s.flattenNodes=y}if(o.selectable&&(c("selectedKeys")?s.selectedKeys=hk(o.selectedKeys,o):!a&&o.defaultSelectedKeys&&(s.selectedKeys=hk(o.defaultSelectedKeys,o))),o.checkable){var b;if(c("checkedKeys")?b=Tm(o.checkedKeys)||{}:!a&&o.defaultCheckedKeys?b=Tm(o.defaultCheckedKeys)||{}:f&&(b=Tm(o.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),b){var w=b,S=w.checkedKeys,C=S===void 0?[]:S,E=w.halfCheckedKeys,k=E===void 0?[]:E;if(!o.checkStrictly){var I=Hi(C,!0,g);C=I.checkedKeys,k=I.halfCheckedKeys}s.checkedKeys=C,s.halfCheckedKeys=k}}return c("loadedKeys")&&(s.loadedKeys=o.loadedKeys),s}}]),n}(d.Component);Ow.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:FX,allowDrop:function(){return!0},expandAction:!1};Ow.TreeNode=Ql;var GX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const YX=GX;var QX=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:YX}))};const UM=d.forwardRef(QX);var ZX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};const JX=ZX;var eG=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:JX}))};const tG=d.forwardRef(eG);var nG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};const rG=nG;var oG=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:rG}))};const iG=d.forwardRef(oG);var aG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};const sG=aG;var lG=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:sG}))};const cG=d.forwardRef(lG),uG=new sn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),dG=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),fG=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${se(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),pG=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,nodeSelectedBg:a,nodeHoverBg:s}=t,c=t.paddingXS;return{[n]:Object.assign(Object.assign({},$n(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Fa(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:uG,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${se(o)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,lineHeight:`${se(i)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:Object.assign(Object.assign({},dG(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${se(i)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,borderRadius:t.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${n}-switcher-noop):hover`]:{backgroundColor:t.colorBgTextHover},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:c,alignSelf:"flex-start",marginTop:t.marginXXS},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${se(t.calc(t.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${se(i)}`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{backgroundColor:a},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${se(i)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:Object.assign({lineHeight:`${se(i)}`,userSelect:"none"},fG(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${se(t.calc(i).div(2).equal())} !important`}}}}})}},vG=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r,directoryNodeSelectedBg:o,directoryNodeSelectedColor:i}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:i,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:o},[`${t}-switcher`]:{color:i},[`${t}-node-content-wrapper`]:{color:i,background:"transparent"}}}}}},hG=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=un(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[pG(e,i),vG(i)]},gG=e=>{const{controlHeightSM:t}=e;return{titleHeight:t,nodeHoverBg:e.controlItemBgHover,nodeSelectedBg:e.controlItemBgActive}},mG=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},gG(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},bG=jn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:mw(`${n}-checkbox`,e)},hG(n,e),zv(e)]},mG),Sk=4;function yG(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",s=i==="ltr"?"right":"left",c={[a]:-n*o+Sk,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[a]=o+Sk;break}return de.createElement("div",{style:c,className:`${r}-drop-indicator`})}var wG={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};const xG=wG;var SG=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:xG}))};const CG=d.forwardRef(SG);var EG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const kG=EG;var OG=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:kG}))};const $G=d.forwardRef(OG);var IG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const TG=IG;var PG=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:TG}))};const MG=d.forwardRef(PG),NG=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o}=e,{isLeaf:i,expanded:a,loading:s}=r;if(s)return d.createElement(ks,{className:`${t}-switcher-loading-icon`});let c;if(o&&typeof o=="object"&&(c=o.showLeafIcon),i){if(!o)return null;if(typeof c!="boolean"&&c){const v=typeof c=="function"?c(r):c,g=`${t}-switcher-line-custom-icon`;return Ar(v)?mr(v,{className:ae(v.props.className||"",g)}):v}return c?d.createElement(UM,{className:`${t}-switcher-line-icon`}):d.createElement("span",{className:`${t}-switcher-leaf-line`})}const f=`${t}-switcher-icon`,p=typeof n=="function"?n(r):n;return Ar(p)?mr(p,{className:ae(p.props.className||"",f)}):p!==void 0?p:o?a?d.createElement($G,{className:`${t}-switcher-line-icon`}):d.createElement(MG,{className:`${t}-switcher-line-icon`}):d.createElement(CG,{className:f})},RG=NG,DG=de.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:i,tree:a}=de.useContext(kt),{prefixCls:s,className:c,showIcon:f=!1,showLine:p,switcherIcon:v,blockNode:g=!1,children:m,checkable:y=!1,selectable:b=!0,draggable:w,motion:S,style:C}=e,E=r("tree",s),k=r(),I=S??Object.assign(Object.assign({},Wu(k)),{motionAppear:!1}),$=Object.assign(Object.assign({},e),{checkable:y,selectable:b,showIcon:f,motion:I,blockNode:g,showLine:!!p,dropIndicatorRender:yG}),[T,N,P]=bG(E),[,D]=tr(),j=D.paddingXS/2+(((n=D.Tree)===null||n===void 0?void 0:n.titleHeight)||D.controlHeightSM),F=de.useMemo(()=>{if(!w)return!1;let B={};switch(typeof w){case"function":B.nodeDraggable=w;break;case"object":B=Object.assign({},w);break}return B.icon!==!1&&(B.icon=B.icon||de.createElement(cG,null)),B},[w]),z=B=>de.createElement(RG,{prefixCls:E,switcherIcon:v,treeNodeProps:B,showLine:p});return T(de.createElement(Ow,Object.assign({itemHeight:j,ref:t,virtual:i},$,{style:Object.assign(Object.assign({},a==null?void 0:a.style),C),prefixCls:E,className:ae({[`${E}-icon-hide`]:!f,[`${E}-block-node`]:g,[`${E}-unselectable`]:!b,[`${E}-rtl`]:o==="rtl"},a==null?void 0:a.className,c,N,P),direction:o,checkable:y&&de.createElement("span",{className:`${E}-checkbox-inner`}),selectable:b,switcherIcon:z,draggable:F}),m))}),KM=DG;var Fi;(function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"})(Fi||(Fi={}));function $w(e,t,n){const{key:r,children:o}=n;function i(a){const s=a[r],c=a[o];t(s,a)!==!1&&$w(c||[],t,n)}e.forEach(i)}function jG(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:i}=e;const a=[];let s=Fi.None;if(r&&r===o)return[r];if(!r||!o)return[];function c(f){return f===r||f===o}return $w(t,f=>{if(s===Fi.End)return!1;if(c(f)){if(a.push(f),s===Fi.None)s=Fi.Start;else if(s===Fi.Start)return s=Fi.End,!1}else s===Fi.Start&&a.push(f);return n.includes(f)},Yl(i)),a}function Pm(e,t,n){const r=Ee(t),o=[];return $w(e,(i,a)=>{const s=r.indexOf(i);return s!==-1&&(o.push(a),r.splice(s,1)),!!r.length},Yl(n)),o}var Ck=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function LG(e){const{isLeaf:t,expanded:n}=e;return t?d.createElement(UM,null):n?d.createElement(tG,null):d.createElement(iG,null)}function Ek(e){let{treeData:t,children:n}=e;return t||kP(n)}const BG=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=Ck(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=d.useRef(),s=d.useRef(),c=()=>{const{keyEntities:N}=Jv(Ek(i));let P;return n?P=Object.keys(N):r?P=yb(i.expandedKeys||o||[],N):P=i.expandedKeys||o,P},[f,p]=d.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[v,g]=d.useState(()=>c());d.useEffect(()=>{"selectedKeys"in i&&p(i.selectedKeys)},[i.selectedKeys]),d.useEffect(()=>{"expandedKeys"in i&&g(i.expandedKeys)},[i.expandedKeys]);const m=(N,P)=>{var D;return"expandedKeys"in i||g(N),(D=i.onExpand)===null||D===void 0?void 0:D.call(i,N,P)},y=(N,P)=>{var D;const{multiple:j,fieldNames:F}=i,{node:z,nativeEvent:B}=P,{key:_=""}=z,H=Ek(i),L=Object.assign(Object.assign({},P),{selected:!0}),A=(B==null?void 0:B.ctrlKey)||(B==null?void 0:B.metaKey),U=B==null?void 0:B.shiftKey;let R;j&&A?(R=N,a.current=_,s.current=R,L.selectedNodes=Pm(H,R,F)):j&&U?(R=Array.from(new Set([].concat(Ee(s.current||[]),Ee(jG({treeData:H,expandedKeys:v,startKey:_,endKey:a.current,fieldNames:F}))))),L.selectedNodes=Pm(H,R,F)):(R=[_],a.current=_,s.current=R,L.selectedNodes=Pm(H,R,F)),(D=i.onSelect)===null||D===void 0||D.call(i,R,L),"selectedKeys"in i||p(R)},{getPrefixCls:b,direction:w}=d.useContext(kt),{prefixCls:S,className:C,showIcon:E=!0,expandAction:k="click"}=i,I=Ck(i,["prefixCls","className","showIcon","expandAction"]),$=b("tree",S),T=ae(`${$}-directory`,{[`${$}-directory-rtl`]:w==="rtl"},C);return d.createElement(KM,Object.assign({icon:LG,ref:t,blockNode:!0},I,{showIcon:E,expandAction:k,prefixCls:$,className:T,expandedKeys:v,selectedKeys:f,onSelect:y,onExpand:m}))},AG=d.forwardRef(BG),zG=AG,Iw=KM;Iw.DirectoryTree=zG;Iw.TreeNode=Ql;const FG=Iw;function kk(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:o,locale:i}=e;return r?d.createElement("div",{className:`${o}-filter-dropdown-search`},d.createElement(fs,{prefix:d.createElement(ew,null),placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${o}-filter-dropdown-search-input`})):null}const HG=e=>{const{keyCode:t}=e;t===Te.ENTER&&e.stopPropagation()},_G=d.forwardRef((e,t)=>d.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:HG,ref:t},e.children)),VG=_G;function Rl(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[].concat(Ee(t),Ee(Rl(o))))}),t}function WG(e){return e.some(t=>{let{children:n}=t;return n})}function qM(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function XM(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a}=e;return t.map((s,c)=>{const f=String(s.value);if(s.children)return{key:f||c,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:XM({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};const p=o?$s:pP,v={key:s.value!==void 0?f:c,label:d.createElement(d.Fragment,null,d.createElement(p,{checked:r.includes(f)}),d.createElement("span",null,s.text))};return i.trim()?typeof a=="function"?a(i,s)?v:null:qM(i,s.text)?v:null:v})}function Mm(e){return e||[]}function UG(e){var t,n;const{tablePrefixCls:r,prefixCls:o,column:i,dropdownPrefixCls:a,columnKey:s,filterMultiple:c,filterMode:f="menu",filterSearch:p=!1,filterState:v,triggerFilter:g,locale:m,children:y,getPopupContainer:b,rootClassName:w}=e,{filterDropdownOpen:S,onFilterDropdownOpenChange:C,filterResetToDefaultFilteredValue:E,defaultFilteredValue:k,filterDropdownVisible:I,onFilterDropdownVisibleChange:$}=i,[T,N]=d.useState(!1),P=!!(v&&(!((t=v.filteredKeys)===null||t===void 0)&&t.length||v.forceFiltered)),D=ge=>{N(ge),C==null||C(ge),$==null||$(ge)},j=(n=S??I)!==null&&n!==void 0?n:T,F=v==null?void 0:v.filteredKeys,[z,B]=zX(Mm(F)),_=ge=>{let{selectedKeys:be}=ge;B(be)},H=(ge,be)=>{let{node:Se,checked:pe}=be;_(c?{selectedKeys:ge}:{selectedKeys:pe&&Se.key?[Se.key]:[]})};d.useEffect(()=>{T&&_({selectedKeys:Mm(F)})},[F]);const[L,A]=d.useState([]),U=ge=>{A(ge)},[R,V]=d.useState(""),Y=ge=>{const{value:be}=ge.target;V(be)};d.useEffect(()=>{T||V("")},[T]);const X=ge=>{const be=ge&&ge.length?ge:null;if(be===null&&(!v||!v.filteredKeys)||Vi(be,v==null?void 0:v.filteredKeys,!0))return null;g({column:i,key:s,filteredKeys:be})},q=()=>{D(!1),X(z())},G=function(){let{confirm:ge,closeDropdown:be}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ge&&X([]),be&&D(!1),V(""),B(E?(k||[]).map(Se=>String(Se)):[])},K=function(){let{closeDropdown:ge}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ge&&D(!1),X(z())},J=(ge,be)=>{be.source==="trigger"&&(ge&&F!==void 0&&B(Mm(F)),D(ge),!ge&&!i.filterDropdown&&q())},oe=ae({[`${a}-menu-without-submenu`]:!WG(i.filters||[])}),fe=ge=>{if(ge.target.checked){const be=Rl(i==null?void 0:i.filters).map(Se=>String(Se));B(be)}else B([])},ce=ge=>{let{filters:be}=ge;return(be||[]).map((Se,pe)=>{const me=String(Se.value),xe={title:Se.text,key:Se.value!==void 0?me:String(pe)};return Se.children&&(xe.children=ce({filters:Se.children})),xe})},ee=ge=>{var be;return Object.assign(Object.assign({},ge),{text:ge.title,value:ge.key,children:((be=ge.children)===null||be===void 0?void 0:be.map(Se=>ee(Se)))||[]})};let ie;if(typeof i.filterDropdown=="function")ie=i.filterDropdown({prefixCls:`${a}-custom`,setSelectedKeys:ge=>_({selectedKeys:ge}),selectedKeys:z(),confirm:K,clearFilters:G,filters:i.filters,visible:j,close:()=>{D(!1)}});else if(i.filterDropdown)ie=i.filterDropdown;else{const ge=z()||[],be=()=>(i.filters||[]).length===0?d.createElement(ds,{image:ds.PRESENTED_IMAGE_SIMPLE,description:m.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):f==="tree"?d.createElement(d.Fragment,null,d.createElement(kk,{filterSearch:p,value:R,onChange:Y,tablePrefixCls:r,locale:m}),d.createElement("div",{className:`${r}-filter-dropdown-tree`},c?d.createElement($s,{checked:ge.length===Rl(i.filters).length,indeterminate:ge.length>0&&ge.length<Rl(i.filters).length,className:`${r}-filter-dropdown-checkall`,onChange:fe},m.filterCheckall):null,d.createElement(FG,{checkable:!0,selectable:!1,blockNode:!0,multiple:c,checkStrictly:!c,className:`${a}-menu`,onCheck:H,checkedKeys:ge,selectedKeys:ge,showIcon:!1,treeData:ce({filters:i.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:R.trim()?pe=>typeof p=="function"?p(R,ee(pe)):qM(R,pe.title):void 0}))):d.createElement(d.Fragment,null,d.createElement(kk,{filterSearch:p,value:R,onChange:Y,tablePrefixCls:r,locale:m}),d.createElement(sP,{selectable:!0,multiple:c,prefixCls:`${a}-menu`,className:oe,onSelect:_,onDeselect:_,selectedKeys:ge,getPopupContainer:b,openKeys:L,onOpenChange:U,items:XM({filters:i.filters||[],filterSearch:p,prefixCls:o,filteredKeys:z(),filterMultiple:c,searchValue:R})})),Se=()=>E?Vi((k||[]).map(pe=>String(pe)),ge,!0):ge.length===0;ie=d.createElement(d.Fragment,null,be(),d.createElement("div",{className:`${o}-dropdown-btns`},d.createElement(zr,{type:"link",size:"small",disabled:Se(),onClick:()=>G()},m.filterReset),d.createElement(zr,{type:"primary",size:"small",onClick:q},m.filterConfirm)))}i.filterDropdown&&(ie=d.createElement(aP,{selectable:void 0},ie));const te=()=>d.createElement(VG,{className:`${o}-dropdown`},ie);let re;typeof i.filterIcon=="function"?re=i.filterIcon(P):i.filterIcon?re=i.filterIcon:re=d.createElement(AX,null);const{direction:le}=d.useContext(kt);return d.createElement("div",{className:`${o}-column`},d.createElement("span",{className:`${r}-column-title`},y),d.createElement(eM,{dropdownRender:te,trigger:["click"],open:j,onOpenChange:J,getPopupContainer:b,placement:le==="rtl"?"bottomLeft":"bottomRight",rootClassName:w},d.createElement("span",{role:"button",tabIndex:-1,className:ae(`${o}-trigger`,{active:P}),onClick:ge=>{ge.stopPropagation()}},re)))}function Eb(e,t,n){let r=[];return(e||[]).forEach((o,i)=>{var a;const s=Ed(i,n);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let c=o.filteredValue;"filterDropdown"in o||(c=(a=c==null?void 0:c.map(String))!==null&&a!==void 0?a:c),r.push({column:o,key:Is(o,s),filteredKeys:c,forceFiltered:o.filtered})}else r.push({column:o,key:Is(o,s),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(Ee(r),Ee(Eb(o.children,t,s))))}),r}function GM(e,t,n,r,o,i,a,s,c){return n.map((f,p)=>{const v=Ed(p,s),{filterMultiple:g=!0,filterMode:m,filterSearch:y}=f;let b=f;if(b.filters||b.filterDropdown){const w=Is(b,v),S=r.find(C=>{let{key:E}=C;return w===E});b=Object.assign(Object.assign({},b),{title:C=>d.createElement(UG,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:b,columnKey:w,filterState:S,filterMultiple:g,filterMode:m,filterSearch:y,triggerFilter:i,locale:o,getPopupContainer:a,rootClassName:c},rh(f.title,C))})}return"children"in b&&(b=Object.assign(Object.assign({},b),{children:GM(e,t,b.children,r,o,i,a,v,c)})),b})}function Ok(e){const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:i}=n;const a=r,{filters:s,filterDropdown:c}=i;if(c)t[a]=o||null;else if(Array.isArray(o)){const f=Rl(s);t[a]=f.filter(p=>o.includes(String(p)))}else t[a]=null}),t}function $k(e,t){return t.reduce((n,r)=>{const{column:{onFilter:o,filters:i},filteredKeys:a}=r;return o&&a&&a.length?n.filter(s=>a.some(c=>{const f=Rl(i),p=f.findIndex(g=>String(g)===String(c)),v=p!==-1?f[p]:c;return o(v,s)})):n},e)}const YM=e=>e.flatMap(t=>"children"in t?[t].concat(Ee(YM(t.children||[]))):[t]);function KG(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a,rootClassName:s}=e;Ds();const c=d.useMemo(()=>YM(r||[]),[r]),[f,p]=d.useState(()=>Eb(c,!0)),v=d.useMemo(()=>{const b=Eb(c,!1);if(b.length===0)return b;let w=!0;if(b.forEach(S=>{let{filteredKeys:C}=S;C!==void 0&&(w=!1)}),w){const S=(c||[]).map((C,E)=>Is(C,Ed(E)));return f.filter(C=>{let{key:E}=C;return S.includes(E)}).map(C=>{const E=c[S.findIndex(k=>k===C.key)];return Object.assign(Object.assign({},C),{column:Object.assign(Object.assign({},C.column),E),forceFiltered:E.filtered})})}return b},[c,f]),g=d.useMemo(()=>Ok(v),[v]),m=b=>{const w=v.filter(S=>{let{key:C}=S;return C!==b.key});w.push(b),p(w),o(Ok(w),w)};return[b=>GM(t,n,b,v,a,m,i,void 0,s),v,g]}function qG(e,t,n){const r=d.useRef({});function o(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let s=function(c){c.forEach((f,p)=>{const v=n(f,p);a.set(v,f),f&&typeof f=="object"&&t in f&&s(f[t]||[])})};const a=new Map;s(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return r.current.kvMap.get(i)}return[o]}var XG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const QM=10;function GG(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const i=e[o];typeof i!="function"&&(n[o]=i)}),n}function YG(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,i=XG(r,["total"]),[a,s]=d.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:QM})),c=KU(a,i,{total:o>0?o:e}),f=Math.ceil((o||e)/c.pageSize);c.current>f&&(c.current=f||1);const p=(g,m)=>{s({current:g??1,pageSize:m||c.pageSize})},v=(g,m)=>{var y;n&&((y=n.onChange)===null||y===void 0||y.call(n,g,m)),p(g,m),t(g,m||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:v}),p]}var QG={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const ZG=QG;var JG=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:ZG}))};const eY=d.forwardRef(JG);var tY={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const nY=tY;var rY=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:nY}))};const oY=d.forwardRef(rY),Op="ascend",Nm="descend";function iv(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function Ik(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function iY(e,t){return t?e[e.indexOf(t)+1]:e[0]}function kb(e,t,n){let r=[];function o(i,a){r.push({column:i,key:Is(i,a),multiplePriority:iv(i),sortOrder:i.sortOrder})}return(e||[]).forEach((i,a)=>{const s=Ed(a,n);i.children?("sortOrder"in i&&o(i,s),r=[].concat(Ee(r),Ee(kb(i.children,t,s)))):i.sorter&&("sortOrder"in i?o(i,s):t&&i.defaultSortOrder&&r.push({column:i,key:Is(i,s),multiplePriority:iv(i),sortOrder:i.defaultSortOrder}))}),r}function ZM(e,t,n,r,o,i,a,s){return(t||[]).map((c,f)=>{const p=Ed(f,s);let v=c;if(v.sorter){const g=v.sortDirections||o,m=v.showSorterTooltip===void 0?a:v.showSorterTooltip,y=Is(v,p),b=n.find(N=>{let{key:P}=N;return P===y}),w=b?b.sortOrder:null,S=iY(g,w);let C;if(c.sortIcon)C=c.sortIcon({sortOrder:w});else{const N=g.includes(Op)&&d.createElement(oY,{className:ae(`${e}-column-sorter-up`,{active:w===Op})}),P=g.includes(Nm)&&d.createElement(eY,{className:ae(`${e}-column-sorter-down`,{active:w===Nm})});C=d.createElement("span",{className:ae(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(N&&P)})},d.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},N,P))}const{cancelSort:E,triggerAsc:k,triggerDesc:I}=i||{};let $=E;S===Nm?$=I:S===Op&&($=k);const T=typeof m=="object"?Object.assign({title:$},m):{title:$};v=Object.assign(Object.assign({},v),{className:ae(v.className,{[`${e}-column-sort`]:w}),title:N=>{const P=d.createElement("div",{className:`${e}-column-sorters`},d.createElement("span",{className:`${e}-column-title`},rh(c.title,N)),C);return m?d.createElement(Xi,Object.assign({},T),P):P},onHeaderCell:N=>{const P=c.onHeaderCell&&c.onHeaderCell(N)||{},D=P.onClick,j=P.onKeyDown;P.onClick=B=>{r({column:c,key:y,sortOrder:S,multiplePriority:iv(c)}),D==null||D(B)},P.onKeyDown=B=>{B.keyCode===Te.ENTER&&(r({column:c,key:y,sortOrder:S,multiplePriority:iv(c)}),j==null||j(B))};const F=DX(c.title,{}),z=F==null?void 0:F.toString();return w?P["aria-sort"]=w==="ascend"?"ascending":"descending":P["aria-label"]=z||"",P.className=ae(P.className,`${e}-column-has-sorters`),P.tabIndex=0,c.ellipsis&&(P.title=(F??"").toString()),P}})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:ZM(e,v.children,n,r,o,i,a,p)})),v})}function Tk(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function Pk(e){const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(Tk);return t.length===0&&e.length?Object.assign(Object.assign({},Tk(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function Ob(e,t,n){const r=t.slice().sort((a,s)=>s.multiplePriority-a.multiplePriority),o=e.slice(),i=r.filter(a=>{let{column:{sorter:s},sortOrder:c}=a;return Ik(s)&&c});return i.length?o.sort((a,s)=>{for(let c=0;c<i.length;c+=1){const f=i[c],{column:{sorter:p},sortOrder:v}=f,g=Ik(p);if(g&&v){const m=g(a,s,v);if(m!==0)return v===Op?m:-m}}return 0}).map(a=>{const s=a[n];return s?Object.assign(Object.assign({},a),{[n]:Ob(s,t,n)}):a}):o}function aY(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:o,tableLocale:i,showSorterTooltip:a}=e;const[s,c]=d.useState(kb(n,!0)),f=d.useMemo(()=>{let y=!0;const b=kb(n,!1);if(!b.length)return s;const w=[];function S(E){y?w.push(E):w.push(Object.assign(Object.assign({},E),{sortOrder:null}))}let C=null;return b.forEach(E=>{C===null?(S(E),E.sortOrder&&(E.multiplePriority===!1?y=!1:C=!0)):(C&&E.multiplePriority!==!1||(y=!1),S(E))}),w},[n,s]),p=d.useMemo(()=>{const y=f.map(b=>{let{column:w,sortOrder:S}=b;return{column:w,order:S}});return{sortColumns:y,sortColumn:y[0]&&y[0].column,sortOrder:y[0]&&y[0].order}},[f]);function v(y){let b;y.multiplePriority===!1||!f.length||f[0].multiplePriority===!1?b=[y]:b=[].concat(Ee(f.filter(w=>{let{key:S}=w;return S!==y.key})),[y]),c(b),r(Pk(b),b)}return[y=>ZM(t,y,f,v,o,i,a),f,p,()=>Pk(f)]}function JM(e,t){return e.map(n=>{const r=Object.assign({},n);return r.title=rh(n.title,t),"children"in r&&(r.children=JM(r.children,t)),r})}function sY(e){return[d.useCallback(n=>JM(n,e),[e])]}const lY=LM((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),cY=zM((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),uY=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:s,calc:c}=e,f=`${se(n)} ${r} ${o}`,p=(v,g,m)=>({[`&${t}-${v}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${se(c(g).mul(-1).equal())}
${se(c(c(m).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:f,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:f,borderTop:f,[`
> ${t}-content,
> ${t}-header,
> ${t}-body,
> ${t}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:f},"> thead":{"> tr:not(:last-child) > th":{borderBottom:f},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:f}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${se(c(a).mul(-1).equal())} ${se(c(c(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:f,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
> tr${t}-expanded-row,
> tr${t}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},p("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),p("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:f,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${se(n)} 0 ${se(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:f}}}},dY=uY,fY=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},za),{wordBreak:"keep-all",[`
&${t}-cell-fix-left-last,
&${t}-cell-fix-right-first
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},pY=fY,vY=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},hY=vY,gY=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:f,borderRadius:p,tablePaddingVertical:v,tablePaddingHorizontal:g,tableExpandedRowBg:m,paddingXXS:y,expandIconMarginTop:b,expandIconSize:w,expandIconHalfInner:S,expandIconScale:C,calc:E}=e,k=`${se(o)} ${a} ${s}`,I=E(y).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:f},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},Iy(e)),{position:"relative",float:"left",boxSizing:"border-box",width:w,height:w,padding:0,color:"inherit",lineHeight:se(w),background:c,border:k,borderRadius:p,transform:`scale(${C})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:S,insetInlineEnd:I,insetInlineStart:I,height:o},"&::after":{top:I,bottom:I,insetInlineStart:S,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:b,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:m}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${se(E(v).mul(-1).equal())} ${se(E(g).mul(-1).equal())}`,padding:`${se(v)} ${se(g)}`}}}},mY=gY,bY=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:s,colorText:c,lineWidth:f,lineType:p,tableBorderColor:v,headerIconColor:g,fontSizeSM:m,tablePaddingHorizontal:y,borderRadius:b,motionDurationSlow:w,colorTextDescription:S,colorPrimary:C,tableHeaderFilterActiveBg:E,colorTextDisabled:k,tableFilterDropdownBg:I,tableFilterDropdownHeight:$,controlItemBgHover:T,controlItemBgActive:N,boxShadowSecondary:P,filterDropdownMenuBg:D,calc:j}=e,F=`${n}-dropdown`,z=`${t}-filter-dropdown`,B=`${n}-tree`,_=`${se(f)} ${p} ${v}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:j(a).mul(-1).equal(),marginInline:`${se(a)} ${se(j(y).div(2).mul(-1).equal())}`,padding:`0 ${se(a)}`,color:g,fontSize:m,borderRadius:b,cursor:"pointer",transition:`all ${w}`,"&:hover":{color:S,background:E},"&.active":{color:C}}}},{[`${n}-dropdown`]:{[z]:Object.assign(Object.assign({},$n(e)),{minWidth:o,backgroundColor:I,borderRadius:b,boxShadow:P,overflow:"hidden",[`${F}-menu`]:{maxHeight:$,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:D,"&:empty::after":{display:"block",padding:`${se(s)} 0`,color:k,fontSize:m,textAlign:"center",content:'"Not Found"'}},[`${z}-tree`]:{paddingBlock:`${se(s)} 0`,paddingInline:s,[B]:{padding:0},[`${B}-treenode ${B}-node-content-wrapper:hover`]:{backgroundColor:T},[`${B}-treenode-checkbox-checked ${B}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:N}}},[`${z}-search`]:{padding:s,borderBottom:_,"&-input":{input:{minWidth:i},[r]:{color:k}}},[`${z}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${z}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${se(j(s).sub(f).equal())} ${se(s)}`,overflow:"hidden",borderTop:_}})}},{[`${n}-dropdown ${z}, ${z}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},yY=bY,wY=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:s,calc:c}=e,f=r;return{[`${t}-wrapper`]:{[`
${t}-cell-fix-left,
${t}-cell-fix-right
`]:{position:"sticky !important",zIndex:i,background:a},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${f}`},[`
${t}-cell-fix-left-first::after,
${t}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${f}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${f}`},[`
${t}-cell-fix-right-first::after,
${t}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${f}`}}}}},xY=wY,SY=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${se(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},CY=SY,EY=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${se(n)} ${se(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${se(n)} ${se(n)}`}}}}},kY=EY,OY=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},$Y=OY,IY=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:f,tableSelectedRowBg:p,tableSelectedRowHoverBg:v,tableRowHoverBg:g,tablePaddingHorizontal:m,calc:y}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:f,[`&${t}-selection-col-with-dropdown`]:{width:y(f).add(o).add(y(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:y(f).add(y(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:y(f).add(o).add(y(i).div(4)).add(y(a).mul(2)).equal()}},[`
table tr th${t}-selection-column,
table tr td${t}-selection-column,
${t}-selection-column
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:se(y(m).div(4).equal()),[r]:{color:s,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:p,"&-row-hover":{background:v}}},[`> ${t}-cell-row-hover`]:{background:g}}}}}},TY=IY,PY=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(i,a,s,c)=>({[`${t}${t}-${i}`]:{fontSize:c,[`
${t}-title,
${t}-footer,
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${se(a)} ${se(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:se(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${se(r(a).mul(-1).equal())} ${se(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:se(r(a).mul(-1).equal()),marginInline:`${se(r(n).sub(s).equal())} ${se(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:se(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},MY=PY,NY=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
&${t}-cell-fix-left:hover,
&${t}-cell-fix-right:hover
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},RY=NY,DY=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:s,stickyScrollBarBorderRadius:c,lineWidth:f,lineType:p,tableBorderColor:v}=e,g=`${se(f)} ${p} ${v}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${se(i)} !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:g,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},jY=DY,LY=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${se(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${se(o(n).mul(-1).equal())} 0 ${r}`}}}},Mk=LY,BY=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,s=`${se(r)} ${o} ${i}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${se(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},AY=BY,zY=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:s,tableBorderColor:c,tableFontSize:f,tableBg:p,tableRadius:v,tableHeaderTextColor:g,motionDurationMid:m,tableHeaderBg:y,tableHeaderCellSplitColor:b,tableFooterTextColor:w,tableFooterBg:S,calc:C}=e,E=`${se(a)} ${s} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Es()),{[t]:Object.assign(Object.assign({},$n(e)),{fontSize:f,background:p,borderRadius:`${se(v)} ${se(v)} 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${se(v)} ${se(v)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${t}-cell,
${t}-thead > tr > th,
${t}-tbody > tr > th,
${t}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${se(r)} ${se(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${se(r)} ${se(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:g,fontWeight:n,textAlign:"start",background:y,borderBottom:E,transition:`background ${m} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:b,transform:"translateY(-50%)",transition:`background-color ${m}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${m}, border-color ${m}`,borderBottom:E,[`
> ${t}-wrapper:only-child,
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
`]:{[t]:{marginBlock:se(C(r).mul(-1).equal()),marginInline:`${se(C(i).sub(o).equal())}
${se(C(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:g,fontWeight:n,textAlign:"start",background:y,borderBottom:E,transition:`background ${m} ease`}}},[`${t}-footer`]:{padding:`${se(r)} ${se(o)}`,color:w,background:S}})}},FY=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:s,padding:c,paddingSM:f,paddingXS:p,colorBorderSecondary:v,borderRadiusLG:g,controlHeight:m,colorTextPlaceholder:y,fontSize:b,fontSizeSM:w,lineHeight:S,lineWidth:C,colorIcon:E,colorIconHover:k,opacityLoading:I,controlInteractiveSize:$}=e,T=new En(o).onBackground(n).toHexShortString(),N=new En(i).onBackground(n).toHexShortString(),P=new En(t).onBackground(n).toHexShortString(),D=new En(E),j=new En(k),F=$/2-C,z=F*2+C*3;return{headerBg:P,headerColor:r,headerSortActiveBg:T,headerSortHoverBg:N,bodySortBg:P,rowHoverBg:P,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:f,cellPaddingInlineMD:p,cellPaddingBlockSM:p,cellPaddingInlineSM:p,borderColor:v,headerBorderRadius:g,footerBg:P,footerColor:r,cellFontSize:b,cellFontSizeMD:b,cellFontSizeSM:b,headerSplitColor:v,fixedHeaderSortActiveBg:T,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:m,stickyScrollBarBg:y,stickyScrollBarBorderRadius:100,expandIconMarginTop:(b*S-C*3)/2-Math.ceil((w*1.4-C*3)/2),headerIconColor:D.clone().setAlpha(D.getAlpha()*I).toRgbString(),headerIconHoverColor:j.clone().setAlpha(j.getAlpha()*I).toRgbString(),expandIconHalfInner:F,expandIconSize:z,expandIconScale:$/z}},HY=jn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:f,rowHoverBg:p,rowSelectedBg:v,rowSelectedHoverBg:g,rowExpandedBg:m,cellPaddingBlock:y,cellPaddingInline:b,cellPaddingBlockMD:w,cellPaddingInlineMD:S,cellPaddingBlockSM:C,cellPaddingInlineSM:E,borderColor:k,footerBg:I,footerColor:$,headerBorderRadius:T,cellFontSize:N,cellFontSizeMD:P,cellFontSizeSM:D,headerSplitColor:j,fixedHeaderSortActiveBg:F,headerFilterHoverBg:z,filterDropdownBg:B,expandIconBg:_,selectionColumnWidth:H,stickyScrollBarBg:L,calc:A}=e,U=2,R=un(e,{tableFontSize:N,tableBg:r,tableRadius:T,tablePaddingVertical:y,tablePaddingHorizontal:b,tablePaddingVerticalMiddle:w,tablePaddingHorizontalMiddle:S,tablePaddingVerticalSmall:C,tablePaddingHorizontalSmall:E,tableBorderColor:k,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:$,tableFooterBg:I,tableHeaderCellSplitColor:j,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:f,tableFixedHeaderSortActiveBg:F,tableHeaderFilterActiveBg:z,tableFilterDropdownBg:B,tableRowHoverBg:p,tableSelectedRowBg:v,tableSelectedRowHoverBg:g,zIndexTableFixed:U,zIndexTableSticky:U+1,tableFontSizeMiddle:P,tableFontSizeSmall:D,tableSelectionColumnWidth:H,tableExpandIconBg:_,tableExpandColumnWidth:A(o).add(A(e.padding).mul(2)).equal(),tableExpandedRowBg:m,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:L,tableScrollThumbBgHover:t,tableScrollBg:n});return[zY(R),CY(R),Mk(R),RY(R),yY(R),dY(R),kY(R),mY(R),Mk(R),hY(R),TY(R),xY(R),jY(R),pY(R),MY(R),$Y(R),AY(R)]},FY,{unitless:{expandIconScale:!0}}),_Y=[],VY=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,size:a,bordered:s,dropdownPrefixCls:c,dataSource:f,pagination:p,rowSelection:v,rowKey:g="key",rowClassName:m,columns:y,children:b,childrenColumnName:w,onChange:S,getPopupContainer:C,loading:E,expandIcon:k,expandable:I,expandedRowRender:$,expandIconColumnIndex:T,indentSize:N,scroll:P,sortDirections:D,locale:j,showSorterTooltip:F=!0,virtual:z}=e;Ds();const B=d.useMemo(()=>y||Cw(b),[y,b]),_=d.useMemo(()=>B.some(ot=>ot.responsive),[B]),H=DT(_),L=d.useMemo(()=>{const ot=new Set(Object.keys(H).filter(at=>H[at]));return B.filter(at=>!at.responsive||at.responsive.some(_t=>ot.has(_t)))},[B,H]),A=qn(e,["className","style","columns"]),{locale:U=ni,direction:R,table:V,renderEmpty:Y,getPrefixCls:X,getPopupContainer:q}=d.useContext(kt),G=ii(a),K=Object.assign(Object.assign({},U.Table),j),J=f||_Y,oe=X("table",n),fe=X("dropdown",c),[,ce]=tr(),ee=br(oe),[ie,te,re]=HY(oe,ee),le=Object.assign({childrenColumnName:w,expandIconColumnIndex:T},I),{childrenColumnName:ge="children"}=le,be=d.useMemo(()=>J.some(ot=>ot==null?void 0:ot[ge])?"nest":$||I&&I.expandedRowRender?"row":null,[J]),Se={body:d.useRef()},pe=RX(oe),me=d.useRef(null),xe=d.useRef(null);MX(t,()=>Object.assign(Object.assign({},xe.current),{nativeElement:me.current}));const Pe=d.useMemo(()=>typeof g=="function"?g:ot=>ot==null?void 0:ot[g],[g]),[Ie]=qG(J,ge,Pe),De={},Be=function(ot,at){let _t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ct,zt,Jt;const st=Object.assign(Object.assign({},De),ot);_t&&((Ct=De.resetPagination)===null||Ct===void 0||Ct.call(De),!((zt=st.pagination)===null||zt===void 0)&&zt.current&&(st.pagination.current=1),p&&p.onChange&&p.onChange(1,(Jt=st.pagination)===null||Jt===void 0?void 0:Jt.pageSize)),P&&P.scrollToFirstRowOnChange!==!1&&Se.body.current&&JA(0,{getContainer:()=>Se.body.current}),S==null||S(st.pagination,st.filters,st.sorter,{currentDataSource:$k(Ob(J,st.sorterStates,ge),st.filterStates),action:at})},qe=(ot,at)=>{Be({sorter:ot,sorterStates:at},"sort",!1)},[lt,et,He,Fe]=aY({prefixCls:oe,mergedColumns:L,onSorterChange:qe,sortDirections:D||["ascend","descend"],tableLocale:K,showSorterTooltip:F}),Re=d.useMemo(()=>Ob(J,et,ge),[J,et]);De.sorter=Fe(),De.sorterStates=et;const ft=(ot,at)=>{Be({filters:ot,filterStates:at},"filter",!0)},[Me,We,Le]=KG({prefixCls:oe,locale:K,dropdownPrefixCls:fe,mergedColumns:L,onFilterChange:ft,getPopupContainer:C||q,rootClassName:ae(o,ee)}),je=$k(Re,We);De.filters=Le,De.filterStates=We;const Ye=d.useMemo(()=>{const ot={};return Object.keys(Le).forEach(at=>{Le[at]!==null&&(ot[at]=Le[at])}),Object.assign(Object.assign({},He),{filters:ot})},[He,Le]),[mt]=sY(Ye),bt=(ot,at)=>{Be({pagination:Object.assign(Object.assign({},De.pagination),{current:ot,pageSize:at})},"paginate")},[Oe,Ge]=YG(je.length,bt,p);De.pagination=p===!1?{}:GG(Oe,p),De.resetPagination=Ge;const ct=d.useMemo(()=>{if(p===!1||!Oe.pageSize)return je;const{current:ot=1,total:at,pageSize:_t=QM}=Oe;return je.length<at?je.length>_t?je.slice((ot-1)*_t,ot*_t):je:je.slice((ot-1)*_t,ot*_t)},[!!p,je,Oe&&Oe.current,Oe&&Oe.pageSize,Oe&&Oe.total]),[Mt,ut]=TX({prefixCls:oe,data:je,pageData:ct,getRowKey:Pe,getRecordByKey:Ie,expandType:be,childrenColumnName:ge,locale:K,getPopupContainer:C||q},v),ze=(ot,at,_t)=>{let Ct;return typeof m=="function"?Ct=ae(m(ot,at,_t)):Ct=ae(m),ae({[`${oe}-row-selected`]:ut.has(Pe(ot,at))},Ct)};le.__PARENT_RENDER_ICON__=le.expandIcon,le.expandIcon=le.expandIcon||k||NX(K),be==="nest"&&le.expandIconColumnIndex===void 0?le.expandIconColumnIndex=v?1:0:le.expandIconColumnIndex>0&&v&&(le.expandIconColumnIndex-=1),typeof le.indentSize!="number"&&(le.indentSize=typeof N=="number"?N:15);const Qe=d.useCallback(ot=>mt(Mt(Me(lt(ot)))),[lt,Me,Mt]);let Xe,rt;if(p!==!1&&(Oe!=null&&Oe.total)){let ot;Oe.size?ot=Oe.size:ot=G==="small"||G==="middle"?"small":void 0;const at=zt=>d.createElement(gK,Object.assign({},Oe,{className:ae(`${oe}-pagination ${oe}-pagination-${zt}`,Oe.className),size:ot})),_t=R==="rtl"?"left":"right",{position:Ct}=Oe;if(Ct!==null&&Array.isArray(Ct)){const zt=Ct.find(pt=>pt.includes("top")),Jt=Ct.find(pt=>pt.includes("bottom")),st=Ct.every(pt=>`${pt}`=="none");!zt&&!Jt&&!st&&(rt=at(_t)),zt&&(Xe=at(zt.toLowerCase().replace("top",""))),Jt&&(rt=at(Jt.toLowerCase().replace("bottom","")))}else rt=at(_t)}let it;typeof E=="boolean"?it={spinning:E}:typeof E=="object"&&(it=Object.assign({spinning:!0},E));const tt=ae(re,ee,`${oe}-wrapper`,V==null?void 0:V.className,{[`${oe}-wrapper-rtl`]:R==="rtl"},r,o,te),Ke=Object.assign(Object.assign({},V==null?void 0:V.style),i),Ae=j&&j.emptyText||(Y==null?void 0:Y("Table"))||d.createElement(Wv,{componentName:"Table"}),xt=z?cY:lY,Nt={},Ot=d.useMemo(()=>{const{fontSize:ot,lineHeight:at,padding:_t,paddingXS:Ct,paddingSM:zt}=ce,Jt=Math.floor(ot*at);switch(G){case"large":return _t*2+Jt;case"small":return Ct*2+Jt;default:return zt*2+Jt}},[ce,G]);return z&&(Nt.listItemHeight=Ot),ie(d.createElement("div",{ref:me,className:tt,style:Ke},d.createElement(kK,Object.assign({spinning:!1},it),Xe,d.createElement(xt,Object.assign({},Nt,A,{ref:xe,columns:L,direction:R,expandable:le,prefixCls:oe,className:ae({[`${oe}-middle`]:G==="middle",[`${oe}-small`]:G==="small",[`${oe}-bordered`]:s,[`${oe}-empty`]:J.length===0},re,ee,te),data:ct,rowKey:Pe,rowClassName:ze,emptyText:Ae,internalHooks:Cd,internalRefs:Se,transformColumns:Qe,getContainerWidth:pe})),rt)))},WY=d.forwardRef(VY),UY=(e,t)=>{const n=d.useRef(0);return n.current+=1,d.createElement(WY,Object.assign({},e,{ref:t,_renderTimes:n.current}))},ea=d.forwardRef(UY);ea.SELECTION_COLUMN=Sa;ea.EXPAND_COLUMN=Oa;ea.SELECTION_ALL=wb;ea.SELECTION_INVERT=xb;ea.SELECTION_NONE=Sb;ea.Column=bX;ea.ColumnGroup=yX;ea.Summary=SM;const KY=ea,qY=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),s=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},$n(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Tw=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return un(e,{tagFontSize:o,tagLineHeight:se(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},Pw=e=>({defaultBg:new En(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),eN=jn("Tag",e=>{const t=Tw(e);return qY(t)},Pw);var XY=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const GY=d.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:s}=e,c=XY(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:f,tag:p}=d.useContext(kt),v=S=>{a==null||a(!i),s==null||s(S)},g=f("tag",n),[m,y,b]=eN(g),w=ae(g,`${g}-checkable`,{[`${g}-checkable-checked`]:i},p==null?void 0:p.className,o,y,b);return m(d.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},r),p==null?void 0:p.style),className:w,onClick:v})))}),YY=GY,QY=e=>q$(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),ZY=tc(["Tag","preset"],e=>{const t=Tw(e);return QY(t)},Pw);function JY(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const qf=(e,t,n)=>{const r=JY(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},eQ=tc(["Tag","status"],e=>{const t=Tw(e);return[qf(t,"success","Success"),qf(t,"processing","Info"),qf(t,"error","Error"),qf(t,"warning","Warning")]},Pw);var tQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const nQ=(e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:c,onClose:f,closeIcon:p,closable:v,bordered:g=!0}=e,m=tQ(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:y,direction:b,tag:w}=d.useContext(kt),[S,C]=d.useState(!0);d.useEffect(()=>{"visible"in m&&C(m.visible)},[m.visible]);const E=AT(c),k=H_(c),I=E||k,$=Object.assign(Object.assign({backgroundColor:c&&!I?c:void 0},w==null?void 0:w.style),i),T=y("tag",n),[N,P,D]=eN(T),j=ae(T,w==null?void 0:w.className,{[`${T}-${c}`]:I,[`${T}-has-color`]:c&&!I,[`${T}-hidden`]:!S,[`${T}-rtl`]:b==="rtl",[`${T}-borderless`]:!g},r,o,P,D),F=A=>{A.stopPropagation(),f==null||f(A),!A.defaultPrevented&&C(!1)},[,z]=NI(v,p,A=>A===null?d.createElement(oc,{className:`${T}-close-icon`,onClick:F}):d.createElement("span",{className:`${T}-close-icon`,onClick:F},A),null,!1),B=typeof m.onClick=="function"||a&&a.type==="a",_=s||null,H=_?d.createElement(d.Fragment,null,_,a&&d.createElement("span",null,a)):a,L=d.createElement("span",Object.assign({},m,{ref:t,className:j,style:$}),H,z,E&&d.createElement(ZY,{key:"preset",prefixCls:T}),k&&d.createElement(eQ,{key:"status",prefixCls:T}));return N(B?d.createElement(jv,{component:"Tag"},L):L)},tN=d.forwardRef(nQ);tN.CheckableTag=YY;const rQ=tN,oQ=e=>{const t=e!=null&&e.algorithm?zu(e.algorithm):zu(cd),n=Object.assign(Object.assign({},Ul),e==null?void 0:e.token);return u$(n,{override:e==null?void 0:e.token},t,$y)},iQ=oQ;function aQ(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const sQ=(e,t)=>{const n=t??cd(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),aQ(t??e)),j$(r)),{controlHeight:o}),R$(Object.assign(Object.assign({},n),{controlHeight:o})))},lQ=sQ,Bi=(e,t)=>new En(e).setAlpha(t).toRgbString(),ml=(e,t)=>new En(e).lighten(t).toHexString(),cQ=e=>{const t=Wi(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},uQ=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Bi(r,.85),colorTextSecondary:Bi(r,.65),colorTextTertiary:Bi(r,.45),colorTextQuaternary:Bi(r,.25),colorFill:Bi(r,.18),colorFillSecondary:Bi(r,.12),colorFillTertiary:Bi(r,.08),colorFillQuaternary:Bi(r,.04),colorBgElevated:ml(n,12),colorBgContainer:ml(n,8),colorBgLayout:ml(n,0),colorBgSpotlight:ml(n,26),colorBgBlur:Bi(r,.04),colorBorder:ml(n,26),colorBorderSecondary:ml(n,19)}},dQ=(e,t)=>{const n=Object.keys(Ey).map(o=>{const i=Wi(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,c)=>(a[`${o}-${c+1}`]=i[c],a[`${o}${c+1}`]=i[c],a),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??cd(e);return Object.assign(Object.assign(Object.assign({},r),n),D$(e,{generateColorPalettes:cQ,generateNeutralColorPalettes:uQ}))},fQ=dQ;function pQ(){const[e,t,n]=tr();return{theme:e,token:t,hashId:n}}const Nk={defaultConfig:Hp,defaultSeed:Hp.token,useToken:pQ,defaultAlgorithm:cd,darkAlgorithm:fQ,compactAlgorithm:lQ,getDesignToken:iQ};var vQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const hQ=vQ;var gQ=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:hQ}))};const mQ=d.forwardRef(gQ);var bQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yQ={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},wQ=d.forwardRef((e,t)=>{const n=f=>{const{keyCode:p}=f;p===Te.ENTER&&f.preventDefault()},r=f=>{const{keyCode:p}=f,{onClick:v}=e;p===Te.ENTER&&v&&v()},{style:o,noStyle:i,disabled:a}=e,s=bQ(e,["style","noStyle","disabled"]);let c={};return i||(c=Object.assign({},yQ)),a&&(c.pointerEvents="none"),c=Object.assign(Object.assign({},c),o),d.createElement("div",Object.assign({role:"button",tabIndex:0,ref:t},s,{onKeyDown:n,onKeyUp:r,style:c}))}),Rk=wQ;var xQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const SQ=xQ;var CQ=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:SQ}))};const EQ=d.forwardRef(CQ);var kQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const OQ=kQ;var $Q=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:OQ}))};const IQ=d.forwardRef($Q);var TQ=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},PQ=TQ,Dk={"text/plain":"Text","text/html":"Url",default:"Text"},MQ="Copy to clipboard: #{key}, Enter";function NQ(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function RQ(e,t){var n,r,o,i,a,s,c=!1;t||(t={}),n=t.debug||!1;try{o=PQ(),i=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(p){if(p.stopPropagation(),t.format)if(p.preventDefault(),typeof p.clipboardData>"u"){window.clipboardData.clearData();var v=Dk[t.format]||Dk.default;window.clipboardData.setData(v,e)}else p.clipboardData.clearData(),p.clipboardData.setData(t.format,e);t.onCopy&&(p.preventDefault(),t.onCopy(p.clipboardData))}),document.body.appendChild(s),i.selectNodeContents(s),a.addRange(i);var f=document.execCommand("copy");if(!f)throw new Error("copy command was unsuccessful");c=!0}catch{try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch{r=NQ("message"in t?t.message:MQ),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(i):a.removeAllRanges()),s&&document.body.removeChild(s),o()}return c}var DQ=RQ;const jQ=Ms(DQ);var LQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const BQ=LQ;var AQ=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:BQ}))};const zQ=d.forwardRef(AQ),FQ=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}},HQ=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
h${r}&,
div&-h${r},
div&-h${r} > textarea,
h${r}
`]=FQ(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},_Q=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Iy(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},VQ=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:sB[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),WQ=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${se(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},UQ=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),KQ=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),qQ=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},HQ(e)),{[`
& + h1${t},
& + h2${t},
& + h3${t},
& + h4${t},
& + h5${t}
`]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),VQ(e)),_Q(e)),{[`
${t}-expand,
${t}-edit,
${t}-copy
`]:Object.assign(Object.assign({},Iy(e)),{marginInlineStart:e.marginXXS})}),WQ(e)),UQ(e)),KQ()),{"&-rtl":{direction:"rtl"}})}},XQ=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),nN=jn("Typography",e=>[qQ(e)],XQ),GQ=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:i,maxLength:a,autoSize:s=!0,value:c,onSave:f,onCancel:p,onEnd:v,component:g,enterIcon:m=d.createElement(zQ,null)}=e,y=d.useRef(null),b=d.useRef(!1),w=d.useRef(),[S,C]=d.useState(c);d.useEffect(()=>{C(c)},[c]),d.useEffect(()=>{if(y.current&&y.current.resizableTextArea){const{textArea:_}=y.current.resizableTextArea;_.focus();const{length:H}=_.value;_.setSelectionRange(H,H)}},[]);const E=_=>{let{target:H}=_;C(H.value.replace(/[\n\r]/g,""))},k=()=>{b.current=!0},I=()=>{b.current=!1},$=_=>{let{keyCode:H}=_;b.current||(w.current=H)},T=()=>{f(S.trim())},N=_=>{let{keyCode:H,ctrlKey:L,altKey:A,metaKey:U,shiftKey:R}=_;w.current===H&&!b.current&&!L&&!A&&!U&&!R&&(H===Te.ENTER?(T(),v==null||v()):H===Te.ESC&&p())},P=()=>{T()},D=g?`${t}-${g}`:"",[j,F,z]=nN(t),B=ae(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl"},r,D,F,z);return j(d.createElement("div",{className:B,style:o},d.createElement(XP,{ref:y,maxLength:a,value:S,onChange:E,onKeyDown:$,onKeyUp:N,onCompositionStart:k,onCompositionEnd:I,onBlur:P,"aria-label":n,rows:1,autoSize:s}),m!==null?mr(m,{className:`${t}-edit-content-confirm`}):null))},YQ=GQ;function Rm(e,t){return d.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const QQ=(e,t)=>{const n=d.useRef(!1);d.useEffect(()=>{n.current?e():n.current=!0},t)};var ZQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const JQ=d.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:i,setContentRef:a,children:s,direction:c,style:f}=e,p=ZQ(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:v,direction:g,typography:m}=d.useContext(kt),y=c??g;let b=t;a&&(b=Zr(t,a));const w=v("typography",n),[S,C,E]=nN(w),k=ae(w,m==null?void 0:m.className,{[`${w}-rtl`]:y==="rtl"},o,i,C,E),I=Object.assign(Object.assign({},m==null?void 0:m.style),f);return S(d.createElement(r,Object.assign({className:k,style:I,ref:b},p),s))}),rN=JQ;function oN(e){const t=typeof e;return t==="string"||t==="number"}function eZ(e){let t=0;return e.forEach(n=>{oN(n)?t+=String(n).length:t+=1}),t}function Dm(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],s=oN(i)?String(i).length:1,c=n+s;if(c>t){const f=t-n;return r.push(String(i).slice(0,f)),r}r.push(i),n=c}return e}const tZ=0,Xf=1,jk=2,jm=3,Lm=4,nZ=e=>{let{enabledMeasure:t,children:n,text:r,width:o,fontSize:i,rows:a,onEllipsis:s}=e;const[[c,f,p],v]=d.useState([0,0,0]),[g,m]=d.useState(0),[y,b]=d.useState(tZ),[w,S]=d.useState(0),C=d.useRef(null),E=d.useRef(null),k=d.useMemo(()=>Yr(r),[r]),I=d.useMemo(()=>eZ(k),[k]),$=d.useMemo(()=>!t||y!==jm?g&&y!==Lm&&t?n(Dm(k,g),g<I):n(k,!1):n(Dm(k,f),f<I),[t,y,n,k,f,I]);on(()=>{t&&o&&i&&I&&(b(Xf),v([0,Math.ceil(I/2),I]))},[t,o,i,r,I,a]),on(()=>{var D;y===Xf&&S(((D=C.current)===null||D===void 0?void 0:D.offsetHeight)||0)},[y]),on(()=>{var D,j;if(w){if(y===Xf){const F=((D=E.current)===null||D===void 0?void 0:D.offsetHeight)||0,z=a*w;F<=z?(b(Lm),s(!1)):b(jk)}else if(y===jk)if(c!==p){const F=((j=E.current)===null||j===void 0?void 0:j.offsetHeight)||0,z=a*w;let B=c,_=p;c===p-1?_=c:F<=z?B=f:_=f;const H=Math.ceil((B+_)/2);v([B,H,_])}else b(jm),m(f),s(!0)}},[y,c,p,a,w]);const T={width:o,whiteSpace:"normal",margin:0,padding:0},N=(D,j,F)=>d.createElement("span",{"aria-hidden":!0,ref:j,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(i/2)*2},F)},D),P=(D,j)=>{const F=Dm(k,D);return N(n(F,!0),j,T)};return d.createElement(d.Fragment,null,$,t&&y!==jm&&y!==Lm&&d.createElement(d.Fragment,null,N("lg",C,{wordBreak:"keep-all",whiteSpace:"nowrap"}),y===Xf?N(n(k,!1),E,T):P(f,E)))},rZ=nZ,oZ=e=>{let{enabledEllipsis:t,isEllipsis:n,children:r,tooltipProps:o}=e;return!(o!=null&&o.title)||!t?r:d.createElement(Xi,Object.assign({open:n?void 0:!1},o),r)},iZ=oZ;var aZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function sZ(e,t){let{mark:n,code:r,underline:o,delete:i,strong:a,keyboard:s,italic:c}=e,f=t;function p(v,g){g&&(f=d.createElement(v,{},f))}return p("strong",a),p("u",o),p("del",i),p("code",r),p("mark",n),p("kbd",s),p("i",c),f}function Gf(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Lk(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}const lZ="...",cZ=d.forwardRef((e,t)=>{var n,r,o;const{prefixCls:i,className:a,style:s,type:c,disabled:f,children:p,ellipsis:v,editable:g,copyable:m,component:y,title:b}=e,w=aZ(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:S,direction:C}=d.useContext(kt),[E]=Ji("Text"),k=d.useRef(null),I=d.useRef(null),$=S("typography",i),T=qn(w,["mark","code","delete","underline","strong","keyboard","italic"]),[N,P]=Rm(g),[D,j]=Fn(!1,{value:P.editing}),{triggerType:F=["icon"]}=P,z=Oe=>{var Ge;Oe&&((Ge=P.onStart)===null||Ge===void 0||Ge.call(P)),j(Oe)};QQ(()=>{var Oe;D||(Oe=I.current)===null||Oe===void 0||Oe.focus()},[D]);const B=Oe=>{Oe==null||Oe.preventDefault(),z(!0)},_=Oe=>{var Ge;(Ge=P.onChange)===null||Ge===void 0||Ge.call(P,Oe),z(!1)},H=()=>{var Oe;(Oe=P.onCancel)===null||Oe===void 0||Oe.call(P),z(!1)},[L,A]=Rm(m),[U,R]=d.useState(!1),V=d.useRef(null),Y={};A.format&&(Y.format=A.format);const X=()=>{V.current&&clearTimeout(V.current)},q=Oe=>{var Ge;Oe==null||Oe.preventDefault(),Oe==null||Oe.stopPropagation(),jQ(A.text||String(p)||"",Y),R(!0),X(),V.current=setTimeout(()=>{R(!1)},3e3),(Ge=A.onCopy)===null||Ge===void 0||Ge.call(A,Oe)};d.useEffect(()=>X,[]);const[G,K]=d.useState(!1),[J,oe]=d.useState(!1),[fe,ce]=d.useState(!1),[ee,ie]=d.useState(!1),[te,re]=d.useState(!1),[le,ge]=d.useState(!0),[be,Se]=Rm(v,{expandable:!1}),pe=be&&!fe,{rows:me=1}=Se,xe=d.useMemo(()=>!pe||Se.suffix!==void 0||Se.onEllipsis||Se.expandable||N||L,[pe,Se,N,L]);on(()=>{be&&!xe&&(K(U0("webkitLineClamp")),oe(U0("textOverflow")))},[xe,be]);const Pe=d.useMemo(()=>xe?!1:me===1?J:G,[xe,J,G]),Ie=pe&&(Pe?te:ee),De=pe&&me===1&&Pe,Be=pe&&me>1&&Pe,qe=Oe=>{var Ge;ce(!0),(Ge=Se.onExpand)===null||Ge===void 0||Ge.call(Se,Oe)},[lt,et]=d.useState(0),[He,Fe]=d.useState(0),Re=(Oe,Ge)=>{let{offsetWidth:ct}=Oe;var Mt;et(ct),Fe(parseInt((Mt=window.getComputedStyle)===null||Mt===void 0?void 0:Mt.call(window,Ge).fontSize,10)||0)},ft=Oe=>{var Ge;ie(Oe),ee!==Oe&&((Ge=Se.onEllipsis)===null||Ge===void 0||Ge.call(Se,Oe))};d.useEffect(()=>{const Oe=k.current;if(be&&Pe&&Oe){const Ge=Be?Oe.offsetHeight<Oe.scrollHeight:Oe.offsetWidth<Oe.scrollWidth;te!==Ge&&re(Ge)}},[be,Pe,p,Be,le,lt]),d.useEffect(()=>{const Oe=k.current;if(typeof IntersectionObserver>"u"||!Oe||!Pe||!pe)return;const Ge=new IntersectionObserver(()=>{ge(!!Oe.offsetParent)});return Ge.observe(Oe),()=>{Ge.disconnect()}},[Pe,pe]);let Me={};Se.tooltip===!0?Me={title:(n=P.text)!==null&&n!==void 0?n:p}:d.isValidElement(Se.tooltip)?Me={title:Se.tooltip}:typeof Se.tooltip=="object"?Me=Object.assign({title:(r=P.text)!==null&&r!==void 0?r:p},Se.tooltip):Me={title:Se.tooltip};const We=d.useMemo(()=>{const Oe=Ge=>["string","number"].includes(typeof Ge);if(!(!be||Pe)){if(Oe(P.text))return P.text;if(Oe(p))return p;if(Oe(b))return b;if(Oe(Me.title))return Me.title}},[be,Pe,b,Me.title,Ie]);if(D)return d.createElement(YQ,{value:(o=P.text)!==null&&o!==void 0?o:typeof p=="string"?p:"",onSave:_,onCancel:H,onEnd:P.onEnd,prefixCls:$,className:a,style:s,direction:C,component:y,maxLength:P.maxLength,autoSize:P.autoSize,enterIcon:P.enterIcon});const Le=()=>{const{expandable:Oe,symbol:Ge}=Se;if(!Oe)return null;let ct;return Ge?ct=Ge:ct=E==null?void 0:E.expand,d.createElement("a",{key:"expand",className:`${$}-expand`,onClick:qe,"aria-label":E==null?void 0:E.expand},ct)},je=()=>{if(!N)return;const{icon:Oe,tooltip:Ge}=P,ct=Yr(Ge)[0]||(E==null?void 0:E.edit),Mt=typeof ct=="string"?ct:"";return F.includes("icon")?d.createElement(Xi,{key:"edit",title:Ge===!1?"":ct},d.createElement(Rk,{ref:I,className:`${$}-edit`,onClick:B,"aria-label":Mt},Oe||d.createElement(IQ,{role:"button"}))):null},Ye=()=>{if(!L)return null;const{tooltips:Oe,icon:Ge}=A,ct=Lk(Oe),Mt=Lk(Ge),ut=U?Gf(ct[1],E==null?void 0:E.copied):Gf(ct[0],E==null?void 0:E.copy),ze=U?E==null?void 0:E.copied:E==null?void 0:E.copy,Qe=typeof ut=="string"?ut:ze;return d.createElement(Xi,{key:"copy",title:ut},d.createElement(Rk,{className:ae(`${$}-copy`,{[`${$}-copy-success`]:U,[`${$}-copy-icon-only`]:p==null}),onClick:q,"aria-label":Qe},U?Gf(Mt[1],d.createElement(Jy,null),!0):Gf(Mt[0],d.createElement(EQ,null),!0)))},mt=Oe=>[Oe&&Le(),je(),Ye()],bt=Oe=>[Oe&&d.createElement("span",{"aria-hidden":!0,key:"ellipsis"},lZ),Se.suffix,mt(Oe)];return d.createElement(Lo,{onResize:Re,disabled:!pe},Oe=>d.createElement(iZ,{tooltipProps:Me,enabledEllipsis:pe,isEllipsis:Ie},d.createElement(rN,Object.assign({className:ae({[`${$}-${c}`]:c,[`${$}-disabled`]:f,[`${$}-ellipsis`]:be,[`${$}-single-line`]:pe&&me===1,[`${$}-ellipsis-single-line`]:De,[`${$}-ellipsis-multiple-line`]:Be},a),prefixCls:i,style:Object.assign(Object.assign({},s),{WebkitLineClamp:Be?me:void 0}),component:y,ref:Zr(Oe,k,t),direction:C,onClick:F.includes("text")?B:void 0,"aria-label":We==null?void 0:We.toString(),title:b},T),d.createElement(rZ,{enabledMeasure:pe&&!Pe,text:p,rows:me,width:lt,fontSize:He,onEllipsis:ft},(Ge,ct)=>{let Mt=Ge;return Ge.length&&ct&&We&&(Mt=d.createElement("span",{key:"show-content","aria-hidden":!0},Mt)),sZ(e,d.createElement(d.Fragment,null,Mt,bt(ct)))}))))}),oh=cZ;var uZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const dZ=d.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,o=uZ(e,["ellipsis","rel"]);const i=Object.assign(Object.assign({},o),{rel:r===void 0&&o.target==="_blank"?"noopener noreferrer":r});return delete i.navigate,d.createElement(oh,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),fZ=dZ,pZ=d.forwardRef((e,t)=>d.createElement(oh,Object.assign({ref:t},e,{component:"div"}))),vZ=pZ;var hZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const gZ=(e,t)=>{var{ellipsis:n}=e,r=hZ(e,["ellipsis"]);const o=d.useMemo(()=>n&&typeof n=="object"?qn(n,["expandable","rows"]):n,[n]);return d.createElement(oh,Object.assign({ref:t},r,{ellipsis:o,component:"span"}))},mZ=d.forwardRef(gZ);var bZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yZ=[1,2,3,4,5],wZ=d.forwardRef((e,t)=>{const{level:n=1}=e,r=bZ(e,["level"]);let o;return yZ.includes(n)?o=`h${n}`:o="h1",d.createElement(oh,Object.assign({ref:t},r,{component:o}))}),xZ=wZ,kd=rN;kd.Text=mZ;kd.Link=fZ;kd.Title=xZ;kd.Paragraph=vZ;const SZ=kd,Bm=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var c=r.toLowerCase(),f=s.toLowerCase(),p=[f];return(f===".jpg"||f===".jpeg")&&(p=[".jpg",".jpeg"]),p.some(function(v){return c.endsWith(v)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?(Dn(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function CZ(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function Bk(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function EZ(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var i=e.data[o];if(Array.isArray(i)){i.forEach(function(a){n.append("".concat(o,"[]"),a)});return}n.append(o,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(CZ(e,t),Bk(t)):e.onSuccess(Bk(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(o){r[o]!==null&&t.setRequestHeader(o,r[o])}),t.send(n),{abort:function(){t.abort()}}}function kZ(e,t){var n=e.createReader(),r=[];function o(){n.readEntries(function(i){var a=Array.prototype.slice.apply(i);r=r.concat(a);var s=!a.length;s?t(r):o()})}o()}var OZ=function(t,n,r){var o=function i(a,s){a&&(a.path=s||"",a.isFile?a.file(function(c){r(c)&&(a.fullPath&&!c.webkitRelativePath&&(Object.defineProperties(c,{webkitRelativePath:{writable:!0}}),c.webkitRelativePath=a.fullPath.replace(/^\//,""),Object.defineProperties(c,{webkitRelativePath:{writable:!1}})),n([c]))}):a.isDirectory&&kZ(a,function(c){c.forEach(function(f){i(f,"".concat(s).concat(a.name,"/"))})}))};t.forEach(function(i){o(i.webkitGetAsEntry())})},$Z=+new Date,IZ=0;function Am(){return"rc-upload-".concat($Z,"-").concat(++IZ)}var TZ=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],PZ=function(e){oi(n,e);var t=Zi(n);function n(){var r;ur(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),Q(Dt(r),"state",{uid:Am()}),Q(Dt(r),"reqs",{}),Q(Dt(r),"fileInput",void 0),Q(Dt(r),"_isMounted",void 0),Q(Dt(r),"onChange",function(s){var c=r.props,f=c.accept,p=c.directory,v=s.target.files,g=Ee(v).filter(function(m){return!p||Bm(m,f)});r.uploadFiles(g),r.reset()}),Q(Dt(r),"onClick",function(s){var c=r.fileInput;if(c){var f=s.target,p=r.props.onClick;if(f&&f.tagName==="BUTTON"){var v=c.parentNode;v.focus(),f.blur()}c.click(),p&&p(s)}}),Q(Dt(r),"onKeyDown",function(s){s.key==="Enter"&&r.onClick(s)}),Q(Dt(r),"onFileDrop",function(s){var c=r.props.multiple;if(s.preventDefault(),s.type!=="dragover")if(r.props.directory)OZ(Array.prototype.slice.call(s.dataTransfer.items),r.uploadFiles,function(p){return Bm(p,r.props.accept)});else{var f=Ee(s.dataTransfer.files).filter(function(p){return Bm(p,r.props.accept)});c===!1&&(f=f.slice(0,1)),r.uploadFiles(f)}}),Q(Dt(r),"uploadFiles",function(s){var c=Ee(s),f=c.map(function(p){return p.uid=Am(),r.processFile(p,c)});Promise.all(f).then(function(p){var v=r.props.onBatchStart;v==null||v(p.map(function(g){var m=g.origin,y=g.parsedFile;return{file:m,parsedFile:y}})),p.filter(function(g){return g.parsedFile!==null}).forEach(function(g){r.post(g)})})}),Q(Dt(r),"processFile",function(){var s=Va(Cr().mark(function c(f,p){var v,g,m,y,b,w,S,C,E;return Cr().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(v=r.props.beforeUpload,g=f,!v){I.next=14;break}return I.prev=3,I.next=6,v(f,p);case 6:g=I.sent,I.next=12;break;case 9:I.prev=9,I.t0=I.catch(3),g=!1;case 12:if(g!==!1){I.next=14;break}return I.abrupt("return",{origin:f,parsedFile:null,action:null,data:null});case 14:if(m=r.props.action,typeof m!="function"){I.next=21;break}return I.next=18,m(f);case 18:y=I.sent,I.next=22;break;case 21:y=m;case 22:if(b=r.props.data,typeof b!="function"){I.next=29;break}return I.next=26,b(f);case 26:w=I.sent,I.next=30;break;case 29:w=b;case 30:return S=(Tt(g)==="object"||typeof g=="string")&&g?g:f,S instanceof File?C=S:C=new File([S],f.name,{type:f.type}),E=C,E.uid=f.uid,I.abrupt("return",{origin:f,data:w,parsedFile:E,action:y});case 35:case"end":return I.stop()}},c,null,[[3,9]])}));return function(c,f){return s.apply(this,arguments)}}()),Q(Dt(r),"saveFileInput",function(s){r.fileInput=s}),r}return dr(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(o){var i=this,a=o.data,s=o.origin,c=o.action,f=o.parsedFile;if(this._isMounted){var p=this.props,v=p.onStart,g=p.customRequest,m=p.name,y=p.headers,b=p.withCredentials,w=p.method,S=s.uid,C=g||EZ,E={action:c,filename:m,data:a,file:f,headers:y,withCredentials:b,method:w||"post",onProgress:function(I){var $=i.props.onProgress;$==null||$(I,f)},onSuccess:function(I,$){var T=i.props.onSuccess;T==null||T(I,f,$),delete i.reqs[S]},onError:function(I,$){var T=i.props.onError;T==null||T(I,$,f),delete i.reqs[S]}};v(s),this.reqs[S]=C(E)}}},{key:"reset",value:function(){this.setState({uid:Am()})}},{key:"abort",value:function(o){var i=this.reqs;if(o){var a=o.uid?o.uid:o;i[a]&&i[a].abort&&i[a].abort(),delete i[a]}else Object.keys(i).forEach(function(s){i[s]&&i[s].abort&&i[s].abort(),delete i[s]})}},{key:"render",value:function(){var o,i=this.props,a=i.component,s=i.prefixCls,c=i.className,f=i.classNames,p=f===void 0?{}:f,v=i.disabled,g=i.id,m=i.style,y=i.styles,b=y===void 0?{}:y,w=i.multiple,S=i.accept,C=i.capture,E=i.children,k=i.directory,I=i.openFileDialogOnClick,$=i.onMouseEnter,T=i.onMouseLeave,N=i.hasControlInside,P=jt(i,TZ),D=ae((o={},Q(o,s,!0),Q(o,"".concat(s,"-disabled"),v),Q(o,c,c),o)),j=k?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},F=v?{}:{onClick:I?this.onClick:function(){},onKeyDown:I?this.onKeyDown:function(){},onMouseEnter:$,onMouseLeave:T,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:N?void 0:"0"};return de.createElement(a,ke({},F,{className:D,role:N?void 0:"button",style:m}),de.createElement("input",ke({},Do(P,{aria:!0,data:!0}),{id:g,disabled:v,type:"file",ref:this.saveFileInput,onClick:function(B){return B.stopPropagation()},key:this.state.uid,style:Z({display:"none"},b.input),className:p.input,accept:S},j,{multiple:w,onChange:this.onChange},C!=null?{capture:C}:{})),E)}}]),n}(d.Component);function zm(){}var $b=function(e){oi(n,e);var t=Zi(n);function n(){var r;ur(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),Q(Dt(r),"uploader",void 0),Q(Dt(r),"saveUploader",function(s){r.uploader=s}),r}return dr(n,[{key:"abort",value:function(o){this.uploader.abort(o)}},{key:"render",value:function(){return de.createElement(PZ,ke({},this.props,{ref:this.saveUploader}))}}]),n}(d.Component);Q($b,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:zm,onError:zm,onSuccess:zm,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const MZ=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${se(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${se(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
&:not(${t}-disabled):hover,
&-hover:not(${t}-disabled)
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${se(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
p${t}-text,
p${t}-hint
`]:{color:e.colorTextDisabled}}}}}},NZ=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:i,calc:a}=e,s=`${t}-list-item`,c=`${s}-actions`,f=`${s}-action`,p=e.fontHeightSM;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},Es()),{lineHeight:e.lineHeight,[s]:{position:"relative",height:a(e.lineHeight).mul(o).equal(),marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:Object.assign(Object.assign({},za),{padding:`0 ${se(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[c]:{[f]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
${f}:focus-visible,
&.picture ${f}
`]:{opacity:1},[`${f}${n}-btn`]:{height:p,border:0,lineHeight:1}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:o},[`${s}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:a(o).add(e.paddingXS).equal(),fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${s}:hover ${f}`]:{opacity:1},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${r}`]:{color:e.colorError},[c]:{[`${r}, ${r}:hover`]:{color:e.colorError},[f]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ak=new sn("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),zk=new sn("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),RZ=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:Ak},[`${n}-leave`]:{animationName:zk}}},{[`${t}-wrapper`]:KI(e)},Ak,zk]},DZ=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[`
${a}${a}-picture,
${a}${a}-picture-card,
${a}${a}-picture-circle
`]:{[s]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},za),{width:r,height:r,lineHeight:se(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:o,width:`calc(100% - ${se(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${P0[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${P0.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},jZ=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`,c=e.uploadPicCardSize;return{[`
${t}-wrapper${t}-picture-card-wrapper,
${t}-wrapper${t}-picture-circle-wrapper
`]:Object.assign(Object.assign({},Es()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:c,height:c,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${se(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{[`${a}-item-container`]:{display:"inline-block",width:c,height:c,marginBlock:`0 ${se(e.marginXS)}`,marginInline:`0 ${se(e.marginXS)}`,verticalAlign:"top"},"&::after":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${se(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${se(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
${n}-eye,
${n}-download,
${n}-delete
`]:{zIndex:10,width:r,margin:`0 ${se(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${se(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${se(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},LZ=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},BZ=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},$n(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},AZ=e=>({actionsColor:e.colorTextDescription}),zZ=jn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:i}=e,a=un(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[BZ(a),MZ(a),DZ(a),jZ(a),NZ(a),RZ(a),LZ(a),zv(a)]},AZ);var FZ={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"};const HZ=FZ;var _Z=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:HZ}))};const VZ=d.forwardRef(_Z);var WZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};const UZ=WZ;var KZ=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:UZ}))};const qZ=d.forwardRef(KZ);var XZ={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"};const GZ=XZ;var YZ=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:GZ}))};const QZ=d.forwardRef(YZ);function Yf(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Qf(e,t){const n=Ee(t),r=n.findIndex(o=>{let{uid:i}=o;return i===e.uid});return r===-1?n.push(e):n[r]=e,n}function Fm(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function ZZ(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(o=>o[n]!==e[n]);return r.length===t.length?null:r}const JZ=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},iN=e=>e.indexOf("image/")===0,eJ=e=>{if(e.type&&!e.thumbUrl)return iN(e.type);const t=e.thumbUrl||e.url||"",n=JZ(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},ya=200;function tJ(e){return new Promise(t=>{if(!e.type||!iN(e.type)){t("");return}const n=document.createElement("canvas");n.width=ya,n.height=ya,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${ya}px; height: ${ya}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:i,height:a}=o;let s=ya,c=ya,f=0,p=0;i>a?(c=a*(ya/i),p=-(c-s)/2):(s=i*(ya/a),f=-(s-c)/2),r.drawImage(o,f,p,s,c);const v=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(v)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var nJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const rJ=nJ;var oJ=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:rJ}))};const iJ=d.forwardRef(oJ),aJ=d.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,locale:i,listType:a,file:s,items:c,progress:f,iconRender:p,actionIconRender:v,itemRender:g,isImgUrl:m,showPreviewIcon:y,showRemoveIcon:b,showDownloadIcon:w,previewIcon:S,removeIcon:C,downloadIcon:E,onPreview:k,onDownload:I,onClose:$}=e;var T,N;const{status:P}=s,[D,j]=d.useState(P);d.useEffect(()=>{P!=="removed"&&j(P)},[P]);const[F,z]=d.useState(!1);d.useEffect(()=>{const ce=setTimeout(()=>{z(!0)},300);return()=>{clearTimeout(ce)}},[]);const B=p(s);let _=d.createElement("div",{className:`${n}-icon`},B);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(D==="uploading"||!s.thumbUrl&&!s.url){const ce=ae(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:D!=="uploading"});_=d.createElement("div",{className:ce},B)}else{const ce=m!=null&&m(s)?d.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):B,ee=ae(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:m&&!m(s)});_=d.createElement("a",{className:ee,onClick:ie=>k(s,ie),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ce)}const H=ae(`${n}-list-item`,`${n}-list-item-${D}`),L=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,A=b?v((typeof C=="function"?C(s):C)||d.createElement(mQ,null),()=>$(s),n,i.removeFile,!0):null,U=w&&D==="done"?v((typeof E=="function"?E(s):E)||d.createElement(iJ,null),()=>I(s),n,i.downloadFile):null,R=a!=="picture-card"&&a!=="picture-circle"&&d.createElement("span",{key:"download-delete",className:ae(`${n}-list-item-actions`,{picture:a==="picture"})},U,A),V=ae(`${n}-list-item-name`),Y=s.url?[d.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:V,title:s.name},L,{href:s.url,onClick:ce=>k(s,ce)}),s.name),R]:[d.createElement("span",{key:"view",className:V,onClick:ce=>k(s,ce),title:s.name},s.name),R],X=y&&(s.url||s.thumbUrl)?d.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:ce=>k(s,ce),title:i.previewFile},typeof S=="function"?S(s):S||d.createElement(qP,null)):null,q=(a==="picture-card"||a==="picture-circle")&&D!=="uploading"&&d.createElement("span",{className:`${n}-list-item-actions`},X,D==="done"&&U,A),{getPrefixCls:G}=d.useContext(kt),K=G(),J=d.createElement("div",{className:H},_,Y,q,F&&d.createElement(Bo,{motionName:`${K}-fade`,visible:D==="uploading",motionDeadline:2e3},ce=>{let{className:ee}=ce;const ie="percent"in s?d.createElement(pq,Object.assign({},f,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return d.createElement("div",{className:ae(`${n}-list-item-progress`,ee)},ie)})),oe=s.response&&typeof s.response=="string"?s.response:((T=s.error)===null||T===void 0?void 0:T.statusText)||((N=s.error)===null||N===void 0?void 0:N.message)||i.uploadError,fe=D==="error"?d.createElement(Xi,{title:oe,getPopupContainer:ce=>ce.parentNode},J):J;return d.createElement("div",{className:ae(`${n}-list-item-container`,r),style:o,ref:t},g?g(fe,s,c,{download:I.bind(null,s),preview:k.bind(null,s),remove:$.bind(null,s)}):fe)}),sJ=aJ,lJ=(e,t)=>{const{listType:n="text",previewFile:r=tJ,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:c,isImageUrl:f=eJ,prefixCls:p,items:v=[],showPreviewIcon:g=!0,showRemoveIcon:m=!0,showDownloadIcon:y=!1,removeIcon:b,previewIcon:w,downloadIcon:S,progress:C={size:[-1,2],showInfo:!1},appendAction:E,appendActionVisible:k=!0,itemRender:I,disabled:$}=e,T=tw(),[N,P]=d.useState(!1);d.useEffect(()=>{n!=="picture"&&n!=="picture-card"&&n!=="picture-circle"||(v||[]).forEach(X=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(X.originFileObj instanceof File||X.originFileObj instanceof Blob)||X.thumbUrl!==void 0||(X.thumbUrl="",r&&r(X.originFileObj).then(q=>{X.thumbUrl=q||"",T()}))})},[n,v,r]),d.useEffect(()=>{P(!0)},[]);const D=(X,q)=>{if(o)return q==null||q.preventDefault(),o(X)},j=X=>{typeof i=="function"?i(X):X.url&&window.open(X.url)},F=X=>{a==null||a(X)},z=X=>{if(c)return c(X,n);const q=X.status==="uploading",G=f&&f(X)?d.createElement(QZ,null):d.createElement(VZ,null);let K=q?d.createElement(ks,null):d.createElement(qZ,null);return n==="picture"?K=q?d.createElement(ks,null):G:(n==="picture-card"||n==="picture-circle")&&(K=q?s.uploading:G),K},B=(X,q,G,K,J)=>{const oe={type:"text",size:"small",title:K,onClick:fe=>{q(),Ar(X)&&X.props.onClick&&X.props.onClick(fe)},className:`${G}-list-item-action`};if(J&&(oe.disabled=$),Ar(X)){const fe=mr(X,Object.assign(Object.assign({},X.props),{onClick:()=>{}}));return d.createElement(zr,Object.assign({},oe,{icon:fe}))}return d.createElement(zr,Object.assign({},oe),d.createElement("span",null,X))};d.useImperativeHandle(t,()=>({handlePreview:D,handleDownload:j}));const{getPrefixCls:_}=d.useContext(kt),H=_("upload",p),L=_(),A=ae(`${H}-list`,`${H}-list-${n}`),U=Ee(v.map(X=>({key:X.uid,file:X})));let V={motionDeadline:2e3,motionName:`${H}-${n==="picture-card"||n==="picture-circle"?"animate-inline":"animate"}`,keys:U,motionAppear:N};const Y=d.useMemo(()=>{const X=Object.assign({},Wu(L));return delete X.onAppearEnd,delete X.onEnterEnd,delete X.onLeaveEnd,X},[L]);return n!=="picture-card"&&n!=="picture-circle"&&(V=Object.assign(Object.assign({},Y),V)),d.createElement("div",{className:A},d.createElement(oI,Object.assign({},V,{component:!1}),X=>{let{key:q,file:G,className:K,style:J}=X;return d.createElement(sJ,{key:q,locale:s,prefixCls:H,className:K,style:J,file:G,items:v,progress:C,listType:n,isImgUrl:f,showPreviewIcon:g,showRemoveIcon:m,showDownloadIcon:y,removeIcon:b,previewIcon:w,downloadIcon:S,iconRender:z,actionIconRender:B,itemRender:I,onPreview:D,onDownload:j,onClose:F})}),E&&d.createElement(Bo,Object.assign({},V,{visible:k,forceRender:!0}),X=>{let{className:q,style:G}=X;return mr(E,K=>({className:ae(K.className,q),style:Object.assign(Object.assign(Object.assign({},G),{pointerEvents:q?"none":void 0}),K.style)}))}))},cJ=d.forwardRef(lJ),uJ=cJ;var dJ=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(p){try{f(r.next(p))}catch(v){a(v)}}function c(p){try{f(r.throw(p))}catch(v){a(v)}}function f(p){p.done?i(p.value):o(p.value).then(s,c)}f((r=r.apply(e,t||[])).next())})};const du=`__LIST_IGNORE_${Date.now()}__`,fJ=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:o,showUploadList:i=!0,listType:a="text",onPreview:s,onDownload:c,onChange:f,onDrop:p,previewFile:v,disabled:g,locale:m,iconRender:y,isImageUrl:b,progress:w,prefixCls:S,className:C,type:E="select",children:k,style:I,itemRender:$,maxCount:T,data:N={},multiple:P=!1,hasControlInside:D=!0,action:j="",accept:F="",supportServerRender:z=!0,rootClassName:B}=e,_=d.useContext(Ei),H=g??_,[L,A]=Fn(r||[],{value:n,postState:Me=>Me??[]}),[U,R]=d.useState("drop"),V=d.useRef(null);d.useMemo(()=>{const Me=Date.now();(n||[]).forEach((We,Le)=>{!We.uid&&!Object.isFrozen(We)&&(We.uid=`__AUTO__${Me}_${Le}__`)})},[n]);const Y=(Me,We,Le)=>{let je=Ee(We),Ye=!1;T===1?je=je.slice(-1):T&&(Ye=je.length>T,je=je.slice(0,T)),ei.flushSync(()=>{A(je)});const mt={file:Me,fileList:je};Le&&(mt.event=Le),(!Ye||je.some(bt=>bt.uid===Me.uid))&&ei.flushSync(()=>{f==null||f(mt)})},X=(Me,We)=>dJ(void 0,void 0,void 0,function*(){const{beforeUpload:Le,transformFile:je}=e;let Ye=Me;if(Le){const mt=yield Le(Me,We);if(mt===!1)return!1;if(delete Me[du],mt===du)return Object.defineProperty(Me,du,{value:!0,configurable:!0}),!1;typeof mt=="object"&&mt&&(Ye=mt)}return je&&(Ye=yield je(Ye)),Ye}),q=Me=>{const We=Me.filter(Ye=>!Ye.file[du]);if(!We.length)return;const Le=We.map(Ye=>Yf(Ye.file));let je=Ee(L);Le.forEach(Ye=>{je=Qf(Ye,je)}),Le.forEach((Ye,mt)=>{let bt=Ye;if(We[mt].parsedFile)Ye.status="uploading";else{const{originFileObj:Oe}=Ye;let Ge;try{Ge=new File([Oe],Oe.name,{type:Oe.type})}catch{Ge=new Blob([Oe],{type:Oe.type}),Ge.name=Oe.name,Ge.lastModifiedDate=new Date,Ge.lastModified=new Date().getTime()}Ge.uid=Ye.uid,bt=Ge}Y(bt,je)})},G=(Me,We,Le)=>{try{typeof Me=="string"&&(Me=JSON.parse(Me))}catch{}if(!Fm(We,L))return;const je=Yf(We);je.status="done",je.percent=100,je.response=Me,je.xhr=Le;const Ye=Qf(je,L);Y(je,Ye)},K=(Me,We)=>{if(!Fm(We,L))return;const Le=Yf(We);Le.status="uploading",Le.percent=Me.percent;const je=Qf(Le,L);Y(Le,je,Me)},J=(Me,We,Le)=>{if(!Fm(Le,L))return;const je=Yf(Le);je.error=Me,je.response=We,je.status="error";const Ye=Qf(je,L);Y(je,Ye)},oe=Me=>{let We;Promise.resolve(typeof o=="function"?o(Me):o).then(Le=>{var je;if(Le===!1)return;const Ye=ZZ(Me,L);Ye&&(We=Object.assign(Object.assign({},Me),{status:"removed"}),L==null||L.forEach(mt=>{const bt=We.uid!==void 0?"uid":"name";mt[bt]===We[bt]&&!Object.isFrozen(mt)&&(mt.status="removed")}),(je=V.current)===null||je===void 0||je.abort(We),Y(We,Ye))})},fe=Me=>{R(Me.type),Me.type==="drop"&&(p==null||p(Me))};d.useImperativeHandle(t,()=>({onBatchStart:q,onSuccess:G,onProgress:K,onError:J,fileList:L,upload:V.current}));const{getPrefixCls:ce,direction:ee,upload:ie}=d.useContext(kt),te=ce("upload",S),re=Object.assign(Object.assign({onBatchStart:q,onError:J,onProgress:K,onSuccess:G},e),{data:N,multiple:P,action:j,accept:F,supportServerRender:z,prefixCls:te,disabled:H,beforeUpload:X,onChange:void 0,hasControlInside:D});delete re.className,delete re.style,(!k||H)&&delete re.id;const le=`${te}-wrapper`,[ge,be,Se]=zZ(te,le),[pe]=Ji("Upload",ni.Upload),{showRemoveIcon:me,showPreviewIcon:xe,showDownloadIcon:Pe,removeIcon:Ie,previewIcon:De,downloadIcon:Be}=typeof i=="boolean"?{}:i,qe=typeof me>"u"?!H:!!me,lt=(Me,We)=>i?d.createElement(uJ,{prefixCls:te,listType:a,items:L,previewFile:v,onPreview:s,onDownload:c,onRemove:oe,showRemoveIcon:qe,showPreviewIcon:xe,showDownloadIcon:Pe,removeIcon:Ie,previewIcon:De,downloadIcon:Be,iconRender:y,locale:Object.assign(Object.assign({},pe),m),isImageUrl:b,progress:w,appendAction:Me,appendActionVisible:We,itemRender:$,disabled:H}):Me,et=ae(le,C,B,be,Se,ie==null?void 0:ie.className,{[`${te}-rtl`]:ee==="rtl",[`${te}-picture-card-wrapper`]:a==="picture-card",[`${te}-picture-circle-wrapper`]:a==="picture-circle"}),He=Object.assign(Object.assign({},ie==null?void 0:ie.style),I);if(E==="drag"){const Me=ae(be,te,`${te}-drag`,{[`${te}-drag-uploading`]:L.some(We=>We.status==="uploading"),[`${te}-drag-hover`]:U==="dragover",[`${te}-disabled`]:H,[`${te}-rtl`]:ee==="rtl"});return ge(d.createElement("span",{className:et},d.createElement("div",{className:Me,style:He,onDrop:fe,onDragOver:fe,onDragLeave:fe},d.createElement($b,Object.assign({},re,{ref:V,className:`${te}-btn`}),d.createElement("div",{className:`${te}-drag-container`},k))),lt()))}const Fe=ae(te,`${te}-select`,{[`${te}-disabled`]:H}),ft=(Me=>d.createElement("div",{className:Fe,style:Me},d.createElement($b,Object.assign({},re,{ref:V}))))(k?void 0:{display:"none"});return ge(a==="picture-card"||a==="picture-circle"?d.createElement("span",{className:et},lt(ft,!!k)):d.createElement("span",{className:et},ft,lt()))},pJ=d.forwardRef(fJ),aN=pJ;var vJ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hJ=d.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:o=!1}=e,i=vJ(e,["style","height","hasControlInside"]);return d.createElement(aN,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),gJ=hJ,Mw=aN;Mw.Dragger=gJ;Mw.LIST_IGNORE=du;const mJ=Mw;var Hm=d,bJ=function(e){return typeof e=="function"},yJ=function(e){var t=Hm.useState(e),n=t[0],r=t[1],o=Hm.useRef(n),i=Hm.useCallback(function(a){o.current=bJ(a)?a(o.current):a,r(o.current)},[]);return[n,i,o]},wJ=yJ;const eu=Ms(wJ);function Od(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}function xJ(e){const t=Od(e);let n="#";for(let r=0;r<3;r++){const o=t>>r*8&255;n+=("00"+o.toString(16)).substr(-2)}return n}function SJ(e){const t=[],n=new Set;for(let r=0;r<(e==null?void 0:e.length);r++)e[r].tags.split(" ").forEach(o=>{n.add(o)});for(const r of n)t.push({text:r,value:r});return{tagsOptions:t}}function CJ(e){return/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()!@:%_\+.~#?&\/\/=]*)/.test(e)}async function sN(e){var t;try{const n=await $e.request({url:e}),r=new DOMParser().parseFromString(n,"text/html"),o=(t=r.querySelector("title"))==null?void 0:t.innerText,i=r.querySelector("meta[name=name]"),a=i?i.getAttribute("content"):null,s=r.querySelector("meta[name=description]"),c=s?s.getAttribute("content"):null;return{title:o||"",name:a,description:c}}catch{return{title:"",name:"",description:""}}}async function EJ(e){return e.startsWith("http")||e.startsWith("https")||(e="https://"+e),sN(e)}function Fk(e){const t=kJ(e);return t.unshift({value:"ROOT",text:"ROOT",label:"ROOT",children:[]}),t}function kJ(e){const t=[],n=e.split(`
`),r=/^(\s*)-\s(.*)/;return n.forEach(function(o,i){var s;const a=o.match(r);if(a){let c;const f=a[1];new RegExp(/^\t+/g).test(f)?c=f.length:c=f.length/4;const p=a[2],v=$J(p);if(c===0)t.push(v);else{const g=OJ(c,t);(s=g==null?void 0:g.children)==null||s.push(v)}}}),t}function OJ(e,t){let n=0,r=t[t.length-1];for(;n<e-1;){const o=r.children;o&&(r=o[o.length-1]),n++}return!(r!=null&&r.children)&&r&&(r.children=[]),r}function $J(e){return{value:e,text:e,label:e}}const{Option:IJ}=cc;function TJ(e){var s;const[t]=gr.useForm();if(!e.bookmark)return nt.jsx(nt.Fragment,{});const{tagsOptions:n}=e.options,r=(c,f)=>!f||!c[0]?null:c.map((p,v)=>{const g=f[v];return g!=null&&g.value?v===c.length-1?nt.jsx("span",{children:p},g==null?void 0:g.value):nt.jsxs("span",{children:[p," / "]},g==null?void 0:g.value):nt.jsx("span",{children:p},"ROOT")});e.bookmark&&e.bookmark.id&&(e.bookmark.modified=Date.now());const o=async(c,f)=>{const p=f.find(g=>g.name[0]==="url"),v=f.find(g=>g.name[0]==="name");if(!(v!=null&&v.value)&&p&&CJ(p.value))try{const{title:g,description:m}=await EJ(p.value);g&&m&&(t.setFieldValue("name",g),t.setFieldValue("description",m))}catch{}},i=c=>{var p,v;const f={id:String(Od(c.url)),name:c.name,url:c.url,description:c.description,category:c.category,tags:c.tags.join(" "),created:$e.moment(c.created,"YYYY-MM-DD HH:mm").valueOf(),modified:$e.moment(c.modified,"YYYY-MM-DD HH:mm").valueOf()};(p=e.bookmark)!=null&&p.id?e.handleSaveBookmark(f,(v=e.bookmark)==null?void 0:v.id):e.handleSaveBookmark(f,""),t.resetFields()},a=()=>{t.resetFields()};return nt.jsxs(gr,{form:t,onFinish:i,onFieldsChange:o,name:"bookmark",children:[nt.jsx(gr.Item,{label:"Name",name:"name",rules:[{required:!0,message:"Please input BookMarkBar name!"}],initialValue:e.bookmark.name,shouldUpdate:!0,children:nt.jsx(fs,{})}),nt.jsx(gr.Item,{label:"URL",name:"url",initialValue:e.bookmark.url,rules:[{type:"url",required:!0,message:"Please input BookMarkBar url!"}],shouldUpdate:!0,children:nt.jsx(fs,{})}),nt.jsx(gr.Item,{label:"Description",name:"description",initialValue:e.bookmark.description,rules:[{required:!1,message:"Please input the description!"}],shouldUpdate:!0,children:nt.jsx(fs.TextArea,{})}),nt.jsx(gr.Item,{label:"Tags",name:"tags",initialValue:e.bookmark.tags?(s=e.bookmark.tags)==null?void 0:s.split(" "):[],rules:[{required:!1,message:"Please input the tags!"}],shouldUpdate:!0,children:nt.jsx(cc,{mode:"tags",placeholder:"Please select tags",allowClear:!0,children:n.map((c,f)=>nt.jsx(IJ,{value:c.value,children:c.value},`${c.value}-${f}`))})}),nt.jsx(gr.Item,{label:"Category",name:"category",initialValue:e.bookmark.category?e.bookmark.category:"",rules:[{required:!1,message:"Please select the category!"}],shouldUpdate:!0,children:nt.jsx(zV,{displayRender:r,options:e.categories,changeOnSelect:!0})}),nt.jsx(gr.Item,{label:"Created Time",name:"created",initialValue:$e.moment(e.bookmark.created).format("YYYY-MM-DD HH:mm"),rules:[{required:!0,message:"Please select the created time!"}],shouldUpdate:!0,children:nt.jsx(fs,{})}),nt.jsx(gr.Item,{label:"Modified Time",name:"modified",initialValue:$e.moment(e.bookmark.modified).format("YYYY-MM-DD HH:mm"),rules:[{required:!0,message:"Please select the modified time!"}],shouldUpdate:!0,children:nt.jsx(fs,{})}),nt.jsx(gr.Item,{children:nt.jsxs("div",{className:"submit-bar",style:{textAlign:"end"},children:[nt.jsx(zr,{className:"wb-reset-button",htmlType:"button",onClick:a,children:"Reset"}),nt.jsx(zr,{type:"primary",htmlType:"submit",children:"Submit"})]})})]})}const PJ=e=>{const t=async(r,o)=>{if(/^(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#?&//=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/g.test(r.url))try{o.some(s=>s.url===r.url)||o.unshift(r)}catch{}},n={action:"",listType:"text",beforeUpload(r){return new Promise(o=>{const i=new FileReader;i.readAsText(r,"utf-8"),i.onload=async()=>{const a=i.result;if(!a)return;const s=/<DT><A HREF="(.*?)"\s*ADD_DATE="(.*?)".*?>(.*)<\/A>/gm;let c;const{bookmarks:f,categories:p}=await La();for(;(c=s.exec(a))!==null;){c.index===s.lastIndex&&s.lastIndex++;const v=this.plugin.settings.bookmarkManager.defaultCategory.split(",").map(m=>m.trim()),g={id:String(Od(c[1])),name:c[3],url:c[1],description:"",category:v.length>0?v:[""],tags:"",created:$e.moment(c[2],"X").valueOf()??$e.moment().valueOf(),modified:$e.moment(c[2],"X").valueOf()??$e.moment().valueOf()};try{await t(g,f)}catch{new $e.Notice(`import ${g.name} faield`)}}await Tl({bookmarks:f,categories:p}),await e.handleImportFinished(f)},i.onloadend=async()=>{new $e.Notice("Import successfully!!!")}})}};return nt.jsx(mJ,{...n,children:nt.jsx(zr,{children:"Import"})})},MJ=["name","description","url","category","tags","created","modified"],tu={id:"",name:"",description:"",url:"",tags:"",category:[""],created:$e.moment().valueOf(),modified:$e.moment().valueOf()};function NJ(e){const[t,n,r]=eu(e.bookmarks),[o,i]=d.useState(e.categories),a=SJ(t),[s,c]=d.useState(tu),[f,p]=d.useState(""),[v,g]=d.useState(1),[m,y,b]=eu({tags:null}),[w,S,C]=eu({category:null}),[E,k,I]=eu({order:"descend"}),$=[{title:Ne("Name"),dataIndex:"name",key:"name",render:(K,J)=>nt.jsx("a",{href:J.url,onClick:oe=>{if(oe.preventDefault(),oe.ctrlKey||oe.metaKey){window.open(J.url,"_blank","external");return}Qt.spawnWebBrowserView(!0,{url:J.url})},children:K}),showSorterTooltip:!1,sorter:(K,J)=>K.name.localeCompare(J.name),sortOrder:E.columnKey==="name"?E.order:null},{title:Ne("Description"),dataIndex:"description",key:"description",onFilter:(K,J)=>J.description.indexOf(K)===0},{title:Ne("Url"),dataIndex:"url",key:"url"},{title:Ne("Category"),dataIndex:"category",key:"category",render:K=>K[0]===""?nt.jsx("p",{}):nt.jsx("p",{children:K.join(">")}),filters:Fk(e.plugin.settings.bookmarkManager.category),filterMode:e.plugin.settings.bookmarkManager.defaultFilterType,filterSearch:!0,onFilter:(K,J)=>J.category.includes(K)||K==="ROOT"&&!e.plugin.settings.bookmarkManager.category.contains(J.category[0]?J.category[0]:"")},{title:Ne("Tags"),dataIndex:"tags",key:"tags",render:K=>K?K.split(" ").map(J=>{const oe=xJ(J);return nt.jsx(rQ,{color:oe,onClick:()=>{let fe=null;b.current.tags?(fe=b.current.tags.slice(),fe.contains(J)||(fe=[...fe,J])):fe=[J],y({...b.current,tags:fe})},children:J.toUpperCase()},J)}):"",filters:a.tagsOptions,onFilter:(K,J)=>K===""?J.tags==="":J.tags.indexOf(K)===0},{title:Ne("Created"),dataIndex:"created",key:"created",render:K=>nt.jsx("p",{children:$e.moment(K).format("YYYY-MM-DD")}),sorter:(K,J)=>K.created-J.created,sortOrder:E.columnKey==="created"?E.order:null},{title:Ne("Modified"),dataIndex:"modified",key:"modified",render:K=>nt.jsx("p",{children:$e.moment(K).format("YYYY-MM-DD")}),sorter:(K,J)=>K.modified-J.modified,sortOrder:E.columnKey==="modified"?E.order:null},{title:Ne("Action"),dataIndex:"action",key:"action",render:(K,J)=>nt.jsxs(QP,{size:"middle",children:[nt.jsx("a",{onClick:()=>{c(J),H(!0)},children:"Edit"}),nt.jsx(LK,{title:"Are you sure to delete this bookmark?",onConfirm:()=>{R(J)},onCancel:()=>{},okText:"Yes",cancelText:"No",children:nt.jsx("a",{href:"#",children:"Delete"})})]})}],[T,N]=d.useState(e.plugin.settings.bookmarkManager.defaultColumnList),[P,D,j]=eu($.filter(K=>T.includes(K.key)||K.key==="action")),F=(K,J,oe)=>{k(oe),J.tags!==void 0?y(J):J.category!==void 0&&S(J)};d.useEffect(()=>()=>{D(j.current.map(K=>K.key===I.current.columnKey?{...K,sortOrder:I.current.order}:K.key=="tags"?{...K,filteredValue:b.current.tags}:K.key=="category"?{...K,filteredValue:b.current.category}:K))},[m,w,E]);const z=$s.Group,B=async K=>{const J=$.filter(oe=>K.includes(oe.key)||oe.key==="action");D(J),N(K),e.plugin.settings.bookmarkManager.defaultColumnList=K,await e.plugin.saveSettings()},[_,H]=d.useState(!1);d.useEffect(()=>()=>{const K=Fk(e.plugin.settings.bookmarkManager.category);i(K),K&&Tl({bookmarks:t,categories:K})},[e.categories]);const L=K=>{K===void 0&&(K=f);const J=$e.prepareFuzzySearch(K);if(K==="")n(e.bookmarks);else{const oe=e.bookmarks.filter(fe=>{var ce,ee;return((ce=J(fe.name.toLocaleLowerCase()))==null?void 0:ce.score)||((ee=J(fe.description.toLocaleLowerCase()))==null?void 0:ee.score)});n(oe)}p(K)},A=K=>{K.key==="Escape"&&(n(e.bookmarks),p(""))},U=()=>{c(tu),H(!0)},R=async K=>{const J=[...r.current];n(J.filter(oe=>oe.id!==K.id)),await Tl({bookmarks:r.current,categories:e.categories}),av(r.current,e.categories,!1)},V=async K=>{n([...K])},Y=()=>{c(tu),H(!1)},X=()=>{c(tu),H(!1)},q=async(K,J)=>{e.bookmarks.some((fe,ce)=>fe.url===K.url||fe.id===J?(t[ce]=K,n(t),H(!1),c(tu),!0):!1)||(t.unshift(K),n(t),H(!1)),await Tl({bookmarks:t,categories:e.categories}),av(t,e.categories,!1)},G={handleImportFinished:K=>V(K)};return nt.jsx("div",{className:"surfing-bookmark-manager",children:nt.jsxs(Iv,{theme:{algorithm:app.getTheme()==="obsidian"?Nk.darkAlgorithm:Nk.defaultAlgorithm},children:[nt.jsx("div",{className:"surfing-bookmark-manager-header-bar",children:nt.jsxs(VP,{gutter:[16,16],children:[nt.jsx(ev,{span:12,children:nt.jsxs("div",{className:"surfing-bookmark-manager-search-bar",children:[nt.jsx(fs,{value:f,onChange:K=>{L(K.target.value)},defaultValue:f,placeholder:` ${Ne("Search from ")} ${t.length} ${Ne(" bookmarks")} `,onPressEnter:K=>{L(K.currentTarget.value)},onKeyDown:A,allowClear:!0}),nt.jsx(zr,{onClick:U,children:"+"}),nt.jsx(PJ,{...G})]})}),nt.jsx(ev,{span:7,style:{marginTop:"5px"},children:nt.jsx(z,{options:MJ,value:T,onChange:B})})]})}),nt.jsx(KY,{dataSource:r.current,columns:P,pagination:{defaultCurrent:1,current:v,defaultPageSize:Number(e.plugin.settings.bookmarkManager.pagination),position:["bottomCenter"],onChange:(K,J)=>{g(K)}},scroll:{y:"100%",x:"fit-content"},sticky:!0,rowKey:"id",showSorterTooltip:!1,onChange:F},new Date().toISOString()),nt.jsx(TK,{title:"Bookmark",keyboard:!0,open:_,onOk:Y,onCancel:X,footer:[null],children:nt.jsx(TJ,{bookmark:s,options:a,handleSaveBookmark:q,categories:o})},s.id)]})})}const gi="surfing-bookmark-manager";class RJ extends $e.ItemView{constructor(t,n){super(t),this.plugin=n,this.bookmarkData=[],this.categoryData=[],this.plugin=n}getViewType(){return gi}getDisplayText(){return"Surfing Bookmark Manager"}getIcon(){return"album"}async onOpen(){try{const{bookmarks:t,categories:n}=await La();this.bookmarkData=t,this.categoryData=n}catch{if(this.bookmarkData.length===0){await D2();const{bookmarks:n,categories:r}=await La();this.bookmarkData=n,this.categoryData=r}}this.bookmarkData&&this.categoryData&&yv.createRoot(this.containerEl).render(nt.jsx(de.StrictMode,{children:nt.jsx(NJ,{bookmarks:this.bookmarkData,categories:this.categoryData,plugin:this.plugin})}))}}class lN{constructor(t,n){this.bookmarkData=[],this.categoryData=[],this.view=t,this.plugin=n}async onload(){var t;this.BookmarkBarEl=this.view.contentEl.createEl("div",{cls:"wb-bookmark-bar"}),this.renderIcon();try{const{bookmarks:n,categories:r}=await La();this.bookmarkData=n,this.categoryData=r}catch{if(((t=this.bookmarkData)==null?void 0:t.length)===0||!this.bookmarkData){await D2();const{bookmarks:r,categories:o}=await La();this.bookmarkData=r,this.categoryData=o}}this.render(this.bookmarkData,this.categoryData)}renderIcon(){const t=this.BookmarkBarEl.createEl("div",{cls:"wb-bookmark-manager-entry"}),n=t.createEl("div",{cls:"wb-bookmark-manager-icon"});t.onclick=async()=>{const r=app.workspace;r.detachLeavesOfType(gi),await r.getLeaf(!1).setViewState({type:gi}),r.revealLeaf(r.getLeavesOfType(gi)[0])},$e.setIcon(n,"bookmark")}render(t,n){this.BookmarkBarContainerEl&&this.BookmarkBarContainerEl.detach();const r=n.shift();r&&n.push(r),this.BookmarkBarContainerEl=this.BookmarkBarEl.createEl("div",{cls:"wb-bookmark-bar-container"}),n==null||n.forEach(o=>{new Aj(this.BookmarkBarContainerEl,this.plugin,this.view,o,t).onload()})}}const av=(e,t,n)=>{if(n){const i=app.workspace.getLeavesOfType("surfing-bookmark-manager");i.length>0&&i[0].rebuildView()}const r=app.workspace.getLeavesOfType("empty");r.length>0&&r.forEach(i=>{i.rebuildView()});const o=app.workspace.getLeavesOfType("surfing-view");o.length>0&&o.forEach(i=>{var a,s;(s=(a=i.view)==null?void 0:a.bookmarkBar)==null||s.render(e,t)})};class $p{constructor(t,n){this.contentEl=t.createEl("div",{cls:"wb-view-content"}),this.node=t,this.currentUrl=n}onload(){this.contentEl.empty(),this.appendWebView()}appendWebView(){const t=this.contentEl.doc;this.webviewEl=t.createElement("webview"),this.webviewEl.setAttribute("allowpopups",""),this.webviewEl.addClass("wb-frame"),this.currentUrl&&this.webviewEl.setAttribute("src",this.currentUrl),this.webviewEl.addEventListener("dom-ready",n=>{const r=zn.remote.webContents.fromId(this.webviewEl.getWebContentsId());r.setWindowOpenHandler(o=>{if(o.disposition!=="foreground-tab")return Qt.spawnWebBrowserView(!0,{url:o.url}),{action:"allow"}});try{const i=app.plugins.getPlugin("surfing").settings.highlightFormat,a=()=>{var f;let s="";const c=(f=i.match(/\{TIME\:[^\{\}\[\]]*\}/g))==null?void 0:f[0];if(c){const p=$e.moment().format(c.replace(/{TIME:([^\}]*)}/g,"$1"));return s=i.replace(c,p),s}return s};r.executeJavaScript(`
window.addEventListener('dragstart', (e) => {
if(e.ctrlKey || e.metaKey) {
e.dataTransfer.clearData();
const selectionText = document.getSelection().toString();
const linkToHighlight = e.srcElement.baseURI.replace(/#:~:text=(.*)/g, "") + "#:~:text=" + encodeURIComponent(selectionText);
let link = "";
if ("${i}".includes("{TIME")) {
link = "${a()}";
}
link = (link != "" ? link : "${i}").replace(/{URL}/g, linkToHighlight).replace(/{CONTENT}/g, selectionText.replace(/\\n/g, " "));
e.dataTransfer.setData('text/plain', link);
console.log(e);
}
});
`,!0).then(s=>{})}catch{}}),this.webviewEl.addEventListener("did-navigate-in-page",n=>{if(n.url.contains("contacts.google.com/widget")){zn.remote.webContents.fromId(this.webviewEl.getWebContentsId()).stop();return}this.currentUrl=n.url}),this.webviewEl.addEventListener("destroyed",()=>{t!==this.contentEl.doc&&(this.webviewEl.detach(),this.appendWebView())}),t.contains(this.contentEl)?this.contentEl.appendChild(this.webviewEl):this.contentEl.onNodeInserted(()=>{this.contentEl.doc===t?this.contentEl.appendChild(this.webviewEl):this.appendWebView()})}}const An="surfing-view";class Qt extends $e.ItemView{constructor(t,n){super(t),this.currentTitle="Surfing",this.loaded=!1,this.createWebview=()=>{this.contentEl.empty(),this.plugin.settings.bookmarkManager.openBookMark&&(this.bookmarkBar=new lN(this.leaf.view,this.plugin),this.bookmarkBar.onload());const r=this.contentEl.doc;this.webviewEl=r.createElement("webview"),this.webviewEl.setAttribute("allowpopups",""),this.webviewEl.partition="persist:surfing-vault-"+this.app.appId,this.webviewEl.addClass("wb-frame"),this.contentEl.appendChild(this.webviewEl),this.currentUrl&&this.navigate(this.currentUrl),this.headerBar.addOnSearchBarEnterListener(o=>{this.navigate(o)}),this.webviewEl.addEventListener("dom-ready",async o=>{const i=zn.remote.webContents.fromId(this.webviewEl.getWebContentsId());i.setWindowOpenHandler(a=>(Qt.spawnWebBrowserView(!0,{url:a.url,active:a.disposition!=="background-tab"}),{action:"allow"})),await this.registerContextMenuInWebcontents(i),await this.registerJavascriptInWebcontents(i),i.on("before-input-event",(a,s)=>{if(s.type!=="keyDown")return;const c=new KeyboardEvent("keydown",{code:s.code,key:s.key,shiftKey:s.shift,altKey:s.alt,ctrlKey:s.control,metaKey:s.meta,repeat:s.isAutoRepeat});if(c.key==="/"&&!this.plugin.settings.ignoreList.find(f=>this.currentUrl.contains(f.toLowerCase()))){i.executeJavaScript(`
document.activeElement instanceof HTMLInputElement
`,!0).then(f=>{f||this.headerBar.focus()});return}activeDocument.body.dispatchEvent(c),c.ctrlKey&&c.key==="f"&&(this.searchBox=new Dj(this.leaf,i,this.plugin))});try{const a=this.plugin.settings.highlightFormat,s=()=>{var p;let c="";const f=(p=a.match(/\{TIME\:[^\{\}\[\]]*\}/g))==null?void 0:p[0];if(f){const v=$e.moment().format(f.replace(/{TIME:([^\}]*)}/g,"$1"));return c=a.replace(f,v),c}return c};i.executeJavaScript(`
window.addEventListener('dragstart', (e) => {
if(e.ctrlKey || e.metaKey) {
e.dataTransfer.clearData();
const selectionText = document.getSelection().toString();
let tempText = encodeURIComponent(selectionText);
const chineseRegex = /[぀-ヿ㐀-䶿一-鿿豈-﫿ヲ-゚]/gi;
const englishSentence = selectionText.split('\\n');
if (selectionText.match(chineseRegex)?.length > 50) {
if (englishSentence.length > 1) {
const fistSentenceWords = englishSentence[0];
const lastSentenceWords = englishSentence[englishSentence.length - 1];
tempText = encodeURIComponent(fistSentenceWords.slice(0, 4)) + "," + encodeURIComponent(lastSentenceWords.slice(lastSentenceWords.length - 4, lastSentenceWords.length));
} else {
tempText = encodeURIComponent(selectionText.substring(0, 8)) + "," + encodeURIComponent(selectionText.substring(selectionText.length - 8, selectionText.length));
}
} else if (englishSentence.length > 1) {
const fistSentenceWords = englishSentence[0].split(' ');
const lastSentenceWords = englishSentence[englishSentence.length - 1].split(' ');
tempText = encodeURIComponent(fistSentenceWords.slice(0, 3).join(' ')) + "," + encodeURIComponent(lastSentenceWords.slice(lastSentenceWords.length - 1, lastSentenceWords.length).join(' '));
}
const linkToHighlight = e.srcElement.baseURI.replace(/#:~:text=(.*)/g, "") + "#:~:text=" + tempText;
let link = "";
if ("${a}".includes("{TIME")) {
link = "${s()}";
}
link = (link != "" ? link : "${a}").replace(/{URL}/g, linkToHighlight).replace(/{CONTENT}/g, selectionText.replace(/\\n/g, " "));
e.dataTransfer.setData('text/plain', link);
}
});
`,!0).then(c=>{})}catch{}}),this.webviewEl.addEventListener("focus",o=>{app.workspace.setActiveLeaf(this.leaf)}),this.webviewEl.addEventListener("page-favicon-updated",o=>{o.favicons[0]!==void 0&&(this.favicon.src=o.favicons[0]),this.leaf.tabHeaderInnerIconEl.empty(),this.leaf.tabHeaderInnerIconEl.appendChild(this.favicon)}),this.webviewEl.addEventListener("page-title-updated",o=>{this.omnisearchEnabled&&this.updateSearchBox(),this.leaf.tabHeaderInnerTitleEl.innerText=o.title,this.currentTitle=o.title}),this.webviewEl.addEventListener("will-navigate",o=>{this.navigate(o.url,!0,!1)}),this.webviewEl.addEventListener("did-navigate-in-page",o=>{var i;this.navigate(o.url,!0,!1),(i=this.menu)==null||i.close()}),this.webviewEl.addEventListener("new-window",o=>{o.preventDefault()}),this.webviewEl.addEventListener("did-attach-webview",o=>{}),this.webviewEl.addEventListener("destroyed",()=>{r!==this.contentEl.doc&&(this.webviewEl.detach(),this.createWebview())}),r.contains(this.contentEl)?this.contentEl.appendChild(this.webviewEl):this.contentEl.onNodeInserted(()=>{this.loaded||(this.loaded=!0,this.contentEl.doc===r?this.contentEl.appendChild(this.webviewEl):this.createWebview())})},this.createMenu=(r,o)=>{var s,c;this.menu&&((s=this.menu)==null||s.close()),this.menu=new $e.Menu;const i=()=>{var f;(f=this.leaf)==null||f.history.back()},a=()=>{var f;(f=this.leaf)==null||f.history.forward()};if(o.selectionText||this.menu.addItem(f=>{f.setTitle(Ne("Refresh Current Page")),f.setIcon("refresh-ccw"),f.onClick(()=>{var p;(p=this.leaf)==null||p.rebuildView()})}).addItem(f=>{f.setTitle(Ne("Back")),f.setIcon("arrow-left"),f.onClick(()=>{i()})}).addItem(f=>{f.setTitle(Ne("Forward")),f.setIcon("arrow-right"),f.onClick(()=>{a()})}).addSeparator(),this.menu.addItem(f=>{f.setTitle(Ne("Open Current URL In External Browser")),f.setIcon("link"),f.onClick(()=>{window.open(o.pageURL,"_blank")})}).addItem(f=>{f.setTitle(Ne("Save Current Page As Markdown")),f.setIcon("download"),f.onClick(async()=>{try{r.executeJavaScript(`
document.body.outerHTML
`,!0).then(async p=>{const v=o.pageURL.replace(/\?(.*)/g,""),g=p.replaceAll(/src="(?!(https|http))([^"]*)"/g,'src="'+v+'$2"'),m=$e.htmlToMarkdown(g),y=r.getTitle().replace(/[/\\?%*:|"<>]/g,"-"),b=await app.vault.create((app.plugins.getPlugin("surfing").settings.markdownPath?app.plugins.getPlugin("surfing").settings.markdownPath+"/":"/")+y+".md",m);await app.workspace.openLinkText(b.path,"",!0)})}catch{}})}).addItem(f=>{f.setTitle(Ne("Copy Current Viewport As Image")),f.setIcon("image"),f.onClick(async()=>{try{r.capturePage().then(async p=>{zn.clipboard.writeImage(p)})}catch{}})}),o.selectionText){this.menu.addSeparator(),this.menu.addItem(p=>{p.setTitle(Ne("Search Text")),p.setIcon("search"),p.onClick(()=>{try{Qt.spawnWebBrowserView(!0,{url:o.selectionText})}catch{}})}),this.menu.addSeparator(),this.menu.addItem(p=>{p.setTitle(Ne("Copy Plain Text")),p.setIcon("copy"),p.onClick(()=>{try{navigator.clipboard.writeText(o.selectionText)}catch{}})}),this.menu.addItem(p=>{p.setTitle("Save selection as markdown").setIcon("download").onClick(async()=>{const v=o.selectionText,g=r.getTitle().replace(/[/\\?%*:|"<>]/g,"-"),m=await app.vault.create((app.plugins.getPlugin("surfing").settings.markdownPath?app.plugins.getPlugin("surfing").settings.markdownPath+"/":"/")+g+".md",v);await app.workspace.openLinkText(m.path,"",!0)})});const f=this.plugin.settings.highlightFormat;this.menu.addItem(p=>{p.setTitle(Ne("Copy Link to Highlight")),p.setIcon("link"),p.onClick(()=>{var v,g;try{let m=encodeURIComponent(o.selectionText);const y=/[\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff66-\uff9f]/gi,b=o.selectionText.split(`
`);if(((v=o.selectionText.match(y))==null?void 0:v.length)>50)if(b.length>1){const E=b[0],k=b[b.length-1];m=encodeURIComponent(E.slice(0,3))+","+encodeURIComponent(k.slice(k.length-4,k.length))}else m=encodeURIComponent(o.selectionText.substring(0,8))+","+encodeURIComponent(o.selectionText.substring(o.selectionText.length-8,o.selectionText.length));else if(b.length>1){const E=b[0].split(" "),k=b[b.length-1].split(" ");m=encodeURIComponent(E.slice(0,3).join(" "))+","+encodeURIComponent(k.slice(k.length-1,k.length).join(" "))}const w=o.pageURL.replace(/\#\:\~\:text\=(.*)/g,"")+"#:~:text="+m,S=o.selectionText.replace(/\n/g," ");let C="";if(f.contains("{TIME")){const E=(g=f.match(/\{TIME\:[^\{\}\[\]]*\}/g))==null?void 0:g[0];if(E){const k=$e.moment().format(E.replace(/{TIME:([^\}]*)}/g,"$1"));C=f.replace(E,k)}}C=(C!=""?C:f).replace(/\{URL\}/g,w).replace(/\{CONTENT\}/g,S),zn.clipboard.writeText(C)}catch{}})})}(c=o.pageURL)!=null&&c.contains("bilibili.com/")&&(this.menu.addSeparator(),this.menu.addItem(f=>{f.setTitle(Ne("Copy Video Timestamp")),f.setIcon("link"),f.onClick(()=>{try{r.executeJavaScript(`
var time = document.querySelectorAll('.bpx-player-ctrl-time-current')[0].innerHTML;
var timeYMSArr=time.split(':');
var joinTimeStr='00h00m00s';
if(timeYMSArr.length===3){
joinTimeStr=timeYMSArr[0]+'h'+timeYMSArr[1]+'m'+timeYMSArr[2]+'s';
}else if(timeYMSArr.length===2){
joinTimeStr=timeYMSArr[0]+'m'+timeYMSArr[1]+'s';
}
var timeStr= "";
var pageStrMatch = window.location.href.match(/(p=[1-9]{1,})/g);
var pageStr = "";
if(typeof pageStrMatch === "object" && pageStrMatch?.length > 0){
pageStr = '&' + pageStrMatch[0];
}else if(typeof pageStrMatch === "string") {
pageStr = '&' + pageStrMatch;
}
timeStr = window.location.href.split('?')[0]+'?t=' + joinTimeStr + pageStr;
`,!0).then(p=>{zn.clipboard.writeText("["+p.split("?t=")[1].replace(/&p=[1-9]{1,}/g,"")+"]("+p+")")})}catch{}})})),this.menu.showAtPosition({x:o.x,y:o.y})},this.plugin=n,this.omnisearchEnabled=!1}static spawnWebBrowserView(t,n){var s,c,f,p,v,g,m,y,b,w,S;const r=app.plugins.getPlugin("surfing").settings,o=r.openInSameTab,i=r.highlightInSameTab;if(!o||n.url.startsWith("file://")){if(n.url.contains("bilibili")){for(let C=0;C<app.workspace.getLeavesOfType(An).length;C++)if(app.workspace.getLeavesOfType(An)[C].getViewState().state.url.split("?t=")[0]===n.url.split("?t=")[0]){app.workspace.getLeavesOfType(An)[C].view.navigate(n.url,!1,!0),app.workspace.getLeavesOfType(An)[C].rebuildView(),app.workspace.setActiveLeaf(app.workspace.getLeavesOfType(An)[C]);return}}else if(n.url.contains("#:~:text=")&&i){for(let C=0;C<app.workspace.getLeavesOfType(An).length;C++)if(app.workspace.getLeavesOfType(An)[C].getViewState().state.url.split("#:~:text=")[0]===n.url.split("#:~:text=")[0]){app.workspace.getLeavesOfType(An)[C].view.navigate(n.url,!1,!0),app.workspace.getLeavesOfType(An)[C].rebuildView(),app.workspace.setActiveLeaf(app.workspace.getLeavesOfType(An)[C]);return}}app.workspace.getLeaf(t).setViewState({type:An,active:n.active??!0,state:n});return}const a=app.workspace.getLeavesOfType(An).length?localStorage.getItem("web-browser-leaf-id"):(s=app.workspace.getLeavesOfType(An)[0])==null?void 0:s.id;if(a){if(n.active!=null&&n.active==!1){app.workspace.getLeaf(t).setViewState({type:An,active:!0,state:n});return}if(!app.workspace.getLeafById(a)){const C=(m=app.workspace.getLeavesOfType(An)[0])==null?void 0:m.id;if(C){localStorage.setItem("web-browser-leaf-id",C),((y=app.workspace.getLeafById(C))==null?void 0:y.view).navigate(n.url,!0),(b=app.workspace.getLeafById(C))==null||b.rebuildView();return}}if(((w=app.workspace.getLeafById(a))==null?void 0:w.view.getViewType())===An){((S=app.workspace.getLeafById(a))==null?void 0:S.view).navigate(n.url,!0),app.workspace.getLeafById(a).rebuildView();return}}else{let C;C=(c=app.workspace.getActiveViewOfType($e.MarkdownView))==null?void 0:c.leaf;const E=(f=app.workspace.getActiveViewOfType($e.ItemView))==null?void 0:f.getViewType();if(C||(C=E==="empty"||E==="surfing-bookmark-manager"?(p=app.workspace.getActiveViewOfType($e.ItemView))==null?void 0:p.leaf:void 0),!C)return;const k=E==="empty"?C:app.workspace.createLeafBySplit(C);localStorage.setItem("web-browser-leaf-id",k.id),k.setViewState({type:An,active:!0,state:n}),k.view.getViewType()!=="empty"&&k.rebuildView(),k.setPinned(!0),(g=(v=k.tabHeaderInnerTitleEl.parentElement)==null?void 0:v.parentElement)==null||g.addClass("same-tab");return}}getDisplayText(){return this.currentTitle}getViewType(){return An}openInpecter(){zn.remote.webContents.fromId(this.webviewEl.getWebContentsId()).openDevTools()}async onOpen(){this.navigation=!0,this.headerBar=new Ib(this.headerEl.children[2],this.plugin,this,!0),this.headerBar.onLoad(),this.favicon=document.createElement("img"),this.favicon.width=16,this.favicon.height=16,this.contentEl.addClass("wb-view-content"),this.omnisearchEnabled&&(this.searchContainer=new Bj(this.leaf,this.plugin)),this.omnisearchEnabled&&this.searchContainer.onload(),this.createWebview(),this.initHeaderButtons()}onload(){super.onload(),this.menu&&this.menu.close()}initHeaderButtons(){this.addAction("settings",Ne("settings"),()=>{app.setting.open(),app.setting.openTabById("surfing")}),this.addAction("star",Ne("star"),async()=>{const t=await La(),n=t.bookmarks;try{if(n.some(o=>o.url===this.currentUrl))new $e.Notice("Bookmark already exists.");else{const o=zn.remote.webContents.fromId(this.webviewEl.getWebContentsId());let i="";try{o.executeJavaScript(`
document.querySelector('meta[name="description"]')?.content
`).then(s=>{s&&(i=s)})}catch{}const a=this.plugin.settings.bookmarkManager.defaultCategory.split(",").map(s=>s.trim());n.unshift({id:String(Od(this.currentUrl)),name:this.currentTitle,url:this.currentUrl,description:i,category:a.length>0?a:["ROOT"],tags:"",created:$e.moment().valueOf(),modified:$e.moment().valueOf()}),await Tl({bookmarks:n,categories:t.categories}),av(n,t.categories,!0)}}catch{new $e.Notice("Failed to add bookmark.")}}),this.plugin.settings.bookmarkManager.sendToReadWise&&this.addAction("book",Ne("Send to ReadWise"),async()=>{const t=(n,r)=>{open("https://readwise.io/save?title="+encodeURIComponent(n)+"&url="+encodeURIComponent(r))};try{await t(this.currentTitle,this.currentUrl),new $e.Notice("Save success!")}catch{new $e.Notice("Save failed!")}})}async setState(t,n){this.navigate(t.url,!1)}updateSearchBox(){var a,s;const t=[...bi,...this.plugin.settings.customSearchEngine],n=/^(?:https?:\/\/)?(?:[^@/\n]+@)?(?:www\.)?([^:/?\n]+)/g,r=(s=(a=this.currentUrl)==null?void 0:a.match(n))==null?void 0:s[0];if(!r||!t.find(c=>c.url.startsWith(r)))return;const i=zn.remote.webContents.fromId(this.webviewEl.getWebContentsId());try{i.executeJavaScript(`
document.querySelector('input')?.value
`,!0).then(c=>{this.searchContainer.update(c==null?void 0:c.toLowerCase())})}catch{}}async registerContextMenuInWebcontents(t){t.executeJavaScript(`
window.addEventListener('contextmenu', (e) => {
e.preventDefault();
e.stopPropagation();
e.stopImmediatePropagation();
window.myPostPort?.postMessage('contextmenu ' + e.clientX + ' ' + e.clientY);
})
`),await t.executeJavaScript(`
window.addEventListener("message", (e) => {
window.myPostPort = e.ports[0];
})
document.addEventListener('click', (e) => {
window.myPostPort?.postMessage('click');
});
document.addEventListener('scroll', (e) => {
window.myPostPort?.postMessage('scroll');
});0
`);const n=new MessageChannel;n.port1.onmessage=r=>{var o,i,a,s;if(r.data==="contextmenu"||(o=r.data)!=null&&o.startsWith("contextmenu")){(i=this.menu)==null||i.close();const{x:c,y:f}=r.data.split(" ").length>1?{x:r.data.split(" ")[1],y:r.data.split(" ")[2]}:{x:r.x,y:r.y},p=this.webviewEl.getClientRects(),v={x:parseInt(c,10)+p[0].x,y:parseInt(f,10)+p[0].y},g=this.currentUrl;let m="";try{t.executeJavaScript("window.getSelection().toString()",!0).then(y=>{m=y,this.createMenu(t,{...v,pageURL:g,selectionText:m})})}catch{}return}if(r.data&&r.data.startsWith("link ")){this.hoverPopover&&this.hoverPopover.hide();const c=r.data.split(" ")[1],f=r.data.split(" ")[2],p=r.data.split(" ")[3];if(!p||!p.startsWith("http"))return;this.hoverPopover=new $e.HoverPopover(this.contentEl,null,100);const v=this.webviewEl.getClientRects(),g={x:parseInt(c,10)+v[0].x,y:parseInt(f,10)+v[0].y};setTimeout(()=>{this.hoverPopover.position({x:g.x,y:g.y,doc:this.doc})},100),this.hoverPopover.hoverEl.toggleClass("surfing-hover-popover",!0);const m=this.hoverPopover.hoverEl.createEl("div",{cls:"surfing-hover-popover-container"});new $p(m,p).onload();return}r.data!=="darkreader-failed"?((a=this.menu)==null||a.close(),(s=this.hoverPopover)==null||s.hide()):r.data==="darkreader-failed"&&t.executeJavaScript(`
window.getComputedStyle( document.body ,null).getPropertyValue('background-color');
`,!0).then(c=>{const f=c.slice(c.indexOf("(")+1,c.indexOf(")")).split(", ");Math.sqrt(f[0]**2*.241+f[1]**2*.691+f[2]**2*.068)>120&&t.insertCSS(`
html {
filter: invert(90%) hue-rotate(180deg);
}
img, svg, div[class*="language-"] {
filter: invert(110%) hue-rotate(180deg);
opacity: .8;
}
video, canvas {
filter: invert(110%) hue-rotate(180deg);
opacity: 1;
}
`)})},await this.webviewEl.contentWindow.postMessage("test","*",[n.port2])}async registerJavascriptInWebcontents(t){try{if(this.plugin.settings.darkMode)try{await t.executeJavaScript(`
const element = document.createElement('script');
fetch('https://cdn.jsdelivr.net/npm/darkreader/darkreader.min.js')
.then((response) => {
element.src = response.url;
document.body.appendChild(element);
})
.catch((error) => {
console.error('Error loading the script:', error);
});
element.onload = () => {
try {
DarkReader?.setFetchMethod(window.fetch);
DarkReader?.enable({
brightness: 100,
contrast: 90,
sepia: 10
});
console.log(DarkReader);
} catch (err) {
window.myPostPort?.postMessage('darkreader-failed');
console.error('Failed to load dark reader: ', err);
}
};0
`)}catch{}}catch{}t.executeJavaScript(`
window.addEventListener('mouseover', (e) => {
if(!e.target) return;
if(!e.ctrlKey && !e.metaKey) return;
// Tag name is a tag
if(e.target.tagName.toLowerCase() === 'a'){
window.myPostPort?.postMessage('link ' + e.clientX + ' ' + e.clientY + ' ' + e.target.href);
}
});
`)}clearHistory(){const t=zn.remote.webContents.fromId(this.webviewEl.getWebContentsId());t&&(t.clearHistory(),t.executeJavaScript("history.pushState({}, '', location.href)"),this.leaf.history.backHistory.splice(0),this.leaf.history.forwardHistory.splice(0))}getState(){return{url:this.currentUrl}}getCurrentTitle(){return this.currentTitle}navigate(t,n=!0,r=!0){var a,s,c,f;if(t==="")return;n&&((c=(s=(a=this.leaf.history.backHistory.last())==null?void 0:a.state)==null?void 0:s.state)==null?void 0:c.url)!==this.currentUrl&&(this.leaf.history.backHistory.push({state:{type:An,state:this.getState()},title:this.currentTitle,icon:"search"}),this.headerEl.children[1].children[0].setAttribute("aria-disabled","false"));const o=/^(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#?&//=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/g,i=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(:[0-9]+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w\-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/g;if(o.test(t)){const p=t.slice(0,7).toLowerCase(),v=t.slice(0,8).toLowerCase();p==="http://"||p==="file://"||v==="https://"||(t="https://"+t)}else if(!(t.startsWith("file://")||/\.htm(l)?/g.test(t))&&!i.test(encodeURI(t))||!/^(https?|file):\/\//g.test(t)){const v=[...bi,...this.plugin.settings.customSearchEngine].find(g=>g.name.toLowerCase()===this.plugin.settings.defaultSearchEngine);t=(v?v.url:bi[0].url)+t}this.currentUrl=t,this.headerBar.setSearchBarUrl(t),r&&this.webviewEl.setAttribute("src",t),(f=this.searchBox)==null||f.unload(),app.workspace.requestSaveLayout()}getCurrentTimestamp(t){zn.remote.webContents.fromId(this.webviewEl.getWebContentsId()).executeJavaScript(`
var time = document.querySelectorAll('.bpx-player-ctrl-time-current')[0].innerHTML;
var timeYMSArr=time.split(':');
var joinTimeStr='00h00m00s';
if(timeYMSArr.length===3){
joinTimeStr=timeYMSArr[0]+'h'+timeYMSArr[1]+'m'+timeYMSArr[2]+'s';
}else if(timeYMSArr.length===2){
joinTimeStr=timeYMSArr[0]+'m'+timeYMSArr[1]+'s';
}
var timeStr= "";
timeStr = window.location.href.split('?')[0]+'?t=' + joinTimeStr;
`,!0).then(r=>{const o="["+r.split("?t=")[1]+"]("+r+") ",i=t==null?void 0:t.posToOffset(t==null?void 0:t.getCursor());t==null||t.replaceRange(o,t==null?void 0:t.getCursor()),i&&(t==null||t.setCursor(t==null?void 0:t.offsetToPos(i+o.length)))})}refresh(){zn.remote.webContents.fromId(this.webviewEl.getWebContentsId()).reload()}copyHighLight(){const t=this.plugin.settings.highlightFormat,n=()=>{var c;let a="";const s=(c=t.match(/\{TIME\:[^\{\}\[\]]*\}/g))==null?void 0:c[0];if(s){const f=$e.moment().format(s.replace(/{TIME:([^\}]*)}/g,"$1"));return a=t.replace(s,f),a}return a},r=()=>this.currentUrl,o=()=>t.includes("{TIME");zn.remote.webContents.fromId(this.webviewEl.getWebContentsId()).executeJavaScript(`
const selectionText = document.getSelection().toString();
let tempText = encodeURIComponent(selectionText);
const chineseRegex = /[぀-ヿ㐀-䶿一-鿿豈-﫿ヲ-゚]/gi;
const englishSentence = selectionText.split('\\n');
if (selectionText.match(chineseRegex)?.length > 50) {
if (englishSentence.length > 1) {
const fistSentenceWords = englishSentence[0];
const lastSentenceWords = englishSentence[englishSentence.length - 1];
tempText = encodeURIComponent(fistSentenceWords.slice(0, 4)) + "," + encodeURIComponent(lastSentenceWords.slice(lastSentenceWords.length - 4, lastSentenceWords.length));
} else {
tempText = encodeURIComponent(selectionText.substring(0, 8)) + "," + encodeURIComponent(selectionText.substring(selectionText.length - 8, selectionText.length));
}
} else if (englishSentence.length > 1) {
const fistSentenceWords = englishSentence[0].split(' ');
const lastSentenceWords = englishSentence[englishSentence.length - 1].split(' ');
tempText = encodeURIComponent(fistSentenceWords.slice(0, 3).join(' ')) + "," + encodeURIComponent(lastSentenceWords.slice(lastSentenceWords.length - 1, lastSentenceWords.length).join(' '));
}
let linkToHighlight = "${r()}".replace(/#:~:text=(.*)/g, "") + "#:~:text=" + tempText;
let link = "";
if (${o()}) {
link = "${n()}";
}
link = (link != "" ? link : "${t}").replace(/{URL}/g, linkToHighlight).replace(/{CONTENT}/g, selectionText.replace(/\\n/g, " "));
`,!0).then(a=>{zn.clipboard.writeText(a)})}}const Zf=e=>e.startsWith("http://")||e.startsWith("https://")||e.startsWith("file://")&&/\.htm(l)?/g.test(e),Nw=(e,t)=>{const n=/^(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#?&//=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/g,r=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(:[0-9]+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w\-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/g;let o=t;if(n.test(o)){const i=o.slice(0,7).toLowerCase(),a=o.slice(0,8).toLowerCase();i==="http://"||i==="file://"||a==="https://"||(o="https://"+o)}else!(o.startsWith("file://")||/\.htm(l)?/g.test(o))&&!r.test(encodeURI(o))&&(o=e+o);return/^(https?|file):\/\//g.test(o)||(o=e+o),o},DJ=e=>{let t=e;if(!t)return;const n=app.plugins.getPlugin("surfing").settings,r=/^(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#?&//=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/g,o=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(:[0-9]+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w\-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/g;if(r.test(t)){const i=t.slice(0,7).toLowerCase(),a=t.slice(0,8).toLowerCase();i==="http://"||i==="file://"||a==="https://"||(t="https://"+t)}else if(!(t.startsWith("file://")||/\.htm(l)?/g.test(t))&&!o.test(encodeURI(t))||!/^(https?|file):\/\//g.test(t)){const a=[...bi,...n.customSearchEngine].find(s=>s.name===n.defaultSearchEngine);t=(a?a.url:bi[0].url)+t}return t||e};function Hk(e){if(!e||e.contains(" "))return!1;try{new URL(e)}catch{return!1}return!0}const jJ=/^(([^<>()[\]\\.,;:\s@\"`]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))\b/;function _k(e){return jJ.test(e)}class LJ extends fy{constructor(t,n,r){super(t,r),this.app=t,this.inputEl=r,this.bookmarkData=[],this.suggestions=[],this.plugin=n}getSuggestions(t){const n=t.toLowerCase();try{this.suggestions.length===0&&La().then(o=>{this.bookmarkData=o.bookmarks,this.suggestions=this.bookmarkData})}catch{}if(this.suggestions.length===0)return[];const r=this.suggestions.filter(o=>{if(o.url.toLowerCase().contains(n)||o.name.toLowerCase().contains(n))return o});return r||this.close(),(r==null?void 0:r.length)>0?(r.unshift({id:"BOOKMARK",name:n,description:"",url:"",tags:"",category:[],created:1111111111111,modified:1111111111111}),r):r||[]}renderSuggestion(t,n){const r=n.createEl("div",{cls:"wb-bookmark-suggest-container"});r.createEl("div",{text:t.name,cls:"wb-bookmark-suggestion-text"}),r.createEl("div",{text:t.url,cls:"wb-bookmark-suggestion-url"}),n.classList.add("wb-bookmark-suggest-item")}selectSuggestion(t){if(t){if(t.id==="BOOKMARK"){const n=Nw("",t.name);Qt.spawnWebBrowserView(!1,{url:n}),this.close();return}Qt.spawnWebBrowserView(!1,{url:t.url}),this.close()}}}class BJ extends fy{constructor(t,n,r,o){super(t,r),this.app=t,this.inputEl=r,this.plugin=n,this.view=o,this.files=this.app.vault.getFiles()}fuzzySearchItemsOptimized(t,n){const r=$e.prepareFuzzySearch(t);return n.map(o=>{const i=r(o);return i?{item:o,match:i}:null}).filter(Boolean)}getSuggestions(t){const n=this.files.map(o=>o.path),r=this.fuzzySearchItemsOptimized(t.slice(1),n).sort((o,i)=>i.match.score-o.match.score).map(o=>({path:o.item,type:"file"}));return r.unshift({path:t,type:"web"}),r}renderSuggestion(t,n){n.createEl("div",{cls:"wb-bookmark-suggest-container"}).createEl("div",{text:t.path,cls:"wb-bookmark-suggestion-text"}),n.classList.add("wb-bookmark-suggest-item")}async selectSuggestion(t){if(t){switch(t.type){case"web":{const n=Nw("",t.path);Qt.spawnWebBrowserView(!1,{url:n});break}case"file":{const n=this.files.find(r=>r.path===t.path);n&&await this.view.leaf.openFile(n);break}}this.close()}}}class Ib extends $e.Component{constructor(t,n,r,o){super(),this.onSearchBarEnterListener=new Array,this.removeHeaderChild=!0,this.plugin=n,this.view=r,this.parentEl=t,o!==void 0&&(this.removeHeaderChild=o)}onLoad(){if(this.parentEl.addClass("wb-header-bar"),this.removeHeaderChild&&this.parentEl.empty(),this.initScope(),this.plugin.settings.showRefreshButton&&this.removeHeaderChild&&this.view.getViewType()!=="empty"){const t=this.parentEl.createEl("div",{cls:"wb-refresh-button"});t.addEventListener("click",()=>{this.view.leaf.rebuildView()}),$e.setIcon(t,"refresh-cw")}this.searchBar=this.parentEl.createEl("input",{type:"text",placeholder:Ne("Search with")+this.plugin.settings.defaultSearchEngine+Ne("or enter address"),cls:"wb-search-bar"}),this.registerDomEvent(this.searchBar,"keydown",t=>{if(t.key==="Enter")for(const n of this.onSearchBarEnterListener)n(this.searchBar.value)}),this.plugin.settings.bookmarkManager.openBookMark||new BJ(app,this.plugin,this.searchBar,this.view),this.plugin.settings.bookmarkManager.openBookMark&&new LJ(app,this.plugin,this.searchBar),this.registerDomEvent(this.searchBar,"focusin",t=>{this.searchBar.select()}),this.registerDomEvent(this.searchBar,"focusout",t=>{var n;(n=window.getSelection())==null||n.removeAllRanges(),this.removeHeaderChild||this.searchBar.detach()})}initScope(){this.view.scope?this.view.scope.register([],"/",t=>{t.target!==this.searchBar&&(t.preventDefault(),this.searchBar.focus())}):(this.view.scope=new $e.Scope(this.plugin.app.scope),this.view.scope.register([],"/",t=>{t.target!==this.searchBar&&(t.preventDefault(),this.searchBar.focus())}))}addOnSearchBarEnterListener(t){this.onSearchBarEnterListener.push(t)}setSearchBarUrl(t){this.searchBar.value=t}focus(){this.searchBar.focus()}}const Tb=["html","htm"],Pb="surfing-file-view";class AJ extends $e.FileView{constructor(t){super(t)}async onLoadFile(t){const r="file:///"+(this.app.vault.adapter.getBasePath()+"/"+t.path).toString().replace(/\s/g,"%20");Qt.spawnWebBrowserView(!0,{url:r}),this.leaf&&this.leaf.detach()}onunload(){}canAcceptExtension(t){return Tb.includes(t)}getViewType(){return Pb}}function wa(e,t){const n=Object.keys(t).map(r=>zJ(e,r,t[r]));return n.length===1?n[0]:function(){n.forEach(r=>r())}}function zJ(e,t,n){const r=e[t],o=e.hasOwnProperty(t);let i=n(r);return r&&Object.setPrototypeOf(i,r),Object.setPrototypeOf(a,i),e[t]=a,s;function a(...c){return i===r&&e[t]===a&&s(),i.apply(this,c)}function s(){e[t]===a&&(o?e[t]=r:delete e[t]),i!==r&&(i=r,Object.setPrototypeOf(a,r||Function))}}class FJ extends fy{constructor(t,n,r,o){super(t,r),this.app=t,this.inputEl=r,this.searchEnginesString=[],this.mode="web",this.files=[],this.plugin=n,this.files=this.app.vault.getFiles(),this.view=o}fuzzySearchItemsOptimized(t,n){const r=$e.prepareFuzzySearch(t);return n.map(o=>{const i=r(o);return i?{item:o,match:i}:null}).filter(Boolean)}getSuggestions(t){if(t.trim().startsWith("/")){this.mode="file";const r=this.files.map(i=>i.path);return this.fuzzySearchItemsOptimized(t.slice(1),r).sort((i,a)=>a.match.score-i.match.score).map(i=>i.item)}this.mode="web",this.searchEnginesString=[];const n=this.plugin.settings.defaultSearchEngine;return this.searchEngines=[...bi,...this.plugin.settings.customSearchEngine].sort(function(r,o){return r.name.toLowerCase()==n.toLowerCase()?-1:o.name.toLowerCase()==n.toLowerCase()?1:0}),this.searchEngines.forEach(r=>{this.searchEnginesString.push(r.name)}),this.searchEnginesString}renderSuggestion(t,n){switch(this.mode){case"web":n.createEl("div",{text:Ne("Search with")+t,cls:"wb-search-suggestion-text"}),n.classList.add("wb-search-suggest-item");break;case"file":n.createEl("div",{text:"Open "+t,cls:"wb-search-suggestion-text"}),n.classList.add("wb-search-suggest-item");break}}async selectSuggestion(t){const n=this.inputEl.value;if(n.trim()!=="")switch(this.mode){case"web":{const r=this.searchEngines.find(a=>a.name===t),o=r?r.url:bi[0].url,i=Nw(o,n);Qt.spawnWebBrowserView(!1,{url:i});break}case"file":{const r=this.files.find(o=>o.path===t);r&&await this.view.leaf.openFile(r);break}}}}class HJ extends $e.Component{constructor(t,n,r){super(),this.onSearchBarEnterListener=new Array,this.plugin=r,this.view=n,this.inPageSearchBarContainerEl=t.createEl("div",{cls:"wb-page-search-bar-container"}),this.initScope(),this.inPageSearchBarContainerEl.createEl("div",{text:"Surfing",cls:"wb-page-search-bar-text"}),this.SearchBarInputContainerEl=this.inPageSearchBarContainerEl.createEl("div",{cls:"wb-page-search-bar-input-container"}),this.inPageSearchBarInputEl=this.SearchBarInputContainerEl.createEl("input",{type:"text",placeholder:Ne("Search with")+this.plugin.settings.defaultSearchEngine+Ne("or enter address"),cls:"wb-page-search-bar-input"}),this.registerDomEvent(this.inPageSearchBarInputEl,"keydown",o=>{if(o.key==="Enter")for(const i of this.onSearchBarEnterListener)i(this.inPageSearchBarInputEl.value)}),this.registerDomEvent(this.inPageSearchBarInputEl,"focusin",o=>{this.inPageSearchBarInputEl.select()}),this.registerDomEvent(this.inPageSearchBarInputEl,"focusout",o=>{var i;(i=window.getSelection())==null||i.removeAllRanges()}),this.plugin.settings.showOtherSearchEngines&&(this.searchEnginesSuggester=new FJ(app,this.plugin,this.inPageSearchBarInputEl,this.view))}addOnSearchBarEnterListener(t){this.onSearchBarEnterListener.push(t)}initScope(){this.view.scope?this.view.scope.register([],"i",t=>{t.target!==this.inPageSearchBarInputEl&&(t.preventDefault(),this.inPageSearchBarInputEl.focus())}):(this.view.scope=new $e.Scope(this.plugin.app.scope),this.view.scope.register([],"i",t=>{t.target!==this.inPageSearchBarInputEl&&(t.preventDefault(),this.inPageSearchBarInputEl.focus())}))}focus(){this.inPageSearchBarInputEl.focus()}}class _J{constructor(t,n,r){this.plugin=r,this.view=n,this.iconListEl=t.createEl("div",{cls:"wb-icon-list-container"}),this.createBtnEl=this.iconListEl.createEl("div",{cls:"wb-create-btn"}),this.searchBtnEl=this.iconListEl.createEl("div",{cls:"wb-search-btn"}),this.closeBtnEl=this.iconListEl.createEl("div",{cls:"wb-close-btn"}),this.closeBtn=new $e.ButtonComponent(this.closeBtnEl),this.createBtn=new $e.ButtonComponent(this.createBtnEl),this.searchBtn=new $e.ButtonComponent(this.searchBtnEl),this.createBtn.setIcon("file-plus").onClick(()=>{app.commands.executeCommandById("file-explorer:new-file")}),this.searchBtn.setIcon("file-search-2").onClick(()=>{app.commands.executeCommandById("switcher:open")}),this.closeBtn.setIcon("x-square").onClick(()=>{var o,i;(o=this.view)!=null&&o.leaf&&((i=this.view)==null||i.leaf.detach())}),this.closeBtn.setTooltip(Ne("Close Current Leaf")),this.createBtn.setTooltip(Ne("Create A New Note")),this.searchBtn.setTooltip(Ne("Open Quick Switcher"))}onunload(){this.searchBtn.buttonEl.detach(),this.createBtn.buttonEl.detach(),this.closeBtn.buttonEl.detach()}}class VJ extends $e.Component{constructor(t,n,r){super(),this.onSearchBarEnterListener=new Array,this.node=n,this.url=r,this.app=t}onload(){var n;const t=this.app.plugins.getPlugin("surfing").settings;this.searchBar=(n=this.node)==null?void 0:n.contentEl.createEl("input",{type:"text",placeholder:Ne("Search with")+t.defaultSearchEngine+Ne("or enter address"),cls:"wb-search-bar"}),this.registerDomEvent(this.searchBar,"keydown",r=>{if(r.key==="Enter")for(const o of this.onSearchBarEnterListener)o(this.searchBar.value)}),this.registerDomEvent(this.searchBar,"focusin",r=>{this.searchBar.select()}),this.registerDomEvent(this.searchBar,"focusout",r=>{var o;(o=window.getSelection())==null||o.removeAllRanges()})}addOnSearchBarEnterListener(t){this.onSearchBarEnterListener.push(t)}setSearchBarUrl(t){this.searchBar.value=t}focus(){this.searchBar.focus()}}class WJ{constructor(t,n,r){this.contentEl=t.contentEl,this.node=t,this.canvas=r,this.plugin=n}onload(){this.contentEl.empty(),this.appendSearchBar(),this.appendWebView(),this.contentEl.addClass("wb-view-content")}appendSearchBar(){this.searchBarEl=new VJ(this.plugin.app,this.node,this.node.url),this.searchBarEl.onload(),this.currentUrl=this.node.url,this.searchBarEl.setSearchBarUrl(this.node.url),this.searchBarEl.addOnSearchBarEnterListener(t=>{const n=DJ(t);n?this.currentUrl=n:this.currentUrl=t,this.webviewEl.setAttribute("src",this.currentUrl),this.searchBarEl.setSearchBarUrl(this.currentUrl);const r=this.node.getData();r.url!==this.currentUrl&&(r.url=this.currentUrl,this.node.setData(r),this.node.canvas.requestSave(),this.node.render())})}appendWebView(){const t=this.contentEl.doc;this.webviewEl=t.createElement("webview"),this.webviewEl.setAttribute("allowpopups",""),this.webviewEl.addClass("wb-frame"),this.currentUrl?this.webviewEl.setAttribute("src",this.currentUrl):this.webviewEl.setAttribute("src",this.node.url),this.webviewEl.addEventListener("dom-ready",n=>{const r=zn.remote.webContents.fromId(this.webviewEl.getWebContentsId());r.setWindowOpenHandler(o=>{if(o.disposition!=="foreground-tab")return Qt.spawnWebBrowserView(!0,{url:o.url}),{action:"allow"};if(this.canvas){const i=this.canvas.createLinkNode(o.url,{x:this.node.x+this.node.width+20,y:this.node.y},{height:this.node.height,width:this.node.width});return this.canvas.deselectAll(),this.canvas.addNode(i),this.canvas.select(i),this.canvas.zoomToSelection(),this.canvas.requestSave(),{action:"allow"}}});try{const i=app.plugins.getPlugin("surfing").settings.highlightFormat,a=()=>{var f;let s="";const c=(f=i.match(/\{TIME\:[^\{\}\[\]]*\}/g))==null?void 0:f[0];if(c){const p=$e.moment().format(c.replace(/{TIME:([^\}]*)}/g,"$1"));return s=i.replace(c,p),s}return s};r.executeJavaScript(`
window.addEventListener('dragstart', (e) => {
if(e.ctrlKey || e.metaKey) {
e.dataTransfer.clearData();
const selectionText = document.getSelection().toString();
const linkToHighlight = e.srcElement.baseURI.replace(/#:~:text=(.*)/g, "") + "#:~:text=" + encodeURIComponent(selectionText);
let link = "";
if ("${i}".includes("{TIME")) {
link = "${a()}";
// // eslint-disable-next-line no-useless-escape
// const timeString = "${i}".match(/{TIME:[^{}[]]*}/g)?.[0];
// if (timeString) {
// // eslint-disable-next-line no-useless-escape
// const momentTime = moment().format(timeString.replace(/{TIME:([^}]*)}/g, "$1"));
// link = "${i}".replace(timeString, momentTime);
// }
}
link = (link != "" ? link : "${i}").replace(/{URL}/g, linkToHighlight).replace(/{CONTENT}/g, selectionText.replace(/\\n/g, " "));
e.dataTransfer.setData('text/plain', link);
console.log(e);
}
});
`,!0).then(s=>{})}catch{}r.on("context-menu",(o,i)=>{var f;o.preventDefault();const{Menu:a,MenuItem:s}=zn.remote,c=new a;if(c.append(new s({label:Ne("Open Current URL In External Browser"),click:function(){window.open(i.pageURL,"_blank")}})),c.append(new s({label:"Open Current URL In Surfing",click:function(){window.open(i.pageURL)}})),i.selectionText){const p=app.plugins.getPlugin("surfing").settings;c.append(new s({type:"separator"})),c.append(new s({label:Ne("Search Text"),click:function(){try{Qt.spawnWebBrowserView(!0,{url:i.selectionText})}catch{}}})),c.append(new s({type:"separator"})),c.append(new s({label:Ne("Copy Plain Text"),click:function(){try{r.copy()}catch{}}}));const v=p.highlightFormat;c.append(new s({label:Ne("Copy Link to Highlight"),click:function(){var g;try{const m=i.pageURL.replace(/\#\:\~\:text\=(.*)/g,"")+"#:~:text="+encodeURIComponent(i.selectionText),y=i.selectionText;let b="";if(v.contains("{TIME")){const w=(g=v.match(/\{TIME\:[^\{\}\[\]]*\}/g))==null?void 0:g[0];if(w){const S=$e.moment().format(w.replace(/{TIME:([^\}]*)}/g,"$1"));b=v.replace(w,S)}}b=(b!=""?b:v).replace(/\{URL\}/g,m).replace(/\{CONTENT\}/g,y),zn.clipboard.writeText(b)}catch{}}})),c.popup(r)}(f=i.pageURL)!=null&&f.contains("bilibili.com/")&&c.append(new s({label:Ne("Copy Video Timestamp"),click:function(){try{r.executeJavaScript(`
var time = document.querySelectorAll('.bpx-player-ctrl-time-current')[0].innerHTML;
var timeYMSArr=time.split(':');
var joinTimeStr='00h00m00s';
if(timeYMSArr.length===3){
joinTimeStr=timeYMSArr[0]+'h'+timeYMSArr[1]+'m'+timeYMSArr[2]+'s';
}else if(timeYMSArr.length===2){
joinTimeStr=timeYMSArr[0]+'m'+timeYMSArr[1]+'s';
}
var timeStr= "";
var pageStrMatch = window.location.href.match(/(p=[1-9]{1,})/g);
var pageStr = "";
if(typeof pageStrMatch === "object" && pageStrMatch?.length > 0){
pageStr = '&' + pageStrMatch[0];
}else if(typeof pageStrMatch === "string") {
pageStr = '&' + pageStrMatch;
}
timeStr = window.location.href.split('?')[0]+'?t=' + joinTimeStr + pageStr;
`,!0).then(p=>{zn.clipboard.writeText("["+p.split("?t=")[1].replace(/&p=[1-9]{1,}/g,"")+"]("+p+")")})}catch{}}})),setTimeout(()=>{c.popup(r),this.node.url!==i.pageURL&&!i.selectionText&&c.popup(r)},0)},!1)}),this.webviewEl.addEventListener("will-navigate",n=>{const r=this.node.getData();r.url=n.url,this.node.setData(r),this.node.canvas.requestSave()}),this.webviewEl.addEventListener("did-navigate-in-page",n=>{const r=this.node.getData();if(n.url.contains("contacts.google.com/widget")||this.node.canvas.isDragging&&r.url===n.url){zn.remote.webContents.fromId(this.webviewEl.getWebContentsId()).stop();return}r.url!==n.url&&(r.url=n.url,r.alwaysKeepLoaded=!0,this.node.setData(r),this.node.canvas.requestSave())}),this.webviewEl.addEventListener("destroyed",()=>{t!==this.contentEl.doc&&(this.webviewEl.detach(),this.appendWebView())}),t.contains(this.contentEl)?this.contentEl.appendChild(this.webviewEl):this.contentEl.onNodeInserted(()=>{this.contentEl.doc===t?this.contentEl.appendChild(this.webviewEl):this.appendWebView()})}}class Vk{constructor(t,n){this.contentEl=t.containerEl,this.node=t,this.file=n}load(){this.appendWebView(),this.contentEl.addClass("wb-view-content-embeded")}unload(){this.contentEl.removeClass("wb-view-content-embeded")}loadFile(t){this.load()}appendWebView(){const t=this.contentEl.doc;this.webviewEl=t.createElement("webview"),this.webviewEl.setAttribute("allowpopups",""),this.webviewEl.addClass("wb-frame");const n=app.vault.adapter;this.currentUrl="file:///"+(n.getBasePath()+"/"+this.file.path).toString().replace(/\s/g,"%20"),this.currentUrl?this.webviewEl.setAttribute("src",this.currentUrl):this.webviewEl.setAttribute("src",this.file.path),this.webviewEl.addEventListener("dom-ready",r=>{const o=zn.remote.webContents.fromId(this.webviewEl.getWebContentsId());o.setWindowOpenHandler(i=>{if(i.disposition!=="foreground-tab")return Qt.spawnWebBrowserView(!0,{url:i.url}),{action:"allow"}});try{const a=app.plugins.getPlugin("surfing").settings.highlightFormat,s=()=>{var p;let c="";const f=(p=a.match(/\{TIME\:[^\{\}\[\]]*\}/g))==null?void 0:p[0];if(f){const v=$e.moment().format(f.replace(/{TIME:([^\}]*)}/g,"$1"));return c=a.replace(f,v),c}return c};o.executeJavaScript(`
window.addEventListener('dragstart', (e) => {
if(e.ctrlKey || e.metaKey) {
e.dataTransfer.clearData();
const selectionText = document.getSelection().toString();
const linkToHighlight = e.srcElement.baseURI.replace(/#:~:text=(.*)/g, "") + "#:~:text=" + encodeURIComponent(selectionText);
let link = "";
if ("${a}".includes("{TIME")) {
link = "${s()}";
// // eslint-disable-next-line no-useless-escape
// const timeString = "${a}".match(/{TIME:[^{}[]]*}/g)?.[0];
// if (timeString) {
// // eslint-disable-next-line no-useless-escape
// const momentTime = moment().format(timeString.replace(/{TIME:([^}]*)}/g, "$1"));
// link = "${a}".replace(timeString, momentTime);
// }
}
link = (link != "" ? link : "${a}").replace(/{URL}/g, linkToHighlight).replace(/{CONTENT}/g, selectionText.replace(/\\n/g, " "));
e.dataTransfer.setData('text/plain', link);
console.log(e);
}
});
`,!0).then(c=>{})}catch{}o.on("context-menu",(i,a)=>{var f;i.preventDefault();const{Menu:s,MenuItem:c}=zn.remote;if(this.menu=new s,this.menu.append(new c({label:Ne("Open Current URL In External Browser"),click:function(){window.open(a.pageURL,"_blank")}})),this.menu.append(new c({label:"Open Current URL In Surfing",click:function(){window.open(a.pageURL)}})),a.selectionText){const p=app.plugins.getPlugin("surfing").settings;this.menu.append(new c({type:"separator"})),this.menu.append(new c({label:Ne("Search Text"),click:function(){try{Qt.spawnWebBrowserView(!0,{url:a.selectionText})}catch{}}})),this.menu.append(new c({type:"separator"})),this.menu.append(new c({label:Ne("Copy Plain Text"),click:function(){try{o.copy()}catch{}}}));const v=p.highlightFormat;this.menu.append(new c({label:Ne("Copy Link to Highlight"),click:function(){var g;try{const m=a.pageURL.replace(/\#\:\~\:text\=(.*)/g,"")+"#:~:text="+encodeURIComponent(a.selectionText),y=a.selectionText;let b="";if(v.contains("{TIME")){const w=(g=v.match(/\{TIME\:[^\{\}\[\]]*\}/g))==null?void 0:g[0];if(w){const S=$e.moment().format(w.replace(/{TIME:([^\}]*)}/g,"$1"));b=v.replace(w,S)}}b=(b!=""?b:v).replace(/\{URL\}/g,m).replace(/\{CONTENT\}/g,y),zn.clipboard.writeText(b)}catch{}}})),this.menu.popup(o)}(f=a.pageURL)!=null&&f.contains("bilibili.com/")&&this.menu.append(new c({label:Ne("Copy Video Timestamp"),click:function(){try{o.executeJavaScript(`
var time = document.querySelectorAll('.bpx-player-ctrl-time-current')[0].innerHTML;
var timeYMSArr=time.split(':');
var joinTimeStr='00h00m00s';
if(timeYMSArr.length===3){
joinTimeStr=timeYMSArr[0]+'h'+timeYMSArr[1]+'m'+timeYMSArr[2]+'s';
}else if(timeYMSArr.length===2){
joinTimeStr=timeYMSArr[0]+'m'+timeYMSArr[1]+'s';
}
var timeStr= "";
var pageStrMatch = window.location.href.match(/(p=[1-9]{1,})/g);
var pageStr = "";
if(typeof pageStrMatch === "object" && pageStrMatch?.length > 0){
pageStr = '&' + pageStrMatch[0];
}else if(typeof pageStrMatch === "string") {
pageStr = '&' + pageStrMatch;
}
timeStr = window.location.href.split('?')[0]+'?t=' + joinTimeStr + pageStr;
`,!0).then(p=>{zn.clipboard.writeText("["+p.split("?t=")[1].replace(/&p=[1-9]{1,}/g,"")+"]("+p+")")})}catch{}}})),setTimeout(()=>{this.menu.popup(o),this.node.url!==a.pageURL&&!a.selectionText&&this.menu.popup(o)},0)},!1)}),this.webviewEl.addEventListener("will-navigate",r=>{this.currentUrl=r.url}),this.webviewEl.addEventListener("did-navigate-in-page",r=>{this.currentUrl=r.url,this.webviewEl.setAttribute("src",r.url)}),this.webviewEl.addEventListener("destroyed",()=>{t!==this.contentEl.doc&&(this.webviewEl.detach(),this.appendWebView())}),t.contains(this.contentEl)?this.contentEl.appendChild(this.webviewEl):this.contentEl.onNodeInserted(()=>{this.contentEl.doc===t?this.contentEl.appendChild(this.webviewEl):this.appendWebView()})}}const cN=d.createContext({dragDropManager:void 0});function Eo(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Wk=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),_m=function(){return Math.random().toString(36).substring(7).split("").join(".")},Uk={INIT:"@@redux/INIT"+_m(),REPLACE:"@@redux/REPLACE"+_m(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+_m()}};function UJ(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function uN(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Eo(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Eo(1));return n(uN)(e,t)}if(typeof e!="function")throw new Error(Eo(2));var o=e,i=t,a=[],s=a,c=!1;function f(){s===a&&(s=a.slice())}function p(){if(c)throw new Error(Eo(3));return i}function v(b){if(typeof b!="function")throw new Error(Eo(4));if(c)throw new Error(Eo(5));var w=!0;return f(),s.push(b),function(){if(w){if(c)throw new Error(Eo(6));w=!1,f();var C=s.indexOf(b);s.splice(C,1),a=null}}}function g(b){if(!UJ(b))throw new Error(Eo(7));if(typeof b.type>"u")throw new Error(Eo(8));if(c)throw new Error(Eo(9));try{c=!0,i=o(i,b)}finally{c=!1}for(var w=a=s,S=0;S<w.length;S++){var C=w[S];C()}return b}function m(b){if(typeof b!="function")throw new Error(Eo(10));o=b,g({type:Uk.REPLACE})}function y(){var b,w=v;return b={subscribe:function(C){if(typeof C!="object"||C===null)throw new Error(Eo(11));function E(){C.next&&C.next(p())}E();var k=w(E);return{unsubscribe:k}}},b[Wk]=function(){return this},b}return g({type:Uk.INIT}),r={dispatch:g,subscribe:v,getState:p,replaceReducer:m},r[Wk]=y,r}function qt(e,t,...n){if(KJ()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let r;if(t===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let o=0;r=new Error(t.replace(/%s/g,function(){return n[o++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function KJ(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function qJ(e,t,n){return t.split(".").reduce((r,o)=>r&&r[o]?r[o]:n||null,e)}function XJ(e,t){return e.filter(n=>n!==t)}function dN(e){return typeof e=="object"}function GJ(e,t){const n=new Map,r=i=>{n.set(i,n.has(i)?n.get(i)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach((i,a)=>{i===1&&o.push(a)}),o}function YJ(e,t){return e.filter(n=>t.indexOf(n)>-1)}const Rw="dnd-core/INIT_COORDS",ih="dnd-core/BEGIN_DRAG",Dw="dnd-core/PUBLISH_DRAG_SOURCE",ah="dnd-core/HOVER",sh="dnd-core/DROP",lh="dnd-core/END_DRAG";function Kk(e,t){return{type:Rw,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const QJ={type:Rw,payload:{clientOffset:null,sourceClientOffset:null}};function ZJ(e){return function(n=[],r={publishSource:!0}){const{publishSource:o=!0,clientOffset:i,getSourceClientOffset:a}=r,s=e.getMonitor(),c=e.getRegistry();e.dispatch(Kk(i)),JJ(n,s,c);const f=nee(n,s);if(f==null){e.dispatch(QJ);return}let p=null;if(i){if(!a)throw new Error("getSourceClientOffset must be defined");eee(a),p=a(f)}e.dispatch(Kk(i,p));const g=c.getSource(f).beginDrag(s,f);if(g==null)return;tee(g),c.pinSource(f);const m=c.getSourceType(f);return{type:ih,payload:{itemType:m,item:g,sourceId:f,clientOffset:i||null,sourceClientOffset:p||null,isSourcePublic:!!o}}}}function JJ(e,t,n){qt(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(r){qt(n.getSource(r),"Expected sourceIds to be registered.")})}function eee(e){qt(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function tee(e){qt(dN(e),"Item must be an object.")}function nee(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function ree(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){ree(e,o,n[o])})}return e}function iee(e){return function(n={}){const r=e.getMonitor(),o=e.getRegistry();aee(r),cee(r).forEach((a,s)=>{const c=see(a,s,o,r),f={type:sh,payload:{dropResult:oee({},n,c)}};e.dispatch(f)})}}function aee(e){qt(e.isDragging(),"Cannot call drop while not dragging."),qt(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function see(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):void 0;return lee(i),typeof i>"u"&&(i=t===0?{}:r.getDropResult()),i}function lee(e){qt(typeof e>"u"||dN(e),"Drop result must either be an object or undefined.")}function cee(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function uee(e){return function(){const n=e.getMonitor(),r=e.getRegistry();dee(n);const o=n.getSourceId();return o!=null&&(r.getSource(o,!0).endDrag(n,o),r.unpinSource()),{type:lh}}}function dee(e){qt(e.isDragging(),"Cannot call endDrag while not dragging.")}function Mb(e,t){return t===null?e===null:Array.isArray(e)?e.some(n=>n===t):e===t}function fee(e){return function(n,{clientOffset:r}={}){pee(n);const o=n.slice(0),i=e.getMonitor(),a=e.getRegistry(),s=i.getItemType();return hee(o,a,s),vee(o,i,a),gee(o,i,a),{type:ah,payload:{targetIds:o,clientOffset:r||null}}}}function pee(e){qt(Array.isArray(e),"Expected targetIds to be an array.")}function vee(e,t,n){qt(t.isDragging(),"Cannot call hover while not dragging."),qt(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const o=e[r];qt(e.lastIndexOf(o)===r,"Expected targetIds to be unique in the passed array.");const i=n.getTarget(o);qt(i,"Expected targetIds to be registered.")}}function hee(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r],i=t.getTargetType(o);Mb(i,n)||e.splice(r,1)}}function gee(e,t,n){e.forEach(function(r){n.getTarget(r).hover(t,r)})}function mee(e){return function(){if(e.getMonitor().isDragging())return{type:Dw}}}function bee(e){return{beginDrag:ZJ(e),publishDragSource:mee(e),hover:fee(e),drop:iee(e),endDrag:uee(e)}}class yee{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:n}=this.store;function r(i){return(...a)=>{const s=i.apply(t,a);typeof s<"u"&&n(s)}}const o=bee(this);return Object.keys(o).reduce((i,a)=>{const s=o[a];return i[a]=r(s),i},{})}dispatch(t){this.store.dispatch(t)}constructor(t,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}}function wee(e,t){return{x:e.x+t.x,y:e.y+t.y}}function fN(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xee(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return!t||!n||!r?null:fN(wee(t,r),n)}function See(e){const{clientOffset:t,initialClientOffset:n}=e;return!t||!n?null:fN(t,n)}const ku=[],jw=[];ku.__IS_NONE__=!0;jw.__IS_ALL__=!0;function Cee(e,t){return e===ku?!1:e===jw||typeof t>"u"?!0:YJ(t,e).length>0}class Eee{subscribeToStateChange(t,n={}){const{handlerIds:r}=n;qt(typeof t=="function","listener must be a function."),qt(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let o=this.store.getState().stateId;const i=()=>{const a=this.store.getState(),s=a.stateId;try{s===o||s===o+1&&!Cee(a.dirtyHandlerIds,r)||t()}finally{o=s}};return this.store.subscribe(i)}subscribeToOffsetChange(t){qt(typeof t=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const o=this.store.getState().dragOffset;o!==n&&(n=o,t())};return this.store.subscribe(r)}canDragSource(t){if(!t)return!1;const n=this.registry.getSource(t);return qt(n,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:n.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const n=this.registry.getTarget(t);if(qt(n,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(t),o=this.getItemType();return Mb(r,o)&&n.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const n=this.registry.getSource(t,!0);if(qt(n,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(t),o=this.getItemType();return r!==o?!1:n.isDragging(this,t)}isOverTarget(t,n={shallow:!1}){if(!t)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const o=this.registry.getTargetType(t),i=this.getItemType();if(i&&!Mb(o,i))return!1;const a=this.getTargetIds();if(!a.length)return!1;const s=a.indexOf(t);return r?s===a.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return xee(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return See(this.store.getState().dragOffset)}constructor(t,n){this.store=t,this.registry=n}}const qk=typeof global<"u"?global:self,pN=qk.MutationObserver||qk.WebKitMutationObserver;function vN(e){return function(){const n=setTimeout(o,0),r=setInterval(o,50);function o(){clearTimeout(n),clearInterval(r),e()}}}function kee(e){let t=1;const n=new pN(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}const Oee=typeof pN=="function"?kee:vN;class $ee{enqueueTask(t){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const n=this.index;if(this.index++,t[n].call(),this.index>this.capacity){for(let r=0,o=t.length-this.index;r<o;r++)t[r]=t[r+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=Oee(this.flush),this.requestErrorThrow=vN(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Iee{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,n){this.onError=t,this.release=n,this.task=null}}class Tee{create(t){const n=this.freeTasks,r=n.length?n.pop():new Iee(this.onError,o=>n[n.length]=o);return r.task=t,r}constructor(t){this.onError=t,this.freeTasks=[]}}const hN=new $ee,Pee=new Tee(hN.registerPendingError);function Mee(e){hN.enqueueTask(Pee.create(e))}const Lw="dnd-core/ADD_SOURCE",Bw="dnd-core/ADD_TARGET",Aw="dnd-core/REMOVE_SOURCE",ch="dnd-core/REMOVE_TARGET";function Nee(e){return{type:Lw,payload:{sourceId:e}}}function Ree(e){return{type:Bw,payload:{targetId:e}}}function Dee(e){return{type:Aw,payload:{sourceId:e}}}function jee(e){return{type:ch,payload:{targetId:e}}}function Lee(e){qt(typeof e.canDrag=="function","Expected canDrag to be a function."),qt(typeof e.beginDrag=="function","Expected beginDrag to be a function."),qt(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Bee(e){qt(typeof e.canDrop=="function","Expected canDrop to be a function."),qt(typeof e.hover=="function","Expected hover to be a function."),qt(typeof e.drop=="function","Expected beginDrag to be a function.")}function Nb(e,t){if(t&&Array.isArray(e)){e.forEach(n=>Nb(n,!1));return}qt(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Io;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(Io||(Io={}));let Aee=0;function zee(){return Aee++}function Fee(e){const t=zee().toString();switch(e){case Io.SOURCE:return`S${t}`;case Io.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Xk(e){switch(e[0]){case"S":return Io.SOURCE;case"T":return Io.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Gk(e,t){const n=e.entries();let r=!1;do{const{done:o,value:[,i]}=n.next();if(i===t)return!0;r=!!o}while(!r);return!1}class Hee{addSource(t,n){Nb(t),Lee(n);const r=this.addHandler(Io.SOURCE,t,n);return this.store.dispatch(Nee(r)),r}addTarget(t,n){Nb(t,!0),Bee(n);const r=this.addHandler(Io.TARGET,t,n);return this.store.dispatch(Ree(r)),r}containsHandler(t){return Gk(this.dragSources,t)||Gk(this.dropTargets,t)}getSource(t,n=!1){return qt(this.isSourceId(t),"Expected a valid source ID."),n&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return qt(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return qt(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return qt(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return Xk(t)===Io.SOURCE}isTargetId(t){return Xk(t)===Io.TARGET}removeSource(t){qt(this.getSource(t),"Expected an existing source."),this.store.dispatch(Dee(t)),Mee(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){qt(this.getTarget(t),"Expected an existing target."),this.store.dispatch(jee(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const n=this.getSource(t);qt(n,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=n}unpinSource(){qt(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,n,r){const o=Fee(t);return this.types.set(o,n),t===Io.SOURCE?this.dragSources.set(o,r):t===Io.TARGET&&this.dropTargets.set(o,r),o}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const _ee=(e,t)=>e===t;function Vee(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Wee(e,t,n=_ee){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function Uee(e=ku,t){switch(t.type){case ah:break;case Lw:case Bw:case ch:case Aw:return ku;case ih:case Dw:case lh:case sh:default:return jw}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,o=GJ(n,r);if(!(o.length>0||!Wee(n,r)))return ku;const a=r[r.length-1],s=n[n.length-1];return a!==s&&(a&&o.push(a),s&&o.push(s)),o}function Kee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Kee(e,o,n[o])})}return e}const Yk={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Xee(e=Yk,t){const{payload:n}=t;switch(t.type){case Rw:case ih:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case ah:return Vee(e.clientOffset,n.clientOffset)?e:qee({},e,{clientOffset:n.clientOffset});case lh:case sh:return Yk;default:return e}}function Gee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Gee(e,o,n[o])})}return e}const Yee={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Qee(e=Yee,t){const{payload:n}=t;switch(t.type){case ih:return bl({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case Dw:return bl({},e,{isSourcePublic:!0});case ah:return bl({},e,{targetIds:n.targetIds});case ch:return e.targetIds.indexOf(n.targetId)===-1?e:bl({},e,{targetIds:XJ(e.targetIds,n.targetId)});case sh:return bl({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case lh:return bl({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Zee(e=0,t){switch(t.type){case Lw:case Bw:return e+1;case Aw:case ch:return e-1;default:return e}}function Jee(e=0){return e+1}function ete(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tte(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){ete(e,o,n[o])})}return e}function nte(e={},t){return{dirtyHandlerIds:Uee(e.dirtyHandlerIds,{type:t.type,payload:tte({},t.payload,{prevTargetIds:qJ(e,"dragOperation.targetIds",[])})}),dragOffset:Xee(e.dragOffset,t),refCount:Zee(e.refCount,t),dragOperation:Qee(e.dragOperation,t),stateId:Jee(e.stateId)}}function rte(e,t=void 0,n={},r=!1){const o=ote(r),i=new Eee(o,new Hee(o)),a=new yee(o,i),s=e(a,t,n);return a.receiveBackend(s),a}function ote(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return uN(nte,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function ite(e,t){if(e==null)return{};var n=ate(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ate(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}let Qk=0;const Ip=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var ste=d.memo(function(t){var{children:n}=t,r=ite(t,["children"]);const[o,i]=lte(r);return d.useEffect(()=>{if(i){const a=gN();return++Qk,()=>{--Qk===0&&(a[Ip]=null)}}},[]),nt.jsx(cN.Provider,{value:o,children:n})});function lte(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=cte(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}function cte(e,t=gN(),n,r){const o=t;return o[Ip]||(o[Ip]={dragDropManager:rte(e,t,n,r)}),o[Ip]}function gN(){return typeof global<"u"?global:window}var ute=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n};const dte=Ms(ute),Ps=typeof window<"u"?d.useLayoutEffect:d.useEffect;function mN(e,t,n){const[r,o]=d.useState(()=>t(e)),i=d.useCallback(()=>{const a=t(e);dte(r,a)||(o(a),n&&n())},[r,e,n]);return Ps(i),[r,i]}function fte(e,t,n){const[r,o]=mN(e,t,n);return Ps(function(){const a=e.getHandlerId();if(a!=null)return e.subscribeToStateChange(o,{handlerIds:[a]})},[e,o]),r}function bN(e,t,n){return fte(t,e||(()=>({})),()=>n.reconnect())}function yN(e,t){const n=[...t||[]];return t==null&&typeof e!="function"&&n.push(e),d.useMemo(()=>typeof e=="function"?e():e,n)}function pte(e){return d.useMemo(()=>e.hooks.dragSource(),[e])}function vte(e){return d.useMemo(()=>e.hooks.dragPreview(),[e])}let Vm=!1,Wm=!1;class hte{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){qt(!Vm,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Vm=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Vm=!1}}isDragging(){if(!this.sourceId)return!1;qt(!Wm,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Wm=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Wm=!1}}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,n){return this.internalMonitor.isOverTarget(t,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let Um=!1;class gte{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,n){return this.internalMonitor.subscribeToStateChange(t,n)}canDrop(){if(!this.targetId)return!1;qt(!Um,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Um=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Um=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function mte(e,t,n){const r=n.getRegistry(),o=r.addTarget(e,t);return[o,()=>r.removeTarget(o)]}function bte(e,t,n){const r=n.getRegistry(),o=r.addSource(e,t);return[o,()=>r.removeSource(o)]}function Rb(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(o!==void 0)return!!o;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<i.length;c++){const f=i[c];if(!s(f))return!1;const p=e[f],v=t[f];if(o=n?n.call(r,p,v,f):void 0,o===!1||o===void 0&&p!==v)return!1}return!0}function Db(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function yte(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function wte(e){return(t=null,n=null)=>{if(!d.isValidElement(t)){const i=t;return e(i,n),i}const r=t;return yte(r),xte(r,n?i=>e(i,n):e)}}function wN(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const o=wte(r);t[n]=()=>o}}),t}function Zk(e,t){typeof e=="function"?e(t):e.current=t}function xte(e,t){const n=e.ref;return qt(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?d.cloneElement(e,{ref:r=>{Zk(n,r),Zk(t,r)}}):d.cloneElement(e,{ref:t})}class Ste{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?t?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),n):(this.lastConnectedDragSource=t,n):n}reconnectDragPreview(t=!1){const n=this.dragPreview,r=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!Rb(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Rb(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=wN({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,Db(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,Db(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class Cte{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!Rb(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=wN({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,Db(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function ta(){const{dragDropManager:e}=d.useContext(cN);return qt(e!=null,"Expected drag drop context"),e}function Ete(e,t){const n=ta(),r=d.useMemo(()=>new Ste(n.getBackend()),[n]);return Ps(()=>(r.dragSourceOptions=e||null,r.reconnect(),()=>r.disconnectDragSource()),[r,e]),Ps(()=>(r.dragPreviewOptions=t||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,t]),r}function kte(){const e=ta();return d.useMemo(()=>new hte(e),[e])}class Ote{beginDrag(){const t=this.spec,n=this.monitor;let r=null;return typeof t.item=="object"?r=t.item:typeof t.item=="function"?r=t.item(n):r={},r??null}canDrag(){const t=this.spec,n=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(n):!0}isDragging(t,n){const r=this.spec,o=this.monitor,{isDragging:i}=r;return i?i(o):n===t.getSourceId()}endDrag(){const t=this.spec,n=this.monitor,r=this.connector,{end:o}=t;o&&o(n.getItem(),n),r.reconnect()}constructor(t,n,r){this.spec=t,this.monitor=n,this.connector=r}}function $te(e,t,n){const r=d.useMemo(()=>new Ote(e,t,n),[t,n]);return d.useEffect(()=>{r.spec=e},[e]),r}function Ite(e){return d.useMemo(()=>{const t=e.type;return qt(t!=null,"spec.type must be defined"),t},[e])}function Tte(e,t,n){const r=ta(),o=$te(e,t,n),i=Ite(e);Ps(function(){if(i!=null){const[s,c]=bte(i,o,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),c}},[r,t,n,o,i])}function Pte(e,t){const n=yN(e,t);qt(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=kte(),o=Ete(n.options,n.previewOptions);return Tte(n,r,o),[bN(n.collect,r,o),pte(o),vte(o)]}function Mte(e){const n=ta().getMonitor(),[r,o]=mN(n,e);return d.useEffect(()=>n.subscribeToOffsetChange(o)),d.useEffect(()=>n.subscribeToStateChange(o)),r}function Nte(e){return d.useMemo(()=>e.hooks.dropTarget(),[e])}function Rte(e){const t=ta(),n=d.useMemo(()=>new Cte(t.getBackend()),[t]);return Ps(()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget()),[e]),n}function Dte(){const e=ta();return d.useMemo(()=>new gte(e),[e])}function jte(e){const{accept:t}=e;return d.useMemo(()=>(qt(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class Lte{canDrop(){const t=this.spec,n=this.monitor;return t.canDrop?t.canDrop(n.getItem(),n):!0}hover(){const t=this.spec,n=this.monitor;t.hover&&t.hover(n.getItem(),n)}drop(){const t=this.spec,n=this.monitor;if(t.drop)return t.drop(n.getItem(),n)}constructor(t,n){this.spec=t,this.monitor=n}}function Bte(e,t){const n=d.useMemo(()=>new Lte(e,t),[t]);return d.useEffect(()=>{n.spec=e},[e]),n}function Ate(e,t,n){const r=ta(),o=Bte(e,t),i=jte(e);Ps(function(){const[s,c]=mte(i,o,r);return t.receiveHandlerId(s),n.receiveHandlerId(s),c},[r,t,o,n,i.map(a=>a.toString()).join("|")])}function xN(e,t){const n=yN(e,t),r=Dte(),o=Rte(n.options);return Ate(n,r,o),[bN(n.collect,r,o),Nte(o)]}function SN(e){let t=null;return()=>(t==null&&(t=e()),t)}function zte(e,t){return e.filter(n=>n!==t)}function Fte(e,t){const n=new Set,r=i=>n.add(i);e.forEach(r),t.forEach(r);const o=[];return n.forEach(i=>o.push(i)),o}class Hte{enter(t){const n=this.entered.length,r=o=>this.isNodeInDocument(o)&&(!o.contains||o.contains(t));return this.entered=Fte(this.entered.filter(r),[t]),n===0&&this.entered.length>0}leave(t){const n=this.entered.length;return this.entered=zte(this.entered.filter(this.isNodeInDocument),t),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class _te{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return null}})})}loadDataTransfer(t){if(t){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const o=this.config.exposeProperties[r];o!=null&&(n[r]={value:o(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,n){return n===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const CN="__NATIVE_FILE__",EN="__NATIVE_URL__",kN="__NATIVE_TEXT__",ON="__NATIVE_HTML__",Jk=Object.freeze(Object.defineProperty({__proto__:null,FILE:CN,HTML:ON,TEXT:kN,URL:EN},Symbol.toStringTag,{value:"Module"}));function Km(e,t,n){const r=t.reduce((o,i)=>o||e.getData(i),"");return r??n}const jb={[CN]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[ON]:{exposeProperties:{html:(e,t)=>Km(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[EN]:{exposeProperties:{urls:(e,t)=>Km(e,t,"").split(`
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[kN]:{exposeProperties:{text:(e,t)=>Km(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Vte(e,t){const n=jb[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new _te(n);return r.loadDataTransfer(t),r}function qm(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(jb).filter(n=>{const r=jb[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(o=>t.indexOf(o)>-1):!1})[0]||null}const Wte=SN(()=>/firefox/i.test(navigator.userAgent)),$N=SN(()=>!!window.safari);class eO{interpolate(t){const{xs:n,ys:r,c1s:o,c2s:i,c3s:a}=this;let s=n.length-1;if(t===n[s])return r[s];let c=0,f=a.length-1,p;for(;c<=f;){p=Math.floor(.5*(c+f));const m=n[p];if(m<t)c=p+1;else if(m>t)f=p-1;else return r[p]}s=Math.max(0,f);const v=t-n[s],g=v*v;return r[s]+o[s]*v+i[s]*g+a[s]*v*g}constructor(t,n){const{length:r}=t,o=[];for(let m=0;m<r;m++)o.push(m);o.sort((m,y)=>t[m]<t[y]?-1:1);const i=[],a=[];let s,c;for(let m=0;m<r-1;m++)s=t[m+1]-t[m],c=n[m+1]-n[m],i.push(s),a.push(c/s);const f=[a[0]];for(let m=0;m<i.length-1;m++){const y=a[m],b=a[m+1];if(y*b<=0)f.push(0);else{s=i[m];const w=i[m+1],S=s+w;f.push(3*S/((S+w)/y+(S+s)/b))}}f.push(a[a.length-1]);const p=[],v=[];let g;for(let m=0;m<f.length-1;m++){g=a[m];const y=f[m],b=1/i[m],w=y+f[m+1]-g-g;p.push((g-y-w)*b),v.push(w*b*b)}this.xs=t,this.ys=n,this.c1s=f,this.c2s=p,this.c3s=v}}const Ute=1;function IN(e){const t=e.nodeType===Ute?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function Jf(e){return{x:e.clientX,y:e.clientY}}function Kte(e){var t;return e.nodeName==="IMG"&&(Wte()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function qte(e,t,n,r){let o=e?t.width:n,i=e?t.height:r;return $N()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}function Xte(e,t,n,r,o){const i=Kte(t),s=IN(i?e:t),c={x:n.x-s.x,y:n.y-s.y},{offsetWidth:f,offsetHeight:p}=e,{anchorX:v,anchorY:g}=r,{dragPreviewWidth:m,dragPreviewHeight:y}=qte(i,t,f,p),b=()=>{let $=new eO([0,.5,1],[c.y,c.y/p*y,c.y+y-p]).interpolate(g);return $N()&&i&&($+=(window.devicePixelRatio-1)*y),$},w=()=>new eO([0,.5,1],[c.x,c.x/f*m,c.x+m-f]).interpolate(v),{offsetX:S,offsetY:C}=o,E=S===0||S,k=C===0||C;return{x:E?S:w(),y:k?C:b()}}let Gte=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,n){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}};function Yte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Yte(e,o,n[o])})}return e}class Qte{profile(){var t,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,n,r){this.sourceNodes.set(t,n),this.sourceNodeOptions.set(t,r);const o=a=>this.handleDragStart(a,t),i=a=>this.handleSelectStart(a);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",o),n.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),n.removeEventListener("dragstart",o),n.removeEventListener("selectstart",i),n.setAttribute("draggable","false")}}connectDropTarget(t,n){const r=a=>this.handleDragEnter(a,t),o=a=>this.handleDragOver(a,t),i=a=>this.handleDrop(a,t);return n.addEventListener("dragenter",r),n.addEventListener("dragover",o),n.addEventListener("drop",i),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",o),n.removeEventListener("drop",i)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(t);return tO({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(t);return tO({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(Jk).some(n=>Jk[n]===t)}beginDragNativeItem(t,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=Vte(t,n),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,n){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(t,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(t,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(t,n){this.dropTargetIds.unshift(n)}constructor(t,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=o=>{const i=this.sourceNodes.get(o);return i&&IN(i)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=o=>!!(o&&this.document&&this.document.body&&this.document.body.contains(o)),this.endDragIfSourceWasRemovedFromDOM=()=>{const o=this.currentDragSourceNode;o==null||this.isNodeInDocument(o)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=o=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(o||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=o=>{if(o.defaultPrevented)return;const{dragStartSourceIds:i}=this;this.dragStartSourceIds=null;const a=Jf(o);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(i||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:s}=o,c=qm(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const p=this.monitor.getSourceId(),v=this.sourceNodes.get(p),g=this.sourcePreviewNodes.get(p)||v;if(g){const{anchorX:m,anchorY:y,offsetX:b,offsetY:w}=this.getCurrentSourcePreviewNodeOptions(),E=Xte(v,g,a,{anchorX:m,anchorY:y},{offsetX:b,offsetY:w});s.setDragImage(g,E.x,E.y)}}try{s==null||s.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(o.target);const{captureDraggingState:f}=this.getCurrentSourcePreviewNodeOptions();f?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(s&&!s.types&&(o.target&&!o.target.hasAttribute||!o.target.hasAttribute("draggable")))return;o.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=o=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(o.dataTransfer)}if(!this.enterLeaveCounter.enter(o.target)||this.monitor.isDragging())return;const{dataTransfer:s}=o,c=qm(s);c&&this.beginDragNativeItem(c,s)},this.handleTopDragEnter=o=>{const{dragEnterTargetIds:i}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=o.altKey,i.length>0&&this.actions.hover(i,{clientOffset:Jf(o)}),i.some(s=>this.monitor.canDropOnTarget(s))&&(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=o=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var i;(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(o.dataTransfer)}},this.handleTopDragOver=o=>{const{dragOverTargetIds:i}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none");return}this.altKeyPressed=o.altKey,this.lastClientOffset=Jf(o),this.scheduleHover(i),(i||[]).some(s=>this.monitor.canDropOnTarget(s))?(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?o.preventDefault():(o.preventDefault(),o.dataTransfer&&(o.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=o=>{this.isDraggingNativeItem()&&o.preventDefault(),this.enterLeaveCounter.leave(o.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=o=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var i;o.preventDefault(),(i=this.currentNativeSource)===null||i===void 0||i.loadDataTransfer(o.dataTransfer)}else qm(o.dataTransfer)&&o.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=o=>{const{dropTargetIds:i}=this;this.dropTargetIds=[],this.actions.hover(i,{clientOffset:Jf(o)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=o=>{const i=o.target;typeof i.dragDrop=="function"&&(i.tagName==="INPUT"||i.tagName==="SELECT"||i.tagName==="TEXTAREA"||i.isContentEditable||(o.preventDefault(),i.dragDrop()))},this.options=new Gte(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new Hte(this.isNodeInDocument)}}let ep;function Zte(){return ep||(ep=new Image,ep.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),ep}const Jte=function(t,n,r){return new Qte(t,n,r)};var xs=[],ene=function(){return xs.some(function(e){return e.activeTargets.length>0})},tne=function(){return xs.some(function(e){return e.skippedTargets.length>0})},nO="ResizeObserver loop completed with undelivered notifications.",nne=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:nO}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=nO),window.dispatchEvent(e)},Ju;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ju||(Ju={}));var Ss=function(e){return Object.freeze(e)},rne=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Ss(this)}return e}(),TN=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ss(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,s=t.left,c=t.width,f=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:s,width:c,height:f}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),zw=function(e){return e instanceof SVGElement&&"getBBox"in e},PN=function(e){if(zw(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},rO=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},one=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Ou=typeof window<"u"?window:{},tp=new WeakMap,oO=/auto|scroll/,ine=/^tb|vertical/,ane=/msie|trident/i.test(Ou.navigator&&Ou.navigator.userAgent),fi=function(e){return parseFloat(e||"0")},Dl=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new rne((n?t:e)||0,(n?e:t)||0)},iO=Ss({devicePixelContentBoxSize:Dl(),borderBoxSize:Dl(),contentBoxSize:Dl(),contentRect:new TN(0,0,0,0)}),MN=function(e,t){if(t===void 0&&(t=!1),tp.has(e)&&!t)return tp.get(e);if(PN(e))return tp.set(e,iO),iO;var n=getComputedStyle(e),r=zw(e)&&e.ownerSVGElement&&e.getBBox(),o=!ane&&n.boxSizing==="border-box",i=ine.test(n.writingMode||""),a=!r&&oO.test(n.overflowY||""),s=!r&&oO.test(n.overflowX||""),c=r?0:fi(n.paddingTop),f=r?0:fi(n.paddingRight),p=r?0:fi(n.paddingBottom),v=r?0:fi(n.paddingLeft),g=r?0:fi(n.borderTopWidth),m=r?0:fi(n.borderRightWidth),y=r?0:fi(n.borderBottomWidth),b=r?0:fi(n.borderLeftWidth),w=v+f,S=c+p,C=b+m,E=g+y,k=s?e.offsetHeight-E-e.clientHeight:0,I=a?e.offsetWidth-C-e.clientWidth:0,$=o?w+C:0,T=o?S+E:0,N=r?r.width:fi(n.width)-$-I,P=r?r.height:fi(n.height)-T-k,D=N+w+I+C,j=P+S+k+E,F=Ss({devicePixelContentBoxSize:Dl(Math.round(N*devicePixelRatio),Math.round(P*devicePixelRatio),i),borderBoxSize:Dl(D,j,i),contentBoxSize:Dl(N,P,i),contentRect:new TN(v,c,N,P)});return tp.set(e,F),F},NN=function(e,t,n){var r=MN(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Ju.DEVICE_PIXEL_CONTENT_BOX:return a;case Ju.BORDER_BOX:return o;default:return i}},sne=function(){function e(t){var n=MN(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Ss([n.borderBoxSize]),this.contentBoxSize=Ss([n.contentBoxSize]),this.devicePixelContentBoxSize=Ss([n.devicePixelContentBoxSize])}return e}(),RN=function(e){if(PN(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},lne=function(){var e=1/0,t=[];xs.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(f){var p=new sne(f.target),v=RN(f.target);s.push(p),f.lastReportedSize=NN(f.target,f.observedBox),v<e&&(e=v)}),t.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},aO=function(e){xs.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(RN(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},cne=function(){var e=0;for(aO(e);ene();)e=lne(),aO(e);return tne()&&nne(),e>0},Xm,DN=[],une=function(){return DN.splice(0).forEach(function(e){return e()})},dne=function(e){if(!Xm){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return une()}).observe(n,r),Xm=function(){n.textContent="".concat(t?t--:t++)}}DN.push(e),Xm()},fne=function(e){dne(function(){requestAnimationFrame(e)})},Tp=0,pne=function(){return!!Tp},vne=250,hne={attributes:!0,characterData:!0,childList:!0,subtree:!0},sO=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],lO=function(e){return e===void 0&&(e=0),Date.now()+e},Gm=!1,gne=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=vne),!Gm){Gm=!0;var r=lO(t);fne(function(){var o=!1;try{o=cne()}finally{if(Gm=!1,t=r-lO(),!pne())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,hne)};document.body?n():Ou.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),sO.forEach(function(n){return Ou.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),sO.forEach(function(n){return Ou.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Lb=new gne,cO=function(e){!Tp&&e>0&&Lb.start(),Tp+=e,!Tp&&Lb.stop()},mne=function(e){return!zw(e)&&!one(e)&&getComputedStyle(e).display==="inline"},bne=function(){function e(t,n){this.target=t,this.observedBox=n||Ju.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=NN(this.target,this.observedBox,!0);return mne(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),yne=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),np=new WeakMap,uO=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},rp=function(){function e(){}return e.connect=function(t,n){var r=new yne(t,n);np.set(t,r)},e.observe=function(t,n,r){var o=np.get(t),i=o.observationTargets.length===0;uO(o.observationTargets,n)<0&&(i&&xs.push(o),o.observationTargets.push(new bne(n,r&&r.box)),cO(1),Lb.schedule())},e.unobserve=function(t,n){var r=np.get(t),o=uO(r.observationTargets,n),i=r.observationTargets.length===1;o>=0&&(i&&xs.splice(xs.indexOf(r),1),r.observationTargets.splice(o,1),cO(-1))},e.disconnect=function(t){var n=this,r=np.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),wne=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");rp.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!rO(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");rp.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!rO(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");rp.unobserve(this,t)},e.prototype.disconnect=function(){rp.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Bb=function(e,t){return Bb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Bb(e,t)};function jN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Bb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Je=function(){return Je=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Je.apply(this,arguments)};function Ao(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function cr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}function wi(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var xne="production",LN=typeof process>"u"||process.env===void 0?xne:"production",Ai=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},ed={measureLayout:Ai(["layout","layoutId","drag"]),animation:Ai(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Ai(["exit"]),drag:Ai(["drag","dragControls"]),focus:Ai(["whileFocus"]),hover:Ai(["whileHover","onHoverStart","onHoverEnd"]),tap:Ai(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Ai(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Ai(["whileInView","onViewportEnter","onViewportLeave"])};function Sne(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?ed.projectionNodeConstructor=e[t]:ed[t].Component=e[t])}var sv=function(){},BN=d.createContext({strict:!1}),AN=Object.keys(ed),Cne=AN.length;function Ene(e,t,n){var r=[],o=d.useContext(BN);if(!t)return null;LN!=="production"&&n&&o.strict;for(var i=0;i<Cne;i++){var a=AN[i],s=ed[a],c=s.isEnabled,f=s.Component;c(e)&&f&&r.push(d.createElement(f,Je({key:a},e,{visualElement:t})))}return r}var Fw=d.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),uh=d.createContext({});function kne(){return d.useContext(uh).visualElement}var dh=d.createContext(null),hc=typeof document<"u",dO=hc?d.useLayoutEffect:d.useEffect,Ab={current:null},zN=!1;function One(){if(zN=!0,!!hc)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Ab.current=e.matches};e.addListener(t),t()}else Ab.current=!1}function $ne(){!zN&&One();var e=cr(d.useState(Ab.current),1),t=e[0];return t}function Ine(){var e=$ne(),t=d.useContext(Fw).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function Tne(e,t,n,r){var o=d.useContext(BN),i=kne(),a=d.useContext(dh),s=Ine(),c=d.useRef(void 0);r||(r=o.renderer),!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceId:a==null?void 0:a.id,blockInitialAnimation:(a==null?void 0:a.initial)===!1,shouldReduceMotion:s}));var f=c.current;return dO(function(){f==null||f.syncRender()}),d.useEffect(function(){var p;(p=f==null?void 0:f.animationState)===null||p===void 0||p.animateChanges()}),dO(function(){return function(){return f==null?void 0:f.notifyUnmount()}},[]),f}function $l(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Pne(e,t,n){return d.useCallback(function(r){var o;r&&((o=e.mount)===null||o===void 0||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):$l(n)&&(n.current=r))},[t])}function FN(e){return Array.isArray(e)}function Yo(e){return typeof e=="string"||FN(e)}function Mne(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function Nne(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function HN(e,t,n,r,o){var i;return r===void 0&&(r={}),o===void 0&&(o={}),typeof t=="function"&&(t=t(n??e.custom,r,o)),typeof t=="string"&&(t=(i=e.variants)===null||i===void 0?void 0:i[t]),typeof t=="function"&&(t=t(n??e.custom,r,o)),t}function fh(e,t,n){var r=e.getProps();return HN(r,t,n??r.custom,Mne(e),Nne(e))}function ph(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||Yo(e.initial)||Yo(e.animate)||Yo(e.whileHover)||Yo(e.whileDrag)||Yo(e.whileTap)||Yo(e.whileFocus)||Yo(e.exit)}function _N(e){return!!(ph(e)||e.variants)}function Rne(e,t){if(ph(e)){var n=e.initial,r=e.animate;return{initial:n===!1||Yo(n)?n:void 0,animate:Yo(r)?r:void 0}}return e.inherit!==!1?t:{}}function Dne(e){var t=Rne(e,d.useContext(uh)),n=t.initial,r=t.animate;return d.useMemo(function(){return{initial:n,animate:r}},[fO(n),fO(r)])}function fO(e){return Array.isArray(e)?e.join(" "):e}function vh(e){var t=d.useRef(null);return t.current===null&&(t.current=e()),t.current}var $u={hasAnimatedSinceResize:!0,hasEverUpdated:!1},jne=1;function Lne(){return vh(function(){if($u.hasEverUpdated)return jne++})}var VN=d.createContext({}),WN=d.createContext({});function Bne(e,t,n,r){var o,i=t.layoutId,a=t.layout,s=t.drag,c=t.dragConstraints,f=t.layoutScroll,p=d.useContext(WN);!r||!n||n!=null&&n.projection||(n.projection=new r(e,n.getLatestValues(),(o=n.parent)===null||o===void 0?void 0:o.projection),n.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||c&&$l(c),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof a=="string"?a:"both",initialPromotionConfig:p,layoutScroll:f}))}var Ane=function(e){jN(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var n=this.props,r=n.visualElement,o=n.props;r&&r.setProps(o)},t.prototype.render=function(){return this.props.children},t}(de.Component);function zne(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,o=e.useRender,i=e.useVisualState,a=e.Component;t&&Sne(t);function s(c,f){var p=Fne(c);c=Je(Je({},c),{layoutId:p});var v=d.useContext(Fw),g=null,m=Dne(c),y=v.isStatic?void 0:Lne(),b=i(c,v.isStatic);return!v.isStatic&&hc&&(m.visualElement=Tne(a,b,Je(Je({},v),c),n),Bne(y,c,m.visualElement,r||ed.projectionNodeConstructor),g=Ene(c,m.visualElement,t)),d.createElement(Ane,{visualElement:m.visualElement,props:Je(Je({},v),c)},g,d.createElement(uh.Provider,{value:m},o(a,c,y,Pne(b,m.visualElement,f),b,v.isStatic,m.visualElement)))}return d.forwardRef(s)}function Fne(e){var t,n=e.layoutId,r=(t=d.useContext(VN))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+"-"+n:n}function Hne(e){function t(r,o){return o===void 0&&(o={}),zne(e(r,o))}if(typeof Proxy>"u")return t;var n=new Map;return new Proxy(t,{get:function(r,o){return n.has(o)||n.set(o,t(o)),n.get(o)}})}var _ne=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Hw(e){return typeof e!="string"||e.includes("-")?!1:!!(_ne.indexOf(e)>-1||/[A-Z]/.test(e))}var lv={};function Vne(e){Object.assign(lv,e)}var zb=["","X","Y","Z"],Wne=["translate","scale","rotate","skew"],td=["transformPerspective","x","y","z"];Wne.forEach(function(e){return zb.forEach(function(t){return td.push(e+t)})});function Une(e,t){return td.indexOf(e)-td.indexOf(t)}var Kne=new Set(td);function $d(e){return Kne.has(e)}var qne=new Set(["originX","originY","originZ"]);function UN(e){return qne.has(e)}function KN(e,t){var n=t.layout,r=t.layoutId;return $d(e)||UN(e)||(n||r!==void 0)&&(!!lv[e]||e==="opacity")}var Gi=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},Xne={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Gne(e,t,n,r){var o=e.transform,i=e.transformKeys,a=t.enableHardwareAcceleration,s=a===void 0?!0:a,c=t.allowTransformNone,f=c===void 0?!0:c,p="";i.sort(Une);for(var v=!1,g=i.length,m=0;m<g;m++){var y=i[m];p+="".concat(Xne[y]||y,"(").concat(o[y],") "),y==="z"&&(v=!0)}return!v&&s?p+="translateZ(0)":p=p.trim(),r?p=r(o,n?"":p):f&&n&&(p="none"),p}function Yne(e){var t=e.originX,n=t===void 0?"50%":t,r=e.originY,o=r===void 0?"50%":r,i=e.originZ,a=i===void 0?0:i;return"".concat(n," ").concat(o," ").concat(a)}function qN(e){return e.startsWith("--")}var Qne=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const XN=(e,t)=>n=>Math.max(Math.min(n,t),e),Iu=e=>e%1?Number(e.toFixed(5)):e,nd=/(-)?([\d]*\.?[\d])+/g,Fb=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Zne=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Id(e){return typeof e=="string"}const Ls={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Tu=Object.assign(Object.assign({},Ls),{transform:XN(0,1)}),op=Object.assign(Object.assign({},Ls),{default:1}),Td=e=>({test:t=>Id(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ca=Td("deg"),xi=Td("%"),Ht=Td("px"),Jne=Td("vh"),ere=Td("vw"),pO=Object.assign(Object.assign({},xi),{parse:e=>xi.parse(e)/100,transform:e=>xi.transform(e*100)}),_w=(e,t)=>n=>!!(Id(n)&&Zne.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),GN=(e,t,n)=>r=>{if(!Id(r))return r;const[o,i,a,s]=r.match(nd);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},ms={test:_w("hsl","hue"),parse:GN("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+xi.transform(Iu(t))+", "+xi.transform(Iu(n))+", "+Iu(Tu.transform(r))+")"},tre=XN(0,255),Ym=Object.assign(Object.assign({},Ls),{transform:e=>Math.round(tre(e))}),Ma={test:_w("rgb","red"),parse:GN("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ym.transform(e)+", "+Ym.transform(t)+", "+Ym.transform(n)+", "+Iu(Tu.transform(r))+")"};function nre(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Hb={test:_w("#"),parse:nre,transform:Ma.transform},Lr={test:e=>Ma.test(e)||Hb.test(e)||ms.test(e),parse:e=>Ma.test(e)?Ma.parse(e):ms.test(e)?ms.parse(e):Hb.parse(e),transform:e=>Id(e)?e:e.hasOwnProperty("red")?Ma.transform(e):ms.transform(e)},YN="${c}",QN="${n}";function rre(e){var t,n,r,o;return isNaN(e)&&Id(e)&&((n=(t=e.match(nd))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((o=(r=e.match(Fb))===null||r===void 0?void 0:r.length)!==null&&o!==void 0?o:0)>0}function ZN(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(Fb);r&&(n=r.length,e=e.replace(Fb,YN),t.push(...r.map(Lr.parse)));const o=e.match(nd);return o&&(e=e.replace(nd,QN),t.push(...o.map(Ls.parse))),{values:t,numColors:n,tokenised:e}}function JN(e){return ZN(e).values}function eR(e){const{values:t,numColors:n,tokenised:r}=ZN(e),o=t.length;return i=>{let a=r;for(let s=0;s<o;s++)a=a.replace(s<n?YN:QN,s<n?Lr.transform(i[s]):Iu(i[s]));return a}}const ore=e=>typeof e=="number"?0:e;function ire(e){const t=JN(e);return eR(e)(t.map(ore))}const Yi={test:rre,parse:JN,createTransformer:eR,getAnimatableNone:ire},are=new Set(["brightness","contrast","saturate","opacity"]);function sre(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(nd)||[];if(!r)return e;const o=n.replace(r,"");let i=are.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const lre=/([a-z-]*)\(.*?\)/g,_b=Object.assign(Object.assign({},Yi),{getAnimatableNone:e=>{const t=e.match(lre);return t?t.map(sre).join(" "):e}});var vO=Je(Je({},Ls),{transform:Math.round}),tR={borderWidth:Ht,borderTopWidth:Ht,borderRightWidth:Ht,borderBottomWidth:Ht,borderLeftWidth:Ht,borderRadius:Ht,radius:Ht,borderTopLeftRadius:Ht,borderTopRightRadius:Ht,borderBottomRightRadius:Ht,borderBottomLeftRadius:Ht,width:Ht,maxWidth:Ht,height:Ht,maxHeight:Ht,size:Ht,top:Ht,right:Ht,bottom:Ht,left:Ht,padding:Ht,paddingTop:Ht,paddingRight:Ht,paddingBottom:Ht,paddingLeft:Ht,margin:Ht,marginTop:Ht,marginRight:Ht,marginBottom:Ht,marginLeft:Ht,rotate:Ca,rotateX:Ca,rotateY:Ca,rotateZ:Ca,scale:op,scaleX:op,scaleY:op,scaleZ:op,skew:Ca,skewX:Ca,skewY:Ca,distance:Ht,translateX:Ht,translateY:Ht,translateZ:Ht,x:Ht,y:Ht,z:Ht,perspective:Ht,transformPerspective:Ht,opacity:Tu,originX:pO,originY:pO,originZ:Ht,zIndex:vO,fillOpacity:Tu,strokeOpacity:Tu,numOctaves:vO};function Vw(e,t,n,r){var o,i=e.style,a=e.vars,s=e.transform,c=e.transformKeys,f=e.transformOrigin;c.length=0;var p=!1,v=!1,g=!0;for(var m in t){var y=t[m];if(qN(m)){a[m]=y;continue}var b=tR[m],w=Qne(y,b);if($d(m)){if(p=!0,s[m]=w,c.push(m),!g)continue;y!==((o=b.default)!==null&&o!==void 0?o:0)&&(g=!1)}else UN(m)?(f[m]=w,v=!0):i[m]=w}p?i.transform=Gne(e,n,g,r):r?i.transform=r({},""):!t.transform&&i.transform&&(i.transform="none"),v&&(i.transformOrigin=Yne(f))}var Ww=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function nR(e,t,n){for(var r in t)!Gi(t[r])&&!KN(r,n)&&(e[r]=t[r])}function cre(e,t,n){var r=e.transformTemplate;return d.useMemo(function(){var o=Ww();Vw(o,t,{enableHardwareAcceleration:!n},r);var i=o.vars,a=o.style;return Je(Je({},i),a)},[t])}function ure(e,t,n){var r=e.style||{},o={};return nR(o,r,e),Object.assign(o,cre(e,t,n)),e.transformValues&&(o=e.transformValues(o)),o}function dre(e,t,n){var r={},o=ure(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":"pan-".concat(e.drag==="x"?"y":"x")),r.style=o,r}var fre=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function cv(e){return fre.has(e)}var rR=function(e){return!cv(e)};function pre(e){e&&(rR=function(t){return t.startsWith("on")?!cv(t):e(t)})}try{pre(require("@emotion/is-prop-valid").default)}catch{}function vre(e,t,n){var r={};for(var o in e)(rR(o)||n===!0&&cv(o)||!t&&!cv(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}function hO(e,t,n){return typeof e=="string"?e:Ht.transform(t+n*e)}function hre(e,t,n){var r=hO(t,e.x,e.width),o=hO(n,e.y,e.height);return"".concat(r," ").concat(o)}var gre={offset:"stroke-dashoffset",array:"stroke-dasharray"},mre={offset:"strokeDashoffset",array:"strokeDasharray"};function bre(e,t,n,r,o){n===void 0&&(n=1),r===void 0&&(r=0),o===void 0&&(o=!0),e.pathLength=1;var i=o?gre:mre;e[i.offset]=Ht.transform(-r);var a=Ht.transform(t),s=Ht.transform(n);e[i.array]="".concat(a," ").concat(s)}function Uw(e,t,n,r){var o=t.attrX,i=t.attrY,a=t.originX,s=t.originY,c=t.pathLength,f=t.pathSpacing,p=f===void 0?1:f,v=t.pathOffset,g=v===void 0?0:v,m=Ao(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);Vw(e,m,n,r),e.attrs=e.style,e.style={};var y=e.attrs,b=e.style,w=e.dimensions;y.transform&&(w&&(b.transform=y.transform),delete y.transform),w&&(a!==void 0||s!==void 0||b.transform)&&(b.transformOrigin=hre(w,a!==void 0?a:.5,s!==void 0?s:.5)),o!==void 0&&(y.x=o),i!==void 0&&(y.y=i),c!==void 0&&bre(y,c,p,g,!1)}var oR=function(){return Je(Je({},Ww()),{attrs:{}})};function yre(e,t){var n=d.useMemo(function(){var o=oR();return Uw(o,t,{enableHardwareAcceleration:!1},e.transformTemplate),Je(Je({},o.attrs),{style:Je({},o.style)})},[t]);if(e.style){var r={};nR(r,e.style,e),n.style=Je(Je({},r),n.style)}return n}function wre(e){e===void 0&&(e=!1);var t=function(n,r,o,i,a,s){var c=a.latestValues,f=Hw(n)?yre:dre,p=f(r,c,s),v=vre(r,typeof n=="string",e),g=Je(Je(Je({},v),p),{ref:i});return o&&(g["data-projection-id"]=o),d.createElement(n,g)};return t}var xre=/([a-z])([A-Z])/g,Sre="$1-$2",iR=function(e){return e.replace(xre,Sre).toLowerCase()};function aR(e,t,n,r){var o=t.style,i=t.vars;Object.assign(e.style,o,r&&r.getProjectionStyles(n));for(var a in i)e.style.setProperty(a,i[a])}var sR=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function lR(e,t,n,r){aR(e,t,void 0,r);for(var o in t.attrs)e.setAttribute(sR.has(o)?o:iR(o),t.attrs[o])}function Kw(e){var t=e.style,n={};for(var r in t)(Gi(t[r])||KN(r,e))&&(n[r]=t[r]);return n}function cR(e){var t=Kw(e);for(var n in e)if(Gi(e[n])){var r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function qw(e){return typeof e=="object"&&typeof e.start=="function"}var rd=function(e){return Array.isArray(e)},Cre=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},uR=function(e){return rd(e)?e[e.length-1]||0:e};function Pp(e){var t=Gi(e)?e.get():e;return Cre(t)?t.toValue():t}function gO(e,t,n,r){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,s={latestValues:Ere(t,n,r,o),renderState:i()};return a&&(s.mount=function(c){return a(t,c,s)}),s}var dR=function(e){return function(t,n){var r=d.useContext(uh),o=d.useContext(dh);return n?gO(e,t,r,o):vh(function(){return gO(e,t,r,o)})}};function Ere(e,t,n,r){var o={},i=(n==null?void 0:n.initial)===!1,a=r(e);for(var s in a)o[s]=Pp(a[s]);var c=e.initial,f=e.animate,p=ph(e),v=_N(e);t&&v&&!p&&e.inherit!==!1&&(c??(c=t.initial),f??(f=t.animate));var g=i||c===!1,m=g?f:c;if(m&&typeof m!="boolean"&&!qw(m)){var y=Array.isArray(m)?m:[m];y.forEach(function(b){var w=HN(e,b);if(w){var S=w.transitionEnd;w.transition;var C=Ao(w,["transitionEnd","transition"]);for(var E in C){var k=C[E];if(Array.isArray(k)){var I=g?k.length-1:0;k=k[I]}k!==null&&(o[E]=k)}for(var E in S)o[E]=S[E]}})}return o}var kre={useVisualState:dR({scrapeMotionValuesFromProps:cR,createRenderState:oR,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}Uw(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),lR(t,r)}})},Ore={useVisualState:dR({scrapeMotionValuesFromProps:Kw,createRenderState:Ww})};function $re(e,t,n,r,o){var i=t.forwardMotionProps,a=i===void 0?!1:i,s=Hw(e)?kre:Ore;return Je(Je({},s),{preloadedFeatures:n,useRender:wre(a),createVisualElement:r,projectionNodeConstructor:o,Component:e})}var On;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(On||(On={}));function hh(e,t,n,r){return r===void 0&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Vb(e,t,n,r){d.useEffect(function(){var o=e.current;if(n&&o)return hh(o,t,n,r)},[e,t,n,r])}function Ire(e){var t=e.whileFocus,n=e.visualElement,r=function(){var i;(i=n.animationState)===null||i===void 0||i.setActive(On.Focus,!0)},o=function(){var i;(i=n.animationState)===null||i===void 0||i.setActive(On.Focus,!1)};Vb(n,"focus",t?r:void 0),Vb(n,"blur",t?o:void 0)}function fR(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function pR(e){var t=!!e.touches;return t}function Tre(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var Pre={pageX:0,pageY:0};function Mre(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||Pre;return{x:r[t+"X"],y:r[t+"Y"]}}function Nre(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Xw(e,t){return t===void 0&&(t="page"),{point:pR(e)?Mre(e,t):Nre(e,t)}}var vR=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,Xw(r))};return t?Tre(n):n},Rre=function(){return hc&&window.onpointerdown===null},Dre=function(){return hc&&window.ontouchstart===null},jre=function(){return hc&&window.onmousedown===null},Lre={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Bre={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function hR(e){return Rre()?e:Dre()?Bre[e]:jre()?Lre[e]:e}function jl(e,t,n,r){return hh(e,hR(t),vR(n,t==="pointerdown"),r)}function uv(e,t,n,r){return Vb(e,hR(t),n&&vR(n,t==="pointerdown"),r)}function gR(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var mO=gR("dragHorizontal"),bO=gR("dragVertical");function mR(e){var t=!1;if(e==="y")t=bO();else if(e==="x")t=mO();else{var n=mO(),r=bO();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function bR(){var e=mR(!0);return e?(e(),!1):!0}function yO(e,t,n){return function(r,o){var i;!fR(r)||bR()||((i=e.animationState)===null||i===void 0||i.setActive(On.Hover,t),n==null||n(r,o))}}function Are(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;uv(o,"pointerenter",t||r?yO(o,!0,t):void 0,{passive:!t}),uv(o,"pointerleave",n||r?yO(o,!1,n):void 0,{passive:!n})}var yR=function(e,t){return t?e===t?!0:yR(e,t.parentElement):!1};function wR(e){return d.useEffect(function(){return function(){return e()}},[])}const dv=(e,t,n)=>Math.min(Math.max(n,e),t),Qm=.001,zre=.01,Fre=10,Hre=.05,_re=1;function Vre({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,a=1-t;a=dv(Hre,_re,a),e=dv(zre,Fre,e/1e3),a<1?(o=f=>{const p=f*a,v=p*e,g=p-n,m=Wb(f,a),y=Math.exp(-v);return Qm-g/m*y},i=f=>{const v=f*a*e,g=v*n+n,m=Math.pow(a,2)*Math.pow(f,2)*e,y=Math.exp(-v),b=Wb(Math.pow(f,2),a);return(-o(f)+Qm>0?-1:1)*((g-m)*y)/b}):(o=f=>{const p=Math.exp(-f*e),v=(f-n)*e+1;return-Qm+p*v},i=f=>{const p=Math.exp(-f*e),v=(n-f)*(e*e);return p*v});const s=5/e,c=Ure(o,i,s);if(e*=1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{const f=Math.pow(c,2)*r;return{stiffness:f,damping:a*2*Math.sqrt(r*f),duration:e}}}const Wre=12;function Ure(e,t,n){let r=n;for(let o=1;o<Wre;o++)r-=e(r)/t(r);return r}function Wb(e,t){return e*Math.sqrt(1-t*t)}const Kre=["duration","bounce"],qre=["stiffness","damping","mass"];function wO(e,t){return t.some(n=>e[n]!==void 0)}function Xre(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!wO(e,qre)&&wO(e,Kre)){const n=Vre(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Gw(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,i=Ao(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:c,mass:f,velocity:p,duration:v,isResolvedFromDuration:g}=Xre(i),m=xO,y=xO;function b(){const w=p?-p/1e3:0,S=n-t,C=c/(2*Math.sqrt(s*f)),E=Math.sqrt(s/f)/1e3;if(o===void 0&&(o=Math.min(Math.abs(n-t)/100,.4)),C<1){const k=Wb(E,C);m=I=>{const $=Math.exp(-C*E*I);return n-$*((w+C*E*S)/k*Math.sin(k*I)+S*Math.cos(k*I))},y=I=>{const $=Math.exp(-C*E*I);return C*E*$*(Math.sin(k*I)*(w+C*E*S)/k+S*Math.cos(k*I))-$*(Math.cos(k*I)*(w+C*E*S)-k*S*Math.sin(k*I))}}else if(C===1)m=k=>n-Math.exp(-E*k)*(S+(w+E*S)*k);else{const k=E*Math.sqrt(C*C-1);m=I=>{const $=Math.exp(-C*E*I),T=Math.min(k*I,300);return n-$*((w+C*E*S)*Math.sinh(T)+k*S*Math.cosh(T))/k}}}return b(),{next:w=>{const S=m(w);if(g)a.done=w>=v;else{const C=y(w)*1e3,E=Math.abs(C)<=r,k=Math.abs(n-S)<=o;a.done=E&&k}return a.value=a.done?n:S,a},flipTarget:()=>{p=-p,[t,n]=[n,t],b()}}}Gw.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const xO=e=>0,od=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Kn=(e,t,n)=>-n*e+n*t+e;function Zm(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function SO({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;o=Zm(c,s,e+1/3),i=Zm(c,s,e),a=Zm(c,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}const Gre=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},Yre=[Hb,Ma,ms],CO=e=>Yre.find(t=>t.test(e)),xR=(e,t)=>{let n=CO(e),r=CO(t),o=n.parse(e),i=r.parse(t);n===ms&&(o=SO(o),n=Ma),r===ms&&(i=SO(i),r=Ma);const a=Object.assign({},o);return s=>{for(const c in a)c!=="alpha"&&(a[c]=Gre(o[c],i[c],s));return a.alpha=Kn(o.alpha,i.alpha,s),n.transform(a)}},Ub=e=>typeof e=="number",Qre=(e,t)=>n=>t(e(n)),gh=(...e)=>e.reduce(Qre);function SR(e,t){return Ub(e)?n=>Kn(e,t,n):Lr.test(e)?xR(e,t):ER(e,t)}const CR=(e,t)=>{const n=[...e],r=n.length,o=e.map((i,a)=>SR(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}},Zre=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=SR(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}};function EO(e){const t=Yi.parse(e),n=t.length;let r=0,o=0,i=0;for(let a=0;a<n;a++)r||typeof t[a]=="number"?r++:t[a].hue!==void 0?i++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:i}}const ER=(e,t)=>{const n=Yi.createTransformer(t),r=EO(e),o=EO(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?gh(CR(r.parsed,o.parsed),n):a=>`${a>0?t:e}`},Jre=(e,t)=>n=>Kn(e,t,n);function eoe(e){if(typeof e=="number")return Jre;if(typeof e=="string")return Lr.test(e)?xR:ER;if(Array.isArray(e))return CR;if(typeof e=="object")return Zre}function toe(e,t,n){const r=[],o=n||eoe(e[0]),i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]:t;s=gh(c,s)}r.push(s)}return r}function noe([e,t],[n]){return r=>n(od(e,t,r))}function roe(e,t){const n=e.length,r=n-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[r]&&(i=r-1,a=!0),!a){let c=1;for(;c<n&&!(e[c]>o||c===r);c++);i=c-1}const s=od(e[i],e[i+1],o);return t[i](s)}}function kR(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;sv(i===t.length),sv(!r||!Array.isArray(r)||r.length===i-1),e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=toe(t,r,o),s=i===2?noe(e,a):roe(e,a);return n?c=>s(dv(e[0],e[i-1],c)):s}const mh=e=>t=>1-e(1-t),Yw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ooe=e=>t=>Math.pow(t,e),OR=e=>t=>t*t*((e+1)*t-e),ioe=e=>{const t=OR(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},$R=1.525,aoe=4/11,soe=8/11,loe=9/10,Qw=e=>e,Zw=ooe(2),coe=mh(Zw),IR=Yw(Zw),TR=e=>1-Math.sin(Math.acos(e)),Jw=mh(TR),uoe=Yw(Jw),e1=OR($R),doe=mh(e1),foe=Yw(e1),poe=ioe($R),voe=4356/361,hoe=35442/1805,goe=16061/1805,fv=e=>{if(e===1||e===0)return e;const t=e*e;return e<aoe?7.5625*t:e<soe?9.075*t-9.9*e+3.4:e<loe?voe*t-hoe*e+goe:10.8*e*e-20.52*e+10.72},moe=mh(fv),boe=e=>e<.5?.5*(1-fv(1-e*2)):.5*fv(e*2-1)+.5;function yoe(e,t){return e.map(()=>t||IR).splice(0,e.length-1)}function woe(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function xoe(e,t){return e.map(n=>n*t)}function Mp({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=xoe(r&&r.length===a.length?r:woe(a),o);function c(){return kR(s,a,{ease:Array.isArray(n)?n:yoe(a,n)})}let f=c();return{next:p=>(i.value=f(p),i.done=p>=o,i),flipTarget:()=>{a.reverse(),f=c()}}}function Soe({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let s=n*e;const c=t+s,f=i===void 0?c:i(c);return f!==c&&(s=f-t),{next:p=>{const v=-s*Math.exp(-p/r);return a.done=!(v>o||v<-o),a.value=a.done?f:f+v,a},flipTarget:()=>{}}}const kO={keyframes:Mp,spring:Gw,decay:Soe};function Coe(e){if(Array.isArray(e.to))return Mp;if(kO[e.type])return kO[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Mp:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Gw:Mp}const PR=1/60*1e3,Eoe=typeof performance<"u"?()=>performance.now():()=>Date.now(),MR=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Eoe()),PR);function koe(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(c,f=!1,p=!1)=>{const v=p&&o,g=v?t:n;return f&&a.add(c),g.indexOf(c)===-1&&(g.push(c),v&&o&&(r=t.length)),c},cancel:c=>{const f=n.indexOf(c);f!==-1&&n.splice(f,1),a.delete(c)},process:c=>{if(o){i=!0;return}if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let f=0;f<r;f++){const p=t[f];p(c),a.has(p)&&(s.schedule(p),e())}o=!1,i&&(i=!1,s.process(c))}};return s}const Ooe=40;let Kb=!0,id=!1,qb=!1;const Ll={delta:0,timestamp:0},Pd=["read","update","preRender","render","postRender"],bh=Pd.reduce((e,t)=>(e[t]=koe(()=>id=!0),e),{}),Si=Pd.reduce((e,t)=>{const n=bh[t];return e[t]=(r,o=!1,i=!1)=>(id||Ioe(),n.schedule(r,o,i)),e},{}),Zl=Pd.reduce((e,t)=>(e[t]=bh[t].cancel,e),{}),Jm=Pd.reduce((e,t)=>(e[t]=()=>bh[t].process(Ll),e),{}),$oe=e=>bh[e].process(Ll),NR=e=>{id=!1,Ll.delta=Kb?PR:Math.max(Math.min(e-Ll.timestamp,Ooe),1),Ll.timestamp=e,qb=!0,Pd.forEach($oe),qb=!1,id&&(Kb=!1,MR(NR))},Ioe=()=>{id=!0,Kb=!0,qb||MR(NR)},pv=()=>Ll;function RR(e,t,n=0){return e-t-n}function Toe(e,t,n=0,r=!0){return r?RR(t+-e,t,n):t-(e-t)+n}function Poe(e,t,n,r){return r?e>=t+n:e<=-n}const Moe=e=>{const t=({delta:n})=>e(n);return{start:()=>Si.update(t,!0),stop:()=>Zl.update(t)}};function DR(e){var t,n,{from:r,autoplay:o=!0,driver:i=Moe,elapsed:a=0,repeat:s=0,repeatType:c="loop",repeatDelay:f=0,onPlay:p,onStop:v,onComplete:g,onRepeat:m,onUpdate:y}=e,b=Ao(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:w}=b,S,C=0,E=b.duration,k,I=!1,$=!0,T;const N=Coe(b);!((n=(t=N).needsInterpolation)===null||n===void 0)&&n.call(t,r,w)&&(T=kR([0,100],[r,w],{clamp:!1}),r=0,w=100);const P=N(Object.assign(Object.assign({},b),{from:r,to:w}));function D(){C++,c==="reverse"?($=C%2===0,a=Toe(a,E,f,$)):(a=RR(a,E,f),c==="mirror"&&P.flipTarget()),I=!1,m&&m()}function j(){S.stop(),g&&g()}function F(B){if($||(B=-B),a+=B,!I){const _=P.next(Math.max(0,a));k=_.value,T&&(k=T(k)),I=$?_.done:a<=0}y==null||y(k),I&&(C===0&&(E??(E=a)),C<s?Poe(a,E,f,$)&&D():j())}function z(){p==null||p(),S=i(F),S.start()}return o&&z(),{stop:()=>{v==null||v(),S.stop()}}}function jR(e,t){return t?e*(1e3/t):0}function Noe({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:c=1,modifyTarget:f,driver:p,onUpdate:v,onComplete:g,onStop:m}){let y;function b(E){return n!==void 0&&E<n||r!==void 0&&E>r}function w(E){return n===void 0?r:r===void 0||Math.abs(n-E)<Math.abs(r-E)?n:r}function S(E){y==null||y.stop(),y=DR(Object.assign(Object.assign({},E),{driver:p,onUpdate:k=>{var I;v==null||v(k),(I=E.onUpdate)===null||I===void 0||I.call(E,k)},onComplete:g,onStop:m}))}function C(E){S(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:c},E))}if(b(e))C({from:e,velocity:t,to:w(e)});else{let E=o*t+e;typeof f<"u"&&(E=f(E));const k=w(E),I=k===n?-1:1;let $,T;const N=P=>{$=T,T=P,t=jR(P-$,pv().delta),(I===1&&P>k||I===-1&&P<k)&&C({from:P,to:k,velocity:t})};S({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:c,modifyTarget:f,onUpdate:b(E)?N:void 0})}return{stop:()=>y==null?void 0:y.stop()}}const Xb=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),OO=e=>Xb(e)&&e.hasOwnProperty("z"),ip=(e,t)=>Math.abs(e-t);function LR(e,t){if(Ub(e)&&Ub(t))return ip(e,t);if(Xb(e)&&Xb(t)){const n=ip(e.x,t.x),r=ip(e.y,t.y),o=OO(e)&&OO(t)?ip(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}const BR=(e,t)=>1-3*t+3*e,AR=(e,t)=>3*t-6*e,zR=e=>3*e,vv=(e,t,n)=>((BR(t,n)*e+AR(t,n))*e+zR(t))*e,FR=(e,t,n)=>3*BR(t,n)*e*e+2*AR(t,n)*e+zR(t),Roe=1e-7,Doe=10;function joe(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=vv(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>Roe&&++s<Doe);return a}const Loe=8,Boe=.001;function Aoe(e,t,n,r){for(let o=0;o<Loe;++o){const i=FR(t,n,r);if(i===0)return t;const a=vv(t,n,r)-e;t-=a/i}return t}const Np=11,ap=1/(Np-1);function zoe(e,t,n,r){if(e===t&&n===r)return Qw;const o=new Float32Array(Np);for(let a=0;a<Np;++a)o[a]=vv(a*ap,e,n);function i(a){let s=0,c=1;const f=Np-1;for(;c!==f&&o[c]<=a;++c)s+=ap;--c;const p=(a-o[c])/(o[c+1]-o[c]),v=s+p*ap,g=FR(v,e,n);return g>=Boe?Aoe(a,v,e,n):g===0?v:joe(a,s,s+ap,e,n)}return a=>a===0||a===1?a:vv(i(a),t,r)}function Foe(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.whileTap,i=e.visualElement,a=t||n||r||o,s=d.useRef(!1),c=d.useRef(null),f={passive:!(n||t||r||y)};function p(){var b;(b=c.current)===null||b===void 0||b.call(c),c.current=null}function v(){var b;return p(),s.current=!1,(b=i.animationState)===null||b===void 0||b.setActive(On.Tap,!1),!bR()}function g(b,w){v()&&(yR(i.getInstance(),b.target)?t==null||t(b,w):r==null||r(b,w))}function m(b,w){v()&&(r==null||r(b,w))}function y(b,w){var S;p(),!s.current&&(s.current=!0,c.current=gh(jl(window,"pointerup",g,f),jl(window,"pointercancel",m,f)),(S=i.animationState)===null||S===void 0||S.setActive(On.Tap,!0),n==null||n(b,w))}uv(i,"pointerdown",a?y:void 0,f),wR(p)}var $O=new Set;function Hoe(e,t,n){e||$O.has(t)||$O.add(t)}var Gb=new WeakMap,e0=new WeakMap,_oe=function(e){var t;(t=Gb.get(e.target))===null||t===void 0||t(e)},Voe=function(e){e.forEach(_oe)};function Woe(e){var t=e.root,n=Ao(e,["root"]),r=t||document;e0.has(r)||e0.set(r,{});var o=e0.get(r),i=JSON.stringify(n);return o[i]||(o[i]=new IntersectionObserver(Voe,Je({root:t},n))),o[i]}function Uoe(e,t,n){var r=Woe(t);return Gb.set(e,n),r.observe(e),function(){Gb.delete(e),r.unobserve(e)}}function Koe(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,o=e.onViewportLeave,i=e.viewport,a=i===void 0?{}:i,s=d.useRef({hasEnteredView:!1,isInView:!1}),c=!!(n||r||o);a.once&&s.current.hasEnteredView&&(c=!1);var f=typeof IntersectionObserver>"u"?Goe:Xoe;f(c,s.current,t,a)}var qoe={some:0,all:1};function Xoe(e,t,n,r){var o=r.root,i=r.margin,a=r.amount,s=a===void 0?"some":a,c=r.once;d.useEffect(function(){if(e){var f={root:o==null?void 0:o.current,rootMargin:i,threshold:typeof s=="number"?s:qoe[s]},p=function(v){var g,m=v.isIntersecting;if(t.isInView!==m&&(t.isInView=m,!(c&&!m&&t.hasEnteredView))){m&&(t.hasEnteredView=!0),(g=n.animationState)===null||g===void 0||g.setActive(On.InView,m);var y=n.getProps(),b=m?y.onViewportEnter:y.onViewportLeave;b==null||b(v)}};return Uoe(n.getInstance(),f,p)}},[e,o,i,s])}function Goe(e,t,n,r){var o=r.fallback,i=o===void 0?!0:o;d.useEffect(function(){!e||!i||(LN!=="production"&&Hoe(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var a;t.hasEnteredView=!0;var s=n.getProps().onViewportEnter;s==null||s(null),(a=n.animationState)===null||a===void 0||a.setActive(On.InView,!0)}))},[e])}var Na=function(e){return function(t){return e(t),null}},Yoe={inView:Na(Koe),tap:Na(Foe),focus:Na(Ire),hover:Na(Are)},Qoe=0,Zoe=function(){return Qoe++},Joe=function(){return vh(Zoe)};function HR(){var e=d.useContext(dh);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=Joe();d.useEffect(function(){return r(o)},[]);var i=function(){return n==null?void 0:n(o)};return!t&&n?[!1,i]:[!0]}function _R(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var hv=function(e){return e*1e3},eie={linear:Qw,easeIn:Zw,easeInOut:IR,easeOut:coe,circIn:TR,circInOut:uoe,circOut:Jw,backIn:e1,backInOut:foe,backOut:doe,anticipate:poe,bounceIn:moe,bounceInOut:boe,bounceOut:fv},IO=function(e){if(Array.isArray(e)){sv(e.length===4);var t=cr(e,4),n=t[0],r=t[1],o=t[2],i=t[3];return zoe(n,r,o,i)}else if(typeof e=="string")return eie[e];return e},tie=function(e){return Array.isArray(e)&&typeof e[0]!="number"},TO=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Yi.test(t)&&!t.startsWith("url("))},is=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},sp=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},t0=function(){return{type:"keyframes",ease:"linear",duration:.3}},nie=function(e){return{type:"keyframes",duration:.8,values:e}},PO={x:is,y:is,z:is,rotate:is,rotateX:is,rotateY:is,rotateZ:is,scaleX:sp,scaleY:sp,scale:sp,opacity:t0,backgroundColor:t0,color:t0,default:sp},rie=function(e,t){var n;return rd(t)?n=nie:n=PO[e]||PO.default,Je({to:t},n(t))},oie=Je(Je({},tR),{color:Lr,backgroundColor:Lr,outlineColor:Lr,fill:Lr,stroke:Lr,borderColor:Lr,borderTopColor:Lr,borderRightColor:Lr,borderBottomColor:Lr,borderLeftColor:Lr,filter:_b,WebkitFilter:_b}),t1=function(e){return oie[e]};function n1(e,t){var n,r=t1(e);return r!==_b&&(r=Yi),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function iie(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Ao(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}function aie(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,i=e.loop,a=Ao(e,["ease","times","yoyo","flip","loop"]),s=Je({},a);return n&&(s.offset=n),a.duration&&(s.duration=hv(a.duration)),a.repeatDelay&&(s.repeatDelay=hv(a.repeatDelay)),t&&(s.ease=tie(t)?t.map(IO):IO(t)),a.type==="tween"&&(s.type="keyframes"),(r||i||o)&&(r?s.repeatType="reverse":i?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=i||r||o||a.repeat),a.type!=="spring"&&(s.type="keyframes"),s}function sie(e,t){var n,r,o=r1(e,t)||{};return(r=(n=o.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function lie(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=wi([],cr(e.to),!1),e.to[0]=e.from),e}function cie(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),lie(t),iie(e)||(e=Je(Je({},e),rie(n,t.to))),Je(Je({},t),aie(e))}function uie(e,t,n,r,o){var i,a=r1(r,e),s=(i=a.from)!==null&&i!==void 0?i:t.get(),c=TO(e,n);s==="none"&&c&&typeof n=="string"?s=n1(e,n):MO(s)&&typeof n=="string"?s=NO(n):!Array.isArray(n)&&MO(n)&&typeof s=="string"&&(n=NO(s));var f=TO(e,s);function p(){var g={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(m){return t.set(m)}};return a.type==="inertia"||a.type==="decay"?Noe(Je(Je({},g),a)):DR(Je(Je({},cie(a,g,e)),{onUpdate:function(m){var y;g.onUpdate(m),(y=a.onUpdate)===null||y===void 0||y.call(a,m)},onComplete:function(){var m;g.onComplete(),(m=a.onComplete)===null||m===void 0||m.call(a)}}))}function v(){var g,m,y=uR(n);return t.set(y),o(),(g=a==null?void 0:a.onUpdate)===null||g===void 0||g.call(a,y),(m=a==null?void 0:a.onComplete)===null||m===void 0||m.call(a),{stop:function(){}}}return!f||!c||a.type===!1?v:p}function MO(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function NO(e){return typeof e=="number"?0:n1("",e)}function r1(e,t){return e[t]||e.default||e}function o1(e,t,n,r){return r===void 0&&(r={}),t.start(function(o){var i,a,s=uie(e,t,n,r,o),c=sie(r,e),f=function(){return a=s()};return c?i=window.setTimeout(f,hv(c)):f(),function(){clearTimeout(i),a==null||a.stop()}})}var die=function(e){return/^\-?\d*\.?\d+$/.test(e)},fie=function(e){return/^0[^.\s]+$/.test(e)};function i1(e,t){e.indexOf(t)===-1&&e.push(t)}function a1(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Pu=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return i1(this.subscriptions,t),function(){return a1(n.subscriptions,t)}},e.prototype.notify=function(t,n,r){var o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(var i=0;i<o;i++){var a=this.subscriptions[i];a&&a(t,n,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),pie=function(e){return!isNaN(parseFloat(e))},vie=function(){function e(t){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Pu,this.velocityUpdateSubscribers=new Pu,this.renderSubscribers=new Pu,this.canTrackVelocity=!1,this.updateAndNotify=function(r,o){o===void 0&&(o=!0),n.prev=n.current,n.current=r;var i=pv(),a=i.delta,s=i.timestamp;n.lastUpdated!==s&&(n.timeDelta=a,n.lastUpdated=s,Si.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),o&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return Si.postRender(n.velocityCheck)},this.velocityCheck=function(r){var o=r.timestamp;o!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=pie(this.current)}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t},e.prototype.set=function(t,n){n===void 0&&(n=!0),!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?jR(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var n=this;return this.stop(),new Promise(function(r){n.hasAnimated=!0,n.stopAnimation=t(r)}).then(function(){return n.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Jl(e){return new vie(e)}var VR=function(e){return function(t){return t.test(e)}},hie={test:function(e){return e==="auto"},parse:function(e){return e}},WR=[Ls,Ht,xi,Ca,ere,Jne,hie],nu=function(e){return WR.find(VR(e))},gie=wi(wi([],cr(WR),!1),[Lr,Yi],!1),mie=function(e){return gie.find(VR(e))};function bie(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Jl(n))}function yie(e,t){var n=fh(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,i=o===void 0?{}:o;r.transition;var a=Ao(r,["transitionEnd","transition"]);a=Je(Je({},a),i);for(var s in a){var c=uR(a[s]);bie(e,s,c)}}function wie(e,t,n){var r,o,i,a,s=Object.keys(t).filter(function(m){return!e.hasValue(m)}),c=s.length;if(c)for(var f=0;f<c;f++){var p=s[f],v=t[p],g=null;Array.isArray(v)&&(g=v[0]),g===null&&(g=(o=(r=n[p])!==null&&r!==void 0?r:e.readValue(p))!==null&&o!==void 0?o:t[p]),g!=null&&(typeof g=="string"&&(die(g)||fie(g))?g=parseFloat(g):!mie(g)&&Yi.test(v)&&(g=n1(p,v)),e.addValue(p,Jl(g)),(i=(a=n)[p])!==null&&i!==void 0||(a[p]=g),e.setBaseTarget(p,g))}}function xie(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function Sie(e,t,n){var r,o,i={};for(var a in e)i[a]=(r=xie(a,t))!==null&&r!==void 0?r:(o=n.getValue(a))===null||o===void 0?void 0:o.get();return i}function Cie(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var o=t.map(function(a){return Yb(e,a,n)});r=Promise.all(o)}else if(typeof t=="string")r=Yb(e,t,n);else{var i=typeof t=="function"?fh(e,t,n.custom):t;r=UR(e,i,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function Yb(e,t,n){var r;n===void 0&&(n={});var o=fh(e,t,n.custom),i=(o||{}).transition,a=i===void 0?e.getDefaultTransition()||{}:i;n.transitionOverride&&(a=n.transitionOverride);var s=o?function(){return UR(e,o,n)}:function(){return Promise.resolve()},c=!((r=e.variantChildren)===null||r===void 0)&&r.size?function(m){m===void 0&&(m=0);var y=a.delayChildren,b=y===void 0?0:y,w=a.staggerChildren,S=a.staggerDirection;return Eie(e,t,b+m,w,S,n)}:function(){return Promise.resolve()},f=a.when;if(f){var p=cr(f==="beforeChildren"?[s,c]:[c,s],2),v=p[0],g=p[1];return v().then(g)}else return Promise.all([s(),c(n.delay)])}function UR(e,t,n){var r,o=n===void 0?{}:n,i=o.delay,a=i===void 0?0:i,s=o.transitionOverride,c=o.type,f=e.makeTargetAnimatable(t),p=f.transition,v=p===void 0?e.getDefaultTransition():p,g=f.transitionEnd,m=Ao(f,["transition","transitionEnd"]);s&&(v=s);var y=[],b=c&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[c]);for(var w in m){var S=e.getValue(w),C=m[w];if(!(!S||C===void 0||b&&Oie(b,w))){var E=Je({delay:a},v);e.shouldReduceMotion&&$d(w)&&(E=Je(Je({},E),{type:!1,delay:0}));var k=o1(w,S,C,E);y.push(k)}}return Promise.all(y).then(function(){g&&yie(e,g)})}function Eie(e,t,n,r,o,i){n===void 0&&(n=0),r===void 0&&(r=0),o===void 0&&(o=1);var a=[],s=(e.variantChildren.size-1)*r,c=o===1?function(f){return f===void 0&&(f=0),f*r}:function(f){return f===void 0&&(f=0),s-f*r};return Array.from(e.variantChildren).sort(kie).forEach(function(f,p){a.push(Yb(f,t,Je(Je({},i),{delay:n+c(p)})).then(function(){return f.notifyAnimationComplete(t)}))}),Promise.all(a)}function kie(e,t){return e.sortNodePosition(t)}function Oie(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,o}var s1=[On.Animate,On.InView,On.Focus,On.Hover,On.Tap,On.Drag,On.Exit],$ie=wi([],cr(s1),!1).reverse(),Iie=s1.length;function Tie(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,o=n.options;return Cie(e,r,o)}))}}function Pie(e){var t=Tie(e),n=Nie(),r={},o=!0,i=function(p,v){var g=fh(e,v);if(g){g.transition;var m=g.transitionEnd,y=Ao(g,["transition","transitionEnd"]);p=Je(Je(Je({},p),y),m)}return p};function a(p){return r[p]!==void 0}function s(p){t=p(e)}function c(p,v){for(var g,m=e.getProps(),y=e.getVariantContext(!0)||{},b=[],w=new Set,S={},C=1/0,E=function(T){var N=$ie[T],P=n[N],D=(g=m[N])!==null&&g!==void 0?g:y[N],j=Yo(D),F=N===v?P.isActive:null;F===!1&&(C=T);var z=D===y[N]&&D!==m[N]&&j;if(z&&o&&e.manuallyAnimateOnMount&&(z=!1),P.protectedKeys=Je({},S),!P.isActive&&F===null||!D&&!P.prevProp||qw(D)||typeof D=="boolean")return"continue";var B=Mie(P.prevProp,D),_=B||N===v&&P.isActive&&!z&&j||T>C&&j,H=Array.isArray(D)?D:[D],L=H.reduce(i,{});F===!1&&(L={});var A=P.prevResolvedValues,U=A===void 0?{}:A,R=Je(Je({},U),L),V=function(G){_=!0,w.delete(G),P.needsAnimating[G]=!0};for(var Y in R){var X=L[Y],q=U[Y];S.hasOwnProperty(Y)||(X!==q?rd(X)&&rd(q)?!_R(X,q)||B?V(Y):P.protectedKeys[Y]=!0:X!==void 0?V(Y):w.add(Y):X!==void 0&&w.has(Y)?V(Y):P.protectedKeys[Y]=!0)}P.prevProp=D,P.prevResolvedValues=L,P.isActive&&(S=Je(Je({},S),L)),o&&e.blockInitialAnimation&&(_=!1),_&&!z&&b.push.apply(b,wi([],cr(H.map(function(G){return{animation:G,options:Je({type:N},p)}})),!1))},k=0;k<Iie;k++)E(k);if(r=Je({},S),w.size){var I={};w.forEach(function(T){var N=e.getBaseTarget(T);N!==void 0&&(I[T]=N)}),b.push({animation:I})}var $=!!b.length;return o&&m.initial===!1&&!e.manuallyAnimateOnMount&&($=!1),o=!1,$?t(b):Promise.resolve()}function f(p,v,g){var m;if(n[p].isActive===v)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(function(w){var S;return(S=w.animationState)===null||S===void 0?void 0:S.setActive(p,v)}),n[p].isActive=v;var y=c(g,p);for(var b in n)n[b].protectedKeys={};return y}return{isAnimated:a,animateChanges:c,setActive:f,setAnimateFunction:s,getState:function(){return n}}}function Mie(e,t){return typeof t=="string"?t!==e:FN(t)?!_R(t,e):!1}function as(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Nie(){var e;return e={},e[On.Animate]=as(!0),e[On.InView]=as(),e[On.Hover]=as(),e[On.Tap]=as(),e[On.Drag]=as(),e[On.Focus]=as(),e[On.Exit]=as(),e}var Rie={animation:Na(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Pie(t)),qw(n)&&d.useEffect(function(){return n.subscribe(t)},[n])}),exit:Na(function(e){var t=e.custom,n=e.visualElement,r=cr(HR(),2),o=r[0],i=r[1],a=d.useContext(dh);d.useEffect(function(){var s,c;n.isPresent=o;var f=(s=n.animationState)===null||s===void 0?void 0:s.setActive(On.Exit,!o,{custom:(c=a==null?void 0:a.custom)!==null&&c!==void 0?c:t});!o&&(f==null||f.then(i))},[o])})},KR=function(){function e(t,n,r){var o=this,i=r===void 0?{}:r,a=i.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(o.lastMoveEvent&&o.lastMoveEventInfo){var g=r0(o.lastMoveEventInfo,o.history),m=o.startEvent!==null,y=LR(g.offset,{x:0,y:0})>=3;if(!(!m&&!y)){var b=g.point,w=pv().timestamp;o.history.push(Je(Je({},b),{timestamp:w}));var S=o.handlers,C=S.onStart,E=S.onMove;m||(C&&C(o.lastMoveEvent,g),o.startEvent=o.lastMoveEvent),E&&E(o.lastMoveEvent,g)}}},this.handlePointerMove=function(g,m){if(o.lastMoveEvent=g,o.lastMoveEventInfo=n0(m,o.transformPagePoint),fR(g)&&g.buttons===0){o.handlePointerUp(g,m);return}Si.update(o.updatePoint,!0)},this.handlePointerUp=function(g,m){o.end();var y=o.handlers,b=y.onEnd,w=y.onSessionEnd,S=r0(n0(m,o.transformPagePoint),o.history);o.startEvent&&b&&b(g,S),w&&w(g,S)},!(pR(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=a;var s=Xw(t),c=n0(s,this.transformPagePoint),f=c.point,p=pv().timestamp;this.history=[Je(Je({},f),{timestamp:p})];var v=n.onSessionStart;v&&v(t,r0(c,this.history)),this.removeListeners=gh(jl(window,"pointermove",this.handlePointerMove),jl(window,"pointerup",this.handlePointerUp),jl(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Zl.update(this.updatePoint)},e}();function n0(e,t){return t?{point:t(e.point)}:e}function RO(e,t){return{x:e.x-t.x,y:e.y-t.y}}function r0(e,t){var n=e.point;return{point:n,delta:RO(n,qR(t)),offset:RO(n,Die(t)),velocity:jie(t,.1)}}function Die(e){return e[0]}function qR(e){return e[e.length-1]}function jie(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=qR(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>hv(t)));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(i===0)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Qi(e){return e.max-e.min}function DO(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),LR(e,t)<n}function jO(e,t,n,r){r===void 0&&(r=.5),e.origin=r,e.originPoint=Kn(t.min,t.max,e.origin),e.scale=Qi(n)/Qi(t),(DO(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Kn(n.min,n.max,e.origin)-e.originPoint,(DO(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Mu(e,t,n,r){jO(e.x,t.x,n.x,r==null?void 0:r.originX),jO(e.y,t.y,n.y,r==null?void 0:r.originY)}function LO(e,t,n){e.min=n.min+t.min,e.max=e.min+Qi(t)}function Lie(e,t,n){LO(e.x,t.x,n.x),LO(e.y,t.y,n.y)}function BO(e,t,n){e.min=t.min-n.min,e.max=e.min+Qi(t)}function Nu(e,t,n){BO(e.x,t.x,n.x),BO(e.y,t.y,n.y)}function Bie(e,t,n){var r=t.min,o=t.max;return r!==void 0&&e<r?e=n?Kn(r,e,n.min):Math.max(e,r):o!==void 0&&e>o&&(e=n?Kn(o,e,n.max):Math.min(e,o)),e}function AO(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Aie(e,t){var n=t.top,r=t.left,o=t.bottom,i=t.right;return{x:AO(e.x,r,i),y:AO(e.y,n,o)}}function zO(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=cr([o,r],2),r=n[0],o=n[1]),{min:r,max:o}}function zie(e,t){return{x:zO(e.x,t.x),y:zO(e.y,t.y)}}function Fie(e,t){var n=.5,r=Qi(e),o=Qi(t);return o>r?n=od(t.min,t.max-r,e.min):r>o&&(n=od(e.min,e.max-o,t.min)),dv(0,1,n)}function Hie(e,t){var n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Qb=.35;function _ie(e){return e===void 0&&(e=Qb),e===!1?e=0:e===!0&&(e=Qb),{x:FO(e,"left","right"),y:FO(e,"top","bottom")}}function FO(e,t,n){return{min:HO(e,t),max:HO(e,n)}}function HO(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}var _O=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Ru=function(){return{x:_O(),y:_O()}},VO=function(){return{min:0,max:0}},Pr=function(){return{x:VO(),y:VO()}};function hi(e){return[e("x"),e("y")]}function XR(e){var t=e.top,n=e.left,r=e.right,o=e.bottom;return{x:{min:n,max:r},y:{min:t,max:o}}}function Vie(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function Wie(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function o0(e){return e===void 0||e===1}function GR(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!o0(t)||!o0(n)||!o0(r)}function Ea(e){return GR(e)||WO(e.x)||WO(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function WO(e){return e&&e!=="0%"}function gv(e,t,n){var r=e-n,o=t*r;return n+o}function UO(e,t,n,r,o){return o!==void 0&&(e=gv(e,o,r)),gv(e,n,r)+t}function Zb(e,t,n,r,o){t===void 0&&(t=0),n===void 0&&(n=1),e.min=UO(e.min,t,n,r,o),e.max=UO(e.max,t,n,r,o)}function YR(e,t){var n=t.x,r=t.y;Zb(e.x,n.translate,n.scale,n.originPoint),Zb(e.y,r.translate,r.scale,r.originPoint)}function Uie(e,t,n,r){var o,i;r===void 0&&(r=!1);var a=n.length;if(a){t.x=t.y=1;for(var s,c,f=0;f<a;f++)s=n[f],c=s.projectionDelta,((i=(o=s.instance)===null||o===void 0?void 0:o.style)===null||i===void 0?void 0:i.display)!=="contents"&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Il(e,{x:-s.scroll.x,y:-s.scroll.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,YR(e,c)),r&&Ea(s.latestValues)&&Il(e,s.latestValues))}}function $a(e,t){e.min=e.min+t,e.max=e.max+t}function KO(e,t,n){var r=cr(n,3),o=r[0],i=r[1],a=r[2],s=t[a]!==void 0?t[a]:.5,c=Kn(e.min,e.max,s);Zb(e,t[o],t[i],c,t.scale)}var Kie=["x","scaleX","originX"],qie=["y","scaleY","originY"];function Il(e,t){KO(e.x,t,Kie),KO(e.y,t,qie)}function QR(e,t){return XR(Wie(e.getBoundingClientRect(),t))}function Xie(e,t,n){var r=QR(e,n),o=t.scroll;return o&&($a(r.x,o.x),$a(r.y,o.y)),r}var Gie=new WeakMap,Yie=function(){function e(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Pr(),this.visualElement=t}return e.prototype.start=function(t,n){var r=this,o=n===void 0?{}:n,i=o.snapToCursor,a=i===void 0?!1:i;if(this.visualElement.isPresent!==!1){var s=function(v){r.stopAnimation(),a&&r.snapToCursor(Xw(v,"page").point)},c=function(v,g){var m,y=r.getProps(),b=y.drag,w=y.dragPropagation,S=y.onDragStart;b&&!w&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=mR(b),!r.openGlobalLock)||(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),hi(function(C){var E,k,I=r.getAxisMotionValue(C).get()||0;if(xi.test(I)){var $=(k=(E=r.visualElement.projection)===null||E===void 0?void 0:E.layout)===null||k===void 0?void 0:k.actual[C];if($){var T=Qi($);I=T*(parseFloat(I)/100)}}r.originPoint[C]=I}),S==null||S(v,g),(m=r.visualElement.animationState)===null||m===void 0||m.setActive(On.Drag,!0))},f=function(v,g){var m=r.getProps(),y=m.dragPropagation,b=m.dragDirectionLock,w=m.onDirectionLock,S=m.onDrag;if(!(!y&&!r.openGlobalLock)){var C=g.offset;if(b&&r.currentDirection===null){r.currentDirection=Qie(C),r.currentDirection!==null&&(w==null||w(r.currentDirection));return}r.updateAxis("x",g.point,C),r.updateAxis("y",g.point,C),r.visualElement.syncRender(),S==null||S(v,g)}},p=function(v,g){return r.stop(v,g)};this.panSession=new KR(t,{onSessionStart:s,onStart:c,onMove:f,onSessionEnd:p},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(t,n){var r=this.isDragging;if(this.cancel(),!!r){var o=n.velocity;this.startAnimation(o);var i=this.getProps().onDragEnd;i==null||i(t,n)}},e.prototype.cancel=function(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;var r=this.getProps().dragPropagation;!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(On.Drag,!1)},e.prototype.updateAxis=function(t,n,r){var o=this.getProps().drag;if(!(!r||!lp(t,o,this.currentDirection))){var i=this.getAxisMotionValue(t),a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=Bie(a,this.constraints[t],this.elastic[t])),i.set(a)}},e.prototype.resolveConstraints=function(){var t=this,n=this.getProps(),r=n.dragConstraints,o=n.dragElastic,i=(this.visualElement.projection||{}).layout,a=this.constraints;r&&$l(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&i?this.constraints=Aie(i.actual,r):this.constraints=!1,this.elastic=_ie(o),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&hi(function(s){t.getAxisMotionValue(s)&&(t.constraints[s]=Hie(i.actual[s],t.constraints[s]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,r=t.onMeasureDragConstraints;if(!n||!$l(n))return!1;var o=n.current,i=this.visualElement.projection;if(!i||!i.layout)return!1;var a=Xie(o,i.root,this.visualElement.getTransformPagePoint()),s=zie(i.layout.actual,a);if(r){var c=r(Vie(s));this.hasMutatedConstraints=!!c,c&&(s=XR(c))}return s},e.prototype.startAnimation=function(t){var n=this,r=this.getProps(),o=r.drag,i=r.dragMomentum,a=r.dragElastic,s=r.dragTransition,c=r.dragSnapToOrigin,f=r.onDragTransitionEnd,p=this.constraints||{},v=hi(function(g){var m;if(lp(g,o,n.currentDirection)){var y=(m=p==null?void 0:p[g])!==null&&m!==void 0?m:{};c&&(y={min:0,max:0});var b=a?200:1e6,w=a?40:1e7,S=Je(Je({type:"inertia",velocity:i?t[g]:0,bounceStiffness:b,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10},s),y);return n.startAxisValueAnimation(g,S)}});return Promise.all(v).then(f)},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);return o1(t,r,0,n)},e.prototype.stopAnimation=function(){var t=this;hi(function(n){return t.getAxisMotionValue(n).stop()})},e.prototype.getAxisMotionValue=function(t){var n,r,o="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[o];return i||this.visualElement.getValue(t,(r=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:0)},e.prototype.snapToCursor=function(t){var n=this;hi(function(r){var o=n.getProps().drag;if(lp(r,o,n.currentDirection)){var i=n.visualElement.projection,a=n.getAxisMotionValue(r);if(i&&i.layout){var s=i.layout.actual[r],c=s.min,f=s.max;a.set(t[r]-Kn(c,f,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var t=this,n,r=this.getProps(),o=r.drag,i=r.dragConstraints,a=this.visualElement.projection;if(!(!$l(i)||!a||!this.constraints)){this.stopAnimation();var s={x:0,y:0};hi(function(f){var p=t.getAxisMotionValue(f);if(p){var v=p.get();s[f]=Fie({min:v,max:v},t.constraints[f])}});var c=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=c?c({},""):"none",(n=a.root)===null||n===void 0||n.updateScroll(),a.updateLayout(),this.resolveConstraints(),hi(function(f){if(lp(f,o,null)){var p=t.getAxisMotionValue(f),v=t.constraints[f],g=v.min,m=v.max;p.set(Kn(g,m,s[f]))}})}},e.prototype.addListeners=function(){var t=this,n;Gie.set(this.visualElement,this);var r=this.visualElement.getInstance(),o=jl(r,"pointerdown",function(f){var p=t.getProps(),v=p.drag,g=p.dragListener,m=g===void 0?!0:g;v&&m&&t.start(f)}),i=function(){var f=t.getProps().dragConstraints;$l(f)&&(t.constraints=t.resolveRefConstraints())},a=this.visualElement.projection,s=a.addEventListener("measure",i);a&&!a.layout&&((n=a.root)===null||n===void 0||n.updateScroll(),a.updateLayout()),i();var c=hh(window,"resize",function(){return t.scalePositionWithinConstraints()});return a.addEventListener("didUpdate",function(f){var p=f.delta,v=f.hasLayoutChanged;t.isDragging&&v&&(hi(function(g){var m=t.getAxisMotionValue(g);m&&(t.originPoint[g]+=p[g].translate,m.set(m.get()+p[g].translate))}),t.visualElement.syncRender())}),function(){c(),o(),s()}},e.prototype.getProps=function(){var t=this.visualElement.getProps(),n=t.drag,r=n===void 0?!1:n,o=t.dragDirectionLock,i=o===void 0?!1:o,a=t.dragPropagation,s=a===void 0?!1:a,c=t.dragConstraints,f=c===void 0?!1:c,p=t.dragElastic,v=p===void 0?Qb:p,g=t.dragMomentum,m=g===void 0?!0:g;return Je(Je({},t),{drag:r,dragDirectionLock:i,dragPropagation:s,dragConstraints:f,dragElastic:v,dragMomentum:m})},e}();function lp(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Qie(e,t){t===void 0&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function Zie(e){var t=e.dragControls,n=e.visualElement,r=vh(function(){return new Yie(n)});d.useEffect(function(){return t&&t.subscribe(r)},[r,t]),d.useEffect(function(){return r.addListeners()},[r])}function Jie(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,i=e.visualElement,a=t||n||r||o,s=d.useRef(null),c=d.useContext(Fw).transformPagePoint,f={onSessionStart:o,onStart:n,onMove:t,onEnd:function(v,g){s.current=null,r&&r(v,g)}};d.useEffect(function(){s.current!==null&&s.current.updateHandlers(f)});function p(v){s.current=new KR(v,f,{transformPagePoint:c})}uv(i,"pointerdown",a&&p),wR(function(){return s.current&&s.current.end()})}var eae={pan:Na(Jie),drag:Na(Zie)},cp=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function tae(){var e=cp.map(function(){return new Pu}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){cp.forEach(function(o){var i,a="on"+o,s=r[a];(i=t[o])===null||i===void 0||i.call(t),s&&(t[o]=n[a](s))})}};return e.forEach(function(r,o){n["on"+cp[o]]=function(i){return r.add(i)},n["notify"+cp[o]]=function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return r.notify.apply(r,wi([],cr(i),!1))}}),n}function nae(e,t,n){var r;for(var o in t){var i=t[o],a=n[o];if(Gi(i))e.addValue(o,i);else if(Gi(a))e.addValue(o,Jl(i));else if(a!==i)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(i)}else e.addValue(o,Jl((r=e.getStaticValue(o))!==null&&r!==void 0?r:i))}for(var o in n)t[o]===void 0&&e.removeValue(o);return t}var ZR=function(e){var t=e.treeType,n=t===void 0?"":t,r=e.build,o=e.getBaseTarget,i=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,c=e.readValueFromInstance,f=e.removeValueFromRenderState,p=e.sortNodePosition,v=e.scrapeMotionValuesFromProps;return function(g,m){var y=g.parent,b=g.props,w=g.presenceId,S=g.blockInitialAnimation,C=g.visualState,E=g.shouldReduceMotion;m===void 0&&(m={});var k=!1,I=C.latestValues,$=C.renderState,T,N=tae(),P=new Map,D=new Map,j={},F=Je({},I),z;function B(){!T||!k||(_(),s(T,$,b.style,X.projection))}function _(){r(X,$,I,m,b)}function H(){N.notifyUpdate(I)}function L(q,G){var K=G.onChange(function(oe){I[q]=oe,b.onUpdate&&Si.update(H,!1,!0)}),J=G.onRenderRequest(X.scheduleRender);D.set(q,function(){K(),J()})}var A=v(b);for(var U in A){var R=A[U];I[U]!==void 0&&Gi(R)&&R.set(I[U],!1)}var V=ph(b),Y=_N(b),X=Je(Je({treeType:n,current:null,depth:y?y.depth+1:0,parent:y,children:new Set,presenceId:w,shouldReduceMotion:E,variantChildren:Y?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(y!=null&&y.isMounted()),blockInitialAnimation:S,isMounted:function(){return!!T},mount:function(q){k=!0,T=X.current=q,X.projection&&X.projection.mount(q),Y&&y&&!V&&(z=y==null?void 0:y.addVariantChild(X)),P.forEach(function(G,K){return L(K,G)}),y==null||y.children.add(X),X.setProps(b)},unmount:function(){var q;(q=X.projection)===null||q===void 0||q.unmount(),Zl.update(H),Zl.render(B),D.forEach(function(G){return G()}),z==null||z(),y==null||y.children.delete(X),N.clearAllListeners(),T=void 0,k=!1},addVariantChild:function(q){var G,K=X.getClosestVariantNode();if(K)return(G=K.variantChildren)===null||G===void 0||G.add(q),function(){return K.variantChildren.delete(q)}},sortNodePosition:function(q){return!p||n!==q.treeType?0:p(X.getInstance(),q.getInstance())},getClosestVariantNode:function(){return Y?X:y==null?void 0:y.getClosestVariantNode()},getLayoutId:function(){return b.layoutId},getInstance:function(){return T},getStaticValue:function(q){return I[q]},setStaticValue:function(q,G){return I[q]=G},getLatestValues:function(){return I},setVisibility:function(q){X.isVisible!==q&&(X.isVisible=q,X.scheduleRender())},makeTargetAnimatable:function(q,G){return G===void 0&&(G=!0),i(X,q,b,G)},measureViewportBox:function(){return a(T,b)},addValue:function(q,G){X.hasValue(q)&&X.removeValue(q),P.set(q,G),I[q]=G.get(),L(q,G)},removeValue:function(q){var G;P.delete(q),(G=D.get(q))===null||G===void 0||G(),D.delete(q),delete I[q],f(q,$)},hasValue:function(q){return P.has(q)},getValue:function(q,G){var K=P.get(q);return K===void 0&&G!==void 0&&(K=Jl(G),X.addValue(q,K)),K},forEachValue:function(q){return P.forEach(q)},readValue:function(q){var G;return(G=I[q])!==null&&G!==void 0?G:c(T,q,m)},setBaseTarget:function(q,G){F[q]=G},getBaseTarget:function(q){if(o){var G=o(b,q);if(G!==void 0&&!Gi(G))return G}return F[q]}},N),{build:function(){return _(),$},scheduleRender:function(){Si.render(B,!1,!0)},syncRender:B,setProps:function(q){(q.transformTemplate||b.transformTemplate)&&X.scheduleRender(),b=q,N.updatePropListeners(q),j=nae(X,v(b),j)},getProps:function(){return b},getVariant:function(q){var G;return(G=b.variants)===null||G===void 0?void 0:G[q]},getDefaultTransition:function(){return b.transition},getTransformPagePoint:function(){return b.transformPagePoint},getVariantContext:function(q){if(q===void 0&&(q=!1),q)return y==null?void 0:y.getVariantContext();if(!V){var G=(y==null?void 0:y.getVariantContext())||{};return b.initial!==void 0&&(G.initial=b.initial),G}for(var K={},J=0;J<rae;J++){var oe=JR[J],fe=b[oe];(Yo(fe)||fe===!1)&&(K[oe]=fe)}return K}});return X}},JR=wi(["initial"],cr(s1),!1),rae=JR.length;function Jb(e){return typeof e=="string"&&e.startsWith("var(--")}var eD=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function oae(e){var t=eD.exec(e);if(!t)return[,];var n=cr(t,3),r=n[1],o=n[2];return[r,o]}function ey(e,t,n){var r=cr(oae(e),2),o=r[0],i=r[1];if(o){var a=window.getComputedStyle(t).getPropertyValue(o);return a?a.trim():Jb(i)?ey(i,t):i}}function iae(e,t,n){var r,o=Ao(t,[]),i=e.getInstance();if(!(i instanceof Element))return{target:o,transitionEnd:n};n&&(n=Je({},n)),e.forEachValue(function(f){var p=f.get();if(Jb(p)){var v=ey(p,i);v&&f.set(v)}});for(var a in o){var s=o[a];if(Jb(s)){var c=ey(s,i);c&&(o[a]=c,n&&((r=n[a])!==null&&r!==void 0||(n[a]=s)))}}return{target:o,transitionEnd:n}}var aae=new Set(["width","height","top","left","right","bottom","x","y"]),tD=function(e){return aae.has(e)},sae=function(e){return Object.keys(e).some(tD)},nD=function(e,t){e.set(t,!1),e.set(t)},qO=function(e){return e===Ls||e===Ht},XO;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(XO||(XO={}));var GO=function(e,t){return parseFloat(e.split(", ")[t])},YO=function(e,t){return function(n,r){var o=r.transform;if(o==="none"||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return GO(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?GO(a[1],e):0}},lae=new Set(["x","y","z"]),cae=td.filter(function(e){return!lae.has(e)});function uae(e){var t=[];return cae.forEach(function(n){var r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var QO={width:function(e,t){var n=e.x,r=t.paddingLeft,o=r===void 0?"0":r,i=t.paddingRight,a=i===void 0?"0":i;return n.max-n.min-parseFloat(o)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,o=r===void 0?"0":r,i=t.paddingBottom,a=i===void 0?"0":i;return n.max-n.min-parseFloat(o)-parseFloat(a)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:YO(4,13),y:YO(5,14)},dae=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),a=i.display,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(function(f){s[f]=QO[f](r,i)}),t.syncRender();var c=t.measureViewportBox();return n.forEach(function(f){var p=t.getValue(f);nD(p,s[f]),e[f]=QO[f](c,i)}),e},fae=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=Je({},t),r=Je({},r);var o=Object.keys(t).filter(tD),i=[],a=!1,s=[];if(o.forEach(function(p){var v=e.getValue(p);if(e.hasValue(p)){var g=n[p],m=nu(g),y=t[p],b;if(rd(y)){var w=y.length,S=y[0]===null?1:0;g=y[S],m=nu(g);for(var C=S;C<w;C++)b?sv(nu(y[C])===b):b=nu(y[C])}else b=nu(y);if(m!==b)if(qO(m)&&qO(b)){var E=v.get();typeof E=="string"&&v.set(parseFloat(E)),typeof y=="string"?t[p]=parseFloat(y):Array.isArray(y)&&b===Ht&&(t[p]=y.map(parseFloat))}else m!=null&&m.transform&&(b!=null&&b.transform)&&(g===0||y===0)?g===0?v.set(b.transform(g)):t[p]=m.transform(y):(a||(i=uae(e),a=!0),s.push(p),r[p]=r[p]!==void 0?r[p]:t[p],nD(v,y))}}),s.length){var c=s.indexOf("height")>=0?window.pageYOffset:null,f=dae(t,e,s);return i.length&&i.forEach(function(p){var v=cr(p,2),g=v[0],m=v[1];e.getValue(g).set(m)}),e.syncRender(),c!==null&&window.scrollTo({top:c}),{target:f,transitionEnd:r}}else return{target:t,transitionEnd:r}};function pae(e,t,n,r){return sae(t)?fae(e,t,n,r):{target:t,transitionEnd:r}}var vae=function(e,t,n,r){var o=iae(e,t,r);return t=o.target,r=o.transitionEnd,pae(e,t,n,r)};function hae(e){return window.getComputedStyle(e)}var rD={treeType:"dom",readValueFromInstance:function(e,t){if($d(t)){var n=t1(t);return n&&n.default||0}else{var r=hae(e);return(qN(t)?r.getPropertyValue(t):r[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox:function(e,t){var n=t.transformPagePoint;return QR(e,n)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;r===void 0&&(r=!0);var i=t.transition,a=t.transitionEnd,s=Ao(t,["transition","transitionEnd"]),c=Sie(s,i||{},e);if(o&&(a&&(a=o(a)),s&&(s=o(s)),c&&(c=o(c))),r){wie(e,s,c);var f=vae(e,s,c,a);a=f.transitionEnd,s=f.target}return Je({transition:i,transitionEnd:a},s)},scrapeMotionValuesFromProps:Kw,build:function(e,t,n,r,o){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Vw(t,n,r,o.transformTemplate)},render:aR},gae=ZR(rD),mae=ZR(Je(Je({},rD),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return $d(t)?((n=t1(t))===null||n===void 0?void 0:n.default)||0:(t=sR.has(t)?t:iR(t),e.getAttribute(t))},scrapeMotionValuesFromProps:cR,build:function(e,t,n,r,o){Uw(t,n,r,o.transformTemplate)},render:lR})),bae=function(e,t){return Hw(e)?mae(t,{enableHardwareAcceleration:!1}):gae(t,{enableHardwareAcceleration:!0})};function ZO(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ru={correct:function(e,t){if(!t.target)return e;if(typeof e=="string")if(Ht.test(e))e=parseFloat(e);else return e;var n=ZO(e,t.target.x),r=ZO(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},JO="_$css",yae={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,i=e.includes("var("),a=[];i&&(e=e.replace(eD,function(b){return a.push(b),JO}));var s=Yi.parse(e);if(s.length>5)return o;var c=Yi.createTransformer(e),f=typeof s[0]!="number"?1:0,p=r.x.scale*n.x,v=r.y.scale*n.y;s[0+f]/=p,s[1+f]/=v;var g=Kn(p,v,.5);typeof s[2+f]=="number"&&(s[2+f]/=g),typeof s[3+f]=="number"&&(s[3+f]/=g);var m=c(s);if(i){var y=0;m=m.replace(JO,function(){var b=a[y];return y++,b})}return m}},wae=function(e){jN(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var n=this,r=this.props,o=r.visualElement,i=r.layoutGroup,a=r.switchLayoutGroup,s=r.layoutId,c=o.projection;Vne(Sae),c&&(i!=null&&i.group&&i.group.add(c),a!=null&&a.register&&s&&a.register(c),c.root.didUpdate(),c.addEventListener("animationComplete",function(){n.safeToRemove()}),c.setOptions(Je(Je({},c.options),{onExitComplete:function(){return n.safeToRemove()}}))),$u.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(n){var r=this,o=this.props,i=o.layoutDependency,a=o.visualElement,s=o.drag,c=o.isPresent,f=a.projection;return f&&(f.isPresent=c,s||n.layoutDependency!==i||i===void 0?f.willUpdate():this.safeToRemove(),n.isPresent!==c&&(c?f.promote():f.relegate()||Si.postRender(function(){var p;!((p=f.getStack())===null||p===void 0)&&p.members.length||r.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var n=this.props.visualElement.projection;n&&(n.root.didUpdate(),!n.currentAnimation&&n.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var n=this.props,r=n.visualElement,o=n.layoutGroup,i=n.switchLayoutGroup,a=r.projection;a&&(a.scheduleCheckAfterUnmount(),o!=null&&o.group&&o.group.remove(a),i!=null&&i.deregister&&i.deregister(a))},t.prototype.safeToRemove=function(){var n=this.props.safeToRemove;n==null||n()},t.prototype.render=function(){return null},t}(de.Component);function xae(e){var t=cr(HR(),2),n=t[0],r=t[1],o=d.useContext(VN);return de.createElement(wae,Je({},e,{layoutGroup:o,switchLayoutGroup:d.useContext(WN),isPresent:n,safeToRemove:r}))}var Sae={borderRadius:Je(Je({},ru),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ru,borderTopRightRadius:ru,borderBottomLeftRadius:ru,borderBottomRightRadius:ru,boxShadow:yae},Cae={measureLayout:xae};function Eae(e,t,n){n===void 0&&(n={});var r=Gi(e)?e:Jl(e);return o1("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var oD=["TopLeft","TopRight","BottomLeft","BottomRight"],kae=oD.length,e2=function(e){return typeof e=="string"?parseFloat(e):e},t2=function(e){return typeof e=="number"||Ht.test(e)};function Oae(e,t,n,r,o,i){var a,s,c,f;o?(e.opacity=Kn(0,(a=n.opacity)!==null&&a!==void 0?a:1,$ae(r)),e.opacityExit=Kn((s=t.opacity)!==null&&s!==void 0?s:1,0,Iae(r))):i&&(e.opacity=Kn((c=t.opacity)!==null&&c!==void 0?c:1,(f=n.opacity)!==null&&f!==void 0?f:1,r));for(var p=0;p<kae;p++){var v="border".concat(oD[p],"Radius"),g=n2(t,v),m=n2(n,v);if(!(g===void 0&&m===void 0)){g||(g=0),m||(m=0);var y=g===0||m===0||t2(g)===t2(m);y?(e[v]=Math.max(Kn(e2(g),e2(m),r),0),(xi.test(m)||xi.test(g))&&(e[v]+="%")):e[v]=m}}(t.rotate||n.rotate)&&(e.rotate=Kn(t.rotate||0,n.rotate||0,r))}function n2(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}var $ae=iD(0,.5,Jw),Iae=iD(.5,.95,Qw);function iD(e,t,n){return function(r){return r<e?0:r>t?1:n(od(e,t,r))}}function r2(e,t){e.min=t.min,e.max=t.max}function Uo(e,t){r2(e.x,t.x),r2(e.y,t.y)}function o2(e,t,n,r,o){return e-=t,e=gv(e,1/n,r),o!==void 0&&(e=gv(e,1/o,r)),e}function Tae(e,t,n,r,o,i,a){if(t===void 0&&(t=0),n===void 0&&(n=1),r===void 0&&(r=.5),i===void 0&&(i=e),a===void 0&&(a=e),xi.test(t)){t=parseFloat(t);var s=Kn(a.min,a.max,t/100);t=s-a.min}if(typeof t=="number"){var c=Kn(i.min,i.max,r);e===i&&(c-=t),e.min=o2(e.min,t,n,c,o),e.max=o2(e.max,t,n,c,o)}}function i2(e,t,n,r,o){var i=cr(n,3),a=i[0],s=i[1],c=i[2];Tae(e,t[a],t[s],t[c],t.scale,r,o)}var Pae=["x","scaleX","originX"],Mae=["y","scaleY","originY"];function a2(e,t,n,r){i2(e.x,t,Pae,n==null?void 0:n.x,r==null?void 0:r.x),i2(e.y,t,Mae,n==null?void 0:n.y,r==null?void 0:r.y)}function s2(e){return e.translate===0&&e.scale===1}function aD(e){return s2(e.x)&&s2(e.y)}function sD(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Nae=function(){function e(){this.members=[]}return e.prototype.add=function(t){i1(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(a1(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var n=this.members[this.members.length-1];n&&this.promote(n)}},e.prototype.relegate=function(t){var n=this.members.findIndex(function(a){return t===a});if(n===0)return!1;for(var r,o=n;o>=0;o--){var i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1},e.prototype.promote=function(t,n){var r,o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);var i=t.options.crossfade;i===!1&&o.hide()}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var n,r,o,i,a;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(a=(o=t.resumingFrom)===null||o===void 0?void 0:(i=o.options).onExitComplete)===null||a===void 0||a.call(i)})},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),Rae="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function l2(e,t,n){var r=e.x.translate/t.x,o=e.y.translate/t.y,i="translate3d(".concat(r,"px, ").concat(o,"px, 0) ");if(i+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,s=n.rotateX,c=n.rotateY;a&&(i+="rotate(".concat(a,"deg) ")),s&&(i+="rotateX(".concat(s,"deg) ")),c&&(i+="rotateY(".concat(c,"deg) "))}var f=e.x.scale*t.x,p=e.y.scale*t.y;return i+="scale(".concat(f,", ").concat(p,")"),i===Rae?"none":i}var Dae=function(e,t){return e.depth-t.depth},jae=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){i1(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){a1(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(Dae),this.isDirty=!1,this.children.forEach(t)},e}(),c2=1e3;function lD(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.checkIsScrollRoot,i=e.resetTransform;return function(){function a(s,c,f){var p=this;c===void 0&&(c={}),f===void 0&&(f=n==null?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){p.isUpdating&&(p.isUpdating=!1,p.clearAllSnapshots())},this.updateProjection=function(){p.nodes.forEach(Hae),p.nodes.forEach(_ae)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=s,this.latestValues=c,this.root=f?f.root||f:this,this.path=f?wi(wi([],cr(f.path),!1),[f],!1):[],this.parent=f,this.depth=f?f.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(var v=0;v<this.path.length;v++)this.path[v].shouldResetTransform=!0;this.root===this&&(this.nodes=new jae)}return a.prototype.addEventListener=function(s,c){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Pu),this.eventHandlers.get(s).add(c)},a.prototype.notifyListeners=function(s){for(var c=[],f=1;f<arguments.length;f++)c[f-1]=arguments[f];var p=this.eventHandlers.get(s);p==null||p.notify.apply(p,wi([],cr(c),!1))},a.prototype.hasListeners=function(s){return this.eventHandlers.has(s)},a.prototype.registerPotentialNode=function(s,c){this.potentialNodes.set(s,c)},a.prototype.mount=function(s,c){var f=this,p;if(c===void 0&&(c=!1),!this.instance){this.isSVG=s instanceof SVGElement&&s.tagName!=="svg",this.instance=s;var v=this.options,g=v.layoutId,m=v.layout,y=v.visualElement;if(y&&!y.getInstance()&&y.mount(s),this.root.nodes.add(this),(p=this.parent)===null||p===void 0||p.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),c&&(m||g)&&(this.isLayoutDirty=!0),t){var b,w=function(){return f.root.updateBlockedByResize=!1};t(s,function(){f.root.updateBlockedByResize=!0,clearTimeout(b),b=window.setTimeout(w,250),$u.hasAnimatedSinceResize&&($u.hasAnimatedSinceResize=!1,f.nodes.forEach(Fae))})}g&&this.root.registerSharedNode(g,this),this.options.animate!==!1&&y&&(g||m)&&this.addEventListener("didUpdate",function(S){var C,E,k,I,$,T=S.delta,N=S.hasLayoutChanged,P=S.hasRelativeTargetChanged,D=S.layout;if(f.isTreeAnimationBlocked()){f.target=void 0,f.relativeTarget=void 0;return}var j=(E=(C=f.options.transition)!==null&&C!==void 0?C:y.getDefaultTransition())!==null&&E!==void 0?E:qae,F=y.getProps(),z=F.onLayoutAnimationStart,B=F.onLayoutAnimationComplete,_=!f.targetLayout||!sD(f.targetLayout,D)||P,H=!N&&P;if(!((k=f.resumeFrom)===null||k===void 0)&&k.instance||H||N&&(_||!f.currentAnimation)){f.resumeFrom&&(f.resumingFrom=f.resumeFrom,f.resumingFrom.resumingFrom=void 0),f.setAnimationOrigin(T,H);var L=Je(Je({},r1(j,"layout")),{onPlay:z,onComplete:B});y.shouldReduceMotion&&(L.delay=0,L.type=!1),f.startAnimation(L)}else!N&&f.animationProgress===0&&f.finishAnimation(),f.isLead()&&(($=(I=f.options).onExitComplete)===null||$===void 0||$.call(I));f.targetLayout=D})}},a.prototype.unmount=function(){var s,c;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(s=this.getStack())===null||s===void 0||s.remove(this),(c=this.parent)===null||c===void 0||c.children.delete(this),this.instance=void 0,Zl.preRender(this.updateProjection)},a.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},a.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},a.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},a.prototype.isTreeAnimationBlocked=function(){var s;return this.isAnimationBlocked||((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimationBlocked())||!1},a.prototype.startUpdate=function(){var s;this.isUpdateBlocked()||(this.isUpdating=!0,(s=this.nodes)===null||s===void 0||s.forEach(Vae))},a.prototype.willUpdate=function(s){var c,f,p;if(s===void 0&&(s=!0),this.root.isUpdateBlocked()){(f=(c=this.options).onExitComplete)===null||f===void 0||f.call(c);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var v=0;v<this.path.length;v++){var g=this.path[v];g.shouldResetTransform=!0,g.updateScroll()}var m=this.options,y=m.layoutId,b=m.layout;if(!(y===void 0&&!b)){var w=(p=this.options.visualElement)===null||p===void 0?void 0:p.getProps().transformTemplate;this.prevTransformTemplateValue=w==null?void 0:w(this.latestValues,""),this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}}},a.prototype.didUpdate=function(){var s=this.isUpdateBlocked();if(s){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(u2);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Xae),this.potentialNodes.clear()),this.nodes.forEach(zae),this.nodes.forEach(Lae),this.nodes.forEach(Bae),this.clearAllSnapshots(),Jm.update(),Jm.preRender(),Jm.render())},a.prototype.clearAllSnapshots=function(){this.nodes.forEach(Aae),this.sharedNodes.forEach(Wae)},a.prototype.scheduleUpdateProjection=function(){Si.preRender(this.updateProjection,!1,!0)},a.prototype.scheduleCheckAfterUnmount=function(){var s=this;Si.postRender(function(){s.isLayoutDirty?s.root.didUpdate():s.root.checkUpdateFailed()})},a.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var s=this.measure(),c=this.removeTransform(this.removeElementScroll(s));v2(c),this.snapshot={measured:s,layout:c,latestValues:{}}}},a.prototype.updateLayout=function(){var s;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var c=0;c<this.path.length;c++){var f=this.path[c];f.updateScroll()}var p=this.measure();v2(p);var v=this.layout;this.layout={measured:p,actual:this.removeElementScroll(p)},this.layoutCorrected=Pr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(s=this.options.visualElement)===null||s===void 0||s.notifyLayoutMeasure(this.layout.actual,v==null?void 0:v.actual)}},a.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=o(this.instance),this.scroll=r(this.instance))},a.prototype.resetTransform=function(){var s;if(i){var c=this.isLayoutDirty||this.shouldResetTransform,f=this.projectionDelta&&!aD(this.projectionDelta),p=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate,v=p==null?void 0:p(this.latestValues,""),g=v!==this.prevTransformTemplateValue;c&&(f||Ea(this.latestValues)||g)&&(i(this.instance,v),this.shouldResetTransform=!1,this.scheduleRender())}},a.prototype.measure=function(){var s=this.options.visualElement;if(!s)return Pr();var c=s.measureViewportBox(),f=this.root.scroll;return f&&($a(c.x,f.x),$a(c.y,f.y)),c},a.prototype.removeElementScroll=function(s){var c=Pr();Uo(c,s);for(var f=0;f<this.path.length;f++){var p=this.path[f],v=p.scroll,g=p.options,m=p.isScrollRoot;if(p!==this.root&&v&&g.layoutScroll){if(m){Uo(c,s);var y=this.root.scroll;y&&($a(c.x,-y.x),$a(c.y,-y.y))}$a(c.x,v.x),$a(c.y,v.y)}}return c},a.prototype.applyTransform=function(s,c){c===void 0&&(c=!1);var f=Pr();Uo(f,s);for(var p=0;p<this.path.length;p++){var v=this.path[p];!c&&v.options.layoutScroll&&v.scroll&&v!==v.root&&Il(f,{x:-v.scroll.x,y:-v.scroll.y}),Ea(v.latestValues)&&Il(f,v.latestValues)}return Ea(this.latestValues)&&Il(f,this.latestValues),f},a.prototype.removeTransform=function(s){var c,f=Pr();Uo(f,s);for(var p=0;p<this.path.length;p++){var v=this.path[p];if(v.instance&&Ea(v.latestValues)){GR(v.latestValues)&&v.updateSnapshot();var g=Pr(),m=v.measure();Uo(g,m),a2(f,v.latestValues,(c=v.snapshot)===null||c===void 0?void 0:c.layout,g)}}return Ea(this.latestValues)&&a2(f,this.latestValues),f},a.prototype.setTargetDelta=function(s){this.targetDelta=s,this.root.scheduleUpdateProjection()},a.prototype.setOptions=function(s){var c;this.options=Je(Je(Je({},this.options),s),{crossfade:(c=s.crossfade)!==null&&c!==void 0?c:!0})},a.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},a.prototype.resolveTargetDelta=function(){var s,c=this.options,f=c.layout,p=c.layoutId;!this.layout||!(f||p)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Pr(),this.relativeTargetOrigin=Pr(),Nu(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Uo(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Pr(),this.targetWithTransforms=Pr()),this.relativeTarget&&this.relativeTargetOrigin&&(!((s=this.relativeParent)===null||s===void 0)&&s.target)?Lie(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):Uo(this.target,this.layout.actual),YR(this.target,this.targetDelta)):Uo(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=Pr(),this.relativeTargetOrigin=Pr(),Nu(this.relativeTargetOrigin,this.target,this.relativeParent.target),Uo(this.relativeTarget,this.relativeTargetOrigin)))))},a.prototype.getClosestProjectingParent=function(){if(!(!this.parent||Ea(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},a.prototype.calcProjection=function(){var s,c=this.options,f=c.layout,p=c.layoutId;if(this.isTreeAnimating=!!(!((s=this.parent)===null||s===void 0)&&s.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(f||p))){var v=this.getLead();Uo(this.layoutCorrected,this.layout.actual),Uie(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==v);var g=v.target;if(g){this.projectionDelta||(this.projectionDelta=Ru(),this.projectionDeltaWithTransform=Ru());var m=this.treeScale.x,y=this.treeScale.y,b=this.projectionTransform;Mu(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=l2(this.projectionDelta,this.treeScale),(this.projectionTransform!==b||this.treeScale.x!==m||this.treeScale.y!==y)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}}},a.prototype.hide=function(){this.isVisible=!1},a.prototype.show=function(){this.isVisible=!0},a.prototype.scheduleRender=function(s){var c,f,p;s===void 0&&(s=!0),(f=(c=this.options).scheduleRender)===null||f===void 0||f.call(c),s&&((p=this.getStack())===null||p===void 0||p.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},a.prototype.setAnimationOrigin=function(s,c){var f=this,p;c===void 0&&(c=!1);var v=this.snapshot,g=(v==null?void 0:v.latestValues)||{},m=Je({},this.latestValues),y=Ru();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!c;var b=Pr(),w=v==null?void 0:v.isShared,S=(((p=this.getStack())===null||p===void 0?void 0:p.members.length)||0)<=1,C=!!(w&&!S&&this.options.crossfade===!0&&!this.path.some(Kae));this.animationProgress=0,this.mixTargetDelta=function(E){var k,I=E/1e3;d2(y.x,s.x,I),d2(y.y,s.y,I),f.setTargetDelta(y),f.relativeTarget&&f.relativeTargetOrigin&&f.layout&&(!((k=f.relativeParent)===null||k===void 0)&&k.layout)&&(Nu(b,f.layout.actual,f.relativeParent.layout.actual),Uae(f.relativeTarget,f.relativeTargetOrigin,b,I)),w&&(f.animationValues=m,Oae(m,g,f.latestValues,I,C,S)),f.root.scheduleUpdateProjection(),f.scheduleRender(),f.animationProgress=I},this.mixTargetDelta(0)},a.prototype.startAnimation=function(s){var c=this,f,p;this.notifyListeners("animationStart"),(f=this.currentAnimation)===null||f===void 0||f.stop(),this.resumingFrom&&((p=this.resumingFrom.currentAnimation)===null||p===void 0||p.stop()),this.pendingAnimation&&(Zl.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Si.update(function(){$u.hasAnimatedSinceResize=!0,c.currentAnimation=Eae(0,c2,Je(Je({},s),{onUpdate:function(v){var g;c.mixTargetDelta(v),(g=s.onUpdate)===null||g===void 0||g.call(s,v)},onComplete:function(){var v;(v=s.onComplete)===null||v===void 0||v.call(s),c.completeAnimation()}})),c.resumingFrom&&(c.resumingFrom.currentAnimation=c.currentAnimation),c.pendingAnimation=void 0})},a.prototype.completeAnimation=function(){var s;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(s=this.getStack())===null||s===void 0||s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},a.prototype.finishAnimation=function(){var s;this.currentAnimation&&((s=this.mixTargetDelta)===null||s===void 0||s.call(this,c2),this.currentAnimation.stop()),this.completeAnimation()},a.prototype.applyTransformsToTarget=function(){var s=this.getLead(),c=s.targetWithTransforms,f=s.target,p=s.layout,v=s.latestValues;!c||!f||!p||(Uo(c,f),Il(c,v),Mu(this.projectionDeltaWithTransform,this.layoutCorrected,c,v))},a.prototype.registerSharedNode=function(s,c){var f,p,v;this.sharedNodes.has(s)||this.sharedNodes.set(s,new Nae);var g=this.sharedNodes.get(s);g.add(c),c.promote({transition:(f=c.options.initialPromotionConfig)===null||f===void 0?void 0:f.transition,preserveFollowOpacity:(v=(p=c.options.initialPromotionConfig)===null||p===void 0?void 0:p.shouldPreserveFollowOpacity)===null||v===void 0?void 0:v.call(p,c)})},a.prototype.isLead=function(){var s=this.getStack();return s?s.lead===this:!0},a.prototype.getLead=function(){var s,c=this.options.layoutId;return c?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this},a.prototype.getPrevLead=function(){var s,c=this.options.layoutId;return c?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0},a.prototype.getStack=function(){var s=this.options.layoutId;if(s)return this.root.sharedNodes.get(s)},a.prototype.promote=function(s){var c=s===void 0?{}:s,f=c.needsReset,p=c.transition,v=c.preserveFollowOpacity,g=this.getStack();g&&g.promote(this,v),f&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})},a.prototype.relegate=function(){var s=this.getStack();return s?s.relegate(this):!1},a.prototype.resetRotation=function(){var s=this.options.visualElement;if(s){for(var c=!1,f={},p=0;p<zb.length;p++){var v=zb[p],g="rotate"+v;s.getStaticValue(g)&&(c=!0,f[g]=s.getStaticValue(g),s.setStaticValue(g,0))}if(c){s==null||s.syncRender();for(var g in f)s.setStaticValue(g,f[g]);s.scheduleRender()}}},a.prototype.getProjectionStyles=function(s){var c,f,p,v,g,m;s===void 0&&(s={});var y={};if(!this.instance||this.isSVG)return y;if(this.isVisible)y.visibility="";else return{visibility:"hidden"};var b=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,y.opacity="",y.pointerEvents=Pp(s.pointerEvents)||"",y.transform=b?b(this.latestValues,""):"none",y;var w=this.getLead();if(!this.projectionDelta||!this.layout||!w.target){var S={};return this.options.layoutId&&(S.opacity=(f=this.latestValues.opacity)!==null&&f!==void 0?f:1,S.pointerEvents=Pp(s.pointerEvents)||""),this.hasProjected&&!Ea(this.latestValues)&&(S.transform=b?b({},""):"none",this.hasProjected=!1),S}var C=w.animationValues||w.latestValues;this.applyTransformsToTarget(),y.transform=l2(this.projectionDeltaWithTransform,this.treeScale,C),b&&(y.transform=b(C,y.transform));var E=this.projectionDelta,k=E.x,I=E.y;y.transformOrigin="".concat(k.origin*100,"% ").concat(I.origin*100,"% 0"),w.animationValues?y.opacity=w===this?(v=(p=C.opacity)!==null&&p!==void 0?p:this.latestValues.opacity)!==null&&v!==void 0?v:1:this.preserveOpacity?this.latestValues.opacity:C.opacityExit:y.opacity=w===this?(g=C.opacity)!==null&&g!==void 0?g:"":(m=C.opacityExit)!==null&&m!==void 0?m:0;for(var $ in lv)if(C[$]!==void 0){var T=lv[$],N=T.correct,P=T.applyTo,D=N(C[$],w);if(P)for(var j=P.length,F=0;F<j;F++)y[P[F]]=D;else y[$]=D}return this.options.layoutId&&(y.pointerEvents=w===this?Pp(s.pointerEvents)||"":"none"),y},a.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},a.prototype.resetTree=function(){this.root.nodes.forEach(function(s){var c;return(c=s.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(u2),this.root.sharedNodes.clear()},a}()}function Lae(e){e.updateLayout()}function Bae(e){var t,n,r,o,i=(n=(t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)!==null&&n!==void 0?n:e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,c=a.measured;e.options.animationType==="size"?hi(function(C){var E=i.isShared?i.measured[C]:i.layout[C],k=Qi(E);E.min=s[C].min,E.max=E.min+k}):e.options.animationType==="position"&&hi(function(C){var E=i.isShared?i.measured[C]:i.layout[C],k=Qi(s[C]);E.max=E.min+k});var f=Ru();Mu(f,s,i.layout);var p=Ru();i.isShared?Mu(p,e.applyTransform(c,!0),i.measured):Mu(p,s,i.layout);var v=!aD(f),g=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var m=e.relativeParent,y=m.snapshot,b=m.layout;if(y&&b){var w=Pr();Nu(w,i.layout,y.layout);var S=Pr();Nu(S,s,b.actual),sD(w,S)||(g=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:p,layoutDelta:f,hasLayoutChanged:v,hasRelativeTargetChanged:g})}else e.isLead()&&((o=(r=e.options).onExitComplete)===null||o===void 0||o.call(r));e.options.transition=void 0}function Aae(e){e.clearSnapshot()}function u2(e){e.clearMeasurements()}function zae(e){var t=e.options.visualElement;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Fae(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Hae(e){e.resolveTargetDelta()}function _ae(e){e.calcProjection()}function Vae(e){e.resetRotation()}function Wae(e){e.removeLeadSnapshot()}function d2(e,t,n){e.translate=Kn(t.translate,0,n),e.scale=Kn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function f2(e,t,n,r){e.min=Kn(t.min,n.min,r),e.max=Kn(t.max,n.max,r)}function Uae(e,t,n,r){f2(e.x,t.x,n.x,r),f2(e.y,t.y,n.y,r)}function Kae(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var qae={duration:.45,ease:[.4,0,.1,1]};function Xae(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(e.path[r].instance){n=e.path[r];break}var o=n&&n!==e.root?n.instance:document,i=o.querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function p2(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function v2(e){p2(e.x),p2(e.y)}var Gae=lD({attachResizeListener:function(e,t){return hh(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),i0={current:void 0},Yae=lD({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!i0.current){var e=new Gae(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),i0.current=e}return i0.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),Qae=Je(Je(Je(Je({},Rie),Yoe),eae),Cae),Zae=Hne(function(e,t){return $re(e,t,Qae,bae,Yae)});function ty(e,t,n){var r,o,i,a,s;t==null&&(t=100);function c(){var p=Date.now()-a;p<t&&p>=0?r=setTimeout(c,t-p):(r=null,n||(s=e.apply(i,o),i=o=null))}var f=function(){i=this,o=arguments,a=Date.now();var p=n&&!r;return r||(r=setTimeout(c,t)),p&&(s=e.apply(i,o),i=o=null),s};return f.clear=function(){r&&(clearTimeout(r),r=null)},f.flush=function(){r&&(s=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},f}ty.debounce=ty;var Jae=ty;const h2=Ms(Jae);function ese(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:o}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;const i=r||(typeof window>"u"?class{}:window.ResizeObserver);if(!i)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[a,s]=d.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),c=d.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a}),f=t?typeof t=="number"?t:t.scroll:null,p=t?typeof t=="number"?t:t.resize:null,v=d.useRef(!1);d.useEffect(()=>(v.current=!0,()=>void(v.current=!1)));const[g,m,y]=d.useMemo(()=>{const C=()=>{if(!c.current.element)return;const{left:E,top:k,width:I,height:$,bottom:T,right:N,x:P,y:D}=c.current.element.getBoundingClientRect(),j={left:E,top:k,width:I,height:$,bottom:T,right:N,x:P,y:D};c.current.element instanceof HTMLElement&&o&&(j.height=c.current.element.offsetHeight,j.width=c.current.element.offsetWidth),Object.freeze(j),v.current&&!ose(c.current.lastBounds,j)&&s(c.current.lastBounds=j)};return[C,p?h2(C,p):C,f?h2(C,f):C]},[s,o,f,p]);function b(){c.current.scrollContainers&&(c.current.scrollContainers.forEach(C=>C.removeEventListener("scroll",y,!0)),c.current.scrollContainers=null),c.current.resizeObserver&&(c.current.resizeObserver.disconnect(),c.current.resizeObserver=null)}function w(){c.current.element&&(c.current.resizeObserver=new i(y),c.current.resizeObserver.observe(c.current.element),n&&c.current.scrollContainers&&c.current.scrollContainers.forEach(C=>C.addEventListener("scroll",y,{capture:!0,passive:!0})))}const S=C=>{!C||C===c.current.element||(b(),c.current.element=C,c.current.scrollContainers=cD(C),w())};return nse(y,!!n),tse(m),d.useEffect(()=>{b(),w()},[n,y,m]),d.useEffect(()=>b,[]),[S,a,g]}function tse(e){d.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function nse(e,t){d.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function cD(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:o}=window.getComputedStyle(e);return[n,r,o].some(i=>i==="auto"||i==="scroll")&&t.push(e),[...t,...cD(e.parentElement)]}const rse=["x","y","top","bottom","left","right","width","height"],ose=(e,t)=>rse.every(n=>e[n]===t[n]);function a0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ise(e,t,n){ase(e,t),t.set(e,n)}function ase(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function up(e,t){var n=uD(e,t,"get");return sse(e,n)}function sse(e,t){return t.get?t.get.call(e):t.value}function lse(e,t,n){var r=uD(e,t,"set");return cse(e,r,n),n}function uD(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function cse(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}var yl=new WeakMap;class use{constructor(){ise(this,yl,{writable:!0,value:void 0}),a0(this,"register",t=>{up(this,yl).push(t)}),a0(this,"unregister",t=>{let n;for(;(n=up(this,yl).indexOf(t))!==-1;)up(this,yl).splice(n,1)}),a0(this,"backendChanged",t=>{for(const n of up(this,yl))n.backendChanged(t)}),lse(this,yl,[])}}function Ko(e,t,n){dse(e,t),t.set(e,n)}function dse(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function vi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gt(e,t){var n=dD(e,t,"get");return fse(e,n)}function fse(e,t){return t.get?t.get.call(e):t.value}function wl(e,t,n){var r=dD(e,t,"set");return pse(e,r,n),n}function dD(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function pse(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}var ko=new WeakMap,dp=new WeakMap,Oo=new WeakMap,xa=new WeakMap,ss=new WeakMap,g2=new WeakMap,m2=new WeakMap,b2=new WeakMap,s0=new WeakMap,l0=new WeakMap,fp=new WeakMap;class Bl{constructor(t,n,r){if(Ko(this,ko,{writable:!0,value:void 0}),Ko(this,dp,{writable:!0,value:void 0}),Ko(this,Oo,{writable:!0,value:void 0}),Ko(this,xa,{writable:!0,value:void 0}),Ko(this,ss,{writable:!0,value:void 0}),Ko(this,g2,{writable:!0,value:(o,i,a)=>{var s,c;if(!a.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(JSON.stringify(a)));const f=a.backend(o,i,a.options);let p=a.id;const v=!a.id&&f&&f.constructor;if(v&&(p=f.constructor.name),!p)throw new Error("You must specify an 'id' property in your Backend entry: ".concat(JSON.stringify(a),`
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`));if(Gt(this,Oo)[p])throw new Error(`You must specify a unique 'id' property in your Backend entry:
`.concat(JSON.stringify(a)," (conflicts with: ").concat(JSON.stringify(Gt(this,Oo)[p]),")"));return{id:p,instance:f,preview:(s=a.preview)!==null&&s!==void 0?s:!1,transition:a.transition,skipDispatchOnTransition:(c=a.skipDispatchOnTransition)!==null&&c!==void 0?c:!1}}}),vi(this,"setup",()=>{if(!(typeof window>"u")){if(Bl.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");Bl.isSetUp=!0,Gt(this,m2).call(this,window),Gt(this,Oo)[Gt(this,ko)].instance.setup()}}),vi(this,"teardown",()=>{typeof window>"u"||(Bl.isSetUp=!1,Gt(this,b2).call(this,window),Gt(this,Oo)[Gt(this,ko)].instance.teardown())}),vi(this,"connectDragSource",(o,i,a)=>Gt(this,fp).call(this,"connectDragSource",o,i,a)),vi(this,"connectDragPreview",(o,i,a)=>Gt(this,fp).call(this,"connectDragPreview",o,i,a)),vi(this,"connectDropTarget",(o,i,a)=>Gt(this,fp).call(this,"connectDropTarget",o,i,a)),vi(this,"profile",()=>Gt(this,Oo)[Gt(this,ko)].instance.profile()),vi(this,"previewEnabled",()=>Gt(this,Oo)[Gt(this,ko)].preview),vi(this,"previewsList",()=>Gt(this,dp)),vi(this,"backendsList",()=>Gt(this,xa)),Ko(this,m2,{writable:!0,value:o=>{Gt(this,xa).forEach(i=>{i.transition&&o.addEventListener(i.transition.event,Gt(this,s0))})}}),Ko(this,b2,{writable:!0,value:o=>{Gt(this,xa).forEach(i=>{i.transition&&o.removeEventListener(i.transition.event,Gt(this,s0))})}}),Ko(this,s0,{writable:!0,value:o=>{const i=Gt(this,ko);if(Gt(this,xa).some(s=>s.id!==Gt(this,ko)&&s.transition&&s.transition.check(o)?(wl(this,ko,s.id),!0):!1),Gt(this,ko)!==i){var a;Gt(this,Oo)[i].instance.teardown(),Object.keys(Gt(this,ss)).forEach(p=>{const v=Gt(this,ss)[p];v.unsubscribe(),v.unsubscribe=Gt(this,l0).call(this,v.func,...v.args)}),Gt(this,dp).backendChanged(this);const s=Gt(this,Oo)[Gt(this,ko)];if(s.instance.setup(),s.skipDispatchOnTransition)return;const c=o.constructor,f=new c(o.type,o);(a=o.target)===null||a===void 0||a.dispatchEvent(f)}}}),Ko(this,l0,{writable:!0,value:(o,i,a,s)=>Gt(this,Oo)[Gt(this,ko)].instance[o](i,a,s)}),Ko(this,fp,{writable:!0,value:(o,i,a,s)=>{const c="".concat(o,"_").concat(i),f=Gt(this,l0).call(this,o,i,a,s);return Gt(this,ss)[c]={func:o,args:[i,a,s],unsubscribe:f},()=>{Gt(this,ss)[c].unsubscribe(),delete Gt(this,ss)[c]}}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);wl(this,dp,new use),wl(this,Oo,{}),wl(this,xa,[]),r.backends.forEach(o=>{const i=Gt(this,g2).call(this,t,n,o);Gt(this,Oo)[i.id]=i,Gt(this,xa).push(i)}),wl(this,ko,Gt(this,xa)[0].id),wl(this,ss,{})}}vi(Bl,"isSetUp",!1);const vse=(e,t,n)=>new Bl(e,t,n),fD=(e,t)=>({event:e,check:t}),hse=fD("touchstart",e=>{const t=e;return t.touches!==null&&t.touches!==void 0}),gse=fD("pointerdown",e=>e.pointerType=="mouse");var ja;(function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"})(ja||(ja={}));class mse{get delay(){var t;return(t=this.args.delay)!==null&&t!==void 0?t:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var t;return(t=this.args.ignoreContextMenu)!==null&&t!==void 0?t:!1}get enableHoverOutsideTarget(){var t;return(t=this.args.enableHoverOutsideTarget)!==null&&t!==void 0?t:!1}get enableKeyboardEvents(){var t;return(t=this.args.enableKeyboardEvents)!==null&&t!==void 0?t:!1}get enableMouseEvents(){var t;return(t=this.args.enableMouseEvents)!==null&&t!==void 0?t:!1}get enableTouchEvents(){var t;return(t=this.args.enableTouchEvents)!==null&&t!==void 0?t:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var t,n,r,o;return(o=(r=(t=this.args)===null||t===void 0?void 0:t.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&o!==void 0?o:0}get delayMouseStart(){var t,n,r,o;return(o=(r=(t=this.args)===null||t===void 0?void 0:t.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&o!==void 0?o:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var t;if(!((t=this.context)===null||t===void 0)&&t.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var t;return((t=this.args)===null||t===void 0?void 0:t.rootElement)||this.document}constructor(t,n){this.args=t,this.context=n}}function bse(e,t,n,r){return Math.sqrt(Math.pow(Math.abs(n-e),2)+Math.pow(Math.abs(r-t),2))}function yse(e,t,n,r,o){if(!o)return!1;const i=Math.atan2(r-t,n-e)*180/Math.PI+180;for(let a=0;a<o.length;++a){const s=o[a];if(s&&(s.start==null||i>=s.start)&&(s.end==null||i<=s.end))return!0}return!1}const wse={Left:1,Right:2,Center:4},xse={Left:0,Center:1,Right:2};function c0(e){return e.button===void 0||e.button===xse.Left}function Sse(e){return e.buttons===void 0||(e.buttons&wse.Left)===0}function pD(e){return!!e.targetTouches}const Cse=1;function Ese(e){const t=e.nodeType===Cse?e:e.parentElement;if(!t)return;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function kse(e,t){if(e.targetTouches.length===1)return mv(e.targetTouches[0]);if(t&&e.touches.length===1&&e.touches[0].target===t.target)return mv(e.touches[0])}function mv(e,t){return pD(e)?kse(e,t):{x:e.clientX,y:e.clientY}}const ou={[ja.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[ja.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[ja.keyboard]:{keydown:"keydown"}};class Du{profile(){var t;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get document(){return this.options.document}setup(){const t=this.options.rootElement;t&&(qt(!Du.isSetUp,"Cannot have two Touch backends at the same time."),Du.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}teardown(){const t=this.options.rootElement;t&&(Du.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(t,n,r,o=!1){const i=o;this.listenerTypes.forEach(function(a){const s=ou[a][n];s&&t.addEventListener(s,r,i)})}removeEventListener(t,n,r,o=!1){const i=o;this.listenerTypes.forEach(function(a){const s=ou[a][n];s&&t.removeEventListener(s,r,i)})}connectDragSource(t,n){const r=this.handleMoveStart.bind(this,t);return this.sourceNodes.set(t,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(t),this.removeEventListener(n,"start",r)}}connectDragPreview(t,n,r){return this.sourcePreviewNodeOptions.set(t,r),this.sourcePreviewNodes.set(t,n),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDropTarget(t,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const o=i=>{if(!this.document||!r||!this.monitor.isDragging())return;let a;switch(i.type){case ou.mouse.move:a={x:i.clientX,y:i.clientY};break;case ou.touch.move:var s,c;a={x:((s=i.touches[0])===null||s===void 0?void 0:s.clientX)||0,y:((c=i.touches[0])===null||c===void 0?void 0:c.clientY)||0};break}const f=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,p=f&&n.contains(f);if(f===n||p)return this.handleMove(i,t)};return this.addEventListener(this.document.body,"move",o),this.targetNodes.set(t,n),()=>{this.document&&(this.targetNodes.delete(t),this.removeEventListener(this.document.body,"move",o))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(t){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=t,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{t&&!t.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!t||!t.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(t.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(t,n,r){this.getSourceClientOffset=o=>{const i=this.sourceNodes.get(o);return i&&Ese(i)},this.handleTopMoveStartCapture=o=>{c0(o)&&(this.moveStartSourceIds=[])},this.handleMoveStart=o=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(o)},this.handleTopMoveStart=o=>{if(!c0(o))return;const i=mv(o);i&&(pD(o)&&(this.lastTargetTouchFallback=o.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=o=>{if(!c0(o))return;const i=o.type===ou.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,o),i),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(o,i)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(i)},this.handleTopMove=o=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:i,dragOverTargetIds:a}=this,s=this.options.enableHoverOutsideTarget,c=mv(o,this.lastTargetTouchFallback);if(!c)return;if(this._isScrolling||!this.monitor.isDragging()&&yse(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,c.x,c.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&bse(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,c.x,c.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(i,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const f=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(f),this.actions.publishDragSource(),o.cancelable&&o.preventDefault();const p=(a||[]).map(y=>this.targetNodes.get(y)).filter(y=>!!y),v=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(c.x,c.y,p):this.document.elementsFromPoint(c.x,c.y),g=[];for(const y in v){if(!v.hasOwnProperty(y))continue;let b=v[y];for(b!=null&&g.push(b);b;)b=b.parentElement,b&&g.indexOf(b)===-1&&g.push(b)}const m=g.filter(y=>p.indexOf(y)>-1).map(y=>this._getDropTargetId(y)).filter(y=>!!y).filter((y,b,w)=>w.indexOf(y)===b);if(s)for(const y in this.targetNodes){const b=this.targetNodes.get(y);if(f&&b&&b.contains(f)&&m.indexOf(y)===-1){m.unshift(y);break}}m.reverse(),this.actions.hover(m,{clientOffset:c})},this._getDropTargetId=o=>{const i=this.targetNodes.keys();let a=i.next();for(;a.done===!1;){const s=a.value;if(o===this.targetNodes.get(s))return s;a=i.next()}},this.handleTopMoveEndCapture=o=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!Sse(o)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}o.cancelable&&o.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=o=>{o.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new mse(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(ja.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(ja.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(ja.keyboard)}}const Ose=function(t,n={},r={}){return new Du(t,n,r)};var jo=function(){return jo=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},jo.apply(this,arguments)};function Br(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function $se(e){var t=e.isVisible,n=e.ease,r=n===void 0?"easeIn":n,o=e.duration,i=e.variants,a=i===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:i,s=e.children,c=ese({polyfill:wne}),f=c[0],p=c[1].height,v=d.useState(t),g=v[0],m=v[1],y=d.useState(t),b=y[0],w=y[1],S=d.useState(!1),C=S[0],E=S[1],k=function(){E(!1),t||m(!1)};return d.useEffect(function(){E(!0),t?m(!0):w(!1)},[t]),d.useEffect(function(){g&&w(!0)},[p]),de.createElement(Zae.div,{style:C?{overflow:"hidden"}:void 0,onAnimationComplete:k,initial:b?"open":"close",animate:b?"open":"close",inherit:!1,variants:a,transition:{ease:r,duration:Ise(p,o)}},de.createElement("div",{ref:f},g&&s))}function Ise(e,t){if(t)return t;if(!e)return 0;var n=e/36;return Math.round((4+10*Math.pow(n,.25)+n/5)*10)/1500}var Tse=function(e,t){return e.text>t.text?1:e.text<t.text?-1:0},iu=function(e,t){return e.find(function(n){return n.id===t})},vD=function(e,t,n){if(n===0)return!1;var r=e.find(function(o){return o.id===n});return r===void 0?!1:r.parent===t?!0:vD(e,t,r.parent)},l1=function(e){return e.id!==void 0&&e.parent!==void 0&&e.text!==void 0},Ha=function(e,t,n){var r=n.tree,o=n.rootId,i=n.canDrop;if(e===null){if(t===o)return!0;var a=r.find(function(p){return p.id===t});return!!(a&&a.droppable)}else{var s=l1(e)?e.id:null;if(i){var c=i(s,t);if(c!==void 0)return c}if(s===t)return!1;var f=r.find(function(v){return v.id===s}),a=r.find(function(v){return v.id===t});return f===void 0||s===null?t===o||!!(a!=null&&a.droppable):a===void 0?f.parent!==0:f.parent===t||!a.droppable?!1:!vD(r,s,t)}},Pse=function(e,t,n){return e.map(function(r){return r.id===t?jo(jo({},r),{parent:n}):r})},hD=function(e,t,n){if(n===0)return 0;var r=e.filter(function(o){return o.parent===t});return r[n]?e.findIndex(function(o){return o.id===r[n].id}):e.findIndex(function(o){return o.id===r[n-1].id})+1},Mse=function(e,t){return e.findIndex(function(n){return n.id===t})},gD=function(e,t,n,r){var o=Mse(e,t),i=hD(e,n,r);return i=i>o?i-1:i,[o,i]},Nse=function(e,t,n){var r=t<0?e.length+t:t;if(r>=0&&r<e.length){var o=n<0?e.length+n:n,i=e.splice(t,1)[0];e.splice(o,0,i)}},Rse=function(e,t,n,r){var o=gD(e,t,n,r),i=o[0],a=o[1],s=Br([],e,!0);return Nse(s,i,a),s.map(function(c){return c.id===t?jo(jo({},c),{parent:n}):c})},Dse=function(e,t){var n=e.getBoundingClientRect(),r=n.top+n.height/2;return t>r?"down":"up"},ny=function(e,t){var n="",r=0;return e.forEach(function(o,i){var a,s=Dse(o,((a=t.getClientOffset())===null||a===void 0?void 0:a.y)||0);n===""?n=s:n!==s&&(n=s,r=i),i===e.length-1&&s==="down"&&(r=i+1)}),r},y2=function(e,t,n){var r=t.closest('[role="list"]'),o=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return o?ny(o,n):null},jse=function(e,t,n){var r=e.getBoundingClientRect(),o=n.dropTargetOffset,i=r.top+o,a=r.bottom-o;return t>a?"lower":t<i?"upper":"middle"},ry=function(e,t,n,r){var o;if(!t)return null;if(e===null){var i=t.querySelectorAll(':scope > [role="listitem"]');return{id:r.rootId,index:ny(i,n)}}var a=n.getItem(),s=t.querySelector('[role="list"]'),c=jse(t,((o=n.getClientOffset())===null||o===void 0?void 0:o.y)||0,r);if(s){if(c==="upper")if(Ha(a,e.parent,r)){var f=y2(e,t,n);return f===null?null:{id:e.parent,index:f}}else return{id:e.id,index:0};var i=s.querySelectorAll(':scope > [role="listitem"]');return{id:e.id,index:ny(i,n)}}else{if(c==="middle")return{id:e.id,index:0};if(Ha(a,e.parent,r)){var f=y2(e,t,n);return f===null?null:{id:e.parent,index:f}}return null}},Lse=function(e){return e===void 0&&(e={}),{backends:[{id:"html5",backend:Jte,options:e.html5,transition:gse},{id:"touch",backend:Ose,options:e.touch||{enableMouseEvents:!0},preview:!0,transition:hse}]}},Rp=function(e,t){return e.some(function(n){return n.parent===t})},mD=d.createContext({}),Bse=function(e){var t=Kse(e.tree,e.initialOpen),n=t[0],r=t[1],o=r.handleToggle,i=r.handleCloseAll,a=r.handleOpenAll,s=r.handleOpen,c=r.handleClose;d.useImperativeHandle(e.treeRef,function(){return{open:function(m){return s(m,e.onChangeOpen)},close:function(m){return c(m,e.onChangeOpen)},openAll:function(){return a(e.onChangeOpen)},closeAll:function(){return i(e.onChangeOpen)}}});var f=ta().getMonitor(),p=e.canDrop,v=e.canDrag,g=jo(jo({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},e),{openIds:n,onDrop:function(m,y,b){if(m){var w={dragSourceId:m.id,dropTargetId:y,dragSource:m,dropTarget:iu(e.tree,y),monitor:f},S=e.tree;if(iu(S,m.id)||(S=Br(Br([],S,!0),[m],!1)),e.sort===!1){var C=gD(S,m.id,y,b),E=C[1];w.destinationIndex=E,w.relativeIndex=b,e.onDrop(Rse(S,m.id,y,b),w);return}e.onDrop(Pse(S,m.id,y),w)}else{var w={dropTargetId:y,dropTarget:iu(e.tree,y),monitor:f};e.sort===!1&&(w.destinationIndex=hD(e.tree,y,b),w.relativeIndex=b),e.onDrop(e.tree,w)}},canDrop:p?function(m,y){return p(e.tree,{dragSourceId:m??void 0,dropTargetId:y,dragSource:f.getItem(),dropTarget:iu(e.tree,y),monitor:f})}:void 0,canDrag:v?function(m){return v(iu(e.tree,m))}:void 0,onToggle:function(m){return o(m,e.onChangeOpen)}});return de.createElement(mD.Provider,{value:g},e.children)},bD=d.createContext({}),Ase={isLock:!1},zse=function(e){var t=d.useState(Ase.isLock),n=t[0],r=t[1];return de.createElement(bD.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},e.children)},Md=d.createContext({}),pp={dropTargetId:void 0,index:void 0},Fse=function(e){var t=d.useState(pp.dropTargetId),n=t[0],r=t[1],o=d.useState(pp.index),i=o[0],a=o[1],s=function(f,p){r(f),a(p)},c=function(){r(pp.dropTargetId),a(pp.index)};return de.createElement(Md.Provider,{value:{dropTargetId:n,index:i,showPlaceholder:s,hidePlaceholder:c}},e.children)},Hse=function(e){return de.createElement(Bse,jo({},e),de.createElement(zse,null,de.createElement(Fse,null,e.children)))},_se=function(e){var t=d.useContext(bD);d.useEffect(function(){if(e.current){var n=e.current,r=function(p){var v=p.target;(v instanceof HTMLInputElement||v instanceof HTMLTextAreaElement)&&t.lock()},o=function(p){var v=p.target;(v instanceof HTMLInputElement||v instanceof HTMLTextAreaElement)&&t.unlock()},i=function(p){return r(p)},a=function(p){return o(p)},s=function(p){return r(p)},c=function(p){return o(p)},f=new MutationObserver(function(){document.activeElement===document.body&&t.unlock()});return f.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",i),n.addEventListener("mouseout",a),n.addEventListener("focusin",s),n.addEventListener("focusout",c),function(){f.disconnect(),n.removeEventListener("mouseover",i),n.removeEventListener("mouseout",a),n.removeEventListener("focusin",s),n.removeEventListener("focusout",c)}}},[e,t]),d.useEffect(function(){var n;(n=e.current)===null||n===void 0||n.setAttribute("draggable",t.isLock?"false":"true")},[e,t.isLock])},yh={TREE_ITEM:Symbol()},yD=null,wD=function(e){var t=e.target;if(t instanceof HTMLElement){var n=t.closest('[role="listitem"]');e.currentTarget===n&&(yD=n)}},w2=function(e){return wD(e)},x2=function(e){return wD(e)},Vse=function(e,t){var n=Wa();d.useEffect(function(){var s=t.current;return s==null||s.addEventListener("dragstart",w2),s==null||s.addEventListener("touchstart",x2,{passive:!0}),function(){s==null||s.removeEventListener("dragstart",w2),s==null||s.removeEventListener("touchstart",x2)}},[t]);var r=Pte({type:yh.TREE_ITEM,item:function(s){var c=jo({ref:t},e);return n.onDragStart&&n.onDragStart(c,s),c},end:function(s,c){var f=s;n.onDragEnd&&n.onDragEnd(f,c)},canDrag:function(){var s=n.canDrag;return yD!==t.current?!1:s?s(e.id):!0},collect:function(s){return{isDragging:s.isDragging()}}}),o=r[0].isDragging,i=r[1],a=r[2];return[o,i,a]},Wse=function(e){var t=Wa(),n=d.useContext(Md),r=xN({accept:Br([yh.TREE_ITEM],t.extraAcceptTypes,!0),drop:function(c,f){var p=t.rootId,v=t.onDrop,g=n.dropTargetId,m=n.index;f.isOver({shallow:!0})&&g!==void 0&&m!==void 0&&v(l1(c)?c:null,p,m),n.hidePlaceholder()},canDrop:function(c,f){var p=t.rootId;return f.isOver({shallow:!0})?c===void 0?!1:Ha(c,p,t):!1},hover:function(c,f){if(f.isOver({shallow:!0})){var p=t.rootId,v=n.dropTargetId,g=n.index,m=n.showPlaceholder,y=n.hidePlaceholder,b=ry(null,e.current,f,t);if(b===null||!Ha(c,p,t)){y();return}(b.id!==v||b.index!==g)&&m(b.id,b.index)}},collect:function(c){var f=c.getItem();return{isOver:c.isOver({shallow:!0})&&c.canDrop(),dragSource:f}}}),o=r[0],i=o.isOver,a=o.dragSource,s=r[1];return[i,a,s]},Use=function(e,t){var n=Wa(),r=d.useContext(Md),o=xN({accept:Br([yh.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(f,p){var v=r.dropTargetId,g=r.index;p.isOver({shallow:!0})&&v!==void 0&&g!==void 0&&n.onDrop(l1(f)?f:null,v,g),r.hidePlaceholder()},canDrop:function(f,p){if(p.isOver({shallow:!0})){var v=ry(e,t.current,p,n);return v===null?!1:Ha(f,v.id,n)}return!1},hover:function(f,p){if(p.isOver({shallow:!0})){var v=r.dropTargetId,g=r.index,m=r.showPlaceholder,y=r.hidePlaceholder,b=ry(e,t.current,p,n);if(b===null||!Ha(f,b.id,n)){y();return}(b.id!==v||b.index!==g)&&m(b.id,b.index)}},collect:function(f){var p=f.getItem();return{isOver:f.isOver({shallow:!0})&&f.canDrop(),dragSource:p}}}),i=o[0],a=i.isOver,s=i.dragSource,c=o[1];return[a,s,c]},Kse=function(e,t){var n=d.useMemo(function(){return t===!0?e.filter(function(v){return Rp(e,v.id)}).map(function(v){return v.id}):Array.isArray(t)?t:[]},[t]),r=d.useState(n),o=r[0],i=r[1];d.useEffect(function(){return i(n)},[t]);var a=function(v,g){var m=o.includes(v)?o.filter(function(y){return y!==v}):Br(Br([],o,!0),[v],!1);i(m),g&&g(m)},s=function(v){i([]),v&&v([])},c=function(v){var g=e.filter(function(m){return Rp(e,m.id)}).map(function(m){return m.id});i(g),v&&v(g)},f=function(v,g){var m=[];if(Array.isArray(v)){var y=e.filter(function(b){return v.includes(b.id)&&Rp(e,b.id)});m=Br(Br([],o,!0),y.map(function(b){return b.id}),!0).filter(function(b,w,S){return S.indexOf(b)===w})}else m=o.includes(v)?o:Br(Br([],o,!0),[v],!1);i(m),g&&g(m)},p=function(v,g){var m=o.filter(function(y){return Array.isArray(v)?!v.includes(y):y!==v});i(m),g&&g(m)};return[o,{handleToggle:a,handleCloseAll:s,handleOpenAll:c,handleOpen:f,handleClose:p}]},qse=function(){return Mte(function(e){var t=e.getItemType();return{item:e.getItem(),clientOffset:e.getClientOffset(),isDragging:e.isDragging()&&t===yh.TREE_ITEM}})},Wa=function(){var e=d.useContext(mD);if(!e)throw new Error("useTreeContext must be used under TreeProvider");return e},Xse=function(e,t){var n=Wa(),r=n.rootId,o=n.rootProps,i=n.classes,a=(i==null?void 0:i.container)||"";return t&&(i!=null&&i.dropTarget)&&(a="".concat(a," ").concat(i.dropTarget)),e===r&&(i!=null&&i.root)&&(a="".concat(a," ").concat(i.root)),e===r&&(o!=null&&o.className)&&(a="".concat(a," ").concat(o.className)),a=a.trim(),a},Gse=function(e,t,n){t.current?n(t):n(e),d.useEffect(function(){t.current?n(t):n(e)},[t.current])},Yse=function(e){var t=Wa(),n=d.useContext(Md),r=d.useRef(null),o=d.useRef(null),i=t.tree.find(function(N){return N.id===e.id}),a=t.openIds,s=t.classes,c=t.enableAnimateExpand,f=a.includes(e.id),p=Vse(i,r),v=p[0],g=p[1],m=p[2],y=Use(i,r),b=y[0],w=y[1],S=y[2];Gse(r,o,g),Ha(w,e.id,t)&&S(r),d.useEffect(function(){t.dragPreviewRender?m(Zte(),{captureDraggingState:!0}):o.current&&m(r)},[m,t.dragPreviewRender]),_se(r);var C=function(){return t.onToggle(i.id)},E=t.listItemComponent,k=(s==null?void 0:s.listItem)||"";b&&(s!=null&&s.dropTarget)&&(k="".concat(k," ").concat(s.dropTarget)),v&&(s!=null&&s.draggingSource)&&(k="".concat(k," ").concat(s.draggingSource));var I=t.canDrag?t.canDrag(e.id):!0,$=n.dropTargetId===e.id,T={depth:e.depth,isOpen:f,isDragging:v,isDropTarget:$,draggable:I,hasChild:Rp(t.tree,e.id),containerRef:r,handleRef:o,onToggle:C};return de.createElement(E,{ref:r,className:k,role:"listitem"},t.render(i,T),c&&T.hasChild&&de.createElement($se,{isVisible:f},de.createElement(oy,{parentId:e.id,depth:e.depth+1})),!c&&T.hasChild&&f&&de.createElement(oy,{parentId:e.id,depth:e.depth+1}))},S2=function(e){var t=Wa(),n=t.placeholderRender,r=t.placeholderComponent,o=t.classes,i=d.useContext(Md),a=ta(),s=a.getMonitor(),c=s.getItem();if(!n||!c)return null;var f=e.dropTargetId===i.dropTargetId&&(e.index===i.index||e.index===void 0&&e.listCount===i.index);return f?de.createElement(r,{className:(o==null?void 0:o.placeholder)||""},n(c,{depth:e.depth})):null},oy=function(e){var t=Wa(),n=d.useRef(null),r=t.tree.filter(function(b){return b.parent===e.parentId}),o=r,i=typeof t.sort=="function"?t.sort:Tse;if(t.insertDroppableFirst){var a=r.filter(function(b){return b.droppable}),s=r.filter(function(b){return!b.droppable});t.sort===!1?o=Br(Br([],a,!0),s,!0):(a=a.sort(i),s=s.sort(i),o=Br(Br([],a,!0),s,!0))}else t.sort!==!1&&(o=r.sort(i));var c=Wse(n),f=c[0],p=c[1],v=c[2];e.parentId===t.rootId&&Ha(p,t.rootId,t)&&v(n);var g=Xse(e.parentId,f),m=t.rootProps||{},y=t.listComponent;return de.createElement(y,jo({ref:n,role:"list"},m,{className:g}),o.map(function(b,w){return de.createElement(de.Fragment,{key:b.id},de.createElement(S2,{depth:e.depth,listCount:o.length,dropTargetId:e.parentId,index:w}),de.createElement(Yse,{id:b.id,depth:e.depth}))}),de.createElement(S2,{depth:e.depth,listCount:o.length,dropTargetId:e.parentId}))},Qse={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},Zse=function(e){var t=e.clientOffset;if(!t)return{};var n=t.x,r=t.y,o="translate(".concat(n,"px, ").concat(r,"px)");return{pointerEvents:"none",transform:o}},Jse=function(){var e=Wa(),t=qse(),n=t.isDragging,r=t.clientOffset;return!n||!r?null:de.createElement("div",{style:Qse},de.createElement("div",{style:Zse(t)},e.dragPreviewRender&&e.dragPreviewRender(t)))};function ele(e,t){return de.createElement(Hse,jo({},e,{treeRef:t}),e.dragPreviewRender&&de.createElement(Jse,null),de.createElement(oy,{parentId:e.rootId,depth:0}))}var tle=d.forwardRef(ele),nle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const rle=nle;var ole=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:rle}))};const ile=d.forwardRef(ole);var ale={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M911.9 283.9v.5L835.5 865c-1 8-7.9 14-15.9 14H204.5c-8.1 0-14.9-6.1-16-14l-76.4-580.6v-.6 1.6L188.5 866c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.1-.5.1-1 0-1.5z",fill:n}},{tag:"path",attrs:{d:"M773.6 810.6l53.9-409.4-139.8 86.1L512 252.9 336.3 487.3l-139.8-86.1 53.8 409.4h523.3zm-374.2-189c0-62.1 50.5-112.6 112.6-112.6s112.6 50.5 112.6 112.6v1c0 62.1-50.5 112.6-112.6 112.6s-112.6-50.5-112.6-112.6v-1z",fill:n}},{tag:"path",attrs:{d:"M512 734.2c61.9 0 112.3-50.2 112.6-112.1v-.5c0-62.1-50.5-112.6-112.6-112.6s-112.6 50.5-112.6 112.6v.5c.3 61.9 50.7 112.1 112.6 112.1zm0-160.9c26.6 0 48.2 21.6 48.2 48.3 0 26.6-21.6 48.3-48.2 48.3s-48.2-21.6-48.2-48.3c0-26.6 21.6-48.3 48.2-48.3z",fill:t}},{tag:"path",attrs:{d:"M188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6v-.5c.3-6.4-6.7-10.8-12.3-7.4L705 396.4 518.4 147.5a8.06 8.06 0 00-12.9 0L319 396.4 124.3 276.5c-5.5-3.4-12.6.9-12.2 7.3v.6L188.5 865zm147.8-377.7L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4H250.3l-53.8-409.4 139.8 86.1z",fill:t}}]}},name:"crown",theme:"twotone"};const sle=ale;var lle=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:sle}))};const xD=d.forwardRef(lle);var cle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 00-12.6 0l-99.8 127.2a7.98 7.98 0 006.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 00-12.7 0zM360 442a40 40 0 1080 0 40 40 0 10-80 0zm494.6-153.4L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-image",theme:"outlined"};const ule=cle;var dle=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:ule}))};const fle=d.forwardRef(dle);var ple={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder-add",theme:"outlined"};const vle=ple;var hle=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:vle}))};const gle=d.forwardRef(hle);var mle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"}}]},name:"table",theme:"outlined"};const ble=mle;var yle=function(t,n){return d.createElement(Zt,ke({},t,{ref:n,icon:ble}))};const wle=d.forwardRef(yle),SD=e=>{if(e.droppable&&e.fileType!=="workspace")return nt.jsx(xD,{size:24});switch(e.fileType){case"image":return nt.jsx(fle,{size:24});case"csv":return nt.jsx(wle,{size:24});case"text":return nt.jsx(tU,{size:24});case"workspace":return nt.jsx(gle,{size:24});default:return null}},xle="_root_1cexp_1",Sle="_isSelected_1cexp_15",Cle="_expandIconWrapper_1cexp_20",Ele="_isOpen_1cexp_32",kle="_labelGridItem_1cexp_36",Ole="_pipeY_1cexp_42",$le="_pipeX_1cexp_49",au={root:xle,isSelected:Sle,expandIconWrapper:Cle,isOpen:Ele,labelGridItem:kle,pipeY:Ole,pipeX:$le},Ile=24,Tle=e=>{const{droppable:t,data:n}=e.node,r=e.depth*Ile,{Paragraph:o}=SZ,i=f=>{f.stopPropagation(),e.onToggle(e.node.id)},a=()=>e.onSelect(e.node),s=f=>{f.stopPropagation();const p=app.workspace.getLeafById(String(e.node.id));p&&(app.workspace.setActiveLeaf(p),a())},c=f=>{f.stopPropagation(),f.preventDefault();const p=new $e.Menu;p.addItem(v=>{v.setTitle("Not Ready Yet").setIcon("surfing").onClick(()=>{new $e.Notice("Not Ready Yet")})}),p.showAtPosition({x:f.clientX,y:f.clientY})};return nt.jsxs("div",{className:`tree-node ${au.root} ${e.isSelected?au.isSelected:""}`,style:{paddingInlineStart:r},onClick:s,onContextMenu:c,children:[nt.jsx("div",{className:`${au.expandIconWrapper} ${e.isOpen?au.isOpen:""}`,children:e.hasChild&&nt.jsx(ile,{onClick:i,size:24})}),nt.jsx("div",{children:nt.jsx(SD,{droppable:t||!1,fileType:n==null?void 0:n.fileType})}),nt.jsx("div",{className:au.labelGridItem,children:nt.jsx(o,{ellipsis:{rows:1,expandable:!1,tooltip:!1},style:{marginBottom:0},children:`${e.node.text}`})})]})},Ple="_root_1k2x2_1",Mle={root:Ple},Nle=e=>{const t=e.depth*24;return nt.jsx("div",{className:Mle.root,style:{left:t}})},Rle="_app_byfxz_1",Dle="_container_byfxz_7",jle="_treeRoot_byfxz_11",Lle="_draggingSource_byfxz_15",Ble="_placeholderContainer_byfxz_19",Ale="_dropTarget_byfxz_23",xl={app:Rle,container:Dle,treeRoot:jle,draggingSource:Lle,placeholderContainer:Ble,dropTarget:Ale},zle="_root_wotdi_1",Fle="_icon_wotdi_16",Hle="_label_wotdi_17",u0={root:zle,icon:Fle,label:Hle},_le=e=>{var n;const t=e.monitorProps.item;return nt.jsxs("div",{className:u0.root,children:[nt.jsx("div",{className:u0.icon,children:nt.jsx(SD,{droppable:t.droppable||!1,fileType:(n=t==null?void 0:t.data)==null?void 0:n.fileType})}),nt.jsx("div",{className:u0.label,children:t.text})]})};class Vle extends $e.Modal{constructor(t,n,r){super(t),this.onSubmit=r}onOpen(){var n;const{contentEl:t}=this;(n=t.parentElement)==null||n.classList.add("wb-workspace-modal"),t.createEl("h2",{text:"Workspace Name"}),new $e.Setting(t).setName("Name").addText(r=>r.onChange(o=>{this.result=o})),new $e.Setting(t).addButton(r=>r.setButtonText("Submit").setCta().onClick(()=>{this.close(),this.onSubmit(this.result)}))}onClose(){const{contentEl:t}=this;t.empty()}}const Wle=e=>{const t=[];for(let n=0;n<e;n++)t.push((16*Math.random()|0).toString(16));return t.join("")},Ule=()=>{const[e,t]=d.useState(),n=de.useCallback(o=>t(o),[]),r=de.useMemo(()=>({rootElement:e}),[e]);return{dndArea:e,handleRef:n,html5Options:r}};function Kle(e){const[t,n]=d.useState(e.plugin.settings.treeData||[]),r=m=>n(m),{dndArea:o,handleRef:i,html5Options:a}=Ule(),[s,c]=d.useState(null),f=m=>{c(m)},p=m=>{const y=new $e.Menu;y.addItem(b=>{b.setTitle("New Group").setIcon("folder").onClick(()=>{new Vle(e.plugin.app,e.plugin,w=>{const S={id:Wle(16),parent:0,droppable:!0,text:w,data:{fileType:"workspace",fileSize:"",icon:"folder"}};n([...t,S])}).open()})}),y.showAtPosition({x:m.clientX,y:m.clientY})};de.useEffect(()=>{const m=t.findIndex(w=>{var S;return((S=w.data)==null?void 0:S.fileType)==="site"});if(m===-1)return;const y=String(t[m].id);if(!app.workspace.getLeafById(y)){n([]),e.plugin.settings.treeData=[],e.plugin.settingsTab.applySettingsUpdate();return}t&&(e.plugin.settings.treeData=t,e.plugin.settingsTab.applySettingsUpdate())},[t]),de.useEffect(()=>{if(t.length>0)return;const m=e.plugin.app.workspace.getLeavesOfType(An),y=m.map(b=>({id:b.id,parent:0,droppable:!0,text:b.view.currentTitle,data:{fileType:"site",fileSize:"",icon:b.view.favicon}}));return n([...t,...y]),()=>{m.forEach(b=>{g(b.id)&&(n([...t,{id:b.id,parent:0,droppable:!0,text:b.view.currentTitle,data:{fileType:"site",fileSize:"",icon:b.view.favicon}}]),b.view.webviewEl.addEventListener("dom-ready",()=>{v(b.view)}))})}},[]);const v=de.useCallback(m=>{n(y=>{const b=y.findIndex(w=>w.id===m.leaf.id);if(b!==-1){const w=y[b];return[...y.slice(0,b),{...w,text:m.currentTitle,data:{...w.data,icon:m.favicon}},...y.slice(b+1)]}else return[...y,{id:m.leaf.id,parent:0,droppable:!0,text:m.currentTitle,data:{fileType:"site",fileSize:"",icon:m.favicon}}]})},[]),g=m=>!t.some(y=>y.id===m);return e.plugin.app.workspace.on("layout-change",()=>{const m=e.plugin.app.workspace.getActiveViewOfType($e.ItemView);if((m==null?void 0:m.getViewType())===An&&g(m.leaf.id)){v(m),m.webviewEl.addEventListener("dom-ready",()=>{v(m)});return}if(e.plugin.app.workspace.getLeavesOfType(An).length===0){n([]);return}}),t.length>0?nt.jsx("div",{ref:i,className:xl.container,children:nt.jsx(ste,{backend:vse,options:Lse({html5:{rootElement:o}}),children:nt.jsx("div",{className:xl.app,onContextMenu:p,children:nt.jsx(tle,{tree:t,rootId:0,render:(m,{depth:y,isOpen:b,hasChild:w,onToggle:S})=>nt.jsx(Tle,{node:m,depth:y,isOpen:b,onToggle:S,hasChild:w,isSelected:m.id===(s==null?void 0:s.id),onSelect:f}),dragPreviewRender:m=>nt.jsx(_le,{monitorProps:m}),onDrop:r,classes:{root:xl.treeRoot,draggingSource:xl.draggingSource,placeholder:xl.placeholderContainer},sort:!1,insertDroppableFirst:!1,canDrop:(m,{dragSource:y,dropTargetId:b})=>{if((y==null?void 0:y.parent)===b)return!0},dropTargetOffset:10,placeholderRender:(m,{depth:y})=>nt.jsx(Nle,{node:m,depth:y})})})})}):nt.jsx("div",{className:`${xl.app} tab-tree-empty-container`,children:nt.jsxs("div",{className:"tab-tree-empty-state",children:[nt.jsx(xD,{size:64,width:64,height:64}),nt.jsx("span",{children:"No surfing tabs open"})]})})}const fu="surfing-tab-tree";class qle extends $e.ItemView{constructor(t,n){super(t),this.plugin=n,this.plugin=n}getViewType(){return fu}getDisplayText(){return"Surfing Tab Tree"}getIcon(){return"chrome"}async onOpen(){yv.createRoot(this.containerEl).render(nt.jsx(de.StrictMode,{children:nt.jsx(Kle,{plugin:this.plugin})}))}}class Xle extends $e.Component{constructor(t,n){super(),this.plugin=t,this.parent=n}onload(){this.listEl=this.parent.createEl("div",{cls:"wb-last-opened-files"});const t=this.plugin.app.workspace.getLastOpenFiles().slice(0,8);for(const n of t){const r=this.listEl.createEl("button",{cls:"wb-last-opened-file"}),o=r.createEl("span",{cls:"wb-last-opened-file-icon"});$e.setIcon(o,"file-text"),r.createEl("span",{cls:"wb-last-opened-file-name",text:n}),r.onclick=async()=>{await this.plugin.app.workspace.openLinkText(n,n,!1)}}}onunload(){super.onunload(),this.listEl.empty(),this.listEl.detach()}}class Gle extends $e.Plugin{constructor(){super(...arguments),this.applyURLDebounceTimer=0,this.urlOpened=!1}async onload(){await this.loadSettings(),this.checkWebBrowser(),this.settingsTab=new Mj(this.app,this),this.addSettingTab(this.settingsTab),this.registerView(An,t=>new Qt(t,this)),this.registerView(Pb,t=>new AJ(t)),this.registerView(fu,t=>new qle(t,this)),this.settings.bookmarkManager.openBookMark&&this.registerView(gi,t=>new RJ(t,this));try{this.settings.enableHtmlPreview&&this.registerExtensions(Tb,Pb)}catch{new $e.Notice(`File extensions ${Tb} had been registered by other plugin!`)}this.openTabTreeView(),this.updateEmptyLeaves(!1),this.registerContextMenu(),this.registerCustomURI(),this.registerCodeBlock(),this.registerHoverPopover(),this.patchMarkdownView(),this.patchWindowOpen(),this.patchMarkdownView(),$e.requireApiVersion("1.0.4")&&this.patchEditMode(),this.onLayoutChangeEventRef=this.app.workspace.on("layout-change",()=>{const t=this.app.workspace.getActiveViewOfType($e.ItemView);t&&this.addHeaderAndSearchBar(t)}),this.registerCommands(),this.registerCustomIcon(),this.patchEmptyView(),this.patchMarkdownPreviewRenderer(),this.patchProperty(),$e.requireApiVersion("1.1.0")&&this.settings.useWebview&&(this.patchCanvasNode(),this.patchCanvas()),this.registerEmbededHTML(),this.settings.bookmarkManager.openBookMark&&this.registerRibbon()}onunload(){this.app.workspace.detachLeavesOfType(An),this.app.workspace.detachLeavesOfType(gi),this.app.workspace.detachLeavesOfType(fu),this.app.workspace.offref(this.onLayoutChangeEventRef),this.updateEmptyLeaves(!0),this.unRegisterEmbededHTML(),$e.requireApiVersion("1.1.0")&&this.settings.useWebview&&this.refreshAllRelatedView()}openTabTreeView(){this.app.workspace.onLayoutReady(this.onLayoutReady.bind(this))}onLayoutReady(){this.app.workspace.getLeavesOfType(fu).length||this.app.workspace.getLeftLeaf(!1).setViewState({type:fu})}registerRibbon(){this.addRibbonIcon("bookmark",gi,async()=>{const t=this.app.workspace;t.detachLeavesOfType(gi),await t.getLeaf(!1).setViewState({type:gi}),t.revealLeaf(t.getLeavesOfType(gi)[0])})}addHeaderAndSearchBar(t){if(!t||t.getViewType()!="empty"&&t.getViewType()!=="home-tab-view")return;if(!t.headerEl.children[2].hasClass("web-browser-header-bar")){const r=new Ib(t.headerEl.children[2],this,t);r.onLoad(),this.settings.showSearchBarInPage||r.focus(),r.addOnSearchBarEnterListener(o=>{Qt.spawnWebBrowserView(!1,{url:o})})}if(app.plugins.getPlugin("home-tab"))return;this.settings.randomBackground&&t.contentEl.toggleClass("wb-random-background",!0);const n=t.contentEl.children[0].hasClass("empty-state")?t.contentEl.children[0]:null;if(n&&!n.hasClass("wb-page-search-bar")&&this.settings.showSearchBarInPage){const r=n.createEl("div",{cls:"wb-search-bar-container"});n==null||n.addClass("wb-page-search-bar");const o=new HJ(r,t,this);if(this.settings.lastOpenedFiles&&new Xle(this,o.inPageSearchBarContainerEl).onload(),this.settings.useIconList){new _J(n,t,this);const i=n.querySelector(".empty-state-container");i&&i.addClass("wb-empty-actions")}o.focus(),o.addOnSearchBarEnterListener(i=>{i.trim()===""||this.settings.showOtherSearchEngines||Qt.spawnWebBrowserView(!1,{url:i})})}}removeHeaderAndSearchBar(t){var n,r,o,i,a;t&&(t.getViewType()!="empty"&&t.getViewType()!=="home-tab-view"||(t.headerEl.children[2].hasClass("wb-header-bar")&&(t.headerEl.children[2].empty(),t.headerEl.children[2].removeClass("wb-header-bar")),(n=t.contentEl.children[1])!=null&&n.hasClass("surfing-settings-icon")&&((r=t.contentEl.children[1])==null||r.detach()),!app.plugins.getPlugin("home-tab")&&t.contentEl.children[0].hasClass("wb-page-search-bar")&&this.settings.showSearchBarInPage&&((o=t.contentEl.children[0].children[1])==null||o.detach(),(i=t.contentEl.children[0].children[1])==null||i.empty(),(a=t.contentEl.children[0].children[1])==null||a.detach(),t.contentEl.children[0].removeClass("wb-page-search-bar"))))}updateEmptyLeaves(t){const n=this.app.workspace.getLeavesOfType("empty"),r=this.app.workspace.getLeavesOfType("home-tab-view");[...n,...r].forEach(i=>{i.view instanceof $e.ItemView&&(t||this.addHeaderAndSearchBar(i.view),t&&this.removeHeaderAndSearchBar(i.view))})}registerCustomURI(){this.settings.openInObsidianWeb&&this.registerObsidianProtocolHandler("web-open",async t=>{let n=t.url;n&&(decodeURI(n)!==n&&(n=decodeURI(n).toString().replace(/\s/g,"%20")),this.settings.bookmarkManager.saveBookMark?new Yle(this.app,n,this).open():Qt.spawnWebBrowserView(!0,{url:n}))})}registerContextMenu(){this.registerEvent(this.app.workspace.on("editor-menu",(t,n,r)=>{if(!n)return;if(n.getSelection().length===0){const i=n.getClickableTokenAt(n.getCursor());i&&i.type==="external-link"&&(t.addItem(a=>{a.setIcon("surfing").setTitle(Ne("Open With Surfing")).onClick(()=>{Qt.spawnWebBrowserView(!0,{url:i.text})})}).addItem(a=>{a.setIcon("surfing").setTitle(Ne("Open With External Browser")).onClick(()=>{window.open(i.text,"_blank","external")})}),app.plugins.getPlugin("obsidian-hover-editor")&&t.addItem(a=>{a.setIcon("surfing").setTitle("Open With Hover Editor").onClick(async()=>{var f;if(!app.plugins.getPlugin("obsidian-hover-editor")){new $e.Notice("Please install obsidian-hover-editor plugin first");return}const c=await((f=app.plugins.getPlugin("obsidian-hover-editor"))==null?void 0:f.spawnPopover(r.contentEl));c&&c.setViewState({type:"surfing-view",active:!0,state:{url:i.text}})})}));return}const o=n.getSelection();t.addItem(i=>{const a=[...bi,...this.settings.customSearchEngine],s=i.setTitle("Search In Surfing").setIcon("search").setSubmenu();a.forEach(c=>{s.addItem(f=>{f.setIcon("search").setTitle(c.name).onClick(()=>{Qt.spawnWebBrowserView(!0,{url:c.url+o})})})})})}))}registerCommands(){this.addCommand({id:"open-current-url-with-external-browser",name:Ne("Open Current URL In External Browser"),checkCallback:n=>{var o;const r=this.app.workspace.getActiveViewOfType(Qt);if(r)return n||window.open((o=r.getState())==null?void 0:o.url,"_blank"),!0}}),this.addCommand({id:"clear-current-page-history",name:Ne("Clear Current Page History"),checkCallback:n=>{const r=this.app.workspace.getActiveViewOfType(Qt);if(r)return n||r.clearHistory(),!0}}),this.addCommand({id:"open-inspecter",name:"Open Inspecter",checkCallback:n=>{const r=this.app.workspace.getActiveViewOfType(Qt);if(r)return n||r.openInpecter(),!0}}),this.addCommand({id:"refresh-page",name:Ne("Refresh Current Page"),checkCallback:n=>{const r=this.app.workspace.getActiveViewOfType(Qt);if(r)return n||r.refresh(),!0}}),this.addCommand({id:"toggle-same-tab-globally",name:Ne("Toggle Same Tab In Web Browser"),callback:async()=>{this.settings.openInSameTab=!this.settings.openInSameTab,await this.saveSettings()}}),this.addCommand({id:"get-current-timestamp",name:Ne("Get Current Timestamp from Web Browser"),editorCallback:(n,r)=>{var c;const o=this.app.workspace.getLeavesOfType("surfing-view");if(o.length===0)return;const a=o.sort((f,p)=>p.activeTime-f.activeTime)[0].view,s=(c=a.getState())==null?void 0:c.url;s!=null&&s.contains("bilibili")&&a.getCurrentTimestamp(n)}}),this.addCommand({id:"search-in-current-page-title-bar",name:Ne("Search In Current Page Title Bar"),callback:()=>{const n=this.app.workspace.getActiveViewOfType($e.MarkdownView);if(!n||n.headerEl.childNodes.length>4)return;const r=new Ib(n.headerEl,this,n,!1);r.onLoad(),r.addOnSearchBarEnterListener(o=>{Qt.spawnWebBrowserView(!1,{url:o})}),r.focus()}}),[...bi,...this.settings.customSearchEngine].forEach(n=>{this.addCommand({id:"using"+n.name.replace(/\s/g,"-")+"-to-search",name:Ne("Using ")+n.name+Ne(" to search"),editorCallback:(r,o)=>{if(r.getSelection().length===0)return;const i=r.getSelection();Qt.spawnWebBrowserView(!0,{url:n.url+i})}})}),this.addCommand({id:"toggle-dark-mode",name:Ne("Toggle Dark Mode"),callback:async()=>{this.settings.darkMode=!this.settings.darkMode,await this.saveSettings();const n=this.app.workspace.getActiveViewOfType(Qt);n&&n.refresh()}}),this.addCommand({id:"focus-on-current-search-bar",name:Ne("Focus On Current Search Bar"),checkCallback:n=>{const r=this.app.workspace.getActiveViewOfType(Qt);if(r){if(!n){const o=r.headerBar;o&&o.focus()}return!0}}}),this.addCommand({id:"copy-link-to-highlight",name:Ne("Copy Link to Highlight"),checkCallback:n=>{const r=this.app.workspace.getActiveViewOfType(Qt);if(r)return n||r.copyHighLight(),!0}}),this.addCommand({id:"copy-surfing-tabs-as-markdown",name:"Copy Surfing Tabs as Markdown",callback:()=>{const n=app.workspace.getLeavesOfType("surfing-view");if(n.length===0)return;n.sort((o,i)=>i.activeTime-o.activeTime);let r="";n.forEach(o=>{const i=o.view,a=i.currentUrl;if(!a)return;const s=i.currentTitle;s&&(r.length===0?r=`- [${s}](<${a}>)`:r+=`
- [${s}](<${a}>)`)});try{navigator.clipboard.writeText(r)}catch{new $e.Notice(Ne("Copy failed, you may focus on surfing view, click the title bar, and try again."))}}})}registerCustomIcon(){$e.addIcon("surfing",'<svg t="1669432317981" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1590" data-darkreader-inline-fill="" width="100" height="100"><path d="M330.926 1023.978c-11.78 0-21.328-9.562-21.328-21.344v-42.652c0-11.782 9.546-21.344 21.328-21.344s21.342 9.562 21.342 21.344v42.652c0 11.782-9.56 21.344-21.342 21.344z" fill="#EAAD7A" p-id="1591" data-darkreader-inline-fill="" style="--darkreader-inline-fill:#e2a36a;"></path><path d="M650.892 273.08C624.644 115.932 579.958 16.656 578.052 12.532a21.332 21.332 0 0 0-25.904-11.5c-1.406 0.468-35.186 11.28-70.262 24.842-20.936 8.062-37.998 15.466-50.7 21.936-22.046 11.25-32.014 20.092-35.358 31.404-2.578 7.188-24.764 54.842-48.232 105.246-39.138 84.088-92.746 199.27-136.086 298.016-23.796 54.248-41.92 97.714-53.84 129.212-21.952 57.998-20.89 69.652-17.204 78.872 4.172 10.466 13.282 21.842 82.808 55.342 36.28 17.466 85.76 39.278 147.07 64.902 104.088 43.464 207.894 83.372 208.926 83.746 2.468 0.968 5.062 1.438 7.656 1.438 3.124 0 6.218-0.688 9.124-2.062a21.284 21.284 0 0 0 11.124-12.532c35.308-106.152 55.808-217.832 60.84-331.952 4.034-91.246-1.716-184.21-17.122-276.362z" fill="#ED5564" p-id="1592" data-darkreader-inline-fill="" style="--darkreader-inline-fill:#cc5b60;"></path><path d="M650.892 273.08C624.644 115.932 579.958 16.656 578.052 12.532a21.332 21.332 0 0 0-25.904-11.5c-0.656 0.218-8.31 2.686-19.842 6.592a21.938 21.938 0 0 1 3.094 4.906c1.89 4.124 46.59 103.4 72.84 260.548 15.376 92.152 21.154 185.116 17.124 276.362-5.06 114.12-25.53 225.798-60.872 331.952a21.216 21.216 0 0 1-3.282 6.156c11.28 4.406 17.81 6.906 18.06 7 2.468 0.968 5.062 1.438 7.656 1.438 3.124 0 6.218-0.688 9.124-2.062a21.284 21.284 0 0 0 11.124-12.532c35.308-106.152 55.808-217.832 60.84-331.952 4.034-91.244-1.716-184.208-17.122-276.36z" fill="#FFFFFF" opacity=".2" p-id="1593" data-darkreader-inline-fill="" style="--darkreader-inline-fill:#ebe3d5;"></path><path d="M181.622 874.642c0 2.468 0.406 4.938 1.266 7.282 0.954 2.624 9.89 26.124 32.092 49.934 21.014 22.562 58.2 49.436 115.948 49.436h383.996c128.744 0 186.428-91.588 188.834-95.494a21.314 21.314 0 0 0 3.156-11.156H181.622z" fill="#F4BE8E" p-id="1594" data-darkreader-inline-fill="" style="--darkreader-inline-fill:#ecb177;"></path><path d="M685.924 584.064c-6.782-2.25-13.532-3.876-19.562-5.062a1292.052 1292.052 0 0 1-3.656 42.81c12.844 3.032 24.876 7.936 29.188 13.686-7.25 3.718-26.344 10.906-73.402 17.844-42.218 6.218-97.95 11-161.196 13.75-122.15 5.342-251.97 2.376-315.686-7.218-11.656-1.782-22.514 6.25-24.28 17.904-1.75 11.656 6.264 22.53 17.92 24.28 44.826 6.75 118.102 10.376 199.598 10.376 39.28 0 80.496-0.844 121.336-2.594 64.154-2.718 121.274-7.5 165.118-13.78 71.778-10.312 92.806-22.438 102.368-30.686 10.406-8.938 12.594-18.75 12.594-25.376 0-14.688-6.562-41.466-50.34-55.934z" fill="#434A54" p-id="1595" data-darkreader-inline-fill="" style="--darkreader-inline-fill:#555755;"></path></svg>')}registerCodeBlock(){this.registerMarkdownCodeBlockProcessor("surfing",(t,n,r)=>{const o=$e.parseYaml(t);if(!o||!o.url)return;const i=o.url;n.toggleClass("surfing-embed-website",!0);const a=n.createEl("div",{cls:"surfing-embed-website-container"});new $p(a,i).onload()})}registerHoverPopover(){this.settings.hoverPopover&&(this.registerEditorExtension(Z4.EditorView.domEventHandlers({mouseover:(t,n)=>{var r;if($e.Keymap.isModifier(t,"Mod")){if(!t.target.hasClass("cm-underline")&&!t.target.hasClass("external-link"))return;const i=(r=n.state.field($e.editorInfoField).editMode)==null?void 0:r.editor,a=n.posAtDOM(t.target),s=i.offsetToPos(a),c=i.getClickableTokenAt(s);if(!c||!c.text.trim().startsWith("http"))return;const f=new $e.HoverPopover(n,t.target,100);f.hoverEl.toggleClass("surfing-hover-popover",!0);const p=f.hoverEl.createEl("div",{cls:"surfing-hover-popover-container"});new $p(p,c.text).onload()}}})),this.registerMarkdownPostProcessor((t,n)=>{t.querySelectorAll("a").forEach(r=>{r.onmouseover=o=>{if(!r.hasClass("external-link")||!r.href||!r.href.trim().startsWith("http"))return;const i=new $e.HoverPopover(n.containerEl,o.target,100);i.hoverEl.toggleClass("surfing-hover-popover",!0);const a=i.hoverEl.createEl("div",{cls:"surfing-hover-popover-container"});new $p(a,r.href).onload()}})}))}checkWebBrowser(){app.plugins.getPlugin("obsidian-web-browser")&&new $e.Notice(Ne("You enabled obsidian-web-browser plugin, please disable it/disable surfing to avoid conflict."),4e3),app.vault.getConfig("showViewHeader")||new $e.Notice(Ne("You didn't enable show tab title bar in apperance settings, please enable it to use surfing happily."),4e3)}patchMarkdownView(){this.register(wa($e.MarkdownView.prototype,{triggerClickableToken:t=>function(n,r,...o){if(n.type==="external-link"){if(r==="tab"||r==="window"){window.open(n.text,"_blank","external");return}const i=n.text!==decodeURI(n.text)?decodeURI(n.text):n.text;Zf(i)?Qt.spawnWebBrowserView(!0,{url:i}):window.open(i,"_blank","external");return}return t.call(this,n,r,...o)}}))}patchEditMode(){const t=()=>{var i;const n=(i=app.workspace.getLeavesOfType("markdown").first())==null?void 0:i.view;if(!n)return!1;const r=n.editMode??n.sourceMode;if(!r)throw new Error("Failed to patch external link: no edit view found");const o=r.constructor;return this.register(wa(o.prototype,{triggerClickableToken:a=>function(s,c,...f){if(s.type==="external-link"){if(c==="tab"||c==="window"){window.open(s.text,"_blank","external");return}const p=s.text!==decodeURI(s.text)?decodeURI(s.text):s.text;Zf(p)?Qt.spawnWebBrowserView(!0,{url:p}):window.open(p,"_blank","external");return}return a.call(this,s,c,...f)}})),!0};this.app.workspace.onLayoutReady(()=>{if(!t()){const n=app.workspace.on("layout-change",()=>{t()&&app.workspace.offref(n)});this.registerEvent(n)}})}patchWindowOpen(){const t=()=>{clearTimeout(this.applyURLDebounceTimer),this.urlOpened=!0,this.applyURLDebounceTimer=window.setTimeout(()=>{this.urlOpened=!1},300)},n=()=>this.urlOpened,r=wa(window,{open:o=>function(i,a,s){let c="";return typeof i=="string"?c=i:i instanceof URL&&(c=i.toString()),decodeURI(c)!==c&&(c=decodeURI(c).toString().replace(/\s/g,"%20")),c==="about:blank"&&s||!Zf(c)||c!=="about:blank"&&(a==="_blank"||a==="_self")||s==="external"?o(i,a,s):(c&&!a&&!s&&!n()&&(Qt.spawnWebBrowserView(!0,{url:c}),t()),null)}});this.register(r)}patchMarkdownPreviewRenderer(){const t=()=>{clearTimeout(this.applyURLDebounceTimer),this.urlOpened=!0,this.applyURLDebounceTimer=window.setTimeout(()=>{this.urlOpened=!1},300)},n=()=>this.urlOpened,r=wa($e.MarkdownPreviewRenderer,{registerDomEvents:o=>function(i,a,...s){return i==null||i.on("click",".external-link",(c,f)=>{if(c.preventDefault(),f){const p=f.getAttribute("href");if(p){if(c.ctrlKey||c.metaKey){window.open(p,"_blank","external"),t();return}Zf(p)&&!n()?(Qt.spawnWebBrowserView(!0,{url:p}),t()):window.open(p,"_blank","external");return}}}),o.call(this,i,a,...s)}});this.register(r)}patchProperty(){if(!$e.requireApiVersion("1.4.0"))return;const t=()=>{var a,s;const n=this.app.workspace.activeEditor,r=(a=n==null?void 0:n.metadataEditor)==null?void 0:a.rendered.filter(c=>c.entry.type==="text");if(!(r!=null&&r.length))return!1;const o=r[0];if(!o)return!1;const i=o.rendered;return this.register(wa(i.constructor.prototype,{render:c=>async function(...f){var g;c.apply(this,...f);const p=this.linkTextEl,v=p.cloneNode(!0);(g=p.parentNode)==null||g.replaceChild(v,p),v.onclick=m=>{if(!(m.button!==0&&m.button!==1))if(m.preventDefault(),this.isWikilink())this.ctx.app.workspace.openLinkText(this.getLinkText(),this.ctx.sourcePath,$e.Keymap.isModEvent(m),{active:!0});else if(Hk(this.value)){if($e.Keymap.isModEvent(m)){window.open(this.value,"_blank");return}Qt.spawnWebBrowserView(!0,{url:this.value});return}else _k(this.value)&&window.open("mailto:"+this.value,"_blank")},v.oncontextmenu=m=>{m.preventDefault();const y=new $e.Menu().addSections(["title","correction","spellcheck","open","selection","clipboard","action","view","info","","danger"]);this.isWikilink()?(m.preventDefault(),this.ctx.app.workspace.handleLinkContextMenu(y,this.getLinkText(),this.ctx.sourcePath)):Hk(this.value)?(m.preventDefault(),this.ctx.app.workspace.handleExternalLinkContextMenu(y,this.value)):_k(this.value)&&(m.preventDefault(),this.ctx.app.workspace.handleExternalLinkContextMenu(y,"mailto:"+this.value)),y.showAtMouseEvent(m)}}})),(s=n==null?void 0:n.leaf)==null||s.rebuildView(),!0};this.app.workspace.onLayoutReady(()=>{if(!t()){const n=this.app.workspace.on("layout-change",()=>{t()&&this.app.workspace.offref(n)});this.registerEvent(n)}})}patchEmptyView(){const t=()=>{const n=this.app.workspace.getLeavesOfType("empty").first(),r=n==null?void 0:n.view,o=this;if(!r)return!1;const i=r.constructor;return this.register(wa(i.prototype,{onOpen:a=>function(...s){const c=o.app.plugins.getPlugin("surfing").settings;if(!this.contentEl.querySelector(".wb-bookmark-bar")&&c.bookmarkManager.openBookMark&&(this.contentEl.classList.add("mod-wb-bookmark-bar"),new lN(this,this.plugin).onload()),!this.contentEl.querySelector(".surfing-settings-icon")){const f=this.contentEl.createDiv({cls:"surfing-settings-icon"});f.addEventListener("click",()=>{o.app.setting.open(),o.app.setting.openTabById("surfing")}),$e.setIcon(f,"settings")}return a.call(this,...s)}})),n==null||n.rebuildView(),!0};this.app.workspace.onLayoutReady(()=>{if(!t()){const n=app.workspace.on("layout-change",()=>{t()&&app.workspace.offref(n)});this.registerEvent(n)}})}patchCanvasNode(){const t=()=>{var s;const n=(s=app.workspace.getLeavesOfType("canvas").first())==null?void 0:s.view,r=this;if(!n)return!1;const i=(c=>{for(const[,f]of c)if(f.url!==void 0)return f;return!1})(n.canvas.nodes);if(!i)return!1;const a=wa(i==null?void 0:i.constructor.prototype,{render(c){return function(){c.call(this),!this.canvas.isDragging&&new WJ(this,r,this==null?void 0:this.canvas).onload()}}});return this.register(a),i.render(),!0};this.app.workspace.onLayoutReady(()=>{if(!t()){const n=app.workspace.on("layout-change",()=>{t()&&app.workspace.offref(n)});this.registerEvent(n)}})}patchCanvas(){const t=()=>{var i;const n=(i=app.workspace.getLeavesOfType("canvas").first())==null?void 0:i.view;if(!n)return!1;const r=n.canvas.constructor,o=wa(r.prototype,{selectOnly:a=>function(s){a.call(this,s),s.contentEl&&s.url!==void 0&&!s.contentEl.classList.contains("wb-view-content")&&setTimeout(()=>{s.render()},0)}});return this.register(o),!0};this.app.workspace.onLayoutReady(()=>{if(!t()){const n=app.workspace.on("layout-change",()=>{t()&&app.workspace.offref(n)});this.registerEvent(n)}})}refreshAllRelatedView(){for(const t of app.workspace.getLeavesOfType("canvas"))t&&t.rebuildView()}registerEmbededHTML(){this.app.embedRegistry.registerExtension("html",(t,n,r)=>new Vk(t,n)),this.app.embedRegistry.registerExtension("htm",(t,n,r)=>new Vk(t,n))}unRegisterEmbededHTML(){this.app.embedRegistry.unregisterExtension("html"),this.app.embedRegistry.unregisterExtension("htm")}async loadSettings(){this.settings=Object.assign({},$o,await this.loadData())}async saveSettings(){await this.saveData(this.settings)}}class Yle extends $e.Modal{constructor(t,n,r){super(t),this.url=n,this.app=t,this.plugin=r}onOpen(){var i;const{contentEl:t}=this;(i=t.parentElement)==null||i.classList.add("wb-bookmark-modal"),t.createEl("h2",{text:"Save Bookmark"});const n=t.createDiv({cls:"wb-bookmark-modal-btn-container"}),r=n.createEl("button",{text:"Save"});r.onclick=async()=>{this.close();const a=await sN(this.url);if(!a)return;const s=await La(),c=s.bookmarks,f=this.plugin.settings.bookmarkManager.defaultCategory.split(",").map(p=>p.trim());c.unshift({id:String(Od(this.url)),name:a.title||"Untitled",url:this.url,description:a.description||"",category:f.length>0?f:["ROOT"],tags:"",created:$e.moment().valueOf(),modified:$e.moment().valueOf()}),await Tl({bookmarks:c,categories:s.categories}),av(c,s.categories,!0)};const o=n.createEl("button",{text:"Open"});o.onclick=()=>{this.close(),Qt.spawnWebBrowserView(!0,{url:this.url})}}onClose(){const{contentEl:t}=this;t.empty()}}module.exports=Gle;