lu-lowcode-package-form 0.9.18 → 0.9.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -192,9 +192,9 @@ html body {
192
192
  ${$_}-appear
193
193
  `]:{transform:"scale(0)",opacity:0,animationTimingFunction:Ff.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${$_}-leave`]:{animationTimingFunction:Ff.motionEaseInOutCirc}}]};function box(Ff){return{position:Ff,inset:0}}const genModalMaskStyle=Ff=>{const{componentCls:kh,antCls:x_}=Ff;return[{[`${kh}-root`]:{[`${kh}${x_}-zoom-enter, ${kh}${x_}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:Ff.motionDurationSlow,userSelect:"none"},[`${kh}${x_}-zoom-leave ${kh}-content`]:{pointerEvents:"none"},[`${kh}-mask`]:Object.assign(Object.assign({},box("fixed")),{zIndex:Ff.zIndexPopupBase,height:"100%",backgroundColor:Ff.colorBgMask,pointerEvents:"none",[`${kh}-hidden`]:{display:"none"}}),[`${kh}-wrap`]:Object.assign(Object.assign({},box("fixed")),{zIndex:Ff.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${kh}-root`]:initFadeMotion(Ff)}]},genModalStyle=Ff=>{const{componentCls:kh}=Ff;return[{[`${kh}-root`]:{[`${kh}-wrap-rtl`]:{direction:"rtl"},[`${kh}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[kh]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${Ff.screenSMMax}px)`]:{[kh]:{maxWidth:"calc(100vw - 16px)",margin:`${unit$1(Ff.marginXS)} auto`},[`${kh}-centered`]:{[kh]:{flex:1}}}}},{[kh]:Object.assign(Object.assign({},resetComponent(Ff)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${unit$1(Ff.calc(Ff.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:Ff.paddingLG,[`${kh}-title`]:{margin:0,color:Ff.titleColor,fontWeight:Ff.fontWeightStrong,fontSize:Ff.titleFontSize,lineHeight:Ff.titleLineHeight,wordWrap:"break-word"},[`${kh}-content`]:{position:"relative",backgroundColor:Ff.contentBg,backgroundClip:"padding-box",border:0,borderRadius:Ff.borderRadiusLG,boxShadow:Ff.boxShadow,pointerEvents:"auto",padding:Ff.contentPadding},[`${kh}-close`]:Object.assign({position:"absolute",top:Ff.calc(Ff.modalHeaderHeight).sub(Ff.modalCloseBtnSize).div(2).equal(),insetInlineEnd:Ff.calc(Ff.modalHeaderHeight).sub(Ff.modalCloseBtnSize).div(2).equal(),zIndex:Ff.calc(Ff.zIndexPopupBase).add(10).equal(),padding:0,color:Ff.modalCloseIconColor,fontWeight:Ff.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:Ff.borderRadiusSM,width:Ff.modalCloseBtnSize,height:Ff.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${Ff.motionDurationMid}, background-color ${Ff.motionDurationMid}`,"&-x":{display:"flex",fontSize:Ff.fontSizeLG,fontStyle:"normal",lineHeight:`${unit$1(Ff.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:Ff.modalCloseIconHoverColor,backgroundColor:Ff.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:Ff.colorBgTextActive}},genFocusStyle(Ff)),[`${kh}-header`]:{color:Ff.colorText,background:Ff.headerBg,borderRadius:`${unit$1(Ff.borderRadiusLG)} ${unit$1(Ff.borderRadiusLG)} 0 0`,marginBottom:Ff.headerMarginBottom,padding:Ff.headerPadding,borderBottom:Ff.headerBorderBottom},[`${kh}-body`]:{fontSize:Ff.fontSize,lineHeight:Ff.lineHeight,wordWrap:"break-word",padding:Ff.bodyPadding,[`${kh}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${unit$1(Ff.margin)} auto`}},[`${kh}-footer`]:{textAlign:"end",background:Ff.footerBg,marginTop:Ff.footerMarginTop,padding:Ff.footerPadding,borderTop:Ff.footerBorderTop,borderRadius:Ff.footerBorderRadius,[`> ${Ff.antCls}-btn + ${Ff.antCls}-btn`]:{marginInlineStart:Ff.marginXS}},[`${kh}-open`]:{overflow:"hidden"}})},{[`${kh}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${kh}-content,
194
194
  ${kh}-body,
195
- ${kh}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${kh}-confirm-body`]:{marginBottom:"auto"}}}]},genRTLStyle=Ff=>{const{componentCls:kh}=Ff;return{[`${kh}-root`]:{[`${kh}-wrap-rtl`]:{direction:"rtl",[`${kh}-confirm-body`]:{direction:"rtl"}}}}},prepareToken$1=Ff=>{const kh=Ff.padding,x_=Ff.fontSizeHeading5,$_=Ff.lineHeightHeading5;return merge(Ff,{modalHeaderHeight:Ff.calc(Ff.calc($_).mul(x_).equal()).add(Ff.calc(kh).mul(2).equal()).equal(),modalFooterBorderColorSplit:Ff.colorSplit,modalFooterBorderStyle:Ff.lineType,modalFooterBorderWidth:Ff.lineWidth,modalCloseIconColor:Ff.colorIcon,modalCloseIconHoverColor:Ff.colorIconHover,modalCloseBtnSize:Ff.controlHeight,modalConfirmIconSize:Ff.fontHeight,modalTitleHeight:Ff.calc(Ff.titleFontSize).mul(Ff.titleLineHeight).equal()})},prepareComponentToken$c=Ff=>({footerBg:"transparent",headerBg:Ff.colorBgElevated,titleLineHeight:Ff.lineHeightHeading5,titleFontSize:Ff.fontSizeHeading5,contentBg:Ff.colorBgElevated,titleColor:Ff.colorTextHeading,contentPadding:Ff.wireframe?0:`${unit$1(Ff.paddingMD)} ${unit$1(Ff.paddingContentHorizontalLG)}`,headerPadding:Ff.wireframe?`${unit$1(Ff.padding)} ${unit$1(Ff.paddingLG)}`:0,headerBorderBottom:Ff.wireframe?`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.colorSplit}`:"none",headerMarginBottom:Ff.wireframe?0:Ff.marginXS,bodyPadding:Ff.wireframe?Ff.paddingLG:0,footerPadding:Ff.wireframe?`${unit$1(Ff.paddingXS)} ${unit$1(Ff.padding)}`:0,footerBorderTop:Ff.wireframe?`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.colorSplit}`:"none",footerBorderRadius:Ff.wireframe?`0 0 ${unit$1(Ff.borderRadiusLG)} ${unit$1(Ff.borderRadiusLG)}`:0,footerMarginTop:Ff.wireframe?0:Ff.marginSM,confirmBodyPadding:Ff.wireframe?`${unit$1(Ff.padding*2)} ${unit$1(Ff.padding*2)} ${unit$1(Ff.paddingLG)}`:0,confirmIconMarginInlineEnd:Ff.wireframe?Ff.margin:Ff.marginSM,confirmBtnsMarginTop:Ff.wireframe?Ff.marginLG:Ff.marginSM});genStyleHooks("Modal",Ff=>{const kh=prepareToken$1(Ff);return[genModalStyle(kh),genRTLStyle(kh),genModalMaskStyle(kh),initZoomMotion(kh,"zoom")]},prepareComponentToken$c,{unitless:{titleLineHeight:!0}});function withPureRenderTheme(Ff){return kh=>React__namespace.createElement(ConfigProvider,{theme:{token:{motion:!1,zIndexPopupBase:0}}},React__namespace.createElement(Ff,Object.assign({},kh)))}const genPurePanel=(Ff,kh,x_,$_)=>withPureRenderTheme($P=>{const{prefixCls:zP,style:eme}=$P,tme=React__namespace.useRef(null),[nme,rme]=React__namespace.useState(0),[ame,ome]=React__namespace.useState(0),[ime,cme]=useMergedState(!1,{value:$P.open}),{getPrefixCls:ume}=React__namespace.useContext(ConfigContext),sme=ume(kh||"select",zP);React__namespace.useEffect(()=>{if(cme(!0),typeof ResizeObserver<"u"){const hme=new ResizeObserver(gme=>{const yme=gme[0].target;rme(yme.offsetHeight+8),ome(yme.offsetWidth)}),pme=setInterval(()=>{var gme;const yme=x_?`.${x_(sme)}`:`.${sme}-dropdown`,mme=(gme=tme.current)===null||gme===void 0?void 0:gme.querySelector(yme);mme&&(clearInterval(pme),hme.observe(mme))},10);return()=>{clearInterval(pme),hme.disconnect()}}},[]);let fme=Object.assign(Object.assign({},$P),{style:Object.assign(Object.assign({},eme),{margin:0}),open:ime,visible:ime,getPopupContainer:()=>tme.current});$_&&(fme=$_(fme));const lme={paddingBottom:nme,position:"relative",minWidth:ame};return React__namespace.createElement("div",{ref:tme,style:lme},React__namespace.createElement(Ff,Object.assign({},fme)))}),isMobile=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var Ff=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(Ff)||/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(Ff==null?void 0:Ff.substr(0,4))};var TransBtn=function(kh){var x_=kh.className,$_=kh.customizeIcon,B_=kh.customizeIconProps,$P=kh.children,zP=kh.onMouseDown,eme=kh.onClick,tme=typeof $_=="function"?$_(B_):$_;return React__namespace.createElement("span",{className:x_,onMouseDown:function(rme){rme.preventDefault(),zP==null||zP(rme)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:eme,"aria-hidden":!0},tme!==void 0?tme:React__namespace.createElement("span",{className:classNames(x_.split(/\s+/).map(function(nme){return"".concat(nme,"-icon")}))},$P))},useAllowClear=function(kh,x_,$_,B_,$P){var zP=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,eme=arguments.length>6?arguments[6]:void 0,tme=arguments.length>7?arguments[7]:void 0,nme=React.useMemo(function(){if(_typeof(B_)==="object")return B_.clearIcon;if($P)return $P},[B_,$P]),rme=React.useMemo(function(){return!!(!zP&&B_&&($_.length||eme)&&!(tme==="combobox"&&eme===""))},[B_,zP,$_.length,eme,tme]);return{allowClear:rme,clearIcon:React.createElement(TransBtn,{className:"".concat(kh,"-clear"),onMouseDown:x_,customizeIcon:nme},"×")}},BaseSelectContext=React__namespace.createContext(null);function useBaseProps(){return React__namespace.useContext(BaseSelectContext)}function useDelayReset(){var Ff=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,kh=React__namespace.useState(!1),x_=_slicedToArray(kh,2),$_=x_[0],B_=x_[1],$P=React__namespace.useRef(null),zP=function(){window.clearTimeout($P.current)};React__namespace.useEffect(function(){return zP},[]);var eme=function(nme,rme){zP(),$P.current=window.setTimeout(function(){B_(nme),rme&&rme()},Ff)};return[$_,eme,zP]}function useLock(){var Ff=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,kh=React__namespace.useRef(null),x_=React__namespace.useRef(null);React__namespace.useEffect(function(){return function(){window.clearTimeout(x_.current)}},[]);function $_(B_){(B_||kh.current===null)&&(kh.current=B_),window.clearTimeout(x_.current),x_.current=window.setTimeout(function(){kh.current=null},Ff)}return[function(){return kh.current},$_]}function useSelectTriggerControl(Ff,kh,x_,$_){var B_=React__namespace.useRef(null);B_.current={open:kh,triggerOpen:x_,customizedTrigger:$_},React__namespace.useEffect(function(){function $P(zP){var eme;if(!((eme=B_.current)!==null&&eme!==void 0&&eme.customizedTrigger)){var tme=zP.target;tme.shadowRoot&&zP.composed&&(tme=zP.composedPath()[0]||tme),B_.current.open&&Ff().filter(function(nme){return nme}).every(function(nme){return!nme.contains(tme)&&nme!==tme})&&B_.current.triggerOpen(!1)}}return window.addEventListener("mousedown",$P),function(){return window.removeEventListener("mousedown",$P)}},[])}function isValidateOpenKey(Ff){return![KeyCode.ESC,KeyCode.SHIFT,KeyCode.BACKSPACE,KeyCode.TAB,KeyCode.WIN_KEY,KeyCode.ALT,KeyCode.META,KeyCode.WIN_KEY_RIGHT,KeyCode.CTRL,KeyCode.SEMICOLON,KeyCode.EQUALS,KeyCode.CAPS_LOCK,KeyCode.CONTEXT_MENU,KeyCode.F1,KeyCode.F2,KeyCode.F3,KeyCode.F4,KeyCode.F5,KeyCode.F6,KeyCode.F7,KeyCode.F8,KeyCode.F9,KeyCode.F10,KeyCode.F11,KeyCode.F12].includes(Ff)}var _excluded$y=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],UNDEFINED=void 0;function InternalItem(Ff,kh){var x_=Ff.prefixCls,$_=Ff.invalidate,B_=Ff.item,$P=Ff.renderItem,zP=Ff.responsive,eme=Ff.responsiveDisabled,tme=Ff.registerSize,nme=Ff.itemKey,rme=Ff.className,ame=Ff.style,ome=Ff.children,ime=Ff.display,cme=Ff.order,ume=Ff.component,sme=ume===void 0?"div":ume,fme=_objectWithoutProperties(Ff,_excluded$y),lme=zP&&!ime;function hme(bme){tme(nme,bme)}React__namespace.useEffect(function(){return function(){hme(null)}},[]);var pme=$P&&B_!==UNDEFINED?$P(B_):ome,gme;$_||(gme={opacity:lme?0:1,height:lme?0:UNDEFINED,overflowY:lme?"hidden":UNDEFINED,order:zP?cme:UNDEFINED,pointerEvents:lme?"none":UNDEFINED,position:lme?"absolute":UNDEFINED});var yme={};lme&&(yme["aria-hidden"]=!0);var mme=React__namespace.createElement(sme,_extends({className:classNames(!$_&&x_,rme),style:_objectSpread2(_objectSpread2({},gme),ame)},yme,fme,{ref:kh}),pme);return zP&&(mme=React__namespace.createElement(RefResizeObserver,{onResize:function(Sme){var _me=Sme.offsetWidth;hme(_me)},disabled:eme},mme)),mme}var Item$1=React__namespace.forwardRef(InternalItem);Item$1.displayName="Item";function channelUpdate(Ff){if(typeof MessageChannel>"u")wrapperRaf(Ff);else{var kh=new MessageChannel;kh.port1.onmessage=function(){return Ff()},kh.port2.postMessage(void 0)}}function useBatcher(){var Ff=React__namespace.useRef(null),kh=function($_){Ff.current||(Ff.current=[],channelUpdate(function(){ReactDOM.unstable_batchedUpdates(function(){Ff.current.forEach(function(B_){B_()}),Ff.current=null})})),Ff.current.push($_)};return kh}function useEffectState(Ff,kh){var x_=React__namespace.useState(kh),$_=_slicedToArray(x_,2),B_=$_[0],$P=$_[1],zP=useEvent(function(eme){Ff(function(){$P(eme)})});return[B_,zP]}var OverflowContext=React.createContext(null),_excluded$x=["component"],_excluded2$7=["className"],_excluded3=["className"],InternalRawItem=function(kh,x_){var $_=React__namespace.useContext(OverflowContext);if(!$_){var B_=kh.component,$P=B_===void 0?"div":B_,zP=_objectWithoutProperties(kh,_excluded$x);return React__namespace.createElement($P,_extends({},zP,{ref:x_}))}var eme=$_.className,tme=_objectWithoutProperties($_,_excluded2$7),nme=kh.className,rme=_objectWithoutProperties(kh,_excluded3);return React__namespace.createElement(OverflowContext.Provider,{value:null},React__namespace.createElement(Item$1,_extends({ref:x_,className:classNames(eme,nme)},tme,rme)))},RawItem=React__namespace.forwardRef(InternalRawItem);RawItem.displayName="RawItem";var _excluded$w=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],RESPONSIVE="responsive",INVALIDATE="invalidate";function defaultRenderRest(Ff){return"+ ".concat(Ff.length," ...")}function Overflow(Ff,kh){var x_=Ff.prefixCls,$_=x_===void 0?"rc-overflow":x_,B_=Ff.data,$P=B_===void 0?[]:B_,zP=Ff.renderItem,eme=Ff.renderRawItem,tme=Ff.itemKey,nme=Ff.itemWidth,rme=nme===void 0?10:nme,ame=Ff.ssr,ome=Ff.style,ime=Ff.className,cme=Ff.maxCount,ume=Ff.renderRest,sme=Ff.renderRawRest,fme=Ff.suffix,lme=Ff.component,hme=lme===void 0?"div":lme,pme=Ff.itemComponent,gme=Ff.onVisibleChange,yme=_objectWithoutProperties(Ff,_excluded$w),mme=ame==="full",bme=useBatcher(),Sme=useEffectState(bme,null),_me=_slicedToArray(Sme,2),Cme=_me[0],Eme=_me[1],Tme=Cme||0,Rme=useEffectState(bme,new Map),Pme=_slicedToArray(Rme,2),$me=Pme[0],Dme=Pme[1],Mme=useEffectState(bme,0),Nme=_slicedToArray(Mme,2),Ime=Nme[0],wme=Nme[1],Ome=useEffectState(bme,0),Ame=_slicedToArray(Ome,2),Fme=Ame[0],Bme=Ame[1],kme=useEffectState(bme,0),Lme=_slicedToArray(kme,2),Hme=Lme[0],Wme=Lme[1],zme=React.useState(null),Vme=_slicedToArray(zme,2),Xme=Vme[0],e0e=Vme[1],Ume=React.useState(null),Jme=_slicedToArray(Ume,2),s0e=Jme[0],d0e=Jme[1],Zme=React__namespace.useMemo(function(){return s0e===null&&mme?Number.MAX_SAFE_INTEGER:s0e||0},[s0e,Cme]),Qme=React.useState(!1),a0e=_slicedToArray(Qme,2),t0e=a0e[0],o0e=a0e[1],g0e="".concat($_,"-item"),u0e=Math.max(Ime,Fme),h0e=cme===RESPONSIVE,E0e=$P.length&&h0e,P0e=cme===INVALIDATE,y0e=E0e||typeof cme=="number"&&$P.length>cme,$0e=React.useMemo(function(){var aye=$P;return E0e?Cme===null&&mme?aye=$P:aye=$P.slice(0,Math.min($P.length,Tme/rme)):typeof cme=="number"&&(aye=$P.slice(0,cme)),aye},[$P,rme,Cme,cme,E0e]),C0e=React.useMemo(function(){return E0e?$P.slice(Zme+1):$P.slice($0e.length)},[$P,$0e,E0e,Zme]),z0e=React.useCallback(function(aye,F0e){var cye;return typeof tme=="function"?tme(aye):(cye=tme&&(aye==null?void 0:aye[tme]))!==null&&cye!==void 0?cye:F0e},[tme]),D0e=React.useCallback(zP||function(aye){return aye},[zP]);function O0e(aye,F0e,cye){s0e===aye&&(F0e===void 0||F0e===Xme)||(d0e(aye),cye||(o0e(aye<$P.length-1),gme==null||gme(aye)),F0e!==void 0&&e0e(F0e))}function b0e(aye,F0e){Eme(F0e.clientWidth)}function k0e(aye,F0e){Dme(function(cye){var yye=new Map(cye);return F0e===null?yye.delete(aye):yye.set(aye,F0e),yye})}function T0e(aye,F0e){Bme(F0e),wme(Fme)}function L0e(aye,F0e){Wme(F0e)}function Y0e(aye){return $me.get(z0e($0e[aye],aye))}useLayoutEffect$1(function(){if(Tme&&typeof u0e=="number"&&$0e){var aye=Hme,F0e=$0e.length,cye=F0e-1;if(!F0e){O0e(0,null);return}for(var yye=0;yye<F0e;yye+=1){var W0e=Y0e(yye);if(mme&&(W0e=W0e||0),W0e===void 0){O0e(yye-1,void 0,!0);break}if(aye+=W0e,cye===0&&aye<=Tme||yye===cye-1&&aye+Y0e(cye)<=Tme){O0e(cye,null);break}else if(aye+u0e>Tme){O0e(yye-1,aye-W0e-Hme+Fme);break}}fme&&Y0e(0)+Hme>Tme&&e0e(null)}},[Tme,$me,Fme,Hme,z0e,$0e]);var mye=t0e&&!!C0e.length,Q0e={};Xme!==null&&E0e&&(Q0e={position:"absolute",left:Xme,top:0});var U0e={prefixCls:g0e,responsive:E0e,component:pme,invalidate:P0e},q0e=eme?function(aye,F0e){var cye=z0e(aye,F0e);return React__namespace.createElement(OverflowContext.Provider,{key:cye,value:_objectSpread2(_objectSpread2({},U0e),{},{order:F0e,item:aye,itemKey:cye,registerSize:k0e,display:F0e<=Zme})},eme(aye,F0e))}:function(aye,F0e){var cye=z0e(aye,F0e);return React__namespace.createElement(Item$1,_extends({},U0e,{order:F0e,key:cye,item:aye,renderItem:D0e,itemKey:cye,registerSize:k0e,display:F0e<=Zme}))},V0e,X0e={order:mye?Zme:Number.MAX_SAFE_INTEGER,className:"".concat(g0e,"-rest"),registerSize:T0e,display:mye};if(sme)sme&&(V0e=React__namespace.createElement(OverflowContext.Provider,{value:_objectSpread2(_objectSpread2({},U0e),X0e)},sme(C0e)));else{var M0e=ume||defaultRenderRest;V0e=React__namespace.createElement(Item$1,_extends({},U0e,X0e),typeof M0e=="function"?M0e(C0e):M0e)}var J0e=React__namespace.createElement(hme,_extends({className:classNames(!P0e&&$_,ime),style:ome,ref:kh},yme),$0e.map(q0e),y0e?V0e:null,fme&&React__namespace.createElement(Item$1,_extends({},U0e,{responsive:h0e,responsiveDisabled:!E0e,order:Zme,className:"".concat(g0e,"-suffix"),registerSize:L0e,display:!0,style:Q0e}),fme));return h0e&&(J0e=React__namespace.createElement(RefResizeObserver,{onResize:b0e,disabled:!E0e},J0e)),J0e}var ForwardOverflow=React__namespace.forwardRef(Overflow);ForwardOverflow.displayName="Overflow";ForwardOverflow.Item=RawItem;ForwardOverflow.RESPONSIVE=RESPONSIVE;ForwardOverflow.INVALIDATE=INVALIDATE;var Input$5=function(kh,x_){var $_,B_=kh.prefixCls,$P=kh.id,zP=kh.inputElement,eme=kh.disabled,tme=kh.tabIndex,nme=kh.autoFocus,rme=kh.autoComplete,ame=kh.editable,ome=kh.activeDescendantId,ime=kh.value,cme=kh.maxLength,ume=kh.onKeyDown,sme=kh.onMouseDown,fme=kh.onChange,lme=kh.onPaste,hme=kh.onCompositionStart,pme=kh.onCompositionEnd,gme=kh.open,yme=kh.attrs,mme=zP||React__namespace.createElement("input",null),bme=mme,Sme=bme.ref,_me=bme.props,Cme=_me.onKeyDown,Eme=_me.onChange,Tme=_me.onMouseDown,Rme=_me.onCompositionStart,Pme=_me.onCompositionEnd,$me=_me.style;return warning$4(!("maxLength"in mme.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),mme=React__namespace.cloneElement(mme,_objectSpread2(_objectSpread2(_objectSpread2({type:"search"},_me),{},{id:$P,ref:composeRef(x_,Sme),disabled:eme,tabIndex:tme,autoComplete:rme||"off",autoFocus:nme,className:classNames("".concat(B_,"-selection-search-input"),($_=mme)===null||$_===void 0||($_=$_.props)===null||$_===void 0?void 0:$_.className),role:"combobox","aria-expanded":gme||!1,"aria-haspopup":"listbox","aria-owns":"".concat($P,"_list"),"aria-autocomplete":"list","aria-controls":"".concat($P,"_list"),"aria-activedescendant":gme?ome:void 0},yme),{},{value:ame?ime:"",maxLength:cme,readOnly:!ame,unselectable:ame?null:"on",style:_objectSpread2(_objectSpread2({},$me),{},{opacity:ame?null:0}),onKeyDown:function(Mme){ume(Mme),Cme&&Cme(Mme)},onMouseDown:function(Mme){sme(Mme),Tme&&Tme(Mme)},onChange:function(Mme){fme(Mme),Eme&&Eme(Mme)},onCompositionStart:function(Mme){hme(Mme),Rme&&Rme(Mme)},onCompositionEnd:function(Mme){pme(Mme),Pme&&Pme(Mme)},onPaste:lme})),mme},RefInput=React__namespace.forwardRef(Input$5);process.env.NODE_ENV!=="production"&&(RefInput.displayName="Input");function toArray$5(Ff){return Array.isArray(Ff)?Ff:Ff!==void 0?[Ff]:[]}var isClient=typeof window<"u"&&window.document&&window.document.documentElement,isBrowserClient$2=process.env.NODE_ENV!=="test"&&isClient;function hasValue(Ff){return Ff!=null}function isComboNoValue(Ff){return!Ff&&Ff!==0}function isTitleType$1(Ff){return["string","number"].includes(_typeof(Ff))}function getTitle(Ff){var kh=void 0;return Ff&&(isTitleType$1(Ff.title)?kh=Ff.title.toString():isTitleType$1(Ff.label)&&(kh=Ff.label.toString())),kh}function useLayoutEffect(Ff,kh){isBrowserClient$2?React__namespace.useLayoutEffect(Ff,kh):React__namespace.useEffect(Ff,kh)}function itemKey$1(Ff){var kh;return(kh=Ff.key)!==null&&kh!==void 0?kh:Ff.value}var onPreventMouseDown=function(kh){kh.preventDefault(),kh.stopPropagation()},SelectSelector=function(kh){var x_=kh.id,$_=kh.prefixCls,B_=kh.values,$P=kh.open,zP=kh.searchValue,eme=kh.autoClearSearchValue,tme=kh.inputRef,nme=kh.placeholder,rme=kh.disabled,ame=kh.mode,ome=kh.showSearch,ime=kh.autoFocus,cme=kh.autoComplete,ume=kh.activeDescendantId,sme=kh.tabIndex,fme=kh.removeIcon,lme=kh.maxTagCount,hme=kh.maxTagTextLength,pme=kh.maxTagPlaceholder,gme=pme===void 0?function(e0e){return"+ ".concat(e0e.length," ...")}:pme,yme=kh.tagRender,mme=kh.onToggleOpen,bme=kh.onRemove,Sme=kh.onInputChange,_me=kh.onInputPaste,Cme=kh.onInputKeyDown,Eme=kh.onInputMouseDown,Tme=kh.onInputCompositionStart,Rme=kh.onInputCompositionEnd,Pme=React__namespace.useRef(null),$me=React.useState(0),Dme=_slicedToArray($me,2),Mme=Dme[0],Nme=Dme[1],Ime=React.useState(!1),wme=_slicedToArray(Ime,2),Ome=wme[0],Ame=wme[1],Fme="".concat($_,"-selection"),Bme=$P||ame==="multiple"&&eme===!1||ame==="tags"?zP:"",kme=ame==="tags"||ame==="multiple"&&eme===!1||ome&&($P||Ome);useLayoutEffect(function(){Nme(Pme.current.scrollWidth)},[Bme]);var Lme=function(Ume,Jme,s0e,d0e,Zme){return React__namespace.createElement("span",{title:getTitle(Ume),className:classNames("".concat(Fme,"-item"),_defineProperty({},"".concat(Fme,"-item-disabled"),s0e))},React__namespace.createElement("span",{className:"".concat(Fme,"-item-content")},Jme),d0e&&React__namespace.createElement(TransBtn,{className:"".concat(Fme,"-item-remove"),onMouseDown:onPreventMouseDown,onClick:Zme,customizeIcon:fme},"×"))},Hme=function(Ume,Jme,s0e,d0e,Zme,Qme){var a0e=function(o0e){onPreventMouseDown(o0e),mme(!$P)};return React__namespace.createElement("span",{onMouseDown:a0e},yme({label:Jme,value:Ume,disabled:s0e,closable:d0e,onClose:Zme,isMaxTag:!!Qme}))},Wme=function(Ume){var Jme=Ume.disabled,s0e=Ume.label,d0e=Ume.value,Zme=!rme&&!Jme,Qme=s0e;if(typeof hme=="number"&&(typeof s0e=="string"||typeof s0e=="number")){var a0e=String(Qme);a0e.length>hme&&(Qme="".concat(a0e.slice(0,hme),"..."))}var t0e=function(g0e){g0e&&g0e.stopPropagation(),bme(Ume)};return typeof yme=="function"?Hme(d0e,Qme,Jme,Zme,t0e):Lme(Ume,Qme,Jme,Zme,t0e)},zme=function(Ume){var Jme=typeof gme=="function"?gme(Ume):gme;return typeof yme=="function"?Hme(void 0,Jme,!1,!1,void 0,!0):Lme({title:Jme},Jme,!1)},Vme=React__namespace.createElement("div",{className:"".concat(Fme,"-search"),style:{width:Mme},onFocus:function(){Ame(!0)},onBlur:function(){Ame(!1)}},React__namespace.createElement(RefInput,{ref:tme,open:$P,prefixCls:$_,id:x_,inputElement:null,disabled:rme,autoFocus:ime,autoComplete:cme,editable:kme,activeDescendantId:ume,value:Bme,onKeyDown:Cme,onMouseDown:Eme,onChange:Sme,onPaste:_me,onCompositionStart:Tme,onCompositionEnd:Rme,tabIndex:sme,attrs:pickAttrs(kh,!0)}),React__namespace.createElement("span",{ref:Pme,className:"".concat(Fme,"-search-mirror"),"aria-hidden":!0},Bme," ")),Xme=React__namespace.createElement(ForwardOverflow,{prefixCls:"".concat(Fme,"-overflow"),data:B_,renderItem:Wme,renderRest:zme,suffix:Vme,itemKey:itemKey$1,maxCount:lme});return React__namespace.createElement(React__namespace.Fragment,null,Xme,!B_.length&&!Bme&&React__namespace.createElement("span",{className:"".concat(Fme,"-placeholder")},nme))},SingleSelector$1=function(kh){var x_=kh.inputElement,$_=kh.prefixCls,B_=kh.id,$P=kh.inputRef,zP=kh.disabled,eme=kh.autoFocus,tme=kh.autoComplete,nme=kh.activeDescendantId,rme=kh.mode,ame=kh.open,ome=kh.values,ime=kh.placeholder,cme=kh.tabIndex,ume=kh.showSearch,sme=kh.searchValue,fme=kh.activeValue,lme=kh.maxLength,hme=kh.onInputKeyDown,pme=kh.onInputMouseDown,gme=kh.onInputChange,yme=kh.onInputPaste,mme=kh.onInputCompositionStart,bme=kh.onInputCompositionEnd,Sme=kh.title,_me=React__namespace.useState(!1),Cme=_slicedToArray(_me,2),Eme=Cme[0],Tme=Cme[1],Rme=rme==="combobox",Pme=Rme||ume,$me=ome[0],Dme=sme||"";Rme&&fme&&!Eme&&(Dme=fme),React__namespace.useEffect(function(){Rme&&Tme(!1)},[Rme,fme]);var Mme=rme!=="combobox"&&!ame&&!ume?!1:!!Dme,Nme=Sme===void 0?getTitle($me):Sme,Ime=React__namespace.useMemo(function(){return $me?null:React__namespace.createElement("span",{className:"".concat($_,"-selection-placeholder"),style:Mme?{visibility:"hidden"}:void 0},ime)},[$me,Mme,ime,$_]);return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("span",{className:"".concat($_,"-selection-search")},React__namespace.createElement(RefInput,{ref:$P,prefixCls:$_,id:B_,open:ame,inputElement:x_,disabled:zP,autoFocus:eme,autoComplete:tme,editable:Pme,activeDescendantId:nme,value:Dme,onKeyDown:hme,onMouseDown:pme,onChange:function(Ome){Tme(!0),gme(Ome)},onPaste:yme,onCompositionStart:mme,onCompositionEnd:bme,tabIndex:cme,attrs:pickAttrs(kh,!0),maxLength:Rme?lme:void 0})),!Rme&&$me?React__namespace.createElement("span",{className:"".concat($_,"-selection-item"),title:Nme,style:Mme?{visibility:"hidden"}:void 0},$me.label):null,Ime)},Selector=function(kh,x_){var $_=React.useRef(null),B_=React.useRef(!1),$P=kh.prefixCls,zP=kh.open,eme=kh.mode,tme=kh.showSearch,nme=kh.tokenWithEnter,rme=kh.disabled,ame=kh.autoClearSearchValue,ome=kh.onSearch,ime=kh.onSearchSubmit,cme=kh.onToggleOpen,ume=kh.onInputKeyDown,sme=kh.domRef;React__namespace.useImperativeHandle(x_,function(){return{focus:function(Mme){$_.current.focus(Mme)},blur:function(){$_.current.blur()}}});var fme=useLock(0),lme=_slicedToArray(fme,2),hme=lme[0],pme=lme[1],gme=function(Mme){var Nme=Mme.which;(Nme===KeyCode.UP||Nme===KeyCode.DOWN)&&Mme.preventDefault(),ume&&ume(Mme),Nme===KeyCode.ENTER&&eme==="tags"&&!B_.current&&!zP&&(ime==null||ime(Mme.target.value)),isValidateOpenKey(Nme)&&cme(!0)},yme=function(){pme(!0)},mme=React.useRef(null),bme=function(Mme){ome(Mme,!0,B_.current)!==!1&&cme(!0)},Sme=function(){B_.current=!0},_me=function(Mme){B_.current=!1,eme!=="combobox"&&bme(Mme.target.value)},Cme=function(Mme){var Nme=Mme.target.value;if(nme&&mme.current&&/[\r\n]/.test(mme.current)){var Ime=mme.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Nme=Nme.replace(Ime,mme.current)}mme.current=null,bme(Nme)},Eme=function(Mme){var Nme=Mme.clipboardData,Ime=Nme==null?void 0:Nme.getData("text");mme.current=Ime||""},Tme=function(Mme){var Nme=Mme.target;if(Nme!==$_.current){var Ime=document.body.style.msTouchAction!==void 0;Ime?setTimeout(function(){$_.current.focus()}):$_.current.focus()}},Rme=function(Mme){var Nme=hme();Mme.target!==$_.current&&!Nme&&!(eme==="combobox"&&rme)&&Mme.preventDefault(),(eme!=="combobox"&&(!tme||!Nme)||!zP)&&(zP&&ame!==!1&&ome("",!0,!1),cme())},Pme={inputRef:$_,onInputKeyDown:gme,onInputMouseDown:yme,onInputChange:Cme,onInputPaste:Eme,onInputCompositionStart:Sme,onInputCompositionEnd:_me},$me=eme==="multiple"||eme==="tags"?React__namespace.createElement(SelectSelector,_extends({},kh,Pme)):React__namespace.createElement(SingleSelector$1,_extends({},kh,Pme));return React__namespace.createElement("div",{ref:sme,className:"".concat($P,"-selector"),onClick:Tme,onMouseDown:Rme},$me)},ForwardSelector=React__namespace.forwardRef(Selector);process.env.NODE_ENV!=="production"&&(ForwardSelector.displayName="Selector");function Arrow(Ff){var kh=Ff.prefixCls,x_=Ff.align,$_=Ff.arrow,B_=Ff.arrowPos,$P=$_||{},zP=$P.className,eme=$P.content,tme=B_.x,nme=tme===void 0?0:tme,rme=B_.y,ame=rme===void 0?0:rme,ome=React__namespace.useRef();if(!x_||!x_.points)return null;var ime={position:"absolute"};if(x_.autoArrow!==!1){var cme=x_.points[0],ume=x_.points[1],sme=cme[0],fme=cme[1],lme=ume[0],hme=ume[1];sme===lme||!["t","b"].includes(sme)?ime.top=ame:sme==="t"?ime.top=0:ime.bottom=0,fme===hme||!["l","r"].includes(fme)?ime.left=nme:fme==="l"?ime.left=0:ime.right=0}return React__namespace.createElement("div",{ref:ome,className:classNames("".concat(kh,"-arrow"),zP),style:ime},eme)}function Mask(Ff){var kh=Ff.prefixCls,x_=Ff.open,$_=Ff.zIndex,B_=Ff.mask,$P=Ff.motion;return B_?React__namespace.createElement(CSSMotion,_extends({},$P,{motionAppear:!0,visible:x_,removeOnLeave:!0}),function(zP){var eme=zP.className;return React__namespace.createElement("div",{style:{zIndex:$_},className:classNames("".concat(kh,"-mask"),eme)})}):null}var PopupContent=React__namespace.memo(function(Ff){var kh=Ff.children;return kh},function(Ff,kh){return kh.cache});process.env.NODE_ENV!=="production"&&(PopupContent.displayName="PopupContent");var Popup$2=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.popup,$_=Ff.className,B_=Ff.prefixCls,$P=Ff.style,zP=Ff.target,eme=Ff.onVisibleChanged,tme=Ff.open,nme=Ff.keepDom,rme=Ff.fresh,ame=Ff.onClick,ome=Ff.mask,ime=Ff.arrow,cme=Ff.arrowPos,ume=Ff.align,sme=Ff.motion,fme=Ff.maskMotion,lme=Ff.forceRender,hme=Ff.getPopupContainer,pme=Ff.autoDestroy,gme=Ff.portal,yme=Ff.zIndex,mme=Ff.onMouseEnter,bme=Ff.onMouseLeave,Sme=Ff.onPointerEnter,_me=Ff.ready,Cme=Ff.offsetX,Eme=Ff.offsetY,Tme=Ff.offsetR,Rme=Ff.offsetB,Pme=Ff.onAlign,$me=Ff.onPrepare,Dme=Ff.stretch,Mme=Ff.targetWidth,Nme=Ff.targetHeight,Ime=typeof x_=="function"?x_():x_,wme=tme||nme,Ome=(hme==null?void 0:hme.length)>0,Ame=React__namespace.useState(!hme||!Ome),Fme=_slicedToArray(Ame,2),Bme=Fme[0],kme=Fme[1];if(useLayoutEffect$1(function(){!Bme&&Ome&&zP&&kme(!0)},[Bme,Ome,zP]),!Bme)return null;var Lme="auto",Hme={left:"-1000vw",top:"-1000vh",right:Lme,bottom:Lme};if(_me||!tme){var Wme,zme=ume.points,Vme=ume.dynamicInset||((Wme=ume._experimental)===null||Wme===void 0?void 0:Wme.dynamicInset),Xme=Vme&&zme[0][1]==="r",e0e=Vme&&zme[0][0]==="b";Xme?(Hme.right=Tme,Hme.left=Lme):(Hme.left=Cme,Hme.right=Lme),e0e?(Hme.bottom=Rme,Hme.top=Lme):(Hme.top=Eme,Hme.bottom=Lme)}var Ume={};return Dme&&(Dme.includes("height")&&Nme?Ume.height=Nme:Dme.includes("minHeight")&&Nme&&(Ume.minHeight=Nme),Dme.includes("width")&&Mme?Ume.width=Mme:Dme.includes("minWidth")&&Mme&&(Ume.minWidth=Mme)),tme||(Ume.pointerEvents="none"),React__namespace.createElement(gme,{open:lme||wme,getContainer:hme&&function(){return hme(zP)},autoDestroy:pme},React__namespace.createElement(Mask,{prefixCls:B_,open:tme,zIndex:yme,mask:ome,motion:fme}),React__namespace.createElement(RefResizeObserver,{onResize:Pme,disabled:!tme},function(Jme){return React__namespace.createElement(CSSMotion,_extends({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:lme,leavedClassName:"".concat(B_,"-hidden")},sme,{onAppearPrepare:$me,onEnterPrepare:$me,visible:tme,onVisibleChanged:function(d0e){var Zme;sme==null||(Zme=sme.onVisibleChanged)===null||Zme===void 0||Zme.call(sme,d0e),eme(d0e)}}),function(s0e,d0e){var Zme=s0e.className,Qme=s0e.style,a0e=classNames(B_,Zme,$_);return React__namespace.createElement("div",{ref:composeRef(Jme,kh,d0e),className:a0e,style:_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({"--arrow-x":"".concat(cme.x||0,"px"),"--arrow-y":"".concat(cme.y||0,"px")},Hme),Ume),Qme),{},{boxSizing:"border-box",zIndex:yme},$P),onMouseEnter:mme,onMouseLeave:bme,onPointerEnter:Sme,onClick:ame},ime&&React__namespace.createElement(Arrow,{prefixCls:B_,arrow:ime,arrowPos:cme,align:ume}),React__namespace.createElement(PopupContent,{cache:!tme&&!rme},Ime))})}))});process.env.NODE_ENV!=="production"&&(Popup$2.displayName="Popup");var TriggerWrapper=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.children,$_=Ff.getTriggerDOMNode,B_=supportRef(x_),$P=React__namespace.useCallback(function(eme){fillRef(kh,$_?$_(eme):eme)},[$_]),zP=useComposeRef($P,x_.ref);return B_?React__namespace.cloneElement(x_,{ref:zP}):x_});process.env.NODE_ENV!=="production"&&(TriggerWrapper.displayName="TriggerWrapper");var TriggerContext=React__namespace.createContext(null);function toArray$4(Ff){return Ff?Array.isArray(Ff)?Ff:[Ff]:[]}function useAction(Ff,kh,x_,$_){return React__namespace.useMemo(function(){var B_=toArray$4(x_??kh),$P=toArray$4($_??kh),zP=new Set(B_),eme=new Set($P);return Ff&&(zP.has("hover")&&(zP.delete("hover"),zP.add("click")),eme.has("hover")&&(eme.delete("hover"),eme.add("click"))),[zP,eme]},[Ff,kh,x_,$_])}function isPointsEq(){var Ff=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x_=arguments.length>2?arguments[2]:void 0;return x_?Ff[0]===kh[0]:Ff[0]===kh[0]&&Ff[1]===kh[1]}function getAlignPopupClassName(Ff,kh,x_,$_){for(var B_=x_.points,$P=Object.keys(Ff),zP=0;zP<$P.length;zP+=1){var eme,tme=$P[zP];if(isPointsEq((eme=Ff[tme])===null||eme===void 0?void 0:eme.points,B_,$_))return"".concat(kh,"-placement-").concat(tme)}return""}function getMotion(Ff,kh,x_,$_){return kh||(x_?{motionName:"".concat(Ff,"-").concat(x_)}:$_?{motionName:$_}:null)}function getWin(Ff){return Ff.ownerDocument.defaultView}function collectScroller(Ff){for(var kh=[],x_=Ff==null?void 0:Ff.parentElement,$_=["hidden","scroll","clip","auto"];x_;){var B_=getWin(x_).getComputedStyle(x_),$P=B_.overflowX,zP=B_.overflowY,eme=B_.overflow;[$P,zP,eme].some(function(tme){return $_.includes(tme)})&&kh.push(x_),x_=x_.parentElement}return kh}function toNum(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Ff)?kh:Ff}function getPxValue(Ff){return toNum(parseFloat(Ff),0)}function getVisibleArea(Ff,kh){var x_=_objectSpread2({},Ff);return(kh||[]).forEach(function($_){if(!($_ instanceof HTMLBodyElement||$_ instanceof HTMLHtmlElement)){var B_=getWin($_).getComputedStyle($_),$P=B_.overflow,zP=B_.overflowClipMargin,eme=B_.borderTopWidth,tme=B_.borderBottomWidth,nme=B_.borderLeftWidth,rme=B_.borderRightWidth,ame=$_.getBoundingClientRect(),ome=$_.offsetHeight,ime=$_.clientHeight,cme=$_.offsetWidth,ume=$_.clientWidth,sme=getPxValue(eme),fme=getPxValue(tme),lme=getPxValue(nme),hme=getPxValue(rme),pme=toNum(Math.round(ame.width/cme*1e3)/1e3),gme=toNum(Math.round(ame.height/ome*1e3)/1e3),yme=(cme-ume-lme-hme)*pme,mme=(ome-ime-sme-fme)*gme,bme=sme*gme,Sme=fme*gme,_me=lme*pme,Cme=hme*pme,Eme=0,Tme=0;if($P==="clip"){var Rme=getPxValue(zP);Eme=Rme*pme,Tme=Rme*gme}var Pme=ame.x+_me-Eme,$me=ame.y+bme-Tme,Dme=Pme+ame.width+2*Eme-_me-Cme-yme,Mme=$me+ame.height+2*Tme-bme-Sme-mme;x_.left=Math.max(x_.left,Pme),x_.top=Math.max(x_.top,$me),x_.right=Math.min(x_.right,Dme),x_.bottom=Math.min(x_.bottom,Mme)}}),x_}function getUnitOffset(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,x_="".concat(kh),$_=x_.match(/^(.*)\%$/);return $_?Ff*(parseFloat($_[1])/100):parseFloat(x_)}function getNumberOffset(Ff,kh){var x_=kh||[],$_=_slicedToArray(x_,2),B_=$_[0],$P=$_[1];return[getUnitOffset(Ff.width,B_),getUnitOffset(Ff.height,$P)]}function splitPoints(){var Ff=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Ff[0],Ff[1]]}function getAlignPoint(Ff,kh){var x_=kh[0],$_=kh[1],B_,$P;return x_==="t"?$P=Ff.y:x_==="b"?$P=Ff.y+Ff.height:$P=Ff.y+Ff.height/2,$_==="l"?B_=Ff.x:$_==="r"?B_=Ff.x+Ff.width:B_=Ff.x+Ff.width/2,{x:B_,y:$P}}function reversePoints(Ff,kh){var x_={t:"b",b:"t",l:"r",r:"l"};return Ff.map(function($_,B_){return B_===kh?x_[$_]||"c":$_}).join("")}function useAlign(Ff,kh,x_,$_,B_,$P,zP){var eme=React__namespace.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:B_[$_]||{}}),tme=_slicedToArray(eme,2),nme=tme[0],rme=tme[1],ame=React__namespace.useRef(0),ome=React__namespace.useMemo(function(){return kh?collectScroller(kh):[]},[kh]),ime=React__namespace.useRef({}),cme=function(){ime.current={}};Ff||cme();var ume=useEvent(function(){if(kh&&x_&&Ff){let pye=function(ebe,pbe){var r1e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:a0e,a1e=Ime.x+ebe,h1e=Ime.y+pbe,E1e=a1e+Wme,N1e=h1e+Hme,X1e=Math.max(a1e,r1e.left),M1e=Math.max(h1e,r1e.top),Z1e=Math.min(E1e,r1e.right),Q1e=Math.min(N1e,r1e.bottom);return Math.max(0,(Z1e-X1e)*(Q1e-M1e))},kye=function(){r0e=Ime.y+M0e,R0e=r0e+Hme,A0e=Ime.x+X0e,n0e=A0e+Wme};var lme,hme,pme=kh,gme=pme.ownerDocument,yme=getWin(pme),mme=yme.getComputedStyle(pme),bme=mme.width,Sme=mme.height,_me=mme.position,Cme=pme.style.left,Eme=pme.style.top,Tme=pme.style.right,Rme=pme.style.bottom,Pme=pme.style.overflow,$me=_objectSpread2(_objectSpread2({},B_[$_]),$P),Dme=gme.createElement("div");(lme=pme.parentElement)===null||lme===void 0||lme.appendChild(Dme),Dme.style.left="".concat(pme.offsetLeft,"px"),Dme.style.top="".concat(pme.offsetTop,"px"),Dme.style.position=_me,Dme.style.height="".concat(pme.offsetHeight,"px"),Dme.style.width="".concat(pme.offsetWidth,"px"),pme.style.left="0",pme.style.top="0",pme.style.right="auto",pme.style.bottom="auto",pme.style.overflow="hidden";var Mme;if(Array.isArray(x_))Mme={x:x_[0],y:x_[1],width:0,height:0};else{var Nme=x_.getBoundingClientRect();Mme={x:Nme.x,y:Nme.y,width:Nme.width,height:Nme.height}}var Ime=pme.getBoundingClientRect(),wme=gme.documentElement,Ome=wme.clientWidth,Ame=wme.clientHeight,Fme=wme.scrollWidth,Bme=wme.scrollHeight,kme=wme.scrollTop,Lme=wme.scrollLeft,Hme=Ime.height,Wme=Ime.width,zme=Mme.height,Vme=Mme.width,Xme={left:0,top:0,right:Ome,bottom:Ame},e0e={left:-Lme,top:-kme,right:Fme-Lme,bottom:Bme-kme},Ume=$me.htmlRegion,Jme="visible",s0e="visibleFirst";Ume!=="scroll"&&Ume!==s0e&&(Ume=Jme);var d0e=Ume===s0e,Zme=getVisibleArea(e0e,ome),Qme=getVisibleArea(Xme,ome),a0e=Ume===Jme?Qme:Zme,t0e=d0e?Qme:a0e;pme.style.left="auto",pme.style.top="auto",pme.style.right="0",pme.style.bottom="0";var o0e=pme.getBoundingClientRect();pme.style.left=Cme,pme.style.top=Eme,pme.style.right=Tme,pme.style.bottom=Rme,pme.style.overflow=Pme,(hme=pme.parentElement)===null||hme===void 0||hme.removeChild(Dme);var g0e=toNum(Math.round(Wme/parseFloat(bme)*1e3)/1e3),u0e=toNum(Math.round(Hme/parseFloat(Sme)*1e3)/1e3);if(g0e===0||u0e===0||isDOM(x_)&&!isVisible(x_))return;var h0e=$me.offset,E0e=$me.targetOffset,P0e=getNumberOffset(Ime,h0e),y0e=_slicedToArray(P0e,2),$0e=y0e[0],C0e=y0e[1],z0e=getNumberOffset(Mme,E0e),D0e=_slicedToArray(z0e,2),O0e=D0e[0],b0e=D0e[1];Mme.x-=O0e,Mme.y-=b0e;var k0e=$me.points||[],T0e=_slicedToArray(k0e,2),L0e=T0e[0],Y0e=T0e[1],mye=splitPoints(Y0e),Q0e=splitPoints(L0e),U0e=getAlignPoint(Mme,mye),q0e=getAlignPoint(Ime,Q0e),V0e=_objectSpread2({},$me),X0e=U0e.x-q0e.x+$0e,M0e=U0e.y-q0e.y+C0e,J0e=pye(X0e,M0e),aye=pye(X0e,M0e,Qme),F0e=getAlignPoint(Mme,["t","l"]),cye=getAlignPoint(Ime,["t","l"]),yye=getAlignPoint(Mme,["b","r"]),W0e=getAlignPoint(Ime,["b","r"]),sye=$me.overflow||{},G0e=sye.adjustX,hye=sye.adjustY,wye=sye.shiftX,Eye=sye.shiftY,Vye=function(pbe){return typeof pbe=="boolean"?pbe:pbe>=0},r0e,R0e,A0e,n0e;kye();var f0e=Vye(hye),m0e=Q0e[0]===mye[0];if(f0e&&Q0e[0]==="t"&&(R0e>t0e.bottom||ime.current.bt)){var w0e=M0e;m0e?w0e-=Hme-zme:w0e=F0e.y-W0e.y-C0e;var j0e=pye(X0e,w0e),_0e=pye(X0e,w0e,Qme);j0e>J0e||j0e===J0e&&(!d0e||_0e>=aye)?(ime.current.bt=!0,M0e=w0e,C0e=-C0e,V0e.points=[reversePoints(Q0e,0),reversePoints(mye,0)]):ime.current.bt=!1}if(f0e&&Q0e[0]==="b"&&(r0e<t0e.top||ime.current.tb)){var Yme=M0e;m0e?Yme+=Hme-zme:Yme=yye.y-cye.y-C0e;var l0e=pye(X0e,Yme),S0e=pye(X0e,Yme,Qme);l0e>J0e||l0e===J0e&&(!d0e||S0e>=aye)?(ime.current.tb=!0,M0e=Yme,C0e=-C0e,V0e.points=[reversePoints(Q0e,0),reversePoints(mye,0)]):ime.current.tb=!1}var I0e=Vye(G0e),Z0e=Q0e[1]===mye[1];if(I0e&&Q0e[1]==="l"&&(n0e>t0e.right||ime.current.rl)){var lye=X0e;Z0e?lye-=Wme-Vme:lye=F0e.x-W0e.x-$0e;var Tye=pye(lye,M0e),xye=pye(lye,M0e,Qme);Tye>J0e||Tye===J0e&&(!d0e||xye>=aye)?(ime.current.rl=!0,X0e=lye,$0e=-$0e,V0e.points=[reversePoints(Q0e,1),reversePoints(mye,1)]):ime.current.rl=!1}if(I0e&&Q0e[1]==="r"&&(A0e<t0e.left||ime.current.lr)){var Dye=X0e;Z0e?Dye+=Wme-Vme:Dye=yye.x-cye.x-$0e;var Lye=pye(Dye,M0e),lbe=pye(Dye,M0e,Qme);Lye>J0e||Lye===J0e&&(!d0e||lbe>=aye)?(ime.current.lr=!0,X0e=Dye,$0e=-$0e,V0e.points=[reversePoints(Q0e,1),reversePoints(mye,1)]):ime.current.lr=!1}kye();var Uye=wye===!0?0:wye;typeof Uye=="number"&&(A0e<Qme.left&&(X0e-=A0e-Qme.left-$0e,Mme.x+Vme<Qme.left+Uye&&(X0e+=Mme.x-Qme.left+Vme-Uye)),n0e>Qme.right&&(X0e-=n0e-Qme.right-$0e,Mme.x>Qme.right-Uye&&(X0e+=Mme.x-Qme.right+Uye)));var Qye=Eye===!0?0:Eye;typeof Qye=="number"&&(r0e<Qme.top&&(M0e-=r0e-Qme.top-C0e,Mme.y+zme<Qme.top+Qye&&(M0e+=Mme.y-Qme.top+zme-Qye)),R0e>Qme.bottom&&(M0e-=R0e-Qme.bottom-C0e,Mme.y>Qme.bottom-Qye&&(M0e+=Mme.y-Qme.bottom+Qye)));var Sye=Ime.x+X0e,jye=Sye+Wme,qye=Ime.y+M0e,Rye=qye+Hme,Aye=Mme.x,Oye=Aye+Vme,fye=Mme.y,gye=fye+zme,Hye=Math.max(Sye,Aye),Xye=Math.min(jye,Oye),Wye=(Hye+Xye)/2,nbe=Wye-Sye,bye=Math.max(qye,fye),dye=Math.min(Rye,gye),Yye=(bye+dye)/2,ube=Yye-qye;zP==null||zP(kh,V0e);var sbe=o0e.right-Ime.x-(X0e+Ime.width),ybe=o0e.bottom-Ime.y-(M0e+Ime.height);g0e===1&&(X0e=Math.round(X0e),sbe=Math.round(sbe)),u0e===1&&(M0e=Math.round(M0e),ybe=Math.round(ybe));var Pye={ready:!0,offsetX:X0e/g0e,offsetY:M0e/u0e,offsetR:sbe/g0e,offsetB:ybe/u0e,arrowX:nbe/g0e,arrowY:ube/u0e,scaleX:g0e,scaleY:u0e,align:V0e};rme(Pye)}}),sme=function(){ame.current+=1;var hme=ame.current;Promise.resolve().then(function(){ame.current===hme&&ume()})},fme=function(){rme(function(hme){return _objectSpread2(_objectSpread2({},hme),{},{ready:!1})})};return useLayoutEffect$1(fme,[$_]),useLayoutEffect$1(function(){Ff||fme()},[Ff]),[nme.ready,nme.offsetX,nme.offsetY,nme.offsetR,nme.offsetB,nme.arrowX,nme.arrowY,nme.scaleX,nme.scaleY,nme.align,sme]}function useWatch(Ff,kh,x_,$_,B_){useLayoutEffect$1(function(){if(Ff&&kh&&x_){let ame=function(){$_(),B_()};var $P=kh,zP=x_,eme=collectScroller($P),tme=collectScroller(zP),nme=getWin(zP),rme=new Set([nme].concat(_toConsumableArray(eme),_toConsumableArray(tme)));return rme.forEach(function(ome){ome.addEventListener("scroll",ame,{passive:!0})}),nme.addEventListener("resize",ame,{passive:!0}),$_(),function(){rme.forEach(function(ome){ome.removeEventListener("scroll",ame),nme.removeEventListener("resize",ame)})}}},[Ff,kh,x_])}function useWinClick(Ff,kh,x_,$_,B_,$P,zP,eme){var tme=React__namespace.useRef(Ff);tme.current=Ff,React__namespace.useEffect(function(){if(kh&&$_&&(!B_||$P)){var nme=function(fme){var lme=fme.target;tme.current&&!zP(lme)&&eme(!1)},rme=getWin($_);rme.addEventListener("mousedown",nme,!0),rme.addEventListener("contextmenu",nme,!0);var ame=getShadowRoot(x_);if(ame&&(ame.addEventListener("mousedown",nme,!0),ame.addEventListener("contextmenu",nme,!0)),process.env.NODE_ENV!=="production"){var ome,ime,cme=x_==null||(ome=x_.getRootNode)===null||ome===void 0?void 0:ome.call(x_),ume=(ime=$_.getRootNode)===null||ime===void 0?void 0:ime.call($_);warning$4(cme===ume,"trigger element and popup element should in same shadow root.")}return function(){rme.removeEventListener("mousedown",nme,!0),rme.removeEventListener("contextmenu",nme,!0),ame&&(ame.removeEventListener("mousedown",nme,!0),ame.removeEventListener("contextmenu",nme,!0))}}},[kh,x_,$_,B_,$P])}var _excluded$v=["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 generateTrigger(){var Ff=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Portal,kh=React__namespace.forwardRef(function(x_,$_){var B_=x_.prefixCls,$P=B_===void 0?"rc-trigger-popup":B_,zP=x_.children,eme=x_.action,tme=eme===void 0?"hover":eme,nme=x_.showAction,rme=x_.hideAction,ame=x_.popupVisible,ome=x_.defaultPopupVisible,ime=x_.onPopupVisibleChange,cme=x_.afterPopupVisibleChange,ume=x_.mouseEnterDelay,sme=x_.mouseLeaveDelay,fme=sme===void 0?.1:sme,lme=x_.focusDelay,hme=x_.blurDelay,pme=x_.mask,gme=x_.maskClosable,yme=gme===void 0?!0:gme,mme=x_.getPopupContainer,bme=x_.forceRender,Sme=x_.autoDestroy,_me=x_.destroyPopupOnHide,Cme=x_.popup,Eme=x_.popupClassName,Tme=x_.popupStyle,Rme=x_.popupPlacement,Pme=x_.builtinPlacements,$me=Pme===void 0?{}:Pme,Dme=x_.popupAlign,Mme=x_.zIndex,Nme=x_.stretch,Ime=x_.getPopupClassNameFromAlign,wme=x_.fresh,Ome=x_.alignPoint,Ame=x_.onPopupClick,Fme=x_.onPopupAlign,Bme=x_.arrow,kme=x_.popupMotion,Lme=x_.maskMotion,Hme=x_.popupTransitionName,Wme=x_.popupAnimation,zme=x_.maskTransitionName,Vme=x_.maskAnimation,Xme=x_.className,e0e=x_.getTriggerDOMNode,Ume=_objectWithoutProperties(x_,_excluded$v),Jme=Sme||_me||!1,s0e=React__namespace.useState(!1),d0e=_slicedToArray(s0e,2),Zme=d0e[0],Qme=d0e[1];useLayoutEffect$1(function(){Qme(isMobile())},[]);var a0e=React__namespace.useRef({}),t0e=React__namespace.useContext(TriggerContext),o0e=React__namespace.useMemo(function(){return{registerSubPopup:function(Mye,fbe){a0e.current[Mye]=fbe,t0e==null||t0e.registerSubPopup(Mye,fbe)}}},[t0e]),g0e=useId$2(),u0e=React__namespace.useState(null),h0e=_slicedToArray(u0e,2),E0e=h0e[0],P0e=h0e[1],y0e=React__namespace.useRef(null),$0e=useEvent(function(_ye){y0e.current=_ye,isDOM(_ye)&&E0e!==_ye&&P0e(_ye),t0e==null||t0e.registerSubPopup(g0e,_ye)}),C0e=React__namespace.useState(null),z0e=_slicedToArray(C0e,2),D0e=z0e[0],O0e=z0e[1],b0e=React__namespace.useRef(null),k0e=useEvent(function(_ye){isDOM(_ye)&&D0e!==_ye&&(O0e(_ye),b0e.current=_ye)}),T0e=React__namespace.Children.only(zP),L0e=(T0e==null?void 0:T0e.props)||{},Y0e={},mye=useEvent(function(_ye){var Mye,fbe,bbe=D0e;return(bbe==null?void 0:bbe.contains(_ye))||((Mye=getShadowRoot(bbe))===null||Mye===void 0?void 0:Mye.host)===_ye||_ye===bbe||(E0e==null?void 0:E0e.contains(_ye))||((fbe=getShadowRoot(E0e))===null||fbe===void 0?void 0:fbe.host)===_ye||_ye===E0e||Object.values(a0e.current).some(function(hbe){return(hbe==null?void 0:hbe.contains(_ye))||_ye===hbe})}),Q0e=getMotion($P,kme,Wme,Hme),U0e=getMotion($P,Lme,Vme,zme),q0e=React__namespace.useState(ome||!1),V0e=_slicedToArray(q0e,2),X0e=V0e[0],M0e=V0e[1],J0e=ame??X0e,aye=useEvent(function(_ye){ame===void 0&&M0e(_ye)});useLayoutEffect$1(function(){M0e(ame||!1)},[ame]);var F0e=React__namespace.useRef(J0e);F0e.current=J0e;var cye=React__namespace.useRef([]);cye.current=[];var yye=useEvent(function(_ye){var Mye;aye(_ye),((Mye=cye.current[cye.current.length-1])!==null&&Mye!==void 0?Mye:J0e)!==_ye&&(cye.current.push(_ye),ime==null||ime(_ye))}),W0e=React__namespace.useRef(),sye=function(){clearTimeout(W0e.current)},G0e=function(Mye){var fbe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;sye(),fbe===0?yye(Mye):W0e.current=setTimeout(function(){yye(Mye)},fbe*1e3)};React__namespace.useEffect(function(){return sye},[]);var hye=React__namespace.useState(!1),wye=_slicedToArray(hye,2),Eye=wye[0],Vye=wye[1];useLayoutEffect$1(function(_ye){(!_ye||J0e)&&Vye(!0)},[J0e]);var r0e=React__namespace.useState(null),R0e=_slicedToArray(r0e,2),A0e=R0e[0],n0e=R0e[1],f0e=React__namespace.useState([0,0]),m0e=_slicedToArray(f0e,2),w0e=m0e[0],j0e=m0e[1],_0e=function(Mye){j0e([Mye.clientX,Mye.clientY])},Yme=useAlign(J0e,E0e,Ome?w0e:D0e,Rme,$me,Dme,Fme),l0e=_slicedToArray(Yme,11),S0e=l0e[0],I0e=l0e[1],Z0e=l0e[2],lye=l0e[3],Tye=l0e[4],xye=l0e[5],Dye=l0e[6],Lye=l0e[7],lbe=l0e[8],Uye=l0e[9],Qye=l0e[10],Sye=useAction(Zme,tme,nme,rme),jye=_slicedToArray(Sye,2),qye=jye[0],Rye=jye[1],Aye=qye.has("click"),Oye=Rye.has("click")||Rye.has("contextMenu"),fye=useEvent(function(){Eye||Qye()}),gye=function(){F0e.current&&Ome&&Oye&&G0e(!1)};useWatch(J0e,D0e,E0e,fye,gye),useLayoutEffect$1(function(){fye()},[w0e,Rme]),useLayoutEffect$1(function(){J0e&&!($me!=null&&$me[Rme])&&fye()},[JSON.stringify(Dme)]);var Hye=React__namespace.useMemo(function(){var _ye=getAlignPopupClassName($me,$P,Uye,Ome);return classNames(_ye,Ime==null?void 0:Ime(Uye))},[Uye,Ime,$me,$P,Ome]);React__namespace.useImperativeHandle($_,function(){return{nativeElement:b0e.current,popupElement:y0e.current,forceAlign:fye}});var Xye=React__namespace.useState(0),Wye=_slicedToArray(Xye,2),nbe=Wye[0],bye=Wye[1],dye=React__namespace.useState(0),Yye=_slicedToArray(dye,2),ube=Yye[0],sbe=Yye[1],ybe=function(){if(Nme&&D0e){var Mye=D0e.getBoundingClientRect();bye(Mye.width),sbe(Mye.height)}},Pye=function(){ybe(),fye()},pye=function(Mye){Vye(!1),Qye(),cme==null||cme(Mye)},kye=function(){return new Promise(function(Mye){ybe(),n0e(function(){return Mye})})};useLayoutEffect$1(function(){A0e&&(Qye(),A0e(),n0e(null))},[A0e]);function ebe(_ye,Mye,fbe,bbe){Y0e[_ye]=function(hbe){var k1e;bbe==null||bbe(hbe),G0e(Mye,fbe);for(var J1e=arguments.length,g_e=new Array(J1e>1?J1e-1:0),abe=1;abe<J1e;abe++)g_e[abe-1]=arguments[abe];(k1e=L0e[_ye])===null||k1e===void 0||k1e.call.apply(k1e,[L0e,hbe].concat(g_e))}}(Aye||Oye)&&(Y0e.onClick=function(_ye){var Mye;F0e.current&&Oye?G0e(!1):!F0e.current&&Aye&&(_0e(_ye),G0e(!0));for(var fbe=arguments.length,bbe=new Array(fbe>1?fbe-1:0),hbe=1;hbe<fbe;hbe++)bbe[hbe-1]=arguments[hbe];(Mye=L0e.onClick)===null||Mye===void 0||Mye.call.apply(Mye,[L0e,_ye].concat(bbe))}),useWinClick(J0e,Oye,D0e,E0e,pme,yme,mye,G0e);var pbe=qye.has("hover"),r1e=Rye.has("hover"),a1e,h1e;pbe&&(ebe("onMouseEnter",!0,ume,function(_ye){_0e(_ye)}),ebe("onPointerEnter",!0,ume,function(_ye){_0e(_ye)}),a1e=function(Mye){(J0e||Eye)&&E0e!==null&&E0e!==void 0&&E0e.contains(Mye.target)&&G0e(!0,ume)},Ome&&(Y0e.onMouseMove=function(_ye){var Mye;(Mye=L0e.onMouseMove)===null||Mye===void 0||Mye.call(L0e,_ye)})),r1e&&(ebe("onMouseLeave",!1,fme),ebe("onPointerLeave",!1,fme),h1e=function(){G0e(!1,fme)}),qye.has("focus")&&ebe("onFocus",!0,lme),Rye.has("focus")&&ebe("onBlur",!1,hme),qye.has("contextMenu")&&(Y0e.onContextMenu=function(_ye){var Mye;F0e.current&&Rye.has("contextMenu")?G0e(!1):(_0e(_ye),G0e(!0)),_ye.preventDefault();for(var fbe=arguments.length,bbe=new Array(fbe>1?fbe-1:0),hbe=1;hbe<fbe;hbe++)bbe[hbe-1]=arguments[hbe];(Mye=L0e.onContextMenu)===null||Mye===void 0||Mye.call.apply(Mye,[L0e,_ye].concat(bbe))}),Xme&&(Y0e.className=classNames(L0e.className,Xme));var E1e=_objectSpread2(_objectSpread2({},L0e),Y0e),N1e={},X1e=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];X1e.forEach(function(_ye){Ume[_ye]&&(N1e[_ye]=function(){for(var Mye,fbe=arguments.length,bbe=new Array(fbe),hbe=0;hbe<fbe;hbe++)bbe[hbe]=arguments[hbe];(Mye=E1e[_ye])===null||Mye===void 0||Mye.call.apply(Mye,[E1e].concat(bbe)),Ume[_ye].apply(Ume,bbe)})});var M1e=React__namespace.cloneElement(T0e,_objectSpread2(_objectSpread2({},E1e),N1e)),Z1e={x:xye,y:Dye},Q1e=Bme?_objectSpread2({},Bme!==!0?Bme:{}):null;return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(RefResizeObserver,{disabled:!J0e,ref:k0e,onResize:Pye},React__namespace.createElement(TriggerWrapper,{getTriggerDOMNode:e0e},M1e)),React__namespace.createElement(TriggerContext.Provider,{value:o0e},React__namespace.createElement(Popup$2,{portal:Ff,ref:$0e,prefixCls:$P,popup:Cme,className:classNames(Eme,Hye),style:Tme,target:D0e,onMouseEnter:a1e,onMouseLeave:h1e,onPointerEnter:a1e,zIndex:Mme,open:J0e,keepDom:Eye,fresh:wme,onClick:Ame,mask:pme,motion:Q0e,maskMotion:U0e,onVisibleChanged:pye,onPrepare:kye,forceRender:bme,autoDestroy:Jme,getPopupContainer:mme,align:Uye,arrow:Q1e,arrowPos:Z1e,ready:S0e,offsetX:I0e,offsetY:Z0e,offsetR:lye,offsetB:Tye,onAlign:fye,stretch:Nme,targetWidth:nbe/Lye,targetHeight:ube/lbe})))});return process.env.NODE_ENV!=="production"&&(kh.displayName="Trigger"),kh}const Trigger=generateTrigger(Portal);var _excluded$u=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],getBuiltInPlacements$1=function(kh){var x_=kh===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:x_,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:x_,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:x_,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:x_,adjustY:1},htmlRegion:"scroll"}}},SelectTrigger=function(kh,x_){var $_=kh.prefixCls;kh.disabled;var B_=kh.visible,$P=kh.children,zP=kh.popupElement,eme=kh.animation,tme=kh.transitionName,nme=kh.dropdownStyle,rme=kh.dropdownClassName,ame=kh.direction,ome=ame===void 0?"ltr":ame,ime=kh.placement,cme=kh.builtinPlacements,ume=kh.dropdownMatchSelectWidth,sme=kh.dropdownRender,fme=kh.dropdownAlign,lme=kh.getPopupContainer,hme=kh.empty,pme=kh.getTriggerDOMNode,gme=kh.onPopupVisibleChange,yme=kh.onPopupMouseEnter,mme=_objectWithoutProperties(kh,_excluded$u),bme="".concat($_,"-dropdown"),Sme=zP;sme&&(Sme=sme(zP));var _me=React__namespace.useMemo(function(){return cme||getBuiltInPlacements$1(ume)},[cme,ume]),Cme=eme?"".concat(bme,"-").concat(eme):tme,Eme=typeof ume=="number",Tme=React__namespace.useMemo(function(){return Eme?null:ume===!1?"minWidth":"width"},[ume,Eme]),Rme=nme;Eme&&(Rme=_objectSpread2(_objectSpread2({},Rme),{},{width:ume}));var Pme=React__namespace.useRef(null);return React__namespace.useImperativeHandle(x_,function(){return{getPopupElement:function(){var Dme;return(Dme=Pme.current)===null||Dme===void 0?void 0:Dme.popupElement}}}),React__namespace.createElement(Trigger,_extends({},mme,{showAction:gme?["click"]:[],hideAction:gme?["click"]:[],popupPlacement:ime||(ome==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:_me,prefixCls:bme,popupTransitionName:Cme,popup:React__namespace.createElement("div",{onMouseEnter:yme},Sme),ref:Pme,stretch:Tme,popupAlign:fme,popupVisible:B_,getPopupContainer:lme,popupClassName:classNames(rme,_defineProperty({},"".concat(bme,"-empty"),hme)),popupStyle:Rme,getTriggerDOMNode:pme,onPopupVisibleChange:gme}),$P)},RefSelectTrigger=React__namespace.forwardRef(SelectTrigger);process.env.NODE_ENV!=="production"&&(RefSelectTrigger.displayName="SelectTrigger");function getKey$1(Ff,kh){var x_=Ff.key,$_;return"value"in Ff&&($_=Ff.value),x_??($_!==void 0?$_:"rc-index-key-".concat(kh))}function isValidCount(Ff){return typeof Ff<"u"&&!Number.isNaN(Ff)}function fillFieldNames$2(Ff,kh){var x_=Ff||{},$_=x_.label,B_=x_.value,$P=x_.options,zP=x_.groupLabel,eme=$_||(kh?"children":"label");return{label:eme,value:B_||"value",options:$P||"options",groupLabel:zP||eme}}function flattenOptions(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x_=kh.fieldNames,$_=kh.childrenAsData,B_=[],$P=fillFieldNames$2(x_,!1),zP=$P.label,eme=$P.value,tme=$P.options,nme=$P.groupLabel;function rme(ame,ome){Array.isArray(ame)&&ame.forEach(function(ime){if(ome||!(tme in ime)){var cme=ime[eme];B_.push({key:getKey$1(ime,B_.length),groupOption:ome,data:ime,label:ime[zP],value:cme})}else{var ume=ime[nme];ume===void 0&&$_&&(ume=ime.label),B_.push({key:getKey$1(ime,B_.length),group:!0,data:ime,label:ume}),rme(ime[tme],!0)}})}return rme(Ff,!1),B_}function injectPropsWithOption(Ff){var kh=_objectSpread2({},Ff);return"props"in kh||Object.defineProperty(kh,"props",{get:function(){return warningOnce(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),kh}}),kh}var getSeparatedContent=function(kh,x_,$_){if(!x_||!x_.length)return null;var B_=!1,$P=function eme(tme,nme){var rme=_toArray(nme),ame=rme[0],ome=rme.slice(1);if(!ame)return[tme];var ime=tme.split(ame);return B_=B_||ime.length>1,ime.reduce(function(cme,ume){return[].concat(_toConsumableArray(cme),_toConsumableArray(eme(ume,ome)))},[]).filter(Boolean)},zP=$P(kh,x_);return B_?typeof $_<"u"?zP.slice(0,$_):zP:null},SelectContext=React__namespace.createContext(null);function Polite(Ff){var kh=Ff.visible,x_=Ff.values;if(!kh)return null;var $_=50;return React__namespace.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(x_.slice(0,$_).map(function(B_){var $P=B_.label,zP=B_.value;return["number","string"].includes(_typeof($P))?$P:zP}).join(", ")),x_.length>$_?", ...":null)}var _excluded$t=["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"],DEFAULT_OMIT_PROPS=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],isMultiple=function(kh){return kh==="tags"||kh==="multiple"},BaseSelect=React__namespace.forwardRef(function(Ff,kh){var x_,$_=Ff.id,B_=Ff.prefixCls,$P=Ff.className,zP=Ff.showSearch,eme=Ff.tagRender,tme=Ff.direction,nme=Ff.omitDomProps,rme=Ff.displayValues,ame=Ff.onDisplayValuesChange,ome=Ff.emptyOptions,ime=Ff.notFoundContent,cme=ime===void 0?"Not Found":ime,ume=Ff.onClear,sme=Ff.mode,fme=Ff.disabled,lme=Ff.loading,hme=Ff.getInputElement,pme=Ff.getRawInputElement,gme=Ff.open,yme=Ff.defaultOpen,mme=Ff.onDropdownVisibleChange,bme=Ff.activeValue,Sme=Ff.onActiveValueChange,_me=Ff.activeDescendantId,Cme=Ff.searchValue,Eme=Ff.autoClearSearchValue,Tme=Ff.onSearch,Rme=Ff.onSearchSplit,Pme=Ff.tokenSeparators,$me=Ff.allowClear,Dme=Ff.suffixIcon,Mme=Ff.clearIcon,Nme=Ff.OptionList,Ime=Ff.animation,wme=Ff.transitionName,Ome=Ff.dropdownStyle,Ame=Ff.dropdownClassName,Fme=Ff.dropdownMatchSelectWidth,Bme=Ff.dropdownRender,kme=Ff.dropdownAlign,Lme=Ff.placement,Hme=Ff.builtinPlacements,Wme=Ff.getPopupContainer,zme=Ff.showAction,Vme=zme===void 0?[]:zme,Xme=Ff.onFocus,e0e=Ff.onBlur,Ume=Ff.onKeyUp,Jme=Ff.onKeyDown,s0e=Ff.onMouseDown,d0e=_objectWithoutProperties(Ff,_excluded$t),Zme=isMultiple(sme),Qme=(zP!==void 0?zP:Zme)||sme==="combobox",a0e=_objectSpread2({},d0e);DEFAULT_OMIT_PROPS.forEach(function(fye){delete a0e[fye]}),nme==null||nme.forEach(function(fye){delete a0e[fye]});var t0e=React__namespace.useState(!1),o0e=_slicedToArray(t0e,2),g0e=o0e[0],u0e=o0e[1];React__namespace.useEffect(function(){u0e(isMobile())},[]);var h0e=React__namespace.useRef(null),E0e=React__namespace.useRef(null),P0e=React__namespace.useRef(null),y0e=React__namespace.useRef(null),$0e=React__namespace.useRef(null),C0e=React__namespace.useRef(!1),z0e=useDelayReset(),D0e=_slicedToArray(z0e,3),O0e=D0e[0],b0e=D0e[1],k0e=D0e[2];React__namespace.useImperativeHandle(kh,function(){var fye,gye;return{focus:(fye=y0e.current)===null||fye===void 0?void 0:fye.focus,blur:(gye=y0e.current)===null||gye===void 0?void 0:gye.blur,scrollTo:function(Xye){var Wye;return(Wye=$0e.current)===null||Wye===void 0?void 0:Wye.scrollTo(Xye)},nativeElement:h0e.current||E0e.current}});var T0e=React__namespace.useMemo(function(){var fye;if(sme!=="combobox")return Cme;var gye=(fye=rme[0])===null||fye===void 0?void 0:fye.value;return typeof gye=="string"||typeof gye=="number"?String(gye):""},[Cme,sme,rme]),L0e=sme==="combobox"&&typeof hme=="function"&&hme()||null,Y0e=typeof pme=="function"&&pme(),mye=useComposeRef(E0e,Y0e==null||(x_=Y0e.props)===null||x_===void 0?void 0:x_.ref),Q0e=React__namespace.useState(!1),U0e=_slicedToArray(Q0e,2),q0e=U0e[0],V0e=U0e[1];useLayoutEffect$1(function(){V0e(!0)},[]);var X0e=useMergedState(!1,{defaultValue:yme,value:gme}),M0e=_slicedToArray(X0e,2),J0e=M0e[0],aye=M0e[1],F0e=q0e?J0e:!1,cye=!cme&&ome;(fme||cye&&F0e&&sme==="combobox")&&(F0e=!1);var yye=cye?!1:F0e,W0e=React__namespace.useCallback(function(fye){var gye=fye!==void 0?fye:!F0e;fme||(aye(gye),F0e!==gye&&(mme==null||mme(gye)))},[fme,F0e,aye,mme]),sye=React__namespace.useMemo(function(){return(Pme||[]).some(function(fye){return[`
195
+ ${kh}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${kh}-confirm-body`]:{marginBottom:"auto"}}}]},genRTLStyle=Ff=>{const{componentCls:kh}=Ff;return{[`${kh}-root`]:{[`${kh}-wrap-rtl`]:{direction:"rtl",[`${kh}-confirm-body`]:{direction:"rtl"}}}}},prepareToken$1=Ff=>{const kh=Ff.padding,x_=Ff.fontSizeHeading5,$_=Ff.lineHeightHeading5;return merge(Ff,{modalHeaderHeight:Ff.calc(Ff.calc($_).mul(x_).equal()).add(Ff.calc(kh).mul(2).equal()).equal(),modalFooterBorderColorSplit:Ff.colorSplit,modalFooterBorderStyle:Ff.lineType,modalFooterBorderWidth:Ff.lineWidth,modalCloseIconColor:Ff.colorIcon,modalCloseIconHoverColor:Ff.colorIconHover,modalCloseBtnSize:Ff.controlHeight,modalConfirmIconSize:Ff.fontHeight,modalTitleHeight:Ff.calc(Ff.titleFontSize).mul(Ff.titleLineHeight).equal()})},prepareComponentToken$c=Ff=>({footerBg:"transparent",headerBg:Ff.colorBgElevated,titleLineHeight:Ff.lineHeightHeading5,titleFontSize:Ff.fontSizeHeading5,contentBg:Ff.colorBgElevated,titleColor:Ff.colorTextHeading,contentPadding:Ff.wireframe?0:`${unit$1(Ff.paddingMD)} ${unit$1(Ff.paddingContentHorizontalLG)}`,headerPadding:Ff.wireframe?`${unit$1(Ff.padding)} ${unit$1(Ff.paddingLG)}`:0,headerBorderBottom:Ff.wireframe?`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.colorSplit}`:"none",headerMarginBottom:Ff.wireframe?0:Ff.marginXS,bodyPadding:Ff.wireframe?Ff.paddingLG:0,footerPadding:Ff.wireframe?`${unit$1(Ff.paddingXS)} ${unit$1(Ff.padding)}`:0,footerBorderTop:Ff.wireframe?`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.colorSplit}`:"none",footerBorderRadius:Ff.wireframe?`0 0 ${unit$1(Ff.borderRadiusLG)} ${unit$1(Ff.borderRadiusLG)}`:0,footerMarginTop:Ff.wireframe?0:Ff.marginSM,confirmBodyPadding:Ff.wireframe?`${unit$1(Ff.padding*2)} ${unit$1(Ff.padding*2)} ${unit$1(Ff.paddingLG)}`:0,confirmIconMarginInlineEnd:Ff.wireframe?Ff.margin:Ff.marginSM,confirmBtnsMarginTop:Ff.wireframe?Ff.marginLG:Ff.marginSM});genStyleHooks("Modal",Ff=>{const kh=prepareToken$1(Ff);return[genModalStyle(kh),genRTLStyle(kh),genModalMaskStyle(kh),initZoomMotion(kh,"zoom")]},prepareComponentToken$c,{unitless:{titleLineHeight:!0}});function withPureRenderTheme(Ff){return kh=>React__namespace.createElement(ConfigProvider,{theme:{token:{motion:!1,zIndexPopupBase:0}}},React__namespace.createElement(Ff,Object.assign({},kh)))}const genPurePanel=(Ff,kh,x_,$_)=>withPureRenderTheme($P=>{const{prefixCls:zP,style:eme}=$P,tme=React__namespace.useRef(null),[nme,rme]=React__namespace.useState(0),[ame,ome]=React__namespace.useState(0),[ime,cme]=useMergedState(!1,{value:$P.open}),{getPrefixCls:ume}=React__namespace.useContext(ConfigContext),sme=ume(kh||"select",zP);React__namespace.useEffect(()=>{if(cme(!0),typeof ResizeObserver<"u"){const hme=new ResizeObserver(gme=>{const yme=gme[0].target;rme(yme.offsetHeight+8),ome(yme.offsetWidth)}),pme=setInterval(()=>{var gme;const yme=x_?`.${x_(sme)}`:`.${sme}-dropdown`,mme=(gme=tme.current)===null||gme===void 0?void 0:gme.querySelector(yme);mme&&(clearInterval(pme),hme.observe(mme))},10);return()=>{clearInterval(pme),hme.disconnect()}}},[]);let fme=Object.assign(Object.assign({},$P),{style:Object.assign(Object.assign({},eme),{margin:0}),open:ime,visible:ime,getPopupContainer:()=>tme.current});$_&&(fme=$_(fme));const lme={paddingBottom:nme,position:"relative",minWidth:ame};return React__namespace.createElement("div",{ref:tme,style:lme},React__namespace.createElement(Ff,Object.assign({},fme)))}),isMobile=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var Ff=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(Ff)||/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(Ff==null?void 0:Ff.substr(0,4))};var TransBtn=function(kh){var x_=kh.className,$_=kh.customizeIcon,B_=kh.customizeIconProps,$P=kh.children,zP=kh.onMouseDown,eme=kh.onClick,tme=typeof $_=="function"?$_(B_):$_;return React__namespace.createElement("span",{className:x_,onMouseDown:function(rme){rme.preventDefault(),zP==null||zP(rme)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:eme,"aria-hidden":!0},tme!==void 0?tme:React__namespace.createElement("span",{className:classNames(x_.split(/\s+/).map(function(nme){return"".concat(nme,"-icon")}))},$P))},useAllowClear=function(kh,x_,$_,B_,$P){var zP=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,eme=arguments.length>6?arguments[6]:void 0,tme=arguments.length>7?arguments[7]:void 0,nme=React.useMemo(function(){if(_typeof(B_)==="object")return B_.clearIcon;if($P)return $P},[B_,$P]),rme=React.useMemo(function(){return!!(!zP&&B_&&($_.length||eme)&&!(tme==="combobox"&&eme===""))},[B_,zP,$_.length,eme,tme]);return{allowClear:rme,clearIcon:React.createElement(TransBtn,{className:"".concat(kh,"-clear"),onMouseDown:x_,customizeIcon:nme},"×")}},BaseSelectContext=React__namespace.createContext(null);function useBaseProps(){return React__namespace.useContext(BaseSelectContext)}function useDelayReset(){var Ff=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,kh=React__namespace.useState(!1),x_=_slicedToArray(kh,2),$_=x_[0],B_=x_[1],$P=React__namespace.useRef(null),zP=function(){window.clearTimeout($P.current)};React__namespace.useEffect(function(){return zP},[]);var eme=function(nme,rme){zP(),$P.current=window.setTimeout(function(){B_(nme),rme&&rme()},Ff)};return[$_,eme,zP]}function useLock(){var Ff=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,kh=React__namespace.useRef(null),x_=React__namespace.useRef(null);React__namespace.useEffect(function(){return function(){window.clearTimeout(x_.current)}},[]);function $_(B_){(B_||kh.current===null)&&(kh.current=B_),window.clearTimeout(x_.current),x_.current=window.setTimeout(function(){kh.current=null},Ff)}return[function(){return kh.current},$_]}function useSelectTriggerControl(Ff,kh,x_,$_){var B_=React__namespace.useRef(null);B_.current={open:kh,triggerOpen:x_,customizedTrigger:$_},React__namespace.useEffect(function(){function $P(zP){var eme;if(!((eme=B_.current)!==null&&eme!==void 0&&eme.customizedTrigger)){var tme=zP.target;tme.shadowRoot&&zP.composed&&(tme=zP.composedPath()[0]||tme),B_.current.open&&Ff().filter(function(nme){return nme}).every(function(nme){return!nme.contains(tme)&&nme!==tme})&&B_.current.triggerOpen(!1)}}return window.addEventListener("mousedown",$P),function(){return window.removeEventListener("mousedown",$P)}},[])}function isValidateOpenKey(Ff){return![KeyCode.ESC,KeyCode.SHIFT,KeyCode.BACKSPACE,KeyCode.TAB,KeyCode.WIN_KEY,KeyCode.ALT,KeyCode.META,KeyCode.WIN_KEY_RIGHT,KeyCode.CTRL,KeyCode.SEMICOLON,KeyCode.EQUALS,KeyCode.CAPS_LOCK,KeyCode.CONTEXT_MENU,KeyCode.F1,KeyCode.F2,KeyCode.F3,KeyCode.F4,KeyCode.F5,KeyCode.F6,KeyCode.F7,KeyCode.F8,KeyCode.F9,KeyCode.F10,KeyCode.F11,KeyCode.F12].includes(Ff)}var _excluded$y=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],UNDEFINED=void 0;function InternalItem(Ff,kh){var x_=Ff.prefixCls,$_=Ff.invalidate,B_=Ff.item,$P=Ff.renderItem,zP=Ff.responsive,eme=Ff.responsiveDisabled,tme=Ff.registerSize,nme=Ff.itemKey,rme=Ff.className,ame=Ff.style,ome=Ff.children,ime=Ff.display,cme=Ff.order,ume=Ff.component,sme=ume===void 0?"div":ume,fme=_objectWithoutProperties(Ff,_excluded$y),lme=zP&&!ime;function hme(bme){tme(nme,bme)}React__namespace.useEffect(function(){return function(){hme(null)}},[]);var pme=$P&&B_!==UNDEFINED?$P(B_):ome,gme;$_||(gme={opacity:lme?0:1,height:lme?0:UNDEFINED,overflowY:lme?"hidden":UNDEFINED,order:zP?cme:UNDEFINED,pointerEvents:lme?"none":UNDEFINED,position:lme?"absolute":UNDEFINED});var yme={};lme&&(yme["aria-hidden"]=!0);var mme=React__namespace.createElement(sme,_extends({className:classNames(!$_&&x_,rme),style:_objectSpread2(_objectSpread2({},gme),ame)},yme,fme,{ref:kh}),pme);return zP&&(mme=React__namespace.createElement(RefResizeObserver,{onResize:function(Sme){var _me=Sme.offsetWidth;hme(_me)},disabled:eme},mme)),mme}var Item$1=React__namespace.forwardRef(InternalItem);Item$1.displayName="Item";function channelUpdate(Ff){if(typeof MessageChannel>"u")wrapperRaf(Ff);else{var kh=new MessageChannel;kh.port1.onmessage=function(){return Ff()},kh.port2.postMessage(void 0)}}function useBatcher(){var Ff=React__namespace.useRef(null),kh=function($_){Ff.current||(Ff.current=[],channelUpdate(function(){ReactDOM.unstable_batchedUpdates(function(){Ff.current.forEach(function(B_){B_()}),Ff.current=null})})),Ff.current.push($_)};return kh}function useEffectState(Ff,kh){var x_=React__namespace.useState(kh),$_=_slicedToArray(x_,2),B_=$_[0],$P=$_[1],zP=useEvent(function(eme){Ff(function(){$P(eme)})});return[B_,zP]}var OverflowContext=React.createContext(null),_excluded$x=["component"],_excluded2$7=["className"],_excluded3=["className"],InternalRawItem=function(kh,x_){var $_=React__namespace.useContext(OverflowContext);if(!$_){var B_=kh.component,$P=B_===void 0?"div":B_,zP=_objectWithoutProperties(kh,_excluded$x);return React__namespace.createElement($P,_extends({},zP,{ref:x_}))}var eme=$_.className,tme=_objectWithoutProperties($_,_excluded2$7),nme=kh.className,rme=_objectWithoutProperties(kh,_excluded3);return React__namespace.createElement(OverflowContext.Provider,{value:null},React__namespace.createElement(Item$1,_extends({ref:x_,className:classNames(eme,nme)},tme,rme)))},RawItem=React__namespace.forwardRef(InternalRawItem);RawItem.displayName="RawItem";var _excluded$w=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],RESPONSIVE="responsive",INVALIDATE="invalidate";function defaultRenderRest(Ff){return"+ ".concat(Ff.length," ...")}function Overflow(Ff,kh){var x_=Ff.prefixCls,$_=x_===void 0?"rc-overflow":x_,B_=Ff.data,$P=B_===void 0?[]:B_,zP=Ff.renderItem,eme=Ff.renderRawItem,tme=Ff.itemKey,nme=Ff.itemWidth,rme=nme===void 0?10:nme,ame=Ff.ssr,ome=Ff.style,ime=Ff.className,cme=Ff.maxCount,ume=Ff.renderRest,sme=Ff.renderRawRest,fme=Ff.suffix,lme=Ff.component,hme=lme===void 0?"div":lme,pme=Ff.itemComponent,gme=Ff.onVisibleChange,yme=_objectWithoutProperties(Ff,_excluded$w),mme=ame==="full",bme=useBatcher(),Sme=useEffectState(bme,null),_me=_slicedToArray(Sme,2),Cme=_me[0],Eme=_me[1],Tme=Cme||0,Rme=useEffectState(bme,new Map),Pme=_slicedToArray(Rme,2),$me=Pme[0],Dme=Pme[1],Mme=useEffectState(bme,0),Nme=_slicedToArray(Mme,2),Ime=Nme[0],wme=Nme[1],Ome=useEffectState(bme,0),Ame=_slicedToArray(Ome,2),Fme=Ame[0],Bme=Ame[1],kme=useEffectState(bme,0),Lme=_slicedToArray(kme,2),Hme=Lme[0],Wme=Lme[1],zme=React.useState(null),Vme=_slicedToArray(zme,2),Xme=Vme[0],e0e=Vme[1],Ume=React.useState(null),Jme=_slicedToArray(Ume,2),s0e=Jme[0],d0e=Jme[1],Zme=React__namespace.useMemo(function(){return s0e===null&&mme?Number.MAX_SAFE_INTEGER:s0e||0},[s0e,Cme]),Qme=React.useState(!1),a0e=_slicedToArray(Qme,2),t0e=a0e[0],o0e=a0e[1],g0e="".concat($_,"-item"),u0e=Math.max(Ime,Fme),h0e=cme===RESPONSIVE,E0e=$P.length&&h0e,P0e=cme===INVALIDATE,y0e=E0e||typeof cme=="number"&&$P.length>cme,$0e=React.useMemo(function(){var aye=$P;return E0e?Cme===null&&mme?aye=$P:aye=$P.slice(0,Math.min($P.length,Tme/rme)):typeof cme=="number"&&(aye=$P.slice(0,cme)),aye},[$P,rme,Cme,cme,E0e]),C0e=React.useMemo(function(){return E0e?$P.slice(Zme+1):$P.slice($0e.length)},[$P,$0e,E0e,Zme]),z0e=React.useCallback(function(aye,F0e){var cye;return typeof tme=="function"?tme(aye):(cye=tme&&(aye==null?void 0:aye[tme]))!==null&&cye!==void 0?cye:F0e},[tme]),D0e=React.useCallback(zP||function(aye){return aye},[zP]);function O0e(aye,F0e,cye){s0e===aye&&(F0e===void 0||F0e===Xme)||(d0e(aye),cye||(o0e(aye<$P.length-1),gme==null||gme(aye)),F0e!==void 0&&e0e(F0e))}function b0e(aye,F0e){Eme(F0e.clientWidth)}function k0e(aye,F0e){Dme(function(cye){var yye=new Map(cye);return F0e===null?yye.delete(aye):yye.set(aye,F0e),yye})}function T0e(aye,F0e){Bme(F0e),wme(Fme)}function L0e(aye,F0e){Wme(F0e)}function Y0e(aye){return $me.get(z0e($0e[aye],aye))}useLayoutEffect$1(function(){if(Tme&&typeof u0e=="number"&&$0e){var aye=Hme,F0e=$0e.length,cye=F0e-1;if(!F0e){O0e(0,null);return}for(var yye=0;yye<F0e;yye+=1){var W0e=Y0e(yye);if(mme&&(W0e=W0e||0),W0e===void 0){O0e(yye-1,void 0,!0);break}if(aye+=W0e,cye===0&&aye<=Tme||yye===cye-1&&aye+Y0e(cye)<=Tme){O0e(cye,null);break}else if(aye+u0e>Tme){O0e(yye-1,aye-W0e-Hme+Fme);break}}fme&&Y0e(0)+Hme>Tme&&e0e(null)}},[Tme,$me,Fme,Hme,z0e,$0e]);var mye=t0e&&!!C0e.length,Q0e={};Xme!==null&&E0e&&(Q0e={position:"absolute",left:Xme,top:0});var U0e={prefixCls:g0e,responsive:E0e,component:pme,invalidate:P0e},q0e=eme?function(aye,F0e){var cye=z0e(aye,F0e);return React__namespace.createElement(OverflowContext.Provider,{key:cye,value:_objectSpread2(_objectSpread2({},U0e),{},{order:F0e,item:aye,itemKey:cye,registerSize:k0e,display:F0e<=Zme})},eme(aye,F0e))}:function(aye,F0e){var cye=z0e(aye,F0e);return React__namespace.createElement(Item$1,_extends({},U0e,{order:F0e,key:cye,item:aye,renderItem:D0e,itemKey:cye,registerSize:k0e,display:F0e<=Zme}))},V0e,X0e={order:mye?Zme:Number.MAX_SAFE_INTEGER,className:"".concat(g0e,"-rest"),registerSize:T0e,display:mye};if(sme)sme&&(V0e=React__namespace.createElement(OverflowContext.Provider,{value:_objectSpread2(_objectSpread2({},U0e),X0e)},sme(C0e)));else{var M0e=ume||defaultRenderRest;V0e=React__namespace.createElement(Item$1,_extends({},U0e,X0e),typeof M0e=="function"?M0e(C0e):M0e)}var J0e=React__namespace.createElement(hme,_extends({className:classNames(!P0e&&$_,ime),style:ome,ref:kh},yme),$0e.map(q0e),y0e?V0e:null,fme&&React__namespace.createElement(Item$1,_extends({},U0e,{responsive:h0e,responsiveDisabled:!E0e,order:Zme,className:"".concat(g0e,"-suffix"),registerSize:L0e,display:!0,style:Q0e}),fme));return h0e&&(J0e=React__namespace.createElement(RefResizeObserver,{onResize:b0e,disabled:!E0e},J0e)),J0e}var ForwardOverflow=React__namespace.forwardRef(Overflow);ForwardOverflow.displayName="Overflow";ForwardOverflow.Item=RawItem;ForwardOverflow.RESPONSIVE=RESPONSIVE;ForwardOverflow.INVALIDATE=INVALIDATE;var Input$5=function(kh,x_){var $_,B_=kh.prefixCls,$P=kh.id,zP=kh.inputElement,eme=kh.disabled,tme=kh.tabIndex,nme=kh.autoFocus,rme=kh.autoComplete,ame=kh.editable,ome=kh.activeDescendantId,ime=kh.value,cme=kh.maxLength,ume=kh.onKeyDown,sme=kh.onMouseDown,fme=kh.onChange,lme=kh.onPaste,hme=kh.onCompositionStart,pme=kh.onCompositionEnd,gme=kh.open,yme=kh.attrs,mme=zP||React__namespace.createElement("input",null),bme=mme,Sme=bme.ref,_me=bme.props,Cme=_me.onKeyDown,Eme=_me.onChange,Tme=_me.onMouseDown,Rme=_me.onCompositionStart,Pme=_me.onCompositionEnd,$me=_me.style;return warning$4(!("maxLength"in mme.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),mme=React__namespace.cloneElement(mme,_objectSpread2(_objectSpread2(_objectSpread2({type:"search"},_me),{},{id:$P,ref:composeRef(x_,Sme),disabled:eme,tabIndex:tme,autoComplete:rme||"off",autoFocus:nme,className:classNames("".concat(B_,"-selection-search-input"),($_=mme)===null||$_===void 0||($_=$_.props)===null||$_===void 0?void 0:$_.className),role:"combobox","aria-expanded":gme||!1,"aria-haspopup":"listbox","aria-owns":"".concat($P,"_list"),"aria-autocomplete":"list","aria-controls":"".concat($P,"_list"),"aria-activedescendant":gme?ome:void 0},yme),{},{value:ame?ime:"",maxLength:cme,readOnly:!ame,unselectable:ame?null:"on",style:_objectSpread2(_objectSpread2({},$me),{},{opacity:ame?null:0}),onKeyDown:function(Mme){ume(Mme),Cme&&Cme(Mme)},onMouseDown:function(Mme){sme(Mme),Tme&&Tme(Mme)},onChange:function(Mme){fme(Mme),Eme&&Eme(Mme)},onCompositionStart:function(Mme){hme(Mme),Rme&&Rme(Mme)},onCompositionEnd:function(Mme){pme(Mme),Pme&&Pme(Mme)},onPaste:lme})),mme},RefInput=React__namespace.forwardRef(Input$5);process.env.NODE_ENV!=="production"&&(RefInput.displayName="Input");function toArray$5(Ff){return Array.isArray(Ff)?Ff:Ff!==void 0?[Ff]:[]}var isClient=typeof window<"u"&&window.document&&window.document.documentElement,isBrowserClient$2=process.env.NODE_ENV!=="test"&&isClient;function hasValue(Ff){return Ff!=null}function isComboNoValue(Ff){return!Ff&&Ff!==0}function isTitleType$1(Ff){return["string","number"].includes(_typeof(Ff))}function getTitle(Ff){var kh=void 0;return Ff&&(isTitleType$1(Ff.title)?kh=Ff.title.toString():isTitleType$1(Ff.label)&&(kh=Ff.label.toString())),kh}function useLayoutEffect(Ff,kh){isBrowserClient$2?React__namespace.useLayoutEffect(Ff,kh):React__namespace.useEffect(Ff,kh)}function itemKey$1(Ff){var kh;return(kh=Ff.key)!==null&&kh!==void 0?kh:Ff.value}var onPreventMouseDown=function(kh){kh.preventDefault(),kh.stopPropagation()},SelectSelector=function(kh){var x_=kh.id,$_=kh.prefixCls,B_=kh.values,$P=kh.open,zP=kh.searchValue,eme=kh.autoClearSearchValue,tme=kh.inputRef,nme=kh.placeholder,rme=kh.disabled,ame=kh.mode,ome=kh.showSearch,ime=kh.autoFocus,cme=kh.autoComplete,ume=kh.activeDescendantId,sme=kh.tabIndex,fme=kh.removeIcon,lme=kh.maxTagCount,hme=kh.maxTagTextLength,pme=kh.maxTagPlaceholder,gme=pme===void 0?function(e0e){return"+ ".concat(e0e.length," ...")}:pme,yme=kh.tagRender,mme=kh.onToggleOpen,bme=kh.onRemove,Sme=kh.onInputChange,_me=kh.onInputPaste,Cme=kh.onInputKeyDown,Eme=kh.onInputMouseDown,Tme=kh.onInputCompositionStart,Rme=kh.onInputCompositionEnd,Pme=React__namespace.useRef(null),$me=React.useState(0),Dme=_slicedToArray($me,2),Mme=Dme[0],Nme=Dme[1],Ime=React.useState(!1),wme=_slicedToArray(Ime,2),Ome=wme[0],Ame=wme[1],Fme="".concat($_,"-selection"),Bme=$P||ame==="multiple"&&eme===!1||ame==="tags"?zP:"",kme=ame==="tags"||ame==="multiple"&&eme===!1||ome&&($P||Ome);useLayoutEffect(function(){Nme(Pme.current.scrollWidth)},[Bme]);var Lme=function(Ume,Jme,s0e,d0e,Zme){return React__namespace.createElement("span",{title:getTitle(Ume),className:classNames("".concat(Fme,"-item"),_defineProperty({},"".concat(Fme,"-item-disabled"),s0e))},React__namespace.createElement("span",{className:"".concat(Fme,"-item-content")},Jme),d0e&&React__namespace.createElement(TransBtn,{className:"".concat(Fme,"-item-remove"),onMouseDown:onPreventMouseDown,onClick:Zme,customizeIcon:fme},"×"))},Hme=function(Ume,Jme,s0e,d0e,Zme,Qme){var a0e=function(o0e){onPreventMouseDown(o0e),mme(!$P)};return React__namespace.createElement("span",{onMouseDown:a0e},yme({label:Jme,value:Ume,disabled:s0e,closable:d0e,onClose:Zme,isMaxTag:!!Qme}))},Wme=function(Ume){var Jme=Ume.disabled,s0e=Ume.label,d0e=Ume.value,Zme=!rme&&!Jme,Qme=s0e;if(typeof hme=="number"&&(typeof s0e=="string"||typeof s0e=="number")){var a0e=String(Qme);a0e.length>hme&&(Qme="".concat(a0e.slice(0,hme),"..."))}var t0e=function(g0e){g0e&&g0e.stopPropagation(),bme(Ume)};return typeof yme=="function"?Hme(d0e,Qme,Jme,Zme,t0e):Lme(Ume,Qme,Jme,Zme,t0e)},zme=function(Ume){var Jme=typeof gme=="function"?gme(Ume):gme;return typeof yme=="function"?Hme(void 0,Jme,!1,!1,void 0,!0):Lme({title:Jme},Jme,!1)},Vme=React__namespace.createElement("div",{className:"".concat(Fme,"-search"),style:{width:Mme},onFocus:function(){Ame(!0)},onBlur:function(){Ame(!1)}},React__namespace.createElement(RefInput,{ref:tme,open:$P,prefixCls:$_,id:x_,inputElement:null,disabled:rme,autoFocus:ime,autoComplete:cme,editable:kme,activeDescendantId:ume,value:Bme,onKeyDown:Cme,onMouseDown:Eme,onChange:Sme,onPaste:_me,onCompositionStart:Tme,onCompositionEnd:Rme,tabIndex:sme,attrs:pickAttrs(kh,!0)}),React__namespace.createElement("span",{ref:Pme,className:"".concat(Fme,"-search-mirror"),"aria-hidden":!0},Bme," ")),Xme=React__namespace.createElement(ForwardOverflow,{prefixCls:"".concat(Fme,"-overflow"),data:B_,renderItem:Wme,renderRest:zme,suffix:Vme,itemKey:itemKey$1,maxCount:lme});return React__namespace.createElement(React__namespace.Fragment,null,Xme,!B_.length&&!Bme&&React__namespace.createElement("span",{className:"".concat(Fme,"-placeholder")},nme))},SingleSelector$1=function(kh){var x_=kh.inputElement,$_=kh.prefixCls,B_=kh.id,$P=kh.inputRef,zP=kh.disabled,eme=kh.autoFocus,tme=kh.autoComplete,nme=kh.activeDescendantId,rme=kh.mode,ame=kh.open,ome=kh.values,ime=kh.placeholder,cme=kh.tabIndex,ume=kh.showSearch,sme=kh.searchValue,fme=kh.activeValue,lme=kh.maxLength,hme=kh.onInputKeyDown,pme=kh.onInputMouseDown,gme=kh.onInputChange,yme=kh.onInputPaste,mme=kh.onInputCompositionStart,bme=kh.onInputCompositionEnd,Sme=kh.title,_me=React__namespace.useState(!1),Cme=_slicedToArray(_me,2),Eme=Cme[0],Tme=Cme[1],Rme=rme==="combobox",Pme=Rme||ume,$me=ome[0],Dme=sme||"";Rme&&fme&&!Eme&&(Dme=fme),React__namespace.useEffect(function(){Rme&&Tme(!1)},[Rme,fme]);var Mme=rme!=="combobox"&&!ame&&!ume?!1:!!Dme,Nme=Sme===void 0?getTitle($me):Sme,Ime=React__namespace.useMemo(function(){return $me?null:React__namespace.createElement("span",{className:"".concat($_,"-selection-placeholder"),style:Mme?{visibility:"hidden"}:void 0},ime)},[$me,Mme,ime,$_]);return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("span",{className:"".concat($_,"-selection-search")},React__namespace.createElement(RefInput,{ref:$P,prefixCls:$_,id:B_,open:ame,inputElement:x_,disabled:zP,autoFocus:eme,autoComplete:tme,editable:Pme,activeDescendantId:nme,value:Dme,onKeyDown:hme,onMouseDown:pme,onChange:function(Ome){Tme(!0),gme(Ome)},onPaste:yme,onCompositionStart:mme,onCompositionEnd:bme,tabIndex:cme,attrs:pickAttrs(kh,!0),maxLength:Rme?lme:void 0})),!Rme&&$me?React__namespace.createElement("span",{className:"".concat($_,"-selection-item"),title:Nme,style:Mme?{visibility:"hidden"}:void 0},$me.label):null,Ime)},Selector=function(kh,x_){var $_=React.useRef(null),B_=React.useRef(!1),$P=kh.prefixCls,zP=kh.open,eme=kh.mode,tme=kh.showSearch,nme=kh.tokenWithEnter,rme=kh.disabled,ame=kh.autoClearSearchValue,ome=kh.onSearch,ime=kh.onSearchSubmit,cme=kh.onToggleOpen,ume=kh.onInputKeyDown,sme=kh.domRef;React__namespace.useImperativeHandle(x_,function(){return{focus:function(Mme){$_.current.focus(Mme)},blur:function(){$_.current.blur()}}});var fme=useLock(0),lme=_slicedToArray(fme,2),hme=lme[0],pme=lme[1],gme=function(Mme){var Nme=Mme.which;(Nme===KeyCode.UP||Nme===KeyCode.DOWN)&&Mme.preventDefault(),ume&&ume(Mme),Nme===KeyCode.ENTER&&eme==="tags"&&!B_.current&&!zP&&(ime==null||ime(Mme.target.value)),isValidateOpenKey(Nme)&&cme(!0)},yme=function(){pme(!0)},mme=React.useRef(null),bme=function(Mme){ome(Mme,!0,B_.current)!==!1&&cme(!0)},Sme=function(){B_.current=!0},_me=function(Mme){B_.current=!1,eme!=="combobox"&&bme(Mme.target.value)},Cme=function(Mme){var Nme=Mme.target.value;if(nme&&mme.current&&/[\r\n]/.test(mme.current)){var Ime=mme.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Nme=Nme.replace(Ime,mme.current)}mme.current=null,bme(Nme)},Eme=function(Mme){var Nme=Mme.clipboardData,Ime=Nme==null?void 0:Nme.getData("text");mme.current=Ime||""},Tme=function(Mme){var Nme=Mme.target;if(Nme!==$_.current){var Ime=document.body.style.msTouchAction!==void 0;Ime?setTimeout(function(){$_.current.focus()}):$_.current.focus()}},Rme=function(Mme){var Nme=hme();Mme.target!==$_.current&&!Nme&&!(eme==="combobox"&&rme)&&Mme.preventDefault(),(eme!=="combobox"&&(!tme||!Nme)||!zP)&&(zP&&ame!==!1&&ome("",!0,!1),cme())},Pme={inputRef:$_,onInputKeyDown:gme,onInputMouseDown:yme,onInputChange:Cme,onInputPaste:Eme,onInputCompositionStart:Sme,onInputCompositionEnd:_me},$me=eme==="multiple"||eme==="tags"?React__namespace.createElement(SelectSelector,_extends({},kh,Pme)):React__namespace.createElement(SingleSelector$1,_extends({},kh,Pme));return React__namespace.createElement("div",{ref:sme,className:"".concat($P,"-selector"),onClick:Tme,onMouseDown:Rme},$me)},ForwardSelector=React__namespace.forwardRef(Selector);process.env.NODE_ENV!=="production"&&(ForwardSelector.displayName="Selector");function Arrow(Ff){var kh=Ff.prefixCls,x_=Ff.align,$_=Ff.arrow,B_=Ff.arrowPos,$P=$_||{},zP=$P.className,eme=$P.content,tme=B_.x,nme=tme===void 0?0:tme,rme=B_.y,ame=rme===void 0?0:rme,ome=React__namespace.useRef();if(!x_||!x_.points)return null;var ime={position:"absolute"};if(x_.autoArrow!==!1){var cme=x_.points[0],ume=x_.points[1],sme=cme[0],fme=cme[1],lme=ume[0],hme=ume[1];sme===lme||!["t","b"].includes(sme)?ime.top=ame:sme==="t"?ime.top=0:ime.bottom=0,fme===hme||!["l","r"].includes(fme)?ime.left=nme:fme==="l"?ime.left=0:ime.right=0}return React__namespace.createElement("div",{ref:ome,className:classNames("".concat(kh,"-arrow"),zP),style:ime},eme)}function Mask(Ff){var kh=Ff.prefixCls,x_=Ff.open,$_=Ff.zIndex,B_=Ff.mask,$P=Ff.motion;return B_?React__namespace.createElement(CSSMotion,_extends({},$P,{motionAppear:!0,visible:x_,removeOnLeave:!0}),function(zP){var eme=zP.className;return React__namespace.createElement("div",{style:{zIndex:$_},className:classNames("".concat(kh,"-mask"),eme)})}):null}var PopupContent=React__namespace.memo(function(Ff){var kh=Ff.children;return kh},function(Ff,kh){return kh.cache});process.env.NODE_ENV!=="production"&&(PopupContent.displayName="PopupContent");var Popup$2=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.popup,$_=Ff.className,B_=Ff.prefixCls,$P=Ff.style,zP=Ff.target,eme=Ff.onVisibleChanged,tme=Ff.open,nme=Ff.keepDom,rme=Ff.fresh,ame=Ff.onClick,ome=Ff.mask,ime=Ff.arrow,cme=Ff.arrowPos,ume=Ff.align,sme=Ff.motion,fme=Ff.maskMotion,lme=Ff.forceRender,hme=Ff.getPopupContainer,pme=Ff.autoDestroy,gme=Ff.portal,yme=Ff.zIndex,mme=Ff.onMouseEnter,bme=Ff.onMouseLeave,Sme=Ff.onPointerEnter,_me=Ff.ready,Cme=Ff.offsetX,Eme=Ff.offsetY,Tme=Ff.offsetR,Rme=Ff.offsetB,Pme=Ff.onAlign,$me=Ff.onPrepare,Dme=Ff.stretch,Mme=Ff.targetWidth,Nme=Ff.targetHeight,Ime=typeof x_=="function"?x_():x_,wme=tme||nme,Ome=(hme==null?void 0:hme.length)>0,Ame=React__namespace.useState(!hme||!Ome),Fme=_slicedToArray(Ame,2),Bme=Fme[0],kme=Fme[1];if(useLayoutEffect$1(function(){!Bme&&Ome&&zP&&kme(!0)},[Bme,Ome,zP]),!Bme)return null;var Lme="auto",Hme={left:"-1000vw",top:"-1000vh",right:Lme,bottom:Lme};if(_me||!tme){var Wme,zme=ume.points,Vme=ume.dynamicInset||((Wme=ume._experimental)===null||Wme===void 0?void 0:Wme.dynamicInset),Xme=Vme&&zme[0][1]==="r",e0e=Vme&&zme[0][0]==="b";Xme?(Hme.right=Tme,Hme.left=Lme):(Hme.left=Cme,Hme.right=Lme),e0e?(Hme.bottom=Rme,Hme.top=Lme):(Hme.top=Eme,Hme.bottom=Lme)}var Ume={};return Dme&&(Dme.includes("height")&&Nme?Ume.height=Nme:Dme.includes("minHeight")&&Nme&&(Ume.minHeight=Nme),Dme.includes("width")&&Mme?Ume.width=Mme:Dme.includes("minWidth")&&Mme&&(Ume.minWidth=Mme)),tme||(Ume.pointerEvents="none"),React__namespace.createElement(gme,{open:lme||wme,getContainer:hme&&function(){return hme(zP)},autoDestroy:pme},React__namespace.createElement(Mask,{prefixCls:B_,open:tme,zIndex:yme,mask:ome,motion:fme}),React__namespace.createElement(RefResizeObserver,{onResize:Pme,disabled:!tme},function(Jme){return React__namespace.createElement(CSSMotion,_extends({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:lme,leavedClassName:"".concat(B_,"-hidden")},sme,{onAppearPrepare:$me,onEnterPrepare:$me,visible:tme,onVisibleChanged:function(d0e){var Zme;sme==null||(Zme=sme.onVisibleChanged)===null||Zme===void 0||Zme.call(sme,d0e),eme(d0e)}}),function(s0e,d0e){var Zme=s0e.className,Qme=s0e.style,a0e=classNames(B_,Zme,$_);return React__namespace.createElement("div",{ref:composeRef(Jme,kh,d0e),className:a0e,style:_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({"--arrow-x":"".concat(cme.x||0,"px"),"--arrow-y":"".concat(cme.y||0,"px")},Hme),Ume),Qme),{},{boxSizing:"border-box",zIndex:yme},$P),onMouseEnter:mme,onMouseLeave:bme,onPointerEnter:Sme,onClick:ame},ime&&React__namespace.createElement(Arrow,{prefixCls:B_,arrow:ime,arrowPos:cme,align:ume}),React__namespace.createElement(PopupContent,{cache:!tme&&!rme},Ime))})}))});process.env.NODE_ENV!=="production"&&(Popup$2.displayName="Popup");var TriggerWrapper=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.children,$_=Ff.getTriggerDOMNode,B_=supportRef(x_),$P=React__namespace.useCallback(function(eme){fillRef(kh,$_?$_(eme):eme)},[$_]),zP=useComposeRef($P,x_.ref);return B_?React__namespace.cloneElement(x_,{ref:zP}):x_});process.env.NODE_ENV!=="production"&&(TriggerWrapper.displayName="TriggerWrapper");var TriggerContext=React__namespace.createContext(null);function toArray$4(Ff){return Ff?Array.isArray(Ff)?Ff:[Ff]:[]}function useAction(Ff,kh,x_,$_){return React__namespace.useMemo(function(){var B_=toArray$4(x_??kh),$P=toArray$4($_??kh),zP=new Set(B_),eme=new Set($P);return Ff&&(zP.has("hover")&&(zP.delete("hover"),zP.add("click")),eme.has("hover")&&(eme.delete("hover"),eme.add("click"))),[zP,eme]},[Ff,kh,x_,$_])}function isPointsEq(){var Ff=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x_=arguments.length>2?arguments[2]:void 0;return x_?Ff[0]===kh[0]:Ff[0]===kh[0]&&Ff[1]===kh[1]}function getAlignPopupClassName(Ff,kh,x_,$_){for(var B_=x_.points,$P=Object.keys(Ff),zP=0;zP<$P.length;zP+=1){var eme,tme=$P[zP];if(isPointsEq((eme=Ff[tme])===null||eme===void 0?void 0:eme.points,B_,$_))return"".concat(kh,"-placement-").concat(tme)}return""}function getMotion(Ff,kh,x_,$_){return kh||(x_?{motionName:"".concat(Ff,"-").concat(x_)}:$_?{motionName:$_}:null)}function getWin(Ff){return Ff.ownerDocument.defaultView}function collectScroller(Ff){for(var kh=[],x_=Ff==null?void 0:Ff.parentElement,$_=["hidden","scroll","clip","auto"];x_;){var B_=getWin(x_).getComputedStyle(x_),$P=B_.overflowX,zP=B_.overflowY,eme=B_.overflow;[$P,zP,eme].some(function(tme){return $_.includes(tme)})&&kh.push(x_),x_=x_.parentElement}return kh}function toNum(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Ff)?kh:Ff}function getPxValue(Ff){return toNum(parseFloat(Ff),0)}function getVisibleArea(Ff,kh){var x_=_objectSpread2({},Ff);return(kh||[]).forEach(function($_){if(!($_ instanceof HTMLBodyElement||$_ instanceof HTMLHtmlElement)){var B_=getWin($_).getComputedStyle($_),$P=B_.overflow,zP=B_.overflowClipMargin,eme=B_.borderTopWidth,tme=B_.borderBottomWidth,nme=B_.borderLeftWidth,rme=B_.borderRightWidth,ame=$_.getBoundingClientRect(),ome=$_.offsetHeight,ime=$_.clientHeight,cme=$_.offsetWidth,ume=$_.clientWidth,sme=getPxValue(eme),fme=getPxValue(tme),lme=getPxValue(nme),hme=getPxValue(rme),pme=toNum(Math.round(ame.width/cme*1e3)/1e3),gme=toNum(Math.round(ame.height/ome*1e3)/1e3),yme=(cme-ume-lme-hme)*pme,mme=(ome-ime-sme-fme)*gme,bme=sme*gme,Sme=fme*gme,_me=lme*pme,Cme=hme*pme,Eme=0,Tme=0;if($P==="clip"){var Rme=getPxValue(zP);Eme=Rme*pme,Tme=Rme*gme}var Pme=ame.x+_me-Eme,$me=ame.y+bme-Tme,Dme=Pme+ame.width+2*Eme-_me-Cme-yme,Mme=$me+ame.height+2*Tme-bme-Sme-mme;x_.left=Math.max(x_.left,Pme),x_.top=Math.max(x_.top,$me),x_.right=Math.min(x_.right,Dme),x_.bottom=Math.min(x_.bottom,Mme)}}),x_}function getUnitOffset(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,x_="".concat(kh),$_=x_.match(/^(.*)\%$/);return $_?Ff*(parseFloat($_[1])/100):parseFloat(x_)}function getNumberOffset(Ff,kh){var x_=kh||[],$_=_slicedToArray(x_,2),B_=$_[0],$P=$_[1];return[getUnitOffset(Ff.width,B_),getUnitOffset(Ff.height,$P)]}function splitPoints(){var Ff=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Ff[0],Ff[1]]}function getAlignPoint(Ff,kh){var x_=kh[0],$_=kh[1],B_,$P;return x_==="t"?$P=Ff.y:x_==="b"?$P=Ff.y+Ff.height:$P=Ff.y+Ff.height/2,$_==="l"?B_=Ff.x:$_==="r"?B_=Ff.x+Ff.width:B_=Ff.x+Ff.width/2,{x:B_,y:$P}}function reversePoints(Ff,kh){var x_={t:"b",b:"t",l:"r",r:"l"};return Ff.map(function($_,B_){return B_===kh?x_[$_]||"c":$_}).join("")}function useAlign(Ff,kh,x_,$_,B_,$P,zP){var eme=React__namespace.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:B_[$_]||{}}),tme=_slicedToArray(eme,2),nme=tme[0],rme=tme[1],ame=React__namespace.useRef(0),ome=React__namespace.useMemo(function(){return kh?collectScroller(kh):[]},[kh]),ime=React__namespace.useRef({}),cme=function(){ime.current={}};Ff||cme();var ume=useEvent(function(){if(kh&&x_&&Ff){let pye=function(e1e,p1e){var rbe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:a0e,abe=Ime.x+e1e,hbe=Ime.y+p1e,Ebe=abe+Wme,Nbe=hbe+Hme,Xbe=Math.max(abe,rbe.left),Mbe=Math.max(hbe,rbe.top),Zbe=Math.min(Ebe,rbe.right),Qbe=Math.min(Nbe,rbe.bottom);return Math.max(0,(Zbe-Xbe)*(Qbe-Mbe))},kye=function(){r0e=Ime.y+M0e,R0e=r0e+Hme,A0e=Ime.x+X0e,n0e=A0e+Wme};var lme,hme,pme=kh,gme=pme.ownerDocument,yme=getWin(pme),mme=yme.getComputedStyle(pme),bme=mme.width,Sme=mme.height,_me=mme.position,Cme=pme.style.left,Eme=pme.style.top,Tme=pme.style.right,Rme=pme.style.bottom,Pme=pme.style.overflow,$me=_objectSpread2(_objectSpread2({},B_[$_]),$P),Dme=gme.createElement("div");(lme=pme.parentElement)===null||lme===void 0||lme.appendChild(Dme),Dme.style.left="".concat(pme.offsetLeft,"px"),Dme.style.top="".concat(pme.offsetTop,"px"),Dme.style.position=_me,Dme.style.height="".concat(pme.offsetHeight,"px"),Dme.style.width="".concat(pme.offsetWidth,"px"),pme.style.left="0",pme.style.top="0",pme.style.right="auto",pme.style.bottom="auto",pme.style.overflow="hidden";var Mme;if(Array.isArray(x_))Mme={x:x_[0],y:x_[1],width:0,height:0};else{var Nme=x_.getBoundingClientRect();Mme={x:Nme.x,y:Nme.y,width:Nme.width,height:Nme.height}}var Ime=pme.getBoundingClientRect(),wme=gme.documentElement,Ome=wme.clientWidth,Ame=wme.clientHeight,Fme=wme.scrollWidth,Bme=wme.scrollHeight,kme=wme.scrollTop,Lme=wme.scrollLeft,Hme=Ime.height,Wme=Ime.width,zme=Mme.height,Vme=Mme.width,Xme={left:0,top:0,right:Ome,bottom:Ame},e0e={left:-Lme,top:-kme,right:Fme-Lme,bottom:Bme-kme},Ume=$me.htmlRegion,Jme="visible",s0e="visibleFirst";Ume!=="scroll"&&Ume!==s0e&&(Ume=Jme);var d0e=Ume===s0e,Zme=getVisibleArea(e0e,ome),Qme=getVisibleArea(Xme,ome),a0e=Ume===Jme?Qme:Zme,t0e=d0e?Qme:a0e;pme.style.left="auto",pme.style.top="auto",pme.style.right="0",pme.style.bottom="0";var o0e=pme.getBoundingClientRect();pme.style.left=Cme,pme.style.top=Eme,pme.style.right=Tme,pme.style.bottom=Rme,pme.style.overflow=Pme,(hme=pme.parentElement)===null||hme===void 0||hme.removeChild(Dme);var g0e=toNum(Math.round(Wme/parseFloat(bme)*1e3)/1e3),u0e=toNum(Math.round(Hme/parseFloat(Sme)*1e3)/1e3);if(g0e===0||u0e===0||isDOM(x_)&&!isVisible(x_))return;var h0e=$me.offset,E0e=$me.targetOffset,P0e=getNumberOffset(Ime,h0e),y0e=_slicedToArray(P0e,2),$0e=y0e[0],C0e=y0e[1],z0e=getNumberOffset(Mme,E0e),D0e=_slicedToArray(z0e,2),O0e=D0e[0],b0e=D0e[1];Mme.x-=O0e,Mme.y-=b0e;var k0e=$me.points||[],T0e=_slicedToArray(k0e,2),L0e=T0e[0],Y0e=T0e[1],mye=splitPoints(Y0e),Q0e=splitPoints(L0e),U0e=getAlignPoint(Mme,mye),q0e=getAlignPoint(Ime,Q0e),V0e=_objectSpread2({},$me),X0e=U0e.x-q0e.x+$0e,M0e=U0e.y-q0e.y+C0e,J0e=pye(X0e,M0e),aye=pye(X0e,M0e,Qme),F0e=getAlignPoint(Mme,["t","l"]),cye=getAlignPoint(Ime,["t","l"]),yye=getAlignPoint(Mme,["b","r"]),W0e=getAlignPoint(Ime,["b","r"]),sye=$me.overflow||{},G0e=sye.adjustX,hye=sye.adjustY,wye=sye.shiftX,Eye=sye.shiftY,Vye=function(p1e){return typeof p1e=="boolean"?p1e:p1e>=0},r0e,R0e,A0e,n0e;kye();var f0e=Vye(hye),m0e=Q0e[0]===mye[0];if(f0e&&Q0e[0]==="t"&&(R0e>t0e.bottom||ime.current.bt)){var w0e=M0e;m0e?w0e-=Hme-zme:w0e=F0e.y-W0e.y-C0e;var j0e=pye(X0e,w0e),_0e=pye(X0e,w0e,Qme);j0e>J0e||j0e===J0e&&(!d0e||_0e>=aye)?(ime.current.bt=!0,M0e=w0e,C0e=-C0e,V0e.points=[reversePoints(Q0e,0),reversePoints(mye,0)]):ime.current.bt=!1}if(f0e&&Q0e[0]==="b"&&(r0e<t0e.top||ime.current.tb)){var Yme=M0e;m0e?Yme+=Hme-zme:Yme=yye.y-cye.y-C0e;var l0e=pye(X0e,Yme),S0e=pye(X0e,Yme,Qme);l0e>J0e||l0e===J0e&&(!d0e||S0e>=aye)?(ime.current.tb=!0,M0e=Yme,C0e=-C0e,V0e.points=[reversePoints(Q0e,0),reversePoints(mye,0)]):ime.current.tb=!1}var I0e=Vye(G0e),Z0e=Q0e[1]===mye[1];if(I0e&&Q0e[1]==="l"&&(n0e>t0e.right||ime.current.rl)){var lye=X0e;Z0e?lye-=Wme-Vme:lye=F0e.x-W0e.x-$0e;var Tye=pye(lye,M0e),xye=pye(lye,M0e,Qme);Tye>J0e||Tye===J0e&&(!d0e||xye>=aye)?(ime.current.rl=!0,X0e=lye,$0e=-$0e,V0e.points=[reversePoints(Q0e,1),reversePoints(mye,1)]):ime.current.rl=!1}if(I0e&&Q0e[1]==="r"&&(A0e<t0e.left||ime.current.lr)){var Dye=X0e;Z0e?Dye+=Wme-Vme:Dye=yye.x-cye.x-$0e;var Lye=pye(Dye,M0e),l1e=pye(Dye,M0e,Qme);Lye>J0e||Lye===J0e&&(!d0e||l1e>=aye)?(ime.current.lr=!0,X0e=Dye,$0e=-$0e,V0e.points=[reversePoints(Q0e,1),reversePoints(mye,1)]):ime.current.lr=!1}kye();var Uye=wye===!0?0:wye;typeof Uye=="number"&&(A0e<Qme.left&&(X0e-=A0e-Qme.left-$0e,Mme.x+Vme<Qme.left+Uye&&(X0e+=Mme.x-Qme.left+Vme-Uye)),n0e>Qme.right&&(X0e-=n0e-Qme.right-$0e,Mme.x>Qme.right-Uye&&(X0e+=Mme.x-Qme.right+Uye)));var Qye=Eye===!0?0:Eye;typeof Qye=="number"&&(r0e<Qme.top&&(M0e-=r0e-Qme.top-C0e,Mme.y+zme<Qme.top+Qye&&(M0e+=Mme.y-Qme.top+zme-Qye)),R0e>Qme.bottom&&(M0e-=R0e-Qme.bottom-C0e,Mme.y>Qme.bottom-Qye&&(M0e+=Mme.y-Qme.bottom+Qye)));var Sye=Ime.x+X0e,jye=Sye+Wme,qye=Ime.y+M0e,Rye=qye+Hme,Aye=Mme.x,Oye=Aye+Vme,fye=Mme.y,gye=fye+zme,Hye=Math.max(Sye,Aye),Xye=Math.min(jye,Oye),Wye=(Hye+Xye)/2,n1e=Wye-Sye,bye=Math.max(qye,fye),dye=Math.min(Rye,gye),Yye=(bye+dye)/2,u1e=Yye-qye;zP==null||zP(kh,V0e);var s1e=o0e.right-Ime.x-(X0e+Ime.width),y1e=o0e.bottom-Ime.y-(M0e+Ime.height);g0e===1&&(X0e=Math.round(X0e),s1e=Math.round(s1e)),u0e===1&&(M0e=Math.round(M0e),y1e=Math.round(y1e));var Pye={ready:!0,offsetX:X0e/g0e,offsetY:M0e/u0e,offsetR:s1e/g0e,offsetB:y1e/u0e,arrowX:n1e/g0e,arrowY:u1e/u0e,scaleX:g0e,scaleY:u0e,align:V0e};rme(Pye)}}),sme=function(){ame.current+=1;var hme=ame.current;Promise.resolve().then(function(){ame.current===hme&&ume()})},fme=function(){rme(function(hme){return _objectSpread2(_objectSpread2({},hme),{},{ready:!1})})};return useLayoutEffect$1(fme,[$_]),useLayoutEffect$1(function(){Ff||fme()},[Ff]),[nme.ready,nme.offsetX,nme.offsetY,nme.offsetR,nme.offsetB,nme.arrowX,nme.arrowY,nme.scaleX,nme.scaleY,nme.align,sme]}function useWatch(Ff,kh,x_,$_,B_){useLayoutEffect$1(function(){if(Ff&&kh&&x_){let ame=function(){$_(),B_()};var $P=kh,zP=x_,eme=collectScroller($P),tme=collectScroller(zP),nme=getWin(zP),rme=new Set([nme].concat(_toConsumableArray(eme),_toConsumableArray(tme)));return rme.forEach(function(ome){ome.addEventListener("scroll",ame,{passive:!0})}),nme.addEventListener("resize",ame,{passive:!0}),$_(),function(){rme.forEach(function(ome){ome.removeEventListener("scroll",ame),nme.removeEventListener("resize",ame)})}}},[Ff,kh,x_])}function useWinClick(Ff,kh,x_,$_,B_,$P,zP,eme){var tme=React__namespace.useRef(Ff);tme.current=Ff,React__namespace.useEffect(function(){if(kh&&$_&&(!B_||$P)){var nme=function(fme){var lme=fme.target;tme.current&&!zP(lme)&&eme(!1)},rme=getWin($_);rme.addEventListener("mousedown",nme,!0),rme.addEventListener("contextmenu",nme,!0);var ame=getShadowRoot(x_);if(ame&&(ame.addEventListener("mousedown",nme,!0),ame.addEventListener("contextmenu",nme,!0)),process.env.NODE_ENV!=="production"){var ome,ime,cme=x_==null||(ome=x_.getRootNode)===null||ome===void 0?void 0:ome.call(x_),ume=(ime=$_.getRootNode)===null||ime===void 0?void 0:ime.call($_);warning$4(cme===ume,"trigger element and popup element should in same shadow root.")}return function(){rme.removeEventListener("mousedown",nme,!0),rme.removeEventListener("contextmenu",nme,!0),ame&&(ame.removeEventListener("mousedown",nme,!0),ame.removeEventListener("contextmenu",nme,!0))}}},[kh,x_,$_,B_,$P])}var _excluded$v=["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 generateTrigger(){var Ff=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Portal,kh=React__namespace.forwardRef(function(x_,$_){var B_=x_.prefixCls,$P=B_===void 0?"rc-trigger-popup":B_,zP=x_.children,eme=x_.action,tme=eme===void 0?"hover":eme,nme=x_.showAction,rme=x_.hideAction,ame=x_.popupVisible,ome=x_.defaultPopupVisible,ime=x_.onPopupVisibleChange,cme=x_.afterPopupVisibleChange,ume=x_.mouseEnterDelay,sme=x_.mouseLeaveDelay,fme=sme===void 0?.1:sme,lme=x_.focusDelay,hme=x_.blurDelay,pme=x_.mask,gme=x_.maskClosable,yme=gme===void 0?!0:gme,mme=x_.getPopupContainer,bme=x_.forceRender,Sme=x_.autoDestroy,_me=x_.destroyPopupOnHide,Cme=x_.popup,Eme=x_.popupClassName,Tme=x_.popupStyle,Rme=x_.popupPlacement,Pme=x_.builtinPlacements,$me=Pme===void 0?{}:Pme,Dme=x_.popupAlign,Mme=x_.zIndex,Nme=x_.stretch,Ime=x_.getPopupClassNameFromAlign,wme=x_.fresh,Ome=x_.alignPoint,Ame=x_.onPopupClick,Fme=x_.onPopupAlign,Bme=x_.arrow,kme=x_.popupMotion,Lme=x_.maskMotion,Hme=x_.popupTransitionName,Wme=x_.popupAnimation,zme=x_.maskTransitionName,Vme=x_.maskAnimation,Xme=x_.className,e0e=x_.getTriggerDOMNode,Ume=_objectWithoutProperties(x_,_excluded$v),Jme=Sme||_me||!1,s0e=React__namespace.useState(!1),d0e=_slicedToArray(s0e,2),Zme=d0e[0],Qme=d0e[1];useLayoutEffect$1(function(){Qme(isMobile())},[]);var a0e=React__namespace.useRef({}),t0e=React__namespace.useContext(TriggerContext),o0e=React__namespace.useMemo(function(){return{registerSubPopup:function(Mye,f1e){a0e.current[Mye]=f1e,t0e==null||t0e.registerSubPopup(Mye,f1e)}}},[t0e]),g0e=useId$2(),u0e=React__namespace.useState(null),h0e=_slicedToArray(u0e,2),E0e=h0e[0],P0e=h0e[1],y0e=React__namespace.useRef(null),$0e=useEvent(function(_ye){y0e.current=_ye,isDOM(_ye)&&E0e!==_ye&&P0e(_ye),t0e==null||t0e.registerSubPopup(g0e,_ye)}),C0e=React__namespace.useState(null),z0e=_slicedToArray(C0e,2),D0e=z0e[0],O0e=z0e[1],b0e=React__namespace.useRef(null),k0e=useEvent(function(_ye){isDOM(_ye)&&D0e!==_ye&&(O0e(_ye),b0e.current=_ye)}),T0e=React__namespace.Children.only(zP),L0e=(T0e==null?void 0:T0e.props)||{},Y0e={},mye=useEvent(function(_ye){var Mye,f1e,b1e=D0e;return(b1e==null?void 0:b1e.contains(_ye))||((Mye=getShadowRoot(b1e))===null||Mye===void 0?void 0:Mye.host)===_ye||_ye===b1e||(E0e==null?void 0:E0e.contains(_ye))||((f1e=getShadowRoot(E0e))===null||f1e===void 0?void 0:f1e.host)===_ye||_ye===E0e||Object.values(a0e.current).some(function(h1e){return(h1e==null?void 0:h1e.contains(_ye))||_ye===h1e})}),Q0e=getMotion($P,kme,Wme,Hme),U0e=getMotion($P,Lme,Vme,zme),q0e=React__namespace.useState(ome||!1),V0e=_slicedToArray(q0e,2),X0e=V0e[0],M0e=V0e[1],J0e=ame??X0e,aye=useEvent(function(_ye){ame===void 0&&M0e(_ye)});useLayoutEffect$1(function(){M0e(ame||!1)},[ame]);var F0e=React__namespace.useRef(J0e);F0e.current=J0e;var cye=React__namespace.useRef([]);cye.current=[];var yye=useEvent(function(_ye){var Mye;aye(_ye),((Mye=cye.current[cye.current.length-1])!==null&&Mye!==void 0?Mye:J0e)!==_ye&&(cye.current.push(_ye),ime==null||ime(_ye))}),W0e=React__namespace.useRef(),sye=function(){clearTimeout(W0e.current)},G0e=function(Mye){var f1e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;sye(),f1e===0?yye(Mye):W0e.current=setTimeout(function(){yye(Mye)},f1e*1e3)};React__namespace.useEffect(function(){return sye},[]);var hye=React__namespace.useState(!1),wye=_slicedToArray(hye,2),Eye=wye[0],Vye=wye[1];useLayoutEffect$1(function(_ye){(!_ye||J0e)&&Vye(!0)},[J0e]);var r0e=React__namespace.useState(null),R0e=_slicedToArray(r0e,2),A0e=R0e[0],n0e=R0e[1],f0e=React__namespace.useState([0,0]),m0e=_slicedToArray(f0e,2),w0e=m0e[0],j0e=m0e[1],_0e=function(Mye){j0e([Mye.clientX,Mye.clientY])},Yme=useAlign(J0e,E0e,Ome?w0e:D0e,Rme,$me,Dme,Fme),l0e=_slicedToArray(Yme,11),S0e=l0e[0],I0e=l0e[1],Z0e=l0e[2],lye=l0e[3],Tye=l0e[4],xye=l0e[5],Dye=l0e[6],Lye=l0e[7],l1e=l0e[8],Uye=l0e[9],Qye=l0e[10],Sye=useAction(Zme,tme,nme,rme),jye=_slicedToArray(Sye,2),qye=jye[0],Rye=jye[1],Aye=qye.has("click"),Oye=Rye.has("click")||Rye.has("contextMenu"),fye=useEvent(function(){Eye||Qye()}),gye=function(){F0e.current&&Ome&&Oye&&G0e(!1)};useWatch(J0e,D0e,E0e,fye,gye),useLayoutEffect$1(function(){fye()},[w0e,Rme]),useLayoutEffect$1(function(){J0e&&!($me!=null&&$me[Rme])&&fye()},[JSON.stringify(Dme)]);var Hye=React__namespace.useMemo(function(){var _ye=getAlignPopupClassName($me,$P,Uye,Ome);return classNames(_ye,Ime==null?void 0:Ime(Uye))},[Uye,Ime,$me,$P,Ome]);React__namespace.useImperativeHandle($_,function(){return{nativeElement:b0e.current,popupElement:y0e.current,forceAlign:fye}});var Xye=React__namespace.useState(0),Wye=_slicedToArray(Xye,2),n1e=Wye[0],bye=Wye[1],dye=React__namespace.useState(0),Yye=_slicedToArray(dye,2),u1e=Yye[0],s1e=Yye[1],y1e=function(){if(Nme&&D0e){var Mye=D0e.getBoundingClientRect();bye(Mye.width),s1e(Mye.height)}},Pye=function(){y1e(),fye()},pye=function(Mye){Vye(!1),Qye(),cme==null||cme(Mye)},kye=function(){return new Promise(function(Mye){y1e(),n0e(function(){return Mye})})};useLayoutEffect$1(function(){A0e&&(Qye(),A0e(),n0e(null))},[A0e]);function e1e(_ye,Mye,f1e,b1e){Y0e[_ye]=function(h1e){var kbe;b1e==null||b1e(h1e),G0e(Mye,f1e);for(var Jbe=arguments.length,g_e=new Array(Jbe>1?Jbe-1:0),a1e=1;a1e<Jbe;a1e++)g_e[a1e-1]=arguments[a1e];(kbe=L0e[_ye])===null||kbe===void 0||kbe.call.apply(kbe,[L0e,h1e].concat(g_e))}}(Aye||Oye)&&(Y0e.onClick=function(_ye){var Mye;F0e.current&&Oye?G0e(!1):!F0e.current&&Aye&&(_0e(_ye),G0e(!0));for(var f1e=arguments.length,b1e=new Array(f1e>1?f1e-1:0),h1e=1;h1e<f1e;h1e++)b1e[h1e-1]=arguments[h1e];(Mye=L0e.onClick)===null||Mye===void 0||Mye.call.apply(Mye,[L0e,_ye].concat(b1e))}),useWinClick(J0e,Oye,D0e,E0e,pme,yme,mye,G0e);var p1e=qye.has("hover"),rbe=Rye.has("hover"),abe,hbe;p1e&&(e1e("onMouseEnter",!0,ume,function(_ye){_0e(_ye)}),e1e("onPointerEnter",!0,ume,function(_ye){_0e(_ye)}),abe=function(Mye){(J0e||Eye)&&E0e!==null&&E0e!==void 0&&E0e.contains(Mye.target)&&G0e(!0,ume)},Ome&&(Y0e.onMouseMove=function(_ye){var Mye;(Mye=L0e.onMouseMove)===null||Mye===void 0||Mye.call(L0e,_ye)})),rbe&&(e1e("onMouseLeave",!1,fme),e1e("onPointerLeave",!1,fme),hbe=function(){G0e(!1,fme)}),qye.has("focus")&&e1e("onFocus",!0,lme),Rye.has("focus")&&e1e("onBlur",!1,hme),qye.has("contextMenu")&&(Y0e.onContextMenu=function(_ye){var Mye;F0e.current&&Rye.has("contextMenu")?G0e(!1):(_0e(_ye),G0e(!0)),_ye.preventDefault();for(var f1e=arguments.length,b1e=new Array(f1e>1?f1e-1:0),h1e=1;h1e<f1e;h1e++)b1e[h1e-1]=arguments[h1e];(Mye=L0e.onContextMenu)===null||Mye===void 0||Mye.call.apply(Mye,[L0e,_ye].concat(b1e))}),Xme&&(Y0e.className=classNames(L0e.className,Xme));var Ebe=_objectSpread2(_objectSpread2({},L0e),Y0e),Nbe={},Xbe=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Xbe.forEach(function(_ye){Ume[_ye]&&(Nbe[_ye]=function(){for(var Mye,f1e=arguments.length,b1e=new Array(f1e),h1e=0;h1e<f1e;h1e++)b1e[h1e]=arguments[h1e];(Mye=Ebe[_ye])===null||Mye===void 0||Mye.call.apply(Mye,[Ebe].concat(b1e)),Ume[_ye].apply(Ume,b1e)})});var Mbe=React__namespace.cloneElement(T0e,_objectSpread2(_objectSpread2({},Ebe),Nbe)),Zbe={x:xye,y:Dye},Qbe=Bme?_objectSpread2({},Bme!==!0?Bme:{}):null;return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(RefResizeObserver,{disabled:!J0e,ref:k0e,onResize:Pye},React__namespace.createElement(TriggerWrapper,{getTriggerDOMNode:e0e},Mbe)),React__namespace.createElement(TriggerContext.Provider,{value:o0e},React__namespace.createElement(Popup$2,{portal:Ff,ref:$0e,prefixCls:$P,popup:Cme,className:classNames(Eme,Hye),style:Tme,target:D0e,onMouseEnter:abe,onMouseLeave:hbe,onPointerEnter:abe,zIndex:Mme,open:J0e,keepDom:Eye,fresh:wme,onClick:Ame,mask:pme,motion:Q0e,maskMotion:U0e,onVisibleChanged:pye,onPrepare:kye,forceRender:bme,autoDestroy:Jme,getPopupContainer:mme,align:Uye,arrow:Qbe,arrowPos:Zbe,ready:S0e,offsetX:I0e,offsetY:Z0e,offsetR:lye,offsetB:Tye,onAlign:fye,stretch:Nme,targetWidth:n1e/Lye,targetHeight:u1e/l1e})))});return process.env.NODE_ENV!=="production"&&(kh.displayName="Trigger"),kh}const Trigger=generateTrigger(Portal);var _excluded$u=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],getBuiltInPlacements$1=function(kh){var x_=kh===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:x_,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:x_,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:x_,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:x_,adjustY:1},htmlRegion:"scroll"}}},SelectTrigger=function(kh,x_){var $_=kh.prefixCls;kh.disabled;var B_=kh.visible,$P=kh.children,zP=kh.popupElement,eme=kh.animation,tme=kh.transitionName,nme=kh.dropdownStyle,rme=kh.dropdownClassName,ame=kh.direction,ome=ame===void 0?"ltr":ame,ime=kh.placement,cme=kh.builtinPlacements,ume=kh.dropdownMatchSelectWidth,sme=kh.dropdownRender,fme=kh.dropdownAlign,lme=kh.getPopupContainer,hme=kh.empty,pme=kh.getTriggerDOMNode,gme=kh.onPopupVisibleChange,yme=kh.onPopupMouseEnter,mme=_objectWithoutProperties(kh,_excluded$u),bme="".concat($_,"-dropdown"),Sme=zP;sme&&(Sme=sme(zP));var _me=React__namespace.useMemo(function(){return cme||getBuiltInPlacements$1(ume)},[cme,ume]),Cme=eme?"".concat(bme,"-").concat(eme):tme,Eme=typeof ume=="number",Tme=React__namespace.useMemo(function(){return Eme?null:ume===!1?"minWidth":"width"},[ume,Eme]),Rme=nme;Eme&&(Rme=_objectSpread2(_objectSpread2({},Rme),{},{width:ume}));var Pme=React__namespace.useRef(null);return React__namespace.useImperativeHandle(x_,function(){return{getPopupElement:function(){var Dme;return(Dme=Pme.current)===null||Dme===void 0?void 0:Dme.popupElement}}}),React__namespace.createElement(Trigger,_extends({},mme,{showAction:gme?["click"]:[],hideAction:gme?["click"]:[],popupPlacement:ime||(ome==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:_me,prefixCls:bme,popupTransitionName:Cme,popup:React__namespace.createElement("div",{onMouseEnter:yme},Sme),ref:Pme,stretch:Tme,popupAlign:fme,popupVisible:B_,getPopupContainer:lme,popupClassName:classNames(rme,_defineProperty({},"".concat(bme,"-empty"),hme)),popupStyle:Rme,getTriggerDOMNode:pme,onPopupVisibleChange:gme}),$P)},RefSelectTrigger=React__namespace.forwardRef(SelectTrigger);process.env.NODE_ENV!=="production"&&(RefSelectTrigger.displayName="SelectTrigger");function getKey$1(Ff,kh){var x_=Ff.key,$_;return"value"in Ff&&($_=Ff.value),x_??($_!==void 0?$_:"rc-index-key-".concat(kh))}function isValidCount(Ff){return typeof Ff<"u"&&!Number.isNaN(Ff)}function fillFieldNames$2(Ff,kh){var x_=Ff||{},$_=x_.label,B_=x_.value,$P=x_.options,zP=x_.groupLabel,eme=$_||(kh?"children":"label");return{label:eme,value:B_||"value",options:$P||"options",groupLabel:zP||eme}}function flattenOptions(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x_=kh.fieldNames,$_=kh.childrenAsData,B_=[],$P=fillFieldNames$2(x_,!1),zP=$P.label,eme=$P.value,tme=$P.options,nme=$P.groupLabel;function rme(ame,ome){Array.isArray(ame)&&ame.forEach(function(ime){if(ome||!(tme in ime)){var cme=ime[eme];B_.push({key:getKey$1(ime,B_.length),groupOption:ome,data:ime,label:ime[zP],value:cme})}else{var ume=ime[nme];ume===void 0&&$_&&(ume=ime.label),B_.push({key:getKey$1(ime,B_.length),group:!0,data:ime,label:ume}),rme(ime[tme],!0)}})}return rme(Ff,!1),B_}function injectPropsWithOption(Ff){var kh=_objectSpread2({},Ff);return"props"in kh||Object.defineProperty(kh,"props",{get:function(){return warningOnce(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),kh}}),kh}var getSeparatedContent=function(kh,x_,$_){if(!x_||!x_.length)return null;var B_=!1,$P=function eme(tme,nme){var rme=_toArray(nme),ame=rme[0],ome=rme.slice(1);if(!ame)return[tme];var ime=tme.split(ame);return B_=B_||ime.length>1,ime.reduce(function(cme,ume){return[].concat(_toConsumableArray(cme),_toConsumableArray(eme(ume,ome)))},[]).filter(Boolean)},zP=$P(kh,x_);return B_?typeof $_<"u"?zP.slice(0,$_):zP:null},SelectContext=React__namespace.createContext(null);function Polite(Ff){var kh=Ff.visible,x_=Ff.values;if(!kh)return null;var $_=50;return React__namespace.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(x_.slice(0,$_).map(function(B_){var $P=B_.label,zP=B_.value;return["number","string"].includes(_typeof($P))?$P:zP}).join(", ")),x_.length>$_?", ...":null)}var _excluded$t=["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"],DEFAULT_OMIT_PROPS=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],isMultiple=function(kh){return kh==="tags"||kh==="multiple"},BaseSelect=React__namespace.forwardRef(function(Ff,kh){var x_,$_=Ff.id,B_=Ff.prefixCls,$P=Ff.className,zP=Ff.showSearch,eme=Ff.tagRender,tme=Ff.direction,nme=Ff.omitDomProps,rme=Ff.displayValues,ame=Ff.onDisplayValuesChange,ome=Ff.emptyOptions,ime=Ff.notFoundContent,cme=ime===void 0?"Not Found":ime,ume=Ff.onClear,sme=Ff.mode,fme=Ff.disabled,lme=Ff.loading,hme=Ff.getInputElement,pme=Ff.getRawInputElement,gme=Ff.open,yme=Ff.defaultOpen,mme=Ff.onDropdownVisibleChange,bme=Ff.activeValue,Sme=Ff.onActiveValueChange,_me=Ff.activeDescendantId,Cme=Ff.searchValue,Eme=Ff.autoClearSearchValue,Tme=Ff.onSearch,Rme=Ff.onSearchSplit,Pme=Ff.tokenSeparators,$me=Ff.allowClear,Dme=Ff.suffixIcon,Mme=Ff.clearIcon,Nme=Ff.OptionList,Ime=Ff.animation,wme=Ff.transitionName,Ome=Ff.dropdownStyle,Ame=Ff.dropdownClassName,Fme=Ff.dropdownMatchSelectWidth,Bme=Ff.dropdownRender,kme=Ff.dropdownAlign,Lme=Ff.placement,Hme=Ff.builtinPlacements,Wme=Ff.getPopupContainer,zme=Ff.showAction,Vme=zme===void 0?[]:zme,Xme=Ff.onFocus,e0e=Ff.onBlur,Ume=Ff.onKeyUp,Jme=Ff.onKeyDown,s0e=Ff.onMouseDown,d0e=_objectWithoutProperties(Ff,_excluded$t),Zme=isMultiple(sme),Qme=(zP!==void 0?zP:Zme)||sme==="combobox",a0e=_objectSpread2({},d0e);DEFAULT_OMIT_PROPS.forEach(function(fye){delete a0e[fye]}),nme==null||nme.forEach(function(fye){delete a0e[fye]});var t0e=React__namespace.useState(!1),o0e=_slicedToArray(t0e,2),g0e=o0e[0],u0e=o0e[1];React__namespace.useEffect(function(){u0e(isMobile())},[]);var h0e=React__namespace.useRef(null),E0e=React__namespace.useRef(null),P0e=React__namespace.useRef(null),y0e=React__namespace.useRef(null),$0e=React__namespace.useRef(null),C0e=React__namespace.useRef(!1),z0e=useDelayReset(),D0e=_slicedToArray(z0e,3),O0e=D0e[0],b0e=D0e[1],k0e=D0e[2];React__namespace.useImperativeHandle(kh,function(){var fye,gye;return{focus:(fye=y0e.current)===null||fye===void 0?void 0:fye.focus,blur:(gye=y0e.current)===null||gye===void 0?void 0:gye.blur,scrollTo:function(Xye){var Wye;return(Wye=$0e.current)===null||Wye===void 0?void 0:Wye.scrollTo(Xye)},nativeElement:h0e.current||E0e.current}});var T0e=React__namespace.useMemo(function(){var fye;if(sme!=="combobox")return Cme;var gye=(fye=rme[0])===null||fye===void 0?void 0:fye.value;return typeof gye=="string"||typeof gye=="number"?String(gye):""},[Cme,sme,rme]),L0e=sme==="combobox"&&typeof hme=="function"&&hme()||null,Y0e=typeof pme=="function"&&pme(),mye=useComposeRef(E0e,Y0e==null||(x_=Y0e.props)===null||x_===void 0?void 0:x_.ref),Q0e=React__namespace.useState(!1),U0e=_slicedToArray(Q0e,2),q0e=U0e[0],V0e=U0e[1];useLayoutEffect$1(function(){V0e(!0)},[]);var X0e=useMergedState(!1,{defaultValue:yme,value:gme}),M0e=_slicedToArray(X0e,2),J0e=M0e[0],aye=M0e[1],F0e=q0e?J0e:!1,cye=!cme&&ome;(fme||cye&&F0e&&sme==="combobox")&&(F0e=!1);var yye=cye?!1:F0e,W0e=React__namespace.useCallback(function(fye){var gye=fye!==void 0?fye:!F0e;fme||(aye(gye),F0e!==gye&&(mme==null||mme(gye)))},[fme,F0e,aye,mme]),sye=React__namespace.useMemo(function(){return(Pme||[]).some(function(fye){return[`
196
196
  `,`\r
197
- `].includes(fye)})},[Pme]),G0e=React__namespace.useContext(SelectContext)||{},hye=G0e.maxCount,wye=G0e.rawValues,Eye=function(gye,Hye,Xye){if(!(Zme&&isValidCount(hye)&&(wye==null?void 0:wye.size)>=hye)){var Wye=!0,nbe=gye;Sme==null||Sme(null);var bye=getSeparatedContent(gye,Pme,isValidCount(hye)?hye-wye.size:void 0),dye=Xye?null:bye;return sme!=="combobox"&&dye&&(nbe="",Rme==null||Rme(dye),W0e(!1),Wye=!1),Tme&&T0e!==nbe&&Tme(nbe,{source:Hye?"typing":"effect"}),Wye}},Vye=function(gye){!gye||!gye.trim()||Tme(gye,{source:"submit"})};React__namespace.useEffect(function(){!F0e&&!Zme&&sme!=="combobox"&&Eye("",!1,!1)},[F0e]),React__namespace.useEffect(function(){J0e&&fme&&aye(!1),fme&&!C0e.current&&b0e(!1)},[fme]);var r0e=useLock(),R0e=_slicedToArray(r0e,2),A0e=R0e[0],n0e=R0e[1],f0e=function(gye){var Hye=A0e(),Xye=gye.which;if(Xye===KeyCode.ENTER&&(sme!=="combobox"&&gye.preventDefault(),F0e||W0e(!0)),n0e(!!T0e),Xye===KeyCode.BACKSPACE&&!Hye&&Zme&&!T0e&&rme.length){for(var Wye=_toConsumableArray(rme),nbe=null,bye=Wye.length-1;bye>=0;bye-=1){var dye=Wye[bye];if(!dye.disabled){Wye.splice(bye,1),nbe=dye;break}}nbe&&ame(Wye,{type:"remove",values:[nbe]})}for(var Yye=arguments.length,ube=new Array(Yye>1?Yye-1:0),sbe=1;sbe<Yye;sbe++)ube[sbe-1]=arguments[sbe];if(F0e){var ybe;(ybe=$0e.current)===null||ybe===void 0||ybe.onKeyDown.apply(ybe,[gye].concat(ube))}Jme==null||Jme.apply(void 0,[gye].concat(ube))},m0e=function(gye){for(var Hye=arguments.length,Xye=new Array(Hye>1?Hye-1:0),Wye=1;Wye<Hye;Wye++)Xye[Wye-1]=arguments[Wye];if(F0e){var nbe;(nbe=$0e.current)===null||nbe===void 0||nbe.onKeyUp.apply(nbe,[gye].concat(Xye))}Ume==null||Ume.apply(void 0,[gye].concat(Xye))},w0e=function(gye){var Hye=rme.filter(function(Xye){return Xye!==gye});ame(Hye,{type:"remove",values:[gye]})},j0e=React__namespace.useRef(!1),_0e=function(){b0e(!0),fme||(Xme&&!j0e.current&&Xme.apply(void 0,arguments),Vme.includes("focus")&&W0e(!0)),j0e.current=!0},Yme=function(){C0e.current=!0,b0e(!1,function(){j0e.current=!1,C0e.current=!1,W0e(!1)}),!fme&&(T0e&&(sme==="tags"?Tme(T0e,{source:"submit"}):sme==="multiple"&&Tme("",{source:"blur"})),e0e&&e0e.apply(void 0,arguments))},l0e=[];React__namespace.useEffect(function(){return function(){l0e.forEach(function(fye){return clearTimeout(fye)}),l0e.splice(0,l0e.length)}},[]);var S0e=function(gye){var Hye,Xye=gye.target,Wye=(Hye=P0e.current)===null||Hye===void 0?void 0:Hye.getPopupElement();if(Wye&&Wye.contains(Xye)){var nbe=setTimeout(function(){var ube=l0e.indexOf(nbe);if(ube!==-1&&l0e.splice(ube,1),k0e(),!g0e&&!Wye.contains(document.activeElement)){var sbe;(sbe=y0e.current)===null||sbe===void 0||sbe.focus()}});l0e.push(nbe)}for(var bye=arguments.length,dye=new Array(bye>1?bye-1:0),Yye=1;Yye<bye;Yye++)dye[Yye-1]=arguments[Yye];s0e==null||s0e.apply(void 0,[gye].concat(dye))},I0e=React__namespace.useState({}),Z0e=_slicedToArray(I0e,2),lye=Z0e[1];function Tye(){lye({})}var xye;Y0e&&(xye=function(gye){W0e(gye)}),useSelectTriggerControl(function(){var fye;return[h0e.current,(fye=P0e.current)===null||fye===void 0?void 0:fye.getPopupElement()]},yye,W0e,!!Y0e);var Dye=React__namespace.useMemo(function(){return _objectSpread2(_objectSpread2({},Ff),{},{notFoundContent:cme,open:F0e,triggerOpen:yye,id:$_,showSearch:Qme,multiple:Zme,toggleOpen:W0e})},[Ff,cme,yye,F0e,$_,Qme,Zme,W0e]),Lye=!!Dme||lme,lbe;Lye&&(lbe=React__namespace.createElement(TransBtn,{className:classNames("".concat(B_,"-arrow"),_defineProperty({},"".concat(B_,"-arrow-loading"),lme)),customizeIcon:Dme,customizeIconProps:{loading:lme,searchValue:T0e,open:F0e,focused:O0e,showSearch:Qme}}));var Uye=function(){var gye;ume==null||ume(),(gye=y0e.current)===null||gye===void 0||gye.focus(),ame([],{type:"clear",values:rme}),Eye("",!1,!1)},Qye=useAllowClear(B_,Uye,rme,$me,Mme,fme,T0e,sme),Sye=Qye.allowClear,jye=Qye.clearIcon,qye=React__namespace.createElement(Nme,{ref:$0e}),Rye=classNames(B_,$P,_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"".concat(B_,"-focused"),O0e),"".concat(B_,"-multiple"),Zme),"".concat(B_,"-single"),!Zme),"".concat(B_,"-allow-clear"),$me),"".concat(B_,"-show-arrow"),Lye),"".concat(B_,"-disabled"),fme),"".concat(B_,"-loading"),lme),"".concat(B_,"-open"),F0e),"".concat(B_,"-customize-input"),L0e),"".concat(B_,"-show-search"),Qme)),Aye=React__namespace.createElement(RefSelectTrigger,{ref:P0e,disabled:fme,prefixCls:B_,visible:yye,popupElement:qye,animation:Ime,transitionName:wme,dropdownStyle:Ome,dropdownClassName:Ame,direction:tme,dropdownMatchSelectWidth:Fme,dropdownRender:Bme,dropdownAlign:kme,placement:Lme,builtinPlacements:Hme,getPopupContainer:Wme,empty:ome,getTriggerDOMNode:function(gye){return E0e.current||gye},onPopupVisibleChange:xye,onPopupMouseEnter:Tye},Y0e?React__namespace.cloneElement(Y0e,{ref:mye}):React__namespace.createElement(ForwardSelector,_extends({},Ff,{domRef:E0e,prefixCls:B_,inputElement:L0e,ref:y0e,id:$_,showSearch:Qme,autoClearSearchValue:Eme,mode:sme,activeDescendantId:_me,tagRender:eme,values:rme,open:F0e,onToggleOpen:W0e,activeValue:bme,searchValue:T0e,onSearch:Eye,onSearchSubmit:Vye,onRemove:w0e,tokenWithEnter:sye}))),Oye;return Y0e?Oye=Aye:Oye=React__namespace.createElement("div",_extends({className:Rye},a0e,{ref:h0e,onMouseDown:S0e,onKeyDown:f0e,onKeyUp:m0e,onFocus:_0e,onBlur:Yme}),React__namespace.createElement(Polite,{visible:O0e&&!F0e,values:rme}),Aye,lbe,Sye&&jye),React__namespace.createElement(BaseSelectContext.Provider,{value:Dye},Oye)});process.env.NODE_ENV!=="production"&&(BaseSelect.displayName="BaseSelect");var OptGroup=function(){return null};OptGroup.isSelectOptGroup=!0;var Option=function(){return null};Option.isSelectOption=!0;var Filler=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.height,$_=Ff.offsetY,B_=Ff.offsetX,$P=Ff.children,zP=Ff.prefixCls,eme=Ff.onInnerResize,tme=Ff.innerProps,nme=Ff.rtl,rme=Ff.extra,ame={},ome={display:"flex",flexDirection:"column"};return $_!==void 0&&(ame={height:x_,position:"relative",overflow:"hidden"},ome=_objectSpread2(_objectSpread2({},ome),{},_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({transform:"translateY(".concat($_,"px)")},nme?"marginRight":"marginLeft",-B_),"position","absolute"),"left",0),"right",0),"top",0))),React__namespace.createElement("div",{style:ame},React__namespace.createElement(RefResizeObserver,{onResize:function(cme){var ume=cme.offsetHeight;ume&&eme&&eme()}},React__namespace.createElement("div",_extends({style:ome,className:classNames(_defineProperty({},"".concat(zP,"-holder-inner"),zP)),ref:kh},tme),$P,rme)))});Filler.displayName="Filler";function Item(Ff){var kh=Ff.children,x_=Ff.setRef,$_=React__namespace.useCallback(function(B_){x_(B_)},[]);return React__namespace.cloneElement(kh,{ref:$_})}function useChildren$1(Ff,kh,x_,$_,B_,$P,zP,eme){var tme=eme.getKey;return Ff.slice(kh,x_+1).map(function(nme,rme){var ame=kh+rme,ome=zP(nme,ame,{style:{width:$_},offsetX:B_}),ime=tme(nme);return React__namespace.createElement(Item,{key:ime,setRef:function(ume){return $P(nme,ume)}},ome)})}function findListDiffIndex(Ff,kh,x_){var $_=Ff.length,B_=kh.length,$P,zP;if($_===0&&B_===0)return null;$_<B_?($P=Ff,zP=kh):($P=kh,zP=Ff);var eme={__EMPTY_ITEM__:!0};function tme(cme){return cme!==void 0?x_(cme):eme}for(var nme=null,rme=Math.abs($_-B_)!==1,ame=0;ame<zP.length;ame+=1){var ome=tme($P[ame]),ime=tme(zP[ame]);if(ome!==ime){nme=ame,rme=rme||ome!==tme(zP[ame+1]);break}}return nme===null?null:{index:nme,multiple:rme}}function useDiffItem(Ff,kh,x_){var $_=React__namespace.useState(Ff),B_=_slicedToArray($_,2),$P=B_[0],zP=B_[1],eme=React__namespace.useState(null),tme=_slicedToArray(eme,2),nme=tme[0],rme=tme[1];return React__namespace.useEffect(function(){var ame=findListDiffIndex($P||[],Ff||[],kh);(ame==null?void 0:ame.index)!==void 0&&rme(Ff[ame.index]),zP(Ff)},[Ff]),[nme]}var isFF=(typeof navigator>"u"?"undefined":_typeof(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const useOriginScroll=function(Ff,kh,x_,$_){var B_=React.useRef(!1),$P=React.useRef(null);function zP(){clearTimeout($P.current),B_.current=!0,$P.current=setTimeout(function(){B_.current=!1},50)}var eme=React.useRef({top:Ff,bottom:kh,left:x_,right:$_});return eme.current.top=Ff,eme.current.bottom=kh,eme.current.left=x_,eme.current.right=$_,function(tme,nme){var rme=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ame=tme?nme<0&&eme.current.left||nme>0&&eme.current.right:nme<0&&eme.current.top||nme>0&&eme.current.bottom;return rme&&ame?(clearTimeout($P.current),B_.current=!1):(!ame||B_.current)&&zP(),!B_.current&&ame}};function useFrameWheel(Ff,kh,x_,$_,B_,$P,zP){var eme=React.useRef(0),tme=React.useRef(null),nme=React.useRef(null),rme=React.useRef(!1),ame=useOriginScroll(kh,x_,$_,B_);function ome(lme,hme){wrapperRaf.cancel(tme.current),eme.current+=hme,nme.current=hme,!ame(!1,hme)&&(isFF||lme.preventDefault(),tme.current=wrapperRaf(function(){var pme=rme.current?10:1;zP(eme.current*pme),eme.current=0}))}function ime(lme,hme){zP(hme,!0),isFF||lme.preventDefault()}var cme=React.useRef(null),ume=React.useRef(null);function sme(lme){if(Ff){wrapperRaf.cancel(ume.current),ume.current=wrapperRaf(function(){cme.current=null},2);var hme=lme.deltaX,pme=lme.deltaY,gme=lme.shiftKey,yme=hme,mme=pme;(cme.current==="sx"||!cme.current&&gme&&pme&&!hme)&&(yme=pme,mme=0,cme.current="sx");var bme=Math.abs(yme),Sme=Math.abs(mme);cme.current===null&&(cme.current=$P&&bme>Sme?"x":"y"),cme.current==="y"?ome(lme,mme):ime(lme,yme)}}function fme(lme){Ff&&(rme.current=lme.detail===nme.current)}return[sme,fme]}function useGetSize(Ff,kh,x_,$_){var B_=React__namespace.useMemo(function(){return[new Map,[]]},[Ff,x_.id,$_]),$P=_slicedToArray(B_,2),zP=$P[0],eme=$P[1],tme=function(rme){var ame=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rme,ome=zP.get(rme),ime=zP.get(ame);if(ome===void 0||ime===void 0)for(var cme=Ff.length,ume=eme.length;ume<cme;ume+=1){var sme,fme=Ff[ume],lme=kh(fme);zP.set(lme,ume);var hme=(sme=x_.get(lme))!==null&&sme!==void 0?sme:$_;if(eme[ume]=(eme[ume-1]||0)+hme,lme===rme&&(ome=ume),lme===ame&&(ime=ume),ome!==void 0&&ime!==void 0)break}return{top:eme[ome-1]||0,bottom:eme[ime]}};return tme}var CacheMap=function(){function Ff(){_classCallCheck(this,Ff),_defineProperty(this,"maps",void 0),_defineProperty(this,"id",0),this.maps=Object.create(null)}return _createClass(Ff,[{key:"set",value:function(x_,$_){this.maps[x_]=$_,this.id+=1}},{key:"get",value:function(x_){return this.maps[x_]}}]),Ff}();function useHeights(Ff,kh,x_){var $_=React__namespace.useState(0),B_=_slicedToArray($_,2),$P=B_[0],zP=B_[1],eme=React.useRef(new Map),tme=React.useRef(new CacheMap),nme=React.useRef();function rme(){wrapperRaf.cancel(nme.current)}function ame(){var ime=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;rme();var cme=function(){eme.current.forEach(function(sme,fme){if(sme&&sme.offsetParent){var lme=findDOMNode(sme),hme=lme.offsetHeight;tme.current.get(fme)!==hme&&tme.current.set(fme,lme.offsetHeight)}}),zP(function(sme){return sme+1})};ime?cme():nme.current=wrapperRaf(cme)}function ome(ime,cme){var ume=Ff(ime);eme.current.get(ume),cme?(eme.current.set(ume,cme),ame()):eme.current.delete(ume)}return React.useEffect(function(){return rme},[]),[ome,ame,tme.current,$P]}var SMOOTH_PTG=14/15;function useMobileTouchMove(Ff,kh,x_){var $_=React.useRef(!1),B_=React.useRef(0),$P=React.useRef(0),zP=React.useRef(null),eme=React.useRef(null),tme,nme=function(ime){if($_.current){var cme=Math.ceil(ime.touches[0].pageX),ume=Math.ceil(ime.touches[0].pageY),sme=B_.current-cme,fme=$P.current-ume,lme=Math.abs(sme)>Math.abs(fme);lme?B_.current=cme:$P.current=ume,x_(lme,lme?sme:fme)&&ime.preventDefault(),clearInterval(eme.current),eme.current=setInterval(function(){lme?sme*=SMOOTH_PTG:fme*=SMOOTH_PTG;var hme=Math.floor(lme?sme:fme);(!x_(lme,hme,!0)||Math.abs(hme)<=.1)&&clearInterval(eme.current)},16)}},rme=function(){$_.current=!1,tme()},ame=function(ime){tme(),ime.touches.length===1&&!$_.current&&($_.current=!0,B_.current=Math.ceil(ime.touches[0].pageX),$P.current=Math.ceil(ime.touches[0].pageY),zP.current=ime.target,zP.current.addEventListener("touchmove",nme),zP.current.addEventListener("touchend",rme))};tme=function(){zP.current&&(zP.current.removeEventListener("touchmove",nme),zP.current.removeEventListener("touchend",rme))},useLayoutEffect$1(function(){return Ff&&kh.current.addEventListener("touchstart",ame),function(){var ome;(ome=kh.current)===null||ome===void 0||ome.removeEventListener("touchstart",ame),tme(),clearInterval(eme.current)}},[Ff])}var MAX_TIMES=10;function useScrollTo$1(Ff,kh,x_,$_,B_,$P,zP,eme){var tme=React__namespace.useRef(),nme=React__namespace.useState(null),rme=_slicedToArray(nme,2),ame=rme[0],ome=rme[1];return useLayoutEffect$1(function(){if(ame&&ame.times<MAX_TIMES){if(!Ff.current){ome(function(Nme){return _objectSpread2({},Nme)});return}$P();var ime=ame.targetAlign,cme=ame.originAlign,ume=ame.index,sme=ame.offset,fme=Ff.current.clientHeight,lme=!1,hme=ime,pme=null;if(fme){for(var gme=ime||cme,yme=0,mme=0,bme=0,Sme=Math.min(kh.length-1,ume),_me=0;_me<=Sme;_me+=1){var Cme=B_(kh[_me]);mme=yme;var Eme=x_.get(Cme);bme=mme+(Eme===void 0?$_:Eme),yme=bme}for(var Tme=gme==="top"?sme:fme-sme,Rme=Sme;Rme>=0;Rme-=1){var Pme=B_(kh[Rme]),$me=x_.get(Pme);if($me===void 0){lme=!0;break}if(Tme-=$me,Tme<=0)break}switch(gme){case"top":pme=mme-sme;break;case"bottom":pme=bme-fme+sme;break;default:{var Dme=Ff.current.scrollTop,Mme=Dme+fme;mme<Dme?hme="top":bme>Mme&&(hme="bottom")}}pme!==null&&zP(pme),pme!==ame.lastTop&&(lme=!0)}lme&&ome(_objectSpread2(_objectSpread2({},ame),{},{times:ame.times+1,targetAlign:hme,lastTop:pme}))}else process.env.NODE_ENV!=="production"&&(ame==null?void 0:ame.times)===MAX_TIMES&&warningOnce(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[ame,Ff.current]),function(ime){if(ime==null){eme();return}if(wrapperRaf.cancel(tme.current),typeof ime=="number")zP(ime);else if(ime&&_typeof(ime)==="object"){var cme,ume=ime.align;"index"in ime?cme=ime.index:cme=kh.findIndex(function(lme){return B_(lme)===ime.key});var sme=ime.offset,fme=sme===void 0?0:sme;ome({times:0,index:cme,offset:fme,originAlign:ume})}}}function getPageXY(Ff,kh){var x_="touches"in Ff?Ff.touches[0]:Ff;return x_[kh?"pageX":"pageY"]}var ScrollBar=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.prefixCls,$_=Ff.rtl,B_=Ff.scrollOffset,$P=Ff.scrollRange,zP=Ff.onStartMove,eme=Ff.onStopMove,tme=Ff.onScroll,nme=Ff.horizontal,rme=Ff.spinSize,ame=Ff.containerSize,ome=Ff.style,ime=Ff.thumbStyle,cme=React__namespace.useState(!1),ume=_slicedToArray(cme,2),sme=ume[0],fme=ume[1],lme=React__namespace.useState(null),hme=_slicedToArray(lme,2),pme=hme[0],gme=hme[1],yme=React__namespace.useState(null),mme=_slicedToArray(yme,2),bme=mme[0],Sme=mme[1],_me=!$_,Cme=React__namespace.useRef(),Eme=React__namespace.useRef(),Tme=React__namespace.useState(!1),Rme=_slicedToArray(Tme,2),Pme=Rme[0],$me=Rme[1],Dme=React__namespace.useRef(),Mme=function(){clearTimeout(Dme.current),$me(!0),Dme.current=setTimeout(function(){$me(!1)},3e3)},Nme=$P-ame||0,Ime=ame-rme||0,wme=React__namespace.useMemo(function(){if(B_===0||Nme===0)return 0;var zme=B_/Nme;return zme*Ime},[B_,Nme,Ime]),Ome=function(Vme){Vme.stopPropagation(),Vme.preventDefault()},Ame=React__namespace.useRef({top:wme,dragging:sme,pageY:pme,startTop:bme});Ame.current={top:wme,dragging:sme,pageY:pme,startTop:bme};var Fme=function(Vme){fme(!0),gme(getPageXY(Vme,nme)),Sme(Ame.current.top),zP(),Vme.stopPropagation(),Vme.preventDefault()};React__namespace.useEffect(function(){var zme=function(Ume){Ume.preventDefault()},Vme=Cme.current,Xme=Eme.current;return Vme.addEventListener("touchstart",zme),Xme.addEventListener("touchstart",Fme),function(){Vme.removeEventListener("touchstart",zme),Xme.removeEventListener("touchstart",Fme)}},[]);var Bme=React__namespace.useRef();Bme.current=Nme;var kme=React__namespace.useRef();kme.current=Ime,React__namespace.useEffect(function(){if(sme){var zme,Vme=function(Ume){var Jme=Ame.current,s0e=Jme.dragging,d0e=Jme.pageY,Zme=Jme.startTop;wrapperRaf.cancel(zme);var Qme=ame/Cme.current.getBoundingClientRect().height;if(s0e){var a0e=(getPageXY(Ume,nme)-d0e)*Qme,t0e=Zme;!_me&&nme?t0e-=a0e:t0e+=a0e;var o0e=Bme.current,g0e=kme.current,u0e=g0e?t0e/g0e:0,h0e=Math.ceil(u0e*o0e);h0e=Math.max(h0e,0),h0e=Math.min(h0e,o0e),zme=wrapperRaf(function(){tme(h0e,nme)})}},Xme=function(){fme(!1),eme()};return window.addEventListener("mousemove",Vme),window.addEventListener("touchmove",Vme),window.addEventListener("mouseup",Xme),window.addEventListener("touchend",Xme),function(){window.removeEventListener("mousemove",Vme),window.removeEventListener("touchmove",Vme),window.removeEventListener("mouseup",Xme),window.removeEventListener("touchend",Xme),wrapperRaf.cancel(zme)}}},[sme]),React__namespace.useEffect(function(){Mme()},[B_]),React__namespace.useImperativeHandle(kh,function(){return{delayHidden:Mme}});var Lme="".concat(x_,"-scrollbar"),Hme={position:"absolute",visibility:Pme?null:"hidden"},Wme={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return nme?(Hme.height=8,Hme.left=0,Hme.right=0,Hme.bottom=0,Wme.height="100%",Wme.width=rme,_me?Wme.left=wme:Wme.right=wme):(Hme.width=8,Hme.top=0,Hme.bottom=0,_me?Hme.right=0:Hme.left=0,Wme.width="100%",Wme.height=rme,Wme.top=wme),React__namespace.createElement("div",{ref:Cme,className:classNames(Lme,_defineProperty(_defineProperty(_defineProperty({},"".concat(Lme,"-horizontal"),nme),"".concat(Lme,"-vertical"),!nme),"".concat(Lme,"-visible"),Pme)),style:_objectSpread2(_objectSpread2({},Hme),ome),onMouseDown:Ome,onMouseMove:Mme},React__namespace.createElement("div",{ref:Eme,className:classNames("".concat(Lme,"-thumb"),_defineProperty({},"".concat(Lme,"-thumb-moving"),sme)),style:_objectSpread2(_objectSpread2({},Wme),ime),onMouseDown:Fme}))});process.env.NODE_ENV!=="production"&&(ScrollBar.displayName="ScrollBar");var MIN_SIZE=20;function getSpinSize(){var Ff=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,x_=Ff/kh*Ff;return isNaN(x_)&&(x_=0),x_=Math.max(x_,MIN_SIZE),Math.floor(x_)}var _excluded$s=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],EMPTY_DATA=[],ScrollStyle={overflowY:"auto",overflowAnchor:"none"};function RawList(Ff,kh){var x_=Ff.prefixCls,$_=x_===void 0?"rc-virtual-list":x_,B_=Ff.className,$P=Ff.height,zP=Ff.itemHeight,eme=Ff.fullHeight,tme=eme===void 0?!0:eme,nme=Ff.style,rme=Ff.data,ame=Ff.children,ome=Ff.itemKey,ime=Ff.virtual,cme=Ff.direction,ume=Ff.scrollWidth,sme=Ff.component,fme=sme===void 0?"div":sme,lme=Ff.onScroll,hme=Ff.onVirtualScroll,pme=Ff.onVisibleChange,gme=Ff.innerProps,yme=Ff.extraRender,mme=Ff.styles,bme=_objectWithoutProperties(Ff,_excluded$s),Sme=React__namespace.useCallback(function(_0e){return typeof ome=="function"?ome(_0e):_0e==null?void 0:_0e[ome]},[ome]),_me=useHeights(Sme),Cme=_slicedToArray(_me,4),Eme=Cme[0],Tme=Cme[1],Rme=Cme[2],Pme=Cme[3],$me=!!(ime!==!1&&$P&&zP),Dme=React__namespace.useMemo(function(){return Object.values(Rme.maps).reduce(function(_0e,Yme){return _0e+Yme},0)},[Rme.id,Rme.maps]),Mme=$me&&rme&&(Math.max(zP*rme.length,Dme)>$P||!!ume),Nme=cme==="rtl",Ime=classNames($_,_defineProperty({},"".concat($_,"-rtl"),Nme),B_),wme=rme||EMPTY_DATA,Ome=React.useRef(),Ame=React.useRef(),Fme=React.useRef(),Bme=React.useState(0),kme=_slicedToArray(Bme,2),Lme=kme[0],Hme=kme[1],Wme=React.useState(0),zme=_slicedToArray(Wme,2),Vme=zme[0],Xme=zme[1],e0e=React.useState(!1),Ume=_slicedToArray(e0e,2),Jme=Ume[0],s0e=Ume[1],d0e=function(){s0e(!0)},Zme=function(){s0e(!1)},Qme={getKey:Sme};function a0e(_0e){Hme(function(Yme){var l0e;typeof _0e=="function"?l0e=_0e(Yme):l0e=_0e;var S0e=q0e(l0e);return Ome.current.scrollTop=S0e,S0e})}var t0e=React.useRef({start:0,end:wme.length}),o0e=React.useRef(),g0e=useDiffItem(wme,Sme),u0e=_slicedToArray(g0e,1),h0e=u0e[0];o0e.current=h0e;var E0e=React__namespace.useMemo(function(){if(!$me)return{scrollHeight:void 0,start:0,end:wme.length-1,offset:void 0};if(!Mme){var _0e;return{scrollHeight:((_0e=Ame.current)===null||_0e===void 0?void 0:_0e.offsetHeight)||0,start:0,end:wme.length-1,offset:void 0}}for(var Yme=0,l0e,S0e,I0e,Z0e=wme.length,lye=0;lye<Z0e;lye+=1){var Tye=wme[lye],xye=Sme(Tye),Dye=Rme.get(xye),Lye=Yme+(Dye===void 0?zP:Dye);Lye>=Lme&&l0e===void 0&&(l0e=lye,S0e=Yme),Lye>Lme+$P&&I0e===void 0&&(I0e=lye),Yme=Lye}return l0e===void 0&&(l0e=0,S0e=0,I0e=Math.ceil($P/zP)),I0e===void 0&&(I0e=wme.length-1),I0e=Math.min(I0e+1,wme.length-1),{scrollHeight:Yme,start:l0e,end:I0e,offset:S0e}},[Mme,$me,Lme,wme,Pme,$P]),P0e=E0e.scrollHeight,y0e=E0e.start,$0e=E0e.end,C0e=E0e.offset;t0e.current.start=y0e,t0e.current.end=$0e;var z0e=React__namespace.useState({width:0,height:$P}),D0e=_slicedToArray(z0e,2),O0e=D0e[0],b0e=D0e[1],k0e=function(Yme){b0e({width:Yme.offsetWidth,height:Yme.offsetHeight})},T0e=React.useRef(),L0e=React.useRef(),Y0e=React__namespace.useMemo(function(){return getSpinSize(O0e.width,ume)},[O0e.width,ume]),mye=React__namespace.useMemo(function(){return getSpinSize(O0e.height,P0e)},[O0e.height,P0e]),Q0e=P0e-$P,U0e=React.useRef(Q0e);U0e.current=Q0e;function q0e(_0e){var Yme=_0e;return Number.isNaN(U0e.current)||(Yme=Math.min(Yme,U0e.current)),Yme=Math.max(Yme,0),Yme}var V0e=Lme<=0,X0e=Lme>=Q0e,M0e=Vme<=0,J0e=Vme>=ume,aye=useOriginScroll(V0e,X0e,M0e,J0e),F0e=function(){return{x:Nme?-Vme:Vme,y:Lme}},cye=React.useRef(F0e()),yye=useEvent(function(_0e){if(hme){var Yme=_objectSpread2(_objectSpread2({},F0e()),_0e);(cye.current.x!==Yme.x||cye.current.y!==Yme.y)&&(hme(Yme),cye.current=Yme)}});function W0e(_0e,Yme){var l0e=_0e;Yme?(ReactDOM.flushSync(function(){Xme(l0e)}),yye()):a0e(l0e)}function sye(_0e){var Yme=_0e.currentTarget.scrollTop;Yme!==Lme&&a0e(Yme),lme==null||lme(_0e),yye()}var G0e=function(Yme){var l0e=Yme,S0e=ume?ume-O0e.width:0;return l0e=Math.max(l0e,0),l0e=Math.min(l0e,S0e),l0e},hye=useEvent(function(_0e,Yme){Yme?(ReactDOM.flushSync(function(){Xme(function(l0e){var S0e=l0e+(Nme?-_0e:_0e);return G0e(S0e)})}),yye()):a0e(function(l0e){var S0e=l0e+_0e;return S0e})}),wye=useFrameWheel($me,V0e,X0e,M0e,J0e,!!ume,hye),Eye=_slicedToArray(wye,2),Vye=Eye[0],r0e=Eye[1];useMobileTouchMove($me,Ome,function(_0e,Yme,l0e){return aye(_0e,Yme,l0e)?!1:(Vye({preventDefault:function(){},deltaX:_0e?Yme:0,deltaY:_0e?0:Yme}),!0)}),useLayoutEffect$1(function(){function _0e(l0e){$me&&l0e.preventDefault()}var Yme=Ome.current;return Yme.addEventListener("wheel",Vye),Yme.addEventListener("DOMMouseScroll",r0e),Yme.addEventListener("MozMousePixelScroll",_0e),function(){Yme.removeEventListener("wheel",Vye),Yme.removeEventListener("DOMMouseScroll",r0e),Yme.removeEventListener("MozMousePixelScroll",_0e)}},[$me]),useLayoutEffect$1(function(){if(ume){var _0e=G0e(Vme);Xme(_0e),yye({x:_0e})}},[O0e.width,ume]);var R0e=function(){var Yme,l0e;(Yme=T0e.current)===null||Yme===void 0||Yme.delayHidden(),(l0e=L0e.current)===null||l0e===void 0||l0e.delayHidden()},A0e=useScrollTo$1(Ome,wme,Rme,zP,Sme,function(){return Tme(!0)},a0e,R0e);React__namespace.useImperativeHandle(kh,function(){return{nativeElement:Fme.current,getScrollInfo:F0e,scrollTo:function(Yme){function l0e(S0e){return S0e&&_typeof(S0e)==="object"&&("left"in S0e||"top"in S0e)}l0e(Yme)?(Yme.left!==void 0&&Xme(G0e(Yme.left)),A0e(Yme.top)):A0e(Yme)}}}),useLayoutEffect$1(function(){if(pme){var _0e=wme.slice(y0e,$0e+1);pme(_0e,wme)}},[y0e,$0e,wme]);var n0e=useGetSize(wme,Sme,Rme,zP),f0e=yme==null?void 0:yme({start:y0e,end:$0e,virtual:Mme,offsetX:Vme,offsetY:C0e,rtl:Nme,getSize:n0e}),m0e=useChildren$1(wme,y0e,$0e,ume,Vme,Eme,ame,Qme),w0e=null;$P&&(w0e=_objectSpread2(_defineProperty({},tme?"height":"maxHeight",$P),ScrollStyle),$me&&(w0e.overflowY="hidden",ume&&(w0e.overflowX="hidden"),Jme&&(w0e.pointerEvents="none")));var j0e={};return Nme&&(j0e.dir="rtl"),React__namespace.createElement("div",_extends({ref:Fme,style:_objectSpread2(_objectSpread2({},nme),{},{position:"relative"}),className:Ime},j0e,bme),React__namespace.createElement(RefResizeObserver,{onResize:k0e},React__namespace.createElement(fme,{className:"".concat($_,"-holder"),style:w0e,ref:Ome,onScroll:sye,onMouseEnter:R0e},React__namespace.createElement(Filler,{prefixCls:$_,height:P0e,offsetX:Vme,offsetY:C0e,scrollWidth:ume,onInnerResize:Tme,ref:Ame,innerProps:gme,rtl:Nme,extra:f0e},m0e))),Mme&&P0e>$P&&React__namespace.createElement(ScrollBar,{ref:T0e,prefixCls:$_,scrollOffset:Lme,scrollRange:P0e,rtl:Nme,onScroll:W0e,onStartMove:d0e,onStopMove:Zme,spinSize:mye,containerSize:O0e.height,style:mme==null?void 0:mme.verticalScrollBar,thumbStyle:mme==null?void 0:mme.verticalScrollBarThumb}),Mme&&ume>O0e.width&&React__namespace.createElement(ScrollBar,{ref:L0e,prefixCls:$_,scrollOffset:Vme,scrollRange:ume,rtl:Nme,onScroll:W0e,onStartMove:d0e,onStopMove:Zme,spinSize:Y0e,containerSize:O0e.width,horizontal:!0,style:mme==null?void 0:mme.horizontalScrollBar,thumbStyle:mme==null?void 0:mme.horizontalScrollBarThumb}))}var List=React__namespace.forwardRef(RawList);List.displayName="List";function isPlatformMac(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var _excluded$r=["disabled","title","children","style","className"];function isTitleType(Ff){return typeof Ff=="string"||typeof Ff=="number"}var OptionList$1=function(kh,x_){var $_=useBaseProps(),B_=$_.prefixCls,$P=$_.id,zP=$_.open,eme=$_.multiple,tme=$_.mode,nme=$_.searchValue,rme=$_.toggleOpen,ame=$_.notFoundContent,ome=$_.onPopupScroll,ime=React__namespace.useContext(SelectContext),cme=ime.maxCount,ume=ime.flattenOptions,sme=ime.onActiveValue,fme=ime.defaultActiveFirstOption,lme=ime.onSelect,hme=ime.menuItemSelectedIcon,pme=ime.rawValues,gme=ime.fieldNames,yme=ime.virtual,mme=ime.direction,bme=ime.listHeight,Sme=ime.listItemHeight,_me=ime.optionRender,Cme="".concat(B_,"-item"),Eme=useMemo(function(){return ume},[zP,ume],function(zme,Vme){return Vme[0]&&zme[1]!==Vme[1]}),Tme=React__namespace.useRef(null),Rme=React__namespace.useMemo(function(){return eme&&isValidCount(cme)&&(pme==null?void 0:pme.size)>=cme},[eme,cme,pme==null?void 0:pme.size]),Pme=function(Vme){Vme.preventDefault()},$me=function(Vme){var Xme;(Xme=Tme.current)===null||Xme===void 0||Xme.scrollTo(typeof Vme=="number"?{index:Vme}:Vme)},Dme=function(Vme){for(var Xme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,e0e=Eme.length,Ume=0;Ume<e0e;Ume+=1){var Jme=(Vme+Ume*Xme+e0e)%e0e,s0e=Eme[Jme]||{},d0e=s0e.group,Zme=s0e.data;if(!d0e&&!(Zme!=null&&Zme.disabled)&&!Rme)return Jme}return-1},Mme=React__namespace.useState(function(){return Dme(0)}),Nme=_slicedToArray(Mme,2),Ime=Nme[0],wme=Nme[1],Ome=function(Vme){var Xme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;wme(Vme);var e0e={source:Xme?"keyboard":"mouse"},Ume=Eme[Vme];if(!Ume){sme(null,-1,e0e);return}sme(Ume.value,Vme,e0e)};React.useEffect(function(){Ome(fme!==!1?Dme(0):-1)},[Eme.length,nme]);var Ame=React__namespace.useCallback(function(zme){return pme.has(zme)&&tme!=="combobox"},[tme,_toConsumableArray(pme).toString(),pme.size]);React.useEffect(function(){var zme=setTimeout(function(){if(!eme&&zP&&pme.size===1){var Xme=Array.from(pme)[0],e0e=Eme.findIndex(function(Ume){var Jme=Ume.data;return Jme.value===Xme});e0e!==-1&&(Ome(e0e),$me(e0e))}});if(zP){var Vme;(Vme=Tme.current)===null||Vme===void 0||Vme.scrollTo(void 0)}return function(){return clearTimeout(zme)}},[zP,nme]);var Fme=function(Vme){Vme!==void 0&&lme(Vme,{selected:!pme.has(Vme)}),eme||rme(!1)};if(React__namespace.useImperativeHandle(x_,function(){return{onKeyDown:function(Vme){var Xme=Vme.which,e0e=Vme.ctrlKey;switch(Xme){case KeyCode.N:case KeyCode.P:case KeyCode.UP:case KeyCode.DOWN:{var Ume=0;if(Xme===KeyCode.UP?Ume=-1:Xme===KeyCode.DOWN?Ume=1:isPlatformMac()&&e0e&&(Xme===KeyCode.N?Ume=1:Xme===KeyCode.P&&(Ume=-1)),Ume!==0){var Jme=Dme(Ime+Ume,Ume);$me(Jme),Ome(Jme,!0)}break}case KeyCode.ENTER:{var s0e,d0e=Eme[Ime];d0e&&!(d0e!=null&&(s0e=d0e.data)!==null&&s0e!==void 0&&s0e.disabled)&&!Rme?Fme(d0e.value):Fme(void 0),zP&&Vme.preventDefault();break}case KeyCode.ESC:rme(!1),zP&&Vme.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Vme){$me(Vme)}}}),Eme.length===0)return React__namespace.createElement("div",{role:"listbox",id:"".concat($P,"_list"),className:"".concat(Cme,"-empty"),onMouseDown:Pme},ame);var Bme=Object.keys(gme).map(function(zme){return gme[zme]}),kme=function(Vme){return Vme.label};function Lme(zme,Vme){var Xme=zme.group;return{role:Xme?"presentation":"option",id:"".concat($P,"_list_").concat(Vme)}}var Hme=function(Vme){var Xme=Eme[Vme];if(!Xme)return null;var e0e=Xme.data||{},Ume=e0e.value,Jme=Xme.group,s0e=pickAttrs(e0e,!0),d0e=kme(Xme);return Xme?React__namespace.createElement("div",_extends({"aria-label":typeof d0e=="string"&&!Jme?d0e:null},s0e,{key:Vme},Lme(Xme,Vme),{"aria-selected":Ame(Ume)}),Ume):null},Wme={role:"listbox",id:"".concat($P,"_list")};return React__namespace.createElement(React__namespace.Fragment,null,yme&&React__namespace.createElement("div",_extends({},Wme,{style:{height:0,width:0,overflow:"hidden"}}),Hme(Ime-1),Hme(Ime),Hme(Ime+1)),React__namespace.createElement(List,{itemKey:"key",ref:Tme,data:Eme,height:bme,itemHeight:Sme,fullHeight:!1,onMouseDown:Pme,onScroll:ome,virtual:yme,direction:mme,innerProps:yme?null:Wme},function(zme,Vme){var Xme=zme.group,e0e=zme.groupOption,Ume=zme.data,Jme=zme.label,s0e=zme.value,d0e=Ume.key;if(Xme){var Zme,Qme=(Zme=Ume.title)!==null&&Zme!==void 0?Zme:isTitleType(Jme)?Jme.toString():void 0;return React__namespace.createElement("div",{className:classNames(Cme,"".concat(Cme,"-group"),Ume.className),title:Qme},Jme!==void 0?Jme:d0e)}var a0e=Ume.disabled,t0e=Ume.title;Ume.children;var o0e=Ume.style,g0e=Ume.className,u0e=_objectWithoutProperties(Ume,_excluded$r),h0e=omit(u0e,Bme),E0e=Ame(s0e),P0e=a0e||!E0e&&Rme,y0e="".concat(Cme,"-option"),$0e=classNames(Cme,y0e,g0e,_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"".concat(y0e,"-grouped"),e0e),"".concat(y0e,"-active"),Ime===Vme&&!P0e),"".concat(y0e,"-disabled"),P0e),"".concat(y0e,"-selected"),E0e)),C0e=kme(zme),z0e=!hme||typeof hme=="function"||E0e,D0e=typeof C0e=="number"?C0e:C0e||s0e,O0e=isTitleType(D0e)?D0e.toString():void 0;return t0e!==void 0&&(O0e=t0e),React__namespace.createElement("div",_extends({},pickAttrs(h0e),yme?{}:Lme(zme,Vme),{"aria-selected":E0e,className:$0e,title:O0e,onMouseMove:function(){Ime===Vme||P0e||Ome(Vme)},onClick:function(){P0e||Fme(s0e)},style:o0e}),React__namespace.createElement("div",{className:"".concat(y0e,"-content")},typeof _me=="function"?_me(zme,{index:Vme}):D0e),React__namespace.isValidElement(hme)||E0e,z0e&&React__namespace.createElement(TransBtn,{className:"".concat(Cme,"-option-state"),customizeIcon:hme,customizeIconProps:{value:s0e,disabled:P0e,isSelected:E0e}},E0e?"✓":null))}))},RefOptionList$1=React__namespace.forwardRef(OptionList$1);process.env.NODE_ENV!=="production"&&(RefOptionList$1.displayName="OptionList");const useCache$1=function(Ff,kh){var x_=React__namespace.useRef({values:new Map,options:new Map}),$_=React__namespace.useMemo(function(){var $P=x_.current,zP=$P.values,eme=$P.options,tme=Ff.map(function(ame){if(ame.label===void 0){var ome;return _objectSpread2(_objectSpread2({},ame),{},{label:(ome=zP.get(ame.value))===null||ome===void 0?void 0:ome.label})}return ame}),nme=new Map,rme=new Map;return tme.forEach(function(ame){nme.set(ame.value,ame),rme.set(ame.value,kh.get(ame.value)||eme.get(ame.value))}),x_.current.values=nme,x_.current.options=rme,tme},[Ff,kh]),B_=React__namespace.useCallback(function($P){return kh.get($P)||x_.current.options.get($P)},[kh]);return[$_,B_]};function includes(Ff,kh){return toArray$5(Ff).join("").toUpperCase().includes(kh)}const useFilterOptions=function(Ff,kh,x_,$_,B_){return React__namespace.useMemo(function(){if(!x_||$_===!1)return Ff;var $P=kh.options,zP=kh.label,eme=kh.value,tme=[],nme=typeof $_=="function",rme=x_.toUpperCase(),ame=nme?$_:function(ime,cme){return B_?includes(cme[B_],rme):cme[$P]?includes(cme[zP!=="children"?zP:"label"],rme):includes(cme[eme],rme)},ome=nme?function(ime){return injectPropsWithOption(ime)}:function(ime){return ime};return Ff.forEach(function(ime){if(ime[$P]){var cme=ame(x_,ome(ime));if(cme)tme.push(ime);else{var ume=ime[$P].filter(function(sme){return ame(x_,ome(sme))});ume.length&&tme.push(_objectSpread2(_objectSpread2({},ime),{},_defineProperty({},$P,ume)))}return}ame(x_,ome(ime))&&tme.push(ime)}),tme},[Ff,$_,B_,x_,kh])};var uuid$1=0,isBrowserClient$1=process.env.NODE_ENV!=="test"&&canUseDom();function getUUID$1(){var Ff;return isBrowserClient$1?(Ff=uuid$1,uuid$1+=1):Ff="TEST_OR_SSR",Ff}function useId$1(Ff){var kh=React__namespace.useState(),x_=_slicedToArray(kh,2),$_=x_[0],B_=x_[1];return React__namespace.useEffect(function(){B_("rc_select_".concat(getUUID$1()))},[]),Ff||$_}var _excluded$q=["children","value"],_excluded2$6=["children"];function convertNodeToOption(Ff){var kh=Ff,x_=kh.key,$_=kh.props,B_=$_.children,$P=$_.value,zP=_objectWithoutProperties($_,_excluded$q);return _objectSpread2({key:x_,value:$P!==void 0?$P:x_,children:B_},zP)}function convertChildrenToData$1(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return toArray$7(Ff).map(function(x_,$_){if(!React__namespace.isValidElement(x_)||!x_.type)return null;var B_=x_,$P=B_.type.isSelectOptGroup,zP=B_.key,eme=B_.props,tme=eme.children,nme=_objectWithoutProperties(eme,_excluded2$6);return kh||!$P?convertNodeToOption(x_):_objectSpread2(_objectSpread2({key:"__RC_SELECT_GRP__".concat(zP===null?$_:zP,"__"),label:zP},nme),{},{options:convertChildrenToData$1(tme)})}).filter(function(x_){return x_})}var useOptions=function(kh,x_,$_,B_,$P){return React__namespace.useMemo(function(){var zP=kh,eme=!kh;eme&&(zP=convertChildrenToData$1(x_));var tme=new Map,nme=new Map,rme=function(ime,cme,ume){ume&&typeof ume=="string"&&ime.set(cme[ume],cme)},ame=function ome(ime){for(var cme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ume=0;ume<ime.length;ume+=1){var sme=ime[ume];!sme[$_.options]||cme?(tme.set(sme[$_.value],sme),rme(nme,sme,$_.label),rme(nme,sme,B_),rme(nme,sme,$P)):ome(sme[$_.options],!0)}};return ame(zP),{options:zP,valueOptions:tme,labelOptions:nme}},[kh,x_,$_,B_,$P])};function useRefFunc$1(Ff){var kh=React__namespace.useRef();kh.current=Ff;var x_=React__namespace.useCallback(function(){return kh.current.apply(kh,arguments)},[]);return x_}function warningProps$1(Ff){var kh=Ff.mode,x_=Ff.options,$_=Ff.children,B_=Ff.backfill,$P=Ff.allowClear,zP=Ff.placeholder,eme=Ff.getInputElement,tme=Ff.showSearch,nme=Ff.onSearch,rme=Ff.defaultOpen,ame=Ff.autoFocus,ome=Ff.labelInValue,ime=Ff.value,cme=Ff.inputValue,ume=Ff.optionLabelProp,sme=isMultiple(kh),fme=tme!==void 0?tme:sme||kh==="combobox",lme=x_||convertChildrenToData$1($_);if(warningOnce(kh!=="tags"||lme.every(function(yme){return!yme.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),kh==="tags"||kh==="combobox"){var hme=lme.some(function(yme){return yme.options?yme.options.some(function(mme){return typeof("value"in mme?mme.value:mme.key)=="number"}):typeof("value"in yme?yme.value:yme.key)=="number"});warningOnce(!hme,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warningOnce(kh!=="combobox"||!ume,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warningOnce(kh==="combobox"||!B_,"`backfill` only works with `combobox` mode."),warningOnce(kh==="combobox"||!eme,"`getInputElement` only work with `combobox` mode."),noteOnce(kh!=="combobox"||!eme||!$P||!zP,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),nme&&!fme&&kh!=="combobox"&&kh!=="tags"&&warningOnce(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!rme||ame,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ime!=null){var pme=toArray$5(ime);warningOnce(!ome||pme.every(function(yme){return _typeof(yme)==="object"&&("key"in yme||"value"in yme)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warningOnce(!sme||Array.isArray(ime),"`value` should be array when `mode` is `multiple` or `tags`")}if($_){var gme=null;toArray$7($_).some(function(yme){if(!React__namespace.isValidElement(yme)||!yme.type)return!1;var mme=yme,bme=mme.type;if(bme.isSelectOption)return!1;if(bme.isSelectOptGroup){var Sme=toArray$7(yme.props.children).every(function(_me){return!React__namespace.isValidElement(_me)||!yme.type||_me.type.isSelectOption?!0:(gme=_me.type,!1)});return!Sme}return gme=bme,!0}),gme&&warningOnce(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(gme.displayName||gme.name||gme,"`.")),warningOnce(cme===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function warningNullOptions(Ff,kh){if(Ff){var x_=function $_(B_){for(var $P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zP=0;zP<B_.length;zP++){var eme=B_[zP];if(eme[kh==null?void 0:kh.value]===null)return warningOnce(!1,"`value` in Select options should not be `null`."),!0;if(!$P&&Array.isArray(eme[kh==null?void 0:kh.options])&&$_(eme[kh==null?void 0:kh.options],!0))break}};x_(Ff)}}var _excluded$p=["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","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],OMIT_DOM_PROPS=["inputValue"];function isRawValue$1(Ff){return!Ff||_typeof(Ff)!=="object"}var Select$2=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.id,$_=Ff.mode,B_=Ff.prefixCls,$P=B_===void 0?"rc-select":B_,zP=Ff.backfill,eme=Ff.fieldNames,tme=Ff.inputValue,nme=Ff.searchValue,rme=Ff.onSearch,ame=Ff.autoClearSearchValue,ome=ame===void 0?!0:ame,ime=Ff.onSelect,cme=Ff.onDeselect,ume=Ff.dropdownMatchSelectWidth,sme=ume===void 0?!0:ume,fme=Ff.filterOption,lme=Ff.filterSort,hme=Ff.optionFilterProp,pme=Ff.optionLabelProp,gme=Ff.options,yme=Ff.optionRender,mme=Ff.children,bme=Ff.defaultActiveFirstOption,Sme=Ff.menuItemSelectedIcon,_me=Ff.virtual,Cme=Ff.direction,Eme=Ff.listHeight,Tme=Eme===void 0?200:Eme,Rme=Ff.listItemHeight,Pme=Rme===void 0?20:Rme,$me=Ff.labelRender,Dme=Ff.value,Mme=Ff.defaultValue,Nme=Ff.labelInValue,Ime=Ff.onChange,wme=Ff.maxCount,Ome=_objectWithoutProperties(Ff,_excluded$p),Ame=useId$1(x_),Fme=isMultiple($_),Bme=!!(!gme&&mme),kme=React__namespace.useMemo(function(){return fme===void 0&&$_==="combobox"?!1:fme},[fme,$_]),Lme=React__namespace.useMemo(function(){return fillFieldNames$2(eme,Bme)},[JSON.stringify(eme),Bme]),Hme=useMergedState("",{value:nme!==void 0?nme:tme,postState:function(sye){return sye||""}}),Wme=_slicedToArray(Hme,2),zme=Wme[0],Vme=Wme[1],Xme=useOptions(gme,mme,Lme,hme,pme),e0e=Xme.valueOptions,Ume=Xme.labelOptions,Jme=Xme.options,s0e=React__namespace.useCallback(function(W0e){var sye=toArray$5(W0e);return sye.map(function(G0e){var hye,wye,Eye,Vye,r0e;if(isRawValue$1(G0e))hye=G0e;else{var R0e;Eye=G0e.key,wye=G0e.label,hye=(R0e=G0e.value)!==null&&R0e!==void 0?R0e:Eye}var A0e=e0e.get(hye);if(A0e){var n0e;if(wye===void 0&&(wye=A0e==null?void 0:A0e[pme||Lme.label]),Eye===void 0&&(Eye=(n0e=A0e==null?void 0:A0e.key)!==null&&n0e!==void 0?n0e:hye),Vye=A0e==null?void 0:A0e.disabled,r0e=A0e==null?void 0:A0e.title,process.env.NODE_ENV!=="production"&&!pme){var f0e=A0e==null?void 0:A0e[Lme.label];f0e!==void 0&&!React__namespace.isValidElement(f0e)&&!React__namespace.isValidElement(wye)&&f0e!==wye&&warningOnce(!1,"`label` of `value` is not same as `label` in Select options.")}}return{label:wye,value:hye,key:Eye,disabled:Vye,title:r0e}})},[Lme,pme,e0e]),d0e=useMergedState(Mme,{value:Dme}),Zme=_slicedToArray(d0e,2),Qme=Zme[0],a0e=Zme[1],t0e=React__namespace.useMemo(function(){var W0e,sye=Fme&&Qme===null?[]:Qme,G0e=s0e(sye);return $_==="combobox"&&isComboNoValue((W0e=G0e[0])===null||W0e===void 0?void 0:W0e.value)?[]:G0e},[Qme,s0e,$_,Fme]),o0e=useCache$1(t0e,e0e),g0e=_slicedToArray(o0e,2),u0e=g0e[0],h0e=g0e[1],E0e=React__namespace.useMemo(function(){if(!$_&&u0e.length===1){var W0e=u0e[0];if(W0e.value===null&&(W0e.label===null||W0e.label===void 0))return[]}return u0e.map(function(sye){var G0e;return _objectSpread2(_objectSpread2({},sye),{},{label:(G0e=typeof $me=="function"?$me(sye):sye.label)!==null&&G0e!==void 0?G0e:sye.value})})},[$_,u0e,$me]),P0e=React__namespace.useMemo(function(){return new Set(u0e.map(function(W0e){return W0e.value}))},[u0e]);React__namespace.useEffect(function(){if($_==="combobox"){var W0e,sye=(W0e=u0e[0])===null||W0e===void 0?void 0:W0e.value;Vme(hasValue(sye)?String(sye):"")}},[u0e]);var y0e=useRefFunc$1(function(W0e,sye){var G0e=sye??W0e;return _defineProperty(_defineProperty({},Lme.value,W0e),Lme.label,G0e)}),$0e=React__namespace.useMemo(function(){if($_!=="tags")return Jme;var W0e=_toConsumableArray(Jme),sye=function(hye){return e0e.has(hye)};return _toConsumableArray(u0e).sort(function(G0e,hye){return G0e.value<hye.value?-1:1}).forEach(function(G0e){var hye=G0e.value;sye(hye)||W0e.push(y0e(hye,G0e.label))}),W0e},[y0e,Jme,e0e,u0e,$_]),C0e=useFilterOptions($0e,Lme,zme,kme,hme),z0e=React__namespace.useMemo(function(){return $_!=="tags"||!zme||C0e.some(function(W0e){return W0e[hme||"value"]===zme})||C0e.some(function(W0e){return W0e[Lme.value]===zme})?C0e:[y0e(zme)].concat(_toConsumableArray(C0e))},[y0e,hme,$_,C0e,zme,Lme]),D0e=React__namespace.useMemo(function(){return lme?_toConsumableArray(z0e).sort(function(W0e,sye){return lme(W0e,sye)}):z0e},[z0e,lme]),O0e=React__namespace.useMemo(function(){return flattenOptions(D0e,{fieldNames:Lme,childrenAsData:Bme})},[D0e,Lme,Bme]),b0e=function(sye){var G0e=s0e(sye);if(a0e(G0e),Ime&&(G0e.length!==u0e.length||G0e.some(function(Eye,Vye){var r0e;return((r0e=u0e[Vye])===null||r0e===void 0?void 0:r0e.value)!==(Eye==null?void 0:Eye.value)}))){var hye=Nme?G0e:G0e.map(function(Eye){return Eye.value}),wye=G0e.map(function(Eye){return injectPropsWithOption(h0e(Eye.value))});Ime(Fme?hye:hye[0],Fme?wye:wye[0])}},k0e=React__namespace.useState(null),T0e=_slicedToArray(k0e,2),L0e=T0e[0],Y0e=T0e[1],mye=React__namespace.useState(0),Q0e=_slicedToArray(mye,2),U0e=Q0e[0],q0e=Q0e[1],V0e=bme!==void 0?bme:$_!=="combobox",X0e=React__namespace.useCallback(function(W0e,sye){var G0e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},hye=G0e.source,wye=hye===void 0?"keyboard":hye;q0e(sye),zP&&$_==="combobox"&&W0e!==null&&wye==="keyboard"&&Y0e(String(W0e))},[zP,$_]),M0e=function(sye,G0e,hye){var wye=function(){var j0e,_0e=h0e(sye);return[Nme?{label:_0e==null?void 0:_0e[Lme.label],value:sye,key:(j0e=_0e==null?void 0:_0e.key)!==null&&j0e!==void 0?j0e:sye}:sye,injectPropsWithOption(_0e)]};if(G0e&&ime){var Eye=wye(),Vye=_slicedToArray(Eye,2),r0e=Vye[0],R0e=Vye[1];ime(r0e,R0e)}else if(!G0e&&cme&&hye!=="clear"){var A0e=wye(),n0e=_slicedToArray(A0e,2),f0e=n0e[0],m0e=n0e[1];cme(f0e,m0e)}},J0e=useRefFunc$1(function(W0e,sye){var G0e,hye=Fme?sye.selected:!0;hye?G0e=Fme?[].concat(_toConsumableArray(u0e),[W0e]):[W0e]:G0e=u0e.filter(function(wye){return wye.value!==W0e}),b0e(G0e),M0e(W0e,hye),$_==="combobox"?Y0e(""):(!isMultiple||ome)&&(Vme(""),Y0e(""))}),aye=function(sye,G0e){b0e(sye);var hye=G0e.type,wye=G0e.values;(hye==="remove"||hye==="clear")&&wye.forEach(function(Eye){M0e(Eye.value,!1,hye)})},F0e=function(sye,G0e){if(Vme(sye),Y0e(null),G0e.source==="submit"){var hye=(sye||"").trim();if(hye){var wye=Array.from(new Set([].concat(_toConsumableArray(P0e),[hye])));b0e(wye),M0e(hye,!0),Vme("")}return}G0e.source!=="blur"&&($_==="combobox"&&b0e(sye),rme==null||rme(sye))},cye=function(sye){var G0e=sye;$_!=="tags"&&(G0e=sye.map(function(wye){var Eye=Ume.get(wye);return Eye==null?void 0:Eye.value}).filter(function(wye){return wye!==void 0}));var hye=Array.from(new Set([].concat(_toConsumableArray(P0e),_toConsumableArray(G0e))));b0e(hye),hye.forEach(function(wye){M0e(wye,!0)})},yye=React__namespace.useMemo(function(){var W0e=_me!==!1&&sme!==!1;return _objectSpread2(_objectSpread2({},Xme),{},{flattenOptions:O0e,onActiveValue:X0e,defaultActiveFirstOption:V0e,onSelect:J0e,menuItemSelectedIcon:Sme,rawValues:P0e,fieldNames:Lme,virtual:W0e,direction:Cme,listHeight:Tme,listItemHeight:Pme,childrenAsData:Bme,maxCount:wme,optionRender:yme})},[wme,Xme,O0e,X0e,V0e,J0e,Sme,P0e,Lme,_me,sme,Cme,Tme,Pme,Bme,yme]);return process.env.NODE_ENV!=="production"&&(warningProps$1(Ff),warningNullOptions(Jme,Lme)),React__namespace.createElement(SelectContext.Provider,{value:yye},React__namespace.createElement(BaseSelect,_extends({},Ome,{id:Ame,prefixCls:$P,ref:kh,omitDomProps:OMIT_DOM_PROPS,mode:$_,displayValues:E0e,onDisplayValuesChange:aye,direction:Cme,searchValue:zme,onSearch:F0e,autoClearSearchValue:ome,onSearchSplit:cye,dropdownMatchSelectWidth:sme,OptionList:RefOptionList$1,emptyOptions:!O0e.length,activeValue:L0e,activeDescendantId:"".concat(Ame,"_list_").concat(U0e)})))});process.env.NODE_ENV!=="production"&&(Select$2.displayName="Select");var TypedSelect=Select$2;TypedSelect.Option=Option;TypedSelect.OptGroup=OptGroup;function getStatusClassNames(Ff,kh,x_){return classNames({[`${Ff}-status-success`]:kh==="success",[`${Ff}-status-warning`]:kh==="warning",[`${Ff}-status-error`]:kh==="error",[`${Ff}-status-validating`]:kh==="validating",[`${Ff}-has-feedback`]:x_})}const getMergedStatus=(Ff,kh)=>kh||Ff,Empty$1=()=>{const[,Ff]=useToken(),x_=new TinyColor(Ff.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return React__namespace.createElement("svg",{style:x_,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},React__namespace.createElement("g",{fill:"none",fillRule:"evenodd"},React__namespace.createElement("g",{transform:"translate(24 31.67)"},React__namespace.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),React__namespace.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"}),React__namespace.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)"}),React__namespace.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"}),React__namespace.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"})),React__namespace.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"}),React__namespace.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},React__namespace.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),React__namespace.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};process.env.NODE_ENV!=="production"&&(Empty$1.displayName="EmptyImage");const Simple=()=>{const[,Ff]=useToken(),{colorFill:kh,colorFillTertiary:x_,colorFillQuaternary:$_,colorBgContainer:B_}=Ff,{borderColor:$P,shadowColor:zP,contentColor:eme}=React.useMemo(()=>({borderColor:new TinyColor(kh).onBackground(B_).toHexShortString(),shadowColor:new TinyColor(x_).onBackground(B_).toHexShortString(),contentColor:new TinyColor($_).onBackground(B_).toHexShortString()}),[kh,x_,$_,B_]);return React__namespace.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},React__namespace.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},React__namespace.createElement("ellipse",{fill:zP,cx:"32",cy:"33",rx:"32",ry:"7"}),React__namespace.createElement("g",{fillRule:"nonzero",stroke:$P},React__namespace.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"}),React__namespace.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:eme}))))};process.env.NODE_ENV!=="production"&&(Simple.displayName="SimpleImage");const genSharedEmptyStyle=Ff=>{const{componentCls:kh,margin:x_,marginXS:$_,marginXL:B_,fontSize:$P,lineHeight:zP}=Ff;return{[kh]:{marginInline:$_,fontSize:$P,lineHeight:zP,textAlign:"center",[`${kh}-image`]:{height:Ff.emptyImgHeight,marginBottom:$_,opacity:Ff.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${kh}-description`]:{color:Ff.colorText},[`${kh}-footer`]:{marginTop:x_},"&-normal":{marginBlock:B_,color:Ff.colorTextDescription,[`${kh}-description`]:{color:Ff.colorTextDescription},[`${kh}-image`]:{height:Ff.emptyImgHeightMD}},"&-small":{marginBlock:$_,color:Ff.colorTextDescription,[`${kh}-image`]:{height:Ff.emptyImgHeightSM}}}}},useStyle$e=genStyleHooks("Empty",Ff=>{const{componentCls:kh,controlHeightLG:x_,calc:$_}=Ff,B_=merge(Ff,{emptyImgCls:`${kh}-img`,emptyImgHeight:$_(x_).mul(2.5).equal(),emptyImgHeightMD:x_,emptyImgHeightSM:$_(x_).mul(.875).equal()});return[genSharedEmptyStyle(B_)]});var __rest$u=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const defaultEmptyImg=React__namespace.createElement(Empty$1,null),simpleEmptyImg=React__namespace.createElement(Simple,null),Empty=Ff=>{var{className:kh,rootClassName:x_,prefixCls:$_,image:B_=defaultEmptyImg,description:$P,children:zP,imageStyle:eme,style:tme}=Ff,nme=__rest$u(Ff,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:rme,direction:ame,empty:ome}=React__namespace.useContext(ConfigContext),ime=rme("empty",$_),[cme,ume,sme]=useStyle$e(ime),[fme]=useLocale$1("Empty"),lme=typeof $P<"u"?$P:fme==null?void 0:fme.description,hme=typeof lme=="string"?lme:"empty";let pme=null;return typeof B_=="string"?pme=React__namespace.createElement("img",{alt:hme,src:B_}):pme=B_,cme(React__namespace.createElement("div",Object.assign({className:classNames(ume,sme,ime,ome==null?void 0:ome.className,{[`${ime}-normal`]:B_===simpleEmptyImg,[`${ime}-rtl`]:ame==="rtl"},kh,x_),style:Object.assign(Object.assign({},ome==null?void 0:ome.style),tme)},nme),React__namespace.createElement("div",{className:`${ime}-image`,style:eme},pme),lme&&React__namespace.createElement("div",{className:`${ime}-description`},lme),zP&&React__namespace.createElement("div",{className:`${ime}-footer`},zP)))};Empty.PRESENTED_IMAGE_DEFAULT=defaultEmptyImg;Empty.PRESENTED_IMAGE_SIMPLE=simpleEmptyImg;process.env.NODE_ENV!=="production"&&(Empty.displayName="Empty");const DefaultRenderEmpty=Ff=>{const{componentName:kh}=Ff,{getPrefixCls:x_}=React.useContext(ConfigContext),$_=x_("empty");switch(kh){case"Table":case"List":return React.createElement(Empty,{image:Empty.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return React.createElement(Empty,{image:Empty.PRESENTED_IMAGE_SIMPLE,className:`${$_}-small`});default:return React.createElement(Empty,null)}},Variants=["outlined","borderless","filled"],useVariant=function(Ff){let kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const x_=React.useContext(VariantContext);let $_;typeof Ff<"u"?$_=Ff:kh===!1?$_="borderless":$_=x_??"outlined";const B_=Variants.includes($_);return[$_,B_]},getBuiltInPlacements=Ff=>{const x_={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ff==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},x_),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},x_),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},x_),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},x_),{points:["br","tr"],offset:[0,-4]})}};function mergedBuiltinPlacements(Ff,kh){return Ff||getBuiltInPlacements(kh)}const genItemStyle=Ff=>{const{optionHeight:kh,optionFontSize:x_,optionLineHeight:$_,optionPadding:B_}=Ff;return{position:"relative",display:"block",minHeight:kh,padding:B_,color:Ff.colorText,fontWeight:"normal",fontSize:x_,lineHeight:$_,boxSizing:"border-box"}},genSingleStyle$1=Ff=>{const{antCls:kh,componentCls:x_}=Ff,$_=`${x_}-item`,B_=`&${kh}-slide-up-enter${kh}-slide-up-enter-active`,$P=`&${kh}-slide-up-appear${kh}-slide-up-appear-active`,zP=`&${kh}-slide-up-leave${kh}-slide-up-leave-active`,eme=`${x_}-dropdown-placement-`;return[{[`${x_}-dropdown`]:Object.assign(Object.assign({},resetComponent(Ff)),{position:"absolute",top:-9999,zIndex:Ff.zIndexPopup,boxSizing:"border-box",padding:Ff.paddingXXS,overflow:"hidden",fontSize:Ff.fontSize,fontVariant:"initial",backgroundColor:Ff.colorBgElevated,borderRadius:Ff.borderRadiusLG,outline:"none",boxShadow:Ff.boxShadowSecondary,[`
197
+ `].includes(fye)})},[Pme]),G0e=React__namespace.useContext(SelectContext)||{},hye=G0e.maxCount,wye=G0e.rawValues,Eye=function(gye,Hye,Xye){if(!(Zme&&isValidCount(hye)&&(wye==null?void 0:wye.size)>=hye)){var Wye=!0,n1e=gye;Sme==null||Sme(null);var bye=getSeparatedContent(gye,Pme,isValidCount(hye)?hye-wye.size:void 0),dye=Xye?null:bye;return sme!=="combobox"&&dye&&(n1e="",Rme==null||Rme(dye),W0e(!1),Wye=!1),Tme&&T0e!==n1e&&Tme(n1e,{source:Hye?"typing":"effect"}),Wye}},Vye=function(gye){!gye||!gye.trim()||Tme(gye,{source:"submit"})};React__namespace.useEffect(function(){!F0e&&!Zme&&sme!=="combobox"&&Eye("",!1,!1)},[F0e]),React__namespace.useEffect(function(){J0e&&fme&&aye(!1),fme&&!C0e.current&&b0e(!1)},[fme]);var r0e=useLock(),R0e=_slicedToArray(r0e,2),A0e=R0e[0],n0e=R0e[1],f0e=function(gye){var Hye=A0e(),Xye=gye.which;if(Xye===KeyCode.ENTER&&(sme!=="combobox"&&gye.preventDefault(),F0e||W0e(!0)),n0e(!!T0e),Xye===KeyCode.BACKSPACE&&!Hye&&Zme&&!T0e&&rme.length){for(var Wye=_toConsumableArray(rme),n1e=null,bye=Wye.length-1;bye>=0;bye-=1){var dye=Wye[bye];if(!dye.disabled){Wye.splice(bye,1),n1e=dye;break}}n1e&&ame(Wye,{type:"remove",values:[n1e]})}for(var Yye=arguments.length,u1e=new Array(Yye>1?Yye-1:0),s1e=1;s1e<Yye;s1e++)u1e[s1e-1]=arguments[s1e];if(F0e){var y1e;(y1e=$0e.current)===null||y1e===void 0||y1e.onKeyDown.apply(y1e,[gye].concat(u1e))}Jme==null||Jme.apply(void 0,[gye].concat(u1e))},m0e=function(gye){for(var Hye=arguments.length,Xye=new Array(Hye>1?Hye-1:0),Wye=1;Wye<Hye;Wye++)Xye[Wye-1]=arguments[Wye];if(F0e){var n1e;(n1e=$0e.current)===null||n1e===void 0||n1e.onKeyUp.apply(n1e,[gye].concat(Xye))}Ume==null||Ume.apply(void 0,[gye].concat(Xye))},w0e=function(gye){var Hye=rme.filter(function(Xye){return Xye!==gye});ame(Hye,{type:"remove",values:[gye]})},j0e=React__namespace.useRef(!1),_0e=function(){b0e(!0),fme||(Xme&&!j0e.current&&Xme.apply(void 0,arguments),Vme.includes("focus")&&W0e(!0)),j0e.current=!0},Yme=function(){C0e.current=!0,b0e(!1,function(){j0e.current=!1,C0e.current=!1,W0e(!1)}),!fme&&(T0e&&(sme==="tags"?Tme(T0e,{source:"submit"}):sme==="multiple"&&Tme("",{source:"blur"})),e0e&&e0e.apply(void 0,arguments))},l0e=[];React__namespace.useEffect(function(){return function(){l0e.forEach(function(fye){return clearTimeout(fye)}),l0e.splice(0,l0e.length)}},[]);var S0e=function(gye){var Hye,Xye=gye.target,Wye=(Hye=P0e.current)===null||Hye===void 0?void 0:Hye.getPopupElement();if(Wye&&Wye.contains(Xye)){var n1e=setTimeout(function(){var u1e=l0e.indexOf(n1e);if(u1e!==-1&&l0e.splice(u1e,1),k0e(),!g0e&&!Wye.contains(document.activeElement)){var s1e;(s1e=y0e.current)===null||s1e===void 0||s1e.focus()}});l0e.push(n1e)}for(var bye=arguments.length,dye=new Array(bye>1?bye-1:0),Yye=1;Yye<bye;Yye++)dye[Yye-1]=arguments[Yye];s0e==null||s0e.apply(void 0,[gye].concat(dye))},I0e=React__namespace.useState({}),Z0e=_slicedToArray(I0e,2),lye=Z0e[1];function Tye(){lye({})}var xye;Y0e&&(xye=function(gye){W0e(gye)}),useSelectTriggerControl(function(){var fye;return[h0e.current,(fye=P0e.current)===null||fye===void 0?void 0:fye.getPopupElement()]},yye,W0e,!!Y0e);var Dye=React__namespace.useMemo(function(){return _objectSpread2(_objectSpread2({},Ff),{},{notFoundContent:cme,open:F0e,triggerOpen:yye,id:$_,showSearch:Qme,multiple:Zme,toggleOpen:W0e})},[Ff,cme,yye,F0e,$_,Qme,Zme,W0e]),Lye=!!Dme||lme,l1e;Lye&&(l1e=React__namespace.createElement(TransBtn,{className:classNames("".concat(B_,"-arrow"),_defineProperty({},"".concat(B_,"-arrow-loading"),lme)),customizeIcon:Dme,customizeIconProps:{loading:lme,searchValue:T0e,open:F0e,focused:O0e,showSearch:Qme}}));var Uye=function(){var gye;ume==null||ume(),(gye=y0e.current)===null||gye===void 0||gye.focus(),ame([],{type:"clear",values:rme}),Eye("",!1,!1)},Qye=useAllowClear(B_,Uye,rme,$me,Mme,fme,T0e,sme),Sye=Qye.allowClear,jye=Qye.clearIcon,qye=React__namespace.createElement(Nme,{ref:$0e}),Rye=classNames(B_,$P,_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"".concat(B_,"-focused"),O0e),"".concat(B_,"-multiple"),Zme),"".concat(B_,"-single"),!Zme),"".concat(B_,"-allow-clear"),$me),"".concat(B_,"-show-arrow"),Lye),"".concat(B_,"-disabled"),fme),"".concat(B_,"-loading"),lme),"".concat(B_,"-open"),F0e),"".concat(B_,"-customize-input"),L0e),"".concat(B_,"-show-search"),Qme)),Aye=React__namespace.createElement(RefSelectTrigger,{ref:P0e,disabled:fme,prefixCls:B_,visible:yye,popupElement:qye,animation:Ime,transitionName:wme,dropdownStyle:Ome,dropdownClassName:Ame,direction:tme,dropdownMatchSelectWidth:Fme,dropdownRender:Bme,dropdownAlign:kme,placement:Lme,builtinPlacements:Hme,getPopupContainer:Wme,empty:ome,getTriggerDOMNode:function(gye){return E0e.current||gye},onPopupVisibleChange:xye,onPopupMouseEnter:Tye},Y0e?React__namespace.cloneElement(Y0e,{ref:mye}):React__namespace.createElement(ForwardSelector,_extends({},Ff,{domRef:E0e,prefixCls:B_,inputElement:L0e,ref:y0e,id:$_,showSearch:Qme,autoClearSearchValue:Eme,mode:sme,activeDescendantId:_me,tagRender:eme,values:rme,open:F0e,onToggleOpen:W0e,activeValue:bme,searchValue:T0e,onSearch:Eye,onSearchSubmit:Vye,onRemove:w0e,tokenWithEnter:sye}))),Oye;return Y0e?Oye=Aye:Oye=React__namespace.createElement("div",_extends({className:Rye},a0e,{ref:h0e,onMouseDown:S0e,onKeyDown:f0e,onKeyUp:m0e,onFocus:_0e,onBlur:Yme}),React__namespace.createElement(Polite,{visible:O0e&&!F0e,values:rme}),Aye,l1e,Sye&&jye),React__namespace.createElement(BaseSelectContext.Provider,{value:Dye},Oye)});process.env.NODE_ENV!=="production"&&(BaseSelect.displayName="BaseSelect");var OptGroup=function(){return null};OptGroup.isSelectOptGroup=!0;var Option=function(){return null};Option.isSelectOption=!0;var Filler=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.height,$_=Ff.offsetY,B_=Ff.offsetX,$P=Ff.children,zP=Ff.prefixCls,eme=Ff.onInnerResize,tme=Ff.innerProps,nme=Ff.rtl,rme=Ff.extra,ame={},ome={display:"flex",flexDirection:"column"};return $_!==void 0&&(ame={height:x_,position:"relative",overflow:"hidden"},ome=_objectSpread2(_objectSpread2({},ome),{},_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({transform:"translateY(".concat($_,"px)")},nme?"marginRight":"marginLeft",-B_),"position","absolute"),"left",0),"right",0),"top",0))),React__namespace.createElement("div",{style:ame},React__namespace.createElement(RefResizeObserver,{onResize:function(cme){var ume=cme.offsetHeight;ume&&eme&&eme()}},React__namespace.createElement("div",_extends({style:ome,className:classNames(_defineProperty({},"".concat(zP,"-holder-inner"),zP)),ref:kh},tme),$P,rme)))});Filler.displayName="Filler";function Item(Ff){var kh=Ff.children,x_=Ff.setRef,$_=React__namespace.useCallback(function(B_){x_(B_)},[]);return React__namespace.cloneElement(kh,{ref:$_})}function useChildren$1(Ff,kh,x_,$_,B_,$P,zP,eme){var tme=eme.getKey;return Ff.slice(kh,x_+1).map(function(nme,rme){var ame=kh+rme,ome=zP(nme,ame,{style:{width:$_},offsetX:B_}),ime=tme(nme);return React__namespace.createElement(Item,{key:ime,setRef:function(ume){return $P(nme,ume)}},ome)})}function findListDiffIndex(Ff,kh,x_){var $_=Ff.length,B_=kh.length,$P,zP;if($_===0&&B_===0)return null;$_<B_?($P=Ff,zP=kh):($P=kh,zP=Ff);var eme={__EMPTY_ITEM__:!0};function tme(cme){return cme!==void 0?x_(cme):eme}for(var nme=null,rme=Math.abs($_-B_)!==1,ame=0;ame<zP.length;ame+=1){var ome=tme($P[ame]),ime=tme(zP[ame]);if(ome!==ime){nme=ame,rme=rme||ome!==tme(zP[ame+1]);break}}return nme===null?null:{index:nme,multiple:rme}}function useDiffItem(Ff,kh,x_){var $_=React__namespace.useState(Ff),B_=_slicedToArray($_,2),$P=B_[0],zP=B_[1],eme=React__namespace.useState(null),tme=_slicedToArray(eme,2),nme=tme[0],rme=tme[1];return React__namespace.useEffect(function(){var ame=findListDiffIndex($P||[],Ff||[],kh);(ame==null?void 0:ame.index)!==void 0&&rme(Ff[ame.index]),zP(Ff)},[Ff]),[nme]}var isFF=(typeof navigator>"u"?"undefined":_typeof(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const useOriginScroll=function(Ff,kh,x_,$_){var B_=React.useRef(!1),$P=React.useRef(null);function zP(){clearTimeout($P.current),B_.current=!0,$P.current=setTimeout(function(){B_.current=!1},50)}var eme=React.useRef({top:Ff,bottom:kh,left:x_,right:$_});return eme.current.top=Ff,eme.current.bottom=kh,eme.current.left=x_,eme.current.right=$_,function(tme,nme){var rme=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ame=tme?nme<0&&eme.current.left||nme>0&&eme.current.right:nme<0&&eme.current.top||nme>0&&eme.current.bottom;return rme&&ame?(clearTimeout($P.current),B_.current=!1):(!ame||B_.current)&&zP(),!B_.current&&ame}};function useFrameWheel(Ff,kh,x_,$_,B_,$P,zP){var eme=React.useRef(0),tme=React.useRef(null),nme=React.useRef(null),rme=React.useRef(!1),ame=useOriginScroll(kh,x_,$_,B_);function ome(lme,hme){wrapperRaf.cancel(tme.current),eme.current+=hme,nme.current=hme,!ame(!1,hme)&&(isFF||lme.preventDefault(),tme.current=wrapperRaf(function(){var pme=rme.current?10:1;zP(eme.current*pme),eme.current=0}))}function ime(lme,hme){zP(hme,!0),isFF||lme.preventDefault()}var cme=React.useRef(null),ume=React.useRef(null);function sme(lme){if(Ff){wrapperRaf.cancel(ume.current),ume.current=wrapperRaf(function(){cme.current=null},2);var hme=lme.deltaX,pme=lme.deltaY,gme=lme.shiftKey,yme=hme,mme=pme;(cme.current==="sx"||!cme.current&&gme&&pme&&!hme)&&(yme=pme,mme=0,cme.current="sx");var bme=Math.abs(yme),Sme=Math.abs(mme);cme.current===null&&(cme.current=$P&&bme>Sme?"x":"y"),cme.current==="y"?ome(lme,mme):ime(lme,yme)}}function fme(lme){Ff&&(rme.current=lme.detail===nme.current)}return[sme,fme]}function useGetSize(Ff,kh,x_,$_){var B_=React__namespace.useMemo(function(){return[new Map,[]]},[Ff,x_.id,$_]),$P=_slicedToArray(B_,2),zP=$P[0],eme=$P[1],tme=function(rme){var ame=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rme,ome=zP.get(rme),ime=zP.get(ame);if(ome===void 0||ime===void 0)for(var cme=Ff.length,ume=eme.length;ume<cme;ume+=1){var sme,fme=Ff[ume],lme=kh(fme);zP.set(lme,ume);var hme=(sme=x_.get(lme))!==null&&sme!==void 0?sme:$_;if(eme[ume]=(eme[ume-1]||0)+hme,lme===rme&&(ome=ume),lme===ame&&(ime=ume),ome!==void 0&&ime!==void 0)break}return{top:eme[ome-1]||0,bottom:eme[ime]}};return tme}var CacheMap=function(){function Ff(){_classCallCheck(this,Ff),_defineProperty(this,"maps",void 0),_defineProperty(this,"id",0),this.maps=Object.create(null)}return _createClass(Ff,[{key:"set",value:function(x_,$_){this.maps[x_]=$_,this.id+=1}},{key:"get",value:function(x_){return this.maps[x_]}}]),Ff}();function useHeights(Ff,kh,x_){var $_=React__namespace.useState(0),B_=_slicedToArray($_,2),$P=B_[0],zP=B_[1],eme=React.useRef(new Map),tme=React.useRef(new CacheMap),nme=React.useRef();function rme(){wrapperRaf.cancel(nme.current)}function ame(){var ime=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;rme();var cme=function(){eme.current.forEach(function(sme,fme){if(sme&&sme.offsetParent){var lme=findDOMNode(sme),hme=lme.offsetHeight;tme.current.get(fme)!==hme&&tme.current.set(fme,lme.offsetHeight)}}),zP(function(sme){return sme+1})};ime?cme():nme.current=wrapperRaf(cme)}function ome(ime,cme){var ume=Ff(ime);eme.current.get(ume),cme?(eme.current.set(ume,cme),ame()):eme.current.delete(ume)}return React.useEffect(function(){return rme},[]),[ome,ame,tme.current,$P]}var SMOOTH_PTG=14/15;function useMobileTouchMove(Ff,kh,x_){var $_=React.useRef(!1),B_=React.useRef(0),$P=React.useRef(0),zP=React.useRef(null),eme=React.useRef(null),tme,nme=function(ime){if($_.current){var cme=Math.ceil(ime.touches[0].pageX),ume=Math.ceil(ime.touches[0].pageY),sme=B_.current-cme,fme=$P.current-ume,lme=Math.abs(sme)>Math.abs(fme);lme?B_.current=cme:$P.current=ume,x_(lme,lme?sme:fme)&&ime.preventDefault(),clearInterval(eme.current),eme.current=setInterval(function(){lme?sme*=SMOOTH_PTG:fme*=SMOOTH_PTG;var hme=Math.floor(lme?sme:fme);(!x_(lme,hme,!0)||Math.abs(hme)<=.1)&&clearInterval(eme.current)},16)}},rme=function(){$_.current=!1,tme()},ame=function(ime){tme(),ime.touches.length===1&&!$_.current&&($_.current=!0,B_.current=Math.ceil(ime.touches[0].pageX),$P.current=Math.ceil(ime.touches[0].pageY),zP.current=ime.target,zP.current.addEventListener("touchmove",nme),zP.current.addEventListener("touchend",rme))};tme=function(){zP.current&&(zP.current.removeEventListener("touchmove",nme),zP.current.removeEventListener("touchend",rme))},useLayoutEffect$1(function(){return Ff&&kh.current.addEventListener("touchstart",ame),function(){var ome;(ome=kh.current)===null||ome===void 0||ome.removeEventListener("touchstart",ame),tme(),clearInterval(eme.current)}},[Ff])}var MAX_TIMES=10;function useScrollTo$1(Ff,kh,x_,$_,B_,$P,zP,eme){var tme=React__namespace.useRef(),nme=React__namespace.useState(null),rme=_slicedToArray(nme,2),ame=rme[0],ome=rme[1];return useLayoutEffect$1(function(){if(ame&&ame.times<MAX_TIMES){if(!Ff.current){ome(function(Nme){return _objectSpread2({},Nme)});return}$P();var ime=ame.targetAlign,cme=ame.originAlign,ume=ame.index,sme=ame.offset,fme=Ff.current.clientHeight,lme=!1,hme=ime,pme=null;if(fme){for(var gme=ime||cme,yme=0,mme=0,bme=0,Sme=Math.min(kh.length-1,ume),_me=0;_me<=Sme;_me+=1){var Cme=B_(kh[_me]);mme=yme;var Eme=x_.get(Cme);bme=mme+(Eme===void 0?$_:Eme),yme=bme}for(var Tme=gme==="top"?sme:fme-sme,Rme=Sme;Rme>=0;Rme-=1){var Pme=B_(kh[Rme]),$me=x_.get(Pme);if($me===void 0){lme=!0;break}if(Tme-=$me,Tme<=0)break}switch(gme){case"top":pme=mme-sme;break;case"bottom":pme=bme-fme+sme;break;default:{var Dme=Ff.current.scrollTop,Mme=Dme+fme;mme<Dme?hme="top":bme>Mme&&(hme="bottom")}}pme!==null&&zP(pme),pme!==ame.lastTop&&(lme=!0)}lme&&ome(_objectSpread2(_objectSpread2({},ame),{},{times:ame.times+1,targetAlign:hme,lastTop:pme}))}else process.env.NODE_ENV!=="production"&&(ame==null?void 0:ame.times)===MAX_TIMES&&warningOnce(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[ame,Ff.current]),function(ime){if(ime==null){eme();return}if(wrapperRaf.cancel(tme.current),typeof ime=="number")zP(ime);else if(ime&&_typeof(ime)==="object"){var cme,ume=ime.align;"index"in ime?cme=ime.index:cme=kh.findIndex(function(lme){return B_(lme)===ime.key});var sme=ime.offset,fme=sme===void 0?0:sme;ome({times:0,index:cme,offset:fme,originAlign:ume})}}}function getPageXY(Ff,kh){var x_="touches"in Ff?Ff.touches[0]:Ff;return x_[kh?"pageX":"pageY"]}var ScrollBar=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.prefixCls,$_=Ff.rtl,B_=Ff.scrollOffset,$P=Ff.scrollRange,zP=Ff.onStartMove,eme=Ff.onStopMove,tme=Ff.onScroll,nme=Ff.horizontal,rme=Ff.spinSize,ame=Ff.containerSize,ome=Ff.style,ime=Ff.thumbStyle,cme=React__namespace.useState(!1),ume=_slicedToArray(cme,2),sme=ume[0],fme=ume[1],lme=React__namespace.useState(null),hme=_slicedToArray(lme,2),pme=hme[0],gme=hme[1],yme=React__namespace.useState(null),mme=_slicedToArray(yme,2),bme=mme[0],Sme=mme[1],_me=!$_,Cme=React__namespace.useRef(),Eme=React__namespace.useRef(),Tme=React__namespace.useState(!1),Rme=_slicedToArray(Tme,2),Pme=Rme[0],$me=Rme[1],Dme=React__namespace.useRef(),Mme=function(){clearTimeout(Dme.current),$me(!0),Dme.current=setTimeout(function(){$me(!1)},3e3)},Nme=$P-ame||0,Ime=ame-rme||0,wme=React__namespace.useMemo(function(){if(B_===0||Nme===0)return 0;var zme=B_/Nme;return zme*Ime},[B_,Nme,Ime]),Ome=function(Vme){Vme.stopPropagation(),Vme.preventDefault()},Ame=React__namespace.useRef({top:wme,dragging:sme,pageY:pme,startTop:bme});Ame.current={top:wme,dragging:sme,pageY:pme,startTop:bme};var Fme=function(Vme){fme(!0),gme(getPageXY(Vme,nme)),Sme(Ame.current.top),zP(),Vme.stopPropagation(),Vme.preventDefault()};React__namespace.useEffect(function(){var zme=function(Ume){Ume.preventDefault()},Vme=Cme.current,Xme=Eme.current;return Vme.addEventListener("touchstart",zme),Xme.addEventListener("touchstart",Fme),function(){Vme.removeEventListener("touchstart",zme),Xme.removeEventListener("touchstart",Fme)}},[]);var Bme=React__namespace.useRef();Bme.current=Nme;var kme=React__namespace.useRef();kme.current=Ime,React__namespace.useEffect(function(){if(sme){var zme,Vme=function(Ume){var Jme=Ame.current,s0e=Jme.dragging,d0e=Jme.pageY,Zme=Jme.startTop;wrapperRaf.cancel(zme);var Qme=ame/Cme.current.getBoundingClientRect().height;if(s0e){var a0e=(getPageXY(Ume,nme)-d0e)*Qme,t0e=Zme;!_me&&nme?t0e-=a0e:t0e+=a0e;var o0e=Bme.current,g0e=kme.current,u0e=g0e?t0e/g0e:0,h0e=Math.ceil(u0e*o0e);h0e=Math.max(h0e,0),h0e=Math.min(h0e,o0e),zme=wrapperRaf(function(){tme(h0e,nme)})}},Xme=function(){fme(!1),eme()};return window.addEventListener("mousemove",Vme),window.addEventListener("touchmove",Vme),window.addEventListener("mouseup",Xme),window.addEventListener("touchend",Xme),function(){window.removeEventListener("mousemove",Vme),window.removeEventListener("touchmove",Vme),window.removeEventListener("mouseup",Xme),window.removeEventListener("touchend",Xme),wrapperRaf.cancel(zme)}}},[sme]),React__namespace.useEffect(function(){Mme()},[B_]),React__namespace.useImperativeHandle(kh,function(){return{delayHidden:Mme}});var Lme="".concat(x_,"-scrollbar"),Hme={position:"absolute",visibility:Pme?null:"hidden"},Wme={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return nme?(Hme.height=8,Hme.left=0,Hme.right=0,Hme.bottom=0,Wme.height="100%",Wme.width=rme,_me?Wme.left=wme:Wme.right=wme):(Hme.width=8,Hme.top=0,Hme.bottom=0,_me?Hme.right=0:Hme.left=0,Wme.width="100%",Wme.height=rme,Wme.top=wme),React__namespace.createElement("div",{ref:Cme,className:classNames(Lme,_defineProperty(_defineProperty(_defineProperty({},"".concat(Lme,"-horizontal"),nme),"".concat(Lme,"-vertical"),!nme),"".concat(Lme,"-visible"),Pme)),style:_objectSpread2(_objectSpread2({},Hme),ome),onMouseDown:Ome,onMouseMove:Mme},React__namespace.createElement("div",{ref:Eme,className:classNames("".concat(Lme,"-thumb"),_defineProperty({},"".concat(Lme,"-thumb-moving"),sme)),style:_objectSpread2(_objectSpread2({},Wme),ime),onMouseDown:Fme}))});process.env.NODE_ENV!=="production"&&(ScrollBar.displayName="ScrollBar");var MIN_SIZE=20;function getSpinSize(){var Ff=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,x_=Ff/kh*Ff;return isNaN(x_)&&(x_=0),x_=Math.max(x_,MIN_SIZE),Math.floor(x_)}var _excluded$s=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],EMPTY_DATA=[],ScrollStyle={overflowY:"auto",overflowAnchor:"none"};function RawList(Ff,kh){var x_=Ff.prefixCls,$_=x_===void 0?"rc-virtual-list":x_,B_=Ff.className,$P=Ff.height,zP=Ff.itemHeight,eme=Ff.fullHeight,tme=eme===void 0?!0:eme,nme=Ff.style,rme=Ff.data,ame=Ff.children,ome=Ff.itemKey,ime=Ff.virtual,cme=Ff.direction,ume=Ff.scrollWidth,sme=Ff.component,fme=sme===void 0?"div":sme,lme=Ff.onScroll,hme=Ff.onVirtualScroll,pme=Ff.onVisibleChange,gme=Ff.innerProps,yme=Ff.extraRender,mme=Ff.styles,bme=_objectWithoutProperties(Ff,_excluded$s),Sme=React__namespace.useCallback(function(_0e){return typeof ome=="function"?ome(_0e):_0e==null?void 0:_0e[ome]},[ome]),_me=useHeights(Sme),Cme=_slicedToArray(_me,4),Eme=Cme[0],Tme=Cme[1],Rme=Cme[2],Pme=Cme[3],$me=!!(ime!==!1&&$P&&zP),Dme=React__namespace.useMemo(function(){return Object.values(Rme.maps).reduce(function(_0e,Yme){return _0e+Yme},0)},[Rme.id,Rme.maps]),Mme=$me&&rme&&(Math.max(zP*rme.length,Dme)>$P||!!ume),Nme=cme==="rtl",Ime=classNames($_,_defineProperty({},"".concat($_,"-rtl"),Nme),B_),wme=rme||EMPTY_DATA,Ome=React.useRef(),Ame=React.useRef(),Fme=React.useRef(),Bme=React.useState(0),kme=_slicedToArray(Bme,2),Lme=kme[0],Hme=kme[1],Wme=React.useState(0),zme=_slicedToArray(Wme,2),Vme=zme[0],Xme=zme[1],e0e=React.useState(!1),Ume=_slicedToArray(e0e,2),Jme=Ume[0],s0e=Ume[1],d0e=function(){s0e(!0)},Zme=function(){s0e(!1)},Qme={getKey:Sme};function a0e(_0e){Hme(function(Yme){var l0e;typeof _0e=="function"?l0e=_0e(Yme):l0e=_0e;var S0e=q0e(l0e);return Ome.current.scrollTop=S0e,S0e})}var t0e=React.useRef({start:0,end:wme.length}),o0e=React.useRef(),g0e=useDiffItem(wme,Sme),u0e=_slicedToArray(g0e,1),h0e=u0e[0];o0e.current=h0e;var E0e=React__namespace.useMemo(function(){if(!$me)return{scrollHeight:void 0,start:0,end:wme.length-1,offset:void 0};if(!Mme){var _0e;return{scrollHeight:((_0e=Ame.current)===null||_0e===void 0?void 0:_0e.offsetHeight)||0,start:0,end:wme.length-1,offset:void 0}}for(var Yme=0,l0e,S0e,I0e,Z0e=wme.length,lye=0;lye<Z0e;lye+=1){var Tye=wme[lye],xye=Sme(Tye),Dye=Rme.get(xye),Lye=Yme+(Dye===void 0?zP:Dye);Lye>=Lme&&l0e===void 0&&(l0e=lye,S0e=Yme),Lye>Lme+$P&&I0e===void 0&&(I0e=lye),Yme=Lye}return l0e===void 0&&(l0e=0,S0e=0,I0e=Math.ceil($P/zP)),I0e===void 0&&(I0e=wme.length-1),I0e=Math.min(I0e+1,wme.length-1),{scrollHeight:Yme,start:l0e,end:I0e,offset:S0e}},[Mme,$me,Lme,wme,Pme,$P]),P0e=E0e.scrollHeight,y0e=E0e.start,$0e=E0e.end,C0e=E0e.offset;t0e.current.start=y0e,t0e.current.end=$0e;var z0e=React__namespace.useState({width:0,height:$P}),D0e=_slicedToArray(z0e,2),O0e=D0e[0],b0e=D0e[1],k0e=function(Yme){b0e({width:Yme.offsetWidth,height:Yme.offsetHeight})},T0e=React.useRef(),L0e=React.useRef(),Y0e=React__namespace.useMemo(function(){return getSpinSize(O0e.width,ume)},[O0e.width,ume]),mye=React__namespace.useMemo(function(){return getSpinSize(O0e.height,P0e)},[O0e.height,P0e]),Q0e=P0e-$P,U0e=React.useRef(Q0e);U0e.current=Q0e;function q0e(_0e){var Yme=_0e;return Number.isNaN(U0e.current)||(Yme=Math.min(Yme,U0e.current)),Yme=Math.max(Yme,0),Yme}var V0e=Lme<=0,X0e=Lme>=Q0e,M0e=Vme<=0,J0e=Vme>=ume,aye=useOriginScroll(V0e,X0e,M0e,J0e),F0e=function(){return{x:Nme?-Vme:Vme,y:Lme}},cye=React.useRef(F0e()),yye=useEvent(function(_0e){if(hme){var Yme=_objectSpread2(_objectSpread2({},F0e()),_0e);(cye.current.x!==Yme.x||cye.current.y!==Yme.y)&&(hme(Yme),cye.current=Yme)}});function W0e(_0e,Yme){var l0e=_0e;Yme?(ReactDOM.flushSync(function(){Xme(l0e)}),yye()):a0e(l0e)}function sye(_0e){var Yme=_0e.currentTarget.scrollTop;Yme!==Lme&&a0e(Yme),lme==null||lme(_0e),yye()}var G0e=function(Yme){var l0e=Yme,S0e=ume?ume-O0e.width:0;return l0e=Math.max(l0e,0),l0e=Math.min(l0e,S0e),l0e},hye=useEvent(function(_0e,Yme){Yme?(ReactDOM.flushSync(function(){Xme(function(l0e){var S0e=l0e+(Nme?-_0e:_0e);return G0e(S0e)})}),yye()):a0e(function(l0e){var S0e=l0e+_0e;return S0e})}),wye=useFrameWheel($me,V0e,X0e,M0e,J0e,!!ume,hye),Eye=_slicedToArray(wye,2),Vye=Eye[0],r0e=Eye[1];useMobileTouchMove($me,Ome,function(_0e,Yme,l0e){return aye(_0e,Yme,l0e)?!1:(Vye({preventDefault:function(){},deltaX:_0e?Yme:0,deltaY:_0e?0:Yme}),!0)}),useLayoutEffect$1(function(){function _0e(l0e){$me&&l0e.preventDefault()}var Yme=Ome.current;return Yme.addEventListener("wheel",Vye),Yme.addEventListener("DOMMouseScroll",r0e),Yme.addEventListener("MozMousePixelScroll",_0e),function(){Yme.removeEventListener("wheel",Vye),Yme.removeEventListener("DOMMouseScroll",r0e),Yme.removeEventListener("MozMousePixelScroll",_0e)}},[$me]),useLayoutEffect$1(function(){if(ume){var _0e=G0e(Vme);Xme(_0e),yye({x:_0e})}},[O0e.width,ume]);var R0e=function(){var Yme,l0e;(Yme=T0e.current)===null||Yme===void 0||Yme.delayHidden(),(l0e=L0e.current)===null||l0e===void 0||l0e.delayHidden()},A0e=useScrollTo$1(Ome,wme,Rme,zP,Sme,function(){return Tme(!0)},a0e,R0e);React__namespace.useImperativeHandle(kh,function(){return{nativeElement:Fme.current,getScrollInfo:F0e,scrollTo:function(Yme){function l0e(S0e){return S0e&&_typeof(S0e)==="object"&&("left"in S0e||"top"in S0e)}l0e(Yme)?(Yme.left!==void 0&&Xme(G0e(Yme.left)),A0e(Yme.top)):A0e(Yme)}}}),useLayoutEffect$1(function(){if(pme){var _0e=wme.slice(y0e,$0e+1);pme(_0e,wme)}},[y0e,$0e,wme]);var n0e=useGetSize(wme,Sme,Rme,zP),f0e=yme==null?void 0:yme({start:y0e,end:$0e,virtual:Mme,offsetX:Vme,offsetY:C0e,rtl:Nme,getSize:n0e}),m0e=useChildren$1(wme,y0e,$0e,ume,Vme,Eme,ame,Qme),w0e=null;$P&&(w0e=_objectSpread2(_defineProperty({},tme?"height":"maxHeight",$P),ScrollStyle),$me&&(w0e.overflowY="hidden",ume&&(w0e.overflowX="hidden"),Jme&&(w0e.pointerEvents="none")));var j0e={};return Nme&&(j0e.dir="rtl"),React__namespace.createElement("div",_extends({ref:Fme,style:_objectSpread2(_objectSpread2({},nme),{},{position:"relative"}),className:Ime},j0e,bme),React__namespace.createElement(RefResizeObserver,{onResize:k0e},React__namespace.createElement(fme,{className:"".concat($_,"-holder"),style:w0e,ref:Ome,onScroll:sye,onMouseEnter:R0e},React__namespace.createElement(Filler,{prefixCls:$_,height:P0e,offsetX:Vme,offsetY:C0e,scrollWidth:ume,onInnerResize:Tme,ref:Ame,innerProps:gme,rtl:Nme,extra:f0e},m0e))),Mme&&P0e>$P&&React__namespace.createElement(ScrollBar,{ref:T0e,prefixCls:$_,scrollOffset:Lme,scrollRange:P0e,rtl:Nme,onScroll:W0e,onStartMove:d0e,onStopMove:Zme,spinSize:mye,containerSize:O0e.height,style:mme==null?void 0:mme.verticalScrollBar,thumbStyle:mme==null?void 0:mme.verticalScrollBarThumb}),Mme&&ume>O0e.width&&React__namespace.createElement(ScrollBar,{ref:L0e,prefixCls:$_,scrollOffset:Vme,scrollRange:ume,rtl:Nme,onScroll:W0e,onStartMove:d0e,onStopMove:Zme,spinSize:Y0e,containerSize:O0e.width,horizontal:!0,style:mme==null?void 0:mme.horizontalScrollBar,thumbStyle:mme==null?void 0:mme.horizontalScrollBarThumb}))}var List=React__namespace.forwardRef(RawList);List.displayName="List";function isPlatformMac(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var _excluded$r=["disabled","title","children","style","className"];function isTitleType(Ff){return typeof Ff=="string"||typeof Ff=="number"}var OptionList$1=function(kh,x_){var $_=useBaseProps(),B_=$_.prefixCls,$P=$_.id,zP=$_.open,eme=$_.multiple,tme=$_.mode,nme=$_.searchValue,rme=$_.toggleOpen,ame=$_.notFoundContent,ome=$_.onPopupScroll,ime=React__namespace.useContext(SelectContext),cme=ime.maxCount,ume=ime.flattenOptions,sme=ime.onActiveValue,fme=ime.defaultActiveFirstOption,lme=ime.onSelect,hme=ime.menuItemSelectedIcon,pme=ime.rawValues,gme=ime.fieldNames,yme=ime.virtual,mme=ime.direction,bme=ime.listHeight,Sme=ime.listItemHeight,_me=ime.optionRender,Cme="".concat(B_,"-item"),Eme=useMemo(function(){return ume},[zP,ume],function(zme,Vme){return Vme[0]&&zme[1]!==Vme[1]}),Tme=React__namespace.useRef(null),Rme=React__namespace.useMemo(function(){return eme&&isValidCount(cme)&&(pme==null?void 0:pme.size)>=cme},[eme,cme,pme==null?void 0:pme.size]),Pme=function(Vme){Vme.preventDefault()},$me=function(Vme){var Xme;(Xme=Tme.current)===null||Xme===void 0||Xme.scrollTo(typeof Vme=="number"?{index:Vme}:Vme)},Dme=function(Vme){for(var Xme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,e0e=Eme.length,Ume=0;Ume<e0e;Ume+=1){var Jme=(Vme+Ume*Xme+e0e)%e0e,s0e=Eme[Jme]||{},d0e=s0e.group,Zme=s0e.data;if(!d0e&&!(Zme!=null&&Zme.disabled)&&!Rme)return Jme}return-1},Mme=React__namespace.useState(function(){return Dme(0)}),Nme=_slicedToArray(Mme,2),Ime=Nme[0],wme=Nme[1],Ome=function(Vme){var Xme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;wme(Vme);var e0e={source:Xme?"keyboard":"mouse"},Ume=Eme[Vme];if(!Ume){sme(null,-1,e0e);return}sme(Ume.value,Vme,e0e)};React.useEffect(function(){Ome(fme!==!1?Dme(0):-1)},[Eme.length,nme]);var Ame=React__namespace.useCallback(function(zme){return pme.has(zme)&&tme!=="combobox"},[tme,_toConsumableArray(pme).toString(),pme.size]);React.useEffect(function(){var zme=setTimeout(function(){if(!eme&&zP&&pme.size===1){var Xme=Array.from(pme)[0],e0e=Eme.findIndex(function(Ume){var Jme=Ume.data;return Jme.value===Xme});e0e!==-1&&(Ome(e0e),$me(e0e))}});if(zP){var Vme;(Vme=Tme.current)===null||Vme===void 0||Vme.scrollTo(void 0)}return function(){return clearTimeout(zme)}},[zP,nme]);var Fme=function(Vme){Vme!==void 0&&lme(Vme,{selected:!pme.has(Vme)}),eme||rme(!1)};if(React__namespace.useImperativeHandle(x_,function(){return{onKeyDown:function(Vme){var Xme=Vme.which,e0e=Vme.ctrlKey;switch(Xme){case KeyCode.N:case KeyCode.P:case KeyCode.UP:case KeyCode.DOWN:{var Ume=0;if(Xme===KeyCode.UP?Ume=-1:Xme===KeyCode.DOWN?Ume=1:isPlatformMac()&&e0e&&(Xme===KeyCode.N?Ume=1:Xme===KeyCode.P&&(Ume=-1)),Ume!==0){var Jme=Dme(Ime+Ume,Ume);$me(Jme),Ome(Jme,!0)}break}case KeyCode.ENTER:{var s0e,d0e=Eme[Ime];d0e&&!(d0e!=null&&(s0e=d0e.data)!==null&&s0e!==void 0&&s0e.disabled)&&!Rme?Fme(d0e.value):Fme(void 0),zP&&Vme.preventDefault();break}case KeyCode.ESC:rme(!1),zP&&Vme.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Vme){$me(Vme)}}}),Eme.length===0)return React__namespace.createElement("div",{role:"listbox",id:"".concat($P,"_list"),className:"".concat(Cme,"-empty"),onMouseDown:Pme},ame);var Bme=Object.keys(gme).map(function(zme){return gme[zme]}),kme=function(Vme){return Vme.label};function Lme(zme,Vme){var Xme=zme.group;return{role:Xme?"presentation":"option",id:"".concat($P,"_list_").concat(Vme)}}var Hme=function(Vme){var Xme=Eme[Vme];if(!Xme)return null;var e0e=Xme.data||{},Ume=e0e.value,Jme=Xme.group,s0e=pickAttrs(e0e,!0),d0e=kme(Xme);return Xme?React__namespace.createElement("div",_extends({"aria-label":typeof d0e=="string"&&!Jme?d0e:null},s0e,{key:Vme},Lme(Xme,Vme),{"aria-selected":Ame(Ume)}),Ume):null},Wme={role:"listbox",id:"".concat($P,"_list")};return React__namespace.createElement(React__namespace.Fragment,null,yme&&React__namespace.createElement("div",_extends({},Wme,{style:{height:0,width:0,overflow:"hidden"}}),Hme(Ime-1),Hme(Ime),Hme(Ime+1)),React__namespace.createElement(List,{itemKey:"key",ref:Tme,data:Eme,height:bme,itemHeight:Sme,fullHeight:!1,onMouseDown:Pme,onScroll:ome,virtual:yme,direction:mme,innerProps:yme?null:Wme},function(zme,Vme){var Xme=zme.group,e0e=zme.groupOption,Ume=zme.data,Jme=zme.label,s0e=zme.value,d0e=Ume.key;if(Xme){var Zme,Qme=(Zme=Ume.title)!==null&&Zme!==void 0?Zme:isTitleType(Jme)?Jme.toString():void 0;return React__namespace.createElement("div",{className:classNames(Cme,"".concat(Cme,"-group"),Ume.className),title:Qme},Jme!==void 0?Jme:d0e)}var a0e=Ume.disabled,t0e=Ume.title;Ume.children;var o0e=Ume.style,g0e=Ume.className,u0e=_objectWithoutProperties(Ume,_excluded$r),h0e=omit(u0e,Bme),E0e=Ame(s0e),P0e=a0e||!E0e&&Rme,y0e="".concat(Cme,"-option"),$0e=classNames(Cme,y0e,g0e,_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"".concat(y0e,"-grouped"),e0e),"".concat(y0e,"-active"),Ime===Vme&&!P0e),"".concat(y0e,"-disabled"),P0e),"".concat(y0e,"-selected"),E0e)),C0e=kme(zme),z0e=!hme||typeof hme=="function"||E0e,D0e=typeof C0e=="number"?C0e:C0e||s0e,O0e=isTitleType(D0e)?D0e.toString():void 0;return t0e!==void 0&&(O0e=t0e),React__namespace.createElement("div",_extends({},pickAttrs(h0e),yme?{}:Lme(zme,Vme),{"aria-selected":E0e,className:$0e,title:O0e,onMouseMove:function(){Ime===Vme||P0e||Ome(Vme)},onClick:function(){P0e||Fme(s0e)},style:o0e}),React__namespace.createElement("div",{className:"".concat(y0e,"-content")},typeof _me=="function"?_me(zme,{index:Vme}):D0e),React__namespace.isValidElement(hme)||E0e,z0e&&React__namespace.createElement(TransBtn,{className:"".concat(Cme,"-option-state"),customizeIcon:hme,customizeIconProps:{value:s0e,disabled:P0e,isSelected:E0e}},E0e?"✓":null))}))},RefOptionList$1=React__namespace.forwardRef(OptionList$1);process.env.NODE_ENV!=="production"&&(RefOptionList$1.displayName="OptionList");const useCache$1=function(Ff,kh){var x_=React__namespace.useRef({values:new Map,options:new Map}),$_=React__namespace.useMemo(function(){var $P=x_.current,zP=$P.values,eme=$P.options,tme=Ff.map(function(ame){if(ame.label===void 0){var ome;return _objectSpread2(_objectSpread2({},ame),{},{label:(ome=zP.get(ame.value))===null||ome===void 0?void 0:ome.label})}return ame}),nme=new Map,rme=new Map;return tme.forEach(function(ame){nme.set(ame.value,ame),rme.set(ame.value,kh.get(ame.value)||eme.get(ame.value))}),x_.current.values=nme,x_.current.options=rme,tme},[Ff,kh]),B_=React__namespace.useCallback(function($P){return kh.get($P)||x_.current.options.get($P)},[kh]);return[$_,B_]};function includes(Ff,kh){return toArray$5(Ff).join("").toUpperCase().includes(kh)}const useFilterOptions=function(Ff,kh,x_,$_,B_){return React__namespace.useMemo(function(){if(!x_||$_===!1)return Ff;var $P=kh.options,zP=kh.label,eme=kh.value,tme=[],nme=typeof $_=="function",rme=x_.toUpperCase(),ame=nme?$_:function(ime,cme){return B_?includes(cme[B_],rme):cme[$P]?includes(cme[zP!=="children"?zP:"label"],rme):includes(cme[eme],rme)},ome=nme?function(ime){return injectPropsWithOption(ime)}:function(ime){return ime};return Ff.forEach(function(ime){if(ime[$P]){var cme=ame(x_,ome(ime));if(cme)tme.push(ime);else{var ume=ime[$P].filter(function(sme){return ame(x_,ome(sme))});ume.length&&tme.push(_objectSpread2(_objectSpread2({},ime),{},_defineProperty({},$P,ume)))}return}ame(x_,ome(ime))&&tme.push(ime)}),tme},[Ff,$_,B_,x_,kh])};var uuid$1=0,isBrowserClient$1=process.env.NODE_ENV!=="test"&&canUseDom();function getUUID$1(){var Ff;return isBrowserClient$1?(Ff=uuid$1,uuid$1+=1):Ff="TEST_OR_SSR",Ff}function useId$1(Ff){var kh=React__namespace.useState(),x_=_slicedToArray(kh,2),$_=x_[0],B_=x_[1];return React__namespace.useEffect(function(){B_("rc_select_".concat(getUUID$1()))},[]),Ff||$_}var _excluded$q=["children","value"],_excluded2$6=["children"];function convertNodeToOption(Ff){var kh=Ff,x_=kh.key,$_=kh.props,B_=$_.children,$P=$_.value,zP=_objectWithoutProperties($_,_excluded$q);return _objectSpread2({key:x_,value:$P!==void 0?$P:x_,children:B_},zP)}function convertChildrenToData$1(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return toArray$7(Ff).map(function(x_,$_){if(!React__namespace.isValidElement(x_)||!x_.type)return null;var B_=x_,$P=B_.type.isSelectOptGroup,zP=B_.key,eme=B_.props,tme=eme.children,nme=_objectWithoutProperties(eme,_excluded2$6);return kh||!$P?convertNodeToOption(x_):_objectSpread2(_objectSpread2({key:"__RC_SELECT_GRP__".concat(zP===null?$_:zP,"__"),label:zP},nme),{},{options:convertChildrenToData$1(tme)})}).filter(function(x_){return x_})}var useOptions=function(kh,x_,$_,B_,$P){return React__namespace.useMemo(function(){var zP=kh,eme=!kh;eme&&(zP=convertChildrenToData$1(x_));var tme=new Map,nme=new Map,rme=function(ime,cme,ume){ume&&typeof ume=="string"&&ime.set(cme[ume],cme)},ame=function ome(ime){for(var cme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ume=0;ume<ime.length;ume+=1){var sme=ime[ume];!sme[$_.options]||cme?(tme.set(sme[$_.value],sme),rme(nme,sme,$_.label),rme(nme,sme,B_),rme(nme,sme,$P)):ome(sme[$_.options],!0)}};return ame(zP),{options:zP,valueOptions:tme,labelOptions:nme}},[kh,x_,$_,B_,$P])};function useRefFunc$1(Ff){var kh=React__namespace.useRef();kh.current=Ff;var x_=React__namespace.useCallback(function(){return kh.current.apply(kh,arguments)},[]);return x_}function warningProps$1(Ff){var kh=Ff.mode,x_=Ff.options,$_=Ff.children,B_=Ff.backfill,$P=Ff.allowClear,zP=Ff.placeholder,eme=Ff.getInputElement,tme=Ff.showSearch,nme=Ff.onSearch,rme=Ff.defaultOpen,ame=Ff.autoFocus,ome=Ff.labelInValue,ime=Ff.value,cme=Ff.inputValue,ume=Ff.optionLabelProp,sme=isMultiple(kh),fme=tme!==void 0?tme:sme||kh==="combobox",lme=x_||convertChildrenToData$1($_);if(warningOnce(kh!=="tags"||lme.every(function(yme){return!yme.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),kh==="tags"||kh==="combobox"){var hme=lme.some(function(yme){return yme.options?yme.options.some(function(mme){return typeof("value"in mme?mme.value:mme.key)=="number"}):typeof("value"in yme?yme.value:yme.key)=="number"});warningOnce(!hme,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warningOnce(kh!=="combobox"||!ume,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warningOnce(kh==="combobox"||!B_,"`backfill` only works with `combobox` mode."),warningOnce(kh==="combobox"||!eme,"`getInputElement` only work with `combobox` mode."),noteOnce(kh!=="combobox"||!eme||!$P||!zP,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),nme&&!fme&&kh!=="combobox"&&kh!=="tags"&&warningOnce(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!rme||ame,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ime!=null){var pme=toArray$5(ime);warningOnce(!ome||pme.every(function(yme){return _typeof(yme)==="object"&&("key"in yme||"value"in yme)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warningOnce(!sme||Array.isArray(ime),"`value` should be array when `mode` is `multiple` or `tags`")}if($_){var gme=null;toArray$7($_).some(function(yme){if(!React__namespace.isValidElement(yme)||!yme.type)return!1;var mme=yme,bme=mme.type;if(bme.isSelectOption)return!1;if(bme.isSelectOptGroup){var Sme=toArray$7(yme.props.children).every(function(_me){return!React__namespace.isValidElement(_me)||!yme.type||_me.type.isSelectOption?!0:(gme=_me.type,!1)});return!Sme}return gme=bme,!0}),gme&&warningOnce(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(gme.displayName||gme.name||gme,"`.")),warningOnce(cme===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function warningNullOptions(Ff,kh){if(Ff){var x_=function $_(B_){for(var $P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zP=0;zP<B_.length;zP++){var eme=B_[zP];if(eme[kh==null?void 0:kh.value]===null)return warningOnce(!1,"`value` in Select options should not be `null`."),!0;if(!$P&&Array.isArray(eme[kh==null?void 0:kh.options])&&$_(eme[kh==null?void 0:kh.options],!0))break}};x_(Ff)}}var _excluded$p=["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","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],OMIT_DOM_PROPS=["inputValue"];function isRawValue$1(Ff){return!Ff||_typeof(Ff)!=="object"}var Select$2=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.id,$_=Ff.mode,B_=Ff.prefixCls,$P=B_===void 0?"rc-select":B_,zP=Ff.backfill,eme=Ff.fieldNames,tme=Ff.inputValue,nme=Ff.searchValue,rme=Ff.onSearch,ame=Ff.autoClearSearchValue,ome=ame===void 0?!0:ame,ime=Ff.onSelect,cme=Ff.onDeselect,ume=Ff.dropdownMatchSelectWidth,sme=ume===void 0?!0:ume,fme=Ff.filterOption,lme=Ff.filterSort,hme=Ff.optionFilterProp,pme=Ff.optionLabelProp,gme=Ff.options,yme=Ff.optionRender,mme=Ff.children,bme=Ff.defaultActiveFirstOption,Sme=Ff.menuItemSelectedIcon,_me=Ff.virtual,Cme=Ff.direction,Eme=Ff.listHeight,Tme=Eme===void 0?200:Eme,Rme=Ff.listItemHeight,Pme=Rme===void 0?20:Rme,$me=Ff.labelRender,Dme=Ff.value,Mme=Ff.defaultValue,Nme=Ff.labelInValue,Ime=Ff.onChange,wme=Ff.maxCount,Ome=_objectWithoutProperties(Ff,_excluded$p),Ame=useId$1(x_),Fme=isMultiple($_),Bme=!!(!gme&&mme),kme=React__namespace.useMemo(function(){return fme===void 0&&$_==="combobox"?!1:fme},[fme,$_]),Lme=React__namespace.useMemo(function(){return fillFieldNames$2(eme,Bme)},[JSON.stringify(eme),Bme]),Hme=useMergedState("",{value:nme!==void 0?nme:tme,postState:function(sye){return sye||""}}),Wme=_slicedToArray(Hme,2),zme=Wme[0],Vme=Wme[1],Xme=useOptions(gme,mme,Lme,hme,pme),e0e=Xme.valueOptions,Ume=Xme.labelOptions,Jme=Xme.options,s0e=React__namespace.useCallback(function(W0e){var sye=toArray$5(W0e);return sye.map(function(G0e){var hye,wye,Eye,Vye,r0e;if(isRawValue$1(G0e))hye=G0e;else{var R0e;Eye=G0e.key,wye=G0e.label,hye=(R0e=G0e.value)!==null&&R0e!==void 0?R0e:Eye}var A0e=e0e.get(hye);if(A0e){var n0e;if(wye===void 0&&(wye=A0e==null?void 0:A0e[pme||Lme.label]),Eye===void 0&&(Eye=(n0e=A0e==null?void 0:A0e.key)!==null&&n0e!==void 0?n0e:hye),Vye=A0e==null?void 0:A0e.disabled,r0e=A0e==null?void 0:A0e.title,process.env.NODE_ENV!=="production"&&!pme){var f0e=A0e==null?void 0:A0e[Lme.label];f0e!==void 0&&!React__namespace.isValidElement(f0e)&&!React__namespace.isValidElement(wye)&&f0e!==wye&&warningOnce(!1,"`label` of `value` is not same as `label` in Select options.")}}return{label:wye,value:hye,key:Eye,disabled:Vye,title:r0e}})},[Lme,pme,e0e]),d0e=useMergedState(Mme,{value:Dme}),Zme=_slicedToArray(d0e,2),Qme=Zme[0],a0e=Zme[1],t0e=React__namespace.useMemo(function(){var W0e,sye=Fme&&Qme===null?[]:Qme,G0e=s0e(sye);return $_==="combobox"&&isComboNoValue((W0e=G0e[0])===null||W0e===void 0?void 0:W0e.value)?[]:G0e},[Qme,s0e,$_,Fme]),o0e=useCache$1(t0e,e0e),g0e=_slicedToArray(o0e,2),u0e=g0e[0],h0e=g0e[1],E0e=React__namespace.useMemo(function(){if(!$_&&u0e.length===1){var W0e=u0e[0];if(W0e.value===null&&(W0e.label===null||W0e.label===void 0))return[]}return u0e.map(function(sye){var G0e;return _objectSpread2(_objectSpread2({},sye),{},{label:(G0e=typeof $me=="function"?$me(sye):sye.label)!==null&&G0e!==void 0?G0e:sye.value})})},[$_,u0e,$me]),P0e=React__namespace.useMemo(function(){return new Set(u0e.map(function(W0e){return W0e.value}))},[u0e]);React__namespace.useEffect(function(){if($_==="combobox"){var W0e,sye=(W0e=u0e[0])===null||W0e===void 0?void 0:W0e.value;Vme(hasValue(sye)?String(sye):"")}},[u0e]);var y0e=useRefFunc$1(function(W0e,sye){var G0e=sye??W0e;return _defineProperty(_defineProperty({},Lme.value,W0e),Lme.label,G0e)}),$0e=React__namespace.useMemo(function(){if($_!=="tags")return Jme;var W0e=_toConsumableArray(Jme),sye=function(hye){return e0e.has(hye)};return _toConsumableArray(u0e).sort(function(G0e,hye){return G0e.value<hye.value?-1:1}).forEach(function(G0e){var hye=G0e.value;sye(hye)||W0e.push(y0e(hye,G0e.label))}),W0e},[y0e,Jme,e0e,u0e,$_]),C0e=useFilterOptions($0e,Lme,zme,kme,hme),z0e=React__namespace.useMemo(function(){return $_!=="tags"||!zme||C0e.some(function(W0e){return W0e[hme||"value"]===zme})||C0e.some(function(W0e){return W0e[Lme.value]===zme})?C0e:[y0e(zme)].concat(_toConsumableArray(C0e))},[y0e,hme,$_,C0e,zme,Lme]),D0e=React__namespace.useMemo(function(){return lme?_toConsumableArray(z0e).sort(function(W0e,sye){return lme(W0e,sye)}):z0e},[z0e,lme]),O0e=React__namespace.useMemo(function(){return flattenOptions(D0e,{fieldNames:Lme,childrenAsData:Bme})},[D0e,Lme,Bme]),b0e=function(sye){var G0e=s0e(sye);if(a0e(G0e),Ime&&(G0e.length!==u0e.length||G0e.some(function(Eye,Vye){var r0e;return((r0e=u0e[Vye])===null||r0e===void 0?void 0:r0e.value)!==(Eye==null?void 0:Eye.value)}))){var hye=Nme?G0e:G0e.map(function(Eye){return Eye.value}),wye=G0e.map(function(Eye){return injectPropsWithOption(h0e(Eye.value))});Ime(Fme?hye:hye[0],Fme?wye:wye[0])}},k0e=React__namespace.useState(null),T0e=_slicedToArray(k0e,2),L0e=T0e[0],Y0e=T0e[1],mye=React__namespace.useState(0),Q0e=_slicedToArray(mye,2),U0e=Q0e[0],q0e=Q0e[1],V0e=bme!==void 0?bme:$_!=="combobox",X0e=React__namespace.useCallback(function(W0e,sye){var G0e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},hye=G0e.source,wye=hye===void 0?"keyboard":hye;q0e(sye),zP&&$_==="combobox"&&W0e!==null&&wye==="keyboard"&&Y0e(String(W0e))},[zP,$_]),M0e=function(sye,G0e,hye){var wye=function(){var j0e,_0e=h0e(sye);return[Nme?{label:_0e==null?void 0:_0e[Lme.label],value:sye,key:(j0e=_0e==null?void 0:_0e.key)!==null&&j0e!==void 0?j0e:sye}:sye,injectPropsWithOption(_0e)]};if(G0e&&ime){var Eye=wye(),Vye=_slicedToArray(Eye,2),r0e=Vye[0],R0e=Vye[1];ime(r0e,R0e)}else if(!G0e&&cme&&hye!=="clear"){var A0e=wye(),n0e=_slicedToArray(A0e,2),f0e=n0e[0],m0e=n0e[1];cme(f0e,m0e)}},J0e=useRefFunc$1(function(W0e,sye){var G0e,hye=Fme?sye.selected:!0;hye?G0e=Fme?[].concat(_toConsumableArray(u0e),[W0e]):[W0e]:G0e=u0e.filter(function(wye){return wye.value!==W0e}),b0e(G0e),M0e(W0e,hye),$_==="combobox"?Y0e(""):(!isMultiple||ome)&&(Vme(""),Y0e(""))}),aye=function(sye,G0e){b0e(sye);var hye=G0e.type,wye=G0e.values;(hye==="remove"||hye==="clear")&&wye.forEach(function(Eye){M0e(Eye.value,!1,hye)})},F0e=function(sye,G0e){if(Vme(sye),Y0e(null),G0e.source==="submit"){var hye=(sye||"").trim();if(hye){var wye=Array.from(new Set([].concat(_toConsumableArray(P0e),[hye])));b0e(wye),M0e(hye,!0),Vme("")}return}G0e.source!=="blur"&&($_==="combobox"&&b0e(sye),rme==null||rme(sye))},cye=function(sye){var G0e=sye;$_!=="tags"&&(G0e=sye.map(function(wye){var Eye=Ume.get(wye);return Eye==null?void 0:Eye.value}).filter(function(wye){return wye!==void 0}));var hye=Array.from(new Set([].concat(_toConsumableArray(P0e),_toConsumableArray(G0e))));b0e(hye),hye.forEach(function(wye){M0e(wye,!0)})},yye=React__namespace.useMemo(function(){var W0e=_me!==!1&&sme!==!1;return _objectSpread2(_objectSpread2({},Xme),{},{flattenOptions:O0e,onActiveValue:X0e,defaultActiveFirstOption:V0e,onSelect:J0e,menuItemSelectedIcon:Sme,rawValues:P0e,fieldNames:Lme,virtual:W0e,direction:Cme,listHeight:Tme,listItemHeight:Pme,childrenAsData:Bme,maxCount:wme,optionRender:yme})},[wme,Xme,O0e,X0e,V0e,J0e,Sme,P0e,Lme,_me,sme,Cme,Tme,Pme,Bme,yme]);return process.env.NODE_ENV!=="production"&&(warningProps$1(Ff),warningNullOptions(Jme,Lme)),React__namespace.createElement(SelectContext.Provider,{value:yye},React__namespace.createElement(BaseSelect,_extends({},Ome,{id:Ame,prefixCls:$P,ref:kh,omitDomProps:OMIT_DOM_PROPS,mode:$_,displayValues:E0e,onDisplayValuesChange:aye,direction:Cme,searchValue:zme,onSearch:F0e,autoClearSearchValue:ome,onSearchSplit:cye,dropdownMatchSelectWidth:sme,OptionList:RefOptionList$1,emptyOptions:!O0e.length,activeValue:L0e,activeDescendantId:"".concat(Ame,"_list_").concat(U0e)})))});process.env.NODE_ENV!=="production"&&(Select$2.displayName="Select");var TypedSelect=Select$2;TypedSelect.Option=Option;TypedSelect.OptGroup=OptGroup;function getStatusClassNames(Ff,kh,x_){return classNames({[`${Ff}-status-success`]:kh==="success",[`${Ff}-status-warning`]:kh==="warning",[`${Ff}-status-error`]:kh==="error",[`${Ff}-status-validating`]:kh==="validating",[`${Ff}-has-feedback`]:x_})}const getMergedStatus=(Ff,kh)=>kh||Ff,Empty$1=()=>{const[,Ff]=useToken(),x_=new TinyColor(Ff.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return React__namespace.createElement("svg",{style:x_,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},React__namespace.createElement("g",{fill:"none",fillRule:"evenodd"},React__namespace.createElement("g",{transform:"translate(24 31.67)"},React__namespace.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),React__namespace.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"}),React__namespace.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)"}),React__namespace.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"}),React__namespace.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"})),React__namespace.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"}),React__namespace.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},React__namespace.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),React__namespace.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};process.env.NODE_ENV!=="production"&&(Empty$1.displayName="EmptyImage");const Simple=()=>{const[,Ff]=useToken(),{colorFill:kh,colorFillTertiary:x_,colorFillQuaternary:$_,colorBgContainer:B_}=Ff,{borderColor:$P,shadowColor:zP,contentColor:eme}=React.useMemo(()=>({borderColor:new TinyColor(kh).onBackground(B_).toHexShortString(),shadowColor:new TinyColor(x_).onBackground(B_).toHexShortString(),contentColor:new TinyColor($_).onBackground(B_).toHexShortString()}),[kh,x_,$_,B_]);return React__namespace.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},React__namespace.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},React__namespace.createElement("ellipse",{fill:zP,cx:"32",cy:"33",rx:"32",ry:"7"}),React__namespace.createElement("g",{fillRule:"nonzero",stroke:$P},React__namespace.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"}),React__namespace.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:eme}))))};process.env.NODE_ENV!=="production"&&(Simple.displayName="SimpleImage");const genSharedEmptyStyle=Ff=>{const{componentCls:kh,margin:x_,marginXS:$_,marginXL:B_,fontSize:$P,lineHeight:zP}=Ff;return{[kh]:{marginInline:$_,fontSize:$P,lineHeight:zP,textAlign:"center",[`${kh}-image`]:{height:Ff.emptyImgHeight,marginBottom:$_,opacity:Ff.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${kh}-description`]:{color:Ff.colorText},[`${kh}-footer`]:{marginTop:x_},"&-normal":{marginBlock:B_,color:Ff.colorTextDescription,[`${kh}-description`]:{color:Ff.colorTextDescription},[`${kh}-image`]:{height:Ff.emptyImgHeightMD}},"&-small":{marginBlock:$_,color:Ff.colorTextDescription,[`${kh}-image`]:{height:Ff.emptyImgHeightSM}}}}},useStyle$e=genStyleHooks("Empty",Ff=>{const{componentCls:kh,controlHeightLG:x_,calc:$_}=Ff,B_=merge(Ff,{emptyImgCls:`${kh}-img`,emptyImgHeight:$_(x_).mul(2.5).equal(),emptyImgHeightMD:x_,emptyImgHeightSM:$_(x_).mul(.875).equal()});return[genSharedEmptyStyle(B_)]});var __rest$u=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const defaultEmptyImg=React__namespace.createElement(Empty$1,null),simpleEmptyImg=React__namespace.createElement(Simple,null),Empty=Ff=>{var{className:kh,rootClassName:x_,prefixCls:$_,image:B_=defaultEmptyImg,description:$P,children:zP,imageStyle:eme,style:tme}=Ff,nme=__rest$u(Ff,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:rme,direction:ame,empty:ome}=React__namespace.useContext(ConfigContext),ime=rme("empty",$_),[cme,ume,sme]=useStyle$e(ime),[fme]=useLocale$1("Empty"),lme=typeof $P<"u"?$P:fme==null?void 0:fme.description,hme=typeof lme=="string"?lme:"empty";let pme=null;return typeof B_=="string"?pme=React__namespace.createElement("img",{alt:hme,src:B_}):pme=B_,cme(React__namespace.createElement("div",Object.assign({className:classNames(ume,sme,ime,ome==null?void 0:ome.className,{[`${ime}-normal`]:B_===simpleEmptyImg,[`${ime}-rtl`]:ame==="rtl"},kh,x_),style:Object.assign(Object.assign({},ome==null?void 0:ome.style),tme)},nme),React__namespace.createElement("div",{className:`${ime}-image`,style:eme},pme),lme&&React__namespace.createElement("div",{className:`${ime}-description`},lme),zP&&React__namespace.createElement("div",{className:`${ime}-footer`},zP)))};Empty.PRESENTED_IMAGE_DEFAULT=defaultEmptyImg;Empty.PRESENTED_IMAGE_SIMPLE=simpleEmptyImg;process.env.NODE_ENV!=="production"&&(Empty.displayName="Empty");const DefaultRenderEmpty=Ff=>{const{componentName:kh}=Ff,{getPrefixCls:x_}=React.useContext(ConfigContext),$_=x_("empty");switch(kh){case"Table":case"List":return React.createElement(Empty,{image:Empty.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return React.createElement(Empty,{image:Empty.PRESENTED_IMAGE_SIMPLE,className:`${$_}-small`});default:return React.createElement(Empty,null)}},Variants=["outlined","borderless","filled"],useVariant=function(Ff){let kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;const x_=React.useContext(VariantContext);let $_;typeof Ff<"u"?$_=Ff:kh===!1?$_="borderless":$_=x_??"outlined";const B_=Variants.includes($_);return[$_,B_]},getBuiltInPlacements=Ff=>{const x_={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ff==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},x_),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},x_),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},x_),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},x_),{points:["br","tr"],offset:[0,-4]})}};function mergedBuiltinPlacements(Ff,kh){return Ff||getBuiltInPlacements(kh)}const genItemStyle=Ff=>{const{optionHeight:kh,optionFontSize:x_,optionLineHeight:$_,optionPadding:B_}=Ff;return{position:"relative",display:"block",minHeight:kh,padding:B_,color:Ff.colorText,fontWeight:"normal",fontSize:x_,lineHeight:$_,boxSizing:"border-box"}},genSingleStyle$1=Ff=>{const{antCls:kh,componentCls:x_}=Ff,$_=`${x_}-item`,B_=`&${kh}-slide-up-enter${kh}-slide-up-enter-active`,$P=`&${kh}-slide-up-appear${kh}-slide-up-appear-active`,zP=`&${kh}-slide-up-leave${kh}-slide-up-leave-active`,eme=`${x_}-dropdown-placement-`;return[{[`${x_}-dropdown`]:Object.assign(Object.assign({},resetComponent(Ff)),{position:"absolute",top:-9999,zIndex:Ff.zIndexPopup,boxSizing:"border-box",padding:Ff.paddingXXS,overflow:"hidden",fontSize:Ff.fontSize,fontVariant:"initial",backgroundColor:Ff.colorBgElevated,borderRadius:Ff.borderRadiusLG,outline:"none",boxShadow:Ff.boxShadowSecondary,[`
198
198
  ${B_}${eme}bottomLeft,
199
199
  ${$P}${eme}bottomLeft
200
200
  `]:{animationName:slideUpIn},[`
@@ -217,7 +217,7 @@ html body {
217
217
  `]:{paddingInlineEnd:Ff.showArrowPaddingInlineEnd},[`&${x_}-open ${x_}-selection-item`]:{color:Ff.colorTextPlaceholder},[`&:not(${x_}-customize-input)`]:{[`${x_}-selector`]:{width:"100%",height:"100%",padding:`0 ${unit$1($_)}`,[`${x_}-selection-search-input`]:{height:$P},"&:after":{lineHeight:unit$1($P)}}},[`&${x_}-customize-input`]:{[`${x_}-selector`]:{"&:after":{display:"none"},[`${x_}-selection-search`]:{position:"static",width:"100%"},[`${x_}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${unit$1($_)}`,"&:after":{display:"none"}}}}}}}function genSingleStyle(Ff){const{componentCls:kh}=Ff,x_=Ff.calc(Ff.controlPaddingHorizontalSM).sub(Ff.lineWidth).equal();return[genSizeStyle(Ff),genSizeStyle(merge(Ff,{controlHeight:Ff.controlHeightSM,borderRadius:Ff.borderRadiusSM}),"sm"),{[`${kh}-single${kh}-sm`]:{[`&:not(${kh}-customize-input)`]:{[`${kh}-selection-search`]:{insetInlineStart:x_,insetInlineEnd:x_},[`${kh}-selector`]:{padding:`0 ${unit$1(x_)}`},[`&${kh}-show-arrow ${kh}-selection-search`]:{insetInlineEnd:Ff.calc(x_).add(Ff.calc(Ff.fontSize).mul(1.5)).equal()},[`
218
218
  &${kh}-show-arrow ${kh}-selection-item,
219
219
  &${kh}-show-arrow ${kh}-selection-placeholder
220
- `]:{paddingInlineEnd:Ff.calc(Ff.fontSize).mul(1.5).equal()}}}},genSizeStyle(merge(Ff,{controlHeight:Ff.singleItemHeightLG,fontSize:Ff.fontSizeLG,borderRadius:Ff.borderRadiusLG}),"lg")]}const prepareComponentToken$b=Ff=>{const{fontSize:kh,lineHeight:x_,lineWidth:$_,controlHeight:B_,controlHeightSM:$P,controlHeightLG:zP,paddingXXS:eme,controlPaddingHorizontal:tme,zIndexPopupBase:nme,colorText:rme,fontWeightStrong:ame,controlItemBgActive:ome,controlItemBgHover:ime,colorBgContainer:cme,colorFillSecondary:ume,colorBgContainerDisabled:sme,colorTextDisabled:fme}=Ff,lme=eme*2,hme=$_*2,pme=Math.min(B_-lme,B_-hme),gme=Math.min($P-lme,$P-hme),yme=Math.min(zP-lme,zP-hme);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(eme/2),zIndexPopup:nme+50,optionSelectedColor:rme,optionSelectedFontWeight:ame,optionSelectedBg:ome,optionActiveBg:ime,optionPadding:`${(B_-kh*x_)/2}px ${tme}px`,optionFontSize:kh,optionLineHeight:x_,optionHeight:B_,selectorBg:cme,clearBg:cme,singleItemHeightLG:zP,multipleItemBg:ume,multipleItemBorderColor:"transparent",multipleItemHeight:pme,multipleItemHeightSM:gme,multipleItemHeightLG:yme,multipleSelectorBgDisabled:sme,multipleItemColorDisabled:fme,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(Ff.fontSize*1.25)}},genBaseOutlinedStyle$1=(Ff,kh)=>{const{componentCls:x_,antCls:$_,controlOutlineWidth:B_}=Ff;return{[`&:not(${x_}-customize-input) ${x_}-selector`]:{border:`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${kh.borderColor}`,background:Ff.selectorBg},[`&:not(${x_}-disabled):not(${x_}-customize-input):not(${$_}-pagination-size-changer)`]:{[`&:hover ${x_}-selector`]:{borderColor:kh.hoverBorderHover},[`${x_}-focused& ${x_}-selector`]:{borderColor:kh.activeBorderColor,boxShadow:`0 0 0 ${unit$1(B_)} ${kh.activeShadowColor}`,outline:0}}}},genOutlinedStatusStyle$1=(Ff,kh)=>({[`&${Ff.componentCls}-status-${kh.status}`]:Object.assign({},genBaseOutlinedStyle$1(Ff,kh))}),genOutlinedStyle$1=Ff=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},genBaseOutlinedStyle$1(Ff,{borderColor:Ff.colorBorder,hoverBorderHover:Ff.colorPrimaryHover,activeBorderColor:Ff.colorPrimary,activeShadowColor:Ff.controlOutline})),genOutlinedStatusStyle$1(Ff,{status:"error",borderColor:Ff.colorError,hoverBorderHover:Ff.colorErrorHover,activeBorderColor:Ff.colorError,activeShadowColor:Ff.colorErrorOutline})),genOutlinedStatusStyle$1(Ff,{status:"warning",borderColor:Ff.colorWarning,hoverBorderHover:Ff.colorWarningHover,activeBorderColor:Ff.colorWarning,activeShadowColor:Ff.colorWarningOutline})),{[`&${Ff.componentCls}-disabled`]:{[`&:not(${Ff.componentCls}-customize-input) ${Ff.componentCls}-selector`]:{background:Ff.colorBgContainerDisabled,color:Ff.colorTextDisabled}},[`&${Ff.componentCls}-multiple ${Ff.componentCls}-selection-item`]:{background:Ff.multipleItemBg,border:`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.multipleItemBorderColor}`}})}),genBaseFilledStyle$1=(Ff,kh)=>{const{componentCls:x_,antCls:$_}=Ff;return{[`&:not(${x_}-customize-input) ${x_}-selector`]:{background:kh.bg,border:`${unit$1(Ff.lineWidth)} ${Ff.lineType} transparent`,color:kh.color},[`&:not(${x_}-disabled):not(${x_}-customize-input):not(${$_}-pagination-size-changer)`]:{[`&:hover ${x_}-selector`]:{background:kh.hoverBg},[`${x_}-focused& ${x_}-selector`]:{background:Ff.selectorBg,borderColor:kh.activeBorderColor,outline:0}}}},genFilledStatusStyle$1=(Ff,kh)=>({[`&${Ff.componentCls}-status-${kh.status}`]:Object.assign({},genBaseFilledStyle$1(Ff,kh))}),genFilledStyle$1=Ff=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},genBaseFilledStyle$1(Ff,{bg:Ff.colorFillTertiary,hoverBg:Ff.colorFillSecondary,activeBorderColor:Ff.colorPrimary,color:Ff.colorText})),genFilledStatusStyle$1(Ff,{status:"error",bg:Ff.colorErrorBg,hoverBg:Ff.colorErrorBgHover,activeBorderColor:Ff.colorError,color:Ff.colorError})),genFilledStatusStyle$1(Ff,{status:"warning",bg:Ff.colorWarningBg,hoverBg:Ff.colorWarningBgHover,activeBorderColor:Ff.colorWarning,color:Ff.colorWarning})),{[`&${Ff.componentCls}-disabled`]:{[`&:not(${Ff.componentCls}-customize-input) ${Ff.componentCls}-selector`]:{borderColor:Ff.colorBorder,background:Ff.colorBgContainerDisabled,color:Ff.colorTextDisabled}},[`&${Ff.componentCls}-multiple ${Ff.componentCls}-selection-item`]:{background:Ff.colorBgContainer,border:`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.colorSplit}`}})}),genBorderlessStyle$1=Ff=>({"&-borderless":{[`${Ff.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${Ff.componentCls}-disabled`]:{[`&:not(${Ff.componentCls}-customize-input) ${Ff.componentCls}-selector`]:{color:Ff.colorTextDisabled}},[`&${Ff.componentCls}-multiple ${Ff.componentCls}-selection-item`]:{background:Ff.multipleItemBg,border:`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.multipleItemBorderColor}`}}}),genVariantsStyle$1=Ff=>({[Ff.componentCls]:Object.assign(Object.assign(Object.assign({},genOutlinedStyle$1(Ff)),genFilledStyle$1(Ff)),genBorderlessStyle$1(Ff))}),genSelectorStyle=Ff=>{const{componentCls:kh}=Ff;return{position:"relative",transition:`all ${Ff.motionDurationMid} ${Ff.motionEaseInOut}`,input:{cursor:"pointer"},[`${kh}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${kh}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},getSearchInputWithoutBorderStyle=Ff=>{const{componentCls:kh}=Ff;return{[`${kh}-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"}}}},genBaseStyle$4=Ff=>{const{antCls:kh,componentCls:x_,inputPaddingHorizontalBase:$_,iconCls:B_}=Ff;return{[x_]:Object.assign(Object.assign({},resetComponent(Ff)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${x_}-customize-input) ${x_}-selector`]:Object.assign(Object.assign({},genSelectorStyle(Ff)),getSearchInputWithoutBorderStyle(Ff)),[`${x_}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},textEllipsis),{[`> ${kh}-typography`]:{display:"inline"}}),[`${x_}-selection-placeholder`]:Object.assign(Object.assign({},textEllipsis),{flex:1,color:Ff.colorTextPlaceholder,pointerEvents:"none"}),[`${x_}-arrow`]:Object.assign(Object.assign({},resetIcon()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:$_,height:Ff.fontSizeIcon,marginTop:Ff.calc(Ff.fontSizeIcon).mul(-1).div(2).equal(),color:Ff.colorTextQuaternary,fontSize:Ff.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${Ff.motionDurationSlow} ease`,[B_]:{verticalAlign:"top",transition:`transform ${Ff.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${x_}-suffix)`]:{pointerEvents:"auto"}},[`${x_}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${x_}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:$_,zIndex:1,display:"inline-block",width:Ff.fontSizeIcon,height:Ff.fontSizeIcon,marginTop:Ff.calc(Ff.fontSizeIcon).mul(-1).div(2).equal(),color:Ff.colorTextQuaternary,fontSize:Ff.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${Ff.motionDurationMid} ease, opacity ${Ff.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ff.colorTextTertiary}},"&:hover":{[`${x_}-clear`]:{opacity:1},[`${x_}-arrow:not(:last-child)`]:{opacity:0}}}),[`${x_}-has-feedback`]:{[`${x_}-clear`]:{insetInlineEnd:Ff.calc($_).add(Ff.fontSize).add(Ff.paddingXS).equal()}}}},genSelectStyle=Ff=>{const{componentCls:kh}=Ff;return[{[kh]:{[`&${kh}-in-form-item`]:{width:"100%"}}},genBaseStyle$4(Ff),genSingleStyle(Ff),genMultipleStyle(Ff),genSingleStyle$1(Ff),{[`${kh}-rtl`]:{direction:"rtl"}},genCompactItemStyle(Ff,{borderElCls:`${kh}-selector`,focusElCls:`${kh}-focused`})]},useSelectStyle=genStyleHooks("Select",(Ff,kh)=>{let{rootPrefixCls:x_}=kh;const $_=merge(Ff,{rootPrefixCls:x_,inputPaddingHorizontalBase:Ff.calc(Ff.paddingSM).sub(1).equal(),multipleSelectItemHeight:Ff.multipleItemHeight,selectHeight:Ff.controlHeight});return[genSelectStyle($_),genVariantsStyle$1($_)]},prepareComponentToken$b,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var CheckOutlined$1={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"},CheckOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:CheckOutlined$1}))},RefIcon$w=React__namespace.forwardRef(CheckOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$w.displayName="CheckOutlined");var DownOutlined$1={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"},DownOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:DownOutlined$1}))},RefIcon$v=React__namespace.forwardRef(DownOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$v.displayName="DownOutlined");var SearchOutlined$1={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"},SearchOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:SearchOutlined$1}))},RefIcon$u=React__namespace.forwardRef(SearchOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$u.displayName="SearchOutlined");function useIcons$1(Ff){let{suffixIcon:kh,clearIcon:x_,menuItemSelectedIcon:$_,removeIcon:B_,loading:$P,multiple:zP,hasFeedback:eme,prefixCls:tme,showSuffixIcon:nme,feedbackIcon:rme,showArrow:ame,componentName:ome}=Ff;process.env.NODE_ENV!=="production"&&devUseWarning(ome).deprecated(!x_,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const ime=x_??React__namespace.createElement(RefIcon$A,null),cme=lme=>kh===null&&!eme&&!ame?null:React__namespace.createElement(React__namespace.Fragment,null,nme!==!1&&lme,eme&&rme);let ume=null;if(kh!==void 0)ume=cme(kh);else if($P)ume=cme(React__namespace.createElement(RefIcon$x,{spin:!0}));else{const lme=`${tme}-suffix`;ume=hme=>{let{open:pme,showSearch:gme}=hme;return cme(pme&&gme?React__namespace.createElement(RefIcon$u,{className:lme}):React__namespace.createElement(RefIcon$v,{className:lme}))}}let sme=null;$_!==void 0?sme=$_:zP?sme=React__namespace.createElement(RefIcon$w,null):sme=null;let fme=null;return B_!==void 0?fme=B_:fme=React__namespace.createElement(RefIcon$z,null),{clearIcon:ime,suffixIcon:ume,itemIcon:sme,removeIcon:fme}}function useShowArrow(Ff,kh){return kh!==void 0?kh:Ff!==null}var __rest$t=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",InternalSelect=(Ff,kh)=>{var x_;const{prefixCls:$_,bordered:B_,className:$P,rootClassName:zP,getPopupContainer:eme,popupClassName:tme,dropdownClassName:nme,listHeight:rme=256,placement:ame,listItemHeight:ome,size:ime,disabled:cme,notFoundContent:ume,status:sme,builtinPlacements:fme,dropdownMatchSelectWidth:lme,popupMatchSelectWidth:hme,direction:pme,style:gme,allowClear:yme,variant:mme,dropdownStyle:bme,transitionName:Sme,tagRender:_me,maxCount:Cme}=Ff,Eme=__rest$t(Ff,["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:Tme,getPrefixCls:Rme,renderEmpty:Pme,direction:$me,virtual:Dme,popupMatchSelectWidth:Mme,popupOverflow:Nme,select:Ime}=React__namespace.useContext(ConfigContext),[,wme]=useToken(),Ome=ome??(wme==null?void 0:wme.controlHeight),Ame=Rme("select",$_),Fme=Rme(),Bme=pme??$me,{compactSize:kme,compactItemClassnames:Lme}=useCompactItemContext(Ame,Bme),[Hme,Wme]=useVariant(mme,B_),zme=useCSSVarCls(Ame),[Vme,Xme,e0e]=useSelectStyle(Ame,zme),Ume=React__namespace.useMemo(()=>{const{mode:L0e}=Ff;if(L0e!=="combobox")return L0e===SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":L0e},[Ff.mode]),Jme=Ume==="multiple"||Ume==="tags",s0e=useShowArrow(Ff.suffixIcon,Ff.showArrow),d0e=(x_=hme??lme)!==null&&x_!==void 0?x_:Mme,{status:Zme,hasFeedback:Qme,isFormItemInput:a0e,feedbackIcon:t0e}=React__namespace.useContext(FormItemInputContext),o0e=getMergedStatus(Zme,sme);let g0e;ume!==void 0?g0e=ume:Ume==="combobox"?g0e=null:g0e=(Pme==null?void 0:Pme("Select"))||React__namespace.createElement(DefaultRenderEmpty,{componentName:"Select"});const{suffixIcon:u0e,itemIcon:h0e,removeIcon:E0e,clearIcon:P0e}=useIcons$1(Object.assign(Object.assign({},Eme),{multiple:Jme,hasFeedback:Qme,feedbackIcon:t0e,showSuffixIcon:s0e,prefixCls:Ame,componentName:"Select"})),y0e=yme===!0?{clearIcon:P0e}:yme,$0e=omit(Eme,["suffixIcon","itemIcon"]),C0e=classNames(tme||nme,{[`${Ame}-dropdown-${Bme}`]:Bme==="rtl"},zP,e0e,zme,Xme),z0e=useSize(L0e=>{var Y0e;return(Y0e=ime??kme)!==null&&Y0e!==void 0?Y0e:L0e}),D0e=React__namespace.useContext(DisabledContext),O0e=cme??D0e,b0e=classNames({[`${Ame}-lg`]:z0e==="large",[`${Ame}-sm`]:z0e==="small",[`${Ame}-rtl`]:Bme==="rtl",[`${Ame}-${Hme}`]:Wme,[`${Ame}-in-form-item`]:a0e},getStatusClassNames(Ame,o0e,Qme),Lme,Ime==null?void 0:Ime.className,$P,zP,e0e,zme,Xme),k0e=React__namespace.useMemo(()=>ame!==void 0?ame:Bme==="rtl"?"bottomRight":"bottomLeft",[ame,Bme]);if(process.env.NODE_ENV!=="production"){const L0e=devUseWarning("Select");L0e.deprecated(!nme,"dropdownClassName","popupClassName"),L0e.deprecated(lme===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),process.env.NODE_ENV!=="production"&&L0e(!("showArrow"in Ff),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),L0e.deprecated(!("bordered"in Ff),"bordered","variant"),process.env.NODE_ENV!=="production"&&L0e(!(typeof Cme<"u"&&!Jme),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[T0e]=useZIndex("SelectLike",bme==null?void 0:bme.zIndex);return Vme(React__namespace.createElement(TypedSelect,Object.assign({ref:kh,virtual:Dme,showSearch:Ime==null?void 0:Ime.showSearch},$0e,{style:Object.assign(Object.assign({},Ime==null?void 0:Ime.style),gme),dropdownMatchSelectWidth:d0e,transitionName:getTransitionName(Fme,"slide-up",Sme),builtinPlacements:mergedBuiltinPlacements(fme,Nme),listHeight:rme,listItemHeight:Ome,mode:Ume,prefixCls:Ame,placement:k0e,direction:Bme,suffixIcon:u0e,menuItemSelectedIcon:h0e,removeIcon:E0e,allowClear:y0e,notFoundContent:g0e,className:b0e,getPopupContainer:eme||Tme,dropdownClassName:C0e,disabled:O0e,dropdownStyle:Object.assign(Object.assign({},bme),{zIndex:T0e}),maxCount:Jme?Cme:void 0,tagRender:Jme?_me:void 0})))};process.env.NODE_ENV!=="production"&&(InternalSelect.displayName="Select");const Select$1=React__namespace.forwardRef(InternalSelect),PurePanel$3=genPurePanel(Select$1);Select$1.SECRET_COMBOBOX_MODE_DO_NOT_USE=SECRET_COMBOBOX_MODE_DO_NOT_USE;Select$1.Option=Option;Select$1.OptGroup=OptGroup;Select$1._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$3;process.env.NODE_ENV!=="production"&&(Select$1.displayName="Select");const responsiveArray=["xxl","xl","lg","md","sm","xs"],getResponsiveMap=Ff=>({xs:`(max-width: ${Ff.screenXSMax}px)`,sm:`(min-width: ${Ff.screenSM}px)`,md:`(min-width: ${Ff.screenMD}px)`,lg:`(min-width: ${Ff.screenLG}px)`,xl:`(min-width: ${Ff.screenXL}px)`,xxl:`(min-width: ${Ff.screenXXL}px)`}),validateBreakpoints=Ff=>{const kh=Ff,x_=[].concat(responsiveArray).reverse();return x_.forEach(($_,B_)=>{const $P=$_.toUpperCase(),zP=`screen${$P}Min`,eme=`screen${$P}`;if(!(kh[zP]<=kh[eme]))throw new Error(`${zP}<=${eme} fails : !(${kh[zP]}<=${kh[eme]})`);if(B_<x_.length-1){const tme=`screen${$P}Max`;if(!(kh[eme]<=kh[tme]))throw new Error(`${eme}<=${tme} fails : !(${kh[eme]}<=${kh[tme]})`);const rme=`screen${x_[B_+1].toUpperCase()}Min`;if(!(kh[tme]<=kh[rme]))throw new Error(`${tme}<=${rme} fails : !(${kh[tme]}<=${kh[rme]})`)}}),Ff};function useResponsiveObserver(){const[,Ff]=useToken(),kh=getResponsiveMap(validateBreakpoints(Ff));return React.useMemo(()=>{const x_=new Map;let $_=-1,B_={};return{matchHandlers:{},dispatch($P){return B_=$P,x_.forEach(zP=>zP(B_)),x_.size>=1},subscribe($P){return x_.size||this.register(),$_+=1,x_.set($_,$P),$P(B_),$_},unsubscribe($P){x_.delete($P),x_.size||this.unregister()},unregister(){Object.keys(kh).forEach($P=>{const zP=kh[$P],eme=this.matchHandlers[zP];eme==null||eme.mql.removeListener(eme==null?void 0:eme.listener)}),x_.clear()},register(){Object.keys(kh).forEach($P=>{const zP=kh[$P],eme=nme=>{let{matches:rme}=nme;this.dispatch(Object.assign(Object.assign({},B_),{[$P]:rme}))},tme=window.matchMedia(zP);tme.addListener(eme),this.matchHandlers[zP]={mql:tme,listener:eme},eme(tme)})},responsiveMap:kh}},[Ff])}function useForceUpdate(){const[,Ff]=React__namespace.useReducer(kh=>kh+1,0);return Ff}function Popup$1(Ff){var kh=Ff.children,x_=Ff.prefixCls,$_=Ff.id,B_=Ff.overlayInnerStyle,$P=Ff.className,zP=Ff.style;return React__namespace.createElement("div",{className:classNames("".concat(x_,"-content"),$P),style:zP},React__namespace.createElement("div",{className:"".concat(x_,"-inner"),id:$_,role:"tooltip",style:B_},typeof kh=="function"?kh():kh))}var autoAdjustOverflowTopBottom={shiftX:64,adjustY:1},autoAdjustOverflowLeftRight={adjustX:1,shiftY:!0},targetOffset=[0,0],placements={left:{points:["cr","cl"],overflow:autoAdjustOverflowLeftRight,offset:[-4,0],targetOffset},right:{points:["cl","cr"],overflow:autoAdjustOverflowLeftRight,offset:[4,0],targetOffset},top:{points:["bc","tc"],overflow:autoAdjustOverflowTopBottom,offset:[0,-4],targetOffset},bottom:{points:["tc","bc"],overflow:autoAdjustOverflowTopBottom,offset:[0,4],targetOffset},topLeft:{points:["bl","tl"],overflow:autoAdjustOverflowTopBottom,offset:[0,-4],targetOffset},leftTop:{points:["tr","tl"],overflow:autoAdjustOverflowLeftRight,offset:[-4,0],targetOffset},topRight:{points:["br","tr"],overflow:autoAdjustOverflowTopBottom,offset:[0,-4],targetOffset},rightTop:{points:["tl","tr"],overflow:autoAdjustOverflowLeftRight,offset:[4,0],targetOffset},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflowTopBottom,offset:[0,4],targetOffset},rightBottom:{points:["bl","br"],overflow:autoAdjustOverflowLeftRight,offset:[4,0],targetOffset},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflowTopBottom,offset:[0,4],targetOffset},leftBottom:{points:["br","bl"],overflow:autoAdjustOverflowLeftRight,offset:[-4,0],targetOffset}},_excluded$o=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Tooltip$1=function(kh,x_){var $_=kh.overlayClassName,B_=kh.trigger,$P=B_===void 0?["hover"]:B_,zP=kh.mouseEnterDelay,eme=zP===void 0?0:zP,tme=kh.mouseLeaveDelay,nme=tme===void 0?.1:tme,rme=kh.overlayStyle,ame=kh.prefixCls,ome=ame===void 0?"rc-tooltip":ame,ime=kh.children,cme=kh.onVisibleChange,ume=kh.afterVisibleChange,sme=kh.transitionName,fme=kh.animation,lme=kh.motion,hme=kh.placement,pme=hme===void 0?"right":hme,gme=kh.align,yme=gme===void 0?{}:gme,mme=kh.destroyTooltipOnHide,bme=mme===void 0?!1:mme,Sme=kh.defaultVisible,_me=kh.getTooltipContainer,Cme=kh.overlayInnerStyle;kh.arrowContent;var Eme=kh.overlay,Tme=kh.id,Rme=kh.showArrow,Pme=Rme===void 0?!0:Rme,$me=_objectWithoutProperties(kh,_excluded$o),Dme=React.useRef(null);React.useImperativeHandle(x_,function(){return Dme.current});var Mme=_objectSpread2({},$me);"visible"in kh&&(Mme.popupVisible=kh.visible);var Nme=function(){return React__namespace.createElement(Popup$1,{key:"content",prefixCls:ome,id:Tme,overlayInnerStyle:Cme},Eme)};return React__namespace.createElement(Trigger,_extends({popupClassName:$_,prefixCls:ome,popup:Nme,action:$P,builtinPlacements:placements,popupPlacement:pme,ref:Dme,popupAlign:yme,getPopupContainer:_me,onPopupVisibleChange:cme,afterPopupVisibleChange:ume,popupTransitionName:sme,popupAnimation:fme,popupMotion:lme,defaultPopupVisible:Sme,autoDestroy:bme,mouseLeaveDelay:nme,popupStyle:rme,mouseEnterDelay:eme,arrow:Pme},Mme),ime)};const Tooltip$2=React.forwardRef(Tooltip$1);function getArrowToken(Ff){const{sizePopupArrow:kh,borderRadiusXS:x_,borderRadiusOuter:$_}=Ff,B_=kh/2,$P=0,zP=B_,eme=$_*1/Math.sqrt(2),tme=B_-$_*(1-1/Math.sqrt(2)),nme=B_-x_*(1/Math.sqrt(2)),rme=$_*(Math.sqrt(2)-1)+x_*(1/Math.sqrt(2)),ame=2*B_-nme,ome=rme,ime=2*B_-eme,cme=tme,ume=2*B_-$P,sme=zP,fme=B_*Math.sqrt(2)+$_*(Math.sqrt(2)-2),lme=$_*(Math.sqrt(2)-1),hme=`polygon(${lme}px 100%, 50% ${lme}px, ${2*B_-lme}px 100%, ${lme}px 100%)`,pme=`path('M ${$P} ${zP} A ${$_} ${$_} 0 0 0 ${eme} ${tme} L ${nme} ${rme} A ${x_} ${x_} 0 0 1 ${ame} ${ome} L ${ime} ${cme} A ${$_} ${$_} 0 0 0 ${ume} ${sme} Z')`;return{arrowShadowWidth:fme,arrowPath:pme,arrowPolygon:hme}}const genRoundedArrow=(Ff,kh,x_)=>{const{sizePopupArrow:$_,arrowPolygon:B_,arrowPath:$P,arrowShadowWidth:zP,borderRadiusXS:eme,calc:tme}=Ff;return{pointerEvents:"none",width:$_,height:$_,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:$_,height:tme($_).div(2).equal(),background:kh,clipPath:{_multi_value_:!0,value:[B_,$P]},content:'""'},"&::after":{content:'""',position:"absolute",width:zP,height:zP,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${unit$1(eme)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:x_,zIndex:0,background:"transparent"}}},MAX_VERTICAL_CONTENT_RADIUS=8;function getArrowOffsetToken(Ff){const{contentRadius:kh,limitVerticalRadius:x_}=Ff,$_=kh>12?kh+2:12;return{arrowOffsetHorizontal:$_,arrowOffsetVertical:x_?MAX_VERTICAL_CONTENT_RADIUS:$_}}function isInject(Ff,kh){return Ff?kh:{}}function getArrowStyle(Ff,kh,x_){const{componentCls:$_,boxShadowPopoverArrow:B_,arrowOffsetVertical:$P,arrowOffsetHorizontal:zP}=Ff,{arrowDistance:eme=0,arrowPlacement:tme={left:!0,right:!0,top:!0,bottom:!0}}={};return{[$_]:Object.assign(Object.assign(Object.assign(Object.assign({[`${$_}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},genRoundedArrow(Ff,kh,B_)),{"&:before":{background:kh}})]},isInject(!!tme.top,{[[`&-placement-top > ${$_}-arrow`,`&-placement-topLeft > ${$_}-arrow`,`&-placement-topRight > ${$_}-arrow`].join(",")]:{bottom:eme,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${$_}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${$_}-arrow`]:{left:{_skip_check_:!0,value:zP}},[`&-placement-topRight > ${$_}-arrow`]:{right:{_skip_check_:!0,value:zP}}})),isInject(!!tme.bottom,{[[`&-placement-bottom > ${$_}-arrow`,`&-placement-bottomLeft > ${$_}-arrow`,`&-placement-bottomRight > ${$_}-arrow`].join(",")]:{top:eme,transform:"translateY(-100%)"},[`&-placement-bottom > ${$_}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${$_}-arrow`]:{left:{_skip_check_:!0,value:zP}},[`&-placement-bottomRight > ${$_}-arrow`]:{right:{_skip_check_:!0,value:zP}}})),isInject(!!tme.left,{[[`&-placement-left > ${$_}-arrow`,`&-placement-leftTop > ${$_}-arrow`,`&-placement-leftBottom > ${$_}-arrow`].join(",")]:{right:{_skip_check_:!0,value:eme},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${$_}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${$_}-arrow`]:{top:$P},[`&-placement-leftBottom > ${$_}-arrow`]:{bottom:$P}})),isInject(!!tme.right,{[[`&-placement-right > ${$_}-arrow`,`&-placement-rightTop > ${$_}-arrow`,`&-placement-rightBottom > ${$_}-arrow`].join(",")]:{left:{_skip_check_:!0,value:eme},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${$_}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${$_}-arrow`]:{top:$P},[`&-placement-rightBottom > ${$_}-arrow`]:{bottom:$P}}))}}function getOverflowOptions(Ff,kh,x_,$_){if($_===!1)return{adjustX:!1,adjustY:!1};const B_=$_&&typeof $_=="object"?$_:{},$P={};switch(Ff){case"top":case"bottom":$P.shiftX=kh.arrowOffsetHorizontal*2+x_,$P.shiftY=!0,$P.adjustY=!0;break;case"left":case"right":$P.shiftY=kh.arrowOffsetVertical*2+x_,$P.shiftX=!0,$P.adjustX=!0;break}const zP=Object.assign(Object.assign({},$P),B_);return zP.shiftX||(zP.adjustX=!0),zP.shiftY||(zP.adjustY=!0),zP}const PlacementAlignMap={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"]}},ArrowCenterPlacementAlignMap={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"]}},DisableAutoArrowList=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function getPlacements(Ff){const{arrowWidth:kh,autoAdjustOverflow:x_,arrowPointAtCenter:$_,offset:B_,borderRadius:$P,visibleFirst:zP}=Ff,eme=kh/2,tme={};return Object.keys(PlacementAlignMap).forEach(nme=>{const rme=$_&&ArrowCenterPlacementAlignMap[nme]||PlacementAlignMap[nme],ame=Object.assign(Object.assign({},rme),{offset:[0,0],dynamicInset:!0});switch(tme[nme]=ame,DisableAutoArrowList.has(nme)&&(ame.autoArrow=!1),nme){case"top":case"topLeft":case"topRight":ame.offset[1]=-eme-B_;break;case"bottom":case"bottomLeft":case"bottomRight":ame.offset[1]=eme+B_;break;case"left":case"leftTop":case"leftBottom":ame.offset[0]=-eme-B_;break;case"right":case"rightTop":case"rightBottom":ame.offset[0]=eme+B_;break}const ome=getArrowOffsetToken({contentRadius:$P,limitVerticalRadius:!0});if($_)switch(nme){case"topLeft":case"bottomLeft":ame.offset[0]=-ome.arrowOffsetHorizontal-eme;break;case"topRight":case"bottomRight":ame.offset[0]=ome.arrowOffsetHorizontal+eme;break;case"leftTop":case"rightTop":ame.offset[1]=-ome.arrowOffsetHorizontal-eme;break;case"leftBottom":case"rightBottom":ame.offset[1]=ome.arrowOffsetHorizontal+eme;break}ame.overflow=getOverflowOptions(nme,ome,kh,x_),zP&&(ame.htmlRegion="visibleFirst")}),tme}const genTooltipStyle=Ff=>{const{componentCls:kh,tooltipMaxWidth:x_,tooltipColor:$_,tooltipBg:B_,tooltipBorderRadius:$P,zIndexPopup:zP,controlHeight:eme,boxShadowSecondary:tme,paddingSM:nme,paddingXS:rme}=Ff;return[{[kh]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(Ff)),{position:"absolute",zIndex:zP,display:"block",width:"max-content",maxWidth:x_,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":B_,[`${kh}-inner`]:{minWidth:"1em",minHeight:eme,padding:`${unit$1(Ff.calc(nme).div(2).equal())} ${unit$1(rme)}`,color:$_,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:B_,borderRadius:$P,boxShadow:tme,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${kh}-inner`]:{borderRadius:Ff.min($P,MAX_VERTICAL_CONTENT_RADIUS)}},[`${kh}-content`]:{position:"relative"}}),genPresetColor(Ff,(ame,ome)=>{let{darkColor:ime}=ome;return{[`&${kh}-${ame}`]:{[`${kh}-inner`]:{backgroundColor:ime},[`${kh}-arrow`]:{"--antd-arrow-background-color":ime}}}})),{"&-rtl":{direction:"rtl"}})},getArrowStyle(Ff,"var(--antd-arrow-background-color)"),{[`${kh}-pure`]:{position:"relative",maxWidth:"none",margin:Ff.sizePopupArrow}}]},prepareComponentToken$a=Ff=>Object.assign(Object.assign({zIndexPopup:Ff.zIndexPopupBase+70},getArrowOffsetToken({contentRadius:Ff.borderRadius,limitVerticalRadius:!0})),getArrowToken(merge(Ff,{borderRadiusOuter:Math.min(Ff.borderRadiusOuter,4)}))),useStyle$d=function(Ff){let kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return genStyleHooks("Tooltip",$_=>{const{borderRadius:B_,colorTextLightSolid:$P,colorBgSpotlight:zP}=$_,eme=merge($_,{tooltipMaxWidth:250,tooltipColor:$P,tooltipBorderRadius:B_,tooltipBg:zP});return[genTooltipStyle(eme),initZoomMotion($_,"zoom-big-fast")]},prepareComponentToken$a,{resetStyle:!1,injectStyle:kh})(Ff)},inverseColors=PresetColors.map(Ff=>`${Ff}-inverse`);function isPresetColor(Ff){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(_toConsumableArray(inverseColors),_toConsumableArray(PresetColors)).includes(Ff):PresetColors.includes(Ff)}function parseColor(Ff,kh){const x_=isPresetColor(kh),$_=classNames({[`${Ff}-${kh}`]:kh&&x_}),B_={},$P={};return kh&&!x_&&(B_.background=kh,$P["--antd-arrow-background-color"]=kh),{className:$_,overlayStyle:B_,arrowStyle:$P}}const PurePanel$2=Ff=>{const{prefixCls:kh,className:x_,placement:$_="top",title:B_,color:$P,overlayInnerStyle:zP}=Ff,{getPrefixCls:eme}=React__namespace.useContext(ConfigContext),tme=eme("tooltip",kh),[nme,rme,ame]=useStyle$d(tme),ome=parseColor(tme,$P),ime=ome.arrowStyle,cme=Object.assign(Object.assign({},zP),ome.overlayStyle),ume=classNames(rme,ame,tme,`${tme}-pure`,`${tme}-placement-${$_}`,x_,ome.className);return nme(React__namespace.createElement("div",{className:ume,style:ime},React__namespace.createElement("div",{className:`${tme}-arrow`}),React__namespace.createElement(Popup$1,Object.assign({},Ff,{className:rme,prefixCls:tme,overlayInnerStyle:cme}),B_)))};var __rest$s=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const InternalTooltip=React__namespace.forwardRef((Ff,kh)=>{var x_,$_;const{prefixCls:B_,openClassName:$P,getTooltipContainer:zP,overlayClassName:eme,color:tme,overlayInnerStyle:nme,children:rme,afterOpenChange:ame,afterVisibleChange:ome,destroyTooltipOnHide:ime,arrow:cme=!0,title:ume,overlay:sme,builtinPlacements:fme,arrowPointAtCenter:lme=!1,autoAdjustOverflow:hme=!0}=Ff,pme=!!cme,[,gme]=useToken(),{getPopupContainer:yme,getPrefixCls:mme,direction:bme}=React__namespace.useContext(ConfigContext),Sme=devUseWarning("Tooltip"),_me=React__namespace.useRef(null),Cme=()=>{var g0e;(g0e=_me.current)===null||g0e===void 0||g0e.forceAlign()};React__namespace.useImperativeHandle(kh,()=>{var g0e;return{forceAlign:Cme,forcePopupAlign:()=>{Sme.deprecated(!1,"forcePopupAlign","forceAlign"),Cme()},nativeElement:(g0e=_me.current)===null||g0e===void 0?void 0:g0e.nativeElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(g0e=>{let[u0e,h0e]=g0e;Sme.deprecated(!(u0e in Ff),u0e,h0e)}),process.env.NODE_ENV!=="production"&&Sme(!ime||typeof ime=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&Sme(!cme||typeof cme=="boolean"||!("arrowPointAtCenter"in cme),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[Eme,Tme]=useMergedState(!1,{value:(x_=Ff.open)!==null&&x_!==void 0?x_:Ff.visible,defaultValue:($_=Ff.defaultOpen)!==null&&$_!==void 0?$_:Ff.defaultVisible}),Rme=!ume&&!sme&&ume!==0,Pme=g0e=>{var u0e,h0e;Tme(Rme?!1:g0e),Rme||((u0e=Ff.onOpenChange)===null||u0e===void 0||u0e.call(Ff,g0e),(h0e=Ff.onVisibleChange)===null||h0e===void 0||h0e.call(Ff,g0e))},$me=React__namespace.useMemo(()=>{var g0e,u0e;let h0e=lme;return typeof cme=="object"&&(h0e=(u0e=(g0e=cme.pointAtCenter)!==null&&g0e!==void 0?g0e:cme.arrowPointAtCenter)!==null&&u0e!==void 0?u0e:lme),fme||getPlacements({arrowPointAtCenter:h0e,autoAdjustOverflow:hme,arrowWidth:pme?gme.sizePopupArrow:0,borderRadius:gme.borderRadius,offset:gme.marginXXS,visibleFirst:!0})},[lme,cme,fme,gme]),Dme=React__namespace.useMemo(()=>ume===0?ume:sme||ume||"",[sme,ume]),Mme=React__namespace.createElement(NoCompactStyle,null,typeof Dme=="function"?Dme():Dme),{getPopupContainer:Nme,placement:Ime="top",mouseEnterDelay:wme=.1,mouseLeaveDelay:Ome=.1,overlayStyle:Ame,rootClassName:Fme}=Ff,Bme=__rest$s(Ff,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),kme=mme("tooltip",B_),Lme=mme(),Hme=Ff["data-popover-inject"];let Wme=Eme;!("open"in Ff)&&!("visible"in Ff)&&Rme&&(Wme=!1);const zme=React__namespace.isValidElement(rme)&&!isFragment(rme)?rme:React__namespace.createElement("span",null,rme),Vme=zme.props,Xme=!Vme.className||typeof Vme.className=="string"?classNames(Vme.className,$P||`${kme}-open`):Vme.className,[e0e,Ume,Jme]=useStyle$d(kme,!Hme),s0e=parseColor(kme,tme),d0e=s0e.arrowStyle,Zme=Object.assign(Object.assign({},nme),s0e.overlayStyle),Qme=classNames(eme,{[`${kme}-rtl`]:bme==="rtl"},s0e.className,Fme,Ume,Jme),[a0e,t0e]=useZIndex("Tooltip",Bme.zIndex),o0e=React__namespace.createElement(Tooltip$2,Object.assign({},Bme,{zIndex:a0e,showArrow:pme,placement:Ime,mouseEnterDelay:wme,mouseLeaveDelay:Ome,prefixCls:kme,overlayClassName:Qme,overlayStyle:Object.assign(Object.assign({},d0e),Ame),getTooltipContainer:Nme||zP||yme,ref:_me,builtinPlacements:$me,overlay:Mme,visible:Wme,onVisibleChange:Pme,afterVisibleChange:ame??ome,overlayInnerStyle:Zme,arrowContent:React__namespace.createElement("span",{className:`${kme}-arrow-content`}),motion:{motionName:getTransitionName(Lme,"zoom-big-fast",Ff.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!ime}),Wme?cloneElement(zme,{className:Xme}):zme);return e0e(React__namespace.createElement(zIndexContext.Provider,{value:t0e},o0e))}),Tooltip=InternalTooltip;process.env.NODE_ENV!=="production"&&(Tooltip.displayName="Tooltip");Tooltip._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$2;var RightOutlined$1={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"},RightOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:RightOutlined$1}))},RefIcon$t=React__namespace.forwardRef(RightOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$t.displayName="RightOutlined");var LeftOutlined$1={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"},LeftOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:LeftOutlined$1}))},RefIcon$s=React__namespace.forwardRef(LeftOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$s.displayName="LeftOutlined");var dayjs_min={exports:{}},hasRequiredDayjs_min;function requireDayjs_min(){return hasRequiredDayjs_min||(hasRequiredDayjs_min=1,function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){var x_=1e3,$_=6e4,B_=36e5,$P="millisecond",zP="second",eme="minute",tme="hour",nme="day",rme="week",ame="month",ome="quarter",ime="year",cme="date",ume="Invalid Date",sme=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,fme=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,lme={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Rme){var Pme=["th","st","nd","rd"],$me=Rme%100;return"["+Rme+(Pme[($me-20)%10]||Pme[$me]||Pme[0])+"]"}},hme=function(Rme,Pme,$me){var Dme=String(Rme);return!Dme||Dme.length>=Pme?Rme:""+Array(Pme+1-Dme.length).join($me)+Rme},pme={s:hme,z:function(Rme){var Pme=-Rme.utcOffset(),$me=Math.abs(Pme),Dme=Math.floor($me/60),Mme=$me%60;return(Pme<=0?"+":"-")+hme(Dme,2,"0")+":"+hme(Mme,2,"0")},m:function Rme(Pme,$me){if(Pme.date()<$me.date())return-Rme($me,Pme);var Dme=12*($me.year()-Pme.year())+($me.month()-Pme.month()),Mme=Pme.clone().add(Dme,ame),Nme=$me-Mme<0,Ime=Pme.clone().add(Dme+(Nme?-1:1),ame);return+(-(Dme+($me-Mme)/(Nme?Mme-Ime:Ime-Mme))||0)},a:function(Rme){return Rme<0?Math.ceil(Rme)||0:Math.floor(Rme)},p:function(Rme){return{M:ame,y:ime,w:rme,d:nme,D:cme,h:tme,m:eme,s:zP,ms:$P,Q:ome}[Rme]||String(Rme||"").toLowerCase().replace(/s$/,"")},u:function(Rme){return Rme===void 0}},gme="en",yme={};yme[gme]=lme;var mme="$isDayjsObject",bme=function(Rme){return Rme instanceof Eme||!(!Rme||!Rme[mme])},Sme=function Rme(Pme,$me,Dme){var Mme;if(!Pme)return gme;if(typeof Pme=="string"){var Nme=Pme.toLowerCase();yme[Nme]&&(Mme=Nme),$me&&(yme[Nme]=$me,Mme=Nme);var Ime=Pme.split("-");if(!Mme&&Ime.length>1)return Rme(Ime[0])}else{var wme=Pme.name;yme[wme]=Pme,Mme=wme}return!Dme&&Mme&&(gme=Mme),Mme||!Dme&&gme},_me=function(Rme,Pme){if(bme(Rme))return Rme.clone();var $me=typeof Pme=="object"?Pme:{};return $me.date=Rme,$me.args=arguments,new Eme($me)},Cme=pme;Cme.l=Sme,Cme.i=bme,Cme.w=function(Rme,Pme){return _me(Rme,{locale:Pme.$L,utc:Pme.$u,x:Pme.$x,$offset:Pme.$offset})};var Eme=function(){function Rme($me){this.$L=Sme($me.locale,null,!0),this.parse($me),this.$x=this.$x||$me.x||{},this[mme]=!0}var Pme=Rme.prototype;return Pme.parse=function($me){this.$d=function(Dme){var Mme=Dme.date,Nme=Dme.utc;if(Mme===null)return new Date(NaN);if(Cme.u(Mme))return new Date;if(Mme instanceof Date)return new Date(Mme);if(typeof Mme=="string"&&!/Z$/i.test(Mme)){var Ime=Mme.match(sme);if(Ime){var wme=Ime[2]-1||0,Ome=(Ime[7]||"0").substring(0,3);return Nme?new Date(Date.UTC(Ime[1],wme,Ime[3]||1,Ime[4]||0,Ime[5]||0,Ime[6]||0,Ome)):new Date(Ime[1],wme,Ime[3]||1,Ime[4]||0,Ime[5]||0,Ime[6]||0,Ome)}}return new Date(Mme)}($me),this.init()},Pme.init=function(){var $me=this.$d;this.$y=$me.getFullYear(),this.$M=$me.getMonth(),this.$D=$me.getDate(),this.$W=$me.getDay(),this.$H=$me.getHours(),this.$m=$me.getMinutes(),this.$s=$me.getSeconds(),this.$ms=$me.getMilliseconds()},Pme.$utils=function(){return Cme},Pme.isValid=function(){return this.$d.toString()!==ume},Pme.isSame=function($me,Dme){var Mme=_me($me);return this.startOf(Dme)<=Mme&&Mme<=this.endOf(Dme)},Pme.isAfter=function($me,Dme){return _me($me)<this.startOf(Dme)},Pme.isBefore=function($me,Dme){return this.endOf(Dme)<_me($me)},Pme.$g=function($me,Dme,Mme){return Cme.u($me)?this[Dme]:this.set(Mme,$me)},Pme.unix=function(){return Math.floor(this.valueOf()/1e3)},Pme.valueOf=function(){return this.$d.getTime()},Pme.startOf=function($me,Dme){var Mme=this,Nme=!!Cme.u(Dme)||Dme,Ime=Cme.p($me),wme=function(Wme,zme){var Vme=Cme.w(Mme.$u?Date.UTC(Mme.$y,zme,Wme):new Date(Mme.$y,zme,Wme),Mme);return Nme?Vme:Vme.endOf(nme)},Ome=function(Wme,zme){return Cme.w(Mme.toDate()[Wme].apply(Mme.toDate("s"),(Nme?[0,0,0,0]:[23,59,59,999]).slice(zme)),Mme)},Ame=this.$W,Fme=this.$M,Bme=this.$D,kme="set"+(this.$u?"UTC":"");switch(Ime){case ime:return Nme?wme(1,0):wme(31,11);case ame:return Nme?wme(1,Fme):wme(0,Fme+1);case rme:var Lme=this.$locale().weekStart||0,Hme=(Ame<Lme?Ame+7:Ame)-Lme;return wme(Nme?Bme-Hme:Bme+(6-Hme),Fme);case nme:case cme:return Ome(kme+"Hours",0);case tme:return Ome(kme+"Minutes",1);case eme:return Ome(kme+"Seconds",2);case zP:return Ome(kme+"Milliseconds",3);default:return this.clone()}},Pme.endOf=function($me){return this.startOf($me,!1)},Pme.$set=function($me,Dme){var Mme,Nme=Cme.p($me),Ime="set"+(this.$u?"UTC":""),wme=(Mme={},Mme[nme]=Ime+"Date",Mme[cme]=Ime+"Date",Mme[ame]=Ime+"Month",Mme[ime]=Ime+"FullYear",Mme[tme]=Ime+"Hours",Mme[eme]=Ime+"Minutes",Mme[zP]=Ime+"Seconds",Mme[$P]=Ime+"Milliseconds",Mme)[Nme],Ome=Nme===nme?this.$D+(Dme-this.$W):Dme;if(Nme===ame||Nme===ime){var Ame=this.clone().set(cme,1);Ame.$d[wme](Ome),Ame.init(),this.$d=Ame.set(cme,Math.min(this.$D,Ame.daysInMonth())).$d}else wme&&this.$d[wme](Ome);return this.init(),this},Pme.set=function($me,Dme){return this.clone().$set($me,Dme)},Pme.get=function($me){return this[Cme.p($me)]()},Pme.add=function($me,Dme){var Mme,Nme=this;$me=Number($me);var Ime=Cme.p(Dme),wme=function(Fme){var Bme=_me(Nme);return Cme.w(Bme.date(Bme.date()+Math.round(Fme*$me)),Nme)};if(Ime===ame)return this.set(ame,this.$M+$me);if(Ime===ime)return this.set(ime,this.$y+$me);if(Ime===nme)return wme(1);if(Ime===rme)return wme(7);var Ome=(Mme={},Mme[eme]=$_,Mme[tme]=B_,Mme[zP]=x_,Mme)[Ime]||1,Ame=this.$d.getTime()+$me*Ome;return Cme.w(Ame,this)},Pme.subtract=function($me,Dme){return this.add(-1*$me,Dme)},Pme.format=function($me){var Dme=this,Mme=this.$locale();if(!this.isValid())return Mme.invalidDate||ume;var Nme=$me||"YYYY-MM-DDTHH:mm:ssZ",Ime=Cme.z(this),wme=this.$H,Ome=this.$m,Ame=this.$M,Fme=Mme.weekdays,Bme=Mme.months,kme=Mme.meridiem,Lme=function(zme,Vme,Xme,e0e){return zme&&(zme[Vme]||zme(Dme,Nme))||Xme[Vme].slice(0,e0e)},Hme=function(zme){return Cme.s(wme%12||12,zme,"0")},Wme=kme||function(zme,Vme,Xme){var e0e=zme<12?"AM":"PM";return Xme?e0e.toLowerCase():e0e};return Nme.replace(fme,function(zme,Vme){return Vme||function(Xme){switch(Xme){case"YY":return String(Dme.$y).slice(-2);case"YYYY":return Cme.s(Dme.$y,4,"0");case"M":return Ame+1;case"MM":return Cme.s(Ame+1,2,"0");case"MMM":return Lme(Mme.monthsShort,Ame,Bme,3);case"MMMM":return Lme(Bme,Ame);case"D":return Dme.$D;case"DD":return Cme.s(Dme.$D,2,"0");case"d":return String(Dme.$W);case"dd":return Lme(Mme.weekdaysMin,Dme.$W,Fme,2);case"ddd":return Lme(Mme.weekdaysShort,Dme.$W,Fme,3);case"dddd":return Fme[Dme.$W];case"H":return String(wme);case"HH":return Cme.s(wme,2,"0");case"h":return Hme(1);case"hh":return Hme(2);case"a":return Wme(wme,Ome,!0);case"A":return Wme(wme,Ome,!1);case"m":return String(Ome);case"mm":return Cme.s(Ome,2,"0");case"s":return String(Dme.$s);case"ss":return Cme.s(Dme.$s,2,"0");case"SSS":return Cme.s(Dme.$ms,3,"0");case"Z":return Ime}return null}(zme)||Ime.replace(":","")})},Pme.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Pme.diff=function($me,Dme,Mme){var Nme,Ime=this,wme=Cme.p(Dme),Ome=_me($me),Ame=(Ome.utcOffset()-this.utcOffset())*$_,Fme=this-Ome,Bme=function(){return Cme.m(Ime,Ome)};switch(wme){case ime:Nme=Bme()/12;break;case ame:Nme=Bme();break;case ome:Nme=Bme()/3;break;case rme:Nme=(Fme-Ame)/6048e5;break;case nme:Nme=(Fme-Ame)/864e5;break;case tme:Nme=Fme/B_;break;case eme:Nme=Fme/$_;break;case zP:Nme=Fme/x_;break;default:Nme=Fme}return Mme?Nme:Cme.a(Nme)},Pme.daysInMonth=function(){return this.endOf(ame).$D},Pme.$locale=function(){return yme[this.$L]},Pme.locale=function($me,Dme){if(!$me)return this.$L;var Mme=this.clone(),Nme=Sme($me,Dme,!0);return Nme&&(Mme.$L=Nme),Mme},Pme.clone=function(){return Cme.w(this.$d,this)},Pme.toDate=function(){return new Date(this.valueOf())},Pme.toJSON=function(){return this.isValid()?this.toISOString():null},Pme.toISOString=function(){return this.$d.toISOString()},Pme.toString=function(){return this.$d.toUTCString()},Rme}(),Tme=Eme.prototype;return _me.prototype=Tme,[["$ms",$P],["$s",zP],["$m",eme],["$H",tme],["$W",nme],["$M",ame],["$y",ime],["$D",cme]].forEach(function(Rme){Tme[Rme[1]]=function(Pme){return this.$g(Pme,Rme[0],Rme[1])}}),_me.extend=function(Rme,Pme){return Rme.$i||(Rme(Pme,Eme,_me),Rme.$i=!0),_me},_me.locale=Sme,_me.isDayjs=bme,_me.unix=function(Rme){return _me(1e3*Rme)},_me.en=yme[gme],_me.Ls=yme,_me.p={},_me})}(dayjs_min)),dayjs_min.exports}var dayjs_minExports=requireDayjs_min();const dayjs=getDefaultExportFromCjs(dayjs_minExports);var weekday$1={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){return function(x_,$_){$_.prototype.weekday=function(B_){var $P=this.$locale().weekStart||0,zP=this.$W,eme=(zP<$P?zP+7:zP)-$P;return this.$utils().u(B_)?eme:this.subtract(eme,"day").add(B_,"day")}}})})(weekday$1);var weekdayExports=weekday$1.exports;const weekday=getDefaultExportFromCjs(weekdayExports);var localeData$1={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){return function(x_,$_,B_){var $P=$_.prototype,zP=function(ame){return ame&&(ame.indexOf?ame:ame.s)},eme=function(ame,ome,ime,cme,ume){var sme=ame.name?ame:ame.$locale(),fme=zP(sme[ome]),lme=zP(sme[ime]),hme=fme||lme.map(function(gme){return gme.slice(0,cme)});if(!ume)return hme;var pme=sme.weekStart;return hme.map(function(gme,yme){return hme[(yme+(pme||0))%7]})},tme=function(){return B_.Ls[B_.locale()]},nme=function(ame,ome){return ame.formats[ome]||function(ime){return ime.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(cme,ume,sme){return ume||sme.slice(1)})}(ame.formats[ome.toUpperCase()])},rme=function(){var ame=this;return{months:function(ome){return ome?ome.format("MMMM"):eme(ame,"months")},monthsShort:function(ome){return ome?ome.format("MMM"):eme(ame,"monthsShort","months",3)},firstDayOfWeek:function(){return ame.$locale().weekStart||0},weekdays:function(ome){return ome?ome.format("dddd"):eme(ame,"weekdays")},weekdaysMin:function(ome){return ome?ome.format("dd"):eme(ame,"weekdaysMin","weekdays",2)},weekdaysShort:function(ome){return ome?ome.format("ddd"):eme(ame,"weekdaysShort","weekdays",3)},longDateFormat:function(ome){return nme(ame.$locale(),ome)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};$P.localeData=function(){return rme.bind(this)()},B_.localeData=function(){var ame=tme();return{firstDayOfWeek:function(){return ame.weekStart||0},weekdays:function(){return B_.weekdays()},weekdaysShort:function(){return B_.weekdaysShort()},weekdaysMin:function(){return B_.weekdaysMin()},months:function(){return B_.months()},monthsShort:function(){return B_.monthsShort()},longDateFormat:function(ome){return nme(ame,ome)},meridiem:ame.meridiem,ordinal:ame.ordinal}},B_.months=function(){return eme(tme(),"months")},B_.monthsShort=function(){return eme(tme(),"monthsShort","months",3)},B_.weekdays=function(ame){return eme(tme(),"weekdays",null,null,ame)},B_.weekdaysShort=function(ame){return eme(tme(),"weekdaysShort","weekdays",3,ame)},B_.weekdaysMin=function(ame){return eme(tme(),"weekdaysMin","weekdays",2,ame)}}})})(localeData$1);var localeDataExports=localeData$1.exports;const localeData=getDefaultExportFromCjs(localeDataExports);var weekOfYear$1={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){var x_="week",$_="year";return function(B_,$P,zP){var eme=$P.prototype;eme.week=function(tme){if(tme===void 0&&(tme=null),tme!==null)return this.add(7*(tme-this.week()),"day");var nme=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var rme=zP(this).startOf($_).add(1,$_).date(nme),ame=zP(this).endOf(x_);if(rme.isBefore(ame))return 1}var ome=zP(this).startOf($_).date(nme).startOf(x_).subtract(1,"millisecond"),ime=this.diff(ome,x_,!0);return ime<0?zP(this).startOf("week").week():Math.ceil(ime)},eme.weeks=function(tme){return tme===void 0&&(tme=null),this.week(tme)}}})})(weekOfYear$1);var weekOfYearExports=weekOfYear$1.exports;const weekOfYear=getDefaultExportFromCjs(weekOfYearExports);var weekYear$1={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){return function(x_,$_){$_.prototype.weekYear=function(){var B_=this.month(),$P=this.week(),zP=this.year();return $P===1&&B_===11?zP+1:B_===0&&$P>=52?zP-1:zP}}})})(weekYear$1);var weekYearExports=weekYear$1.exports;const weekYear=getDefaultExportFromCjs(weekYearExports);var advancedFormat$1={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){return function(x_,$_){var B_=$_.prototype,$P=B_.format;B_.format=function(zP){var eme=this,tme=this.$locale();if(!this.isValid())return $P.bind(this)(zP);var nme=this.$utils(),rme=(zP||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(ame){switch(ame){case"Q":return Math.ceil((eme.$M+1)/3);case"Do":return tme.ordinal(eme.$D);case"gggg":return eme.weekYear();case"GGGG":return eme.isoWeekYear();case"wo":return tme.ordinal(eme.week(),"W");case"w":case"ww":return nme.s(eme.week(),ame==="w"?1:2,"0");case"W":case"WW":return nme.s(eme.isoWeek(),ame==="W"?1:2,"0");case"k":case"kk":return nme.s(String(eme.$H===0?24:eme.$H),ame==="k"?1:2,"0");case"X":return Math.floor(eme.$d.getTime()/1e3);case"x":return eme.$d.getTime();case"z":return"["+eme.offsetName()+"]";case"zzz":return"["+eme.offsetName("long")+"]";default:return ame}});return $P.bind(this)(rme)}}})})(advancedFormat$1);var advancedFormatExports=advancedFormat$1.exports;const advancedFormat=getDefaultExportFromCjs(advancedFormatExports);var customParseFormat$1={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){var x_={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},$_=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,B_=/\d\d/,$P=/\d\d?/,zP=/\d*[^-_:/,()\s\d]+/,eme={},tme=function(ume){return(ume=+ume)+(ume>68?1900:2e3)},nme=function(ume){return function(sme){this[ume]=+sme}},rme=[/[+-]\d\d:?(\d\d)?|Z/,function(ume){(this.zone||(this.zone={})).offset=function(sme){if(!sme||sme==="Z")return 0;var fme=sme.match(/([+-]|\d\d)/g),lme=60*fme[1]+(+fme[2]||0);return lme===0?0:fme[0]==="+"?-lme:lme}(ume)}],ame=function(ume){var sme=eme[ume];return sme&&(sme.indexOf?sme:sme.s.concat(sme.f))},ome=function(ume,sme){var fme,lme=eme.meridiem;if(lme){for(var hme=1;hme<=24;hme+=1)if(ume.indexOf(lme(hme,0,sme))>-1){fme=hme>12;break}}else fme=ume===(sme?"pm":"PM");return fme},ime={A:[zP,function(ume){this.afternoon=ome(ume,!1)}],a:[zP,function(ume){this.afternoon=ome(ume,!0)}],S:[/\d/,function(ume){this.milliseconds=100*+ume}],SS:[B_,function(ume){this.milliseconds=10*+ume}],SSS:[/\d{3}/,function(ume){this.milliseconds=+ume}],s:[$P,nme("seconds")],ss:[$P,nme("seconds")],m:[$P,nme("minutes")],mm:[$P,nme("minutes")],H:[$P,nme("hours")],h:[$P,nme("hours")],HH:[$P,nme("hours")],hh:[$P,nme("hours")],D:[$P,nme("day")],DD:[B_,nme("day")],Do:[zP,function(ume){var sme=eme.ordinal,fme=ume.match(/\d+/);if(this.day=fme[0],sme)for(var lme=1;lme<=31;lme+=1)sme(lme).replace(/\[|\]/g,"")===ume&&(this.day=lme)}],M:[$P,nme("month")],MM:[B_,nme("month")],MMM:[zP,function(ume){var sme=ame("months"),fme=(ame("monthsShort")||sme.map(function(lme){return lme.slice(0,3)})).indexOf(ume)+1;if(fme<1)throw new Error;this.month=fme%12||fme}],MMMM:[zP,function(ume){var sme=ame("months").indexOf(ume)+1;if(sme<1)throw new Error;this.month=sme%12||sme}],Y:[/[+-]?\d+/,nme("year")],YY:[B_,function(ume){this.year=tme(ume)}],YYYY:[/\d{4}/,nme("year")],Z:rme,ZZ:rme};function cme(ume){var sme,fme;sme=ume,fme=eme&&eme.formats;for(var lme=(ume=sme.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Sme,_me,Cme){var Eme=Cme&&Cme.toUpperCase();return _me||fme[Cme]||x_[Cme]||fme[Eme].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Tme,Rme,Pme){return Rme||Pme.slice(1)})})).match($_),hme=lme.length,pme=0;pme<hme;pme+=1){var gme=lme[pme],yme=ime[gme],mme=yme&&yme[0],bme=yme&&yme[1];lme[pme]=bme?{regex:mme,parser:bme}:gme.replace(/^\[|\]$/g,"")}return function(Sme){for(var _me={},Cme=0,Eme=0;Cme<hme;Cme+=1){var Tme=lme[Cme];if(typeof Tme=="string")Eme+=Tme.length;else{var Rme=Tme.regex,Pme=Tme.parser,$me=Sme.slice(Eme),Dme=Rme.exec($me)[0];Pme.call(_me,Dme),Sme=Sme.replace(Dme,"")}}return function(Mme){var Nme=Mme.afternoon;if(Nme!==void 0){var Ime=Mme.hours;Nme?Ime<12&&(Mme.hours+=12):Ime===12&&(Mme.hours=0),delete Mme.afternoon}}(_me),_me}}return function(ume,sme,fme){fme.p.customParseFormat=!0,ume&&ume.parseTwoDigitYear&&(tme=ume.parseTwoDigitYear);var lme=sme.prototype,hme=lme.parse;lme.parse=function(pme){var gme=pme.date,yme=pme.utc,mme=pme.args;this.$u=yme;var bme=mme[1];if(typeof bme=="string"){var Sme=mme[2]===!0,_me=mme[3]===!0,Cme=Sme||_me,Eme=mme[2];_me&&(Eme=mme[2]),eme=this.$locale(),!Sme&&Eme&&(eme=fme.Ls[Eme]),this.$d=function($me,Dme,Mme){try{if(["x","X"].indexOf(Dme)>-1)return new Date((Dme==="X"?1e3:1)*$me);var Nme=cme(Dme)($me),Ime=Nme.year,wme=Nme.month,Ome=Nme.day,Ame=Nme.hours,Fme=Nme.minutes,Bme=Nme.seconds,kme=Nme.milliseconds,Lme=Nme.zone,Hme=new Date,Wme=Ome||(Ime||wme?1:Hme.getDate()),zme=Ime||Hme.getFullYear(),Vme=0;Ime&&!wme||(Vme=wme>0?wme-1:Hme.getMonth());var Xme=Ame||0,e0e=Fme||0,Ume=Bme||0,Jme=kme||0;return Lme?new Date(Date.UTC(zme,Vme,Wme,Xme,e0e,Ume,Jme+60*Lme.offset*1e3)):Mme?new Date(Date.UTC(zme,Vme,Wme,Xme,e0e,Ume,Jme)):new Date(zme,Vme,Wme,Xme,e0e,Ume,Jme)}catch{return new Date("")}}(gme,bme,yme),this.init(),Eme&&Eme!==!0&&(this.$L=this.locale(Eme).$L),Cme&&gme!=this.format(bme)&&(this.$d=new Date("")),eme={}}else if(bme instanceof Array)for(var Tme=bme.length,Rme=1;Rme<=Tme;Rme+=1){mme[1]=bme[Rme-1];var Pme=fme.apply(this,mme);if(Pme.isValid()){this.$d=Pme.$d,this.$L=Pme.$L,this.init();break}Rme===Tme&&(this.$d=new Date(""))}else hme.call(this,pme)}}})})(customParseFormat$1);var customParseFormatExports=customParseFormat$1.exports;const customParseFormat=getDefaultExportFromCjs(customParseFormatExports);dayjs.extend(customParseFormat);dayjs.extend(advancedFormat);dayjs.extend(weekday);dayjs.extend(localeData);dayjs.extend(weekOfYear);dayjs.extend(weekYear);dayjs.extend(function(Ff,kh){var x_=kh.prototype,$_=x_.format;x_.format=function($P){var zP=($P||"").replace("Wo","wo");return $_.bind(this)(zP)}});var localeMap={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},parseLocale=function(kh){var x_=localeMap[kh];return x_||kh.split("_")[0]},parseNoMatchNotice=function(){noteOnce(!1,"Not match any format. Please help to fire a issue about this.")},generateConfig={getNow:function(){return dayjs()},getFixedDate:function(kh){return dayjs(kh,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(kh){return kh.endOf("month")},getWeekDay:function(kh){var x_=kh.locale("en");return x_.weekday()+x_.localeData().firstDayOfWeek()},getYear:function(kh){return kh.year()},getMonth:function(kh){return kh.month()},getDate:function(kh){return kh.date()},getHour:function(kh){return kh.hour()},getMinute:function(kh){return kh.minute()},getSecond:function(kh){return kh.second()},getMillisecond:function(kh){return kh.millisecond()},addYear:function(kh,x_){return kh.add(x_,"year")},addMonth:function(kh,x_){return kh.add(x_,"month")},addDate:function(kh,x_){return kh.add(x_,"day")},setYear:function(kh,x_){return kh.year(x_)},setMonth:function(kh,x_){return kh.month(x_)},setDate:function(kh,x_){return kh.date(x_)},setHour:function(kh,x_){return kh.hour(x_)},setMinute:function(kh,x_){return kh.minute(x_)},setSecond:function(kh,x_){return kh.second(x_)},setMillisecond:function(kh,x_){return kh.millisecond(x_)},isAfter:function(kh,x_){return kh.isAfter(x_)},isValidate:function(kh){return kh.isValid()},locale:{getWeekFirstDay:function(kh){return dayjs().locale(parseLocale(kh)).localeData().firstDayOfWeek()},getWeekFirstDate:function(kh,x_){return x_.locale(parseLocale(kh)).weekday(0)},getWeek:function(kh,x_){return x_.locale(parseLocale(kh)).week()},getShortWeekDays:function(kh){return dayjs().locale(parseLocale(kh)).localeData().weekdaysMin()},getShortMonths:function(kh){return dayjs().locale(parseLocale(kh)).localeData().monthsShort()},format:function(kh,x_,$_){return x_.locale(parseLocale(kh)).format($_)},parse:function(kh,x_,$_){for(var B_=parseLocale(kh),$P=0;$P<$_.length;$P+=1){var zP=$_[$P],eme=x_;if(zP.includes("wo")||zP.includes("Wo")){for(var tme=eme.split("-")[0],nme=eme.split("-")[1],rme=dayjs(tme,"YYYY").startOf("year").locale(B_),ame=0;ame<=52;ame+=1){var ome=rme.add(ame,"week");if(ome.format("Wo")===nme)return ome}return parseNoMatchNotice(),null}var ime=dayjs(eme,zP,!0).locale(B_);if(ime.isValid())return ime}return x_&&parseNoMatchNotice(),null}}},PickerContext=React__namespace.createContext(null),BUILT_IN_PLACEMENTS={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function PickerTrigger(Ff){var kh=Ff.popupElement,x_=Ff.popupStyle,$_=Ff.popupClassName,B_=Ff.popupAlign,$P=Ff.transitionName,zP=Ff.getPopupContainer,eme=Ff.children,tme=Ff.range,nme=Ff.placement,rme=Ff.builtinPlacements,ame=rme===void 0?BUILT_IN_PLACEMENTS:rme,ome=Ff.direction,ime=Ff.visible,cme=Ff.onClose,ume=React__namespace.useContext(PickerContext),sme=ume.prefixCls,fme="".concat(sme,"-dropdown"),lme=React__namespace.useMemo(function(){return nme!==void 0?nme:ome==="rtl"?"bottomRight":"bottomLeft"},[nme,ome]);return React__namespace.createElement(Trigger,{showAction:[],hideAction:["click"],popupPlacement:lme,builtinPlacements:ame,prefixCls:fme,popupTransitionName:$P,popup:kh,popupAlign:B_,popupVisible:ime,popupClassName:classNames($_,_defineProperty(_defineProperty({},"".concat(fme,"-range"),tme),"".concat(fme,"-rtl"),ome==="rtl")),popupStyle:x_,stretch:"minWidth",getPopupContainer:zP,onPopupVisibleChange:function(pme){pme||cme()}},eme)}function leftPad(Ff,kh){for(var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",$_=String(Ff);$_.length<kh;)$_="".concat(x_).concat($_);return $_}function toArray$3(Ff){return Ff==null?[]:Array.isArray(Ff)?Ff:[Ff]}function fillIndex(Ff,kh,x_){var $_=_toConsumableArray(Ff);return $_[kh]=x_,$_}function pickProps(Ff,kh){var x_={},$_=kh||Object.keys(Ff);return $_.forEach(function(B_){Ff[B_]!==void 0&&(x_[B_]=Ff[B_])}),x_}function getRowFormat(Ff,kh,x_){if(x_)return x_;switch(Ff){case"time":return kh.fieldTimeFormat;case"datetime":return kh.fieldDateTimeFormat;case"month":return kh.fieldMonthFormat;case"year":return kh.fieldYearFormat;case"quarter":return kh.fieldQuarterFormat;case"week":return kh.fieldWeekFormat;default:return kh.fieldDateFormat}}function getFromDate(Ff,kh,x_){var $_=x_!==void 0?x_:kh[kh.length-1],B_=kh.find(function($P){return Ff[$P]});return $_!==B_?Ff[B_]:void 0}function pickTriggerProps(Ff){return pickProps(Ff,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function useCellRender(Ff,kh,x_,$_){process.env.NODE_ENV!=="production"&&(warningOnce(!kh,"'dateRender' is deprecated. Please use 'cellRender' instead."),warningOnce(!x_,"'monthCellRender' is deprecated. Please use 'cellRender' instead."));var B_=React__namespace.useMemo(function(){return Ff||function(zP,eme){var tme=zP;return kh&&eme.type==="date"?kh(tme,eme.today):x_&&eme.type==="month"?x_(tme,eme.locale):eme.originNode}},[Ff,x_,kh]),$P=React__namespace.useCallback(function(zP,eme){return B_(zP,_objectSpread2(_objectSpread2({},eme),{},{range:$_}))},[B_,$_]);return $P}function useFieldsInvalidate(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],$_=React__namespace.useState([!1,!1]),B_=_slicedToArray($_,2),$P=B_[0],zP=B_[1],eme=function(rme,ame){zP(function(ome){return fillIndex(ome,ame,rme)})},tme=React__namespace.useMemo(function(){return $P.map(function(nme,rme){if(nme)return!0;var ame=Ff[rme];return ame?!!(!x_[rme]&&!ame||ame&&kh(ame,{activeIndex:rme})):!1})},[Ff,$P,kh,x_]);return[tme,eme]}function fillTimeFormat(Ff,kh,x_,$_,B_){var $P="",zP=[];return Ff&&zP.push(B_?"hh":"HH"),kh&&zP.push("mm"),x_&&zP.push("ss"),$P=zP.join(":"),$_&&($P+=".SSS"),B_&&($P+=" A"),$P}function fillLocale(Ff,kh,x_,$_,B_,$P){var zP=Ff.fieldDateTimeFormat,eme=Ff.fieldDateFormat,tme=Ff.fieldTimeFormat,nme=Ff.fieldMonthFormat,rme=Ff.fieldYearFormat,ame=Ff.fieldWeekFormat,ome=Ff.fieldQuarterFormat,ime=Ff.yearFormat,cme=Ff.cellYearFormat,ume=Ff.cellQuarterFormat,sme=Ff.dayFormat,fme=Ff.cellDateFormat,lme=fillTimeFormat(kh,x_,$_,B_,$P);return _objectSpread2(_objectSpread2({},Ff),{},{fieldDateTimeFormat:zP||"YYYY-MM-DD ".concat(lme),fieldDateFormat:eme||"YYYY-MM-DD",fieldTimeFormat:tme||lme,fieldMonthFormat:nme||"YYYY-MM",fieldYearFormat:rme||"YYYY",fieldWeekFormat:ame||"gggg-wo",fieldQuarterFormat:ome||"YYYY-[Q]Q",yearFormat:ime||"YYYY",cellYearFormat:cme||"YYYY",cellQuarterFormat:ume||"[Q]Q",cellDateFormat:fme||sme||"D"})}function useLocale(Ff,kh){var x_=kh.showHour,$_=kh.showMinute,B_=kh.showSecond,$P=kh.showMillisecond,zP=kh.use12Hours;return React.useMemo(function(){return fillLocale(Ff,x_,$_,B_,$P,zP)},[Ff,x_,$_,B_,$P,zP])}function checkShow(Ff,kh,x_){return x_??kh.some(function($_){return Ff.includes($_)})}var showTimeKeys=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function pickTimeProps(Ff){var kh=pickProps(Ff,showTimeKeys),x_=Ff.format,$_=Ff.picker,B_=null;return x_&&(B_=x_,Array.isArray(B_)&&(B_=B_[0]),B_=_typeof(B_)==="object"?B_.format:B_),$_==="time"&&(kh.format=B_),[kh,B_]}function isStringFormat(Ff){return Ff&&typeof Ff=="string"}function existShowConfig(Ff,kh,x_,$_){return[Ff,kh,x_,$_].some(function(B_){return B_!==void 0})}function fillShowConfig(Ff,kh,x_,$_,B_){var $P=kh,zP=x_,eme=$_;if(!Ff&&!$P&&!zP&&!eme&&!B_)$P=!0,zP=!0,eme=!0;else if(Ff){var tme,nme,rme,ame=[$P,zP,eme].some(function(cme){return cme===!1}),ome=[$P,zP,eme].some(function(cme){return cme===!0}),ime=ame?!0:!ome;$P=(tme=$P)!==null&&tme!==void 0?tme:ime,zP=(nme=zP)!==null&&nme!==void 0?nme:ime,eme=(rme=eme)!==null&&rme!==void 0?rme:ime}return[$P,zP,eme,B_]}function getTimeProps(Ff){var kh=Ff.showTime,x_=pickTimeProps(Ff),$_=_slicedToArray(x_,2),B_=$_[0],$P=$_[1],zP=kh&&_typeof(kh)==="object"?kh:{},eme=_objectSpread2(_objectSpread2({defaultOpenValue:zP.defaultOpenValue||zP.defaultValue},B_),zP),tme=eme.showMillisecond,nme=eme.showHour,rme=eme.showMinute,ame=eme.showSecond,ome=existShowConfig(nme,rme,ame,tme),ime=fillShowConfig(ome,nme,rme,ame,tme),cme=_slicedToArray(ime,3);return nme=cme[0],rme=cme[1],ame=cme[2],[eme,_objectSpread2(_objectSpread2({},eme),{},{showHour:nme,showMinute:rme,showSecond:ame,showMillisecond:tme}),eme.format,$P]}function fillShowTimeConfig(Ff,kh,x_,$_,B_){var $P=Ff==="time";if(Ff==="datetime"||$P){for(var zP=$_,eme=getRowFormat(Ff,B_,null),tme=eme,nme=[kh,x_],rme=0;rme<nme.length;rme+=1){var ame=toArray$3(nme[rme])[0];if(isStringFormat(ame)){tme=ame;break}}var ome=zP.showHour,ime=zP.showMinute,cme=zP.showSecond,ume=zP.showMillisecond,sme=zP.use12Hours,fme=checkShow(tme,["a","A","LT","LLL","LTS"],sme),lme=existShowConfig(ome,ime,cme,ume);lme||(ome=checkShow(tme,["H","h","k","LT","LLL"]),ime=checkShow(tme,["m","LT","LLL"]),cme=checkShow(tme,["s","LTS"]),ume=checkShow(tme,["SSS"]));var hme=fillShowConfig(lme,ome,ime,cme,ume),pme=_slicedToArray(hme,3);ome=pme[0],ime=pme[1],cme=pme[2];var gme=kh||fillTimeFormat(ome,ime,cme,ume,fme);return _objectSpread2(_objectSpread2({},zP),{},{format:gme,showHour:ome,showMinute:ime,showSecond:cme,showMillisecond:ume,use12Hours:fme})}return null}function fillClearIcon(Ff,kh,x_){if(process.env.NODE_ENV!=="production"&&x_&&warningOnce(!1,"`clearIcon` will be removed in future. Please use `allowClear` instead."),kh===!1)return null;var $_=kh&&_typeof(kh)==="object"?kh:{};return $_.clearIcon||x_||React__namespace.createElement("span",{className:"".concat(Ff,"-clear-btn")})}var WEEK_DAY_COUNT=7;function nullableCompare(Ff,kh,x_){return!Ff&&!kh||Ff===kh?!0:!Ff||!kh?!1:x_()}function isSameDecade(Ff,kh,x_){return nullableCompare(kh,x_,function(){var $_=Math.floor(Ff.getYear(kh)/10),B_=Math.floor(Ff.getYear(x_)/10);return $_===B_})}function isSameYear(Ff,kh,x_){return nullableCompare(kh,x_,function(){return Ff.getYear(kh)===Ff.getYear(x_)})}function getQuarter(Ff,kh){var x_=Math.floor(Ff.getMonth(kh)/3);return x_+1}function isSameQuarter(Ff,kh,x_){return nullableCompare(kh,x_,function(){return isSameYear(Ff,kh,x_)&&getQuarter(Ff,kh)===getQuarter(Ff,x_)})}function isSameMonth(Ff,kh,x_){return nullableCompare(kh,x_,function(){return isSameYear(Ff,kh,x_)&&Ff.getMonth(kh)===Ff.getMonth(x_)})}function isSameDate(Ff,kh,x_){return nullableCompare(kh,x_,function(){return isSameYear(Ff,kh,x_)&&isSameMonth(Ff,kh,x_)&&Ff.getDate(kh)===Ff.getDate(x_)})}function isSameTime(Ff,kh,x_){return nullableCompare(kh,x_,function(){return Ff.getHour(kh)===Ff.getHour(x_)&&Ff.getMinute(kh)===Ff.getMinute(x_)&&Ff.getSecond(kh)===Ff.getSecond(x_)})}function isSameTimestamp(Ff,kh,x_){return nullableCompare(kh,x_,function(){return isSameDate(Ff,kh,x_)&&isSameTime(Ff,kh,x_)&&Ff.getMillisecond(kh)===Ff.getMillisecond(x_)})}function isSameWeek(Ff,kh,x_,$_){return nullableCompare(x_,$_,function(){var B_=Ff.locale.getWeekFirstDate(kh,x_),$P=Ff.locale.getWeekFirstDate(kh,$_);return isSameYear(Ff,B_,$P)&&Ff.locale.getWeek(kh,x_)===Ff.locale.getWeek(kh,$_)})}function isSame(Ff,kh,x_,$_,B_){switch(B_){case"date":return isSameDate(Ff,x_,$_);case"week":return isSameWeek(Ff,kh.locale,x_,$_);case"month":return isSameMonth(Ff,x_,$_);case"quarter":return isSameQuarter(Ff,x_,$_);case"year":return isSameYear(Ff,x_,$_);case"decade":return isSameDecade(Ff,x_,$_);case"time":return isSameTime(Ff,x_,$_);default:return isSameTimestamp(Ff,x_,$_)}}function isInRange(Ff,kh,x_,$_){return!kh||!x_||!$_?!1:Ff.isAfter($_,kh)&&Ff.isAfter(x_,$_)}function isSameOrAfter(Ff,kh,x_,$_,B_){return isSame(Ff,kh,x_,$_,B_)?!0:Ff.isAfter(x_,$_)}function getWeekStartDate(Ff,kh,x_){var $_=kh.locale.getWeekFirstDay(Ff),B_=kh.setDate(x_,1),$P=kh.getWeekDay(B_),zP=kh.addDate(B_,$_-$P);return kh.getMonth(zP)===kh.getMonth(x_)&&kh.getDate(zP)>1&&(zP=kh.addDate(zP,-7)),zP}function formatValue(Ff,kh){var x_=kh.generateConfig,$_=kh.locale,B_=kh.format;return Ff?typeof B_=="function"?B_(Ff):x_.locale.format($_.locale,Ff,B_):""}function fillTime(Ff,kh,x_){var $_=kh,B_=["getHour","getMinute","getSecond","getMillisecond"],$P=["setHour","setMinute","setSecond","setMillisecond"];return $P.forEach(function(zP,eme){x_?$_=Ff[zP]($_,Ff[B_[eme]](x_)):$_=Ff[zP]($_,0)}),$_}function useDisabledBoundary(Ff,kh,x_,$_,B_){var $P=useEvent(function(zP,eme){return!!(x_&&x_(zP,eme)||$_&&Ff.isAfter($_,zP)&&!isSame(Ff,kh,$_,zP,eme.type)||B_&&Ff.isAfter(zP,B_)&&!isSame(Ff,kh,B_,zP,eme.type))});return $P}function useFieldFormat(Ff,kh,x_){return React__namespace.useMemo(function(){var $_=getRowFormat(Ff,kh,x_),B_=toArray$3($_),$P=B_[0],zP=_typeof($P)==="object"&&$P.type==="mask"?$P.format:null;return[B_.map(function(eme){return typeof eme=="string"||typeof eme=="function"?eme:eme.format}),zP]},[Ff,kh,x_])}function useInputReadOnly(Ff,kh,x_){return typeof Ff[0]=="function"||x_?!0:kh}function useInvalidate(Ff,kh,x_,$_){var B_=useEvent(function($P,zP){var eme=_objectSpread2({type:kh},zP);if(delete eme.activeIndex,!Ff.isValidate($P)||x_&&x_($P,eme))return!0;if((kh==="date"||kh==="time")&&$_){var tme,nme=zP&&zP.activeIndex===1?"end":"start",rme=((tme=$_.disabledTime)===null||tme===void 0?void 0:tme.call($_,$P,nme,{from:eme.from}))||{},ame=rme.disabledHours,ome=rme.disabledMinutes,ime=rme.disabledSeconds,cme=rme.disabledMilliseconds,ume=$_.disabledHours,sme=$_.disabledMinutes,fme=$_.disabledSeconds,lme=ame||ume,hme=ome||sme,pme=ime||fme,gme=Ff.getHour($P),yme=Ff.getMinute($P),mme=Ff.getSecond($P),bme=Ff.getMillisecond($P);if(lme&&lme().includes(gme)||hme&&hme(gme).includes(yme)||pme&&pme(gme,yme).includes(mme)||cme&&cme(gme,yme,mme).includes(bme))return!0}return!1});return B_}function useList(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x_=React__namespace.useMemo(function(){var $_=Ff&&toArray$3(Ff);return kh&&$_&&($_[1]=$_[1]||$_[0]),$_},[Ff,kh]);return x_}function useFilledProps(Ff,kh){var x_=Ff.generateConfig,$_=Ff.locale,B_=Ff.picker,$P=B_===void 0?"date":B_,zP=Ff.prefixCls,eme=zP===void 0?"rc-picker":zP,tme=Ff.styles,nme=tme===void 0?{}:tme,rme=Ff.classNames,ame=rme===void 0?{}:rme,ome=Ff.order,ime=ome===void 0?!0:ome,cme=Ff.components,ume=cme===void 0?{}:cme,sme=Ff.inputRender,fme=Ff.allowClear,lme=Ff.clearIcon,hme=Ff.needConfirm,pme=Ff.multiple,gme=Ff.format,yme=Ff.inputReadOnly,mme=Ff.disabledDate,bme=Ff.minDate,Sme=Ff.maxDate,_me=Ff.showTime,Cme=Ff.value,Eme=Ff.defaultValue,Tme=Ff.pickerValue,Rme=Ff.defaultPickerValue,Pme=useList(Cme),$me=useList(Eme),Dme=useList(Tme),Mme=useList(Rme),Nme=$P==="date"&&_me?"datetime":$P,Ime=Nme==="time"||Nme==="datetime",wme=Ime||pme,Ome=hme??Ime,Ame=getTimeProps(Ff),Fme=_slicedToArray(Ame,4),Bme=Fme[0],kme=Fme[1],Lme=Fme[2],Hme=Fme[3],Wme=useLocale($_,kme),zme=React__namespace.useMemo(function(){return fillShowTimeConfig(Nme,Lme,Hme,Bme,Wme)},[Nme,Lme,Hme,Bme,Wme]);process.env.NODE_ENV!=="production"&&$P==="time"&&["disabledHours","disabledMinutes","disabledSeconds"].some(function(a0e){return Ff[a0e]})&&warningOnce(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.");var Vme=React__namespace.useMemo(function(){return _objectSpread2(_objectSpread2({},Ff),{},{prefixCls:eme,locale:Wme,picker:$P,styles:nme,classNames:ame,order:ime,components:_objectSpread2({input:sme},ume),clearIcon:fillClearIcon(eme,fme,lme),showTime:zme,value:Pme,defaultValue:$me,pickerValue:Dme,defaultPickerValue:Mme},kh==null?void 0:kh())},[Ff]),Xme=useFieldFormat(Nme,Wme,gme),e0e=_slicedToArray(Xme,2),Ume=e0e[0],Jme=e0e[1],s0e=useInputReadOnly(Ume,yme,pme),d0e=useDisabledBoundary(x_,$_,mme,bme,Sme),Zme=useInvalidate(x_,$P,d0e,zme),Qme=React__namespace.useMemo(function(){return _objectSpread2(_objectSpread2({},Vme),{},{needConfirm:Ome,inputReadOnly:s0e,disabledDate:d0e})},[Vme,Ome,s0e,d0e]);return[Qme,Nme,wme,Ume,Jme,Zme]}function useDelayState(Ff,kh,x_){var $_=useMergedState(kh,{value:Ff}),B_=_slicedToArray($_,2),$P=B_[0],zP=B_[1],eme=React.useRef(Ff),tme=React.useRef(),nme=function(){wrapperRaf.cancel(tme.current)},rme=useEvent(function(){zP(eme.current),x_&&$P!==eme.current&&x_(eme.current)}),ame=useEvent(function(ome,ime){nme(),eme.current=ome,ome||ime?rme():tme.current=wrapperRaf(rme)});return React.useEffect(function(){return nme},[]),[$P,ame]}function useOpen(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],$_=arguments.length>3?arguments[3]:void 0,B_=x_.every(function(rme){return rme})?!1:Ff,$P=useDelayState(B_,kh||!1,$_),zP=_slicedToArray($P,2),eme=zP[0],tme=zP[1];function nme(rme){var ame=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!ame.inherit||eme)&&tme(rme,ame.force)}return[eme,nme]}function usePickerRef(Ff){var kh=React__namespace.useRef();return React__namespace.useImperativeHandle(Ff,function(){var x_;return{nativeElement:(x_=kh.current)===null||x_===void 0?void 0:x_.nativeElement,focus:function(B_){var $P;($P=kh.current)===null||$P===void 0||$P.focus(B_)},blur:function(){var B_;(B_=kh.current)===null||B_===void 0||B_.blur()}}}),kh}function usePresets(Ff,kh){return React__namespace.useMemo(function(){return Ff||(kh?(warningOnce(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(kh).map(function(x_){var $_=_slicedToArray(x_,2),B_=$_[0],$P=$_[1];return{label:B_,value:$P}})):[])},[Ff,kh])}function useLockEffect(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,$_=React__namespace.useRef(kh);$_.current=kh,useLayoutUpdateEffect(function(){if(Ff)$_.current(Ff);else{var B_=wrapperRaf(function(){$_.current(Ff)},x_);return function(){wrapperRaf.cancel(B_)}}},[Ff])}function useRangeActive(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x_=React__namespace.useState(0),$_=_slicedToArray(x_,2),B_=$_[0],$P=$_[1],zP=React__namespace.useState(!1),eme=_slicedToArray(zP,2),tme=eme[0],nme=eme[1],rme=React__namespace.useRef([]),ame=React__namespace.useRef(null),ome=function(sme){nme(sme)},ime=function(sme){return sme&&(ame.current=sme),ame.current},cme=function(sme){var fme=rme.current,lme=new Set(fme.filter(function(pme){return sme[pme]||kh[pme]})),hme=fme[fme.length-1]===0?1:0;return lme.size>=2||Ff[hme]?null:hme};return useLockEffect(tme,function(){tme||(rme.current=[])}),React__namespace.useEffect(function(){tme&&rme.current.push(B_)},[tme,B_]),[tme,ome,ime,B_,$P,cme,rme.current]}function useRangeDisabledDate(Ff,kh,x_,$_,B_,$P){var zP=x_[x_.length-1],eme=function(nme,rme){var ame=_slicedToArray(Ff,2),ome=ame[0],ime=ame[1],cme=_objectSpread2(_objectSpread2({},rme),{},{from:getFromDate(Ff,x_)});return zP===1&&kh[0]&&ome&&!isSame($_,B_,ome,nme,cme.type)&&$_.isAfter(ome,nme)||zP===0&&kh[1]&&ime&&!isSame($_,B_,ime,nme,cme.type)&&$_.isAfter(nme,ime)?!0:$P==null?void 0:$P(nme,cme)};return eme}function offsetPanelDate(Ff,kh,x_,$_){switch(kh){case"date":case"week":return Ff.addMonth(x_,$_);case"month":case"quarter":return Ff.addYear(x_,$_);case"year":return Ff.addYear(x_,$_*10);case"decade":return Ff.addYear(x_,$_*100);default:return x_}}var EMPTY_LIST$1=[];function useRangePickerValue(Ff,kh,x_,$_,B_,$P,zP,eme){var tme=arguments.length>8&&arguments[8]!==void 0?arguments[8]:EMPTY_LIST$1,nme=arguments.length>9&&arguments[9]!==void 0?arguments[9]:EMPTY_LIST$1,rme=arguments.length>10&&arguments[10]!==void 0?arguments[10]:EMPTY_LIST$1,ame=arguments.length>11?arguments[11]:void 0,ome=arguments.length>12?arguments[12]:void 0,ime=arguments.length>13?arguments[13]:void 0,cme=zP==="time",ume=$P||0,sme=function(Dme){var Mme=Ff.getNow();return cme&&(Mme=fillTime(Ff,Mme)),tme[Dme]||x_[Dme]||Mme},fme=_slicedToArray(nme,2),lme=fme[0],hme=fme[1],pme=useMergedState(function(){return sme(0)},{value:lme}),gme=_slicedToArray(pme,2),yme=gme[0],mme=gme[1],bme=useMergedState(function(){return sme(1)},{value:hme}),Sme=_slicedToArray(bme,2),_me=Sme[0],Cme=Sme[1],Eme=React__namespace.useMemo(function(){var $me=[yme,_me][ume];return cme?$me:fillTime(Ff,$me,rme[ume])},[cme,yme,_me,ume,Ff,rme]),Tme=function(Dme){var Mme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",Nme=[mme,Cme][ume];Nme(Dme);var Ime=[yme,_me];Ime[ume]=Dme,ame&&(!isSame(Ff,kh,yme,Ime[0],zP)||!isSame(Ff,kh,_me,Ime[1],zP))&&ame(Ime,{source:Mme,range:ume===1?"end":"start",mode:$_})},Rme=function(Dme,Mme){if(eme){var Nme={date:"month",week:"month",month:"year",quarter:"year"},Ime=Nme[zP];if(Ime&&!isSame(Ff,kh,Dme,Mme,Ime))return offsetPanelDate(Ff,zP,Mme,-1);if(zP==="year"){var wme=Math.floor(Ff.getYear(Dme)/10),Ome=Math.floor(Ff.getYear(Mme)/10);if(wme!==Ome)return offsetPanelDate(Ff,zP,Mme,-1)}}return Mme},Pme=React__namespace.useRef(null);return useLayoutEffect$1(function(){if(B_&&!tme[ume]){var $me=cme?null:Ff.getNow();if(Pme.current!==null&&Pme.current!==ume?$me=[yme,_me][ume^1]:x_[ume]?$me=ume===0?x_[0]:Rme(x_[0],x_[1]):x_[ume^1]&&($me=x_[ume^1]),$me){ome&&Ff.isAfter(ome,$me)&&($me=ome);var Dme=eme?offsetPanelDate(Ff,zP,$me,1):$me;ime&&Ff.isAfter(Dme,ime)&&($me=eme?offsetPanelDate(Ff,zP,ime,-1):ime),Tme($me,"reset")}}},[B_,ume,x_[ume]]),React__namespace.useEffect(function(){B_?Pme.current=ume:Pme.current=null},[B_,ume]),useLayoutEffect$1(function(){B_&&tme&&tme[ume]&&Tme(tme[ume],"reset")},[B_,ume]),[Eme,Tme]}function useSyncState(Ff,kh){var x_=React__namespace.useRef(Ff),$_=React__namespace.useState({}),B_=_slicedToArray($_,2),$P=B_[1],zP=function(nme){return nme&&kh!==void 0?kh:x_.current},eme=function(nme){x_.current=nme,$P({})};return[zP,eme,zP(!0)]}var EMPTY_VALUE=[];function useUtil(Ff,kh,x_){var $_=function(zP){return zP.map(function(eme){return formatValue(eme,{generateConfig:Ff,locale:kh,format:x_[0]})})},B_=function(zP,eme){for(var tme=Math.max(zP.length,eme.length),nme=-1,rme=0;rme<tme;rme+=1){var ame=zP[rme]||null,ome=eme[rme]||null;if(ame!==ome&&!isSameTimestamp(Ff,ame,ome)){nme=rme;break}}return[nme<0,nme!==0]};return[$_,B_]}function orderDates(Ff,kh){return _toConsumableArray(Ff).sort(function(x_,$_){return kh.isAfter(x_,$_)?1:-1})}function useCalendarValue(Ff){var kh=useSyncState(Ff),x_=_slicedToArray(kh,2),$_=x_[0],B_=x_[1],$P=useEvent(function(){B_(Ff)});return React__namespace.useEffect(function(){$P()},[Ff]),[$_,B_]}function useInnerValue(Ff,kh,x_,$_,B_,$P,zP,eme,tme){var nme=useMergedState($P,{value:zP}),rme=_slicedToArray(nme,2),ame=rme[0],ome=rme[1],ime=ame||EMPTY_VALUE,cme=useCalendarValue(ime),ume=_slicedToArray(cme,2),sme=ume[0],fme=ume[1],lme=useUtil(Ff,kh,x_),hme=_slicedToArray(lme,2),pme=hme[0],gme=hme[1],yme=useEvent(function(bme){var Sme=_toConsumableArray(bme);if($_)for(var _me=0;_me<2;_me+=1)Sme[_me]=Sme[_me]||null;else B_&&(Sme=orderDates(Sme.filter(function($me){return $me}),Ff));var Cme=gme(sme(),Sme),Eme=_slicedToArray(Cme,2),Tme=Eme[0],Rme=Eme[1];if(!Tme&&(fme(Sme),eme)){var Pme=pme(Sme);eme(Sme,Pme,{range:Rme?"end":"start"})}}),mme=function(){tme&&tme(sme())};return[ime,ome,sme,yme,mme]}function useRangeValue(Ff,kh,x_,$_,B_,$P,zP,eme,tme,nme){var rme=Ff.generateConfig,ame=Ff.locale,ome=Ff.picker,ime=Ff.onChange,cme=Ff.allowEmpty,ume=Ff.order,sme=$P.some(function(Tme){return Tme})?!1:ume,fme=useUtil(rme,ame,zP),lme=_slicedToArray(fme,2),hme=lme[0],pme=lme[1],gme=useSyncState(kh),yme=_slicedToArray(gme,2),mme=yme[0],bme=yme[1],Sme=useEvent(function(){bme(kh)});React__namespace.useEffect(function(){Sme()},[kh]);var _me=useEvent(function(Tme){var Rme=Tme===null,Pme=_toConsumableArray(Tme||mme());if(Rme)for(var $me=Math.max($P.length,Pme.length),Dme=0;Dme<$me;Dme+=1)$P[Dme]||(Pme[Dme]=null);sme&&Pme[0]&&Pme[1]&&(Pme=orderDates(Pme,rme)),B_(Pme);var Mme=Pme,Nme=_slicedToArray(Mme,2),Ime=Nme[0],wme=Nme[1],Ome=!Ime,Ame=!wme,Fme=cme?(!Ome||cme[0])&&(!Ame||cme[1]):!0,Bme=!ume||Ome||Ame||isSame(rme,ame,Ime,wme,ome)||rme.isAfter(wme,Ime),kme=(!Ime||!nme(Ime,{activeIndex:0}))&&(!wme||!nme(wme,{from:Ime,activeIndex:1})),Lme=Rme||Fme&&Bme&&kme;if(Lme){x_(Pme);var Hme=pme(Pme,kh),Wme=_slicedToArray(Hme,1),zme=Wme[0];ime&&!zme&&ime(Rme&&Pme.every(function(Vme){return!Vme})?null:Pme,hme(Pme))}return Lme}),Cme=useEvent(function(Tme,Rme){var Pme=fillIndex(mme(),Tme,$_()[Tme]);bme(Pme),Rme&&_me()}),Eme=!eme&&!tme;return useLockEffect(!Eme,function(){Eme&&(_me(),B_(kh),Sme())},2),[Cme,_me]}function useShowNow(Ff,kh,x_,$_,B_){return kh!=="date"&&kh!=="time"?!1:x_!==void 0?x_:$_!==void 0?$_:!B_&&(Ff==="date"||Ff==="time")}function findValidateTime(Ff,kh,x_,$_,B_,$P){var zP=Ff;function eme(ame,ome,ime){var cme=$P[ame](zP),ume=ime.find(function(hme){return hme.value===cme});if(!ume||ume.disabled){var sme=ime.filter(function(hme){return!hme.disabled}),fme=_toConsumableArray(sme).reverse(),lme=fme.find(function(hme){return hme.value<=cme})||sme[0];lme&&(cme=lme.value,zP=$P[ome](zP,cme))}return cme}var tme=eme("getHour","setHour",kh()),nme=eme("getMinute","setMinute",x_(tme)),rme=eme("getSecond","setSecond",$_(tme,nme));return eme("getMillisecond","setMillisecond",B_(tme,nme,rme)),zP}function emptyDisabled(){return[]}function generateUnits(Ff,kh){for(var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,$_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,B_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],$P=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,zP=[],eme=x_>=1?x_|0:1,tme=Ff;tme<=kh;tme+=eme){var nme=B_.includes(tme);(!nme||!$_)&&zP.push({label:leftPad(tme,$P),value:tme,disabled:nme})}return zP}function useTimeInfo(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x_=arguments.length>2?arguments[2]:void 0,$_=kh||{},B_=$_.use12Hours,$P=$_.hourStep,zP=$P===void 0?1:$P,eme=$_.minuteStep,tme=eme===void 0?1:eme,nme=$_.secondStep,rme=nme===void 0?1:nme,ame=$_.millisecondStep,ome=ame===void 0?100:ame,ime=$_.hideDisabledOptions,cme=$_.disabledTime,ume=$_.disabledHours,sme=$_.disabledMinutes,fme=$_.disabledSeconds,lme=React__namespace.useMemo(function(){return x_||Ff.getNow()},[x_,Ff]);if(process.env.NODE_ENV!=="production"){var hme=24%zP===0,pme=60%tme===0,gme=60%rme===0;warningOnce(hme,"`hourStep` ".concat(zP," is invalid. It should be a factor of 24.")),warningOnce(pme,"`minuteStep` ".concat(tme," is invalid. It should be a factor of 60.")),warningOnce(gme,"`secondStep` ".concat(rme," is invalid. It should be a factor of 60."))}var yme=React__namespace.useCallback(function(wme){var Ome=(cme==null?void 0:cme(wme))||{};return[Ome.disabledHours||ume||emptyDisabled,Ome.disabledMinutes||sme||emptyDisabled,Ome.disabledSeconds||fme||emptyDisabled,Ome.disabledMilliseconds||emptyDisabled]},[cme,ume,sme,fme]),mme=React__namespace.useMemo(function(){return yme(lme)},[lme,yme]),bme=_slicedToArray(mme,4),Sme=bme[0],_me=bme[1],Cme=bme[2],Eme=bme[3],Tme=React__namespace.useCallback(function(wme,Ome,Ame,Fme){var Bme=generateUnits(0,23,zP,ime,wme()),kme=B_?Bme.map(function(zme){return _objectSpread2(_objectSpread2({},zme),{},{label:leftPad(zme.value%12||12,2)})}):Bme,Lme=function(Vme){return generateUnits(0,59,tme,ime,Ome(Vme))},Hme=function(Vme,Xme){return generateUnits(0,59,rme,ime,Ame(Vme,Xme))},Wme=function(Vme,Xme,e0e){return generateUnits(0,999,ome,ime,Fme(Vme,Xme,e0e),3)};return[kme,Lme,Hme,Wme]},[ime,zP,B_,ome,tme,rme]),Rme=React__namespace.useMemo(function(){return Tme(Sme,_me,Cme,Eme)},[Tme,Sme,_me,Cme,Eme]),Pme=_slicedToArray(Rme,4),$me=Pme[0],Dme=Pme[1],Mme=Pme[2],Nme=Pme[3],Ime=function(Ome,Ame){var Fme=function(){return $me},Bme=Dme,kme=Mme,Lme=Nme;if(Ame){var Hme=yme(Ame),Wme=_slicedToArray(Hme,4),zme=Wme[0],Vme=Wme[1],Xme=Wme[2],e0e=Wme[3],Ume=Tme(zme,Vme,Xme,e0e),Jme=_slicedToArray(Ume,4),s0e=Jme[0],d0e=Jme[1],Zme=Jme[2],Qme=Jme[3];Fme=function(){return s0e},Bme=d0e,kme=Zme,Lme=Qme}var a0e=findValidateTime(Ome,Fme,Bme,kme,Lme,Ff);return a0e};return[Ime,$me,Dme,Mme,Nme]}function Footer(Ff){var kh=Ff.mode,x_=Ff.internalMode,$_=Ff.renderExtraFooter,B_=Ff.showNow,$P=Ff.showTime,zP=Ff.onSubmit,eme=Ff.onNow,tme=Ff.invalid,nme=Ff.needConfirm,rme=Ff.generateConfig,ame=Ff.disabledDate,ome=React__namespace.useContext(PickerContext),ime=ome.prefixCls,cme=ome.locale,ume=ome.button,sme=ume===void 0?"button":ume,fme=rme.getNow(),lme=useTimeInfo(rme,$P,fme),hme=_slicedToArray(lme,1),pme=hme[0],gme=$_==null?void 0:$_(kh),yme=ame(fme,{type:kh}),mme=function(){if(!yme){var Rme=pme(fme);eme(Rme)}},bme="".concat(ime,"-now"),Sme="".concat(bme,"-btn"),_me=B_&&React__namespace.createElement("li",{className:bme},React__namespace.createElement("a",{className:classNames(Sme,yme&&"".concat(Sme,"-disabled")),"aria-disabled":yme,onClick:mme},x_==="date"?cme.today:cme.now)),Cme=nme&&React__namespace.createElement("li",{className:"".concat(ime,"-ok")},React__namespace.createElement(sme,{disabled:tme,onClick:zP},cme.ok)),Eme=(_me||Cme)&&React__namespace.createElement("ul",{className:"".concat(ime,"-ranges")},_me,Cme);return!gme&&!Eme?null:React__namespace.createElement("div",{className:"".concat(ime,"-footer")},gme&&React__namespace.createElement("div",{className:"".concat(ime,"-footer-extra")},gme),Eme)}function useToggleDates(Ff,kh,x_){function $_(B_,$P){var zP=B_.findIndex(function(tme){return isSame(Ff,kh,tme,$P,x_)});if(zP===-1)return[].concat(_toConsumableArray(B_),[$P]);var eme=_toConsumableArray(B_);return eme.splice(zP,1),eme}return $_}var PanelContext=React__namespace.createContext(null);function usePanelContext(){return React__namespace.useContext(PanelContext)}function useInfo(Ff,kh){var x_=Ff.prefixCls,$_=Ff.generateConfig,B_=Ff.locale,$P=Ff.disabledDate,zP=Ff.minDate,eme=Ff.maxDate,tme=Ff.cellRender,nme=Ff.hoverValue,rme=Ff.hoverRangeValue,ame=Ff.onHover,ome=Ff.values,ime=Ff.pickerValue,cme=Ff.onSelect,ume=Ff.prevIcon,sme=Ff.nextIcon,fme=Ff.superPrevIcon,lme=Ff.superNextIcon,hme=$_.getNow(),pme={now:hme,values:ome,pickerValue:ime,prefixCls:x_,disabledDate:$P,minDate:zP,maxDate:eme,cellRender:tme,hoverValue:nme,hoverRangeValue:rme,onHover:ame,locale:B_,generateConfig:$_,onSelect:cme,panelType:kh,prevIcon:ume,nextIcon:sme,superPrevIcon:fme,superNextIcon:lme};return[pme,hme]}var PickerHackContext=React__namespace.createContext({});process.env.NODE_ENV!=="production"&&(PickerHackContext.displayName="PickerHackContext");function PanelBody(Ff){for(var kh=Ff.rowNum,x_=Ff.colNum,$_=Ff.baseDate,B_=Ff.getCellDate,$P=Ff.prefixColumn,zP=Ff.rowClassName,eme=Ff.titleFormat,tme=Ff.getCellText,nme=Ff.getCellClassName,rme=Ff.headerCells,ame=Ff.cellSelection,ome=ame===void 0?!0:ame,ime=Ff.disabledDate,cme=usePanelContext(),ume=cme.prefixCls,sme=cme.panelType,fme=cme.now,lme=cme.disabledDate,hme=cme.cellRender,pme=cme.onHover,gme=cme.hoverValue,yme=cme.hoverRangeValue,mme=cme.generateConfig,bme=cme.values,Sme=cme.locale,_me=cme.onSelect,Cme=ime||lme,Eme="".concat(ume,"-cell"),Tme=React__namespace.useContext(PickerHackContext),Rme=Tme.onCellDblClick,Pme=function(Ame){return bme.some(function(Fme){return Fme&&isSame(mme,Sme,Ame,Fme,sme)})},$me=[],Dme=0;Dme<kh;Dme+=1){for(var Mme=[],Nme=void 0,Ime=function(){var Ame=Dme*x_+wme,Fme=B_($_,Ame),Bme=Cme==null?void 0:Cme(Fme,{type:sme});wme===0&&(Nme=Fme,$P&&Mme.push($P(Nme)));var kme=!1,Lme=!1,Hme=!1;if(ome&&yme){var Wme=_slicedToArray(yme,2),zme=Wme[0],Vme=Wme[1];kme=isInRange(mme,zme,Vme,Fme),Lme=isSame(mme,Sme,Fme,zme,sme),Hme=isSame(mme,Sme,Fme,Vme,sme)}var Xme=eme?formatValue(Fme,{locale:Sme,format:eme,generateConfig:mme}):void 0,e0e=React__namespace.createElement("div",{className:"".concat(Eme,"-inner")},tme(Fme));Mme.push(React__namespace.createElement("td",{key:wme,title:Xme,className:classNames(Eme,_objectSpread2(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"".concat(Eme,"-disabled"),Bme),"".concat(Eme,"-hover"),(gme||[]).some(function(Ume){return isSame(mme,Sme,Fme,Ume,sme)})),"".concat(Eme,"-in-range"),kme&&!Lme&&!Hme),"".concat(Eme,"-range-start"),Lme),"".concat(Eme,"-range-end"),Hme),"".concat(ume,"-cell-selected"),!yme&&sme!=="week"&&Pme(Fme)),nme(Fme))),onClick:function(){Bme||_me(Fme)},onDoubleClick:function(){!Bme&&Rme&&Rme()},onMouseEnter:function(){Bme||pme==null||pme(Fme)},onMouseLeave:function(){Bme||pme==null||pme(null)}},hme?hme(Fme,{prefixCls:ume,originNode:e0e,today:fme,type:sme,locale:Sme}):e0e))},wme=0;wme<x_;wme+=1)Ime();$me.push(React__namespace.createElement("tr",{key:Dme,className:zP==null?void 0:zP(Nme)},Mme))}return React__namespace.createElement("div",{className:"".concat(ume,"-body")},React__namespace.createElement("table",{className:"".concat(ume,"-content")},rme&&React__namespace.createElement("thead",null,React__namespace.createElement("tr",null,rme)),React__namespace.createElement("tbody",null,$me)))}var HIDDEN_STYLE$2={visibility:"hidden"};function PanelHeader(Ff){var kh=Ff.offset,x_=Ff.superOffset,$_=Ff.onChange,B_=Ff.getStart,$P=Ff.getEnd,zP=Ff.children,eme=usePanelContext(),tme=eme.prefixCls,nme=eme.prevIcon,rme=nme===void 0?"‹":nme,ame=eme.nextIcon,ome=ame===void 0?"›":ame,ime=eme.superPrevIcon,cme=ime===void 0?"«":ime,ume=eme.superNextIcon,sme=ume===void 0?"»":ume,fme=eme.minDate,lme=eme.maxDate,hme=eme.generateConfig,pme=eme.locale,gme=eme.pickerValue,yme=eme.panelType,mme="".concat(tme,"-header"),bme=React__namespace.useContext(PickerHackContext),Sme=bme.hidePrev,_me=bme.hideNext,Cme=bme.hideHeader,Eme=React__namespace.useMemo(function(){if(!fme||!kh||!$P)return!1;var Ome=$P(kh(-1,gme));return!isSameOrAfter(hme,pme,Ome,fme,yme)},[fme,kh,gme,$P,hme,pme,yme]),Tme=React__namespace.useMemo(function(){if(!fme||!x_||!$P)return!1;var Ome=$P(x_(-1,gme));return!isSameOrAfter(hme,pme,Ome,fme,yme)},[fme,x_,gme,$P,hme,pme,yme]),Rme=React__namespace.useMemo(function(){if(!lme||!kh||!B_)return!1;var Ome=B_(kh(1,gme));return!isSameOrAfter(hme,pme,lme,Ome,yme)},[lme,kh,gme,B_,hme,pme,yme]),Pme=React__namespace.useMemo(function(){if(!lme||!x_||!B_)return!1;var Ome=B_(x_(1,gme));return!isSameOrAfter(hme,pme,lme,Ome,yme)},[lme,x_,gme,B_,hme,pme,yme]),$me=function(Ame){kh&&$_(kh(Ame,gme))},Dme=function(Ame){x_&&$_(x_(Ame,gme))};if(Cme)return null;var Mme="".concat(mme,"-prev-btn"),Nme="".concat(mme,"-next-btn"),Ime="".concat(mme,"-super-prev-btn"),wme="".concat(mme,"-super-next-btn");return React__namespace.createElement("div",{className:mme},x_&&React__namespace.createElement("button",{type:"button",onClick:function(){return Dme(-1)},tabIndex:-1,className:classNames(Ime,Tme&&"".concat(Ime,"-disabled")),disabled:Tme,style:Sme?HIDDEN_STYLE$2:{}},cme),kh&&React__namespace.createElement("button",{type:"button",onClick:function(){return $me(-1)},tabIndex:-1,className:classNames(Mme,Eme&&"".concat(Mme,"-disabled")),disabled:Eme,style:Sme?HIDDEN_STYLE$2:{}},rme),React__namespace.createElement("div",{className:"".concat(mme,"-view")},zP),kh&&React__namespace.createElement("button",{type:"button",onClick:function(){return $me(1)},tabIndex:-1,className:classNames(Nme,Rme&&"".concat(Nme,"-disabled")),disabled:Rme,style:_me?HIDDEN_STYLE$2:{}},ome),x_&&React__namespace.createElement("button",{type:"button",onClick:function(){return Dme(1)},tabIndex:-1,className:classNames(wme,Pme&&"".concat(wme,"-disabled")),disabled:Pme,style:_me?HIDDEN_STYLE$2:{}},sme))}function DatePanel(Ff){var kh=Ff.prefixCls,x_=Ff.panelName,$_=x_===void 0?"date":x_,B_=Ff.locale,$P=Ff.generateConfig,zP=Ff.pickerValue,eme=Ff.onPickerValueChange,tme=Ff.onModeChange,nme=Ff.mode,rme=nme===void 0?"date":nme,ame=Ff.disabledDate,ome=Ff.onSelect,ime=Ff.onHover,cme=Ff.showWeek,ume="".concat(kh,"-").concat($_,"-panel"),sme="".concat(kh,"-cell"),fme=rme==="week",lme=useInfo(Ff,rme),hme=_slicedToArray(lme,2),pme=hme[0],gme=hme[1],yme=$P.locale.getWeekFirstDay(B_.locale),mme=$P.setDate(zP,1),bme=getWeekStartDate(B_.locale,$P,mme),Sme=$P.getMonth(zP),_me=fme||cme?function(wme){var Ome=ame==null?void 0:ame(wme,{type:"week"});return React__namespace.createElement("td",{key:"week",className:classNames(sme,"".concat(sme,"-week"),_defineProperty({},"".concat(sme,"-disabled"),Ome)),onClick:function(){Ome||ome(wme)},onMouseEnter:function(){Ome||ime==null||ime(wme)},onMouseLeave:function(){Ome||ime==null||ime(null)}},React__namespace.createElement("div",{className:"".concat(sme,"-inner")},$P.locale.getWeek(B_.locale,wme)))}:null,Cme=[],Eme=B_.shortWeekDays||($P.locale.getShortWeekDays?$P.locale.getShortWeekDays(B_.locale):[]);_me&&Cme.push(React__namespace.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Tme=0;Tme<WEEK_DAY_COUNT;Tme+=1)Cme.push(React__namespace.createElement("th",{key:Tme},Eme[(Tme+yme)%WEEK_DAY_COUNT]));var Rme=function(Ome,Ame){return $P.addDate(Ome,Ame)},Pme=function(Ome){return formatValue(Ome,{locale:B_,format:B_.cellDateFormat,generateConfig:$P})},$me=function(Ome){var Ame=_defineProperty(_defineProperty({},"".concat(kh,"-cell-in-view"),isSameMonth($P,Ome,zP)),"".concat(kh,"-cell-today"),isSameDate($P,Ome,gme));return Ame},Dme=B_.shortMonths||($P.locale.getShortMonths?$P.locale.getShortMonths(B_.locale):[]),Mme=React__namespace.createElement("button",{type:"button",key:"year",onClick:function(){tme("year",zP)},tabIndex:-1,className:"".concat(kh,"-year-btn")},formatValue(zP,{locale:B_,format:B_.yearFormat,generateConfig:$P})),Nme=React__namespace.createElement("button",{type:"button",key:"month",onClick:function(){tme("month",zP)},tabIndex:-1,className:"".concat(kh,"-month-btn")},B_.monthFormat?formatValue(zP,{locale:B_,format:B_.monthFormat,generateConfig:$P}):Dme[Sme]),Ime=B_.monthBeforeYear?[Nme,Mme]:[Mme,Nme];return React__namespace.createElement(PanelContext.Provider,{value:pme},React__namespace.createElement("div",{className:classNames(ume,cme&&"".concat(ume,"-show-week"))},React__namespace.createElement(PanelHeader,{offset:function(Ome){return $P.addMonth(zP,Ome)},superOffset:function(Ome){return $P.addYear(zP,Ome)},onChange:eme,getStart:function(Ome){return $P.setDate(Ome,1)},getEnd:function(Ome){var Ame=$P.setDate(Ome,1);return Ame=$P.addMonth(Ame,1),$P.addDate(Ame,-1)}},Ime),React__namespace.createElement(PanelBody,_extends({titleFormat:B_.fieldDateFormat},Ff,{colNum:WEEK_DAY_COUNT,rowNum:6,baseDate:bme,headerCells:Cme,getCellDate:Rme,getCellText:Pme,getCellClassName:$me,prefixColumn:_me,cellSelection:!fme}))))}var SPEED_PTG=1/3;function useScrollTo(Ff,kh){var x_=React__namespace.useRef(!1),$_=React__namespace.useRef(null),B_=React__namespace.useRef(null),$P=function(){return x_.current},zP=function(){wrapperRaf.cancel($_.current),x_.current=!1},eme=React__namespace.useRef(),tme=function(){var ame=Ff.current;if(B_.current=null,eme.current=0,ame){var ome=ame.querySelector('[data-value="'.concat(kh,'"]')),ime=ame.querySelector("li"),cme=function ume(){zP(),x_.current=!0,eme.current+=1;var sme=ame.scrollTop,fme=ime.offsetTop,lme=ome.offsetTop,hme=lme-fme;if(lme===0&&ome!==ime||!isVisible(ame)){eme.current<=5&&($_.current=wrapperRaf(ume));return}var pme=sme+(hme-sme)*SPEED_PTG,gme=Math.abs(hme-pme);if(B_.current!==null&&B_.current<gme){zP();return}if(B_.current=gme,gme<=1){ame.scrollTop=hme,zP();return}ame.scrollTop=pme,$_.current=wrapperRaf(ume)};ome&&ime&&cme()}},nme=useEvent(tme);return[nme,zP,$P]}var SCROLL_DELAY=300;function TimeColumn(Ff){var kh=Ff.units,x_=Ff.value,$_=Ff.optionalValue,B_=Ff.type,$P=Ff.onChange,zP=Ff.onDblClick,eme=Ff.changeOnScroll,tme=usePanelContext(),nme=tme.prefixCls,rme=tme.cellRender,ame=tme.now,ome=tme.locale,ime="".concat(nme,"-time-panel"),cme="".concat(nme,"-time-panel-cell"),ume=React__namespace.useRef(null),sme=React__namespace.useRef(),fme=function(){clearTimeout(sme.current)},lme=useScrollTo(ume,x_??$_),hme=_slicedToArray(lme,3),pme=hme[0],gme=hme[1],yme=hme[2];useLayoutEffect$1(function(){return pme(),fme(),function(){gme(),fme()}},[x_,$_,kh]);var mme=function(_me){fme();var Cme=_me.target;!yme()&&eme&&(sme.current=setTimeout(function(){var Eme=ume.current,Tme=Eme.querySelector("li").offsetTop,Rme=Array.from(Eme.querySelectorAll("li")),Pme=Rme.map(function(Ime){return Ime.offsetTop-Tme}),$me=Pme.map(function(Ime,wme){return kh[wme].disabled?Number.MAX_SAFE_INTEGER:Math.abs(Ime-Cme.scrollTop)}),Dme=Math.min.apply(Math,_toConsumableArray($me)),Mme=$me.findIndex(function(Ime){return Ime===Dme}),Nme=kh[Mme];Nme&&!Nme.disabled&&$P(Nme.value)},SCROLL_DELAY))},bme="".concat(ime,"-column");return React__namespace.createElement("ul",{className:bme,ref:ume,"data-type":B_,onScroll:mme},kh.map(function(Sme){var _me=Sme.label,Cme=Sme.value,Eme=Sme.disabled,Tme=React__namespace.createElement("div",{className:"".concat(cme,"-inner")},_me);return React__namespace.createElement("li",{key:Cme,className:classNames(cme,_defineProperty(_defineProperty({},"".concat(cme,"-selected"),x_===Cme),"".concat(cme,"-disabled"),Eme)),onClick:function(){Eme||$P(Cme)},onDoubleClick:function(){!Eme&&zP&&zP()},"data-value":Cme},rme?rme(Cme,{prefixCls:nme,originNode:Tme,today:ame,type:"time",subType:B_,locale:ome}):Tme)}))}function isAM(Ff){return Ff<12}function TimePanelBody(Ff){var kh=Ff.showHour,x_=Ff.showMinute,$_=Ff.showSecond,B_=Ff.showMillisecond,$P=Ff.use12Hours,zP=Ff.changeOnScroll,eme=usePanelContext(),tme=eme.prefixCls,nme=eme.values,rme=eme.generateConfig,ame=eme.locale,ome=eme.onSelect,ime=eme.pickerValue,cme=(nme==null?void 0:nme[0])||null,ume=React__namespace.useContext(PickerHackContext),sme=ume.onCellDblClick,fme=useTimeInfo(rme,Ff,cme),lme=_slicedToArray(fme,5),hme=lme[0],pme=lme[1],gme=lme[2],yme=lme[3],mme=lme[4],bme=function(h0e){var E0e=cme&&rme[h0e](cme),P0e=ime&&rme[h0e](ime);return[E0e,P0e]},Sme=bme("getHour"),_me=_slicedToArray(Sme,2),Cme=_me[0],Eme=_me[1],Tme=bme("getMinute"),Rme=_slicedToArray(Tme,2),Pme=Rme[0],$me=Rme[1],Dme=bme("getSecond"),Mme=_slicedToArray(Dme,2),Nme=Mme[0],Ime=Mme[1],wme=bme("getMillisecond"),Ome=_slicedToArray(wme,2),Ame=Ome[0],Fme=Ome[1],Bme=Cme===null?null:isAM(Cme)?"am":"pm",kme=React__namespace.useMemo(function(){return $P?isAM(Cme)?pme.filter(function(u0e){return isAM(u0e.value)}):pme.filter(function(u0e){return!isAM(u0e.value)}):pme},[Cme,pme,$P]),Lme=function(h0e,E0e){var P0e,y0e=h0e.filter(function($0e){return!$0e.disabled});return E0e??(y0e==null||(P0e=y0e[0])===null||P0e===void 0?void 0:P0e.value)},Hme=Lme(pme,Cme),Wme=React__namespace.useMemo(function(){return gme(Hme)},[gme,Hme]),zme=Lme(Wme,Pme),Vme=React__namespace.useMemo(function(){return yme(Hme,zme)},[yme,Hme,zme]),Xme=Lme(Vme,Nme),e0e=React__namespace.useMemo(function(){return mme(Hme,zme,Xme)},[mme,Hme,zme,Xme]),Ume=Lme(e0e,Ame),Jme=React__namespace.useMemo(function(){if(!$P)return[];var u0e=rme.getNow(),h0e=rme.setHour(u0e,6),E0e=rme.setHour(u0e,18),P0e=function($0e,C0e){var z0e=ame.cellMeridiemFormat;return z0e?formatValue($0e,{generateConfig:rme,locale:ame,format:z0e}):C0e};return[{label:P0e(h0e,"AM"),value:"am",disabled:pme.every(function(y0e){return y0e.disabled||!isAM(y0e.value)})},{label:P0e(E0e,"PM"),value:"pm",disabled:pme.every(function(y0e){return y0e.disabled||isAM(y0e.value)})}]},[pme,$P,rme,ame]),s0e=function(h0e){var E0e=hme(h0e);ome(E0e)},d0e=React__namespace.useMemo(function(){var u0e=cme||ime||rme.getNow(),h0e=function(P0e){return P0e!=null};return h0e(Cme)?(u0e=rme.setHour(u0e,Cme),u0e=rme.setMinute(u0e,Pme),u0e=rme.setSecond(u0e,Nme),u0e=rme.setMillisecond(u0e,Ame)):h0e(Eme)?(u0e=rme.setHour(u0e,Eme),u0e=rme.setMinute(u0e,$me),u0e=rme.setSecond(u0e,Ime),u0e=rme.setMillisecond(u0e,Fme)):h0e(Hme)&&(u0e=rme.setHour(u0e,Hme),u0e=rme.setMinute(u0e,zme),u0e=rme.setSecond(u0e,Xme),u0e=rme.setMillisecond(u0e,Ume)),u0e},[cme,ime,Cme,Pme,Nme,Ame,Hme,zme,Xme,Ume,Eme,$me,Ime,Fme,rme]),Zme=function(h0e){s0e(rme.setHour(d0e,h0e))},Qme=function(h0e){s0e(rme.setMinute(d0e,h0e))},a0e=function(h0e){s0e(rme.setSecond(d0e,h0e))},t0e=function(h0e){s0e(rme.setMillisecond(d0e,h0e))},o0e=function(h0e){h0e==="am"&&!isAM(Cme)?s0e(rme.setHour(d0e,Cme-12)):h0e==="pm"&&isAM(Cme)&&s0e(rme.setHour(d0e,Cme+12))},g0e={onDblClick:sme,changeOnScroll:zP};return React__namespace.createElement("div",{className:"".concat(tme,"-content")},kh&&React__namespace.createElement(TimeColumn,_extends({units:kme,value:Cme,optionalValue:Eme,type:"hour",onChange:Zme},g0e)),x_&&React__namespace.createElement(TimeColumn,_extends({units:Wme,value:Pme,optionalValue:$me,type:"minute",onChange:Qme},g0e)),$_&&React__namespace.createElement(TimeColumn,_extends({units:Vme,value:Nme,optionalValue:Ime,type:"second",onChange:a0e},g0e)),B_&&React__namespace.createElement(TimeColumn,_extends({units:e0e,value:Ame,optionalValue:Fme,type:"millisecond",onChange:t0e},g0e)),$P&&React__namespace.createElement(TimeColumn,_extends({units:Jme,value:Bme,type:"meridiem",onChange:o0e},g0e)))}function TimePanel(Ff){var kh=Ff.prefixCls,x_=Ff.value,$_=Ff.locale,B_=Ff.generateConfig,$P=Ff.showTime,zP=$P||{},eme=zP.format,tme="".concat(kh,"-time-panel"),nme=useInfo(Ff,"time"),rme=_slicedToArray(nme,1),ame=rme[0];return React__namespace.createElement(PanelContext.Provider,{value:ame},React__namespace.createElement("div",{className:classNames(tme)},React__namespace.createElement(PanelHeader,null,x_?formatValue(x_,{locale:$_,format:eme,generateConfig:B_}):" "),React__namespace.createElement(TimePanelBody,$P)))}function DateTimePanel(Ff){var kh=Ff.prefixCls,x_=Ff.generateConfig,$_=Ff.showTime,B_=Ff.onSelect,$P=Ff.value,zP=Ff.pickerValue,eme=Ff.onHover,tme="".concat(kh,"-datetime-panel"),nme=useTimeInfo(x_,$_),rme=_slicedToArray(nme,1),ame=rme[0],ome=function(sme){return $P?fillTime(x_,sme,$P):fillTime(x_,sme,zP)},ime=function(sme){eme(sme&&ome(sme))},cme=function(sme){var fme=ome(sme);B_(ame(fme,fme))};return React__namespace.createElement("div",{className:tme},React__namespace.createElement(DatePanel,_extends({},Ff,{onSelect:cme,onHover:ime})),React__namespace.createElement(TimePanel,Ff))}function DecadePanel(Ff){var kh=Ff.prefixCls,x_=Ff.locale,$_=Ff.generateConfig,B_=Ff.pickerValue,$P=Ff.disabledDate,zP=Ff.onPickerValueChange,eme="".concat(kh,"-decade-panel"),tme=useInfo(Ff,"decade"),nme=_slicedToArray(tme,1),rme=nme[0],ame=function(yme){var mme=Math.floor($_.getYear(B_)/100)*100;return $_.setYear(yme,mme)},ome=function(yme){var mme=ame(yme);return $_.addYear(mme,99)},ime=ame(B_),cme=ome(B_),ume=$_.addYear(ime,-10),sme=function(yme,mme){return $_.addYear(yme,mme*10)},fme=function(yme){var mme=x_.cellYearFormat,bme=formatValue(yme,{locale:x_,format:mme,generateConfig:$_}),Sme=formatValue($_.addYear(yme,9),{locale:x_,format:mme,generateConfig:$_});return"".concat(bme,"-").concat(Sme)},lme=function(yme){return _defineProperty({},"".concat(kh,"-cell-in-view"),isSameDecade($_,yme,ime)||isSameDecade($_,yme,cme)||isInRange($_,ime,cme,yme))},hme=$P?function(gme,yme){var mme=$_.setDate(gme,1),bme=$_.setMonth(mme,0),Sme=$_.setYear(bme,Math.floor($_.getYear(bme)/10)*10),_me=$_.addYear(Sme,10),Cme=$_.addDate(_me,-1);return $P(Sme,yme)&&$P(Cme,yme)}:null,pme="".concat(formatValue(ime,{locale:x_,format:x_.yearFormat,generateConfig:$_}),"-").concat(formatValue(cme,{locale:x_,format:x_.yearFormat,generateConfig:$_}));return React__namespace.createElement(PanelContext.Provider,{value:rme},React__namespace.createElement("div",{className:eme},React__namespace.createElement(PanelHeader,{superOffset:function(yme){return $_.addYear(B_,yme*100)},onChange:zP,getStart:ame,getEnd:ome},pme),React__namespace.createElement(PanelBody,_extends({},Ff,{disabledDate:hme,colNum:3,rowNum:4,baseDate:ume,getCellDate:sme,getCellText:fme,getCellClassName:lme}))))}function MonthPanel(Ff){var kh=Ff.prefixCls,x_=Ff.locale,$_=Ff.generateConfig,B_=Ff.pickerValue,$P=Ff.disabledDate,zP=Ff.onPickerValueChange,eme=Ff.onModeChange,tme="".concat(kh,"-month-panel"),nme=useInfo(Ff,"month"),rme=_slicedToArray(nme,1),ame=rme[0],ome=$_.setMonth(B_,0),ime=x_.shortMonths||($_.locale.getShortMonths?$_.locale.getShortMonths(x_.locale):[]),cme=function(pme,gme){return $_.addMonth(pme,gme)},ume=function(pme){var gme=$_.getMonth(pme);return x_.monthFormat?formatValue(pme,{locale:x_,format:x_.monthFormat,generateConfig:$_}):ime[gme]},sme=function(){return _defineProperty({},"".concat(kh,"-cell-in-view"),!0)},fme=$P?function(hme,pme){var gme=$_.setDate(hme,1),yme=$_.setMonth(gme,$_.getMonth(gme)+1),mme=$_.addDate(yme,-1);return $P(gme,pme)&&$P(mme,pme)}:null,lme=React__namespace.createElement("button",{type:"button",key:"year",onClick:function(){eme("year")},tabIndex:-1,className:"".concat(kh,"-year-btn")},formatValue(B_,{locale:x_,format:x_.yearFormat,generateConfig:$_}));return React__namespace.createElement(PanelContext.Provider,{value:ame},React__namespace.createElement("div",{className:tme},React__namespace.createElement(PanelHeader,{superOffset:function(pme){return $_.addYear(B_,pme)},onChange:zP,getStart:function(pme){return $_.setMonth(pme,0)},getEnd:function(pme){return $_.setMonth(pme,11)}},lme),React__namespace.createElement(PanelBody,_extends({},Ff,{disabledDate:fme,titleFormat:x_.fieldMonthFormat,colNum:3,rowNum:4,baseDate:ome,getCellDate:cme,getCellText:ume,getCellClassName:sme}))))}function QuarterPanel(Ff){var kh=Ff.prefixCls,x_=Ff.locale,$_=Ff.generateConfig,B_=Ff.pickerValue,$P=Ff.onPickerValueChange,zP=Ff.onModeChange,eme="".concat(kh,"-quarter-panel"),tme=useInfo(Ff,"quarter"),nme=_slicedToArray(tme,1),rme=nme[0],ame=$_.setMonth(B_,0),ome=function(fme,lme){return $_.addMonth(fme,lme*3)},ime=function(fme){return formatValue(fme,{locale:x_,format:x_.cellQuarterFormat,generateConfig:$_})},cme=function(){return _defineProperty({},"".concat(kh,"-cell-in-view"),!0)},ume=React__namespace.createElement("button",{type:"button",key:"year",onClick:function(){zP("year")},tabIndex:-1,className:"".concat(kh,"-year-btn")},formatValue(B_,{locale:x_,format:x_.yearFormat,generateConfig:$_}));return React__namespace.createElement(PanelContext.Provider,{value:rme},React__namespace.createElement("div",{className:eme},React__namespace.createElement(PanelHeader,{superOffset:function(fme){return $_.addYear(B_,fme)},onChange:$P,getStart:function(fme){return $_.setMonth(fme,0)},getEnd:function(fme){return $_.setMonth(fme,11)}},ume),React__namespace.createElement(PanelBody,_extends({},Ff,{titleFormat:x_.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:ame,getCellDate:ome,getCellText:ime,getCellClassName:cme}))))}function WeekPanel(Ff){var kh=Ff.prefixCls,x_=Ff.generateConfig,$_=Ff.locale,B_=Ff.value,$P=Ff.hoverValue,zP=Ff.hoverRangeValue,eme=$_.locale,tme="".concat(kh,"-week-panel-row"),nme=function(ame){var ome={};if(zP){var ime=_slicedToArray(zP,2),cme=ime[0],ume=ime[1],sme=isSameWeek(x_,eme,cme,ame),fme=isSameWeek(x_,eme,ume,ame);ome["".concat(tme,"-range-start")]=sme,ome["".concat(tme,"-range-end")]=fme,ome["".concat(tme,"-range-hover")]=!sme&&!fme&&isInRange(x_,cme,ume,ame)}return $P&&(ome["".concat(tme,"-hover")]=$P.some(function(lme){return isSameWeek(x_,eme,ame,lme)})),classNames(tme,_defineProperty({},"".concat(tme,"-selected"),!zP&&isSameWeek(x_,eme,B_,ame)),ome)};return React__namespace.createElement(DatePanel,_extends({},Ff,{mode:"week",panelName:"week",rowClassName:nme}))}function YearPanel(Ff){var kh=Ff.prefixCls,x_=Ff.locale,$_=Ff.generateConfig,B_=Ff.pickerValue,$P=Ff.disabledDate,zP=Ff.onPickerValueChange,eme=Ff.onModeChange,tme="".concat(kh,"-year-panel"),nme=useInfo(Ff,"year"),rme=_slicedToArray(nme,1),ame=rme[0],ome=function(mme){var bme=Math.floor($_.getYear(B_)/10)*10;return $_.setYear(mme,bme)},ime=function(mme){var bme=ome(mme);return $_.addYear(bme,9)},cme=ome(B_),ume=ime(B_),sme=$_.addYear(cme,-1),fme=function(mme,bme){return $_.addYear(mme,bme)},lme=function(mme){return formatValue(mme,{locale:x_,format:x_.cellYearFormat,generateConfig:$_})},hme=function(mme){return _defineProperty({},"".concat(kh,"-cell-in-view"),isSameYear($_,mme,cme)||isSameYear($_,mme,ume)||isInRange($_,cme,ume,mme))},pme=$P?function(yme,mme){var bme=$_.setMonth(yme,0),Sme=$_.setDate(bme,1),_me=$_.setMonth(yme,$_.getMonth(yme)+1),Cme=$_.addDate(_me,-1);return $P(Sme,mme)&&$P(Cme,mme)}:null,gme=React__namespace.createElement("button",{type:"button",key:"year",onClick:function(){eme("decade")},tabIndex:-1,className:"".concat(kh,"-decade-btn")},formatValue(cme,{locale:x_,format:x_.yearFormat,generateConfig:$_}),"-",formatValue(ume,{locale:x_,format:x_.yearFormat,generateConfig:$_}));return React__namespace.createElement(PanelContext.Provider,{value:ame},React__namespace.createElement("div",{className:tme},React__namespace.createElement(PanelHeader,{superOffset:function(mme){return $_.addYear(B_,mme*10)},onChange:zP,getStart:ome,getEnd:ime},gme),React__namespace.createElement(PanelBody,_extends({},Ff,{disabledDate:pme,titleFormat:x_.fieldYearFormat,colNum:3,rowNum:4,baseDate:sme,getCellDate:fme,getCellText:lme,getCellClassName:hme}))))}var DefaultComponents={date:DatePanel,datetime:DateTimePanel,week:WeekPanel,month:MonthPanel,quarter:QuarterPanel,year:YearPanel,decade:DecadePanel,time:TimePanel};function PickerPanel(Ff,kh){var x_,$_=Ff.locale,B_=Ff.generateConfig,$P=Ff.direction,zP=Ff.prefixCls,eme=Ff.tabIndex,tme=eme===void 0?0:eme,nme=Ff.multiple,rme=Ff.defaultValue,ame=Ff.value,ome=Ff.onChange,ime=Ff.onSelect,cme=Ff.defaultPickerValue,ume=Ff.pickerValue,sme=Ff.onPickerValueChange,fme=Ff.mode,lme=Ff.onPanelChange,hme=Ff.picker,pme=hme===void 0?"date":hme,gme=Ff.showTime,yme=Ff.hoverValue,mme=Ff.hoverRangeValue,bme=Ff.cellRender,Sme=Ff.dateRender,_me=Ff.monthCellRender,Cme=Ff.components,Eme=Cme===void 0?{}:Cme,Tme=Ff.hideHeader,Rme=((x_=React__namespace.useContext(PickerContext))===null||x_===void 0?void 0:x_.prefixCls)||zP||"rc-picker",Pme=React__namespace.useRef();React__namespace.useImperativeHandle(kh,function(){return{nativeElement:Pme.current}});var $me=getTimeProps(Ff),Dme=_slicedToArray($me,4),Mme=Dme[0],Nme=Dme[1],Ime=Dme[2],wme=Dme[3],Ome=useLocale($_,Nme),Ame=pme==="date"&&gme?"datetime":pme,Fme=React__namespace.useMemo(function(){return fillShowTimeConfig(Ame,Ime,wme,Mme,Ome)},[Ame,Ime,wme,Mme,Ome]),Bme=B_.getNow(),kme=useMergedState(pme,{value:fme,postState:function(k0e){return k0e||"date"}}),Lme=_slicedToArray(kme,2),Hme=Lme[0],Wme=Lme[1],zme=Hme==="date"&&Fme?"datetime":Hme,Vme=useToggleDates(B_,$_,Ame),Xme=useMergedState(rme,{value:ame}),e0e=_slicedToArray(Xme,2),Ume=e0e[0],Jme=e0e[1],s0e=React__namespace.useMemo(function(){var b0e=toArray$3(Ume).filter(function(k0e){return k0e});return nme?b0e:b0e.slice(0,1)},[Ume,nme]),d0e=useEvent(function(b0e){Jme(b0e),ome&&(b0e===null||s0e.length!==b0e.length||s0e.some(function(k0e,T0e){return!isSame(B_,$_,k0e,b0e[T0e],Ame)}))&&(ome==null||ome(nme?b0e:b0e[0]))}),Zme=useEvent(function(b0e){if(ime==null||ime(b0e),Hme===pme){var k0e=nme?Vme(s0e,b0e):[b0e];d0e(k0e)}}),Qme=useMergedState(cme||s0e[0]||Bme,{value:ume}),a0e=_slicedToArray(Qme,2),t0e=a0e[0],o0e=a0e[1];React__namespace.useEffect(function(){s0e[0]&&!ume&&o0e(s0e[0])},[s0e[0]]);var g0e=function(k0e,T0e){lme==null||lme(k0e||ume,T0e||Hme)},u0e=function(k0e){var T0e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o0e(k0e),sme==null||sme(k0e),T0e&&g0e(k0e)},h0e=function(k0e,T0e){Wme(k0e),T0e&&u0e(T0e),g0e(T0e,k0e)},E0e=function(k0e){if(Zme(k0e),u0e(k0e),Hme!==pme){var T0e=["decade","year"],L0e=[].concat(T0e,["month"]),Y0e={quarter:[].concat(T0e,["quarter"]),week:[].concat(_toConsumableArray(L0e),["week"]),date:[].concat(_toConsumableArray(L0e),["date"])},mye=Y0e[pme]||L0e,Q0e=mye.indexOf(Hme),U0e=mye[Q0e+1];U0e&&h0e(U0e,k0e)}},P0e=React__namespace.useMemo(function(){var b0e,k0e;if(Array.isArray(mme)){var T0e=_slicedToArray(mme,2);b0e=T0e[0],k0e=T0e[1]}else b0e=mme;return!b0e&&!k0e?null:(b0e=b0e||k0e,k0e=k0e||b0e,B_.isAfter(b0e,k0e)?[k0e,b0e]:[b0e,k0e])},[mme,B_]),y0e=useCellRender(bme,Sme,_me),$0e=Eme[zme]||DefaultComponents[zme]||DatePanel,C0e=React__namespace.useContext(PickerHackContext),z0e=React__namespace.useMemo(function(){return _objectSpread2(_objectSpread2({},C0e),{},{hideHeader:Tme})},[C0e,Tme]);process.env.NODE_ENV!=="production"&&warningOnce(!s0e||s0e.every(function(b0e){return B_.isValidate(b0e)}),"Invalidate date pass to `value` or `defaultValue`.");var D0e="".concat(Rme,"-panel"),O0e=pickProps(Ff,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return React__namespace.createElement(PickerHackContext.Provider,{value:z0e},React__namespace.createElement("div",{ref:Pme,tabIndex:tme,className:classNames(D0e,_defineProperty({},"".concat(D0e,"-rtl"),$P==="rtl"))},React__namespace.createElement($0e,_extends({},O0e,{showTime:Fme,prefixCls:Rme,locale:Ome,generateConfig:B_,onModeChange:h0e,pickerValue:t0e,onPickerValueChange:function(k0e){u0e(k0e,!0)},value:s0e[0],onSelect:E0e,values:s0e,cellRender:y0e,hoverRangeValue:P0e,hoverValue:yme}))))}var RefPanelPicker=React__namespace.memo(React__namespace.forwardRef(PickerPanel));process.env.NODE_ENV!=="production"&&(RefPanelPicker.displayName="PanelPicker");function PopupPanel(Ff){var kh=Ff.picker,x_=Ff.multiplePanel,$_=Ff.pickerValue,B_=Ff.onPickerValueChange,$P=Ff.needConfirm,zP=Ff.onSubmit,eme=Ff.range,tme=Ff.hoverValue,nme=React__namespace.useContext(PickerContext),rme=nme.prefixCls,ame=nme.generateConfig,ome=React__namespace.useCallback(function(lme,hme){return offsetPanelDate(ame,kh,lme,hme)},[ame,kh]),ime=React__namespace.useMemo(function(){return ome($_,1)},[$_,ome]),cme=function(hme){B_(ome(hme,-1))},ume={onCellDblClick:function(){$P&&zP()}},sme=kh==="time",fme=_objectSpread2(_objectSpread2({},Ff),{},{hoverValue:null,hoverRangeValue:null,hideHeader:sme});return eme?fme.hoverRangeValue=tme:fme.hoverValue=tme,x_?React__namespace.createElement("div",{className:"".concat(rme,"-panels")},React__namespace.createElement(PickerHackContext.Provider,{value:_objectSpread2(_objectSpread2({},ume),{},{hideNext:!0})},React__namespace.createElement(RefPanelPicker,fme)),React__namespace.createElement(PickerHackContext.Provider,{value:_objectSpread2(_objectSpread2({},ume),{},{hidePrev:!0})},React__namespace.createElement(RefPanelPicker,_extends({},fme,{pickerValue:ime,onPickerValueChange:cme})))):React__namespace.createElement(PickerHackContext.Provider,{value:_objectSpread2({},ume)},React__namespace.createElement(RefPanelPicker,fme))}function executeValue(Ff){return typeof Ff=="function"?Ff():Ff}function PresetPanel(Ff){var kh=Ff.prefixCls,x_=Ff.presets,$_=Ff.onClick,B_=Ff.onHover;return x_.length?React__namespace.createElement("div",{className:"".concat(kh,"-presets")},React__namespace.createElement("ul",null,x_.map(function($P,zP){var eme=$P.label,tme=$P.value;return React__namespace.createElement("li",{key:zP,onClick:function(){$_(executeValue(tme))},onMouseEnter:function(){B_(executeValue(tme))},onMouseLeave:function(){B_(null)}},eme)}))):null}function Popup(Ff){var kh=Ff.panelRender,x_=Ff.internalMode,$_=Ff.picker,B_=Ff.showNow,$P=Ff.range,zP=Ff.multiple,eme=Ff.activeOffset,tme=eme===void 0?0:eme,nme=Ff.presets,rme=Ff.onPresetHover,ame=Ff.onPresetSubmit,ome=Ff.onFocus,ime=Ff.onBlur,cme=Ff.direction,ume=Ff.value,sme=Ff.onSelect,fme=Ff.isInvalid,lme=Ff.defaultOpenValue,hme=Ff.onOk,pme=Ff.onSubmit,gme=React__namespace.useContext(PickerContext),yme=gme.prefixCls,mme="".concat(yme,"-panel"),bme=cme==="rtl",Sme=React__namespace.useRef(null),_me=React__namespace.useRef(null),Cme=React__namespace.useState(0),Eme=_slicedToArray(Cme,2),Tme=Eme[0],Rme=Eme[1],Pme=React__namespace.useState(0),$me=_slicedToArray(Pme,2),Dme=$me[0],Mme=$me[1],Nme=function(e0e){e0e.offsetWidth&&Rme(e0e.offsetWidth)};React__namespace.useEffect(function(){if($P){var Xme,e0e=((Xme=Sme.current)===null||Xme===void 0?void 0:Xme.offsetWidth)||0,Ume=Tme-e0e;tme<=Ume?Mme(0):Mme(tme+e0e-Tme)}},[Tme,tme,$P]);function Ime(Xme){return Xme.filter(function(e0e){return e0e})}var wme=React__namespace.useMemo(function(){return Ime(toArray$3(ume))},[ume]),Ome=$_==="time"&&!wme.length,Ame=React__namespace.useMemo(function(){return Ome?Ime([lme]):wme},[Ome,wme,lme]),Fme=Ome?lme:wme,Bme=React__namespace.useMemo(function(){return Ame.length?Ame.some(function(Xme){return fme(Xme)}):!0},[Ame,fme]),kme=function(){Ome&&sme(lme),hme(),pme()},Lme=React__namespace.createElement("div",{className:"".concat(yme,"-panel-layout")},React__namespace.createElement(PresetPanel,{prefixCls:yme,presets:nme,onClick:ame,onHover:rme}),React__namespace.createElement("div",null,React__namespace.createElement(PopupPanel,_extends({},Ff,{value:Fme})),React__namespace.createElement(Footer,_extends({},Ff,{showNow:zP?!1:B_,invalid:Bme,onSubmit:kme}))));kh&&(Lme=kh(Lme));var Hme="".concat(mme,"-container"),Wme="marginLeft",zme="marginRight",Vme=React__namespace.createElement("div",{tabIndex:-1,className:classNames(Hme,"".concat(yme,"-").concat(x_,"-panel-container")),style:_defineProperty(_defineProperty({},bme?zme:Wme,Dme),bme?Wme:zme,"auto"),onFocus:ome,onBlur:ime},Lme);return $P&&(Vme=React__namespace.createElement("div",{ref:_me,className:classNames("".concat(yme,"-range-wrapper"),"".concat(yme,"-").concat($_,"-range-wrapper"))},React__namespace.createElement("div",{ref:Sme,className:"".concat(yme,"-range-arrow"),style:_defineProperty({},bme?"right":"left",tme)}),React__namespace.createElement(RefResizeObserver,{onResize:Nme},Vme))),Vme}function useInputProps(Ff,kh){var x_=Ff.format,$_=Ff.maskFormat,B_=Ff.generateConfig,$P=Ff.locale,zP=Ff.preserveInvalidOnBlur,eme=Ff.inputReadOnly,tme=Ff.required,nme=Ff["aria-required"],rme=Ff.onSubmit,ame=Ff.onFocus,ome=Ff.onBlur,ime=Ff.onInputChange,cme=Ff.onInvalid,ume=Ff.open,sme=Ff.onOpenChange,fme=Ff.onKeyDown,lme=Ff.onChange,hme=Ff.activeHelp,pme=Ff.name,gme=Ff.autoComplete,yme=Ff.id,mme=Ff.value,bme=Ff.invalid,Sme=Ff.placeholder,_me=Ff.disabled,Cme=Ff.activeIndex,Eme=Ff.allHelp,Tme=Ff.picker,Rme=function(Ome,Ame){var Fme=B_.locale.parse($P.locale,Ome,[Ame]);return Fme&&B_.isValidate(Fme)?Fme:null},Pme=x_[0],$me=React__namespace.useCallback(function(wme){return formatValue(wme,{locale:$P,format:Pme,generateConfig:B_})},[$P,B_,Pme]),Dme=React__namespace.useMemo(function(){return mme.map($me)},[mme,$me]),Mme=React__namespace.useMemo(function(){var wme=Tme==="time"?8:10,Ome=typeof Pme=="function"?Pme(B_.getNow()).length:Pme.length;return Math.max(wme,Ome)+2},[Pme,Tme,B_]),Nme=function(Ome){for(var Ame=0;Ame<x_.length;Ame+=1){var Fme=x_[Ame];if(typeof Fme=="string"){var Bme=Rme(Ome,Fme);if(Bme)return Bme}}return!1},Ime=function(Ome){function Ame(kme){return Ome!==void 0?kme[Ome]:kme}var Fme=pickAttrs(Ff,{aria:!0,data:!0}),Bme=_objectSpread2(_objectSpread2({},Fme),{},{format:$_,validateFormat:function(Lme){return!!Nme(Lme)},preserveInvalidOnBlur:zP,readOnly:eme,required:tme,"aria-required":nme,name:pme,autoComplete:gme,size:Mme,id:Ame(yme),value:Ame(Dme)||"",invalid:Ame(bme),placeholder:Ame(Sme),active:Cme===Ome,helped:Eme||hme&&Cme===Ome,disabled:Ame(_me),onFocus:function(Lme){ame(Lme,Ome)},onBlur:function(Lme){ome(Lme,Ome)},onSubmit:rme,onChange:function(Lme){ime();var Hme=Nme(Lme);if(Hme){cme(!1,Ome),lme(Hme,Ome);return}cme(!!Lme,Ome)},onHelp:function(){sme(!0,{index:Ome})},onKeyDown:function(Lme){var Hme=!1;if(fme==null||fme(Lme,function(){process.env.NODE_ENV!=="production"&&warningOnce(!1,"`preventDefault` callback is deprecated. Please call `event.preventDefault` directly."),Hme=!0}),!Lme.defaultPrevented&&!Hme)switch(Lme.key){case"Escape":sme(!1,{index:Ome});break;case"Enter":ume||sme(!0);break}}},kh==null?void 0:kh({valueTexts:Dme}));return Object.keys(Bme).forEach(function(kme){Bme[kme]===void 0&&delete Bme[kme]}),Bme};return[Ime,$me]}var propNames=["onMouseEnter","onMouseLeave"];function useRootProps(Ff){return React__namespace.useMemo(function(){return pickProps(Ff,propNames)},[Ff])}var _excluded$n=["icon","type"],_excluded2$5=["onClear"];function Icon$1(Ff){var kh=Ff.icon,x_=Ff.type,$_=_objectWithoutProperties(Ff,_excluded$n),B_=React__namespace.useContext(PickerContext),$P=B_.prefixCls;return kh?React__namespace.createElement("span",_extends({className:"".concat($P,"-").concat(x_)},$_),kh):null}function ClearIcon(Ff){var kh=Ff.onClear,x_=_objectWithoutProperties(Ff,_excluded2$5);return React__namespace.createElement(Icon$1,_extends({},x_,{type:"clear",role:"button",onMouseDown:function(B_){B_.preventDefault()},onClick:function(B_){B_.stopPropagation(),kh()}}))}var FORMAT_KEYS=["YYYY","MM","DD","HH","mm","ss","SSS"],REPLACE_KEY="顧",MaskFormat=function(){function Ff(kh){_classCallCheck(this,Ff),_defineProperty(this,"format",void 0),_defineProperty(this,"maskFormat",void 0),_defineProperty(this,"cells",void 0),_defineProperty(this,"maskCells",void 0),this.format=kh;var x_=FORMAT_KEYS.map(function(eme){return"(".concat(eme,")")}).join("|"),$_=new RegExp(x_,"g");this.maskFormat=kh.replace($_,function(eme){return REPLACE_KEY.repeat(eme.length)});var B_=new RegExp("(".concat(FORMAT_KEYS.join("|"),")")),$P=(kh.split(B_)||[]).filter(function(eme){return eme}),zP=0;this.cells=$P.map(function(eme){var tme=FORMAT_KEYS.includes(eme),nme=zP,rme=zP+eme.length;return zP=rme,{text:eme,mask:tme,start:nme,end:rme}}),this.maskCells=this.cells.filter(function(eme){return eme.mask})}return _createClass(Ff,[{key:"getSelection",value:function(x_){var $_=this.maskCells[x_]||{},B_=$_.start,$P=$_.end;return[B_||0,$P||0]}},{key:"match",value:function(x_){for(var $_=0;$_<this.maskFormat.length;$_+=1){var B_=this.maskFormat[$_],$P=x_[$_];if(!$P||B_!==REPLACE_KEY&&B_!==$P)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(x_){for(var $_=Number.MAX_SAFE_INTEGER,B_=0,$P=0;$P<this.maskCells.length;$P+=1){var zP=this.maskCells[$P],eme=zP.start,tme=zP.end;if(x_>=eme&&x_<=tme)return $P;var nme=Math.min(Math.abs(x_-eme),Math.abs(x_-tme));nme<$_&&($_=nme,B_=$P)}return B_}}]),Ff}();function getMaskRange(Ff){var kh={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return kh[Ff]}var _excluded$m=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],Input$4=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.active,$_=Ff.showActiveCls,B_=$_===void 0?!0:$_,$P=Ff.suffixIcon,zP=Ff.format,eme=Ff.validateFormat,tme=Ff.onChange;Ff.onInput;var nme=Ff.helped,rme=Ff.onHelp,ame=Ff.onSubmit,ome=Ff.onKeyDown,ime=Ff.preserveInvalidOnBlur,cme=ime===void 0?!1:ime,ume=Ff.invalid,sme=Ff.clearIcon,fme=_objectWithoutProperties(Ff,_excluded$m),lme=Ff.value,hme=Ff.onFocus,pme=Ff.onBlur,gme=Ff.onMouseUp,yme=React__namespace.useContext(PickerContext),mme=yme.prefixCls,bme=yme.input,Sme=bme===void 0?"input":bme,_me="".concat(mme,"-input"),Cme=React__namespace.useState(!1),Eme=_slicedToArray(Cme,2),Tme=Eme[0],Rme=Eme[1],Pme=React__namespace.useState(lme),$me=_slicedToArray(Pme,2),Dme=$me[0],Mme=$me[1],Nme=React__namespace.useState(""),Ime=_slicedToArray(Nme,2),wme=Ime[0],Ome=Ime[1],Ame=React__namespace.useState(null),Fme=_slicedToArray(Ame,2),Bme=Fme[0],kme=Fme[1],Lme=React__namespace.useState(null),Hme=_slicedToArray(Lme,2),Wme=Hme[0],zme=Hme[1],Vme=Dme||"";React__namespace.useEffect(function(){Mme(lme)},[lme]);var Xme=React__namespace.useRef(),e0e=React__namespace.useRef();React__namespace.useImperativeHandle(kh,function(){return{nativeElement:Xme.current,inputElement:e0e.current,focus:function(b0e){e0e.current.focus(b0e)},blur:function(){e0e.current.blur()}}});var Ume=React__namespace.useMemo(function(){return new MaskFormat(zP||"")},[zP]),Jme=React__namespace.useMemo(function(){return nme?[0,0]:Ume.getSelection(Bme)},[Ume,Bme,nme]),s0e=_slicedToArray(Jme,2),d0e=s0e[0],Zme=s0e[1],Qme=function(b0e){b0e&&b0e!==zP&&b0e!==lme&&rme()},a0e=useEvent(function(O0e){eme(O0e)&&tme(O0e),Mme(O0e),Qme(O0e)}),t0e=function(b0e){if(!zP){var k0e=b0e.target.value;Qme(k0e),Mme(k0e),tme(k0e)}},o0e=function(b0e){var k0e=b0e.clipboardData.getData("text");eme(k0e)&&a0e(k0e)},g0e=React__namespace.useRef(!1),u0e=function(){g0e.current=!0},h0e=function(b0e){var k0e=b0e.target,T0e=k0e.selectionStart,L0e=Ume.getMaskCellIndex(T0e);kme(L0e),zme({}),gme==null||gme(b0e),g0e.current=!1},E0e=function(b0e){Rme(!0),kme(0),Ome(""),hme(b0e)},P0e=function(b0e){pme(b0e)},y0e=function(b0e){Rme(!1),P0e(b0e)};useLockEffect(x_,function(){!x_&&!cme&&Mme(lme)});var $0e=function(b0e){b0e.key==="Enter"&&eme(Vme)&&ame(),ome==null||ome(b0e)},C0e=function(b0e){$0e(b0e);var k0e=b0e.key,T0e=null,L0e=null,Y0e=Zme-d0e,mye=zP.slice(d0e,Zme),Q0e=function(X0e){kme(function(M0e){var J0e=M0e+X0e;return J0e=Math.max(J0e,0),J0e=Math.min(J0e,Ume.size()-1),J0e})},U0e=function(X0e){var M0e=getMaskRange(mye),J0e=_slicedToArray(M0e,3),aye=J0e[0],F0e=J0e[1],cye=J0e[2],yye=Vme.slice(d0e,Zme),W0e=Number(yye);if(isNaN(W0e))return String(cye||(X0e>0?aye:F0e));var sye=W0e+X0e,G0e=F0e-aye+1;return String(aye+(G0e+sye-aye)%G0e)};switch(k0e){case"Backspace":case"Delete":T0e="",L0e=mye;break;case"ArrowLeft":T0e="",Q0e(-1);break;case"ArrowRight":T0e="",Q0e(1);break;case"ArrowUp":T0e="",L0e=U0e(1);break;case"ArrowDown":T0e="",L0e=U0e(-1);break;default:isNaN(Number(k0e))||(T0e=wme+k0e,L0e=T0e);break}if(T0e!==null&&(Ome(T0e),T0e.length>=Y0e&&(Q0e(1),Ome(""))),L0e!==null){var q0e=Vme.slice(0,d0e)+leftPad(L0e,Y0e)+Vme.slice(Zme);a0e(q0e.slice(0,zP.length))}zme({})},z0e=React__namespace.useRef();useLayoutEffect$1(function(){if(!(!Tme||!zP||g0e.current)){if(!Ume.match(Vme)){a0e(zP);return}return e0e.current.setSelectionRange(d0e,Zme),z0e.current=wrapperRaf(function(){e0e.current.setSelectionRange(d0e,Zme)}),function(){wrapperRaf.cancel(z0e.current)}}},[Ume,zP,Tme,Vme,Bme,d0e,Zme,Wme,a0e]);var D0e=zP?{onFocus:E0e,onBlur:y0e,onKeyDown:C0e,onMouseDown:u0e,onMouseUp:h0e,onPaste:o0e}:{};return React__namespace.createElement("div",{ref:Xme,className:classNames(_me,_defineProperty(_defineProperty({},"".concat(_me,"-active"),x_&&B_),"".concat(_me,"-placeholder"),nme))},React__namespace.createElement(Sme,_extends({ref:e0e,"aria-invalid":ume,autoComplete:"off"},fme,{onKeyDown:$0e,onBlur:P0e},D0e,{value:Vme,onChange:t0e})),React__namespace.createElement(Icon$1,{type:"suffix",icon:$P}),sme)});process.env.NODE_ENV!=="production"&&(Input$4.displayName="Input");var _excluded$l=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","onMouseDown","required","aria-required","autoFocus"],_excluded2$4=["index"];function RangeSelector(Ff,kh){var x_=Ff.id,$_=Ff.clearIcon,B_=Ff.suffixIcon,$P=Ff.separator,zP=$P===void 0?"~":$P,eme=Ff.activeIndex;Ff.activeHelp,Ff.allHelp;var tme=Ff.focused;Ff.onFocus,Ff.onBlur,Ff.onKeyDown,Ff.locale,Ff.generateConfig;var nme=Ff.placeholder,rme=Ff.className,ame=Ff.style,ome=Ff.onClick,ime=Ff.onClear,cme=Ff.value;Ff.onChange,Ff.onSubmit,Ff.onInputChange,Ff.format,Ff.maskFormat,Ff.preserveInvalidOnBlur,Ff.onInvalid;var ume=Ff.disabled,sme=Ff.invalid;Ff.inputReadOnly;var fme=Ff.direction;Ff.onOpenChange;var lme=Ff.onActiveOffset,hme=Ff.onMouseDown;Ff.required,Ff["aria-required"];var pme=Ff.autoFocus,gme=_objectWithoutProperties(Ff,_excluded$l),yme=fme==="rtl",mme=React__namespace.useContext(PickerContext),bme=mme.prefixCls,Sme=React__namespace.useMemo(function(){if(typeof x_=="string")return[x_];var Hme=x_||{};return[Hme.start,Hme.end]},[x_]),_me=React__namespace.useRef(),Cme=React__namespace.useRef(),Eme=React__namespace.useRef(),Tme=function(Wme){var zme;return(zme=[Cme,Eme][Wme])===null||zme===void 0?void 0:zme.current};React__namespace.useImperativeHandle(kh,function(){return{nativeElement:_me.current,focus:function(Wme){if(_typeof(Wme)==="object"){var zme,Vme=Wme||{},Xme=Vme.index,e0e=Xme===void 0?0:Xme,Ume=_objectWithoutProperties(Vme,_excluded2$4);(zme=Tme(e0e))===null||zme===void 0||zme.focus(Ume)}else{var Jme;(Jme=Tme(Wme??0))===null||Jme===void 0||Jme.focus()}},blur:function(){var Wme,zme;(Wme=Tme(0))===null||Wme===void 0||Wme.blur(),(zme=Tme(1))===null||zme===void 0||zme.blur()}}});var Rme=useRootProps(gme),Pme=React__namespace.useMemo(function(){return Array.isArray(nme)?nme:[nme,nme]},[nme]),$me=useInputProps(_objectSpread2(_objectSpread2({},Ff),{},{id:Sme,placeholder:Pme})),Dme=_slicedToArray($me,1),Mme=Dme[0],Nme=yme?"right":"left",Ime=React__namespace.useState(_defineProperty({position:"absolute",width:0},Nme,0)),wme=_slicedToArray(Ime,2),Ome=wme[0],Ame=wme[1],Fme=useEvent(function(){var Hme=Tme(eme);if(Hme){var Wme=Hme.nativeElement,zme=Wme.offsetWidth,Vme=Wme.offsetLeft,Xme=Wme.offsetParent,e0e=Vme;if(yme){var Ume=Xme,Jme=getComputedStyle(Ume);e0e=Ume.offsetWidth-parseFloat(Jme.borderRightWidth)-parseFloat(Jme.borderLeftWidth)-Vme-zme}Ame(function(s0e){return _objectSpread2(_objectSpread2({},s0e),{},_defineProperty({width:zme},Nme,e0e))}),lme(eme===0?0:e0e)}});React__namespace.useEffect(function(){Fme()},[eme]);var Bme=$_&&(cme[0]&&!ume[0]||cme[1]&&!ume[1]),kme=pme&&!ume[0],Lme=pme&&!kme&&!ume[1];return React__namespace.createElement(RefResizeObserver,{onResize:Fme},React__namespace.createElement("div",_extends({},Rme,{className:classNames(bme,"".concat(bme,"-range"),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"".concat(bme,"-focused"),tme),"".concat(bme,"-disabled"),ume.every(function(Hme){return Hme})),"".concat(bme,"-invalid"),sme.some(function(Hme){return Hme})),"".concat(bme,"-rtl"),yme),rme),style:ame,ref:_me,onClick:ome,onMouseDown:function(Wme){var zme=Wme.target;zme!==Cme.current.inputElement&&zme!==Eme.current.inputElement&&Wme.preventDefault(),hme==null||hme(Wme)}}),React__namespace.createElement(Input$4,_extends({ref:Cme},Mme(0),{autoFocus:kme,"date-range":"start"})),React__namespace.createElement("div",{className:"".concat(bme,"-range-separator")},zP),React__namespace.createElement(Input$4,_extends({ref:Eme},Mme(1),{autoFocus:Lme,"date-range":"end"})),React__namespace.createElement("div",{className:"".concat(bme,"-active-bar"),style:Ome}),React__namespace.createElement(Icon$1,{type:"suffix",icon:B_}),Bme&&React__namespace.createElement(ClearIcon,{icon:$_,onClear:ime})))}var RefRangeSelector=React__namespace.forwardRef(RangeSelector);process.env.NODE_ENV!=="production"&&(RefRangeSelector.displayName="RangeSelector");function separateConfig(Ff,kh){var x_=Ff??kh;return Array.isArray(x_)?x_:[x_,x_]}function getActiveRange(Ff){return Ff===1?"end":"start"}function RangePicker(Ff,kh){var x_=useFilledProps(Ff,function(){var Pye=Ff.disabled,pye=Ff.allowEmpty,kye=separateConfig(Pye,!1),ebe=separateConfig(pye,!1);return{disabled:kye,allowEmpty:ebe}}),$_=_slicedToArray(x_,6),B_=$_[0],$P=$_[1],zP=$_[2],eme=$_[3],tme=$_[4],nme=$_[5],rme=B_.prefixCls,ame=B_.styles,ome=B_.classNames,ime=B_.defaultValue,cme=B_.value,ume=B_.needConfirm,sme=B_.onKeyDown,fme=B_.disabled,lme=B_.allowEmpty,hme=B_.disabledDate,pme=B_.minDate,gme=B_.maxDate,yme=B_.defaultOpen,mme=B_.open,bme=B_.onOpenChange,Sme=B_.locale,_me=B_.generateConfig,Cme=B_.picker,Eme=B_.showNow,Tme=B_.showToday,Rme=B_.showTime,Pme=B_.mode,$me=B_.onPanelChange,Dme=B_.onCalendarChange,Mme=B_.onOk,Nme=B_.defaultPickerValue,Ime=B_.pickerValue,wme=B_.onPickerValueChange,Ome=B_.inputReadOnly,Ame=B_.suffixIcon,Fme=B_.onFocus,Bme=B_.onBlur,kme=B_.presets,Lme=B_.ranges,Hme=B_.components,Wme=B_.cellRender,zme=B_.dateRender,Vme=B_.monthCellRender,Xme=B_.onClick,e0e=usePickerRef(kh),Ume=useOpen(mme,yme,fme,bme),Jme=_slicedToArray(Ume,2),s0e=Jme[0],d0e=Jme[1],Zme=function(pye,kye){(fme.some(function(ebe){return!ebe})||!pye)&&d0e(pye,kye)},Qme=useInnerValue(_me,Sme,eme,!0,!1,ime,cme,Dme,Mme),a0e=_slicedToArray(Qme,5),t0e=a0e[0],o0e=a0e[1],g0e=a0e[2],u0e=a0e[3],h0e=a0e[4],E0e=g0e(),P0e=useRangeActive(fme,lme),y0e=_slicedToArray(P0e,7),$0e=y0e[0],C0e=y0e[1],z0e=y0e[2],D0e=y0e[3],O0e=y0e[4],b0e=y0e[5],k0e=y0e[6],T0e=function(pye,kye){C0e(!0),Fme==null||Fme(pye,{range:getActiveRange(kye??D0e)})},L0e=function(pye,kye){C0e(!1),Bme==null||Bme(pye,{range:getActiveRange(kye??D0e)})},Y0e=React__namespace.useMemo(function(){if(!Rme)return null;var Pye=Rme.disabledTime,pye=Pye?function(kye){var ebe=getActiveRange(D0e),pbe=getFromDate(E0e,k0e,D0e);return Pye(kye,ebe,{from:pbe})}:void 0;return _objectSpread2(_objectSpread2({},Rme),{},{disabledTime:pye})},[Rme,D0e,E0e,k0e]),mye=useMergedState([Cme,Cme],{value:Pme}),Q0e=_slicedToArray(mye,2),U0e=Q0e[0],q0e=Q0e[1],V0e=U0e[D0e]||Cme,X0e=V0e==="date"&&Y0e?"datetime":V0e,M0e=X0e===Cme&&X0e!=="time",J0e=useShowNow(Cme,V0e,Eme,Tme,!0),aye=useRangeValue(B_,t0e,o0e,g0e,u0e,fme,eme,$0e,s0e,nme),F0e=_slicedToArray(aye,2),cye=F0e[0],yye=F0e[1],W0e=useRangeDisabledDate(E0e,fme,k0e,_me,Sme,hme),sye=useFieldsInvalidate(E0e,nme,lme),G0e=_slicedToArray(sye,2),hye=G0e[0],wye=G0e[1],Eye=useRangePickerValue(_me,Sme,E0e,U0e,s0e,D0e,$P,M0e,Nme,Ime,Y0e==null?void 0:Y0e.defaultOpenValue,wme,pme,gme),Vye=_slicedToArray(Eye,2),r0e=Vye[0],R0e=Vye[1],A0e=useEvent(function(Pye,pye,kye){var ebe=fillIndex(U0e,D0e,pye);if((ebe[0]!==U0e[0]||ebe[1]!==U0e[1])&&q0e(ebe),$me&&kye!==!1){var pbe=_toConsumableArray(E0e);Pye&&(pbe[D0e]=Pye),$me(pbe,ebe)}}),n0e=function(pye,kye){return fillIndex(E0e,kye,pye)},f0e=function(pye,kye){var ebe=E0e;pye&&(ebe=n0e(pye,D0e));var pbe=b0e(ebe);u0e(ebe),cye(D0e,pbe===null),pbe===null?Zme(!1,{force:!0}):kye||e0e.current.focus({index:pbe})},m0e=function(pye){if(!e0e.current.nativeElement.contains(document.activeElement)){var kye=fme.findIndex(function(ebe){return!ebe});kye>=0&&e0e.current.focus({index:kye})}Zme(!0),Xme==null||Xme(pye)},w0e=function(){yye(null),Zme(!1,{force:!0})},j0e=React__namespace.useState(null),_0e=_slicedToArray(j0e,2),Yme=_0e[0],l0e=_0e[1],S0e=React__namespace.useState(null),I0e=_slicedToArray(S0e,2),Z0e=I0e[0],lye=I0e[1],Tye=React__namespace.useMemo(function(){return Z0e||E0e},[E0e,Z0e]);React__namespace.useEffect(function(){s0e||lye(null)},[s0e]);var xye=React__namespace.useState(0),Dye=_slicedToArray(xye,2),Lye=Dye[0],lbe=Dye[1],Uye=usePresets(kme,Lme),Qye=function(pye){lye(pye),l0e("preset")},Sye=function(pye){var kye=yye(pye);kye&&Zme(!1,{force:!0})},jye=function(pye){f0e(pye)},qye=function(pye){lye(pye?n0e(pye,D0e):null),l0e("cell")},Rye=function(pye){Zme(!0),T0e(pye)},Aye=function(pye){z0e("panel");var kye=fillIndex(E0e,D0e,pye);u0e(kye),!ume&&!zP&&$P===X0e&&f0e(pye)},Oye=function(){Zme(!1)},fye=useCellRender(Wme,zme,Vme,getActiveRange(D0e)),gye=E0e[D0e]||null,Hye=useEvent(function(Pye){return nme(Pye,{activeIndex:D0e})}),Xye=React__namespace.useMemo(function(){var Pye=pickAttrs(B_,!1),pye=omit(B_,[].concat(_toConsumableArray(Object.keys(Pye)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return pye},[B_]),Wye=React__namespace.createElement(Popup,_extends({},Xye,{showNow:J0e,showTime:Y0e,range:!0,multiplePanel:M0e,activeOffset:Lye,disabledDate:W0e,onFocus:Rye,onBlur:L0e,picker:Cme,mode:V0e,internalMode:X0e,onPanelChange:A0e,format:tme,value:gye,isInvalid:Hye,onChange:null,onSelect:Aye,pickerValue:r0e,defaultOpenValue:toArray$3(Rme==null?void 0:Rme.defaultOpenValue)[D0e],onPickerValueChange:R0e,hoverValue:Tye,onHover:qye,needConfirm:ume,onSubmit:f0e,onOk:h0e,presets:Uye,onPresetHover:Qye,onPresetSubmit:Sye,onNow:jye,cellRender:fye})),nbe=function(pye,kye){var ebe=n0e(pye,kye);u0e(ebe)},bye=function(){z0e("input")},dye=function(pye,kye){z0e("input"),Zme(!0,{inherit:!0}),O0e(kye),T0e(pye,kye)},Yye=function(pye,kye){Zme(!1),L0e(pye,kye)},ube=function(pye,kye){pye.key==="Tab"&&f0e(null,!0),sme==null||sme(pye,kye)},sbe=React__namespace.useMemo(function(){return{prefixCls:rme,locale:Sme,generateConfig:_me,button:Hme.button,input:Hme.input}},[rme,Sme,_me,Hme.button,Hme.input]);if(useLayoutEffect$1(function(){s0e&&D0e!==void 0&&A0e(null,Cme,!1)},[s0e,D0e,Cme]),useLayoutEffect$1(function(){var Pye=z0e();!s0e&&Pye==="input"&&(Zme(!1),f0e(null,!0)),!s0e&&zP&&!ume&&Pye==="panel"&&(Zme(!0),f0e())},[s0e]),process.env.NODE_ENV!=="production"){var ybe=function(pye){return!(cme!=null&&cme[pye])&&!(ime!=null&&ime[pye])};fme.some(function(Pye,pye){return Pye&&ybe(pye)&&!lme[pye]})&&warningOnce(!1,"`disabled` should not set with empty `value`. You should set `allowEmpty` or `value` instead.")}return React__namespace.createElement(PickerContext.Provider,{value:sbe},React__namespace.createElement(PickerTrigger,_extends({},pickTriggerProps(B_),{popupElement:Wye,popupStyle:ame.popup,popupClassName:ome.popup,visible:s0e,onClose:Oye,range:!0}),React__namespace.createElement(RefRangeSelector,_extends({},B_,{ref:e0e,suffixIcon:Ame,activeIndex:$0e||s0e?D0e:null,activeHelp:!!Z0e,allHelp:!!Z0e&&Yme==="preset",focused:$0e,onFocus:dye,onBlur:Yye,onKeyDown:ube,onSubmit:f0e,value:Tye,maskFormat:tme,onChange:nbe,onInputChange:bye,format:eme,inputReadOnly:Ome,disabled:fme,open:s0e,onOpenChange:Zme,onClick:m0e,onClear:w0e,invalid:hye,onInvalid:wye,onActiveOffset:lbe}))))}var RefRangePicker=React__namespace.forwardRef(RangePicker);process.env.NODE_ENV!=="production"&&(RefRangePicker.displayName="RefRangePicker");function MultipleDates(Ff){var kh=Ff.prefixCls,x_=Ff.value,$_=Ff.onRemove,B_=Ff.removeIcon,$P=B_===void 0?"×":B_,zP=Ff.formatDate,eme=Ff.disabled,tme=Ff.maxTagCount,nme=Ff.placeholder,rme="".concat(kh,"-selector"),ame="".concat(kh,"-selection"),ome="".concat(ame,"-overflow");function ime(sme,fme){return React__namespace.createElement("span",{className:classNames("".concat(ame,"-item")),title:typeof sme=="string"?sme:null},React__namespace.createElement("span",{className:"".concat(ame,"-item-content")},sme),!eme&&fme&&React__namespace.createElement("span",{onMouseDown:function(hme){hme.preventDefault()},onClick:fme,className:"".concat(ame,"-item-remove")},$P))}function cme(sme){var fme=zP(sme),lme=function(pme){pme&&pme.stopPropagation(),$_(sme)};return ime(fme,lme)}function ume(sme){var fme="+ ".concat(sme.length," ...");return ime(fme)}return React__namespace.createElement("div",{className:rme},React__namespace.createElement(ForwardOverflow,{prefixCls:ome,data:x_,renderItem:cme,renderRest:ume,itemKey:function(fme){return zP(fme)},maxCount:tme}),!x_.length&&React__namespace.createElement("span",{className:"".concat(kh,"-selection-placeholder")},nme))}var _excluded$k=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function SingleSelector(Ff,kh){Ff.id;var x_=Ff.open,$_=Ff.clearIcon,B_=Ff.suffixIcon;Ff.activeHelp,Ff.allHelp;var $P=Ff.focused;Ff.onFocus,Ff.onBlur,Ff.onKeyDown;var zP=Ff.locale,eme=Ff.generateConfig,tme=Ff.placeholder,nme=Ff.className,rme=Ff.style,ame=Ff.onClick,ome=Ff.onClear,ime=Ff.internalPicker,cme=Ff.value,ume=Ff.onChange,sme=Ff.onSubmit;Ff.onInputChange;var fme=Ff.multiple,lme=Ff.maxTagCount;Ff.format,Ff.maskFormat,Ff.preserveInvalidOnBlur,Ff.onInvalid;var hme=Ff.disabled,pme=Ff.invalid;Ff.inputReadOnly;var gme=Ff.direction;Ff.onOpenChange;var yme=Ff.onMouseDown;Ff.required,Ff["aria-required"];var mme=Ff.autoFocus,bme=Ff.removeIcon,Sme=_objectWithoutProperties(Ff,_excluded$k),_me=gme==="rtl",Cme=React__namespace.useContext(PickerContext),Eme=Cme.prefixCls,Tme=React__namespace.useRef(),Rme=React__namespace.useRef();React__namespace.useImperativeHandle(kh,function(){return{nativeElement:Tme.current,focus:function(Bme){var kme;(kme=Rme.current)===null||kme===void 0||kme.focus(Bme)},blur:function(){var Bme;(Bme=Rme.current)===null||Bme===void 0||Bme.blur()}}});var Pme=useRootProps(Sme),$me=function(Bme){ume([Bme])},Dme=function(Bme){var kme=cme.filter(function(Lme){return Lme&&!isSame(eme,zP,Lme,Bme,ime)});ume(kme),x_||sme()},Mme=useInputProps(_objectSpread2(_objectSpread2({},Ff),{},{onChange:$me}),function(Fme){var Bme=Fme.valueTexts;return{value:Bme[0]||"",active:$P}}),Nme=_slicedToArray(Mme,2),Ime=Nme[0],wme=Nme[1],Ome=!!($_&&cme.length&&!hme),Ame=fme?React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(MultipleDates,{prefixCls:Eme,value:cme,onRemove:Dme,formatDate:wme,maxTagCount:lme,disabled:hme,removeIcon:bme,placeholder:tme}),React__namespace.createElement("input",{className:"".concat(Eme,"-multiple-input"),value:cme.map(wme).join(","),ref:Rme,readOnly:!0,autoFocus:mme}),React__namespace.createElement(Icon$1,{type:"suffix",icon:B_}),Ome&&React__namespace.createElement(ClearIcon,{icon:$_,onClear:ome})):React__namespace.createElement(Input$4,_extends({ref:Rme},Ime(),{autoFocus:mme,suffixIcon:B_,clearIcon:Ome&&React__namespace.createElement(ClearIcon,{icon:$_,onClear:ome}),showActiveCls:!1}));return React__namespace.createElement("div",_extends({},Pme,{className:classNames(Eme,_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"".concat(Eme,"-multiple"),fme),"".concat(Eme,"-focused"),$P),"".concat(Eme,"-disabled"),hme),"".concat(Eme,"-invalid"),pme),"".concat(Eme,"-rtl"),_me),nme),style:rme,ref:Tme,onClick:ame,onMouseDown:function(Bme){var kme,Lme=Bme.target;Lme!==((kme=Rme.current)===null||kme===void 0?void 0:kme.inputElement)&&Bme.preventDefault(),yme==null||yme(Bme)}}),Ame)}var RefSingleSelector=React__namespace.forwardRef(SingleSelector);process.env.NODE_ENV!=="production"&&(RefSingleSelector.displayName="SingleSelector");function Picker(Ff,kh){var x_=useFilledProps(Ff),$_=_slicedToArray(x_,6),B_=$_[0],$P=$_[1],zP=$_[2],eme=$_[3],tme=$_[4],nme=$_[5],rme=B_,ame=rme.prefixCls,ome=rme.styles,ime=rme.classNames,cme=rme.order,ume=rme.defaultValue,sme=rme.value,fme=rme.needConfirm,lme=rme.onChange,hme=rme.onKeyDown,pme=rme.disabled,gme=rme.disabledDate,yme=rme.minDate,mme=rme.maxDate,bme=rme.defaultOpen,Sme=rme.open,_me=rme.onOpenChange,Cme=rme.locale,Eme=rme.generateConfig,Tme=rme.picker,Rme=rme.showNow,Pme=rme.showToday,$me=rme.showTime,Dme=rme.mode,Mme=rme.onPanelChange,Nme=rme.onCalendarChange,Ime=rme.onOk,wme=rme.multiple,Ome=rme.defaultPickerValue,Ame=rme.pickerValue,Fme=rme.onPickerValueChange,Bme=rme.inputReadOnly,kme=rme.suffixIcon,Lme=rme.removeIcon,Hme=rme.onFocus,Wme=rme.onBlur,zme=rme.presets,Vme=rme.components,Xme=rme.cellRender,e0e=rme.dateRender,Ume=rme.monthCellRender,Jme=rme.onClick,s0e=usePickerRef(kh);function d0e(bye){return bye===null?null:wme?bye:bye[0]}var Zme=useToggleDates(Eme,Cme,$P),Qme=useOpen(Sme,bme,[pme],_me),a0e=_slicedToArray(Qme,2),t0e=a0e[0],o0e=a0e[1],g0e=function(dye,Yye,ube){if(Nme){var sbe=_objectSpread2({},ube);delete sbe.range,Nme(d0e(dye),d0e(Yye),sbe)}},u0e=function(dye){Ime==null||Ime(d0e(dye))},h0e=useInnerValue(Eme,Cme,eme,!1,cme,ume,sme,g0e,u0e),E0e=_slicedToArray(h0e,5),P0e=E0e[0],y0e=E0e[1],$0e=E0e[2],C0e=E0e[3],z0e=E0e[4],D0e=$0e(),O0e=useRangeActive([pme]),b0e=_slicedToArray(O0e,4),k0e=b0e[0],T0e=b0e[1],L0e=b0e[2],Y0e=b0e[3],mye=function(dye){T0e(!0),Hme==null||Hme(dye,{})},Q0e=function(dye){T0e(!1),Wme==null||Wme(dye,{})},U0e=useMergedState(Tme,{value:Dme}),q0e=_slicedToArray(U0e,2),V0e=q0e[0],X0e=q0e[1],M0e=V0e==="date"&&$me?"datetime":V0e,J0e=useShowNow(Tme,V0e,Rme,Pme),aye=lme&&function(bye,dye){lme(d0e(bye),d0e(dye))},F0e=useRangeValue(_objectSpread2(_objectSpread2({},B_),{},{onChange:aye}),P0e,y0e,$0e,C0e,[],eme,k0e,t0e,nme),cye=_slicedToArray(F0e,2),yye=cye[1],W0e=useFieldsInvalidate(D0e,nme),sye=_slicedToArray(W0e,2),G0e=sye[0],hye=sye[1],wye=React__namespace.useMemo(function(){return G0e.some(function(bye){return bye})},[G0e]),Eye=function(dye,Yye){if(Fme){var ube=_objectSpread2(_objectSpread2({},Yye),{},{mode:Yye.mode[0]});delete ube.range,Fme(dye[0],ube)}},Vye=useRangePickerValue(Eme,Cme,D0e,[V0e],t0e,Y0e,$P,!1,Ome,Ame,toArray$3($me==null?void 0:$me.defaultOpenValue),Eye,yme,mme),r0e=_slicedToArray(Vye,2),R0e=r0e[0],A0e=r0e[1],n0e=useEvent(function(bye,dye,Yye){if(X0e(dye),Mme&&Yye!==!1){var ube=bye||D0e[D0e.length-1];Mme(ube,dye)}}),f0e=function(){yye($0e()),o0e(!1,{force:!0})},m0e=function(dye){!pme&&!s0e.current.nativeElement.contains(document.activeElement)&&s0e.current.focus(),o0e(!0),Jme==null||Jme(dye)},w0e=function(){yye(null),o0e(!1,{force:!0})},j0e=React__namespace.useState(null),_0e=_slicedToArray(j0e,2),Yme=_0e[0],l0e=_0e[1],S0e=React__namespace.useState(null),I0e=_slicedToArray(S0e,2),Z0e=I0e[0],lye=I0e[1],Tye=React__namespace.useMemo(function(){var bye=[Z0e].concat(_toConsumableArray(D0e)).filter(function(dye){return dye});return wme?bye:bye.slice(0,1)},[D0e,Z0e,wme]),xye=React__namespace.useMemo(function(){return!wme&&Z0e?[Z0e]:D0e.filter(function(bye){return bye})},[D0e,Z0e,wme]);React__namespace.useEffect(function(){t0e||lye(null)},[t0e]);var Dye=usePresets(zme),Lye=function(dye){lye(dye),l0e("preset")},lbe=function(dye){var Yye=wme?Zme($0e(),dye):[dye],ube=yye(Yye);ube&&!wme&&o0e(!1,{force:!0})},Uye=function(dye){lbe(dye)},Qye=function(dye){lye(dye),l0e("cell")},Sye=function(dye){o0e(!0),mye(dye)},jye=function(dye){L0e("panel");var Yye=wme?Zme($0e(),dye):[dye];C0e(Yye),!fme&&!zP&&$P===M0e&&f0e()},qye=function(){o0e(!1)},Rye=useCellRender(Xme,e0e,Ume),Aye=React__namespace.useMemo(function(){var bye=pickAttrs(B_,!1),dye=omit(B_,[].concat(_toConsumableArray(Object.keys(bye)),["onChange","onCalendarChange","style","className","onPanelChange"]));return _objectSpread2(_objectSpread2({},dye),{},{multiple:B_.multiple})},[B_]),Oye=React__namespace.createElement(Popup,_extends({},Aye,{showNow:J0e,showTime:$me,disabledDate:gme,onFocus:Sye,onBlur:Q0e,picker:Tme,mode:V0e,internalMode:M0e,onPanelChange:n0e,format:tme,value:D0e,isInvalid:nme,onChange:null,onSelect:jye,pickerValue:R0e,defaultOpenValue:$me==null?void 0:$me.defaultOpenValue,onPickerValueChange:A0e,hoverValue:Tye,onHover:Qye,needConfirm:fme,onSubmit:f0e,onOk:z0e,presets:Dye,onPresetHover:Lye,onPresetSubmit:lbe,onNow:Uye,cellRender:Rye})),fye=function(dye){C0e(dye)},gye=function(){L0e("input")},Hye=function(dye){L0e("input"),o0e(!0,{inherit:!0}),mye(dye)},Xye=function(dye){o0e(!1),Q0e(dye)},Wye=function(dye,Yye){dye.key==="Tab"&&f0e(),hme==null||hme(dye,Yye)},nbe=React__namespace.useMemo(function(){return{prefixCls:ame,locale:Cme,generateConfig:Eme,button:Vme.button,input:Vme.input}},[ame,Cme,Eme,Vme.button,Vme.input]);return useLayoutEffect$1(function(){t0e&&Y0e!==void 0&&n0e(null,Tme,!1)},[t0e,Y0e,Tme]),useLayoutEffect$1(function(){var bye=L0e();!t0e&&bye==="input"&&(o0e(!1),f0e()),!t0e&&zP&&!fme&&bye==="panel"&&(o0e(!0),f0e())},[t0e]),React__namespace.createElement(PickerContext.Provider,{value:nbe},React__namespace.createElement(PickerTrigger,_extends({},pickTriggerProps(B_),{popupElement:Oye,popupStyle:ome.popup,popupClassName:ime.popup,visible:t0e,onClose:qye}),React__namespace.createElement(RefSingleSelector,_extends({},B_,{ref:s0e,suffixIcon:kme,removeIcon:Lme,activeHelp:!!Z0e,allHelp:!!Z0e&&Yme==="preset",focused:k0e,onFocus:Hye,onBlur:Xye,onKeyDown:Wye,onSubmit:f0e,value:xye,maskFormat:tme,onChange:fye,onInputChange:gye,internalPicker:$P,format:eme,inputReadOnly:Bme,disabled:pme,open:t0e,onOpenChange:o0e,onClick:m0e,onClear:w0e,invalid:wye,onInvalid:function(dye){hye(dye,0)}}))))}var RefPicker=React__namespace.forwardRef(Picker);process.env.NODE_ENV!=="production"&&(RefPicker.displayName="RefPicker");const RadioGroupContext=React__namespace.createContext(null),RadioGroupContextProvider=RadioGroupContext.Provider,RadioOptionTypeContext=React__namespace.createContext(null),RadioOptionTypeContextProvider=RadioOptionTypeContext.Provider;var _excluded$j=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Checkbox$3=React.forwardRef(function(Ff,kh){var x_=Ff.prefixCls,$_=x_===void 0?"rc-checkbox":x_,B_=Ff.className,$P=Ff.style,zP=Ff.checked,eme=Ff.disabled,tme=Ff.defaultChecked,nme=tme===void 0?!1:tme,rme=Ff.type,ame=rme===void 0?"checkbox":rme,ome=Ff.title,ime=Ff.onChange,cme=_objectWithoutProperties(Ff,_excluded$j),ume=React.useRef(null),sme=React.useRef(null),fme=useMergedState(nme,{value:zP}),lme=_slicedToArray(fme,2),hme=lme[0],pme=lme[1];React.useImperativeHandle(kh,function(){return{focus:function(bme){var Sme;(Sme=ume.current)===null||Sme===void 0||Sme.focus(bme)},blur:function(){var bme;(bme=ume.current)===null||bme===void 0||bme.blur()},input:ume.current,nativeElement:sme.current}});var gme=classNames($_,B_,_defineProperty(_defineProperty({},"".concat($_,"-checked"),hme),"".concat($_,"-disabled"),eme)),yme=function(bme){eme||("checked"in Ff||pme(bme.target.checked),ime==null||ime({target:_objectSpread2(_objectSpread2({},Ff),{},{type:ame,checked:bme.target.checked}),stopPropagation:function(){bme.stopPropagation()},preventDefault:function(){bme.preventDefault()},nativeEvent:bme.nativeEvent}))};return React__namespace.createElement("span",{className:gme,title:ome,style:$P,ref:sme},React__namespace.createElement("input",_extends({},cme,{className:"".concat($_,"-input"),ref:ume,onChange:yme,disabled:eme,checked:!!hme,type:ame})),React__namespace.createElement("span",{className:"".concat($_,"-inner")}))});const getGroupRadioStyle=Ff=>{const{componentCls:kh,antCls:x_}=Ff,$_=`${kh}-group`;return{[$_]:Object.assign(Object.assign({},resetComponent(Ff)),{display:"inline-block",fontSize:0,[`&${$_}-rtl`]:{direction:"rtl"},[`${x_}-badge ${x_}-badge-count`]:{zIndex:1},[`> ${x_}-badge:not(:first-child) > ${x_}-button-wrapper`]:{borderInlineStart:"none"}})}},getRadioBasicStyle=Ff=>{const{componentCls:kh,wrapperMarginInlineEnd:x_,colorPrimary:$_,radioSize:B_,motionDurationSlow:$P,motionDurationMid:zP,motionEaseInOutCirc:eme,colorBgContainer:tme,colorBorder:nme,lineWidth:rme,colorBgContainerDisabled:ame,colorTextDisabled:ome,paddingXS:ime,dotColorDisabled:cme,lineType:ume,radioColor:sme,radioBgColor:fme,calc:lme}=Ff,hme=`${kh}-inner`,gme=lme(B_).sub(lme(4).mul(2)),yme=lme(1).mul(B_).equal({unit:!0});return{[`${kh}-wrapper`]:Object.assign(Object.assign({},resetComponent(Ff)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:x_,cursor:"pointer",[`&${kh}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Ff.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${kh}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${unit$1(rme)} ${ume} ${$_}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[kh]:Object.assign(Object.assign({},resetComponent(Ff)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${kh}-wrapper:hover &,
220
+ `]:{paddingInlineEnd:Ff.calc(Ff.fontSize).mul(1.5).equal()}}}},genSizeStyle(merge(Ff,{controlHeight:Ff.singleItemHeightLG,fontSize:Ff.fontSizeLG,borderRadius:Ff.borderRadiusLG}),"lg")]}const prepareComponentToken$b=Ff=>{const{fontSize:kh,lineHeight:x_,lineWidth:$_,controlHeight:B_,controlHeightSM:$P,controlHeightLG:zP,paddingXXS:eme,controlPaddingHorizontal:tme,zIndexPopupBase:nme,colorText:rme,fontWeightStrong:ame,controlItemBgActive:ome,controlItemBgHover:ime,colorBgContainer:cme,colorFillSecondary:ume,colorBgContainerDisabled:sme,colorTextDisabled:fme}=Ff,lme=eme*2,hme=$_*2,pme=Math.min(B_-lme,B_-hme),gme=Math.min($P-lme,$P-hme),yme=Math.min(zP-lme,zP-hme);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(eme/2),zIndexPopup:nme+50,optionSelectedColor:rme,optionSelectedFontWeight:ame,optionSelectedBg:ome,optionActiveBg:ime,optionPadding:`${(B_-kh*x_)/2}px ${tme}px`,optionFontSize:kh,optionLineHeight:x_,optionHeight:B_,selectorBg:cme,clearBg:cme,singleItemHeightLG:zP,multipleItemBg:ume,multipleItemBorderColor:"transparent",multipleItemHeight:pme,multipleItemHeightSM:gme,multipleItemHeightLG:yme,multipleSelectorBgDisabled:sme,multipleItemColorDisabled:fme,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(Ff.fontSize*1.25)}},genBaseOutlinedStyle$1=(Ff,kh)=>{const{componentCls:x_,antCls:$_,controlOutlineWidth:B_}=Ff;return{[`&:not(${x_}-customize-input) ${x_}-selector`]:{border:`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${kh.borderColor}`,background:Ff.selectorBg},[`&:not(${x_}-disabled):not(${x_}-customize-input):not(${$_}-pagination-size-changer)`]:{[`&:hover ${x_}-selector`]:{borderColor:kh.hoverBorderHover},[`${x_}-focused& ${x_}-selector`]:{borderColor:kh.activeBorderColor,boxShadow:`0 0 0 ${unit$1(B_)} ${kh.activeShadowColor}`,outline:0}}}},genOutlinedStatusStyle$1=(Ff,kh)=>({[`&${Ff.componentCls}-status-${kh.status}`]:Object.assign({},genBaseOutlinedStyle$1(Ff,kh))}),genOutlinedStyle$1=Ff=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},genBaseOutlinedStyle$1(Ff,{borderColor:Ff.colorBorder,hoverBorderHover:Ff.colorPrimaryHover,activeBorderColor:Ff.colorPrimary,activeShadowColor:Ff.controlOutline})),genOutlinedStatusStyle$1(Ff,{status:"error",borderColor:Ff.colorError,hoverBorderHover:Ff.colorErrorHover,activeBorderColor:Ff.colorError,activeShadowColor:Ff.colorErrorOutline})),genOutlinedStatusStyle$1(Ff,{status:"warning",borderColor:Ff.colorWarning,hoverBorderHover:Ff.colorWarningHover,activeBorderColor:Ff.colorWarning,activeShadowColor:Ff.colorWarningOutline})),{[`&${Ff.componentCls}-disabled`]:{[`&:not(${Ff.componentCls}-customize-input) ${Ff.componentCls}-selector`]:{background:Ff.colorBgContainerDisabled,color:Ff.colorTextDisabled}},[`&${Ff.componentCls}-multiple ${Ff.componentCls}-selection-item`]:{background:Ff.multipleItemBg,border:`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.multipleItemBorderColor}`}})}),genBaseFilledStyle$1=(Ff,kh)=>{const{componentCls:x_,antCls:$_}=Ff;return{[`&:not(${x_}-customize-input) ${x_}-selector`]:{background:kh.bg,border:`${unit$1(Ff.lineWidth)} ${Ff.lineType} transparent`,color:kh.color},[`&:not(${x_}-disabled):not(${x_}-customize-input):not(${$_}-pagination-size-changer)`]:{[`&:hover ${x_}-selector`]:{background:kh.hoverBg},[`${x_}-focused& ${x_}-selector`]:{background:Ff.selectorBg,borderColor:kh.activeBorderColor,outline:0}}}},genFilledStatusStyle$1=(Ff,kh)=>({[`&${Ff.componentCls}-status-${kh.status}`]:Object.assign({},genBaseFilledStyle$1(Ff,kh))}),genFilledStyle$1=Ff=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},genBaseFilledStyle$1(Ff,{bg:Ff.colorFillTertiary,hoverBg:Ff.colorFillSecondary,activeBorderColor:Ff.colorPrimary,color:Ff.colorText})),genFilledStatusStyle$1(Ff,{status:"error",bg:Ff.colorErrorBg,hoverBg:Ff.colorErrorBgHover,activeBorderColor:Ff.colorError,color:Ff.colorError})),genFilledStatusStyle$1(Ff,{status:"warning",bg:Ff.colorWarningBg,hoverBg:Ff.colorWarningBgHover,activeBorderColor:Ff.colorWarning,color:Ff.colorWarning})),{[`&${Ff.componentCls}-disabled`]:{[`&:not(${Ff.componentCls}-customize-input) ${Ff.componentCls}-selector`]:{borderColor:Ff.colorBorder,background:Ff.colorBgContainerDisabled,color:Ff.colorTextDisabled}},[`&${Ff.componentCls}-multiple ${Ff.componentCls}-selection-item`]:{background:Ff.colorBgContainer,border:`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.colorSplit}`}})}),genBorderlessStyle$1=Ff=>({"&-borderless":{[`${Ff.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${Ff.componentCls}-disabled`]:{[`&:not(${Ff.componentCls}-customize-input) ${Ff.componentCls}-selector`]:{color:Ff.colorTextDisabled}},[`&${Ff.componentCls}-multiple ${Ff.componentCls}-selection-item`]:{background:Ff.multipleItemBg,border:`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.multipleItemBorderColor}`}}}),genVariantsStyle$1=Ff=>({[Ff.componentCls]:Object.assign(Object.assign(Object.assign({},genOutlinedStyle$1(Ff)),genFilledStyle$1(Ff)),genBorderlessStyle$1(Ff))}),genSelectorStyle=Ff=>{const{componentCls:kh}=Ff;return{position:"relative",transition:`all ${Ff.motionDurationMid} ${Ff.motionEaseInOut}`,input:{cursor:"pointer"},[`${kh}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${kh}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},getSearchInputWithoutBorderStyle=Ff=>{const{componentCls:kh}=Ff;return{[`${kh}-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"}}}},genBaseStyle$4=Ff=>{const{antCls:kh,componentCls:x_,inputPaddingHorizontalBase:$_,iconCls:B_}=Ff;return{[x_]:Object.assign(Object.assign({},resetComponent(Ff)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${x_}-customize-input) ${x_}-selector`]:Object.assign(Object.assign({},genSelectorStyle(Ff)),getSearchInputWithoutBorderStyle(Ff)),[`${x_}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},textEllipsis),{[`> ${kh}-typography`]:{display:"inline"}}),[`${x_}-selection-placeholder`]:Object.assign(Object.assign({},textEllipsis),{flex:1,color:Ff.colorTextPlaceholder,pointerEvents:"none"}),[`${x_}-arrow`]:Object.assign(Object.assign({},resetIcon()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:$_,height:Ff.fontSizeIcon,marginTop:Ff.calc(Ff.fontSizeIcon).mul(-1).div(2).equal(),color:Ff.colorTextQuaternary,fontSize:Ff.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${Ff.motionDurationSlow} ease`,[B_]:{verticalAlign:"top",transition:`transform ${Ff.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${x_}-suffix)`]:{pointerEvents:"auto"}},[`${x_}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${x_}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:$_,zIndex:1,display:"inline-block",width:Ff.fontSizeIcon,height:Ff.fontSizeIcon,marginTop:Ff.calc(Ff.fontSizeIcon).mul(-1).div(2).equal(),color:Ff.colorTextQuaternary,fontSize:Ff.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${Ff.motionDurationMid} ease, opacity ${Ff.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ff.colorTextTertiary}},"&:hover":{[`${x_}-clear`]:{opacity:1},[`${x_}-arrow:not(:last-child)`]:{opacity:0}}}),[`${x_}-has-feedback`]:{[`${x_}-clear`]:{insetInlineEnd:Ff.calc($_).add(Ff.fontSize).add(Ff.paddingXS).equal()}}}},genSelectStyle=Ff=>{const{componentCls:kh}=Ff;return[{[kh]:{[`&${kh}-in-form-item`]:{width:"100%"}}},genBaseStyle$4(Ff),genSingleStyle(Ff),genMultipleStyle(Ff),genSingleStyle$1(Ff),{[`${kh}-rtl`]:{direction:"rtl"}},genCompactItemStyle(Ff,{borderElCls:`${kh}-selector`,focusElCls:`${kh}-focused`})]},useSelectStyle=genStyleHooks("Select",(Ff,kh)=>{let{rootPrefixCls:x_}=kh;const $_=merge(Ff,{rootPrefixCls:x_,inputPaddingHorizontalBase:Ff.calc(Ff.paddingSM).sub(1).equal(),multipleSelectItemHeight:Ff.multipleItemHeight,selectHeight:Ff.controlHeight});return[genSelectStyle($_),genVariantsStyle$1($_)]},prepareComponentToken$b,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var CheckOutlined$1={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"},CheckOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:CheckOutlined$1}))},RefIcon$w=React__namespace.forwardRef(CheckOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$w.displayName="CheckOutlined");var DownOutlined$1={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"},DownOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:DownOutlined$1}))},RefIcon$v=React__namespace.forwardRef(DownOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$v.displayName="DownOutlined");var SearchOutlined$1={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"},SearchOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:SearchOutlined$1}))},RefIcon$u=React__namespace.forwardRef(SearchOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$u.displayName="SearchOutlined");function useIcons$1(Ff){let{suffixIcon:kh,clearIcon:x_,menuItemSelectedIcon:$_,removeIcon:B_,loading:$P,multiple:zP,hasFeedback:eme,prefixCls:tme,showSuffixIcon:nme,feedbackIcon:rme,showArrow:ame,componentName:ome}=Ff;process.env.NODE_ENV!=="production"&&devUseWarning(ome).deprecated(!x_,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const ime=x_??React__namespace.createElement(RefIcon$A,null),cme=lme=>kh===null&&!eme&&!ame?null:React__namespace.createElement(React__namespace.Fragment,null,nme!==!1&&lme,eme&&rme);let ume=null;if(kh!==void 0)ume=cme(kh);else if($P)ume=cme(React__namespace.createElement(RefIcon$x,{spin:!0}));else{const lme=`${tme}-suffix`;ume=hme=>{let{open:pme,showSearch:gme}=hme;return cme(pme&&gme?React__namespace.createElement(RefIcon$u,{className:lme}):React__namespace.createElement(RefIcon$v,{className:lme}))}}let sme=null;$_!==void 0?sme=$_:zP?sme=React__namespace.createElement(RefIcon$w,null):sme=null;let fme=null;return B_!==void 0?fme=B_:fme=React__namespace.createElement(RefIcon$z,null),{clearIcon:ime,suffixIcon:ume,itemIcon:sme,removeIcon:fme}}function useShowArrow(Ff,kh){return kh!==void 0?kh:Ff!==null}var __rest$t=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",InternalSelect=(Ff,kh)=>{var x_;const{prefixCls:$_,bordered:B_,className:$P,rootClassName:zP,getPopupContainer:eme,popupClassName:tme,dropdownClassName:nme,listHeight:rme=256,placement:ame,listItemHeight:ome,size:ime,disabled:cme,notFoundContent:ume,status:sme,builtinPlacements:fme,dropdownMatchSelectWidth:lme,popupMatchSelectWidth:hme,direction:pme,style:gme,allowClear:yme,variant:mme,dropdownStyle:bme,transitionName:Sme,tagRender:_me,maxCount:Cme}=Ff,Eme=__rest$t(Ff,["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:Tme,getPrefixCls:Rme,renderEmpty:Pme,direction:$me,virtual:Dme,popupMatchSelectWidth:Mme,popupOverflow:Nme,select:Ime}=React__namespace.useContext(ConfigContext),[,wme]=useToken(),Ome=ome??(wme==null?void 0:wme.controlHeight),Ame=Rme("select",$_),Fme=Rme(),Bme=pme??$me,{compactSize:kme,compactItemClassnames:Lme}=useCompactItemContext(Ame,Bme),[Hme,Wme]=useVariant(mme,B_),zme=useCSSVarCls(Ame),[Vme,Xme,e0e]=useSelectStyle(Ame,zme),Ume=React__namespace.useMemo(()=>{const{mode:L0e}=Ff;if(L0e!=="combobox")return L0e===SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":L0e},[Ff.mode]),Jme=Ume==="multiple"||Ume==="tags",s0e=useShowArrow(Ff.suffixIcon,Ff.showArrow),d0e=(x_=hme??lme)!==null&&x_!==void 0?x_:Mme,{status:Zme,hasFeedback:Qme,isFormItemInput:a0e,feedbackIcon:t0e}=React__namespace.useContext(FormItemInputContext),o0e=getMergedStatus(Zme,sme);let g0e;ume!==void 0?g0e=ume:Ume==="combobox"?g0e=null:g0e=(Pme==null?void 0:Pme("Select"))||React__namespace.createElement(DefaultRenderEmpty,{componentName:"Select"});const{suffixIcon:u0e,itemIcon:h0e,removeIcon:E0e,clearIcon:P0e}=useIcons$1(Object.assign(Object.assign({},Eme),{multiple:Jme,hasFeedback:Qme,feedbackIcon:t0e,showSuffixIcon:s0e,prefixCls:Ame,componentName:"Select"})),y0e=yme===!0?{clearIcon:P0e}:yme,$0e=omit(Eme,["suffixIcon","itemIcon"]),C0e=classNames(tme||nme,{[`${Ame}-dropdown-${Bme}`]:Bme==="rtl"},zP,e0e,zme,Xme),z0e=useSize(L0e=>{var Y0e;return(Y0e=ime??kme)!==null&&Y0e!==void 0?Y0e:L0e}),D0e=React__namespace.useContext(DisabledContext),O0e=cme??D0e,b0e=classNames({[`${Ame}-lg`]:z0e==="large",[`${Ame}-sm`]:z0e==="small",[`${Ame}-rtl`]:Bme==="rtl",[`${Ame}-${Hme}`]:Wme,[`${Ame}-in-form-item`]:a0e},getStatusClassNames(Ame,o0e,Qme),Lme,Ime==null?void 0:Ime.className,$P,zP,e0e,zme,Xme),k0e=React__namespace.useMemo(()=>ame!==void 0?ame:Bme==="rtl"?"bottomRight":"bottomLeft",[ame,Bme]);if(process.env.NODE_ENV!=="production"){const L0e=devUseWarning("Select");L0e.deprecated(!nme,"dropdownClassName","popupClassName"),L0e.deprecated(lme===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),process.env.NODE_ENV!=="production"&&L0e(!("showArrow"in Ff),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),L0e.deprecated(!("bordered"in Ff),"bordered","variant"),process.env.NODE_ENV!=="production"&&L0e(!(typeof Cme<"u"&&!Jme),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[T0e]=useZIndex("SelectLike",bme==null?void 0:bme.zIndex);return Vme(React__namespace.createElement(TypedSelect,Object.assign({ref:kh,virtual:Dme,showSearch:Ime==null?void 0:Ime.showSearch},$0e,{style:Object.assign(Object.assign({},Ime==null?void 0:Ime.style),gme),dropdownMatchSelectWidth:d0e,transitionName:getTransitionName(Fme,"slide-up",Sme),builtinPlacements:mergedBuiltinPlacements(fme,Nme),listHeight:rme,listItemHeight:Ome,mode:Ume,prefixCls:Ame,placement:k0e,direction:Bme,suffixIcon:u0e,menuItemSelectedIcon:h0e,removeIcon:E0e,allowClear:y0e,notFoundContent:g0e,className:b0e,getPopupContainer:eme||Tme,dropdownClassName:C0e,disabled:O0e,dropdownStyle:Object.assign(Object.assign({},bme),{zIndex:T0e}),maxCount:Jme?Cme:void 0,tagRender:Jme?_me:void 0})))};process.env.NODE_ENV!=="production"&&(InternalSelect.displayName="Select");const Select$1=React__namespace.forwardRef(InternalSelect),PurePanel$3=genPurePanel(Select$1);Select$1.SECRET_COMBOBOX_MODE_DO_NOT_USE=SECRET_COMBOBOX_MODE_DO_NOT_USE;Select$1.Option=Option;Select$1.OptGroup=OptGroup;Select$1._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$3;process.env.NODE_ENV!=="production"&&(Select$1.displayName="Select");const responsiveArray=["xxl","xl","lg","md","sm","xs"],getResponsiveMap=Ff=>({xs:`(max-width: ${Ff.screenXSMax}px)`,sm:`(min-width: ${Ff.screenSM}px)`,md:`(min-width: ${Ff.screenMD}px)`,lg:`(min-width: ${Ff.screenLG}px)`,xl:`(min-width: ${Ff.screenXL}px)`,xxl:`(min-width: ${Ff.screenXXL}px)`}),validateBreakpoints=Ff=>{const kh=Ff,x_=[].concat(responsiveArray).reverse();return x_.forEach(($_,B_)=>{const $P=$_.toUpperCase(),zP=`screen${$P}Min`,eme=`screen${$P}`;if(!(kh[zP]<=kh[eme]))throw new Error(`${zP}<=${eme} fails : !(${kh[zP]}<=${kh[eme]})`);if(B_<x_.length-1){const tme=`screen${$P}Max`;if(!(kh[eme]<=kh[tme]))throw new Error(`${eme}<=${tme} fails : !(${kh[eme]}<=${kh[tme]})`);const rme=`screen${x_[B_+1].toUpperCase()}Min`;if(!(kh[tme]<=kh[rme]))throw new Error(`${tme}<=${rme} fails : !(${kh[tme]}<=${kh[rme]})`)}}),Ff};function useResponsiveObserver(){const[,Ff]=useToken(),kh=getResponsiveMap(validateBreakpoints(Ff));return React.useMemo(()=>{const x_=new Map;let $_=-1,B_={};return{matchHandlers:{},dispatch($P){return B_=$P,x_.forEach(zP=>zP(B_)),x_.size>=1},subscribe($P){return x_.size||this.register(),$_+=1,x_.set($_,$P),$P(B_),$_},unsubscribe($P){x_.delete($P),x_.size||this.unregister()},unregister(){Object.keys(kh).forEach($P=>{const zP=kh[$P],eme=this.matchHandlers[zP];eme==null||eme.mql.removeListener(eme==null?void 0:eme.listener)}),x_.clear()},register(){Object.keys(kh).forEach($P=>{const zP=kh[$P],eme=nme=>{let{matches:rme}=nme;this.dispatch(Object.assign(Object.assign({},B_),{[$P]:rme}))},tme=window.matchMedia(zP);tme.addListener(eme),this.matchHandlers[zP]={mql:tme,listener:eme},eme(tme)})},responsiveMap:kh}},[Ff])}function useForceUpdate(){const[,Ff]=React__namespace.useReducer(kh=>kh+1,0);return Ff}function Popup$1(Ff){var kh=Ff.children,x_=Ff.prefixCls,$_=Ff.id,B_=Ff.overlayInnerStyle,$P=Ff.className,zP=Ff.style;return React__namespace.createElement("div",{className:classNames("".concat(x_,"-content"),$P),style:zP},React__namespace.createElement("div",{className:"".concat(x_,"-inner"),id:$_,role:"tooltip",style:B_},typeof kh=="function"?kh():kh))}var autoAdjustOverflowTopBottom={shiftX:64,adjustY:1},autoAdjustOverflowLeftRight={adjustX:1,shiftY:!0},targetOffset=[0,0],placements={left:{points:["cr","cl"],overflow:autoAdjustOverflowLeftRight,offset:[-4,0],targetOffset},right:{points:["cl","cr"],overflow:autoAdjustOverflowLeftRight,offset:[4,0],targetOffset},top:{points:["bc","tc"],overflow:autoAdjustOverflowTopBottom,offset:[0,-4],targetOffset},bottom:{points:["tc","bc"],overflow:autoAdjustOverflowTopBottom,offset:[0,4],targetOffset},topLeft:{points:["bl","tl"],overflow:autoAdjustOverflowTopBottom,offset:[0,-4],targetOffset},leftTop:{points:["tr","tl"],overflow:autoAdjustOverflowLeftRight,offset:[-4,0],targetOffset},topRight:{points:["br","tr"],overflow:autoAdjustOverflowTopBottom,offset:[0,-4],targetOffset},rightTop:{points:["tl","tr"],overflow:autoAdjustOverflowLeftRight,offset:[4,0],targetOffset},bottomRight:{points:["tr","br"],overflow:autoAdjustOverflowTopBottom,offset:[0,4],targetOffset},rightBottom:{points:["bl","br"],overflow:autoAdjustOverflowLeftRight,offset:[4,0],targetOffset},bottomLeft:{points:["tl","bl"],overflow:autoAdjustOverflowTopBottom,offset:[0,4],targetOffset},leftBottom:{points:["br","bl"],overflow:autoAdjustOverflowLeftRight,offset:[-4,0],targetOffset}},_excluded$o=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Tooltip$1=function(kh,x_){var $_=kh.overlayClassName,B_=kh.trigger,$P=B_===void 0?["hover"]:B_,zP=kh.mouseEnterDelay,eme=zP===void 0?0:zP,tme=kh.mouseLeaveDelay,nme=tme===void 0?.1:tme,rme=kh.overlayStyle,ame=kh.prefixCls,ome=ame===void 0?"rc-tooltip":ame,ime=kh.children,cme=kh.onVisibleChange,ume=kh.afterVisibleChange,sme=kh.transitionName,fme=kh.animation,lme=kh.motion,hme=kh.placement,pme=hme===void 0?"right":hme,gme=kh.align,yme=gme===void 0?{}:gme,mme=kh.destroyTooltipOnHide,bme=mme===void 0?!1:mme,Sme=kh.defaultVisible,_me=kh.getTooltipContainer,Cme=kh.overlayInnerStyle;kh.arrowContent;var Eme=kh.overlay,Tme=kh.id,Rme=kh.showArrow,Pme=Rme===void 0?!0:Rme,$me=_objectWithoutProperties(kh,_excluded$o),Dme=React.useRef(null);React.useImperativeHandle(x_,function(){return Dme.current});var Mme=_objectSpread2({},$me);"visible"in kh&&(Mme.popupVisible=kh.visible);var Nme=function(){return React__namespace.createElement(Popup$1,{key:"content",prefixCls:ome,id:Tme,overlayInnerStyle:Cme},Eme)};return React__namespace.createElement(Trigger,_extends({popupClassName:$_,prefixCls:ome,popup:Nme,action:$P,builtinPlacements:placements,popupPlacement:pme,ref:Dme,popupAlign:yme,getPopupContainer:_me,onPopupVisibleChange:cme,afterPopupVisibleChange:ume,popupTransitionName:sme,popupAnimation:fme,popupMotion:lme,defaultPopupVisible:Sme,autoDestroy:bme,mouseLeaveDelay:nme,popupStyle:rme,mouseEnterDelay:eme,arrow:Pme},Mme),ime)};const Tooltip$2=React.forwardRef(Tooltip$1);function getArrowToken(Ff){const{sizePopupArrow:kh,borderRadiusXS:x_,borderRadiusOuter:$_}=Ff,B_=kh/2,$P=0,zP=B_,eme=$_*1/Math.sqrt(2),tme=B_-$_*(1-1/Math.sqrt(2)),nme=B_-x_*(1/Math.sqrt(2)),rme=$_*(Math.sqrt(2)-1)+x_*(1/Math.sqrt(2)),ame=2*B_-nme,ome=rme,ime=2*B_-eme,cme=tme,ume=2*B_-$P,sme=zP,fme=B_*Math.sqrt(2)+$_*(Math.sqrt(2)-2),lme=$_*(Math.sqrt(2)-1),hme=`polygon(${lme}px 100%, 50% ${lme}px, ${2*B_-lme}px 100%, ${lme}px 100%)`,pme=`path('M ${$P} ${zP} A ${$_} ${$_} 0 0 0 ${eme} ${tme} L ${nme} ${rme} A ${x_} ${x_} 0 0 1 ${ame} ${ome} L ${ime} ${cme} A ${$_} ${$_} 0 0 0 ${ume} ${sme} Z')`;return{arrowShadowWidth:fme,arrowPath:pme,arrowPolygon:hme}}const genRoundedArrow=(Ff,kh,x_)=>{const{sizePopupArrow:$_,arrowPolygon:B_,arrowPath:$P,arrowShadowWidth:zP,borderRadiusXS:eme,calc:tme}=Ff;return{pointerEvents:"none",width:$_,height:$_,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:$_,height:tme($_).div(2).equal(),background:kh,clipPath:{_multi_value_:!0,value:[B_,$P]},content:'""'},"&::after":{content:'""',position:"absolute",width:zP,height:zP,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${unit$1(eme)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:x_,zIndex:0,background:"transparent"}}},MAX_VERTICAL_CONTENT_RADIUS=8;function getArrowOffsetToken(Ff){const{contentRadius:kh,limitVerticalRadius:x_}=Ff,$_=kh>12?kh+2:12;return{arrowOffsetHorizontal:$_,arrowOffsetVertical:x_?MAX_VERTICAL_CONTENT_RADIUS:$_}}function isInject(Ff,kh){return Ff?kh:{}}function getArrowStyle(Ff,kh,x_){const{componentCls:$_,boxShadowPopoverArrow:B_,arrowOffsetVertical:$P,arrowOffsetHorizontal:zP}=Ff,{arrowDistance:eme=0,arrowPlacement:tme={left:!0,right:!0,top:!0,bottom:!0}}={};return{[$_]:Object.assign(Object.assign(Object.assign(Object.assign({[`${$_}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},genRoundedArrow(Ff,kh,B_)),{"&:before":{background:kh}})]},isInject(!!tme.top,{[[`&-placement-top > ${$_}-arrow`,`&-placement-topLeft > ${$_}-arrow`,`&-placement-topRight > ${$_}-arrow`].join(",")]:{bottom:eme,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${$_}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${$_}-arrow`]:{left:{_skip_check_:!0,value:zP}},[`&-placement-topRight > ${$_}-arrow`]:{right:{_skip_check_:!0,value:zP}}})),isInject(!!tme.bottom,{[[`&-placement-bottom > ${$_}-arrow`,`&-placement-bottomLeft > ${$_}-arrow`,`&-placement-bottomRight > ${$_}-arrow`].join(",")]:{top:eme,transform:"translateY(-100%)"},[`&-placement-bottom > ${$_}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${$_}-arrow`]:{left:{_skip_check_:!0,value:zP}},[`&-placement-bottomRight > ${$_}-arrow`]:{right:{_skip_check_:!0,value:zP}}})),isInject(!!tme.left,{[[`&-placement-left > ${$_}-arrow`,`&-placement-leftTop > ${$_}-arrow`,`&-placement-leftBottom > ${$_}-arrow`].join(",")]:{right:{_skip_check_:!0,value:eme},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${$_}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${$_}-arrow`]:{top:$P},[`&-placement-leftBottom > ${$_}-arrow`]:{bottom:$P}})),isInject(!!tme.right,{[[`&-placement-right > ${$_}-arrow`,`&-placement-rightTop > ${$_}-arrow`,`&-placement-rightBottom > ${$_}-arrow`].join(",")]:{left:{_skip_check_:!0,value:eme},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${$_}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${$_}-arrow`]:{top:$P},[`&-placement-rightBottom > ${$_}-arrow`]:{bottom:$P}}))}}function getOverflowOptions(Ff,kh,x_,$_){if($_===!1)return{adjustX:!1,adjustY:!1};const B_=$_&&typeof $_=="object"?$_:{},$P={};switch(Ff){case"top":case"bottom":$P.shiftX=kh.arrowOffsetHorizontal*2+x_,$P.shiftY=!0,$P.adjustY=!0;break;case"left":case"right":$P.shiftY=kh.arrowOffsetVertical*2+x_,$P.shiftX=!0,$P.adjustX=!0;break}const zP=Object.assign(Object.assign({},$P),B_);return zP.shiftX||(zP.adjustX=!0),zP.shiftY||(zP.adjustY=!0),zP}const PlacementAlignMap={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"]}},ArrowCenterPlacementAlignMap={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"]}},DisableAutoArrowList=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function getPlacements(Ff){const{arrowWidth:kh,autoAdjustOverflow:x_,arrowPointAtCenter:$_,offset:B_,borderRadius:$P,visibleFirst:zP}=Ff,eme=kh/2,tme={};return Object.keys(PlacementAlignMap).forEach(nme=>{const rme=$_&&ArrowCenterPlacementAlignMap[nme]||PlacementAlignMap[nme],ame=Object.assign(Object.assign({},rme),{offset:[0,0],dynamicInset:!0});switch(tme[nme]=ame,DisableAutoArrowList.has(nme)&&(ame.autoArrow=!1),nme){case"top":case"topLeft":case"topRight":ame.offset[1]=-eme-B_;break;case"bottom":case"bottomLeft":case"bottomRight":ame.offset[1]=eme+B_;break;case"left":case"leftTop":case"leftBottom":ame.offset[0]=-eme-B_;break;case"right":case"rightTop":case"rightBottom":ame.offset[0]=eme+B_;break}const ome=getArrowOffsetToken({contentRadius:$P,limitVerticalRadius:!0});if($_)switch(nme){case"topLeft":case"bottomLeft":ame.offset[0]=-ome.arrowOffsetHorizontal-eme;break;case"topRight":case"bottomRight":ame.offset[0]=ome.arrowOffsetHorizontal+eme;break;case"leftTop":case"rightTop":ame.offset[1]=-ome.arrowOffsetHorizontal-eme;break;case"leftBottom":case"rightBottom":ame.offset[1]=ome.arrowOffsetHorizontal+eme;break}ame.overflow=getOverflowOptions(nme,ome,kh,x_),zP&&(ame.htmlRegion="visibleFirst")}),tme}const genTooltipStyle=Ff=>{const{componentCls:kh,tooltipMaxWidth:x_,tooltipColor:$_,tooltipBg:B_,tooltipBorderRadius:$P,zIndexPopup:zP,controlHeight:eme,boxShadowSecondary:tme,paddingSM:nme,paddingXS:rme}=Ff;return[{[kh]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(Ff)),{position:"absolute",zIndex:zP,display:"block",width:"max-content",maxWidth:x_,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":B_,[`${kh}-inner`]:{minWidth:"1em",minHeight:eme,padding:`${unit$1(Ff.calc(nme).div(2).equal())} ${unit$1(rme)}`,color:$_,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:B_,borderRadius:$P,boxShadow:tme,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${kh}-inner`]:{borderRadius:Ff.min($P,MAX_VERTICAL_CONTENT_RADIUS)}},[`${kh}-content`]:{position:"relative"}}),genPresetColor(Ff,(ame,ome)=>{let{darkColor:ime}=ome;return{[`&${kh}-${ame}`]:{[`${kh}-inner`]:{backgroundColor:ime},[`${kh}-arrow`]:{"--antd-arrow-background-color":ime}}}})),{"&-rtl":{direction:"rtl"}})},getArrowStyle(Ff,"var(--antd-arrow-background-color)"),{[`${kh}-pure`]:{position:"relative",maxWidth:"none",margin:Ff.sizePopupArrow}}]},prepareComponentToken$a=Ff=>Object.assign(Object.assign({zIndexPopup:Ff.zIndexPopupBase+70},getArrowOffsetToken({contentRadius:Ff.borderRadius,limitVerticalRadius:!0})),getArrowToken(merge(Ff,{borderRadiusOuter:Math.min(Ff.borderRadiusOuter,4)}))),useStyle$d=function(Ff){let kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return genStyleHooks("Tooltip",$_=>{const{borderRadius:B_,colorTextLightSolid:$P,colorBgSpotlight:zP}=$_,eme=merge($_,{tooltipMaxWidth:250,tooltipColor:$P,tooltipBorderRadius:B_,tooltipBg:zP});return[genTooltipStyle(eme),initZoomMotion($_,"zoom-big-fast")]},prepareComponentToken$a,{resetStyle:!1,injectStyle:kh})(Ff)},inverseColors=PresetColors.map(Ff=>`${Ff}-inverse`);function isPresetColor(Ff){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(_toConsumableArray(inverseColors),_toConsumableArray(PresetColors)).includes(Ff):PresetColors.includes(Ff)}function parseColor(Ff,kh){const x_=isPresetColor(kh),$_=classNames({[`${Ff}-${kh}`]:kh&&x_}),B_={},$P={};return kh&&!x_&&(B_.background=kh,$P["--antd-arrow-background-color"]=kh),{className:$_,overlayStyle:B_,arrowStyle:$P}}const PurePanel$2=Ff=>{const{prefixCls:kh,className:x_,placement:$_="top",title:B_,color:$P,overlayInnerStyle:zP}=Ff,{getPrefixCls:eme}=React__namespace.useContext(ConfigContext),tme=eme("tooltip",kh),[nme,rme,ame]=useStyle$d(tme),ome=parseColor(tme,$P),ime=ome.arrowStyle,cme=Object.assign(Object.assign({},zP),ome.overlayStyle),ume=classNames(rme,ame,tme,`${tme}-pure`,`${tme}-placement-${$_}`,x_,ome.className);return nme(React__namespace.createElement("div",{className:ume,style:ime},React__namespace.createElement("div",{className:`${tme}-arrow`}),React__namespace.createElement(Popup$1,Object.assign({},Ff,{className:rme,prefixCls:tme,overlayInnerStyle:cme}),B_)))};var __rest$s=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const InternalTooltip=React__namespace.forwardRef((Ff,kh)=>{var x_,$_;const{prefixCls:B_,openClassName:$P,getTooltipContainer:zP,overlayClassName:eme,color:tme,overlayInnerStyle:nme,children:rme,afterOpenChange:ame,afterVisibleChange:ome,destroyTooltipOnHide:ime,arrow:cme=!0,title:ume,overlay:sme,builtinPlacements:fme,arrowPointAtCenter:lme=!1,autoAdjustOverflow:hme=!0}=Ff,pme=!!cme,[,gme]=useToken(),{getPopupContainer:yme,getPrefixCls:mme,direction:bme}=React__namespace.useContext(ConfigContext),Sme=devUseWarning("Tooltip"),_me=React__namespace.useRef(null),Cme=()=>{var g0e;(g0e=_me.current)===null||g0e===void 0||g0e.forceAlign()};React__namespace.useImperativeHandle(kh,()=>{var g0e;return{forceAlign:Cme,forcePopupAlign:()=>{Sme.deprecated(!1,"forcePopupAlign","forceAlign"),Cme()},nativeElement:(g0e=_me.current)===null||g0e===void 0?void 0:g0e.nativeElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(g0e=>{let[u0e,h0e]=g0e;Sme.deprecated(!(u0e in Ff),u0e,h0e)}),process.env.NODE_ENV!=="production"&&Sme(!ime||typeof ime=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&Sme(!cme||typeof cme=="boolean"||!("arrowPointAtCenter"in cme),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[Eme,Tme]=useMergedState(!1,{value:(x_=Ff.open)!==null&&x_!==void 0?x_:Ff.visible,defaultValue:($_=Ff.defaultOpen)!==null&&$_!==void 0?$_:Ff.defaultVisible}),Rme=!ume&&!sme&&ume!==0,Pme=g0e=>{var u0e,h0e;Tme(Rme?!1:g0e),Rme||((u0e=Ff.onOpenChange)===null||u0e===void 0||u0e.call(Ff,g0e),(h0e=Ff.onVisibleChange)===null||h0e===void 0||h0e.call(Ff,g0e))},$me=React__namespace.useMemo(()=>{var g0e,u0e;let h0e=lme;return typeof cme=="object"&&(h0e=(u0e=(g0e=cme.pointAtCenter)!==null&&g0e!==void 0?g0e:cme.arrowPointAtCenter)!==null&&u0e!==void 0?u0e:lme),fme||getPlacements({arrowPointAtCenter:h0e,autoAdjustOverflow:hme,arrowWidth:pme?gme.sizePopupArrow:0,borderRadius:gme.borderRadius,offset:gme.marginXXS,visibleFirst:!0})},[lme,cme,fme,gme]),Dme=React__namespace.useMemo(()=>ume===0?ume:sme||ume||"",[sme,ume]),Mme=React__namespace.createElement(NoCompactStyle,null,typeof Dme=="function"?Dme():Dme),{getPopupContainer:Nme,placement:Ime="top",mouseEnterDelay:wme=.1,mouseLeaveDelay:Ome=.1,overlayStyle:Ame,rootClassName:Fme}=Ff,Bme=__rest$s(Ff,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),kme=mme("tooltip",B_),Lme=mme(),Hme=Ff["data-popover-inject"];let Wme=Eme;!("open"in Ff)&&!("visible"in Ff)&&Rme&&(Wme=!1);const zme=React__namespace.isValidElement(rme)&&!isFragment(rme)?rme:React__namespace.createElement("span",null,rme),Vme=zme.props,Xme=!Vme.className||typeof Vme.className=="string"?classNames(Vme.className,$P||`${kme}-open`):Vme.className,[e0e,Ume,Jme]=useStyle$d(kme,!Hme),s0e=parseColor(kme,tme),d0e=s0e.arrowStyle,Zme=Object.assign(Object.assign({},nme),s0e.overlayStyle),Qme=classNames(eme,{[`${kme}-rtl`]:bme==="rtl"},s0e.className,Fme,Ume,Jme),[a0e,t0e]=useZIndex("Tooltip",Bme.zIndex),o0e=React__namespace.createElement(Tooltip$2,Object.assign({},Bme,{zIndex:a0e,showArrow:pme,placement:Ime,mouseEnterDelay:wme,mouseLeaveDelay:Ome,prefixCls:kme,overlayClassName:Qme,overlayStyle:Object.assign(Object.assign({},d0e),Ame),getTooltipContainer:Nme||zP||yme,ref:_me,builtinPlacements:$me,overlay:Mme,visible:Wme,onVisibleChange:Pme,afterVisibleChange:ame??ome,overlayInnerStyle:Zme,arrowContent:React__namespace.createElement("span",{className:`${kme}-arrow-content`}),motion:{motionName:getTransitionName(Lme,"zoom-big-fast",Ff.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!ime}),Wme?cloneElement(zme,{className:Xme}):zme);return e0e(React__namespace.createElement(zIndexContext.Provider,{value:t0e},o0e))}),Tooltip=InternalTooltip;process.env.NODE_ENV!=="production"&&(Tooltip.displayName="Tooltip");Tooltip._InternalPanelDoNotUseOrYouWillBeFired=PurePanel$2;var RightOutlined$1={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"},RightOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:RightOutlined$1}))},RefIcon$t=React__namespace.forwardRef(RightOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$t.displayName="RightOutlined");var LeftOutlined$1={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"},LeftOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:LeftOutlined$1}))},RefIcon$s=React__namespace.forwardRef(LeftOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$s.displayName="LeftOutlined");var dayjs_min={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){var x_=1e3,$_=6e4,B_=36e5,$P="millisecond",zP="second",eme="minute",tme="hour",nme="day",rme="week",ame="month",ome="quarter",ime="year",cme="date",ume="Invalid Date",sme=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,fme=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,lme={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Rme){var Pme=["th","st","nd","rd"],$me=Rme%100;return"["+Rme+(Pme[($me-20)%10]||Pme[$me]||Pme[0])+"]"}},hme=function(Rme,Pme,$me){var Dme=String(Rme);return!Dme||Dme.length>=Pme?Rme:""+Array(Pme+1-Dme.length).join($me)+Rme},pme={s:hme,z:function(Rme){var Pme=-Rme.utcOffset(),$me=Math.abs(Pme),Dme=Math.floor($me/60),Mme=$me%60;return(Pme<=0?"+":"-")+hme(Dme,2,"0")+":"+hme(Mme,2,"0")},m:function Rme(Pme,$me){if(Pme.date()<$me.date())return-Rme($me,Pme);var Dme=12*($me.year()-Pme.year())+($me.month()-Pme.month()),Mme=Pme.clone().add(Dme,ame),Nme=$me-Mme<0,Ime=Pme.clone().add(Dme+(Nme?-1:1),ame);return+(-(Dme+($me-Mme)/(Nme?Mme-Ime:Ime-Mme))||0)},a:function(Rme){return Rme<0?Math.ceil(Rme)||0:Math.floor(Rme)},p:function(Rme){return{M:ame,y:ime,w:rme,d:nme,D:cme,h:tme,m:eme,s:zP,ms:$P,Q:ome}[Rme]||String(Rme||"").toLowerCase().replace(/s$/,"")},u:function(Rme){return Rme===void 0}},gme="en",yme={};yme[gme]=lme;var mme="$isDayjsObject",bme=function(Rme){return Rme instanceof Eme||!(!Rme||!Rme[mme])},Sme=function Rme(Pme,$me,Dme){var Mme;if(!Pme)return gme;if(typeof Pme=="string"){var Nme=Pme.toLowerCase();yme[Nme]&&(Mme=Nme),$me&&(yme[Nme]=$me,Mme=Nme);var Ime=Pme.split("-");if(!Mme&&Ime.length>1)return Rme(Ime[0])}else{var wme=Pme.name;yme[wme]=Pme,Mme=wme}return!Dme&&Mme&&(gme=Mme),Mme||!Dme&&gme},_me=function(Rme,Pme){if(bme(Rme))return Rme.clone();var $me=typeof Pme=="object"?Pme:{};return $me.date=Rme,$me.args=arguments,new Eme($me)},Cme=pme;Cme.l=Sme,Cme.i=bme,Cme.w=function(Rme,Pme){return _me(Rme,{locale:Pme.$L,utc:Pme.$u,x:Pme.$x,$offset:Pme.$offset})};var Eme=function(){function Rme($me){this.$L=Sme($me.locale,null,!0),this.parse($me),this.$x=this.$x||$me.x||{},this[mme]=!0}var Pme=Rme.prototype;return Pme.parse=function($me){this.$d=function(Dme){var Mme=Dme.date,Nme=Dme.utc;if(Mme===null)return new Date(NaN);if(Cme.u(Mme))return new Date;if(Mme instanceof Date)return new Date(Mme);if(typeof Mme=="string"&&!/Z$/i.test(Mme)){var Ime=Mme.match(sme);if(Ime){var wme=Ime[2]-1||0,Ome=(Ime[7]||"0").substring(0,3);return Nme?new Date(Date.UTC(Ime[1],wme,Ime[3]||1,Ime[4]||0,Ime[5]||0,Ime[6]||0,Ome)):new Date(Ime[1],wme,Ime[3]||1,Ime[4]||0,Ime[5]||0,Ime[6]||0,Ome)}}return new Date(Mme)}($me),this.init()},Pme.init=function(){var $me=this.$d;this.$y=$me.getFullYear(),this.$M=$me.getMonth(),this.$D=$me.getDate(),this.$W=$me.getDay(),this.$H=$me.getHours(),this.$m=$me.getMinutes(),this.$s=$me.getSeconds(),this.$ms=$me.getMilliseconds()},Pme.$utils=function(){return Cme},Pme.isValid=function(){return this.$d.toString()!==ume},Pme.isSame=function($me,Dme){var Mme=_me($me);return this.startOf(Dme)<=Mme&&Mme<=this.endOf(Dme)},Pme.isAfter=function($me,Dme){return _me($me)<this.startOf(Dme)},Pme.isBefore=function($me,Dme){return this.endOf(Dme)<_me($me)},Pme.$g=function($me,Dme,Mme){return Cme.u($me)?this[Dme]:this.set(Mme,$me)},Pme.unix=function(){return Math.floor(this.valueOf()/1e3)},Pme.valueOf=function(){return this.$d.getTime()},Pme.startOf=function($me,Dme){var Mme=this,Nme=!!Cme.u(Dme)||Dme,Ime=Cme.p($me),wme=function(Wme,zme){var Vme=Cme.w(Mme.$u?Date.UTC(Mme.$y,zme,Wme):new Date(Mme.$y,zme,Wme),Mme);return Nme?Vme:Vme.endOf(nme)},Ome=function(Wme,zme){return Cme.w(Mme.toDate()[Wme].apply(Mme.toDate("s"),(Nme?[0,0,0,0]:[23,59,59,999]).slice(zme)),Mme)},Ame=this.$W,Fme=this.$M,Bme=this.$D,kme="set"+(this.$u?"UTC":"");switch(Ime){case ime:return Nme?wme(1,0):wme(31,11);case ame:return Nme?wme(1,Fme):wme(0,Fme+1);case rme:var Lme=this.$locale().weekStart||0,Hme=(Ame<Lme?Ame+7:Ame)-Lme;return wme(Nme?Bme-Hme:Bme+(6-Hme),Fme);case nme:case cme:return Ome(kme+"Hours",0);case tme:return Ome(kme+"Minutes",1);case eme:return Ome(kme+"Seconds",2);case zP:return Ome(kme+"Milliseconds",3);default:return this.clone()}},Pme.endOf=function($me){return this.startOf($me,!1)},Pme.$set=function($me,Dme){var Mme,Nme=Cme.p($me),Ime="set"+(this.$u?"UTC":""),wme=(Mme={},Mme[nme]=Ime+"Date",Mme[cme]=Ime+"Date",Mme[ame]=Ime+"Month",Mme[ime]=Ime+"FullYear",Mme[tme]=Ime+"Hours",Mme[eme]=Ime+"Minutes",Mme[zP]=Ime+"Seconds",Mme[$P]=Ime+"Milliseconds",Mme)[Nme],Ome=Nme===nme?this.$D+(Dme-this.$W):Dme;if(Nme===ame||Nme===ime){var Ame=this.clone().set(cme,1);Ame.$d[wme](Ome),Ame.init(),this.$d=Ame.set(cme,Math.min(this.$D,Ame.daysInMonth())).$d}else wme&&this.$d[wme](Ome);return this.init(),this},Pme.set=function($me,Dme){return this.clone().$set($me,Dme)},Pme.get=function($me){return this[Cme.p($me)]()},Pme.add=function($me,Dme){var Mme,Nme=this;$me=Number($me);var Ime=Cme.p(Dme),wme=function(Fme){var Bme=_me(Nme);return Cme.w(Bme.date(Bme.date()+Math.round(Fme*$me)),Nme)};if(Ime===ame)return this.set(ame,this.$M+$me);if(Ime===ime)return this.set(ime,this.$y+$me);if(Ime===nme)return wme(1);if(Ime===rme)return wme(7);var Ome=(Mme={},Mme[eme]=$_,Mme[tme]=B_,Mme[zP]=x_,Mme)[Ime]||1,Ame=this.$d.getTime()+$me*Ome;return Cme.w(Ame,this)},Pme.subtract=function($me,Dme){return this.add(-1*$me,Dme)},Pme.format=function($me){var Dme=this,Mme=this.$locale();if(!this.isValid())return Mme.invalidDate||ume;var Nme=$me||"YYYY-MM-DDTHH:mm:ssZ",Ime=Cme.z(this),wme=this.$H,Ome=this.$m,Ame=this.$M,Fme=Mme.weekdays,Bme=Mme.months,kme=Mme.meridiem,Lme=function(zme,Vme,Xme,e0e){return zme&&(zme[Vme]||zme(Dme,Nme))||Xme[Vme].slice(0,e0e)},Hme=function(zme){return Cme.s(wme%12||12,zme,"0")},Wme=kme||function(zme,Vme,Xme){var e0e=zme<12?"AM":"PM";return Xme?e0e.toLowerCase():e0e};return Nme.replace(fme,function(zme,Vme){return Vme||function(Xme){switch(Xme){case"YY":return String(Dme.$y).slice(-2);case"YYYY":return Cme.s(Dme.$y,4,"0");case"M":return Ame+1;case"MM":return Cme.s(Ame+1,2,"0");case"MMM":return Lme(Mme.monthsShort,Ame,Bme,3);case"MMMM":return Lme(Bme,Ame);case"D":return Dme.$D;case"DD":return Cme.s(Dme.$D,2,"0");case"d":return String(Dme.$W);case"dd":return Lme(Mme.weekdaysMin,Dme.$W,Fme,2);case"ddd":return Lme(Mme.weekdaysShort,Dme.$W,Fme,3);case"dddd":return Fme[Dme.$W];case"H":return String(wme);case"HH":return Cme.s(wme,2,"0");case"h":return Hme(1);case"hh":return Hme(2);case"a":return Wme(wme,Ome,!0);case"A":return Wme(wme,Ome,!1);case"m":return String(Ome);case"mm":return Cme.s(Ome,2,"0");case"s":return String(Dme.$s);case"ss":return Cme.s(Dme.$s,2,"0");case"SSS":return Cme.s(Dme.$ms,3,"0");case"Z":return Ime}return null}(zme)||Ime.replace(":","")})},Pme.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Pme.diff=function($me,Dme,Mme){var Nme,Ime=this,wme=Cme.p(Dme),Ome=_me($me),Ame=(Ome.utcOffset()-this.utcOffset())*$_,Fme=this-Ome,Bme=function(){return Cme.m(Ime,Ome)};switch(wme){case ime:Nme=Bme()/12;break;case ame:Nme=Bme();break;case ome:Nme=Bme()/3;break;case rme:Nme=(Fme-Ame)/6048e5;break;case nme:Nme=(Fme-Ame)/864e5;break;case tme:Nme=Fme/B_;break;case eme:Nme=Fme/$_;break;case zP:Nme=Fme/x_;break;default:Nme=Fme}return Mme?Nme:Cme.a(Nme)},Pme.daysInMonth=function(){return this.endOf(ame).$D},Pme.$locale=function(){return yme[this.$L]},Pme.locale=function($me,Dme){if(!$me)return this.$L;var Mme=this.clone(),Nme=Sme($me,Dme,!0);return Nme&&(Mme.$L=Nme),Mme},Pme.clone=function(){return Cme.w(this.$d,this)},Pme.toDate=function(){return new Date(this.valueOf())},Pme.toJSON=function(){return this.isValid()?this.toISOString():null},Pme.toISOString=function(){return this.$d.toISOString()},Pme.toString=function(){return this.$d.toUTCString()},Rme}(),Tme=Eme.prototype;return _me.prototype=Tme,[["$ms",$P],["$s",zP],["$m",eme],["$H",tme],["$W",nme],["$M",ame],["$y",ime],["$D",cme]].forEach(function(Rme){Tme[Rme[1]]=function(Pme){return this.$g(Pme,Rme[0],Rme[1])}}),_me.extend=function(Rme,Pme){return Rme.$i||(Rme(Pme,Eme,_me),Rme.$i=!0),_me},_me.locale=Sme,_me.isDayjs=bme,_me.unix=function(Rme){return _me(1e3*Rme)},_me.en=yme[gme],_me.Ls=yme,_me.p={},_me})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs(dayjs_minExports);var weekday$1={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){return function(x_,$_){$_.prototype.weekday=function(B_){var $P=this.$locale().weekStart||0,zP=this.$W,eme=(zP<$P?zP+7:zP)-$P;return this.$utils().u(B_)?eme:this.subtract(eme,"day").add(B_,"day")}}})})(weekday$1);var weekdayExports=weekday$1.exports;const weekday=getDefaultExportFromCjs(weekdayExports);var localeData$1={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){return function(x_,$_,B_){var $P=$_.prototype,zP=function(ame){return ame&&(ame.indexOf?ame:ame.s)},eme=function(ame,ome,ime,cme,ume){var sme=ame.name?ame:ame.$locale(),fme=zP(sme[ome]),lme=zP(sme[ime]),hme=fme||lme.map(function(gme){return gme.slice(0,cme)});if(!ume)return hme;var pme=sme.weekStart;return hme.map(function(gme,yme){return hme[(yme+(pme||0))%7]})},tme=function(){return B_.Ls[B_.locale()]},nme=function(ame,ome){return ame.formats[ome]||function(ime){return ime.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(cme,ume,sme){return ume||sme.slice(1)})}(ame.formats[ome.toUpperCase()])},rme=function(){var ame=this;return{months:function(ome){return ome?ome.format("MMMM"):eme(ame,"months")},monthsShort:function(ome){return ome?ome.format("MMM"):eme(ame,"monthsShort","months",3)},firstDayOfWeek:function(){return ame.$locale().weekStart||0},weekdays:function(ome){return ome?ome.format("dddd"):eme(ame,"weekdays")},weekdaysMin:function(ome){return ome?ome.format("dd"):eme(ame,"weekdaysMin","weekdays",2)},weekdaysShort:function(ome){return ome?ome.format("ddd"):eme(ame,"weekdaysShort","weekdays",3)},longDateFormat:function(ome){return nme(ame.$locale(),ome)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};$P.localeData=function(){return rme.bind(this)()},B_.localeData=function(){var ame=tme();return{firstDayOfWeek:function(){return ame.weekStart||0},weekdays:function(){return B_.weekdays()},weekdaysShort:function(){return B_.weekdaysShort()},weekdaysMin:function(){return B_.weekdaysMin()},months:function(){return B_.months()},monthsShort:function(){return B_.monthsShort()},longDateFormat:function(ome){return nme(ame,ome)},meridiem:ame.meridiem,ordinal:ame.ordinal}},B_.months=function(){return eme(tme(),"months")},B_.monthsShort=function(){return eme(tme(),"monthsShort","months",3)},B_.weekdays=function(ame){return eme(tme(),"weekdays",null,null,ame)},B_.weekdaysShort=function(ame){return eme(tme(),"weekdaysShort","weekdays",3,ame)},B_.weekdaysMin=function(ame){return eme(tme(),"weekdaysMin","weekdays",2,ame)}}})})(localeData$1);var localeDataExports=localeData$1.exports;const localeData=getDefaultExportFromCjs(localeDataExports);var weekOfYear$1={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){var x_="week",$_="year";return function(B_,$P,zP){var eme=$P.prototype;eme.week=function(tme){if(tme===void 0&&(tme=null),tme!==null)return this.add(7*(tme-this.week()),"day");var nme=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var rme=zP(this).startOf($_).add(1,$_).date(nme),ame=zP(this).endOf(x_);if(rme.isBefore(ame))return 1}var ome=zP(this).startOf($_).date(nme).startOf(x_).subtract(1,"millisecond"),ime=this.diff(ome,x_,!0);return ime<0?zP(this).startOf("week").week():Math.ceil(ime)},eme.weeks=function(tme){return tme===void 0&&(tme=null),this.week(tme)}}})})(weekOfYear$1);var weekOfYearExports=weekOfYear$1.exports;const weekOfYear=getDefaultExportFromCjs(weekOfYearExports);var weekYear$1={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){return function(x_,$_){$_.prototype.weekYear=function(){var B_=this.month(),$P=this.week(),zP=this.year();return $P===1&&B_===11?zP+1:B_===0&&$P>=52?zP-1:zP}}})})(weekYear$1);var weekYearExports=weekYear$1.exports;const weekYear=getDefaultExportFromCjs(weekYearExports);var advancedFormat$1={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){return function(x_,$_){var B_=$_.prototype,$P=B_.format;B_.format=function(zP){var eme=this,tme=this.$locale();if(!this.isValid())return $P.bind(this)(zP);var nme=this.$utils(),rme=(zP||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(ame){switch(ame){case"Q":return Math.ceil((eme.$M+1)/3);case"Do":return tme.ordinal(eme.$D);case"gggg":return eme.weekYear();case"GGGG":return eme.isoWeekYear();case"wo":return tme.ordinal(eme.week(),"W");case"w":case"ww":return nme.s(eme.week(),ame==="w"?1:2,"0");case"W":case"WW":return nme.s(eme.isoWeek(),ame==="W"?1:2,"0");case"k":case"kk":return nme.s(String(eme.$H===0?24:eme.$H),ame==="k"?1:2,"0");case"X":return Math.floor(eme.$d.getTime()/1e3);case"x":return eme.$d.getTime();case"z":return"["+eme.offsetName()+"]";case"zzz":return"["+eme.offsetName("long")+"]";default:return ame}});return $P.bind(this)(rme)}}})})(advancedFormat$1);var advancedFormatExports=advancedFormat$1.exports;const advancedFormat=getDefaultExportFromCjs(advancedFormatExports);var customParseFormat$1={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){var x_={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},$_=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,B_=/\d\d/,$P=/\d\d?/,zP=/\d*[^-_:/,()\s\d]+/,eme={},tme=function(ume){return(ume=+ume)+(ume>68?1900:2e3)},nme=function(ume){return function(sme){this[ume]=+sme}},rme=[/[+-]\d\d:?(\d\d)?|Z/,function(ume){(this.zone||(this.zone={})).offset=function(sme){if(!sme||sme==="Z")return 0;var fme=sme.match(/([+-]|\d\d)/g),lme=60*fme[1]+(+fme[2]||0);return lme===0?0:fme[0]==="+"?-lme:lme}(ume)}],ame=function(ume){var sme=eme[ume];return sme&&(sme.indexOf?sme:sme.s.concat(sme.f))},ome=function(ume,sme){var fme,lme=eme.meridiem;if(lme){for(var hme=1;hme<=24;hme+=1)if(ume.indexOf(lme(hme,0,sme))>-1){fme=hme>12;break}}else fme=ume===(sme?"pm":"PM");return fme},ime={A:[zP,function(ume){this.afternoon=ome(ume,!1)}],a:[zP,function(ume){this.afternoon=ome(ume,!0)}],S:[/\d/,function(ume){this.milliseconds=100*+ume}],SS:[B_,function(ume){this.milliseconds=10*+ume}],SSS:[/\d{3}/,function(ume){this.milliseconds=+ume}],s:[$P,nme("seconds")],ss:[$P,nme("seconds")],m:[$P,nme("minutes")],mm:[$P,nme("minutes")],H:[$P,nme("hours")],h:[$P,nme("hours")],HH:[$P,nme("hours")],hh:[$P,nme("hours")],D:[$P,nme("day")],DD:[B_,nme("day")],Do:[zP,function(ume){var sme=eme.ordinal,fme=ume.match(/\d+/);if(this.day=fme[0],sme)for(var lme=1;lme<=31;lme+=1)sme(lme).replace(/\[|\]/g,"")===ume&&(this.day=lme)}],M:[$P,nme("month")],MM:[B_,nme("month")],MMM:[zP,function(ume){var sme=ame("months"),fme=(ame("monthsShort")||sme.map(function(lme){return lme.slice(0,3)})).indexOf(ume)+1;if(fme<1)throw new Error;this.month=fme%12||fme}],MMMM:[zP,function(ume){var sme=ame("months").indexOf(ume)+1;if(sme<1)throw new Error;this.month=sme%12||sme}],Y:[/[+-]?\d+/,nme("year")],YY:[B_,function(ume){this.year=tme(ume)}],YYYY:[/\d{4}/,nme("year")],Z:rme,ZZ:rme};function cme(ume){var sme,fme;sme=ume,fme=eme&&eme.formats;for(var lme=(ume=sme.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Sme,_me,Cme){var Eme=Cme&&Cme.toUpperCase();return _me||fme[Cme]||x_[Cme]||fme[Eme].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Tme,Rme,Pme){return Rme||Pme.slice(1)})})).match($_),hme=lme.length,pme=0;pme<hme;pme+=1){var gme=lme[pme],yme=ime[gme],mme=yme&&yme[0],bme=yme&&yme[1];lme[pme]=bme?{regex:mme,parser:bme}:gme.replace(/^\[|\]$/g,"")}return function(Sme){for(var _me={},Cme=0,Eme=0;Cme<hme;Cme+=1){var Tme=lme[Cme];if(typeof Tme=="string")Eme+=Tme.length;else{var Rme=Tme.regex,Pme=Tme.parser,$me=Sme.slice(Eme),Dme=Rme.exec($me)[0];Pme.call(_me,Dme),Sme=Sme.replace(Dme,"")}}return function(Mme){var Nme=Mme.afternoon;if(Nme!==void 0){var Ime=Mme.hours;Nme?Ime<12&&(Mme.hours+=12):Ime===12&&(Mme.hours=0),delete Mme.afternoon}}(_me),_me}}return function(ume,sme,fme){fme.p.customParseFormat=!0,ume&&ume.parseTwoDigitYear&&(tme=ume.parseTwoDigitYear);var lme=sme.prototype,hme=lme.parse;lme.parse=function(pme){var gme=pme.date,yme=pme.utc,mme=pme.args;this.$u=yme;var bme=mme[1];if(typeof bme=="string"){var Sme=mme[2]===!0,_me=mme[3]===!0,Cme=Sme||_me,Eme=mme[2];_me&&(Eme=mme[2]),eme=this.$locale(),!Sme&&Eme&&(eme=fme.Ls[Eme]),this.$d=function($me,Dme,Mme){try{if(["x","X"].indexOf(Dme)>-1)return new Date((Dme==="X"?1e3:1)*$me);var Nme=cme(Dme)($me),Ime=Nme.year,wme=Nme.month,Ome=Nme.day,Ame=Nme.hours,Fme=Nme.minutes,Bme=Nme.seconds,kme=Nme.milliseconds,Lme=Nme.zone,Hme=new Date,Wme=Ome||(Ime||wme?1:Hme.getDate()),zme=Ime||Hme.getFullYear(),Vme=0;Ime&&!wme||(Vme=wme>0?wme-1:Hme.getMonth());var Xme=Ame||0,e0e=Fme||0,Ume=Bme||0,Jme=kme||0;return Lme?new Date(Date.UTC(zme,Vme,Wme,Xme,e0e,Ume,Jme+60*Lme.offset*1e3)):Mme?new Date(Date.UTC(zme,Vme,Wme,Xme,e0e,Ume,Jme)):new Date(zme,Vme,Wme,Xme,e0e,Ume,Jme)}catch{return new Date("")}}(gme,bme,yme),this.init(),Eme&&Eme!==!0&&(this.$L=this.locale(Eme).$L),Cme&&gme!=this.format(bme)&&(this.$d=new Date("")),eme={}}else if(bme instanceof Array)for(var Tme=bme.length,Rme=1;Rme<=Tme;Rme+=1){mme[1]=bme[Rme-1];var Pme=fme.apply(this,mme);if(Pme.isValid()){this.$d=Pme.$d,this.$L=Pme.$L,this.init();break}Rme===Tme&&(this.$d=new Date(""))}else hme.call(this,pme)}}})})(customParseFormat$1);var customParseFormatExports=customParseFormat$1.exports;const customParseFormat=getDefaultExportFromCjs(customParseFormatExports);dayjs.extend(customParseFormat);dayjs.extend(advancedFormat);dayjs.extend(weekday);dayjs.extend(localeData);dayjs.extend(weekOfYear);dayjs.extend(weekYear);dayjs.extend(function(Ff,kh){var x_=kh.prototype,$_=x_.format;x_.format=function($P){var zP=($P||"").replace("Wo","wo");return $_.bind(this)(zP)}});var localeMap={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},parseLocale=function(kh){var x_=localeMap[kh];return x_||kh.split("_")[0]},parseNoMatchNotice=function(){noteOnce(!1,"Not match any format. Please help to fire a issue about this.")},generateConfig={getNow:function(){return dayjs()},getFixedDate:function(kh){return dayjs(kh,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(kh){return kh.endOf("month")},getWeekDay:function(kh){var x_=kh.locale("en");return x_.weekday()+x_.localeData().firstDayOfWeek()},getYear:function(kh){return kh.year()},getMonth:function(kh){return kh.month()},getDate:function(kh){return kh.date()},getHour:function(kh){return kh.hour()},getMinute:function(kh){return kh.minute()},getSecond:function(kh){return kh.second()},getMillisecond:function(kh){return kh.millisecond()},addYear:function(kh,x_){return kh.add(x_,"year")},addMonth:function(kh,x_){return kh.add(x_,"month")},addDate:function(kh,x_){return kh.add(x_,"day")},setYear:function(kh,x_){return kh.year(x_)},setMonth:function(kh,x_){return kh.month(x_)},setDate:function(kh,x_){return kh.date(x_)},setHour:function(kh,x_){return kh.hour(x_)},setMinute:function(kh,x_){return kh.minute(x_)},setSecond:function(kh,x_){return kh.second(x_)},setMillisecond:function(kh,x_){return kh.millisecond(x_)},isAfter:function(kh,x_){return kh.isAfter(x_)},isValidate:function(kh){return kh.isValid()},locale:{getWeekFirstDay:function(kh){return dayjs().locale(parseLocale(kh)).localeData().firstDayOfWeek()},getWeekFirstDate:function(kh,x_){return x_.locale(parseLocale(kh)).weekday(0)},getWeek:function(kh,x_){return x_.locale(parseLocale(kh)).week()},getShortWeekDays:function(kh){return dayjs().locale(parseLocale(kh)).localeData().weekdaysMin()},getShortMonths:function(kh){return dayjs().locale(parseLocale(kh)).localeData().monthsShort()},format:function(kh,x_,$_){return x_.locale(parseLocale(kh)).format($_)},parse:function(kh,x_,$_){for(var B_=parseLocale(kh),$P=0;$P<$_.length;$P+=1){var zP=$_[$P],eme=x_;if(zP.includes("wo")||zP.includes("Wo")){for(var tme=eme.split("-")[0],nme=eme.split("-")[1],rme=dayjs(tme,"YYYY").startOf("year").locale(B_),ame=0;ame<=52;ame+=1){var ome=rme.add(ame,"week");if(ome.format("Wo")===nme)return ome}return parseNoMatchNotice(),null}var ime=dayjs(eme,zP,!0).locale(B_);if(ime.isValid())return ime}return x_&&parseNoMatchNotice(),null}}},PickerContext=React__namespace.createContext(null),BUILT_IN_PLACEMENTS={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function PickerTrigger(Ff){var kh=Ff.popupElement,x_=Ff.popupStyle,$_=Ff.popupClassName,B_=Ff.popupAlign,$P=Ff.transitionName,zP=Ff.getPopupContainer,eme=Ff.children,tme=Ff.range,nme=Ff.placement,rme=Ff.builtinPlacements,ame=rme===void 0?BUILT_IN_PLACEMENTS:rme,ome=Ff.direction,ime=Ff.visible,cme=Ff.onClose,ume=React__namespace.useContext(PickerContext),sme=ume.prefixCls,fme="".concat(sme,"-dropdown"),lme=React__namespace.useMemo(function(){return nme!==void 0?nme:ome==="rtl"?"bottomRight":"bottomLeft"},[nme,ome]);return React__namespace.createElement(Trigger,{showAction:[],hideAction:["click"],popupPlacement:lme,builtinPlacements:ame,prefixCls:fme,popupTransitionName:$P,popup:kh,popupAlign:B_,popupVisible:ime,popupClassName:classNames($_,_defineProperty(_defineProperty({},"".concat(fme,"-range"),tme),"".concat(fme,"-rtl"),ome==="rtl")),popupStyle:x_,stretch:"minWidth",getPopupContainer:zP,onPopupVisibleChange:function(pme){pme||cme()}},eme)}function leftPad(Ff,kh){for(var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",$_=String(Ff);$_.length<kh;)$_="".concat(x_).concat($_);return $_}function toArray$3(Ff){return Ff==null?[]:Array.isArray(Ff)?Ff:[Ff]}function fillIndex(Ff,kh,x_){var $_=_toConsumableArray(Ff);return $_[kh]=x_,$_}function pickProps(Ff,kh){var x_={},$_=kh||Object.keys(Ff);return $_.forEach(function(B_){Ff[B_]!==void 0&&(x_[B_]=Ff[B_])}),x_}function getRowFormat(Ff,kh,x_){if(x_)return x_;switch(Ff){case"time":return kh.fieldTimeFormat;case"datetime":return kh.fieldDateTimeFormat;case"month":return kh.fieldMonthFormat;case"year":return kh.fieldYearFormat;case"quarter":return kh.fieldQuarterFormat;case"week":return kh.fieldWeekFormat;default:return kh.fieldDateFormat}}function getFromDate(Ff,kh,x_){var $_=x_!==void 0?x_:kh[kh.length-1],B_=kh.find(function($P){return Ff[$P]});return $_!==B_?Ff[B_]:void 0}function pickTriggerProps(Ff){return pickProps(Ff,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function useCellRender(Ff,kh,x_,$_){process.env.NODE_ENV!=="production"&&(warningOnce(!kh,"'dateRender' is deprecated. Please use 'cellRender' instead."),warningOnce(!x_,"'monthCellRender' is deprecated. Please use 'cellRender' instead."));var B_=React__namespace.useMemo(function(){return Ff||function(zP,eme){var tme=zP;return kh&&eme.type==="date"?kh(tme,eme.today):x_&&eme.type==="month"?x_(tme,eme.locale):eme.originNode}},[Ff,x_,kh]),$P=React__namespace.useCallback(function(zP,eme){return B_(zP,_objectSpread2(_objectSpread2({},eme),{},{range:$_}))},[B_,$_]);return $P}function useFieldsInvalidate(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],$_=React__namespace.useState([!1,!1]),B_=_slicedToArray($_,2),$P=B_[0],zP=B_[1],eme=function(rme,ame){zP(function(ome){return fillIndex(ome,ame,rme)})},tme=React__namespace.useMemo(function(){return $P.map(function(nme,rme){if(nme)return!0;var ame=Ff[rme];return ame?!!(!x_[rme]&&!ame||ame&&kh(ame,{activeIndex:rme})):!1})},[Ff,$P,kh,x_]);return[tme,eme]}function fillTimeFormat(Ff,kh,x_,$_,B_){var $P="",zP=[];return Ff&&zP.push(B_?"hh":"HH"),kh&&zP.push("mm"),x_&&zP.push("ss"),$P=zP.join(":"),$_&&($P+=".SSS"),B_&&($P+=" A"),$P}function fillLocale(Ff,kh,x_,$_,B_,$P){var zP=Ff.fieldDateTimeFormat,eme=Ff.fieldDateFormat,tme=Ff.fieldTimeFormat,nme=Ff.fieldMonthFormat,rme=Ff.fieldYearFormat,ame=Ff.fieldWeekFormat,ome=Ff.fieldQuarterFormat,ime=Ff.yearFormat,cme=Ff.cellYearFormat,ume=Ff.cellQuarterFormat,sme=Ff.dayFormat,fme=Ff.cellDateFormat,lme=fillTimeFormat(kh,x_,$_,B_,$P);return _objectSpread2(_objectSpread2({},Ff),{},{fieldDateTimeFormat:zP||"YYYY-MM-DD ".concat(lme),fieldDateFormat:eme||"YYYY-MM-DD",fieldTimeFormat:tme||lme,fieldMonthFormat:nme||"YYYY-MM",fieldYearFormat:rme||"YYYY",fieldWeekFormat:ame||"gggg-wo",fieldQuarterFormat:ome||"YYYY-[Q]Q",yearFormat:ime||"YYYY",cellYearFormat:cme||"YYYY",cellQuarterFormat:ume||"[Q]Q",cellDateFormat:fme||sme||"D"})}function useLocale(Ff,kh){var x_=kh.showHour,$_=kh.showMinute,B_=kh.showSecond,$P=kh.showMillisecond,zP=kh.use12Hours;return React.useMemo(function(){return fillLocale(Ff,x_,$_,B_,$P,zP)},[Ff,x_,$_,B_,$P,zP])}function checkShow(Ff,kh,x_){return x_??kh.some(function($_){return Ff.includes($_)})}var showTimeKeys=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function pickTimeProps(Ff){var kh=pickProps(Ff,showTimeKeys),x_=Ff.format,$_=Ff.picker,B_=null;return x_&&(B_=x_,Array.isArray(B_)&&(B_=B_[0]),B_=_typeof(B_)==="object"?B_.format:B_),$_==="time"&&(kh.format=B_),[kh,B_]}function isStringFormat(Ff){return Ff&&typeof Ff=="string"}function existShowConfig(Ff,kh,x_,$_){return[Ff,kh,x_,$_].some(function(B_){return B_!==void 0})}function fillShowConfig(Ff,kh,x_,$_,B_){var $P=kh,zP=x_,eme=$_;if(!Ff&&!$P&&!zP&&!eme&&!B_)$P=!0,zP=!0,eme=!0;else if(Ff){var tme,nme,rme,ame=[$P,zP,eme].some(function(cme){return cme===!1}),ome=[$P,zP,eme].some(function(cme){return cme===!0}),ime=ame?!0:!ome;$P=(tme=$P)!==null&&tme!==void 0?tme:ime,zP=(nme=zP)!==null&&nme!==void 0?nme:ime,eme=(rme=eme)!==null&&rme!==void 0?rme:ime}return[$P,zP,eme,B_]}function getTimeProps(Ff){var kh=Ff.showTime,x_=pickTimeProps(Ff),$_=_slicedToArray(x_,2),B_=$_[0],$P=$_[1],zP=kh&&_typeof(kh)==="object"?kh:{},eme=_objectSpread2(_objectSpread2({defaultOpenValue:zP.defaultOpenValue||zP.defaultValue},B_),zP),tme=eme.showMillisecond,nme=eme.showHour,rme=eme.showMinute,ame=eme.showSecond,ome=existShowConfig(nme,rme,ame,tme),ime=fillShowConfig(ome,nme,rme,ame,tme),cme=_slicedToArray(ime,3);return nme=cme[0],rme=cme[1],ame=cme[2],[eme,_objectSpread2(_objectSpread2({},eme),{},{showHour:nme,showMinute:rme,showSecond:ame,showMillisecond:tme}),eme.format,$P]}function fillShowTimeConfig(Ff,kh,x_,$_,B_){var $P=Ff==="time";if(Ff==="datetime"||$P){for(var zP=$_,eme=getRowFormat(Ff,B_,null),tme=eme,nme=[kh,x_],rme=0;rme<nme.length;rme+=1){var ame=toArray$3(nme[rme])[0];if(isStringFormat(ame)){tme=ame;break}}var ome=zP.showHour,ime=zP.showMinute,cme=zP.showSecond,ume=zP.showMillisecond,sme=zP.use12Hours,fme=checkShow(tme,["a","A","LT","LLL","LTS"],sme),lme=existShowConfig(ome,ime,cme,ume);lme||(ome=checkShow(tme,["H","h","k","LT","LLL"]),ime=checkShow(tme,["m","LT","LLL"]),cme=checkShow(tme,["s","LTS"]),ume=checkShow(tme,["SSS"]));var hme=fillShowConfig(lme,ome,ime,cme,ume),pme=_slicedToArray(hme,3);ome=pme[0],ime=pme[1],cme=pme[2];var gme=kh||fillTimeFormat(ome,ime,cme,ume,fme);return _objectSpread2(_objectSpread2({},zP),{},{format:gme,showHour:ome,showMinute:ime,showSecond:cme,showMillisecond:ume,use12Hours:fme})}return null}function fillClearIcon(Ff,kh,x_){if(process.env.NODE_ENV!=="production"&&x_&&warningOnce(!1,"`clearIcon` will be removed in future. Please use `allowClear` instead."),kh===!1)return null;var $_=kh&&_typeof(kh)==="object"?kh:{};return $_.clearIcon||x_||React__namespace.createElement("span",{className:"".concat(Ff,"-clear-btn")})}var WEEK_DAY_COUNT=7;function nullableCompare(Ff,kh,x_){return!Ff&&!kh||Ff===kh?!0:!Ff||!kh?!1:x_()}function isSameDecade(Ff,kh,x_){return nullableCompare(kh,x_,function(){var $_=Math.floor(Ff.getYear(kh)/10),B_=Math.floor(Ff.getYear(x_)/10);return $_===B_})}function isSameYear(Ff,kh,x_){return nullableCompare(kh,x_,function(){return Ff.getYear(kh)===Ff.getYear(x_)})}function getQuarter(Ff,kh){var x_=Math.floor(Ff.getMonth(kh)/3);return x_+1}function isSameQuarter(Ff,kh,x_){return nullableCompare(kh,x_,function(){return isSameYear(Ff,kh,x_)&&getQuarter(Ff,kh)===getQuarter(Ff,x_)})}function isSameMonth(Ff,kh,x_){return nullableCompare(kh,x_,function(){return isSameYear(Ff,kh,x_)&&Ff.getMonth(kh)===Ff.getMonth(x_)})}function isSameDate(Ff,kh,x_){return nullableCompare(kh,x_,function(){return isSameYear(Ff,kh,x_)&&isSameMonth(Ff,kh,x_)&&Ff.getDate(kh)===Ff.getDate(x_)})}function isSameTime(Ff,kh,x_){return nullableCompare(kh,x_,function(){return Ff.getHour(kh)===Ff.getHour(x_)&&Ff.getMinute(kh)===Ff.getMinute(x_)&&Ff.getSecond(kh)===Ff.getSecond(x_)})}function isSameTimestamp(Ff,kh,x_){return nullableCompare(kh,x_,function(){return isSameDate(Ff,kh,x_)&&isSameTime(Ff,kh,x_)&&Ff.getMillisecond(kh)===Ff.getMillisecond(x_)})}function isSameWeek(Ff,kh,x_,$_){return nullableCompare(x_,$_,function(){var B_=Ff.locale.getWeekFirstDate(kh,x_),$P=Ff.locale.getWeekFirstDate(kh,$_);return isSameYear(Ff,B_,$P)&&Ff.locale.getWeek(kh,x_)===Ff.locale.getWeek(kh,$_)})}function isSame(Ff,kh,x_,$_,B_){switch(B_){case"date":return isSameDate(Ff,x_,$_);case"week":return isSameWeek(Ff,kh.locale,x_,$_);case"month":return isSameMonth(Ff,x_,$_);case"quarter":return isSameQuarter(Ff,x_,$_);case"year":return isSameYear(Ff,x_,$_);case"decade":return isSameDecade(Ff,x_,$_);case"time":return isSameTime(Ff,x_,$_);default:return isSameTimestamp(Ff,x_,$_)}}function isInRange(Ff,kh,x_,$_){return!kh||!x_||!$_?!1:Ff.isAfter($_,kh)&&Ff.isAfter(x_,$_)}function isSameOrAfter(Ff,kh,x_,$_,B_){return isSame(Ff,kh,x_,$_,B_)?!0:Ff.isAfter(x_,$_)}function getWeekStartDate(Ff,kh,x_){var $_=kh.locale.getWeekFirstDay(Ff),B_=kh.setDate(x_,1),$P=kh.getWeekDay(B_),zP=kh.addDate(B_,$_-$P);return kh.getMonth(zP)===kh.getMonth(x_)&&kh.getDate(zP)>1&&(zP=kh.addDate(zP,-7)),zP}function formatValue(Ff,kh){var x_=kh.generateConfig,$_=kh.locale,B_=kh.format;return Ff?typeof B_=="function"?B_(Ff):x_.locale.format($_.locale,Ff,B_):""}function fillTime(Ff,kh,x_){var $_=kh,B_=["getHour","getMinute","getSecond","getMillisecond"],$P=["setHour","setMinute","setSecond","setMillisecond"];return $P.forEach(function(zP,eme){x_?$_=Ff[zP]($_,Ff[B_[eme]](x_)):$_=Ff[zP]($_,0)}),$_}function useDisabledBoundary(Ff,kh,x_,$_,B_){var $P=useEvent(function(zP,eme){return!!(x_&&x_(zP,eme)||$_&&Ff.isAfter($_,zP)&&!isSame(Ff,kh,$_,zP,eme.type)||B_&&Ff.isAfter(zP,B_)&&!isSame(Ff,kh,B_,zP,eme.type))});return $P}function useFieldFormat(Ff,kh,x_){return React__namespace.useMemo(function(){var $_=getRowFormat(Ff,kh,x_),B_=toArray$3($_),$P=B_[0],zP=_typeof($P)==="object"&&$P.type==="mask"?$P.format:null;return[B_.map(function(eme){return typeof eme=="string"||typeof eme=="function"?eme:eme.format}),zP]},[Ff,kh,x_])}function useInputReadOnly(Ff,kh,x_){return typeof Ff[0]=="function"||x_?!0:kh}function useInvalidate(Ff,kh,x_,$_){var B_=useEvent(function($P,zP){var eme=_objectSpread2({type:kh},zP);if(delete eme.activeIndex,!Ff.isValidate($P)||x_&&x_($P,eme))return!0;if((kh==="date"||kh==="time")&&$_){var tme,nme=zP&&zP.activeIndex===1?"end":"start",rme=((tme=$_.disabledTime)===null||tme===void 0?void 0:tme.call($_,$P,nme,{from:eme.from}))||{},ame=rme.disabledHours,ome=rme.disabledMinutes,ime=rme.disabledSeconds,cme=rme.disabledMilliseconds,ume=$_.disabledHours,sme=$_.disabledMinutes,fme=$_.disabledSeconds,lme=ame||ume,hme=ome||sme,pme=ime||fme,gme=Ff.getHour($P),yme=Ff.getMinute($P),mme=Ff.getSecond($P),bme=Ff.getMillisecond($P);if(lme&&lme().includes(gme)||hme&&hme(gme).includes(yme)||pme&&pme(gme,yme).includes(mme)||cme&&cme(gme,yme,mme).includes(bme))return!0}return!1});return B_}function useList(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x_=React__namespace.useMemo(function(){var $_=Ff&&toArray$3(Ff);return kh&&$_&&($_[1]=$_[1]||$_[0]),$_},[Ff,kh]);return x_}function useFilledProps(Ff,kh){var x_=Ff.generateConfig,$_=Ff.locale,B_=Ff.picker,$P=B_===void 0?"date":B_,zP=Ff.prefixCls,eme=zP===void 0?"rc-picker":zP,tme=Ff.styles,nme=tme===void 0?{}:tme,rme=Ff.classNames,ame=rme===void 0?{}:rme,ome=Ff.order,ime=ome===void 0?!0:ome,cme=Ff.components,ume=cme===void 0?{}:cme,sme=Ff.inputRender,fme=Ff.allowClear,lme=Ff.clearIcon,hme=Ff.needConfirm,pme=Ff.multiple,gme=Ff.format,yme=Ff.inputReadOnly,mme=Ff.disabledDate,bme=Ff.minDate,Sme=Ff.maxDate,_me=Ff.showTime,Cme=Ff.value,Eme=Ff.defaultValue,Tme=Ff.pickerValue,Rme=Ff.defaultPickerValue,Pme=useList(Cme),$me=useList(Eme),Dme=useList(Tme),Mme=useList(Rme),Nme=$P==="date"&&_me?"datetime":$P,Ime=Nme==="time"||Nme==="datetime",wme=Ime||pme,Ome=hme??Ime,Ame=getTimeProps(Ff),Fme=_slicedToArray(Ame,4),Bme=Fme[0],kme=Fme[1],Lme=Fme[2],Hme=Fme[3],Wme=useLocale($_,kme),zme=React__namespace.useMemo(function(){return fillShowTimeConfig(Nme,Lme,Hme,Bme,Wme)},[Nme,Lme,Hme,Bme,Wme]);process.env.NODE_ENV!=="production"&&$P==="time"&&["disabledHours","disabledMinutes","disabledSeconds"].some(function(a0e){return Ff[a0e]})&&warningOnce(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.");var Vme=React__namespace.useMemo(function(){return _objectSpread2(_objectSpread2({},Ff),{},{prefixCls:eme,locale:Wme,picker:$P,styles:nme,classNames:ame,order:ime,components:_objectSpread2({input:sme},ume),clearIcon:fillClearIcon(eme,fme,lme),showTime:zme,value:Pme,defaultValue:$me,pickerValue:Dme,defaultPickerValue:Mme},kh==null?void 0:kh())},[Ff]),Xme=useFieldFormat(Nme,Wme,gme),e0e=_slicedToArray(Xme,2),Ume=e0e[0],Jme=e0e[1],s0e=useInputReadOnly(Ume,yme,pme),d0e=useDisabledBoundary(x_,$_,mme,bme,Sme),Zme=useInvalidate(x_,$P,d0e,zme),Qme=React__namespace.useMemo(function(){return _objectSpread2(_objectSpread2({},Vme),{},{needConfirm:Ome,inputReadOnly:s0e,disabledDate:d0e})},[Vme,Ome,s0e,d0e]);return[Qme,Nme,wme,Ume,Jme,Zme]}function useDelayState(Ff,kh,x_){var $_=useMergedState(kh,{value:Ff}),B_=_slicedToArray($_,2),$P=B_[0],zP=B_[1],eme=React.useRef(Ff),tme=React.useRef(),nme=function(){wrapperRaf.cancel(tme.current)},rme=useEvent(function(){zP(eme.current),x_&&$P!==eme.current&&x_(eme.current)}),ame=useEvent(function(ome,ime){nme(),eme.current=ome,ome||ime?rme():tme.current=wrapperRaf(rme)});return React.useEffect(function(){return nme},[]),[$P,ame]}function useOpen(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],$_=arguments.length>3?arguments[3]:void 0,B_=x_.every(function(rme){return rme})?!1:Ff,$P=useDelayState(B_,kh||!1,$_),zP=_slicedToArray($P,2),eme=zP[0],tme=zP[1];function nme(rme){var ame=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!ame.inherit||eme)&&tme(rme,ame.force)}return[eme,nme]}function usePickerRef(Ff){var kh=React__namespace.useRef();return React__namespace.useImperativeHandle(Ff,function(){var x_;return{nativeElement:(x_=kh.current)===null||x_===void 0?void 0:x_.nativeElement,focus:function(B_){var $P;($P=kh.current)===null||$P===void 0||$P.focus(B_)},blur:function(){var B_;(B_=kh.current)===null||B_===void 0||B_.blur()}}}),kh}function usePresets(Ff,kh){return React__namespace.useMemo(function(){return Ff||(kh?(warningOnce(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(kh).map(function(x_){var $_=_slicedToArray(x_,2),B_=$_[0],$P=$_[1];return{label:B_,value:$P}})):[])},[Ff,kh])}function useLockEffect(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,$_=React__namespace.useRef(kh);$_.current=kh,useLayoutUpdateEffect(function(){if(Ff)$_.current(Ff);else{var B_=wrapperRaf(function(){$_.current(Ff)},x_);return function(){wrapperRaf.cancel(B_)}}},[Ff])}function useRangeActive(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x_=React__namespace.useState(0),$_=_slicedToArray(x_,2),B_=$_[0],$P=$_[1],zP=React__namespace.useState(!1),eme=_slicedToArray(zP,2),tme=eme[0],nme=eme[1],rme=React__namespace.useRef([]),ame=React__namespace.useRef(null),ome=function(sme){nme(sme)},ime=function(sme){return sme&&(ame.current=sme),ame.current},cme=function(sme){var fme=rme.current,lme=new Set(fme.filter(function(pme){return sme[pme]||kh[pme]})),hme=fme[fme.length-1]===0?1:0;return lme.size>=2||Ff[hme]?null:hme};return useLockEffect(tme,function(){tme||(rme.current=[])}),React__namespace.useEffect(function(){tme&&rme.current.push(B_)},[tme,B_]),[tme,ome,ime,B_,$P,cme,rme.current]}function useRangeDisabledDate(Ff,kh,x_,$_,B_,$P){var zP=x_[x_.length-1],eme=function(nme,rme){var ame=_slicedToArray(Ff,2),ome=ame[0],ime=ame[1],cme=_objectSpread2(_objectSpread2({},rme),{},{from:getFromDate(Ff,x_)});return zP===1&&kh[0]&&ome&&!isSame($_,B_,ome,nme,cme.type)&&$_.isAfter(ome,nme)||zP===0&&kh[1]&&ime&&!isSame($_,B_,ime,nme,cme.type)&&$_.isAfter(nme,ime)?!0:$P==null?void 0:$P(nme,cme)};return eme}function offsetPanelDate(Ff,kh,x_,$_){switch(kh){case"date":case"week":return Ff.addMonth(x_,$_);case"month":case"quarter":return Ff.addYear(x_,$_);case"year":return Ff.addYear(x_,$_*10);case"decade":return Ff.addYear(x_,$_*100);default:return x_}}var EMPTY_LIST$1=[];function useRangePickerValue(Ff,kh,x_,$_,B_,$P,zP,eme){var tme=arguments.length>8&&arguments[8]!==void 0?arguments[8]:EMPTY_LIST$1,nme=arguments.length>9&&arguments[9]!==void 0?arguments[9]:EMPTY_LIST$1,rme=arguments.length>10&&arguments[10]!==void 0?arguments[10]:EMPTY_LIST$1,ame=arguments.length>11?arguments[11]:void 0,ome=arguments.length>12?arguments[12]:void 0,ime=arguments.length>13?arguments[13]:void 0,cme=zP==="time",ume=$P||0,sme=function(Dme){var Mme=Ff.getNow();return cme&&(Mme=fillTime(Ff,Mme)),tme[Dme]||x_[Dme]||Mme},fme=_slicedToArray(nme,2),lme=fme[0],hme=fme[1],pme=useMergedState(function(){return sme(0)},{value:lme}),gme=_slicedToArray(pme,2),yme=gme[0],mme=gme[1],bme=useMergedState(function(){return sme(1)},{value:hme}),Sme=_slicedToArray(bme,2),_me=Sme[0],Cme=Sme[1],Eme=React__namespace.useMemo(function(){var $me=[yme,_me][ume];return cme?$me:fillTime(Ff,$me,rme[ume])},[cme,yme,_me,ume,Ff,rme]),Tme=function(Dme){var Mme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",Nme=[mme,Cme][ume];Nme(Dme);var Ime=[yme,_me];Ime[ume]=Dme,ame&&(!isSame(Ff,kh,yme,Ime[0],zP)||!isSame(Ff,kh,_me,Ime[1],zP))&&ame(Ime,{source:Mme,range:ume===1?"end":"start",mode:$_})},Rme=function(Dme,Mme){if(eme){var Nme={date:"month",week:"month",month:"year",quarter:"year"},Ime=Nme[zP];if(Ime&&!isSame(Ff,kh,Dme,Mme,Ime))return offsetPanelDate(Ff,zP,Mme,-1);if(zP==="year"){var wme=Math.floor(Ff.getYear(Dme)/10),Ome=Math.floor(Ff.getYear(Mme)/10);if(wme!==Ome)return offsetPanelDate(Ff,zP,Mme,-1)}}return Mme},Pme=React__namespace.useRef(null);return useLayoutEffect$1(function(){if(B_&&!tme[ume]){var $me=cme?null:Ff.getNow();if(Pme.current!==null&&Pme.current!==ume?$me=[yme,_me][ume^1]:x_[ume]?$me=ume===0?x_[0]:Rme(x_[0],x_[1]):x_[ume^1]&&($me=x_[ume^1]),$me){ome&&Ff.isAfter(ome,$me)&&($me=ome);var Dme=eme?offsetPanelDate(Ff,zP,$me,1):$me;ime&&Ff.isAfter(Dme,ime)&&($me=eme?offsetPanelDate(Ff,zP,ime,-1):ime),Tme($me,"reset")}}},[B_,ume,x_[ume]]),React__namespace.useEffect(function(){B_?Pme.current=ume:Pme.current=null},[B_,ume]),useLayoutEffect$1(function(){B_&&tme&&tme[ume]&&Tme(tme[ume],"reset")},[B_,ume]),[Eme,Tme]}function useSyncState(Ff,kh){var x_=React__namespace.useRef(Ff),$_=React__namespace.useState({}),B_=_slicedToArray($_,2),$P=B_[1],zP=function(nme){return nme&&kh!==void 0?kh:x_.current},eme=function(nme){x_.current=nme,$P({})};return[zP,eme,zP(!0)]}var EMPTY_VALUE=[];function useUtil(Ff,kh,x_){var $_=function(zP){return zP.map(function(eme){return formatValue(eme,{generateConfig:Ff,locale:kh,format:x_[0]})})},B_=function(zP,eme){for(var tme=Math.max(zP.length,eme.length),nme=-1,rme=0;rme<tme;rme+=1){var ame=zP[rme]||null,ome=eme[rme]||null;if(ame!==ome&&!isSameTimestamp(Ff,ame,ome)){nme=rme;break}}return[nme<0,nme!==0]};return[$_,B_]}function orderDates(Ff,kh){return _toConsumableArray(Ff).sort(function(x_,$_){return kh.isAfter(x_,$_)?1:-1})}function useCalendarValue(Ff){var kh=useSyncState(Ff),x_=_slicedToArray(kh,2),$_=x_[0],B_=x_[1],$P=useEvent(function(){B_(Ff)});return React__namespace.useEffect(function(){$P()},[Ff]),[$_,B_]}function useInnerValue(Ff,kh,x_,$_,B_,$P,zP,eme,tme){var nme=useMergedState($P,{value:zP}),rme=_slicedToArray(nme,2),ame=rme[0],ome=rme[1],ime=ame||EMPTY_VALUE,cme=useCalendarValue(ime),ume=_slicedToArray(cme,2),sme=ume[0],fme=ume[1],lme=useUtil(Ff,kh,x_),hme=_slicedToArray(lme,2),pme=hme[0],gme=hme[1],yme=useEvent(function(bme){var Sme=_toConsumableArray(bme);if($_)for(var _me=0;_me<2;_me+=1)Sme[_me]=Sme[_me]||null;else B_&&(Sme=orderDates(Sme.filter(function($me){return $me}),Ff));var Cme=gme(sme(),Sme),Eme=_slicedToArray(Cme,2),Tme=Eme[0],Rme=Eme[1];if(!Tme&&(fme(Sme),eme)){var Pme=pme(Sme);eme(Sme,Pme,{range:Rme?"end":"start"})}}),mme=function(){tme&&tme(sme())};return[ime,ome,sme,yme,mme]}function useRangeValue(Ff,kh,x_,$_,B_,$P,zP,eme,tme,nme){var rme=Ff.generateConfig,ame=Ff.locale,ome=Ff.picker,ime=Ff.onChange,cme=Ff.allowEmpty,ume=Ff.order,sme=$P.some(function(Tme){return Tme})?!1:ume,fme=useUtil(rme,ame,zP),lme=_slicedToArray(fme,2),hme=lme[0],pme=lme[1],gme=useSyncState(kh),yme=_slicedToArray(gme,2),mme=yme[0],bme=yme[1],Sme=useEvent(function(){bme(kh)});React__namespace.useEffect(function(){Sme()},[kh]);var _me=useEvent(function(Tme){var Rme=Tme===null,Pme=_toConsumableArray(Tme||mme());if(Rme)for(var $me=Math.max($P.length,Pme.length),Dme=0;Dme<$me;Dme+=1)$P[Dme]||(Pme[Dme]=null);sme&&Pme[0]&&Pme[1]&&(Pme=orderDates(Pme,rme)),B_(Pme);var Mme=Pme,Nme=_slicedToArray(Mme,2),Ime=Nme[0],wme=Nme[1],Ome=!Ime,Ame=!wme,Fme=cme?(!Ome||cme[0])&&(!Ame||cme[1]):!0,Bme=!ume||Ome||Ame||isSame(rme,ame,Ime,wme,ome)||rme.isAfter(wme,Ime),kme=(!Ime||!nme(Ime,{activeIndex:0}))&&(!wme||!nme(wme,{from:Ime,activeIndex:1})),Lme=Rme||Fme&&Bme&&kme;if(Lme){x_(Pme);var Hme=pme(Pme,kh),Wme=_slicedToArray(Hme,1),zme=Wme[0];ime&&!zme&&ime(Rme&&Pme.every(function(Vme){return!Vme})?null:Pme,hme(Pme))}return Lme}),Cme=useEvent(function(Tme,Rme){var Pme=fillIndex(mme(),Tme,$_()[Tme]);bme(Pme),Rme&&_me()}),Eme=!eme&&!tme;return useLockEffect(!Eme,function(){Eme&&(_me(),B_(kh),Sme())},2),[Cme,_me]}function useShowNow(Ff,kh,x_,$_,B_){return kh!=="date"&&kh!=="time"?!1:x_!==void 0?x_:$_!==void 0?$_:!B_&&(Ff==="date"||Ff==="time")}function findValidateTime(Ff,kh,x_,$_,B_,$P){var zP=Ff;function eme(ame,ome,ime){var cme=$P[ame](zP),ume=ime.find(function(hme){return hme.value===cme});if(!ume||ume.disabled){var sme=ime.filter(function(hme){return!hme.disabled}),fme=_toConsumableArray(sme).reverse(),lme=fme.find(function(hme){return hme.value<=cme})||sme[0];lme&&(cme=lme.value,zP=$P[ome](zP,cme))}return cme}var tme=eme("getHour","setHour",kh()),nme=eme("getMinute","setMinute",x_(tme)),rme=eme("getSecond","setSecond",$_(tme,nme));return eme("getMillisecond","setMillisecond",B_(tme,nme,rme)),zP}function emptyDisabled(){return[]}function generateUnits(Ff,kh){for(var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,$_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,B_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],$P=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,zP=[],eme=x_>=1?x_|0:1,tme=Ff;tme<=kh;tme+=eme){var nme=B_.includes(tme);(!nme||!$_)&&zP.push({label:leftPad(tme,$P),value:tme,disabled:nme})}return zP}function useTimeInfo(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x_=arguments.length>2?arguments[2]:void 0,$_=kh||{},B_=$_.use12Hours,$P=$_.hourStep,zP=$P===void 0?1:$P,eme=$_.minuteStep,tme=eme===void 0?1:eme,nme=$_.secondStep,rme=nme===void 0?1:nme,ame=$_.millisecondStep,ome=ame===void 0?100:ame,ime=$_.hideDisabledOptions,cme=$_.disabledTime,ume=$_.disabledHours,sme=$_.disabledMinutes,fme=$_.disabledSeconds,lme=React__namespace.useMemo(function(){return x_||Ff.getNow()},[x_,Ff]);if(process.env.NODE_ENV!=="production"){var hme=24%zP===0,pme=60%tme===0,gme=60%rme===0;warningOnce(hme,"`hourStep` ".concat(zP," is invalid. It should be a factor of 24.")),warningOnce(pme,"`minuteStep` ".concat(tme," is invalid. It should be a factor of 60.")),warningOnce(gme,"`secondStep` ".concat(rme," is invalid. It should be a factor of 60."))}var yme=React__namespace.useCallback(function(wme){var Ome=(cme==null?void 0:cme(wme))||{};return[Ome.disabledHours||ume||emptyDisabled,Ome.disabledMinutes||sme||emptyDisabled,Ome.disabledSeconds||fme||emptyDisabled,Ome.disabledMilliseconds||emptyDisabled]},[cme,ume,sme,fme]),mme=React__namespace.useMemo(function(){return yme(lme)},[lme,yme]),bme=_slicedToArray(mme,4),Sme=bme[0],_me=bme[1],Cme=bme[2],Eme=bme[3],Tme=React__namespace.useCallback(function(wme,Ome,Ame,Fme){var Bme=generateUnits(0,23,zP,ime,wme()),kme=B_?Bme.map(function(zme){return _objectSpread2(_objectSpread2({},zme),{},{label:leftPad(zme.value%12||12,2)})}):Bme,Lme=function(Vme){return generateUnits(0,59,tme,ime,Ome(Vme))},Hme=function(Vme,Xme){return generateUnits(0,59,rme,ime,Ame(Vme,Xme))},Wme=function(Vme,Xme,e0e){return generateUnits(0,999,ome,ime,Fme(Vme,Xme,e0e),3)};return[kme,Lme,Hme,Wme]},[ime,zP,B_,ome,tme,rme]),Rme=React__namespace.useMemo(function(){return Tme(Sme,_me,Cme,Eme)},[Tme,Sme,_me,Cme,Eme]),Pme=_slicedToArray(Rme,4),$me=Pme[0],Dme=Pme[1],Mme=Pme[2],Nme=Pme[3],Ime=function(Ome,Ame){var Fme=function(){return $me},Bme=Dme,kme=Mme,Lme=Nme;if(Ame){var Hme=yme(Ame),Wme=_slicedToArray(Hme,4),zme=Wme[0],Vme=Wme[1],Xme=Wme[2],e0e=Wme[3],Ume=Tme(zme,Vme,Xme,e0e),Jme=_slicedToArray(Ume,4),s0e=Jme[0],d0e=Jme[1],Zme=Jme[2],Qme=Jme[3];Fme=function(){return s0e},Bme=d0e,kme=Zme,Lme=Qme}var a0e=findValidateTime(Ome,Fme,Bme,kme,Lme,Ff);return a0e};return[Ime,$me,Dme,Mme,Nme]}function Footer(Ff){var kh=Ff.mode,x_=Ff.internalMode,$_=Ff.renderExtraFooter,B_=Ff.showNow,$P=Ff.showTime,zP=Ff.onSubmit,eme=Ff.onNow,tme=Ff.invalid,nme=Ff.needConfirm,rme=Ff.generateConfig,ame=Ff.disabledDate,ome=React__namespace.useContext(PickerContext),ime=ome.prefixCls,cme=ome.locale,ume=ome.button,sme=ume===void 0?"button":ume,fme=rme.getNow(),lme=useTimeInfo(rme,$P,fme),hme=_slicedToArray(lme,1),pme=hme[0],gme=$_==null?void 0:$_(kh),yme=ame(fme,{type:kh}),mme=function(){if(!yme){var Rme=pme(fme);eme(Rme)}},bme="".concat(ime,"-now"),Sme="".concat(bme,"-btn"),_me=B_&&React__namespace.createElement("li",{className:bme},React__namespace.createElement("a",{className:classNames(Sme,yme&&"".concat(Sme,"-disabled")),"aria-disabled":yme,onClick:mme},x_==="date"?cme.today:cme.now)),Cme=nme&&React__namespace.createElement("li",{className:"".concat(ime,"-ok")},React__namespace.createElement(sme,{disabled:tme,onClick:zP},cme.ok)),Eme=(_me||Cme)&&React__namespace.createElement("ul",{className:"".concat(ime,"-ranges")},_me,Cme);return!gme&&!Eme?null:React__namespace.createElement("div",{className:"".concat(ime,"-footer")},gme&&React__namespace.createElement("div",{className:"".concat(ime,"-footer-extra")},gme),Eme)}function useToggleDates(Ff,kh,x_){function $_(B_,$P){var zP=B_.findIndex(function(tme){return isSame(Ff,kh,tme,$P,x_)});if(zP===-1)return[].concat(_toConsumableArray(B_),[$P]);var eme=_toConsumableArray(B_);return eme.splice(zP,1),eme}return $_}var PanelContext=React__namespace.createContext(null);function usePanelContext(){return React__namespace.useContext(PanelContext)}function useInfo(Ff,kh){var x_=Ff.prefixCls,$_=Ff.generateConfig,B_=Ff.locale,$P=Ff.disabledDate,zP=Ff.minDate,eme=Ff.maxDate,tme=Ff.cellRender,nme=Ff.hoverValue,rme=Ff.hoverRangeValue,ame=Ff.onHover,ome=Ff.values,ime=Ff.pickerValue,cme=Ff.onSelect,ume=Ff.prevIcon,sme=Ff.nextIcon,fme=Ff.superPrevIcon,lme=Ff.superNextIcon,hme=$_.getNow(),pme={now:hme,values:ome,pickerValue:ime,prefixCls:x_,disabledDate:$P,minDate:zP,maxDate:eme,cellRender:tme,hoverValue:nme,hoverRangeValue:rme,onHover:ame,locale:B_,generateConfig:$_,onSelect:cme,panelType:kh,prevIcon:ume,nextIcon:sme,superPrevIcon:fme,superNextIcon:lme};return[pme,hme]}var PickerHackContext=React__namespace.createContext({});process.env.NODE_ENV!=="production"&&(PickerHackContext.displayName="PickerHackContext");function PanelBody(Ff){for(var kh=Ff.rowNum,x_=Ff.colNum,$_=Ff.baseDate,B_=Ff.getCellDate,$P=Ff.prefixColumn,zP=Ff.rowClassName,eme=Ff.titleFormat,tme=Ff.getCellText,nme=Ff.getCellClassName,rme=Ff.headerCells,ame=Ff.cellSelection,ome=ame===void 0?!0:ame,ime=Ff.disabledDate,cme=usePanelContext(),ume=cme.prefixCls,sme=cme.panelType,fme=cme.now,lme=cme.disabledDate,hme=cme.cellRender,pme=cme.onHover,gme=cme.hoverValue,yme=cme.hoverRangeValue,mme=cme.generateConfig,bme=cme.values,Sme=cme.locale,_me=cme.onSelect,Cme=ime||lme,Eme="".concat(ume,"-cell"),Tme=React__namespace.useContext(PickerHackContext),Rme=Tme.onCellDblClick,Pme=function(Ame){return bme.some(function(Fme){return Fme&&isSame(mme,Sme,Ame,Fme,sme)})},$me=[],Dme=0;Dme<kh;Dme+=1){for(var Mme=[],Nme=void 0,Ime=function(){var Ame=Dme*x_+wme,Fme=B_($_,Ame),Bme=Cme==null?void 0:Cme(Fme,{type:sme});wme===0&&(Nme=Fme,$P&&Mme.push($P(Nme)));var kme=!1,Lme=!1,Hme=!1;if(ome&&yme){var Wme=_slicedToArray(yme,2),zme=Wme[0],Vme=Wme[1];kme=isInRange(mme,zme,Vme,Fme),Lme=isSame(mme,Sme,Fme,zme,sme),Hme=isSame(mme,Sme,Fme,Vme,sme)}var Xme=eme?formatValue(Fme,{locale:Sme,format:eme,generateConfig:mme}):void 0,e0e=React__namespace.createElement("div",{className:"".concat(Eme,"-inner")},tme(Fme));Mme.push(React__namespace.createElement("td",{key:wme,title:Xme,className:classNames(Eme,_objectSpread2(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"".concat(Eme,"-disabled"),Bme),"".concat(Eme,"-hover"),(gme||[]).some(function(Ume){return isSame(mme,Sme,Fme,Ume,sme)})),"".concat(Eme,"-in-range"),kme&&!Lme&&!Hme),"".concat(Eme,"-range-start"),Lme),"".concat(Eme,"-range-end"),Hme),"".concat(ume,"-cell-selected"),!yme&&sme!=="week"&&Pme(Fme)),nme(Fme))),onClick:function(){Bme||_me(Fme)},onDoubleClick:function(){!Bme&&Rme&&Rme()},onMouseEnter:function(){Bme||pme==null||pme(Fme)},onMouseLeave:function(){Bme||pme==null||pme(null)}},hme?hme(Fme,{prefixCls:ume,originNode:e0e,today:fme,type:sme,locale:Sme}):e0e))},wme=0;wme<x_;wme+=1)Ime();$me.push(React__namespace.createElement("tr",{key:Dme,className:zP==null?void 0:zP(Nme)},Mme))}return React__namespace.createElement("div",{className:"".concat(ume,"-body")},React__namespace.createElement("table",{className:"".concat(ume,"-content")},rme&&React__namespace.createElement("thead",null,React__namespace.createElement("tr",null,rme)),React__namespace.createElement("tbody",null,$me)))}var HIDDEN_STYLE$2={visibility:"hidden"};function PanelHeader(Ff){var kh=Ff.offset,x_=Ff.superOffset,$_=Ff.onChange,B_=Ff.getStart,$P=Ff.getEnd,zP=Ff.children,eme=usePanelContext(),tme=eme.prefixCls,nme=eme.prevIcon,rme=nme===void 0?"‹":nme,ame=eme.nextIcon,ome=ame===void 0?"›":ame,ime=eme.superPrevIcon,cme=ime===void 0?"«":ime,ume=eme.superNextIcon,sme=ume===void 0?"»":ume,fme=eme.minDate,lme=eme.maxDate,hme=eme.generateConfig,pme=eme.locale,gme=eme.pickerValue,yme=eme.panelType,mme="".concat(tme,"-header"),bme=React__namespace.useContext(PickerHackContext),Sme=bme.hidePrev,_me=bme.hideNext,Cme=bme.hideHeader,Eme=React__namespace.useMemo(function(){if(!fme||!kh||!$P)return!1;var Ome=$P(kh(-1,gme));return!isSameOrAfter(hme,pme,Ome,fme,yme)},[fme,kh,gme,$P,hme,pme,yme]),Tme=React__namespace.useMemo(function(){if(!fme||!x_||!$P)return!1;var Ome=$P(x_(-1,gme));return!isSameOrAfter(hme,pme,Ome,fme,yme)},[fme,x_,gme,$P,hme,pme,yme]),Rme=React__namespace.useMemo(function(){if(!lme||!kh||!B_)return!1;var Ome=B_(kh(1,gme));return!isSameOrAfter(hme,pme,lme,Ome,yme)},[lme,kh,gme,B_,hme,pme,yme]),Pme=React__namespace.useMemo(function(){if(!lme||!x_||!B_)return!1;var Ome=B_(x_(1,gme));return!isSameOrAfter(hme,pme,lme,Ome,yme)},[lme,x_,gme,B_,hme,pme,yme]),$me=function(Ame){kh&&$_(kh(Ame,gme))},Dme=function(Ame){x_&&$_(x_(Ame,gme))};if(Cme)return null;var Mme="".concat(mme,"-prev-btn"),Nme="".concat(mme,"-next-btn"),Ime="".concat(mme,"-super-prev-btn"),wme="".concat(mme,"-super-next-btn");return React__namespace.createElement("div",{className:mme},x_&&React__namespace.createElement("button",{type:"button",onClick:function(){return Dme(-1)},tabIndex:-1,className:classNames(Ime,Tme&&"".concat(Ime,"-disabled")),disabled:Tme,style:Sme?HIDDEN_STYLE$2:{}},cme),kh&&React__namespace.createElement("button",{type:"button",onClick:function(){return $me(-1)},tabIndex:-1,className:classNames(Mme,Eme&&"".concat(Mme,"-disabled")),disabled:Eme,style:Sme?HIDDEN_STYLE$2:{}},rme),React__namespace.createElement("div",{className:"".concat(mme,"-view")},zP),kh&&React__namespace.createElement("button",{type:"button",onClick:function(){return $me(1)},tabIndex:-1,className:classNames(Nme,Rme&&"".concat(Nme,"-disabled")),disabled:Rme,style:_me?HIDDEN_STYLE$2:{}},ome),x_&&React__namespace.createElement("button",{type:"button",onClick:function(){return Dme(1)},tabIndex:-1,className:classNames(wme,Pme&&"".concat(wme,"-disabled")),disabled:Pme,style:_me?HIDDEN_STYLE$2:{}},sme))}function DatePanel(Ff){var kh=Ff.prefixCls,x_=Ff.panelName,$_=x_===void 0?"date":x_,B_=Ff.locale,$P=Ff.generateConfig,zP=Ff.pickerValue,eme=Ff.onPickerValueChange,tme=Ff.onModeChange,nme=Ff.mode,rme=nme===void 0?"date":nme,ame=Ff.disabledDate,ome=Ff.onSelect,ime=Ff.onHover,cme=Ff.showWeek,ume="".concat(kh,"-").concat($_,"-panel"),sme="".concat(kh,"-cell"),fme=rme==="week",lme=useInfo(Ff,rme),hme=_slicedToArray(lme,2),pme=hme[0],gme=hme[1],yme=$P.locale.getWeekFirstDay(B_.locale),mme=$P.setDate(zP,1),bme=getWeekStartDate(B_.locale,$P,mme),Sme=$P.getMonth(zP),_me=fme||cme?function(wme){var Ome=ame==null?void 0:ame(wme,{type:"week"});return React__namespace.createElement("td",{key:"week",className:classNames(sme,"".concat(sme,"-week"),_defineProperty({},"".concat(sme,"-disabled"),Ome)),onClick:function(){Ome||ome(wme)},onMouseEnter:function(){Ome||ime==null||ime(wme)},onMouseLeave:function(){Ome||ime==null||ime(null)}},React__namespace.createElement("div",{className:"".concat(sme,"-inner")},$P.locale.getWeek(B_.locale,wme)))}:null,Cme=[],Eme=B_.shortWeekDays||($P.locale.getShortWeekDays?$P.locale.getShortWeekDays(B_.locale):[]);_me&&Cme.push(React__namespace.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Tme=0;Tme<WEEK_DAY_COUNT;Tme+=1)Cme.push(React__namespace.createElement("th",{key:Tme},Eme[(Tme+yme)%WEEK_DAY_COUNT]));var Rme=function(Ome,Ame){return $P.addDate(Ome,Ame)},Pme=function(Ome){return formatValue(Ome,{locale:B_,format:B_.cellDateFormat,generateConfig:$P})},$me=function(Ome){var Ame=_defineProperty(_defineProperty({},"".concat(kh,"-cell-in-view"),isSameMonth($P,Ome,zP)),"".concat(kh,"-cell-today"),isSameDate($P,Ome,gme));return Ame},Dme=B_.shortMonths||($P.locale.getShortMonths?$P.locale.getShortMonths(B_.locale):[]),Mme=React__namespace.createElement("button",{type:"button",key:"year",onClick:function(){tme("year",zP)},tabIndex:-1,className:"".concat(kh,"-year-btn")},formatValue(zP,{locale:B_,format:B_.yearFormat,generateConfig:$P})),Nme=React__namespace.createElement("button",{type:"button",key:"month",onClick:function(){tme("month",zP)},tabIndex:-1,className:"".concat(kh,"-month-btn")},B_.monthFormat?formatValue(zP,{locale:B_,format:B_.monthFormat,generateConfig:$P}):Dme[Sme]),Ime=B_.monthBeforeYear?[Nme,Mme]:[Mme,Nme];return React__namespace.createElement(PanelContext.Provider,{value:pme},React__namespace.createElement("div",{className:classNames(ume,cme&&"".concat(ume,"-show-week"))},React__namespace.createElement(PanelHeader,{offset:function(Ome){return $P.addMonth(zP,Ome)},superOffset:function(Ome){return $P.addYear(zP,Ome)},onChange:eme,getStart:function(Ome){return $P.setDate(Ome,1)},getEnd:function(Ome){var Ame=$P.setDate(Ome,1);return Ame=$P.addMonth(Ame,1),$P.addDate(Ame,-1)}},Ime),React__namespace.createElement(PanelBody,_extends({titleFormat:B_.fieldDateFormat},Ff,{colNum:WEEK_DAY_COUNT,rowNum:6,baseDate:bme,headerCells:Cme,getCellDate:Rme,getCellText:Pme,getCellClassName:$me,prefixColumn:_me,cellSelection:!fme}))))}var SPEED_PTG=1/3;function useScrollTo(Ff,kh){var x_=React__namespace.useRef(!1),$_=React__namespace.useRef(null),B_=React__namespace.useRef(null),$P=function(){return x_.current},zP=function(){wrapperRaf.cancel($_.current),x_.current=!1},eme=React__namespace.useRef(),tme=function(){var ame=Ff.current;if(B_.current=null,eme.current=0,ame){var ome=ame.querySelector('[data-value="'.concat(kh,'"]')),ime=ame.querySelector("li"),cme=function ume(){zP(),x_.current=!0,eme.current+=1;var sme=ame.scrollTop,fme=ime.offsetTop,lme=ome.offsetTop,hme=lme-fme;if(lme===0&&ome!==ime||!isVisible(ame)){eme.current<=5&&($_.current=wrapperRaf(ume));return}var pme=sme+(hme-sme)*SPEED_PTG,gme=Math.abs(hme-pme);if(B_.current!==null&&B_.current<gme){zP();return}if(B_.current=gme,gme<=1){ame.scrollTop=hme,zP();return}ame.scrollTop=pme,$_.current=wrapperRaf(ume)};ome&&ime&&cme()}},nme=useEvent(tme);return[nme,zP,$P]}var SCROLL_DELAY=300;function TimeColumn(Ff){var kh=Ff.units,x_=Ff.value,$_=Ff.optionalValue,B_=Ff.type,$P=Ff.onChange,zP=Ff.onDblClick,eme=Ff.changeOnScroll,tme=usePanelContext(),nme=tme.prefixCls,rme=tme.cellRender,ame=tme.now,ome=tme.locale,ime="".concat(nme,"-time-panel"),cme="".concat(nme,"-time-panel-cell"),ume=React__namespace.useRef(null),sme=React__namespace.useRef(),fme=function(){clearTimeout(sme.current)},lme=useScrollTo(ume,x_??$_),hme=_slicedToArray(lme,3),pme=hme[0],gme=hme[1],yme=hme[2];useLayoutEffect$1(function(){return pme(),fme(),function(){gme(),fme()}},[x_,$_,kh]);var mme=function(_me){fme();var Cme=_me.target;!yme()&&eme&&(sme.current=setTimeout(function(){var Eme=ume.current,Tme=Eme.querySelector("li").offsetTop,Rme=Array.from(Eme.querySelectorAll("li")),Pme=Rme.map(function(Ime){return Ime.offsetTop-Tme}),$me=Pme.map(function(Ime,wme){return kh[wme].disabled?Number.MAX_SAFE_INTEGER:Math.abs(Ime-Cme.scrollTop)}),Dme=Math.min.apply(Math,_toConsumableArray($me)),Mme=$me.findIndex(function(Ime){return Ime===Dme}),Nme=kh[Mme];Nme&&!Nme.disabled&&$P(Nme.value)},SCROLL_DELAY))},bme="".concat(ime,"-column");return React__namespace.createElement("ul",{className:bme,ref:ume,"data-type":B_,onScroll:mme},kh.map(function(Sme){var _me=Sme.label,Cme=Sme.value,Eme=Sme.disabled,Tme=React__namespace.createElement("div",{className:"".concat(cme,"-inner")},_me);return React__namespace.createElement("li",{key:Cme,className:classNames(cme,_defineProperty(_defineProperty({},"".concat(cme,"-selected"),x_===Cme),"".concat(cme,"-disabled"),Eme)),onClick:function(){Eme||$P(Cme)},onDoubleClick:function(){!Eme&&zP&&zP()},"data-value":Cme},rme?rme(Cme,{prefixCls:nme,originNode:Tme,today:ame,type:"time",subType:B_,locale:ome}):Tme)}))}function isAM(Ff){return Ff<12}function TimePanelBody(Ff){var kh=Ff.showHour,x_=Ff.showMinute,$_=Ff.showSecond,B_=Ff.showMillisecond,$P=Ff.use12Hours,zP=Ff.changeOnScroll,eme=usePanelContext(),tme=eme.prefixCls,nme=eme.values,rme=eme.generateConfig,ame=eme.locale,ome=eme.onSelect,ime=eme.pickerValue,cme=(nme==null?void 0:nme[0])||null,ume=React__namespace.useContext(PickerHackContext),sme=ume.onCellDblClick,fme=useTimeInfo(rme,Ff,cme),lme=_slicedToArray(fme,5),hme=lme[0],pme=lme[1],gme=lme[2],yme=lme[3],mme=lme[4],bme=function(h0e){var E0e=cme&&rme[h0e](cme),P0e=ime&&rme[h0e](ime);return[E0e,P0e]},Sme=bme("getHour"),_me=_slicedToArray(Sme,2),Cme=_me[0],Eme=_me[1],Tme=bme("getMinute"),Rme=_slicedToArray(Tme,2),Pme=Rme[0],$me=Rme[1],Dme=bme("getSecond"),Mme=_slicedToArray(Dme,2),Nme=Mme[0],Ime=Mme[1],wme=bme("getMillisecond"),Ome=_slicedToArray(wme,2),Ame=Ome[0],Fme=Ome[1],Bme=Cme===null?null:isAM(Cme)?"am":"pm",kme=React__namespace.useMemo(function(){return $P?isAM(Cme)?pme.filter(function(u0e){return isAM(u0e.value)}):pme.filter(function(u0e){return!isAM(u0e.value)}):pme},[Cme,pme,$P]),Lme=function(h0e,E0e){var P0e,y0e=h0e.filter(function($0e){return!$0e.disabled});return E0e??(y0e==null||(P0e=y0e[0])===null||P0e===void 0?void 0:P0e.value)},Hme=Lme(pme,Cme),Wme=React__namespace.useMemo(function(){return gme(Hme)},[gme,Hme]),zme=Lme(Wme,Pme),Vme=React__namespace.useMemo(function(){return yme(Hme,zme)},[yme,Hme,zme]),Xme=Lme(Vme,Nme),e0e=React__namespace.useMemo(function(){return mme(Hme,zme,Xme)},[mme,Hme,zme,Xme]),Ume=Lme(e0e,Ame),Jme=React__namespace.useMemo(function(){if(!$P)return[];var u0e=rme.getNow(),h0e=rme.setHour(u0e,6),E0e=rme.setHour(u0e,18),P0e=function($0e,C0e){var z0e=ame.cellMeridiemFormat;return z0e?formatValue($0e,{generateConfig:rme,locale:ame,format:z0e}):C0e};return[{label:P0e(h0e,"AM"),value:"am",disabled:pme.every(function(y0e){return y0e.disabled||!isAM(y0e.value)})},{label:P0e(E0e,"PM"),value:"pm",disabled:pme.every(function(y0e){return y0e.disabled||isAM(y0e.value)})}]},[pme,$P,rme,ame]),s0e=function(h0e){var E0e=hme(h0e);ome(E0e)},d0e=React__namespace.useMemo(function(){var u0e=cme||ime||rme.getNow(),h0e=function(P0e){return P0e!=null};return h0e(Cme)?(u0e=rme.setHour(u0e,Cme),u0e=rme.setMinute(u0e,Pme),u0e=rme.setSecond(u0e,Nme),u0e=rme.setMillisecond(u0e,Ame)):h0e(Eme)?(u0e=rme.setHour(u0e,Eme),u0e=rme.setMinute(u0e,$me),u0e=rme.setSecond(u0e,Ime),u0e=rme.setMillisecond(u0e,Fme)):h0e(Hme)&&(u0e=rme.setHour(u0e,Hme),u0e=rme.setMinute(u0e,zme),u0e=rme.setSecond(u0e,Xme),u0e=rme.setMillisecond(u0e,Ume)),u0e},[cme,ime,Cme,Pme,Nme,Ame,Hme,zme,Xme,Ume,Eme,$me,Ime,Fme,rme]),Zme=function(h0e){s0e(rme.setHour(d0e,h0e))},Qme=function(h0e){s0e(rme.setMinute(d0e,h0e))},a0e=function(h0e){s0e(rme.setSecond(d0e,h0e))},t0e=function(h0e){s0e(rme.setMillisecond(d0e,h0e))},o0e=function(h0e){h0e==="am"&&!isAM(Cme)?s0e(rme.setHour(d0e,Cme-12)):h0e==="pm"&&isAM(Cme)&&s0e(rme.setHour(d0e,Cme+12))},g0e={onDblClick:sme,changeOnScroll:zP};return React__namespace.createElement("div",{className:"".concat(tme,"-content")},kh&&React__namespace.createElement(TimeColumn,_extends({units:kme,value:Cme,optionalValue:Eme,type:"hour",onChange:Zme},g0e)),x_&&React__namespace.createElement(TimeColumn,_extends({units:Wme,value:Pme,optionalValue:$me,type:"minute",onChange:Qme},g0e)),$_&&React__namespace.createElement(TimeColumn,_extends({units:Vme,value:Nme,optionalValue:Ime,type:"second",onChange:a0e},g0e)),B_&&React__namespace.createElement(TimeColumn,_extends({units:e0e,value:Ame,optionalValue:Fme,type:"millisecond",onChange:t0e},g0e)),$P&&React__namespace.createElement(TimeColumn,_extends({units:Jme,value:Bme,type:"meridiem",onChange:o0e},g0e)))}function TimePanel(Ff){var kh=Ff.prefixCls,x_=Ff.value,$_=Ff.locale,B_=Ff.generateConfig,$P=Ff.showTime,zP=$P||{},eme=zP.format,tme="".concat(kh,"-time-panel"),nme=useInfo(Ff,"time"),rme=_slicedToArray(nme,1),ame=rme[0];return React__namespace.createElement(PanelContext.Provider,{value:ame},React__namespace.createElement("div",{className:classNames(tme)},React__namespace.createElement(PanelHeader,null,x_?formatValue(x_,{locale:$_,format:eme,generateConfig:B_}):" "),React__namespace.createElement(TimePanelBody,$P)))}function DateTimePanel(Ff){var kh=Ff.prefixCls,x_=Ff.generateConfig,$_=Ff.showTime,B_=Ff.onSelect,$P=Ff.value,zP=Ff.pickerValue,eme=Ff.onHover,tme="".concat(kh,"-datetime-panel"),nme=useTimeInfo(x_,$_),rme=_slicedToArray(nme,1),ame=rme[0],ome=function(sme){return $P?fillTime(x_,sme,$P):fillTime(x_,sme,zP)},ime=function(sme){eme(sme&&ome(sme))},cme=function(sme){var fme=ome(sme);B_(ame(fme,fme))};return React__namespace.createElement("div",{className:tme},React__namespace.createElement(DatePanel,_extends({},Ff,{onSelect:cme,onHover:ime})),React__namespace.createElement(TimePanel,Ff))}function DecadePanel(Ff){var kh=Ff.prefixCls,x_=Ff.locale,$_=Ff.generateConfig,B_=Ff.pickerValue,$P=Ff.disabledDate,zP=Ff.onPickerValueChange,eme="".concat(kh,"-decade-panel"),tme=useInfo(Ff,"decade"),nme=_slicedToArray(tme,1),rme=nme[0],ame=function(yme){var mme=Math.floor($_.getYear(B_)/100)*100;return $_.setYear(yme,mme)},ome=function(yme){var mme=ame(yme);return $_.addYear(mme,99)},ime=ame(B_),cme=ome(B_),ume=$_.addYear(ime,-10),sme=function(yme,mme){return $_.addYear(yme,mme*10)},fme=function(yme){var mme=x_.cellYearFormat,bme=formatValue(yme,{locale:x_,format:mme,generateConfig:$_}),Sme=formatValue($_.addYear(yme,9),{locale:x_,format:mme,generateConfig:$_});return"".concat(bme,"-").concat(Sme)},lme=function(yme){return _defineProperty({},"".concat(kh,"-cell-in-view"),isSameDecade($_,yme,ime)||isSameDecade($_,yme,cme)||isInRange($_,ime,cme,yme))},hme=$P?function(gme,yme){var mme=$_.setDate(gme,1),bme=$_.setMonth(mme,0),Sme=$_.setYear(bme,Math.floor($_.getYear(bme)/10)*10),_me=$_.addYear(Sme,10),Cme=$_.addDate(_me,-1);return $P(Sme,yme)&&$P(Cme,yme)}:null,pme="".concat(formatValue(ime,{locale:x_,format:x_.yearFormat,generateConfig:$_}),"-").concat(formatValue(cme,{locale:x_,format:x_.yearFormat,generateConfig:$_}));return React__namespace.createElement(PanelContext.Provider,{value:rme},React__namespace.createElement("div",{className:eme},React__namespace.createElement(PanelHeader,{superOffset:function(yme){return $_.addYear(B_,yme*100)},onChange:zP,getStart:ame,getEnd:ome},pme),React__namespace.createElement(PanelBody,_extends({},Ff,{disabledDate:hme,colNum:3,rowNum:4,baseDate:ume,getCellDate:sme,getCellText:fme,getCellClassName:lme}))))}function MonthPanel(Ff){var kh=Ff.prefixCls,x_=Ff.locale,$_=Ff.generateConfig,B_=Ff.pickerValue,$P=Ff.disabledDate,zP=Ff.onPickerValueChange,eme=Ff.onModeChange,tme="".concat(kh,"-month-panel"),nme=useInfo(Ff,"month"),rme=_slicedToArray(nme,1),ame=rme[0],ome=$_.setMonth(B_,0),ime=x_.shortMonths||($_.locale.getShortMonths?$_.locale.getShortMonths(x_.locale):[]),cme=function(pme,gme){return $_.addMonth(pme,gme)},ume=function(pme){var gme=$_.getMonth(pme);return x_.monthFormat?formatValue(pme,{locale:x_,format:x_.monthFormat,generateConfig:$_}):ime[gme]},sme=function(){return _defineProperty({},"".concat(kh,"-cell-in-view"),!0)},fme=$P?function(hme,pme){var gme=$_.setDate(hme,1),yme=$_.setMonth(gme,$_.getMonth(gme)+1),mme=$_.addDate(yme,-1);return $P(gme,pme)&&$P(mme,pme)}:null,lme=React__namespace.createElement("button",{type:"button",key:"year",onClick:function(){eme("year")},tabIndex:-1,className:"".concat(kh,"-year-btn")},formatValue(B_,{locale:x_,format:x_.yearFormat,generateConfig:$_}));return React__namespace.createElement(PanelContext.Provider,{value:ame},React__namespace.createElement("div",{className:tme},React__namespace.createElement(PanelHeader,{superOffset:function(pme){return $_.addYear(B_,pme)},onChange:zP,getStart:function(pme){return $_.setMonth(pme,0)},getEnd:function(pme){return $_.setMonth(pme,11)}},lme),React__namespace.createElement(PanelBody,_extends({},Ff,{disabledDate:fme,titleFormat:x_.fieldMonthFormat,colNum:3,rowNum:4,baseDate:ome,getCellDate:cme,getCellText:ume,getCellClassName:sme}))))}function QuarterPanel(Ff){var kh=Ff.prefixCls,x_=Ff.locale,$_=Ff.generateConfig,B_=Ff.pickerValue,$P=Ff.onPickerValueChange,zP=Ff.onModeChange,eme="".concat(kh,"-quarter-panel"),tme=useInfo(Ff,"quarter"),nme=_slicedToArray(tme,1),rme=nme[0],ame=$_.setMonth(B_,0),ome=function(fme,lme){return $_.addMonth(fme,lme*3)},ime=function(fme){return formatValue(fme,{locale:x_,format:x_.cellQuarterFormat,generateConfig:$_})},cme=function(){return _defineProperty({},"".concat(kh,"-cell-in-view"),!0)},ume=React__namespace.createElement("button",{type:"button",key:"year",onClick:function(){zP("year")},tabIndex:-1,className:"".concat(kh,"-year-btn")},formatValue(B_,{locale:x_,format:x_.yearFormat,generateConfig:$_}));return React__namespace.createElement(PanelContext.Provider,{value:rme},React__namespace.createElement("div",{className:eme},React__namespace.createElement(PanelHeader,{superOffset:function(fme){return $_.addYear(B_,fme)},onChange:$P,getStart:function(fme){return $_.setMonth(fme,0)},getEnd:function(fme){return $_.setMonth(fme,11)}},ume),React__namespace.createElement(PanelBody,_extends({},Ff,{titleFormat:x_.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:ame,getCellDate:ome,getCellText:ime,getCellClassName:cme}))))}function WeekPanel(Ff){var kh=Ff.prefixCls,x_=Ff.generateConfig,$_=Ff.locale,B_=Ff.value,$P=Ff.hoverValue,zP=Ff.hoverRangeValue,eme=$_.locale,tme="".concat(kh,"-week-panel-row"),nme=function(ame){var ome={};if(zP){var ime=_slicedToArray(zP,2),cme=ime[0],ume=ime[1],sme=isSameWeek(x_,eme,cme,ame),fme=isSameWeek(x_,eme,ume,ame);ome["".concat(tme,"-range-start")]=sme,ome["".concat(tme,"-range-end")]=fme,ome["".concat(tme,"-range-hover")]=!sme&&!fme&&isInRange(x_,cme,ume,ame)}return $P&&(ome["".concat(tme,"-hover")]=$P.some(function(lme){return isSameWeek(x_,eme,ame,lme)})),classNames(tme,_defineProperty({},"".concat(tme,"-selected"),!zP&&isSameWeek(x_,eme,B_,ame)),ome)};return React__namespace.createElement(DatePanel,_extends({},Ff,{mode:"week",panelName:"week",rowClassName:nme}))}function YearPanel(Ff){var kh=Ff.prefixCls,x_=Ff.locale,$_=Ff.generateConfig,B_=Ff.pickerValue,$P=Ff.disabledDate,zP=Ff.onPickerValueChange,eme=Ff.onModeChange,tme="".concat(kh,"-year-panel"),nme=useInfo(Ff,"year"),rme=_slicedToArray(nme,1),ame=rme[0],ome=function(mme){var bme=Math.floor($_.getYear(B_)/10)*10;return $_.setYear(mme,bme)},ime=function(mme){var bme=ome(mme);return $_.addYear(bme,9)},cme=ome(B_),ume=ime(B_),sme=$_.addYear(cme,-1),fme=function(mme,bme){return $_.addYear(mme,bme)},lme=function(mme){return formatValue(mme,{locale:x_,format:x_.cellYearFormat,generateConfig:$_})},hme=function(mme){return _defineProperty({},"".concat(kh,"-cell-in-view"),isSameYear($_,mme,cme)||isSameYear($_,mme,ume)||isInRange($_,cme,ume,mme))},pme=$P?function(yme,mme){var bme=$_.setMonth(yme,0),Sme=$_.setDate(bme,1),_me=$_.setMonth(yme,$_.getMonth(yme)+1),Cme=$_.addDate(_me,-1);return $P(Sme,mme)&&$P(Cme,mme)}:null,gme=React__namespace.createElement("button",{type:"button",key:"year",onClick:function(){eme("decade")},tabIndex:-1,className:"".concat(kh,"-decade-btn")},formatValue(cme,{locale:x_,format:x_.yearFormat,generateConfig:$_}),"-",formatValue(ume,{locale:x_,format:x_.yearFormat,generateConfig:$_}));return React__namespace.createElement(PanelContext.Provider,{value:ame},React__namespace.createElement("div",{className:tme},React__namespace.createElement(PanelHeader,{superOffset:function(mme){return $_.addYear(B_,mme*10)},onChange:zP,getStart:ome,getEnd:ime},gme),React__namespace.createElement(PanelBody,_extends({},Ff,{disabledDate:pme,titleFormat:x_.fieldYearFormat,colNum:3,rowNum:4,baseDate:sme,getCellDate:fme,getCellText:lme,getCellClassName:hme}))))}var DefaultComponents={date:DatePanel,datetime:DateTimePanel,week:WeekPanel,month:MonthPanel,quarter:QuarterPanel,year:YearPanel,decade:DecadePanel,time:TimePanel};function PickerPanel(Ff,kh){var x_,$_=Ff.locale,B_=Ff.generateConfig,$P=Ff.direction,zP=Ff.prefixCls,eme=Ff.tabIndex,tme=eme===void 0?0:eme,nme=Ff.multiple,rme=Ff.defaultValue,ame=Ff.value,ome=Ff.onChange,ime=Ff.onSelect,cme=Ff.defaultPickerValue,ume=Ff.pickerValue,sme=Ff.onPickerValueChange,fme=Ff.mode,lme=Ff.onPanelChange,hme=Ff.picker,pme=hme===void 0?"date":hme,gme=Ff.showTime,yme=Ff.hoverValue,mme=Ff.hoverRangeValue,bme=Ff.cellRender,Sme=Ff.dateRender,_me=Ff.monthCellRender,Cme=Ff.components,Eme=Cme===void 0?{}:Cme,Tme=Ff.hideHeader,Rme=((x_=React__namespace.useContext(PickerContext))===null||x_===void 0?void 0:x_.prefixCls)||zP||"rc-picker",Pme=React__namespace.useRef();React__namespace.useImperativeHandle(kh,function(){return{nativeElement:Pme.current}});var $me=getTimeProps(Ff),Dme=_slicedToArray($me,4),Mme=Dme[0],Nme=Dme[1],Ime=Dme[2],wme=Dme[3],Ome=useLocale($_,Nme),Ame=pme==="date"&&gme?"datetime":pme,Fme=React__namespace.useMemo(function(){return fillShowTimeConfig(Ame,Ime,wme,Mme,Ome)},[Ame,Ime,wme,Mme,Ome]),Bme=B_.getNow(),kme=useMergedState(pme,{value:fme,postState:function(k0e){return k0e||"date"}}),Lme=_slicedToArray(kme,2),Hme=Lme[0],Wme=Lme[1],zme=Hme==="date"&&Fme?"datetime":Hme,Vme=useToggleDates(B_,$_,Ame),Xme=useMergedState(rme,{value:ame}),e0e=_slicedToArray(Xme,2),Ume=e0e[0],Jme=e0e[1],s0e=React__namespace.useMemo(function(){var b0e=toArray$3(Ume).filter(function(k0e){return k0e});return nme?b0e:b0e.slice(0,1)},[Ume,nme]),d0e=useEvent(function(b0e){Jme(b0e),ome&&(b0e===null||s0e.length!==b0e.length||s0e.some(function(k0e,T0e){return!isSame(B_,$_,k0e,b0e[T0e],Ame)}))&&(ome==null||ome(nme?b0e:b0e[0]))}),Zme=useEvent(function(b0e){if(ime==null||ime(b0e),Hme===pme){var k0e=nme?Vme(s0e,b0e):[b0e];d0e(k0e)}}),Qme=useMergedState(cme||s0e[0]||Bme,{value:ume}),a0e=_slicedToArray(Qme,2),t0e=a0e[0],o0e=a0e[1];React__namespace.useEffect(function(){s0e[0]&&!ume&&o0e(s0e[0])},[s0e[0]]);var g0e=function(k0e,T0e){lme==null||lme(k0e||ume,T0e||Hme)},u0e=function(k0e){var T0e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o0e(k0e),sme==null||sme(k0e),T0e&&g0e(k0e)},h0e=function(k0e,T0e){Wme(k0e),T0e&&u0e(T0e),g0e(T0e,k0e)},E0e=function(k0e){if(Zme(k0e),u0e(k0e),Hme!==pme){var T0e=["decade","year"],L0e=[].concat(T0e,["month"]),Y0e={quarter:[].concat(T0e,["quarter"]),week:[].concat(_toConsumableArray(L0e),["week"]),date:[].concat(_toConsumableArray(L0e),["date"])},mye=Y0e[pme]||L0e,Q0e=mye.indexOf(Hme),U0e=mye[Q0e+1];U0e&&h0e(U0e,k0e)}},P0e=React__namespace.useMemo(function(){var b0e,k0e;if(Array.isArray(mme)){var T0e=_slicedToArray(mme,2);b0e=T0e[0],k0e=T0e[1]}else b0e=mme;return!b0e&&!k0e?null:(b0e=b0e||k0e,k0e=k0e||b0e,B_.isAfter(b0e,k0e)?[k0e,b0e]:[b0e,k0e])},[mme,B_]),y0e=useCellRender(bme,Sme,_me),$0e=Eme[zme]||DefaultComponents[zme]||DatePanel,C0e=React__namespace.useContext(PickerHackContext),z0e=React__namespace.useMemo(function(){return _objectSpread2(_objectSpread2({},C0e),{},{hideHeader:Tme})},[C0e,Tme]);process.env.NODE_ENV!=="production"&&warningOnce(!s0e||s0e.every(function(b0e){return B_.isValidate(b0e)}),"Invalidate date pass to `value` or `defaultValue`.");var D0e="".concat(Rme,"-panel"),O0e=pickProps(Ff,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return React__namespace.createElement(PickerHackContext.Provider,{value:z0e},React__namespace.createElement("div",{ref:Pme,tabIndex:tme,className:classNames(D0e,_defineProperty({},"".concat(D0e,"-rtl"),$P==="rtl"))},React__namespace.createElement($0e,_extends({},O0e,{showTime:Fme,prefixCls:Rme,locale:Ome,generateConfig:B_,onModeChange:h0e,pickerValue:t0e,onPickerValueChange:function(k0e){u0e(k0e,!0)},value:s0e[0],onSelect:E0e,values:s0e,cellRender:y0e,hoverRangeValue:P0e,hoverValue:yme}))))}var RefPanelPicker=React__namespace.memo(React__namespace.forwardRef(PickerPanel));process.env.NODE_ENV!=="production"&&(RefPanelPicker.displayName="PanelPicker");function PopupPanel(Ff){var kh=Ff.picker,x_=Ff.multiplePanel,$_=Ff.pickerValue,B_=Ff.onPickerValueChange,$P=Ff.needConfirm,zP=Ff.onSubmit,eme=Ff.range,tme=Ff.hoverValue,nme=React__namespace.useContext(PickerContext),rme=nme.prefixCls,ame=nme.generateConfig,ome=React__namespace.useCallback(function(lme,hme){return offsetPanelDate(ame,kh,lme,hme)},[ame,kh]),ime=React__namespace.useMemo(function(){return ome($_,1)},[$_,ome]),cme=function(hme){B_(ome(hme,-1))},ume={onCellDblClick:function(){$P&&zP()}},sme=kh==="time",fme=_objectSpread2(_objectSpread2({},Ff),{},{hoverValue:null,hoverRangeValue:null,hideHeader:sme});return eme?fme.hoverRangeValue=tme:fme.hoverValue=tme,x_?React__namespace.createElement("div",{className:"".concat(rme,"-panels")},React__namespace.createElement(PickerHackContext.Provider,{value:_objectSpread2(_objectSpread2({},ume),{},{hideNext:!0})},React__namespace.createElement(RefPanelPicker,fme)),React__namespace.createElement(PickerHackContext.Provider,{value:_objectSpread2(_objectSpread2({},ume),{},{hidePrev:!0})},React__namespace.createElement(RefPanelPicker,_extends({},fme,{pickerValue:ime,onPickerValueChange:cme})))):React__namespace.createElement(PickerHackContext.Provider,{value:_objectSpread2({},ume)},React__namespace.createElement(RefPanelPicker,fme))}function executeValue(Ff){return typeof Ff=="function"?Ff():Ff}function PresetPanel(Ff){var kh=Ff.prefixCls,x_=Ff.presets,$_=Ff.onClick,B_=Ff.onHover;return x_.length?React__namespace.createElement("div",{className:"".concat(kh,"-presets")},React__namespace.createElement("ul",null,x_.map(function($P,zP){var eme=$P.label,tme=$P.value;return React__namespace.createElement("li",{key:zP,onClick:function(){$_(executeValue(tme))},onMouseEnter:function(){B_(executeValue(tme))},onMouseLeave:function(){B_(null)}},eme)}))):null}function Popup(Ff){var kh=Ff.panelRender,x_=Ff.internalMode,$_=Ff.picker,B_=Ff.showNow,$P=Ff.range,zP=Ff.multiple,eme=Ff.activeOffset,tme=eme===void 0?0:eme,nme=Ff.presets,rme=Ff.onPresetHover,ame=Ff.onPresetSubmit,ome=Ff.onFocus,ime=Ff.onBlur,cme=Ff.direction,ume=Ff.value,sme=Ff.onSelect,fme=Ff.isInvalid,lme=Ff.defaultOpenValue,hme=Ff.onOk,pme=Ff.onSubmit,gme=React__namespace.useContext(PickerContext),yme=gme.prefixCls,mme="".concat(yme,"-panel"),bme=cme==="rtl",Sme=React__namespace.useRef(null),_me=React__namespace.useRef(null),Cme=React__namespace.useState(0),Eme=_slicedToArray(Cme,2),Tme=Eme[0],Rme=Eme[1],Pme=React__namespace.useState(0),$me=_slicedToArray(Pme,2),Dme=$me[0],Mme=$me[1],Nme=function(e0e){e0e.offsetWidth&&Rme(e0e.offsetWidth)};React__namespace.useEffect(function(){if($P){var Xme,e0e=((Xme=Sme.current)===null||Xme===void 0?void 0:Xme.offsetWidth)||0,Ume=Tme-e0e;tme<=Ume?Mme(0):Mme(tme+e0e-Tme)}},[Tme,tme,$P]);function Ime(Xme){return Xme.filter(function(e0e){return e0e})}var wme=React__namespace.useMemo(function(){return Ime(toArray$3(ume))},[ume]),Ome=$_==="time"&&!wme.length,Ame=React__namespace.useMemo(function(){return Ome?Ime([lme]):wme},[Ome,wme,lme]),Fme=Ome?lme:wme,Bme=React__namespace.useMemo(function(){return Ame.length?Ame.some(function(Xme){return fme(Xme)}):!0},[Ame,fme]),kme=function(){Ome&&sme(lme),hme(),pme()},Lme=React__namespace.createElement("div",{className:"".concat(yme,"-panel-layout")},React__namespace.createElement(PresetPanel,{prefixCls:yme,presets:nme,onClick:ame,onHover:rme}),React__namespace.createElement("div",null,React__namespace.createElement(PopupPanel,_extends({},Ff,{value:Fme})),React__namespace.createElement(Footer,_extends({},Ff,{showNow:zP?!1:B_,invalid:Bme,onSubmit:kme}))));kh&&(Lme=kh(Lme));var Hme="".concat(mme,"-container"),Wme="marginLeft",zme="marginRight",Vme=React__namespace.createElement("div",{tabIndex:-1,className:classNames(Hme,"".concat(yme,"-").concat(x_,"-panel-container")),style:_defineProperty(_defineProperty({},bme?zme:Wme,Dme),bme?Wme:zme,"auto"),onFocus:ome,onBlur:ime},Lme);return $P&&(Vme=React__namespace.createElement("div",{ref:_me,className:classNames("".concat(yme,"-range-wrapper"),"".concat(yme,"-").concat($_,"-range-wrapper"))},React__namespace.createElement("div",{ref:Sme,className:"".concat(yme,"-range-arrow"),style:_defineProperty({},bme?"right":"left",tme)}),React__namespace.createElement(RefResizeObserver,{onResize:Nme},Vme))),Vme}function useInputProps(Ff,kh){var x_=Ff.format,$_=Ff.maskFormat,B_=Ff.generateConfig,$P=Ff.locale,zP=Ff.preserveInvalidOnBlur,eme=Ff.inputReadOnly,tme=Ff.required,nme=Ff["aria-required"],rme=Ff.onSubmit,ame=Ff.onFocus,ome=Ff.onBlur,ime=Ff.onInputChange,cme=Ff.onInvalid,ume=Ff.open,sme=Ff.onOpenChange,fme=Ff.onKeyDown,lme=Ff.onChange,hme=Ff.activeHelp,pme=Ff.name,gme=Ff.autoComplete,yme=Ff.id,mme=Ff.value,bme=Ff.invalid,Sme=Ff.placeholder,_me=Ff.disabled,Cme=Ff.activeIndex,Eme=Ff.allHelp,Tme=Ff.picker,Rme=function(Ome,Ame){var Fme=B_.locale.parse($P.locale,Ome,[Ame]);return Fme&&B_.isValidate(Fme)?Fme:null},Pme=x_[0],$me=React__namespace.useCallback(function(wme){return formatValue(wme,{locale:$P,format:Pme,generateConfig:B_})},[$P,B_,Pme]),Dme=React__namespace.useMemo(function(){return mme.map($me)},[mme,$me]),Mme=React__namespace.useMemo(function(){var wme=Tme==="time"?8:10,Ome=typeof Pme=="function"?Pme(B_.getNow()).length:Pme.length;return Math.max(wme,Ome)+2},[Pme,Tme,B_]),Nme=function(Ome){for(var Ame=0;Ame<x_.length;Ame+=1){var Fme=x_[Ame];if(typeof Fme=="string"){var Bme=Rme(Ome,Fme);if(Bme)return Bme}}return!1},Ime=function(Ome){function Ame(kme){return Ome!==void 0?kme[Ome]:kme}var Fme=pickAttrs(Ff,{aria:!0,data:!0}),Bme=_objectSpread2(_objectSpread2({},Fme),{},{format:$_,validateFormat:function(Lme){return!!Nme(Lme)},preserveInvalidOnBlur:zP,readOnly:eme,required:tme,"aria-required":nme,name:pme,autoComplete:gme,size:Mme,id:Ame(yme),value:Ame(Dme)||"",invalid:Ame(bme),placeholder:Ame(Sme),active:Cme===Ome,helped:Eme||hme&&Cme===Ome,disabled:Ame(_me),onFocus:function(Lme){ame(Lme,Ome)},onBlur:function(Lme){ome(Lme,Ome)},onSubmit:rme,onChange:function(Lme){ime();var Hme=Nme(Lme);if(Hme){cme(!1,Ome),lme(Hme,Ome);return}cme(!!Lme,Ome)},onHelp:function(){sme(!0,{index:Ome})},onKeyDown:function(Lme){var Hme=!1;if(fme==null||fme(Lme,function(){process.env.NODE_ENV!=="production"&&warningOnce(!1,"`preventDefault` callback is deprecated. Please call `event.preventDefault` directly."),Hme=!0}),!Lme.defaultPrevented&&!Hme)switch(Lme.key){case"Escape":sme(!1,{index:Ome});break;case"Enter":ume||sme(!0);break}}},kh==null?void 0:kh({valueTexts:Dme}));return Object.keys(Bme).forEach(function(kme){Bme[kme]===void 0&&delete Bme[kme]}),Bme};return[Ime,$me]}var propNames=["onMouseEnter","onMouseLeave"];function useRootProps(Ff){return React__namespace.useMemo(function(){return pickProps(Ff,propNames)},[Ff])}var _excluded$n=["icon","type"],_excluded2$5=["onClear"];function Icon$1(Ff){var kh=Ff.icon,x_=Ff.type,$_=_objectWithoutProperties(Ff,_excluded$n),B_=React__namespace.useContext(PickerContext),$P=B_.prefixCls;return kh?React__namespace.createElement("span",_extends({className:"".concat($P,"-").concat(x_)},$_),kh):null}function ClearIcon(Ff){var kh=Ff.onClear,x_=_objectWithoutProperties(Ff,_excluded2$5);return React__namespace.createElement(Icon$1,_extends({},x_,{type:"clear",role:"button",onMouseDown:function(B_){B_.preventDefault()},onClick:function(B_){B_.stopPropagation(),kh()}}))}var FORMAT_KEYS=["YYYY","MM","DD","HH","mm","ss","SSS"],REPLACE_KEY="顧",MaskFormat=function(){function Ff(kh){_classCallCheck(this,Ff),_defineProperty(this,"format",void 0),_defineProperty(this,"maskFormat",void 0),_defineProperty(this,"cells",void 0),_defineProperty(this,"maskCells",void 0),this.format=kh;var x_=FORMAT_KEYS.map(function(eme){return"(".concat(eme,")")}).join("|"),$_=new RegExp(x_,"g");this.maskFormat=kh.replace($_,function(eme){return REPLACE_KEY.repeat(eme.length)});var B_=new RegExp("(".concat(FORMAT_KEYS.join("|"),")")),$P=(kh.split(B_)||[]).filter(function(eme){return eme}),zP=0;this.cells=$P.map(function(eme){var tme=FORMAT_KEYS.includes(eme),nme=zP,rme=zP+eme.length;return zP=rme,{text:eme,mask:tme,start:nme,end:rme}}),this.maskCells=this.cells.filter(function(eme){return eme.mask})}return _createClass(Ff,[{key:"getSelection",value:function(x_){var $_=this.maskCells[x_]||{},B_=$_.start,$P=$_.end;return[B_||0,$P||0]}},{key:"match",value:function(x_){for(var $_=0;$_<this.maskFormat.length;$_+=1){var B_=this.maskFormat[$_],$P=x_[$_];if(!$P||B_!==REPLACE_KEY&&B_!==$P)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(x_){for(var $_=Number.MAX_SAFE_INTEGER,B_=0,$P=0;$P<this.maskCells.length;$P+=1){var zP=this.maskCells[$P],eme=zP.start,tme=zP.end;if(x_>=eme&&x_<=tme)return $P;var nme=Math.min(Math.abs(x_-eme),Math.abs(x_-tme));nme<$_&&($_=nme,B_=$P)}return B_}}]),Ff}();function getMaskRange(Ff){var kh={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return kh[Ff]}var _excluded$m=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],Input$4=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.active,$_=Ff.showActiveCls,B_=$_===void 0?!0:$_,$P=Ff.suffixIcon,zP=Ff.format,eme=Ff.validateFormat,tme=Ff.onChange;Ff.onInput;var nme=Ff.helped,rme=Ff.onHelp,ame=Ff.onSubmit,ome=Ff.onKeyDown,ime=Ff.preserveInvalidOnBlur,cme=ime===void 0?!1:ime,ume=Ff.invalid,sme=Ff.clearIcon,fme=_objectWithoutProperties(Ff,_excluded$m),lme=Ff.value,hme=Ff.onFocus,pme=Ff.onBlur,gme=Ff.onMouseUp,yme=React__namespace.useContext(PickerContext),mme=yme.prefixCls,bme=yme.input,Sme=bme===void 0?"input":bme,_me="".concat(mme,"-input"),Cme=React__namespace.useState(!1),Eme=_slicedToArray(Cme,2),Tme=Eme[0],Rme=Eme[1],Pme=React__namespace.useState(lme),$me=_slicedToArray(Pme,2),Dme=$me[0],Mme=$me[1],Nme=React__namespace.useState(""),Ime=_slicedToArray(Nme,2),wme=Ime[0],Ome=Ime[1],Ame=React__namespace.useState(null),Fme=_slicedToArray(Ame,2),Bme=Fme[0],kme=Fme[1],Lme=React__namespace.useState(null),Hme=_slicedToArray(Lme,2),Wme=Hme[0],zme=Hme[1],Vme=Dme||"";React__namespace.useEffect(function(){Mme(lme)},[lme]);var Xme=React__namespace.useRef(),e0e=React__namespace.useRef();React__namespace.useImperativeHandle(kh,function(){return{nativeElement:Xme.current,inputElement:e0e.current,focus:function(b0e){e0e.current.focus(b0e)},blur:function(){e0e.current.blur()}}});var Ume=React__namespace.useMemo(function(){return new MaskFormat(zP||"")},[zP]),Jme=React__namespace.useMemo(function(){return nme?[0,0]:Ume.getSelection(Bme)},[Ume,Bme,nme]),s0e=_slicedToArray(Jme,2),d0e=s0e[0],Zme=s0e[1],Qme=function(b0e){b0e&&b0e!==zP&&b0e!==lme&&rme()},a0e=useEvent(function(O0e){eme(O0e)&&tme(O0e),Mme(O0e),Qme(O0e)}),t0e=function(b0e){if(!zP){var k0e=b0e.target.value;Qme(k0e),Mme(k0e),tme(k0e)}},o0e=function(b0e){var k0e=b0e.clipboardData.getData("text");eme(k0e)&&a0e(k0e)},g0e=React__namespace.useRef(!1),u0e=function(){g0e.current=!0},h0e=function(b0e){var k0e=b0e.target,T0e=k0e.selectionStart,L0e=Ume.getMaskCellIndex(T0e);kme(L0e),zme({}),gme==null||gme(b0e),g0e.current=!1},E0e=function(b0e){Rme(!0),kme(0),Ome(""),hme(b0e)},P0e=function(b0e){pme(b0e)},y0e=function(b0e){Rme(!1),P0e(b0e)};useLockEffect(x_,function(){!x_&&!cme&&Mme(lme)});var $0e=function(b0e){b0e.key==="Enter"&&eme(Vme)&&ame(),ome==null||ome(b0e)},C0e=function(b0e){$0e(b0e);var k0e=b0e.key,T0e=null,L0e=null,Y0e=Zme-d0e,mye=zP.slice(d0e,Zme),Q0e=function(X0e){kme(function(M0e){var J0e=M0e+X0e;return J0e=Math.max(J0e,0),J0e=Math.min(J0e,Ume.size()-1),J0e})},U0e=function(X0e){var M0e=getMaskRange(mye),J0e=_slicedToArray(M0e,3),aye=J0e[0],F0e=J0e[1],cye=J0e[2],yye=Vme.slice(d0e,Zme),W0e=Number(yye);if(isNaN(W0e))return String(cye||(X0e>0?aye:F0e));var sye=W0e+X0e,G0e=F0e-aye+1;return String(aye+(G0e+sye-aye)%G0e)};switch(k0e){case"Backspace":case"Delete":T0e="",L0e=mye;break;case"ArrowLeft":T0e="",Q0e(-1);break;case"ArrowRight":T0e="",Q0e(1);break;case"ArrowUp":T0e="",L0e=U0e(1);break;case"ArrowDown":T0e="",L0e=U0e(-1);break;default:isNaN(Number(k0e))||(T0e=wme+k0e,L0e=T0e);break}if(T0e!==null&&(Ome(T0e),T0e.length>=Y0e&&(Q0e(1),Ome(""))),L0e!==null){var q0e=Vme.slice(0,d0e)+leftPad(L0e,Y0e)+Vme.slice(Zme);a0e(q0e.slice(0,zP.length))}zme({})},z0e=React__namespace.useRef();useLayoutEffect$1(function(){if(!(!Tme||!zP||g0e.current)){if(!Ume.match(Vme)){a0e(zP);return}return e0e.current.setSelectionRange(d0e,Zme),z0e.current=wrapperRaf(function(){e0e.current.setSelectionRange(d0e,Zme)}),function(){wrapperRaf.cancel(z0e.current)}}},[Ume,zP,Tme,Vme,Bme,d0e,Zme,Wme,a0e]);var D0e=zP?{onFocus:E0e,onBlur:y0e,onKeyDown:C0e,onMouseDown:u0e,onMouseUp:h0e,onPaste:o0e}:{};return React__namespace.createElement("div",{ref:Xme,className:classNames(_me,_defineProperty(_defineProperty({},"".concat(_me,"-active"),x_&&B_),"".concat(_me,"-placeholder"),nme))},React__namespace.createElement(Sme,_extends({ref:e0e,"aria-invalid":ume,autoComplete:"off"},fme,{onKeyDown:$0e,onBlur:P0e},D0e,{value:Vme,onChange:t0e})),React__namespace.createElement(Icon$1,{type:"suffix",icon:$P}),sme)});process.env.NODE_ENV!=="production"&&(Input$4.displayName="Input");var _excluded$l=["id","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","onMouseDown","required","aria-required","autoFocus"],_excluded2$4=["index"];function RangeSelector(Ff,kh){var x_=Ff.id,$_=Ff.clearIcon,B_=Ff.suffixIcon,$P=Ff.separator,zP=$P===void 0?"~":$P,eme=Ff.activeIndex;Ff.activeHelp,Ff.allHelp;var tme=Ff.focused;Ff.onFocus,Ff.onBlur,Ff.onKeyDown,Ff.locale,Ff.generateConfig;var nme=Ff.placeholder,rme=Ff.className,ame=Ff.style,ome=Ff.onClick,ime=Ff.onClear,cme=Ff.value;Ff.onChange,Ff.onSubmit,Ff.onInputChange,Ff.format,Ff.maskFormat,Ff.preserveInvalidOnBlur,Ff.onInvalid;var ume=Ff.disabled,sme=Ff.invalid;Ff.inputReadOnly;var fme=Ff.direction;Ff.onOpenChange;var lme=Ff.onActiveOffset,hme=Ff.onMouseDown;Ff.required,Ff["aria-required"];var pme=Ff.autoFocus,gme=_objectWithoutProperties(Ff,_excluded$l),yme=fme==="rtl",mme=React__namespace.useContext(PickerContext),bme=mme.prefixCls,Sme=React__namespace.useMemo(function(){if(typeof x_=="string")return[x_];var Hme=x_||{};return[Hme.start,Hme.end]},[x_]),_me=React__namespace.useRef(),Cme=React__namespace.useRef(),Eme=React__namespace.useRef(),Tme=function(Wme){var zme;return(zme=[Cme,Eme][Wme])===null||zme===void 0?void 0:zme.current};React__namespace.useImperativeHandle(kh,function(){return{nativeElement:_me.current,focus:function(Wme){if(_typeof(Wme)==="object"){var zme,Vme=Wme||{},Xme=Vme.index,e0e=Xme===void 0?0:Xme,Ume=_objectWithoutProperties(Vme,_excluded2$4);(zme=Tme(e0e))===null||zme===void 0||zme.focus(Ume)}else{var Jme;(Jme=Tme(Wme??0))===null||Jme===void 0||Jme.focus()}},blur:function(){var Wme,zme;(Wme=Tme(0))===null||Wme===void 0||Wme.blur(),(zme=Tme(1))===null||zme===void 0||zme.blur()}}});var Rme=useRootProps(gme),Pme=React__namespace.useMemo(function(){return Array.isArray(nme)?nme:[nme,nme]},[nme]),$me=useInputProps(_objectSpread2(_objectSpread2({},Ff),{},{id:Sme,placeholder:Pme})),Dme=_slicedToArray($me,1),Mme=Dme[0],Nme=yme?"right":"left",Ime=React__namespace.useState(_defineProperty({position:"absolute",width:0},Nme,0)),wme=_slicedToArray(Ime,2),Ome=wme[0],Ame=wme[1],Fme=useEvent(function(){var Hme=Tme(eme);if(Hme){var Wme=Hme.nativeElement,zme=Wme.offsetWidth,Vme=Wme.offsetLeft,Xme=Wme.offsetParent,e0e=Vme;if(yme){var Ume=Xme,Jme=getComputedStyle(Ume);e0e=Ume.offsetWidth-parseFloat(Jme.borderRightWidth)-parseFloat(Jme.borderLeftWidth)-Vme-zme}Ame(function(s0e){return _objectSpread2(_objectSpread2({},s0e),{},_defineProperty({width:zme},Nme,e0e))}),lme(eme===0?0:e0e)}});React__namespace.useEffect(function(){Fme()},[eme]);var Bme=$_&&(cme[0]&&!ume[0]||cme[1]&&!ume[1]),kme=pme&&!ume[0],Lme=pme&&!kme&&!ume[1];return React__namespace.createElement(RefResizeObserver,{onResize:Fme},React__namespace.createElement("div",_extends({},Rme,{className:classNames(bme,"".concat(bme,"-range"),_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"".concat(bme,"-focused"),tme),"".concat(bme,"-disabled"),ume.every(function(Hme){return Hme})),"".concat(bme,"-invalid"),sme.some(function(Hme){return Hme})),"".concat(bme,"-rtl"),yme),rme),style:ame,ref:_me,onClick:ome,onMouseDown:function(Wme){var zme=Wme.target;zme!==Cme.current.inputElement&&zme!==Eme.current.inputElement&&Wme.preventDefault(),hme==null||hme(Wme)}}),React__namespace.createElement(Input$4,_extends({ref:Cme},Mme(0),{autoFocus:kme,"date-range":"start"})),React__namespace.createElement("div",{className:"".concat(bme,"-range-separator")},zP),React__namespace.createElement(Input$4,_extends({ref:Eme},Mme(1),{autoFocus:Lme,"date-range":"end"})),React__namespace.createElement("div",{className:"".concat(bme,"-active-bar"),style:Ome}),React__namespace.createElement(Icon$1,{type:"suffix",icon:B_}),Bme&&React__namespace.createElement(ClearIcon,{icon:$_,onClear:ime})))}var RefRangeSelector=React__namespace.forwardRef(RangeSelector);process.env.NODE_ENV!=="production"&&(RefRangeSelector.displayName="RangeSelector");function separateConfig(Ff,kh){var x_=Ff??kh;return Array.isArray(x_)?x_:[x_,x_]}function getActiveRange(Ff){return Ff===1?"end":"start"}function RangePicker(Ff,kh){var x_=useFilledProps(Ff,function(){var Pye=Ff.disabled,pye=Ff.allowEmpty,kye=separateConfig(Pye,!1),e1e=separateConfig(pye,!1);return{disabled:kye,allowEmpty:e1e}}),$_=_slicedToArray(x_,6),B_=$_[0],$P=$_[1],zP=$_[2],eme=$_[3],tme=$_[4],nme=$_[5],rme=B_.prefixCls,ame=B_.styles,ome=B_.classNames,ime=B_.defaultValue,cme=B_.value,ume=B_.needConfirm,sme=B_.onKeyDown,fme=B_.disabled,lme=B_.allowEmpty,hme=B_.disabledDate,pme=B_.minDate,gme=B_.maxDate,yme=B_.defaultOpen,mme=B_.open,bme=B_.onOpenChange,Sme=B_.locale,_me=B_.generateConfig,Cme=B_.picker,Eme=B_.showNow,Tme=B_.showToday,Rme=B_.showTime,Pme=B_.mode,$me=B_.onPanelChange,Dme=B_.onCalendarChange,Mme=B_.onOk,Nme=B_.defaultPickerValue,Ime=B_.pickerValue,wme=B_.onPickerValueChange,Ome=B_.inputReadOnly,Ame=B_.suffixIcon,Fme=B_.onFocus,Bme=B_.onBlur,kme=B_.presets,Lme=B_.ranges,Hme=B_.components,Wme=B_.cellRender,zme=B_.dateRender,Vme=B_.monthCellRender,Xme=B_.onClick,e0e=usePickerRef(kh),Ume=useOpen(mme,yme,fme,bme),Jme=_slicedToArray(Ume,2),s0e=Jme[0],d0e=Jme[1],Zme=function(pye,kye){(fme.some(function(e1e){return!e1e})||!pye)&&d0e(pye,kye)},Qme=useInnerValue(_me,Sme,eme,!0,!1,ime,cme,Dme,Mme),a0e=_slicedToArray(Qme,5),t0e=a0e[0],o0e=a0e[1],g0e=a0e[2],u0e=a0e[3],h0e=a0e[4],E0e=g0e(),P0e=useRangeActive(fme,lme),y0e=_slicedToArray(P0e,7),$0e=y0e[0],C0e=y0e[1],z0e=y0e[2],D0e=y0e[3],O0e=y0e[4],b0e=y0e[5],k0e=y0e[6],T0e=function(pye,kye){C0e(!0),Fme==null||Fme(pye,{range:getActiveRange(kye??D0e)})},L0e=function(pye,kye){C0e(!1),Bme==null||Bme(pye,{range:getActiveRange(kye??D0e)})},Y0e=React__namespace.useMemo(function(){if(!Rme)return null;var Pye=Rme.disabledTime,pye=Pye?function(kye){var e1e=getActiveRange(D0e),p1e=getFromDate(E0e,k0e,D0e);return Pye(kye,e1e,{from:p1e})}:void 0;return _objectSpread2(_objectSpread2({},Rme),{},{disabledTime:pye})},[Rme,D0e,E0e,k0e]),mye=useMergedState([Cme,Cme],{value:Pme}),Q0e=_slicedToArray(mye,2),U0e=Q0e[0],q0e=Q0e[1],V0e=U0e[D0e]||Cme,X0e=V0e==="date"&&Y0e?"datetime":V0e,M0e=X0e===Cme&&X0e!=="time",J0e=useShowNow(Cme,V0e,Eme,Tme,!0),aye=useRangeValue(B_,t0e,o0e,g0e,u0e,fme,eme,$0e,s0e,nme),F0e=_slicedToArray(aye,2),cye=F0e[0],yye=F0e[1],W0e=useRangeDisabledDate(E0e,fme,k0e,_me,Sme,hme),sye=useFieldsInvalidate(E0e,nme,lme),G0e=_slicedToArray(sye,2),hye=G0e[0],wye=G0e[1],Eye=useRangePickerValue(_me,Sme,E0e,U0e,s0e,D0e,$P,M0e,Nme,Ime,Y0e==null?void 0:Y0e.defaultOpenValue,wme,pme,gme),Vye=_slicedToArray(Eye,2),r0e=Vye[0],R0e=Vye[1],A0e=useEvent(function(Pye,pye,kye){var e1e=fillIndex(U0e,D0e,pye);if((e1e[0]!==U0e[0]||e1e[1]!==U0e[1])&&q0e(e1e),$me&&kye!==!1){var p1e=_toConsumableArray(E0e);Pye&&(p1e[D0e]=Pye),$me(p1e,e1e)}}),n0e=function(pye,kye){return fillIndex(E0e,kye,pye)},f0e=function(pye,kye){var e1e=E0e;pye&&(e1e=n0e(pye,D0e));var p1e=b0e(e1e);u0e(e1e),cye(D0e,p1e===null),p1e===null?Zme(!1,{force:!0}):kye||e0e.current.focus({index:p1e})},m0e=function(pye){if(!e0e.current.nativeElement.contains(document.activeElement)){var kye=fme.findIndex(function(e1e){return!e1e});kye>=0&&e0e.current.focus({index:kye})}Zme(!0),Xme==null||Xme(pye)},w0e=function(){yye(null),Zme(!1,{force:!0})},j0e=React__namespace.useState(null),_0e=_slicedToArray(j0e,2),Yme=_0e[0],l0e=_0e[1],S0e=React__namespace.useState(null),I0e=_slicedToArray(S0e,2),Z0e=I0e[0],lye=I0e[1],Tye=React__namespace.useMemo(function(){return Z0e||E0e},[E0e,Z0e]);React__namespace.useEffect(function(){s0e||lye(null)},[s0e]);var xye=React__namespace.useState(0),Dye=_slicedToArray(xye,2),Lye=Dye[0],l1e=Dye[1],Uye=usePresets(kme,Lme),Qye=function(pye){lye(pye),l0e("preset")},Sye=function(pye){var kye=yye(pye);kye&&Zme(!1,{force:!0})},jye=function(pye){f0e(pye)},qye=function(pye){lye(pye?n0e(pye,D0e):null),l0e("cell")},Rye=function(pye){Zme(!0),T0e(pye)},Aye=function(pye){z0e("panel");var kye=fillIndex(E0e,D0e,pye);u0e(kye),!ume&&!zP&&$P===X0e&&f0e(pye)},Oye=function(){Zme(!1)},fye=useCellRender(Wme,zme,Vme,getActiveRange(D0e)),gye=E0e[D0e]||null,Hye=useEvent(function(Pye){return nme(Pye,{activeIndex:D0e})}),Xye=React__namespace.useMemo(function(){var Pye=pickAttrs(B_,!1),pye=omit(B_,[].concat(_toConsumableArray(Object.keys(Pye)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return pye},[B_]),Wye=React__namespace.createElement(Popup,_extends({},Xye,{showNow:J0e,showTime:Y0e,range:!0,multiplePanel:M0e,activeOffset:Lye,disabledDate:W0e,onFocus:Rye,onBlur:L0e,picker:Cme,mode:V0e,internalMode:X0e,onPanelChange:A0e,format:tme,value:gye,isInvalid:Hye,onChange:null,onSelect:Aye,pickerValue:r0e,defaultOpenValue:toArray$3(Rme==null?void 0:Rme.defaultOpenValue)[D0e],onPickerValueChange:R0e,hoverValue:Tye,onHover:qye,needConfirm:ume,onSubmit:f0e,onOk:h0e,presets:Uye,onPresetHover:Qye,onPresetSubmit:Sye,onNow:jye,cellRender:fye})),n1e=function(pye,kye){var e1e=n0e(pye,kye);u0e(e1e)},bye=function(){z0e("input")},dye=function(pye,kye){z0e("input"),Zme(!0,{inherit:!0}),O0e(kye),T0e(pye,kye)},Yye=function(pye,kye){Zme(!1),L0e(pye,kye)},u1e=function(pye,kye){pye.key==="Tab"&&f0e(null,!0),sme==null||sme(pye,kye)},s1e=React__namespace.useMemo(function(){return{prefixCls:rme,locale:Sme,generateConfig:_me,button:Hme.button,input:Hme.input}},[rme,Sme,_me,Hme.button,Hme.input]);if(useLayoutEffect$1(function(){s0e&&D0e!==void 0&&A0e(null,Cme,!1)},[s0e,D0e,Cme]),useLayoutEffect$1(function(){var Pye=z0e();!s0e&&Pye==="input"&&(Zme(!1),f0e(null,!0)),!s0e&&zP&&!ume&&Pye==="panel"&&(Zme(!0),f0e())},[s0e]),process.env.NODE_ENV!=="production"){var y1e=function(pye){return!(cme!=null&&cme[pye])&&!(ime!=null&&ime[pye])};fme.some(function(Pye,pye){return Pye&&y1e(pye)&&!lme[pye]})&&warningOnce(!1,"`disabled` should not set with empty `value`. You should set `allowEmpty` or `value` instead.")}return React__namespace.createElement(PickerContext.Provider,{value:s1e},React__namespace.createElement(PickerTrigger,_extends({},pickTriggerProps(B_),{popupElement:Wye,popupStyle:ame.popup,popupClassName:ome.popup,visible:s0e,onClose:Oye,range:!0}),React__namespace.createElement(RefRangeSelector,_extends({},B_,{ref:e0e,suffixIcon:Ame,activeIndex:$0e||s0e?D0e:null,activeHelp:!!Z0e,allHelp:!!Z0e&&Yme==="preset",focused:$0e,onFocus:dye,onBlur:Yye,onKeyDown:u1e,onSubmit:f0e,value:Tye,maskFormat:tme,onChange:n1e,onInputChange:bye,format:eme,inputReadOnly:Ome,disabled:fme,open:s0e,onOpenChange:Zme,onClick:m0e,onClear:w0e,invalid:hye,onInvalid:wye,onActiveOffset:l1e}))))}var RefRangePicker=React__namespace.forwardRef(RangePicker);process.env.NODE_ENV!=="production"&&(RefRangePicker.displayName="RefRangePicker");function MultipleDates(Ff){var kh=Ff.prefixCls,x_=Ff.value,$_=Ff.onRemove,B_=Ff.removeIcon,$P=B_===void 0?"×":B_,zP=Ff.formatDate,eme=Ff.disabled,tme=Ff.maxTagCount,nme=Ff.placeholder,rme="".concat(kh,"-selector"),ame="".concat(kh,"-selection"),ome="".concat(ame,"-overflow");function ime(sme,fme){return React__namespace.createElement("span",{className:classNames("".concat(ame,"-item")),title:typeof sme=="string"?sme:null},React__namespace.createElement("span",{className:"".concat(ame,"-item-content")},sme),!eme&&fme&&React__namespace.createElement("span",{onMouseDown:function(hme){hme.preventDefault()},onClick:fme,className:"".concat(ame,"-item-remove")},$P))}function cme(sme){var fme=zP(sme),lme=function(pme){pme&&pme.stopPropagation(),$_(sme)};return ime(fme,lme)}function ume(sme){var fme="+ ".concat(sme.length," ...");return ime(fme)}return React__namespace.createElement("div",{className:rme},React__namespace.createElement(ForwardOverflow,{prefixCls:ome,data:x_,renderItem:cme,renderRest:ume,itemKey:function(fme){return zP(fme)},maxCount:tme}),!x_.length&&React__namespace.createElement("span",{className:"".concat(kh,"-selection-placeholder")},nme))}var _excluded$k=["id","open","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","removeIcon"];function SingleSelector(Ff,kh){Ff.id;var x_=Ff.open,$_=Ff.clearIcon,B_=Ff.suffixIcon;Ff.activeHelp,Ff.allHelp;var $P=Ff.focused;Ff.onFocus,Ff.onBlur,Ff.onKeyDown;var zP=Ff.locale,eme=Ff.generateConfig,tme=Ff.placeholder,nme=Ff.className,rme=Ff.style,ame=Ff.onClick,ome=Ff.onClear,ime=Ff.internalPicker,cme=Ff.value,ume=Ff.onChange,sme=Ff.onSubmit;Ff.onInputChange;var fme=Ff.multiple,lme=Ff.maxTagCount;Ff.format,Ff.maskFormat,Ff.preserveInvalidOnBlur,Ff.onInvalid;var hme=Ff.disabled,pme=Ff.invalid;Ff.inputReadOnly;var gme=Ff.direction;Ff.onOpenChange;var yme=Ff.onMouseDown;Ff.required,Ff["aria-required"];var mme=Ff.autoFocus,bme=Ff.removeIcon,Sme=_objectWithoutProperties(Ff,_excluded$k),_me=gme==="rtl",Cme=React__namespace.useContext(PickerContext),Eme=Cme.prefixCls,Tme=React__namespace.useRef(),Rme=React__namespace.useRef();React__namespace.useImperativeHandle(kh,function(){return{nativeElement:Tme.current,focus:function(Bme){var kme;(kme=Rme.current)===null||kme===void 0||kme.focus(Bme)},blur:function(){var Bme;(Bme=Rme.current)===null||Bme===void 0||Bme.blur()}}});var Pme=useRootProps(Sme),$me=function(Bme){ume([Bme])},Dme=function(Bme){var kme=cme.filter(function(Lme){return Lme&&!isSame(eme,zP,Lme,Bme,ime)});ume(kme),x_||sme()},Mme=useInputProps(_objectSpread2(_objectSpread2({},Ff),{},{onChange:$me}),function(Fme){var Bme=Fme.valueTexts;return{value:Bme[0]||"",active:$P}}),Nme=_slicedToArray(Mme,2),Ime=Nme[0],wme=Nme[1],Ome=!!($_&&cme.length&&!hme),Ame=fme?React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(MultipleDates,{prefixCls:Eme,value:cme,onRemove:Dme,formatDate:wme,maxTagCount:lme,disabled:hme,removeIcon:bme,placeholder:tme}),React__namespace.createElement("input",{className:"".concat(Eme,"-multiple-input"),value:cme.map(wme).join(","),ref:Rme,readOnly:!0,autoFocus:mme}),React__namespace.createElement(Icon$1,{type:"suffix",icon:B_}),Ome&&React__namespace.createElement(ClearIcon,{icon:$_,onClear:ome})):React__namespace.createElement(Input$4,_extends({ref:Rme},Ime(),{autoFocus:mme,suffixIcon:B_,clearIcon:Ome&&React__namespace.createElement(ClearIcon,{icon:$_,onClear:ome}),showActiveCls:!1}));return React__namespace.createElement("div",_extends({},Pme,{className:classNames(Eme,_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({},"".concat(Eme,"-multiple"),fme),"".concat(Eme,"-focused"),$P),"".concat(Eme,"-disabled"),hme),"".concat(Eme,"-invalid"),pme),"".concat(Eme,"-rtl"),_me),nme),style:rme,ref:Tme,onClick:ame,onMouseDown:function(Bme){var kme,Lme=Bme.target;Lme!==((kme=Rme.current)===null||kme===void 0?void 0:kme.inputElement)&&Bme.preventDefault(),yme==null||yme(Bme)}}),Ame)}var RefSingleSelector=React__namespace.forwardRef(SingleSelector);process.env.NODE_ENV!=="production"&&(RefSingleSelector.displayName="SingleSelector");function Picker(Ff,kh){var x_=useFilledProps(Ff),$_=_slicedToArray(x_,6),B_=$_[0],$P=$_[1],zP=$_[2],eme=$_[3],tme=$_[4],nme=$_[5],rme=B_,ame=rme.prefixCls,ome=rme.styles,ime=rme.classNames,cme=rme.order,ume=rme.defaultValue,sme=rme.value,fme=rme.needConfirm,lme=rme.onChange,hme=rme.onKeyDown,pme=rme.disabled,gme=rme.disabledDate,yme=rme.minDate,mme=rme.maxDate,bme=rme.defaultOpen,Sme=rme.open,_me=rme.onOpenChange,Cme=rme.locale,Eme=rme.generateConfig,Tme=rme.picker,Rme=rme.showNow,Pme=rme.showToday,$me=rme.showTime,Dme=rme.mode,Mme=rme.onPanelChange,Nme=rme.onCalendarChange,Ime=rme.onOk,wme=rme.multiple,Ome=rme.defaultPickerValue,Ame=rme.pickerValue,Fme=rme.onPickerValueChange,Bme=rme.inputReadOnly,kme=rme.suffixIcon,Lme=rme.removeIcon,Hme=rme.onFocus,Wme=rme.onBlur,zme=rme.presets,Vme=rme.components,Xme=rme.cellRender,e0e=rme.dateRender,Ume=rme.monthCellRender,Jme=rme.onClick,s0e=usePickerRef(kh);function d0e(bye){return bye===null?null:wme?bye:bye[0]}var Zme=useToggleDates(Eme,Cme,$P),Qme=useOpen(Sme,bme,[pme],_me),a0e=_slicedToArray(Qme,2),t0e=a0e[0],o0e=a0e[1],g0e=function(dye,Yye,u1e){if(Nme){var s1e=_objectSpread2({},u1e);delete s1e.range,Nme(d0e(dye),d0e(Yye),s1e)}},u0e=function(dye){Ime==null||Ime(d0e(dye))},h0e=useInnerValue(Eme,Cme,eme,!1,cme,ume,sme,g0e,u0e),E0e=_slicedToArray(h0e,5),P0e=E0e[0],y0e=E0e[1],$0e=E0e[2],C0e=E0e[3],z0e=E0e[4],D0e=$0e(),O0e=useRangeActive([pme]),b0e=_slicedToArray(O0e,4),k0e=b0e[0],T0e=b0e[1],L0e=b0e[2],Y0e=b0e[3],mye=function(dye){T0e(!0),Hme==null||Hme(dye,{})},Q0e=function(dye){T0e(!1),Wme==null||Wme(dye,{})},U0e=useMergedState(Tme,{value:Dme}),q0e=_slicedToArray(U0e,2),V0e=q0e[0],X0e=q0e[1],M0e=V0e==="date"&&$me?"datetime":V0e,J0e=useShowNow(Tme,V0e,Rme,Pme),aye=lme&&function(bye,dye){lme(d0e(bye),d0e(dye))},F0e=useRangeValue(_objectSpread2(_objectSpread2({},B_),{},{onChange:aye}),P0e,y0e,$0e,C0e,[],eme,k0e,t0e,nme),cye=_slicedToArray(F0e,2),yye=cye[1],W0e=useFieldsInvalidate(D0e,nme),sye=_slicedToArray(W0e,2),G0e=sye[0],hye=sye[1],wye=React__namespace.useMemo(function(){return G0e.some(function(bye){return bye})},[G0e]),Eye=function(dye,Yye){if(Fme){var u1e=_objectSpread2(_objectSpread2({},Yye),{},{mode:Yye.mode[0]});delete u1e.range,Fme(dye[0],u1e)}},Vye=useRangePickerValue(Eme,Cme,D0e,[V0e],t0e,Y0e,$P,!1,Ome,Ame,toArray$3($me==null?void 0:$me.defaultOpenValue),Eye,yme,mme),r0e=_slicedToArray(Vye,2),R0e=r0e[0],A0e=r0e[1],n0e=useEvent(function(bye,dye,Yye){if(X0e(dye),Mme&&Yye!==!1){var u1e=bye||D0e[D0e.length-1];Mme(u1e,dye)}}),f0e=function(){yye($0e()),o0e(!1,{force:!0})},m0e=function(dye){!pme&&!s0e.current.nativeElement.contains(document.activeElement)&&s0e.current.focus(),o0e(!0),Jme==null||Jme(dye)},w0e=function(){yye(null),o0e(!1,{force:!0})},j0e=React__namespace.useState(null),_0e=_slicedToArray(j0e,2),Yme=_0e[0],l0e=_0e[1],S0e=React__namespace.useState(null),I0e=_slicedToArray(S0e,2),Z0e=I0e[0],lye=I0e[1],Tye=React__namespace.useMemo(function(){var bye=[Z0e].concat(_toConsumableArray(D0e)).filter(function(dye){return dye});return wme?bye:bye.slice(0,1)},[D0e,Z0e,wme]),xye=React__namespace.useMemo(function(){return!wme&&Z0e?[Z0e]:D0e.filter(function(bye){return bye})},[D0e,Z0e,wme]);React__namespace.useEffect(function(){t0e||lye(null)},[t0e]);var Dye=usePresets(zme),Lye=function(dye){lye(dye),l0e("preset")},l1e=function(dye){var Yye=wme?Zme($0e(),dye):[dye],u1e=yye(Yye);u1e&&!wme&&o0e(!1,{force:!0})},Uye=function(dye){l1e(dye)},Qye=function(dye){lye(dye),l0e("cell")},Sye=function(dye){o0e(!0),mye(dye)},jye=function(dye){L0e("panel");var Yye=wme?Zme($0e(),dye):[dye];C0e(Yye),!fme&&!zP&&$P===M0e&&f0e()},qye=function(){o0e(!1)},Rye=useCellRender(Xme,e0e,Ume),Aye=React__namespace.useMemo(function(){var bye=pickAttrs(B_,!1),dye=omit(B_,[].concat(_toConsumableArray(Object.keys(bye)),["onChange","onCalendarChange","style","className","onPanelChange"]));return _objectSpread2(_objectSpread2({},dye),{},{multiple:B_.multiple})},[B_]),Oye=React__namespace.createElement(Popup,_extends({},Aye,{showNow:J0e,showTime:$me,disabledDate:gme,onFocus:Sye,onBlur:Q0e,picker:Tme,mode:V0e,internalMode:M0e,onPanelChange:n0e,format:tme,value:D0e,isInvalid:nme,onChange:null,onSelect:jye,pickerValue:R0e,defaultOpenValue:$me==null?void 0:$me.defaultOpenValue,onPickerValueChange:A0e,hoverValue:Tye,onHover:Qye,needConfirm:fme,onSubmit:f0e,onOk:z0e,presets:Dye,onPresetHover:Lye,onPresetSubmit:l1e,onNow:Uye,cellRender:Rye})),fye=function(dye){C0e(dye)},gye=function(){L0e("input")},Hye=function(dye){L0e("input"),o0e(!0,{inherit:!0}),mye(dye)},Xye=function(dye){o0e(!1),Q0e(dye)},Wye=function(dye,Yye){dye.key==="Tab"&&f0e(),hme==null||hme(dye,Yye)},n1e=React__namespace.useMemo(function(){return{prefixCls:ame,locale:Cme,generateConfig:Eme,button:Vme.button,input:Vme.input}},[ame,Cme,Eme,Vme.button,Vme.input]);return useLayoutEffect$1(function(){t0e&&Y0e!==void 0&&n0e(null,Tme,!1)},[t0e,Y0e,Tme]),useLayoutEffect$1(function(){var bye=L0e();!t0e&&bye==="input"&&(o0e(!1),f0e()),!t0e&&zP&&!fme&&bye==="panel"&&(o0e(!0),f0e())},[t0e]),React__namespace.createElement(PickerContext.Provider,{value:n1e},React__namespace.createElement(PickerTrigger,_extends({},pickTriggerProps(B_),{popupElement:Oye,popupStyle:ome.popup,popupClassName:ime.popup,visible:t0e,onClose:qye}),React__namespace.createElement(RefSingleSelector,_extends({},B_,{ref:s0e,suffixIcon:kme,removeIcon:Lme,activeHelp:!!Z0e,allHelp:!!Z0e&&Yme==="preset",focused:k0e,onFocus:Hye,onBlur:Xye,onKeyDown:Wye,onSubmit:f0e,value:xye,maskFormat:tme,onChange:fye,onInputChange:gye,internalPicker:$P,format:eme,inputReadOnly:Bme,disabled:pme,open:t0e,onOpenChange:o0e,onClick:m0e,onClear:w0e,invalid:wye,onInvalid:function(dye){hye(dye,0)}}))))}var RefPicker=React__namespace.forwardRef(Picker);process.env.NODE_ENV!=="production"&&(RefPicker.displayName="RefPicker");const RadioGroupContext=React__namespace.createContext(null),RadioGroupContextProvider=RadioGroupContext.Provider,RadioOptionTypeContext=React__namespace.createContext(null),RadioOptionTypeContextProvider=RadioOptionTypeContext.Provider;var _excluded$j=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Checkbox$3=React.forwardRef(function(Ff,kh){var x_=Ff.prefixCls,$_=x_===void 0?"rc-checkbox":x_,B_=Ff.className,$P=Ff.style,zP=Ff.checked,eme=Ff.disabled,tme=Ff.defaultChecked,nme=tme===void 0?!1:tme,rme=Ff.type,ame=rme===void 0?"checkbox":rme,ome=Ff.title,ime=Ff.onChange,cme=_objectWithoutProperties(Ff,_excluded$j),ume=React.useRef(null),sme=React.useRef(null),fme=useMergedState(nme,{value:zP}),lme=_slicedToArray(fme,2),hme=lme[0],pme=lme[1];React.useImperativeHandle(kh,function(){return{focus:function(bme){var Sme;(Sme=ume.current)===null||Sme===void 0||Sme.focus(bme)},blur:function(){var bme;(bme=ume.current)===null||bme===void 0||bme.blur()},input:ume.current,nativeElement:sme.current}});var gme=classNames($_,B_,_defineProperty(_defineProperty({},"".concat($_,"-checked"),hme),"".concat($_,"-disabled"),eme)),yme=function(bme){eme||("checked"in Ff||pme(bme.target.checked),ime==null||ime({target:_objectSpread2(_objectSpread2({},Ff),{},{type:ame,checked:bme.target.checked}),stopPropagation:function(){bme.stopPropagation()},preventDefault:function(){bme.preventDefault()},nativeEvent:bme.nativeEvent}))};return React__namespace.createElement("span",{className:gme,title:ome,style:$P,ref:sme},React__namespace.createElement("input",_extends({},cme,{className:"".concat($_,"-input"),ref:ume,onChange:yme,disabled:eme,checked:!!hme,type:ame})),React__namespace.createElement("span",{className:"".concat($_,"-inner")}))});const getGroupRadioStyle=Ff=>{const{componentCls:kh,antCls:x_}=Ff,$_=`${kh}-group`;return{[$_]:Object.assign(Object.assign({},resetComponent(Ff)),{display:"inline-block",fontSize:0,[`&${$_}-rtl`]:{direction:"rtl"},[`${x_}-badge ${x_}-badge-count`]:{zIndex:1},[`> ${x_}-badge:not(:first-child) > ${x_}-button-wrapper`]:{borderInlineStart:"none"}})}},getRadioBasicStyle=Ff=>{const{componentCls:kh,wrapperMarginInlineEnd:x_,colorPrimary:$_,radioSize:B_,motionDurationSlow:$P,motionDurationMid:zP,motionEaseInOutCirc:eme,colorBgContainer:tme,colorBorder:nme,lineWidth:rme,colorBgContainerDisabled:ame,colorTextDisabled:ome,paddingXS:ime,dotColorDisabled:cme,lineType:ume,radioColor:sme,radioBgColor:fme,calc:lme}=Ff,hme=`${kh}-inner`,gme=lme(B_).sub(lme(4).mul(2)),yme=lme(1).mul(B_).equal({unit:!0});return{[`${kh}-wrapper`]:Object.assign(Object.assign({},resetComponent(Ff)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:x_,cursor:"pointer",[`&${kh}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Ff.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${kh}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${unit$1(rme)} ${ume} ${$_}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[kh]:Object.assign(Object.assign({},resetComponent(Ff)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${kh}-wrapper:hover &,
221
221
  &:hover ${hme}`]:{borderColor:$_},[`${kh}-input:focus-visible + ${hme}`]:Object.assign({},genFocusOutline(Ff)),[`${kh}:hover::after, ${kh}-wrapper:hover &::after`]:{visibility:"visible"},[`${kh}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:yme,height:yme,marginBlockStart:lme(1).mul(B_).div(-2).equal({unit:!0}),marginInlineStart:lme(1).mul(B_).div(-2).equal({unit:!0}),backgroundColor:sme,borderBlockStart:0,borderInlineStart:0,borderRadius:yme,transform:"scale(0)",opacity:0,transition:`all ${$P} ${eme}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:yme,height:yme,backgroundColor:tme,borderColor:nme,borderStyle:"solid",borderWidth:rme,borderRadius:"50%",transition:`all ${zP}`},[`${kh}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${kh}-checked`]:{[hme]:{borderColor:$_,backgroundColor:fme,"&::after":{transform:`scale(${Ff.calc(Ff.dotSize).div(B_).equal()})`,opacity:1,transition:`all ${$P} ${eme}`}}},[`${kh}-disabled`]:{cursor:"not-allowed",[hme]:{backgroundColor:ame,borderColor:nme,cursor:"not-allowed","&::after":{backgroundColor:cme}},[`${kh}-input`]:{cursor:"not-allowed"},[`${kh}-disabled + span`]:{color:ome,cursor:"not-allowed"},[`&${kh}-checked`]:{[hme]:{"&::after":{transform:`scale(${lme(gme).div(B_).equal()})`}}}},[`span${kh} + *`]:{paddingInlineStart:ime,paddingInlineEnd:ime}})}},getRadioButtonStyle=Ff=>{const{buttonColor:kh,controlHeight:x_,componentCls:$_,lineWidth:B_,lineType:$P,colorBorder:zP,motionDurationSlow:eme,motionDurationMid:tme,buttonPaddingInline:nme,fontSize:rme,buttonBg:ame,fontSizeLG:ome,controlHeightLG:ime,controlHeightSM:cme,paddingXS:ume,borderRadius:sme,borderRadiusSM:fme,borderRadiusLG:lme,buttonCheckedBg:hme,buttonSolidCheckedColor:pme,colorTextDisabled:gme,colorBgContainerDisabled:yme,buttonCheckedBgDisabled:mme,buttonCheckedColorDisabled:bme,colorPrimary:Sme,colorPrimaryHover:_me,colorPrimaryActive:Cme,buttonSolidCheckedBg:Eme,buttonSolidCheckedHoverBg:Tme,buttonSolidCheckedActiveBg:Rme,calc:Pme}=Ff;return{[`${$_}-button-wrapper`]:{position:"relative",display:"inline-block",height:x_,margin:0,paddingInline:nme,paddingBlock:0,color:kh,fontSize:rme,lineHeight:unit$1(Pme(x_).sub(Pme(B_).mul(2)).equal()),background:ame,border:`${unit$1(B_)} ${$P} ${zP}`,borderBlockStartWidth:Pme(B_).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:B_,cursor:"pointer",transition:[`color ${tme}`,`background ${tme}`,`box-shadow ${tme}`].join(","),a:{color:kh},[`> ${$_}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:Pme(B_).mul(-1).equal(),insetInlineStart:Pme(B_).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:B_,paddingInline:0,backgroundColor:zP,transition:`background-color ${eme}`,content:'""'}},"&:first-child":{borderInlineStart:`${unit$1(B_)} ${$P} ${zP}`,borderStartStartRadius:sme,borderEndStartRadius:sme},"&:last-child":{borderStartEndRadius:sme,borderEndEndRadius:sme},"&:first-child:last-child":{borderRadius:sme},[`${$_}-group-large &`]:{height:ime,fontSize:ome,lineHeight:unit$1(Pme(ime).sub(Pme(B_).mul(2)).equal()),"&:first-child":{borderStartStartRadius:lme,borderEndStartRadius:lme},"&:last-child":{borderStartEndRadius:lme,borderEndEndRadius:lme}},[`${$_}-group-small &`]:{height:cme,paddingInline:Pme(ume).sub(B_).equal(),paddingBlock:0,lineHeight:unit$1(Pme(cme).sub(Pme(B_).mul(2)).equal()),"&:first-child":{borderStartStartRadius:fme,borderEndStartRadius:fme},"&:last-child":{borderStartEndRadius:fme,borderEndEndRadius:fme}},"&:hover":{position:"relative",color:Sme},"&:has(:focus-visible)":Object.assign({},genFocusOutline(Ff)),[`${$_}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${$_}-button-wrapper-disabled)`]:{zIndex:1,color:Sme,background:hme,borderColor:Sme,"&::before":{backgroundColor:Sme},"&:first-child":{borderColor:Sme},"&:hover":{color:_me,borderColor:_me,"&::before":{backgroundColor:_me}},"&:active":{color:Cme,borderColor:Cme,"&::before":{backgroundColor:Cme}}},[`${$_}-group-solid &-checked:not(${$_}-button-wrapper-disabled)`]:{color:pme,background:Eme,borderColor:Eme,"&:hover":{color:pme,background:Tme,borderColor:Tme},"&:active":{color:pme,background:Rme,borderColor:Rme}},"&-disabled":{color:gme,backgroundColor:yme,borderColor:zP,cursor:"not-allowed","&:first-child, &:hover":{color:gme,backgroundColor:yme,borderColor:zP}},[`&-disabled${$_}-button-wrapper-checked`]:{color:bme,backgroundColor:mme,borderColor:zP,boxShadow:"none"}}}},prepareComponentToken$9=Ff=>{const{wireframe:kh,padding:x_,marginXS:$_,lineWidth:B_,fontSizeLG:$P,colorText:zP,colorBgContainer:eme,colorTextDisabled:tme,controlItemBgActiveDisabled:nme,colorTextLightSolid:rme,colorPrimary:ame,colorPrimaryHover:ome,colorPrimaryActive:ime,colorWhite:cme}=Ff,ume=4,sme=$P,fme=kh?sme-ume*2:sme-(ume+B_)*2;return{radioSize:sme,dotSize:fme,dotColorDisabled:tme,buttonSolidCheckedColor:rme,buttonSolidCheckedBg:ame,buttonSolidCheckedHoverBg:ome,buttonSolidCheckedActiveBg:ime,buttonBg:eme,buttonCheckedBg:eme,buttonColor:zP,buttonCheckedBgDisabled:nme,buttonCheckedColorDisabled:tme,buttonPaddingInline:x_-B_,wrapperMarginInlineEnd:$_,radioColor:kh?ame:cme,radioBgColor:kh?eme:ame}},useStyle$c=genStyleHooks("Radio",Ff=>{const{controlOutline:kh,controlOutlineWidth:x_}=Ff,$_=`0 0 0 ${unit$1(x_)} ${kh}`,$P=merge(Ff,{radioFocusShadow:$_,radioButtonFocusShadow:$_});return[getGroupRadioStyle($P),getRadioBasicStyle($P),getRadioButtonStyle($P)]},prepareComponentToken$9,{unitless:{radioSize:!0,dotSize:!0}});var __rest$r=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const InternalRadio=(Ff,kh)=>{var x_,$_;const B_=React__namespace.useContext(RadioGroupContext),$P=React__namespace.useContext(RadioOptionTypeContext),{getPrefixCls:zP,direction:eme,radio:tme}=React__namespace.useContext(ConfigContext),nme=React__namespace.useRef(null),rme=composeRef(kh,nme),{isFormItemInput:ame}=React__namespace.useContext(FormItemInputContext);if(process.env.NODE_ENV!=="production"){const Rme=devUseWarning("Radio");process.env.NODE_ENV!=="production"&&Rme(!("optionType"in Ff),"usage","`optionType` is only support in Radio.Group.")}const ome=Rme=>{var Pme,$me;(Pme=Ff.onChange)===null||Pme===void 0||Pme.call(Ff,Rme),($me=B_==null?void 0:B_.onChange)===null||$me===void 0||$me.call(B_,Rme)},{prefixCls:ime,className:cme,rootClassName:ume,children:sme,style:fme,title:lme}=Ff,hme=__rest$r(Ff,["prefixCls","className","rootClassName","children","style","title"]),pme=zP("radio",ime),gme=((B_==null?void 0:B_.optionType)||$P)==="button",yme=gme?`${pme}-button`:pme,mme=useCSSVarCls(pme),[bme,Sme,_me]=useStyle$c(pme,mme),Cme=Object.assign({},hme),Eme=React__namespace.useContext(DisabledContext);B_&&(Cme.name=B_.name,Cme.onChange=ome,Cme.checked=Ff.value===B_.value,Cme.disabled=(x_=Cme.disabled)!==null&&x_!==void 0?x_:B_.disabled),Cme.disabled=($_=Cme.disabled)!==null&&$_!==void 0?$_:Eme;const Tme=classNames(`${yme}-wrapper`,{[`${yme}-wrapper-checked`]:Cme.checked,[`${yme}-wrapper-disabled`]:Cme.disabled,[`${yme}-wrapper-rtl`]:eme==="rtl",[`${yme}-wrapper-in-form-item`]:ame},tme==null?void 0:tme.className,cme,ume,Sme,_me,mme);return bme(React__namespace.createElement(Wave,{component:"Radio",disabled:Cme.disabled},React__namespace.createElement("label",{className:Tme,style:Object.assign(Object.assign({},tme==null?void 0:tme.style),fme),onMouseEnter:Ff.onMouseEnter,onMouseLeave:Ff.onMouseLeave,title:lme},React__namespace.createElement(Checkbox$3,Object.assign({},Cme,{className:classNames(Cme.className,!gme&&TARGET_CLS),type:"radio",prefixCls:yme,ref:rme})),sme!==void 0?React__namespace.createElement("span",null,sme):null)))},Radio$1=React__namespace.forwardRef(InternalRadio);process.env.NODE_ENV!=="production"&&(Radio$1.displayName="Radio");const RadioGroup$1=React__namespace.forwardRef((Ff,kh)=>{const{getPrefixCls:x_,direction:$_}=React__namespace.useContext(ConfigContext),[B_,$P]=useMergedState(Ff.defaultValue,{value:Ff.value}),zP=Rme=>{const Pme=B_,$me=Rme.target.value;"value"in Ff||$P($me);const{onChange:Dme}=Ff;Dme&&$me!==Pme&&Dme(Rme)},{prefixCls:eme,className:tme,rootClassName:nme,options:rme,buttonStyle:ame="outline",disabled:ome,children:ime,size:cme,style:ume,id:sme,onMouseEnter:fme,onMouseLeave:lme,onFocus:hme,onBlur:pme}=Ff,gme=x_("radio",eme),yme=`${gme}-group`,mme=useCSSVarCls(gme),[bme,Sme,_me]=useStyle$c(gme,mme);let Cme=ime;rme&&rme.length>0&&(Cme=rme.map(Rme=>typeof Rme=="string"||typeof Rme=="number"?React__namespace.createElement(Radio$1,{key:Rme.toString(),prefixCls:gme,disabled:ome,value:Rme,checked:B_===Rme},Rme):React__namespace.createElement(Radio$1,{key:`radio-group-value-options-${Rme.value}`,prefixCls:gme,disabled:Rme.disabled||ome,value:Rme.value,checked:B_===Rme.value,title:Rme.title,style:Rme.style,id:Rme.id,required:Rme.required},Rme.label)));const Eme=useSize(cme),Tme=classNames(yme,`${yme}-${ame}`,{[`${yme}-${Eme}`]:Eme,[`${yme}-rtl`]:$_==="rtl"},tme,nme,Sme,_me,mme);return bme(React__namespace.createElement("div",Object.assign({},pickAttrs(Ff,{aria:!0,data:!0}),{className:Tme,style:ume,onMouseEnter:fme,onMouseLeave:lme,onFocus:hme,onBlur:pme,id:sme,ref:kh}),React__namespace.createElement(RadioGroupContextProvider,{value:{onChange:zP,value:B_,disabled:Ff.disabled,name:Ff.name,optionType:Ff.optionType}},Cme)))}),Group$2=React__namespace.memo(RadioGroup$1);var __rest$q=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const RadioButton=(Ff,kh)=>{const{getPrefixCls:x_}=React__namespace.useContext(ConfigContext),{prefixCls:$_}=Ff,B_=__rest$q(Ff,["prefixCls"]),$P=x_("radio",$_);return React__namespace.createElement(RadioOptionTypeContextProvider,{value:"button"},React__namespace.createElement(Radio$1,Object.assign({prefixCls:$P},B_,{type:"radio",ref:kh})))},Button=React__namespace.forwardRef(RadioButton),Radio=Radio$1;Radio.Button=Button;Radio.Group=Group$2;Radio.__ANT_RADIO=!0;function initInputToken(Ff){return merge(Ff,{inputAffixPadding:Ff.paddingXXS})}const initComponentToken$1=Ff=>{const{controlHeight:kh,fontSize:x_,lineHeight:$_,lineWidth:B_,controlHeightSM:$P,controlHeightLG:zP,fontSizeLG:eme,lineHeightLG:tme,paddingSM:nme,controlPaddingHorizontalSM:rme,controlPaddingHorizontal:ame,colorFillAlter:ome,colorPrimaryHover:ime,colorPrimary:cme,controlOutlineWidth:ume,controlOutline:sme,colorErrorOutline:fme,colorWarningOutline:lme,colorBgContainer:hme}=Ff;return{paddingBlock:Math.max(Math.round((kh-x_*$_)/2*10)/10-B_,0),paddingBlockSM:Math.max(Math.round(($P-x_*$_)/2*10)/10-B_,0),paddingBlockLG:Math.ceil((zP-eme*tme)/2*10)/10-B_,paddingInline:nme-B_,paddingInlineSM:rme-B_,paddingInlineLG:ame-B_,addonBg:ome,activeBorderColor:cme,hoverBorderColor:ime,activeShadow:`0 0 0 ${ume}px ${sme}`,errorActiveShadow:`0 0 0 ${ume}px ${fme}`,warningActiveShadow:`0 0 0 ${ume}px ${lme}`,hoverBg:hme,activeBg:hme,inputFontSize:x_,inputFontSizeLG:eme,inputFontSizeSM:x_}},genHoverStyle=Ff=>({borderColor:Ff.hoverBorderColor,backgroundColor:Ff.hoverBg}),genDisabledStyle=Ff=>({color:Ff.colorTextDisabled,backgroundColor:Ff.colorBgContainerDisabled,borderColor:Ff.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},genHoverStyle(merge(Ff,{hoverBorderColor:Ff.colorBorder,hoverBg:Ff.colorBgContainerDisabled})))}),genBaseOutlinedStyle=(Ff,kh)=>({background:Ff.colorBgContainer,borderWidth:Ff.lineWidth,borderStyle:Ff.lineType,borderColor:kh.borderColor,"&:hover":{borderColor:kh.hoverBorderColor,backgroundColor:Ff.hoverBg},"&:focus, &:focus-within":{borderColor:kh.activeBorderColor,boxShadow:kh.activeShadow,outline:0,backgroundColor:Ff.activeBg}}),genOutlinedStatusStyle=(Ff,kh)=>({[`&${Ff.componentCls}-status-${kh.status}:not(${Ff.componentCls}-disabled)`]:Object.assign(Object.assign({},genBaseOutlinedStyle(Ff,kh)),{[`${Ff.componentCls}-prefix, ${Ff.componentCls}-suffix`]:{color:kh.affixColor}}),[`&${Ff.componentCls}-status-${kh.status}${Ff.componentCls}-disabled`]:{borderColor:kh.borderColor}}),genOutlinedStyle=(Ff,kh)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},genBaseOutlinedStyle(Ff,{borderColor:Ff.colorBorder,hoverBorderColor:Ff.hoverBorderColor,activeBorderColor:Ff.activeBorderColor,activeShadow:Ff.activeShadow})),{[`&${Ff.componentCls}-disabled, &[disabled]`]:Object.assign({},genDisabledStyle(Ff))}),genOutlinedStatusStyle(Ff,{status:"error",borderColor:Ff.colorError,hoverBorderColor:Ff.colorErrorBorderHover,activeBorderColor:Ff.colorError,activeShadow:Ff.errorActiveShadow,affixColor:Ff.colorError})),genOutlinedStatusStyle(Ff,{status:"warning",borderColor:Ff.colorWarning,hoverBorderColor:Ff.colorWarningBorderHover,activeBorderColor:Ff.colorWarning,activeShadow:Ff.warningActiveShadow,affixColor:Ff.colorWarning})),kh)}),genOutlinedGroupStatusStyle=(Ff,kh)=>({[`&${Ff.componentCls}-group-wrapper-status-${kh.status}`]:{[`${Ff.componentCls}-group-addon`]:{borderColor:kh.addonBorderColor,color:kh.addonColor}}}),genOutlinedGroupStyle=Ff=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${Ff.componentCls}-group`]:{"&-addon":{background:Ff.addonBg,border:`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},genOutlinedGroupStatusStyle(Ff,{status:"error",addonBorderColor:Ff.colorError,addonColor:Ff.colorErrorText})),genOutlinedGroupStatusStyle(Ff,{status:"warning",addonBorderColor:Ff.colorWarning,addonColor:Ff.colorWarningText})),{[`&${Ff.componentCls}-group-wrapper-disabled`]:{[`${Ff.componentCls}-group-addon`]:Object.assign({},genDisabledStyle(Ff))}})}),genBorderlessStyle=(Ff,kh)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${Ff.componentCls}-disabled, &[disabled]`]:{color:Ff.colorTextDisabled}},kh)}),genBaseFilledStyle=(Ff,kh)=>({background:kh.bg,borderWidth:Ff.lineWidth,borderStyle:Ff.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:kh==null?void 0:kh.inputColor},"&:hover":{background:kh.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:kh.activeBorderColor,backgroundColor:Ff.activeBg}}),genFilledStatusStyle=(Ff,kh)=>({[`&${Ff.componentCls}-status-${kh.status}:not(${Ff.componentCls}-disabled)`]:Object.assign(Object.assign({},genBaseFilledStyle(Ff,kh)),{[`${Ff.componentCls}-prefix, ${Ff.componentCls}-suffix`]:{color:kh.affixColor}})}),genFilledStyle=(Ff,kh)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},genBaseFilledStyle(Ff,{bg:Ff.colorFillTertiary,hoverBg:Ff.colorFillSecondary,activeBorderColor:Ff.colorPrimary})),{[`&${Ff.componentCls}-disabled, &[disabled]`]:Object.assign({},genDisabledStyle(Ff))}),genFilledStatusStyle(Ff,{status:"error",bg:Ff.colorErrorBg,hoverBg:Ff.colorErrorBgHover,activeBorderColor:Ff.colorError,inputColor:Ff.colorErrorText,affixColor:Ff.colorError})),genFilledStatusStyle(Ff,{status:"warning",bg:Ff.colorWarningBg,hoverBg:Ff.colorWarningBgHover,activeBorderColor:Ff.colorWarning,inputColor:Ff.colorWarningText,affixColor:Ff.colorWarning})),kh)}),genFilledGroupStatusStyle=(Ff,kh)=>({[`&${Ff.componentCls}-group-wrapper-status-${kh.status}`]:{[`${Ff.componentCls}-group-addon`]:{background:kh.addonBg,color:kh.addonColor}}}),genFilledGroupStyle=Ff=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${Ff.componentCls}-group`]:{"&-addon":{background:Ff.colorFillTertiary},[`${Ff.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.colorSplit}`}}}},genFilledGroupStatusStyle(Ff,{status:"error",addonBg:Ff.colorErrorBg,addonColor:Ff.colorErrorText})),genFilledGroupStatusStyle(Ff,{status:"warning",addonBg:Ff.colorWarningBg,addonColor:Ff.colorWarningText})),{[`&${Ff.componentCls}-group-wrapper-disabled`]:{[`${Ff.componentCls}-group`]:{"&-addon":{background:Ff.colorFillTertiary,color:Ff.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.colorBorder}`,borderTop:`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.colorBorder}`,borderBottom:`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.colorBorder}`,borderTop:`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.colorBorder}`,borderBottom:`${unit$1(Ff.lineWidth)} ${Ff.lineType} ${Ff.colorBorder}`}}}})}),genPlaceholderStyle=Ff=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Ff,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),genInputLargeStyle=Ff=>{const{paddingBlockLG:kh,lineHeightLG:x_,borderRadiusLG:$_,paddingInlineLG:B_}=Ff;return{padding:`${unit$1(kh)} ${unit$1(B_)}`,fontSize:Ff.inputFontSizeLG,lineHeight:x_,borderRadius:$_}},genInputSmallStyle=Ff=>({padding:`${unit$1(Ff.paddingBlockSM)} ${unit$1(Ff.paddingInlineSM)}`,fontSize:Ff.inputFontSizeSM,borderRadius:Ff.borderRadiusSM}),genBasicInputStyle=Ff=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${unit$1(Ff.paddingBlock)} ${unit$1(Ff.paddingInline)}`,color:Ff.colorText,fontSize:Ff.inputFontSize,lineHeight:Ff.lineHeight,borderRadius:Ff.borderRadius,transition:`all ${Ff.motionDurationMid}`},genPlaceholderStyle(Ff.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:Ff.controlHeight,lineHeight:Ff.lineHeight,verticalAlign:"bottom",transition:`all ${Ff.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},genInputLargeStyle(Ff)),"&-sm":Object.assign({},genInputSmallStyle(Ff)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),genInputGroupStyle=Ff=>{const{componentCls:kh,antCls:x_}=Ff;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:Ff.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${kh}, &-lg > ${kh}-group-addon`]:Object.assign({},genInputLargeStyle(Ff)),[`&-sm ${kh}, &-sm > ${kh}-group-addon`]:Object.assign({},genInputSmallStyle(Ff)),[`&-lg ${x_}-select-single ${x_}-select-selector`]:{height:Ff.controlHeightLG},[`&-sm ${x_}-select-single ${x_}-select-selector`]:{height:Ff.controlHeightSM},[`> ${kh}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${kh}-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 ${unit$1(Ff.paddingInline)}`,color:Ff.colorText,fontWeight:"normal",fontSize:Ff.inputFontSize,textAlign:"center",borderRadius:Ff.borderRadius,transition:`all ${Ff.motionDurationSlow}`,lineHeight:1,[`${x_}-select`]:{margin:`${unit$1(Ff.calc(Ff.paddingBlock).add(1).mul(-1).equal())} ${unit$1(Ff.calc(Ff.paddingInline).mul(-1).equal())}`,[`&${x_}-select-single:not(${x_}-select-customize-input):not(${x_}-pagination-size-changer)`]:{[`${x_}-select-selector`]:{backgroundColor:"inherit",border:`${unit$1(Ff.lineWidth)} ${Ff.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${x_}-select-selector`]:{color:Ff.colorPrimary}}},[`${x_}-cascader-picker`]:{margin:`-9px ${unit$1(Ff.calc(Ff.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${x_}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${kh}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${kh}-search-with-button &`]:{zIndex:0}}},[`> ${kh}:first-child, ${kh}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${x_}-select ${x_}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${kh}-affix-wrapper`]:{[`&:not(:first-child) ${kh}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${kh}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${kh}:last-child, ${kh}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${x_}-select ${x_}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${kh}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${kh}-search &`]:{borderStartStartRadius:Ff.borderRadius,borderEndStartRadius:Ff.borderRadius}},[`&:not(:first-child), ${kh}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${kh}-group-compact`]:Object.assign(Object.assign({display:"block"},clearFix()),{[`${kh}-group-addon, ${kh}-group-wrap, > ${kh}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Ff.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
222
222
  & > ${kh}-affix-wrapper,
223
223
  & > ${kh}-number-affix-wrapper,
@@ -293,7 +293,7 @@ html body {
293
293
  ${$_}-col-24${x_}-label,
294
294
  ${$_}-col-xl-24${x_}-label`]:makeVerticalLayoutLabel(Ff)}},[`@media (max-width: ${unit$1(Ff.screenXSMax)})`]:[makeVerticalLayout(Ff),{[kh]:{[`${x_}:not(${x_}-horizontal)`]:{[`${$_}-col-xs-24${x_}-label`]:makeVerticalLayoutLabel(Ff)}}}],[`@media (max-width: ${unit$1(Ff.screenSMMax)})`]:{[kh]:{[`${x_}:not(${x_}-horizontal)`]:{[`${$_}-col-sm-24${x_}-label`]:makeVerticalLayoutLabel(Ff)}}},[`@media (max-width: ${unit$1(Ff.screenMDMax)})`]:{[kh]:{[`${x_}:not(${x_}-horizontal)`]:{[`${$_}-col-md-24${x_}-label`]:makeVerticalLayoutLabel(Ff)}}},[`@media (max-width: ${unit$1(Ff.screenLGMax)})`]:{[kh]:{[`${x_}:not(${x_}-horizontal)`]:{[`${$_}-col-lg-24${x_}-label`]:makeVerticalLayoutLabel(Ff)}}}}},genItemVerticalStyle=Ff=>{const{formItemCls:kh,antCls:x_}=Ff;return{[`${kh}-vertical`]:{[`${kh}-row`]:{flexDirection:"column"},[`${kh}-label > label`]:{height:"auto"},[`${kh}-control`]:{width:"100%"}},[`${kh}-vertical ${kh}-label,
295
295
  ${x_}-col-24${kh}-label,
296
- ${x_}-col-xl-24${kh}-label`]:makeVerticalLayoutLabel(Ff),[`@media (max-width: ${unit$1(Ff.screenXSMax)})`]:[makeVerticalLayout(Ff),{[kh]:{[`${x_}-col-xs-24${kh}-label`]:makeVerticalLayoutLabel(Ff)}}],[`@media (max-width: ${unit$1(Ff.screenSMMax)})`]:{[kh]:{[`${x_}-col-sm-24${kh}-label`]:makeVerticalLayoutLabel(Ff)}},[`@media (max-width: ${unit$1(Ff.screenMDMax)})`]:{[kh]:{[`${x_}-col-md-24${kh}-label`]:makeVerticalLayoutLabel(Ff)}},[`@media (max-width: ${unit$1(Ff.screenLGMax)})`]:{[kh]:{[`${x_}-col-lg-24${kh}-label`]:makeVerticalLayoutLabel(Ff)}}}},prepareComponentToken$6=Ff=>({labelRequiredMarkColor:Ff.colorError,labelColor:Ff.colorTextHeading,labelFontSize:Ff.fontSize,labelHeight:Ff.controlHeight,labelColonMarginInlineStart:Ff.marginXXS/2,labelColonMarginInlineEnd:Ff.marginXS,itemMarginBottom:Ff.marginLG,verticalLabelPadding:`0 0 ${Ff.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),prepareToken=(Ff,kh)=>merge(Ff,{formItemCls:`${Ff.componentCls}-item`,rootPrefixCls:kh}),useStyle$6=genStyleHooks("Form",(Ff,kh)=>{let{rootPrefixCls:x_}=kh;const $_=prepareToken(Ff,x_);return[genFormStyle($_),genFormItemStyle($_),genFormValidateMotionStyle($_),genHorizontalStyle($_,$_.componentCls),genHorizontalStyle($_,$_.formItemCls),genInlineStyle($_),genVerticalStyle($_),genItemVerticalStyle($_),genCollapseMotion($_),zoomIn]},prepareComponentToken$6,{order:-1e3}),EMPTY_LIST=[];function toErrorEntity(Ff,kh,x_){let $_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ff=="string"?Ff:`${kh}-${$_}`,error:Ff,errorStatus:x_}}const ErrorList=Ff=>{let{help:kh,helpStatus:x_,errors:$_=EMPTY_LIST,warnings:B_=EMPTY_LIST,className:$P,fieldId:zP,onVisibleChanged:eme}=Ff;const{prefixCls:tme}=React__namespace.useContext(FormItemPrefixContext),nme=`${tme}-item-explain`,rme=useCSSVarCls(tme),[ame,ome,ime]=useStyle$6(tme,rme),cme=React.useMemo(()=>initCollapseMotion(tme),[tme]),ume=useDebounce($_),sme=useDebounce(B_),fme=React__namespace.useMemo(()=>kh!=null?[toErrorEntity(kh,"help",x_)]:[].concat(_toConsumableArray(ume.map((hme,pme)=>toErrorEntity(hme,"error","error",pme))),_toConsumableArray(sme.map((hme,pme)=>toErrorEntity(hme,"warning","warning",pme)))),[kh,x_,ume,sme]),lme={};return zP&&(lme.id=`${zP}_help`),ame(React__namespace.createElement(CSSMotion,{motionDeadline:cme.motionDeadline,motionName:`${tme}-show-help`,visible:!!fme.length,onVisibleChanged:eme},hme=>{const{className:pme,style:gme}=hme;return React__namespace.createElement("div",Object.assign({},lme,{className:classNames(nme,pme,ime,rme,$P,ome),style:gme,role:"alert"}),React__namespace.createElement(CSSMotionList,Object.assign({keys:fme},initCollapseMotion(tme),{motionName:`${tme}-show-help-item`,component:!1}),yme=>{const{key:mme,error:bme,errorStatus:Sme,className:_me,style:Cme}=yme;return React__namespace.createElement("div",{key:mme,className:classNames(_me,{[`${nme}-${Sme}`]:Sme}),style:Cme},bme)}))}))},formItemNameBlackList=["parentNode"],defaultItemNamePrefixCls="form_item";function toArray$2(Ff){return Ff===void 0||Ff===!1?[]:Array.isArray(Ff)?Ff:[Ff]}function getFieldId(Ff,kh){if(!Ff.length)return;const x_=Ff.join("_");return kh?`${kh}_${x_}`:formItemNameBlackList.includes(x_)?`${defaultItemNamePrefixCls}_${x_}`:x_}function getStatus(Ff,kh,x_,$_,B_,$P){let zP=$_;return $P!==void 0?zP=$P:x_.validating?zP="validating":Ff.length?zP="error":kh.length?zP="warning":(x_.touched||B_&&x_.validated)&&(zP="success"),zP}function toNamePathStr(Ff){return toArray$2(Ff).join("_")}function getFieldDOMNode(Ff,kh){const x_=kh.getFieldInstance(Ff),$_=getDOM(x_);if($_)return $_;const B_=getFieldId(toArray$2(Ff),kh.__INTERNAL__.name);if(B_)return document.getElementById(B_)}function useForm(Ff){const[kh]=useForm$1(),x_=React__namespace.useRef({}),$_=React__namespace.useMemo(()=>Ff??Object.assign(Object.assign({},kh),{__INTERNAL__:{itemRef:B_=>$P=>{const zP=toNamePathStr(B_);$P?x_.current[zP]=$P:delete x_.current[zP]}},scrollToField:function(B_){let $P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const zP=getFieldDOMNode(B_,$_);zP&&e$1(zP,Object.assign({scrollMode:"if-needed",block:"nearest"},$P))},getFieldInstance:B_=>{const $P=toNamePathStr(B_);return x_.current[$P]}}),[Ff,kh]);return[$_]}const names={};function useFormWarning(Ff){let{name:kh}=Ff;const x_=devUseWarning("Form");React.useEffect(()=>{if(kh)return names[kh]=(names[kh]||0)+1,process.env.NODE_ENV!=="production"&&x_(names[kh]<=1,"usage","There exist multiple Form with same `name`."),()=>{names[kh]-=1}},[kh])}var __rest$c=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const InternalForm=(Ff,kh)=>{const x_=React__namespace.useContext(DisabledContext),{getPrefixCls:$_,direction:B_,form:$P}=React__namespace.useContext(ConfigContext),{prefixCls:zP,className:eme,rootClassName:tme,size:nme,disabled:rme=x_,form:ame,colon:ome,labelAlign:ime,labelWrap:cme,labelCol:ume,wrapperCol:sme,hideRequiredMark:fme,layout:lme="horizontal",scrollToFirstError:hme,requiredMark:pme,onFinishFailed:gme,name:yme,style:mme,feedbackIcons:bme,variant:Sme}=Ff,_me=__rest$c(Ff,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Cme=useSize(nme),Eme=React__namespace.useContext(ValidateMessagesContext);process.env.NODE_ENV!=="production"&&useFormWarning(Ff);const Tme=React.useMemo(()=>pme!==void 0?pme:fme?!1:$P&&$P.requiredMark!==void 0?$P.requiredMark:!0,[fme,pme,$P]),Rme=ome??($P==null?void 0:$P.colon),Pme=$_("form",zP),$me=useCSSVarCls(Pme),[Dme,Mme,Nme]=useStyle$6(Pme,$me),Ime=classNames(Pme,`${Pme}-${lme}`,{[`${Pme}-hide-required-mark`]:Tme===!1,[`${Pme}-rtl`]:B_==="rtl",[`${Pme}-${Cme}`]:Cme},Nme,$me,Mme,$P==null?void 0:$P.className,eme,tme),[wme]=useForm(ame),{__INTERNAL__:Ome}=wme;Ome.name=yme;const Ame=React.useMemo(()=>({name:yme,labelAlign:ime,labelCol:ume,labelWrap:cme,wrapperCol:sme,vertical:lme==="vertical",colon:Rme,requiredMark:Tme,itemRef:Ome.itemRef,form:wme,feedbackIcons:bme}),[yme,ime,ume,sme,lme,Rme,Tme,wme,bme]),Fme=React__namespace.useRef(null);React__namespace.useImperativeHandle(kh,()=>{var Lme;return Object.assign(Object.assign({},wme),{nativeElement:(Lme=Fme.current)===null||Lme===void 0?void 0:Lme.nativeElement})});const Bme=(Lme,Hme)=>{if(Lme){let Wme={block:"nearest"};typeof Lme=="object"&&(Wme=Lme),wme.scrollToField(Hme,Wme)}},kme=Lme=>{if(gme==null||gme(Lme),Lme.errorFields.length){const Hme=Lme.errorFields[0].name;if(hme!==void 0){Bme(hme,Hme);return}$P&&$P.scrollToFirstError!==void 0&&Bme($P.scrollToFirstError,Hme)}};return Dme(React__namespace.createElement(VariantContext.Provider,{value:Sme},React__namespace.createElement(DisabledContextProvider,{disabled:rme},React__namespace.createElement(SizeContext.Provider,{value:Cme},React__namespace.createElement(FormProvider,{validateMessages:Eme},React__namespace.createElement(FormContext.Provider,{value:Ame},React__namespace.createElement(RefForm,Object.assign({id:yme},_me,{name:yme,onFinishFailed:kme,form:wme,ref:Fme,style:Object.assign(Object.assign({},$P==null?void 0:$P.style),mme),className:Ime}))))))))},Form$1=React__namespace.forwardRef(InternalForm);process.env.NODE_ENV!=="production"&&(Form$1.displayName="Form");function useChildren(Ff){if(typeof Ff=="function")return Ff;const kh=toArray$7(Ff);return kh.length<=1?kh[0]:kh}const useFormItemStatus=()=>{const{status:Ff,errors:kh=[],warnings:x_=[]}=React.useContext(FormItemInputContext);if(process.env.NODE_ENV!=="production"){const $_=devUseWarning("Form.Item");process.env.NODE_ENV!=="production"&&$_(Ff!==void 0,"usage","Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus")}return{status:Ff,errors:kh,warnings:x_}};useFormItemStatus.Context=FormItemInputContext;function useFrameState(Ff){const[kh,x_]=React__namespace.useState(Ff),$_=React.useRef(null),B_=React.useRef([]),$P=React.useRef(!1);React__namespace.useEffect(()=>($P.current=!1,()=>{$P.current=!0,wrapperRaf.cancel($_.current),$_.current=null}),[]);function zP(eme){$P.current||($_.current===null&&(B_.current=[],$_.current=wrapperRaf(()=>{$_.current=null,x_(tme=>{let nme=tme;return B_.current.forEach(rme=>{nme=rme(nme)}),nme})})),B_.current.push(eme))}return[kh,zP]}function useItemRef(){const{itemRef:Ff}=React__namespace.useContext(FormContext),kh=React__namespace.useRef({});function x_($_,B_){const $P=B_&&typeof B_=="object"&&B_.ref,zP=$_.join("_");return(kh.current.name!==zP||kh.current.originRef!==$P)&&(kh.current.name=zP,kh.current.originRef=$P,kh.current.ref=composeRef(Ff($_),$P)),kh.current.ref}return x_}const genFallbackStyle=Ff=>{const{formItemCls:kh}=Ff;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${kh}-control`]:{display:"flex"}}}},FallbackCmp=genSubStyleComponent(["Form","item-item"],(Ff,kh)=>{let{rootPrefixCls:x_}=kh;const $_=prepareToken(Ff,x_);return[genFallbackStyle($_)]}),FormItemInput=Ff=>{const{prefixCls:kh,status:x_,wrapperCol:$_,children:B_,errors:$P,warnings:zP,_internalItemRender:eme,extra:tme,help:nme,fieldId:rme,marginBottom:ame,onErrorVisibleChanged:ome}=Ff,ime=`${kh}-item`,cme=React__namespace.useContext(FormContext),ume=$_||cme.wrapperCol||{},sme=classNames(`${ime}-control`,ume.className),fme=React__namespace.useMemo(()=>Object.assign({},cme),[cme]);delete fme.labelCol,delete fme.wrapperCol;const lme=React__namespace.createElement("div",{className:`${ime}-control-input`},React__namespace.createElement("div",{className:`${ime}-control-input-content`},B_)),hme=React__namespace.useMemo(()=>({prefixCls:kh,status:x_}),[kh,x_]),pme=ame!==null||$P.length||zP.length?React__namespace.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},React__namespace.createElement(FormItemPrefixContext.Provider,{value:hme},React__namespace.createElement(ErrorList,{fieldId:rme,errors:$P,warnings:zP,help:nme,helpStatus:x_,className:`${ime}-explain-connected`,onVisibleChanged:ome})),!!ame&&React__namespace.createElement("div",{style:{width:0,height:ame}})):null,gme={};rme&&(gme.id=`${rme}_extra`);const yme=tme?React__namespace.createElement("div",Object.assign({},gme,{className:`${ime}-extra`}),tme):null,mme=eme&&eme.mark==="pro_table_render"&&eme.render?eme.render(Ff,{input:lme,errorList:pme,extra:yme}):React__namespace.createElement(React__namespace.Fragment,null,lme,pme,yme);return React__namespace.createElement(FormContext.Provider,{value:fme},React__namespace.createElement(Col,Object.assign({},ume,{className:sme}),mme),React__namespace.createElement(FallbackCmp,{prefixCls:kh}))};var QuestionCircleOutlined$1={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"},QuestionCircleOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:QuestionCircleOutlined$1}))},RefIcon$l=React__namespace.forwardRef(QuestionCircleOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$l.displayName="QuestionCircleOutlined");var __rest$b=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};function toTooltipProps(Ff){return Ff?typeof Ff=="object"&&!React__namespace.isValidElement(Ff)?Ff:{title:Ff}:null}const FormItemLabel=Ff=>{let{prefixCls:kh,label:x_,htmlFor:$_,labelCol:B_,labelAlign:$P,colon:zP,required:eme,requiredMark:tme,tooltip:nme,vertical:rme}=Ff;var ame;const[ome]=useLocale$1("Form"),{labelAlign:ime,labelCol:cme,labelWrap:ume,colon:sme}=React__namespace.useContext(FormContext);if(!x_)return null;const fme=B_||cme||{},lme=$P||ime,hme=`${kh}-item-label`,pme=classNames(hme,lme==="left"&&`${hme}-left`,fme.className,{[`${hme}-wrap`]:!!ume});let gme=x_;const yme=zP===!0||sme!==!1&&zP!==!1;yme&&!rme&&typeof x_=="string"&&x_.trim()!==""&&(gme=x_.replace(/[:|:]\s*$/,""));const bme=toTooltipProps(nme);if(bme){const{icon:Eme=React__namespace.createElement(RefIcon$l,null)}=bme,Tme=__rest$b(bme,["icon"]),Rme=React__namespace.createElement(Tooltip,Object.assign({},Tme),React__namespace.cloneElement(Eme,{className:`${kh}-item-tooltip`,title:"",onClick:Pme=>{Pme.preventDefault()},tabIndex:null}));gme=React__namespace.createElement(React__namespace.Fragment,null,gme,Rme)}const Sme=tme==="optional",_me=typeof tme=="function";_me?gme=tme(gme,{required:!!eme}):Sme&&!eme&&(gme=React__namespace.createElement(React__namespace.Fragment,null,gme,React__namespace.createElement("span",{className:`${kh}-item-optional`,title:""},(ome==null?void 0:ome.optional)||((ame=localeValues.Form)===null||ame===void 0?void 0:ame.optional))));const Cme=classNames({[`${kh}-item-required`]:eme,[`${kh}-item-required-mark-optional`]:Sme||_me,[`${kh}-item-no-colon`]:!yme});return React__namespace.createElement(Col,Object.assign({},fme,{className:pme}),React__namespace.createElement("label",{htmlFor:$_,className:Cme,title:typeof x_=="string"?x_:""},gme))},iconMap={success:RefIcon$B,warning:RefIcon$y,error:RefIcon$A,validating:RefIcon$x};function StatusProvider(Ff){let{children:kh,errors:x_,warnings:$_,hasFeedback:B_,validateStatus:$P,prefixCls:zP,meta:eme,noStyle:tme}=Ff;const nme=`${zP}-item`,{feedbackIcons:rme}=React__namespace.useContext(FormContext),ame=getStatus(x_,$_,eme,null,!!B_,$P),{isFormItemInput:ome,status:ime,hasFeedback:cme,feedbackIcon:ume}=React__namespace.useContext(FormItemInputContext),sme=React__namespace.useMemo(()=>{var fme;let lme;if(B_){const pme=B_!==!0&&B_.icons||rme,gme=ame&&((fme=pme==null?void 0:pme({status:ame,errors:x_,warnings:$_}))===null||fme===void 0?void 0:fme[ame]),yme=ame&&iconMap[ame];lme=gme!==!1&&yme?React__namespace.createElement("span",{className:classNames(`${nme}-feedback-icon`,`${nme}-feedback-icon-${ame}`)},gme||React__namespace.createElement(yme,null)):null}const hme={status:ame||"",errors:x_,warnings:$_,hasFeedback:!!B_,feedbackIcon:lme,isFormItemInput:!0};return tme&&(hme.status=(ame??ime)||"",hme.isFormItemInput=ome,hme.hasFeedback=!!(B_??cme),hme.feedbackIcon=B_!==void 0?hme.feedbackIcon:ume),hme},[ame,B_,tme,ome,ime]);return React__namespace.createElement(FormItemInputContext.Provider,{value:sme},kh)}var __rest$a=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};function ItemHolder(Ff){const{prefixCls:kh,className:x_,rootClassName:$_,style:B_,help:$P,errors:zP,warnings:eme,validateStatus:tme,meta:nme,hasFeedback:rme,hidden:ame,children:ome,fieldId:ime,required:cme,isRequired:ume,onSubItemMetaChange:sme,layout:fme}=Ff,lme=__rest$a(Ff,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),hme=`${kh}-item`,{requiredMark:pme,vertical:gme}=React__namespace.useContext(FormContext),yme=gme||fme==="vertical",mme=React__namespace.useRef(null),bme=useDebounce(zP),Sme=useDebounce(eme),_me=$P!=null,Cme=!!(_me||zP.length||eme.length),Eme=!!mme.current&&isVisible(mme.current),[Tme,Rme]=React__namespace.useState(null);useLayoutEffect$1(()=>{if(Cme&&mme.current){const Nme=getComputedStyle(mme.current);Rme(parseInt(Nme.marginBottom,10))}},[Cme,Eme]);const Pme=Nme=>{Nme||Rme(null)},Dme=function(){let Nme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Ime=Nme?bme:nme.errors,wme=Nme?Sme:nme.warnings;return getStatus(Ime,wme,nme,"",!!rme,tme)}(),Mme=classNames(hme,x_,$_,{[`${hme}-with-help`]:_me||bme.length||Sme.length,[`${hme}-has-feedback`]:Dme&&rme,[`${hme}-has-success`]:Dme==="success",[`${hme}-has-warning`]:Dme==="warning",[`${hme}-has-error`]:Dme==="error",[`${hme}-is-validating`]:Dme==="validating",[`${hme}-hidden`]:ame,[`${hme}-${fme}`]:fme});return React__namespace.createElement("div",{className:Mme,style:B_,ref:mme},React__namespace.createElement(Row,Object.assign({className:`${hme}-row`},omit(lme,["_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"])),React__namespace.createElement(FormItemLabel,Object.assign({htmlFor:ime},Ff,{requiredMark:pme,required:cme??ume,prefixCls:kh,vertical:yme})),React__namespace.createElement(FormItemInput,Object.assign({},Ff,nme,{errors:bme,warnings:Sme,prefixCls:kh,status:Dme,help:$P,marginBottom:Tme,onErrorVisibleChanged:Pme}),React__namespace.createElement(NoStyleItemContext.Provider,{value:sme},React__namespace.createElement(StatusProvider,{prefixCls:kh,meta:nme,errors:nme.errors,warnings:nme.warnings,hasFeedback:rme,validateStatus:Dme},ome)))),!!Tme&&React__namespace.createElement("div",{className:`${hme}-margin-offset`,style:{marginBottom:-Tme}}))}const NAME_SPLIT="__SPLIT__";function isSimilarControl(Ff,kh){const x_=Object.keys(Ff),$_=Object.keys(kh);return x_.length===$_.length&&x_.every(B_=>{const $P=Ff[B_],zP=kh[B_];return $P===zP||typeof $P=="function"||typeof zP=="function"})}const MemoInput=React__namespace.memo(Ff=>{let{children:kh}=Ff;return kh},(Ff,kh)=>isSimilarControl(Ff.control,kh.control)&&Ff.update===kh.update&&Ff.childProps.length===kh.childProps.length&&Ff.childProps.every((x_,$_)=>x_===kh.childProps[$_]));function genEmptyMeta(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function InternalFormItem(Ff){const{name:kh,noStyle:x_,className:$_,dependencies:B_,prefixCls:$P,shouldUpdate:zP,rules:eme,children:tme,required:nme,label:rme,messageVariables:ame,trigger:ome="onChange",validateTrigger:ime,hidden:cme,help:ume,layout:sme}=Ff,{getPrefixCls:fme}=React__namespace.useContext(ConfigContext),{name:lme}=React__namespace.useContext(FormContext),hme=useChildren(tme),pme=typeof hme=="function",gme=React__namespace.useContext(NoStyleItemContext),{validateTrigger:yme}=React__namespace.useContext(Context),mme=ime!==void 0?ime:yme,bme=kh!=null,Sme=fme("form",$P),_me=useCSSVarCls(Sme),[Cme,Eme,Tme]=useStyle$6(Sme,_me),Rme=devUseWarning("Form.Item");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&Rme(kh!==null,"usage","`null` is passed as `name` property");const Pme=React__namespace.useContext(ListContext),$me=React__namespace.useRef(),[Dme,Mme]=useFrameState({}),[Nme,Ime]=useSafeState(()=>genEmptyMeta()),wme=Hme=>{const Wme=Pme==null?void 0:Pme.getKey(Hme.name);if(Ime(Hme.destroy?genEmptyMeta():Hme,!0),x_&&ume!==!1&&gme){let zme=Hme.name;if(Hme.destroy)zme=$me.current||zme;else if(Wme!==void 0){const[Vme,Xme]=Wme;zme=[Vme].concat(_toConsumableArray(Xme)),$me.current=zme}gme(Hme,zme)}},Ome=(Hme,Wme)=>{Mme(zme=>{const Vme=Object.assign({},zme),e0e=[].concat(_toConsumableArray(Hme.name.slice(0,-1)),_toConsumableArray(Wme)).join(NAME_SPLIT);return Hme.destroy?delete Vme[e0e]:Vme[e0e]=Hme,Vme})},[Ame,Fme]=React__namespace.useMemo(()=>{const Hme=_toConsumableArray(Nme.errors),Wme=_toConsumableArray(Nme.warnings);return Object.values(Dme).forEach(zme=>{Hme.push.apply(Hme,_toConsumableArray(zme.errors||[])),Wme.push.apply(Wme,_toConsumableArray(zme.warnings||[]))}),[Hme,Wme]},[Dme,Nme.errors,Nme.warnings]),Bme=useItemRef();function kme(Hme,Wme,zme){return x_&&!cme?React__namespace.createElement(StatusProvider,{prefixCls:Sme,hasFeedback:Ff.hasFeedback,validateStatus:Ff.validateStatus,meta:Nme,errors:Ame,warnings:Fme,noStyle:!0},Hme):React__namespace.createElement(ItemHolder,Object.assign({key:"row"},Ff,{className:classNames($_,Tme,_me,Eme),prefixCls:Sme,fieldId:Wme,isRequired:zme,errors:Ame,warnings:Fme,meta:Nme,onSubItemMetaChange:Ome,layout:sme}),Hme)}if(!bme&&!pme&&!B_)return Cme(kme(hme));let Lme={};return typeof rme=="string"?Lme.label=rme:kh&&(Lme.label=String(kh)),ame&&(Lme=Object.assign(Object.assign({},Lme),ame)),Cme(React__namespace.createElement(WrapperField,Object.assign({},Ff,{messageVariables:Lme,trigger:ome,validateTrigger:mme,onMetaChange:wme}),(Hme,Wme,zme)=>{const Vme=toArray$2(kh).length&&Wme?Wme.name:[],Xme=getFieldId(Vme,lme),e0e=nme!==void 0?nme:!!(eme&&eme.some(s0e=>{if(s0e&&typeof s0e=="object"&&s0e.required&&!s0e.warningOnly)return!0;if(typeof s0e=="function"){const d0e=s0e(zme);return d0e&&d0e.required&&!d0e.warningOnly}return!1})),Ume=Object.assign({},Hme);let Jme=null;if(process.env.NODE_ENV!=="production"&&Rme(!(zP&&B_),"usage","`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."),Array.isArray(hme)&&bme)process.env.NODE_ENV!=="production"&&Rme(!1,"usage","A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."),Jme=hme;else if(pme&&(!(zP||B_)||bme))process.env.NODE_ENV!=="production"&&Rme(!!(zP||B_),"usage","A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."),process.env.NODE_ENV!=="production"&&Rme(!bme,"usage","A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");else if(B_&&!pme&&!bme)process.env.NODE_ENV!=="production"&&Rme(!1,"usage","Must set `name` or use a render function when `dependencies` is set.");else if(React__namespace.isValidElement(hme)){process.env.NODE_ENV!=="production"&&Rme(hme.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");const s0e=Object.assign(Object.assign({},hme.props),Ume);if(s0e.id||(s0e.id=Xme),ume||Ame.length>0||Fme.length>0||Ff.extra){const Qme=[];(ume||Ame.length>0)&&Qme.push(`${Xme}_help`),Ff.extra&&Qme.push(`${Xme}_extra`),s0e["aria-describedby"]=Qme.join(" ")}Ame.length>0&&(s0e["aria-invalid"]="true"),e0e&&(s0e["aria-required"]="true"),supportRef(hme)&&(s0e.ref=Bme(Vme,hme)),new Set([].concat(_toConsumableArray(toArray$2(ome)),_toConsumableArray(toArray$2(mme)))).forEach(Qme=>{s0e[Qme]=function(){for(var a0e,t0e,o0e,g0e,u0e,h0e=arguments.length,E0e=new Array(h0e),P0e=0;P0e<h0e;P0e++)E0e[P0e]=arguments[P0e];(o0e=Ume[Qme])===null||o0e===void 0||(a0e=o0e).call.apply(a0e,[Ume].concat(E0e)),(u0e=(g0e=hme.props)[Qme])===null||u0e===void 0||(t0e=u0e).call.apply(t0e,[g0e].concat(E0e))}});const Zme=[s0e["aria-required"],s0e["aria-invalid"],s0e["aria-describedby"]];Jme=React__namespace.createElement(MemoInput,{control:Ume,update:hme,childProps:Zme},cloneElement(hme,s0e))}else pme&&(zP||B_)&&!bme?Jme=hme(zme):(process.env.NODE_ENV!=="production"&&Rme(!Vme.length||!!x_,"usage","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),Jme=hme);return kme(Jme,Xme,e0e)}))}const FormItem=InternalFormItem;FormItem.useStatus=useFormItemStatus;var __rest$9=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const FormList=Ff=>{var{prefixCls:kh,children:x_}=Ff,$_=__rest$9(Ff,["prefixCls","children"]);if(process.env.NODE_ENV!=="production"){const eme=devUseWarning("Form.List");process.env.NODE_ENV!=="production"&&eme(typeof $_.name=="number"||(Array.isArray($_.name)?!!$_.name.length:!!$_.name),"usage","Miss `name` prop.")}const{getPrefixCls:B_}=React__namespace.useContext(ConfigContext),$P=B_("form",kh),zP=React__namespace.useMemo(()=>({prefixCls:$P,status:"error"}),[$P]);return React__namespace.createElement(List$1,Object.assign({},$_),(eme,tme,nme)=>React__namespace.createElement(FormItemPrefixContext.Provider,{value:zP},x_(eme.map(rme=>Object.assign(Object.assign({},rme),{fieldKey:rme.key})),tme,{errors:nme.errors,warnings:nme.warnings})))};function useFormInstance(){const{form:Ff}=React.useContext(FormContext);return Ff}const Form=Form$1;Form.Item=FormItem;Form.List=FormList;Form.ErrorList=ErrorList;Form.useForm=useForm;Form.useFormInstance=useFormInstance;Form.useWatch=useWatch$1;Form.Provider=FormProvider;Form.create=()=>{process.env.NODE_ENV!=="production"&&warning$3(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};function getClientSize(){var Ff=document.documentElement.clientWidth,kh=window.innerHeight||document.documentElement.clientHeight;return{width:Ff,height:kh}}function getOffset(Ff){var kh=Ff.getBoundingClientRect(),x_=document.documentElement;return{left:kh.left+(window.pageXOffset||x_.scrollLeft)-(x_.clientLeft||document.body.clientLeft||0),top:kh.top+(window.pageYOffset||x_.scrollTop)-(x_.clientTop||document.body.clientTop||0)}}function addEventListenerWrap(Ff,kh,x_,$_){var B_=ReactDOM.unstable_batchedUpdates?function(zP){ReactDOM.unstable_batchedUpdates(x_,zP)}:x_;return Ff!=null&&Ff.addEventListener&&Ff.addEventListener(kh,B_,$_),{remove:function(){Ff!=null&&Ff.removeEventListener&&Ff.removeEventListener(kh,B_,$_)}}}var PreviewGroupContext=React__namespace.createContext(null),Operations=function(kh){var x_=kh.visible,$_=kh.maskTransitionName,B_=kh.getContainer,$P=kh.prefixCls,zP=kh.rootClassName,eme=kh.icons,tme=kh.countRender,nme=kh.showSwitch,rme=kh.showProgress,ame=kh.current,ome=kh.transform,ime=kh.count,cme=kh.scale,ume=kh.minScale,sme=kh.maxScale,fme=kh.closeIcon,lme=kh.onSwitchLeft,hme=kh.onSwitchRight,pme=kh.onClose,gme=kh.onZoomIn,yme=kh.onZoomOut,mme=kh.onRotateRight,bme=kh.onRotateLeft,Sme=kh.onFlipX,_me=kh.onFlipY,Cme=kh.onReset,Eme=kh.toolbarRender,Tme=kh.zIndex,Rme=kh.image,Pme=React.useContext(PreviewGroupContext),$me=eme.rotateLeft,Dme=eme.rotateRight,Mme=eme.zoomIn,Nme=eme.zoomOut,Ime=eme.close,wme=eme.left,Ome=eme.right,Ame=eme.flipX,Fme=eme.flipY,Bme="".concat($P,"-operations-operation");React__namespace.useEffect(function(){var Wme=function(Vme){Vme.keyCode===KeyCode.ESC&&pme()};return x_&&window.addEventListener("keydown",Wme),function(){window.removeEventListener("keydown",Wme)}},[x_]);var kme=[{icon:Fme,onClick:_me,type:"flipY"},{icon:Ame,onClick:Sme,type:"flipX"},{icon:$me,onClick:bme,type:"rotateLeft"},{icon:Dme,onClick:mme,type:"rotateRight"},{icon:Nme,onClick:yme,type:"zoomOut",disabled:cme<=ume},{icon:Mme,onClick:gme,type:"zoomIn",disabled:cme===sme}],Lme=kme.map(function(Wme){var zme,Vme=Wme.icon,Xme=Wme.onClick,e0e=Wme.type,Ume=Wme.disabled;return React__namespace.createElement("div",{className:classNames(Bme,(zme={},_defineProperty(zme,"".concat($P,"-operations-operation-").concat(e0e),!0),_defineProperty(zme,"".concat($P,"-operations-operation-disabled"),!!Ume),zme)),onClick:Xme,key:e0e},Vme)}),Hme=React__namespace.createElement("div",{className:"".concat($P,"-operations")},Lme);return React__namespace.createElement(CSSMotion,{visible:x_,motionName:$_},function(Wme){var zme=Wme.className,Vme=Wme.style;return React__namespace.createElement(Portal,{open:!0,getContainer:B_??document.body},React__namespace.createElement("div",{className:classNames("".concat($P,"-operations-wrapper"),zme,zP),style:_objectSpread2(_objectSpread2({},Vme),{},{zIndex:Tme})},fme===null?null:React__namespace.createElement("button",{className:"".concat($P,"-close"),onClick:pme},fme||Ime),nme&&React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("div",{className:classNames("".concat($P,"-switch-left"),_defineProperty({},"".concat($P,"-switch-left-disabled"),ame===0)),onClick:lme},wme),React__namespace.createElement("div",{className:classNames("".concat($P,"-switch-right"),_defineProperty({},"".concat($P,"-switch-right-disabled"),ame===ime-1)),onClick:hme},Ome)),React__namespace.createElement("div",{className:"".concat($P,"-footer")},rme&&React__namespace.createElement("div",{className:"".concat($P,"-progress")},tme?tme(ame+1,ime):"".concat(ame+1," / ").concat(ime)),Eme?Eme(Hme,_objectSpread2(_objectSpread2({icons:{flipYIcon:Lme[0],flipXIcon:Lme[1],rotateLeftIcon:Lme[2],rotateRightIcon:Lme[3],zoomOutIcon:Lme[4],zoomInIcon:Lme[5]},actions:{onFlipY:_me,onFlipX:Sme,onRotateLeft:bme,onRotateRight:mme,onZoomOut:yme,onZoomIn:gme,onReset:Cme,onClose:pme},transform:ome},Pme?{current:ame,total:ime}:{}),{},{image:Rme})):Hme)))})},initialTransform={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function useImageTransform(Ff,kh,x_,$_){var B_=React.useRef(null),$P=React.useRef([]),zP=React.useState(initialTransform),eme=_slicedToArray(zP,2),tme=eme[0],nme=eme[1],rme=function(cme){nme(initialTransform),isEqual$1(initialTransform,tme)||$_==null||$_({transform:initialTransform,action:cme})},ame=function(cme,ume){B_.current===null&&($P.current=[],B_.current=wrapperRaf(function(){nme(function(sme){var fme=sme;return $P.current.forEach(function(lme){fme=_objectSpread2(_objectSpread2({},fme),lme)}),B_.current=null,$_==null||$_({transform:fme,action:ume}),fme})})),$P.current.push(_objectSpread2(_objectSpread2({},tme),cme))},ome=function(cme,ume,sme,fme,lme){var hme=Ff.current,pme=hme.width,gme=hme.height,yme=hme.offsetWidth,mme=hme.offsetHeight,bme=hme.offsetLeft,Sme=hme.offsetTop,_me=cme,Cme=tme.scale*cme;Cme>x_?(Cme=x_,_me=x_/tme.scale):Cme<kh&&(Cme=lme?Cme:kh,_me=Cme/tme.scale);var Eme=sme??innerWidth/2,Tme=fme??innerHeight/2,Rme=_me-1,Pme=Rme*pme*.5,$me=Rme*gme*.5,Dme=Rme*(Eme-tme.x-bme),Mme=Rme*(Tme-tme.y-Sme),Nme=tme.x-(Dme-Pme),Ime=tme.y-(Mme-$me);if(cme<1&&Cme===1){var wme=yme*Cme,Ome=mme*Cme,Ame=getClientSize(),Fme=Ame.width,Bme=Ame.height;wme<=Fme&&Ome<=Bme&&(Nme=0,Ime=0)}ame({x:Nme,y:Ime,scale:Cme},ume)};return{transform:tme,resetTransform:rme,updateTransform:ame,dispatchZoomChange:ome}}function fixPoint(Ff,kh,x_,$_){var B_=kh+x_,$P=(x_-$_)/2;if(x_>$_){if(kh>0)return _defineProperty({},Ff,$P);if(kh<0&&B_<$_)return _defineProperty({},Ff,-$P)}else if(kh<0||B_>$_)return _defineProperty({},Ff,kh<0?$P:-$P);return{}}function getFixScaleEleTransPosition(Ff,kh,x_,$_){var B_=getClientSize(),$P=B_.width,zP=B_.height,eme=null;return Ff<=$P&&kh<=zP?eme={x:0,y:0}:(Ff>$P||kh>zP)&&(eme=_objectSpread2(_objectSpread2({},fixPoint("x",x_,Ff,$P)),fixPoint("y",$_,kh,zP))),eme}var BASE_SCALE_RATIO=1,WHEEL_MAX_SCALE_RATIO=1;function useMouseEvent(Ff,kh,x_,$_,B_,$P,zP){var eme=B_.rotate,tme=B_.scale,nme=B_.x,rme=B_.y,ame=React.useState(!1),ome=_slicedToArray(ame,2),ime=ome[0],cme=ome[1],ume=React.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),sme=function(gme){!kh||gme.button!==0||(gme.preventDefault(),gme.stopPropagation(),ume.current={diffX:gme.pageX-nme,diffY:gme.pageY-rme,transformX:nme,transformY:rme},cme(!0))},fme=function(gme){x_&&ime&&$P({x:gme.pageX-ume.current.diffX,y:gme.pageY-ume.current.diffY},"move")},lme=function(){if(x_&&ime){cme(!1);var gme=ume.current,yme=gme.transformX,mme=gme.transformY,bme=nme!==yme&&rme!==mme;if(!bme)return;var Sme=Ff.current.offsetWidth*tme,_me=Ff.current.offsetHeight*tme,Cme=Ff.current.getBoundingClientRect(),Eme=Cme.left,Tme=Cme.top,Rme=eme%180!==0,Pme=getFixScaleEleTransPosition(Rme?_me:Sme,Rme?Sme:_me,Eme,Tme);Pme&&$P(_objectSpread2({},Pme),"dragRebound")}},hme=function(gme){if(!(!x_||gme.deltaY==0)){var yme=Math.abs(gme.deltaY/100),mme=Math.min(yme,WHEEL_MAX_SCALE_RATIO),bme=BASE_SCALE_RATIO+mme*$_;gme.deltaY>0&&(bme=BASE_SCALE_RATIO/bme),zP(bme,"wheel",gme.clientX,gme.clientY)}};return React.useEffect(function(){var pme,gme,yme,mme;if(kh){yme=addEventListenerWrap(window,"mouseup",lme,!1),mme=addEventListenerWrap(window,"mousemove",fme,!1);try{window.top!==window.self&&(pme=addEventListenerWrap(window.top,"mouseup",lme,!1),gme=addEventListenerWrap(window.top,"mousemove",fme,!1))}catch(bme){warning$4(!1,"[rc-image] ".concat(bme))}}return function(){var bme,Sme,_me,Cme;(bme=yme)===null||bme===void 0||bme.remove(),(Sme=mme)===null||Sme===void 0||Sme.remove(),(_me=pme)===null||_me===void 0||_me.remove(),(Cme=gme)===null||Cme===void 0||Cme.remove()}},[x_,ime,nme,rme,eme,kh]),{isMoving:ime,onMouseDown:sme,onMouseMove:fme,onMouseUp:lme,onWheel:hme}}function isImageValid(Ff){return new Promise(function(kh){var x_=document.createElement("img");x_.onerror=function(){return kh(!1)},x_.onload=function(){return kh(!0)},x_.src=Ff})}function useStatus(Ff){var kh=Ff.src,x_=Ff.isCustomPlaceholder,$_=Ff.fallback,B_=React.useState(x_?"loading":"normal"),$P=_slicedToArray(B_,2),zP=$P[0],eme=$P[1],tme=React.useRef(!1),nme=zP==="error";React.useEffect(function(){var ime=!0;return isImageValid(kh).then(function(cme){!cme&&ime&&eme("error")}),function(){ime=!1}},[kh]),React.useEffect(function(){x_&&!tme.current?eme("loading"):nme&&eme("normal")},[kh]);var rme=function(){eme("normal")},ame=function(cme){tme.current=!1,zP==="loading"&&cme!==null&&cme!==void 0&&cme.complete&&(cme.naturalWidth||cme.naturalHeight)&&(tme.current=!0,rme())},ome=nme&&$_?{src:$_}:{onLoad:rme,src:kh};return[ame,ome,zP]}function getDistance(Ff,kh){var x_=Ff.x-kh.x,$_=Ff.y-kh.y;return Math.hypot(x_,$_)}function getCenter(Ff,kh,x_,$_){var B_=getDistance(Ff,x_),$P=getDistance(kh,$_);if(B_===0&&$P===0)return[Ff.x,Ff.y];var zP=B_/(B_+$P),eme=Ff.x+zP*(kh.x-Ff.x),tme=Ff.y+zP*(kh.y-Ff.y);return[eme,tme]}function useTouchEvent(Ff,kh,x_,$_,B_,$P,zP){var eme=B_.rotate,tme=B_.scale,nme=B_.x,rme=B_.y,ame=React.useState(!1),ome=_slicedToArray(ame,2),ime=ome[0],cme=ome[1],ume=React.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),sme=function(gme){ume.current=_objectSpread2(_objectSpread2({},ume.current),gme)},fme=function(gme){if(kh){gme.stopPropagation(),cme(!0);var yme=gme.touches,mme=yme===void 0?[]:yme;mme.length>1?sme({point1:{x:mme[0].clientX,y:mme[0].clientY},point2:{x:mme[1].clientX,y:mme[1].clientY},eventType:"touchZoom"}):sme({point1:{x:mme[0].clientX-nme,y:mme[0].clientY-rme},eventType:"move"})}},lme=function(gme){var yme=gme.touches,mme=yme===void 0?[]:yme,bme=ume.current,Sme=bme.point1,_me=bme.point2,Cme=bme.eventType;if(mme.length>1&&Cme==="touchZoom"){var Eme={x:mme[0].clientX,y:mme[0].clientY},Tme={x:mme[1].clientX,y:mme[1].clientY},Rme=getCenter(Sme,_me,Eme,Tme),Pme=_slicedToArray(Rme,2),$me=Pme[0],Dme=Pme[1],Mme=getDistance(Eme,Tme)/getDistance(Sme,_me);zP(Mme,"touchZoom",$me,Dme,!0),sme({point1:Eme,point2:Tme,eventType:"touchZoom"})}else Cme==="move"&&($P({x:mme[0].clientX-Sme.x,y:mme[0].clientY-Sme.y},"move"),sme({eventType:"move"}))},hme=function(){if(x_){if(ime&&cme(!1),sme({eventType:"none"}),$_>tme)return $P({x:0,y:0,scale:$_},"touchZoom");var gme=Ff.current.offsetWidth*tme,yme=Ff.current.offsetHeight*tme,mme=Ff.current.getBoundingClientRect(),bme=mme.left,Sme=mme.top,_me=eme%180!==0,Cme=getFixScaleEleTransPosition(_me?yme:gme,_me?gme:yme,bme,Sme);Cme&&$P(_objectSpread2({},Cme),"dragRebound")}};return React.useEffect(function(){var pme;return x_&&kh&&(pme=addEventListenerWrap(window,"touchmove",function(gme){return gme.preventDefault()},{passive:!1})),function(){var gme;(gme=pme)===null||gme===void 0||gme.remove()}},[x_,kh]),{isTouching:ime,onTouchStart:fme,onTouchMove:lme,onTouchEnd:hme}}var _excluded$c=["fallback","src","imgRef"],_excluded2$2=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],PreviewImage=function(kh){var x_=kh.fallback,$_=kh.src,B_=kh.imgRef,$P=_objectWithoutProperties(kh,_excluded$c),zP=useStatus({src:$_,fallback:x_}),eme=_slicedToArray(zP,2),tme=eme[0],nme=eme[1];return React.createElement("img",_extends({ref:function(ame){B_.current=ame,tme(ame)}},$P,nme))},Preview=function(kh){var x_=kh.prefixCls,$_=kh.src,B_=kh.alt,$P=kh.imageInfo,zP=kh.fallback,eme=kh.movable,tme=eme===void 0?!0:eme,nme=kh.onClose,rme=kh.visible,ame=kh.icons,ome=ame===void 0?{}:ame,ime=kh.rootClassName,cme=kh.closeIcon,ume=kh.getContainer,sme=kh.current,fme=sme===void 0?0:sme,lme=kh.count,hme=lme===void 0?1:lme,pme=kh.countRender,gme=kh.scaleStep,yme=gme===void 0?.5:gme,mme=kh.minScale,bme=mme===void 0?1:mme,Sme=kh.maxScale,_me=Sme===void 0?50:Sme,Cme=kh.transitionName,Eme=Cme===void 0?"zoom":Cme,Tme=kh.maskTransitionName,Rme=Tme===void 0?"fade":Tme,Pme=kh.imageRender,$me=kh.imgCommonProps,Dme=kh.toolbarRender,Mme=kh.onTransform,Nme=kh.onChange,Ime=_objectWithoutProperties(kh,_excluded2$2),wme=React.useRef(),Ome=React.useContext(PreviewGroupContext),Ame=Ome&&hme>1,Fme=Ome&&hme>=1,Bme=React.useState(!0),kme=_slicedToArray(Bme,2),Lme=kme[0],Hme=kme[1],Wme=useImageTransform(wme,bme,_me,Mme),zme=Wme.transform,Vme=Wme.resetTransform,Xme=Wme.updateTransform,e0e=Wme.dispatchZoomChange,Ume=useMouseEvent(wme,tme,rme,yme,zme,Xme,e0e),Jme=Ume.isMoving,s0e=Ume.onMouseDown,d0e=Ume.onWheel,Zme=useTouchEvent(wme,tme,rme,bme,zme,Xme,e0e),Qme=Zme.isTouching,a0e=Zme.onTouchStart,t0e=Zme.onTouchMove,o0e=Zme.onTouchEnd,g0e=zme.rotate,u0e=zme.scale,h0e=classNames(_defineProperty({},"".concat(x_,"-moving"),Jme));React.useEffect(function(){Lme||Hme(!0)},[Lme]);var E0e=function(){Vme("close")},P0e=function(){e0e(BASE_SCALE_RATIO+yme,"zoomIn")},y0e=function(){e0e(BASE_SCALE_RATIO/(BASE_SCALE_RATIO+yme),"zoomOut")},$0e=function(){Xme({rotate:g0e+90},"rotateRight")},C0e=function(){Xme({rotate:g0e-90},"rotateLeft")},z0e=function(){Xme({flipX:!zme.flipX},"flipX")},D0e=function(){Xme({flipY:!zme.flipY},"flipY")},O0e=function(){Vme("reset")},b0e=function(U0e){U0e==null||U0e.preventDefault(),U0e==null||U0e.stopPropagation(),fme>0&&(Hme(!1),Vme("prev"),Nme==null||Nme(fme-1,fme))},k0e=function(U0e){U0e==null||U0e.preventDefault(),U0e==null||U0e.stopPropagation(),fme<hme-1&&(Hme(!1),Vme("next"),Nme==null||Nme(fme+1,fme))},T0e=function(U0e){!rme||!Ame||(U0e.keyCode===KeyCode.LEFT?b0e():U0e.keyCode===KeyCode.RIGHT&&k0e())},L0e=function(U0e){rme&&(u0e!==1?Xme({x:0,y:0,scale:1},"doubleClick"):e0e(BASE_SCALE_RATIO+yme,"doubleClick",U0e.clientX,U0e.clientY))};React.useEffect(function(){var Q0e=addEventListenerWrap(window,"keydown",T0e,!1);return function(){Q0e.remove()}},[rme,Ame,fme]);var Y0e=React.createElement(PreviewImage,_extends({},$me,{width:kh.width,height:kh.height,imgRef:wme,className:"".concat(x_,"-img"),alt:B_,style:{transform:"translate3d(".concat(zme.x,"px, ").concat(zme.y,"px, 0) scale3d(").concat(zme.flipX?"-":"").concat(u0e,", ").concat(zme.flipY?"-":"").concat(u0e,", 1) rotate(").concat(g0e,"deg)"),transitionDuration:(!Lme||Qme)&&"0s"},fallback:zP,src:$_,onWheel:d0e,onMouseDown:s0e,onDoubleClick:L0e,onTouchStart:a0e,onTouchMove:t0e,onTouchEnd:o0e,onTouchCancel:o0e})),mye=_objectSpread2({url:$_,alt:B_},$P);return React.createElement(React.Fragment,null,React.createElement(DialogWrap,_extends({transitionName:Eme,maskTransitionName:Rme,closable:!1,keyboard:!0,prefixCls:x_,onClose:nme,visible:rme,classNames:{wrapper:h0e},rootClassName:ime,getContainer:ume},Ime,{afterClose:E0e}),React.createElement("div",{className:"".concat(x_,"-img-wrapper")},Pme?Pme(Y0e,_objectSpread2({transform:zme,image:mye},Ome?{current:fme}:{})):Y0e)),React.createElement(Operations,{visible:rme,transform:zme,maskTransitionName:Rme,closeIcon:cme,getContainer:ume,prefixCls:x_,rootClassName:ime,icons:ome,countRender:pme,showSwitch:Ame,showProgress:Fme,current:fme,count:hme,scale:u0e,minScale:bme,maxScale:_me,toolbarRender:Dme,onSwitchLeft:b0e,onSwitchRight:k0e,onZoomIn:P0e,onZoomOut:y0e,onRotateRight:$0e,onRotateLeft:C0e,onFlipX:z0e,onFlipY:D0e,onClose:nme,onReset:O0e,zIndex:Ime.zIndex!==void 0?Ime.zIndex+1:void 0,image:mye}))},COMMON_PROPS=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function usePreviewItems(Ff){var kh=React__namespace.useState({}),x_=_slicedToArray(kh,2),$_=x_[0],B_=x_[1],$P=React__namespace.useCallback(function(eme,tme){return B_(function(nme){return _objectSpread2(_objectSpread2({},nme),{},_defineProperty({},eme,tme))}),function(){B_(function(nme){var rme=_objectSpread2({},nme);return delete rme[eme],rme})}},[]),zP=React__namespace.useMemo(function(){return Ff?Ff.map(function(eme){if(typeof eme=="string")return{data:{src:eme}};var tme={};return Object.keys(eme).forEach(function(nme){["src"].concat(_toConsumableArray(COMMON_PROPS)).includes(nme)&&(tme[nme]=eme[nme])}),{data:tme}}):Object.keys($_).reduce(function(eme,tme){var nme=$_[tme],rme=nme.canPreview,ame=nme.data;return rme&&eme.push({data:ame,id:tme}),eme},[])},[Ff,$_]);return[zP,$P,!!Ff]}var _excluded$b=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],_excluded2$1=["src"],Group=function(kh){var x_,$_=kh.previewPrefixCls,B_=$_===void 0?"rc-image-preview":$_,$P=kh.children,zP=kh.icons,eme=zP===void 0?{}:zP,tme=kh.items,nme=kh.preview,rme=kh.fallback,ame=_typeof(nme)==="object"?nme:{},ome=ame.visible,ime=ame.onVisibleChange,cme=ame.getContainer,ume=ame.current,sme=ame.movable,fme=ame.minScale,lme=ame.maxScale,hme=ame.countRender,pme=ame.closeIcon,gme=ame.onChange,yme=ame.onTransform,mme=ame.toolbarRender,bme=ame.imageRender,Sme=_objectWithoutProperties(ame,_excluded$b),_me=usePreviewItems(tme),Cme=_slicedToArray(_me,3),Eme=Cme[0],Tme=Cme[1],Rme=Cme[2],Pme=useMergedState(0,{value:ume}),$me=_slicedToArray(Pme,2),Dme=$me[0],Mme=$me[1],Nme=React.useState(!1),Ime=_slicedToArray(Nme,2),wme=Ime[0],Ome=Ime[1],Ame=((x_=Eme[Dme])===null||x_===void 0?void 0:x_.data)||{},Fme=Ame.src,Bme=_objectWithoutProperties(Ame,_excluded2$1),kme=useMergedState(!!ome,{value:ome,onChange:function(Qme,a0e){ime==null||ime(Qme,a0e,Dme)}}),Lme=_slicedToArray(kme,2),Hme=Lme[0],Wme=Lme[1],zme=React.useState(null),Vme=_slicedToArray(zme,2),Xme=Vme[0],e0e=Vme[1],Ume=React__namespace.useCallback(function(Zme,Qme,a0e,t0e){var o0e=Rme?Eme.findIndex(function(g0e){return g0e.data.src===Qme}):Eme.findIndex(function(g0e){return g0e.id===Zme});Mme(o0e<0?0:o0e),Wme(!0),e0e({x:a0e,y:t0e}),Ome(!0)},[Eme,Rme]);React__namespace.useEffect(function(){Hme?wme||Mme(0):Ome(!1)},[Hme]);var Jme=function(Qme,a0e){Mme(Qme),gme==null||gme(Qme,a0e)},s0e=function(){Wme(!1),e0e(null)},d0e=React__namespace.useMemo(function(){return{register:Tme,onPreview:Ume}},[Tme,Ume]);return React__namespace.createElement(PreviewGroupContext.Provider,{value:d0e},$P,React__namespace.createElement(Preview,_extends({"aria-hidden":!Hme,movable:sme,visible:Hme,prefixCls:B_,closeIcon:pme,onClose:s0e,mousePosition:Xme,imgCommonProps:Bme,src:Fme,fallback:rme,icons:eme,minScale:fme,maxScale:lme,getContainer:cme,current:Dme,count:Eme.length,countRender:hme,onTransform:yme,toolbarRender:mme,imageRender:bme,onChange:Jme},Sme)))},uid$1=0;function useRegisterImage(Ff,kh){var x_=React__namespace.useState(function(){return uid$1+=1,String(uid$1)}),$_=_slicedToArray(x_,1),B_=$_[0],$P=React__namespace.useContext(PreviewGroupContext),zP={data:kh,canPreview:Ff};return React__namespace.useEffect(function(){if($P)return $P.register(B_,zP)},[]),React__namespace.useEffect(function(){$P&&$P.register(B_,zP)},[Ff,kh]),B_}var _excluded$a=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],_excluded2=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],ImageInternal=function(kh){var x_=kh.src,$_=kh.alt,B_=kh.onPreviewClose,$P=kh.prefixCls,zP=$P===void 0?"rc-image":$P,eme=kh.previewPrefixCls,tme=eme===void 0?"".concat(zP,"-preview"):eme,nme=kh.placeholder,rme=kh.fallback,ame=kh.width,ome=kh.height,ime=kh.style,cme=kh.preview,ume=cme===void 0?!0:cme,sme=kh.className,fme=kh.onClick,lme=kh.onError,hme=kh.wrapperClassName,pme=kh.wrapperStyle,gme=kh.rootClassName,yme=_objectWithoutProperties(kh,_excluded$a),mme=nme&&nme!==!0,bme=_typeof(ume)==="object"?ume:{},Sme=bme.src,_me=bme.visible,Cme=_me===void 0?void 0:_me,Eme=bme.onVisibleChange,Tme=Eme===void 0?B_:Eme,Rme=bme.getContainer,Pme=Rme===void 0?void 0:Rme,$me=bme.mask,Dme=bme.maskClassName,Mme=bme.movable,Nme=bme.icons,Ime=bme.scaleStep,wme=bme.minScale,Ome=bme.maxScale,Ame=bme.imageRender,Fme=bme.toolbarRender,Bme=_objectWithoutProperties(bme,_excluded2),kme=Sme??x_,Lme=useMergedState(!!Cme,{value:Cme,onChange:Tme}),Hme=_slicedToArray(Lme,2),Wme=Hme[0],zme=Hme[1],Vme=useStatus({src:x_,isCustomPlaceholder:mme,fallback:rme}),Xme=_slicedToArray(Vme,3),e0e=Xme[0],Ume=Xme[1],Jme=Xme[2],s0e=React.useState(null),d0e=_slicedToArray(s0e,2),Zme=d0e[0],Qme=d0e[1],a0e=React.useContext(PreviewGroupContext),t0e=!!ume,o0e=function(){zme(!1),Qme(null)},g0e=classNames(zP,hme,gme,_defineProperty({},"".concat(zP,"-error"),Jme==="error")),u0e=React.useMemo(function(){var y0e={};return COMMON_PROPS.forEach(function($0e){kh[$0e]!==void 0&&(y0e[$0e]=kh[$0e])}),y0e},COMMON_PROPS.map(function(y0e){return kh[y0e]})),h0e=React.useMemo(function(){return _objectSpread2(_objectSpread2({},u0e),{},{src:kme})},[kme,u0e]),E0e=useRegisterImage(t0e,h0e),P0e=function($0e){var C0e=getOffset($0e.target),z0e=C0e.left,D0e=C0e.top;a0e?a0e.onPreview(E0e,kme,z0e,D0e):(Qme({x:z0e,y:D0e}),zme(!0)),fme==null||fme($0e)};return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("div",_extends({},yme,{className:g0e,onClick:t0e?P0e:fme,style:_objectSpread2({width:ame,height:ome},pme)}),React__namespace.createElement("img",_extends({},u0e,{className:classNames("".concat(zP,"-img"),_defineProperty({},"".concat(zP,"-img-placeholder"),nme===!0),sme),style:_objectSpread2({height:ome},ime),ref:e0e},Ume,{width:ame,height:ome,onError:lme})),Jme==="loading"&&React__namespace.createElement("div",{"aria-hidden":"true",className:"".concat(zP,"-placeholder")},nme),$me&&t0e&&React__namespace.createElement("div",{className:classNames("".concat(zP,"-mask"),Dme),style:{display:(ime==null?void 0:ime.display)==="none"?"none":void 0}},$me)),!a0e&&t0e&&React__namespace.createElement(Preview,_extends({"aria-hidden":!Wme,visible:Wme,prefixCls:tme,onClose:o0e,mousePosition:Zme,src:kme,alt:$_,imageInfo:{width:ame,height:ome},fallback:rme,getContainer:Pme,icons:Nme,movable:Mme,scaleStep:Ime,minScale:wme,maxScale:Ome,rootClassName:gme,imageRender:Ame,imgCommonProps:u0e,toolbarRender:Fme},Bme)))};ImageInternal.PreviewGroup=Group;process.env.NODE_ENV!=="production"&&(ImageInternal.displayName="Image");var RotateLeftOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},RotateLeftOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:RotateLeftOutlined$1}))},RefIcon$k=React__namespace.forwardRef(RotateLeftOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$k.displayName="RotateLeftOutlined");var RotateRightOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},RotateRightOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:RotateRightOutlined$1}))},RefIcon$j=React__namespace.forwardRef(RotateRightOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$j.displayName="RotateRightOutlined");var SwapOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},SwapOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:SwapOutlined$1}))},RefIcon$i=React__namespace.forwardRef(SwapOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$i.displayName="SwapOutlined");var ZoomInOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},ZoomInOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:ZoomInOutlined$1}))},RefIcon$h=React__namespace.forwardRef(ZoomInOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$h.displayName="ZoomInOutlined");var ZoomOutOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},ZoomOutOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:ZoomOutOutlined$1}))},RefIcon$g=React__namespace.forwardRef(ZoomOutOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$g.displayName="ZoomOutOutlined");const genBoxStyle=Ff=>({position:Ff||"absolute",inset:0}),genImageMaskStyle=Ff=>{const{iconCls:kh,motionDurationSlow:x_,paddingXXS:$_,marginXXS:B_,prefixCls:$P,colorTextLightSolid:zP}=Ff;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:zP,background:new TinyColor("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${x_}`,[`.${$P}-mask-info`]:Object.assign(Object.assign({},textEllipsis),{padding:`0 ${unit$1($_)}`,[kh]:{marginInlineEnd:B_,svg:{verticalAlign:"baseline"}}})}},genPreviewOperationsStyle=Ff=>{const{previewCls:kh,modalMaskBg:x_,paddingSM:$_,marginXL:B_,margin:$P,paddingLG:zP,previewOperationColorDisabled:eme,previewOperationHoverColor:tme,motionDurationSlow:nme,iconCls:rme,colorTextLightSolid:ame}=Ff,ome=new TinyColor(x_).setAlpha(.1),ime=ome.clone().setAlpha(.2);return{[`${kh}-footer`]:{position:"fixed",bottom:B_,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Ff.previewOperationColor},[`${kh}-progress`]:{marginBottom:$P},[`${kh}-close`]:{position:"fixed",top:B_,right:{_skip_check_:!0,value:B_},display:"flex",color:ame,backgroundColor:ome.toRgbString(),borderRadius:"50%",padding:$_,outline:0,border:0,cursor:"pointer",transition:`all ${nme}`,"&:hover":{backgroundColor:ime.toRgbString()},[`& > ${rme}`]:{fontSize:Ff.previewOperationSize}},[`${kh}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${unit$1(zP)}`,backgroundColor:ome.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:$_,padding:$_,cursor:"pointer",transition:`all ${nme}`,userSelect:"none",[`&:not(${kh}-operations-operation-disabled):hover > ${rme}`]:{color:tme},"&-disabled":{color:eme,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${rme}`]:{fontSize:Ff.previewOperationSize}}}}},genPreviewSwitchStyle=Ff=>{const{modalMaskBg:kh,iconCls:x_,previewOperationColorDisabled:$_,previewCls:B_,zIndexPopup:$P,motionDurationSlow:zP}=Ff,eme=new TinyColor(kh).setAlpha(.1),tme=eme.clone().setAlpha(.2);return{[`${B_}-switch-left, ${B_}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Ff.calc($P).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:Ff.imagePreviewSwitchSize,height:Ff.imagePreviewSwitchSize,marginTop:Ff.calc(Ff.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:Ff.previewOperationColor,background:eme.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${zP}`,userSelect:"none","&:hover":{background:tme.toRgbString()},"&-disabled":{"&, &:hover":{color:$_,background:"transparent",cursor:"not-allowed",[`> ${x_}`]:{cursor:"not-allowed"}}},[`> ${x_}`]:{fontSize:Ff.previewOperationSize}},[`${B_}-switch-left`]:{insetInlineStart:Ff.marginSM},[`${B_}-switch-right`]:{insetInlineEnd:Ff.marginSM}}},genImagePreviewStyle=Ff=>{const{motionEaseOut:kh,previewCls:x_,motionDurationSlow:$_,componentCls:B_}=Ff;return[{[`${B_}-preview-root`]:{[x_]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${x_}-body`]:Object.assign(Object.assign({},genBoxStyle()),{overflow:"hidden"}),[`${x_}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${$_} ${kh} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},genBoxStyle()),{transition:`transform ${$_} ${kh} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${x_}-moving`]:{[`${x_}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${B_}-preview-root`]:{[`${x_}-wrap`]:{zIndex:Ff.zIndexPopup}}},{[`${B_}-preview-operations-wrapper`]:{position:"fixed",zIndex:Ff.calc(Ff.zIndexPopup).add(1).equal()},"&":[genPreviewOperationsStyle(Ff),genPreviewSwitchStyle(Ff)]}]},genImageStyle=Ff=>{const{componentCls:kh}=Ff;return{[kh]:{position:"relative",display:"inline-block",[`${kh}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${kh}-img-placeholder`]:{backgroundColor:Ff.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${kh}-mask`]:Object.assign({},genImageMaskStyle(Ff)),[`${kh}-mask:hover`]:{opacity:1},[`${kh}-placeholder`]:Object.assign({},genBoxStyle())}}},genPreviewMotion=Ff=>{const{previewCls:kh}=Ff;return{[`${kh}-root`]:initZoomMotion(Ff,"zoom"),"&":initFadeMotion(Ff,!0)}},prepareComponentToken$5=Ff=>({zIndexPopup:Ff.zIndexPopupBase+80,previewOperationColor:new TinyColor(Ff.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new TinyColor(Ff.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new TinyColor(Ff.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Ff.fontSizeIcon*1.5}),useStyle$5=genStyleHooks("Image",Ff=>{const kh=`${Ff.componentCls}-preview`,x_=merge(Ff,{previewCls:kh,modalMaskBg:new TinyColor("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Ff.controlHeightLG});return[genImageStyle(x_),genImagePreviewStyle(x_),genModalMaskStyle(merge(x_,{componentCls:kh})),genPreviewMotion(x_)]},prepareComponentToken$5);var __rest$8=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const icons={rotateLeft:React__namespace.createElement(RefIcon$k,null),rotateRight:React__namespace.createElement(RefIcon$j,null),zoomIn:React__namespace.createElement(RefIcon$h,null),zoomOut:React__namespace.createElement(RefIcon$g,null),close:React__namespace.createElement(RefIcon$z,null),left:React__namespace.createElement(RefIcon$s,null),right:React__namespace.createElement(RefIcon$t,null),flipX:React__namespace.createElement(RefIcon$i,null),flipY:React__namespace.createElement(RefIcon$i,{rotate:90})},InternalPreviewGroup=Ff=>{var{previewPrefixCls:kh,preview:x_}=Ff,$_=__rest$8(Ff,["previewPrefixCls","preview"]);const{getPrefixCls:B_}=React__namespace.useContext(ConfigContext),$P=B_("image",kh),zP=`${$P}-preview`,eme=B_(),tme=useCSSVarCls($P),[nme,rme,ame]=useStyle$5($P,tme),[ome]=useZIndex("ImagePreview",typeof x_=="object"?x_.zIndex:void 0),ime=React__namespace.useMemo(()=>{var cme;if(x_===!1)return x_;const ume=typeof x_=="object"?x_:{},sme=classNames(rme,ame,tme,(cme=ume.rootClassName)!==null&&cme!==void 0?cme:"");return Object.assign(Object.assign({},ume),{transitionName:getTransitionName(eme,"zoom",ume.transitionName),maskTransitionName:getTransitionName(eme,"fade",ume.maskTransitionName),rootClassName:sme,zIndex:ome})},[x_]);return nme(React__namespace.createElement(ImageInternal.PreviewGroup,Object.assign({preview:ime,previewPrefixCls:zP,icons},$_)))},PreviewGroup=InternalPreviewGroup;var __rest$7=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const Image$1=Ff=>{var kh;const{prefixCls:x_,preview:$_,className:B_,rootClassName:$P,style:zP}=Ff,eme=__rest$7(Ff,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:tme,locale:nme=localeValues,getPopupContainer:rme,image:ame}=React__namespace.useContext(ConfigContext),ome=tme("image",x_),ime=tme(),cme=nme.Image||localeValues.Image,ume=useCSSVarCls(ome),[sme,fme,lme]=useStyle$5(ome,ume),hme=classNames($P,fme,lme,ume),pme=classNames(B_,fme,ame==null?void 0:ame.className),[gme]=useZIndex("ImagePreview",typeof $_=="object"?$_.zIndex:void 0),yme=React__namespace.useMemo(()=>{var bme;if($_===!1)return $_;const Sme=typeof $_=="object"?$_:{},{getContainer:_me,closeIcon:Cme}=Sme,Eme=__rest$7(Sme,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:React__namespace.createElement("div",{className:`${ome}-mask-info`},React__namespace.createElement(RefIcon$p,null),cme==null?void 0:cme.preview),icons},Eme),{getContainer:_me??rme,transitionName:getTransitionName(ime,"zoom",Sme.transitionName),maskTransitionName:getTransitionName(ime,"fade",Sme.maskTransitionName),zIndex:gme,closeIcon:Cme??((bme=ame==null?void 0:ame.preview)===null||bme===void 0?void 0:bme.closeIcon)})},[$_,cme,(kh=ame==null?void 0:ame.preview)===null||kh===void 0?void 0:kh.closeIcon]),mme=Object.assign(Object.assign({},ame==null?void 0:ame.style),zP);return sme(React__namespace.createElement(ImageInternal,Object.assign({prefixCls:ome,preview:yme,rootClassName:hme,className:pme,style:mme},eme)))};Image$1.PreviewGroup=PreviewGroup;process.env.NODE_ENV!=="production"&&(Image$1.displayName="Image");function Progress$1(Ff){let{percent:kh,prefixCls:x_}=Ff;const $_=`${x_}-dot`,B_=`${$_}-holder`,$P=`${B_}-hidden`,[zP,eme]=React__namespace.useState(!1);useLayoutEffect$1(()=>{kh!==0&&eme(!0)},[kh!==0]);const tme=Math.max(Math.min(kh,100),0),nme=100,rme=nme/5,ame=nme/2-rme/2,ome=ame*2*Math.PI,ime=(cme,ume)=>React__namespace.createElement("circle",{className:classNames(cme,`${$_}-circle`),r:ame,cx:"50",cy:"50",strokeWidth:rme,style:ume});return zP?React__namespace.createElement("span",{className:classNames(B_,`${$_}-progress`,tme<=0&&$P)},React__namespace.createElement("svg",{viewBox:`0 0 ${nme} ${nme}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":tme},ime(`${$_}-circle-bg`),ime("",{strokeDasharray:`${ome*tme/100} ${ome*(100-tme)/100}`,strokeDashoffset:`${ome/4}`}))):null}function Looper(Ff){const{prefixCls:kh,percent:x_=0}=Ff,$_=`${kh}-dot`,B_=`${$_}-holder`,$P=`${B_}-hidden`;return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("span",{className:classNames(B_,x_>0&&$P)},React__namespace.createElement("span",{className:classNames($_,`${kh}-dot-spin`)},[1,2,3,4].map(zP=>React__namespace.createElement("i",{className:`${kh}-dot-item`,key:zP})))),React__namespace.createElement(Progress$1,{prefixCls:kh,percent:x_}))}function Indicator(Ff){const{prefixCls:kh,indicator:x_,percent:$_}=Ff,B_=`${kh}-dot`;return x_&&React__namespace.isValidElement(x_)?cloneElement(x_,{className:classNames(x_.props.className,B_),percent:$_}):React__namespace.createElement(Looper,{prefixCls:kh,percent:$_})}const antSpinMove=new Keyframe("antSpinMove",{to:{opacity:1}}),antRotate=new Keyframe("antRotate",{to:{transform:"rotate(405deg)"}}),genSpinStyle=Ff=>{const{componentCls:kh,calc:x_}=Ff;return{[`${kh}`]:Object.assign(Object.assign({},resetComponent(Ff)),{position:"absolute",display:"none",color:Ff.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${Ff.motionDurationSlow} ${Ff.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${kh}-text`]:{fontSize:Ff.fontSize,paddingTop:x_(x_(Ff.dotSize).sub(Ff.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:Ff.colorBgMask,zIndex:Ff.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${Ff.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[kh]:{[`${kh}-dot-holder`]:{color:Ff.colorWhite},[`${kh}-text`]:{color:Ff.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${kh}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:Ff.contentHeight,[`${kh}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:x_(Ff.dotSize).mul(-1).div(2).equal()},[`${kh}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${Ff.colorBgContainer}`},[`&${kh}-show-text ${kh}-dot`]:{marginTop:x_(Ff.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${kh}-dot`]:{margin:x_(Ff.dotSizeSM).mul(-1).div(2).equal()},[`${kh}-text`]:{paddingTop:x_(x_(Ff.dotSizeSM).sub(Ff.fontSize)).div(2).add(2).equal()},[`&${kh}-show-text ${kh}-dot`]:{marginTop:x_(Ff.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${kh}-dot`]:{margin:x_(Ff.dotSizeLG).mul(-1).div(2).equal()},[`${kh}-text`]:{paddingTop:x_(x_(Ff.dotSizeLG).sub(Ff.fontSize)).div(2).add(2).equal()},[`&${kh}-show-text ${kh}-dot`]:{marginTop:x_(Ff.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${kh}-container`]:{position:"relative",transition:`opacity ${Ff.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:Ff.colorBgContainer,opacity:0,transition:`all ${Ff.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${kh}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:Ff.spinDotDefault},[`${kh}-dot-progress`]:{position:"absolute",top:0,insetInlineStart:0},[`${kh}-dot-holder`]:{width:"1em",height:"1em",fontSize:Ff.dotSize,display:"inline-block",transition:`transform ${Ff.motionDurationSlow} ease, opacity ${Ff.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:Ff.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${kh}-dot-progress`]:{position:"absolute",top:0,insetInlineStart:0},[`${kh}-dot`]:{position:"relative",display:"inline-block",fontSize:Ff.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:x_(Ff.dotSize).sub(x_(Ff.marginXXS).div(2)).div(2).equal(),height:x_(Ff.dotSize).sub(x_(Ff.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:antSpinMove,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:antRotate,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map($_=>`${$_} ${Ff.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:Ff.colorFillSecondary}},[`&-sm ${kh}-dot`]:{fontSize:Ff.dotSizeSM},[`&-sm ${kh}-dot-holder`]:{i:{width:x_(x_(Ff.dotSizeSM).sub(x_(Ff.marginXXS).div(2))).div(2).equal(),height:x_(x_(Ff.dotSizeSM).sub(x_(Ff.marginXXS).div(2))).div(2).equal()}},[`&-lg ${kh}-dot`]:{fontSize:Ff.dotSizeLG},[`&-lg ${kh}-dot-holder`]:{i:{width:x_(x_(Ff.dotSizeLG).sub(Ff.marginXXS)).div(2).equal(),height:x_(x_(Ff.dotSizeLG).sub(Ff.marginXXS)).div(2).equal()}},[`&${kh}-show-text ${kh}-text`]:{display:"block"}})}},prepareComponentToken$4=Ff=>{const{controlHeightLG:kh,controlHeight:x_}=Ff;return{contentHeight:400,dotSize:kh/2,dotSizeSM:kh*.35,dotSizeLG:x_}},useStyle$4=genStyleHooks("Spin",Ff=>{const kh=merge(Ff,{spinDotDefault:Ff.colorTextDescription});return[genSpinStyle(kh)]},prepareComponentToken$4),AUTO_INTERVAL=200,STEP_BUCKETS=[[30,.05],[70,.03],[96,.01]];function usePercent(Ff,kh){const[x_,$_]=React__namespace.useState(0),B_=React__namespace.useRef(),$P=kh==="auto";return React__namespace.useEffect(()=>($P&&Ff&&($_(0),B_.current=setInterval(()=>{$_(zP=>{const eme=100-zP;for(let tme=0;tme<STEP_BUCKETS.length;tme+=1){const[nme,rme]=STEP_BUCKETS[tme];if(zP<=nme)return zP+eme*rme}return zP})},AUTO_INTERVAL)),()=>{clearInterval(B_.current)}),[$P,Ff]),$P?x_:kh}var __rest$6=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};let defaultIndicator;function shouldDelay(Ff,kh){return!!Ff&&!!kh&&!isNaN(Number(kh))}const Spin=Ff=>{const{prefixCls:kh,spinning:x_=!0,delay:$_=0,className:B_,rootClassName:$P,size:zP="default",tip:eme,wrapperClassName:tme,style:nme,children:rme,fullscreen:ame=!1,indicator:ome,percent:ime}=Ff,cme=__rest$6(Ff,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:ume}=React__namespace.useContext(ConfigContext),sme=ume("spin",kh),[fme,lme,hme]=useStyle$4(sme),[pme,gme]=React__namespace.useState(()=>x_&&!shouldDelay(x_,$_)),yme=usePercent(pme,ime);React__namespace.useEffect(()=>{if(x_){const Rme=debounce($_,()=>{gme(!0)});return Rme(),()=>{var Pme;(Pme=Rme==null?void 0:Rme.cancel)===null||Pme===void 0||Pme.call(Rme)}}gme(!1)},[$_,x_]);const mme=React__namespace.useMemo(()=>typeof rme<"u"&&!ame,[rme,ame]);if(process.env.NODE_ENV!=="production"){const Rme=devUseWarning("Spin");process.env.NODE_ENV!=="production"&&Rme(!eme||mme||ame,"usage","`tip` only work in nest or fullscreen pattern.")}const{direction:bme,spin:Sme}=React__namespace.useContext(ConfigContext),_me=classNames(sme,Sme==null?void 0:Sme.className,{[`${sme}-sm`]:zP==="small",[`${sme}-lg`]:zP==="large",[`${sme}-spinning`]:pme,[`${sme}-show-text`]:!!eme,[`${sme}-rtl`]:bme==="rtl"},B_,!ame&&$P,lme,hme),Cme=classNames(`${sme}-container`,{[`${sme}-blur`]:pme}),Eme=Object.assign(Object.assign({},Sme==null?void 0:Sme.style),nme),Tme=React__namespace.createElement("div",Object.assign({},cme,{style:Eme,className:_me,"aria-live":"polite","aria-busy":pme}),React__namespace.createElement(Indicator,{prefixCls:sme,indicator:ome??defaultIndicator,percent:yme}),eme&&(mme||ame)?React__namespace.createElement("div",{className:`${sme}-text`},eme):null);return fme(mme?React__namespace.createElement("div",Object.assign({},cme,{className:classNames(`${sme}-nested-loading`,tme,lme,hme)}),pme&&React__namespace.createElement("div",{key:"loading"},Tme),React__namespace.createElement("div",{className:Cme,key:"container"},rme)):ame?React__namespace.createElement("div",{className:classNames(`${sme}-fullscreen`,{[`${sme}-fullscreen-show`]:pme},$P,lme,hme)},Tme):Tme)};Spin.setDefaultIndicator=Ff=>{defaultIndicator=Ff};process.env.NODE_ENV!=="production"&&(Spin.displayName="Spin");var defaultProps={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},useTransitionDuration=function(){var kh=React.useRef([]),x_=React.useRef(null);return React.useEffect(function(){var $_=Date.now(),B_=!1;kh.current.forEach(function($P){if($P){B_=!0;var zP=$P.style;zP.transitionDuration=".3s, .3s, .3s, .06s",x_.current&&$_-x_.current<100&&(zP.transitionDuration="0s, 0s")}}),B_&&(x_.current=Date.now())}),kh.current};process.env.NODE_ENV;var uuid=0,isBrowserClient=process.env.NODE_ENV!=="test"&&canUseDom();function getUUID(){var Ff;return isBrowserClient?(Ff=uuid,uuid+=1):Ff="TEST_OR_SSR",Ff}const useId=function(Ff){var kh=React__namespace.useState(),x_=_slicedToArray(kh,2),$_=x_[0],B_=x_[1];return React__namespace.useEffect(function(){B_("rc_progress_".concat(getUUID()))},[]),Ff||$_};var Block=function(kh){var x_=kh.bg,$_=kh.children;return React__namespace.createElement("div",{style:{width:"100%",height:"100%",background:x_}},$_)};function getPtgColors(Ff,kh){return Object.keys(Ff).map(function(x_){var $_=parseFloat(x_),B_="".concat(Math.floor($_*kh),"%");return"".concat(Ff[x_]," ").concat(B_)})}var PtgCircle=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.prefixCls,$_=Ff.color,B_=Ff.gradientId,$P=Ff.radius,zP=Ff.style,eme=Ff.ptg,tme=Ff.strokeLinecap,nme=Ff.strokeWidth,rme=Ff.size,ame=Ff.gapDegree,ome=$_&&_typeof($_)==="object",ime=ome?"#FFF":void 0,cme=rme/2,ume=React__namespace.createElement("circle",{className:"".concat(x_,"-circle-path"),r:$P,cx:cme,cy:cme,stroke:ime,strokeLinecap:tme,strokeWidth:nme,opacity:eme===0?0:1,style:zP,ref:kh});if(!ome)return ume;var sme="".concat(B_,"-conic"),fme=ame?"".concat(180+ame/2,"deg"):"0deg",lme=getPtgColors($_,(360-ame)/360),hme=getPtgColors($_,1),pme="conic-gradient(from ".concat(fme,", ").concat(lme.join(", "),")"),gme="linear-gradient(to ".concat(ame?"bottom":"top",", ").concat(hme.join(", "),")");return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("mask",{id:sme},ume),React__namespace.createElement("foreignObject",{x:0,y:0,width:rme,height:rme,mask:"url(#".concat(sme,")")},React__namespace.createElement(Block,{bg:gme},React__namespace.createElement(Block,{bg:pme}))))});process.env.NODE_ENV!=="production"&&(PtgCircle.displayName="PtgCircle");var VIEW_BOX_SIZE=100,getCircleStyle=function(kh,x_,$_,B_,$P,zP,eme,tme,nme,rme){var ame=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,ome=$_/100*360*((360-zP)/360),ime=zP===0?0:{bottom:0,top:180,left:90,right:-90}[eme],cme=(100-B_)/100*x_;nme==="round"&&B_!==100&&(cme+=rme/2,cme>=x_&&(cme=x_-.01));var ume=VIEW_BOX_SIZE/2;return{stroke:typeof tme=="string"?tme:void 0,strokeDasharray:"".concat(x_,"px ").concat(kh),strokeDashoffset:cme+ame,transform:"rotate(".concat($P+ome+ime,"deg)"),transformOrigin:"".concat(ume,"px ").concat(ume,"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}},_excluded$9=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function toArray$1(Ff){var kh=Ff??[];return Array.isArray(kh)?kh:[kh]}var Circle$1=function(kh){var x_=_objectSpread2(_objectSpread2({},defaultProps),kh),$_=x_.id,B_=x_.prefixCls,$P=x_.steps,zP=x_.strokeWidth,eme=x_.trailWidth,tme=x_.gapDegree,nme=tme===void 0?0:tme,rme=x_.gapPosition,ame=x_.trailColor,ome=x_.strokeLinecap,ime=x_.style,cme=x_.className,ume=x_.strokeColor,sme=x_.percent,fme=_objectWithoutProperties(x_,_excluded$9),lme=VIEW_BOX_SIZE/2,hme=useId($_),pme="".concat(hme,"-gradient"),gme=lme-zP/2,yme=Math.PI*2*gme,mme=nme>0?90+nme/2:-90,bme=yme*((360-nme)/360),Sme=_typeof($P)==="object"?$P:{count:$P,gap:2},_me=Sme.count,Cme=Sme.gap,Eme=toArray$1(sme),Tme=toArray$1(ume),Rme=Tme.find(function(wme){return wme&&_typeof(wme)==="object"}),Pme=Rme&&_typeof(Rme)==="object",$me=Pme?"butt":ome,Dme=getCircleStyle(yme,bme,0,100,mme,nme,rme,ame,$me,zP),Mme=useTransitionDuration(),Nme=function(){var Ome=0;return Eme.map(function(Ame,Fme){var Bme=Tme[Fme]||Tme[Tme.length-1],kme=getCircleStyle(yme,bme,Ome,Ame,mme,nme,rme,Bme,$me,zP);return Ome+=Ame,React__namespace.createElement(PtgCircle,{key:Fme,color:Bme,ptg:Ame,radius:gme,prefixCls:B_,gradientId:pme,style:kme,strokeLinecap:$me,strokeWidth:zP,gapDegree:nme,ref:function(Hme){Mme[Fme]=Hme},size:VIEW_BOX_SIZE})}).reverse()},Ime=function(){var Ome=Math.round(_me*(Eme[0]/100)),Ame=100/_me,Fme=0;return new Array(_me).fill(null).map(function(Bme,kme){var Lme=kme<=Ome-1?Tme[0]:ame,Hme=Lme&&_typeof(Lme)==="object"?"url(#".concat(pme,")"):void 0,Wme=getCircleStyle(yme,bme,Fme,Ame,mme,nme,rme,Lme,"butt",zP,Cme);return Fme+=(bme-Wme.strokeDashoffset+Cme)*100/bme,React__namespace.createElement("circle",{key:kme,className:"".concat(B_,"-circle-path"),r:gme,cx:lme,cy:lme,stroke:Hme,strokeWidth:zP,opacity:1,style:Wme,ref:function(Vme){Mme[kme]=Vme}})})};return React__namespace.createElement("svg",_extends({className:classNames("".concat(B_,"-circle"),cme),viewBox:"0 0 ".concat(VIEW_BOX_SIZE," ").concat(VIEW_BOX_SIZE),style:ime,id:$_,role:"presentation"},fme),!_me&&React__namespace.createElement("circle",{className:"".concat(B_,"-circle-trail"),r:gme,cx:lme,cy:lme,stroke:ame,strokeLinecap:$me,strokeWidth:eme||zP,style:Dme}),_me?Ime():Nme())};process.env.NODE_ENV!=="production"&&(Circle$1.displayName="Circle");function validProgress(Ff){return!Ff||Ff<0?0:Ff>100?100:Ff}function getSuccessPercent(Ff){let{success:kh,successPercent:x_}=Ff,$_=x_;return kh&&"progress"in kh&&($_=kh.progress),kh&&"percent"in kh&&($_=kh.percent),$_}const getPercentage=Ff=>{let{percent:kh,success:x_,successPercent:$_}=Ff;const B_=validProgress(getSuccessPercent({success:x_,successPercent:$_}));return[B_,validProgress(validProgress(kh)-B_)]},getStrokeColor=Ff=>{let{success:kh={},strokeColor:x_}=Ff;const{strokeColor:$_}=kh;return[$_||presetPrimaryColors$1.green,x_||null]},getSize=(Ff,kh,x_)=>{var $_,B_,$P,zP;let eme=-1,tme=-1;if(kh==="step"){const nme=x_.steps,rme=x_.strokeWidth;typeof Ff=="string"||typeof Ff>"u"?(eme=Ff==="small"?2:14,tme=rme??8):typeof Ff=="number"?[eme,tme]=[Ff,Ff]:[eme=14,tme=8]=Array.isArray(Ff)?Ff:[Ff.width,Ff.height],eme*=nme}else if(kh==="line"){const nme=x_==null?void 0:x_.strokeWidth;typeof Ff=="string"||typeof Ff>"u"?tme=nme||(Ff==="small"?6:8):typeof Ff=="number"?[eme,tme]=[Ff,Ff]:[eme=-1,tme=8]=Array.isArray(Ff)?Ff:[Ff.width,Ff.height]}else(kh==="circle"||kh==="dashboard")&&(typeof Ff=="string"||typeof Ff>"u"?[eme,tme]=Ff==="small"?[60,60]:[120,120]:typeof Ff=="number"?[eme,tme]=[Ff,Ff]:Array.isArray(Ff)&&(eme=(B_=($_=Ff[0])!==null&&$_!==void 0?$_:Ff[1])!==null&&B_!==void 0?B_:120,tme=(zP=($P=Ff[0])!==null&&$P!==void 0?$P:Ff[1])!==null&&zP!==void 0?zP:120));return[eme,tme]},CIRCLE_MIN_STROKE_WIDTH=3,getMinPercent=Ff=>CIRCLE_MIN_STROKE_WIDTH/Ff*100,Circle=Ff=>{const{prefixCls:kh,trailColor:x_=null,strokeLinecap:$_="round",gapPosition:B_,gapDegree:$P,width:zP=120,type:eme,children:tme,success:nme,size:rme=zP,steps:ame}=Ff,[ome,ime]=getSize(rme,"circle");let{strokeWidth:cme}=Ff;cme===void 0&&(cme=Math.max(getMinPercent(ome),6));const ume={width:ome,height:ime,fontSize:ome*.15+6},sme=React__namespace.useMemo(()=>{if($P||$P===0)return $P;if(eme==="dashboard")return 75},[$P,eme]),fme=getPercentage(Ff),lme=B_||eme==="dashboard"&&"bottom"||void 0,hme=Object.prototype.toString.call(Ff.strokeColor)==="[object Object]",pme=getStrokeColor({success:nme,strokeColor:Ff.strokeColor}),gme=classNames(`${kh}-inner`,{[`${kh}-circle-gradient`]:hme}),yme=React__namespace.createElement(Circle$1,{steps:ame,percent:ame?fme[1]:fme,strokeWidth:cme,trailWidth:cme,strokeColor:ame?pme[1]:pme,strokeLinecap:$_,trailColor:x_,prefixCls:kh,gapDegree:sme,gapPosition:lme}),mme=ome<=20,bme=React__namespace.createElement("div",{className:gme,style:ume},yme,!mme&&tme);return mme?React__namespace.createElement(Tooltip,{title:tme},bme):bme},LineStrokeColorVar="--progress-line-stroke-color",Percent="--progress-percent",genAntProgressActive=Ff=>{const kh=Ff?"100%":"-100%";return new Keyframe(`antProgress${Ff?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${kh}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${kh}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},genBaseStyle$3=Ff=>{const{componentCls:kh,iconCls:x_}=Ff;return{[kh]:Object.assign(Object.assign({},resetComponent(Ff)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ff.fontSize},[`${kh}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${kh}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Ff.remainingColor,borderRadius:Ff.lineBorderRadius},[`${kh}-inner:not(${kh}-circle-gradient)`]:{[`${kh}-circle-path`]:{stroke:Ff.defaultColor}},[`${kh}-success-bg, ${kh}-bg`]:{position:"relative",background:Ff.defaultColor,borderRadius:Ff.lineBorderRadius,transition:`all ${Ff.motionDurationSlow} ${Ff.motionEaseInOutCirc}`},[`${kh}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${kh}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Ff.marginXXS}},[`${kh}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${LineStrokeColorVar})`]},height:"100%",width:`calc(1 / var(${Percent}) * 100%)`,display:"block"},[`&${kh}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${kh}-text-inner`]:{color:Ff.colorWhite,[`&${kh}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${kh}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ff.colorSuccess},[`${kh}-text`]:{display:"inline-block",marginInlineStart:Ff.marginXS,color:Ff.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[x_]:{fontSize:Ff.fontSize},[`&${kh}-text-outer`]:{width:"max-content"},[`&${kh}-text-outer${kh}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Ff.marginXS}},[`${kh}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${unit$1(Ff.paddingXXS)}`,[`&${kh}-text-start`]:{justifyContent:"start"},[`&${kh}-text-end`]:{justifyContent:"end"}},[`&${kh}-status-active`]:{[`${kh}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ff.colorBgContainer,borderRadius:Ff.lineBorderRadius,opacity:0,animationName:genAntProgressActive(),animationDuration:Ff.progressActiveMotionDuration,animationTimingFunction:Ff.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${kh}-rtl${kh}-status-active`]:{[`${kh}-bg::before`]:{animationName:genAntProgressActive(!0)}},[`&${kh}-status-exception`]:{[`${kh}-bg`]:{backgroundColor:Ff.colorError},[`${kh}-text`]:{color:Ff.colorError}},[`&${kh}-status-exception ${kh}-inner:not(${kh}-circle-gradient)`]:{[`${kh}-circle-path`]:{stroke:Ff.colorError}},[`&${kh}-status-success`]:{[`${kh}-bg`]:{backgroundColor:Ff.colorSuccess},[`${kh}-text`]:{color:Ff.colorSuccess}},[`&${kh}-status-success ${kh}-inner:not(${kh}-circle-gradient)`]:{[`${kh}-circle-path`]:{stroke:Ff.colorSuccess}}})}},genCircleStyle=Ff=>{const{componentCls:kh,iconCls:x_}=Ff;return{[kh]:{[`${kh}-circle-trail`]:{stroke:Ff.remainingColor},[`&${kh}-circle ${kh}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${kh}-circle ${kh}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ff.circleTextColor,fontSize:Ff.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[x_]:{fontSize:Ff.circleIconFontSize}},[`${kh}-circle&-status-exception`]:{[`${kh}-text`]:{color:Ff.colorError}},[`${kh}-circle&-status-success`]:{[`${kh}-text`]:{color:Ff.colorSuccess}}},[`${kh}-inline-circle`]:{lineHeight:1,[`${kh}-inner`]:{verticalAlign:"bottom"}}}},genStepStyle=Ff=>{const{componentCls:kh}=Ff;return{[kh]:{[`${kh}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ff.progressStepMinWidth,marginInlineEnd:Ff.progressStepMarginInlineEnd,backgroundColor:Ff.remainingColor,transition:`all ${Ff.motionDurationSlow}`,"&-active":{backgroundColor:Ff.defaultColor}}}}}},genSmallLine=Ff=>{const{componentCls:kh,iconCls:x_}=Ff;return{[kh]:{[`${kh}-small&-line, ${kh}-small&-line ${kh}-text ${x_}`]:{fontSize:Ff.fontSizeSM}}}},prepareComponentToken$3=Ff=>({circleTextColor:Ff.colorText,defaultColor:Ff.colorInfo,remainingColor:Ff.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Ff.fontSize/Ff.fontSizeSM}em`}),useStyle$3=genStyleHooks("Progress",Ff=>{const kh=Ff.calc(Ff.marginXXS).div(2).equal(),x_=merge(Ff,{progressStepMarginInlineEnd:kh,progressStepMinWidth:kh,progressActiveMotionDuration:"2.4s"});return[genBaseStyle$3(x_),genCircleStyle(x_),genStepStyle(x_),genSmallLine(x_)]},prepareComponentToken$3);var __rest$5=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const sortGradient=Ff=>{let kh=[];return Object.keys(Ff).forEach(x_=>{const $_=parseFloat(x_.replace(/%/g,""));isNaN($_)||kh.push({key:$_,value:Ff[x_]})}),kh=kh.sort((x_,$_)=>x_.key-$_.key),kh.map(x_=>{let{key:$_,value:B_}=x_;return`${B_} ${$_}%`}).join(", ")},handleGradient=(Ff,kh)=>{const{from:x_=presetPrimaryColors$1.blue,to:$_=presetPrimaryColors$1.blue,direction:B_=kh==="rtl"?"to left":"to right"}=Ff,$P=__rest$5(Ff,["from","to","direction"]);if(Object.keys($P).length!==0){const eme=sortGradient($P),tme=`linear-gradient(${B_}, ${eme})`;return{background:tme,[LineStrokeColorVar]:tme}}const zP=`linear-gradient(${B_}, ${x_}, ${$_})`;return{background:zP,[LineStrokeColorVar]:zP}},Line=Ff=>{const{prefixCls:kh,direction:x_,percent:$_,size:B_,strokeWidth:$P,strokeColor:zP,strokeLinecap:eme="round",children:tme,trailColor:nme=null,percentPosition:rme,success:ame}=Ff,{align:ome,type:ime}=rme,cme=zP&&typeof zP!="string"?handleGradient(zP,x_):{[LineStrokeColorVar]:zP,background:zP},ume=eme==="square"||eme==="butt"?0:void 0,sme=B_??[-1,$P||(B_==="small"?6:8)],[fme,lme]=getSize(sme,"line",{strokeWidth:$P});process.env.NODE_ENV!=="production"&&devUseWarning("Progress").deprecated(!("strokeWidth"in Ff),"strokeWidth","size");const hme={backgroundColor:nme||void 0,borderRadius:ume},pme=Object.assign(Object.assign({width:`${validProgress($_)}%`,height:lme,borderRadius:ume},cme),{[Percent]:validProgress($_)/100}),gme=getSuccessPercent(Ff),yme={width:`${validProgress(gme)}%`,height:lme,borderRadius:ume,backgroundColor:ame==null?void 0:ame.strokeColor},mme={width:fme<0?"100%":fme},bme=React__namespace.createElement("div",{className:`${kh}-inner`,style:hme},React__namespace.createElement("div",{className:classNames(`${kh}-bg`,`${kh}-bg-${ime}`),style:pme},ime==="inner"&&tme),gme!==void 0&&React__namespace.createElement("div",{className:`${kh}-success-bg`,style:yme})),Sme=ime==="outer"&&ome==="start",_me=ime==="outer"&&ome==="end";return ime==="outer"&&ome==="center"?React__namespace.createElement("div",{className:`${kh}-layout-bottom`},bme,tme):React__namespace.createElement("div",{className:`${kh}-outer`,style:mme},Sme&&tme,bme,_me&&tme)},Steps=Ff=>{const{size:kh,steps:x_,percent:$_=0,strokeWidth:B_=8,strokeColor:$P,trailColor:zP=null,prefixCls:eme,children:tme}=Ff,nme=Math.round(x_*($_/100)),ame=kh??[kh==="small"?2:14,B_],[ome,ime]=getSize(ame,"step",{steps:x_,strokeWidth:B_}),cme=ome/x_,ume=new Array(x_);for(let sme=0;sme<x_;sme++){const fme=Array.isArray($P)?$P[sme]:$P;ume[sme]=React__namespace.createElement("div",{key:sme,className:classNames(`${eme}-steps-item`,{[`${eme}-steps-item-active`]:sme<=nme-1}),style:{backgroundColor:sme<=nme-1?fme:zP,width:cme,height:ime}})}return React__namespace.createElement("div",{className:`${eme}-steps-outer`},ume,tme)};var __rest$4=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const ProgressStatuses=["normal","exception","active","success"],Progress=React__namespace.forwardRef((Ff,kh)=>{const{prefixCls:x_,className:$_,rootClassName:B_,steps:$P,strokeColor:zP,percent:eme=0,size:tme="default",showInfo:nme=!0,type:rme="line",status:ame,format:ome,style:ime,percentPosition:cme={}}=Ff,ume=__rest$4(Ff,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:sme="end",type:fme="outer"}=cme,lme=Array.isArray(zP)?zP[0]:zP,hme=typeof zP=="string"||Array.isArray(zP)?zP:void 0,pme=React__namespace.useMemo(()=>{if(lme){const Nme=typeof lme=="string"?lme:Object.values(lme)[0];return new TinyColor(Nme).isLight()}return!1},[zP]),gme=React__namespace.useMemo(()=>{var Nme,Ime;const wme=getSuccessPercent(Ff);return parseInt(wme!==void 0?(Nme=wme??0)===null||Nme===void 0?void 0:Nme.toString():(Ime=eme??0)===null||Ime===void 0?void 0:Ime.toString(),10)},[eme,Ff.success,Ff.successPercent]),yme=React__namespace.useMemo(()=>!ProgressStatuses.includes(ame)&&gme>=100?"success":ame||"normal",[ame,gme]),{getPrefixCls:mme,direction:bme,progress:Sme}=React__namespace.useContext(ConfigContext),_me=mme("progress",x_),[Cme,Eme,Tme]=useStyle$3(_me),Rme=rme==="line",Pme=Rme&&!$P,$me=React__namespace.useMemo(()=>{if(!nme)return null;const Nme=getSuccessPercent(Ff);let Ime;const wme=ome||(Ame=>`${Ame}%`),Ome=Rme&&pme&&fme==="inner";return fme==="inner"||ome||yme!=="exception"&&yme!=="success"?Ime=wme(validProgress(eme),validProgress(Nme)):yme==="exception"?Ime=Rme?React__namespace.createElement(RefIcon$A,null):React__namespace.createElement(RefIcon$z,null):yme==="success"&&(Ime=Rme?React__namespace.createElement(RefIcon$B,null):React__namespace.createElement(RefIcon$w,null)),React__namespace.createElement("span",{className:classNames(`${_me}-text`,{[`${_me}-text-bright`]:Ome,[`${_me}-text-${sme}`]:Pme,[`${_me}-text-${fme}`]:Pme}),title:typeof Ime=="string"?Ime:void 0},Ime)},[nme,eme,gme,yme,rme,_me,ome]);if(process.env.NODE_ENV!=="production"){const Nme=devUseWarning("Progress");Nme.deprecated(!("successPercent"in Ff),"successPercent","success.percent"),Nme.deprecated(!("width"in Ff),"width","size"),(rme==="circle"||rme==="dashboard")&&(Array.isArray(tme)?process.env.NODE_ENV!=="production"&&Nme(!1,"usage",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'):typeof tme=="object"&&process.env.NODE_ENV!=="production"&&Nme(!1,"usage",'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')),Ff.success&&"progress"in Ff.success&&Nme.deprecated(!1,"success.progress","success.percent")}let Dme;rme==="line"?Dme=$P?React__namespace.createElement(Steps,Object.assign({},Ff,{strokeColor:hme,prefixCls:_me,steps:typeof $P=="object"?$P.count:$P}),$me):React__namespace.createElement(Line,Object.assign({},Ff,{strokeColor:lme,prefixCls:_me,direction:bme,percentPosition:{align:sme,type:fme}}),$me):(rme==="circle"||rme==="dashboard")&&(Dme=React__namespace.createElement(Circle,Object.assign({},Ff,{strokeColor:lme,prefixCls:_me,progressStatus:yme}),$me));const Mme=classNames(_me,`${_me}-status-${yme}`,{[`${_me}-${rme==="dashboard"&&"circle"||rme}`]:rme!=="line",[`${_me}-inline-circle`]:rme==="circle"&&getSize(tme,"circle")[0]<=20,[`${_me}-line`]:Pme,[`${_me}-line-align-${sme}`]:Pme,[`${_me}-line-position-${fme}`]:Pme,[`${_me}-steps`]:$P,[`${_me}-show-info`]:nme,[`${_me}-${tme}`]:typeof tme=="string",[`${_me}-rtl`]:bme==="rtl"},Sme==null?void 0:Sme.className,$_,B_,Eme,Tme);return Cme(React__namespace.createElement("div",Object.assign({ref:kh,style:Object.assign(Object.assign({},Sme==null?void 0:Sme.style),ime),className:Mme,role:"progressbar","aria-valuenow":gme},omit(ume,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Dme))});process.env.NODE_ENV!=="production"&&(Progress.displayName="Progress");var _excluded$8=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Switch$2=React__namespace.forwardRef(function(Ff,kh){var x_,$_=Ff.prefixCls,B_=$_===void 0?"rc-switch":$_,$P=Ff.className,zP=Ff.checked,eme=Ff.defaultChecked,tme=Ff.disabled,nme=Ff.loadingIcon,rme=Ff.checkedChildren,ame=Ff.unCheckedChildren,ome=Ff.onClick,ime=Ff.onChange,cme=Ff.onKeyDown,ume=_objectWithoutProperties(Ff,_excluded$8),sme=useMergedState(!1,{value:zP,defaultValue:eme}),fme=_slicedToArray(sme,2),lme=fme[0],hme=fme[1];function pme(bme,Sme){var _me=lme;return tme||(_me=bme,hme(_me),ime==null||ime(_me,Sme)),_me}function gme(bme){bme.which===KeyCode.LEFT?pme(!1,bme):bme.which===KeyCode.RIGHT&&pme(!0,bme),cme==null||cme(bme)}function yme(bme){var Sme=pme(!lme,bme);ome==null||ome(Sme,bme)}var mme=classNames(B_,$P,(x_={},_defineProperty(x_,"".concat(B_,"-checked"),lme),_defineProperty(x_,"".concat(B_,"-disabled"),tme),x_));return React__namespace.createElement("button",_extends({},ume,{type:"button",role:"switch","aria-checked":lme,disabled:tme,className:mme,ref:kh,onKeyDown:gme,onClick:yme}),nme,React__namespace.createElement("span",{className:"".concat(B_,"-inner")},React__namespace.createElement("span",{className:"".concat(B_,"-inner-checked")},rme),React__namespace.createElement("span",{className:"".concat(B_,"-inner-unchecked")},ame)))});Switch$2.displayName="Switch";const genSwitchSmallStyle=Ff=>{const{componentCls:kh,trackHeightSM:x_,trackPadding:$_,trackMinWidthSM:B_,innerMinMarginSM:$P,innerMaxMarginSM:zP,handleSizeSM:eme,calc:tme}=Ff,nme=`${kh}-inner`,rme=unit$1(tme(eme).add(tme($_).mul(2)).equal()),ame=unit$1(tme(zP).mul(2).equal());return{[kh]:{[`&${kh}-small`]:{minWidth:B_,height:x_,lineHeight:unit$1(x_),[`${kh}-inner`]:{paddingInlineStart:zP,paddingInlineEnd:$P,[`${nme}-checked, ${nme}-unchecked`]:{minHeight:x_},[`${nme}-checked`]:{marginInlineStart:`calc(-100% + ${rme} - ${ame})`,marginInlineEnd:`calc(100% - ${rme} + ${ame})`},[`${nme}-unchecked`]:{marginTop:tme(x_).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${kh}-handle`]:{width:eme,height:eme},[`${kh}-loading-icon`]:{top:tme(tme(eme).sub(Ff.switchLoadingIconSize)).div(2).equal(),fontSize:Ff.switchLoadingIconSize},[`&${kh}-checked`]:{[`${kh}-inner`]:{paddingInlineStart:$P,paddingInlineEnd:zP,[`${nme}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${nme}-unchecked`]:{marginInlineStart:`calc(100% - ${rme} + ${ame})`,marginInlineEnd:`calc(-100% + ${rme} - ${ame})`}},[`${kh}-handle`]:{insetInlineStart:`calc(100% - ${unit$1(tme(eme).add($_).equal())})`}},[`&:not(${kh}-disabled):active`]:{[`&:not(${kh}-checked) ${nme}`]:{[`${nme}-unchecked`]:{marginInlineStart:tme(Ff.marginXXS).div(2).equal(),marginInlineEnd:tme(Ff.marginXXS).mul(-1).div(2).equal()}},[`&${kh}-checked ${nme}`]:{[`${nme}-checked`]:{marginInlineStart:tme(Ff.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:tme(Ff.marginXXS).div(2).equal()}}}}}}},genSwitchLoadingStyle=Ff=>{const{componentCls:kh,handleSize:x_,calc:$_}=Ff;return{[kh]:{[`${kh}-loading-icon${Ff.iconCls}`]:{position:"relative",top:$_($_(x_).sub(Ff.fontSize)).div(2).equal(),color:Ff.switchLoadingIconColor,verticalAlign:"top"},[`&${kh}-checked ${kh}-loading-icon`]:{color:Ff.switchColor}}}},genSwitchHandleStyle=Ff=>{const{componentCls:kh,trackPadding:x_,handleBg:$_,handleShadow:B_,handleSize:$P,calc:zP}=Ff,eme=`${kh}-handle`;return{[kh]:{[eme]:{position:"absolute",top:x_,insetInlineStart:x_,width:$P,height:$P,transition:`all ${Ff.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:$_,borderRadius:zP($P).div(2).equal(),boxShadow:B_,transition:`all ${Ff.switchDuration} ease-in-out`,content:'""'}},[`&${kh}-checked ${eme}`]:{insetInlineStart:`calc(100% - ${unit$1(zP($P).add(x_).equal())})`},[`&:not(${kh}-disabled):active`]:{[`${eme}::before`]:{insetInlineEnd:Ff.switchHandleActiveInset,insetInlineStart:0},[`&${kh}-checked ${eme}::before`]:{insetInlineEnd:0,insetInlineStart:Ff.switchHandleActiveInset}}}}},genSwitchInnerStyle=Ff=>{const{componentCls:kh,trackHeight:x_,trackPadding:$_,innerMinMargin:B_,innerMaxMargin:$P,handleSize:zP,calc:eme}=Ff,tme=`${kh}-inner`,nme=unit$1(eme(zP).add(eme($_).mul(2)).equal()),rme=unit$1(eme($P).mul(2).equal());return{[kh]:{[tme]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:$P,paddingInlineEnd:B_,transition:`padding-inline-start ${Ff.switchDuration} ease-in-out, padding-inline-end ${Ff.switchDuration} ease-in-out`,[`${tme}-checked, ${tme}-unchecked`]:{display:"block",color:Ff.colorTextLightSolid,fontSize:Ff.fontSizeSM,transition:`margin-inline-start ${Ff.switchDuration} ease-in-out, margin-inline-end ${Ff.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:x_},[`${tme}-checked`]:{marginInlineStart:`calc(-100% + ${nme} - ${rme})`,marginInlineEnd:`calc(100% - ${nme} + ${rme})`},[`${tme}-unchecked`]:{marginTop:eme(x_).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${kh}-checked ${tme}`]:{paddingInlineStart:B_,paddingInlineEnd:$P,[`${tme}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${tme}-unchecked`]:{marginInlineStart:`calc(100% - ${nme} + ${rme})`,marginInlineEnd:`calc(-100% + ${nme} - ${rme})`}},[`&:not(${kh}-disabled):active`]:{[`&:not(${kh}-checked) ${tme}`]:{[`${tme}-unchecked`]:{marginInlineStart:eme($_).mul(2).equal(),marginInlineEnd:eme($_).mul(-1).mul(2).equal()}},[`&${kh}-checked ${tme}`]:{[`${tme}-checked`]:{marginInlineStart:eme($_).mul(-1).mul(2).equal(),marginInlineEnd:eme($_).mul(2).equal()}}}}}},genSwitchStyle=Ff=>{const{componentCls:kh,trackHeight:x_,trackMinWidth:$_}=Ff;return{[kh]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(Ff)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:$_,height:x_,lineHeight:`${unit$1(x_)}`,verticalAlign:"middle",background:Ff.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ff.motionDurationMid}`,userSelect:"none",[`&:hover:not(${kh}-disabled)`]:{background:Ff.colorTextTertiary}}),genFocusStyle(Ff)),{[`&${kh}-checked`]:{background:Ff.switchColor,[`&:hover:not(${kh}-disabled)`]:{background:Ff.colorPrimaryHover}},[`&${kh}-loading, &${kh}-disabled`]:{cursor:"not-allowed",opacity:Ff.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${kh}-rtl`]:{direction:"rtl"}})}},prepareComponentToken$2=Ff=>{const{fontSize:kh,lineHeight:x_,controlHeight:$_,colorWhite:B_}=Ff,$P=kh*x_,zP=$_/2,eme=2,tme=$P-eme*2,nme=zP-eme*2;return{trackHeight:$P,trackHeightSM:zP,trackMinWidth:tme*2+eme*4,trackMinWidthSM:nme*2+eme*2,trackPadding:eme,handleBg:B_,handleSize:tme,handleSizeSM:nme,handleShadow:`0 2px 4px 0 ${new TinyColor("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:tme/2,innerMaxMargin:tme+eme+eme*2,innerMinMarginSM:nme/2,innerMaxMarginSM:nme+eme+eme*2}},useStyle$2=genStyleHooks("Switch",Ff=>{const kh=merge(Ff,{switchDuration:Ff.motionDurationMid,switchColor:Ff.colorPrimary,switchDisabledOpacity:Ff.opacityLoading,switchLoadingIconSize:Ff.calc(Ff.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Ff.opacityLoading})`,switchHandleActiveInset:"-30%"});return[genSwitchStyle(kh),genSwitchInnerStyle(kh),genSwitchHandleStyle(kh),genSwitchLoadingStyle(kh),genSwitchSmallStyle(kh)]},prepareComponentToken$2);var __rest$3=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const InternalSwitch=React__namespace.forwardRef((Ff,kh)=>{const{prefixCls:x_,size:$_,disabled:B_,loading:$P,className:zP,rootClassName:eme,style:tme,checked:nme,value:rme,defaultChecked:ame,defaultValue:ome,onChange:ime}=Ff,cme=__rest$3(Ff,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[ume,sme]=useMergedState(!1,{value:nme??rme,defaultValue:ame??ome}),{getPrefixCls:fme,direction:lme,switch:hme}=React__namespace.useContext(ConfigContext),pme=React__namespace.useContext(DisabledContext),gme=(B_??pme)||$P,yme=fme("switch",x_),mme=React__namespace.createElement("div",{className:`${yme}-handle`},$P&&React__namespace.createElement(RefIcon$x,{className:`${yme}-loading-icon`})),[bme,Sme,_me]=useStyle$2(yme),Cme=useSize($_),Eme=classNames(hme==null?void 0:hme.className,{[`${yme}-small`]:Cme==="small",[`${yme}-loading`]:$P,[`${yme}-rtl`]:lme==="rtl"},zP,eme,Sme,_me),Tme=Object.assign(Object.assign({},hme==null?void 0:hme.style),tme),Rme=function(){sme(arguments.length<=0?void 0:arguments[0]),ime==null||ime.apply(void 0,arguments)};return bme(React__namespace.createElement(Wave,{component:"Switch"},React__namespace.createElement(Switch$2,Object.assign({},cme,{checked:ume,onChange:Rme,prefixCls:yme,className:Eme,style:Tme,disabled:gme,ref:kh,loadingIcon:mme}))))}),Switch$1=InternalSwitch;Switch$1.__ANT_SWITCH=!0;process.env.NODE_ENV!=="production"&&(Switch$1.displayName="Switch");var TreeContext=React__namespace.createContext(null),Indent=function(kh){for(var x_=kh.prefixCls,$_=kh.level,B_=kh.isStart,$P=kh.isEnd,zP="".concat(x_,"-indent-unit"),eme=[],tme=0;tme<$_;tme+=1)eme.push(React__namespace.createElement("span",{key:tme,className:classNames(zP,_defineProperty(_defineProperty({},"".concat(zP,"-start"),B_[tme]),"".concat(zP,"-end"),$P[tme]))}));return React__namespace.createElement("span",{"aria-hidden":"true",className:"".concat(x_,"-indent")},eme)};const Indent$1=React__namespace.memo(Indent);var _excluded$7=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ICON_OPEN="open",ICON_CLOSE="close",defaultTitle="---",InternalTreeNode=function(Ff){_inherits(x_,Ff);var kh=_createSuper(x_);function x_(){var $_;_classCallCheck(this,x_);for(var B_=arguments.length,$P=new Array(B_),zP=0;zP<B_;zP++)$P[zP]=arguments[zP];return $_=kh.call.apply(kh,[this].concat($P)),_defineProperty(_assertThisInitialized($_),"state",{dragNodeHighlight:!1}),_defineProperty(_assertThisInitialized($_),"selectHandle",void 0),_defineProperty(_assertThisInitialized($_),"cacheIndent",void 0),_defineProperty(_assertThisInitialized($_),"onSelectorClick",function(eme){var tme=$_.props.context.onNodeClick;tme(eme,convertNodePropsToEventData($_.props)),$_.isSelectable()?$_.onSelect(eme):$_.onCheck(eme)}),_defineProperty(_assertThisInitialized($_),"onSelectorDoubleClick",function(eme){var tme=$_.props.context.onNodeDoubleClick;tme(eme,convertNodePropsToEventData($_.props))}),_defineProperty(_assertThisInitialized($_),"onSelect",function(eme){if(!$_.isDisabled()){var tme=$_.props.context.onNodeSelect;tme(eme,convertNodePropsToEventData($_.props))}}),_defineProperty(_assertThisInitialized($_),"onCheck",function(eme){if(!$_.isDisabled()){var tme=$_.props,nme=tme.disableCheckbox,rme=tme.checked,ame=$_.props.context.onNodeCheck;if(!(!$_.isCheckable()||nme)){var ome=!rme;ame(eme,convertNodePropsToEventData($_.props),ome)}}}),_defineProperty(_assertThisInitialized($_),"onMouseEnter",function(eme){var tme=$_.props.context.onNodeMouseEnter;tme(eme,convertNodePropsToEventData($_.props))}),_defineProperty(_assertThisInitialized($_),"onMouseLeave",function(eme){var tme=$_.props.context.onNodeMouseLeave;tme(eme,convertNodePropsToEventData($_.props))}),_defineProperty(_assertThisInitialized($_),"onContextMenu",function(eme){var tme=$_.props.context.onNodeContextMenu;tme(eme,convertNodePropsToEventData($_.props))}),_defineProperty(_assertThisInitialized($_),"onDragStart",function(eme){var tme=$_.props.context.onNodeDragStart;eme.stopPropagation(),$_.setState({dragNodeHighlight:!0}),tme(eme,_assertThisInitialized($_));try{eme.dataTransfer.setData("text/plain","")}catch{}}),_defineProperty(_assertThisInitialized($_),"onDragEnter",function(eme){var tme=$_.props.context.onNodeDragEnter;eme.preventDefault(),eme.stopPropagation(),tme(eme,_assertThisInitialized($_))}),_defineProperty(_assertThisInitialized($_),"onDragOver",function(eme){var tme=$_.props.context.onNodeDragOver;eme.preventDefault(),eme.stopPropagation(),tme(eme,_assertThisInitialized($_))}),_defineProperty(_assertThisInitialized($_),"onDragLeave",function(eme){var tme=$_.props.context.onNodeDragLeave;eme.stopPropagation(),tme(eme,_assertThisInitialized($_))}),_defineProperty(_assertThisInitialized($_),"onDragEnd",function(eme){var tme=$_.props.context.onNodeDragEnd;eme.stopPropagation(),$_.setState({dragNodeHighlight:!1}),tme(eme,_assertThisInitialized($_))}),_defineProperty(_assertThisInitialized($_),"onDrop",function(eme){var tme=$_.props.context.onNodeDrop;eme.preventDefault(),eme.stopPropagation(),$_.setState({dragNodeHighlight:!1}),tme(eme,_assertThisInitialized($_))}),_defineProperty(_assertThisInitialized($_),"onExpand",function(eme){var tme=$_.props,nme=tme.loading,rme=tme.context.onNodeExpand;nme||rme(eme,convertNodePropsToEventData($_.props))}),_defineProperty(_assertThisInitialized($_),"setSelectHandle",function(eme){$_.selectHandle=eme}),_defineProperty(_assertThisInitialized($_),"getNodeState",function(){var eme=$_.props.expanded;return $_.isLeaf()?null:eme?ICON_OPEN:ICON_CLOSE}),_defineProperty(_assertThisInitialized($_),"hasChildren",function(){var eme=$_.props.eventKey,tme=$_.props.context.keyEntities,nme=getEntity(tme,eme)||{},rme=nme.children;return!!(rme||[]).length}),_defineProperty(_assertThisInitialized($_),"isLeaf",function(){var eme=$_.props,tme=eme.isLeaf,nme=eme.loaded,rme=$_.props.context.loadData,ame=$_.hasChildren();return tme===!1?!1:tme||!rme&&!ame||rme&&nme&&!ame}),_defineProperty(_assertThisInitialized($_),"isDisabled",function(){var eme=$_.props.disabled,tme=$_.props.context.disabled;return!!(tme||eme)}),_defineProperty(_assertThisInitialized($_),"isCheckable",function(){var eme=$_.props.checkable,tme=$_.props.context.checkable;return!tme||eme===!1?!1:tme}),_defineProperty(_assertThisInitialized($_),"syncLoadData",function(eme){var tme=eme.expanded,nme=eme.loading,rme=eme.loaded,ame=$_.props.context,ome=ame.loadData,ime=ame.onNodeLoad;nme||ome&&tme&&!$_.isLeaf()&&!rme&&ime(convertNodePropsToEventData($_.props))}),_defineProperty(_assertThisInitialized($_),"isDraggable",function(){var eme=$_.props,tme=eme.data,nme=eme.context.draggable;return!!(nme&&(!nme.nodeDraggable||nme.nodeDraggable(tme)))}),_defineProperty(_assertThisInitialized($_),"renderDragHandler",function(){var eme=$_.props.context,tme=eme.draggable,nme=eme.prefixCls;return tme!=null&&tme.icon?React__namespace.createElement("span",{className:"".concat(nme,"-draggable-icon")},tme.icon):null}),_defineProperty(_assertThisInitialized($_),"renderSwitcherIconDom",function(eme){var tme=$_.props.switcherIcon,nme=$_.props.context.switcherIcon,rme=tme||nme;return typeof rme=="function"?rme(_objectSpread2(_objectSpread2({},$_.props),{},{isLeaf:eme})):rme}),_defineProperty(_assertThisInitialized($_),"renderSwitcher",function(){var eme=$_.props.expanded,tme=$_.props.context.prefixCls;if($_.isLeaf()){var nme=$_.renderSwitcherIconDom(!0);return nme!==!1?React__namespace.createElement("span",{className:classNames("".concat(tme,"-switcher"),"".concat(tme,"-switcher-noop"))},nme):null}var rme=classNames("".concat(tme,"-switcher"),"".concat(tme,"-switcher_").concat(eme?ICON_OPEN:ICON_CLOSE)),ame=$_.renderSwitcherIconDom(!1);return ame!==!1?React__namespace.createElement("span",{onClick:$_.onExpand,className:rme},ame):null}),_defineProperty(_assertThisInitialized($_),"renderCheckbox",function(){var eme=$_.props,tme=eme.checked,nme=eme.halfChecked,rme=eme.disableCheckbox,ame=$_.props.context.prefixCls,ome=$_.isDisabled(),ime=$_.isCheckable();if(!ime)return null;var cme=typeof ime!="boolean"?ime:null;return React__namespace.createElement("span",{className:classNames("".concat(ame,"-checkbox"),tme&&"".concat(ame,"-checkbox-checked"),!tme&&nme&&"".concat(ame,"-checkbox-indeterminate"),(ome||rme)&&"".concat(ame,"-checkbox-disabled")),onClick:$_.onCheck},cme)}),_defineProperty(_assertThisInitialized($_),"renderIcon",function(){var eme=$_.props.loading,tme=$_.props.context.prefixCls;return React__namespace.createElement("span",{className:classNames("".concat(tme,"-iconEle"),"".concat(tme,"-icon__").concat($_.getNodeState()||"docu"),eme&&"".concat(tme,"-icon_loading"))})}),_defineProperty(_assertThisInitialized($_),"renderSelector",function(){var eme=$_.state.dragNodeHighlight,tme=$_.props,nme=tme.title,rme=nme===void 0?defaultTitle:nme,ame=tme.selected,ome=tme.icon,ime=tme.loading,cme=tme.data,ume=$_.props.context,sme=ume.prefixCls,fme=ume.showIcon,lme=ume.icon,hme=ume.loadData,pme=ume.titleRender,gme=$_.isDisabled(),yme="".concat(sme,"-node-content-wrapper"),mme;if(fme){var bme=ome||lme;mme=bme?React__namespace.createElement("span",{className:classNames("".concat(sme,"-iconEle"),"".concat(sme,"-icon__customize"))},typeof bme=="function"?bme($_.props):bme):$_.renderIcon()}else hme&&ime&&(mme=$_.renderIcon());var Sme;typeof rme=="function"?Sme=rme(cme):pme?Sme=pme(cme):Sme=rme;var _me=React__namespace.createElement("span",{className:"".concat(sme,"-title")},Sme);return React__namespace.createElement("span",{ref:$_.setSelectHandle,title:typeof rme=="string"?rme:"",className:classNames("".concat(yme),"".concat(yme,"-").concat($_.getNodeState()||"normal"),!gme&&(ame||eme)&&"".concat(sme,"-node-selected")),onMouseEnter:$_.onMouseEnter,onMouseLeave:$_.onMouseLeave,onContextMenu:$_.onContextMenu,onClick:$_.onSelectorClick,onDoubleClick:$_.onSelectorDoubleClick},mme,_me,$_.renderDropIndicator())}),_defineProperty(_assertThisInitialized($_),"renderDropIndicator",function(){var eme=$_.props,tme=eme.disabled,nme=eme.eventKey,rme=$_.props.context,ame=rme.draggable,ome=rme.dropLevelOffset,ime=rme.dropPosition,cme=rme.prefixCls,ume=rme.indent,sme=rme.dropIndicatorRender,fme=rme.dragOverNodeKey,lme=rme.direction,hme=!!ame,pme=!tme&&hme&&fme===nme,gme=ume??$_.cacheIndent;return $_.cacheIndent=ume,pme?sme({dropPosition:ime,dropLevelOffset:ome,indent:gme,prefixCls:cme,direction:lme}):null}),$_}return _createClass(x_,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var B_=this.props.selectable,$P=this.props.context.selectable;return typeof B_=="boolean"?B_:$P}},{key:"render",value:function(){var B_,$P=this.props,zP=$P.eventKey,eme=$P.className,tme=$P.style,nme=$P.dragOver,rme=$P.dragOverGapTop,ame=$P.dragOverGapBottom,ome=$P.isLeaf,ime=$P.isStart,cme=$P.isEnd,ume=$P.expanded,sme=$P.selected,fme=$P.checked,lme=$P.halfChecked,hme=$P.loading,pme=$P.domRef,gme=$P.active;$P.data;var yme=$P.onMouseMove,mme=$P.selectable,bme=_objectWithoutProperties($P,_excluded$7),Sme=this.props.context,_me=Sme.prefixCls,Cme=Sme.filterTreeNode,Eme=Sme.keyEntities,Tme=Sme.dropContainerKey,Rme=Sme.dropTargetKey,Pme=Sme.draggingNodeKey,$me=this.isDisabled(),Dme=pickAttrs(bme,{aria:!0,data:!0}),Mme=getEntity(Eme,zP)||{},Nme=Mme.level,Ime=cme[cme.length-1],wme=this.isDraggable(),Ome=!$me&&wme,Ame=Pme===zP,Fme=mme!==void 0?{"aria-selected":!!mme}:void 0;return React__namespace.createElement("div",_extends({ref:pme,className:classNames(eme,"".concat(_me,"-treenode"),(B_={},_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(B_,"".concat(_me,"-treenode-disabled"),$me),"".concat(_me,"-treenode-switcher-").concat(ume?"open":"close"),!ome),"".concat(_me,"-treenode-checkbox-checked"),fme),"".concat(_me,"-treenode-checkbox-indeterminate"),lme),"".concat(_me,"-treenode-selected"),sme),"".concat(_me,"-treenode-loading"),hme),"".concat(_me,"-treenode-active"),gme),"".concat(_me,"-treenode-leaf-last"),Ime),"".concat(_me,"-treenode-draggable"),wme),"dragging",Ame),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(B_,"drop-target",Rme===zP),"drop-container",Tme===zP),"drag-over",!$me&&nme),"drag-over-gap-top",!$me&&rme),"drag-over-gap-bottom",!$me&&ame),"filter-node",Cme&&Cme(convertNodePropsToEventData(this.props))))),style:tme,draggable:Ome,"aria-grabbed":Ame,onDragStart:Ome?this.onDragStart:void 0,onDragEnter:wme?this.onDragEnter:void 0,onDragOver:wme?this.onDragOver:void 0,onDragLeave:wme?this.onDragLeave:void 0,onDrop:wme?this.onDrop:void 0,onDragEnd:wme?this.onDragEnd:void 0,onMouseMove:yme},Fme,Dme),React__namespace.createElement(Indent$1,{prefixCls:_me,level:Nme,isStart:ime,isEnd:cme}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),x_}(React__namespace.Component),ContextTreeNode=function(kh){return React__namespace.createElement(TreeContext.Consumer,null,function(x_){return React__namespace.createElement(InternalTreeNode,_extends({},kh,{context:x_}))})};ContextTreeNode.displayName="TreeNode";ContextTreeNode.isTreeNode=1;function arrDel(Ff,kh){if(!Ff)return[];var x_=Ff.slice(),$_=x_.indexOf(kh);return $_>=0&&x_.splice($_,1),x_}function arrAdd(Ff,kh){var x_=(Ff||[]).slice();return x_.indexOf(kh)===-1&&x_.push(kh),x_}function posToArr(Ff){return Ff.split("-")}function getDragChildrenKeys(Ff,kh){var x_=[],$_=getEntity(kh,Ff);function B_(){var $P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];$P.forEach(function(zP){var eme=zP.key,tme=zP.children;x_.push(eme),B_(tme)})}return B_($_.children),x_}function isLastChild(Ff){if(Ff.parent){var kh=posToArr(Ff.pos);return Number(kh[kh.length-1])===Ff.parent.children.length-1}return!1}function isFirstChild(Ff){var kh=posToArr(Ff.pos);return Number(kh[kh.length-1])===0}function calcDropPosition(Ff,kh,x_,$_,B_,$P,zP,eme,tme,nme){var rme,ame=Ff.clientX,ome=Ff.clientY,ime=Ff.target.getBoundingClientRect(),cme=ime.top,ume=ime.height,sme=(nme==="rtl"?-1:1)*(((B_==null?void 0:B_.x)||0)-ame),fme=(sme-12)/$_,lme=tme.filter(function($me){var Dme;return(Dme=eme[$me])===null||Dme===void 0||(Dme=Dme.children)===null||Dme===void 0?void 0:Dme.length}),hme=getEntity(eme,x_.props.eventKey);if(ome<cme+ume/2){var pme=zP.findIndex(function($me){return $me.key===hme.key}),gme=pme<=0?0:pme-1,yme=zP[gme].key;hme=getEntity(eme,yme)}var mme=hme.key,bme=hme,Sme=hme.key,_me=0,Cme=0;if(!lme.includes(mme))for(var Eme=0;Eme<fme&&isLastChild(hme);Eme+=1)hme=hme.parent,Cme+=1;var Tme=kh.props.data,Rme=hme.node,Pme=!0;return isFirstChild(hme)&&hme.level===0&&ome<cme+ume/2&&$P({dragNode:Tme,dropNode:Rme,dropPosition:-1})&&hme.key===x_.props.eventKey?_me=-1:(bme.children||[]).length&&lme.includes(Sme)?$P({dragNode:Tme,dropNode:Rme,dropPosition:0})?_me=0:Pme=!1:Cme===0?fme>-1.5?$P({dragNode:Tme,dropNode:Rme,dropPosition:1})?_me=1:Pme=!1:$P({dragNode:Tme,dropNode:Rme,dropPosition:0})?_me=0:$P({dragNode:Tme,dropNode:Rme,dropPosition:1})?_me=1:Pme=!1:$P({dragNode:Tme,dropNode:Rme,dropPosition:1})?_me=1:Pme=!1,{dropPosition:_me,dropLevelOffset:Cme,dropTargetKey:hme.key,dropTargetPos:hme.pos,dragOverNodeKey:Sme,dropContainerKey:_me===0?null:((rme=hme.parent)===null||rme===void 0?void 0:rme.key)||null,dropAllowed:Pme}}function calcSelectedKeys(Ff,kh){if(Ff){var x_=kh.multiple;return x_?Ff.slice():Ff.length?[Ff[0]]:Ff}}function parseCheckedKeys(Ff){if(!Ff)return null;var kh;if(Array.isArray(Ff))kh={checkedKeys:Ff,halfCheckedKeys:void 0};else if(_typeof(Ff)==="object")kh={checkedKeys:Ff.checked||void 0,halfCheckedKeys:Ff.halfChecked||void 0};else return warningOnce(!1,"`checkedKeys` is not an array or an object"),null;return kh}function conductExpandParent(Ff,kh){var x_=new Set;function $_(B_){if(!x_.has(B_)){var $P=getEntity(kh,B_);if($P){x_.add(B_);var zP=$P.parent,eme=$P.node;eme.disabled||zP&&$_(zP.key)}}}return(Ff||[]).forEach(function(B_){$_(B_)}),_toConsumableArray(x_)}function DropIndicator(Ff){var kh=Ff.dropPosition,x_=Ff.dropLevelOffset,$_=Ff.indent,B_={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(kh){case-1:B_.top=0,B_.left=-x_*$_;break;case 1:B_.bottom=0,B_.left=-x_*$_;break;case 0:B_.bottom=0,B_.left=$_;break}return React__namespace.createElement("div",{style:B_})}function _objectDestructuringEmpty(Ff){if(Ff==null)throw new TypeError("Cannot destructure "+Ff)}function useUnmount(Ff,kh){var x_=React__namespace.useState(!1),$_=_slicedToArray(x_,2),B_=$_[0],$P=$_[1];useLayoutEffect$1(function(){if(B_)return Ff(),function(){kh()}},[B_]),useLayoutEffect$1(function(){return $P(!0),function(){$P(!1)}},[])}var _excluded$6=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],MotionTreeNode=function(kh,x_){var $_=kh.className,B_=kh.style,$P=kh.motion,zP=kh.motionNodes,eme=kh.motionType,tme=kh.onMotionStart,nme=kh.onMotionEnd,rme=kh.active,ame=kh.treeNodeRequiredProps,ome=_objectWithoutProperties(kh,_excluded$6),ime=React__namespace.useState(!0),cme=_slicedToArray(ime,2),ume=cme[0],sme=cme[1],fme=React__namespace.useContext(TreeContext),lme=fme.prefixCls,hme=zP&&eme!=="hide";useLayoutEffect$1(function(){zP&&hme!==ume&&sme(hme)},[zP]);var pme=function(){zP&&tme()},gme=React__namespace.useRef(!1),yme=function(){zP&&!gme.current&&(gme.current=!0,nme())};useUnmount(pme,yme);var mme=function(Sme){hme===Sme&&yme()};return zP?React__namespace.createElement(CSSMotion,_extends({ref:x_,visible:ume},$P,{motionAppear:eme==="show",onVisibleChanged:mme}),function(bme,Sme){var _me=bme.className,Cme=bme.style;return React__namespace.createElement("div",{ref:Sme,className:classNames("".concat(lme,"-treenode-motion"),_me),style:Cme},zP.map(function(Eme){var Tme=Object.assign({},(_objectDestructuringEmpty(Eme.data),Eme.data)),Rme=Eme.title,Pme=Eme.key,$me=Eme.isStart,Dme=Eme.isEnd;delete Tme.children;var Mme=getTreeNodeProps(Pme,ame);return React__namespace.createElement(ContextTreeNode,_extends({},Tme,Mme,{title:Rme,active:rme,data:Eme.data,key:Pme,isStart:$me,isEnd:Dme}))}))}):React__namespace.createElement(ContextTreeNode,_extends({domRef:x_,className:$_,style:B_},ome,{active:rme}))};MotionTreeNode.displayName="MotionTreeNode";var RefMotionTreeNode=React__namespace.forwardRef(MotionTreeNode);function findExpandedKeys(){var Ff=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x_=Ff.length,$_=kh.length;if(Math.abs(x_-$_)!==1)return{add:!1,key:null};function B_($P,zP){var eme=new Map;$P.forEach(function(nme){eme.set(nme,!0)});var tme=zP.filter(function(nme){return!eme.has(nme)});return tme.length===1?tme[0]:null}return x_<$_?{add:!0,key:B_(Ff,kh)}:{add:!1,key:B_(kh,Ff)}}function getExpandRange(Ff,kh,x_){var $_=Ff.findIndex(function(eme){return eme.key===x_}),B_=Ff[$_+1],$P=kh.findIndex(function(eme){return eme.key===x_});if(B_){var zP=kh.findIndex(function(eme){return eme.key===B_.key});return kh.slice($P+1,zP)}return kh.slice($P+1)}var _excluded$5=["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"],HIDDEN_STYLE$1={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},noop=function(){},MOTION_KEY="RC_TREE_MOTION_".concat(Math.random()),MotionNode={key:MOTION_KEY},MotionEntity={key:MOTION_KEY,level:0,index:0,pos:"0",node:MotionNode,nodes:[MotionNode]},MotionFlattenData={parent:null,children:[],pos:MotionEntity.pos,data:MotionNode,title:null,key:MOTION_KEY,isStart:[],isEnd:[]};function getMinimumRangeTransitionRange(Ff,kh,x_,$_){return kh===!1||!x_?Ff:Ff.slice(0,Math.ceil(x_/$_)+1)}function itemKey(Ff){var kh=Ff.key,x_=Ff.pos;return getKey(kh,x_)}function getAccessibilityPath(Ff){for(var kh=String(Ff.data.key),x_=Ff;x_.parent;)x_=x_.parent,kh="".concat(x_.data.key," > ").concat(kh);return kh}var NodeList=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.prefixCls,$_=Ff.data;Ff.selectable,Ff.checkable;var B_=Ff.expandedKeys,$P=Ff.selectedKeys,zP=Ff.checkedKeys,eme=Ff.loadedKeys,tme=Ff.loadingKeys,nme=Ff.halfCheckedKeys,rme=Ff.keyEntities,ame=Ff.disabled,ome=Ff.dragging,ime=Ff.dragOverNodeKey,cme=Ff.dropPosition,ume=Ff.motion,sme=Ff.height,fme=Ff.itemHeight,lme=Ff.virtual,hme=Ff.focusable,pme=Ff.activeItem,gme=Ff.focused,yme=Ff.tabIndex,mme=Ff.onKeyDown,bme=Ff.onFocus,Sme=Ff.onBlur,_me=Ff.onActiveChange,Cme=Ff.onListChangeStart,Eme=Ff.onListChangeEnd,Tme=_objectWithoutProperties(Ff,_excluded$5),Rme=React__namespace.useRef(null),Pme=React__namespace.useRef(null);React__namespace.useImperativeHandle(kh,function(){return{scrollTo:function(t0e){Rme.current.scrollTo(t0e)},getIndentWidth:function(){return Pme.current.offsetWidth}}});var $me=React__namespace.useState(B_),Dme=_slicedToArray($me,2),Mme=Dme[0],Nme=Dme[1],Ime=React__namespace.useState($_),wme=_slicedToArray(Ime,2),Ome=wme[0],Ame=wme[1],Fme=React__namespace.useState($_),Bme=_slicedToArray(Fme,2),kme=Bme[0],Lme=Bme[1],Hme=React__namespace.useState([]),Wme=_slicedToArray(Hme,2),zme=Wme[0],Vme=Wme[1],Xme=React__namespace.useState(null),e0e=_slicedToArray(Xme,2),Ume=e0e[0],Jme=e0e[1],s0e=React__namespace.useRef($_);s0e.current=$_;function d0e(){var a0e=s0e.current;Ame(a0e),Lme(a0e),Vme([]),Jme(null),Eme()}useLayoutEffect$1(function(){Nme(B_);var a0e=findExpandedKeys(Mme,B_);if(a0e.key!==null)if(a0e.add){var t0e=Ome.findIndex(function(P0e){var y0e=P0e.key;return y0e===a0e.key}),o0e=getMinimumRangeTransitionRange(getExpandRange(Ome,$_,a0e.key),lme,sme,fme),g0e=Ome.slice();g0e.splice(t0e+1,0,MotionFlattenData),Lme(g0e),Vme(o0e),Jme("show")}else{var u0e=$_.findIndex(function(P0e){var y0e=P0e.key;return y0e===a0e.key}),h0e=getMinimumRangeTransitionRange(getExpandRange($_,Ome,a0e.key),lme,sme,fme),E0e=$_.slice();E0e.splice(u0e+1,0,MotionFlattenData),Lme(E0e),Vme(h0e),Jme("hide")}else Ome!==$_&&(Ame($_),Lme($_))},[B_,$_]),React__namespace.useEffect(function(){ome||d0e()},[ome]);var Zme=ume?kme:$_,Qme={expandedKeys:B_,selectedKeys:$P,loadedKeys:eme,loadingKeys:tme,checkedKeys:zP,halfCheckedKeys:nme,dragOverNodeKey:ime,dropPosition:cme,keyEntities:rme};return React__namespace.createElement(React__namespace.Fragment,null,gme&&pme&&React__namespace.createElement("span",{style:HIDDEN_STYLE$1,"aria-live":"assertive"},getAccessibilityPath(pme)),React__namespace.createElement("div",null,React__namespace.createElement("input",{style:HIDDEN_STYLE$1,disabled:hme===!1||ame,tabIndex:hme!==!1?yme:null,onKeyDown:mme,onFocus:bme,onBlur:Sme,value:"",onChange:noop,"aria-label":"for screen reader"})),React__namespace.createElement("div",{className:"".concat(x_,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},React__namespace.createElement("div",{className:"".concat(x_,"-indent")},React__namespace.createElement("div",{ref:Pme,className:"".concat(x_,"-indent-unit")}))),React__namespace.createElement(List,_extends({},Tme,{data:Zme,itemKey,height:sme,fullHeight:!1,virtual:lme,itemHeight:fme,prefixCls:"".concat(x_,"-list"),ref:Rme,onVisibleChange:function(t0e,o0e){var g0e=new Set(t0e),u0e=o0e.filter(function(h0e){return!g0e.has(h0e)});u0e.some(function(h0e){return itemKey(h0e)===MOTION_KEY})&&d0e()}}),function(a0e){var t0e=a0e.pos,o0e=Object.assign({},(_objectDestructuringEmpty(a0e.data),a0e.data)),g0e=a0e.title,u0e=a0e.key,h0e=a0e.isStart,E0e=a0e.isEnd,P0e=getKey(u0e,t0e);delete o0e.key,delete o0e.children;var y0e=getTreeNodeProps(P0e,Qme);return React__namespace.createElement(RefMotionTreeNode,_extends({},o0e,y0e,{title:g0e,active:!!pme&&u0e===pme.key,pos:t0e,data:a0e.data,isStart:h0e,isEnd:E0e,motion:ume,motionNodes:u0e===MOTION_KEY?zme:null,motionType:Ume,onMotionStart:Cme,onMotionEnd:d0e,treeNodeRequiredProps:Qme,onMouseMove:function(){_me(null)}}))}))});NodeList.displayName="NodeList";var MAX_RETRY_TIMES=10,Tree$2=function(Ff){_inherits(x_,Ff);var kh=_createSuper(x_);function x_(){var $_;_classCallCheck(this,x_);for(var B_=arguments.length,$P=new Array(B_),zP=0;zP<B_;zP++)$P[zP]=arguments[zP];return $_=kh.call.apply(kh,[this].concat($P)),_defineProperty(_assertThisInitialized($_),"destroyed",!1),_defineProperty(_assertThisInitialized($_),"delayedDragEnterLogic",void 0),_defineProperty(_assertThisInitialized($_),"loadingRetryTimes",{}),_defineProperty(_assertThisInitialized($_),"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:fillFieldNames$1()}),_defineProperty(_assertThisInitialized($_),"dragStartMousePosition",null),_defineProperty(_assertThisInitialized($_),"dragNode",void 0),_defineProperty(_assertThisInitialized($_),"currentMouseOverDroppableNodeKey",null),_defineProperty(_assertThisInitialized($_),"listRef",React__namespace.createRef()),_defineProperty(_assertThisInitialized($_),"onNodeDragStart",function(eme,tme){var nme=$_.state,rme=nme.expandedKeys,ame=nme.keyEntities,ome=$_.props.onDragStart,ime=tme.props.eventKey;$_.dragNode=tme,$_.dragStartMousePosition={x:eme.clientX,y:eme.clientY};var cme=arrDel(rme,ime);$_.setState({draggingNodeKey:ime,dragChildrenKeys:getDragChildrenKeys(ime,ame),indent:$_.listRef.current.getIndentWidth()}),$_.setExpandedKeys(cme),window.addEventListener("dragend",$_.onWindowDragEnd),ome==null||ome({event:eme,node:convertNodePropsToEventData(tme.props)})}),_defineProperty(_assertThisInitialized($_),"onNodeDragEnter",function(eme,tme){var nme=$_.state,rme=nme.expandedKeys,ame=nme.keyEntities,ome=nme.dragChildrenKeys,ime=nme.flattenNodes,cme=nme.indent,ume=$_.props,sme=ume.onDragEnter,fme=ume.onExpand,lme=ume.allowDrop,hme=ume.direction,pme=tme.props,gme=pme.pos,yme=pme.eventKey,mme=_assertThisInitialized($_),bme=mme.dragNode;if($_.currentMouseOverDroppableNodeKey!==yme&&($_.currentMouseOverDroppableNodeKey=yme),!bme){$_.resetDragState();return}var Sme=calcDropPosition(eme,bme,tme,cme,$_.dragStartMousePosition,lme,ime,ame,rme,hme),_me=Sme.dropPosition,Cme=Sme.dropLevelOffset,Eme=Sme.dropTargetKey,Tme=Sme.dropContainerKey,Rme=Sme.dropTargetPos,Pme=Sme.dropAllowed,$me=Sme.dragOverNodeKey;if(ome.indexOf(Eme)!==-1||!Pme){$_.resetDragState();return}if($_.delayedDragEnterLogic||($_.delayedDragEnterLogic={}),Object.keys($_.delayedDragEnterLogic).forEach(function(Dme){clearTimeout($_.delayedDragEnterLogic[Dme])}),bme.props.eventKey!==tme.props.eventKey&&(eme.persist(),$_.delayedDragEnterLogic[gme]=window.setTimeout(function(){if($_.state.draggingNodeKey!==null){var Dme=_toConsumableArray(rme),Mme=getEntity(ame,tme.props.eventKey);Mme&&(Mme.children||[]).length&&(Dme=arrAdd(rme,tme.props.eventKey)),"expandedKeys"in $_.props||$_.setExpandedKeys(Dme),fme==null||fme(Dme,{node:convertNodePropsToEventData(tme.props),expanded:!0,nativeEvent:eme.nativeEvent})}},800)),bme.props.eventKey===Eme&&Cme===0){$_.resetDragState();return}$_.setState({dragOverNodeKey:$me,dropPosition:_me,dropLevelOffset:Cme,dropTargetKey:Eme,dropContainerKey:Tme,dropTargetPos:Rme,dropAllowed:Pme}),sme==null||sme({event:eme,node:convertNodePropsToEventData(tme.props),expandedKeys:rme})}),_defineProperty(_assertThisInitialized($_),"onNodeDragOver",function(eme,tme){var nme=$_.state,rme=nme.dragChildrenKeys,ame=nme.flattenNodes,ome=nme.keyEntities,ime=nme.expandedKeys,cme=nme.indent,ume=$_.props,sme=ume.onDragOver,fme=ume.allowDrop,lme=ume.direction,hme=_assertThisInitialized($_),pme=hme.dragNode;if(pme){var gme=calcDropPosition(eme,pme,tme,cme,$_.dragStartMousePosition,fme,ame,ome,ime,lme),yme=gme.dropPosition,mme=gme.dropLevelOffset,bme=gme.dropTargetKey,Sme=gme.dropContainerKey,_me=gme.dropAllowed,Cme=gme.dropTargetPos,Eme=gme.dragOverNodeKey;rme.indexOf(bme)!==-1||!_me||(pme.props.eventKey===bme&&mme===0?$_.state.dropPosition===null&&$_.state.dropLevelOffset===null&&$_.state.dropTargetKey===null&&$_.state.dropContainerKey===null&&$_.state.dropTargetPos===null&&$_.state.dropAllowed===!1&&$_.state.dragOverNodeKey===null||$_.resetDragState():yme===$_.state.dropPosition&&mme===$_.state.dropLevelOffset&&bme===$_.state.dropTargetKey&&Sme===$_.state.dropContainerKey&&Cme===$_.state.dropTargetPos&&_me===$_.state.dropAllowed&&Eme===$_.state.dragOverNodeKey||$_.setState({dropPosition:yme,dropLevelOffset:mme,dropTargetKey:bme,dropContainerKey:Sme,dropTargetPos:Cme,dropAllowed:_me,dragOverNodeKey:Eme}),sme==null||sme({event:eme,node:convertNodePropsToEventData(tme.props)}))}}),_defineProperty(_assertThisInitialized($_),"onNodeDragLeave",function(eme,tme){$_.currentMouseOverDroppableNodeKey===tme.props.eventKey&&!eme.currentTarget.contains(eme.relatedTarget)&&($_.resetDragState(),$_.currentMouseOverDroppableNodeKey=null);var nme=$_.props.onDragLeave;nme==null||nme({event:eme,node:convertNodePropsToEventData(tme.props)})}),_defineProperty(_assertThisInitialized($_),"onWindowDragEnd",function(eme){$_.onNodeDragEnd(eme,null,!0),window.removeEventListener("dragend",$_.onWindowDragEnd)}),_defineProperty(_assertThisInitialized($_),"onNodeDragEnd",function(eme,tme){var nme=$_.props.onDragEnd;$_.setState({dragOverNodeKey:null}),$_.cleanDragState(),nme==null||nme({event:eme,node:convertNodePropsToEventData(tme.props)}),$_.dragNode=null,window.removeEventListener("dragend",$_.onWindowDragEnd)}),_defineProperty(_assertThisInitialized($_),"onNodeDrop",function(eme,tme){var nme,rme=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ame=$_.state,ome=ame.dragChildrenKeys,ime=ame.dropPosition,cme=ame.dropTargetKey,ume=ame.dropTargetPos,sme=ame.dropAllowed;if(sme){var fme=$_.props.onDrop;if($_.setState({dragOverNodeKey:null}),$_.cleanDragState(),cme!==null){var lme=_objectSpread2(_objectSpread2({},getTreeNodeProps(cme,$_.getTreeNodeRequiredProps())),{},{active:((nme=$_.getActiveItem())===null||nme===void 0?void 0:nme.key)===cme,data:getEntity($_.state.keyEntities,cme).node}),hme=ome.indexOf(cme)!==-1;warningOnce(!hme,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var pme=posToArr(ume),gme={event:eme,node:convertNodePropsToEventData(lme),dragNode:$_.dragNode?convertNodePropsToEventData($_.dragNode.props):null,dragNodesKeys:[$_.dragNode.props.eventKey].concat(ome),dropToGap:ime!==0,dropPosition:ime+Number(pme[pme.length-1])};rme||fme==null||fme(gme),$_.dragNode=null}}}),_defineProperty(_assertThisInitialized($_),"cleanDragState",function(){var eme=$_.state.draggingNodeKey;eme!==null&&$_.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),$_.dragStartMousePosition=null,$_.currentMouseOverDroppableNodeKey=null}),_defineProperty(_assertThisInitialized($_),"triggerExpandActionExpand",function(eme,tme){var nme=$_.state,rme=nme.expandedKeys,ame=nme.flattenNodes,ome=tme.expanded,ime=tme.key,cme=tme.isLeaf;if(!(cme||eme.shiftKey||eme.metaKey||eme.ctrlKey)){var ume=ame.filter(function(fme){return fme.key===ime})[0],sme=convertNodePropsToEventData(_objectSpread2(_objectSpread2({},getTreeNodeProps(ime,$_.getTreeNodeRequiredProps())),{},{data:ume.data}));$_.setExpandedKeys(ome?arrDel(rme,ime):arrAdd(rme,ime)),$_.onNodeExpand(eme,sme)}}),_defineProperty(_assertThisInitialized($_),"onNodeClick",function(eme,tme){var nme=$_.props,rme=nme.onClick,ame=nme.expandAction;ame==="click"&&$_.triggerExpandActionExpand(eme,tme),rme==null||rme(eme,tme)}),_defineProperty(_assertThisInitialized($_),"onNodeDoubleClick",function(eme,tme){var nme=$_.props,rme=nme.onDoubleClick,ame=nme.expandAction;ame==="doubleClick"&&$_.triggerExpandActionExpand(eme,tme),rme==null||rme(eme,tme)}),_defineProperty(_assertThisInitialized($_),"onNodeSelect",function(eme,tme){var nme=$_.state.selectedKeys,rme=$_.state,ame=rme.keyEntities,ome=rme.fieldNames,ime=$_.props,cme=ime.onSelect,ume=ime.multiple,sme=tme.selected,fme=tme[ome.key],lme=!sme;lme?ume?nme=arrAdd(nme,fme):nme=[fme]:nme=arrDel(nme,fme);var hme=nme.map(function(pme){var gme=getEntity(ame,pme);return gme?gme.node:null}).filter(function(pme){return pme});$_.setUncontrolledState({selectedKeys:nme}),cme==null||cme(nme,{event:"select",selected:lme,node:tme,selectedNodes:hme,nativeEvent:eme.nativeEvent})}),_defineProperty(_assertThisInitialized($_),"onNodeCheck",function(eme,tme,nme){var rme=$_.state,ame=rme.keyEntities,ome=rme.checkedKeys,ime=rme.halfCheckedKeys,cme=$_.props,ume=cme.checkStrictly,sme=cme.onCheck,fme=tme.key,lme,hme={event:"check",node:tme,checked:nme,nativeEvent:eme.nativeEvent};if(ume){var pme=nme?arrAdd(ome,fme):arrDel(ome,fme),gme=arrDel(ime,fme);lme={checked:pme,halfChecked:gme},hme.checkedNodes=pme.map(function(Cme){return getEntity(ame,Cme)}).filter(function(Cme){return Cme}).map(function(Cme){return Cme.node}),$_.setUncontrolledState({checkedKeys:pme})}else{var yme=conductCheck([].concat(_toConsumableArray(ome),[fme]),!0,ame),mme=yme.checkedKeys,bme=yme.halfCheckedKeys;if(!nme){var Sme=new Set(mme);Sme.delete(fme);var _me=conductCheck(Array.from(Sme),{checked:!1,halfCheckedKeys:bme},ame);mme=_me.checkedKeys,bme=_me.halfCheckedKeys}lme=mme,hme.checkedNodes=[],hme.checkedNodesPositions=[],hme.halfCheckedKeys=bme,mme.forEach(function(Cme){var Eme=getEntity(ame,Cme);if(Eme){var Tme=Eme.node,Rme=Eme.pos;hme.checkedNodes.push(Tme),hme.checkedNodesPositions.push({node:Tme,pos:Rme})}}),$_.setUncontrolledState({checkedKeys:mme},!1,{halfCheckedKeys:bme})}sme==null||sme(lme,hme)}),_defineProperty(_assertThisInitialized($_),"onNodeLoad",function(eme){var tme,nme=eme.key,rme=$_.state.keyEntities,ame=getEntity(rme,nme);if(!(ame!=null&&(tme=ame.children)!==null&&tme!==void 0&&tme.length)){var ome=new Promise(function(ime,cme){$_.setState(function(ume){var sme=ume.loadedKeys,fme=sme===void 0?[]:sme,lme=ume.loadingKeys,hme=lme===void 0?[]:lme,pme=$_.props,gme=pme.loadData,yme=pme.onLoad;if(!gme||fme.indexOf(nme)!==-1||hme.indexOf(nme)!==-1)return null;var mme=gme(eme);return mme.then(function(){var bme=$_.state.loadedKeys,Sme=arrAdd(bme,nme);yme==null||yme(Sme,{event:"load",node:eme}),$_.setUncontrolledState({loadedKeys:Sme}),$_.setState(function(_me){return{loadingKeys:arrDel(_me.loadingKeys,nme)}}),ime()}).catch(function(bme){if($_.setState(function(_me){return{loadingKeys:arrDel(_me.loadingKeys,nme)}}),$_.loadingRetryTimes[nme]=($_.loadingRetryTimes[nme]||0)+1,$_.loadingRetryTimes[nme]>=MAX_RETRY_TIMES){var Sme=$_.state.loadedKeys;warningOnce(!1,"Retry for `loadData` many times but still failed. No more retry."),$_.setUncontrolledState({loadedKeys:arrAdd(Sme,nme)}),ime()}cme(bme)}),{loadingKeys:arrAdd(hme,nme)}})});return ome.catch(function(){}),ome}}),_defineProperty(_assertThisInitialized($_),"onNodeMouseEnter",function(eme,tme){var nme=$_.props.onMouseEnter;nme==null||nme({event:eme,node:tme})}),_defineProperty(_assertThisInitialized($_),"onNodeMouseLeave",function(eme,tme){var nme=$_.props.onMouseLeave;nme==null||nme({event:eme,node:tme})}),_defineProperty(_assertThisInitialized($_),"onNodeContextMenu",function(eme,tme){var nme=$_.props.onRightClick;nme&&(eme.preventDefault(),nme({event:eme,node:tme}))}),_defineProperty(_assertThisInitialized($_),"onFocus",function(){var eme=$_.props.onFocus;$_.setState({focused:!0});for(var tme=arguments.length,nme=new Array(tme),rme=0;rme<tme;rme++)nme[rme]=arguments[rme];eme==null||eme.apply(void 0,nme)}),_defineProperty(_assertThisInitialized($_),"onBlur",function(){var eme=$_.props.onBlur;$_.setState({focused:!1}),$_.onActiveChange(null);for(var tme=arguments.length,nme=new Array(tme),rme=0;rme<tme;rme++)nme[rme]=arguments[rme];eme==null||eme.apply(void 0,nme)}),_defineProperty(_assertThisInitialized($_),"getTreeNodeRequiredProps",function(){var eme=$_.state,tme=eme.expandedKeys,nme=eme.selectedKeys,rme=eme.loadedKeys,ame=eme.loadingKeys,ome=eme.checkedKeys,ime=eme.halfCheckedKeys,cme=eme.dragOverNodeKey,ume=eme.dropPosition,sme=eme.keyEntities;return{expandedKeys:tme||[],selectedKeys:nme||[],loadedKeys:rme||[],loadingKeys:ame||[],checkedKeys:ome||[],halfCheckedKeys:ime||[],dragOverNodeKey:cme,dropPosition:ume,keyEntities:sme}}),_defineProperty(_assertThisInitialized($_),"setExpandedKeys",function(eme){var tme=$_.state,nme=tme.treeData,rme=tme.fieldNames,ame=flattenTreeData(nme,eme,rme);$_.setUncontrolledState({expandedKeys:eme,flattenNodes:ame},!0)}),_defineProperty(_assertThisInitialized($_),"onNodeExpand",function(eme,tme){var nme=$_.state.expandedKeys,rme=$_.state,ame=rme.listChanging,ome=rme.fieldNames,ime=$_.props,cme=ime.onExpand,ume=ime.loadData,sme=tme.expanded,fme=tme[ome.key];if(!ame){var lme=nme.indexOf(fme),hme=!sme;if(warningOnce(sme&&lme!==-1||!sme&&lme===-1,"Expand state not sync with index check"),hme?nme=arrAdd(nme,fme):nme=arrDel(nme,fme),$_.setExpandedKeys(nme),cme==null||cme(nme,{node:tme,expanded:hme,nativeEvent:eme.nativeEvent}),hme&&ume){var pme=$_.onNodeLoad(tme);pme&&pme.then(function(){var gme=flattenTreeData($_.state.treeData,nme,ome);$_.setUncontrolledState({flattenNodes:gme})}).catch(function(){var gme=$_.state.expandedKeys,yme=arrDel(gme,fme);$_.setExpandedKeys(yme)})}}}),_defineProperty(_assertThisInitialized($_),"onListChangeStart",function(){$_.setUncontrolledState({listChanging:!0})}),_defineProperty(_assertThisInitialized($_),"onListChangeEnd",function(){setTimeout(function(){$_.setUncontrolledState({listChanging:!1})})}),_defineProperty(_assertThisInitialized($_),"onActiveChange",function(eme){var tme=$_.state.activeKey,nme=$_.props,rme=nme.onActiveChange,ame=nme.itemScrollOffset,ome=ame===void 0?0:ame;tme!==eme&&($_.setState({activeKey:eme}),eme!==null&&$_.scrollTo({key:eme,offset:ome}),rme==null||rme(eme))}),_defineProperty(_assertThisInitialized($_),"getActiveItem",function(){var eme=$_.state,tme=eme.activeKey,nme=eme.flattenNodes;return tme===null?null:nme.find(function(rme){var ame=rme.key;return ame===tme})||null}),_defineProperty(_assertThisInitialized($_),"offsetActiveKey",function(eme){var tme=$_.state,nme=tme.flattenNodes,rme=tme.activeKey,ame=nme.findIndex(function(cme){var ume=cme.key;return ume===rme});ame===-1&&eme<0&&(ame=nme.length),ame=(ame+eme+nme.length)%nme.length;var ome=nme[ame];if(ome){var ime=ome.key;$_.onActiveChange(ime)}else $_.onActiveChange(null)}),_defineProperty(_assertThisInitialized($_),"onKeyDown",function(eme){var tme=$_.state,nme=tme.activeKey,rme=tme.expandedKeys,ame=tme.checkedKeys,ome=tme.fieldNames,ime=$_.props,cme=ime.onKeyDown,ume=ime.checkable,sme=ime.selectable;switch(eme.which){case KeyCode.UP:{$_.offsetActiveKey(-1),eme.preventDefault();break}case KeyCode.DOWN:{$_.offsetActiveKey(1),eme.preventDefault();break}}var fme=$_.getActiveItem();if(fme&&fme.data){var lme=$_.getTreeNodeRequiredProps(),hme=fme.data.isLeaf===!1||!!(fme.data[ome.children]||[]).length,pme=convertNodePropsToEventData(_objectSpread2(_objectSpread2({},getTreeNodeProps(nme,lme)),{},{data:fme.data,active:!0}));switch(eme.which){case KeyCode.LEFT:{hme&&rme.includes(nme)?$_.onNodeExpand({},pme):fme.parent&&$_.onActiveChange(fme.parent.key),eme.preventDefault();break}case KeyCode.RIGHT:{hme&&!rme.includes(nme)?$_.onNodeExpand({},pme):fme.children&&fme.children.length&&$_.onActiveChange(fme.children[0].key),eme.preventDefault();break}case KeyCode.ENTER:case KeyCode.SPACE:{ume&&!pme.disabled&&pme.checkable!==!1&&!pme.disableCheckbox?$_.onNodeCheck({},pme,!ame.includes(nme)):!ume&&sme&&!pme.disabled&&pme.selectable!==!1&&$_.onNodeSelect({},pme);break}}}cme==null||cme(eme)}),_defineProperty(_assertThisInitialized($_),"setUncontrolledState",function(eme){var tme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nme=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!$_.destroyed){var rme=!1,ame=!0,ome={};Object.keys(eme).forEach(function(ime){if(ime in $_.props){ame=!1;return}rme=!0,ome[ime]=eme[ime]}),rme&&(!tme||ame)&&$_.setState(_objectSpread2(_objectSpread2({},ome),nme))}}),_defineProperty(_assertThisInitialized($_),"scrollTo",function(eme){$_.listRef.current.scrollTo(eme)}),$_}return _createClass(x_,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var B_=this.props,$P=B_.activeKey,zP=B_.itemScrollOffset,eme=zP===void 0?0:zP;$P!==void 0&&$P!==this.state.activeKey&&(this.setState({activeKey:$P}),$P!==null&&this.scrollTo({key:$P,offset:eme}))}},{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 B_=this.state,$P=B_.focused,zP=B_.flattenNodes,eme=B_.keyEntities,tme=B_.draggingNodeKey,nme=B_.activeKey,rme=B_.dropLevelOffset,ame=B_.dropContainerKey,ome=B_.dropTargetKey,ime=B_.dropPosition,cme=B_.dragOverNodeKey,ume=B_.indent,sme=this.props,fme=sme.prefixCls,lme=sme.className,hme=sme.style,pme=sme.showLine,gme=sme.focusable,yme=sme.tabIndex,mme=yme===void 0?0:yme,bme=sme.selectable,Sme=sme.showIcon,_me=sme.icon,Cme=sme.switcherIcon,Eme=sme.draggable,Tme=sme.checkable,Rme=sme.checkStrictly,Pme=sme.disabled,$me=sme.motion,Dme=sme.loadData,Mme=sme.filterTreeNode,Nme=sme.height,Ime=sme.itemHeight,wme=sme.virtual,Ome=sme.titleRender,Ame=sme.dropIndicatorRender,Fme=sme.onContextMenu,Bme=sme.onScroll,kme=sme.direction,Lme=sme.rootClassName,Hme=sme.rootStyle,Wme=pickAttrs(this.props,{aria:!0,data:!0}),zme;return Eme&&(_typeof(Eme)==="object"?zme=Eme:typeof Eme=="function"?zme={nodeDraggable:Eme}:zme={}),React__namespace.createElement(TreeContext.Provider,{value:{prefixCls:fme,selectable:bme,showIcon:Sme,icon:_me,switcherIcon:Cme,draggable:zme,draggingNodeKey:tme,checkable:Tme,checkStrictly:Rme,disabled:Pme,keyEntities:eme,dropLevelOffset:rme,dropContainerKey:ame,dropTargetKey:ome,dropPosition:ime,dragOverNodeKey:cme,indent:ume,direction:kme,dropIndicatorRender:Ame,loadData:Dme,filterTreeNode:Mme,titleRender:Ome,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}},React__namespace.createElement("div",{role:"tree",className:classNames(fme,lme,Lme,_defineProperty(_defineProperty(_defineProperty({},"".concat(fme,"-show-line"),pme),"".concat(fme,"-focused"),$P),"".concat(fme,"-active-focused"),nme!==null)),style:Hme},React__namespace.createElement(NodeList,_extends({ref:this.listRef,prefixCls:fme,style:hme,data:zP,disabled:Pme,selectable:bme,checkable:!!Tme,motion:$me,dragging:tme!==null,height:Nme,itemHeight:Ime,virtual:wme,focusable:gme,focused:$P,tabIndex:mme,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Fme,onScroll:Bme},this.getTreeNodeRequiredProps(),Wme))))}}],[{key:"getDerivedStateFromProps",value:function(B_,$P){var zP=$P.prevProps,eme={prevProps:B_};function tme(yme){return!zP&&yme in B_||zP&&zP[yme]!==B_[yme]}var nme,rme=$P.fieldNames;if(tme("fieldNames")&&(rme=fillFieldNames$1(B_.fieldNames),eme.fieldNames=rme),tme("treeData")?nme=B_.treeData:tme("children")&&(warningOnce(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),nme=convertTreeToData(B_.children)),nme){eme.treeData=nme;var ame=convertDataToEntities(nme,{fieldNames:rme});eme.keyEntities=_objectSpread2(_defineProperty({},MOTION_KEY,MotionEntity),ame.keyEntities),process.env.NODE_ENV!=="production"&&warningWithoutKey(nme,rme)}var ome=eme.keyEntities||$P.keyEntities;if(tme("expandedKeys")||zP&&tme("autoExpandParent"))eme.expandedKeys=B_.autoExpandParent||!zP&&B_.defaultExpandParent?conductExpandParent(B_.expandedKeys,ome):B_.expandedKeys;else if(!zP&&B_.defaultExpandAll){var ime=_objectSpread2({},ome);delete ime[MOTION_KEY],eme.expandedKeys=Object.keys(ime).map(function(yme){return ime[yme].key})}else!zP&&B_.defaultExpandedKeys&&(eme.expandedKeys=B_.autoExpandParent||B_.defaultExpandParent?conductExpandParent(B_.defaultExpandedKeys,ome):B_.defaultExpandedKeys);if(eme.expandedKeys||delete eme.expandedKeys,nme||eme.expandedKeys){var cme=flattenTreeData(nme||$P.treeData,eme.expandedKeys||$P.expandedKeys,rme);eme.flattenNodes=cme}if(B_.selectable&&(tme("selectedKeys")?eme.selectedKeys=calcSelectedKeys(B_.selectedKeys,B_):!zP&&B_.defaultSelectedKeys&&(eme.selectedKeys=calcSelectedKeys(B_.defaultSelectedKeys,B_))),B_.checkable){var ume;if(tme("checkedKeys")?ume=parseCheckedKeys(B_.checkedKeys)||{}:!zP&&B_.defaultCheckedKeys?ume=parseCheckedKeys(B_.defaultCheckedKeys)||{}:nme&&(ume=parseCheckedKeys(B_.checkedKeys)||{checkedKeys:$P.checkedKeys,halfCheckedKeys:$P.halfCheckedKeys}),ume){var sme=ume,fme=sme.checkedKeys,lme=fme===void 0?[]:fme,hme=sme.halfCheckedKeys,pme=hme===void 0?[]:hme;if(!B_.checkStrictly){var gme=conductCheck(lme,!0,ome);lme=gme.checkedKeys,pme=gme.halfCheckedKeys}eme.checkedKeys=lme,eme.halfCheckedKeys=pme}}return tme("loadedKeys")&&(eme.loadedKeys=B_.loadedKeys),eme}}]),x_}(React__namespace.Component);_defineProperty(Tree$2,"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:DropIndicator,allowDrop:function(){return!0},expandAction:!1});_defineProperty(Tree$2,"TreeNode",ContextTreeNode);var FileOutlined$1={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"},FileOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:FileOutlined$1}))},RefIcon$f=React__namespace.forwardRef(FileOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$f.displayName="FileOutlined");var FolderOpenOutlined$1={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"},FolderOpenOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:FolderOpenOutlined$1}))},RefIcon$e=React__namespace.forwardRef(FolderOpenOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$e.displayName="FolderOpenOutlined");var FolderOutlined$1={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"},FolderOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:FolderOutlined$1}))},RefIcon$d=React__namespace.forwardRef(FolderOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$d.displayName="FolderOutlined");var HolderOutlined$1={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"},HolderOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:HolderOutlined$1}))},RefIcon$c=React__namespace.forwardRef(HolderOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$c.displayName="HolderOutlined");const treeNodeFX=new Keyframe("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),getSwitchStyle=(Ff,kh)=>({[`.${Ff}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${kh.motionDurationSlow}`}}}),getDropIndicatorStyle=(Ff,kh)=>({[`.${Ff}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:kh.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${unit$1(kh.lineWidthBold)} solid ${kh.colorPrimary}`,borderRadius:"50%",content:'""'}}}),genBaseStyle$2=(Ff,kh)=>{const{treeCls:x_,treeNodeCls:$_,treeNodePadding:B_,titleHeight:$P,nodeSelectedBg:zP,nodeHoverBg:eme}=kh,tme=kh.paddingXS;return{[x_]:Object.assign(Object.assign({},resetComponent(kh)),{background:kh.colorBgContainer,borderRadius:kh.borderRadius,transition:`background-color ${kh.motionDurationSlow}`,[`&${x_}-rtl`]:{[`${x_}-switcher`]:{"&_close":{[`${x_}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${x_}-active-focused)`]:Object.assign({},genFocusOutline(kh)),[`${x_}-list-holder-inner`]:{alignItems:"flex-start"},[`&${x_}-block-node`]:{[`${x_}-list-holder-inner`]:{alignItems:"stretch",[`${x_}-node-content-wrapper`]:{flex:"auto"},[`${$_}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:B_,insetInlineStart:0,border:`1px solid ${kh.colorPrimary}`,opacity:0,animationName:treeNodeFX,animationDuration:kh.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${$_}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${unit$1(B_)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${x_}-node-content-wrapper`]:{color:kh.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${x_}-node-content-wrapper`]:{background:kh.controlItemBgHover},[`&:not(${$_}-disabled).filter-node ${x_}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${x_}-draggable-icon`]:{flexShrink:0,width:$P,lineHeight:`${unit$1($P)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${kh.motionDurationSlow}`,[`${$_}:hover &`]:{opacity:.45}},[`&${$_}-disabled`]:{[`${x_}-draggable-icon`]:{visibility:"hidden"}}}},[`${x_}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:$P}},[`${x_}-draggable-icon`]:{visibility:"hidden"},[`${x_}-switcher`]:Object.assign(Object.assign({},getSwitchStyle(Ff,kh)),{position:"relative",flex:"none",alignSelf:"stretch",width:$P,margin:0,lineHeight:`${unit$1($P)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${kh.motionDurationSlow}`,borderRadius:kh.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${x_}-switcher-noop):hover`]:{backgroundColor:kh.colorBgTextHover},"&_close":{[`${x_}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:kh.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:kh.calc($P).div(2).equal(),bottom:kh.calc(B_).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${kh.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:kh.calc(kh.calc($P).div(2).equal()).mul(.8).equal(),height:kh.calc($P).div(2).equal(),borderBottom:`1px solid ${kh.colorBorder}`,content:'""'}}}),[`${x_}-checkbox`]:{top:"initial",marginInlineEnd:tme,alignSelf:"flex-start",marginTop:kh.marginXXS},[`${x_}-node-content-wrapper, ${x_}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:$P,margin:0,padding:`0 ${unit$1(kh.calc(kh.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${unit$1($P)}`,background:"transparent",borderRadius:kh.borderRadius,cursor:"pointer",transition:`all ${kh.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:eme},[`&${x_}-node-selected`]:{backgroundColor:zP},[`${x_}-iconEle`]:{display:"inline-block",width:$P,height:$P,lineHeight:`${unit$1($P)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${x_}-unselectable ${x_}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${x_}-node-content-wrapper`]:Object.assign({lineHeight:`${unit$1($P)}`,userSelect:"none"},getDropIndicatorStyle(Ff,kh)),[`${$_}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${kh.colorPrimary}`}},"&-show-line":{[`${x_}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:kh.calc($P).div(2).equal(),bottom:kh.calc(B_).mul(-1).equal(),borderInlineEnd:`1px solid ${kh.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${x_}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${$_}-leaf-last`]:{[`${x_}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${unit$1(kh.calc($P).div(2).equal())} !important`}}}}})}},genDirectoryStyle=Ff=>{const{treeCls:kh,treeNodeCls:x_,treeNodePadding:$_,directoryNodeSelectedBg:B_,directoryNodeSelectedColor:$P}=Ff;return{[`${kh}${kh}-directory`]:{[x_]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:$_,insetInlineStart:0,transition:`background-color ${Ff.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ff.controlItemBgHover}},"> *":{zIndex:1},[`${kh}-switcher`]:{transition:`color ${Ff.motionDurationMid}`},[`${kh}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${kh}-node-selected`]:{color:$P,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:B_},[`${kh}-switcher`]:{color:$P},[`${kh}-node-content-wrapper`]:{color:$P,background:"transparent"}}}}}},genTreeStyle=(Ff,kh)=>{const x_=`.${Ff}`,$_=`${x_}-treenode`,B_=kh.calc(kh.paddingXS).div(2).equal(),$P=merge(kh,{treeCls:x_,treeNodeCls:$_,treeNodePadding:B_});return[genBaseStyle$2(Ff,$P),genDirectoryStyle($P)]},initComponentToken=Ff=>{const{controlHeightSM:kh}=Ff;return{titleHeight:kh,nodeHoverBg:Ff.controlItemBgHover,nodeSelectedBg:Ff.controlItemBgActive}},prepareComponentToken$1=Ff=>{const{colorTextLightSolid:kh,colorPrimary:x_}=Ff;return Object.assign(Object.assign({},initComponentToken(Ff)),{directoryNodeSelectedColor:kh,directoryNodeSelectedBg:x_})},useStyle$1=genStyleHooks("Tree",(Ff,kh)=>{let{prefixCls:x_}=kh;return[{[Ff.componentCls]:getStyle(`${x_}-checkbox`,Ff)},genTreeStyle(x_,Ff),genCollapseMotion(Ff)]},prepareComponentToken$1),offset=4;function dropIndicatorRender(Ff){const{dropPosition:kh,dropLevelOffset:x_,prefixCls:$_,indent:B_,direction:$P="ltr"}=Ff,zP=$P==="ltr"?"left":"right",eme=$P==="ltr"?"right":"left",tme={[zP]:-x_*B_+offset,[eme]:0};switch(kh){case-1:tme.top=-3;break;case 1:tme.bottom=-3;break;default:tme.bottom=-3,tme[zP]=B_+offset;break}return React.createElement("div",{style:tme,className:`${$_}-drop-indicator`})}var CaretDownFilled$1={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"},CaretDownFilled=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:CaretDownFilled$1}))},RefIcon$b=React__namespace.forwardRef(CaretDownFilled);process.env.NODE_ENV!=="production"&&(RefIcon$b.displayName="CaretDownFilled");var MinusSquareOutlined$1={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"},MinusSquareOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:MinusSquareOutlined$1}))},RefIcon$a=React__namespace.forwardRef(MinusSquareOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$a.displayName="MinusSquareOutlined");var PlusSquareOutlined$1={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"},PlusSquareOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:PlusSquareOutlined$1}))},RefIcon$9=React__namespace.forwardRef(PlusSquareOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$9.displayName="PlusSquareOutlined");const SwitcherIconCom=Ff=>{const{prefixCls:kh,switcherIcon:x_,treeNodeProps:$_,showLine:B_}=Ff,{isLeaf:$P,expanded:zP,loading:eme}=$_;if(eme)return React__namespace.createElement(RefIcon$x,{className:`${kh}-switcher-loading-icon`});let tme;if(B_&&typeof B_=="object"&&(tme=B_.showLeafIcon),$P){if(!B_)return null;if(typeof tme!="boolean"&&tme){const ame=typeof tme=="function"?tme($_):tme,ome=`${kh}-switcher-line-custom-icon`;return React__namespace.isValidElement(ame)?cloneElement(ame,{className:classNames(ame.props.className||"",ome)}):ame}return tme?React__namespace.createElement(RefIcon$f,{className:`${kh}-switcher-line-icon`}):React__namespace.createElement("span",{className:`${kh}-switcher-leaf-line`})}const nme=`${kh}-switcher-icon`,rme=typeof x_=="function"?x_($_):x_;return React__namespace.isValidElement(rme)?cloneElement(rme,{className:classNames(rme.props.className||"",nme)}):rme!==void 0?rme:B_?zP?React__namespace.createElement(RefIcon$a,{className:`${kh}-switcher-line-icon`}):React__namespace.createElement(RefIcon$9,{className:`${kh}-switcher-line-icon`}):React__namespace.createElement(RefIcon$b,{className:nme})},Tree$1=React.forwardRef((Ff,kh)=>{var x_;const{getPrefixCls:$_,direction:B_,virtual:$P,tree:zP}=React.useContext(ConfigContext),{prefixCls:eme,className:tme,showIcon:nme=!1,showLine:rme,switcherIcon:ame,blockNode:ome=!1,children:ime,checkable:cme=!1,selectable:ume=!0,draggable:sme,motion:fme,style:lme}=Ff,hme=$_("tree",eme),pme=$_(),gme=fme??Object.assign(Object.assign({},initCollapseMotion(pme)),{motionAppear:!1}),yme=Object.assign(Object.assign({},Ff),{checkable:cme,selectable:ume,showIcon:nme,motion:gme,blockNode:ome,showLine:!!rme,dropIndicatorRender}),[mme,bme,Sme]=useStyle$1(hme),[,_me]=useToken(),Cme=_me.paddingXS/2+(((x_=_me.Tree)===null||x_===void 0?void 0:x_.titleHeight)||_me.controlHeightSM),Eme=React.useMemo(()=>{if(!sme)return!1;let Rme={};switch(typeof sme){case"function":Rme.nodeDraggable=sme;break;case"object":Rme=Object.assign({},sme);break}return Rme.icon!==!1&&(Rme.icon=Rme.icon||React.createElement(RefIcon$c,null)),Rme},[sme]),Tme=Rme=>React.createElement(SwitcherIconCom,{prefixCls:hme,switcherIcon:ame,treeNodeProps:Rme,showLine:rme});return mme(React.createElement(Tree$2,Object.assign({itemHeight:Cme,ref:kh,virtual:$P},yme,{style:Object.assign(Object.assign({},zP==null?void 0:zP.style),lme),prefixCls:hme,className:classNames({[`${hme}-icon-hide`]:!nme,[`${hme}-block-node`]:ome,[`${hme}-unselectable`]:!ume,[`${hme}-rtl`]:B_==="rtl"},zP==null?void 0:zP.className,tme,bme,Sme),direction:B_,checkable:cme&&React.createElement("span",{className:`${hme}-checkbox-inner`}),selectable:ume,switcherIcon:Tme,draggable:Eme}),ime))});process.env.NODE_ENV!=="production"&&(Tree$1.displayName="Tree");const RECORD_NONE=0,RECORD_START=1,RECORD_END=2;function traverseNodesKey(Ff,kh,x_){const{key:$_,children:B_}=x_;function $P(zP){const eme=zP[$_],tme=zP[B_];kh(eme,zP)!==!1&&traverseNodesKey(tme||[],kh,x_)}Ff.forEach($P)}function calcRangeKeys(Ff){let{treeData:kh,expandedKeys:x_,startKey:$_,endKey:B_,fieldNames:$P}=Ff;const zP=[];let eme=RECORD_NONE;if($_&&$_===B_)return[$_];if(!$_||!B_)return[];function tme(nme){return nme===$_||nme===B_}return traverseNodesKey(kh,nme=>{if(eme===RECORD_END)return!1;if(tme(nme)){if(zP.push(nme),eme===RECORD_NONE)eme=RECORD_START;else if(eme===RECORD_START)return eme=RECORD_END,!1}else eme===RECORD_START&&zP.push(nme);return x_.includes(nme)},fillFieldNames$1($P)),zP}function convertDirectoryKeysToNodes(Ff,kh,x_){const $_=_toConsumableArray(kh),B_=[];return traverseNodesKey(Ff,($P,zP)=>{const eme=$_.indexOf($P);return eme!==-1&&(B_.push(zP),$_.splice(eme,1)),!!$_.length},fillFieldNames$1(x_)),B_}var __rest$2=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};function getIcon(Ff){const{isLeaf:kh,expanded:x_}=Ff;return kh?React__namespace.createElement(RefIcon$f,null):x_?React__namespace.createElement(RefIcon$e,null):React__namespace.createElement(RefIcon$d,null)}function getTreeData(Ff){let{treeData:kh,children:x_}=Ff;return kh||convertTreeToData(x_)}const DirectoryTree=(Ff,kh)=>{var{defaultExpandAll:x_,defaultExpandParent:$_,defaultExpandedKeys:B_}=Ff,$P=__rest$2(Ff,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const zP=React__namespace.useRef(),eme=React__namespace.useRef(),tme=()=>{const{keyEntities:bme}=convertDataToEntities(getTreeData($P));let Sme;return x_?Sme=Object.keys(bme):$_?Sme=conductExpandParent($P.expandedKeys||B_||[],bme):Sme=$P.expandedKeys||B_||[],Sme},[nme,rme]=React__namespace.useState($P.selectedKeys||$P.defaultSelectedKeys||[]),[ame,ome]=React__namespace.useState(()=>tme());React__namespace.useEffect(()=>{"selectedKeys"in $P&&rme($P.selectedKeys)},[$P.selectedKeys]),React__namespace.useEffect(()=>{"expandedKeys"in $P&&ome($P.expandedKeys)},[$P.expandedKeys]);const ime=(bme,Sme)=>{var _me;return"expandedKeys"in $P||ome(bme),(_me=$P.onExpand)===null||_me===void 0?void 0:_me.call($P,bme,Sme)},cme=(bme,Sme)=>{var _me;const{multiple:Cme,fieldNames:Eme}=$P,{node:Tme,nativeEvent:Rme}=Sme,{key:Pme=""}=Tme,$me=getTreeData($P),Dme=Object.assign(Object.assign({},Sme),{selected:!0}),Mme=(Rme==null?void 0:Rme.ctrlKey)||(Rme==null?void 0:Rme.metaKey),Nme=Rme==null?void 0:Rme.shiftKey;let Ime;Cme&&Mme?(Ime=bme,zP.current=Pme,eme.current=Ime,Dme.selectedNodes=convertDirectoryKeysToNodes($me,Ime,Eme)):Cme&&Nme?(Ime=Array.from(new Set([].concat(_toConsumableArray(eme.current||[]),_toConsumableArray(calcRangeKeys({treeData:$me,expandedKeys:ame,startKey:Pme,endKey:zP.current,fieldNames:Eme}))))),Dme.selectedNodes=convertDirectoryKeysToNodes($me,Ime,Eme)):(Ime=[Pme],zP.current=Pme,eme.current=Ime,Dme.selectedNodes=convertDirectoryKeysToNodes($me,Ime,Eme)),(_me=$P.onSelect)===null||_me===void 0||_me.call($P,Ime,Dme),"selectedKeys"in $P||rme(Ime)},{getPrefixCls:ume,direction:sme}=React__namespace.useContext(ConfigContext),{prefixCls:fme,className:lme,showIcon:hme=!0,expandAction:pme="click"}=$P,gme=__rest$2($P,["prefixCls","className","showIcon","expandAction"]),yme=ume("tree",fme),mme=classNames(`${yme}-directory`,{[`${yme}-directory-rtl`]:sme==="rtl"},lme);return React__namespace.createElement(Tree$1,Object.assign({icon:getIcon,ref:kh,blockNode:!0},gme,{showIcon:hme,expandAction:pme,prefixCls:yme,className:mme,expandedKeys:ame,selectedKeys:nme,onSelect:cme,onExpand:ime}))},ForwardDirectoryTree=React__namespace.forwardRef(DirectoryTree);process.env.NODE_ENV!=="production"&&(ForwardDirectoryTree.displayName="DirectoryTree");const Tree=Tree$1;Tree.DirectoryTree=ForwardDirectoryTree;Tree.TreeNode=ContextTreeNode;var DeleteOutlined$2={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"},DeleteOutlined$1=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:DeleteOutlined$2}))},RefIcon$8=React__namespace.forwardRef(DeleteOutlined$1);process.env.NODE_ENV!=="production"&&(RefIcon$8.displayName="DeleteOutlined");const useCache=function(Ff){var kh=React__namespace.useRef({valueLabels:new Map});return React__namespace.useMemo(function(){var x_=kh.current.valueLabels,$_=new Map,B_=Ff.map(function($P){var zP,eme=$P.value,tme=(zP=$P.label)!==null&&zP!==void 0?zP:x_.get(eme);return $_.set(eme,tme),_objectSpread2(_objectSpread2({},$P),{},{label:tme})});return kh.current.valueLabels=$_,[B_]},[Ff])},useCheckedKeys=function(Ff,kh,x_,$_){return React__namespace.useMemo(function(){var B_=Ff.map(function(tme){var nme=tme.value;return nme}),$P=kh.map(function(tme){var nme=tme.value;return nme}),zP=B_.filter(function(tme){return!$_[tme]});if(x_){var eme=conductCheck(B_,!0,$_);B_=eme.checkedKeys,$P=eme.halfCheckedKeys}return[Array.from(new Set([].concat(_toConsumableArray(zP),_toConsumableArray(B_)))),$P]},[Ff,kh,x_,$_])};function toArray(Ff){return Array.isArray(Ff)?Ff:Ff!==void 0?[Ff]:[]}function fillFieldNames(Ff){var kh=Ff||{},x_=kh.label,$_=kh.value,B_=kh.children,$P=$_||"value";return{_title:x_?[x_]:["title","label"],value:$P,key:$P,children:B_||"children"}}function isCheckDisabled(Ff){return!Ff||Ff.disabled||Ff.disableCheckbox||Ff.checkable===!1}function getAllKeys$2(Ff,kh){var x_=[];function $_(B_){B_.forEach(function($P){var zP=$P[kh.children];zP&&(x_.push($P[kh.value]),$_(zP))})}return $_(Ff),x_}function isNil(Ff){return Ff==null}const useDataEntities=function(Ff,kh){return React__namespace.useMemo(function(){var x_=convertDataToEntities(Ff,{fieldNames:kh,initWrapper:function(B_){return _objectSpread2(_objectSpread2({},B_),{},{valueEntities:new Map})},processEntity:function(B_,$P){var zP=B_.node[kh.value];if(process.env.NODE_ENV!=="production"){var eme=B_.node.key;warningOnce(!isNil(zP),"TreeNode `value` is invalidate: undefined"),warningOnce(!$P.valueEntities.has(zP),"Same `value` exist in the tree: ".concat(zP)),warningOnce(!eme||String(eme)===String(zP),"`key` or `value` with TreeNode must be the same or you can remove one of them. key: ".concat(eme,", value: ").concat(zP,"."))}$P.valueEntities.set(zP,B_)}});return x_},[Ff,kh])};var TreeNode=function(){return null},_excluded$4=["children","value"];function convertChildrenToData(Ff){return toArray$7(Ff).map(function(kh){if(!React__namespace.isValidElement(kh)||!kh.type)return null;var x_=kh,$_=x_.key,B_=x_.props,$P=B_.children,zP=B_.value,eme=_objectWithoutProperties(B_,_excluded$4),tme=_objectSpread2({key:$_,value:zP},eme),nme=convertChildrenToData($P);return nme.length&&(tme.children=nme),tme}).filter(function(kh){return kh})}function fillLegacyProps(Ff){if(!Ff)return Ff;var kh=_objectSpread2({},Ff);return"props"in kh||Object.defineProperty(kh,"props",{get:function(){return warningOnce(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),kh}}),kh}function fillAdditionalInfo(Ff,kh,x_,$_,B_,$P){var zP=null,eme=null;function tme(){function nme(rme){var ame=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",ome=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return rme.map(function(ime,cme){var ume="".concat(ame,"-").concat(cme),sme=ime[$P.value],fme=x_.includes(sme),lme=nme(ime[$P.children]||[],ume,fme),hme=React__namespace.createElement(TreeNode,ime,lme.map(function(gme){return gme.node}));if(kh===sme&&(zP=hme),fme){var pme={pos:ume,node:hme,children:lme};return ome||eme.push(pme),pme}return null}).filter(function(ime){return ime})}eme||(eme=[],nme($_),eme.sort(function(rme,ame){var ome=rme.node.props.value,ime=ame.node.props.value,cme=x_.indexOf(ome),ume=x_.indexOf(ime);return cme-ume}))}Object.defineProperty(Ff,"triggerNode",{get:function(){return warningOnce(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),tme(),zP}}),Object.defineProperty(Ff,"allCheckedNodes",{get:function(){return warningOnce(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),tme(),B_?eme:eme.map(function(rme){var ame=rme.node;return ame})}})}const useFilterTreeData=function(Ff,kh,x_){var $_=x_.treeNodeFilterProp,B_=x_.filterTreeNode,$P=x_.fieldNames,zP=$P.children;return React__namespace.useMemo(function(){if(!kh||B_===!1)return Ff;var eme;if(typeof B_=="function")eme=B_;else{var tme=kh.toUpperCase();eme=function(ame,ome){var ime=ome[$_];return String(ime).toUpperCase().includes(tme)}}function nme(rme){var ame=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return rme.reduce(function(ome,ime){var cme=ime[zP],ume=ame||eme(kh,fillLegacyProps(ime)),sme=nme(cme||[],ume);return(ume||sme.length)&&ome.push(_objectSpread2(_objectSpread2({},ime),{},_defineProperty({isLeaf:void 0},zP,sme))),ome},[])}return nme(Ff)},[Ff,kh,zP,$_,B_])};function useRefFunc(Ff){var kh=React__namespace.useRef();kh.current=Ff;var x_=React__namespace.useCallback(function(){return kh.current.apply(kh,arguments)},[]);return x_}function parseSimpleTreeData(Ff,kh){var x_=kh.id,$_=kh.pId,B_=kh.rootPId,$P={},zP=[],eme=Ff.map(function(tme){var nme=_objectSpread2({},tme),rme=nme[x_];return $P[rme]=nme,nme.key=nme.key||rme,nme});return eme.forEach(function(tme){var nme=tme[$_],rme=$P[nme];rme&&(rme.children=rme.children||[],rme.children.push(tme)),(nme===B_||!rme&&B_===null)&&zP.push(tme)}),zP}function useTreeData(Ff,kh,x_){return React__namespace.useMemo(function(){return Ff?x_?parseSimpleTreeData(Ff,_objectSpread2({id:"id",pId:"pId",rootPId:null},x_!==!0?x_:{})):Ff:convertChildrenToData(kh)},[kh,x_,Ff])}var LegacySelectContext=React__namespace.createContext(null),TreeSelectContext=React__namespace.createContext(null),HIDDEN_STYLE={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},OptionList=function(kh,x_){var $_=useBaseProps(),B_=$_.prefixCls,$P=$_.multiple,zP=$_.searchValue,eme=$_.toggleOpen,tme=$_.open,nme=$_.notFoundContent,rme=React__namespace.useContext(TreeSelectContext),ame=rme.virtual,ome=rme.listHeight,ime=rme.listItemHeight,cme=rme.listItemScrollOffset,ume=rme.treeData,sme=rme.fieldNames,fme=rme.onSelect,lme=rme.dropdownMatchSelectWidth,hme=rme.treeExpandAction,pme=rme.treeTitleRender,gme=rme.onPopupScroll,yme=React__namespace.useContext(LegacySelectContext),mme=yme.checkable,bme=yme.checkedKeys,Sme=yme.halfCheckedKeys,_me=yme.treeExpandedKeys,Cme=yme.treeDefaultExpandAll,Eme=yme.treeDefaultExpandedKeys,Tme=yme.onTreeExpand,Rme=yme.treeIcon,Pme=yme.showTreeIcon,$me=yme.switcherIcon,Dme=yme.treeLine,Mme=yme.treeNodeFilterProp,Nme=yme.loadData,Ime=yme.treeLoadedKeys,wme=yme.treeMotion,Ome=yme.onTreeLoad,Ame=yme.keyEntities,Fme=React__namespace.useRef(),Bme=useMemo(function(){return ume},[tme,ume],function(P0e,y0e){return y0e[0]&&P0e[1]!==y0e[1]}),kme=React__namespace.useState(null),Lme=_slicedToArray(kme,2),Hme=Lme[0],Wme=Lme[1],zme=Ame[Hme],Vme=React__namespace.useMemo(function(){return mme?{checked:bme,halfChecked:Sme}:null},[mme,bme,Sme]);React__namespace.useEffect(function(){if(tme&&!$P&&bme.length){var P0e;(P0e=Fme.current)===null||P0e===void 0||P0e.scrollTo({key:bme[0]}),Wme(bme[0])}},[tme]);var Xme=String(zP).toLowerCase(),e0e=function(y0e){return Xme?String(y0e[Mme]).toLowerCase().includes(Xme):!1},Ume=React__namespace.useState(Eme),Jme=_slicedToArray(Ume,2),s0e=Jme[0],d0e=Jme[1],Zme=React__namespace.useState(null),Qme=_slicedToArray(Zme,2),a0e=Qme[0],t0e=Qme[1],o0e=React__namespace.useMemo(function(){return _me?_toConsumableArray(_me):zP?a0e:s0e},[s0e,a0e,_me,zP]);React__namespace.useEffect(function(){zP&&t0e(getAllKeys$2(ume,sme))},[zP]);var g0e=function(y0e){d0e(y0e),t0e(y0e),Tme&&Tme(y0e)},u0e=function(y0e){y0e.preventDefault()},h0e=function(y0e,$0e){var C0e=$0e.node;mme&&isCheckDisabled(C0e)||(fme(C0e.key,{selected:!bme.includes(C0e.key)}),$P||eme(!1))};if(React__namespace.useImperativeHandle(x_,function(){var P0e;return{scrollTo:(P0e=Fme.current)===null||P0e===void 0?void 0:P0e.scrollTo,onKeyDown:function($0e){var C0e,z0e=$0e.which;switch(z0e){case KeyCode.UP:case KeyCode.DOWN:case KeyCode.LEFT:case KeyCode.RIGHT:(C0e=Fme.current)===null||C0e===void 0||C0e.onKeyDown($0e);break;case KeyCode.ENTER:{if(zme){var D0e=(zme==null?void 0:zme.node)||{},O0e=D0e.selectable,b0e=D0e.value;O0e!==!1&&h0e(null,{node:{key:Hme},selected:!bme.includes(b0e)})}break}case KeyCode.ESC:eme(!1)}},onKeyUp:function(){}}}),Bme.length===0)return React__namespace.createElement("div",{role:"listbox",className:"".concat(B_,"-empty"),onMouseDown:u0e},nme);var E0e={fieldNames:sme};return Ime&&(E0e.loadedKeys=Ime),o0e&&(E0e.expandedKeys=o0e),React__namespace.createElement("div",{onMouseDown:u0e},zme&&tme&&React__namespace.createElement("span",{style:HIDDEN_STYLE,"aria-live":"assertive"},zme.node.value),React__namespace.createElement(Tree$2,_extends({ref:Fme,focusable:!1,prefixCls:"".concat(B_,"-tree"),treeData:Bme,height:ome,itemHeight:ime,itemScrollOffset:cme,virtual:ame!==!1&&lme!==!1,multiple:$P,icon:Rme,showIcon:Pme,switcherIcon:$me,showLine:Dme,loadData:zP?null:Nme,motion:wme,activeKey:Hme,checkable:mme,checkStrictly:!0,checkedKeys:Vme,selectedKeys:mme?[]:bme,defaultExpandAll:Cme,titleRender:pme},E0e,{onActiveChange:Wme,onSelect:h0e,onCheck:h0e,onExpand:g0e,onLoad:Ome,filterTreeNode:e0e,expandAction:hme,onScroll:gme})))},RefOptionList=React__namespace.forwardRef(OptionList);process.env.NODE_ENV!=="production"&&(RefOptionList.displayName="OptionList");var SHOW_ALL="SHOW_ALL",SHOW_PARENT="SHOW_PARENT",SHOW_CHILD="SHOW_CHILD";function formatStrategyValues(Ff,kh,x_,$_){var B_=new Set(Ff);return kh===SHOW_CHILD?Ff.filter(function($P){var zP=x_[$P];return!(zP&&zP.children&&zP.children.some(function(eme){var tme=eme.node;return B_.has(tme[$_.value])})&&zP.children.every(function(eme){var tme=eme.node;return isCheckDisabled(tme)||B_.has(tme[$_.value])}))}):kh===SHOW_PARENT?Ff.filter(function($P){var zP=x_[$P],eme=zP?zP.parent:null;return!(eme&&!isCheckDisabled(eme.node)&&B_.has(eme.key))}):Ff}function warningProps(Ff){var kh=Ff.searchPlaceholder,x_=Ff.treeCheckStrictly,$_=Ff.treeCheckable,B_=Ff.labelInValue,$P=Ff.value,zP=Ff.multiple;warningOnce(!kh,"`searchPlaceholder` has been removed."),x_&&B_===!1&&warningOnce(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(B_||x_)&&warningOnce(toArray($P).every(function(eme){return eme&&_typeof(eme)==="object"&&"value"in eme}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),x_||zP||$_?warningOnce(!$P||Array.isArray($P),"`value` should be an array when `TreeSelect` is checkable or multiple."):warningOnce(!Array.isArray($P),"`value` should not be array when `TreeSelect` is single mode.")}var _excluded$3=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function isRawValue(Ff){return!Ff||_typeof(Ff)!=="object"}var TreeSelect$2=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.id,$_=Ff.prefixCls,B_=$_===void 0?"rc-tree-select":$_,$P=Ff.value,zP=Ff.defaultValue,eme=Ff.onChange,tme=Ff.onSelect,nme=Ff.onDeselect,rme=Ff.searchValue,ame=Ff.inputValue,ome=Ff.onSearch,ime=Ff.autoClearSearchValue,cme=ime===void 0?!0:ime,ume=Ff.filterTreeNode,sme=Ff.treeNodeFilterProp,fme=sme===void 0?"value":sme,lme=Ff.showCheckedStrategy,hme=Ff.treeNodeLabelProp,pme=Ff.multiple,gme=Ff.treeCheckable,yme=Ff.treeCheckStrictly,mme=Ff.labelInValue,bme=Ff.fieldNames,Sme=Ff.treeDataSimpleMode,_me=Ff.treeData,Cme=Ff.children,Eme=Ff.loadData,Tme=Ff.treeLoadedKeys,Rme=Ff.onTreeLoad,Pme=Ff.treeDefaultExpandAll,$me=Ff.treeExpandedKeys,Dme=Ff.treeDefaultExpandedKeys,Mme=Ff.onTreeExpand,Nme=Ff.treeExpandAction,Ime=Ff.virtual,wme=Ff.listHeight,Ome=wme===void 0?200:wme,Ame=Ff.listItemHeight,Fme=Ame===void 0?20:Ame,Bme=Ff.listItemScrollOffset,kme=Bme===void 0?0:Bme,Lme=Ff.onDropdownVisibleChange,Hme=Ff.dropdownMatchSelectWidth,Wme=Hme===void 0?!0:Hme,zme=Ff.treeLine,Vme=Ff.treeIcon,Xme=Ff.showTreeIcon,e0e=Ff.switcherIcon,Ume=Ff.treeMotion,Jme=Ff.treeTitleRender,s0e=Ff.onPopupScroll,d0e=_objectWithoutProperties(Ff,_excluded$3),Zme=useId$1(x_),Qme=gme&&!yme,a0e=gme||yme,t0e=yme||mme,o0e=a0e||pme,g0e=useMergedState(zP,{value:$P}),u0e=_slicedToArray(g0e,2),h0e=u0e[0],E0e=u0e[1],P0e=React__namespace.useMemo(function(){return gme?lme||SHOW_CHILD:SHOW_ALL},[lme,gme]);process.env.NODE_ENV!=="production"&&warningProps(Ff);var y0e=React__namespace.useMemo(function(){return fillFieldNames(bme)},[JSON.stringify(bme)]),$0e=useMergedState("",{value:rme!==void 0?rme:ame,postState:function(w0e){return w0e||""}}),C0e=_slicedToArray($0e,2),z0e=C0e[0],D0e=C0e[1],O0e=function(w0e){D0e(w0e),ome==null||ome(w0e)},b0e=useTreeData(_me,Cme,Sme),k0e=useDataEntities(b0e,y0e),T0e=k0e.keyEntities,L0e=k0e.valueEntities,Y0e=React__namespace.useCallback(function(m0e){var w0e=[],j0e=[];return m0e.forEach(function(_0e){L0e.has(_0e)?j0e.push(_0e):w0e.push(_0e)}),{missingRawValues:w0e,existRawValues:j0e}},[L0e]),mye=useFilterTreeData(b0e,z0e,{fieldNames:y0e,treeNodeFilterProp:fme,filterTreeNode:ume}),Q0e=React__namespace.useCallback(function(m0e){if(m0e){if(hme)return m0e[hme];for(var w0e=y0e._title,j0e=0;j0e<w0e.length;j0e+=1){var _0e=m0e[w0e[j0e]];if(_0e!==void 0)return _0e}}},[y0e,hme]),U0e=React__namespace.useCallback(function(m0e){var w0e=toArray(m0e);return w0e.map(function(j0e){return isRawValue(j0e)?{value:j0e}:j0e})},[]),q0e=React__namespace.useCallback(function(m0e){var w0e=U0e(m0e);return w0e.map(function(j0e){var _0e=j0e.label,Yme=j0e.value,l0e=j0e.halfChecked,S0e,I0e=L0e.get(Yme);if(I0e){var Z0e;_0e=(Z0e=_0e)!==null&&Z0e!==void 0?Z0e:Q0e(I0e.node),S0e=I0e.node.disabled}else if(_0e===void 0){var lye=U0e(h0e).find(function(Tye){return Tye.value===Yme});_0e=lye.label}return{label:_0e,value:Yme,halfChecked:l0e,disabled:S0e}})},[L0e,Q0e,U0e,h0e]),V0e=React__namespace.useMemo(function(){return U0e(h0e)},[U0e,h0e]),X0e=React__namespace.useMemo(function(){var m0e=[],w0e=[];return V0e.forEach(function(j0e){j0e.halfChecked?w0e.push(j0e):m0e.push(j0e)}),[m0e,w0e]},[V0e]),M0e=_slicedToArray(X0e,2),J0e=M0e[0],aye=M0e[1],F0e=React__namespace.useMemo(function(){return J0e.map(function(m0e){return m0e.value})},[J0e]),cye=useCheckedKeys(J0e,aye,Qme,T0e),yye=_slicedToArray(cye,2),W0e=yye[0],sye=yye[1],G0e=React__namespace.useMemo(function(){var m0e=formatStrategyValues(W0e,P0e,T0e,y0e),w0e=m0e.map(function(l0e){var S0e,I0e;return(S0e=(I0e=T0e[l0e])===null||I0e===void 0||(I0e=I0e.node)===null||I0e===void 0?void 0:I0e[y0e.value])!==null&&S0e!==void 0?S0e:l0e}),j0e=w0e.map(function(l0e){var S0e=J0e.find(function(Z0e){return Z0e.value===l0e}),I0e;return mme&&S0e.label!==void 0?I0e=S0e.label:!mme&&Jme&&(I0e=Jme(S0e)),{value:l0e,label:I0e}}),_0e=q0e(j0e),Yme=_0e[0];return!o0e&&Yme&&isNil(Yme.value)&&isNil(Yme.label)?[]:_0e.map(function(l0e){var S0e;return _objectSpread2(_objectSpread2({},l0e),{},{label:(S0e=l0e.label)!==null&&S0e!==void 0?S0e:l0e.value})})},[y0e,o0e,W0e,J0e,q0e,P0e,T0e]),hye=useCache(G0e),wye=_slicedToArray(hye,1),Eye=wye[0],Vye=useRefFunc(function(m0e,w0e,j0e){var _0e=q0e(m0e);if(E0e(_0e),cme&&D0e(""),eme){var Yme=m0e;if(Qme){var l0e=formatStrategyValues(m0e,P0e,T0e,y0e);Yme=l0e.map(function(Uye){var Qye=L0e.get(Uye);return Qye?Qye.node[y0e.value]:Uye})}var S0e=w0e||{triggerValue:void 0,selected:void 0},I0e=S0e.triggerValue,Z0e=S0e.selected,lye=Yme;if(yme){var Tye=aye.filter(function(Uye){return!Yme.includes(Uye.value)});lye=[].concat(_toConsumableArray(lye),_toConsumableArray(Tye))}var xye=q0e(lye),Dye={preValue:J0e,triggerValue:I0e},Lye=!0;(yme||j0e==="selection"&&!Z0e)&&(Lye=!1),fillAdditionalInfo(Dye,I0e,m0e,b0e,Lye,y0e),a0e?Dye.checked=Z0e:Dye.selected=Z0e;var lbe=t0e?xye:xye.map(function(Uye){return Uye.value});eme(o0e?lbe:lbe[0],t0e?null:xye.map(function(Uye){return Uye.label}),Dye)}}),r0e=React__namespace.useCallback(function(m0e,w0e){var j0e,_0e=w0e.selected,Yme=w0e.source,l0e=T0e[m0e],S0e=l0e==null?void 0:l0e.node,I0e=(j0e=S0e==null?void 0:S0e[y0e.value])!==null&&j0e!==void 0?j0e:m0e;if(!o0e)Vye([I0e],{selected:!0,triggerValue:I0e},"option");else{var Z0e=_0e?[].concat(_toConsumableArray(F0e),[I0e]):W0e.filter(function(Qye){return Qye!==I0e});if(Qme){var lye=Y0e(Z0e),Tye=lye.missingRawValues,xye=lye.existRawValues,Dye=xye.map(function(Qye){return L0e.get(Qye).key}),Lye;if(_0e){var lbe=conductCheck(Dye,!0,T0e);Lye=lbe.checkedKeys}else{var Uye=conductCheck(Dye,{checked:!1,halfCheckedKeys:sye},T0e);Lye=Uye.checkedKeys}Z0e=[].concat(_toConsumableArray(Tye),_toConsumableArray(Lye.map(function(Qye){return T0e[Qye].node[y0e.value]})))}Vye(Z0e,{selected:_0e,triggerValue:I0e},Yme||"option")}_0e||!o0e?tme==null||tme(I0e,fillLegacyProps(S0e)):nme==null||nme(I0e,fillLegacyProps(S0e))},[Y0e,L0e,T0e,y0e,o0e,F0e,Vye,Qme,tme,nme,W0e,sye]),R0e=React__namespace.useCallback(function(m0e){if(Lme){var w0e={};Object.defineProperty(w0e,"documentClickClose",{get:function(){return warningOnce(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Lme(m0e,w0e)}},[Lme]),A0e=useRefFunc(function(m0e,w0e){var j0e=m0e.map(function(_0e){return _0e.value});if(w0e.type==="clear"){Vye(j0e,{},"selection");return}w0e.values.length&&r0e(w0e.values[0].value,{selected:!1,source:"selection"})}),n0e=React__namespace.useMemo(function(){return{virtual:Ime,dropdownMatchSelectWidth:Wme,listHeight:Ome,listItemHeight:Fme,listItemScrollOffset:kme,treeData:mye,fieldNames:y0e,onSelect:r0e,treeExpandAction:Nme,treeTitleRender:Jme,onPopupScroll:s0e}},[Ime,Wme,Ome,Fme,kme,mye,y0e,r0e,Nme,Jme,s0e]),f0e=React__namespace.useMemo(function(){return{checkable:a0e,loadData:Eme,treeLoadedKeys:Tme,onTreeLoad:Rme,checkedKeys:W0e,halfCheckedKeys:sye,treeDefaultExpandAll:Pme,treeExpandedKeys:$me,treeDefaultExpandedKeys:Dme,onTreeExpand:Mme,treeIcon:Vme,treeMotion:Ume,showTreeIcon:Xme,switcherIcon:e0e,treeLine:zme,treeNodeFilterProp:fme,keyEntities:T0e}},[a0e,Eme,Tme,Rme,W0e,sye,Pme,$me,Dme,Mme,Vme,Ume,Xme,e0e,zme,fme,T0e]);return React__namespace.createElement(TreeSelectContext.Provider,{value:n0e},React__namespace.createElement(LegacySelectContext.Provider,{value:f0e},React__namespace.createElement(BaseSelect,_extends({ref:kh},d0e,{id:Zme,prefixCls:B_,mode:o0e?"multiple":void 0,displayValues:Eye,onDisplayValuesChange:A0e,searchValue:z0e,onSearch:O0e,OptionList:RefOptionList,emptyOptions:!b0e.length,onDropdownVisibleChange:R0e,dropdownMatchSelectWidth:Wme}))))});process.env.NODE_ENV!=="production"&&(TreeSelect$2.displayName="TreeSelect");var GenericTreeSelect=TreeSelect$2;GenericTreeSelect.TreeNode=TreeNode;GenericTreeSelect.SHOW_ALL=SHOW_ALL;GenericTreeSelect.SHOW_PARENT=SHOW_PARENT;GenericTreeSelect.SHOW_CHILD=SHOW_CHILD;const genBaseStyle$1=Ff=>{const{componentCls:kh,treePrefixCls:x_,colorBgElevated:$_}=Ff,B_=`.${x_}`;return[{[`${kh}-dropdown`]:[{padding:`${unit$1(Ff.paddingXS)} ${unit$1(Ff.calc(Ff.paddingXS).div(2).equal())}`},genTreeStyle(x_,merge(Ff,{colorBgContainer:$_})),{[B_]:{borderRadius:0,[`${B_}-list-holder-inner`]:{alignItems:"stretch",[`${B_}-treenode`]:{[`${B_}-node-content-wrapper`]:{flex:"auto"}}}}},getStyle(`${x_}-checkbox`,Ff),{"&-rtl":{direction:"rtl",[`${B_}-switcher${B_}-switcher_close`]:{[`${B_}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function useTreeSelectStyle(Ff,kh,x_){return genStyleHooks("TreeSelect",$_=>{const B_=merge($_,{treePrefixCls:kh});return[genBaseStyle$1(B_)]},initComponentToken)(Ff,x_)}var __rest$1=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const InternalTreeSelect=(Ff,kh)=>{var x_,{prefixCls:$_,size:B_,disabled:$P,bordered:zP=!0,className:eme,rootClassName:tme,treeCheckable:nme,multiple:rme,listHeight:ame=256,listItemHeight:ome=26,placement:ime,notFoundContent:cme,switcherIcon:ume,treeLine:sme,getPopupContainer:fme,popupClassName:lme,dropdownClassName:hme,treeIcon:pme=!1,transitionName:gme,choiceTransitionName:yme="",status:mme,treeExpandAction:bme,builtinPlacements:Sme,dropdownMatchSelectWidth:_me,popupMatchSelectWidth:Cme,allowClear:Eme,variant:Tme,dropdownStyle:Rme,tagRender:Pme}=Ff,$me=__rest$1(Ff,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender"]);const{getPopupContainer:Dme,getPrefixCls:Mme,renderEmpty:Nme,direction:Ime,virtual:wme,popupMatchSelectWidth:Ome,popupOverflow:Ame}=React__namespace.useContext(ConfigContext);if(process.env.NODE_ENV!=="production"){const U0e=devUseWarning("TreeSelect");process.env.NODE_ENV!=="production"&&U0e(rme!==!1||!nme,"usage","`multiple` will always be `true` when `treeCheckable` is true"),U0e.deprecated(!hme,"dropdownClassName","popupClassName"),U0e.deprecated(_me===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),process.env.NODE_ENV!=="production"&&U0e(!("showArrow"in $me),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),U0e.deprecated(!("bordered"in $me),"bordered","variant")}const Fme=Mme(),Bme=Mme("select",$_),kme=Mme("select-tree",$_),Lme=Mme("tree-select",$_),{compactSize:Hme,compactItemClassnames:Wme}=useCompactItemContext(Bme,Ime),zme=useCSSVarCls(Bme),Vme=useCSSVarCls(Lme),[Xme,e0e,Ume]=useSelectStyle(Bme,zme),[Jme]=useTreeSelectStyle(Lme,kme,Vme),[s0e,d0e]=useVariant(Tme,zP),Zme=classNames(lme||hme,`${Lme}-dropdown`,{[`${Lme}-dropdown-rtl`]:Ime==="rtl"},tme,Ume,zme,Vme,e0e),Qme=!!(nme||rme),a0e=useShowArrow($me.suffixIcon,$me.showArrow),t0e=(x_=Cme??_me)!==null&&x_!==void 0?x_:Ome,{status:o0e,hasFeedback:g0e,isFormItemInput:u0e,feedbackIcon:h0e}=React__namespace.useContext(FormItemInputContext),E0e=getMergedStatus(o0e,mme),{suffixIcon:P0e,removeIcon:y0e,clearIcon:$0e}=useIcons$1(Object.assign(Object.assign({},$me),{multiple:Qme,showSuffixIcon:a0e,hasFeedback:g0e,feedbackIcon:h0e,prefixCls:Bme,componentName:"TreeSelect"})),C0e=Eme===!0?{clearIcon:$0e}:Eme;let z0e;cme!==void 0?z0e=cme:z0e=(Nme==null?void 0:Nme("Select"))||React__namespace.createElement(DefaultRenderEmpty,{componentName:"Select"});const D0e=omit($me,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),O0e=React__namespace.useMemo(()=>ime!==void 0?ime:Ime==="rtl"?"bottomRight":"bottomLeft",[ime,Ime]),b0e=useSize(U0e=>{var q0e;return(q0e=B_??Hme)!==null&&q0e!==void 0?q0e:U0e}),k0e=React__namespace.useContext(DisabledContext),T0e=$P??k0e,L0e=classNames(!$_&&Lme,{[`${Bme}-lg`]:b0e==="large",[`${Bme}-sm`]:b0e==="small",[`${Bme}-rtl`]:Ime==="rtl",[`${Bme}-${s0e}`]:d0e,[`${Bme}-in-form-item`]:u0e},getStatusClassNames(Bme,E0e,g0e),Wme,eme,tme,Ume,zme,Vme,e0e),Y0e=U0e=>React__namespace.createElement(SwitcherIconCom,{prefixCls:kme,switcherIcon:ume,treeNodeProps:U0e,showLine:sme}),[mye]=useZIndex("SelectLike",Rme==null?void 0:Rme.zIndex),Q0e=React__namespace.createElement(GenericTreeSelect,Object.assign({virtual:wme,disabled:T0e},D0e,{dropdownMatchSelectWidth:t0e,builtinPlacements:mergedBuiltinPlacements(Sme,Ame),ref:kh,prefixCls:Bme,className:L0e,listHeight:ame,listItemHeight:ome,treeCheckable:nme&&React__namespace.createElement("span",{className:`${Bme}-tree-checkbox-inner`}),treeLine:!!sme,suffixIcon:P0e,multiple:Qme,placement:O0e,removeIcon:y0e,allowClear:C0e,switcherIcon:Y0e,showTreeIcon:pme,notFoundContent:z0e,getPopupContainer:fme||Dme,treeMotion:null,dropdownClassName:Zme,dropdownStyle:Object.assign(Object.assign({},Rme),{zIndex:mye}),choiceTransitionName:getTransitionName(Fme,"",yme),transitionName:getTransitionName(Fme,"slide-up",gme),treeExpandAction:bme,tagRender:Qme?Pme:void 0}));return Xme(Jme(Q0e))},TreeSelectRef=React__namespace.forwardRef(InternalTreeSelect),TreeSelect$1=TreeSelectRef,PurePanel=genPurePanel(TreeSelect$1);TreeSelect$1.TreeNode=TreeNode;TreeSelect$1.SHOW_ALL=SHOW_ALL;TreeSelect$1.SHOW_PARENT=SHOW_PARENT;TreeSelect$1.SHOW_CHILD=SHOW_CHILD;TreeSelect$1._InternalPanelDoNotUseOrYouWillBeFired=PurePanel;process.env.NODE_ENV!=="production"&&(TreeSelect$1.displayName="TreeSelect");const attrAccept=function(Ff,kh){if(Ff&&kh){var x_=Array.isArray(kh)?kh:kh.split(","),$_=Ff.name||"",B_=Ff.type||"",$P=B_.replace(/\/.*$/,"");return x_.some(function(zP){var eme=zP.trim();if(/^\*(\/\*)?$/.test(zP))return!0;if(eme.charAt(0)==="."){var tme=$_.toLowerCase(),nme=eme.toLowerCase(),rme=[nme];return(nme===".jpg"||nme===".jpeg")&&(rme=[".jpg",".jpeg"]),rme.some(function(ame){return tme.endsWith(ame)})}return/\/\*$/.test(eme)?$P===eme.replace(/\/.*$/,""):B_===eme?!0:/^\w+$/.test(eme)?(warningOnce(!1,"Upload takes an invalidate 'accept' type '".concat(eme,"'.Skip for check.")),!0):!1})}return!0};function getError(Ff,kh){var x_="cannot ".concat(Ff.method," ").concat(Ff.action," ").concat(kh.status,"'"),$_=new Error(x_);return $_.status=kh.status,$_.method=Ff.method,$_.url=Ff.action,$_}function getBody(Ff){var kh=Ff.responseText||Ff.response;if(!kh)return kh;try{return JSON.parse(kh)}catch{return kh}}function upload(Ff){var kh=new XMLHttpRequest;Ff.onProgress&&kh.upload&&(kh.upload.onprogress=function($P){$P.total>0&&($P.percent=$P.loaded/$P.total*100),Ff.onProgress($P)});var x_=new FormData;Ff.data&&Object.keys(Ff.data).forEach(function(B_){var $P=Ff.data[B_];if(Array.isArray($P)){$P.forEach(function(zP){x_.append("".concat(B_,"[]"),zP)});return}x_.append(B_,$P)}),Ff.file instanceof Blob?x_.append(Ff.filename,Ff.file,Ff.file.name):x_.append(Ff.filename,Ff.file),kh.onerror=function($P){Ff.onError($P)},kh.onload=function(){return kh.status<200||kh.status>=300?Ff.onError(getError(Ff,kh),getBody(kh)):Ff.onSuccess(getBody(kh),kh)},kh.open(Ff.method,Ff.action,!0),Ff.withCredentials&&"withCredentials"in kh&&(kh.withCredentials=!0);var $_=Ff.headers||{};return $_["X-Requested-With"]!==null&&kh.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys($_).forEach(function(B_){$_[B_]!==null&&kh.setRequestHeader(B_,$_[B_])}),kh.send(x_),{abort:function(){kh.abort()}}}function loopFiles(Ff,kh){var x_=Ff.createReader(),$_=[];function B_(){x_.readEntries(function($P){var zP=Array.prototype.slice.apply($P);$_=$_.concat(zP);var eme=!zP.length;eme?kh($_):B_()})}B_()}var traverseFileTree=function(kh,x_,$_){var B_=function $P(zP,eme){zP&&(zP.path=eme||"",zP.isFile?zP.file(function(tme){$_(tme)&&(zP.fullPath&&!tme.webkitRelativePath&&(Object.defineProperties(tme,{webkitRelativePath:{writable:!0}}),tme.webkitRelativePath=zP.fullPath.replace(/^\//,""),Object.defineProperties(tme,{webkitRelativePath:{writable:!1}})),x_([tme]))}):zP.isDirectory&&loopFiles(zP,function(tme){tme.forEach(function(nme){$P(nme,"".concat(eme).concat(zP.name,"/"))})}))};kh.forEach(function($P){B_($P.webkitGetAsEntry())})},now=+new Date,index=0;function uid(){return"rc-upload-".concat(now,"-").concat(++index)}var _excluded$2=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],AjaxUploader=function(Ff){_inherits(x_,Ff);var kh=_createSuper(x_);function x_(){var $_;_classCallCheck(this,x_);for(var B_=arguments.length,$P=new Array(B_),zP=0;zP<B_;zP++)$P[zP]=arguments[zP];return $_=kh.call.apply(kh,[this].concat($P)),_defineProperty(_assertThisInitialized($_),"state",{uid:uid()}),_defineProperty(_assertThisInitialized($_),"reqs",{}),_defineProperty(_assertThisInitialized($_),"fileInput",void 0),_defineProperty(_assertThisInitialized($_),"_isMounted",void 0),_defineProperty(_assertThisInitialized($_),"onChange",function(eme){var tme=$_.props,nme=tme.accept,rme=tme.directory,ame=eme.target.files,ome=_toConsumableArray(ame).filter(function(ime){return!rme||attrAccept(ime,nme)});$_.uploadFiles(ome),$_.reset()}),_defineProperty(_assertThisInitialized($_),"onClick",function(eme){var tme=$_.fileInput;if(tme){var nme=eme.target,rme=$_.props.onClick;if(nme&&nme.tagName==="BUTTON"){var ame=tme.parentNode;ame.focus(),nme.blur()}tme.click(),rme&&rme(eme)}}),_defineProperty(_assertThisInitialized($_),"onKeyDown",function(eme){eme.key==="Enter"&&$_.onClick(eme)}),_defineProperty(_assertThisInitialized($_),"onFileDrop",function(eme){var tme=$_.props.multiple;if(eme.preventDefault(),eme.type!=="dragover")if($_.props.directory)traverseFileTree(Array.prototype.slice.call(eme.dataTransfer.items),$_.uploadFiles,function(rme){return attrAccept(rme,$_.props.accept)});else{var nme=_toConsumableArray(eme.dataTransfer.files).filter(function(rme){return attrAccept(rme,$_.props.accept)});tme===!1&&(nme=nme.slice(0,1)),$_.uploadFiles(nme)}}),_defineProperty(_assertThisInitialized($_),"uploadFiles",function(eme){var tme=_toConsumableArray(eme),nme=tme.map(function(rme){return rme.uid=uid(),$_.processFile(rme,tme)});Promise.all(nme).then(function(rme){var ame=$_.props.onBatchStart;ame==null||ame(rme.map(function(ome){var ime=ome.origin,cme=ome.parsedFile;return{file:ime,parsedFile:cme}})),rme.filter(function(ome){return ome.parsedFile!==null}).forEach(function(ome){$_.post(ome)})})}),_defineProperty(_assertThisInitialized($_),"processFile",function(){var eme=_asyncToGenerator(_regeneratorRuntime().mark(function tme(nme,rme){var ame,ome,ime,cme,ume,sme,fme,lme,hme;return _regeneratorRuntime().wrap(function(gme){for(;;)switch(gme.prev=gme.next){case 0:if(ame=$_.props.beforeUpload,ome=nme,!ame){gme.next=14;break}return gme.prev=3,gme.next=6,ame(nme,rme);case 6:ome=gme.sent,gme.next=12;break;case 9:gme.prev=9,gme.t0=gme.catch(3),ome=!1;case 12:if(ome!==!1){gme.next=14;break}return gme.abrupt("return",{origin:nme,parsedFile:null,action:null,data:null});case 14:if(ime=$_.props.action,typeof ime!="function"){gme.next=21;break}return gme.next=18,ime(nme);case 18:cme=gme.sent,gme.next=22;break;case 21:cme=ime;case 22:if(ume=$_.props.data,typeof ume!="function"){gme.next=29;break}return gme.next=26,ume(nme);case 26:sme=gme.sent,gme.next=30;break;case 29:sme=ume;case 30:return fme=(_typeof(ome)==="object"||typeof ome=="string")&&ome?ome:nme,fme instanceof File?lme=fme:lme=new File([fme],nme.name,{type:nme.type}),hme=lme,hme.uid=nme.uid,gme.abrupt("return",{origin:nme,data:sme,parsedFile:hme,action:cme});case 35:case"end":return gme.stop()}},tme,null,[[3,9]])}));return function(tme,nme){return eme.apply(this,arguments)}}()),_defineProperty(_assertThisInitialized($_),"saveFileInput",function(eme){$_.fileInput=eme}),$_}return _createClass(x_,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(B_){var $P=this,zP=B_.data,eme=B_.origin,tme=B_.action,nme=B_.parsedFile;if(this._isMounted){var rme=this.props,ame=rme.onStart,ome=rme.customRequest,ime=rme.name,cme=rme.headers,ume=rme.withCredentials,sme=rme.method,fme=eme.uid,lme=ome||upload,hme={action:tme,filename:ime,data:zP,file:nme,headers:cme,withCredentials:ume,method:sme||"post",onProgress:function(gme){var yme=$P.props.onProgress;yme==null||yme(gme,nme)},onSuccess:function(gme,yme){var mme=$P.props.onSuccess;mme==null||mme(gme,nme,yme),delete $P.reqs[fme]},onError:function(gme,yme){var mme=$P.props.onError;mme==null||mme(gme,yme,nme),delete $P.reqs[fme]}};ame(eme),this.reqs[fme]=lme(hme)}}},{key:"reset",value:function(){this.setState({uid:uid()})}},{key:"abort",value:function(B_){var $P=this.reqs;if(B_){var zP=B_.uid?B_.uid:B_;$P[zP]&&$P[zP].abort&&$P[zP].abort(),delete $P[zP]}else Object.keys($P).forEach(function(eme){$P[eme]&&$P[eme].abort&&$P[eme].abort(),delete $P[eme]})}},{key:"render",value:function(){var B_,$P=this.props,zP=$P.component,eme=$P.prefixCls,tme=$P.className,nme=$P.classNames,rme=nme===void 0?{}:nme,ame=$P.disabled,ome=$P.id,ime=$P.style,cme=$P.styles,ume=cme===void 0?{}:cme,sme=$P.multiple,fme=$P.accept,lme=$P.capture,hme=$P.children,pme=$P.directory,gme=$P.openFileDialogOnClick,yme=$P.onMouseEnter,mme=$P.onMouseLeave,bme=$P.hasControlInside,Sme=_objectWithoutProperties($P,_excluded$2),_me=classNames((B_={},_defineProperty(B_,eme,!0),_defineProperty(B_,"".concat(eme,"-disabled"),ame),_defineProperty(B_,tme,tme),B_)),Cme=pme?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Eme=ame?{}:{onClick:gme?this.onClick:function(){},onKeyDown:gme?this.onKeyDown:function(){},onMouseEnter:yme,onMouseLeave:mme,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:bme?void 0:"0"};return React.createElement(zP,_extends({},Eme,{className:_me,role:bme?void 0:"button",style:ime}),React.createElement("input",_extends({},pickAttrs(Sme,{aria:!0,data:!0}),{id:ome,disabled:ame,type:"file",ref:this.saveFileInput,onClick:function(Rme){return Rme.stopPropagation()},key:this.state.uid,style:_objectSpread2({display:"none"},ume.input),className:rme.input,accept:fme},Cme,{multiple:sme,onChange:this.onChange},lme!=null?{capture:lme}:{})),hme)}}]),x_}(React.Component);function empty(){}var Upload$2=function(Ff){_inherits(x_,Ff);var kh=_createSuper(x_);function x_(){var $_;_classCallCheck(this,x_);for(var B_=arguments.length,$P=new Array(B_),zP=0;zP<B_;zP++)$P[zP]=arguments[zP];return $_=kh.call.apply(kh,[this].concat($P)),_defineProperty(_assertThisInitialized($_),"uploader",void 0),_defineProperty(_assertThisInitialized($_),"saveUploader",function(eme){$_.uploader=eme}),$_}return _createClass(x_,[{key:"abort",value:function(B_){this.uploader.abort(B_)}},{key:"render",value:function(){return React.createElement(AjaxUploader,_extends({},this.props,{ref:this.saveUploader}))}}]),x_}(React.Component);_defineProperty(Upload$2,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:empty,onError:empty,onSuccess:empty,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const genDraggerStyle=Ff=>{const{componentCls:kh,iconCls:x_}=Ff;return{[`${kh}-wrapper`]:{[`${kh}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Ff.colorFillAlter,border:`${unit$1(Ff.lineWidth)} dashed ${Ff.colorBorder}`,borderRadius:Ff.borderRadiusLG,cursor:"pointer",transition:`border-color ${Ff.motionDurationSlow}`,[kh]:{padding:Ff.padding},[`${kh}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:Ff.borderRadiusLG,"&:focus-visible":{outline:`${unit$1(Ff.lineWidthFocus)} solid ${Ff.colorPrimaryBorder}`}},[`${kh}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
296
+ ${x_}-col-xl-24${kh}-label`]:makeVerticalLayoutLabel(Ff),[`@media (max-width: ${unit$1(Ff.screenXSMax)})`]:[makeVerticalLayout(Ff),{[kh]:{[`${x_}-col-xs-24${kh}-label`]:makeVerticalLayoutLabel(Ff)}}],[`@media (max-width: ${unit$1(Ff.screenSMMax)})`]:{[kh]:{[`${x_}-col-sm-24${kh}-label`]:makeVerticalLayoutLabel(Ff)}},[`@media (max-width: ${unit$1(Ff.screenMDMax)})`]:{[kh]:{[`${x_}-col-md-24${kh}-label`]:makeVerticalLayoutLabel(Ff)}},[`@media (max-width: ${unit$1(Ff.screenLGMax)})`]:{[kh]:{[`${x_}-col-lg-24${kh}-label`]:makeVerticalLayoutLabel(Ff)}}}},prepareComponentToken$6=Ff=>({labelRequiredMarkColor:Ff.colorError,labelColor:Ff.colorTextHeading,labelFontSize:Ff.fontSize,labelHeight:Ff.controlHeight,labelColonMarginInlineStart:Ff.marginXXS/2,labelColonMarginInlineEnd:Ff.marginXS,itemMarginBottom:Ff.marginLG,verticalLabelPadding:`0 0 ${Ff.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),prepareToken=(Ff,kh)=>merge(Ff,{formItemCls:`${Ff.componentCls}-item`,rootPrefixCls:kh}),useStyle$6=genStyleHooks("Form",(Ff,kh)=>{let{rootPrefixCls:x_}=kh;const $_=prepareToken(Ff,x_);return[genFormStyle($_),genFormItemStyle($_),genFormValidateMotionStyle($_),genHorizontalStyle($_,$_.componentCls),genHorizontalStyle($_,$_.formItemCls),genInlineStyle($_),genVerticalStyle($_),genItemVerticalStyle($_),genCollapseMotion($_),zoomIn]},prepareComponentToken$6,{order:-1e3}),EMPTY_LIST=[];function toErrorEntity(Ff,kh,x_){let $_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ff=="string"?Ff:`${kh}-${$_}`,error:Ff,errorStatus:x_}}const ErrorList=Ff=>{let{help:kh,helpStatus:x_,errors:$_=EMPTY_LIST,warnings:B_=EMPTY_LIST,className:$P,fieldId:zP,onVisibleChanged:eme}=Ff;const{prefixCls:tme}=React__namespace.useContext(FormItemPrefixContext),nme=`${tme}-item-explain`,rme=useCSSVarCls(tme),[ame,ome,ime]=useStyle$6(tme,rme),cme=React.useMemo(()=>initCollapseMotion(tme),[tme]),ume=useDebounce($_),sme=useDebounce(B_),fme=React__namespace.useMemo(()=>kh!=null?[toErrorEntity(kh,"help",x_)]:[].concat(_toConsumableArray(ume.map((hme,pme)=>toErrorEntity(hme,"error","error",pme))),_toConsumableArray(sme.map((hme,pme)=>toErrorEntity(hme,"warning","warning",pme)))),[kh,x_,ume,sme]),lme={};return zP&&(lme.id=`${zP}_help`),ame(React__namespace.createElement(CSSMotion,{motionDeadline:cme.motionDeadline,motionName:`${tme}-show-help`,visible:!!fme.length,onVisibleChanged:eme},hme=>{const{className:pme,style:gme}=hme;return React__namespace.createElement("div",Object.assign({},lme,{className:classNames(nme,pme,ime,rme,$P,ome),style:gme,role:"alert"}),React__namespace.createElement(CSSMotionList,Object.assign({keys:fme},initCollapseMotion(tme),{motionName:`${tme}-show-help-item`,component:!1}),yme=>{const{key:mme,error:bme,errorStatus:Sme,className:_me,style:Cme}=yme;return React__namespace.createElement("div",{key:mme,className:classNames(_me,{[`${nme}-${Sme}`]:Sme}),style:Cme},bme)}))}))},formItemNameBlackList=["parentNode"],defaultItemNamePrefixCls="form_item";function toArray$2(Ff){return Ff===void 0||Ff===!1?[]:Array.isArray(Ff)?Ff:[Ff]}function getFieldId(Ff,kh){if(!Ff.length)return;const x_=Ff.join("_");return kh?`${kh}_${x_}`:formItemNameBlackList.includes(x_)?`${defaultItemNamePrefixCls}_${x_}`:x_}function getStatus(Ff,kh,x_,$_,B_,$P){let zP=$_;return $P!==void 0?zP=$P:x_.validating?zP="validating":Ff.length?zP="error":kh.length?zP="warning":(x_.touched||B_&&x_.validated)&&(zP="success"),zP}function toNamePathStr(Ff){return toArray$2(Ff).join("_")}function getFieldDOMNode(Ff,kh){const x_=kh.getFieldInstance(Ff),$_=getDOM(x_);if($_)return $_;const B_=getFieldId(toArray$2(Ff),kh.__INTERNAL__.name);if(B_)return document.getElementById(B_)}function useForm(Ff){const[kh]=useForm$1(),x_=React__namespace.useRef({}),$_=React__namespace.useMemo(()=>Ff??Object.assign(Object.assign({},kh),{__INTERNAL__:{itemRef:B_=>$P=>{const zP=toNamePathStr(B_);$P?x_.current[zP]=$P:delete x_.current[zP]}},scrollToField:function(B_){let $P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const zP=getFieldDOMNode(B_,$_);zP&&e$1(zP,Object.assign({scrollMode:"if-needed",block:"nearest"},$P))},getFieldInstance:B_=>{const $P=toNamePathStr(B_);return x_.current[$P]}}),[Ff,kh]);return[$_]}const names={};function useFormWarning(Ff){let{name:kh}=Ff;const x_=devUseWarning("Form");React.useEffect(()=>{if(kh)return names[kh]=(names[kh]||0)+1,process.env.NODE_ENV!=="production"&&x_(names[kh]<=1,"usage","There exist multiple Form with same `name`."),()=>{names[kh]-=1}},[kh])}var __rest$c=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const InternalForm=(Ff,kh)=>{const x_=React__namespace.useContext(DisabledContext),{getPrefixCls:$_,direction:B_,form:$P}=React__namespace.useContext(ConfigContext),{prefixCls:zP,className:eme,rootClassName:tme,size:nme,disabled:rme=x_,form:ame,colon:ome,labelAlign:ime,labelWrap:cme,labelCol:ume,wrapperCol:sme,hideRequiredMark:fme,layout:lme="horizontal",scrollToFirstError:hme,requiredMark:pme,onFinishFailed:gme,name:yme,style:mme,feedbackIcons:bme,variant:Sme}=Ff,_me=__rest$c(Ff,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Cme=useSize(nme),Eme=React__namespace.useContext(ValidateMessagesContext);process.env.NODE_ENV!=="production"&&useFormWarning(Ff);const Tme=React.useMemo(()=>pme!==void 0?pme:fme?!1:$P&&$P.requiredMark!==void 0?$P.requiredMark:!0,[fme,pme,$P]),Rme=ome??($P==null?void 0:$P.colon),Pme=$_("form",zP),$me=useCSSVarCls(Pme),[Dme,Mme,Nme]=useStyle$6(Pme,$me),Ime=classNames(Pme,`${Pme}-${lme}`,{[`${Pme}-hide-required-mark`]:Tme===!1,[`${Pme}-rtl`]:B_==="rtl",[`${Pme}-${Cme}`]:Cme},Nme,$me,Mme,$P==null?void 0:$P.className,eme,tme),[wme]=useForm(ame),{__INTERNAL__:Ome}=wme;Ome.name=yme;const Ame=React.useMemo(()=>({name:yme,labelAlign:ime,labelCol:ume,labelWrap:cme,wrapperCol:sme,vertical:lme==="vertical",colon:Rme,requiredMark:Tme,itemRef:Ome.itemRef,form:wme,feedbackIcons:bme}),[yme,ime,ume,sme,lme,Rme,Tme,wme,bme]),Fme=React__namespace.useRef(null);React__namespace.useImperativeHandle(kh,()=>{var Lme;return Object.assign(Object.assign({},wme),{nativeElement:(Lme=Fme.current)===null||Lme===void 0?void 0:Lme.nativeElement})});const Bme=(Lme,Hme)=>{if(Lme){let Wme={block:"nearest"};typeof Lme=="object"&&(Wme=Lme),wme.scrollToField(Hme,Wme)}},kme=Lme=>{if(gme==null||gme(Lme),Lme.errorFields.length){const Hme=Lme.errorFields[0].name;if(hme!==void 0){Bme(hme,Hme);return}$P&&$P.scrollToFirstError!==void 0&&Bme($P.scrollToFirstError,Hme)}};return Dme(React__namespace.createElement(VariantContext.Provider,{value:Sme},React__namespace.createElement(DisabledContextProvider,{disabled:rme},React__namespace.createElement(SizeContext.Provider,{value:Cme},React__namespace.createElement(FormProvider,{validateMessages:Eme},React__namespace.createElement(FormContext.Provider,{value:Ame},React__namespace.createElement(RefForm,Object.assign({id:yme},_me,{name:yme,onFinishFailed:kme,form:wme,ref:Fme,style:Object.assign(Object.assign({},$P==null?void 0:$P.style),mme),className:Ime}))))))))},Form$1=React__namespace.forwardRef(InternalForm);process.env.NODE_ENV!=="production"&&(Form$1.displayName="Form");function useChildren(Ff){if(typeof Ff=="function")return Ff;const kh=toArray$7(Ff);return kh.length<=1?kh[0]:kh}const useFormItemStatus=()=>{const{status:Ff,errors:kh=[],warnings:x_=[]}=React.useContext(FormItemInputContext);if(process.env.NODE_ENV!=="production"){const $_=devUseWarning("Form.Item");process.env.NODE_ENV!=="production"&&$_(Ff!==void 0,"usage","Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus")}return{status:Ff,errors:kh,warnings:x_}};useFormItemStatus.Context=FormItemInputContext;function useFrameState(Ff){const[kh,x_]=React__namespace.useState(Ff),$_=React.useRef(null),B_=React.useRef([]),$P=React.useRef(!1);React__namespace.useEffect(()=>($P.current=!1,()=>{$P.current=!0,wrapperRaf.cancel($_.current),$_.current=null}),[]);function zP(eme){$P.current||($_.current===null&&(B_.current=[],$_.current=wrapperRaf(()=>{$_.current=null,x_(tme=>{let nme=tme;return B_.current.forEach(rme=>{nme=rme(nme)}),nme})})),B_.current.push(eme))}return[kh,zP]}function useItemRef(){const{itemRef:Ff}=React__namespace.useContext(FormContext),kh=React__namespace.useRef({});function x_($_,B_){const $P=B_&&typeof B_=="object"&&B_.ref,zP=$_.join("_");return(kh.current.name!==zP||kh.current.originRef!==$P)&&(kh.current.name=zP,kh.current.originRef=$P,kh.current.ref=composeRef(Ff($_),$P)),kh.current.ref}return x_}const genFallbackStyle=Ff=>{const{formItemCls:kh}=Ff;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${kh}-control`]:{display:"flex"}}}},FallbackCmp=genSubStyleComponent(["Form","item-item"],(Ff,kh)=>{let{rootPrefixCls:x_}=kh;const $_=prepareToken(Ff,x_);return[genFallbackStyle($_)]}),FormItemInput=Ff=>{const{prefixCls:kh,status:x_,wrapperCol:$_,children:B_,errors:$P,warnings:zP,_internalItemRender:eme,extra:tme,help:nme,fieldId:rme,marginBottom:ame,onErrorVisibleChanged:ome}=Ff,ime=`${kh}-item`,cme=React__namespace.useContext(FormContext),ume=$_||cme.wrapperCol||{},sme=classNames(`${ime}-control`,ume.className),fme=React__namespace.useMemo(()=>Object.assign({},cme),[cme]);delete fme.labelCol,delete fme.wrapperCol;const lme=React__namespace.createElement("div",{className:`${ime}-control-input`},React__namespace.createElement("div",{className:`${ime}-control-input-content`},B_)),hme=React__namespace.useMemo(()=>({prefixCls:kh,status:x_}),[kh,x_]),pme=ame!==null||$P.length||zP.length?React__namespace.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},React__namespace.createElement(FormItemPrefixContext.Provider,{value:hme},React__namespace.createElement(ErrorList,{fieldId:rme,errors:$P,warnings:zP,help:nme,helpStatus:x_,className:`${ime}-explain-connected`,onVisibleChanged:ome})),!!ame&&React__namespace.createElement("div",{style:{width:0,height:ame}})):null,gme={};rme&&(gme.id=`${rme}_extra`);const yme=tme?React__namespace.createElement("div",Object.assign({},gme,{className:`${ime}-extra`}),tme):null,mme=eme&&eme.mark==="pro_table_render"&&eme.render?eme.render(Ff,{input:lme,errorList:pme,extra:yme}):React__namespace.createElement(React__namespace.Fragment,null,lme,pme,yme);return React__namespace.createElement(FormContext.Provider,{value:fme},React__namespace.createElement(Col,Object.assign({},ume,{className:sme}),mme),React__namespace.createElement(FallbackCmp,{prefixCls:kh}))};var QuestionCircleOutlined$1={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"},QuestionCircleOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:QuestionCircleOutlined$1}))},RefIcon$l=React__namespace.forwardRef(QuestionCircleOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$l.displayName="QuestionCircleOutlined");var __rest$b=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};function toTooltipProps(Ff){return Ff?typeof Ff=="object"&&!React__namespace.isValidElement(Ff)?Ff:{title:Ff}:null}const FormItemLabel=Ff=>{let{prefixCls:kh,label:x_,htmlFor:$_,labelCol:B_,labelAlign:$P,colon:zP,required:eme,requiredMark:tme,tooltip:nme,vertical:rme}=Ff;var ame;const[ome]=useLocale$1("Form"),{labelAlign:ime,labelCol:cme,labelWrap:ume,colon:sme}=React__namespace.useContext(FormContext);if(!x_)return null;const fme=B_||cme||{},lme=$P||ime,hme=`${kh}-item-label`,pme=classNames(hme,lme==="left"&&`${hme}-left`,fme.className,{[`${hme}-wrap`]:!!ume});let gme=x_;const yme=zP===!0||sme!==!1&&zP!==!1;yme&&!rme&&typeof x_=="string"&&x_.trim()!==""&&(gme=x_.replace(/[:|:]\s*$/,""));const bme=toTooltipProps(nme);if(bme){const{icon:Eme=React__namespace.createElement(RefIcon$l,null)}=bme,Tme=__rest$b(bme,["icon"]),Rme=React__namespace.createElement(Tooltip,Object.assign({},Tme),React__namespace.cloneElement(Eme,{className:`${kh}-item-tooltip`,title:"",onClick:Pme=>{Pme.preventDefault()},tabIndex:null}));gme=React__namespace.createElement(React__namespace.Fragment,null,gme,Rme)}const Sme=tme==="optional",_me=typeof tme=="function";_me?gme=tme(gme,{required:!!eme}):Sme&&!eme&&(gme=React__namespace.createElement(React__namespace.Fragment,null,gme,React__namespace.createElement("span",{className:`${kh}-item-optional`,title:""},(ome==null?void 0:ome.optional)||((ame=localeValues.Form)===null||ame===void 0?void 0:ame.optional))));const Cme=classNames({[`${kh}-item-required`]:eme,[`${kh}-item-required-mark-optional`]:Sme||_me,[`${kh}-item-no-colon`]:!yme});return React__namespace.createElement(Col,Object.assign({},fme,{className:pme}),React__namespace.createElement("label",{htmlFor:$_,className:Cme,title:typeof x_=="string"?x_:""},gme))},iconMap={success:RefIcon$B,warning:RefIcon$y,error:RefIcon$A,validating:RefIcon$x};function StatusProvider(Ff){let{children:kh,errors:x_,warnings:$_,hasFeedback:B_,validateStatus:$P,prefixCls:zP,meta:eme,noStyle:tme}=Ff;const nme=`${zP}-item`,{feedbackIcons:rme}=React__namespace.useContext(FormContext),ame=getStatus(x_,$_,eme,null,!!B_,$P),{isFormItemInput:ome,status:ime,hasFeedback:cme,feedbackIcon:ume}=React__namespace.useContext(FormItemInputContext),sme=React__namespace.useMemo(()=>{var fme;let lme;if(B_){const pme=B_!==!0&&B_.icons||rme,gme=ame&&((fme=pme==null?void 0:pme({status:ame,errors:x_,warnings:$_}))===null||fme===void 0?void 0:fme[ame]),yme=ame&&iconMap[ame];lme=gme!==!1&&yme?React__namespace.createElement("span",{className:classNames(`${nme}-feedback-icon`,`${nme}-feedback-icon-${ame}`)},gme||React__namespace.createElement(yme,null)):null}const hme={status:ame||"",errors:x_,warnings:$_,hasFeedback:!!B_,feedbackIcon:lme,isFormItemInput:!0};return tme&&(hme.status=(ame??ime)||"",hme.isFormItemInput=ome,hme.hasFeedback=!!(B_??cme),hme.feedbackIcon=B_!==void 0?hme.feedbackIcon:ume),hme},[ame,B_,tme,ome,ime]);return React__namespace.createElement(FormItemInputContext.Provider,{value:sme},kh)}var __rest$a=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};function ItemHolder(Ff){const{prefixCls:kh,className:x_,rootClassName:$_,style:B_,help:$P,errors:zP,warnings:eme,validateStatus:tme,meta:nme,hasFeedback:rme,hidden:ame,children:ome,fieldId:ime,required:cme,isRequired:ume,onSubItemMetaChange:sme,layout:fme}=Ff,lme=__rest$a(Ff,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),hme=`${kh}-item`,{requiredMark:pme,vertical:gme}=React__namespace.useContext(FormContext),yme=gme||fme==="vertical",mme=React__namespace.useRef(null),bme=useDebounce(zP),Sme=useDebounce(eme),_me=$P!=null,Cme=!!(_me||zP.length||eme.length),Eme=!!mme.current&&isVisible(mme.current),[Tme,Rme]=React__namespace.useState(null);useLayoutEffect$1(()=>{if(Cme&&mme.current){const Nme=getComputedStyle(mme.current);Rme(parseInt(Nme.marginBottom,10))}},[Cme,Eme]);const Pme=Nme=>{Nme||Rme(null)},Dme=function(){let Nme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Ime=Nme?bme:nme.errors,wme=Nme?Sme:nme.warnings;return getStatus(Ime,wme,nme,"",!!rme,tme)}(),Mme=classNames(hme,x_,$_,{[`${hme}-with-help`]:_me||bme.length||Sme.length,[`${hme}-has-feedback`]:Dme&&rme,[`${hme}-has-success`]:Dme==="success",[`${hme}-has-warning`]:Dme==="warning",[`${hme}-has-error`]:Dme==="error",[`${hme}-is-validating`]:Dme==="validating",[`${hme}-hidden`]:ame,[`${hme}-${fme}`]:fme});return React__namespace.createElement("div",{className:Mme,style:B_,ref:mme},React__namespace.createElement(Row,Object.assign({className:`${hme}-row`},omit(lme,["_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"])),React__namespace.createElement(FormItemLabel,Object.assign({htmlFor:ime},Ff,{requiredMark:pme,required:cme??ume,prefixCls:kh,vertical:yme})),React__namespace.createElement(FormItemInput,Object.assign({},Ff,nme,{errors:bme,warnings:Sme,prefixCls:kh,status:Dme,help:$P,marginBottom:Tme,onErrorVisibleChanged:Pme}),React__namespace.createElement(NoStyleItemContext.Provider,{value:sme},React__namespace.createElement(StatusProvider,{prefixCls:kh,meta:nme,errors:nme.errors,warnings:nme.warnings,hasFeedback:rme,validateStatus:Dme},ome)))),!!Tme&&React__namespace.createElement("div",{className:`${hme}-margin-offset`,style:{marginBottom:-Tme}}))}const NAME_SPLIT="__SPLIT__";function isSimilarControl(Ff,kh){const x_=Object.keys(Ff),$_=Object.keys(kh);return x_.length===$_.length&&x_.every(B_=>{const $P=Ff[B_],zP=kh[B_];return $P===zP||typeof $P=="function"||typeof zP=="function"})}const MemoInput=React__namespace.memo(Ff=>{let{children:kh}=Ff;return kh},(Ff,kh)=>isSimilarControl(Ff.control,kh.control)&&Ff.update===kh.update&&Ff.childProps.length===kh.childProps.length&&Ff.childProps.every((x_,$_)=>x_===kh.childProps[$_]));function genEmptyMeta(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function InternalFormItem(Ff){const{name:kh,noStyle:x_,className:$_,dependencies:B_,prefixCls:$P,shouldUpdate:zP,rules:eme,children:tme,required:nme,label:rme,messageVariables:ame,trigger:ome="onChange",validateTrigger:ime,hidden:cme,help:ume,layout:sme}=Ff,{getPrefixCls:fme}=React__namespace.useContext(ConfigContext),{name:lme}=React__namespace.useContext(FormContext),hme=useChildren(tme),pme=typeof hme=="function",gme=React__namespace.useContext(NoStyleItemContext),{validateTrigger:yme}=React__namespace.useContext(Context),mme=ime!==void 0?ime:yme,bme=kh!=null,Sme=fme("form",$P),_me=useCSSVarCls(Sme),[Cme,Eme,Tme]=useStyle$6(Sme,_me),Rme=devUseWarning("Form.Item");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&Rme(kh!==null,"usage","`null` is passed as `name` property");const Pme=React__namespace.useContext(ListContext),$me=React__namespace.useRef(),[Dme,Mme]=useFrameState({}),[Nme,Ime]=useSafeState(()=>genEmptyMeta()),wme=Hme=>{const Wme=Pme==null?void 0:Pme.getKey(Hme.name);if(Ime(Hme.destroy?genEmptyMeta():Hme,!0),x_&&ume!==!1&&gme){let zme=Hme.name;if(Hme.destroy)zme=$me.current||zme;else if(Wme!==void 0){const[Vme,Xme]=Wme;zme=[Vme].concat(_toConsumableArray(Xme)),$me.current=zme}gme(Hme,zme)}},Ome=(Hme,Wme)=>{Mme(zme=>{const Vme=Object.assign({},zme),e0e=[].concat(_toConsumableArray(Hme.name.slice(0,-1)),_toConsumableArray(Wme)).join(NAME_SPLIT);return Hme.destroy?delete Vme[e0e]:Vme[e0e]=Hme,Vme})},[Ame,Fme]=React__namespace.useMemo(()=>{const Hme=_toConsumableArray(Nme.errors),Wme=_toConsumableArray(Nme.warnings);return Object.values(Dme).forEach(zme=>{Hme.push.apply(Hme,_toConsumableArray(zme.errors||[])),Wme.push.apply(Wme,_toConsumableArray(zme.warnings||[]))}),[Hme,Wme]},[Dme,Nme.errors,Nme.warnings]),Bme=useItemRef();function kme(Hme,Wme,zme){return x_&&!cme?React__namespace.createElement(StatusProvider,{prefixCls:Sme,hasFeedback:Ff.hasFeedback,validateStatus:Ff.validateStatus,meta:Nme,errors:Ame,warnings:Fme,noStyle:!0},Hme):React__namespace.createElement(ItemHolder,Object.assign({key:"row"},Ff,{className:classNames($_,Tme,_me,Eme),prefixCls:Sme,fieldId:Wme,isRequired:zme,errors:Ame,warnings:Fme,meta:Nme,onSubItemMetaChange:Ome,layout:sme}),Hme)}if(!bme&&!pme&&!B_)return Cme(kme(hme));let Lme={};return typeof rme=="string"?Lme.label=rme:kh&&(Lme.label=String(kh)),ame&&(Lme=Object.assign(Object.assign({},Lme),ame)),Cme(React__namespace.createElement(WrapperField,Object.assign({},Ff,{messageVariables:Lme,trigger:ome,validateTrigger:mme,onMetaChange:wme}),(Hme,Wme,zme)=>{const Vme=toArray$2(kh).length&&Wme?Wme.name:[],Xme=getFieldId(Vme,lme),e0e=nme!==void 0?nme:!!(eme&&eme.some(s0e=>{if(s0e&&typeof s0e=="object"&&s0e.required&&!s0e.warningOnly)return!0;if(typeof s0e=="function"){const d0e=s0e(zme);return d0e&&d0e.required&&!d0e.warningOnly}return!1})),Ume=Object.assign({},Hme);let Jme=null;if(process.env.NODE_ENV!=="production"&&Rme(!(zP&&B_),"usage","`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."),Array.isArray(hme)&&bme)process.env.NODE_ENV!=="production"&&Rme(!1,"usage","A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."),Jme=hme;else if(pme&&(!(zP||B_)||bme))process.env.NODE_ENV!=="production"&&Rme(!!(zP||B_),"usage","A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."),process.env.NODE_ENV!=="production"&&Rme(!bme,"usage","A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");else if(B_&&!pme&&!bme)process.env.NODE_ENV!=="production"&&Rme(!1,"usage","Must set `name` or use a render function when `dependencies` is set.");else if(React__namespace.isValidElement(hme)){process.env.NODE_ENV!=="production"&&Rme(hme.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");const s0e=Object.assign(Object.assign({},hme.props),Ume);if(s0e.id||(s0e.id=Xme),ume||Ame.length>0||Fme.length>0||Ff.extra){const Qme=[];(ume||Ame.length>0)&&Qme.push(`${Xme}_help`),Ff.extra&&Qme.push(`${Xme}_extra`),s0e["aria-describedby"]=Qme.join(" ")}Ame.length>0&&(s0e["aria-invalid"]="true"),e0e&&(s0e["aria-required"]="true"),supportRef(hme)&&(s0e.ref=Bme(Vme,hme)),new Set([].concat(_toConsumableArray(toArray$2(ome)),_toConsumableArray(toArray$2(mme)))).forEach(Qme=>{s0e[Qme]=function(){for(var a0e,t0e,o0e,g0e,u0e,h0e=arguments.length,E0e=new Array(h0e),P0e=0;P0e<h0e;P0e++)E0e[P0e]=arguments[P0e];(o0e=Ume[Qme])===null||o0e===void 0||(a0e=o0e).call.apply(a0e,[Ume].concat(E0e)),(u0e=(g0e=hme.props)[Qme])===null||u0e===void 0||(t0e=u0e).call.apply(t0e,[g0e].concat(E0e))}});const Zme=[s0e["aria-required"],s0e["aria-invalid"],s0e["aria-describedby"]];Jme=React__namespace.createElement(MemoInput,{control:Ume,update:hme,childProps:Zme},cloneElement(hme,s0e))}else pme&&(zP||B_)&&!bme?Jme=hme(zme):(process.env.NODE_ENV!=="production"&&Rme(!Vme.length||!!x_,"usage","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),Jme=hme);return kme(Jme,Xme,e0e)}))}const FormItem=InternalFormItem;FormItem.useStatus=useFormItemStatus;var __rest$9=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const FormList=Ff=>{var{prefixCls:kh,children:x_}=Ff,$_=__rest$9(Ff,["prefixCls","children"]);if(process.env.NODE_ENV!=="production"){const eme=devUseWarning("Form.List");process.env.NODE_ENV!=="production"&&eme(typeof $_.name=="number"||(Array.isArray($_.name)?!!$_.name.length:!!$_.name),"usage","Miss `name` prop.")}const{getPrefixCls:B_}=React__namespace.useContext(ConfigContext),$P=B_("form",kh),zP=React__namespace.useMemo(()=>({prefixCls:$P,status:"error"}),[$P]);return React__namespace.createElement(List$1,Object.assign({},$_),(eme,tme,nme)=>React__namespace.createElement(FormItemPrefixContext.Provider,{value:zP},x_(eme.map(rme=>Object.assign(Object.assign({},rme),{fieldKey:rme.key})),tme,{errors:nme.errors,warnings:nme.warnings})))};function useFormInstance(){const{form:Ff}=React.useContext(FormContext);return Ff}const Form=Form$1;Form.Item=FormItem;Form.List=FormList;Form.ErrorList=ErrorList;Form.useForm=useForm;Form.useFormInstance=useFormInstance;Form.useWatch=useWatch$1;Form.Provider=FormProvider;Form.create=()=>{process.env.NODE_ENV!=="production"&&warning$3(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};function getClientSize(){var Ff=document.documentElement.clientWidth,kh=window.innerHeight||document.documentElement.clientHeight;return{width:Ff,height:kh}}function getOffset(Ff){var kh=Ff.getBoundingClientRect(),x_=document.documentElement;return{left:kh.left+(window.pageXOffset||x_.scrollLeft)-(x_.clientLeft||document.body.clientLeft||0),top:kh.top+(window.pageYOffset||x_.scrollTop)-(x_.clientTop||document.body.clientTop||0)}}function addEventListenerWrap(Ff,kh,x_,$_){var B_=ReactDOM.unstable_batchedUpdates?function(zP){ReactDOM.unstable_batchedUpdates(x_,zP)}:x_;return Ff!=null&&Ff.addEventListener&&Ff.addEventListener(kh,B_,$_),{remove:function(){Ff!=null&&Ff.removeEventListener&&Ff.removeEventListener(kh,B_,$_)}}}var PreviewGroupContext=React__namespace.createContext(null),Operations=function(kh){var x_=kh.visible,$_=kh.maskTransitionName,B_=kh.getContainer,$P=kh.prefixCls,zP=kh.rootClassName,eme=kh.icons,tme=kh.countRender,nme=kh.showSwitch,rme=kh.showProgress,ame=kh.current,ome=kh.transform,ime=kh.count,cme=kh.scale,ume=kh.minScale,sme=kh.maxScale,fme=kh.closeIcon,lme=kh.onSwitchLeft,hme=kh.onSwitchRight,pme=kh.onClose,gme=kh.onZoomIn,yme=kh.onZoomOut,mme=kh.onRotateRight,bme=kh.onRotateLeft,Sme=kh.onFlipX,_me=kh.onFlipY,Cme=kh.onReset,Eme=kh.toolbarRender,Tme=kh.zIndex,Rme=kh.image,Pme=React.useContext(PreviewGroupContext),$me=eme.rotateLeft,Dme=eme.rotateRight,Mme=eme.zoomIn,Nme=eme.zoomOut,Ime=eme.close,wme=eme.left,Ome=eme.right,Ame=eme.flipX,Fme=eme.flipY,Bme="".concat($P,"-operations-operation");React__namespace.useEffect(function(){var Wme=function(Vme){Vme.keyCode===KeyCode.ESC&&pme()};return x_&&window.addEventListener("keydown",Wme),function(){window.removeEventListener("keydown",Wme)}},[x_]);var kme=[{icon:Fme,onClick:_me,type:"flipY"},{icon:Ame,onClick:Sme,type:"flipX"},{icon:$me,onClick:bme,type:"rotateLeft"},{icon:Dme,onClick:mme,type:"rotateRight"},{icon:Nme,onClick:yme,type:"zoomOut",disabled:cme<=ume},{icon:Mme,onClick:gme,type:"zoomIn",disabled:cme===sme}],Lme=kme.map(function(Wme){var zme,Vme=Wme.icon,Xme=Wme.onClick,e0e=Wme.type,Ume=Wme.disabled;return React__namespace.createElement("div",{className:classNames(Bme,(zme={},_defineProperty(zme,"".concat($P,"-operations-operation-").concat(e0e),!0),_defineProperty(zme,"".concat($P,"-operations-operation-disabled"),!!Ume),zme)),onClick:Xme,key:e0e},Vme)}),Hme=React__namespace.createElement("div",{className:"".concat($P,"-operations")},Lme);return React__namespace.createElement(CSSMotion,{visible:x_,motionName:$_},function(Wme){var zme=Wme.className,Vme=Wme.style;return React__namespace.createElement(Portal,{open:!0,getContainer:B_??document.body},React__namespace.createElement("div",{className:classNames("".concat($P,"-operations-wrapper"),zme,zP),style:_objectSpread2(_objectSpread2({},Vme),{},{zIndex:Tme})},fme===null?null:React__namespace.createElement("button",{className:"".concat($P,"-close"),onClick:pme},fme||Ime),nme&&React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("div",{className:classNames("".concat($P,"-switch-left"),_defineProperty({},"".concat($P,"-switch-left-disabled"),ame===0)),onClick:lme},wme),React__namespace.createElement("div",{className:classNames("".concat($P,"-switch-right"),_defineProperty({},"".concat($P,"-switch-right-disabled"),ame===ime-1)),onClick:hme},Ome)),React__namespace.createElement("div",{className:"".concat($P,"-footer")},rme&&React__namespace.createElement("div",{className:"".concat($P,"-progress")},tme?tme(ame+1,ime):"".concat(ame+1," / ").concat(ime)),Eme?Eme(Hme,_objectSpread2(_objectSpread2({icons:{flipYIcon:Lme[0],flipXIcon:Lme[1],rotateLeftIcon:Lme[2],rotateRightIcon:Lme[3],zoomOutIcon:Lme[4],zoomInIcon:Lme[5]},actions:{onFlipY:_me,onFlipX:Sme,onRotateLeft:bme,onRotateRight:mme,onZoomOut:yme,onZoomIn:gme,onReset:Cme,onClose:pme},transform:ome},Pme?{current:ame,total:ime}:{}),{},{image:Rme})):Hme)))})},initialTransform={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function useImageTransform(Ff,kh,x_,$_){var B_=React.useRef(null),$P=React.useRef([]),zP=React.useState(initialTransform),eme=_slicedToArray(zP,2),tme=eme[0],nme=eme[1],rme=function(cme){nme(initialTransform),isEqual$1(initialTransform,tme)||$_==null||$_({transform:initialTransform,action:cme})},ame=function(cme,ume){B_.current===null&&($P.current=[],B_.current=wrapperRaf(function(){nme(function(sme){var fme=sme;return $P.current.forEach(function(lme){fme=_objectSpread2(_objectSpread2({},fme),lme)}),B_.current=null,$_==null||$_({transform:fme,action:ume}),fme})})),$P.current.push(_objectSpread2(_objectSpread2({},tme),cme))},ome=function(cme,ume,sme,fme,lme){var hme=Ff.current,pme=hme.width,gme=hme.height,yme=hme.offsetWidth,mme=hme.offsetHeight,bme=hme.offsetLeft,Sme=hme.offsetTop,_me=cme,Cme=tme.scale*cme;Cme>x_?(Cme=x_,_me=x_/tme.scale):Cme<kh&&(Cme=lme?Cme:kh,_me=Cme/tme.scale);var Eme=sme??innerWidth/2,Tme=fme??innerHeight/2,Rme=_me-1,Pme=Rme*pme*.5,$me=Rme*gme*.5,Dme=Rme*(Eme-tme.x-bme),Mme=Rme*(Tme-tme.y-Sme),Nme=tme.x-(Dme-Pme),Ime=tme.y-(Mme-$me);if(cme<1&&Cme===1){var wme=yme*Cme,Ome=mme*Cme,Ame=getClientSize(),Fme=Ame.width,Bme=Ame.height;wme<=Fme&&Ome<=Bme&&(Nme=0,Ime=0)}ame({x:Nme,y:Ime,scale:Cme},ume)};return{transform:tme,resetTransform:rme,updateTransform:ame,dispatchZoomChange:ome}}function fixPoint(Ff,kh,x_,$_){var B_=kh+x_,$P=(x_-$_)/2;if(x_>$_){if(kh>0)return _defineProperty({},Ff,$P);if(kh<0&&B_<$_)return _defineProperty({},Ff,-$P)}else if(kh<0||B_>$_)return _defineProperty({},Ff,kh<0?$P:-$P);return{}}function getFixScaleEleTransPosition(Ff,kh,x_,$_){var B_=getClientSize(),$P=B_.width,zP=B_.height,eme=null;return Ff<=$P&&kh<=zP?eme={x:0,y:0}:(Ff>$P||kh>zP)&&(eme=_objectSpread2(_objectSpread2({},fixPoint("x",x_,Ff,$P)),fixPoint("y",$_,kh,zP))),eme}var BASE_SCALE_RATIO=1,WHEEL_MAX_SCALE_RATIO=1;function useMouseEvent(Ff,kh,x_,$_,B_,$P,zP){var eme=B_.rotate,tme=B_.scale,nme=B_.x,rme=B_.y,ame=React.useState(!1),ome=_slicedToArray(ame,2),ime=ome[0],cme=ome[1],ume=React.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),sme=function(gme){!kh||gme.button!==0||(gme.preventDefault(),gme.stopPropagation(),ume.current={diffX:gme.pageX-nme,diffY:gme.pageY-rme,transformX:nme,transformY:rme},cme(!0))},fme=function(gme){x_&&ime&&$P({x:gme.pageX-ume.current.diffX,y:gme.pageY-ume.current.diffY},"move")},lme=function(){if(x_&&ime){cme(!1);var gme=ume.current,yme=gme.transformX,mme=gme.transformY,bme=nme!==yme&&rme!==mme;if(!bme)return;var Sme=Ff.current.offsetWidth*tme,_me=Ff.current.offsetHeight*tme,Cme=Ff.current.getBoundingClientRect(),Eme=Cme.left,Tme=Cme.top,Rme=eme%180!==0,Pme=getFixScaleEleTransPosition(Rme?_me:Sme,Rme?Sme:_me,Eme,Tme);Pme&&$P(_objectSpread2({},Pme),"dragRebound")}},hme=function(gme){if(!(!x_||gme.deltaY==0)){var yme=Math.abs(gme.deltaY/100),mme=Math.min(yme,WHEEL_MAX_SCALE_RATIO),bme=BASE_SCALE_RATIO+mme*$_;gme.deltaY>0&&(bme=BASE_SCALE_RATIO/bme),zP(bme,"wheel",gme.clientX,gme.clientY)}};return React.useEffect(function(){var pme,gme,yme,mme;if(kh){yme=addEventListenerWrap(window,"mouseup",lme,!1),mme=addEventListenerWrap(window,"mousemove",fme,!1);try{window.top!==window.self&&(pme=addEventListenerWrap(window.top,"mouseup",lme,!1),gme=addEventListenerWrap(window.top,"mousemove",fme,!1))}catch(bme){warning$4(!1,"[rc-image] ".concat(bme))}}return function(){var bme,Sme,_me,Cme;(bme=yme)===null||bme===void 0||bme.remove(),(Sme=mme)===null||Sme===void 0||Sme.remove(),(_me=pme)===null||_me===void 0||_me.remove(),(Cme=gme)===null||Cme===void 0||Cme.remove()}},[x_,ime,nme,rme,eme,kh]),{isMoving:ime,onMouseDown:sme,onMouseMove:fme,onMouseUp:lme,onWheel:hme}}function isImageValid(Ff){return new Promise(function(kh){var x_=document.createElement("img");x_.onerror=function(){return kh(!1)},x_.onload=function(){return kh(!0)},x_.src=Ff})}function useStatus(Ff){var kh=Ff.src,x_=Ff.isCustomPlaceholder,$_=Ff.fallback,B_=React.useState(x_?"loading":"normal"),$P=_slicedToArray(B_,2),zP=$P[0],eme=$P[1],tme=React.useRef(!1),nme=zP==="error";React.useEffect(function(){var ime=!0;return isImageValid(kh).then(function(cme){!cme&&ime&&eme("error")}),function(){ime=!1}},[kh]),React.useEffect(function(){x_&&!tme.current?eme("loading"):nme&&eme("normal")},[kh]);var rme=function(){eme("normal")},ame=function(cme){tme.current=!1,zP==="loading"&&cme!==null&&cme!==void 0&&cme.complete&&(cme.naturalWidth||cme.naturalHeight)&&(tme.current=!0,rme())},ome=nme&&$_?{src:$_}:{onLoad:rme,src:kh};return[ame,ome,zP]}function getDistance(Ff,kh){var x_=Ff.x-kh.x,$_=Ff.y-kh.y;return Math.hypot(x_,$_)}function getCenter(Ff,kh,x_,$_){var B_=getDistance(Ff,x_),$P=getDistance(kh,$_);if(B_===0&&$P===0)return[Ff.x,Ff.y];var zP=B_/(B_+$P),eme=Ff.x+zP*(kh.x-Ff.x),tme=Ff.y+zP*(kh.y-Ff.y);return[eme,tme]}function useTouchEvent(Ff,kh,x_,$_,B_,$P,zP){var eme=B_.rotate,tme=B_.scale,nme=B_.x,rme=B_.y,ame=React.useState(!1),ome=_slicedToArray(ame,2),ime=ome[0],cme=ome[1],ume=React.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),sme=function(gme){ume.current=_objectSpread2(_objectSpread2({},ume.current),gme)},fme=function(gme){if(kh){gme.stopPropagation(),cme(!0);var yme=gme.touches,mme=yme===void 0?[]:yme;mme.length>1?sme({point1:{x:mme[0].clientX,y:mme[0].clientY},point2:{x:mme[1].clientX,y:mme[1].clientY},eventType:"touchZoom"}):sme({point1:{x:mme[0].clientX-nme,y:mme[0].clientY-rme},eventType:"move"})}},lme=function(gme){var yme=gme.touches,mme=yme===void 0?[]:yme,bme=ume.current,Sme=bme.point1,_me=bme.point2,Cme=bme.eventType;if(mme.length>1&&Cme==="touchZoom"){var Eme={x:mme[0].clientX,y:mme[0].clientY},Tme={x:mme[1].clientX,y:mme[1].clientY},Rme=getCenter(Sme,_me,Eme,Tme),Pme=_slicedToArray(Rme,2),$me=Pme[0],Dme=Pme[1],Mme=getDistance(Eme,Tme)/getDistance(Sme,_me);zP(Mme,"touchZoom",$me,Dme,!0),sme({point1:Eme,point2:Tme,eventType:"touchZoom"})}else Cme==="move"&&($P({x:mme[0].clientX-Sme.x,y:mme[0].clientY-Sme.y},"move"),sme({eventType:"move"}))},hme=function(){if(x_){if(ime&&cme(!1),sme({eventType:"none"}),$_>tme)return $P({x:0,y:0,scale:$_},"touchZoom");var gme=Ff.current.offsetWidth*tme,yme=Ff.current.offsetHeight*tme,mme=Ff.current.getBoundingClientRect(),bme=mme.left,Sme=mme.top,_me=eme%180!==0,Cme=getFixScaleEleTransPosition(_me?yme:gme,_me?gme:yme,bme,Sme);Cme&&$P(_objectSpread2({},Cme),"dragRebound")}};return React.useEffect(function(){var pme;return x_&&kh&&(pme=addEventListenerWrap(window,"touchmove",function(gme){return gme.preventDefault()},{passive:!1})),function(){var gme;(gme=pme)===null||gme===void 0||gme.remove()}},[x_,kh]),{isTouching:ime,onTouchStart:fme,onTouchMove:lme,onTouchEnd:hme}}var _excluded$c=["fallback","src","imgRef"],_excluded2$2=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],PreviewImage=function(kh){var x_=kh.fallback,$_=kh.src,B_=kh.imgRef,$P=_objectWithoutProperties(kh,_excluded$c),zP=useStatus({src:$_,fallback:x_}),eme=_slicedToArray(zP,2),tme=eme[0],nme=eme[1];return React.createElement("img",_extends({ref:function(ame){B_.current=ame,tme(ame)}},$P,nme))},Preview=function(kh){var x_=kh.prefixCls,$_=kh.src,B_=kh.alt,$P=kh.imageInfo,zP=kh.fallback,eme=kh.movable,tme=eme===void 0?!0:eme,nme=kh.onClose,rme=kh.visible,ame=kh.icons,ome=ame===void 0?{}:ame,ime=kh.rootClassName,cme=kh.closeIcon,ume=kh.getContainer,sme=kh.current,fme=sme===void 0?0:sme,lme=kh.count,hme=lme===void 0?1:lme,pme=kh.countRender,gme=kh.scaleStep,yme=gme===void 0?.5:gme,mme=kh.minScale,bme=mme===void 0?1:mme,Sme=kh.maxScale,_me=Sme===void 0?50:Sme,Cme=kh.transitionName,Eme=Cme===void 0?"zoom":Cme,Tme=kh.maskTransitionName,Rme=Tme===void 0?"fade":Tme,Pme=kh.imageRender,$me=kh.imgCommonProps,Dme=kh.toolbarRender,Mme=kh.onTransform,Nme=kh.onChange,Ime=_objectWithoutProperties(kh,_excluded2$2),wme=React.useRef(),Ome=React.useContext(PreviewGroupContext),Ame=Ome&&hme>1,Fme=Ome&&hme>=1,Bme=React.useState(!0),kme=_slicedToArray(Bme,2),Lme=kme[0],Hme=kme[1],Wme=useImageTransform(wme,bme,_me,Mme),zme=Wme.transform,Vme=Wme.resetTransform,Xme=Wme.updateTransform,e0e=Wme.dispatchZoomChange,Ume=useMouseEvent(wme,tme,rme,yme,zme,Xme,e0e),Jme=Ume.isMoving,s0e=Ume.onMouseDown,d0e=Ume.onWheel,Zme=useTouchEvent(wme,tme,rme,bme,zme,Xme,e0e),Qme=Zme.isTouching,a0e=Zme.onTouchStart,t0e=Zme.onTouchMove,o0e=Zme.onTouchEnd,g0e=zme.rotate,u0e=zme.scale,h0e=classNames(_defineProperty({},"".concat(x_,"-moving"),Jme));React.useEffect(function(){Lme||Hme(!0)},[Lme]);var E0e=function(){Vme("close")},P0e=function(){e0e(BASE_SCALE_RATIO+yme,"zoomIn")},y0e=function(){e0e(BASE_SCALE_RATIO/(BASE_SCALE_RATIO+yme),"zoomOut")},$0e=function(){Xme({rotate:g0e+90},"rotateRight")},C0e=function(){Xme({rotate:g0e-90},"rotateLeft")},z0e=function(){Xme({flipX:!zme.flipX},"flipX")},D0e=function(){Xme({flipY:!zme.flipY},"flipY")},O0e=function(){Vme("reset")},b0e=function(U0e){U0e==null||U0e.preventDefault(),U0e==null||U0e.stopPropagation(),fme>0&&(Hme(!1),Vme("prev"),Nme==null||Nme(fme-1,fme))},k0e=function(U0e){U0e==null||U0e.preventDefault(),U0e==null||U0e.stopPropagation(),fme<hme-1&&(Hme(!1),Vme("next"),Nme==null||Nme(fme+1,fme))},T0e=function(U0e){!rme||!Ame||(U0e.keyCode===KeyCode.LEFT?b0e():U0e.keyCode===KeyCode.RIGHT&&k0e())},L0e=function(U0e){rme&&(u0e!==1?Xme({x:0,y:0,scale:1},"doubleClick"):e0e(BASE_SCALE_RATIO+yme,"doubleClick",U0e.clientX,U0e.clientY))};React.useEffect(function(){var Q0e=addEventListenerWrap(window,"keydown",T0e,!1);return function(){Q0e.remove()}},[rme,Ame,fme]);var Y0e=React.createElement(PreviewImage,_extends({},$me,{width:kh.width,height:kh.height,imgRef:wme,className:"".concat(x_,"-img"),alt:B_,style:{transform:"translate3d(".concat(zme.x,"px, ").concat(zme.y,"px, 0) scale3d(").concat(zme.flipX?"-":"").concat(u0e,", ").concat(zme.flipY?"-":"").concat(u0e,", 1) rotate(").concat(g0e,"deg)"),transitionDuration:(!Lme||Qme)&&"0s"},fallback:zP,src:$_,onWheel:d0e,onMouseDown:s0e,onDoubleClick:L0e,onTouchStart:a0e,onTouchMove:t0e,onTouchEnd:o0e,onTouchCancel:o0e})),mye=_objectSpread2({url:$_,alt:B_},$P);return React.createElement(React.Fragment,null,React.createElement(DialogWrap,_extends({transitionName:Eme,maskTransitionName:Rme,closable:!1,keyboard:!0,prefixCls:x_,onClose:nme,visible:rme,classNames:{wrapper:h0e},rootClassName:ime,getContainer:ume},Ime,{afterClose:E0e}),React.createElement("div",{className:"".concat(x_,"-img-wrapper")},Pme?Pme(Y0e,_objectSpread2({transform:zme,image:mye},Ome?{current:fme}:{})):Y0e)),React.createElement(Operations,{visible:rme,transform:zme,maskTransitionName:Rme,closeIcon:cme,getContainer:ume,prefixCls:x_,rootClassName:ime,icons:ome,countRender:pme,showSwitch:Ame,showProgress:Fme,current:fme,count:hme,scale:u0e,minScale:bme,maxScale:_me,toolbarRender:Dme,onSwitchLeft:b0e,onSwitchRight:k0e,onZoomIn:P0e,onZoomOut:y0e,onRotateRight:$0e,onRotateLeft:C0e,onFlipX:z0e,onFlipY:D0e,onClose:nme,onReset:O0e,zIndex:Ime.zIndex!==void 0?Ime.zIndex+1:void 0,image:mye}))},COMMON_PROPS=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function usePreviewItems(Ff){var kh=React__namespace.useState({}),x_=_slicedToArray(kh,2),$_=x_[0],B_=x_[1],$P=React__namespace.useCallback(function(eme,tme){return B_(function(nme){return _objectSpread2(_objectSpread2({},nme),{},_defineProperty({},eme,tme))}),function(){B_(function(nme){var rme=_objectSpread2({},nme);return delete rme[eme],rme})}},[]),zP=React__namespace.useMemo(function(){return Ff?Ff.map(function(eme){if(typeof eme=="string")return{data:{src:eme}};var tme={};return Object.keys(eme).forEach(function(nme){["src"].concat(_toConsumableArray(COMMON_PROPS)).includes(nme)&&(tme[nme]=eme[nme])}),{data:tme}}):Object.keys($_).reduce(function(eme,tme){var nme=$_[tme],rme=nme.canPreview,ame=nme.data;return rme&&eme.push({data:ame,id:tme}),eme},[])},[Ff,$_]);return[zP,$P,!!Ff]}var _excluded$b=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],_excluded2$1=["src"],Group=function(kh){var x_,$_=kh.previewPrefixCls,B_=$_===void 0?"rc-image-preview":$_,$P=kh.children,zP=kh.icons,eme=zP===void 0?{}:zP,tme=kh.items,nme=kh.preview,rme=kh.fallback,ame=_typeof(nme)==="object"?nme:{},ome=ame.visible,ime=ame.onVisibleChange,cme=ame.getContainer,ume=ame.current,sme=ame.movable,fme=ame.minScale,lme=ame.maxScale,hme=ame.countRender,pme=ame.closeIcon,gme=ame.onChange,yme=ame.onTransform,mme=ame.toolbarRender,bme=ame.imageRender,Sme=_objectWithoutProperties(ame,_excluded$b),_me=usePreviewItems(tme),Cme=_slicedToArray(_me,3),Eme=Cme[0],Tme=Cme[1],Rme=Cme[2],Pme=useMergedState(0,{value:ume}),$me=_slicedToArray(Pme,2),Dme=$me[0],Mme=$me[1],Nme=React.useState(!1),Ime=_slicedToArray(Nme,2),wme=Ime[0],Ome=Ime[1],Ame=((x_=Eme[Dme])===null||x_===void 0?void 0:x_.data)||{},Fme=Ame.src,Bme=_objectWithoutProperties(Ame,_excluded2$1),kme=useMergedState(!!ome,{value:ome,onChange:function(Qme,a0e){ime==null||ime(Qme,a0e,Dme)}}),Lme=_slicedToArray(kme,2),Hme=Lme[0],Wme=Lme[1],zme=React.useState(null),Vme=_slicedToArray(zme,2),Xme=Vme[0],e0e=Vme[1],Ume=React__namespace.useCallback(function(Zme,Qme,a0e,t0e){var o0e=Rme?Eme.findIndex(function(g0e){return g0e.data.src===Qme}):Eme.findIndex(function(g0e){return g0e.id===Zme});Mme(o0e<0?0:o0e),Wme(!0),e0e({x:a0e,y:t0e}),Ome(!0)},[Eme,Rme]);React__namespace.useEffect(function(){Hme?wme||Mme(0):Ome(!1)},[Hme]);var Jme=function(Qme,a0e){Mme(Qme),gme==null||gme(Qme,a0e)},s0e=function(){Wme(!1),e0e(null)},d0e=React__namespace.useMemo(function(){return{register:Tme,onPreview:Ume}},[Tme,Ume]);return React__namespace.createElement(PreviewGroupContext.Provider,{value:d0e},$P,React__namespace.createElement(Preview,_extends({"aria-hidden":!Hme,movable:sme,visible:Hme,prefixCls:B_,closeIcon:pme,onClose:s0e,mousePosition:Xme,imgCommonProps:Bme,src:Fme,fallback:rme,icons:eme,minScale:fme,maxScale:lme,getContainer:cme,current:Dme,count:Eme.length,countRender:hme,onTransform:yme,toolbarRender:mme,imageRender:bme,onChange:Jme},Sme)))},uid$1=0;function useRegisterImage(Ff,kh){var x_=React__namespace.useState(function(){return uid$1+=1,String(uid$1)}),$_=_slicedToArray(x_,1),B_=$_[0],$P=React__namespace.useContext(PreviewGroupContext),zP={data:kh,canPreview:Ff};return React__namespace.useEffect(function(){if($P)return $P.register(B_,zP)},[]),React__namespace.useEffect(function(){$P&&$P.register(B_,zP)},[Ff,kh]),B_}var _excluded$a=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],_excluded2=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],ImageInternal=function(kh){var x_=kh.src,$_=kh.alt,B_=kh.onPreviewClose,$P=kh.prefixCls,zP=$P===void 0?"rc-image":$P,eme=kh.previewPrefixCls,tme=eme===void 0?"".concat(zP,"-preview"):eme,nme=kh.placeholder,rme=kh.fallback,ame=kh.width,ome=kh.height,ime=kh.style,cme=kh.preview,ume=cme===void 0?!0:cme,sme=kh.className,fme=kh.onClick,lme=kh.onError,hme=kh.wrapperClassName,pme=kh.wrapperStyle,gme=kh.rootClassName,yme=_objectWithoutProperties(kh,_excluded$a),mme=nme&&nme!==!0,bme=_typeof(ume)==="object"?ume:{},Sme=bme.src,_me=bme.visible,Cme=_me===void 0?void 0:_me,Eme=bme.onVisibleChange,Tme=Eme===void 0?B_:Eme,Rme=bme.getContainer,Pme=Rme===void 0?void 0:Rme,$me=bme.mask,Dme=bme.maskClassName,Mme=bme.movable,Nme=bme.icons,Ime=bme.scaleStep,wme=bme.minScale,Ome=bme.maxScale,Ame=bme.imageRender,Fme=bme.toolbarRender,Bme=_objectWithoutProperties(bme,_excluded2),kme=Sme??x_,Lme=useMergedState(!!Cme,{value:Cme,onChange:Tme}),Hme=_slicedToArray(Lme,2),Wme=Hme[0],zme=Hme[1],Vme=useStatus({src:x_,isCustomPlaceholder:mme,fallback:rme}),Xme=_slicedToArray(Vme,3),e0e=Xme[0],Ume=Xme[1],Jme=Xme[2],s0e=React.useState(null),d0e=_slicedToArray(s0e,2),Zme=d0e[0],Qme=d0e[1],a0e=React.useContext(PreviewGroupContext),t0e=!!ume,o0e=function(){zme(!1),Qme(null)},g0e=classNames(zP,hme,gme,_defineProperty({},"".concat(zP,"-error"),Jme==="error")),u0e=React.useMemo(function(){var y0e={};return COMMON_PROPS.forEach(function($0e){kh[$0e]!==void 0&&(y0e[$0e]=kh[$0e])}),y0e},COMMON_PROPS.map(function(y0e){return kh[y0e]})),h0e=React.useMemo(function(){return _objectSpread2(_objectSpread2({},u0e),{},{src:kme})},[kme,u0e]),E0e=useRegisterImage(t0e,h0e),P0e=function($0e){var C0e=getOffset($0e.target),z0e=C0e.left,D0e=C0e.top;a0e?a0e.onPreview(E0e,kme,z0e,D0e):(Qme({x:z0e,y:D0e}),zme(!0)),fme==null||fme($0e)};return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("div",_extends({},yme,{className:g0e,onClick:t0e?P0e:fme,style:_objectSpread2({width:ame,height:ome},pme)}),React__namespace.createElement("img",_extends({},u0e,{className:classNames("".concat(zP,"-img"),_defineProperty({},"".concat(zP,"-img-placeholder"),nme===!0),sme),style:_objectSpread2({height:ome},ime),ref:e0e},Ume,{width:ame,height:ome,onError:lme})),Jme==="loading"&&React__namespace.createElement("div",{"aria-hidden":"true",className:"".concat(zP,"-placeholder")},nme),$me&&t0e&&React__namespace.createElement("div",{className:classNames("".concat(zP,"-mask"),Dme),style:{display:(ime==null?void 0:ime.display)==="none"?"none":void 0}},$me)),!a0e&&t0e&&React__namespace.createElement(Preview,_extends({"aria-hidden":!Wme,visible:Wme,prefixCls:tme,onClose:o0e,mousePosition:Zme,src:kme,alt:$_,imageInfo:{width:ame,height:ome},fallback:rme,getContainer:Pme,icons:Nme,movable:Mme,scaleStep:Ime,minScale:wme,maxScale:Ome,rootClassName:gme,imageRender:Ame,imgCommonProps:u0e,toolbarRender:Fme},Bme)))};ImageInternal.PreviewGroup=Group;process.env.NODE_ENV!=="production"&&(ImageInternal.displayName="Image");var RotateLeftOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},RotateLeftOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:RotateLeftOutlined$1}))},RefIcon$k=React__namespace.forwardRef(RotateLeftOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$k.displayName="RotateLeftOutlined");var RotateRightOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},RotateRightOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:RotateRightOutlined$1}))},RefIcon$j=React__namespace.forwardRef(RotateRightOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$j.displayName="RotateRightOutlined");var SwapOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},SwapOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:SwapOutlined$1}))},RefIcon$i=React__namespace.forwardRef(SwapOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$i.displayName="SwapOutlined");var ZoomInOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},ZoomInOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:ZoomInOutlined$1}))},RefIcon$h=React__namespace.forwardRef(ZoomInOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$h.displayName="ZoomInOutlined");var ZoomOutOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},ZoomOutOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:ZoomOutOutlined$1}))},RefIcon$g=React__namespace.forwardRef(ZoomOutOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$g.displayName="ZoomOutOutlined");const genBoxStyle=Ff=>({position:Ff||"absolute",inset:0}),genImageMaskStyle=Ff=>{const{iconCls:kh,motionDurationSlow:x_,paddingXXS:$_,marginXXS:B_,prefixCls:$P,colorTextLightSolid:zP}=Ff;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:zP,background:new TinyColor("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${x_}`,[`.${$P}-mask-info`]:Object.assign(Object.assign({},textEllipsis),{padding:`0 ${unit$1($_)}`,[kh]:{marginInlineEnd:B_,svg:{verticalAlign:"baseline"}}})}},genPreviewOperationsStyle=Ff=>{const{previewCls:kh,modalMaskBg:x_,paddingSM:$_,marginXL:B_,margin:$P,paddingLG:zP,previewOperationColorDisabled:eme,previewOperationHoverColor:tme,motionDurationSlow:nme,iconCls:rme,colorTextLightSolid:ame}=Ff,ome=new TinyColor(x_).setAlpha(.1),ime=ome.clone().setAlpha(.2);return{[`${kh}-footer`]:{position:"fixed",bottom:B_,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Ff.previewOperationColor},[`${kh}-progress`]:{marginBottom:$P},[`${kh}-close`]:{position:"fixed",top:B_,right:{_skip_check_:!0,value:B_},display:"flex",color:ame,backgroundColor:ome.toRgbString(),borderRadius:"50%",padding:$_,outline:0,border:0,cursor:"pointer",transition:`all ${nme}`,"&:hover":{backgroundColor:ime.toRgbString()},[`& > ${rme}`]:{fontSize:Ff.previewOperationSize}},[`${kh}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${unit$1(zP)}`,backgroundColor:ome.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:$_,padding:$_,cursor:"pointer",transition:`all ${nme}`,userSelect:"none",[`&:not(${kh}-operations-operation-disabled):hover > ${rme}`]:{color:tme},"&-disabled":{color:eme,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${rme}`]:{fontSize:Ff.previewOperationSize}}}}},genPreviewSwitchStyle=Ff=>{const{modalMaskBg:kh,iconCls:x_,previewOperationColorDisabled:$_,previewCls:B_,zIndexPopup:$P,motionDurationSlow:zP}=Ff,eme=new TinyColor(kh).setAlpha(.1),tme=eme.clone().setAlpha(.2);return{[`${B_}-switch-left, ${B_}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Ff.calc($P).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:Ff.imagePreviewSwitchSize,height:Ff.imagePreviewSwitchSize,marginTop:Ff.calc(Ff.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:Ff.previewOperationColor,background:eme.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${zP}`,userSelect:"none","&:hover":{background:tme.toRgbString()},"&-disabled":{"&, &:hover":{color:$_,background:"transparent",cursor:"not-allowed",[`> ${x_}`]:{cursor:"not-allowed"}}},[`> ${x_}`]:{fontSize:Ff.previewOperationSize}},[`${B_}-switch-left`]:{insetInlineStart:Ff.marginSM},[`${B_}-switch-right`]:{insetInlineEnd:Ff.marginSM}}},genImagePreviewStyle=Ff=>{const{motionEaseOut:kh,previewCls:x_,motionDurationSlow:$_,componentCls:B_}=Ff;return[{[`${B_}-preview-root`]:{[x_]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${x_}-body`]:Object.assign(Object.assign({},genBoxStyle()),{overflow:"hidden"}),[`${x_}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${$_} ${kh} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},genBoxStyle()),{transition:`transform ${$_} ${kh} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${x_}-moving`]:{[`${x_}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${B_}-preview-root`]:{[`${x_}-wrap`]:{zIndex:Ff.zIndexPopup}}},{[`${B_}-preview-operations-wrapper`]:{position:"fixed",zIndex:Ff.calc(Ff.zIndexPopup).add(1).equal()},"&":[genPreviewOperationsStyle(Ff),genPreviewSwitchStyle(Ff)]}]},genImageStyle=Ff=>{const{componentCls:kh}=Ff;return{[kh]:{position:"relative",display:"inline-block",[`${kh}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${kh}-img-placeholder`]:{backgroundColor:Ff.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${kh}-mask`]:Object.assign({},genImageMaskStyle(Ff)),[`${kh}-mask:hover`]:{opacity:1},[`${kh}-placeholder`]:Object.assign({},genBoxStyle())}}},genPreviewMotion=Ff=>{const{previewCls:kh}=Ff;return{[`${kh}-root`]:initZoomMotion(Ff,"zoom"),"&":initFadeMotion(Ff,!0)}},prepareComponentToken$5=Ff=>({zIndexPopup:Ff.zIndexPopupBase+80,previewOperationColor:new TinyColor(Ff.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new TinyColor(Ff.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new TinyColor(Ff.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Ff.fontSizeIcon*1.5}),useStyle$5=genStyleHooks("Image",Ff=>{const kh=`${Ff.componentCls}-preview`,x_=merge(Ff,{previewCls:kh,modalMaskBg:new TinyColor("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Ff.controlHeightLG});return[genImageStyle(x_),genImagePreviewStyle(x_),genModalMaskStyle(merge(x_,{componentCls:kh})),genPreviewMotion(x_)]},prepareComponentToken$5);var __rest$8=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const icons={rotateLeft:React__namespace.createElement(RefIcon$k,null),rotateRight:React__namespace.createElement(RefIcon$j,null),zoomIn:React__namespace.createElement(RefIcon$h,null),zoomOut:React__namespace.createElement(RefIcon$g,null),close:React__namespace.createElement(RefIcon$z,null),left:React__namespace.createElement(RefIcon$s,null),right:React__namespace.createElement(RefIcon$t,null),flipX:React__namespace.createElement(RefIcon$i,null),flipY:React__namespace.createElement(RefIcon$i,{rotate:90})},InternalPreviewGroup=Ff=>{var{previewPrefixCls:kh,preview:x_}=Ff,$_=__rest$8(Ff,["previewPrefixCls","preview"]);const{getPrefixCls:B_}=React__namespace.useContext(ConfigContext),$P=B_("image",kh),zP=`${$P}-preview`,eme=B_(),tme=useCSSVarCls($P),[nme,rme,ame]=useStyle$5($P,tme),[ome]=useZIndex("ImagePreview",typeof x_=="object"?x_.zIndex:void 0),ime=React__namespace.useMemo(()=>{var cme;if(x_===!1)return x_;const ume=typeof x_=="object"?x_:{},sme=classNames(rme,ame,tme,(cme=ume.rootClassName)!==null&&cme!==void 0?cme:"");return Object.assign(Object.assign({},ume),{transitionName:getTransitionName(eme,"zoom",ume.transitionName),maskTransitionName:getTransitionName(eme,"fade",ume.maskTransitionName),rootClassName:sme,zIndex:ome})},[x_]);return nme(React__namespace.createElement(ImageInternal.PreviewGroup,Object.assign({preview:ime,previewPrefixCls:zP,icons},$_)))},PreviewGroup=InternalPreviewGroup;var __rest$7=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const Image$1=Ff=>{var kh;const{prefixCls:x_,preview:$_,className:B_,rootClassName:$P,style:zP}=Ff,eme=__rest$7(Ff,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:tme,locale:nme=localeValues,getPopupContainer:rme,image:ame}=React__namespace.useContext(ConfigContext),ome=tme("image",x_),ime=tme(),cme=nme.Image||localeValues.Image,ume=useCSSVarCls(ome),[sme,fme,lme]=useStyle$5(ome,ume),hme=classNames($P,fme,lme,ume),pme=classNames(B_,fme,ame==null?void 0:ame.className),[gme]=useZIndex("ImagePreview",typeof $_=="object"?$_.zIndex:void 0),yme=React__namespace.useMemo(()=>{var bme;if($_===!1)return $_;const Sme=typeof $_=="object"?$_:{},{getContainer:_me,closeIcon:Cme}=Sme,Eme=__rest$7(Sme,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:React__namespace.createElement("div",{className:`${ome}-mask-info`},React__namespace.createElement(RefIcon$p,null),cme==null?void 0:cme.preview),icons},Eme),{getContainer:_me??rme,transitionName:getTransitionName(ime,"zoom",Sme.transitionName),maskTransitionName:getTransitionName(ime,"fade",Sme.maskTransitionName),zIndex:gme,closeIcon:Cme??((bme=ame==null?void 0:ame.preview)===null||bme===void 0?void 0:bme.closeIcon)})},[$_,cme,(kh=ame==null?void 0:ame.preview)===null||kh===void 0?void 0:kh.closeIcon]),mme=Object.assign(Object.assign({},ame==null?void 0:ame.style),zP);return sme(React__namespace.createElement(ImageInternal,Object.assign({prefixCls:ome,preview:yme,rootClassName:hme,className:pme,style:mme},eme)))};Image$1.PreviewGroup=PreviewGroup;process.env.NODE_ENV!=="production"&&(Image$1.displayName="Image");function Progress$1(Ff){let{percent:kh,prefixCls:x_}=Ff;const $_=`${x_}-dot`,B_=`${$_}-holder`,$P=`${B_}-hidden`,[zP,eme]=React__namespace.useState(!1);useLayoutEffect$1(()=>{kh!==0&&eme(!0)},[kh!==0]);const tme=Math.max(Math.min(kh,100),0),nme=100,rme=nme/5,ame=nme/2-rme/2,ome=ame*2*Math.PI,ime=(cme,ume)=>React__namespace.createElement("circle",{className:classNames(cme,`${$_}-circle`),r:ame,cx:"50",cy:"50",strokeWidth:rme,style:ume});return zP?React__namespace.createElement("span",{className:classNames(B_,`${$_}-progress`,tme<=0&&$P)},React__namespace.createElement("svg",{viewBox:`0 0 ${nme} ${nme}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":tme},ime(`${$_}-circle-bg`),ime("",{strokeDasharray:`${ome*tme/100} ${ome*(100-tme)/100}`,strokeDashoffset:`${ome/4}`}))):null}function Looper(Ff){const{prefixCls:kh,percent:x_=0}=Ff,$_=`${kh}-dot`,B_=`${$_}-holder`,$P=`${B_}-hidden`;return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("span",{className:classNames(B_,x_>0&&$P)},React__namespace.createElement("span",{className:classNames($_,`${kh}-dot-spin`)},[1,2,3,4].map(zP=>React__namespace.createElement("i",{className:`${kh}-dot-item`,key:zP})))),React__namespace.createElement(Progress$1,{prefixCls:kh,percent:x_}))}function Indicator(Ff){const{prefixCls:kh,indicator:x_,percent:$_}=Ff,B_=`${kh}-dot`;return x_&&React__namespace.isValidElement(x_)?cloneElement(x_,{className:classNames(x_.props.className,B_),percent:$_}):React__namespace.createElement(Looper,{prefixCls:kh,percent:$_})}const antSpinMove=new Keyframe("antSpinMove",{to:{opacity:1}}),antRotate=new Keyframe("antRotate",{to:{transform:"rotate(405deg)"}}),genSpinStyle=Ff=>{const{componentCls:kh,calc:x_}=Ff;return{[`${kh}`]:Object.assign(Object.assign({},resetComponent(Ff)),{position:"absolute",display:"none",color:Ff.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${Ff.motionDurationSlow} ${Ff.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${kh}-text`]:{fontSize:Ff.fontSize,paddingTop:x_(x_(Ff.dotSize).sub(Ff.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:Ff.colorBgMask,zIndex:Ff.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${Ff.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[kh]:{[`${kh}-dot-holder`]:{color:Ff.colorWhite},[`${kh}-text`]:{color:Ff.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${kh}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:Ff.contentHeight,[`${kh}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:x_(Ff.dotSize).mul(-1).div(2).equal()},[`${kh}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${Ff.colorBgContainer}`},[`&${kh}-show-text ${kh}-dot`]:{marginTop:x_(Ff.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${kh}-dot`]:{margin:x_(Ff.dotSizeSM).mul(-1).div(2).equal()},[`${kh}-text`]:{paddingTop:x_(x_(Ff.dotSizeSM).sub(Ff.fontSize)).div(2).add(2).equal()},[`&${kh}-show-text ${kh}-dot`]:{marginTop:x_(Ff.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${kh}-dot`]:{margin:x_(Ff.dotSizeLG).mul(-1).div(2).equal()},[`${kh}-text`]:{paddingTop:x_(x_(Ff.dotSizeLG).sub(Ff.fontSize)).div(2).add(2).equal()},[`&${kh}-show-text ${kh}-dot`]:{marginTop:x_(Ff.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${kh}-container`]:{position:"relative",transition:`opacity ${Ff.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:Ff.colorBgContainer,opacity:0,transition:`all ${Ff.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${kh}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:Ff.spinDotDefault},[`${kh}-dot-progress`]:{position:"absolute",top:0,insetInlineStart:0},[`${kh}-dot-holder`]:{width:"1em",height:"1em",fontSize:Ff.dotSize,display:"inline-block",transition:`transform ${Ff.motionDurationSlow} ease, opacity ${Ff.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:Ff.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${kh}-dot-progress`]:{position:"absolute",top:0,insetInlineStart:0},[`${kh}-dot`]:{position:"relative",display:"inline-block",fontSize:Ff.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:x_(Ff.dotSize).sub(x_(Ff.marginXXS).div(2)).div(2).equal(),height:x_(Ff.dotSize).sub(x_(Ff.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:antSpinMove,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:antRotate,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map($_=>`${$_} ${Ff.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:Ff.colorFillSecondary}},[`&-sm ${kh}-dot`]:{fontSize:Ff.dotSizeSM},[`&-sm ${kh}-dot-holder`]:{i:{width:x_(x_(Ff.dotSizeSM).sub(x_(Ff.marginXXS).div(2))).div(2).equal(),height:x_(x_(Ff.dotSizeSM).sub(x_(Ff.marginXXS).div(2))).div(2).equal()}},[`&-lg ${kh}-dot`]:{fontSize:Ff.dotSizeLG},[`&-lg ${kh}-dot-holder`]:{i:{width:x_(x_(Ff.dotSizeLG).sub(Ff.marginXXS)).div(2).equal(),height:x_(x_(Ff.dotSizeLG).sub(Ff.marginXXS)).div(2).equal()}},[`&${kh}-show-text ${kh}-text`]:{display:"block"}})}},prepareComponentToken$4=Ff=>{const{controlHeightLG:kh,controlHeight:x_}=Ff;return{contentHeight:400,dotSize:kh/2,dotSizeSM:kh*.35,dotSizeLG:x_}},useStyle$4=genStyleHooks("Spin",Ff=>{const kh=merge(Ff,{spinDotDefault:Ff.colorTextDescription});return[genSpinStyle(kh)]},prepareComponentToken$4),AUTO_INTERVAL=200,STEP_BUCKETS=[[30,.05],[70,.03],[96,.01]];function usePercent(Ff,kh){const[x_,$_]=React__namespace.useState(0),B_=React__namespace.useRef(),$P=kh==="auto";return React__namespace.useEffect(()=>($P&&Ff&&($_(0),B_.current=setInterval(()=>{$_(zP=>{const eme=100-zP;for(let tme=0;tme<STEP_BUCKETS.length;tme+=1){const[nme,rme]=STEP_BUCKETS[tme];if(zP<=nme)return zP+eme*rme}return zP})},AUTO_INTERVAL)),()=>{clearInterval(B_.current)}),[$P,Ff]),$P?x_:kh}var __rest$6=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};let defaultIndicator;function shouldDelay(Ff,kh){return!!Ff&&!!kh&&!isNaN(Number(kh))}const Spin=Ff=>{const{prefixCls:kh,spinning:x_=!0,delay:$_=0,className:B_,rootClassName:$P,size:zP="default",tip:eme,wrapperClassName:tme,style:nme,children:rme,fullscreen:ame=!1,indicator:ome,percent:ime}=Ff,cme=__rest$6(Ff,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:ume}=React__namespace.useContext(ConfigContext),sme=ume("spin",kh),[fme,lme,hme]=useStyle$4(sme),[pme,gme]=React__namespace.useState(()=>x_&&!shouldDelay(x_,$_)),yme=usePercent(pme,ime);React__namespace.useEffect(()=>{if(x_){const Rme=debounce($_,()=>{gme(!0)});return Rme(),()=>{var Pme;(Pme=Rme==null?void 0:Rme.cancel)===null||Pme===void 0||Pme.call(Rme)}}gme(!1)},[$_,x_]);const mme=React__namespace.useMemo(()=>typeof rme<"u"&&!ame,[rme,ame]);if(process.env.NODE_ENV!=="production"){const Rme=devUseWarning("Spin");process.env.NODE_ENV!=="production"&&Rme(!eme||mme||ame,"usage","`tip` only work in nest or fullscreen pattern.")}const{direction:bme,spin:Sme}=React__namespace.useContext(ConfigContext),_me=classNames(sme,Sme==null?void 0:Sme.className,{[`${sme}-sm`]:zP==="small",[`${sme}-lg`]:zP==="large",[`${sme}-spinning`]:pme,[`${sme}-show-text`]:!!eme,[`${sme}-rtl`]:bme==="rtl"},B_,!ame&&$P,lme,hme),Cme=classNames(`${sme}-container`,{[`${sme}-blur`]:pme}),Eme=Object.assign(Object.assign({},Sme==null?void 0:Sme.style),nme),Tme=React__namespace.createElement("div",Object.assign({},cme,{style:Eme,className:_me,"aria-live":"polite","aria-busy":pme}),React__namespace.createElement(Indicator,{prefixCls:sme,indicator:ome??defaultIndicator,percent:yme}),eme&&(mme||ame)?React__namespace.createElement("div",{className:`${sme}-text`},eme):null);return fme(mme?React__namespace.createElement("div",Object.assign({},cme,{className:classNames(`${sme}-nested-loading`,tme,lme,hme)}),pme&&React__namespace.createElement("div",{key:"loading"},Tme),React__namespace.createElement("div",{className:Cme,key:"container"},rme)):ame?React__namespace.createElement("div",{className:classNames(`${sme}-fullscreen`,{[`${sme}-fullscreen-show`]:pme},$P,lme,hme)},Tme):Tme)};Spin.setDefaultIndicator=Ff=>{defaultIndicator=Ff};process.env.NODE_ENV!=="production"&&(Spin.displayName="Spin");var defaultProps={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},useTransitionDuration=function(){var kh=React.useRef([]),x_=React.useRef(null);return React.useEffect(function(){var $_=Date.now(),B_=!1;kh.current.forEach(function($P){if($P){B_=!0;var zP=$P.style;zP.transitionDuration=".3s, .3s, .3s, .06s",x_.current&&$_-x_.current<100&&(zP.transitionDuration="0s, 0s")}}),B_&&(x_.current=Date.now())}),kh.current};process.env.NODE_ENV;var uuid=0,isBrowserClient=process.env.NODE_ENV!=="test"&&canUseDom();function getUUID(){var Ff;return isBrowserClient?(Ff=uuid,uuid+=1):Ff="TEST_OR_SSR",Ff}const useId=function(Ff){var kh=React__namespace.useState(),x_=_slicedToArray(kh,2),$_=x_[0],B_=x_[1];return React__namespace.useEffect(function(){B_("rc_progress_".concat(getUUID()))},[]),Ff||$_};var Block=function(kh){var x_=kh.bg,$_=kh.children;return React__namespace.createElement("div",{style:{width:"100%",height:"100%",background:x_}},$_)};function getPtgColors(Ff,kh){return Object.keys(Ff).map(function(x_){var $_=parseFloat(x_),B_="".concat(Math.floor($_*kh),"%");return"".concat(Ff[x_]," ").concat(B_)})}var PtgCircle=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.prefixCls,$_=Ff.color,B_=Ff.gradientId,$P=Ff.radius,zP=Ff.style,eme=Ff.ptg,tme=Ff.strokeLinecap,nme=Ff.strokeWidth,rme=Ff.size,ame=Ff.gapDegree,ome=$_&&_typeof($_)==="object",ime=ome?"#FFF":void 0,cme=rme/2,ume=React__namespace.createElement("circle",{className:"".concat(x_,"-circle-path"),r:$P,cx:cme,cy:cme,stroke:ime,strokeLinecap:tme,strokeWidth:nme,opacity:eme===0?0:1,style:zP,ref:kh});if(!ome)return ume;var sme="".concat(B_,"-conic"),fme=ame?"".concat(180+ame/2,"deg"):"0deg",lme=getPtgColors($_,(360-ame)/360),hme=getPtgColors($_,1),pme="conic-gradient(from ".concat(fme,", ").concat(lme.join(", "),")"),gme="linear-gradient(to ".concat(ame?"bottom":"top",", ").concat(hme.join(", "),")");return React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement("mask",{id:sme},ume),React__namespace.createElement("foreignObject",{x:0,y:0,width:rme,height:rme,mask:"url(#".concat(sme,")")},React__namespace.createElement(Block,{bg:gme},React__namespace.createElement(Block,{bg:pme}))))});process.env.NODE_ENV!=="production"&&(PtgCircle.displayName="PtgCircle");var VIEW_BOX_SIZE=100,getCircleStyle=function(kh,x_,$_,B_,$P,zP,eme,tme,nme,rme){var ame=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,ome=$_/100*360*((360-zP)/360),ime=zP===0?0:{bottom:0,top:180,left:90,right:-90}[eme],cme=(100-B_)/100*x_;nme==="round"&&B_!==100&&(cme+=rme/2,cme>=x_&&(cme=x_-.01));var ume=VIEW_BOX_SIZE/2;return{stroke:typeof tme=="string"?tme:void 0,strokeDasharray:"".concat(x_,"px ").concat(kh),strokeDashoffset:cme+ame,transform:"rotate(".concat($P+ome+ime,"deg)"),transformOrigin:"".concat(ume,"px ").concat(ume,"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}},_excluded$9=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function toArray$1(Ff){var kh=Ff??[];return Array.isArray(kh)?kh:[kh]}var Circle$1=function(kh){var x_=_objectSpread2(_objectSpread2({},defaultProps),kh),$_=x_.id,B_=x_.prefixCls,$P=x_.steps,zP=x_.strokeWidth,eme=x_.trailWidth,tme=x_.gapDegree,nme=tme===void 0?0:tme,rme=x_.gapPosition,ame=x_.trailColor,ome=x_.strokeLinecap,ime=x_.style,cme=x_.className,ume=x_.strokeColor,sme=x_.percent,fme=_objectWithoutProperties(x_,_excluded$9),lme=VIEW_BOX_SIZE/2,hme=useId($_),pme="".concat(hme,"-gradient"),gme=lme-zP/2,yme=Math.PI*2*gme,mme=nme>0?90+nme/2:-90,bme=yme*((360-nme)/360),Sme=_typeof($P)==="object"?$P:{count:$P,gap:2},_me=Sme.count,Cme=Sme.gap,Eme=toArray$1(sme),Tme=toArray$1(ume),Rme=Tme.find(function(wme){return wme&&_typeof(wme)==="object"}),Pme=Rme&&_typeof(Rme)==="object",$me=Pme?"butt":ome,Dme=getCircleStyle(yme,bme,0,100,mme,nme,rme,ame,$me,zP),Mme=useTransitionDuration(),Nme=function(){var Ome=0;return Eme.map(function(Ame,Fme){var Bme=Tme[Fme]||Tme[Tme.length-1],kme=getCircleStyle(yme,bme,Ome,Ame,mme,nme,rme,Bme,$me,zP);return Ome+=Ame,React__namespace.createElement(PtgCircle,{key:Fme,color:Bme,ptg:Ame,radius:gme,prefixCls:B_,gradientId:pme,style:kme,strokeLinecap:$me,strokeWidth:zP,gapDegree:nme,ref:function(Hme){Mme[Fme]=Hme},size:VIEW_BOX_SIZE})}).reverse()},Ime=function(){var Ome=Math.round(_me*(Eme[0]/100)),Ame=100/_me,Fme=0;return new Array(_me).fill(null).map(function(Bme,kme){var Lme=kme<=Ome-1?Tme[0]:ame,Hme=Lme&&_typeof(Lme)==="object"?"url(#".concat(pme,")"):void 0,Wme=getCircleStyle(yme,bme,Fme,Ame,mme,nme,rme,Lme,"butt",zP,Cme);return Fme+=(bme-Wme.strokeDashoffset+Cme)*100/bme,React__namespace.createElement("circle",{key:kme,className:"".concat(B_,"-circle-path"),r:gme,cx:lme,cy:lme,stroke:Hme,strokeWidth:zP,opacity:1,style:Wme,ref:function(Vme){Mme[kme]=Vme}})})};return React__namespace.createElement("svg",_extends({className:classNames("".concat(B_,"-circle"),cme),viewBox:"0 0 ".concat(VIEW_BOX_SIZE," ").concat(VIEW_BOX_SIZE),style:ime,id:$_,role:"presentation"},fme),!_me&&React__namespace.createElement("circle",{className:"".concat(B_,"-circle-trail"),r:gme,cx:lme,cy:lme,stroke:ame,strokeLinecap:$me,strokeWidth:eme||zP,style:Dme}),_me?Ime():Nme())};process.env.NODE_ENV!=="production"&&(Circle$1.displayName="Circle");function validProgress(Ff){return!Ff||Ff<0?0:Ff>100?100:Ff}function getSuccessPercent(Ff){let{success:kh,successPercent:x_}=Ff,$_=x_;return kh&&"progress"in kh&&($_=kh.progress),kh&&"percent"in kh&&($_=kh.percent),$_}const getPercentage=Ff=>{let{percent:kh,success:x_,successPercent:$_}=Ff;const B_=validProgress(getSuccessPercent({success:x_,successPercent:$_}));return[B_,validProgress(validProgress(kh)-B_)]},getStrokeColor=Ff=>{let{success:kh={},strokeColor:x_}=Ff;const{strokeColor:$_}=kh;return[$_||presetPrimaryColors$1.green,x_||null]},getSize=(Ff,kh,x_)=>{var $_,B_,$P,zP;let eme=-1,tme=-1;if(kh==="step"){const nme=x_.steps,rme=x_.strokeWidth;typeof Ff=="string"||typeof Ff>"u"?(eme=Ff==="small"?2:14,tme=rme??8):typeof Ff=="number"?[eme,tme]=[Ff,Ff]:[eme=14,tme=8]=Array.isArray(Ff)?Ff:[Ff.width,Ff.height],eme*=nme}else if(kh==="line"){const nme=x_==null?void 0:x_.strokeWidth;typeof Ff=="string"||typeof Ff>"u"?tme=nme||(Ff==="small"?6:8):typeof Ff=="number"?[eme,tme]=[Ff,Ff]:[eme=-1,tme=8]=Array.isArray(Ff)?Ff:[Ff.width,Ff.height]}else(kh==="circle"||kh==="dashboard")&&(typeof Ff=="string"||typeof Ff>"u"?[eme,tme]=Ff==="small"?[60,60]:[120,120]:typeof Ff=="number"?[eme,tme]=[Ff,Ff]:Array.isArray(Ff)&&(eme=(B_=($_=Ff[0])!==null&&$_!==void 0?$_:Ff[1])!==null&&B_!==void 0?B_:120,tme=(zP=($P=Ff[0])!==null&&$P!==void 0?$P:Ff[1])!==null&&zP!==void 0?zP:120));return[eme,tme]},CIRCLE_MIN_STROKE_WIDTH=3,getMinPercent=Ff=>CIRCLE_MIN_STROKE_WIDTH/Ff*100,Circle=Ff=>{const{prefixCls:kh,trailColor:x_=null,strokeLinecap:$_="round",gapPosition:B_,gapDegree:$P,width:zP=120,type:eme,children:tme,success:nme,size:rme=zP,steps:ame}=Ff,[ome,ime]=getSize(rme,"circle");let{strokeWidth:cme}=Ff;cme===void 0&&(cme=Math.max(getMinPercent(ome),6));const ume={width:ome,height:ime,fontSize:ome*.15+6},sme=React__namespace.useMemo(()=>{if($P||$P===0)return $P;if(eme==="dashboard")return 75},[$P,eme]),fme=getPercentage(Ff),lme=B_||eme==="dashboard"&&"bottom"||void 0,hme=Object.prototype.toString.call(Ff.strokeColor)==="[object Object]",pme=getStrokeColor({success:nme,strokeColor:Ff.strokeColor}),gme=classNames(`${kh}-inner`,{[`${kh}-circle-gradient`]:hme}),yme=React__namespace.createElement(Circle$1,{steps:ame,percent:ame?fme[1]:fme,strokeWidth:cme,trailWidth:cme,strokeColor:ame?pme[1]:pme,strokeLinecap:$_,trailColor:x_,prefixCls:kh,gapDegree:sme,gapPosition:lme}),mme=ome<=20,bme=React__namespace.createElement("div",{className:gme,style:ume},yme,!mme&&tme);return mme?React__namespace.createElement(Tooltip,{title:tme},bme):bme},LineStrokeColorVar="--progress-line-stroke-color",Percent="--progress-percent",genAntProgressActive=Ff=>{const kh=Ff?"100%":"-100%";return new Keyframe(`antProgress${Ff?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${kh}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${kh}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},genBaseStyle$3=Ff=>{const{componentCls:kh,iconCls:x_}=Ff;return{[kh]:Object.assign(Object.assign({},resetComponent(Ff)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ff.fontSize},[`${kh}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${kh}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Ff.remainingColor,borderRadius:Ff.lineBorderRadius},[`${kh}-inner:not(${kh}-circle-gradient)`]:{[`${kh}-circle-path`]:{stroke:Ff.defaultColor}},[`${kh}-success-bg, ${kh}-bg`]:{position:"relative",background:Ff.defaultColor,borderRadius:Ff.lineBorderRadius,transition:`all ${Ff.motionDurationSlow} ${Ff.motionEaseInOutCirc}`},[`${kh}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${kh}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Ff.marginXXS}},[`${kh}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${LineStrokeColorVar})`]},height:"100%",width:`calc(1 / var(${Percent}) * 100%)`,display:"block"},[`&${kh}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${kh}-text-inner`]:{color:Ff.colorWhite,[`&${kh}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${kh}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ff.colorSuccess},[`${kh}-text`]:{display:"inline-block",marginInlineStart:Ff.marginXS,color:Ff.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[x_]:{fontSize:Ff.fontSize},[`&${kh}-text-outer`]:{width:"max-content"},[`&${kh}-text-outer${kh}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Ff.marginXS}},[`${kh}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${unit$1(Ff.paddingXXS)}`,[`&${kh}-text-start`]:{justifyContent:"start"},[`&${kh}-text-end`]:{justifyContent:"end"}},[`&${kh}-status-active`]:{[`${kh}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ff.colorBgContainer,borderRadius:Ff.lineBorderRadius,opacity:0,animationName:genAntProgressActive(),animationDuration:Ff.progressActiveMotionDuration,animationTimingFunction:Ff.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${kh}-rtl${kh}-status-active`]:{[`${kh}-bg::before`]:{animationName:genAntProgressActive(!0)}},[`&${kh}-status-exception`]:{[`${kh}-bg`]:{backgroundColor:Ff.colorError},[`${kh}-text`]:{color:Ff.colorError}},[`&${kh}-status-exception ${kh}-inner:not(${kh}-circle-gradient)`]:{[`${kh}-circle-path`]:{stroke:Ff.colorError}},[`&${kh}-status-success`]:{[`${kh}-bg`]:{backgroundColor:Ff.colorSuccess},[`${kh}-text`]:{color:Ff.colorSuccess}},[`&${kh}-status-success ${kh}-inner:not(${kh}-circle-gradient)`]:{[`${kh}-circle-path`]:{stroke:Ff.colorSuccess}}})}},genCircleStyle=Ff=>{const{componentCls:kh,iconCls:x_}=Ff;return{[kh]:{[`${kh}-circle-trail`]:{stroke:Ff.remainingColor},[`&${kh}-circle ${kh}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${kh}-circle ${kh}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ff.circleTextColor,fontSize:Ff.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[x_]:{fontSize:Ff.circleIconFontSize}},[`${kh}-circle&-status-exception`]:{[`${kh}-text`]:{color:Ff.colorError}},[`${kh}-circle&-status-success`]:{[`${kh}-text`]:{color:Ff.colorSuccess}}},[`${kh}-inline-circle`]:{lineHeight:1,[`${kh}-inner`]:{verticalAlign:"bottom"}}}},genStepStyle=Ff=>{const{componentCls:kh}=Ff;return{[kh]:{[`${kh}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ff.progressStepMinWidth,marginInlineEnd:Ff.progressStepMarginInlineEnd,backgroundColor:Ff.remainingColor,transition:`all ${Ff.motionDurationSlow}`,"&-active":{backgroundColor:Ff.defaultColor}}}}}},genSmallLine=Ff=>{const{componentCls:kh,iconCls:x_}=Ff;return{[kh]:{[`${kh}-small&-line, ${kh}-small&-line ${kh}-text ${x_}`]:{fontSize:Ff.fontSizeSM}}}},prepareComponentToken$3=Ff=>({circleTextColor:Ff.colorText,defaultColor:Ff.colorInfo,remainingColor:Ff.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Ff.fontSize/Ff.fontSizeSM}em`}),useStyle$3=genStyleHooks("Progress",Ff=>{const kh=Ff.calc(Ff.marginXXS).div(2).equal(),x_=merge(Ff,{progressStepMarginInlineEnd:kh,progressStepMinWidth:kh,progressActiveMotionDuration:"2.4s"});return[genBaseStyle$3(x_),genCircleStyle(x_),genStepStyle(x_),genSmallLine(x_)]},prepareComponentToken$3);var __rest$5=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const sortGradient=Ff=>{let kh=[];return Object.keys(Ff).forEach(x_=>{const $_=parseFloat(x_.replace(/%/g,""));isNaN($_)||kh.push({key:$_,value:Ff[x_]})}),kh=kh.sort((x_,$_)=>x_.key-$_.key),kh.map(x_=>{let{key:$_,value:B_}=x_;return`${B_} ${$_}%`}).join(", ")},handleGradient=(Ff,kh)=>{const{from:x_=presetPrimaryColors$1.blue,to:$_=presetPrimaryColors$1.blue,direction:B_=kh==="rtl"?"to left":"to right"}=Ff,$P=__rest$5(Ff,["from","to","direction"]);if(Object.keys($P).length!==0){const eme=sortGradient($P),tme=`linear-gradient(${B_}, ${eme})`;return{background:tme,[LineStrokeColorVar]:tme}}const zP=`linear-gradient(${B_}, ${x_}, ${$_})`;return{background:zP,[LineStrokeColorVar]:zP}},Line=Ff=>{const{prefixCls:kh,direction:x_,percent:$_,size:B_,strokeWidth:$P,strokeColor:zP,strokeLinecap:eme="round",children:tme,trailColor:nme=null,percentPosition:rme,success:ame}=Ff,{align:ome,type:ime}=rme,cme=zP&&typeof zP!="string"?handleGradient(zP,x_):{[LineStrokeColorVar]:zP,background:zP},ume=eme==="square"||eme==="butt"?0:void 0,sme=B_??[-1,$P||(B_==="small"?6:8)],[fme,lme]=getSize(sme,"line",{strokeWidth:$P});process.env.NODE_ENV!=="production"&&devUseWarning("Progress").deprecated(!("strokeWidth"in Ff),"strokeWidth","size");const hme={backgroundColor:nme||void 0,borderRadius:ume},pme=Object.assign(Object.assign({width:`${validProgress($_)}%`,height:lme,borderRadius:ume},cme),{[Percent]:validProgress($_)/100}),gme=getSuccessPercent(Ff),yme={width:`${validProgress(gme)}%`,height:lme,borderRadius:ume,backgroundColor:ame==null?void 0:ame.strokeColor},mme={width:fme<0?"100%":fme},bme=React__namespace.createElement("div",{className:`${kh}-inner`,style:hme},React__namespace.createElement("div",{className:classNames(`${kh}-bg`,`${kh}-bg-${ime}`),style:pme},ime==="inner"&&tme),gme!==void 0&&React__namespace.createElement("div",{className:`${kh}-success-bg`,style:yme})),Sme=ime==="outer"&&ome==="start",_me=ime==="outer"&&ome==="end";return ime==="outer"&&ome==="center"?React__namespace.createElement("div",{className:`${kh}-layout-bottom`},bme,tme):React__namespace.createElement("div",{className:`${kh}-outer`,style:mme},Sme&&tme,bme,_me&&tme)},Steps=Ff=>{const{size:kh,steps:x_,percent:$_=0,strokeWidth:B_=8,strokeColor:$P,trailColor:zP=null,prefixCls:eme,children:tme}=Ff,nme=Math.round(x_*($_/100)),ame=kh??[kh==="small"?2:14,B_],[ome,ime]=getSize(ame,"step",{steps:x_,strokeWidth:B_}),cme=ome/x_,ume=new Array(x_);for(let sme=0;sme<x_;sme++){const fme=Array.isArray($P)?$P[sme]:$P;ume[sme]=React__namespace.createElement("div",{key:sme,className:classNames(`${eme}-steps-item`,{[`${eme}-steps-item-active`]:sme<=nme-1}),style:{backgroundColor:sme<=nme-1?fme:zP,width:cme,height:ime}})}return React__namespace.createElement("div",{className:`${eme}-steps-outer`},ume,tme)};var __rest$4=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const ProgressStatuses=["normal","exception","active","success"],Progress=React__namespace.forwardRef((Ff,kh)=>{const{prefixCls:x_,className:$_,rootClassName:B_,steps:$P,strokeColor:zP,percent:eme=0,size:tme="default",showInfo:nme=!0,type:rme="line",status:ame,format:ome,style:ime,percentPosition:cme={}}=Ff,ume=__rest$4(Ff,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:sme="end",type:fme="outer"}=cme,lme=Array.isArray(zP)?zP[0]:zP,hme=typeof zP=="string"||Array.isArray(zP)?zP:void 0,pme=React__namespace.useMemo(()=>{if(lme){const Nme=typeof lme=="string"?lme:Object.values(lme)[0];return new TinyColor(Nme).isLight()}return!1},[zP]),gme=React__namespace.useMemo(()=>{var Nme,Ime;const wme=getSuccessPercent(Ff);return parseInt(wme!==void 0?(Nme=wme??0)===null||Nme===void 0?void 0:Nme.toString():(Ime=eme??0)===null||Ime===void 0?void 0:Ime.toString(),10)},[eme,Ff.success,Ff.successPercent]),yme=React__namespace.useMemo(()=>!ProgressStatuses.includes(ame)&&gme>=100?"success":ame||"normal",[ame,gme]),{getPrefixCls:mme,direction:bme,progress:Sme}=React__namespace.useContext(ConfigContext),_me=mme("progress",x_),[Cme,Eme,Tme]=useStyle$3(_me),Rme=rme==="line",Pme=Rme&&!$P,$me=React__namespace.useMemo(()=>{if(!nme)return null;const Nme=getSuccessPercent(Ff);let Ime;const wme=ome||(Ame=>`${Ame}%`),Ome=Rme&&pme&&fme==="inner";return fme==="inner"||ome||yme!=="exception"&&yme!=="success"?Ime=wme(validProgress(eme),validProgress(Nme)):yme==="exception"?Ime=Rme?React__namespace.createElement(RefIcon$A,null):React__namespace.createElement(RefIcon$z,null):yme==="success"&&(Ime=Rme?React__namespace.createElement(RefIcon$B,null):React__namespace.createElement(RefIcon$w,null)),React__namespace.createElement("span",{className:classNames(`${_me}-text`,{[`${_me}-text-bright`]:Ome,[`${_me}-text-${sme}`]:Pme,[`${_me}-text-${fme}`]:Pme}),title:typeof Ime=="string"?Ime:void 0},Ime)},[nme,eme,gme,yme,rme,_me,ome]);if(process.env.NODE_ENV!=="production"){const Nme=devUseWarning("Progress");Nme.deprecated(!("successPercent"in Ff),"successPercent","success.percent"),Nme.deprecated(!("width"in Ff),"width","size"),(rme==="circle"||rme==="dashboard")&&(Array.isArray(tme)?process.env.NODE_ENV!=="production"&&Nme(!1,"usage",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'):typeof tme=="object"&&process.env.NODE_ENV!=="production"&&Nme(!1,"usage",'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')),Ff.success&&"progress"in Ff.success&&Nme.deprecated(!1,"success.progress","success.percent")}let Dme;rme==="line"?Dme=$P?React__namespace.createElement(Steps,Object.assign({},Ff,{strokeColor:hme,prefixCls:_me,steps:typeof $P=="object"?$P.count:$P}),$me):React__namespace.createElement(Line,Object.assign({},Ff,{strokeColor:lme,prefixCls:_me,direction:bme,percentPosition:{align:sme,type:fme}}),$me):(rme==="circle"||rme==="dashboard")&&(Dme=React__namespace.createElement(Circle,Object.assign({},Ff,{strokeColor:lme,prefixCls:_me,progressStatus:yme}),$me));const Mme=classNames(_me,`${_me}-status-${yme}`,{[`${_me}-${rme==="dashboard"&&"circle"||rme}`]:rme!=="line",[`${_me}-inline-circle`]:rme==="circle"&&getSize(tme,"circle")[0]<=20,[`${_me}-line`]:Pme,[`${_me}-line-align-${sme}`]:Pme,[`${_me}-line-position-${fme}`]:Pme,[`${_me}-steps`]:$P,[`${_me}-show-info`]:nme,[`${_me}-${tme}`]:typeof tme=="string",[`${_me}-rtl`]:bme==="rtl"},Sme==null?void 0:Sme.className,$_,B_,Eme,Tme);return Cme(React__namespace.createElement("div",Object.assign({ref:kh,style:Object.assign(Object.assign({},Sme==null?void 0:Sme.style),ime),className:Mme,role:"progressbar","aria-valuenow":gme},omit(ume,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Dme))});process.env.NODE_ENV!=="production"&&(Progress.displayName="Progress");var _excluded$8=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Switch$2=React__namespace.forwardRef(function(Ff,kh){var x_,$_=Ff.prefixCls,B_=$_===void 0?"rc-switch":$_,$P=Ff.className,zP=Ff.checked,eme=Ff.defaultChecked,tme=Ff.disabled,nme=Ff.loadingIcon,rme=Ff.checkedChildren,ame=Ff.unCheckedChildren,ome=Ff.onClick,ime=Ff.onChange,cme=Ff.onKeyDown,ume=_objectWithoutProperties(Ff,_excluded$8),sme=useMergedState(!1,{value:zP,defaultValue:eme}),fme=_slicedToArray(sme,2),lme=fme[0],hme=fme[1];function pme(bme,Sme){var _me=lme;return tme||(_me=bme,hme(_me),ime==null||ime(_me,Sme)),_me}function gme(bme){bme.which===KeyCode.LEFT?pme(!1,bme):bme.which===KeyCode.RIGHT&&pme(!0,bme),cme==null||cme(bme)}function yme(bme){var Sme=pme(!lme,bme);ome==null||ome(Sme,bme)}var mme=classNames(B_,$P,(x_={},_defineProperty(x_,"".concat(B_,"-checked"),lme),_defineProperty(x_,"".concat(B_,"-disabled"),tme),x_));return React__namespace.createElement("button",_extends({},ume,{type:"button",role:"switch","aria-checked":lme,disabled:tme,className:mme,ref:kh,onKeyDown:gme,onClick:yme}),nme,React__namespace.createElement("span",{className:"".concat(B_,"-inner")},React__namespace.createElement("span",{className:"".concat(B_,"-inner-checked")},rme),React__namespace.createElement("span",{className:"".concat(B_,"-inner-unchecked")},ame)))});Switch$2.displayName="Switch";const genSwitchSmallStyle=Ff=>{const{componentCls:kh,trackHeightSM:x_,trackPadding:$_,trackMinWidthSM:B_,innerMinMarginSM:$P,innerMaxMarginSM:zP,handleSizeSM:eme,calc:tme}=Ff,nme=`${kh}-inner`,rme=unit$1(tme(eme).add(tme($_).mul(2)).equal()),ame=unit$1(tme(zP).mul(2).equal());return{[kh]:{[`&${kh}-small`]:{minWidth:B_,height:x_,lineHeight:unit$1(x_),[`${kh}-inner`]:{paddingInlineStart:zP,paddingInlineEnd:$P,[`${nme}-checked, ${nme}-unchecked`]:{minHeight:x_},[`${nme}-checked`]:{marginInlineStart:`calc(-100% + ${rme} - ${ame})`,marginInlineEnd:`calc(100% - ${rme} + ${ame})`},[`${nme}-unchecked`]:{marginTop:tme(x_).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${kh}-handle`]:{width:eme,height:eme},[`${kh}-loading-icon`]:{top:tme(tme(eme).sub(Ff.switchLoadingIconSize)).div(2).equal(),fontSize:Ff.switchLoadingIconSize},[`&${kh}-checked`]:{[`${kh}-inner`]:{paddingInlineStart:$P,paddingInlineEnd:zP,[`${nme}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${nme}-unchecked`]:{marginInlineStart:`calc(100% - ${rme} + ${ame})`,marginInlineEnd:`calc(-100% + ${rme} - ${ame})`}},[`${kh}-handle`]:{insetInlineStart:`calc(100% - ${unit$1(tme(eme).add($_).equal())})`}},[`&:not(${kh}-disabled):active`]:{[`&:not(${kh}-checked) ${nme}`]:{[`${nme}-unchecked`]:{marginInlineStart:tme(Ff.marginXXS).div(2).equal(),marginInlineEnd:tme(Ff.marginXXS).mul(-1).div(2).equal()}},[`&${kh}-checked ${nme}`]:{[`${nme}-checked`]:{marginInlineStart:tme(Ff.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:tme(Ff.marginXXS).div(2).equal()}}}}}}},genSwitchLoadingStyle=Ff=>{const{componentCls:kh,handleSize:x_,calc:$_}=Ff;return{[kh]:{[`${kh}-loading-icon${Ff.iconCls}`]:{position:"relative",top:$_($_(x_).sub(Ff.fontSize)).div(2).equal(),color:Ff.switchLoadingIconColor,verticalAlign:"top"},[`&${kh}-checked ${kh}-loading-icon`]:{color:Ff.switchColor}}}},genSwitchHandleStyle=Ff=>{const{componentCls:kh,trackPadding:x_,handleBg:$_,handleShadow:B_,handleSize:$P,calc:zP}=Ff,eme=`${kh}-handle`;return{[kh]:{[eme]:{position:"absolute",top:x_,insetInlineStart:x_,width:$P,height:$P,transition:`all ${Ff.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:$_,borderRadius:zP($P).div(2).equal(),boxShadow:B_,transition:`all ${Ff.switchDuration} ease-in-out`,content:'""'}},[`&${kh}-checked ${eme}`]:{insetInlineStart:`calc(100% - ${unit$1(zP($P).add(x_).equal())})`},[`&:not(${kh}-disabled):active`]:{[`${eme}::before`]:{insetInlineEnd:Ff.switchHandleActiveInset,insetInlineStart:0},[`&${kh}-checked ${eme}::before`]:{insetInlineEnd:0,insetInlineStart:Ff.switchHandleActiveInset}}}}},genSwitchInnerStyle=Ff=>{const{componentCls:kh,trackHeight:x_,trackPadding:$_,innerMinMargin:B_,innerMaxMargin:$P,handleSize:zP,calc:eme}=Ff,tme=`${kh}-inner`,nme=unit$1(eme(zP).add(eme($_).mul(2)).equal()),rme=unit$1(eme($P).mul(2).equal());return{[kh]:{[tme]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:$P,paddingInlineEnd:B_,transition:`padding-inline-start ${Ff.switchDuration} ease-in-out, padding-inline-end ${Ff.switchDuration} ease-in-out`,[`${tme}-checked, ${tme}-unchecked`]:{display:"block",color:Ff.colorTextLightSolid,fontSize:Ff.fontSizeSM,transition:`margin-inline-start ${Ff.switchDuration} ease-in-out, margin-inline-end ${Ff.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:x_},[`${tme}-checked`]:{marginInlineStart:`calc(-100% + ${nme} - ${rme})`,marginInlineEnd:`calc(100% - ${nme} + ${rme})`},[`${tme}-unchecked`]:{marginTop:eme(x_).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${kh}-checked ${tme}`]:{paddingInlineStart:B_,paddingInlineEnd:$P,[`${tme}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${tme}-unchecked`]:{marginInlineStart:`calc(100% - ${nme} + ${rme})`,marginInlineEnd:`calc(-100% + ${nme} - ${rme})`}},[`&:not(${kh}-disabled):active`]:{[`&:not(${kh}-checked) ${tme}`]:{[`${tme}-unchecked`]:{marginInlineStart:eme($_).mul(2).equal(),marginInlineEnd:eme($_).mul(-1).mul(2).equal()}},[`&${kh}-checked ${tme}`]:{[`${tme}-checked`]:{marginInlineStart:eme($_).mul(-1).mul(2).equal(),marginInlineEnd:eme($_).mul(2).equal()}}}}}},genSwitchStyle=Ff=>{const{componentCls:kh,trackHeight:x_,trackMinWidth:$_}=Ff;return{[kh]:Object.assign(Object.assign(Object.assign(Object.assign({},resetComponent(Ff)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:$_,height:x_,lineHeight:`${unit$1(x_)}`,verticalAlign:"middle",background:Ff.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ff.motionDurationMid}`,userSelect:"none",[`&:hover:not(${kh}-disabled)`]:{background:Ff.colorTextTertiary}}),genFocusStyle(Ff)),{[`&${kh}-checked`]:{background:Ff.switchColor,[`&:hover:not(${kh}-disabled)`]:{background:Ff.colorPrimaryHover}},[`&${kh}-loading, &${kh}-disabled`]:{cursor:"not-allowed",opacity:Ff.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${kh}-rtl`]:{direction:"rtl"}})}},prepareComponentToken$2=Ff=>{const{fontSize:kh,lineHeight:x_,controlHeight:$_,colorWhite:B_}=Ff,$P=kh*x_,zP=$_/2,eme=2,tme=$P-eme*2,nme=zP-eme*2;return{trackHeight:$P,trackHeightSM:zP,trackMinWidth:tme*2+eme*4,trackMinWidthSM:nme*2+eme*2,trackPadding:eme,handleBg:B_,handleSize:tme,handleSizeSM:nme,handleShadow:`0 2px 4px 0 ${new TinyColor("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:tme/2,innerMaxMargin:tme+eme+eme*2,innerMinMarginSM:nme/2,innerMaxMarginSM:nme+eme+eme*2}},useStyle$2=genStyleHooks("Switch",Ff=>{const kh=merge(Ff,{switchDuration:Ff.motionDurationMid,switchColor:Ff.colorPrimary,switchDisabledOpacity:Ff.opacityLoading,switchLoadingIconSize:Ff.calc(Ff.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Ff.opacityLoading})`,switchHandleActiveInset:"-30%"});return[genSwitchStyle(kh),genSwitchInnerStyle(kh),genSwitchHandleStyle(kh),genSwitchLoadingStyle(kh),genSwitchSmallStyle(kh)]},prepareComponentToken$2);var __rest$3=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const InternalSwitch=React__namespace.forwardRef((Ff,kh)=>{const{prefixCls:x_,size:$_,disabled:B_,loading:$P,className:zP,rootClassName:eme,style:tme,checked:nme,value:rme,defaultChecked:ame,defaultValue:ome,onChange:ime}=Ff,cme=__rest$3(Ff,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[ume,sme]=useMergedState(!1,{value:nme??rme,defaultValue:ame??ome}),{getPrefixCls:fme,direction:lme,switch:hme}=React__namespace.useContext(ConfigContext),pme=React__namespace.useContext(DisabledContext),gme=(B_??pme)||$P,yme=fme("switch",x_),mme=React__namespace.createElement("div",{className:`${yme}-handle`},$P&&React__namespace.createElement(RefIcon$x,{className:`${yme}-loading-icon`})),[bme,Sme,_me]=useStyle$2(yme),Cme=useSize($_),Eme=classNames(hme==null?void 0:hme.className,{[`${yme}-small`]:Cme==="small",[`${yme}-loading`]:$P,[`${yme}-rtl`]:lme==="rtl"},zP,eme,Sme,_me),Tme=Object.assign(Object.assign({},hme==null?void 0:hme.style),tme),Rme=function(){sme(arguments.length<=0?void 0:arguments[0]),ime==null||ime.apply(void 0,arguments)};return bme(React__namespace.createElement(Wave,{component:"Switch"},React__namespace.createElement(Switch$2,Object.assign({},cme,{checked:ume,onChange:Rme,prefixCls:yme,className:Eme,style:Tme,disabled:gme,ref:kh,loadingIcon:mme}))))}),Switch$1=InternalSwitch;Switch$1.__ANT_SWITCH=!0;process.env.NODE_ENV!=="production"&&(Switch$1.displayName="Switch");var TreeContext=React__namespace.createContext(null),Indent=function(kh){for(var x_=kh.prefixCls,$_=kh.level,B_=kh.isStart,$P=kh.isEnd,zP="".concat(x_,"-indent-unit"),eme=[],tme=0;tme<$_;tme+=1)eme.push(React__namespace.createElement("span",{key:tme,className:classNames(zP,_defineProperty(_defineProperty({},"".concat(zP,"-start"),B_[tme]),"".concat(zP,"-end"),$P[tme]))}));return React__namespace.createElement("span",{"aria-hidden":"true",className:"".concat(x_,"-indent")},eme)};const Indent$1=React__namespace.memo(Indent);var _excluded$7=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ICON_OPEN="open",ICON_CLOSE="close",defaultTitle="---",InternalTreeNode=function(Ff){_inherits(x_,Ff);var kh=_createSuper(x_);function x_(){var $_;_classCallCheck(this,x_);for(var B_=arguments.length,$P=new Array(B_),zP=0;zP<B_;zP++)$P[zP]=arguments[zP];return $_=kh.call.apply(kh,[this].concat($P)),_defineProperty(_assertThisInitialized($_),"state",{dragNodeHighlight:!1}),_defineProperty(_assertThisInitialized($_),"selectHandle",void 0),_defineProperty(_assertThisInitialized($_),"cacheIndent",void 0),_defineProperty(_assertThisInitialized($_),"onSelectorClick",function(eme){var tme=$_.props.context.onNodeClick;tme(eme,convertNodePropsToEventData($_.props)),$_.isSelectable()?$_.onSelect(eme):$_.onCheck(eme)}),_defineProperty(_assertThisInitialized($_),"onSelectorDoubleClick",function(eme){var tme=$_.props.context.onNodeDoubleClick;tme(eme,convertNodePropsToEventData($_.props))}),_defineProperty(_assertThisInitialized($_),"onSelect",function(eme){if(!$_.isDisabled()){var tme=$_.props.context.onNodeSelect;tme(eme,convertNodePropsToEventData($_.props))}}),_defineProperty(_assertThisInitialized($_),"onCheck",function(eme){if(!$_.isDisabled()){var tme=$_.props,nme=tme.disableCheckbox,rme=tme.checked,ame=$_.props.context.onNodeCheck;if(!(!$_.isCheckable()||nme)){var ome=!rme;ame(eme,convertNodePropsToEventData($_.props),ome)}}}),_defineProperty(_assertThisInitialized($_),"onMouseEnter",function(eme){var tme=$_.props.context.onNodeMouseEnter;tme(eme,convertNodePropsToEventData($_.props))}),_defineProperty(_assertThisInitialized($_),"onMouseLeave",function(eme){var tme=$_.props.context.onNodeMouseLeave;tme(eme,convertNodePropsToEventData($_.props))}),_defineProperty(_assertThisInitialized($_),"onContextMenu",function(eme){var tme=$_.props.context.onNodeContextMenu;tme(eme,convertNodePropsToEventData($_.props))}),_defineProperty(_assertThisInitialized($_),"onDragStart",function(eme){var tme=$_.props.context.onNodeDragStart;eme.stopPropagation(),$_.setState({dragNodeHighlight:!0}),tme(eme,_assertThisInitialized($_));try{eme.dataTransfer.setData("text/plain","")}catch{}}),_defineProperty(_assertThisInitialized($_),"onDragEnter",function(eme){var tme=$_.props.context.onNodeDragEnter;eme.preventDefault(),eme.stopPropagation(),tme(eme,_assertThisInitialized($_))}),_defineProperty(_assertThisInitialized($_),"onDragOver",function(eme){var tme=$_.props.context.onNodeDragOver;eme.preventDefault(),eme.stopPropagation(),tme(eme,_assertThisInitialized($_))}),_defineProperty(_assertThisInitialized($_),"onDragLeave",function(eme){var tme=$_.props.context.onNodeDragLeave;eme.stopPropagation(),tme(eme,_assertThisInitialized($_))}),_defineProperty(_assertThisInitialized($_),"onDragEnd",function(eme){var tme=$_.props.context.onNodeDragEnd;eme.stopPropagation(),$_.setState({dragNodeHighlight:!1}),tme(eme,_assertThisInitialized($_))}),_defineProperty(_assertThisInitialized($_),"onDrop",function(eme){var tme=$_.props.context.onNodeDrop;eme.preventDefault(),eme.stopPropagation(),$_.setState({dragNodeHighlight:!1}),tme(eme,_assertThisInitialized($_))}),_defineProperty(_assertThisInitialized($_),"onExpand",function(eme){var tme=$_.props,nme=tme.loading,rme=tme.context.onNodeExpand;nme||rme(eme,convertNodePropsToEventData($_.props))}),_defineProperty(_assertThisInitialized($_),"setSelectHandle",function(eme){$_.selectHandle=eme}),_defineProperty(_assertThisInitialized($_),"getNodeState",function(){var eme=$_.props.expanded;return $_.isLeaf()?null:eme?ICON_OPEN:ICON_CLOSE}),_defineProperty(_assertThisInitialized($_),"hasChildren",function(){var eme=$_.props.eventKey,tme=$_.props.context.keyEntities,nme=getEntity(tme,eme)||{},rme=nme.children;return!!(rme||[]).length}),_defineProperty(_assertThisInitialized($_),"isLeaf",function(){var eme=$_.props,tme=eme.isLeaf,nme=eme.loaded,rme=$_.props.context.loadData,ame=$_.hasChildren();return tme===!1?!1:tme||!rme&&!ame||rme&&nme&&!ame}),_defineProperty(_assertThisInitialized($_),"isDisabled",function(){var eme=$_.props.disabled,tme=$_.props.context.disabled;return!!(tme||eme)}),_defineProperty(_assertThisInitialized($_),"isCheckable",function(){var eme=$_.props.checkable,tme=$_.props.context.checkable;return!tme||eme===!1?!1:tme}),_defineProperty(_assertThisInitialized($_),"syncLoadData",function(eme){var tme=eme.expanded,nme=eme.loading,rme=eme.loaded,ame=$_.props.context,ome=ame.loadData,ime=ame.onNodeLoad;nme||ome&&tme&&!$_.isLeaf()&&!rme&&ime(convertNodePropsToEventData($_.props))}),_defineProperty(_assertThisInitialized($_),"isDraggable",function(){var eme=$_.props,tme=eme.data,nme=eme.context.draggable;return!!(nme&&(!nme.nodeDraggable||nme.nodeDraggable(tme)))}),_defineProperty(_assertThisInitialized($_),"renderDragHandler",function(){var eme=$_.props.context,tme=eme.draggable,nme=eme.prefixCls;return tme!=null&&tme.icon?React__namespace.createElement("span",{className:"".concat(nme,"-draggable-icon")},tme.icon):null}),_defineProperty(_assertThisInitialized($_),"renderSwitcherIconDom",function(eme){var tme=$_.props.switcherIcon,nme=$_.props.context.switcherIcon,rme=tme||nme;return typeof rme=="function"?rme(_objectSpread2(_objectSpread2({},$_.props),{},{isLeaf:eme})):rme}),_defineProperty(_assertThisInitialized($_),"renderSwitcher",function(){var eme=$_.props.expanded,tme=$_.props.context.prefixCls;if($_.isLeaf()){var nme=$_.renderSwitcherIconDom(!0);return nme!==!1?React__namespace.createElement("span",{className:classNames("".concat(tme,"-switcher"),"".concat(tme,"-switcher-noop"))},nme):null}var rme=classNames("".concat(tme,"-switcher"),"".concat(tme,"-switcher_").concat(eme?ICON_OPEN:ICON_CLOSE)),ame=$_.renderSwitcherIconDom(!1);return ame!==!1?React__namespace.createElement("span",{onClick:$_.onExpand,className:rme},ame):null}),_defineProperty(_assertThisInitialized($_),"renderCheckbox",function(){var eme=$_.props,tme=eme.checked,nme=eme.halfChecked,rme=eme.disableCheckbox,ame=$_.props.context.prefixCls,ome=$_.isDisabled(),ime=$_.isCheckable();if(!ime)return null;var cme=typeof ime!="boolean"?ime:null;return React__namespace.createElement("span",{className:classNames("".concat(ame,"-checkbox"),tme&&"".concat(ame,"-checkbox-checked"),!tme&&nme&&"".concat(ame,"-checkbox-indeterminate"),(ome||rme)&&"".concat(ame,"-checkbox-disabled")),onClick:$_.onCheck},cme)}),_defineProperty(_assertThisInitialized($_),"renderIcon",function(){var eme=$_.props.loading,tme=$_.props.context.prefixCls;return React__namespace.createElement("span",{className:classNames("".concat(tme,"-iconEle"),"".concat(tme,"-icon__").concat($_.getNodeState()||"docu"),eme&&"".concat(tme,"-icon_loading"))})}),_defineProperty(_assertThisInitialized($_),"renderSelector",function(){var eme=$_.state.dragNodeHighlight,tme=$_.props,nme=tme.title,rme=nme===void 0?defaultTitle:nme,ame=tme.selected,ome=tme.icon,ime=tme.loading,cme=tme.data,ume=$_.props.context,sme=ume.prefixCls,fme=ume.showIcon,lme=ume.icon,hme=ume.loadData,pme=ume.titleRender,gme=$_.isDisabled(),yme="".concat(sme,"-node-content-wrapper"),mme;if(fme){var bme=ome||lme;mme=bme?React__namespace.createElement("span",{className:classNames("".concat(sme,"-iconEle"),"".concat(sme,"-icon__customize"))},typeof bme=="function"?bme($_.props):bme):$_.renderIcon()}else hme&&ime&&(mme=$_.renderIcon());var Sme;typeof rme=="function"?Sme=rme(cme):pme?Sme=pme(cme):Sme=rme;var _me=React__namespace.createElement("span",{className:"".concat(sme,"-title")},Sme);return React__namespace.createElement("span",{ref:$_.setSelectHandle,title:typeof rme=="string"?rme:"",className:classNames("".concat(yme),"".concat(yme,"-").concat($_.getNodeState()||"normal"),!gme&&(ame||eme)&&"".concat(sme,"-node-selected")),onMouseEnter:$_.onMouseEnter,onMouseLeave:$_.onMouseLeave,onContextMenu:$_.onContextMenu,onClick:$_.onSelectorClick,onDoubleClick:$_.onSelectorDoubleClick},mme,_me,$_.renderDropIndicator())}),_defineProperty(_assertThisInitialized($_),"renderDropIndicator",function(){var eme=$_.props,tme=eme.disabled,nme=eme.eventKey,rme=$_.props.context,ame=rme.draggable,ome=rme.dropLevelOffset,ime=rme.dropPosition,cme=rme.prefixCls,ume=rme.indent,sme=rme.dropIndicatorRender,fme=rme.dragOverNodeKey,lme=rme.direction,hme=!!ame,pme=!tme&&hme&&fme===nme,gme=ume??$_.cacheIndent;return $_.cacheIndent=ume,pme?sme({dropPosition:ime,dropLevelOffset:ome,indent:gme,prefixCls:cme,direction:lme}):null}),$_}return _createClass(x_,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var B_=this.props.selectable,$P=this.props.context.selectable;return typeof B_=="boolean"?B_:$P}},{key:"render",value:function(){var B_,$P=this.props,zP=$P.eventKey,eme=$P.className,tme=$P.style,nme=$P.dragOver,rme=$P.dragOverGapTop,ame=$P.dragOverGapBottom,ome=$P.isLeaf,ime=$P.isStart,cme=$P.isEnd,ume=$P.expanded,sme=$P.selected,fme=$P.checked,lme=$P.halfChecked,hme=$P.loading,pme=$P.domRef,gme=$P.active;$P.data;var yme=$P.onMouseMove,mme=$P.selectable,bme=_objectWithoutProperties($P,_excluded$7),Sme=this.props.context,_me=Sme.prefixCls,Cme=Sme.filterTreeNode,Eme=Sme.keyEntities,Tme=Sme.dropContainerKey,Rme=Sme.dropTargetKey,Pme=Sme.draggingNodeKey,$me=this.isDisabled(),Dme=pickAttrs(bme,{aria:!0,data:!0}),Mme=getEntity(Eme,zP)||{},Nme=Mme.level,Ime=cme[cme.length-1],wme=this.isDraggable(),Ome=!$me&&wme,Ame=Pme===zP,Fme=mme!==void 0?{"aria-selected":!!mme}:void 0;return React__namespace.createElement("div",_extends({ref:pme,className:classNames(eme,"".concat(_me,"-treenode"),(B_={},_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(B_,"".concat(_me,"-treenode-disabled"),$me),"".concat(_me,"-treenode-switcher-").concat(ume?"open":"close"),!ome),"".concat(_me,"-treenode-checkbox-checked"),fme),"".concat(_me,"-treenode-checkbox-indeterminate"),lme),"".concat(_me,"-treenode-selected"),sme),"".concat(_me,"-treenode-loading"),hme),"".concat(_me,"-treenode-active"),gme),"".concat(_me,"-treenode-leaf-last"),Ime),"".concat(_me,"-treenode-draggable"),wme),"dragging",Ame),_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(B_,"drop-target",Rme===zP),"drop-container",Tme===zP),"drag-over",!$me&&nme),"drag-over-gap-top",!$me&&rme),"drag-over-gap-bottom",!$me&&ame),"filter-node",Cme&&Cme(convertNodePropsToEventData(this.props))))),style:tme,draggable:Ome,"aria-grabbed":Ame,onDragStart:Ome?this.onDragStart:void 0,onDragEnter:wme?this.onDragEnter:void 0,onDragOver:wme?this.onDragOver:void 0,onDragLeave:wme?this.onDragLeave:void 0,onDrop:wme?this.onDrop:void 0,onDragEnd:wme?this.onDragEnd:void 0,onMouseMove:yme},Fme,Dme),React__namespace.createElement(Indent$1,{prefixCls:_me,level:Nme,isStart:ime,isEnd:cme}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),x_}(React__namespace.Component),ContextTreeNode=function(kh){return React__namespace.createElement(TreeContext.Consumer,null,function(x_){return React__namespace.createElement(InternalTreeNode,_extends({},kh,{context:x_}))})};ContextTreeNode.displayName="TreeNode";ContextTreeNode.isTreeNode=1;function arrDel(Ff,kh){if(!Ff)return[];var x_=Ff.slice(),$_=x_.indexOf(kh);return $_>=0&&x_.splice($_,1),x_}function arrAdd(Ff,kh){var x_=(Ff||[]).slice();return x_.indexOf(kh)===-1&&x_.push(kh),x_}function posToArr(Ff){return Ff.split("-")}function getDragChildrenKeys(Ff,kh){var x_=[],$_=getEntity(kh,Ff);function B_(){var $P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];$P.forEach(function(zP){var eme=zP.key,tme=zP.children;x_.push(eme),B_(tme)})}return B_($_.children),x_}function isLastChild(Ff){if(Ff.parent){var kh=posToArr(Ff.pos);return Number(kh[kh.length-1])===Ff.parent.children.length-1}return!1}function isFirstChild(Ff){var kh=posToArr(Ff.pos);return Number(kh[kh.length-1])===0}function calcDropPosition(Ff,kh,x_,$_,B_,$P,zP,eme,tme,nme){var rme,ame=Ff.clientX,ome=Ff.clientY,ime=Ff.target.getBoundingClientRect(),cme=ime.top,ume=ime.height,sme=(nme==="rtl"?-1:1)*(((B_==null?void 0:B_.x)||0)-ame),fme=(sme-12)/$_,lme=tme.filter(function($me){var Dme;return(Dme=eme[$me])===null||Dme===void 0||(Dme=Dme.children)===null||Dme===void 0?void 0:Dme.length}),hme=getEntity(eme,x_.props.eventKey);if(ome<cme+ume/2){var pme=zP.findIndex(function($me){return $me.key===hme.key}),gme=pme<=0?0:pme-1,yme=zP[gme].key;hme=getEntity(eme,yme)}var mme=hme.key,bme=hme,Sme=hme.key,_me=0,Cme=0;if(!lme.includes(mme))for(var Eme=0;Eme<fme&&isLastChild(hme);Eme+=1)hme=hme.parent,Cme+=1;var Tme=kh.props.data,Rme=hme.node,Pme=!0;return isFirstChild(hme)&&hme.level===0&&ome<cme+ume/2&&$P({dragNode:Tme,dropNode:Rme,dropPosition:-1})&&hme.key===x_.props.eventKey?_me=-1:(bme.children||[]).length&&lme.includes(Sme)?$P({dragNode:Tme,dropNode:Rme,dropPosition:0})?_me=0:Pme=!1:Cme===0?fme>-1.5?$P({dragNode:Tme,dropNode:Rme,dropPosition:1})?_me=1:Pme=!1:$P({dragNode:Tme,dropNode:Rme,dropPosition:0})?_me=0:$P({dragNode:Tme,dropNode:Rme,dropPosition:1})?_me=1:Pme=!1:$P({dragNode:Tme,dropNode:Rme,dropPosition:1})?_me=1:Pme=!1,{dropPosition:_me,dropLevelOffset:Cme,dropTargetKey:hme.key,dropTargetPos:hme.pos,dragOverNodeKey:Sme,dropContainerKey:_me===0?null:((rme=hme.parent)===null||rme===void 0?void 0:rme.key)||null,dropAllowed:Pme}}function calcSelectedKeys(Ff,kh){if(Ff){var x_=kh.multiple;return x_?Ff.slice():Ff.length?[Ff[0]]:Ff}}function parseCheckedKeys(Ff){if(!Ff)return null;var kh;if(Array.isArray(Ff))kh={checkedKeys:Ff,halfCheckedKeys:void 0};else if(_typeof(Ff)==="object")kh={checkedKeys:Ff.checked||void 0,halfCheckedKeys:Ff.halfChecked||void 0};else return warningOnce(!1,"`checkedKeys` is not an array or an object"),null;return kh}function conductExpandParent(Ff,kh){var x_=new Set;function $_(B_){if(!x_.has(B_)){var $P=getEntity(kh,B_);if($P){x_.add(B_);var zP=$P.parent,eme=$P.node;eme.disabled||zP&&$_(zP.key)}}}return(Ff||[]).forEach(function(B_){$_(B_)}),_toConsumableArray(x_)}function DropIndicator(Ff){var kh=Ff.dropPosition,x_=Ff.dropLevelOffset,$_=Ff.indent,B_={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(kh){case-1:B_.top=0,B_.left=-x_*$_;break;case 1:B_.bottom=0,B_.left=-x_*$_;break;case 0:B_.bottom=0,B_.left=$_;break}return React__namespace.createElement("div",{style:B_})}function _objectDestructuringEmpty(Ff){if(Ff==null)throw new TypeError("Cannot destructure "+Ff)}function useUnmount(Ff,kh){var x_=React__namespace.useState(!1),$_=_slicedToArray(x_,2),B_=$_[0],$P=$_[1];useLayoutEffect$1(function(){if(B_)return Ff(),function(){kh()}},[B_]),useLayoutEffect$1(function(){return $P(!0),function(){$P(!1)}},[])}var _excluded$6=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],MotionTreeNode=function(kh,x_){var $_=kh.className,B_=kh.style,$P=kh.motion,zP=kh.motionNodes,eme=kh.motionType,tme=kh.onMotionStart,nme=kh.onMotionEnd,rme=kh.active,ame=kh.treeNodeRequiredProps,ome=_objectWithoutProperties(kh,_excluded$6),ime=React__namespace.useState(!0),cme=_slicedToArray(ime,2),ume=cme[0],sme=cme[1],fme=React__namespace.useContext(TreeContext),lme=fme.prefixCls,hme=zP&&eme!=="hide";useLayoutEffect$1(function(){zP&&hme!==ume&&sme(hme)},[zP]);var pme=function(){zP&&tme()},gme=React__namespace.useRef(!1),yme=function(){zP&&!gme.current&&(gme.current=!0,nme())};useUnmount(pme,yme);var mme=function(Sme){hme===Sme&&yme()};return zP?React__namespace.createElement(CSSMotion,_extends({ref:x_,visible:ume},$P,{motionAppear:eme==="show",onVisibleChanged:mme}),function(bme,Sme){var _me=bme.className,Cme=bme.style;return React__namespace.createElement("div",{ref:Sme,className:classNames("".concat(lme,"-treenode-motion"),_me),style:Cme},zP.map(function(Eme){var Tme=Object.assign({},(_objectDestructuringEmpty(Eme.data),Eme.data)),Rme=Eme.title,Pme=Eme.key,$me=Eme.isStart,Dme=Eme.isEnd;delete Tme.children;var Mme=getTreeNodeProps(Pme,ame);return React__namespace.createElement(ContextTreeNode,_extends({},Tme,Mme,{title:Rme,active:rme,data:Eme.data,key:Pme,isStart:$me,isEnd:Dme}))}))}):React__namespace.createElement(ContextTreeNode,_extends({domRef:x_,className:$_,style:B_},ome,{active:rme}))};MotionTreeNode.displayName="MotionTreeNode";var RefMotionTreeNode=React__namespace.forwardRef(MotionTreeNode);function findExpandedKeys(){var Ff=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],x_=Ff.length,$_=kh.length;if(Math.abs(x_-$_)!==1)return{add:!1,key:null};function B_($P,zP){var eme=new Map;$P.forEach(function(nme){eme.set(nme,!0)});var tme=zP.filter(function(nme){return!eme.has(nme)});return tme.length===1?tme[0]:null}return x_<$_?{add:!0,key:B_(Ff,kh)}:{add:!1,key:B_(kh,Ff)}}function getExpandRange(Ff,kh,x_){var $_=Ff.findIndex(function(eme){return eme.key===x_}),B_=Ff[$_+1],$P=kh.findIndex(function(eme){return eme.key===x_});if(B_){var zP=kh.findIndex(function(eme){return eme.key===B_.key});return kh.slice($P+1,zP)}return kh.slice($P+1)}var _excluded$5=["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"],HIDDEN_STYLE$1={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},noop=function(){},MOTION_KEY="RC_TREE_MOTION_".concat(Math.random()),MotionNode={key:MOTION_KEY},MotionEntity={key:MOTION_KEY,level:0,index:0,pos:"0",node:MotionNode,nodes:[MotionNode]},MotionFlattenData={parent:null,children:[],pos:MotionEntity.pos,data:MotionNode,title:null,key:MOTION_KEY,isStart:[],isEnd:[]};function getMinimumRangeTransitionRange(Ff,kh,x_,$_){return kh===!1||!x_?Ff:Ff.slice(0,Math.ceil(x_/$_)+1)}function itemKey(Ff){var kh=Ff.key,x_=Ff.pos;return getKey(kh,x_)}function getAccessibilityPath(Ff){for(var kh=String(Ff.data.key),x_=Ff;x_.parent;)x_=x_.parent,kh="".concat(x_.data.key," > ").concat(kh);return kh}var NodeList=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.prefixCls,$_=Ff.data;Ff.selectable,Ff.checkable;var B_=Ff.expandedKeys,$P=Ff.selectedKeys,zP=Ff.checkedKeys,eme=Ff.loadedKeys,tme=Ff.loadingKeys,nme=Ff.halfCheckedKeys,rme=Ff.keyEntities,ame=Ff.disabled,ome=Ff.dragging,ime=Ff.dragOverNodeKey,cme=Ff.dropPosition,ume=Ff.motion,sme=Ff.height,fme=Ff.itemHeight,lme=Ff.virtual,hme=Ff.focusable,pme=Ff.activeItem,gme=Ff.focused,yme=Ff.tabIndex,mme=Ff.onKeyDown,bme=Ff.onFocus,Sme=Ff.onBlur,_me=Ff.onActiveChange,Cme=Ff.onListChangeStart,Eme=Ff.onListChangeEnd,Tme=_objectWithoutProperties(Ff,_excluded$5),Rme=React__namespace.useRef(null),Pme=React__namespace.useRef(null);React__namespace.useImperativeHandle(kh,function(){return{scrollTo:function(t0e){Rme.current.scrollTo(t0e)},getIndentWidth:function(){return Pme.current.offsetWidth}}});var $me=React__namespace.useState(B_),Dme=_slicedToArray($me,2),Mme=Dme[0],Nme=Dme[1],Ime=React__namespace.useState($_),wme=_slicedToArray(Ime,2),Ome=wme[0],Ame=wme[1],Fme=React__namespace.useState($_),Bme=_slicedToArray(Fme,2),kme=Bme[0],Lme=Bme[1],Hme=React__namespace.useState([]),Wme=_slicedToArray(Hme,2),zme=Wme[0],Vme=Wme[1],Xme=React__namespace.useState(null),e0e=_slicedToArray(Xme,2),Ume=e0e[0],Jme=e0e[1],s0e=React__namespace.useRef($_);s0e.current=$_;function d0e(){var a0e=s0e.current;Ame(a0e),Lme(a0e),Vme([]),Jme(null),Eme()}useLayoutEffect$1(function(){Nme(B_);var a0e=findExpandedKeys(Mme,B_);if(a0e.key!==null)if(a0e.add){var t0e=Ome.findIndex(function(P0e){var y0e=P0e.key;return y0e===a0e.key}),o0e=getMinimumRangeTransitionRange(getExpandRange(Ome,$_,a0e.key),lme,sme,fme),g0e=Ome.slice();g0e.splice(t0e+1,0,MotionFlattenData),Lme(g0e),Vme(o0e),Jme("show")}else{var u0e=$_.findIndex(function(P0e){var y0e=P0e.key;return y0e===a0e.key}),h0e=getMinimumRangeTransitionRange(getExpandRange($_,Ome,a0e.key),lme,sme,fme),E0e=$_.slice();E0e.splice(u0e+1,0,MotionFlattenData),Lme(E0e),Vme(h0e),Jme("hide")}else Ome!==$_&&(Ame($_),Lme($_))},[B_,$_]),React__namespace.useEffect(function(){ome||d0e()},[ome]);var Zme=ume?kme:$_,Qme={expandedKeys:B_,selectedKeys:$P,loadedKeys:eme,loadingKeys:tme,checkedKeys:zP,halfCheckedKeys:nme,dragOverNodeKey:ime,dropPosition:cme,keyEntities:rme};return React__namespace.createElement(React__namespace.Fragment,null,gme&&pme&&React__namespace.createElement("span",{style:HIDDEN_STYLE$1,"aria-live":"assertive"},getAccessibilityPath(pme)),React__namespace.createElement("div",null,React__namespace.createElement("input",{style:HIDDEN_STYLE$1,disabled:hme===!1||ame,tabIndex:hme!==!1?yme:null,onKeyDown:mme,onFocus:bme,onBlur:Sme,value:"",onChange:noop,"aria-label":"for screen reader"})),React__namespace.createElement("div",{className:"".concat(x_,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},React__namespace.createElement("div",{className:"".concat(x_,"-indent")},React__namespace.createElement("div",{ref:Pme,className:"".concat(x_,"-indent-unit")}))),React__namespace.createElement(List,_extends({},Tme,{data:Zme,itemKey,height:sme,fullHeight:!1,virtual:lme,itemHeight:fme,prefixCls:"".concat(x_,"-list"),ref:Rme,onVisibleChange:function(t0e,o0e){var g0e=new Set(t0e),u0e=o0e.filter(function(h0e){return!g0e.has(h0e)});u0e.some(function(h0e){return itemKey(h0e)===MOTION_KEY})&&d0e()}}),function(a0e){var t0e=a0e.pos,o0e=Object.assign({},(_objectDestructuringEmpty(a0e.data),a0e.data)),g0e=a0e.title,u0e=a0e.key,h0e=a0e.isStart,E0e=a0e.isEnd,P0e=getKey(u0e,t0e);delete o0e.key,delete o0e.children;var y0e=getTreeNodeProps(P0e,Qme);return React__namespace.createElement(RefMotionTreeNode,_extends({},o0e,y0e,{title:g0e,active:!!pme&&u0e===pme.key,pos:t0e,data:a0e.data,isStart:h0e,isEnd:E0e,motion:ume,motionNodes:u0e===MOTION_KEY?zme:null,motionType:Ume,onMotionStart:Cme,onMotionEnd:d0e,treeNodeRequiredProps:Qme,onMouseMove:function(){_me(null)}}))}))});NodeList.displayName="NodeList";var MAX_RETRY_TIMES=10,Tree$2=function(Ff){_inherits(x_,Ff);var kh=_createSuper(x_);function x_(){var $_;_classCallCheck(this,x_);for(var B_=arguments.length,$P=new Array(B_),zP=0;zP<B_;zP++)$P[zP]=arguments[zP];return $_=kh.call.apply(kh,[this].concat($P)),_defineProperty(_assertThisInitialized($_),"destroyed",!1),_defineProperty(_assertThisInitialized($_),"delayedDragEnterLogic",void 0),_defineProperty(_assertThisInitialized($_),"loadingRetryTimes",{}),_defineProperty(_assertThisInitialized($_),"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:fillFieldNames$1()}),_defineProperty(_assertThisInitialized($_),"dragStartMousePosition",null),_defineProperty(_assertThisInitialized($_),"dragNode",void 0),_defineProperty(_assertThisInitialized($_),"currentMouseOverDroppableNodeKey",null),_defineProperty(_assertThisInitialized($_),"listRef",React__namespace.createRef()),_defineProperty(_assertThisInitialized($_),"onNodeDragStart",function(eme,tme){var nme=$_.state,rme=nme.expandedKeys,ame=nme.keyEntities,ome=$_.props.onDragStart,ime=tme.props.eventKey;$_.dragNode=tme,$_.dragStartMousePosition={x:eme.clientX,y:eme.clientY};var cme=arrDel(rme,ime);$_.setState({draggingNodeKey:ime,dragChildrenKeys:getDragChildrenKeys(ime,ame),indent:$_.listRef.current.getIndentWidth()}),$_.setExpandedKeys(cme),window.addEventListener("dragend",$_.onWindowDragEnd),ome==null||ome({event:eme,node:convertNodePropsToEventData(tme.props)})}),_defineProperty(_assertThisInitialized($_),"onNodeDragEnter",function(eme,tme){var nme=$_.state,rme=nme.expandedKeys,ame=nme.keyEntities,ome=nme.dragChildrenKeys,ime=nme.flattenNodes,cme=nme.indent,ume=$_.props,sme=ume.onDragEnter,fme=ume.onExpand,lme=ume.allowDrop,hme=ume.direction,pme=tme.props,gme=pme.pos,yme=pme.eventKey,mme=_assertThisInitialized($_),bme=mme.dragNode;if($_.currentMouseOverDroppableNodeKey!==yme&&($_.currentMouseOverDroppableNodeKey=yme),!bme){$_.resetDragState();return}var Sme=calcDropPosition(eme,bme,tme,cme,$_.dragStartMousePosition,lme,ime,ame,rme,hme),_me=Sme.dropPosition,Cme=Sme.dropLevelOffset,Eme=Sme.dropTargetKey,Tme=Sme.dropContainerKey,Rme=Sme.dropTargetPos,Pme=Sme.dropAllowed,$me=Sme.dragOverNodeKey;if(ome.indexOf(Eme)!==-1||!Pme){$_.resetDragState();return}if($_.delayedDragEnterLogic||($_.delayedDragEnterLogic={}),Object.keys($_.delayedDragEnterLogic).forEach(function(Dme){clearTimeout($_.delayedDragEnterLogic[Dme])}),bme.props.eventKey!==tme.props.eventKey&&(eme.persist(),$_.delayedDragEnterLogic[gme]=window.setTimeout(function(){if($_.state.draggingNodeKey!==null){var Dme=_toConsumableArray(rme),Mme=getEntity(ame,tme.props.eventKey);Mme&&(Mme.children||[]).length&&(Dme=arrAdd(rme,tme.props.eventKey)),"expandedKeys"in $_.props||$_.setExpandedKeys(Dme),fme==null||fme(Dme,{node:convertNodePropsToEventData(tme.props),expanded:!0,nativeEvent:eme.nativeEvent})}},800)),bme.props.eventKey===Eme&&Cme===0){$_.resetDragState();return}$_.setState({dragOverNodeKey:$me,dropPosition:_me,dropLevelOffset:Cme,dropTargetKey:Eme,dropContainerKey:Tme,dropTargetPos:Rme,dropAllowed:Pme}),sme==null||sme({event:eme,node:convertNodePropsToEventData(tme.props),expandedKeys:rme})}),_defineProperty(_assertThisInitialized($_),"onNodeDragOver",function(eme,tme){var nme=$_.state,rme=nme.dragChildrenKeys,ame=nme.flattenNodes,ome=nme.keyEntities,ime=nme.expandedKeys,cme=nme.indent,ume=$_.props,sme=ume.onDragOver,fme=ume.allowDrop,lme=ume.direction,hme=_assertThisInitialized($_),pme=hme.dragNode;if(pme){var gme=calcDropPosition(eme,pme,tme,cme,$_.dragStartMousePosition,fme,ame,ome,ime,lme),yme=gme.dropPosition,mme=gme.dropLevelOffset,bme=gme.dropTargetKey,Sme=gme.dropContainerKey,_me=gme.dropAllowed,Cme=gme.dropTargetPos,Eme=gme.dragOverNodeKey;rme.indexOf(bme)!==-1||!_me||(pme.props.eventKey===bme&&mme===0?$_.state.dropPosition===null&&$_.state.dropLevelOffset===null&&$_.state.dropTargetKey===null&&$_.state.dropContainerKey===null&&$_.state.dropTargetPos===null&&$_.state.dropAllowed===!1&&$_.state.dragOverNodeKey===null||$_.resetDragState():yme===$_.state.dropPosition&&mme===$_.state.dropLevelOffset&&bme===$_.state.dropTargetKey&&Sme===$_.state.dropContainerKey&&Cme===$_.state.dropTargetPos&&_me===$_.state.dropAllowed&&Eme===$_.state.dragOverNodeKey||$_.setState({dropPosition:yme,dropLevelOffset:mme,dropTargetKey:bme,dropContainerKey:Sme,dropTargetPos:Cme,dropAllowed:_me,dragOverNodeKey:Eme}),sme==null||sme({event:eme,node:convertNodePropsToEventData(tme.props)}))}}),_defineProperty(_assertThisInitialized($_),"onNodeDragLeave",function(eme,tme){$_.currentMouseOverDroppableNodeKey===tme.props.eventKey&&!eme.currentTarget.contains(eme.relatedTarget)&&($_.resetDragState(),$_.currentMouseOverDroppableNodeKey=null);var nme=$_.props.onDragLeave;nme==null||nme({event:eme,node:convertNodePropsToEventData(tme.props)})}),_defineProperty(_assertThisInitialized($_),"onWindowDragEnd",function(eme){$_.onNodeDragEnd(eme,null,!0),window.removeEventListener("dragend",$_.onWindowDragEnd)}),_defineProperty(_assertThisInitialized($_),"onNodeDragEnd",function(eme,tme){var nme=$_.props.onDragEnd;$_.setState({dragOverNodeKey:null}),$_.cleanDragState(),nme==null||nme({event:eme,node:convertNodePropsToEventData(tme.props)}),$_.dragNode=null,window.removeEventListener("dragend",$_.onWindowDragEnd)}),_defineProperty(_assertThisInitialized($_),"onNodeDrop",function(eme,tme){var nme,rme=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ame=$_.state,ome=ame.dragChildrenKeys,ime=ame.dropPosition,cme=ame.dropTargetKey,ume=ame.dropTargetPos,sme=ame.dropAllowed;if(sme){var fme=$_.props.onDrop;if($_.setState({dragOverNodeKey:null}),$_.cleanDragState(),cme!==null){var lme=_objectSpread2(_objectSpread2({},getTreeNodeProps(cme,$_.getTreeNodeRequiredProps())),{},{active:((nme=$_.getActiveItem())===null||nme===void 0?void 0:nme.key)===cme,data:getEntity($_.state.keyEntities,cme).node}),hme=ome.indexOf(cme)!==-1;warningOnce(!hme,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var pme=posToArr(ume),gme={event:eme,node:convertNodePropsToEventData(lme),dragNode:$_.dragNode?convertNodePropsToEventData($_.dragNode.props):null,dragNodesKeys:[$_.dragNode.props.eventKey].concat(ome),dropToGap:ime!==0,dropPosition:ime+Number(pme[pme.length-1])};rme||fme==null||fme(gme),$_.dragNode=null}}}),_defineProperty(_assertThisInitialized($_),"cleanDragState",function(){var eme=$_.state.draggingNodeKey;eme!==null&&$_.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),$_.dragStartMousePosition=null,$_.currentMouseOverDroppableNodeKey=null}),_defineProperty(_assertThisInitialized($_),"triggerExpandActionExpand",function(eme,tme){var nme=$_.state,rme=nme.expandedKeys,ame=nme.flattenNodes,ome=tme.expanded,ime=tme.key,cme=tme.isLeaf;if(!(cme||eme.shiftKey||eme.metaKey||eme.ctrlKey)){var ume=ame.filter(function(fme){return fme.key===ime})[0],sme=convertNodePropsToEventData(_objectSpread2(_objectSpread2({},getTreeNodeProps(ime,$_.getTreeNodeRequiredProps())),{},{data:ume.data}));$_.setExpandedKeys(ome?arrDel(rme,ime):arrAdd(rme,ime)),$_.onNodeExpand(eme,sme)}}),_defineProperty(_assertThisInitialized($_),"onNodeClick",function(eme,tme){var nme=$_.props,rme=nme.onClick,ame=nme.expandAction;ame==="click"&&$_.triggerExpandActionExpand(eme,tme),rme==null||rme(eme,tme)}),_defineProperty(_assertThisInitialized($_),"onNodeDoubleClick",function(eme,tme){var nme=$_.props,rme=nme.onDoubleClick,ame=nme.expandAction;ame==="doubleClick"&&$_.triggerExpandActionExpand(eme,tme),rme==null||rme(eme,tme)}),_defineProperty(_assertThisInitialized($_),"onNodeSelect",function(eme,tme){var nme=$_.state.selectedKeys,rme=$_.state,ame=rme.keyEntities,ome=rme.fieldNames,ime=$_.props,cme=ime.onSelect,ume=ime.multiple,sme=tme.selected,fme=tme[ome.key],lme=!sme;lme?ume?nme=arrAdd(nme,fme):nme=[fme]:nme=arrDel(nme,fme);var hme=nme.map(function(pme){var gme=getEntity(ame,pme);return gme?gme.node:null}).filter(function(pme){return pme});$_.setUncontrolledState({selectedKeys:nme}),cme==null||cme(nme,{event:"select",selected:lme,node:tme,selectedNodes:hme,nativeEvent:eme.nativeEvent})}),_defineProperty(_assertThisInitialized($_),"onNodeCheck",function(eme,tme,nme){var rme=$_.state,ame=rme.keyEntities,ome=rme.checkedKeys,ime=rme.halfCheckedKeys,cme=$_.props,ume=cme.checkStrictly,sme=cme.onCheck,fme=tme.key,lme,hme={event:"check",node:tme,checked:nme,nativeEvent:eme.nativeEvent};if(ume){var pme=nme?arrAdd(ome,fme):arrDel(ome,fme),gme=arrDel(ime,fme);lme={checked:pme,halfChecked:gme},hme.checkedNodes=pme.map(function(Cme){return getEntity(ame,Cme)}).filter(function(Cme){return Cme}).map(function(Cme){return Cme.node}),$_.setUncontrolledState({checkedKeys:pme})}else{var yme=conductCheck([].concat(_toConsumableArray(ome),[fme]),!0,ame),mme=yme.checkedKeys,bme=yme.halfCheckedKeys;if(!nme){var Sme=new Set(mme);Sme.delete(fme);var _me=conductCheck(Array.from(Sme),{checked:!1,halfCheckedKeys:bme},ame);mme=_me.checkedKeys,bme=_me.halfCheckedKeys}lme=mme,hme.checkedNodes=[],hme.checkedNodesPositions=[],hme.halfCheckedKeys=bme,mme.forEach(function(Cme){var Eme=getEntity(ame,Cme);if(Eme){var Tme=Eme.node,Rme=Eme.pos;hme.checkedNodes.push(Tme),hme.checkedNodesPositions.push({node:Tme,pos:Rme})}}),$_.setUncontrolledState({checkedKeys:mme},!1,{halfCheckedKeys:bme})}sme==null||sme(lme,hme)}),_defineProperty(_assertThisInitialized($_),"onNodeLoad",function(eme){var tme,nme=eme.key,rme=$_.state.keyEntities,ame=getEntity(rme,nme);if(!(ame!=null&&(tme=ame.children)!==null&&tme!==void 0&&tme.length)){var ome=new Promise(function(ime,cme){$_.setState(function(ume){var sme=ume.loadedKeys,fme=sme===void 0?[]:sme,lme=ume.loadingKeys,hme=lme===void 0?[]:lme,pme=$_.props,gme=pme.loadData,yme=pme.onLoad;if(!gme||fme.indexOf(nme)!==-1||hme.indexOf(nme)!==-1)return null;var mme=gme(eme);return mme.then(function(){var bme=$_.state.loadedKeys,Sme=arrAdd(bme,nme);yme==null||yme(Sme,{event:"load",node:eme}),$_.setUncontrolledState({loadedKeys:Sme}),$_.setState(function(_me){return{loadingKeys:arrDel(_me.loadingKeys,nme)}}),ime()}).catch(function(bme){if($_.setState(function(_me){return{loadingKeys:arrDel(_me.loadingKeys,nme)}}),$_.loadingRetryTimes[nme]=($_.loadingRetryTimes[nme]||0)+1,$_.loadingRetryTimes[nme]>=MAX_RETRY_TIMES){var Sme=$_.state.loadedKeys;warningOnce(!1,"Retry for `loadData` many times but still failed. No more retry."),$_.setUncontrolledState({loadedKeys:arrAdd(Sme,nme)}),ime()}cme(bme)}),{loadingKeys:arrAdd(hme,nme)}})});return ome.catch(function(){}),ome}}),_defineProperty(_assertThisInitialized($_),"onNodeMouseEnter",function(eme,tme){var nme=$_.props.onMouseEnter;nme==null||nme({event:eme,node:tme})}),_defineProperty(_assertThisInitialized($_),"onNodeMouseLeave",function(eme,tme){var nme=$_.props.onMouseLeave;nme==null||nme({event:eme,node:tme})}),_defineProperty(_assertThisInitialized($_),"onNodeContextMenu",function(eme,tme){var nme=$_.props.onRightClick;nme&&(eme.preventDefault(),nme({event:eme,node:tme}))}),_defineProperty(_assertThisInitialized($_),"onFocus",function(){var eme=$_.props.onFocus;$_.setState({focused:!0});for(var tme=arguments.length,nme=new Array(tme),rme=0;rme<tme;rme++)nme[rme]=arguments[rme];eme==null||eme.apply(void 0,nme)}),_defineProperty(_assertThisInitialized($_),"onBlur",function(){var eme=$_.props.onBlur;$_.setState({focused:!1}),$_.onActiveChange(null);for(var tme=arguments.length,nme=new Array(tme),rme=0;rme<tme;rme++)nme[rme]=arguments[rme];eme==null||eme.apply(void 0,nme)}),_defineProperty(_assertThisInitialized($_),"getTreeNodeRequiredProps",function(){var eme=$_.state,tme=eme.expandedKeys,nme=eme.selectedKeys,rme=eme.loadedKeys,ame=eme.loadingKeys,ome=eme.checkedKeys,ime=eme.halfCheckedKeys,cme=eme.dragOverNodeKey,ume=eme.dropPosition,sme=eme.keyEntities;return{expandedKeys:tme||[],selectedKeys:nme||[],loadedKeys:rme||[],loadingKeys:ame||[],checkedKeys:ome||[],halfCheckedKeys:ime||[],dragOverNodeKey:cme,dropPosition:ume,keyEntities:sme}}),_defineProperty(_assertThisInitialized($_),"setExpandedKeys",function(eme){var tme=$_.state,nme=tme.treeData,rme=tme.fieldNames,ame=flattenTreeData(nme,eme,rme);$_.setUncontrolledState({expandedKeys:eme,flattenNodes:ame},!0)}),_defineProperty(_assertThisInitialized($_),"onNodeExpand",function(eme,tme){var nme=$_.state.expandedKeys,rme=$_.state,ame=rme.listChanging,ome=rme.fieldNames,ime=$_.props,cme=ime.onExpand,ume=ime.loadData,sme=tme.expanded,fme=tme[ome.key];if(!ame){var lme=nme.indexOf(fme),hme=!sme;if(warningOnce(sme&&lme!==-1||!sme&&lme===-1,"Expand state not sync with index check"),hme?nme=arrAdd(nme,fme):nme=arrDel(nme,fme),$_.setExpandedKeys(nme),cme==null||cme(nme,{node:tme,expanded:hme,nativeEvent:eme.nativeEvent}),hme&&ume){var pme=$_.onNodeLoad(tme);pme&&pme.then(function(){var gme=flattenTreeData($_.state.treeData,nme,ome);$_.setUncontrolledState({flattenNodes:gme})}).catch(function(){var gme=$_.state.expandedKeys,yme=arrDel(gme,fme);$_.setExpandedKeys(yme)})}}}),_defineProperty(_assertThisInitialized($_),"onListChangeStart",function(){$_.setUncontrolledState({listChanging:!0})}),_defineProperty(_assertThisInitialized($_),"onListChangeEnd",function(){setTimeout(function(){$_.setUncontrolledState({listChanging:!1})})}),_defineProperty(_assertThisInitialized($_),"onActiveChange",function(eme){var tme=$_.state.activeKey,nme=$_.props,rme=nme.onActiveChange,ame=nme.itemScrollOffset,ome=ame===void 0?0:ame;tme!==eme&&($_.setState({activeKey:eme}),eme!==null&&$_.scrollTo({key:eme,offset:ome}),rme==null||rme(eme))}),_defineProperty(_assertThisInitialized($_),"getActiveItem",function(){var eme=$_.state,tme=eme.activeKey,nme=eme.flattenNodes;return tme===null?null:nme.find(function(rme){var ame=rme.key;return ame===tme})||null}),_defineProperty(_assertThisInitialized($_),"offsetActiveKey",function(eme){var tme=$_.state,nme=tme.flattenNodes,rme=tme.activeKey,ame=nme.findIndex(function(cme){var ume=cme.key;return ume===rme});ame===-1&&eme<0&&(ame=nme.length),ame=(ame+eme+nme.length)%nme.length;var ome=nme[ame];if(ome){var ime=ome.key;$_.onActiveChange(ime)}else $_.onActiveChange(null)}),_defineProperty(_assertThisInitialized($_),"onKeyDown",function(eme){var tme=$_.state,nme=tme.activeKey,rme=tme.expandedKeys,ame=tme.checkedKeys,ome=tme.fieldNames,ime=$_.props,cme=ime.onKeyDown,ume=ime.checkable,sme=ime.selectable;switch(eme.which){case KeyCode.UP:{$_.offsetActiveKey(-1),eme.preventDefault();break}case KeyCode.DOWN:{$_.offsetActiveKey(1),eme.preventDefault();break}}var fme=$_.getActiveItem();if(fme&&fme.data){var lme=$_.getTreeNodeRequiredProps(),hme=fme.data.isLeaf===!1||!!(fme.data[ome.children]||[]).length,pme=convertNodePropsToEventData(_objectSpread2(_objectSpread2({},getTreeNodeProps(nme,lme)),{},{data:fme.data,active:!0}));switch(eme.which){case KeyCode.LEFT:{hme&&rme.includes(nme)?$_.onNodeExpand({},pme):fme.parent&&$_.onActiveChange(fme.parent.key),eme.preventDefault();break}case KeyCode.RIGHT:{hme&&!rme.includes(nme)?$_.onNodeExpand({},pme):fme.children&&fme.children.length&&$_.onActiveChange(fme.children[0].key),eme.preventDefault();break}case KeyCode.ENTER:case KeyCode.SPACE:{ume&&!pme.disabled&&pme.checkable!==!1&&!pme.disableCheckbox?$_.onNodeCheck({},pme,!ame.includes(nme)):!ume&&sme&&!pme.disabled&&pme.selectable!==!1&&$_.onNodeSelect({},pme);break}}}cme==null||cme(eme)}),_defineProperty(_assertThisInitialized($_),"setUncontrolledState",function(eme){var tme=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nme=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!$_.destroyed){var rme=!1,ame=!0,ome={};Object.keys(eme).forEach(function(ime){if(ime in $_.props){ame=!1;return}rme=!0,ome[ime]=eme[ime]}),rme&&(!tme||ame)&&$_.setState(_objectSpread2(_objectSpread2({},ome),nme))}}),_defineProperty(_assertThisInitialized($_),"scrollTo",function(eme){$_.listRef.current.scrollTo(eme)}),$_}return _createClass(x_,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var B_=this.props,$P=B_.activeKey,zP=B_.itemScrollOffset,eme=zP===void 0?0:zP;$P!==void 0&&$P!==this.state.activeKey&&(this.setState({activeKey:$P}),$P!==null&&this.scrollTo({key:$P,offset:eme}))}},{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 B_=this.state,$P=B_.focused,zP=B_.flattenNodes,eme=B_.keyEntities,tme=B_.draggingNodeKey,nme=B_.activeKey,rme=B_.dropLevelOffset,ame=B_.dropContainerKey,ome=B_.dropTargetKey,ime=B_.dropPosition,cme=B_.dragOverNodeKey,ume=B_.indent,sme=this.props,fme=sme.prefixCls,lme=sme.className,hme=sme.style,pme=sme.showLine,gme=sme.focusable,yme=sme.tabIndex,mme=yme===void 0?0:yme,bme=sme.selectable,Sme=sme.showIcon,_me=sme.icon,Cme=sme.switcherIcon,Eme=sme.draggable,Tme=sme.checkable,Rme=sme.checkStrictly,Pme=sme.disabled,$me=sme.motion,Dme=sme.loadData,Mme=sme.filterTreeNode,Nme=sme.height,Ime=sme.itemHeight,wme=sme.virtual,Ome=sme.titleRender,Ame=sme.dropIndicatorRender,Fme=sme.onContextMenu,Bme=sme.onScroll,kme=sme.direction,Lme=sme.rootClassName,Hme=sme.rootStyle,Wme=pickAttrs(this.props,{aria:!0,data:!0}),zme;return Eme&&(_typeof(Eme)==="object"?zme=Eme:typeof Eme=="function"?zme={nodeDraggable:Eme}:zme={}),React__namespace.createElement(TreeContext.Provider,{value:{prefixCls:fme,selectable:bme,showIcon:Sme,icon:_me,switcherIcon:Cme,draggable:zme,draggingNodeKey:tme,checkable:Tme,checkStrictly:Rme,disabled:Pme,keyEntities:eme,dropLevelOffset:rme,dropContainerKey:ame,dropTargetKey:ome,dropPosition:ime,dragOverNodeKey:cme,indent:ume,direction:kme,dropIndicatorRender:Ame,loadData:Dme,filterTreeNode:Mme,titleRender:Ome,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}},React__namespace.createElement("div",{role:"tree",className:classNames(fme,lme,Lme,_defineProperty(_defineProperty(_defineProperty({},"".concat(fme,"-show-line"),pme),"".concat(fme,"-focused"),$P),"".concat(fme,"-active-focused"),nme!==null)),style:Hme},React__namespace.createElement(NodeList,_extends({ref:this.listRef,prefixCls:fme,style:hme,data:zP,disabled:Pme,selectable:bme,checkable:!!Tme,motion:$me,dragging:tme!==null,height:Nme,itemHeight:Ime,virtual:wme,focusable:gme,focused:$P,tabIndex:mme,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Fme,onScroll:Bme},this.getTreeNodeRequiredProps(),Wme))))}}],[{key:"getDerivedStateFromProps",value:function(B_,$P){var zP=$P.prevProps,eme={prevProps:B_};function tme(yme){return!zP&&yme in B_||zP&&zP[yme]!==B_[yme]}var nme,rme=$P.fieldNames;if(tme("fieldNames")&&(rme=fillFieldNames$1(B_.fieldNames),eme.fieldNames=rme),tme("treeData")?nme=B_.treeData:tme("children")&&(warningOnce(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),nme=convertTreeToData(B_.children)),nme){eme.treeData=nme;var ame=convertDataToEntities(nme,{fieldNames:rme});eme.keyEntities=_objectSpread2(_defineProperty({},MOTION_KEY,MotionEntity),ame.keyEntities),process.env.NODE_ENV!=="production"&&warningWithoutKey(nme,rme)}var ome=eme.keyEntities||$P.keyEntities;if(tme("expandedKeys")||zP&&tme("autoExpandParent"))eme.expandedKeys=B_.autoExpandParent||!zP&&B_.defaultExpandParent?conductExpandParent(B_.expandedKeys,ome):B_.expandedKeys;else if(!zP&&B_.defaultExpandAll){var ime=_objectSpread2({},ome);delete ime[MOTION_KEY],eme.expandedKeys=Object.keys(ime).map(function(yme){return ime[yme].key})}else!zP&&B_.defaultExpandedKeys&&(eme.expandedKeys=B_.autoExpandParent||B_.defaultExpandParent?conductExpandParent(B_.defaultExpandedKeys,ome):B_.defaultExpandedKeys);if(eme.expandedKeys||delete eme.expandedKeys,nme||eme.expandedKeys){var cme=flattenTreeData(nme||$P.treeData,eme.expandedKeys||$P.expandedKeys,rme);eme.flattenNodes=cme}if(B_.selectable&&(tme("selectedKeys")?eme.selectedKeys=calcSelectedKeys(B_.selectedKeys,B_):!zP&&B_.defaultSelectedKeys&&(eme.selectedKeys=calcSelectedKeys(B_.defaultSelectedKeys,B_))),B_.checkable){var ume;if(tme("checkedKeys")?ume=parseCheckedKeys(B_.checkedKeys)||{}:!zP&&B_.defaultCheckedKeys?ume=parseCheckedKeys(B_.defaultCheckedKeys)||{}:nme&&(ume=parseCheckedKeys(B_.checkedKeys)||{checkedKeys:$P.checkedKeys,halfCheckedKeys:$P.halfCheckedKeys}),ume){var sme=ume,fme=sme.checkedKeys,lme=fme===void 0?[]:fme,hme=sme.halfCheckedKeys,pme=hme===void 0?[]:hme;if(!B_.checkStrictly){var gme=conductCheck(lme,!0,ome);lme=gme.checkedKeys,pme=gme.halfCheckedKeys}eme.checkedKeys=lme,eme.halfCheckedKeys=pme}}return tme("loadedKeys")&&(eme.loadedKeys=B_.loadedKeys),eme}}]),x_}(React__namespace.Component);_defineProperty(Tree$2,"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:DropIndicator,allowDrop:function(){return!0},expandAction:!1});_defineProperty(Tree$2,"TreeNode",ContextTreeNode);var FileOutlined$1={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"},FileOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:FileOutlined$1}))},RefIcon$f=React__namespace.forwardRef(FileOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$f.displayName="FileOutlined");var FolderOpenOutlined$1={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"},FolderOpenOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:FolderOpenOutlined$1}))},RefIcon$e=React__namespace.forwardRef(FolderOpenOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$e.displayName="FolderOpenOutlined");var FolderOutlined$1={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"},FolderOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:FolderOutlined$1}))},RefIcon$d=React__namespace.forwardRef(FolderOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$d.displayName="FolderOutlined");var HolderOutlined$1={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"},HolderOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:HolderOutlined$1}))},RefIcon$c=React__namespace.forwardRef(HolderOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$c.displayName="HolderOutlined");const treeNodeFX=new Keyframe("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),getSwitchStyle=(Ff,kh)=>({[`.${Ff}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${kh.motionDurationSlow}`}}}),getDropIndicatorStyle=(Ff,kh)=>({[`.${Ff}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:kh.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${unit$1(kh.lineWidthBold)} solid ${kh.colorPrimary}`,borderRadius:"50%",content:'""'}}}),genBaseStyle$2=(Ff,kh)=>{const{treeCls:x_,treeNodeCls:$_,treeNodePadding:B_,titleHeight:$P,nodeSelectedBg:zP,nodeHoverBg:eme}=kh,tme=kh.paddingXS;return{[x_]:Object.assign(Object.assign({},resetComponent(kh)),{background:kh.colorBgContainer,borderRadius:kh.borderRadius,transition:`background-color ${kh.motionDurationSlow}`,[`&${x_}-rtl`]:{[`${x_}-switcher`]:{"&_close":{[`${x_}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${x_}-active-focused)`]:Object.assign({},genFocusOutline(kh)),[`${x_}-list-holder-inner`]:{alignItems:"flex-start"},[`&${x_}-block-node`]:{[`${x_}-list-holder-inner`]:{alignItems:"stretch",[`${x_}-node-content-wrapper`]:{flex:"auto"},[`${$_}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:B_,insetInlineStart:0,border:`1px solid ${kh.colorPrimary}`,opacity:0,animationName:treeNodeFX,animationDuration:kh.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${$_}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${unit$1(B_)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${x_}-node-content-wrapper`]:{color:kh.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${x_}-node-content-wrapper`]:{background:kh.controlItemBgHover},[`&:not(${$_}-disabled).filter-node ${x_}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{cursor:"grab",[`${x_}-draggable-icon`]:{flexShrink:0,width:$P,lineHeight:`${unit$1($P)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${kh.motionDurationSlow}`,[`${$_}:hover &`]:{opacity:.45}},[`&${$_}-disabled`]:{[`${x_}-draggable-icon`]:{visibility:"hidden"}}}},[`${x_}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:$P}},[`${x_}-draggable-icon`]:{visibility:"hidden"},[`${x_}-switcher`]:Object.assign(Object.assign({},getSwitchStyle(Ff,kh)),{position:"relative",flex:"none",alignSelf:"stretch",width:$P,margin:0,lineHeight:`${unit$1($P)}`,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${kh.motionDurationSlow}`,borderRadius:kh.borderRadius,"&-noop":{cursor:"unset"},[`&:not(${x_}-switcher-noop):hover`]:{backgroundColor:kh.colorBgTextHover},"&_close":{[`${x_}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:kh.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:kh.calc($P).div(2).equal(),bottom:kh.calc(B_).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${kh.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:kh.calc(kh.calc($P).div(2).equal()).mul(.8).equal(),height:kh.calc($P).div(2).equal(),borderBottom:`1px solid ${kh.colorBorder}`,content:'""'}}}),[`${x_}-checkbox`]:{top:"initial",marginInlineEnd:tme,alignSelf:"flex-start",marginTop:kh.marginXXS},[`${x_}-node-content-wrapper, ${x_}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:$P,margin:0,padding:`0 ${unit$1(kh.calc(kh.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${unit$1($P)}`,background:"transparent",borderRadius:kh.borderRadius,cursor:"pointer",transition:`all ${kh.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:eme},[`&${x_}-node-selected`]:{backgroundColor:zP},[`${x_}-iconEle`]:{display:"inline-block",width:$P,height:$P,lineHeight:`${unit$1($P)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${x_}-unselectable ${x_}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${x_}-node-content-wrapper`]:Object.assign({lineHeight:`${unit$1($P)}`,userSelect:"none"},getDropIndicatorStyle(Ff,kh)),[`${$_}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${kh.colorPrimary}`}},"&-show-line":{[`${x_}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:kh.calc($P).div(2).equal(),bottom:kh.calc(B_).mul(-1).equal(),borderInlineEnd:`1px solid ${kh.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${x_}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${$_}-leaf-last`]:{[`${x_}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${unit$1(kh.calc($P).div(2).equal())} !important`}}}}})}},genDirectoryStyle=Ff=>{const{treeCls:kh,treeNodeCls:x_,treeNodePadding:$_,directoryNodeSelectedBg:B_,directoryNodeSelectedColor:$P}=Ff;return{[`${kh}${kh}-directory`]:{[x_]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:$_,insetInlineStart:0,transition:`background-color ${Ff.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ff.controlItemBgHover}},"> *":{zIndex:1},[`${kh}-switcher`]:{transition:`color ${Ff.motionDurationMid}`},[`${kh}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${kh}-node-selected`]:{color:$P,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:B_},[`${kh}-switcher`]:{color:$P},[`${kh}-node-content-wrapper`]:{color:$P,background:"transparent"}}}}}},genTreeStyle=(Ff,kh)=>{const x_=`.${Ff}`,$_=`${x_}-treenode`,B_=kh.calc(kh.paddingXS).div(2).equal(),$P=merge(kh,{treeCls:x_,treeNodeCls:$_,treeNodePadding:B_});return[genBaseStyle$2(Ff,$P),genDirectoryStyle($P)]},initComponentToken=Ff=>{const{controlHeightSM:kh}=Ff;return{titleHeight:kh,nodeHoverBg:Ff.controlItemBgHover,nodeSelectedBg:Ff.controlItemBgActive}},prepareComponentToken$1=Ff=>{const{colorTextLightSolid:kh,colorPrimary:x_}=Ff;return Object.assign(Object.assign({},initComponentToken(Ff)),{directoryNodeSelectedColor:kh,directoryNodeSelectedBg:x_})},useStyle$1=genStyleHooks("Tree",(Ff,kh)=>{let{prefixCls:x_}=kh;return[{[Ff.componentCls]:getStyle(`${x_}-checkbox`,Ff)},genTreeStyle(x_,Ff),genCollapseMotion(Ff)]},prepareComponentToken$1),offset=4;function dropIndicatorRender(Ff){const{dropPosition:kh,dropLevelOffset:x_,prefixCls:$_,indent:B_,direction:$P="ltr"}=Ff,zP=$P==="ltr"?"left":"right",eme=$P==="ltr"?"right":"left",tme={[zP]:-x_*B_+offset,[eme]:0};switch(kh){case-1:tme.top=-3;break;case 1:tme.bottom=-3;break;default:tme.bottom=-3,tme[zP]=B_+offset;break}return React.createElement("div",{style:tme,className:`${$_}-drop-indicator`})}var CaretDownFilled$1={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"},CaretDownFilled=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:CaretDownFilled$1}))},RefIcon$b=React__namespace.forwardRef(CaretDownFilled);process.env.NODE_ENV!=="production"&&(RefIcon$b.displayName="CaretDownFilled");var MinusSquareOutlined$1={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"},MinusSquareOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:MinusSquareOutlined$1}))},RefIcon$a=React__namespace.forwardRef(MinusSquareOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$a.displayName="MinusSquareOutlined");var PlusSquareOutlined$1={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"},PlusSquareOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:PlusSquareOutlined$1}))},RefIcon$9=React__namespace.forwardRef(PlusSquareOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$9.displayName="PlusSquareOutlined");const SwitcherIconCom=Ff=>{const{prefixCls:kh,switcherIcon:x_,treeNodeProps:$_,showLine:B_}=Ff,{isLeaf:$P,expanded:zP,loading:eme}=$_;if(eme)return React__namespace.createElement(RefIcon$x,{className:`${kh}-switcher-loading-icon`});let tme;if(B_&&typeof B_=="object"&&(tme=B_.showLeafIcon),$P){if(!B_)return null;if(typeof tme!="boolean"&&tme){const ame=typeof tme=="function"?tme($_):tme,ome=`${kh}-switcher-line-custom-icon`;return React__namespace.isValidElement(ame)?cloneElement(ame,{className:classNames(ame.props.className||"",ome)}):ame}return tme?React__namespace.createElement(RefIcon$f,{className:`${kh}-switcher-line-icon`}):React__namespace.createElement("span",{className:`${kh}-switcher-leaf-line`})}const nme=`${kh}-switcher-icon`,rme=typeof x_=="function"?x_($_):x_;return React__namespace.isValidElement(rme)?cloneElement(rme,{className:classNames(rme.props.className||"",nme)}):rme!==void 0?rme:B_?zP?React__namespace.createElement(RefIcon$a,{className:`${kh}-switcher-line-icon`}):React__namespace.createElement(RefIcon$9,{className:`${kh}-switcher-line-icon`}):React__namespace.createElement(RefIcon$b,{className:nme})},Tree$1=React.forwardRef((Ff,kh)=>{var x_;const{getPrefixCls:$_,direction:B_,virtual:$P,tree:zP}=React.useContext(ConfigContext),{prefixCls:eme,className:tme,showIcon:nme=!1,showLine:rme,switcherIcon:ame,blockNode:ome=!1,children:ime,checkable:cme=!1,selectable:ume=!0,draggable:sme,motion:fme,style:lme}=Ff,hme=$_("tree",eme),pme=$_(),gme=fme??Object.assign(Object.assign({},initCollapseMotion(pme)),{motionAppear:!1}),yme=Object.assign(Object.assign({},Ff),{checkable:cme,selectable:ume,showIcon:nme,motion:gme,blockNode:ome,showLine:!!rme,dropIndicatorRender}),[mme,bme,Sme]=useStyle$1(hme),[,_me]=useToken(),Cme=_me.paddingXS/2+(((x_=_me.Tree)===null||x_===void 0?void 0:x_.titleHeight)||_me.controlHeightSM),Eme=React.useMemo(()=>{if(!sme)return!1;let Rme={};switch(typeof sme){case"function":Rme.nodeDraggable=sme;break;case"object":Rme=Object.assign({},sme);break}return Rme.icon!==!1&&(Rme.icon=Rme.icon||React.createElement(RefIcon$c,null)),Rme},[sme]),Tme=Rme=>React.createElement(SwitcherIconCom,{prefixCls:hme,switcherIcon:ame,treeNodeProps:Rme,showLine:rme});return mme(React.createElement(Tree$2,Object.assign({itemHeight:Cme,ref:kh,virtual:$P},yme,{style:Object.assign(Object.assign({},zP==null?void 0:zP.style),lme),prefixCls:hme,className:classNames({[`${hme}-icon-hide`]:!nme,[`${hme}-block-node`]:ome,[`${hme}-unselectable`]:!ume,[`${hme}-rtl`]:B_==="rtl"},zP==null?void 0:zP.className,tme,bme,Sme),direction:B_,checkable:cme&&React.createElement("span",{className:`${hme}-checkbox-inner`}),selectable:ume,switcherIcon:Tme,draggable:Eme}),ime))});process.env.NODE_ENV!=="production"&&(Tree$1.displayName="Tree");const RECORD_NONE=0,RECORD_START=1,RECORD_END=2;function traverseNodesKey(Ff,kh,x_){const{key:$_,children:B_}=x_;function $P(zP){const eme=zP[$_],tme=zP[B_];kh(eme,zP)!==!1&&traverseNodesKey(tme||[],kh,x_)}Ff.forEach($P)}function calcRangeKeys(Ff){let{treeData:kh,expandedKeys:x_,startKey:$_,endKey:B_,fieldNames:$P}=Ff;const zP=[];let eme=RECORD_NONE;if($_&&$_===B_)return[$_];if(!$_||!B_)return[];function tme(nme){return nme===$_||nme===B_}return traverseNodesKey(kh,nme=>{if(eme===RECORD_END)return!1;if(tme(nme)){if(zP.push(nme),eme===RECORD_NONE)eme=RECORD_START;else if(eme===RECORD_START)return eme=RECORD_END,!1}else eme===RECORD_START&&zP.push(nme);return x_.includes(nme)},fillFieldNames$1($P)),zP}function convertDirectoryKeysToNodes(Ff,kh,x_){const $_=_toConsumableArray(kh),B_=[];return traverseNodesKey(Ff,($P,zP)=>{const eme=$_.indexOf($P);return eme!==-1&&(B_.push(zP),$_.splice(eme,1)),!!$_.length},fillFieldNames$1(x_)),B_}var __rest$2=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};function getIcon(Ff){const{isLeaf:kh,expanded:x_}=Ff;return kh?React__namespace.createElement(RefIcon$f,null):x_?React__namespace.createElement(RefIcon$e,null):React__namespace.createElement(RefIcon$d,null)}function getTreeData(Ff){let{treeData:kh,children:x_}=Ff;return kh||convertTreeToData(x_)}const DirectoryTree=(Ff,kh)=>{var{defaultExpandAll:x_,defaultExpandParent:$_,defaultExpandedKeys:B_}=Ff,$P=__rest$2(Ff,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const zP=React__namespace.useRef(),eme=React__namespace.useRef(),tme=()=>{const{keyEntities:bme}=convertDataToEntities(getTreeData($P));let Sme;return x_?Sme=Object.keys(bme):$_?Sme=conductExpandParent($P.expandedKeys||B_||[],bme):Sme=$P.expandedKeys||B_||[],Sme},[nme,rme]=React__namespace.useState($P.selectedKeys||$P.defaultSelectedKeys||[]),[ame,ome]=React__namespace.useState(()=>tme());React__namespace.useEffect(()=>{"selectedKeys"in $P&&rme($P.selectedKeys)},[$P.selectedKeys]),React__namespace.useEffect(()=>{"expandedKeys"in $P&&ome($P.expandedKeys)},[$P.expandedKeys]);const ime=(bme,Sme)=>{var _me;return"expandedKeys"in $P||ome(bme),(_me=$P.onExpand)===null||_me===void 0?void 0:_me.call($P,bme,Sme)},cme=(bme,Sme)=>{var _me;const{multiple:Cme,fieldNames:Eme}=$P,{node:Tme,nativeEvent:Rme}=Sme,{key:Pme=""}=Tme,$me=getTreeData($P),Dme=Object.assign(Object.assign({},Sme),{selected:!0}),Mme=(Rme==null?void 0:Rme.ctrlKey)||(Rme==null?void 0:Rme.metaKey),Nme=Rme==null?void 0:Rme.shiftKey;let Ime;Cme&&Mme?(Ime=bme,zP.current=Pme,eme.current=Ime,Dme.selectedNodes=convertDirectoryKeysToNodes($me,Ime,Eme)):Cme&&Nme?(Ime=Array.from(new Set([].concat(_toConsumableArray(eme.current||[]),_toConsumableArray(calcRangeKeys({treeData:$me,expandedKeys:ame,startKey:Pme,endKey:zP.current,fieldNames:Eme}))))),Dme.selectedNodes=convertDirectoryKeysToNodes($me,Ime,Eme)):(Ime=[Pme],zP.current=Pme,eme.current=Ime,Dme.selectedNodes=convertDirectoryKeysToNodes($me,Ime,Eme)),(_me=$P.onSelect)===null||_me===void 0||_me.call($P,Ime,Dme),"selectedKeys"in $P||rme(Ime)},{getPrefixCls:ume,direction:sme}=React__namespace.useContext(ConfigContext),{prefixCls:fme,className:lme,showIcon:hme=!0,expandAction:pme="click"}=$P,gme=__rest$2($P,["prefixCls","className","showIcon","expandAction"]),yme=ume("tree",fme),mme=classNames(`${yme}-directory`,{[`${yme}-directory-rtl`]:sme==="rtl"},lme);return React__namespace.createElement(Tree$1,Object.assign({icon:getIcon,ref:kh,blockNode:!0},gme,{showIcon:hme,expandAction:pme,prefixCls:yme,className:mme,expandedKeys:ame,selectedKeys:nme,onSelect:cme,onExpand:ime}))},ForwardDirectoryTree=React__namespace.forwardRef(DirectoryTree);process.env.NODE_ENV!=="production"&&(ForwardDirectoryTree.displayName="DirectoryTree");const Tree=Tree$1;Tree.DirectoryTree=ForwardDirectoryTree;Tree.TreeNode=ContextTreeNode;var DeleteOutlined$2={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"},DeleteOutlined$1=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:DeleteOutlined$2}))},RefIcon$8=React__namespace.forwardRef(DeleteOutlined$1);process.env.NODE_ENV!=="production"&&(RefIcon$8.displayName="DeleteOutlined");const useCache=function(Ff){var kh=React__namespace.useRef({valueLabels:new Map});return React__namespace.useMemo(function(){var x_=kh.current.valueLabels,$_=new Map,B_=Ff.map(function($P){var zP,eme=$P.value,tme=(zP=$P.label)!==null&&zP!==void 0?zP:x_.get(eme);return $_.set(eme,tme),_objectSpread2(_objectSpread2({},$P),{},{label:tme})});return kh.current.valueLabels=$_,[B_]},[Ff])},useCheckedKeys=function(Ff,kh,x_,$_){return React__namespace.useMemo(function(){var B_=Ff.map(function(tme){var nme=tme.value;return nme}),$P=kh.map(function(tme){var nme=tme.value;return nme}),zP=B_.filter(function(tme){return!$_[tme]});if(x_){var eme=conductCheck(B_,!0,$_);B_=eme.checkedKeys,$P=eme.halfCheckedKeys}return[Array.from(new Set([].concat(_toConsumableArray(zP),_toConsumableArray(B_)))),$P]},[Ff,kh,x_,$_])};function toArray(Ff){return Array.isArray(Ff)?Ff:Ff!==void 0?[Ff]:[]}function fillFieldNames(Ff){var kh=Ff||{},x_=kh.label,$_=kh.value,B_=kh.children,$P=$_||"value";return{_title:x_?[x_]:["title","label"],value:$P,key:$P,children:B_||"children"}}function isCheckDisabled(Ff){return!Ff||Ff.disabled||Ff.disableCheckbox||Ff.checkable===!1}function getAllKeys$2(Ff,kh){var x_=[];function $_(B_){B_.forEach(function($P){var zP=$P[kh.children];zP&&(x_.push($P[kh.value]),$_(zP))})}return $_(Ff),x_}function isNil(Ff){return Ff==null}const useDataEntities=function(Ff,kh){return React__namespace.useMemo(function(){var x_=convertDataToEntities(Ff,{fieldNames:kh,initWrapper:function(B_){return _objectSpread2(_objectSpread2({},B_),{},{valueEntities:new Map})},processEntity:function(B_,$P){var zP=B_.node[kh.value];if(process.env.NODE_ENV!=="production"){var eme=B_.node.key;warningOnce(!isNil(zP),"TreeNode `value` is invalidate: undefined"),warningOnce(!$P.valueEntities.has(zP),"Same `value` exist in the tree: ".concat(zP)),warningOnce(!eme||String(eme)===String(zP),"`key` or `value` with TreeNode must be the same or you can remove one of them. key: ".concat(eme,", value: ").concat(zP,"."))}$P.valueEntities.set(zP,B_)}});return x_},[Ff,kh])};var TreeNode=function(){return null},_excluded$4=["children","value"];function convertChildrenToData(Ff){return toArray$7(Ff).map(function(kh){if(!React__namespace.isValidElement(kh)||!kh.type)return null;var x_=kh,$_=x_.key,B_=x_.props,$P=B_.children,zP=B_.value,eme=_objectWithoutProperties(B_,_excluded$4),tme=_objectSpread2({key:$_,value:zP},eme),nme=convertChildrenToData($P);return nme.length&&(tme.children=nme),tme}).filter(function(kh){return kh})}function fillLegacyProps(Ff){if(!Ff)return Ff;var kh=_objectSpread2({},Ff);return"props"in kh||Object.defineProperty(kh,"props",{get:function(){return warningOnce(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),kh}}),kh}function fillAdditionalInfo(Ff,kh,x_,$_,B_,$P){var zP=null,eme=null;function tme(){function nme(rme){var ame=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",ome=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return rme.map(function(ime,cme){var ume="".concat(ame,"-").concat(cme),sme=ime[$P.value],fme=x_.includes(sme),lme=nme(ime[$P.children]||[],ume,fme),hme=React__namespace.createElement(TreeNode,ime,lme.map(function(gme){return gme.node}));if(kh===sme&&(zP=hme),fme){var pme={pos:ume,node:hme,children:lme};return ome||eme.push(pme),pme}return null}).filter(function(ime){return ime})}eme||(eme=[],nme($_),eme.sort(function(rme,ame){var ome=rme.node.props.value,ime=ame.node.props.value,cme=x_.indexOf(ome),ume=x_.indexOf(ime);return cme-ume}))}Object.defineProperty(Ff,"triggerNode",{get:function(){return warningOnce(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),tme(),zP}}),Object.defineProperty(Ff,"allCheckedNodes",{get:function(){return warningOnce(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),tme(),B_?eme:eme.map(function(rme){var ame=rme.node;return ame})}})}const useFilterTreeData=function(Ff,kh,x_){var $_=x_.treeNodeFilterProp,B_=x_.filterTreeNode,$P=x_.fieldNames,zP=$P.children;return React__namespace.useMemo(function(){if(!kh||B_===!1)return Ff;var eme;if(typeof B_=="function")eme=B_;else{var tme=kh.toUpperCase();eme=function(ame,ome){var ime=ome[$_];return String(ime).toUpperCase().includes(tme)}}function nme(rme){var ame=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return rme.reduce(function(ome,ime){var cme=ime[zP],ume=ame||eme(kh,fillLegacyProps(ime)),sme=nme(cme||[],ume);return(ume||sme.length)&&ome.push(_objectSpread2(_objectSpread2({},ime),{},_defineProperty({isLeaf:void 0},zP,sme))),ome},[])}return nme(Ff)},[Ff,kh,zP,$_,B_])};function useRefFunc(Ff){var kh=React__namespace.useRef();kh.current=Ff;var x_=React__namespace.useCallback(function(){return kh.current.apply(kh,arguments)},[]);return x_}function parseSimpleTreeData(Ff,kh){var x_=kh.id,$_=kh.pId,B_=kh.rootPId,$P={},zP=[],eme=Ff.map(function(tme){var nme=_objectSpread2({},tme),rme=nme[x_];return $P[rme]=nme,nme.key=nme.key||rme,nme});return eme.forEach(function(tme){var nme=tme[$_],rme=$P[nme];rme&&(rme.children=rme.children||[],rme.children.push(tme)),(nme===B_||!rme&&B_===null)&&zP.push(tme)}),zP}function useTreeData(Ff,kh,x_){return React__namespace.useMemo(function(){return Ff?x_?parseSimpleTreeData(Ff,_objectSpread2({id:"id",pId:"pId",rootPId:null},x_!==!0?x_:{})):Ff:convertChildrenToData(kh)},[kh,x_,Ff])}var LegacySelectContext=React__namespace.createContext(null),TreeSelectContext=React__namespace.createContext(null),HIDDEN_STYLE={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},OptionList=function(kh,x_){var $_=useBaseProps(),B_=$_.prefixCls,$P=$_.multiple,zP=$_.searchValue,eme=$_.toggleOpen,tme=$_.open,nme=$_.notFoundContent,rme=React__namespace.useContext(TreeSelectContext),ame=rme.virtual,ome=rme.listHeight,ime=rme.listItemHeight,cme=rme.listItemScrollOffset,ume=rme.treeData,sme=rme.fieldNames,fme=rme.onSelect,lme=rme.dropdownMatchSelectWidth,hme=rme.treeExpandAction,pme=rme.treeTitleRender,gme=rme.onPopupScroll,yme=React__namespace.useContext(LegacySelectContext),mme=yme.checkable,bme=yme.checkedKeys,Sme=yme.halfCheckedKeys,_me=yme.treeExpandedKeys,Cme=yme.treeDefaultExpandAll,Eme=yme.treeDefaultExpandedKeys,Tme=yme.onTreeExpand,Rme=yme.treeIcon,Pme=yme.showTreeIcon,$me=yme.switcherIcon,Dme=yme.treeLine,Mme=yme.treeNodeFilterProp,Nme=yme.loadData,Ime=yme.treeLoadedKeys,wme=yme.treeMotion,Ome=yme.onTreeLoad,Ame=yme.keyEntities,Fme=React__namespace.useRef(),Bme=useMemo(function(){return ume},[tme,ume],function(P0e,y0e){return y0e[0]&&P0e[1]!==y0e[1]}),kme=React__namespace.useState(null),Lme=_slicedToArray(kme,2),Hme=Lme[0],Wme=Lme[1],zme=Ame[Hme],Vme=React__namespace.useMemo(function(){return mme?{checked:bme,halfChecked:Sme}:null},[mme,bme,Sme]);React__namespace.useEffect(function(){if(tme&&!$P&&bme.length){var P0e;(P0e=Fme.current)===null||P0e===void 0||P0e.scrollTo({key:bme[0]}),Wme(bme[0])}},[tme]);var Xme=String(zP).toLowerCase(),e0e=function(y0e){return Xme?String(y0e[Mme]).toLowerCase().includes(Xme):!1},Ume=React__namespace.useState(Eme),Jme=_slicedToArray(Ume,2),s0e=Jme[0],d0e=Jme[1],Zme=React__namespace.useState(null),Qme=_slicedToArray(Zme,2),a0e=Qme[0],t0e=Qme[1],o0e=React__namespace.useMemo(function(){return _me?_toConsumableArray(_me):zP?a0e:s0e},[s0e,a0e,_me,zP]);React__namespace.useEffect(function(){zP&&t0e(getAllKeys$2(ume,sme))},[zP]);var g0e=function(y0e){d0e(y0e),t0e(y0e),Tme&&Tme(y0e)},u0e=function(y0e){y0e.preventDefault()},h0e=function(y0e,$0e){var C0e=$0e.node;mme&&isCheckDisabled(C0e)||(fme(C0e.key,{selected:!bme.includes(C0e.key)}),$P||eme(!1))};if(React__namespace.useImperativeHandle(x_,function(){var P0e;return{scrollTo:(P0e=Fme.current)===null||P0e===void 0?void 0:P0e.scrollTo,onKeyDown:function($0e){var C0e,z0e=$0e.which;switch(z0e){case KeyCode.UP:case KeyCode.DOWN:case KeyCode.LEFT:case KeyCode.RIGHT:(C0e=Fme.current)===null||C0e===void 0||C0e.onKeyDown($0e);break;case KeyCode.ENTER:{if(zme){var D0e=(zme==null?void 0:zme.node)||{},O0e=D0e.selectable,b0e=D0e.value;O0e!==!1&&h0e(null,{node:{key:Hme},selected:!bme.includes(b0e)})}break}case KeyCode.ESC:eme(!1)}},onKeyUp:function(){}}}),Bme.length===0)return React__namespace.createElement("div",{role:"listbox",className:"".concat(B_,"-empty"),onMouseDown:u0e},nme);var E0e={fieldNames:sme};return Ime&&(E0e.loadedKeys=Ime),o0e&&(E0e.expandedKeys=o0e),React__namespace.createElement("div",{onMouseDown:u0e},zme&&tme&&React__namespace.createElement("span",{style:HIDDEN_STYLE,"aria-live":"assertive"},zme.node.value),React__namespace.createElement(Tree$2,_extends({ref:Fme,focusable:!1,prefixCls:"".concat(B_,"-tree"),treeData:Bme,height:ome,itemHeight:ime,itemScrollOffset:cme,virtual:ame!==!1&&lme!==!1,multiple:$P,icon:Rme,showIcon:Pme,switcherIcon:$me,showLine:Dme,loadData:zP?null:Nme,motion:wme,activeKey:Hme,checkable:mme,checkStrictly:!0,checkedKeys:Vme,selectedKeys:mme?[]:bme,defaultExpandAll:Cme,titleRender:pme},E0e,{onActiveChange:Wme,onSelect:h0e,onCheck:h0e,onExpand:g0e,onLoad:Ome,filterTreeNode:e0e,expandAction:hme,onScroll:gme})))},RefOptionList=React__namespace.forwardRef(OptionList);process.env.NODE_ENV!=="production"&&(RefOptionList.displayName="OptionList");var SHOW_ALL="SHOW_ALL",SHOW_PARENT="SHOW_PARENT",SHOW_CHILD="SHOW_CHILD";function formatStrategyValues(Ff,kh,x_,$_){var B_=new Set(Ff);return kh===SHOW_CHILD?Ff.filter(function($P){var zP=x_[$P];return!(zP&&zP.children&&zP.children.some(function(eme){var tme=eme.node;return B_.has(tme[$_.value])})&&zP.children.every(function(eme){var tme=eme.node;return isCheckDisabled(tme)||B_.has(tme[$_.value])}))}):kh===SHOW_PARENT?Ff.filter(function($P){var zP=x_[$P],eme=zP?zP.parent:null;return!(eme&&!isCheckDisabled(eme.node)&&B_.has(eme.key))}):Ff}function warningProps(Ff){var kh=Ff.searchPlaceholder,x_=Ff.treeCheckStrictly,$_=Ff.treeCheckable,B_=Ff.labelInValue,$P=Ff.value,zP=Ff.multiple;warningOnce(!kh,"`searchPlaceholder` has been removed."),x_&&B_===!1&&warningOnce(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(B_||x_)&&warningOnce(toArray($P).every(function(eme){return eme&&_typeof(eme)==="object"&&"value"in eme}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),x_||zP||$_?warningOnce(!$P||Array.isArray($P),"`value` should be an array when `TreeSelect` is checkable or multiple."):warningOnce(!Array.isArray($P),"`value` should not be array when `TreeSelect` is single mode.")}var _excluded$3=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function isRawValue(Ff){return!Ff||_typeof(Ff)!=="object"}var TreeSelect$2=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.id,$_=Ff.prefixCls,B_=$_===void 0?"rc-tree-select":$_,$P=Ff.value,zP=Ff.defaultValue,eme=Ff.onChange,tme=Ff.onSelect,nme=Ff.onDeselect,rme=Ff.searchValue,ame=Ff.inputValue,ome=Ff.onSearch,ime=Ff.autoClearSearchValue,cme=ime===void 0?!0:ime,ume=Ff.filterTreeNode,sme=Ff.treeNodeFilterProp,fme=sme===void 0?"value":sme,lme=Ff.showCheckedStrategy,hme=Ff.treeNodeLabelProp,pme=Ff.multiple,gme=Ff.treeCheckable,yme=Ff.treeCheckStrictly,mme=Ff.labelInValue,bme=Ff.fieldNames,Sme=Ff.treeDataSimpleMode,_me=Ff.treeData,Cme=Ff.children,Eme=Ff.loadData,Tme=Ff.treeLoadedKeys,Rme=Ff.onTreeLoad,Pme=Ff.treeDefaultExpandAll,$me=Ff.treeExpandedKeys,Dme=Ff.treeDefaultExpandedKeys,Mme=Ff.onTreeExpand,Nme=Ff.treeExpandAction,Ime=Ff.virtual,wme=Ff.listHeight,Ome=wme===void 0?200:wme,Ame=Ff.listItemHeight,Fme=Ame===void 0?20:Ame,Bme=Ff.listItemScrollOffset,kme=Bme===void 0?0:Bme,Lme=Ff.onDropdownVisibleChange,Hme=Ff.dropdownMatchSelectWidth,Wme=Hme===void 0?!0:Hme,zme=Ff.treeLine,Vme=Ff.treeIcon,Xme=Ff.showTreeIcon,e0e=Ff.switcherIcon,Ume=Ff.treeMotion,Jme=Ff.treeTitleRender,s0e=Ff.onPopupScroll,d0e=_objectWithoutProperties(Ff,_excluded$3),Zme=useId$1(x_),Qme=gme&&!yme,a0e=gme||yme,t0e=yme||mme,o0e=a0e||pme,g0e=useMergedState(zP,{value:$P}),u0e=_slicedToArray(g0e,2),h0e=u0e[0],E0e=u0e[1],P0e=React__namespace.useMemo(function(){return gme?lme||SHOW_CHILD:SHOW_ALL},[lme,gme]);process.env.NODE_ENV!=="production"&&warningProps(Ff);var y0e=React__namespace.useMemo(function(){return fillFieldNames(bme)},[JSON.stringify(bme)]),$0e=useMergedState("",{value:rme!==void 0?rme:ame,postState:function(w0e){return w0e||""}}),C0e=_slicedToArray($0e,2),z0e=C0e[0],D0e=C0e[1],O0e=function(w0e){D0e(w0e),ome==null||ome(w0e)},b0e=useTreeData(_me,Cme,Sme),k0e=useDataEntities(b0e,y0e),T0e=k0e.keyEntities,L0e=k0e.valueEntities,Y0e=React__namespace.useCallback(function(m0e){var w0e=[],j0e=[];return m0e.forEach(function(_0e){L0e.has(_0e)?j0e.push(_0e):w0e.push(_0e)}),{missingRawValues:w0e,existRawValues:j0e}},[L0e]),mye=useFilterTreeData(b0e,z0e,{fieldNames:y0e,treeNodeFilterProp:fme,filterTreeNode:ume}),Q0e=React__namespace.useCallback(function(m0e){if(m0e){if(hme)return m0e[hme];for(var w0e=y0e._title,j0e=0;j0e<w0e.length;j0e+=1){var _0e=m0e[w0e[j0e]];if(_0e!==void 0)return _0e}}},[y0e,hme]),U0e=React__namespace.useCallback(function(m0e){var w0e=toArray(m0e);return w0e.map(function(j0e){return isRawValue(j0e)?{value:j0e}:j0e})},[]),q0e=React__namespace.useCallback(function(m0e){var w0e=U0e(m0e);return w0e.map(function(j0e){var _0e=j0e.label,Yme=j0e.value,l0e=j0e.halfChecked,S0e,I0e=L0e.get(Yme);if(I0e){var Z0e;_0e=(Z0e=_0e)!==null&&Z0e!==void 0?Z0e:Q0e(I0e.node),S0e=I0e.node.disabled}else if(_0e===void 0){var lye=U0e(h0e).find(function(Tye){return Tye.value===Yme});_0e=lye.label}return{label:_0e,value:Yme,halfChecked:l0e,disabled:S0e}})},[L0e,Q0e,U0e,h0e]),V0e=React__namespace.useMemo(function(){return U0e(h0e)},[U0e,h0e]),X0e=React__namespace.useMemo(function(){var m0e=[],w0e=[];return V0e.forEach(function(j0e){j0e.halfChecked?w0e.push(j0e):m0e.push(j0e)}),[m0e,w0e]},[V0e]),M0e=_slicedToArray(X0e,2),J0e=M0e[0],aye=M0e[1],F0e=React__namespace.useMemo(function(){return J0e.map(function(m0e){return m0e.value})},[J0e]),cye=useCheckedKeys(J0e,aye,Qme,T0e),yye=_slicedToArray(cye,2),W0e=yye[0],sye=yye[1],G0e=React__namespace.useMemo(function(){var m0e=formatStrategyValues(W0e,P0e,T0e,y0e),w0e=m0e.map(function(l0e){var S0e,I0e;return(S0e=(I0e=T0e[l0e])===null||I0e===void 0||(I0e=I0e.node)===null||I0e===void 0?void 0:I0e[y0e.value])!==null&&S0e!==void 0?S0e:l0e}),j0e=w0e.map(function(l0e){var S0e=J0e.find(function(Z0e){return Z0e.value===l0e}),I0e;return mme&&S0e.label!==void 0?I0e=S0e.label:!mme&&Jme&&(I0e=Jme(S0e)),{value:l0e,label:I0e}}),_0e=q0e(j0e),Yme=_0e[0];return!o0e&&Yme&&isNil(Yme.value)&&isNil(Yme.label)?[]:_0e.map(function(l0e){var S0e;return _objectSpread2(_objectSpread2({},l0e),{},{label:(S0e=l0e.label)!==null&&S0e!==void 0?S0e:l0e.value})})},[y0e,o0e,W0e,J0e,q0e,P0e,T0e]),hye=useCache(G0e),wye=_slicedToArray(hye,1),Eye=wye[0],Vye=useRefFunc(function(m0e,w0e,j0e){var _0e=q0e(m0e);if(E0e(_0e),cme&&D0e(""),eme){var Yme=m0e;if(Qme){var l0e=formatStrategyValues(m0e,P0e,T0e,y0e);Yme=l0e.map(function(Uye){var Qye=L0e.get(Uye);return Qye?Qye.node[y0e.value]:Uye})}var S0e=w0e||{triggerValue:void 0,selected:void 0},I0e=S0e.triggerValue,Z0e=S0e.selected,lye=Yme;if(yme){var Tye=aye.filter(function(Uye){return!Yme.includes(Uye.value)});lye=[].concat(_toConsumableArray(lye),_toConsumableArray(Tye))}var xye=q0e(lye),Dye={preValue:J0e,triggerValue:I0e},Lye=!0;(yme||j0e==="selection"&&!Z0e)&&(Lye=!1),fillAdditionalInfo(Dye,I0e,m0e,b0e,Lye,y0e),a0e?Dye.checked=Z0e:Dye.selected=Z0e;var l1e=t0e?xye:xye.map(function(Uye){return Uye.value});eme(o0e?l1e:l1e[0],t0e?null:xye.map(function(Uye){return Uye.label}),Dye)}}),r0e=React__namespace.useCallback(function(m0e,w0e){var j0e,_0e=w0e.selected,Yme=w0e.source,l0e=T0e[m0e],S0e=l0e==null?void 0:l0e.node,I0e=(j0e=S0e==null?void 0:S0e[y0e.value])!==null&&j0e!==void 0?j0e:m0e;if(!o0e)Vye([I0e],{selected:!0,triggerValue:I0e},"option");else{var Z0e=_0e?[].concat(_toConsumableArray(F0e),[I0e]):W0e.filter(function(Qye){return Qye!==I0e});if(Qme){var lye=Y0e(Z0e),Tye=lye.missingRawValues,xye=lye.existRawValues,Dye=xye.map(function(Qye){return L0e.get(Qye).key}),Lye;if(_0e){var l1e=conductCheck(Dye,!0,T0e);Lye=l1e.checkedKeys}else{var Uye=conductCheck(Dye,{checked:!1,halfCheckedKeys:sye},T0e);Lye=Uye.checkedKeys}Z0e=[].concat(_toConsumableArray(Tye),_toConsumableArray(Lye.map(function(Qye){return T0e[Qye].node[y0e.value]})))}Vye(Z0e,{selected:_0e,triggerValue:I0e},Yme||"option")}_0e||!o0e?tme==null||tme(I0e,fillLegacyProps(S0e)):nme==null||nme(I0e,fillLegacyProps(S0e))},[Y0e,L0e,T0e,y0e,o0e,F0e,Vye,Qme,tme,nme,W0e,sye]),R0e=React__namespace.useCallback(function(m0e){if(Lme){var w0e={};Object.defineProperty(w0e,"documentClickClose",{get:function(){return warningOnce(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Lme(m0e,w0e)}},[Lme]),A0e=useRefFunc(function(m0e,w0e){var j0e=m0e.map(function(_0e){return _0e.value});if(w0e.type==="clear"){Vye(j0e,{},"selection");return}w0e.values.length&&r0e(w0e.values[0].value,{selected:!1,source:"selection"})}),n0e=React__namespace.useMemo(function(){return{virtual:Ime,dropdownMatchSelectWidth:Wme,listHeight:Ome,listItemHeight:Fme,listItemScrollOffset:kme,treeData:mye,fieldNames:y0e,onSelect:r0e,treeExpandAction:Nme,treeTitleRender:Jme,onPopupScroll:s0e}},[Ime,Wme,Ome,Fme,kme,mye,y0e,r0e,Nme,Jme,s0e]),f0e=React__namespace.useMemo(function(){return{checkable:a0e,loadData:Eme,treeLoadedKeys:Tme,onTreeLoad:Rme,checkedKeys:W0e,halfCheckedKeys:sye,treeDefaultExpandAll:Pme,treeExpandedKeys:$me,treeDefaultExpandedKeys:Dme,onTreeExpand:Mme,treeIcon:Vme,treeMotion:Ume,showTreeIcon:Xme,switcherIcon:e0e,treeLine:zme,treeNodeFilterProp:fme,keyEntities:T0e}},[a0e,Eme,Tme,Rme,W0e,sye,Pme,$me,Dme,Mme,Vme,Ume,Xme,e0e,zme,fme,T0e]);return React__namespace.createElement(TreeSelectContext.Provider,{value:n0e},React__namespace.createElement(LegacySelectContext.Provider,{value:f0e},React__namespace.createElement(BaseSelect,_extends({ref:kh},d0e,{id:Zme,prefixCls:B_,mode:o0e?"multiple":void 0,displayValues:Eye,onDisplayValuesChange:A0e,searchValue:z0e,onSearch:O0e,OptionList:RefOptionList,emptyOptions:!b0e.length,onDropdownVisibleChange:R0e,dropdownMatchSelectWidth:Wme}))))});process.env.NODE_ENV!=="production"&&(TreeSelect$2.displayName="TreeSelect");var GenericTreeSelect=TreeSelect$2;GenericTreeSelect.TreeNode=TreeNode;GenericTreeSelect.SHOW_ALL=SHOW_ALL;GenericTreeSelect.SHOW_PARENT=SHOW_PARENT;GenericTreeSelect.SHOW_CHILD=SHOW_CHILD;const genBaseStyle$1=Ff=>{const{componentCls:kh,treePrefixCls:x_,colorBgElevated:$_}=Ff,B_=`.${x_}`;return[{[`${kh}-dropdown`]:[{padding:`${unit$1(Ff.paddingXS)} ${unit$1(Ff.calc(Ff.paddingXS).div(2).equal())}`},genTreeStyle(x_,merge(Ff,{colorBgContainer:$_})),{[B_]:{borderRadius:0,[`${B_}-list-holder-inner`]:{alignItems:"stretch",[`${B_}-treenode`]:{[`${B_}-node-content-wrapper`]:{flex:"auto"}}}}},getStyle(`${x_}-checkbox`,Ff),{"&-rtl":{direction:"rtl",[`${B_}-switcher${B_}-switcher_close`]:{[`${B_}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function useTreeSelectStyle(Ff,kh,x_){return genStyleHooks("TreeSelect",$_=>{const B_=merge($_,{treePrefixCls:kh});return[genBaseStyle$1(B_)]},initComponentToken)(Ff,x_)}var __rest$1=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const InternalTreeSelect=(Ff,kh)=>{var x_,{prefixCls:$_,size:B_,disabled:$P,bordered:zP=!0,className:eme,rootClassName:tme,treeCheckable:nme,multiple:rme,listHeight:ame=256,listItemHeight:ome=26,placement:ime,notFoundContent:cme,switcherIcon:ume,treeLine:sme,getPopupContainer:fme,popupClassName:lme,dropdownClassName:hme,treeIcon:pme=!1,transitionName:gme,choiceTransitionName:yme="",status:mme,treeExpandAction:bme,builtinPlacements:Sme,dropdownMatchSelectWidth:_me,popupMatchSelectWidth:Cme,allowClear:Eme,variant:Tme,dropdownStyle:Rme,tagRender:Pme}=Ff,$me=__rest$1(Ff,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender"]);const{getPopupContainer:Dme,getPrefixCls:Mme,renderEmpty:Nme,direction:Ime,virtual:wme,popupMatchSelectWidth:Ome,popupOverflow:Ame}=React__namespace.useContext(ConfigContext);if(process.env.NODE_ENV!=="production"){const U0e=devUseWarning("TreeSelect");process.env.NODE_ENV!=="production"&&U0e(rme!==!1||!nme,"usage","`multiple` will always be `true` when `treeCheckable` is true"),U0e.deprecated(!hme,"dropdownClassName","popupClassName"),U0e.deprecated(_me===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),process.env.NODE_ENV!=="production"&&U0e(!("showArrow"in $me),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),U0e.deprecated(!("bordered"in $me),"bordered","variant")}const Fme=Mme(),Bme=Mme("select",$_),kme=Mme("select-tree",$_),Lme=Mme("tree-select",$_),{compactSize:Hme,compactItemClassnames:Wme}=useCompactItemContext(Bme,Ime),zme=useCSSVarCls(Bme),Vme=useCSSVarCls(Lme),[Xme,e0e,Ume]=useSelectStyle(Bme,zme),[Jme]=useTreeSelectStyle(Lme,kme,Vme),[s0e,d0e]=useVariant(Tme,zP),Zme=classNames(lme||hme,`${Lme}-dropdown`,{[`${Lme}-dropdown-rtl`]:Ime==="rtl"},tme,Ume,zme,Vme,e0e),Qme=!!(nme||rme),a0e=useShowArrow($me.suffixIcon,$me.showArrow),t0e=(x_=Cme??_me)!==null&&x_!==void 0?x_:Ome,{status:o0e,hasFeedback:g0e,isFormItemInput:u0e,feedbackIcon:h0e}=React__namespace.useContext(FormItemInputContext),E0e=getMergedStatus(o0e,mme),{suffixIcon:P0e,removeIcon:y0e,clearIcon:$0e}=useIcons$1(Object.assign(Object.assign({},$me),{multiple:Qme,showSuffixIcon:a0e,hasFeedback:g0e,feedbackIcon:h0e,prefixCls:Bme,componentName:"TreeSelect"})),C0e=Eme===!0?{clearIcon:$0e}:Eme;let z0e;cme!==void 0?z0e=cme:z0e=(Nme==null?void 0:Nme("Select"))||React__namespace.createElement(DefaultRenderEmpty,{componentName:"Select"});const D0e=omit($me,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),O0e=React__namespace.useMemo(()=>ime!==void 0?ime:Ime==="rtl"?"bottomRight":"bottomLeft",[ime,Ime]),b0e=useSize(U0e=>{var q0e;return(q0e=B_??Hme)!==null&&q0e!==void 0?q0e:U0e}),k0e=React__namespace.useContext(DisabledContext),T0e=$P??k0e,L0e=classNames(!$_&&Lme,{[`${Bme}-lg`]:b0e==="large",[`${Bme}-sm`]:b0e==="small",[`${Bme}-rtl`]:Ime==="rtl",[`${Bme}-${s0e}`]:d0e,[`${Bme}-in-form-item`]:u0e},getStatusClassNames(Bme,E0e,g0e),Wme,eme,tme,Ume,zme,Vme,e0e),Y0e=U0e=>React__namespace.createElement(SwitcherIconCom,{prefixCls:kme,switcherIcon:ume,treeNodeProps:U0e,showLine:sme}),[mye]=useZIndex("SelectLike",Rme==null?void 0:Rme.zIndex),Q0e=React__namespace.createElement(GenericTreeSelect,Object.assign({virtual:wme,disabled:T0e},D0e,{dropdownMatchSelectWidth:t0e,builtinPlacements:mergedBuiltinPlacements(Sme,Ame),ref:kh,prefixCls:Bme,className:L0e,listHeight:ame,listItemHeight:ome,treeCheckable:nme&&React__namespace.createElement("span",{className:`${Bme}-tree-checkbox-inner`}),treeLine:!!sme,suffixIcon:P0e,multiple:Qme,placement:O0e,removeIcon:y0e,allowClear:C0e,switcherIcon:Y0e,showTreeIcon:pme,notFoundContent:z0e,getPopupContainer:fme||Dme,treeMotion:null,dropdownClassName:Zme,dropdownStyle:Object.assign(Object.assign({},Rme),{zIndex:mye}),choiceTransitionName:getTransitionName(Fme,"",yme),transitionName:getTransitionName(Fme,"slide-up",gme),treeExpandAction:bme,tagRender:Qme?Pme:void 0}));return Xme(Jme(Q0e))},TreeSelectRef=React__namespace.forwardRef(InternalTreeSelect),TreeSelect$1=TreeSelectRef,PurePanel=genPurePanel(TreeSelect$1);TreeSelect$1.TreeNode=TreeNode;TreeSelect$1.SHOW_ALL=SHOW_ALL;TreeSelect$1.SHOW_PARENT=SHOW_PARENT;TreeSelect$1.SHOW_CHILD=SHOW_CHILD;TreeSelect$1._InternalPanelDoNotUseOrYouWillBeFired=PurePanel;process.env.NODE_ENV!=="production"&&(TreeSelect$1.displayName="TreeSelect");const attrAccept=function(Ff,kh){if(Ff&&kh){var x_=Array.isArray(kh)?kh:kh.split(","),$_=Ff.name||"",B_=Ff.type||"",$P=B_.replace(/\/.*$/,"");return x_.some(function(zP){var eme=zP.trim();if(/^\*(\/\*)?$/.test(zP))return!0;if(eme.charAt(0)==="."){var tme=$_.toLowerCase(),nme=eme.toLowerCase(),rme=[nme];return(nme===".jpg"||nme===".jpeg")&&(rme=[".jpg",".jpeg"]),rme.some(function(ame){return tme.endsWith(ame)})}return/\/\*$/.test(eme)?$P===eme.replace(/\/.*$/,""):B_===eme?!0:/^\w+$/.test(eme)?(warningOnce(!1,"Upload takes an invalidate 'accept' type '".concat(eme,"'.Skip for check.")),!0):!1})}return!0};function getError(Ff,kh){var x_="cannot ".concat(Ff.method," ").concat(Ff.action," ").concat(kh.status,"'"),$_=new Error(x_);return $_.status=kh.status,$_.method=Ff.method,$_.url=Ff.action,$_}function getBody(Ff){var kh=Ff.responseText||Ff.response;if(!kh)return kh;try{return JSON.parse(kh)}catch{return kh}}function upload(Ff){var kh=new XMLHttpRequest;Ff.onProgress&&kh.upload&&(kh.upload.onprogress=function($P){$P.total>0&&($P.percent=$P.loaded/$P.total*100),Ff.onProgress($P)});var x_=new FormData;Ff.data&&Object.keys(Ff.data).forEach(function(B_){var $P=Ff.data[B_];if(Array.isArray($P)){$P.forEach(function(zP){x_.append("".concat(B_,"[]"),zP)});return}x_.append(B_,$P)}),Ff.file instanceof Blob?x_.append(Ff.filename,Ff.file,Ff.file.name):x_.append(Ff.filename,Ff.file),kh.onerror=function($P){Ff.onError($P)},kh.onload=function(){return kh.status<200||kh.status>=300?Ff.onError(getError(Ff,kh),getBody(kh)):Ff.onSuccess(getBody(kh),kh)},kh.open(Ff.method,Ff.action,!0),Ff.withCredentials&&"withCredentials"in kh&&(kh.withCredentials=!0);var $_=Ff.headers||{};return $_["X-Requested-With"]!==null&&kh.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys($_).forEach(function(B_){$_[B_]!==null&&kh.setRequestHeader(B_,$_[B_])}),kh.send(x_),{abort:function(){kh.abort()}}}function loopFiles(Ff,kh){var x_=Ff.createReader(),$_=[];function B_(){x_.readEntries(function($P){var zP=Array.prototype.slice.apply($P);$_=$_.concat(zP);var eme=!zP.length;eme?kh($_):B_()})}B_()}var traverseFileTree=function(kh,x_,$_){var B_=function $P(zP,eme){zP&&(zP.path=eme||"",zP.isFile?zP.file(function(tme){$_(tme)&&(zP.fullPath&&!tme.webkitRelativePath&&(Object.defineProperties(tme,{webkitRelativePath:{writable:!0}}),tme.webkitRelativePath=zP.fullPath.replace(/^\//,""),Object.defineProperties(tme,{webkitRelativePath:{writable:!1}})),x_([tme]))}):zP.isDirectory&&loopFiles(zP,function(tme){tme.forEach(function(nme){$P(nme,"".concat(eme).concat(zP.name,"/"))})}))};kh.forEach(function($P){B_($P.webkitGetAsEntry())})},now=+new Date,index=0;function uid(){return"rc-upload-".concat(now,"-").concat(++index)}var _excluded$2=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],AjaxUploader=function(Ff){_inherits(x_,Ff);var kh=_createSuper(x_);function x_(){var $_;_classCallCheck(this,x_);for(var B_=arguments.length,$P=new Array(B_),zP=0;zP<B_;zP++)$P[zP]=arguments[zP];return $_=kh.call.apply(kh,[this].concat($P)),_defineProperty(_assertThisInitialized($_),"state",{uid:uid()}),_defineProperty(_assertThisInitialized($_),"reqs",{}),_defineProperty(_assertThisInitialized($_),"fileInput",void 0),_defineProperty(_assertThisInitialized($_),"_isMounted",void 0),_defineProperty(_assertThisInitialized($_),"onChange",function(eme){var tme=$_.props,nme=tme.accept,rme=tme.directory,ame=eme.target.files,ome=_toConsumableArray(ame).filter(function(ime){return!rme||attrAccept(ime,nme)});$_.uploadFiles(ome),$_.reset()}),_defineProperty(_assertThisInitialized($_),"onClick",function(eme){var tme=$_.fileInput;if(tme){var nme=eme.target,rme=$_.props.onClick;if(nme&&nme.tagName==="BUTTON"){var ame=tme.parentNode;ame.focus(),nme.blur()}tme.click(),rme&&rme(eme)}}),_defineProperty(_assertThisInitialized($_),"onKeyDown",function(eme){eme.key==="Enter"&&$_.onClick(eme)}),_defineProperty(_assertThisInitialized($_),"onFileDrop",function(eme){var tme=$_.props.multiple;if(eme.preventDefault(),eme.type!=="dragover")if($_.props.directory)traverseFileTree(Array.prototype.slice.call(eme.dataTransfer.items),$_.uploadFiles,function(rme){return attrAccept(rme,$_.props.accept)});else{var nme=_toConsumableArray(eme.dataTransfer.files).filter(function(rme){return attrAccept(rme,$_.props.accept)});tme===!1&&(nme=nme.slice(0,1)),$_.uploadFiles(nme)}}),_defineProperty(_assertThisInitialized($_),"uploadFiles",function(eme){var tme=_toConsumableArray(eme),nme=tme.map(function(rme){return rme.uid=uid(),$_.processFile(rme,tme)});Promise.all(nme).then(function(rme){var ame=$_.props.onBatchStart;ame==null||ame(rme.map(function(ome){var ime=ome.origin,cme=ome.parsedFile;return{file:ime,parsedFile:cme}})),rme.filter(function(ome){return ome.parsedFile!==null}).forEach(function(ome){$_.post(ome)})})}),_defineProperty(_assertThisInitialized($_),"processFile",function(){var eme=_asyncToGenerator(_regeneratorRuntime().mark(function tme(nme,rme){var ame,ome,ime,cme,ume,sme,fme,lme,hme;return _regeneratorRuntime().wrap(function(gme){for(;;)switch(gme.prev=gme.next){case 0:if(ame=$_.props.beforeUpload,ome=nme,!ame){gme.next=14;break}return gme.prev=3,gme.next=6,ame(nme,rme);case 6:ome=gme.sent,gme.next=12;break;case 9:gme.prev=9,gme.t0=gme.catch(3),ome=!1;case 12:if(ome!==!1){gme.next=14;break}return gme.abrupt("return",{origin:nme,parsedFile:null,action:null,data:null});case 14:if(ime=$_.props.action,typeof ime!="function"){gme.next=21;break}return gme.next=18,ime(nme);case 18:cme=gme.sent,gme.next=22;break;case 21:cme=ime;case 22:if(ume=$_.props.data,typeof ume!="function"){gme.next=29;break}return gme.next=26,ume(nme);case 26:sme=gme.sent,gme.next=30;break;case 29:sme=ume;case 30:return fme=(_typeof(ome)==="object"||typeof ome=="string")&&ome?ome:nme,fme instanceof File?lme=fme:lme=new File([fme],nme.name,{type:nme.type}),hme=lme,hme.uid=nme.uid,gme.abrupt("return",{origin:nme,data:sme,parsedFile:hme,action:cme});case 35:case"end":return gme.stop()}},tme,null,[[3,9]])}));return function(tme,nme){return eme.apply(this,arguments)}}()),_defineProperty(_assertThisInitialized($_),"saveFileInput",function(eme){$_.fileInput=eme}),$_}return _createClass(x_,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(B_){var $P=this,zP=B_.data,eme=B_.origin,tme=B_.action,nme=B_.parsedFile;if(this._isMounted){var rme=this.props,ame=rme.onStart,ome=rme.customRequest,ime=rme.name,cme=rme.headers,ume=rme.withCredentials,sme=rme.method,fme=eme.uid,lme=ome||upload,hme={action:tme,filename:ime,data:zP,file:nme,headers:cme,withCredentials:ume,method:sme||"post",onProgress:function(gme){var yme=$P.props.onProgress;yme==null||yme(gme,nme)},onSuccess:function(gme,yme){var mme=$P.props.onSuccess;mme==null||mme(gme,nme,yme),delete $P.reqs[fme]},onError:function(gme,yme){var mme=$P.props.onError;mme==null||mme(gme,yme,nme),delete $P.reqs[fme]}};ame(eme),this.reqs[fme]=lme(hme)}}},{key:"reset",value:function(){this.setState({uid:uid()})}},{key:"abort",value:function(B_){var $P=this.reqs;if(B_){var zP=B_.uid?B_.uid:B_;$P[zP]&&$P[zP].abort&&$P[zP].abort(),delete $P[zP]}else Object.keys($P).forEach(function(eme){$P[eme]&&$P[eme].abort&&$P[eme].abort(),delete $P[eme]})}},{key:"render",value:function(){var B_,$P=this.props,zP=$P.component,eme=$P.prefixCls,tme=$P.className,nme=$P.classNames,rme=nme===void 0?{}:nme,ame=$P.disabled,ome=$P.id,ime=$P.style,cme=$P.styles,ume=cme===void 0?{}:cme,sme=$P.multiple,fme=$P.accept,lme=$P.capture,hme=$P.children,pme=$P.directory,gme=$P.openFileDialogOnClick,yme=$P.onMouseEnter,mme=$P.onMouseLeave,bme=$P.hasControlInside,Sme=_objectWithoutProperties($P,_excluded$2),_me=classNames((B_={},_defineProperty(B_,eme,!0),_defineProperty(B_,"".concat(eme,"-disabled"),ame),_defineProperty(B_,tme,tme),B_)),Cme=pme?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Eme=ame?{}:{onClick:gme?this.onClick:function(){},onKeyDown:gme?this.onKeyDown:function(){},onMouseEnter:yme,onMouseLeave:mme,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:bme?void 0:"0"};return React.createElement(zP,_extends({},Eme,{className:_me,role:bme?void 0:"button",style:ime}),React.createElement("input",_extends({},pickAttrs(Sme,{aria:!0,data:!0}),{id:ome,disabled:ame,type:"file",ref:this.saveFileInput,onClick:function(Rme){return Rme.stopPropagation()},key:this.state.uid,style:_objectSpread2({display:"none"},ume.input),className:rme.input,accept:fme},Cme,{multiple:sme,onChange:this.onChange},lme!=null?{capture:lme}:{})),hme)}}]),x_}(React.Component);function empty(){}var Upload$2=function(Ff){_inherits(x_,Ff);var kh=_createSuper(x_);function x_(){var $_;_classCallCheck(this,x_);for(var B_=arguments.length,$P=new Array(B_),zP=0;zP<B_;zP++)$P[zP]=arguments[zP];return $_=kh.call.apply(kh,[this].concat($P)),_defineProperty(_assertThisInitialized($_),"uploader",void 0),_defineProperty(_assertThisInitialized($_),"saveUploader",function(eme){$_.uploader=eme}),$_}return _createClass(x_,[{key:"abort",value:function(B_){this.uploader.abort(B_)}},{key:"render",value:function(){return React.createElement(AjaxUploader,_extends({},this.props,{ref:this.saveUploader}))}}]),x_}(React.Component);_defineProperty(Upload$2,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:empty,onError:empty,onSuccess:empty,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const genDraggerStyle=Ff=>{const{componentCls:kh,iconCls:x_}=Ff;return{[`${kh}-wrapper`]:{[`${kh}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Ff.colorFillAlter,border:`${unit$1(Ff.lineWidth)} dashed ${Ff.colorBorder}`,borderRadius:Ff.borderRadiusLG,cursor:"pointer",transition:`border-color ${Ff.motionDurationSlow}`,[kh]:{padding:Ff.padding},[`${kh}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:Ff.borderRadiusLG,"&:focus-visible":{outline:`${unit$1(Ff.lineWidthFocus)} solid ${Ff.colorPrimaryBorder}`}},[`${kh}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
297
297
  &:not(${kh}-disabled):hover,
298
298
  &-hover:not(${kh}-disabled)
299
299
  `]:{borderColor:Ff.colorPrimaryHover},[`p${kh}-drag-icon`]:{marginBottom:Ff.margin,[x_]:{color:Ff.colorPrimary,fontSize:Ff.uploadThumbnailSize}},[`p${kh}-text`]:{margin:`0 0 ${unit$1(Ff.marginXXS)}`,color:Ff.colorTextHeading,fontSize:Ff.fontSizeLG},[`p${kh}-hint`]:{color:Ff.colorTextDescription,fontSize:Ff.fontSize},[`&${kh}-disabled`]:{[`p${kh}-drag-icon ${x_},
@@ -313,7 +313,33 @@ html body {
313
313
  ${x_}-eye,
314
314
  ${x_}-download,
315
315
  ${x_}-delete
316
- `]:{zIndex:10,width:$_,margin:`0 ${unit$1(Ff.marginXXS)}`,fontSize:$_,cursor:"pointer",transition:`all ${Ff.motionDurationSlow}`,color:B_,"&:hover":{color:B_},svg:{verticalAlign:"baseline"}}},[`${eme}-thumbnail, ${eme}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${eme}-name`]:{display:"none",textAlign:"center"},[`${eme}-file + ${eme}-name`]:{position:"absolute",bottom:Ff.margin,display:"block",width:`calc(100% - ${unit$1($P(Ff.paddingXS).mul(2).equal())})`},[`${eme}-uploading`]:{[`&${eme}`]:{backgroundColor:Ff.colorFillAlter},[`&::before, ${x_}-eye, ${x_}-download, ${x_}-delete`]:{display:"none"}},[`${eme}-progress`]:{bottom:Ff.marginXL,width:`calc(100% - ${unit$1($P(Ff.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${kh}-wrapper${kh}-picture-circle-wrapper`]:{[`${kh}${kh}-select`]:{borderRadius:"50%"}}}},genRtlStyle=Ff=>{const{componentCls:kh}=Ff;return{[`${kh}-rtl`]:{direction:"rtl"}}},genBaseStyle=Ff=>{const{componentCls:kh,colorTextDisabled:x_}=Ff;return{[`${kh}-wrapper`]:Object.assign(Object.assign({},resetComponent(Ff)),{[kh]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${kh}-select`]:{display:"inline-block"},[`${kh}-disabled`]:{color:x_,cursor:"not-allowed"}})}},prepareComponentToken=Ff=>({actionsColor:Ff.colorTextDescription}),useStyle=genStyleHooks("Upload",Ff=>{const{fontSizeHeading3:kh,fontHeight:x_,lineWidth:$_,controlHeightLG:B_,calc:$P}=Ff,zP=merge(Ff,{uploadThumbnailSize:$P(kh).mul(2).equal(),uploadProgressOffset:$P($P(x_).div(2)).add($_).equal(),uploadPicCardSize:$P(B_).mul(2.55).equal()});return[genBaseStyle(zP),genDraggerStyle(zP),genPictureStyle(zP),genPictureCardStyle(zP),genListStyle(zP),genMotionStyle(zP),genRtlStyle(zP),genCollapseMotion(zP)]},prepareComponentToken);var FileTwoTone$1={icon:function(kh,x_){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:x_}},{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:kh}}]}},name:"file",theme:"twotone"},FileTwoTone=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:FileTwoTone$1}))},RefIcon$7=React__namespace.forwardRef(FileTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$7.displayName="FileTwoTone");var PaperClipOutlined$1={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"},PaperClipOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:PaperClipOutlined$1}))},RefIcon$6=React__namespace.forwardRef(PaperClipOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$6.displayName="PaperClipOutlined");var PictureTwoTone$1={icon:function(kh,x_){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:kh}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:x_}},{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:x_}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:x_}},{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:kh}}]}},name:"picture",theme:"twotone"},PictureTwoTone=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:PictureTwoTone$1}))},RefIcon$5=React__namespace.forwardRef(PictureTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$5.displayName="PictureTwoTone");function file2Obj(Ff){return Object.assign(Object.assign({},Ff),{lastModified:Ff.lastModified,lastModifiedDate:Ff.lastModifiedDate,name:Ff.name,size:Ff.size,type:Ff.type,uid:Ff.uid,percent:0,originFileObj:Ff})}function updateFileList(Ff,kh){const x_=_toConsumableArray(kh),$_=x_.findIndex(B_=>{let{uid:$P}=B_;return $P===Ff.uid});return $_===-1?x_.push(Ff):x_[$_]=Ff,x_}function getFileItem(Ff,kh){const x_=Ff.uid!==void 0?"uid":"name";return kh.filter($_=>$_[x_]===Ff[x_])[0]}function removeFileItem(Ff,kh){const x_=Ff.uid!==void 0?"uid":"name",$_=kh.filter(B_=>B_[x_]!==Ff[x_]);return $_.length===kh.length?null:$_}const extname=function(){const kh=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),$_=kh[kh.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec($_)||[""])[0]},isImageFileType=Ff=>Ff.indexOf("image/")===0,isImageUrl=Ff=>{if(Ff.type&&!Ff.thumbUrl)return isImageFileType(Ff.type);const kh=Ff.thumbUrl||Ff.url||"",x_=extname(kh);return/^data:image\//.test(kh)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(x_)?!0:!(/^data:/.test(kh)||x_)},MEASURE_SIZE=200;function previewImage(Ff){return new Promise(kh=>{if(!Ff.type||!isImageFileType(Ff.type)){kh("");return}const x_=document.createElement("canvas");x_.width=MEASURE_SIZE,x_.height=MEASURE_SIZE,x_.style.cssText=`position: fixed; left: 0; top: 0; width: ${MEASURE_SIZE}px; height: ${MEASURE_SIZE}px; z-index: 9999; display: none;`,document.body.appendChild(x_);const $_=x_.getContext("2d"),B_=new Image;if(B_.onload=()=>{const{width:$P,height:zP}=B_;let eme=MEASURE_SIZE,tme=MEASURE_SIZE,nme=0,rme=0;$P>zP?(tme=zP*(MEASURE_SIZE/$P),rme=-(tme-eme)/2):(eme=$P*(MEASURE_SIZE/zP),nme=-(eme-tme)/2),$_.drawImage(B_,nme,rme,eme,tme);const ame=x_.toDataURL();document.body.removeChild(x_),window.URL.revokeObjectURL(B_.src),kh(ame)},B_.crossOrigin="anonymous",Ff.type.startsWith("image/svg+xml")){const $P=new FileReader;$P.onload=()=>{$P.result&&typeof $P.result=="string"&&(B_.src=$P.result)},$P.readAsDataURL(Ff)}else if(Ff.type.startsWith("image/gif")){const $P=new FileReader;$P.onload=()=>{$P.result&&kh($P.result)},$P.readAsDataURL(Ff)}else B_.src=window.URL.createObjectURL(Ff)})}var DownloadOutlined$1={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"},DownloadOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:DownloadOutlined$1}))},RefIcon$4=React__namespace.forwardRef(DownloadOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$4.displayName="DownloadOutlined");const ListItem=React__namespace.forwardRef((Ff,kh)=>{let{prefixCls:x_,className:$_,style:B_,locale:$P,listType:zP,file:eme,items:tme,progress:nme,iconRender:rme,actionIconRender:ame,itemRender:ome,isImgUrl:ime,showPreviewIcon:cme,showRemoveIcon:ume,showDownloadIcon:sme,previewIcon:fme,removeIcon:lme,downloadIcon:hme,onPreview:pme,onDownload:gme,onClose:yme}=Ff;var mme,bme;const{status:Sme}=eme,[_me,Cme]=React__namespace.useState(Sme);React__namespace.useEffect(()=>{Sme!=="removed"&&Cme(Sme)},[Sme]);const[Eme,Tme]=React__namespace.useState(!1);React__namespace.useEffect(()=>{const zme=setTimeout(()=>{Tme(!0)},300);return()=>{clearTimeout(zme)}},[]);const Rme=rme(eme);let Pme=React__namespace.createElement("div",{className:`${x_}-icon`},Rme);if(zP==="picture"||zP==="picture-card"||zP==="picture-circle")if(_me==="uploading"||!eme.thumbUrl&&!eme.url){const zme=classNames(`${x_}-list-item-thumbnail`,{[`${x_}-list-item-file`]:_me!=="uploading"});Pme=React__namespace.createElement("div",{className:zme},Rme)}else{const zme=ime!=null&&ime(eme)?React__namespace.createElement("img",{src:eme.thumbUrl||eme.url,alt:eme.name,className:`${x_}-list-item-image`,crossOrigin:eme.crossOrigin}):Rme,Vme=classNames(`${x_}-list-item-thumbnail`,{[`${x_}-list-item-file`]:ime&&!ime(eme)});Pme=React__namespace.createElement("a",{className:Vme,onClick:Xme=>pme(eme,Xme),href:eme.url||eme.thumbUrl,target:"_blank",rel:"noopener noreferrer"},zme)}const $me=classNames(`${x_}-list-item`,`${x_}-list-item-${_me}`),Dme=typeof eme.linkProps=="string"?JSON.parse(eme.linkProps):eme.linkProps,Mme=ume?ame((typeof lme=="function"?lme(eme):lme)||React__namespace.createElement(RefIcon$8,null),()=>yme(eme),x_,$P.removeFile,!0):null,Nme=sme&&_me==="done"?ame((typeof hme=="function"?hme(eme):hme)||React__namespace.createElement(RefIcon$4,null),()=>gme(eme),x_,$P.downloadFile):null,Ime=zP!=="picture-card"&&zP!=="picture-circle"&&React__namespace.createElement("span",{key:"download-delete",className:classNames(`${x_}-list-item-actions`,{picture:zP==="picture"})},Nme,Mme),wme=classNames(`${x_}-list-item-name`),Ome=eme.url?[React__namespace.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:wme,title:eme.name},Dme,{href:eme.url,onClick:zme=>pme(eme,zme)}),eme.name),Ime]:[React__namespace.createElement("span",{key:"view",className:wme,onClick:zme=>pme(eme,zme),title:eme.name},eme.name),Ime],Ame=cme&&(eme.url||eme.thumbUrl)?React__namespace.createElement("a",{href:eme.url||eme.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:zme=>pme(eme,zme),title:$P.previewFile},typeof fme=="function"?fme(eme):fme||React__namespace.createElement(RefIcon$p,null)):null,Fme=(zP==="picture-card"||zP==="picture-circle")&&_me!=="uploading"&&React__namespace.createElement("span",{className:`${x_}-list-item-actions`},Ame,_me==="done"&&Nme,Mme),{getPrefixCls:Bme}=React__namespace.useContext(ConfigContext),kme=Bme(),Lme=React__namespace.createElement("div",{className:$me},Pme,Ome,Fme,Eme&&React__namespace.createElement(CSSMotion,{motionName:`${kme}-fade`,visible:_me==="uploading",motionDeadline:2e3},zme=>{let{className:Vme}=zme;const Xme="percent"in eme?React__namespace.createElement(Progress,Object.assign({},nme,{type:"line",percent:eme.percent,"aria-label":eme["aria-label"],"aria-labelledby":eme["aria-labelledby"]})):null;return React__namespace.createElement("div",{className:classNames(`${x_}-list-item-progress`,Vme)},Xme)})),Hme=eme.response&&typeof eme.response=="string"?eme.response:((mme=eme.error)===null||mme===void 0?void 0:mme.statusText)||((bme=eme.error)===null||bme===void 0?void 0:bme.message)||$P.uploadError,Wme=_me==="error"?React__namespace.createElement(Tooltip,{title:Hme,getPopupContainer:zme=>zme.parentNode},Lme):Lme;return React__namespace.createElement("div",{className:classNames(`${x_}-list-item-container`,$_),style:B_,ref:kh},ome?ome(Wme,eme,tme,{download:gme.bind(null,eme),preview:pme.bind(null,eme),remove:yme.bind(null,eme)}):Wme)}),InternalUploadList=(Ff,kh)=>{const{listType:x_="text",previewFile:$_=previewImage,onPreview:B_,onDownload:$P,onRemove:zP,locale:eme,iconRender:tme,isImageUrl:nme=isImageUrl,prefixCls:rme,items:ame=[],showPreviewIcon:ome=!0,showRemoveIcon:ime=!0,showDownloadIcon:cme=!1,removeIcon:ume,previewIcon:sme,downloadIcon:fme,progress:lme={size:[-1,2],showInfo:!1},appendAction:hme,appendActionVisible:pme=!0,itemRender:gme,disabled:yme}=Ff,mme=useForceUpdate(),[bme,Sme]=React__namespace.useState(!1);React__namespace.useEffect(()=>{x_!=="picture"&&x_!=="picture-card"&&x_!=="picture-circle"||(ame||[]).forEach(Ame=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(Ame.originFileObj instanceof File||Ame.originFileObj)||Ame.thumbUrl!==void 0||$_&&$_(Ame.originFileObj).then(Fme=>{Ame.thumbUrl=Fme||"",mme()})})},[x_,ame,$_]),React__namespace.useEffect(()=>{Sme(!0)},[]);const _me=(Ame,Fme)=>{if(B_)return Fme==null||Fme.preventDefault(),B_(Ame)},Cme=Ame=>{typeof $P=="function"?$P(Ame):Ame.url&&window.open(Ame.url)},Eme=Ame=>{zP==null||zP(Ame)},Tme=Ame=>{if(tme)return tme(Ame,x_);const Fme=Ame.status==="uploading",Bme=nme&&nme(Ame)?React__namespace.createElement(RefIcon$5,null):React__namespace.createElement(RefIcon$7,null);let kme=Fme?React__namespace.createElement(RefIcon$x,null):React__namespace.createElement(RefIcon$6,null);return x_==="picture"?kme=Fme?React__namespace.createElement(RefIcon$x,null):Bme:(x_==="picture-card"||x_==="picture-circle")&&(kme=Fme?eme.uploading:Bme),kme},Rme=(Ame,Fme,Bme,kme,Lme)=>{const Hme={type:"text",size:"small",title:kme,onClick:Wme=>{var zme,Vme;Fme(),React__namespace.isValidElement(Ame)&&((Vme=(zme=Ame.props).onClick)===null||Vme===void 0||Vme.call(zme,Wme))},className:`${Bme}-list-item-action`};if(Lme&&(Hme.disabled=yme),React__namespace.isValidElement(Ame)){const Wme=cloneElement(Ame,Object.assign(Object.assign({},Ame.props),{onClick:()=>{}}));return React__namespace.createElement(Button$1,Object.assign({},Hme,{icon:Wme}))}return React__namespace.createElement(Button$1,Object.assign({},Hme),React__namespace.createElement("span",null,Ame))};React__namespace.useImperativeHandle(kh,()=>({handlePreview:_me,handleDownload:Cme}));const{getPrefixCls:Pme}=React__namespace.useContext(ConfigContext),$me=Pme("upload",rme),Dme=Pme(),Mme=classNames(`${$me}-list`,`${$me}-list-${x_}`),Nme=_toConsumableArray(ame.map(Ame=>({key:Ame.uid,file:Ame})));let wme={motionDeadline:2e3,motionName:`${$me}-${x_==="picture-card"||x_==="picture-circle"?"animate-inline":"animate"}`,keys:Nme,motionAppear:bme};const Ome=React__namespace.useMemo(()=>{const Ame=Object.assign({},initCollapseMotion(Dme));return delete Ame.onAppearEnd,delete Ame.onEnterEnd,delete Ame.onLeaveEnd,Ame},[Dme]);return x_!=="picture-card"&&x_!=="picture-circle"&&(wme=Object.assign(Object.assign({},Ome),wme)),React__namespace.createElement("div",{className:Mme},React__namespace.createElement(CSSMotionList,Object.assign({},wme,{component:!1}),Ame=>{let{key:Fme,file:Bme,className:kme,style:Lme}=Ame;return React__namespace.createElement(ListItem,{key:Fme,locale:eme,prefixCls:$me,className:kme,style:Lme,file:Bme,items:ame,progress:lme,listType:x_,isImgUrl:nme,showPreviewIcon:ome,showRemoveIcon:ime,showDownloadIcon:cme,removeIcon:ume,previewIcon:sme,downloadIcon:fme,iconRender:Tme,actionIconRender:Rme,itemRender:gme,onPreview:_me,onDownload:Cme,onClose:Eme})}),hme&&React__namespace.createElement(CSSMotion,Object.assign({},wme,{visible:pme,forceRender:!0}),Ame=>{let{className:Fme,style:Bme}=Ame;return cloneElement(hme,kme=>({className:classNames(kme.className,Fme),style:Object.assign(Object.assign(Object.assign({},Bme),{pointerEvents:Fme?"none":void 0}),kme.style)}))}))},UploadList=React__namespace.forwardRef(InternalUploadList);process.env.NODE_ENV!=="production"&&(UploadList.displayName="UploadList");var __awaiter=function(Ff,kh,x_,$_){function B_($P){return $P instanceof x_?$P:new x_(function(zP){zP($P)})}return new(x_||(x_=Promise))(function($P,zP){function eme(rme){try{nme($_.next(rme))}catch(ame){zP(ame)}}function tme(rme){try{nme($_.throw(rme))}catch(ame){zP(ame)}}function nme(rme){rme.done?$P(rme.value):B_(rme.value).then(eme,tme)}nme(($_=$_.apply(Ff,kh||[])).next())})};const LIST_IGNORE=`__LIST_IGNORE_${Date.now()}__`,InternalUpload=(Ff,kh)=>{const{fileList:x_,defaultFileList:$_,onRemove:B_,showUploadList:$P=!0,listType:zP="text",onPreview:eme,onDownload:tme,onChange:nme,onDrop:rme,previewFile:ame,disabled:ome,locale:ime,iconRender:cme,isImageUrl:ume,progress:sme,prefixCls:fme,className:lme,type:hme="select",children:pme,style:gme,itemRender:yme,maxCount:mme,data:bme={},multiple:Sme=!1,hasControlInside:_me=!0,action:Cme="",accept:Eme="",supportServerRender:Tme=!0,rootClassName:Rme}=Ff,Pme=React__namespace.useContext(DisabledContext),$me=ome??Pme,[Dme,Mme]=useMergedState($_||[],{value:x_,postState:O0e=>O0e??[]}),[Nme,Ime]=React__namespace.useState("drop"),wme=React__namespace.useRef(null),Ome=React__namespace.useRef(null);if(process.env.NODE_ENV!=="production"){const O0e=devUseWarning("Upload");process.env.NODE_ENV!=="production"&&O0e("fileList"in Ff||!("value"in Ff),"usage","`value` is not a valid prop, do you mean `fileList`?"),O0e.deprecated(!("transformFile"in Ff),"transformFile","beforeUpload")}React__namespace.useMemo(()=>{const O0e=Date.now();(x_||[]).forEach((b0e,k0e)=>{!b0e.uid&&!Object.isFrozen(b0e)&&(b0e.uid=`__AUTO__${O0e}_${k0e}__`)})},[x_]);const Ame=(O0e,b0e,k0e)=>{let T0e=_toConsumableArray(b0e),L0e=!1;mme===1?T0e=T0e.slice(-1):mme&&(L0e=T0e.length>mme,T0e=T0e.slice(0,mme)),ReactDOM.flushSync(()=>{Mme(T0e)});const Y0e={file:O0e,fileList:T0e};k0e&&(Y0e.event=k0e),(!L0e||O0e.status==="removed"||T0e.some(mye=>mye.uid===O0e.uid))&&ReactDOM.flushSync(()=>{nme==null||nme(Y0e)})},Fme=(O0e,b0e)=>__awaiter(void 0,void 0,void 0,function*(){const{beforeUpload:k0e,transformFile:T0e}=Ff;let L0e=O0e;if(k0e){const Y0e=yield k0e(O0e,b0e);if(Y0e===!1)return!1;if(delete O0e[LIST_IGNORE],Y0e===LIST_IGNORE)return Object.defineProperty(O0e,LIST_IGNORE,{value:!0,configurable:!0}),!1;typeof Y0e=="object"&&Y0e&&(L0e=Y0e)}return T0e&&(L0e=yield T0e(L0e)),L0e}),Bme=O0e=>{const b0e=O0e.filter(L0e=>!L0e.file[LIST_IGNORE]);if(!b0e.length)return;const k0e=b0e.map(L0e=>file2Obj(L0e.file));let T0e=_toConsumableArray(Dme);k0e.forEach(L0e=>{T0e=updateFileList(L0e,T0e)}),k0e.forEach((L0e,Y0e)=>{let mye=L0e;if(b0e[Y0e].parsedFile)L0e.status="uploading";else{const{originFileObj:Q0e}=L0e;let U0e;try{U0e=new File([Q0e],Q0e.name,{type:Q0e.type})}catch{U0e=new Blob([Q0e],{type:Q0e.type}),U0e.name=Q0e.name,U0e.lastModifiedDate=new Date,U0e.lastModified=new Date().getTime()}U0e.uid=L0e.uid,mye=U0e}Ame(mye,T0e)})},kme=(O0e,b0e,k0e)=>{try{typeof O0e=="string"&&(O0e=JSON.parse(O0e))}catch{}if(!getFileItem(b0e,Dme))return;const T0e=file2Obj(b0e);T0e.status="done",T0e.percent=100,T0e.response=O0e,T0e.xhr=k0e;const L0e=updateFileList(T0e,Dme);Ame(T0e,L0e)},Lme=(O0e,b0e)=>{if(!getFileItem(b0e,Dme))return;const k0e=file2Obj(b0e);k0e.status="uploading",k0e.percent=O0e.percent;const T0e=updateFileList(k0e,Dme);Ame(k0e,T0e,O0e)},Hme=(O0e,b0e,k0e)=>{if(!getFileItem(k0e,Dme))return;const T0e=file2Obj(k0e);T0e.error=O0e,T0e.response=b0e,T0e.status="error";const L0e=updateFileList(T0e,Dme);Ame(T0e,L0e)},Wme=O0e=>{let b0e;Promise.resolve(typeof B_=="function"?B_(O0e):B_).then(k0e=>{var T0e;if(k0e===!1)return;const L0e=removeFileItem(O0e,Dme);L0e&&(b0e=Object.assign(Object.assign({},O0e),{status:"removed"}),Dme==null||Dme.forEach(Y0e=>{const mye=b0e.uid!==void 0?"uid":"name";Y0e[mye]===b0e[mye]&&!Object.isFrozen(Y0e)&&(Y0e.status="removed")}),(T0e=wme.current)===null||T0e===void 0||T0e.abort(b0e),Ame(b0e,L0e))})},zme=O0e=>{Ime(O0e.type),O0e.type==="drop"&&(rme==null||rme(O0e))};React__namespace.useImperativeHandle(kh,()=>({onBatchStart:Bme,onSuccess:kme,onProgress:Lme,onError:Hme,fileList:Dme,upload:wme.current,nativeElement:Ome.current}));const{getPrefixCls:Vme,direction:Xme,upload:e0e}=React__namespace.useContext(ConfigContext),Ume=Vme("upload",fme),Jme=Object.assign(Object.assign({onBatchStart:Bme,onError:Hme,onProgress:Lme,onSuccess:kme},Ff),{data:bme,multiple:Sme,action:Cme,accept:Eme,supportServerRender:Tme,prefixCls:Ume,disabled:$me,beforeUpload:Fme,onChange:void 0,hasControlInside:_me});delete Jme.className,delete Jme.style,(!pme||$me)&&delete Jme.id;const s0e=`${Ume}-wrapper`,[d0e,Zme,Qme]=useStyle(Ume,s0e),[a0e]=useLocale$1("Upload",localeValues.Upload),{showRemoveIcon:t0e,showPreviewIcon:o0e,showDownloadIcon:g0e,removeIcon:u0e,previewIcon:h0e,downloadIcon:E0e}=typeof $P=="boolean"?{}:$P,P0e=typeof t0e>"u"?!$me:!!t0e,y0e=(O0e,b0e)=>$P?React__namespace.createElement(UploadList,{prefixCls:Ume,listType:zP,items:Dme,previewFile:ame,onPreview:eme,onDownload:tme,onRemove:Wme,showRemoveIcon:P0e,showPreviewIcon:o0e,showDownloadIcon:g0e,removeIcon:u0e,previewIcon:h0e,downloadIcon:E0e,iconRender:cme,locale:Object.assign(Object.assign({},a0e),ime),isImageUrl:ume,progress:sme,appendAction:O0e,appendActionVisible:b0e,itemRender:yme,disabled:$me}):O0e,$0e=classNames(s0e,lme,Rme,Zme,Qme,e0e==null?void 0:e0e.className,{[`${Ume}-rtl`]:Xme==="rtl",[`${Ume}-picture-card-wrapper`]:zP==="picture-card",[`${Ume}-picture-circle-wrapper`]:zP==="picture-circle"}),C0e=Object.assign(Object.assign({},e0e==null?void 0:e0e.style),gme);if(hme==="drag"){const O0e=classNames(Zme,Ume,`${Ume}-drag`,{[`${Ume}-drag-uploading`]:Dme.some(b0e=>b0e.status==="uploading"),[`${Ume}-drag-hover`]:Nme==="dragover",[`${Ume}-disabled`]:$me,[`${Ume}-rtl`]:Xme==="rtl"});return d0e(React__namespace.createElement("span",{className:$0e,ref:Ome},React__namespace.createElement("div",{className:O0e,style:C0e,onDrop:zme,onDragOver:zme,onDragLeave:zme},React__namespace.createElement(Upload$2,Object.assign({},Jme,{ref:wme,className:`${Ume}-btn`}),React__namespace.createElement("div",{className:`${Ume}-drag-container`},pme))),y0e()))}const z0e=classNames(Ume,`${Ume}-select`,{[`${Ume}-disabled`]:$me}),D0e=React__namespace.createElement("div",{className:z0e,style:pme?void 0:{display:"none"}},React__namespace.createElement(Upload$2,Object.assign({},Jme,{ref:wme})));return d0e(zP==="picture-card"||zP==="picture-circle"?React__namespace.createElement("span",{className:$0e,ref:Ome},y0e(D0e,!!pme)):React__namespace.createElement("span",{className:$0e,ref:Ome},D0e,y0e()))},Upload$1=React__namespace.forwardRef(InternalUpload);process.env.NODE_ENV!=="production"&&(Upload$1.displayName="Upload");var __rest=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const Dragger=React__namespace.forwardRef((Ff,kh)=>{var{style:x_,height:$_,hasControlInside:B_=!1}=Ff,$P=__rest(Ff,["style","height","hasControlInside"]);return React__namespace.createElement(Upload$1,Object.assign({ref:kh,hasControlInside:B_},$P,{type:"drag",style:Object.assign(Object.assign({},x_),{height:$_})}))});process.env.NODE_ENV!=="production"&&(Dragger.displayName="Dragger");const Upload=Upload$1;Upload.Dragger=Dragger;Upload.LIST_IGNORE=LIST_IGNORE;const BaseWrapper=function(kh){let{label:x_,children:$_,prompt:B_,subTable:$P,subTableIndex:zP,addWrapper:eme=!0,...tme}=kh;return eme?$P?jsxRuntimeExports.jsxs("div",{className:"frelative fw-full",children:[x_&&zP===0&&jsxRuntimeExports.jsx("div",{className:"fh-12 ffont-semibold fbg-gray-100 ftext-sm fflex fjustify-between fitems-center fpx-2 fborder-b",children:x_}),jsxRuntimeExports.jsx("div",{className:"fw-full fflex fitems-stretch fp-2 ",children:$_})]}):jsxRuntimeExports.jsxs("div",{className:"frelative",children:[x_&&jsxRuntimeExports.jsx("div",{className:"fh-8 ftext-gray-500 ftext-sm fflex fjustify-between fitems-center",children:x_}),jsxRuntimeExports.jsx("div",{className:"fw-full fflex fitems-stretch ftext-gray-900",children:$_}),!$P&&jsxRuntimeExports.jsx("div",{className:"ftext-xs ftext-gray-500 fmin-h-5 fflex fitems-center",children:B_})]}):$_},{TextArea:OriginalTextArea,Password:OriginalPassword,Search:OriginalSearch}=Input$1,Input=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Input$1,{...Ff})}),CodeMachine=Ff=>{let{value:kh,...x_}=Ff;return kh=kh||"系统自动生成",jsxRuntimeExports.jsx(BaseWrapper,{...x_,children:jsxRuntimeExports.jsx(Input$1,{...x_,disabled:!0,value:kh})})},TextArea=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(OriginalTextArea,{...Ff})}),Password=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(OriginalPassword,{...Ff})}),Search=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(OriginalSearch,{...Ff})}),Number$1=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(TypedInputNumber,{...Ff,style:{width:"100%"}})});var IconContext=React.createContext({}),hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{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 toHsv(Ff){var kh=Ff.r,x_=Ff.g,$_=Ff.b,B_=rgbToHsv(kh,x_,$_);return{h:B_.h*360,s:B_.s,v:B_.v}}function toHex(Ff){var kh=Ff.r,x_=Ff.g,$_=Ff.b;return"#".concat(rgbToHex(kh,x_,$_,!1))}function mix(Ff,kh,x_){var $_=x_/100,B_={r:(kh.r-Ff.r)*$_+Ff.r,g:(kh.g-Ff.g)*$_+Ff.g,b:(kh.b-Ff.b)*$_+Ff.b};return B_}function getHue(Ff,kh,x_){var $_;return Math.round(Ff.h)>=60&&Math.round(Ff.h)<=240?$_=x_?Math.round(Ff.h)-hueStep*kh:Math.round(Ff.h)+hueStep*kh:$_=x_?Math.round(Ff.h)+hueStep*kh:Math.round(Ff.h)-hueStep*kh,$_<0?$_+=360:$_>=360&&($_-=360),$_}function getSaturation(Ff,kh,x_){if(Ff.h===0&&Ff.s===0)return Ff.s;var $_;return x_?$_=Ff.s-saturationStep*kh:kh===darkColorCount?$_=Ff.s+saturationStep:$_=Ff.s+saturationStep2*kh,$_>1&&($_=1),x_&&kh===lightColorCount&&$_>.1&&($_=.1),$_<.06&&($_=.06),Number($_.toFixed(2))}function getValue$2(Ff,kh,x_){var $_;return x_?$_=Ff.v+brightnessStep1*kh:$_=Ff.v-brightnessStep2*kh,$_>1&&($_=1),Number($_.toFixed(2))}function generate$1(Ff){for(var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x_=[],$_=inputToRGB(Ff),B_=lightColorCount;B_>0;B_-=1){var $P=toHsv($_),zP=toHex(inputToRGB({h:getHue($P,B_,!0),s:getSaturation($P,B_,!0),v:getValue$2($P,B_,!0)}));x_.push(zP)}x_.push(toHex($_));for(var eme=1;eme<=darkColorCount;eme+=1){var tme=toHsv($_),nme=toHex(inputToRGB({h:getHue(tme,eme),s:getSaturation(tme,eme),v:getValue$2(tme,eme)}));x_.push(nme)}return kh.theme==="dark"?darkColorMap.map(function(rme){var ame=rme.index,ome=rme.opacity,ime=toHex(mix(inputToRGB(kh.backgroundColor||"#141414"),inputToRGB(x_[ame]),ome*100));return ime}):x_}var presetPrimaryColors={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(Ff){presetPalettes[Ff]=generate$1(presetPrimaryColors[Ff]),presetPalettes[Ff].primary=presetPalettes[Ff][5],presetDarkPalettes[Ff]=generate$1(presetPrimaryColors[Ff],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[Ff].primary=presetDarkPalettes[Ff][5]});var freeGlobal$1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$8=freeGlobal||freeSelf||Function("return this")(),_root=root$8,root$7=_root,Symbol$5=root$7.Symbol,_Symbol=Symbol$5;function arrayMap$1(Ff,kh){for(var x_=-1,$_=Ff==null?0:Ff.length,B_=Array($_);++x_<$_;)B_[x_]=kh(Ff[x_],x_,Ff);return B_}var _arrayMap=arrayMap$1,isArray$4=Array.isArray,isArray_1=isArray$4,Symbol$4=_Symbol,objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty,nativeObjectToString$1=objectProto$b.toString,symToStringTag$1=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$1(Ff){var kh=hasOwnProperty$9.call(Ff,symToStringTag$1),x_=Ff[symToStringTag$1];try{Ff[symToStringTag$1]=void 0;var $_=!0}catch{}var B_=nativeObjectToString$1.call(Ff);return $_&&(kh?Ff[symToStringTag$1]=x_:delete Ff[symToStringTag$1]),B_}var _getRawTag=getRawTag$1,objectProto$a=Object.prototype,nativeObjectToString=objectProto$a.toString;function objectToString$1(Ff){return nativeObjectToString.call(Ff)}var _objectToString=objectToString$1,Symbol$3=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$5(Ff){return Ff==null?Ff===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(Ff)?getRawTag(Ff):objectToString(Ff)}var _baseGetTag=baseGetTag$5;function isObjectLike$5(Ff){return Ff!=null&&typeof Ff=="object"}var isObjectLike_1=isObjectLike$5,baseGetTag$4=_baseGetTag,isObjectLike$4=isObjectLike_1,symbolTag$1="[object Symbol]";function isSymbol$1(Ff){return typeof Ff=="symbol"||isObjectLike$4(Ff)&&baseGetTag$4(Ff)==symbolTag$1}var isSymbol_1=isSymbol$1,Symbol$2=_Symbol,arrayMap=_arrayMap,isArray$3=isArray_1,isSymbol=isSymbol_1,INFINITY=1/0,symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString$1(Ff){if(typeof Ff=="string")return Ff;if(isArray$3(Ff))return arrayMap(Ff,baseToString$1)+"";if(isSymbol(Ff))return symbolToString?symbolToString.call(Ff):"";var kh=Ff+"";return kh=="0"&&1/Ff==-INFINITY?"-0":kh}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$4(Ff){return Ff==null?"":baseToString(Ff)}var toString_1=toString$4;function baseSlice$1(Ff,kh,x_){var $_=-1,B_=Ff.length;kh<0&&(kh=-kh>B_?0:B_+kh),x_=x_>B_?B_:x_,x_<0&&(x_+=B_),B_=kh>x_?0:x_-kh>>>0,kh>>>=0;for(var $P=Array(B_);++$_<B_;)$P[$_]=Ff[$_+kh];return $P}var _baseSlice=baseSlice$1,baseSlice=_baseSlice;function castSlice$1(Ff,kh,x_){var $_=Ff.length;return x_=x_===void 0?$_:x_,!kh&&x_>=$_?Ff:baseSlice(Ff,kh,x_)}var _castSlice=castSlice$1,rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsVarRange$2="\\ufe0e\\ufe0f",rsZWJ$2="\\u200d",reHasUnicode=RegExp("["+rsZWJ$2+rsAstralRange$2+rsComboRange$3+rsVarRange$2+"]");function hasUnicode$2(Ff){return reHasUnicode.test(Ff)}var _hasUnicode=hasUnicode$2;function asciiToArray$1(Ff){return Ff.split("")}var _asciiToArray=asciiToArray$1,rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsVarRange$1="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange$1+"]",rsCombo$2="["+rsComboRange$2+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$2+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$1+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$1="\\u200d",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$1+"]?",rsOptJoin$1="(?:"+rsZWJ$1+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsSymbol="(?:"+[rsNonAstral$1+rsCombo$2+"?",rsCombo$2,rsRegional$1,rsSurrPair$1,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz$1+"(?="+rsFitz$1+")|"+rsSymbol+rsSeq$1,"g");function unicodeToArray$1(Ff){return Ff.match(reUnicode)||[]}var _unicodeToArray=unicodeToArray$1,asciiToArray=_asciiToArray,hasUnicode$1=_hasUnicode,unicodeToArray=_unicodeToArray;function stringToArray$1(Ff){return hasUnicode$1(Ff)?unicodeToArray(Ff):asciiToArray(Ff)}var _stringToArray=stringToArray$1,castSlice=_castSlice,hasUnicode=_hasUnicode,stringToArray=_stringToArray,toString$3=toString_1;function createCaseFirst$1(Ff){return function(kh){kh=toString$3(kh);var x_=hasUnicode(kh)?stringToArray(kh):void 0,$_=x_?x_[0]:kh.charAt(0),B_=x_?castSlice(x_,1).join(""):kh.slice(1);return $_[Ff]()+B_}}var _createCaseFirst=createCaseFirst$1,createCaseFirst=_createCaseFirst,upperFirst$1=createCaseFirst("toUpperCase"),upperFirst_1=upperFirst$1,toString$2=toString_1,upperFirst=upperFirst_1;function capitalize$1(Ff){return upperFirst(toString$2(Ff).toLowerCase())}var capitalize_1=capitalize$1;function arrayReduce$1(Ff,kh,x_,$_){var B_=-1,$P=Ff==null?0:Ff.length;for($_&&$P&&(x_=Ff[++B_]);++B_<$P;)x_=kh(x_,Ff[B_],B_,Ff);return x_}var _arrayReduce=arrayReduce$1;function basePropertyOf$1(Ff){return function(kh){return Ff==null?void 0:Ff[kh]}}var _basePropertyOf=basePropertyOf$1,basePropertyOf=_basePropertyOf,deburredLetters={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},deburrLetter$1=basePropertyOf(deburredLetters),_deburrLetter=deburrLetter$1,deburrLetter=_deburrLetter,toString$1=toString_1,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsCombo$1="["+rsComboRange$1+"]",reComboMark=RegExp(rsCombo$1,"g");function deburr$1(Ff){return Ff=toString$1(Ff),Ff&&Ff.replace(reLatin,deburrLetter).replace(reComboMark,"")}var deburr_1=deburr$1,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords$1(Ff){return Ff.match(reAsciiWord)||[]}var _asciiWords=asciiWords$1,reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord$1(Ff){return reHasUnicodeWord.test(Ff)}var _hasUnicodeWord=hasUnicodeWord$1,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['’]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords$1(Ff){return Ff.match(reUnicodeWord)||[]}var _unicodeWords=unicodeWords$1,asciiWords=_asciiWords,hasUnicodeWord=_hasUnicodeWord,toString=toString_1,unicodeWords=_unicodeWords;function words$1(Ff,kh,x_){return Ff=toString(Ff),kh=x_?void 0:kh,kh===void 0?hasUnicodeWord(Ff)?unicodeWords(Ff):asciiWords(Ff):Ff.match(kh)||[]}var words_1=words$1,arrayReduce=_arrayReduce,deburr=deburr_1,words=words_1,rsApos="['’]",reApos=RegExp(rsApos,"g");function createCompounder$1(Ff){return function(kh){return arrayReduce(words(deburr(kh).replace(reApos,"")),Ff,"")}}var _createCompounder=createCompounder$1,capitalize=capitalize_1,createCompounder=_createCompounder,camelCase=createCompounder(function(Ff,kh,x_){return kh=kh.toLowerCase(),Ff+(x_?capitalize(kh):kh)}),camelCase_1=camelCase;const camelCase$1=getDefaultExportFromCjs(camelCase_1);function warning(Ff,kh){warningOnce(Ff,"[@ant-design/icons] ".concat(kh))}function isIconDefinition(Ff){return _typeof(Ff)==="object"&&typeof Ff.name=="string"&&typeof Ff.theme=="string"&&(_typeof(Ff.icon)==="object"||typeof Ff.icon=="function")}function normalizeAttrs(){var Ff=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(Ff).reduce(function(kh,x_){var $_=Ff[x_];switch(x_){case"class":kh.className=$_,delete kh.class;break;default:delete kh[x_],kh[camelCase$1(x_)]=$_}return kh},{})}function generate(Ff,kh,x_){return x_?React.createElement(Ff.tag,_objectSpread2(_objectSpread2({key:kh},normalizeAttrs(Ff.attrs)),x_),(Ff.children||[]).map(function($_,B_){return generate($_,"".concat(kh,"-").concat(Ff.tag,"-").concat(B_))})):React.createElement(Ff.tag,_objectSpread2({key:kh},normalizeAttrs(Ff.attrs)),(Ff.children||[]).map(function($_,B_){return generate($_,"".concat(kh,"-").concat(Ff.tag,"-").concat(B_))}))}function getSecondaryColor(Ff){return generate$1(Ff)[0]}function normalizeTwoToneColors(Ff){return Ff?Array.isArray(Ff)?Ff:[Ff]:[]}var iconStyles=`
316
+ `]:{zIndex:10,width:$_,margin:`0 ${unit$1(Ff.marginXXS)}`,fontSize:$_,cursor:"pointer",transition:`all ${Ff.motionDurationSlow}`,color:B_,"&:hover":{color:B_},svg:{verticalAlign:"baseline"}}},[`${eme}-thumbnail, ${eme}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${eme}-name`]:{display:"none",textAlign:"center"},[`${eme}-file + ${eme}-name`]:{position:"absolute",bottom:Ff.margin,display:"block",width:`calc(100% - ${unit$1($P(Ff.paddingXS).mul(2).equal())})`},[`${eme}-uploading`]:{[`&${eme}`]:{backgroundColor:Ff.colorFillAlter},[`&::before, ${x_}-eye, ${x_}-download, ${x_}-delete`]:{display:"none"}},[`${eme}-progress`]:{bottom:Ff.marginXL,width:`calc(100% - ${unit$1($P(Ff.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${kh}-wrapper${kh}-picture-circle-wrapper`]:{[`${kh}${kh}-select`]:{borderRadius:"50%"}}}},genRtlStyle=Ff=>{const{componentCls:kh}=Ff;return{[`${kh}-rtl`]:{direction:"rtl"}}},genBaseStyle=Ff=>{const{componentCls:kh,colorTextDisabled:x_}=Ff;return{[`${kh}-wrapper`]:Object.assign(Object.assign({},resetComponent(Ff)),{[kh]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${kh}-select`]:{display:"inline-block"},[`${kh}-disabled`]:{color:x_,cursor:"not-allowed"}})}},prepareComponentToken=Ff=>({actionsColor:Ff.colorTextDescription}),useStyle=genStyleHooks("Upload",Ff=>{const{fontSizeHeading3:kh,fontHeight:x_,lineWidth:$_,controlHeightLG:B_,calc:$P}=Ff,zP=merge(Ff,{uploadThumbnailSize:$P(kh).mul(2).equal(),uploadProgressOffset:$P($P(x_).div(2)).add($_).equal(),uploadPicCardSize:$P(B_).mul(2.55).equal()});return[genBaseStyle(zP),genDraggerStyle(zP),genPictureStyle(zP),genPictureCardStyle(zP),genListStyle(zP),genMotionStyle(zP),genRtlStyle(zP),genCollapseMotion(zP)]},prepareComponentToken);var FileTwoTone$1={icon:function(kh,x_){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:x_}},{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:kh}}]}},name:"file",theme:"twotone"},FileTwoTone=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:FileTwoTone$1}))},RefIcon$7=React__namespace.forwardRef(FileTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$7.displayName="FileTwoTone");var PaperClipOutlined$1={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"},PaperClipOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:PaperClipOutlined$1}))},RefIcon$6=React__namespace.forwardRef(PaperClipOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$6.displayName="PaperClipOutlined");var PictureTwoTone$1={icon:function(kh,x_){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:kh}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:x_}},{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:x_}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:x_}},{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:kh}}]}},name:"picture",theme:"twotone"},PictureTwoTone=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:PictureTwoTone$1}))},RefIcon$5=React__namespace.forwardRef(PictureTwoTone);process.env.NODE_ENV!=="production"&&(RefIcon$5.displayName="PictureTwoTone");function file2Obj(Ff){return Object.assign(Object.assign({},Ff),{lastModified:Ff.lastModified,lastModifiedDate:Ff.lastModifiedDate,name:Ff.name,size:Ff.size,type:Ff.type,uid:Ff.uid,percent:0,originFileObj:Ff})}function updateFileList(Ff,kh){const x_=_toConsumableArray(kh),$_=x_.findIndex(B_=>{let{uid:$P}=B_;return $P===Ff.uid});return $_===-1?x_.push(Ff):x_[$_]=Ff,x_}function getFileItem(Ff,kh){const x_=Ff.uid!==void 0?"uid":"name";return kh.filter($_=>$_[x_]===Ff[x_])[0]}function removeFileItem(Ff,kh){const x_=Ff.uid!==void 0?"uid":"name",$_=kh.filter(B_=>B_[x_]!==Ff[x_]);return $_.length===kh.length?null:$_}const extname=function(){const kh=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),$_=kh[kh.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec($_)||[""])[0]},isImageFileType=Ff=>Ff.indexOf("image/")===0,isImageUrl=Ff=>{if(Ff.type&&!Ff.thumbUrl)return isImageFileType(Ff.type);const kh=Ff.thumbUrl||Ff.url||"",x_=extname(kh);return/^data:image\//.test(kh)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(x_)?!0:!(/^data:/.test(kh)||x_)},MEASURE_SIZE=200;function previewImage(Ff){return new Promise(kh=>{if(!Ff.type||!isImageFileType(Ff.type)){kh("");return}const x_=document.createElement("canvas");x_.width=MEASURE_SIZE,x_.height=MEASURE_SIZE,x_.style.cssText=`position: fixed; left: 0; top: 0; width: ${MEASURE_SIZE}px; height: ${MEASURE_SIZE}px; z-index: 9999; display: none;`,document.body.appendChild(x_);const $_=x_.getContext("2d"),B_=new Image;if(B_.onload=()=>{const{width:$P,height:zP}=B_;let eme=MEASURE_SIZE,tme=MEASURE_SIZE,nme=0,rme=0;$P>zP?(tme=zP*(MEASURE_SIZE/$P),rme=-(tme-eme)/2):(eme=$P*(MEASURE_SIZE/zP),nme=-(eme-tme)/2),$_.drawImage(B_,nme,rme,eme,tme);const ame=x_.toDataURL();document.body.removeChild(x_),window.URL.revokeObjectURL(B_.src),kh(ame)},B_.crossOrigin="anonymous",Ff.type.startsWith("image/svg+xml")){const $P=new FileReader;$P.onload=()=>{$P.result&&typeof $P.result=="string"&&(B_.src=$P.result)},$P.readAsDataURL(Ff)}else if(Ff.type.startsWith("image/gif")){const $P=new FileReader;$P.onload=()=>{$P.result&&kh($P.result)},$P.readAsDataURL(Ff)}else B_.src=window.URL.createObjectURL(Ff)})}var DownloadOutlined$1={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"},DownloadOutlined=function(kh,x_){return React__namespace.createElement(Icon$2,_extends({},kh,{ref:x_,icon:DownloadOutlined$1}))},RefIcon$4=React__namespace.forwardRef(DownloadOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$4.displayName="DownloadOutlined");const ListItem=React__namespace.forwardRef((Ff,kh)=>{let{prefixCls:x_,className:$_,style:B_,locale:$P,listType:zP,file:eme,items:tme,progress:nme,iconRender:rme,actionIconRender:ame,itemRender:ome,isImgUrl:ime,showPreviewIcon:cme,showRemoveIcon:ume,showDownloadIcon:sme,previewIcon:fme,removeIcon:lme,downloadIcon:hme,onPreview:pme,onDownload:gme,onClose:yme}=Ff;var mme,bme;const{status:Sme}=eme,[_me,Cme]=React__namespace.useState(Sme);React__namespace.useEffect(()=>{Sme!=="removed"&&Cme(Sme)},[Sme]);const[Eme,Tme]=React__namespace.useState(!1);React__namespace.useEffect(()=>{const zme=setTimeout(()=>{Tme(!0)},300);return()=>{clearTimeout(zme)}},[]);const Rme=rme(eme);let Pme=React__namespace.createElement("div",{className:`${x_}-icon`},Rme);if(zP==="picture"||zP==="picture-card"||zP==="picture-circle")if(_me==="uploading"||!eme.thumbUrl&&!eme.url){const zme=classNames(`${x_}-list-item-thumbnail`,{[`${x_}-list-item-file`]:_me!=="uploading"});Pme=React__namespace.createElement("div",{className:zme},Rme)}else{const zme=ime!=null&&ime(eme)?React__namespace.createElement("img",{src:eme.thumbUrl||eme.url,alt:eme.name,className:`${x_}-list-item-image`,crossOrigin:eme.crossOrigin}):Rme,Vme=classNames(`${x_}-list-item-thumbnail`,{[`${x_}-list-item-file`]:ime&&!ime(eme)});Pme=React__namespace.createElement("a",{className:Vme,onClick:Xme=>pme(eme,Xme),href:eme.url||eme.thumbUrl,target:"_blank",rel:"noopener noreferrer"},zme)}const $me=classNames(`${x_}-list-item`,`${x_}-list-item-${_me}`),Dme=typeof eme.linkProps=="string"?JSON.parse(eme.linkProps):eme.linkProps,Mme=ume?ame((typeof lme=="function"?lme(eme):lme)||React__namespace.createElement(RefIcon$8,null),()=>yme(eme),x_,$P.removeFile,!0):null,Nme=sme&&_me==="done"?ame((typeof hme=="function"?hme(eme):hme)||React__namespace.createElement(RefIcon$4,null),()=>gme(eme),x_,$P.downloadFile):null,Ime=zP!=="picture-card"&&zP!=="picture-circle"&&React__namespace.createElement("span",{key:"download-delete",className:classNames(`${x_}-list-item-actions`,{picture:zP==="picture"})},Nme,Mme),wme=classNames(`${x_}-list-item-name`),Ome=eme.url?[React__namespace.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:wme,title:eme.name},Dme,{href:eme.url,onClick:zme=>pme(eme,zme)}),eme.name),Ime]:[React__namespace.createElement("span",{key:"view",className:wme,onClick:zme=>pme(eme,zme),title:eme.name},eme.name),Ime],Ame=cme&&(eme.url||eme.thumbUrl)?React__namespace.createElement("a",{href:eme.url||eme.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:zme=>pme(eme,zme),title:$P.previewFile},typeof fme=="function"?fme(eme):fme||React__namespace.createElement(RefIcon$p,null)):null,Fme=(zP==="picture-card"||zP==="picture-circle")&&_me!=="uploading"&&React__namespace.createElement("span",{className:`${x_}-list-item-actions`},Ame,_me==="done"&&Nme,Mme),{getPrefixCls:Bme}=React__namespace.useContext(ConfigContext),kme=Bme(),Lme=React__namespace.createElement("div",{className:$me},Pme,Ome,Fme,Eme&&React__namespace.createElement(CSSMotion,{motionName:`${kme}-fade`,visible:_me==="uploading",motionDeadline:2e3},zme=>{let{className:Vme}=zme;const Xme="percent"in eme?React__namespace.createElement(Progress,Object.assign({},nme,{type:"line",percent:eme.percent,"aria-label":eme["aria-label"],"aria-labelledby":eme["aria-labelledby"]})):null;return React__namespace.createElement("div",{className:classNames(`${x_}-list-item-progress`,Vme)},Xme)})),Hme=eme.response&&typeof eme.response=="string"?eme.response:((mme=eme.error)===null||mme===void 0?void 0:mme.statusText)||((bme=eme.error)===null||bme===void 0?void 0:bme.message)||$P.uploadError,Wme=_me==="error"?React__namespace.createElement(Tooltip,{title:Hme,getPopupContainer:zme=>zme.parentNode},Lme):Lme;return React__namespace.createElement("div",{className:classNames(`${x_}-list-item-container`,$_),style:B_,ref:kh},ome?ome(Wme,eme,tme,{download:gme.bind(null,eme),preview:pme.bind(null,eme),remove:yme.bind(null,eme)}):Wme)}),InternalUploadList=(Ff,kh)=>{const{listType:x_="text",previewFile:$_=previewImage,onPreview:B_,onDownload:$P,onRemove:zP,locale:eme,iconRender:tme,isImageUrl:nme=isImageUrl,prefixCls:rme,items:ame=[],showPreviewIcon:ome=!0,showRemoveIcon:ime=!0,showDownloadIcon:cme=!1,removeIcon:ume,previewIcon:sme,downloadIcon:fme,progress:lme={size:[-1,2],showInfo:!1},appendAction:hme,appendActionVisible:pme=!0,itemRender:gme,disabled:yme}=Ff,mme=useForceUpdate(),[bme,Sme]=React__namespace.useState(!1);React__namespace.useEffect(()=>{x_!=="picture"&&x_!=="picture-card"&&x_!=="picture-circle"||(ame||[]).forEach(Ame=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(Ame.originFileObj instanceof File||Ame.originFileObj)||Ame.thumbUrl!==void 0||$_&&$_(Ame.originFileObj).then(Fme=>{Ame.thumbUrl=Fme||"",mme()})})},[x_,ame,$_]),React__namespace.useEffect(()=>{Sme(!0)},[]);const _me=(Ame,Fme)=>{if(B_)return Fme==null||Fme.preventDefault(),B_(Ame)},Cme=Ame=>{typeof $P=="function"?$P(Ame):Ame.url&&window.open(Ame.url)},Eme=Ame=>{zP==null||zP(Ame)},Tme=Ame=>{if(tme)return tme(Ame,x_);const Fme=Ame.status==="uploading",Bme=nme&&nme(Ame)?React__namespace.createElement(RefIcon$5,null):React__namespace.createElement(RefIcon$7,null);let kme=Fme?React__namespace.createElement(RefIcon$x,null):React__namespace.createElement(RefIcon$6,null);return x_==="picture"?kme=Fme?React__namespace.createElement(RefIcon$x,null):Bme:(x_==="picture-card"||x_==="picture-circle")&&(kme=Fme?eme.uploading:Bme),kme},Rme=(Ame,Fme,Bme,kme,Lme)=>{const Hme={type:"text",size:"small",title:kme,onClick:Wme=>{var zme,Vme;Fme(),React__namespace.isValidElement(Ame)&&((Vme=(zme=Ame.props).onClick)===null||Vme===void 0||Vme.call(zme,Wme))},className:`${Bme}-list-item-action`};if(Lme&&(Hme.disabled=yme),React__namespace.isValidElement(Ame)){const Wme=cloneElement(Ame,Object.assign(Object.assign({},Ame.props),{onClick:()=>{}}));return React__namespace.createElement(Button$1,Object.assign({},Hme,{icon:Wme}))}return React__namespace.createElement(Button$1,Object.assign({},Hme),React__namespace.createElement("span",null,Ame))};React__namespace.useImperativeHandle(kh,()=>({handlePreview:_me,handleDownload:Cme}));const{getPrefixCls:Pme}=React__namespace.useContext(ConfigContext),$me=Pme("upload",rme),Dme=Pme(),Mme=classNames(`${$me}-list`,`${$me}-list-${x_}`),Nme=_toConsumableArray(ame.map(Ame=>({key:Ame.uid,file:Ame})));let wme={motionDeadline:2e3,motionName:`${$me}-${x_==="picture-card"||x_==="picture-circle"?"animate-inline":"animate"}`,keys:Nme,motionAppear:bme};const Ome=React__namespace.useMemo(()=>{const Ame=Object.assign({},initCollapseMotion(Dme));return delete Ame.onAppearEnd,delete Ame.onEnterEnd,delete Ame.onLeaveEnd,Ame},[Dme]);return x_!=="picture-card"&&x_!=="picture-circle"&&(wme=Object.assign(Object.assign({},Ome),wme)),React__namespace.createElement("div",{className:Mme},React__namespace.createElement(CSSMotionList,Object.assign({},wme,{component:!1}),Ame=>{let{key:Fme,file:Bme,className:kme,style:Lme}=Ame;return React__namespace.createElement(ListItem,{key:Fme,locale:eme,prefixCls:$me,className:kme,style:Lme,file:Bme,items:ame,progress:lme,listType:x_,isImgUrl:nme,showPreviewIcon:ome,showRemoveIcon:ime,showDownloadIcon:cme,removeIcon:ume,previewIcon:sme,downloadIcon:fme,iconRender:Tme,actionIconRender:Rme,itemRender:gme,onPreview:_me,onDownload:Cme,onClose:Eme})}),hme&&React__namespace.createElement(CSSMotion,Object.assign({},wme,{visible:pme,forceRender:!0}),Ame=>{let{className:Fme,style:Bme}=Ame;return cloneElement(hme,kme=>({className:classNames(kme.className,Fme),style:Object.assign(Object.assign(Object.assign({},Bme),{pointerEvents:Fme?"none":void 0}),kme.style)}))}))},UploadList=React__namespace.forwardRef(InternalUploadList);process.env.NODE_ENV!=="production"&&(UploadList.displayName="UploadList");var __awaiter=function(Ff,kh,x_,$_){function B_($P){return $P instanceof x_?$P:new x_(function(zP){zP($P)})}return new(x_||(x_=Promise))(function($P,zP){function eme(rme){try{nme($_.next(rme))}catch(ame){zP(ame)}}function tme(rme){try{nme($_.throw(rme))}catch(ame){zP(ame)}}function nme(rme){rme.done?$P(rme.value):B_(rme.value).then(eme,tme)}nme(($_=$_.apply(Ff,kh||[])).next())})};const LIST_IGNORE=`__LIST_IGNORE_${Date.now()}__`,InternalUpload=(Ff,kh)=>{const{fileList:x_,defaultFileList:$_,onRemove:B_,showUploadList:$P=!0,listType:zP="text",onPreview:eme,onDownload:tme,onChange:nme,onDrop:rme,previewFile:ame,disabled:ome,locale:ime,iconRender:cme,isImageUrl:ume,progress:sme,prefixCls:fme,className:lme,type:hme="select",children:pme,style:gme,itemRender:yme,maxCount:mme,data:bme={},multiple:Sme=!1,hasControlInside:_me=!0,action:Cme="",accept:Eme="",supportServerRender:Tme=!0,rootClassName:Rme}=Ff,Pme=React__namespace.useContext(DisabledContext),$me=ome??Pme,[Dme,Mme]=useMergedState($_||[],{value:x_,postState:O0e=>O0e??[]}),[Nme,Ime]=React__namespace.useState("drop"),wme=React__namespace.useRef(null),Ome=React__namespace.useRef(null);if(process.env.NODE_ENV!=="production"){const O0e=devUseWarning("Upload");process.env.NODE_ENV!=="production"&&O0e("fileList"in Ff||!("value"in Ff),"usage","`value` is not a valid prop, do you mean `fileList`?"),O0e.deprecated(!("transformFile"in Ff),"transformFile","beforeUpload")}React__namespace.useMemo(()=>{const O0e=Date.now();(x_||[]).forEach((b0e,k0e)=>{!b0e.uid&&!Object.isFrozen(b0e)&&(b0e.uid=`__AUTO__${O0e}_${k0e}__`)})},[x_]);const Ame=(O0e,b0e,k0e)=>{let T0e=_toConsumableArray(b0e),L0e=!1;mme===1?T0e=T0e.slice(-1):mme&&(L0e=T0e.length>mme,T0e=T0e.slice(0,mme)),ReactDOM.flushSync(()=>{Mme(T0e)});const Y0e={file:O0e,fileList:T0e};k0e&&(Y0e.event=k0e),(!L0e||O0e.status==="removed"||T0e.some(mye=>mye.uid===O0e.uid))&&ReactDOM.flushSync(()=>{nme==null||nme(Y0e)})},Fme=(O0e,b0e)=>__awaiter(void 0,void 0,void 0,function*(){const{beforeUpload:k0e,transformFile:T0e}=Ff;let L0e=O0e;if(k0e){const Y0e=yield k0e(O0e,b0e);if(Y0e===!1)return!1;if(delete O0e[LIST_IGNORE],Y0e===LIST_IGNORE)return Object.defineProperty(O0e,LIST_IGNORE,{value:!0,configurable:!0}),!1;typeof Y0e=="object"&&Y0e&&(L0e=Y0e)}return T0e&&(L0e=yield T0e(L0e)),L0e}),Bme=O0e=>{const b0e=O0e.filter(L0e=>!L0e.file[LIST_IGNORE]);if(!b0e.length)return;const k0e=b0e.map(L0e=>file2Obj(L0e.file));let T0e=_toConsumableArray(Dme);k0e.forEach(L0e=>{T0e=updateFileList(L0e,T0e)}),k0e.forEach((L0e,Y0e)=>{let mye=L0e;if(b0e[Y0e].parsedFile)L0e.status="uploading";else{const{originFileObj:Q0e}=L0e;let U0e;try{U0e=new File([Q0e],Q0e.name,{type:Q0e.type})}catch{U0e=new Blob([Q0e],{type:Q0e.type}),U0e.name=Q0e.name,U0e.lastModifiedDate=new Date,U0e.lastModified=new Date().getTime()}U0e.uid=L0e.uid,mye=U0e}Ame(mye,T0e)})},kme=(O0e,b0e,k0e)=>{try{typeof O0e=="string"&&(O0e=JSON.parse(O0e))}catch{}if(!getFileItem(b0e,Dme))return;const T0e=file2Obj(b0e);T0e.status="done",T0e.percent=100,T0e.response=O0e,T0e.xhr=k0e;const L0e=updateFileList(T0e,Dme);Ame(T0e,L0e)},Lme=(O0e,b0e)=>{if(!getFileItem(b0e,Dme))return;const k0e=file2Obj(b0e);k0e.status="uploading",k0e.percent=O0e.percent;const T0e=updateFileList(k0e,Dme);Ame(k0e,T0e,O0e)},Hme=(O0e,b0e,k0e)=>{if(!getFileItem(k0e,Dme))return;const T0e=file2Obj(k0e);T0e.error=O0e,T0e.response=b0e,T0e.status="error";const L0e=updateFileList(T0e,Dme);Ame(T0e,L0e)},Wme=O0e=>{let b0e;Promise.resolve(typeof B_=="function"?B_(O0e):B_).then(k0e=>{var T0e;if(k0e===!1)return;const L0e=removeFileItem(O0e,Dme);L0e&&(b0e=Object.assign(Object.assign({},O0e),{status:"removed"}),Dme==null||Dme.forEach(Y0e=>{const mye=b0e.uid!==void 0?"uid":"name";Y0e[mye]===b0e[mye]&&!Object.isFrozen(Y0e)&&(Y0e.status="removed")}),(T0e=wme.current)===null||T0e===void 0||T0e.abort(b0e),Ame(b0e,L0e))})},zme=O0e=>{Ime(O0e.type),O0e.type==="drop"&&(rme==null||rme(O0e))};React__namespace.useImperativeHandle(kh,()=>({onBatchStart:Bme,onSuccess:kme,onProgress:Lme,onError:Hme,fileList:Dme,upload:wme.current,nativeElement:Ome.current}));const{getPrefixCls:Vme,direction:Xme,upload:e0e}=React__namespace.useContext(ConfigContext),Ume=Vme("upload",fme),Jme=Object.assign(Object.assign({onBatchStart:Bme,onError:Hme,onProgress:Lme,onSuccess:kme},Ff),{data:bme,multiple:Sme,action:Cme,accept:Eme,supportServerRender:Tme,prefixCls:Ume,disabled:$me,beforeUpload:Fme,onChange:void 0,hasControlInside:_me});delete Jme.className,delete Jme.style,(!pme||$me)&&delete Jme.id;const s0e=`${Ume}-wrapper`,[d0e,Zme,Qme]=useStyle(Ume,s0e),[a0e]=useLocale$1("Upload",localeValues.Upload),{showRemoveIcon:t0e,showPreviewIcon:o0e,showDownloadIcon:g0e,removeIcon:u0e,previewIcon:h0e,downloadIcon:E0e}=typeof $P=="boolean"?{}:$P,P0e=typeof t0e>"u"?!$me:!!t0e,y0e=(O0e,b0e)=>$P?React__namespace.createElement(UploadList,{prefixCls:Ume,listType:zP,items:Dme,previewFile:ame,onPreview:eme,onDownload:tme,onRemove:Wme,showRemoveIcon:P0e,showPreviewIcon:o0e,showDownloadIcon:g0e,removeIcon:u0e,previewIcon:h0e,downloadIcon:E0e,iconRender:cme,locale:Object.assign(Object.assign({},a0e),ime),isImageUrl:ume,progress:sme,appendAction:O0e,appendActionVisible:b0e,itemRender:yme,disabled:$me}):O0e,$0e=classNames(s0e,lme,Rme,Zme,Qme,e0e==null?void 0:e0e.className,{[`${Ume}-rtl`]:Xme==="rtl",[`${Ume}-picture-card-wrapper`]:zP==="picture-card",[`${Ume}-picture-circle-wrapper`]:zP==="picture-circle"}),C0e=Object.assign(Object.assign({},e0e==null?void 0:e0e.style),gme);if(hme==="drag"){const O0e=classNames(Zme,Ume,`${Ume}-drag`,{[`${Ume}-drag-uploading`]:Dme.some(b0e=>b0e.status==="uploading"),[`${Ume}-drag-hover`]:Nme==="dragover",[`${Ume}-disabled`]:$me,[`${Ume}-rtl`]:Xme==="rtl"});return d0e(React__namespace.createElement("span",{className:$0e,ref:Ome},React__namespace.createElement("div",{className:O0e,style:C0e,onDrop:zme,onDragOver:zme,onDragLeave:zme},React__namespace.createElement(Upload$2,Object.assign({},Jme,{ref:wme,className:`${Ume}-btn`}),React__namespace.createElement("div",{className:`${Ume}-drag-container`},pme))),y0e()))}const z0e=classNames(Ume,`${Ume}-select`,{[`${Ume}-disabled`]:$me}),D0e=React__namespace.createElement("div",{className:z0e,style:pme?void 0:{display:"none"}},React__namespace.createElement(Upload$2,Object.assign({},Jme,{ref:wme})));return d0e(zP==="picture-card"||zP==="picture-circle"?React__namespace.createElement("span",{className:$0e,ref:Ome},y0e(D0e,!!pme)):React__namespace.createElement("span",{className:$0e,ref:Ome},D0e,y0e()))},Upload$1=React__namespace.forwardRef(InternalUpload);process.env.NODE_ENV!=="production"&&(Upload$1.displayName="Upload");var __rest=function(Ff,kh){var x_={};for(var $_ in Ff)Object.prototype.hasOwnProperty.call(Ff,$_)&&kh.indexOf($_)<0&&(x_[$_]=Ff[$_]);if(Ff!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B_=0,$_=Object.getOwnPropertySymbols(Ff);B_<$_.length;B_++)kh.indexOf($_[B_])<0&&Object.prototype.propertyIsEnumerable.call(Ff,$_[B_])&&(x_[$_[B_]]=Ff[$_[B_]]);return x_};const Dragger=React__namespace.forwardRef((Ff,kh)=>{var{style:x_,height:$_,hasControlInside:B_=!1}=Ff,$P=__rest(Ff,["style","height","hasControlInside"]);return React__namespace.createElement(Upload$1,Object.assign({ref:kh,hasControlInside:B_},$P,{type:"drag",style:Object.assign(Object.assign({},x_),{height:$_})}))});process.env.NODE_ENV!=="production"&&(Dragger.displayName="Dragger");const Upload=Upload$1;Upload.Dragger=Dragger;Upload.LIST_IGNORE=LIST_IGNORE;const BaseWrapper=function(kh){let{label:x_,children:$_,prompt:B_,subTable:$P,hidePrompt:zP=!1,subTableIndex:eme,addWrapper:tme=!0,...nme}=kh;return tme?$P?jsxRuntimeExports.jsxs("div",{className:"frelative fw-full",children:[x_&&eme===0&&jsxRuntimeExports.jsx("div",{className:"fh-12 ffont-semibold fbg-gray-100 ftext-sm fflex fjustify-between fitems-center fpx-2 fborder-b",children:x_}),jsxRuntimeExports.jsx("div",{className:"fw-full fflex fitems-stretch fp-2 ",children:$_})]}):jsxRuntimeExports.jsxs("div",{className:"frelative",children:[x_&&jsxRuntimeExports.jsx("div",{className:"fh-8 ftext-gray-500 ftext-sm fflex fjustify-between fitems-center",children:x_}),jsxRuntimeExports.jsx("div",{className:"fw-full fflex fitems-stretch ftext-gray-900",children:$_}),!zP&&jsxRuntimeExports.jsx("div",{className:"ftext-xs ftext-gray-500 fmin-h-5 fflex fitems-center",children:B_})]}):$_};var lodash={exports:{}};/**
317
+ * @license
318
+ * Lodash <https://lodash.com/>
319
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
320
+ * Released under MIT license <https://lodash.com/license>
321
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
322
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
323
+ */lodash.exports;(function(Ff,kh){(function(){var x_,$_="4.17.21",B_=200,$P="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",zP="Expected a function",eme="Invalid `variable` option passed into `_.template`",tme="__lodash_hash_undefined__",nme=500,rme="__lodash_placeholder__",ame=1,ome=2,ime=4,cme=1,ume=2,sme=1,fme=2,lme=4,hme=8,pme=16,gme=32,yme=64,mme=128,bme=256,Sme=512,_me=30,Cme="...",Eme=800,Tme=16,Rme=1,Pme=2,$me=3,Dme=1/0,Mme=9007199254740991,Nme=17976931348623157e292,Ime=NaN,wme=4294967295,Ome=wme-1,Ame=wme>>>1,Fme=[["ary",mme],["bind",sme],["bindKey",fme],["curry",hme],["curryRight",pme],["flip",Sme],["partial",gme],["partialRight",yme],["rearg",bme]],Bme="[object Arguments]",kme="[object Array]",Lme="[object AsyncFunction]",Hme="[object Boolean]",Wme="[object Date]",zme="[object DOMException]",Vme="[object Error]",Xme="[object Function]",e0e="[object GeneratorFunction]",Ume="[object Map]",Jme="[object Number]",s0e="[object Null]",d0e="[object Object]",Zme="[object Promise]",Qme="[object Proxy]",a0e="[object RegExp]",t0e="[object Set]",o0e="[object String]",g0e="[object Symbol]",u0e="[object Undefined]",h0e="[object WeakMap]",E0e="[object WeakSet]",P0e="[object ArrayBuffer]",y0e="[object DataView]",$0e="[object Float32Array]",C0e="[object Float64Array]",z0e="[object Int8Array]",D0e="[object Int16Array]",O0e="[object Int32Array]",b0e="[object Uint8Array]",k0e="[object Uint8ClampedArray]",T0e="[object Uint16Array]",L0e="[object Uint32Array]",Y0e=/\b__p \+= '';/g,mye=/\b(__p \+=) '' \+/g,Q0e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U0e=/&(?:amp|lt|gt|quot|#39);/g,q0e=/[&<>"']/g,V0e=RegExp(U0e.source),X0e=RegExp(q0e.source),M0e=/<%-([\s\S]+?)%>/g,J0e=/<%([\s\S]+?)%>/g,aye=/<%=([\s\S]+?)%>/g,F0e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cye=/^\w*$/,yye=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W0e=/[\\^$.*+?()[\]{}|]/g,sye=RegExp(W0e.source),G0e=/^\s+/,hye=/\s/,wye=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Eye=/\{\n\/\* \[wrapped with (.+)\] \*/,Vye=/,? & /,r0e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,R0e=/[()=,{}\[\]\/\s]/,A0e=/\\(\\)?/g,n0e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,f0e=/\w*$/,m0e=/^[-+]0x[0-9a-f]+$/i,w0e=/^0b[01]+$/i,j0e=/^\[object .+?Constructor\]$/,_0e=/^0o[0-7]+$/i,Yme=/^(?:0|[1-9]\d*)$/,l0e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,S0e=/($^)/,I0e=/['\n\r\u2028\u2029\\]/g,Z0e="\\ud800-\\udfff",lye="\\u0300-\\u036f",Tye="\\ufe20-\\ufe2f",xye="\\u20d0-\\u20ff",Dye=lye+Tye+xye,Lye="\\u2700-\\u27bf",l1e="a-z\\xdf-\\xf6\\xf8-\\xff",Uye="\\xac\\xb1\\xd7\\xf7",Qye="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Sye="\\u2000-\\u206f",jye=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",qye="A-Z\\xc0-\\xd6\\xd8-\\xde",Rye="\\ufe0e\\ufe0f",Aye=Uye+Qye+Sye+jye,Oye="['’]",fye="["+Z0e+"]",gye="["+Aye+"]",Hye="["+Dye+"]",Xye="\\d+",Wye="["+Lye+"]",n1e="["+l1e+"]",bye="[^"+Z0e+Aye+Xye+Lye+l1e+qye+"]",dye="\\ud83c[\\udffb-\\udfff]",Yye="(?:"+Hye+"|"+dye+")",u1e="[^"+Z0e+"]",s1e="(?:\\ud83c[\\udde6-\\uddff]){2}",y1e="[\\ud800-\\udbff][\\udc00-\\udfff]",Pye="["+qye+"]",pye="\\u200d",kye="(?:"+n1e+"|"+bye+")",e1e="(?:"+Pye+"|"+bye+")",p1e="(?:"+Oye+"(?:d|ll|m|re|s|t|ve))?",rbe="(?:"+Oye+"(?:D|LL|M|RE|S|T|VE))?",abe=Yye+"?",hbe="["+Rye+"]?",Ebe="(?:"+pye+"(?:"+[u1e,s1e,y1e].join("|")+")"+hbe+abe+")*",Nbe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xbe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mbe=hbe+abe+Ebe,Zbe="(?:"+[Wye,s1e,y1e].join("|")+")"+Mbe,Qbe="(?:"+[u1e+Hye+"?",Hye,s1e,y1e,fye].join("|")+")",_ye=RegExp(Oye,"g"),Mye=RegExp(Hye,"g"),f1e=RegExp(dye+"(?="+dye+")|"+Qbe+Mbe,"g"),b1e=RegExp([Pye+"?"+n1e+"+"+p1e+"(?="+[gye,Pye,"$"].join("|")+")",e1e+"+"+rbe+"(?="+[gye,Pye+kye,"$"].join("|")+")",Pye+"?"+kye+"+"+p1e,Pye+"+"+rbe,Xbe,Nbe,Xye,Zbe].join("|"),"g"),h1e=RegExp("["+pye+Z0e+Dye+Rye+"]"),kbe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Jbe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],g_e=-1,a1e={};a1e[$0e]=a1e[C0e]=a1e[z0e]=a1e[D0e]=a1e[O0e]=a1e[b0e]=a1e[k0e]=a1e[T0e]=a1e[L0e]=!0,a1e[Bme]=a1e[kme]=a1e[P0e]=a1e[Hme]=a1e[y0e]=a1e[Wme]=a1e[Vme]=a1e[Xme]=a1e[Ume]=a1e[Jme]=a1e[d0e]=a1e[a0e]=a1e[t0e]=a1e[o0e]=a1e[h0e]=!1;var d1e={};d1e[Bme]=d1e[kme]=d1e[P0e]=d1e[y0e]=d1e[Hme]=d1e[Wme]=d1e[$0e]=d1e[C0e]=d1e[z0e]=d1e[D0e]=d1e[O0e]=d1e[Ume]=d1e[Jme]=d1e[d0e]=d1e[a0e]=d1e[t0e]=d1e[o0e]=d1e[g0e]=d1e[b0e]=d1e[k0e]=d1e[T0e]=d1e[L0e]=!0,d1e[Vme]=d1e[Xme]=d1e[h0e]=!1;var hEe={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},gEe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},vEe={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},mEe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yEe=parseFloat,bEe=parseInt,iCe=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_Ee=typeof self=="object"&&self&&self.Object===Object&&self,x1e=iCe||_Ee||Function("return this")(),tSe=kh&&!kh.nodeType&&kh,xbe=tSe&&!0&&Ff&&!Ff.nodeType&&Ff,sCe=xbe&&xbe.exports===tSe,nSe=sCe&&iCe.process,z1e=function(){try{var p0e=xbe&&xbe.require&&xbe.require("util").types;return p0e||nSe&&nSe.binding&&nSe.binding("util")}catch{}}(),lCe=z1e&&z1e.isArrayBuffer,uCe=z1e&&z1e.isDate,cCe=z1e&&z1e.isMap,fCe=z1e&&z1e.isRegExp,dCe=z1e&&z1e.isSet,pCe=z1e&&z1e.isTypedArray;function k1e(p0e,N0e,x0e){switch(x0e.length){case 0:return p0e.call(N0e);case 1:return p0e.call(N0e,x0e[0]);case 2:return p0e.call(N0e,x0e[0],x0e[1]);case 3:return p0e.call(N0e,x0e[0],x0e[1],x0e[2])}return p0e.apply(N0e,x0e)}function SEe(p0e,N0e,x0e,vye){for(var Fye=-1,r1e=p0e==null?0:p0e.length;++Fye<r1e;){var C1e=p0e[Fye];N0e(vye,C1e,x0e(C1e),p0e)}return vye}function V1e(p0e,N0e){for(var x0e=-1,vye=p0e==null?0:p0e.length;++x0e<vye&&N0e(p0e[x0e],x0e,p0e)!==!1;);return p0e}function CEe(p0e,N0e){for(var x0e=p0e==null?0:p0e.length;x0e--&&N0e(p0e[x0e],x0e,p0e)!==!1;);return p0e}function hCe(p0e,N0e){for(var x0e=-1,vye=p0e==null?0:p0e.length;++x0e<vye;)if(!N0e(p0e[x0e],x0e,p0e))return!1;return!0}function gbe(p0e,N0e){for(var x0e=-1,vye=p0e==null?0:p0e.length,Fye=0,r1e=[];++x0e<vye;){var C1e=p0e[x0e];N0e(C1e,x0e,p0e)&&(r1e[Fye++]=C1e)}return r1e}function v_e(p0e,N0e){var x0e=p0e==null?0:p0e.length;return!!x0e&&jbe(p0e,N0e,0)>-1}function rSe(p0e,N0e,x0e){for(var vye=-1,Fye=p0e==null?0:p0e.length;++vye<Fye;)if(x0e(N0e,p0e[vye]))return!0;return!1}function g1e(p0e,N0e){for(var x0e=-1,vye=p0e==null?0:p0e.length,Fye=Array(vye);++x0e<vye;)Fye[x0e]=N0e(p0e[x0e],x0e,p0e);return Fye}function vbe(p0e,N0e){for(var x0e=-1,vye=N0e.length,Fye=p0e.length;++x0e<vye;)p0e[Fye+x0e]=N0e[x0e];return p0e}function aSe(p0e,N0e,x0e,vye){var Fye=-1,r1e=p0e==null?0:p0e.length;for(vye&&r1e&&(x0e=p0e[++Fye]);++Fye<r1e;)x0e=N0e(x0e,p0e[Fye],Fye,p0e);return x0e}function wEe(p0e,N0e,x0e,vye){var Fye=p0e==null?0:p0e.length;for(vye&&Fye&&(x0e=p0e[--Fye]);Fye--;)x0e=N0e(x0e,p0e[Fye],Fye,p0e);return x0e}function oSe(p0e,N0e){for(var x0e=-1,vye=p0e==null?0:p0e.length;++x0e<vye;)if(N0e(p0e[x0e],x0e,p0e))return!0;return!1}var EEe=iSe("length");function xEe(p0e){return p0e.split("")}function REe(p0e){return p0e.match(r0e)||[]}function gCe(p0e,N0e,x0e){var vye;return x0e(p0e,function(Fye,r1e,C1e){if(N0e(Fye,r1e,C1e))return vye=r1e,!1}),vye}function m_e(p0e,N0e,x0e,vye){for(var Fye=p0e.length,r1e=x0e+(vye?1:-1);vye?r1e--:++r1e<Fye;)if(N0e(p0e[r1e],r1e,p0e))return r1e;return-1}function jbe(p0e,N0e,x0e){return N0e===N0e?FEe(p0e,N0e,x0e):m_e(p0e,vCe,x0e)}function OEe(p0e,N0e,x0e,vye){for(var Fye=x0e-1,r1e=p0e.length;++Fye<r1e;)if(vye(p0e[Fye],N0e))return Fye;return-1}function vCe(p0e){return p0e!==p0e}function mCe(p0e,N0e){var x0e=p0e==null?0:p0e.length;return x0e?lSe(p0e,N0e)/x0e:Ime}function iSe(p0e){return function(N0e){return N0e==null?x_:N0e[p0e]}}function sSe(p0e){return function(N0e){return p0e==null?x_:p0e[N0e]}}function yCe(p0e,N0e,x0e,vye,Fye){return Fye(p0e,function(r1e,C1e,c1e){x0e=vye?(vye=!1,r1e):N0e(x0e,r1e,C1e,c1e)}),x0e}function TEe(p0e,N0e){var x0e=p0e.length;for(p0e.sort(N0e);x0e--;)p0e[x0e]=p0e[x0e].value;return p0e}function lSe(p0e,N0e){for(var x0e,vye=-1,Fye=p0e.length;++vye<Fye;){var r1e=N0e(p0e[vye]);r1e!==x_&&(x0e=x0e===x_?r1e:x0e+r1e)}return x0e}function uSe(p0e,N0e){for(var x0e=-1,vye=Array(p0e);++x0e<p0e;)vye[x0e]=N0e(x0e);return vye}function PEe(p0e,N0e){return g1e(N0e,function(x0e){return[x0e,p0e[x0e]]})}function bCe(p0e){return p0e&&p0e.slice(0,wCe(p0e)+1).replace(G0e,"")}function j1e(p0e){return function(N0e){return p0e(N0e)}}function cSe(p0e,N0e){return g1e(N0e,function(x0e){return p0e[x0e]})}function e_e(p0e,N0e){return p0e.has(N0e)}function _Ce(p0e,N0e){for(var x0e=-1,vye=p0e.length;++x0e<vye&&jbe(N0e,p0e[x0e],0)>-1;);return x0e}function SCe(p0e,N0e){for(var x0e=p0e.length;x0e--&&jbe(N0e,p0e[x0e],0)>-1;);return x0e}function AEe(p0e,N0e){for(var x0e=p0e.length,vye=0;x0e--;)p0e[x0e]===N0e&&++vye;return vye}var $Ee=sSe(hEe),DEe=sSe(gEe);function IEe(p0e){return"\\"+mEe[p0e]}function NEe(p0e,N0e){return p0e==null?x_:p0e[N0e]}function Fbe(p0e){return h1e.test(p0e)}function MEe(p0e){return kbe.test(p0e)}function kEe(p0e){for(var N0e,x0e=[];!(N0e=p0e.next()).done;)x0e.push(N0e.value);return x0e}function fSe(p0e){var N0e=-1,x0e=Array(p0e.size);return p0e.forEach(function(vye,Fye){x0e[++N0e]=[Fye,vye]}),x0e}function CCe(p0e,N0e){return function(x0e){return p0e(N0e(x0e))}}function mbe(p0e,N0e){for(var x0e=-1,vye=p0e.length,Fye=0,r1e=[];++x0e<vye;){var C1e=p0e[x0e];(C1e===N0e||C1e===rme)&&(p0e[x0e]=rme,r1e[Fye++]=x0e)}return r1e}function y_e(p0e){var N0e=-1,x0e=Array(p0e.size);return p0e.forEach(function(vye){x0e[++N0e]=vye}),x0e}function jEe(p0e){var N0e=-1,x0e=Array(p0e.size);return p0e.forEach(function(vye){x0e[++N0e]=[vye,vye]}),x0e}function FEe(p0e,N0e,x0e){for(var vye=x0e-1,Fye=p0e.length;++vye<Fye;)if(p0e[vye]===N0e)return vye;return-1}function BEe(p0e,N0e,x0e){for(var vye=x0e+1;vye--;)if(p0e[vye]===N0e)return vye;return vye}function Bbe(p0e){return Fbe(p0e)?HEe(p0e):EEe(p0e)}function X1e(p0e){return Fbe(p0e)?zEe(p0e):xEe(p0e)}function wCe(p0e){for(var N0e=p0e.length;N0e--&&hye.test(p0e.charAt(N0e)););return N0e}var LEe=sSe(vEe);function HEe(p0e){for(var N0e=f1e.lastIndex=0;f1e.test(p0e);)++N0e;return N0e}function zEe(p0e){return p0e.match(f1e)||[]}function VEe(p0e){return p0e.match(b1e)||[]}var WEe=function p0e(N0e){N0e=N0e==null?x1e:Lbe.defaults(x1e.Object(),N0e,Lbe.pick(x1e,Jbe));var x0e=N0e.Array,vye=N0e.Date,Fye=N0e.Error,r1e=N0e.Function,C1e=N0e.Math,c1e=N0e.Object,dSe=N0e.RegExp,KEe=N0e.String,W1e=N0e.TypeError,b_e=x0e.prototype,UEe=r1e.prototype,Hbe=c1e.prototype,__e=N0e["__core-js_shared__"],S_e=UEe.toString,i1e=Hbe.hasOwnProperty,qEe=0,ECe=function(){var dme=/[^.]+$/.exec(__e&&__e.keys&&__e.keys.IE_PROTO||"");return dme?"Symbol(src)_1."+dme:""}(),C_e=Hbe.toString,GEe=S_e.call(c1e),YEe=x1e._,XEe=dSe("^"+S_e.call(i1e).replace(W0e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w_e=sCe?N0e.Buffer:x_,ybe=N0e.Symbol,E_e=N0e.Uint8Array,xCe=w_e?w_e.allocUnsafe:x_,x_e=CCe(c1e.getPrototypeOf,c1e),RCe=c1e.create,OCe=Hbe.propertyIsEnumerable,R_e=b_e.splice,TCe=ybe?ybe.isConcatSpreadable:x_,t_e=ybe?ybe.iterator:x_,Rbe=ybe?ybe.toStringTag:x_,O_e=function(){try{var dme=$be(c1e,"defineProperty");return dme({},"",{}),dme}catch{}}(),ZEe=N0e.clearTimeout!==x1e.clearTimeout&&N0e.clearTimeout,QEe=vye&&vye.now!==x1e.Date.now&&vye.now,JEe=N0e.setTimeout!==x1e.setTimeout&&N0e.setTimeout,T_e=C1e.ceil,P_e=C1e.floor,pSe=c1e.getOwnPropertySymbols,exe=w_e?w_e.isBuffer:x_,PCe=N0e.isFinite,txe=b_e.join,nxe=CCe(c1e.keys,c1e),w1e=C1e.max,O1e=C1e.min,rxe=vye.now,axe=N0e.parseInt,ACe=C1e.random,oxe=b_e.reverse,hSe=$be(N0e,"DataView"),n_e=$be(N0e,"Map"),gSe=$be(N0e,"Promise"),zbe=$be(N0e,"Set"),r_e=$be(N0e,"WeakMap"),a_e=$be(c1e,"create"),A_e=r_e&&new r_e,Vbe={},ixe=Dbe(hSe),sxe=Dbe(n_e),lxe=Dbe(gSe),uxe=Dbe(zbe),cxe=Dbe(r_e),$_e=ybe?ybe.prototype:x_,o_e=$_e?$_e.valueOf:x_,$Ce=$_e?$_e.toString:x_;function qme(dme){if(m1e(dme)&&!Bye(dme)&&!(dme instanceof Jye)){if(dme instanceof K1e)return dme;if(i1e.call(dme,"__wrapped__"))return Dwe(dme)}return new K1e(dme)}var Wbe=function(){function dme(){}return function(vme){if(!v1e(vme))return{};if(RCe)return RCe(vme);dme.prototype=vme;var xme=new dme;return dme.prototype=x_,xme}}();function D_e(){}function K1e(dme,vme){this.__wrapped__=dme,this.__actions__=[],this.__chain__=!!vme,this.__index__=0,this.__values__=x_}qme.templateSettings={escape:M0e,evaluate:J0e,interpolate:aye,variable:"",imports:{_:qme}},qme.prototype=D_e.prototype,qme.prototype.constructor=qme,K1e.prototype=Wbe(D_e.prototype),K1e.prototype.constructor=K1e;function Jye(dme){this.__wrapped__=dme,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=wme,this.__views__=[]}function fxe(){var dme=new Jye(this.__wrapped__);return dme.__actions__=D1e(this.__actions__),dme.__dir__=this.__dir__,dme.__filtered__=this.__filtered__,dme.__iteratees__=D1e(this.__iteratees__),dme.__takeCount__=this.__takeCount__,dme.__views__=D1e(this.__views__),dme}function dxe(){if(this.__filtered__){var dme=new Jye(this);dme.__dir__=-1,dme.__filtered__=!0}else dme=this.clone(),dme.__dir__*=-1;return dme}function pxe(){var dme=this.__wrapped__.value(),vme=this.__dir__,xme=Bye(dme),jme=vme<0,Kme=xme?dme.length:0,Gme=x2e(0,Kme,this.__views__),i0e=Gme.start,c0e=Gme.end,v0e=c0e-i0e,B0e=jme?c0e:i0e-1,H0e=this.__iteratees__,K0e=H0e.length,uye=0,Cye=O1e(v0e,this.__takeCount__);if(!xme||!jme&&Kme==v0e&&Cye==v0e)return twe(dme,this.__actions__);var Iye=[];e:for(;v0e--&&uye<Cye;){B0e+=vme;for(var Kye=-1,Nye=dme[B0e];++Kye<K0e;){var Zye=H0e[Kye],t1e=Zye.iteratee,L1e=Zye.type,$1e=t1e(Nye);if(L1e==Pme)Nye=$1e;else if(!$1e){if(L1e==Rme)continue e;break e}}Iye[uye++]=Nye}return Iye}Jye.prototype=Wbe(D_e.prototype),Jye.prototype.constructor=Jye;function Obe(dme){var vme=-1,xme=dme==null?0:dme.length;for(this.clear();++vme<xme;){var jme=dme[vme];this.set(jme[0],jme[1])}}function hxe(){this.__data__=a_e?a_e(null):{},this.size=0}function gxe(dme){var vme=this.has(dme)&&delete this.__data__[dme];return this.size-=vme?1:0,vme}function vxe(dme){var vme=this.__data__;if(a_e){var xme=vme[dme];return xme===tme?x_:xme}return i1e.call(vme,dme)?vme[dme]:x_}function mxe(dme){var vme=this.__data__;return a_e?vme[dme]!==x_:i1e.call(vme,dme)}function yxe(dme,vme){var xme=this.__data__;return this.size+=this.has(dme)?0:1,xme[dme]=a_e&&vme===x_?tme:vme,this}Obe.prototype.clear=hxe,Obe.prototype.delete=gxe,Obe.prototype.get=vxe,Obe.prototype.has=mxe,Obe.prototype.set=yxe;function obe(dme){var vme=-1,xme=dme==null?0:dme.length;for(this.clear();++vme<xme;){var jme=dme[vme];this.set(jme[0],jme[1])}}function bxe(){this.__data__=[],this.size=0}function _xe(dme){var vme=this.__data__,xme=I_e(vme,dme);if(xme<0)return!1;var jme=vme.length-1;return xme==jme?vme.pop():R_e.call(vme,xme,1),--this.size,!0}function Sxe(dme){var vme=this.__data__,xme=I_e(vme,dme);return xme<0?x_:vme[xme][1]}function Cxe(dme){return I_e(this.__data__,dme)>-1}function wxe(dme,vme){var xme=this.__data__,jme=I_e(xme,dme);return jme<0?(++this.size,xme.push([dme,vme])):xme[jme][1]=vme,this}obe.prototype.clear=bxe,obe.prototype.delete=_xe,obe.prototype.get=Sxe,obe.prototype.has=Cxe,obe.prototype.set=wxe;function ibe(dme){var vme=-1,xme=dme==null?0:dme.length;for(this.clear();++vme<xme;){var jme=dme[vme];this.set(jme[0],jme[1])}}function Exe(){this.size=0,this.__data__={hash:new Obe,map:new(n_e||obe),string:new Obe}}function xxe(dme){var vme=K_e(this,dme).delete(dme);return this.size-=vme?1:0,vme}function Rxe(dme){return K_e(this,dme).get(dme)}function Oxe(dme){return K_e(this,dme).has(dme)}function Txe(dme,vme){var xme=K_e(this,dme),jme=xme.size;return xme.set(dme,vme),this.size+=xme.size==jme?0:1,this}ibe.prototype.clear=Exe,ibe.prototype.delete=xxe,ibe.prototype.get=Rxe,ibe.prototype.has=Oxe,ibe.prototype.set=Txe;function Tbe(dme){var vme=-1,xme=dme==null?0:dme.length;for(this.__data__=new ibe;++vme<xme;)this.add(dme[vme])}function Pxe(dme){return this.__data__.set(dme,tme),this}function Axe(dme){return this.__data__.has(dme)}Tbe.prototype.add=Tbe.prototype.push=Pxe,Tbe.prototype.has=Axe;function Z1e(dme){var vme=this.__data__=new obe(dme);this.size=vme.size}function $xe(){this.__data__=new obe,this.size=0}function Dxe(dme){var vme=this.__data__,xme=vme.delete(dme);return this.size=vme.size,xme}function Ixe(dme){return this.__data__.get(dme)}function Nxe(dme){return this.__data__.has(dme)}function Mxe(dme,vme){var xme=this.__data__;if(xme instanceof obe){var jme=xme.__data__;if(!n_e||jme.length<B_-1)return jme.push([dme,vme]),this.size=++xme.size,this;xme=this.__data__=new ibe(jme)}return xme.set(dme,vme),this.size=xme.size,this}Z1e.prototype.clear=$xe,Z1e.prototype.delete=Dxe,Z1e.prototype.get=Ixe,Z1e.prototype.has=Nxe,Z1e.prototype.set=Mxe;function DCe(dme,vme){var xme=Bye(dme),jme=!xme&&Ibe(dme),Kme=!xme&&!jme&&wbe(dme),Gme=!xme&&!jme&&!Kme&&Gbe(dme),i0e=xme||jme||Kme||Gme,c0e=i0e?uSe(dme.length,KEe):[],v0e=c0e.length;for(var B0e in dme)(vme||i1e.call(dme,B0e))&&!(i0e&&(B0e=="length"||Kme&&(B0e=="offset"||B0e=="parent")||Gme&&(B0e=="buffer"||B0e=="byteLength"||B0e=="byteOffset")||cbe(B0e,v0e)))&&c0e.push(B0e);return c0e}function ICe(dme){var vme=dme.length;return vme?dme[RSe(0,vme-1)]:x_}function kxe(dme,vme){return U_e(D1e(dme),Pbe(vme,0,dme.length))}function jxe(dme){return U_e(D1e(dme))}function vSe(dme,vme,xme){(xme!==x_&&!Q1e(dme[vme],xme)||xme===x_&&!(vme in dme))&&sbe(dme,vme,xme)}function i_e(dme,vme,xme){var jme=dme[vme];(!(i1e.call(dme,vme)&&Q1e(jme,xme))||xme===x_&&!(vme in dme))&&sbe(dme,vme,xme)}function I_e(dme,vme){for(var xme=dme.length;xme--;)if(Q1e(dme[xme][0],vme))return xme;return-1}function Fxe(dme,vme,xme,jme){return bbe(dme,function(Kme,Gme,i0e){vme(jme,Kme,xme(Kme),i0e)}),jme}function NCe(dme,vme){return dme&&tbe(vme,E1e(vme),dme)}function Bxe(dme,vme){return dme&&tbe(vme,N1e(vme),dme)}function sbe(dme,vme,xme){vme=="__proto__"&&O_e?O_e(dme,vme,{configurable:!0,enumerable:!0,value:xme,writable:!0}):dme[vme]=xme}function mSe(dme,vme){for(var xme=-1,jme=vme.length,Kme=x0e(jme),Gme=dme==null;++xme<jme;)Kme[xme]=Gme?x_:ZSe(dme,vme[xme]);return Kme}function Pbe(dme,vme,xme){return dme===dme&&(xme!==x_&&(dme=dme<=xme?dme:xme),vme!==x_&&(dme=dme>=vme?dme:vme)),dme}function U1e(dme,vme,xme,jme,Kme,Gme){var i0e,c0e=vme&ame,v0e=vme&ome,B0e=vme&ime;if(xme&&(i0e=Kme?xme(dme,jme,Kme,Gme):xme(dme)),i0e!==x_)return i0e;if(!v1e(dme))return dme;var H0e=Bye(dme);if(H0e){if(i0e=O2e(dme),!c0e)return D1e(dme,i0e)}else{var K0e=T1e(dme),uye=K0e==Xme||K0e==e0e;if(wbe(dme))return awe(dme,c0e);if(K0e==d0e||K0e==Bme||uye&&!Kme){if(i0e=v0e||uye?{}:wwe(dme),!c0e)return v0e?v2e(dme,Bxe(i0e,dme)):g2e(dme,NCe(i0e,dme))}else{if(!d1e[K0e])return Kme?dme:{};i0e=T2e(dme,K0e,c0e)}}Gme||(Gme=new Z1e);var Cye=Gme.get(dme);if(Cye)return Cye;Gme.set(dme,i0e),Qwe(dme)?dme.forEach(function(Nye){i0e.add(U1e(Nye,vme,xme,Nye,dme,Gme))}):Xwe(dme)&&dme.forEach(function(Nye,Zye){i0e.set(Zye,U1e(Nye,vme,xme,Zye,dme,Gme))});var Iye=B0e?v0e?jSe:kSe:v0e?N1e:E1e,Kye=H0e?x_:Iye(dme);return V1e(Kye||dme,function(Nye,Zye){Kye&&(Zye=Nye,Nye=dme[Zye]),i_e(i0e,Zye,U1e(Nye,vme,xme,Zye,dme,Gme))}),i0e}function Lxe(dme){var vme=E1e(dme);return function(xme){return MCe(xme,dme,vme)}}function MCe(dme,vme,xme){var jme=xme.length;if(dme==null)return!jme;for(dme=c1e(dme);jme--;){var Kme=xme[jme],Gme=vme[Kme],i0e=dme[Kme];if(i0e===x_&&!(Kme in dme)||!Gme(i0e))return!1}return!0}function kCe(dme,vme,xme){if(typeof dme!="function")throw new W1e(zP);return p_e(function(){dme.apply(x_,xme)},vme)}function s_e(dme,vme,xme,jme){var Kme=-1,Gme=v_e,i0e=!0,c0e=dme.length,v0e=[],B0e=vme.length;if(!c0e)return v0e;xme&&(vme=g1e(vme,j1e(xme))),jme?(Gme=rSe,i0e=!1):vme.length>=B_&&(Gme=e_e,i0e=!1,vme=new Tbe(vme));e:for(;++Kme<c0e;){var H0e=dme[Kme],K0e=xme==null?H0e:xme(H0e);if(H0e=jme||H0e!==0?H0e:0,i0e&&K0e===K0e){for(var uye=B0e;uye--;)if(vme[uye]===K0e)continue e;v0e.push(H0e)}else Gme(vme,K0e,jme)||v0e.push(H0e)}return v0e}var bbe=uwe(ebe),jCe=uwe(bSe,!0);function Hxe(dme,vme){var xme=!0;return bbe(dme,function(jme,Kme,Gme){return xme=!!vme(jme,Kme,Gme),xme}),xme}function N_e(dme,vme,xme){for(var jme=-1,Kme=dme.length;++jme<Kme;){var Gme=dme[jme],i0e=vme(Gme);if(i0e!=null&&(c0e===x_?i0e===i0e&&!B1e(i0e):xme(i0e,c0e)))var c0e=i0e,v0e=Gme}return v0e}function zxe(dme,vme,xme,jme){var Kme=dme.length;for(xme=zye(xme),xme<0&&(xme=-xme>Kme?0:Kme+xme),jme=jme===x_||jme>Kme?Kme:zye(jme),jme<0&&(jme+=Kme),jme=xme>jme?0:eEe(jme);xme<jme;)dme[xme++]=vme;return dme}function FCe(dme,vme){var xme=[];return bbe(dme,function(jme,Kme,Gme){vme(jme,Kme,Gme)&&xme.push(jme)}),xme}function R1e(dme,vme,xme,jme,Kme){var Gme=-1,i0e=dme.length;for(xme||(xme=A2e),Kme||(Kme=[]);++Gme<i0e;){var c0e=dme[Gme];vme>0&&xme(c0e)?vme>1?R1e(c0e,vme-1,xme,jme,Kme):vbe(Kme,c0e):jme||(Kme[Kme.length]=c0e)}return Kme}var ySe=cwe(),BCe=cwe(!0);function ebe(dme,vme){return dme&&ySe(dme,vme,E1e)}function bSe(dme,vme){return dme&&BCe(dme,vme,E1e)}function M_e(dme,vme){return gbe(vme,function(xme){return fbe(dme[xme])})}function Abe(dme,vme){vme=Sbe(vme,dme);for(var xme=0,jme=vme.length;dme!=null&&xme<jme;)dme=dme[nbe(vme[xme++])];return xme&&xme==jme?dme:x_}function LCe(dme,vme,xme){var jme=vme(dme);return Bye(dme)?jme:vbe(jme,xme(dme))}function P1e(dme){return dme==null?dme===x_?u0e:s0e:Rbe&&Rbe in c1e(dme)?E2e(dme):j2e(dme)}function _Se(dme,vme){return dme>vme}function Vxe(dme,vme){return dme!=null&&i1e.call(dme,vme)}function Wxe(dme,vme){return dme!=null&&vme in c1e(dme)}function Kxe(dme,vme,xme){return dme>=O1e(vme,xme)&&dme<w1e(vme,xme)}function SSe(dme,vme,xme){for(var jme=xme?rSe:v_e,Kme=dme[0].length,Gme=dme.length,i0e=Gme,c0e=x0e(Gme),v0e=1/0,B0e=[];i0e--;){var H0e=dme[i0e];i0e&&vme&&(H0e=g1e(H0e,j1e(vme))),v0e=O1e(H0e.length,v0e),c0e[i0e]=!xme&&(vme||Kme>=120&&H0e.length>=120)?new Tbe(i0e&&H0e):x_}H0e=dme[0];var K0e=-1,uye=c0e[0];e:for(;++K0e<Kme&&B0e.length<v0e;){var Cye=H0e[K0e],Iye=vme?vme(Cye):Cye;if(Cye=xme||Cye!==0?Cye:0,!(uye?e_e(uye,Iye):jme(B0e,Iye,xme))){for(i0e=Gme;--i0e;){var Kye=c0e[i0e];if(!(Kye?e_e(Kye,Iye):jme(dme[i0e],Iye,xme)))continue e}uye&&uye.push(Iye),B0e.push(Cye)}}return B0e}function Uxe(dme,vme,xme,jme){return ebe(dme,function(Kme,Gme,i0e){vme(jme,xme(Kme),Gme,i0e)}),jme}function l_e(dme,vme,xme){vme=Sbe(vme,dme),dme=Owe(dme,vme);var jme=dme==null?dme:dme[nbe(G1e(vme))];return jme==null?x_:k1e(jme,dme,xme)}function HCe(dme){return m1e(dme)&&P1e(dme)==Bme}function qxe(dme){return m1e(dme)&&P1e(dme)==P0e}function Gxe(dme){return m1e(dme)&&P1e(dme)==Wme}function u_e(dme,vme,xme,jme,Kme){return dme===vme?!0:dme==null||vme==null||!m1e(dme)&&!m1e(vme)?dme!==dme&&vme!==vme:Yxe(dme,vme,xme,jme,u_e,Kme)}function Yxe(dme,vme,xme,jme,Kme,Gme){var i0e=Bye(dme),c0e=Bye(vme),v0e=i0e?kme:T1e(dme),B0e=c0e?kme:T1e(vme);v0e=v0e==Bme?d0e:v0e,B0e=B0e==Bme?d0e:B0e;var H0e=v0e==d0e,K0e=B0e==d0e,uye=v0e==B0e;if(uye&&wbe(dme)){if(!wbe(vme))return!1;i0e=!0,H0e=!1}if(uye&&!H0e)return Gme||(Gme=new Z1e),i0e||Gbe(dme)?_we(dme,vme,xme,jme,Kme,Gme):C2e(dme,vme,v0e,xme,jme,Kme,Gme);if(!(xme&cme)){var Cye=H0e&&i1e.call(dme,"__wrapped__"),Iye=K0e&&i1e.call(vme,"__wrapped__");if(Cye||Iye){var Kye=Cye?dme.value():dme,Nye=Iye?vme.value():vme;return Gme||(Gme=new Z1e),Kme(Kye,Nye,xme,jme,Gme)}}return uye?(Gme||(Gme=new Z1e),w2e(dme,vme,xme,jme,Kme,Gme)):!1}function Xxe(dme){return m1e(dme)&&T1e(dme)==Ume}function CSe(dme,vme,xme,jme){var Kme=xme.length,Gme=Kme,i0e=!jme;if(dme==null)return!Gme;for(dme=c1e(dme);Kme--;){var c0e=xme[Kme];if(i0e&&c0e[2]?c0e[1]!==dme[c0e[0]]:!(c0e[0]in dme))return!1}for(;++Kme<Gme;){c0e=xme[Kme];var v0e=c0e[0],B0e=dme[v0e],H0e=c0e[1];if(i0e&&c0e[2]){if(B0e===x_&&!(v0e in dme))return!1}else{var K0e=new Z1e;if(jme)var uye=jme(B0e,H0e,v0e,dme,vme,K0e);if(!(uye===x_?u_e(H0e,B0e,cme|ume,jme,K0e):uye))return!1}}return!0}function zCe(dme){if(!v1e(dme)||D2e(dme))return!1;var vme=fbe(dme)?XEe:j0e;return vme.test(Dbe(dme))}function Zxe(dme){return m1e(dme)&&P1e(dme)==a0e}function Qxe(dme){return m1e(dme)&&T1e(dme)==t0e}function Jxe(dme){return m1e(dme)&&Q_e(dme.length)&&!!a1e[P1e(dme)]}function VCe(dme){return typeof dme=="function"?dme:dme==null?M1e:typeof dme=="object"?Bye(dme)?UCe(dme[0],dme[1]):KCe(dme):fEe(dme)}function wSe(dme){if(!d_e(dme))return nxe(dme);var vme=[];for(var xme in c1e(dme))i1e.call(dme,xme)&&xme!="constructor"&&vme.push(xme);return vme}function e2e(dme){if(!v1e(dme))return k2e(dme);var vme=d_e(dme),xme=[];for(var jme in dme)jme=="constructor"&&(vme||!i1e.call(dme,jme))||xme.push(jme);return xme}function ESe(dme,vme){return dme<vme}function WCe(dme,vme){var xme=-1,jme=I1e(dme)?x0e(dme.length):[];return bbe(dme,function(Kme,Gme,i0e){jme[++xme]=vme(Kme,Gme,i0e)}),jme}function KCe(dme){var vme=BSe(dme);return vme.length==1&&vme[0][2]?xwe(vme[0][0],vme[0][1]):function(xme){return xme===dme||CSe(xme,dme,vme)}}function UCe(dme,vme){return HSe(dme)&&Ewe(vme)?xwe(nbe(dme),vme):function(xme){var jme=ZSe(xme,dme);return jme===x_&&jme===vme?QSe(xme,dme):u_e(vme,jme,cme|ume)}}function k_e(dme,vme,xme,jme,Kme){dme!==vme&&ySe(vme,function(Gme,i0e){if(Kme||(Kme=new Z1e),v1e(Gme))t2e(dme,vme,i0e,xme,k_e,jme,Kme);else{var c0e=jme?jme(VSe(dme,i0e),Gme,i0e+"",dme,vme,Kme):x_;c0e===x_&&(c0e=Gme),vSe(dme,i0e,c0e)}},N1e)}function t2e(dme,vme,xme,jme,Kme,Gme,i0e){var c0e=VSe(dme,xme),v0e=VSe(vme,xme),B0e=i0e.get(v0e);if(B0e){vSe(dme,xme,B0e);return}var H0e=Gme?Gme(c0e,v0e,xme+"",dme,vme,i0e):x_,K0e=H0e===x_;if(K0e){var uye=Bye(v0e),Cye=!uye&&wbe(v0e),Iye=!uye&&!Cye&&Gbe(v0e);H0e=v0e,uye||Cye||Iye?Bye(c0e)?H0e=c0e:_1e(c0e)?H0e=D1e(c0e):Cye?(K0e=!1,H0e=awe(v0e,!0)):Iye?(K0e=!1,H0e=owe(v0e,!0)):H0e=[]:h_e(v0e)||Ibe(v0e)?(H0e=c0e,Ibe(c0e)?H0e=tEe(c0e):(!v1e(c0e)||fbe(c0e))&&(H0e=wwe(v0e))):K0e=!1}K0e&&(i0e.set(v0e,H0e),Kme(H0e,v0e,jme,Gme,i0e),i0e.delete(v0e)),vSe(dme,xme,H0e)}function qCe(dme,vme){var xme=dme.length;if(xme)return vme+=vme<0?xme:0,cbe(vme,xme)?dme[vme]:x_}function GCe(dme,vme,xme){vme.length?vme=g1e(vme,function(Gme){return Bye(Gme)?function(i0e){return Abe(i0e,Gme.length===1?Gme[0]:Gme)}:Gme}):vme=[M1e];var jme=-1;vme=g1e(vme,j1e($ye()));var Kme=WCe(dme,function(Gme,i0e,c0e){var v0e=g1e(vme,function(B0e){return B0e(Gme)});return{criteria:v0e,index:++jme,value:Gme}});return TEe(Kme,function(Gme,i0e){return h2e(Gme,i0e,xme)})}function n2e(dme,vme){return YCe(dme,vme,function(xme,jme){return QSe(dme,jme)})}function YCe(dme,vme,xme){for(var jme=-1,Kme=vme.length,Gme={};++jme<Kme;){var i0e=vme[jme],c0e=Abe(dme,i0e);xme(c0e,i0e)&&c_e(Gme,Sbe(i0e,dme),c0e)}return Gme}function r2e(dme){return function(vme){return Abe(vme,dme)}}function xSe(dme,vme,xme,jme){var Kme=jme?OEe:jbe,Gme=-1,i0e=vme.length,c0e=dme;for(dme===vme&&(vme=D1e(vme)),xme&&(c0e=g1e(dme,j1e(xme)));++Gme<i0e;)for(var v0e=0,B0e=vme[Gme],H0e=xme?xme(B0e):B0e;(v0e=Kme(c0e,H0e,v0e,jme))>-1;)c0e!==dme&&R_e.call(c0e,v0e,1),R_e.call(dme,v0e,1);return dme}function XCe(dme,vme){for(var xme=dme?vme.length:0,jme=xme-1;xme--;){var Kme=vme[xme];if(xme==jme||Kme!==Gme){var Gme=Kme;cbe(Kme)?R_e.call(dme,Kme,1):PSe(dme,Kme)}}return dme}function RSe(dme,vme){return dme+P_e(ACe()*(vme-dme+1))}function a2e(dme,vme,xme,jme){for(var Kme=-1,Gme=w1e(T_e((vme-dme)/(xme||1)),0),i0e=x0e(Gme);Gme--;)i0e[jme?Gme:++Kme]=dme,dme+=xme;return i0e}function OSe(dme,vme){var xme="";if(!dme||vme<1||vme>Mme)return xme;do vme%2&&(xme+=dme),vme=P_e(vme/2),vme&&(dme+=dme);while(vme);return xme}function Gye(dme,vme){return WSe(Rwe(dme,vme,M1e),dme+"")}function o2e(dme){return ICe(Ybe(dme))}function i2e(dme,vme){var xme=Ybe(dme);return U_e(xme,Pbe(vme,0,xme.length))}function c_e(dme,vme,xme,jme){if(!v1e(dme))return dme;vme=Sbe(vme,dme);for(var Kme=-1,Gme=vme.length,i0e=Gme-1,c0e=dme;c0e!=null&&++Kme<Gme;){var v0e=nbe(vme[Kme]),B0e=xme;if(v0e==="__proto__"||v0e==="constructor"||v0e==="prototype")return dme;if(Kme!=i0e){var H0e=c0e[v0e];B0e=jme?jme(H0e,v0e,c0e):x_,B0e===x_&&(B0e=v1e(H0e)?H0e:cbe(vme[Kme+1])?[]:{})}i_e(c0e,v0e,B0e),c0e=c0e[v0e]}return dme}var ZCe=A_e?function(dme,vme){return A_e.set(dme,vme),dme}:M1e,s2e=O_e?function(dme,vme){return O_e(dme,"toString",{configurable:!0,enumerable:!1,value:eCe(vme),writable:!0})}:M1e;function l2e(dme){return U_e(Ybe(dme))}function q1e(dme,vme,xme){var jme=-1,Kme=dme.length;vme<0&&(vme=-vme>Kme?0:Kme+vme),xme=xme>Kme?Kme:xme,xme<0&&(xme+=Kme),Kme=vme>xme?0:xme-vme>>>0,vme>>>=0;for(var Gme=x0e(Kme);++jme<Kme;)Gme[jme]=dme[jme+vme];return Gme}function u2e(dme,vme){var xme;return bbe(dme,function(jme,Kme,Gme){return xme=vme(jme,Kme,Gme),!xme}),!!xme}function j_e(dme,vme,xme){var jme=0,Kme=dme==null?jme:dme.length;if(typeof vme=="number"&&vme===vme&&Kme<=Ame){for(;jme<Kme;){var Gme=jme+Kme>>>1,i0e=dme[Gme];i0e!==null&&!B1e(i0e)&&(xme?i0e<=vme:i0e<vme)?jme=Gme+1:Kme=Gme}return Kme}return TSe(dme,vme,M1e,xme)}function TSe(dme,vme,xme,jme){var Kme=0,Gme=dme==null?0:dme.length;if(Gme===0)return 0;vme=xme(vme);for(var i0e=vme!==vme,c0e=vme===null,v0e=B1e(vme),B0e=vme===x_;Kme<Gme;){var H0e=P_e((Kme+Gme)/2),K0e=xme(dme[H0e]),uye=K0e!==x_,Cye=K0e===null,Iye=K0e===K0e,Kye=B1e(K0e);if(i0e)var Nye=jme||Iye;else B0e?Nye=Iye&&(jme||uye):c0e?Nye=Iye&&uye&&(jme||!Cye):v0e?Nye=Iye&&uye&&!Cye&&(jme||!Kye):Cye||Kye?Nye=!1:Nye=jme?K0e<=vme:K0e<vme;Nye?Kme=H0e+1:Gme=H0e}return O1e(Gme,Ome)}function QCe(dme,vme){for(var xme=-1,jme=dme.length,Kme=0,Gme=[];++xme<jme;){var i0e=dme[xme],c0e=vme?vme(i0e):i0e;if(!xme||!Q1e(c0e,v0e)){var v0e=c0e;Gme[Kme++]=i0e===0?0:i0e}}return Gme}function JCe(dme){return typeof dme=="number"?dme:B1e(dme)?Ime:+dme}function F1e(dme){if(typeof dme=="string")return dme;if(Bye(dme))return g1e(dme,F1e)+"";if(B1e(dme))return $Ce?$Ce.call(dme):"";var vme=dme+"";return vme=="0"&&1/dme==-Dme?"-0":vme}function _be(dme,vme,xme){var jme=-1,Kme=v_e,Gme=dme.length,i0e=!0,c0e=[],v0e=c0e;if(xme)i0e=!1,Kme=rSe;else if(Gme>=B_){var B0e=vme?null:_2e(dme);if(B0e)return y_e(B0e);i0e=!1,Kme=e_e,v0e=new Tbe}else v0e=vme?[]:c0e;e:for(;++jme<Gme;){var H0e=dme[jme],K0e=vme?vme(H0e):H0e;if(H0e=xme||H0e!==0?H0e:0,i0e&&K0e===K0e){for(var uye=v0e.length;uye--;)if(v0e[uye]===K0e)continue e;vme&&v0e.push(K0e),c0e.push(H0e)}else Kme(v0e,K0e,xme)||(v0e!==c0e&&v0e.push(K0e),c0e.push(H0e))}return c0e}function PSe(dme,vme){return vme=Sbe(vme,dme),dme=Owe(dme,vme),dme==null||delete dme[nbe(G1e(vme))]}function ewe(dme,vme,xme,jme){return c_e(dme,vme,xme(Abe(dme,vme)),jme)}function F_e(dme,vme,xme,jme){for(var Kme=dme.length,Gme=jme?Kme:-1;(jme?Gme--:++Gme<Kme)&&vme(dme[Gme],Gme,dme););return xme?q1e(dme,jme?0:Gme,jme?Gme+1:Kme):q1e(dme,jme?Gme+1:0,jme?Kme:Gme)}function twe(dme,vme){var xme=dme;return xme instanceof Jye&&(xme=xme.value()),aSe(vme,function(jme,Kme){return Kme.func.apply(Kme.thisArg,vbe([jme],Kme.args))},xme)}function ASe(dme,vme,xme){var jme=dme.length;if(jme<2)return jme?_be(dme[0]):[];for(var Kme=-1,Gme=x0e(jme);++Kme<jme;)for(var i0e=dme[Kme],c0e=-1;++c0e<jme;)c0e!=Kme&&(Gme[Kme]=s_e(Gme[Kme]||i0e,dme[c0e],vme,xme));return _be(R1e(Gme,1),vme,xme)}function nwe(dme,vme,xme){for(var jme=-1,Kme=dme.length,Gme=vme.length,i0e={};++jme<Kme;){var c0e=jme<Gme?vme[jme]:x_;xme(i0e,dme[jme],c0e)}return i0e}function $Se(dme){return _1e(dme)?dme:[]}function DSe(dme){return typeof dme=="function"?dme:M1e}function Sbe(dme,vme){return Bye(dme)?dme:HSe(dme,vme)?[dme]:$we(o1e(dme))}var c2e=Gye;function Cbe(dme,vme,xme){var jme=dme.length;return xme=xme===x_?jme:xme,!vme&&xme>=jme?dme:q1e(dme,vme,xme)}var rwe=ZEe||function(dme){return x1e.clearTimeout(dme)};function awe(dme,vme){if(vme)return dme.slice();var xme=dme.length,jme=xCe?xCe(xme):new dme.constructor(xme);return dme.copy(jme),jme}function ISe(dme){var vme=new dme.constructor(dme.byteLength);return new E_e(vme).set(new E_e(dme)),vme}function f2e(dme,vme){var xme=vme?ISe(dme.buffer):dme.buffer;return new dme.constructor(xme,dme.byteOffset,dme.byteLength)}function d2e(dme){var vme=new dme.constructor(dme.source,f0e.exec(dme));return vme.lastIndex=dme.lastIndex,vme}function p2e(dme){return o_e?c1e(o_e.call(dme)):{}}function owe(dme,vme){var xme=vme?ISe(dme.buffer):dme.buffer;return new dme.constructor(xme,dme.byteOffset,dme.length)}function iwe(dme,vme){if(dme!==vme){var xme=dme!==x_,jme=dme===null,Kme=dme===dme,Gme=B1e(dme),i0e=vme!==x_,c0e=vme===null,v0e=vme===vme,B0e=B1e(vme);if(!c0e&&!B0e&&!Gme&&dme>vme||Gme&&i0e&&v0e&&!c0e&&!B0e||jme&&i0e&&v0e||!xme&&v0e||!Kme)return 1;if(!jme&&!Gme&&!B0e&&dme<vme||B0e&&xme&&Kme&&!jme&&!Gme||c0e&&xme&&Kme||!i0e&&Kme||!v0e)return-1}return 0}function h2e(dme,vme,xme){for(var jme=-1,Kme=dme.criteria,Gme=vme.criteria,i0e=Kme.length,c0e=xme.length;++jme<i0e;){var v0e=iwe(Kme[jme],Gme[jme]);if(v0e){if(jme>=c0e)return v0e;var B0e=xme[jme];return v0e*(B0e=="desc"?-1:1)}}return dme.index-vme.index}function swe(dme,vme,xme,jme){for(var Kme=-1,Gme=dme.length,i0e=xme.length,c0e=-1,v0e=vme.length,B0e=w1e(Gme-i0e,0),H0e=x0e(v0e+B0e),K0e=!jme;++c0e<v0e;)H0e[c0e]=vme[c0e];for(;++Kme<i0e;)(K0e||Kme<Gme)&&(H0e[xme[Kme]]=dme[Kme]);for(;B0e--;)H0e[c0e++]=dme[Kme++];return H0e}function lwe(dme,vme,xme,jme){for(var Kme=-1,Gme=dme.length,i0e=-1,c0e=xme.length,v0e=-1,B0e=vme.length,H0e=w1e(Gme-c0e,0),K0e=x0e(H0e+B0e),uye=!jme;++Kme<H0e;)K0e[Kme]=dme[Kme];for(var Cye=Kme;++v0e<B0e;)K0e[Cye+v0e]=vme[v0e];for(;++i0e<c0e;)(uye||Kme<Gme)&&(K0e[Cye+xme[i0e]]=dme[Kme++]);return K0e}function D1e(dme,vme){var xme=-1,jme=dme.length;for(vme||(vme=x0e(jme));++xme<jme;)vme[xme]=dme[xme];return vme}function tbe(dme,vme,xme,jme){var Kme=!xme;xme||(xme={});for(var Gme=-1,i0e=vme.length;++Gme<i0e;){var c0e=vme[Gme],v0e=jme?jme(xme[c0e],dme[c0e],c0e,xme,dme):x_;v0e===x_&&(v0e=dme[c0e]),Kme?sbe(xme,c0e,v0e):i_e(xme,c0e,v0e)}return xme}function g2e(dme,vme){return tbe(dme,LSe(dme),vme)}function v2e(dme,vme){return tbe(dme,Swe(dme),vme)}function B_e(dme,vme){return function(xme,jme){var Kme=Bye(xme)?SEe:Fxe,Gme=vme?vme():{};return Kme(xme,dme,$ye(jme,2),Gme)}}function Kbe(dme){return Gye(function(vme,xme){var jme=-1,Kme=xme.length,Gme=Kme>1?xme[Kme-1]:x_,i0e=Kme>2?xme[2]:x_;for(Gme=dme.length>3&&typeof Gme=="function"?(Kme--,Gme):x_,i0e&&A1e(xme[0],xme[1],i0e)&&(Gme=Kme<3?x_:Gme,Kme=1),vme=c1e(vme);++jme<Kme;){var c0e=xme[jme];c0e&&dme(vme,c0e,jme,Gme)}return vme})}function uwe(dme,vme){return function(xme,jme){if(xme==null)return xme;if(!I1e(xme))return dme(xme,jme);for(var Kme=xme.length,Gme=vme?Kme:-1,i0e=c1e(xme);(vme?Gme--:++Gme<Kme)&&jme(i0e[Gme],Gme,i0e)!==!1;);return xme}}function cwe(dme){return function(vme,xme,jme){for(var Kme=-1,Gme=c1e(vme),i0e=jme(vme),c0e=i0e.length;c0e--;){var v0e=i0e[dme?c0e:++Kme];if(xme(Gme[v0e],v0e,Gme)===!1)break}return vme}}function m2e(dme,vme,xme){var jme=vme&sme,Kme=f_e(dme);function Gme(){var i0e=this&&this!==x1e&&this instanceof Gme?Kme:dme;return i0e.apply(jme?xme:this,arguments)}return Gme}function fwe(dme){return function(vme){vme=o1e(vme);var xme=Fbe(vme)?X1e(vme):x_,jme=xme?xme[0]:vme.charAt(0),Kme=xme?Cbe(xme,1).join(""):vme.slice(1);return jme[dme]()+Kme}}function Ube(dme){return function(vme){return aSe(uEe(lEe(vme).replace(_ye,"")),dme,"")}}function f_e(dme){return function(){var vme=arguments;switch(vme.length){case 0:return new dme;case 1:return new dme(vme[0]);case 2:return new dme(vme[0],vme[1]);case 3:return new dme(vme[0],vme[1],vme[2]);case 4:return new dme(vme[0],vme[1],vme[2],vme[3]);case 5:return new dme(vme[0],vme[1],vme[2],vme[3],vme[4]);case 6:return new dme(vme[0],vme[1],vme[2],vme[3],vme[4],vme[5]);case 7:return new dme(vme[0],vme[1],vme[2],vme[3],vme[4],vme[5],vme[6])}var xme=Wbe(dme.prototype),jme=dme.apply(xme,vme);return v1e(jme)?jme:xme}}function y2e(dme,vme,xme){var jme=f_e(dme);function Kme(){for(var Gme=arguments.length,i0e=x0e(Gme),c0e=Gme,v0e=qbe(Kme);c0e--;)i0e[c0e]=arguments[c0e];var B0e=Gme<3&&i0e[0]!==v0e&&i0e[Gme-1]!==v0e?[]:mbe(i0e,v0e);if(Gme-=B0e.length,Gme<xme)return vwe(dme,vme,L_e,Kme.placeholder,x_,i0e,B0e,x_,x_,xme-Gme);var H0e=this&&this!==x1e&&this instanceof Kme?jme:dme;return k1e(H0e,this,i0e)}return Kme}function dwe(dme){return function(vme,xme,jme){var Kme=c1e(vme);if(!I1e(vme)){var Gme=$ye(xme,3);vme=E1e(vme),xme=function(c0e){return Gme(Kme[c0e],c0e,Kme)}}var i0e=dme(vme,xme,jme);return i0e>-1?Kme[Gme?vme[i0e]:i0e]:x_}}function pwe(dme){return ube(function(vme){var xme=vme.length,jme=xme,Kme=K1e.prototype.thru;for(dme&&vme.reverse();jme--;){var Gme=vme[jme];if(typeof Gme!="function")throw new W1e(zP);if(Kme&&!i0e&&W_e(Gme)=="wrapper")var i0e=new K1e([],!0)}for(jme=i0e?jme:xme;++jme<xme;){Gme=vme[jme];var c0e=W_e(Gme),v0e=c0e=="wrapper"?FSe(Gme):x_;v0e&&zSe(v0e[0])&&v0e[1]==(mme|hme|gme|bme)&&!v0e[4].length&&v0e[9]==1?i0e=i0e[W_e(v0e[0])].apply(i0e,v0e[3]):i0e=Gme.length==1&&zSe(Gme)?i0e[c0e]():i0e.thru(Gme)}return function(){var B0e=arguments,H0e=B0e[0];if(i0e&&B0e.length==1&&Bye(H0e))return i0e.plant(H0e).value();for(var K0e=0,uye=xme?vme[K0e].apply(this,B0e):H0e;++K0e<xme;)uye=vme[K0e].call(this,uye);return uye}})}function L_e(dme,vme,xme,jme,Kme,Gme,i0e,c0e,v0e,B0e){var H0e=vme&mme,K0e=vme&sme,uye=vme&fme,Cye=vme&(hme|pme),Iye=vme&Sme,Kye=uye?x_:f_e(dme);function Nye(){for(var Zye=arguments.length,t1e=x0e(Zye),L1e=Zye;L1e--;)t1e[L1e]=arguments[L1e];if(Cye)var $1e=qbe(Nye),H1e=AEe(t1e,$1e);if(jme&&(t1e=swe(t1e,jme,Kme,Cye)),Gme&&(t1e=lwe(t1e,Gme,i0e,Cye)),Zye-=H1e,Cye&&Zye<B0e){var S1e=mbe(t1e,$1e);return vwe(dme,vme,L_e,Nye.placeholder,xme,t1e,S1e,c0e,v0e,B0e-Zye)}var J1e=K0e?xme:this,pbe=uye?J1e[dme]:dme;return Zye=t1e.length,c0e?t1e=F2e(t1e,c0e):Iye&&Zye>1&&t1e.reverse(),H0e&&v0e<Zye&&(t1e.length=v0e),this&&this!==x1e&&this instanceof Nye&&(pbe=Kye||f_e(pbe)),pbe.apply(J1e,t1e)}return Nye}function hwe(dme,vme){return function(xme,jme){return Uxe(xme,dme,vme(jme),{})}}function H_e(dme,vme){return function(xme,jme){var Kme;if(xme===x_&&jme===x_)return vme;if(xme!==x_&&(Kme=xme),jme!==x_){if(Kme===x_)return jme;typeof xme=="string"||typeof jme=="string"?(xme=F1e(xme),jme=F1e(jme)):(xme=JCe(xme),jme=JCe(jme)),Kme=dme(xme,jme)}return Kme}}function NSe(dme){return ube(function(vme){return vme=g1e(vme,j1e($ye())),Gye(function(xme){var jme=this;return dme(vme,function(Kme){return k1e(Kme,jme,xme)})})})}function z_e(dme,vme){vme=vme===x_?" ":F1e(vme);var xme=vme.length;if(xme<2)return xme?OSe(vme,dme):vme;var jme=OSe(vme,T_e(dme/Bbe(vme)));return Fbe(vme)?Cbe(X1e(jme),0,dme).join(""):jme.slice(0,dme)}function b2e(dme,vme,xme,jme){var Kme=vme&sme,Gme=f_e(dme);function i0e(){for(var c0e=-1,v0e=arguments.length,B0e=-1,H0e=jme.length,K0e=x0e(H0e+v0e),uye=this&&this!==x1e&&this instanceof i0e?Gme:dme;++B0e<H0e;)K0e[B0e]=jme[B0e];for(;v0e--;)K0e[B0e++]=arguments[++c0e];return k1e(uye,Kme?xme:this,K0e)}return i0e}function gwe(dme){return function(vme,xme,jme){return jme&&typeof jme!="number"&&A1e(vme,xme,jme)&&(xme=jme=x_),vme=dbe(vme),xme===x_?(xme=vme,vme=0):xme=dbe(xme),jme=jme===x_?vme<xme?1:-1:dbe(jme),a2e(vme,xme,jme,dme)}}function V_e(dme){return function(vme,xme){return typeof vme=="string"&&typeof xme=="string"||(vme=Y1e(vme),xme=Y1e(xme)),dme(vme,xme)}}function vwe(dme,vme,xme,jme,Kme,Gme,i0e,c0e,v0e,B0e){var H0e=vme&hme,K0e=H0e?i0e:x_,uye=H0e?x_:i0e,Cye=H0e?Gme:x_,Iye=H0e?x_:Gme;vme|=H0e?gme:yme,vme&=~(H0e?yme:gme),vme&lme||(vme&=~(sme|fme));var Kye=[dme,vme,Kme,Cye,K0e,Iye,uye,c0e,v0e,B0e],Nye=xme.apply(x_,Kye);return zSe(dme)&&Twe(Nye,Kye),Nye.placeholder=jme,Pwe(Nye,dme,vme)}function MSe(dme){var vme=C1e[dme];return function(xme,jme){if(xme=Y1e(xme),jme=jme==null?0:O1e(zye(jme),292),jme&&PCe(xme)){var Kme=(o1e(xme)+"e").split("e"),Gme=vme(Kme[0]+"e"+(+Kme[1]+jme));return Kme=(o1e(Gme)+"e").split("e"),+(Kme[0]+"e"+(+Kme[1]-jme))}return vme(xme)}}var _2e=zbe&&1/y_e(new zbe([,-0]))[1]==Dme?function(dme){return new zbe(dme)}:rCe;function mwe(dme){return function(vme){var xme=T1e(vme);return xme==Ume?fSe(vme):xme==t0e?jEe(vme):PEe(vme,dme(vme))}}function lbe(dme,vme,xme,jme,Kme,Gme,i0e,c0e){var v0e=vme&fme;if(!v0e&&typeof dme!="function")throw new W1e(zP);var B0e=jme?jme.length:0;if(B0e||(vme&=~(gme|yme),jme=Kme=x_),i0e=i0e===x_?i0e:w1e(zye(i0e),0),c0e=c0e===x_?c0e:zye(c0e),B0e-=Kme?Kme.length:0,vme&yme){var H0e=jme,K0e=Kme;jme=Kme=x_}var uye=v0e?x_:FSe(dme),Cye=[dme,vme,xme,jme,Kme,H0e,K0e,Gme,i0e,c0e];if(uye&&M2e(Cye,uye),dme=Cye[0],vme=Cye[1],xme=Cye[2],jme=Cye[3],Kme=Cye[4],c0e=Cye[9]=Cye[9]===x_?v0e?0:dme.length:w1e(Cye[9]-B0e,0),!c0e&&vme&(hme|pme)&&(vme&=~(hme|pme)),!vme||vme==sme)var Iye=m2e(dme,vme,xme);else vme==hme||vme==pme?Iye=y2e(dme,vme,c0e):(vme==gme||vme==(sme|gme))&&!Kme.length?Iye=b2e(dme,vme,xme,jme):Iye=L_e.apply(x_,Cye);var Kye=uye?ZCe:Twe;return Pwe(Kye(Iye,Cye),dme,vme)}function ywe(dme,vme,xme,jme){return dme===x_||Q1e(dme,Hbe[xme])&&!i1e.call(jme,xme)?vme:dme}function bwe(dme,vme,xme,jme,Kme,Gme){return v1e(dme)&&v1e(vme)&&(Gme.set(vme,dme),k_e(dme,vme,x_,bwe,Gme),Gme.delete(vme)),dme}function S2e(dme){return h_e(dme)?x_:dme}function _we(dme,vme,xme,jme,Kme,Gme){var i0e=xme&cme,c0e=dme.length,v0e=vme.length;if(c0e!=v0e&&!(i0e&&v0e>c0e))return!1;var B0e=Gme.get(dme),H0e=Gme.get(vme);if(B0e&&H0e)return B0e==vme&&H0e==dme;var K0e=-1,uye=!0,Cye=xme&ume?new Tbe:x_;for(Gme.set(dme,vme),Gme.set(vme,dme);++K0e<c0e;){var Iye=dme[K0e],Kye=vme[K0e];if(jme)var Nye=i0e?jme(Kye,Iye,K0e,vme,dme,Gme):jme(Iye,Kye,K0e,dme,vme,Gme);if(Nye!==x_){if(Nye)continue;uye=!1;break}if(Cye){if(!oSe(vme,function(Zye,t1e){if(!e_e(Cye,t1e)&&(Iye===Zye||Kme(Iye,Zye,xme,jme,Gme)))return Cye.push(t1e)})){uye=!1;break}}else if(!(Iye===Kye||Kme(Iye,Kye,xme,jme,Gme))){uye=!1;break}}return Gme.delete(dme),Gme.delete(vme),uye}function C2e(dme,vme,xme,jme,Kme,Gme,i0e){switch(xme){case y0e:if(dme.byteLength!=vme.byteLength||dme.byteOffset!=vme.byteOffset)return!1;dme=dme.buffer,vme=vme.buffer;case P0e:return!(dme.byteLength!=vme.byteLength||!Gme(new E_e(dme),new E_e(vme)));case Hme:case Wme:case Jme:return Q1e(+dme,+vme);case Vme:return dme.name==vme.name&&dme.message==vme.message;case a0e:case o0e:return dme==vme+"";case Ume:var c0e=fSe;case t0e:var v0e=jme&cme;if(c0e||(c0e=y_e),dme.size!=vme.size&&!v0e)return!1;var B0e=i0e.get(dme);if(B0e)return B0e==vme;jme|=ume,i0e.set(dme,vme);var H0e=_we(c0e(dme),c0e(vme),jme,Kme,Gme,i0e);return i0e.delete(dme),H0e;case g0e:if(o_e)return o_e.call(dme)==o_e.call(vme)}return!1}function w2e(dme,vme,xme,jme,Kme,Gme){var i0e=xme&cme,c0e=kSe(dme),v0e=c0e.length,B0e=kSe(vme),H0e=B0e.length;if(v0e!=H0e&&!i0e)return!1;for(var K0e=v0e;K0e--;){var uye=c0e[K0e];if(!(i0e?uye in vme:i1e.call(vme,uye)))return!1}var Cye=Gme.get(dme),Iye=Gme.get(vme);if(Cye&&Iye)return Cye==vme&&Iye==dme;var Kye=!0;Gme.set(dme,vme),Gme.set(vme,dme);for(var Nye=i0e;++K0e<v0e;){uye=c0e[K0e];var Zye=dme[uye],t1e=vme[uye];if(jme)var L1e=i0e?jme(t1e,Zye,uye,vme,dme,Gme):jme(Zye,t1e,uye,dme,vme,Gme);if(!(L1e===x_?Zye===t1e||Kme(Zye,t1e,xme,jme,Gme):L1e)){Kye=!1;break}Nye||(Nye=uye=="constructor")}if(Kye&&!Nye){var $1e=dme.constructor,H1e=vme.constructor;$1e!=H1e&&"constructor"in dme&&"constructor"in vme&&!(typeof $1e=="function"&&$1e instanceof $1e&&typeof H1e=="function"&&H1e instanceof H1e)&&(Kye=!1)}return Gme.delete(dme),Gme.delete(vme),Kye}function ube(dme){return WSe(Rwe(dme,x_,Mwe),dme+"")}function kSe(dme){return LCe(dme,E1e,LSe)}function jSe(dme){return LCe(dme,N1e,Swe)}var FSe=A_e?function(dme){return A_e.get(dme)}:rCe;function W_e(dme){for(var vme=dme.name+"",xme=Vbe[vme],jme=i1e.call(Vbe,vme)?xme.length:0;jme--;){var Kme=xme[jme],Gme=Kme.func;if(Gme==null||Gme==dme)return Kme.name}return vme}function qbe(dme){var vme=i1e.call(qme,"placeholder")?qme:dme;return vme.placeholder}function $ye(){var dme=qme.iteratee||tCe;return dme=dme===tCe?VCe:dme,arguments.length?dme(arguments[0],arguments[1]):dme}function K_e(dme,vme){var xme=dme.__data__;return $2e(vme)?xme[typeof vme=="string"?"string":"hash"]:xme.map}function BSe(dme){for(var vme=E1e(dme),xme=vme.length;xme--;){var jme=vme[xme],Kme=dme[jme];vme[xme]=[jme,Kme,Ewe(Kme)]}return vme}function $be(dme,vme){var xme=NEe(dme,vme);return zCe(xme)?xme:x_}function E2e(dme){var vme=i1e.call(dme,Rbe),xme=dme[Rbe];try{dme[Rbe]=x_;var jme=!0}catch{}var Kme=C_e.call(dme);return jme&&(vme?dme[Rbe]=xme:delete dme[Rbe]),Kme}var LSe=pSe?function(dme){return dme==null?[]:(dme=c1e(dme),gbe(pSe(dme),function(vme){return OCe.call(dme,vme)}))}:aCe,Swe=pSe?function(dme){for(var vme=[];dme;)vbe(vme,LSe(dme)),dme=x_e(dme);return vme}:aCe,T1e=P1e;(hSe&&T1e(new hSe(new ArrayBuffer(1)))!=y0e||n_e&&T1e(new n_e)!=Ume||gSe&&T1e(gSe.resolve())!=Zme||zbe&&T1e(new zbe)!=t0e||r_e&&T1e(new r_e)!=h0e)&&(T1e=function(dme){var vme=P1e(dme),xme=vme==d0e?dme.constructor:x_,jme=xme?Dbe(xme):"";if(jme)switch(jme){case ixe:return y0e;case sxe:return Ume;case lxe:return Zme;case uxe:return t0e;case cxe:return h0e}return vme});function x2e(dme,vme,xme){for(var jme=-1,Kme=xme.length;++jme<Kme;){var Gme=xme[jme],i0e=Gme.size;switch(Gme.type){case"drop":dme+=i0e;break;case"dropRight":vme-=i0e;break;case"take":vme=O1e(vme,dme+i0e);break;case"takeRight":dme=w1e(dme,vme-i0e);break}}return{start:dme,end:vme}}function R2e(dme){var vme=dme.match(Eye);return vme?vme[1].split(Vye):[]}function Cwe(dme,vme,xme){vme=Sbe(vme,dme);for(var jme=-1,Kme=vme.length,Gme=!1;++jme<Kme;){var i0e=nbe(vme[jme]);if(!(Gme=dme!=null&&xme(dme,i0e)))break;dme=dme[i0e]}return Gme||++jme!=Kme?Gme:(Kme=dme==null?0:dme.length,!!Kme&&Q_e(Kme)&&cbe(i0e,Kme)&&(Bye(dme)||Ibe(dme)))}function O2e(dme){var vme=dme.length,xme=new dme.constructor(vme);return vme&&typeof dme[0]=="string"&&i1e.call(dme,"index")&&(xme.index=dme.index,xme.input=dme.input),xme}function wwe(dme){return typeof dme.constructor=="function"&&!d_e(dme)?Wbe(x_e(dme)):{}}function T2e(dme,vme,xme){var jme=dme.constructor;switch(vme){case P0e:return ISe(dme);case Hme:case Wme:return new jme(+dme);case y0e:return f2e(dme,xme);case $0e:case C0e:case z0e:case D0e:case O0e:case b0e:case k0e:case T0e:case L0e:return owe(dme,xme);case Ume:return new jme;case Jme:case o0e:return new jme(dme);case a0e:return d2e(dme);case t0e:return new jme;case g0e:return p2e(dme)}}function P2e(dme,vme){var xme=vme.length;if(!xme)return dme;var jme=xme-1;return vme[jme]=(xme>1?"& ":"")+vme[jme],vme=vme.join(xme>2?", ":" "),dme.replace(wye,`{
324
+ /* [wrapped with `+vme+`] */
325
+ `)}function A2e(dme){return Bye(dme)||Ibe(dme)||!!(TCe&&dme&&dme[TCe])}function cbe(dme,vme){var xme=typeof dme;return vme=vme??Mme,!!vme&&(xme=="number"||xme!="symbol"&&Yme.test(dme))&&dme>-1&&dme%1==0&&dme<vme}function A1e(dme,vme,xme){if(!v1e(xme))return!1;var jme=typeof vme;return(jme=="number"?I1e(xme)&&cbe(vme,xme.length):jme=="string"&&vme in xme)?Q1e(xme[vme],dme):!1}function HSe(dme,vme){if(Bye(dme))return!1;var xme=typeof dme;return xme=="number"||xme=="symbol"||xme=="boolean"||dme==null||B1e(dme)?!0:cye.test(dme)||!F0e.test(dme)||vme!=null&&dme in c1e(vme)}function $2e(dme){var vme=typeof dme;return vme=="string"||vme=="number"||vme=="symbol"||vme=="boolean"?dme!=="__proto__":dme===null}function zSe(dme){var vme=W_e(dme),xme=qme[vme];if(typeof xme!="function"||!(vme in Jye.prototype))return!1;if(dme===xme)return!0;var jme=FSe(xme);return!!jme&&dme===jme[0]}function D2e(dme){return!!ECe&&ECe in dme}var I2e=__e?fbe:oCe;function d_e(dme){var vme=dme&&dme.constructor,xme=typeof vme=="function"&&vme.prototype||Hbe;return dme===xme}function Ewe(dme){return dme===dme&&!v1e(dme)}function xwe(dme,vme){return function(xme){return xme==null?!1:xme[dme]===vme&&(vme!==x_||dme in c1e(xme))}}function N2e(dme){var vme=X_e(dme,function(jme){return xme.size===nme&&xme.clear(),jme}),xme=vme.cache;return vme}function M2e(dme,vme){var xme=dme[1],jme=vme[1],Kme=xme|jme,Gme=Kme<(sme|fme|mme),i0e=jme==mme&&xme==hme||jme==mme&&xme==bme&&dme[7].length<=vme[8]||jme==(mme|bme)&&vme[7].length<=vme[8]&&xme==hme;if(!(Gme||i0e))return dme;jme&sme&&(dme[2]=vme[2],Kme|=xme&sme?0:lme);var c0e=vme[3];if(c0e){var v0e=dme[3];dme[3]=v0e?swe(v0e,c0e,vme[4]):c0e,dme[4]=v0e?mbe(dme[3],rme):vme[4]}return c0e=vme[5],c0e&&(v0e=dme[5],dme[5]=v0e?lwe(v0e,c0e,vme[6]):c0e,dme[6]=v0e?mbe(dme[5],rme):vme[6]),c0e=vme[7],c0e&&(dme[7]=c0e),jme&mme&&(dme[8]=dme[8]==null?vme[8]:O1e(dme[8],vme[8])),dme[9]==null&&(dme[9]=vme[9]),dme[0]=vme[0],dme[1]=Kme,dme}function k2e(dme){var vme=[];if(dme!=null)for(var xme in c1e(dme))vme.push(xme);return vme}function j2e(dme){return C_e.call(dme)}function Rwe(dme,vme,xme){return vme=w1e(vme===x_?dme.length-1:vme,0),function(){for(var jme=arguments,Kme=-1,Gme=w1e(jme.length-vme,0),i0e=x0e(Gme);++Kme<Gme;)i0e[Kme]=jme[vme+Kme];Kme=-1;for(var c0e=x0e(vme+1);++Kme<vme;)c0e[Kme]=jme[Kme];return c0e[vme]=xme(i0e),k1e(dme,this,c0e)}}function Owe(dme,vme){return vme.length<2?dme:Abe(dme,q1e(vme,0,-1))}function F2e(dme,vme){for(var xme=dme.length,jme=O1e(vme.length,xme),Kme=D1e(dme);jme--;){var Gme=vme[jme];dme[jme]=cbe(Gme,xme)?Kme[Gme]:x_}return dme}function VSe(dme,vme){if(!(vme==="constructor"&&typeof dme[vme]=="function")&&vme!="__proto__")return dme[vme]}var Twe=Awe(ZCe),p_e=JEe||function(dme,vme){return x1e.setTimeout(dme,vme)},WSe=Awe(s2e);function Pwe(dme,vme,xme){var jme=vme+"";return WSe(dme,P2e(jme,B2e(R2e(jme),xme)))}function Awe(dme){var vme=0,xme=0;return function(){var jme=rxe(),Kme=Tme-(jme-xme);if(xme=jme,Kme>0){if(++vme>=Eme)return arguments[0]}else vme=0;return dme.apply(x_,arguments)}}function U_e(dme,vme){var xme=-1,jme=dme.length,Kme=jme-1;for(vme=vme===x_?jme:vme;++xme<vme;){var Gme=RSe(xme,Kme),i0e=dme[Gme];dme[Gme]=dme[xme],dme[xme]=i0e}return dme.length=vme,dme}var $we=N2e(function(dme){var vme=[];return dme.charCodeAt(0)===46&&vme.push(""),dme.replace(yye,function(xme,jme,Kme,Gme){vme.push(Kme?Gme.replace(A0e,"$1"):jme||xme)}),vme});function nbe(dme){if(typeof dme=="string"||B1e(dme))return dme;var vme=dme+"";return vme=="0"&&1/dme==-Dme?"-0":vme}function Dbe(dme){if(dme!=null){try{return S_e.call(dme)}catch{}try{return dme+""}catch{}}return""}function B2e(dme,vme){return V1e(Fme,function(xme){var jme="_."+xme[0];vme&xme[1]&&!v_e(dme,jme)&&dme.push(jme)}),dme.sort()}function Dwe(dme){if(dme instanceof Jye)return dme.clone();var vme=new K1e(dme.__wrapped__,dme.__chain__);return vme.__actions__=D1e(dme.__actions__),vme.__index__=dme.__index__,vme.__values__=dme.__values__,vme}function L2e(dme,vme,xme){(xme?A1e(dme,vme,xme):vme===x_)?vme=1:vme=w1e(zye(vme),0);var jme=dme==null?0:dme.length;if(!jme||vme<1)return[];for(var Kme=0,Gme=0,i0e=x0e(T_e(jme/vme));Kme<jme;)i0e[Gme++]=q1e(dme,Kme,Kme+=vme);return i0e}function H2e(dme){for(var vme=-1,xme=dme==null?0:dme.length,jme=0,Kme=[];++vme<xme;){var Gme=dme[vme];Gme&&(Kme[jme++]=Gme)}return Kme}function z2e(){var dme=arguments.length;if(!dme)return[];for(var vme=x0e(dme-1),xme=arguments[0],jme=dme;jme--;)vme[jme-1]=arguments[jme];return vbe(Bye(xme)?D1e(xme):[xme],R1e(vme,1))}var V2e=Gye(function(dme,vme){return _1e(dme)?s_e(dme,R1e(vme,1,_1e,!0)):[]}),W2e=Gye(function(dme,vme){var xme=G1e(vme);return _1e(xme)&&(xme=x_),_1e(dme)?s_e(dme,R1e(vme,1,_1e,!0),$ye(xme,2)):[]}),K2e=Gye(function(dme,vme){var xme=G1e(vme);return _1e(xme)&&(xme=x_),_1e(dme)?s_e(dme,R1e(vme,1,_1e,!0),x_,xme):[]});function U2e(dme,vme,xme){var jme=dme==null?0:dme.length;return jme?(vme=xme||vme===x_?1:zye(vme),q1e(dme,vme<0?0:vme,jme)):[]}function q2e(dme,vme,xme){var jme=dme==null?0:dme.length;return jme?(vme=xme||vme===x_?1:zye(vme),vme=jme-vme,q1e(dme,0,vme<0?0:vme)):[]}function G2e(dme,vme){return dme&&dme.length?F_e(dme,$ye(vme,3),!0,!0):[]}function Y2e(dme,vme){return dme&&dme.length?F_e(dme,$ye(vme,3),!0):[]}function X2e(dme,vme,xme,jme){var Kme=dme==null?0:dme.length;return Kme?(xme&&typeof xme!="number"&&A1e(dme,vme,xme)&&(xme=0,jme=Kme),zxe(dme,vme,xme,jme)):[]}function Iwe(dme,vme,xme){var jme=dme==null?0:dme.length;if(!jme)return-1;var Kme=xme==null?0:zye(xme);return Kme<0&&(Kme=w1e(jme+Kme,0)),m_e(dme,$ye(vme,3),Kme)}function Nwe(dme,vme,xme){var jme=dme==null?0:dme.length;if(!jme)return-1;var Kme=jme-1;return xme!==x_&&(Kme=zye(xme),Kme=xme<0?w1e(jme+Kme,0):O1e(Kme,jme-1)),m_e(dme,$ye(vme,3),Kme,!0)}function Mwe(dme){var vme=dme==null?0:dme.length;return vme?R1e(dme,1):[]}function Z2e(dme){var vme=dme==null?0:dme.length;return vme?R1e(dme,Dme):[]}function Q2e(dme,vme){var xme=dme==null?0:dme.length;return xme?(vme=vme===x_?1:zye(vme),R1e(dme,vme)):[]}function J2e(dme){for(var vme=-1,xme=dme==null?0:dme.length,jme={};++vme<xme;){var Kme=dme[vme];jme[Kme[0]]=Kme[1]}return jme}function kwe(dme){return dme&&dme.length?dme[0]:x_}function eRe(dme,vme,xme){var jme=dme==null?0:dme.length;if(!jme)return-1;var Kme=xme==null?0:zye(xme);return Kme<0&&(Kme=w1e(jme+Kme,0)),jbe(dme,vme,Kme)}function tRe(dme){var vme=dme==null?0:dme.length;return vme?q1e(dme,0,-1):[]}var nRe=Gye(function(dme){var vme=g1e(dme,$Se);return vme.length&&vme[0]===dme[0]?SSe(vme):[]}),rRe=Gye(function(dme){var vme=G1e(dme),xme=g1e(dme,$Se);return vme===G1e(xme)?vme=x_:xme.pop(),xme.length&&xme[0]===dme[0]?SSe(xme,$ye(vme,2)):[]}),aRe=Gye(function(dme){var vme=G1e(dme),xme=g1e(dme,$Se);return vme=typeof vme=="function"?vme:x_,vme&&xme.pop(),xme.length&&xme[0]===dme[0]?SSe(xme,x_,vme):[]});function oRe(dme,vme){return dme==null?"":txe.call(dme,vme)}function G1e(dme){var vme=dme==null?0:dme.length;return vme?dme[vme-1]:x_}function iRe(dme,vme,xme){var jme=dme==null?0:dme.length;if(!jme)return-1;var Kme=jme;return xme!==x_&&(Kme=zye(xme),Kme=Kme<0?w1e(jme+Kme,0):O1e(Kme,jme-1)),vme===vme?BEe(dme,vme,Kme):m_e(dme,vCe,Kme,!0)}function sRe(dme,vme){return dme&&dme.length?qCe(dme,zye(vme)):x_}var lRe=Gye(jwe);function jwe(dme,vme){return dme&&dme.length&&vme&&vme.length?xSe(dme,vme):dme}function uRe(dme,vme,xme){return dme&&dme.length&&vme&&vme.length?xSe(dme,vme,$ye(xme,2)):dme}function cRe(dme,vme,xme){return dme&&dme.length&&vme&&vme.length?xSe(dme,vme,x_,xme):dme}var fRe=ube(function(dme,vme){var xme=dme==null?0:dme.length,jme=mSe(dme,vme);return XCe(dme,g1e(vme,function(Kme){return cbe(Kme,xme)?+Kme:Kme}).sort(iwe)),jme});function dRe(dme,vme){var xme=[];if(!(dme&&dme.length))return xme;var jme=-1,Kme=[],Gme=dme.length;for(vme=$ye(vme,3);++jme<Gme;){var i0e=dme[jme];vme(i0e,jme,dme)&&(xme.push(i0e),Kme.push(jme))}return XCe(dme,Kme),xme}function KSe(dme){return dme==null?dme:oxe.call(dme)}function pRe(dme,vme,xme){var jme=dme==null?0:dme.length;return jme?(xme&&typeof xme!="number"&&A1e(dme,vme,xme)?(vme=0,xme=jme):(vme=vme==null?0:zye(vme),xme=xme===x_?jme:zye(xme)),q1e(dme,vme,xme)):[]}function hRe(dme,vme){return j_e(dme,vme)}function gRe(dme,vme,xme){return TSe(dme,vme,$ye(xme,2))}function vRe(dme,vme){var xme=dme==null?0:dme.length;if(xme){var jme=j_e(dme,vme);if(jme<xme&&Q1e(dme[jme],vme))return jme}return-1}function mRe(dme,vme){return j_e(dme,vme,!0)}function yRe(dme,vme,xme){return TSe(dme,vme,$ye(xme,2),!0)}function bRe(dme,vme){var xme=dme==null?0:dme.length;if(xme){var jme=j_e(dme,vme,!0)-1;if(Q1e(dme[jme],vme))return jme}return-1}function _Re(dme){return dme&&dme.length?QCe(dme):[]}function SRe(dme,vme){return dme&&dme.length?QCe(dme,$ye(vme,2)):[]}function CRe(dme){var vme=dme==null?0:dme.length;return vme?q1e(dme,1,vme):[]}function wRe(dme,vme,xme){return dme&&dme.length?(vme=xme||vme===x_?1:zye(vme),q1e(dme,0,vme<0?0:vme)):[]}function ERe(dme,vme,xme){var jme=dme==null?0:dme.length;return jme?(vme=xme||vme===x_?1:zye(vme),vme=jme-vme,q1e(dme,vme<0?0:vme,jme)):[]}function xRe(dme,vme){return dme&&dme.length?F_e(dme,$ye(vme,3),!1,!0):[]}function RRe(dme,vme){return dme&&dme.length?F_e(dme,$ye(vme,3)):[]}var ORe=Gye(function(dme){return _be(R1e(dme,1,_1e,!0))}),TRe=Gye(function(dme){var vme=G1e(dme);return _1e(vme)&&(vme=x_),_be(R1e(dme,1,_1e,!0),$ye(vme,2))}),PRe=Gye(function(dme){var vme=G1e(dme);return vme=typeof vme=="function"?vme:x_,_be(R1e(dme,1,_1e,!0),x_,vme)});function ARe(dme){return dme&&dme.length?_be(dme):[]}function $Re(dme,vme){return dme&&dme.length?_be(dme,$ye(vme,2)):[]}function DRe(dme,vme){return vme=typeof vme=="function"?vme:x_,dme&&dme.length?_be(dme,x_,vme):[]}function USe(dme){if(!(dme&&dme.length))return[];var vme=0;return dme=gbe(dme,function(xme){if(_1e(xme))return vme=w1e(xme.length,vme),!0}),uSe(vme,function(xme){return g1e(dme,iSe(xme))})}function Fwe(dme,vme){if(!(dme&&dme.length))return[];var xme=USe(dme);return vme==null?xme:g1e(xme,function(jme){return k1e(vme,x_,jme)})}var IRe=Gye(function(dme,vme){return _1e(dme)?s_e(dme,vme):[]}),NRe=Gye(function(dme){return ASe(gbe(dme,_1e))}),MRe=Gye(function(dme){var vme=G1e(dme);return _1e(vme)&&(vme=x_),ASe(gbe(dme,_1e),$ye(vme,2))}),kRe=Gye(function(dme){var vme=G1e(dme);return vme=typeof vme=="function"?vme:x_,ASe(gbe(dme,_1e),x_,vme)}),jRe=Gye(USe);function FRe(dme,vme){return nwe(dme||[],vme||[],i_e)}function BRe(dme,vme){return nwe(dme||[],vme||[],c_e)}var LRe=Gye(function(dme){var vme=dme.length,xme=vme>1?dme[vme-1]:x_;return xme=typeof xme=="function"?(dme.pop(),xme):x_,Fwe(dme,xme)});function Bwe(dme){var vme=qme(dme);return vme.__chain__=!0,vme}function HRe(dme,vme){return vme(dme),dme}function q_e(dme,vme){return vme(dme)}var zRe=ube(function(dme){var vme=dme.length,xme=vme?dme[0]:0,jme=this.__wrapped__,Kme=function(Gme){return mSe(Gme,dme)};return vme>1||this.__actions__.length||!(jme instanceof Jye)||!cbe(xme)?this.thru(Kme):(jme=jme.slice(xme,+xme+(vme?1:0)),jme.__actions__.push({func:q_e,args:[Kme],thisArg:x_}),new K1e(jme,this.__chain__).thru(function(Gme){return vme&&!Gme.length&&Gme.push(x_),Gme}))});function VRe(){return Bwe(this)}function WRe(){return new K1e(this.value(),this.__chain__)}function KRe(){this.__values__===x_&&(this.__values__=Jwe(this.value()));var dme=this.__index__>=this.__values__.length,vme=dme?x_:this.__values__[this.__index__++];return{done:dme,value:vme}}function URe(){return this}function qRe(dme){for(var vme,xme=this;xme instanceof D_e;){var jme=Dwe(xme);jme.__index__=0,jme.__values__=x_,vme?Kme.__wrapped__=jme:vme=jme;var Kme=jme;xme=xme.__wrapped__}return Kme.__wrapped__=dme,vme}function GRe(){var dme=this.__wrapped__;if(dme instanceof Jye){var vme=dme;return this.__actions__.length&&(vme=new Jye(this)),vme=vme.reverse(),vme.__actions__.push({func:q_e,args:[KSe],thisArg:x_}),new K1e(vme,this.__chain__)}return this.thru(KSe)}function YRe(){return twe(this.__wrapped__,this.__actions__)}var XRe=B_e(function(dme,vme,xme){i1e.call(dme,xme)?++dme[xme]:sbe(dme,xme,1)});function ZRe(dme,vme,xme){var jme=Bye(dme)?hCe:Hxe;return xme&&A1e(dme,vme,xme)&&(vme=x_),jme(dme,$ye(vme,3))}function QRe(dme,vme){var xme=Bye(dme)?gbe:FCe;return xme(dme,$ye(vme,3))}var JRe=dwe(Iwe),eOe=dwe(Nwe);function tOe(dme,vme){return R1e(G_e(dme,vme),1)}function nOe(dme,vme){return R1e(G_e(dme,vme),Dme)}function rOe(dme,vme,xme){return xme=xme===x_?1:zye(xme),R1e(G_e(dme,vme),xme)}function Lwe(dme,vme){var xme=Bye(dme)?V1e:bbe;return xme(dme,$ye(vme,3))}function Hwe(dme,vme){var xme=Bye(dme)?CEe:jCe;return xme(dme,$ye(vme,3))}var aOe=B_e(function(dme,vme,xme){i1e.call(dme,xme)?dme[xme].push(vme):sbe(dme,xme,[vme])});function oOe(dme,vme,xme,jme){dme=I1e(dme)?dme:Ybe(dme),xme=xme&&!jme?zye(xme):0;var Kme=dme.length;return xme<0&&(xme=w1e(Kme+xme,0)),J_e(dme)?xme<=Kme&&dme.indexOf(vme,xme)>-1:!!Kme&&jbe(dme,vme,xme)>-1}var iOe=Gye(function(dme,vme,xme){var jme=-1,Kme=typeof vme=="function",Gme=I1e(dme)?x0e(dme.length):[];return bbe(dme,function(i0e){Gme[++jme]=Kme?k1e(vme,i0e,xme):l_e(i0e,vme,xme)}),Gme}),sOe=B_e(function(dme,vme,xme){sbe(dme,xme,vme)});function G_e(dme,vme){var xme=Bye(dme)?g1e:WCe;return xme(dme,$ye(vme,3))}function lOe(dme,vme,xme,jme){return dme==null?[]:(Bye(vme)||(vme=vme==null?[]:[vme]),xme=jme?x_:xme,Bye(xme)||(xme=xme==null?[]:[xme]),GCe(dme,vme,xme))}var uOe=B_e(function(dme,vme,xme){dme[xme?0:1].push(vme)},function(){return[[],[]]});function cOe(dme,vme,xme){var jme=Bye(dme)?aSe:yCe,Kme=arguments.length<3;return jme(dme,$ye(vme,4),xme,Kme,bbe)}function fOe(dme,vme,xme){var jme=Bye(dme)?wEe:yCe,Kme=arguments.length<3;return jme(dme,$ye(vme,4),xme,Kme,jCe)}function dOe(dme,vme){var xme=Bye(dme)?gbe:FCe;return xme(dme,Z_e($ye(vme,3)))}function pOe(dme){var vme=Bye(dme)?ICe:o2e;return vme(dme)}function hOe(dme,vme,xme){(xme?A1e(dme,vme,xme):vme===x_)?vme=1:vme=zye(vme);var jme=Bye(dme)?kxe:i2e;return jme(dme,vme)}function gOe(dme){var vme=Bye(dme)?jxe:l2e;return vme(dme)}function vOe(dme){if(dme==null)return 0;if(I1e(dme))return J_e(dme)?Bbe(dme):dme.length;var vme=T1e(dme);return vme==Ume||vme==t0e?dme.size:wSe(dme).length}function mOe(dme,vme,xme){var jme=Bye(dme)?oSe:u2e;return xme&&A1e(dme,vme,xme)&&(vme=x_),jme(dme,$ye(vme,3))}var yOe=Gye(function(dme,vme){if(dme==null)return[];var xme=vme.length;return xme>1&&A1e(dme,vme[0],vme[1])?vme=[]:xme>2&&A1e(vme[0],vme[1],vme[2])&&(vme=[vme[0]]),GCe(dme,R1e(vme,1),[])}),Y_e=QEe||function(){return x1e.Date.now()};function bOe(dme,vme){if(typeof vme!="function")throw new W1e(zP);return dme=zye(dme),function(){if(--dme<1)return vme.apply(this,arguments)}}function zwe(dme,vme,xme){return vme=xme?x_:vme,vme=dme&&vme==null?dme.length:vme,lbe(dme,mme,x_,x_,x_,x_,vme)}function Vwe(dme,vme){var xme;if(typeof vme!="function")throw new W1e(zP);return dme=zye(dme),function(){return--dme>0&&(xme=vme.apply(this,arguments)),dme<=1&&(vme=x_),xme}}var qSe=Gye(function(dme,vme,xme){var jme=sme;if(xme.length){var Kme=mbe(xme,qbe(qSe));jme|=gme}return lbe(dme,jme,vme,xme,Kme)}),Wwe=Gye(function(dme,vme,xme){var jme=sme|fme;if(xme.length){var Kme=mbe(xme,qbe(Wwe));jme|=gme}return lbe(vme,jme,dme,xme,Kme)});function Kwe(dme,vme,xme){vme=xme?x_:vme;var jme=lbe(dme,hme,x_,x_,x_,x_,x_,vme);return jme.placeholder=Kwe.placeholder,jme}function Uwe(dme,vme,xme){vme=xme?x_:vme;var jme=lbe(dme,pme,x_,x_,x_,x_,x_,vme);return jme.placeholder=Uwe.placeholder,jme}function qwe(dme,vme,xme){var jme,Kme,Gme,i0e,c0e,v0e,B0e=0,H0e=!1,K0e=!1,uye=!0;if(typeof dme!="function")throw new W1e(zP);vme=Y1e(vme)||0,v1e(xme)&&(H0e=!!xme.leading,K0e="maxWait"in xme,Gme=K0e?w1e(Y1e(xme.maxWait)||0,vme):Gme,uye="trailing"in xme?!!xme.trailing:uye);function Cye(S1e){var J1e=jme,pbe=Kme;return jme=Kme=x_,B0e=S1e,i0e=dme.apply(pbe,J1e),i0e}function Iye(S1e){return B0e=S1e,c0e=p_e(Zye,vme),H0e?Cye(S1e):i0e}function Kye(S1e){var J1e=S1e-v0e,pbe=S1e-B0e,dEe=vme-J1e;return K0e?O1e(dEe,Gme-pbe):dEe}function Nye(S1e){var J1e=S1e-v0e,pbe=S1e-B0e;return v0e===x_||J1e>=vme||J1e<0||K0e&&pbe>=Gme}function Zye(){var S1e=Y_e();if(Nye(S1e))return t1e(S1e);c0e=p_e(Zye,Kye(S1e))}function t1e(S1e){return c0e=x_,uye&&jme?Cye(S1e):(jme=Kme=x_,i0e)}function L1e(){c0e!==x_&&rwe(c0e),B0e=0,jme=v0e=Kme=c0e=x_}function $1e(){return c0e===x_?i0e:t1e(Y_e())}function H1e(){var S1e=Y_e(),J1e=Nye(S1e);if(jme=arguments,Kme=this,v0e=S1e,J1e){if(c0e===x_)return Iye(v0e);if(K0e)return rwe(c0e),c0e=p_e(Zye,vme),Cye(v0e)}return c0e===x_&&(c0e=p_e(Zye,vme)),i0e}return H1e.cancel=L1e,H1e.flush=$1e,H1e}var _Oe=Gye(function(dme,vme){return kCe(dme,1,vme)}),SOe=Gye(function(dme,vme,xme){return kCe(dme,Y1e(vme)||0,xme)});function COe(dme){return lbe(dme,Sme)}function X_e(dme,vme){if(typeof dme!="function"||vme!=null&&typeof vme!="function")throw new W1e(zP);var xme=function(){var jme=arguments,Kme=vme?vme.apply(this,jme):jme[0],Gme=xme.cache;if(Gme.has(Kme))return Gme.get(Kme);var i0e=dme.apply(this,jme);return xme.cache=Gme.set(Kme,i0e)||Gme,i0e};return xme.cache=new(X_e.Cache||ibe),xme}X_e.Cache=ibe;function Z_e(dme){if(typeof dme!="function")throw new W1e(zP);return function(){var vme=arguments;switch(vme.length){case 0:return!dme.call(this);case 1:return!dme.call(this,vme[0]);case 2:return!dme.call(this,vme[0],vme[1]);case 3:return!dme.call(this,vme[0],vme[1],vme[2])}return!dme.apply(this,vme)}}function wOe(dme){return Vwe(2,dme)}var EOe=c2e(function(dme,vme){vme=vme.length==1&&Bye(vme[0])?g1e(vme[0],j1e($ye())):g1e(R1e(vme,1),j1e($ye()));var xme=vme.length;return Gye(function(jme){for(var Kme=-1,Gme=O1e(jme.length,xme);++Kme<Gme;)jme[Kme]=vme[Kme].call(this,jme[Kme]);return k1e(dme,this,jme)})}),GSe=Gye(function(dme,vme){var xme=mbe(vme,qbe(GSe));return lbe(dme,gme,x_,vme,xme)}),Gwe=Gye(function(dme,vme){var xme=mbe(vme,qbe(Gwe));return lbe(dme,yme,x_,vme,xme)}),xOe=ube(function(dme,vme){return lbe(dme,bme,x_,x_,x_,vme)});function ROe(dme,vme){if(typeof dme!="function")throw new W1e(zP);return vme=vme===x_?vme:zye(vme),Gye(dme,vme)}function OOe(dme,vme){if(typeof dme!="function")throw new W1e(zP);return vme=vme==null?0:w1e(zye(vme),0),Gye(function(xme){var jme=xme[vme],Kme=Cbe(xme,0,vme);return jme&&vbe(Kme,jme),k1e(dme,this,Kme)})}function TOe(dme,vme,xme){var jme=!0,Kme=!0;if(typeof dme!="function")throw new W1e(zP);return v1e(xme)&&(jme="leading"in xme?!!xme.leading:jme,Kme="trailing"in xme?!!xme.trailing:Kme),qwe(dme,vme,{leading:jme,maxWait:vme,trailing:Kme})}function POe(dme){return zwe(dme,1)}function AOe(dme,vme){return GSe(DSe(vme),dme)}function $Oe(){if(!arguments.length)return[];var dme=arguments[0];return Bye(dme)?dme:[dme]}function DOe(dme){return U1e(dme,ime)}function IOe(dme,vme){return vme=typeof vme=="function"?vme:x_,U1e(dme,ime,vme)}function NOe(dme){return U1e(dme,ame|ime)}function MOe(dme,vme){return vme=typeof vme=="function"?vme:x_,U1e(dme,ame|ime,vme)}function kOe(dme,vme){return vme==null||MCe(dme,vme,E1e(vme))}function Q1e(dme,vme){return dme===vme||dme!==dme&&vme!==vme}var jOe=V_e(_Se),FOe=V_e(function(dme,vme){return dme>=vme}),Ibe=HCe(function(){return arguments}())?HCe:function(dme){return m1e(dme)&&i1e.call(dme,"callee")&&!OCe.call(dme,"callee")},Bye=x0e.isArray,BOe=lCe?j1e(lCe):qxe;function I1e(dme){return dme!=null&&Q_e(dme.length)&&!fbe(dme)}function _1e(dme){return m1e(dme)&&I1e(dme)}function LOe(dme){return dme===!0||dme===!1||m1e(dme)&&P1e(dme)==Hme}var wbe=exe||oCe,HOe=uCe?j1e(uCe):Gxe;function zOe(dme){return m1e(dme)&&dme.nodeType===1&&!h_e(dme)}function VOe(dme){if(dme==null)return!0;if(I1e(dme)&&(Bye(dme)||typeof dme=="string"||typeof dme.splice=="function"||wbe(dme)||Gbe(dme)||Ibe(dme)))return!dme.length;var vme=T1e(dme);if(vme==Ume||vme==t0e)return!dme.size;if(d_e(dme))return!wSe(dme).length;for(var xme in dme)if(i1e.call(dme,xme))return!1;return!0}function WOe(dme,vme){return u_e(dme,vme)}function KOe(dme,vme,xme){xme=typeof xme=="function"?xme:x_;var jme=xme?xme(dme,vme):x_;return jme===x_?u_e(dme,vme,x_,xme):!!jme}function YSe(dme){if(!m1e(dme))return!1;var vme=P1e(dme);return vme==Vme||vme==zme||typeof dme.message=="string"&&typeof dme.name=="string"&&!h_e(dme)}function UOe(dme){return typeof dme=="number"&&PCe(dme)}function fbe(dme){if(!v1e(dme))return!1;var vme=P1e(dme);return vme==Xme||vme==e0e||vme==Lme||vme==Qme}function Ywe(dme){return typeof dme=="number"&&dme==zye(dme)}function Q_e(dme){return typeof dme=="number"&&dme>-1&&dme%1==0&&dme<=Mme}function v1e(dme){var vme=typeof dme;return dme!=null&&(vme=="object"||vme=="function")}function m1e(dme){return dme!=null&&typeof dme=="object"}var Xwe=cCe?j1e(cCe):Xxe;function qOe(dme,vme){return dme===vme||CSe(dme,vme,BSe(vme))}function GOe(dme,vme,xme){return xme=typeof xme=="function"?xme:x_,CSe(dme,vme,BSe(vme),xme)}function YOe(dme){return Zwe(dme)&&dme!=+dme}function XOe(dme){if(I2e(dme))throw new Fye($P);return zCe(dme)}function ZOe(dme){return dme===null}function QOe(dme){return dme==null}function Zwe(dme){return typeof dme=="number"||m1e(dme)&&P1e(dme)==Jme}function h_e(dme){if(!m1e(dme)||P1e(dme)!=d0e)return!1;var vme=x_e(dme);if(vme===null)return!0;var xme=i1e.call(vme,"constructor")&&vme.constructor;return typeof xme=="function"&&xme instanceof xme&&S_e.call(xme)==GEe}var XSe=fCe?j1e(fCe):Zxe;function JOe(dme){return Ywe(dme)&&dme>=-Mme&&dme<=Mme}var Qwe=dCe?j1e(dCe):Qxe;function J_e(dme){return typeof dme=="string"||!Bye(dme)&&m1e(dme)&&P1e(dme)==o0e}function B1e(dme){return typeof dme=="symbol"||m1e(dme)&&P1e(dme)==g0e}var Gbe=pCe?j1e(pCe):Jxe;function eTe(dme){return dme===x_}function tTe(dme){return m1e(dme)&&T1e(dme)==h0e}function nTe(dme){return m1e(dme)&&P1e(dme)==E0e}var rTe=V_e(ESe),aTe=V_e(function(dme,vme){return dme<=vme});function Jwe(dme){if(!dme)return[];if(I1e(dme))return J_e(dme)?X1e(dme):D1e(dme);if(t_e&&dme[t_e])return kEe(dme[t_e]());var vme=T1e(dme),xme=vme==Ume?fSe:vme==t0e?y_e:Ybe;return xme(dme)}function dbe(dme){if(!dme)return dme===0?dme:0;if(dme=Y1e(dme),dme===Dme||dme===-Dme){var vme=dme<0?-1:1;return vme*Nme}return dme===dme?dme:0}function zye(dme){var vme=dbe(dme),xme=vme%1;return vme===vme?xme?vme-xme:vme:0}function eEe(dme){return dme?Pbe(zye(dme),0,wme):0}function Y1e(dme){if(typeof dme=="number")return dme;if(B1e(dme))return Ime;if(v1e(dme)){var vme=typeof dme.valueOf=="function"?dme.valueOf():dme;dme=v1e(vme)?vme+"":vme}if(typeof dme!="string")return dme===0?dme:+dme;dme=bCe(dme);var xme=w0e.test(dme);return xme||_0e.test(dme)?bEe(dme.slice(2),xme?2:8):m0e.test(dme)?Ime:+dme}function tEe(dme){return tbe(dme,N1e(dme))}function oTe(dme){return dme?Pbe(zye(dme),-Mme,Mme):dme===0?dme:0}function o1e(dme){return dme==null?"":F1e(dme)}var iTe=Kbe(function(dme,vme){if(d_e(vme)||I1e(vme)){tbe(vme,E1e(vme),dme);return}for(var xme in vme)i1e.call(vme,xme)&&i_e(dme,xme,vme[xme])}),nEe=Kbe(function(dme,vme){tbe(vme,N1e(vme),dme)}),eSe=Kbe(function(dme,vme,xme,jme){tbe(vme,N1e(vme),dme,jme)}),sTe=Kbe(function(dme,vme,xme,jme){tbe(vme,E1e(vme),dme,jme)}),lTe=ube(mSe);function uTe(dme,vme){var xme=Wbe(dme);return vme==null?xme:NCe(xme,vme)}var cTe=Gye(function(dme,vme){dme=c1e(dme);var xme=-1,jme=vme.length,Kme=jme>2?vme[2]:x_;for(Kme&&A1e(vme[0],vme[1],Kme)&&(jme=1);++xme<jme;)for(var Gme=vme[xme],i0e=N1e(Gme),c0e=-1,v0e=i0e.length;++c0e<v0e;){var B0e=i0e[c0e],H0e=dme[B0e];(H0e===x_||Q1e(H0e,Hbe[B0e])&&!i1e.call(dme,B0e))&&(dme[B0e]=Gme[B0e])}return dme}),fTe=Gye(function(dme){return dme.push(x_,bwe),k1e(rEe,x_,dme)});function dTe(dme,vme){return gCe(dme,$ye(vme,3),ebe)}function pTe(dme,vme){return gCe(dme,$ye(vme,3),bSe)}function hTe(dme,vme){return dme==null?dme:ySe(dme,$ye(vme,3),N1e)}function gTe(dme,vme){return dme==null?dme:BCe(dme,$ye(vme,3),N1e)}function vTe(dme,vme){return dme&&ebe(dme,$ye(vme,3))}function mTe(dme,vme){return dme&&bSe(dme,$ye(vme,3))}function yTe(dme){return dme==null?[]:M_e(dme,E1e(dme))}function bTe(dme){return dme==null?[]:M_e(dme,N1e(dme))}function ZSe(dme,vme,xme){var jme=dme==null?x_:Abe(dme,vme);return jme===x_?xme:jme}function _Te(dme,vme){return dme!=null&&Cwe(dme,vme,Vxe)}function QSe(dme,vme){return dme!=null&&Cwe(dme,vme,Wxe)}var STe=hwe(function(dme,vme,xme){vme!=null&&typeof vme.toString!="function"&&(vme=C_e.call(vme)),dme[vme]=xme},eCe(M1e)),CTe=hwe(function(dme,vme,xme){vme!=null&&typeof vme.toString!="function"&&(vme=C_e.call(vme)),i1e.call(dme,vme)?dme[vme].push(xme):dme[vme]=[xme]},$ye),wTe=Gye(l_e);function E1e(dme){return I1e(dme)?DCe(dme):wSe(dme)}function N1e(dme){return I1e(dme)?DCe(dme,!0):e2e(dme)}function ETe(dme,vme){var xme={};return vme=$ye(vme,3),ebe(dme,function(jme,Kme,Gme){sbe(xme,vme(jme,Kme,Gme),jme)}),xme}function xTe(dme,vme){var xme={};return vme=$ye(vme,3),ebe(dme,function(jme,Kme,Gme){sbe(xme,Kme,vme(jme,Kme,Gme))}),xme}var RTe=Kbe(function(dme,vme,xme){k_e(dme,vme,xme)}),rEe=Kbe(function(dme,vme,xme,jme){k_e(dme,vme,xme,jme)}),OTe=ube(function(dme,vme){var xme={};if(dme==null)return xme;var jme=!1;vme=g1e(vme,function(Gme){return Gme=Sbe(Gme,dme),jme||(jme=Gme.length>1),Gme}),tbe(dme,jSe(dme),xme),jme&&(xme=U1e(xme,ame|ome|ime,S2e));for(var Kme=vme.length;Kme--;)PSe(xme,vme[Kme]);return xme});function TTe(dme,vme){return aEe(dme,Z_e($ye(vme)))}var PTe=ube(function(dme,vme){return dme==null?{}:n2e(dme,vme)});function aEe(dme,vme){if(dme==null)return{};var xme=g1e(jSe(dme),function(jme){return[jme]});return vme=$ye(vme),YCe(dme,xme,function(jme,Kme){return vme(jme,Kme[0])})}function ATe(dme,vme,xme){vme=Sbe(vme,dme);var jme=-1,Kme=vme.length;for(Kme||(Kme=1,dme=x_);++jme<Kme;){var Gme=dme==null?x_:dme[nbe(vme[jme])];Gme===x_&&(jme=Kme,Gme=xme),dme=fbe(Gme)?Gme.call(dme):Gme}return dme}function $Te(dme,vme,xme){return dme==null?dme:c_e(dme,vme,xme)}function DTe(dme,vme,xme,jme){return jme=typeof jme=="function"?jme:x_,dme==null?dme:c_e(dme,vme,xme,jme)}var oEe=mwe(E1e),iEe=mwe(N1e);function ITe(dme,vme,xme){var jme=Bye(dme),Kme=jme||wbe(dme)||Gbe(dme);if(vme=$ye(vme,4),xme==null){var Gme=dme&&dme.constructor;Kme?xme=jme?new Gme:[]:v1e(dme)?xme=fbe(Gme)?Wbe(x_e(dme)):{}:xme={}}return(Kme?V1e:ebe)(dme,function(i0e,c0e,v0e){return vme(xme,i0e,c0e,v0e)}),xme}function NTe(dme,vme){return dme==null?!0:PSe(dme,vme)}function MTe(dme,vme,xme){return dme==null?dme:ewe(dme,vme,DSe(xme))}function kTe(dme,vme,xme,jme){return jme=typeof jme=="function"?jme:x_,dme==null?dme:ewe(dme,vme,DSe(xme),jme)}function Ybe(dme){return dme==null?[]:cSe(dme,E1e(dme))}function jTe(dme){return dme==null?[]:cSe(dme,N1e(dme))}function FTe(dme,vme,xme){return xme===x_&&(xme=vme,vme=x_),xme!==x_&&(xme=Y1e(xme),xme=xme===xme?xme:0),vme!==x_&&(vme=Y1e(vme),vme=vme===vme?vme:0),Pbe(Y1e(dme),vme,xme)}function BTe(dme,vme,xme){return vme=dbe(vme),xme===x_?(xme=vme,vme=0):xme=dbe(xme),dme=Y1e(dme),Kxe(dme,vme,xme)}function LTe(dme,vme,xme){if(xme&&typeof xme!="boolean"&&A1e(dme,vme,xme)&&(vme=xme=x_),xme===x_&&(typeof vme=="boolean"?(xme=vme,vme=x_):typeof dme=="boolean"&&(xme=dme,dme=x_)),dme===x_&&vme===x_?(dme=0,vme=1):(dme=dbe(dme),vme===x_?(vme=dme,dme=0):vme=dbe(vme)),dme>vme){var jme=dme;dme=vme,vme=jme}if(xme||dme%1||vme%1){var Kme=ACe();return O1e(dme+Kme*(vme-dme+yEe("1e-"+((Kme+"").length-1))),vme)}return RSe(dme,vme)}var HTe=Ube(function(dme,vme,xme){return vme=vme.toLowerCase(),dme+(xme?sEe(vme):vme)});function sEe(dme){return JSe(o1e(dme).toLowerCase())}function lEe(dme){return dme=o1e(dme),dme&&dme.replace(l0e,$Ee).replace(Mye,"")}function zTe(dme,vme,xme){dme=o1e(dme),vme=F1e(vme);var jme=dme.length;xme=xme===x_?jme:Pbe(zye(xme),0,jme);var Kme=xme;return xme-=vme.length,xme>=0&&dme.slice(xme,Kme)==vme}function VTe(dme){return dme=o1e(dme),dme&&X0e.test(dme)?dme.replace(q0e,DEe):dme}function WTe(dme){return dme=o1e(dme),dme&&sye.test(dme)?dme.replace(W0e,"\\$&"):dme}var KTe=Ube(function(dme,vme,xme){return dme+(xme?"-":"")+vme.toLowerCase()}),UTe=Ube(function(dme,vme,xme){return dme+(xme?" ":"")+vme.toLowerCase()}),qTe=fwe("toLowerCase");function GTe(dme,vme,xme){dme=o1e(dme),vme=zye(vme);var jme=vme?Bbe(dme):0;if(!vme||jme>=vme)return dme;var Kme=(vme-jme)/2;return z_e(P_e(Kme),xme)+dme+z_e(T_e(Kme),xme)}function YTe(dme,vme,xme){dme=o1e(dme),vme=zye(vme);var jme=vme?Bbe(dme):0;return vme&&jme<vme?dme+z_e(vme-jme,xme):dme}function XTe(dme,vme,xme){dme=o1e(dme),vme=zye(vme);var jme=vme?Bbe(dme):0;return vme&&jme<vme?z_e(vme-jme,xme)+dme:dme}function ZTe(dme,vme,xme){return xme||vme==null?vme=0:vme&&(vme=+vme),axe(o1e(dme).replace(G0e,""),vme||0)}function QTe(dme,vme,xme){return(xme?A1e(dme,vme,xme):vme===x_)?vme=1:vme=zye(vme),OSe(o1e(dme),vme)}function JTe(){var dme=arguments,vme=o1e(dme[0]);return dme.length<3?vme:vme.replace(dme[1],dme[2])}var ePe=Ube(function(dme,vme,xme){return dme+(xme?"_":"")+vme.toLowerCase()});function tPe(dme,vme,xme){return xme&&typeof xme!="number"&&A1e(dme,vme,xme)&&(vme=xme=x_),xme=xme===x_?wme:xme>>>0,xme?(dme=o1e(dme),dme&&(typeof vme=="string"||vme!=null&&!XSe(vme))&&(vme=F1e(vme),!vme&&Fbe(dme))?Cbe(X1e(dme),0,xme):dme.split(vme,xme)):[]}var nPe=Ube(function(dme,vme,xme){return dme+(xme?" ":"")+JSe(vme)});function rPe(dme,vme,xme){return dme=o1e(dme),xme=xme==null?0:Pbe(zye(xme),0,dme.length),vme=F1e(vme),dme.slice(xme,xme+vme.length)==vme}function aPe(dme,vme,xme){var jme=qme.templateSettings;xme&&A1e(dme,vme,xme)&&(vme=x_),dme=o1e(dme),vme=eSe({},vme,jme,ywe);var Kme=eSe({},vme.imports,jme.imports,ywe),Gme=E1e(Kme),i0e=cSe(Kme,Gme),c0e,v0e,B0e=0,H0e=vme.interpolate||S0e,K0e="__p += '",uye=dSe((vme.escape||S0e).source+"|"+H0e.source+"|"+(H0e===aye?n0e:S0e).source+"|"+(vme.evaluate||S0e).source+"|$","g"),Cye="//# sourceURL="+(i1e.call(vme,"sourceURL")?(vme.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++g_e+"]")+`
326
+ `;dme.replace(uye,function(Nye,Zye,t1e,L1e,$1e,H1e){return t1e||(t1e=L1e),K0e+=dme.slice(B0e,H1e).replace(I0e,IEe),Zye&&(c0e=!0,K0e+=`' +
327
+ __e(`+Zye+`) +
328
+ '`),$1e&&(v0e=!0,K0e+=`';
329
+ `+$1e+`;
330
+ __p += '`),t1e&&(K0e+=`' +
331
+ ((__t = (`+t1e+`)) == null ? '' : __t) +
332
+ '`),B0e=H1e+Nye.length,Nye}),K0e+=`';
333
+ `;var Iye=i1e.call(vme,"variable")&&vme.variable;if(!Iye)K0e=`with (obj) {
334
+ `+K0e+`
335
+ }
336
+ `;else if(R0e.test(Iye))throw new Fye(eme);K0e=(v0e?K0e.replace(Y0e,""):K0e).replace(mye,"$1").replace(Q0e,"$1;"),K0e="function("+(Iye||"obj")+`) {
337
+ `+(Iye?"":`obj || (obj = {});
338
+ `)+"var __t, __p = ''"+(c0e?", __e = _.escape":"")+(v0e?`, __j = Array.prototype.join;
339
+ function print() { __p += __j.call(arguments, '') }
340
+ `:`;
341
+ `)+K0e+`return __p
342
+ }`;var Kye=cEe(function(){return r1e(Gme,Cye+"return "+K0e).apply(x_,i0e)});if(Kye.source=K0e,YSe(Kye))throw Kye;return Kye}function oPe(dme){return o1e(dme).toLowerCase()}function iPe(dme){return o1e(dme).toUpperCase()}function sPe(dme,vme,xme){if(dme=o1e(dme),dme&&(xme||vme===x_))return bCe(dme);if(!dme||!(vme=F1e(vme)))return dme;var jme=X1e(dme),Kme=X1e(vme),Gme=_Ce(jme,Kme),i0e=SCe(jme,Kme)+1;return Cbe(jme,Gme,i0e).join("")}function lPe(dme,vme,xme){if(dme=o1e(dme),dme&&(xme||vme===x_))return dme.slice(0,wCe(dme)+1);if(!dme||!(vme=F1e(vme)))return dme;var jme=X1e(dme),Kme=SCe(jme,X1e(vme))+1;return Cbe(jme,0,Kme).join("")}function uPe(dme,vme,xme){if(dme=o1e(dme),dme&&(xme||vme===x_))return dme.replace(G0e,"");if(!dme||!(vme=F1e(vme)))return dme;var jme=X1e(dme),Kme=_Ce(jme,X1e(vme));return Cbe(jme,Kme).join("")}function cPe(dme,vme){var xme=_me,jme=Cme;if(v1e(vme)){var Kme="separator"in vme?vme.separator:Kme;xme="length"in vme?zye(vme.length):xme,jme="omission"in vme?F1e(vme.omission):jme}dme=o1e(dme);var Gme=dme.length;if(Fbe(dme)){var i0e=X1e(dme);Gme=i0e.length}if(xme>=Gme)return dme;var c0e=xme-Bbe(jme);if(c0e<1)return jme;var v0e=i0e?Cbe(i0e,0,c0e).join(""):dme.slice(0,c0e);if(Kme===x_)return v0e+jme;if(i0e&&(c0e+=v0e.length-c0e),XSe(Kme)){if(dme.slice(c0e).search(Kme)){var B0e,H0e=v0e;for(Kme.global||(Kme=dSe(Kme.source,o1e(f0e.exec(Kme))+"g")),Kme.lastIndex=0;B0e=Kme.exec(H0e);)var K0e=B0e.index;v0e=v0e.slice(0,K0e===x_?c0e:K0e)}}else if(dme.indexOf(F1e(Kme),c0e)!=c0e){var uye=v0e.lastIndexOf(Kme);uye>-1&&(v0e=v0e.slice(0,uye))}return v0e+jme}function fPe(dme){return dme=o1e(dme),dme&&V0e.test(dme)?dme.replace(U0e,LEe):dme}var dPe=Ube(function(dme,vme,xme){return dme+(xme?" ":"")+vme.toUpperCase()}),JSe=fwe("toUpperCase");function uEe(dme,vme,xme){return dme=o1e(dme),vme=xme?x_:vme,vme===x_?MEe(dme)?VEe(dme):REe(dme):dme.match(vme)||[]}var cEe=Gye(function(dme,vme){try{return k1e(dme,x_,vme)}catch(xme){return YSe(xme)?xme:new Fye(xme)}}),pPe=ube(function(dme,vme){return V1e(vme,function(xme){xme=nbe(xme),sbe(dme,xme,qSe(dme[xme],dme))}),dme});function hPe(dme){var vme=dme==null?0:dme.length,xme=$ye();return dme=vme?g1e(dme,function(jme){if(typeof jme[1]!="function")throw new W1e(zP);return[xme(jme[0]),jme[1]]}):[],Gye(function(jme){for(var Kme=-1;++Kme<vme;){var Gme=dme[Kme];if(k1e(Gme[0],this,jme))return k1e(Gme[1],this,jme)}})}function gPe(dme){return Lxe(U1e(dme,ame))}function eCe(dme){return function(){return dme}}function vPe(dme,vme){return dme==null||dme!==dme?vme:dme}var mPe=pwe(),yPe=pwe(!0);function M1e(dme){return dme}function tCe(dme){return VCe(typeof dme=="function"?dme:U1e(dme,ame))}function bPe(dme){return KCe(U1e(dme,ame))}function _Pe(dme,vme){return UCe(dme,U1e(vme,ame))}var SPe=Gye(function(dme,vme){return function(xme){return l_e(xme,dme,vme)}}),CPe=Gye(function(dme,vme){return function(xme){return l_e(dme,xme,vme)}});function nCe(dme,vme,xme){var jme=E1e(vme),Kme=M_e(vme,jme);xme==null&&!(v1e(vme)&&(Kme.length||!jme.length))&&(xme=vme,vme=dme,dme=this,Kme=M_e(vme,E1e(vme)));var Gme=!(v1e(xme)&&"chain"in xme)||!!xme.chain,i0e=fbe(dme);return V1e(Kme,function(c0e){var v0e=vme[c0e];dme[c0e]=v0e,i0e&&(dme.prototype[c0e]=function(){var B0e=this.__chain__;if(Gme||B0e){var H0e=dme(this.__wrapped__),K0e=H0e.__actions__=D1e(this.__actions__);return K0e.push({func:v0e,args:arguments,thisArg:dme}),H0e.__chain__=B0e,H0e}return v0e.apply(dme,vbe([this.value()],arguments))})}),dme}function wPe(){return x1e._===this&&(x1e._=YEe),this}function rCe(){}function EPe(dme){return dme=zye(dme),Gye(function(vme){return qCe(vme,dme)})}var xPe=NSe(g1e),RPe=NSe(hCe),OPe=NSe(oSe);function fEe(dme){return HSe(dme)?iSe(nbe(dme)):r2e(dme)}function TPe(dme){return function(vme){return dme==null?x_:Abe(dme,vme)}}var PPe=gwe(),APe=gwe(!0);function aCe(){return[]}function oCe(){return!1}function $Pe(){return{}}function DPe(){return""}function IPe(){return!0}function NPe(dme,vme){if(dme=zye(dme),dme<1||dme>Mme)return[];var xme=wme,jme=O1e(dme,wme);vme=$ye(vme),dme-=wme;for(var Kme=uSe(jme,vme);++xme<dme;)vme(xme);return Kme}function MPe(dme){return Bye(dme)?g1e(dme,nbe):B1e(dme)?[dme]:D1e($we(o1e(dme)))}function kPe(dme){var vme=++qEe;return o1e(dme)+vme}var jPe=H_e(function(dme,vme){return dme+vme},0),FPe=MSe("ceil"),BPe=H_e(function(dme,vme){return dme/vme},1),LPe=MSe("floor");function HPe(dme){return dme&&dme.length?N_e(dme,M1e,_Se):x_}function zPe(dme,vme){return dme&&dme.length?N_e(dme,$ye(vme,2),_Se):x_}function VPe(dme){return mCe(dme,M1e)}function WPe(dme,vme){return mCe(dme,$ye(vme,2))}function KPe(dme){return dme&&dme.length?N_e(dme,M1e,ESe):x_}function UPe(dme,vme){return dme&&dme.length?N_e(dme,$ye(vme,2),ESe):x_}var qPe=H_e(function(dme,vme){return dme*vme},1),GPe=MSe("round"),YPe=H_e(function(dme,vme){return dme-vme},0);function XPe(dme){return dme&&dme.length?lSe(dme,M1e):0}function ZPe(dme,vme){return dme&&dme.length?lSe(dme,$ye(vme,2)):0}return qme.after=bOe,qme.ary=zwe,qme.assign=iTe,qme.assignIn=nEe,qme.assignInWith=eSe,qme.assignWith=sTe,qme.at=lTe,qme.before=Vwe,qme.bind=qSe,qme.bindAll=pPe,qme.bindKey=Wwe,qme.castArray=$Oe,qme.chain=Bwe,qme.chunk=L2e,qme.compact=H2e,qme.concat=z2e,qme.cond=hPe,qme.conforms=gPe,qme.constant=eCe,qme.countBy=XRe,qme.create=uTe,qme.curry=Kwe,qme.curryRight=Uwe,qme.debounce=qwe,qme.defaults=cTe,qme.defaultsDeep=fTe,qme.defer=_Oe,qme.delay=SOe,qme.difference=V2e,qme.differenceBy=W2e,qme.differenceWith=K2e,qme.drop=U2e,qme.dropRight=q2e,qme.dropRightWhile=G2e,qme.dropWhile=Y2e,qme.fill=X2e,qme.filter=QRe,qme.flatMap=tOe,qme.flatMapDeep=nOe,qme.flatMapDepth=rOe,qme.flatten=Mwe,qme.flattenDeep=Z2e,qme.flattenDepth=Q2e,qme.flip=COe,qme.flow=mPe,qme.flowRight=yPe,qme.fromPairs=J2e,qme.functions=yTe,qme.functionsIn=bTe,qme.groupBy=aOe,qme.initial=tRe,qme.intersection=nRe,qme.intersectionBy=rRe,qme.intersectionWith=aRe,qme.invert=STe,qme.invertBy=CTe,qme.invokeMap=iOe,qme.iteratee=tCe,qme.keyBy=sOe,qme.keys=E1e,qme.keysIn=N1e,qme.map=G_e,qme.mapKeys=ETe,qme.mapValues=xTe,qme.matches=bPe,qme.matchesProperty=_Pe,qme.memoize=X_e,qme.merge=RTe,qme.mergeWith=rEe,qme.method=SPe,qme.methodOf=CPe,qme.mixin=nCe,qme.negate=Z_e,qme.nthArg=EPe,qme.omit=OTe,qme.omitBy=TTe,qme.once=wOe,qme.orderBy=lOe,qme.over=xPe,qme.overArgs=EOe,qme.overEvery=RPe,qme.overSome=OPe,qme.partial=GSe,qme.partialRight=Gwe,qme.partition=uOe,qme.pick=PTe,qme.pickBy=aEe,qme.property=fEe,qme.propertyOf=TPe,qme.pull=lRe,qme.pullAll=jwe,qme.pullAllBy=uRe,qme.pullAllWith=cRe,qme.pullAt=fRe,qme.range=PPe,qme.rangeRight=APe,qme.rearg=xOe,qme.reject=dOe,qme.remove=dRe,qme.rest=ROe,qme.reverse=KSe,qme.sampleSize=hOe,qme.set=$Te,qme.setWith=DTe,qme.shuffle=gOe,qme.slice=pRe,qme.sortBy=yOe,qme.sortedUniq=_Re,qme.sortedUniqBy=SRe,qme.split=tPe,qme.spread=OOe,qme.tail=CRe,qme.take=wRe,qme.takeRight=ERe,qme.takeRightWhile=xRe,qme.takeWhile=RRe,qme.tap=HRe,qme.throttle=TOe,qme.thru=q_e,qme.toArray=Jwe,qme.toPairs=oEe,qme.toPairsIn=iEe,qme.toPath=MPe,qme.toPlainObject=tEe,qme.transform=ITe,qme.unary=POe,qme.union=ORe,qme.unionBy=TRe,qme.unionWith=PRe,qme.uniq=ARe,qme.uniqBy=$Re,qme.uniqWith=DRe,qme.unset=NTe,qme.unzip=USe,qme.unzipWith=Fwe,qme.update=MTe,qme.updateWith=kTe,qme.values=Ybe,qme.valuesIn=jTe,qme.without=IRe,qme.words=uEe,qme.wrap=AOe,qme.xor=NRe,qme.xorBy=MRe,qme.xorWith=kRe,qme.zip=jRe,qme.zipObject=FRe,qme.zipObjectDeep=BRe,qme.zipWith=LRe,qme.entries=oEe,qme.entriesIn=iEe,qme.extend=nEe,qme.extendWith=eSe,nCe(qme,qme),qme.add=jPe,qme.attempt=cEe,qme.camelCase=HTe,qme.capitalize=sEe,qme.ceil=FPe,qme.clamp=FTe,qme.clone=DOe,qme.cloneDeep=NOe,qme.cloneDeepWith=MOe,qme.cloneWith=IOe,qme.conformsTo=kOe,qme.deburr=lEe,qme.defaultTo=vPe,qme.divide=BPe,qme.endsWith=zTe,qme.eq=Q1e,qme.escape=VTe,qme.escapeRegExp=WTe,qme.every=ZRe,qme.find=JRe,qme.findIndex=Iwe,qme.findKey=dTe,qme.findLast=eOe,qme.findLastIndex=Nwe,qme.findLastKey=pTe,qme.floor=LPe,qme.forEach=Lwe,qme.forEachRight=Hwe,qme.forIn=hTe,qme.forInRight=gTe,qme.forOwn=vTe,qme.forOwnRight=mTe,qme.get=ZSe,qme.gt=jOe,qme.gte=FOe,qme.has=_Te,qme.hasIn=QSe,qme.head=kwe,qme.identity=M1e,qme.includes=oOe,qme.indexOf=eRe,qme.inRange=BTe,qme.invoke=wTe,qme.isArguments=Ibe,qme.isArray=Bye,qme.isArrayBuffer=BOe,qme.isArrayLike=I1e,qme.isArrayLikeObject=_1e,qme.isBoolean=LOe,qme.isBuffer=wbe,qme.isDate=HOe,qme.isElement=zOe,qme.isEmpty=VOe,qme.isEqual=WOe,qme.isEqualWith=KOe,qme.isError=YSe,qme.isFinite=UOe,qme.isFunction=fbe,qme.isInteger=Ywe,qme.isLength=Q_e,qme.isMap=Xwe,qme.isMatch=qOe,qme.isMatchWith=GOe,qme.isNaN=YOe,qme.isNative=XOe,qme.isNil=QOe,qme.isNull=ZOe,qme.isNumber=Zwe,qme.isObject=v1e,qme.isObjectLike=m1e,qme.isPlainObject=h_e,qme.isRegExp=XSe,qme.isSafeInteger=JOe,qme.isSet=Qwe,qme.isString=J_e,qme.isSymbol=B1e,qme.isTypedArray=Gbe,qme.isUndefined=eTe,qme.isWeakMap=tTe,qme.isWeakSet=nTe,qme.join=oRe,qme.kebabCase=KTe,qme.last=G1e,qme.lastIndexOf=iRe,qme.lowerCase=UTe,qme.lowerFirst=qTe,qme.lt=rTe,qme.lte=aTe,qme.max=HPe,qme.maxBy=zPe,qme.mean=VPe,qme.meanBy=WPe,qme.min=KPe,qme.minBy=UPe,qme.stubArray=aCe,qme.stubFalse=oCe,qme.stubObject=$Pe,qme.stubString=DPe,qme.stubTrue=IPe,qme.multiply=qPe,qme.nth=sRe,qme.noConflict=wPe,qme.noop=rCe,qme.now=Y_e,qme.pad=GTe,qme.padEnd=YTe,qme.padStart=XTe,qme.parseInt=ZTe,qme.random=LTe,qme.reduce=cOe,qme.reduceRight=fOe,qme.repeat=QTe,qme.replace=JTe,qme.result=ATe,qme.round=GPe,qme.runInContext=p0e,qme.sample=pOe,qme.size=vOe,qme.snakeCase=ePe,qme.some=mOe,qme.sortedIndex=hRe,qme.sortedIndexBy=gRe,qme.sortedIndexOf=vRe,qme.sortedLastIndex=mRe,qme.sortedLastIndexBy=yRe,qme.sortedLastIndexOf=bRe,qme.startCase=nPe,qme.startsWith=rPe,qme.subtract=YPe,qme.sum=XPe,qme.sumBy=ZPe,qme.template=aPe,qme.times=NPe,qme.toFinite=dbe,qme.toInteger=zye,qme.toLength=eEe,qme.toLower=oPe,qme.toNumber=Y1e,qme.toSafeInteger=oTe,qme.toString=o1e,qme.toUpper=iPe,qme.trim=sPe,qme.trimEnd=lPe,qme.trimStart=uPe,qme.truncate=cPe,qme.unescape=fPe,qme.uniqueId=kPe,qme.upperCase=dPe,qme.upperFirst=JSe,qme.each=Lwe,qme.eachRight=Hwe,qme.first=kwe,nCe(qme,function(){var dme={};return ebe(qme,function(vme,xme){i1e.call(qme.prototype,xme)||(dme[xme]=vme)}),dme}(),{chain:!1}),qme.VERSION=$_,V1e(["bind","bindKey","curry","curryRight","partial","partialRight"],function(dme){qme[dme].placeholder=qme}),V1e(["drop","take"],function(dme,vme){Jye.prototype[dme]=function(xme){xme=xme===x_?1:w1e(zye(xme),0);var jme=this.__filtered__&&!vme?new Jye(this):this.clone();return jme.__filtered__?jme.__takeCount__=O1e(xme,jme.__takeCount__):jme.__views__.push({size:O1e(xme,wme),type:dme+(jme.__dir__<0?"Right":"")}),jme},Jye.prototype[dme+"Right"]=function(xme){return this.reverse()[dme](xme).reverse()}}),V1e(["filter","map","takeWhile"],function(dme,vme){var xme=vme+1,jme=xme==Rme||xme==$me;Jye.prototype[dme]=function(Kme){var Gme=this.clone();return Gme.__iteratees__.push({iteratee:$ye(Kme,3),type:xme}),Gme.__filtered__=Gme.__filtered__||jme,Gme}}),V1e(["head","last"],function(dme,vme){var xme="take"+(vme?"Right":"");Jye.prototype[dme]=function(){return this[xme](1).value()[0]}}),V1e(["initial","tail"],function(dme,vme){var xme="drop"+(vme?"":"Right");Jye.prototype[dme]=function(){return this.__filtered__?new Jye(this):this[xme](1)}}),Jye.prototype.compact=function(){return this.filter(M1e)},Jye.prototype.find=function(dme){return this.filter(dme).head()},Jye.prototype.findLast=function(dme){return this.reverse().find(dme)},Jye.prototype.invokeMap=Gye(function(dme,vme){return typeof dme=="function"?new Jye(this):this.map(function(xme){return l_e(xme,dme,vme)})}),Jye.prototype.reject=function(dme){return this.filter(Z_e($ye(dme)))},Jye.prototype.slice=function(dme,vme){dme=zye(dme);var xme=this;return xme.__filtered__&&(dme>0||vme<0)?new Jye(xme):(dme<0?xme=xme.takeRight(-dme):dme&&(xme=xme.drop(dme)),vme!==x_&&(vme=zye(vme),xme=vme<0?xme.dropRight(-vme):xme.take(vme-dme)),xme)},Jye.prototype.takeRightWhile=function(dme){return this.reverse().takeWhile(dme).reverse()},Jye.prototype.toArray=function(){return this.take(wme)},ebe(Jye.prototype,function(dme,vme){var xme=/^(?:filter|find|map|reject)|While$/.test(vme),jme=/^(?:head|last)$/.test(vme),Kme=qme[jme?"take"+(vme=="last"?"Right":""):vme],Gme=jme||/^find/.test(vme);Kme&&(qme.prototype[vme]=function(){var i0e=this.__wrapped__,c0e=jme?[1]:arguments,v0e=i0e instanceof Jye,B0e=c0e[0],H0e=v0e||Bye(i0e),K0e=function(Zye){var t1e=Kme.apply(qme,vbe([Zye],c0e));return jme&&uye?t1e[0]:t1e};H0e&&xme&&typeof B0e=="function"&&B0e.length!=1&&(v0e=H0e=!1);var uye=this.__chain__,Cye=!!this.__actions__.length,Iye=Gme&&!uye,Kye=v0e&&!Cye;if(!Gme&&H0e){i0e=Kye?i0e:new Jye(this);var Nye=dme.apply(i0e,c0e);return Nye.__actions__.push({func:q_e,args:[K0e],thisArg:x_}),new K1e(Nye,uye)}return Iye&&Kye?dme.apply(this,c0e):(Nye=this.thru(K0e),Iye?jme?Nye.value()[0]:Nye.value():Nye)})}),V1e(["pop","push","shift","sort","splice","unshift"],function(dme){var vme=b_e[dme],xme=/^(?:push|sort|unshift)$/.test(dme)?"tap":"thru",jme=/^(?:pop|shift)$/.test(dme);qme.prototype[dme]=function(){var Kme=arguments;if(jme&&!this.__chain__){var Gme=this.value();return vme.apply(Bye(Gme)?Gme:[],Kme)}return this[xme](function(i0e){return vme.apply(Bye(i0e)?i0e:[],Kme)})}}),ebe(Jye.prototype,function(dme,vme){var xme=qme[vme];if(xme){var jme=xme.name+"";i1e.call(Vbe,jme)||(Vbe[jme]=[]),Vbe[jme].push({name:vme,func:xme})}}),Vbe[L_e(x_,fme).name]=[{name:"wrapper",func:x_}],Jye.prototype.clone=fxe,Jye.prototype.reverse=dxe,Jye.prototype.value=pxe,qme.prototype.at=zRe,qme.prototype.chain=VRe,qme.prototype.commit=WRe,qme.prototype.next=KRe,qme.prototype.plant=qRe,qme.prototype.reverse=GRe,qme.prototype.toJSON=qme.prototype.valueOf=qme.prototype.value=YRe,qme.prototype.first=qme.prototype.head,t_e&&(qme.prototype[t_e]=URe),qme},Lbe=WEe();xbe?((xbe.exports=Lbe)._=Lbe,tSe._=Lbe):x1e._=Lbe}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const _$1=getDefaultExportFromCjs(lodashExports),{TextArea:OriginalTextArea,Password:OriginalPassword,Search:OriginalSearch}=Input$1,Input=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Input$1,{...Ff})}),CodeMachine=Ff=>{let{value:kh,...x_}=Ff;return kh=kh||"系统自动生成",jsxRuntimeExports.jsx(BaseWrapper,{...x_,children:jsxRuntimeExports.jsx(Input$1,{...x_,disabled:!0,value:kh})})},TextArea=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(OriginalTextArea,{...Ff})}),Password=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(OriginalPassword,{...Ff})}),Search=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(OriginalSearch,{...Ff})}),NumberRange=Ff=>{let{value:kh,onChange:x_,...$_}=Ff;const[B_,$P]=React.useState(["",""]);return React.useEffect(()=>{Array.isArray(kh)&&kh.length===2&&!_$1.isEqual(kh,B_)&&$P(kh)},[kh]),jsxRuntimeExports.jsx(BaseWrapper,{...$_,children:jsxRuntimeExports.jsxs("div",{className:"fw-full fflex fitems-center fgap-x-1",children:[jsxRuntimeExports.jsx("div",{className:"flex-1",children:jsxRuntimeExports.jsx(TypedInputNumber,{style:{width:"100%"},value:B_[0],onChange:zP=>{x_([zP,B_[1]])}})}),jsxRuntimeExports.jsx("svg",{t:"1721266030064",className:"ftext-gray-300 fw-5 fh-5",style:{fill:"currentColor"},viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6844",children:jsxRuntimeExports.jsx("path",{d:"M819.413333 633.6c0.341333 0 0.64 0 0.938667-0.085333 0.384 0 0.682667-0.128 1.066667-0.128l0.725333-0.085334c0.426667-0.085333 0.768-0.085333 1.109333-0.213333l0.597334-0.085333a16.426667 16.426667 0 0 0 1.066666-0.298667l0.597334-0.085333 1.109333-0.298667c0.213333-0.128 0.426667-0.128 0.597333-0.213333l1.024-0.298667a1.834667 1.834667 0 0 1 0.682667-0.213333l0.896-0.298667 0.810667-0.298667 0.810666-0.298666c0.298667-0.085333 0.597333-0.298667 0.853334-0.426667l0.725333-0.256 0.896-0.512 0.597333-0.298667 1.024-0.597333 0.512-0.298667 0.981334-0.597333 0.512-0.298667a5.504 5.504 0 0 0 0.853333-0.725333 2.176 2.176 0 0 0 0.512-0.426667 2.688 2.688 0 0 0 0.853333-0.682666l0.682667-0.597334c0.170667-0.170667 0.384-0.384 0.597333-0.469333a29.482667 29.482667 0 0 0 2.474667-2.517333c0.213333-0.213333 0.426667-0.426667 0.512-0.597334l0.597333-0.682666 0.682667-0.853334 0.426667-0.426666 0.682666-0.938667 0.298667-0.512 0.597333-0.981333 0.298667-0.512 0.597333-0.981334 0.298667-0.597333 0.512-0.896 0.298667-0.597333 0.426666-0.938667 0.298667-0.768 0.298667-0.810667 0.298666-0.896a1.834667 1.834667 0 0 0 0.170667-0.725333l0.298667-0.981333c0.128-0.213333 0.128-0.426667 0.213333-0.597334l0.298667-1.109333 0.085333-0.597333a5.12 5.12 0 0 0 0.213333-1.109334c0-0.170667 0.128-0.384 0.128-0.597333l0.170667-1.109333 0.128-0.682667 0.085333-1.109333c0-0.298667 0-0.597333 0.085334-0.853334 0-0.341333 0-0.64 0.128-0.853333a21.632 21.632 0 0 0 0-3.584c0-0.298667 0-0.597333-0.128-0.810667 0-0.298667 0-0.597333-0.085334-0.853333l-0.085333-1.152-0.128-0.682667-0.170667-1.109333-0.128-0.597333c-0.085333-0.426667-0.213333-0.810667-0.213333-1.109334l-0.085333-0.597333-0.298667-1.066667c-0.085333-0.213333-0.085333-0.426667-0.213333-0.597333l-0.298667-1.024a1.834667 1.834667 0 0 1-0.170667-0.682667l-0.298666-0.896-0.298667-0.853333c-0.128-0.256-0.213333-0.426667-0.298667-0.768l-0.426666-0.896-0.298667-0.597333-0.512-0.896-0.298667-0.597334-0.597333-1.024-0.298667-0.469333-0.597333-1.024-0.298667-0.512a5.504 5.504 0 0 0-0.682666-0.853333 2.176 2.176 0 0 0-0.426667-0.512 2.688 2.688 0 0 0-0.682667-0.853334c-0.213333-0.170667-0.426667-0.426667-0.597333-0.682666l-0.597333-0.597334c-0.426667-0.384-0.810667-0.853333-1.194667-1.28l-177.408-177.706666a35.925333 35.925333 0 0 0-50.901333 0 35.925333 35.925333 0 0 0 0 50.901333l116.010666 116.010667H185.813333a35.968 35.968 0 1 0 0 72.021333H818.645333c0.298667 0 0.597333-0.128 0.768-0.128z","p-id":"6845"})}),jsxRuntimeExports.jsx("div",{className:"flex-1",children:jsxRuntimeExports.jsx(TypedInputNumber,{value:B_[1],onChange:zP=>{x_([B_[0],zP])},style:{width:"100%"}})})]})})},Number$1=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(TypedInputNumber,{...Ff,style:{width:"100%"}})});var IconContext=React.createContext({}),hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{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 toHsv(Ff){var kh=Ff.r,x_=Ff.g,$_=Ff.b,B_=rgbToHsv(kh,x_,$_);return{h:B_.h*360,s:B_.s,v:B_.v}}function toHex(Ff){var kh=Ff.r,x_=Ff.g,$_=Ff.b;return"#".concat(rgbToHex(kh,x_,$_,!1))}function mix(Ff,kh,x_){var $_=x_/100,B_={r:(kh.r-Ff.r)*$_+Ff.r,g:(kh.g-Ff.g)*$_+Ff.g,b:(kh.b-Ff.b)*$_+Ff.b};return B_}function getHue(Ff,kh,x_){var $_;return Math.round(Ff.h)>=60&&Math.round(Ff.h)<=240?$_=x_?Math.round(Ff.h)-hueStep*kh:Math.round(Ff.h)+hueStep*kh:$_=x_?Math.round(Ff.h)+hueStep*kh:Math.round(Ff.h)-hueStep*kh,$_<0?$_+=360:$_>=360&&($_-=360),$_}function getSaturation(Ff,kh,x_){if(Ff.h===0&&Ff.s===0)return Ff.s;var $_;return x_?$_=Ff.s-saturationStep*kh:kh===darkColorCount?$_=Ff.s+saturationStep:$_=Ff.s+saturationStep2*kh,$_>1&&($_=1),x_&&kh===lightColorCount&&$_>.1&&($_=.1),$_<.06&&($_=.06),Number($_.toFixed(2))}function getValue$2(Ff,kh,x_){var $_;return x_?$_=Ff.v+brightnessStep1*kh:$_=Ff.v-brightnessStep2*kh,$_>1&&($_=1),Number($_.toFixed(2))}function generate$1(Ff){for(var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x_=[],$_=inputToRGB(Ff),B_=lightColorCount;B_>0;B_-=1){var $P=toHsv($_),zP=toHex(inputToRGB({h:getHue($P,B_,!0),s:getSaturation($P,B_,!0),v:getValue$2($P,B_,!0)}));x_.push(zP)}x_.push(toHex($_));for(var eme=1;eme<=darkColorCount;eme+=1){var tme=toHsv($_),nme=toHex(inputToRGB({h:getHue(tme,eme),s:getSaturation(tme,eme),v:getValue$2(tme,eme)}));x_.push(nme)}return kh.theme==="dark"?darkColorMap.map(function(rme){var ame=rme.index,ome=rme.opacity,ime=toHex(mix(inputToRGB(kh.backgroundColor||"#141414"),inputToRGB(x_[ame]),ome*100));return ime}):x_}var presetPrimaryColors={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(Ff){presetPalettes[Ff]=generate$1(presetPrimaryColors[Ff]),presetPalettes[Ff].primary=presetPalettes[Ff][5],presetDarkPalettes[Ff]=generate$1(presetPrimaryColors[Ff],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[Ff].primary=presetDarkPalettes[Ff][5]});var freeGlobal$1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$8=freeGlobal||freeSelf||Function("return this")(),_root=root$8,root$7=_root,Symbol$5=root$7.Symbol,_Symbol=Symbol$5;function arrayMap$1(Ff,kh){for(var x_=-1,$_=Ff==null?0:Ff.length,B_=Array($_);++x_<$_;)B_[x_]=kh(Ff[x_],x_,Ff);return B_}var _arrayMap=arrayMap$1,isArray$4=Array.isArray,isArray_1=isArray$4,Symbol$4=_Symbol,objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty,nativeObjectToString$1=objectProto$b.toString,symToStringTag$1=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$1(Ff){var kh=hasOwnProperty$9.call(Ff,symToStringTag$1),x_=Ff[symToStringTag$1];try{Ff[symToStringTag$1]=void 0;var $_=!0}catch{}var B_=nativeObjectToString$1.call(Ff);return $_&&(kh?Ff[symToStringTag$1]=x_:delete Ff[symToStringTag$1]),B_}var _getRawTag=getRawTag$1,objectProto$a=Object.prototype,nativeObjectToString=objectProto$a.toString;function objectToString$1(Ff){return nativeObjectToString.call(Ff)}var _objectToString=objectToString$1,Symbol$3=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$5(Ff){return Ff==null?Ff===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(Ff)?getRawTag(Ff):objectToString(Ff)}var _baseGetTag=baseGetTag$5;function isObjectLike$5(Ff){return Ff!=null&&typeof Ff=="object"}var isObjectLike_1=isObjectLike$5,baseGetTag$4=_baseGetTag,isObjectLike$4=isObjectLike_1,symbolTag$1="[object Symbol]";function isSymbol$1(Ff){return typeof Ff=="symbol"||isObjectLike$4(Ff)&&baseGetTag$4(Ff)==symbolTag$1}var isSymbol_1=isSymbol$1,Symbol$2=_Symbol,arrayMap=_arrayMap,isArray$3=isArray_1,isSymbol=isSymbol_1,INFINITY=1/0,symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString$1(Ff){if(typeof Ff=="string")return Ff;if(isArray$3(Ff))return arrayMap(Ff,baseToString$1)+"";if(isSymbol(Ff))return symbolToString?symbolToString.call(Ff):"";var kh=Ff+"";return kh=="0"&&1/Ff==-INFINITY?"-0":kh}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$4(Ff){return Ff==null?"":baseToString(Ff)}var toString_1=toString$4;function baseSlice$1(Ff,kh,x_){var $_=-1,B_=Ff.length;kh<0&&(kh=-kh>B_?0:B_+kh),x_=x_>B_?B_:x_,x_<0&&(x_+=B_),B_=kh>x_?0:x_-kh>>>0,kh>>>=0;for(var $P=Array(B_);++$_<B_;)$P[$_]=Ff[$_+kh];return $P}var _baseSlice=baseSlice$1,baseSlice=_baseSlice;function castSlice$1(Ff,kh,x_){var $_=Ff.length;return x_=x_===void 0?$_:x_,!kh&&x_>=$_?Ff:baseSlice(Ff,kh,x_)}var _castSlice=castSlice$1,rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsVarRange$2="\\ufe0e\\ufe0f",rsZWJ$2="\\u200d",reHasUnicode=RegExp("["+rsZWJ$2+rsAstralRange$2+rsComboRange$3+rsVarRange$2+"]");function hasUnicode$2(Ff){return reHasUnicode.test(Ff)}var _hasUnicode=hasUnicode$2;function asciiToArray$1(Ff){return Ff.split("")}var _asciiToArray=asciiToArray$1,rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsVarRange$1="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange$1+"]",rsCombo$2="["+rsComboRange$2+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$2+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$1+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$1="\\u200d",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$1+"]?",rsOptJoin$1="(?:"+rsZWJ$1+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsSymbol="(?:"+[rsNonAstral$1+rsCombo$2+"?",rsCombo$2,rsRegional$1,rsSurrPair$1,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz$1+"(?="+rsFitz$1+")|"+rsSymbol+rsSeq$1,"g");function unicodeToArray$1(Ff){return Ff.match(reUnicode)||[]}var _unicodeToArray=unicodeToArray$1,asciiToArray=_asciiToArray,hasUnicode$1=_hasUnicode,unicodeToArray=_unicodeToArray;function stringToArray$1(Ff){return hasUnicode$1(Ff)?unicodeToArray(Ff):asciiToArray(Ff)}var _stringToArray=stringToArray$1,castSlice=_castSlice,hasUnicode=_hasUnicode,stringToArray=_stringToArray,toString$3=toString_1;function createCaseFirst$1(Ff){return function(kh){kh=toString$3(kh);var x_=hasUnicode(kh)?stringToArray(kh):void 0,$_=x_?x_[0]:kh.charAt(0),B_=x_?castSlice(x_,1).join(""):kh.slice(1);return $_[Ff]()+B_}}var _createCaseFirst=createCaseFirst$1,createCaseFirst=_createCaseFirst,upperFirst$1=createCaseFirst("toUpperCase"),upperFirst_1=upperFirst$1,toString$2=toString_1,upperFirst=upperFirst_1;function capitalize$1(Ff){return upperFirst(toString$2(Ff).toLowerCase())}var capitalize_1=capitalize$1;function arrayReduce$1(Ff,kh,x_,$_){var B_=-1,$P=Ff==null?0:Ff.length;for($_&&$P&&(x_=Ff[++B_]);++B_<$P;)x_=kh(x_,Ff[B_],B_,Ff);return x_}var _arrayReduce=arrayReduce$1;function basePropertyOf$1(Ff){return function(kh){return Ff==null?void 0:Ff[kh]}}var _basePropertyOf=basePropertyOf$1,basePropertyOf=_basePropertyOf,deburredLetters={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},deburrLetter$1=basePropertyOf(deburredLetters),_deburrLetter=deburrLetter$1,deburrLetter=_deburrLetter,toString$1=toString_1,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsCombo$1="["+rsComboRange$1+"]",reComboMark=RegExp(rsCombo$1,"g");function deburr$1(Ff){return Ff=toString$1(Ff),Ff&&Ff.replace(reLatin,deburrLetter).replace(reComboMark,"")}var deburr_1=deburr$1,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords$1(Ff){return Ff.match(reAsciiWord)||[]}var _asciiWords=asciiWords$1,reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord$1(Ff){return reHasUnicodeWord.test(Ff)}var _hasUnicodeWord=hasUnicodeWord$1,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['’]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords$1(Ff){return Ff.match(reUnicodeWord)||[]}var _unicodeWords=unicodeWords$1,asciiWords=_asciiWords,hasUnicodeWord=_hasUnicodeWord,toString=toString_1,unicodeWords=_unicodeWords;function words$1(Ff,kh,x_){return Ff=toString(Ff),kh=x_?void 0:kh,kh===void 0?hasUnicodeWord(Ff)?unicodeWords(Ff):asciiWords(Ff):Ff.match(kh)||[]}var words_1=words$1,arrayReduce=_arrayReduce,deburr=deburr_1,words=words_1,rsApos="['’]",reApos=RegExp(rsApos,"g");function createCompounder$1(Ff){return function(kh){return arrayReduce(words(deburr(kh).replace(reApos,"")),Ff,"")}}var _createCompounder=createCompounder$1,capitalize=capitalize_1,createCompounder=_createCompounder,camelCase=createCompounder(function(Ff,kh,x_){return kh=kh.toLowerCase(),Ff+(x_?capitalize(kh):kh)}),camelCase_1=camelCase;const camelCase$1=getDefaultExportFromCjs(camelCase_1);function warning(Ff,kh){warningOnce(Ff,"[@ant-design/icons] ".concat(kh))}function isIconDefinition(Ff){return _typeof(Ff)==="object"&&typeof Ff.name=="string"&&typeof Ff.theme=="string"&&(_typeof(Ff.icon)==="object"||typeof Ff.icon=="function")}function normalizeAttrs(){var Ff=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(Ff).reduce(function(kh,x_){var $_=Ff[x_];switch(x_){case"class":kh.className=$_,delete kh.class;break;default:delete kh[x_],kh[camelCase$1(x_)]=$_}return kh},{})}function generate(Ff,kh,x_){return x_?React.createElement(Ff.tag,_objectSpread2(_objectSpread2({key:kh},normalizeAttrs(Ff.attrs)),x_),(Ff.children||[]).map(function($_,B_){return generate($_,"".concat(kh,"-").concat(Ff.tag,"-").concat(B_))})):React.createElement(Ff.tag,_objectSpread2({key:kh},normalizeAttrs(Ff.attrs)),(Ff.children||[]).map(function($_,B_){return generate($_,"".concat(kh,"-").concat(Ff.tag,"-").concat(B_))}))}function getSecondaryColor(Ff){return generate$1(Ff)[0]}function normalizeTwoToneColors(Ff){return Ff?Array.isArray(Ff)?Ff:[Ff]:[]}var iconStyles=`
317
343
  .anticon {
318
344
  display: inline-flex;
319
345
  alignItems: center;
@@ -368,33 +394,7 @@ html body {
368
394
  transform: rotate(360deg);
369
395
  }
370
396
  }
371
- `,useInsertStyles=function(){var kh=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iconStyles,x_=React.useContext(IconContext),$_=x_.csp;React.useEffect(function(){updateCSS(kh,"@ant-design-icons",{prepend:!0,csp:$_})},[])},_excluded$1=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors(Ff){var kh=Ff.primaryColor,x_=Ff.secondaryColor;twoToneColorPalette.primaryColor=kh,twoToneColorPalette.secondaryColor=x_||getSecondaryColor(kh),twoToneColorPalette.calculated=!!x_}function getTwoToneColors(){return _objectSpread2({},twoToneColorPalette)}var IconBase=function(kh){var x_=kh.icon,$_=kh.className,B_=kh.onClick,$P=kh.style,zP=kh.primaryColor,eme=kh.secondaryColor,tme=_objectWithoutProperties(kh,_excluded$1),nme=twoToneColorPalette;if(zP&&(nme={primaryColor:zP,secondaryColor:eme||getSecondaryColor(zP)}),useInsertStyles(),warning(isIconDefinition(x_),"icon should be icon definiton, but got ".concat(x_)),!isIconDefinition(x_))return null;var rme=x_;return rme&&typeof rme.icon=="function"&&(rme=_objectSpread2(_objectSpread2({},rme),{},{icon:rme.icon(nme.primaryColor,nme.secondaryColor)})),generate(rme.icon,"svg-".concat(rme.name),_objectSpread2({className:$_,onClick:B_,style:$P,"data-icon":rme.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},tme))};IconBase.displayName="IconReact";IconBase.getTwoToneColors=getTwoToneColors;IconBase.setTwoToneColors=setTwoToneColors;function setTwoToneColor(Ff){var kh=normalizeTwoToneColors(Ff),x_=_slicedToArray(kh,2),$_=x_[0],B_=x_[1];return IconBase.setTwoToneColors({primaryColor:$_,secondaryColor:B_})}function getTwoToneColor(){var Ff=IconBase.getTwoToneColors();return Ff.calculated?[Ff.primaryColor,Ff.secondaryColor]:Ff.primaryColor}var _excluded=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor("#1890ff");var Icon=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.className,$_=Ff.icon,B_=Ff.spin,$P=Ff.rotate,zP=Ff.tabIndex,eme=Ff.onClick,tme=Ff.twoToneColor,nme=_objectWithoutProperties(Ff,_excluded),rme=React__namespace.useContext(IconContext),ame=rme.prefixCls,ome=ame===void 0?"anticon":ame,ime=rme.rootClassName,cme=classNames(ime,ome,_defineProperty(_defineProperty({},"".concat(ome,"-").concat($_.name),!!$_.name),"".concat(ome,"-spin"),!!B_||$_.name==="loading"),x_),ume=zP;ume===void 0&&eme&&(ume=-1);var sme=$P?{msTransform:"rotate(".concat($P,"deg)"),transform:"rotate(".concat($P,"deg)")}:void 0,fme=normalizeTwoToneColors(tme),lme=_slicedToArray(fme,2),hme=lme[0],pme=lme[1];return React__namespace.createElement("span",_objectSpread2(_objectSpread2({role:"img","aria-label":$_.name},nme),{},{ref:kh,tabIndex:ume,onClick:eme,className:cme}),React__namespace.createElement(IconBase,{icon:$_,primaryColor:hme,secondaryColor:pme,style:sme}))});Icon.displayName="AntdIcon";Icon.getTwoToneColor=getTwoToneColor;Icon.setTwoToneColor=setTwoToneColor;var DeleteOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:DeleteOutlined$2}))},RefIcon$3=React__namespace.forwardRef(DeleteOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$3.displayName="DeleteOutlined");var EyeOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:EyeOutlined$2}))},RefIcon$2=React__namespace.forwardRef(EyeOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$2.displayName="EyeOutlined");var PlusOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:PlusOutlined$1}))},RefIcon$1=React__namespace.forwardRef(PlusOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$1.displayName="PlusOutlined");var UploadOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},UploadOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:UploadOutlined$1}))},RefIcon=React__namespace.forwardRef(UploadOutlined);process.env.NODE_ENV!=="production"&&(RefIcon.displayName="UploadOutlined");function handleTree(Ff){let kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"id",x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"title",$_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parentId",B_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"children",$P=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,zP=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0;return constructTree(Ff,kh,x_,$_,B_,$P,eme=>({value:eme[kh],title:eme[x_],key:eme[kh],disabled:eme[kh]===zP}))}function constructTree(Ff,kh,x_,$_,B_,$P,zP){if(!Array.isArray(Ff)||Ff.length===0)return[];const eme=Ff.map(tme=>({...tme,...zP(tme)}));return eme.filter(tme=>{const nme=eme.filter(rme=>tme[kh]===rme[$_]);return tme[B_]=nme.length>0?nme:[],tme[$_]===$P})}var lodash={exports:{}};/**
372
- * @license
373
- * Lodash <https://lodash.com/>
374
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
375
- * Released under MIT license <https://lodash.com/license>
376
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
377
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
378
- */lodash.exports;(function(Ff,kh){(function(){var x_,$_="4.17.21",B_=200,$P="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",zP="Expected a function",eme="Invalid `variable` option passed into `_.template`",tme="__lodash_hash_undefined__",nme=500,rme="__lodash_placeholder__",ame=1,ome=2,ime=4,cme=1,ume=2,sme=1,fme=2,lme=4,hme=8,pme=16,gme=32,yme=64,mme=128,bme=256,Sme=512,_me=30,Cme="...",Eme=800,Tme=16,Rme=1,Pme=2,$me=3,Dme=1/0,Mme=9007199254740991,Nme=17976931348623157e292,Ime=NaN,wme=4294967295,Ome=wme-1,Ame=wme>>>1,Fme=[["ary",mme],["bind",sme],["bindKey",fme],["curry",hme],["curryRight",pme],["flip",Sme],["partial",gme],["partialRight",yme],["rearg",bme]],Bme="[object Arguments]",kme="[object Array]",Lme="[object AsyncFunction]",Hme="[object Boolean]",Wme="[object Date]",zme="[object DOMException]",Vme="[object Error]",Xme="[object Function]",e0e="[object GeneratorFunction]",Ume="[object Map]",Jme="[object Number]",s0e="[object Null]",d0e="[object Object]",Zme="[object Promise]",Qme="[object Proxy]",a0e="[object RegExp]",t0e="[object Set]",o0e="[object String]",g0e="[object Symbol]",u0e="[object Undefined]",h0e="[object WeakMap]",E0e="[object WeakSet]",P0e="[object ArrayBuffer]",y0e="[object DataView]",$0e="[object Float32Array]",C0e="[object Float64Array]",z0e="[object Int8Array]",D0e="[object Int16Array]",O0e="[object Int32Array]",b0e="[object Uint8Array]",k0e="[object Uint8ClampedArray]",T0e="[object Uint16Array]",L0e="[object Uint32Array]",Y0e=/\b__p \+= '';/g,mye=/\b(__p \+=) '' \+/g,Q0e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U0e=/&(?:amp|lt|gt|quot|#39);/g,q0e=/[&<>"']/g,V0e=RegExp(U0e.source),X0e=RegExp(q0e.source),M0e=/<%-([\s\S]+?)%>/g,J0e=/<%([\s\S]+?)%>/g,aye=/<%=([\s\S]+?)%>/g,F0e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cye=/^\w*$/,yye=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W0e=/[\\^$.*+?()[\]{}|]/g,sye=RegExp(W0e.source),G0e=/^\s+/,hye=/\s/,wye=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Eye=/\{\n\/\* \[wrapped with (.+)\] \*/,Vye=/,? & /,r0e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,R0e=/[()=,{}\[\]\/\s]/,A0e=/\\(\\)?/g,n0e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,f0e=/\w*$/,m0e=/^[-+]0x[0-9a-f]+$/i,w0e=/^0b[01]+$/i,j0e=/^\[object .+?Constructor\]$/,_0e=/^0o[0-7]+$/i,Yme=/^(?:0|[1-9]\d*)$/,l0e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,S0e=/($^)/,I0e=/['\n\r\u2028\u2029\\]/g,Z0e="\\ud800-\\udfff",lye="\\u0300-\\u036f",Tye="\\ufe20-\\ufe2f",xye="\\u20d0-\\u20ff",Dye=lye+Tye+xye,Lye="\\u2700-\\u27bf",lbe="a-z\\xdf-\\xf6\\xf8-\\xff",Uye="\\xac\\xb1\\xd7\\xf7",Qye="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Sye="\\u2000-\\u206f",jye=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",qye="A-Z\\xc0-\\xd6\\xd8-\\xde",Rye="\\ufe0e\\ufe0f",Aye=Uye+Qye+Sye+jye,Oye="['’]",fye="["+Z0e+"]",gye="["+Aye+"]",Hye="["+Dye+"]",Xye="\\d+",Wye="["+Lye+"]",nbe="["+lbe+"]",bye="[^"+Z0e+Aye+Xye+Lye+lbe+qye+"]",dye="\\ud83c[\\udffb-\\udfff]",Yye="(?:"+Hye+"|"+dye+")",ube="[^"+Z0e+"]",sbe="(?:\\ud83c[\\udde6-\\uddff]){2}",ybe="[\\ud800-\\udbff][\\udc00-\\udfff]",Pye="["+qye+"]",pye="\\u200d",kye="(?:"+nbe+"|"+bye+")",ebe="(?:"+Pye+"|"+bye+")",pbe="(?:"+Oye+"(?:d|ll|m|re|s|t|ve))?",r1e="(?:"+Oye+"(?:D|LL|M|RE|S|T|VE))?",a1e=Yye+"?",h1e="["+Rye+"]?",E1e="(?:"+pye+"(?:"+[ube,sbe,ybe].join("|")+")"+h1e+a1e+")*",N1e="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",X1e="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",M1e=h1e+a1e+E1e,Z1e="(?:"+[Wye,sbe,ybe].join("|")+")"+M1e,Q1e="(?:"+[ube+Hye+"?",Hye,sbe,ybe,fye].join("|")+")",_ye=RegExp(Oye,"g"),Mye=RegExp(Hye,"g"),fbe=RegExp(dye+"(?="+dye+")|"+Q1e+M1e,"g"),bbe=RegExp([Pye+"?"+nbe+"+"+pbe+"(?="+[gye,Pye,"$"].join("|")+")",ebe+"+"+r1e+"(?="+[gye,Pye+kye,"$"].join("|")+")",Pye+"?"+kye+"+"+pbe,Pye+"+"+r1e,X1e,N1e,Xye,Z1e].join("|"),"g"),hbe=RegExp("["+pye+Z0e+Dye+Rye+"]"),k1e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,J1e=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],g_e=-1,abe={};abe[$0e]=abe[C0e]=abe[z0e]=abe[D0e]=abe[O0e]=abe[b0e]=abe[k0e]=abe[T0e]=abe[L0e]=!0,abe[Bme]=abe[kme]=abe[P0e]=abe[Hme]=abe[y0e]=abe[Wme]=abe[Vme]=abe[Xme]=abe[Ume]=abe[Jme]=abe[d0e]=abe[a0e]=abe[t0e]=abe[o0e]=abe[h0e]=!1;var dbe={};dbe[Bme]=dbe[kme]=dbe[P0e]=dbe[y0e]=dbe[Hme]=dbe[Wme]=dbe[$0e]=dbe[C0e]=dbe[z0e]=dbe[D0e]=dbe[O0e]=dbe[Ume]=dbe[Jme]=dbe[d0e]=dbe[a0e]=dbe[t0e]=dbe[o0e]=dbe[g0e]=dbe[b0e]=dbe[k0e]=dbe[T0e]=dbe[L0e]=!0,dbe[Vme]=dbe[Xme]=dbe[h0e]=!1;var hEe={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},gEe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},vEe={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},mEe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yEe=parseFloat,bEe=parseInt,iCe=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_Ee=typeof self=="object"&&self&&self.Object===Object&&self,xbe=iCe||_Ee||Function("return this")(),tSe=kh&&!kh.nodeType&&kh,x1e=tSe&&!0&&Ff&&!Ff.nodeType&&Ff,sCe=x1e&&x1e.exports===tSe,nSe=sCe&&iCe.process,zbe=function(){try{var p0e=x1e&&x1e.require&&x1e.require("util").types;return p0e||nSe&&nSe.binding&&nSe.binding("util")}catch{}}(),lCe=zbe&&zbe.isArrayBuffer,uCe=zbe&&zbe.isDate,cCe=zbe&&zbe.isMap,fCe=zbe&&zbe.isRegExp,dCe=zbe&&zbe.isSet,pCe=zbe&&zbe.isTypedArray;function kbe(p0e,N0e,x0e){switch(x0e.length){case 0:return p0e.call(N0e);case 1:return p0e.call(N0e,x0e[0]);case 2:return p0e.call(N0e,x0e[0],x0e[1]);case 3:return p0e.call(N0e,x0e[0],x0e[1],x0e[2])}return p0e.apply(N0e,x0e)}function SEe(p0e,N0e,x0e,vye){for(var Fye=-1,rbe=p0e==null?0:p0e.length;++Fye<rbe;){var Cbe=p0e[Fye];N0e(vye,Cbe,x0e(Cbe),p0e)}return vye}function Vbe(p0e,N0e){for(var x0e=-1,vye=p0e==null?0:p0e.length;++x0e<vye&&N0e(p0e[x0e],x0e,p0e)!==!1;);return p0e}function CEe(p0e,N0e){for(var x0e=p0e==null?0:p0e.length;x0e--&&N0e(p0e[x0e],x0e,p0e)!==!1;);return p0e}function hCe(p0e,N0e){for(var x0e=-1,vye=p0e==null?0:p0e.length;++x0e<vye;)if(!N0e(p0e[x0e],x0e,p0e))return!1;return!0}function g1e(p0e,N0e){for(var x0e=-1,vye=p0e==null?0:p0e.length,Fye=0,rbe=[];++x0e<vye;){var Cbe=p0e[x0e];N0e(Cbe,x0e,p0e)&&(rbe[Fye++]=Cbe)}return rbe}function v_e(p0e,N0e){var x0e=p0e==null?0:p0e.length;return!!x0e&&j1e(p0e,N0e,0)>-1}function rSe(p0e,N0e,x0e){for(var vye=-1,Fye=p0e==null?0:p0e.length;++vye<Fye;)if(x0e(N0e,p0e[vye]))return!0;return!1}function gbe(p0e,N0e){for(var x0e=-1,vye=p0e==null?0:p0e.length,Fye=Array(vye);++x0e<vye;)Fye[x0e]=N0e(p0e[x0e],x0e,p0e);return Fye}function v1e(p0e,N0e){for(var x0e=-1,vye=N0e.length,Fye=p0e.length;++x0e<vye;)p0e[Fye+x0e]=N0e[x0e];return p0e}function aSe(p0e,N0e,x0e,vye){var Fye=-1,rbe=p0e==null?0:p0e.length;for(vye&&rbe&&(x0e=p0e[++Fye]);++Fye<rbe;)x0e=N0e(x0e,p0e[Fye],Fye,p0e);return x0e}function wEe(p0e,N0e,x0e,vye){var Fye=p0e==null?0:p0e.length;for(vye&&Fye&&(x0e=p0e[--Fye]);Fye--;)x0e=N0e(x0e,p0e[Fye],Fye,p0e);return x0e}function oSe(p0e,N0e){for(var x0e=-1,vye=p0e==null?0:p0e.length;++x0e<vye;)if(N0e(p0e[x0e],x0e,p0e))return!0;return!1}var EEe=iSe("length");function xEe(p0e){return p0e.split("")}function REe(p0e){return p0e.match(r0e)||[]}function gCe(p0e,N0e,x0e){var vye;return x0e(p0e,function(Fye,rbe,Cbe){if(N0e(Fye,rbe,Cbe))return vye=rbe,!1}),vye}function m_e(p0e,N0e,x0e,vye){for(var Fye=p0e.length,rbe=x0e+(vye?1:-1);vye?rbe--:++rbe<Fye;)if(N0e(p0e[rbe],rbe,p0e))return rbe;return-1}function j1e(p0e,N0e,x0e){return N0e===N0e?FEe(p0e,N0e,x0e):m_e(p0e,vCe,x0e)}function OEe(p0e,N0e,x0e,vye){for(var Fye=x0e-1,rbe=p0e.length;++Fye<rbe;)if(vye(p0e[Fye],N0e))return Fye;return-1}function vCe(p0e){return p0e!==p0e}function mCe(p0e,N0e){var x0e=p0e==null?0:p0e.length;return x0e?lSe(p0e,N0e)/x0e:Ime}function iSe(p0e){return function(N0e){return N0e==null?x_:N0e[p0e]}}function sSe(p0e){return function(N0e){return p0e==null?x_:p0e[N0e]}}function yCe(p0e,N0e,x0e,vye,Fye){return Fye(p0e,function(rbe,Cbe,cbe){x0e=vye?(vye=!1,rbe):N0e(x0e,rbe,Cbe,cbe)}),x0e}function TEe(p0e,N0e){var x0e=p0e.length;for(p0e.sort(N0e);x0e--;)p0e[x0e]=p0e[x0e].value;return p0e}function lSe(p0e,N0e){for(var x0e,vye=-1,Fye=p0e.length;++vye<Fye;){var rbe=N0e(p0e[vye]);rbe!==x_&&(x0e=x0e===x_?rbe:x0e+rbe)}return x0e}function uSe(p0e,N0e){for(var x0e=-1,vye=Array(p0e);++x0e<p0e;)vye[x0e]=N0e(x0e);return vye}function PEe(p0e,N0e){return gbe(N0e,function(x0e){return[x0e,p0e[x0e]]})}function bCe(p0e){return p0e&&p0e.slice(0,wCe(p0e)+1).replace(G0e,"")}function jbe(p0e){return function(N0e){return p0e(N0e)}}function cSe(p0e,N0e){return gbe(N0e,function(x0e){return p0e[x0e]})}function e_e(p0e,N0e){return p0e.has(N0e)}function _Ce(p0e,N0e){for(var x0e=-1,vye=p0e.length;++x0e<vye&&j1e(N0e,p0e[x0e],0)>-1;);return x0e}function SCe(p0e,N0e){for(var x0e=p0e.length;x0e--&&j1e(N0e,p0e[x0e],0)>-1;);return x0e}function AEe(p0e,N0e){for(var x0e=p0e.length,vye=0;x0e--;)p0e[x0e]===N0e&&++vye;return vye}var $Ee=sSe(hEe),DEe=sSe(gEe);function IEe(p0e){return"\\"+mEe[p0e]}function NEe(p0e,N0e){return p0e==null?x_:p0e[N0e]}function F1e(p0e){return hbe.test(p0e)}function MEe(p0e){return k1e.test(p0e)}function kEe(p0e){for(var N0e,x0e=[];!(N0e=p0e.next()).done;)x0e.push(N0e.value);return x0e}function fSe(p0e){var N0e=-1,x0e=Array(p0e.size);return p0e.forEach(function(vye,Fye){x0e[++N0e]=[Fye,vye]}),x0e}function CCe(p0e,N0e){return function(x0e){return p0e(N0e(x0e))}}function m1e(p0e,N0e){for(var x0e=-1,vye=p0e.length,Fye=0,rbe=[];++x0e<vye;){var Cbe=p0e[x0e];(Cbe===N0e||Cbe===rme)&&(p0e[x0e]=rme,rbe[Fye++]=x0e)}return rbe}function y_e(p0e){var N0e=-1,x0e=Array(p0e.size);return p0e.forEach(function(vye){x0e[++N0e]=vye}),x0e}function jEe(p0e){var N0e=-1,x0e=Array(p0e.size);return p0e.forEach(function(vye){x0e[++N0e]=[vye,vye]}),x0e}function FEe(p0e,N0e,x0e){for(var vye=x0e-1,Fye=p0e.length;++vye<Fye;)if(p0e[vye]===N0e)return vye;return-1}function BEe(p0e,N0e,x0e){for(var vye=x0e+1;vye--;)if(p0e[vye]===N0e)return vye;return vye}function B1e(p0e){return F1e(p0e)?HEe(p0e):EEe(p0e)}function Xbe(p0e){return F1e(p0e)?zEe(p0e):xEe(p0e)}function wCe(p0e){for(var N0e=p0e.length;N0e--&&hye.test(p0e.charAt(N0e)););return N0e}var LEe=sSe(vEe);function HEe(p0e){for(var N0e=fbe.lastIndex=0;fbe.test(p0e);)++N0e;return N0e}function zEe(p0e){return p0e.match(fbe)||[]}function VEe(p0e){return p0e.match(bbe)||[]}var WEe=function p0e(N0e){N0e=N0e==null?xbe:L1e.defaults(xbe.Object(),N0e,L1e.pick(xbe,J1e));var x0e=N0e.Array,vye=N0e.Date,Fye=N0e.Error,rbe=N0e.Function,Cbe=N0e.Math,cbe=N0e.Object,dSe=N0e.RegExp,KEe=N0e.String,Wbe=N0e.TypeError,b_e=x0e.prototype,UEe=rbe.prototype,H1e=cbe.prototype,__e=N0e["__core-js_shared__"],S_e=UEe.toString,ibe=H1e.hasOwnProperty,qEe=0,ECe=function(){var dme=/[^.]+$/.exec(__e&&__e.keys&&__e.keys.IE_PROTO||"");return dme?"Symbol(src)_1."+dme:""}(),C_e=H1e.toString,GEe=S_e.call(cbe),YEe=xbe._,XEe=dSe("^"+S_e.call(ibe).replace(W0e,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w_e=sCe?N0e.Buffer:x_,y1e=N0e.Symbol,E_e=N0e.Uint8Array,xCe=w_e?w_e.allocUnsafe:x_,x_e=CCe(cbe.getPrototypeOf,cbe),RCe=cbe.create,OCe=H1e.propertyIsEnumerable,R_e=b_e.splice,TCe=y1e?y1e.isConcatSpreadable:x_,t_e=y1e?y1e.iterator:x_,R1e=y1e?y1e.toStringTag:x_,O_e=function(){try{var dme=$1e(cbe,"defineProperty");return dme({},"",{}),dme}catch{}}(),ZEe=N0e.clearTimeout!==xbe.clearTimeout&&N0e.clearTimeout,QEe=vye&&vye.now!==xbe.Date.now&&vye.now,JEe=N0e.setTimeout!==xbe.setTimeout&&N0e.setTimeout,T_e=Cbe.ceil,P_e=Cbe.floor,pSe=cbe.getOwnPropertySymbols,exe=w_e?w_e.isBuffer:x_,PCe=N0e.isFinite,txe=b_e.join,nxe=CCe(cbe.keys,cbe),wbe=Cbe.max,Obe=Cbe.min,rxe=vye.now,axe=N0e.parseInt,ACe=Cbe.random,oxe=b_e.reverse,hSe=$1e(N0e,"DataView"),n_e=$1e(N0e,"Map"),gSe=$1e(N0e,"Promise"),z1e=$1e(N0e,"Set"),r_e=$1e(N0e,"WeakMap"),a_e=$1e(cbe,"create"),A_e=r_e&&new r_e,V1e={},ixe=D1e(hSe),sxe=D1e(n_e),lxe=D1e(gSe),uxe=D1e(z1e),cxe=D1e(r_e),$_e=y1e?y1e.prototype:x_,o_e=$_e?$_e.valueOf:x_,$Ce=$_e?$_e.toString:x_;function qme(dme){if(mbe(dme)&&!Bye(dme)&&!(dme instanceof Jye)){if(dme instanceof Kbe)return dme;if(ibe.call(dme,"__wrapped__"))return Dwe(dme)}return new Kbe(dme)}var W1e=function(){function dme(){}return function(vme){if(!vbe(vme))return{};if(RCe)return RCe(vme);dme.prototype=vme;var xme=new dme;return dme.prototype=x_,xme}}();function D_e(){}function Kbe(dme,vme){this.__wrapped__=dme,this.__actions__=[],this.__chain__=!!vme,this.__index__=0,this.__values__=x_}qme.templateSettings={escape:M0e,evaluate:J0e,interpolate:aye,variable:"",imports:{_:qme}},qme.prototype=D_e.prototype,qme.prototype.constructor=qme,Kbe.prototype=W1e(D_e.prototype),Kbe.prototype.constructor=Kbe;function Jye(dme){this.__wrapped__=dme,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=wme,this.__views__=[]}function fxe(){var dme=new Jye(this.__wrapped__);return dme.__actions__=Dbe(this.__actions__),dme.__dir__=this.__dir__,dme.__filtered__=this.__filtered__,dme.__iteratees__=Dbe(this.__iteratees__),dme.__takeCount__=this.__takeCount__,dme.__views__=Dbe(this.__views__),dme}function dxe(){if(this.__filtered__){var dme=new Jye(this);dme.__dir__=-1,dme.__filtered__=!0}else dme=this.clone(),dme.__dir__*=-1;return dme}function pxe(){var dme=this.__wrapped__.value(),vme=this.__dir__,xme=Bye(dme),jme=vme<0,Kme=xme?dme.length:0,Gme=x2e(0,Kme,this.__views__),i0e=Gme.start,c0e=Gme.end,v0e=c0e-i0e,B0e=jme?c0e:i0e-1,H0e=this.__iteratees__,K0e=H0e.length,uye=0,Cye=Obe(v0e,this.__takeCount__);if(!xme||!jme&&Kme==v0e&&Cye==v0e)return twe(dme,this.__actions__);var Iye=[];e:for(;v0e--&&uye<Cye;){B0e+=vme;for(var Kye=-1,Nye=dme[B0e];++Kye<K0e;){var Zye=H0e[Kye],tbe=Zye.iteratee,Lbe=Zye.type,$be=tbe(Nye);if(Lbe==Pme)Nye=$be;else if(!$be){if(Lbe==Rme)continue e;break e}}Iye[uye++]=Nye}return Iye}Jye.prototype=W1e(D_e.prototype),Jye.prototype.constructor=Jye;function O1e(dme){var vme=-1,xme=dme==null?0:dme.length;for(this.clear();++vme<xme;){var jme=dme[vme];this.set(jme[0],jme[1])}}function hxe(){this.__data__=a_e?a_e(null):{},this.size=0}function gxe(dme){var vme=this.has(dme)&&delete this.__data__[dme];return this.size-=vme?1:0,vme}function vxe(dme){var vme=this.__data__;if(a_e){var xme=vme[dme];return xme===tme?x_:xme}return ibe.call(vme,dme)?vme[dme]:x_}function mxe(dme){var vme=this.__data__;return a_e?vme[dme]!==x_:ibe.call(vme,dme)}function yxe(dme,vme){var xme=this.__data__;return this.size+=this.has(dme)?0:1,xme[dme]=a_e&&vme===x_?tme:vme,this}O1e.prototype.clear=hxe,O1e.prototype.delete=gxe,O1e.prototype.get=vxe,O1e.prototype.has=mxe,O1e.prototype.set=yxe;function o1e(dme){var vme=-1,xme=dme==null?0:dme.length;for(this.clear();++vme<xme;){var jme=dme[vme];this.set(jme[0],jme[1])}}function bxe(){this.__data__=[],this.size=0}function _xe(dme){var vme=this.__data__,xme=I_e(vme,dme);if(xme<0)return!1;var jme=vme.length-1;return xme==jme?vme.pop():R_e.call(vme,xme,1),--this.size,!0}function Sxe(dme){var vme=this.__data__,xme=I_e(vme,dme);return xme<0?x_:vme[xme][1]}function Cxe(dme){return I_e(this.__data__,dme)>-1}function wxe(dme,vme){var xme=this.__data__,jme=I_e(xme,dme);return jme<0?(++this.size,xme.push([dme,vme])):xme[jme][1]=vme,this}o1e.prototype.clear=bxe,o1e.prototype.delete=_xe,o1e.prototype.get=Sxe,o1e.prototype.has=Cxe,o1e.prototype.set=wxe;function i1e(dme){var vme=-1,xme=dme==null?0:dme.length;for(this.clear();++vme<xme;){var jme=dme[vme];this.set(jme[0],jme[1])}}function Exe(){this.size=0,this.__data__={hash:new O1e,map:new(n_e||o1e),string:new O1e}}function xxe(dme){var vme=K_e(this,dme).delete(dme);return this.size-=vme?1:0,vme}function Rxe(dme){return K_e(this,dme).get(dme)}function Oxe(dme){return K_e(this,dme).has(dme)}function Txe(dme,vme){var xme=K_e(this,dme),jme=xme.size;return xme.set(dme,vme),this.size+=xme.size==jme?0:1,this}i1e.prototype.clear=Exe,i1e.prototype.delete=xxe,i1e.prototype.get=Rxe,i1e.prototype.has=Oxe,i1e.prototype.set=Txe;function T1e(dme){var vme=-1,xme=dme==null?0:dme.length;for(this.__data__=new i1e;++vme<xme;)this.add(dme[vme])}function Pxe(dme){return this.__data__.set(dme,tme),this}function Axe(dme){return this.__data__.has(dme)}T1e.prototype.add=T1e.prototype.push=Pxe,T1e.prototype.has=Axe;function Zbe(dme){var vme=this.__data__=new o1e(dme);this.size=vme.size}function $xe(){this.__data__=new o1e,this.size=0}function Dxe(dme){var vme=this.__data__,xme=vme.delete(dme);return this.size=vme.size,xme}function Ixe(dme){return this.__data__.get(dme)}function Nxe(dme){return this.__data__.has(dme)}function Mxe(dme,vme){var xme=this.__data__;if(xme instanceof o1e){var jme=xme.__data__;if(!n_e||jme.length<B_-1)return jme.push([dme,vme]),this.size=++xme.size,this;xme=this.__data__=new i1e(jme)}return xme.set(dme,vme),this.size=xme.size,this}Zbe.prototype.clear=$xe,Zbe.prototype.delete=Dxe,Zbe.prototype.get=Ixe,Zbe.prototype.has=Nxe,Zbe.prototype.set=Mxe;function DCe(dme,vme){var xme=Bye(dme),jme=!xme&&I1e(dme),Kme=!xme&&!jme&&w1e(dme),Gme=!xme&&!jme&&!Kme&&G1e(dme),i0e=xme||jme||Kme||Gme,c0e=i0e?uSe(dme.length,KEe):[],v0e=c0e.length;for(var B0e in dme)(vme||ibe.call(dme,B0e))&&!(i0e&&(B0e=="length"||Kme&&(B0e=="offset"||B0e=="parent")||Gme&&(B0e=="buffer"||B0e=="byteLength"||B0e=="byteOffset")||c1e(B0e,v0e)))&&c0e.push(B0e);return c0e}function ICe(dme){var vme=dme.length;return vme?dme[RSe(0,vme-1)]:x_}function kxe(dme,vme){return U_e(Dbe(dme),P1e(vme,0,dme.length))}function jxe(dme){return U_e(Dbe(dme))}function vSe(dme,vme,xme){(xme!==x_&&!Qbe(dme[vme],xme)||xme===x_&&!(vme in dme))&&s1e(dme,vme,xme)}function i_e(dme,vme,xme){var jme=dme[vme];(!(ibe.call(dme,vme)&&Qbe(jme,xme))||xme===x_&&!(vme in dme))&&s1e(dme,vme,xme)}function I_e(dme,vme){for(var xme=dme.length;xme--;)if(Qbe(dme[xme][0],vme))return xme;return-1}function Fxe(dme,vme,xme,jme){return b1e(dme,function(Kme,Gme,i0e){vme(jme,Kme,xme(Kme),i0e)}),jme}function NCe(dme,vme){return dme&&t1e(vme,Ebe(vme),dme)}function Bxe(dme,vme){return dme&&t1e(vme,Nbe(vme),dme)}function s1e(dme,vme,xme){vme=="__proto__"&&O_e?O_e(dme,vme,{configurable:!0,enumerable:!0,value:xme,writable:!0}):dme[vme]=xme}function mSe(dme,vme){for(var xme=-1,jme=vme.length,Kme=x0e(jme),Gme=dme==null;++xme<jme;)Kme[xme]=Gme?x_:ZSe(dme,vme[xme]);return Kme}function P1e(dme,vme,xme){return dme===dme&&(xme!==x_&&(dme=dme<=xme?dme:xme),vme!==x_&&(dme=dme>=vme?dme:vme)),dme}function Ube(dme,vme,xme,jme,Kme,Gme){var i0e,c0e=vme&ame,v0e=vme&ome,B0e=vme&ime;if(xme&&(i0e=Kme?xme(dme,jme,Kme,Gme):xme(dme)),i0e!==x_)return i0e;if(!vbe(dme))return dme;var H0e=Bye(dme);if(H0e){if(i0e=O2e(dme),!c0e)return Dbe(dme,i0e)}else{var K0e=Tbe(dme),uye=K0e==Xme||K0e==e0e;if(w1e(dme))return awe(dme,c0e);if(K0e==d0e||K0e==Bme||uye&&!Kme){if(i0e=v0e||uye?{}:wwe(dme),!c0e)return v0e?v2e(dme,Bxe(i0e,dme)):g2e(dme,NCe(i0e,dme))}else{if(!dbe[K0e])return Kme?dme:{};i0e=T2e(dme,K0e,c0e)}}Gme||(Gme=new Zbe);var Cye=Gme.get(dme);if(Cye)return Cye;Gme.set(dme,i0e),Qwe(dme)?dme.forEach(function(Nye){i0e.add(Ube(Nye,vme,xme,Nye,dme,Gme))}):Xwe(dme)&&dme.forEach(function(Nye,Zye){i0e.set(Zye,Ube(Nye,vme,xme,Zye,dme,Gme))});var Iye=B0e?v0e?jSe:kSe:v0e?Nbe:Ebe,Kye=H0e?x_:Iye(dme);return Vbe(Kye||dme,function(Nye,Zye){Kye&&(Zye=Nye,Nye=dme[Zye]),i_e(i0e,Zye,Ube(Nye,vme,xme,Zye,dme,Gme))}),i0e}function Lxe(dme){var vme=Ebe(dme);return function(xme){return MCe(xme,dme,vme)}}function MCe(dme,vme,xme){var jme=xme.length;if(dme==null)return!jme;for(dme=cbe(dme);jme--;){var Kme=xme[jme],Gme=vme[Kme],i0e=dme[Kme];if(i0e===x_&&!(Kme in dme)||!Gme(i0e))return!1}return!0}function kCe(dme,vme,xme){if(typeof dme!="function")throw new Wbe(zP);return p_e(function(){dme.apply(x_,xme)},vme)}function s_e(dme,vme,xme,jme){var Kme=-1,Gme=v_e,i0e=!0,c0e=dme.length,v0e=[],B0e=vme.length;if(!c0e)return v0e;xme&&(vme=gbe(vme,jbe(xme))),jme?(Gme=rSe,i0e=!1):vme.length>=B_&&(Gme=e_e,i0e=!1,vme=new T1e(vme));e:for(;++Kme<c0e;){var H0e=dme[Kme],K0e=xme==null?H0e:xme(H0e);if(H0e=jme||H0e!==0?H0e:0,i0e&&K0e===K0e){for(var uye=B0e;uye--;)if(vme[uye]===K0e)continue e;v0e.push(H0e)}else Gme(vme,K0e,jme)||v0e.push(H0e)}return v0e}var b1e=uwe(e1e),jCe=uwe(bSe,!0);function Hxe(dme,vme){var xme=!0;return b1e(dme,function(jme,Kme,Gme){return xme=!!vme(jme,Kme,Gme),xme}),xme}function N_e(dme,vme,xme){for(var jme=-1,Kme=dme.length;++jme<Kme;){var Gme=dme[jme],i0e=vme(Gme);if(i0e!=null&&(c0e===x_?i0e===i0e&&!Bbe(i0e):xme(i0e,c0e)))var c0e=i0e,v0e=Gme}return v0e}function zxe(dme,vme,xme,jme){var Kme=dme.length;for(xme=zye(xme),xme<0&&(xme=-xme>Kme?0:Kme+xme),jme=jme===x_||jme>Kme?Kme:zye(jme),jme<0&&(jme+=Kme),jme=xme>jme?0:eEe(jme);xme<jme;)dme[xme++]=vme;return dme}function FCe(dme,vme){var xme=[];return b1e(dme,function(jme,Kme,Gme){vme(jme,Kme,Gme)&&xme.push(jme)}),xme}function Rbe(dme,vme,xme,jme,Kme){var Gme=-1,i0e=dme.length;for(xme||(xme=A2e),Kme||(Kme=[]);++Gme<i0e;){var c0e=dme[Gme];vme>0&&xme(c0e)?vme>1?Rbe(c0e,vme-1,xme,jme,Kme):v1e(Kme,c0e):jme||(Kme[Kme.length]=c0e)}return Kme}var ySe=cwe(),BCe=cwe(!0);function e1e(dme,vme){return dme&&ySe(dme,vme,Ebe)}function bSe(dme,vme){return dme&&BCe(dme,vme,Ebe)}function M_e(dme,vme){return g1e(vme,function(xme){return f1e(dme[xme])})}function A1e(dme,vme){vme=S1e(vme,dme);for(var xme=0,jme=vme.length;dme!=null&&xme<jme;)dme=dme[n1e(vme[xme++])];return xme&&xme==jme?dme:x_}function LCe(dme,vme,xme){var jme=vme(dme);return Bye(dme)?jme:v1e(jme,xme(dme))}function Pbe(dme){return dme==null?dme===x_?u0e:s0e:R1e&&R1e in cbe(dme)?E2e(dme):j2e(dme)}function _Se(dme,vme){return dme>vme}function Vxe(dme,vme){return dme!=null&&ibe.call(dme,vme)}function Wxe(dme,vme){return dme!=null&&vme in cbe(dme)}function Kxe(dme,vme,xme){return dme>=Obe(vme,xme)&&dme<wbe(vme,xme)}function SSe(dme,vme,xme){for(var jme=xme?rSe:v_e,Kme=dme[0].length,Gme=dme.length,i0e=Gme,c0e=x0e(Gme),v0e=1/0,B0e=[];i0e--;){var H0e=dme[i0e];i0e&&vme&&(H0e=gbe(H0e,jbe(vme))),v0e=Obe(H0e.length,v0e),c0e[i0e]=!xme&&(vme||Kme>=120&&H0e.length>=120)?new T1e(i0e&&H0e):x_}H0e=dme[0];var K0e=-1,uye=c0e[0];e:for(;++K0e<Kme&&B0e.length<v0e;){var Cye=H0e[K0e],Iye=vme?vme(Cye):Cye;if(Cye=xme||Cye!==0?Cye:0,!(uye?e_e(uye,Iye):jme(B0e,Iye,xme))){for(i0e=Gme;--i0e;){var Kye=c0e[i0e];if(!(Kye?e_e(Kye,Iye):jme(dme[i0e],Iye,xme)))continue e}uye&&uye.push(Iye),B0e.push(Cye)}}return B0e}function Uxe(dme,vme,xme,jme){return e1e(dme,function(Kme,Gme,i0e){vme(jme,xme(Kme),Gme,i0e)}),jme}function l_e(dme,vme,xme){vme=S1e(vme,dme),dme=Owe(dme,vme);var jme=dme==null?dme:dme[n1e(Gbe(vme))];return jme==null?x_:kbe(jme,dme,xme)}function HCe(dme){return mbe(dme)&&Pbe(dme)==Bme}function qxe(dme){return mbe(dme)&&Pbe(dme)==P0e}function Gxe(dme){return mbe(dme)&&Pbe(dme)==Wme}function u_e(dme,vme,xme,jme,Kme){return dme===vme?!0:dme==null||vme==null||!mbe(dme)&&!mbe(vme)?dme!==dme&&vme!==vme:Yxe(dme,vme,xme,jme,u_e,Kme)}function Yxe(dme,vme,xme,jme,Kme,Gme){var i0e=Bye(dme),c0e=Bye(vme),v0e=i0e?kme:Tbe(dme),B0e=c0e?kme:Tbe(vme);v0e=v0e==Bme?d0e:v0e,B0e=B0e==Bme?d0e:B0e;var H0e=v0e==d0e,K0e=B0e==d0e,uye=v0e==B0e;if(uye&&w1e(dme)){if(!w1e(vme))return!1;i0e=!0,H0e=!1}if(uye&&!H0e)return Gme||(Gme=new Zbe),i0e||G1e(dme)?_we(dme,vme,xme,jme,Kme,Gme):C2e(dme,vme,v0e,xme,jme,Kme,Gme);if(!(xme&cme)){var Cye=H0e&&ibe.call(dme,"__wrapped__"),Iye=K0e&&ibe.call(vme,"__wrapped__");if(Cye||Iye){var Kye=Cye?dme.value():dme,Nye=Iye?vme.value():vme;return Gme||(Gme=new Zbe),Kme(Kye,Nye,xme,jme,Gme)}}return uye?(Gme||(Gme=new Zbe),w2e(dme,vme,xme,jme,Kme,Gme)):!1}function Xxe(dme){return mbe(dme)&&Tbe(dme)==Ume}function CSe(dme,vme,xme,jme){var Kme=xme.length,Gme=Kme,i0e=!jme;if(dme==null)return!Gme;for(dme=cbe(dme);Kme--;){var c0e=xme[Kme];if(i0e&&c0e[2]?c0e[1]!==dme[c0e[0]]:!(c0e[0]in dme))return!1}for(;++Kme<Gme;){c0e=xme[Kme];var v0e=c0e[0],B0e=dme[v0e],H0e=c0e[1];if(i0e&&c0e[2]){if(B0e===x_&&!(v0e in dme))return!1}else{var K0e=new Zbe;if(jme)var uye=jme(B0e,H0e,v0e,dme,vme,K0e);if(!(uye===x_?u_e(H0e,B0e,cme|ume,jme,K0e):uye))return!1}}return!0}function zCe(dme){if(!vbe(dme)||D2e(dme))return!1;var vme=f1e(dme)?XEe:j0e;return vme.test(D1e(dme))}function Zxe(dme){return mbe(dme)&&Pbe(dme)==a0e}function Qxe(dme){return mbe(dme)&&Tbe(dme)==t0e}function Jxe(dme){return mbe(dme)&&Q_e(dme.length)&&!!abe[Pbe(dme)]}function VCe(dme){return typeof dme=="function"?dme:dme==null?Mbe:typeof dme=="object"?Bye(dme)?UCe(dme[0],dme[1]):KCe(dme):fEe(dme)}function wSe(dme){if(!d_e(dme))return nxe(dme);var vme=[];for(var xme in cbe(dme))ibe.call(dme,xme)&&xme!="constructor"&&vme.push(xme);return vme}function e2e(dme){if(!vbe(dme))return k2e(dme);var vme=d_e(dme),xme=[];for(var jme in dme)jme=="constructor"&&(vme||!ibe.call(dme,jme))||xme.push(jme);return xme}function ESe(dme,vme){return dme<vme}function WCe(dme,vme){var xme=-1,jme=Ibe(dme)?x0e(dme.length):[];return b1e(dme,function(Kme,Gme,i0e){jme[++xme]=vme(Kme,Gme,i0e)}),jme}function KCe(dme){var vme=BSe(dme);return vme.length==1&&vme[0][2]?xwe(vme[0][0],vme[0][1]):function(xme){return xme===dme||CSe(xme,dme,vme)}}function UCe(dme,vme){return HSe(dme)&&Ewe(vme)?xwe(n1e(dme),vme):function(xme){var jme=ZSe(xme,dme);return jme===x_&&jme===vme?QSe(xme,dme):u_e(vme,jme,cme|ume)}}function k_e(dme,vme,xme,jme,Kme){dme!==vme&&ySe(vme,function(Gme,i0e){if(Kme||(Kme=new Zbe),vbe(Gme))t2e(dme,vme,i0e,xme,k_e,jme,Kme);else{var c0e=jme?jme(VSe(dme,i0e),Gme,i0e+"",dme,vme,Kme):x_;c0e===x_&&(c0e=Gme),vSe(dme,i0e,c0e)}},Nbe)}function t2e(dme,vme,xme,jme,Kme,Gme,i0e){var c0e=VSe(dme,xme),v0e=VSe(vme,xme),B0e=i0e.get(v0e);if(B0e){vSe(dme,xme,B0e);return}var H0e=Gme?Gme(c0e,v0e,xme+"",dme,vme,i0e):x_,K0e=H0e===x_;if(K0e){var uye=Bye(v0e),Cye=!uye&&w1e(v0e),Iye=!uye&&!Cye&&G1e(v0e);H0e=v0e,uye||Cye||Iye?Bye(c0e)?H0e=c0e:_be(c0e)?H0e=Dbe(c0e):Cye?(K0e=!1,H0e=awe(v0e,!0)):Iye?(K0e=!1,H0e=owe(v0e,!0)):H0e=[]:h_e(v0e)||I1e(v0e)?(H0e=c0e,I1e(c0e)?H0e=tEe(c0e):(!vbe(c0e)||f1e(c0e))&&(H0e=wwe(v0e))):K0e=!1}K0e&&(i0e.set(v0e,H0e),Kme(H0e,v0e,jme,Gme,i0e),i0e.delete(v0e)),vSe(dme,xme,H0e)}function qCe(dme,vme){var xme=dme.length;if(xme)return vme+=vme<0?xme:0,c1e(vme,xme)?dme[vme]:x_}function GCe(dme,vme,xme){vme.length?vme=gbe(vme,function(Gme){return Bye(Gme)?function(i0e){return A1e(i0e,Gme.length===1?Gme[0]:Gme)}:Gme}):vme=[Mbe];var jme=-1;vme=gbe(vme,jbe($ye()));var Kme=WCe(dme,function(Gme,i0e,c0e){var v0e=gbe(vme,function(B0e){return B0e(Gme)});return{criteria:v0e,index:++jme,value:Gme}});return TEe(Kme,function(Gme,i0e){return h2e(Gme,i0e,xme)})}function n2e(dme,vme){return YCe(dme,vme,function(xme,jme){return QSe(dme,jme)})}function YCe(dme,vme,xme){for(var jme=-1,Kme=vme.length,Gme={};++jme<Kme;){var i0e=vme[jme],c0e=A1e(dme,i0e);xme(c0e,i0e)&&c_e(Gme,S1e(i0e,dme),c0e)}return Gme}function r2e(dme){return function(vme){return A1e(vme,dme)}}function xSe(dme,vme,xme,jme){var Kme=jme?OEe:j1e,Gme=-1,i0e=vme.length,c0e=dme;for(dme===vme&&(vme=Dbe(vme)),xme&&(c0e=gbe(dme,jbe(xme)));++Gme<i0e;)for(var v0e=0,B0e=vme[Gme],H0e=xme?xme(B0e):B0e;(v0e=Kme(c0e,H0e,v0e,jme))>-1;)c0e!==dme&&R_e.call(c0e,v0e,1),R_e.call(dme,v0e,1);return dme}function XCe(dme,vme){for(var xme=dme?vme.length:0,jme=xme-1;xme--;){var Kme=vme[xme];if(xme==jme||Kme!==Gme){var Gme=Kme;c1e(Kme)?R_e.call(dme,Kme,1):PSe(dme,Kme)}}return dme}function RSe(dme,vme){return dme+P_e(ACe()*(vme-dme+1))}function a2e(dme,vme,xme,jme){for(var Kme=-1,Gme=wbe(T_e((vme-dme)/(xme||1)),0),i0e=x0e(Gme);Gme--;)i0e[jme?Gme:++Kme]=dme,dme+=xme;return i0e}function OSe(dme,vme){var xme="";if(!dme||vme<1||vme>Mme)return xme;do vme%2&&(xme+=dme),vme=P_e(vme/2),vme&&(dme+=dme);while(vme);return xme}function Gye(dme,vme){return WSe(Rwe(dme,vme,Mbe),dme+"")}function o2e(dme){return ICe(Y1e(dme))}function i2e(dme,vme){var xme=Y1e(dme);return U_e(xme,P1e(vme,0,xme.length))}function c_e(dme,vme,xme,jme){if(!vbe(dme))return dme;vme=S1e(vme,dme);for(var Kme=-1,Gme=vme.length,i0e=Gme-1,c0e=dme;c0e!=null&&++Kme<Gme;){var v0e=n1e(vme[Kme]),B0e=xme;if(v0e==="__proto__"||v0e==="constructor"||v0e==="prototype")return dme;if(Kme!=i0e){var H0e=c0e[v0e];B0e=jme?jme(H0e,v0e,c0e):x_,B0e===x_&&(B0e=vbe(H0e)?H0e:c1e(vme[Kme+1])?[]:{})}i_e(c0e,v0e,B0e),c0e=c0e[v0e]}return dme}var ZCe=A_e?function(dme,vme){return A_e.set(dme,vme),dme}:Mbe,s2e=O_e?function(dme,vme){return O_e(dme,"toString",{configurable:!0,enumerable:!1,value:eCe(vme),writable:!0})}:Mbe;function l2e(dme){return U_e(Y1e(dme))}function qbe(dme,vme,xme){var jme=-1,Kme=dme.length;vme<0&&(vme=-vme>Kme?0:Kme+vme),xme=xme>Kme?Kme:xme,xme<0&&(xme+=Kme),Kme=vme>xme?0:xme-vme>>>0,vme>>>=0;for(var Gme=x0e(Kme);++jme<Kme;)Gme[jme]=dme[jme+vme];return Gme}function u2e(dme,vme){var xme;return b1e(dme,function(jme,Kme,Gme){return xme=vme(jme,Kme,Gme),!xme}),!!xme}function j_e(dme,vme,xme){var jme=0,Kme=dme==null?jme:dme.length;if(typeof vme=="number"&&vme===vme&&Kme<=Ame){for(;jme<Kme;){var Gme=jme+Kme>>>1,i0e=dme[Gme];i0e!==null&&!Bbe(i0e)&&(xme?i0e<=vme:i0e<vme)?jme=Gme+1:Kme=Gme}return Kme}return TSe(dme,vme,Mbe,xme)}function TSe(dme,vme,xme,jme){var Kme=0,Gme=dme==null?0:dme.length;if(Gme===0)return 0;vme=xme(vme);for(var i0e=vme!==vme,c0e=vme===null,v0e=Bbe(vme),B0e=vme===x_;Kme<Gme;){var H0e=P_e((Kme+Gme)/2),K0e=xme(dme[H0e]),uye=K0e!==x_,Cye=K0e===null,Iye=K0e===K0e,Kye=Bbe(K0e);if(i0e)var Nye=jme||Iye;else B0e?Nye=Iye&&(jme||uye):c0e?Nye=Iye&&uye&&(jme||!Cye):v0e?Nye=Iye&&uye&&!Cye&&(jme||!Kye):Cye||Kye?Nye=!1:Nye=jme?K0e<=vme:K0e<vme;Nye?Kme=H0e+1:Gme=H0e}return Obe(Gme,Ome)}function QCe(dme,vme){for(var xme=-1,jme=dme.length,Kme=0,Gme=[];++xme<jme;){var i0e=dme[xme],c0e=vme?vme(i0e):i0e;if(!xme||!Qbe(c0e,v0e)){var v0e=c0e;Gme[Kme++]=i0e===0?0:i0e}}return Gme}function JCe(dme){return typeof dme=="number"?dme:Bbe(dme)?Ime:+dme}function Fbe(dme){if(typeof dme=="string")return dme;if(Bye(dme))return gbe(dme,Fbe)+"";if(Bbe(dme))return $Ce?$Ce.call(dme):"";var vme=dme+"";return vme=="0"&&1/dme==-Dme?"-0":vme}function _1e(dme,vme,xme){var jme=-1,Kme=v_e,Gme=dme.length,i0e=!0,c0e=[],v0e=c0e;if(xme)i0e=!1,Kme=rSe;else if(Gme>=B_){var B0e=vme?null:_2e(dme);if(B0e)return y_e(B0e);i0e=!1,Kme=e_e,v0e=new T1e}else v0e=vme?[]:c0e;e:for(;++jme<Gme;){var H0e=dme[jme],K0e=vme?vme(H0e):H0e;if(H0e=xme||H0e!==0?H0e:0,i0e&&K0e===K0e){for(var uye=v0e.length;uye--;)if(v0e[uye]===K0e)continue e;vme&&v0e.push(K0e),c0e.push(H0e)}else Kme(v0e,K0e,xme)||(v0e!==c0e&&v0e.push(K0e),c0e.push(H0e))}return c0e}function PSe(dme,vme){return vme=S1e(vme,dme),dme=Owe(dme,vme),dme==null||delete dme[n1e(Gbe(vme))]}function ewe(dme,vme,xme,jme){return c_e(dme,vme,xme(A1e(dme,vme)),jme)}function F_e(dme,vme,xme,jme){for(var Kme=dme.length,Gme=jme?Kme:-1;(jme?Gme--:++Gme<Kme)&&vme(dme[Gme],Gme,dme););return xme?qbe(dme,jme?0:Gme,jme?Gme+1:Kme):qbe(dme,jme?Gme+1:0,jme?Kme:Gme)}function twe(dme,vme){var xme=dme;return xme instanceof Jye&&(xme=xme.value()),aSe(vme,function(jme,Kme){return Kme.func.apply(Kme.thisArg,v1e([jme],Kme.args))},xme)}function ASe(dme,vme,xme){var jme=dme.length;if(jme<2)return jme?_1e(dme[0]):[];for(var Kme=-1,Gme=x0e(jme);++Kme<jme;)for(var i0e=dme[Kme],c0e=-1;++c0e<jme;)c0e!=Kme&&(Gme[Kme]=s_e(Gme[Kme]||i0e,dme[c0e],vme,xme));return _1e(Rbe(Gme,1),vme,xme)}function nwe(dme,vme,xme){for(var jme=-1,Kme=dme.length,Gme=vme.length,i0e={};++jme<Kme;){var c0e=jme<Gme?vme[jme]:x_;xme(i0e,dme[jme],c0e)}return i0e}function $Se(dme){return _be(dme)?dme:[]}function DSe(dme){return typeof dme=="function"?dme:Mbe}function S1e(dme,vme){return Bye(dme)?dme:HSe(dme,vme)?[dme]:$we(obe(dme))}var c2e=Gye;function C1e(dme,vme,xme){var jme=dme.length;return xme=xme===x_?jme:xme,!vme&&xme>=jme?dme:qbe(dme,vme,xme)}var rwe=ZEe||function(dme){return xbe.clearTimeout(dme)};function awe(dme,vme){if(vme)return dme.slice();var xme=dme.length,jme=xCe?xCe(xme):new dme.constructor(xme);return dme.copy(jme),jme}function ISe(dme){var vme=new dme.constructor(dme.byteLength);return new E_e(vme).set(new E_e(dme)),vme}function f2e(dme,vme){var xme=vme?ISe(dme.buffer):dme.buffer;return new dme.constructor(xme,dme.byteOffset,dme.byteLength)}function d2e(dme){var vme=new dme.constructor(dme.source,f0e.exec(dme));return vme.lastIndex=dme.lastIndex,vme}function p2e(dme){return o_e?cbe(o_e.call(dme)):{}}function owe(dme,vme){var xme=vme?ISe(dme.buffer):dme.buffer;return new dme.constructor(xme,dme.byteOffset,dme.length)}function iwe(dme,vme){if(dme!==vme){var xme=dme!==x_,jme=dme===null,Kme=dme===dme,Gme=Bbe(dme),i0e=vme!==x_,c0e=vme===null,v0e=vme===vme,B0e=Bbe(vme);if(!c0e&&!B0e&&!Gme&&dme>vme||Gme&&i0e&&v0e&&!c0e&&!B0e||jme&&i0e&&v0e||!xme&&v0e||!Kme)return 1;if(!jme&&!Gme&&!B0e&&dme<vme||B0e&&xme&&Kme&&!jme&&!Gme||c0e&&xme&&Kme||!i0e&&Kme||!v0e)return-1}return 0}function h2e(dme,vme,xme){for(var jme=-1,Kme=dme.criteria,Gme=vme.criteria,i0e=Kme.length,c0e=xme.length;++jme<i0e;){var v0e=iwe(Kme[jme],Gme[jme]);if(v0e){if(jme>=c0e)return v0e;var B0e=xme[jme];return v0e*(B0e=="desc"?-1:1)}}return dme.index-vme.index}function swe(dme,vme,xme,jme){for(var Kme=-1,Gme=dme.length,i0e=xme.length,c0e=-1,v0e=vme.length,B0e=wbe(Gme-i0e,0),H0e=x0e(v0e+B0e),K0e=!jme;++c0e<v0e;)H0e[c0e]=vme[c0e];for(;++Kme<i0e;)(K0e||Kme<Gme)&&(H0e[xme[Kme]]=dme[Kme]);for(;B0e--;)H0e[c0e++]=dme[Kme++];return H0e}function lwe(dme,vme,xme,jme){for(var Kme=-1,Gme=dme.length,i0e=-1,c0e=xme.length,v0e=-1,B0e=vme.length,H0e=wbe(Gme-c0e,0),K0e=x0e(H0e+B0e),uye=!jme;++Kme<H0e;)K0e[Kme]=dme[Kme];for(var Cye=Kme;++v0e<B0e;)K0e[Cye+v0e]=vme[v0e];for(;++i0e<c0e;)(uye||Kme<Gme)&&(K0e[Cye+xme[i0e]]=dme[Kme++]);return K0e}function Dbe(dme,vme){var xme=-1,jme=dme.length;for(vme||(vme=x0e(jme));++xme<jme;)vme[xme]=dme[xme];return vme}function t1e(dme,vme,xme,jme){var Kme=!xme;xme||(xme={});for(var Gme=-1,i0e=vme.length;++Gme<i0e;){var c0e=vme[Gme],v0e=jme?jme(xme[c0e],dme[c0e],c0e,xme,dme):x_;v0e===x_&&(v0e=dme[c0e]),Kme?s1e(xme,c0e,v0e):i_e(xme,c0e,v0e)}return xme}function g2e(dme,vme){return t1e(dme,LSe(dme),vme)}function v2e(dme,vme){return t1e(dme,Swe(dme),vme)}function B_e(dme,vme){return function(xme,jme){var Kme=Bye(xme)?SEe:Fxe,Gme=vme?vme():{};return Kme(xme,dme,$ye(jme,2),Gme)}}function K1e(dme){return Gye(function(vme,xme){var jme=-1,Kme=xme.length,Gme=Kme>1?xme[Kme-1]:x_,i0e=Kme>2?xme[2]:x_;for(Gme=dme.length>3&&typeof Gme=="function"?(Kme--,Gme):x_,i0e&&Abe(xme[0],xme[1],i0e)&&(Gme=Kme<3?x_:Gme,Kme=1),vme=cbe(vme);++jme<Kme;){var c0e=xme[jme];c0e&&dme(vme,c0e,jme,Gme)}return vme})}function uwe(dme,vme){return function(xme,jme){if(xme==null)return xme;if(!Ibe(xme))return dme(xme,jme);for(var Kme=xme.length,Gme=vme?Kme:-1,i0e=cbe(xme);(vme?Gme--:++Gme<Kme)&&jme(i0e[Gme],Gme,i0e)!==!1;);return xme}}function cwe(dme){return function(vme,xme,jme){for(var Kme=-1,Gme=cbe(vme),i0e=jme(vme),c0e=i0e.length;c0e--;){var v0e=i0e[dme?c0e:++Kme];if(xme(Gme[v0e],v0e,Gme)===!1)break}return vme}}function m2e(dme,vme,xme){var jme=vme&sme,Kme=f_e(dme);function Gme(){var i0e=this&&this!==xbe&&this instanceof Gme?Kme:dme;return i0e.apply(jme?xme:this,arguments)}return Gme}function fwe(dme){return function(vme){vme=obe(vme);var xme=F1e(vme)?Xbe(vme):x_,jme=xme?xme[0]:vme.charAt(0),Kme=xme?C1e(xme,1).join(""):vme.slice(1);return jme[dme]()+Kme}}function U1e(dme){return function(vme){return aSe(uEe(lEe(vme).replace(_ye,"")),dme,"")}}function f_e(dme){return function(){var vme=arguments;switch(vme.length){case 0:return new dme;case 1:return new dme(vme[0]);case 2:return new dme(vme[0],vme[1]);case 3:return new dme(vme[0],vme[1],vme[2]);case 4:return new dme(vme[0],vme[1],vme[2],vme[3]);case 5:return new dme(vme[0],vme[1],vme[2],vme[3],vme[4]);case 6:return new dme(vme[0],vme[1],vme[2],vme[3],vme[4],vme[5]);case 7:return new dme(vme[0],vme[1],vme[2],vme[3],vme[4],vme[5],vme[6])}var xme=W1e(dme.prototype),jme=dme.apply(xme,vme);return vbe(jme)?jme:xme}}function y2e(dme,vme,xme){var jme=f_e(dme);function Kme(){for(var Gme=arguments.length,i0e=x0e(Gme),c0e=Gme,v0e=q1e(Kme);c0e--;)i0e[c0e]=arguments[c0e];var B0e=Gme<3&&i0e[0]!==v0e&&i0e[Gme-1]!==v0e?[]:m1e(i0e,v0e);if(Gme-=B0e.length,Gme<xme)return vwe(dme,vme,L_e,Kme.placeholder,x_,i0e,B0e,x_,x_,xme-Gme);var H0e=this&&this!==xbe&&this instanceof Kme?jme:dme;return kbe(H0e,this,i0e)}return Kme}function dwe(dme){return function(vme,xme,jme){var Kme=cbe(vme);if(!Ibe(vme)){var Gme=$ye(xme,3);vme=Ebe(vme),xme=function(c0e){return Gme(Kme[c0e],c0e,Kme)}}var i0e=dme(vme,xme,jme);return i0e>-1?Kme[Gme?vme[i0e]:i0e]:x_}}function pwe(dme){return u1e(function(vme){var xme=vme.length,jme=xme,Kme=Kbe.prototype.thru;for(dme&&vme.reverse();jme--;){var Gme=vme[jme];if(typeof Gme!="function")throw new Wbe(zP);if(Kme&&!i0e&&W_e(Gme)=="wrapper")var i0e=new Kbe([],!0)}for(jme=i0e?jme:xme;++jme<xme;){Gme=vme[jme];var c0e=W_e(Gme),v0e=c0e=="wrapper"?FSe(Gme):x_;v0e&&zSe(v0e[0])&&v0e[1]==(mme|hme|gme|bme)&&!v0e[4].length&&v0e[9]==1?i0e=i0e[W_e(v0e[0])].apply(i0e,v0e[3]):i0e=Gme.length==1&&zSe(Gme)?i0e[c0e]():i0e.thru(Gme)}return function(){var B0e=arguments,H0e=B0e[0];if(i0e&&B0e.length==1&&Bye(H0e))return i0e.plant(H0e).value();for(var K0e=0,uye=xme?vme[K0e].apply(this,B0e):H0e;++K0e<xme;)uye=vme[K0e].call(this,uye);return uye}})}function L_e(dme,vme,xme,jme,Kme,Gme,i0e,c0e,v0e,B0e){var H0e=vme&mme,K0e=vme&sme,uye=vme&fme,Cye=vme&(hme|pme),Iye=vme&Sme,Kye=uye?x_:f_e(dme);function Nye(){for(var Zye=arguments.length,tbe=x0e(Zye),Lbe=Zye;Lbe--;)tbe[Lbe]=arguments[Lbe];if(Cye)var $be=q1e(Nye),Hbe=AEe(tbe,$be);if(jme&&(tbe=swe(tbe,jme,Kme,Cye)),Gme&&(tbe=lwe(tbe,Gme,i0e,Cye)),Zye-=Hbe,Cye&&Zye<B0e){var Sbe=m1e(tbe,$be);return vwe(dme,vme,L_e,Nye.placeholder,xme,tbe,Sbe,c0e,v0e,B0e-Zye)}var Jbe=K0e?xme:this,p1e=uye?Jbe[dme]:dme;return Zye=tbe.length,c0e?tbe=F2e(tbe,c0e):Iye&&Zye>1&&tbe.reverse(),H0e&&v0e<Zye&&(tbe.length=v0e),this&&this!==xbe&&this instanceof Nye&&(p1e=Kye||f_e(p1e)),p1e.apply(Jbe,tbe)}return Nye}function hwe(dme,vme){return function(xme,jme){return Uxe(xme,dme,vme(jme),{})}}function H_e(dme,vme){return function(xme,jme){var Kme;if(xme===x_&&jme===x_)return vme;if(xme!==x_&&(Kme=xme),jme!==x_){if(Kme===x_)return jme;typeof xme=="string"||typeof jme=="string"?(xme=Fbe(xme),jme=Fbe(jme)):(xme=JCe(xme),jme=JCe(jme)),Kme=dme(xme,jme)}return Kme}}function NSe(dme){return u1e(function(vme){return vme=gbe(vme,jbe($ye())),Gye(function(xme){var jme=this;return dme(vme,function(Kme){return kbe(Kme,jme,xme)})})})}function z_e(dme,vme){vme=vme===x_?" ":Fbe(vme);var xme=vme.length;if(xme<2)return xme?OSe(vme,dme):vme;var jme=OSe(vme,T_e(dme/B1e(vme)));return F1e(vme)?C1e(Xbe(jme),0,dme).join(""):jme.slice(0,dme)}function b2e(dme,vme,xme,jme){var Kme=vme&sme,Gme=f_e(dme);function i0e(){for(var c0e=-1,v0e=arguments.length,B0e=-1,H0e=jme.length,K0e=x0e(H0e+v0e),uye=this&&this!==xbe&&this instanceof i0e?Gme:dme;++B0e<H0e;)K0e[B0e]=jme[B0e];for(;v0e--;)K0e[B0e++]=arguments[++c0e];return kbe(uye,Kme?xme:this,K0e)}return i0e}function gwe(dme){return function(vme,xme,jme){return jme&&typeof jme!="number"&&Abe(vme,xme,jme)&&(xme=jme=x_),vme=d1e(vme),xme===x_?(xme=vme,vme=0):xme=d1e(xme),jme=jme===x_?vme<xme?1:-1:d1e(jme),a2e(vme,xme,jme,dme)}}function V_e(dme){return function(vme,xme){return typeof vme=="string"&&typeof xme=="string"||(vme=Ybe(vme),xme=Ybe(xme)),dme(vme,xme)}}function vwe(dme,vme,xme,jme,Kme,Gme,i0e,c0e,v0e,B0e){var H0e=vme&hme,K0e=H0e?i0e:x_,uye=H0e?x_:i0e,Cye=H0e?Gme:x_,Iye=H0e?x_:Gme;vme|=H0e?gme:yme,vme&=~(H0e?yme:gme),vme&lme||(vme&=~(sme|fme));var Kye=[dme,vme,Kme,Cye,K0e,Iye,uye,c0e,v0e,B0e],Nye=xme.apply(x_,Kye);return zSe(dme)&&Twe(Nye,Kye),Nye.placeholder=jme,Pwe(Nye,dme,vme)}function MSe(dme){var vme=Cbe[dme];return function(xme,jme){if(xme=Ybe(xme),jme=jme==null?0:Obe(zye(jme),292),jme&&PCe(xme)){var Kme=(obe(xme)+"e").split("e"),Gme=vme(Kme[0]+"e"+(+Kme[1]+jme));return Kme=(obe(Gme)+"e").split("e"),+(Kme[0]+"e"+(+Kme[1]-jme))}return vme(xme)}}var _2e=z1e&&1/y_e(new z1e([,-0]))[1]==Dme?function(dme){return new z1e(dme)}:rCe;function mwe(dme){return function(vme){var xme=Tbe(vme);return xme==Ume?fSe(vme):xme==t0e?jEe(vme):PEe(vme,dme(vme))}}function l1e(dme,vme,xme,jme,Kme,Gme,i0e,c0e){var v0e=vme&fme;if(!v0e&&typeof dme!="function")throw new Wbe(zP);var B0e=jme?jme.length:0;if(B0e||(vme&=~(gme|yme),jme=Kme=x_),i0e=i0e===x_?i0e:wbe(zye(i0e),0),c0e=c0e===x_?c0e:zye(c0e),B0e-=Kme?Kme.length:0,vme&yme){var H0e=jme,K0e=Kme;jme=Kme=x_}var uye=v0e?x_:FSe(dme),Cye=[dme,vme,xme,jme,Kme,H0e,K0e,Gme,i0e,c0e];if(uye&&M2e(Cye,uye),dme=Cye[0],vme=Cye[1],xme=Cye[2],jme=Cye[3],Kme=Cye[4],c0e=Cye[9]=Cye[9]===x_?v0e?0:dme.length:wbe(Cye[9]-B0e,0),!c0e&&vme&(hme|pme)&&(vme&=~(hme|pme)),!vme||vme==sme)var Iye=m2e(dme,vme,xme);else vme==hme||vme==pme?Iye=y2e(dme,vme,c0e):(vme==gme||vme==(sme|gme))&&!Kme.length?Iye=b2e(dme,vme,xme,jme):Iye=L_e.apply(x_,Cye);var Kye=uye?ZCe:Twe;return Pwe(Kye(Iye,Cye),dme,vme)}function ywe(dme,vme,xme,jme){return dme===x_||Qbe(dme,H1e[xme])&&!ibe.call(jme,xme)?vme:dme}function bwe(dme,vme,xme,jme,Kme,Gme){return vbe(dme)&&vbe(vme)&&(Gme.set(vme,dme),k_e(dme,vme,x_,bwe,Gme),Gme.delete(vme)),dme}function S2e(dme){return h_e(dme)?x_:dme}function _we(dme,vme,xme,jme,Kme,Gme){var i0e=xme&cme,c0e=dme.length,v0e=vme.length;if(c0e!=v0e&&!(i0e&&v0e>c0e))return!1;var B0e=Gme.get(dme),H0e=Gme.get(vme);if(B0e&&H0e)return B0e==vme&&H0e==dme;var K0e=-1,uye=!0,Cye=xme&ume?new T1e:x_;for(Gme.set(dme,vme),Gme.set(vme,dme);++K0e<c0e;){var Iye=dme[K0e],Kye=vme[K0e];if(jme)var Nye=i0e?jme(Kye,Iye,K0e,vme,dme,Gme):jme(Iye,Kye,K0e,dme,vme,Gme);if(Nye!==x_){if(Nye)continue;uye=!1;break}if(Cye){if(!oSe(vme,function(Zye,tbe){if(!e_e(Cye,tbe)&&(Iye===Zye||Kme(Iye,Zye,xme,jme,Gme)))return Cye.push(tbe)})){uye=!1;break}}else if(!(Iye===Kye||Kme(Iye,Kye,xme,jme,Gme))){uye=!1;break}}return Gme.delete(dme),Gme.delete(vme),uye}function C2e(dme,vme,xme,jme,Kme,Gme,i0e){switch(xme){case y0e:if(dme.byteLength!=vme.byteLength||dme.byteOffset!=vme.byteOffset)return!1;dme=dme.buffer,vme=vme.buffer;case P0e:return!(dme.byteLength!=vme.byteLength||!Gme(new E_e(dme),new E_e(vme)));case Hme:case Wme:case Jme:return Qbe(+dme,+vme);case Vme:return dme.name==vme.name&&dme.message==vme.message;case a0e:case o0e:return dme==vme+"";case Ume:var c0e=fSe;case t0e:var v0e=jme&cme;if(c0e||(c0e=y_e),dme.size!=vme.size&&!v0e)return!1;var B0e=i0e.get(dme);if(B0e)return B0e==vme;jme|=ume,i0e.set(dme,vme);var H0e=_we(c0e(dme),c0e(vme),jme,Kme,Gme,i0e);return i0e.delete(dme),H0e;case g0e:if(o_e)return o_e.call(dme)==o_e.call(vme)}return!1}function w2e(dme,vme,xme,jme,Kme,Gme){var i0e=xme&cme,c0e=kSe(dme),v0e=c0e.length,B0e=kSe(vme),H0e=B0e.length;if(v0e!=H0e&&!i0e)return!1;for(var K0e=v0e;K0e--;){var uye=c0e[K0e];if(!(i0e?uye in vme:ibe.call(vme,uye)))return!1}var Cye=Gme.get(dme),Iye=Gme.get(vme);if(Cye&&Iye)return Cye==vme&&Iye==dme;var Kye=!0;Gme.set(dme,vme),Gme.set(vme,dme);for(var Nye=i0e;++K0e<v0e;){uye=c0e[K0e];var Zye=dme[uye],tbe=vme[uye];if(jme)var Lbe=i0e?jme(tbe,Zye,uye,vme,dme,Gme):jme(Zye,tbe,uye,dme,vme,Gme);if(!(Lbe===x_?Zye===tbe||Kme(Zye,tbe,xme,jme,Gme):Lbe)){Kye=!1;break}Nye||(Nye=uye=="constructor")}if(Kye&&!Nye){var $be=dme.constructor,Hbe=vme.constructor;$be!=Hbe&&"constructor"in dme&&"constructor"in vme&&!(typeof $be=="function"&&$be instanceof $be&&typeof Hbe=="function"&&Hbe instanceof Hbe)&&(Kye=!1)}return Gme.delete(dme),Gme.delete(vme),Kye}function u1e(dme){return WSe(Rwe(dme,x_,Mwe),dme+"")}function kSe(dme){return LCe(dme,Ebe,LSe)}function jSe(dme){return LCe(dme,Nbe,Swe)}var FSe=A_e?function(dme){return A_e.get(dme)}:rCe;function W_e(dme){for(var vme=dme.name+"",xme=V1e[vme],jme=ibe.call(V1e,vme)?xme.length:0;jme--;){var Kme=xme[jme],Gme=Kme.func;if(Gme==null||Gme==dme)return Kme.name}return vme}function q1e(dme){var vme=ibe.call(qme,"placeholder")?qme:dme;return vme.placeholder}function $ye(){var dme=qme.iteratee||tCe;return dme=dme===tCe?VCe:dme,arguments.length?dme(arguments[0],arguments[1]):dme}function K_e(dme,vme){var xme=dme.__data__;return $2e(vme)?xme[typeof vme=="string"?"string":"hash"]:xme.map}function BSe(dme){for(var vme=Ebe(dme),xme=vme.length;xme--;){var jme=vme[xme],Kme=dme[jme];vme[xme]=[jme,Kme,Ewe(Kme)]}return vme}function $1e(dme,vme){var xme=NEe(dme,vme);return zCe(xme)?xme:x_}function E2e(dme){var vme=ibe.call(dme,R1e),xme=dme[R1e];try{dme[R1e]=x_;var jme=!0}catch{}var Kme=C_e.call(dme);return jme&&(vme?dme[R1e]=xme:delete dme[R1e]),Kme}var LSe=pSe?function(dme){return dme==null?[]:(dme=cbe(dme),g1e(pSe(dme),function(vme){return OCe.call(dme,vme)}))}:aCe,Swe=pSe?function(dme){for(var vme=[];dme;)v1e(vme,LSe(dme)),dme=x_e(dme);return vme}:aCe,Tbe=Pbe;(hSe&&Tbe(new hSe(new ArrayBuffer(1)))!=y0e||n_e&&Tbe(new n_e)!=Ume||gSe&&Tbe(gSe.resolve())!=Zme||z1e&&Tbe(new z1e)!=t0e||r_e&&Tbe(new r_e)!=h0e)&&(Tbe=function(dme){var vme=Pbe(dme),xme=vme==d0e?dme.constructor:x_,jme=xme?D1e(xme):"";if(jme)switch(jme){case ixe:return y0e;case sxe:return Ume;case lxe:return Zme;case uxe:return t0e;case cxe:return h0e}return vme});function x2e(dme,vme,xme){for(var jme=-1,Kme=xme.length;++jme<Kme;){var Gme=xme[jme],i0e=Gme.size;switch(Gme.type){case"drop":dme+=i0e;break;case"dropRight":vme-=i0e;break;case"take":vme=Obe(vme,dme+i0e);break;case"takeRight":dme=wbe(dme,vme-i0e);break}}return{start:dme,end:vme}}function R2e(dme){var vme=dme.match(Eye);return vme?vme[1].split(Vye):[]}function Cwe(dme,vme,xme){vme=S1e(vme,dme);for(var jme=-1,Kme=vme.length,Gme=!1;++jme<Kme;){var i0e=n1e(vme[jme]);if(!(Gme=dme!=null&&xme(dme,i0e)))break;dme=dme[i0e]}return Gme||++jme!=Kme?Gme:(Kme=dme==null?0:dme.length,!!Kme&&Q_e(Kme)&&c1e(i0e,Kme)&&(Bye(dme)||I1e(dme)))}function O2e(dme){var vme=dme.length,xme=new dme.constructor(vme);return vme&&typeof dme[0]=="string"&&ibe.call(dme,"index")&&(xme.index=dme.index,xme.input=dme.input),xme}function wwe(dme){return typeof dme.constructor=="function"&&!d_e(dme)?W1e(x_e(dme)):{}}function T2e(dme,vme,xme){var jme=dme.constructor;switch(vme){case P0e:return ISe(dme);case Hme:case Wme:return new jme(+dme);case y0e:return f2e(dme,xme);case $0e:case C0e:case z0e:case D0e:case O0e:case b0e:case k0e:case T0e:case L0e:return owe(dme,xme);case Ume:return new jme;case Jme:case o0e:return new jme(dme);case a0e:return d2e(dme);case t0e:return new jme;case g0e:return p2e(dme)}}function P2e(dme,vme){var xme=vme.length;if(!xme)return dme;var jme=xme-1;return vme[jme]=(xme>1?"& ":"")+vme[jme],vme=vme.join(xme>2?", ":" "),dme.replace(wye,`{
379
- /* [wrapped with `+vme+`] */
380
- `)}function A2e(dme){return Bye(dme)||I1e(dme)||!!(TCe&&dme&&dme[TCe])}function c1e(dme,vme){var xme=typeof dme;return vme=vme??Mme,!!vme&&(xme=="number"||xme!="symbol"&&Yme.test(dme))&&dme>-1&&dme%1==0&&dme<vme}function Abe(dme,vme,xme){if(!vbe(xme))return!1;var jme=typeof vme;return(jme=="number"?Ibe(xme)&&c1e(vme,xme.length):jme=="string"&&vme in xme)?Qbe(xme[vme],dme):!1}function HSe(dme,vme){if(Bye(dme))return!1;var xme=typeof dme;return xme=="number"||xme=="symbol"||xme=="boolean"||dme==null||Bbe(dme)?!0:cye.test(dme)||!F0e.test(dme)||vme!=null&&dme in cbe(vme)}function $2e(dme){var vme=typeof dme;return vme=="string"||vme=="number"||vme=="symbol"||vme=="boolean"?dme!=="__proto__":dme===null}function zSe(dme){var vme=W_e(dme),xme=qme[vme];if(typeof xme!="function"||!(vme in Jye.prototype))return!1;if(dme===xme)return!0;var jme=FSe(xme);return!!jme&&dme===jme[0]}function D2e(dme){return!!ECe&&ECe in dme}var I2e=__e?f1e:oCe;function d_e(dme){var vme=dme&&dme.constructor,xme=typeof vme=="function"&&vme.prototype||H1e;return dme===xme}function Ewe(dme){return dme===dme&&!vbe(dme)}function xwe(dme,vme){return function(xme){return xme==null?!1:xme[dme]===vme&&(vme!==x_||dme in cbe(xme))}}function N2e(dme){var vme=X_e(dme,function(jme){return xme.size===nme&&xme.clear(),jme}),xme=vme.cache;return vme}function M2e(dme,vme){var xme=dme[1],jme=vme[1],Kme=xme|jme,Gme=Kme<(sme|fme|mme),i0e=jme==mme&&xme==hme||jme==mme&&xme==bme&&dme[7].length<=vme[8]||jme==(mme|bme)&&vme[7].length<=vme[8]&&xme==hme;if(!(Gme||i0e))return dme;jme&sme&&(dme[2]=vme[2],Kme|=xme&sme?0:lme);var c0e=vme[3];if(c0e){var v0e=dme[3];dme[3]=v0e?swe(v0e,c0e,vme[4]):c0e,dme[4]=v0e?m1e(dme[3],rme):vme[4]}return c0e=vme[5],c0e&&(v0e=dme[5],dme[5]=v0e?lwe(v0e,c0e,vme[6]):c0e,dme[6]=v0e?m1e(dme[5],rme):vme[6]),c0e=vme[7],c0e&&(dme[7]=c0e),jme&mme&&(dme[8]=dme[8]==null?vme[8]:Obe(dme[8],vme[8])),dme[9]==null&&(dme[9]=vme[9]),dme[0]=vme[0],dme[1]=Kme,dme}function k2e(dme){var vme=[];if(dme!=null)for(var xme in cbe(dme))vme.push(xme);return vme}function j2e(dme){return C_e.call(dme)}function Rwe(dme,vme,xme){return vme=wbe(vme===x_?dme.length-1:vme,0),function(){for(var jme=arguments,Kme=-1,Gme=wbe(jme.length-vme,0),i0e=x0e(Gme);++Kme<Gme;)i0e[Kme]=jme[vme+Kme];Kme=-1;for(var c0e=x0e(vme+1);++Kme<vme;)c0e[Kme]=jme[Kme];return c0e[vme]=xme(i0e),kbe(dme,this,c0e)}}function Owe(dme,vme){return vme.length<2?dme:A1e(dme,qbe(vme,0,-1))}function F2e(dme,vme){for(var xme=dme.length,jme=Obe(vme.length,xme),Kme=Dbe(dme);jme--;){var Gme=vme[jme];dme[jme]=c1e(Gme,xme)?Kme[Gme]:x_}return dme}function VSe(dme,vme){if(!(vme==="constructor"&&typeof dme[vme]=="function")&&vme!="__proto__")return dme[vme]}var Twe=Awe(ZCe),p_e=JEe||function(dme,vme){return xbe.setTimeout(dme,vme)},WSe=Awe(s2e);function Pwe(dme,vme,xme){var jme=vme+"";return WSe(dme,P2e(jme,B2e(R2e(jme),xme)))}function Awe(dme){var vme=0,xme=0;return function(){var jme=rxe(),Kme=Tme-(jme-xme);if(xme=jme,Kme>0){if(++vme>=Eme)return arguments[0]}else vme=0;return dme.apply(x_,arguments)}}function U_e(dme,vme){var xme=-1,jme=dme.length,Kme=jme-1;for(vme=vme===x_?jme:vme;++xme<vme;){var Gme=RSe(xme,Kme),i0e=dme[Gme];dme[Gme]=dme[xme],dme[xme]=i0e}return dme.length=vme,dme}var $we=N2e(function(dme){var vme=[];return dme.charCodeAt(0)===46&&vme.push(""),dme.replace(yye,function(xme,jme,Kme,Gme){vme.push(Kme?Gme.replace(A0e,"$1"):jme||xme)}),vme});function n1e(dme){if(typeof dme=="string"||Bbe(dme))return dme;var vme=dme+"";return vme=="0"&&1/dme==-Dme?"-0":vme}function D1e(dme){if(dme!=null){try{return S_e.call(dme)}catch{}try{return dme+""}catch{}}return""}function B2e(dme,vme){return Vbe(Fme,function(xme){var jme="_."+xme[0];vme&xme[1]&&!v_e(dme,jme)&&dme.push(jme)}),dme.sort()}function Dwe(dme){if(dme instanceof Jye)return dme.clone();var vme=new Kbe(dme.__wrapped__,dme.__chain__);return vme.__actions__=Dbe(dme.__actions__),vme.__index__=dme.__index__,vme.__values__=dme.__values__,vme}function L2e(dme,vme,xme){(xme?Abe(dme,vme,xme):vme===x_)?vme=1:vme=wbe(zye(vme),0);var jme=dme==null?0:dme.length;if(!jme||vme<1)return[];for(var Kme=0,Gme=0,i0e=x0e(T_e(jme/vme));Kme<jme;)i0e[Gme++]=qbe(dme,Kme,Kme+=vme);return i0e}function H2e(dme){for(var vme=-1,xme=dme==null?0:dme.length,jme=0,Kme=[];++vme<xme;){var Gme=dme[vme];Gme&&(Kme[jme++]=Gme)}return Kme}function z2e(){var dme=arguments.length;if(!dme)return[];for(var vme=x0e(dme-1),xme=arguments[0],jme=dme;jme--;)vme[jme-1]=arguments[jme];return v1e(Bye(xme)?Dbe(xme):[xme],Rbe(vme,1))}var V2e=Gye(function(dme,vme){return _be(dme)?s_e(dme,Rbe(vme,1,_be,!0)):[]}),W2e=Gye(function(dme,vme){var xme=Gbe(vme);return _be(xme)&&(xme=x_),_be(dme)?s_e(dme,Rbe(vme,1,_be,!0),$ye(xme,2)):[]}),K2e=Gye(function(dme,vme){var xme=Gbe(vme);return _be(xme)&&(xme=x_),_be(dme)?s_e(dme,Rbe(vme,1,_be,!0),x_,xme):[]});function U2e(dme,vme,xme){var jme=dme==null?0:dme.length;return jme?(vme=xme||vme===x_?1:zye(vme),qbe(dme,vme<0?0:vme,jme)):[]}function q2e(dme,vme,xme){var jme=dme==null?0:dme.length;return jme?(vme=xme||vme===x_?1:zye(vme),vme=jme-vme,qbe(dme,0,vme<0?0:vme)):[]}function G2e(dme,vme){return dme&&dme.length?F_e(dme,$ye(vme,3),!0,!0):[]}function Y2e(dme,vme){return dme&&dme.length?F_e(dme,$ye(vme,3),!0):[]}function X2e(dme,vme,xme,jme){var Kme=dme==null?0:dme.length;return Kme?(xme&&typeof xme!="number"&&Abe(dme,vme,xme)&&(xme=0,jme=Kme),zxe(dme,vme,xme,jme)):[]}function Iwe(dme,vme,xme){var jme=dme==null?0:dme.length;if(!jme)return-1;var Kme=xme==null?0:zye(xme);return Kme<0&&(Kme=wbe(jme+Kme,0)),m_e(dme,$ye(vme,3),Kme)}function Nwe(dme,vme,xme){var jme=dme==null?0:dme.length;if(!jme)return-1;var Kme=jme-1;return xme!==x_&&(Kme=zye(xme),Kme=xme<0?wbe(jme+Kme,0):Obe(Kme,jme-1)),m_e(dme,$ye(vme,3),Kme,!0)}function Mwe(dme){var vme=dme==null?0:dme.length;return vme?Rbe(dme,1):[]}function Z2e(dme){var vme=dme==null?0:dme.length;return vme?Rbe(dme,Dme):[]}function Q2e(dme,vme){var xme=dme==null?0:dme.length;return xme?(vme=vme===x_?1:zye(vme),Rbe(dme,vme)):[]}function J2e(dme){for(var vme=-1,xme=dme==null?0:dme.length,jme={};++vme<xme;){var Kme=dme[vme];jme[Kme[0]]=Kme[1]}return jme}function kwe(dme){return dme&&dme.length?dme[0]:x_}function eRe(dme,vme,xme){var jme=dme==null?0:dme.length;if(!jme)return-1;var Kme=xme==null?0:zye(xme);return Kme<0&&(Kme=wbe(jme+Kme,0)),j1e(dme,vme,Kme)}function tRe(dme){var vme=dme==null?0:dme.length;return vme?qbe(dme,0,-1):[]}var nRe=Gye(function(dme){var vme=gbe(dme,$Se);return vme.length&&vme[0]===dme[0]?SSe(vme):[]}),rRe=Gye(function(dme){var vme=Gbe(dme),xme=gbe(dme,$Se);return vme===Gbe(xme)?vme=x_:xme.pop(),xme.length&&xme[0]===dme[0]?SSe(xme,$ye(vme,2)):[]}),aRe=Gye(function(dme){var vme=Gbe(dme),xme=gbe(dme,$Se);return vme=typeof vme=="function"?vme:x_,vme&&xme.pop(),xme.length&&xme[0]===dme[0]?SSe(xme,x_,vme):[]});function oRe(dme,vme){return dme==null?"":txe.call(dme,vme)}function Gbe(dme){var vme=dme==null?0:dme.length;return vme?dme[vme-1]:x_}function iRe(dme,vme,xme){var jme=dme==null?0:dme.length;if(!jme)return-1;var Kme=jme;return xme!==x_&&(Kme=zye(xme),Kme=Kme<0?wbe(jme+Kme,0):Obe(Kme,jme-1)),vme===vme?BEe(dme,vme,Kme):m_e(dme,vCe,Kme,!0)}function sRe(dme,vme){return dme&&dme.length?qCe(dme,zye(vme)):x_}var lRe=Gye(jwe);function jwe(dme,vme){return dme&&dme.length&&vme&&vme.length?xSe(dme,vme):dme}function uRe(dme,vme,xme){return dme&&dme.length&&vme&&vme.length?xSe(dme,vme,$ye(xme,2)):dme}function cRe(dme,vme,xme){return dme&&dme.length&&vme&&vme.length?xSe(dme,vme,x_,xme):dme}var fRe=u1e(function(dme,vme){var xme=dme==null?0:dme.length,jme=mSe(dme,vme);return XCe(dme,gbe(vme,function(Kme){return c1e(Kme,xme)?+Kme:Kme}).sort(iwe)),jme});function dRe(dme,vme){var xme=[];if(!(dme&&dme.length))return xme;var jme=-1,Kme=[],Gme=dme.length;for(vme=$ye(vme,3);++jme<Gme;){var i0e=dme[jme];vme(i0e,jme,dme)&&(xme.push(i0e),Kme.push(jme))}return XCe(dme,Kme),xme}function KSe(dme){return dme==null?dme:oxe.call(dme)}function pRe(dme,vme,xme){var jme=dme==null?0:dme.length;return jme?(xme&&typeof xme!="number"&&Abe(dme,vme,xme)?(vme=0,xme=jme):(vme=vme==null?0:zye(vme),xme=xme===x_?jme:zye(xme)),qbe(dme,vme,xme)):[]}function hRe(dme,vme){return j_e(dme,vme)}function gRe(dme,vme,xme){return TSe(dme,vme,$ye(xme,2))}function vRe(dme,vme){var xme=dme==null?0:dme.length;if(xme){var jme=j_e(dme,vme);if(jme<xme&&Qbe(dme[jme],vme))return jme}return-1}function mRe(dme,vme){return j_e(dme,vme,!0)}function yRe(dme,vme,xme){return TSe(dme,vme,$ye(xme,2),!0)}function bRe(dme,vme){var xme=dme==null?0:dme.length;if(xme){var jme=j_e(dme,vme,!0)-1;if(Qbe(dme[jme],vme))return jme}return-1}function _Re(dme){return dme&&dme.length?QCe(dme):[]}function SRe(dme,vme){return dme&&dme.length?QCe(dme,$ye(vme,2)):[]}function CRe(dme){var vme=dme==null?0:dme.length;return vme?qbe(dme,1,vme):[]}function wRe(dme,vme,xme){return dme&&dme.length?(vme=xme||vme===x_?1:zye(vme),qbe(dme,0,vme<0?0:vme)):[]}function ERe(dme,vme,xme){var jme=dme==null?0:dme.length;return jme?(vme=xme||vme===x_?1:zye(vme),vme=jme-vme,qbe(dme,vme<0?0:vme,jme)):[]}function xRe(dme,vme){return dme&&dme.length?F_e(dme,$ye(vme,3),!1,!0):[]}function RRe(dme,vme){return dme&&dme.length?F_e(dme,$ye(vme,3)):[]}var ORe=Gye(function(dme){return _1e(Rbe(dme,1,_be,!0))}),TRe=Gye(function(dme){var vme=Gbe(dme);return _be(vme)&&(vme=x_),_1e(Rbe(dme,1,_be,!0),$ye(vme,2))}),PRe=Gye(function(dme){var vme=Gbe(dme);return vme=typeof vme=="function"?vme:x_,_1e(Rbe(dme,1,_be,!0),x_,vme)});function ARe(dme){return dme&&dme.length?_1e(dme):[]}function $Re(dme,vme){return dme&&dme.length?_1e(dme,$ye(vme,2)):[]}function DRe(dme,vme){return vme=typeof vme=="function"?vme:x_,dme&&dme.length?_1e(dme,x_,vme):[]}function USe(dme){if(!(dme&&dme.length))return[];var vme=0;return dme=g1e(dme,function(xme){if(_be(xme))return vme=wbe(xme.length,vme),!0}),uSe(vme,function(xme){return gbe(dme,iSe(xme))})}function Fwe(dme,vme){if(!(dme&&dme.length))return[];var xme=USe(dme);return vme==null?xme:gbe(xme,function(jme){return kbe(vme,x_,jme)})}var IRe=Gye(function(dme,vme){return _be(dme)?s_e(dme,vme):[]}),NRe=Gye(function(dme){return ASe(g1e(dme,_be))}),MRe=Gye(function(dme){var vme=Gbe(dme);return _be(vme)&&(vme=x_),ASe(g1e(dme,_be),$ye(vme,2))}),kRe=Gye(function(dme){var vme=Gbe(dme);return vme=typeof vme=="function"?vme:x_,ASe(g1e(dme,_be),x_,vme)}),jRe=Gye(USe);function FRe(dme,vme){return nwe(dme||[],vme||[],i_e)}function BRe(dme,vme){return nwe(dme||[],vme||[],c_e)}var LRe=Gye(function(dme){var vme=dme.length,xme=vme>1?dme[vme-1]:x_;return xme=typeof xme=="function"?(dme.pop(),xme):x_,Fwe(dme,xme)});function Bwe(dme){var vme=qme(dme);return vme.__chain__=!0,vme}function HRe(dme,vme){return vme(dme),dme}function q_e(dme,vme){return vme(dme)}var zRe=u1e(function(dme){var vme=dme.length,xme=vme?dme[0]:0,jme=this.__wrapped__,Kme=function(Gme){return mSe(Gme,dme)};return vme>1||this.__actions__.length||!(jme instanceof Jye)||!c1e(xme)?this.thru(Kme):(jme=jme.slice(xme,+xme+(vme?1:0)),jme.__actions__.push({func:q_e,args:[Kme],thisArg:x_}),new Kbe(jme,this.__chain__).thru(function(Gme){return vme&&!Gme.length&&Gme.push(x_),Gme}))});function VRe(){return Bwe(this)}function WRe(){return new Kbe(this.value(),this.__chain__)}function KRe(){this.__values__===x_&&(this.__values__=Jwe(this.value()));var dme=this.__index__>=this.__values__.length,vme=dme?x_:this.__values__[this.__index__++];return{done:dme,value:vme}}function URe(){return this}function qRe(dme){for(var vme,xme=this;xme instanceof D_e;){var jme=Dwe(xme);jme.__index__=0,jme.__values__=x_,vme?Kme.__wrapped__=jme:vme=jme;var Kme=jme;xme=xme.__wrapped__}return Kme.__wrapped__=dme,vme}function GRe(){var dme=this.__wrapped__;if(dme instanceof Jye){var vme=dme;return this.__actions__.length&&(vme=new Jye(this)),vme=vme.reverse(),vme.__actions__.push({func:q_e,args:[KSe],thisArg:x_}),new Kbe(vme,this.__chain__)}return this.thru(KSe)}function YRe(){return twe(this.__wrapped__,this.__actions__)}var XRe=B_e(function(dme,vme,xme){ibe.call(dme,xme)?++dme[xme]:s1e(dme,xme,1)});function ZRe(dme,vme,xme){var jme=Bye(dme)?hCe:Hxe;return xme&&Abe(dme,vme,xme)&&(vme=x_),jme(dme,$ye(vme,3))}function QRe(dme,vme){var xme=Bye(dme)?g1e:FCe;return xme(dme,$ye(vme,3))}var JRe=dwe(Iwe),eOe=dwe(Nwe);function tOe(dme,vme){return Rbe(G_e(dme,vme),1)}function nOe(dme,vme){return Rbe(G_e(dme,vme),Dme)}function rOe(dme,vme,xme){return xme=xme===x_?1:zye(xme),Rbe(G_e(dme,vme),xme)}function Lwe(dme,vme){var xme=Bye(dme)?Vbe:b1e;return xme(dme,$ye(vme,3))}function Hwe(dme,vme){var xme=Bye(dme)?CEe:jCe;return xme(dme,$ye(vme,3))}var aOe=B_e(function(dme,vme,xme){ibe.call(dme,xme)?dme[xme].push(vme):s1e(dme,xme,[vme])});function oOe(dme,vme,xme,jme){dme=Ibe(dme)?dme:Y1e(dme),xme=xme&&!jme?zye(xme):0;var Kme=dme.length;return xme<0&&(xme=wbe(Kme+xme,0)),J_e(dme)?xme<=Kme&&dme.indexOf(vme,xme)>-1:!!Kme&&j1e(dme,vme,xme)>-1}var iOe=Gye(function(dme,vme,xme){var jme=-1,Kme=typeof vme=="function",Gme=Ibe(dme)?x0e(dme.length):[];return b1e(dme,function(i0e){Gme[++jme]=Kme?kbe(vme,i0e,xme):l_e(i0e,vme,xme)}),Gme}),sOe=B_e(function(dme,vme,xme){s1e(dme,xme,vme)});function G_e(dme,vme){var xme=Bye(dme)?gbe:WCe;return xme(dme,$ye(vme,3))}function lOe(dme,vme,xme,jme){return dme==null?[]:(Bye(vme)||(vme=vme==null?[]:[vme]),xme=jme?x_:xme,Bye(xme)||(xme=xme==null?[]:[xme]),GCe(dme,vme,xme))}var uOe=B_e(function(dme,vme,xme){dme[xme?0:1].push(vme)},function(){return[[],[]]});function cOe(dme,vme,xme){var jme=Bye(dme)?aSe:yCe,Kme=arguments.length<3;return jme(dme,$ye(vme,4),xme,Kme,b1e)}function fOe(dme,vme,xme){var jme=Bye(dme)?wEe:yCe,Kme=arguments.length<3;return jme(dme,$ye(vme,4),xme,Kme,jCe)}function dOe(dme,vme){var xme=Bye(dme)?g1e:FCe;return xme(dme,Z_e($ye(vme,3)))}function pOe(dme){var vme=Bye(dme)?ICe:o2e;return vme(dme)}function hOe(dme,vme,xme){(xme?Abe(dme,vme,xme):vme===x_)?vme=1:vme=zye(vme);var jme=Bye(dme)?kxe:i2e;return jme(dme,vme)}function gOe(dme){var vme=Bye(dme)?jxe:l2e;return vme(dme)}function vOe(dme){if(dme==null)return 0;if(Ibe(dme))return J_e(dme)?B1e(dme):dme.length;var vme=Tbe(dme);return vme==Ume||vme==t0e?dme.size:wSe(dme).length}function mOe(dme,vme,xme){var jme=Bye(dme)?oSe:u2e;return xme&&Abe(dme,vme,xme)&&(vme=x_),jme(dme,$ye(vme,3))}var yOe=Gye(function(dme,vme){if(dme==null)return[];var xme=vme.length;return xme>1&&Abe(dme,vme[0],vme[1])?vme=[]:xme>2&&Abe(vme[0],vme[1],vme[2])&&(vme=[vme[0]]),GCe(dme,Rbe(vme,1),[])}),Y_e=QEe||function(){return xbe.Date.now()};function bOe(dme,vme){if(typeof vme!="function")throw new Wbe(zP);return dme=zye(dme),function(){if(--dme<1)return vme.apply(this,arguments)}}function zwe(dme,vme,xme){return vme=xme?x_:vme,vme=dme&&vme==null?dme.length:vme,l1e(dme,mme,x_,x_,x_,x_,vme)}function Vwe(dme,vme){var xme;if(typeof vme!="function")throw new Wbe(zP);return dme=zye(dme),function(){return--dme>0&&(xme=vme.apply(this,arguments)),dme<=1&&(vme=x_),xme}}var qSe=Gye(function(dme,vme,xme){var jme=sme;if(xme.length){var Kme=m1e(xme,q1e(qSe));jme|=gme}return l1e(dme,jme,vme,xme,Kme)}),Wwe=Gye(function(dme,vme,xme){var jme=sme|fme;if(xme.length){var Kme=m1e(xme,q1e(Wwe));jme|=gme}return l1e(vme,jme,dme,xme,Kme)});function Kwe(dme,vme,xme){vme=xme?x_:vme;var jme=l1e(dme,hme,x_,x_,x_,x_,x_,vme);return jme.placeholder=Kwe.placeholder,jme}function Uwe(dme,vme,xme){vme=xme?x_:vme;var jme=l1e(dme,pme,x_,x_,x_,x_,x_,vme);return jme.placeholder=Uwe.placeholder,jme}function qwe(dme,vme,xme){var jme,Kme,Gme,i0e,c0e,v0e,B0e=0,H0e=!1,K0e=!1,uye=!0;if(typeof dme!="function")throw new Wbe(zP);vme=Ybe(vme)||0,vbe(xme)&&(H0e=!!xme.leading,K0e="maxWait"in xme,Gme=K0e?wbe(Ybe(xme.maxWait)||0,vme):Gme,uye="trailing"in xme?!!xme.trailing:uye);function Cye(Sbe){var Jbe=jme,p1e=Kme;return jme=Kme=x_,B0e=Sbe,i0e=dme.apply(p1e,Jbe),i0e}function Iye(Sbe){return B0e=Sbe,c0e=p_e(Zye,vme),H0e?Cye(Sbe):i0e}function Kye(Sbe){var Jbe=Sbe-v0e,p1e=Sbe-B0e,dEe=vme-Jbe;return K0e?Obe(dEe,Gme-p1e):dEe}function Nye(Sbe){var Jbe=Sbe-v0e,p1e=Sbe-B0e;return v0e===x_||Jbe>=vme||Jbe<0||K0e&&p1e>=Gme}function Zye(){var Sbe=Y_e();if(Nye(Sbe))return tbe(Sbe);c0e=p_e(Zye,Kye(Sbe))}function tbe(Sbe){return c0e=x_,uye&&jme?Cye(Sbe):(jme=Kme=x_,i0e)}function Lbe(){c0e!==x_&&rwe(c0e),B0e=0,jme=v0e=Kme=c0e=x_}function $be(){return c0e===x_?i0e:tbe(Y_e())}function Hbe(){var Sbe=Y_e(),Jbe=Nye(Sbe);if(jme=arguments,Kme=this,v0e=Sbe,Jbe){if(c0e===x_)return Iye(v0e);if(K0e)return rwe(c0e),c0e=p_e(Zye,vme),Cye(v0e)}return c0e===x_&&(c0e=p_e(Zye,vme)),i0e}return Hbe.cancel=Lbe,Hbe.flush=$be,Hbe}var _Oe=Gye(function(dme,vme){return kCe(dme,1,vme)}),SOe=Gye(function(dme,vme,xme){return kCe(dme,Ybe(vme)||0,xme)});function COe(dme){return l1e(dme,Sme)}function X_e(dme,vme){if(typeof dme!="function"||vme!=null&&typeof vme!="function")throw new Wbe(zP);var xme=function(){var jme=arguments,Kme=vme?vme.apply(this,jme):jme[0],Gme=xme.cache;if(Gme.has(Kme))return Gme.get(Kme);var i0e=dme.apply(this,jme);return xme.cache=Gme.set(Kme,i0e)||Gme,i0e};return xme.cache=new(X_e.Cache||i1e),xme}X_e.Cache=i1e;function Z_e(dme){if(typeof dme!="function")throw new Wbe(zP);return function(){var vme=arguments;switch(vme.length){case 0:return!dme.call(this);case 1:return!dme.call(this,vme[0]);case 2:return!dme.call(this,vme[0],vme[1]);case 3:return!dme.call(this,vme[0],vme[1],vme[2])}return!dme.apply(this,vme)}}function wOe(dme){return Vwe(2,dme)}var EOe=c2e(function(dme,vme){vme=vme.length==1&&Bye(vme[0])?gbe(vme[0],jbe($ye())):gbe(Rbe(vme,1),jbe($ye()));var xme=vme.length;return Gye(function(jme){for(var Kme=-1,Gme=Obe(jme.length,xme);++Kme<Gme;)jme[Kme]=vme[Kme].call(this,jme[Kme]);return kbe(dme,this,jme)})}),GSe=Gye(function(dme,vme){var xme=m1e(vme,q1e(GSe));return l1e(dme,gme,x_,vme,xme)}),Gwe=Gye(function(dme,vme){var xme=m1e(vme,q1e(Gwe));return l1e(dme,yme,x_,vme,xme)}),xOe=u1e(function(dme,vme){return l1e(dme,bme,x_,x_,x_,vme)});function ROe(dme,vme){if(typeof dme!="function")throw new Wbe(zP);return vme=vme===x_?vme:zye(vme),Gye(dme,vme)}function OOe(dme,vme){if(typeof dme!="function")throw new Wbe(zP);return vme=vme==null?0:wbe(zye(vme),0),Gye(function(xme){var jme=xme[vme],Kme=C1e(xme,0,vme);return jme&&v1e(Kme,jme),kbe(dme,this,Kme)})}function TOe(dme,vme,xme){var jme=!0,Kme=!0;if(typeof dme!="function")throw new Wbe(zP);return vbe(xme)&&(jme="leading"in xme?!!xme.leading:jme,Kme="trailing"in xme?!!xme.trailing:Kme),qwe(dme,vme,{leading:jme,maxWait:vme,trailing:Kme})}function POe(dme){return zwe(dme,1)}function AOe(dme,vme){return GSe(DSe(vme),dme)}function $Oe(){if(!arguments.length)return[];var dme=arguments[0];return Bye(dme)?dme:[dme]}function DOe(dme){return Ube(dme,ime)}function IOe(dme,vme){return vme=typeof vme=="function"?vme:x_,Ube(dme,ime,vme)}function NOe(dme){return Ube(dme,ame|ime)}function MOe(dme,vme){return vme=typeof vme=="function"?vme:x_,Ube(dme,ame|ime,vme)}function kOe(dme,vme){return vme==null||MCe(dme,vme,Ebe(vme))}function Qbe(dme,vme){return dme===vme||dme!==dme&&vme!==vme}var jOe=V_e(_Se),FOe=V_e(function(dme,vme){return dme>=vme}),I1e=HCe(function(){return arguments}())?HCe:function(dme){return mbe(dme)&&ibe.call(dme,"callee")&&!OCe.call(dme,"callee")},Bye=x0e.isArray,BOe=lCe?jbe(lCe):qxe;function Ibe(dme){return dme!=null&&Q_e(dme.length)&&!f1e(dme)}function _be(dme){return mbe(dme)&&Ibe(dme)}function LOe(dme){return dme===!0||dme===!1||mbe(dme)&&Pbe(dme)==Hme}var w1e=exe||oCe,HOe=uCe?jbe(uCe):Gxe;function zOe(dme){return mbe(dme)&&dme.nodeType===1&&!h_e(dme)}function VOe(dme){if(dme==null)return!0;if(Ibe(dme)&&(Bye(dme)||typeof dme=="string"||typeof dme.splice=="function"||w1e(dme)||G1e(dme)||I1e(dme)))return!dme.length;var vme=Tbe(dme);if(vme==Ume||vme==t0e)return!dme.size;if(d_e(dme))return!wSe(dme).length;for(var xme in dme)if(ibe.call(dme,xme))return!1;return!0}function WOe(dme,vme){return u_e(dme,vme)}function KOe(dme,vme,xme){xme=typeof xme=="function"?xme:x_;var jme=xme?xme(dme,vme):x_;return jme===x_?u_e(dme,vme,x_,xme):!!jme}function YSe(dme){if(!mbe(dme))return!1;var vme=Pbe(dme);return vme==Vme||vme==zme||typeof dme.message=="string"&&typeof dme.name=="string"&&!h_e(dme)}function UOe(dme){return typeof dme=="number"&&PCe(dme)}function f1e(dme){if(!vbe(dme))return!1;var vme=Pbe(dme);return vme==Xme||vme==e0e||vme==Lme||vme==Qme}function Ywe(dme){return typeof dme=="number"&&dme==zye(dme)}function Q_e(dme){return typeof dme=="number"&&dme>-1&&dme%1==0&&dme<=Mme}function vbe(dme){var vme=typeof dme;return dme!=null&&(vme=="object"||vme=="function")}function mbe(dme){return dme!=null&&typeof dme=="object"}var Xwe=cCe?jbe(cCe):Xxe;function qOe(dme,vme){return dme===vme||CSe(dme,vme,BSe(vme))}function GOe(dme,vme,xme){return xme=typeof xme=="function"?xme:x_,CSe(dme,vme,BSe(vme),xme)}function YOe(dme){return Zwe(dme)&&dme!=+dme}function XOe(dme){if(I2e(dme))throw new Fye($P);return zCe(dme)}function ZOe(dme){return dme===null}function QOe(dme){return dme==null}function Zwe(dme){return typeof dme=="number"||mbe(dme)&&Pbe(dme)==Jme}function h_e(dme){if(!mbe(dme)||Pbe(dme)!=d0e)return!1;var vme=x_e(dme);if(vme===null)return!0;var xme=ibe.call(vme,"constructor")&&vme.constructor;return typeof xme=="function"&&xme instanceof xme&&S_e.call(xme)==GEe}var XSe=fCe?jbe(fCe):Zxe;function JOe(dme){return Ywe(dme)&&dme>=-Mme&&dme<=Mme}var Qwe=dCe?jbe(dCe):Qxe;function J_e(dme){return typeof dme=="string"||!Bye(dme)&&mbe(dme)&&Pbe(dme)==o0e}function Bbe(dme){return typeof dme=="symbol"||mbe(dme)&&Pbe(dme)==g0e}var G1e=pCe?jbe(pCe):Jxe;function eTe(dme){return dme===x_}function tTe(dme){return mbe(dme)&&Tbe(dme)==h0e}function nTe(dme){return mbe(dme)&&Pbe(dme)==E0e}var rTe=V_e(ESe),aTe=V_e(function(dme,vme){return dme<=vme});function Jwe(dme){if(!dme)return[];if(Ibe(dme))return J_e(dme)?Xbe(dme):Dbe(dme);if(t_e&&dme[t_e])return kEe(dme[t_e]());var vme=Tbe(dme),xme=vme==Ume?fSe:vme==t0e?y_e:Y1e;return xme(dme)}function d1e(dme){if(!dme)return dme===0?dme:0;if(dme=Ybe(dme),dme===Dme||dme===-Dme){var vme=dme<0?-1:1;return vme*Nme}return dme===dme?dme:0}function zye(dme){var vme=d1e(dme),xme=vme%1;return vme===vme?xme?vme-xme:vme:0}function eEe(dme){return dme?P1e(zye(dme),0,wme):0}function Ybe(dme){if(typeof dme=="number")return dme;if(Bbe(dme))return Ime;if(vbe(dme)){var vme=typeof dme.valueOf=="function"?dme.valueOf():dme;dme=vbe(vme)?vme+"":vme}if(typeof dme!="string")return dme===0?dme:+dme;dme=bCe(dme);var xme=w0e.test(dme);return xme||_0e.test(dme)?bEe(dme.slice(2),xme?2:8):m0e.test(dme)?Ime:+dme}function tEe(dme){return t1e(dme,Nbe(dme))}function oTe(dme){return dme?P1e(zye(dme),-Mme,Mme):dme===0?dme:0}function obe(dme){return dme==null?"":Fbe(dme)}var iTe=K1e(function(dme,vme){if(d_e(vme)||Ibe(vme)){t1e(vme,Ebe(vme),dme);return}for(var xme in vme)ibe.call(vme,xme)&&i_e(dme,xme,vme[xme])}),nEe=K1e(function(dme,vme){t1e(vme,Nbe(vme),dme)}),eSe=K1e(function(dme,vme,xme,jme){t1e(vme,Nbe(vme),dme,jme)}),sTe=K1e(function(dme,vme,xme,jme){t1e(vme,Ebe(vme),dme,jme)}),lTe=u1e(mSe);function uTe(dme,vme){var xme=W1e(dme);return vme==null?xme:NCe(xme,vme)}var cTe=Gye(function(dme,vme){dme=cbe(dme);var xme=-1,jme=vme.length,Kme=jme>2?vme[2]:x_;for(Kme&&Abe(vme[0],vme[1],Kme)&&(jme=1);++xme<jme;)for(var Gme=vme[xme],i0e=Nbe(Gme),c0e=-1,v0e=i0e.length;++c0e<v0e;){var B0e=i0e[c0e],H0e=dme[B0e];(H0e===x_||Qbe(H0e,H1e[B0e])&&!ibe.call(dme,B0e))&&(dme[B0e]=Gme[B0e])}return dme}),fTe=Gye(function(dme){return dme.push(x_,bwe),kbe(rEe,x_,dme)});function dTe(dme,vme){return gCe(dme,$ye(vme,3),e1e)}function pTe(dme,vme){return gCe(dme,$ye(vme,3),bSe)}function hTe(dme,vme){return dme==null?dme:ySe(dme,$ye(vme,3),Nbe)}function gTe(dme,vme){return dme==null?dme:BCe(dme,$ye(vme,3),Nbe)}function vTe(dme,vme){return dme&&e1e(dme,$ye(vme,3))}function mTe(dme,vme){return dme&&bSe(dme,$ye(vme,3))}function yTe(dme){return dme==null?[]:M_e(dme,Ebe(dme))}function bTe(dme){return dme==null?[]:M_e(dme,Nbe(dme))}function ZSe(dme,vme,xme){var jme=dme==null?x_:A1e(dme,vme);return jme===x_?xme:jme}function _Te(dme,vme){return dme!=null&&Cwe(dme,vme,Vxe)}function QSe(dme,vme){return dme!=null&&Cwe(dme,vme,Wxe)}var STe=hwe(function(dme,vme,xme){vme!=null&&typeof vme.toString!="function"&&(vme=C_e.call(vme)),dme[vme]=xme},eCe(Mbe)),CTe=hwe(function(dme,vme,xme){vme!=null&&typeof vme.toString!="function"&&(vme=C_e.call(vme)),ibe.call(dme,vme)?dme[vme].push(xme):dme[vme]=[xme]},$ye),wTe=Gye(l_e);function Ebe(dme){return Ibe(dme)?DCe(dme):wSe(dme)}function Nbe(dme){return Ibe(dme)?DCe(dme,!0):e2e(dme)}function ETe(dme,vme){var xme={};return vme=$ye(vme,3),e1e(dme,function(jme,Kme,Gme){s1e(xme,vme(jme,Kme,Gme),jme)}),xme}function xTe(dme,vme){var xme={};return vme=$ye(vme,3),e1e(dme,function(jme,Kme,Gme){s1e(xme,Kme,vme(jme,Kme,Gme))}),xme}var RTe=K1e(function(dme,vme,xme){k_e(dme,vme,xme)}),rEe=K1e(function(dme,vme,xme,jme){k_e(dme,vme,xme,jme)}),OTe=u1e(function(dme,vme){var xme={};if(dme==null)return xme;var jme=!1;vme=gbe(vme,function(Gme){return Gme=S1e(Gme,dme),jme||(jme=Gme.length>1),Gme}),t1e(dme,jSe(dme),xme),jme&&(xme=Ube(xme,ame|ome|ime,S2e));for(var Kme=vme.length;Kme--;)PSe(xme,vme[Kme]);return xme});function TTe(dme,vme){return aEe(dme,Z_e($ye(vme)))}var PTe=u1e(function(dme,vme){return dme==null?{}:n2e(dme,vme)});function aEe(dme,vme){if(dme==null)return{};var xme=gbe(jSe(dme),function(jme){return[jme]});return vme=$ye(vme),YCe(dme,xme,function(jme,Kme){return vme(jme,Kme[0])})}function ATe(dme,vme,xme){vme=S1e(vme,dme);var jme=-1,Kme=vme.length;for(Kme||(Kme=1,dme=x_);++jme<Kme;){var Gme=dme==null?x_:dme[n1e(vme[jme])];Gme===x_&&(jme=Kme,Gme=xme),dme=f1e(Gme)?Gme.call(dme):Gme}return dme}function $Te(dme,vme,xme){return dme==null?dme:c_e(dme,vme,xme)}function DTe(dme,vme,xme,jme){return jme=typeof jme=="function"?jme:x_,dme==null?dme:c_e(dme,vme,xme,jme)}var oEe=mwe(Ebe),iEe=mwe(Nbe);function ITe(dme,vme,xme){var jme=Bye(dme),Kme=jme||w1e(dme)||G1e(dme);if(vme=$ye(vme,4),xme==null){var Gme=dme&&dme.constructor;Kme?xme=jme?new Gme:[]:vbe(dme)?xme=f1e(Gme)?W1e(x_e(dme)):{}:xme={}}return(Kme?Vbe:e1e)(dme,function(i0e,c0e,v0e){return vme(xme,i0e,c0e,v0e)}),xme}function NTe(dme,vme){return dme==null?!0:PSe(dme,vme)}function MTe(dme,vme,xme){return dme==null?dme:ewe(dme,vme,DSe(xme))}function kTe(dme,vme,xme,jme){return jme=typeof jme=="function"?jme:x_,dme==null?dme:ewe(dme,vme,DSe(xme),jme)}function Y1e(dme){return dme==null?[]:cSe(dme,Ebe(dme))}function jTe(dme){return dme==null?[]:cSe(dme,Nbe(dme))}function FTe(dme,vme,xme){return xme===x_&&(xme=vme,vme=x_),xme!==x_&&(xme=Ybe(xme),xme=xme===xme?xme:0),vme!==x_&&(vme=Ybe(vme),vme=vme===vme?vme:0),P1e(Ybe(dme),vme,xme)}function BTe(dme,vme,xme){return vme=d1e(vme),xme===x_?(xme=vme,vme=0):xme=d1e(xme),dme=Ybe(dme),Kxe(dme,vme,xme)}function LTe(dme,vme,xme){if(xme&&typeof xme!="boolean"&&Abe(dme,vme,xme)&&(vme=xme=x_),xme===x_&&(typeof vme=="boolean"?(xme=vme,vme=x_):typeof dme=="boolean"&&(xme=dme,dme=x_)),dme===x_&&vme===x_?(dme=0,vme=1):(dme=d1e(dme),vme===x_?(vme=dme,dme=0):vme=d1e(vme)),dme>vme){var jme=dme;dme=vme,vme=jme}if(xme||dme%1||vme%1){var Kme=ACe();return Obe(dme+Kme*(vme-dme+yEe("1e-"+((Kme+"").length-1))),vme)}return RSe(dme,vme)}var HTe=U1e(function(dme,vme,xme){return vme=vme.toLowerCase(),dme+(xme?sEe(vme):vme)});function sEe(dme){return JSe(obe(dme).toLowerCase())}function lEe(dme){return dme=obe(dme),dme&&dme.replace(l0e,$Ee).replace(Mye,"")}function zTe(dme,vme,xme){dme=obe(dme),vme=Fbe(vme);var jme=dme.length;xme=xme===x_?jme:P1e(zye(xme),0,jme);var Kme=xme;return xme-=vme.length,xme>=0&&dme.slice(xme,Kme)==vme}function VTe(dme){return dme=obe(dme),dme&&X0e.test(dme)?dme.replace(q0e,DEe):dme}function WTe(dme){return dme=obe(dme),dme&&sye.test(dme)?dme.replace(W0e,"\\$&"):dme}var KTe=U1e(function(dme,vme,xme){return dme+(xme?"-":"")+vme.toLowerCase()}),UTe=U1e(function(dme,vme,xme){return dme+(xme?" ":"")+vme.toLowerCase()}),qTe=fwe("toLowerCase");function GTe(dme,vme,xme){dme=obe(dme),vme=zye(vme);var jme=vme?B1e(dme):0;if(!vme||jme>=vme)return dme;var Kme=(vme-jme)/2;return z_e(P_e(Kme),xme)+dme+z_e(T_e(Kme),xme)}function YTe(dme,vme,xme){dme=obe(dme),vme=zye(vme);var jme=vme?B1e(dme):0;return vme&&jme<vme?dme+z_e(vme-jme,xme):dme}function XTe(dme,vme,xme){dme=obe(dme),vme=zye(vme);var jme=vme?B1e(dme):0;return vme&&jme<vme?z_e(vme-jme,xme)+dme:dme}function ZTe(dme,vme,xme){return xme||vme==null?vme=0:vme&&(vme=+vme),axe(obe(dme).replace(G0e,""),vme||0)}function QTe(dme,vme,xme){return(xme?Abe(dme,vme,xme):vme===x_)?vme=1:vme=zye(vme),OSe(obe(dme),vme)}function JTe(){var dme=arguments,vme=obe(dme[0]);return dme.length<3?vme:vme.replace(dme[1],dme[2])}var ePe=U1e(function(dme,vme,xme){return dme+(xme?"_":"")+vme.toLowerCase()});function tPe(dme,vme,xme){return xme&&typeof xme!="number"&&Abe(dme,vme,xme)&&(vme=xme=x_),xme=xme===x_?wme:xme>>>0,xme?(dme=obe(dme),dme&&(typeof vme=="string"||vme!=null&&!XSe(vme))&&(vme=Fbe(vme),!vme&&F1e(dme))?C1e(Xbe(dme),0,xme):dme.split(vme,xme)):[]}var nPe=U1e(function(dme,vme,xme){return dme+(xme?" ":"")+JSe(vme)});function rPe(dme,vme,xme){return dme=obe(dme),xme=xme==null?0:P1e(zye(xme),0,dme.length),vme=Fbe(vme),dme.slice(xme,xme+vme.length)==vme}function aPe(dme,vme,xme){var jme=qme.templateSettings;xme&&Abe(dme,vme,xme)&&(vme=x_),dme=obe(dme),vme=eSe({},vme,jme,ywe);var Kme=eSe({},vme.imports,jme.imports,ywe),Gme=Ebe(Kme),i0e=cSe(Kme,Gme),c0e,v0e,B0e=0,H0e=vme.interpolate||S0e,K0e="__p += '",uye=dSe((vme.escape||S0e).source+"|"+H0e.source+"|"+(H0e===aye?n0e:S0e).source+"|"+(vme.evaluate||S0e).source+"|$","g"),Cye="//# sourceURL="+(ibe.call(vme,"sourceURL")?(vme.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++g_e+"]")+`
381
- `;dme.replace(uye,function(Nye,Zye,tbe,Lbe,$be,Hbe){return tbe||(tbe=Lbe),K0e+=dme.slice(B0e,Hbe).replace(I0e,IEe),Zye&&(c0e=!0,K0e+=`' +
382
- __e(`+Zye+`) +
383
- '`),$be&&(v0e=!0,K0e+=`';
384
- `+$be+`;
385
- __p += '`),tbe&&(K0e+=`' +
386
- ((__t = (`+tbe+`)) == null ? '' : __t) +
387
- '`),B0e=Hbe+Nye.length,Nye}),K0e+=`';
388
- `;var Iye=ibe.call(vme,"variable")&&vme.variable;if(!Iye)K0e=`with (obj) {
389
- `+K0e+`
390
- }
391
- `;else if(R0e.test(Iye))throw new Fye(eme);K0e=(v0e?K0e.replace(Y0e,""):K0e).replace(mye,"$1").replace(Q0e,"$1;"),K0e="function("+(Iye||"obj")+`) {
392
- `+(Iye?"":`obj || (obj = {});
393
- `)+"var __t, __p = ''"+(c0e?", __e = _.escape":"")+(v0e?`, __j = Array.prototype.join;
394
- function print() { __p += __j.call(arguments, '') }
395
- `:`;
396
- `)+K0e+`return __p
397
- }`;var Kye=cEe(function(){return rbe(Gme,Cye+"return "+K0e).apply(x_,i0e)});if(Kye.source=K0e,YSe(Kye))throw Kye;return Kye}function oPe(dme){return obe(dme).toLowerCase()}function iPe(dme){return obe(dme).toUpperCase()}function sPe(dme,vme,xme){if(dme=obe(dme),dme&&(xme||vme===x_))return bCe(dme);if(!dme||!(vme=Fbe(vme)))return dme;var jme=Xbe(dme),Kme=Xbe(vme),Gme=_Ce(jme,Kme),i0e=SCe(jme,Kme)+1;return C1e(jme,Gme,i0e).join("")}function lPe(dme,vme,xme){if(dme=obe(dme),dme&&(xme||vme===x_))return dme.slice(0,wCe(dme)+1);if(!dme||!(vme=Fbe(vme)))return dme;var jme=Xbe(dme),Kme=SCe(jme,Xbe(vme))+1;return C1e(jme,0,Kme).join("")}function uPe(dme,vme,xme){if(dme=obe(dme),dme&&(xme||vme===x_))return dme.replace(G0e,"");if(!dme||!(vme=Fbe(vme)))return dme;var jme=Xbe(dme),Kme=_Ce(jme,Xbe(vme));return C1e(jme,Kme).join("")}function cPe(dme,vme){var xme=_me,jme=Cme;if(vbe(vme)){var Kme="separator"in vme?vme.separator:Kme;xme="length"in vme?zye(vme.length):xme,jme="omission"in vme?Fbe(vme.omission):jme}dme=obe(dme);var Gme=dme.length;if(F1e(dme)){var i0e=Xbe(dme);Gme=i0e.length}if(xme>=Gme)return dme;var c0e=xme-B1e(jme);if(c0e<1)return jme;var v0e=i0e?C1e(i0e,0,c0e).join(""):dme.slice(0,c0e);if(Kme===x_)return v0e+jme;if(i0e&&(c0e+=v0e.length-c0e),XSe(Kme)){if(dme.slice(c0e).search(Kme)){var B0e,H0e=v0e;for(Kme.global||(Kme=dSe(Kme.source,obe(f0e.exec(Kme))+"g")),Kme.lastIndex=0;B0e=Kme.exec(H0e);)var K0e=B0e.index;v0e=v0e.slice(0,K0e===x_?c0e:K0e)}}else if(dme.indexOf(Fbe(Kme),c0e)!=c0e){var uye=v0e.lastIndexOf(Kme);uye>-1&&(v0e=v0e.slice(0,uye))}return v0e+jme}function fPe(dme){return dme=obe(dme),dme&&V0e.test(dme)?dme.replace(U0e,LEe):dme}var dPe=U1e(function(dme,vme,xme){return dme+(xme?" ":"")+vme.toUpperCase()}),JSe=fwe("toUpperCase");function uEe(dme,vme,xme){return dme=obe(dme),vme=xme?x_:vme,vme===x_?MEe(dme)?VEe(dme):REe(dme):dme.match(vme)||[]}var cEe=Gye(function(dme,vme){try{return kbe(dme,x_,vme)}catch(xme){return YSe(xme)?xme:new Fye(xme)}}),pPe=u1e(function(dme,vme){return Vbe(vme,function(xme){xme=n1e(xme),s1e(dme,xme,qSe(dme[xme],dme))}),dme});function hPe(dme){var vme=dme==null?0:dme.length,xme=$ye();return dme=vme?gbe(dme,function(jme){if(typeof jme[1]!="function")throw new Wbe(zP);return[xme(jme[0]),jme[1]]}):[],Gye(function(jme){for(var Kme=-1;++Kme<vme;){var Gme=dme[Kme];if(kbe(Gme[0],this,jme))return kbe(Gme[1],this,jme)}})}function gPe(dme){return Lxe(Ube(dme,ame))}function eCe(dme){return function(){return dme}}function vPe(dme,vme){return dme==null||dme!==dme?vme:dme}var mPe=pwe(),yPe=pwe(!0);function Mbe(dme){return dme}function tCe(dme){return VCe(typeof dme=="function"?dme:Ube(dme,ame))}function bPe(dme){return KCe(Ube(dme,ame))}function _Pe(dme,vme){return UCe(dme,Ube(vme,ame))}var SPe=Gye(function(dme,vme){return function(xme){return l_e(xme,dme,vme)}}),CPe=Gye(function(dme,vme){return function(xme){return l_e(dme,xme,vme)}});function nCe(dme,vme,xme){var jme=Ebe(vme),Kme=M_e(vme,jme);xme==null&&!(vbe(vme)&&(Kme.length||!jme.length))&&(xme=vme,vme=dme,dme=this,Kme=M_e(vme,Ebe(vme)));var Gme=!(vbe(xme)&&"chain"in xme)||!!xme.chain,i0e=f1e(dme);return Vbe(Kme,function(c0e){var v0e=vme[c0e];dme[c0e]=v0e,i0e&&(dme.prototype[c0e]=function(){var B0e=this.__chain__;if(Gme||B0e){var H0e=dme(this.__wrapped__),K0e=H0e.__actions__=Dbe(this.__actions__);return K0e.push({func:v0e,args:arguments,thisArg:dme}),H0e.__chain__=B0e,H0e}return v0e.apply(dme,v1e([this.value()],arguments))})}),dme}function wPe(){return xbe._===this&&(xbe._=YEe),this}function rCe(){}function EPe(dme){return dme=zye(dme),Gye(function(vme){return qCe(vme,dme)})}var xPe=NSe(gbe),RPe=NSe(hCe),OPe=NSe(oSe);function fEe(dme){return HSe(dme)?iSe(n1e(dme)):r2e(dme)}function TPe(dme){return function(vme){return dme==null?x_:A1e(dme,vme)}}var PPe=gwe(),APe=gwe(!0);function aCe(){return[]}function oCe(){return!1}function $Pe(){return{}}function DPe(){return""}function IPe(){return!0}function NPe(dme,vme){if(dme=zye(dme),dme<1||dme>Mme)return[];var xme=wme,jme=Obe(dme,wme);vme=$ye(vme),dme-=wme;for(var Kme=uSe(jme,vme);++xme<dme;)vme(xme);return Kme}function MPe(dme){return Bye(dme)?gbe(dme,n1e):Bbe(dme)?[dme]:Dbe($we(obe(dme)))}function kPe(dme){var vme=++qEe;return obe(dme)+vme}var jPe=H_e(function(dme,vme){return dme+vme},0),FPe=MSe("ceil"),BPe=H_e(function(dme,vme){return dme/vme},1),LPe=MSe("floor");function HPe(dme){return dme&&dme.length?N_e(dme,Mbe,_Se):x_}function zPe(dme,vme){return dme&&dme.length?N_e(dme,$ye(vme,2),_Se):x_}function VPe(dme){return mCe(dme,Mbe)}function WPe(dme,vme){return mCe(dme,$ye(vme,2))}function KPe(dme){return dme&&dme.length?N_e(dme,Mbe,ESe):x_}function UPe(dme,vme){return dme&&dme.length?N_e(dme,$ye(vme,2),ESe):x_}var qPe=H_e(function(dme,vme){return dme*vme},1),GPe=MSe("round"),YPe=H_e(function(dme,vme){return dme-vme},0);function XPe(dme){return dme&&dme.length?lSe(dme,Mbe):0}function ZPe(dme,vme){return dme&&dme.length?lSe(dme,$ye(vme,2)):0}return qme.after=bOe,qme.ary=zwe,qme.assign=iTe,qme.assignIn=nEe,qme.assignInWith=eSe,qme.assignWith=sTe,qme.at=lTe,qme.before=Vwe,qme.bind=qSe,qme.bindAll=pPe,qme.bindKey=Wwe,qme.castArray=$Oe,qme.chain=Bwe,qme.chunk=L2e,qme.compact=H2e,qme.concat=z2e,qme.cond=hPe,qme.conforms=gPe,qme.constant=eCe,qme.countBy=XRe,qme.create=uTe,qme.curry=Kwe,qme.curryRight=Uwe,qme.debounce=qwe,qme.defaults=cTe,qme.defaultsDeep=fTe,qme.defer=_Oe,qme.delay=SOe,qme.difference=V2e,qme.differenceBy=W2e,qme.differenceWith=K2e,qme.drop=U2e,qme.dropRight=q2e,qme.dropRightWhile=G2e,qme.dropWhile=Y2e,qme.fill=X2e,qme.filter=QRe,qme.flatMap=tOe,qme.flatMapDeep=nOe,qme.flatMapDepth=rOe,qme.flatten=Mwe,qme.flattenDeep=Z2e,qme.flattenDepth=Q2e,qme.flip=COe,qme.flow=mPe,qme.flowRight=yPe,qme.fromPairs=J2e,qme.functions=yTe,qme.functionsIn=bTe,qme.groupBy=aOe,qme.initial=tRe,qme.intersection=nRe,qme.intersectionBy=rRe,qme.intersectionWith=aRe,qme.invert=STe,qme.invertBy=CTe,qme.invokeMap=iOe,qme.iteratee=tCe,qme.keyBy=sOe,qme.keys=Ebe,qme.keysIn=Nbe,qme.map=G_e,qme.mapKeys=ETe,qme.mapValues=xTe,qme.matches=bPe,qme.matchesProperty=_Pe,qme.memoize=X_e,qme.merge=RTe,qme.mergeWith=rEe,qme.method=SPe,qme.methodOf=CPe,qme.mixin=nCe,qme.negate=Z_e,qme.nthArg=EPe,qme.omit=OTe,qme.omitBy=TTe,qme.once=wOe,qme.orderBy=lOe,qme.over=xPe,qme.overArgs=EOe,qme.overEvery=RPe,qme.overSome=OPe,qme.partial=GSe,qme.partialRight=Gwe,qme.partition=uOe,qme.pick=PTe,qme.pickBy=aEe,qme.property=fEe,qme.propertyOf=TPe,qme.pull=lRe,qme.pullAll=jwe,qme.pullAllBy=uRe,qme.pullAllWith=cRe,qme.pullAt=fRe,qme.range=PPe,qme.rangeRight=APe,qme.rearg=xOe,qme.reject=dOe,qme.remove=dRe,qme.rest=ROe,qme.reverse=KSe,qme.sampleSize=hOe,qme.set=$Te,qme.setWith=DTe,qme.shuffle=gOe,qme.slice=pRe,qme.sortBy=yOe,qme.sortedUniq=_Re,qme.sortedUniqBy=SRe,qme.split=tPe,qme.spread=OOe,qme.tail=CRe,qme.take=wRe,qme.takeRight=ERe,qme.takeRightWhile=xRe,qme.takeWhile=RRe,qme.tap=HRe,qme.throttle=TOe,qme.thru=q_e,qme.toArray=Jwe,qme.toPairs=oEe,qme.toPairsIn=iEe,qme.toPath=MPe,qme.toPlainObject=tEe,qme.transform=ITe,qme.unary=POe,qme.union=ORe,qme.unionBy=TRe,qme.unionWith=PRe,qme.uniq=ARe,qme.uniqBy=$Re,qme.uniqWith=DRe,qme.unset=NTe,qme.unzip=USe,qme.unzipWith=Fwe,qme.update=MTe,qme.updateWith=kTe,qme.values=Y1e,qme.valuesIn=jTe,qme.without=IRe,qme.words=uEe,qme.wrap=AOe,qme.xor=NRe,qme.xorBy=MRe,qme.xorWith=kRe,qme.zip=jRe,qme.zipObject=FRe,qme.zipObjectDeep=BRe,qme.zipWith=LRe,qme.entries=oEe,qme.entriesIn=iEe,qme.extend=nEe,qme.extendWith=eSe,nCe(qme,qme),qme.add=jPe,qme.attempt=cEe,qme.camelCase=HTe,qme.capitalize=sEe,qme.ceil=FPe,qme.clamp=FTe,qme.clone=DOe,qme.cloneDeep=NOe,qme.cloneDeepWith=MOe,qme.cloneWith=IOe,qme.conformsTo=kOe,qme.deburr=lEe,qme.defaultTo=vPe,qme.divide=BPe,qme.endsWith=zTe,qme.eq=Qbe,qme.escape=VTe,qme.escapeRegExp=WTe,qme.every=ZRe,qme.find=JRe,qme.findIndex=Iwe,qme.findKey=dTe,qme.findLast=eOe,qme.findLastIndex=Nwe,qme.findLastKey=pTe,qme.floor=LPe,qme.forEach=Lwe,qme.forEachRight=Hwe,qme.forIn=hTe,qme.forInRight=gTe,qme.forOwn=vTe,qme.forOwnRight=mTe,qme.get=ZSe,qme.gt=jOe,qme.gte=FOe,qme.has=_Te,qme.hasIn=QSe,qme.head=kwe,qme.identity=Mbe,qme.includes=oOe,qme.indexOf=eRe,qme.inRange=BTe,qme.invoke=wTe,qme.isArguments=I1e,qme.isArray=Bye,qme.isArrayBuffer=BOe,qme.isArrayLike=Ibe,qme.isArrayLikeObject=_be,qme.isBoolean=LOe,qme.isBuffer=w1e,qme.isDate=HOe,qme.isElement=zOe,qme.isEmpty=VOe,qme.isEqual=WOe,qme.isEqualWith=KOe,qme.isError=YSe,qme.isFinite=UOe,qme.isFunction=f1e,qme.isInteger=Ywe,qme.isLength=Q_e,qme.isMap=Xwe,qme.isMatch=qOe,qme.isMatchWith=GOe,qme.isNaN=YOe,qme.isNative=XOe,qme.isNil=QOe,qme.isNull=ZOe,qme.isNumber=Zwe,qme.isObject=vbe,qme.isObjectLike=mbe,qme.isPlainObject=h_e,qme.isRegExp=XSe,qme.isSafeInteger=JOe,qme.isSet=Qwe,qme.isString=J_e,qme.isSymbol=Bbe,qme.isTypedArray=G1e,qme.isUndefined=eTe,qme.isWeakMap=tTe,qme.isWeakSet=nTe,qme.join=oRe,qme.kebabCase=KTe,qme.last=Gbe,qme.lastIndexOf=iRe,qme.lowerCase=UTe,qme.lowerFirst=qTe,qme.lt=rTe,qme.lte=aTe,qme.max=HPe,qme.maxBy=zPe,qme.mean=VPe,qme.meanBy=WPe,qme.min=KPe,qme.minBy=UPe,qme.stubArray=aCe,qme.stubFalse=oCe,qme.stubObject=$Pe,qme.stubString=DPe,qme.stubTrue=IPe,qme.multiply=qPe,qme.nth=sRe,qme.noConflict=wPe,qme.noop=rCe,qme.now=Y_e,qme.pad=GTe,qme.padEnd=YTe,qme.padStart=XTe,qme.parseInt=ZTe,qme.random=LTe,qme.reduce=cOe,qme.reduceRight=fOe,qme.repeat=QTe,qme.replace=JTe,qme.result=ATe,qme.round=GPe,qme.runInContext=p0e,qme.sample=pOe,qme.size=vOe,qme.snakeCase=ePe,qme.some=mOe,qme.sortedIndex=hRe,qme.sortedIndexBy=gRe,qme.sortedIndexOf=vRe,qme.sortedLastIndex=mRe,qme.sortedLastIndexBy=yRe,qme.sortedLastIndexOf=bRe,qme.startCase=nPe,qme.startsWith=rPe,qme.subtract=YPe,qme.sum=XPe,qme.sumBy=ZPe,qme.template=aPe,qme.times=NPe,qme.toFinite=d1e,qme.toInteger=zye,qme.toLength=eEe,qme.toLower=oPe,qme.toNumber=Ybe,qme.toSafeInteger=oTe,qme.toString=obe,qme.toUpper=iPe,qme.trim=sPe,qme.trimEnd=lPe,qme.trimStart=uPe,qme.truncate=cPe,qme.unescape=fPe,qme.uniqueId=kPe,qme.upperCase=dPe,qme.upperFirst=JSe,qme.each=Lwe,qme.eachRight=Hwe,qme.first=kwe,nCe(qme,function(){var dme={};return e1e(qme,function(vme,xme){ibe.call(qme.prototype,xme)||(dme[xme]=vme)}),dme}(),{chain:!1}),qme.VERSION=$_,Vbe(["bind","bindKey","curry","curryRight","partial","partialRight"],function(dme){qme[dme].placeholder=qme}),Vbe(["drop","take"],function(dme,vme){Jye.prototype[dme]=function(xme){xme=xme===x_?1:wbe(zye(xme),0);var jme=this.__filtered__&&!vme?new Jye(this):this.clone();return jme.__filtered__?jme.__takeCount__=Obe(xme,jme.__takeCount__):jme.__views__.push({size:Obe(xme,wme),type:dme+(jme.__dir__<0?"Right":"")}),jme},Jye.prototype[dme+"Right"]=function(xme){return this.reverse()[dme](xme).reverse()}}),Vbe(["filter","map","takeWhile"],function(dme,vme){var xme=vme+1,jme=xme==Rme||xme==$me;Jye.prototype[dme]=function(Kme){var Gme=this.clone();return Gme.__iteratees__.push({iteratee:$ye(Kme,3),type:xme}),Gme.__filtered__=Gme.__filtered__||jme,Gme}}),Vbe(["head","last"],function(dme,vme){var xme="take"+(vme?"Right":"");Jye.prototype[dme]=function(){return this[xme](1).value()[0]}}),Vbe(["initial","tail"],function(dme,vme){var xme="drop"+(vme?"":"Right");Jye.prototype[dme]=function(){return this.__filtered__?new Jye(this):this[xme](1)}}),Jye.prototype.compact=function(){return this.filter(Mbe)},Jye.prototype.find=function(dme){return this.filter(dme).head()},Jye.prototype.findLast=function(dme){return this.reverse().find(dme)},Jye.prototype.invokeMap=Gye(function(dme,vme){return typeof dme=="function"?new Jye(this):this.map(function(xme){return l_e(xme,dme,vme)})}),Jye.prototype.reject=function(dme){return this.filter(Z_e($ye(dme)))},Jye.prototype.slice=function(dme,vme){dme=zye(dme);var xme=this;return xme.__filtered__&&(dme>0||vme<0)?new Jye(xme):(dme<0?xme=xme.takeRight(-dme):dme&&(xme=xme.drop(dme)),vme!==x_&&(vme=zye(vme),xme=vme<0?xme.dropRight(-vme):xme.take(vme-dme)),xme)},Jye.prototype.takeRightWhile=function(dme){return this.reverse().takeWhile(dme).reverse()},Jye.prototype.toArray=function(){return this.take(wme)},e1e(Jye.prototype,function(dme,vme){var xme=/^(?:filter|find|map|reject)|While$/.test(vme),jme=/^(?:head|last)$/.test(vme),Kme=qme[jme?"take"+(vme=="last"?"Right":""):vme],Gme=jme||/^find/.test(vme);Kme&&(qme.prototype[vme]=function(){var i0e=this.__wrapped__,c0e=jme?[1]:arguments,v0e=i0e instanceof Jye,B0e=c0e[0],H0e=v0e||Bye(i0e),K0e=function(Zye){var tbe=Kme.apply(qme,v1e([Zye],c0e));return jme&&uye?tbe[0]:tbe};H0e&&xme&&typeof B0e=="function"&&B0e.length!=1&&(v0e=H0e=!1);var uye=this.__chain__,Cye=!!this.__actions__.length,Iye=Gme&&!uye,Kye=v0e&&!Cye;if(!Gme&&H0e){i0e=Kye?i0e:new Jye(this);var Nye=dme.apply(i0e,c0e);return Nye.__actions__.push({func:q_e,args:[K0e],thisArg:x_}),new Kbe(Nye,uye)}return Iye&&Kye?dme.apply(this,c0e):(Nye=this.thru(K0e),Iye?jme?Nye.value()[0]:Nye.value():Nye)})}),Vbe(["pop","push","shift","sort","splice","unshift"],function(dme){var vme=b_e[dme],xme=/^(?:push|sort|unshift)$/.test(dme)?"tap":"thru",jme=/^(?:pop|shift)$/.test(dme);qme.prototype[dme]=function(){var Kme=arguments;if(jme&&!this.__chain__){var Gme=this.value();return vme.apply(Bye(Gme)?Gme:[],Kme)}return this[xme](function(i0e){return vme.apply(Bye(i0e)?i0e:[],Kme)})}}),e1e(Jye.prototype,function(dme,vme){var xme=qme[vme];if(xme){var jme=xme.name+"";ibe.call(V1e,jme)||(V1e[jme]=[]),V1e[jme].push({name:vme,func:xme})}}),V1e[L_e(x_,fme).name]=[{name:"wrapper",func:x_}],Jye.prototype.clone=fxe,Jye.prototype.reverse=dxe,Jye.prototype.value=pxe,qme.prototype.at=zRe,qme.prototype.chain=VRe,qme.prototype.commit=WRe,qme.prototype.next=KRe,qme.prototype.plant=qRe,qme.prototype.reverse=GRe,qme.prototype.toJSON=qme.prototype.valueOf=qme.prototype.value=YRe,qme.prototype.first=qme.prototype.head,t_e&&(qme.prototype[t_e]=URe),qme},L1e=WEe();x1e?((x1e.exports=L1e)._=L1e,tSe._=L1e):xbe._=L1e}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports;const TreeSelect=Ff=>{let{request:kh,title:x_,disabledValue:$_,callError:B_,...$P}=Ff;const[zP,eme]=React.useState(!1),[tme,nme]=React.useState([]);React.useEffect(()=>{rme()},[]);const rme=async()=>{if(kh&&typeof kh=="function"){var ame;const ome=await kh();if(ome.code>0){B_&&typeof B_=="function"&&B_(ome.message);return}let ime=handleTree(((ame=ome.data)===null||ame===void 0?void 0:ame.list)||ome.data||[],"id",x_||"title",$P.parentId||"parentId","children",0,$_);ime=[{value:0,title:"根节点",children:ime}],$P.treeData=ime,nme(ime)}$P.treeData&&nme($P.treeData),eme(!0)};return jsxRuntimeExports.jsx(BaseWrapper,{...$P,children:zP&&jsxRuntimeExports.jsx(TreeSelect$1,{...$P,treeData:tme,treeDefaultExpandAll:!0,style:{width:"100%"}})})},Select=Ff=>{let{request:kh,option_label:x_="label",option_value:$_="id",disabledValue:B_,callError:$P,options:zP,addWrapper:eme=!0,...tme}=Ff;const[nme,rme]=React.useState([]);React.useEffect(()=>{ame()},[]);const ame=async()=>{if(kh&&typeof kh=="function"){var ome;const ime=await kh();if(ime.code>0){$P&&typeof $P=="function"&&$P(ime.message);return}let cme=((ome=ime.data)===null||ome===void 0?void 0:ome.list)||ime.data;Array.isArray(cme)&&cme.length>0&&rme(cme.map(ume=>({label:ume[x_],value:ume[$_]})))}zP&&zP.length>0&&rme(zP)};return eme?jsxRuntimeExports.jsx(BaseWrapper,{...tme,children:jsxRuntimeExports.jsx(Select$1,{...tme,options:nme,style:{width:"100%"}})}):jsxRuntimeExports.jsx(Select$1,{...tme,options:nme,style:{width:"100%"}})},SingleSelect=Ff=>{let{...kh}=Ff;return jsxRuntimeExports.jsx(Select,{...kh,mode:"single"})},MultipleSelect=Ff=>{let{onChange:kh,value:x_,...$_}=Ff;const[B_,$P]=React.useState([]);return React.useEffect(()=>{if(x_&&typeof x_=="string")try{x_=JSON.parse(x_),kh(x_)}catch{}x_&&$P(x_)},[x_]),jsxRuntimeExports.jsx(Select,{...$_,onChange:kh,mode:"multiple",value:B_})},WithSingleSelect=Ff=>{let{onChange:kh,value:x_,...$_}=Ff;const[B_,$P]=React.useState("");React.useEffect(()=>{if(x_&&typeof x_=="string")try{x_=JSON.parse(x_),kh(x_)}catch{}x_&&$P(x_)},[x_]);const zP=(eme,tme)=>{kh&&typeof kh=="function"&&kh(tme),$P(tme.label)};return jsxRuntimeExports.jsx(Select,{...$_,onChange:zP,value:B_,mode:"single"})},WithMultipleSelect=Ff=>{let{onChange:kh,value:x_,...$_}=Ff;const[B_,$P]=React.useState([]);React.useEffect(()=>{if(x_&&typeof x_=="string")try{x_=JSON.parse(x_),kh(x_)}catch{}Array.isArray(x_)&&$P(x_)},[x_]);const zP=(eme,tme)=>{kh&&typeof kh=="function"&&kh(tme),tme.map(nme=>nme.label),$P(tme)};return jsxRuntimeExports.jsx(Select,{...$_,onChange:zP,value:B_,mode:"multiple"})},SearchSelect=Ff=>{let{addWrapper:kh=!0,value:x_,type:$_,defaultValue:B_,onChange:$P,option_label:zP,option_value:eme,option_search:tme,options:nme,request:rme,requestParams:ame,callError:ome,...ime}=Ff;const[cme,ume]=React.useState([]),[sme,fme]=React.useState(!1);React.useEffect(()=>{lme(ame)},[ame]);const lme=async yme=>{let mme=null;if(rme&&typeof rme=="function"){const bme=await pme(yme);bme&&Array.isArray(bme)&&(mme=x_?bme.find(Sme=>Sme.value==x_):null)}nme&&nme.length>0&&(mme=x_?nme.find(bme=>bme.value==x_):null,ume(nme)),mme&&$P(mme)},hme=lodashExports.debounce(async yme=>{const mme={...ame};mme[tme]=yme,await pme(mme)},200),pme=async yme=>{try{var mme;fme(!0);const bme=await rme(yme);if(bme.code>0){ome&&typeof ome=="function"&&ome(bme.message);return}let Sme=((mme=bme.data)===null||mme===void 0?void 0:mme.list)||bme.data;return Array.isArray(Sme)?(Sme=Sme.map(_me=>({..._me,label:_me[zP],value:_me[eme]})),ume(Sme)):ume([]),Sme}catch(bme){console.error("fetchOptions",bme)}finally{fme(!1)}},gme=yme=>{const mme=cme.find(bme=>bme.value===yme);$P(mme)};return kh?jsxRuntimeExports.jsx(BaseWrapper,{...ime,children:jsxRuntimeExports.jsx(Select$1,{notFoundContent:sme?jsxRuntimeExports.jsx(Spin,{size:"small"}):null,value:x_,...ime,disabled:!1,filterOption:!1,showSearch:!!(rme&&tme),onSearch:rme&&tme?hme:null,onChange:gme,style:{width:"100%"},mode:"single",children:cme.map((yme,mme)=>jsxRuntimeExports.jsx(Select$1.Option,{value:yme.value,disabled:!1,children:yme.label},mme))})}):jsxRuntimeExports.jsx(Select$1,{notFoundContent:sme?jsxRuntimeExports.jsx(Spin,{size:"small"}):null,value:x_,...ime,disabled:!1,filterOption:!1,showSearch:!!(rme&&tme),onSearch:rme&&tme?hme:null,onChange:gme,style:{width:"100%"},mode:"single",children:cme.map((yme,mme)=>jsxRuntimeExports.jsx(Select$1.Option,{value:yme.value,disabled:!1,children:yme.label},mme))})},Custom=React.forwardRef((Ff,kh)=>{let{value:x_,onChange:$_,...B_}=Ff;const $P=React.useRef(0),zP=()=>{$P.current++,$_($P.current)};return jsxRuntimeExports.jsxs(BaseWrapper,{...B_,children:[jsxRuntimeExports.jsxs("div",{ref:kh,children:["form-set-value:",x_]}),jsxRuntimeExports.jsx(Button$1,{onClick:zP,children:"test"})]})}),evalFormula=formula=>{let result="";try{result=eval(formula.join(""))}catch(Ff){console.error("formula error",Ff)}return result.toString()},LayoutFormRow=Ff=>{let{children:kh,layout:x_}=Ff;x_=x_||"1";const $_=zP=>{const eme=zP.split(",").map(Number),tme=24;return eme.map(nme=>nme/eme.reduce((rme,ame)=>rme+ame)*tme)},B_=React.useMemo(()=>$_(x_),[x_]);console.log("colSpans",B_);const $P=React.useMemo(()=>React.Children.toArray(kh).map((zP,eme)=>{const tme=zP.props,nme=(tme==null?void 0:tme.componentId)||(tme==null?void 0:tme.__id);return nme?(B_==null?void 0:B_[eme])&&jsxRuntimeExports.jsx(Col,{span:B_[eme],children:jsxRuntimeExports.jsx(Form.Item,{style:{marginBottom:0},label:"",name:nme,rules:[{required:tme.isRequired,message:"".concat(tme.title,"不能为空!")}],children:zP},"".concat(nme,"-form-item"))},eme):(B_==null?void 0:B_[eme])&&jsxRuntimeExports.jsx(Col,{span:B_[eme],children:zP},eme)}),[kh,B_]);return jsxRuntimeExports.jsx(Row,{gutter:24,children:$P})},FormGroupTitle=Ff=>{let{title:kh}=Ff;return kh?jsxRuntimeExports.jsx("div",{className:"fh-11 fflex fitems-center ftext-lg ffont-medium ",children:jsxRuntimeExports.jsx("span",{className:"fborder-l-4 fborder-slate-300 fpl-2 ",children:kh})}):null};function batchElements(Ff,kh){const x_=[];let $_=[];const B_=(zP,eme)=>{const tme=zP-eme.length;eme.push(...new Array(tme).fill(React.createElement("div")))};for(const zP of Ff){var $P;const{_componentName:eme}=(zP==null?void 0:zP.props)||{},tme=(($P=zP.type)===null||$P===void 0?void 0:$P.displayName)||eme;tme&&tme.startsWith("Layout.")?($_.length>0&&(B_(kh,$_),x_.push($_),$_=[]),x_.push([zP])):($_.push(zP),$_.length===kh&&(x_.push($_),$_=[]))}return $_.length>0&&(B_(kh,$_),x_.push($_)),x_}const FormContainer=React.forwardRef((Ff,kh)=>{let{cols:x_=1,children:$_}=Ff;const[B_]=Form.useForm(),[$P,zP]=React.useState(null),eme=React.useRef(null);React.useImperativeHandle(kh,()=>({formRef:B_,initializeFieldVisibility:nme}),[]),React.useEffect(()=>{tme(),zP(ume())},[$_,x_]);const tme=()=>{const sme=[];function fme(hme){var pme,gme,yme=((pme=hme.type)===null||pme===void 0?void 0:pme.displayName)||((gme=hme.props)===null||gme===void 0?void 0:gme._componentName);const{props:mme}=hme;yme&&yme.startsWith("Field.")&&sme.push(hme),mme!=null&&mme.children&&React.Children.toArray(mme==null?void 0:mme.children).forEach(Sme=>fme(Sme))}eme.current=new Map;const lme=React.Children.toArray($_);for(let hme=0;hme<lme.length;hme++){const pme=lme[hme];fme(pme)}sme.forEach(hme=>{const{componentId:pme,__id:gme,...yme}=hme==null?void 0:hme.props,mme=pme||gme;eme.current.set(mme,{children:lme.filter(bme=>{var Sme;return bme.props.withId===mme||((Sme=bme.props.withIds)===null||Sme===void 0?void 0:Sme.some(_me=>mme==_me||_me.startsWith(mme+".")))}),show:!0})}),console.log("dependencyMap",eme.current),nme()},nme=function(){let sme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const fme=B_.getFieldsValue();for(let lme of eme.current.keys())rme(lme,fme);sme&&zP(ume())},rme=(sme,fme)=>{let lme=!1;return eme.current.has(sme)&&eme.current.get(sme).children.forEach(pme=>{pme.props.withFunc&&typeof pme.props.withFunc=="function"&&(lme=ame(fme,pme)),pme.props.withFill&&ome(fme,pme)}),lme},ame=(sme,fme)=>{let lme=!1;const hme=fme.props.withFunc(sme),pme=fme.props.componentId||fme.props.__id;if(eme.current.has(pme)){const gme=eme.current.get(pme);gme.show!==hme&&(gme.show=hme,eme.current.set(pme,gme),lme=!0)}return lme},ome=async(sme,fme)=>{const lme=fme.props.withFill,hme=fme.props.withDataFetch;console.log("withFill",lme),console.log("fieldValues",sme),console.log("child",fme);let pme=[];if(lme!=null&&lme.withData&&(lme==null?void 0:lme.withData.length)>0&&hme&&typeof hme=="function")for(let yme=0;yme<(lme==null?void 0:lme.withData.length);yme++){const mme=lme==null?void 0:lme.withData[yme];let bme={};bme.tableName=mme.withTable.table_name,bme.filter={};for(let _me=0;_me<mme.withCondition.length;_me++){const{value:Cme,column:Eme}=mme.withCondition[_me];bme.filter[Eme.column_name]=ime(Cme.group_key,Cme.field_key,sme,pme)}const Sme=await hme(bme);Sme.code===0&&Sme.data.list&&pme.push({id:mme.id,data:Sme.data.list})}let gme;if(lme.value&&lme.value.length>0&&(gme=lme.value.map(yme=>{let mme="";const{insert:bme,attributes:Sme}=yme;return typeof bme!="string"?bme!=null&&bme.span&&Sme&&Sme.tagKey&&Sme.id&&(mme=ime(Sme.tagKey,Sme.id,sme,pme),Array.isArray(mme)?mme=JSON.stringify(mme):mme&&(mme='"'.concat(mme,'"'))):mme=bme,mme})),console.log("formula",gme),gme&&gme.length>0){const yme=fme.props.componentId||fme.props.__id;B_.setFieldValue(yme,evalFormula(gme))}},ime=(sme,fme,lme,hme)=>{let pme="";if(sme=="fieldsValue")if(fme.indexOf(".")>=0){const[yme,mme]=fme.split("."),bme=(lme==null?void 0:lme[yme])||[];Array.isArray(bme)?pme=bme.map(Sme=>(Sme==null?void 0:Sme[mme])||""):pme=(bme==null?void 0:bme[mme])||""}else pme=(lme==null?void 0:lme[fme])||"";else{let yme=hme.find(mme=>mme.id===sme);if(yme&&yme.data&&yme.data.length>0){var gme;pme=((gme=yme.data[0])===null||gme===void 0?void 0:gme[fme])||""}}return pme},cme=lodashExports.debounce((sme,fme)=>{const lme=B_.getFieldsValue();let hme=!1;sme.forEach(pme=>{pme.name&&pme.name.length>0&&(hme=rme(pme.name[0],lme))}),hme&&zP(ume())},200),ume=()=>{const sme=React.Children.toArray($_);return batchElements(sme.filter(lme=>{const hme=lme.props.componentId||lme.props.__id;return eme.current.has(hme)&&eme.current.get(hme).show}),x_).map((lme,hme)=>jsxRuntimeExports.jsx(Row,{gutter:[24,24],children:lme.map((pme,gme)=>{var yme;const{componentId:mme,__id:bme,_componentName:Sme,..._me}=pme.props,Cme=((yme=pme.type)===null||yme===void 0?void 0:yme.displayName)||Sme,Eme=mme||bme,Tme=Cme&&Cme.startsWith("Layout.");return jsxRuntimeExports.jsx(Col,{span:Tme?24:24/lme.length,style:{marginBottom:0},children:Tme?pme:jsxRuntimeExports.jsx(Form.Item,{style:{marginBottom:0},label:"",name:Eme,rules:[{required:_me.isRequired,message:"".concat(_me.title,"不能为空!")}],children:pme})},Eme||"col-".concat(gme))})},"row-".concat(hme)))};return jsxRuntimeExports.jsx(Form,{form:B_,className:"form-container fp-6 fw-full fh-full box-border overflow-auto",onFieldsChange:cme,children:$P})});function withWrap(Ff){return React.forwardRef((kh,x_)=>jsxRuntimeExports.jsx(Ff,{...kh,ref:x_,forwardedRef:x_}))}class FormContainerClass extends React.PureComponent{render(){const{forwardedRef:kh,...x_}=this.props;return jsxRuntimeExports.jsx(FormContainer,{...x_,ref:kh})}}const FormContainerWrapper=withWrap(Ff=>{let{forwardedRef:kh,...x_}=Ff;return jsxRuntimeExports.jsx(FormContainer,{...x_,ref:kh})}),CheckboxTree=Ff=>{let{request:kh,value:x_,onChange:$_,callError:B_,disabledValue:$P,addRoot:zP=!0,title:eme,...tme}=Ff;const[nme,rme]=React.useState(!1),[ame,ome]=React.useState([]);React.useEffect(()=>{ime()},[]),React.useEffect(()=>{if(console.log("CheckboxTree value ",x_),typeof x_=="string")try{x_=JSON.parse(x_),$_(x_)}catch{}Array.isArray(x_)&&fme(x_)},[x_]);const ime=async()=>{if(kh&&typeof kh=="function"){var Sme;const _me=await kh();if(_me.code>0){B_&&typeof B_=="function"&&B_(_me.message);return}let Cme=handleTree(((Sme=_me.data)===null||Sme===void 0?void 0:Sme.list)||_me.data||[],"id",eme||"title",(tme==null?void 0:tme.parentId)||"parentId","children",0,$P);zP&&(Cme=[{value:0,title:"根节点",children:Cme}]),tme.treeData=Cme,console.log("treeData",Cme),ome(Cme)}tme.treeData&&ome(tme.treeData),rme(!0)},[cme,ume]=React.useState([]),[sme,fme]=React.useState([]),[lme,hme]=React.useState([]),[pme,gme]=React.useState(!0),yme=Sme=>{console.log("onExpand",Sme),ume(Sme),gme(!1)},mme=Sme=>{console.log("onCheck",Sme),fme(Sme),$_(Sme)},bme=(Sme,_me)=>{console.log("onSelect",_me),hme(Sme)};return jsxRuntimeExports.jsx(BaseWrapper,{...tme,children:jsxRuntimeExports.jsx(Tree,{checkable:!0,onExpand:yme,onCheck:mme,onSelect:bme,expandedKeys:cme,autoExpandParent:pme,checkedKeys:sme,selectedKeys:lme,treeData:ame})})},Checkbox=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Checkbox$1,{...Ff})}),CheckboxGroup=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Checkbox$1.Group,{...Ff})}),RadioGroup=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Radio.Group,{...Ff})}),UploadFile=Ff=>{let{value:kh,maxCount:x_,onChange:$_,...B_}=Ff;React.useEffect(()=>{if(kh){if(typeof kh=="string")try{kh=JSON.parse(kh),$_(kh)}catch{}console.log("value",kh),Array.isArray(kh)&&zP(kh)}},[kh]),x_=x_||9;const[$P,zP]=React.useState([]),eme=tme=>{let{fileList:nme}=tme;console.log("newFileList",nme),nme=nme.map(rme=>(rme.status=="done"&&rme.response&&(rme.url=rme.response),rme)),$_(nme.map(rme=>({uid:rme.uid,name:rme.name,status:rme.status,url:rme.url||rme.response||"",error:rme.error}))),zP(nme)};return jsxRuntimeExports.jsx(BaseWrapper,{...B_,children:jsxRuntimeExports.jsx(Upload,{...B_,listType:"text",maxCount:x_,onChange:eme,fileList:$P,children:!(B_!=null&&B_.disabled)&&jsxRuntimeExports.jsxs("div",{className:" fmin-w-36 fgap-1 frounded fborder-gray-300 fborder hover:fborder-[#3e92f8] hover:ftext-[#3e92f8] fcursor-pointer fh-8 fflex fitems-center fbg-white fjustify-center ",children:[jsxRuntimeExports.jsx(RefIcon,{}),"点击上传文件"]})})})},UploadImage=Ff=>{let{maxCount:kh,value:x_,onChange:$_,...B_}=Ff;React.useEffect(()=>{if(x_){if(console.log("value",x_),typeof x_=="string")try{x_=JSON.parse(x_),$_(x_)}catch{}let pme=[];if(Array.isArray(x_))for(let gme=0;gme<x_.length;gme++){let yme=x_[gme];var hme=ime.current.find(mme=>mme.uid===yme.uid);!hme||(hme.version||0)<(yme.version||0)?pme.push(yme):pme.push(hme)}zP(pme)}},[x_]),kh=kh||9;const[$P,zP]=React.useState([]),[eme,tme]=React.useState(""),[nme,rme]=React.useState(0),[ame,ome]=React.useState(!1),ime=React.useRef([]),cme=hme=>new Promise((pme,gme)=>{const yme=new FileReader;yme.readAsDataURL(hme),yme.onload=()=>pme(yme.result),yme.onerror=mme=>gme(mme)}),ume=async(hme,pme)=>{!hme.url&&!hme.preview&&(hme.preview=await cme(hme.originFileObj)),tme(hme.url||hme.preview),rme(pme),ome(!0)},sme=async(hme,pme)=>{zP($P.filter((gme,yme)=>yme!==pme))},fme=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"fw-full fh-full fflex fflex-col fitems-center fjustify-center fborder fborder-dashed fcursor-pointer frounded",children:[jsxRuntimeExports.jsx(RefIcon$1,{}),jsxRuntimeExports.jsx("div",{className:"fmt-2",children:"点击上传"})]})}),lme=hme=>{let{fileList:pme}=hme,gme=[];for(let bme=0;bme<pme.length;bme++){var yme=pme[bme];yme.version=new Date().getTime();var mme=ime.current.find(Sme=>Sme.uid===yme.uid);console.log("oldfile",JSON.parse(JSON.stringify(mme||{}))),mme&&mme.status!="uploading"?gme.push(mme):(yme.status=="done"&&yme.response&&(yme.url=yme.response),gme.push(yme))}ime.current=gme,zP(gme),$_(gme.map(bme=>({uid:bme.uid,name:bme.name,status:bme.status,url:bme.url||bme.response||"",error:bme.error,version:bme.version||0})))};return jsxRuntimeExports.jsxs(BaseWrapper,{...B_,children:[jsxRuntimeExports.jsx("div",{className:"fflex fgap-3 fflex-wrap",children:jsxRuntimeExports.jsx(Upload,{...B_,itemRender:(hme,pme,gme)=>{console.log("file",pme);let yme=gme.findIndex(mme=>mme.uid===pme.uid);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"fgroup fw-full fh-full fbg-transparent fborder frounded fflex fitems-center fjustify-center foverflow-hidden fcursor-pointer frelative"+(pme.status=="error"?" fborder-red-500":""),children:[jsxRuntimeExports.jsxs("div",{className:" fhidden fabsolute fw-full fh-full fbg-gray-900 fbg-opacity-50 fitems-center fjustify-center fz-10 group-hover:fflex ftext-white ftext-lg fgap-2",children:[pme.status=="done"&&jsxRuntimeExports.jsx(RefIcon$2,{onClick:()=>{ume(pme,yme)},className:"hover:ftext-gray-200"}),jsxRuntimeExports.jsx(RefIcon$3,{onClick:()=>{sme(pme,yme)},className:"hover:ftext-gray-200"})]}),pme.status=="uploading"&&jsxRuntimeExports.jsx("div",{className:" fw-full fh-full fflex fitems-center fjustify-center fabsolute ftop-0 fleft-0 ",children:jsxRuntimeExports.jsx(Spin,{})}),jsxRuntimeExports.jsx("img",{src:pme.url||pme.thumbUrl,alt:"Example Image",class:"fmax-w-full fmax-h-full fobject-contain "})]},"file-".concat(pme.uid))})},listType:"picture-card",fileList:$P,maxCount:kh,onPreview:ume,onChange:lme,children:$P.length>=kh||B_!=null&&B_.disabled?null:fme})}),eme&&jsxRuntimeExports.jsx(Image$1.PreviewGroup,{preview:{visible:ame,current:nme,onVisibleChange:hme=>ome(hme),onChange:hme=>{rme(hme)}},children:$P.map((hme,pme)=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Image$1,{wrapperStyle:{display:"none"},src:hme.url})}))})]})},Switch=Ff=>{let{value:kh,...x_}=Ff;const[$_,B_]=React.useState(!1);return React.useEffect(()=>{let $P=!1;typeof kh=="boolean"?$P=kh:typeof kh=="string"?$P=kh=="1"||kh=="true":typeof kh=="number"&&($P=kh==1),B_($P),x_==null||x_.onChange($P)},[kh]),jsxRuntimeExports.jsx(BaseWrapper,{...x_,children:jsxRuntimeExports.jsx(Switch$1,{...x_,value:$_})})};var zhCn={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_(requireDayjs_min())})(commonjsGlobal,function(x_){function $_(zP){return zP&&typeof zP=="object"&&"default"in zP?zP:{default:zP}}var B_=$_(x_),$P={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(zP,eme){return eme==="W"?zP+"周":zP+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(zP,eme){var tme=100*zP+eme;return tme<600?"凌晨":tme<900?"早上":tme<1100?"上午":tme<1300?"中午":tme<1800?"下午":"晚上"}};return B_.default.locale($P,null,!0),$P})})(zhCn);var locale$2={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};const locale$1={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},locale={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},locale$2),timePickerLocale:Object.assign({},locale$1)};locale.lang.ok="确定";var updateLocale$1={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){return function(x_,$_,B_){B_.updateLocale=function($P,zP){var eme=B_.Ls[$P];if(eme)return(zP?Object.keys(zP):[]).forEach(function(tme){eme[tme]=zP[tme]}),eme}}})})(updateLocale$1);var updateLocaleExports=updateLocale$1.exports;const updateLocale=getDefaultExportFromCjs(updateLocaleExports);dayjs.extend(updateLocale);dayjs.updateLocale("zh-cn",{weekStart:0});const DatePicker=Ff=>{let{datetype:kh,value:x_,onChange:$_,...B_}=Ff;kh=kh||"date";const[$P,zP]=React.useState(B_==null?void 0:B_.picker),[eme,tme]=React.useState(B_==null?void 0:B_.format),[nme,rme]=React.useState(null),[ame,ome]=React.useState(!1),[ime,cme]=React.useState(!1);React.useEffect(()=>{if(x_){const sme=dayjs(x_);rme(sme)}},[x_,eme,$P]);const ume=(sme,fme)=>{$_(fme)};return React.useEffect(()=>{switch(zP("date"),ome(!1),kh){case"date":zP("date"),tme("YYYY-MM-DD"),cme(!1);break;case"datetime":ome(!0),zP("datetime"),tme("YYYY-MM-DD HH:mm:ss"),cme(!0);break;case"month":zP("month"),cme(!1);break;case"year":zP("year"),cme(!1);break}},[kh]),jsxRuntimeExports.jsx(BaseWrapper,{...B_,children:jsxRuntimeExports.jsx(DatePicker$1,{locale,...B_,picker:$P,format:eme,style:{width:"100%"},onChange:ume,value:nme,showTime:ame,needConfirm:ime})})},TableCol=Ff=>{let{children:kh,width:x_,...$_}=Ff;const[B_,$P]=React.useState(0);return React.useEffect(()=>{$P(x_)},[x_]),jsxRuntimeExports.jsx("div",{className:"fflex-1",style:{minWidth:"".concat(B_,"px")},...$_,children:kh})},TableAction=Ff=>{let{label:kh,subTableIndex:x_,children:$_,...B_}=Ff;return jsxRuntimeExports.jsx("div",{className:"fw-16",children:jsxRuntimeExports.jsxs("div",{className:"frelative fw-full fh-full fflex fflex-col",children:[kh&&x_===0&&jsxRuntimeExports.jsx("div",{className:"fh-12 ffont-semibold fbg-gray-100 ftext-sm fflex fjustify-between fitems-center fpx-2 fborder-b",children:kh}),jsxRuntimeExports.jsx("div",{className:"fw-full fflex-1 fflex fitems-center fjustify-center fp-2 ",children:$_})]})})},Table=Ff=>{let{children:kh,value:x_,onChange:$_,...B_}=Ff;const[$P,zP]=React.useState([{}]),eme=React.useRef($P),tme=React.useRef(new Map),[nme,rme]=React.useState({}),ame=B_.componentId||B_.__id,ome=mme=>{zP(mme),eme.current=mme};React.useEffect(()=>{if(console.log("value useEffect ",JSON.stringify(x_)),x_&&typeof x_=="string")try{x_=JSON.parse(x_),$_(x_)}catch{}x_&&Array.isArray(x_)&&!lodashExports.isEqual(eme.current,x_)&&(console.log("useEffect setRows"),ome(x_))},[x_]),React.useEffect(()=>{console.log("children useEffect ",kh),ime()},[kh]);const ime=React.useCallback(()=>{tme.current.clear();const mme=React.Children.toArray(kh);mme.forEach(bme=>{const{componentId:Sme,__id:_me,...Cme}=bme.props,Eme="".concat(ame,".").concat(Sme||_me);tme.current.set(Eme,{children:mme.filter(Tme=>{var Rme;return Tme.props.withId===Eme||((Rme=Tme.props.withIds)===null||Rme===void 0?void 0:Rme.includes(Eme))}),show:!0})}),ume()},[kh,ame]),cme=React.useCallback(mme=>{const bme={};for(let Sme in mme)bme["".concat(ame,".").concat(Sme)]=mme[Sme]||"";return bme},[ame]),ume=React.useCallback(()=>{$P.forEach((mme,bme)=>{const Sme=cme(mme);for(let _me of tme.current.keys())sme(_me,Sme,bme)})},[$P,cme]),sme=React.useCallback((mme,bme,Sme)=>{let _me=!1;const Cme="".concat(ame,".").concat(mme);return tme.current.has(Cme)&&tme.current.get(Cme).children.forEach(Tme=>{Tme.props.withFunc&&typeof Tme.props.withFunc=="function"&&(_me=fme(bme,Tme)),Tme.props.withFill&&lme(bme,Tme,Sme)}),_me},[ame,$P]),fme=React.useCallback((mme,bme)=>{let Sme=!1;const _me=bme.props.withFunc(mme),Cme=bme.props.componentId||bme.props.__id;if(tme.current.has(Cme)){const Eme=tme.current.get(Cme);Eme.show!==_me&&(Eme.show=_me,tme.current.set(Cme,Eme),Sme=!0)}return Sme},[]),lme=React.useCallback(async(mme,bme,Sme)=>{const _me=bme.props.withFill,Cme=bme.props.withDataFetch;let Eme=[];if(_me!=null&&_me.withData&&(_me==null?void 0:_me.withData.length)>0&&Cme&&typeof Cme=="function")for(let Rme=0;Rme<(_me==null?void 0:_me.withData.length);Rme++){const Pme=_me==null?void 0:_me.withData[Rme];let $me={};$me.tableName=Pme.withTable.table_name,$me.filter={};for(let Mme=0;Mme<Pme.withCondition.length;Mme++){const{value:Nme,column:Ime}=Pme.withCondition[Mme];$me.filter[Ime.column_name]=hme(Nme.group_key,Nme.field_key,mme,Eme)}const Dme=await Cme($me);Dme.code===0&&Dme.data.list&&Eme.push({id:Pme.id,data:Dme.data.list})}let Tme;if(_me.value&&_me.value.length>0&&(Tme=_me.value.map(Rme=>{let Pme="";const{insert:$me,attributes:Dme}=Rme;return typeof $me!="string"?$me!=null&&$me.span&&Dme&&Dme.tagKey&&Dme.id&&(Pme=hme(Dme.tagKey,Dme.id,mme,Eme),Pme&&(Pme='"'.concat(Pme,'"'))):Pme=$me,Pme})),console.log("formula",Tme),Tme&&Tme.length>0){const Rme=bme.props.componentId||bme.props.__id,Pme=evalFormula(Tme);console.log("formulaResult",Pme),console.log("handleFieldsWithFill setRows");const $me=[...$P];$me[Sme][Rme]=Pme,ome($me)}},[$P]),hme=React.useCallback((mme,bme,Sme,_me)=>{let Cme="";if(mme==="fieldsValue")Cme=(Sme==null?void 0:Sme[bme])||"";else{let Tme=_me.find(Rme=>Rme.id===mme);if(Tme&&Tme.data&&Tme.data.length>0){var Eme;Cme=((Eme=Tme.data[0])===null||Eme===void 0?void 0:Eme[bme])||""}}return Cme},[]),pme=React.useCallback((mme,bme,Sme)=>{var _me;const Cme=[...$P];Cme[mme]={...Cme[mme],[bme]:(Sme==null||(_me=Sme.target)===null||_me===void 0?void 0:_me.value)||""},console.log("handleInputChange setRows"),ome(Cme),rme({rowIndex:mme,identifier:bme,value:cme(Cme[mme])})},[$P,sme,cme,$_]),gme=mme=>{const bme=[...$P];bme.splice(mme,1),console.log("handleDeleteRow setRows"),ome(bme)},yme=()=>{console.log("addRow setRows"),ome([...$P,{}])};return React.useEffect(()=>{console.log("rows changed rows",JSON.stringify(eme.current)),console.log("rows changed value",JSON.stringify(x_)),!lodashExports.isEqual(eme.current,x_)&&(console.log("noreq"),typeof $_=="function"&&$_(eme.current))},[$P]),React.useEffect(()=>{nme&&nme.identifier&&sme(nme.identifier,nme.value,nme.rowIndex)},[nme]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"fw-full fmin-h-20 foverflow-x-auto",children:$P.map((mme,bme)=>jsxRuntimeExports.jsxs("div",{className:"fborder-b finline-flex fflex-wrap fmin-w-full",style:{width:"max-content"},children:[React.Children.map(kh,(Sme,_me)=>{var Cme;const Eme=(Sme==null||(Cme=Sme.props)===null||Cme===void 0?void 0:Cme.__id)||_me;return(mme==null?void 0:mme[Eme])===void 0&&(mme[Eme]=""),jsxRuntimeExports.jsx(TableCol,{width:100,children:React.cloneElement(Sme,{key:"row_".concat(bme,"_child_").concat(_me),subTable:!0,subTableIndex:bme,value:mme[Eme]||"",onChange:Tme=>pme(bme,Eme,Tme)})},"row_".concat(bme,"_col_").concat(_me))}),jsxRuntimeExports.jsx(TableAction,{subTable:!0,subTableIndex:bme,label:"操作",children:jsxRuntimeExports.jsx(RefIcon$3,{className:"fcursor-pointer",onClick:()=>gme(bme)})},"row_".concat(bme,"_action"))]},bme))}),jsxRuntimeExports.jsx(Button$1,{onClick:yme,children:"新增行"})]})},OptionSetter=Ff=>jsxRuntimeExports.jsx("div",{children:"sdfsdfsdf"});function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$3(Ff,kh){return Ff===kh||Ff!==Ff&&kh!==kh}var eq_1=eq$3,eq$2=eq_1;function assocIndexOf$4(Ff,kh){for(var x_=Ff.length;x_--;)if(eq$2(Ff[x_][0],kh))return x_;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(Ff){var kh=this.__data__,x_=assocIndexOf$3(kh,Ff);if(x_<0)return!1;var $_=kh.length-1;return x_==$_?kh.pop():splice.call(kh,x_,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(Ff){var kh=this.__data__,x_=assocIndexOf$2(kh,Ff);return x_<0?void 0:kh[x_][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(Ff){return assocIndexOf$1(this.__data__,Ff)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(Ff,kh){var x_=this.__data__,$_=assocIndexOf(x_,Ff);return $_<0?(++this.size,x_.push([Ff,kh])):x_[$_][1]=kh,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.clear();++kh<x_;){var $_=Ff[kh];this.set($_[0],$_[1])}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype.delete=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(Ff){var kh=this.__data__,x_=kh.delete(Ff);return this.size=kh.size,x_}var _stackDelete=stackDelete$1;function stackGet$1(Ff){return this.__data__.get(Ff)}var _stackGet=stackGet$1;function stackHas$1(Ff){return this.__data__.has(Ff)}var _stackHas=stackHas$1;function isObject$2(Ff){var kh=typeof Ff;return Ff!=null&&(kh=="object"||kh=="function")}var isObject_1=isObject$2,baseGetTag$3=_baseGetTag,isObject$1=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(Ff){if(!isObject$1(Ff))return!1;var kh=baseGetTag$3(Ff);return kh==funcTag$1||kh==genTag||kh==asyncTag||kh==proxyTag}var isFunction_1=isFunction$2,root$6=_root,coreJsData$1=root$6["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var Ff=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return Ff?"Symbol(src)_1."+Ff:""}();function isMasked$1(Ff){return!!maskSrcKey&&maskSrcKey in Ff}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(Ff){if(Ff!=null){try{return funcToString$1.call(Ff)}catch{}try{return Ff+""}catch{}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$9=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$8=objectProto$9.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$8).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(Ff){if(!isObject(Ff)||isMasked(Ff))return!1;var kh=isFunction$1(Ff)?reIsNative:reIsHostCtor;return kh.test(toSource$1(Ff))}var _baseIsNative=baseIsNative$1;function getValue$1(Ff,kh){return Ff==null?void 0:Ff[kh]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$6(Ff,kh){var x_=getValue(Ff,kh);return baseIsNative(x_)?x_:void 0}var _getNative=getNative$6,getNative$5=_getNative,root$5=_root,Map$4=getNative$5(root$5,"Map"),_Map=Map$4,getNative$4=_getNative,nativeCreate$4=getNative$4(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(Ff){var kh=this.has(Ff)&&delete this.__data__[Ff];return this.size-=kh?1:0,kh}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function hashGet$1(Ff){var kh=this.__data__;if(nativeCreate$2){var x_=kh[Ff];return x_===HASH_UNDEFINED$2?void 0:x_}return hasOwnProperty$7.call(kh,Ff)?kh[Ff]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashHas$1(Ff){var kh=this.__data__;return nativeCreate$1?kh[Ff]!==void 0:hasOwnProperty$6.call(kh,Ff)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(Ff,kh){var x_=this.__data__;return this.size+=this.has(Ff)?0:1,x_[Ff]=nativeCreate&&kh===void 0?HASH_UNDEFINED$1:kh,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.clear();++kh<x_;){var $_=Ff[kh];this.set($_[0],$_[1])}}Hash$1.prototype.clear=hashClear;Hash$1.prototype.delete=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1,Hash=_Hash,ListCache$2=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$2),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(Ff){var kh=typeof Ff;return kh=="string"||kh=="number"||kh=="symbol"||kh=="boolean"?Ff!=="__proto__":Ff===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(Ff,kh){var x_=Ff.__data__;return isKeyable(kh)?x_[typeof kh=="string"?"string":"hash"]:x_.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(Ff){var kh=getMapData$3(this,Ff).delete(Ff);return this.size-=kh?1:0,kh}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(Ff){return getMapData$2(this,Ff).get(Ff)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(Ff){return getMapData$1(this,Ff).has(Ff)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(Ff,kh){var x_=getMapData(this,Ff),$_=x_.size;return x_.set(Ff,kh),this.size+=x_.size==$_?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$2(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.clear();++kh<x_;){var $_=Ff[kh];this.set($_[0],$_[1])}}MapCache$2.prototype.clear=mapCacheClear;MapCache$2.prototype.delete=mapCacheDelete;MapCache$2.prototype.get=mapCacheGet;MapCache$2.prototype.has=mapCacheHas;MapCache$2.prototype.set=mapCacheSet;var _MapCache=MapCache$2,ListCache$1=_ListCache,Map$2=_Map,MapCache$1=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(Ff,kh){var x_=this.__data__;if(x_ instanceof ListCache$1){var $_=x_.__data__;if(!Map$2||$_.length<LARGE_ARRAY_SIZE-1)return $_.push([Ff,kh]),this.size=++x_.size,this;x_=this.__data__=new MapCache$1($_)}return x_.set(Ff,kh),this.size=x_.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$1(Ff){var kh=this.__data__=new ListCache(Ff);this.size=kh.size}Stack$1.prototype.clear=stackClear;Stack$1.prototype.delete=stackDelete;Stack$1.prototype.get=stackGet;Stack$1.prototype.has=stackHas;Stack$1.prototype.set=stackSet;var _Stack=Stack$1,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(Ff){return this.__data__.set(Ff,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(Ff){return this.__data__.has(Ff)}var _setCacheHas=setCacheHas$1,MapCache=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.__data__=new MapCache;++kh<x_;)this.add(Ff[kh])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd;SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(Ff,kh){for(var x_=-1,$_=Ff==null?0:Ff.length;++x_<$_;)if(kh(Ff[x_],x_,Ff))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(Ff,kh){return Ff.has(kh)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays$2(Ff,kh,x_,$_,B_,$P){var zP=x_&COMPARE_PARTIAL_FLAG$3,eme=Ff.length,tme=kh.length;if(eme!=tme&&!(zP&&tme>eme))return!1;var nme=$P.get(Ff),rme=$P.get(kh);if(nme&&rme)return nme==kh&&rme==Ff;var ame=-1,ome=!0,ime=x_&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for($P.set(Ff,kh),$P.set(kh,Ff);++ame<eme;){var cme=Ff[ame],ume=kh[ame];if($_)var sme=zP?$_(ume,cme,ame,kh,Ff,$P):$_(cme,ume,ame,Ff,kh,$P);if(sme!==void 0){if(sme)continue;ome=!1;break}if(ime){if(!arraySome(kh,function(fme,lme){if(!cacheHas(ime,lme)&&(cme===fme||B_(cme,fme,x_,$_,$P)))return ime.push(lme)})){ome=!1;break}}else if(!(cme===ume||B_(cme,ume,x_,$_,$P))){ome=!1;break}}return $P.delete(Ff),$P.delete(kh),ome}var _equalArrays=equalArrays$2,root$4=_root,Uint8Array$2=root$4.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(Ff){var kh=-1,x_=Array(Ff.size);return Ff.forEach(function($_,B_){x_[++kh]=[B_,$_]}),x_}var _mapToArray=mapToArray$1;function setToArray$1(Ff){var kh=-1,x_=Array(Ff.size);return Ff.forEach(function($_){x_[++kh]=$_}),x_}var _setToArray=setToArray$1,Symbol$1=_Symbol,Uint8Array$1=_Uint8Array,eq$1=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag$1(Ff,kh,x_,$_,B_,$P,zP){switch(x_){case dataViewTag$2:if(Ff.byteLength!=kh.byteLength||Ff.byteOffset!=kh.byteOffset)return!1;Ff=Ff.buffer,kh=kh.buffer;case arrayBufferTag$1:return!(Ff.byteLength!=kh.byteLength||!$P(new Uint8Array$1(Ff),new Uint8Array$1(kh)));case boolTag$1:case dateTag$1:case numberTag$1:return eq$1(+Ff,+kh);case errorTag$1:return Ff.name==kh.name&&Ff.message==kh.message;case regexpTag$1:case stringTag$1:return Ff==kh+"";case mapTag$2:var eme=mapToArray;case setTag$2:var tme=$_&COMPARE_PARTIAL_FLAG$2;if(eme||(eme=setToArray),Ff.size!=kh.size&&!tme)return!1;var nme=zP.get(Ff);if(nme)return nme==kh;$_|=COMPARE_UNORDERED_FLAG,zP.set(Ff,kh);var rme=equalArrays$1(eme(Ff),eme(kh),$_,B_,$P,zP);return zP.delete(Ff),rme;case symbolTag:if(symbolValueOf)return symbolValueOf.call(Ff)==symbolValueOf.call(kh)}return!1}var _equalByTag=equalByTag$1;function arrayPush$1(Ff,kh){for(var x_=-1,$_=kh.length,B_=Ff.length;++x_<$_;)Ff[B_+x_]=kh[x_];return Ff}var _arrayPush=arrayPush$1,arrayPush=_arrayPush,isArray$2=isArray_1;function baseGetAllKeys$1(Ff,kh,x_){var $_=kh(Ff);return isArray$2(Ff)?$_:arrayPush($_,x_(Ff))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(Ff,kh){for(var x_=-1,$_=Ff==null?0:Ff.length,B_=0,$P=[];++x_<$_;){var zP=Ff[x_];kh(zP,x_,Ff)&&($P[B_++]=zP)}return $P}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter=_arrayFilter,stubArray=stubArray_1,objectProto$6=Object.prototype,propertyIsEnumerable$1=objectProto$6.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?function(Ff){return Ff==null?[]:(Ff=Object(Ff),arrayFilter(nativeGetSymbols(Ff),function(kh){return propertyIsEnumerable$1.call(Ff,kh)}))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(Ff,kh){for(var x_=-1,$_=Array(Ff);++x_<Ff;)$_[x_]=kh(x_);return $_}var _baseTimes=baseTimes$1,baseGetTag$2=_baseGetTag,isObjectLike$3=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(Ff){return isObjectLike$3(Ff)&&baseGetTag$2(Ff)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$2=isObjectLike_1,objectProto$5=Object.prototype,hasOwnProperty$5=objectProto$5.hasOwnProperty,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,isArguments$1=baseIsArguments(function(){return arguments}())?baseIsArguments:function(Ff){return isObjectLike$2(Ff)&&hasOwnProperty$5.call(Ff,"callee")&&!propertyIsEnumerable.call(Ff,"callee")},isArguments_1=isArguments$1,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$2.exports;(function(Ff,kh){var x_=_root,$_=stubFalse_1,B_=kh&&!kh.nodeType&&kh,$P=B_&&!0&&Ff&&!Ff.nodeType&&Ff,zP=$P&&$P.exports===B_,eme=zP?x_.Buffer:void 0,tme=eme?eme.isBuffer:void 0,nme=tme||$_;Ff.exports=nme})(isBuffer$2,isBuffer$2.exports);var isBufferExports=isBuffer$2.exports,MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$1(Ff,kh){var x_=typeof Ff;return kh=kh??MAX_SAFE_INTEGER$1,!!kh&&(x_=="number"||x_!="symbol"&&reIsUint.test(Ff))&&Ff>-1&&Ff%1==0&&Ff<kh}var _isIndex=isIndex$1,MAX_SAFE_INTEGER=9007199254740991;function isLength$2(Ff){return typeof Ff=="number"&&Ff>-1&&Ff%1==0&&Ff<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$1=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$1="[object Map]",numberTag="[object Number]",objectTag$2="[object Object]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$1]=typedArrayTags[numberTag]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag]=typedArrayTags[setTag$1]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray$1(Ff){return isObjectLike$1(Ff)&&isLength$1(Ff.length)&&!!typedArrayTags[baseGetTag$1(Ff)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(Ff){return function(kh){return Ff(kh)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};_nodeUtil.exports;(function(Ff,kh){var x_=_freeGlobal,$_=kh&&!kh.nodeType&&kh,B_=$_&&!0&&Ff&&!Ff.nodeType&&Ff,$P=B_&&B_.exports===$_,zP=$P&&x_.process,eme=function(){try{var tme=B_&&B_.require&&B_.require("util").types;return tme||zP&&zP.binding&&zP.binding("util")}catch{}}();Ff.exports=eme})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments=isArguments_1,isArray$1=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function arrayLikeKeys$1(Ff,kh){var x_=isArray$1(Ff),$_=!x_&&isArguments(Ff),B_=!x_&&!$_&&isBuffer$1(Ff),$P=!x_&&!$_&&!B_&&isTypedArray$1(Ff),zP=x_||$_||B_||$P,eme=zP?baseTimes(Ff.length,String):[],tme=eme.length;for(var nme in Ff)(kh||hasOwnProperty$4.call(Ff,nme))&&!(zP&&(nme=="length"||B_&&(nme=="offset"||nme=="parent")||$P&&(nme=="buffer"||nme=="byteLength"||nme=="byteOffset")||isIndex(nme,tme)))&&eme.push(nme);return eme}var _arrayLikeKeys=arrayLikeKeys$1,objectProto$3=Object.prototype;function isPrototype$1(Ff){var kh=Ff&&Ff.constructor,x_=typeof kh=="function"&&kh.prototype||objectProto$3;return Ff===x_}var _isPrototype=isPrototype$1;function overArg$1(Ff,kh){return function(x_){return Ff(kh(x_))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype=_isPrototype,nativeKeys=_nativeKeys,objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function baseKeys$1(Ff){if(!isPrototype(Ff))return nativeKeys(Ff);var kh=[];for(var x_ in Object(Ff))hasOwnProperty$3.call(Ff,x_)&&x_!="constructor"&&kh.push(x_);return kh}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength=isLength_1;function isArrayLike$1(Ff){return Ff!=null&&isLength(Ff.length)&&!isFunction(Ff)}var isArrayLike_1=isArrayLike$1,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike=isArrayLike_1;function keys$1(Ff){return isArrayLike(Ff)?arrayLikeKeys(Ff):baseKeys(Ff)}var keys_1=keys$1,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys=keys_1;function getAllKeys$1(Ff){return baseGetAllKeys(Ff,keys,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function equalObjects$1(Ff,kh,x_,$_,B_,$P){var zP=x_&COMPARE_PARTIAL_FLAG$1,eme=getAllKeys(Ff),tme=eme.length,nme=getAllKeys(kh),rme=nme.length;if(tme!=rme&&!zP)return!1;for(var ame=tme;ame--;){var ome=eme[ame];if(!(zP?ome in kh:hasOwnProperty$2.call(kh,ome)))return!1}var ime=$P.get(Ff),cme=$P.get(kh);if(ime&&cme)return ime==kh&&cme==Ff;var ume=!0;$P.set(Ff,kh),$P.set(kh,Ff);for(var sme=zP;++ame<tme;){ome=eme[ame];var fme=Ff[ome],lme=kh[ome];if($_)var hme=zP?$_(lme,fme,ome,kh,Ff,$P):$_(fme,lme,ome,Ff,kh,$P);if(!(hme===void 0?fme===lme||B_(fme,lme,x_,$_,$P):hme)){ume=!1;break}sme||(sme=ome=="constructor")}if(ume&&!sme){var pme=Ff.constructor,gme=kh.constructor;pme!=gme&&"constructor"in Ff&&"constructor"in kh&&!(typeof pme=="function"&&pme instanceof pme&&typeof gme=="function"&&gme instanceof gme)&&(ume=!1)}return $P.delete(Ff),$P.delete(kh),ume}var _equalObjects=equalObjects$1,getNative$3=_getNative,root$3=_root,DataView$1=getNative$3(root$3,"DataView"),_DataView=DataView$1,getNative$2=_getNative,root$2=_root,Promise$2=getNative$2(root$2,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$1=_root,Set$2=getNative$1(root$1,"Set"),_Set=Set$2,getNative=_getNative,root=_root,WeakMap$2=getNative(root,"WeakMap"),_WeakMap=WeakMap$2,DataView=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag=_baseGetTag,toSource=_toSource,mapTag="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$1=baseGetTag;(DataView&&getTag$1(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag$1(new Map$1)!=mapTag||Promise$1&&getTag$1(Promise$1.resolve())!=promiseTag||Set$1&&getTag$1(new Set$1)!=setTag||WeakMap$1&&getTag$1(new WeakMap$1)!=weakMapTag)&&(getTag$1=function(Ff){var kh=baseGetTag(Ff),x_=kh==objectTag$1?Ff.constructor:void 0,$_=x_?toSource(x_):"";if($_)switch($_){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return kh});var _getTag=getTag$1,Stack=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray=isArray_1,isBuffer=isBufferExports,isTypedArray=isTypedArray_1,COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty;function baseIsEqualDeep$1(Ff,kh,x_,$_,B_,$P){var zP=isArray(Ff),eme=isArray(kh),tme=zP?arrayTag:getTag(Ff),nme=eme?arrayTag:getTag(kh);tme=tme==argsTag?objectTag:tme,nme=nme==argsTag?objectTag:nme;var rme=tme==objectTag,ame=nme==objectTag,ome=tme==nme;if(ome&&isBuffer(Ff)){if(!isBuffer(kh))return!1;zP=!0,rme=!1}if(ome&&!rme)return $P||($P=new Stack),zP||isTypedArray(Ff)?equalArrays(Ff,kh,x_,$_,B_,$P):equalByTag(Ff,kh,tme,x_,$_,B_,$P);if(!(x_&COMPARE_PARTIAL_FLAG)){var ime=rme&&hasOwnProperty$1.call(Ff,"__wrapped__"),cme=ame&&hasOwnProperty$1.call(kh,"__wrapped__");if(ime||cme){var ume=ime?Ff.value():Ff,sme=cme?kh.value():kh;return $P||($P=new Stack),B_(ume,sme,x_,$_,$P)}}return ome?($P||($P=new Stack),equalObjects(Ff,kh,x_,$_,B_,$P)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike=isObjectLike_1;function baseIsEqual$1(Ff,kh,x_,$_,B_){return Ff===kh?!0:Ff==null||kh==null||!isObjectLike(Ff)&&!isObjectLike(kh)?Ff!==Ff&&kh!==kh:baseIsEqualDeep(Ff,kh,x_,$_,baseIsEqual$1,B_)}var _baseIsEqual=baseIsEqual$1,baseIsEqual=_baseIsEqual;function isEqual(Ff,kh){return baseIsEqual(Ff,kh)}var isEqual_1$1=isEqual,quill={exports:{}};/*!
397
+ `,useInsertStyles=function(){var kh=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iconStyles,x_=React.useContext(IconContext),$_=x_.csp;React.useEffect(function(){updateCSS(kh,"@ant-design-icons",{prepend:!0,csp:$_})},[])},_excluded$1=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors(Ff){var kh=Ff.primaryColor,x_=Ff.secondaryColor;twoToneColorPalette.primaryColor=kh,twoToneColorPalette.secondaryColor=x_||getSecondaryColor(kh),twoToneColorPalette.calculated=!!x_}function getTwoToneColors(){return _objectSpread2({},twoToneColorPalette)}var IconBase=function(kh){var x_=kh.icon,$_=kh.className,B_=kh.onClick,$P=kh.style,zP=kh.primaryColor,eme=kh.secondaryColor,tme=_objectWithoutProperties(kh,_excluded$1),nme=twoToneColorPalette;if(zP&&(nme={primaryColor:zP,secondaryColor:eme||getSecondaryColor(zP)}),useInsertStyles(),warning(isIconDefinition(x_),"icon should be icon definiton, but got ".concat(x_)),!isIconDefinition(x_))return null;var rme=x_;return rme&&typeof rme.icon=="function"&&(rme=_objectSpread2(_objectSpread2({},rme),{},{icon:rme.icon(nme.primaryColor,nme.secondaryColor)})),generate(rme.icon,"svg-".concat(rme.name),_objectSpread2({className:$_,onClick:B_,style:$P,"data-icon":rme.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},tme))};IconBase.displayName="IconReact";IconBase.getTwoToneColors=getTwoToneColors;IconBase.setTwoToneColors=setTwoToneColors;function setTwoToneColor(Ff){var kh=normalizeTwoToneColors(Ff),x_=_slicedToArray(kh,2),$_=x_[0],B_=x_[1];return IconBase.setTwoToneColors({primaryColor:$_,secondaryColor:B_})}function getTwoToneColor(){var Ff=IconBase.getTwoToneColors();return Ff.calculated?[Ff.primaryColor,Ff.secondaryColor]:Ff.primaryColor}var _excluded=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor("#1890ff");var Icon=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.className,$_=Ff.icon,B_=Ff.spin,$P=Ff.rotate,zP=Ff.tabIndex,eme=Ff.onClick,tme=Ff.twoToneColor,nme=_objectWithoutProperties(Ff,_excluded),rme=React__namespace.useContext(IconContext),ame=rme.prefixCls,ome=ame===void 0?"anticon":ame,ime=rme.rootClassName,cme=classNames(ime,ome,_defineProperty(_defineProperty({},"".concat(ome,"-").concat($_.name),!!$_.name),"".concat(ome,"-spin"),!!B_||$_.name==="loading"),x_),ume=zP;ume===void 0&&eme&&(ume=-1);var sme=$P?{msTransform:"rotate(".concat($P,"deg)"),transform:"rotate(".concat($P,"deg)")}:void 0,fme=normalizeTwoToneColors(tme),lme=_slicedToArray(fme,2),hme=lme[0],pme=lme[1];return React__namespace.createElement("span",_objectSpread2(_objectSpread2({role:"img","aria-label":$_.name},nme),{},{ref:kh,tabIndex:ume,onClick:eme,className:cme}),React__namespace.createElement(IconBase,{icon:$_,primaryColor:hme,secondaryColor:pme,style:sme}))});Icon.displayName="AntdIcon";Icon.getTwoToneColor=getTwoToneColor;Icon.setTwoToneColor=setTwoToneColor;var DeleteOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:DeleteOutlined$2}))},RefIcon$3=React__namespace.forwardRef(DeleteOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$3.displayName="DeleteOutlined");var EyeOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:EyeOutlined$2}))},RefIcon$2=React__namespace.forwardRef(EyeOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$2.displayName="EyeOutlined");var PlusOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:PlusOutlined$1}))},RefIcon$1=React__namespace.forwardRef(PlusOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$1.displayName="PlusOutlined");var UploadOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},UploadOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:UploadOutlined$1}))},RefIcon=React__namespace.forwardRef(UploadOutlined);process.env.NODE_ENV!=="production"&&(RefIcon.displayName="UploadOutlined");function handleTree(Ff){let kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"id",x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"title",$_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parentId",B_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"children",$P=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,zP=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0;return constructTree(Ff,kh,x_,$_,B_,$P,eme=>({value:eme[kh],title:eme[x_],key:eme[kh],disabled:eme[kh]===zP}))}function constructTree(Ff,kh,x_,$_,B_,$P,zP){if(!Array.isArray(Ff)||Ff.length===0)return[];const eme=Ff.map(tme=>({...tme,...zP(tme)}));return eme.filter(tme=>{const nme=eme.filter(rme=>tme[kh]===rme[$_]);return tme[B_]=nme.length>0?nme:[],tme[$_]===$P})}const TreeSelect=Ff=>{let{request:kh,title:x_,disabledValue:$_,callError:B_,...$P}=Ff;const[zP,eme]=React.useState(!1),[tme,nme]=React.useState([]);React.useEffect(()=>{rme()},[]);const rme=async()=>{if(kh&&typeof kh=="function"){var ame;const ome=await kh();if(ome.code>0){B_&&typeof B_=="function"&&B_(ome.message);return}let ime=handleTree(((ame=ome.data)===null||ame===void 0?void 0:ame.list)||ome.data||[],"id",x_||"title",$P.parentId||"parentId","children",0,$_);ime=[{value:0,title:"根节点",children:ime}],$P.treeData=ime,nme(ime)}$P.treeData&&nme($P.treeData),eme(!0)};return jsxRuntimeExports.jsx(BaseWrapper,{...$P,children:zP&&jsxRuntimeExports.jsx(TreeSelect$1,{...$P,treeData:tme,treeDefaultExpandAll:!0,style:{width:"100%"}})})},Select=Ff=>{let{request:kh,option_label:x_="label",option_value:$_="id",disabledValue:B_,callError:$P,options:zP,addWrapper:eme=!0,...tme}=Ff;const[nme,rme]=React.useState([]);React.useEffect(()=>{ame()},[]);const ame=async()=>{if(kh&&typeof kh=="function"){var ome;const ime=await kh();if(ime.code>0){$P&&typeof $P=="function"&&$P(ime.message);return}let cme=((ome=ime.data)===null||ome===void 0?void 0:ome.list)||ime.data;Array.isArray(cme)&&cme.length>0&&rme(cme.map(ume=>({label:ume[x_],value:ume[$_]})))}zP&&zP.length>0&&rme(zP)};return eme?jsxRuntimeExports.jsx(BaseWrapper,{...tme,children:jsxRuntimeExports.jsx(Select$1,{...tme,options:nme,style:{width:"100%"}})}):jsxRuntimeExports.jsx(Select$1,{...tme,options:nme,style:{width:"100%"}})},SingleSelect=Ff=>{let{...kh}=Ff;return jsxRuntimeExports.jsx(Select,{...kh,mode:"single"})},MultipleSelect=Ff=>{let{onChange:kh,value:x_,...$_}=Ff;const[B_,$P]=React.useState([]);return React.useEffect(()=>{if(x_&&typeof x_=="string")try{x_=JSON.parse(x_),kh(x_)}catch{}x_&&$P(x_)},[x_]),jsxRuntimeExports.jsx(Select,{...$_,onChange:kh,mode:"multiple",value:B_})},WithSingleSelect=Ff=>{let{onChange:kh,value:x_,...$_}=Ff;const[B_,$P]=React.useState("");React.useEffect(()=>{if(x_&&typeof x_=="string")try{x_=JSON.parse(x_),kh(x_)}catch{}x_&&$P(x_)},[x_]);const zP=(eme,tme)=>{kh&&typeof kh=="function"&&kh(tme),$P(tme.label)};return jsxRuntimeExports.jsx(Select,{...$_,onChange:zP,value:B_,mode:"single"})},WithMultipleSelect=Ff=>{let{onChange:kh,value:x_,...$_}=Ff;const[B_,$P]=React.useState([]);React.useEffect(()=>{if(x_&&typeof x_=="string")try{x_=JSON.parse(x_),kh(x_)}catch{}Array.isArray(x_)&&$P(x_)},[x_]);const zP=(eme,tme)=>{kh&&typeof kh=="function"&&kh(tme),tme.map(nme=>nme.label),$P(tme)};return jsxRuntimeExports.jsx(Select,{...$_,onChange:zP,value:B_,mode:"multiple"})},SearchSelect=Ff=>{let{addWrapper:kh=!0,value:x_,type:$_,defaultValue:B_,onChange:$P,option_label:zP,option_value:eme,option_search:tme,options:nme,request:rme,requestParams:ame,callError:ome,...ime}=Ff;const[cme,ume]=React.useState([]),[sme,fme]=React.useState(!1);React.useEffect(()=>{lme(ame)},[ame]);const lme=async yme=>{let mme=null;if(rme&&typeof rme=="function"){const bme=await pme(yme);bme&&Array.isArray(bme)&&(mme=x_?bme.find(Sme=>Sme.value==x_):null)}nme&&nme.length>0&&(mme=x_?nme.find(bme=>bme.value==x_):null,ume(nme)),mme&&$P(mme)},hme=lodashExports.debounce(async yme=>{const mme={...ame};mme[tme]=yme,await pme(mme)},200),pme=async yme=>{try{var mme;fme(!0);const bme=await rme(yme);if(bme.code>0){ome&&typeof ome=="function"&&ome(bme.message);return}let Sme=((mme=bme.data)===null||mme===void 0?void 0:mme.list)||bme.data;return Array.isArray(Sme)?(Sme=Sme.map(_me=>({..._me,label:_me[zP],value:_me[eme]})),ume(Sme)):ume([]),Sme}catch(bme){console.error("fetchOptions",bme)}finally{fme(!1)}},gme=yme=>{const mme=cme.find(bme=>bme.value===yme);$P(mme)};return kh?jsxRuntimeExports.jsx(BaseWrapper,{...ime,children:jsxRuntimeExports.jsx(Select$1,{notFoundContent:sme?jsxRuntimeExports.jsx(Spin,{size:"small"}):null,value:x_,...ime,disabled:!1,filterOption:!1,showSearch:!!(rme&&tme),onSearch:rme&&tme?hme:null,onChange:gme,style:{width:"100%"},mode:"single",children:cme.map((yme,mme)=>jsxRuntimeExports.jsx(Select$1.Option,{value:yme.value,disabled:!1,children:yme.label},mme))})}):jsxRuntimeExports.jsx(Select$1,{notFoundContent:sme?jsxRuntimeExports.jsx(Spin,{size:"small"}):null,value:x_,...ime,disabled:!1,filterOption:!1,showSearch:!!(rme&&tme),onSearch:rme&&tme?hme:null,onChange:gme,style:{width:"100%"},mode:"single",children:cme.map((yme,mme)=>jsxRuntimeExports.jsx(Select$1.Option,{value:yme.value,disabled:!1,children:yme.label},mme))})},Custom=React.forwardRef((Ff,kh)=>{let{value:x_,onChange:$_,...B_}=Ff;const $P=React.useRef(0),zP=()=>{$P.current++,$_($P.current)};return jsxRuntimeExports.jsxs(BaseWrapper,{...B_,children:[jsxRuntimeExports.jsxs("div",{ref:kh,children:["form-set-value:",x_]}),jsxRuntimeExports.jsx(Button$1,{onClick:zP,children:"test"})]})}),evalFormula=formula=>{let result="";try{result=eval(formula.join(""))}catch(Ff){console.error("formula error",Ff)}return result.toString()},LayoutFormRow=Ff=>{let{children:kh,layout:x_}=Ff;x_=x_||"1";const $_=zP=>{const eme=zP.split(",").map(Number),tme=24;return eme.map(nme=>nme/eme.reduce((rme,ame)=>rme+ame)*tme)},B_=React.useMemo(()=>$_(x_),[x_]);console.log("colSpans",B_);const $P=React.useMemo(()=>React.Children.toArray(kh).map((zP,eme)=>{const tme=zP.props,nme=(tme==null?void 0:tme.componentId)||(tme==null?void 0:tme.__id);return nme?(B_==null?void 0:B_[eme])&&jsxRuntimeExports.jsx(Col,{span:B_[eme],children:jsxRuntimeExports.jsx(Form.Item,{style:{marginBottom:0},label:"",name:nme,rules:[{required:tme.isRequired,message:"".concat(tme.title,"不能为空!")}],children:zP},"".concat(nme,"-form-item"))},eme):(B_==null?void 0:B_[eme])&&jsxRuntimeExports.jsx(Col,{span:B_[eme],children:zP},eme)}),[kh,B_]);return jsxRuntimeExports.jsx(Row,{gutter:24,children:$P})},FormGroupTitle=Ff=>{let{title:kh}=Ff;return kh?jsxRuntimeExports.jsx("div",{className:"fh-11 fflex fitems-center ftext-lg ffont-medium ",children:jsxRuntimeExports.jsx("span",{className:"fborder-l-4 fborder-slate-300 fpl-2 ",children:kh})}):null};function batchElements(Ff,kh){const x_=[];let $_=[];const B_=(zP,eme)=>{const tme=zP-eme.length;eme.push(...new Array(tme).fill(React.createElement("div")))};for(const zP of Ff){var $P;const{_componentName:eme}=(zP==null?void 0:zP.props)||{},tme=(($P=zP.type)===null||$P===void 0?void 0:$P.displayName)||eme;tme&&tme.startsWith("Layout.")?($_.length>0&&(B_(kh,$_),x_.push($_),$_=[]),x_.push([zP])):($_.push(zP),$_.length===kh&&(x_.push($_),$_=[]))}return $_.length>0&&(B_(kh,$_),x_.push($_)),x_}const FormContainer=React.forwardRef((Ff,kh)=>{let{cols:x_=1,children:$_}=Ff;const[B_]=Form.useForm(),[$P,zP]=React.useState(null),eme=React.useRef(null);React.useImperativeHandle(kh,()=>({formRef:B_,initializeFieldVisibility:nme}),[]),React.useEffect(()=>{tme(),zP(ume())},[$_,x_]);const tme=()=>{const sme=[];function fme(hme){var pme,gme,yme=((pme=hme.type)===null||pme===void 0?void 0:pme.displayName)||((gme=hme.props)===null||gme===void 0?void 0:gme._componentName);const{props:mme}=hme;yme&&yme.startsWith("Field.")&&sme.push(hme),mme!=null&&mme.children&&React.Children.toArray(mme==null?void 0:mme.children).forEach(Sme=>fme(Sme))}eme.current=new Map;const lme=React.Children.toArray($_);for(let hme=0;hme<lme.length;hme++){const pme=lme[hme];fme(pme)}sme.forEach(hme=>{const{componentId:pme,__id:gme,...yme}=hme==null?void 0:hme.props,mme=pme||gme;eme.current.set(mme,{children:lme.filter(bme=>{var Sme;return bme.props.withId===mme||((Sme=bme.props.withIds)===null||Sme===void 0?void 0:Sme.some(_me=>mme==_me||_me.startsWith(mme+".")))}),show:!0})}),console.log("dependencyMap",eme.current),nme()},nme=function(){let sme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const fme=B_.getFieldsValue();for(let lme of eme.current.keys())rme(lme,fme);sme&&zP(ume())},rme=(sme,fme)=>{let lme=!1;return eme.current.has(sme)&&eme.current.get(sme).children.forEach(pme=>{pme.props.withFunc&&typeof pme.props.withFunc=="function"&&(lme=ame(fme,pme)),pme.props.withFill&&ome(fme,pme)}),lme},ame=(sme,fme)=>{let lme=!1;const hme=fme.props.withFunc(sme),pme=fme.props.componentId||fme.props.__id;if(eme.current.has(pme)){const gme=eme.current.get(pme);gme.show!==hme&&(gme.show=hme,eme.current.set(pme,gme),lme=!0)}return lme},ome=async(sme,fme)=>{const lme=fme.props.withFill,hme=fme.props.withDataFetch;console.log("withFill",lme),console.log("fieldValues",sme),console.log("child",fme);let pme=[];if(lme!=null&&lme.withData&&(lme==null?void 0:lme.withData.length)>0&&hme&&typeof hme=="function")for(let yme=0;yme<(lme==null?void 0:lme.withData.length);yme++){const mme=lme==null?void 0:lme.withData[yme];let bme={};bme.tableName=mme.withTable.table_name,bme.filter={};for(let _me=0;_me<mme.withCondition.length;_me++){const{value:Cme,column:Eme}=mme.withCondition[_me];bme.filter[Eme.column_name]=ime(Cme.group_key,Cme.field_key,sme,pme)}const Sme=await hme(bme);Sme.code===0&&Sme.data.list&&pme.push({id:mme.id,data:Sme.data.list})}let gme;if(lme.value&&lme.value.length>0&&(gme=lme.value.map(yme=>{let mme="";const{insert:bme,attributes:Sme}=yme;return typeof bme!="string"?bme!=null&&bme.span&&Sme&&Sme.tagKey&&Sme.id&&(mme=ime(Sme.tagKey,Sme.id,sme,pme),Array.isArray(mme)?mme=JSON.stringify(mme):mme&&(mme='"'.concat(mme,'"'))):mme=bme,mme})),console.log("formula",gme),gme&&gme.length>0){const yme=fme.props.componentId||fme.props.__id;B_.setFieldValue(yme,evalFormula(gme))}},ime=(sme,fme,lme,hme)=>{let pme="";if(sme=="fieldsValue")if(fme.indexOf(".")>=0){const[yme,mme]=fme.split("."),bme=(lme==null?void 0:lme[yme])||[];Array.isArray(bme)?pme=bme.map(Sme=>(Sme==null?void 0:Sme[mme])||""):pme=(bme==null?void 0:bme[mme])||""}else pme=(lme==null?void 0:lme[fme])||"";else{let yme=hme.find(mme=>mme.id===sme);if(yme&&yme.data&&yme.data.length>0){var gme;pme=((gme=yme.data[0])===null||gme===void 0?void 0:gme[fme])||""}}return pme},cme=lodashExports.debounce((sme,fme)=>{const lme=B_.getFieldsValue();let hme=!1;sme.forEach(pme=>{pme.name&&pme.name.length>0&&(hme=rme(pme.name[0],lme))}),hme&&zP(ume())},200),ume=()=>{const sme=React.Children.toArray($_);return batchElements(sme.filter(lme=>{const hme=lme.props.componentId||lme.props.__id;return eme.current.has(hme)&&eme.current.get(hme).show}),x_).map((lme,hme)=>jsxRuntimeExports.jsx(Row,{gutter:[24,24],children:lme.map((pme,gme)=>{var yme;const{componentId:mme,__id:bme,_componentName:Sme,..._me}=pme.props,Cme=((yme=pme.type)===null||yme===void 0?void 0:yme.displayName)||Sme,Eme=mme||bme,Tme=Cme&&Cme.startsWith("Layout.");return jsxRuntimeExports.jsx(Col,{span:Tme?24:24/lme.length,style:{marginBottom:0},children:Tme?pme:jsxRuntimeExports.jsx(Form.Item,{style:{marginBottom:0},label:"",name:Eme,rules:[{required:_me.isRequired,message:"".concat(_me.title,"不能为空!")}],children:pme})},Eme||"col-".concat(gme))})},"row-".concat(hme)))};return jsxRuntimeExports.jsx(Form,{form:B_,className:"form-container fp-6 fw-full fh-full box-border overflow-auto",onFieldsChange:cme,children:$P})});function withWrap(Ff){return React.forwardRef((kh,x_)=>jsxRuntimeExports.jsx(Ff,{...kh,ref:x_,forwardedRef:x_}))}class FormContainerClass extends React.PureComponent{render(){const{forwardedRef:kh,...x_}=this.props;return jsxRuntimeExports.jsx(FormContainer,{...x_,ref:kh})}}const FormContainerWrapper=withWrap(Ff=>{let{forwardedRef:kh,...x_}=Ff;return jsxRuntimeExports.jsx(FormContainer,{...x_,ref:kh})}),CheckboxTree=Ff=>{let{request:kh,value:x_,onChange:$_,callError:B_,disabledValue:$P,addRoot:zP=!0,title:eme,...tme}=Ff;const[nme,rme]=React.useState(!1),[ame,ome]=React.useState([]);React.useEffect(()=>{ime()},[]),React.useEffect(()=>{if(console.log("CheckboxTree value ",x_),typeof x_=="string")try{x_=JSON.parse(x_),$_(x_)}catch{}Array.isArray(x_)&&fme(x_)},[x_]);const ime=async()=>{if(kh&&typeof kh=="function"){var Sme;const _me=await kh();if(_me.code>0){B_&&typeof B_=="function"&&B_(_me.message);return}let Cme=handleTree(((Sme=_me.data)===null||Sme===void 0?void 0:Sme.list)||_me.data||[],"id",eme||"title",(tme==null?void 0:tme.parentId)||"parentId","children",0,$P);zP&&(Cme=[{value:0,title:"根节点",children:Cme}]),tme.treeData=Cme,console.log("treeData",Cme),ome(Cme)}tme.treeData&&ome(tme.treeData),rme(!0)},[cme,ume]=React.useState([]),[sme,fme]=React.useState([]),[lme,hme]=React.useState([]),[pme,gme]=React.useState(!0),yme=Sme=>{console.log("onExpand",Sme),ume(Sme),gme(!1)},mme=Sme=>{console.log("onCheck",Sme),fme(Sme),$_(Sme)},bme=(Sme,_me)=>{console.log("onSelect",_me),hme(Sme)};return jsxRuntimeExports.jsx(BaseWrapper,{...tme,children:jsxRuntimeExports.jsx(Tree,{checkable:!0,onExpand:yme,onCheck:mme,onSelect:bme,expandedKeys:cme,autoExpandParent:pme,checkedKeys:sme,selectedKeys:lme,treeData:ame})})},Checkbox=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Checkbox$1,{...Ff})}),CheckboxGroup=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Checkbox$1.Group,{...Ff})}),RadioGroup=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Radio.Group,{...Ff})}),UploadFile=Ff=>{let{value:kh,maxCount:x_,onChange:$_,...B_}=Ff;React.useEffect(()=>{if(kh){if(typeof kh=="string")try{kh=JSON.parse(kh),$_(kh)}catch{}console.log("value",kh),Array.isArray(kh)&&zP(kh)}},[kh]),x_=x_||9;const[$P,zP]=React.useState([]),eme=tme=>{let{fileList:nme}=tme;console.log("newFileList",nme),nme=nme.map(rme=>(rme.status=="done"&&rme.response&&(rme.url=rme.response),rme)),$_(nme.map(rme=>({uid:rme.uid,name:rme.name,status:rme.status,url:rme.url||rme.response||"",error:rme.error}))),zP(nme)};return jsxRuntimeExports.jsx(BaseWrapper,{...B_,children:jsxRuntimeExports.jsx(Upload,{...B_,listType:"text",maxCount:x_,onChange:eme,fileList:$P,children:!(B_!=null&&B_.disabled)&&jsxRuntimeExports.jsxs("div",{className:" fmin-w-36 fgap-1 frounded fborder-gray-300 fborder hover:fborder-[#3e92f8] hover:ftext-[#3e92f8] fcursor-pointer fh-8 fflex fitems-center fbg-white fjustify-center ",children:[jsxRuntimeExports.jsx(RefIcon,{}),"点击上传文件"]})})})},UploadImage=Ff=>{let{maxCount:kh,value:x_,onChange:$_,...B_}=Ff;React.useEffect(()=>{if(x_){if(console.log("value",x_),typeof x_=="string")try{x_=JSON.parse(x_),$_(x_)}catch{}let pme=[];if(Array.isArray(x_))for(let gme=0;gme<x_.length;gme++){let yme=x_[gme];var hme=ime.current.find(mme=>mme.uid===yme.uid);!hme||(hme.version||0)<(yme.version||0)?pme.push(yme):pme.push(hme)}zP(pme)}},[x_]),kh=kh||9;const[$P,zP]=React.useState([]),[eme,tme]=React.useState(""),[nme,rme]=React.useState(0),[ame,ome]=React.useState(!1),ime=React.useRef([]),cme=hme=>new Promise((pme,gme)=>{const yme=new FileReader;yme.readAsDataURL(hme),yme.onload=()=>pme(yme.result),yme.onerror=mme=>gme(mme)}),ume=async(hme,pme)=>{!hme.url&&!hme.preview&&(hme.preview=await cme(hme.originFileObj)),tme(hme.url||hme.preview),rme(pme),ome(!0)},sme=async(hme,pme)=>{zP($P.filter((gme,yme)=>yme!==pme))},fme=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"fw-full fh-full fflex fflex-col fitems-center fjustify-center fborder fborder-dashed fcursor-pointer frounded",children:[jsxRuntimeExports.jsx(RefIcon$1,{}),jsxRuntimeExports.jsx("div",{className:"fmt-2",children:"点击上传"})]})}),lme=hme=>{let{fileList:pme}=hme,gme=[];for(let bme=0;bme<pme.length;bme++){var yme=pme[bme];yme.version=new Date().getTime();var mme=ime.current.find(Sme=>Sme.uid===yme.uid);console.log("oldfile",JSON.parse(JSON.stringify(mme||{}))),mme&&mme.status!="uploading"?gme.push(mme):(yme.status=="done"&&yme.response&&(yme.url=yme.response),gme.push(yme))}ime.current=gme,zP(gme),$_(gme.map(bme=>({uid:bme.uid,name:bme.name,status:bme.status,url:bme.url||bme.response||"",error:bme.error,version:bme.version||0})))};return jsxRuntimeExports.jsxs(BaseWrapper,{...B_,children:[jsxRuntimeExports.jsx("div",{className:"fflex fgap-3 fflex-wrap",children:jsxRuntimeExports.jsx(Upload,{...B_,itemRender:(hme,pme,gme)=>{console.log("file",pme);let yme=gme.findIndex(mme=>mme.uid===pme.uid);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"fgroup fw-full fh-full fbg-transparent fborder frounded fflex fitems-center fjustify-center foverflow-hidden fcursor-pointer frelative"+(pme.status=="error"?" fborder-red-500":""),children:[jsxRuntimeExports.jsxs("div",{className:" fhidden fabsolute fw-full fh-full fbg-gray-900 fbg-opacity-50 fitems-center fjustify-center fz-10 group-hover:fflex ftext-white ftext-lg fgap-2",children:[pme.status=="done"&&jsxRuntimeExports.jsx(RefIcon$2,{onClick:()=>{ume(pme,yme)},className:"hover:ftext-gray-200"}),jsxRuntimeExports.jsx(RefIcon$3,{onClick:()=>{sme(pme,yme)},className:"hover:ftext-gray-200"})]}),pme.status=="uploading"&&jsxRuntimeExports.jsx("div",{className:" fw-full fh-full fflex fitems-center fjustify-center fabsolute ftop-0 fleft-0 ",children:jsxRuntimeExports.jsx(Spin,{})}),jsxRuntimeExports.jsx("img",{src:pme.url||pme.thumbUrl,alt:"Example Image",class:"fmax-w-full fmax-h-full fobject-contain "})]},"file-".concat(pme.uid))})},listType:"picture-card",fileList:$P,maxCount:kh,onPreview:ume,onChange:lme,children:$P.length>=kh||B_!=null&&B_.disabled?null:fme})}),eme&&jsxRuntimeExports.jsx(Image$1.PreviewGroup,{preview:{visible:ame,current:nme,onVisibleChange:hme=>ome(hme),onChange:hme=>{rme(hme)}},children:$P.map((hme,pme)=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Image$1,{wrapperStyle:{display:"none"},src:hme.url})}))})]})},Switch=Ff=>{let{value:kh,...x_}=Ff;const[$_,B_]=React.useState(!1);return React.useEffect(()=>{let $P=!1;typeof kh=="boolean"?$P=kh:typeof kh=="string"?$P=kh=="1"||kh=="true":typeof kh=="number"&&($P=kh==1),B_($P),x_==null||x_.onChange($P)},[kh]),jsxRuntimeExports.jsx(BaseWrapper,{...x_,children:jsxRuntimeExports.jsx(Switch$1,{...x_,value:$_})})};var zhCn={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_(dayjs_minExports)})(commonjsGlobal,function(x_){function $_(zP){return zP&&typeof zP=="object"&&"default"in zP?zP:{default:zP}}var B_=$_(x_),$P={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(zP,eme){return eme==="W"?zP+"周":zP+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(zP,eme){var tme=100*zP+eme;return tme<600?"凌晨":tme<900?"早上":tme<1100?"上午":tme<1300?"中午":tme<1800?"下午":"晚上"}};return B_.default.locale($P,null,!0),$P})})(zhCn);var locale$2={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};const locale$1={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},locale={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},locale$2),timePickerLocale:Object.assign({},locale$1)};locale.lang.ok="确定";var updateLocale$1={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){return function(x_,$_,B_){B_.updateLocale=function($P,zP){var eme=B_.Ls[$P];if(eme)return(zP?Object.keys(zP):[]).forEach(function(tme){eme[tme]=zP[tme]}),eme}}})})(updateLocale$1);var updateLocaleExports=updateLocale$1.exports;const updateLocale=getDefaultExportFromCjs(updateLocaleExports);dayjs.extend(updateLocale);dayjs.updateLocale("zh-cn",{weekStart:0});const DatePicker=Ff=>{let{datetype:kh,value:x_,onChange:$_,...B_}=Ff;kh=kh||"date";const[$P,zP]=React.useState(B_==null?void 0:B_.picker),[eme,tme]=React.useState(B_==null?void 0:B_.format),[nme,rme]=React.useState(null),[ame,ome]=React.useState(!1),[ime,cme]=React.useState(!1);React.useEffect(()=>{if(x_){const sme=dayjs(x_);rme(sme)}},[x_,eme,$P]);const ume=(sme,fme)=>{$_(fme)};return React.useEffect(()=>{switch(zP("date"),ome(!1),kh){case"date":zP("date"),tme("YYYY-MM-DD"),cme(!1);break;case"datetime":ome(!0),zP("datetime"),tme("YYYY-MM-DD HH:mm:ss"),cme(!0);break;case"month":zP("month"),cme(!1);break;case"year":zP("year"),cme(!1);break}},[kh]),jsxRuntimeExports.jsx(BaseWrapper,{...B_,children:jsxRuntimeExports.jsx(DatePicker$1,{locale,...B_,picker:$P,format:eme,style:{width:"100%"},onChange:ume,value:nme,showTime:ame,needConfirm:ime})})},TableCol=Ff=>{let{children:kh,width:x_,...$_}=Ff;const[B_,$P]=React.useState(0);return React.useEffect(()=>{$P(x_)},[x_]),jsxRuntimeExports.jsx("div",{className:"fflex-1",style:{minWidth:"".concat(B_,"px")},...$_,children:kh})},TableAction=Ff=>{let{label:kh,subTableIndex:x_,children:$_,...B_}=Ff;return jsxRuntimeExports.jsx("div",{className:"fw-16",children:jsxRuntimeExports.jsxs("div",{className:"frelative fw-full fh-full fflex fflex-col",children:[kh&&x_===0&&jsxRuntimeExports.jsx("div",{className:"fh-12 ffont-semibold fbg-gray-100 ftext-sm fflex fjustify-between fitems-center fpx-2 fborder-b",children:kh}),jsxRuntimeExports.jsx("div",{className:"fw-full fflex-1 fflex fitems-center fjustify-center fp-2 ",children:$_})]})})},Table=Ff=>{let{children:kh,value:x_,onChange:$_,...B_}=Ff;const[$P,zP]=React.useState([{}]),eme=React.useRef($P),tme=React.useRef(new Map),[nme,rme]=React.useState({}),ame=B_.componentId||B_.__id,ome=mme=>{zP(mme),eme.current=mme};React.useEffect(()=>{if(console.log("value useEffect ",JSON.stringify(x_)),x_&&typeof x_=="string")try{x_=JSON.parse(x_),$_(x_)}catch{}x_&&Array.isArray(x_)&&!lodashExports.isEqual(eme.current,x_)&&(console.log("useEffect setRows"),ome(x_))},[x_]),React.useEffect(()=>{console.log("children useEffect ",kh),ime()},[kh]);const ime=React.useCallback(()=>{tme.current.clear();const mme=React.Children.toArray(kh);mme.forEach(bme=>{const{componentId:Sme,__id:_me,...Cme}=bme.props,Eme="".concat(ame,".").concat(Sme||_me);tme.current.set(Eme,{children:mme.filter(Tme=>{var Rme;return Tme.props.withId===Eme||((Rme=Tme.props.withIds)===null||Rme===void 0?void 0:Rme.includes(Eme))}),show:!0})}),ume()},[kh,ame]),cme=React.useCallback(mme=>{const bme={};for(let Sme in mme)bme["".concat(ame,".").concat(Sme)]=mme[Sme]||"";return bme},[ame]),ume=React.useCallback(()=>{$P.forEach((mme,bme)=>{const Sme=cme(mme);for(let _me of tme.current.keys())sme(_me,Sme,bme)})},[$P,cme]),sme=React.useCallback((mme,bme,Sme)=>{let _me=!1;const Cme="".concat(ame,".").concat(mme);return tme.current.has(Cme)&&tme.current.get(Cme).children.forEach(Tme=>{Tme.props.withFunc&&typeof Tme.props.withFunc=="function"&&(_me=fme(bme,Tme)),Tme.props.withFill&&lme(bme,Tme,Sme)}),_me},[ame,$P]),fme=React.useCallback((mme,bme)=>{let Sme=!1;const _me=bme.props.withFunc(mme),Cme=bme.props.componentId||bme.props.__id;if(tme.current.has(Cme)){const Eme=tme.current.get(Cme);Eme.show!==_me&&(Eme.show=_me,tme.current.set(Cme,Eme),Sme=!0)}return Sme},[]),lme=React.useCallback(async(mme,bme,Sme)=>{const _me=bme.props.withFill,Cme=bme.props.withDataFetch;let Eme=[];if(_me!=null&&_me.withData&&(_me==null?void 0:_me.withData.length)>0&&Cme&&typeof Cme=="function")for(let Rme=0;Rme<(_me==null?void 0:_me.withData.length);Rme++){const Pme=_me==null?void 0:_me.withData[Rme];let $me={};$me.tableName=Pme.withTable.table_name,$me.filter={};for(let Mme=0;Mme<Pme.withCondition.length;Mme++){const{value:Nme,column:Ime}=Pme.withCondition[Mme];$me.filter[Ime.column_name]=hme(Nme.group_key,Nme.field_key,mme,Eme)}const Dme=await Cme($me);Dme.code===0&&Dme.data.list&&Eme.push({id:Pme.id,data:Dme.data.list})}let Tme;if(_me.value&&_me.value.length>0&&(Tme=_me.value.map(Rme=>{let Pme="";const{insert:$me,attributes:Dme}=Rme;return typeof $me!="string"?$me!=null&&$me.span&&Dme&&Dme.tagKey&&Dme.id&&(Pme=hme(Dme.tagKey,Dme.id,mme,Eme),Pme&&(Pme='"'.concat(Pme,'"'))):Pme=$me,Pme})),console.log("formula",Tme),Tme&&Tme.length>0){const Rme=bme.props.componentId||bme.props.__id,Pme=evalFormula(Tme);console.log("formulaResult",Pme),console.log("handleFieldsWithFill setRows");const $me=[...$P];$me[Sme][Rme]=Pme,ome($me)}},[$P]),hme=React.useCallback((mme,bme,Sme,_me)=>{let Cme="";if(mme==="fieldsValue")Cme=(Sme==null?void 0:Sme[bme])||"";else{let Tme=_me.find(Rme=>Rme.id===mme);if(Tme&&Tme.data&&Tme.data.length>0){var Eme;Cme=((Eme=Tme.data[0])===null||Eme===void 0?void 0:Eme[bme])||""}}return Cme},[]),pme=React.useCallback((mme,bme,Sme)=>{var _me;const Cme=[...$P];Cme[mme]={...Cme[mme],[bme]:(Sme==null||(_me=Sme.target)===null||_me===void 0?void 0:_me.value)||""},console.log("handleInputChange setRows"),ome(Cme),rme({rowIndex:mme,identifier:bme,value:cme(Cme[mme])})},[$P,sme,cme,$_]),gme=mme=>{const bme=[...$P];bme.splice(mme,1),console.log("handleDeleteRow setRows"),ome(bme)},yme=()=>{console.log("addRow setRows"),ome([...$P,{}])};return React.useEffect(()=>{console.log("rows changed rows",JSON.stringify(eme.current)),console.log("rows changed value",JSON.stringify(x_)),!lodashExports.isEqual(eme.current,x_)&&(console.log("noreq"),typeof $_=="function"&&$_(eme.current))},[$P]),React.useEffect(()=>{nme&&nme.identifier&&sme(nme.identifier,nme.value,nme.rowIndex)},[nme]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"fw-full fmin-h-20 foverflow-x-auto",children:$P.map((mme,bme)=>jsxRuntimeExports.jsxs("div",{className:"fborder-b finline-flex fflex-wrap fmin-w-full",style:{width:"max-content"},children:[React.Children.map(kh,(Sme,_me)=>{var Cme;const Eme=(Sme==null||(Cme=Sme.props)===null||Cme===void 0?void 0:Cme.__id)||_me;return(mme==null?void 0:mme[Eme])===void 0&&(mme[Eme]=""),jsxRuntimeExports.jsx(TableCol,{width:100,children:React.cloneElement(Sme,{key:"row_".concat(bme,"_child_").concat(_me),subTable:!0,subTableIndex:bme,value:mme[Eme]||"",onChange:Tme=>pme(bme,Eme,Tme)})},"row_".concat(bme,"_col_").concat(_me))}),jsxRuntimeExports.jsx(TableAction,{subTable:!0,subTableIndex:bme,label:"操作",children:jsxRuntimeExports.jsx(RefIcon$3,{className:"fcursor-pointer",onClick:()=>gme(bme)})},"row_".concat(bme,"_action"))]},bme))}),jsxRuntimeExports.jsx(Button$1,{onClick:yme,className:"fmy-2",children:"新增一行"})]})},OptionSetter=Ff=>jsxRuntimeExports.jsx("div",{children:"sdfsdfsdf"});function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$3(Ff,kh){return Ff===kh||Ff!==Ff&&kh!==kh}var eq_1=eq$3,eq$2=eq_1;function assocIndexOf$4(Ff,kh){for(var x_=Ff.length;x_--;)if(eq$2(Ff[x_][0],kh))return x_;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(Ff){var kh=this.__data__,x_=assocIndexOf$3(kh,Ff);if(x_<0)return!1;var $_=kh.length-1;return x_==$_?kh.pop():splice.call(kh,x_,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(Ff){var kh=this.__data__,x_=assocIndexOf$2(kh,Ff);return x_<0?void 0:kh[x_][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(Ff){return assocIndexOf$1(this.__data__,Ff)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(Ff,kh){var x_=this.__data__,$_=assocIndexOf(x_,Ff);return $_<0?(++this.size,x_.push([Ff,kh])):x_[$_][1]=kh,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.clear();++kh<x_;){var $_=Ff[kh];this.set($_[0],$_[1])}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype.delete=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(Ff){var kh=this.__data__,x_=kh.delete(Ff);return this.size=kh.size,x_}var _stackDelete=stackDelete$1;function stackGet$1(Ff){return this.__data__.get(Ff)}var _stackGet=stackGet$1;function stackHas$1(Ff){return this.__data__.has(Ff)}var _stackHas=stackHas$1;function isObject$2(Ff){var kh=typeof Ff;return Ff!=null&&(kh=="object"||kh=="function")}var isObject_1=isObject$2,baseGetTag$3=_baseGetTag,isObject$1=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(Ff){if(!isObject$1(Ff))return!1;var kh=baseGetTag$3(Ff);return kh==funcTag$1||kh==genTag||kh==asyncTag||kh==proxyTag}var isFunction_1=isFunction$2,root$6=_root,coreJsData$1=root$6["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var Ff=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return Ff?"Symbol(src)_1."+Ff:""}();function isMasked$1(Ff){return!!maskSrcKey&&maskSrcKey in Ff}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(Ff){if(Ff!=null){try{return funcToString$1.call(Ff)}catch{}try{return Ff+""}catch{}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$9=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$8=objectProto$9.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$8).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(Ff){if(!isObject(Ff)||isMasked(Ff))return!1;var kh=isFunction$1(Ff)?reIsNative:reIsHostCtor;return kh.test(toSource$1(Ff))}var _baseIsNative=baseIsNative$1;function getValue$1(Ff,kh){return Ff==null?void 0:Ff[kh]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$6(Ff,kh){var x_=getValue(Ff,kh);return baseIsNative(x_)?x_:void 0}var _getNative=getNative$6,getNative$5=_getNative,root$5=_root,Map$4=getNative$5(root$5,"Map"),_Map=Map$4,getNative$4=_getNative,nativeCreate$4=getNative$4(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(Ff){var kh=this.has(Ff)&&delete this.__data__[Ff];return this.size-=kh?1:0,kh}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function hashGet$1(Ff){var kh=this.__data__;if(nativeCreate$2){var x_=kh[Ff];return x_===HASH_UNDEFINED$2?void 0:x_}return hasOwnProperty$7.call(kh,Ff)?kh[Ff]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashHas$1(Ff){var kh=this.__data__;return nativeCreate$1?kh[Ff]!==void 0:hasOwnProperty$6.call(kh,Ff)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(Ff,kh){var x_=this.__data__;return this.size+=this.has(Ff)?0:1,x_[Ff]=nativeCreate&&kh===void 0?HASH_UNDEFINED$1:kh,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.clear();++kh<x_;){var $_=Ff[kh];this.set($_[0],$_[1])}}Hash$1.prototype.clear=hashClear;Hash$1.prototype.delete=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1,Hash=_Hash,ListCache$2=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$2),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(Ff){var kh=typeof Ff;return kh=="string"||kh=="number"||kh=="symbol"||kh=="boolean"?Ff!=="__proto__":Ff===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(Ff,kh){var x_=Ff.__data__;return isKeyable(kh)?x_[typeof kh=="string"?"string":"hash"]:x_.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(Ff){var kh=getMapData$3(this,Ff).delete(Ff);return this.size-=kh?1:0,kh}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(Ff){return getMapData$2(this,Ff).get(Ff)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(Ff){return getMapData$1(this,Ff).has(Ff)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(Ff,kh){var x_=getMapData(this,Ff),$_=x_.size;return x_.set(Ff,kh),this.size+=x_.size==$_?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$2(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.clear();++kh<x_;){var $_=Ff[kh];this.set($_[0],$_[1])}}MapCache$2.prototype.clear=mapCacheClear;MapCache$2.prototype.delete=mapCacheDelete;MapCache$2.prototype.get=mapCacheGet;MapCache$2.prototype.has=mapCacheHas;MapCache$2.prototype.set=mapCacheSet;var _MapCache=MapCache$2,ListCache$1=_ListCache,Map$2=_Map,MapCache$1=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(Ff,kh){var x_=this.__data__;if(x_ instanceof ListCache$1){var $_=x_.__data__;if(!Map$2||$_.length<LARGE_ARRAY_SIZE-1)return $_.push([Ff,kh]),this.size=++x_.size,this;x_=this.__data__=new MapCache$1($_)}return x_.set(Ff,kh),this.size=x_.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$1(Ff){var kh=this.__data__=new ListCache(Ff);this.size=kh.size}Stack$1.prototype.clear=stackClear;Stack$1.prototype.delete=stackDelete;Stack$1.prototype.get=stackGet;Stack$1.prototype.has=stackHas;Stack$1.prototype.set=stackSet;var _Stack=Stack$1,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(Ff){return this.__data__.set(Ff,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(Ff){return this.__data__.has(Ff)}var _setCacheHas=setCacheHas$1,MapCache=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.__data__=new MapCache;++kh<x_;)this.add(Ff[kh])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd;SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(Ff,kh){for(var x_=-1,$_=Ff==null?0:Ff.length;++x_<$_;)if(kh(Ff[x_],x_,Ff))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(Ff,kh){return Ff.has(kh)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays$2(Ff,kh,x_,$_,B_,$P){var zP=x_&COMPARE_PARTIAL_FLAG$3,eme=Ff.length,tme=kh.length;if(eme!=tme&&!(zP&&tme>eme))return!1;var nme=$P.get(Ff),rme=$P.get(kh);if(nme&&rme)return nme==kh&&rme==Ff;var ame=-1,ome=!0,ime=x_&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for($P.set(Ff,kh),$P.set(kh,Ff);++ame<eme;){var cme=Ff[ame],ume=kh[ame];if($_)var sme=zP?$_(ume,cme,ame,kh,Ff,$P):$_(cme,ume,ame,Ff,kh,$P);if(sme!==void 0){if(sme)continue;ome=!1;break}if(ime){if(!arraySome(kh,function(fme,lme){if(!cacheHas(ime,lme)&&(cme===fme||B_(cme,fme,x_,$_,$P)))return ime.push(lme)})){ome=!1;break}}else if(!(cme===ume||B_(cme,ume,x_,$_,$P))){ome=!1;break}}return $P.delete(Ff),$P.delete(kh),ome}var _equalArrays=equalArrays$2,root$4=_root,Uint8Array$2=root$4.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(Ff){var kh=-1,x_=Array(Ff.size);return Ff.forEach(function($_,B_){x_[++kh]=[B_,$_]}),x_}var _mapToArray=mapToArray$1;function setToArray$1(Ff){var kh=-1,x_=Array(Ff.size);return Ff.forEach(function($_){x_[++kh]=$_}),x_}var _setToArray=setToArray$1,Symbol$1=_Symbol,Uint8Array$1=_Uint8Array,eq$1=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag$1(Ff,kh,x_,$_,B_,$P,zP){switch(x_){case dataViewTag$2:if(Ff.byteLength!=kh.byteLength||Ff.byteOffset!=kh.byteOffset)return!1;Ff=Ff.buffer,kh=kh.buffer;case arrayBufferTag$1:return!(Ff.byteLength!=kh.byteLength||!$P(new Uint8Array$1(Ff),new Uint8Array$1(kh)));case boolTag$1:case dateTag$1:case numberTag$1:return eq$1(+Ff,+kh);case errorTag$1:return Ff.name==kh.name&&Ff.message==kh.message;case regexpTag$1:case stringTag$1:return Ff==kh+"";case mapTag$2:var eme=mapToArray;case setTag$2:var tme=$_&COMPARE_PARTIAL_FLAG$2;if(eme||(eme=setToArray),Ff.size!=kh.size&&!tme)return!1;var nme=zP.get(Ff);if(nme)return nme==kh;$_|=COMPARE_UNORDERED_FLAG,zP.set(Ff,kh);var rme=equalArrays$1(eme(Ff),eme(kh),$_,B_,$P,zP);return zP.delete(Ff),rme;case symbolTag:if(symbolValueOf)return symbolValueOf.call(Ff)==symbolValueOf.call(kh)}return!1}var _equalByTag=equalByTag$1;function arrayPush$1(Ff,kh){for(var x_=-1,$_=kh.length,B_=Ff.length;++x_<$_;)Ff[B_+x_]=kh[x_];return Ff}var _arrayPush=arrayPush$1,arrayPush=_arrayPush,isArray$2=isArray_1;function baseGetAllKeys$1(Ff,kh,x_){var $_=kh(Ff);return isArray$2(Ff)?$_:arrayPush($_,x_(Ff))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(Ff,kh){for(var x_=-1,$_=Ff==null?0:Ff.length,B_=0,$P=[];++x_<$_;){var zP=Ff[x_];kh(zP,x_,Ff)&&($P[B_++]=zP)}return $P}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter=_arrayFilter,stubArray=stubArray_1,objectProto$6=Object.prototype,propertyIsEnumerable$1=objectProto$6.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?function(Ff){return Ff==null?[]:(Ff=Object(Ff),arrayFilter(nativeGetSymbols(Ff),function(kh){return propertyIsEnumerable$1.call(Ff,kh)}))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(Ff,kh){for(var x_=-1,$_=Array(Ff);++x_<Ff;)$_[x_]=kh(x_);return $_}var _baseTimes=baseTimes$1,baseGetTag$2=_baseGetTag,isObjectLike$3=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(Ff){return isObjectLike$3(Ff)&&baseGetTag$2(Ff)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$2=isObjectLike_1,objectProto$5=Object.prototype,hasOwnProperty$5=objectProto$5.hasOwnProperty,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,isArguments$1=baseIsArguments(function(){return arguments}())?baseIsArguments:function(Ff){return isObjectLike$2(Ff)&&hasOwnProperty$5.call(Ff,"callee")&&!propertyIsEnumerable.call(Ff,"callee")},isArguments_1=isArguments$1,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$2.exports;(function(Ff,kh){var x_=_root,$_=stubFalse_1,B_=kh&&!kh.nodeType&&kh,$P=B_&&!0&&Ff&&!Ff.nodeType&&Ff,zP=$P&&$P.exports===B_,eme=zP?x_.Buffer:void 0,tme=eme?eme.isBuffer:void 0,nme=tme||$_;Ff.exports=nme})(isBuffer$2,isBuffer$2.exports);var isBufferExports=isBuffer$2.exports,MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$1(Ff,kh){var x_=typeof Ff;return kh=kh??MAX_SAFE_INTEGER$1,!!kh&&(x_=="number"||x_!="symbol"&&reIsUint.test(Ff))&&Ff>-1&&Ff%1==0&&Ff<kh}var _isIndex=isIndex$1,MAX_SAFE_INTEGER=9007199254740991;function isLength$2(Ff){return typeof Ff=="number"&&Ff>-1&&Ff%1==0&&Ff<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$1=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$1="[object Map]",numberTag="[object Number]",objectTag$2="[object Object]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$1]=typedArrayTags[numberTag]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag]=typedArrayTags[setTag$1]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray$1(Ff){return isObjectLike$1(Ff)&&isLength$1(Ff.length)&&!!typedArrayTags[baseGetTag$1(Ff)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(Ff){return function(kh){return Ff(kh)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};_nodeUtil.exports;(function(Ff,kh){var x_=_freeGlobal,$_=kh&&!kh.nodeType&&kh,B_=$_&&!0&&Ff&&!Ff.nodeType&&Ff,$P=B_&&B_.exports===$_,zP=$P&&x_.process,eme=function(){try{var tme=B_&&B_.require&&B_.require("util").types;return tme||zP&&zP.binding&&zP.binding("util")}catch{}}();Ff.exports=eme})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments=isArguments_1,isArray$1=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function arrayLikeKeys$1(Ff,kh){var x_=isArray$1(Ff),$_=!x_&&isArguments(Ff),B_=!x_&&!$_&&isBuffer$1(Ff),$P=!x_&&!$_&&!B_&&isTypedArray$1(Ff),zP=x_||$_||B_||$P,eme=zP?baseTimes(Ff.length,String):[],tme=eme.length;for(var nme in Ff)(kh||hasOwnProperty$4.call(Ff,nme))&&!(zP&&(nme=="length"||B_&&(nme=="offset"||nme=="parent")||$P&&(nme=="buffer"||nme=="byteLength"||nme=="byteOffset")||isIndex(nme,tme)))&&eme.push(nme);return eme}var _arrayLikeKeys=arrayLikeKeys$1,objectProto$3=Object.prototype;function isPrototype$1(Ff){var kh=Ff&&Ff.constructor,x_=typeof kh=="function"&&kh.prototype||objectProto$3;return Ff===x_}var _isPrototype=isPrototype$1;function overArg$1(Ff,kh){return function(x_){return Ff(kh(x_))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype=_isPrototype,nativeKeys=_nativeKeys,objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function baseKeys$1(Ff){if(!isPrototype(Ff))return nativeKeys(Ff);var kh=[];for(var x_ in Object(Ff))hasOwnProperty$3.call(Ff,x_)&&x_!="constructor"&&kh.push(x_);return kh}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength=isLength_1;function isArrayLike$1(Ff){return Ff!=null&&isLength(Ff.length)&&!isFunction(Ff)}var isArrayLike_1=isArrayLike$1,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike=isArrayLike_1;function keys$1(Ff){return isArrayLike(Ff)?arrayLikeKeys(Ff):baseKeys(Ff)}var keys_1=keys$1,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys=keys_1;function getAllKeys$1(Ff){return baseGetAllKeys(Ff,keys,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function equalObjects$1(Ff,kh,x_,$_,B_,$P){var zP=x_&COMPARE_PARTIAL_FLAG$1,eme=getAllKeys(Ff),tme=eme.length,nme=getAllKeys(kh),rme=nme.length;if(tme!=rme&&!zP)return!1;for(var ame=tme;ame--;){var ome=eme[ame];if(!(zP?ome in kh:hasOwnProperty$2.call(kh,ome)))return!1}var ime=$P.get(Ff),cme=$P.get(kh);if(ime&&cme)return ime==kh&&cme==Ff;var ume=!0;$P.set(Ff,kh),$P.set(kh,Ff);for(var sme=zP;++ame<tme;){ome=eme[ame];var fme=Ff[ome],lme=kh[ome];if($_)var hme=zP?$_(lme,fme,ome,kh,Ff,$P):$_(fme,lme,ome,Ff,kh,$P);if(!(hme===void 0?fme===lme||B_(fme,lme,x_,$_,$P):hme)){ume=!1;break}sme||(sme=ome=="constructor")}if(ume&&!sme){var pme=Ff.constructor,gme=kh.constructor;pme!=gme&&"constructor"in Ff&&"constructor"in kh&&!(typeof pme=="function"&&pme instanceof pme&&typeof gme=="function"&&gme instanceof gme)&&(ume=!1)}return $P.delete(Ff),$P.delete(kh),ume}var _equalObjects=equalObjects$1,getNative$3=_getNative,root$3=_root,DataView$1=getNative$3(root$3,"DataView"),_DataView=DataView$1,getNative$2=_getNative,root$2=_root,Promise$2=getNative$2(root$2,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$1=_root,Set$2=getNative$1(root$1,"Set"),_Set=Set$2,getNative=_getNative,root=_root,WeakMap$2=getNative(root,"WeakMap"),_WeakMap=WeakMap$2,DataView=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag=_baseGetTag,toSource=_toSource,mapTag="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$1=baseGetTag;(DataView&&getTag$1(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag$1(new Map$1)!=mapTag||Promise$1&&getTag$1(Promise$1.resolve())!=promiseTag||Set$1&&getTag$1(new Set$1)!=setTag||WeakMap$1&&getTag$1(new WeakMap$1)!=weakMapTag)&&(getTag$1=function(Ff){var kh=baseGetTag(Ff),x_=kh==objectTag$1?Ff.constructor:void 0,$_=x_?toSource(x_):"";if($_)switch($_){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return kh});var _getTag=getTag$1,Stack=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray=isArray_1,isBuffer=isBufferExports,isTypedArray=isTypedArray_1,COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty;function baseIsEqualDeep$1(Ff,kh,x_,$_,B_,$P){var zP=isArray(Ff),eme=isArray(kh),tme=zP?arrayTag:getTag(Ff),nme=eme?arrayTag:getTag(kh);tme=tme==argsTag?objectTag:tme,nme=nme==argsTag?objectTag:nme;var rme=tme==objectTag,ame=nme==objectTag,ome=tme==nme;if(ome&&isBuffer(Ff)){if(!isBuffer(kh))return!1;zP=!0,rme=!1}if(ome&&!rme)return $P||($P=new Stack),zP||isTypedArray(Ff)?equalArrays(Ff,kh,x_,$_,B_,$P):equalByTag(Ff,kh,tme,x_,$_,B_,$P);if(!(x_&COMPARE_PARTIAL_FLAG)){var ime=rme&&hasOwnProperty$1.call(Ff,"__wrapped__"),cme=ame&&hasOwnProperty$1.call(kh,"__wrapped__");if(ime||cme){var ume=ime?Ff.value():Ff,sme=cme?kh.value():kh;return $P||($P=new Stack),B_(ume,sme,x_,$_,$P)}}return ome?($P||($P=new Stack),equalObjects(Ff,kh,x_,$_,B_,$P)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike=isObjectLike_1;function baseIsEqual$1(Ff,kh,x_,$_,B_){return Ff===kh?!0:Ff==null||kh==null||!isObjectLike(Ff)&&!isObjectLike(kh)?Ff!==Ff&&kh!==kh:baseIsEqualDeep(Ff,kh,x_,$_,baseIsEqual$1,B_)}var _baseIsEqual=baseIsEqual$1,baseIsEqual=_baseIsEqual;function isEqual(Ff,kh){return baseIsEqual(Ff,kh)}var isEqual_1$1=isEqual,quill={exports:{}};/*!
398
398
  * Quill Editor v1.3.7
399
399
  * https://quilljs.com/
400
400
  * Copyright (c) 2014, Jason Chen
@@ -448,7 +448,7 @@ function print() { __p += __j.call(arguments, '') }
448
448
  * Released under the MIT License.
449
449
  */function Il(Ff){return Object.prototype.toString.call(Ff)==="[object Object]"}function Ll(Ff){var kh,x_;return Il(Ff)!==!1&&((kh=Ff.constructor)===void 0||Il(x_=kh.prototype)!==!1&&x_.hasOwnProperty("isPrototypeOf")!==!1)}function Rl(Ff){for(var kh=arguments.length,x_=Array(kh>1?kh-1:0),$_=1;$_<kh;$_++)x_[$_-1]=arguments[$_];throw Error("[Immer] minified error nr: "+Ff+(x_.length?" "+x_.map(function(B_){return"'"+B_+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ml(Ff){return!!Ff&&!!Ff[xc]}function zl(Ff){return!!Ff&&(function(kh){if(!kh||typeof kh!="object")return!1;var x_=Object.getPrototypeOf(kh);if(x_===null)return!0;var $_=Object.hasOwnProperty.call(x_,"constructor")&&x_.constructor;return $_===Object||typeof $_=="function"&&Function.toString.call($_)===Cc}(Ff)||Array.isArray(Ff)||!!Ff[Sc]||!!Ff.constructor[Sc]||Wl(Ff)||Gl(Ff))}function $l(Ff,kh,x_){x_===void 0&&(x_=!1),Hl(Ff)===0?(x_?Object.keys:Ac)(Ff).forEach(function($_){x_&&typeof $_=="symbol"||kh($_,Ff[$_],Ff)}):Ff.forEach(function($_,B_){return kh(B_,$_,Ff)})}function Hl(Ff){var kh=Ff[xc];return kh?kh.i>3?kh.i-4:kh.i:Array.isArray(Ff)?1:Wl(Ff)?2:Gl(Ff)?3:0}function Vl(Ff,kh){return Hl(Ff)===2?Ff.has(kh):Object.prototype.hasOwnProperty.call(Ff,kh)}function Ul(Ff,kh,x_){var $_=Hl(Ff);$_===2?Ff.set(kh,x_):$_===3?(Ff.delete(kh),Ff.add(x_)):Ff[kh]=x_}function Wl(Ff){return bc&&Ff instanceof Map}function Gl(Ff){return wc&&Ff instanceof Set}function ql(Ff){return Ff.o||Ff.t}function Kl(Ff){if(Array.isArray(Ff))return Array.prototype.slice.call(Ff);var kh=Oc(Ff);delete kh[xc];for(var x_=Ac(kh),$_=0;$_<x_.length;$_++){var B_=x_[$_],$P=kh[B_];$P.writable===!1&&($P.writable=!0,$P.configurable=!0),($P.get||$P.set)&&(kh[B_]={configurable:!0,writable:!0,enumerable:$P.enumerable,value:Ff[B_]})}return Object.create(Object.getPrototypeOf(Ff),kh)}function Yl(Ff,kh){return kh===void 0&&(kh=!1),Zl(Ff)||Ml(Ff)||!zl(Ff)||(Hl(Ff)>1&&(Ff.set=Ff.add=Ff.clear=Ff.delete=Xl),Object.freeze(Ff),kh&&$l(Ff,function(x_,$_){return Yl($_,!0)},!0)),Ff}function Xl(){Rl(2)}function Zl(Ff){return Ff==null||typeof Ff!="object"||Object.isFrozen(Ff)}function Jl(Ff){var kh=kc[Ff];return kh||Rl(18,Ff),kh}function Ql(){return yc}function ec(Ff,kh){kh&&(Jl("Patches"),Ff.u=[],Ff.s=[],Ff.v=kh)}function tc(Ff){nc(Ff),Ff.p.forEach(oc),Ff.p=null}function nc(Ff){Ff===yc&&(yc=Ff.l)}function rc(Ff){return yc={p:[],l:yc,h:Ff,m:!0,_:0}}function oc(Ff){var kh=Ff[xc];kh.i===0||kh.i===1?kh.j():kh.O=!0}function ic(Ff,kh){kh._=kh.p.length;var x_=kh.p[0],$_=Ff!==void 0&&Ff!==x_;return kh.h.g||Jl("ES5").S(kh,Ff,$_),$_?(x_[xc].P&&(tc(kh),Rl(4)),zl(Ff)&&(Ff=ac(kh,Ff),kh.l||sc(kh,Ff)),kh.u&&Jl("Patches").M(x_[xc],Ff,kh.u,kh.s)):Ff=ac(kh,x_,[]),tc(kh),kh.u&&kh.v(kh.u,kh.s),Ff!==Dc?Ff:void 0}function ac(Ff,kh,x_){if(Zl(kh))return kh;var $_=kh[xc];if(!$_)return $l(kh,function($P,zP){return uc(Ff,$_,kh,$P,zP,x_)},!0),kh;if($_.A!==Ff)return kh;if(!$_.P)return sc(Ff,$_.t,!0),$_.t;if(!$_.I){$_.I=!0,$_.A._--;var B_=$_.i===4||$_.i===5?$_.o=Kl($_.k):$_.o;$l($_.i===3?new Set(B_):B_,function($P,zP){return uc(Ff,$_,B_,$P,zP,x_)}),sc(Ff,B_,!1),x_&&Ff.u&&Jl("Patches").R($_,x_,Ff.u,Ff.s)}return $_.o}function uc(Ff,kh,x_,$_,B_,$P){if(Ml(B_)){var zP=ac(Ff,B_,$P&&kh&&kh.i!==3&&!Vl(kh.D,$_)?$P.concat($_):void 0);if(Ul(x_,$_,zP),!Ml(zP))return;Ff.m=!1}if(zl(B_)&&!Zl(B_)){if(!Ff.h.F&&Ff._<1)return;ac(Ff,B_),kh&&kh.A.l||sc(Ff,B_)}}function sc(Ff,kh,x_){x_===void 0&&(x_=!1),Ff.h.F&&Ff.m&&Yl(kh,x_)}function lc(Ff,kh){var x_=Ff[xc];return(x_?ql(x_):Ff)[kh]}function cc(Ff,kh){if(kh in Ff)for(var x_=Object.getPrototypeOf(Ff);x_;){var $_=Object.getOwnPropertyDescriptor(x_,kh);if($_)return $_;x_=Object.getPrototypeOf(x_)}}function fc(Ff){Ff.P||(Ff.P=!0,Ff.l&&fc(Ff.l))}function dc(Ff){Ff.o||(Ff.o=Kl(Ff.t))}function pc(Ff,kh,x_){var $_=Wl(kh)?Jl("MapSet").N(kh,x_):Gl(kh)?Jl("MapSet").T(kh,x_):Ff.g?function(B_,$P){var zP=Array.isArray(B_),eme={i:zP?1:0,A:$P?$P.A:Ql(),P:!1,I:!1,D:{},l:$P,t:B_,k:null,o:null,j:null,C:!1},tme=eme,nme=Bc;zP&&(tme=[eme],nme=Fc);var rme=Proxy.revocable(tme,nme),ame=rme.revoke,ome=rme.proxy;return eme.k=ome,eme.j=ame,ome}(kh,x_):Jl("ES5").J(kh,x_);return(x_?x_.A:Ql()).p.push($_),$_}function hc(Ff){return Ml(Ff)||Rl(22,Ff),function kh(x_){if(!zl(x_))return x_;var $_,B_=x_[xc],$P=Hl(x_);if(B_){if(!B_.P&&(B_.i<4||!Jl("ES5").K(B_)))return B_.t;B_.I=!0,$_=gc(x_,$P),B_.I=!1}else $_=gc(x_,$P);return $l($_,function(zP,eme){B_&&function(tme,nme){return Hl(tme)===2?tme.get(nme):tme[nme]}(B_.t,zP)===eme||Ul($_,zP,kh(eme))}),$P===3?new Set($_):$_}(Ff)}function gc(Ff,kh){switch(kh){case 2:return new Map(Ff);case 3:return Array.from(Ff)}return Kl(Ff)}var vc,yc,mc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",bc=typeof Map<"u",wc=typeof Set<"u",Ec=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Dc=mc?Symbol.for("immer-nothing"):((vc={})["immer-nothing"]=!0,vc),Sc=mc?Symbol.for("immer-draftable"):"__$immer_draftable",xc=mc?Symbol.for("immer-state"):"__$immer_state",Cc=""+Object.prototype.constructor,Ac=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(Ff){return Object.getOwnPropertyNames(Ff).concat(Object.getOwnPropertySymbols(Ff))}:Object.getOwnPropertyNames,Oc=Object.getOwnPropertyDescriptors||function(Ff){var kh={};return Ac(Ff).forEach(function(x_){kh[x_]=Object.getOwnPropertyDescriptor(Ff,x_)}),kh},kc={},Bc={get:function(Ff,kh){if(kh===xc)return Ff;var x_=ql(Ff);if(!Vl(x_,kh))return function(B_,$P,zP){var eme,tme=cc($P,zP);return tme?"value"in tme?tme.value:(eme=tme.get)===null||eme===void 0?void 0:eme.call(B_.k):void 0}(Ff,x_,kh);var $_=x_[kh];return Ff.I||!zl($_)?$_:$_===lc(Ff.t,kh)?(dc(Ff),Ff.o[kh]=pc(Ff.A.h,$_,Ff)):$_},has:function(Ff,kh){return kh in ql(Ff)},ownKeys:function(Ff){return Reflect.ownKeys(ql(Ff))},set:function(Ff,kh,x_){var $_=cc(ql(Ff),kh);if($_!=null&&$_.set)return $_.set.call(Ff.k,x_),!0;if(!Ff.P){var B_=lc(ql(Ff),kh),$P=B_==null?void 0:B_[xc];if($P&&$P.t===x_)return Ff.o[kh]=x_,Ff.D[kh]=!1,!0;if(function(zP,eme){return zP===eme?zP!==0||1/zP==1/eme:zP!=zP&&eme!=eme}(x_,B_)&&(x_!==void 0||Vl(Ff.t,kh)))return!0;dc(Ff),fc(Ff)}return Ff.o[kh]===x_&&typeof x_!="number"&&(x_!==void 0||kh in Ff.o)||(Ff.o[kh]=x_,Ff.D[kh]=!0,!0)},deleteProperty:function(Ff,kh){return lc(Ff.t,kh)!==void 0||kh in Ff.t?(Ff.D[kh]=!1,dc(Ff),fc(Ff)):delete Ff.D[kh],Ff.o&&delete Ff.o[kh],!0},getOwnPropertyDescriptor:function(Ff,kh){var x_=ql(Ff),$_=Reflect.getOwnPropertyDescriptor(x_,kh);return $_&&{writable:!0,configurable:Ff.i!==1||kh!=="length",enumerable:$_.enumerable,value:x_[kh]}},defineProperty:function(){Rl(11)},getPrototypeOf:function(Ff){return Object.getPrototypeOf(Ff.t)},setPrototypeOf:function(){Rl(12)}},Fc={};$l(Bc,function(Ff,kh){Fc[Ff]=function(){return arguments[0]=arguments[0][0],kh.apply(this,arguments)}}),Fc.deleteProperty=function(Ff,kh){return Bc.deleteProperty.call(this,Ff[0],kh)},Fc.set=function(Ff,kh,x_){return Bc.set.call(this,Ff[0],kh,x_,Ff[0])};var Tc=function(){function Ff(x_){var $_=this;this.g=Ec,this.F=!0,this.produce=function(B_,$P,zP){if(typeof B_=="function"&&typeof $P!="function"){var eme=$P;$P=B_;var tme=$_;return function(ime){var cme=this;ime===void 0&&(ime=eme);for(var ume=arguments.length,sme=Array(ume>1?ume-1:0),fme=1;fme<ume;fme++)sme[fme-1]=arguments[fme];return tme.produce(ime,function(lme){var hme;return(hme=$P).call.apply(hme,[cme,lme].concat(sme))})}}var nme;if(typeof $P!="function"&&Rl(6),zP!==void 0&&typeof zP!="function"&&Rl(7),zl(B_)){var rme=rc($_),ame=pc($_,B_,void 0),ome=!0;try{nme=$P(ame),ome=!1}finally{ome?tc(rme):nc(rme)}return typeof Promise<"u"&&nme instanceof Promise?nme.then(function(ime){return ec(rme,zP),ic(ime,rme)},function(ime){throw tc(rme),ime}):(ec(rme,zP),ic(nme,rme))}if(!B_||typeof B_!="object")return(nme=$P(B_))===Dc?void 0:(nme===void 0&&(nme=B_),$_.F&&Yl(nme,!0),nme);Rl(21,B_)},this.produceWithPatches=function(B_,$P){return typeof B_=="function"?function(tme){for(var nme=arguments.length,rme=Array(nme>1?nme-1:0),ame=1;ame<nme;ame++)rme[ame-1]=arguments[ame];return $_.produceWithPatches(tme,function(ome){return B_.apply(void 0,[ome].concat(rme))})}:[$_.produce(B_,$P,function(tme,nme){zP=tme,eme=nme}),zP,eme];var zP,eme},typeof(x_==null?void 0:x_.useProxies)=="boolean"&&this.setUseProxies(x_.useProxies),typeof(x_==null?void 0:x_.autoFreeze)=="boolean"&&this.setAutoFreeze(x_.autoFreeze)}var kh=Ff.prototype;return kh.createDraft=function(x_){zl(x_)||Rl(8),Ml(x_)&&(x_=hc(x_));var $_=rc(this),B_=pc(this,x_,void 0);return B_[xc].C=!0,nc($_),B_},kh.finishDraft=function(x_,$_){var B_=(x_&&x_[xc]).A;return ec(B_,$_),ic(void 0,B_)},kh.setAutoFreeze=function(x_){this.F=x_},kh.setUseProxies=function(x_){x_&&!Ec&&Rl(20),this.g=x_},kh.applyPatches=function(x_,$_){var B_;for(B_=$_.length-1;B_>=0;B_--){var $P=$_[B_];if($P.path.length===0&&$P.op==="replace"){x_=$P.value;break}}B_>-1&&($_=$_.slice(B_+1));var zP=Jl("Patches").$;return Ml(x_)?zP(x_,$_):this.produce(x_,function(eme){return zP(eme,$_)})},Ff}(),_c=new Tc,Pc=_c.produce;_c.produceWithPatches.bind(_c),_c.setAutoFreeze.bind(_c),_c.setUseProxies.bind(_c),_c.applyPatches.bind(_c);var jc=_c.createDraft.bind(_c),Nc=_c.finishDraft.bind(_c);function Ic(Ff,kh,x_){return kh in Ff?Object.defineProperty(Ff,kh,{value:x_,enumerable:!0,configurable:!0,writable:!0}):Ff[kh]=x_,Ff}var Lc=new WeakMap,Rc=new WeakMap,Mc=new WeakMap,zc=new WeakMap,$c=new WeakMap,Hc=new WeakMap;function Vc(Ff,kh){var x_=Object.keys(Ff);if(Object.getOwnPropertySymbols){var $_=Object.getOwnPropertySymbols(Ff);kh&&($_=$_.filter(function(B_){return Object.getOwnPropertyDescriptor(Ff,B_).enumerable})),x_.push.apply(x_,$_)}return x_}function Uc(Ff){for(var kh=1;kh<arguments.length;kh++){var x_=arguments[kh]!=null?arguments[kh]:{};kh%2?Vc(Object(x_),!0).forEach(function($_){Ic(Ff,$_,x_[$_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ff,Object.getOwnPropertyDescriptors(x_)):Vc(Object(x_)).forEach(function($_){Object.defineProperty(Ff,$_,Object.getOwnPropertyDescriptor(x_,$_))})}return Ff}var Wc=()=>{var Ff={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:kh=>{for(var x_ of Bf.pathRefs(Ff))zf.transform(x_,kh);for(var $_ of Bf.pointRefs(Ff))Uf.transform($_,kh);for(var B_ of Bf.rangeRefs(Ff))Kf.transform(B_,kh);var $P=new Set,zP=[],eme=ome=>{if(ome){var ime=ome.join(",");$P.has(ime)||($P.add(ime),zP.push(ome))}},tme=Lc.get(Ff)||[],nme=Gc(kh);for(var rme of tme)eme(Mf.transform(rme,kh));for(var ame of nme)eme(ame);Lc.set(Ff,zP),md.transform(Ff,kh),Ff.operations.push(kh),Bf.normalize(Ff),kh.type==="set_selection"&&(Ff.marks=null),Rc.get(Ff)||(Rc.set(Ff,!0),Promise.resolve().then(()=>{Rc.set(Ff,!1),Ff.onChange(),Ff.operations=[]}))},addMark:(kh,x_)=>{var{selection:$_}=Ff;if($_)if(qf.isExpanded($_))md.setNodes(Ff,{[kh]:x_},{match:ed.isText,split:!0});else{var B_=Uc(Uc({},Bf.marks(Ff)||{}),{},{[kh]:x_});Ff.marks=B_,Rc.get(Ff)||Ff.onChange()}},deleteBackward:kh=>{var{selection:x_}=Ff;x_&&qf.isCollapsed(x_)&&md.delete(Ff,{unit:kh,reverse:!0})},deleteForward:kh=>{var{selection:x_}=Ff;x_&&qf.isCollapsed(x_)&&md.delete(Ff,{unit:kh})},deleteFragment:kh=>{var{selection:x_}=Ff;x_&&qf.isExpanded(x_)&&md.delete(Ff,{reverse:kh==="backward"})},getFragment:()=>{var{selection:kh}=Ff;return kh?Nf.fragment(Ff,kh):[]},insertBreak:()=>{md.splitNodes(Ff,{always:!0})},insertFragment:kh=>{md.insertFragment(Ff,kh)},insertNode:kh=>{md.insertNodes(Ff,kh)},insertText:kh=>{var{selection:x_,marks:$_}=Ff;if(x_){if($_){var B_=Uc({text:kh},$_);md.insertNodes(Ff,B_)}else md.insertText(Ff,kh);Ff.marks=null}},normalizeNode:kh=>{var[x_,$_]=kh;if(!ed.isText(x_))if(Sf.isElement(x_)&&x_.children.length===0)md.insertNodes(Ff,{text:""},{at:$_.concat(0),voids:!0});else for(var B_=!Bf.isEditor(x_)&&Sf.isElement(x_)&&(Ff.isInline(x_)||x_.children.length===0||ed.isText(x_.children[0])||Ff.isInline(x_.children[0])),$P=0,zP=0;zP<x_.children.length;zP++,$P++){var eme=Nf.get(Ff,$_);if(!ed.isText(eme)){var tme=x_.children[zP],nme=eme.children[$P-1],rme=zP===x_.children.length-1;(ed.isText(tme)||Sf.isElement(tme)&&Ff.isInline(tme))!==B_?(md.removeNodes(Ff,{at:$_.concat($P),voids:!0}),$P--):Sf.isElement(tme)?Ff.isInline(tme)&&(nme!=null&&ed.isText(nme)?rme&&(md.insertNodes(Ff,{text:""},{at:$_.concat($P+1),voids:!0}),$P++):(md.insertNodes(Ff,{text:""},{at:$_.concat($P),voids:!0}),$P++)):nme!=null&&ed.isText(nme)&&(ed.equals(tme,nme,{loose:!0})?(md.mergeNodes(Ff,{at:$_.concat($P),voids:!0}),$P--):nme.text===""?(md.removeNodes(Ff,{at:$_.concat($P-1),voids:!0}),$P--):tme.text===""&&(md.removeNodes(Ff,{at:$_.concat($P),voids:!0}),$P--))}}},removeMark:kh=>{var{selection:x_}=Ff;if(x_)if(qf.isExpanded(x_))md.unsetNodes(Ff,kh,{match:ed.isText,split:!0});else{var $_=Uc({},Bf.marks(Ff)||{});delete $_[kh],Ff.marks=$_,Rc.get(Ff)||Ff.onChange()}}};return Ff},Gc=Ff=>{switch(Ff.type){case"insert_text":case"remove_text":case"set_node":var{path:kh}=Ff;return Mf.levels(kh);case"insert_node":var{node:x_,path:$_}=Ff,B_=Mf.levels($_),$P=ed.isText(x_)?[]:Array.from(Nf.nodes(x_),pme=>{var[,gme]=pme;return $_.concat(gme)});return[...B_,...$P];case"merge_node":var{path:zP}=Ff;return[...Mf.ancestors(zP),Mf.previous(zP)];case"move_node":var{path:eme,newPath:tme}=Ff;if(Mf.equals(eme,tme))return[];var nme=[],rme=[];for(var ame of Mf.ancestors(eme)){var ome=Mf.transform(ame,Ff);nme.push(ome)}for(var ime of Mf.ancestors(tme)){var cme=Mf.transform(ime,Ff);rme.push(cme)}var ume=rme[rme.length-1],sme=tme[tme.length-1],fme=ume.concat(sme);return[...nme,...rme,fme];case"remove_node":var{path:lme}=Ff;return[...Mf.ancestors(lme)];case"split_node":var{path:hme}=Ff;return[...Mf.levels(hme),Mf.next(hme)];default:return[]}};function qc(Ff,kh){if(Ff==null)return{};var x_,$_,B_=function(zP,eme){if(zP==null)return{};var tme,nme,rme={},ame=Object.keys(zP);for(nme=0;nme<ame.length;nme++)tme=ame[nme],eme.indexOf(tme)>=0||(rme[tme]=zP[tme]);return rme}(Ff,kh);if(Object.getOwnPropertySymbols){var $P=Object.getOwnPropertySymbols(Ff);for($_=0;$_<$P.length;$_++)x_=$P[$_],kh.indexOf(x_)>=0||Object.prototype.propertyIsEnumerable.call(Ff,x_)&&(B_[x_]=Ff[x_])}return B_}var Kc,Yc=function(Ff){var kh=arguments.length>1&&arguments[1]!==void 0&&arguments[1],x_=!kh,$_=kh?tf(Ff):Ff,B_=Kc.None,$P=Kc.None,zP=0,eme=null;for(var tme of $_){var nme=tme.codePointAt(0);if(!nme)break;var rme=hf(tme,nme);if([B_,$P]=x_?[$P,rme]:[rme,B_],gf(B_,Kc.ZWJ)&&gf($P,Kc.ExtPict)&&!bf(x_?Ff.substring(0,zP):Ff.substring(0,Ff.length-zP))||gf(B_,Kc.RI)&&gf($P,Kc.RI)&&!(eme=eme!==null?!eme:!!x_||Ef(Ff.substring(0,Ff.length-zP)))||B_!==Kc.None&&$P!==Kc.None&&yf(B_,$P))break;zP+=tme.length}return zP||1},Xc=/\s/,Zc=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Jc=/['\u2018\u2019]/,Qc=(Ff,kh,x_)=>{if(x_){var $_=Ff.length-kh;return[Ff.slice($_,Ff.length),Ff.slice(0,$_)]}return[Ff.slice(0,kh),Ff.slice(kh)]},ef=function Ff(kh,x_){var $_=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(Xc.test(kh))return!1;if(Jc.test(kh)){var B_=Yc(x_,$_),[$P,zP]=Qc(x_,B_,$_);if(Ff($P,zP,$_))return!0}return!Zc.test(kh)},tf=function*(Ff){for(var kh=Ff.length-1,x_=0;x_<Ff.length;x_++){var $_=Ff.charAt(kh-x_);if(rf($_.charCodeAt(0))){var B_=Ff.charAt(kh-x_-1);if(nf(B_.charCodeAt(0))){yield B_+$_,x_++;continue}}yield $_}},nf=Ff=>Ff>=55296&&Ff<=56319,rf=Ff=>Ff>=56320&&Ff<=57343;(function(Ff){Ff[Ff.None=0]="None",Ff[Ff.Extend=1]="Extend",Ff[Ff.ZWJ=2]="ZWJ",Ff[Ff.RI=4]="RI",Ff[Ff.Prepend=8]="Prepend",Ff[Ff.SpacingMark=16]="SpacingMark",Ff[Ff.L=32]="L",Ff[Ff.V=64]="V",Ff[Ff.T=128]="T",Ff[Ff.LV=256]="LV",Ff[Ff.LVT=512]="LVT",Ff[Ff.ExtPict=1024]="ExtPict",Ff[Ff.Any=2048]="Any"})(Kc||(Kc={}));var of=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,af=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,uf=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,sf=/^[\u1100-\u115F\uA960-\uA97C]$/,lf=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,cf=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,ff=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,df=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,pf=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,hf=(Ff,kh)=>{var x_=Kc.Any;return Ff.search(of)!==-1&&(x_|=Kc.Extend),kh===8205&&(x_|=Kc.ZWJ),kh>=127462&&kh<=127487&&(x_|=Kc.RI),Ff.search(af)!==-1&&(x_|=Kc.Prepend),Ff.search(uf)!==-1&&(x_|=Kc.SpacingMark),Ff.search(sf)!==-1&&(x_|=Kc.L),Ff.search(lf)!==-1&&(x_|=Kc.V),Ff.search(cf)!==-1&&(x_|=Kc.T),Ff.search(ff)!==-1&&(x_|=Kc.LV),Ff.search(df)!==-1&&(x_|=Kc.LVT),Ff.search(pf)!==-1&&(x_|=Kc.ExtPict),x_};function gf(Ff,kh){return(Ff&kh)!=0}var vf=[[Kc.L,Kc.L|Kc.V|Kc.LV|Kc.LVT],[Kc.LV|Kc.V,Kc.V|Kc.T],[Kc.LVT|Kc.T,Kc.T],[Kc.Any,Kc.Extend|Kc.ZWJ],[Kc.Any,Kc.SpacingMark],[Kc.Prepend,Kc.Any],[Kc.ZWJ,Kc.ExtPict],[Kc.RI,Kc.RI]];function yf(Ff,kh){return vf.findIndex(x_=>gf(Ff,x_[0])&&gf(kh,x_[1]))===-1}var mf=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,bf=Ff=>Ff.search(mf)!==-1,wf=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Ef=Ff=>{var kh=Ff.match(wf);return kh!==null&&kh[0].length/2%2==1},Df=Ff=>Ll(Ff)&&Nf.isNodeList(Ff.children)&&!Bf.isEditor(Ff),Sf={isAncestor:Ff=>Ll(Ff)&&Nf.isNodeList(Ff.children),isElement:Df,isElementList:Ff=>Array.isArray(Ff)&&Ff.every(kh=>Sf.isElement(kh)),isElementProps:Ff=>Ff.children!==void 0,isElementType:function(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return Df(Ff)&&Ff[x_]===kh},matches(Ff,kh){for(var x_ in kh)if(x_!=="children"&&Ff[x_]!==kh[x_])return!1;return!0}},xf=["text"],Cf=["text"];function Af(Ff,kh){var x_=Object.keys(Ff);if(Object.getOwnPropertySymbols){var $_=Object.getOwnPropertySymbols(Ff);kh&&($_=$_.filter(function(B_){return Object.getOwnPropertyDescriptor(Ff,B_).enumerable})),x_.push.apply(x_,$_)}return x_}function Of(Ff){for(var kh=1;kh<arguments.length;kh++){var x_=arguments[kh]!=null?arguments[kh]:{};kh%2?Af(Object(x_),!0).forEach(function($_){Ic(Ff,$_,x_[$_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ff,Object.getOwnPropertyDescriptors(x_)):Af(Object(x_)).forEach(function($_){Object.defineProperty(Ff,$_,Object.getOwnPropertyDescriptor(x_,$_))})}return Ff}var kf=new WeakMap,Bf={above(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:x_=!1,mode:$_="lowest",at:B_=Ff.selection,match:$P}=kh;if(B_){var zP=Bf.path(Ff,B_),eme=$_==="lowest";for(var[tme,nme]of Bf.levels(Ff,{at:zP,voids:x_,match:$P,reverse:eme}))if(!ed.isText(tme)&&!Mf.equals(zP,nme))return[tme,nme]}},addMark(Ff,kh,x_){Ff.addMark(kh,x_)},after(Ff,kh){var x_,$_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B_={anchor:Bf.point(Ff,kh,{edge:"end"}),focus:Bf.end(Ff,[])},{distance:$P=1}=$_,zP=0;for(var eme of Bf.positions(Ff,Of(Of({},$_),{},{at:B_}))){if(zP>$P)break;zP!==0&&(x_=eme),zP++}return x_},before(Ff,kh){var x_,$_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B_={anchor:Bf.start(Ff,[]),focus:Bf.point(Ff,kh,{edge:"start"})},{distance:$P=1}=$_,zP=0;for(var eme of Bf.positions(Ff,Of(Of({},$_),{},{at:B_,reverse:!0}))){if(zP>$P)break;zP!==0&&(x_=eme),zP++}return x_},deleteBackward(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:x_="character"}=kh;Ff.deleteBackward(x_)},deleteForward(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:x_="character"}=kh;Ff.deleteForward(x_)},deleteFragment(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:x_="forward"}=kh;Ff.deleteFragment(x_)},edges:(Ff,kh)=>[Bf.start(Ff,kh),Bf.end(Ff,kh)],end:(Ff,kh)=>Bf.point(Ff,kh,{edge:"end"}),first(Ff,kh){var x_=Bf.path(Ff,kh,{edge:"start"});return Bf.node(Ff,x_)},fragment(Ff,kh){var x_=Bf.range(Ff,kh);return Nf.fragment(Ff,x_)},hasBlocks:(Ff,kh)=>kh.children.some(x_=>Bf.isBlock(Ff,x_)),hasInlines:(Ff,kh)=>kh.children.some(x_=>ed.isText(x_)||Bf.isInline(Ff,x_)),hasTexts:(Ff,kh)=>kh.children.every(x_=>ed.isText(x_)),insertBreak(Ff){Ff.insertBreak()},insertFragment(Ff,kh){Ff.insertFragment(kh)},insertNode(Ff,kh){Ff.insertNode(kh)},insertText(Ff,kh){Ff.insertText(kh)},isBlock:(Ff,kh)=>Sf.isElement(kh)&&!Ff.isInline(kh),isEditor(Ff){if(!Ll(Ff))return!1;var kh=kf.get(Ff);if(kh!==void 0)return kh;var x_=typeof Ff.addMark=="function"&&typeof Ff.apply=="function"&&typeof Ff.deleteBackward=="function"&&typeof Ff.deleteForward=="function"&&typeof Ff.deleteFragment=="function"&&typeof Ff.insertBreak=="function"&&typeof Ff.insertFragment=="function"&&typeof Ff.insertNode=="function"&&typeof Ff.insertText=="function"&&typeof Ff.isInline=="function"&&typeof Ff.isVoid=="function"&&typeof Ff.normalizeNode=="function"&&typeof Ff.onChange=="function"&&typeof Ff.removeMark=="function"&&(Ff.marks===null||Ll(Ff.marks))&&(Ff.selection===null||qf.isRange(Ff.selection))&&Nf.isNodeList(Ff.children)&&Rf.isOperationList(Ff.operations);return kf.set(Ff,x_),x_},isEnd(Ff,kh,x_){var $_=Bf.end(Ff,x_);return Vf.equals(kh,$_)},isEdge:(Ff,kh,x_)=>Bf.isStart(Ff,kh,x_)||Bf.isEnd(Ff,kh,x_),isEmpty(Ff,kh){var{children:x_}=kh,[$_]=x_;return x_.length===0||x_.length===1&&ed.isText($_)&&$_.text===""&&!Ff.isVoid(kh)},isInline:(Ff,kh)=>Sf.isElement(kh)&&Ff.isInline(kh),isNormalizing(Ff){var kh=Mc.get(Ff);return kh===void 0||kh},isStart(Ff,kh,x_){if(kh.offset!==0)return!1;var $_=Bf.start(Ff,x_);return Vf.equals(kh,$_)},isVoid:(Ff,kh)=>Sf.isElement(kh)&&Ff.isVoid(kh),last(Ff,kh){var x_=Bf.path(Ff,kh,{edge:"end"});return Bf.node(Ff,x_)},leaf(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$_=Bf.path(Ff,kh,x_);return[Nf.leaf(Ff,$_),$_]},*levels(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:x_=Ff.selection,reverse:$_=!1,voids:B_=!1}=kh,{match:$P}=kh;if($P==null&&($P=()=>!0),x_){var zP=[],eme=Bf.path(Ff,x_);for(var[tme,nme]of Nf.levels(Ff,eme))if($P(tme,nme)&&(zP.push([tme,nme]),!B_&&Bf.isVoid(Ff,tme)))break;$_&&zP.reverse(),yield*zP}},marks(Ff){var{marks:kh,selection:x_}=Ff;if(!x_)return null;if(kh)return kh;if(qf.isExpanded(x_)){var[$_]=Bf.nodes(Ff,{match:ed.isText});if($_){var[B_]=$_;return qc(B_,xf)}return{}}var{anchor:$P}=x_,{path:zP}=$P,[eme]=Bf.leaf(Ff,zP);if($P.offset===0){var tme=Bf.previous(Ff,{at:zP,match:ed.isText}),nme=Bf.above(Ff,{match:ime=>Bf.isBlock(Ff,ime)});if(tme&&nme){var[rme,ame]=tme,[,ome]=nme;Mf.isAncestor(ome,ame)&&(eme=rme)}}return qc(eme,Cf)},next(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:x_="lowest",voids:$_=!1}=kh,{match:B_,at:$P=Ff.selection}=kh;if($P){var zP=Bf.after(Ff,$P,{voids:$_});if(zP){var[,eme]=Bf.last(Ff,[]),tme=[zP.path,eme];if(Mf.isPath($P)&&$P.length===0)throw new Error("Cannot get the next node from the root node!");if(B_==null)if(Mf.isPath($P)){var[nme]=Bf.parent(Ff,$P);B_=ame=>nme.children.includes(ame)}else B_=()=>!0;var[rme]=Bf.nodes(Ff,{at:tme,match:B_,mode:x_,voids:$_});return rme}}},node(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$_=Bf.path(Ff,kh,x_);return[Nf.get(Ff,$_),$_]},*nodes(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:x_=Ff.selection,mode:$_="all",universal:B_=!1,reverse:$P=!1,voids:zP=!1}=kh,{match:eme}=kh;if(eme||(eme=()=>!0),x_){var tme,nme;if(Tf.isSpan(x_))tme=x_[0],nme=x_[1];else{var rme=Bf.path(Ff,x_,{edge:"start"}),ame=Bf.path(Ff,x_,{edge:"end"});tme=$P?ame:rme,nme=$P?rme:ame}var ome,ime=Nf.nodes(Ff,{reverse:$P,from:tme,to:nme,pass:hme=>{var[pme]=hme;return!zP&&Bf.isVoid(Ff,pme)}}),cme=[];for(var[ume,sme]of ime){var fme=ome&&Mf.compare(sme,ome[1])===0;if($_!=="highest"||!fme){if(eme(ume,sme))if($_==="lowest"&&fme)ome=[ume,sme];else{var lme=$_==="lowest"?ome:[ume,sme];lme&&(B_?cme.push(lme):yield lme),ome=[ume,sme]}else if(B_&&!fme&&ed.isText(ume))return}}$_==="lowest"&&ome&&(B_?cme.push(ome):yield ome),B_&&(yield*cme)}},normalize(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:x_=!1}=kh,$_=$P=>Lc.get($P)||[];if(Bf.isNormalizing(Ff)){if(x_){var B_=Array.from(Nf.nodes(Ff),$P=>{var[,zP]=$P;return zP});Lc.set(Ff,B_)}$_(Ff).length!==0&&Bf.withoutNormalizing(Ff,()=>{for(var $P of $_(Ff))if(Nf.has(Ff,$P)){var zP=Bf.node(Ff,$P),[eme,tme]=zP;Sf.isElement(eme)&&eme.children.length===0&&Ff.normalizeNode(zP)}for(var nme=42*$_(Ff).length,rme=0;$_(Ff).length!==0;){if(rme>nme)throw new Error(`
450
450
  Could not completely normalize the editor after `.concat(nme,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
451
- `));var ame=$_(Ff).pop();if(Nf.has(Ff,ame)){var ome=Bf.node(Ff,ame);Ff.normalizeNode(ome)}rme++}})}},parent(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$_=Bf.path(Ff,kh,x_),B_=Mf.parent($_);return Bf.node(Ff,B_)},path(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:$_,edge:B_}=x_;if(Mf.isPath(kh)){if(B_==="start"){var[,$P]=Nf.first(Ff,kh);kh=$P}else if(B_==="end"){var[,zP]=Nf.last(Ff,kh);kh=zP}}return qf.isRange(kh)&&(kh=B_==="start"?qf.start(kh):B_==="end"?qf.end(kh):Mf.common(kh.anchor.path,kh.focus.path)),Vf.isPoint(kh)&&(kh=kh.path),$_!=null&&(kh=kh.slice(0,$_)),kh},hasPath:(Ff,kh)=>Nf.has(Ff,kh),pathRef(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:$_="forward"}=x_,B_={current:kh,affinity:$_,unref(){var{current:$P}=B_;return Bf.pathRefs(Ff).delete(B_),B_.current=null,$P}};return Bf.pathRefs(Ff).add(B_),B_},pathRefs(Ff){var kh=zc.get(Ff);return kh||(kh=new Set,zc.set(Ff,kh)),kh},point(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:$_="start"}=x_;if(Mf.isPath(kh)){var B_;if($_==="end"){var[,$P]=Nf.last(Ff,kh);B_=$P}else{var[,zP]=Nf.first(Ff,kh);B_=zP}var eme=Nf.get(Ff,B_);if(!ed.isText(eme))throw new Error("Cannot get the ".concat($_," point in the node at path [").concat(kh,"] because it has no ").concat($_," text node."));return{path:B_,offset:$_==="end"?eme.text.length:0}}if(qf.isRange(kh)){var[tme,nme]=qf.edges(kh);return $_==="start"?tme:nme}return kh},pointRef(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:$_="forward"}=x_,B_={current:kh,affinity:$_,unref(){var{current:$P}=B_;return Bf.pointRefs(Ff).delete(B_),B_.current=null,$P}};return Bf.pointRefs(Ff).add(B_),B_},pointRefs(Ff){var kh=$c.get(Ff);return kh||(kh=new Set,$c.set(Ff,kh)),kh},*positions(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:x_=Ff.selection,unit:$_="offset",reverse:B_=!1,voids:$P=!1}=kh;if(x_){var zP=Bf.range(Ff,x_),[eme,tme]=qf.edges(zP),nme=B_?tme:eme,rme=!1,ame="",ome=0,ime=0,cme=0;for(var[ume,sme]of Bf.nodes(Ff,{at:x_,reverse:B_,voids:$P})){if(Sf.isElement(ume)){if(!$P&&Ff.isVoid(ume)){yield Bf.start(Ff,sme);continue}if(Ff.isInline(ume))continue;if(Bf.hasInlines(Ff,ume)){var fme=Mf.isAncestor(sme,tme.path)?tme:Bf.end(Ff,sme),lme=Mf.isAncestor(sme,eme.path)?eme:Bf.start(Ff,sme);ame=Bf.string(Ff,{anchor:lme,focus:fme},{voids:$P}),rme=!0}}if(ed.isText(ume)){var hme=Mf.equals(sme,nme.path);for(hme?(ime=B_?nme.offset:ume.text.length-nme.offset,cme=nme.offset):(ime=ume.text.length,cme=B_?ime:0),(hme||rme||$_==="offset")&&(yield{path:sme,offset:cme},rme=!1);;){if(ome===0){if(ame==="")break;ome=pme(ame,$_,B_),ame=Qc(ame,ome,B_)[1]}if(cme=B_?cme-ome:cme+ome,(ime-=ome)<0){ome=-ime;break}ome=0,yield{path:sme,offset:cme}}}}}function pme(gme,yme,mme){return yme==="character"?Yc(gme,mme):yme==="word"?function(bme){for(var Sme=arguments.length>1&&arguments[1]!==void 0&&arguments[1],_me=0,Cme=!1;bme.length>0;){var Eme=Yc(bme,Sme),[Tme,Rme]=Qc(bme,Eme,Sme);if(ef(Tme,Rme,Sme))Cme=!0,_me+=Eme;else{if(Cme)break;_me+=Eme}bme=Rme}return _me}(gme,mme):yme==="line"||yme==="block"?gme.length:1}},previous(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:x_="lowest",voids:$_=!1}=kh,{match:B_,at:$P=Ff.selection}=kh;if($P){var zP=Bf.before(Ff,$P,{voids:$_});if(zP){var[,eme]=Bf.first(Ff,[]),tme=[zP.path,eme];if(Mf.isPath($P)&&$P.length===0)throw new Error("Cannot get the previous node from the root node!");if(B_==null)if(Mf.isPath($P)){var[nme]=Bf.parent(Ff,$P);B_=ame=>nme.children.includes(ame)}else B_=()=>!0;var[rme]=Bf.nodes(Ff,{reverse:!0,at:tme,match:B_,mode:x_,voids:$_});return rme}}},range:(Ff,kh,x_)=>qf.isRange(kh)&&!x_?kh:{anchor:Bf.start(Ff,kh),focus:Bf.end(Ff,x_||kh)},rangeRef(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:$_="forward"}=x_,B_={current:kh,affinity:$_,unref(){var{current:$P}=B_;return Bf.rangeRefs(Ff).delete(B_),B_.current=null,$P}};return Bf.rangeRefs(Ff).add(B_),B_},rangeRefs(Ff){var kh=Hc.get(Ff);return kh||(kh=new Set,Hc.set(Ff,kh)),kh},removeMark(Ff,kh){Ff.removeMark(kh)},setNormalizing(Ff,kh){Mc.set(Ff,kh)},start:(Ff,kh)=>Bf.point(Ff,kh,{edge:"start"}),string(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:$_=!1}=x_,B_=Bf.range(Ff,kh),[$P,zP]=qf.edges(B_),eme="";for(var[tme,nme]of Bf.nodes(Ff,{at:B_,match:ed.isText,voids:$_})){var rme=tme.text;Mf.equals(nme,zP.path)&&(rme=rme.slice(0,zP.offset)),Mf.equals(nme,$P.path)&&(rme=rme.slice($P.offset)),eme+=rme}return eme},unhangRange(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:$_=!1}=x_,[B_,$P]=qf.edges(kh);if(B_.offset!==0||$P.offset!==0||qf.isCollapsed(kh))return kh;var zP=Bf.above(Ff,{at:$P,match:ome=>Bf.isBlock(Ff,ome)}),eme=zP?zP[1]:[],tme={anchor:Bf.start(Ff,[]),focus:$P},nme=!0;for(var[rme,ame]of Bf.nodes(Ff,{at:tme,match:ed.isText,reverse:!0,voids:$_}))if(nme)nme=!1;else if(rme.text!==""||Mf.isBefore(ame,eme)){$P={path:ame,offset:rme.text.length};break}return{anchor:B_,focus:$P}},void(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Bf.above(Ff,Of(Of({},kh),{},{match:x_=>Bf.isVoid(Ff,x_)}))},withoutNormalizing(Ff,kh){var x_=Bf.isNormalizing(Ff);Bf.setNormalizing(Ff,!1);try{kh()}finally{Bf.setNormalizing(Ff,x_)}Bf.normalize(Ff)}},Tf={isSpan:Ff=>Array.isArray(Ff)&&Ff.length===2&&Ff.every(Mf.isPath)},_f=["children"],Pf=["text"],jf=new WeakMap,Nf={ancestor(Ff,kh){var x_=Nf.get(Ff,kh);if(ed.isText(x_))throw new Error("Cannot get the ancestor node at path [".concat(kh,"] because it refers to a text node instead: ").concat(x_));return x_},*ancestors(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var $_ of Mf.ancestors(kh,x_)){var B_=[Nf.ancestor(Ff,$_),$_];yield B_}},child(Ff,kh){if(ed.isText(Ff))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(Ff)));var x_=Ff.children[kh];if(x_==null)throw new Error("Cannot get child at index `".concat(kh,"` in node: ").concat(JSON.stringify(Ff)));return x_},*children(Ff,kh){for(var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:$_=!1}=x_,B_=Nf.ancestor(Ff,kh),{children:$P}=B_,zP=$_?$P.length-1:0;$_?zP>=0:zP<$P.length;){var eme=Nf.child(B_,zP),tme=kh.concat(zP);yield[eme,tme],zP=$_?zP-1:zP+1}},common(Ff,kh,x_){var $_=Mf.common(kh,x_);return[Nf.get(Ff,$_),$_]},descendant(Ff,kh){var x_=Nf.get(Ff,kh);if(Bf.isEditor(x_))throw new Error("Cannot get the descendant node at path [".concat(kh,"] because it refers to the root editor node instead: ").concat(x_));return x_},*descendants(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[x_,$_]of Nf.nodes(Ff,kh))$_.length!==0&&(yield[x_,$_])},*elements(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[x_,$_]of Nf.nodes(Ff,kh))Sf.isElement(x_)&&(yield[x_,$_])},extractProps:Ff=>Sf.isAncestor(Ff)?qc(Ff,_f):qc(Ff,Pf),first(Ff,kh){for(var x_=kh.slice(),$_=Nf.get(Ff,x_);$_&&!ed.isText($_)&&$_.children.length!==0;)$_=$_.children[0],x_.push(0);return[$_,x_]},fragment(Ff,kh){if(ed.isText(Ff))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(Ff)));var x_=Pc({children:Ff.children},$_=>{var[B_,$P]=qf.edges(kh),zP=Nf.nodes($_,{reverse:!0,pass:ome=>{var[,ime]=ome;return!qf.includes(kh,ime)}});for(var[,eme]of zP){if(!qf.includes(kh,eme)){var tme=Nf.parent($_,eme),nme=eme[eme.length-1];tme.children.splice(nme,1)}if(Mf.equals(eme,$P.path)){var rme=Nf.leaf($_,eme);rme.text=rme.text.slice(0,$P.offset)}if(Mf.equals(eme,B_.path)){var ame=Nf.leaf($_,eme);ame.text=ame.text.slice(B_.offset)}}Bf.isEditor($_)&&($_.selection=null)});return x_.children},get(Ff,kh){for(var x_=Ff,$_=0;$_<kh.length;$_++){var B_=kh[$_];if(ed.isText(x_)||!x_.children[B_])throw new Error("Cannot find a descendant at path [".concat(kh,"] in node: ").concat(JSON.stringify(Ff)));x_=x_.children[B_]}return x_},has(Ff,kh){for(var x_=Ff,$_=0;$_<kh.length;$_++){var B_=kh[$_];if(ed.isText(x_)||!x_.children[B_])return!1;x_=x_.children[B_]}return!0},isNode:Ff=>ed.isText(Ff)||Sf.isElement(Ff)||Bf.isEditor(Ff),isNodeList(Ff){if(!Array.isArray(Ff))return!1;var kh=jf.get(Ff);if(kh!==void 0)return kh;var x_=Ff.every($_=>Nf.isNode($_));return jf.set(Ff,x_),x_},last(Ff,kh){for(var x_=kh.slice(),$_=Nf.get(Ff,x_);$_&&!ed.isText($_)&&$_.children.length!==0;){var B_=$_.children.length-1;$_=$_.children[B_],x_.push(B_)}return[$_,x_]},leaf(Ff,kh){var x_=Nf.get(Ff,kh);if(!ed.isText(x_))throw new Error("Cannot get the leaf node at path [".concat(kh,"] because it refers to a non-leaf node: ").concat(x_));return x_},*levels(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var $_ of Mf.levels(kh,x_)){var B_=Nf.get(Ff,$_);yield[B_,$_]}},matches:(Ff,kh)=>Sf.isElement(Ff)&&Sf.isElementProps(kh)&&Sf.matches(Ff,kh)||ed.isText(Ff)&&ed.isTextProps(kh)&&ed.matches(Ff,kh),*nodes(Ff){for(var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:x_,reverse:$_=!1}=kh,{from:B_=[],to:$P}=kh,zP=new Set,eme=[],tme=Ff;!$P||!($_?Mf.isBefore(eme,$P):Mf.isAfter(eme,$P));)if(zP.has(tme)||(yield[tme,eme]),zP.has(tme)||ed.isText(tme)||tme.children.length===0||x_!=null&&x_([tme,eme])!==!1){if(eme.length===0)break;if(!$_){var nme=Mf.next(eme);if(Nf.has(Ff,nme)){eme=nme,tme=Nf.get(Ff,eme);continue}}$_&&eme[eme.length-1]!==0?(eme=Mf.previous(eme),tme=Nf.get(Ff,eme)):(eme=Mf.parent(eme),tme=Nf.get(Ff,eme),zP.add(tme))}else{zP.add(tme);var rme=$_?tme.children.length-1:0;Mf.isAncestor(eme,B_)&&(rme=B_[eme.length]),eme=eme.concat(rme),tme=Nf.get(Ff,eme)}},parent(Ff,kh){var x_=Mf.parent(kh),$_=Nf.get(Ff,x_);if(ed.isText($_))throw new Error("Cannot get the parent of path [".concat(kh,"] because it does not exist in the root."));return $_},string:Ff=>ed.isText(Ff)?Ff.text:Ff.children.map(Nf.string).join(""),*texts(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[x_,$_]of Nf.nodes(Ff,kh))ed.isText(x_)&&(yield[x_,$_])}};function If(Ff,kh){var x_=Object.keys(Ff);if(Object.getOwnPropertySymbols){var $_=Object.getOwnPropertySymbols(Ff);kh&&($_=$_.filter(function(B_){return Object.getOwnPropertyDescriptor(Ff,B_).enumerable})),x_.push.apply(x_,$_)}return x_}function Lf(Ff){for(var kh=1;kh<arguments.length;kh++){var x_=arguments[kh]!=null?arguments[kh]:{};kh%2?If(Object(x_),!0).forEach(function($_){Ic(Ff,$_,x_[$_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ff,Object.getOwnPropertyDescriptors(x_)):If(Object(x_)).forEach(function($_){Object.defineProperty(Ff,$_,Object.getOwnPropertyDescriptor(x_,$_))})}return Ff}var Rf={isNodeOperation:Ff=>Rf.isOperation(Ff)&&Ff.type.endsWith("_node"),isOperation(Ff){if(!Ll(Ff))return!1;switch(Ff.type){case"insert_node":case"remove_node":return Mf.isPath(Ff.path)&&Nf.isNode(Ff.node);case"insert_text":case"remove_text":return typeof Ff.offset=="number"&&typeof Ff.text=="string"&&Mf.isPath(Ff.path);case"merge_node":return typeof Ff.position=="number"&&Mf.isPath(Ff.path)&&Ll(Ff.properties);case"move_node":return Mf.isPath(Ff.path)&&Mf.isPath(Ff.newPath);case"set_node":return Mf.isPath(Ff.path)&&Ll(Ff.properties)&&Ll(Ff.newProperties);case"set_selection":return Ff.properties===null&&qf.isRange(Ff.newProperties)||Ff.newProperties===null&&qf.isRange(Ff.properties)||Ll(Ff.properties)&&Ll(Ff.newProperties);case"split_node":return Mf.isPath(Ff.path)&&typeof Ff.position=="number"&&Ll(Ff.properties);default:return!1}},isOperationList:Ff=>Array.isArray(Ff)&&Ff.every(kh=>Rf.isOperation(kh)),isSelectionOperation:Ff=>Rf.isOperation(Ff)&&Ff.type.endsWith("_selection"),isTextOperation:Ff=>Rf.isOperation(Ff)&&Ff.type.endsWith("_text"),inverse(Ff){switch(Ff.type){case"insert_node":return Lf(Lf({},Ff),{},{type:"remove_node"});case"insert_text":return Lf(Lf({},Ff),{},{type:"remove_text"});case"merge_node":return Lf(Lf({},Ff),{},{type:"split_node",path:Mf.previous(Ff.path)});case"move_node":var{newPath:kh,path:x_}=Ff;if(Mf.equals(kh,x_))return Ff;if(Mf.isSibling(x_,kh))return Lf(Lf({},Ff),{},{path:kh,newPath:x_});var $_=Mf.transform(x_,Ff),B_=Mf.transform(Mf.next(x_),Ff);return Lf(Lf({},Ff),{},{path:$_,newPath:B_});case"remove_node":return Lf(Lf({},Ff),{},{type:"insert_node"});case"remove_text":return Lf(Lf({},Ff),{},{type:"insert_text"});case"set_node":var{properties:$P,newProperties:zP}=Ff;return Lf(Lf({},Ff),{},{properties:zP,newProperties:$P});case"set_selection":var{properties:eme,newProperties:tme}=Ff;return Lf(Lf({},Ff),{},eme==null?{properties:tme,newProperties:null}:tme==null?{properties:null,newProperties:eme}:{properties:tme,newProperties:eme});case"split_node":return Lf(Lf({},Ff),{},{type:"merge_node",path:Mf.next(Ff.path)})}}},Mf={ancestors(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:x_=!1}=kh,$_=Mf.levels(Ff,kh);return $_=x_?$_.slice(1):$_.slice(0,-1)},common(Ff,kh){for(var x_=[],$_=0;$_<Ff.length&&$_<kh.length;$_++){var B_=Ff[$_];if(B_!==kh[$_])break;x_.push(B_)}return x_},compare(Ff,kh){for(var x_=Math.min(Ff.length,kh.length),$_=0;$_<x_;$_++){if(Ff[$_]<kh[$_])return-1;if(Ff[$_]>kh[$_])return 1}return 0},endsAfter(Ff,kh){var x_=Ff.length-1,$_=Ff.slice(0,x_),B_=kh.slice(0,x_),$P=Ff[x_],zP=kh[x_];return Mf.equals($_,B_)&&$P>zP},endsAt(Ff,kh){var x_=Ff.length,$_=Ff.slice(0,x_),B_=kh.slice(0,x_);return Mf.equals($_,B_)},endsBefore(Ff,kh){var x_=Ff.length-1,$_=Ff.slice(0,x_),B_=kh.slice(0,x_),$P=Ff[x_],zP=kh[x_];return Mf.equals($_,B_)&&$P<zP},equals:(Ff,kh)=>Ff.length===kh.length&&Ff.every((x_,$_)=>x_===kh[$_]),hasPrevious:Ff=>Ff[Ff.length-1]>0,isAfter:(Ff,kh)=>Mf.compare(Ff,kh)===1,isAncestor:(Ff,kh)=>Ff.length<kh.length&&Mf.compare(Ff,kh)===0,isBefore:(Ff,kh)=>Mf.compare(Ff,kh)===-1,isChild:(Ff,kh)=>Ff.length===kh.length+1&&Mf.compare(Ff,kh)===0,isCommon:(Ff,kh)=>Ff.length<=kh.length&&Mf.compare(Ff,kh)===0,isDescendant:(Ff,kh)=>Ff.length>kh.length&&Mf.compare(Ff,kh)===0,isParent:(Ff,kh)=>Ff.length+1===kh.length&&Mf.compare(Ff,kh)===0,isPath:Ff=>Array.isArray(Ff)&&(Ff.length===0||typeof Ff[0]=="number"),isSibling(Ff,kh){if(Ff.length!==kh.length)return!1;var x_=Ff.slice(0,-1),$_=kh.slice(0,-1);return Ff[Ff.length-1]!==kh[kh.length-1]&&Mf.equals(x_,$_)},levels(Ff){for(var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:x_=!1}=kh,$_=[],B_=0;B_<=Ff.length;B_++)$_.push(Ff.slice(0,B_));return x_&&$_.reverse(),$_},next(Ff){if(Ff.length===0)throw new Error("Cannot get the next path of a root path [".concat(Ff,"], because it has no next index."));var kh=Ff[Ff.length-1];return Ff.slice(0,-1).concat(kh+1)},parent(Ff){if(Ff.length===0)throw new Error("Cannot get the parent path of the root path [".concat(Ff,"]."));return Ff.slice(0,-1)},previous(Ff){if(Ff.length===0)throw new Error("Cannot get the previous path of a root path [".concat(Ff,"], because it has no previous index."));var kh=Ff[Ff.length-1];if(kh<=0)throw new Error("Cannot get the previous path of a first child path [".concat(Ff,"] because it would result in a negative index."));return Ff.slice(0,-1).concat(kh-1)},relative(Ff,kh){if(!Mf.isAncestor(kh,Ff)&&!Mf.equals(Ff,kh))throw new Error("Cannot get the relative path of [".concat(Ff,"] inside ancestor [").concat(kh,"], because it is not above or equal to the path."));return Ff.slice(kh.length)},transform(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Pc(Ff,$_=>{var{affinity:B_="forward"}=x_;if(Ff&&(Ff==null?void 0:Ff.length)!==0){if($_===null)return null;switch(kh.type){case"insert_node":var{path:$P}=kh;(Mf.equals($P,$_)||Mf.endsBefore($P,$_)||Mf.isAncestor($P,$_))&&($_[$P.length-1]+=1);break;case"remove_node":var{path:zP}=kh;if(Mf.equals(zP,$_)||Mf.isAncestor(zP,$_))return null;Mf.endsBefore(zP,$_)&&($_[zP.length-1]-=1);break;case"merge_node":var{path:eme,position:tme}=kh;Mf.equals(eme,$_)||Mf.endsBefore(eme,$_)?$_[eme.length-1]-=1:Mf.isAncestor(eme,$_)&&($_[eme.length-1]-=1,$_[eme.length]+=tme);break;case"split_node":var{path:nme,position:rme}=kh;if(Mf.equals(nme,$_)){if(B_==="forward")$_[$_.length-1]+=1;else if(B_!=="backward")return null}else Mf.endsBefore(nme,$_)?$_[nme.length-1]+=1:Mf.isAncestor(nme,$_)&&Ff[nme.length]>=rme&&($_[nme.length-1]+=1,$_[nme.length]-=rme);break;case"move_node":var{path:ame,newPath:ome}=kh;if(Mf.equals(ame,ome))return;if(Mf.isAncestor(ame,$_)||Mf.equals(ame,$_)){var ime=ome.slice();return Mf.endsBefore(ame,ome)&&ame.length<ome.length&&(ime[ame.length-1]-=1),ime.concat($_.slice(ame.length))}Mf.isSibling(ame,ome)&&(Mf.isAncestor(ome,$_)||Mf.equals(ome,$_))?Mf.endsBefore(ame,$_)?$_[ame.length-1]-=1:$_[ame.length-1]+=1:Mf.endsBefore(ome,$_)||Mf.equals(ome,$_)||Mf.isAncestor(ome,$_)?(Mf.endsBefore(ame,$_)&&($_[ame.length-1]-=1),$_[ome.length-1]+=1):Mf.endsBefore(ame,$_)&&(Mf.equals(ome,$_)&&($_[ome.length-1]+=1),$_[ame.length-1]-=1)}}})}},zf={transform(Ff,kh){var{current:x_,affinity:$_}=Ff;if(x_!=null){var B_=Mf.transform(x_,kh,{affinity:$_});Ff.current=B_,B_==null&&Ff.unref()}}};function $f(Ff,kh){var x_=Object.keys(Ff);if(Object.getOwnPropertySymbols){var $_=Object.getOwnPropertySymbols(Ff);kh&&($_=$_.filter(function(B_){return Object.getOwnPropertyDescriptor(Ff,B_).enumerable})),x_.push.apply(x_,$_)}return x_}function Hf(Ff){for(var kh=1;kh<arguments.length;kh++){var x_=arguments[kh]!=null?arguments[kh]:{};kh%2?$f(Object(x_),!0).forEach(function($_){Ic(Ff,$_,x_[$_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ff,Object.getOwnPropertyDescriptors(x_)):$f(Object(x_)).forEach(function($_){Object.defineProperty(Ff,$_,Object.getOwnPropertyDescriptor(x_,$_))})}return Ff}var Vf={compare(Ff,kh){var x_=Mf.compare(Ff.path,kh.path);return x_===0?Ff.offset<kh.offset?-1:Ff.offset>kh.offset?1:0:x_},isAfter:(Ff,kh)=>Vf.compare(Ff,kh)===1,isBefore:(Ff,kh)=>Vf.compare(Ff,kh)===-1,equals:(Ff,kh)=>Ff.offset===kh.offset&&Mf.equals(Ff.path,kh.path),isPoint:Ff=>Ll(Ff)&&typeof Ff.offset=="number"&&Mf.isPath(Ff.path),transform(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Pc(Ff,$_=>{if($_===null)return null;var{affinity:B_="forward"}=x_,{path:$P,offset:zP}=$_;switch(kh.type){case"insert_node":case"move_node":$_.path=Mf.transform($P,kh,x_);break;case"insert_text":Mf.equals(kh.path,$P)&&kh.offset<=zP&&($_.offset+=kh.text.length);break;case"merge_node":Mf.equals(kh.path,$P)&&($_.offset+=kh.position),$_.path=Mf.transform($P,kh,x_);break;case"remove_text":Mf.equals(kh.path,$P)&&kh.offset<=zP&&($_.offset-=Math.min(zP-kh.offset,kh.text.length));break;case"remove_node":if(Mf.equals(kh.path,$P)||Mf.isAncestor(kh.path,$P))return null;$_.path=Mf.transform($P,kh,x_);break;case"split_node":if(Mf.equals(kh.path,$P)){if(kh.position===zP&&B_==null)return null;(kh.position<zP||kh.position===zP&&B_==="forward")&&($_.offset-=kh.position,$_.path=Mf.transform($P,kh,Hf(Hf({},x_),{},{affinity:"forward"})))}else $_.path=Mf.transform($P,kh,x_)}})}},Uf={transform(Ff,kh){var{current:x_,affinity:$_}=Ff;if(x_!=null){var B_=Vf.transform(x_,kh,{affinity:$_});Ff.current=B_,B_==null&&Ff.unref()}}},Wf=["anchor","focus"];function Gf(Ff,kh){var x_=Object.keys(Ff);if(Object.getOwnPropertySymbols){var $_=Object.getOwnPropertySymbols(Ff);kh&&($_=$_.filter(function(B_){return Object.getOwnPropertyDescriptor(Ff,B_).enumerable})),x_.push.apply(x_,$_)}return x_}var qf={edges(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:x_=!1}=kh,{anchor:$_,focus:B_}=Ff;return qf.isBackward(Ff)===x_?[$_,B_]:[B_,$_]},end(Ff){var[,kh]=qf.edges(Ff);return kh},equals:(Ff,kh)=>Vf.equals(Ff.anchor,kh.anchor)&&Vf.equals(Ff.focus,kh.focus),includes(Ff,kh){if(qf.isRange(kh)){if(qf.includes(Ff,kh.anchor)||qf.includes(Ff,kh.focus))return!0;var[x_,$_]=qf.edges(Ff),[B_,$P]=qf.edges(kh);return Vf.isBefore(x_,B_)&&Vf.isAfter($_,$P)}var[zP,eme]=qf.edges(Ff),tme=!1,nme=!1;return Vf.isPoint(kh)?(tme=Vf.compare(kh,zP)>=0,nme=Vf.compare(kh,eme)<=0):(tme=Mf.compare(kh,zP.path)>=0,nme=Mf.compare(kh,eme.path)<=0),tme&&nme},intersection(Ff,kh){var x_=qc(Ff,Wf),[$_,B_]=qf.edges(Ff),[$P,zP]=qf.edges(kh),eme=Vf.isBefore($_,$P)?$P:$_,tme=Vf.isBefore(B_,zP)?B_:zP;return Vf.isBefore(tme,eme)?null:function(nme){for(var rme=1;rme<arguments.length;rme++){var ame=arguments[rme]!=null?arguments[rme]:{};rme%2?Gf(Object(ame),!0).forEach(function(ome){Ic(nme,ome,ame[ome])}):Object.getOwnPropertyDescriptors?Object.defineProperties(nme,Object.getOwnPropertyDescriptors(ame)):Gf(Object(ame)).forEach(function(ome){Object.defineProperty(nme,ome,Object.getOwnPropertyDescriptor(ame,ome))})}return nme}({anchor:eme,focus:tme},x_)},isBackward(Ff){var{anchor:kh,focus:x_}=Ff;return Vf.isAfter(kh,x_)},isCollapsed(Ff){var{anchor:kh,focus:x_}=Ff;return Vf.equals(kh,x_)},isExpanded:Ff=>!qf.isCollapsed(Ff),isForward:Ff=>!qf.isBackward(Ff),isRange:Ff=>Ll(Ff)&&Vf.isPoint(Ff.anchor)&&Vf.isPoint(Ff.focus),*points(Ff){yield[Ff.anchor,"anchor"],yield[Ff.focus,"focus"]},start(Ff){var[kh]=qf.edges(Ff);return kh},transform(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Pc(Ff,$_=>{if($_===null)return null;var B_,$P,{affinity:zP="inward"}=x_;if(zP==="inward"){var eme=qf.isCollapsed($_);qf.isForward($_)?(B_="forward",$P=eme?B_:"backward"):(B_="backward",$P=eme?B_:"forward")}else zP==="outward"?qf.isForward($_)?(B_="backward",$P="forward"):(B_="forward",$P="backward"):(B_=zP,$P=zP);var tme=Vf.transform($_.anchor,kh,{affinity:B_}),nme=Vf.transform($_.focus,kh,{affinity:$P});if(!tme||!nme)return null;$_.anchor=tme,$_.focus=nme})}},Kf={transform(Ff,kh){var{current:x_,affinity:$_}=Ff;if(x_!=null){var B_=qf.transform(x_,kh,{affinity:$_});Ff.current=B_,B_==null&&Ff.unref()}}},Yf=(Ff,kh)=>{for(var x_ in Ff){var $_=Ff[x_],B_=kh[x_];if(Ll($_)&&Ll(B_)){if(!Yf($_,B_))return!1}else if(Array.isArray($_)&&Array.isArray(B_)){if($_.length!==B_.length)return!1;for(var $P=0;$P<$_.length;$P++)if($_[$P]!==B_[$P])return!1}else if($_!==B_)return!1}for(var zP in kh)if(Ff[zP]===void 0&&kh[zP]!==void 0)return!1;return!0},Xf=["text"],Zf=["anchor","focus"];function Jf(Ff,kh){var x_=Object.keys(Ff);if(Object.getOwnPropertySymbols){var $_=Object.getOwnPropertySymbols(Ff);kh&&($_=$_.filter(function(B_){return Object.getOwnPropertyDescriptor(Ff,B_).enumerable})),x_.push.apply(x_,$_)}return x_}function Qf(Ff){for(var kh=1;kh<arguments.length;kh++){var x_=arguments[kh]!=null?arguments[kh]:{};kh%2?Jf(Object(x_),!0).forEach(function($_){Ic(Ff,$_,x_[$_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ff,Object.getOwnPropertyDescriptors(x_)):Jf(Object(x_)).forEach(function($_){Object.defineProperty(Ff,$_,Object.getOwnPropertyDescriptor(x_,$_))})}return Ff}var ed={equals(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:$_=!1}=x_;function B_($P){return qc($P,Xf)}return Yf($_?B_(Ff):Ff,$_?B_(kh):kh)},isText:Ff=>Ll(Ff)&&typeof Ff.text=="string",isTextList:Ff=>Array.isArray(Ff)&&Ff.every(kh=>ed.isText(kh)),isTextProps:Ff=>Ff.text!==void 0,matches(Ff,kh){for(var x_ in kh)if(x_!=="text"&&(!Ff.hasOwnProperty(x_)||Ff[x_]!==kh[x_]))return!1;return!0},decorations(Ff,kh){var x_=[Qf({},Ff)];for(var $_ of kh){var B_=qc($_,Zf),[$P,zP]=qf.edges($_),eme=[],tme=0;for(var nme of x_){var{length:rme}=nme.text,ame=tme;if(tme+=rme,$P.offset<=ame&&zP.offset>=tme)Object.assign(nme,B_),eme.push(nme);else if($P.offset!==zP.offset&&($P.offset===tme||zP.offset===ame)||$P.offset>tme||zP.offset<ame||zP.offset===ame&&ame!==0)eme.push(nme);else{var ome=nme,ime=void 0,cme=void 0;if(zP.offset<tme){var ume=zP.offset-ame;cme=Qf(Qf({},ome),{},{text:ome.text.slice(ume)}),ome=Qf(Qf({},ome),{},{text:ome.text.slice(0,ume)})}if($P.offset>ame){var sme=$P.offset-ame;ime=Qf(Qf({},ome),{},{text:ome.text.slice(0,sme)}),ome=Qf(Qf({},ome),{},{text:ome.text.slice(sme)})}Object.assign(ome,B_),ime&&eme.push(ime),eme.push(ome),cme&&eme.push(cme)}}x_=eme}return x_}};function td(Ff,kh){var x_=Object.keys(Ff);if(Object.getOwnPropertySymbols){var $_=Object.getOwnPropertySymbols(Ff);kh&&($_=$_.filter(function(B_){return Object.getOwnPropertyDescriptor(Ff,B_).enumerable})),x_.push.apply(x_,$_)}return x_}function nd(Ff){for(var kh=1;kh<arguments.length;kh++){var x_=arguments[kh]!=null?arguments[kh]:{};kh%2?td(Object(x_),!0).forEach(function($_){Ic(Ff,$_,x_[$_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ff,Object.getOwnPropertyDescriptors(x_)):td(Object(x_)).forEach(function($_){Object.defineProperty(Ff,$_,Object.getOwnPropertyDescriptor(x_,$_))})}return Ff}var rd={transform(Ff,kh){Ff.children=jc(Ff.children);var x_=Ff.selection&&jc(Ff.selection);try{x_=(($_,B_,$P)=>{switch($P.type){case"insert_node":var{path:zP,node:eme}=$P,tme=Nf.parent($_,zP),nme=zP[zP.length-1];if(nme>tme.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(zP,"] because the destination is past the end of the node."));if(tme.children.splice(nme,0,eme),B_)for(var[rme,ame]of qf.points(B_))B_[ame]=Vf.transform(rme,$P);break;case"insert_text":var{path:ome,offset:ime,text:cme}=$P;if(cme.length===0)break;var ume=Nf.leaf($_,ome),sme=ume.text.slice(0,ime),fme=ume.text.slice(ime);if(ume.text=sme+cme+fme,B_)for(var[lme,hme]of qf.points(B_))B_[hme]=Vf.transform(lme,$P);break;case"merge_node":var{path:pme}=$P,gme=Nf.get($_,pme),yme=Mf.previous(pme),mme=Nf.get($_,yme),bme=Nf.parent($_,pme),Sme=pme[pme.length-1];if(ed.isText(gme)&&ed.isText(mme))mme.text+=gme.text;else{if(ed.isText(gme)||ed.isText(mme))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(pme,"] to nodes of different interfaces: ").concat(gme," ").concat(mme));mme.children.push(...gme.children)}if(bme.children.splice(Sme,1),B_)for(var[_me,Cme]of qf.points(B_))B_[Cme]=Vf.transform(_me,$P);break;case"move_node":var{path:Eme,newPath:Tme}=$P;if(Mf.isAncestor(Eme,Tme))throw new Error("Cannot move a path [".concat(Eme,"] to new path [").concat(Tme,"] because the destination is inside itself."));var Rme=Nf.get($_,Eme),Pme=Nf.parent($_,Eme),$me=Eme[Eme.length-1];Pme.children.splice($me,1);var Dme=Mf.transform(Eme,$P),Mme=Nf.get($_,Mf.parent(Dme)),Nme=Dme[Dme.length-1];if(Mme.children.splice(Nme,0,Rme),B_)for(var[Ime,wme]of qf.points(B_))B_[wme]=Vf.transform(Ime,$P);break;case"remove_node":var{path:Ome}=$P,Ame=Ome[Ome.length-1];if(Nf.parent($_,Ome).children.splice(Ame,1),B_)for(var[Fme,Bme]of qf.points(B_)){var kme=Vf.transform(Fme,$P);if(B_!=null&&kme!=null)B_[Bme]=kme;else{var Lme=void 0,Hme=void 0;for(var[Wme,zme]of Nf.texts($_)){if(Mf.compare(zme,Ome)!==-1){Hme=[Wme,zme];break}Lme=[Wme,zme]}var Vme=!1;Lme&&Hme&&(Vme=Mf.equals(Hme[1],Ome)?!Mf.hasPrevious(Hme[1]):Mf.common(Lme[1],Ome).length<Mf.common(Hme[1],Ome).length),Lme&&!Vme?(Fme.path=Lme[1],Fme.offset=Lme[0].text.length):Hme?(Fme.path=Hme[1],Fme.offset=0):B_=null}}break;case"remove_text":var{path:Xme,offset:e0e,text:Ume}=$P;if(Ume.length===0)break;var Jme=Nf.leaf($_,Xme),s0e=Jme.text.slice(0,e0e),d0e=Jme.text.slice(e0e+Ume.length);if(Jme.text=s0e+d0e,B_)for(var[Zme,Qme]of qf.points(B_))B_[Qme]=Vf.transform(Zme,$P);break;case"set_node":var{path:a0e,properties:t0e,newProperties:o0e}=$P;if(a0e.length===0)throw new Error("Cannot set properties on the root node!");var g0e=Nf.get($_,a0e);for(var u0e in o0e){if(u0e==="children"||u0e==="text")throw new Error('Cannot set the "'.concat(u0e,'" property of nodes!'));var h0e=o0e[u0e];h0e==null?delete g0e[u0e]:g0e[u0e]=h0e}for(var E0e in t0e)o0e.hasOwnProperty(E0e)||delete g0e[E0e];break;case"set_selection":var{newProperties:P0e}=$P;if(P0e==null)B_=P0e;else{if(B_==null){if(!qf.isRange(P0e))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(P0e)," when there is no current selection."));B_=nd({},P0e)}for(var y0e in P0e){var $0e=P0e[y0e];if($0e==null){if(y0e==="anchor"||y0e==="focus")throw new Error('Cannot remove the "'.concat(y0e,'" selection property'));delete B_[y0e]}else B_[y0e]=$0e}}break;case"split_node":var{path:C0e,position:z0e,properties:D0e}=$P;if(C0e.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(C0e,"] because the root node cannot be split."));var O0e,b0e=Nf.get($_,C0e),k0e=Nf.parent($_,C0e),T0e=C0e[C0e.length-1];if(ed.isText(b0e)){var L0e=b0e.text.slice(0,z0e),Y0e=b0e.text.slice(z0e);b0e.text=L0e,O0e=nd(nd({},D0e),{},{text:Y0e})}else{var mye=b0e.children.slice(0,z0e),Q0e=b0e.children.slice(z0e);b0e.children=mye,O0e=nd(nd({},D0e),{},{children:Q0e})}if(k0e.children.splice(T0e+1,0,O0e),B_)for(var[U0e,q0e]of qf.points(B_))B_[q0e]=Vf.transform(U0e,$P)}return B_})(Ff,x_,kh)}finally{Ff.children=Nc(Ff.children),Ff.selection=x_?Ml(x_)?Nc(x_):x_:null}}},od=["text"],id=["children"];function ad(Ff,kh){var x_=Object.keys(Ff);if(Object.getOwnPropertySymbols){var $_=Object.getOwnPropertySymbols(Ff);kh&&($_=$_.filter(function(B_){return Object.getOwnPropertyDescriptor(Ff,B_).enumerable})),x_.push.apply(x_,$_)}return x_}function ud(Ff){for(var kh=1;kh<arguments.length;kh++){var x_=arguments[kh]!=null?arguments[kh]:{};kh%2?ad(Object(x_),!0).forEach(function($_){Ic(Ff,$_,x_[$_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ff,Object.getOwnPropertyDescriptors(x_)):ad(Object(x_)).forEach(function($_){Object.defineProperty(Ff,$_,Object.getOwnPropertyDescriptor(x_,$_))})}return Ff}var sd={insertNodes(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Bf.withoutNormalizing(Ff,()=>{var{hanging:$_=!1,voids:B_=!1,mode:$P="lowest"}=x_,{at:zP,match:eme,select:tme}=x_;if(Nf.isNode(kh)&&(kh=[kh]),kh.length!==0){var[nme]=kh;if(zP||(zP=Ff.selection?Ff.selection:Ff.children.length>0?Bf.end(Ff,[]):[0],tme=!0),tme==null&&(tme=!1),qf.isRange(zP))if($_||(zP=Bf.unhangRange(Ff,zP)),qf.isCollapsed(zP))zP=zP.anchor;else{var[,rme]=qf.edges(zP),ame=Bf.pointRef(Ff,rme);md.delete(Ff,{at:zP}),zP=ame.unref()}if(Vf.isPoint(zP)){eme==null&&(eme=ed.isText(nme)?yme=>ed.isText(yme):Ff.isInline(nme)?yme=>ed.isText(yme)||Bf.isInline(Ff,yme):yme=>Bf.isBlock(Ff,yme));var[ome]=Bf.nodes(Ff,{at:zP.path,match:eme,mode:$P,voids:B_});if(!ome)return;var[,ime]=ome,cme=Bf.pathRef(Ff,ime),ume=Bf.isEnd(Ff,zP,ime);md.splitNodes(Ff,{at:zP,match:eme,mode:$P,voids:B_});var sme=cme.unref();zP=ume?Mf.next(sme):sme}var fme=Mf.parent(zP),lme=zP[zP.length-1];if(B_||!Bf.void(Ff,{at:fme})){for(var hme of kh){var pme=fme.concat(lme);lme++,Ff.apply({type:"insert_node",path:pme,node:hme}),zP=Mf.next(zP)}if(zP=Mf.previous(zP),tme){var gme=Bf.end(Ff,zP);gme&&md.select(Ff,gme)}}}})},liftNodes(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bf.withoutNormalizing(Ff,()=>{var{at:x_=Ff.selection,mode:$_="lowest",voids:B_=!1}=kh,{match:$P}=kh;if($P==null&&($P=Mf.isPath(x_)?fd(Ff,x_):hme=>Bf.isBlock(Ff,hme)),x_){var zP=Bf.nodes(Ff,{at:x_,match:$P,mode:$_,voids:B_}),eme=Array.from(zP,hme=>{var[,pme]=hme;return Bf.pathRef(Ff,pme)});for(var tme of eme){var nme=tme.unref();if(nme.length<2)throw new Error("Cannot lift node at a path [".concat(nme,"] because it has a depth of less than `2`."));var rme=Bf.node(Ff,Mf.parent(nme)),[ame,ome]=rme,ime=nme[nme.length-1],{length:cme}=ame.children;if(cme===1){var ume=Mf.next(ome);md.moveNodes(Ff,{at:nme,to:ume,voids:B_}),md.removeNodes(Ff,{at:ome,voids:B_})}else if(ime===0)md.moveNodes(Ff,{at:nme,to:ome,voids:B_});else if(ime===cme-1){var sme=Mf.next(ome);md.moveNodes(Ff,{at:nme,to:sme,voids:B_})}else{var fme=Mf.next(nme),lme=Mf.next(ome);md.splitNodes(Ff,{at:fme,voids:B_}),md.moveNodes(Ff,{at:nme,to:lme,voids:B_})}}}})},mergeNodes(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bf.withoutNormalizing(Ff,()=>{var{match:x_,at:$_=Ff.selection}=kh,{hanging:B_=!1,voids:$P=!1,mode:zP="lowest"}=kh;if($_){if(x_==null)if(Mf.isPath($_)){var[eme]=Bf.parent(Ff,$_);x_=Sme=>eme.children.includes(Sme)}else x_=Sme=>Bf.isBlock(Ff,Sme);if(!B_&&qf.isRange($_)&&($_=Bf.unhangRange(Ff,$_)),qf.isRange($_))if(qf.isCollapsed($_))$_=$_.anchor;else{var[,tme]=qf.edges($_),nme=Bf.pointRef(Ff,tme);md.delete(Ff,{at:$_}),$_=nme.unref(),kh.at==null&&md.select(Ff,$_)}var[rme]=Bf.nodes(Ff,{at:$_,match:x_,voids:$P,mode:zP}),ame=Bf.previous(Ff,{at:$_,match:x_,voids:$P,mode:zP});if(rme&&ame){var[ome,ime]=rme,[cme,ume]=ame;if(ime.length!==0&&ume.length!==0){var sme,fme,lme=Mf.next(ume),hme=Mf.common(ime,ume),pme=Mf.isSibling(ime,ume),gme=Array.from(Bf.levels(Ff,{at:ime}),Sme=>{var[_me]=Sme;return _me}).slice(hme.length).slice(0,-1),yme=Bf.above(Ff,{at:ime,mode:"highest",match:Sme=>gme.includes(Sme)&&ld(Ff,Sme)}),mme=yme&&Bf.pathRef(Ff,yme[1]);if(ed.isText(ome)&&ed.isText(cme)){var bme=qc(ome,od);fme=cme.text.length,sme=bme}else{if(!Sf.isElement(ome)||!Sf.isElement(cme))throw new Error("Cannot merge the node at path [".concat(ime,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(ome)," ").concat(JSON.stringify(cme)));bme=qc(ome,id),fme=cme.children.length,sme=bme}pme||md.moveNodes(Ff,{at:ime,to:lme,voids:$P}),mme&&md.removeNodes(Ff,{at:mme.current,voids:$P}),Sf.isElement(cme)&&Bf.isEmpty(Ff,cme)||ed.isText(cme)&&cme.text===""&&ume[ume.length-1]!==0?md.removeNodes(Ff,{at:ume,voids:$P}):Ff.apply({type:"merge_node",path:lme,position:fme,properties:sme}),mme&&mme.unref()}}}})},moveNodes(Ff,kh){Bf.withoutNormalizing(Ff,()=>{var{to:x_,at:$_=Ff.selection,mode:B_="lowest",voids:$P=!1}=kh,{match:zP}=kh;if($_){zP==null&&(zP=Mf.isPath($_)?fd(Ff,$_):ime=>Bf.isBlock(Ff,ime));var eme=Bf.pathRef(Ff,x_),tme=Bf.nodes(Ff,{at:$_,match:zP,mode:B_,voids:$P}),nme=Array.from(tme,ime=>{var[,cme]=ime;return Bf.pathRef(Ff,cme)});for(var rme of nme){var ame=rme.unref(),ome=eme.current;ame.length!==0&&Ff.apply({type:"move_node",path:ame,newPath:ome}),eme.current&&Mf.isSibling(ome,ame)&&Mf.isAfter(ome,ame)&&(eme.current=Mf.next(eme.current))}eme.unref()}})},removeNodes(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bf.withoutNormalizing(Ff,()=>{var{hanging:x_=!1,voids:$_=!1,mode:B_="lowest"}=kh,{at:$P=Ff.selection,match:zP}=kh;if($P){zP==null&&(zP=Mf.isPath($P)?fd(Ff,$P):ome=>Bf.isBlock(Ff,ome)),!x_&&qf.isRange($P)&&($P=Bf.unhangRange(Ff,$P));var eme=Bf.nodes(Ff,{at:$P,match:zP,mode:B_,voids:$_}),tme=Array.from(eme,ome=>{var[,ime]=ome;return Bf.pathRef(Ff,ime)});for(var nme of tme){var rme=nme.unref();if(rme){var[ame]=Bf.node(Ff,rme);Ff.apply({type:"remove_node",path:rme,node:ame})}}}})},setNodes(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Bf.withoutNormalizing(Ff,()=>{var{match:$_,at:B_=Ff.selection}=x_,{hanging:$P=!1,mode:zP="lowest",split:eme=!1,voids:tme=!1}=x_;if(B_){if($_==null&&($_=Mf.isPath(B_)?fd(Ff,B_):gme=>Bf.isBlock(Ff,gme)),!$P&&qf.isRange(B_)&&(B_=Bf.unhangRange(Ff,B_)),eme&&qf.isRange(B_)){if(qf.isCollapsed(B_)&&Bf.leaf(Ff,B_.anchor)[0].text.length>0)return;var nme=Bf.rangeRef(Ff,B_,{affinity:"inward"}),[rme,ame]=qf.edges(B_),ome=zP==="lowest"?"lowest":"highest",ime=Bf.isEnd(Ff,ame,ame.path);md.splitNodes(Ff,{at:ame,match:$_,mode:ome,voids:tme,always:!ime});var cme=Bf.isStart(Ff,rme,rme.path);md.splitNodes(Ff,{at:rme,match:$_,mode:ome,voids:tme,always:!cme}),B_=nme.unref(),x_.at==null&&md.select(Ff,B_)}for(var[ume,sme]of Bf.nodes(Ff,{at:B_,match:$_,mode:zP,voids:tme})){var fme={},lme={};if(sme.length!==0){var hme=!1;for(var pme in kh)pme!=="children"&&pme!=="text"&&kh[pme]!==ume[pme]&&(hme=!0,ume.hasOwnProperty(pme)&&(fme[pme]=ume[pme]),kh[pme]!=null&&(lme[pme]=kh[pme]));hme&&Ff.apply({type:"set_node",path:sme,properties:fme,newProperties:lme})}}}})},splitNodes(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bf.withoutNormalizing(Ff,()=>{var{mode:x_="lowest",voids:$_=!1}=kh,{match:B_,at:$P=Ff.selection,height:zP=0,always:eme=!1}=kh;if(B_==null&&(B_=Rme=>Bf.isBlock(Ff,Rme)),qf.isRange($P)&&($P=cd(Ff,$P)),Mf.isPath($P)){var tme=$P,nme=Bf.point(Ff,tme),[rme]=Bf.parent(Ff,tme);B_=Rme=>Rme===rme,zP=nme.path.length-tme.length+1,$P=nme,eme=!0}if($P){var ame=Bf.pointRef(Ff,$P,{affinity:"backward"}),[ome]=Bf.nodes(Ff,{at:$P,match:B_,mode:x_,voids:$_});if(ome){var ime=Bf.void(Ff,{at:$P,mode:"highest"});if(!$_&&ime){var[cme,ume]=ime;if(Sf.isElement(cme)&&Ff.isInline(cme)){var sme=Bf.after(Ff,ume);if(!sme){var fme=Mf.next(ume);md.insertNodes(Ff,{text:""},{at:fme,voids:$_}),sme=Bf.point(Ff,fme)}$P=sme,eme=!0}zP=$P.path.length-ume.length+1,eme=!0}var lme=Bf.pointRef(Ff,$P),hme=$P.path.length-zP,[,pme]=ome,gme=$P.path.slice(0,hme),yme=zP===0?$P.offset:$P.path[hme]+0;for(var[mme,bme]of Bf.levels(Ff,{at:gme,reverse:!0,voids:$_})){var Sme=!1;if(bme.length<pme.length||bme.length===0||!$_&&Bf.isVoid(Ff,mme))break;var _me=ame.current,Cme=Bf.isEnd(Ff,_me,bme);if(eme||!ame||!Bf.isEdge(Ff,_me,bme)){Sme=!0;var Eme=Nf.extractProps(mme);Ff.apply({type:"split_node",path:bme,position:yme,properties:Eme})}yme=bme[bme.length-1]+(Sme||Cme?1:0)}if(kh.at==null){var Tme=lme.current||Bf.end(Ff,[]);md.select(Ff,Tme)}ame.unref(),lme.unref()}}})},unsetNodes(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(kh)||(kh=[kh]);var $_={};for(var B_ of kh)$_[B_]=null;md.setNodes(Ff,$_,x_)},unwrapNodes(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bf.withoutNormalizing(Ff,()=>{var{mode:x_="lowest",split:$_=!1,voids:B_=!1}=kh,{at:$P=Ff.selection,match:zP}=kh;if($P){zP==null&&(zP=Mf.isPath($P)?fd(Ff,$P):ome=>Bf.isBlock(Ff,ome)),Mf.isPath($P)&&($P=Bf.range(Ff,$P));var eme=qf.isRange($P)?Bf.rangeRef(Ff,$P):null,tme=Bf.nodes(Ff,{at:$P,match:zP,mode:x_,voids:B_}),nme=Array.from(tme,ome=>{var[,ime]=ome;return Bf.pathRef(Ff,ime)}).reverse(),rme=function(ome){var ime=ome.unref(),[cme]=Bf.node(Ff,ime),ume=Bf.range(Ff,ime);$_&&eme&&(ume=qf.intersection(eme.current,ume)),md.liftNodes(Ff,{at:ume,match:sme=>Sf.isAncestor(cme)&&cme.children.includes(sme),voids:B_})};for(var ame of nme)rme(ame);eme&&eme.unref()}})},wrapNodes(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Bf.withoutNormalizing(Ff,()=>{var{mode:$_="lowest",split:B_=!1,voids:$P=!1}=x_,{match:zP,at:eme=Ff.selection}=x_;if(eme){if(zP==null&&(zP=Mf.isPath(eme)?fd(Ff,eme):Ff.isInline(kh)?sme=>Bf.isInline(Ff,sme)||ed.isText(sme):sme=>Bf.isBlock(Ff,sme)),B_&&qf.isRange(eme)){var[tme,nme]=qf.edges(eme),rme=Bf.rangeRef(Ff,eme,{affinity:"inward"});md.splitNodes(Ff,{at:nme,match:zP,voids:$P}),md.splitNodes(Ff,{at:tme,match:zP,voids:$P}),eme=rme.unref(),x_.at==null&&md.select(Ff,eme)}var ame=Array.from(Bf.nodes(Ff,{at:eme,match:Ff.isInline(kh)?sme=>Bf.isBlock(Ff,sme):sme=>Bf.isEditor(sme),mode:"lowest",voids:$P}));for(var[,ome]of ame){var ime=qf.isRange(eme)?qf.intersection(eme,Bf.range(Ff,ome)):eme;if(ime){var cme=Array.from(Bf.nodes(Ff,{at:ime,match:zP,mode:$_,voids:$P}));if(cme.length>0){var ume=function(){var[sme]=cme,fme=cme[cme.length-1],[,lme]=sme,[,hme]=fme;if(lme.length===0&&hme.length===0)return"continue";var pme=Mf.equals(lme,hme)?Mf.parent(lme):Mf.common(lme,hme),gme=Bf.range(Ff,lme,hme),yme=Bf.node(Ff,pme),[mme]=yme,bme=pme.length+1,Sme=Mf.next(hme.slice(0,bme)),_me=ud(ud({},kh),{},{children:[]});md.insertNodes(Ff,_me,{at:Sme,voids:$P}),md.moveNodes(Ff,{at:gme,match:Cme=>Sf.isAncestor(mme)&&mme.children.includes(Cme),to:Sme.concat(0),voids:$P})}();if(ume==="continue")continue}}}}})}},ld=(Ff,kh)=>{if(Sf.isElement(kh)){var x_=kh;return!!Bf.isVoid(Ff,kh)||x_.children.length===1&&ld(Ff,x_.children[0])}return!Bf.isEditor(kh)},cd=(Ff,kh)=>{if(qf.isCollapsed(kh))return kh.anchor;var[,x_]=qf.edges(kh),$_=Bf.pointRef(Ff,x_);return md.delete(Ff,{at:kh}),$_.unref()},fd=(Ff,kh)=>{var[x_]=Bf.node(Ff,kh);return $_=>$_===x_};function dd(Ff,kh){var x_=Object.keys(Ff);if(Object.getOwnPropertySymbols){var $_=Object.getOwnPropertySymbols(Ff);kh&&($_=$_.filter(function(B_){return Object.getOwnPropertyDescriptor(Ff,B_).enumerable})),x_.push.apply(x_,$_)}return x_}function pd(Ff){for(var kh=1;kh<arguments.length;kh++){var x_=arguments[kh]!=null?arguments[kh]:{};kh%2?dd(Object(x_),!0).forEach(function($_){Ic(Ff,$_,x_[$_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ff,Object.getOwnPropertyDescriptors(x_)):dd(Object(x_)).forEach(function($_){Object.defineProperty(Ff,$_,Object.getOwnPropertyDescriptor(x_,$_))})}return Ff}var hd={collapse(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:x_="anchor"}=kh,{selection:$_}=Ff;if($_){if(x_==="anchor")md.select(Ff,$_.anchor);else if(x_==="focus")md.select(Ff,$_.focus);else if(x_==="start"){var[B_]=qf.edges($_);md.select(Ff,B_)}else if(x_==="end"){var[,$P]=qf.edges($_);md.select(Ff,$P)}}},deselect(Ff){var{selection:kh}=Ff;kh&&Ff.apply({type:"set_selection",properties:kh,newProperties:null})},move(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:x_}=Ff,{distance:$_=1,unit:B_="character",reverse:$P=!1}=kh,{edge:zP=null}=kh;if(x_){zP==="start"&&(zP=qf.isBackward(x_)?"focus":"anchor"),zP==="end"&&(zP=qf.isBackward(x_)?"anchor":"focus");var{anchor:eme,focus:tme}=x_,nme={distance:$_,unit:B_},rme={};if(zP==null||zP==="anchor"){var ame=$P?Bf.before(Ff,eme,nme):Bf.after(Ff,eme,nme);ame&&(rme.anchor=ame)}if(zP==null||zP==="focus"){var ome=$P?Bf.before(Ff,tme,nme):Bf.after(Ff,tme,nme);ome&&(rme.focus=ome)}md.setSelection(Ff,rme)}},select(Ff,kh){var{selection:x_}=Ff;if(kh=Bf.range(Ff,kh),x_)md.setSelection(Ff,kh);else{if(!qf.isRange(kh))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(kh)));Ff.apply({type:"set_selection",properties:x_,newProperties:kh})}},setPoint(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:$_}=Ff,{edge:B_="both"}=x_;if($_){B_==="start"&&(B_=qf.isBackward($_)?"focus":"anchor"),B_==="end"&&(B_=qf.isBackward($_)?"anchor":"focus");var{anchor:$P,focus:zP}=$_,eme=B_==="anchor"?$P:zP;md.setSelection(Ff,{[B_==="anchor"?"anchor":"focus"]:pd(pd({},eme),kh)})}},setSelection(Ff,kh){var{selection:x_}=Ff,$_={},B_={};if(x_){for(var $P in kh)($P==="anchor"&&kh.anchor!=null&&!Vf.equals(kh.anchor,x_.anchor)||$P==="focus"&&kh.focus!=null&&!Vf.equals(kh.focus,x_.focus)||$P!=="anchor"&&$P!=="focus"&&kh[$P]!==x_[$P])&&($_[$P]=x_[$P],B_[$P]=kh[$P]);Object.keys($_).length>0&&Ff.apply({type:"set_selection",properties:$_,newProperties:B_})}}},gd={delete(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bf.withoutNormalizing(Ff,()=>{var{reverse:x_=!1,unit:$_="character",distance:B_=1,voids:$P=!1}=kh,{at:zP=Ff.selection,hanging:eme=!1}=kh;if(zP){if(qf.isRange(zP)&&qf.isCollapsed(zP)&&(zP=zP.anchor),Vf.isPoint(zP)){var tme=Bf.void(Ff,{at:zP,mode:"highest"});if(!$P&&tme){var[,nme]=tme;zP=nme}else{var rme={unit:$_,distance:B_};zP={anchor:zP,focus:x_?Bf.before(Ff,zP,rme)||Bf.start(Ff,[]):Bf.after(Ff,zP,rme)||Bf.end(Ff,[])},eme=!0}}if(Mf.isPath(zP))md.removeNodes(Ff,{at:zP,voids:$P});else if(!qf.isCollapsed(zP)){if(!eme){var[,ame]=qf.edges(zP),ome=Bf.end(Ff,[]);Vf.equals(ame,ome)||(zP=Bf.unhangRange(Ff,zP,{voids:$P}))}var[ime,cme]=qf.edges(zP),ume=Bf.above(Ff,{match:Hme=>Bf.isBlock(Ff,Hme),at:ime,voids:$P}),sme=Bf.above(Ff,{match:Hme=>Bf.isBlock(Ff,Hme),at:cme,voids:$P}),fme=ume&&sme&&!Mf.equals(ume[1],sme[1]),lme=Mf.equals(ime.path,cme.path),hme=$P?null:Bf.void(Ff,{at:ime,mode:"highest"}),pme=$P?null:Bf.void(Ff,{at:cme,mode:"highest"});if(hme){var gme=Bf.before(Ff,ime);gme&&ume&&Mf.isAncestor(ume[1],gme.path)&&(ime=gme)}if(pme){var yme=Bf.after(Ff,cme);yme&&sme&&Mf.isAncestor(sme[1],yme.path)&&(cme=yme)}var mme,bme=[];for(var Sme of Bf.nodes(Ff,{at:zP,voids:$P})){var[_me,Cme]=Sme;mme&&Mf.compare(Cme,mme)===0||(!$P&&Bf.isVoid(Ff,_me)||!Mf.isCommon(Cme,ime.path)&&!Mf.isCommon(Cme,cme.path))&&(bme.push(Sme),mme=Cme)}var Eme=Array.from(bme,Hme=>{var[,Wme]=Hme;return Bf.pathRef(Ff,Wme)}),Tme=Bf.pointRef(Ff,ime),Rme=Bf.pointRef(Ff,cme);if(!lme&&!hme){var Pme=Tme.current,[$me]=Bf.leaf(Ff,Pme),{path:Dme}=Pme,{offset:Mme}=ime,Nme=$me.text.slice(Mme);Nme.length>0&&Ff.apply({type:"remove_text",path:Dme,offset:Mme,text:Nme})}for(var Ime of Eme){var wme=Ime.unref();md.removeNodes(Ff,{at:wme,voids:$P})}if(!pme){var Ome=Rme.current,[Ame]=Bf.leaf(Ff,Ome),{path:Fme}=Ome,Bme=lme?ime.offset:0,kme=Ame.text.slice(Bme,cme.offset);kme.length>0&&Ff.apply({type:"remove_text",path:Fme,offset:Bme,text:kme})}!lme&&fme&&Rme.current&&Tme.current&&md.mergeNodes(Ff,{at:Rme.current,hanging:!0,voids:$P});var Lme=x_?Tme.unref()||Rme.unref():Rme.unref()||Tme.unref();kh.at==null&&Lme&&md.select(Ff,Lme)}}})},insertFragment(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Bf.withoutNormalizing(Ff,()=>{var{hanging:$_=!1,voids:B_=!1}=x_,{at:$P=Ff.selection}=x_;if(kh.length&&$P){if(qf.isRange($P))if($_||($P=Bf.unhangRange(Ff,$P)),qf.isCollapsed($P))$P=$P.anchor;else{var[,zP]=qf.edges($P);if(!B_&&Bf.void(Ff,{at:zP}))return;var eme=Bf.pointRef(Ff,zP);md.delete(Ff,{at:$P}),$P=eme.unref()}else Mf.isPath($P)&&($P=Bf.start(Ff,$P));if(B_||!Bf.void(Ff,{at:$P})){var tme=Bf.above(Ff,{at:$P,match:Ome=>Bf.isInline(Ff,Ome),mode:"highest",voids:B_});if(tme){var[,nme]=tme;Bf.isEnd(Ff,$P,nme)?$P=Bf.after(Ff,nme):Bf.isStart(Ff,$P,nme)&&($P=Bf.before(Ff,nme))}var rme=Bf.above(Ff,{match:Ome=>Bf.isBlock(Ff,Ome),at:$P,voids:B_}),[,ame]=rme,ome=Bf.isStart(Ff,$P,ame),ime=Bf.isEnd(Ff,$P,ame),cme=ome&&ime,ume=!ome||ome&&ime,sme=!ime,[,fme]=Nf.first({children:kh},[]),[,lme]=Nf.last({children:kh},[]),hme=[],pme=Ome=>{var[Ame,Fme]=Ome;return Fme.length!==0&&(!!cme||!(ume&&Mf.isAncestor(Fme,fme)&&Sf.isElement(Ame)&&!Ff.isVoid(Ame)&&!Ff.isInline(Ame))&&!(sme&&Mf.isAncestor(Fme,lme)&&Sf.isElement(Ame)&&!Ff.isVoid(Ame)&&!Ff.isInline(Ame)))};for(var gme of Nf.nodes({children:kh},{pass:pme}))pme(gme)&&hme.push(gme);var yme=[],mme=[],bme=[],Sme=!0,_me=!1;for(var[Cme]of hme)Sf.isElement(Cme)&&!Ff.isInline(Cme)?(Sme=!1,_me=!0,mme.push(Cme)):Sme?yme.push(Cme):bme.push(Cme);var[Eme]=Bf.nodes(Ff,{at:$P,match:Ome=>ed.isText(Ome)||Bf.isInline(Ff,Ome),mode:"highest",voids:B_}),[,Tme]=Eme,Rme=Bf.isStart(Ff,$P,Tme),Pme=Bf.isEnd(Ff,$P,Tme),$me=Bf.pathRef(Ff,ime?Mf.next(ame):ame),Dme=Bf.pathRef(Ff,Pme?Mf.next(Tme):Tme),Mme=Bf.pathRef(Ff,ame);md.splitNodes(Ff,{at:$P,match:Ome=>_me?Bf.isBlock(Ff,Ome):ed.isText(Ome)||Bf.isInline(Ff,Ome),mode:_me?"lowest":"highest",voids:B_});var Nme=Bf.pathRef(Ff,!Rme||Rme&&Pme?Mf.next(Tme):Tme);if(md.insertNodes(Ff,yme,{at:Nme.current,match:Ome=>ed.isText(Ome)||Bf.isInline(Ff,Ome),mode:"highest",voids:B_}),cme&&mme.length&&md.delete(Ff,{at:Mme.unref(),voids:B_}),md.insertNodes(Ff,mme,{at:$me.current,match:Ome=>Bf.isBlock(Ff,Ome),mode:"lowest",voids:B_}),md.insertNodes(Ff,bme,{at:Dme.current,match:Ome=>ed.isText(Ome)||Bf.isInline(Ff,Ome),mode:"highest",voids:B_}),!x_.at){var Ime;Ime=bme.length>0?Mf.previous(Dme.current):mme.length>0?Mf.previous($me.current):Mf.previous(Nme.current);var wme=Bf.end(Ff,Ime);md.select(Ff,wme)}Nme.unref(),$me.unref(),Dme.unref()}}})},insertText(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Bf.withoutNormalizing(Ff,()=>{var{voids:$_=!1}=x_,{at:B_=Ff.selection}=x_;if(B_){if(Mf.isPath(B_)&&(B_=Bf.range(Ff,B_)),qf.isRange(B_))if(qf.isCollapsed(B_))B_=B_.anchor;else{var $P=qf.end(B_);if(!$_&&Bf.void(Ff,{at:$P}))return;var zP=Bf.pointRef(Ff,$P);md.delete(Ff,{at:B_,voids:$_}),B_=zP.unref(),md.setSelection(Ff,{anchor:B_,focus:B_})}if($_||!Bf.void(Ff,{at:B_})){var{path:eme,offset:tme}=B_;kh.length>0&&Ff.apply({type:"insert_text",path:eme,offset:tme,text:kh})}}})}};function vd(Ff,kh){var x_=Object.keys(Ff);if(Object.getOwnPropertySymbols){var $_=Object.getOwnPropertySymbols(Ff);kh&&($_=$_.filter(function(B_){return Object.getOwnPropertyDescriptor(Ff,B_).enumerable})),x_.push.apply(x_,$_)}return x_}function yd(Ff){for(var kh=1;kh<arguments.length;kh++){var x_=arguments[kh]!=null?arguments[kh]:{};kh%2?vd(Object(x_),!0).forEach(function($_){Ic(Ff,$_,x_[$_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ff,Object.getOwnPropertyDescriptors(x_)):vd(Object(x_)).forEach(function($_){Object.defineProperty(Ff,$_,Object.getOwnPropertyDescriptor(x_,$_))})}return Ff}var md=yd(yd(yd(yd({},rd),sd),hd),gd),bd="[object Map]",wd="[object Set]",Ed=/^\[object .+?Constructor\]$/,Dd=/^(?:0|[1-9]\d*)$/,Sd="[\\ud800-\\udfff]",xd="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Cd="\\ud83c[\\udffb-\\udfff]",Ad="[^\\ud800-\\udfff]",Od="(?:\\ud83c[\\udde6-\\uddff]){2}",kd="[\\ud800-\\udbff][\\udc00-\\udfff]",Bd="(?:"+xd+"|"+Cd+")?",Fd="[\\ufe0e\\ufe0f]?"+Bd+("(?:\\u200d(?:"+[Ad,Od,kd].join("|")+")[\\ufe0e\\ufe0f]?"+Bd+")*"),Td="(?:"+[Ad+xd+"?",xd,Od,kd,Sd].join("|")+")",_d=RegExp(Cd+"(?="+Cd+")|"+Td+Fd,"g"),Pd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),jd=typeof e=="object"&&e&&e.Object===Object&&e,Nd=typeof self=="object"&&self&&self.Object===Object&&self,Id=jd||Nd||Function("return this")();function Ld(Ff,kh){return function(x_,$_){for(var B_=-1,$P=x_?x_.length:0,zP=Array($P);++B_<$P;)zP[B_]=$_(x_[B_],B_,x_);return zP}(kh,function(x_){return Ff[x_]})}function Rd(Ff){var kh=-1,x_=Array(Ff.size);return Ff.forEach(function($_,B_){x_[++kh]=[B_,$_]}),x_}function Md(Ff){var kh=-1,x_=Array(Ff.size);return Ff.forEach(function($_){x_[++kh]=$_}),x_}function zd(Ff){return function(kh){return Pd.test(kh)}(Ff)?function(kh){return kh.match(_d)||[]}(Ff):function(kh){return kh.split("")}(Ff)}var $d,Hd,Vd=Function.prototype,Ud=Object.prototype,Wd=Id["__core-js_shared__"],Gd=function(){var Ff=/[^.]+$/.exec(Wd&&Wd.keys&&Wd.keys.IE_PROTO||"");return Ff?"Symbol(src)_1."+Ff:""}(),qd=Vd.toString,Kd=Ud.hasOwnProperty,Yd=Ud.toString,Xd=RegExp("^"+qd.call(Kd).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zd=Id.Symbol,Jd=Zd?Zd.iterator:void 0,Qd=Ud.propertyIsEnumerable,ep=($d=Object.keys,Hd=Object,function(Ff){return $d(Hd(Ff))}),tp=hp(Id,"DataView"),np=hp(Id,"Map"),rp=hp(Id,"Promise"),op=hp(Id,"Set"),ip=hp(Id,"WeakMap"),ap=yp(tp),up=yp(np),sp=yp(rp),lp=yp(op),cp=yp(ip);function fp(Ff,kh){var x_=mp(Ff)||function(zP){return function(eme){return Dp(eme)&&bp(eme)}(zP)&&Kd.call(zP,"callee")&&(!Qd.call(zP,"callee")||Yd.call(zP)=="[object Arguments]")}(Ff)?function(zP,eme){for(var tme=-1,nme=Array(zP);++tme<zP;)nme[tme]=eme(tme);return nme}(Ff.length,String):[],$_=x_.length,B_=!!$_;for(var $P in Ff)!Kd.call(Ff,$P)||B_&&($P=="length"||vp($P,$_))||x_.push($P);return x_}function dp(Ff){if(!Ep(Ff)||function(x_){return!!Gd&&Gd in x_}(Ff))return!1;var kh=wp(Ff)||function(x_){var $_=!1;if(x_!=null&&typeof x_.toString!="function")try{$_=!!(x_+"")}catch{}return $_}(Ff)?Xd:Ed;return kh.test(yp(Ff))}function pp(Ff){if(x_=(kh=Ff)&&kh.constructor,$_=typeof x_=="function"&&x_.prototype||Ud,kh!==$_)return ep(Ff);var kh,x_,$_,B_=[];for(var $P in Object(Ff))Kd.call(Ff,$P)&&$P!="constructor"&&B_.push($P);return B_}function hp(Ff,kh){var x_=function($_,B_){return $_==null?void 0:$_[B_]}(Ff,kh);return dp(x_)?x_:void 0}var gp=function(Ff){return Yd.call(Ff)};function vp(Ff,kh){return!!(kh=kh??9007199254740991)&&(typeof Ff=="number"||Dd.test(Ff))&&Ff>-1&&Ff%1==0&&Ff<kh}function yp(Ff){if(Ff!=null){try{return qd.call(Ff)}catch{}try{return Ff+""}catch{}}return""}(tp&&gp(new tp(new ArrayBuffer(1)))!="[object DataView]"||np&&gp(new np)!=bd||rp&&gp(rp.resolve())!="[object Promise]"||op&&gp(new op)!=wd||ip&&gp(new ip)!="[object WeakMap]")&&(gp=function(Ff){var kh=Yd.call(Ff),x_=kh=="[object Object]"?Ff.constructor:void 0,$_=x_?yp(x_):void 0;if($_)switch($_){case ap:return"[object DataView]";case up:return bd;case sp:return"[object Promise]";case lp:return wd;case cp:return"[object WeakMap]"}return kh});var mp=Array.isArray;function bp(Ff){return Ff!=null&&function(kh){return typeof kh=="number"&&kh>-1&&kh%1==0&&kh<=9007199254740991}(Ff.length)&&!wp(Ff)}function wp(Ff){var kh=Ep(Ff)?Yd.call(Ff):"";return kh=="[object Function]"||kh=="[object GeneratorFunction]"}function Ep(Ff){var kh=typeof Ff;return!!Ff&&(kh=="object"||kh=="function")}function Dp(Ff){return!!Ff&&typeof Ff=="object"}function Sp(Ff){return Ff?Ld(Ff,function(kh){return bp(kh)?fp(kh):pp(kh)}(Ff)):[]}var xp=function(Ff){if(!Ff)return[];if(bp(Ff))return function(x_){return typeof x_=="string"||!mp(x_)&&Dp(x_)&&Yd.call(x_)=="[object String]"}(Ff)?zd(Ff):function(x_,$_){var B_=-1,$P=x_.length;for($_||($_=Array($P));++B_<$P;)$_[B_]=x_[B_];return $_}(Ff);if(Jd&&Ff[Jd])return function(x_){for(var $_,B_=[];!($_=x_.next()).done;)B_.push($_.value);return B_}(Ff[Jd]());var kh=gp(Ff);return(kh==bd?Rd:kh==wd?Md:Sp)(Ff)};function Cp(Ff){return Ff!==null&&typeof Ff=="object"&&"constructor"in Ff&&Ff.constructor===Object}function Ap(Ff,kh){Ff===void 0&&(Ff={}),kh===void 0&&(kh={}),Object.keys(kh).forEach(function(x_){Ff[x_]===void 0?Ff[x_]=kh[x_]:Cp(kh[x_])&&Cp(Ff[x_])&&Object.keys(kh[x_]).length>0&&Ap(Ff[x_],kh[x_])})}var Op={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function kp(){var Ff=typeof document<"u"?document:{};return Ap(Ff,Op),Ff}var Bp={document:Op,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(Ff){return typeof setTimeout>"u"?(Ff(),null):setTimeout(Ff,0)},cancelAnimationFrame:function(Ff){typeof setTimeout<"u"&&clearTimeout(Ff)}};function Fp(){var Ff=typeof window<"u"?window:{};return Ap(Ff,Bp),Ff}function Tp(Ff){return Tp=Object.setPrototypeOf?Object.getPrototypeOf:function(kh){return kh.__proto__||Object.getPrototypeOf(kh)},Tp(Ff)}function _p(Ff,kh){return _p=Object.setPrototypeOf||function(x_,$_){return x_.__proto__=$_,x_},_p(Ff,kh)}function Pp(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function jp(Ff,kh,x_){return jp=Pp()?Reflect.construct:function($_,B_,$P){var zP=[null];zP.push.apply(zP,B_);var eme=new(Function.bind.apply($_,zP));return $P&&_p(eme,$P.prototype),eme},jp.apply(null,arguments)}function Np(Ff){var kh=typeof Map=="function"?new Map:void 0;return Np=function(x_){if(x_===null||!function(B_){return Function.toString.call(B_).indexOf("[native code]")!==-1}(x_))return x_;if(typeof x_!="function")throw new TypeError("Super expression must either be null or a function");if(kh!==void 0){if(kh.has(x_))return kh.get(x_);kh.set(x_,$_)}function $_(){return jp(x_,arguments,Tp(this).constructor)}return $_.prototype=Object.create(x_.prototype,{constructor:{value:$_,enumerable:!1,writable:!0,configurable:!0}}),_p($_,x_)},Np(Ff)}var Ip=function(Ff){var kh,x_;function $_(B_){var $P,zP,eme;return $P=Ff.call.apply(Ff,[this].concat(B_))||this,zP=function(tme){if(tme===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tme}($P),eme=zP.__proto__,Object.defineProperty(zP,"__proto__",{get:function(){return eme},set:function(tme){eme.__proto__=tme}}),$P}return x_=Ff,(kh=$_).prototype=Object.create(x_.prototype),kh.prototype.constructor=kh,kh.__proto__=x_,$_}(Np(Array));function Lp(Ff){Ff===void 0&&(Ff=[]);var kh=[];return Ff.forEach(function(x_){Array.isArray(x_)?kh.push.apply(kh,Lp(x_)):kh.push(x_)}),kh}function Rp(Ff,kh){return Array.prototype.filter.call(Ff,kh)}function Mp(Ff,kh){var x_=Fp(),$_=kp(),B_=[];if(!kh&&Ff instanceof Ip)return Ff;if(!Ff)return new Ip(B_);if(typeof Ff=="string"){var $P=Ff.trim();if($P.indexOf("<")>=0&&$P.indexOf(">")>=0){var zP="div";$P.indexOf("<li")===0&&(zP="ul"),$P.indexOf("<tr")===0&&(zP="tbody"),$P.indexOf("<td")!==0&&$P.indexOf("<th")!==0||(zP="tr"),$P.indexOf("<tbody")===0&&(zP="table"),$P.indexOf("<option")===0&&(zP="select");var eme=$_.createElement(zP);eme.innerHTML=$P;for(var tme=0;tme<eme.childNodes.length;tme+=1)B_.push(eme.childNodes[tme])}else B_=function(nme,rme){if(typeof nme!="string")return[nme];for(var ame=[],ome=rme.querySelectorAll(nme),ime=0;ime<ome.length;ime+=1)ame.push(ome[ime]);return ame}(Ff.trim(),kh||$_)}else if(Ff.nodeType||Ff===x_||Ff===$_)B_.push(Ff);else if(Array.isArray(Ff)){if(Ff instanceof Ip)return Ff;B_=Ff}return new Ip(function(nme){for(var rme=[],ame=0;ame<nme.length;ame+=1)rme.indexOf(nme[ame])===-1&&rme.push(nme[ame]);return rme}(B_))}function zp(){for(var Ff=arguments.length,kh=new Array(Ff),x_=0;x_<Ff;x_++)kh[x_]=arguments[x_];var $_=Lp(kh.map(function(B_){return B_.split(" ")}));return this.forEach(function(B_){var $P;($P=B_.classList).add.apply($P,$_)}),this}function $p(){for(var Ff=arguments.length,kh=new Array(Ff),x_=0;x_<Ff;x_++)kh[x_]=arguments[x_];var $_=Lp(kh.map(function(B_){return B_.split(" ")}));return this.forEach(function(B_){var $P;($P=B_.classList).remove.apply($P,$_)}),this}function Hp(){for(var Ff=arguments.length,kh=new Array(Ff),x_=0;x_<Ff;x_++)kh[x_]=arguments[x_];var $_=Lp(kh.map(function(B_){return B_.split(" ")}));return Rp(this,function(B_){return $_.filter(function($P){return B_.classList.contains($P)}).length>0}).length>0}function Vp(Ff,kh){if(arguments.length===1&&typeof Ff=="string")return this[0]?this[0].getAttribute(Ff):void 0;for(var x_=0;x_<this.length;x_+=1)if(arguments.length===2)this[x_].setAttribute(Ff,kh);else for(var $_ in Ff)this[x_][$_]=Ff[$_],this[x_].setAttribute($_,Ff[$_]);return this}function Up(Ff){for(var kh=0;kh<this.length;kh+=1)this[kh].removeAttribute(Ff);return this}function Wp(){var Ff=this[0];if(Ff){var kh,x_={};if(Ff.dataset)for(var $_ in Ff.dataset)x_[$_]=Ff.dataset[$_];else for(var B_=0;B_<Ff.attributes.length;B_+=1){var $P=Ff.attributes[B_];$P.name.indexOf("data-")>=0&&(x_[kh=$P.name.split("data-")[1],kh.toLowerCase().replace(/-(.)/g,function(eme,tme){return tme.toUpperCase()})]=$P.value)}for(var zP in x_)x_[zP]==="false"?x_[zP]=!1:x_[zP]==="true"?x_[zP]=!0:parseFloat(x_[zP])===1*x_[zP]&&(x_[zP]*=1);return x_}}function Gp(Ff){if(Ff===void 0){var kh=this[0];if(!kh)return;if(kh.multiple&&kh.nodeName.toLowerCase()==="select"){for(var x_=[],$_=0;$_<kh.selectedOptions.length;$_+=1)x_.push(kh.selectedOptions[$_].value);return x_}return kh.value}for(var B_=0;B_<this.length;B_+=1){var $P=this[B_];if(Array.isArray(Ff)&&$P.multiple&&$P.nodeName.toLowerCase()==="select")for(var zP=0;zP<$P.options.length;zP+=1)$P.options[zP].selected=Ff.indexOf($P.options[zP].value)>=0;else $P.value=Ff}return this}function qp(){for(var Ff=arguments.length,kh=new Array(Ff),x_=0;x_<Ff;x_++)kh[x_]=arguments[x_];var $_=kh[0],B_=kh[1],$P=kh[2],zP=kh[3];function eme(ume){var sme=ume.target;if(sme){var fme=ume.target.dom7EventData||[];if(fme.indexOf(ume)<0&&fme.unshift(ume),Mp(sme).is(B_))$P.apply(sme,fme);else for(var lme=Mp(sme).parents(),hme=0;hme<lme.length;hme+=1)Mp(lme[hme]).is(B_)&&$P.apply(lme[hme],fme)}}function tme(ume){var sme=ume&&ume.target&&ume.target.dom7EventData||[];sme.indexOf(ume)<0&&sme.unshift(ume),$P.apply(this,sme)}typeof kh[1]=="function"&&($_=kh[0],$P=kh[1],zP=kh[2],B_=void 0),zP||(zP=!1);for(var nme,rme=$_.split(" "),ame=0;ame<this.length;ame+=1){var ome=this[ame];if(B_)for(nme=0;nme<rme.length;nme+=1){var ime=rme[nme];ome.dom7LiveListeners||(ome.dom7LiveListeners={}),ome.dom7LiveListeners[ime]||(ome.dom7LiveListeners[ime]=[]),ome.dom7LiveListeners[ime].push({listener:$P,proxyListener:eme}),ome.addEventListener(ime,eme,zP)}else for(nme=0;nme<rme.length;nme+=1){var cme=rme[nme];ome.dom7Listeners||(ome.dom7Listeners={}),ome.dom7Listeners[cme]||(ome.dom7Listeners[cme]=[]),ome.dom7Listeners[cme].push({listener:$P,proxyListener:tme}),ome.addEventListener(cme,tme,zP)}}return this}function Kp(){for(var Ff=arguments.length,kh=new Array(Ff),x_=0;x_<Ff;x_++)kh[x_]=arguments[x_];var $_=kh[0],B_=kh[1],$P=kh[2],zP=kh[3];typeof kh[1]=="function"&&($_=kh[0],$P=kh[1],zP=kh[2],B_=void 0),zP||(zP=!1);for(var eme=$_.split(" "),tme=0;tme<eme.length;tme+=1)for(var nme=eme[tme],rme=0;rme<this.length;rme+=1){var ame=this[rme],ome=void 0;if(!B_&&ame.dom7Listeners?ome=ame.dom7Listeners[nme]:B_&&ame.dom7LiveListeners&&(ome=ame.dom7LiveListeners[nme]),ome&&ome.length)for(var ime=ome.length-1;ime>=0;ime-=1){var cme=ome[ime];$P&&cme.listener===$P||$P&&cme.listener&&cme.listener.dom7proxy&&cme.listener.dom7proxy===$P?(ame.removeEventListener(nme,cme.proxyListener,zP),ome.splice(ime,1)):$P||(ame.removeEventListener(nme,cme.proxyListener,zP),ome.splice(ime,1))}}return this}function Yp(){var Ff=Fp();return this[0]===Ff?Ff.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Xp(){var Ff=Fp();return this[0]===Ff?Ff.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Zp(){if(this.length>0){var Ff=Fp(),kh=kp(),x_=this[0],$_=x_.getBoundingClientRect(),B_=kh.body,$P=x_.clientTop||B_.clientTop||0,zP=x_.clientLeft||B_.clientLeft||0,eme=x_===Ff?Ff.scrollY:x_.scrollTop,tme=x_===Ff?Ff.scrollX:x_.scrollLeft;return{top:$_.top+eme-$P,left:$_.left+tme-zP}}return null}function Jp(){for(var Ff=0;Ff<this.length;Ff+=1)this[Ff].style.display="none";return this}function Qp(){for(var Ff=Fp(),kh=0;kh<this.length;kh+=1){var x_=this[kh];x_.style.display==="none"&&(x_.style.display=""),Ff.getComputedStyle(x_,null).getPropertyValue("display")==="none"&&(x_.style.display="block")}return this}function eh(Ff,kh){var x_,$_=Fp();if(arguments.length===1){if(typeof Ff!="string"){for(x_=0;x_<this.length;x_+=1)for(var B_ in Ff)this[x_].style[B_]=Ff[B_];return this}if(this[0])return $_.getComputedStyle(this[0],null).getPropertyValue(Ff)}if(arguments.length===2&&typeof Ff=="string"){for(x_=0;x_<this.length;x_+=1)this[x_].style[Ff]=kh;return this}return this}function th(Ff){return Ff?(this.forEach(function(kh,x_){Ff.apply(kh,[kh,x_])}),this):this}function nh(Ff){return Mp(Rp(this,Ff))}function rh(Ff){if(Ff===void 0)return this[0]?this[0].innerHTML:null;for(var kh=0;kh<this.length;kh+=1)this[kh].innerHTML=Ff;return this}function oh(Ff){if(Ff===void 0)return this[0]?this[0].textContent.trim():null;for(var kh=0;kh<this.length;kh+=1)this[kh].textContent=Ff;return this}function ih(Ff){var kh,x_,$_=Fp(),B_=kp(),$P=this[0];if(!$P||Ff===void 0)return!1;if(typeof Ff=="string"){if($P.matches)return $P.matches(Ff);if($P.webkitMatchesSelector)return $P.webkitMatchesSelector(Ff);if($P.msMatchesSelector)return $P.msMatchesSelector(Ff);for(kh=Mp(Ff),x_=0;x_<kh.length;x_+=1)if(kh[x_]===$P)return!0;return!1}if(Ff===B_)return $P===B_;if(Ff===$_)return $P===$_;if(Ff.nodeType||Ff instanceof Ip){for(kh=Ff.nodeType?[Ff]:Ff,x_=0;x_<kh.length;x_+=1)if(kh[x_]===$P)return!0;return!1}return!1}function ah(){for(var Ff,kh=kp(),x_=0;x_<arguments.length;x_+=1){Ff=x_<0||arguments.length<=x_?void 0:arguments[x_];for(var $_=0;$_<this.length;$_+=1)if(typeof Ff=="string"){var B_=kh.createElement("div");for(B_.innerHTML=Ff;B_.firstChild;)this[$_].appendChild(B_.firstChild)}else if(Ff instanceof Ip)for(var $P=0;$P<Ff.length;$P+=1)this[$_].appendChild(Ff[$P]);else this[$_].appendChild(Ff)}return this}function uh(Ff){var kh,x_,$_=kp();for(kh=0;kh<this.length;kh+=1)if(typeof Ff=="string"){var B_=$_.createElement("div");for(B_.innerHTML=Ff,x_=B_.childNodes.length-1;x_>=0;x_-=1)this[kh].insertBefore(B_.childNodes[x_],this[kh].childNodes[0])}else if(Ff instanceof Ip)for(x_=0;x_<Ff.length;x_+=1)this[kh].insertBefore(Ff[x_],this[kh].childNodes[0]);else this[kh].insertBefore(Ff,this[kh].childNodes[0]);return this}function sh(Ff){for(var kh=[],x_=0;x_<this.length;x_+=1)this[x_].parentNode!==null&&(Ff?Mp(this[x_].parentNode).is(Ff)&&kh.push(this[x_].parentNode):kh.push(this[x_].parentNode));return Mp(kh)}function lh(Ff){for(var kh=[],x_=0;x_<this.length;x_+=1)for(var $_=this[x_].parentNode;$_;)Ff?Mp($_).is(Ff)&&kh.push($_):kh.push($_),$_=$_.parentNode;return Mp(kh)}function ch(Ff){for(var kh=[],x_=0;x_<this.length;x_+=1)for(var $_=this[x_].querySelectorAll(Ff),B_=0;B_<$_.length;B_+=1)kh.push($_[B_]);return Mp(kh)}function fh(Ff){for(var kh=[],x_=0;x_<this.length;x_+=1)for(var $_=this[x_].children,B_=0;B_<$_.length;B_+=1)Ff&&!Mp($_[B_]).is(Ff)||kh.push($_[B_]);return Mp(kh)}function dh(){for(var Ff=0;Ff<this.length;Ff+=1)this[Ff].parentNode&&this[Ff].parentNode.removeChild(this[Ff]);return this}function ph(){for(var Ff=0;Ff<this.length;Ff+=1){var kh=this[Ff];if(kh.nodeType===1){for(var x_=0;x_<kh.childNodes.length;x_+=1)kh.childNodes[x_].parentNode&&kh.childNodes[x_].parentNode.removeChild(kh.childNodes[x_]);kh.textContent=""}}return this}Mp.fn=Ip.prototype;var hh="resize scroll".split(" ");function gh(Ff){return function(){for(var kh=arguments.length,x_=new Array(kh),$_=0;$_<kh;$_++)x_[$_]=arguments[$_];if(x_[0]===void 0){for(var B_=0;B_<this.length;B_+=1)hh.indexOf(Ff)<0&&(Ff in this[B_]?this[B_][Ff]():Mp(this[B_]).trigger(Ff));return this}return this.on.apply(this,[Ff].concat(x_))}}var vh=gh("click"),yh=gh("focus"),mh="[object GeneratorFunction]",bh=/^(?:0|[1-9]\d*)$/;function wh(Ff,kh){for(var x_=-1,$_=Ff?Ff.length:0;++x_<$_&&kh(Ff[x_],x_,Ff)!==!1;);return Ff}var Eh=Object.prototype,Dh=Eh.hasOwnProperty,Sh=Eh.toString,xh=Eh.propertyIsEnumerable,Ch=function(Ff,kh){return function(x_){return Ff(kh(x_))}}(Object.keys,Object);function Ah(Ff,kh){var x_=Ph(Ff)||function(zP){return function(eme){return function(tme){return!!tme&&typeof tme=="object"}(eme)&&jh(eme)}(zP)&&Dh.call(zP,"callee")&&(!xh.call(zP,"callee")||Sh.call(zP)=="[object Arguments]")}(Ff)?function(zP,eme){for(var tme=-1,nme=Array(zP);++tme<zP;)nme[tme]=eme(tme);return nme}(Ff.length,String):[],$_=x_.length,B_=!!$_;for(var $P in Ff)!Dh.call(Ff,$P)||B_&&($P=="length"||_h($P,$_))||x_.push($P);return x_}var Oh,Bh=(Oh=function(Ff,kh){return Ff&&Fh(Ff,kh,Nh)},function(Ff,kh){if(Ff==null)return Ff;if(!jh(Ff))return Oh(Ff,kh);for(var x_=Ff.length,$_=-1,B_=Object(Ff);++$_<x_&&kh(B_[$_],$_,B_)!==!1;);return Ff}),Fh=function(Ff){return function(kh,x_,$_){for(var B_=-1,$P=Object(kh),zP=$_(kh),eme=zP.length;eme--;){var tme=zP[++B_];if(x_($P[tme],tme,$P)===!1)break}return kh}}();function Th(Ff){if(x_=(kh=Ff)&&kh.constructor,$_=typeof x_=="function"&&x_.prototype||Eh,kh!==$_)return Ch(Ff);var kh,x_,$_,B_=[];for(var $P in Object(Ff))Dh.call(Ff,$P)&&$P!="constructor"&&B_.push($P);return B_}function _h(Ff,kh){return!!(kh=kh??9007199254740991)&&(typeof Ff=="number"||bh.test(Ff))&&Ff>-1&&Ff%1==0&&Ff<kh}var Ph=Array.isArray;function jh(Ff){return Ff!=null&&function(kh){return typeof kh=="number"&&kh>-1&&kh%1==0&&kh<=9007199254740991}(Ff.length)&&!function(kh){var x_=function($_){var B_=typeof $_;return!!$_&&(B_=="object"||B_=="function")}(kh)?Sh.call(kh):"";return x_=="[object Function]"||x_==mh}(Ff)}function Nh(Ff){return jh(Ff)?Ah(Ff):Th(Ff)}function Ih(Ff){return Ff}var Lh=function(Ff,kh){return(Ph(Ff)?wh:Bh)(Ff,typeof kh=="function"?kh:Ih)};let Rh=(Ff=21)=>{let kh="",x_=crypto.getRandomValues(new Uint8Array(Ff));for(;Ff--;){let $_=63&x_[Ff];kh+=$_<36?$_.toString(36):$_<62?($_-26).toString(36).toUpperCase():$_<63?"_":"-"}return kh};var Mh=/^\s+|\s+$/g,zh=/^[-+]0x[0-9a-f]+$/i,$h=/^0b[01]+$/i,Hh=/^0o[0-7]+$/i,Vh=parseInt,Uh=typeof e=="object"&&e&&e.Object===Object&&e,Wh=typeof self=="object"&&self&&self.Object===Object&&self,Gh=Uh||Wh||Function("return this")(),qh=Object.prototype.toString,Kh=Math.max,Yh=Math.min,Xh=function(){return Gh.Date.now()};function Zh(Ff,kh,x_){var $_,B_,$P,zP,eme,tme,nme=0,rme=!1,ame=!1,ome=!0;if(typeof Ff!="function")throw new TypeError("Expected a function");function ime(hme){var pme=$_,gme=B_;return $_=B_=void 0,nme=hme,zP=Ff.apply(gme,pme)}function cme(hme){return nme=hme,eme=setTimeout(sme,kh),rme?ime(hme):zP}function ume(hme){var pme=hme-tme;return tme===void 0||pme>=kh||pme<0||ame&&hme-nme>=$P}function sme(){var hme=Xh();if(ume(hme))return fme(hme);eme=setTimeout(sme,function(pme){var gme=kh-(pme-tme);return ame?Yh(gme,$P-(pme-nme)):gme}(hme))}function fme(hme){return eme=void 0,ome&&$_?ime(hme):($_=B_=void 0,zP)}function lme(){var hme=Xh(),pme=ume(hme);if($_=arguments,B_=this,tme=hme,pme){if(eme===void 0)return cme(tme);if(ame)return eme=setTimeout(sme,kh),ime(tme)}return eme===void 0&&(eme=setTimeout(sme,kh)),zP}return kh=Qh(kh)||0,Jh(x_)&&(rme=!!x_.leading,$P=(ame="maxWait"in x_)?Kh(Qh(x_.maxWait)||0,kh):$P,ome="trailing"in x_?!!x_.trailing:ome),lme.cancel=function(){eme!==void 0&&clearTimeout(eme),nme=0,$_=tme=B_=eme=void 0},lme.flush=function(){return eme===void 0?zP:fme(Xh())},lme}function Jh(Ff){var kh=typeof Ff;return!!Ff&&(kh=="object"||kh=="function")}function Qh(Ff){if(typeof Ff=="number")return Ff;if(function($_){return typeof $_=="symbol"||function(B_){return!!B_&&typeof B_=="object"}($_)&&qh.call($_)=="[object Symbol]"}(Ff))return NaN;if(Jh(Ff)){var kh=typeof Ff.valueOf=="function"?Ff.valueOf():Ff;Ff=Jh(kh)?kh+"":kh}if(typeof Ff!="string")return Ff===0?Ff:+Ff;Ff=Ff.replace(Mh,"");var x_=$h.test(Ff);return x_||Hh.test(Ff)?Vh(Ff.slice(2),x_?2:8):zh.test(Ff)?NaN:+Ff}var eg=function(Ff,kh,x_){var $_=!0,B_=!0;if(typeof Ff!="function")throw new TypeError("Expected a function");return Jh(x_)&&($_="leading"in x_?!!x_.leading:$_,B_="trailing"in x_?!!x_.trailing:B_),Zh(Ff,kh,{leading:$_,maxWait:kh,trailing:B_})};const tg={createElement:function(Ff,kh){return document.createElement(Ff,kh)},createElementNS:function(Ff,kh,x_){return document.createElementNS(Ff,kh,x_)},createTextNode:function(Ff){return document.createTextNode(Ff)},createComment:function(Ff){return document.createComment(Ff)},insertBefore:function(Ff,kh,x_){Ff.insertBefore(kh,x_)},removeChild:function(Ff,kh){Ff.removeChild(kh)},appendChild:function(Ff,kh){Ff.appendChild(kh)},parentNode:function(Ff){return Ff.parentNode},nextSibling:function(Ff){return Ff.nextSibling},tagName:function(Ff){return Ff.tagName},setTextContent:function(Ff,kh){Ff.textContent=kh},getTextContent:function(Ff){return Ff.textContent},isElement:function(Ff){return Ff.nodeType===1},isText:function(Ff){return Ff.nodeType===3},isComment:function(Ff){return Ff.nodeType===8}};function ng(Ff,kh,x_,$_,B_){return{sel:Ff,data:kh,children:x_,text:$_,elm:B_,key:kh===void 0?void 0:kh.key}}const rg=Array.isArray;function og(Ff){return typeof Ff=="string"||typeof Ff=="number"||Ff instanceof String||Ff instanceof Number}function ig(Ff){return Ff===void 0}function ag(Ff){return Ff!==void 0}const ug=ng("",{},[],void 0,void 0);function sg(Ff,kh){var x_,$_;const B_=Ff.key===kh.key,$P=((x_=Ff.data)===null||x_===void 0?void 0:x_.is)===(($_=kh.data)===null||$_===void 0?void 0:$_.is);return Ff.sel===kh.sel&&B_&&$P}function lg(Ff,kh,x_){var $_;const B_={};for(let $P=kh;$P<=x_;++$P){const zP=($_=Ff[$P])===null||$_===void 0?void 0:$_.key;zP!==void 0&&(B_[zP]=$P)}return B_}const cg=["create","update","remove","destroy","pre","post"];function fg(Ff,kh){const x_={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},$_=tg;for(const ame of cg)for(const ome of Ff){const ime=ome[ame];ime!==void 0&&x_[ame].push(ime)}function B_(ame){const ome=ame.id?"#"+ame.id:"",ime=ame.getAttribute("class"),cme=ime?"."+ime.split(" ").join("."):"";return ng($_.tagName(ame).toLowerCase()+ome+cme,{},[],void 0,ame)}function $P(ame,ome){return function(){if(--ome==0){const ime=$_.parentNode(ame);$_.removeChild(ime,ame)}}}function zP(ame,ome){var ime,cme;let ume,sme=ame.data;if(sme!==void 0){const hme=(ime=sme.hook)===null||ime===void 0?void 0:ime.init;ag(hme)&&(hme(ame),sme=ame.data)}const fme=ame.children,lme=ame.sel;if(lme==="!")ig(ame.text)&&(ame.text=""),ame.elm=$_.createComment(ame.text);else if(lme!==void 0){const hme=lme.indexOf("#"),pme=lme.indexOf(".",hme),gme=hme>0?hme:lme.length,yme=pme>0?pme:lme.length,mme=hme!==-1||pme!==-1?lme.slice(0,Math.min(gme,yme)):lme,bme=ame.elm=ag(sme)&&ag(ume=sme.ns)?$_.createElementNS(ume,mme,sme):$_.createElement(mme,sme);for(gme<yme&&bme.setAttribute("id",lme.slice(gme+1,yme)),pme>0&&bme.setAttribute("class",lme.slice(yme+1).replace(/\./g," ")),ume=0;ume<x_.create.length;++ume)x_.create[ume](ug,ame);if(rg(fme))for(ume=0;ume<fme.length;++ume){const _me=fme[ume];_me!=null&&$_.appendChild(bme,zP(_me,ome))}else og(ame.text)&&$_.appendChild(bme,$_.createTextNode(ame.text));const Sme=ame.data.hook;ag(Sme)&&((cme=Sme.create)===null||cme===void 0||cme.call(Sme,ug,ame),Sme.insert&&ome.push(ame))}else ame.elm=$_.createTextNode(ame.text);return ame.elm}function eme(ame,ome,ime,cme,ume,sme){for(;cme<=ume;++cme){const fme=ime[cme];fme!=null&&$_.insertBefore(ame,zP(fme,sme),ome)}}function tme(ame){var ome,ime;const cme=ame.data;if(cme!==void 0){(ime=(ome=cme==null?void 0:cme.hook)===null||ome===void 0?void 0:ome.destroy)===null||ime===void 0||ime.call(ome,ame);for(let ume=0;ume<x_.destroy.length;++ume)x_.destroy[ume](ame);if(ame.children!==void 0)for(let ume=0;ume<ame.children.length;++ume){const sme=ame.children[ume];sme!=null&&typeof sme!="string"&&tme(sme)}}}function nme(ame,ome,ime,cme){for(var ume,sme;ime<=cme;++ime){let fme,lme;const hme=ome[ime];if(hme!=null)if(ag(hme.sel)){tme(hme),fme=x_.remove.length+1,lme=$P(hme.elm,fme);for(let gme=0;gme<x_.remove.length;++gme)x_.remove[gme](hme,lme);const pme=(sme=(ume=hme==null?void 0:hme.data)===null||ume===void 0?void 0:ume.hook)===null||sme===void 0?void 0:sme.remove;ag(pme)?pme(hme,lme):lme()}else $_.removeChild(ame,hme.elm)}}function rme(ame,ome,ime){var cme,ume,sme,fme,lme;const hme=(cme=ome.data)===null||cme===void 0?void 0:cme.hook;(ume=hme==null?void 0:hme.prepatch)===null||ume===void 0||ume.call(hme,ame,ome);const pme=ome.elm=ame.elm,gme=ame.children,yme=ome.children;if(ame!==ome){if(ome.data!==void 0){for(let mme=0;mme<x_.update.length;++mme)x_.update[mme](ame,ome);(fme=(sme=ome.data.hook)===null||sme===void 0?void 0:sme.update)===null||fme===void 0||fme.call(sme,ame,ome)}ig(ome.text)?ag(gme)&&ag(yme)?gme!==yme&&function(mme,bme,Sme,_me){let Cme,Eme,Tme,Rme,Pme=0,$me=0,Dme=bme.length-1,Mme=bme[0],Nme=bme[Dme],Ime=Sme.length-1,wme=Sme[0],Ome=Sme[Ime];for(;Pme<=Dme&&$me<=Ime;)Mme==null?Mme=bme[++Pme]:Nme==null?Nme=bme[--Dme]:wme==null?wme=Sme[++$me]:Ome==null?Ome=Sme[--Ime]:sg(Mme,wme)?(rme(Mme,wme,_me),Mme=bme[++Pme],wme=Sme[++$me]):sg(Nme,Ome)?(rme(Nme,Ome,_me),Nme=bme[--Dme],Ome=Sme[--Ime]):sg(Mme,Ome)?(rme(Mme,Ome,_me),$_.insertBefore(mme,Mme.elm,$_.nextSibling(Nme.elm)),Mme=bme[++Pme],Ome=Sme[--Ime]):sg(Nme,wme)?(rme(Nme,wme,_me),$_.insertBefore(mme,Nme.elm,Mme.elm),Nme=bme[--Dme],wme=Sme[++$me]):(Cme===void 0&&(Cme=lg(bme,Pme,Dme)),Eme=Cme[wme.key],ig(Eme)?$_.insertBefore(mme,zP(wme,_me),Mme.elm):(Tme=bme[Eme],Tme.sel!==wme.sel?$_.insertBefore(mme,zP(wme,_me),Mme.elm):(rme(Tme,wme,_me),bme[Eme]=void 0,$_.insertBefore(mme,Tme.elm,Mme.elm))),wme=Sme[++$me]);(Pme<=Dme||$me<=Ime)&&(Pme>Dme?(Rme=Sme[Ime+1]==null?null:Sme[Ime+1].elm,eme(mme,Rme,Sme,$me,Ime,_me)):nme(mme,bme,Pme,Dme))}(pme,gme,yme,ime):ag(yme)?(ag(ame.text)&&$_.setTextContent(pme,""),eme(pme,null,yme,0,yme.length-1,ime)):ag(gme)?nme(pme,gme,0,gme.length-1):ag(ame.text)&&$_.setTextContent(pme,""):ame.text!==ome.text&&(ag(gme)&&nme(pme,gme,0,gme.length-1),$_.setTextContent(pme,ome.text)),(lme=hme==null?void 0:hme.postpatch)===null||lme===void 0||lme.call(hme,ame,ome)}}return function(ame,ome){let ime,cme,ume;const sme=[];for(ime=0;ime<x_.pre.length;++ime)x_.pre[ime]();for(function(fme){return fme.sel!==void 0}(ame)||(ame=B_(ame)),sg(ame,ome)?rme(ame,ome,sme):(cme=ame.elm,ume=$_.parentNode(cme),zP(ome,sme),ume!==null&&($_.insertBefore(ume,ome.elm,$_.nextSibling(cme)),nme(ume,[ame],0,0))),ime=0;ime<sme.length;++ime)sme[ime].data.hook.insert(sme[ime]);for(ime=0;ime<x_.post.length;++ime)x_.post[ime]();return ome}}function dg(Ff,kh,x_){if(Ff.ns="http://www.w3.org/2000/svg",x_!=="foreignObject"&&kh!==void 0)for(let $_=0;$_<kh.length;++$_){const B_=kh[$_].data;B_!==void 0&&dg(B_,kh[$_].children,kh[$_].sel)}}function pg(Ff,kh,x_){let $_,B_,$P,zP={};if(x_!==void 0?(kh!==null&&(zP=kh),rg(x_)?$_=x_:og(x_)?B_=x_.toString():x_&&x_.sel&&($_=[x_])):kh!=null&&(rg(kh)?$_=kh:og(kh)?B_=kh.toString():kh&&kh.sel?$_=[kh]:zP=kh),$_!==void 0)for($P=0;$P<$_.length;++$P)og($_[$P])&&($_[$P]=ng(void 0,void 0,void 0,$_[$P],void 0));return Ff[0]!=="s"||Ff[1]!=="v"||Ff[2]!=="g"||Ff.length!==3&&Ff[3]!=="."&&Ff[3]!=="#"||dg(zP,$_,Ff),ng(Ff,zP,$_,B_,void 0)}function hg(Ff,kh){let x_;const $_=kh.elm;let B_=Ff.data.attrs,$P=kh.data.attrs;if((B_||$P)&&B_!==$P){for(x_ in B_=B_||{},$P=$P||{},$P){const zP=$P[x_];B_[x_]!==zP&&(zP===!0?$_.setAttribute(x_,""):zP===!1?$_.removeAttribute(x_):x_.charCodeAt(0)!==120?$_.setAttribute(x_,zP):x_.charCodeAt(3)===58?$_.setAttributeNS("http://www.w3.org/XML/1998/namespace",x_,zP):x_.charCodeAt(5)===58?$_.setAttributeNS("http://www.w3.org/1999/xlink",x_,zP):$_.setAttribute(x_,zP))}for(x_ in B_)x_ in $P||$_.removeAttribute(x_)}}const gg={create:hg,update:hg};function vg(Ff,kh){let x_,$_;const B_=kh.elm;let $P=Ff.data.class,zP=kh.data.class;if(($P||zP)&&$P!==zP){for($_ in $P=$P||{},zP=zP||{},$P)$P[$_]&&!Object.prototype.hasOwnProperty.call(zP,$_)&&B_.classList.remove($_);for($_ in zP)x_=zP[$_],x_!==$P[$_]&&B_.classList[x_?"add":"remove"]($_)}}const yg={create:vg,update:vg},mg=/[A-Z]/g;function bg(Ff,kh){const x_=kh.elm;let $_,B_=Ff.data.dataset,$P=kh.data.dataset;if(!B_&&!$P||B_===$P)return;B_=B_||{},$P=$P||{};const zP=x_.dataset;for($_ in B_)$P[$_]||(zP?$_ in zP&&delete zP[$_]:x_.removeAttribute("data-"+$_.replace(mg,"-$&").toLowerCase()));for($_ in $P)B_[$_]!==$P[$_]&&(zP?zP[$_]=$P[$_]:x_.setAttribute("data-"+$_.replace(mg,"-$&").toLowerCase(),$P[$_]))}const wg={create:bg,update:bg};function Eg(Ff,kh,x_){if(typeof Ff=="function")Ff.call(kh,x_,kh);else if(typeof Ff=="object")for(let $_=0;$_<Ff.length;$_++)Eg(Ff[$_],kh,x_)}function Dg(Ff,kh){const x_=Ff.type,$_=kh.data.on;$_&&$_[x_]&&Eg($_[x_],kh,Ff)}function Sg(Ff,kh){const x_=Ff.data.on,$_=Ff.listener,B_=Ff.elm,$P=kh&&kh.data.on,zP=kh&&kh.elm;let eme;if(x_!==$P){if(x_&&$_)if($P)for(eme in x_)$P[eme]||B_.removeEventListener(eme,$_,!1);else for(eme in x_)B_.removeEventListener(eme,$_,!1);if($P){const tme=kh.listener=Ff.listener||function nme(rme){Dg(rme,nme.vnode)};if(tme.vnode=kh,x_)for(eme in $P)x_[eme]||zP.addEventListener(eme,tme,!1);else for(eme in $P)zP.addEventListener(eme,tme,!1)}}}const xg={create:Sg,update:Sg,destroy:Sg};function Cg(Ff,kh){let x_,$_,B_;const $P=kh.elm;let zP=Ff.data.props,eme=kh.data.props;if((zP||eme)&&zP!==eme)for(x_ in zP=zP||{},eme=eme||{},eme)$_=eme[x_],B_=zP[x_],B_===$_||x_==="value"&&$P[x_]===$_||($P[x_]=$_)}const Ag={create:Cg,update:Cg},Og=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let kg=!1;function Bg(Ff,kh,x_){(function($_){Og(function(){Og($_)})})(function(){Ff[kh]=x_})}function Fg(Ff,kh){let x_,$_;const B_=kh.elm;let $P=Ff.data.style,zP=kh.data.style;if(!$P&&!zP||$P===zP)return;$P=$P||{},zP=zP||{};const eme="delayed"in $P;for($_ in $P)zP[$_]||($_[0]==="-"&&$_[1]==="-"?B_.style.removeProperty($_):B_.style[$_]="");for($_ in zP)if(x_=zP[$_],$_==="delayed"&&zP.delayed)for(const tme in zP.delayed)x_=zP.delayed[tme],eme&&x_===$P.delayed[tme]||Bg(B_.style,tme,x_);else $_!=="remove"&&x_!==$P[$_]&&($_[0]==="-"&&$_[1]==="-"?B_.style.setProperty($_,x_):B_.style[$_]=x_)}const Tg={pre:function(){kg=!1},create:Fg,update:Fg,destroy:function(Ff){let kh,x_;const $_=Ff.elm,B_=Ff.data.style;if(B_&&(kh=B_.destroy))for(x_ in kh)$_.style[x_]=kh[x_]},remove:function(Ff,kh){const x_=Ff.data.style;if(!x_||!x_.remove)return void kh();let $_;kg||(Ff.elm.offsetLeft,kg=!0);const B_=Ff.elm;let $P=0;const zP=x_.remove;let eme=0;const tme=[];for($_ in zP)tme.push($_),B_.style[$_]=zP[$_];const nme=getComputedStyle(B_)["transition-property"].split(", ");for(;$P<nme.length;++$P)tme.indexOf(nme[$P])!==-1&&eme++;B_.addEventListener("transitionend",function(rme){rme.target===B_&&--eme,eme===0&&kh()})}};function _g(Ff,kh){for(const x_ of Ff)x_!=null&&x_!==!1&&x_!==""&&(Array.isArray(x_)?_g(x_,kh):typeof x_=="string"||typeof x_=="number"||typeof x_=="boolean"?kh.push(ng(void 0,void 0,void 0,String(x_),void 0)):kh.push(x_));return kh}function Pg(Ff,kh,...x_){const $_=_g(x_,[]);return typeof Ff=="function"?Ff(kh,$_):$_.length===1&&!$_[0].sel&&$_[0].text?pg(Ff,kh,$_[0].text):pg(Ff,kh,$_)}Pg||(Pg={});var jg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ng=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ig="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Lg="[\\ud800-\\udfff]",Rg="["+Ig+"]",Mg="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",zg="\\d+",$g="[\\u2700-\\u27bf]",Hg="[a-z\\xdf-\\xf6\\xf8-\\xff]",Vg="[^\\ud800-\\udfff"+Ig+zg+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ug="\\ud83c[\\udffb-\\udfff]",Wg="[^\\ud800-\\udfff]",Gg="(?:\\ud83c[\\udde6-\\uddff]){2}",qg="[\\ud800-\\udbff][\\udc00-\\udfff]",Kg="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Yg="(?:"+Hg+"|"+Vg+")",Xg="(?:"+Kg+"|"+Vg+")",Zg="(?:"+Mg+"|"+Ug+")?",Jg="[\\ufe0e\\ufe0f]?"+Zg+("(?:\\u200d(?:"+[Wg,Gg,qg].join("|")+")[\\ufe0e\\ufe0f]?"+Zg+")*"),Qg="(?:"+[$g,Gg,qg].join("|")+")"+Jg,ev="(?:"+[Wg+Mg+"?",Mg,Gg,qg,Lg].join("|")+")",tv=RegExp("['’]","g"),nv=RegExp(Mg,"g"),rv=RegExp(Ug+"(?="+Ug+")|"+ev+Jg,"g"),ov=RegExp([Kg+"?"+Hg+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Rg,Kg,"$"].join("|")+")",Xg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Rg,Kg+Yg,"$"].join("|")+")",Kg+"?"+Yg+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Kg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",zg,Qg].join("|"),"g"),iv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),av=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,uv=typeof e=="object"&&e&&e.Object===Object&&e,sv=typeof self=="object"&&self&&self.Object===Object&&self,lv=uv||sv||Function("return this")(),cv,fv=(cv={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(Ff){return cv==null?void 0:cv[Ff]});function dv(Ff){return iv.test(Ff)}function pv(Ff){return dv(Ff)?function(kh){return kh.match(rv)||[]}(Ff):function(kh){return kh.split("")}(Ff)}var hv=Object.prototype.toString,gv=lv.Symbol,vv=gv?gv.prototype:void 0,yv=vv?vv.toString:void 0;function mv(Ff){if(typeof Ff=="string")return Ff;if(function(x_){return typeof x_=="symbol"||function($_){return!!$_&&typeof $_=="object"}(x_)&&hv.call(x_)=="[object Symbol]"}(Ff))return yv?yv.call(Ff):"";var kh=Ff+"";return kh=="0"&&1/Ff==-1/0?"-0":kh}function bv(Ff,kh,x_){var $_=Ff.length;return x_=x_===void 0?$_:x_,!kh&&x_>=$_?Ff:function(B_,$P,zP){var eme=-1,tme=B_.length;$P<0&&($P=-$P>tme?0:tme+$P),(zP=zP>tme?tme:zP)<0&&(zP+=tme),tme=$P>zP?0:zP-$P>>>0,$P>>>=0;for(var nme=Array(tme);++eme<tme;)nme[eme]=B_[eme+$P];return nme}(Ff,kh,x_)}function wv(Ff){return Ff==null?"":mv(Ff)}var Ev,Dv=(Ev=function(Ff,kh,x_){return kh=kh.toLowerCase(),Ff+(x_?xv(wv(kh).toLowerCase()):kh)},function(Ff){return function(kh,x_,$_,B_){var $P=-1,zP=kh?kh.length:0;for(B_;++$P<zP;)$_=x_($_,kh[$P],$P,kh);return $_}(function(kh,x_,$_){return kh=wv(kh),(x_=x_)===void 0?function(B_){return av.test(B_)}(kh)?function(B_){return B_.match(ov)||[]}(kh):function(B_){return B_.match(jg)||[]}(kh):kh.match(x_)||[]}(function(kh){return(kh=wv(kh))&&kh.replace(Ng,fv).replace(nv,"")}(Ff).replace(tv,"")),Ev,"")}),Sv,xv=(Sv="toUpperCase",function(Ff){var kh=dv(Ff=wv(Ff))?pv(Ff):void 0,x_=kh?kh[0]:Ff.charAt(0),$_=kh?bv(kh,1).join(""):Ff.slice(1);return x_[Sv]()+$_});for(var Cv=Dv,Av=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Ov={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},kv={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Av?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Bv={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Fv=1;Fv<20;Fv++)Bv["f"+Fv]=111+Fv;function Tv(Ff,kh,x_){kh&&!("byKey"in kh)&&(x_=kh,kh=null),Array.isArray(Ff)||(Ff=[Ff]);var $_=Ff.map(function($P){return function(zP,eme){var tme=eme&&eme.byKey,nme={},rme=(zP=zP.replace("++","+add")).split("+"),ame=rme.length;for(var ome in Ov)nme[Ov[ome]]=!1;var ime=!0,cme=!1,ume=void 0;try{for(var sme,fme=rme[Symbol.iterator]();!(ime=(sme=fme.next()).done);ime=!0){var lme=sme.value,hme=lme.endsWith("?")&&lme.length>1;hme&&(lme=lme.slice(0,-1));var pme=Pv(lme),gme=Ov[pme];if(lme.length>1&&!gme&&!kv[lme]&&!Bv[pme])throw new TypeError('Unknown modifier: "'+lme+'"');ame!==1&&gme||(tme?nme.key=pme:nme.which=_v(lme)),gme&&(nme[gme]=!hme||null)}}catch(yme){cme=!0,ume=yme}finally{try{!ime&&fme.return&&fme.return()}finally{if(cme)throw ume}}return nme}($P,kh)}),B_=function($P){return $_.some(function(zP){return function(eme,tme){for(var nme in eme){var rme=eme[nme],ame=void 0;if(rme!=null&&((ame=nme==="key"&&tme.key!=null?tme.key.toLowerCase():nme==="which"?rme===91&&tme.which===93?91:tme.which:tme[nme])!=null||rme!==!1)&&ame!==rme)return!1}return!0}(zP,$P)})};return x_==null?B_:B_(x_)}function _v(Ff){return Ff=Pv(Ff),Bv[Ff]||Ff.toUpperCase().charCodeAt(0)}function Pv(Ff){return Ff=Ff.toLowerCase(),Ff=kv[Ff]||Ff}var jv=Tv,Nv=function(Ff,kh){return Tv(Ff,{byKey:!0},kh)},Iv=/^\s+|\s+$/g,Lv=/^[-+]0x[0-9a-f]+$/i,Rv=/^0b[01]+$/i,Mv=/^0o[0-7]+$/i,zv=parseInt,$v=typeof e=="object"&&e&&e.Object===Object&&e,Hv=typeof self=="object"&&self&&self.Object===Object&&self,Vv=$v||Hv||Function("return this")(),Uv=Object.prototype.toString,Wv=Math.max,Gv=Math.min,qv=function(){return Vv.Date.now()};function Kv(Ff){var kh=typeof Ff;return!!Ff&&(kh=="object"||kh=="function")}function Yv(Ff){if(typeof Ff=="number")return Ff;if(function($_){return typeof $_=="symbol"||function(B_){return!!B_&&typeof B_=="object"}($_)&&Uv.call($_)=="[object Symbol]"}(Ff))return NaN;if(Kv(Ff)){var kh=typeof Ff.valueOf=="function"?Ff.valueOf():Ff;Ff=Kv(kh)?kh+"":kh}if(typeof Ff!="string")return Ff===0?Ff:+Ff;Ff=Ff.replace(Iv,"");var x_=Rv.test(Ff);return x_||Mv.test(Ff)?zv(Ff.slice(2),x_?2:8):Lv.test(Ff)?NaN:+Ff}var Xv,Zv=function(Ff,kh,x_){var $_,B_,$P,zP,eme,tme,nme=0,rme=!1,ame=!1,ome=!0;if(typeof Ff!="function")throw new TypeError("Expected a function");function ime(hme){var pme=$_,gme=B_;return $_=B_=void 0,nme=hme,zP=Ff.apply(gme,pme)}function cme(hme){return nme=hme,eme=setTimeout(sme,kh),rme?ime(hme):zP}function ume(hme){var pme=hme-tme;return tme===void 0||pme>=kh||pme<0||ame&&hme-nme>=$P}function sme(){var hme=qv();if(ume(hme))return fme(hme);eme=setTimeout(sme,function(pme){var gme=kh-(pme-tme);return ame?Gv(gme,$P-(pme-nme)):gme}(hme))}function fme(hme){return eme=void 0,ome&&$_?ime(hme):($_=B_=void 0,zP)}function lme(){var hme=qv(),pme=ume(hme);if($_=arguments,B_=this,tme=hme,pme){if(eme===void 0)return cme(tme);if(ame)return eme=setTimeout(sme,kh),ime(tme)}return eme===void 0&&(eme=setTimeout(sme,kh)),zP}return kh=Yv(kh)||0,Kv(x_)&&(rme=!!x_.leading,$P=(ame="maxWait"in x_)?Wv(Yv(x_.maxWait)||0,kh):$P,ome="trailing"in x_?!!x_.trailing:ome),lme.cancel=function(){eme!==void 0&&clearTimeout(eme),nme=0,$_=tme=B_=eme=void 0},lme.flush=function(){return eme===void 0?zP:fme(qv())},lme},Jv=n(function(Ff,kh){var x_="__lodash_hash_undefined__",$_=9007199254740991,B_="[object Arguments]",$P="[object Boolean]",zP="[object Date]",eme="[object Function]",tme="[object GeneratorFunction]",nme="[object Map]",rme="[object Number]",ame="[object Object]",ome="[object Promise]",ime="[object RegExp]",cme="[object Set]",ume="[object String]",sme="[object Symbol]",fme="[object WeakMap]",lme="[object ArrayBuffer]",hme="[object DataView]",pme="[object Float32Array]",gme="[object Float64Array]",yme="[object Int8Array]",mme="[object Int16Array]",bme="[object Int32Array]",Sme="[object Uint8Array]",_me="[object Uint8ClampedArray]",Cme="[object Uint16Array]",Eme="[object Uint32Array]",Tme=/\w*$/,Rme=/^\[object .+?Constructor\]$/,Pme=/^(?:0|[1-9]\d*)$/,$me={};$me[B_]=$me["[object Array]"]=$me[lme]=$me[hme]=$me[$P]=$me[zP]=$me[pme]=$me[gme]=$me[yme]=$me[mme]=$me[bme]=$me[nme]=$me[rme]=$me[ame]=$me[ime]=$me[cme]=$me[ume]=$me[sme]=$me[Sme]=$me[_me]=$me[Cme]=$me[Eme]=!0,$me["[object Error]"]=$me[eme]=$me[fme]=!1;var Dme=typeof e=="object"&&e&&e.Object===Object&&e,Mme=typeof self=="object"&&self&&self.Object===Object&&self,Nme=Dme||Mme||Function("return this")(),Ime=kh&&!kh.nodeType&&kh,wme=Ime&&Ff&&!Ff.nodeType&&Ff,Ome=wme&&wme.exports===Ime;function Ame(Yme,l0e){return Yme.set(l0e[0],l0e[1]),Yme}function Fme(Yme,l0e){return Yme.add(l0e),Yme}function Bme(Yme,l0e,S0e,I0e){var Z0e=-1,lye=Yme?Yme.length:0;for(I0e;++Z0e<lye;)S0e=l0e(S0e,Yme[Z0e],Z0e,Yme);return S0e}function kme(Yme){var l0e=!1;if(Yme!=null&&typeof Yme.toString!="function")try{l0e=!!(Yme+"")}catch{}return l0e}function Lme(Yme){var l0e=-1,S0e=Array(Yme.size);return Yme.forEach(function(I0e,Z0e){S0e[++l0e]=[Z0e,I0e]}),S0e}function Hme(Yme,l0e){return function(S0e){return Yme(l0e(S0e))}}function Wme(Yme){var l0e=-1,S0e=Array(Yme.size);return Yme.forEach(function(I0e){S0e[++l0e]=I0e}),S0e}var zme=Array.prototype,Vme=Function.prototype,Xme=Object.prototype,e0e=Nme["__core-js_shared__"],Ume=function(){var Yme=/[^.]+$/.exec(e0e&&e0e.keys&&e0e.keys.IE_PROTO||"");return Yme?"Symbol(src)_1."+Yme:""}(),Jme=Vme.toString,s0e=Xme.hasOwnProperty,d0e=Xme.toString,Zme=RegExp("^"+Jme.call(s0e).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qme=Ome?Nme.Buffer:void 0,a0e=Nme.Symbol,t0e=Nme.Uint8Array,o0e=Hme(Object.getPrototypeOf,Object),g0e=Object.create,u0e=Xme.propertyIsEnumerable,h0e=zme.splice,E0e=Object.getOwnPropertySymbols,P0e=Qme?Qme.isBuffer:void 0,y0e=Hme(Object.keys,Object),$0e=hye(Nme,"DataView"),C0e=hye(Nme,"Map"),z0e=hye(Nme,"Promise"),D0e=hye(Nme,"Set"),O0e=hye(Nme,"WeakMap"),b0e=hye(Object,"create"),k0e=R0e($0e),T0e=R0e(C0e),L0e=R0e(z0e),Y0e=R0e(D0e),mye=R0e(O0e),Q0e=a0e?a0e.prototype:void 0,U0e=Q0e?Q0e.valueOf:void 0;function q0e(Yme){var l0e=-1,S0e=Yme?Yme.length:0;for(this.clear();++l0e<S0e;){var I0e=Yme[l0e];this.set(I0e[0],I0e[1])}}function V0e(Yme){var l0e=-1,S0e=Yme?Yme.length:0;for(this.clear();++l0e<S0e;){var I0e=Yme[l0e];this.set(I0e[0],I0e[1])}}function X0e(Yme){var l0e=-1,S0e=Yme?Yme.length:0;for(this.clear();++l0e<S0e;){var I0e=Yme[l0e];this.set(I0e[0],I0e[1])}}function M0e(Yme){this.__data__=new V0e(Yme)}function J0e(Yme,l0e){var S0e=n0e(Yme)||function(Tye){return function(xye){return function(Dye){return!!Dye&&typeof Dye=="object"}(xye)&&f0e(xye)}(Tye)&&s0e.call(Tye,"callee")&&(!u0e.call(Tye,"callee")||d0e.call(Tye)==B_)}(Yme)?function(Tye,xye){for(var Dye=-1,Lye=Array(Tye);++Dye<Tye;)Lye[Dye]=xye(Dye);return Lye}(Yme.length,String):[],I0e=S0e.length,Z0e=!!I0e;for(var lye in Yme)!s0e.call(Yme,lye)||Z0e&&(lye=="length"||Vye(lye,I0e))||S0e.push(lye);return S0e}function aye(Yme,l0e,S0e){var I0e=Yme[l0e];s0e.call(Yme,l0e)&&A0e(I0e,S0e)&&(S0e!==void 0||l0e in Yme)||(Yme[l0e]=S0e)}function F0e(Yme,l0e){for(var S0e=Yme.length;S0e--;)if(A0e(Yme[S0e][0],l0e))return S0e;return-1}function cye(Yme,l0e,S0e,I0e,Z0e,lye,Tye){var xye;if(I0e&&(xye=lye?I0e(Yme,Z0e,lye,Tye):I0e(Yme)),xye!==void 0)return xye;if(!j0e(Yme))return Yme;var Dye=n0e(Yme);if(Dye){if(xye=function(Sye){var jye=Sye.length,qye=Sye.constructor(jye);return jye&&typeof Sye[0]=="string"&&s0e.call(Sye,"index")&&(qye.index=Sye.index,qye.input=Sye.input),qye}(Yme),!l0e)return function(Sye,jye){var qye=-1,Rye=Sye.length;for(jye||(jye=Array(Rye));++qye<Rye;)jye[qye]=Sye[qye];return jye}(Yme,xye)}else{var Lye=Eye(Yme),lbe=Lye==eme||Lye==tme;if(m0e(Yme))return function(Sye,jye){if(jye)return Sye.slice();var qye=new Sye.constructor(Sye.length);return Sye.copy(qye),qye}(Yme,l0e);if(Lye==ame||Lye==B_||lbe&&!lye){if(kme(Yme))return lye?Yme:{};if(xye=function(Sye){return typeof Sye.constructor!="function"||r0e(Sye)?{}:(jye=o0e(Sye),j0e(jye)?g0e(jye):{});var jye}(lbe?{}:Yme),!l0e)return function(Sye,jye){return sye(Sye,wye(Sye),jye)}(Yme,function(Sye,jye){return Sye&&sye(jye,_0e(jye),Sye)}(xye,Yme))}else{if(!$me[Lye])return lye?Yme:{};xye=function(Sye,jye,qye,Rye){var Aye=Sye.constructor;switch(jye){case lme:return W0e(Sye);case $P:case zP:return new Aye(+Sye);case hme:return function(Oye,fye){var gye=fye?W0e(Oye.buffer):Oye.buffer;return new Oye.constructor(gye,Oye.byteOffset,Oye.byteLength)}(Sye,Rye);case pme:case gme:case yme:case mme:case bme:case Sme:case _me:case Cme:case Eme:return function(Oye,fye){var gye=fye?W0e(Oye.buffer):Oye.buffer;return new Oye.constructor(gye,Oye.byteOffset,Oye.length)}(Sye,Rye);case nme:return function(Oye,fye,gye){return Bme(fye?gye(Lme(Oye),!0):Lme(Oye),Ame,new Oye.constructor)}(Sye,Rye,qye);case rme:case ume:return new Aye(Sye);case ime:return function(Oye){var fye=new Oye.constructor(Oye.source,Tme.exec(Oye));return fye.lastIndex=Oye.lastIndex,fye}(Sye);case cme:return function(Oye,fye,gye){return Bme(fye?gye(Wme(Oye),!0):Wme(Oye),Fme,new Oye.constructor)}(Sye,Rye,qye);case sme:return function(Oye){return U0e?Object(U0e.call(Oye)):{}}(Sye)}}(Yme,Lye,cye,l0e)}}Tye||(Tye=new M0e);var Uye=Tye.get(Yme);if(Uye)return Uye;if(Tye.set(Yme,xye),!Dye)var Qye=S0e?function(Sye){return function(jye,qye,Rye){var Aye=qye(jye);return n0e(jye)?Aye:function(Oye,fye){for(var gye=-1,Hye=fye.length,Xye=Oye.length;++gye<Hye;)Oye[Xye+gye]=fye[gye];return Oye}(Aye,Rye(jye))}(Sye,_0e,wye)}(Yme):_0e(Yme);return function(Sye,jye){for(var qye=-1,Rye=Sye?Sye.length:0;++qye<Rye&&jye(Sye[qye],qye,Sye)!==!1;);}(Qye||Yme,function(Sye,jye){Qye&&(Sye=Yme[jye=Sye]),aye(xye,jye,cye(Sye,l0e,S0e,I0e,jye,Yme,Tye))}),xye}function yye(Yme){return!(!j0e(Yme)||function(l0e){return!!Ume&&Ume in l0e}(Yme))&&(w0e(Yme)||kme(Yme)?Zme:Rme).test(R0e(Yme))}function W0e(Yme){var l0e=new Yme.constructor(Yme.byteLength);return new t0e(l0e).set(new t0e(Yme)),l0e}function sye(Yme,l0e,S0e,I0e){S0e||(S0e={});for(var Z0e=-1,lye=l0e.length;++Z0e<lye;){var Tye=l0e[Z0e],xye=void 0;aye(S0e,Tye,xye===void 0?Yme[Tye]:xye)}return S0e}function G0e(Yme,l0e){var S0e,I0e,Z0e=Yme.__data__;return((I0e=typeof(S0e=l0e))=="string"||I0e=="number"||I0e=="symbol"||I0e=="boolean"?S0e!=="__proto__":S0e===null)?Z0e[typeof l0e=="string"?"string":"hash"]:Z0e.map}function hye(Yme,l0e){var S0e=function(I0e,Z0e){return I0e==null?void 0:I0e[Z0e]}(Yme,l0e);return yye(S0e)?S0e:void 0}q0e.prototype.clear=function(){this.__data__=b0e?b0e(null):{}},q0e.prototype.delete=function(Yme){return this.has(Yme)&&delete this.__data__[Yme]},q0e.prototype.get=function(Yme){var l0e=this.__data__;if(b0e){var S0e=l0e[Yme];return S0e===x_?void 0:S0e}return s0e.call(l0e,Yme)?l0e[Yme]:void 0},q0e.prototype.has=function(Yme){var l0e=this.__data__;return b0e?l0e[Yme]!==void 0:s0e.call(l0e,Yme)},q0e.prototype.set=function(Yme,l0e){return this.__data__[Yme]=b0e&&l0e===void 0?x_:l0e,this},V0e.prototype.clear=function(){this.__data__=[]},V0e.prototype.delete=function(Yme){var l0e=this.__data__,S0e=F0e(l0e,Yme);return!(S0e<0)&&(S0e==l0e.length-1?l0e.pop():h0e.call(l0e,S0e,1),!0)},V0e.prototype.get=function(Yme){var l0e=this.__data__,S0e=F0e(l0e,Yme);return S0e<0?void 0:l0e[S0e][1]},V0e.prototype.has=function(Yme){return F0e(this.__data__,Yme)>-1},V0e.prototype.set=function(Yme,l0e){var S0e=this.__data__,I0e=F0e(S0e,Yme);return I0e<0?S0e.push([Yme,l0e]):S0e[I0e][1]=l0e,this},X0e.prototype.clear=function(){this.__data__={hash:new q0e,map:new(C0e||V0e),string:new q0e}},X0e.prototype.delete=function(Yme){return G0e(this,Yme).delete(Yme)},X0e.prototype.get=function(Yme){return G0e(this,Yme).get(Yme)},X0e.prototype.has=function(Yme){return G0e(this,Yme).has(Yme)},X0e.prototype.set=function(Yme,l0e){return G0e(this,Yme).set(Yme,l0e),this},M0e.prototype.clear=function(){this.__data__=new V0e},M0e.prototype.delete=function(Yme){return this.__data__.delete(Yme)},M0e.prototype.get=function(Yme){return this.__data__.get(Yme)},M0e.prototype.has=function(Yme){return this.__data__.has(Yme)},M0e.prototype.set=function(Yme,l0e){var S0e=this.__data__;if(S0e instanceof V0e){var I0e=S0e.__data__;if(!C0e||I0e.length<199)return I0e.push([Yme,l0e]),this;S0e=this.__data__=new X0e(I0e)}return S0e.set(Yme,l0e),this};var wye=E0e?Hme(E0e,Object):function(){return[]},Eye=function(Yme){return d0e.call(Yme)};function Vye(Yme,l0e){return!!(l0e=l0e??$_)&&(typeof Yme=="number"||Pme.test(Yme))&&Yme>-1&&Yme%1==0&&Yme<l0e}function r0e(Yme){var l0e=Yme&&Yme.constructor;return Yme===(typeof l0e=="function"&&l0e.prototype||Xme)}function R0e(Yme){if(Yme!=null){try{return Jme.call(Yme)}catch{}try{return Yme+""}catch{}}return""}function A0e(Yme,l0e){return Yme===l0e||Yme!=Yme&&l0e!=l0e}($0e&&Eye(new $0e(new ArrayBuffer(1)))!=hme||C0e&&Eye(new C0e)!=nme||z0e&&Eye(z0e.resolve())!=ome||D0e&&Eye(new D0e)!=cme||O0e&&Eye(new O0e)!=fme)&&(Eye=function(Yme){var l0e=d0e.call(Yme),S0e=l0e==ame?Yme.constructor:void 0,I0e=S0e?R0e(S0e):void 0;if(I0e)switch(I0e){case k0e:return hme;case T0e:return nme;case L0e:return ome;case Y0e:return cme;case mye:return fme}return l0e});var n0e=Array.isArray;function f0e(Yme){return Yme!=null&&function(l0e){return typeof l0e=="number"&&l0e>-1&&l0e%1==0&&l0e<=$_}(Yme.length)&&!w0e(Yme)}var m0e=P0e||function(){return!1};function w0e(Yme){var l0e=j0e(Yme)?d0e.call(Yme):"";return l0e==eme||l0e==tme}function j0e(Yme){var l0e=typeof Yme;return!!Yme&&(l0e=="object"||l0e=="function")}function _0e(Yme){return f0e(Yme)?J0e(Yme):function(l0e){if(!r0e(l0e))return y0e(l0e);var S0e=[];for(var I0e in Object(l0e))s0e.call(l0e,I0e)&&I0e!="constructor"&&S0e.push(I0e);return S0e}(Yme)}Ff.exports=function(Yme){return cye(Yme,!0,!0)}});function Qv(Ff,kh){if(!Object.prototype.hasOwnProperty.call(Ff,kh))throw new TypeError("attempted to use private field on non-instance");return Ff}var ey=0;function ty(Ff){return"__private_"+ey+++"_"+Ff}function ny(Ff,kh,x_){const $_=[];return Ff.forEach(B_=>typeof B_!="string"?$_.push(B_):kh[Symbol.split](B_).forEach(($P,zP,eme)=>{$P!==""&&$_.push($P),zP<eme.length-1&&$_.push(x_)})),$_}/**
451
+ `));var ame=$_(Ff).pop();if(Nf.has(Ff,ame)){var ome=Bf.node(Ff,ame);Ff.normalizeNode(ome)}rme++}})}},parent(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$_=Bf.path(Ff,kh,x_),B_=Mf.parent($_);return Bf.node(Ff,B_)},path(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:$_,edge:B_}=x_;if(Mf.isPath(kh)){if(B_==="start"){var[,$P]=Nf.first(Ff,kh);kh=$P}else if(B_==="end"){var[,zP]=Nf.last(Ff,kh);kh=zP}}return qf.isRange(kh)&&(kh=B_==="start"?qf.start(kh):B_==="end"?qf.end(kh):Mf.common(kh.anchor.path,kh.focus.path)),Vf.isPoint(kh)&&(kh=kh.path),$_!=null&&(kh=kh.slice(0,$_)),kh},hasPath:(Ff,kh)=>Nf.has(Ff,kh),pathRef(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:$_="forward"}=x_,B_={current:kh,affinity:$_,unref(){var{current:$P}=B_;return Bf.pathRefs(Ff).delete(B_),B_.current=null,$P}};return Bf.pathRefs(Ff).add(B_),B_},pathRefs(Ff){var kh=zc.get(Ff);return kh||(kh=new Set,zc.set(Ff,kh)),kh},point(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:$_="start"}=x_;if(Mf.isPath(kh)){var B_;if($_==="end"){var[,$P]=Nf.last(Ff,kh);B_=$P}else{var[,zP]=Nf.first(Ff,kh);B_=zP}var eme=Nf.get(Ff,B_);if(!ed.isText(eme))throw new Error("Cannot get the ".concat($_," point in the node at path [").concat(kh,"] because it has no ").concat($_," text node."));return{path:B_,offset:$_==="end"?eme.text.length:0}}if(qf.isRange(kh)){var[tme,nme]=qf.edges(kh);return $_==="start"?tme:nme}return kh},pointRef(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:$_="forward"}=x_,B_={current:kh,affinity:$_,unref(){var{current:$P}=B_;return Bf.pointRefs(Ff).delete(B_),B_.current=null,$P}};return Bf.pointRefs(Ff).add(B_),B_},pointRefs(Ff){var kh=$c.get(Ff);return kh||(kh=new Set,$c.set(Ff,kh)),kh},*positions(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:x_=Ff.selection,unit:$_="offset",reverse:B_=!1,voids:$P=!1}=kh;if(x_){var zP=Bf.range(Ff,x_),[eme,tme]=qf.edges(zP),nme=B_?tme:eme,rme=!1,ame="",ome=0,ime=0,cme=0;for(var[ume,sme]of Bf.nodes(Ff,{at:x_,reverse:B_,voids:$P})){if(Sf.isElement(ume)){if(!$P&&Ff.isVoid(ume)){yield Bf.start(Ff,sme);continue}if(Ff.isInline(ume))continue;if(Bf.hasInlines(Ff,ume)){var fme=Mf.isAncestor(sme,tme.path)?tme:Bf.end(Ff,sme),lme=Mf.isAncestor(sme,eme.path)?eme:Bf.start(Ff,sme);ame=Bf.string(Ff,{anchor:lme,focus:fme},{voids:$P}),rme=!0}}if(ed.isText(ume)){var hme=Mf.equals(sme,nme.path);for(hme?(ime=B_?nme.offset:ume.text.length-nme.offset,cme=nme.offset):(ime=ume.text.length,cme=B_?ime:0),(hme||rme||$_==="offset")&&(yield{path:sme,offset:cme},rme=!1);;){if(ome===0){if(ame==="")break;ome=pme(ame,$_,B_),ame=Qc(ame,ome,B_)[1]}if(cme=B_?cme-ome:cme+ome,(ime-=ome)<0){ome=-ime;break}ome=0,yield{path:sme,offset:cme}}}}}function pme(gme,yme,mme){return yme==="character"?Yc(gme,mme):yme==="word"?function(bme){for(var Sme=arguments.length>1&&arguments[1]!==void 0&&arguments[1],_me=0,Cme=!1;bme.length>0;){var Eme=Yc(bme,Sme),[Tme,Rme]=Qc(bme,Eme,Sme);if(ef(Tme,Rme,Sme))Cme=!0,_me+=Eme;else{if(Cme)break;_me+=Eme}bme=Rme}return _me}(gme,mme):yme==="line"||yme==="block"?gme.length:1}},previous(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:x_="lowest",voids:$_=!1}=kh,{match:B_,at:$P=Ff.selection}=kh;if($P){var zP=Bf.before(Ff,$P,{voids:$_});if(zP){var[,eme]=Bf.first(Ff,[]),tme=[zP.path,eme];if(Mf.isPath($P)&&$P.length===0)throw new Error("Cannot get the previous node from the root node!");if(B_==null)if(Mf.isPath($P)){var[nme]=Bf.parent(Ff,$P);B_=ame=>nme.children.includes(ame)}else B_=()=>!0;var[rme]=Bf.nodes(Ff,{reverse:!0,at:tme,match:B_,mode:x_,voids:$_});return rme}}},range:(Ff,kh,x_)=>qf.isRange(kh)&&!x_?kh:{anchor:Bf.start(Ff,kh),focus:Bf.end(Ff,x_||kh)},rangeRef(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:$_="forward"}=x_,B_={current:kh,affinity:$_,unref(){var{current:$P}=B_;return Bf.rangeRefs(Ff).delete(B_),B_.current=null,$P}};return Bf.rangeRefs(Ff).add(B_),B_},rangeRefs(Ff){var kh=Hc.get(Ff);return kh||(kh=new Set,Hc.set(Ff,kh)),kh},removeMark(Ff,kh){Ff.removeMark(kh)},setNormalizing(Ff,kh){Mc.set(Ff,kh)},start:(Ff,kh)=>Bf.point(Ff,kh,{edge:"start"}),string(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:$_=!1}=x_,B_=Bf.range(Ff,kh),[$P,zP]=qf.edges(B_),eme="";for(var[tme,nme]of Bf.nodes(Ff,{at:B_,match:ed.isText,voids:$_})){var rme=tme.text;Mf.equals(nme,zP.path)&&(rme=rme.slice(0,zP.offset)),Mf.equals(nme,$P.path)&&(rme=rme.slice($P.offset)),eme+=rme}return eme},unhangRange(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:$_=!1}=x_,[B_,$P]=qf.edges(kh);if(B_.offset!==0||$P.offset!==0||qf.isCollapsed(kh))return kh;var zP=Bf.above(Ff,{at:$P,match:ome=>Bf.isBlock(Ff,ome)}),eme=zP?zP[1]:[],tme={anchor:Bf.start(Ff,[]),focus:$P},nme=!0;for(var[rme,ame]of Bf.nodes(Ff,{at:tme,match:ed.isText,reverse:!0,voids:$_}))if(nme)nme=!1;else if(rme.text!==""||Mf.isBefore(ame,eme)){$P={path:ame,offset:rme.text.length};break}return{anchor:B_,focus:$P}},void(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Bf.above(Ff,Of(Of({},kh),{},{match:x_=>Bf.isVoid(Ff,x_)}))},withoutNormalizing(Ff,kh){var x_=Bf.isNormalizing(Ff);Bf.setNormalizing(Ff,!1);try{kh()}finally{Bf.setNormalizing(Ff,x_)}Bf.normalize(Ff)}},Tf={isSpan:Ff=>Array.isArray(Ff)&&Ff.length===2&&Ff.every(Mf.isPath)},_f=["children"],Pf=["text"],jf=new WeakMap,Nf={ancestor(Ff,kh){var x_=Nf.get(Ff,kh);if(ed.isText(x_))throw new Error("Cannot get the ancestor node at path [".concat(kh,"] because it refers to a text node instead: ").concat(x_));return x_},*ancestors(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var $_ of Mf.ancestors(kh,x_)){var B_=[Nf.ancestor(Ff,$_),$_];yield B_}},child(Ff,kh){if(ed.isText(Ff))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(Ff)));var x_=Ff.children[kh];if(x_==null)throw new Error("Cannot get child at index `".concat(kh,"` in node: ").concat(JSON.stringify(Ff)));return x_},*children(Ff,kh){for(var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:$_=!1}=x_,B_=Nf.ancestor(Ff,kh),{children:$P}=B_,zP=$_?$P.length-1:0;$_?zP>=0:zP<$P.length;){var eme=Nf.child(B_,zP),tme=kh.concat(zP);yield[eme,tme],zP=$_?zP-1:zP+1}},common(Ff,kh,x_){var $_=Mf.common(kh,x_);return[Nf.get(Ff,$_),$_]},descendant(Ff,kh){var x_=Nf.get(Ff,kh);if(Bf.isEditor(x_))throw new Error("Cannot get the descendant node at path [".concat(kh,"] because it refers to the root editor node instead: ").concat(x_));return x_},*descendants(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[x_,$_]of Nf.nodes(Ff,kh))$_.length!==0&&(yield[x_,$_])},*elements(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[x_,$_]of Nf.nodes(Ff,kh))Sf.isElement(x_)&&(yield[x_,$_])},extractProps:Ff=>Sf.isAncestor(Ff)?qc(Ff,_f):qc(Ff,Pf),first(Ff,kh){for(var x_=kh.slice(),$_=Nf.get(Ff,x_);$_&&!ed.isText($_)&&$_.children.length!==0;)$_=$_.children[0],x_.push(0);return[$_,x_]},fragment(Ff,kh){if(ed.isText(Ff))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(Ff)));var x_=Pc({children:Ff.children},$_=>{var[B_,$P]=qf.edges(kh),zP=Nf.nodes($_,{reverse:!0,pass:ome=>{var[,ime]=ome;return!qf.includes(kh,ime)}});for(var[,eme]of zP){if(!qf.includes(kh,eme)){var tme=Nf.parent($_,eme),nme=eme[eme.length-1];tme.children.splice(nme,1)}if(Mf.equals(eme,$P.path)){var rme=Nf.leaf($_,eme);rme.text=rme.text.slice(0,$P.offset)}if(Mf.equals(eme,B_.path)){var ame=Nf.leaf($_,eme);ame.text=ame.text.slice(B_.offset)}}Bf.isEditor($_)&&($_.selection=null)});return x_.children},get(Ff,kh){for(var x_=Ff,$_=0;$_<kh.length;$_++){var B_=kh[$_];if(ed.isText(x_)||!x_.children[B_])throw new Error("Cannot find a descendant at path [".concat(kh,"] in node: ").concat(JSON.stringify(Ff)));x_=x_.children[B_]}return x_},has(Ff,kh){for(var x_=Ff,$_=0;$_<kh.length;$_++){var B_=kh[$_];if(ed.isText(x_)||!x_.children[B_])return!1;x_=x_.children[B_]}return!0},isNode:Ff=>ed.isText(Ff)||Sf.isElement(Ff)||Bf.isEditor(Ff),isNodeList(Ff){if(!Array.isArray(Ff))return!1;var kh=jf.get(Ff);if(kh!==void 0)return kh;var x_=Ff.every($_=>Nf.isNode($_));return jf.set(Ff,x_),x_},last(Ff,kh){for(var x_=kh.slice(),$_=Nf.get(Ff,x_);$_&&!ed.isText($_)&&$_.children.length!==0;){var B_=$_.children.length-1;$_=$_.children[B_],x_.push(B_)}return[$_,x_]},leaf(Ff,kh){var x_=Nf.get(Ff,kh);if(!ed.isText(x_))throw new Error("Cannot get the leaf node at path [".concat(kh,"] because it refers to a non-leaf node: ").concat(x_));return x_},*levels(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var $_ of Mf.levels(kh,x_)){var B_=Nf.get(Ff,$_);yield[B_,$_]}},matches:(Ff,kh)=>Sf.isElement(Ff)&&Sf.isElementProps(kh)&&Sf.matches(Ff,kh)||ed.isText(Ff)&&ed.isTextProps(kh)&&ed.matches(Ff,kh),*nodes(Ff){for(var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:x_,reverse:$_=!1}=kh,{from:B_=[],to:$P}=kh,zP=new Set,eme=[],tme=Ff;!$P||!($_?Mf.isBefore(eme,$P):Mf.isAfter(eme,$P));)if(zP.has(tme)||(yield[tme,eme]),zP.has(tme)||ed.isText(tme)||tme.children.length===0||x_!=null&&x_([tme,eme])!==!1){if(eme.length===0)break;if(!$_){var nme=Mf.next(eme);if(Nf.has(Ff,nme)){eme=nme,tme=Nf.get(Ff,eme);continue}}$_&&eme[eme.length-1]!==0?(eme=Mf.previous(eme),tme=Nf.get(Ff,eme)):(eme=Mf.parent(eme),tme=Nf.get(Ff,eme),zP.add(tme))}else{zP.add(tme);var rme=$_?tme.children.length-1:0;Mf.isAncestor(eme,B_)&&(rme=B_[eme.length]),eme=eme.concat(rme),tme=Nf.get(Ff,eme)}},parent(Ff,kh){var x_=Mf.parent(kh),$_=Nf.get(Ff,x_);if(ed.isText($_))throw new Error("Cannot get the parent of path [".concat(kh,"] because it does not exist in the root."));return $_},string:Ff=>ed.isText(Ff)?Ff.text:Ff.children.map(Nf.string).join(""),*texts(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[x_,$_]of Nf.nodes(Ff,kh))ed.isText(x_)&&(yield[x_,$_])}};function If(Ff,kh){var x_=Object.keys(Ff);if(Object.getOwnPropertySymbols){var $_=Object.getOwnPropertySymbols(Ff);kh&&($_=$_.filter(function(B_){return Object.getOwnPropertyDescriptor(Ff,B_).enumerable})),x_.push.apply(x_,$_)}return x_}function Lf(Ff){for(var kh=1;kh<arguments.length;kh++){var x_=arguments[kh]!=null?arguments[kh]:{};kh%2?If(Object(x_),!0).forEach(function($_){Ic(Ff,$_,x_[$_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ff,Object.getOwnPropertyDescriptors(x_)):If(Object(x_)).forEach(function($_){Object.defineProperty(Ff,$_,Object.getOwnPropertyDescriptor(x_,$_))})}return Ff}var Rf={isNodeOperation:Ff=>Rf.isOperation(Ff)&&Ff.type.endsWith("_node"),isOperation(Ff){if(!Ll(Ff))return!1;switch(Ff.type){case"insert_node":case"remove_node":return Mf.isPath(Ff.path)&&Nf.isNode(Ff.node);case"insert_text":case"remove_text":return typeof Ff.offset=="number"&&typeof Ff.text=="string"&&Mf.isPath(Ff.path);case"merge_node":return typeof Ff.position=="number"&&Mf.isPath(Ff.path)&&Ll(Ff.properties);case"move_node":return Mf.isPath(Ff.path)&&Mf.isPath(Ff.newPath);case"set_node":return Mf.isPath(Ff.path)&&Ll(Ff.properties)&&Ll(Ff.newProperties);case"set_selection":return Ff.properties===null&&qf.isRange(Ff.newProperties)||Ff.newProperties===null&&qf.isRange(Ff.properties)||Ll(Ff.properties)&&Ll(Ff.newProperties);case"split_node":return Mf.isPath(Ff.path)&&typeof Ff.position=="number"&&Ll(Ff.properties);default:return!1}},isOperationList:Ff=>Array.isArray(Ff)&&Ff.every(kh=>Rf.isOperation(kh)),isSelectionOperation:Ff=>Rf.isOperation(Ff)&&Ff.type.endsWith("_selection"),isTextOperation:Ff=>Rf.isOperation(Ff)&&Ff.type.endsWith("_text"),inverse(Ff){switch(Ff.type){case"insert_node":return Lf(Lf({},Ff),{},{type:"remove_node"});case"insert_text":return Lf(Lf({},Ff),{},{type:"remove_text"});case"merge_node":return Lf(Lf({},Ff),{},{type:"split_node",path:Mf.previous(Ff.path)});case"move_node":var{newPath:kh,path:x_}=Ff;if(Mf.equals(kh,x_))return Ff;if(Mf.isSibling(x_,kh))return Lf(Lf({},Ff),{},{path:kh,newPath:x_});var $_=Mf.transform(x_,Ff),B_=Mf.transform(Mf.next(x_),Ff);return Lf(Lf({},Ff),{},{path:$_,newPath:B_});case"remove_node":return Lf(Lf({},Ff),{},{type:"insert_node"});case"remove_text":return Lf(Lf({},Ff),{},{type:"insert_text"});case"set_node":var{properties:$P,newProperties:zP}=Ff;return Lf(Lf({},Ff),{},{properties:zP,newProperties:$P});case"set_selection":var{properties:eme,newProperties:tme}=Ff;return Lf(Lf({},Ff),{},eme==null?{properties:tme,newProperties:null}:tme==null?{properties:null,newProperties:eme}:{properties:tme,newProperties:eme});case"split_node":return Lf(Lf({},Ff),{},{type:"merge_node",path:Mf.next(Ff.path)})}}},Mf={ancestors(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:x_=!1}=kh,$_=Mf.levels(Ff,kh);return $_=x_?$_.slice(1):$_.slice(0,-1)},common(Ff,kh){for(var x_=[],$_=0;$_<Ff.length&&$_<kh.length;$_++){var B_=Ff[$_];if(B_!==kh[$_])break;x_.push(B_)}return x_},compare(Ff,kh){for(var x_=Math.min(Ff.length,kh.length),$_=0;$_<x_;$_++){if(Ff[$_]<kh[$_])return-1;if(Ff[$_]>kh[$_])return 1}return 0},endsAfter(Ff,kh){var x_=Ff.length-1,$_=Ff.slice(0,x_),B_=kh.slice(0,x_),$P=Ff[x_],zP=kh[x_];return Mf.equals($_,B_)&&$P>zP},endsAt(Ff,kh){var x_=Ff.length,$_=Ff.slice(0,x_),B_=kh.slice(0,x_);return Mf.equals($_,B_)},endsBefore(Ff,kh){var x_=Ff.length-1,$_=Ff.slice(0,x_),B_=kh.slice(0,x_),$P=Ff[x_],zP=kh[x_];return Mf.equals($_,B_)&&$P<zP},equals:(Ff,kh)=>Ff.length===kh.length&&Ff.every((x_,$_)=>x_===kh[$_]),hasPrevious:Ff=>Ff[Ff.length-1]>0,isAfter:(Ff,kh)=>Mf.compare(Ff,kh)===1,isAncestor:(Ff,kh)=>Ff.length<kh.length&&Mf.compare(Ff,kh)===0,isBefore:(Ff,kh)=>Mf.compare(Ff,kh)===-1,isChild:(Ff,kh)=>Ff.length===kh.length+1&&Mf.compare(Ff,kh)===0,isCommon:(Ff,kh)=>Ff.length<=kh.length&&Mf.compare(Ff,kh)===0,isDescendant:(Ff,kh)=>Ff.length>kh.length&&Mf.compare(Ff,kh)===0,isParent:(Ff,kh)=>Ff.length+1===kh.length&&Mf.compare(Ff,kh)===0,isPath:Ff=>Array.isArray(Ff)&&(Ff.length===0||typeof Ff[0]=="number"),isSibling(Ff,kh){if(Ff.length!==kh.length)return!1;var x_=Ff.slice(0,-1),$_=kh.slice(0,-1);return Ff[Ff.length-1]!==kh[kh.length-1]&&Mf.equals(x_,$_)},levels(Ff){for(var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:x_=!1}=kh,$_=[],B_=0;B_<=Ff.length;B_++)$_.push(Ff.slice(0,B_));return x_&&$_.reverse(),$_},next(Ff){if(Ff.length===0)throw new Error("Cannot get the next path of a root path [".concat(Ff,"], because it has no next index."));var kh=Ff[Ff.length-1];return Ff.slice(0,-1).concat(kh+1)},parent(Ff){if(Ff.length===0)throw new Error("Cannot get the parent path of the root path [".concat(Ff,"]."));return Ff.slice(0,-1)},previous(Ff){if(Ff.length===0)throw new Error("Cannot get the previous path of a root path [".concat(Ff,"], because it has no previous index."));var kh=Ff[Ff.length-1];if(kh<=0)throw new Error("Cannot get the previous path of a first child path [".concat(Ff,"] because it would result in a negative index."));return Ff.slice(0,-1).concat(kh-1)},relative(Ff,kh){if(!Mf.isAncestor(kh,Ff)&&!Mf.equals(Ff,kh))throw new Error("Cannot get the relative path of [".concat(Ff,"] inside ancestor [").concat(kh,"], because it is not above or equal to the path."));return Ff.slice(kh.length)},transform(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Pc(Ff,$_=>{var{affinity:B_="forward"}=x_;if(Ff&&(Ff==null?void 0:Ff.length)!==0){if($_===null)return null;switch(kh.type){case"insert_node":var{path:$P}=kh;(Mf.equals($P,$_)||Mf.endsBefore($P,$_)||Mf.isAncestor($P,$_))&&($_[$P.length-1]+=1);break;case"remove_node":var{path:zP}=kh;if(Mf.equals(zP,$_)||Mf.isAncestor(zP,$_))return null;Mf.endsBefore(zP,$_)&&($_[zP.length-1]-=1);break;case"merge_node":var{path:eme,position:tme}=kh;Mf.equals(eme,$_)||Mf.endsBefore(eme,$_)?$_[eme.length-1]-=1:Mf.isAncestor(eme,$_)&&($_[eme.length-1]-=1,$_[eme.length]+=tme);break;case"split_node":var{path:nme,position:rme}=kh;if(Mf.equals(nme,$_)){if(B_==="forward")$_[$_.length-1]+=1;else if(B_!=="backward")return null}else Mf.endsBefore(nme,$_)?$_[nme.length-1]+=1:Mf.isAncestor(nme,$_)&&Ff[nme.length]>=rme&&($_[nme.length-1]+=1,$_[nme.length]-=rme);break;case"move_node":var{path:ame,newPath:ome}=kh;if(Mf.equals(ame,ome))return;if(Mf.isAncestor(ame,$_)||Mf.equals(ame,$_)){var ime=ome.slice();return Mf.endsBefore(ame,ome)&&ame.length<ome.length&&(ime[ame.length-1]-=1),ime.concat($_.slice(ame.length))}Mf.isSibling(ame,ome)&&(Mf.isAncestor(ome,$_)||Mf.equals(ome,$_))?Mf.endsBefore(ame,$_)?$_[ame.length-1]-=1:$_[ame.length-1]+=1:Mf.endsBefore(ome,$_)||Mf.equals(ome,$_)||Mf.isAncestor(ome,$_)?(Mf.endsBefore(ame,$_)&&($_[ame.length-1]-=1),$_[ome.length-1]+=1):Mf.endsBefore(ame,$_)&&(Mf.equals(ome,$_)&&($_[ome.length-1]+=1),$_[ame.length-1]-=1)}}})}},zf={transform(Ff,kh){var{current:x_,affinity:$_}=Ff;if(x_!=null){var B_=Mf.transform(x_,kh,{affinity:$_});Ff.current=B_,B_==null&&Ff.unref()}}};function $f(Ff,kh){var x_=Object.keys(Ff);if(Object.getOwnPropertySymbols){var $_=Object.getOwnPropertySymbols(Ff);kh&&($_=$_.filter(function(B_){return Object.getOwnPropertyDescriptor(Ff,B_).enumerable})),x_.push.apply(x_,$_)}return x_}function Hf(Ff){for(var kh=1;kh<arguments.length;kh++){var x_=arguments[kh]!=null?arguments[kh]:{};kh%2?$f(Object(x_),!0).forEach(function($_){Ic(Ff,$_,x_[$_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ff,Object.getOwnPropertyDescriptors(x_)):$f(Object(x_)).forEach(function($_){Object.defineProperty(Ff,$_,Object.getOwnPropertyDescriptor(x_,$_))})}return Ff}var Vf={compare(Ff,kh){var x_=Mf.compare(Ff.path,kh.path);return x_===0?Ff.offset<kh.offset?-1:Ff.offset>kh.offset?1:0:x_},isAfter:(Ff,kh)=>Vf.compare(Ff,kh)===1,isBefore:(Ff,kh)=>Vf.compare(Ff,kh)===-1,equals:(Ff,kh)=>Ff.offset===kh.offset&&Mf.equals(Ff.path,kh.path),isPoint:Ff=>Ll(Ff)&&typeof Ff.offset=="number"&&Mf.isPath(Ff.path),transform(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Pc(Ff,$_=>{if($_===null)return null;var{affinity:B_="forward"}=x_,{path:$P,offset:zP}=$_;switch(kh.type){case"insert_node":case"move_node":$_.path=Mf.transform($P,kh,x_);break;case"insert_text":Mf.equals(kh.path,$P)&&kh.offset<=zP&&($_.offset+=kh.text.length);break;case"merge_node":Mf.equals(kh.path,$P)&&($_.offset+=kh.position),$_.path=Mf.transform($P,kh,x_);break;case"remove_text":Mf.equals(kh.path,$P)&&kh.offset<=zP&&($_.offset-=Math.min(zP-kh.offset,kh.text.length));break;case"remove_node":if(Mf.equals(kh.path,$P)||Mf.isAncestor(kh.path,$P))return null;$_.path=Mf.transform($P,kh,x_);break;case"split_node":if(Mf.equals(kh.path,$P)){if(kh.position===zP&&B_==null)return null;(kh.position<zP||kh.position===zP&&B_==="forward")&&($_.offset-=kh.position,$_.path=Mf.transform($P,kh,Hf(Hf({},x_),{},{affinity:"forward"})))}else $_.path=Mf.transform($P,kh,x_)}})}},Uf={transform(Ff,kh){var{current:x_,affinity:$_}=Ff;if(x_!=null){var B_=Vf.transform(x_,kh,{affinity:$_});Ff.current=B_,B_==null&&Ff.unref()}}},Wf=["anchor","focus"];function Gf(Ff,kh){var x_=Object.keys(Ff);if(Object.getOwnPropertySymbols){var $_=Object.getOwnPropertySymbols(Ff);kh&&($_=$_.filter(function(B_){return Object.getOwnPropertyDescriptor(Ff,B_).enumerable})),x_.push.apply(x_,$_)}return x_}var qf={edges(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:x_=!1}=kh,{anchor:$_,focus:B_}=Ff;return qf.isBackward(Ff)===x_?[$_,B_]:[B_,$_]},end(Ff){var[,kh]=qf.edges(Ff);return kh},equals:(Ff,kh)=>Vf.equals(Ff.anchor,kh.anchor)&&Vf.equals(Ff.focus,kh.focus),includes(Ff,kh){if(qf.isRange(kh)){if(qf.includes(Ff,kh.anchor)||qf.includes(Ff,kh.focus))return!0;var[x_,$_]=qf.edges(Ff),[B_,$P]=qf.edges(kh);return Vf.isBefore(x_,B_)&&Vf.isAfter($_,$P)}var[zP,eme]=qf.edges(Ff),tme=!1,nme=!1;return Vf.isPoint(kh)?(tme=Vf.compare(kh,zP)>=0,nme=Vf.compare(kh,eme)<=0):(tme=Mf.compare(kh,zP.path)>=0,nme=Mf.compare(kh,eme.path)<=0),tme&&nme},intersection(Ff,kh){var x_=qc(Ff,Wf),[$_,B_]=qf.edges(Ff),[$P,zP]=qf.edges(kh),eme=Vf.isBefore($_,$P)?$P:$_,tme=Vf.isBefore(B_,zP)?B_:zP;return Vf.isBefore(tme,eme)?null:function(nme){for(var rme=1;rme<arguments.length;rme++){var ame=arguments[rme]!=null?arguments[rme]:{};rme%2?Gf(Object(ame),!0).forEach(function(ome){Ic(nme,ome,ame[ome])}):Object.getOwnPropertyDescriptors?Object.defineProperties(nme,Object.getOwnPropertyDescriptors(ame)):Gf(Object(ame)).forEach(function(ome){Object.defineProperty(nme,ome,Object.getOwnPropertyDescriptor(ame,ome))})}return nme}({anchor:eme,focus:tme},x_)},isBackward(Ff){var{anchor:kh,focus:x_}=Ff;return Vf.isAfter(kh,x_)},isCollapsed(Ff){var{anchor:kh,focus:x_}=Ff;return Vf.equals(kh,x_)},isExpanded:Ff=>!qf.isCollapsed(Ff),isForward:Ff=>!qf.isBackward(Ff),isRange:Ff=>Ll(Ff)&&Vf.isPoint(Ff.anchor)&&Vf.isPoint(Ff.focus),*points(Ff){yield[Ff.anchor,"anchor"],yield[Ff.focus,"focus"]},start(Ff){var[kh]=qf.edges(Ff);return kh},transform(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Pc(Ff,$_=>{if($_===null)return null;var B_,$P,{affinity:zP="inward"}=x_;if(zP==="inward"){var eme=qf.isCollapsed($_);qf.isForward($_)?(B_="forward",$P=eme?B_:"backward"):(B_="backward",$P=eme?B_:"forward")}else zP==="outward"?qf.isForward($_)?(B_="backward",$P="forward"):(B_="forward",$P="backward"):(B_=zP,$P=zP);var tme=Vf.transform($_.anchor,kh,{affinity:B_}),nme=Vf.transform($_.focus,kh,{affinity:$P});if(!tme||!nme)return null;$_.anchor=tme,$_.focus=nme})}},Kf={transform(Ff,kh){var{current:x_,affinity:$_}=Ff;if(x_!=null){var B_=qf.transform(x_,kh,{affinity:$_});Ff.current=B_,B_==null&&Ff.unref()}}},Yf=(Ff,kh)=>{for(var x_ in Ff){var $_=Ff[x_],B_=kh[x_];if(Ll($_)&&Ll(B_)){if(!Yf($_,B_))return!1}else if(Array.isArray($_)&&Array.isArray(B_)){if($_.length!==B_.length)return!1;for(var $P=0;$P<$_.length;$P++)if($_[$P]!==B_[$P])return!1}else if($_!==B_)return!1}for(var zP in kh)if(Ff[zP]===void 0&&kh[zP]!==void 0)return!1;return!0},Xf=["text"],Zf=["anchor","focus"];function Jf(Ff,kh){var x_=Object.keys(Ff);if(Object.getOwnPropertySymbols){var $_=Object.getOwnPropertySymbols(Ff);kh&&($_=$_.filter(function(B_){return Object.getOwnPropertyDescriptor(Ff,B_).enumerable})),x_.push.apply(x_,$_)}return x_}function Qf(Ff){for(var kh=1;kh<arguments.length;kh++){var x_=arguments[kh]!=null?arguments[kh]:{};kh%2?Jf(Object(x_),!0).forEach(function($_){Ic(Ff,$_,x_[$_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ff,Object.getOwnPropertyDescriptors(x_)):Jf(Object(x_)).forEach(function($_){Object.defineProperty(Ff,$_,Object.getOwnPropertyDescriptor(x_,$_))})}return Ff}var ed={equals(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:$_=!1}=x_;function B_($P){return qc($P,Xf)}return Yf($_?B_(Ff):Ff,$_?B_(kh):kh)},isText:Ff=>Ll(Ff)&&typeof Ff.text=="string",isTextList:Ff=>Array.isArray(Ff)&&Ff.every(kh=>ed.isText(kh)),isTextProps:Ff=>Ff.text!==void 0,matches(Ff,kh){for(var x_ in kh)if(x_!=="text"&&(!Ff.hasOwnProperty(x_)||Ff[x_]!==kh[x_]))return!1;return!0},decorations(Ff,kh){var x_=[Qf({},Ff)];for(var $_ of kh){var B_=qc($_,Zf),[$P,zP]=qf.edges($_),eme=[],tme=0;for(var nme of x_){var{length:rme}=nme.text,ame=tme;if(tme+=rme,$P.offset<=ame&&zP.offset>=tme)Object.assign(nme,B_),eme.push(nme);else if($P.offset!==zP.offset&&($P.offset===tme||zP.offset===ame)||$P.offset>tme||zP.offset<ame||zP.offset===ame&&ame!==0)eme.push(nme);else{var ome=nme,ime=void 0,cme=void 0;if(zP.offset<tme){var ume=zP.offset-ame;cme=Qf(Qf({},ome),{},{text:ome.text.slice(ume)}),ome=Qf(Qf({},ome),{},{text:ome.text.slice(0,ume)})}if($P.offset>ame){var sme=$P.offset-ame;ime=Qf(Qf({},ome),{},{text:ome.text.slice(0,sme)}),ome=Qf(Qf({},ome),{},{text:ome.text.slice(sme)})}Object.assign(ome,B_),ime&&eme.push(ime),eme.push(ome),cme&&eme.push(cme)}}x_=eme}return x_}};function td(Ff,kh){var x_=Object.keys(Ff);if(Object.getOwnPropertySymbols){var $_=Object.getOwnPropertySymbols(Ff);kh&&($_=$_.filter(function(B_){return Object.getOwnPropertyDescriptor(Ff,B_).enumerable})),x_.push.apply(x_,$_)}return x_}function nd(Ff){for(var kh=1;kh<arguments.length;kh++){var x_=arguments[kh]!=null?arguments[kh]:{};kh%2?td(Object(x_),!0).forEach(function($_){Ic(Ff,$_,x_[$_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ff,Object.getOwnPropertyDescriptors(x_)):td(Object(x_)).forEach(function($_){Object.defineProperty(Ff,$_,Object.getOwnPropertyDescriptor(x_,$_))})}return Ff}var rd={transform(Ff,kh){Ff.children=jc(Ff.children);var x_=Ff.selection&&jc(Ff.selection);try{x_=(($_,B_,$P)=>{switch($P.type){case"insert_node":var{path:zP,node:eme}=$P,tme=Nf.parent($_,zP),nme=zP[zP.length-1];if(nme>tme.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(zP,"] because the destination is past the end of the node."));if(tme.children.splice(nme,0,eme),B_)for(var[rme,ame]of qf.points(B_))B_[ame]=Vf.transform(rme,$P);break;case"insert_text":var{path:ome,offset:ime,text:cme}=$P;if(cme.length===0)break;var ume=Nf.leaf($_,ome),sme=ume.text.slice(0,ime),fme=ume.text.slice(ime);if(ume.text=sme+cme+fme,B_)for(var[lme,hme]of qf.points(B_))B_[hme]=Vf.transform(lme,$P);break;case"merge_node":var{path:pme}=$P,gme=Nf.get($_,pme),yme=Mf.previous(pme),mme=Nf.get($_,yme),bme=Nf.parent($_,pme),Sme=pme[pme.length-1];if(ed.isText(gme)&&ed.isText(mme))mme.text+=gme.text;else{if(ed.isText(gme)||ed.isText(mme))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(pme,"] to nodes of different interfaces: ").concat(gme," ").concat(mme));mme.children.push(...gme.children)}if(bme.children.splice(Sme,1),B_)for(var[_me,Cme]of qf.points(B_))B_[Cme]=Vf.transform(_me,$P);break;case"move_node":var{path:Eme,newPath:Tme}=$P;if(Mf.isAncestor(Eme,Tme))throw new Error("Cannot move a path [".concat(Eme,"] to new path [").concat(Tme,"] because the destination is inside itself."));var Rme=Nf.get($_,Eme),Pme=Nf.parent($_,Eme),$me=Eme[Eme.length-1];Pme.children.splice($me,1);var Dme=Mf.transform(Eme,$P),Mme=Nf.get($_,Mf.parent(Dme)),Nme=Dme[Dme.length-1];if(Mme.children.splice(Nme,0,Rme),B_)for(var[Ime,wme]of qf.points(B_))B_[wme]=Vf.transform(Ime,$P);break;case"remove_node":var{path:Ome}=$P,Ame=Ome[Ome.length-1];if(Nf.parent($_,Ome).children.splice(Ame,1),B_)for(var[Fme,Bme]of qf.points(B_)){var kme=Vf.transform(Fme,$P);if(B_!=null&&kme!=null)B_[Bme]=kme;else{var Lme=void 0,Hme=void 0;for(var[Wme,zme]of Nf.texts($_)){if(Mf.compare(zme,Ome)!==-1){Hme=[Wme,zme];break}Lme=[Wme,zme]}var Vme=!1;Lme&&Hme&&(Vme=Mf.equals(Hme[1],Ome)?!Mf.hasPrevious(Hme[1]):Mf.common(Lme[1],Ome).length<Mf.common(Hme[1],Ome).length),Lme&&!Vme?(Fme.path=Lme[1],Fme.offset=Lme[0].text.length):Hme?(Fme.path=Hme[1],Fme.offset=0):B_=null}}break;case"remove_text":var{path:Xme,offset:e0e,text:Ume}=$P;if(Ume.length===0)break;var Jme=Nf.leaf($_,Xme),s0e=Jme.text.slice(0,e0e),d0e=Jme.text.slice(e0e+Ume.length);if(Jme.text=s0e+d0e,B_)for(var[Zme,Qme]of qf.points(B_))B_[Qme]=Vf.transform(Zme,$P);break;case"set_node":var{path:a0e,properties:t0e,newProperties:o0e}=$P;if(a0e.length===0)throw new Error("Cannot set properties on the root node!");var g0e=Nf.get($_,a0e);for(var u0e in o0e){if(u0e==="children"||u0e==="text")throw new Error('Cannot set the "'.concat(u0e,'" property of nodes!'));var h0e=o0e[u0e];h0e==null?delete g0e[u0e]:g0e[u0e]=h0e}for(var E0e in t0e)o0e.hasOwnProperty(E0e)||delete g0e[E0e];break;case"set_selection":var{newProperties:P0e}=$P;if(P0e==null)B_=P0e;else{if(B_==null){if(!qf.isRange(P0e))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(P0e)," when there is no current selection."));B_=nd({},P0e)}for(var y0e in P0e){var $0e=P0e[y0e];if($0e==null){if(y0e==="anchor"||y0e==="focus")throw new Error('Cannot remove the "'.concat(y0e,'" selection property'));delete B_[y0e]}else B_[y0e]=$0e}}break;case"split_node":var{path:C0e,position:z0e,properties:D0e}=$P;if(C0e.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(C0e,"] because the root node cannot be split."));var O0e,b0e=Nf.get($_,C0e),k0e=Nf.parent($_,C0e),T0e=C0e[C0e.length-1];if(ed.isText(b0e)){var L0e=b0e.text.slice(0,z0e),Y0e=b0e.text.slice(z0e);b0e.text=L0e,O0e=nd(nd({},D0e),{},{text:Y0e})}else{var mye=b0e.children.slice(0,z0e),Q0e=b0e.children.slice(z0e);b0e.children=mye,O0e=nd(nd({},D0e),{},{children:Q0e})}if(k0e.children.splice(T0e+1,0,O0e),B_)for(var[U0e,q0e]of qf.points(B_))B_[q0e]=Vf.transform(U0e,$P)}return B_})(Ff,x_,kh)}finally{Ff.children=Nc(Ff.children),Ff.selection=x_?Ml(x_)?Nc(x_):x_:null}}},od=["text"],id=["children"];function ad(Ff,kh){var x_=Object.keys(Ff);if(Object.getOwnPropertySymbols){var $_=Object.getOwnPropertySymbols(Ff);kh&&($_=$_.filter(function(B_){return Object.getOwnPropertyDescriptor(Ff,B_).enumerable})),x_.push.apply(x_,$_)}return x_}function ud(Ff){for(var kh=1;kh<arguments.length;kh++){var x_=arguments[kh]!=null?arguments[kh]:{};kh%2?ad(Object(x_),!0).forEach(function($_){Ic(Ff,$_,x_[$_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ff,Object.getOwnPropertyDescriptors(x_)):ad(Object(x_)).forEach(function($_){Object.defineProperty(Ff,$_,Object.getOwnPropertyDescriptor(x_,$_))})}return Ff}var sd={insertNodes(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Bf.withoutNormalizing(Ff,()=>{var{hanging:$_=!1,voids:B_=!1,mode:$P="lowest"}=x_,{at:zP,match:eme,select:tme}=x_;if(Nf.isNode(kh)&&(kh=[kh]),kh.length!==0){var[nme]=kh;if(zP||(zP=Ff.selection?Ff.selection:Ff.children.length>0?Bf.end(Ff,[]):[0],tme=!0),tme==null&&(tme=!1),qf.isRange(zP))if($_||(zP=Bf.unhangRange(Ff,zP)),qf.isCollapsed(zP))zP=zP.anchor;else{var[,rme]=qf.edges(zP),ame=Bf.pointRef(Ff,rme);md.delete(Ff,{at:zP}),zP=ame.unref()}if(Vf.isPoint(zP)){eme==null&&(eme=ed.isText(nme)?yme=>ed.isText(yme):Ff.isInline(nme)?yme=>ed.isText(yme)||Bf.isInline(Ff,yme):yme=>Bf.isBlock(Ff,yme));var[ome]=Bf.nodes(Ff,{at:zP.path,match:eme,mode:$P,voids:B_});if(!ome)return;var[,ime]=ome,cme=Bf.pathRef(Ff,ime),ume=Bf.isEnd(Ff,zP,ime);md.splitNodes(Ff,{at:zP,match:eme,mode:$P,voids:B_});var sme=cme.unref();zP=ume?Mf.next(sme):sme}var fme=Mf.parent(zP),lme=zP[zP.length-1];if(B_||!Bf.void(Ff,{at:fme})){for(var hme of kh){var pme=fme.concat(lme);lme++,Ff.apply({type:"insert_node",path:pme,node:hme}),zP=Mf.next(zP)}if(zP=Mf.previous(zP),tme){var gme=Bf.end(Ff,zP);gme&&md.select(Ff,gme)}}}})},liftNodes(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bf.withoutNormalizing(Ff,()=>{var{at:x_=Ff.selection,mode:$_="lowest",voids:B_=!1}=kh,{match:$P}=kh;if($P==null&&($P=Mf.isPath(x_)?fd(Ff,x_):hme=>Bf.isBlock(Ff,hme)),x_){var zP=Bf.nodes(Ff,{at:x_,match:$P,mode:$_,voids:B_}),eme=Array.from(zP,hme=>{var[,pme]=hme;return Bf.pathRef(Ff,pme)});for(var tme of eme){var nme=tme.unref();if(nme.length<2)throw new Error("Cannot lift node at a path [".concat(nme,"] because it has a depth of less than `2`."));var rme=Bf.node(Ff,Mf.parent(nme)),[ame,ome]=rme,ime=nme[nme.length-1],{length:cme}=ame.children;if(cme===1){var ume=Mf.next(ome);md.moveNodes(Ff,{at:nme,to:ume,voids:B_}),md.removeNodes(Ff,{at:ome,voids:B_})}else if(ime===0)md.moveNodes(Ff,{at:nme,to:ome,voids:B_});else if(ime===cme-1){var sme=Mf.next(ome);md.moveNodes(Ff,{at:nme,to:sme,voids:B_})}else{var fme=Mf.next(nme),lme=Mf.next(ome);md.splitNodes(Ff,{at:fme,voids:B_}),md.moveNodes(Ff,{at:nme,to:lme,voids:B_})}}}})},mergeNodes(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bf.withoutNormalizing(Ff,()=>{var{match:x_,at:$_=Ff.selection}=kh,{hanging:B_=!1,voids:$P=!1,mode:zP="lowest"}=kh;if($_){if(x_==null)if(Mf.isPath($_)){var[eme]=Bf.parent(Ff,$_);x_=Sme=>eme.children.includes(Sme)}else x_=Sme=>Bf.isBlock(Ff,Sme);if(!B_&&qf.isRange($_)&&($_=Bf.unhangRange(Ff,$_)),qf.isRange($_))if(qf.isCollapsed($_))$_=$_.anchor;else{var[,tme]=qf.edges($_),nme=Bf.pointRef(Ff,tme);md.delete(Ff,{at:$_}),$_=nme.unref(),kh.at==null&&md.select(Ff,$_)}var[rme]=Bf.nodes(Ff,{at:$_,match:x_,voids:$P,mode:zP}),ame=Bf.previous(Ff,{at:$_,match:x_,voids:$P,mode:zP});if(rme&&ame){var[ome,ime]=rme,[cme,ume]=ame;if(ime.length!==0&&ume.length!==0){var sme,fme,lme=Mf.next(ume),hme=Mf.common(ime,ume),pme=Mf.isSibling(ime,ume),gme=Array.from(Bf.levels(Ff,{at:ime}),Sme=>{var[_me]=Sme;return _me}).slice(hme.length).slice(0,-1),yme=Bf.above(Ff,{at:ime,mode:"highest",match:Sme=>gme.includes(Sme)&&ld(Ff,Sme)}),mme=yme&&Bf.pathRef(Ff,yme[1]);if(ed.isText(ome)&&ed.isText(cme)){var bme=qc(ome,od);fme=cme.text.length,sme=bme}else{if(!Sf.isElement(ome)||!Sf.isElement(cme))throw new Error("Cannot merge the node at path [".concat(ime,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(ome)," ").concat(JSON.stringify(cme)));bme=qc(ome,id),fme=cme.children.length,sme=bme}pme||md.moveNodes(Ff,{at:ime,to:lme,voids:$P}),mme&&md.removeNodes(Ff,{at:mme.current,voids:$P}),Sf.isElement(cme)&&Bf.isEmpty(Ff,cme)||ed.isText(cme)&&cme.text===""&&ume[ume.length-1]!==0?md.removeNodes(Ff,{at:ume,voids:$P}):Ff.apply({type:"merge_node",path:lme,position:fme,properties:sme}),mme&&mme.unref()}}}})},moveNodes(Ff,kh){Bf.withoutNormalizing(Ff,()=>{var{to:x_,at:$_=Ff.selection,mode:B_="lowest",voids:$P=!1}=kh,{match:zP}=kh;if($_){zP==null&&(zP=Mf.isPath($_)?fd(Ff,$_):ime=>Bf.isBlock(Ff,ime));var eme=Bf.pathRef(Ff,x_),tme=Bf.nodes(Ff,{at:$_,match:zP,mode:B_,voids:$P}),nme=Array.from(tme,ime=>{var[,cme]=ime;return Bf.pathRef(Ff,cme)});for(var rme of nme){var ame=rme.unref(),ome=eme.current;ame.length!==0&&Ff.apply({type:"move_node",path:ame,newPath:ome}),eme.current&&Mf.isSibling(ome,ame)&&Mf.isAfter(ome,ame)&&(eme.current=Mf.next(eme.current))}eme.unref()}})},removeNodes(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bf.withoutNormalizing(Ff,()=>{var{hanging:x_=!1,voids:$_=!1,mode:B_="lowest"}=kh,{at:$P=Ff.selection,match:zP}=kh;if($P){zP==null&&(zP=Mf.isPath($P)?fd(Ff,$P):ome=>Bf.isBlock(Ff,ome)),!x_&&qf.isRange($P)&&($P=Bf.unhangRange(Ff,$P));var eme=Bf.nodes(Ff,{at:$P,match:zP,mode:B_,voids:$_}),tme=Array.from(eme,ome=>{var[,ime]=ome;return Bf.pathRef(Ff,ime)});for(var nme of tme){var rme=nme.unref();if(rme){var[ame]=Bf.node(Ff,rme);Ff.apply({type:"remove_node",path:rme,node:ame})}}}})},setNodes(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Bf.withoutNormalizing(Ff,()=>{var{match:$_,at:B_=Ff.selection}=x_,{hanging:$P=!1,mode:zP="lowest",split:eme=!1,voids:tme=!1}=x_;if(B_){if($_==null&&($_=Mf.isPath(B_)?fd(Ff,B_):gme=>Bf.isBlock(Ff,gme)),!$P&&qf.isRange(B_)&&(B_=Bf.unhangRange(Ff,B_)),eme&&qf.isRange(B_)){if(qf.isCollapsed(B_)&&Bf.leaf(Ff,B_.anchor)[0].text.length>0)return;var nme=Bf.rangeRef(Ff,B_,{affinity:"inward"}),[rme,ame]=qf.edges(B_),ome=zP==="lowest"?"lowest":"highest",ime=Bf.isEnd(Ff,ame,ame.path);md.splitNodes(Ff,{at:ame,match:$_,mode:ome,voids:tme,always:!ime});var cme=Bf.isStart(Ff,rme,rme.path);md.splitNodes(Ff,{at:rme,match:$_,mode:ome,voids:tme,always:!cme}),B_=nme.unref(),x_.at==null&&md.select(Ff,B_)}for(var[ume,sme]of Bf.nodes(Ff,{at:B_,match:$_,mode:zP,voids:tme})){var fme={},lme={};if(sme.length!==0){var hme=!1;for(var pme in kh)pme!=="children"&&pme!=="text"&&kh[pme]!==ume[pme]&&(hme=!0,ume.hasOwnProperty(pme)&&(fme[pme]=ume[pme]),kh[pme]!=null&&(lme[pme]=kh[pme]));hme&&Ff.apply({type:"set_node",path:sme,properties:fme,newProperties:lme})}}}})},splitNodes(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bf.withoutNormalizing(Ff,()=>{var{mode:x_="lowest",voids:$_=!1}=kh,{match:B_,at:$P=Ff.selection,height:zP=0,always:eme=!1}=kh;if(B_==null&&(B_=Rme=>Bf.isBlock(Ff,Rme)),qf.isRange($P)&&($P=cd(Ff,$P)),Mf.isPath($P)){var tme=$P,nme=Bf.point(Ff,tme),[rme]=Bf.parent(Ff,tme);B_=Rme=>Rme===rme,zP=nme.path.length-tme.length+1,$P=nme,eme=!0}if($P){var ame=Bf.pointRef(Ff,$P,{affinity:"backward"}),[ome]=Bf.nodes(Ff,{at:$P,match:B_,mode:x_,voids:$_});if(ome){var ime=Bf.void(Ff,{at:$P,mode:"highest"});if(!$_&&ime){var[cme,ume]=ime;if(Sf.isElement(cme)&&Ff.isInline(cme)){var sme=Bf.after(Ff,ume);if(!sme){var fme=Mf.next(ume);md.insertNodes(Ff,{text:""},{at:fme,voids:$_}),sme=Bf.point(Ff,fme)}$P=sme,eme=!0}zP=$P.path.length-ume.length+1,eme=!0}var lme=Bf.pointRef(Ff,$P),hme=$P.path.length-zP,[,pme]=ome,gme=$P.path.slice(0,hme),yme=zP===0?$P.offset:$P.path[hme]+0;for(var[mme,bme]of Bf.levels(Ff,{at:gme,reverse:!0,voids:$_})){var Sme=!1;if(bme.length<pme.length||bme.length===0||!$_&&Bf.isVoid(Ff,mme))break;var _me=ame.current,Cme=Bf.isEnd(Ff,_me,bme);if(eme||!ame||!Bf.isEdge(Ff,_me,bme)){Sme=!0;var Eme=Nf.extractProps(mme);Ff.apply({type:"split_node",path:bme,position:yme,properties:Eme})}yme=bme[bme.length-1]+(Sme||Cme?1:0)}if(kh.at==null){var Tme=lme.current||Bf.end(Ff,[]);md.select(Ff,Tme)}ame.unref(),lme.unref()}}})},unsetNodes(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(kh)||(kh=[kh]);var $_={};for(var B_ of kh)$_[B_]=null;md.setNodes(Ff,$_,x_)},unwrapNodes(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bf.withoutNormalizing(Ff,()=>{var{mode:x_="lowest",split:$_=!1,voids:B_=!1}=kh,{at:$P=Ff.selection,match:zP}=kh;if($P){zP==null&&(zP=Mf.isPath($P)?fd(Ff,$P):ome=>Bf.isBlock(Ff,ome)),Mf.isPath($P)&&($P=Bf.range(Ff,$P));var eme=qf.isRange($P)?Bf.rangeRef(Ff,$P):null,tme=Bf.nodes(Ff,{at:$P,match:zP,mode:x_,voids:B_}),nme=Array.from(tme,ome=>{var[,ime]=ome;return Bf.pathRef(Ff,ime)}).reverse(),rme=function(ome){var ime=ome.unref(),[cme]=Bf.node(Ff,ime),ume=Bf.range(Ff,ime);$_&&eme&&(ume=qf.intersection(eme.current,ume)),md.liftNodes(Ff,{at:ume,match:sme=>Sf.isAncestor(cme)&&cme.children.includes(sme),voids:B_})};for(var ame of nme)rme(ame);eme&&eme.unref()}})},wrapNodes(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Bf.withoutNormalizing(Ff,()=>{var{mode:$_="lowest",split:B_=!1,voids:$P=!1}=x_,{match:zP,at:eme=Ff.selection}=x_;if(eme){if(zP==null&&(zP=Mf.isPath(eme)?fd(Ff,eme):Ff.isInline(kh)?sme=>Bf.isInline(Ff,sme)||ed.isText(sme):sme=>Bf.isBlock(Ff,sme)),B_&&qf.isRange(eme)){var[tme,nme]=qf.edges(eme),rme=Bf.rangeRef(Ff,eme,{affinity:"inward"});md.splitNodes(Ff,{at:nme,match:zP,voids:$P}),md.splitNodes(Ff,{at:tme,match:zP,voids:$P}),eme=rme.unref(),x_.at==null&&md.select(Ff,eme)}var ame=Array.from(Bf.nodes(Ff,{at:eme,match:Ff.isInline(kh)?sme=>Bf.isBlock(Ff,sme):sme=>Bf.isEditor(sme),mode:"lowest",voids:$P}));for(var[,ome]of ame){var ime=qf.isRange(eme)?qf.intersection(eme,Bf.range(Ff,ome)):eme;if(ime){var cme=Array.from(Bf.nodes(Ff,{at:ime,match:zP,mode:$_,voids:$P}));if(cme.length>0){var ume=function(){var[sme]=cme,fme=cme[cme.length-1],[,lme]=sme,[,hme]=fme;if(lme.length===0&&hme.length===0)return"continue";var pme=Mf.equals(lme,hme)?Mf.parent(lme):Mf.common(lme,hme),gme=Bf.range(Ff,lme,hme),yme=Bf.node(Ff,pme),[mme]=yme,bme=pme.length+1,Sme=Mf.next(hme.slice(0,bme)),_me=ud(ud({},kh),{},{children:[]});md.insertNodes(Ff,_me,{at:Sme,voids:$P}),md.moveNodes(Ff,{at:gme,match:Cme=>Sf.isAncestor(mme)&&mme.children.includes(Cme),to:Sme.concat(0),voids:$P})}();if(ume==="continue")continue}}}}})}},ld=(Ff,kh)=>{if(Sf.isElement(kh)){var x_=kh;return!!Bf.isVoid(Ff,kh)||x_.children.length===1&&ld(Ff,x_.children[0])}return!Bf.isEditor(kh)},cd=(Ff,kh)=>{if(qf.isCollapsed(kh))return kh.anchor;var[,x_]=qf.edges(kh),$_=Bf.pointRef(Ff,x_);return md.delete(Ff,{at:kh}),$_.unref()},fd=(Ff,kh)=>{var[x_]=Bf.node(Ff,kh);return $_=>$_===x_};function dd(Ff,kh){var x_=Object.keys(Ff);if(Object.getOwnPropertySymbols){var $_=Object.getOwnPropertySymbols(Ff);kh&&($_=$_.filter(function(B_){return Object.getOwnPropertyDescriptor(Ff,B_).enumerable})),x_.push.apply(x_,$_)}return x_}function pd(Ff){for(var kh=1;kh<arguments.length;kh++){var x_=arguments[kh]!=null?arguments[kh]:{};kh%2?dd(Object(x_),!0).forEach(function($_){Ic(Ff,$_,x_[$_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ff,Object.getOwnPropertyDescriptors(x_)):dd(Object(x_)).forEach(function($_){Object.defineProperty(Ff,$_,Object.getOwnPropertyDescriptor(x_,$_))})}return Ff}var hd={collapse(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:x_="anchor"}=kh,{selection:$_}=Ff;if($_){if(x_==="anchor")md.select(Ff,$_.anchor);else if(x_==="focus")md.select(Ff,$_.focus);else if(x_==="start"){var[B_]=qf.edges($_);md.select(Ff,B_)}else if(x_==="end"){var[,$P]=qf.edges($_);md.select(Ff,$P)}}},deselect(Ff){var{selection:kh}=Ff;kh&&Ff.apply({type:"set_selection",properties:kh,newProperties:null})},move(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:x_}=Ff,{distance:$_=1,unit:B_="character",reverse:$P=!1}=kh,{edge:zP=null}=kh;if(x_){zP==="start"&&(zP=qf.isBackward(x_)?"focus":"anchor"),zP==="end"&&(zP=qf.isBackward(x_)?"anchor":"focus");var{anchor:eme,focus:tme}=x_,nme={distance:$_,unit:B_},rme={};if(zP==null||zP==="anchor"){var ame=$P?Bf.before(Ff,eme,nme):Bf.after(Ff,eme,nme);ame&&(rme.anchor=ame)}if(zP==null||zP==="focus"){var ome=$P?Bf.before(Ff,tme,nme):Bf.after(Ff,tme,nme);ome&&(rme.focus=ome)}md.setSelection(Ff,rme)}},select(Ff,kh){var{selection:x_}=Ff;if(kh=Bf.range(Ff,kh),x_)md.setSelection(Ff,kh);else{if(!qf.isRange(kh))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(kh)));Ff.apply({type:"set_selection",properties:x_,newProperties:kh})}},setPoint(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:$_}=Ff,{edge:B_="both"}=x_;if($_){B_==="start"&&(B_=qf.isBackward($_)?"focus":"anchor"),B_==="end"&&(B_=qf.isBackward($_)?"anchor":"focus");var{anchor:$P,focus:zP}=$_,eme=B_==="anchor"?$P:zP;md.setSelection(Ff,{[B_==="anchor"?"anchor":"focus"]:pd(pd({},eme),kh)})}},setSelection(Ff,kh){var{selection:x_}=Ff,$_={},B_={};if(x_){for(var $P in kh)($P==="anchor"&&kh.anchor!=null&&!Vf.equals(kh.anchor,x_.anchor)||$P==="focus"&&kh.focus!=null&&!Vf.equals(kh.focus,x_.focus)||$P!=="anchor"&&$P!=="focus"&&kh[$P]!==x_[$P])&&($_[$P]=x_[$P],B_[$P]=kh[$P]);Object.keys($_).length>0&&Ff.apply({type:"set_selection",properties:$_,newProperties:B_})}}},gd={delete(Ff){var kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bf.withoutNormalizing(Ff,()=>{var{reverse:x_=!1,unit:$_="character",distance:B_=1,voids:$P=!1}=kh,{at:zP=Ff.selection,hanging:eme=!1}=kh;if(zP){if(qf.isRange(zP)&&qf.isCollapsed(zP)&&(zP=zP.anchor),Vf.isPoint(zP)){var tme=Bf.void(Ff,{at:zP,mode:"highest"});if(!$P&&tme){var[,nme]=tme;zP=nme}else{var rme={unit:$_,distance:B_};zP={anchor:zP,focus:x_?Bf.before(Ff,zP,rme)||Bf.start(Ff,[]):Bf.after(Ff,zP,rme)||Bf.end(Ff,[])},eme=!0}}if(Mf.isPath(zP))md.removeNodes(Ff,{at:zP,voids:$P});else if(!qf.isCollapsed(zP)){if(!eme){var[,ame]=qf.edges(zP),ome=Bf.end(Ff,[]);Vf.equals(ame,ome)||(zP=Bf.unhangRange(Ff,zP,{voids:$P}))}var[ime,cme]=qf.edges(zP),ume=Bf.above(Ff,{match:Hme=>Bf.isBlock(Ff,Hme),at:ime,voids:$P}),sme=Bf.above(Ff,{match:Hme=>Bf.isBlock(Ff,Hme),at:cme,voids:$P}),fme=ume&&sme&&!Mf.equals(ume[1],sme[1]),lme=Mf.equals(ime.path,cme.path),hme=$P?null:Bf.void(Ff,{at:ime,mode:"highest"}),pme=$P?null:Bf.void(Ff,{at:cme,mode:"highest"});if(hme){var gme=Bf.before(Ff,ime);gme&&ume&&Mf.isAncestor(ume[1],gme.path)&&(ime=gme)}if(pme){var yme=Bf.after(Ff,cme);yme&&sme&&Mf.isAncestor(sme[1],yme.path)&&(cme=yme)}var mme,bme=[];for(var Sme of Bf.nodes(Ff,{at:zP,voids:$P})){var[_me,Cme]=Sme;mme&&Mf.compare(Cme,mme)===0||(!$P&&Bf.isVoid(Ff,_me)||!Mf.isCommon(Cme,ime.path)&&!Mf.isCommon(Cme,cme.path))&&(bme.push(Sme),mme=Cme)}var Eme=Array.from(bme,Hme=>{var[,Wme]=Hme;return Bf.pathRef(Ff,Wme)}),Tme=Bf.pointRef(Ff,ime),Rme=Bf.pointRef(Ff,cme);if(!lme&&!hme){var Pme=Tme.current,[$me]=Bf.leaf(Ff,Pme),{path:Dme}=Pme,{offset:Mme}=ime,Nme=$me.text.slice(Mme);Nme.length>0&&Ff.apply({type:"remove_text",path:Dme,offset:Mme,text:Nme})}for(var Ime of Eme){var wme=Ime.unref();md.removeNodes(Ff,{at:wme,voids:$P})}if(!pme){var Ome=Rme.current,[Ame]=Bf.leaf(Ff,Ome),{path:Fme}=Ome,Bme=lme?ime.offset:0,kme=Ame.text.slice(Bme,cme.offset);kme.length>0&&Ff.apply({type:"remove_text",path:Fme,offset:Bme,text:kme})}!lme&&fme&&Rme.current&&Tme.current&&md.mergeNodes(Ff,{at:Rme.current,hanging:!0,voids:$P});var Lme=x_?Tme.unref()||Rme.unref():Rme.unref()||Tme.unref();kh.at==null&&Lme&&md.select(Ff,Lme)}}})},insertFragment(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Bf.withoutNormalizing(Ff,()=>{var{hanging:$_=!1,voids:B_=!1}=x_,{at:$P=Ff.selection}=x_;if(kh.length&&$P){if(qf.isRange($P))if($_||($P=Bf.unhangRange(Ff,$P)),qf.isCollapsed($P))$P=$P.anchor;else{var[,zP]=qf.edges($P);if(!B_&&Bf.void(Ff,{at:zP}))return;var eme=Bf.pointRef(Ff,zP);md.delete(Ff,{at:$P}),$P=eme.unref()}else Mf.isPath($P)&&($P=Bf.start(Ff,$P));if(B_||!Bf.void(Ff,{at:$P})){var tme=Bf.above(Ff,{at:$P,match:Ome=>Bf.isInline(Ff,Ome),mode:"highest",voids:B_});if(tme){var[,nme]=tme;Bf.isEnd(Ff,$P,nme)?$P=Bf.after(Ff,nme):Bf.isStart(Ff,$P,nme)&&($P=Bf.before(Ff,nme))}var rme=Bf.above(Ff,{match:Ome=>Bf.isBlock(Ff,Ome),at:$P,voids:B_}),[,ame]=rme,ome=Bf.isStart(Ff,$P,ame),ime=Bf.isEnd(Ff,$P,ame),cme=ome&&ime,ume=!ome||ome&&ime,sme=!ime,[,fme]=Nf.first({children:kh},[]),[,lme]=Nf.last({children:kh},[]),hme=[],pme=Ome=>{var[Ame,Fme]=Ome;return Fme.length!==0&&(!!cme||!(ume&&Mf.isAncestor(Fme,fme)&&Sf.isElement(Ame)&&!Ff.isVoid(Ame)&&!Ff.isInline(Ame))&&!(sme&&Mf.isAncestor(Fme,lme)&&Sf.isElement(Ame)&&!Ff.isVoid(Ame)&&!Ff.isInline(Ame)))};for(var gme of Nf.nodes({children:kh},{pass:pme}))pme(gme)&&hme.push(gme);var yme=[],mme=[],bme=[],Sme=!0,_me=!1;for(var[Cme]of hme)Sf.isElement(Cme)&&!Ff.isInline(Cme)?(Sme=!1,_me=!0,mme.push(Cme)):Sme?yme.push(Cme):bme.push(Cme);var[Eme]=Bf.nodes(Ff,{at:$P,match:Ome=>ed.isText(Ome)||Bf.isInline(Ff,Ome),mode:"highest",voids:B_}),[,Tme]=Eme,Rme=Bf.isStart(Ff,$P,Tme),Pme=Bf.isEnd(Ff,$P,Tme),$me=Bf.pathRef(Ff,ime?Mf.next(ame):ame),Dme=Bf.pathRef(Ff,Pme?Mf.next(Tme):Tme),Mme=Bf.pathRef(Ff,ame);md.splitNodes(Ff,{at:$P,match:Ome=>_me?Bf.isBlock(Ff,Ome):ed.isText(Ome)||Bf.isInline(Ff,Ome),mode:_me?"lowest":"highest",voids:B_});var Nme=Bf.pathRef(Ff,!Rme||Rme&&Pme?Mf.next(Tme):Tme);if(md.insertNodes(Ff,yme,{at:Nme.current,match:Ome=>ed.isText(Ome)||Bf.isInline(Ff,Ome),mode:"highest",voids:B_}),cme&&mme.length&&md.delete(Ff,{at:Mme.unref(),voids:B_}),md.insertNodes(Ff,mme,{at:$me.current,match:Ome=>Bf.isBlock(Ff,Ome),mode:"lowest",voids:B_}),md.insertNodes(Ff,bme,{at:Dme.current,match:Ome=>ed.isText(Ome)||Bf.isInline(Ff,Ome),mode:"highest",voids:B_}),!x_.at){var Ime;Ime=bme.length>0?Mf.previous(Dme.current):mme.length>0?Mf.previous($me.current):Mf.previous(Nme.current);var wme=Bf.end(Ff,Ime);md.select(Ff,wme)}Nme.unref(),$me.unref(),Dme.unref()}}})},insertText(Ff,kh){var x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Bf.withoutNormalizing(Ff,()=>{var{voids:$_=!1}=x_,{at:B_=Ff.selection}=x_;if(B_){if(Mf.isPath(B_)&&(B_=Bf.range(Ff,B_)),qf.isRange(B_))if(qf.isCollapsed(B_))B_=B_.anchor;else{var $P=qf.end(B_);if(!$_&&Bf.void(Ff,{at:$P}))return;var zP=Bf.pointRef(Ff,$P);md.delete(Ff,{at:B_,voids:$_}),B_=zP.unref(),md.setSelection(Ff,{anchor:B_,focus:B_})}if($_||!Bf.void(Ff,{at:B_})){var{path:eme,offset:tme}=B_;kh.length>0&&Ff.apply({type:"insert_text",path:eme,offset:tme,text:kh})}}})}};function vd(Ff,kh){var x_=Object.keys(Ff);if(Object.getOwnPropertySymbols){var $_=Object.getOwnPropertySymbols(Ff);kh&&($_=$_.filter(function(B_){return Object.getOwnPropertyDescriptor(Ff,B_).enumerable})),x_.push.apply(x_,$_)}return x_}function yd(Ff){for(var kh=1;kh<arguments.length;kh++){var x_=arguments[kh]!=null?arguments[kh]:{};kh%2?vd(Object(x_),!0).forEach(function($_){Ic(Ff,$_,x_[$_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ff,Object.getOwnPropertyDescriptors(x_)):vd(Object(x_)).forEach(function($_){Object.defineProperty(Ff,$_,Object.getOwnPropertyDescriptor(x_,$_))})}return Ff}var md=yd(yd(yd(yd({},rd),sd),hd),gd),bd="[object Map]",wd="[object Set]",Ed=/^\[object .+?Constructor\]$/,Dd=/^(?:0|[1-9]\d*)$/,Sd="[\\ud800-\\udfff]",xd="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Cd="\\ud83c[\\udffb-\\udfff]",Ad="[^\\ud800-\\udfff]",Od="(?:\\ud83c[\\udde6-\\uddff]){2}",kd="[\\ud800-\\udbff][\\udc00-\\udfff]",Bd="(?:"+xd+"|"+Cd+")?",Fd="[\\ufe0e\\ufe0f]?"+Bd+("(?:\\u200d(?:"+[Ad,Od,kd].join("|")+")[\\ufe0e\\ufe0f]?"+Bd+")*"),Td="(?:"+[Ad+xd+"?",xd,Od,kd,Sd].join("|")+")",_d=RegExp(Cd+"(?="+Cd+")|"+Td+Fd,"g"),Pd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),jd=typeof e=="object"&&e&&e.Object===Object&&e,Nd=typeof self=="object"&&self&&self.Object===Object&&self,Id=jd||Nd||Function("return this")();function Ld(Ff,kh){return function(x_,$_){for(var B_=-1,$P=x_?x_.length:0,zP=Array($P);++B_<$P;)zP[B_]=$_(x_[B_],B_,x_);return zP}(kh,function(x_){return Ff[x_]})}function Rd(Ff){var kh=-1,x_=Array(Ff.size);return Ff.forEach(function($_,B_){x_[++kh]=[B_,$_]}),x_}function Md(Ff){var kh=-1,x_=Array(Ff.size);return Ff.forEach(function($_){x_[++kh]=$_}),x_}function zd(Ff){return function(kh){return Pd.test(kh)}(Ff)?function(kh){return kh.match(_d)||[]}(Ff):function(kh){return kh.split("")}(Ff)}var $d,Hd,Vd=Function.prototype,Ud=Object.prototype,Wd=Id["__core-js_shared__"],Gd=function(){var Ff=/[^.]+$/.exec(Wd&&Wd.keys&&Wd.keys.IE_PROTO||"");return Ff?"Symbol(src)_1."+Ff:""}(),qd=Vd.toString,Kd=Ud.hasOwnProperty,Yd=Ud.toString,Xd=RegExp("^"+qd.call(Kd).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zd=Id.Symbol,Jd=Zd?Zd.iterator:void 0,Qd=Ud.propertyIsEnumerable,ep=($d=Object.keys,Hd=Object,function(Ff){return $d(Hd(Ff))}),tp=hp(Id,"DataView"),np=hp(Id,"Map"),rp=hp(Id,"Promise"),op=hp(Id,"Set"),ip=hp(Id,"WeakMap"),ap=yp(tp),up=yp(np),sp=yp(rp),lp=yp(op),cp=yp(ip);function fp(Ff,kh){var x_=mp(Ff)||function(zP){return function(eme){return Dp(eme)&&bp(eme)}(zP)&&Kd.call(zP,"callee")&&(!Qd.call(zP,"callee")||Yd.call(zP)=="[object Arguments]")}(Ff)?function(zP,eme){for(var tme=-1,nme=Array(zP);++tme<zP;)nme[tme]=eme(tme);return nme}(Ff.length,String):[],$_=x_.length,B_=!!$_;for(var $P in Ff)!Kd.call(Ff,$P)||B_&&($P=="length"||vp($P,$_))||x_.push($P);return x_}function dp(Ff){if(!Ep(Ff)||function(x_){return!!Gd&&Gd in x_}(Ff))return!1;var kh=wp(Ff)||function(x_){var $_=!1;if(x_!=null&&typeof x_.toString!="function")try{$_=!!(x_+"")}catch{}return $_}(Ff)?Xd:Ed;return kh.test(yp(Ff))}function pp(Ff){if(x_=(kh=Ff)&&kh.constructor,$_=typeof x_=="function"&&x_.prototype||Ud,kh!==$_)return ep(Ff);var kh,x_,$_,B_=[];for(var $P in Object(Ff))Kd.call(Ff,$P)&&$P!="constructor"&&B_.push($P);return B_}function hp(Ff,kh){var x_=function($_,B_){return $_==null?void 0:$_[B_]}(Ff,kh);return dp(x_)?x_:void 0}var gp=function(Ff){return Yd.call(Ff)};function vp(Ff,kh){return!!(kh=kh??9007199254740991)&&(typeof Ff=="number"||Dd.test(Ff))&&Ff>-1&&Ff%1==0&&Ff<kh}function yp(Ff){if(Ff!=null){try{return qd.call(Ff)}catch{}try{return Ff+""}catch{}}return""}(tp&&gp(new tp(new ArrayBuffer(1)))!="[object DataView]"||np&&gp(new np)!=bd||rp&&gp(rp.resolve())!="[object Promise]"||op&&gp(new op)!=wd||ip&&gp(new ip)!="[object WeakMap]")&&(gp=function(Ff){var kh=Yd.call(Ff),x_=kh=="[object Object]"?Ff.constructor:void 0,$_=x_?yp(x_):void 0;if($_)switch($_){case ap:return"[object DataView]";case up:return bd;case sp:return"[object Promise]";case lp:return wd;case cp:return"[object WeakMap]"}return kh});var mp=Array.isArray;function bp(Ff){return Ff!=null&&function(kh){return typeof kh=="number"&&kh>-1&&kh%1==0&&kh<=9007199254740991}(Ff.length)&&!wp(Ff)}function wp(Ff){var kh=Ep(Ff)?Yd.call(Ff):"";return kh=="[object Function]"||kh=="[object GeneratorFunction]"}function Ep(Ff){var kh=typeof Ff;return!!Ff&&(kh=="object"||kh=="function")}function Dp(Ff){return!!Ff&&typeof Ff=="object"}function Sp(Ff){return Ff?Ld(Ff,function(kh){return bp(kh)?fp(kh):pp(kh)}(Ff)):[]}var xp=function(Ff){if(!Ff)return[];if(bp(Ff))return function(x_){return typeof x_=="string"||!mp(x_)&&Dp(x_)&&Yd.call(x_)=="[object String]"}(Ff)?zd(Ff):function(x_,$_){var B_=-1,$P=x_.length;for($_||($_=Array($P));++B_<$P;)$_[B_]=x_[B_];return $_}(Ff);if(Jd&&Ff[Jd])return function(x_){for(var $_,B_=[];!($_=x_.next()).done;)B_.push($_.value);return B_}(Ff[Jd]());var kh=gp(Ff);return(kh==bd?Rd:kh==wd?Md:Sp)(Ff)};function Cp(Ff){return Ff!==null&&typeof Ff=="object"&&"constructor"in Ff&&Ff.constructor===Object}function Ap(Ff,kh){Ff===void 0&&(Ff={}),kh===void 0&&(kh={}),Object.keys(kh).forEach(function(x_){Ff[x_]===void 0?Ff[x_]=kh[x_]:Cp(kh[x_])&&Cp(Ff[x_])&&Object.keys(kh[x_]).length>0&&Ap(Ff[x_],kh[x_])})}var Op={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function kp(){var Ff=typeof document<"u"?document:{};return Ap(Ff,Op),Ff}var Bp={document:Op,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(Ff){return typeof setTimeout>"u"?(Ff(),null):setTimeout(Ff,0)},cancelAnimationFrame:function(Ff){typeof setTimeout<"u"&&clearTimeout(Ff)}};function Fp(){var Ff=typeof window<"u"?window:{};return Ap(Ff,Bp),Ff}function Tp(Ff){return Tp=Object.setPrototypeOf?Object.getPrototypeOf:function(kh){return kh.__proto__||Object.getPrototypeOf(kh)},Tp(Ff)}function _p(Ff,kh){return _p=Object.setPrototypeOf||function(x_,$_){return x_.__proto__=$_,x_},_p(Ff,kh)}function Pp(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function jp(Ff,kh,x_){return jp=Pp()?Reflect.construct:function($_,B_,$P){var zP=[null];zP.push.apply(zP,B_);var eme=new(Function.bind.apply($_,zP));return $P&&_p(eme,$P.prototype),eme},jp.apply(null,arguments)}function Np(Ff){var kh=typeof Map=="function"?new Map:void 0;return Np=function(x_){if(x_===null||!function(B_){return Function.toString.call(B_).indexOf("[native code]")!==-1}(x_))return x_;if(typeof x_!="function")throw new TypeError("Super expression must either be null or a function");if(kh!==void 0){if(kh.has(x_))return kh.get(x_);kh.set(x_,$_)}function $_(){return jp(x_,arguments,Tp(this).constructor)}return $_.prototype=Object.create(x_.prototype,{constructor:{value:$_,enumerable:!1,writable:!0,configurable:!0}}),_p($_,x_)},Np(Ff)}var Ip=function(Ff){var kh,x_;function $_(B_){var $P,zP,eme;return $P=Ff.call.apply(Ff,[this].concat(B_))||this,zP=function(tme){if(tme===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return tme}($P),eme=zP.__proto__,Object.defineProperty(zP,"__proto__",{get:function(){return eme},set:function(tme){eme.__proto__=tme}}),$P}return x_=Ff,(kh=$_).prototype=Object.create(x_.prototype),kh.prototype.constructor=kh,kh.__proto__=x_,$_}(Np(Array));function Lp(Ff){Ff===void 0&&(Ff=[]);var kh=[];return Ff.forEach(function(x_){Array.isArray(x_)?kh.push.apply(kh,Lp(x_)):kh.push(x_)}),kh}function Rp(Ff,kh){return Array.prototype.filter.call(Ff,kh)}function Mp(Ff,kh){var x_=Fp(),$_=kp(),B_=[];if(!kh&&Ff instanceof Ip)return Ff;if(!Ff)return new Ip(B_);if(typeof Ff=="string"){var $P=Ff.trim();if($P.indexOf("<")>=0&&$P.indexOf(">")>=0){var zP="div";$P.indexOf("<li")===0&&(zP="ul"),$P.indexOf("<tr")===0&&(zP="tbody"),$P.indexOf("<td")!==0&&$P.indexOf("<th")!==0||(zP="tr"),$P.indexOf("<tbody")===0&&(zP="table"),$P.indexOf("<option")===0&&(zP="select");var eme=$_.createElement(zP);eme.innerHTML=$P;for(var tme=0;tme<eme.childNodes.length;tme+=1)B_.push(eme.childNodes[tme])}else B_=function(nme,rme){if(typeof nme!="string")return[nme];for(var ame=[],ome=rme.querySelectorAll(nme),ime=0;ime<ome.length;ime+=1)ame.push(ome[ime]);return ame}(Ff.trim(),kh||$_)}else if(Ff.nodeType||Ff===x_||Ff===$_)B_.push(Ff);else if(Array.isArray(Ff)){if(Ff instanceof Ip)return Ff;B_=Ff}return new Ip(function(nme){for(var rme=[],ame=0;ame<nme.length;ame+=1)rme.indexOf(nme[ame])===-1&&rme.push(nme[ame]);return rme}(B_))}function zp(){for(var Ff=arguments.length,kh=new Array(Ff),x_=0;x_<Ff;x_++)kh[x_]=arguments[x_];var $_=Lp(kh.map(function(B_){return B_.split(" ")}));return this.forEach(function(B_){var $P;($P=B_.classList).add.apply($P,$_)}),this}function $p(){for(var Ff=arguments.length,kh=new Array(Ff),x_=0;x_<Ff;x_++)kh[x_]=arguments[x_];var $_=Lp(kh.map(function(B_){return B_.split(" ")}));return this.forEach(function(B_){var $P;($P=B_.classList).remove.apply($P,$_)}),this}function Hp(){for(var Ff=arguments.length,kh=new Array(Ff),x_=0;x_<Ff;x_++)kh[x_]=arguments[x_];var $_=Lp(kh.map(function(B_){return B_.split(" ")}));return Rp(this,function(B_){return $_.filter(function($P){return B_.classList.contains($P)}).length>0}).length>0}function Vp(Ff,kh){if(arguments.length===1&&typeof Ff=="string")return this[0]?this[0].getAttribute(Ff):void 0;for(var x_=0;x_<this.length;x_+=1)if(arguments.length===2)this[x_].setAttribute(Ff,kh);else for(var $_ in Ff)this[x_][$_]=Ff[$_],this[x_].setAttribute($_,Ff[$_]);return this}function Up(Ff){for(var kh=0;kh<this.length;kh+=1)this[kh].removeAttribute(Ff);return this}function Wp(){var Ff=this[0];if(Ff){var kh,x_={};if(Ff.dataset)for(var $_ in Ff.dataset)x_[$_]=Ff.dataset[$_];else for(var B_=0;B_<Ff.attributes.length;B_+=1){var $P=Ff.attributes[B_];$P.name.indexOf("data-")>=0&&(x_[kh=$P.name.split("data-")[1],kh.toLowerCase().replace(/-(.)/g,function(eme,tme){return tme.toUpperCase()})]=$P.value)}for(var zP in x_)x_[zP]==="false"?x_[zP]=!1:x_[zP]==="true"?x_[zP]=!0:parseFloat(x_[zP])===1*x_[zP]&&(x_[zP]*=1);return x_}}function Gp(Ff){if(Ff===void 0){var kh=this[0];if(!kh)return;if(kh.multiple&&kh.nodeName.toLowerCase()==="select"){for(var x_=[],$_=0;$_<kh.selectedOptions.length;$_+=1)x_.push(kh.selectedOptions[$_].value);return x_}return kh.value}for(var B_=0;B_<this.length;B_+=1){var $P=this[B_];if(Array.isArray(Ff)&&$P.multiple&&$P.nodeName.toLowerCase()==="select")for(var zP=0;zP<$P.options.length;zP+=1)$P.options[zP].selected=Ff.indexOf($P.options[zP].value)>=0;else $P.value=Ff}return this}function qp(){for(var Ff=arguments.length,kh=new Array(Ff),x_=0;x_<Ff;x_++)kh[x_]=arguments[x_];var $_=kh[0],B_=kh[1],$P=kh[2],zP=kh[3];function eme(ume){var sme=ume.target;if(sme){var fme=ume.target.dom7EventData||[];if(fme.indexOf(ume)<0&&fme.unshift(ume),Mp(sme).is(B_))$P.apply(sme,fme);else for(var lme=Mp(sme).parents(),hme=0;hme<lme.length;hme+=1)Mp(lme[hme]).is(B_)&&$P.apply(lme[hme],fme)}}function tme(ume){var sme=ume&&ume.target&&ume.target.dom7EventData||[];sme.indexOf(ume)<0&&sme.unshift(ume),$P.apply(this,sme)}typeof kh[1]=="function"&&($_=kh[0],$P=kh[1],zP=kh[2],B_=void 0),zP||(zP=!1);for(var nme,rme=$_.split(" "),ame=0;ame<this.length;ame+=1){var ome=this[ame];if(B_)for(nme=0;nme<rme.length;nme+=1){var ime=rme[nme];ome.dom7LiveListeners||(ome.dom7LiveListeners={}),ome.dom7LiveListeners[ime]||(ome.dom7LiveListeners[ime]=[]),ome.dom7LiveListeners[ime].push({listener:$P,proxyListener:eme}),ome.addEventListener(ime,eme,zP)}else for(nme=0;nme<rme.length;nme+=1){var cme=rme[nme];ome.dom7Listeners||(ome.dom7Listeners={}),ome.dom7Listeners[cme]||(ome.dom7Listeners[cme]=[]),ome.dom7Listeners[cme].push({listener:$P,proxyListener:tme}),ome.addEventListener(cme,tme,zP)}}return this}function Kp(){for(var Ff=arguments.length,kh=new Array(Ff),x_=0;x_<Ff;x_++)kh[x_]=arguments[x_];var $_=kh[0],B_=kh[1],$P=kh[2],zP=kh[3];typeof kh[1]=="function"&&($_=kh[0],$P=kh[1],zP=kh[2],B_=void 0),zP||(zP=!1);for(var eme=$_.split(" "),tme=0;tme<eme.length;tme+=1)for(var nme=eme[tme],rme=0;rme<this.length;rme+=1){var ame=this[rme],ome=void 0;if(!B_&&ame.dom7Listeners?ome=ame.dom7Listeners[nme]:B_&&ame.dom7LiveListeners&&(ome=ame.dom7LiveListeners[nme]),ome&&ome.length)for(var ime=ome.length-1;ime>=0;ime-=1){var cme=ome[ime];$P&&cme.listener===$P||$P&&cme.listener&&cme.listener.dom7proxy&&cme.listener.dom7proxy===$P?(ame.removeEventListener(nme,cme.proxyListener,zP),ome.splice(ime,1)):$P||(ame.removeEventListener(nme,cme.proxyListener,zP),ome.splice(ime,1))}}return this}function Yp(){var Ff=Fp();return this[0]===Ff?Ff.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Xp(){var Ff=Fp();return this[0]===Ff?Ff.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Zp(){if(this.length>0){var Ff=Fp(),kh=kp(),x_=this[0],$_=x_.getBoundingClientRect(),B_=kh.body,$P=x_.clientTop||B_.clientTop||0,zP=x_.clientLeft||B_.clientLeft||0,eme=x_===Ff?Ff.scrollY:x_.scrollTop,tme=x_===Ff?Ff.scrollX:x_.scrollLeft;return{top:$_.top+eme-$P,left:$_.left+tme-zP}}return null}function Jp(){for(var Ff=0;Ff<this.length;Ff+=1)this[Ff].style.display="none";return this}function Qp(){for(var Ff=Fp(),kh=0;kh<this.length;kh+=1){var x_=this[kh];x_.style.display==="none"&&(x_.style.display=""),Ff.getComputedStyle(x_,null).getPropertyValue("display")==="none"&&(x_.style.display="block")}return this}function eh(Ff,kh){var x_,$_=Fp();if(arguments.length===1){if(typeof Ff!="string"){for(x_=0;x_<this.length;x_+=1)for(var B_ in Ff)this[x_].style[B_]=Ff[B_];return this}if(this[0])return $_.getComputedStyle(this[0],null).getPropertyValue(Ff)}if(arguments.length===2&&typeof Ff=="string"){for(x_=0;x_<this.length;x_+=1)this[x_].style[Ff]=kh;return this}return this}function th(Ff){return Ff?(this.forEach(function(kh,x_){Ff.apply(kh,[kh,x_])}),this):this}function nh(Ff){return Mp(Rp(this,Ff))}function rh(Ff){if(Ff===void 0)return this[0]?this[0].innerHTML:null;for(var kh=0;kh<this.length;kh+=1)this[kh].innerHTML=Ff;return this}function oh(Ff){if(Ff===void 0)return this[0]?this[0].textContent.trim():null;for(var kh=0;kh<this.length;kh+=1)this[kh].textContent=Ff;return this}function ih(Ff){var kh,x_,$_=Fp(),B_=kp(),$P=this[0];if(!$P||Ff===void 0)return!1;if(typeof Ff=="string"){if($P.matches)return $P.matches(Ff);if($P.webkitMatchesSelector)return $P.webkitMatchesSelector(Ff);if($P.msMatchesSelector)return $P.msMatchesSelector(Ff);for(kh=Mp(Ff),x_=0;x_<kh.length;x_+=1)if(kh[x_]===$P)return!0;return!1}if(Ff===B_)return $P===B_;if(Ff===$_)return $P===$_;if(Ff.nodeType||Ff instanceof Ip){for(kh=Ff.nodeType?[Ff]:Ff,x_=0;x_<kh.length;x_+=1)if(kh[x_]===$P)return!0;return!1}return!1}function ah(){for(var Ff,kh=kp(),x_=0;x_<arguments.length;x_+=1){Ff=x_<0||arguments.length<=x_?void 0:arguments[x_];for(var $_=0;$_<this.length;$_+=1)if(typeof Ff=="string"){var B_=kh.createElement("div");for(B_.innerHTML=Ff;B_.firstChild;)this[$_].appendChild(B_.firstChild)}else if(Ff instanceof Ip)for(var $P=0;$P<Ff.length;$P+=1)this[$_].appendChild(Ff[$P]);else this[$_].appendChild(Ff)}return this}function uh(Ff){var kh,x_,$_=kp();for(kh=0;kh<this.length;kh+=1)if(typeof Ff=="string"){var B_=$_.createElement("div");for(B_.innerHTML=Ff,x_=B_.childNodes.length-1;x_>=0;x_-=1)this[kh].insertBefore(B_.childNodes[x_],this[kh].childNodes[0])}else if(Ff instanceof Ip)for(x_=0;x_<Ff.length;x_+=1)this[kh].insertBefore(Ff[x_],this[kh].childNodes[0]);else this[kh].insertBefore(Ff,this[kh].childNodes[0]);return this}function sh(Ff){for(var kh=[],x_=0;x_<this.length;x_+=1)this[x_].parentNode!==null&&(Ff?Mp(this[x_].parentNode).is(Ff)&&kh.push(this[x_].parentNode):kh.push(this[x_].parentNode));return Mp(kh)}function lh(Ff){for(var kh=[],x_=0;x_<this.length;x_+=1)for(var $_=this[x_].parentNode;$_;)Ff?Mp($_).is(Ff)&&kh.push($_):kh.push($_),$_=$_.parentNode;return Mp(kh)}function ch(Ff){for(var kh=[],x_=0;x_<this.length;x_+=1)for(var $_=this[x_].querySelectorAll(Ff),B_=0;B_<$_.length;B_+=1)kh.push($_[B_]);return Mp(kh)}function fh(Ff){for(var kh=[],x_=0;x_<this.length;x_+=1)for(var $_=this[x_].children,B_=0;B_<$_.length;B_+=1)Ff&&!Mp($_[B_]).is(Ff)||kh.push($_[B_]);return Mp(kh)}function dh(){for(var Ff=0;Ff<this.length;Ff+=1)this[Ff].parentNode&&this[Ff].parentNode.removeChild(this[Ff]);return this}function ph(){for(var Ff=0;Ff<this.length;Ff+=1){var kh=this[Ff];if(kh.nodeType===1){for(var x_=0;x_<kh.childNodes.length;x_+=1)kh.childNodes[x_].parentNode&&kh.childNodes[x_].parentNode.removeChild(kh.childNodes[x_]);kh.textContent=""}}return this}Mp.fn=Ip.prototype;var hh="resize scroll".split(" ");function gh(Ff){return function(){for(var kh=arguments.length,x_=new Array(kh),$_=0;$_<kh;$_++)x_[$_]=arguments[$_];if(x_[0]===void 0){for(var B_=0;B_<this.length;B_+=1)hh.indexOf(Ff)<0&&(Ff in this[B_]?this[B_][Ff]():Mp(this[B_]).trigger(Ff));return this}return this.on.apply(this,[Ff].concat(x_))}}var vh=gh("click"),yh=gh("focus"),mh="[object GeneratorFunction]",bh=/^(?:0|[1-9]\d*)$/;function wh(Ff,kh){for(var x_=-1,$_=Ff?Ff.length:0;++x_<$_&&kh(Ff[x_],x_,Ff)!==!1;);return Ff}var Eh=Object.prototype,Dh=Eh.hasOwnProperty,Sh=Eh.toString,xh=Eh.propertyIsEnumerable,Ch=function(Ff,kh){return function(x_){return Ff(kh(x_))}}(Object.keys,Object);function Ah(Ff,kh){var x_=Ph(Ff)||function(zP){return function(eme){return function(tme){return!!tme&&typeof tme=="object"}(eme)&&jh(eme)}(zP)&&Dh.call(zP,"callee")&&(!xh.call(zP,"callee")||Sh.call(zP)=="[object Arguments]")}(Ff)?function(zP,eme){for(var tme=-1,nme=Array(zP);++tme<zP;)nme[tme]=eme(tme);return nme}(Ff.length,String):[],$_=x_.length,B_=!!$_;for(var $P in Ff)!Dh.call(Ff,$P)||B_&&($P=="length"||_h($P,$_))||x_.push($P);return x_}var Oh,Bh=(Oh=function(Ff,kh){return Ff&&Fh(Ff,kh,Nh)},function(Ff,kh){if(Ff==null)return Ff;if(!jh(Ff))return Oh(Ff,kh);for(var x_=Ff.length,$_=-1,B_=Object(Ff);++$_<x_&&kh(B_[$_],$_,B_)!==!1;);return Ff}),Fh=function(Ff){return function(kh,x_,$_){for(var B_=-1,$P=Object(kh),zP=$_(kh),eme=zP.length;eme--;){var tme=zP[++B_];if(x_($P[tme],tme,$P)===!1)break}return kh}}();function Th(Ff){if(x_=(kh=Ff)&&kh.constructor,$_=typeof x_=="function"&&x_.prototype||Eh,kh!==$_)return Ch(Ff);var kh,x_,$_,B_=[];for(var $P in Object(Ff))Dh.call(Ff,$P)&&$P!="constructor"&&B_.push($P);return B_}function _h(Ff,kh){return!!(kh=kh??9007199254740991)&&(typeof Ff=="number"||bh.test(Ff))&&Ff>-1&&Ff%1==0&&Ff<kh}var Ph=Array.isArray;function jh(Ff){return Ff!=null&&function(kh){return typeof kh=="number"&&kh>-1&&kh%1==0&&kh<=9007199254740991}(Ff.length)&&!function(kh){var x_=function($_){var B_=typeof $_;return!!$_&&(B_=="object"||B_=="function")}(kh)?Sh.call(kh):"";return x_=="[object Function]"||x_==mh}(Ff)}function Nh(Ff){return jh(Ff)?Ah(Ff):Th(Ff)}function Ih(Ff){return Ff}var Lh=function(Ff,kh){return(Ph(Ff)?wh:Bh)(Ff,typeof kh=="function"?kh:Ih)};let Rh=(Ff=21)=>{let kh="",x_=crypto.getRandomValues(new Uint8Array(Ff));for(;Ff--;){let $_=63&x_[Ff];kh+=$_<36?$_.toString(36):$_<62?($_-26).toString(36).toUpperCase():$_<63?"_":"-"}return kh};var Mh=/^\s+|\s+$/g,zh=/^[-+]0x[0-9a-f]+$/i,$h=/^0b[01]+$/i,Hh=/^0o[0-7]+$/i,Vh=parseInt,Uh=typeof e=="object"&&e&&e.Object===Object&&e,Wh=typeof self=="object"&&self&&self.Object===Object&&self,Gh=Uh||Wh||Function("return this")(),qh=Object.prototype.toString,Kh=Math.max,Yh=Math.min,Xh=function(){return Gh.Date.now()};function Zh(Ff,kh,x_){var $_,B_,$P,zP,eme,tme,nme=0,rme=!1,ame=!1,ome=!0;if(typeof Ff!="function")throw new TypeError("Expected a function");function ime(hme){var pme=$_,gme=B_;return $_=B_=void 0,nme=hme,zP=Ff.apply(gme,pme)}function cme(hme){return nme=hme,eme=setTimeout(sme,kh),rme?ime(hme):zP}function ume(hme){var pme=hme-tme;return tme===void 0||pme>=kh||pme<0||ame&&hme-nme>=$P}function sme(){var hme=Xh();if(ume(hme))return fme(hme);eme=setTimeout(sme,function(pme){var gme=kh-(pme-tme);return ame?Yh(gme,$P-(pme-nme)):gme}(hme))}function fme(hme){return eme=void 0,ome&&$_?ime(hme):($_=B_=void 0,zP)}function lme(){var hme=Xh(),pme=ume(hme);if($_=arguments,B_=this,tme=hme,pme){if(eme===void 0)return cme(tme);if(ame)return eme=setTimeout(sme,kh),ime(tme)}return eme===void 0&&(eme=setTimeout(sme,kh)),zP}return kh=Qh(kh)||0,Jh(x_)&&(rme=!!x_.leading,$P=(ame="maxWait"in x_)?Kh(Qh(x_.maxWait)||0,kh):$P,ome="trailing"in x_?!!x_.trailing:ome),lme.cancel=function(){eme!==void 0&&clearTimeout(eme),nme=0,$_=tme=B_=eme=void 0},lme.flush=function(){return eme===void 0?zP:fme(Xh())},lme}function Jh(Ff){var kh=typeof Ff;return!!Ff&&(kh=="object"||kh=="function")}function Qh(Ff){if(typeof Ff=="number")return Ff;if(function($_){return typeof $_=="symbol"||function(B_){return!!B_&&typeof B_=="object"}($_)&&qh.call($_)=="[object Symbol]"}(Ff))return NaN;if(Jh(Ff)){var kh=typeof Ff.valueOf=="function"?Ff.valueOf():Ff;Ff=Jh(kh)?kh+"":kh}if(typeof Ff!="string")return Ff===0?Ff:+Ff;Ff=Ff.replace(Mh,"");var x_=$h.test(Ff);return x_||Hh.test(Ff)?Vh(Ff.slice(2),x_?2:8):zh.test(Ff)?NaN:+Ff}var eg=function(Ff,kh,x_){var $_=!0,B_=!0;if(typeof Ff!="function")throw new TypeError("Expected a function");return Jh(x_)&&($_="leading"in x_?!!x_.leading:$_,B_="trailing"in x_?!!x_.trailing:B_),Zh(Ff,kh,{leading:$_,maxWait:kh,trailing:B_})};const tg={createElement:function(Ff,kh){return document.createElement(Ff,kh)},createElementNS:function(Ff,kh,x_){return document.createElementNS(Ff,kh,x_)},createTextNode:function(Ff){return document.createTextNode(Ff)},createComment:function(Ff){return document.createComment(Ff)},insertBefore:function(Ff,kh,x_){Ff.insertBefore(kh,x_)},removeChild:function(Ff,kh){Ff.removeChild(kh)},appendChild:function(Ff,kh){Ff.appendChild(kh)},parentNode:function(Ff){return Ff.parentNode},nextSibling:function(Ff){return Ff.nextSibling},tagName:function(Ff){return Ff.tagName},setTextContent:function(Ff,kh){Ff.textContent=kh},getTextContent:function(Ff){return Ff.textContent},isElement:function(Ff){return Ff.nodeType===1},isText:function(Ff){return Ff.nodeType===3},isComment:function(Ff){return Ff.nodeType===8}};function ng(Ff,kh,x_,$_,B_){return{sel:Ff,data:kh,children:x_,text:$_,elm:B_,key:kh===void 0?void 0:kh.key}}const rg=Array.isArray;function og(Ff){return typeof Ff=="string"||typeof Ff=="number"||Ff instanceof String||Ff instanceof Number}function ig(Ff){return Ff===void 0}function ag(Ff){return Ff!==void 0}const ug=ng("",{},[],void 0,void 0);function sg(Ff,kh){var x_,$_;const B_=Ff.key===kh.key,$P=((x_=Ff.data)===null||x_===void 0?void 0:x_.is)===(($_=kh.data)===null||$_===void 0?void 0:$_.is);return Ff.sel===kh.sel&&B_&&$P}function lg(Ff,kh,x_){var $_;const B_={};for(let $P=kh;$P<=x_;++$P){const zP=($_=Ff[$P])===null||$_===void 0?void 0:$_.key;zP!==void 0&&(B_[zP]=$P)}return B_}const cg=["create","update","remove","destroy","pre","post"];function fg(Ff,kh){const x_={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},$_=tg;for(const ame of cg)for(const ome of Ff){const ime=ome[ame];ime!==void 0&&x_[ame].push(ime)}function B_(ame){const ome=ame.id?"#"+ame.id:"",ime=ame.getAttribute("class"),cme=ime?"."+ime.split(" ").join("."):"";return ng($_.tagName(ame).toLowerCase()+ome+cme,{},[],void 0,ame)}function $P(ame,ome){return function(){if(--ome==0){const ime=$_.parentNode(ame);$_.removeChild(ime,ame)}}}function zP(ame,ome){var ime,cme;let ume,sme=ame.data;if(sme!==void 0){const hme=(ime=sme.hook)===null||ime===void 0?void 0:ime.init;ag(hme)&&(hme(ame),sme=ame.data)}const fme=ame.children,lme=ame.sel;if(lme==="!")ig(ame.text)&&(ame.text=""),ame.elm=$_.createComment(ame.text);else if(lme!==void 0){const hme=lme.indexOf("#"),pme=lme.indexOf(".",hme),gme=hme>0?hme:lme.length,yme=pme>0?pme:lme.length,mme=hme!==-1||pme!==-1?lme.slice(0,Math.min(gme,yme)):lme,bme=ame.elm=ag(sme)&&ag(ume=sme.ns)?$_.createElementNS(ume,mme,sme):$_.createElement(mme,sme);for(gme<yme&&bme.setAttribute("id",lme.slice(gme+1,yme)),pme>0&&bme.setAttribute("class",lme.slice(yme+1).replace(/\./g," ")),ume=0;ume<x_.create.length;++ume)x_.create[ume](ug,ame);if(rg(fme))for(ume=0;ume<fme.length;++ume){const _me=fme[ume];_me!=null&&$_.appendChild(bme,zP(_me,ome))}else og(ame.text)&&$_.appendChild(bme,$_.createTextNode(ame.text));const Sme=ame.data.hook;ag(Sme)&&((cme=Sme.create)===null||cme===void 0||cme.call(Sme,ug,ame),Sme.insert&&ome.push(ame))}else ame.elm=$_.createTextNode(ame.text);return ame.elm}function eme(ame,ome,ime,cme,ume,sme){for(;cme<=ume;++cme){const fme=ime[cme];fme!=null&&$_.insertBefore(ame,zP(fme,sme),ome)}}function tme(ame){var ome,ime;const cme=ame.data;if(cme!==void 0){(ime=(ome=cme==null?void 0:cme.hook)===null||ome===void 0?void 0:ome.destroy)===null||ime===void 0||ime.call(ome,ame);for(let ume=0;ume<x_.destroy.length;++ume)x_.destroy[ume](ame);if(ame.children!==void 0)for(let ume=0;ume<ame.children.length;++ume){const sme=ame.children[ume];sme!=null&&typeof sme!="string"&&tme(sme)}}}function nme(ame,ome,ime,cme){for(var ume,sme;ime<=cme;++ime){let fme,lme;const hme=ome[ime];if(hme!=null)if(ag(hme.sel)){tme(hme),fme=x_.remove.length+1,lme=$P(hme.elm,fme);for(let gme=0;gme<x_.remove.length;++gme)x_.remove[gme](hme,lme);const pme=(sme=(ume=hme==null?void 0:hme.data)===null||ume===void 0?void 0:ume.hook)===null||sme===void 0?void 0:sme.remove;ag(pme)?pme(hme,lme):lme()}else $_.removeChild(ame,hme.elm)}}function rme(ame,ome,ime){var cme,ume,sme,fme,lme;const hme=(cme=ome.data)===null||cme===void 0?void 0:cme.hook;(ume=hme==null?void 0:hme.prepatch)===null||ume===void 0||ume.call(hme,ame,ome);const pme=ome.elm=ame.elm,gme=ame.children,yme=ome.children;if(ame!==ome){if(ome.data!==void 0){for(let mme=0;mme<x_.update.length;++mme)x_.update[mme](ame,ome);(fme=(sme=ome.data.hook)===null||sme===void 0?void 0:sme.update)===null||fme===void 0||fme.call(sme,ame,ome)}ig(ome.text)?ag(gme)&&ag(yme)?gme!==yme&&function(mme,bme,Sme,_me){let Cme,Eme,Tme,Rme,Pme=0,$me=0,Dme=bme.length-1,Mme=bme[0],Nme=bme[Dme],Ime=Sme.length-1,wme=Sme[0],Ome=Sme[Ime];for(;Pme<=Dme&&$me<=Ime;)Mme==null?Mme=bme[++Pme]:Nme==null?Nme=bme[--Dme]:wme==null?wme=Sme[++$me]:Ome==null?Ome=Sme[--Ime]:sg(Mme,wme)?(rme(Mme,wme,_me),Mme=bme[++Pme],wme=Sme[++$me]):sg(Nme,Ome)?(rme(Nme,Ome,_me),Nme=bme[--Dme],Ome=Sme[--Ime]):sg(Mme,Ome)?(rme(Mme,Ome,_me),$_.insertBefore(mme,Mme.elm,$_.nextSibling(Nme.elm)),Mme=bme[++Pme],Ome=Sme[--Ime]):sg(Nme,wme)?(rme(Nme,wme,_me),$_.insertBefore(mme,Nme.elm,Mme.elm),Nme=bme[--Dme],wme=Sme[++$me]):(Cme===void 0&&(Cme=lg(bme,Pme,Dme)),Eme=Cme[wme.key],ig(Eme)?$_.insertBefore(mme,zP(wme,_me),Mme.elm):(Tme=bme[Eme],Tme.sel!==wme.sel?$_.insertBefore(mme,zP(wme,_me),Mme.elm):(rme(Tme,wme,_me),bme[Eme]=void 0,$_.insertBefore(mme,Tme.elm,Mme.elm))),wme=Sme[++$me]);(Pme<=Dme||$me<=Ime)&&(Pme>Dme?(Rme=Sme[Ime+1]==null?null:Sme[Ime+1].elm,eme(mme,Rme,Sme,$me,Ime,_me)):nme(mme,bme,Pme,Dme))}(pme,gme,yme,ime):ag(yme)?(ag(ame.text)&&$_.setTextContent(pme,""),eme(pme,null,yme,0,yme.length-1,ime)):ag(gme)?nme(pme,gme,0,gme.length-1):ag(ame.text)&&$_.setTextContent(pme,""):ame.text!==ome.text&&(ag(gme)&&nme(pme,gme,0,gme.length-1),$_.setTextContent(pme,ome.text)),(lme=hme==null?void 0:hme.postpatch)===null||lme===void 0||lme.call(hme,ame,ome)}}return function(ame,ome){let ime,cme,ume;const sme=[];for(ime=0;ime<x_.pre.length;++ime)x_.pre[ime]();for(function(fme){return fme.sel!==void 0}(ame)||(ame=B_(ame)),sg(ame,ome)?rme(ame,ome,sme):(cme=ame.elm,ume=$_.parentNode(cme),zP(ome,sme),ume!==null&&($_.insertBefore(ume,ome.elm,$_.nextSibling(cme)),nme(ume,[ame],0,0))),ime=0;ime<sme.length;++ime)sme[ime].data.hook.insert(sme[ime]);for(ime=0;ime<x_.post.length;++ime)x_.post[ime]();return ome}}function dg(Ff,kh,x_){if(Ff.ns="http://www.w3.org/2000/svg",x_!=="foreignObject"&&kh!==void 0)for(let $_=0;$_<kh.length;++$_){const B_=kh[$_].data;B_!==void 0&&dg(B_,kh[$_].children,kh[$_].sel)}}function pg(Ff,kh,x_){let $_,B_,$P,zP={};if(x_!==void 0?(kh!==null&&(zP=kh),rg(x_)?$_=x_:og(x_)?B_=x_.toString():x_&&x_.sel&&($_=[x_])):kh!=null&&(rg(kh)?$_=kh:og(kh)?B_=kh.toString():kh&&kh.sel?$_=[kh]:zP=kh),$_!==void 0)for($P=0;$P<$_.length;++$P)og($_[$P])&&($_[$P]=ng(void 0,void 0,void 0,$_[$P],void 0));return Ff[0]!=="s"||Ff[1]!=="v"||Ff[2]!=="g"||Ff.length!==3&&Ff[3]!=="."&&Ff[3]!=="#"||dg(zP,$_,Ff),ng(Ff,zP,$_,B_,void 0)}function hg(Ff,kh){let x_;const $_=kh.elm;let B_=Ff.data.attrs,$P=kh.data.attrs;if((B_||$P)&&B_!==$P){for(x_ in B_=B_||{},$P=$P||{},$P){const zP=$P[x_];B_[x_]!==zP&&(zP===!0?$_.setAttribute(x_,""):zP===!1?$_.removeAttribute(x_):x_.charCodeAt(0)!==120?$_.setAttribute(x_,zP):x_.charCodeAt(3)===58?$_.setAttributeNS("http://www.w3.org/XML/1998/namespace",x_,zP):x_.charCodeAt(5)===58?$_.setAttributeNS("http://www.w3.org/1999/xlink",x_,zP):$_.setAttribute(x_,zP))}for(x_ in B_)x_ in $P||$_.removeAttribute(x_)}}const gg={create:hg,update:hg};function vg(Ff,kh){let x_,$_;const B_=kh.elm;let $P=Ff.data.class,zP=kh.data.class;if(($P||zP)&&$P!==zP){for($_ in $P=$P||{},zP=zP||{},$P)$P[$_]&&!Object.prototype.hasOwnProperty.call(zP,$_)&&B_.classList.remove($_);for($_ in zP)x_=zP[$_],x_!==$P[$_]&&B_.classList[x_?"add":"remove"]($_)}}const yg={create:vg,update:vg},mg=/[A-Z]/g;function bg(Ff,kh){const x_=kh.elm;let $_,B_=Ff.data.dataset,$P=kh.data.dataset;if(!B_&&!$P||B_===$P)return;B_=B_||{},$P=$P||{};const zP=x_.dataset;for($_ in B_)$P[$_]||(zP?$_ in zP&&delete zP[$_]:x_.removeAttribute("data-"+$_.replace(mg,"-$&").toLowerCase()));for($_ in $P)B_[$_]!==$P[$_]&&(zP?zP[$_]=$P[$_]:x_.setAttribute("data-"+$_.replace(mg,"-$&").toLowerCase(),$P[$_]))}const wg={create:bg,update:bg};function Eg(Ff,kh,x_){if(typeof Ff=="function")Ff.call(kh,x_,kh);else if(typeof Ff=="object")for(let $_=0;$_<Ff.length;$_++)Eg(Ff[$_],kh,x_)}function Dg(Ff,kh){const x_=Ff.type,$_=kh.data.on;$_&&$_[x_]&&Eg($_[x_],kh,Ff)}function Sg(Ff,kh){const x_=Ff.data.on,$_=Ff.listener,B_=Ff.elm,$P=kh&&kh.data.on,zP=kh&&kh.elm;let eme;if(x_!==$P){if(x_&&$_)if($P)for(eme in x_)$P[eme]||B_.removeEventListener(eme,$_,!1);else for(eme in x_)B_.removeEventListener(eme,$_,!1);if($P){const tme=kh.listener=Ff.listener||function nme(rme){Dg(rme,nme.vnode)};if(tme.vnode=kh,x_)for(eme in $P)x_[eme]||zP.addEventListener(eme,tme,!1);else for(eme in $P)zP.addEventListener(eme,tme,!1)}}}const xg={create:Sg,update:Sg,destroy:Sg};function Cg(Ff,kh){let x_,$_,B_;const $P=kh.elm;let zP=Ff.data.props,eme=kh.data.props;if((zP||eme)&&zP!==eme)for(x_ in zP=zP||{},eme=eme||{},eme)$_=eme[x_],B_=zP[x_],B_===$_||x_==="value"&&$P[x_]===$_||($P[x_]=$_)}const Ag={create:Cg,update:Cg},Og=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let kg=!1;function Bg(Ff,kh,x_){(function($_){Og(function(){Og($_)})})(function(){Ff[kh]=x_})}function Fg(Ff,kh){let x_,$_;const B_=kh.elm;let $P=Ff.data.style,zP=kh.data.style;if(!$P&&!zP||$P===zP)return;$P=$P||{},zP=zP||{};const eme="delayed"in $P;for($_ in $P)zP[$_]||($_[0]==="-"&&$_[1]==="-"?B_.style.removeProperty($_):B_.style[$_]="");for($_ in zP)if(x_=zP[$_],$_==="delayed"&&zP.delayed)for(const tme in zP.delayed)x_=zP.delayed[tme],eme&&x_===$P.delayed[tme]||Bg(B_.style,tme,x_);else $_!=="remove"&&x_!==$P[$_]&&($_[0]==="-"&&$_[1]==="-"?B_.style.setProperty($_,x_):B_.style[$_]=x_)}const Tg={pre:function(){kg=!1},create:Fg,update:Fg,destroy:function(Ff){let kh,x_;const $_=Ff.elm,B_=Ff.data.style;if(B_&&(kh=B_.destroy))for(x_ in kh)$_.style[x_]=kh[x_]},remove:function(Ff,kh){const x_=Ff.data.style;if(!x_||!x_.remove)return void kh();let $_;kg||(Ff.elm.offsetLeft,kg=!0);const B_=Ff.elm;let $P=0;const zP=x_.remove;let eme=0;const tme=[];for($_ in zP)tme.push($_),B_.style[$_]=zP[$_];const nme=getComputedStyle(B_)["transition-property"].split(", ");for(;$P<nme.length;++$P)tme.indexOf(nme[$P])!==-1&&eme++;B_.addEventListener("transitionend",function(rme){rme.target===B_&&--eme,eme===0&&kh()})}};function _g(Ff,kh){for(const x_ of Ff)x_!=null&&x_!==!1&&x_!==""&&(Array.isArray(x_)?_g(x_,kh):typeof x_=="string"||typeof x_=="number"||typeof x_=="boolean"?kh.push(ng(void 0,void 0,void 0,String(x_),void 0)):kh.push(x_));return kh}function Pg(Ff,kh,...x_){const $_=_g(x_,[]);return typeof Ff=="function"?Ff(kh,$_):$_.length===1&&!$_[0].sel&&$_[0].text?pg(Ff,kh,$_[0].text):pg(Ff,kh,$_)}Pg||(Pg={});var jg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ng=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ig="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Lg="[\\ud800-\\udfff]",Rg="["+Ig+"]",Mg="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",zg="\\d+",$g="[\\u2700-\\u27bf]",Hg="[a-z\\xdf-\\xf6\\xf8-\\xff]",Vg="[^\\ud800-\\udfff"+Ig+zg+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ug="\\ud83c[\\udffb-\\udfff]",Wg="[^\\ud800-\\udfff]",Gg="(?:\\ud83c[\\udde6-\\uddff]){2}",qg="[\\ud800-\\udbff][\\udc00-\\udfff]",Kg="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Yg="(?:"+Hg+"|"+Vg+")",Xg="(?:"+Kg+"|"+Vg+")",Zg="(?:"+Mg+"|"+Ug+")?",Jg="[\\ufe0e\\ufe0f]?"+Zg+("(?:\\u200d(?:"+[Wg,Gg,qg].join("|")+")[\\ufe0e\\ufe0f]?"+Zg+")*"),Qg="(?:"+[$g,Gg,qg].join("|")+")"+Jg,ev="(?:"+[Wg+Mg+"?",Mg,Gg,qg,Lg].join("|")+")",tv=RegExp("['’]","g"),nv=RegExp(Mg,"g"),rv=RegExp(Ug+"(?="+Ug+")|"+ev+Jg,"g"),ov=RegExp([Kg+"?"+Hg+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Rg,Kg,"$"].join("|")+")",Xg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Rg,Kg+Yg,"$"].join("|")+")",Kg+"?"+Yg+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Kg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",zg,Qg].join("|"),"g"),iv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),av=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,uv=typeof e=="object"&&e&&e.Object===Object&&e,sv=typeof self=="object"&&self&&self.Object===Object&&self,lv=uv||sv||Function("return this")(),cv,fv=(cv={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(Ff){return cv==null?void 0:cv[Ff]});function dv(Ff){return iv.test(Ff)}function pv(Ff){return dv(Ff)?function(kh){return kh.match(rv)||[]}(Ff):function(kh){return kh.split("")}(Ff)}var hv=Object.prototype.toString,gv=lv.Symbol,vv=gv?gv.prototype:void 0,yv=vv?vv.toString:void 0;function mv(Ff){if(typeof Ff=="string")return Ff;if(function(x_){return typeof x_=="symbol"||function($_){return!!$_&&typeof $_=="object"}(x_)&&hv.call(x_)=="[object Symbol]"}(Ff))return yv?yv.call(Ff):"";var kh=Ff+"";return kh=="0"&&1/Ff==-1/0?"-0":kh}function bv(Ff,kh,x_){var $_=Ff.length;return x_=x_===void 0?$_:x_,!kh&&x_>=$_?Ff:function(B_,$P,zP){var eme=-1,tme=B_.length;$P<0&&($P=-$P>tme?0:tme+$P),(zP=zP>tme?tme:zP)<0&&(zP+=tme),tme=$P>zP?0:zP-$P>>>0,$P>>>=0;for(var nme=Array(tme);++eme<tme;)nme[eme]=B_[eme+$P];return nme}(Ff,kh,x_)}function wv(Ff){return Ff==null?"":mv(Ff)}var Ev,Dv=(Ev=function(Ff,kh,x_){return kh=kh.toLowerCase(),Ff+(x_?xv(wv(kh).toLowerCase()):kh)},function(Ff){return function(kh,x_,$_,B_){var $P=-1,zP=kh?kh.length:0;for(B_;++$P<zP;)$_=x_($_,kh[$P],$P,kh);return $_}(function(kh,x_,$_){return kh=wv(kh),(x_=x_)===void 0?function(B_){return av.test(B_)}(kh)?function(B_){return B_.match(ov)||[]}(kh):function(B_){return B_.match(jg)||[]}(kh):kh.match(x_)||[]}(function(kh){return(kh=wv(kh))&&kh.replace(Ng,fv).replace(nv,"")}(Ff).replace(tv,"")),Ev,"")}),Sv,xv=(Sv="toUpperCase",function(Ff){var kh=dv(Ff=wv(Ff))?pv(Ff):void 0,x_=kh?kh[0]:Ff.charAt(0),$_=kh?bv(kh,1).join(""):Ff.slice(1);return x_[Sv]()+$_});for(var Cv=Dv,Av=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Ov={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},kv={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Av?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Bv={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Fv=1;Fv<20;Fv++)Bv["f"+Fv]=111+Fv;function Tv(Ff,kh,x_){kh&&!("byKey"in kh)&&(x_=kh,kh=null),Array.isArray(Ff)||(Ff=[Ff]);var $_=Ff.map(function($P){return function(zP,eme){var tme=eme&&eme.byKey,nme={},rme=(zP=zP.replace("++","+add")).split("+"),ame=rme.length;for(var ome in Ov)nme[Ov[ome]]=!1;var ime=!0,cme=!1,ume=void 0;try{for(var sme,fme=rme[Symbol.iterator]();!(ime=(sme=fme.next()).done);ime=!0){var lme=sme.value,hme=lme.endsWith("?")&&lme.length>1;hme&&(lme=lme.slice(0,-1));var pme=Pv(lme),gme=Ov[pme];if(lme.length>1&&!gme&&!kv[lme]&&!Bv[pme])throw new TypeError('Unknown modifier: "'+lme+'"');ame!==1&&gme||(tme?nme.key=pme:nme.which=_v(lme)),gme&&(nme[gme]=!hme||null)}}catch(yme){cme=!0,ume=yme}finally{try{!ime&&fme.return&&fme.return()}finally{if(cme)throw ume}}return nme}($P,kh)}),B_=function($P){return $_.some(function(zP){return function(eme,tme){for(var nme in eme){var rme=eme[nme],ame=void 0;if(rme!=null&&((ame=nme==="key"&&tme.key!=null?tme.key.toLowerCase():nme==="which"?rme===91&&tme.which===93?91:tme.which:tme[nme])!=null||rme!==!1)&&ame!==rme)return!1}return!0}(zP,$P)})};return x_==null?B_:B_(x_)}function _v(Ff){return Ff=Pv(Ff),Bv[Ff]||Ff.toUpperCase().charCodeAt(0)}function Pv(Ff){return Ff=Ff.toLowerCase(),Ff=kv[Ff]||Ff}var jv=Tv,Nv=function(Ff,kh){return Tv(Ff,{byKey:!0},kh)},Iv=/^\s+|\s+$/g,Lv=/^[-+]0x[0-9a-f]+$/i,Rv=/^0b[01]+$/i,Mv=/^0o[0-7]+$/i,zv=parseInt,$v=typeof e=="object"&&e&&e.Object===Object&&e,Hv=typeof self=="object"&&self&&self.Object===Object&&self,Vv=$v||Hv||Function("return this")(),Uv=Object.prototype.toString,Wv=Math.max,Gv=Math.min,qv=function(){return Vv.Date.now()};function Kv(Ff){var kh=typeof Ff;return!!Ff&&(kh=="object"||kh=="function")}function Yv(Ff){if(typeof Ff=="number")return Ff;if(function($_){return typeof $_=="symbol"||function(B_){return!!B_&&typeof B_=="object"}($_)&&Uv.call($_)=="[object Symbol]"}(Ff))return NaN;if(Kv(Ff)){var kh=typeof Ff.valueOf=="function"?Ff.valueOf():Ff;Ff=Kv(kh)?kh+"":kh}if(typeof Ff!="string")return Ff===0?Ff:+Ff;Ff=Ff.replace(Iv,"");var x_=Rv.test(Ff);return x_||Mv.test(Ff)?zv(Ff.slice(2),x_?2:8):Lv.test(Ff)?NaN:+Ff}var Xv,Zv=function(Ff,kh,x_){var $_,B_,$P,zP,eme,tme,nme=0,rme=!1,ame=!1,ome=!0;if(typeof Ff!="function")throw new TypeError("Expected a function");function ime(hme){var pme=$_,gme=B_;return $_=B_=void 0,nme=hme,zP=Ff.apply(gme,pme)}function cme(hme){return nme=hme,eme=setTimeout(sme,kh),rme?ime(hme):zP}function ume(hme){var pme=hme-tme;return tme===void 0||pme>=kh||pme<0||ame&&hme-nme>=$P}function sme(){var hme=qv();if(ume(hme))return fme(hme);eme=setTimeout(sme,function(pme){var gme=kh-(pme-tme);return ame?Gv(gme,$P-(pme-nme)):gme}(hme))}function fme(hme){return eme=void 0,ome&&$_?ime(hme):($_=B_=void 0,zP)}function lme(){var hme=qv(),pme=ume(hme);if($_=arguments,B_=this,tme=hme,pme){if(eme===void 0)return cme(tme);if(ame)return eme=setTimeout(sme,kh),ime(tme)}return eme===void 0&&(eme=setTimeout(sme,kh)),zP}return kh=Yv(kh)||0,Kv(x_)&&(rme=!!x_.leading,$P=(ame="maxWait"in x_)?Wv(Yv(x_.maxWait)||0,kh):$P,ome="trailing"in x_?!!x_.trailing:ome),lme.cancel=function(){eme!==void 0&&clearTimeout(eme),nme=0,$_=tme=B_=eme=void 0},lme.flush=function(){return eme===void 0?zP:fme(qv())},lme},Jv=n(function(Ff,kh){var x_="__lodash_hash_undefined__",$_=9007199254740991,B_="[object Arguments]",$P="[object Boolean]",zP="[object Date]",eme="[object Function]",tme="[object GeneratorFunction]",nme="[object Map]",rme="[object Number]",ame="[object Object]",ome="[object Promise]",ime="[object RegExp]",cme="[object Set]",ume="[object String]",sme="[object Symbol]",fme="[object WeakMap]",lme="[object ArrayBuffer]",hme="[object DataView]",pme="[object Float32Array]",gme="[object Float64Array]",yme="[object Int8Array]",mme="[object Int16Array]",bme="[object Int32Array]",Sme="[object Uint8Array]",_me="[object Uint8ClampedArray]",Cme="[object Uint16Array]",Eme="[object Uint32Array]",Tme=/\w*$/,Rme=/^\[object .+?Constructor\]$/,Pme=/^(?:0|[1-9]\d*)$/,$me={};$me[B_]=$me["[object Array]"]=$me[lme]=$me[hme]=$me[$P]=$me[zP]=$me[pme]=$me[gme]=$me[yme]=$me[mme]=$me[bme]=$me[nme]=$me[rme]=$me[ame]=$me[ime]=$me[cme]=$me[ume]=$me[sme]=$me[Sme]=$me[_me]=$me[Cme]=$me[Eme]=!0,$me["[object Error]"]=$me[eme]=$me[fme]=!1;var Dme=typeof e=="object"&&e&&e.Object===Object&&e,Mme=typeof self=="object"&&self&&self.Object===Object&&self,Nme=Dme||Mme||Function("return this")(),Ime=kh&&!kh.nodeType&&kh,wme=Ime&&Ff&&!Ff.nodeType&&Ff,Ome=wme&&wme.exports===Ime;function Ame(Yme,l0e){return Yme.set(l0e[0],l0e[1]),Yme}function Fme(Yme,l0e){return Yme.add(l0e),Yme}function Bme(Yme,l0e,S0e,I0e){var Z0e=-1,lye=Yme?Yme.length:0;for(I0e;++Z0e<lye;)S0e=l0e(S0e,Yme[Z0e],Z0e,Yme);return S0e}function kme(Yme){var l0e=!1;if(Yme!=null&&typeof Yme.toString!="function")try{l0e=!!(Yme+"")}catch{}return l0e}function Lme(Yme){var l0e=-1,S0e=Array(Yme.size);return Yme.forEach(function(I0e,Z0e){S0e[++l0e]=[Z0e,I0e]}),S0e}function Hme(Yme,l0e){return function(S0e){return Yme(l0e(S0e))}}function Wme(Yme){var l0e=-1,S0e=Array(Yme.size);return Yme.forEach(function(I0e){S0e[++l0e]=I0e}),S0e}var zme=Array.prototype,Vme=Function.prototype,Xme=Object.prototype,e0e=Nme["__core-js_shared__"],Ume=function(){var Yme=/[^.]+$/.exec(e0e&&e0e.keys&&e0e.keys.IE_PROTO||"");return Yme?"Symbol(src)_1."+Yme:""}(),Jme=Vme.toString,s0e=Xme.hasOwnProperty,d0e=Xme.toString,Zme=RegExp("^"+Jme.call(s0e).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qme=Ome?Nme.Buffer:void 0,a0e=Nme.Symbol,t0e=Nme.Uint8Array,o0e=Hme(Object.getPrototypeOf,Object),g0e=Object.create,u0e=Xme.propertyIsEnumerable,h0e=zme.splice,E0e=Object.getOwnPropertySymbols,P0e=Qme?Qme.isBuffer:void 0,y0e=Hme(Object.keys,Object),$0e=hye(Nme,"DataView"),C0e=hye(Nme,"Map"),z0e=hye(Nme,"Promise"),D0e=hye(Nme,"Set"),O0e=hye(Nme,"WeakMap"),b0e=hye(Object,"create"),k0e=R0e($0e),T0e=R0e(C0e),L0e=R0e(z0e),Y0e=R0e(D0e),mye=R0e(O0e),Q0e=a0e?a0e.prototype:void 0,U0e=Q0e?Q0e.valueOf:void 0;function q0e(Yme){var l0e=-1,S0e=Yme?Yme.length:0;for(this.clear();++l0e<S0e;){var I0e=Yme[l0e];this.set(I0e[0],I0e[1])}}function V0e(Yme){var l0e=-1,S0e=Yme?Yme.length:0;for(this.clear();++l0e<S0e;){var I0e=Yme[l0e];this.set(I0e[0],I0e[1])}}function X0e(Yme){var l0e=-1,S0e=Yme?Yme.length:0;for(this.clear();++l0e<S0e;){var I0e=Yme[l0e];this.set(I0e[0],I0e[1])}}function M0e(Yme){this.__data__=new V0e(Yme)}function J0e(Yme,l0e){var S0e=n0e(Yme)||function(Tye){return function(xye){return function(Dye){return!!Dye&&typeof Dye=="object"}(xye)&&f0e(xye)}(Tye)&&s0e.call(Tye,"callee")&&(!u0e.call(Tye,"callee")||d0e.call(Tye)==B_)}(Yme)?function(Tye,xye){for(var Dye=-1,Lye=Array(Tye);++Dye<Tye;)Lye[Dye]=xye(Dye);return Lye}(Yme.length,String):[],I0e=S0e.length,Z0e=!!I0e;for(var lye in Yme)!s0e.call(Yme,lye)||Z0e&&(lye=="length"||Vye(lye,I0e))||S0e.push(lye);return S0e}function aye(Yme,l0e,S0e){var I0e=Yme[l0e];s0e.call(Yme,l0e)&&A0e(I0e,S0e)&&(S0e!==void 0||l0e in Yme)||(Yme[l0e]=S0e)}function F0e(Yme,l0e){for(var S0e=Yme.length;S0e--;)if(A0e(Yme[S0e][0],l0e))return S0e;return-1}function cye(Yme,l0e,S0e,I0e,Z0e,lye,Tye){var xye;if(I0e&&(xye=lye?I0e(Yme,Z0e,lye,Tye):I0e(Yme)),xye!==void 0)return xye;if(!j0e(Yme))return Yme;var Dye=n0e(Yme);if(Dye){if(xye=function(Sye){var jye=Sye.length,qye=Sye.constructor(jye);return jye&&typeof Sye[0]=="string"&&s0e.call(Sye,"index")&&(qye.index=Sye.index,qye.input=Sye.input),qye}(Yme),!l0e)return function(Sye,jye){var qye=-1,Rye=Sye.length;for(jye||(jye=Array(Rye));++qye<Rye;)jye[qye]=Sye[qye];return jye}(Yme,xye)}else{var Lye=Eye(Yme),l1e=Lye==eme||Lye==tme;if(m0e(Yme))return function(Sye,jye){if(jye)return Sye.slice();var qye=new Sye.constructor(Sye.length);return Sye.copy(qye),qye}(Yme,l0e);if(Lye==ame||Lye==B_||l1e&&!lye){if(kme(Yme))return lye?Yme:{};if(xye=function(Sye){return typeof Sye.constructor!="function"||r0e(Sye)?{}:(jye=o0e(Sye),j0e(jye)?g0e(jye):{});var jye}(l1e?{}:Yme),!l0e)return function(Sye,jye){return sye(Sye,wye(Sye),jye)}(Yme,function(Sye,jye){return Sye&&sye(jye,_0e(jye),Sye)}(xye,Yme))}else{if(!$me[Lye])return lye?Yme:{};xye=function(Sye,jye,qye,Rye){var Aye=Sye.constructor;switch(jye){case lme:return W0e(Sye);case $P:case zP:return new Aye(+Sye);case hme:return function(Oye,fye){var gye=fye?W0e(Oye.buffer):Oye.buffer;return new Oye.constructor(gye,Oye.byteOffset,Oye.byteLength)}(Sye,Rye);case pme:case gme:case yme:case mme:case bme:case Sme:case _me:case Cme:case Eme:return function(Oye,fye){var gye=fye?W0e(Oye.buffer):Oye.buffer;return new Oye.constructor(gye,Oye.byteOffset,Oye.length)}(Sye,Rye);case nme:return function(Oye,fye,gye){return Bme(fye?gye(Lme(Oye),!0):Lme(Oye),Ame,new Oye.constructor)}(Sye,Rye,qye);case rme:case ume:return new Aye(Sye);case ime:return function(Oye){var fye=new Oye.constructor(Oye.source,Tme.exec(Oye));return fye.lastIndex=Oye.lastIndex,fye}(Sye);case cme:return function(Oye,fye,gye){return Bme(fye?gye(Wme(Oye),!0):Wme(Oye),Fme,new Oye.constructor)}(Sye,Rye,qye);case sme:return function(Oye){return U0e?Object(U0e.call(Oye)):{}}(Sye)}}(Yme,Lye,cye,l0e)}}Tye||(Tye=new M0e);var Uye=Tye.get(Yme);if(Uye)return Uye;if(Tye.set(Yme,xye),!Dye)var Qye=S0e?function(Sye){return function(jye,qye,Rye){var Aye=qye(jye);return n0e(jye)?Aye:function(Oye,fye){for(var gye=-1,Hye=fye.length,Xye=Oye.length;++gye<Hye;)Oye[Xye+gye]=fye[gye];return Oye}(Aye,Rye(jye))}(Sye,_0e,wye)}(Yme):_0e(Yme);return function(Sye,jye){for(var qye=-1,Rye=Sye?Sye.length:0;++qye<Rye&&jye(Sye[qye],qye,Sye)!==!1;);}(Qye||Yme,function(Sye,jye){Qye&&(Sye=Yme[jye=Sye]),aye(xye,jye,cye(Sye,l0e,S0e,I0e,jye,Yme,Tye))}),xye}function yye(Yme){return!(!j0e(Yme)||function(l0e){return!!Ume&&Ume in l0e}(Yme))&&(w0e(Yme)||kme(Yme)?Zme:Rme).test(R0e(Yme))}function W0e(Yme){var l0e=new Yme.constructor(Yme.byteLength);return new t0e(l0e).set(new t0e(Yme)),l0e}function sye(Yme,l0e,S0e,I0e){S0e||(S0e={});for(var Z0e=-1,lye=l0e.length;++Z0e<lye;){var Tye=l0e[Z0e],xye=void 0;aye(S0e,Tye,xye===void 0?Yme[Tye]:xye)}return S0e}function G0e(Yme,l0e){var S0e,I0e,Z0e=Yme.__data__;return((I0e=typeof(S0e=l0e))=="string"||I0e=="number"||I0e=="symbol"||I0e=="boolean"?S0e!=="__proto__":S0e===null)?Z0e[typeof l0e=="string"?"string":"hash"]:Z0e.map}function hye(Yme,l0e){var S0e=function(I0e,Z0e){return I0e==null?void 0:I0e[Z0e]}(Yme,l0e);return yye(S0e)?S0e:void 0}q0e.prototype.clear=function(){this.__data__=b0e?b0e(null):{}},q0e.prototype.delete=function(Yme){return this.has(Yme)&&delete this.__data__[Yme]},q0e.prototype.get=function(Yme){var l0e=this.__data__;if(b0e){var S0e=l0e[Yme];return S0e===x_?void 0:S0e}return s0e.call(l0e,Yme)?l0e[Yme]:void 0},q0e.prototype.has=function(Yme){var l0e=this.__data__;return b0e?l0e[Yme]!==void 0:s0e.call(l0e,Yme)},q0e.prototype.set=function(Yme,l0e){return this.__data__[Yme]=b0e&&l0e===void 0?x_:l0e,this},V0e.prototype.clear=function(){this.__data__=[]},V0e.prototype.delete=function(Yme){var l0e=this.__data__,S0e=F0e(l0e,Yme);return!(S0e<0)&&(S0e==l0e.length-1?l0e.pop():h0e.call(l0e,S0e,1),!0)},V0e.prototype.get=function(Yme){var l0e=this.__data__,S0e=F0e(l0e,Yme);return S0e<0?void 0:l0e[S0e][1]},V0e.prototype.has=function(Yme){return F0e(this.__data__,Yme)>-1},V0e.prototype.set=function(Yme,l0e){var S0e=this.__data__,I0e=F0e(S0e,Yme);return I0e<0?S0e.push([Yme,l0e]):S0e[I0e][1]=l0e,this},X0e.prototype.clear=function(){this.__data__={hash:new q0e,map:new(C0e||V0e),string:new q0e}},X0e.prototype.delete=function(Yme){return G0e(this,Yme).delete(Yme)},X0e.prototype.get=function(Yme){return G0e(this,Yme).get(Yme)},X0e.prototype.has=function(Yme){return G0e(this,Yme).has(Yme)},X0e.prototype.set=function(Yme,l0e){return G0e(this,Yme).set(Yme,l0e),this},M0e.prototype.clear=function(){this.__data__=new V0e},M0e.prototype.delete=function(Yme){return this.__data__.delete(Yme)},M0e.prototype.get=function(Yme){return this.__data__.get(Yme)},M0e.prototype.has=function(Yme){return this.__data__.has(Yme)},M0e.prototype.set=function(Yme,l0e){var S0e=this.__data__;if(S0e instanceof V0e){var I0e=S0e.__data__;if(!C0e||I0e.length<199)return I0e.push([Yme,l0e]),this;S0e=this.__data__=new X0e(I0e)}return S0e.set(Yme,l0e),this};var wye=E0e?Hme(E0e,Object):function(){return[]},Eye=function(Yme){return d0e.call(Yme)};function Vye(Yme,l0e){return!!(l0e=l0e??$_)&&(typeof Yme=="number"||Pme.test(Yme))&&Yme>-1&&Yme%1==0&&Yme<l0e}function r0e(Yme){var l0e=Yme&&Yme.constructor;return Yme===(typeof l0e=="function"&&l0e.prototype||Xme)}function R0e(Yme){if(Yme!=null){try{return Jme.call(Yme)}catch{}try{return Yme+""}catch{}}return""}function A0e(Yme,l0e){return Yme===l0e||Yme!=Yme&&l0e!=l0e}($0e&&Eye(new $0e(new ArrayBuffer(1)))!=hme||C0e&&Eye(new C0e)!=nme||z0e&&Eye(z0e.resolve())!=ome||D0e&&Eye(new D0e)!=cme||O0e&&Eye(new O0e)!=fme)&&(Eye=function(Yme){var l0e=d0e.call(Yme),S0e=l0e==ame?Yme.constructor:void 0,I0e=S0e?R0e(S0e):void 0;if(I0e)switch(I0e){case k0e:return hme;case T0e:return nme;case L0e:return ome;case Y0e:return cme;case mye:return fme}return l0e});var n0e=Array.isArray;function f0e(Yme){return Yme!=null&&function(l0e){return typeof l0e=="number"&&l0e>-1&&l0e%1==0&&l0e<=$_}(Yme.length)&&!w0e(Yme)}var m0e=P0e||function(){return!1};function w0e(Yme){var l0e=j0e(Yme)?d0e.call(Yme):"";return l0e==eme||l0e==tme}function j0e(Yme){var l0e=typeof Yme;return!!Yme&&(l0e=="object"||l0e=="function")}function _0e(Yme){return f0e(Yme)?J0e(Yme):function(l0e){if(!r0e(l0e))return y0e(l0e);var S0e=[];for(var I0e in Object(l0e))s0e.call(l0e,I0e)&&I0e!="constructor"&&S0e.push(I0e);return S0e}(Yme)}Ff.exports=function(Yme){return cye(Yme,!0,!0)}});function Qv(Ff,kh){if(!Object.prototype.hasOwnProperty.call(Ff,kh))throw new TypeError("attempted to use private field on non-instance");return Ff}var ey=0;function ty(Ff){return"__private_"+ey+++"_"+Ff}function ny(Ff,kh,x_){const $_=[];return Ff.forEach(B_=>typeof B_!="string"?$_.push(B_):kh[Symbol.split](B_).forEach(($P,zP,eme)=>{$P!==""&&$_.push($P),zP<eme.length-1&&$_.push(x_)})),$_}/**
452
452
  * Takes a string with placeholder variables like `%{smart_count} file selected`
453
453
  * and replaces it with values from options `{smart_count: 5}`
454
454
  *
@@ -555,7 +555,7 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
555
555
  PERFORMANCE OF THIS SOFTWARE.
556
556
  ***************************************************************************** */};function QJ(Ff,kh){if(typeof kh!="function"&&kh!==null)throw new TypeError("Class extends value "+String(kh)+" is not a constructor or null");function x_(){this.constructor=Ff}JJ(Ff,kh),Ff.prototype=kh===null?Object.create(kh):(x_.prototype=kh.prototype,new x_)}function eQ(Ff){var kh=typeof Symbol=="function"&&Symbol.iterator,x_=kh&&Ff[kh],$_=0;if(x_)return x_.call(Ff);if(Ff&&typeof Ff.length=="number")return{next:function(){return Ff&&$_>=Ff.length&&(Ff=void 0),{value:Ff&&Ff[$_++],done:!Ff}}};throw new TypeError(kh?"Object is not iterable.":"Symbol.iterator is not defined.")}function tQ(Ff,kh){var x_=typeof Symbol=="function"&&Ff[Symbol.iterator];if(!x_)return Ff;var $_,B_,$P=x_.call(Ff),zP=[];try{for(;(kh===void 0||kh-- >0)&&!($_=$P.next()).done;)zP.push($_.value)}catch(eme){B_={error:eme}}finally{try{$_&&!$_.done&&(x_=$P.return)&&x_.call($P)}finally{if(B_)throw B_.error}}return zP}function nQ(Ff){return Bf.nodes(Ff,{at:Ff.selection||void 0,match:function(kh){return QO.findPath(Ff,kh).length===1}})}var rQ=kY.includes;MX({target:"Array",proto:!0},{includes:function(Ff){return rQ(this,Ff,arguments.length>1?arguments[1]:void 0)}}),qY("includes");var oQ,iQ,aQ=function(){var Ff=YK(this),kh="";return Ff.global&&(kh+="g"),Ff.ignoreCase&&(kh+="i"),Ff.multiline&&(kh+="m"),Ff.dotAll&&(kh+="s"),Ff.unicode&&(kh+="u"),Ff.sticky&&(kh+="y"),kh},uQ=tK.RegExp,sQ=uK(function(){var Ff=uQ("a","y");return Ff.lastIndex=2,Ff.exec("abcd")!=null}),lQ=sQ||uK(function(){return!uQ("a","y").sticky}),cQ={BROKEN_CARET:sQ||uK(function(){var Ff=uQ("^r","gy");return Ff.lastIndex=2,Ff.exec("str")!=null}),MISSED_STICKY:lQ,UNSUPPORTED_Y:sQ},fQ=tK.RegExp,dQ=uK(function(){var Ff=fQ(".","s");return!(Ff.dotAll&&Ff.exec(`
557
557
  `)&&Ff.flags==="s")}),pQ=tK.RegExp,hQ=uK(function(){var Ff=pQ("(?<a>b)","g");return Ff.exec("b").groups.a!=="b"||"b".replace(Ff,"$<a>c")!=="bc"}),gQ=hX.get,vQ=wK("native-string-replace",String.prototype.replace),yQ=RegExp.prototype.exec,mQ=yQ,bQ=aK("".charAt),wQ=aK("".indexOf),EQ=aK("".replace),DQ=aK("".slice),SQ=(iQ=/b*/g,nY(yQ,oQ=/a/,"a"),nY(yQ,iQ,"a"),oQ.lastIndex!==0||iQ.lastIndex!==0),xQ=cQ.BROKEN_CARET,CQ=/()??/.exec("")[1]!==void 0;(SQ||CQ||xQ||dQ||hQ)&&(mQ=function(Ff){var kh,x_,$_,B_,$P,zP,eme,tme=this,nme=gQ(tme),rme=EZ(Ff),ame=nme.raw;if(ame)return ame.lastIndex=tme.lastIndex,kh=nY(mQ,ame,rme),tme.lastIndex=ame.lastIndex,kh;var ome=nme.groups,ime=xQ&&tme.sticky,cme=nY(aQ,tme),ume=tme.source,sme=0,fme=rme;if(ime&&(cme=EQ(cme,"y",""),wQ(cme,"g")===-1&&(cme+="g"),fme=DQ(rme,tme.lastIndex),tme.lastIndex>0&&(!tme.multiline||tme.multiline&&bQ(rme,tme.lastIndex-1)!==`
558
- `)&&(ume="(?: "+ume+")",fme=" "+fme,sme++),x_=new RegExp("^(?:"+ume+")",cme)),CQ&&(x_=new RegExp("^"+ume+"$(?!\\s)",cme)),SQ&&($_=tme.lastIndex),B_=nY(yQ,ime?x_:tme,fme),ime?B_?(B_.input=DQ(B_.input,sme),B_[0]=DQ(B_[0],sme),B_.index=tme.lastIndex,tme.lastIndex+=B_[0].length):tme.lastIndex=0:SQ&&B_&&(tme.lastIndex=tme.global?B_.index+B_[0].length:$_),CQ&&B_&&B_.length>1&&nY(vQ,B_[0],x_,function(){for($P=1;$P<arguments.length-2;$P++)arguments[$P]===void 0&&(B_[$P]=void 0)}),B_&&ome)for(B_.groups=zP=UY(null),$P=0;$P<ome.length;$P++)zP[(eme=ome[$P])[0]]=B_[eme[1]];return B_});var AQ=mQ;MX({target:"RegExp",proto:!0,forced:/./.exec!==AQ},{exec:AQ});var OQ=function(){function Ff(){this.type="list-item",this.tag="button"}return Ff.prototype.getListNode=function(kh){var x_=this.type;return QO.getSelectedNodeByType(kh,x_)},Ff.prototype.getValue=function(kh){return""},Ff.prototype.isActive=function(kh){var x_=this.getListNode(kh);if(x_==null)return!1;var $_=x_.ordered;return($_!==void 0&&$_)===this.ordered},Ff.prototype.isDisabled=function(kh){return kh.selection==null||!!QO.getSelectedElems(kh).some(function(x_){if(Bf.isVoid(kh,x_)&&Bf.isBlock(kh,x_))return!0;var $_=x_.type;return!!["pre","code","table"].includes($_)||void 0})},Ff.prototype.exec=function(kh,x_){this.isActive(kh)?md.setNodes(kh,{type:"paragraph",ordered:void 0,level:void 0}):md.setNodes(kh,{type:"list-item",ordered:this.ordered,indent:void 0})},Ff}(),kQ='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',BQ='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',FQ=function(Ff){function kh(){var x_=Ff!==null&&Ff.apply(this,arguments)||this;return x_.ordered=!1,x_.title=HP("listModule.unOrderedList"),x_.iconSvg=kQ,x_}return QJ(kh,Ff),kh}(OQ),TQ=function(Ff){function kh(){var x_=Ff!==null&&Ff.apply(this,arguments)||this;return x_.ordered=!0,x_.title=HP("listModule.orderedList"),x_.iconSvg=BQ,x_}return QJ(kh,Ff),kh}(OQ),_Q={key:"bulletedList",factory:function(){return new FQ}},PQ={key:"numberedList",factory:function(){return new TQ}},jQ=[],NQ={type:"list-item",elemToHtml:function(Ff,kh){var x_="",$_="",B_=Ff.ordered,$P=B_!==void 0&&B_?"ol":"ul",zP=function(nme){var rme=XJ.get(nme);if(rme==null)return 0;var ame=nme,ome=ame.type,ime=ame.ordered,cme=ime!==void 0&&ime,ume=ame.level,sme=ume===void 0?0:ume,fme=QO.findPath(rme,nme);if(fme[0]===0)return sme+1;var lme=Mf.previous(fme),hme=Bf.node(rme,lme);if(!hme)return 0;var pme=tQ(hme,1)[0];if(QO.getNodeType(pme)!==ome)return sme+1;var gme=pme,yme=gme.ordered,mme=yme!==void 0&&yme,bme=gme.level,Sme=bme===void 0?0:bme;return Sme<sme?sme-Sme:Sme>sme?0:Sme===sme?mme===cme?0:1:0}(Ff);if(zP>0)for(var eme=0;eme<zP;eme++)x_+="<"+$P+">",jQ.push($P);var tme=function(nme){var rme=XJ.get(nme);if(rme==null)return 0;var ame=nme,ome=ame.type,ime=ame.ordered,cme=ime!==void 0&&ime,ume=ame.level,sme=ume===void 0?0:ume,fme=QO.findPath(rme,nme);if(fme[0]===rme.children.length-1)return sme+1;var lme=Mf.next(fme),hme=Bf.node(rme,lme);if(!hme)return 0;var pme=tQ(hme,1)[0];if(QO.getNodeType(pme)!==ome)return sme+1;var gme=pme,yme=gme.ordered,mme=yme!==void 0&&yme,bme=gme.level,Sme=bme===void 0?0:bme;return Sme<sme?sme-Sme:Sme>sme?0:Sme===sme?mme===cme?0:1:0}(Ff);if(tme>0)for(eme=0;eme<tme;eme++)$_+="</"+jQ.pop()+">";return{html:"<li>"+kh+"</li>",prefix:x_,suffix:$_}}},IQ=WK("species"),LQ=bJ.filter,RQ=RK>=51||!uK(function(){var Ff=[];return(Ff.constructor={})[IQ]=function(){return{foo:1}},Ff.filter(Boolean).foo!==1});MX({target:"Array",proto:!0,forced:!RQ},{filter:function(Ff){return LQ(this,Ff,arguments.length>1?arguments[1]:void 0)}});var MQ=Function.prototype,zQ=MQ.apply,$Q=MQ.bind,HQ=MQ.call,VQ=typeof Reflect=="object"&&Reflect.apply||($Q?HQ.bind(zQ):function(){return HQ.apply(zQ,arguments)}),UQ=(WK("species"),RegExp.prototype),WQ=AZ.charAt,GQ=function(Ff,kh,x_){return kh+(x_?WQ(Ff,kh).length:1)},qQ=Math.floor,KQ=aK("".charAt),YQ=aK("".replace),XQ=aK("".slice),ZQ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,JQ=/\$([$&'`]|\d{1,2})/g,QQ=function(Ff,kh,x_,$_,B_,$P){var zP=x_+Ff.length,eme=$_.length,tme=JQ;return B_!==void 0&&(B_=DK(B_),tme=ZQ),YQ($P,tme,function(nme,rme){var ame;switch(KQ(rme,0)){case"$":return"$";case"&":return Ff;case"`":return XQ(kh,0,x_);case"'":return XQ(kh,zP);case"<":ame=B_[XQ(rme,1,-1)];break;default:var ome=+rme;if(ome===0)return nme;if(ome>eme){var ime=qQ(ome/10);return ime===0?nme:ime<=eme?$_[ime-1]===void 0?KQ(rme,1):$_[ime-1]+KQ(rme,1):nme}ame=$_[ome-1]}return ame===void 0?"":ame})},e0=tK.TypeError,t0=function(Ff,kh){var x_=Ff.exec;if(BK(x_)){var $_=nY(x_,Ff,kh);return $_!==null&&YK($_),$_}if(cK(Ff)==="RegExp")return nY(AQ,Ff,kh);throw e0("RegExp#exec called on incompatible receiver")},n0=WK("replace"),r0=Math.max,o0=Math.min,i0=aK([].concat),a0=aK([].push),u0=aK("".indexOf),s0=aK("".slice),l0="a".replace(/./,"$0")==="$0",c0=!!/./[n0]&&/./[n0]("a","$0")==="";(function(Ff,kh,x_,$_){var B_=WK(Ff),$P=!uK(function(){var nme={};return nme[B_]=function(){return 7},""[Ff](nme)!=7}),zP=$P&&!uK(function(){var nme=!1,rme=/a/;return rme.exec=function(){return nme=!0,null},rme[B_](""),!nme});if(!$P||!zP||x_){var eme=aK(/./[B_]),tme=function(nme,rme,ame){var ome=c0?"$":"$0";return[function(ime,cme){var ume=gK(this),sme=ime==null?void 0:cY(ime,n0);return sme?nY(sme,ime,ume,cme):nY(rme,EZ(ume),ime,cme)},function(ime,cme){var ume=YK(this),sme=EZ(ime);if(typeof cme=="string"&&u0(cme,ome)===-1&&u0(cme,"$<")===-1){var fme=ame(rme,ume,sme,cme);if(fme.done)return fme.value}var lme=BK(cme);lme||(cme=EZ(cme));var hme=ume.global;if(hme){var pme=ume.unicode;ume.lastIndex=0}for(var gme=[];;){var yme=t0(ume,sme);if(yme===null||(a0(gme,yme),!hme))break;EZ(yme[0])===""&&(ume.lastIndex=GQ(sme,CY(ume.lastIndex),pme))}for(var mme,bme="",Sme=0,_me=0;_me<gme.length;_me++){for(var Cme=EZ((yme=gme[_me])[0]),Eme=r0(o0(wY(yme.index),sme.length),0),Tme=[],Rme=1;Rme<yme.length;Rme++)a0(Tme,(mme=yme[Rme])===void 0?mme:String(mme));var Pme=yme.groups;if(lme){var $me=i0([Cme],Tme,Eme,sme);Pme!==void 0&&a0($me,Pme);var Dme=EZ(VQ(cme,void 0,$me))}else Dme=QQ(Cme,sme,Eme,Tme,Pme,cme);Eme>=Sme&&(bme+=s0(sme,Sme,Eme)+Dme,Sme=Eme+Cme.length)}return bme+s0(sme,Sme)}]}(0,""[Ff],function(nme,rme,ame,ome,ime){var cme=aK(nme),ume=rme.exec;return ume===AQ||ume===UQ.exec?$P&&!ime?{done:!0,value:eme(rme,ame,ome)}:{done:!0,value:cme(ame,rme,ome)}:{done:!1}});xX(String.prototype,Ff,tme[0]),xX(UQ,B_,tme[1])}})("replace",0,!!uK(function(){var Ff=/./;return Ff.exec=function(){var kh=[];return kh.groups={a:"7"},kh},"".replace(Ff,"$<a>")!=="7"})||!l0||c0);var f0=tK.TypeError,d0=function(Ff,kh,x_,$_,B_,$P,zP,eme){for(var tme,nme,rme=B_,ame=0,ome=!!zP&&HZ(zP,eme);ame<$_;){if(ame in x_){if(tme=ome?ome(x_[ame],ame,kh):x_[ame],$P>0&&iJ(tme))nme=AY(tme),rme=d0(Ff,kh,tme,nme,rme,$P-1)-1;else{if(rme>=9007199254740991)throw f0("Exceed the acceptable array length");Ff[rme]=tme}rme++}ame++}return rme},p0=d0;function h0(Ff){return Ff.length?Ff[0].tagName.toLowerCase():""}MX({target:"Array",proto:!0},{flat:function(){var Ff=arguments.length?arguments[0]:void 0,kh=DK(this),x_=AY(kh),$_=vJ(kh,0);return $_.length=p0($_,kh,kh,x_,0,Ff===void 0?1:wY(Ff)),$_}}),qY("flat"),MX({global:!0},{globalThis:tK}),ah&&(Mp.fn.append=ah),Vp&&(Mp.fn.attr=Vp),sh&&(Mp.fn.parent=sh);var g0={renderElems:[ZJ],editorPlugin:function(Ff){var kh=Ff.deleteBackward,x_=Ff.handleTab,$_=Ff.normalizeNode,B_=Ff;return B_.deleteBackward=function($P){var zP=B_.selection;if(zP!=null)if(qf.isExpanded(zP))kh($P);else{var eme=QO.getSelectedNodeByType(B_,"list-item");if(eme!=null)if(zP.focus.offset!==0)kh($P);else{var tme=eme.level,nme=tme===void 0?0:tme;nme>0?md.setNodes(B_,{level:nme-1}):md.setNodes(B_,{type:"paragraph",ordered:void 0,level:void 0})}else kh($P)}else kh($P)},B_.handleTab=function(){var $P,zP,eme,tme,nme=B_.selection;if(nme!=null){if(qf.isCollapsed(nme)){var rme=QO.getSelectedNodeByType(B_,"list-item");if(rme==null)return void x_();if(nme.focus.offset===0){var ame=rme.level,ome=ame===void 0?0:ame;return void md.setNodes(B_,{level:ome+1})}}if(qf.isExpanded(nme)){var ime=0,cme=!1;try{for(var ume=eQ(nQ(B_)),sme=ume.next();!sme.done;sme=ume.next()){var fme=tQ(sme.value,1)[0];QO.getNodeType(fme)==="list-item"?ime++:cme=!0}}catch(mme){$P={error:mme}}finally{try{sme&&!sme.done&&(zP=ume.return)&&zP.call(ume)}finally{if($P)throw $P.error}}if(cme||ime<=1)return void x_();try{for(var lme=eQ(nQ(B_)),hme=lme.next();!hme.done;hme=lme.next()){var pme=tQ(hme.value,2),gme=(fme=pme[0],pme[1]),yme=fme.level;ome=yme===void 0?0:yme,md.setNodes(B_,{level:ome+1},{at:gme})}}catch(mme){eme={error:mme}}finally{try{hme&&!hme.done&&(tme=lme.return)&&tme.call(lme)}finally{if(eme)throw eme.error}}}else x_()}else x_()},B_.normalizeNode=function($P){var zP=tQ($P,2),eme=zP[0],tme=zP[1],nme=QO.getNodeType(eme);return nme!=="bulleted-list"&&nme!=="numbered-list"||md.unwrapNodes(B_,{at:tme}),$_([eme,tme])},B_},menus:[_Q,PQ],elemsToHtml:[NQ],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(Ff,kh,x_){return kh.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(Ff,kh,x_){var $_=Mp(Ff);(kh=kh.filter(function(zP){return!!ed.isText(zP)||!!x_.isInline(zP)})).length===0&&(kh=[{text:$_.text().replace(/\s+/gm," ")}]);var B_=function(zP){return h0(zP.parent())==="ol"}($_),$P=function(zP){for(var eme=0,tme=zP.parent(),nme=h0(tme);nme==="ul"||nme==="ol";)nme=h0(tme=tme.parent()),eme++;return eme-1}($_);return{type:"list-item",ordered:B_,level:$P,children:kh}}}]},v0=n(function(Ff,kh){var x_="__lodash_hash_undefined__",$_=9007199254740991,B_="[object Arguments]",$P="[object Array]",zP="[object Boolean]",eme="[object Date]",tme="[object Error]",nme="[object Function]",rme="[object Map]",ame="[object Number]",ome="[object Object]",ime="[object Promise]",cme="[object RegExp]",ume="[object Set]",sme="[object String]",fme="[object Symbol]",lme="[object WeakMap]",hme="[object ArrayBuffer]",pme="[object DataView]",gme=/^\[object .+?Constructor\]$/,yme=/^(?:0|[1-9]\d*)$/,mme={};mme["[object Float32Array]"]=mme["[object Float64Array]"]=mme["[object Int8Array]"]=mme["[object Int16Array]"]=mme["[object Int32Array]"]=mme["[object Uint8Array]"]=mme["[object Uint8ClampedArray]"]=mme["[object Uint16Array]"]=mme["[object Uint32Array]"]=!0,mme[B_]=mme[$P]=mme[hme]=mme[zP]=mme[pme]=mme[eme]=mme[tme]=mme[nme]=mme[rme]=mme[ame]=mme[ome]=mme[cme]=mme[ume]=mme[sme]=mme[lme]=!1;var bme=typeof e=="object"&&e&&e.Object===Object&&e,Sme=typeof self=="object"&&self&&self.Object===Object&&self,_me=bme||Sme||Function("return this")(),Cme=kh&&!kh.nodeType&&kh,Eme=Cme&&Ff&&!Ff.nodeType&&Ff,Tme=Eme&&Eme.exports===Cme,Rme=Tme&&bme.process,Pme=function(){try{return Rme&&Rme.binding&&Rme.binding("util")}catch{}}(),$me=Pme&&Pme.isTypedArray;function Dme(n0e,f0e){for(var m0e=-1,w0e=n0e==null?0:n0e.length;++m0e<w0e;)if(f0e(n0e[m0e],m0e,n0e))return!0;return!1}function Mme(n0e){var f0e=-1,m0e=Array(n0e.size);return n0e.forEach(function(w0e,j0e){m0e[++f0e]=[j0e,w0e]}),m0e}function Nme(n0e){var f0e=-1,m0e=Array(n0e.size);return n0e.forEach(function(w0e){m0e[++f0e]=w0e}),m0e}var Ime=Array.prototype,wme=Function.prototype,Ome=Object.prototype,Ame=_me["__core-js_shared__"],Fme=wme.toString,Bme=Ome.hasOwnProperty,kme=function(){var n0e=/[^.]+$/.exec(Ame&&Ame.keys&&Ame.keys.IE_PROTO||"");return n0e?"Symbol(src)_1."+n0e:""}(),Lme=Ome.toString,Hme=RegExp("^"+Fme.call(Bme).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wme=Tme?_me.Buffer:void 0,zme=_me.Symbol,Vme=_me.Uint8Array,Xme=Ome.propertyIsEnumerable,e0e=Ime.splice,Ume=zme?zme.toStringTag:void 0,Jme=Object.getOwnPropertySymbols,s0e=Wme?Wme.isBuffer:void 0,d0e=function(n0e,f0e){return function(m0e){return n0e(f0e(m0e))}}(Object.keys,Object),Zme=J0e(_me,"DataView"),Qme=J0e(_me,"Map"),a0e=J0e(_me,"Promise"),t0e=J0e(_me,"Set"),o0e=J0e(_me,"WeakMap"),g0e=J0e(Object,"create"),u0e=yye(Zme),h0e=yye(Qme),E0e=yye(a0e),P0e=yye(t0e),y0e=yye(o0e),$0e=zme?zme.prototype:void 0,C0e=$0e?$0e.valueOf:void 0;function z0e(n0e){var f0e=-1,m0e=n0e==null?0:n0e.length;for(this.clear();++f0e<m0e;){var w0e=n0e[f0e];this.set(w0e[0],w0e[1])}}function D0e(n0e){var f0e=-1,m0e=n0e==null?0:n0e.length;for(this.clear();++f0e<m0e;){var w0e=n0e[f0e];this.set(w0e[0],w0e[1])}}function O0e(n0e){var f0e=-1,m0e=n0e==null?0:n0e.length;for(this.clear();++f0e<m0e;){var w0e=n0e[f0e];this.set(w0e[0],w0e[1])}}function b0e(n0e){var f0e=-1,m0e=n0e==null?0:n0e.length;for(this.__data__=new O0e;++f0e<m0e;)this.add(n0e[f0e])}function k0e(n0e){var f0e=this.__data__=new D0e(n0e);this.size=f0e.size}function T0e(n0e,f0e){var m0e=G0e(n0e),w0e=!m0e&&sye(n0e),j0e=!m0e&&!w0e&&hye(n0e),_0e=!m0e&&!w0e&&!j0e&&R0e(n0e),Yme=m0e||w0e||j0e||_0e,l0e=Yme?function(Z0e,lye){for(var Tye=-1,xye=Array(Z0e);++Tye<Z0e;)xye[Tye]=lye(Tye);return xye}(n0e.length,String):[],S0e=l0e.length;for(var I0e in n0e)!Bme.call(n0e,I0e)||Yme&&(I0e=="length"||j0e&&(I0e=="offset"||I0e=="parent")||_0e&&(I0e=="buffer"||I0e=="byteLength"||I0e=="byteOffset")||cye(I0e,S0e))||l0e.push(I0e);return l0e}function L0e(n0e,f0e){for(var m0e=n0e.length;m0e--;)if(W0e(n0e[m0e][0],f0e))return m0e;return-1}function Y0e(n0e){return n0e==null?n0e===void 0?"[object Undefined]":"[object Null]":Ume&&Ume in Object(n0e)?function(f0e){var m0e=Bme.call(f0e,Ume),w0e=f0e[Ume];try{f0e[Ume]=void 0;var j0e=!0}catch{}var _0e=Lme.call(f0e);return j0e&&(m0e?f0e[Ume]=w0e:delete f0e[Ume]),_0e}(n0e):function(f0e){return Lme.call(f0e)}(n0e)}function mye(n0e){return r0e(n0e)&&Y0e(n0e)==B_}function Q0e(n0e,f0e,m0e,w0e,j0e){return n0e===f0e||(n0e==null||f0e==null||!r0e(n0e)&&!r0e(f0e)?n0e!=n0e&&f0e!=f0e:function(_0e,Yme,l0e,S0e,I0e,Z0e){var lye=G0e(_0e),Tye=G0e(Yme),xye=lye?$P:F0e(_0e),Dye=Tye?$P:F0e(Yme),Lye=(xye=xye==B_?ome:xye)==ome,lbe=(Dye=Dye==B_?ome:Dye)==ome,Uye=xye==Dye;if(Uye&&hye(_0e)){if(!hye(Yme))return!1;lye=!0,Lye=!1}if(Uye&&!Lye)return Z0e||(Z0e=new k0e),lye||R0e(_0e)?V0e(_0e,Yme,l0e,S0e,I0e,Z0e):function(Rye,Aye,Oye,fye,gye,Hye,Xye){switch(Oye){case pme:if(Rye.byteLength!=Aye.byteLength||Rye.byteOffset!=Aye.byteOffset)return!1;Rye=Rye.buffer,Aye=Aye.buffer;case hme:return!(Rye.byteLength!=Aye.byteLength||!Hye(new Vme(Rye),new Vme(Aye)));case zP:case eme:case ame:return W0e(+Rye,+Aye);case tme:return Rye.name==Aye.name&&Rye.message==Aye.message;case cme:case sme:return Rye==Aye+"";case rme:var Wye=Mme;case ume:var nbe=1&fye;if(Wye||(Wye=Nme),Rye.size!=Aye.size&&!nbe)return!1;var bye=Xye.get(Rye);if(bye)return bye==Aye;fye|=2,Xye.set(Rye,Aye);var dye=V0e(Wye(Rye),Wye(Aye),fye,gye,Hye,Xye);return Xye.delete(Rye),dye;case fme:if(C0e)return C0e.call(Rye)==C0e.call(Aye)}return!1}(_0e,Yme,xye,l0e,S0e,I0e,Z0e);if(!(1&l0e)){var Qye=Lye&&Bme.call(_0e,"__wrapped__"),Sye=lbe&&Bme.call(Yme,"__wrapped__");if(Qye||Sye){var jye=Qye?_0e.value():_0e,qye=Sye?Yme.value():Yme;return Z0e||(Z0e=new k0e),I0e(jye,qye,l0e,S0e,Z0e)}}return Uye?(Z0e||(Z0e=new k0e),function(Rye,Aye,Oye,fye,gye,Hye){var Xye=1&Oye,Wye=X0e(Rye),nbe=Wye.length,bye=X0e(Aye).length;if(nbe!=bye&&!Xye)return!1;for(var dye=nbe;dye--;){var Yye=Wye[dye];if(!(Xye?Yye in Aye:Bme.call(Aye,Yye)))return!1}var ube=Hye.get(Rye);if(ube&&Hye.get(Aye))return ube==Aye;var sbe=!0;Hye.set(Rye,Aye),Hye.set(Aye,Rye);for(var ybe=Xye;++dye<nbe;){var Pye=Rye[Yye=Wye[dye]],pye=Aye[Yye];if(fye)var kye=Xye?fye(pye,Pye,Yye,Aye,Rye,Hye):fye(Pye,pye,Yye,Rye,Aye,Hye);if(!(kye===void 0?Pye===pye||gye(Pye,pye,Oye,fye,Hye):kye)){sbe=!1;break}ybe||(ybe=Yye=="constructor")}if(sbe&&!ybe){var ebe=Rye.constructor,pbe=Aye.constructor;ebe==pbe||!("constructor"in Rye)||!("constructor"in Aye)||typeof ebe=="function"&&ebe instanceof ebe&&typeof pbe=="function"&&pbe instanceof pbe||(sbe=!1)}return Hye.delete(Rye),Hye.delete(Aye),sbe}(_0e,Yme,l0e,S0e,I0e,Z0e)):!1}(n0e,f0e,m0e,w0e,Q0e,j0e))}function U0e(n0e){return!(!Vye(n0e)||function(f0e){return!!kme&&kme in f0e}(n0e))&&(wye(n0e)?Hme:gme).test(yye(n0e))}function q0e(n0e){if(m0e=(f0e=n0e)&&f0e.constructor,w0e=typeof m0e=="function"&&m0e.prototype||Ome,f0e!==w0e)return d0e(n0e);var f0e,m0e,w0e,j0e=[];for(var _0e in Object(n0e))Bme.call(n0e,_0e)&&_0e!="constructor"&&j0e.push(_0e);return j0e}function V0e(n0e,f0e,m0e,w0e,j0e,_0e){var Yme=1&m0e,l0e=n0e.length,S0e=f0e.length;if(l0e!=S0e&&!(Yme&&S0e>l0e))return!1;var I0e=_0e.get(n0e);if(I0e&&_0e.get(f0e))return I0e==f0e;var Z0e=-1,lye=!0,Tye=2&m0e?new b0e:void 0;for(_0e.set(n0e,f0e),_0e.set(f0e,n0e);++Z0e<l0e;){var xye=n0e[Z0e],Dye=f0e[Z0e];if(w0e)var Lye=Yme?w0e(Dye,xye,Z0e,f0e,n0e,_0e):w0e(xye,Dye,Z0e,n0e,f0e,_0e);if(Lye!==void 0){if(Lye)continue;lye=!1;break}if(Tye){if(!Dme(f0e,function(lbe,Uye){if(Qye=Uye,!Tye.has(Qye)&&(xye===lbe||j0e(xye,lbe,m0e,w0e,_0e)))return Tye.push(Uye);var Qye})){lye=!1;break}}else if(xye!==Dye&&!j0e(xye,Dye,m0e,w0e,_0e)){lye=!1;break}}return _0e.delete(n0e),_0e.delete(f0e),lye}function X0e(n0e){return function(f0e,m0e,w0e){var j0e=m0e(f0e);return G0e(f0e)?j0e:function(_0e,Yme){for(var l0e=-1,S0e=Yme.length,I0e=_0e.length;++l0e<S0e;)_0e[I0e+l0e]=Yme[l0e];return _0e}(j0e,w0e(f0e))}(n0e,A0e,aye)}function M0e(n0e,f0e){var m0e,w0e,j0e=n0e.__data__;return((w0e=typeof(m0e=f0e))=="string"||w0e=="number"||w0e=="symbol"||w0e=="boolean"?m0e!=="__proto__":m0e===null)?j0e[typeof f0e=="string"?"string":"hash"]:j0e.map}function J0e(n0e,f0e){var m0e=function(w0e,j0e){return w0e==null?void 0:w0e[j0e]}(n0e,f0e);return U0e(m0e)?m0e:void 0}z0e.prototype.clear=function(){this.__data__=g0e?g0e(null):{},this.size=0},z0e.prototype.delete=function(n0e){var f0e=this.has(n0e)&&delete this.__data__[n0e];return this.size-=f0e?1:0,f0e},z0e.prototype.get=function(n0e){var f0e=this.__data__;if(g0e){var m0e=f0e[n0e];return m0e===x_?void 0:m0e}return Bme.call(f0e,n0e)?f0e[n0e]:void 0},z0e.prototype.has=function(n0e){var f0e=this.__data__;return g0e?f0e[n0e]!==void 0:Bme.call(f0e,n0e)},z0e.prototype.set=function(n0e,f0e){var m0e=this.__data__;return this.size+=this.has(n0e)?0:1,m0e[n0e]=g0e&&f0e===void 0?x_:f0e,this},D0e.prototype.clear=function(){this.__data__=[],this.size=0},D0e.prototype.delete=function(n0e){var f0e=this.__data__,m0e=L0e(f0e,n0e);return!(m0e<0)&&(m0e==f0e.length-1?f0e.pop():e0e.call(f0e,m0e,1),--this.size,!0)},D0e.prototype.get=function(n0e){var f0e=this.__data__,m0e=L0e(f0e,n0e);return m0e<0?void 0:f0e[m0e][1]},D0e.prototype.has=function(n0e){return L0e(this.__data__,n0e)>-1},D0e.prototype.set=function(n0e,f0e){var m0e=this.__data__,w0e=L0e(m0e,n0e);return w0e<0?(++this.size,m0e.push([n0e,f0e])):m0e[w0e][1]=f0e,this},O0e.prototype.clear=function(){this.size=0,this.__data__={hash:new z0e,map:new(Qme||D0e),string:new z0e}},O0e.prototype.delete=function(n0e){var f0e=M0e(this,n0e).delete(n0e);return this.size-=f0e?1:0,f0e},O0e.prototype.get=function(n0e){return M0e(this,n0e).get(n0e)},O0e.prototype.has=function(n0e){return M0e(this,n0e).has(n0e)},O0e.prototype.set=function(n0e,f0e){var m0e=M0e(this,n0e),w0e=m0e.size;return m0e.set(n0e,f0e),this.size+=m0e.size==w0e?0:1,this},b0e.prototype.add=b0e.prototype.push=function(n0e){return this.__data__.set(n0e,x_),this},b0e.prototype.has=function(n0e){return this.__data__.has(n0e)},k0e.prototype.clear=function(){this.__data__=new D0e,this.size=0},k0e.prototype.delete=function(n0e){var f0e=this.__data__,m0e=f0e.delete(n0e);return this.size=f0e.size,m0e},k0e.prototype.get=function(n0e){return this.__data__.get(n0e)},k0e.prototype.has=function(n0e){return this.__data__.has(n0e)},k0e.prototype.set=function(n0e,f0e){var m0e=this.__data__;if(m0e instanceof D0e){var w0e=m0e.__data__;if(!Qme||w0e.length<199)return w0e.push([n0e,f0e]),this.size=++m0e.size,this;m0e=this.__data__=new O0e(w0e)}return m0e.set(n0e,f0e),this.size=m0e.size,this};var aye=Jme?function(n0e){return n0e==null?[]:(n0e=Object(n0e),function(f0e,m0e){for(var w0e=-1,j0e=f0e==null?0:f0e.length,_0e=0,Yme=[];++w0e<j0e;){var l0e=f0e[w0e];m0e(l0e,w0e,f0e)&&(Yme[_0e++]=l0e)}return Yme}(Jme(n0e),function(f0e){return Xme.call(n0e,f0e)}))}:function(){return[]},F0e=Y0e;function cye(n0e,f0e){return!!(f0e=f0e??$_)&&(typeof n0e=="number"||yme.test(n0e))&&n0e>-1&&n0e%1==0&&n0e<f0e}function yye(n0e){if(n0e!=null){try{return Fme.call(n0e)}catch{}try{return n0e+""}catch{}}return""}function W0e(n0e,f0e){return n0e===f0e||n0e!=n0e&&f0e!=f0e}(Zme&&F0e(new Zme(new ArrayBuffer(1)))!=pme||Qme&&F0e(new Qme)!=rme||a0e&&F0e(a0e.resolve())!=ime||t0e&&F0e(new t0e)!=ume||o0e&&F0e(new o0e)!=lme)&&(F0e=function(n0e){var f0e=Y0e(n0e),m0e=f0e==ome?n0e.constructor:void 0,w0e=m0e?yye(m0e):"";if(w0e)switch(w0e){case u0e:return pme;case h0e:return rme;case E0e:return ime;case P0e:return ume;case y0e:return lme}return f0e});var sye=mye(function(){return arguments}())?mye:function(n0e){return r0e(n0e)&&Bme.call(n0e,"callee")&&!Xme.call(n0e,"callee")},G0e=Array.isArray,hye=s0e||function(){return!1};function wye(n0e){if(!Vye(n0e))return!1;var f0e=Y0e(n0e);return f0e==nme||f0e=="[object GeneratorFunction]"||f0e=="[object AsyncFunction]"||f0e=="[object Proxy]"}function Eye(n0e){return typeof n0e=="number"&&n0e>-1&&n0e%1==0&&n0e<=$_}function Vye(n0e){var f0e=typeof n0e;return n0e!=null&&(f0e=="object"||f0e=="function")}function r0e(n0e){return n0e!=null&&typeof n0e=="object"}var R0e=$me?function(n0e){return function(f0e){return n0e(f0e)}}($me):function(n0e){return r0e(n0e)&&Eye(n0e.length)&&!!mme[Y0e(n0e)]};function A0e(n0e){return(f0e=n0e)!=null&&Eye(f0e.length)&&!wye(f0e)?T0e(n0e):q0e(n0e);var f0e}Ff.exports=function(n0e,f0e){return Q0e(n0e,f0e)}});MP("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),MP("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var y0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function m0(Ff){var kh={exports:{}};return Ff(kh,kh.exports),kh.exports}var b0,w0,E0=function(Ff){return Ff&&Ff.Math==Math&&Ff},D0=E0(typeof globalThis=="object"&&globalThis)||E0(typeof window=="object"&&window)||E0(typeof self=="object"&&self)||E0(typeof y0=="object"&&y0)||function(){return this}()||Function("return this")(),S0=function(Ff){try{return!!Ff()}catch{return!0}},x0=!S0(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),C0=Function.prototype.call,A0=C0.bind?C0.bind(C0):function(){return C0.apply(C0,arguments)},O0={}.propertyIsEnumerable,k0=Object.getOwnPropertyDescriptor,B0={f:k0&&!O0.call({1:2},1)?function(Ff){var kh=k0(this,Ff);return!!kh&&kh.enumerable}:O0},F0=function(Ff,kh){return{enumerable:!(1&Ff),configurable:!(2&Ff),writable:!(4&Ff),value:kh}},T0=Function.prototype,_0=T0.bind,P0=T0.call,j0=_0&&_0.bind(P0),N0=_0?function(Ff){return Ff&&j0(P0,Ff)}:function(Ff){return Ff&&function(){return P0.apply(Ff,arguments)}},I0=N0({}.toString),L0=N0("".slice),R0=function(Ff){return L0(I0(Ff),8,-1)},M0=D0.Object,z0=N0("".split),$0=S0(function(){return!M0("z").propertyIsEnumerable(0)})?function(Ff){return R0(Ff)=="String"?z0(Ff,""):M0(Ff)}:M0,H0=D0.TypeError,V0=function(Ff){if(Ff==null)throw H0("Can't call method on "+Ff);return Ff},U0=function(Ff){return $0(V0(Ff))},W0=function(Ff){return typeof Ff=="function"},G0=function(Ff){return typeof Ff=="object"?Ff!==null:W0(Ff)},q0=function(Ff){return W0(Ff)?Ff:void 0},K0=function(Ff,kh){return arguments.length<2?q0(D0[Ff]):D0[Ff]&&D0[Ff][kh]},Y0=N0({}.isPrototypeOf),X0=K0("navigator","userAgent")||"",Z0=D0.process,J0=D0.Deno,Q0=Z0&&Z0.versions||J0&&J0.version,e1=Q0&&Q0.v8;e1&&(w0=(b0=e1.split("."))[0]>0&&b0[0]<4?1:+(b0[0]+b0[1])),!w0&&X0&&(!(b0=X0.match(/Edge\/(\d+)/))||b0[1]>=74)&&(b0=X0.match(/Chrome\/(\d+)/))&&(w0=+b0[1]);var t1=w0,n1=!!Object.getOwnPropertySymbols&&!S0(function(){var Ff=Symbol();return!String(Ff)||!(Object(Ff)instanceof Symbol)||!Symbol.sham&&t1&&t1<41}),r1=n1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",o1=D0.Object,i1=r1?function(Ff){return typeof Ff=="symbol"}:function(Ff){var kh=K0("Symbol");return W0(kh)&&Y0(kh.prototype,o1(Ff))},a1=D0.String,u1=function(Ff){try{return a1(Ff)}catch{return"Object"}},s1=D0.TypeError,l1=function(Ff){if(W0(Ff))return Ff;throw s1(u1(Ff)+" is not a function")},c1=function(Ff,kh){var x_=Ff[kh];return x_==null?void 0:l1(x_)},f1=D0.TypeError,d1=Object.defineProperty,p1=function(Ff,kh){try{d1(D0,Ff,{value:kh,configurable:!0,writable:!0})}catch{D0[Ff]=kh}return kh},h1=D0["__core-js_shared__"]||p1("__core-js_shared__",{}),g1=m0(function(Ff){(Ff.exports=function(kh,x_){return h1[kh]||(h1[kh]=x_!==void 0?x_:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),v1=D0.Object,y1=function(Ff){return v1(V0(Ff))},m1=N0({}.hasOwnProperty),b1=Object.hasOwn||function(Ff,kh){return m1(y1(Ff),kh)},w1=0,E1=Math.random(),D1=N0(1 .toString),S1=function(Ff){return"Symbol("+(Ff===void 0?"":Ff)+")_"+D1(++w1+E1,36)},x1=g1("wks"),C1=D0.Symbol,A1=C1&&C1.for,O1=r1?C1:C1&&C1.withoutSetter||S1,k1=function(Ff){if(!b1(x1,Ff)||!n1&&typeof x1[Ff]!="string"){var kh="Symbol."+Ff;n1&&b1(C1,Ff)?x1[Ff]=C1[Ff]:x1[Ff]=r1&&A1?A1(kh):O1(kh)}return x1[Ff]},B1=D0.TypeError,F1=k1("toPrimitive"),T1=function(Ff){var kh=function(x_,$_){if(!G0(x_)||i1(x_))return x_;var B_,$P=c1(x_,F1);if($P){if(B_=A0($P,x_,$_),!G0(B_)||i1(B_))return B_;throw B1("Can't convert object to primitive value")}return function(zP,eme){var tme,nme;if(W0(tme=zP.toString)&&!G0(nme=A0(tme,zP))||W0(tme=zP.valueOf)&&!G0(nme=A0(tme,zP)))return nme;throw f1("Can't convert object to primitive value")}(x_)}(Ff,"string");return i1(kh)?kh:kh+""},_1=D0.document,P1=G0(_1)&&G0(_1.createElement),j1=function(Ff){return P1?_1.createElement(Ff):{}},N1=!x0&&!S0(function(){return Object.defineProperty(j1("div"),"a",{get:function(){return 7}}).a!=7}),I1=Object.getOwnPropertyDescriptor,L1={f:x0?I1:function(Ff,kh){if(Ff=U0(Ff),kh=T1(kh),N1)try{return I1(Ff,kh)}catch{}if(b1(Ff,kh))return F0(!A0(B0.f,Ff,kh),Ff[kh])}},R1=D0.String,M1=D0.TypeError,z1=function(Ff){if(G0(Ff))return Ff;throw M1(R1(Ff)+" is not an object")},$1=D0.TypeError,H1=Object.defineProperty,V1={f:x0?H1:function(Ff,kh,x_){if(z1(Ff),kh=T1(kh),z1(x_),N1)try{return H1(Ff,kh,x_)}catch{}if("get"in x_||"set"in x_)throw $1("Accessors not supported");return"value"in x_&&(Ff[kh]=x_.value),Ff}},U1=x0?function(Ff,kh,x_){return V1.f(Ff,kh,F0(1,x_))}:function(Ff,kh,x_){return Ff[kh]=x_,Ff},W1=N0(Function.toString);W0(h1.inspectSource)||(h1.inspectSource=function(Ff){return W1(Ff)});var G1,q1,K1,Y1=h1.inspectSource,X1=D0.WeakMap,Z1=W0(X1)&&/native code/.test(Y1(X1)),J1=g1("keys"),Q1=function(Ff){return J1[Ff]||(J1[Ff]=S1(Ff))},e2={},t2=D0.TypeError,n2=D0.WeakMap;if(Z1||h1.state){var r2=h1.state||(h1.state=new n2),o2=N0(r2.get),i2=N0(r2.has),a2=N0(r2.set);G1=function(Ff,kh){if(i2(r2,Ff))throw new t2("Object already initialized");return kh.facade=Ff,a2(r2,Ff,kh),kh},q1=function(Ff){return o2(r2,Ff)||{}},K1=function(Ff){return i2(r2,Ff)}}else{var u2=Q1("state");e2[u2]=!0,G1=function(Ff,kh){if(b1(Ff,u2))throw new t2("Object already initialized");return kh.facade=Ff,U1(Ff,u2,kh),kh},q1=function(Ff){return b1(Ff,u2)?Ff[u2]:{}},K1=function(Ff){return b1(Ff,u2)}}var s2={set:G1,get:q1,has:K1,enforce:function(Ff){return K1(Ff)?q1(Ff):G1(Ff,{})},getterFor:function(Ff){return function(kh){var x_;if(!G0(kh)||(x_=q1(kh)).type!==Ff)throw t2("Incompatible receiver, "+Ff+" required");return x_}}},l2=Function.prototype,c2=x0&&Object.getOwnPropertyDescriptor,f2=b1(l2,"name"),d2={EXISTS:f2,PROPER:f2&&(function(){}).name==="something",CONFIGURABLE:f2&&(!x0||x0&&c2(l2,"name").configurable)},p2=m0(function(Ff){var kh=d2.CONFIGURABLE,x_=s2.get,$_=s2.enforce,B_=String(String).split("String");(Ff.exports=function($P,zP,eme,tme){var nme,rme=!!tme&&!!tme.unsafe,ame=!!tme&&!!tme.enumerable,ome=!!tme&&!!tme.noTargetGet,ime=tme&&tme.name!==void 0?tme.name:zP;W0(eme)&&(String(ime).slice(0,7)==="Symbol("&&(ime="["+String(ime).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!b1(eme,"name")||kh&&eme.name!==ime)&&U1(eme,"name",ime),(nme=$_(eme)).source||(nme.source=B_.join(typeof ime=="string"?ime:""))),$P!==D0?(rme?!ome&&$P[zP]&&(ame=!0):delete $P[zP],ame?$P[zP]=eme:U1($P,zP,eme)):ame?$P[zP]=eme:p1(zP,eme)})(Function.prototype,"toString",function(){return W0(this)&&x_(this).source||Y1(this)})}),h2=Math.ceil,g2=Math.floor,v2=function(Ff){var kh=+Ff;return kh!=kh||kh===0?0:(kh>0?g2:h2)(kh)},y2=Math.max,m2=Math.min,b2=function(Ff,kh){var x_=v2(Ff);return x_<0?y2(x_+kh,0):m2(x_,kh)},w2=Math.min,E2=function(Ff){return Ff>0?w2(v2(Ff),9007199254740991):0},D2=function(Ff){return E2(Ff.length)},S2=function(Ff){return function(kh,x_,$_){var B_,$P=U0(kh),zP=D2($P),eme=b2($_,zP);if(Ff&&x_!=x_){for(;zP>eme;)if((B_=$P[eme++])!=B_)return!0}else for(;zP>eme;eme++)if((Ff||eme in $P)&&$P[eme]===x_)return Ff||eme||0;return!Ff&&-1}},x2=S2(!1),C2=N0([].push),A2=function(Ff,kh){var x_,$_=U0(Ff),B_=0,$P=[];for(x_ in $_)!b1(e2,x_)&&b1($_,x_)&&C2($P,x_);for(;kh.length>B_;)b1($_,x_=kh[B_++])&&(~x2($P,x_)||C2($P,x_));return $P},O2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],k2=O2.concat("length","prototype"),B2={f:Object.getOwnPropertyNames||function(Ff){return A2(Ff,k2)}},F2={f:Object.getOwnPropertySymbols},T2=N0([].concat),_2=K0("Reflect","ownKeys")||function(Ff){var kh=B2.f(z1(Ff)),x_=F2.f;return x_?T2(kh,x_(Ff)):kh},P2=function(Ff,kh){for(var x_=_2(kh),$_=V1.f,B_=L1.f,$P=0;$P<x_.length;$P++){var zP=x_[$P];b1(Ff,zP)||$_(Ff,zP,B_(kh,zP))}},j2=/#|\.prototype\./,N2=function(Ff,kh){var x_=L2[I2(Ff)];return x_==M2||x_!=R2&&(W0(kh)?S0(kh):!!kh)},I2=N2.normalize=function(Ff){return String(Ff).replace(j2,".").toLowerCase()},L2=N2.data={},R2=N2.NATIVE="N",M2=N2.POLYFILL="P",z2=N2,$2=L1.f,H2=function(Ff,kh){var x_,$_,B_,$P,zP,eme=Ff.target,tme=Ff.global,nme=Ff.stat;if(x_=tme?D0:nme?D0[eme]||p1(eme,{}):(D0[eme]||{}).prototype)for($_ in kh){if($P=kh[$_],B_=Ff.noTargetGet?(zP=$2(x_,$_))&&zP.value:x_[$_],!z2(tme?$_:eme+(nme?".":"#")+$_,Ff.forced)&&B_!==void 0){if(typeof $P==typeof B_)continue;P2($P,B_)}(Ff.sham||B_&&B_.sham)&&U1($P,"sham",!0),p2(x_,$_,$P,Ff)}},V2={};V2[k1("toStringTag")]="z";var U2=String(V2)==="[object z]",W2=k1("toStringTag"),G2=D0.Object,q2=R0(function(){return arguments}())=="Arguments",K2=U2?R0:function(Ff){var kh,x_,$_;return Ff===void 0?"Undefined":Ff===null?"Null":typeof(x_=function(B_,$P){try{return B_[$P]}catch{}}(kh=G2(Ff),W2))=="string"?x_:q2?R0(kh):($_=R0(kh))=="Object"&&W0(kh.callee)?"Arguments":$_},Y2=D0.String,X2=function(Ff){if(K2(Ff)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Y2(Ff)},Z2=/"/g,J2=N0("".replace);H2({target:"String",proto:!0,forced:S0(function(){var Ff="".anchor('"');return Ff!==Ff.toLowerCase()||Ff.split('"').length>3})},{anchor:function(Ff){return kh=Ff,x_=X2(V0(this)),$_="<a",($_+=' name="'+J2(X2(kh),Z2,"&quot;")+'"')+">"+x_+"</a>";var kh,x_,$_}});var Q2,e4=function(){var Ff=z1(this),kh="";return Ff.global&&(kh+="g"),Ff.ignoreCase&&(kh+="i"),Ff.multiline&&(kh+="m"),Ff.dotAll&&(kh+="s"),Ff.unicode&&(kh+="u"),Ff.sticky&&(kh+="y"),kh},t4=D0.RegExp,n4=S0(function(){var Ff=t4("a","y");return Ff.lastIndex=2,Ff.exec("abcd")!=null}),r4=n4||S0(function(){return!t4("a","y").sticky}),o4={BROKEN_CARET:n4||S0(function(){var Ff=t4("^r","gy");return Ff.lastIndex=2,Ff.exec("str")!=null}),MISSED_STICKY:r4,UNSUPPORTED_Y:n4},i4=Object.keys||function(Ff){return A2(Ff,O2)},a4=x0?Object.defineProperties:function(Ff,kh){z1(Ff);for(var x_,$_=U0(kh),B_=i4(kh),$P=B_.length,zP=0;$P>zP;)V1.f(Ff,x_=B_[zP++],$_[x_]);return Ff},u4=K0("document","documentElement"),s4=Q1("IE_PROTO"),l4=function(){},c4=function(Ff){return"<script>"+Ff+"<\/script>"},f4=function(Ff){Ff.write(c4("")),Ff.close();var kh=Ff.parentWindow.Object;return Ff=null,kh},d4=function(){try{Q2=new ActiveXObject("htmlfile")}catch{}var Ff,kh;d4=typeof document<"u"?document.domain&&Q2?f4(Q2):((kh=j1("iframe")).style.display="none",u4.appendChild(kh),kh.src="javascript:",(Ff=kh.contentWindow.document).open(),Ff.write(c4("document.F=Object")),Ff.close(),Ff.F):f4(Q2);for(var x_=O2.length;x_--;)delete d4.prototype[O2[x_]];return d4()};e2[s4]=!0;var p4,h4,g4=Object.create||function(Ff,kh){var x_;return Ff!==null?(l4.prototype=z1(Ff),x_=new l4,l4.prototype=null,x_[s4]=Ff):x_=d4(),kh===void 0?x_:a4(x_,kh)},v4=D0.RegExp,y4=S0(function(){var Ff=v4(".","s");return!(Ff.dotAll&&Ff.exec(`
558
+ `)&&(ume="(?: "+ume+")",fme=" "+fme,sme++),x_=new RegExp("^(?:"+ume+")",cme)),CQ&&(x_=new RegExp("^"+ume+"$(?!\\s)",cme)),SQ&&($_=tme.lastIndex),B_=nY(yQ,ime?x_:tme,fme),ime?B_?(B_.input=DQ(B_.input,sme),B_[0]=DQ(B_[0],sme),B_.index=tme.lastIndex,tme.lastIndex+=B_[0].length):tme.lastIndex=0:SQ&&B_&&(tme.lastIndex=tme.global?B_.index+B_[0].length:$_),CQ&&B_&&B_.length>1&&nY(vQ,B_[0],x_,function(){for($P=1;$P<arguments.length-2;$P++)arguments[$P]===void 0&&(B_[$P]=void 0)}),B_&&ome)for(B_.groups=zP=UY(null),$P=0;$P<ome.length;$P++)zP[(eme=ome[$P])[0]]=B_[eme[1]];return B_});var AQ=mQ;MX({target:"RegExp",proto:!0,forced:/./.exec!==AQ},{exec:AQ});var OQ=function(){function Ff(){this.type="list-item",this.tag="button"}return Ff.prototype.getListNode=function(kh){var x_=this.type;return QO.getSelectedNodeByType(kh,x_)},Ff.prototype.getValue=function(kh){return""},Ff.prototype.isActive=function(kh){var x_=this.getListNode(kh);if(x_==null)return!1;var $_=x_.ordered;return($_!==void 0&&$_)===this.ordered},Ff.prototype.isDisabled=function(kh){return kh.selection==null||!!QO.getSelectedElems(kh).some(function(x_){if(Bf.isVoid(kh,x_)&&Bf.isBlock(kh,x_))return!0;var $_=x_.type;return!!["pre","code","table"].includes($_)||void 0})},Ff.prototype.exec=function(kh,x_){this.isActive(kh)?md.setNodes(kh,{type:"paragraph",ordered:void 0,level:void 0}):md.setNodes(kh,{type:"list-item",ordered:this.ordered,indent:void 0})},Ff}(),kQ='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',BQ='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',FQ=function(Ff){function kh(){var x_=Ff!==null&&Ff.apply(this,arguments)||this;return x_.ordered=!1,x_.title=HP("listModule.unOrderedList"),x_.iconSvg=kQ,x_}return QJ(kh,Ff),kh}(OQ),TQ=function(Ff){function kh(){var x_=Ff!==null&&Ff.apply(this,arguments)||this;return x_.ordered=!0,x_.title=HP("listModule.orderedList"),x_.iconSvg=BQ,x_}return QJ(kh,Ff),kh}(OQ),_Q={key:"bulletedList",factory:function(){return new FQ}},PQ={key:"numberedList",factory:function(){return new TQ}},jQ=[],NQ={type:"list-item",elemToHtml:function(Ff,kh){var x_="",$_="",B_=Ff.ordered,$P=B_!==void 0&&B_?"ol":"ul",zP=function(nme){var rme=XJ.get(nme);if(rme==null)return 0;var ame=nme,ome=ame.type,ime=ame.ordered,cme=ime!==void 0&&ime,ume=ame.level,sme=ume===void 0?0:ume,fme=QO.findPath(rme,nme);if(fme[0]===0)return sme+1;var lme=Mf.previous(fme),hme=Bf.node(rme,lme);if(!hme)return 0;var pme=tQ(hme,1)[0];if(QO.getNodeType(pme)!==ome)return sme+1;var gme=pme,yme=gme.ordered,mme=yme!==void 0&&yme,bme=gme.level,Sme=bme===void 0?0:bme;return Sme<sme?sme-Sme:Sme>sme?0:Sme===sme?mme===cme?0:1:0}(Ff);if(zP>0)for(var eme=0;eme<zP;eme++)x_+="<"+$P+">",jQ.push($P);var tme=function(nme){var rme=XJ.get(nme);if(rme==null)return 0;var ame=nme,ome=ame.type,ime=ame.ordered,cme=ime!==void 0&&ime,ume=ame.level,sme=ume===void 0?0:ume,fme=QO.findPath(rme,nme);if(fme[0]===rme.children.length-1)return sme+1;var lme=Mf.next(fme),hme=Bf.node(rme,lme);if(!hme)return 0;var pme=tQ(hme,1)[0];if(QO.getNodeType(pme)!==ome)return sme+1;var gme=pme,yme=gme.ordered,mme=yme!==void 0&&yme,bme=gme.level,Sme=bme===void 0?0:bme;return Sme<sme?sme-Sme:Sme>sme?0:Sme===sme?mme===cme?0:1:0}(Ff);if(tme>0)for(eme=0;eme<tme;eme++)$_+="</"+jQ.pop()+">";return{html:"<li>"+kh+"</li>",prefix:x_,suffix:$_}}},IQ=WK("species"),LQ=bJ.filter,RQ=RK>=51||!uK(function(){var Ff=[];return(Ff.constructor={})[IQ]=function(){return{foo:1}},Ff.filter(Boolean).foo!==1});MX({target:"Array",proto:!0,forced:!RQ},{filter:function(Ff){return LQ(this,Ff,arguments.length>1?arguments[1]:void 0)}});var MQ=Function.prototype,zQ=MQ.apply,$Q=MQ.bind,HQ=MQ.call,VQ=typeof Reflect=="object"&&Reflect.apply||($Q?HQ.bind(zQ):function(){return HQ.apply(zQ,arguments)}),UQ=(WK("species"),RegExp.prototype),WQ=AZ.charAt,GQ=function(Ff,kh,x_){return kh+(x_?WQ(Ff,kh).length:1)},qQ=Math.floor,KQ=aK("".charAt),YQ=aK("".replace),XQ=aK("".slice),ZQ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,JQ=/\$([$&'`]|\d{1,2})/g,QQ=function(Ff,kh,x_,$_,B_,$P){var zP=x_+Ff.length,eme=$_.length,tme=JQ;return B_!==void 0&&(B_=DK(B_),tme=ZQ),YQ($P,tme,function(nme,rme){var ame;switch(KQ(rme,0)){case"$":return"$";case"&":return Ff;case"`":return XQ(kh,0,x_);case"'":return XQ(kh,zP);case"<":ame=B_[XQ(rme,1,-1)];break;default:var ome=+rme;if(ome===0)return nme;if(ome>eme){var ime=qQ(ome/10);return ime===0?nme:ime<=eme?$_[ime-1]===void 0?KQ(rme,1):$_[ime-1]+KQ(rme,1):nme}ame=$_[ome-1]}return ame===void 0?"":ame})},e0=tK.TypeError,t0=function(Ff,kh){var x_=Ff.exec;if(BK(x_)){var $_=nY(x_,Ff,kh);return $_!==null&&YK($_),$_}if(cK(Ff)==="RegExp")return nY(AQ,Ff,kh);throw e0("RegExp#exec called on incompatible receiver")},n0=WK("replace"),r0=Math.max,o0=Math.min,i0=aK([].concat),a0=aK([].push),u0=aK("".indexOf),s0=aK("".slice),l0="a".replace(/./,"$0")==="$0",c0=!!/./[n0]&&/./[n0]("a","$0")==="";(function(Ff,kh,x_,$_){var B_=WK(Ff),$P=!uK(function(){var nme={};return nme[B_]=function(){return 7},""[Ff](nme)!=7}),zP=$P&&!uK(function(){var nme=!1,rme=/a/;return rme.exec=function(){return nme=!0,null},rme[B_](""),!nme});if(!$P||!zP||x_){var eme=aK(/./[B_]),tme=function(nme,rme,ame){var ome=c0?"$":"$0";return[function(ime,cme){var ume=gK(this),sme=ime==null?void 0:cY(ime,n0);return sme?nY(sme,ime,ume,cme):nY(rme,EZ(ume),ime,cme)},function(ime,cme){var ume=YK(this),sme=EZ(ime);if(typeof cme=="string"&&u0(cme,ome)===-1&&u0(cme,"$<")===-1){var fme=ame(rme,ume,sme,cme);if(fme.done)return fme.value}var lme=BK(cme);lme||(cme=EZ(cme));var hme=ume.global;if(hme){var pme=ume.unicode;ume.lastIndex=0}for(var gme=[];;){var yme=t0(ume,sme);if(yme===null||(a0(gme,yme),!hme))break;EZ(yme[0])===""&&(ume.lastIndex=GQ(sme,CY(ume.lastIndex),pme))}for(var mme,bme="",Sme=0,_me=0;_me<gme.length;_me++){for(var Cme=EZ((yme=gme[_me])[0]),Eme=r0(o0(wY(yme.index),sme.length),0),Tme=[],Rme=1;Rme<yme.length;Rme++)a0(Tme,(mme=yme[Rme])===void 0?mme:String(mme));var Pme=yme.groups;if(lme){var $me=i0([Cme],Tme,Eme,sme);Pme!==void 0&&a0($me,Pme);var Dme=EZ(VQ(cme,void 0,$me))}else Dme=QQ(Cme,sme,Eme,Tme,Pme,cme);Eme>=Sme&&(bme+=s0(sme,Sme,Eme)+Dme,Sme=Eme+Cme.length)}return bme+s0(sme,Sme)}]}(0,""[Ff],function(nme,rme,ame,ome,ime){var cme=aK(nme),ume=rme.exec;return ume===AQ||ume===UQ.exec?$P&&!ime?{done:!0,value:eme(rme,ame,ome)}:{done:!0,value:cme(ame,rme,ome)}:{done:!1}});xX(String.prototype,Ff,tme[0]),xX(UQ,B_,tme[1])}})("replace",0,!!uK(function(){var Ff=/./;return Ff.exec=function(){var kh=[];return kh.groups={a:"7"},kh},"".replace(Ff,"$<a>")!=="7"})||!l0||c0);var f0=tK.TypeError,d0=function(Ff,kh,x_,$_,B_,$P,zP,eme){for(var tme,nme,rme=B_,ame=0,ome=!!zP&&HZ(zP,eme);ame<$_;){if(ame in x_){if(tme=ome?ome(x_[ame],ame,kh):x_[ame],$P>0&&iJ(tme))nme=AY(tme),rme=d0(Ff,kh,tme,nme,rme,$P-1)-1;else{if(rme>=9007199254740991)throw f0("Exceed the acceptable array length");Ff[rme]=tme}rme++}ame++}return rme},p0=d0;function h0(Ff){return Ff.length?Ff[0].tagName.toLowerCase():""}MX({target:"Array",proto:!0},{flat:function(){var Ff=arguments.length?arguments[0]:void 0,kh=DK(this),x_=AY(kh),$_=vJ(kh,0);return $_.length=p0($_,kh,kh,x_,0,Ff===void 0?1:wY(Ff)),$_}}),qY("flat"),MX({global:!0},{globalThis:tK}),ah&&(Mp.fn.append=ah),Vp&&(Mp.fn.attr=Vp),sh&&(Mp.fn.parent=sh);var g0={renderElems:[ZJ],editorPlugin:function(Ff){var kh=Ff.deleteBackward,x_=Ff.handleTab,$_=Ff.normalizeNode,B_=Ff;return B_.deleteBackward=function($P){var zP=B_.selection;if(zP!=null)if(qf.isExpanded(zP))kh($P);else{var eme=QO.getSelectedNodeByType(B_,"list-item");if(eme!=null)if(zP.focus.offset!==0)kh($P);else{var tme=eme.level,nme=tme===void 0?0:tme;nme>0?md.setNodes(B_,{level:nme-1}):md.setNodes(B_,{type:"paragraph",ordered:void 0,level:void 0})}else kh($P)}else kh($P)},B_.handleTab=function(){var $P,zP,eme,tme,nme=B_.selection;if(nme!=null){if(qf.isCollapsed(nme)){var rme=QO.getSelectedNodeByType(B_,"list-item");if(rme==null)return void x_();if(nme.focus.offset===0){var ame=rme.level,ome=ame===void 0?0:ame;return void md.setNodes(B_,{level:ome+1})}}if(qf.isExpanded(nme)){var ime=0,cme=!1;try{for(var ume=eQ(nQ(B_)),sme=ume.next();!sme.done;sme=ume.next()){var fme=tQ(sme.value,1)[0];QO.getNodeType(fme)==="list-item"?ime++:cme=!0}}catch(mme){$P={error:mme}}finally{try{sme&&!sme.done&&(zP=ume.return)&&zP.call(ume)}finally{if($P)throw $P.error}}if(cme||ime<=1)return void x_();try{for(var lme=eQ(nQ(B_)),hme=lme.next();!hme.done;hme=lme.next()){var pme=tQ(hme.value,2),gme=(fme=pme[0],pme[1]),yme=fme.level;ome=yme===void 0?0:yme,md.setNodes(B_,{level:ome+1},{at:gme})}}catch(mme){eme={error:mme}}finally{try{hme&&!hme.done&&(tme=lme.return)&&tme.call(lme)}finally{if(eme)throw eme.error}}}else x_()}else x_()},B_.normalizeNode=function($P){var zP=tQ($P,2),eme=zP[0],tme=zP[1],nme=QO.getNodeType(eme);return nme!=="bulleted-list"&&nme!=="numbered-list"||md.unwrapNodes(B_,{at:tme}),$_([eme,tme])},B_},menus:[_Q,PQ],elemsToHtml:[NQ],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(Ff,kh,x_){return kh.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(Ff,kh,x_){var $_=Mp(Ff);(kh=kh.filter(function(zP){return!!ed.isText(zP)||!!x_.isInline(zP)})).length===0&&(kh=[{text:$_.text().replace(/\s+/gm," ")}]);var B_=function(zP){return h0(zP.parent())==="ol"}($_),$P=function(zP){for(var eme=0,tme=zP.parent(),nme=h0(tme);nme==="ul"||nme==="ol";)nme=h0(tme=tme.parent()),eme++;return eme-1}($_);return{type:"list-item",ordered:B_,level:$P,children:kh}}}]},v0=n(function(Ff,kh){var x_="__lodash_hash_undefined__",$_=9007199254740991,B_="[object Arguments]",$P="[object Array]",zP="[object Boolean]",eme="[object Date]",tme="[object Error]",nme="[object Function]",rme="[object Map]",ame="[object Number]",ome="[object Object]",ime="[object Promise]",cme="[object RegExp]",ume="[object Set]",sme="[object String]",fme="[object Symbol]",lme="[object WeakMap]",hme="[object ArrayBuffer]",pme="[object DataView]",gme=/^\[object .+?Constructor\]$/,yme=/^(?:0|[1-9]\d*)$/,mme={};mme["[object Float32Array]"]=mme["[object Float64Array]"]=mme["[object Int8Array]"]=mme["[object Int16Array]"]=mme["[object Int32Array]"]=mme["[object Uint8Array]"]=mme["[object Uint8ClampedArray]"]=mme["[object Uint16Array]"]=mme["[object Uint32Array]"]=!0,mme[B_]=mme[$P]=mme[hme]=mme[zP]=mme[pme]=mme[eme]=mme[tme]=mme[nme]=mme[rme]=mme[ame]=mme[ome]=mme[cme]=mme[ume]=mme[sme]=mme[lme]=!1;var bme=typeof e=="object"&&e&&e.Object===Object&&e,Sme=typeof self=="object"&&self&&self.Object===Object&&self,_me=bme||Sme||Function("return this")(),Cme=kh&&!kh.nodeType&&kh,Eme=Cme&&Ff&&!Ff.nodeType&&Ff,Tme=Eme&&Eme.exports===Cme,Rme=Tme&&bme.process,Pme=function(){try{return Rme&&Rme.binding&&Rme.binding("util")}catch{}}(),$me=Pme&&Pme.isTypedArray;function Dme(n0e,f0e){for(var m0e=-1,w0e=n0e==null?0:n0e.length;++m0e<w0e;)if(f0e(n0e[m0e],m0e,n0e))return!0;return!1}function Mme(n0e){var f0e=-1,m0e=Array(n0e.size);return n0e.forEach(function(w0e,j0e){m0e[++f0e]=[j0e,w0e]}),m0e}function Nme(n0e){var f0e=-1,m0e=Array(n0e.size);return n0e.forEach(function(w0e){m0e[++f0e]=w0e}),m0e}var Ime=Array.prototype,wme=Function.prototype,Ome=Object.prototype,Ame=_me["__core-js_shared__"],Fme=wme.toString,Bme=Ome.hasOwnProperty,kme=function(){var n0e=/[^.]+$/.exec(Ame&&Ame.keys&&Ame.keys.IE_PROTO||"");return n0e?"Symbol(src)_1."+n0e:""}(),Lme=Ome.toString,Hme=RegExp("^"+Fme.call(Bme).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wme=Tme?_me.Buffer:void 0,zme=_me.Symbol,Vme=_me.Uint8Array,Xme=Ome.propertyIsEnumerable,e0e=Ime.splice,Ume=zme?zme.toStringTag:void 0,Jme=Object.getOwnPropertySymbols,s0e=Wme?Wme.isBuffer:void 0,d0e=function(n0e,f0e){return function(m0e){return n0e(f0e(m0e))}}(Object.keys,Object),Zme=J0e(_me,"DataView"),Qme=J0e(_me,"Map"),a0e=J0e(_me,"Promise"),t0e=J0e(_me,"Set"),o0e=J0e(_me,"WeakMap"),g0e=J0e(Object,"create"),u0e=yye(Zme),h0e=yye(Qme),E0e=yye(a0e),P0e=yye(t0e),y0e=yye(o0e),$0e=zme?zme.prototype:void 0,C0e=$0e?$0e.valueOf:void 0;function z0e(n0e){var f0e=-1,m0e=n0e==null?0:n0e.length;for(this.clear();++f0e<m0e;){var w0e=n0e[f0e];this.set(w0e[0],w0e[1])}}function D0e(n0e){var f0e=-1,m0e=n0e==null?0:n0e.length;for(this.clear();++f0e<m0e;){var w0e=n0e[f0e];this.set(w0e[0],w0e[1])}}function O0e(n0e){var f0e=-1,m0e=n0e==null?0:n0e.length;for(this.clear();++f0e<m0e;){var w0e=n0e[f0e];this.set(w0e[0],w0e[1])}}function b0e(n0e){var f0e=-1,m0e=n0e==null?0:n0e.length;for(this.__data__=new O0e;++f0e<m0e;)this.add(n0e[f0e])}function k0e(n0e){var f0e=this.__data__=new D0e(n0e);this.size=f0e.size}function T0e(n0e,f0e){var m0e=G0e(n0e),w0e=!m0e&&sye(n0e),j0e=!m0e&&!w0e&&hye(n0e),_0e=!m0e&&!w0e&&!j0e&&R0e(n0e),Yme=m0e||w0e||j0e||_0e,l0e=Yme?function(Z0e,lye){for(var Tye=-1,xye=Array(Z0e);++Tye<Z0e;)xye[Tye]=lye(Tye);return xye}(n0e.length,String):[],S0e=l0e.length;for(var I0e in n0e)!Bme.call(n0e,I0e)||Yme&&(I0e=="length"||j0e&&(I0e=="offset"||I0e=="parent")||_0e&&(I0e=="buffer"||I0e=="byteLength"||I0e=="byteOffset")||cye(I0e,S0e))||l0e.push(I0e);return l0e}function L0e(n0e,f0e){for(var m0e=n0e.length;m0e--;)if(W0e(n0e[m0e][0],f0e))return m0e;return-1}function Y0e(n0e){return n0e==null?n0e===void 0?"[object Undefined]":"[object Null]":Ume&&Ume in Object(n0e)?function(f0e){var m0e=Bme.call(f0e,Ume),w0e=f0e[Ume];try{f0e[Ume]=void 0;var j0e=!0}catch{}var _0e=Lme.call(f0e);return j0e&&(m0e?f0e[Ume]=w0e:delete f0e[Ume]),_0e}(n0e):function(f0e){return Lme.call(f0e)}(n0e)}function mye(n0e){return r0e(n0e)&&Y0e(n0e)==B_}function Q0e(n0e,f0e,m0e,w0e,j0e){return n0e===f0e||(n0e==null||f0e==null||!r0e(n0e)&&!r0e(f0e)?n0e!=n0e&&f0e!=f0e:function(_0e,Yme,l0e,S0e,I0e,Z0e){var lye=G0e(_0e),Tye=G0e(Yme),xye=lye?$P:F0e(_0e),Dye=Tye?$P:F0e(Yme),Lye=(xye=xye==B_?ome:xye)==ome,l1e=(Dye=Dye==B_?ome:Dye)==ome,Uye=xye==Dye;if(Uye&&hye(_0e)){if(!hye(Yme))return!1;lye=!0,Lye=!1}if(Uye&&!Lye)return Z0e||(Z0e=new k0e),lye||R0e(_0e)?V0e(_0e,Yme,l0e,S0e,I0e,Z0e):function(Rye,Aye,Oye,fye,gye,Hye,Xye){switch(Oye){case pme:if(Rye.byteLength!=Aye.byteLength||Rye.byteOffset!=Aye.byteOffset)return!1;Rye=Rye.buffer,Aye=Aye.buffer;case hme:return!(Rye.byteLength!=Aye.byteLength||!Hye(new Vme(Rye),new Vme(Aye)));case zP:case eme:case ame:return W0e(+Rye,+Aye);case tme:return Rye.name==Aye.name&&Rye.message==Aye.message;case cme:case sme:return Rye==Aye+"";case rme:var Wye=Mme;case ume:var n1e=1&fye;if(Wye||(Wye=Nme),Rye.size!=Aye.size&&!n1e)return!1;var bye=Xye.get(Rye);if(bye)return bye==Aye;fye|=2,Xye.set(Rye,Aye);var dye=V0e(Wye(Rye),Wye(Aye),fye,gye,Hye,Xye);return Xye.delete(Rye),dye;case fme:if(C0e)return C0e.call(Rye)==C0e.call(Aye)}return!1}(_0e,Yme,xye,l0e,S0e,I0e,Z0e);if(!(1&l0e)){var Qye=Lye&&Bme.call(_0e,"__wrapped__"),Sye=l1e&&Bme.call(Yme,"__wrapped__");if(Qye||Sye){var jye=Qye?_0e.value():_0e,qye=Sye?Yme.value():Yme;return Z0e||(Z0e=new k0e),I0e(jye,qye,l0e,S0e,Z0e)}}return Uye?(Z0e||(Z0e=new k0e),function(Rye,Aye,Oye,fye,gye,Hye){var Xye=1&Oye,Wye=X0e(Rye),n1e=Wye.length,bye=X0e(Aye).length;if(n1e!=bye&&!Xye)return!1;for(var dye=n1e;dye--;){var Yye=Wye[dye];if(!(Xye?Yye in Aye:Bme.call(Aye,Yye)))return!1}var u1e=Hye.get(Rye);if(u1e&&Hye.get(Aye))return u1e==Aye;var s1e=!0;Hye.set(Rye,Aye),Hye.set(Aye,Rye);for(var y1e=Xye;++dye<n1e;){var Pye=Rye[Yye=Wye[dye]],pye=Aye[Yye];if(fye)var kye=Xye?fye(pye,Pye,Yye,Aye,Rye,Hye):fye(Pye,pye,Yye,Rye,Aye,Hye);if(!(kye===void 0?Pye===pye||gye(Pye,pye,Oye,fye,Hye):kye)){s1e=!1;break}y1e||(y1e=Yye=="constructor")}if(s1e&&!y1e){var e1e=Rye.constructor,p1e=Aye.constructor;e1e==p1e||!("constructor"in Rye)||!("constructor"in Aye)||typeof e1e=="function"&&e1e instanceof e1e&&typeof p1e=="function"&&p1e instanceof p1e||(s1e=!1)}return Hye.delete(Rye),Hye.delete(Aye),s1e}(_0e,Yme,l0e,S0e,I0e,Z0e)):!1}(n0e,f0e,m0e,w0e,Q0e,j0e))}function U0e(n0e){return!(!Vye(n0e)||function(f0e){return!!kme&&kme in f0e}(n0e))&&(wye(n0e)?Hme:gme).test(yye(n0e))}function q0e(n0e){if(m0e=(f0e=n0e)&&f0e.constructor,w0e=typeof m0e=="function"&&m0e.prototype||Ome,f0e!==w0e)return d0e(n0e);var f0e,m0e,w0e,j0e=[];for(var _0e in Object(n0e))Bme.call(n0e,_0e)&&_0e!="constructor"&&j0e.push(_0e);return j0e}function V0e(n0e,f0e,m0e,w0e,j0e,_0e){var Yme=1&m0e,l0e=n0e.length,S0e=f0e.length;if(l0e!=S0e&&!(Yme&&S0e>l0e))return!1;var I0e=_0e.get(n0e);if(I0e&&_0e.get(f0e))return I0e==f0e;var Z0e=-1,lye=!0,Tye=2&m0e?new b0e:void 0;for(_0e.set(n0e,f0e),_0e.set(f0e,n0e);++Z0e<l0e;){var xye=n0e[Z0e],Dye=f0e[Z0e];if(w0e)var Lye=Yme?w0e(Dye,xye,Z0e,f0e,n0e,_0e):w0e(xye,Dye,Z0e,n0e,f0e,_0e);if(Lye!==void 0){if(Lye)continue;lye=!1;break}if(Tye){if(!Dme(f0e,function(l1e,Uye){if(Qye=Uye,!Tye.has(Qye)&&(xye===l1e||j0e(xye,l1e,m0e,w0e,_0e)))return Tye.push(Uye);var Qye})){lye=!1;break}}else if(xye!==Dye&&!j0e(xye,Dye,m0e,w0e,_0e)){lye=!1;break}}return _0e.delete(n0e),_0e.delete(f0e),lye}function X0e(n0e){return function(f0e,m0e,w0e){var j0e=m0e(f0e);return G0e(f0e)?j0e:function(_0e,Yme){for(var l0e=-1,S0e=Yme.length,I0e=_0e.length;++l0e<S0e;)_0e[I0e+l0e]=Yme[l0e];return _0e}(j0e,w0e(f0e))}(n0e,A0e,aye)}function M0e(n0e,f0e){var m0e,w0e,j0e=n0e.__data__;return((w0e=typeof(m0e=f0e))=="string"||w0e=="number"||w0e=="symbol"||w0e=="boolean"?m0e!=="__proto__":m0e===null)?j0e[typeof f0e=="string"?"string":"hash"]:j0e.map}function J0e(n0e,f0e){var m0e=function(w0e,j0e){return w0e==null?void 0:w0e[j0e]}(n0e,f0e);return U0e(m0e)?m0e:void 0}z0e.prototype.clear=function(){this.__data__=g0e?g0e(null):{},this.size=0},z0e.prototype.delete=function(n0e){var f0e=this.has(n0e)&&delete this.__data__[n0e];return this.size-=f0e?1:0,f0e},z0e.prototype.get=function(n0e){var f0e=this.__data__;if(g0e){var m0e=f0e[n0e];return m0e===x_?void 0:m0e}return Bme.call(f0e,n0e)?f0e[n0e]:void 0},z0e.prototype.has=function(n0e){var f0e=this.__data__;return g0e?f0e[n0e]!==void 0:Bme.call(f0e,n0e)},z0e.prototype.set=function(n0e,f0e){var m0e=this.__data__;return this.size+=this.has(n0e)?0:1,m0e[n0e]=g0e&&f0e===void 0?x_:f0e,this},D0e.prototype.clear=function(){this.__data__=[],this.size=0},D0e.prototype.delete=function(n0e){var f0e=this.__data__,m0e=L0e(f0e,n0e);return!(m0e<0)&&(m0e==f0e.length-1?f0e.pop():e0e.call(f0e,m0e,1),--this.size,!0)},D0e.prototype.get=function(n0e){var f0e=this.__data__,m0e=L0e(f0e,n0e);return m0e<0?void 0:f0e[m0e][1]},D0e.prototype.has=function(n0e){return L0e(this.__data__,n0e)>-1},D0e.prototype.set=function(n0e,f0e){var m0e=this.__data__,w0e=L0e(m0e,n0e);return w0e<0?(++this.size,m0e.push([n0e,f0e])):m0e[w0e][1]=f0e,this},O0e.prototype.clear=function(){this.size=0,this.__data__={hash:new z0e,map:new(Qme||D0e),string:new z0e}},O0e.prototype.delete=function(n0e){var f0e=M0e(this,n0e).delete(n0e);return this.size-=f0e?1:0,f0e},O0e.prototype.get=function(n0e){return M0e(this,n0e).get(n0e)},O0e.prototype.has=function(n0e){return M0e(this,n0e).has(n0e)},O0e.prototype.set=function(n0e,f0e){var m0e=M0e(this,n0e),w0e=m0e.size;return m0e.set(n0e,f0e),this.size+=m0e.size==w0e?0:1,this},b0e.prototype.add=b0e.prototype.push=function(n0e){return this.__data__.set(n0e,x_),this},b0e.prototype.has=function(n0e){return this.__data__.has(n0e)},k0e.prototype.clear=function(){this.__data__=new D0e,this.size=0},k0e.prototype.delete=function(n0e){var f0e=this.__data__,m0e=f0e.delete(n0e);return this.size=f0e.size,m0e},k0e.prototype.get=function(n0e){return this.__data__.get(n0e)},k0e.prototype.has=function(n0e){return this.__data__.has(n0e)},k0e.prototype.set=function(n0e,f0e){var m0e=this.__data__;if(m0e instanceof D0e){var w0e=m0e.__data__;if(!Qme||w0e.length<199)return w0e.push([n0e,f0e]),this.size=++m0e.size,this;m0e=this.__data__=new O0e(w0e)}return m0e.set(n0e,f0e),this.size=m0e.size,this};var aye=Jme?function(n0e){return n0e==null?[]:(n0e=Object(n0e),function(f0e,m0e){for(var w0e=-1,j0e=f0e==null?0:f0e.length,_0e=0,Yme=[];++w0e<j0e;){var l0e=f0e[w0e];m0e(l0e,w0e,f0e)&&(Yme[_0e++]=l0e)}return Yme}(Jme(n0e),function(f0e){return Xme.call(n0e,f0e)}))}:function(){return[]},F0e=Y0e;function cye(n0e,f0e){return!!(f0e=f0e??$_)&&(typeof n0e=="number"||yme.test(n0e))&&n0e>-1&&n0e%1==0&&n0e<f0e}function yye(n0e){if(n0e!=null){try{return Fme.call(n0e)}catch{}try{return n0e+""}catch{}}return""}function W0e(n0e,f0e){return n0e===f0e||n0e!=n0e&&f0e!=f0e}(Zme&&F0e(new Zme(new ArrayBuffer(1)))!=pme||Qme&&F0e(new Qme)!=rme||a0e&&F0e(a0e.resolve())!=ime||t0e&&F0e(new t0e)!=ume||o0e&&F0e(new o0e)!=lme)&&(F0e=function(n0e){var f0e=Y0e(n0e),m0e=f0e==ome?n0e.constructor:void 0,w0e=m0e?yye(m0e):"";if(w0e)switch(w0e){case u0e:return pme;case h0e:return rme;case E0e:return ime;case P0e:return ume;case y0e:return lme}return f0e});var sye=mye(function(){return arguments}())?mye:function(n0e){return r0e(n0e)&&Bme.call(n0e,"callee")&&!Xme.call(n0e,"callee")},G0e=Array.isArray,hye=s0e||function(){return!1};function wye(n0e){if(!Vye(n0e))return!1;var f0e=Y0e(n0e);return f0e==nme||f0e=="[object GeneratorFunction]"||f0e=="[object AsyncFunction]"||f0e=="[object Proxy]"}function Eye(n0e){return typeof n0e=="number"&&n0e>-1&&n0e%1==0&&n0e<=$_}function Vye(n0e){var f0e=typeof n0e;return n0e!=null&&(f0e=="object"||f0e=="function")}function r0e(n0e){return n0e!=null&&typeof n0e=="object"}var R0e=$me?function(n0e){return function(f0e){return n0e(f0e)}}($me):function(n0e){return r0e(n0e)&&Eye(n0e.length)&&!!mme[Y0e(n0e)]};function A0e(n0e){return(f0e=n0e)!=null&&Eye(f0e.length)&&!wye(f0e)?T0e(n0e):q0e(n0e);var f0e}Ff.exports=function(n0e,f0e){return Q0e(n0e,f0e)}});MP("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),MP("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var y0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function m0(Ff){var kh={exports:{}};return Ff(kh,kh.exports),kh.exports}var b0,w0,E0=function(Ff){return Ff&&Ff.Math==Math&&Ff},D0=E0(typeof globalThis=="object"&&globalThis)||E0(typeof window=="object"&&window)||E0(typeof self=="object"&&self)||E0(typeof y0=="object"&&y0)||function(){return this}()||Function("return this")(),S0=function(Ff){try{return!!Ff()}catch{return!0}},x0=!S0(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),C0=Function.prototype.call,A0=C0.bind?C0.bind(C0):function(){return C0.apply(C0,arguments)},O0={}.propertyIsEnumerable,k0=Object.getOwnPropertyDescriptor,B0={f:k0&&!O0.call({1:2},1)?function(Ff){var kh=k0(this,Ff);return!!kh&&kh.enumerable}:O0},F0=function(Ff,kh){return{enumerable:!(1&Ff),configurable:!(2&Ff),writable:!(4&Ff),value:kh}},T0=Function.prototype,_0=T0.bind,P0=T0.call,j0=_0&&_0.bind(P0),N0=_0?function(Ff){return Ff&&j0(P0,Ff)}:function(Ff){return Ff&&function(){return P0.apply(Ff,arguments)}},I0=N0({}.toString),L0=N0("".slice),R0=function(Ff){return L0(I0(Ff),8,-1)},M0=D0.Object,z0=N0("".split),$0=S0(function(){return!M0("z").propertyIsEnumerable(0)})?function(Ff){return R0(Ff)=="String"?z0(Ff,""):M0(Ff)}:M0,H0=D0.TypeError,V0=function(Ff){if(Ff==null)throw H0("Can't call method on "+Ff);return Ff},U0=function(Ff){return $0(V0(Ff))},W0=function(Ff){return typeof Ff=="function"},G0=function(Ff){return typeof Ff=="object"?Ff!==null:W0(Ff)},q0=function(Ff){return W0(Ff)?Ff:void 0},K0=function(Ff,kh){return arguments.length<2?q0(D0[Ff]):D0[Ff]&&D0[Ff][kh]},Y0=N0({}.isPrototypeOf),X0=K0("navigator","userAgent")||"",Z0=D0.process,J0=D0.Deno,Q0=Z0&&Z0.versions||J0&&J0.version,e1=Q0&&Q0.v8;e1&&(w0=(b0=e1.split("."))[0]>0&&b0[0]<4?1:+(b0[0]+b0[1])),!w0&&X0&&(!(b0=X0.match(/Edge\/(\d+)/))||b0[1]>=74)&&(b0=X0.match(/Chrome\/(\d+)/))&&(w0=+b0[1]);var t1=w0,n1=!!Object.getOwnPropertySymbols&&!S0(function(){var Ff=Symbol();return!String(Ff)||!(Object(Ff)instanceof Symbol)||!Symbol.sham&&t1&&t1<41}),r1=n1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",o1=D0.Object,i1=r1?function(Ff){return typeof Ff=="symbol"}:function(Ff){var kh=K0("Symbol");return W0(kh)&&Y0(kh.prototype,o1(Ff))},a1=D0.String,u1=function(Ff){try{return a1(Ff)}catch{return"Object"}},s1=D0.TypeError,l1=function(Ff){if(W0(Ff))return Ff;throw s1(u1(Ff)+" is not a function")},c1=function(Ff,kh){var x_=Ff[kh];return x_==null?void 0:l1(x_)},f1=D0.TypeError,d1=Object.defineProperty,p1=function(Ff,kh){try{d1(D0,Ff,{value:kh,configurable:!0,writable:!0})}catch{D0[Ff]=kh}return kh},h1=D0["__core-js_shared__"]||p1("__core-js_shared__",{}),g1=m0(function(Ff){(Ff.exports=function(kh,x_){return h1[kh]||(h1[kh]=x_!==void 0?x_:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),v1=D0.Object,y1=function(Ff){return v1(V0(Ff))},m1=N0({}.hasOwnProperty),b1=Object.hasOwn||function(Ff,kh){return m1(y1(Ff),kh)},w1=0,E1=Math.random(),D1=N0(1 .toString),S1=function(Ff){return"Symbol("+(Ff===void 0?"":Ff)+")_"+D1(++w1+E1,36)},x1=g1("wks"),C1=D0.Symbol,A1=C1&&C1.for,O1=r1?C1:C1&&C1.withoutSetter||S1,k1=function(Ff){if(!b1(x1,Ff)||!n1&&typeof x1[Ff]!="string"){var kh="Symbol."+Ff;n1&&b1(C1,Ff)?x1[Ff]=C1[Ff]:x1[Ff]=r1&&A1?A1(kh):O1(kh)}return x1[Ff]},B1=D0.TypeError,F1=k1("toPrimitive"),T1=function(Ff){var kh=function(x_,$_){if(!G0(x_)||i1(x_))return x_;var B_,$P=c1(x_,F1);if($P){if(B_=A0($P,x_,$_),!G0(B_)||i1(B_))return B_;throw B1("Can't convert object to primitive value")}return function(zP,eme){var tme,nme;if(W0(tme=zP.toString)&&!G0(nme=A0(tme,zP))||W0(tme=zP.valueOf)&&!G0(nme=A0(tme,zP)))return nme;throw f1("Can't convert object to primitive value")}(x_)}(Ff,"string");return i1(kh)?kh:kh+""},_1=D0.document,P1=G0(_1)&&G0(_1.createElement),j1=function(Ff){return P1?_1.createElement(Ff):{}},N1=!x0&&!S0(function(){return Object.defineProperty(j1("div"),"a",{get:function(){return 7}}).a!=7}),I1=Object.getOwnPropertyDescriptor,L1={f:x0?I1:function(Ff,kh){if(Ff=U0(Ff),kh=T1(kh),N1)try{return I1(Ff,kh)}catch{}if(b1(Ff,kh))return F0(!A0(B0.f,Ff,kh),Ff[kh])}},R1=D0.String,M1=D0.TypeError,z1=function(Ff){if(G0(Ff))return Ff;throw M1(R1(Ff)+" is not an object")},$1=D0.TypeError,H1=Object.defineProperty,V1={f:x0?H1:function(Ff,kh,x_){if(z1(Ff),kh=T1(kh),z1(x_),N1)try{return H1(Ff,kh,x_)}catch{}if("get"in x_||"set"in x_)throw $1("Accessors not supported");return"value"in x_&&(Ff[kh]=x_.value),Ff}},U1=x0?function(Ff,kh,x_){return V1.f(Ff,kh,F0(1,x_))}:function(Ff,kh,x_){return Ff[kh]=x_,Ff},W1=N0(Function.toString);W0(h1.inspectSource)||(h1.inspectSource=function(Ff){return W1(Ff)});var G1,q1,K1,Y1=h1.inspectSource,X1=D0.WeakMap,Z1=W0(X1)&&/native code/.test(Y1(X1)),J1=g1("keys"),Q1=function(Ff){return J1[Ff]||(J1[Ff]=S1(Ff))},e2={},t2=D0.TypeError,n2=D0.WeakMap;if(Z1||h1.state){var r2=h1.state||(h1.state=new n2),o2=N0(r2.get),i2=N0(r2.has),a2=N0(r2.set);G1=function(Ff,kh){if(i2(r2,Ff))throw new t2("Object already initialized");return kh.facade=Ff,a2(r2,Ff,kh),kh},q1=function(Ff){return o2(r2,Ff)||{}},K1=function(Ff){return i2(r2,Ff)}}else{var u2=Q1("state");e2[u2]=!0,G1=function(Ff,kh){if(b1(Ff,u2))throw new t2("Object already initialized");return kh.facade=Ff,U1(Ff,u2,kh),kh},q1=function(Ff){return b1(Ff,u2)?Ff[u2]:{}},K1=function(Ff){return b1(Ff,u2)}}var s2={set:G1,get:q1,has:K1,enforce:function(Ff){return K1(Ff)?q1(Ff):G1(Ff,{})},getterFor:function(Ff){return function(kh){var x_;if(!G0(kh)||(x_=q1(kh)).type!==Ff)throw t2("Incompatible receiver, "+Ff+" required");return x_}}},l2=Function.prototype,c2=x0&&Object.getOwnPropertyDescriptor,f2=b1(l2,"name"),d2={EXISTS:f2,PROPER:f2&&(function(){}).name==="something",CONFIGURABLE:f2&&(!x0||x0&&c2(l2,"name").configurable)},p2=m0(function(Ff){var kh=d2.CONFIGURABLE,x_=s2.get,$_=s2.enforce,B_=String(String).split("String");(Ff.exports=function($P,zP,eme,tme){var nme,rme=!!tme&&!!tme.unsafe,ame=!!tme&&!!tme.enumerable,ome=!!tme&&!!tme.noTargetGet,ime=tme&&tme.name!==void 0?tme.name:zP;W0(eme)&&(String(ime).slice(0,7)==="Symbol("&&(ime="["+String(ime).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!b1(eme,"name")||kh&&eme.name!==ime)&&U1(eme,"name",ime),(nme=$_(eme)).source||(nme.source=B_.join(typeof ime=="string"?ime:""))),$P!==D0?(rme?!ome&&$P[zP]&&(ame=!0):delete $P[zP],ame?$P[zP]=eme:U1($P,zP,eme)):ame?$P[zP]=eme:p1(zP,eme)})(Function.prototype,"toString",function(){return W0(this)&&x_(this).source||Y1(this)})}),h2=Math.ceil,g2=Math.floor,v2=function(Ff){var kh=+Ff;return kh!=kh||kh===0?0:(kh>0?g2:h2)(kh)},y2=Math.max,m2=Math.min,b2=function(Ff,kh){var x_=v2(Ff);return x_<0?y2(x_+kh,0):m2(x_,kh)},w2=Math.min,E2=function(Ff){return Ff>0?w2(v2(Ff),9007199254740991):0},D2=function(Ff){return E2(Ff.length)},S2=function(Ff){return function(kh,x_,$_){var B_,$P=U0(kh),zP=D2($P),eme=b2($_,zP);if(Ff&&x_!=x_){for(;zP>eme;)if((B_=$P[eme++])!=B_)return!0}else for(;zP>eme;eme++)if((Ff||eme in $P)&&$P[eme]===x_)return Ff||eme||0;return!Ff&&-1}},x2=S2(!1),C2=N0([].push),A2=function(Ff,kh){var x_,$_=U0(Ff),B_=0,$P=[];for(x_ in $_)!b1(e2,x_)&&b1($_,x_)&&C2($P,x_);for(;kh.length>B_;)b1($_,x_=kh[B_++])&&(~x2($P,x_)||C2($P,x_));return $P},O2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],k2=O2.concat("length","prototype"),B2={f:Object.getOwnPropertyNames||function(Ff){return A2(Ff,k2)}},F2={f:Object.getOwnPropertySymbols},T2=N0([].concat),_2=K0("Reflect","ownKeys")||function(Ff){var kh=B2.f(z1(Ff)),x_=F2.f;return x_?T2(kh,x_(Ff)):kh},P2=function(Ff,kh){for(var x_=_2(kh),$_=V1.f,B_=L1.f,$P=0;$P<x_.length;$P++){var zP=x_[$P];b1(Ff,zP)||$_(Ff,zP,B_(kh,zP))}},j2=/#|\.prototype\./,N2=function(Ff,kh){var x_=L2[I2(Ff)];return x_==M2||x_!=R2&&(W0(kh)?S0(kh):!!kh)},I2=N2.normalize=function(Ff){return String(Ff).replace(j2,".").toLowerCase()},L2=N2.data={},R2=N2.NATIVE="N",M2=N2.POLYFILL="P",z2=N2,$2=L1.f,H2=function(Ff,kh){var x_,$_,B_,$P,zP,eme=Ff.target,tme=Ff.global,nme=Ff.stat;if(x_=tme?D0:nme?D0[eme]||p1(eme,{}):(D0[eme]||{}).prototype)for($_ in kh){if($P=kh[$_],B_=Ff.noTargetGet?(zP=$2(x_,$_))&&zP.value:x_[$_],!z2(tme?$_:eme+(nme?".":"#")+$_,Ff.forced)&&B_!==void 0){if(typeof $P==typeof B_)continue;P2($P,B_)}(Ff.sham||B_&&B_.sham)&&U1($P,"sham",!0),p2(x_,$_,$P,Ff)}},V2={};V2[k1("toStringTag")]="z";var U2=String(V2)==="[object z]",W2=k1("toStringTag"),G2=D0.Object,q2=R0(function(){return arguments}())=="Arguments",K2=U2?R0:function(Ff){var kh,x_,$_;return Ff===void 0?"Undefined":Ff===null?"Null":typeof(x_=function(B_,$P){try{return B_[$P]}catch{}}(kh=G2(Ff),W2))=="string"?x_:q2?R0(kh):($_=R0(kh))=="Object"&&W0(kh.callee)?"Arguments":$_},Y2=D0.String,X2=function(Ff){if(K2(Ff)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Y2(Ff)},Z2=/"/g,J2=N0("".replace);H2({target:"String",proto:!0,forced:S0(function(){var Ff="".anchor('"');return Ff!==Ff.toLowerCase()||Ff.split('"').length>3})},{anchor:function(Ff){return kh=Ff,x_=X2(V0(this)),$_="<a",($_+=' name="'+J2(X2(kh),Z2,"&quot;")+'"')+">"+x_+"</a>";var kh,x_,$_}});var Q2,e4=function(){var Ff=z1(this),kh="";return Ff.global&&(kh+="g"),Ff.ignoreCase&&(kh+="i"),Ff.multiline&&(kh+="m"),Ff.dotAll&&(kh+="s"),Ff.unicode&&(kh+="u"),Ff.sticky&&(kh+="y"),kh},t4=D0.RegExp,n4=S0(function(){var Ff=t4("a","y");return Ff.lastIndex=2,Ff.exec("abcd")!=null}),r4=n4||S0(function(){return!t4("a","y").sticky}),o4={BROKEN_CARET:n4||S0(function(){var Ff=t4("^r","gy");return Ff.lastIndex=2,Ff.exec("str")!=null}),MISSED_STICKY:r4,UNSUPPORTED_Y:n4},i4=Object.keys||function(Ff){return A2(Ff,O2)},a4=x0?Object.defineProperties:function(Ff,kh){z1(Ff);for(var x_,$_=U0(kh),B_=i4(kh),$P=B_.length,zP=0;$P>zP;)V1.f(Ff,x_=B_[zP++],$_[x_]);return Ff},u4=K0("document","documentElement"),s4=Q1("IE_PROTO"),l4=function(){},c4=function(Ff){return"<script>"+Ff+"<\/script>"},f4=function(Ff){Ff.write(c4("")),Ff.close();var kh=Ff.parentWindow.Object;return Ff=null,kh},d4=function(){try{Q2=new ActiveXObject("htmlfile")}catch{}var Ff,kh;d4=typeof document<"u"?document.domain&&Q2?f4(Q2):((kh=j1("iframe")).style.display="none",u4.appendChild(kh),kh.src="javascript:",(Ff=kh.contentWindow.document).open(),Ff.write(c4("document.F=Object")),Ff.close(),Ff.F):f4(Q2);for(var x_=O2.length;x_--;)delete d4.prototype[O2[x_]];return d4()};e2[s4]=!0;var p4,h4,g4=Object.create||function(Ff,kh){var x_;return Ff!==null?(l4.prototype=z1(Ff),x_=new l4,l4.prototype=null,x_[s4]=Ff):x_=d4(),kh===void 0?x_:a4(x_,kh)},v4=D0.RegExp,y4=S0(function(){var Ff=v4(".","s");return!(Ff.dotAll&&Ff.exec(`
559
559
  `)&&Ff.flags==="s")}),m4=D0.RegExp,b4=S0(function(){var Ff=m4("(?<a>b)","g");return Ff.exec("b").groups.a!=="b"||"b".replace(Ff,"$<a>c")!=="bc"}),w4=s2.get,E4=g1("native-string-replace",String.prototype.replace),D4=RegExp.prototype.exec,S4=D4,x4=N0("".charAt),C4=N0("".indexOf),A4=N0("".replace),O4=N0("".slice),k4=(h4=/b*/g,A0(D4,p4=/a/,"a"),A0(D4,h4,"a"),p4.lastIndex!==0||h4.lastIndex!==0),B4=o4.BROKEN_CARET,F4=/()??/.exec("")[1]!==void 0;(k4||F4||B4||y4||b4)&&(S4=function(Ff){var kh,x_,$_,B_,$P,zP,eme,tme=this,nme=w4(tme),rme=X2(Ff),ame=nme.raw;if(ame)return ame.lastIndex=tme.lastIndex,kh=A0(S4,ame,rme),tme.lastIndex=ame.lastIndex,kh;var ome=nme.groups,ime=B4&&tme.sticky,cme=A0(e4,tme),ume=tme.source,sme=0,fme=rme;if(ime&&(cme=A4(cme,"y",""),C4(cme,"g")===-1&&(cme+="g"),fme=O4(rme,tme.lastIndex),tme.lastIndex>0&&(!tme.multiline||tme.multiline&&x4(rme,tme.lastIndex-1)!==`
560
560
  `)&&(ume="(?: "+ume+")",fme=" "+fme,sme++),x_=new RegExp("^(?:"+ume+")",cme)),F4&&(x_=new RegExp("^"+ume+"$(?!\\s)",cme)),k4&&($_=tme.lastIndex),B_=A0(D4,ime?x_:tme,fme),ime?B_?(B_.input=O4(B_.input,sme),B_[0]=O4(B_[0],sme),B_.index=tme.lastIndex,tme.lastIndex+=B_[0].length):tme.lastIndex=0:k4&&B_&&(tme.lastIndex=tme.global?B_.index+B_[0].length:$_),F4&&B_&&B_.length>1&&A0(E4,B_[0],x_,function(){for($P=1;$P<arguments.length-2;$P++)arguments[$P]===void 0&&(B_[$P]=void 0)}),B_&&ome)for(B_.groups=zP=g4(null),$P=0;$P<ome.length;$P++)zP[(eme=ome[$P])[0]]=B_[eme[1]];return B_});var T4=S4;H2({target:"RegExp",proto:!0,forced:/./.exec!==T4},{exec:T4});var _4=Array.isArray||function(Ff){return R0(Ff)=="Array"},P4=function(){},j4=[],N4=K0("Reflect","construct"),I4=/^\s*(?:class|function)\b/,L4=N0(I4.exec),R4=!I4.exec(P4),M4=function(Ff){if(!W0(Ff))return!1;try{return N4(P4,j4,Ff),!0}catch{return!1}},z4=!N4||S0(function(){var Ff;return M4(M4.call)||!M4(Object)||!M4(function(){Ff=!0})||Ff})?function(Ff){if(!W0(Ff))return!1;switch(K2(Ff)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return R4||!!L4(I4,Y1(Ff))}:M4,$4=function(Ff,kh,x_){var $_=T1(kh);$_ in Ff?V1.f(Ff,$_,F0(0,x_)):Ff[$_]=x_},H4=k1("species"),V4=function(Ff){return t1>=51||!S0(function(){var kh=[];return(kh.constructor={})[H4]=function(){return{foo:1}},kh[Ff](Boolean).foo!==1})},U4=N0([].slice),W4=V4("slice"),G4=k1("species"),q4=D0.Array,K4=Math.max;function Y4(Ff,kh){var x_=typeof Symbol=="function"&&Ff[Symbol.iterator];if(!x_)return Ff;var $_,B_,$P=x_.call(Ff),zP=[];try{for(;(kh===void 0||kh-- >0)&&!($_=$P.next()).done;)zP.push($_.value)}catch(eme){B_={error:eme}}finally{try{$_&&!$_.done&&(x_=$P.return)&&x_.call($P)}finally{if(B_)throw B_.error}}return zP}function X4(Ff){var kh=Ff.selection;if(kh==null)return!1;var x_=Y4(Bf.nodes(Ff,{match:function($P){return QO.checkNodeType($P,"table-cell")}}),1)[0];if(x_){var $_=Y4(x_,2)[1],B_=Bf.start(Ff,$_);if(Vf.equals(kh.anchor,B_))return!0}return!1}function Z4(Ff,kh){var x_,$_,B_=Bf.nodes(Ff,{at:kh,match:function(tme){return QO.getNodeType(tme)==="table"}}),$P=!1;try{for(var zP=function(tme){var nme=typeof Symbol=="function"&&Symbol.iterator,rme=nme&&tme[nme],ame=0;if(rme)return rme.call(tme);if(tme&&typeof tme.length=="number")return{next:function(){return tme&&ame>=tme.length&&(tme=void 0),{value:tme&&tme[ame++],done:!tme}}};throw new TypeError(nme?"Object is not iterable.":"Symbol.iterator is not defined.")}(B_),eme=zP.next();!eme.done;eme=zP.next())eme.value,$P=!0}catch(tme){x_={error:tme}}finally{try{eme&&!eme.done&&($_=zP.return)&&$_.call(zP)}finally{if(x_)throw x_.error}}return $P}H2({target:"Array",proto:!0,forced:!W4},{slice:function(Ff,kh){var x_,$_,B_,$P=U0(this),zP=D2($P),eme=b2(Ff,zP),tme=b2(kh===void 0?zP:kh,zP);if(_4($P)&&(x_=$P.constructor,(z4(x_)&&(x_===q4||_4(x_.prototype))||G0(x_)&&(x_=x_[G4])===null)&&(x_=void 0),x_===q4||x_===void 0))return U4($P,eme,tme);for($_=new(x_===void 0?q4:x_)(K4(tme-eme,0)),B_=0;eme<tme;eme++,B_++)eme in $P&&$4($_,B_,$P[eme]);return $_.length=B_,$_}});var J4=N0(N0.bind),Q4=k1("species"),e6=D0.Array,t6=function(Ff,kh){return new(function(x_){var $_;return _4(x_)&&($_=x_.constructor,(z4($_)&&($_===e6||_4($_.prototype))||G0($_)&&($_=$_[Q4])===null)&&($_=void 0)),$_===void 0?e6:$_}(Ff))(kh===0?0:kh)},n6=N0([].push),r6=function(Ff){var kh=Ff==1,x_=Ff==2,$_=Ff==3,B_=Ff==4,$P=Ff==6,zP=Ff==7,eme=Ff==5||$P;return function(tme,nme,rme,ame){for(var ome,ime,cme=y1(tme),ume=$0(cme),sme=function(gme,yme){return l1(gme),yme===void 0?gme:J4?J4(gme,yme):function(){return gme.apply(yme,arguments)}}(nme,rme),fme=D2(ume),lme=0,hme=ame||t6,pme=kh?hme(tme,fme):x_||zP?hme(tme,0):void 0;fme>lme;lme++)if((eme||lme in ume)&&(ime=sme(ome=ume[lme],lme,cme),Ff))if(kh)pme[lme]=ime;else if(ime)switch(Ff){case 3:return!0;case 5:return ome;case 6:return lme;case 2:n6(pme,ome)}else switch(Ff){case 4:return!1;case 7:n6(pme,ome)}return $P?-1:$_||B_?B_:pme}},o6={forEach:r6(0),map:r6(1),filter:r6(2),some:r6(3),every:r6(4),find:r6(5),findIndex:r6(6),filterReject:r6(7)},i6=o6.map;H2({target:"Array",proto:!0,forced:!V4("map")},{map:function(Ff){return i6(this,Ff,arguments.length>1?arguments[1]:void 0)}});var a6=U2?{}.toString:function(){return"[object "+K2(this)+"]"};function u6(Ff){var kh=Ff.children||[];return kh.length===0?[]:(kh[0]||{}).children||[]}function s6(Ff){return u6(Ff).every(function(kh){return!!kh.isHeader})}U2||p2(Object.prototype,"toString",a6,{unsafe:!0});var l6=d2.PROPER,c6=RegExp.prototype,f6=c6.toString,d6=N0(e4),p6=S0(function(){return f6.call({source:"a",flags:"b"})!="/a/b"}),h6=l6&&f6.name!="toString";(p6||h6)&&p2(RegExp.prototype,"toString",function(){var Ff=z1(this),kh=X2(Ff.source),x_=Ff.flags;return"/"+kh+"/"+X2(x_===void 0&&Y0(c6,Ff)&&!("flags"in c6)?d6(Ff):x_)},{unsafe:!0});var g6=k1("unscopables"),v6=Array.prototype;v6[g6]==null&&V1.f(v6,g6,{configurable:!0,value:g4(null)});var y6=o6.find,m6=!0;"find"in[]&&Array(1).find(function(){m6=!1}),H2({target:"Array",proto:!0,forced:m6},{find:function(Ff){return y6(this,Ff,arguments.length>1?arguments[1]:void 0)}}),v6[g6].find=!0;var b6=Function.prototype,w6=b6.apply,E6=b6.bind,D6=b6.call,S6=typeof Reflect=="object"&&Reflect.apply||(E6?D6.bind(w6):function(){return D6.apply(w6,arguments)}),x6=k1("species"),C6=RegExp.prototype,A6=function(Ff,kh,x_,$_){var B_=k1(Ff),$P=!S0(function(){var nme={};return nme[B_]=function(){return 7},""[Ff](nme)!=7}),zP=$P&&!S0(function(){var nme=!1,rme=/a/;return Ff==="split"&&((rme={}).constructor={},rme.constructor[x6]=function(){return rme},rme.flags="",rme[B_]=/./[B_]),rme.exec=function(){return nme=!0,null},rme[B_](""),!nme});if(!$P||!zP||x_){var eme=N0(/./[B_]),tme=kh(B_,""[Ff],function(nme,rme,ame,ome,ime){var cme=N0(nme),ume=rme.exec;return ume===T4||ume===C6.exec?$P&&!ime?{done:!0,value:eme(rme,ame,ome)}:{done:!0,value:cme(ame,rme,ome)}:{done:!1}});p2(String.prototype,Ff,tme[0]),p2(C6,B_,tme[1])}$_&&U1(C6[B_],"sham",!0)},O6=k1("match"),k6=D0.TypeError,B6=k1("species"),F6=N0("".charAt),T6=N0("".charCodeAt),_6=N0("".slice),P6=function(Ff){return function(kh,x_){var $_,B_,$P=X2(V0(kh)),zP=v2(x_),eme=$P.length;return zP<0||zP>=eme?Ff?"":void 0:($_=T6($P,zP))<55296||$_>56319||zP+1===eme||(B_=T6($P,zP+1))<56320||B_>57343?Ff?F6($P,zP):$_:Ff?_6($P,zP,zP+2):B_-56320+($_-55296<<10)+65536}},j6=P6(!0),N6=function(Ff,kh,x_){return kh+(x_?j6(Ff,kh).length:1)},I6=D0.Array,L6=Math.max,R6=function(Ff,kh,x_){for(var $_=D2(Ff),B_=b2(kh,$_),$P=b2(x_===void 0?$_:x_,$_),zP=I6(L6($P-B_,0)),eme=0;B_<$P;B_++,eme++)$4(zP,eme,Ff[B_]);return zP.length=eme,zP},M6=D0.TypeError,z6=function(Ff,kh){var x_=Ff.exec;if(W0(x_)){var $_=A0(x_,Ff,kh);return $_!==null&&z1($_),$_}if(R0(Ff)==="RegExp")return A0(T4,Ff,kh);throw M6("RegExp#exec called on incompatible receiver")},$6=o4.UNSUPPORTED_Y,H6=Math.min,V6=[].push,U6=N0(/./.exec),W6=N0(V6),G6=N0("".slice);A6("split",function(Ff,kh,x_){var $_;return $_="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(B_,$P){var zP,eme,tme=X2(V0(this)),nme=$P===void 0?4294967295:$P>>>0;if(nme===0)return[];if(B_===void 0)return[tme];if(!G0(zP=B_)||!((eme=zP[O6])!==void 0?eme:R0(zP)=="RegExp"))return A0(kh,tme,B_,nme);for(var rme,ame,ome,ime=[],cme=(B_.ignoreCase?"i":"")+(B_.multiline?"m":"")+(B_.unicode?"u":"")+(B_.sticky?"y":""),ume=0,sme=new RegExp(B_.source,cme+"g");(rme=A0(T4,sme,tme))&&!((ame=sme.lastIndex)>ume&&(W6(ime,G6(tme,ume,rme.index)),rme.length>1&&rme.index<tme.length&&S6(V6,ime,R6(rme,1)),ome=rme[0].length,ume=ame,ime.length>=nme));)sme.lastIndex===rme.index&&sme.lastIndex++;return ume===tme.length?!ome&&U6(sme,"")||W6(ime,""):W6(ime,G6(tme,ume)),ime.length>nme?R6(ime,0,nme):ime}:"0".split(void 0,0).length?function(B_,$P){return B_===void 0&&$P===0?[]:A0(kh,this,B_,$P)}:kh,[function(B_,$P){var zP=V0(this),eme=B_==null?void 0:c1(B_,Ff);return eme?A0(eme,B_,zP,$P):A0($_,X2(zP),B_,$P)},function(B_,$P){var zP=z1(this),eme=X2(B_),tme=x_($_,zP,eme,$P,$_!==kh);if(tme.done)return tme.value;var nme=function(pme,gme){var yme,mme=z1(pme).constructor;return mme===void 0||(yme=z1(mme)[B6])==null?gme:function(bme){if(z4(bme))return bme;throw k6(u1(bme)+" is not a constructor")}(yme)}(zP,RegExp),rme=zP.unicode,ame=(zP.ignoreCase?"i":"")+(zP.multiline?"m":"")+(zP.unicode?"u":"")+($6?"g":"y"),ome=new nme($6?"^(?:"+zP.source+")":zP,ame),ime=$P===void 0?4294967295:$P>>>0;if(ime===0)return[];if(eme.length===0)return z6(ome,eme)===null?[eme]:[];for(var cme=0,ume=0,sme=[];ume<eme.length;){ome.lastIndex=$6?0:ume;var fme,lme=z6(ome,$6?G6(eme,ume):eme);if(lme===null||(fme=H6(E2(ome.lastIndex+($6?ume:0)),eme.length))===cme)ume=N6(eme,ume,rme);else{if(W6(sme,G6(eme,cme,ume)),sme.length===ime)return sme;for(var hme=1;hme<=lme.length-1;hme++)if(W6(sme,lme[hme]),sme.length===ime)return sme;ume=cme=fme}}return W6(sme,G6(eme,cme)),sme}]},!!S0(function(){var Ff=/(?:)/,kh=Ff.exec;Ff.exec=function(){return kh.apply(this,arguments)};var x_="ab".split(Ff);return x_.length!==2||x_[0]!=="a"||x_[1]!=="b"}),$6);var q6=`
561
561
  \v\f\r                 \u2028\u2029\uFEFF`,K6=N0("".replace),Y6="["+q6+"]",X6=RegExp("^"+Y6+Y6+"*"),Z6=RegExp(Y6+Y6+"*$"),J6=function(Ff){return function(kh){var x_=X2(V0(kh));return 1&Ff&&(x_=K6(x_,X6,"")),2&Ff&&(x_=K6(x_,Z6,"")),x_}},Q6={start:J6(1),end:J6(2),trim:J6(3)},e3=d2.PROPER,t3=Q6.trim;function n3(Ff){return Ff.length?Ff[0].tagName.toLowerCase():""}H2({target:"String",proto:!0,forced:function(Ff){return S0(function(){return!!q6[Ff]()||"​…᠎"[Ff]()!=="​…᠎"||e3&&q6[Ff].name!==Ff})}("trim")},{trim:function(){return t3(this)}}),H2({global:!0},{globalThis:D0}),ah&&(Mp.fn.append=ah),qp&&(Mp.fn.on=qp),yh&&(Mp.fn.focus=yh),Vp&&(Mp.fn.attr=Vp),Gp&&(Mp.fn.val=Gp),rh&&(Mp.fn.html=rh),Wp&&(Mp.fn.dataset=Wp),zp&&(Mp.fn.addClass=zp),$p&&(Mp.fn.removeClass=$p),fh&&(Mp.fn.children=fh),th&&(Mp.fn.each=th),ch&&(Mp.fn.find=ch);var r3=!1,o3=0,i3=0,a3=null,u3=null,s3=Mp("body");function l3(Ff){r3=!1,u3=null,a3=null,s3.off("mousemove",c3),s3.off("mouseup",l3)}s3.on("mousedown",function(Ff){var kh=Ff.target;if((kh.tagName==="TH"||kh.tagName==="TD")&&kh.style.cursor==="col-resize"){kh.style.cursor="auto",Ff.preventDefault(),r3=!0;var x_=Ff.clientX;o3=x_;var $_=kh.getBoundingClientRect().width;i3=$_,s3.on("mousemove",c3),s3.on("mouseup",l3)}});var c3=eg(function(Ff){if(r3&&u3!=null&&a3!=null){Ff.preventDefault();var kh=Ff.clientX,x_=i3+(kh-o3);(x_=Math.floor(100*x_)/100)<30&&(x_=30),md.setNodes(u3,{width:x_.toString()},{at:a3})}},100),f3={type:"table",renderElem:function(Ff,kh,x_){var $_=function(eme,tme){if(eme.isDisabled())return!1;var nme=eme.selection;if(nme==null||qf.isCollapsed(nme))return!0;var rme=nme.anchor,ame=nme.focus,ome=QO.findPath(eme,tme),ime=Bf.start(eme,ome),cme=Bf.end(eme,ome),ume=Vf.compare(rme,cme)<=0&&Vf.compare(rme,ime)>=0,sme=Vf.compare(ame,cme)<=0&&Vf.compare(ame,ime)>=0;return!!(ume&&sme&&Mf.equals(rme.path.slice(0,3),ame.path.slice(0,3)))}(x_,Ff),B_=Ff.width,$P=B_===void 0?"auto":B_,zP=Pg("div",{className:"table-container","data-selected":QO.isNodeSelected(x_,Ff),on:{mousedown:function(eme){if(eme.target.tagName==="DIV"&&eme.preventDefault(),!x_.isDisabled()){var tme=QO.findPath(x_,Ff),nme=Bf.start(x_,tme),rme=x_.selection;rme!=null?rme.anchor.path[0]!==tme[0]&&x_.select(nme):x_.select(nme)}}}},Pg("table",{width:$P,contentEditable:$_},Pg("colgroup",null,u6(Ff).map(function(eme){var tme=eme.width;return Pg("col",{width:tme===void 0?"auto":tme})})),Pg("tbody",null,kh)));return zP}},d3={type:"table-row",renderElem:function(Ff,kh,x_){return Pg("tr",null,kh)}},p3={type:"table-cell",renderElem:function(Ff,kh,x_){var $_=function(ome,ime){var cme=QO.getParentNode(ome,ime);if(cme==null)return!1;var ume=QO.getParentNode(ome,cme);return ume!=null&&u6(ume).some(function(sme){return sme===ime})}(x_,Ff),B_=Ff,$P=B_.colSpan,zP=$P===void 0?1:$P,eme=B_.rowSpan,tme=eme===void 0?1:eme,nme=B_.isHeader,rme=nme!==void 0&&nme;if(!$_)return Pg("td",{colSpan:zP,rowSpan:tme},kh);var ame=Pg(rme?"th":"td",{colSpan:zP,rowSpan:tme,style:{borderRightWidth:"3px"},on:{mousemove:eg(function(ome){var ime=this.elm;if(ime!=null){var cme=ime.getBoundingClientRect(),ume=cme.left,sme=cme.width,fme=cme.top,lme=cme.height,hme=ome.clientX,pme=ome.clientY;r3||(hme>ume+sme-5&&hme<ume+sme&&pme>fme&&pme<fme+lme?(ime.style.cursor="col-resize",u3=x_,a3=QO.findPath(x_,Ff)):r3||(ime.style.cursor="auto",u3=null,a3=null))}},100)}},kh);return ame}},h3={selector:"table",preParseHtml:function(Ff){var kh=Mp(Ff);if(n3(kh)!=="table")return Ff;var x_=kh.find("tbody");if(x_.length===0)return Ff;var $_=kh.find("tr");return kh.append($_),x_.remove(),kh[0]}},g3=o6.filter;H2({target:"Array",proto:!0,forced:!V4("filter")},{filter:function(Ff){return g3(this,Ff,arguments.length>1?arguments[1]:void 0)}});var v3=Math.floor,y3=N0("".charAt),m3=N0("".replace),b3=N0("".slice),w3=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,E3=/\$([$&'`]|\d{1,2})/g,D3=function(Ff,kh,x_,$_,B_,$P){var zP=x_+Ff.length,eme=$_.length,tme=E3;return B_!==void 0&&(B_=y1(B_),tme=w3),m3($P,tme,function(nme,rme){var ame;switch(y3(rme,0)){case"$":return"$";case"&":return Ff;case"`":return b3(kh,0,x_);case"'":return b3(kh,zP);case"<":ame=B_[b3(rme,1,-1)];break;default:var ome=+rme;if(ome===0)return nme;if(ome>eme){var ime=v3(ome/10);return ime===0?nme:ime<=eme?$_[ime-1]===void 0?y3(rme,1):$_[ime-1]+y3(rme,1):nme}ame=$_[ome-1]}return ame===void 0?"":ame})},S3=k1("replace"),x3=Math.max,C3=Math.min,A3=N0([].concat),O3=N0([].push),k3=N0("".indexOf),B3=N0("".slice),F3="a".replace(/./,"$0")==="$0",T3=!!/./[S3]&&/./[S3]("a","$0")==="";A6("replace",function(Ff,kh,x_){var $_=T3?"$":"$0";return[function(B_,$P){var zP=V0(this),eme=B_==null?void 0:c1(B_,S3);return eme?A0(eme,B_,zP,$P):A0(kh,X2(zP),B_,$P)},function(B_,$P){var zP=z1(this),eme=X2(B_);if(typeof $P=="string"&&k3($P,$_)===-1&&k3($P,"$<")===-1){var tme=x_(kh,zP,eme,$P);if(tme.done)return tme.value}var nme=W0($P);nme||($P=X2($P));var rme=zP.global;if(rme){var ame=zP.unicode;zP.lastIndex=0}for(var ome=[];;){var ime=z6(zP,eme);if(ime===null||(O3(ome,ime),!rme))break;X2(ime[0])===""&&(zP.lastIndex=N6(eme,E2(zP.lastIndex),ame))}for(var cme,ume="",sme=0,fme=0;fme<ome.length;fme++){for(var lme=X2((ime=ome[fme])[0]),hme=x3(C3(v2(ime.index),eme.length),0),pme=[],gme=1;gme<ime.length;gme++)O3(pme,(cme=ime[gme])===void 0?cme:String(cme));var yme=ime.groups;if(nme){var mme=A3([lme],pme,hme,eme);yme!==void 0&&O3(mme,yme);var bme=X2(S6($P,void 0,mme))}else bme=D3(lme,eme,hme,pme,yme,$P);hme>=sme&&(ume+=B3(eme,sme,hme)+bme,sme=hme+lme.length)}return ume+B3(eme,sme)}]},!!S0(function(){var Ff=/./;return Ff.exec=function(){var kh=[];return kh.groups={a:"7"},kh},"".replace(Ff,"$<a>")!=="7"})||!F3||T3);var _3={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(Ff,kh,x_){var $_=Mp(Ff);(kh=kh.filter(function(eme){return!!ed.isText(eme)||!!x_.isInline(eme)})).length===0&&(kh=[{text:$_.text().replace(/\s+/gm," ")}]);var B_=parseInt($_.attr("colSpan")||"1"),$P=parseInt($_.attr("rowSpan")||"1"),zP=$_.attr("width")||"auto";return{type:"table-cell",isHeader:n3($_)==="th",colSpan:B_,rowSpan:$P,width:zP,children:kh}}},P3={selector:"tr:not([data-w-e-type])",parseElemHtml:function(Ff,kh,x_){return{type:"table-row",children:kh.filter(function($_){return QO.getNodeType($_)==="table-cell"})}}},j3={selector:"table:not([data-w-e-type])",parseElemHtml:function(Ff,kh,x_){var $_=Mp(Ff),B_="auto";return function($P,zP){for(var eme="",tme=($P.attr("style")||"").split(";"),nme=tme.length,rme=0;rme<nme;rme++){var ame=tme[rme];if(ame){var ome=ame.split(":");ome[0].trim()==="width"&&(eme=ome[1].trim())}}return eme}($_)==="100%"&&(B_="100%"),$_.attr("width")==="100%"&&(B_="100%"),{type:"table",width:B_,children:kh.filter(function($P){return QO.getNodeType($P)==="table-row"})}}},N3=function(){function Ff(){this.title=HP("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return Ff.prototype.getValue=function(kh){return""},Ff.prototype.isActive=function(kh){return!1},Ff.prototype.exec=function(kh,x_){},Ff.prototype.isDisabled=function(kh){var x_=kh.selection;return x_==null||!qf.isCollapsed(x_)||!!QO.getSelectedElems(kh).some(function($_){var B_=QO.getNodeType($_);return B_==="pre"||B_==="table"||B_==="list-item"||!!kh.isVoid($_)})},Ff.prototype.getPanelContentElem=function(kh){var x_=this;if(this.$content)return this.$content[0];for(var $_=Mp('<div class="w-e-panel-content-table"></div>'),B_=Mp("<span>0 &times; 0</span>"),$P=Mp("<table></table>"),zP=0;zP<10;zP++){for(var eme=Mp("<tr></tr>"),tme=0;tme<10;tme++){var nme=Mp("<td></td>");nme.attr("data-x",tme.toString()),nme.attr("data-y",zP.toString()),eme.append(nme),nme.on("mouseenter",function(rme){var ame=rme.target;if(ame!=null){var ome=Mp(ame).dataset(),ime=ome.x,cme=ome.y;B_[0].innerHTML=ime+1+" &times; "+(cme+1),$P.children().each(function(ume){Mp(ume).children().each(function(sme){var fme=Mp(sme),lme=fme.dataset(),hme=lme.x,pme=lme.y;hme<=ime&&pme<=cme?fme.addClass("active"):fme.removeClass("active")})})}}),nme.on("click",function(rme){rme.preventDefault();var ame=rme.target;if(ame!=null){var ome=Mp(ame).dataset(),ime=ome.x,cme=ome.y;x_.insertTable(kh,cme+1,ime+1)}})}$P.append(eme)}return $_.append($P),$_.append(B_),this.$content=$_,$_[0]},Ff.prototype.insertTable=function(kh,x_,$_){var B_=parseInt(x_,10),$P=parseInt($_,10);if(B_&&$P&&!(B_<=0||$P<=0)){QO.isSelectedEmptyParagraph(kh)&&md.removeNodes(kh,{mode:"highest"});var zP=function(eme,tme){for(var nme=[],rme=0;rme<eme;rme++){for(var ame=[],ome=0;ome<tme;ome++){var ime={type:"table-cell",children:[{text:""}]};rme===0&&(ime.isHeader=!0),ame.push(ime)}nme.push({type:"table-row",children:ame})}return{type:"table",width:"auto",children:nme}}(B_,$P);md.insertNodes(kh,zP,{mode:"highest"})}},Ff}(),I3=function(){function Ff(){this.title=HP("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return Ff.prototype.getValue=function(kh){return""},Ff.prototype.isActive=function(kh){return!1},Ff.prototype.isDisabled=function(kh){return kh.selection==null||QO.getSelectedNodeByType(kh,"table")==null},Ff.prototype.exec=function(kh,x_){this.isDisabled(kh)||md.removeNodes(kh,{mode:"highest"})},Ff}(),L3=function(){function Ff(){this.title=HP("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return Ff.prototype.getValue=function(kh){return""},Ff.prototype.isActive=function(kh){return!1},Ff.prototype.isDisabled=function(kh){var x_=kh.selection;return x_==null||!qf.isCollapsed(x_)||QO.getSelectedNodeByType(kh,"table")==null},Ff.prototype.exec=function(kh,x_){if(!this.isDisabled(kh)){var $_=Y4(Bf.nodes(kh,{match:function(ime){return QO.checkNodeType(ime,"table-cell")},universal:!0}),1),B_=Y4($_[0],2),$P=B_[0],zP=B_[1],eme=QO.getParentNode(kh,$P),tme=(eme==null?void 0:eme.children.length)||0;if(tme!==0){for(var nme={type:"table-row",children:[]},rme=0;rme<tme;rme++)nme.children.push({type:"table-cell",children:[{text:""}]});var ame=Mf.parent(zP),ome=Mf.next(ame);md.insertNodes(kh,nme,{at:ome})}}},Ff}(),R3=function(){function Ff(){this.title=HP("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return Ff.prototype.getValue=function(kh){return""},Ff.prototype.isActive=function(kh){return!1},Ff.prototype.isDisabled=function(kh){var x_=kh.selection;return x_==null||!qf.isCollapsed(x_)||QO.getSelectedNodeByType(kh,"table-row")==null},Ff.prototype.exec=function(kh,x_){if(!this.isDisabled(kh)){var $_=Y4(Bf.nodes(kh,{match:function(tme){return QO.checkNodeType(tme,"table-row")},universal:!0}),1),B_=Y4($_[0],2),$P=B_[0],zP=B_[1],eme=QO.getParentNode(kh,$P);((eme==null?void 0:eme.children.length)||0)<=1?md.removeNodes(kh,{mode:"highest"}):md.removeNodes(kh,{at:zP})}},Ff}(),M3={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},z3=j1("span").classList,$3=z3&&z3.constructor&&z3.constructor.prototype,H3=$3===Object.prototype?void 0:$3,V3=o6.forEach,U3=function(Ff,kh){var x_=[].forEach;return!!x_&&S0(function(){x_.call(null,function(){throw 1},1)})}(),W3=U3?[].forEach:function(Ff){return V3(this,Ff,arguments.length>1?arguments[1]:void 0)},G3=function(Ff){if(Ff&&Ff.forEach!==W3)try{U1(Ff,"forEach",W3)}catch{Ff.forEach=W3}};for(var q3 in M3)M3[q3]&&G3(D0[q3]&&D0[q3].prototype);G3(H3);var K3=function(){function Ff(){this.title=HP("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return Ff.prototype.getValue=function(kh){return""},Ff.prototype.isActive=function(kh){return!1},Ff.prototype.isDisabled=function(kh){var x_=kh.selection;return x_==null||!qf.isCollapsed(x_)||QO.getSelectedNodeByType(kh,"table")==null},Ff.prototype.exec=function(kh,x_){if(!this.isDisabled(kh)){var $_=Y4(Bf.nodes(kh,{match:function(nme){return QO.checkNodeType(nme,"table-cell")},universal:!0}),1),B_=Y4($_[0],2),$P=B_[0],zP=B_[1],eme=QO.getParentNode(kh,$P);if(eme!=null){var tme=QO.getParentNode(kh,eme);tme!=null&&(tme.children||[]).forEach(function(nme,rme){Sf.isElement(nme)&&(nme.children||[]).forEach(function(ame){var ome=QO.findPath(kh,ame);if(ome.length===zP.length&&v0(ome.slice(-1),zP.slice(-1))){var ime={type:"table-cell",children:[{text:""}]};rme===0&&s6(tme)&&(ime.isHeader=!0),md.insertNodes(kh,ime,{at:ome})}})})}}},Ff}(),Y3=function(){function Ff(){this.title=HP("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return Ff.prototype.getValue=function(kh){return""},Ff.prototype.isActive=function(kh){return!1},Ff.prototype.isDisabled=function(kh){var x_=kh.selection;return x_==null||!qf.isCollapsed(x_)||QO.getSelectedNodeByType(kh,"table-cell")==null},Ff.prototype.exec=function(kh,x_){if(!this.isDisabled(kh)){var $_=Y4(Bf.nodes(kh,{match:function(rme){return QO.checkNodeType(rme,"table-cell")},universal:!0}),1),B_=Y4($_[0],2),$P=B_[0],zP=B_[1],eme=QO.getParentNode(kh,$P),tme=(eme==null?void 0:eme.children.length)||0;if(!eme||tme<=1)md.removeNodes(kh,{mode:"highest"});else{var nme=QO.getParentNode(kh,eme);nme!=null&&(nme.children||[]).forEach(function(rme){Sf.isElement(rme)&&(rme.children||[]).forEach(function(ame){var ome=QO.findPath(kh,ame);ome.length===zP.length&&v0(ome.slice(-1),zP.slice(-1))&&md.removeNodes(kh,{at:ome})})})}}},Ff}(),X3=function(){function Ff(){this.title=HP("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return Ff.prototype.getValue=function(kh){var x_=QO.getSelectedNodeByType(kh,"table");return x_!=null&&s6(x_)},Ff.prototype.isActive=function(kh){return!!this.getValue(kh)},Ff.prototype.isDisabled=function(kh){var x_=kh.selection;return x_==null||!qf.isCollapsed(x_)||QO.getSelectedNodeByType(kh,"table")==null},Ff.prototype.exec=function(kh,x_){if(!this.isDisabled(kh)){var $_=!x_,B_=QO.getSelectedNodeByType(kh,"table");B_!=null&&u6(B_).forEach(function($P){return md.setNodes(kh,{isHeader:$_},{at:QO.findPath(kh,$P)})})}},Ff}(),Z3=function(){function Ff(){this.title=HP("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return Ff.prototype.getValue=function(kh){var x_=QO.getSelectedNodeByType(kh,"table");return x_!=null&&x_.width==="100%"},Ff.prototype.isActive=function(kh){return!!this.getValue(kh)},Ff.prototype.isDisabled=function(kh){var x_=kh.selection;return x_==null||!qf.isCollapsed(x_)||QO.getSelectedNodeByType(kh,"table")==null},Ff.prototype.exec=function(kh,x_){if(!this.isDisabled(kh)){var $_={width:x_?"auto":"100%"};md.setNodes(kh,$_,{mode:"highest"})}},Ff}(),J3={renderElems:[f3,d3,p3],elemsToHtml:[{type:"table",elemToHtml:function(Ff,kh){var x_=Ff.width;return'<table style="width: '+(x_===void 0?"auto":x_)+';"><tbody>'+kh+"</tbody></table>"}},{type:"table-row",elemToHtml:function(Ff,kh){return"<tr>"+kh+"</tr>"}},{type:"table-cell",elemToHtml:function(Ff,kh){var x_=Ff,$_=x_.colSpan,B_=$_===void 0?1:$_,$P=x_.rowSpan,zP=$P===void 0?1:$P,eme=x_.isHeader,tme=eme!==void 0&&eme,nme=x_.width,rme=tme?"th":"td";return"<"+rme+' colSpan="'+B_+'" rowSpan="'+zP+'" width="'+(nme===void 0?"auto":nme)+'">'+kh+"</"+rme+">"}}],preParseHtml:[h3],parseElemsHtml:[_3,P3,j3],menus:[{key:"insertTable",factory:function(){return new N3}},{key:"deleteTable",factory:function(){return new I3}},{key:"insertTableRow",factory:function(){return new L3}},{key:"deleteTableRow",factory:function(){return new R3}},{key:"insertTableCol",factory:function(){return new K3}},{key:"deleteTableCol",factory:function(){return new Y3}},{key:"tableHeader",factory:function(){return new X3}},{key:"tableFullWidth",factory:function(){return new Z3}}],editorPlugin:function(Ff){var kh=Ff.insertBreak,x_=Ff.deleteBackward,$_=Ff.deleteForward,B_=Ff.normalizeNode,$P=Ff.insertData,zP=Ff.handleTab,eme=Ff.selectAll,tme=Ff;return tme.insertBreak=function(){QO.getSelectedNodeByType(tme,"table")==null?kh():tme.insertText(`
@@ -630,4 +630,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
630
630
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
631
631
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
632
632
  PERFORMANCE OF THIS SOFTWARE.
633
- ***************************************************************************** */var a=function(){return a=Object.assign||function(Ff){for(var kh,x_=1,$_=arguments.length;x_<$_;x_++)for(var B_ in kh=arguments[x_])Object.prototype.hasOwnProperty.call(kh,B_)&&(Ff[B_]=kh[B_]);return Ff},a.apply(this,arguments)};function i(Ff,kh){var x_=typeof Symbol=="function"&&Ff[Symbol.iterator];if(!x_)return Ff;var $_,B_,$P=x_.call(Ff),zP=[];try{for(;(kh===void 0||kh-- >0)&&!($_=$P.next()).done;)zP.push($_.value)}catch(eme){B_={error:eme}}finally{try{$_&&!$_.done&&(x_=$P.return)&&x_.call($P)}finally{if(B_)throw B_.error}}return zP}function u(Ff){var kh=Ff.defaultContent,x_=kh===void 0?[]:kh,$_=Ff.onCreated,B_=Ff.defaultHtml,$P=B_===void 0?"":B_,zP=Ff.value,eme=zP===void 0?"":zP,tme=Ff.onChange,nme=Ff.defaultConfig,rme=nme===void 0?{}:nme,ame=Ff.mode,ome=ame===void 0?"default":ame,ime=Ff.style,cme=ime===void 0?{}:ime,ume=Ff.className,sme=React.useRef(null),fme=i(React.useState(null),2),lme=fme[0],hme=fme[1],pme=i(React.useState(""),2),gme=pme[0],yme=pme[1],mme=function(_me){$_&&$_(_me);var Cme=rme.onCreated;Cme&&Cme(_me)},bme=function(_me){yme(_me.getHtml()),tme&&tme(_me);var Cme=rme.onChange;Cme&&Cme(_me)},Sme=function(_me){var Cme=rme.onDestroyed;hme(null),Cme&&Cme(_me)};return React.useEffect(function(){if(lme!=null&&eme!==gme)try{lme.setHtml(eme)}catch(_me){console.error(_me)}},[eme]),React.useEffect(function(){var _me;if(sme.current!=null&&lme==null&&!(!((_me=sme.current)===null||_me===void 0)&&_me.getAttribute("data-w-e-textarea"))){var Cme=iye({selector:sme.current,config:a(a({},rme),{onCreated:mme,onChange:bme,onDestroyed:Sme}),content:x_,html:$P||eme,mode:ome});hme(Cme)}},[lme]),React.createElement("div",{style:cme,ref:sme,className:ume})}const EditorWang=()=>{const[Ff,kh]=React.useState(null),[x_,$_]=React.useState(""),B_={placeholder:"请输入内容..."};React.useEffect(()=>()=>{Ff!=null&&(Ff.destroy(),kh(null))},[Ff]);const $P=()=>{const eme=Ff.getHtml();console.log("html",eme),$_(eme)},zP=eme=>{const tme=Ff.selection;if(console.log("range",tme),tme){const nme='<span style="background-color: yellow; color: black;">'.concat(eme,"</span>&nbsp;");Ff.dangerouslyInsertHtml(nme),Ff.move(nme.length)}};return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(u,{defaultConfig:B_,value:x_,onCreated:kh,onChange:$P,mode:"default",style:{height:"200px",overflowY:"hidden"}}),jsxRuntimeExports.jsx("div",{style:{marginTop:"10px"},children:jsxRuntimeExports.jsx("button",{onClick:()=>zP("标签内容"),style:{backgroundColor:"blue",color:"white",padding:"5px 10px",marginRight:"5px"},children:"标签内容"})})]})},Field={Input,TextArea,Password,Search,Number:Number$1,TreeSelect,Select,SearchSelect,WithSingleSelect,WithMultipleSelect,SingleSelect,MultipleSelect,CodeMachine,Checkbox,CheckboxTree,CheckboxGroup,RadioGroup,UploadFile,UploadImage,Switch,DatePicker,Table,Custom};Object.keys(Field).forEach(Ff=>{Field[Ff].displayName="Field.".concat(Ff)});const Layout={FormRow:LayoutFormRow,FormGroupTitle,TableCol};Object.keys(Layout).forEach(Ff=>{Layout[Ff].displayName="Layout.".concat(Ff)});const Setter={OptionSetter};exports.EditorQuill=EditorQuill;exports.EditorWang=EditorWang;exports.Field=Field;exports.FormContainer=FormContainer;exports.FormContainerWrapper=FormContainerWrapper;exports.Layout=Layout;exports.Setter=Setter;
633
+ ***************************************************************************** */var a=function(){return a=Object.assign||function(Ff){for(var kh,x_=1,$_=arguments.length;x_<$_;x_++)for(var B_ in kh=arguments[x_])Object.prototype.hasOwnProperty.call(kh,B_)&&(Ff[B_]=kh[B_]);return Ff},a.apply(this,arguments)};function i(Ff,kh){var x_=typeof Symbol=="function"&&Ff[Symbol.iterator];if(!x_)return Ff;var $_,B_,$P=x_.call(Ff),zP=[];try{for(;(kh===void 0||kh-- >0)&&!($_=$P.next()).done;)zP.push($_.value)}catch(eme){B_={error:eme}}finally{try{$_&&!$_.done&&(x_=$P.return)&&x_.call($P)}finally{if(B_)throw B_.error}}return zP}function u(Ff){var kh=Ff.defaultContent,x_=kh===void 0?[]:kh,$_=Ff.onCreated,B_=Ff.defaultHtml,$P=B_===void 0?"":B_,zP=Ff.value,eme=zP===void 0?"":zP,tme=Ff.onChange,nme=Ff.defaultConfig,rme=nme===void 0?{}:nme,ame=Ff.mode,ome=ame===void 0?"default":ame,ime=Ff.style,cme=ime===void 0?{}:ime,ume=Ff.className,sme=React.useRef(null),fme=i(React.useState(null),2),lme=fme[0],hme=fme[1],pme=i(React.useState(""),2),gme=pme[0],yme=pme[1],mme=function(_me){$_&&$_(_me);var Cme=rme.onCreated;Cme&&Cme(_me)},bme=function(_me){yme(_me.getHtml()),tme&&tme(_me);var Cme=rme.onChange;Cme&&Cme(_me)},Sme=function(_me){var Cme=rme.onDestroyed;hme(null),Cme&&Cme(_me)};return React.useEffect(function(){if(lme!=null&&eme!==gme)try{lme.setHtml(eme)}catch(_me){console.error(_me)}},[eme]),React.useEffect(function(){var _me;if(sme.current!=null&&lme==null&&!(!((_me=sme.current)===null||_me===void 0)&&_me.getAttribute("data-w-e-textarea"))){var Cme=iye({selector:sme.current,config:a(a({},rme),{onCreated:mme,onChange:bme,onDestroyed:Sme}),content:x_,html:$P||eme,mode:ome});hme(Cme)}},[lme]),React.createElement("div",{style:cme,ref:sme,className:ume})}const EditorWang=()=>{const[Ff,kh]=React.useState(null),[x_,$_]=React.useState(""),B_={placeholder:"请输入内容..."};React.useEffect(()=>()=>{Ff!=null&&(Ff.destroy(),kh(null))},[Ff]);const $P=()=>{const eme=Ff.getHtml();console.log("html",eme),$_(eme)},zP=eme=>{const tme=Ff.selection;if(console.log("range",tme),tme){const nme='<span style="background-color: yellow; color: black;">'.concat(eme,"</span>&nbsp;");Ff.dangerouslyInsertHtml(nme),Ff.move(nme.length)}};return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx(u,{defaultConfig:B_,value:x_,onCreated:kh,onChange:$P,mode:"default",style:{height:"200px",overflowY:"hidden"}}),jsxRuntimeExports.jsx("div",{style:{marginTop:"10px"},children:jsxRuntimeExports.jsx("button",{onClick:()=>zP("标签内容"),style:{backgroundColor:"blue",color:"white",padding:"5px 10px",marginRight:"5px"},children:"标签内容"})})]})},Field={Input,TextArea,Password,Search,Number:Number$1,NumberRange,TreeSelect,Select,SearchSelect,WithSingleSelect,WithMultipleSelect,SingleSelect,MultipleSelect,CodeMachine,Checkbox,CheckboxTree,CheckboxGroup,RadioGroup,UploadFile,UploadImage,Switch,DatePicker,Table,Custom};Object.keys(Field).forEach(Ff=>{Field[Ff].displayName="Field.".concat(Ff)});const Layout={FormRow:LayoutFormRow,FormGroupTitle,TableCol};Object.keys(Layout).forEach(Ff=>{Layout[Ff].displayName="Layout.".concat(Ff)});const Setter={OptionSetter};exports.EditorQuill=EditorQuill;exports.EditorWang=EditorWang;exports.Field=Field;exports.FormContainer=FormContainer;exports.FormContainerWrapper=FormContainerWrapper;exports.Layout=Layout;exports.Setter=Setter;