@cyberskill/cyber-editor 3.8.4 → 3.8.6

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 (43) hide show
  1. package/dist/cyber-editor.cjs.js +2 -2
  2. package/dist/cyber-editor.css +1 -1
  3. package/dist/cyber-editor.es.js +2 -2
  4. package/dist/index.d.ts +3 -0
  5. package/dist/modules/accordion/accordion-extension.d.ts +2 -0
  6. package/dist/modules/accordion/accordion-extension.type.d.ts +11 -0
  7. package/dist/modules/accordion/accordion-view.component.d.ts +2 -0
  8. package/dist/modules/accordion/accordion-view.type.d.ts +5 -0
  9. package/dist/modules/accordion/index.d.ts +4 -0
  10. package/dist/modules/color-picker/color-picker.component.d.ts +2 -0
  11. package/dist/modules/color-picker/color-picker.type.d.ts +4 -0
  12. package/dist/modules/color-picker/index.d.ts +2 -0
  13. package/dist/modules/heading/heading.component.d.ts +2 -0
  14. package/dist/modules/heading/heading.type.d.ts +4 -0
  15. package/dist/modules/heading/index.d.ts +2 -0
  16. package/dist/modules/image/image-view.component.d.ts +2 -0
  17. package/dist/modules/image/image-view.type.d.ts +4 -0
  18. package/dist/modules/image/image.d.ts +2 -0
  19. package/dist/modules/image/image.type.d.ts +12 -0
  20. package/dist/modules/image/index.d.ts +4 -0
  21. package/dist/modules/index.d.ts +6 -0
  22. package/dist/modules/table/index.d.ts +2 -0
  23. package/dist/modules/table/table.component.d.ts +2 -0
  24. package/dist/modules/table/table.type.d.ts +6 -0
  25. package/dist/modules/toolbar/custom.d.ts +1 -0
  26. package/dist/modules/toolbar/index.d.ts +1 -0
  27. package/dist/root.d.ts +1 -0
  28. package/dist/shared/components/color-picker/color-picker.component.d.ts +2 -0
  29. package/dist/shared/components/color-picker/color-picker.type.d.ts +5 -0
  30. package/dist/shared/components/color-picker/index.d.ts +2 -0
  31. package/dist/shared/components/index.d.ts +2 -0
  32. package/dist/shared/components/modal-edit/index.d.ts +2 -0
  33. package/dist/shared/components/modal-edit/modal-edit.component.d.ts +2 -0
  34. package/dist/shared/components/modal-edit/modal-edit.type.d.ts +6 -0
  35. package/dist/shared/configs/env.d.ts +2 -0
  36. package/dist/shared/constants/alias.d.ts +4 -0
  37. package/dist/shared/constants/index.d.ts +1 -0
  38. package/dist/shared/providers/editor.d.ts +3 -0
  39. package/dist/shared/providers/index.d.ts +1 -0
  40. package/dist/shared/typescript/index.d.ts +8 -0
  41. package/dist/shared/utils/extensions.d.ts +1 -0
  42. package/dist/shared/utils/index.d.ts +1 -0
  43. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),_r=require("react-dom");function $0(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const h=$0(N),M0=$0(_r),eE={"cyber-editor":"_cyber-editor_q6ohd_1"};var Js=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tE(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Qs={exports:{}},Zs={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),_r=require("react-dom");function $0(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const h=$0(N),M0=$0(_r),eE={"cyber-editor":"_cyber-editor_1liko_1"};var Js=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tE(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Qs={exports:{}},Zs={};/**
2
2
  * @license React
3
3
  * react-jsx-dev-runtime.production.js
4
4
  *
@@ -367,7 +367,7 @@ html body {
367
367
  ${e}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${e}-confirm-body`]:{marginBottom:"auto"}}}]},q_=t=>{const{componentCls:e}=t;return{[`${e}-root`]:{[`${e}-wrap-rtl`]:{direction:"rtl",[`${e}-confirm-body`]:{direction:"rtl"}}}}},K_=t=>{const{componentCls:e}=t,n=Ax(t);delete n.xs;const r=Object.keys(n).map(o=>({[`@media (min-width: ${se(n[o])})`]:{width:`var(--${e.replace(".","")}-${o}-width)`}}));return{[`${e}-root`]:{[e]:[{width:`var(--${e.replace(".","")}-xs-width)`}].concat(Pe(r))}}},kx=t=>{const e=t.padding,n=t.fontSizeHeading5,r=t.lineHeightHeading5;return Lt(t,{modalHeaderHeight:t.calc(t.calc(r).mul(n).equal()).add(t.calc(e).mul(2).equal()).equal(),modalFooterBorderColorSplit:t.colorSplit,modalFooterBorderStyle:t.lineType,modalFooterBorderWidth:t.lineWidth,modalCloseIconColor:t.colorIcon,modalCloseIconHoverColor:t.colorIconHover,modalCloseBtnSize:t.controlHeight,modalConfirmIconSize:t.fontHeight,modalTitleHeight:t.calc(t.titleFontSize).mul(t.titleLineHeight).equal()})},Dx=t=>({footerBg:"transparent",headerBg:t.colorBgElevated,titleLineHeight:t.lineHeightHeading5,titleFontSize:t.fontSizeHeading5,contentBg:t.colorBgElevated,titleColor:t.colorTextHeading,contentPadding:t.wireframe?0:`${se(t.paddingMD)} ${se(t.paddingContentHorizontalLG)}`,headerPadding:t.wireframe?`${se(t.padding)} ${se(t.paddingLG)}`:0,headerBorderBottom:t.wireframe?`${se(t.lineWidth)} ${t.lineType} ${t.colorSplit}`:"none",headerMarginBottom:t.wireframe?0:t.marginXS,bodyPadding:t.wireframe?t.paddingLG:0,footerPadding:t.wireframe?`${se(t.paddingXS)} ${se(t.padding)}`:0,footerBorderTop:t.wireframe?`${se(t.lineWidth)} ${t.lineType} ${t.colorSplit}`:"none",footerBorderRadius:t.wireframe?`0 0 ${se(t.borderRadiusLG)} ${se(t.borderRadiusLG)}`:0,footerMarginTop:t.wireframe?0:t.marginSM,confirmBodyPadding:t.wireframe?`${se(t.padding*2)} ${se(t.padding*2)} ${se(t.paddingLG)}`:0,confirmIconMarginInlineEnd:t.wireframe?t.margin:t.marginSM,confirmBtnsMarginTop:t.wireframe?t.marginLG:t.marginSM}),_x=hn("Modal",t=>{const e=kx(t);return[W_(e),q_(e),H_(e),Ds(e,"zoom"),K_(e)]},Dx,{unitless:{titleLineHeight:!0}});var U_=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};let th;const G_=t=>{th={x:t.pageX,y:t.pageY},setTimeout(()=>{th=null},100)};p_()&&document.documentElement.addEventListener("click",G_,!0);const Bx=t=>{var e;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=h.useContext(At),a=Q=>{const{onCancel:ue}=t;ue==null||ue(Q)},s=Q=>{const{onOk:ue}=t;ue==null||ue(Q)};if(process.env.NODE_ENV!=="production"){const Q=on("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(ue=>{let[Y,fe]=ue;Q.deprecated(!(Y in t),Y,fe)})}const{prefixCls:l,className:c,rootClassName:u,open:d,wrapClassName:f,centered:p,getContainer:m,focusTriggerAfterClose:v=!0,style:g,visible:y,width:b=520,footer:C,classNames:x,styles:S,children:w,loading:E}=t,M=U_(t,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),$=r("modal",l),R=r(),I=xo($),[D,_,A]=_x($,I),z=re(f,{[`${$}-centered`]:p??(i==null?void 0:i.centered),[`${$}-wrap-rtl`]:o==="rtl"}),k=C!==null&&!E?h.createElement(Px,Object.assign({},t,{onOk:s,onCancel:a})):null,[P,B,F]=h_(Lv(t),Lv(i),{closable:!0,closeIcon:h.createElement(Ts,{className:`${$}-close-icon`}),closeIconRender:Q=>Tx($,Q)}),H=__(`.${$}-content`),[L,G]=As("Modal",M.zIndex),[J,V]=h.useMemo(()=>b&&typeof b=="object"?[void 0,b]:[b,void 0],[b]),X=h.useMemo(()=>{const Q={};return V&&Object.keys(V).forEach(ue=>{const Y=V[ue];Y!==void 0&&(Q[`--${$}-${ue}-width`]=typeof Y=="number"?`${Y}px`:Y)}),Q},[V]);return D(h.createElement(Ko,{form:!0,space:!0},h.createElement(Ps.Provider,{value:G},h.createElement(wx,Object.assign({width:J},M,{zIndex:L,getContainer:m===void 0?n:m,prefixCls:$,rootClassName:re(_,u,A,I),footer:k,visible:d??y,mousePosition:(e=M.mousePosition)!==null&&e!==void 0?e:th,onClose:a,closable:P&&{disabled:F,closeIcon:B},closeIcon:B,focusTriggerAfterClose:v,transitionName:$i(R,"zoom",t.transitionName),maskTransitionName:$i(R,"fade",t.maskTransitionName),className:re(_,c,i==null?void 0:i.className),style:Object.assign(Object.assign(Object.assign({},i==null?void 0:i.style),g),X),classNames:Object.assign(Object.assign(Object.assign({},i==null?void 0:i.classNames),x),{wrapper:re(z,x==null?void 0:x.wrapper)}),styles:Object.assign(Object.assign({},i==null?void 0:i.styles),S),panelRef:H}),E?h.createElement(Di,{active:!0,title:!1,paragraph:{rows:4},className:`${$}-body-skeleton`}):w))))},X_=t=>{const{componentCls:e,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=t,u=`${e}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${t.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},fc()),[`&${e} ${e}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:t.confirmIconMarginInlineEnd,marginTop:t.calc(t.calc(l).sub(o).equal()).div(2).equal()},[`&-has-title > ${t.iconCls}`]:{marginTop:t.calc(t.calc(s).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:t.marginXS,maxWidth:`calc(100% - ${se(t.marginSM)})`},[`${t.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${se(t.calc(t.modalConfirmIconSize).add(t.marginSM).equal())})`},[`${u}-title`]:{color:t.colorTextHeading,fontWeight:t.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:t.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:t.confirmBtnsMarginTop,[`${t.antCls}-btn + ${t.antCls}-btn`]:{marginBottom:0,marginInlineStart:t.marginXS}}},[`${u}-error ${u}-body > ${t.iconCls}`]:{color:t.colorError},[`${u}-warning ${u}-body > ${t.iconCls},
368
368
  ${u}-confirm ${u}-body > ${t.iconCls}`]:{color:t.colorWarning},[`${u}-info ${u}-body > ${t.iconCls}`]:{color:t.colorInfo},[`${u}-success ${u}-body > ${t.iconCls}`]:{color:t.colorSuccess}}},Y_=wS(["Modal","confirm"],t=>{const e=kx(t);return[X_(e)]},Dx,{order:-1e3});var J_=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};function jx(t){const{prefixCls:e,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:s,footer:l,locale:c}=t,u=J_(t,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if(process.env.NODE_ENV!=="production"){const E=on("Modal");process.env.NODE_ENV!=="production"&&E(!(typeof n=="string"&&n.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${n}\` at https://ant.design/components/icon`)}let d=n;if(!n&&n!==null)switch(a){case"info":d=h.createElement(WS,null);break;case"success":d=h.createElement(FS,null);break;case"error":d=h.createElement(Xc,null);break;default:d=h.createElement(HS,null)}const f=s??a==="confirm",p=t.autoFocusButton===null?!1:t.autoFocusButton||"ok",[m]=So("Modal"),v=c||m,g=r||(f?v==null?void 0:v.okText:v==null?void 0:v.justOkText),y=o||(v==null?void 0:v.cancelText),b=Object.assign({autoFocusButton:p,cancelTextLocale:y,okTextLocale:g,mergedOkCancel:f},u),C=h.useMemo(()=>b,Pe(Object.values(b))),x=h.createElement(h.Fragment,null,h.createElement(Sv,null),h.createElement(xv,null)),S=t.title!==void 0&&t.title!==null,w=`${i}-body`;return h.createElement("div",{className:`${i}-body-wrapper`},h.createElement("div",{className:re(w,{[`${w}-has-title`]:S})},d,h.createElement("div",{className:`${i}-paragraph`},S&&h.createElement("span",{className:`${i}-title`},t.title),h.createElement("div",{className:`${i}-content`},t.content))),l===void 0||typeof l=="function"?h.createElement(yx,{value:C},h.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(x,{OkBtn:xv,CancelBtn:Sv}):x)):l,h.createElement(Y_,{prefixCls:e}))}const zx=t=>{const{close:e,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:a,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:u,styles:d}=t;if(process.env.NODE_ENV!=="production"){const x=on("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(S=>{let[w,E]=S;x.deprecated(!(w in t),w,E)})}const f=`${i}-confirm`,p=t.width||416,m=t.style||{},v=t.mask===void 0?!0:t.mask,g=t.maskClosable===void 0?!1:t.maskClosable,y=re(f,`${f}-${t.type}`,{[`${f}-rtl`]:o==="rtl"},t.className),[,b]=ar(),C=h.useMemo(()=>n!==void 0?n:b.zIndexPopupBase+KS,[n,b]);return h.createElement(Bx,Object.assign({},t,{className:y,wrapClassName:re({[`${f}-centered`]:!!t.centered},a),onCancel:()=>{e==null||e({triggerCancel:!0}),u==null||u(!1)},title:"",footer:null,transitionName:$i(s||"","zoom",t.transitionName),maskTransitionName:$i(s||"","fade",t.maskTransitionName),mask:v,maskClosable:g,style:m,styles:Object.assign({body:l,mask:r},d),width:p,zIndex:C,closable:c}),h.createElement(jx,Object.assign({},t,{confirmPrefixCls:f})))},xp=t=>{const{rootPrefixCls:e,iconPrefixCls:n,direction:r,theme:o}=t;return h.createElement(ro,{prefixCls:e,iconPrefixCls:n,direction:r,theme:o},h.createElement(zx,Object.assign({},t)))};process.env.NODE_ENV!=="production"&&(zx.displayName="ConfirmDialog",xp.displayName="ConfirmDialogWrapper");const di=[];let Lx="";function Vx(){return Lx}const Q_=t=>{var e,n;const{prefixCls:r,getContainer:o,direction:i}=t,a=sS(),s=N.useContext(At),l=Vx()||s.getPrefixCls(),c=r||`${l}-modal`;let u=o;return u===!1&&(u=void 0,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&Pi(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),N.createElement(xp,Object.assign({},t,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:i??s.direction,locale:(n=(e=s.locale)===null||e===void 0?void 0:e.Modal)!==null&&n!==void 0?n:a,getContainer:u}))};function Ls(t){const e=lA();process.env.NODE_ENV!=="production"&&!e.holderRender&&rA("Modal");const n=document.createDocumentFragment();let r=Object.assign(Object.assign({},t),{close:l,open:!0}),o,i;function a(){for(var u,d=arguments.length,f=new Array(d),p=0;p<d;p++)f[p]=arguments[p];if(f.some(g=>g==null?void 0:g.triggerCancel)){var v;(u=t.onCancel)===null||u===void 0||(v=u).call.apply(v,[t,()=>{}].concat(Pe(f.slice(1))))}for(let g=0;g<di.length;g++)if(di[g]===l){di.splice(g,1);break}i()}function s(u){clearTimeout(o),o=setTimeout(()=>{const d=e.getPrefixCls(void 0,Vx()),f=e.getIconPrefixCls(),p=e.getTheme(),m=N.createElement(Q_,Object.assign({},u));i=GS()(N.createElement(ro,{prefixCls:d,iconPrefixCls:f,theme:p},e.holderRender?e.holderRender(m):m),n)})}function l(){for(var u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof t.afterClose=="function"&&t.afterClose(),a.apply(this,d)}}),r.visible&&delete r.visible,s(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),s(r)}return s(r),di.push(l),{destroy:l,update:c}}function Fx(t){return Object.assign(Object.assign({},t),{type:"warning"})}function Hx(t){return Object.assign(Object.assign({},t),{type:"info"})}function Wx(t){return Object.assign(Object.assign({},t),{type:"success"})}function qx(t){return Object.assign(Object.assign({},t),{type:"error"})}function Kx(t){return Object.assign(Object.assign({},t),{type:"confirm"})}function Z_(t){let{rootPrefixCls:e}=t;process.env.NODE_ENV!=="production"&&Pi(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),Lx=e}var eB=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const tB=(t,e)=>{var n,{afterClose:r,config:o}=t,i=eB(t,["afterClose","config"]);const[a,s]=h.useState(!0),[l,c]=h.useState(o),{direction:u,getPrefixCls:d}=h.useContext(At),f=d("modal"),p=d(),m=()=>{var b;r(),(b=l.afterClose)===null||b===void 0||b.call(l)},v=function(){var b;s(!1);for(var C=arguments.length,x=new Array(C),S=0;S<C;S++)x[S]=arguments[S];if(x.some(M=>M==null?void 0:M.triggerCancel)){var E;(b=l.onCancel)===null||b===void 0||(E=b).call.apply(E,[l,()=>{}].concat(Pe(x.slice(1))))}};h.useImperativeHandle(e,()=>({destroy:v,update:b=>{c(C=>Object.assign(Object.assign({},C),b))}}));const g=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[y]=So("Modal",Oi.Modal);return h.createElement(xp,Object.assign({prefixCls:f,rootPrefixCls:p},l,{close:v,open:a,afterClose:m,okText:l.okText||(g?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:l.direction||u,cancelText:l.cancelText||(y==null?void 0:y.cancelText)},i))},nB=h.forwardRef(tB);let Gv=0;const rB=h.memo(h.forwardRef((t,e)=>{const[n,r]=FA();return h.useImperativeHandle(e,()=>({patchElement:r}),[]),h.createElement(h.Fragment,null,n)}));function oB(){const t=h.useRef(null),[e,n]=h.useState([]);h.useEffect(()=>{e.length&&(Pe(e).forEach(a=>{a()}),n([]))},[e]);const r=h.useCallback(i=>function(s){var l;Gv+=1;const c=h.createRef();let u;const d=new Promise(g=>{u=g});let f=!1,p;const m=h.createElement(nB,{key:`modal-${Gv}`,config:i(s),ref:c,afterClose:()=>{p==null||p()},isSilent:()=>f,onConfirm:g=>{u(g)}});return p=(l=t.current)===null||l===void 0?void 0:l.patchElement(m),p&&di.push(p),{destroy:()=>{function g(){var y;(y=c.current)===null||y===void 0||y.destroy()}c.current?g():n(y=>[].concat(Pe(y),[g]))},update:g=>{function y(){var b;(b=c.current)===null||b===void 0||b.update(g)}c.current?y():n(b=>[].concat(Pe(b),[y]))},then:g=>(f=!0,d.then(g))}},[]);return[h.useMemo(()=>({info:r(Hx),success:r(Wx),error:r(qx),warning:r(Fx),confirm:r(Kx)}),[]),h.createElement(rB,{key:"modal-holder",ref:t})]}function Ux(t){return e=>h.createElement(ro,{theme:{token:{motion:!1,zIndexPopupBase:0}}},h.createElement(t,Object.assign({},e)))}const wp=(t,e,n,r,o)=>Ux(a=>{const{prefixCls:s,style:l}=a,c=h.useRef(null),[u,d]=h.useState(0),[f,p]=h.useState(0),[m,v]=mn(!1,{value:a.open}),{getPrefixCls:g}=h.useContext(At),y=g(r||"select",s);h.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const x=new ResizeObserver(w=>{const E=w[0].target;d(E.offsetHeight+8),p(E.offsetWidth)}),S=setInterval(()=>{var w;const E=o?`.${o(y)}`:`.${y}-dropdown`,M=(w=c.current)===null||w===void 0?void 0:w.querySelector(E);M&&(clearInterval(S),x.observe(M))},10);return()=>{clearInterval(S),x.disconnect()}}},[]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});n&&(b=n(b)),e&&Object.assign(b,{[e]:{overflow:{adjustX:!1,adjustY:!1}}});const C={paddingBottom:u,position:"relative",minWidth:f};return h.createElement("div",{ref:c,style:C},h.createElement(t,Object.assign({},b)))}),Ep=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var t=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(t)||/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(t==null?void 0:t.substr(0,4))};var cu=function(e){var n=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.children,a=e.onMouseDown,s=e.onClick,l=typeof r=="function"?r(o):r;return h.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),a==null||a(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:h.createElement("span",{className:re(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},iB=function(e,n,r,o,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=N.useMemo(function(){if(st(o)==="object")return o.clearIcon;if(i)return i},[o,i]),u=N.useMemo(function(){return!!(!a&&o&&(r.length||s)&&!(l==="combobox"&&s===""))},[o,a,r.length,s,l]);return{allowClear:u,clearIcon:N.createElement(cu,{className:"".concat(e,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},Gx=h.createContext(null);function aB(){return h.useContext(Gx)}function sB(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,e=h.useState(!1),n=le(e,2),r=n[0],o=n[1],i=h.useRef(null),a=function(){window.clearTimeout(i.current)};h.useEffect(function(){return a},[]);var s=function(c,u){a(),i.current=window.setTimeout(function(){o(c),u&&u()},t)};return[r,s,a]}function Xx(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=h.useRef(null),n=h.useRef(null);h.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||e.current===null)&&(e.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){e.current=null},t)}return[function(){return e.current},r]}function lB(t,e,n,r){var o=h.useRef(null);o.current={open:e,triggerOpen:n,customizedTrigger:r},h.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&t().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function cB(t){return t&&![Je.ESC,Je.SHIFT,Je.BACKSPACE,Je.TAB,Je.WIN_KEY,Je.ALT,Je.META,Je.WIN_KEY_RIGHT,Je.CTRL,Je.SEMICOLON,Je.EQUALS,Je.CAPS_LOCK,Je.CONTEXT_MENU,Je.F1,Je.F2,Je.F3,Je.F4,Je.F5,Je.F6,Je.F7,Je.F8,Je.F9,Je.F10,Je.F11,Je.F12].includes(t)}var uB=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Fi=void 0;function dB(t,e){var n=t.prefixCls,r=t.invalidate,o=t.item,i=t.renderItem,a=t.responsive,s=t.responsiveDisabled,l=t.registerSize,c=t.itemKey,u=t.className,d=t.style,f=t.children,p=t.display,m=t.order,v=t.component,g=v===void 0?"div":v,y=xt(t,uB),b=a&&!p;function C(M){l(c,M)}h.useEffect(function(){return function(){C(null)}},[]);var x=i&&o!==Fi?i(o,{index:m}):f,S;r||(S={opacity:b?0:1,height:b?0:Fi,overflowY:b?"hidden":Fi,order:a?m:Fi,pointerEvents:b?"none":Fi,position:b?"absolute":Fi});var w={};b&&(w["aria-hidden"]=!0);var E=h.createElement(g,Le({className:re(!r&&n,u),style:q(q({},S),d)},w,y,{ref:e}),x);return a&&(E=h.createElement(Co,{onResize:function($){var R=$.offsetWidth;C(R)},disabled:s},E)),E}var ns=h.forwardRef(dB);ns.displayName="Item";function fB(t){if(typeof MessageChannel>"u")kt(t);else{var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(void 0)}}function hB(){var t=h.useRef(null),e=function(r){t.current||(t.current=[],fB(function(){_r.unstable_batchedUpdates(function(){t.current.forEach(function(o){o()}),t.current=null})})),t.current.push(r)};return e}function ja(t,e){var n=h.useState(e),r=le(n,2),o=r[0],i=r[1],a=Wt(function(s){t(function(){i(s)})});return[o,a]}var bc=N.createContext(null),pB=["component"],mB=["className"],gB=["className"],vB=function(e,n){var r=h.useContext(bc);if(!r){var o=e.component,i=o===void 0?"div":o,a=xt(e,pB);return h.createElement(i,Le({},a,{ref:n}))}var s=r.className,l=xt(r,mB),c=e.className,u=xt(e,gB);return h.createElement(bc.Provider,{value:null},h.createElement(ns,Le({ref:n,className:re(s,c)},l,u)))},Yx=h.forwardRef(vB);Yx.displayName="RawItem";var bB=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Jx="responsive",Qx="invalidate";function yB(t){return"+ ".concat(t.length," ...")}function CB(t,e){var n=t.prefixCls,r=n===void 0?"rc-overflow":n,o=t.data,i=o===void 0?[]:o,a=t.renderItem,s=t.renderRawItem,l=t.itemKey,c=t.itemWidth,u=c===void 0?10:c,d=t.ssr,f=t.style,p=t.className,m=t.maxCount,v=t.renderRest,g=t.renderRawRest,y=t.suffix,b=t.component,C=b===void 0?"div":b,x=t.itemComponent,S=t.onVisibleChange,w=xt(t,bB),E=d==="full",M=hB(),$=ja(M,null),R=le($,2),I=R[0],D=R[1],_=I||0,A=ja(M,new Map),z=le(A,2),k=z[0],P=z[1],B=ja(M,0),F=le(B,2),H=F[0],L=F[1],G=ja(M,0),J=le(G,2),V=J[0],X=J[1],Q=ja(M,0),ue=le(Q,2),Y=ue[0],fe=ue[1],be=N.useState(null),de=le(be,2),oe=de[0],ge=de[1],ne=N.useState(null),ce=le(ne,2),me=ce[0],Oe=ce[1],Me=h.useMemo(function(){return me===null&&E?Number.MAX_SAFE_INTEGER:me||0},[me,I]),Ne=N.useState(!1),je=le(Ne,2),O=je[0],ee=je[1],K="".concat(r,"-item"),ie=Math.max(H,V),Ee=m===Jx,Se=i.length&&Ee,he=m===Qx,Ae=Se||typeof m=="number"&&i.length>m,_e=N.useMemo(function(){var Qe=i;return Se?I===null&&E?Qe=i:Qe=i.slice(0,Math.min(i.length,_/u)):typeof m=="number"&&(Qe=i.slice(0,m)),Qe},[i,u,I,m,Se]),$e=N.useMemo(function(){return Se?i.slice(Me+1):i.slice(_e.length)},[i,_e,Se,Me]),ze=N.useCallback(function(Qe,Ke){var Ue;return typeof l=="function"?l(Qe):(Ue=l&&(Qe==null?void 0:Qe[l]))!==null&&Ue!==void 0?Ue:Ke},[l]),Fe=N.useCallback(a||function(Qe){return Qe},[a]);function Ie(Qe,Ke,Ue){me===Qe&&(Ke===void 0||Ke===oe)||(Oe(Qe),Ue||(ee(Qe<i.length-1),S==null||S(Qe)),Ke!==void 0&&ge(Ke))}function Be(Qe,Ke){D(Ke.clientWidth)}function Te(Qe,Ke){P(function(Ue){var wt=new Map(Ue);return Ke===null?wt.delete(Qe):wt.set(Qe,Ke),wt})}function He(Qe,Ke){X(Ke),L(V)}function Ze(Qe,Ke){fe(Ke)}function ht(Qe){return k.get(ze(_e[Qe],Qe))}Jt(function(){if(_&&typeof ie=="number"&&_e){var Qe=Y,Ke=_e.length,Ue=Ke-1;if(!Ke){Ie(0,null);return}for(var wt=0;wt<Ke;wt+=1){var $t=ht(wt);if(E&&($t=$t||0),$t===void 0){Ie(wt-1,void 0,!0);break}if(Qe+=$t,Ue===0&&Qe<=_||wt===Ue-1&&Qe+ht(Ue)<=_){Ie(Ue,null);break}else if(Qe+ie>_){Ie(wt-1,Qe-$t-Y+V);break}}y&&ht(0)+Y>_&&ge(null)}},[_,k,V,Y,ze,_e]);var Tt=O&&!!$e.length,Pt={};oe!==null&&Se&&(Pt={position:"absolute",left:oe,top:0});var an={prefixCls:K,responsive:Se,component:x,invalidate:he},Ye=s?function(Qe,Ke){var Ue=ze(Qe,Ke);return h.createElement(bc.Provider,{key:Ue,value:q(q({},an),{},{order:Ke,item:Qe,itemKey:Ue,registerSize:Te,display:Ke<=Me})},s(Qe,Ke))}:function(Qe,Ke){var Ue=ze(Qe,Ke);return h.createElement(ns,Le({},an,{order:Ke,key:Ue,item:Qe,renderItem:Fe,itemKey:Ue,registerSize:Te,display:Ke<=Me}))},We={order:Tt?Me:Number.MAX_SAFE_INTEGER,className:"".concat(K,"-rest"),registerSize:He,display:Tt},lt=v||yB,it=g?h.createElement(bc.Provider,{value:q(q({},an),We)},g($e)):h.createElement(ns,Le({},an,We),typeof lt=="function"?lt($e):lt),pt=h.createElement(C,Le({className:re(!he&&r,p),style:f,ref:e},w),_e.map(Ye),Ae?it:null,y&&h.createElement(ns,Le({},an,{responsive:Ee,responsiveDisabled:!Se,order:Me,className:"".concat(K,"-suffix"),registerSize:Ze,display:!0,style:Pt}),y));return Ee?h.createElement(Co,{onResize:Be,disabled:!Se},pt):pt}var Xr=h.forwardRef(CB);Xr.displayName="Overflow";Xr.Item=Yx;Xr.RESPONSIVE=Jx;Xr.INVALIDATE=Qx;var SB=function(e,n){var r,o=e.prefixCls,i=e.id,a=e.inputElement,s=e.disabled,l=e.tabIndex,c=e.autoFocus,u=e.autoComplete,d=e.editable,f=e.activeDescendantId,p=e.value,m=e.maxLength,v=e.onKeyDown,g=e.onMouseDown,y=e.onChange,b=e.onPaste,C=e.onCompositionStart,x=e.onCompositionEnd,S=e.onBlur,w=e.open,E=e.attrs,M=a||h.createElement("input",null),$=M,R=$.ref,I=$.props,D=I.onKeyDown,_=I.onChange,A=I.onMouseDown,z=I.onCompositionStart,k=I.onCompositionEnd,P=I.onBlur,B=I.style;return Qr(!("maxLength"in M.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),M=h.cloneElement(M,q(q(q({type:"search"},I),{},{id:i,ref:ir(n,R),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:re("".concat(o,"-selection-search-input"),(r=M)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":w||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":w?f:void 0},E),{},{value:d?p:"",maxLength:m,readOnly:!d,unselectable:d?null:"on",style:q(q({},B),{},{opacity:d?null:0}),onKeyDown:function(H){v(H),D&&D(H)},onMouseDown:function(H){g(H),A&&A(H)},onChange:function(H){y(H),_&&_(H)},onCompositionStart:function(H){C(H),z&&z(H)},onCompositionEnd:function(H){x(H),k&&k(H)},onPaste:b,onBlur:function(H){S(H),P&&P(H)}})),M},Np=h.forwardRef(SB);process.env.NODE_ENV!=="production"&&(Np.displayName="Input");function Op(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}var xB=typeof window<"u"&&window.document&&window.document.documentElement,wB=process.env.NODE_ENV!=="test"&&xB;function EB(t){return t!=null}function NB(t){return!t&&t!==0}function Xv(t){return["string","number"].includes(st(t))}function Zx(t){var e=void 0;return t&&(Xv(t.title)?e=t.title.toString():Xv(t.label)&&(e=t.label.toString())),e}function OB(t,e){wB?h.useLayoutEffect(t,e):h.useEffect(t,e)}function $B(t){var e;return(e=t.key)!==null&&e!==void 0?e:t.value}var Yv=function(e){e.preventDefault(),e.stopPropagation()},MB=function(e){var n=e.id,r=e.prefixCls,o=e.values,i=e.open,a=e.searchValue,s=e.autoClearSearchValue,l=e.inputRef,c=e.placeholder,u=e.disabled,d=e.mode,f=e.showSearch,p=e.autoFocus,m=e.autoComplete,v=e.activeDescendantId,g=e.tabIndex,y=e.removeIcon,b=e.maxTagCount,C=e.maxTagTextLength,x=e.maxTagPlaceholder,S=x===void 0?function(ne){return"+ ".concat(ne.length," ...")}:x,w=e.tagRender,E=e.onToggleOpen,M=e.onRemove,$=e.onInputChange,R=e.onInputPaste,I=e.onInputKeyDown,D=e.onInputMouseDown,_=e.onInputCompositionStart,A=e.onInputCompositionEnd,z=e.onInputBlur,k=h.useRef(null),P=N.useState(0),B=le(P,2),F=B[0],H=B[1],L=N.useState(!1),G=le(L,2),J=G[0],V=G[1],X="".concat(r,"-selection"),Q=i||d==="multiple"&&s===!1||d==="tags"?a:"",ue=d==="tags"||d==="multiple"&&s===!1||f&&(i||J);OB(function(){H(k.current.scrollWidth)},[Q]);var Y=function(ce,me,Oe,Me,Ne){return h.createElement("span",{title:Zx(ce),className:re("".concat(X,"-item"),W({},"".concat(X,"-item-disabled"),Oe))},h.createElement("span",{className:"".concat(X,"-item-content")},me),Me&&h.createElement(cu,{className:"".concat(X,"-item-remove"),onMouseDown:Yv,onClick:Ne,customizeIcon:y},"×"))},fe=function(ce,me,Oe,Me,Ne,je){var O=function(K){Yv(K),E(!i)};return h.createElement("span",{onMouseDown:O},w({label:me,value:ce,disabled:Oe,closable:Me,onClose:Ne,isMaxTag:!!je}))},be=function(ce){var me=ce.disabled,Oe=ce.label,Me=ce.value,Ne=!u&&!me,je=Oe;if(typeof C=="number"&&(typeof Oe=="string"||typeof Oe=="number")){var O=String(je);O.length>C&&(je="".concat(O.slice(0,C),"..."))}var ee=function(ie){ie&&ie.stopPropagation(),M(ce)};return typeof w=="function"?fe(Me,je,me,Ne,ee):Y(ce,je,me,Ne,ee)},de=function(ce){if(!o.length)return null;var me=typeof S=="function"?S(ce):S;return typeof w=="function"?fe(void 0,me,!1,!1,void 0,!0):Y({title:me},me,!1)},oe=h.createElement("div",{className:"".concat(X,"-search"),style:{width:F},onFocus:function(){V(!0)},onBlur:function(){V(!1)}},h.createElement(Np,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:p,autoComplete:m,editable:ue,activeDescendantId:v,value:Q,onKeyDown:I,onMouseDown:D,onChange:$,onPaste:R,onCompositionStart:_,onCompositionEnd:A,onBlur:z,tabIndex:g,attrs:Zr(e,!0)}),h.createElement("span",{ref:k,className:"".concat(X,"-search-mirror"),"aria-hidden":!0},Q," ")),ge=h.createElement(Xr,{prefixCls:"".concat(X,"-overflow"),data:o,renderItem:be,renderRest:de,suffix:oe,itemKey:$B,maxCount:b});return h.createElement("span",{className:"".concat(X,"-wrap")},ge,!o.length&&!Q&&h.createElement("span",{className:"".concat(X,"-placeholder")},c))},RB=function(e){var n=e.inputElement,r=e.prefixCls,o=e.id,i=e.inputRef,a=e.disabled,s=e.autoFocus,l=e.autoComplete,c=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,p=e.placeholder,m=e.tabIndex,v=e.showSearch,g=e.searchValue,y=e.activeValue,b=e.maxLength,C=e.onInputKeyDown,x=e.onInputMouseDown,S=e.onInputChange,w=e.onInputPaste,E=e.onInputCompositionStart,M=e.onInputCompositionEnd,$=e.onInputBlur,R=e.title,I=h.useState(!1),D=le(I,2),_=D[0],A=D[1],z=u==="combobox",k=z||v,P=f[0],B=g||"";z&&y&&!_&&(B=y),h.useEffect(function(){z&&A(!1)},[z,y]);var F=u!=="combobox"&&!d&&!v?!1:!!B,H=R===void 0?Zx(P):R,L=h.useMemo(function(){return P?null:h.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:F?{visibility:"hidden"}:void 0},p)},[P,F,p,r]);return h.createElement("span",{className:"".concat(r,"-selection-wrap")},h.createElement("span",{className:"".concat(r,"-selection-search")},h.createElement(Np,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:k,activeDescendantId:c,value:B,onKeyDown:C,onMouseDown:x,onChange:function(J){A(!0),S(J)},onPaste:w,onCompositionStart:E,onCompositionEnd:M,onBlur:$,tabIndex:m,attrs:Zr(e,!0),maxLength:z?b:void 0})),!z&&P?h.createElement("span",{className:"".concat(r,"-selection-item"),title:H,style:F?{visibility:"hidden"}:void 0},P.label):null,L)},IB=function(e,n){var r=N.useRef(null),o=N.useRef(!1),i=e.prefixCls,a=e.open,s=e.mode,l=e.showSearch,c=e.tokenWithEnter,u=e.disabled,d=e.prefix,f=e.autoClearSearchValue,p=e.onSearch,m=e.onSearchSubmit,v=e.onToggleOpen,g=e.onInputKeyDown,y=e.onInputBlur,b=e.domRef;h.useImperativeHandle(n,function(){return{focus:function(H){r.current.focus(H)},blur:function(){r.current.blur()}}});var C=Xx(0),x=le(C,2),S=x[0],w=x[1],E=function(H){var L=H.which,G=r.current instanceof HTMLTextAreaElement;!G&&a&&(L===Je.UP||L===Je.DOWN)&&H.preventDefault(),g&&g(H),L===Je.ENTER&&s==="tags"&&!o.current&&!a&&(m==null||m(H.target.value)),!(G&&!a&&~[Je.UP,Je.DOWN,Je.LEFT,Je.RIGHT].indexOf(L))&&cB(L)&&v(!0)},M=function(){w(!0)},$=N.useRef(null),R=function(H){p(H,!0,o.current)!==!1&&v(!0)},I=function(){o.current=!0},D=function(H){o.current=!1,s!=="combobox"&&R(H.target.value)},_=function(H){var L=H.target.value;if(c&&$.current&&/[\r\n]/.test($.current)){var G=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(G,$.current)}$.current=null,R(L)},A=function(H){var L=H.clipboardData,G=L==null?void 0:L.getData("text");$.current=G||""},z=function(H){var L=H.target;if(L!==r.current){var G=document.body.style.msTouchAction!==void 0;G?setTimeout(function(){r.current.focus()}):r.current.focus()}},k=function(H){var L=S();H.target!==r.current&&!L&&!(s==="combobox"&&u)&&H.preventDefault(),(s!=="combobox"&&(!l||!L)||!a)&&(a&&f!==!1&&p("",!0,!1),v())},P={inputRef:r,onInputKeyDown:E,onInputMouseDown:M,onInputChange:_,onInputPaste:A,onInputCompositionStart:I,onInputCompositionEnd:D,onInputBlur:y},B=s==="multiple"||s==="tags"?h.createElement(MB,Le({},e,P)):h.createElement(RB,Le({},e,P));return h.createElement("div",{ref:b,className:"".concat(i,"-selector"),onClick:z,onMouseDown:k},d&&h.createElement("div",{className:"".concat(i,"-prefix")},d),B)},e1=h.forwardRef(IB);process.env.NODE_ENV!=="production"&&(e1.displayName="Selector");function TB(t){var e=t.prefixCls,n=t.align,r=t.arrow,o=t.arrowPos,i=r||{},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=h.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var m=n.points[0],v=n.points[1],g=m[0],y=m[1],b=v[0],C=v[1];g===b||!["t","b"].includes(g)?p.top=d:g==="t"?p.top=0:p.bottom=0,y===C||!["l","r"].includes(y)?p.left=c:y==="l"?p.left=0:p.right=0}return h.createElement("div",{ref:f,className:re("".concat(e,"-arrow"),a),style:p},s)}function PB(t){var e=t.prefixCls,n=t.open,r=t.zIndex,o=t.mask,i=t.motion;return o?h.createElement(no,Le({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return h.createElement("div",{style:{zIndex:r},className:re("".concat(e,"-mask"),s)})}):null}var t1=h.memo(function(t){var e=t.children;return e},function(t,e){return e.cache});process.env.NODE_ENV!=="production"&&(t1.displayName="PopupContent");var n1=h.forwardRef(function(t,e){var n=t.popup,r=t.className,o=t.prefixCls,i=t.style,a=t.target,s=t.onVisibleChanged,l=t.open,c=t.keepDom,u=t.fresh,d=t.onClick,f=t.mask,p=t.arrow,m=t.arrowPos,v=t.align,g=t.motion,y=t.maskMotion,b=t.forceRender,C=t.getPopupContainer,x=t.autoDestroy,S=t.portal,w=t.zIndex,E=t.onMouseEnter,M=t.onMouseLeave,$=t.onPointerEnter,R=t.onPointerDownCapture,I=t.ready,D=t.offsetX,_=t.offsetY,A=t.offsetR,z=t.offsetB,k=t.onAlign,P=t.onPrepare,B=t.stretch,F=t.targetWidth,H=t.targetHeight,L=typeof n=="function"?n():n,G=l||c,J=(C==null?void 0:C.length)>0,V=h.useState(!C||!J),X=le(V,2),Q=X[0],ue=X[1];if(Jt(function(){!Q&&J&&a&&ue(!0)},[Q,J,a]),!Q)return null;var Y="auto",fe={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(I||!l){var be,de=v.points,oe=v.dynamicInset||((be=v._experimental)===null||be===void 0?void 0:be.dynamicInset),ge=oe&&de[0][1]==="r",ne=oe&&de[0][0]==="b";ge?(fe.right=A,fe.left=Y):(fe.left=D,fe.right=Y),ne?(fe.bottom=z,fe.top=Y):(fe.top=_,fe.bottom=Y)}var ce={};return B&&(B.includes("height")&&H?ce.height=H:B.includes("minHeight")&&H&&(ce.minHeight=H),B.includes("width")&&F?ce.width=F:B.includes("minWidth")&&F&&(ce.minWidth=F)),l||(ce.pointerEvents="none"),h.createElement(S,{open:b||G,getContainer:C&&function(){return C(a)},autoDestroy:x},h.createElement(PB,{prefixCls:o,open:l,zIndex:w,mask:f,motion:y}),h.createElement(Co,{onResize:k,disabled:!l},function(me){return h.createElement(no,Le({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:P,onEnterPrepare:P,visible:l,onVisibleChanged:function(Me){var Ne;g==null||(Ne=g.onVisibleChanged)===null||Ne===void 0||Ne.call(g,Me),s(Me)}}),function(Oe,Me){var Ne=Oe.className,je=Oe.style,O=re(o,Ne,r);return h.createElement("div",{ref:ir(me,e,Me),className:O,style:q(q(q(q({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},fe),ce),je),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:E,onMouseLeave:M,onPointerEnter:$,onClick:d,onPointerDownCapture:R},p&&h.createElement(TB,{prefixCls:o,arrow:p,arrowPos:m,align:v}),h.createElement(t1,{cache:!l&&!u},L))})}))});process.env.NODE_ENV!=="production"&&(n1.displayName="Popup");var r1=h.forwardRef(function(t,e){var n=t.children,r=t.getTriggerDOMNode,o=Zo(n),i=h.useCallback(function(s){Yh(e,r?r(s):s)},[r]),a=Qo(i,Ti(n));return o?h.cloneElement(n,{ref:a}):n});process.env.NODE_ENV!=="production"&&(r1.displayName="TriggerWrapper");var Jv=h.createContext(null);function Qv(t){return t?Array.isArray(t)?t:[t]:[]}function AB(t,e,n,r){return h.useMemo(function(){var o=Qv(n??e),i=Qv(r??e),a=new Set(o),s=new Set(i);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[t,e,n,r])}function kB(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function DB(t,e,n,r){for(var o=n.points,i=Object.keys(t),a=0;a<i.length;a+=1){var s,l=i[a];if(kB((s=t[l])===null||s===void 0?void 0:s.points,o,r))return"".concat(e,"-placement-").concat(l)}return""}function Zv(t,e,n,r){return e||(n?{motionName:"".concat(t,"-").concat(n)}:r?{motionName:r}:null)}function Vs(t){return t.ownerDocument.defaultView}function nh(t){for(var e=[],n=t==null?void 0:t.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Vs(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return r.includes(l)})&&e.push(n),n=n.parentElement}return e}function ws(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(t)?e:t}function za(t){return ws(parseFloat(t),0)}function eb(t,e){var n=q({},t);return(e||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Vs(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),f=r.offsetHeight,p=r.clientHeight,m=r.offsetWidth,v=r.clientWidth,g=za(s),y=za(l),b=za(c),C=za(u),x=ws(Math.round(d.width/m*1e3)/1e3),S=ws(Math.round(d.height/f*1e3)/1e3),w=(m-v-b-C)*x,E=(f-p-g-y)*S,M=g*S,$=y*S,R=b*x,I=C*x,D=0,_=0;if(i==="clip"){var A=za(a);D=A*x,_=A*S}var z=d.x+R-D,k=d.y+M-_,P=z+d.width+2*D-R-I-w,B=k+d.height+2*_-M-$-E;n.left=Math.max(n.left,z),n.top=Math.max(n.top,k),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,B)}}),n}function tb(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(e),r=n.match(/^(.*)\%$/);return r?t*(parseFloat(r[1])/100):parseFloat(n)}function nb(t,e){var n=e||[],r=le(n,2),o=r[0],i=r[1];return[tb(t.width,o),tb(t.height,i)]}function rb(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[t[0],t[1]]}function Hi(t,e){var n=e[0],r=e[1],o,i;return n==="t"?i=t.y:n==="b"?i=t.y+t.height:i=t.y+t.height/2,r==="l"?o=t.x:r==="r"?o=t.x+t.width:o=t.x+t.width/2,{x:o,y:i}}function Oo(t,e){var n={t:"b",b:"t",l:"r",r:"l"};return t.map(function(r,o){return o===e?n[r]||"c":r}).join("")}function _B(t,e,n,r,o,i,a){var s=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=le(s,2),c=l[0],u=l[1],d=h.useRef(0),f=h.useMemo(function(){return e?nh(e):[]},[e]),p=h.useRef({}),m=function(){p.current={}};t||m();var v=Wt(function(){if(e&&n&&t){let Wn=function(wo,Hr){var Rr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ie,Ta=V.x+wo,Gs=V.y+Hr,Su=Ta+ge,xu=Gs+oe,wu=Math.max(Ta,Rr.left),ct=Math.max(Gs,Rr.top),St=Math.min(Su,Rr.right),fn=Math.min(xu,Rr.bottom);return Math.max(0,(St-wu)*(fn-ct))},Ia=function(){Bt=V.y+Ue,Ft=Bt+oe,Xt=V.x+Ke,Mn=Xt+ge};var b,C,x,S,w=e,E=w.ownerDocument,M=Vs(w),$=M.getComputedStyle(w),R=$.width,I=$.height,D=$.position,_=w.style.left,A=w.style.top,z=w.style.right,k=w.style.bottom,P=w.style.overflow,B=q(q({},o[r]),i),F=E.createElement("div");(b=w.parentElement)===null||b===void 0||b.appendChild(F),F.style.left="".concat(w.offsetLeft,"px"),F.style.top="".concat(w.offsetTop,"px"),F.style.position=D,F.style.height="".concat(w.offsetHeight,"px"),F.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 H;if(Array.isArray(n))H={x:n[0],y:n[1],width:0,height:0};else{var L,G,J=n.getBoundingClientRect();J.x=(L=J.x)!==null&&L!==void 0?L:J.left,J.y=(G=J.y)!==null&&G!==void 0?G:J.top,H={x:J.x,y:J.y,width:J.width,height:J.height}}var V=w.getBoundingClientRect();V.x=(C=V.x)!==null&&C!==void 0?C:V.left,V.y=(x=V.y)!==null&&x!==void 0?x:V.top;var X=E.documentElement,Q=X.clientWidth,ue=X.clientHeight,Y=X.scrollWidth,fe=X.scrollHeight,be=X.scrollTop,de=X.scrollLeft,oe=V.height,ge=V.width,ne=H.height,ce=H.width,me={left:0,top:0,right:Q,bottom:ue},Oe={left:-de,top:-be,right:Y-de,bottom:fe-be},Me=B.htmlRegion,Ne="visible",je="visibleFirst";Me!=="scroll"&&Me!==je&&(Me=Ne);var O=Me===je,ee=eb(Oe,f),K=eb(me,f),ie=Me===Ne?K:ee,Ee=O?K:ie;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var Se=w.getBoundingClientRect();w.style.left=_,w.style.top=A,w.style.right=z,w.style.bottom=k,w.style.overflow=P,(S=w.parentElement)===null||S===void 0||S.removeChild(F);var he=ws(Math.round(ge/parseFloat(R)*1e3)/1e3),Ae=ws(Math.round(oe/parseFloat(I)*1e3)/1e3);if(he===0||Ae===0||fs(n)&&!dp(n))return;var _e=B.offset,$e=B.targetOffset,ze=nb(V,_e),Fe=le(ze,2),Ie=Fe[0],Be=Fe[1],Te=nb(H,$e),He=le(Te,2),Ze=He[0],ht=He[1];H.x-=Ze,H.y-=ht;var Tt=B.points||[],Pt=le(Tt,2),an=Pt[0],Ye=Pt[1],We=rb(Ye),lt=rb(an),it=Hi(H,We),pt=Hi(V,lt),Qe=q({},B),Ke=it.x-pt.x+Ie,Ue=it.y-pt.y+Be,wt=Wn(Ke,Ue),$t=Wn(Ke,Ue,K),et=Hi(H,["t","l"]),qe=Hi(V,["t","l"]),ot=Hi(H,["b","r"]),at=Hi(V,["b","r"]),nt=B.overflow||{},dt=nt.adjustX,Dt=nt.adjustY,Nt=nt.shiftX,Gt=nt.shiftY,Rt=function(Hr){return typeof Hr=="boolean"?Hr:Hr>=0},Bt,Ft,Xt,Mn;Ia();var Yt=Rt(Dt),sn=lt[0]===We[0];if(Yt&&lt[0]==="t"&&(Ft>Ee.bottom||p.current.bt)){var Ve=Ue;sn?Ve-=oe-ne:Ve=et.y-at.y-Be;var rt=Wn(Ke,Ve),Xe=Wn(Ke,Ve,K);rt>wt||rt===wt&&(!O||Xe>=$t)?(p.current.bt=!0,Ue=Ve,Be=-Be,Qe.points=[Oo(lt,0),Oo(We,0)]):p.current.bt=!1}if(Yt&&lt[0]==="b"&&(Bt<Ee.top||p.current.tb)){var De=Ue;sn?De+=oe-ne:De=ot.y-qe.y-Be;var ft=Wn(Ke,De),Et=Wn(Ke,De,K);ft>wt||ft===wt&&(!O||Et>=$t)?(p.current.tb=!0,Ue=De,Be=-Be,Qe.points=[Oo(lt,0),Oo(We,0)]):p.current.tb=!1}var Ot=Rt(dt),ln=lt[1]===We[1];if(Ot&&lt[1]==="l"&&(Mn>Ee.right||p.current.rl)){var en=Ke;ln?en-=ge-ce:en=et.x-at.x-Ie;var dn=Wn(en,Ue),cn=Wn(en,Ue,K);dn>wt||dn===wt&&(!O||cn>=$t)?(p.current.rl=!0,Ke=en,Ie=-Ie,Qe.points=[Oo(lt,1),Oo(We,1)]):p.current.rl=!1}if(Ot&&lt[1]==="r"&&(Xt<Ee.left||p.current.lr)){var tn=Ke;ln?tn+=ge-ce:tn=ot.x-qe.x-Ie;var En=Wn(tn,Ue),Rn=Wn(tn,Ue,K);En>wt||En===wt&&(!O||Rn>=$t)?(p.current.lr=!0,Ke=tn,Ie=-Ie,Qe.points=[Oo(lt,1),Oo(We,1)]):p.current.lr=!1}Ia();var T=Nt===!0?0:Nt;typeof T=="number"&&(Xt<K.left&&(Ke-=Xt-K.left-Ie,H.x+ce<K.left+T&&(Ke+=H.x-K.left+ce-T)),Mn>K.right&&(Ke-=Mn-K.right-Ie,H.x>K.right-T&&(Ke+=H.x-K.right+T)));var U=Gt===!0?0:Gt;typeof U=="number"&&(Bt<K.top&&(Ue-=Bt-K.top-Be,H.y+ne<K.top+U&&(Ue+=H.y-K.top+ne-U)),Ft>K.bottom&&(Ue-=Ft-K.bottom-Be,H.y>K.bottom-U&&(Ue+=H.y-K.bottom+U)));var j=V.x+Ke,te=j+ge,ae=V.y+Ue,Z=ae+oe,xe=H.x,ye=xe+ce,pe=H.y,Ce=pe+ne,we=Math.max(j,xe),ke=Math.min(te,ye),tt=(we+ke)/2,bt=tt-j,Ct=Math.max(ae,pe),jt=Math.min(Z,Ce),zt=(Ct+jt)/2,nn=zt-ae;a==null||a(e,Qe);var gn=Se.right-V.x-(Ke+V.width),pn=Se.bottom-V.y-(Ue+V.height);he===1&&(Ke=Math.round(Ke),gn=Math.round(gn)),Ae===1&&(Ue=Math.round(Ue),pn=Math.round(pn));var ti={ready:!0,offsetX:Ke/he,offsetY:Ue/Ae,offsetR:gn/he,offsetB:pn/Ae,arrowX:bt/he,arrowY:nn/Ae,scaleX:he,scaleY:Ae,align:Qe};u(ti)}}),g=function(){d.current+=1;var C=d.current;Promise.resolve().then(function(){d.current===C&&v()})},y=function(){u(function(C){return q(q({},C),{},{ready:!1})})};return Jt(y,[r]),Jt(function(){t||y()},[t]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function BB(t,e,n,r,o){Jt(function(){if(t&&e&&n){let d=function(){r(),o()};var i=e,a=n,s=nh(i),l=nh(a),c=Vs(a),u=new Set([c].concat(Pe(s),Pe(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[t,e,n])}function jB(t,e,n,r,o,i,a,s){var l=h.useRef(t);l.current=t;var c=h.useRef(!1);h.useEffect(function(){if(e&&r&&(!o||i)){var d=function(){c.current=!1},f=function(x){var S;l.current&&!a(((S=x.composedPath)===null||S===void 0||(S=S.call(x))===null||S===void 0?void 0:S[0])||x.target)&&!c.current&&s(!1)},p=Vs(r);p.addEventListener("pointerdown",d,!0),p.addEventListener("mousedown",f,!0),p.addEventListener("contextmenu",f,!0);var m=pc(n);if(m&&(m.addEventListener("mousedown",f,!0),m.addEventListener("contextmenu",f,!0)),process.env.NODE_ENV!=="production"){var v,g,y=n==null||(v=n.getRootNode)===null||v===void 0?void 0:v.call(n),b=(g=r.getRootNode)===null||g===void 0?void 0:g.call(r);Qr(y===b,"trigger element and popup element should in same shadow root.")}return function(){p.removeEventListener("pointerdown",d,!0),p.removeEventListener("mousedown",f,!0),p.removeEventListener("contextmenu",f,!0),m&&(m.removeEventListener("mousedown",f,!0),m.removeEventListener("contextmenu",f,!0))}}},[e,n,r,o,i]);function u(){c.current=!0}return u}var zB=["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 LB(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iu,e=h.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,p=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,v=n.mouseEnterDelay,g=n.mouseLeaveDelay,y=g===void 0?.1:g,b=n.focusDelay,C=n.blurDelay,x=n.mask,S=n.maskClosable,w=S===void 0?!0:S,E=n.getPopupContainer,M=n.forceRender,$=n.autoDestroy,R=n.destroyPopupOnHide,I=n.popup,D=n.popupClassName,_=n.popupStyle,A=n.popupPlacement,z=n.builtinPlacements,k=z===void 0?{}:z,P=n.popupAlign,B=n.zIndex,F=n.stretch,H=n.getPopupClassNameFromAlign,L=n.fresh,G=n.alignPoint,J=n.onPopupClick,V=n.onPopupAlign,X=n.arrow,Q=n.popupMotion,ue=n.maskMotion,Y=n.popupTransitionName,fe=n.popupAnimation,be=n.maskTransitionName,de=n.maskAnimation,oe=n.className,ge=n.getTriggerDOMNode,ne=xt(n,zB),ce=$||R||!1,me=h.useState(!1),Oe=le(me,2),Me=Oe[0],Ne=Oe[1];Jt(function(){Ne(Ep())},[]);var je=h.useRef({}),O=h.useContext(Jv),ee=h.useMemo(function(){return{registerSubPopup:function(St,fn){je.current[St]=fn,O==null||O.registerSubPopup(St,fn)}}},[O]),K=au(),ie=h.useState(null),Ee=le(ie,2),Se=Ee[0],he=Ee[1],Ae=h.useRef(null),_e=Wt(function(ct){Ae.current=ct,fs(ct)&&Se!==ct&&he(ct),O==null||O.registerSubPopup(K,ct)}),$e=h.useState(null),ze=le($e,2),Fe=ze[0],Ie=ze[1],Be=h.useRef(null),Te=Wt(function(ct){fs(ct)&&Fe!==ct&&(Ie(ct),Be.current=ct)}),He=h.Children.only(a),Ze=(He==null?void 0:He.props)||{},ht={},Tt=Wt(function(ct){var St,fn,In=Fe;return(In==null?void 0:In.contains(ct))||((St=pc(In))===null||St===void 0?void 0:St.host)===ct||ct===In||(Se==null?void 0:Se.contains(ct))||((fn=pc(Se))===null||fn===void 0?void 0:fn.host)===ct||ct===Se||Object.values(je.current).some(function(vn){return(vn==null?void 0:vn.contains(ct))||ct===vn})}),Pt=Zv(i,Q,fe,Y),an=Zv(i,ue,de,be),Ye=h.useState(f||!1),We=le(Ye,2),lt=We[0],it=We[1],pt=d??lt,Qe=Wt(function(ct){d===void 0&&it(ct)});Jt(function(){it(d||!1)},[d]);var Ke=h.useRef(pt);Ke.current=pt;var Ue=h.useRef([]);Ue.current=[];var wt=Wt(function(ct){var St;Qe(ct),((St=Ue.current[Ue.current.length-1])!==null&&St!==void 0?St:pt)!==ct&&(Ue.current.push(ct),p==null||p(ct))}),$t=h.useRef(),et=function(){clearTimeout($t.current)},qe=function(St){var fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;et(),fn===0?wt(St):$t.current=setTimeout(function(){wt(St)},fn*1e3)};h.useEffect(function(){return et},[]);var ot=h.useState(!1),at=le(ot,2),nt=at[0],dt=at[1];Jt(function(ct){(!ct||pt)&&dt(!0)},[pt]);var Dt=h.useState(null),Nt=le(Dt,2),Gt=Nt[0],Rt=Nt[1],Bt=h.useState(null),Ft=le(Bt,2),Xt=Ft[0],Mn=Ft[1],Yt=function(St){Mn([St.clientX,St.clientY])},sn=_B(pt,Se,G&&Xt!==null?Xt:Fe,A,k,P,V),Ve=le(sn,11),rt=Ve[0],Xe=Ve[1],De=Ve[2],ft=Ve[3],Et=Ve[4],Ot=Ve[5],ln=Ve[6],en=Ve[7],dn=Ve[8],cn=Ve[9],tn=Ve[10],En=AB(Me,l,c,u),Rn=le(En,2),T=Rn[0],U=Rn[1],j=T.has("click"),te=U.has("click")||U.has("contextMenu"),ae=Wt(function(){nt||tn()}),Z=function(){Ke.current&&G&&te&&qe(!1)};BB(pt,Fe,Se,ae,Z),Jt(function(){ae()},[Xt,A]),Jt(function(){pt&&!(k!=null&&k[A])&&ae()},[JSON.stringify(P)]);var xe=h.useMemo(function(){var ct=DB(k,i,cn,G);return re(ct,H==null?void 0:H(cn))},[cn,H,k,i,G]);h.useImperativeHandle(r,function(){return{nativeElement:Be.current,popupElement:Ae.current,forceAlign:ae}});var ye=h.useState(0),pe=le(ye,2),Ce=pe[0],we=pe[1],ke=h.useState(0),tt=le(ke,2),bt=tt[0],Ct=tt[1],jt=function(){if(F&&Fe){var St=Fe.getBoundingClientRect();we(St.width),Ct(St.height)}},zt=function(){jt(),ae()},nn=function(St){dt(!1),tn(),m==null||m(St)},gn=function(){return new Promise(function(St){jt(),Rt(function(){return St})})};Jt(function(){Gt&&(tn(),Gt(),Rt(null))},[Gt]);function pn(ct,St,fn,In){ht[ct]=function(vn){var Xs;In==null||In(vn),qe(St,fn);for(var Eu=arguments.length,nm=new Array(Eu>1?Eu-1:0),Ys=1;Ys<Eu;Ys++)nm[Ys-1]=arguments[Ys];(Xs=Ze[ct])===null||Xs===void 0||Xs.call.apply(Xs,[Ze,vn].concat(nm))}}(j||te)&&(ht.onClick=function(ct){var St;Ke.current&&te?qe(!1):!Ke.current&&j&&(Yt(ct),qe(!0));for(var fn=arguments.length,In=new Array(fn>1?fn-1:0),vn=1;vn<fn;vn++)In[vn-1]=arguments[vn];(St=Ze.onClick)===null||St===void 0||St.call.apply(St,[Ze,ct].concat(In))});var ti=jB(pt,te,Fe,Se,x,w,Tt,qe),Wn=T.has("hover"),Ia=U.has("hover"),wo,Hr;Wn&&(pn("onMouseEnter",!0,v,function(ct){Yt(ct)}),pn("onPointerEnter",!0,v,function(ct){Yt(ct)}),wo=function(St){(pt||nt)&&Se!==null&&Se!==void 0&&Se.contains(St.target)&&qe(!0,v)},G&&(ht.onMouseMove=function(ct){var St;(St=Ze.onMouseMove)===null||St===void 0||St.call(Ze,ct)})),Ia&&(pn("onMouseLeave",!1,y),pn("onPointerLeave",!1,y),Hr=function(){qe(!1,y)}),T.has("focus")&&pn("onFocus",!0,b),U.has("focus")&&pn("onBlur",!1,C),T.has("contextMenu")&&(ht.onContextMenu=function(ct){var St;Ke.current&&U.has("contextMenu")?qe(!1):(Yt(ct),qe(!0)),ct.preventDefault();for(var fn=arguments.length,In=new Array(fn>1?fn-1:0),vn=1;vn<fn;vn++)In[vn-1]=arguments[vn];(St=Ze.onContextMenu)===null||St===void 0||St.call.apply(St,[Ze,ct].concat(In))}),oe&&(ht.className=re(Ze.className,oe));var Rr=q(q({},Ze),ht),Ta={},Gs=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Gs.forEach(function(ct){ne[ct]&&(Ta[ct]=function(){for(var St,fn=arguments.length,In=new Array(fn),vn=0;vn<fn;vn++)In[vn]=arguments[vn];(St=Rr[ct])===null||St===void 0||St.call.apply(St,[Rr].concat(In)),ne[ct].apply(ne,In)})});var Su=h.cloneElement(He,q(q({},Rr),Ta)),xu={x:Ot,y:ln},wu=X?q({},X!==!0?X:{}):null;return h.createElement(h.Fragment,null,h.createElement(Co,{disabled:!pt,ref:Te,onResize:zt},h.createElement(r1,{getTriggerDOMNode:ge},Su)),h.createElement(Jv.Provider,{value:ee},h.createElement(n1,{portal:t,ref:_e,prefixCls:i,popup:I,className:re(D,xe),style:_,target:Fe,onMouseEnter:wo,onMouseLeave:Hr,onPointerEnter:wo,zIndex:B,open:pt,keepDom:nt,fresh:L,onClick:J,onPointerDownCapture:ti,mask:x,motion:Pt,maskMotion:an,onVisibleChanged:nn,onPrepare:gn,forceRender:M,autoDestroy:ce,getPopupContainer:E,align:cn,arrow:wu,arrowPos:xu,ready:rt,offsetX:Xe,offsetY:De,offsetR:ft,offsetB:Et,onAlign:ae,stretch:F,targetWidth:Ce/en,targetHeight:bt/dn})))});return process.env.NODE_ENV!=="production"&&(e.displayName="Trigger"),e}const uu=LB(iu);var VB=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],FB=function(e){var n=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},HB=function(e,n){var r=e.prefixCls;e.disabled;var o=e.visible,i=e.children,a=e.popupElement,s=e.animation,l=e.transitionName,c=e.dropdownStyle,u=e.dropdownClassName,d=e.direction,f=d===void 0?"ltr":d,p=e.placement,m=e.builtinPlacements,v=e.dropdownMatchSelectWidth,g=e.dropdownRender,y=e.dropdownAlign,b=e.getPopupContainer,C=e.empty,x=e.getTriggerDOMNode,S=e.onPopupVisibleChange,w=e.onPopupMouseEnter,E=xt(e,VB),M="".concat(r,"-dropdown"),$=a;g&&($=g(a));var R=h.useMemo(function(){return m||FB(v)},[m,v]),I=s?"".concat(M,"-").concat(s):l,D=typeof v=="number",_=h.useMemo(function(){return D?null:v===!1?"minWidth":"width"},[v,D]),A=c;D&&(A=q(q({},A),{},{width:v}));var z=h.useRef(null);return h.useImperativeHandle(n,function(){return{getPopupElement:function(){var P;return(P=z.current)===null||P===void 0?void 0:P.popupElement}}}),h.createElement(uu,Le({},E,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:p||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:M,popupTransitionName:I,popup:h.createElement("div",{onMouseEnter:w},$),ref:z,stretch:_,popupAlign:y,popupVisible:o,getPopupContainer:b,popupClassName:re(u,W({},"".concat(M,"-empty"),C)),popupStyle:A,getTriggerDOMNode:x,onPopupVisibleChange:S}),i)},o1=h.forwardRef(HB);process.env.NODE_ENV!=="production"&&(o1.displayName="SelectTrigger");function ob(t,e){var n=t.key,r;return"value"in t&&(r=t.value),n??(r!==void 0?r:"rc-index-key-".concat(e))}function rh(t){return typeof t<"u"&&!Number.isNaN(t)}function i1(t,e){var n=t||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,s=r||(e?"children":"label");return{label:s,value:o||"value",options:i||"options",groupLabel:a||s}}function WB(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.fieldNames,r=e.childrenAsData,o=[],i=i1(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(d,f){Array.isArray(d)&&d.forEach(function(p){if(f||!(l in p)){var m=p[s];o.push({key:ob(p,o.length),groupOption:f,data:p,label:p[a],value:m})}else{var v=p[c];v===void 0&&r&&(v=p.label),o.push({key:ob(p,o.length),group:!0,data:p,label:v}),u(p[l],!0)}})}return u(t,!1),o}function oh(t){var e=q({},t);return"props"in e||Object.defineProperty(e,"props",{get:function(){return yt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e}}),e}var qB=function(e,n,r){if(!n||!n.length)return null;var o=!1,i=function s(l,c){var u=nS(c),d=u[0],f=u.slice(1);if(!d)return[l];var p=l.split(d);return o=o||p.length>1,p.reduce(function(m,v){return[].concat(Pe(m),Pe(s(v,f)))},[]).filter(Boolean)},a=i(e,n);return o?typeof r<"u"?a.slice(0,r):a:null},$p=h.createContext(null);function KB(t){var e=t.visible,n=t.values;if(!e)return null;var r=50;return h.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var i=o.label,a=o.value;return["number","string"].includes(st(i))?i:a}).join(", ")),n.length>r?", ...":null)}var UB=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],GB=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],yc=function(e){return e==="tags"||e==="multiple"},a1=h.forwardRef(function(t,e){var n,r=t.id,o=t.prefixCls,i=t.className,a=t.showSearch,s=t.tagRender,l=t.direction,c=t.omitDomProps,u=t.displayValues,d=t.onDisplayValuesChange,f=t.emptyOptions,p=t.notFoundContent,m=p===void 0?"Not Found":p,v=t.onClear,g=t.mode,y=t.disabled,b=t.loading,C=t.getInputElement,x=t.getRawInputElement,S=t.open,w=t.defaultOpen,E=t.onDropdownVisibleChange,M=t.activeValue,$=t.onActiveValueChange,R=t.activeDescendantId,I=t.searchValue,D=t.autoClearSearchValue,_=t.onSearch,A=t.onSearchSplit,z=t.tokenSeparators,k=t.allowClear,P=t.prefix,B=t.suffixIcon,F=t.clearIcon,H=t.OptionList,L=t.animation,G=t.transitionName,J=t.dropdownStyle,V=t.dropdownClassName,X=t.dropdownMatchSelectWidth,Q=t.dropdownRender,ue=t.dropdownAlign,Y=t.placement,fe=t.builtinPlacements,be=t.getPopupContainer,de=t.showAction,oe=de===void 0?[]:de,ge=t.onFocus,ne=t.onBlur,ce=t.onKeyUp,me=t.onKeyDown,Oe=t.onMouseDown,Me=xt(t,UB),Ne=yc(g),je=(a!==void 0?a:Ne)||g==="combobox",O=q({},Me);GB.forEach(function(ye){delete O[ye]}),c==null||c.forEach(function(ye){delete O[ye]});var ee=h.useState(!1),K=le(ee,2),ie=K[0],Ee=K[1];h.useEffect(function(){Ee(Ep())},[]);var Se=h.useRef(null),he=h.useRef(null),Ae=h.useRef(null),_e=h.useRef(null),$e=h.useRef(null),ze=h.useRef(!1),Fe=sB(),Ie=le(Fe,3),Be=Ie[0],Te=Ie[1],He=Ie[2];h.useImperativeHandle(e,function(){var ye,pe;return{focus:(ye=_e.current)===null||ye===void 0?void 0:ye.focus,blur:(pe=_e.current)===null||pe===void 0?void 0:pe.blur,scrollTo:function(we){var ke;return(ke=$e.current)===null||ke===void 0?void 0:ke.scrollTo(we)},nativeElement:Se.current||he.current}});var Ze=h.useMemo(function(){var ye;if(g!=="combobox")return I;var pe=(ye=u[0])===null||ye===void 0?void 0:ye.value;return typeof pe=="string"||typeof pe=="number"?String(pe):""},[I,g,u]),ht=g==="combobox"&&typeof C=="function"&&C()||null,Tt=typeof x=="function"&&x(),Pt=Qo(he,Tt==null||(n=Tt.props)===null||n===void 0?void 0:n.ref),an=h.useState(!1),Ye=le(an,2),We=Ye[0],lt=Ye[1];Jt(function(){lt(!0)},[]);var it=mn(!1,{defaultValue:w,value:S}),pt=le(it,2),Qe=pt[0],Ke=pt[1],Ue=We?Qe:!1,wt=!m&&f;(y||wt&&Ue&&g==="combobox")&&(Ue=!1);var $t=wt?!1:Ue,et=h.useCallback(function(ye){var pe=ye!==void 0?ye:!Ue;y||(Ke(pe),Ue!==pe&&(E==null||E(pe)))},[y,Ue,Ke,E]),qe=h.useMemo(function(){return(z||[]).some(function(ye){return[`
369
369
  `,`\r
370
- `].includes(ye)})},[z]),ot=h.useContext($p)||{},at=ot.maxCount,nt=ot.rawValues,dt=function(pe,Ce,we){if(!(Ne&&rh(at)&&(nt==null?void 0:nt.size)>=at)){var ke=!0,tt=pe;$==null||$(null);var bt=qB(pe,z,rh(at)?at-nt.size:void 0),Ct=we?null:bt;return g!=="combobox"&&Ct&&(tt="",A==null||A(Ct),et(!1),ke=!1),_&&Ze!==tt&&_(tt,{source:Ce?"typing":"effect"}),ke}},Dt=function(pe){!pe||!pe.trim()||_(pe,{source:"submit"})};h.useEffect(function(){!Ue&&!Ne&&g!=="combobox"&&dt("",!1,!1)},[Ue]),h.useEffect(function(){Qe&&y&&Ke(!1),y&&!ze.current&&Te(!1)},[y]);var Nt=Xx(),Gt=le(Nt,2),Rt=Gt[0],Bt=Gt[1],Ft=h.useRef(!1),Xt=function(pe){var Ce=Rt(),we=pe.key,ke=we==="Enter";if(ke&&(g!=="combobox"&&pe.preventDefault(),Ue||et(!0)),Bt(!!Ze),we==="Backspace"&&!Ce&&Ne&&!Ze&&u.length){for(var tt=Pe(u),bt=null,Ct=tt.length-1;Ct>=0;Ct-=1){var jt=tt[Ct];if(!jt.disabled){tt.splice(Ct,1),bt=jt;break}}bt&&d(tt,{type:"remove",values:[bt]})}for(var zt=arguments.length,nn=new Array(zt>1?zt-1:0),gn=1;gn<zt;gn++)nn[gn-1]=arguments[gn];if(Ue&&(!ke||!Ft.current)){var pn;ke&&(Ft.current=!0),(pn=$e.current)===null||pn===void 0||pn.onKeyDown.apply(pn,[pe].concat(nn))}me==null||me.apply(void 0,[pe].concat(nn))},Mn=function(pe){for(var Ce=arguments.length,we=new Array(Ce>1?Ce-1:0),ke=1;ke<Ce;ke++)we[ke-1]=arguments[ke];if(Ue){var tt;(tt=$e.current)===null||tt===void 0||tt.onKeyUp.apply(tt,[pe].concat(we))}pe.key==="Enter"&&(Ft.current=!1),ce==null||ce.apply(void 0,[pe].concat(we))},Yt=function(pe){var Ce=u.filter(function(we){return we!==pe});d(Ce,{type:"remove",values:[pe]})},sn=function(){Ft.current=!1},Ve=h.useRef(!1),rt=function(){Te(!0),y||(ge&&!Ve.current&&ge.apply(void 0,arguments),oe.includes("focus")&&et(!0)),Ve.current=!0},Xe=function(){ze.current=!0,Te(!1,function(){Ve.current=!1,ze.current=!1,et(!1)}),!y&&(Ze&&(g==="tags"?_(Ze,{source:"submit"}):g==="multiple"&&_("",{source:"blur"})),ne&&ne.apply(void 0,arguments))},De=[];h.useEffect(function(){return function(){De.forEach(function(ye){return clearTimeout(ye)}),De.splice(0,De.length)}},[]);var ft=function(pe){var Ce,we=pe.target,ke=(Ce=Ae.current)===null||Ce===void 0?void 0:Ce.getPopupElement();if(ke&&ke.contains(we)){var tt=setTimeout(function(){var zt=De.indexOf(tt);if(zt!==-1&&De.splice(zt,1),He(),!ie&&!ke.contains(document.activeElement)){var nn;(nn=_e.current)===null||nn===void 0||nn.focus()}});De.push(tt)}for(var bt=arguments.length,Ct=new Array(bt>1?bt-1:0),jt=1;jt<bt;jt++)Ct[jt-1]=arguments[jt];Oe==null||Oe.apply(void 0,[pe].concat(Ct))},Et=h.useState({}),Ot=le(Et,2),ln=Ot[1];function en(){ln({})}var dn;Tt&&(dn=function(pe){et(pe)}),lB(function(){var ye;return[Se.current,(ye=Ae.current)===null||ye===void 0?void 0:ye.getPopupElement()]},$t,et,!!Tt);var cn=h.useMemo(function(){return q(q({},t),{},{notFoundContent:m,open:Ue,triggerOpen:$t,id:r,showSearch:je,multiple:Ne,toggleOpen:et})},[t,m,$t,Ue,r,je,Ne,et]),tn=!!B||b,En;tn&&(En=h.createElement(cu,{className:re("".concat(o,"-arrow"),W({},"".concat(o,"-arrow-loading"),b)),customizeIcon:B,customizeIconProps:{loading:b,searchValue:Ze,open:Ue,focused:Be,showSearch:je}}));var Rn=function(){var pe;v==null||v(),(pe=_e.current)===null||pe===void 0||pe.focus(),d([],{type:"clear",values:u}),dt("",!1,!1)},T=iB(o,Rn,u,k,F,y,Ze,g),U=T.allowClear,j=T.clearIcon,te=h.createElement(H,{ref:$e}),ae=re(o,i,W(W(W(W(W(W(W(W(W(W({},"".concat(o,"-focused"),Be),"".concat(o,"-multiple"),Ne),"".concat(o,"-single"),!Ne),"".concat(o,"-allow-clear"),k),"".concat(o,"-show-arrow"),tn),"".concat(o,"-disabled"),y),"".concat(o,"-loading"),b),"".concat(o,"-open"),Ue),"".concat(o,"-customize-input"),ht),"".concat(o,"-show-search"),je)),Z=h.createElement(o1,{ref:Ae,disabled:y,prefixCls:o,visible:$t,popupElement:te,animation:L,transitionName:G,dropdownStyle:J,dropdownClassName:V,direction:l,dropdownMatchSelectWidth:X,dropdownRender:Q,dropdownAlign:ue,placement:Y,builtinPlacements:fe,getPopupContainer:be,empty:f,getTriggerDOMNode:function(pe){return he.current||pe},onPopupVisibleChange:dn,onPopupMouseEnter:en},Tt?h.cloneElement(Tt,{ref:Pt}):h.createElement(e1,Le({},t,{domRef:he,prefixCls:o,inputElement:ht,ref:_e,id:r,prefix:P,showSearch:je,autoClearSearchValue:D,mode:g,activeDescendantId:R,tagRender:s,values:u,open:Ue,onToggleOpen:et,activeValue:M,searchValue:Ze,onSearch:dt,onSearchSubmit:Dt,onRemove:Yt,tokenWithEnter:qe,onInputBlur:sn}))),xe;return Tt?xe=Z:xe=h.createElement("div",Le({className:ae},O,{ref:Se,onMouseDown:ft,onKeyDown:Xt,onKeyUp:Mn,onFocus:rt,onBlur:Xe}),h.createElement(KB,{visible:Be&&!Ue,values:u}),Z,En,U&&j),h.createElement(Gx.Provider,{value:cn},xe)});process.env.NODE_ENV!=="production"&&(a1.displayName="BaseSelect");var Mp=function(){return null};Mp.isSelectOptGroup=!0;var Rp=function(){return null};Rp.isSelectOption=!0;var s1=h.forwardRef(function(t,e){var n=t.height,r=t.offsetY,o=t.offsetX,i=t.children,a=t.prefixCls,s=t.onInnerResize,l=t.innerProps,c=t.rtl,u=t.extra,d={},f={display:"flex",flexDirection:"column"};return r!==void 0&&(d={height:n,position:"relative",overflow:"hidden"},f=q(q({},f),{},W(W(W(W(W({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),h.createElement("div",{style:d},h.createElement(Co,{onResize:function(m){var v=m.offsetHeight;v&&s&&s()}},h.createElement("div",Le({style:f,className:re(W({},"".concat(a,"-holder-inner"),a)),ref:e},l),i,u)))});s1.displayName="Filler";function XB(t){var e=t.children,n=t.setRef,r=h.useCallback(function(o){n(o)},[]);return h.cloneElement(e,{ref:r})}function YB(t,e,n,r,o,i,a,s){var l=s.getKey;return t.slice(e,n+1).map(function(c,u){var d=e+u,f=a(c,d,{style:{width:r},offsetX:o}),p=l(c);return h.createElement(XB,{key:p,setRef:function(v){return i(c,v)}},f)})}function JB(t,e,n){var r=t.length,o=e.length,i,a;if(r===0&&o===0)return null;r<o?(i=t,a=e):(i=e,a=t);var s={__EMPTY_ITEM__:!0};function l(m){return m!==void 0?n(m):s}for(var c=null,u=Math.abs(r-o)!==1,d=0;d<a.length;d+=1){var f=l(i[d]),p=l(a[d]);if(f!==p){c=d,u=u||f!==l(a[d+1]);break}}return c===null?null:{index:c,multiple:u}}function QB(t,e,n){var r=h.useState(t),o=le(r,2),i=o[0],a=o[1],s=h.useState(null),l=le(s,2),c=l[0],u=l[1];return h.useEffect(function(){var d=JB(i||[],t||[],e);(d==null?void 0:d.index)!==void 0&&u(t[d.index]),a(t)},[t]),[c]}var ib=(typeof navigator>"u"?"undefined":st(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const l1=function(t,e,n,r){var o=N.useRef(!1),i=N.useRef(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var s=N.useRef({top:t,bottom:e,left:n,right:r});return s.current.top=t,s.current.bottom=e,s.current.left=n,s.current.right=r,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&d?(clearTimeout(i.current),o.current=!1):(!d||o.current)&&a(),!o.current&&d}};function ZB(t,e,n,r,o,i,a){var s=N.useRef(0),l=N.useRef(null),c=N.useRef(null),u=N.useRef(!1),d=l1(e,n,r,o);function f(b,C){if(kt.cancel(l.current),!d(!1,C)){var x=b;if(!x._virtualHandled)x._virtualHandled=!0;else return;s.current+=C,c.current=C,ib||x.preventDefault(),l.current=kt(function(){var S=u.current?10:1;a(s.current*S,!1),s.current=0})}}function p(b,C){a(C,!0),ib||b.preventDefault()}var m=N.useRef(null),v=N.useRef(null);function g(b){if(t){kt.cancel(v.current),v.current=kt(function(){m.current=null},2);var C=b.deltaX,x=b.deltaY,S=b.shiftKey,w=C,E=x;(m.current==="sx"||!m.current&&S&&x&&!C)&&(w=x,E=0,m.current="sx");var M=Math.abs(w),$=Math.abs(E);m.current===null&&(m.current=i&&M>$?"x":"y"),m.current==="y"?f(b,E):p(b,w)}}function y(b){t&&(u.current=b.detail===c.current)}return[g,y]}function ej(t,e,n,r){var o=h.useMemo(function(){return[new Map,[]]},[t,n.id,r]),i=le(o,2),a=i[0],s=i[1],l=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,f=a.get(u),p=a.get(d);if(f===void 0||p===void 0)for(var m=t.length,v=s.length;v<m;v+=1){var g,y=t[v],b=e(y);a.set(b,v);var C=(g=n.get(b))!==null&&g!==void 0?g:r;if(s[v]=(s[v-1]||0)+C,b===u&&(f=v),b===d&&(p=v),f!==void 0&&p!==void 0)break}return{top:s[f-1]||0,bottom:s[p]}};return l}var tj=function(){function t(){xn(this,t),W(this,"maps",void 0),W(this,"id",0),W(this,"diffKeys",new Set),this.maps=Object.create(null)}return wn(t,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1,this.diffKeys.add(n)}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),t}();function ab(t){var e=parseFloat(t);return isNaN(e)?0:e}function nj(t,e,n){var r=h.useState(0),o=le(r,2),i=o[0],a=o[1],s=N.useRef(new Map),l=N.useRef(new tj),c=N.useRef(0);function u(){c.current+=1}function d(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var m=function(){var y=!1;s.current.forEach(function(b,C){if(b&&b.offsetParent){var x=b.offsetHeight,S=getComputedStyle(b),w=S.marginTop,E=S.marginBottom,M=ab(w),$=ab(E),R=x+M+$;l.current.get(C)!==R&&(l.current.set(C,R),y=!0)}}),y&&a(function(b){return b+1})};if(p)m();else{c.current+=1;var v=c.current;Promise.resolve().then(function(){v===c.current&&m()})}}function f(p,m){var v=t(p);s.current.get(v),m?(s.current.set(v,m),d()):s.current.delete(v)}return N.useEffect(function(){return u},[]),[f,d,l.current,i]}var sb=14/15;function rj(t,e,n){var r=N.useRef(!1),o=N.useRef(0),i=N.useRef(0),a=N.useRef(null),s=N.useRef(null),l,c=function(p){if(r.current){var m=Math.ceil(p.touches[0].pageX),v=Math.ceil(p.touches[0].pageY),g=o.current-m,y=i.current-v,b=Math.abs(g)>Math.abs(y);b?o.current=m:i.current=v;var C=n(b,b?g:y,!1,p);C&&p.preventDefault(),clearInterval(s.current),C&&(s.current=setInterval(function(){b?g*=sb:y*=sb;var x=Math.floor(b?g:y);(!n(b,x,!0)||Math.abs(x)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},d=function(p){l(),p.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(p.touches[0].pageX),i.current=Math.ceil(p.touches[0].pageY),a.current=p.target,a.current.addEventListener("touchmove",c,{passive:!1}),a.current.addEventListener("touchend",u,{passive:!0}))};l=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},Jt(function(){return t&&e.current.addEventListener("touchstart",d,{passive:!0}),function(){var f;(f=e.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(s.current)}},[t])}function lb(t){return Math.floor(Math.pow(t,.5))}function ih(t,e){var n="touches"in t?t.touches[0]:t;return n[e?"pageX":"pageY"]-window[e?"scrollX":"scrollY"]}function oj(t,e,n){h.useEffect(function(){var r=e.current;if(t&&r){var o=!1,i,a,s=function(){kt.cancel(i)},l=function f(){s(),i=kt(function(){n(a),f()})},c=function(p){if(!(p.target.draggable||p.button!==0)){var m=p;m._virtualHandled||(m._virtualHandled=!0,o=!0)}},u=function(){o=!1,s()},d=function(p){if(o){var m=ih(p,!1),v=r.getBoundingClientRect(),g=v.top,y=v.bottom;if(m<=g){var b=g-m;a=-lb(b),l()}else if(m>=y){var C=m-y;a=lb(C),l()}else s()}};return r.addEventListener("mousedown",c),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",d),function(){r.removeEventListener("mousedown",c),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",d),s()}}},[t])}var cb=10;function ij(t,e,n,r,o,i,a,s){var l=h.useRef(),c=h.useState(null),u=le(c,2),d=u[0],f=u[1];return Jt(function(){if(d&&d.times<cb){if(!t.current){f(function(F){return q({},F)});return}i();var p=d.targetAlign,m=d.originAlign,v=d.index,g=d.offset,y=t.current.clientHeight,b=!1,C=p,x=null;if(y){for(var S=p||m,w=0,E=0,M=0,$=Math.min(e.length-1,v),R=0;R<=$;R+=1){var I=o(e[R]);E=w;var D=n.get(I);M=E+(D===void 0?r:D),w=M}for(var _=S==="top"?g:y-g,A=$;A>=0;A-=1){var z=o(e[A]),k=n.get(z);if(k===void 0){b=!0;break}if(_-=k,_<=0)break}switch(S){case"top":x=E-g;break;case"bottom":x=M-y+g;break;default:{var P=t.current.scrollTop,B=P+y;E<P?C="top":M>B&&(C="bottom")}}x!==null&&a(x),x!==d.lastTop&&(b=!0)}b&&f(q(q({},d),{},{times:d.times+1,targetAlign:C,lastTop:x}))}else process.env.NODE_ENV!=="production"&&(d==null?void 0:d.times)===cb&&yt(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[d,t.current]),function(p){if(p==null){s();return}if(kt.cancel(l.current),typeof p=="number")a(p);else if(p&&st(p)==="object"){var m,v=p.align;"index"in p?m=p.index:m=e.findIndex(function(b){return o(b)===p.key});var g=p.offset,y=g===void 0?0:g;f({times:0,index:m,offset:y,originAlign:v})}}}var ah=h.forwardRef(function(t,e){var n=t.prefixCls,r=t.rtl,o=t.scrollOffset,i=t.scrollRange,a=t.onStartMove,s=t.onStopMove,l=t.onScroll,c=t.horizontal,u=t.spinSize,d=t.containerSize,f=t.style,p=t.thumbStyle,m=t.showScrollBar,v=h.useState(!1),g=le(v,2),y=g[0],b=g[1],C=h.useState(null),x=le(C,2),S=x[0],w=x[1],E=h.useState(null),M=le(E,2),$=M[0],R=M[1],I=!r,D=h.useRef(),_=h.useRef(),A=h.useState(m),z=le(A,2),k=z[0],P=z[1],B=h.useRef(),F=function(){m===!0||m===!1||(clearTimeout(B.current),P(!0),B.current=setTimeout(function(){P(!1)},3e3))},H=i-d||0,L=d-u||0,G=h.useMemo(function(){if(o===0||H===0)return 0;var de=o/H;return de*L},[o,H,L]),J=function(oe){oe.stopPropagation(),oe.preventDefault()},V=h.useRef({top:G,dragging:y,pageY:S,startTop:$});V.current={top:G,dragging:y,pageY:S,startTop:$};var X=function(oe){b(!0),w(ih(oe,c)),R(V.current.top),a(),oe.stopPropagation(),oe.preventDefault()};h.useEffect(function(){var de=function(ce){ce.preventDefault()},oe=D.current,ge=_.current;return oe.addEventListener("touchstart",de,{passive:!1}),ge.addEventListener("touchstart",X,{passive:!1}),function(){oe.removeEventListener("touchstart",de),ge.removeEventListener("touchstart",X)}},[]);var Q=h.useRef();Q.current=H;var ue=h.useRef();ue.current=L,h.useEffect(function(){if(y){var de,oe=function(ce){var me=V.current,Oe=me.dragging,Me=me.pageY,Ne=me.startTop;kt.cancel(de);var je=D.current.getBoundingClientRect(),O=d/(c?je.width:je.height);if(Oe){var ee=(ih(ce,c)-Me)*O,K=Ne;!I&&c?K-=ee:K+=ee;var ie=Q.current,Ee=ue.current,Se=Ee?K/Ee:0,he=Math.ceil(Se*ie);he=Math.max(he,0),he=Math.min(he,ie),de=kt(function(){l(he,c)})}},ge=function(){b(!1),s()};return window.addEventListener("mousemove",oe,{passive:!0}),window.addEventListener("touchmove",oe,{passive:!0}),window.addEventListener("mouseup",ge,{passive:!0}),window.addEventListener("touchend",ge,{passive:!0}),function(){window.removeEventListener("mousemove",oe),window.removeEventListener("touchmove",oe),window.removeEventListener("mouseup",ge),window.removeEventListener("touchend",ge),kt.cancel(de)}}},[y]),h.useEffect(function(){return F(),function(){clearTimeout(B.current)}},[o]),h.useImperativeHandle(e,function(){return{delayHidden:F}});var Y="".concat(n,"-scrollbar"),fe={position:"absolute",visibility:k?null:"hidden"},be={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(fe.height=8,fe.left=0,fe.right=0,fe.bottom=0,be.height="100%",be.width=u,I?be.left=G:be.right=G):(fe.width=8,fe.top=0,fe.bottom=0,I?fe.right=0:fe.left=0,be.width="100%",be.height=u,be.top=G),h.createElement("div",{ref:D,className:re(Y,W(W(W({},"".concat(Y,"-horizontal"),c),"".concat(Y,"-vertical"),!c),"".concat(Y,"-visible"),k)),style:q(q({},fe),f),onMouseDown:J,onMouseMove:F},h.createElement("div",{ref:_,className:re("".concat(Y,"-thumb"),W({},"".concat(Y,"-thumb-moving"),y)),style:q(q({},be),p),onMouseDown:X}))});process.env.NODE_ENV!=="production"&&(ah.displayName="ScrollBar");var aj=20;function ub(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=t/e*t;return isNaN(n)&&(n=0),n=Math.max(n,aj),Math.floor(n)}var sj=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],lj=[],cj={overflowY:"auto",overflowAnchor:"none"};function uj(t,e){var n=t.prefixCls,r=n===void 0?"rc-virtual-list":n,o=t.className,i=t.height,a=t.itemHeight,s=t.fullHeight,l=s===void 0?!0:s,c=t.style,u=t.data,d=t.children,f=t.itemKey,p=t.virtual,m=t.direction,v=t.scrollWidth,g=t.component,y=g===void 0?"div":g,b=t.onScroll,C=t.onVirtualScroll,x=t.onVisibleChange,S=t.innerProps,w=t.extraRender,E=t.styles,M=t.showScrollBar,$=M===void 0?"optional":M,R=xt(t,sj),I=h.useCallback(function(Ve){return typeof f=="function"?f(Ve):Ve==null?void 0:Ve[f]},[f]),D=nj(I),_=le(D,4),A=_[0],z=_[1],k=_[2],P=_[3],B=!!(p!==!1&&i&&a),F=h.useMemo(function(){return Object.values(k.maps).reduce(function(Ve,rt){return Ve+rt},0)},[k.id,k.maps]),H=B&&u&&(Math.max(a*u.length,F)>i||!!v),L=m==="rtl",G=re(r,W({},"".concat(r,"-rtl"),L),o),J=u||lj,V=N.useRef(),X=N.useRef(),Q=N.useRef(),ue=N.useState(0),Y=le(ue,2),fe=Y[0],be=Y[1],de=N.useState(0),oe=le(de,2),ge=oe[0],ne=oe[1],ce=N.useState(!1),me=le(ce,2),Oe=me[0],Me=me[1],Ne=function(){Me(!0)},je=function(){Me(!1)},O={getKey:I};function ee(Ve){be(function(rt){var Xe;typeof Ve=="function"?Xe=Ve(rt):Xe=Ve;var De=lt(Xe);return V.current.scrollTop=De,De})}var K=N.useRef({start:0,end:J.length}),ie=N.useRef(),Ee=QB(J,I),Se=le(Ee,1),he=Se[0];ie.current=he;var Ae=h.useMemo(function(){if(!B)return{scrollHeight:void 0,start:0,end:J.length-1,offset:void 0};if(!H){var Ve;return{scrollHeight:((Ve=X.current)===null||Ve===void 0?void 0:Ve.offsetHeight)||0,start:0,end:J.length-1,offset:void 0}}for(var rt=0,Xe,De,ft,Et=J.length,Ot=0;Ot<Et;Ot+=1){var ln=J[Ot],en=I(ln),dn=k.get(en),cn=rt+(dn===void 0?a:dn);cn>=fe&&Xe===void 0&&(Xe=Ot,De=rt),cn>fe+i&&ft===void 0&&(ft=Ot),rt=cn}return Xe===void 0&&(Xe=0,De=0,ft=Math.ceil(i/a)),ft===void 0&&(ft=J.length-1),ft=Math.min(ft+1,J.length-1),{scrollHeight:rt,start:Xe,end:ft,offset:De}},[H,B,fe,J,P,i]),_e=Ae.scrollHeight,$e=Ae.start,ze=Ae.end,Fe=Ae.offset;K.current.start=$e,K.current.end=ze,h.useLayoutEffect(function(){var Ve=k.getRecord();if(Ve.size===1){var rt=Array.from(Ve)[0],Xe=J[$e];if(Xe){var De=I(Xe);if(De===rt){var ft=k.get(rt),Et=ft-a;ee(function(Ot){return Ot+Et})}}}k.resetRecord()},[_e]);var Ie=h.useState({width:0,height:i}),Be=le(Ie,2),Te=Be[0],He=Be[1],Ze=function(rt){He({width:rt.offsetWidth,height:rt.offsetHeight})},ht=N.useRef(),Tt=N.useRef(),Pt=h.useMemo(function(){return ub(Te.width,v)},[Te.width,v]),an=h.useMemo(function(){return ub(Te.height,_e)},[Te.height,_e]),Ye=_e-i,We=N.useRef(Ye);We.current=Ye;function lt(Ve){var rt=Ve;return Number.isNaN(We.current)||(rt=Math.min(rt,We.current)),rt=Math.max(rt,0),rt}var it=fe<=0,pt=fe>=Ye,Qe=ge<=0,Ke=ge>=v,Ue=l1(it,pt,Qe,Ke),wt=function(){return{x:L?-ge:ge,y:fe}},$t=N.useRef(wt()),et=Wt(function(Ve){if(C){var rt=q(q({},wt()),Ve);($t.current.x!==rt.x||$t.current.y!==rt.y)&&(C(rt),$t.current=rt)}});function qe(Ve,rt){var Xe=Ve;rt?(_r.flushSync(function(){ne(Xe)}),et()):ee(Xe)}function ot(Ve){var rt=Ve.currentTarget.scrollTop;rt!==fe&&ee(rt),b==null||b(Ve),et()}var at=function(rt){var Xe=rt,De=v?v-Te.width:0;return Xe=Math.max(Xe,0),Xe=Math.min(Xe,De),Xe},nt=Wt(function(Ve,rt){rt?(_r.flushSync(function(){ne(function(Xe){var De=Xe+(L?-Ve:Ve);return at(De)})}),et()):ee(function(Xe){var De=Xe+Ve;return De})}),dt=ZB(B,it,pt,Qe,Ke,!!v,nt),Dt=le(dt,2),Nt=Dt[0],Gt=Dt[1];rj(B,V,function(Ve,rt,Xe,De){var ft=De;return Ue(Ve,rt,Xe)?!1:!ft||!ft._virtualHandled?(ft&&(ft._virtualHandled=!0),Nt({preventDefault:function(){},deltaX:Ve?rt:0,deltaY:Ve?0:rt}),!0):!1}),oj(H,V,function(Ve){ee(function(rt){return rt+Ve})}),Jt(function(){function Ve(Xe){var De=it&&Xe.detail<0,ft=pt&&Xe.detail>0;B&&!De&&!ft&&Xe.preventDefault()}var rt=V.current;return rt.addEventListener("wheel",Nt,{passive:!1}),rt.addEventListener("DOMMouseScroll",Gt,{passive:!0}),rt.addEventListener("MozMousePixelScroll",Ve,{passive:!1}),function(){rt.removeEventListener("wheel",Nt),rt.removeEventListener("DOMMouseScroll",Gt),rt.removeEventListener("MozMousePixelScroll",Ve)}},[B,it,pt]),Jt(function(){if(v){var Ve=at(ge);ne(Ve),et({x:Ve})}},[Te.width,v]);var Rt=function(){var rt,Xe;(rt=ht.current)===null||rt===void 0||rt.delayHidden(),(Xe=Tt.current)===null||Xe===void 0||Xe.delayHidden()},Bt=ij(V,J,k,a,I,function(){return z(!0)},ee,Rt);h.useImperativeHandle(e,function(){return{nativeElement:Q.current,getScrollInfo:wt,scrollTo:function(rt){function Xe(De){return De&&st(De)==="object"&&("left"in De||"top"in De)}Xe(rt)?(rt.left!==void 0&&ne(at(rt.left)),Bt(rt.top)):Bt(rt)}}}),Jt(function(){if(x){var Ve=J.slice($e,ze+1);x(Ve,J)}},[$e,ze,J]);var Ft=ej(J,I,k,a),Xt=w==null?void 0:w({start:$e,end:ze,virtual:H,offsetX:ge,offsetY:Fe,rtl:L,getSize:Ft}),Mn=YB(J,$e,ze,v,ge,A,d,O),Yt=null;i&&(Yt=q(W({},l?"height":"maxHeight",i),cj),B&&(Yt.overflowY="hidden",v&&(Yt.overflowX="hidden"),Oe&&(Yt.pointerEvents="none")));var sn={};return L&&(sn.dir="rtl"),h.createElement("div",Le({ref:Q,style:q(q({},c),{},{position:"relative"}),className:G},sn,R),h.createElement(Co,{onResize:Ze},h.createElement(y,{className:"".concat(r,"-holder"),style:Yt,ref:V,onScroll:ot,onMouseEnter:Rt},h.createElement(s1,{prefixCls:r,height:_e,offsetX:ge,offsetY:Fe,scrollWidth:v,onInnerResize:z,ref:X,innerProps:S,rtl:L,extra:Xt},Mn))),H&&_e>i&&h.createElement(ah,{ref:ht,prefixCls:r,scrollOffset:fe,scrollRange:_e,rtl:L,onScroll:qe,onStartMove:Ne,onStopMove:je,spinSize:an,containerSize:Te.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb,showScrollBar:$}),H&&v>Te.width&&h.createElement(ah,{ref:Tt,prefixCls:r,scrollOffset:ge,scrollRange:v,rtl:L,onScroll:qe,onStartMove:Ne,onStopMove:je,spinSize:Pt,containerSize:Te.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb,showScrollBar:$}))}var c1=h.forwardRef(uj);c1.displayName="List";function dj(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var fj=["disabled","title","children","style","className"];function db(t){return typeof t=="string"||typeof t=="number"}var hj=function(e,n){var r=aB(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,p=h.useContext($p),m=p.maxCount,v=p.flattenOptions,g=p.onActiveValue,y=p.defaultActiveFirstOption,b=p.onSelect,C=p.menuItemSelectedIcon,x=p.rawValues,S=p.fieldNames,w=p.virtual,E=p.direction,M=p.listHeight,$=p.listItemHeight,R=p.optionRender,I="".concat(o,"-item"),D=Rs(function(){return v},[a,v],function(de,oe){return oe[0]&&de[1]!==oe[1]}),_=h.useRef(null),A=h.useMemo(function(){return s&&rh(m)&&(x==null?void 0:x.size)>=m},[s,m,x==null?void 0:x.size]),z=function(oe){oe.preventDefault()},k=function(oe){var ge;(ge=_.current)===null||ge===void 0||ge.scrollTo(typeof oe=="number"?{index:oe}:oe)},P=h.useCallback(function(de){return l==="combobox"?!1:x.has(de)},[l,Pe(x).toString(),x.size]),B=function(oe){for(var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ne=D.length,ce=0;ce<ne;ce+=1){var me=(oe+ce*ge+ne)%ne,Oe=D[me]||{},Me=Oe.group,Ne=Oe.data;if(!Me&&!(Ne!=null&&Ne.disabled)&&(P(Ne.value)||!A))return me}return-1},F=h.useState(function(){return B(0)}),H=le(F,2),L=H[0],G=H[1],J=function(oe){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;G(oe);var ne={source:ge?"keyboard":"mouse"},ce=D[oe];if(!ce){g(null,-1,ne);return}g(ce.value,oe,ne)};N.useEffect(function(){J(y!==!1?B(0):-1)},[D.length,c]);var V=h.useCallback(function(de){return l==="combobox"?String(de).toLowerCase()===c.toLowerCase():x.has(de)},[l,c,Pe(x).toString(),x.size]);N.useEffect(function(){var de=setTimeout(function(){if(!s&&a&&x.size===1){var ge=Array.from(x)[0],ne=D.findIndex(function(ce){var me=ce.data;return me.value===ge});ne!==-1&&(J(ne),k(ne))}});if(a){var oe;(oe=_.current)===null||oe===void 0||oe.scrollTo(void 0)}return function(){return clearTimeout(de)}},[a,c]);var X=function(oe){oe!==void 0&&b(oe,{selected:!x.has(oe)}),s||u(!1)};if(h.useImperativeHandle(n,function(){return{onKeyDown:function(oe){var ge=oe.which,ne=oe.ctrlKey;switch(ge){case Je.N:case Je.P:case Je.UP:case Je.DOWN:{var ce=0;if(ge===Je.UP?ce=-1:ge===Je.DOWN?ce=1:dj()&&ne&&(ge===Je.N?ce=1:ge===Je.P&&(ce=-1)),ce!==0){var me=B(L+ce,ce);k(me),J(me,!0)}break}case Je.TAB:case Je.ENTER:{var Oe,Me=D[L];Me&&!(Me!=null&&(Oe=Me.data)!==null&&Oe!==void 0&&Oe.disabled)&&!A?X(Me.value):X(void 0),a&&oe.preventDefault();break}case Je.ESC:u(!1),a&&oe.stopPropagation()}},onKeyUp:function(){},scrollTo:function(oe){k(oe)}}}),D.length===0)return h.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(I,"-empty"),onMouseDown:z},d);var Q=Object.keys(S).map(function(de){return S[de]}),ue=function(oe){return oe.label};function Y(de,oe){var ge=de.group;return{role:ge?"presentation":"option",id:"".concat(i,"_list_").concat(oe)}}var fe=function(oe){var ge=D[oe];if(!ge)return null;var ne=ge.data||{},ce=ne.value,me=ge.group,Oe=Zr(ne,!0),Me=ue(ge);return ge?h.createElement("div",Le({"aria-label":typeof Me=="string"&&!me?Me:null},Oe,{key:oe},Y(ge,oe),{"aria-selected":V(ce)}),ce):null},be={role:"listbox",id:"".concat(i,"_list")};return h.createElement(h.Fragment,null,w&&h.createElement("div",Le({},be,{style:{height:0,width:0,overflow:"hidden"}}),fe(L-1),fe(L),fe(L+1)),h.createElement(c1,{itemKey:"key",ref:_,data:D,height:M,itemHeight:$,fullHeight:!1,onMouseDown:z,onScroll:f,virtual:w,direction:E,innerProps:w?null:be},function(de,oe){var ge=de.group,ne=de.groupOption,ce=de.data,me=de.label,Oe=de.value,Me=ce.key;if(ge){var Ne,je=(Ne=ce.title)!==null&&Ne!==void 0?Ne:db(me)?me.toString():void 0;return h.createElement("div",{className:re(I,"".concat(I,"-group"),ce.className),title:je},me!==void 0?me:Me)}var O=ce.disabled,ee=ce.title;ce.children;var K=ce.style,ie=ce.className,Ee=xt(ce,fj),Se=Tn(Ee,Q),he=P(Oe),Ae=O||!he&&A,_e="".concat(I,"-option"),$e=re(I,_e,ie,W(W(W(W({},"".concat(_e,"-grouped"),ne),"".concat(_e,"-active"),L===oe&&!Ae),"".concat(_e,"-disabled"),Ae),"".concat(_e,"-selected"),he)),ze=ue(de),Fe=!C||typeof C=="function"||he,Ie=typeof ze=="number"?ze:ze||Oe,Be=db(Ie)?Ie.toString():void 0;return ee!==void 0&&(Be=ee),h.createElement("div",Le({},Zr(Se),w?{}:Y(de,oe),{"aria-selected":V(Oe),className:$e,title:Be,onMouseMove:function(){L===oe||Ae||J(oe)},onClick:function(){Ae||X(Oe)},style:K}),h.createElement("div",{className:"".concat(_e,"-content")},typeof R=="function"?R(de,{index:oe}):Ie),h.isValidElement(C)||he,Fe&&h.createElement(cu,{className:"".concat(I,"-option-state"),customizeIcon:C,customizeIconProps:{value:Oe,disabled:Ae,isSelected:he}},he?"✓":null))}))},u1=h.forwardRef(hj);process.env.NODE_ENV!=="production"&&(u1.displayName="OptionList");const pj=function(t,e){var n=h.useRef({values:new Map,options:new Map}),r=h.useMemo(function(){var i=n.current,a=i.values,s=i.options,l=t.map(function(d){if(d.label===void 0){var f;return q(q({},d),{},{label:(f=a.get(d.value))===null||f===void 0?void 0:f.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,e.get(d.value)||s.get(d.value))}),n.current.values=c,n.current.options=u,l},[t,e]),o=h.useCallback(function(i){return e.get(i)||n.current.options.get(i)},[e]);return[r,o]};function wd(t,e){return Op(t).join("").toUpperCase().includes(e)}const mj=function(t,e,n,r,o){return h.useMemo(function(){if(!n||r===!1)return t;var i=e.options,a=e.label,s=e.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(p,m){return o?wd(m[o],u):m[i]?wd(m[a!=="children"?a:"label"],u):wd(m[s],u)},f=c?function(p){return oh(p)}:function(p){return p};return t.forEach(function(p){if(p[i]){var m=d(n,f(p));if(m)l.push(p);else{var v=p[i].filter(function(g){return d(n,f(g))});v.length&&l.push(q(q({},p),{},W({},i,v)))}return}d(n,f(p))&&l.push(p)}),l},[t,r,o,n,e])};var fb=0,gj=process.env.NODE_ENV!=="test"&&Gn();function vj(){var t;return gj?(t=fb,fb+=1):t="TEST_OR_SSR",t}function bj(t){var e=h.useState(),n=le(e,2),r=n[0],o=n[1];return h.useEffect(function(){o("rc_select_".concat(vj()))},[]),t||r}var yj=["children","value"],Cj=["children"];function Sj(t){var e=t,n=e.key,r=e.props,o=r.children,i=r.value,a=xt(r,yj);return q({key:n,value:i!==void 0?i:n,children:o},a)}function Ip(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return gr(t).map(function(n,r){if(!h.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=xt(s,Cj);return e||!i?Sj(n):q(q({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:Ip(l)})}).filter(function(n){return n})}var xj=function(e,n,r,o,i){return h.useMemo(function(){var a=e,s=!e;s&&(a=Ip(n));var l=new Map,c=new Map,u=function(p,m,v){v&&typeof v=="string"&&p.set(m[v],m)},d=function f(p){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v<p.length;v+=1){var g=p[v];!g[r.options]||m?(l.set(g[r.value],g),u(c,g,r.label),u(c,g,o),u(c,g,i)):f(g[r.options],!0)}};return d(a),{options:a,valueOptions:l,labelOptions:c}},[e,n,r,o,i])};function hb(t){var e=h.useRef();e.current=t;var n=h.useCallback(function(){return e.current.apply(e,arguments)},[]);return n}function wj(t){var e=t.mode,n=t.options,r=t.children,o=t.backfill,i=t.allowClear,a=t.placeholder,s=t.getInputElement,l=t.showSearch,c=t.onSearch,u=t.defaultOpen,d=t.autoFocus,f=t.labelInValue,p=t.value,m=t.inputValue,v=t.optionLabelProp,g=yc(e),y=l!==void 0?l:g||e==="combobox",b=n||Ip(r);if(yt(e!=="tags"||b.every(function(w){return!w.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),e==="tags"||e==="combobox"){var C=b.some(function(w){return w.options?w.options.some(function(E){return typeof("value"in E?E.value:E.key)=="number"}):typeof("value"in w?w.value:w.key)=="number"});yt(!C,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(yt(e!=="combobox"||!v,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),yt(e==="combobox"||!o,"`backfill` only works with `combobox` mode."),yt(e==="combobox"||!s,"`getInputElement` only work with `combobox` mode."),sf(e!=="combobox"||!s||!i||!a,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),c&&!y&&e!=="combobox"&&e!=="tags"&&yt(!1,"`onSearch` should work with `showSearch` instead of use alone."),sf(!u||d,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),p!=null){var x=Op(p);yt(!f||x.every(function(w){return st(w)==="object"&&("key"in w||"value"in w)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),yt(!g||Array.isArray(p),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var S=null;gr(r).some(function(w){if(!h.isValidElement(w)||!w.type)return!1;var E=w,M=E.type;if(M.isSelectOption)return!1;if(M.isSelectOptGroup){var $=gr(w.props.children).every(function(R){return!h.isValidElement(R)||!w.type||R.type.isSelectOption?!0:(S=R.type,!1)});return!$}return S=M,!0}),S&&yt(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(S.displayName||S.name||S,"`.")),yt(m===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ej(t,e){if(t){var n=function r(o){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=0;a<o.length;a++){var s=o[a];if(s[e==null?void 0:e.value]===null)return yt(!1,"`value` in Select options should not be `null`."),!0;if(!i&&Array.isArray(s[e==null?void 0:e.options])&&r(s[e==null?void 0:e.options],!0))break}};n(t)}}var Nj=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Oj=["inputValue"];function $j(t){return!t||st(t)!=="object"}var d1=h.forwardRef(function(t,e){var n=t.id,r=t.mode,o=t.prefixCls,i=o===void 0?"rc-select":o,a=t.backfill,s=t.fieldNames,l=t.inputValue,c=t.searchValue,u=t.onSearch,d=t.autoClearSearchValue,f=d===void 0?!0:d,p=t.onSelect,m=t.onDeselect,v=t.dropdownMatchSelectWidth,g=v===void 0?!0:v,y=t.filterOption,b=t.filterSort,C=t.optionFilterProp,x=t.optionLabelProp,S=t.options,w=t.optionRender,E=t.children,M=t.defaultActiveFirstOption,$=t.menuItemSelectedIcon,R=t.virtual,I=t.direction,D=t.listHeight,_=D===void 0?200:D,A=t.listItemHeight,z=A===void 0?20:A,k=t.labelRender,P=t.value,B=t.defaultValue,F=t.labelInValue,H=t.onChange,L=t.maxCount,G=xt(t,Nj),J=bj(n),V=yc(r),X=!!(!S&&E),Q=h.useMemo(function(){return y===void 0&&r==="combobox"?!1:y},[y,r]),ue=h.useMemo(function(){return i1(s,X)},[JSON.stringify(s),X]),Y=mn("",{value:c!==void 0?c:l,postState:function(qe){return qe||""}}),fe=le(Y,2),be=fe[0],de=fe[1],oe=xj(S,E,ue,C,x),ge=oe.valueOptions,ne=oe.labelOptions,ce=oe.options,me=h.useCallback(function(et){var qe=Op(et);return qe.map(function(ot){var at,nt,dt,Dt,Nt;if($j(ot))at=ot;else{var Gt;dt=ot.key,nt=ot.label,at=(Gt=ot.value)!==null&&Gt!==void 0?Gt:dt}var Rt=ge.get(at);if(Rt){var Bt;if(nt===void 0&&(nt=Rt==null?void 0:Rt[x||ue.label]),dt===void 0&&(dt=(Bt=Rt==null?void 0:Rt.key)!==null&&Bt!==void 0?Bt:at),Dt=Rt==null?void 0:Rt.disabled,Nt=Rt==null?void 0:Rt.title,process.env.NODE_ENV!=="production"&&!x){var Ft=Rt==null?void 0:Rt[ue.label];Ft!==void 0&&!h.isValidElement(Ft)&&!h.isValidElement(nt)&&Ft!==nt&&yt(!1,"`label` of `value` is not same as `label` in Select options.")}}return{label:nt,value:at,key:dt,disabled:Dt,title:Nt}})},[ue,x,ge]),Oe=mn(B,{value:P}),Me=le(Oe,2),Ne=Me[0],je=Me[1],O=h.useMemo(function(){var et,qe=V&&Ne===null?[]:Ne,ot=me(qe);return r==="combobox"&&NB((et=ot[0])===null||et===void 0?void 0:et.value)?[]:ot},[Ne,me,r,V]),ee=pj(O,ge),K=le(ee,2),ie=K[0],Ee=K[1],Se=h.useMemo(function(){if(!r&&ie.length===1){var et=ie[0];if(et.value===null&&(et.label===null||et.label===void 0))return[]}return ie.map(function(qe){var ot;return q(q({},qe),{},{label:(ot=typeof k=="function"?k(qe):qe.label)!==null&&ot!==void 0?ot:qe.value})})},[r,ie,k]),he=h.useMemo(function(){return new Set(ie.map(function(et){return et.value}))},[ie]);h.useEffect(function(){if(r==="combobox"){var et,qe=(et=ie[0])===null||et===void 0?void 0:et.value;de(EB(qe)?String(qe):"")}},[ie]);var Ae=hb(function(et,qe){var ot=qe??et;return W(W({},ue.value,et),ue.label,ot)}),_e=h.useMemo(function(){if(r!=="tags")return ce;var et=Pe(ce),qe=function(at){return ge.has(at)};return Pe(ie).sort(function(ot,at){return ot.value<at.value?-1:1}).forEach(function(ot){var at=ot.value;qe(at)||et.push(Ae(at,ot.label))}),et},[Ae,ce,ge,ie,r]),$e=mj(_e,ue,be,Q,C),ze=h.useMemo(function(){return r!=="tags"||!be||$e.some(function(et){return et[C||"value"]===be})||$e.some(function(et){return et[ue.value]===be})?$e:[Ae(be)].concat(Pe($e))},[Ae,C,r,$e,be,ue]),Fe=function et(qe){var ot=Pe(qe).sort(function(at,nt){return b(at,nt,{searchValue:be})});return ot.map(function(at){return Array.isArray(at.options)?q(q({},at),{},{options:at.options.length>0?et(at.options):at.options}):at})},Ie=h.useMemo(function(){return b?Fe(ze):ze},[ze,b,be]),Be=h.useMemo(function(){return WB(Ie,{fieldNames:ue,childrenAsData:X})},[Ie,ue,X]),Te=function(qe){var ot=me(qe);if(je(ot),H&&(ot.length!==ie.length||ot.some(function(dt,Dt){var Nt;return((Nt=ie[Dt])===null||Nt===void 0?void 0:Nt.value)!==(dt==null?void 0:dt.value)}))){var at=F?ot:ot.map(function(dt){return dt.value}),nt=ot.map(function(dt){return oh(Ee(dt.value))});H(V?at:at[0],V?nt:nt[0])}},He=h.useState(null),Ze=le(He,2),ht=Ze[0],Tt=Ze[1],Pt=h.useState(0),an=le(Pt,2),Ye=an[0],We=an[1],lt=M!==void 0?M:r!=="combobox",it=h.useCallback(function(et,qe){var ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},at=ot.source,nt=at===void 0?"keyboard":at;We(qe),a&&r==="combobox"&&et!==null&&nt==="keyboard"&&Tt(String(et))},[a,r]),pt=function(qe,ot,at){var nt=function(){var Yt,sn=Ee(qe);return[F?{label:sn==null?void 0:sn[ue.label],value:qe,key:(Yt=sn==null?void 0:sn.key)!==null&&Yt!==void 0?Yt:qe}:qe,oh(sn)]};if(ot&&p){var dt=nt(),Dt=le(dt,2),Nt=Dt[0],Gt=Dt[1];p(Nt,Gt)}else if(!ot&&m&&at!=="clear"){var Rt=nt(),Bt=le(Rt,2),Ft=Bt[0],Xt=Bt[1];m(Ft,Xt)}},Qe=hb(function(et,qe){var ot,at=V?qe.selected:!0;at?ot=V?[].concat(Pe(ie),[et]):[et]:ot=ie.filter(function(nt){return nt.value!==et}),Te(ot),pt(et,at),r==="combobox"?Tt(""):(!yc||f)&&(de(""),Tt(""))}),Ke=function(qe,ot){Te(qe);var at=ot.type,nt=ot.values;(at==="remove"||at==="clear")&&nt.forEach(function(dt){pt(dt.value,!1,at)})},Ue=function(qe,ot){if(de(qe),Tt(null),ot.source==="submit"){var at=(qe||"").trim();if(at){var nt=Array.from(new Set([].concat(Pe(he),[at])));Te(nt),pt(at,!0),de("")}return}ot.source!=="blur"&&(r==="combobox"&&Te(qe),u==null||u(qe))},wt=function(qe){var ot=qe;r!=="tags"&&(ot=qe.map(function(nt){var dt=ne.get(nt);return dt==null?void 0:dt.value}).filter(function(nt){return nt!==void 0}));var at=Array.from(new Set([].concat(Pe(he),Pe(ot))));Te(at),at.forEach(function(nt){pt(nt,!0)})},$t=h.useMemo(function(){var et=R!==!1&&g!==!1;return q(q({},oe),{},{flattenOptions:Be,onActiveValue:it,defaultActiveFirstOption:lt,onSelect:Qe,menuItemSelectedIcon:$,rawValues:he,fieldNames:ue,virtual:et,direction:I,listHeight:_,listItemHeight:z,childrenAsData:X,maxCount:L,optionRender:w})},[L,oe,Be,it,lt,Qe,$,he,ue,R,g,I,_,z,X,w]);return process.env.NODE_ENV!=="production"&&(wj(t),Ej(ce,ue)),h.createElement($p.Provider,{value:$t},h.createElement(a1,Le({},G,{id:J,prefixCls:i,ref:e,omitDomProps:Oj,mode:r,displayValues:Se,onDisplayValuesChange:Ke,direction:I,searchValue:be,onSearch:Ue,autoClearSearchValue:f,onSearchSplit:wt,dropdownMatchSelectWidth:g,OptionList:u1,emptyOptions:!Be.length,activeValue:ht,activeDescendantId:"".concat(J,"_list_").concat(Ye)})))});process.env.NODE_ENV!=="production"&&(d1.displayName="Select");var Tp=d1;Tp.Option=Rp;Tp.OptGroup=Mp;function Mi(t,e,n){return re({[`${t}-status-success`]:e==="success",[`${t}-status-warning`]:e==="warning",[`${t}-status-error`]:e==="error",[`${t}-status-validating`]:e==="validating",[`${t}-has-feedback`]:n})}const Fs=(t,e)=>e||t,f1=()=>{const[,t]=ar(),[e]=So("Empty"),r=new Ht(t.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return h.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},h.createElement("title",null,(e==null?void 0:e.description)||"Empty"),h.createElement("g",{fill:"none",fillRule:"evenodd"},h.createElement("g",{transform:"translate(24 31.67)"},h.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),h.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),h.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),h.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),h.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),h.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),h.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},h.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),h.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};process.env.NODE_ENV!=="production"&&(f1.displayName="EmptyImage");const h1=()=>{const[,t]=ar(),[e]=So("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=t,{borderColor:a,shadowColor:s,contentColor:l}=N.useMemo(()=>({borderColor:new Ht(n).onBackground(i).toHexString(),shadowColor:new Ht(r).onBackground(i).toHexString(),contentColor:new Ht(o).onBackground(i).toHexString()}),[n,r,o,i]);return h.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},h.createElement("title",null,(e==null?void 0:e.description)||"Empty"),h.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},h.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),h.createElement("g",{fillRule:"nonzero",stroke:a},h.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),h.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))};process.env.NODE_ENV!=="production"&&(h1.displayName="SimpleImage");const Mj=t=>{const{componentCls:e,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=t;return{[e]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${e}-image`]:{height:t.emptyImgHeight,marginBottom:r,opacity:t.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${e}-description`]:{color:t.colorTextDescription},[`${e}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:t.colorTextDescription,[`${e}-description`]:{color:t.colorTextDescription},[`${e}-image`]:{height:t.emptyImgHeightMD}},"&-small":{marginBlock:r,color:t.colorTextDescription,[`${e}-image`]:{height:t.emptyImgHeightSM}}}}},Rj=hn("Empty",t=>{const{componentCls:e,controlHeightLG:n,calc:r}=t,o=Lt(t,{emptyImgCls:`${e}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[Mj(o)]});var Ij=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const p1=h.createElement(f1,null),m1=h.createElement(h1,null),Po=t=>{const{className:e,rootClassName:n,prefixCls:r,image:o=p1,description:i,children:a,imageStyle:s,style:l,classNames:c,styles:u}=t,d=Ij(t,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:f,direction:p,className:m,style:v,classNames:g,styles:y}=br("empty"),b=f("empty",r),[C,x,S]=Rj(b),[w]=So("Empty"),E=typeof i<"u"?i:w==null?void 0:w.description,M=typeof E=="string"?E:"empty";let $=null;if(typeof o=="string"?$=h.createElement("img",{alt:M,src:o}):$=o,process.env.NODE_ENV!=="production"){const R=on("Empty");[["imageStyle","styles: { image: {} }"]].forEach(I=>{let[D,_]=I;R.deprecated(!(D in t),D,_)})}return C(h.createElement("div",Object.assign({className:re(x,S,b,m,{[`${b}-normal`]:o===m1,[`${b}-rtl`]:p==="rtl"},e,n,g.root,c==null?void 0:c.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),v),u==null?void 0:u.root),l)},d),h.createElement("div",{className:re(`${b}-image`,g.image,c==null?void 0:c.image),style:Object.assign(Object.assign(Object.assign({},s),y.image),u==null?void 0:u.image)},$),E&&h.createElement("div",{className:re(`${b}-description`,g.description,c==null?void 0:c.description),style:Object.assign(Object.assign({},y.description),u==null?void 0:u.description)},E),a&&h.createElement("div",{className:re(`${b}-footer`,g.footer,c==null?void 0:c.footer),style:Object.assign(Object.assign({},y.footer),u==null?void 0:u.footer)},a)))};Po.PRESENTED_IMAGE_DEFAULT=p1;Po.PRESENTED_IMAGE_SIMPLE=m1;process.env.NODE_ENV!=="production"&&(Po.displayName="Empty");const Tj=t=>{const{componentName:e}=t,{getPrefixCls:n}=N.useContext(At),r=n("empty");switch(e){case"Table":case"List":return N.createElement(Po,{image:Po.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return N.createElement(Po,{image:Po.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return N.createElement(Po,null)}},du=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[t]:a}=h.useContext(At),s=h.useContext(d_),l=a==null?void 0:a.variant;let c;typeof e<"u"?c=e:n===!1?c="borderless":c=(o=(r=s??l)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const u=tP.includes(c);return[c,u]},Pj=t=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:t==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function Aj(t,e){return t||Pj(e)}const pb=t=>{const{optionHeight:e,optionFontSize:n,optionLineHeight:r,optionPadding:o}=t;return{position:"relative",display:"block",minHeight:e,padding:o,color:t.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},kj=t=>{const{antCls:e,componentCls:n}=t,r=`${n}-item`,o=`&${e}-slide-up-enter${e}-slide-up-enter-active`,i=`&${e}-slide-up-appear${e}-slide-up-appear-active`,a=`&${e}-slide-up-leave${e}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Fn(t)),{position:"absolute",top:-9999,zIndex:t.zIndexPopup,boxSizing:"border-box",padding:t.paddingXXS,overflow:"hidden",fontSize:t.fontSize,fontVariant:"initial",backgroundColor:t.colorBgElevated,borderRadius:t.borderRadiusLG,outline:"none",boxShadow:t.boxShadowSecondary,[`
370
+ `].includes(ye)})},[z]),ot=h.useContext($p)||{},at=ot.maxCount,nt=ot.rawValues,dt=function(pe,Ce,we){if(!(Ne&&rh(at)&&(nt==null?void 0:nt.size)>=at)){var ke=!0,tt=pe;$==null||$(null);var bt=qB(pe,z,rh(at)?at-nt.size:void 0),Ct=we?null:bt;return g!=="combobox"&&Ct&&(tt="",A==null||A(Ct),et(!1),ke=!1),_&&Ze!==tt&&_(tt,{source:Ce?"typing":"effect"}),ke}},Dt=function(pe){!pe||!pe.trim()||_(pe,{source:"submit"})};h.useEffect(function(){!Ue&&!Ne&&g!=="combobox"&&dt("",!1,!1)},[Ue]),h.useEffect(function(){Qe&&y&&Ke(!1),y&&!ze.current&&Te(!1)},[y]);var Nt=Xx(),Gt=le(Nt,2),Rt=Gt[0],Bt=Gt[1],Ft=h.useRef(!1),Xt=function(pe){var Ce=Rt(),we=pe.key,ke=we==="Enter";if(ke&&(g!=="combobox"&&pe.preventDefault(),Ue||et(!0)),Bt(!!Ze),we==="Backspace"&&!Ce&&Ne&&!Ze&&u.length){for(var tt=Pe(u),bt=null,Ct=tt.length-1;Ct>=0;Ct-=1){var jt=tt[Ct];if(!jt.disabled){tt.splice(Ct,1),bt=jt;break}}bt&&d(tt,{type:"remove",values:[bt]})}for(var zt=arguments.length,nn=new Array(zt>1?zt-1:0),gn=1;gn<zt;gn++)nn[gn-1]=arguments[gn];if(Ue&&(!ke||!Ft.current)){var pn;ke&&(Ft.current=!0),(pn=$e.current)===null||pn===void 0||pn.onKeyDown.apply(pn,[pe].concat(nn))}me==null||me.apply(void 0,[pe].concat(nn))},Mn=function(pe){for(var Ce=arguments.length,we=new Array(Ce>1?Ce-1:0),ke=1;ke<Ce;ke++)we[ke-1]=arguments[ke];if(Ue){var tt;(tt=$e.current)===null||tt===void 0||tt.onKeyUp.apply(tt,[pe].concat(we))}pe.key==="Enter"&&(Ft.current=!1),ce==null||ce.apply(void 0,[pe].concat(we))},Yt=function(pe){var Ce=u.filter(function(we){return we!==pe});d(Ce,{type:"remove",values:[pe]})},sn=function(){Ft.current=!1},Ve=h.useRef(!1),rt=function(){Te(!0),y||(ge&&!Ve.current&&ge.apply(void 0,arguments),oe.includes("focus")&&et(!0)),Ve.current=!0},Xe=function(){ze.current=!0,Te(!1,function(){Ve.current=!1,ze.current=!1,et(!1)}),!y&&(Ze&&(g==="tags"?_(Ze,{source:"submit"}):g==="multiple"&&_("",{source:"blur"})),ne&&ne.apply(void 0,arguments))},De=[];h.useEffect(function(){return function(){De.forEach(function(ye){return clearTimeout(ye)}),De.splice(0,De.length)}},[]);var ft=function(pe){var Ce,we=pe.target,ke=(Ce=Ae.current)===null||Ce===void 0?void 0:Ce.getPopupElement();if(ke&&ke.contains(we)){var tt=setTimeout(function(){var zt=De.indexOf(tt);if(zt!==-1&&De.splice(zt,1),He(),!ie&&!ke.contains(document.activeElement)){var nn;(nn=_e.current)===null||nn===void 0||nn.focus()}});De.push(tt)}for(var bt=arguments.length,Ct=new Array(bt>1?bt-1:0),jt=1;jt<bt;jt++)Ct[jt-1]=arguments[jt];Oe==null||Oe.apply(void 0,[pe].concat(Ct))},Et=h.useState({}),Ot=le(Et,2),ln=Ot[1];function en(){ln({})}var dn;Tt&&(dn=function(pe){et(pe)}),lB(function(){var ye;return[Se.current,(ye=Ae.current)===null||ye===void 0?void 0:ye.getPopupElement()]},$t,et,!!Tt);var cn=h.useMemo(function(){return q(q({},t),{},{notFoundContent:m,open:Ue,triggerOpen:$t,id:r,showSearch:je,multiple:Ne,toggleOpen:et})},[t,m,$t,Ue,r,je,Ne,et]),tn=!!B||b,En;tn&&(En=h.createElement(cu,{className:re("".concat(o,"-arrow"),W({},"".concat(o,"-arrow-loading"),b)),customizeIcon:B,customizeIconProps:{loading:b,searchValue:Ze,open:Ue,focused:Be,showSearch:je}}));var Rn=function(){var pe;v==null||v(),(pe=_e.current)===null||pe===void 0||pe.focus(),d([],{type:"clear",values:u}),dt("",!1,!1)},T=iB(o,Rn,u,k,F,y,Ze,g),U=T.allowClear,j=T.clearIcon,te=h.createElement(H,{ref:$e}),ae=re(o,i,W(W(W(W(W(W(W(W(W(W({},"".concat(o,"-focused"),Be),"".concat(o,"-multiple"),Ne),"".concat(o,"-single"),!Ne),"".concat(o,"-allow-clear"),k),"".concat(o,"-show-arrow"),tn),"".concat(o,"-disabled"),y),"".concat(o,"-loading"),b),"".concat(o,"-open"),Ue),"".concat(o,"-customize-input"),ht),"".concat(o,"-show-search"),je)),Z=h.createElement(o1,{ref:Ae,disabled:y,prefixCls:o,visible:$t,popupElement:te,animation:L,transitionName:G,dropdownStyle:J,dropdownClassName:V,direction:l,dropdownMatchSelectWidth:X,dropdownRender:Q,dropdownAlign:ue,placement:Y,builtinPlacements:fe,getPopupContainer:be,empty:f,getTriggerDOMNode:function(pe){return he.current||pe},onPopupVisibleChange:dn,onPopupMouseEnter:en},Tt?h.cloneElement(Tt,{ref:Pt}):h.createElement(e1,Le({},t,{domRef:he,prefixCls:o,inputElement:ht,ref:_e,id:r,prefix:P,showSearch:je,autoClearSearchValue:D,mode:g,activeDescendantId:R,tagRender:s,values:u,open:Ue,onToggleOpen:et,activeValue:M,searchValue:Ze,onSearch:dt,onSearchSubmit:Dt,onRemove:Yt,tokenWithEnter:qe,onInputBlur:sn}))),xe;return Tt?xe=Z:xe=h.createElement("div",Le({className:ae},O,{ref:Se,onMouseDown:ft,onKeyDown:Xt,onKeyUp:Mn,onFocus:rt,onBlur:Xe}),h.createElement(KB,{visible:Be&&!Ue,values:u}),Z,En,U&&j),h.createElement(Gx.Provider,{value:cn},xe)});process.env.NODE_ENV!=="production"&&(a1.displayName="BaseSelect");var Mp=function(){return null};Mp.isSelectOptGroup=!0;var Rp=function(){return null};Rp.isSelectOption=!0;var s1=h.forwardRef(function(t,e){var n=t.height,r=t.offsetY,o=t.offsetX,i=t.children,a=t.prefixCls,s=t.onInnerResize,l=t.innerProps,c=t.rtl,u=t.extra,d={},f={display:"flex",flexDirection:"column"};return r!==void 0&&(d={height:n,position:"relative",overflow:"hidden"},f=q(q({},f),{},W(W(W(W(W({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),h.createElement("div",{style:d},h.createElement(Co,{onResize:function(m){var v=m.offsetHeight;v&&s&&s()}},h.createElement("div",Le({style:f,className:re(W({},"".concat(a,"-holder-inner"),a)),ref:e},l),i,u)))});s1.displayName="Filler";function XB(t){var e=t.children,n=t.setRef,r=h.useCallback(function(o){n(o)},[]);return h.cloneElement(e,{ref:r})}function YB(t,e,n,r,o,i,a,s){var l=s.getKey;return t.slice(e,n+1).map(function(c,u){var d=e+u,f=a(c,d,{style:{width:r},offsetX:o}),p=l(c);return h.createElement(XB,{key:p,setRef:function(v){return i(c,v)}},f)})}function JB(t,e,n){var r=t.length,o=e.length,i,a;if(r===0&&o===0)return null;r<o?(i=t,a=e):(i=e,a=t);var s={__EMPTY_ITEM__:!0};function l(m){return m!==void 0?n(m):s}for(var c=null,u=Math.abs(r-o)!==1,d=0;d<a.length;d+=1){var f=l(i[d]),p=l(a[d]);if(f!==p){c=d,u=u||f!==l(a[d+1]);break}}return c===null?null:{index:c,multiple:u}}function QB(t,e,n){var r=h.useState(t),o=le(r,2),i=o[0],a=o[1],s=h.useState(null),l=le(s,2),c=l[0],u=l[1];return h.useEffect(function(){var d=JB(i||[],t||[],e);(d==null?void 0:d.index)!==void 0&&u(t[d.index]),a(t)},[t]),[c]}var ib=(typeof navigator>"u"?"undefined":st(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const l1=function(t,e,n,r){var o=N.useRef(!1),i=N.useRef(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var s=N.useRef({top:t,bottom:e,left:n,right:r});return s.current.top=t,s.current.bottom=e,s.current.left=n,s.current.right=r,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&d?(clearTimeout(i.current),o.current=!1):(!d||o.current)&&a(),!o.current&&d}};function ZB(t,e,n,r,o,i,a){var s=N.useRef(0),l=N.useRef(null),c=N.useRef(null),u=N.useRef(!1),d=l1(e,n,r,o);function f(b,C){if(kt.cancel(l.current),!d(!1,C)){var x=b;if(!x._virtualHandled)x._virtualHandled=!0;else return;s.current+=C,c.current=C,ib||x.preventDefault(),l.current=kt(function(){var S=u.current?10:1;a(s.current*S,!1),s.current=0})}}function p(b,C){a(C,!0),ib||b.preventDefault()}var m=N.useRef(null),v=N.useRef(null);function g(b){if(t){kt.cancel(v.current),v.current=kt(function(){m.current=null},2);var C=b.deltaX,x=b.deltaY,S=b.shiftKey,w=C,E=x;(m.current==="sx"||!m.current&&S&&x&&!C)&&(w=x,E=0,m.current="sx");var M=Math.abs(w),$=Math.abs(E);m.current===null&&(m.current=i&&M>$?"x":"y"),m.current==="y"?f(b,E):p(b,w)}}function y(b){t&&(u.current=b.detail===c.current)}return[g,y]}function ej(t,e,n,r){var o=h.useMemo(function(){return[new Map,[]]},[t,n.id,r]),i=le(o,2),a=i[0],s=i[1],l=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,f=a.get(u),p=a.get(d);if(f===void 0||p===void 0)for(var m=t.length,v=s.length;v<m;v+=1){var g,y=t[v],b=e(y);a.set(b,v);var C=(g=n.get(b))!==null&&g!==void 0?g:r;if(s[v]=(s[v-1]||0)+C,b===u&&(f=v),b===d&&(p=v),f!==void 0&&p!==void 0)break}return{top:s[f-1]||0,bottom:s[p]}};return l}var tj=function(){function t(){xn(this,t),W(this,"maps",void 0),W(this,"id",0),W(this,"diffKeys",new Set),this.maps=Object.create(null)}return wn(t,[{key:"set",value:function(n,r){this.maps[n]=r,this.id+=1,this.diffKeys.add(n)}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),t}();function ab(t){var e=parseFloat(t);return isNaN(e)?0:e}function nj(t,e,n){var r=h.useState(0),o=le(r,2),i=o[0],a=o[1],s=N.useRef(new Map),l=N.useRef(new tj),c=N.useRef(0);function u(){c.current+=1}function d(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var m=function(){var y=!1;s.current.forEach(function(b,C){if(b&&b.offsetParent){var x=b.offsetHeight,S=getComputedStyle(b),w=S.marginTop,E=S.marginBottom,M=ab(w),$=ab(E),R=x+M+$;l.current.get(C)!==R&&(l.current.set(C,R),y=!0)}}),y&&a(function(b){return b+1})};if(p)m();else{c.current+=1;var v=c.current;Promise.resolve().then(function(){v===c.current&&m()})}}function f(p,m){var v=t(p);s.current.get(v),m?(s.current.set(v,m),d()):s.current.delete(v)}return N.useEffect(function(){return u},[]),[f,d,l.current,i]}var sb=14/15;function rj(t,e,n){var r=N.useRef(!1),o=N.useRef(0),i=N.useRef(0),a=N.useRef(null),s=N.useRef(null),l,c=function(p){if(r.current){var m=Math.ceil(p.touches[0].pageX),v=Math.ceil(p.touches[0].pageY),g=o.current-m,y=i.current-v,b=Math.abs(g)>Math.abs(y);b?o.current=m:i.current=v;var C=n(b,b?g:y,!1,p);C&&p.preventDefault(),clearInterval(s.current),C&&(s.current=setInterval(function(){b?g*=sb:y*=sb;var x=Math.floor(b?g:y);(!n(b,x,!0)||Math.abs(x)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},d=function(p){l(),p.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(p.touches[0].pageX),i.current=Math.ceil(p.touches[0].pageY),a.current=p.target,a.current.addEventListener("touchmove",c,{passive:!1}),a.current.addEventListener("touchend",u,{passive:!0}))};l=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},Jt(function(){return t&&e.current.addEventListener("touchstart",d,{passive:!0}),function(){var f;(f=e.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(s.current)}},[t])}function lb(t){return Math.floor(Math.pow(t,.5))}function ih(t,e){var n="touches"in t?t.touches[0]:t;return n[e?"pageX":"pageY"]-window[e?"scrollX":"scrollY"]}function oj(t,e,n){h.useEffect(function(){var r=e.current;if(t&&r){var o=!1,i,a,s=function(){kt.cancel(i)},l=function f(){s(),i=kt(function(){n(a),f()})},c=function(p){if(!p.target.draggable){var m=p;m._virtualHandled||(m._virtualHandled=!0,o=!0)}},u=function(){o=!1,s()},d=function(p){if(o){var m=ih(p,!1),v=r.getBoundingClientRect(),g=v.top,y=v.bottom;if(m<=g){var b=g-m;a=-lb(b),l()}else if(m>=y){var C=m-y;a=lb(C),l()}else s()}};return r.addEventListener("mousedown",c),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",d),function(){r.removeEventListener("mousedown",c),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",d),s()}}},[t])}var cb=10;function ij(t,e,n,r,o,i,a,s){var l=h.useRef(),c=h.useState(null),u=le(c,2),d=u[0],f=u[1];return Jt(function(){if(d&&d.times<cb){if(!t.current){f(function(F){return q({},F)});return}i();var p=d.targetAlign,m=d.originAlign,v=d.index,g=d.offset,y=t.current.clientHeight,b=!1,C=p,x=null;if(y){for(var S=p||m,w=0,E=0,M=0,$=Math.min(e.length-1,v),R=0;R<=$;R+=1){var I=o(e[R]);E=w;var D=n.get(I);M=E+(D===void 0?r:D),w=M}for(var _=S==="top"?g:y-g,A=$;A>=0;A-=1){var z=o(e[A]),k=n.get(z);if(k===void 0){b=!0;break}if(_-=k,_<=0)break}switch(S){case"top":x=E-g;break;case"bottom":x=M-y+g;break;default:{var P=t.current.scrollTop,B=P+y;E<P?C="top":M>B&&(C="bottom")}}x!==null&&a(x),x!==d.lastTop&&(b=!0)}b&&f(q(q({},d),{},{times:d.times+1,targetAlign:C,lastTop:x}))}else process.env.NODE_ENV!=="production"&&(d==null?void 0:d.times)===cb&&yt(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[d,t.current]),function(p){if(p==null){s();return}if(kt.cancel(l.current),typeof p=="number")a(p);else if(p&&st(p)==="object"){var m,v=p.align;"index"in p?m=p.index:m=e.findIndex(function(b){return o(b)===p.key});var g=p.offset,y=g===void 0?0:g;f({times:0,index:m,offset:y,originAlign:v})}}}var ah=h.forwardRef(function(t,e){var n=t.prefixCls,r=t.rtl,o=t.scrollOffset,i=t.scrollRange,a=t.onStartMove,s=t.onStopMove,l=t.onScroll,c=t.horizontal,u=t.spinSize,d=t.containerSize,f=t.style,p=t.thumbStyle,m=t.showScrollBar,v=h.useState(!1),g=le(v,2),y=g[0],b=g[1],C=h.useState(null),x=le(C,2),S=x[0],w=x[1],E=h.useState(null),M=le(E,2),$=M[0],R=M[1],I=!r,D=h.useRef(),_=h.useRef(),A=h.useState(m),z=le(A,2),k=z[0],P=z[1],B=h.useRef(),F=function(){m===!0||m===!1||(clearTimeout(B.current),P(!0),B.current=setTimeout(function(){P(!1)},3e3))},H=i-d||0,L=d-u||0,G=h.useMemo(function(){if(o===0||H===0)return 0;var de=o/H;return de*L},[o,H,L]),J=function(oe){oe.stopPropagation(),oe.preventDefault()},V=h.useRef({top:G,dragging:y,pageY:S,startTop:$});V.current={top:G,dragging:y,pageY:S,startTop:$};var X=function(oe){b(!0),w(ih(oe,c)),R(V.current.top),a(),oe.stopPropagation(),oe.preventDefault()};h.useEffect(function(){var de=function(ce){ce.preventDefault()},oe=D.current,ge=_.current;return oe.addEventListener("touchstart",de,{passive:!1}),ge.addEventListener("touchstart",X,{passive:!1}),function(){oe.removeEventListener("touchstart",de),ge.removeEventListener("touchstart",X)}},[]);var Q=h.useRef();Q.current=H;var ue=h.useRef();ue.current=L,h.useEffect(function(){if(y){var de,oe=function(ce){var me=V.current,Oe=me.dragging,Me=me.pageY,Ne=me.startTop;kt.cancel(de);var je=D.current.getBoundingClientRect(),O=d/(c?je.width:je.height);if(Oe){var ee=(ih(ce,c)-Me)*O,K=Ne;!I&&c?K-=ee:K+=ee;var ie=Q.current,Ee=ue.current,Se=Ee?K/Ee:0,he=Math.ceil(Se*ie);he=Math.max(he,0),he=Math.min(he,ie),de=kt(function(){l(he,c)})}},ge=function(){b(!1),s()};return window.addEventListener("mousemove",oe,{passive:!0}),window.addEventListener("touchmove",oe,{passive:!0}),window.addEventListener("mouseup",ge,{passive:!0}),window.addEventListener("touchend",ge,{passive:!0}),function(){window.removeEventListener("mousemove",oe),window.removeEventListener("touchmove",oe),window.removeEventListener("mouseup",ge),window.removeEventListener("touchend",ge),kt.cancel(de)}}},[y]),h.useEffect(function(){return F(),function(){clearTimeout(B.current)}},[o]),h.useImperativeHandle(e,function(){return{delayHidden:F}});var Y="".concat(n,"-scrollbar"),fe={position:"absolute",visibility:k?null:"hidden"},be={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(fe.height=8,fe.left=0,fe.right=0,fe.bottom=0,be.height="100%",be.width=u,I?be.left=G:be.right=G):(fe.width=8,fe.top=0,fe.bottom=0,I?fe.right=0:fe.left=0,be.width="100%",be.height=u,be.top=G),h.createElement("div",{ref:D,className:re(Y,W(W(W({},"".concat(Y,"-horizontal"),c),"".concat(Y,"-vertical"),!c),"".concat(Y,"-visible"),k)),style:q(q({},fe),f),onMouseDown:J,onMouseMove:F},h.createElement("div",{ref:_,className:re("".concat(Y,"-thumb"),W({},"".concat(Y,"-thumb-moving"),y)),style:q(q({},be),p),onMouseDown:X}))});process.env.NODE_ENV!=="production"&&(ah.displayName="ScrollBar");var aj=20;function ub(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=t/e*t;return isNaN(n)&&(n=0),n=Math.max(n,aj),Math.floor(n)}var sj=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],lj=[],cj={overflowY:"auto",overflowAnchor:"none"};function uj(t,e){var n=t.prefixCls,r=n===void 0?"rc-virtual-list":n,o=t.className,i=t.height,a=t.itemHeight,s=t.fullHeight,l=s===void 0?!0:s,c=t.style,u=t.data,d=t.children,f=t.itemKey,p=t.virtual,m=t.direction,v=t.scrollWidth,g=t.component,y=g===void 0?"div":g,b=t.onScroll,C=t.onVirtualScroll,x=t.onVisibleChange,S=t.innerProps,w=t.extraRender,E=t.styles,M=t.showScrollBar,$=M===void 0?"optional":M,R=xt(t,sj),I=h.useCallback(function(Ve){return typeof f=="function"?f(Ve):Ve==null?void 0:Ve[f]},[f]),D=nj(I),_=le(D,4),A=_[0],z=_[1],k=_[2],P=_[3],B=!!(p!==!1&&i&&a),F=h.useMemo(function(){return Object.values(k.maps).reduce(function(Ve,rt){return Ve+rt},0)},[k.id,k.maps]),H=B&&u&&(Math.max(a*u.length,F)>i||!!v),L=m==="rtl",G=re(r,W({},"".concat(r,"-rtl"),L),o),J=u||lj,V=N.useRef(),X=N.useRef(),Q=N.useRef(),ue=N.useState(0),Y=le(ue,2),fe=Y[0],be=Y[1],de=N.useState(0),oe=le(de,2),ge=oe[0],ne=oe[1],ce=N.useState(!1),me=le(ce,2),Oe=me[0],Me=me[1],Ne=function(){Me(!0)},je=function(){Me(!1)},O={getKey:I};function ee(Ve){be(function(rt){var Xe;typeof Ve=="function"?Xe=Ve(rt):Xe=Ve;var De=lt(Xe);return V.current.scrollTop=De,De})}var K=N.useRef({start:0,end:J.length}),ie=N.useRef(),Ee=QB(J,I),Se=le(Ee,1),he=Se[0];ie.current=he;var Ae=h.useMemo(function(){if(!B)return{scrollHeight:void 0,start:0,end:J.length-1,offset:void 0};if(!H){var Ve;return{scrollHeight:((Ve=X.current)===null||Ve===void 0?void 0:Ve.offsetHeight)||0,start:0,end:J.length-1,offset:void 0}}for(var rt=0,Xe,De,ft,Et=J.length,Ot=0;Ot<Et;Ot+=1){var ln=J[Ot],en=I(ln),dn=k.get(en),cn=rt+(dn===void 0?a:dn);cn>=fe&&Xe===void 0&&(Xe=Ot,De=rt),cn>fe+i&&ft===void 0&&(ft=Ot),rt=cn}return Xe===void 0&&(Xe=0,De=0,ft=Math.ceil(i/a)),ft===void 0&&(ft=J.length-1),ft=Math.min(ft+1,J.length-1),{scrollHeight:rt,start:Xe,end:ft,offset:De}},[H,B,fe,J,P,i]),_e=Ae.scrollHeight,$e=Ae.start,ze=Ae.end,Fe=Ae.offset;K.current.start=$e,K.current.end=ze,h.useLayoutEffect(function(){var Ve=k.getRecord();if(Ve.size===1){var rt=Array.from(Ve)[0],Xe=J[$e];if(Xe){var De=I(Xe);if(De===rt){var ft=k.get(rt),Et=ft-a;ee(function(Ot){return Ot+Et})}}}k.resetRecord()},[_e]);var Ie=h.useState({width:0,height:i}),Be=le(Ie,2),Te=Be[0],He=Be[1],Ze=function(rt){He({width:rt.offsetWidth,height:rt.offsetHeight})},ht=N.useRef(),Tt=N.useRef(),Pt=h.useMemo(function(){return ub(Te.width,v)},[Te.width,v]),an=h.useMemo(function(){return ub(Te.height,_e)},[Te.height,_e]),Ye=_e-i,We=N.useRef(Ye);We.current=Ye;function lt(Ve){var rt=Ve;return Number.isNaN(We.current)||(rt=Math.min(rt,We.current)),rt=Math.max(rt,0),rt}var it=fe<=0,pt=fe>=Ye,Qe=ge<=0,Ke=ge>=v,Ue=l1(it,pt,Qe,Ke),wt=function(){return{x:L?-ge:ge,y:fe}},$t=N.useRef(wt()),et=Wt(function(Ve){if(C){var rt=q(q({},wt()),Ve);($t.current.x!==rt.x||$t.current.y!==rt.y)&&(C(rt),$t.current=rt)}});function qe(Ve,rt){var Xe=Ve;rt?(_r.flushSync(function(){ne(Xe)}),et()):ee(Xe)}function ot(Ve){var rt=Ve.currentTarget.scrollTop;rt!==fe&&ee(rt),b==null||b(Ve),et()}var at=function(rt){var Xe=rt,De=v?v-Te.width:0;return Xe=Math.max(Xe,0),Xe=Math.min(Xe,De),Xe},nt=Wt(function(Ve,rt){rt?(_r.flushSync(function(){ne(function(Xe){var De=Xe+(L?-Ve:Ve);return at(De)})}),et()):ee(function(Xe){var De=Xe+Ve;return De})}),dt=ZB(B,it,pt,Qe,Ke,!!v,nt),Dt=le(dt,2),Nt=Dt[0],Gt=Dt[1];rj(B,V,function(Ve,rt,Xe,De){var ft=De;return Ue(Ve,rt,Xe)?!1:!ft||!ft._virtualHandled?(ft&&(ft._virtualHandled=!0),Nt({preventDefault:function(){},deltaX:Ve?rt:0,deltaY:Ve?0:rt}),!0):!1}),oj(H,V,function(Ve){ee(function(rt){return rt+Ve})}),Jt(function(){function Ve(Xe){var De=it&&Xe.detail<0,ft=pt&&Xe.detail>0;B&&!De&&!ft&&Xe.preventDefault()}var rt=V.current;return rt.addEventListener("wheel",Nt,{passive:!1}),rt.addEventListener("DOMMouseScroll",Gt,{passive:!0}),rt.addEventListener("MozMousePixelScroll",Ve,{passive:!1}),function(){rt.removeEventListener("wheel",Nt),rt.removeEventListener("DOMMouseScroll",Gt),rt.removeEventListener("MozMousePixelScroll",Ve)}},[B,it,pt]),Jt(function(){if(v){var Ve=at(ge);ne(Ve),et({x:Ve})}},[Te.width,v]);var Rt=function(){var rt,Xe;(rt=ht.current)===null||rt===void 0||rt.delayHidden(),(Xe=Tt.current)===null||Xe===void 0||Xe.delayHidden()},Bt=ij(V,J,k,a,I,function(){return z(!0)},ee,Rt);h.useImperativeHandle(e,function(){return{nativeElement:Q.current,getScrollInfo:wt,scrollTo:function(rt){function Xe(De){return De&&st(De)==="object"&&("left"in De||"top"in De)}Xe(rt)?(rt.left!==void 0&&ne(at(rt.left)),Bt(rt.top)):Bt(rt)}}}),Jt(function(){if(x){var Ve=J.slice($e,ze+1);x(Ve,J)}},[$e,ze,J]);var Ft=ej(J,I,k,a),Xt=w==null?void 0:w({start:$e,end:ze,virtual:H,offsetX:ge,offsetY:Fe,rtl:L,getSize:Ft}),Mn=YB(J,$e,ze,v,ge,A,d,O),Yt=null;i&&(Yt=q(W({},l?"height":"maxHeight",i),cj),B&&(Yt.overflowY="hidden",v&&(Yt.overflowX="hidden"),Oe&&(Yt.pointerEvents="none")));var sn={};return L&&(sn.dir="rtl"),h.createElement("div",Le({ref:Q,style:q(q({},c),{},{position:"relative"}),className:G},sn,R),h.createElement(Co,{onResize:Ze},h.createElement(y,{className:"".concat(r,"-holder"),style:Yt,ref:V,onScroll:ot,onMouseEnter:Rt},h.createElement(s1,{prefixCls:r,height:_e,offsetX:ge,offsetY:Fe,scrollWidth:v,onInnerResize:z,ref:X,innerProps:S,rtl:L,extra:Xt},Mn))),H&&_e>i&&h.createElement(ah,{ref:ht,prefixCls:r,scrollOffset:fe,scrollRange:_e,rtl:L,onScroll:qe,onStartMove:Ne,onStopMove:je,spinSize:an,containerSize:Te.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb,showScrollBar:$}),H&&v>Te.width&&h.createElement(ah,{ref:Tt,prefixCls:r,scrollOffset:ge,scrollRange:v,rtl:L,onScroll:qe,onStartMove:Ne,onStopMove:je,spinSize:Pt,containerSize:Te.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb,showScrollBar:$}))}var c1=h.forwardRef(uj);c1.displayName="List";function dj(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var fj=["disabled","title","children","style","className"];function db(t){return typeof t=="string"||typeof t=="number"}var hj=function(e,n){var r=aB(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,p=h.useContext($p),m=p.maxCount,v=p.flattenOptions,g=p.onActiveValue,y=p.defaultActiveFirstOption,b=p.onSelect,C=p.menuItemSelectedIcon,x=p.rawValues,S=p.fieldNames,w=p.virtual,E=p.direction,M=p.listHeight,$=p.listItemHeight,R=p.optionRender,I="".concat(o,"-item"),D=Rs(function(){return v},[a,v],function(de,oe){return oe[0]&&de[1]!==oe[1]}),_=h.useRef(null),A=h.useMemo(function(){return s&&rh(m)&&(x==null?void 0:x.size)>=m},[s,m,x==null?void 0:x.size]),z=function(oe){oe.preventDefault()},k=function(oe){var ge;(ge=_.current)===null||ge===void 0||ge.scrollTo(typeof oe=="number"?{index:oe}:oe)},P=h.useCallback(function(de){return l==="combobox"?!1:x.has(de)},[l,Pe(x).toString(),x.size]),B=function(oe){for(var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ne=D.length,ce=0;ce<ne;ce+=1){var me=(oe+ce*ge+ne)%ne,Oe=D[me]||{},Me=Oe.group,Ne=Oe.data;if(!Me&&!(Ne!=null&&Ne.disabled)&&(P(Ne.value)||!A))return me}return-1},F=h.useState(function(){return B(0)}),H=le(F,2),L=H[0],G=H[1],J=function(oe){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;G(oe);var ne={source:ge?"keyboard":"mouse"},ce=D[oe];if(!ce){g(null,-1,ne);return}g(ce.value,oe,ne)};N.useEffect(function(){J(y!==!1?B(0):-1)},[D.length,c]);var V=h.useCallback(function(de){return l==="combobox"?String(de).toLowerCase()===c.toLowerCase():x.has(de)},[l,c,Pe(x).toString(),x.size]);N.useEffect(function(){var de=setTimeout(function(){if(!s&&a&&x.size===1){var ge=Array.from(x)[0],ne=D.findIndex(function(ce){var me=ce.data;return me.value===ge});ne!==-1&&(J(ne),k(ne))}});if(a){var oe;(oe=_.current)===null||oe===void 0||oe.scrollTo(void 0)}return function(){return clearTimeout(de)}},[a,c]);var X=function(oe){oe!==void 0&&b(oe,{selected:!x.has(oe)}),s||u(!1)};if(h.useImperativeHandle(n,function(){return{onKeyDown:function(oe){var ge=oe.which,ne=oe.ctrlKey;switch(ge){case Je.N:case Je.P:case Je.UP:case Je.DOWN:{var ce=0;if(ge===Je.UP?ce=-1:ge===Je.DOWN?ce=1:dj()&&ne&&(ge===Je.N?ce=1:ge===Je.P&&(ce=-1)),ce!==0){var me=B(L+ce,ce);k(me),J(me,!0)}break}case Je.TAB:case Je.ENTER:{var Oe,Me=D[L];Me&&!(Me!=null&&(Oe=Me.data)!==null&&Oe!==void 0&&Oe.disabled)&&!A?X(Me.value):X(void 0),a&&oe.preventDefault();break}case Je.ESC:u(!1),a&&oe.stopPropagation()}},onKeyUp:function(){},scrollTo:function(oe){k(oe)}}}),D.length===0)return h.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(I,"-empty"),onMouseDown:z},d);var Q=Object.keys(S).map(function(de){return S[de]}),ue=function(oe){return oe.label};function Y(de,oe){var ge=de.group;return{role:ge?"presentation":"option",id:"".concat(i,"_list_").concat(oe)}}var fe=function(oe){var ge=D[oe];if(!ge)return null;var ne=ge.data||{},ce=ne.value,me=ge.group,Oe=Zr(ne,!0),Me=ue(ge);return ge?h.createElement("div",Le({"aria-label":typeof Me=="string"&&!me?Me:null},Oe,{key:oe},Y(ge,oe),{"aria-selected":V(ce)}),ce):null},be={role:"listbox",id:"".concat(i,"_list")};return h.createElement(h.Fragment,null,w&&h.createElement("div",Le({},be,{style:{height:0,width:0,overflow:"hidden"}}),fe(L-1),fe(L),fe(L+1)),h.createElement(c1,{itemKey:"key",ref:_,data:D,height:M,itemHeight:$,fullHeight:!1,onMouseDown:z,onScroll:f,virtual:w,direction:E,innerProps:w?null:be},function(de,oe){var ge=de.group,ne=de.groupOption,ce=de.data,me=de.label,Oe=de.value,Me=ce.key;if(ge){var Ne,je=(Ne=ce.title)!==null&&Ne!==void 0?Ne:db(me)?me.toString():void 0;return h.createElement("div",{className:re(I,"".concat(I,"-group"),ce.className),title:je},me!==void 0?me:Me)}var O=ce.disabled,ee=ce.title;ce.children;var K=ce.style,ie=ce.className,Ee=xt(ce,fj),Se=Tn(Ee,Q),he=P(Oe),Ae=O||!he&&A,_e="".concat(I,"-option"),$e=re(I,_e,ie,W(W(W(W({},"".concat(_e,"-grouped"),ne),"".concat(_e,"-active"),L===oe&&!Ae),"".concat(_e,"-disabled"),Ae),"".concat(_e,"-selected"),he)),ze=ue(de),Fe=!C||typeof C=="function"||he,Ie=typeof ze=="number"?ze:ze||Oe,Be=db(Ie)?Ie.toString():void 0;return ee!==void 0&&(Be=ee),h.createElement("div",Le({},Zr(Se),w?{}:Y(de,oe),{"aria-selected":V(Oe),className:$e,title:Be,onMouseMove:function(){L===oe||Ae||J(oe)},onClick:function(){Ae||X(Oe)},style:K}),h.createElement("div",{className:"".concat(_e,"-content")},typeof R=="function"?R(de,{index:oe}):Ie),h.isValidElement(C)||he,Fe&&h.createElement(cu,{className:"".concat(I,"-option-state"),customizeIcon:C,customizeIconProps:{value:Oe,disabled:Ae,isSelected:he}},he?"✓":null))}))},u1=h.forwardRef(hj);process.env.NODE_ENV!=="production"&&(u1.displayName="OptionList");const pj=function(t,e){var n=h.useRef({values:new Map,options:new Map}),r=h.useMemo(function(){var i=n.current,a=i.values,s=i.options,l=t.map(function(d){if(d.label===void 0){var f;return q(q({},d),{},{label:(f=a.get(d.value))===null||f===void 0?void 0:f.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,e.get(d.value)||s.get(d.value))}),n.current.values=c,n.current.options=u,l},[t,e]),o=h.useCallback(function(i){return e.get(i)||n.current.options.get(i)},[e]);return[r,o]};function wd(t,e){return Op(t).join("").toUpperCase().includes(e)}const mj=function(t,e,n,r,o){return h.useMemo(function(){if(!n||r===!1)return t;var i=e.options,a=e.label,s=e.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(p,m){return o?wd(m[o],u):m[i]?wd(m[a!=="children"?a:"label"],u):wd(m[s],u)},f=c?function(p){return oh(p)}:function(p){return p};return t.forEach(function(p){if(p[i]){var m=d(n,f(p));if(m)l.push(p);else{var v=p[i].filter(function(g){return d(n,f(g))});v.length&&l.push(q(q({},p),{},W({},i,v)))}return}d(n,f(p))&&l.push(p)}),l},[t,r,o,n,e])};var fb=0,gj=process.env.NODE_ENV!=="test"&&Gn();function vj(){var t;return gj?(t=fb,fb+=1):t="TEST_OR_SSR",t}function bj(t){var e=h.useState(),n=le(e,2),r=n[0],o=n[1];return h.useEffect(function(){o("rc_select_".concat(vj()))},[]),t||r}var yj=["children","value"],Cj=["children"];function Sj(t){var e=t,n=e.key,r=e.props,o=r.children,i=r.value,a=xt(r,yj);return q({key:n,value:i!==void 0?i:n,children:o},a)}function Ip(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return gr(t).map(function(n,r){if(!h.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=xt(s,Cj);return e||!i?Sj(n):q(q({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:Ip(l)})}).filter(function(n){return n})}var xj=function(e,n,r,o,i){return h.useMemo(function(){var a=e,s=!e;s&&(a=Ip(n));var l=new Map,c=new Map,u=function(p,m,v){v&&typeof v=="string"&&p.set(m[v],m)},d=function f(p){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v<p.length;v+=1){var g=p[v];!g[r.options]||m?(l.set(g[r.value],g),u(c,g,r.label),u(c,g,o),u(c,g,i)):f(g[r.options],!0)}};return d(a),{options:a,valueOptions:l,labelOptions:c}},[e,n,r,o,i])};function hb(t){var e=h.useRef();e.current=t;var n=h.useCallback(function(){return e.current.apply(e,arguments)},[]);return n}function wj(t){var e=t.mode,n=t.options,r=t.children,o=t.backfill,i=t.allowClear,a=t.placeholder,s=t.getInputElement,l=t.showSearch,c=t.onSearch,u=t.defaultOpen,d=t.autoFocus,f=t.labelInValue,p=t.value,m=t.inputValue,v=t.optionLabelProp,g=yc(e),y=l!==void 0?l:g||e==="combobox",b=n||Ip(r);if(yt(e!=="tags"||b.every(function(w){return!w.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),e==="tags"||e==="combobox"){var C=b.some(function(w){return w.options?w.options.some(function(E){return typeof("value"in E?E.value:E.key)=="number"}):typeof("value"in w?w.value:w.key)=="number"});yt(!C,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(yt(e!=="combobox"||!v,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),yt(e==="combobox"||!o,"`backfill` only works with `combobox` mode."),yt(e==="combobox"||!s,"`getInputElement` only work with `combobox` mode."),sf(e!=="combobox"||!s||!i||!a,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),c&&!y&&e!=="combobox"&&e!=="tags"&&yt(!1,"`onSearch` should work with `showSearch` instead of use alone."),sf(!u||d,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),p!=null){var x=Op(p);yt(!f||x.every(function(w){return st(w)==="object"&&("key"in w||"value"in w)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),yt(!g||Array.isArray(p),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var S=null;gr(r).some(function(w){if(!h.isValidElement(w)||!w.type)return!1;var E=w,M=E.type;if(M.isSelectOption)return!1;if(M.isSelectOptGroup){var $=gr(w.props.children).every(function(R){return!h.isValidElement(R)||!w.type||R.type.isSelectOption?!0:(S=R.type,!1)});return!$}return S=M,!0}),S&&yt(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(S.displayName||S.name||S,"`.")),yt(m===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ej(t,e){if(t){var n=function r(o){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=0;a<o.length;a++){var s=o[a];if(s[e==null?void 0:e.value]===null)return yt(!1,"`value` in Select options should not be `null`."),!0;if(!i&&Array.isArray(s[e==null?void 0:e.options])&&r(s[e==null?void 0:e.options],!0))break}};n(t)}}var Nj=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Oj=["inputValue"];function $j(t){return!t||st(t)!=="object"}var d1=h.forwardRef(function(t,e){var n=t.id,r=t.mode,o=t.prefixCls,i=o===void 0?"rc-select":o,a=t.backfill,s=t.fieldNames,l=t.inputValue,c=t.searchValue,u=t.onSearch,d=t.autoClearSearchValue,f=d===void 0?!0:d,p=t.onSelect,m=t.onDeselect,v=t.dropdownMatchSelectWidth,g=v===void 0?!0:v,y=t.filterOption,b=t.filterSort,C=t.optionFilterProp,x=t.optionLabelProp,S=t.options,w=t.optionRender,E=t.children,M=t.defaultActiveFirstOption,$=t.menuItemSelectedIcon,R=t.virtual,I=t.direction,D=t.listHeight,_=D===void 0?200:D,A=t.listItemHeight,z=A===void 0?20:A,k=t.labelRender,P=t.value,B=t.defaultValue,F=t.labelInValue,H=t.onChange,L=t.maxCount,G=xt(t,Nj),J=bj(n),V=yc(r),X=!!(!S&&E),Q=h.useMemo(function(){return y===void 0&&r==="combobox"?!1:y},[y,r]),ue=h.useMemo(function(){return i1(s,X)},[JSON.stringify(s),X]),Y=mn("",{value:c!==void 0?c:l,postState:function(qe){return qe||""}}),fe=le(Y,2),be=fe[0],de=fe[1],oe=xj(S,E,ue,C,x),ge=oe.valueOptions,ne=oe.labelOptions,ce=oe.options,me=h.useCallback(function(et){var qe=Op(et);return qe.map(function(ot){var at,nt,dt,Dt,Nt;if($j(ot))at=ot;else{var Gt;dt=ot.key,nt=ot.label,at=(Gt=ot.value)!==null&&Gt!==void 0?Gt:dt}var Rt=ge.get(at);if(Rt){var Bt;if(nt===void 0&&(nt=Rt==null?void 0:Rt[x||ue.label]),dt===void 0&&(dt=(Bt=Rt==null?void 0:Rt.key)!==null&&Bt!==void 0?Bt:at),Dt=Rt==null?void 0:Rt.disabled,Nt=Rt==null?void 0:Rt.title,process.env.NODE_ENV!=="production"&&!x){var Ft=Rt==null?void 0:Rt[ue.label];Ft!==void 0&&!h.isValidElement(Ft)&&!h.isValidElement(nt)&&Ft!==nt&&yt(!1,"`label` of `value` is not same as `label` in Select options.")}}return{label:nt,value:at,key:dt,disabled:Dt,title:Nt}})},[ue,x,ge]),Oe=mn(B,{value:P}),Me=le(Oe,2),Ne=Me[0],je=Me[1],O=h.useMemo(function(){var et,qe=V&&Ne===null?[]:Ne,ot=me(qe);return r==="combobox"&&NB((et=ot[0])===null||et===void 0?void 0:et.value)?[]:ot},[Ne,me,r,V]),ee=pj(O,ge),K=le(ee,2),ie=K[0],Ee=K[1],Se=h.useMemo(function(){if(!r&&ie.length===1){var et=ie[0];if(et.value===null&&(et.label===null||et.label===void 0))return[]}return ie.map(function(qe){var ot;return q(q({},qe),{},{label:(ot=typeof k=="function"?k(qe):qe.label)!==null&&ot!==void 0?ot:qe.value})})},[r,ie,k]),he=h.useMemo(function(){return new Set(ie.map(function(et){return et.value}))},[ie]);h.useEffect(function(){if(r==="combobox"){var et,qe=(et=ie[0])===null||et===void 0?void 0:et.value;de(EB(qe)?String(qe):"")}},[ie]);var Ae=hb(function(et,qe){var ot=qe??et;return W(W({},ue.value,et),ue.label,ot)}),_e=h.useMemo(function(){if(r!=="tags")return ce;var et=Pe(ce),qe=function(at){return ge.has(at)};return Pe(ie).sort(function(ot,at){return ot.value<at.value?-1:1}).forEach(function(ot){var at=ot.value;qe(at)||et.push(Ae(at,ot.label))}),et},[Ae,ce,ge,ie,r]),$e=mj(_e,ue,be,Q,C),ze=h.useMemo(function(){return r!=="tags"||!be||$e.some(function(et){return et[C||"value"]===be})||$e.some(function(et){return et[ue.value]===be})?$e:[Ae(be)].concat(Pe($e))},[Ae,C,r,$e,be,ue]),Fe=function et(qe){var ot=Pe(qe).sort(function(at,nt){return b(at,nt,{searchValue:be})});return ot.map(function(at){return Array.isArray(at.options)?q(q({},at),{},{options:at.options.length>0?et(at.options):at.options}):at})},Ie=h.useMemo(function(){return b?Fe(ze):ze},[ze,b,be]),Be=h.useMemo(function(){return WB(Ie,{fieldNames:ue,childrenAsData:X})},[Ie,ue,X]),Te=function(qe){var ot=me(qe);if(je(ot),H&&(ot.length!==ie.length||ot.some(function(dt,Dt){var Nt;return((Nt=ie[Dt])===null||Nt===void 0?void 0:Nt.value)!==(dt==null?void 0:dt.value)}))){var at=F?ot:ot.map(function(dt){return dt.value}),nt=ot.map(function(dt){return oh(Ee(dt.value))});H(V?at:at[0],V?nt:nt[0])}},He=h.useState(null),Ze=le(He,2),ht=Ze[0],Tt=Ze[1],Pt=h.useState(0),an=le(Pt,2),Ye=an[0],We=an[1],lt=M!==void 0?M:r!=="combobox",it=h.useCallback(function(et,qe){var ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},at=ot.source,nt=at===void 0?"keyboard":at;We(qe),a&&r==="combobox"&&et!==null&&nt==="keyboard"&&Tt(String(et))},[a,r]),pt=function(qe,ot,at){var nt=function(){var Yt,sn=Ee(qe);return[F?{label:sn==null?void 0:sn[ue.label],value:qe,key:(Yt=sn==null?void 0:sn.key)!==null&&Yt!==void 0?Yt:qe}:qe,oh(sn)]};if(ot&&p){var dt=nt(),Dt=le(dt,2),Nt=Dt[0],Gt=Dt[1];p(Nt,Gt)}else if(!ot&&m&&at!=="clear"){var Rt=nt(),Bt=le(Rt,2),Ft=Bt[0],Xt=Bt[1];m(Ft,Xt)}},Qe=hb(function(et,qe){var ot,at=V?qe.selected:!0;at?ot=V?[].concat(Pe(ie),[et]):[et]:ot=ie.filter(function(nt){return nt.value!==et}),Te(ot),pt(et,at),r==="combobox"?Tt(""):(!yc||f)&&(de(""),Tt(""))}),Ke=function(qe,ot){Te(qe);var at=ot.type,nt=ot.values;(at==="remove"||at==="clear")&&nt.forEach(function(dt){pt(dt.value,!1,at)})},Ue=function(qe,ot){if(de(qe),Tt(null),ot.source==="submit"){var at=(qe||"").trim();if(at){var nt=Array.from(new Set([].concat(Pe(he),[at])));Te(nt),pt(at,!0),de("")}return}ot.source!=="blur"&&(r==="combobox"&&Te(qe),u==null||u(qe))},wt=function(qe){var ot=qe;r!=="tags"&&(ot=qe.map(function(nt){var dt=ne.get(nt);return dt==null?void 0:dt.value}).filter(function(nt){return nt!==void 0}));var at=Array.from(new Set([].concat(Pe(he),Pe(ot))));Te(at),at.forEach(function(nt){pt(nt,!0)})},$t=h.useMemo(function(){var et=R!==!1&&g!==!1;return q(q({},oe),{},{flattenOptions:Be,onActiveValue:it,defaultActiveFirstOption:lt,onSelect:Qe,menuItemSelectedIcon:$,rawValues:he,fieldNames:ue,virtual:et,direction:I,listHeight:_,listItemHeight:z,childrenAsData:X,maxCount:L,optionRender:w})},[L,oe,Be,it,lt,Qe,$,he,ue,R,g,I,_,z,X,w]);return process.env.NODE_ENV!=="production"&&(wj(t),Ej(ce,ue)),h.createElement($p.Provider,{value:$t},h.createElement(a1,Le({},G,{id:J,prefixCls:i,ref:e,omitDomProps:Oj,mode:r,displayValues:Se,onDisplayValuesChange:Ke,direction:I,searchValue:be,onSearch:Ue,autoClearSearchValue:f,onSearchSplit:wt,dropdownMatchSelectWidth:g,OptionList:u1,emptyOptions:!Be.length,activeValue:ht,activeDescendantId:"".concat(J,"_list_").concat(Ye)})))});process.env.NODE_ENV!=="production"&&(d1.displayName="Select");var Tp=d1;Tp.Option=Rp;Tp.OptGroup=Mp;function Mi(t,e,n){return re({[`${t}-status-success`]:e==="success",[`${t}-status-warning`]:e==="warning",[`${t}-status-error`]:e==="error",[`${t}-status-validating`]:e==="validating",[`${t}-has-feedback`]:n})}const Fs=(t,e)=>e||t,f1=()=>{const[,t]=ar(),[e]=So("Empty"),r=new Ht(t.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return h.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},h.createElement("title",null,(e==null?void 0:e.description)||"Empty"),h.createElement("g",{fill:"none",fillRule:"evenodd"},h.createElement("g",{transform:"translate(24 31.67)"},h.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),h.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),h.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),h.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),h.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),h.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),h.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},h.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),h.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};process.env.NODE_ENV!=="production"&&(f1.displayName="EmptyImage");const h1=()=>{const[,t]=ar(),[e]=So("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=t,{borderColor:a,shadowColor:s,contentColor:l}=N.useMemo(()=>({borderColor:new Ht(n).onBackground(i).toHexString(),shadowColor:new Ht(r).onBackground(i).toHexString(),contentColor:new Ht(o).onBackground(i).toHexString()}),[n,r,o,i]);return h.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},h.createElement("title",null,(e==null?void 0:e.description)||"Empty"),h.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},h.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),h.createElement("g",{fillRule:"nonzero",stroke:a},h.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),h.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))};process.env.NODE_ENV!=="production"&&(h1.displayName="SimpleImage");const Mj=t=>{const{componentCls:e,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=t;return{[e]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${e}-image`]:{height:t.emptyImgHeight,marginBottom:r,opacity:t.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${e}-description`]:{color:t.colorTextDescription},[`${e}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:t.colorTextDescription,[`${e}-description`]:{color:t.colorTextDescription},[`${e}-image`]:{height:t.emptyImgHeightMD}},"&-small":{marginBlock:r,color:t.colorTextDescription,[`${e}-image`]:{height:t.emptyImgHeightSM}}}}},Rj=hn("Empty",t=>{const{componentCls:e,controlHeightLG:n,calc:r}=t,o=Lt(t,{emptyImgCls:`${e}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[Mj(o)]});var Ij=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n};const p1=h.createElement(f1,null),m1=h.createElement(h1,null),Po=t=>{const{className:e,rootClassName:n,prefixCls:r,image:o=p1,description:i,children:a,imageStyle:s,style:l,classNames:c,styles:u}=t,d=Ij(t,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:f,direction:p,className:m,style:v,classNames:g,styles:y}=br("empty"),b=f("empty",r),[C,x,S]=Rj(b),[w]=So("Empty"),E=typeof i<"u"?i:w==null?void 0:w.description,M=typeof E=="string"?E:"empty";let $=null;if(typeof o=="string"?$=h.createElement("img",{alt:M,src:o}):$=o,process.env.NODE_ENV!=="production"){const R=on("Empty");[["imageStyle","styles: { image: {} }"]].forEach(I=>{let[D,_]=I;R.deprecated(!(D in t),D,_)})}return C(h.createElement("div",Object.assign({className:re(x,S,b,m,{[`${b}-normal`]:o===m1,[`${b}-rtl`]:p==="rtl"},e,n,g.root,c==null?void 0:c.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),v),u==null?void 0:u.root),l)},d),h.createElement("div",{className:re(`${b}-image`,g.image,c==null?void 0:c.image),style:Object.assign(Object.assign(Object.assign({},s),y.image),u==null?void 0:u.image)},$),E&&h.createElement("div",{className:re(`${b}-description`,g.description,c==null?void 0:c.description),style:Object.assign(Object.assign({},y.description),u==null?void 0:u.description)},E),a&&h.createElement("div",{className:re(`${b}-footer`,g.footer,c==null?void 0:c.footer),style:Object.assign(Object.assign({},y.footer),u==null?void 0:u.footer)},a)))};Po.PRESENTED_IMAGE_DEFAULT=p1;Po.PRESENTED_IMAGE_SIMPLE=m1;process.env.NODE_ENV!=="production"&&(Po.displayName="Empty");const Tj=t=>{const{componentName:e}=t,{getPrefixCls:n}=N.useContext(At),r=n("empty");switch(e){case"Table":case"List":return N.createElement(Po,{image:Po.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return N.createElement(Po,{image:Po.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return N.createElement(Po,null)}},du=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[t]:a}=h.useContext(At),s=h.useContext(d_),l=a==null?void 0:a.variant;let c;typeof e<"u"?c=e:n===!1?c="borderless":c=(o=(r=s??l)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const u=tP.includes(c);return[c,u]},Pj=t=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:t==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function Aj(t,e){return t||Pj(e)}const pb=t=>{const{optionHeight:e,optionFontSize:n,optionLineHeight:r,optionPadding:o}=t;return{position:"relative",display:"block",minHeight:e,padding:o,color:t.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},kj=t=>{const{antCls:e,componentCls:n}=t,r=`${n}-item`,o=`&${e}-slide-up-enter${e}-slide-up-enter-active`,i=`&${e}-slide-up-appear${e}-slide-up-appear-active`,a=`&${e}-slide-up-leave${e}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Fn(t)),{position:"absolute",top:-9999,zIndex:t.zIndexPopup,boxSizing:"border-box",padding:t.paddingXXS,overflow:"hidden",fontSize:t.fontSize,fontVariant:"initial",backgroundColor:t.colorBgElevated,borderRadius:t.borderRadiusLG,outline:"none",boxShadow:t.boxShadowSecondary,[`
371
371
  ${o}${s}bottomLeft,
372
372
  ${i}${s}bottomLeft
373
373
  `]:{animationName:pp},[`
@@ -1 +1 @@
1
- ._cyber-editor_q6ohd_1 .ProseMirror:focus{outline:none!important;box-shadow:none!important}._cyber-editor_q6ohd_1 .is-active{background-color:#6c5ce7;color:#fff;padding:2px 12px;border-radius:6px;box-shadow:0 2px 4px #0003;transition:background-color .3s ease,color .3s ease;transform:scale(1.05)}._cyber-editor_q6ohd_1 .tiptap :first-child{margin-top:0}._cyber-editor_q6ohd_1 .tiptap strong{font-weight:700}._cyber-editor_q6ohd_1 .tiptap em{font-style:italic}._cyber-editor_q6ohd_1 .tiptap u{text-decoration:underline}._cyber-editor_q6ohd_1 .tiptap s{text-decoration:line-through}._cyber-editor_q6ohd_1 .tiptap sub{vertical-align:sub;font-size:.875rem}._cyber-editor_q6ohd_1 .tiptap sup{vertical-align:super;font-size:.875rem}._cyber-editor_q6ohd_1 .tiptap code{background-color:#f3e8ff;color:#581c87;border-radius:.25rem;padding:.125rem .375rem;font-size:.875rem;font-family:ui-monospace,monospace}._cyber-editor_q6ohd_1 .tiptap pre{background-color:#111827;color:#fff;border-radius:.5rem;padding:1rem;margin:1rem 0;font-family:ui-monospace,monospace;font-size:.875rem;overflow-x:auto}._cyber-editor_q6ohd_1 .tiptap pre code{background-color:transparent;color:inherit;padding:0}._cyber-editor_q6ohd_1 .tiptap h1,._cyber-editor_q6ohd_1 .tiptap h2,._cyber-editor_q6ohd_1 .tiptap h3,._cyber-editor_q6ohd_1 .tiptap h4,._cyber-editor_q6ohd_1 .tiptap h5,._cyber-editor_q6ohd_1 .tiptap h6{font-weight:700;line-height:1.25;margin-top:1.5rem;margin-bottom:1rem}._cyber-editor_q6ohd_1 .tiptap h1{font-size:1.875rem}._cyber-editor_q6ohd_1 .tiptap h2{font-size:1.5rem}._cyber-editor_q6ohd_1 .tiptap h3{font-size:1.25rem}._cyber-editor_q6ohd_1 .tiptap h4{font-size:1.125rem}._cyber-editor_q6ohd_1 .tiptap h5,._cyber-editor_q6ohd_1 .tiptap h6{font-size:1rem}._cyber-editor_q6ohd_1 .tiptap ul,._cyber-editor_q6ohd_1 .tiptap ol{padding-left:1.5rem;margin:1rem 0}._cyber-editor_q6ohd_1 .tiptap ul{list-style-type:disc}._cyber-editor_q6ohd_1 .tiptap ol{list-style-type:decimal}._cyber-editor_q6ohd_1 .tiptap li,._cyber-editor_q6ohd_1 .tiptap li p{margin:.25rem 0}._cyber-editor_q6ohd_1 .tiptap ul[data-type=taskList]{list-style:none;padding-left:.5rem}._cyber-editor_q6ohd_1 .tiptap ul[data-type=taskList] li{display:flex;gap:.5rem;align-items:flex-start}._cyber-editor_q6ohd_1 .tiptap ul[data-type=taskList] input[type=checkbox]{margin-top:.25rem}._cyber-editor_q6ohd_1 .tiptap blockquote{border-left:4px solid rgb(209,213,219);padding-left:1rem;margin:1rem 0;font-style:italic}._cyber-editor_q6ohd_1 .tiptap hr{border:none;border-top:2px solid rgb(229,231,235);margin:2rem 0}._cyber-editor_q6ohd_1 .tiptap table{width:100%;border-collapse:collapse;margin:1rem 0;border:1px solid rgb(229,231,235)}._cyber-editor_q6ohd_1 .tiptap th{background-color:#f9fafb;font-weight:600}._cyber-editor_q6ohd_1 .tiptap td,._cyber-editor_q6ohd_1 .tiptap th{padding:.5rem;text-align:left;border:1px solid rgb(229,231,235);min-width:100px}._cyber-editor_q6ohd_1 .tiptap .tableWrapper{position:relative;margin:1rem 0;overflow-x:auto}._cyber-editor_q6ohd_1 .tiptap .selectedCell{background-color:#eff6ff}._cyber-editor_q6ohd_1 .tiptap .column-resize-handle{position:absolute;top:0;right:0;width:4px;height:100%;background-color:#3b82f6;opacity:0;cursor:col-resize;transition:opacity .2s}._cyber-editor_q6ohd_1 .tiptap .column-resize-handle:hover{opacity:1}._cyber-editor_q6ohd_1 .tiptap .text-left{text-align:left}._cyber-editor_q6ohd_1 .tiptap .text-center{text-align:center}._cyber-editor_q6ohd_1 .tiptap .text-right{text-align:right}._cyber-editor_q6ohd_1 .tiptap .text-justify{text-align:justify}._cyber-editor_q6ohd_1 .ProseMirror{outline:none}._cyber-editor_q6ohd_1 .ProseMirror:focus{outline:none;box-shadow:0 0 0 3px #3b82f680}._cyber-editor_q6ohd_1 .editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.5rem;background-color:#fff;border-bottom:1px solid rgb(229,231,235)}._cyber-editor_q6ohd_1 .editor-toolbar button{padding:.5rem;border-radius:.375rem;transition:all .2s}._cyber-editor_q6ohd_1 .editor-toolbar button:hover,._cyber-editor_q6ohd_1 .editor-toolbar button.is-active{background-color:#dbeafe;color:#2563eb}._cyber-editor_q6ohd_1 .editor-toolbar button:disabled{opacity:.5;cursor:not-allowed}._cyber-editor_q6ohd_1 .editor-toolbar .divider{height:1.25rem;width:1px;background-color:#d1d5db;margin:0 .5rem}@media (max-width: 640px){._cyber-editor_q6ohd_1 .tiptap table{display:block;overflow-x:auto}._cyber-editor_q6ohd_1 .editor-toolbar{justify-content:center}}._cyber-editor_q6ohd_1 .animate-slide-up{animation:slide-up .3s ease-out}@keyframes _slide-up_q6ohd_1{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}._cyber-editor_q6ohd_1 .accordion-header:hover{opacity:.8;transition:all .2s ease}._overlay_giq1a_2,._fullscreen_giq1a_2,._block_giq1a_3{z-index:50;background:linear-gradient(135deg,#ffffff80,#fffc);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:flex;justify-content:center;align-items:center;width:100%;height:100%;animation:_overlay-fade-in_giq1a_1 .5s ease-out}._fullscreen_giq1a_2{position:fixed;top:0;right:0;bottom:0;left:0}._block_giq1a_3{position:relative;width:auto;height:auto}._container_giq1a_31{display:flex;justify-content:center;align-items:center;position:relative}._ring_giq1a_39{width:clamp(60px,10vw,190px);height:clamp(60px,10vw,190px);border:2px solid transparent;border-radius:50%;position:absolute;transition:transform .3s ease}._ring_giq1a_39:nth-child(1){border-bottom:8px solid rgb(240,42,230);animation:_rotate1_giq1a_1 1s linear infinite}._ring_giq1a_39:nth-child(2){border-bottom:8px solid rgb(240,19,67);animation:_rotate2_giq1a_1 1s linear infinite}._ring_giq1a_39:nth-child(3){border-bottom:8px solid rgb(3,170,170);animation:_rotate3_giq1a_1 1s linear infinite}._ring_giq1a_39:nth-child(4){border-bottom:8px solid rgb(207,135,1);animation:_rotate4_giq1a_1 1s linear infinite}._message_giq1a_70{color:#524f4f;font-weight:700;letter-spacing:5px;animation:_text-fade_giq1a_1 2s ease-in-out infinite alternate;font-size:1rem}@keyframes _rotate1_giq1a_1{0%{transform:rotateX(50deg) rotate(110deg)}to{transform:rotateX(50deg) rotate(470deg)}}@keyframes _rotate2_giq1a_1{0%{transform:rotateX(20deg) rotateY(50deg) rotate(20deg)}to{transform:rotateX(20deg) rotateY(50deg) rotate(380deg)}}@keyframes _rotate3_giq1a_1{0%{transform:rotateX(40deg) rotateY(130deg) rotate(450deg)}to{transform:rotateX(40deg) rotateY(130deg) rotate(90deg)}}@keyframes _rotate4_giq1a_1{0%{transform:rotateX(70deg) rotate(270deg)}to{transform:rotateX(70deg) rotate(630deg)}}@keyframes _text-fade_giq1a_1{0%{opacity:.6}to{opacity:1}}@keyframes _overlay-fade-in_giq1a_1{0%{opacity:0}to{opacity:1}}/*! tailwindcss v4.0.17 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--ce-font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--ce-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--ce-color-blue-50:oklch(.97 .014 254.604);--ce-color-blue-100:oklch(.932 .032 255.585);--ce-color-blue-400:oklch(.707 .165 254.624);--ce-color-blue-600:oklch(.546 .245 262.881);--ce-color-blue-700:oklch(.488 .243 264.376);--ce-color-indigo-200:oklch(.87 .065 274.039);--ce-color-indigo-300:oklch(.785 .115 274.713);--ce-color-indigo-500:oklch(.585 .233 277.117);--ce-color-indigo-600:oklch(.511 .262 276.966);--ce-color-indigo-700:oklch(.457 .24 277.023);--ce-color-gray-50:oklch(.985 .002 247.839);--ce-color-gray-200:oklch(.928 .006 264.531);--ce-color-gray-300:oklch(.872 .01 258.338);--ce-color-gray-600:oklch(.446 .03 256.802);--ce-color-gray-700:oklch(.373 .034 259.733);--ce-color-black:#000;--ce-color-white:#fff;--ce-spacing:.25rem;--ce-text-sm:.875rem;--ce-text-sm--line-height:calc(1.25/.875);--ce-text-lg:1.125rem;--ce-text-lg--line-height:calc(1.75/1.125);--ce-font-weight-medium:500;--ce-font-weight-bold:700;--ce-radius-sm:.25rem;--ce-radius-md:.375rem;--ce-radius-lg:.5rem;--ce-ease-in-out:cubic-bezier(.4,0,.2,1);--ce-default-transition-duration:.15s;--ce-default-transition-timing-function:cubic-bezier(.4,0,.2,1);--ce-default-font-family:var(--ce-font-sans);--ce-default-mono-font-family:var(--ce-font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--ce-default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--ce-default-font-feature-settings,normal);font-variation-settings:var(--ce-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--ce-default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--ce-default-mono-font-feature-settings,normal);font-variation-settings:var(--ce-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:color-mix(in oklab,currentColor 50%,transparent)}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.ce\:fixed{position:fixed}.ce\:relative{position:relative}.ce\:right-4{right:calc(var(--ce-spacing)*4)}.ce\:bottom-20{bottom:calc(var(--ce-spacing)*20)}.ce\:z-40{z-index:40}.ce\:mx-2{margin-inline:calc(var(--ce-spacing)*2)}.ce\:my-4{margin-block:calc(var(--ce-spacing)*4)}.ce\:mt-1{margin-top:calc(var(--ce-spacing)*1)}.ce\:mt-2{margin-top:calc(var(--ce-spacing)*2)}.ce\:mt-3{margin-top:calc(var(--ce-spacing)*3)}.ce\:mb-3{margin-bottom:calc(var(--ce-spacing)*3)}.ce\:block{display:block}.ce\:flex{display:flex}.ce\:grid{display:grid}.ce\:inline-block{display:inline-block}.ce\:h-5{height:calc(var(--ce-spacing)*5)}.ce\:h-8{height:calc(var(--ce-spacing)*8)}.ce\:h-auto{height:auto}.ce\:max-h-0{max-height:calc(var(--ce-spacing)*0)}.ce\:max-h-96{max-height:calc(var(--ce-spacing)*96)}.ce\:w-5{width:calc(var(--ce-spacing)*5)}.ce\:w-8{width:calc(var(--ce-spacing)*8)}.ce\:w-56{width:calc(var(--ce-spacing)*56)}.ce\:w-64{width:calc(var(--ce-spacing)*64)}.ce\:w-\[1px\]{width:1px}.ce\:w-full{width:100%}.ce\:max-w-full{max-width:100%}.ce\:flex-1{flex:1}.ce\:scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.ce\:rotate-180{rotate:180deg}.ce\:cursor-not-allowed{cursor:not-allowed}.ce\:cursor-pointer{cursor:pointer}.ce\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.ce\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.ce\:flex-col{flex-direction:column}.ce\:flex-wrap{flex-wrap:wrap}.ce\:items-center{align-items:center}.ce\:justify-between{justify-content:space-between}.ce\:justify-center{justify-content:center}.ce\:gap-1{gap:calc(var(--ce-spacing)*1)}.ce\:gap-2{gap:calc(var(--ce-spacing)*2)}.ce\:gap-4{gap:calc(var(--ce-spacing)*4)}.ce\:gap-6{gap:calc(var(--ce-spacing)*6)}:where(.ce\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--ce-spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--ce-spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.ce\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--ce-spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--ce-spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.ce\:space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--ce-spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--ce-spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.ce\:space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--ce-spacing)*3)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--ce-spacing)*3)*calc(1 - var(--tw-space-x-reverse)))}.ce\:overflow-hidden{overflow:hidden}.ce\:rounded{border-radius:.25rem}.ce\:rounded-lg{border-radius:var(--ce-radius-lg)}.ce\:rounded-md{border-radius:var(--ce-radius-md)}.ce\:rounded-sm{border-radius:var(--ce-radius-sm)}.ce\:rounded-t-lg{border-top-left-radius:var(--ce-radius-lg);border-top-right-radius:var(--ce-radius-lg)}.ce\:border{border-style:var(--tw-border-style);border-width:1px}.ce\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.ce\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.ce\:border-none{--tw-border-style:none;border-style:none}.ce\:border-gray-200{border-color:var(--ce-color-gray-200)}.ce\:border-gray-300{border-color:var(--ce-color-gray-300)}.ce\:border-white{border-color:var(--ce-color-white)}.ce\:bg-blue-50{background-color:var(--ce-color-blue-50)}.ce\:bg-blue-100{background-color:var(--ce-color-blue-100)}.ce\:bg-blue-400{background-color:var(--ce-color-blue-400)}.ce\:bg-gray-50{background-color:var(--ce-color-gray-50)}.ce\:bg-gray-200{background-color:var(--ce-color-gray-200)}.ce\:bg-gray-300{background-color:var(--ce-color-gray-300)}.ce\:bg-indigo-600{background-color:var(--ce-color-indigo-600)}.ce\:bg-transparent{background-color:#0000}.ce\:bg-white{background-color:var(--ce-color-white)}.ce\:object-contain{object-fit:contain}.ce\:p-1{padding:calc(var(--ce-spacing)*1)}.ce\:p-2{padding:calc(var(--ce-spacing)*2)}.ce\:p-3{padding:calc(var(--ce-spacing)*3)}.ce\:p-4{padding:calc(var(--ce-spacing)*4)}.ce\:px-3{padding-inline:calc(var(--ce-spacing)*3)}.ce\:px-4{padding-inline:calc(var(--ce-spacing)*4)}.ce\:px-6{padding-inline:calc(var(--ce-spacing)*6)}.ce\:py-1{padding-block:calc(var(--ce-spacing)*1)}.ce\:py-2{padding-block:calc(var(--ce-spacing)*2)}.ce\:py-4{padding-block:calc(var(--ce-spacing)*4)}.ce\:pt-4{padding-top:calc(var(--ce-spacing)*4)}.ce\:text-center{text-align:center}.ce\:text-lg{font-size:var(--ce-text-lg);line-height:var(--tw-leading,var(--ce-text-lg--line-height))}.ce\:text-sm{font-size:var(--ce-text-sm);line-height:var(--tw-leading,var(--ce-text-sm--line-height))}.ce\:font-bold{--tw-font-weight:var(--ce-font-weight-bold);font-weight:var(--ce-font-weight-bold)}.ce\:font-medium{--tw-font-weight:var(--ce-font-weight-medium);font-weight:var(--ce-font-weight-medium)}.ce\:text-black{color:var(--ce-color-black)}.ce\:text-blue-600{color:var(--ce-color-blue-600)}.ce\:text-gray-600{color:var(--ce-color-gray-600)}.ce\:text-gray-700{color:var(--ce-color-gray-700)}.ce\:text-white{color:var(--ce-color-white)}.ce\:opacity-0{opacity:0}.ce\:opacity-50{opacity:.5}.ce\:opacity-100{opacity:1}.ce\:shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ce\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ce\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ce\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ce\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--ce-default-transition-timing-function));transition-duration:var(--tw-duration,var(--ce-default-transition-duration))}.ce\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--ce-default-transition-timing-function));transition-duration:var(--tw-duration,var(--ce-default-transition-duration))}.ce\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--ce-default-transition-timing-function));transition-duration:var(--tw-duration,var(--ce-default-transition-duration))}.ce\:duration-200{--tw-duration:.2s;transition-duration:.2s}.ce\:duration-300{--tw-duration:.3s;transition-duration:.3s}.ce\:ease-in-out{--tw-ease:var(--ce-ease-in-out);transition-timing-function:var(--ce-ease-in-out)}.ce\:outline-none{--tw-outline-style:none;outline-style:none}@media (hover:hover){.ce\:hover\:bg-blue-100:hover{background-color:var(--ce-color-blue-100)}.ce\:hover\:bg-gray-300:hover{background-color:var(--ce-color-gray-300)}.ce\:hover\:bg-indigo-700:hover{background-color:var(--ce-color-indigo-700)}.ce\:hover\:text-blue-600:hover{color:var(--ce-color-blue-600)}.ce\:hover\:text-blue-700:hover{color:var(--ce-color-blue-700)}}.ce\:focus\:border-indigo-300:focus{border-color:var(--ce-color-indigo-300)}.ce\:focus\:ring:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ce\:focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ce\:focus\:ring-indigo-200:focus{--tw-ring-color:var(--ce-color-indigo-200)}.ce\:focus\:ring-indigo-500:focus{--tw-ring-color:var(--ce-color-indigo-500)}.ce\:focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.ce\:focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
1
+ ._cyber-editor_1liko_1 .ProseMirror:focus{outline:none!important;box-shadow:none!important}._cyber-editor_1liko_1 .is-active{background-color:#6c5ce7;color:#fff;padding:2px 12px;border-radius:6px;box-shadow:0 2px 4px #0003;transition:background-color .3s ease,color .3s ease;transform:scale(1.05)}._cyber-editor_1liko_1 .tiptap :first-child{margin-top:0}._cyber-editor_1liko_1 .tiptap strong{font-weight:700}._cyber-editor_1liko_1 .tiptap em{font-style:italic}._cyber-editor_1liko_1 .tiptap u{text-decoration:underline}._cyber-editor_1liko_1 .tiptap s{text-decoration:line-through}._cyber-editor_1liko_1 .tiptap sub{vertical-align:sub;font-size:.875rem}._cyber-editor_1liko_1 .tiptap sup{vertical-align:super;font-size:.875rem}._cyber-editor_1liko_1 .tiptap code{background-color:#f3e8ff;color:#581c87;border-radius:.25rem;padding:.125rem .375rem;font-size:.875rem;font-family:ui-monospace,monospace}._cyber-editor_1liko_1 .tiptap pre{background-color:#111827;color:#fff;border-radius:.5rem;padding:1rem;margin:1rem 0;font-family:ui-monospace,monospace;font-size:.875rem;overflow-x:auto}._cyber-editor_1liko_1 .tiptap pre code{background-color:transparent;color:inherit;padding:0}._cyber-editor_1liko_1 .tiptap h1,._cyber-editor_1liko_1 .tiptap h2,._cyber-editor_1liko_1 .tiptap h3,._cyber-editor_1liko_1 .tiptap h4,._cyber-editor_1liko_1 .tiptap h5,._cyber-editor_1liko_1 .tiptap h6{font-weight:700;line-height:1.25;margin-top:1.5rem;margin-bottom:1rem}._cyber-editor_1liko_1 .tiptap h1{font-size:1.875rem}._cyber-editor_1liko_1 .tiptap h2{font-size:1.5rem}._cyber-editor_1liko_1 .tiptap h3{font-size:1.25rem}._cyber-editor_1liko_1 .tiptap h4{font-size:1.125rem}._cyber-editor_1liko_1 .tiptap h5,._cyber-editor_1liko_1 .tiptap h6{font-size:1rem}._cyber-editor_1liko_1 .tiptap ul,._cyber-editor_1liko_1 .tiptap ol{padding-left:1.5rem;margin:1rem 0}._cyber-editor_1liko_1 .tiptap ul{list-style-type:disc}._cyber-editor_1liko_1 .tiptap ol{list-style-type:decimal}._cyber-editor_1liko_1 .tiptap li,._cyber-editor_1liko_1 .tiptap li p{margin:.25rem 0}._cyber-editor_1liko_1 .tiptap ul[data-type=taskList]{list-style:none;padding-left:.5rem}._cyber-editor_1liko_1 .tiptap ul[data-type=taskList] li{display:flex;gap:.5rem;align-items:flex-start}._cyber-editor_1liko_1 .tiptap ul[data-type=taskList] input[type=checkbox]{margin-top:.25rem}._cyber-editor_1liko_1 .tiptap blockquote{border-left:4px solid rgb(209,213,219);padding-left:1rem;margin:1rem 0;font-style:italic}._cyber-editor_1liko_1 .tiptap hr{border:none;border-top:2px solid rgb(229,231,235);margin:2rem 0}._cyber-editor_1liko_1 .tiptap table{width:100%;border-collapse:collapse;margin:1rem 0;border:1px solid rgb(229,231,235)}._cyber-editor_1liko_1 .tiptap th{font-weight:600}._cyber-editor_1liko_1 .tiptap td,._cyber-editor_1liko_1 .tiptap th{padding:.5rem;text-align:left;border:1px solid rgb(229,231,235);min-width:100px}._cyber-editor_1liko_1 .tiptap .tableWrapper{position:relative;margin:1rem 0;overflow-x:auto}._cyber-editor_1liko_1 .tiptap .selectedCell{background-color:#eff6ff}._cyber-editor_1liko_1 .tiptap .column-resize-handle{position:absolute;top:0;right:0;width:4px;height:100%;background-color:#3b82f6;opacity:0;cursor:col-resize;transition:opacity .2s}._cyber-editor_1liko_1 .tiptap .column-resize-handle:hover{opacity:1}._cyber-editor_1liko_1 .tiptap .text-left{text-align:left}._cyber-editor_1liko_1 .tiptap .text-center{text-align:center}._cyber-editor_1liko_1 .tiptap .text-right{text-align:right}._cyber-editor_1liko_1 .tiptap .text-justify{text-align:justify}._cyber-editor_1liko_1 .ProseMirror{outline:none}._cyber-editor_1liko_1 .ProseMirror:focus{outline:none;box-shadow:0 0 0 3px #3b82f680}._cyber-editor_1liko_1 .editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.5rem;background-color:#fff;border-bottom:1px solid rgb(229,231,235)}._cyber-editor_1liko_1 .editor-toolbar button{padding:.5rem;border-radius:.375rem;transition:all .2s}._cyber-editor_1liko_1 .editor-toolbar button:hover,._cyber-editor_1liko_1 .editor-toolbar button.is-active{background-color:#dbeafe;color:#2563eb}._cyber-editor_1liko_1 .editor-toolbar button:disabled{opacity:.5;cursor:not-allowed}._cyber-editor_1liko_1 .editor-toolbar .divider{height:1.25rem;width:1px;background-color:#d1d5db;margin:0 .5rem}@media (max-width: 640px){._cyber-editor_1liko_1 .tiptap table{display:block;overflow-x:auto}._cyber-editor_1liko_1 .editor-toolbar{justify-content:center}}._cyber-editor_1liko_1 .animate-slide-up{animation:slide-up .3s ease-out}@keyframes _slide-up_1liko_1{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}._cyber-editor_1liko_1 .accordion-header:hover{opacity:.8;transition:all .2s ease}._overlay_giq1a_2,._fullscreen_giq1a_2,._block_giq1a_3{z-index:50;background:linear-gradient(135deg,#ffffff80,#fffc);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:flex;justify-content:center;align-items:center;width:100%;height:100%;animation:_overlay-fade-in_giq1a_1 .5s ease-out}._fullscreen_giq1a_2{position:fixed;top:0;right:0;bottom:0;left:0}._block_giq1a_3{position:relative;width:auto;height:auto}._container_giq1a_31{display:flex;justify-content:center;align-items:center;position:relative}._ring_giq1a_39{width:clamp(60px,10vw,190px);height:clamp(60px,10vw,190px);border:2px solid transparent;border-radius:50%;position:absolute;transition:transform .3s ease}._ring_giq1a_39:nth-child(1){border-bottom:8px solid rgb(240,42,230);animation:_rotate1_giq1a_1 1s linear infinite}._ring_giq1a_39:nth-child(2){border-bottom:8px solid rgb(240,19,67);animation:_rotate2_giq1a_1 1s linear infinite}._ring_giq1a_39:nth-child(3){border-bottom:8px solid rgb(3,170,170);animation:_rotate3_giq1a_1 1s linear infinite}._ring_giq1a_39:nth-child(4){border-bottom:8px solid rgb(207,135,1);animation:_rotate4_giq1a_1 1s linear infinite}._message_giq1a_70{color:#524f4f;font-weight:700;letter-spacing:5px;animation:_text-fade_giq1a_1 2s ease-in-out infinite alternate;font-size:1rem}@keyframes _rotate1_giq1a_1{0%{transform:rotateX(50deg) rotate(110deg)}to{transform:rotateX(50deg) rotate(470deg)}}@keyframes _rotate2_giq1a_1{0%{transform:rotateX(20deg) rotateY(50deg) rotate(20deg)}to{transform:rotateX(20deg) rotateY(50deg) rotate(380deg)}}@keyframes _rotate3_giq1a_1{0%{transform:rotateX(40deg) rotateY(130deg) rotate(450deg)}to{transform:rotateX(40deg) rotateY(130deg) rotate(90deg)}}@keyframes _rotate4_giq1a_1{0%{transform:rotateX(70deg) rotate(270deg)}to{transform:rotateX(70deg) rotate(630deg)}}@keyframes _text-fade_giq1a_1{0%{opacity:.6}to{opacity:1}}@keyframes _overlay-fade-in_giq1a_1{0%{opacity:0}to{opacity:1}}/*! tailwindcss v4.0.17 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--ce-font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--ce-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--ce-color-blue-50:oklch(.97 .014 254.604);--ce-color-blue-100:oklch(.932 .032 255.585);--ce-color-blue-400:oklch(.707 .165 254.624);--ce-color-blue-600:oklch(.546 .245 262.881);--ce-color-blue-700:oklch(.488 .243 264.376);--ce-color-indigo-200:oklch(.87 .065 274.039);--ce-color-indigo-300:oklch(.785 .115 274.713);--ce-color-indigo-500:oklch(.585 .233 277.117);--ce-color-indigo-600:oklch(.511 .262 276.966);--ce-color-indigo-700:oklch(.457 .24 277.023);--ce-color-gray-50:oklch(.985 .002 247.839);--ce-color-gray-200:oklch(.928 .006 264.531);--ce-color-gray-300:oklch(.872 .01 258.338);--ce-color-gray-600:oklch(.446 .03 256.802);--ce-color-gray-700:oklch(.373 .034 259.733);--ce-color-black:#000;--ce-color-white:#fff;--ce-spacing:.25rem;--ce-text-sm:.875rem;--ce-text-sm--line-height:calc(1.25/.875);--ce-text-lg:1.125rem;--ce-text-lg--line-height:calc(1.75/1.125);--ce-font-weight-medium:500;--ce-font-weight-bold:700;--ce-radius-sm:.25rem;--ce-radius-md:.375rem;--ce-radius-lg:.5rem;--ce-ease-in-out:cubic-bezier(.4,0,.2,1);--ce-default-transition-duration:.15s;--ce-default-transition-timing-function:cubic-bezier(.4,0,.2,1);--ce-default-font-family:var(--ce-font-sans);--ce-default-mono-font-family:var(--ce-font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--ce-default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--ce-default-font-feature-settings,normal);font-variation-settings:var(--ce-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--ce-default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--ce-default-mono-font-feature-settings,normal);font-variation-settings:var(--ce-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:color-mix(in oklab,currentColor 50%,transparent)}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.ce\:fixed{position:fixed}.ce\:relative{position:relative}.ce\:right-4{right:calc(var(--ce-spacing)*4)}.ce\:bottom-20{bottom:calc(var(--ce-spacing)*20)}.ce\:z-40{z-index:40}.ce\:mx-2{margin-inline:calc(var(--ce-spacing)*2)}.ce\:my-4{margin-block:calc(var(--ce-spacing)*4)}.ce\:mt-1{margin-top:calc(var(--ce-spacing)*1)}.ce\:mt-2{margin-top:calc(var(--ce-spacing)*2)}.ce\:mt-3{margin-top:calc(var(--ce-spacing)*3)}.ce\:mb-3{margin-bottom:calc(var(--ce-spacing)*3)}.ce\:block{display:block}.ce\:flex{display:flex}.ce\:grid{display:grid}.ce\:inline-block{display:inline-block}.ce\:h-5{height:calc(var(--ce-spacing)*5)}.ce\:h-8{height:calc(var(--ce-spacing)*8)}.ce\:h-auto{height:auto}.ce\:max-h-0{max-height:calc(var(--ce-spacing)*0)}.ce\:max-h-96{max-height:calc(var(--ce-spacing)*96)}.ce\:w-5{width:calc(var(--ce-spacing)*5)}.ce\:w-8{width:calc(var(--ce-spacing)*8)}.ce\:w-56{width:calc(var(--ce-spacing)*56)}.ce\:w-64{width:calc(var(--ce-spacing)*64)}.ce\:w-\[1px\]{width:1px}.ce\:w-full{width:100%}.ce\:max-w-full{max-width:100%}.ce\:flex-1{flex:1}.ce\:scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.ce\:rotate-180{rotate:180deg}.ce\:cursor-not-allowed{cursor:not-allowed}.ce\:cursor-pointer{cursor:pointer}.ce\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.ce\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.ce\:flex-col{flex-direction:column}.ce\:flex-wrap{flex-wrap:wrap}.ce\:items-center{align-items:center}.ce\:justify-between{justify-content:space-between}.ce\:justify-center{justify-content:center}.ce\:gap-1{gap:calc(var(--ce-spacing)*1)}.ce\:gap-2{gap:calc(var(--ce-spacing)*2)}.ce\:gap-4{gap:calc(var(--ce-spacing)*4)}.ce\:gap-6{gap:calc(var(--ce-spacing)*6)}:where(.ce\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--ce-spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--ce-spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.ce\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--ce-spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--ce-spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.ce\:space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--ce-spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--ce-spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.ce\:space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--ce-spacing)*3)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--ce-spacing)*3)*calc(1 - var(--tw-space-x-reverse)))}.ce\:overflow-hidden{overflow:hidden}.ce\:rounded{border-radius:.25rem}.ce\:rounded-lg{border-radius:var(--ce-radius-lg)}.ce\:rounded-md{border-radius:var(--ce-radius-md)}.ce\:rounded-sm{border-radius:var(--ce-radius-sm)}.ce\:rounded-t-lg{border-top-left-radius:var(--ce-radius-lg);border-top-right-radius:var(--ce-radius-lg)}.ce\:border{border-style:var(--tw-border-style);border-width:1px}.ce\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.ce\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.ce\:border-none{--tw-border-style:none;border-style:none}.ce\:border-gray-200{border-color:var(--ce-color-gray-200)}.ce\:border-gray-300{border-color:var(--ce-color-gray-300)}.ce\:border-white{border-color:var(--ce-color-white)}.ce\:bg-blue-50{background-color:var(--ce-color-blue-50)}.ce\:bg-blue-100{background-color:var(--ce-color-blue-100)}.ce\:bg-blue-400{background-color:var(--ce-color-blue-400)}.ce\:bg-gray-50{background-color:var(--ce-color-gray-50)}.ce\:bg-gray-200{background-color:var(--ce-color-gray-200)}.ce\:bg-gray-300{background-color:var(--ce-color-gray-300)}.ce\:bg-indigo-600{background-color:var(--ce-color-indigo-600)}.ce\:bg-transparent{background-color:#0000}.ce\:bg-white{background-color:var(--ce-color-white)}.ce\:object-contain{object-fit:contain}.ce\:p-1{padding:calc(var(--ce-spacing)*1)}.ce\:p-2{padding:calc(var(--ce-spacing)*2)}.ce\:p-3{padding:calc(var(--ce-spacing)*3)}.ce\:p-4{padding:calc(var(--ce-spacing)*4)}.ce\:px-3{padding-inline:calc(var(--ce-spacing)*3)}.ce\:px-4{padding-inline:calc(var(--ce-spacing)*4)}.ce\:px-6{padding-inline:calc(var(--ce-spacing)*6)}.ce\:py-1{padding-block:calc(var(--ce-spacing)*1)}.ce\:py-2{padding-block:calc(var(--ce-spacing)*2)}.ce\:py-4{padding-block:calc(var(--ce-spacing)*4)}.ce\:pt-4{padding-top:calc(var(--ce-spacing)*4)}.ce\:text-center{text-align:center}.ce\:text-lg{font-size:var(--ce-text-lg);line-height:var(--tw-leading,var(--ce-text-lg--line-height))}.ce\:text-sm{font-size:var(--ce-text-sm);line-height:var(--tw-leading,var(--ce-text-sm--line-height))}.ce\:font-bold{--tw-font-weight:var(--ce-font-weight-bold);font-weight:var(--ce-font-weight-bold)}.ce\:font-medium{--tw-font-weight:var(--ce-font-weight-medium);font-weight:var(--ce-font-weight-medium)}.ce\:text-black{color:var(--ce-color-black)}.ce\:text-blue-600{color:var(--ce-color-blue-600)}.ce\:text-gray-600{color:var(--ce-color-gray-600)}.ce\:text-gray-700{color:var(--ce-color-gray-700)}.ce\:text-white{color:var(--ce-color-white)}.ce\:opacity-0{opacity:0}.ce\:opacity-50{opacity:.5}.ce\:opacity-100{opacity:1}.ce\:shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ce\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ce\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ce\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ce\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--ce-default-transition-timing-function));transition-duration:var(--tw-duration,var(--ce-default-transition-duration))}.ce\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--ce-default-transition-timing-function));transition-duration:var(--tw-duration,var(--ce-default-transition-duration))}.ce\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--ce-default-transition-timing-function));transition-duration:var(--tw-duration,var(--ce-default-transition-duration))}.ce\:duration-200{--tw-duration:.2s;transition-duration:.2s}.ce\:duration-300{--tw-duration:.3s;transition-duration:.3s}.ce\:ease-in-out{--tw-ease:var(--ce-ease-in-out);transition-timing-function:var(--ce-ease-in-out)}.ce\:outline-none{--tw-outline-style:none;outline-style:none}@media (hover:hover){.ce\:hover\:bg-blue-100:hover{background-color:var(--ce-color-blue-100)}.ce\:hover\:bg-gray-300:hover{background-color:var(--ce-color-gray-300)}.ce\:hover\:bg-indigo-700:hover{background-color:var(--ce-color-indigo-700)}.ce\:hover\:text-blue-600:hover{color:var(--ce-color-blue-600)}.ce\:hover\:text-blue-700:hover{color:var(--ce-color-blue-700)}}.ce\:focus\:border-indigo-300:focus{border-color:var(--ce-color-indigo-300)}.ce\:focus\:ring:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ce\:focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ce\:focus\:ring-indigo-200:focus{--tw-ring-color:var(--ce-color-indigo-200)}.ce\:focus\:ring-indigo-500:focus{--tw-ring-color:var(--ce-color-indigo-500)}.ce\:focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.ce\:focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
@@ -3,7 +3,7 @@ import z, { createContext as Eo, useContext as ln, useRef as Ue, useState as _t,
3
3
  import * as L0 from "react-dom";
4
4
  import Kd, { flushSync as ds, createPortal as gE, unstable_batchedUpdates as vE } from "react-dom";
5
5
  const bE = {
6
- "cyber-editor": "_cyber-editor_q6ohd_1"
6
+ "cyber-editor": "_cyber-editor_1liko_1"
7
7
  };
8
8
  var al = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9
9
  function yE(t) {
@@ -30365,7 +30365,7 @@ function xj(t, e, n) {
30365
30365
  n(a), f();
30366
30366
  });
30367
30367
  }, c = function(p) {
30368
- if (!(p.target.draggable || p.button !== 0)) {
30368
+ if (!p.target.draggable) {
30369
30369
  var m = p;
30370
30370
  m._virtualHandled || (m._virtualHandled = !0, o = !0);
30371
30371
  }
@@ -0,0 +1,3 @@
1
+ import './shared/providers/editor.module.scss';
2
+ export { EditorProvider } from './shared/providers/editor';
3
+ export * from './shared/typescript';
@@ -0,0 +1,2 @@
1
+ import { Node } from '@tiptap/core';
2
+ export declare const AccordionExtension: Node<any, any>;
@@ -0,0 +1,11 @@
1
+ declare module '@tiptap/core' {
2
+ interface Commands<ReturnType> {
3
+ customAccordion: {
4
+ setAccordion: (attrs?: {
5
+ title?: string;
6
+ content?: string;
7
+ }) => ReturnType;
8
+ };
9
+ }
10
+ }
11
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { I_AccordionViewProps } from './accordion-view.type';
2
+ export declare function AccordionView({ node, editor }: I_AccordionViewProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { Editor } from '@tiptap/react';
2
+ export interface I_AccordionViewProps {
3
+ node: any;
4
+ editor: Editor;
5
+ }
@@ -0,0 +1,4 @@
1
+ export * from './accordion-extension';
2
+ export * from './accordion-extension.type';
3
+ export * from './accordion-view.component';
4
+ export * from './accordion-view.type';
@@ -0,0 +1,2 @@
1
+ import type { I_ColorPickerProps } from './color-picker.type';
2
+ export declare function TextColorPicker({ editor }: I_ColorPickerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import type { Editor } from '@tiptap/react';
2
+ export interface I_ColorPickerProps {
3
+ editor: Editor;
4
+ }
@@ -0,0 +1,2 @@
1
+ export * from './color-picker.component';
2
+ export * from './color-picker.type';
@@ -0,0 +1,2 @@
1
+ import type { I_HeadingProps } from './heading.type';
2
+ export declare function Heading({ editor }: I_HeadingProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ import type { Editor } from '@tiptap/react';
2
+ export interface I_HeadingProps {
3
+ editor: Editor;
4
+ }
@@ -0,0 +1,2 @@
1
+ export * from './heading.component';
2
+ export * from './heading.type';
@@ -0,0 +1,2 @@
1
+ import type { I_ImageViewProps } from './image-view.type';
2
+ export declare function ImageView({ node, updateAttributes, editor, }: I_ImageViewProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import type { Editor, NodeViewProps } from '@tiptap/core';
2
+ export interface I_ImageViewProps extends NodeViewProps {
3
+ editor: Editor;
4
+ }
@@ -0,0 +1,2 @@
1
+ import { Node } from '@tiptap/core';
2
+ export declare const Image: Node<any, any>;
@@ -0,0 +1,12 @@
1
+ declare module '@tiptap/core' {
2
+ interface Commands<ReturnType> {
3
+ customImage: {
4
+ setImage: (attrs?: {
5
+ src?: string;
6
+ width?: number | string;
7
+ height?: number | string;
8
+ }) => ReturnType;
9
+ };
10
+ }
11
+ }
12
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from './image';
2
+ export * from './image-view.component';
3
+ export * from './image-view.type';
4
+ export * from './image.type';
@@ -0,0 +1,6 @@
1
+ export * from './accordion';
2
+ export * from './color-picker';
3
+ export * from './heading';
4
+ export * from './image';
5
+ export * from './table';
6
+ export * from './toolbar';
@@ -0,0 +1,2 @@
1
+ export * from './table.component';
2
+ export * from './table.type';
@@ -0,0 +1,2 @@
1
+ import type { I_TableSelectorProps } from './table.type';
2
+ export declare function Table({ editor, buttonClass, activeClass, }: I_TableSelectorProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import type { Editor } from '@tiptap/react';
2
+ export interface I_TableSelectorProps {
3
+ editor: Editor;
4
+ buttonClass: string;
5
+ activeClass: string;
6
+ }
@@ -0,0 +1 @@
1
+ export declare function CustomExtensions({ editor }: any): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function ToolBar({ editor }: any): import("react/jsx-runtime").JSX.Element | null;
package/dist/root.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare function App(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { I_ColorPickerProps } from './color-picker.type';
2
+ export declare function ColorPicker({ value, onChange }: I_ColorPickerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { Color } from 'antd/es/color-picker';
2
+ export interface I_ColorPickerProps {
3
+ value: string;
4
+ onChange: (value: Color) => void;
5
+ }
@@ -0,0 +1,2 @@
1
+ export * from './color-picker.component';
2
+ export * from './color-picker.type';
@@ -0,0 +1,2 @@
1
+ export * from './color-picker';
2
+ export * from './modal-edit';
@@ -0,0 +1,2 @@
1
+ export * from './modal-edit.component';
2
+ export * from './modal-edit.type';
@@ -0,0 +1,2 @@
1
+ import type { I_ModalEditProps } from './modal-edit.type';
2
+ export declare function ModalEdit({ title, childrenContent, editable, childrenEdit, }: I_ModalEditProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export interface I_ModalEditProps {
2
+ title: string;
3
+ childrenContent: React.ReactNode;
4
+ editable: boolean;
5
+ childrenEdit?: React.ReactNode;
6
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: (mode?: string) => Record<string, string>;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export declare const VITE_ALIAS: {
2
+ '#modules': string;
3
+ '#shared': string;
4
+ };
@@ -0,0 +1 @@
1
+ export * from './alias';
@@ -0,0 +1,3 @@
1
+ import type { I_CyberEditorProviderProps } from '#shared/typescript';
2
+ import '#shared/assets/styles/global.css';
3
+ export declare function EditorProvider({ content, slotBefore, className, editorClassName, editable, onChange, }: I_CyberEditorProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './editor';
@@ -0,0 +1,8 @@
1
+ export interface I_CyberEditorProviderProps {
2
+ content?: string;
3
+ slotBefore?: boolean;
4
+ className?: string;
5
+ editorClassName?: string;
6
+ editable?: boolean;
7
+ onChange?: (content: string) => void;
8
+ }
@@ -0,0 +1 @@
1
+ export declare const extensions: (import("@tiptap/core").Node<any, any> | import("@tiptap/core").Extension<import("@tiptap/extension-color").ColorOptions, any> | import("@tiptap/core").Extension<import("@tiptap/starter-kit").StarterKitOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-underline").UnderlineOptions, any>)[];
@@ -0,0 +1 @@
1
+ export * from './extensions';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cyberskill/cyber-editor",
3
3
  "type": "module",
4
- "version": "3.8.4",
4
+ "version": "3.8.6",
5
5
  "description": "Update version tailwind v4",
6
6
  "exports": {
7
7
  ".": {
@@ -18,7 +18,7 @@
18
18
  "dist"
19
19
  ],
20
20
  "scripts": {
21
- "build": "vite build",
21
+ "build": "vite build && tsc --project tsconfig.app.json",
22
22
  "dev": "vite",
23
23
  "lint": "pnpm exec cyberskill lint",
24
24
  "lint:fix": "pnpm exec cyberskill lint:fix",