@bwg-ui/core 1.0.0 → 1.1.1

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.
Files changed (83) hide show
  1. package/dist/chunks/AuthContext-CXng9fj0.cjs +1 -0
  2. package/dist/chunks/AuthContext-Ei2P-z4d.js +52 -0
  3. package/dist/chunks/BwgLargeUploader-BOf905_l.cjs +2 -0
  4. package/dist/chunks/BwgLargeUploader-BeI8oV8y.js +3315 -0
  5. package/dist/chunks/FileUtils-BcnoJ2zn.js +140 -0
  6. package/dist/chunks/FileUtils-CCBueCSG.cjs +1 -0
  7. package/dist/chunks/PublicLayout-BiTPwkVq.cjs +35 -0
  8. package/dist/chunks/PublicLayout-g9WMtoZ0.js +138 -0
  9. package/dist/chunks/{QuickServiceToggle-y7esp1kp.js → SSOHandler-DVa4JKKb.js} +14831 -14630
  10. package/dist/chunks/SSOHandler-DiwKoTdN.cjs +183 -0
  11. package/dist/chunks/ScreenProtectContext-ofv2QgMp.cjs +1 -0
  12. package/dist/chunks/ScreenProtectContext-zByHldrr.js +114 -0
  13. package/dist/chunks/SearchBoxContext-B1nxG-Wd.cjs +1 -0
  14. package/dist/chunks/{ServiceCodeContext-CDZMr3Mm.js → SearchBoxContext-DhKP2pQj.js} +39 -39
  15. package/dist/chunks/{UtilsContext-B16Gh9LL.cjs → UtilsContext-CLJwXO1Q.cjs} +1 -1
  16. package/dist/chunks/{UtilsContext-BbfZYiMR.js → UtilsContext-CwVwmfrg.js} +9 -9
  17. package/dist/chunks/{codeStore-bxk_q1sl.js → codeStore-9alVvK1W.js} +1 -1
  18. package/dist/chunks/{codeStore-Dt6j826J.cjs → codeStore-B_4WPxpS.cjs} +1 -1
  19. package/dist/chunks/envUtils-C9Gf5aek.js +29 -0
  20. package/dist/chunks/envUtils-CduTHoHu.cjs +1 -0
  21. package/dist/chunks/menuStore-BwLORbDu.cjs +1 -0
  22. package/dist/chunks/{favoriteStore-CguRSEcH.js → menuStore-DXn19Xnr.js} +136 -123
  23. package/dist/chunks/{popupStore-CVD8SPTa.cjs → popupStore-D_-Wpcao.cjs} +1 -1
  24. package/dist/chunks/{popupStore-Dp_fqtim.js → popupStore-JBIRLYTL.js} +1 -1
  25. package/dist/chunks/{serviceConfig-BJBsdee_.js → serviceConfig-4iBLfLzF.js} +176 -205
  26. package/dist/chunks/serviceConfig-B5UJqk4b.cjs +2 -0
  27. package/dist/components/common/BwgCmptArea.d.ts +84 -6
  28. package/dist/components/common/BwgCol.d.ts +19 -0
  29. package/dist/components/common/BwgConfigProvider.d.ts +2 -1
  30. package/dist/components/common/BwgGrid.d.ts +9 -4
  31. package/dist/components/common/BwgInfoArea.d.ts +2 -1
  32. package/dist/components/common/BwgRow.d.ts +19 -0
  33. package/dist/components/common/BwgTitleBox.d.ts +5 -1
  34. package/dist/components/common/BwgView.d.ts +2 -13
  35. package/dist/components/common/SSOHandler.d.ts +2 -0
  36. package/dist/components/common/SearchBox.d.ts +59 -7
  37. package/dist/components/common/index.cjs +1 -1
  38. package/dist/components/common/index.d.ts +19 -16
  39. package/dist/components/common/index.js +20 -17
  40. package/dist/components/core/BwgLargeUploader.d.ts +4 -1
  41. package/dist/components/core/BwgSearch.d.ts +4 -0
  42. package/dist/components/core/BwgUploader.d.ts +30 -7
  43. package/dist/components/core/index.cjs +1 -1
  44. package/dist/components/core/index.js +1 -1
  45. package/dist/components/layout/ProgressOverlay.d.ts +10 -0
  46. package/dist/components/layout/ProtectLayout.d.ts +6 -0
  47. package/dist/components/layout/PublicLayout.d.ts +6 -0
  48. package/dist/components/layout/index.cjs +1 -0
  49. package/dist/components/layout/index.d.ts +3 -0
  50. package/dist/components/layout/index.js +6 -0
  51. package/dist/index.cjs +1 -1
  52. package/dist/index.d.ts +1 -0
  53. package/dist/index.js +304 -289
  54. package/dist/provider/contexts/AuthContext.d.ts +12 -0
  55. package/dist/provider/contexts/ScreenProtectContext.d.ts +21 -0
  56. package/dist/provider/contexts/index.d.ts +2 -0
  57. package/dist/provider/index.cjs +1 -1
  58. package/dist/provider/index.js +25 -19
  59. package/dist/stores/index.cjs +1 -1
  60. package/dist/stores/index.js +5 -5
  61. package/dist/styles/assets/images/backgrounds/krx_login_bg.png +0 -0
  62. package/dist/styles/assets/images/contents/icon/ico-lockscreen.svg +44 -0
  63. package/dist/styles/assets/images/logos/krx-logo-full.svg +35 -0
  64. package/dist/styles/components.css +130 -17
  65. package/dist/styles/global.css +19 -0
  66. package/dist/styles/layout.css +108 -35
  67. package/dist/styles/login.css +39 -33
  68. package/dist/styles/variables.css +221 -5
  69. package/dist/types/global.d.ts +2 -0
  70. package/dist/utils/FileUtils.d.ts +7 -0
  71. package/dist/utils/envUtils.d.ts +8 -0
  72. package/dist/utils/index.cjs +1 -1
  73. package/dist/utils/index.d.ts +1 -0
  74. package/dist/utils/index.js +105 -103
  75. package/package.json +32 -5
  76. package/dist/chunks/BwgLargeUploader-ByN1XWV4.js +0 -809
  77. package/dist/chunks/BwgLargeUploader-CU0-MVk4.cjs +0 -1
  78. package/dist/chunks/QuickServiceToggle-CiCuWfCF.cjs +0 -183
  79. package/dist/chunks/ServiceCodeContext--ZnMtjzD.cjs +0 -1
  80. package/dist/chunks/favoriteStore-TgeeY32l.cjs +0 -1
  81. package/dist/chunks/messageUtils-9DXOwada.js +0 -117
  82. package/dist/chunks/messageUtils-RjJD_ArW.cjs +0 -1
  83. package/dist/chunks/serviceConfig-Cr2P4yr4.cjs +0 -2
@@ -1,183 +0,0 @@
1
- "use strict";const _=require("./jsx-runtime-CeSfJrVB.cjs"),Ot=require("./serviceConfig-Cr2P4yr4.cjs"),ut=require("@ant-design/icons"),X=require("antd"),E=require("react"),St=require("realgrid"),ps=require("realgrid-react"),jo=require("react-dom"),Ha=require("./ServiceCodeContext--ZnMtjzD.cjs"),ys=require("./favoriteStore-TgeeY32l.cjs"),za=require("./_commonjsHelpers-DwGv2jUC.cjs"),Bd=require("react-rnd");function hc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ui=hc(ut),v=hc(E);var Tr={},bs;function Wd(){if(bs)return Tr;bs=1;var e=jo;if(process.env.NODE_ENV==="production")Tr.createRoot=e.createRoot,Tr.hydrateRoot=e.hydrateRoot;else{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Tr.createRoot=function(r,n){t.usingClientEntryPoint=!0;try{return e.createRoot(r,n)}finally{t.usingClientEntryPoint=!1}},Tr.hydrateRoot=function(r,n,o){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(r,n,o)}finally{t.usingClientEntryPoint=!1}}}return Tr}var qd=Wd();const Ud="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZVDbDcIwDHSiqL90AzoCI5S/fvQBEwATIDYoE7BCRwjqAtmAsEE3gAlqzlFBKbXknJ2cL5cQRcF13SIf9Bd63mmHdcN5nsbbJm6UtY6bxlGaCunNZZmTUpniqhpQvIhZ8AlcI+9QXYHYIb3BgQ0ETAJ36BvUmQiDuBV19TNdFBkliUyK0lX1fbc0bkyL1WF6D7UzbBxnpKCi9YHG0UPeoz6BePt+h55UxMMA9NMrPa68BDLiAxmcQh0cAM62AAAAAElFTkSuQmCC",Kd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZZDLDcJADETHUe7QQVJC6AAqACoAKkCcESh8JI60kBKgg3TA0kE6gAISzHgj0BJ8sWw/j2cXCCI7aD446g2diDp1aWyWaz9sxmHhNlJSyUCDnlQeQpEKm5UCDwgqvHBnTji4MvcEKGw3FsVFDeCmCCbMYwIpQY4wMnX5mj5pKrXfTFSxc1sp/o03yLlZaoSpRFhme53/QF4FmNl9txbH8wuC5893tEo1PZivBs6/sgVXBlv9BpvVRX62Og6eAAAAAElFTkSuQmCC",Gd=[{label:"엑셀다운로드",tag:"excel"},{label:"엑셀(제목포함)",tag:"withTitleExcel"},{label:"-"},{label:"필터",type:"check",checked:!1,tag:"filter"},{label:"열고정",tag:"fixedCol"},{label:"행고정",tag:"fixedRow"},{label:"고정해제",tag:"fixedCancel"},{label:"-"},{label:"숨기기",tag:"hide"},{label:"숨기기해제",tag:"hideClear"}],Yd=[{label:"엑셀다운로드",tag:"excel"},{label:"엑셀(들여쓰기 표시)",tag:"showIndentExcel"},{label:"엑셀(제목포함)",tag:"withTitleExcel"},{label:"-"},{label:"필터",type:"check",checked:!1,tag:"filter"},{label:"열고정",tag:"fixedCol"},{label:"행고정",tag:"fixedRow"},{label:"고정해제",tag:"fixedCancel"},{label:"-"},{label:"숨기기",tag:"hide"},{label:"숨기기해제",tag:"hideClear"}],Xd=({children:e})=>{const[t,r]=E.useState(!1),[n,o]=E.useState(null);return t?_.jsxRuntimeExports.jsx("div",{style:{padding:"20px",border:"1px solid #ff4d4f",borderRadius:"6px",backgroundColor:"#fff2f0",margin:"10px"},children:_.jsxRuntimeExports.jsx(X.Alert,{message:"리얼그리드 로드 실패",description:_.jsxRuntimeExports.jsxs("div",{children:[_.jsxRuntimeExports.jsx("p",{children:"리얼그리드 라이센스 또는 초기화 중 오류가 발생했습니다."}),_.jsxRuntimeExports.jsxs("p",{style:{fontSize:"12px",color:"#666",marginTop:"8px"},children:["오류: ",n?.message||"알 수 없는 오류"]}),_.jsxRuntimeExports.jsx(X.Button,{type:"primary",size:"small",style:{marginTop:"8px"},onClick:()=>{r(!1),o(null),window.location.reload()},children:"다시 시도"})]}),type:"error",showIcon:!0})}):_.jsxRuntimeExports.jsx(Qd,{onError:i=>{console.error("BwgGrid 에러:",i),o(i),r(!0)},children:e})};class Qd extends E.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,r){this.props.onError(t)}render(){return this.state.hasError?null:this.props.children}}const Zd=E.forwardRef(({type:e="nrml",gridDivStyle:t,gridDivClassName:r,gridColumns:n,gridOptions:o,gridEvents:i,bindRef:a,gridContext:s,renderers:l},c)=>{const u=E.useRef(null),d=($,T,H,B)=>{let q=[],K=[];const ne="treeNode";for(let Z in $){let te=$[Z];q[te[H]]=$[Z];let ie=q[te[T]];if(ie==null||ie=="-"){K.push(te);continue}ie[ne]==null&&(ie[ne]=[]),ie[ne].push(te)}return K},f=E.useCallback($=>$.map(T=>({fieldName:T.fieldName,dataType:T.dataType||"text"})),[]),g=E.useCallback($=>$.map(T=>({...T,header:{template:T.required?`<img src='${Ud}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:T.editable?`<img src='${Kd}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:"${headerText}",values:{headerText:T.header?.text??""}},styleName:T.dataType==="number"?"right":T.styleName||"center"})),[]);E.useImperativeHandle(c,()=>({addAllData($,T){const H=u.current?.gridView.getCurrent().dataRow;if(u.current?.dataProvider instanceof St.LocalDataProvider){u.current.dataProvider.clearRows();try{u.current.dataProvider.fillJsonData($)}catch(B){console.error("fillJsonData 오류:",B)}}if(u.current?.dataProvider instanceof St.LocalTreeDataProvider){if(u.current.dataProvider.clearRows(),T?.treeOption?.dataField==null||T?.treeOption?.parentField==null)return;const B={rows:"treeNode"};let q=d($,T.treeOption?.parentField,T.treeOption?.dataField);u.current.dataProvider.fillJsonData({treeNode:q},B),T.treeOption.isExpand&&u.current.gridView?.expandAll()}T?.isCurrent?u.current?.gridView.setCurrent({dataRow:H}):u.current?.gridView.setCurrent({dataRow:0})},getGridInstance:()=>u.current,getCurrentRow:()=>u.current?.gridView.getCurrent().dataRow??-1,getCurrentIndex:()=>u.current?.gridView.getCurrent().itemIndex??-1,dp:u.current?.dataProvider??null,vw:u.current?.gridView??null}));const p=E.useCallback(($,T,H)=>{if(a!==void 0&&H>=0){let B=$.getDataSource().getJsonRow(H);a?.current?.setFieldsValue(B)}$.setCurrent({dataRow:0}),i?.onCurrentRowChanged&&i?.onCurrentRowChanged($,T,H)},[a,i]),y=E.useCallback(($,T,H)=>{const B=T.fieldName??"";a?.current?.getFieldInstance(B)&&a?.current.setFieldValue(B,H),i?.onEditChange&&i?.onEditChange($,T,H)},[a,i]),h=E.useCallback(($,T,H)=>{const B=$.getOrgFieldName(H),q=$.getValue(T,H);a?.current?.setFieldValue(B,q)},[a]),x=E.useCallback(($,T,H,B)=>{const q=$.getColumn(B).name??"",K=$.getValue(T,B);a?.current?.getFieldInstance(q)&&a?.current.setFieldValue(q,K),i?.onCellEdited&&i?.onCellEdited($,T,H,B)},[a,i]),m=E.useCallback($=>{},[]),S=E.useCallback(()=>{if(!u.current)return;const $=u.current.gridView,T=$.getDataSource(),H=["onKeyDown"],B=["onRowInserted"];Object.keys(i??{}).map(q=>{H.includes(q)?$[q+"Add"]=i?.[q]:$[q]=i?.[q],B.includes(q)?T[q+"Add"]=i?.[q]:T[q]=i?.[q]}),T instanceof St.LocalDataProvider&&(T.onRowInserted=(q,K)=>{K<0||(setTimeout(function(){$?.setCurrent({dataRow:K})},1),q.onRowInsertedAdd!==void 0&&q.onRowInsertedAdd(q,K))}),$.onKeyDown=function(q,K){if(K.code=="Space"){let ne=q.getSelectedItems(!0);for(const Z in ne)q.isCheckable(ne[Z])&&(q.isCheckedItem(ne[Z])?q.checkItem(ne[Z],!1,!1):q.checkItem(ne[Z],!0,!1))}return q.onKeyDownAdd!==void 0&&q.onKeyDownAdd(q,K),!0},u.current.gridView.onCurrentRowChanged=p,u.current.gridView.onEditChange=y,u.current.gridView.getDataSource().onValueChanged=h,u.current.gridView.onCellEdited=x,u.current.gridView.onDataLoadComplated=m},[p,y,h,x,m]),R=E.useCallback($=>{if($){try{$.gridView.setSortingOptions({enabled:!0}),$.gridView.sortMode=St.SortMode.EXPLICIT,$.gridView.editorOptions.viewGridInside=!0,$.gridView instanceof St.TreeView&&$.gridView.setTreeOptions({expandWhenSetData:St.ExpandWhenSetData.REMAIN_AND_EXPAND,expanderIconStyle:St.TreeExpanderIconStyle.SQUARE,iconVisible:!1,lineVisible:!0}),$.gridView.setDisplayOptions({showEmptyMessage:!0,emptyMessage:"조회된 데이터가 존재하지 않습니다.",useFocusClass:!0,minRowHeight:o?.display?.minRowHeight||43,maxRowHeight:o?.display?.maxRowHeight||100,rowHeight:o?.display?.rowHeight||43,rowChangeDelay:o?.display?.rowChangeDelay||0,selectionStyle:o?.display?.selectionStyle||St.SelectionStyle.ROWS,fitStyle:o?.display?.fitStyle||St.GridFitStyle.FILL,useAlternateRowStyle:o?.display?.useAlternateRowStyle||!1}),$.gridView.setEditOptions({commitWhenExitLast:!0,columnEditableFirst:!1,commitByCell:!0,commitWhenLeave:!0,crossWhenExitLast:!0,confirmWhenDelete:!1,deletable:!1,revertable:!1,showOnlyValidationMessage:!0,editable:o?.edit?.editable||!1,validateOnEdited:o?.edit?.validateOnEdited||!1}),$.gridView.setCopyOptions({singleMode:o?.copy?.singleMode||!1}),$.gridView.setPasteOptions({selectBlockPaste:!0,checkReadOnly:!0,throwValidationError:!1}),$.gridView.header.height=o?.header?.height||43,$.gridView.header.styleName=o?.header?.styleName||"bwgGridHeader",o?.container?.radio?$.gridView.setCheckBar({exclusive:o?.container?.radio||!1}):$.gridView.setCheckBar({visible:o?.container?.check||!1,showAll:o?.container?.checkAll||!1}),$.gridView.setStateBar({visible:o?.container?.state||!1}),$.gridView.rowIndicator.visible=o?.container?.indicator||!1,$.gridView instanceof St.GridView&&($.gridView.groupPanel.visible=o?.container?.panel||!1),$.gridView.setFooters({visible:o?.container?.footer||!1}),$.gridView.setHeader({visible:o?.container?.header||!0}),$.gridView.formatOptions.numberFormat="#,##0"}catch(T){console.log("그리드 옵션 설정 중 오류:",T)}try{$.gridView instanceof St.TreeView?$.gridView.setContextMenu(Yd):$.gridView.setContextMenu(Gd),$.gridView.onContextMenuItemClicked=function(T,H,B){if(!(!B||!B.column)){if(H.tag=="excel")j(T,{isTitle:!1},s?.excel);else if(H.tag=="showIndentExcel")j(T,{isTitle:!1,treeBlank:!0},s?.excel);else if(H.tag=="withTitleExcel")j(T,{isTitle:!0,treeBlank:!1},s?.excel);else if(H.tag=="filter")A(T,H);else if(H.tag=="fixedCol"){const K=T.getDataSource().getFieldIndex(B.column);T.setFixedOptions({colCount:K})}else if(H.tag=="fixedRow")T.setFixedOptions({rowCount:(B.itemIndex||0)+1});else if(H.tag=="fixedCancel")T.setFixedOptions({colCount:0,rowCount:0});else if(H.tag=="hide")T.setColumnProperty(B.column,"visible",!1),T._hideCols[T._hideCols.length]=B.column;else if(H.tag=="hideClear")for(var q=0;q<T._hideCols.length;q++)T.setColumnProperty(T._hideCols[q],"visible",!0)}}}catch(T){console.log("컨텍스트 설정 중 오류:",T)}}},[o]),b=$=>{if(!(!l||l.length===0))try{l.forEach(T=>{const{name:H,renderer:B}=T;if(H&&B){const q=typeof B=="function"?new B:B;$.gridView.registerCustomRenderer(H,q)}})}catch(T){console.error("커스텀 렌더러 초기화 중 오류:",T)}},w=$=>{o?.layout?.colspan&&o.layout.colspan.length>0&&o?.layout?.colspan.forEach(T=>{const H=$.gridView.layoutByColumn(T.fieldName);if(H){const B=T.span;H.spanCallback=function(q,K,ne){return B}}})},C=()=>{if(u.current)if(console.log("@@@@@@ handleGridInit",l),e==="nrml"){const $=u.current;R($),b($),n&&n.length>0&&($.gridView.getDataSource().setFields(f(n)),$.gridView.setColumns(g(n))),w($)}else{const $=u.current;R($),b($),n&&n.length>0&&($.gridView.getDataSource().setFields(f(n)),$.gridView.setColumns(g(n))),w(u.current)}},j=($,T,H)=>{const B=$.getDataSource();let q=H?.footer==null?"default":H.footer;B.getRowCount()<1&&(q="hidden");let K={type:"excel",target:"local",allItems:!1,lookupDisplay:!0,compatibility:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!T?.treeBlank,footer:q,sheetName:"",documentTitle:{},documentSubtitle:{},documentTail:{},fileName:H?.fileName||"sample.xlsx"};B instanceof St.LocalTreeDataProvider&&(K.indenting=!!T?.treeBlank),H?.isCellMerge==!0&&(K.separateRows=!1),Ot.isEmpty(H?.sheetName)==!1&&(K.sheetName=H?.sheetName),T?.isTitle&&(K.documentTitle={message:Ot.isSafeEmpty(H?.mainTitle,"No Title"),visible:!0,styleName:"documentStyle",spaceTop:1,spaceBottom:0,height:43},Ot.isEmpty(H?.subTitle)==!1&&(K.documentSubtitle={message:H?.subTitle,visible:!0,styleName:"center",height:20}),Ot.isEmpty(H?.tailTitle)==!1&&(K.documentTail={message:H?.tailTitle,visible:!0,styleName:"documentStyle"})),$.exportGrid(K)},A=($,T)=>{const H=$.getDataSource(),B=H.getOrgFieldNames();if(T.checked)for(var q=0;q<B.length;q++){let ne=[],Z=H.getDistinctValues(B[q])??[];if(Z.length==0)continue;let te=$.columnByName(B[q]);for(var K=0;K<Z.length;K++){if(Z[K]==null)continue;let ie=te.values!=null&&te.values.indexOf(Z[K])!=-1?te?.labels?.[te.values.indexOf(Z[K])]:Z[K];Ot.isEmpty(ie)&&(Ot.isEmpty(Z[K])?ie=" ":ie=Z[K]);let ge="";Z[K]==null?ge="value="+Z[K]:ge="value='"+Z[K]+"'",ne.push({name:ie,criteria:ge})}$.setColumnFilters(B[q],ne)}else for(var q=0;q<B.length;q++)$.clearColumnFilters(B[q]),$.activateAllColumnFilters(B[q],!1),$.clearColumnFilters(B[q])};E.useEffect(()=>{if(u.current&&u.current.gridView)if(e==="nrml"){const $=u.current;R($)}else{const $=u.current;R($)}},[e,o,R]),E.useEffect(()=>{!u.current||!n||n.length===0||C()},[n]),E.useEffect(()=>{u.current&&S()},[i,S]);const[M,V]=E.useState(!1),[D,N]=E.useState(""),F=E.useRef(null);E.useEffect(()=>{M&&setTimeout(()=>{F.current?.focus?.()},0)},[M]),E.useEffect(()=>()=>{if(u.current)try{const $=u.current;$.gridView&&($.gridView.onDataLoadComplated=void 0,$.gridView.onCurrentRowChanged=void 0,$.gridView.onCellClicked=void 0,$.gridView.onCellDblClicked=void 0,$.gridView.onEditRowChanged=void 0,$.gridView.onItemChecked=void 0,$.gridView.onItemAllChecked=void 0,$.gridView.onColumnCheckedChanged=void 0,$.gridView.onCellButtonClicked=void 0,$.gridView.onEditChange=void 0,$.gridView.onCellEdited=void 0,$.gridView.onKeyUp=void 0,$.gridView.onKeyDown=void 0,$.gridView.onWheel=void 0,$.gridView.onValidateColumn=void 0,$.gridView.onValidateRow=void 0,$.gridView.onValidationFail=void 0,$.gridView.onRowInserting=void 0,$.gridView.onCellItemClicked=void 0,$.gridView.onShowEditor=void 0,$.gridView.getDataSource()&&($.gridView.getDataSource().clearRows(),$.gridView.getDataSource().setFields([])),$.gridView.getDataSource().clearRows())}catch($){console.warn("⚠️ BwgGrid cleanup error:",$)}},[]);const L=E.useCallback($=>{I($)},[]),I=E.useCallback($=>{const T=u.current?.gridView;if(T?.isFiltered()){console.log("EE:: [그리드 Filtering 으로 인한 오류] 그리드 내 Filter를 해제 후 진행해 주십시오.");return}if(T?.commit(),Ot.isEmpty($))return;const H=T?.getCurrent().itemIndex??-1;if(H<0)return;const B={value:$,startIndex:H+1,wrap:!0,caseSensitive:!1,partialMatch:!0},q=T?.searchCell(B);T?.setCurrent(q)},[]),z=E.useCallback($=>{$.key==="Escape"&&($.preventDefault(),V(!1))},[]),P=E.useCallback($=>{$.ctrlKey&&$.code==="KeyF"&&($.preventDefault(),N(""),V(!M))},[M]),W={searchRow:L,searchEnter:I,handleCloseKeyword:z,handleSearch:P},Y=E.useMemo(()=>({...t,position:"relative",width:t?.width||"100%",height:t?.height||"100%"}),[t]);return _.jsxRuntimeExports.jsx(Xd,{children:_.jsxRuntimeExports.jsxs("div",{style:Y,className:r,onKeyDown:$=>W.handleSearch($),children:[M&&_.jsxRuntimeExports.jsx("div",{className:"grid-search-box",children:_.jsxRuntimeExports.jsxs(X.Flex,{gap:3,children:[_.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Button:{controlHeight:32},Input:{controlHeight:32}}},children:_.jsxRuntimeExports.jsxs(X.Space.Compact,{children:[_.jsxRuntimeExports.jsx(X.Button,{icon:_.jsxRuntimeExports.jsx(ut.SearchOutlined,{})}),_.jsxRuntimeExports.jsx(X.Input,{ref:F,value:D,name:"srchField",autoComplete:"off",onKeyUp:$=>W.handleCloseKeyword($),onChange:$=>N($.target.value),onPressEnter:$=>W.searchEnter($)})]})}),_.jsxRuntimeExports.jsx(X.Button,{variant:"solid",icon:_.jsxRuntimeExports.jsx(ut.CloseOutlined,{}),onClick:()=>V(!1)})]})}),e==="nrml"?_.jsxRuntimeExports.jsx(ps.RealGridReact,{ref:u,autoGenerateField:!0,onInitialized:C}):_.jsxRuntimeExports.jsx(ps.RealTreeReact,{ref:u,autoGenerateField:!0,onInitialized:C})]})})}),Jd=e=>({initContent(t){this._root=qd.createRoot(t)},render(t,r,n,o){const i=this._root;i&&e(t,r,n,o,i)},clearContent(t){const r=this._root;r&&setTimeout(()=>{r&&(r.unmount(),this._root=null)},0)},canClick(t){return!0},click(){return{}}}),Ki=({row1:e,row2:t,row3:r,row4:n,row5:o,style:i,className:a})=>{const s=E.useMemo(()=>{let d=0;return e.forEach(f=>{const g=f;g?.props?.["data-colspan"]?d+=parseInt(String(g.props["data-colspan"])):d+=1}),d>0?100/d:0},[e]),l=d=>{const f=d;if(f?.props?.["data-colspan"]){const g=parseInt(String(f.props["data-colspan"]));return s*g+(g-1)*8}return s},c=d=>{if(!d||typeof d!="object")return d;const f=d;if(!f.props)return d;const p={...f.props.style||{},width:"100%"};return E.cloneElement(f,{...f.props,style:p})},u=(d,f)=>!d||d.length===0?null:_.jsxRuntimeExports.jsx(X.Flex,{gap:"middle",className:"erp-cmm-form",children:d.map((g,p)=>{const y=l(g),h=c(g);return _.jsxRuntimeExports.jsx("div",{style:{width:`${y}%`},className:"form-component-wrapper",children:h},`row-${f}-col-${p}`)})},`row-${f}`);return _.jsxRuntimeExports.jsxs(X.Flex,{gap:"small",vertical:!0,style:i,className:a,children:[u(e,1),t&&u(t,2),r&&u(r,3),n&&u(n,4),o&&u(o,5)]})},{Panel:xs}=X.Collapse,Ba=E.forwardRef(({reqRows:e,subRows:t},r)=>{const[n]=X.Form.useForm(),[o,i]=E.useState("1");E.useImperativeHandle(r,()=>({getFormData:()=>n.getFieldsValue(),setFormData:s=>{n.setFieldsValue(s)},resetForm:()=>{n.resetFields()},validateForm:async()=>{try{return{success:!0,data:await n.validateFields()}}catch(s){return{success:!1,error:s}}}}));const a=()=>{i(s=>s.includes("subRows")?s.filter(l=>l!=="subRows"):[...s,"subRows"])};return console.log({reqRows:e,subRows:t}),_.jsxRuntimeExports.jsx(_.jsxRuntimeExports.Fragment,{children:_.jsxRuntimeExports.jsx(X.Form,{form:n,layout:"inline",className:"bwgview-header-form",style:{display:"flex",flexWrap:"wrap",gap:"8px",alignItems:"flex-end"},labelCol:{flex:"100px"},labelAlign:"left",children:_.jsxRuntimeExports.jsxs("div",{style:{position:"relative",width:"100%"},children:[t&&_.jsxRuntimeExports.jsx("div",{style:{position:"absolute",top:"15px",left:"-9px",zIndex:10},children:o.includes("subRows")?_.jsxRuntimeExports.jsx(X.Tooltip,{title:"접기",children:_.jsxRuntimeExports.jsx("span",{className:"search-collapsed-arrow",onClick:a,children:_.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:_.jsxRuntimeExports.jsx("path",{d:"M5.28321 0.986589C4.88285 0.482264 4.11715 0.482265 3.71679 0.986589L1.0243 4.37824C0.50404 5.0336 0.970753 6 1.80751 6L7.19249 6C8.02925 6 8.49596 5.0336 7.9757 4.37824L5.28321 0.986589Z",fill:"#AEB9C4"})})})}):_.jsxRuntimeExports.jsx(X.Tooltip,{title:"펼치기",children:_.jsxRuntimeExports.jsx("span",{className:"search-collapsed-arrow",onClick:a,children:_.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:_.jsxRuntimeExports.jsx("path",{d:"M5.28321 5.01341C4.88285 5.51774 4.11715 5.51773 3.71679 5.01341L1.0243 1.62176C0.50404 0.966397 0.970753 1.64312e-07 1.80751 2.37464e-07L7.19249 7.08234e-07C8.02925 7.81386e-07 8.49596 0.966399 7.9757 1.62176L5.28321 5.01341Z",fill:"#AEB9C4"})})})})}),_.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Collapse:{}}},children:_.jsxRuntimeExports.jsxs(X.Collapse,{activeKey:["reqRows",...o.includes("subRows")?["subRows"]:[]],onChange:i,className:"searchbox-collapse",bordered:!1,ghost:!0,children:[e&&_.jsxRuntimeExports.jsx(xs,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"disabled",children:_.jsxRuntimeExports.jsx(Ki,{...e})},"reqRows"),t&&_.jsxRuntimeExports.jsx(xs,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"icon",children:_.jsxRuntimeExports.jsx(Ki,{...t})},"subRows")]})})]})})})});function Gi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ef(e){if(Array.isArray(e))return Gi(e)}function gc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wa(e,t){if(e){if(typeof e=="string")return Gi(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gi(e,t):void 0}}function tf(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oe(e){return ef(e)||gc(e)||Wa(e)||tf()}function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ie.apply(null,arguments)}var rf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function mc(e){if(Array.isArray(e))return e}function nf(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function pc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G(e,t){return mc(e)||nf(e,t)||Wa(e,t)||pc()}function ve(e){"@babel/helpers - typeof";return ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ve(e)}function of(e,t){if(ve(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ve(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yc(e){var t=of(e,"string");return ve(t)=="symbol"?t:t+""}function O(e,t,r){return(t=yc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function af(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ft(e,t){if(e==null)return{};var r,n,o=af(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var di={exports:{}};/*!
4
- Copyright (c) 2018 Jed Watson.
5
- Licensed under the MIT License (MIT), see
6
- http://jedwatson.github.io/classnames
7
- */var Cs;function sf(){return Cs||(Cs=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(di)),di.exports}var lf=sf();const ae=za.getDefaultExportFromCjs(lf),nt=Math.round;function fi(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const ws=(e,t,r)=>r===0?e:e/100;function vn(e,t){const r=t||255;return e>r?r:e<0?0:e}let Je=class bc{constructor(t){O(this,"isValid",!0),O(this,"r",0),O(this,"g",0),O(this,"b",0),O(this,"a",1),O(this,"_h",void 0),O(this,"_s",void 0),O(this,"_l",void 0),O(this,"_v",void 0),O(this,"_max",void 0),O(this,"_min",void 0),O(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let o=function(i){return n.startsWith(i)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(t instanceof bc)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=vn(t.r),this.g=vn(t.g),this.b=vn(t.b),this.a=typeof t.a=="number"?vn(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=nt(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){const n=this._c(t),o=r/100,i=s=>(n[s]-this[s])*o+this[s],a={r:nt(i("r")),g:nt(i("g")),b:nt(i("b")),a:nt(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>nt((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=nt(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=nt(this.getSaturation()*100),n=nt(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const o=this.clone();return o[t]=vn(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){const f=nt(n*255);this.r=f,this.g=f,this.b=f}let i=0,a=0,s=0;const l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const d=n-c/2;this.r=nt((i+d)*255),this.g=nt((a+d)*255),this.b=nt((s+d)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;const i=nt(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=nt(n*(1-r)*255),u=nt(n*(1-r*l)*255),d=nt(n*(1-r*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const r=fi(t,ws);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=fi(t,ws);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=fi(t,(n,o)=>o.includes("%")?nt(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var so=2,Ss=.16,cf=.05,uf=.05,df=.15,xc=5,Cc=4,ff=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Es(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-so*t:Math.round(e.h)+so*t:n=r?Math.round(e.h)+so*t:Math.round(e.h)-so*t,n<0?n+=360:n>=360&&(n-=360),n}function Rs(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Ss*t:t===Cc?n=e.s+Ss:n=e.s+cf*t,n>1&&(n=1),r&&t===xc&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function $s(e,t,r){var n;return r?n=e.v+uf*t:n=e.v-df*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function jn(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new Je(e),o=n.toHsv(),i=xc;i>0;i-=1){var a=new Je({h:Es(o,i,!0),s:Rs(o,i,!0),v:$s(o,i,!0)});r.push(a)}r.push(n);for(var s=1;s<=Cc;s+=1){var l=new Je({h:Es(o,s),s:Rs(o,s),v:$s(o,s)});r.push(l)}return t.theme==="dark"?ff.map(function(c){var u=c.index,d=c.amount;return new Je(t.backgroundColor||"#141414").mix(r[u],d).toHexString()}):r.map(function(c){return c.toHexString()})}var vi={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Yi=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Yi.primary=Yi[5];var Xi=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Xi.primary=Xi[5];var Qi=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Qi.primary=Qi[5];var _o=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];_o.primary=_o[5];var Zi=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Zi.primary=Zi[5];var Ji=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Ji.primary=Ji[5];var ea=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ea.primary=ea[5];var ta=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];ta.primary=ta[5];var Po=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Po.primary=Po[5];var ra=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ra.primary=ra[5];var na=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];na.primary=na[5];var oa=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];oa.primary=oa[5];var ia=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ia.primary=ia[5];var hi={red:Yi,volcano:Xi,orange:Qi,gold:_o,yellow:Zi,lime:Ji,green:ea,cyan:ta,blue:Po,geekblue:ra,purple:na,magenta:oa,grey:ia},qa=E.createContext({});function Os(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Os(Object(r),!0).forEach(function(n){O(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Os(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function vf(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var js="data-rc-order",_s="data-rc-priority",hf="rc-util-key",aa=new Map;function wc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):hf}function Do(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function gf(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ua(e){return Array.from((aa.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Sc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!gt())return null;var r=t.csp,n=t.prepend,o=t.priority,i=o===void 0?0:o,a=gf(n),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(js,a),s&&i&&l.setAttribute(_s,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var c=Do(t),u=c.firstChild;if(n){if(s){var d=(t.styles||Ua(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(js)))return!1;var g=Number(f.getAttribute(_s)||0);return i>=g});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Ec(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Do(t);return(t.styles||Ua(r)).find(function(n){return n.getAttribute(wc(t))===e})}function _n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ec(e,t);if(r){var n=Do(t);n.removeChild(r)}}function mf(e,t){var r=aa.get(e);if(!r||!vf(document,r)){var n=Sc("",t),o=n.parentNode;aa.set(e,o),e.removeChild(n)}}function er(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Do(r),o=Ua(n),i=k(k({},r),{},{styles:o});mf(n,i);var a=Ec(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Sc(e,i);return u.setAttribute(wc(i),t),u}function Rc(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function pf(e){return Rc(e)instanceof ShadowRoot}function To(e){return pf(e)?Rc(e):null}var sa={},Ka=[],yf=function(t){Ka.push(t)};function Wr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Ka.reduce(function(n,o){return o(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function bf(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Ka.reduce(function(n,o){return o(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function $c(){sa={}}function Oc(e,t,r){!t&&!sa[r]&&(e(!1,r),sa[r]=!0)}function ze(e,t){Oc(Wr,e,t)}function xf(e,t){Oc(bf,e,t)}ze.preMessage=yf;ze.resetWarned=$c;ze.noteOnce=xf;function Cf(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function wf(e,t){ze(e,"[@ant-design/icons] ".concat(t))}function Ps(e){return ve(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ve(e.icon)==="object"||typeof e.icon=="function")}function Ts(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Cf(r)]=n}return t},{})}function la(e,t,r){return r?E.createElement(e.tag,k(k({key:t},Ts(e.attrs)),r),(e.children||[]).map(function(n,o){return la(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):E.createElement(e.tag,k({key:t},Ts(e.attrs)),(e.children||[]).map(function(n,o){return la(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function jc(e){return jn(e)[0]}function _c(e){return e?Array.isArray(e)?e:[e]:[]}var Sf=`
8
- .anticon {
9
- display: inline-flex;
10
- align-items: center;
11
- color: inherit;
12
- font-style: normal;
13
- line-height: 0;
14
- text-align: center;
15
- text-transform: none;
16
- vertical-align: -0.125em;
17
- text-rendering: optimizeLegibility;
18
- -webkit-font-smoothing: antialiased;
19
- -moz-osx-font-smoothing: grayscale;
20
- }
21
-
22
- .anticon > * {
23
- line-height: 1;
24
- }
25
-
26
- .anticon svg {
27
- display: inline-block;
28
- }
29
-
30
- .anticon::before {
31
- display: none;
32
- }
33
-
34
- .anticon .anticon-icon {
35
- display: block;
36
- }
37
-
38
- .anticon[tabindex] {
39
- cursor: pointer;
40
- }
41
-
42
- .anticon-spin::before,
43
- .anticon-spin {
44
- display: inline-block;
45
- -webkit-animation: loadingCircle 1s infinite linear;
46
- animation: loadingCircle 1s infinite linear;
47
- }
48
-
49
- @-webkit-keyframes loadingCircle {
50
- 100% {
51
- -webkit-transform: rotate(360deg);
52
- transform: rotate(360deg);
53
- }
54
- }
55
-
56
- @keyframes loadingCircle {
57
- 100% {
58
- -webkit-transform: rotate(360deg);
59
- transform: rotate(360deg);
60
- }
61
- }
62
- `,Ef=function(t){var r=E.useContext(qa),n=r.csp,o=r.prefixCls,i=r.layer,a=Sf;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` {
63
- `).concat(a,`
64
- }`)),E.useEffect(function(){var s=t.current,l=To(s);er(a,"@ant-design-icons",{prepend:!i,csp:n,attachTo:l})},[])},Rf=["icon","className","onClick","style","primaryColor","secondaryColor"],Rn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function $f(e){var t=e.primaryColor,r=e.secondaryColor;Rn.primaryColor=t,Rn.secondaryColor=r||jc(t),Rn.calculated=!!r}function Of(){return k({},Rn)}var en=function(t){var r=t.icon,n=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=ft(t,Rf),c=v.useRef(),u=Rn;if(a&&(u={primaryColor:a,secondaryColor:s||jc(a)}),Ef(c),wf(Ps(r),"icon should be icon definiton, but got ".concat(r)),!Ps(r))return null;var d=r;return d&&typeof d.icon=="function"&&(d=k(k({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),la(d.icon,"svg-".concat(d.name),k(k({className:n,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};en.displayName="IconReact";en.getTwoToneColors=Of;en.setTwoToneColors=$f;function Pc(e){var t=_c(e),r=G(t,2),n=r[0],o=r[1];return en.setTwoToneColors({primaryColor:n,secondaryColor:o})}function jf(){var e=en.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var _f=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Pc(Po.primary);var tr=v.forwardRef(function(e,t){var r=e.className,n=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=ft(e,_f),u=v.useContext(qa),d=u.prefixCls,f=d===void 0?"anticon":d,g=u.rootClassName,p=ae(g,f,O(O({},"".concat(f,"-").concat(n.name),!!n.name),"".concat(f,"-spin"),!!o||n.name==="loading"),r),y=a;y===void 0&&s&&(y=-1);var h=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,x=_c(l),m=G(x,2),S=m[0],R=m[1];return v.createElement("span",Ie({role:"img","aria-label":n.name},c,{ref:t,tabIndex:y,onClick:s,className:p}),v.createElement(en,{icon:n,primaryColor:S,secondaryColor:R,style:h}))});tr.displayName="AntdIcon";tr.getTwoToneColor=jf;tr.setTwoToneColor=Pc;var Pf=function(t,r){return v.createElement(tr,Ie({},t,{ref:r,icon:rf}))},Tc=v.forwardRef(Pf);process.env.NODE_ENV!=="production"&&(Tc.displayName="EditOutlined");var Tf=Symbol.for("react.element"),Af=Symbol.for("react.transitional.element"),Mf=Symbol.for("react.fragment");function Ac(e){return e&&ve(e)==="object"&&(e.$$typeof===Tf||e.$$typeof===Af)&&e.type===Mf}function qr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return E.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(qr(n)):Ac(n)&&n.props?r=r.concat(qr(n.props.children,t)):r.push(n))}),r}function Pn(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ff(e){return e&&ve(e)==="object"&&Pn(e.nativeElement)?e.nativeElement:Pn(e)?e:null}function Co(e){var t=Ff(e);if(t)return t;if(e instanceof E.Component){var r;return(r=jo.findDOMNode)===null||r===void 0?void 0:r.call(jo,e)}return null}var lo={exports:{}},_e={};/**
65
- * @license React
66
- * react-is.production.min.js
67
- *
68
- * Copyright (c) Facebook, Inc. and its affiliates.
69
- *
70
- * This source code is licensed under the MIT license found in the
71
- * LICENSE file in the root directory of this source tree.
72
- */var As;function kf(){if(As)return _e;As=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),p;p=Symbol.for("react.module.reference");function y(h){if(typeof h=="object"&&h!==null){var x=h.$$typeof;switch(x){case e:switch(h=h.type,h){case r:case o:case n:case c:case u:return h;default:switch(h=h&&h.$$typeof,h){case s:case a:case l:case f:case d:case i:return h;default:return x}}case t:return x}}}return _e.ContextConsumer=a,_e.ContextProvider=i,_e.Element=e,_e.ForwardRef=l,_e.Fragment=r,_e.Lazy=f,_e.Memo=d,_e.Portal=t,_e.Profiler=o,_e.StrictMode=n,_e.Suspense=c,_e.SuspenseList=u,_e.isAsyncMode=function(){return!1},_e.isConcurrentMode=function(){return!1},_e.isContextConsumer=function(h){return y(h)===a},_e.isContextProvider=function(h){return y(h)===i},_e.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},_e.isForwardRef=function(h){return y(h)===l},_e.isFragment=function(h){return y(h)===r},_e.isLazy=function(h){return y(h)===f},_e.isMemo=function(h){return y(h)===d},_e.isPortal=function(h){return y(h)===t},_e.isProfiler=function(h){return y(h)===o},_e.isStrictMode=function(h){return y(h)===n},_e.isSuspense=function(h){return y(h)===c},_e.isSuspenseList=function(h){return y(h)===u},_e.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===o||h===n||h===c||h===u||h===g||typeof h=="object"&&h!==null&&(h.$$typeof===f||h.$$typeof===d||h.$$typeof===i||h.$$typeof===a||h.$$typeof===l||h.$$typeof===p||h.getModuleId!==void 0)},_e.typeOf=y,_e}var Pe={};/**
73
- * @license React
74
- * react-is.development.js
75
- *
76
- * Copyright (c) Facebook, Inc. and its affiliates.
77
- *
78
- * This source code is licensed under the MIT license found in the
79
- * LICENSE file in the root directory of this source tree.
80
- */var Ms;function Nf(){return Ms||(Ms=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),p=!1,y=!1,h=!1,x=!1,m=!1,S;S=Symbol.for("react.module.reference");function R(U){return!!(typeof U=="string"||typeof U=="function"||U===r||U===o||m||U===n||U===c||U===u||x||U===g||p||y||h||typeof U=="object"&&U!==null&&(U.$$typeof===f||U.$$typeof===d||U.$$typeof===i||U.$$typeof===a||U.$$typeof===l||U.$$typeof===S||U.getModuleId!==void 0))}function b(U){if(typeof U=="object"&&U!==null){var se=U.$$typeof;switch(se){case e:var J=U.type;switch(J){case r:case o:case n:case c:case u:return J;default:var le=J&&J.$$typeof;switch(le){case s:case a:case l:case f:case d:case i:return le;default:return se}}case t:return se}}}var w=a,C=i,j=e,A=l,M=r,V=f,D=d,N=t,F=o,L=n,I=c,z=u,P=!1,W=!1;function Y(U){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function $(U){return W||(W=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function T(U){return b(U)===a}function H(U){return b(U)===i}function B(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function q(U){return b(U)===l}function K(U){return b(U)===r}function ne(U){return b(U)===f}function Z(U){return b(U)===d}function te(U){return b(U)===t}function ie(U){return b(U)===o}function ge(U){return b(U)===n}function ce(U){return b(U)===c}function ye(U){return b(U)===u}Pe.ContextConsumer=w,Pe.ContextProvider=C,Pe.Element=j,Pe.ForwardRef=A,Pe.Fragment=M,Pe.Lazy=V,Pe.Memo=D,Pe.Portal=N,Pe.Profiler=F,Pe.StrictMode=L,Pe.Suspense=I,Pe.SuspenseList=z,Pe.isAsyncMode=Y,Pe.isConcurrentMode=$,Pe.isContextConsumer=T,Pe.isContextProvider=H,Pe.isElement=B,Pe.isForwardRef=q,Pe.isFragment=K,Pe.isLazy=ne,Pe.isMemo=Z,Pe.isPortal=te,Pe.isProfiler=ie,Pe.isStrictMode=ge,Pe.isSuspense=ce,Pe.isSuspenseList=ye,Pe.isValidElementType=R,Pe.typeOf=b})()),Pe}var Fs;function If(){return Fs||(Fs=1,process.env.NODE_ENV==="production"?lo.exports=kf():lo.exports=Nf()),lo.exports}var gi=If();function Ga(e,t,r){var n=v.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var Vf=Number(E.version.split(".")[0]),Ya=function(t,r){typeof t=="function"?t(r):ve(t)==="object"&&t&&"current"in t&&(t.current=r)},Ln=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r.filter(Boolean);return o.length<=1?o[0]:function(i){r.forEach(function(a){Ya(a,i)})}},Xa=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ga(function(){return Ln.apply(void 0,r)},r,function(o,i){return o.length!==i.length||o.every(function(a,s){return a!==i[s]})})},Lo=function(t){var r,n;if(!t)return!1;if(Mc(t)&&Vf>=19)return!0;var o=gi.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==gi.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==gi.ForwardRef)};function Mc(e){return E.isValidElement(e)&&!Ac(e)}var Qa=function(t){if(t&&Mc(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},ca=v.createContext(null);function Df(e){var t=e.children,r=e.onBatchResize,n=v.useRef(0),o=v.useRef([]),i=v.useContext(ca),a=v.useCallback(function(s,l,c){n.current+=1;var u=n.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r?.(o.current),o.current=[])}),i?.(s,l,c)},[r,i]);return v.createElement(ca.Provider,{value:a},t)}var Fc=(function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];r.call(n,a[1],a[0])}},t})()})(),ua=typeof window<"u"&&typeof document<"u"&&window.document===document,Ao=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),Lf=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ao):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),Hf=2;function zf(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&s()}function a(){Lf(i)}function s(){var l=Date.now();if(r){if(l-o<Hf)return;n=!0}else r=!0,n=!1,setTimeout(a,t);o=l}return s}var Bf=20,Wf=["top","right","bottom","left","width","height","size","weight"],qf=typeof MutationObserver<"u",Uf=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=zf(this.refresh.bind(this),Bf)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!ua||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),qf?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!ua||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=Wf.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),kc=(function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e}),Ur=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Ao}),Nc=Ho(0,0,0,0);function Mo(e){return parseFloat(e)||0}function ks(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,o){var i=e["border-"+o+"-width"];return n+Mo(i)},0)}function Kf(e){for(var t=["top","right","bottom","left"],r={},n=0,o=t;n<o.length;n++){var i=o[n],a=e["padding-"+i];r[i]=Mo(a)}return r}function Gf(e){var t=e.getBBox();return Ho(0,0,t.width,t.height)}function Yf(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Nc;var n=Ur(e).getComputedStyle(e),o=Kf(n),i=o.left+o.right,a=o.top+o.bottom,s=Mo(n.width),l=Mo(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=ks(n,"left","right")+i),Math.round(l+a)!==r&&(l-=ks(n,"top","bottom")+a)),!Qf(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-r;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return Ho(o.left,o.top,s,l)}var Xf=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ur(e).SVGGraphicsElement}:function(e){return e instanceof Ur(e).SVGElement&&typeof e.getBBox=="function"}})();function Qf(e){return e===Ur(e).document.documentElement}function Zf(e){return ua?Xf(e)?Gf(e):Yf(e):Nc}function Jf(e){var t=e.x,r=e.y,n=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return kc(a,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),a}function Ho(e,t,r,n){return{x:e,y:t,width:r,height:n}}var ev=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ho(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Zf(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),tv=(function(){function e(t,r){var n=Jf(r);kc(this,{target:t,contentRect:n})}return e})(),rv=(function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Fc,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ur(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new ev(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ur(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new tv(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Ic=typeof WeakMap<"u"?new WeakMap:new Fc,Vc=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Uf.getInstance(),n=new rv(t,r,this);Ic.set(this,n)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Vc.prototype[e]=function(){var t;return(t=Ic.get(this))[e].apply(t,arguments)}});var nv=(function(){return typeof Ao.ResizeObserver<"u"?Ao.ResizeObserver:Vc})(),Jt=new Map;function Dc(e){e.forEach(function(t){var r,n=t.target;(r=Jt.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var Lc=new nv(Dc);process.env.NODE_ENV;process.env.NODE_ENV;function ov(e,t){Jt.has(e)||(Jt.set(e,new Set),Lc.observe(e)),Jt.get(e).add(t)}function iv(e,t){Jt.has(e)&&(Jt.get(e).delete(t),Jt.get(e).size||(Lc.unobserve(e),Jt.delete(e)))}function it(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ns(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yc(n.key),n)}}function at(e,t,r){return t&&Ns(e.prototype,t),r&&Ns(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tn(e,t){return Tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Tn(e,t)}function vr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tn(e,t)}function An(e){return An=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},An(e)}function Za(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Za=function(){return!!e})()}function xe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function av(e,t){if(t&&(ve(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xe(e)}function hr(e){var t=Za();return function(){var r,n=An(e);if(t){var o=An(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return av(this,r)}}var sv=(function(e){vr(r,e);var t=hr(r);function r(){return it(this,r),t.apply(this,arguments)}return at(r,[{key:"render",value:function(){return this.props.children}}]),r})(v.Component);function lv(e,t){var r=e.children,n=e.disabled,o=v.useRef(null),i=v.useRef(null),a=v.useContext(ca),s=typeof r=="function",l=s?r(o):r,c=v.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&v.isValidElement(l)&&Lo(l),d=u?Qa(l):null,f=Xa(d,o),g=function(){var x;return Co(o.current)||(o.current&&ve(o.current)==="object"?Co((x=o.current)===null||x===void 0?void 0:x.nativeElement):null)||Co(i.current)};v.useImperativeHandle(t,function(){return g()});var p=v.useRef(e);p.current=e;var y=v.useCallback(function(h){var x=p.current,m=x.onResize,S=x.data,R=h.getBoundingClientRect(),b=R.width,w=R.height,C=h.offsetWidth,j=h.offsetHeight,A=Math.floor(b),M=Math.floor(w);if(c.current.width!==A||c.current.height!==M||c.current.offsetWidth!==C||c.current.offsetHeight!==j){var V={width:A,height:M,offsetWidth:C,offsetHeight:j};c.current=V;var D=C===Math.round(b)?b:C,N=j===Math.round(w)?w:j,F=k(k({},V),{},{offsetWidth:D,offsetHeight:N});a?.(F,h,S),m&&Promise.resolve().then(function(){m(F,h)})}},[]);return v.useEffect(function(){var h=g();return h&&!n&&ov(h,y),function(){return iv(h,y)}},[o.current,n]),v.createElement(sv,{ref:i},u?v.cloneElement(l,{ref:f}):l)}var Hc=v.forwardRef(lv);process.env.NODE_ENV!=="production"&&(Hc.displayName="SingleObserver");var cv="rc-observer-key";function uv(e,t){var r=e.children,n=typeof r=="function"?[r]:qr(r);return process.env.NODE_ENV!=="production"&&(n.length>1?Wr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Wr(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(o,i){var a=o?.key||"".concat(cv,"-").concat(i);return v.createElement(Hc,Ie({},e,{key:a,ref:i===0?t:void 0}),o)})}var tn=v.forwardRef(uv);process.env.NODE_ENV!=="production"&&(tn.displayName="ResizeObserver");tn.Collection=Df;var Is=process.env.NODE_ENV!=="test"&&gt()?v.useLayoutEffect:v.useEffect,Be=function(t,r){var n=v.useRef(!0);Is(function(){return t(n.current)},r),Is(function(){return n.current=!1,function(){n.current=!0}},[])},Vs=function(t,r){Be(function(n){if(!n)return t()},r)};function ht(e){var t=v.useRef();t.current=e;var r=v.useCallback(function(){for(var n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return r}function Mn(e){var t=v.useRef(!1),r=v.useState(e),n=G(r,2),o=n[0],i=n[1];v.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[o,a]}function mi(e){return e!==void 0}function Er(e,t){var r=t||{},n=r.defaultValue,o=r.value,i=r.onChange,a=r.postState,s=Mn(function(){return mi(o)?o:mi(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=G(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,f=a?a(d):d,g=ht(i),p=Mn([d]),y=G(p,2),h=y[0],x=y[1];Vs(function(){var S=h[0];c!==S&&g(c,S)},[h]),Vs(function(){mi(o)||u(o)},[o]);var m=ht(function(S,R){u(S,R),x([d],R)});return[f,m]}function zc(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var dv=function(t){if(gt()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(o){return o in n.style})}return!1};function Ds(e,t){return dv(e)}function Fn(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function da(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(i);if(ze(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(r&&s>1)return!1;n.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u<i.length;u++)if(!o(i[u],a[u],c))return!1;return!0}if(i&&a&&ve(i)==="object"&&ve(a)==="object"){var d=Object.keys(i);return d.length!==Object.keys(a).length?!1:d.every(function(f){return o(i[f],a[f],c)})}return!1}return o(e,t)}var fv="%";function fa(e){return e.join(fv)}var vv=(function(){function e(t){it(this,e),O(this,"instanceId",void 0),O(this,"cache",new Map),O(this,"extracted",new Set),this.instanceId=t}return at(e,[{key:"get",value:function(r){return this.opGet(fa(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(fa(r),n)}},{key:"opUpdate",value:function(r,n){var o=this.cache.get(r),i=n(o);i===null?this.cache.delete(r):this.cache.set(r,i)}}]),e})(),Kr="data-token-hash",It="data-css-hash",hv="data-cache-path",ur="__cssinjs_instance__";function gv(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(It,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(o){o[ur]=o[ur]||e,o[ur]===e&&document.head.insertBefore(o,r)});var n={};Array.from(document.querySelectorAll("style[".concat(It,"]"))).forEach(function(o){var i=o.getAttribute(It);if(n[i]){if(o[ur]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else n[i]=!0})}return new vv(e)}var Hn=v.createContext({hashPriority:"low",cache:gv(),defaultCache:!0});function mv(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Ja=(function(){function e(){it(this,e),O(this,"cache",void 0),O(this,"keys",void 0),O(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return at(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=a)!==null&&n!==void 0&&n.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var d=G(c,2),f=d[1];return o.internalGet(u)[1]<f?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=G(i,1),s=a[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(c,u){if(u===r.length-1)l.set(c,{value:[n,o.cacheCallTimes++]});else{var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(r,n){var o=r.get(n[0]);if(n.length===1){var i;return o.map?r.set(n[0],{map:o.map}):r.delete(n[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&r.delete(n[0]),a}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!mv(n,r)}),this.deleteByPath(this.cache,r)}}]),e})();O(Ja,"MAX_CACHE_SIZE",20);O(Ja,"MAX_CACHE_OFFSET",5);var Ls=0,Bc=(function(){function e(t){it(this,e),O(this,"derivatives",void 0),O(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ls,t.length===0&&Wr(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Ls+=1}return at(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e})(),pi=new Ja;function va(e){var t=Array.isArray(e)?e:[e];return pi.has(t)||pi.set(t,new Bc(t)),pi.get(t)}var pv=new WeakMap,yi={};function yv(e,t){for(var r=pv,n=0;n<t.length;n+=1){var o=t[n];r.has(o)||r.set(o,new WeakMap),r=r.get(o)}return r.has(yi)||r.set(yi,e()),r.get(yi)}var Hs=new WeakMap;function $n(e){var t=Hs.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof Bc?t+=n.id:n&&ve(n)==="object"?t+=$n(n):t+=n}),t=Fn(t),Hs.set(e,t)),t}function zs(e,t){return Fn("".concat(t,"_").concat($n(e)))}var ha=gt();function Me(e){return typeof e=="number"?"".concat(e,"px"):e}function Fo(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var i=k(k({},n),{},O(O({},Kr,t),It,r)),a=Object.keys(i).map(function(s){var l=i[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var wo=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},bv=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(o){var i=G(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Wc=function(t,r,n){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,c=G(a,2),u=c[0],d=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[u])i[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[u])){var f,g=wo(u,n?.prefix);o[g]=typeof d=="number"&&!(n!=null&&(f=n.unitless)!==null&&f!==void 0&&f[u])?"".concat(d,"px"):String(d),i[u]="var(".concat(g,")")}}),[i,bv(o,r,{scope:n?.scope})]},xv=k({},v),Bs=xv.useInsertionEffect,Cv=function(t,r,n){v.useMemo(t,n),Be(function(){return r(!0)},n)},wv=Bs?function(e,t,r){return Bs(function(){return e(),t()},r)}:Cv,Sv=k({},v),Ev=Sv.useInsertionEffect,Rv=function(t){var r=[],n=!1;function o(i){if(n){process.env.NODE_ENV!=="production"&&Wr(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(i)}return v.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),o},$v=function(){return function(t){t()}},Ov=typeof Ev<"u"?Rv:$v;function jv(){return!1}var ga=!1;function _v(){return ga}const Pv=process.env.NODE_ENV==="production"?jv:_v;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var co=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(co&&typeof co.webpackHotUpdate=="function"){var Tv=co.webpackHotUpdate;co.webpackHotUpdate=function(){return ga=!0,setTimeout(function(){ga=!1},0),Tv.apply(void 0,arguments)}}}function es(e,t,r,n,o){var i=v.useContext(Hn),a=i.cache,s=[e].concat(oe(t)),l=fa(s),c=Ov([l]),u=Pv(),d=function(y){a.opUpdate(l,function(h){var x=h||[void 0,void 0],m=G(x,2),S=m[0],R=S===void 0?0:S,b=m[1],w=b;process.env.NODE_ENV!=="production"&&b&&u&&(n?.(w,u),w=null);var C=w||r(),j=[R,C];return y?y(j):j})};v.useMemo(function(){d()},[l]);var f=a.opGet(l);process.env.NODE_ENV!=="production"&&!f&&(d(),f=a.opGet(l));var g=f[1];return wv(function(){o?.(g)},function(p){return d(function(y){var h=G(y,2),x=h[0],m=h[1];return p&&x===0&&o?.(g),[x+1,m]}),function(){a.opUpdate(l,function(y){var h=y||[],x=G(h,2),m=x[0],S=m===void 0?0:m,R=x[1],b=S-1;return b===0?(c(function(){(p||!a.opGet(l))&&n?.(R,!1)}),null):[S-1,R]})}},[l]),g}var Av={},Mv=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",Cr=new Map;function Fv(e){Cr.set(e,(Cr.get(e)||0)+1)}function kv(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Kr,'="').concat(e,'"]'));r.forEach(function(n){if(n[ur]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var Nv=0;function Iv(e,t){Cr.set(e,(Cr.get(e)||0)-1);var r=new Set;Cr.forEach(function(n,o){n<=0&&r.add(o)}),Cr.size-r.size>Nv&&r.forEach(function(n){kv(n,t),Cr.delete(n)})}var Vv=function(t,r,n,o){var i=n.getDerivativeToken(t),a=k(k({},i),r);return o&&(a=o(a)),a},qc="token";function Dv(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=E.useContext(Hn),o=n.cache.instanceId,i=n.container,a=r.salt,s=a===void 0?"":a,l=r.override,c=l===void 0?Av:l,u=r.formatToken,d=r.getComputedToken,f=r.cssVar,g=yv(function(){return Object.assign.apply(Object,[{}].concat(oe(t)))},t),p=$n(g),y=$n(c),h=f?$n(f):"",x=es(qc,[s,e.id,p,y,h],function(){var m,S=d?d(g,c,e):Vv(g,c,e,u),R=k({},S),b="";if(f){var w=Wc(S,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),C=G(w,2);S=C[0],b=C[1]}var j=zs(S,s);S._tokenKey=j,R._tokenKey=zs(R,s);var A=(m=f?.key)!==null&&m!==void 0?m:j;S._themeKey=A,Fv(A);var M="".concat(Mv,"-").concat(Fn(j));return S._hashId=M,[S,M,R,b,f?.key||""]},function(m){Iv(m[0]._themeKey,o)},function(m){var S=G(m,4),R=S[0],b=S[3];if(f&&b){var w=er(b,Fn("css-variables-".concat(R._themeKey)),{mark:It,prepend:"queue",attachTo:i,priority:-999});w[ur]=o,w.setAttribute(Kr,R._themeKey)}});return x}var Lv=function(t,r,n){var o=G(t,5),i=o[2],a=o[3],s=o[4],l=n||{},c=l.plain;if(!a)return null;var u=i._tokenKey,d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},g=Fo(a,s,u,f,c);return[d,u,g]},Hv={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Uc="comm",Kc="rule",Gc="decl",zv="@import",Bv="@namespace",Wv="@keyframes",qv="@layer",Yc=Math.abs,ts=String.fromCharCode;function Xc(e){return e.trim()}function So(e,t,r){return e.replace(t,r)}function Uv(e,t,r){return e.indexOf(t,r)}function Hr(e,t){return e.charCodeAt(t)|0}function Gr(e,t,r){return e.slice(t,r)}function Bt(e){return e.length}function Kv(e){return e.length}function uo(e,t){return t.push(e),e}var zo=1,Yr=1,Qc=0,jt=0,Xe=0,rn="";function rs(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:zo,column:Yr,length:a,return:"",siblings:s}}function Gv(){return Xe}function Yv(){return Xe=jt>0?Hr(rn,--jt):0,Yr--,Xe===10&&(Yr=1,zo--),Xe}function Vt(){return Xe=jt<Qc?Hr(rn,jt++):0,Yr++,Xe===10&&(Yr=1,zo++),Xe}function dr(){return Hr(rn,jt)}function Eo(){return jt}function Bo(e,t){return Gr(rn,e,t)}function kn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Xv(e){return zo=Yr=1,Qc=Bt(rn=e),jt=0,[]}function Qv(e){return rn="",e}function bi(e){return Xc(Bo(jt-1,ma(e===91?e+2:e===40?e+1:e)))}function Zv(e){for(;(Xe=dr())&&Xe<33;)Vt();return kn(e)>2||kn(Xe)>3?"":" "}function Jv(e,t){for(;--t&&Vt()&&!(Xe<48||Xe>102||Xe>57&&Xe<65||Xe>70&&Xe<97););return Bo(e,Eo()+(t<6&&dr()==32&&Vt()==32))}function ma(e){for(;Vt();)switch(Xe){case e:return jt;case 34:case 39:e!==34&&e!==39&&ma(Xe);break;case 40:e===41&&ma(e);break;case 92:Vt();break}return jt}function eh(e,t){for(;Vt()&&e+Xe!==57;)if(e+Xe===84&&dr()===47)break;return"/*"+Bo(t,jt-1)+"*"+ts(e===47?e:Vt())}function th(e){for(;!kn(dr());)Vt();return Bo(e,jt)}function rh(e){return Qv(Ro("",null,null,null,[""],e=Xv(e),0,[0],e))}function Ro(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,g=0,p=0,y=1,h=1,x=1,m=0,S="",R=o,b=i,w=n,C=S;h;)switch(p=m,m=Vt()){case 40:if(p!=108&&Hr(C,d-1)==58){Uv(C+=So(bi(m),"&","&\f"),"&\f",Yc(c?s[c-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:C+=bi(m);break;case 9:case 10:case 13:case 32:C+=Zv(p);break;case 92:C+=Jv(Eo()-1,7);continue;case 47:switch(dr()){case 42:case 47:uo(nh(eh(Vt(),Eo()),t,r,l),l),(kn(p||1)==5||kn(dr()||1)==5)&&Bt(C)&&Gr(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*y:s[c++]=Bt(C)*x;case 125*y:case 59:case 0:switch(m){case 0:case 125:h=0;case 59+u:x==-1&&(C=So(C,/\f/g,"")),g>0&&(Bt(C)-d||y===0&&p===47)&&uo(g>32?qs(C+";",n,r,d-1,l):qs(So(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(uo(w=Ws(C,t,r,c,u,o,s,S,R=[],b=[],d,i),i),m===123)if(u===0)Ro(C,t,w,w,R,i,d,s,b);else{switch(f){case 99:if(Hr(C,3)===110)break;case 108:if(Hr(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Ro(e,w,w,n&&uo(Ws(e,w,w,0,0,o,s,S,o,R=[],d,b),b),o,b,d,s,n?R:b):Ro(C,w,w,w,[""],b,0,s,b)}}c=u=g=0,y=x=1,S=C="",d=a;break;case 58:d=1+Bt(C),g=p;default:if(y<1){if(m==123)--y;else if(m==125&&y++==0&&Yv()==125)continue}switch(C+=ts(m),m*y){case 38:x=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Bt(C)-1)*x,x=1;break;case 64:dr()===45&&(C+=bi(Vt())),f=dr(),u=d=Bt(S=C+=th(Eo())),m++;break;case 45:p===45&&Bt(C)==2&&(y=0)}}return i}function Ws(e,t,r,n,o,i,a,s,l,c,u,d){for(var f=o-1,g=o===0?i:[""],p=Kv(g),y=0,h=0,x=0;y<n;++y)for(var m=0,S=Gr(e,f+1,f=Yc(h=a[y])),R=e;m<p;++m)(R=Xc(h>0?g[m]+" "+S:So(S,/&\f/g,g[m])))&&(l[x++]=R);return rs(e,t,r,o===0?Kc:s,l,c,u,d)}function nh(e,t,r,n){return rs(e,t,r,Uc,ts(Gv()),Gr(e,2,-2),0,n)}function qs(e,t,r,n,o){return rs(e,t,r,Gc,Gr(e,0,n),Gr(e,n+1,-1),n,o)}function pa(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function oh(e,t,r,n){switch(e.type){case qv:if(e.children.length)break;case zv:case Bv:case Gc:return e.return=e.return||e.value;case Uc:return"";case Wv:return e.return=e.value+"{"+pa(e.children,n)+"}";case Kc:if(!Bt(e.value=e.props.join(",")))return""}return Bt(r=pa(e.children,n))?e.return=e.value+"{"+r+"}":""}function Zc(e,t){var r=t.path,n=t.parentSelectors;ze(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var ih=function(t,r,n){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof r!="string"||i.indexOf(r)===-1&&!o.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&Zc("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},ah=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&Zc("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Us="data-ant-cssinjs-cache-path",Jc="_FILE_STYLE__",Sr,eu=!0;function sh(){if(!Sr&&(Sr={},gt())){var e=document.createElement("div");e.className=Us,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=G(i,2),s=a[0],l=a[1];Sr[s]=l});var r=document.querySelector("style[".concat(Us,"]"));if(r){var n;eu=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function lh(e){return sh(),!!Sr[e]}function ch(e){var t=Sr[e],r=null;if(t&&gt())if(eu)r=Jc;else{var n=document.querySelector("style[".concat(It,'="').concat(Sr[e],'"]'));n?r=n.innerHTML:delete Sr[e]}return[r,t]}var tu="_skip_check_",ru="_multi_value_";function $o(e){var t=pa(rh(e),oh);return t.replace(/\{%%%\:[^;];}/g,";")}function uh(e){return ve(e)==="object"&&e&&(tu in e||ru in e)}function Ks(e,t,r){if(!t)return e;var n=".".concat(t),o=r==="low"?":where(".concat(n,")"):n,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(oe(l.slice(1))).join(" ")});return i.join(",")}var dh=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,i=n.injectHash,a=n.parentSelectors,s=r.hashId,l=r.layer,c=r.path,u=r.hashPriority,d=r.transformers,f=d===void 0?[]:d,g=r.linters,p=g===void 0?[]:g,y="",h={};function x(R){var b=R.getName(s);if(!h[b]){var w=e(R.style,r,{root:!1,parentSelectors:a}),C=G(w,1),j=C[0];h[b]="@keyframes ".concat(R.getName(s)).concat(j)}}function m(R){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return R.forEach(function(w){Array.isArray(w)?m(w,b):w&&b.push(w)}),b}var S=m(Array.isArray(t)?t:[t]);return S.forEach(function(R){var b=typeof R=="string"&&!o?{}:R;if(typeof b=="string")y+="".concat(b,`
81
- `);else if(b._keyframe)x(b);else{var w=f.reduce(function(C,j){var A;return(j==null||(A=j.visit)===null||A===void 0?void 0:A.call(j,C))||C},b);Object.keys(w).forEach(function(C){var j=w[C];if(ve(j)==="object"&&j&&(C!=="animationName"||!j._keyframe)&&!uh(j)){var A=!1,M=C.trim(),V=!1;(o||i)&&s?M.startsWith("@")?A=!0:M==="&"?M=Ks("",s,u):M=Ks(C,s,u):o&&!s&&(M==="&"||M==="")&&(M="",V=!0);var D=e(j,r,{root:V,injectHash:A,parentSelectors:[].concat(oe(a),[M])}),N=G(D,2),F=N[0],L=N[1];h=k(k({},h),L),y+="".concat(M).concat(F)}else{let P=function(W,Y){process.env.NODE_ENV!=="production"&&(ve(j)!=="object"||!(j!=null&&j[tu]))&&[ih,ah].concat(oe(p)).forEach(function(H){return H(W,Y,{path:c,hashId:s,parentSelectors:a})});var $=W.replace(/[A-Z]/g,function(H){return"-".concat(H.toLowerCase())}),T=Y;!Hv[W]&&typeof T=="number"&&T!==0&&(T="".concat(T,"px")),W==="animationName"&&Y!==null&&Y!==void 0&&Y._keyframe&&(x(Y),T=Y.getName(s)),y+="".concat($,":").concat(T,";")};var I,z=(I=j?.value)!==null&&I!==void 0?I:j;ve(j)==="object"&&j!==null&&j!==void 0&&j[ru]&&Array.isArray(z)?z.forEach(function(W){P(C,W)}):P(C,z)}})}}),o?l&&(y&&(y="@layer ".concat(l.name," {").concat(y,"}")),l.dependencies&&(h["@layer ".concat(l.name)]=l.dependencies.map(function(R){return"@layer ".concat(R,", ").concat(l.name,";")}).join(`
82
- `))):y="{".concat(y,"}"),[y,h]};function nu(e,t){return Fn("".concat(e.join("%")).concat(t))}function fh(){return null}var ou="style";function ya(e,t){var r=e.token,n=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=v.useContext(Hn),d=u.autoClear,f=u.mock,g=u.defaultCache,p=u.hashPriority,y=u.container,h=u.ssrInline,x=u.transformers,m=u.linters,S=u.cache,R=u.layer,b=r._tokenKey,w=[b];R&&w.push("layer"),w.push.apply(w,oe(n));var C=ha;process.env.NODE_ENV!=="production"&&f!==void 0&&(C=f==="client");var j=es(ou,w,function(){var N=w.join("|");if(lh(N)){var F=ch(N),L=G(F,2),I=L[0],z=L[1];if(I)return[I,b,z,{},s,c]}var P=t(),W=dh(P,{hashId:o,hashPriority:p,layer:R?i:void 0,path:n.join("-"),transformers:x,linters:m}),Y=G(W,2),$=Y[0],T=Y[1],H=$o($),B=nu(w,H);return[H,b,B,T,s,c]},function(N,F){var L=G(N,3),I=L[2];(F||d)&&ha&&_n(I,{mark:It,attachTo:y})},function(N){var F=G(N,4),L=F[0];F[1];var I=F[2],z=F[3];if(C&&L!==Jc){var P={mark:It,prepend:R?!1:"queue",attachTo:y,priority:c},W=typeof a=="function"?a():a;W&&(P.csp={nonce:W});var Y=[],$=[];Object.keys(z).forEach(function(H){H.startsWith("@layer")?Y.push(H):$.push(H)}),Y.forEach(function(H){er($o(z[H]),"_layer-".concat(H),k(k({},P),{},{prepend:!0}))});var T=er(L,I,P);T[ur]=S.instanceId,T.setAttribute(Kr,b),process.env.NODE_ENV!=="production"&&T.setAttribute(hv,w.join("|")),$.forEach(function(H){er($o(z[H]),"_effect-".concat(H),P)})}}),A=G(j,3),M=A[0],V=A[1],D=A[2];return function(N){var F;return!h||C||!g?F=v.createElement(fh,null):F=v.createElement("style",Ie({},O(O({},Kr,V),It,D),{dangerouslySetInnerHTML:{__html:M}})),v.createElement(v.Fragment,null,F,N)}}var vh=function(t,r,n){var o=G(t,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],d=n||{},f=d.plain;if(c)return null;var g=i,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return g=Fo(i,a,s,p,f),l&&Object.keys(l).forEach(function(y){if(!r[y]){r[y]=!0;var h=$o(l[y]),x=Fo(h,a,"_effect-".concat(y),p,f);y.startsWith("@layer")?g=x+g:g+=x}}),[u,s,g]},iu="cssVar",hh=function(t,r){var n=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=E.useContext(Hn),d=u.cache.instanceId,f=u.container,g=s._tokenKey,p=[].concat(oe(t.path),[n,c,g]),y=es(iu,p,function(){var h=r(),x=Wc(h,n,{prefix:o,unitless:i,ignore:a,scope:c}),m=G(x,2),S=m[0],R=m[1],b=nu(p,R);return[S,R,b,n]},function(h){var x=G(h,3),m=x[2];ha&&_n(m,{mark:It,attachTo:f})},function(h){var x=G(h,3),m=x[1],S=x[2];if(m){var R=er(m,S,{mark:It,prepend:"queue",attachTo:f,priority:-999});R[ur]=d,R.setAttribute(Kr,n)}});return y},gh=function(t,r,n){var o=G(t,4),i=o[1],a=o[2],s=o[3],l=n||{},c=l.plain;if(!i)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},f=Fo(i,s,a,d,c);return[u,a,f]};O(O(O({},ou,vh),qc,Lv),iu,gh);var Pt=(function(){function e(t,r){it(this,e),O(this,"name",void 0),O(this,"style",void 0),O(this,"_keyframe",!0),this.name=t,this.style=r}return at(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e})();function Ar(e){return e.notSplit=!0,e}Ar(["borderTop","borderBottom"]),Ar(["borderTop"]),Ar(["borderBottom"]),Ar(["borderLeft","borderRight"]),Ar(["borderLeft"]),Ar(["borderRight"]);function mh(e){return mc(e)||gc(e)||Wa(e)||pc()}function Wt(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function au(e,t,r,n){if(!t.length)return r;var o=mh(t),i=o[0],a=o.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=oe(e):s=k({},e),n&&r===void 0&&a.length===1?delete s[i][a[0]]:s[i]=au(s[i],a,r,n),s}function kt(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Wt(e,t.slice(0,-1))?e:au(e,t,r,n)}function ph(e){return ve(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Gs(e){return Array.isArray(e)?[]:{}}var yh=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Vr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Gs(t[0]);return t.forEach(function(o){function i(a,s){var l=new Set(s),c=Wt(o,a),u=Array.isArray(c);if(u||ph(c)){if(!l.has(c)){l.add(c);var d=Wt(n,a);u?n=kt(n,a,[]):(!d||ve(d)!=="object")&&(n=kt(n,a,Gs(c))),yh(c).forEach(function(f){i([].concat(oe(a),[f]),l)})}}else n=kt(n,a,c)}i([])}),n}function su(){}let Qt=null;function bh(){Qt=null,$c()}let lu=su;process.env.NODE_ENV!=="production"&&(lu=(e,t,r)=>{ze(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&bh()});const zn=lu,cu=v.createContext({}),qt=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=v.useContext(cu),r=(n,o,i)=>{if(!n)if(t===!1&&o==="deprecated"){const a=Qt;Qt||(Qt={}),Qt[e]=Qt[e]||[],Qt[e].includes(i||"")||Qt[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",Qt)}else process.env.NODE_ENV!=="production"&&zn(n,e,i)};return r.deprecated=(n,o,i,a)=>{r(n,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=su,e},xh=E.createContext(void 0);var Ch={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},wh={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Sh=k(k({},wh),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const uu={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ys={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Sh),timePickerLocale:Object.assign({},uu)},pt="${label} is not a valid ${type}",Xr={locale:"en",Pagination:Ch,DatePicker:Ys,TimePicker:uu,Calendar:Ys,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:pt,method:pt,array:pt,object:pt,number:pt,date:pt,boolean:pt,integer:pt,float:pt,regexp:pt,email:pt,url:pt,hex:pt},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Xr.Modal);let Oo=[];const Xs=()=>Oo.reduce((e,t)=>Object.assign(Object.assign({},e),t),Xr.Modal);function Eh(e){if(e){const t=Object.assign({},e);return Oo.push(t),Xs(),()=>{Oo=Oo.filter(r=>r!==t),Xs()}}Object.assign({},Xr.Modal)}const ns=E.createContext(void 0),Rh=(e,t)=>{const r=v.useContext(ns),n=v.useMemo(()=>{var i;const a=Xr[e],s=(i=r?.[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,r]),o=v.useMemo(()=>{const i=r?.locale;return r?.exist&&!i?Xr.locale:i},[r]);return[n,o]},du="internalMark",fu=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const i=qt("LocaleProvider");process.env.NODE_ENV!=="production"&&i(n===du,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}v.useEffect(()=>Eh(t?.Modal),[t]);const o=v.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return v.createElement(ns.Provider,{value:o},r)};process.env.NODE_ENV!=="production"&&(fu.displayName="LocaleProvider");const vu={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Nn=Object.assign(Object.assign({},vu),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
83
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
84
- 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function $h(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:n,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),d=t(n),f=t(o),g=t(i),p=t(a),y=r(l,c),h=e.colorLink||e.colorInfo,x=t(h),m=new Je(g[1]).mix(new Je(g[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:m,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:p[1],colorInfoBgHover:p[2],colorInfoBorder:p[3],colorInfoBorderHover:p[4],colorInfoHover:p[4],colorInfo:p[6],colorInfoActive:p[7],colorInfoTextHover:p[8],colorInfoText:p[9],colorInfoTextActive:p[10],colorLinkHover:x[4],colorLink:x[6],colorLinkActive:x[7],colorBgMask:new Je("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const Oh=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}};function jh(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},Oh(n))}const _h=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Ph(e){return(e+8)/e}function Th(e){const t=Array.from({length:10}).map((r,n)=>{const o=n-1,i=e*Math.pow(Math.E,o/5),a=n>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:Ph(r)}))}const Ah=e=>{const t=Th(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),o=r[1],i=r[0],a=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function Mh(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const Et=(e,t)=>new Je(e).setA(t).toRgbString(),hn=(e,t)=>new Je(e).darken(t).toHexString(),Fh=e=>{const t=jn(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},kh=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Et(n,.88),colorTextSecondary:Et(n,.65),colorTextTertiary:Et(n,.45),colorTextQuaternary:Et(n,.25),colorFill:Et(n,.15),colorFillSecondary:Et(n,.06),colorFillTertiary:Et(n,.04),colorFillQuaternary:Et(n,.02),colorBgSolid:Et(n,1),colorBgSolidHover:Et(n,.75),colorBgSolidActive:Et(n,.95),colorBgLayout:hn(r,4),colorBgContainer:hn(r,0),colorBgElevated:hn(r,0),colorBgSpotlight:Et(n,.85),colorBgBlur:"transparent",colorBorder:hn(r,15),colorBorderSecondary:hn(r,6)}};function Nh(e){vi.pink=vi.magenta,hi.pink=hi.magenta;const t=Object.keys(vu).map(r=>{const n=e[r]===vi[r]?hi[r]:jn(e[r]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${r}-${a+1}`]=n[a],o[`${r}${a+1}`]=n[a],o),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),$h(e,{generateColorPalettes:Fh,generateNeutralColorPalettes:kh})),Ah(e.fontSize)),Mh(e)),_h(e)),jh(e))}const hu=va(Nh),ba={token:Nn,override:{override:Nn},hashed:!0},gu=E.createContext(ba),xa="ant",os="anticon",Ih=["outlined","borderless","filled","underlined"],Vh=(e,t)=>t||(e?`${xa}-${e}`:xa),Ut=v.createContext({getPrefixCls:Vh,iconPrefixCls:os}),{Consumer:yb}=Ut,Qs={};function Wo(e){const t=v.useContext(Ut),{getPrefixCls:r,direction:n,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:Qs,styles:Qs},i),{getPrefixCls:r,direction:n,getPopupContainer:o})}const Dh=`-ant-${Date.now()}-${Math.random()}`;function Lh(e,t){const r={},n=(a,s)=>{let l=a.clone();return l=s?.(l)||l,l.toRgbString()},o=(a,s)=>{const l=new Je(a),c=jn(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Je(t.primaryColor),s=jn(a.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c}),r["primary-color-deprecated-l-35"]=n(a,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(a,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(a,c=>c.setA(c.a*.12));const l=new Je(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setA(c.a*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
85
- :root {
86
- ${Object.keys(r).map(a=>`--${e}-${a}: ${r[a]};`).join(`
87
- `)}
88
- }
89
- `.trim()}function Hh(e,t){const r=Lh(e,t);gt()?er(r,`${Dh}-dynamic-theme`):process.env.NODE_ENV!=="production"&&zn(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const In=v.createContext(!1),zh=({children:e,disabled:t})=>{const r=v.useContext(In);return v.createElement(In.Provider,{value:t??r},e)},Qr=v.createContext(void 0),Bh=({children:e,size:t})=>{const r=v.useContext(Qr);return v.createElement(Qr.Provider,{value:t||r},e)};function Wh(){const e=E.useContext(In),t=E.useContext(Qr);return{componentDisabled:e,componentSize:t}}var mu=at(function e(){it(this,e)}),pu="CALC_UNIT",qh=new RegExp(pu,"g");function xi(e){return typeof e=="number"?"".concat(e).concat(pu):e}var Uh=(function(e){vr(r,e);var t=hr(r);function r(n,o){var i;it(this,r),i=t.call(this),O(xe(i),"result",""),O(xe(i),"unitlessCssVar",void 0),O(xe(i),"lowPriority",void 0);var a=ve(n);return i.unitlessCssVar=o,n instanceof r?i.result="(".concat(n.result,")"):a==="number"?i.result=xi(n):a==="string"&&(i.result=n),i}return at(r,[{key:"add",value:function(o){return o instanceof r?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(xi(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof r?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(xi(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(qh,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r})(mu),Kh=(function(e){vr(r,e);var t=hr(r);function r(n){var o;return it(this,r),o=t.call(this),O(xe(o),"result",0),n instanceof r?o.result=n.result:typeof n=="number"&&(o.result=n),o}return at(r,[{key:"add",value:function(o){return o instanceof r?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof r?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof r?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof r?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),r})(mu),Gh=function(t,r){var n=t==="css"?Uh:Kh;return function(o){return new n(o,r)}},Zs=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Js(e,t,r,n){var o=k({},t[e]);if(n!=null&&n.deprecatedTokens){var i=n.deprecatedTokens;i.forEach(function(s){var l=G(s,2),c=l[0],u=l[1];if(process.env.NODE_ENV!=="production"&&ze(!(o!=null&&o[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(u),"` instead.")),o!=null&&o[c]||o!=null&&o[u]){var d;(d=o[u])!==null&&d!==void 0||(o[u]=o?.[c])}})}var a=k(k({},r),o);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var yu=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",Ca=!0;function rr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!yu)return Object.assign.apply(Object,[{}].concat(t));Ca=!1;var n={};return t.forEach(function(o){if(ve(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),Ca=!0,n}var el={};function Yh(){}var Xh=function(t){var r,n=t,o=Yh;return yu&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(a,s){if(Ca){var l;(l=r)===null||l===void 0||l.add(s)}return a[s]}}),o=function(a,s){var l;el[a]={global:Array.from(r),component:k(k({},(l=el[a])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:o}};function tl(e,t,r){if(typeof r=="function"){var n;return r(rr(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function Qh(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"max(".concat(n.map(function(i){return Me(i)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"min(".concat(n.map(function(i){return Me(i)}).join(","),")")}}}var Zh=1e3*60*10,Jh=(function(){function e(){it(this,e),O(this,"map",new Map),O(this,"objectIDMap",new WeakMap),O(this,"nextID",0),O(this,"lastAccessBeat",new Map),O(this,"accessBeat",0)}return at(e,[{key:"set",value:function(r,n){this.clear();var o=this.getCompositeKey(r);this.map.set(o,n),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),o=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(r){var n=this,o=r.map(function(i){return i&&ve(i)==="object"?"obj_".concat(n.getObjectID(i)):"".concat(ve(i),"_").concat(i)});return o.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(o,i){n-o>Zh&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e})(),rl=new Jh;function eg(e,t){return E.useMemo(function(){var r=rl.get(t);if(r)return r;var n=e();return rl.set(t,n),n},t)}var tg=function(){return{}};function rg(e){var t=e.useCSP,r=t===void 0?tg:t,n=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(f,g,p,y){var h=Array.isArray(f)?f[0]:f;function x(j){return"".concat(String(h)).concat(j.slice(0,1).toUpperCase()).concat(j.slice(1))}var m=y?.unitless||{},S=typeof s=="function"?s(f):{},R=k(k({},S),{},O({},x("zIndexPopup"),!0));Object.keys(m).forEach(function(j){R[x(j)]=m[j]});var b=k(k({},y),{},{unitless:R,prefixToken:x}),w=u(f,g,p,b),C=c(h,p,b);return function(j){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j,M=w(j,A),V=G(M,2),D=V[1],N=C(A),F=G(N,2),L=F[0],I=F[1];return[L,D,I]}}function c(f,g,p){var y=p.unitless,h=p.injectStyle,x=h===void 0?!0:h,m=p.prefixToken,S=p.ignore,R=function(C){var j=C.rootCls,A=C.cssVar,M=A===void 0?{}:A,V=n(),D=V.realToken;return hh({path:[f],prefix:M.prefix,key:M.key,unitless:y,ignore:S,token:D,scope:j},function(){var N=tl(f,D,g),F=Js(f,D,N,{deprecatedTokens:p?.deprecatedTokens});return Object.keys(N).forEach(function(L){F[m(L)]=F[L],delete F[L]}),F}),null},b=function(C){var j=n(),A=j.cssVar;return[function(M){return x&&A?E.createElement(E.Fragment,null,E.createElement(R,{rootCls:C,cssVar:A,component:f}),M):M},A?.key]};return b}function u(f,g,p){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=Array.isArray(f)?f:[f,f],x=G(h,1),m=x[0],S=h.join("-"),R=e.layer||{name:"antd"};return function(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b,C=n(),j=C.theme,A=C.realToken,M=C.hashId,V=C.token,D=C.cssVar,N=o(),F=N.rootPrefixCls,L=N.iconPrefixCls,I=r(),z=D?"css":"js",P=eg(function(){var B=new Set;return D&&Object.keys(y.unitless||{}).forEach(function(q){B.add(wo(q,D.prefix)),B.add(wo(q,Zs(m,D.prefix)))}),Gh(z,B)},[z,m,D?.prefix]),W=Qh(z),Y=W.max,$=W.min,T={theme:j,token:V,hashId:M,nonce:function(){return I.nonce},clientOnly:y.clientOnly,layer:R,order:y.order||-999};typeof i=="function"&&ya(k(k({},T),{},{clientOnly:!1,path:["Shared",F]}),function(){return i(V,{prefix:{rootPrefixCls:F,iconPrefixCls:L},csp:I})});var H=ya(k(k({},T),{},{path:[S,b,L]}),function(){if(y.injectStyle===!1)return[];var B=Xh(V),q=B.token,K=B.flush,ne=tl(m,A,p),Z=".".concat(b),te=Js(m,A,ne,{deprecatedTokens:y.deprecatedTokens});D&&ne&&ve(ne)==="object"&&Object.keys(ne).forEach(function(ye){ne[ye]="var(".concat(wo(ye,Zs(m,D.prefix)),")")});var ie=rr(q,{componentCls:Z,prefixCls:b,iconCls:".".concat(L),antCls:".".concat(F),calc:P,max:Y,min:$},D?ne:te),ge=g(ie,{hashId:M,prefixCls:b,rootPrefixCls:F,iconPrefixCls:L});K(m,te);var ce=typeof a=="function"?a(ie,b,w,y.resetFont):null;return[y.resetStyle===!1?null:ce,ge]});return[H,M]}}function d(f,g,p){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=u(f,g,p,k({resetStyle:!1,order:-998},y)),x=function(S){var R=S.prefixCls,b=S.rootCls,w=b===void 0?R:b;return h(R,w),null};return process.env.NODE_ENV!=="production"&&(x.displayName="SubStyle_".concat(String(Array.isArray(f)?f.join("."):f))),x}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const ko=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],ng="5.27.2";function Ci(e){return e>=0&&e<=255}function fo(e,t){const{r,g:n,b:o,a:i}=new Je(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Je(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((r-a*(1-c))/c),d=Math.round((n-s*(1-c))/c),f=Math.round((o-l*(1-c))/c);if(Ci(u)&&Ci(d)&&Ci(f))return new Je({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new Je({r,g:n,b:o,a:1}).toRgbString()}var og=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function bu(e){const{override:t}=e,r=og(e,["override"]),n=Object.assign({},t);Object.keys(Nn).forEach(f=>{delete n[f]});const o=Object.assign(Object.assign({},r),n),i=480,a=576,s=768,l=992,c=1200,u=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:fo(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:fo(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:fo(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:fo(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
90
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
91
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
92
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
93
- `,boxShadowSecondary:`
94
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
95
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
96
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
97
- `,boxShadowTertiary:`
98
- 0 1px 2px 0 rgba(0, 0, 0, 0.03),
99
- 0 1px 6px -1px rgba(0, 0, 0, 0.02),
100
- 0 2px 4px 0 rgba(0, 0, 0, 0.02)
101
- `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
102
- 0 1px 2px -2px ${new Je("rgba(0, 0, 0, 0.16)").toRgbString()},
103
- 0 3px 6px 0 ${new Je("rgba(0, 0, 0, 0.12)").toRgbString()},
104
- 0 5px 12px 4px ${new Je("rgba(0, 0, 0, 0.09)").toRgbString()}
105
- `,boxShadowDrawerRight:`
106
- -6px 0 16px 0 rgba(0, 0, 0, 0.08),
107
- -3px 0 6px -4px rgba(0, 0, 0, 0.12),
108
- -9px 0 28px 8px rgba(0, 0, 0, 0.05)
109
- `,boxShadowDrawerLeft:`
110
- 6px 0 16px 0 rgba(0, 0, 0, 0.08),
111
- 3px 0 6px -4px rgba(0, 0, 0, 0.12),
112
- 9px 0 28px 8px rgba(0, 0, 0, 0.05)
113
- `,boxShadowDrawerUp:`
114
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
115
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
116
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
117
- `,boxShadowDrawerDown:`
118
- 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
119
- 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
120
- 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
121
- `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var nl=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const xu={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},ig={motionBase:!0,motionUnit:!0},ag={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Cu=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:o}=t,i=nl(t,["override"]);let a=Object.assign(Object.assign({},n),{override:o});return a=bu(a),i&&Object.entries(i).forEach(([s,l])=>{const{theme:c}=l,u=nl(l,["theme"]);let d=u;c&&(d=Cu(Object.assign(Object.assign({},a),u),{override:u},c)),a[s]=d}),a};function nn(){const{token:e,hashed:t,theme:r,override:n,cssVar:o}=E.useContext(gu),i=`${ng}-${t||""}`,a=r||hu,[s,l,c]=Dv(a,[Nn,e],{salt:i,override:n,getComputedToken:Cu,formatToken:bu,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:xu,ignore:ig,preserve:ag}});return[a,c,t?l:"",s,o]}const is=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),sg=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),lg=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),cg=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),ug=(e,t,r,n)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},dg=(e,t)=>({outline:`${Me(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),fg=(e,t)=>({"&:focus-visible":dg(e,t)}),wu=e=>({[`.${e}`]:Object.assign(Object.assign({},sg()),{[`.${e} .${e}-icon`]:{display:"block"}})}),Su=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},fg(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Bn}=rg({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=E.useContext(Ut);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,o]=nn();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{const{csp:e}=E.useContext(Ut);return e??{}},getResetStyles:(e,t)=>{var r;const n=cg(e);return[n,{"&":n},wu((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:os)]},getCommonStyle:ug,getCompUnitless:()=>xu});function vg(e,t){return ko.reduce((r,n)=>{const o=e[`${n}1`],i=e[`${n}3`],a=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const hg=(e,t)=>{const[r,n]=nn();return ya({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>wu(e))},gg=Object.assign({},v),{useId:ol}=gg,mg=()=>"",pg=typeof ol>"u"?mg:ol;function yg(e,t,r){var n,o;const i=qt("ConfigProvider"),a=e||{},s=a.inherit===!1||!t?Object.assign(Object.assign({},ba),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:ba.hashed,cssVar:t?.cssVar}):t,l=pg();if(process.env.NODE_ENV!=="production"){const c=a.cssVar||s.cssVar,u=!!(typeof a.cssVar=="object"&&(!((o=a.cssVar)===null||o===void 0)&&o.key)||l);process.env.NODE_ENV!=="production"&&i(!c||u,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Ga(()=>{var c,u;if(!e)return t;const d=Object.assign({},s.components);Object.keys(e.components||{}).forEach(p=>{d[p]=Object.assign(Object.assign({},d[p]),e.components[p])});const f=`css-var-${l.replace(/:/g,"")}`,g=((c=a.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((u=a.cssVar)===null||u===void 0?void 0:u.key)||f});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:d,cssVar:g})},[a,s],(c,u)=>c.some((d,f)=>{const g=u[f];return!da(d,g,!0)}))}var bg=["children"],Eu=v.createContext({});function xg(e){var t=e.children,r=ft(e,bg);return v.createElement(Eu.Provider,{value:r},t)}var Cg=(function(e){vr(r,e);var t=hr(r);function r(){return it(this,r),t.apply(this,arguments)}return at(r,[{key:"render",value:function(){return this.props.children}}]),r})(v.Component);function wg(e){var t=v.useReducer(function(s){return s+1},0),r=G(t,2),n=r[1],o=v.useRef(e),i=ht(function(){return o.current}),a=ht(function(s){o.current=typeof s=="function"?s(o.current):s,n()});return[i,a]}var cr="none",vo="appear",ho="enter",go="leave",il="none",Nt="prepare",Dr="start",Lr="active",as="end",Ru="prepared";function al(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function Sg(e,t){var r={animationend:al("Animation","AnimationEnd"),transitionend:al("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var Eg=Sg(gt(),typeof window<"u"?window:{}),$u={};if(gt()){var Rg=document.createElement("div");$u=Rg.style}var mo={};function Ou(e){if(mo[e])return mo[e];var t=Eg[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var i=r[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in $u)return mo[e]=t[i],mo[e]}return""}var ju=Ou("animationend"),_u=Ou("transitionend"),Pu=!!(ju&&_u),sl=ju||"animationend",ll=_u||"transitionend";function cl(e,t){if(!e)return null;if(ve(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const $g=(function(e){var t=E.useRef();function r(o){o&&(o.removeEventListener(ll,e),o.removeEventListener(sl,e))}function n(o){t.current&&t.current!==o&&r(t.current),o&&o!==t.current&&(o.addEventListener(ll,e),o.addEventListener(sl,e),t.current=o)}return v.useEffect(function(){return function(){r(t.current)}},[]),[n,r]});var Tu=gt()?E.useLayoutEffect:E.useEffect,Au=function(t){return+setTimeout(t,16)},Mu=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Au=function(t){return window.requestAnimationFrame(t)},Mu=function(t){return window.cancelAnimationFrame(t)});var ul=0,qo=new Map;function Fu(e){qo.delete(e)}var Zr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ul+=1;var n=ul;function o(i){if(i===0)Fu(n),t();else{var a=Au(function(){o(i-1)});qo.set(n,a)}}return o(r),n};Zr.cancel=function(e){var t=qo.get(e);return Fu(e),Mu(t)};process.env.NODE_ENV!=="production"&&(Zr.ids=function(){return qo});const Og=(function(){var e=v.useRef(null);function t(){Zr.cancel(e.current)}function r(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Zr(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i}return v.useEffect(function(){return function(){t()}},[]),[r,t]});var jg=[Nt,Dr,Lr,as],_g=[Nt,Ru],ku=!1,Pg=!0;function Nu(e){return e===Lr||e===as}const Tg=(function(e,t,r){var n=Mn(il),o=G(n,2),i=o[0],a=o[1],s=Og(),l=G(s,2),c=l[0],u=l[1];function d(){a(Nt,!0)}var f=t?_g:jg;return Tu(function(){if(i!==il&&i!==as){var g=f.indexOf(i),p=f[g+1],y=r(i);y===ku?a(p,!0):p&&c(function(h){function x(){h.isCanceled()||a(p,!0)}y===!0?x():Promise.resolve(y).then(x)})}},[e,i]),v.useEffect(function(){return function(){u()}},[]),[d,i]});function Ag(e,t,r,n){var o=n.motionEnter,i=o===void 0?!0:o,a=n.motionAppear,s=a===void 0?!0:a,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,d=n.motionLeaveImmediately,f=n.onAppearPrepare,g=n.onEnterPrepare,p=n.onLeavePrepare,y=n.onAppearStart,h=n.onEnterStart,x=n.onLeaveStart,m=n.onAppearActive,S=n.onEnterActive,R=n.onLeaveActive,b=n.onAppearEnd,w=n.onEnterEnd,C=n.onLeaveEnd,j=n.onVisibleChanged,A=Mn(),M=G(A,2),V=M[0],D=M[1],N=wg(cr),F=G(N,2),L=F[0],I=F[1],z=Mn(null),P=G(z,2),W=P[0],Y=P[1],$=L(),T=E.useRef(!1),H=E.useRef(null);function B(){return r()}var q=E.useRef(!1);function K(){I(cr),Y(null,!0)}var ne=ht(function(be){var Ee=L();if(Ee!==cr){var he=B();if(!(be&&!be.deadline&&be.target!==he)){var Q=q.current,Ce;Ee===vo&&Q?Ce=b?.(he,be):Ee===ho&&Q?Ce=w?.(he,be):Ee===go&&Q&&(Ce=C?.(he,be)),Q&&Ce!==!1&&K()}}}),Z=$g(ne),te=G(Z,1),ie=te[0],ge=function(Ee){switch(Ee){case vo:return O(O(O({},Nt,f),Dr,y),Lr,m);case ho:return O(O(O({},Nt,g),Dr,h),Lr,S);case go:return O(O(O({},Nt,p),Dr,x),Lr,R);default:return{}}},ce=v.useMemo(function(){return ge($)},[$]),ye=Tg($,!e,function(be){if(be===Nt){var Ee=ce[Nt];return Ee?Ee(B()):ku}if(J in ce){var he;Y(((he=ce[J])===null||he===void 0?void 0:he.call(ce,B(),null))||null)}return J===Lr&&$!==cr&&(ie(B()),u>0&&(clearTimeout(H.current),H.current=setTimeout(function(){ne({deadline:!0})},u))),J===Ru&&K(),Pg}),U=G(ye,2),se=U[0],J=U[1],le=Nu(J);q.current=le;var pe=E.useRef(null);Tu(function(){if(!(T.current&&pe.current===t)){D(t);var be=T.current;T.current=!0;var Ee;!be&&t&&s&&(Ee=vo),be&&t&&i&&(Ee=ho),(be&&!t&&c||!be&&d&&!t&&c)&&(Ee=go);var he=ge(Ee);Ee&&(e||he[Nt])?(I(Ee),se()):I(cr),pe.current=t}},[t]),E.useEffect(function(){($===vo&&!s||$===ho&&!i||$===go&&!c)&&I(cr)},[s,i,c]),E.useEffect(function(){return function(){T.current=!1,clearTimeout(H.current)}},[]);var ue=v.useRef(!1);E.useEffect(function(){V&&(ue.current=!0),V!==void 0&&$===cr&&((ue.current||V)&&j?.(V),ue.current=!0)},[V,$]);var $e=W;return ce[Nt]&&J===Dr&&($e=k({transition:"none"},$e)),[$,J,$e,V??t]}function Mg(e){var t=e;ve(e)==="object"&&(t=e.transitionSupport);function r(o,i){return!!(o.motionName&&t&&i!==!1)}var n=v.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,f=o.motionName,g=o.leavedClassName,p=o.eventProps,y=v.useContext(Eu),h=y.motion,x=r(o,h),m=E.useRef(),S=E.useRef();function R(){try{return m.current instanceof HTMLElement?m.current:Co(S.current)}catch{return null}}var b=Ag(x,s,R,o),w=G(b,4),C=w[0],j=w[1],A=w[2],M=w[3],V=v.useRef(M);M&&(V.current=!0);var D=v.useCallback(function(P){m.current=P,Ya(i,P)},[i]),N,F=k(k({},p),{},{visible:s});if(!d)N=null;else if(C===cr)M?N=d(k({},F),D):!c&&V.current&&g?N=d(k(k({},F),{},{className:g}),D):u||!c&&!g?N=d(k(k({},F),{},{style:{display:"none"}}),D):N=null;else{var L;j===Nt?L="prepare":Nu(j)?L="active":j===Dr&&(L="start");var I=cl(f,"".concat(C,"-").concat(L));N=d(k(k({},F),{},{className:ae(cl(f,C),O(O({},I,I&&L),f,typeof f=="string")),style:A}),D)}if(v.isValidElement(N)&&Lo(N)){var z=Qa(N);z||(N=v.cloneElement(N,{ref:D}))}return v.createElement(Cg,{ref:S},N)});return n.displayName="CSSMotion",n}const ss=Mg(Pu);var wa="add",Sa="keep",Ea="remove",wi="removed";function Fg(e){var t;return e&&ve(e)==="object"&&"key"in e?t=e:t={key:e},k(k({},t),{},{key:String(t.key)})}function Ra(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Fg)}function kg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,i=Ra(e),a=Ra(t);i.forEach(function(c){for(var u=!1,d=n;d<o;d+=1){var f=a[d];if(f.key===c.key){n<d&&(r=r.concat(a.slice(n,d).map(function(g){return k(k({},g),{},{status:wa})})),n=d),r.push(k(k({},f),{},{status:Sa})),n+=1,u=!0;break}}u||r.push(k(k({},c),{},{status:Ea}))}),n<o&&(r=r.concat(a.slice(n).map(function(c){return k(k({},c),{},{status:wa})})));var s={};r.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){r=r.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==Ea}),r.forEach(function(u){u.key===c&&(u.status=Sa)})}),r}var Ng=["component","children","onVisibleChanged","onAllRemoved"],Ig=["status"],Vg=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Dg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ss,r=(function(n){vr(i,n);var o=hr(i);function i(){var a;it(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=o.call.apply(o,[this].concat(l)),O(xe(a),"state",{keyEntities:[]}),O(xe(a),"removeKey",function(u){a.setState(function(d){var f=d.keyEntities.map(function(g){return g.key!==u?g:k(k({},g),{},{status:wi})});return{keyEntities:f}},function(){var d=a.state.keyEntities,f=d.filter(function(g){var p=g.status;return p!==wi}).length;f===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return at(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged;c.onAllRemoved;var g=ft(c,Ng),p=u||v.Fragment,y={};return Vg.forEach(function(h){y[h]=g[h],delete g[h]}),delete g.keys,v.createElement(p,g,l.map(function(h,x){var m=h.status,S=ft(h,Ig),R=m===wa||m===Sa;return v.createElement(t,Ie({},y,{key:S.key,visible:R,eventProps:S,onVisibleChanged:function(w){f?.(w,{key:S.key}),w||s.removeKey(S.key)}}),function(b,w){return d(k(k({},b),{},{index:x}),w)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=Ra(c),f=kg(u,d);return{keyEntities:f.filter(function(g){var p=u.find(function(y){var h=y.key;return g.key===h});return!(p&&p.status===wi&&g.status===Ea)})}}}]),i})(v.Component);return O(r,"defaultProps",{component:"div"}),r}Dg(Pu);const $a=v.createContext(!0);process.env.NODE_ENV!=="production"&&($a.displayName="MotionCacheContext");function Lg(e){const t=v.useContext($a),{children:r}=e,[,n]=nn(),{motion:o}=n,i=v.useRef(!1);return i.current||(i.current=t!==o),i.current?v.createElement($a.Provider,{value:o},v.createElement(xg,{motion:o},r)):r}const Iu=v.memo(({dropdownMatchSelectWidth:e})=>(qt("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Iu.displayName="PropWarning");const Hg=process.env.NODE_ENV!=="production"?Iu:()=>null;var zg=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let Oa=!1;process.env.NODE_ENV;const Bg=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Vu;function Wg(){return Vu||xa}function qg(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Ug=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&(Vu=t),n&&qg(n)&&(process.env.NODE_ENV!=="production"&&zn(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Hh(Wg(),n))},Kg=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:d,virtual:f,dropdownMatchSelectWidth:g,popupMatchSelectWidth:p,popupOverflow:y,legacyLocale:h,parentContext:x,iconPrefixCls:m,theme:S,componentDisabled:R,segmented:b,statistic:w,spin:C,calendar:j,carousel:A,cascader:M,collapse:V,typography:D,checkbox:N,descriptions:F,divider:L,drawer:I,skeleton:z,steps:P,image:W,layout:Y,list:$,mentions:T,modal:H,progress:B,result:q,slider:K,breadcrumb:ne,menu:Z,pagination:te,input:ie,textArea:ge,empty:ce,badge:ye,radio:U,rate:se,switch:J,transfer:le,avatar:pe,message:ue,tag:$e,table:be,card:Ee,tabs:he,timeline:Q,timePicker:Ce,upload:Re,notification:Qe,tree:Ne,colorPicker:Ve,datePicker:tt,rangePicker:Te,flex:Oe,wave:Se,dropdown:me,warning:De,tour:re,tooltip:de,popover:Ue,popconfirm:Kt,floatButton:gr,floatButtonGroup:Rr,variant:an,inputNumber:$r,treeSelect:Tt}=e,st=v.useCallback((Fe,Ge)=>{const{prefixCls:vt}=e;if(Ge)return Ge;const ct=vt||x.getPrefixCls("");return Fe?`${ct}-${Fe}`:ct},[x.getPrefixCls,e.prefixCls]),Ke=m||x.iconPrefixCls||os,Gt=r||x.csp;hg(Ke,Gt);const lt=yg(S,x.theme,{prefixCls:st("")});process.env.NODE_ENV!=="production"&&(Oa=Oa||!!lt);const Ae={csp:Gt,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:s||h,direction:c,space:u,splitter:d,virtual:f,popupMatchSelectWidth:p??g,popupOverflow:y,getPrefixCls:st,iconPrefixCls:Ke,theme:lt,segmented:b,statistic:w,spin:C,calendar:j,carousel:A,cascader:M,collapse:V,typography:D,checkbox:N,descriptions:F,divider:L,drawer:I,skeleton:z,steps:P,image:W,input:ie,textArea:ge,layout:Y,list:$,mentions:T,modal:H,progress:B,result:q,slider:K,breadcrumb:ne,menu:Z,pagination:te,empty:ce,badge:ye,radio:U,rate:se,switch:J,transfer:le,avatar:pe,message:ue,tag:$e,table:be,card:Ee,tabs:he,timeline:Q,timePicker:Ce,upload:Re,notification:Qe,tree:Ne,colorPicker:Ve,datePicker:tt,rangePicker:Te,flex:Oe,wave:Se,dropdown:me,warning:De,tour:re,tooltip:de,popover:Ue,popconfirm:Kt,floatButton:gr,floatButtonGroup:Rr,variant:an,inputNumber:$r,treeSelect:Tt};process.env.NODE_ENV!=="production"&&qt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const je=Object.assign({},x);Object.keys(Ae).forEach(Fe=>{Ae[Fe]!==void 0&&(je[Fe]=Ae[Fe])}),Bg.forEach(Fe=>{const Ge=e[Fe];Ge&&(je[Fe]=Ge)}),typeof n<"u"&&(je.button=Object.assign({autoInsertSpace:n},je.button));const rt=Ga(()=>je,je,(Fe,Ge)=>{const vt=Object.keys(Fe),ct=Object.keys(Ge);return vt.length!==ct.length||vt.some(Lt=>Fe[Lt]!==Ge[Lt])}),{layer:Dt}=v.useContext(Hn),mt=v.useMemo(()=>({prefixCls:Ke,csp:Gt,layer:Dt?"antd":void 0}),[Ke,Gt,Dt]);let We=v.createElement(v.Fragment,null,v.createElement(Hg,{dropdownMatchSelectWidth:g}),t);const nr=v.useMemo(()=>{var Fe,Ge,vt,ct;return Vr(((Fe=Xr.Form)===null||Fe===void 0?void 0:Fe.defaultValidateMessages)||{},((vt=(Ge=rt.locale)===null||Ge===void 0?void 0:Ge.Form)===null||vt===void 0?void 0:vt.defaultValidateMessages)||{},((ct=rt.form)===null||ct===void 0?void 0:ct.validateMessages)||{},a?.validateMessages||{})},[rt,a?.validateMessages]);Object.keys(nr).length>0&&(We=v.createElement(xh.Provider,{value:nr},We)),s&&(We=v.createElement(fu,{locale:s,_ANT_MARK__:du},We)),We=v.createElement(qa.Provider,{value:mt},We),l&&(We=v.createElement(Bh,{size:l},We)),We=v.createElement(Lg,null,We);const Yt=v.useMemo(()=>{const Fe=lt||{},{algorithm:Ge,token:vt,components:ct,cssVar:Lt}=Fe,Or=zg(Fe,["algorithm","token","components","cssVar"]),At=Ge&&(!Array.isArray(Ge)||Ge.length>0)?va(Ge):hu,Ct={};Object.entries(ct||{}).forEach(([Mt,jr])=>{const Le=Object.assign({},jr);"algorithm"in Le&&(Le.algorithm===!0?Le.theme=At:(Array.isArray(Le.algorithm)||typeof Le.algorithm=="function")&&(Le.theme=va(Le.algorithm)),delete Le.algorithm),Ct[Mt]=Le});const Ht=Object.assign(Object.assign({},Nn),vt);return Object.assign(Object.assign({},Or),{theme:At,token:Ht,components:Ct,override:Object.assign({override:Ht},Ct),cssVar:Lt})},[lt]);return S&&(We=v.createElement(gu.Provider,{value:Yt},We)),rt.warning&&(We=v.createElement(cu.Provider,{value:rt.warning},We)),R!==void 0&&(We=v.createElement(zh,{disabled:R},We)),v.createElement(Ut.Provider,{value:rt},We)},on=e=>{const t=v.useContext(Ut),r=v.useContext(ns);return v.createElement(Kg,Object.assign({parentContext:t,legacyLocale:r},e))};on.ConfigContext=Ut;on.SizeContext=Qr;on.config=Ug;on.useConfig=Wh;Object.defineProperty(on,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&zn(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Qr)});process.env.NODE_ENV!=="production"&&(on.displayName="ConfigProvider");function Du(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return v.createElement("div",{className:ae("".concat(r,"-content"),a),style:s},v.createElement("div",{className:ae("".concat(r,"-inner"),i),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var Lu=v.createContext(null),dl=[];function Gg(e,t){var r=v.useState(function(){if(!gt())return null;var p=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&p.setAttribute("data-debug",t),p}),n=G(r,1),o=n[0],i=v.useRef(!1),a=v.useContext(Lu),s=v.useState(dl),l=G(s,2),c=l[0],u=l[1],d=a||(i.current?void 0:function(p){u(function(y){var h=[p].concat(oe(y));return h})});function f(){o.parentElement||document.body.appendChild(o),i.current=!0}function g(){var p;(p=o.parentElement)===null||p===void 0||p.removeChild(o),i.current=!1}return Be(function(){return e?a?a(f):f():g(),g},[e]),Be(function(){c.length&&(c.forEach(function(p){return p()}),u(dl))},[c]),[o,d]}function Yg(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);n.scrollbarColor=a.scrollbarColor,n.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";er(`
122
- #`.concat(t,`::-webkit-scrollbar {
123
- `).concat(u,`
124
- `).concat(d,`
125
- }`),t)}catch(p){console.error(p),o=l,i=c}}document.body.appendChild(r);var f=e&&o&&!isNaN(o)?o:r.offsetWidth-r.clientWidth,g=e&&i&&!isNaN(i)?i:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),_n(t),{width:f,height:g}}function Xg(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Yg(e)}function Qg(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Zg="rc-util-locker-".concat(Date.now()),fl=0;function Jg(e){var t=!!e,r=v.useState(function(){return fl+=1,"".concat(Zg,"_").concat(fl)}),n=G(r,1),o=n[0];Be(function(){if(t){var i=Xg(document.body).width,a=Qg();er(`
126
- html body {
127
- overflow-y: hidden;
128
- `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
129
- }`),o)}else _n(o);return function(){_n(o)}},[t,o])}var em=!1;function tm(e){return em}var vl=function(t){return t===!1?!1:!gt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},ls=v.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,l=e.children,c=v.useState(r),u=G(c,2),d=u[0],f=u[1],g=d||r;process.env.NODE_ENV!=="production"&&ze(gt()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),v.useEffect(function(){(s||r)&&f(r)},[r,s]);var p=v.useState(function(){return vl(o)}),y=G(p,2),h=y[0],x=y[1];v.useEffect(function(){var D=vl(o);x(D??null)});var m=Gg(g&&!h,i),S=G(m,2),R=S[0],b=S[1],w=h??R;Jg(n&&r&&gt()&&(w===R||w===document.body));var C=null;if(l&&Lo(l)&&t){var j=l;C=j.ref}var A=Xa(C,t);if(!g||!gt()||h===void 0)return null;var M=w===!1||tm(),V=l;return t&&(V=v.cloneElement(l,{ref:A})),v.createElement(Lu.Provider,{value:b},M?V:jo.createPortal(V,w))});process.env.NODE_ENV!=="production"&&(ls.displayName="Portal");function rm(){var e=k({},v);return e.useId}var hl=0,gl=rm();const Hu=gl?function(t){var r=gl();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=v.useState("ssr-id"),n=G(r,2),o=n[0],i=n[1];return v.useEffect(function(){var a=hl;hl+=1,i("rc_unique_".concat(a))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)},nm=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))});function om(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,i=n||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,d=u===void 0?0:u,f=v.useRef();if(!r||!r.points)return null;var g={position:"absolute"};if(r.autoArrow!==!1){var p=r.points[0],y=r.points[1],h=p[0],x=p[1],m=y[0],S=y[1];h===m||!["t","b"].includes(h)?g.top=d:h==="t"?g.top=0:g.bottom=0,x===S||!["l","r"].includes(x)?g.left=c:x==="l"?g.left=0:g.right=0}return v.createElement("div",{ref:f,className:ae("".concat(t,"-arrow"),a),style:g},s)}function im(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,i=e.motion;return o?v.createElement(ss,Ie({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return v.createElement("div",{style:{zIndex:n},className:ae("".concat(t,"-mask"),s)})}):null}var zu=v.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(zu.displayName="PopupContent");var Bu=v.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,g=e.arrow,p=e.arrowPos,y=e.align,h=e.motion,x=e.maskMotion,m=e.forceRender,S=e.getPopupContainer,R=e.autoDestroy,b=e.portal,w=e.zIndex,C=e.onMouseEnter,j=e.onMouseLeave,A=e.onPointerEnter,M=e.onPointerDownCapture,V=e.ready,D=e.offsetX,N=e.offsetY,F=e.offsetR,L=e.offsetB,I=e.onAlign,z=e.onPrepare,P=e.stretch,W=e.targetWidth,Y=e.targetHeight,$=typeof r=="function"?r():r,T=l||c,H=S?.length>0,B=v.useState(!S||!H),q=G(B,2),K=q[0],ne=q[1];if(Be(function(){!K&&H&&a&&ne(!0)},[K,H,a]),!K)return null;var Z="auto",te={left:"-1000vw",top:"-1000vh",right:Z,bottom:Z};if(V||!l){var ie,ge=y.points,ce=y.dynamicInset||((ie=y._experimental)===null||ie===void 0?void 0:ie.dynamicInset),ye=ce&&ge[0][1]==="r",U=ce&&ge[0][0]==="b";ye?(te.right=F,te.left=Z):(te.left=D,te.right=Z),U?(te.bottom=L,te.top=Z):(te.top=N,te.bottom=Z)}var se={};return P&&(P.includes("height")&&Y?se.height=Y:P.includes("minHeight")&&Y&&(se.minHeight=Y),P.includes("width")&&W?se.width=W:P.includes("minWidth")&&W&&(se.minWidth=W)),l||(se.pointerEvents="none"),v.createElement(b,{open:m||T,getContainer:S&&function(){return S(a)},autoDestroy:R},v.createElement(im,{prefixCls:o,open:l,zIndex:w,mask:f,motion:x}),v.createElement(tn,{onResize:I,disabled:!l},function(J){return v.createElement(ss,Ie({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(o,"-hidden")},h,{onAppearPrepare:z,onEnterPrepare:z,visible:l,onVisibleChanged:function(pe){var ue;h==null||(ue=h.onVisibleChanged)===null||ue===void 0||ue.call(h,pe),s(pe)}}),function(le,pe){var ue=le.className,$e=le.style,be=ae(o,ue,n);return v.createElement("div",{ref:Ln(J,t,pe),className:be,style:k(k(k(k({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},te),se),$e),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:C,onMouseLeave:j,onPointerEnter:A,onClick:d,onPointerDownCapture:M},g&&v.createElement(om,{prefixCls:o,arrow:g,arrowPos:p,align:y}),v.createElement(zu,{cache:!l&&!u},$))})}))});process.env.NODE_ENV!=="production"&&(Bu.displayName="Popup");var Wu=v.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=Lo(r),i=v.useCallback(function(s){Ya(t,n?n(s):s)},[n]),a=Xa(i,Qa(r));return o?v.cloneElement(r,{ref:a}):r});process.env.NODE_ENV!=="production"&&(Wu.displayName="TriggerWrapper");var ml=v.createContext(null);function pl(e){return e?Array.isArray(e)?e:[e]:[]}function am(e,t,r,n){return v.useMemo(function(){var o=pl(r??t),i=pl(n??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,n])}const sm=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1});function lm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function cm(e,t,r,n){for(var o=r.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(lm((s=e[l])===null||s===void 0?void 0:s.points,o,n))return"".concat(t,"-placement-").concat(l)}return""}function yl(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Wn(e){return e.ownerDocument.defaultView}function ja(e){for(var t=[],r=e?.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=Wn(r).getComputedStyle(r),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function Vn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function gn(e){return Vn(parseFloat(e),0)}function bl(e,t){var r=k({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=Wn(n).getComputedStyle(n),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=n.getBoundingClientRect(),f=n.offsetHeight,g=n.clientHeight,p=n.offsetWidth,y=n.clientWidth,h=gn(s),x=gn(l),m=gn(c),S=gn(u),R=Vn(Math.round(d.width/p*1e3)/1e3),b=Vn(Math.round(d.height/f*1e3)/1e3),w=(p-y-m-S)*R,C=(f-g-h-x)*b,j=h*b,A=x*b,M=m*R,V=S*R,D=0,N=0;if(i==="clip"){var F=gn(a);D=F*R,N=F*b}var L=d.x+M-D,I=d.y+j-N,z=L+d.width+2*D-M-V-w,P=I+d.height+2*N-j-A-C;r.left=Math.max(r.left,L),r.top=Math.max(r.top,I),r.right=Math.min(r.right,z),r.bottom=Math.min(r.bottom,P)}}),r}function xl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function Cl(e,t){var r=t||[],n=G(r,2),o=n[0],i=n[1];return[xl(e.width,o),xl(e.height,i)]}function wl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Mr(e,t){var r=t[0],n=t[1],o,i;return r==="t"?i=e.y:r==="b"?i=e.y+e.height:i=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function lr(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===t?r[n]||"c":n}).join("")}function um(e,t,r,n,o,i,a){var s=v.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),l=G(s,2),c=l[0],u=l[1],d=v.useRef(0),f=v.useMemo(function(){return t?ja(t):[]},[t]),g=v.useRef({}),p=function(){g.current={}};e||p();var y=ht(function(){if(t&&r&&e){let wt=function(dn,Xt){var sr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ce,fn=T.x+dn,oo=T.y+Xt,ai=fn+U,si=oo+ye,li=Math.max(fn,sr.left),ee=Math.max(oo,sr.top),fe=Math.min(ai,sr.right),He=Math.min(si,sr.bottom);return Math.max(0,(fe-li)*(He-ee))},Pr=function(){At=T.y+je,Ct=At+ye,Ht=T.x+Ae,Mt=Ht+U};var m,S,R,b,w=t,C=w.ownerDocument,j=Wn(w),A=j.getComputedStyle(w),M=A.position,V=w.style.left,D=w.style.top,N=w.style.right,F=w.style.bottom,L=w.style.overflow,I=k(k({},o[n]),i),z=C.createElement("div");(m=w.parentElement)===null||m===void 0||m.appendChild(z),z.style.left="".concat(w.offsetLeft,"px"),z.style.top="".concat(w.offsetTop,"px"),z.style.position=M,z.style.height="".concat(w.offsetHeight,"px"),z.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var P;if(Array.isArray(r))P={x:r[0],y:r[1],width:0,height:0};else{var W,Y,$=r.getBoundingClientRect();$.x=(W=$.x)!==null&&W!==void 0?W:$.left,$.y=(Y=$.y)!==null&&Y!==void 0?Y:$.top,P={x:$.x,y:$.y,width:$.width,height:$.height}}var T=w.getBoundingClientRect(),H=j.getComputedStyle(w),B=H.height,q=H.width;T.x=(S=T.x)!==null&&S!==void 0?S:T.left,T.y=(R=T.y)!==null&&R!==void 0?R:T.top;var K=C.documentElement,ne=K.clientWidth,Z=K.clientHeight,te=K.scrollWidth,ie=K.scrollHeight,ge=K.scrollTop,ce=K.scrollLeft,ye=T.height,U=T.width,se=P.height,J=P.width,le={left:0,top:0,right:ne,bottom:Z},pe={left:-ce,top:-ge,right:te-ce,bottom:ie-ge},ue=I.htmlRegion,$e="visible",be="visibleFirst";ue!=="scroll"&&ue!==be&&(ue=$e);var Ee=ue===be,he=bl(pe,f),Q=bl(le,f),Ce=ue===$e?Q:he,Re=Ee?Q:Ce;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var Qe=w.getBoundingClientRect();w.style.left=V,w.style.top=D,w.style.right=N,w.style.bottom=F,w.style.overflow=L,(b=w.parentElement)===null||b===void 0||b.removeChild(z);var Ne=Vn(Math.round(U/parseFloat(q)*1e3)/1e3),Ve=Vn(Math.round(ye/parseFloat(B)*1e3)/1e3);if(Ne===0||Ve===0||Pn(r)&&!sm(r))return;var tt=I.offset,Te=I.targetOffset,Oe=Cl(T,tt),Se=G(Oe,2),me=Se[0],De=Se[1],re=Cl(P,Te),de=G(re,2),Ue=de[0],Kt=de[1];P.x-=Ue,P.y-=Kt;var gr=I.points||[],Rr=G(gr,2),an=Rr[0],$r=Rr[1],Tt=wl($r),st=wl(an),Ke=Mr(P,Tt),Gt=Mr(T,st),lt=k({},I),Ae=Ke.x-Gt.x+me,je=Ke.y-Gt.y+De,rt=wt(Ae,je),Dt=wt(Ae,je,Q),mt=Mr(P,["t","l"]),We=Mr(T,["t","l"]),nr=Mr(P,["b","r"]),Yt=Mr(T,["b","r"]),Fe=I.overflow||{},Ge=Fe.adjustX,vt=Fe.adjustY,ct=Fe.shiftX,Lt=Fe.shiftY,Or=function(Xt){return typeof Xt=="boolean"?Xt:Xt>=0},At,Ct,Ht,Mt;Pr();var jr=Or(vt),Le=st[0]===Tt[0];if(jr&&st[0]==="t"&&(Ct>Re.bottom||g.current.bt)){var mr=je;Le?mr-=ye-se:mr=mt.y-Yt.y-De;var Yn=wt(Ae,mr),Yo=wt(Ae,mr,Q);Yn>rt||Yn===rt&&(!Ee||Yo>=Dt)?(g.current.bt=!0,je=mr,De=-De,lt.points=[lr(st,0),lr(Tt,0)]):g.current.bt=!1}if(jr&&st[0]==="b"&&(At<Re.top||g.current.tb)){var pr=je;Le?pr+=ye-se:pr=nr.y-We.y-De;var Xn=wt(Ae,pr),Xo=wt(Ae,pr,Q);Xn>rt||Xn===rt&&(!Ee||Xo>=Dt)?(g.current.tb=!0,je=pr,De=-De,lt.points=[lr(st,0),lr(Tt,0)]):g.current.tb=!1}var Qn=Or(Ge),Zn=st[1]===Tt[1];if(Qn&&st[1]==="l"&&(Mt>Re.right||g.current.rl)){var yr=Ae;Zn?yr-=U-J:yr=mt.x-Yt.x-me;var br=wt(yr,je),sn=wt(yr,je,Q);br>rt||br===rt&&(!Ee||sn>=Dt)?(g.current.rl=!0,Ae=yr,me=-me,lt.points=[lr(st,1),lr(Tt,1)]):g.current.rl=!1}if(Qn&&st[1]==="r"&&(Ht<Re.left||g.current.lr)){var xr=Ae;Zn?xr+=U-J:xr=nr.x-We.x-me;var ln=wt(xr,je),_r=wt(xr,je,Q);ln>rt||ln===rt&&(!Ee||_r>=Dt)?(g.current.lr=!0,Ae=xr,me=-me,lt.points=[lr(st,1),lr(Tt,1)]):g.current.lr=!1}Pr();var Ft=ct===!0?0:ct;typeof Ft=="number"&&(Ht<Q.left&&(Ae-=Ht-Q.left-me,P.x+J<Q.left+Ft&&(Ae+=P.x-Q.left+J-Ft)),Mt>Q.right&&(Ae-=Mt-Q.right-me,P.x>Q.right-Ft&&(Ae+=P.x-Q.right+Ft)));var or=Lt===!0?0:Lt;typeof or=="number"&&(At<Q.top&&(je-=At-Q.top-De,P.y+se<Q.top+or&&(je+=P.y-Q.top+se-or)),Ct>Q.bottom&&(je-=Ct-Q.bottom-De,P.y>Q.bottom-or&&(je+=P.y-Q.bottom+or)));var ir=T.x+Ae,ar=ir+U,cn=T.y+je,Qo=cn+ye,Jn=P.x,eo=Jn+J,to=P.y,Zo=to+se,Jo=Math.max(ir,Jn),ro=Math.min(ar,eo),ei=(Jo+ro)/2,ti=ei-ir,no=Math.max(cn,to),ri=Math.min(Qo,Zo),ni=(no+ri)/2,oi=ni-cn;a?.(t,lt);var zt=Qe.right-T.x-(Ae+T.width),un=Qe.bottom-T.y-(je+T.height);Ne===1&&(Ae=Math.round(Ae),zt=Math.round(zt)),Ve===1&&(je=Math.round(je),un=Math.round(un));var ii={ready:!0,offsetX:Ae/Ne,offsetY:je/Ve,offsetR:zt/Ne,offsetB:un/Ve,arrowX:ti/Ne,arrowY:oi/Ve,scaleX:Ne,scaleY:Ve,align:lt};u(ii)}}),h=function(){d.current+=1;var S=d.current;Promise.resolve().then(function(){d.current===S&&y()})},x=function(){u(function(S){return k(k({},S),{},{ready:!1})})};return Be(x,[n]),Be(function(){e||x()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,h]}function dm(e,t,r,n,o){Be(function(){if(e&&t&&r){let d=function(){n(),o()};var i=t,a=r,s=ja(i),l=ja(a),c=Wn(a),u=new Set([c].concat(oe(s),oe(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),n(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,r])}function fm(e,t,r,n,o,i,a,s){var l=v.useRef(e);l.current=e;var c=v.useRef(!1);v.useEffect(function(){if(t&&n&&(!o||i)){var d=function(){c.current=!1},f=function(R){var b;l.current&&!a(((b=R.composedPath)===null||b===void 0||(b=b.call(R))===null||b===void 0?void 0:b[0])||R.target)&&!c.current&&s(!1)},g=Wn(n);g.addEventListener("pointerdown",d,!0),g.addEventListener("mousedown",f,!0),g.addEventListener("contextmenu",f,!0);var p=To(r);if(p&&(p.addEventListener("mousedown",f,!0),p.addEventListener("contextmenu",f,!0)),process.env.NODE_ENV!=="production"){var y,h,x=r==null||(y=r.getRootNode)===null||y===void 0?void 0:y.call(r),m=(h=n.getRootNode)===null||h===void 0?void 0:h.call(n);Wr(x===m,"trigger element and popup element should in same shadow root.")}return function(){g.removeEventListener("pointerdown",d,!0),g.removeEventListener("mousedown",f,!0),g.removeEventListener("contextmenu",f,!0),p&&(p.removeEventListener("mousedown",f,!0),p.removeEventListener("contextmenu",f,!0))}}},[t,r,n,o,i]);function u(){c.current=!0}return u}var vm=["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 hm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ls,t=v.forwardRef(function(r,n){var o=r.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,d=r.popupVisible,f=r.defaultPopupVisible,g=r.onPopupVisibleChange,p=r.afterPopupVisibleChange,y=r.mouseEnterDelay,h=r.mouseLeaveDelay,x=h===void 0?.1:h,m=r.focusDelay,S=r.blurDelay,R=r.mask,b=r.maskClosable,w=b===void 0?!0:b,C=r.getPopupContainer,j=r.forceRender,A=r.autoDestroy,M=r.destroyPopupOnHide,V=r.popup,D=r.popupClassName,N=r.popupStyle,F=r.popupPlacement,L=r.builtinPlacements,I=L===void 0?{}:L,z=r.popupAlign,P=r.zIndex,W=r.stretch,Y=r.getPopupClassNameFromAlign,$=r.fresh,T=r.alignPoint,H=r.onPopupClick,B=r.onPopupAlign,q=r.arrow,K=r.popupMotion,ne=r.maskMotion,Z=r.popupTransitionName,te=r.popupAnimation,ie=r.maskTransitionName,ge=r.maskAnimation,ce=r.className,ye=r.getTriggerDOMNode,U=ft(r,vm),se=A||M||!1,J=v.useState(!1),le=G(J,2),pe=le[0],ue=le[1];Be(function(){ue(nm())},[]);var $e=v.useRef({}),be=v.useContext(ml),Ee=v.useMemo(function(){return{registerSubPopup:function(fe,He){$e.current[fe]=He,be?.registerSubPopup(fe,He)}}},[be]),he=Hu(),Q=v.useState(null),Ce=G(Q,2),Re=Ce[0],Qe=Ce[1],Ne=v.useRef(null),Ve=ht(function(ee){Ne.current=ee,Pn(ee)&&Re!==ee&&Qe(ee),be?.registerSubPopup(he,ee)}),tt=v.useState(null),Te=G(tt,2),Oe=Te[0],Se=Te[1],me=v.useRef(null),De=ht(function(ee){Pn(ee)&&Oe!==ee&&(Se(ee),me.current=ee)}),re=v.Children.only(a),de=re?.props||{},Ue={},Kt=ht(function(ee){var fe,He,Ze=Oe;return Ze?.contains(ee)||((fe=To(Ze))===null||fe===void 0?void 0:fe.host)===ee||ee===Ze||Re?.contains(ee)||((He=To(Re))===null||He===void 0?void 0:He.host)===ee||ee===Re||Object.values($e.current).some(function(qe){return qe?.contains(ee)||ee===qe})}),gr=yl(i,K,te,Z),Rr=yl(i,ne,ge,ie),an=v.useState(f||!1),$r=G(an,2),Tt=$r[0],st=$r[1],Ke=d??Tt,Gt=ht(function(ee){d===void 0&&st(ee)});Be(function(){st(d||!1)},[d]);var lt=v.useRef(Ke);lt.current=Ke;var Ae=v.useRef([]);Ae.current=[];var je=ht(function(ee){var fe;Gt(ee),((fe=Ae.current[Ae.current.length-1])!==null&&fe!==void 0?fe:Ke)!==ee&&(Ae.current.push(ee),g?.(ee))}),rt=v.useRef(),Dt=function(){clearTimeout(rt.current)},mt=function(fe){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Dt(),He===0?je(fe):rt.current=setTimeout(function(){je(fe)},He*1e3)};v.useEffect(function(){return Dt},[]);var We=v.useState(!1),nr=G(We,2),Yt=nr[0],Fe=nr[1];Be(function(ee){(!ee||Ke)&&Fe(!0)},[Ke]);var Ge=v.useState(null),vt=G(Ge,2),ct=vt[0],Lt=vt[1],Or=v.useState(null),At=G(Or,2),Ct=At[0],Ht=At[1],Mt=function(fe){Ht([fe.clientX,fe.clientY])},jr=um(Ke,Re,T&&Ct!==null?Ct:Oe,F,I,z,B),Le=G(jr,11),mr=Le[0],Yn=Le[1],Yo=Le[2],pr=Le[3],Xn=Le[4],Xo=Le[5],Qn=Le[6],Zn=Le[7],yr=Le[8],br=Le[9],sn=Le[10],xr=am(pe,l,c,u),ln=G(xr,2),_r=ln[0],Ft=ln[1],or=_r.has("click"),ir=Ft.has("click")||Ft.has("contextMenu"),ar=ht(function(){Yt||sn()}),cn=function(){lt.current&&T&&ir&&mt(!1)};dm(Ke,Oe,Re,ar,cn),Be(function(){ar()},[Ct,F]),Be(function(){Ke&&!(I!=null&&I[F])&&ar()},[JSON.stringify(z)]);var Qo=v.useMemo(function(){var ee=cm(I,i,br,T);return ae(ee,Y?.(br))},[br,Y,I,i,T]);v.useImperativeHandle(n,function(){return{nativeElement:me.current,popupElement:Ne.current,forceAlign:ar}});var Jn=v.useState(0),eo=G(Jn,2),to=eo[0],Zo=eo[1],Jo=v.useState(0),ro=G(Jo,2),ei=ro[0],ti=ro[1],no=function(){if(W&&Oe){var fe=Oe.getBoundingClientRect();Zo(fe.width),ti(fe.height)}},ri=function(){no(),ar()},ni=function(fe){Fe(!1),sn(),p?.(fe)},oi=function(){return new Promise(function(fe){no(),Lt(function(){return fe})})};Be(function(){ct&&(sn(),ct(),Lt(null))},[ct]);function zt(ee,fe,He,Ze){Ue[ee]=function(qe){var io;Ze?.(qe),mt(fe,He);for(var ci=arguments.length,ms=new Array(ci>1?ci-1:0),ao=1;ao<ci;ao++)ms[ao-1]=arguments[ao];(io=de[ee])===null||io===void 0||io.call.apply(io,[de,qe].concat(ms))}}(or||ir)&&(Ue.onClick=function(ee){var fe;lt.current&&ir?mt(!1):!lt.current&&or&&(Mt(ee),mt(!0));for(var He=arguments.length,Ze=new Array(He>1?He-1:0),qe=1;qe<He;qe++)Ze[qe-1]=arguments[qe];(fe=de.onClick)===null||fe===void 0||fe.call.apply(fe,[de,ee].concat(Ze))});var un=fm(Ke,ir,Oe,Re,R,w,Kt,mt),ii=_r.has("hover"),wt=Ft.has("hover"),Pr,dn;ii&&(zt("onMouseEnter",!0,y,function(ee){Mt(ee)}),zt("onPointerEnter",!0,y,function(ee){Mt(ee)}),Pr=function(fe){(Ke||Yt)&&Re!==null&&Re!==void 0&&Re.contains(fe.target)&&mt(!0,y)},T&&(Ue.onMouseMove=function(ee){var fe;(fe=de.onMouseMove)===null||fe===void 0||fe.call(de,ee)})),wt&&(zt("onMouseLeave",!1,x),zt("onPointerLeave",!1,x),dn=function(){mt(!1,x)}),_r.has("focus")&&zt("onFocus",!0,m),Ft.has("focus")&&zt("onBlur",!1,S),_r.has("contextMenu")&&(Ue.onContextMenu=function(ee){var fe;lt.current&&Ft.has("contextMenu")?mt(!1):(Mt(ee),mt(!0)),ee.preventDefault();for(var He=arguments.length,Ze=new Array(He>1?He-1:0),qe=1;qe<He;qe++)Ze[qe-1]=arguments[qe];(fe=de.onContextMenu)===null||fe===void 0||fe.call.apply(fe,[de,ee].concat(Ze))}),ce&&(Ue.className=ae(de.className,ce));var Xt=v.useRef(!1);Xt.current||(Xt.current=j||Ke||Yt);var sr=k(k({},de),Ue),fn={},oo=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];oo.forEach(function(ee){U[ee]&&(fn[ee]=function(){for(var fe,He=arguments.length,Ze=new Array(He),qe=0;qe<He;qe++)Ze[qe]=arguments[qe];(fe=sr[ee])===null||fe===void 0||fe.call.apply(fe,[sr].concat(Ze)),U[ee].apply(U,Ze)})});var ai=v.cloneElement(re,k(k({},sr),fn)),si={x:Xo,y:Qn},li=q?k({},q!==!0?q:{}):null;return v.createElement(v.Fragment,null,v.createElement(tn,{disabled:!Ke,ref:De,onResize:ri},v.createElement(Wu,{getTriggerDOMNode:ye},ai)),Xt.current&&v.createElement(ml.Provider,{value:Ee},v.createElement(Bu,{portal:e,ref:Ve,prefixCls:i,popup:V,className:ae(D,Qo),style:N,target:Oe,onMouseEnter:Pr,onMouseLeave:dn,onPointerEnter:Pr,zIndex:P,open:Ke,keepDom:Yt,fresh:$,onClick:H,onPointerDownCapture:un,mask:R,motion:gr,maskMotion:Rr,onVisibleChanged:ni,onPrepare:oi,forceRender:j,autoDestroy:se,getPopupContainer:C,align:br,arrow:li,arrowPos:si,ready:mr,offsetX:Yn,offsetY:Yo,offsetR:pr,offsetB:Xn,onAlign:ar,stretch:W,targetWidth:to/Zn,targetHeight:ei/yr})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const gm=hm(ls);var Fr={shiftX:64,adjustY:1},kr={adjustX:1,shiftY:!0},Rt=[0,0],mm={left:{points:["cr","cl"],overflow:kr,offset:[-4,0],targetOffset:Rt},right:{points:["cl","cr"],overflow:kr,offset:[4,0],targetOffset:Rt},top:{points:["bc","tc"],overflow:Fr,offset:[0,-4],targetOffset:Rt},bottom:{points:["tc","bc"],overflow:Fr,offset:[0,4],targetOffset:Rt},topLeft:{points:["bl","tl"],overflow:Fr,offset:[0,-4],targetOffset:Rt},leftTop:{points:["tr","tl"],overflow:kr,offset:[-4,0],targetOffset:Rt},topRight:{points:["br","tr"],overflow:Fr,offset:[0,-4],targetOffset:Rt},rightTop:{points:["tl","tr"],overflow:kr,offset:[4,0],targetOffset:Rt},bottomRight:{points:["tr","br"],overflow:Fr,offset:[0,4],targetOffset:Rt},rightBottom:{points:["bl","br"],overflow:kr,offset:[4,0],targetOffset:Rt},bottomLeft:{points:["tl","bl"],overflow:Fr,offset:[0,4],targetOffset:Rt},leftBottom:{points:["br","bl"],overflow:kr,offset:[-4,0],targetOffset:Rt}},pm=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],ym=function(t,r){var n=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,g=t.children,p=t.onVisibleChange,y=t.afterVisibleChange,h=t.transitionName,x=t.animation,m=t.motion,S=t.placement,R=S===void 0?"right":S,b=t.align,w=b===void 0?{}:b,C=t.destroyTooltipOnHide,j=C===void 0?!1:C,A=t.defaultVisible,M=t.getTooltipContainer,V=t.overlayInnerStyle;t.arrowContent;var D=t.overlay,N=t.id,F=t.showArrow,L=F===void 0?!0:F,I=t.classNames,z=t.styles,P=ft(t,pm),W=Hu(N),Y=E.useRef(null);E.useImperativeHandle(r,function(){return Y.current});var $=k({},P);"visible"in t&&($.popupVisible=t.visible);var T=function(){return v.createElement(Du,{key:"content",prefixCls:f,id:W,bodyClassName:I?.body,overlayInnerStyle:k(k({},V),z?.body)},D)},H=function(){var q=v.Children.only(g),K=q?.props||{},ne=k(k({},K),{},{"aria-describedby":D?W:null});return v.cloneElement(g,ne)};return v.createElement(gm,Ie({popupClassName:ae(n,I?.root),prefixCls:f,popup:T,action:i,builtinPlacements:mm,popupPlacement:R,ref:Y,popupAlign:w,getPopupContainer:M,onPopupVisibleChange:p,afterPopupVisibleChange:y,popupTransitionName:h,popupAnimation:x,popupMotion:m,defaultPopupVisible:A,autoDestroy:j,mouseLeaveDelay:c,popupStyle:k(k({},u),z?.root),mouseEnterDelay:s,arrow:L},$),H())};const bm=E.forwardRef(ym);function qu(e,t){this.v=e,this.k=t}function dt(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}dt=function(a,s,l,c){function u(d,f){dt(a,d,function(g){return this._invoke(d,f,g)})}s?o?o(a,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):a[s]=l:(u("next",0),u("throw",1),u("return",2))},dt(e,t,r,n)}function cs(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(g,p,y,h){var x=p&&p.prototype instanceof s?p:s,m=Object.create(x.prototype);return dt(m,"_invoke",(function(S,R,b){var w,C,j,A=0,M=b||[],V=!1,D={p:0,n:0,v:e,a:N,f:N.bind(e,4),d:function(L,I){return w=L,C=0,j=e,D.n=I,a}};function N(F,L){for(C=F,j=L,t=0;!V&&A&&!I&&t<M.length;t++){var I,z=M[t],P=D.p,W=z[2];F>3?(I=W===L)&&(j=z[(C=z[4])?5:(C=3,3)],z[4]=z[5]=e):z[0]<=P&&((I=F<2&&P<z[1])?(C=0,D.v=L,D.n=z[1]):P<W&&(I=F<3||z[0]>L||L>W)&&(z[4]=F,z[5]=L,D.n=W,C=0))}if(I||F>1)return a;throw V=!0,L}return function(F,L,I){if(A>1)throw TypeError("Generator is already running");for(V&&L===1&&N(L,I),C=L,j=I;(t=C<2?e:j)||!V;){w||(C?C<3?(C>1&&(D.n=-1),N(C,j)):D.n=j:D.v=j);try{if(A=2,w){if(C||(F="next"),t=w[F]){if(!(t=t.call(w,j)))throw TypeError("iterator result is not an object");if(!t.done)return t;j=t.value,C<2&&(C=0)}else C===1&&(t=w.return)&&t.call(w),C<2&&(j=TypeError("The iterator does not provide a '"+F+"' method"),C=1);w=e}else if((t=(V=D.n<0)?j:S.call(R,D))!==a)break}catch(z){w=e,C=1,j=z}finally{A=1}}return{value:t,done:V}}})(g,y,h),!0),m}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(dt(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,c):(g.__proto__=c,dt(g,o,"GeneratorFunction")),g.prototype=Object.create(d),g}return l.prototype=c,dt(d,"constructor",c),dt(c,"constructor",l),l.displayName="GeneratorFunction",dt(c,o,"GeneratorFunction"),dt(d),dt(d,o,"Generator"),dt(d,n,function(){return this}),dt(d,"toString",function(){return"[object Generator]"}),(cs=function(){return{w:i,m:f}})()}function No(e,t){function r(o,i,a,s){try{var l=e[o](i),c=l.value;return c instanceof qu?t.resolve(c.v).then(function(u){r("next",u,a,s)},function(u){r("throw",u,a,s)}):t.resolve(c).then(function(u){l.value=u,a(l)},function(u){return r("throw",u,a,s)})}catch(u){s(u)}}var n;this.next||(dt(No.prototype),dt(No.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),dt(this,"_invoke",function(o,i,a){function s(){return new t(function(l,c){r(o,a,l,c)})}return n=n?n.then(s,s):s()},!0)}function Uu(e,t,r,n,o){return new No(cs().w(e,t,r,n),o||Promise)}function xm(e,t,r,n,o){var i=Uu(e,t,r,n,o);return i.next().then(function(a){return a.done?a.value:i.next()})}function Cm(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function o(){for(;r.length;)if((n=r.pop())in t)return o.value=n,o.done=!1,o;return o.done=!0,o}}function Sl(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(ve(e)+" is not iterable")}function _t(){var e=cs(),t=e.m(_t),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function i(a){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(d,f){return l(c.a,o[d],f)},delegateYield:function(d,f,g){return s.resultName=f,l(c.d,Sl(d),g)},finish:function(d){return l(c.f,d)}},l=function(d,f,g){c.p=s.prev,c.n=s.next;try{return d(f,g)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return a.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(_t=function(){return{wrap:function(l,c,u,d){return e.w(i(l),c,u,d&&d.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,c){return new qu(l,c)},AsyncIterator:No,async:function(l,c,u,d,f){return(n(c)?Uu:xm)(i(l),c,u,d,f)},keys:Cm,values:Sl}})()}function El(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,o)}function qn(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(l){El(i,n,o,a,s,"next",l)}function s(l){El(i,n,o,a,s,"throw",l)}a(void 0)})}}var wr="RC_FORM_INTERNAL_HOOKS",ke=function(){ze(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Jr=v.createContext({getFieldValue:ke,getFieldsValue:ke,getFieldError:ke,getFieldWarning:ke,getFieldsError:ke,isFieldsTouched:ke,isFieldTouched:ke,isFieldValidating:ke,isFieldsValidating:ke,resetFields:ke,setFields:ke,setFieldValue:ke,setFieldsValue:ke,validateFields:ke,submit:ke,getInternalHooks:function(){return ke(),{dispatch:ke,initEntityValue:ke,registerField:ke,useSubscribe:ke,setInitialValues:ke,destroyForm:ke,setCallbacks:ke,registerWatch:ke,getFields:ke,setValidateMessages:ke,setPreserve:ke,getInitialValue:ke}}}),Io=v.createContext(null);function _a(e){return e==null?[]:Array.isArray(e)?e:[e]}function wm(e){return e&&!!e._init}function Pa(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Ta=Pa();function Sm(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Em(e,t,r){if(Za())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Tn(o,r.prototype),o}function Aa(e){var t=typeof Map=="function"?new Map:void 0;return Aa=function(n){if(n===null||!Sm(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return Em(n,arguments,An(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Tn(o,n)},Aa(e)}var Rm=/%[sdj%]/g,Ku=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(Ku=function(t,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(n){return typeof n=="string"})&&console.warn(t,r)});function Ma(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function xt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,i=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var a=e.replace(Rm,function(s){if(s==="%%")return"%";if(o>=i)return s;switch(s){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function $m(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function et(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||$m(t)&&typeof e=="string"&&!e)}function Om(e,t,r){var n=[],o=0,i=e.length;function a(s){n.push.apply(n,oe(s||[])),o++,o===i&&r(n)}e.forEach(function(s){t(s,a)})}function Rl(e,t,r){var n=0,o=e.length;function i(a){if(a&&a.length){r(a);return}var s=n;n=n+1,s<o?t(e[s],i):r([])}i([])}function jm(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,oe(e[r]||[]))}),t}var $l=(function(e){vr(r,e);var t=hr(r);function r(n,o){var i;return it(this,r),i=t.call(this,"Async Validation Error"),O(xe(i),"errors",void 0),O(xe(i),"fields",void 0),i.errors=n,i.fields=o,i}return at(r)})(Aa(Error));function _m(e,t,r,n,o){if(t.first){var i=new Promise(function(f,g){var p=function(x){return n(x),x.length?g(new $l(x,Ma(x))):f(o)},y=jm(e);Rl(y,r,p)});return i.catch(function(f){return f}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(f,g){var p=function(h){if(u.push.apply(u,h),c++,c===l)return n(u),u.length?g(new $l(u,Ma(u))):f(o)};s.length||(n(u),f(o)),s.forEach(function(y){var h=e[y];a.indexOf(y)!==-1?Rl(h,r,p):Om(h,r,p)})});return d.catch(function(f){return f}),d}function Pm(e){return!!(e&&e.message!==void 0)}function Tm(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Ol(e,t){return function(r){var n;return e.fullFields?n=Tm(t,e.fullFields):n=t[r.field||e.fullField],Pm(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function jl(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];ve(n)==="object"&&ve(e[r])==="object"?e[r]=k(k({},e[r]),n):e[r]=n}}return e}var Nr="enum",Am=function(t,r,n,o,i){t[Nr]=Array.isArray(t[Nr])?t[Nr]:[],t[Nr].indexOf(r)===-1&&o.push(xt(i.messages[Nr],t.fullField,t[Nr].join(", ")))},Mm=function(t,r,n,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||o.push(xt(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||o.push(xt(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Fm=function(t,r,n,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,d=null,f=typeof r=="number",g=typeof r=="string",p=Array.isArray(r);if(f?d="number":g?d="string":p&&(d="array"),!d)return!1;p&&(u=r.length),g&&(u=r.replace(c,"_").length),a?u!==t.len&&o.push(xt(i.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(xt(i.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(xt(i.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(xt(i.messages[d].range,t.fullField,t.min,t.max))},Gu=function(t,r,n,o,i,a){t.required&&(!n.hasOwnProperty(t.field)||et(r,a||t.type))&&o.push(xt(i.messages.required,t.fullField))},po;const km=(function(){if(po)return po;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",o=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(a,"$")),u=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(r).concat(t(w),")|(?:").concat(t(w)).concat(a).concat(t(w),")"),"g")};u.v4=function(b){return b&&b.exact?l:new RegExp("".concat(t(b)).concat(r).concat(t(b)),"g")},u.v6=function(b){return b&&b.exact?c:new RegExp("".concat(t(b)).concat(a).concat(t(b)),"g")};var d="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",g=u.v4().source,p=u.v6().source,y="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",x="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",S='(?:[/?#][^\\s"]*)?',R="(?:".concat(d,"|www\\.)").concat(f,"(?:localhost|").concat(g,"|").concat(p,"|").concat(y).concat(h).concat(x,")").concat(m).concat(S);return po=new RegExp("(?:^".concat(R,"$)"),"i"),po});var _l={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},En={integer:function(t){return En.number(t)&&parseInt(t,10)===t},float:function(t){return En.number(t)&&!En.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return ve(t)==="object"&&!En.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(_l.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(km())},hex:function(t){return typeof t=="string"&&!!t.match(_l.hex)}},Nm=function(t,r,n,o,i){if(t.required&&r===void 0){Gu(t,r,n,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?En[s](r)||o.push(xt(i.messages.types[s],t.fullField,t.type)):s&&ve(r)!==t.type&&o.push(xt(i.messages.types[s],t.fullField,t.type))},Im=function(t,r,n,o,i){(/^\s+$/.test(r)||r==="")&&o.push(xt(i.messages.whitespace,t.fullField))};const we={required:Gu,whitespace:Im,type:Nm,range:Fm,enum:Am,pattern:Mm};var Vm=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r)&&!t.required)return n();we.required(t,r,o,a,i)}n(a)},Dm=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();we.required(t,r,o,a,i,"array"),r!=null&&(we.type(t,r,o,a,i),we.range(t,r,o,a,i))}n(a)},Lm=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r)&&!t.required)return n();we.required(t,r,o,a,i),r!==void 0&&we.type(t,r,o,a,i)}n(a)},Hm=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r,"date")&&!t.required)return n();if(we.required(t,r,o,a,i),!et(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),we.type(t,l,o,a,i),l&&we.range(t,l.getTime(),o,a,i)}}n(a)},zm="enum",Bm=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r)&&!t.required)return n();we.required(t,r,o,a,i),r!==void 0&&we[zm](t,r,o,a,i)}n(a)},Wm=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r)&&!t.required)return n();we.required(t,r,o,a,i),r!==void 0&&(we.type(t,r,o,a,i),we.range(t,r,o,a,i))}n(a)},qm=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r)&&!t.required)return n();we.required(t,r,o,a,i),r!==void 0&&(we.type(t,r,o,a,i),we.range(t,r,o,a,i))}n(a)},Um=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r)&&!t.required)return n();we.required(t,r,o,a,i),r!==void 0&&we.type(t,r,o,a,i)}n(a)},Km=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),et(r)&&!t.required)return n();we.required(t,r,o,a,i),r!==void 0&&(we.type(t,r,o,a,i),we.range(t,r,o,a,i))}n(a)},Gm=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r)&&!t.required)return n();we.required(t,r,o,a,i),r!==void 0&&we.type(t,r,o,a,i)}n(a)},Ym=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r,"string")&&!t.required)return n();we.required(t,r,o,a,i),et(r,"string")||we.pattern(t,r,o,a,i)}n(a)},Xm=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r)&&!t.required)return n();we.required(t,r,o,a,i),et(r)||we.type(t,r,o,a,i)}n(a)},Qm=function(t,r,n,o,i){var a=[],s=Array.isArray(r)?"array":ve(r);we.required(t,r,o,a,i,s),n(a)},Zm=function(t,r,n,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r,"string")&&!t.required)return n();we.required(t,r,o,a,i,"string"),et(r,"string")||(we.type(t,r,o,a,i),we.range(t,r,o,a,i),we.pattern(t,r,o,a,i),t.whitespace===!0&&we.whitespace(t,r,o,a,i))}n(a)},Si=function(t,r,n,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(et(r,a)&&!t.required)return n();we.required(t,r,o,s,i,a),et(r,a)||we.type(t,r,o,s,i)}n(s)};const On={string:Zm,method:Um,number:Km,boolean:Lm,regexp:Xm,integer:qm,float:Wm,array:Dm,object:Gm,enum:Bm,pattern:Ym,date:Hm,url:Si,hex:Si,email:Si,required:Qm,any:Vm};var Un=(function(){function e(t){it(this,e),O(this,"rules",null),O(this,"_messages",Ta),this.define(t)}return at(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(ve(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var i=r[o];n.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(r){return r&&(this._messages=jl(Pa(),r)),this._messages}},{key:"validate",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=r,s=o,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(p){var y=[],h={};function x(S){if(Array.isArray(S)){var R;y=(R=y).concat.apply(R,oe(S))}else y.push(S)}for(var m=0;m<p.length;m++)x(p[m]);y.length?(h=Ma(y),l(y,h)):l(null,a)}if(s.messages){var u=this.messages();u===Ta&&(u=Pa()),jl(u,s.messages),s.messages=u}else s.messages=this.messages();var d={},f=s.keys||Object.keys(this.rules);f.forEach(function(p){var y=n.rules[p],h=a[p];y.forEach(function(x){var m=x;typeof m.transform=="function"&&(a===r&&(a=k({},a)),h=a[p]=m.transform(h),h!=null&&(m.type=m.type||(Array.isArray(h)?"array":ve(h)))),typeof m=="function"?m={validator:m}:m=k({},m),m.validator=n.getValidationMethod(m),m.validator&&(m.field=p,m.fullField=m.fullField||p,m.type=n.getType(m),d[p]=d[p]||[],d[p].push({rule:m,value:h,source:a,field:p}))})});var g={};return _m(d,s,function(p,y){var h=p.rule,x=(h.type==="object"||h.type==="array")&&(ve(h.fields)==="object"||ve(h.defaultField)==="object");x=x&&(h.required||!h.required&&p.value),h.field=p.field;function m(C,j){return k(k({},j),{},{fullField:"".concat(h.fullField,".").concat(C),fullFields:h.fullFields?[].concat(oe(h.fullFields),[C]):[C]})}function S(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=Array.isArray(C)?C:[C];!s.suppressWarning&&j.length&&e.warning("async-validator:",j),j.length&&h.message!==void 0&&(j=[].concat(h.message));var A=j.map(Ol(h,a));if(s.first&&A.length)return g[h.field]=1,y(A);if(!x)y(A);else{if(h.required&&!p.value)return h.message!==void 0?A=[].concat(h.message).map(Ol(h,a)):s.error&&(A=[s.error(h,xt(s.messages.required,h.field))]),y(A);var M={};h.defaultField&&Object.keys(p.value).map(function(N){M[N]=h.defaultField}),M=k(k({},M),p.rule.fields);var V={};Object.keys(M).forEach(function(N){var F=M[N],L=Array.isArray(F)?F:[F];V[N]=L.map(m.bind(null,N))});var D=new e(V);D.messages(s.messages),p.rule.options&&(p.rule.options.messages=s.messages,p.rule.options.error=s.error),D.validate(p.value,p.rule.options||s,function(N){var F=[];A&&A.length&&F.push.apply(F,oe(A)),N&&N.length&&F.push.apply(F,oe(N)),y(F.length?F:null)})}}var R;if(h.asyncValidator)R=h.asyncValidator(h,p.value,S,p.source,s);else if(h.validator){try{R=h.validator(h,p.value,S,p.source,s)}catch(C){var b,w;(b=(w=console).error)===null||b===void 0||b.call(w,C),s.suppressValidatorError||setTimeout(function(){throw C},0),S(C.message)}R===!0?S():R===!1?S(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||"".concat(h.fullField||h.field," fails")):R instanceof Array?S(R):R instanceof Error&&S(R.message)}R&&R.then&&R.then(function(){return S()},function(C){return S(C)})},function(p){c(p)},a)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!On.hasOwnProperty(r.type))throw new Error(xt("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),o=n.indexOf("message");return o!==-1&&n.splice(o,1),n.length===1&&n[0]==="required"?On.required:On[this.getType(r)]||void 0}}]),e})();O(Un,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");On[t]=r});O(Un,"warning",Ku);O(Un,"messages",Ta);O(Un,"validators",On);var yt="'${name}' is not a valid ${type}",Yu={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:yt,method:yt,array:yt,object:yt,number:yt,date:yt,boolean:yt,integer:yt,float:yt,regexp:yt,email:yt,url:yt,hex:yt},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Pl=Un;function Jm(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var Tl="CODE_LOGIC_ERROR";function Fa(e,t,r,n,o){return ka.apply(this,arguments)}function ka(){return ka=qn(_t().mark(function e(t,r,n,o,i){var a,s,l,c,u,d,f,g,p;return _t().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return a=k({},n),delete a.ruleIndex,Pl.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(x){return console.error(x),Promise.reject(Tl)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Pl(O({},t,[a])),u=Vr(Yu,o.validateMessages),c.messages(u),d=[],h.prev=10,h.next=13,Promise.resolve(c.validate(O({},t,r),k({},o)));case 13:h.next=18;break;case 15:h.prev=15,h.t0=h.catch(10),h.t0.errors&&(d=h.t0.errors.map(function(x,m){var S=x.message,R=S===Tl?u.default:S;return v.isValidElement(R)?v.cloneElement(R,{key:"error_".concat(m)}):R}));case 18:if(!(!d.length&&l)){h.next=23;break}return h.next=21,Promise.all(r.map(function(x,m){return Fa("".concat(t,".").concat(m),x,l,o,i)}));case 21:return f=h.sent,h.abrupt("return",f.reduce(function(x,m){return[].concat(oe(x),oe(m))},[]));case 23:return g=k(k({},n),{},{name:t,enum:(n.enum||[]).join(", ")},i),p=d.map(function(x){return typeof x=="string"?Jm(x,g):x}),h.abrupt("return",p);case 26:case"end":return h.stop()}},e,null,[[10,15]])})),ka.apply(this,arguments)}function ep(e,t,r,n,o,i){var a=e.join("."),s=r.map(function(u,d){var f=u.validator,g=k(k({},u),{},{ruleIndex:d});return f&&(g.validator=function(p,y,h){var x=!1,m=function(){for(var b=arguments.length,w=new Array(b),C=0;C<b;C++)w[C]=arguments[C];Promise.resolve().then(function(){ze(!x,"Your validator function has already return a promise. `callback` will be ignored."),x||h.apply(void 0,w)})},S=f(p,y,m);x=S&&typeof S.then=="function"&&typeof S.catch=="function",ze(x,"`callback` is deprecated. Please return a promise instead."),x&&S.then(function(){h()}).catch(function(R){h(R||" ")})}),g}).sort(function(u,d){var f=u.warningOnly,g=u.ruleIndex,p=d.warningOnly,y=d.ruleIndex;return!!f==!!p?g-y:f?1:-1}),l;if(o===!0)l=new Promise((function(){var u=qn(_t().mark(function d(f,g){var p,y,h;return _t().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:p=0;case 1:if(!(p<s.length)){m.next=12;break}return y=s[p],m.next=5,Fa(a,t,y,n,i);case 5:if(h=m.sent,!h.length){m.next=9;break}return g([{errors:h,rule:y}]),m.abrupt("return");case 9:p+=1,m.next=1;break;case 12:f([]);case 13:case"end":return m.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}})());else{var c=s.map(function(u){return Fa(a,t,u,n,i).then(function(d){return{errors:d,rule:u}})});l=(o?rp(c):tp(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function tp(e){return Na.apply(this,arguments)}function Na(){return Na=qn(_t().mark(function e(t){return _t().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,oe(o));return a}));case 1:case"end":return n.stop()}},e)})),Na.apply(this,arguments)}function rp(e){return Ia.apply(this,arguments)}function Ia(){return Ia=qn(_t().mark(function e(t){var r;return _t().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return r=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(s){s.errors.length&&i([s]),r+=1,r===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),Ia.apply(this,arguments)}function Ye(e){return _a(e)}function Al(e,t){var r={};return t.forEach(function(n){var o=Wt(e,n);r=kt(r,n,o)}),r}function zr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return Xu(t,n,r)})}function Xu(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,o){return e[o]===n})}function np(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ve(e)!=="object"||ve(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),o=new Set([].concat(r,n));return oe(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function op(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ve(t.target)==="object"&&e in t.target?t.target[e]:t}function Ml(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var o=e[t],i=t-r;return i>0?[].concat(oe(e.slice(0,r)),[o],oe(e.slice(r,t)),oe(e.slice(t+1,n))):i<0?[].concat(oe(e.slice(0,t)),oe(e.slice(t+1,r+1)),[o],oe(e.slice(r+1,n))):e}var ip=["name"],$t=[];function Ei(e,t,r,n,o,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):n!==o}var us=(function(e){vr(r,e);var t=hr(r);function r(n){var o;if(it(this,r),o=t.call(this,n),O(xe(o),"state",{resetCount:0}),O(xe(o),"cancelRegisterFunc",null),O(xe(o),"mounted",!1),O(xe(o),"touched",!1),O(xe(o),"dirty",!1),O(xe(o),"validatePromise",void 0),O(xe(o),"prevValidating",void 0),O(xe(o),"errors",$t),O(xe(o),"warnings",$t),O(xe(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,Ye(d)),o.cancelRegisterFunc=null}),O(xe(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(oe(f),oe(c)):[]}),O(xe(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),O(xe(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),O(xe(o),"metaCache",null),O(xe(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=k(k({},o.getMeta()),{},{destroy:l});da(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),O(xe(o),"onStoreChange",function(l,c,u){var d=o.props,f=d.shouldUpdate,g=d.dependencies,p=g===void 0?[]:g,y=d.onReset,h=u.store,x=o.getNamePath(),m=o.getValue(l),S=o.getValue(h),R=c&&zr(c,x);switch(u.type==="valueUpdate"&&u.source==="external"&&!da(m,S)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=$t,o.warnings=$t,o.triggerMetaEvent()),u.type){case"reset":if(!c||R){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=$t,o.warnings=$t,o.triggerMetaEvent(),y?.(),o.refresh();return}break;case"remove":{if(f&&Ei(f,l,h,m,S,u)){o.reRender();return}break}case"setField":{var b=u.data;if(R){"touched"in b&&(o.touched=b.touched),"validating"in b&&!("originRCField"in b)&&(o.validatePromise=b.validating?Promise.resolve([]):null),"errors"in b&&(o.errors=b.errors||$t),"warnings"in b&&(o.warnings=b.warnings||$t),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in b&&zr(c,x,!0)){o.reRender();return}if(f&&!x.length&&Ei(f,l,h,m,S,u)){o.reRender();return}break}case"dependenciesUpdate":{var w=p.map(Ye);if(w.some(function(C){return zr(u.relatedFields,C)})){o.reRender();return}break}default:if(R||(!p.length||x.length||f)&&Ei(f,l,h,m,S,u)){o.reRender();return}break}f===!0&&o.reRender()}),O(xe(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),d=l||{},f=d.triggerName,g=d.validateOnly,p=g===void 0?!1:g,y=Promise.resolve().then(qn(_t().mark(function h(){var x,m,S,R,b,w,C;return _t().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(o.mounted){A.next=2;break}return A.abrupt("return",[]);case 2:if(x=o.props,m=x.validateFirst,S=m===void 0?!1:m,R=x.messageVariables,b=x.validateDebounce,w=o.getRules(),f&&(w=w.filter(function(M){return M}).filter(function(M){var V=M.validateTrigger;if(!V)return!0;var D=_a(V);return D.includes(f)})),!(b&&f)){A.next=10;break}return A.next=8,new Promise(function(M){setTimeout(M,b)});case 8:if(o.validatePromise===y){A.next=10;break}return A.abrupt("return",[]);case 10:return C=ep(c,u,w,l,S,R),C.catch(function(M){return M}).then(function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$t;if(o.validatePromise===y){var V;o.validatePromise=null;var D=[],N=[];(V=M.forEach)===null||V===void 0||V.call(M,function(F){var L=F.rule.warningOnly,I=F.errors,z=I===void 0?$t:I;L?N.push.apply(N,oe(z)):D.push.apply(D,oe(z))}),o.errors=D,o.warnings=N,o.triggerMetaEvent(),o.reRender()}}),A.abrupt("return",C);case 13:case"end":return A.stop()}},h)})));return p||(o.validatePromise=y,o.dirty=!0,o.errors=$t,o.warnings=$t,o.triggerMetaEvent(),o.reRender()),y}),O(xe(o),"isFieldValidating",function(){return!!o.validatePromise}),O(xe(o),"isFieldTouched",function(){return o.touched}),O(xe(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(wr),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),O(xe(o),"getErrors",function(){return o.errors}),O(xe(o),"getWarnings",function(){return o.warnings}),O(xe(o),"isListField",function(){return o.props.isListField}),O(xe(o),"isList",function(){return o.props.isList}),O(xe(o),"isPreserve",function(){return o.props.preserve}),O(xe(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),O(xe(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return k(k({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=qr(l);return u.length!==1||!v.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),O(xe(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Wt(l||c(!0),u)}),O(xe(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,d=c.trigger,f=c.validateTrigger,g=c.getValueFromEvent,p=c.normalize,y=c.valuePropName,h=c.getValueProps,x=c.fieldContext,m=f!==void 0?f:x.validateTrigger,S=o.getNamePath(),R=x.getInternalHooks,b=x.getFieldsValue,w=R(wr),C=w.dispatch,j=o.getValue(),A=h||function(F){return O({},y,F)},M=l[d],V=u!==void 0?A(j):{};process.env.NODE_ENV!=="production"&&V&&Object.keys(V).forEach(function(F){ze(typeof V[F]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(F,")"))});var D=k(k({},l),V);D[d]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var F,L=arguments.length,I=new Array(L),z=0;z<L;z++)I[z]=arguments[z];g?F=g.apply(void 0,I):F=op.apply(void 0,[y].concat(I)),p&&(F=p(F,j,b(!0))),F!==j&&C({type:"updateValue",namePath:S,value:F}),M&&M.apply(void 0,I)};var N=_a(m||[]);return N.forEach(function(F){var L=D[F];D[F]=function(){L&&L.apply(void 0,arguments);var I=o.props.rules;I&&I.length&&C({type:"validateField",namePath:S,triggerName:F})}}),D}),n.fieldContext){var i=n.fieldContext.getInternalHooks,a=i(wr),s=a.initEntityValue;s(xe(o))}return o}return at(r,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(wr),c=l.registerField;this.cancelRegisterFunc=c(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),s=a.child,l=a.isFunction,c;return l?c=s:v.isValidElement(s)?c=v.cloneElement(s,this.getControlled(s.props)):(ze(!s,"`children` of Field is not validate ReactElement."),c=s),v.createElement(v.Fragment,{key:o},c)}}]),r})(v.Component);O(us,"contextType",Jr);O(us,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Qu(e){var t,r=e.name,n=ft(e,ip),o=v.useContext(Jr),i=v.useContext(Io),a=r!==void 0?Ye(r):void 0,s=(t=n.isListField)!==null&&t!==void 0?t:!!i,l="keep";return s||(l="_".concat((a||[]).join("_"))),process.env.NODE_ENV!=="production"&&n.preserve===!1&&s&&a.length<=1&&ze(!1,"`preserve` should not apply on Form.List fields."),v.createElement(us,Ie({key:l,name:a,isListField:s},n,{fieldContext:o}))}function ap(e){var t=e.name,r=e.initialValue,n=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=v.useContext(Jr),l=v.useContext(Io),c=v.useRef({keys:[],id:0}),u=c.current,d=v.useMemo(function(){var y=Ye(s.prefixName)||[];return[].concat(oe(y),oe(Ye(t)))},[s.prefixName,t]),f=v.useMemo(function(){return k(k({},s),{},{prefixName:d})},[s,d]),g=v.useMemo(function(){return{getKey:function(h){var x=d.length,m=h[x];return[u.keys[m],h.slice(x+1)]}}},[d]);if(typeof n!="function")return ze(!1,"Form.List only accepts function as children."),null;var p=function(h,x,m){var S=m.source;return S==="internal"?!1:h!==x};return v.createElement(Io.Provider,{value:g},v.createElement(Jr.Provider,{value:f},v.createElement(Qu,{name:[],shouldUpdate:p,rules:o,validateTrigger:i,initialValue:r,isList:!0,isListField:a??!!l},function(y,h){var x=y.value,m=x===void 0?[]:x,S=y.onChange,R=s.getFieldValue,b=function(){var A=R(d||[]);return A||[]},w={add:function(A,M){var V=b();M>=0&&M<=V.length?(u.keys=[].concat(oe(u.keys.slice(0,M)),[u.id],oe(u.keys.slice(M))),S([].concat(oe(V.slice(0,M)),[A],oe(V.slice(M))))):(process.env.NODE_ENV!=="production"&&(M<0||M>V.length)&&ze(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(oe(u.keys),[u.id]),S([].concat(oe(V),[A]))),u.id+=1},remove:function(A){var M=b(),V=new Set(Array.isArray(A)?A:[A]);V.size<=0||(u.keys=u.keys.filter(function(D,N){return!V.has(N)}),S(M.filter(function(D,N){return!V.has(N)})))},move:function(A,M){if(A!==M){var V=b();A<0||A>=V.length||M<0||M>=V.length||(u.keys=Ml(u.keys,A,M),S(Ml(V,A,M)))}}},C=m||[];return Array.isArray(C)||(C=[],process.env.NODE_ENV!=="production"&&ze(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),n(C.map(function(j,A){var M=u.keys[A];return M===void 0&&(u.keys[A]=u.id,M=u.keys[A],u.id+=1),{name:A,key:M,isListField:!0}}),w,h)})))}function sp(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&i(n),o(n))})})}):Promise.resolve([])}var Zu="__@field_split__";function Ri(e){return e.map(function(t){return"".concat(ve(t),":").concat(t)}).join(Zu)}var Ir=(function(){function e(){it(this,e),O(this,"kvs",new Map)}return at(e,[{key:"set",value:function(r,n){this.kvs.set(Ri(r),n)}},{key:"get",value:function(r){return this.kvs.get(Ri(r))}},{key:"update",value:function(r,n){var o=this.get(r),i=n(o);i?this.set(r,i):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(Ri(r))}},{key:"map",value:function(r){return oe(this.kvs.entries()).map(function(n){var o=G(n,2),i=o[0],a=o[1],s=i.split(Zu);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=G(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var o=n.key,i=n.value;return r[o.join(".")]=i,null}),r}}]),e})(),lp=["name"],cp=at(function e(t){var r=this;it(this,e),O(this,"formHooked",!1),O(this,"forceRootUpdate",void 0),O(this,"subscribable",!0),O(this,"store",{}),O(this,"fieldEntities",[]),O(this,"initialValues",{}),O(this,"callbacks",{}),O(this,"validateMessages",null),O(this,"preserve",null),O(this,"lastValidatePromise",null),O(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),O(this,"getInternalHooks",function(n){return n===wr?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(ze(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),O(this,"useSubscribe",function(n){r.subscribable=n}),O(this,"prevWithoutPreserves",null),O(this,"setInitialValues",function(n,o){if(r.initialValues=n||{},o){var i,a=Vr(n,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=kt(a,l,Wt(n,l))}),r.prevWithoutPreserves=null,r.updateStore(a)}}),O(this,"destroyForm",function(n){if(n)r.updateStore({});else{var o=new Ir;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=o}}),O(this,"getInitialValue",function(n){var o=Wt(r.initialValues,n);return n.length?Vr(o):o}),O(this,"setCallbacks",function(n){r.callbacks=n}),O(this,"setValidateMessages",function(n){r.validateMessages=n}),O(this,"setPreserve",function(n){r.preserve=n}),O(this,"watchList",[]),O(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(o){return o!==n})}}),O(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),i=r.getFieldsValue(!0);r.watchList.forEach(function(a){a(o,i,n)})}}),O(this,"timeoutId",null),O(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||ze(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),O(this,"updateStore",function(n){r.store=n}),O(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),O(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Ir;return r.getFieldEntities(n).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),O(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return n.map(function(i){var a=Ye(i);return o.get(a)||{INVALIDATE_NAME_PATH:Ye(i)}})}),O(this,"getFieldsValue",function(n,o){r.warningUnhooked();var i,a,s;if(n===!0||Array.isArray(n)?(i=n,a=o):n&&ve(n)==="object"&&(s=n.strict,a=n.filter),i===!0&&!a)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var d,f,g="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var p,y;if((p=(y=u).isList)!==null&&p!==void 0&&p.call(y))return}else if(!i&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!a)c.push(g);else{var h="getMeta"in u?u.getMeta():null;a(h)&&c.push(g)}}),Al(r.store,c.map(Ye))}),O(this,"getFieldValue",function(n){r.warningUnhooked();var o=Ye(n);return Wt(r.store,o)}),O(this,"getFieldsError",function(n){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(n);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Ye(n[a]),errors:[],warnings:[]}})}),O(this,"getFieldError",function(n){r.warningUnhooked();var o=Ye(n),i=r.getFieldsError([o])[0];return i.errors}),O(this,"getFieldWarning",function(n){r.warningUnhooked();var o=Ye(n),i=r.getFieldsError([o])[0];return i.warnings}),O(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(a)?(l=a.map(Ye),c=!1):(l=null,c=a):(l=a.map(Ye),c=s);var u=r.getFieldEntities(!0),d=function(h){return h.isFieldTouched()};if(!l)return c?u.every(function(y){return d(y)||y.isList()}):u.some(d);var f=new Ir;l.forEach(function(y){f.set(y,[])}),u.forEach(function(y){var h=y.getNamePath();l.forEach(function(x){x.every(function(m,S){return h[S]===m})&&f.update(x,function(m){return[].concat(oe(m),[y])})})});var g=function(h){return h.some(d)},p=f.map(function(y){var h=y.value;return h});return c?p.every(g):p.some(g)}),O(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),O(this,"isFieldsValidating",function(n){r.warningUnhooked();var o=r.getFieldEntities();if(!n)return o.some(function(a){return a.isFieldValidating()});var i=n.map(Ye);return o.some(function(a){var s=a.getNamePath();return zr(i,s)&&a.isFieldValidating()})}),O(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),O(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Ir,i=r.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=o.get(u)||new Set;d.add({entity:l,value:c}),o.set(u,d)}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),g=r.getInitialValue(f);if(g!==void 0)ze(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var p=o.get(f);if(p&&p.size>1)ze(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var y=r.getFieldValue(f),h=u.isListField();!h&&(!n.skipExist||y===void 0)&&r.updateStore(kt(r.store,f,oe(p)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,oe(oe(c).map(function(d){return d.entity})))}})):s=i,a(s)}),O(this,"resetFields",function(n){r.warningUnhooked();var o=r.store;if(!n){r.updateStore(Vr(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var i=n.map(Ye);i.forEach(function(a){var s=r.getInitialValue(a);r.updateStore(kt(r.store,a,s))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(o,i,{type:"reset"}),r.notifyWatch(i)}),O(this,"setFields",function(n){r.warningUnhooked();var o=r.store,i=[];n.forEach(function(a){var s=a.name,l=ft(a,lp),c=Ye(s);i.push(c),"value"in l&&r.updateStore(kt(r.store,c,l.value)),r.notifyObservers(o,[c],{type:"setField",data:a})}),r.notifyWatch(i)}),O(this,"getFields",function(){var n=r.getFieldEntities(!0),o=n.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=k(k({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),O(this,"initEntityValue",function(n){var o=n.props.initialValue;if(o!==void 0){var i=n.getNamePath(),a=Wt(r.store,i);a===void 0&&r.updateStore(kt(r.store,i,o))}}),O(this,"isMergedPreserve",function(n){var o=n!==void 0?n:r.preserve;return o??!0}),O(this,"registerField",function(n){r.fieldEntities.push(n);var o=n.getNamePath();if(r.notifyWatch([o]),n.props.initialValue!==void 0){var i=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(i,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(d){return d!==n}),!r.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==c&&r.fieldEntities.every(function(d){return!Xu(d.getNamePath(),o)})){var u=r.store;r.updateStore(kt(u,o,c,!0)),r.notifyObservers(u,[o],{type:"remove"}),r.triggerDependenciesUpdate(u,o)}}r.notifyWatch([o])}}),O(this,"dispatch",function(n){switch(n.type){case"updateValue":{var o=n.namePath,i=n.value;r.updateValue(o,i);break}case"validateField":{var a=n.namePath,s=n.triggerName;r.validateFields([a],{triggerName:s});break}}}),O(this,"notifyObservers",function(n,o,i){if(r.subscribable){var a=k(k({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,o,a)})}else r.forceRootUpdate()}),O(this,"triggerDependenciesUpdate",function(n,o){var i=r.getDependencyChildrenFields(o);return i.length&&r.validateFields(i),r.notifyObservers(n,i,{type:"dependenciesUpdate",relatedFields:[o].concat(oe(i))}),i}),O(this,"updateValue",function(n,o){var i=Ye(n),a=r.store;r.updateStore(kt(r.store,i,o)),r.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),r.notifyWatch([i]);var s=r.triggerDependenciesUpdate(a,i),l=r.callbacks.onValuesChange;if(l){var c=Al(r.store,[i]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(oe(s)))}),O(this,"setFieldsValue",function(n){r.warningUnhooked();var o=r.store;if(n){var i=Vr(r.store,n);r.updateStore(i)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),O(this,"setFieldValue",function(n,o){r.setFields([{name:n,value:o,errors:[],warnings:[]}])}),O(this,"getDependencyChildrenFields",function(n){var o=new Set,i=[],a=new Ir;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=Ye(u);a.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(i.push(f),l(f))}})};return s(n),i}),O(this,"triggerOnFieldsChange",function(n,o){var i=r.callbacks.onFieldsChange;if(i){var a=r.getFields();if(o){var s=new Ir;o.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return zr(n,u)});l.length&&i(l,a)}}),O(this,"validateFields",function(n,o){r.warningUnhooked();var i,a;Array.isArray(n)||typeof n=="string"||typeof o=="string"?(i=n,a=o):a=n;var s=!!i,l=s?i.map(Ye):[],c=[],u=String(Date.now()),d=new Set,f=a||{},g=f.recursive,p=f.dirty;r.getFieldEntities(!0).forEach(function(m){if(s||l.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(p&&!m.isFieldDirty())){var S=m.getNamePath();if(d.add(S.join(u)),!s||zr(l,S,g)){var R=m.validateRules(k({validateMessages:k(k({},Yu),r.validateMessages)},a));c.push(R.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function(b){var w,C=[],j=[];return(w=b.forEach)===null||w===void 0||w.call(b,function(A){var M=A.rule.warningOnly,V=A.errors;M?j.push.apply(j,oe(V)):C.push.apply(C,oe(V))}),C.length?Promise.reject({name:S,errors:C,warnings:j}):{name:S,errors:C,warnings:j}}))}}});var y=sp(c);r.lastValidatePromise=y,y.catch(function(m){return m}).then(function(m){var S=m.map(function(R){var b=R.name;return b});r.notifyObservers(r.store,S,{type:"validateFinish"}),r.triggerOnFieldsChange(S,m)});var h=y.then(function(){return r.lastValidatePromise===y?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(m){var S=m.filter(function(R){return R&&R.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:S,outOfDate:r.lastValidatePromise!==y})});h.catch(function(m){return m});var x=l.filter(function(m){return d.has(m.join(u))});return r.triggerOnFieldsChange(x),h}),O(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var o=r.callbacks.onFinish;if(o)try{o(n)}catch(i){console.error(i)}}).catch(function(n){var o=r.callbacks.onFinishFailed;o&&o(n)})}),this.forceRootUpdate=t});function Ju(e){var t=v.useRef(),r=v.useState({}),n=G(r,2),o=n[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new cp(i);t.current=a.getForm()}return[t.current]}var Va=v.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),up=function(t){var r=t.validateMessages,n=t.onFormChange,o=t.onFormFinish,i=t.children,a=v.useContext(Va),s=v.useRef({});return v.createElement(Va.Provider,{value:k(k({},a),{},{validateMessages:k(k({},a.validateMessages),r),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=k(k({},s.current),{},O({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=k({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)},dp=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],fp=function(t,r){var n=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,g=f===void 0?"onChange":f,p=t.onValuesChange,y=t.onFieldsChange,h=t.onFinish,x=t.onFinishFailed,m=t.clearOnDestroy,S=ft(t,dp),R=v.useRef(null),b=v.useContext(Va),w=Ju(a),C=G(w,1),j=C[0],A=j.getInternalHooks(wr),M=A.useSubscribe,V=A.setInitialValues,D=A.setCallbacks,N=A.setValidateMessages,F=A.setPreserve,L=A.destroyForm;v.useImperativeHandle(r,function(){return k(k({},j),{},{nativeElement:R.current})}),v.useEffect(function(){return b.registerForm(n,j),function(){b.unregisterForm(n)}},[b,j,n]),N(k(k({},b.validateMessages),d)),D({onValuesChange:p,onFieldsChange:function(B){if(b.triggerFormChange(n,B),y){for(var q=arguments.length,K=new Array(q>1?q-1:0),ne=1;ne<q;ne++)K[ne-1]=arguments[ne];y.apply(void 0,[B].concat(K))}},onFinish:function(B){b.triggerFormFinish(n,B),h&&h(B)},onFinishFailed:x}),F(s);var I=v.useRef(null);V(o,!I.current),I.current||(I.current=!0),v.useEffect(function(){return function(){return L(m)}},[]);var z,P=typeof l=="function";if(P){var W=j.getFieldsValue(!0);z=l(W,j)}else z=l;M(!P);var Y=v.useRef();v.useEffect(function(){np(Y.current||[],i||[])||j.setFields(i||[]),Y.current=i},[i,j]);var $=v.useMemo(function(){return k(k({},j),{},{validateTrigger:g})},[j,g]),T=v.createElement(Io.Provider,{value:null},v.createElement(Jr.Provider,{value:$},z));return u===!1?T:v.createElement(u,Ie({},S,{ref:R,onSubmit:function(B){B.preventDefault(),B.stopPropagation(),j.submit()},onReset:function(B){var q;B.preventDefault(),j.resetFields(),(q=S.onReset)===null||q===void 0||q.call(S,B)}}),T)};function Fl(e){try{return JSON.stringify(e)}catch{return Math.random()}}var vp=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=E.useRef(t);ze(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function hp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],i=o===void 0?{}:o,a=wm(i)?{form:i}:i,s=a.form,l=E.useState(),c=G(l,2),u=c[0],d=c[1],f=E.useMemo(function(){return Fl(u)},[u]),g=E.useRef(f);g.current=f;var p=E.useContext(Jr),y=s||p,h=y&&y._init;process.env.NODE_ENV!=="production"&&ze(t.length===2?s?h:!0:h,"useWatch requires a form instance since it can not auto detect from context.");var x=Ye(n),m=E.useRef(x);return m.current=x,vp(x),E.useEffect(function(){if(h){var S=y.getFieldsValue,R=y.getInternalHooks,b=R(wr),w=b.registerWatch,C=function(V,D){var N=a.preserve?D:V;return typeof n=="function"?n(N):Wt(N,m.current)},j=w(function(M,V){var D=C(M,V),N=Fl(D);g.current!==N&&(g.current=N,d(D))}),A=C(S(),S(!0));return u!==A&&d(A),j}},[h]),u}var gp=v.forwardRef(fp),Kn=gp;Kn.FormProvider=up;Kn.Field=Qu;Kn.List=ap;Kn.useForm=Ju;Kn.useWatch=hp;const Dn=v.createContext({});process.env.NODE_ENV!=="production"&&(Dn.displayName="FormItemInputContext");const mp=({children:e,status:t,override:r})=>{const n=v.useContext(Dn),o=v.useMemo(()=>{const i=Object.assign({},n);return r&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,r,n]);return v.createElement(Dn.Provider,{value:o},e)},pp=v.createContext(void 0),ed=e=>{const t=E.useContext(Qr);return E.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},td=v.createContext(null),rd=(e,t)=>{const r=v.useContext(td),n=v.useMemo(()=>{if(!r)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=r,s=o==="vertical"?"-vertical-":"-";return ae(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r?.compactSize,compactDirection:r?.compactDirection,compactItemClassnames:n}},yp=e=>{const{children:t}=e;return v.createElement(td.Provider,{value:null},t)},Da=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=E.createElement(mp,{override:!0,status:!0},o)),t&&(o=E.createElement(yp,null,o)),o},ds=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(ds.displayName="zIndexContext");const Zt=100,bp=10,xp=Zt*bp,Cp=xp+Zt,nd={Modal:Zt,Drawer:Zt,Popover:Zt,Popconfirm:Zt,Tooltip:Zt,Tour:Zt,FloatButton:Zt},wp={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Sp(e){return e in nd}const Ep=(e,t)=>{const[,r]=nn(),n=E.useContext(ds),o=Sp(e);let i;if(t!==void 0)i=[t,t];else{let a=n??0;o?a+=(n?0:r.zIndexPopupBase)+nd[e]:a+=wp[e],i=[n===void 0?t:a,a]}if(process.env.NODE_ENV!=="production"){const a=qt(e),s=r.zIndexPopupBase+Cp,l=i[0]||0;process.env.NODE_ENV!=="production"&&a(t!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i},Rp=(e,t,r)=>r!==void 0?r:`${e}-${t}`;function $p(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,i=0,a=o,s=n*1/Math.sqrt(2),l=o-n*(1-1/Math.sqrt(2)),c=o-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),d=2*o-c,f=u,g=2*o-s,p=l,y=2*o-i,h=a,x=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),m=n*(Math.sqrt(2)-1),S=`polygon(${m}px 100%, 50% ${m}px, ${2*o-m}px 100%, ${m}px 100%)`,R=`path('M ${i} ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${d} ${f} L ${g} ${p} A ${n} ${n} 0 0 0 ${y} ${h} Z')`;return{arrowShadowWidth:x,arrowPath:R,arrowPolygon:S}}const Op=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Me(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},od=8;function id(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?od:n}}function yo(e,t){return e?t:{}}function jp(e,t,r){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Op(e,t,o)),{"&:before":{background:t}})]},yo(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Me(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),yo(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Me(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),yo(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i}})),yo(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}))}}function _p(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const o=n&&typeof n=="object"?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+r,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const kl={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"]}},Pp={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"]}},Tp=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ap(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:i}=e,a=t/2,s={},l=id({contentRadius:i,limitVerticalRadius:!0});return Object.keys(kl).forEach(c=>{const u=n&&Pp[c]||kl[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(s[c]=d,Tp.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-a-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=a+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-a-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=a+o;break}if(n)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-l.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":d.offset[0]=l.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":d.offset[1]=-l.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":d.offset[1]=l.arrowOffsetHorizontal*2-a;break}d.overflow=_p(c,l,t,r),d.htmlRegion="visibleFirst"}),s}function Mp(e){return e&&E.isValidElement(e)&&e.type===E.Fragment}const Fp=(e,t,r)=>E.isValidElement(e)?E.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function ad(e,t){return Fp(e,e,t)}const kp=e=>({animationDuration:e,animationFillMode:"both"}),Np=e=>({animationDuration:e,animationFillMode:"both"}),Ip=(e,t,r,n,o=!1)=>{const i=o?"&":"";return{[`
130
- ${i}${e}-enter,
131
- ${i}${e}-appear
132
- `]:Object.assign(Object.assign({},kp(n)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},Np(n)),{animationPlayState:"paused"}),[`
133
- ${i}${e}-enter${e}-enter-active,
134
- ${i}${e}-appear${e}-appear-active
135
- `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},Vp=new Pt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Dp=new Pt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Nl=new Pt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Il=new Pt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Lp=new Pt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Hp=new Pt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),zp=new Pt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Bp=new Pt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Wp=new Pt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),qp=new Pt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Up=new Pt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Kp=new Pt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Gp={zoom:{inKeyframes:Vp,outKeyframes:Dp},"zoom-big":{inKeyframes:Nl,outKeyframes:Il},"zoom-big-fast":{inKeyframes:Nl,outKeyframes:Il},"zoom-left":{inKeyframes:zp,outKeyframes:Bp},"zoom-right":{inKeyframes:Wp,outKeyframes:qp},"zoom-up":{inKeyframes:Lp,outKeyframes:Hp},"zoom-down":{inKeyframes:Up,outKeyframes:Kp}},Yp=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=Gp[t];return[Ip(n,o,i,e.motionDurationFast),{[`
136
- ${n}-enter,
137
- ${n}-appear
138
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Xp=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:g}=e,p=t(a).add(g).add(f).equal(),y=t(a).mul(2).add(g).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},is(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${r}-inner`]:{minWidth:y,minHeight:l,padding:`${Me(e.calc(u).div(2).equal())} ${Me(d)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:p},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,od)}},[`${r}-content`]:{position:"relative"}}),vg(e,(h,{darkColor:x})=>({[`&${r}-${h}`]:{[`${r}-inner`]:{backgroundColor:x},[`${r}-arrow`]:{"--antd-arrow-background-color":x}}}))),{"&-rtl":{direction:"rtl"}})},jp(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Qp=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},id({contentRadius:e.borderRadius,limitVerticalRadius:!0})),$p(rr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),sd=(e,t=!0)=>Bn("Tooltip",n=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=n,s=rr(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[Xp(s),Yp(n,"zoom-big-fast")]},Qp,{resetStyle:!1,injectStyle:t})(e),Zp=ko.map(e=>`${e}-inverse`);function Jp(e,t=!0){return t?[].concat(oe(Zp),oe(ko)).includes(e):ko.includes(e)}const ot=Math.round;function $i(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const Vl=(e,t,r)=>r===0?e:e/100;function mn(e,t){const r=t||255;return e>r?r:e<0?0:e}class Uo{constructor(t){O(this,"isValid",!0),O(this,"r",0),O(this,"g",0),O(this,"b",0),O(this,"a",1),O(this,"_h",void 0),O(this,"_s",void 0),O(this,"_l",void 0),O(this,"_v",void 0),O(this,"_max",void 0),O(this,"_min",void 0),O(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let o=function(i){return n.startsWith(i)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(t instanceof Uo)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=mn(t.r),this.g=mn(t.g),this.b=mn(t.b),this.a=typeof t.a=="number"?mn(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=ot(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){const n=this._c(t),o=r/100,i=s=>(n[s]-this[s])*o+this[s],a={r:ot(i("r")),g:ot(i("g")),b:ot(i("b")),a:ot(i("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),o=i=>ot((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=ot(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=ot(this.getSaturation()*100),n=ot(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const o=this.clone();return o[t]=mn(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(o,i){return parseInt(r[o]+r[i||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){const f=ot(n*255);this.r=f,this.g=f,this.b=f}let i=0,a=0,s=0;const l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const d=n-c/2;this.r=ot((i+d)*255),this.g=ot((a+d)*255),this.b=ot((s+d)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;const i=ot(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=ot(n*(1-r)*255),u=ot(n*(1-r*l)*255),d=ot(n*(1-r*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const r=$i(t,Vl);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=$i(t,Vl);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=$i(t,(n,o)=>o.includes("%")?ot(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var e0=["b"],t0=["v"],Oi=function(t){return Math.round(Number(t||0))},r0=function(t){if(t instanceof Uo)return t;if(t&&ve(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=ft(r,e0);return k(k({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},fr=(function(e){vr(r,e);var t=hr(r);function r(n){return it(this,r),t.call(this,r0(n))}return at(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=Oi(o.s*100),a=Oi(o.b*100),s=Oi(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=ft(o,t0);return k(k({},a),{},{b:i,a:this.a})}}]),r})(Uo),n0="rc-color-picker",Br=function(t){return t instanceof fr?t:new fr(t)},o0=Br("#1677ff"),ld=function(t){var r=t.offset,n=t.targetRef,o=t.containerRef,i=t.color,a=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,u=n.current.getBoundingClientRect(),d=u.width,f=u.height,g=d/2,p=f/2,y=(r.x+g)/l,h=1-(r.y+p)/c,x=i.toHsb(),m=y,S=(r.x+g)/l*360;if(a)switch(a){case"hue":return Br(k(k({},x),{},{h:S<=0?0:S}));case"alpha":return Br(k(k({},x),{},{a:m<=0?0:m}))}return Br({h:x.h,s:y<=0?0:y,b:h>=1?1:h,a:x.a})},cd=function(t,r){var n=t.toHsb();switch(r){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:n.s*100,y:(1-n.b)*100}}},i0=function(t){var r=t.color,n=t.prefixCls,o=t.className,i=t.style,a=t.onClick,s="".concat(n,"-color-block");return E.createElement("div",{className:ae(s,o),style:i,onClick:a},E.createElement("div",{className:"".concat(s,"-inner"),style:{background:r}}))};function a0(e){var t="touches"in e?e.touches[0]:e,r=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,n=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-r,pageY:t.pageY-n}}function ud(e){var t=e.targetRef,r=e.containerRef,n=e.direction,o=e.onDragChange,i=e.onDragChangeComplete,a=e.calculate,s=e.color,l=e.disabledDrag,c=E.useState({x:0,y:0}),u=G(c,2),d=u[0],f=u[1],g=E.useRef(null),p=E.useRef(null);E.useEffect(function(){f(a())},[s]),E.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",p.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",p.current),g.current=null,p.current=null}},[]);var y=function(R){var b=a0(R),w=b.pageX,C=b.pageY,j=r.current.getBoundingClientRect(),A=j.x,M=j.y,V=j.width,D=j.height,N=t.current.getBoundingClientRect(),F=N.width,L=N.height,I=F/2,z=L/2,P=Math.max(0,Math.min(w-A,V))-I,W=Math.max(0,Math.min(C-M,D))-z,Y={x:P,y:n==="x"?d.y:W};if(F===0&&L===0||F!==L)return!1;o?.(Y)},h=function(R){R.preventDefault(),y(R)},x=function(R){R.preventDefault(),document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",p.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",p.current),g.current=null,p.current=null,i?.()},m=function(R){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",p.current),!l&&(y(R),document.addEventListener("mousemove",h),document.addEventListener("mouseup",x),document.addEventListener("touchmove",h),document.addEventListener("touchend",x),g.current=h,p.current=x)};return[d,m]}var dd=function(t){var r=t.size,n=r===void 0?"default":r,o=t.color,i=t.prefixCls;return E.createElement("div",{className:ae("".concat(i,"-handler"),O({},"".concat(i,"-handler-sm"),n==="small")),style:{backgroundColor:o}})},fd=function(t){var r=t.children,n=t.style,o=t.prefixCls;return E.createElement("div",{className:"".concat(o,"-palette"),style:k({position:"relative"},n)},r)},vd=E.forwardRef(function(e,t){var r=e.children,n=e.x,o=e.y;return E.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(n,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},r)}),s0=function(t){var r=t.color,n=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,s=E.useRef(),l=E.useRef(),c=E.useRef(r),u=ht(function(y){var h=ld({offset:y,targetRef:l,containerRef:s,color:r});c.current=h,n(h)}),d=ud({color:r,containerRef:s,targetRef:l,calculate:function(){return cd(r)},onDragChange:u,onDragChangeComplete:function(){return i?.(c.current)},disabledDrag:a}),f=G(d,2),g=f[0],p=f[1];return E.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:p,onTouchStart:p},E.createElement(fd,{prefixCls:o},E.createElement(vd,{x:g.x,y:g.y,ref:l},E.createElement(dd,{color:r.toRgbString(),prefixCls:o})),E.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(r.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},l0=function(t,r){var n=Er(t,{value:r}),o=G(n,2),i=o[0],a=o[1],s=E.useMemo(function(){return Br(i)},[i]);return[s,a]},c0=function(t){var r=t.colors,n=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,s=t.prefixCls,l=E.useMemo(function(){return r.map(function(c,u){var d=Br(c);return a==="alpha"&&u===r.length-1&&(d=new fr(d.setA(1))),d.toRgbString()}).join(",")},[r,a]);return E.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(l,")")}},n)},u0=function(t){var r=t.prefixCls,n=t.colors,o=t.disabled,i=t.onChange,a=t.onChangeComplete,s=t.color,l=t.type,c=E.useRef(),u=E.useRef(),d=E.useRef(s),f=function(b){return l==="hue"?b.getHue():b.a*100},g=ht(function(R){var b=ld({offset:R,targetRef:u,containerRef:c,color:s,type:l});d.current=b,i(f(b))}),p=ud({color:s,targetRef:u,containerRef:c,calculate:function(){return cd(s,l)},onDragChange:g,onDragChangeComplete:function(){a(f(d.current))},direction:"x",disabledDrag:o}),y=G(p,2),h=y[0],x=y[1],m=E.useMemo(function(){if(l==="hue"){var R=s.toHsb();R.s=1,R.b=1,R.a=1;var b=new fr(R);return b}return s},[s,l]),S=E.useMemo(function(){return n.map(function(R){return"".concat(R.color," ").concat(R.percent,"%")})},[n]);return E.createElement("div",{ref:c,className:ae("".concat(r,"-slider"),"".concat(r,"-slider-").concat(l)),onMouseDown:x,onTouchStart:x},E.createElement(fd,{prefixCls:r},E.createElement(vd,{x:h.x,y:h.y,ref:u},E.createElement(dd,{size:"small",color:m.toHexString(),prefixCls:r})),E.createElement(c0,{colors:S,type:l,prefixCls:r})))};function d0(e){return v.useMemo(function(){var t=e||{},r=t.slider;return[r||u0]},[e])}var f0=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],v0=E.forwardRef(function(e,t){var r=e.value,n=e.defaultValue,o=e.prefixCls,i=o===void 0?n0:o,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,f=d===void 0?!1:d,g=e.disabled,p=g===void 0?!1:g,y=e.components,h=d0(y),x=G(h,1),m=x[0],S=l0(n||o0,r),R=G(S,2),b=R[0],w=R[1],C=E.useMemo(function(){return b.setA(1).toRgbString()},[b]),j=function(W,Y){r||w(W),a?.(W,Y)},A=function(W){return new fr(b.setHue(W))},M=function(W){return new fr(b.setA(W/100))},V=function(W){j(A(W),{type:"hue",value:W})},D=function(W){j(M(W),{type:"alpha",value:W})},N=function(W){s&&s(A(W))},F=function(W){s&&s(M(W))},L=ae("".concat(i,"-panel"),l,O({},"".concat(i,"-panel-disabled"),p)),I={prefixCls:i,disabled:p,color:b},z=E.createElement(E.Fragment,null,E.createElement(s0,Ie({onChange:j},I,{onChangeComplete:s})),E.createElement("div",{className:"".concat(i,"-slider-container")},E.createElement("div",{className:ae("".concat(i,"-slider-group"),O({},"".concat(i,"-slider-group-disabled-alpha"),f))},E.createElement(m,Ie({},I,{type:"hue",colors:f0,min:0,max:359,value:b.getHue(),onChange:V,onChangeComplete:N})),!f&&E.createElement(m,Ie({},I,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:C}],min:0,max:100,value:b.a*100,onChange:D,onChangeComplete:F}))),E.createElement(i0,{color:b.toRgbString(),prefixCls:i})));return E.createElement("div",{className:L,style:c,ref:t},typeof u=="function"?u(z):z)});process.env.NODE_ENV!=="production"&&(v0.displayName="ColorPicker");const h0=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",g0=(e,t)=>e?h0(e,t):"";let Dl=(function(){function e(t){it(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:o,percent:i})=>({color:new e(o),percent:i})),this.metaColor=new fr(this.colors[0].color.metaColor)):this.metaColor=new fr(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return at(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return g0(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,o)=>{const i=r.colors[o];return n.percent===i.percent&&n.color.equals(i.color)}):this.toHexString()===r.toHexString()}}])})();const m0=e=>e instanceof Dl?e:new Dl(e);function hd(e,t){const r=Jp(t),n=ae({[`${e}-${t}`]:t&&r}),o={},i={},a=m0(t).toRgb(),l=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return t&&!r&&(o.background=t,o["--ant-tooltip-color"]=l,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:i}}const p0=e=>{const{prefixCls:t,className:r,placement:n="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=v.useContext(Ut),l=s("tooltip",t),[c,u,d]=sd(l),f=hd(l,i),g=f.arrowStyle,p=Object.assign(Object.assign({},a),f.overlayStyle),y=ae(u,d,l,`${l}-pure`,`${l}-placement-${n}`,r,f.className);return c(v.createElement("div",{className:y,style:g},v.createElement("div",{className:`${l}-arrow`}),v.createElement(Du,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:p}),o)))};var y0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const b0=v.forwardRef((e,t)=>{var r,n;const{prefixCls:o,openClassName:i,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:d,destroyTooltipOnHide:f,destroyOnHidden:g,arrow:p=!0,title:y,overlay:h,builtinPlacements:x,arrowPointAtCenter:m=!1,autoAdjustOverflow:S=!0,motion:R,getPopupContainer:b,placement:w="top",mouseEnterDelay:C=.1,mouseLeaveDelay:j=.1,overlayStyle:A,rootClassName:M,overlayClassName:V,styles:D,classNames:N}=e,F=y0(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),L=!!p,[,I]=nn(),{getPopupContainer:z,getPrefixCls:P,direction:W,className:Y,style:$,classNames:T,styles:H}=Wo("tooltip"),B=qt("Tooltip"),q=v.useRef(null),K=()=>{var Te;(Te=q.current)===null||Te===void 0||Te.forceAlign()};v.useImperativeHandle(t,()=>{var Te,Oe;return{forceAlign:K,forcePopupAlign:()=>{B.deprecated(!1,"forcePopupAlign","forceAlign"),K()},nativeElement:(Te=q.current)===null||Te===void 0?void 0:Te.nativeElement,popupElement:(Oe=q.current)===null||Oe===void 0?void 0:Oe.popupElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(([Te,Oe])=>{B.deprecated(!(Te in e),Te,Oe)}),process.env.NODE_ENV!=="production"&&B(!f||typeof f=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&B(!p||typeof p=="boolean"||!("arrowPointAtCenter"in p),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[ne,Z]=Er(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),te=!y&&!h&&y!==0,ie=Te=>{var Oe,Se;Z(te?!1:Te),te||((Oe=e.onOpenChange)===null||Oe===void 0||Oe.call(e,Te),(Se=e.onVisibleChange)===null||Se===void 0||Se.call(e,Te))},ge=v.useMemo(()=>{var Te,Oe;let Se=m;return typeof p=="object"&&(Se=(Oe=(Te=p.pointAtCenter)!==null&&Te!==void 0?Te:p.arrowPointAtCenter)!==null&&Oe!==void 0?Oe:m),x||Ap({arrowPointAtCenter:Se,autoAdjustOverflow:S,arrowWidth:L?I.sizePopupArrow:0,borderRadius:I.borderRadius,offset:I.marginXXS})},[m,p,x,I]),ce=v.useMemo(()=>y===0?y:h||y||"",[h,y]),ye=v.createElement(Da,{space:!0},typeof ce=="function"?ce():ce),U=P("tooltip",o),se=P(),J=e["data-popover-inject"];let le=ne;!("open"in e)&&!("visible"in e)&&te&&(le=!1);const pe=v.isValidElement(c)&&!Mp(c)?c:v.createElement("span",null,c),ue=pe.props,$e=!ue.className||typeof ue.className=="string"?ae(ue.className,i||`${U}-open`):ue.className,[be,Ee,he]=sd(U,!J),Q=hd(U,s),Ce=Q.arrowStyle,Re=ae(V,{[`${U}-rtl`]:W==="rtl"},Q.className,M,Ee,he,Y,T.root,N?.root),Qe=ae(T.body,N?.body),[Ne,Ve]=Ep("Tooltip",F.zIndex),tt=v.createElement(bm,Object.assign({},F,{zIndex:Ne,showArrow:L,placement:w,mouseEnterDelay:C,mouseLeaveDelay:j,prefixCls:U,classNames:{root:Re,body:Qe},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ce),H.root),$),A),D?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},H.body),l),D?.body),Q.overlayStyle)},getTooltipContainer:b||a||z,ref:q,builtinPlacements:ge,overlay:ye,visible:le,onVisibleChange:ie,afterVisibleChange:u??d,arrowContent:v.createElement("span",{className:`${U}-arrow-content`}),motion:{motionName:Rp(se,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:g??!!f}),le?ad(pe,{className:$e}):pe);return be(v.createElement(ds.Provider,{value:Ve},tt))}),Gn=b0;process.env.NODE_ENV!=="production"&&(Gn.displayName="Tooltip");Gn._InternalPanelDoNotUseOrYouWillBeFired=p0;var x0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},C0=function(t,r){return v.createElement(tr,Ie({},t,{ref:r,icon:x0}))},gd=v.forwardRef(C0);process.env.NODE_ENV!=="production"&&(gd.displayName="EnterOutlined");var Ll={ENTER:13,ESC:27};function w0(e){return!!(e.addonBefore||e.addonAfter)}function S0(e){return!!(e.prefix||e.suffix||e.allowClear)}function Hl(e,t,r){var n=t.cloneNode(!0),o=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Vo(e,t,r,n){if(r){var o=t;if(t.type==="click"){o=Hl(t,e,""),r(o);return}if(e.type!=="file"&&n!==void 0){o=Hl(t,e,n),r(o);return}r(o)}}function md(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var pd=E.forwardRef(function(e,t){var r,n,o,i=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,g=e.style,p=e.disabled,y=e.readOnly,h=e.focused,x=e.triggerFocus,m=e.allowClear,S=e.value,R=e.handleReset,b=e.hidden,w=e.classes,C=e.classNames,j=e.dataAttrs,A=e.styles,M=e.components,V=e.onClear,D=a??i,N=M?.affixWrapper||"span",F=M?.groupWrapper||"span",L=M?.wrapper||"span",I=M?.groupAddon||"span",z=E.useRef(null),P=function(se){var J;(J=z.current)!==null&&J!==void 0&&J.contains(se.target)&&x?.()},W=S0(e),Y=E.cloneElement(D,{value:S,className:ae((r=D.props)===null||r===void 0?void 0:r.className,!W&&C?.variant)||null}),$=E.useRef(null);if(E.useImperativeHandle(t,function(){return{nativeElement:$.current||z.current}}),W){var T=null;if(m){var H=!p&&!y&&S,B="".concat(s,"-clear-icon"),q=ve(m)==="object"&&m!==null&&m!==void 0&&m.clearIcon?m.clearIcon:"✖";T=E.createElement("button",{type:"button",tabIndex:-1,onClick:function(se){R?.(se),V?.()},onMouseDown:function(se){return se.preventDefault()},className:ae(B,O(O({},"".concat(B,"-hidden"),!H),"".concat(B,"-has-suffix"),!!c))},q)}var K="".concat(s,"-affix-wrapper"),ne=ae(K,O(O(O(O(O({},"".concat(s,"-disabled"),p),"".concat(K,"-disabled"),p),"".concat(K,"-focused"),h),"".concat(K,"-readonly"),y),"".concat(K,"-input-with-clear-btn"),c&&m&&S),w?.affixWrapper,C?.affixWrapper,C?.variant),Z=(c||m)&&E.createElement("span",{className:ae("".concat(s,"-suffix"),C?.suffix),style:A?.suffix},T,c);Y=E.createElement(N,Ie({className:ne,style:A?.affixWrapper,onClick:P},j?.affixWrapper,{ref:z}),l&&E.createElement("span",{className:ae("".concat(s,"-prefix"),C?.prefix),style:A?.prefix},l),Y,Z)}if(w0(e)){var te="".concat(s,"-group"),ie="".concat(te,"-addon"),ge="".concat(te,"-wrapper"),ce=ae("".concat(s,"-wrapper"),te,w?.wrapper,C?.wrapper),ye=ae(ge,O({},"".concat(ge,"-disabled"),p),w?.group,C?.groupWrapper);Y=E.createElement(F,{className:ye,ref:$},E.createElement(L,{className:ce},u&&E.createElement(I,{className:ie},u),Y,d&&E.createElement(I,{className:ie},d)))}return E.cloneElement(Y,{className:ae((n=Y.props)===null||n===void 0?void 0:n.className,f)||null,style:k(k({},(o=Y.props)===null||o===void 0?void 0:o.style),g),hidden:b})}),E0=["show"];function yd(e,t){return v.useMemo(function(){var r={};t&&(r.show=ve(t)==="object"&&t.formatter?t.formatter:!!t),r=k(k({},r),e);var n=r,o=n.show,i=ft(n,E0);return k(k({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var R0=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],$0=E.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,f=e.htmlSize,g=e.className,p=e.maxLength,y=e.suffix,h=e.showCount,x=e.count,m=e.type,S=m===void 0?"text":m,R=e.classes,b=e.classNames,w=e.styles,C=e.onCompositionStart,j=e.onCompositionEnd,A=ft(e,R0),M=E.useState(!1),V=G(M,2),D=V[0],N=V[1],F=E.useRef(!1),L=E.useRef(!1),I=E.useRef(null),z=E.useRef(null),P=function(Q){I.current&&md(I.current,Q)},W=Er(e.defaultValue,{value:e.value}),Y=G(W,2),$=Y[0],T=Y[1],H=$==null?"":String($),B=E.useState(null),q=G(B,2),K=q[0],ne=q[1],Z=yd(x,h),te=Z.max||p,ie=Z.strategy(H),ge=!!te&&ie>te;E.useImperativeHandle(t,function(){var he;return{focus:P,blur:function(){var Ce;(Ce=I.current)===null||Ce===void 0||Ce.blur()},setSelectionRange:function(Ce,Re,Qe){var Ne;(Ne=I.current)===null||Ne===void 0||Ne.setSelectionRange(Ce,Re,Qe)},select:function(){var Ce;(Ce=I.current)===null||Ce===void 0||Ce.select()},input:I.current,nativeElement:((he=z.current)===null||he===void 0?void 0:he.nativeElement)||I.current}}),E.useEffect(function(){L.current&&(L.current=!1),N(function(he){return he&&d?!1:he})},[d]);var ce=function(Q,Ce,Re){var Qe=Ce;if(!F.current&&Z.exceedFormatter&&Z.max&&Z.strategy(Ce)>Z.max){if(Qe=Z.exceedFormatter(Ce,{max:Z.max}),Ce!==Qe){var Ne,Ve;ne([((Ne=I.current)===null||Ne===void 0?void 0:Ne.selectionStart)||0,((Ve=I.current)===null||Ve===void 0?void 0:Ve.selectionEnd)||0])}}else if(Re.source==="compositionEnd")return;T(Qe),I.current&&Vo(I.current,Q,n,Qe)};E.useEffect(function(){if(K){var he;(he=I.current)===null||he===void 0||he.setSelectionRange.apply(he,oe(K))}},[K]);var ye=function(Q){ce(Q,Q.target.value,{source:"change"})},U=function(Q){F.current=!1,ce(Q,Q.currentTarget.value,{source:"compositionEnd"}),j?.(Q)},se=function(Q){a&&Q.key==="Enter"&&!L.current&&(L.current=!0,a(Q)),s?.(Q)},J=function(Q){Q.key==="Enter"&&(L.current=!1),l?.(Q)},le=function(Q){N(!0),o?.(Q)},pe=function(Q){L.current&&(L.current=!1),N(!1),i?.(Q)},ue=function(Q){T(""),P(),I.current&&Vo(I.current,Q,n)},$e=ge&&"".concat(u,"-out-of-range"),be=function(){var Q=zc(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return E.createElement("input",Ie({autoComplete:r},Q,{onChange:ye,onFocus:le,onBlur:pe,onKeyDown:se,onKeyUp:J,className:ae(u,O({},"".concat(u,"-disabled"),d),b?.input),style:w?.input,ref:I,size:f,type:S,onCompositionStart:function(Re){F.current=!0,C?.(Re)},onCompositionEnd:U}))},Ee=function(){var Q=Number(te)>0;if(y||Z.show){var Ce=Z.showFormatter?Z.showFormatter({value:H,count:ie,maxLength:te}):"".concat(ie).concat(Q?" / ".concat(te):"");return E.createElement(E.Fragment,null,Z.show&&E.createElement("span",{className:ae("".concat(u,"-show-count-suffix"),O({},"".concat(u,"-show-count-has-suffix"),!!y),b?.count),style:k({},w?.count)},Ce),y)}return null};return E.createElement(pd,Ie({},A,{prefixCls:u,className:ae(g,$e),handleReset:ue,value:H,focused:D,triggerFocus:P,suffix:Ee(),disabled:d,classes:R,classNames:b,styles:w,ref:z}),be())}),O0=`
139
- min-height:0 !important;
140
- max-height:none !important;
141
- height:0 !important;
142
- visibility:hidden !important;
143
- overflow:hidden !important;
144
- position:absolute !important;
145
- z-index:-1000 !important;
146
- top:0 !important;
147
- right:0 !important;
148
- pointer-events: none !important;
149
- `,j0=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ji={},bt;function _0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&ji[r])return ji[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=j0.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&r&&(ji[r]=l),l}function P0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;bt||(bt=document.createElement("textarea"),bt.setAttribute("tab-index","-1"),bt.setAttribute("aria-hidden","true"),bt.setAttribute("name","hiddenTextarea"),document.body.appendChild(bt)),e.getAttribute("wrap")?bt.setAttribute("wrap",e.getAttribute("wrap")):bt.removeAttribute("wrap");var o=_0(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;bt.setAttribute("style","".concat(l,";").concat(O0)),bt.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=bt.scrollHeight;if(s==="border-box"?f+=a:s==="content-box"&&(f-=i),r!==null||n!==null){bt.value=" ";var g=bt.scrollHeight-i;r!==null&&(c=g*r,s==="border-box"&&(c=c+i+a),f=Math.max(c,f)),n!==null&&(u=g*n,s==="border-box"&&(u=u+i+a),d=f>u?"":"hidden",f=Math.min(u,f))}var p={height:f,overflowY:d,resize:"none"};return c&&(p.minHeight=c),u&&(p.maxHeight=u),p}var T0=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],_i=0,Pi=1,Ti=2,A0=v.forwardRef(function(e,t){var r=e,n=r.prefixCls,o=r.defaultValue,i=r.value,a=r.autoSize,s=r.onResize,l=r.className,c=r.style,u=r.disabled,d=r.onChange,f=r.onInternalAutoSize,g=ft(r,T0),p=Er(o,{value:i,postState:function(B){return B??""}}),y=G(p,2),h=y[0],x=y[1],m=function(B){x(B.target.value),d?.(B)},S=v.useRef();v.useImperativeHandle(t,function(){return{textArea:S.current}});var R=v.useMemo(function(){return a&&ve(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),b=G(R,2),w=b[0],C=b[1],j=!!a,A=v.useState(Ti),M=G(A,2),V=M[0],D=M[1],N=v.useState(),F=G(N,2),L=F[0],I=F[1],z=function(){D(_i),process.env.NODE_ENV==="test"&&f?.()};Be(function(){j&&z()},[i,w,C,j]),Be(function(){if(V===_i)D(Pi);else if(V===Pi){var H=P0(S.current,!1,w,C);D(Ti),I(H)}},[V]);var P=v.useRef(),W=function(){Zr.cancel(P.current)},Y=function(B){V===Ti&&(s?.(B),a&&(W(),P.current=Zr(function(){z()})))};v.useEffect(function(){return W},[]);var $=j?L:null,T=k(k({},c),$);return(V===_i||V===Pi)&&(T.overflowY="hidden",T.overflowX="hidden"),v.createElement(tn,{onResize:Y,disabled:!(a||s)},v.createElement("textarea",Ie({},g,{ref:S,style:T,className:ae(n,l,O({},"".concat(n,"-disabled"),u)),disabled:u,value:h,onChange:m})))}),M0=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],F0=E.forwardRef(function(e,t){var r,n=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,f=e.suffix,g=e.prefixCls,p=g===void 0?"rc-textarea":g,y=e.showCount,h=e.count,x=e.className,m=e.style,S=e.disabled,R=e.hidden,b=e.classNames,w=e.styles,C=e.onResize,j=e.onClear,A=e.onPressEnter,M=e.readOnly,V=e.autoSize,D=e.onKeyDown,N=ft(e,M0),F=Er(n,{value:o,defaultValue:n}),L=G(F,2),I=L[0],z=L[1],P=I==null?"":String(I),W=E.useState(!1),Y=G(W,2),$=Y[0],T=Y[1],H=E.useRef(!1),B=E.useState(null),q=G(B,2),K=q[0],ne=q[1],Z=E.useRef(null),te=E.useRef(null),ie=function(){var me;return(me=te.current)===null||me===void 0?void 0:me.textArea},ge=function(){ie().focus()};E.useImperativeHandle(t,function(){var Se;return{resizableTextArea:te.current,focus:ge,blur:function(){ie().blur()},nativeElement:((Se=Z.current)===null||Se===void 0?void 0:Se.nativeElement)||ie()}}),E.useEffect(function(){T(function(Se){return!S&&Se})},[S]);var ce=E.useState(null),ye=G(ce,2),U=ye[0],se=ye[1];E.useEffect(function(){if(U){var Se;(Se=ie()).setSelectionRange.apply(Se,oe(U))}},[U]);var J=yd(h,y),le=(r=J.max)!==null&&r!==void 0?r:c,pe=Number(le)>0,ue=J.strategy(P),$e=!!le&&ue>le,be=function(me,De){var re=De;!H.current&&J.exceedFormatter&&J.max&&J.strategy(De)>J.max&&(re=J.exceedFormatter(De,{max:J.max}),De!==re&&se([ie().selectionStart||0,ie().selectionEnd||0])),z(re),Vo(me.currentTarget,me,s,re)},Ee=function(me){H.current=!0,u?.(me)},he=function(me){H.current=!1,be(me,me.currentTarget.value),d?.(me)},Q=function(me){be(me,me.target.value)},Ce=function(me){me.key==="Enter"&&A&&A(me),D?.(me)},Re=function(me){T(!0),i?.(me)},Qe=function(me){T(!1),a?.(me)},Ne=function(me){z(""),ge(),Vo(ie(),me,s)},Ve=f,tt;J.show&&(J.showFormatter?tt=J.showFormatter({value:P,count:ue,maxLength:le}):tt="".concat(ue).concat(pe?" / ".concat(le):""),Ve=E.createElement(E.Fragment,null,Ve,E.createElement("span",{className:ae("".concat(p,"-data-count"),b?.count),style:w?.count},tt)));var Te=function(me){var De;C?.(me),(De=ie())!==null&&De!==void 0&&De.style.height&&ne(!0)},Oe=!V&&!y&&!l;return E.createElement(pd,{ref:Z,value:P,allowClear:l,handleReset:Ne,suffix:Ve,prefixCls:p,classNames:k(k({},b),{},{affixWrapper:ae(b?.affixWrapper,O(O({},"".concat(p,"-show-count"),y),"".concat(p,"-textarea-allow-clear"),l))}),disabled:S,focused:$,className:ae(x,$e&&"".concat(p,"-out-of-range")),style:k(k({},m),K&&!Oe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof tt=="string"?tt:void 0}},hidden:R,readOnly:M,onClear:j},E.createElement(A0,Ie({},N,{autoSize:V,maxLength:c,onKeyDown:Ce,onChange:Q,onFocus:Re,onBlur:Qe,onCompositionStart:Ee,onCompositionEnd:he,className:ae(b?.textarea),style:k(k({},w?.textarea),{},{resize:m?.resize}),disabled:S,prefixCls:p,onResize:Te,ref:te,readOnly:M})))}),k0={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},N0=function(t,r){return v.createElement(tr,Ie({},t,{ref:r,icon:k0}))},bd=v.forwardRef(N0);process.env.NODE_ENV!=="production"&&(bd.displayName="CloseCircleFilled");const xd=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:E.createElement(bd,null)}),t};function La(e,t,r){return ae({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const Cd=(e,t)=>t||e,wd=e=>{const[,,,,t]=nn();return t?`${e}-css-var`:""},Sd=(e,t,r=void 0)=>{var n,o;const{variant:i,[e]:a}=v.useContext(Ut),s=v.useContext(pp),l=a?.variant;let c;typeof t<"u"?c=t:r===!1?c="borderless":c=(o=(n=s??l)!==null&&n!==void 0?n:i)!==null&&o!==void 0?o:"outlined";const u=Ih.includes(c);return[c,u]};function I0(e,t){const r=E.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return E.useEffect(()=>(n(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),n}function V0(e,t,r,n){const{focusElCls:o,focus:i,borderElCls:a}=r,s=a?"> *":"",l=["hover",i?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function D0(e,t,r){const{borderElCls:n}=r,o=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function L0(e,t={focus:!0}){const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},V0(e,n,t,r)),D0(r,n,t))}}function fs(e){return rr(e,{inputAffixPadding:e.paddingXXS})}const vs=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:g,colorPrimary:p,controlOutlineWidth:y,controlOutline:h,colorErrorOutline:x,colorWarningOutline:m,colorBgContainer:S,inputFontSize:R,inputFontSizeLG:b,inputFontSizeSM:w}=e,C=R||r,j=w||C,A=b||s,M=Math.round((t-C*n)/2*10)/10-o,V=Math.round((i-j*n)/2*10)/10-o,D=Math.ceil((a-A*l)/2*10)/10-o;return{paddingBlock:Math.max(M,0),paddingBlockSM:Math.max(V,0),paddingBlockLG:Math.max(D,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:p,hoverBorderColor:g,activeShadow:`0 0 0 ${y}px ${h}`,errorActiveShadow:`0 0 0 ${y}px ${x}`,warningActiveShadow:`0 0 0 ${y}px ${m}`,hoverBg:S,activeBg:S,inputFontSize:C,inputFontSizeLG:A,inputFontSizeSM:j}},H0=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),hs=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},H0(rr(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Ed=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),zl=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ed(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),z0=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ed(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},hs(e))}),zl(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),zl(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Bl=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),B0=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Bl(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Bl(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},hs(e))}})}),W0=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Rd=(e,t)=>{var r;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(r=t?.inputColor)!==null&&r!==void 0?r:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},Wl=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Rd(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),q0=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Rd(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},hs(e))}),Wl(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Wl(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),ql=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),U0=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},ql(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),ql(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),$d=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Me(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Ul=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},$d(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),K0=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$d(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),Ul(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Ul(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),G0=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Od=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${Me(t)} ${Me(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},jd=e=>({padding:`${Me(e.paddingBlockSM)} ${Me(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),_d=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Me(e.paddingBlock)} ${Me(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},G0(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Od(e)),"&-sm":Object.assign({},jd(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Y0=e=>{const{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Od(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},jd(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Me(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${Me(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Me(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${Me(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${Me(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},lg()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
150
- & > ${t}-affix-wrapper,
151
- & > ${t}-number-affix-wrapper,
152
- & > ${r}-picker-range
153
- `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,
154
- & > ${r}-select-auto-complete ${t},
155
- & > ${r}-cascader-picker ${t},
156
- & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
157
- & > ${r}-select:first-child > ${r}-select-selector,
158
- & > ${r}-select-auto-complete:first-child ${t},
159
- & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
160
- & > ${r}-select:last-child > ${r}-select-selector,
161
- & > ${r}-cascader-picker:last-child ${t},
162
- & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},X0=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:o}=e,a=o(r).sub(o(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},is(e)),_d(e)),z0(e)),q0(e)),W0(e)),K0(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Q0=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Me(e.inputAffixPadding)}`}}}},Z0=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},_d(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),Q0(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},J0=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},is(e)),Y0(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},B0(e)),U0(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},ey=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${n}-button:not(${r}-btn-color-primary):not(${r}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{inset:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
163
- > ${t},
164
- ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},ty=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Pd=Bn(["Input","Shared"],e=>{const t=rr(e,fs(e));return[X0(t),Z0(t)]},vs,{resetFont:!1}),ry=Bn(["Input","Component"],e=>{const t=rr(e,fs(e));return[J0(t),ey(t),ty(t),L0(t)]},vs,{resetFont:!1});function ny(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var oy=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const iy=E.forwardRef((e,t)=>{const{prefixCls:r,bordered:n=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:d,addonBefore:f,className:g,style:p,styles:y,rootClassName:h,onChange:x,classNames:m,variant:S}=e,R=oy(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:ue}=qt("Input");ue(!("bordered"in e),"bordered","variant")}const{getPrefixCls:b,direction:w,allowClear:C,autoComplete:j,className:A,style:M,classNames:V,styles:D}=Wo("input"),N=b("input",r),F=E.useRef(null),L=wd(N),[I,z,P]=Pd(N,h),[W]=ry(N,L),{compactSize:Y,compactItemClassnames:$}=rd(N,w),T=ed(ue=>{var $e;return($e=i??Y)!==null&&$e!==void 0?$e:ue}),H=E.useContext(In),B=a??H,{status:q,hasFeedback:K,feedbackIcon:ne}=E.useContext(Dn),Z=Cd(q,o),te=ny(e)||!!K,ie=E.useRef(te);if(process.env.NODE_ENV!=="production"){const ue=qt("Input");E.useEffect(()=>{var $e;te&&!ie.current&&process.env.NODE_ENV!=="production"&&ue(document.activeElement===(($e=F.current)===null||$e===void 0?void 0:$e.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),ie.current=te},[te])}const ge=I0(F),ce=ue=>{ge(),s?.(ue)},ye=ue=>{ge(),l?.(ue)},U=ue=>{ge(),x?.(ue)},se=(K||c)&&E.createElement(E.Fragment,null,c,K&&ne),J=xd(u??C),[le,pe]=Sd("input",S,n);return I(W(E.createElement($0,Object.assign({ref:Ln(t,F),prefixCls:N,autoComplete:j},R,{disabled:B,onBlur:ce,onFocus:ye,style:Object.assign(Object.assign({},M),p),styles:Object.assign(Object.assign({},D),y),suffix:se,allowClear:J,className:ae(g,h,P,L,$,A),onChange:U,addonBefore:f&&E.createElement(Da,{form:!0,space:!0},f),addonAfter:d&&E.createElement(Da,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},m),V),{input:ae({[`${N}-sm`]:T==="small",[`${N}-lg`]:T==="large",[`${N}-rtl`]:w==="rtl"},m?.input,V.input,z),variant:ae({[`${N}-${le}`]:pe},La(N,Z)),affixWrapper:ae({[`${N}-affix-wrapper-sm`]:T==="small",[`${N}-affix-wrapper-lg`]:T==="large",[`${N}-affix-wrapper-rtl`]:w==="rtl"},z),wrapper:ae({[`${N}-group-rtl`]:w==="rtl"},z),groupWrapper:ae({[`${N}-group-wrapper-sm`]:T==="small",[`${N}-group-wrapper-lg`]:T==="large",[`${N}-group-wrapper-rtl`]:w==="rtl",[`${N}-group-wrapper-${le}`]:pe},La(`${N}-group-wrapper`,Z,K),z)})}))))});process.env.NODE_ENV!=="production"&&(iy.displayName="Input");const ay=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
165
- &-allow-clear > ${t},
166
- &-affix-wrapper${n}-has-feedback ${t}
167
- `]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},sy=Bn(["Input","TextArea"],e=>{const t=rr(e,fs(e));return ay(t)},vs,{resetFont:!1});var ly=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const cy=E.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:o=!0,size:i,disabled:a,status:s,allowClear:l,classNames:c,rootClassName:u,className:d,style:f,styles:g,variant:p,showCount:y,onMouseDown:h,onResize:x}=e,m=ly(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:J}=qt("TextArea");J(!("bordered"in e),"bordered","variant")}const{getPrefixCls:S,direction:R,allowClear:b,autoComplete:w,className:C,style:j,classNames:A,styles:M}=Wo("textArea"),V=v.useContext(In),D=a??V,{status:N,hasFeedback:F,feedbackIcon:L}=v.useContext(Dn),I=Cd(N,s),z=v.useRef(null);v.useImperativeHandle(t,()=>{var J;return{resizableTextArea:(J=z.current)===null||J===void 0?void 0:J.resizableTextArea,focus:le=>{var pe,ue;md((ue=(pe=z.current)===null||pe===void 0?void 0:pe.resizableTextArea)===null||ue===void 0?void 0:ue.textArea,le)},blur:()=>{var le;return(le=z.current)===null||le===void 0?void 0:le.blur()}}});const P=S("input",n),W=wd(P),[Y,$,T]=Pd(P,u),[H]=sy(P,W),{compactSize:B,compactItemClassnames:q}=rd(P,R),K=ed(J=>{var le;return(le=i??B)!==null&&le!==void 0?le:J}),[ne,Z]=Sd("textArea",p,o),te=xd(l??b),[ie,ge]=v.useState(!1),[ce,ye]=v.useState(!1),U=J=>{ge(!0),h?.(J);const le=()=>{ge(!1),document.removeEventListener("mouseup",le)};document.addEventListener("mouseup",le)},se=J=>{var le,pe;if(x?.(J),ie&&typeof getComputedStyle=="function"){const ue=(pe=(le=z.current)===null||le===void 0?void 0:le.nativeElement)===null||pe===void 0?void 0:pe.querySelector("textarea");ue&&getComputedStyle(ue).resize==="both"&&ye(!0)}};return Y(H(v.createElement(F0,Object.assign({autoComplete:w},m,{style:Object.assign(Object.assign({},j),f),styles:Object.assign(Object.assign({},M),g),disabled:D,allowClear:te,className:ae(T,W,d,u,q,C,ce&&`${P}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),A),{textarea:ae({[`${P}-sm`]:K==="small",[`${P}-lg`]:K==="large"},$,c?.textarea,A.textarea,ie&&`${P}-mouse-active`),variant:ae({[`${P}-${ne}`]:Z},La(P,I)),affixWrapper:ae(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:R==="rtl",[`${P}-affix-wrapper-sm`]:K==="small",[`${P}-affix-wrapper-lg`]:K==="large",[`${P}-textarea-show-count`]:y||((r=e.count)===null||r===void 0?void 0:r.show)},$)}),prefixCls:P,suffix:F&&v.createElement("span",{className:`${P}-textarea-suffix`},L),showCount:y,ref:z,onResize:se,onMouseDown:U}))))}),uy=(e,t,r,n)=>{const{titleMarginBottom:o,fontWeightStrong:i}=n;return{marginBottom:o,color:r,fontWeight:i,fontSize:e,lineHeight:t}},dy=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
168
- h${n}&,
169
- div&-h${n},
170
- div&-h${n} > textarea,
171
- h${n}
172
- `]=uy(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},fy=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Su(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},vy=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:_o[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),hy=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${Me(n)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},gy=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),my=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),py=e=>{const{componentCls:t,titleMarginTop:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},dy(e)),{[`
173
- & + h1${t},
174
- & + h2${t},
175
- & + h3${t},
176
- & + h4${t},
177
- & + h5${t}
178
- `]:{marginTop:r},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:r}}}),vy(e)),fy(e)),{[`
179
- ${t}-expand,
180
- ${t}-collapse,
181
- ${t}-edit,
182
- ${t}-copy
183
- `]:Object.assign(Object.assign({},Su(e)),{marginInlineStart:e.marginXXS})}),hy(e)),gy(e)),my()),{"&-rtl":{direction:"rtl"}})}},yy=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Td=Bn("Typography",py,yy),by=e=>{const{prefixCls:t,"aria-label":r,className:n,style:o,direction:i,maxLength:a,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:d,component:f,enterIcon:g=v.createElement(gd,null)}=e,p=v.useRef(null),y=v.useRef(!1),h=v.useRef(null),[x,m]=v.useState(l);v.useEffect(()=>{m(l)},[l]),v.useEffect(()=>{var F;if(!((F=p.current)===null||F===void 0)&&F.resizableTextArea){const{textArea:L}=p.current.resizableTextArea;L.focus();const{length:I}=L.value;L.setSelectionRange(I,I)}},[]);const S=({target:F})=>{m(F.value.replace(/[\n\r]/g,""))},R=()=>{y.current=!0},b=()=>{y.current=!1},w=({keyCode:F})=>{y.current||(h.current=F)},C=()=>{c(x.trim())},j=({keyCode:F,ctrlKey:L,altKey:I,metaKey:z,shiftKey:P})=>{h.current!==F||y.current||L||I||z||P||(F===Ll.ENTER?(C(),d?.()):F===Ll.ESC&&u())},A=()=>{C()},[M,V,D]=Td(t),N=ae(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${f}`]:!!f},n,V,D);return M(v.createElement("div",{className:N,style:o},v.createElement(cy,{ref:p,maxLength:a,value:x,onChange:S,onKeyDown:w,onKeyUp:j,onCompositionStart:R,onCompositionEnd:b,onBlur:A,"aria-label":r,rows:1,autoSize:s}),g!==null?ad(g,{className:`${t}-edit-content-confirm`}):null))};var Ai,Kl;function xy(){return Kl||(Kl=1,Ai=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(o){e.addRange(o)}),t&&t.focus()}}),Ai}var Mi,Gl;function Cy(){if(Gl)return Mi;Gl=1;var e=xy(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(i){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,a)}function o(i,a){var s,l,c,u,d,f,g=!1;a||(a={}),s=a.debug||!1;try{c=e(),u=document.createRange(),d=document.getSelection(),f=document.createElement("span"),f.textContent=i,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(y){if(y.stopPropagation(),a.format)if(y.preventDefault(),typeof y.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=t[a.format]||t.default;window.clipboardData.setData(h,i)}else y.clipboardData.clearData(),y.clipboardData.setData(a.format,i);a.onCopy&&(y.preventDefault(),a.onCopy(y.clipboardData))}),document.body.appendChild(f),u.selectNodeContents(f),d.addRange(u);var p=document.execCommand("copy");if(!p)throw new Error("copy command was unsuccessful");g=!0}catch(y){s&&console.error("unable to copy using execCommand: ",y),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",i),a.onCopy&&a.onCopy(window.clipboardData),g=!0}catch(h){s&&console.error("unable to copy using clipboardData: ",h),s&&console.error("falling back to prompt"),l=n("message"in a?a.message:r),window.prompt(l,i)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(u):d.removeAllRanges()),f&&document.body.removeChild(f),c()}return g}return Mi=o,Mi}var wy=Cy();const Sy=za.getDefaultExportFromCjs(wy),Ey=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];var Ry=function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const $y=({copyConfig:e,children:t})=>{const[r,n]=v.useState(!1),[o,i]=v.useState(!1),a=v.useRef(null),s=()=>{a.current&&clearTimeout(a.current)},l={};e.format&&(l.format=e.format),v.useEffect(()=>s,[]);const c=ht(u=>Ry(void 0,void 0,void 0,function*(){var d;u?.preventDefault(),u?.stopPropagation(),i(!0);try{const f=typeof e.text=="function"?yield e.text():e.text;Sy(f||Ey(t,!0).join("")||"",l),i(!1),n(!0),s(),a.current=setTimeout(()=>{n(!1)},3e3),(d=e.onCopy)===null||d===void 0||d.call(e,u)}catch(f){throw i(!1),f}}));return{copied:r,copyLoading:o,onClick:c}};function Fi(e,t){return v.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const Oy=e=>{const t=E.useRef(void 0);return E.useEffect(()=>{t.current=e}),t.current},jy=(e,t,r)=>E.useMemo(()=>e===!0?{title:t??r}:E.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??r},e):{title:e},[e,t,r]);var _y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Ad=v.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:o,rootClassName:i,setContentRef:a,children:s,direction:l,style:c}=e,u=_y(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:f,className:g,style:p}=Wo("typography"),y=l??f,h=a?Ln(t,a):t,x=d("typography",r);process.env.NODE_ENV!=="production"&&qt("Typography").deprecated(!a,"setContentRef","ref");const[m,S,R]=Td(x),b=ae(x,g,{[`${x}-rtl`]:y==="rtl"},o,i,S,R),w=Object.assign(Object.assign({},p),c);return m(v.createElement(n,Object.assign({className:b,style:w,ref:h},u),s))});process.env.NODE_ENV!=="production"&&(Ad.displayName="Typography");var Py={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"},Ty=function(t,r){return v.createElement(tr,Ie({},t,{ref:r,icon:Py}))},Md=v.forwardRef(Ty);process.env.NODE_ENV!=="production"&&(Md.displayName="CheckOutlined");var Ay={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},My=function(t,r){return v.createElement(tr,Ie({},t,{ref:r,icon:Ay}))},Fd=v.forwardRef(My);process.env.NODE_ENV!=="production"&&(Fd.displayName="CopyOutlined");var Fy={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},ky=function(t,r){return v.createElement(tr,Ie({},t,{ref:r,icon:Fy}))},kd=v.forwardRef(ky);process.env.NODE_ENV!=="production"&&(kd.displayName="LoadingOutlined");function Yl(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function ki(e,t,r){return e===!0||e===void 0?t:e||r&&t}function Ny(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),r.left>n.left||n.right>r.right||r.top>n.top||n.bottom>r.bottom}const gs=e=>["string","number"].includes(typeof e),Iy=({prefixCls:e,copied:t,locale:r,iconOnly:n,tooltips:o,icon:i,tabIndex:a,onCopy:s,loading:l})=>{const c=Yl(o),u=Yl(i),{copied:d,copy:f}=r??{},g=t?d:f,p=ki(c[t?1:0],g),y=typeof p=="string"?p:g;return v.createElement(Gn,{title:p},v.createElement("button",{type:"button",className:ae(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:n}),onClick:s,"aria-label":y,tabIndex:a},t?ki(u[1],v.createElement(Md,null),!0):ki(u[0],l?v.createElement(kd,null):v.createElement(Fd,null),!0)))},bo=v.forwardRef(({style:e,children:t},r)=>{const n=v.useRef(null);return v.useImperativeHandle(r,()=>({isExceed:()=>{const o=n.current;return o.scrollHeight>o.clientHeight},getHeight:()=>n.current.clientHeight})),v.createElement("span",{"aria-hidden":!0,ref:n,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),Vy=e=>e.reduce((t,r)=>t+(gs(r)?String(r).length:1),0);function Xl(e,t){let r=0;const n=[];for(let o=0;o<e.length;o+=1){if(r===t)return n;const i=e[o],s=gs(i)?String(i).length:1,l=r+s;if(l>t){const c=t-r;return n.push(String(i).slice(0,c)),n}n.push(i),r=l}return e}const Ni=0,Ii=1,Vi=2,Di=3,Ql=4,xo={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Dy(e){const{enableMeasure:t,width:r,text:n,children:o,rows:i,expanded:a,miscDeps:s,onEllipsis:l}=e,c=v.useMemo(()=>qr(n),[n]),u=v.useMemo(()=>Vy(c),[n]),d=v.useMemo(()=>o(c,!1),[n]),[f,g]=v.useState(null),p=v.useRef(null),y=v.useRef(null),h=v.useRef(null),x=v.useRef(null),m=v.useRef(null),[S,R]=v.useState(!1),[b,w]=v.useState(Ni),[C,j]=v.useState(0),[A,M]=v.useState(null);Be(()=>{w(t&&r&&u?Ii:Ni)},[r,n,i,t,c]),Be(()=>{var F,L,I,z;if(b===Ii){w(Vi);const P=y.current&&getComputedStyle(y.current).whiteSpace;M(P)}else if(b===Vi){const P=!!(!((F=h.current)===null||F===void 0)&&F.isExceed());w(P?Di:Ql),g(P?[0,u]:null),R(P);const W=((L=h.current)===null||L===void 0?void 0:L.getHeight())||0,Y=i===1?0:((I=x.current)===null||I===void 0?void 0:I.getHeight())||0,$=((z=m.current)===null||z===void 0?void 0:z.getHeight())||0,T=Math.max(W,Y+$);j(T+1),l(P)}},[b]);const V=f?Math.ceil((f[0]+f[1])/2):0;Be(()=>{var F;const[L,I]=f||[0,0];if(L!==I){const P=(((F=p.current)===null||F===void 0?void 0:F.getHeight())||0)>C;let W=V;I-L===1&&(W=P?L:I),g(P?[L,W]:[W,I])}},[f,V]);const D=v.useMemo(()=>{if(!t)return o(c,!1);if(b!==Di||!f||f[0]!==f[1]){const F=o(c,!1);return[Ql,Ni].includes(b)?F:v.createElement("span",{style:Object.assign(Object.assign({},xo),{WebkitLineClamp:i})},F)}return o(a?c:Xl(c,f[0]),S)},[a,b,f,c].concat(oe(s))),N={width:r,margin:0,padding:0,whiteSpace:A==="nowrap"?"normal":"inherit"};return v.createElement(v.Fragment,null,D,b===Vi&&v.createElement(v.Fragment,null,v.createElement(bo,{style:Object.assign(Object.assign(Object.assign({},N),xo),{WebkitLineClamp:i}),ref:h},d),v.createElement(bo,{style:Object.assign(Object.assign(Object.assign({},N),xo),{WebkitLineClamp:i-1}),ref:x},d),v.createElement(bo,{style:Object.assign(Object.assign(Object.assign({},N),xo),{WebkitLineClamp:1}),ref:m},o([],!0))),b===Di&&f&&f[0]!==f[1]&&v.createElement(bo,{style:Object.assign(Object.assign({},N),{top:400}),ref:p},o(Xl(c,V),!0)),b===Ii&&v.createElement("span",{style:{whiteSpace:"inherit"},ref:y}))}const Nd=({enableEllipsis:e,isEllipsis:t,children:r,tooltipProps:n})=>!n?.title||!e?r:v.createElement(Gn,Object.assign({open:t?void 0:!1},n),r);process.env.NODE_ENV!=="production"&&(Nd.displayName="EllipsisTooltip");var Ly=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Hy({mark:e,code:t,underline:r,delete:n,strong:o,keyboard:i,italic:a},s){let l=s;function c(u,d){d&&(l=v.createElement(u,{},l))}return c("strong",o),c("u",r),c("del",n),c("code",t),c("mark",e),c("kbd",i),c("i",a),l}const zy="...",Zl=["delete","mark","code","underline","strong","keyboard","italic"],By=v.forwardRef((e,t)=>{var r;const{prefixCls:n,className:o,style:i,type:a,disabled:s,children:l,ellipsis:c,editable:u,copyable:d,component:f,title:g}=e,p=Ly(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:y,direction:h}=v.useContext(Ut),[x]=Rh("Text"),m=v.useRef(null),S=v.useRef(null),R=y("typography",n),b=zc(p,Zl),[w,C]=Fi(u),[j,A]=Er(!1,{value:C.editing}),{triggerType:M=["icon"]}=C,V=re=>{var de;re&&((de=C.onStart)===null||de===void 0||de.call(C)),A(re)},D=Oy(j);Be(()=>{var re;!j&&D&&((re=S.current)===null||re===void 0||re.focus())},[j]);const N=re=>{re?.preventDefault(),V(!0)},F=re=>{var de;(de=C.onChange)===null||de===void 0||de.call(C,re),V(!1)},L=()=>{var re;(re=C.onCancel)===null||re===void 0||re.call(C),V(!1)},[I,z]=Fi(d),{copied:P,copyLoading:W,onClick:Y}=$y({copyConfig:z,children:l}),[$,T]=v.useState(!1),[H,B]=v.useState(!1),[q,K]=v.useState(!1),[ne,Z]=v.useState(!1),[te,ie]=v.useState(!0),[ge,ce]=Fi(c,{expandable:!1,symbol:re=>re?x?.collapse:x?.expand}),[ye,U]=Er(ce.defaultExpanded||!1,{value:ce.expanded}),se=ge&&(!ye||ce.expandable==="collapsible"),{rows:J=1}=ce,le=v.useMemo(()=>se&&(ce.suffix!==void 0||ce.onEllipsis||ce.expandable||w||I),[se,ce,w,I]);Be(()=>{ge&&!le&&(T(Ds("webkitLineClamp")),B(Ds("textOverflow")))},[le,ge]);const[pe,ue]=v.useState(se),$e=v.useMemo(()=>le?!1:J===1?H:$,[le,H,$]);Be(()=>{ue($e&&se)},[$e,se]);const be=se&&(pe?ne:q),Ee=se&&J===1&&pe,he=se&&J>1&&pe,Q=(re,de)=>{var Ue;U(de.expanded),(Ue=ce.onExpand)===null||Ue===void 0||Ue.call(ce,re,de)},[Ce,Re]=v.useState(0),Qe=({offsetWidth:re})=>{Re(re)},Ne=re=>{var de;K(re),q!==re&&((de=ce.onEllipsis)===null||de===void 0||de.call(ce,re))};v.useEffect(()=>{const re=m.current;if(ge&&pe&&re){const de=Ny(re);ne!==de&&Z(de)}},[ge,pe,l,he,te,Ce]),v.useEffect(()=>{const re=m.current;if(typeof IntersectionObserver>"u"||!re||!pe||!se)return;const de=new IntersectionObserver(()=>{ie(!!re.offsetParent)});return de.observe(re),()=>{de.disconnect()}},[pe,se]);const Ve=jy(ce.tooltip,C.text,l),tt=v.useMemo(()=>{if(!(!ge||pe))return[C.text,l,g,Ve.title].find(gs)},[ge,pe,g,Ve.title,be]);if(j)return v.createElement(by,{value:(r=C.text)!==null&&r!==void 0?r:typeof l=="string"?l:"",onSave:F,onCancel:L,onEnd:C.onEnd,prefixCls:R,className:o,style:i,direction:h,component:f,maxLength:C.maxLength,autoSize:C.autoSize,enterIcon:C.enterIcon});const Te=()=>{const{expandable:re,symbol:de}=ce;return re?v.createElement("button",{type:"button",key:"expand",className:`${R}-${ye?"collapse":"expand"}`,onClick:Ue=>Q(Ue,{expanded:!ye}),"aria-label":ye?x.collapse:x?.expand},typeof de=="function"?de(ye):de):null},Oe=()=>{if(!w)return;const{icon:re,tooltip:de,tabIndex:Ue}=C,Kt=qr(de)[0]||x?.edit,gr=typeof Kt=="string"?Kt:"";return M.includes("icon")?v.createElement(Gn,{key:"edit",title:de===!1?"":Kt},v.createElement("button",{type:"button",ref:S,className:`${R}-edit`,onClick:N,"aria-label":gr,tabIndex:Ue},re||v.createElement(Tc,{role:"button"}))):null},Se=()=>I?v.createElement(Iy,Object.assign({key:"copy"},z,{prefixCls:R,copied:P,locale:x,onCopy:Y,loading:W,iconOnly:l==null})):null,me=re=>[re&&Te(),Oe(),Se()],De=re=>[re&&!ye&&v.createElement("span",{"aria-hidden":!0,key:"ellipsis"},zy),ce.suffix,me(re)];return v.createElement(tn,{onResize:Qe,disabled:!se},re=>v.createElement(Nd,{tooltipProps:Ve,enableEllipsis:se,isEllipsis:be},v.createElement(Ad,Object.assign({className:ae({[`${R}-${a}`]:a,[`${R}-disabled`]:s,[`${R}-ellipsis`]:ge,[`${R}-ellipsis-single-line`]:Ee,[`${R}-ellipsis-multiple-line`]:he},o),prefixCls:n,style:Object.assign(Object.assign({},i),{WebkitLineClamp:he?J:void 0}),component:f,ref:Ln(re,m,t),direction:h,onClick:M.includes("text")?N:void 0,"aria-label":tt?.toString(),title:g},b),v.createElement(Dy,{enableMeasure:se&&!pe,text:l,rows:J,width:Ce,onEllipsis:Ne,expanded:ye,miscDeps:[P,ye,W,w,I,x].concat(oe(Zl.map(de=>e[de])))},(de,Ue)=>Hy(e,v.createElement(v.Fragment,null,de.length>0&&Ue&&!ye&&tt?v.createElement("span",{key:"show-content","aria-hidden":!0},de):de,De(Ue)))))))}),Wy=v.forwardRef((e,t)=>v.createElement(By,Object.assign({ref:t},e,{component:"div"}))),qy=({reqRows:e,subRows:t})=>{const{searchBoxRef:r}=Ha.useSearchBox();return _.jsxRuntimeExports.jsx(Ba,{ref:r,reqRows:e,subRows:t})},Uy=({children:e,searchBox:t,title:r,preRenderEvents:n=[],postRenderEvents:o=[],requiredPermissions:i=[],loading:a=!1,error:s=null,grantEvent:l={},customEvent:c={}})=>{const u=Ha.useServiceCodeValue("AUTH_BTNS"),{user:d,isLoggedIn:f}=Ot.useUserStore(),{currentProgram:g,activeMenu:p}=ys.useMenuStore(),{isFavorite:y,addFavorite:h,removeFavorite:x}=ys.useFavoriteStore(),[m,S]=E.useState({isInitialized:!1,isReady:!1,error:null,loading:!0,preRenderComplete:!1,postRenderComplete:!1}),[R,b]=E.useState(null),[w,C]=E.useState([]),[j,A]=E.useState([]),M=async()=>{if(n.length===0){S(P=>({...P,preRenderComplete:!0}));return}try{for(const P of n)await P();S(P=>({...P,preRenderComplete:!0}))}catch(P){S(W=>({...W,error:P instanceof Error?P.message:"사전 렌더링 실패",preRenderComplete:!0}))}},V=async()=>{if(o.length===0){S(P=>({...P,postRenderComplete:!0}));return}try{for(const P of o)await P();S(P=>({...P,postRenderComplete:!0}))}catch(P){S(W=>({...W,error:P instanceof Error?P.message:"사후 렌더링 실패",postRenderComplete:!0}))}};E.useEffect(()=>{if(m.isInitialized)return;(async()=>{try{try{console.log("SCMSIGN00202 권한 서비스 호출 시작");const W=await Ot.callService(u,{crprCd:d?.crprCd,userId:d?.userId,menuId:g?.menuId});if(console.log("SCMSIGN00202 권한 서비스 응답:",W),W?.data&&W.data.length>0){const Y=W.data?.filter(T=>T.grpId?.toUpperCase()==="DEFAULT").map(T=>({id:T.btnId,label:T.btnNm,type:"default",disabled:!1,onClick:l[T.btnId]||void 0}))||[];C(Y);const $=W.data?.filter(T=>T.grpId?.toUpperCase()==="CUSTOM").map(T=>({id:T.btnId,label:T.btnNm,type:"default",disabled:!1,onClick:c[T.btnId]||void 0}))||[];A($)}else C([]),A([])}catch(W){console.error("SCMSIGN00202 권한 서비스 호출 실패:",W),C([]),A([])}await M(),S(W=>({...W,isInitialized:!0,loading:!1}))}catch(W){console.error("BwgView 초기화 실패:",W),S(Y=>({...Y,isInitialized:!0,loading:!1}))}})()},[]),E.useEffect(()=>{m.isInitialized&&m.preRenderComplete&&!m.isReady&&setTimeout(async()=>{await V(),S(W=>({...W,isReady:!0}))},100)},[m.isInitialized,m.preRenderComplete,m.isReady]),E.useEffect(()=>{s&&S(P=>({...P,error:s}))},[s]);const D=()=>_.jsxRuntimeExports.jsxs("div",{className:"bwgview-header-container",children:[_.jsxRuntimeExports.jsxs("div",{className:"bwgview-header",children:[_.jsxRuntimeExports.jsx("div",{className:"bwgview-header-left",children:z.LEFT}),_.jsxRuntimeExports.jsx("div",{className:"bwgview-header-right",children:z.RIGHT})]}),t&&_.jsxRuntimeExports.jsx(qy,{reqRows:t.reqArea,subRows:t.subArea})]});if(E.useEffect(()=>{},[d,g]),i.length>0&&!m.isInitialized)return _.jsxRuntimeExports.jsx("div",{style:{padding:"24px",textAlign:"center"},children:_.jsxRuntimeExports.jsx(X.Alert,{message:"접근 권한 없음",description:"이 페이지에 접근할 권한이 없습니다.",type:"error",showIcon:!0})});if(m.loading||a)return _.jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"200px"},children:[_.jsxRuntimeExports.jsx(X.Spin,{size:"large"}),_.jsxRuntimeExports.jsx("p",{style:{marginLeft:"16px"},children:"컴포넌트를 로드하는 중..."})]});if(m.error||s)return _.jsxRuntimeExports.jsx("div",{style:{padding:"24px"},children:_.jsxRuntimeExports.jsx(X.Alert,{message:"오류 발생",description:m.error||s,type:"error",showIcon:!0})});const N=()=>_.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:_.jsxRuntimeExports.jsx("path",{d:"M9.9348 1.4645C10.2382 0.845167 10.7437 0.845167 11.0597 1.4645L13.0694 5.5344C13.3727 6.15374 14.1943 6.74779 14.8768 6.84891L19.3638 7.50616C20.0464 7.60727 20.2107 8.08757 19.7051 8.56787L16.4568 11.7277C15.9638 12.208 15.6478 13.1686 15.7616 13.8512L16.5326 18.3129C16.6464 18.9954 16.2419 19.2988 15.6226 18.9701L11.6159 16.8594C10.9965 16.5307 9.998 16.5307 9.37867 16.8594L5.37196 18.9701C4.75263 19.2988 4.34817 18.9954 4.46192 18.3129L5.23293 13.8512C5.34668 13.1686 5.04334 12.208 4.53776 11.7277L1.28942 8.56787C0.79648 8.08757 0.948154 7.60727 1.63068 7.50616L6.11769 6.84891C6.80022 6.74779 7.62179 6.15374 7.92513 5.5344L9.9348 1.4645Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10"})}),F=()=>_.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:_.jsxRuntimeExports.jsx("path",{d:"M9.9348 1.4645C10.2382 0.845167 10.7437 0.845167 11.0597 1.4645L13.0694 5.5344C13.3727 6.15374 14.1943 6.74779 14.8768 6.84891L19.3638 7.50616C20.0464 7.60727 20.2107 8.08757 19.7051 8.56787L16.4568 11.7277C15.9638 12.208 15.6478 13.1686 15.7616 13.8512L16.5326 18.3129C16.6464 18.9954 16.2419 19.2988 15.6226 18.9701L11.6159 16.8594C10.9965 16.5307 9.998 16.5307 9.37867 16.8594L5.37196 18.9701C4.75263 19.2988 4.34817 18.9954 4.46192 18.3129L5.23293 13.8512C5.34668 13.1686 5.04334 12.208 4.53776 11.7277L1.28942 8.56787C0.79648 8.08757 0.948154 7.60727 1.63068 7.50616L6.11769 6.84891C6.80022 6.74779 7.62178 6.15374 7.92513 5.5344L9.9348 1.4645Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",fill:"none"})}),L=P=>_.jsxRuntimeExports.jsx(ut,{component:N,...P}),I=P=>_.jsxRuntimeExports.jsx(ut,{component:F,...P}),z={LEFT:_.jsxRuntimeExports.jsx("div",{className:"bwgview-header-left",children:_.jsxRuntimeExports.jsxs(X.ConfigProvider,{theme:{components:{Tag:{controlHeight:28,controlHeightLG:28,controlHeightSM:28,controlHeightXS:28}}},children:[_.jsxRuntimeExports.jsxs(X.Space,{children:[g&&(y(g.menuId)?_.jsxRuntimeExports.jsx(L,{className:"bookmark-icon",style:{color:"#faad14"},onClick:async()=>{try{await x(g.menuId,d?.userId||"")}catch{}}}):_.jsxRuntimeExports.jsx(I,{className:"bookmark-icon",onClick:async()=>{try{await h(g,d?.userId||"")}catch{}}})),_.jsxRuntimeExports.jsxs(X.Space.Compact,{style:{alignItems:"center"},children:[_.jsxRuntimeExports.jsx("span",{className:"pageMenuNm",children:(()=>{let P="";return r?.useMenuTitle&&g?P=g.menuNm:r?.text?P=r.text:g&&(P=g.menuPrntId==="CM00"?g.menuNm.substring(g.menuNm.indexOf(" ")+1):g.menuNm),r?.prefix&&(P=`${r.prefix} ${P}`),r?.suffix&&(P=`${P} ${r.suffix}`),P})()}),g?.menuNo&&_.jsxRuntimeExports.jsx(X.Tag,{className:"page-num-tag",children:g?.menuNo}),_.jsxRuntimeExports.jsx(X.Tooltip,{title:"도움말",color:"geekblue",children:_.jsxRuntimeExports.jsx(X.Button,{variant:"text",type:"text",className:"menu-help-btn",icon:_.jsxRuntimeExports.jsx("span",{className:"bwgHelpIcon"})})})]})]}),g?.scrnId&&Ot.isLocal&&_.jsxRuntimeExports.jsx(X.Tag,{style:{marginLeft:8,fontSize:13,fontWeight:500,display:"flex"},children:_.jsxRuntimeExports.jsx(Wy,{copyable:!0,style:{display:"inherit",justifyContent:"center",alignItems:"center",marginBottom:0},children:g?.scrnId})})]})}),RIGHT:_.jsxRuntimeExports.jsx("div",{className:"bwgview-header-right",children:_.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Space:{padding:8}}},children:_.jsxRuntimeExports.jsxs(X.Space,{children:[_.jsxRuntimeExports.jsx(X.Flex,{gap:8,children:j.map(P=>_.jsxRuntimeExports.jsx(X.Button,{type:P.type,disabled:P.disabled,className:"bwg-btn",onClick:()=>{typeof P.onClick=="function"&&P.onClick()},children:P.label},P.id))}),_.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:{components:{Divider:{verticalMarginInline:0}}},children:_.jsxRuntimeExports.jsx(X.Divider,{type:"vertical"})}),_.jsxRuntimeExports.jsx(X.Flex,{gap:8,className:"permission-buttons",children:w.length>0?w.map(P=>_.jsxRuntimeExports.jsx(X.Button,{type:P.type,disabled:P.disabled,className:"bwg-btn",onClick:()=>{typeof P.onClick=="function"&&P.onClick()},children:P.label},P.id)):_.jsxRuntimeExports.jsx(X.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})})]})})})};return _.jsxRuntimeExports.jsxs("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:[D(),_.jsxRuntimeExports.jsx("div",{className:"bwgview-content",children:_.jsxRuntimeExports.jsx(E.Suspense,{fallback:_.jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:[_.jsxRuntimeExports.jsx(X.Spin,{size:"large"}),_.jsxRuntimeExports.jsx("p",{style:{marginLeft:"16px"},children:"컴포넌트를 로드하는 중..."})]}),children:_.jsxRuntimeExports.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:e})})})]})},Id=({title:e,icons:t,tooltip:r,iconVisible:n=!0,children:o})=>{const i=ui.AppstoreTwoTone;return E.useMemo(()=>t?.type==="antd"&&t.icon&&ui[t.icon]||i,[t?.type,t?.icon]),_.jsxRuntimeExports.jsx(X.Flex,{vertical:!0,children:_.jsxRuntimeExports.jsxs("div",{className:"bwg-title-box",children:[_.jsxRuntimeExports.jsx("div",{className:"bwg-title-box-left",children:_.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[_.jsxRuntimeExports.jsx(X.Typography.Title,{level:4,children:_.jsxRuntimeExports.jsx("span",{children:e})}),r&&_.jsxRuntimeExports.jsx(X.Tooltip,{title:r.title,placement:r.placement,children:_.jsxRuntimeExports.jsx(ui.QuestionCircleTwoTone,{style:{marginLeft:5}})})]})}),_.jsxRuntimeExports.jsx("div",{className:"bwg-title-box-right",children:_.jsxRuntimeExports.jsx(X.Flex,{gap:6,children:o})})]})})},Vd=({width:e="100%",height:t="100%",boxAlign:r,display:n="show",overflow:o,style:i,className:a,border:s=!0,children:l,ref:c})=>_.jsxRuntimeExports.jsx("div",{style:{width:e,height:t,display:n==="show"?"":n,overflowX:o?.x,overflowY:o?.y,...i},className:`bwgview-content-box ${r?`content-box-${r}`:""} ${a||""} ${s?"":"none-box-st"}`,ref:c,children:l}),Ko=({type:e="horizontal",layoutAlign:t="left",verticalAlign:r,className:n,style:o,children:i})=>_.jsxRuntimeExports.jsx("div",{style:o,className:`bwgview-content-layout ${e=="horizontal"?"hz-layout":"vt-layout"} layout-${t} ${r&&`vertical-${r}`} ${n||""}`,children:i}),Ky=({rowKey:e="id",columns:t,dataSource:r,loading:n=!1,rowSelection:o,size:i="middle",pagination:a=!1,...s})=>_.jsxRuntimeExports.jsx(X.Table,{rowKey:e,columns:t,dataSource:r,loading:n,rowSelection:o,size:i,pagination:a,bordered:!0,scroll:{x:"max-content"},locale:{emptyText:"데이터가 없습니다."},...s}),Gy=({grpId:e,menuId:t,btnEvent:r,layout:n="horizontal",size:o="middle",style:i,className:a,onButtonClick:s})=>{const l=Ha.useServiceCodeValue("AUTH_BTNS"),{user:c}=Ot.useUserStore(),[u,d]=E.useState([]),[f,g]=E.useState(!0),[p,y]=E.useState(null),[h,x]=E.useState({}),m=async()=>{try{g(!0),y(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",e,t);const b=await Ot.callService(l,{userId:c?.userId,crprCd:c?.crprCd,grpId:e.toUpperCase(),menuId:t});if(console.log("@@ 커스텀버튼그룹 영역 조회결과",b),b?.data&&Array.isArray(b.data)){const w=b.data.sort((C,j)=>C.btnSq-j.btnSq);d(w)}else d([])}catch(b){console.error("버튼 권한 조회 실패:",b),y("버튼 권한을 조회하는 중 오류가 발생했습니다."),d([])}finally{g(!1)}};E.useEffect(()=>{m()},[e,t]);const S=async(b,w)=>{x(C=>({...C,[b]:{loading:!0}}));try{const C=r?.[b];C?await C():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${b}`),s&&s(b,w,e)}catch(C){console.error("버튼 이벤트 실행 실패:",C),X.message.error("작업 중 오류가 발생했습니다.")}finally{x(C=>({...C,[b]:{loading:!1}}))}},R=b=>{const w=h[b.btnId]||{loading:!1};return _.jsxRuntimeExports.jsxs(X.Button,{size:o,loading:w.loading,onClick:()=>S(b.btnId,b.btnNm),className:"bwg-btn",style:{...b.iconVal&&{display:"flex",alignItems:"center",gap:"4px"}},children:[b.iconVal&&_.jsxRuntimeExports.jsx("span",{className:b.iconType==="ANTD"?b.iconVal:"",style:{fontSize:"14px"}}),b.btnNm]},b.btnId)};return f?_.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:i,children:_.jsxRuntimeExports.jsx(X.Space,{direction:n==="vertical"?"vertical":"horizontal",size:o,children:_.jsxRuntimeExports.jsx(X.Button,{loading:!0,size:o,children:"권한 조회 중..."})})}):p?_.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:i,children:_.jsxRuntimeExports.jsx(X.Alert,{message:"권한 오류",description:p,type:"error",showIcon:!0,style:{minHeight:"40px"}})}):u.length===0?_.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:i,children:_.jsxRuntimeExports.jsx(X.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})}):_.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:i,children:_.jsxRuntimeExports.jsx(X.Flex,{gap:3,children:u.map(R)})})};var pn={},Li={exports:{}},Jl;function Go(){return Jl||(Jl=1,(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Li)),Li.exports}var yn={},ec;function Yy(){if(ec)return yn;ec=1,Object.defineProperty(yn,"__esModule",{value:!0}),yn.default=void 0;var e={items_per_page:"/ 페이지",jump_to:"이동하기",jump_to_confirm:"확인하다",page:"페이지",prev_page:"이전 페이지",next_page:"다음 페이지",prev_5:"이전 5 페이지",next_5:"다음 5 페이지",prev_3:"이전 3 페이지",next_3:"다음 3 페이지",page_size:"페이지 크기"};return yn.default=e,yn}var bn={},xn={},Cn={},Hi={exports:{}},zi={exports:{}},Bi={exports:{}},Wi={exports:{}},tc;function Dd(){return tc||(tc=1,(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Wi)),Wi.exports}var qi={exports:{}},rc;function Xy(){return rc||(rc=1,(function(e){var t=Dd().default;function r(n,o){if(t(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var a=i.call(n,o||"default");if(t(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(qi)),qi.exports}var nc;function Qy(){return nc||(nc=1,(function(e){var t=Dd().default,r=Xy();function n(o){var i=r(o,"string");return t(i)=="symbol"?i:i+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Bi)),Bi.exports}var oc;function Zy(){return oc||(oc=1,(function(e){var t=Qy();function r(n,o,i){return(o=t(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(zi)),zi.exports}var ic;function Jy(){return ic||(ic=1,(function(e){var t=Zy();function r(o,i){var a=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);i&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),a.push.apply(a,s)}return a}function n(o){for(var i=1;i<arguments.length;i++){var a=arguments[i]!=null?arguments[i]:{};i%2?r(Object(a),!0).forEach(function(s){t(o,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach(function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(a,s))})}return o}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Hi)),Hi.exports}var wn={},ac;function eb(){return ac||(ac=1,Object.defineProperty(wn,"__esModule",{value:!0}),wn.commonLocale=void 0,wn.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),wn}var sc;function tb(){if(sc)return Cn;sc=1;var e=Go().default;Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.default=void 0;var t=e(Jy()),r=eb(),n=(0,t.default)((0,t.default)({},r.commonLocale),{},{locale:"ko_KR",today:"오늘",now:"현재 시각",backToToday:"오늘로 돌아가기",ok:"확인",clear:"지우기",week:"주",month:"월",year:"년",timeSelect:"시간 선택",dateSelect:"날짜 선택",monthSelect:"달 선택",yearSelect:"연 선택",decadeSelect:"연대 선택",yearFormat:"YYYY년",dateFormat:"YYYY-MM-DD",dateTimeFormat:"YYYY-MM-DD HH:mm:ss",monthBeforeYear:!1,previousMonth:"이전 달 (PageUp)",nextMonth:"다음 달 (PageDown)",previousYear:"이전 해 (Control + left)",nextYear:"다음 해 (Control + right)",previousDecade:"이전 연대",nextDecade:"다음 연대",previousCentury:"이전 세기",nextCentury:"다음 세기"});return Cn.default=n,Cn}var Sn={},lc;function Ld(){if(lc)return Sn;lc=1,Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.default=void 0;const e={placeholder:"시간 선택",rangePlaceholder:["시작 시간","종료 시간"]};return Sn.default=e,Sn}var cc;function Hd(){if(cc)return xn;cc=1;var e=Go().default;Object.defineProperty(xn,"__esModule",{value:!0}),xn.default=void 0;var t=e(tb()),r=e(Ld());const n={lang:Object.assign({placeholder:"날짜 선택",yearPlaceholder:"연도 선택",quarterPlaceholder:"분기 선택",monthPlaceholder:"월 선택",weekPlaceholder:"주 선택",rangePlaceholder:["시작일","종료일"],rangeYearPlaceholder:["시작 연도","종료 연도"],rangeMonthPlaceholder:["시작 월","종료 월"],rangeQuarterPlaceholder:["시작 분기","종료 분기"],rangeWeekPlaceholder:["시작 주","종료 주"],shortWeekDays:["일","월","화","수","목","금","토"],shortMonths:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},t.default),timePickerLocale:Object.assign({},r.default)};return xn.default=n,xn}var uc;function rb(){if(uc)return bn;uc=1;var e=Go().default;Object.defineProperty(bn,"__esModule",{value:!0}),bn.default=void 0;var t=e(Hd());return bn.default=t.default,bn}var dc;function nb(){if(dc)return pn;dc=1;var e=Go().default;Object.defineProperty(pn,"__esModule",{value:!0}),pn.default=void 0;var t=e(Yy()),r=e(rb()),n=e(Hd()),o=e(Ld());const i="${label} 유효하지 않은 ${type}",a={locale:"ko",Pagination:t.default,DatePicker:n.default,TimePicker:o.default,Calendar:r.default,global:{placeholder:"선택하세요",close:"닫기"},Table:{filterTitle:"필터 메뉴",filterConfirm:"확인",filterReset:"초기화",filterEmptyText:"필터 없음",filterCheckAll:"전체 선택",filterSearchPlaceholder:"필터 검색",emptyText:"데이터 없음",selectAll:"전체 선택",selectInvert:"선택 반전",selectNone:"없음",selectionAll:"전체 선택",sortTitle:"정렬",expand:"펼치기",collapse:"접기",triggerDesc:"내림차순으로 정렬하기",triggerAsc:"오름차순으로 정렬하기",cancelSort:"정렬 취소하기"},Tour:{Next:"다음",Previous:"이전",Finish:"종료"},Modal:{okText:"확인",cancelText:"취소",justOkText:"확인"},Popconfirm:{okText:"확인",cancelText:"취소"},Transfer:{titles:["",""],searchPlaceholder:"여기에 검색하세요",itemUnit:"개",itemsUnit:"개",remove:"삭제",selectCurrent:"현재 페이지 선택",removeCurrent:"현재 페이지 삭제",selectAll:"전체 선택",removeAll:"전체 삭제",selectInvert:"선택 반전"},Upload:{uploading:"업로드 중...",removeFile:"파일 삭제",uploadError:"업로드 실패",previewFile:"파일 미리보기",downloadFile:"파일 다운로드"},Empty:{description:"데이터 없음"},Icon:{icon:"아이콘"},Text:{edit:"수정",copy:"복사",copied:"복사 됨",expand:"확장"},Form:{optional:"(선택사항)",defaultValidateMessages:{default:"필드 유효성 검사 오류 ${label}",required:"${label} 값을 입력해 주세요",enum:"${label} [${enum}] 중에 하나여야 합니다",whitespace:"${label} 비워둘 수 없습니다",date:{format:"${label} 유효하지 않은 날짜 형식입니다",parse:"${label} 날짜 형식으로 변환될 수 없습니다",invalid:"${label} 유효하지 않은 날짜입니다"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label} ${len}글자여야 합니다",min:"${label} 적어도 ${min}글자 이상이어야 합니다",max:"${label} ${max}글자 이하여야 합니다",range:"${label} ${min}-${max}글자 사이어야 합니다"},number:{len:"${label} 값은 ${len}이어야 합니다",min:"${label} 최솟값은 ${min}입니다",max:"${label} 최댓값은 ${max}입니다",range:"${label} 값은 ${min}-${max} 사이어야 합니다"},array:{len:"${len}이어야 합니다 ${label}",min:"최소 ${min}이어야 합니다 ${label}",max:"최대 ${max}이어야 합니다 ${label}",range:"${label} ${min}-${max} 사이어야 합니다"},pattern:{mismatch:"${label} ${pattern} 패턴과 일치하지 않습니다"}}},Image:{preview:"미리보기"},QRCode:{expired:"만료된 QR 코드",refresh:"새로고침"},ColorPicker:{presetEmpty:"미정",transparent:"투명",singleColor:"단색",gradientColor:"그라데이션"}};return pn.default=a,pn}var Ui,fc;function ob(){return fc||(fc=1,Ui=nb()),Ui}var ib=ob();const zd=za.getDefaultExportFromCjs(ib),ab=({children:e,customTheme:t,customComponentSize:r="middle",layout:n="comfortable"})=>{const i=(()=>{const s={token:{colorPrimary:"#1890ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1890ff",fontFamily:'"Noto Sans KR", sans-serif',fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",boxShadowSecondary:"0 2px 4px rgba(0, 0, 0, 0.12)"},algorithm:X.theme.defaultAlgorithm};switch(n){case"compact":return{...s,token:{...s.token,padding:8,margin:8,borderRadius:4,fontSize:12,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}};case"spacious":return{...s,token:{...s.token,padding:24,margin:24,borderRadius:8,fontSize:16,fontSizeHeading1:44,fontSizeHeading2:36,fontSizeHeading3:28,fontSizeHeading4:24,fontSizeHeading5:20}};default:return{...s,token:{...s.token,padding:16,margin:16,borderRadius:6,fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}}}})(),a={...i,...t,token:{...i.token,...t?.token}};return _.jsxRuntimeExports.jsx(X.ConfigProvider,{locale:zd,theme:a,componentSize:r,space:{size:r},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},children:e})},sb=({children:e,customTheme:t,customComponentSize:r="middle"})=>{const n={token:{colorPrimary:"#1890ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1890ff",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',fontSize:14,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,padding:16,margin:16,borderRadius:6,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",boxShadowSecondary:"0 2px 4px rgba(0, 0, 0, 0.12)"},algorithm:X.theme.defaultAlgorithm},o={...n,...t,token:{...n.token,...t?.token}};return _.jsxRuntimeExports.jsx(X.ConfigProvider,{locale:zd,theme:o,componentSize:r,space:{size:r},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},children:e})},vc=(e,t)=>{const r=window.innerWidth,n=window.innerHeight,o=Math.min(Math.max(e.x,0),Math.max(0,r-t.width)),i=Math.min(Math.max(e.y,0),Math.max(0,n-t.height));return{x:o,y:i}},lb=({buttons:e,popupData:t,onButtonClick:r})=>!e||e.length===0?null:_.jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:"6px"},children:e.map(n=>_.jsxRuntimeExports.jsx(X.Button,{type:n.type||"default",danger:n.danger,disabled:n.disabled,onClick:()=>r?.(n.key,t),className:"bwg-btn popup-btn",children:n.text},n.key))}),cb=({popupEvent:e,popupId:t,children:r})=>_.jsxRuntimeExports.jsx("div",{style:{padding:"8px",minWidth:"200px"},children:_.jsxRuntimeExports.jsx("div",{style:{fontSize:"12px",color:"#666"},children:"마우스로 드래그하여 크기 조정이 가능합니다."})}),ub=({popup:e,popupEvent:t,onClose:r,children:n})=>{E.useRef(null);const o=e?.popupId||"",i=e?.popupTitle||"팝업",a=e?.width||800,s=e?.height||600,l=e?.buttonList?.map((b,w)=>({key:b.btnId||`btn_${w}`,text:b.btnNm,type:b.btnId==="CLOSE"?"default":"primary",disabled:b.enblYn!=="Y",danger:!1}))||[],u=l.some(b=>b.key==="CLOSE"||b.key==="close")?l:[...l,{key:"CLOSE",text:"닫기",type:"default",disabled:!1,danger:!1}],[d,f]=E.useState(a),[g,p]=E.useState(s),y=()=>{const b=Math.max(0,(window.innerWidth-a)/2),w=Math.max(0,(window.innerHeight-s)/2);return{x:b,y:w}},[h,x]=E.useState(y),m=(b,w)=>{if(b==="CLOSE"||b==="close"){e?.close?.()||r?.();return}t&&t[b]?t[b]():e?.close?.()||r?.()},S=(b,w)=>{const C=vc({x:w.x,y:w.y},{width:d,height:g});x(C)},R=(b,w,C,j,A)=>{const M={width:parseInt(C.style.width,10),height:parseInt(C.style.height,10)},V=vc(A,M);f(M.width),p(M.height),x(V)};return _.jsxRuntimeExports.jsxs("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:9999},children:[_.jsxRuntimeExports.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.3)",pointerEvents:"auto"},onClick:r}),_.jsxRuntimeExports.jsx(Bd.Rnd,{className:"bwg-popup",size:{width:d,height:g},position:h,bounds:"window",minWidth:400,minHeight:300,onDragStop:S,onResizeStop:R,dragHandleClassName:"drag-handle",cancel:".rnd-cancel",enableUserSelectHack:!1,style:{backgroundColor:"white",borderRadius:"20px",boxShadow:"0 4px 15px rgba(0, 0, 0, 0.25)",overflow:"hidden"},children:_.jsxRuntimeExports.jsx(Ko,{type:"vertical",children:_.jsxRuntimeExports.jsx(X.Card,{className:"popup-drag-container",title:_.jsxRuntimeExports.jsxs("div",{className:"drag-handle",style:{display:"flex",alignItems:"center"},children:[i,_.jsxRuntimeExports.jsx(X.Popover,{content:_.jsxRuntimeExports.jsx(cb,{popupEvent:t,popupId:o,children:n}),trigger:"click",placement:"bottomLeft",children:_.jsxRuntimeExports.jsx(X.Button,{type:"text",icon:_.jsxRuntimeExports.jsx(ut.SettingOutlined,{})})})]}),style:{width:"100%",height:"100%"},styles:{body:{height:"calc(100% - 77px)",padding:"20px",overflow:"auto"}},extra:_.jsxRuntimeExports.jsx(lb,{buttons:u,popupData:e,onButtonClick:m}),children:_.jsxRuntimeExports.jsx("div",{className:"rnd-cancel",children:n})})})})]})},db=E.memo(({title:e,border:t,children:r})=>{const n=E.useMemo(()=>({components:{Form:{labelColor:"#9A9A9A"},Select:{colorTextDisabled:"#000"}}}),[]);return _.jsxRuntimeExports.jsxs(Ko,{type:"vertical",children:[_.jsxRuntimeExports.jsx(Id,{title:e,icons:{type:"antd",icon:"InfoCircleTwoTone"}}),_.jsxRuntimeExports.jsx(Vd,{border:!1,children:_.jsxRuntimeExports.jsx(X.ConfigProvider,{theme:n,children:r})})]})}),fb=({children:e,showSearchBox:t,showCloseButton:r=!0,showEyesButton:n=!0,shotSettingButton:o=!0,styles:i,...a})=>{const[s,l]=E.useState(!0),[c,u]=E.useState(()=>{const x=a.placement;return x==="left"||x==="right"||x==="top"||x==="bottom"?x:"bottom"}),[d,f]=E.useState(!1),p=(x=>{const m={wrapper:{...a.width&&{width:a.width},...a.height&&{height:a.height},margin:"0 auto"},content:{},header:{backgroundColor:"var(--drawer-header-bg)",color:"var(--text-primary)"}};switch(x){case"bottom":return{...m,wrapper:{...m.wrapper,borderRadius:"30px 30px 0 0"},content:{borderRadius:"30px 30px 0 0"},header:{...m.header,borderRadius:"30px 30px 0 0"}};case"top":return{...m,wrapper:{...m.wrapper,borderRadius:"0 0 30px 30px"},content:{borderRadius:"0 0 30px 30px"},header:{...m.header}};case"left":return{...m,wrapper:{...m.wrapper,borderRadius:"0 30px 0px 0"},content:{borderRadius:"0 30px 0px 0"},header:{...m.header,borderRadius:"0 30px 0 0"}};case"right":return{...m,wrapper:{...m.wrapper,borderRadius:"30px 0 0 0"},content:{borderRadius:"30px 0 0 0"},header:{...m.header,borderRadius:"30px 0 0 0"}};default:return m}})(c),y={wrapper:{...p?.wrapper,...i?.wrapper},content:{...p?.content,...i?.content},header:{...p?.header,...i?.header}},h=()=>{const x=[];if(o){const m=[{key:"top",label:"상단",icon:_.jsxRuntimeExports.jsx(ut.CaretUpOutlined,{})},{key:"right",label:"우측",icon:_.jsxRuntimeExports.jsx(ut.CaretRightOutlined,{})},{key:"bottom",label:"하단",icon:_.jsxRuntimeExports.jsx(ut.CaretDownOutlined,{})},{key:"left",label:"좌측",icon:_.jsxRuntimeExports.jsx(ut.CaretLeftOutlined,{})}],S=_.jsxRuntimeExports.jsx(X.Space.Compact,{children:m.map(R=>_.jsxRuntimeExports.jsx(X.Button,{type:c===R.key?"primary":"default",size:"small",onClick:()=>{u(R.key),f(!1)},icon:R.icon},R.key))});x.push(_.jsxRuntimeExports.jsx(X.Popover,{content:S,trigger:"click",placement:"left",open:d,onOpenChange:f,children:_.jsxRuntimeExports.jsx(X.Tooltip,{placement:"bottom",title:"위치변경",zIndex:2100,children:_.jsxRuntimeExports.jsx(X.Button,{icon:_.jsxRuntimeExports.jsx(ut.SettingOutlined,{}),type:"text",size:"middle"})})},"shotSetting"))}return n&&x.push(_.jsxRuntimeExports.jsx(X.Tooltip,{placement:"bottom",title:s?"배경 보기":"배경 숨기기",zIndex:2100,children:_.jsxRuntimeExports.jsx(X.Button,{icon:_.jsxRuntimeExports.jsx(ut.EyeOutlined,{}),type:"text",size:"middle",onClick:()=>l(!s)})},"eyes")),a.extra&&x.push(_.jsxRuntimeExports.jsx("div",{style:{margin:"0 8px"},children:a.extra},"extra")),r&&x.push(_.jsxRuntimeExports.jsx(X.Tooltip,{placement:"bottom",title:"닫기",zIndex:2100,children:_.jsxRuntimeExports.jsx(X.Button,{icon:_.jsxRuntimeExports.jsx(ut.CloseOutlined,{}),onClick:a.onClose,type:"text",size:"middle"})},"close")),x};return _.jsxRuntimeExports.jsx(X.Drawer,{className:"main-drawer",footer:!0,...a,placement:c,styles:y,maskClosable:!1,closable:!1,mask:s,extra:_.jsxRuntimeExports.jsx(X.Space,{size:"small",align:"center",children:h()}),afterOpenChange:x=>{x||(l(!0),u(a.placement)),a.afterOpenChange?.(x)},destroyOnHidden:!0,children:t?_.jsxRuntimeExports.jsxs(Ko,{type:"vertical",children:[_.jsxRuntimeExports.jsxs(X.Flex,{justify:"space-between",align:"center",style:{width:"100%"},children:[_.jsxRuntimeExports.jsx("div",{children:t.title}),_.jsxRuntimeExports.jsx(X.Flex,{gap:2,children:t.extra})]}),_.jsxRuntimeExports.jsx(Ba,{...t.searchBox}),_.jsxRuntimeExports.jsx(X.Divider,{}),e]}):e})},vb=e=>{const{type:t="card",animated:r=!0,...n}=e;return _.jsxRuntimeExports.jsx(X.Tabs,{type:t,animated:r,...n})},hb="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_9273)'%3e%3cpath%20d='M25.9254%2020.8996C27.5151%2020.8996%2028.8039%2019.6108%2028.8039%2018.0211C28.8039%2016.4313%2027.5151%2015.1426%2025.9254%2015.1426C24.3356%2015.1426%2023.0469%2016.4313%2023.0469%2018.0211C23.0469%2019.6108%2024.3356%2020.8996%2025.9254%2020.8996Z'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M31.4825%2032.4711V25.9066C31.4825%2024.5671%2030.485%2023.4746%2029.2595%2023.4746H22.6C21.3745%2023.4746%2020.377%2024.5671%2020.377%2025.9066'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M25.2696%2026.7334H14.2686L16.5106%2032.6234H27.5021L25.2696%2026.7334Z'%20stroke='%23925CFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.5617%2018.8385C6.1462%2017.4135%205.2627%2015.447%205.2627%2013.2715C5.2627%208.91095%208.7967%205.37695%2013.1572%205.37695C17.5177%205.37695%2021.0517%208.91095%2021.0517%2013.2715C21.0517%2015.124%2020.4152%2016.815%2019.3512%2018.164C18.0497%2019.8075%2016.1117%2020.919%2013.9172%2021.128'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.1572%2013.2715L16.0167%2015.5705'%20stroke='%23925CFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.1572%208.62598V13.2715'%20stroke='%23925CFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.35963%2016.1973L7.84663%2019.1328L4.91113%2018.6293'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.91113%2032.623H33.0881'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_127_9273'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",gb="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_9289)'%3e%3cpath%20d='M27.3705%2010.9919C28.5405%2010.9919%2029.489%2010.0434%2029.489%208.87338C29.489%207.70337%2028.5405%206.75488%2027.3705%206.75488C26.2004%206.75488%2025.252%207.70337%2025.252%208.87338C25.252%2010.0434%2026.2004%2010.9919%2027.3705%2010.9919Z'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M30.3053%2017.2998V32.3098H24.4248V17.2998'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M27.3701%2032.31V23.3135'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M22.2305%2022.1925V17.642V15.6945C22.2305%2014.3075%2023.3515%2013.1865%2024.7385%2013.1865H29.9825C31.3695%2013.1865%2032.4905%2014.3075%2032.4905%2015.6945V17.642V22.1925'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.2519%2021.4229H18.6199C19.1044%2021.4229%2019.5034%2021.8219%2019.5034%2022.3064V24.4154H16.3779V22.3064C16.3779%2021.8219%2016.7769%2021.4229%2017.2614%2021.4229H17.2519Z'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M20.8339%2024.4062H15.0294C14.6254%2024.4062%2014.2979%2024.7338%2014.2979%2025.1377V31.6832C14.2979%2032.0872%2014.6254%2032.4147%2015.0294%2032.4147H20.8339C21.2378%2032.4147%2021.5654%2032.0872%2021.5654%2031.6832V25.1377C21.5654%2024.7338%2021.2378%2024.4062%2020.8339%2024.4062Z'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M16.8252%2027.1895V29.631'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.0391%2027.1895V29.631'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.71875%2014.1642H8.53075C9.03425%2014.1642%209.49025%2013.8602%209.68025%2013.4042L10.3263%2011.8652'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.4991%205.54803L12.2266%2011.8655H17.5371L19.8836%205.51953L17.4991%205.54803Z'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M22.2017%2016.4639H6.57421C5.97571%2016.4639%205.49121%2015.9794%205.49121%2015.3809C5.49121%2013.4334%207.06821%2011.8564%209.01571%2011.8564H20.3492'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.56738%2032.4805H32.2909'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_127_9289'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",mb="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_9314)'%3e%3cpath%20d='M15.1807%2019.3994L18.7717%2029.7164'%20stroke='%23FF8CC3'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9033%209.25293L12.6063%2011.2574C12.6063%2011.2574%2010.7443%2014.7724%2013.2618%2022.0209'%20stroke='%23FF8CC4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9033%209.25293L12.6063%2011.2574C12.6063%2011.2574%2016.2448%2012.8534%2018.7718%2020.1019'%20stroke='%23FF8CC4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.8257%2016.71C22.2202%2012.112%2017.1947%209.67999%2012.5967%2011.276C7.99871%2012.8815%205.56671%2017.907%207.16271%2022.505L7.67571%2023.968L7.88471%2023.892C7.93221%2022.7235%208.67321%2021.6405%209.85121%2021.232C11.0292%2020.8235%2012.2737%2021.2035%2013.0432%2022.0965L13.4422%2021.954C13.4897%2020.7855%2014.2307%2019.7025%2015.4087%2019.294C16.5867%2018.8855%2017.8312%2019.2655%2018.6007%2020.1585L18.9997%2020.016C19.0472%2018.8475%2019.7882%2017.7645%2020.9662%2017.356C22.1442%2016.9475%2023.3887%2017.3275%2024.1582%2018.2205L24.3577%2018.154L23.8447%2016.691L23.8257%2016.71Z'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.37%2015.4193C23.636%2015.4858%2023.9115%2015.5238%2024.1965%2015.5238C26.068%2015.5238%2027.5785%2014.0038%2027.5785%2012.1418C27.5785%2010.2798%2026.0585%208.75977%2024.1965%208.75977C22.3345%208.75977%2020.8145%2010.2798%2020.8145%2012.1418'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M24.2061%206.12784V5.00684'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.8641%207.79018L19.1611%207.09668'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M28.5381%2016.4736L29.2411%2017.1766'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M30.21%2012.1318H31.331'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M28.5469%207.79018L29.2404%207.09668'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M29.3355%2029.8213H14.2305'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.2302%2029.8213L10.3447%2025.2803'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8527%2028.4531L7.76074%2032.9941'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.8447%2029.8213L27.4072%2032.9943'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_127_9314'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",pb=({children:e})=>{const[t,r]=E.useState({x:0,y:0}),[n,o]=E.useState(!1),[i,a]=E.useState({x:0,y:0}),[s,l]=E.useState(!1),[c,u]=E.useState(!0),d=E.useRef(null),f=[{id:"overtime",title:"시간 외 근무신청",icon:_.jsxRuntimeExports.jsx("img",{src:hb,alt:"시간외근무신청",className:"quick-overtime"}),color:"#722ed1",onClick:()=>{console.log("시간 외 근무 신청 클릭")}},{id:"business-trip",title:"출장신청",icon:_.jsxRuntimeExports.jsx("img",{src:gb,alt:"출장신청",className:"quick-business-trip"}),color:"#1890ff",onClick:()=>{console.log("출장 신청 클릭")}},{id:"vacation",title:"휴가신청",icon:_.jsxRuntimeExports.jsx("img",{src:mb,alt:"휴가신청",className:"quick-holiday"}),color:"#eb2f96",onClick:()=>{console.log("휴가 신청 클릭")}},{id:"document",title:"문서신청",icon:_.jsxRuntimeExports.jsx(ut.FileTextOutlined,{}),color:"#52c41a",onClick:()=>{console.log("문서 신청 클릭")}},{id:"profile",title:"인사정보",icon:_.jsxRuntimeExports.jsx(ut.UserOutlined,{}),color:"#fa8c16",onClick:()=>{console.log("인사 정보 클릭")}},{id:"settings",title:"설정",icon:_.jsxRuntimeExports.jsx(ut.SettingOutlined,{}),color:"#13c2c2",onClick:()=>{console.log("설정 클릭")}}];E.useEffect(()=>{const m=()=>{const S=window.innerHeight,b=Math.max(64,(S-300)/3);r({x:0,y:b});const w=S/2;u(b<w)};return m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[]);const g=m=>{if(m.preventDefault(),m.stopPropagation(),d.current){const S=d.current.getBoundingClientRect();a({x:m.clientX-S.left,y:m.clientY-S.top}),o(!0)}},p=m=>{if(n){const S=m.clientY-i.y,R=window.innerHeight-24,w=Math.max(64,Math.min(R,S));r({x:t.x,y:w});const C=window.innerHeight/2;u(w<C)}},y=()=>{o(!1)},h=()=>{l(!s)},x=m=>{m.onClick&&m.onClick()};return E.useEffect(()=>{if(n)return document.addEventListener("mousemove",p),document.addEventListener("mouseup",y),()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",y)}},[n,i]),_.jsxRuntimeExports.jsxs("div",{className:"quick-tab-container",ref:d,style:{position:"fixed",right:0,top:t.y,zIndex:1e3,userSelect:"none",touchAction:"none"},children:[_.jsxRuntimeExports.jsxs("div",{className:"quick-tab",style:{position:"absolute",right:"40px",top:c?0:"auto",bottom:c?"auto":0,display:"flex",flexDirection:"column",gap:"15px",backgroundColor:"#6449FC",border:"1px solid #E0DEEF",borderRadius:"15px",padding:"8px",boxShadow:"0 0 10px rgba(0, 0, 0, 0.3)",minWidth:"88px",maxWidth:"88px",maxHeight:c?`calc(100vh - ${t.y+12}px)`:`${t.y-12}px`,transform:s?"translateX(0)":"translateX(calc(100% + 100px))",transition:"transform 0.3s ease",marginTop:c&&t.y<100?"32px":"0",marginBottom:!c&&t.y>window.innerHeight-100?"8px":"0"},children:[_.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-wrap",style:{background:"#ffffff",borderRadius:"10px",flex:1,overflowY:"auto",maxHeight:c?`calc(100vh - ${t.y+120}px)`:`${t.y-60}px`,padding:"14px 0"},children:f.map(m=>_.jsxRuntimeExports.jsx(X.Card,{className:"quick-tab-items",size:"small",style:{border:"none",boxShadow:"none",marginBottom:"15px",cursor:"pointer",transition:"all 0.2s ease"},bodyStyle:{padding:"0"},onClick:()=>x(m),onMouseEnter:S=>{},onMouseLeave:S=>{},children:_.jsxRuntimeExports.jsxs("div",{className:"quick-tab-item-inner",children:[_.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-icon",style:{width:"44px",height:"44px",borderRadius:"8PX",fontSize:"24px",color:m.color,marginBottom:"5px"},children:m.icon}),_.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-title",children:m.title})]})},m.id))}),_.jsxRuntimeExports.jsx("div",{className:"quick-tab-add-btn",style:{height:"30px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease",flexShrink:0,marginBottom:"7px"},onMouseEnter:m=>{},onMouseLeave:m=>{},children:_.jsxRuntimeExports.jsx(ut.PlusOutlined,{style:{color:"#CDC4FF",fontSize:"15px"}})})]}),_.jsxRuntimeExports.jsx("div",{className:"quick-tab-drag-btn",style:{cursor:n?"grabbing":"grab",zIndex:1001},onMouseDown:g}),_.jsxRuntimeExports.jsx(X.Button,{className:`quick-tab-toggle-btn ${s?"expanded":""}`,type:"default",style:{border:"0",backgroundColor:"transparent"},onClick:h})]})};exports.BwgButtonGroup=Gy;exports.BwgCmptArea=Ki;exports.BwgConfigProvider=ab;exports.BwgDrawer=fb;exports.BwgGrid=Zd;exports.BwgInfoArea=db;exports.BwgPopup=ub;exports.BwgTable=Ky;exports.BwgTabs=vb;exports.BwgTitleBox=Id;exports.BwgView=Uy;exports.ContentBox=Vd;exports.ContentLayOut=Ko;exports.GlobalConfigProvider=sb;exports.QuickServiceToggle=pb;exports.SearchBox=Ba;exports.createBwgGridRenderer=Jd;