@bwg-ui/core 1.1.22 → 1.1.24

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 (130) hide show
  1. package/dist/chunks/BwgSwitch-B79pseQM.js +269 -0
  2. package/dist/chunks/BwgSwitch-B79pseQM.js.map +1 -0
  3. package/dist/chunks/BwgSwitch-CAI-kEaM.cjs +2 -0
  4. package/dist/chunks/BwgSwitch-CAI-kEaM.cjs.map +1 -0
  5. package/dist/chunks/{BwgDownload-COsACbpJ.js → BwgUploader-BcVlE61B.js} +2933 -2982
  6. package/dist/chunks/BwgUploader-BcVlE61B.js.map +1 -0
  7. package/dist/chunks/BwgUploader-DaNV2URT.cjs +3 -0
  8. package/dist/chunks/BwgUploader-DaNV2URT.cjs.map +1 -0
  9. package/dist/chunks/LoadingOverlay-DAZJF5wg.js +19 -0
  10. package/dist/chunks/LoadingOverlay-DAZJF5wg.js.map +1 -0
  11. package/dist/chunks/LoadingOverlay-DcmKvoZA.cjs +2 -0
  12. package/dist/chunks/LoadingOverlay-DcmKvoZA.cjs.map +1 -0
  13. package/dist/chunks/{SSOHandler-B15Ssd5g.js → SSOHandler-CkPcSHIm.js} +12161 -11034
  14. package/dist/chunks/SSOHandler-CkPcSHIm.js.map +1 -0
  15. package/dist/chunks/SSOHandler-DiW4Ft9i.cjs +237 -0
  16. package/dist/chunks/SSOHandler-DiW4Ft9i.cjs.map +1 -0
  17. package/dist/chunks/{SearchBoxContext-BxJN-x3-.js → SearchBoxContext-BCvEYyFk.js} +7 -7
  18. package/dist/chunks/{SearchBoxContext-BxJN-x3-.js.map → SearchBoxContext-BCvEYyFk.js.map} +1 -1
  19. package/dist/chunks/{SearchBoxContext-DnQGaRgo.cjs → SearchBoxContext-DwFDOyYG.cjs} +2 -2
  20. package/dist/chunks/{SearchBoxContext-DnQGaRgo.cjs.map → SearchBoxContext-DwFDOyYG.cjs.map} +1 -1
  21. package/dist/chunks/{ViewContainer-HSyLfryI.cjs → ViewContainer-Bhq22_B3.cjs} +2 -2
  22. package/dist/chunks/{ViewContainer-HSyLfryI.cjs.map → ViewContainer-Bhq22_B3.cjs.map} +1 -1
  23. package/dist/chunks/{ViewContainer-x2yzKkIG.js → ViewContainer-CjpJqoGG.js} +2 -2
  24. package/dist/chunks/{ViewContainer-x2yzKkIG.js.map → ViewContainer-CjpJqoGG.js.map} +1 -1
  25. package/dist/chunks/apiUtils-BZ6s0_NI.cjs +3 -0
  26. package/dist/chunks/apiUtils-BZ6s0_NI.cjs.map +1 -0
  27. package/dist/chunks/apiUtils-DxzLqPhU.js +1441 -0
  28. package/dist/chunks/apiUtils-DxzLqPhU.js.map +1 -0
  29. package/dist/chunks/{codeStore-DefmZVgs.js → codeStore-CfI4Wh5M.js} +4 -4
  30. package/dist/chunks/{codeStore-DefmZVgs.js.map → codeStore-CfI4Wh5M.js.map} +1 -1
  31. package/dist/chunks/{codeStore-pQbDqWkZ.cjs → codeStore-il4-kZPe.cjs} +2 -2
  32. package/dist/chunks/{codeStore-pQbDqWkZ.cjs.map → codeStore-il4-kZPe.cjs.map} +1 -1
  33. package/dist/chunks/core-BHejg5iS.cjs +2 -0
  34. package/dist/chunks/core-BHejg5iS.cjs.map +1 -0
  35. package/dist/chunks/core-bHd8azE6.js +514 -0
  36. package/dist/chunks/core-bHd8azE6.js.map +1 -0
  37. package/dist/chunks/enc-base64-BQYwLKgk.js +102 -0
  38. package/dist/chunks/enc-base64-BQYwLKgk.js.map +1 -0
  39. package/dist/chunks/enc-base64-BkBtNBQV.cjs +2 -0
  40. package/dist/chunks/enc-base64-BkBtNBQV.cjs.map +1 -0
  41. package/dist/chunks/{favoriteStore-BXBziAgB.cjs → favoriteStore-CcKg_nEH.cjs} +2 -2
  42. package/dist/chunks/{favoriteStore-BXBziAgB.cjs.map → favoriteStore-CcKg_nEH.cjs.map} +1 -1
  43. package/dist/chunks/{favoriteStore-DAPC01iF.js → favoriteStore-Cemc-26t.js} +2 -2
  44. package/dist/chunks/{favoriteStore-DAPC01iF.js.map → favoriteStore-Cemc-26t.js.map} +1 -1
  45. package/dist/chunks/{popupStore-CcQg9AvK.js → popupStore-Bi6o78lP.js} +2 -2
  46. package/dist/chunks/{popupStore-CcQg9AvK.js.map → popupStore-Bi6o78lP.js.map} +1 -1
  47. package/dist/chunks/{popupStore-BV632k5p.cjs → popupStore-DUApUBF2.cjs} +2 -2
  48. package/dist/chunks/{popupStore-BV632k5p.cjs.map → popupStore-DUApUBF2.cjs.map} +1 -1
  49. package/dist/chunks/sha256-BZfJs28k.js +79 -0
  50. package/dist/chunks/sha256-BZfJs28k.js.map +1 -0
  51. package/dist/chunks/sha256-DiIRoCQ8.cjs +2 -0
  52. package/dist/chunks/sha256-DiIRoCQ8.cjs.map +1 -0
  53. package/dist/chunks/{usePopup-Cw5xsOaH.js → usePopup-BSqsnSz7.js} +3 -3
  54. package/dist/chunks/{usePopup-Cw5xsOaH.js.map → usePopup-BSqsnSz7.js.map} +1 -1
  55. package/dist/chunks/{usePopup-DoVGuobp.cjs → usePopup-D2JEuDrO.cjs} +2 -2
  56. package/dist/chunks/{usePopup-DoVGuobp.cjs.map → usePopup-D2JEuDrO.cjs.map} +1 -1
  57. package/dist/components/common/BwgDraggable.d.ts +1 -1
  58. package/dist/components/common/BwgDraggable.d.ts.map +1 -1
  59. package/dist/components/common/BwgEditor.d.ts +43 -36
  60. package/dist/components/common/BwgEditor.d.ts.map +1 -1
  61. package/dist/components/common/BwgGrid.d.ts +13 -5
  62. package/dist/components/common/BwgGrid.d.ts.map +1 -1
  63. package/dist/components/common/BwgPagination.d.ts +25 -5
  64. package/dist/components/common/BwgPagination.d.ts.map +1 -1
  65. package/dist/components/common/BwgView.d.ts.map +1 -1
  66. package/dist/components/common/index.cjs +1 -1
  67. package/dist/components/common/index.js +1 -1
  68. package/dist/components/core/BwgCheck.d.ts +11 -0
  69. package/dist/components/core/BwgCheck.d.ts.map +1 -1
  70. package/dist/components/core/BwgDownload.d.ts.map +1 -1
  71. package/dist/components/core/BwgSelect.d.ts +2 -2
  72. package/dist/components/core/BwgSelect.d.ts.map +1 -1
  73. package/dist/components/core/BwgSwitch.d.ts +24 -0
  74. package/dist/components/core/BwgSwitch.d.ts.map +1 -0
  75. package/dist/components/core/index.cjs +1 -1
  76. package/dist/components/core/index.d.ts +20 -19
  77. package/dist/components/core/index.d.ts.map +1 -1
  78. package/dist/components/core/index.js +22 -21
  79. package/dist/components/layout/LoadingOverlay.d.ts +3 -3
  80. package/dist/components/layout/LoadingOverlay.d.ts.map +1 -1
  81. package/dist/components/layout/index.cjs +1 -1
  82. package/dist/components/layout/index.js +2 -2
  83. package/dist/components/popup/MenuReport.d.ts.map +1 -1
  84. package/dist/index.cjs +1 -1
  85. package/dist/index.js +116 -115
  86. package/dist/provider/index.cjs +1 -1
  87. package/dist/provider/index.js +2 -2
  88. package/dist/stores/index.cjs +1 -1
  89. package/dist/stores/index.cjs.map +1 -1
  90. package/dist/stores/index.d.ts +6 -7
  91. package/dist/stores/index.d.ts.map +1 -1
  92. package/dist/stores/index.js +16 -15
  93. package/dist/stores/index.js.map +1 -1
  94. package/dist/stores/loadingStore.d.ts +1 -0
  95. package/dist/stores/loadingStore.d.ts.map +1 -1
  96. package/dist/stores/menuModelStore.d.ts.map +1 -1
  97. package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -3
  98. package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -10
  99. package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -4
  100. package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -3
  101. package/dist/styles/layout.css +14 -1
  102. package/dist/utils/apiUtils.d.ts +4 -8
  103. package/dist/utils/apiUtils.d.ts.map +1 -1
  104. package/dist/utils/commonUtils.d.ts +6 -0
  105. package/dist/utils/commonUtils.d.ts.map +1 -1
  106. package/dist/utils/index.cjs +1 -1
  107. package/dist/utils/index.cjs.map +1 -1
  108. package/dist/utils/index.d.ts +0 -1
  109. package/dist/utils/index.d.ts.map +1 -1
  110. package/dist/utils/index.js +53 -54
  111. package/dist/utils/index.js.map +1 -1
  112. package/package.json +2 -1
  113. package/dist/chunks/BwgCheck-BDt8r0gn.js +0 -200
  114. package/dist/chunks/BwgCheck-BDt8r0gn.js.map +0 -1
  115. package/dist/chunks/BwgCheck-Dtzr-6rg.cjs +0 -2
  116. package/dist/chunks/BwgCheck-Dtzr-6rg.cjs.map +0 -1
  117. package/dist/chunks/BwgDownload-COsACbpJ.js.map +0 -1
  118. package/dist/chunks/BwgDownload-i6w7ZD-i.cjs +0 -3
  119. package/dist/chunks/BwgDownload-i6w7ZD-i.cjs.map +0 -1
  120. package/dist/chunks/LoadingOverlay-CAO6_FuF.js +0 -29
  121. package/dist/chunks/LoadingOverlay-CAO6_FuF.js.map +0 -1
  122. package/dist/chunks/LoadingOverlay-NX9Mo_6n.cjs +0 -2
  123. package/dist/chunks/LoadingOverlay-NX9Mo_6n.cjs.map +0 -1
  124. package/dist/chunks/SSOHandler-B15Ssd5g.js.map +0 -1
  125. package/dist/chunks/SSOHandler-oJlon6rn.cjs +0 -236
  126. package/dist/chunks/SSOHandler-oJlon6rn.cjs.map +0 -1
  127. package/dist/chunks/apiUtils-CudW_FKE.cjs +0 -3
  128. package/dist/chunks/apiUtils-CudW_FKE.cjs.map +0 -1
  129. package/dist/chunks/apiUtils-DfPv_gmI.js +0 -2064
  130. package/dist/chunks/apiUtils-DfPv_gmI.js.map +0 -1
@@ -0,0 +1,237 @@
1
+ "use strict";const k=require("./jsx-runtime-CeSfJrVB.cjs"),Te=require("@ant-design/icons"),Y=require("antd"),z=require("react"),yo=require("./SearchBoxContext-DwFDOyYG.cjs"),Me=require("./apiUtils-BZ6s0_NI.cjs"),$h=require("react-rnd"),ri=require("react-dom"),Zn=require("./favoriteStore-CcKg_nEH.cjs"),Bh=require("./LoadingOverlay-DcmKvoZA.cjs"),Pm=require("dayjs"),mt=require("realgrid"),Wu=require("realgrid-react"),Yo=require("./realFormat-Cha7OTd9.cjs"),Qe=require("./BwgSwitch-CAI-kEaM.cjs"),Nm=require("./AuthContext-CXng9fj0.cjs"),Gu=require("react-router-dom");function qh(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const Qn=qh(Te),M=qh(z),Im=({grpId:e,menuId:r,btnEvent:t,layout:n="horizontal",size:i="middle",style:o,className:a,onButtonClick:s})=>{const c=yo.useServiceCodeValue("AUTH_BTNS"),{user:d}=Me.useUserStore(),[f,l]=z.useState([]),[u,h]=z.useState(!0),[v,b]=z.useState(null),[p,g]=z.useState({}),m=async()=>{try{h(!0),b(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",e,r);const E=await Me.callService(c,{userId:d?.userId,crprCd:d?.crprCd,grpId:e.toUpperCase(),menuId:r});if(console.log("@@ 커스텀버튼그룹 영역 조회결과",E),E?.data&&Array.isArray(E.data)){const _=E.data.sort((w,S)=>w.btnSq-S.btnSq);l(_)}else l([])}catch(E){console.error("버튼 권한 조회 실패:",E),b("버튼 권한을 조회하는 중 오류가 발생했습니다."),l([])}finally{h(!1)}};z.useEffect(()=>{m()},[e,r]);const x=async(E,_)=>{g(w=>({...w,[E]:{loading:!0}}));try{const w=t?.[E];w?await w():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${E}`),s&&s(E,_,e)}catch(w){console.error("버튼 이벤트 실행 실패:",w),Y.message.error("작업 중 오류가 발생했습니다.")}finally{g(w=>({...w,[E]:{loading:!1}}))}},y=E=>{const _=p[E.btnId]||{loading:!1};return k.jsxRuntimeExports.jsxs(Y.Button,{size:i,loading:_.loading,onClick:()=>x(E.btnId,E.btnNm),className:"bwg-btn",style:{...E.iconVal&&{display:"flex",alignItems:"center",gap:"4px"}},children:[E.iconVal&&k.jsxRuntimeExports.jsxs(k.jsxRuntimeExports.Fragment,{children:[E.iconType==="ANTD"&&Qn[E.iconVal]&&z.createElement(Qn[E.iconVal],{style:{fontSize:"14px"}}),E.iconType!=="ANTD"&&k.jsxRuntimeExports.jsx("span",{className:E.iconVal,style:{fontSize:"14px"}})]}),E.btnNm]},E.btnId)};return u?k.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:o,children:k.jsxRuntimeExports.jsx(Y.Space,{direction:n==="vertical"?"vertical":"horizontal",size:i,children:k.jsxRuntimeExports.jsx(Y.Button,{loading:!0,size:i,children:"권한 조회 중..."})})}):v?k.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:o,children:k.jsxRuntimeExports.jsx(Y.Alert,{message:"권한 오류",description:v,type:"error",showIcon:!0,style:{minHeight:"40px"}})}):f.length===0?k.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:o,children:k.jsxRuntimeExports.jsx(Y.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})}):k.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:o,children:k.jsxRuntimeExports.jsx(Y.Flex,{gap:3,children:f.map(y)})})},Mm=({content:e,layout:r="flex",gap:t=16,minWidth:n=120,maxWidth:i=300,style:o,className:a})=>{if(!(Array.isArray(e)&&e.length>0&&Array.isArray(e[0])))return k.jsxRuntimeExports.jsx("div",{style:o,className:a,children:e});const c=e.filter(h=>h&&h.length>0),d=z.useMemo(()=>{const h=c[0];if(!h||h.length===0)return{totalCols:0,baseWidth:0};let v=0;const b=[];h.forEach(g=>{const m=g,x=m?.props?.["data-colspan"]?parseInt(String(m.props["data-colspan"])):1;v+=x,b.push(x)});const p=v>0?100/v:0;return{totalCols:v,baseWidth:p,componentWidths:b}},[c]),f=(h,v,b)=>{const p=h,g=p?.props?.["data-colspan"]?parseInt(String(p.props["data-colspan"])):1;switch(r){case"equal":return 100/b;case"auto":return 100/b;case"grid":return 100/d.totalCols*g;case"flex":default:const m=d.baseWidth*g;return Math.max(n,Math.min(i,m))}},l=h=>{if(!h||typeof h!="object")return h;const v=h;if(!v.props)return h;const p={...v.props.style||{},width:"100%"};return z.cloneElement(v,{...v.props,style:p})},u=(h,v)=>{if(!h||h.length===0)return null;const b=h.length;return r==="grid"?k.jsxRuntimeExports.jsx("div",{className:"erp-cmm-form",style:{display:"grid",gridTemplateColumns:`repeat(${d.totalCols}, 1fr)`,gap:`${t}px`,width:"100%"},children:h.map((p,g)=>{const m=p?.props?.["data-colspan"]?parseInt(String(p.props["data-colspan"])):1,x=l(p);return k.jsxRuntimeExports.jsx("div",{style:{gridColumn:`span ${m}`,minWidth:`${n}px`},className:"form-component-wrapper",children:x},`row-${v}-col-${g}`)})},`row-${v}`):k.jsxRuntimeExports.jsx(Y.Flex,{gap:t,className:"erp-cmm-form",wrap:r==="auto"?"wrap":"nowrap",style:{width:"100%"},children:h.map((p,g)=>{const m=f(p,g,b),x=l(p),y=r==="flex"?{width:`${m}px`,minWidth:`${n}px`,maxWidth:`${i}px`,flexShrink:0}:{width:`${m}%`,minWidth:`${n}px`};return k.jsxRuntimeExports.jsx("div",{style:y,className:"form-component-wrapper",children:x},`row-${v}-col-${g}`)})},`row-${v}`)};return k.jsxRuntimeExports.jsx(Y.Flex,{gap:"small",vertical:!0,style:o,className:a,children:c.map((h,v)=>u(h,v+1))})},Lm=({children:e,...r})=>k.jsxRuntimeExports.jsx(Y.Col,{...r,className:"bwg-col",children:e});var Pn={},Xo={exports:{}},Ku;function bo(){return Ku||(Ku=1,(function(e){function r(t){return t&&t.__esModule?t:{default:t}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Xo)),Xo.exports}var Nn={},Yu;function Dm(){if(Yu)return Nn;Yu=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.default=void 0;var e={items_per_page:"/ 페이지",jump_to:"이동하기",jump_to_confirm:"확인하다",page:"페이지",prev_page:"이전 페이지",next_page:"다음 페이지",prev_5:"이전 5 페이지",next_5:"다음 5 페이지",prev_3:"이전 3 페이지",next_3:"다음 3 페이지",page_size:"페이지 크기"};return Nn.default=e,Nn}var In={},Mn={},Ln={},Zo={exports:{}},Qo={exports:{}},Jo={exports:{}},ea={exports:{}},Xu;function zh(){return Xu||(Xu=1,(function(e){function r(t){"@babel/helpers - typeof";return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(ea)),ea.exports}var ta={exports:{}},Zu;function Fm(){return Zu||(Zu=1,(function(e){var r=zh().default;function t(n,i){if(r(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var a=o.call(n,i||"default");if(r(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ta)),ta.exports}var Qu;function $m(){return Qu||(Qu=1,(function(e){var r=zh().default,t=Fm();function n(i){var o=t(i,"string");return r(o)=="symbol"?o:o+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Jo)),Jo.exports}var Ju;function Bm(){return Ju||(Ju=1,(function(e){var r=$m();function t(n,i,o){return(i=r(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o,n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Qo)),Qo.exports}var ec;function qm(){return ec||(ec=1,(function(e){var r=Bm();function t(i,o){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);o&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(i,c).enumerable})),a.push.apply(a,s)}return a}function n(i){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?t(Object(a),!0).forEach(function(s){r(i,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(a,s))})}return i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Zo)),Zo.exports}var Dn={},tc;function zm(){return tc||(tc=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.commonLocale=void 0,Dn.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),Dn}var rc;function Hm(){if(rc)return Ln;rc=1;var e=bo().default;Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.default=void 0;var r=e(qm()),t=zm(),n=(0,r.default)((0,r.default)({},t.commonLocale),{},{locale:"ko_KR",today:"오늘",now:"현재 시각",backToToday:"오늘로 돌아가기",ok:"확인",clear:"지우기",week:"주",month:"월",year:"년",timeSelect:"시간 선택",dateSelect:"날짜 선택",monthSelect:"달 선택",yearSelect:"연 선택",decadeSelect:"연대 선택",yearFormat:"YYYY년",dateFormat:"YYYY-MM-DD",dateTimeFormat:"YYYY-MM-DD HH:mm:ss",monthBeforeYear:!1,previousMonth:"이전 달 (PageUp)",nextMonth:"다음 달 (PageDown)",previousYear:"이전 해 (Control + left)",nextYear:"다음 해 (Control + right)",previousDecade:"이전 연대",nextDecade:"다음 연대",previousCentury:"이전 세기",nextCentury:"다음 세기"});return Ln.default=n,Ln}var Fn={},nc;function Hh(){if(nc)return Fn;nc=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.default=void 0;const e={placeholder:"시간 선택",rangePlaceholder:["시작 시간","종료 시간"]};return Fn.default=e,Fn}var ic;function Vh(){if(ic)return Mn;ic=1;var e=bo().default;Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.default=void 0;var r=e(Hm()),t=e(Hh());const n={lang:Object.assign({placeholder:"날짜 선택",yearPlaceholder:"연도 선택",quarterPlaceholder:"분기 선택",monthPlaceholder:"월 선택",weekPlaceholder:"주 선택",rangePlaceholder:["시작일","종료일"],rangeYearPlaceholder:["시작 연도","종료 연도"],rangeMonthPlaceholder:["시작 월","종료 월"],rangeQuarterPlaceholder:["시작 분기","종료 분기"],rangeWeekPlaceholder:["시작 주","종료 주"],shortWeekDays:["일","월","화","수","목","금","토"],shortMonths:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},r.default),timePickerLocale:Object.assign({},t.default)};return Mn.default=n,Mn}var oc;function Vm(){if(oc)return In;oc=1;var e=bo().default;Object.defineProperty(In,"__esModule",{value:!0}),In.default=void 0;var r=e(Vh());return In.default=r.default,In}var ac;function Um(){if(ac)return Pn;ac=1;var e=bo().default;Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.default=void 0;var r=e(Dm()),t=e(Vm()),n=e(Vh()),i=e(Hh());const o="${label} 유효하지 않은 ${type}",a={locale:"ko",Pagination:r.default,DatePicker:n.default,TimePicker:i.default,Calendar:t.default,global:{placeholder:"선택하세요",close:"닫기"},Table:{filterTitle:"필터 메뉴",filterConfirm:"확인",filterReset:"초기화",filterEmptyText:"필터 없음",filterCheckAll:"전체 선택",filterSearchPlaceholder:"필터 검색",emptyText:"데이터 없음",selectAll:"전체 선택",selectInvert:"선택 반전",selectNone:"없음",selectionAll:"전체 선택",sortTitle:"정렬",expand:"펼치기",collapse:"접기",triggerDesc:"내림차순으로 정렬하기",triggerAsc:"오름차순으로 정렬하기",cancelSort:"정렬 취소하기"},Tour:{Next:"다음",Previous:"이전",Finish:"종료"},Modal:{okText:"확인",cancelText:"취소",justOkText:"확인"},Popconfirm:{okText:"확인",cancelText:"취소"},Transfer:{titles:["",""],searchPlaceholder:"여기에 검색하세요",itemUnit:"개",itemsUnit:"개",remove:"삭제",selectCurrent:"현재 페이지 선택",removeCurrent:"현재 페이지 삭제",selectAll:"전체 선택",removeAll:"전체 삭제",selectInvert:"선택 반전"},Upload:{uploading:"업로드 중...",removeFile:"파일 삭제",uploadError:"업로드 실패",previewFile:"파일 미리보기",downloadFile:"파일 다운로드"},Empty:{description:"데이터 없음"},Icon:{icon:"아이콘"},Text:{edit:"수정",copy:"복사",copied:"복사 됨",expand:"확장"},Form:{optional:"(선택사항)",defaultValidateMessages:{default:"필드 유효성 검사 오류 ${label}",required:"${label} 값을 입력해 주세요",enum:"${label} [${enum}] 중에 하나여야 합니다",whitespace:"${label} 비워둘 수 없습니다",date:{format:"${label} 유효하지 않은 날짜 형식입니다",parse:"${label} 날짜 형식으로 변환될 수 없습니다",invalid:"${label} 유효하지 않은 날짜입니다"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"${label} ${len}글자여야 합니다",min:"${label} 적어도 ${min}글자 이상이어야 합니다",max:"${label} ${max}글자 이하여야 합니다",range:"${label} ${min}-${max}글자 사이어야 합니다"},number:{len:"${label} 값은 ${len}이어야 합니다",min:"${label} 최솟값은 ${min}입니다",max:"${label} 최댓값은 ${max}입니다",range:"${label} 값은 ${min}-${max} 사이어야 합니다"},array:{len:"${len}이어야 합니다 ${label}",min:"최소 ${min}이어야 합니다 ${label}",max:"최대 ${max}이어야 합니다 ${label}",range:"${label} ${min}-${max} 사이어야 합니다"},pattern:{mismatch:"${label} ${pattern} 패턴과 일치하지 않습니다"}}},Image:{preview:"미리보기"},QRCode:{expired:"만료된 QR 코드",refresh:"새로고침"},ColorPicker:{presetEmpty:"미정",transparent:"투명",singleColor:"단색",gradientColor:"그라데이션"}};return Pn.default=a,Pn}var ra,sc;function Wm(){return sc||(sc=1,ra=Um()),ra}var Gm=Wm();const Uh=Me.getDefaultExportFromCjs(Gm),hu=({children:e,customTheme:r,customComponentSize:t="middle",layout:n="comfortable",getPopupContainer:i})=>{const a=(()=>{const c={token:{colorPrimary:"#1890ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1890ff",fontFamily:'"Noto Sans KR", sans-serif',fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",boxShadowSecondary:"0 2px 4px rgba(0, 0, 0, 0.12)"},algorithm:Y.theme.defaultAlgorithm};switch(n){case"compact":return{...c,token:{...c.token,padding:8,margin:8,borderRadius:4,fontSize:12,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}};case"spacious":return{...c,token:{...c.token,padding:24,margin:24,borderRadius:8,fontSize:16,fontSizeHeading1:44,fontSizeHeading2:36,fontSizeHeading3:28,fontSizeHeading4:24,fontSizeHeading5:20}};default:return{...c,token:{...c.token,padding:16,margin:16,borderRadius:6,fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}}}})(),s={...a,...r,token:{...a.token,...r?.token},components:{Checkbox:{colorPrimary:"var(--check-primary)",colorPrimaryBorder:"var(--check-primary)",colorPrimaryHover:"var(--check-primary-active)",colorText:"var(--text-primary)"},Radio:{colorPrimary:"var(--check-primary)",colorPrimaryActive:"var(--check-primary-active)",colorPrimaryHover:"var(--check-primary-active)"},Tree:{nodeHoverBg:"var(--tree-selected-bg)",nodeHoverColor:"var(--primary-color)",nodeSelectedBg:"var(--tree-selected-bg)",nodeSelectedColor:"var(--primary-color)",colorText:"var(--text-primary)"},...r?.components??{}}};return k.jsxRuntimeExports.jsx(Y.ConfigProvider,{locale:Uh,theme:s,componentSize:t,space:{size:t},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},getPopupContainer:i,children:e})},Km=({children:e})=>{const{activeDetailItem:r}=Me.useMenuViewStore();return k.jsxRuntimeExports.jsx("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:k.jsxRuntimeExports.jsx("div",{className:"bwgview-content",children:k.jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[k.jsxRuntimeExports.jsx(Y.Breadcrumb,{separator:">",items:[{title:r?.prntInfo?.menuNm},{title:r?.viewLabel}]}),e]})})})},xo=({title:e,icons:r,tooltip:t,iconVisible:n=!0,paddingBottom:i=0,marginBottom:o=0,children:a})=>{const s=Qn.AppstoreTwoTone;return z.useMemo(()=>r?.type==="antd"&&r.icon&&Qn[r.icon]||s,[r?.type,r?.icon]),k.jsxRuntimeExports.jsx(Y.Flex,{vertical:!0,style:{width:"100%"},children:k.jsxRuntimeExports.jsxs("div",{className:`bwg-title-box ${i?`pb${i}`:""} ${o?`mb${o}`:""}`,style:{display:"flex",justifyContent:"space-between"},children:[k.jsxRuntimeExports.jsx("div",{className:"bwg-title-box-left",children:k.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[k.jsxRuntimeExports.jsx(Y.Typography.Title,{level:4,children:k.jsxRuntimeExports.jsx("span",{children:e})}),t&&k.jsxRuntimeExports.jsx(Y.Tooltip,{title:t.title,placement:t.placement,children:k.jsxRuntimeExports.jsx(Qn.QuestionCircleTwoTone,{style:{marginLeft:5}})})]})}),k.jsxRuntimeExports.jsx("div",{className:"bwg-title-box-right",children:k.jsxRuntimeExports.jsx(Y.Flex,{gap:6,children:a})})]})})},{Panel:lc}=Y.Collapse,Eo=z.forwardRef(({reqRows:e,subRows:r,border:t=!1,labelDisplay:n,header:i},o)=>{const[a]=Y.Form.useForm(),[s,c]=z.useState("1"),d=()=>n?{flex:n.md||n.lg||n.sm||"100px"}:{flex:"100px"};z.useImperativeHandle(o,()=>({getFormData:()=>a.getFieldsValue(),setFormData:l=>{a.setFieldsValue(l)},resetForm:()=>{a.resetFields()},validateForm:async()=>{try{return{success:!0,data:await a.validateFields()}}catch(l){return{success:!1,error:l}}}}));const f=()=>{c(l=>l.includes("subRows")?l.filter(u=>u!=="subRows"):[...l,"subRows"])};return k.jsxRuntimeExports.jsxs("div",{style:t?{border:"1px solid #ddd",padding:"10px 12px",borderRadius:"8px",marginBottom:"10px"}:{},children:[i&&k.jsxRuntimeExports.jsx(xo,{title:i.title,children:i.buttons}),k.jsxRuntimeExports.jsx(Y.Form,{form:a,layout:"inline",style:{width:"100%",paddingBottom:e||r?"10px":"0px"},labelCol:d(),labelAlign:"left",children:k.jsxRuntimeExports.jsxs("div",{style:{position:"relative",width:"100%"},children:[r&&k.jsxRuntimeExports.jsx("div",{style:{position:"absolute",top:"15px",left:"-9px",zIndex:10},children:s.includes("subRows")?k.jsxRuntimeExports.jsx(Y.Tooltip,{title:"접기",children:k.jsxRuntimeExports.jsx("span",{className:"search-collapsed-arrow",onClick:f,children:k.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:k.jsxRuntimeExports.jsx("path",{d:"M5.28321 0.986589C4.88285 0.482264 4.11715 0.482265 3.71679 0.986589L1.0243 4.37824C0.50404 5.0336 0.970753 6 1.80751 6L7.19249 6C8.02925 6 8.49596 5.0336 7.9757 4.37824L5.28321 0.986589Z",fill:"#AEB9C4"})})})}):k.jsxRuntimeExports.jsx(Y.Tooltip,{title:"펼치기",children:k.jsxRuntimeExports.jsx("span",{className:"search-collapsed-arrow",onClick:f,children:k.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:k.jsxRuntimeExports.jsx("path",{d:"M5.28321 5.01341C4.88285 5.51774 4.11715 5.51773 3.71679 5.01341L1.0243 1.62176C0.50404 0.966397 0.970753 1.64312e-07 1.80751 2.37464e-07L7.19249 7.08234e-07C8.02925 7.81386e-07 8.49596 0.966399 7.9757 1.62176L5.28321 5.01341Z",fill:"#AEB9C4"})})})})}),k.jsxRuntimeExports.jsx(Y.ConfigProvider,{theme:{components:{Collapse:{}}},children:k.jsxRuntimeExports.jsxs(Y.Collapse,{activeKey:["reqRows",...s.includes("subRows")?["subRows"]:[]],onChange:c,className:"searchbox-collapse",bordered:!1,ghost:!0,children:[e&&k.jsxRuntimeExports.jsx(lc,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"disabled",children:e},"reqRows"),r&&k.jsxRuntimeExports.jsx(lc,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"icon",children:r},"subRows")]})})]})})]})}),Ym=({children:e,showSearchBox:r,showCloseButton:t=!0,showEyesButton:n=!1,shotSettingButton:i=!0,styles:o,...a})=>{const[s,c]=z.useState(!0),[d,f]=z.useState(()=>{const g=a.placement;return g==="left"||g==="right"||g==="top"||g==="bottom"?g:"bottom"}),[l,u]=z.useState(!1),v=(g=>{const m={wrapper:{...a.width&&{width:a.width},...a.height&&{height:a.height},margin:"0 auto"},content:{},header:{backgroundColor:"var(--drawer-header-bg)",color:"var(--text-primary)"}};switch(g){case"bottom":return{...m,wrapper:{...m.wrapper,borderRadius:"30px 30px 0 0"},content:{borderRadius:"30px 30px 0 0"},header:{...m.header,borderRadius:"30px 30px 0 0"}};case"top":return{...m,wrapper:{...m.wrapper,borderRadius:"0 0 30px 30px"},content:{borderRadius:"0 0 30px 30px"},header:{...m.header}};case"left":return{...m,wrapper:{...m.wrapper,borderRadius:"0 30px 0px 0"},content:{borderRadius:"0 30px 0px 0"},header:{...m.header,borderRadius:"0 30px 0 0"}};case"right":return{...m,wrapper:{...m.wrapper,borderRadius:"30px 0 0 0"},content:{borderRadius:"30px 0 0 0"},header:{...m.header,borderRadius:"30px 0 0 0"}};default:return m}})(d),b={wrapper:{...v?.wrapper,...o?.wrapper},content:{...v?.content,...o?.content},header:{...v?.header,...o?.header}},p=()=>{const g=[];if(i){const m=[{key:"top",label:"상단",icon:k.jsxRuntimeExports.jsx(Te.CaretUpOutlined,{})},{key:"right",label:"우측",icon:k.jsxRuntimeExports.jsx(Te.CaretRightOutlined,{})},{key:"bottom",label:"하단",icon:k.jsxRuntimeExports.jsx(Te.CaretDownOutlined,{})},{key:"left",label:"좌측",icon:k.jsxRuntimeExports.jsx(Te.CaretLeftOutlined,{})}],x=k.jsxRuntimeExports.jsx(Y.Space.Compact,{children:m.map(y=>k.jsxRuntimeExports.jsx(Y.Button,{type:d===y.key?"primary":"default",size:"small",onClick:()=>{f(y.key),u(!1)},icon:y.icon},y.key))});g.push(k.jsxRuntimeExports.jsx(Y.Popover,{content:x,trigger:"click",placement:"left",open:l,onOpenChange:u,children:k.jsxRuntimeExports.jsx(Y.Tooltip,{placement:"bottom",title:"위치변경",zIndex:2100,children:k.jsxRuntimeExports.jsx(Y.Button,{icon:k.jsxRuntimeExports.jsx(Te.SettingOutlined,{}),type:"text",size:"middle"})})},"shotSetting"))}return n&&g.push(k.jsxRuntimeExports.jsx(Y.Tooltip,{placement:"bottom",title:s?"배경 보기":"배경 숨기기",zIndex:2100,children:k.jsxRuntimeExports.jsx(Y.Button,{icon:k.jsxRuntimeExports.jsx(Te.EyeOutlined,{}),type:"text",size:"middle",onClick:()=>c(!s)})},"eyes")),a.extra&&g.push(k.jsxRuntimeExports.jsx("div",{style:{margin:"0 8px"},children:a.extra},"extra")),t&&g.push(k.jsxRuntimeExports.jsx(Y.Tooltip,{placement:"bottom",title:"닫기",zIndex:2100,children:k.jsxRuntimeExports.jsx(Y.Button,{icon:k.jsxRuntimeExports.jsx(Te.CloseOutlined,{}),onClick:a.onClose,type:"text",size:"middle"})},"close")),g};return k.jsxRuntimeExports.jsx(Y.Drawer,{className:"main-drawer",footer:!0,...a,placement:d,styles:b,maskClosable:!1,closable:!1,mask:s,extra:k.jsxRuntimeExports.jsx(Y.Space,{size:"small",align:"center",children:p()}),afterOpenChange:g=>{g||(c(!0),f(a.placement)),a.afterOpenChange?.(g)},destroyOnHidden:!0,children:r?k.jsxRuntimeExports.jsxs(Wr,{type:"vertical",children:[k.jsxRuntimeExports.jsxs(Y.Flex,{justify:"space-between",align:"center",style:{width:"100%"},children:[k.jsxRuntimeExports.jsx("div",{children:r.title}),k.jsxRuntimeExports.jsx(Y.Flex,{gap:2,children:r.extra})]}),k.jsxRuntimeExports.jsx(Eo,{...r.searchBox}),k.jsxRuntimeExports.jsx(Y.Divider,{}),e]}):e})};/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */const{entries:Wh,setPrototypeOf:uc,isFrozen:Xm,getPrototypeOf:Zm,getOwnPropertyDescriptor:Qm}=Object;let{freeze:At,seal:Yt,create:Gh}=Object,{apply:gl,construct:yl}=typeof Reflect<"u"&&Reflect;At||(At=function(r){return r});Yt||(Yt=function(r){return r});gl||(gl=function(r,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return r.apply(t,i)});yl||(yl=function(r){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return new r(...n)});const Pi=kt(Array.prototype.forEach),Jm=kt(Array.prototype.lastIndexOf),cc=kt(Array.prototype.pop),$n=kt(Array.prototype.push),eg=kt(Array.prototype.splice),Ki=kt(String.prototype.toLowerCase),na=kt(String.prototype.toString),ia=kt(String.prototype.match),Bn=kt(String.prototype.replace),tg=kt(String.prototype.indexOf),rg=kt(String.prototype.trim),ir=kt(Object.prototype.hasOwnProperty),Ot=kt(RegExp.prototype.test),qn=ng(TypeError);function kt(e){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return gl(e,r,n)}}function ng(e){return function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return yl(e,t)}}function Ie(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ki;uc&&uc(e,null);let n=r.length;for(;n--;){let i=r[n];if(typeof i=="string"){const o=t(i);o!==i&&(Xm(r)||(r[n]=o),i=o)}e[i]=!0}return e}function ig(e){for(let r=0;r<e.length;r++)ir(e,r)||(e[r]=null);return e}function br(e){const r=Gh(null);for(const[t,n]of Wh(e))ir(e,t)&&(Array.isArray(n)?r[t]=ig(n):n&&typeof n=="object"&&n.constructor===Object?r[t]=br(n):r[t]=n);return r}function zn(e,r){for(;e!==null;){const n=Qm(e,r);if(n){if(n.get)return kt(n.get);if(typeof n.value=="function")return kt(n.value)}e=Zm(e)}function t(){return null}return t}const fc=At(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),oa=At(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),aa=At(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),og=At(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),sa=At(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ag=At(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),dc=At(["#text"]),hc=At(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),la=At(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),pc=At(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ni=At(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),sg=Yt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),lg=Yt(/<%[\w\W]*|[\w\W]*%>/gm),ug=Yt(/\$\{[\w\W]*/gm),cg=Yt(/^data-[\-\w.\u00B7-\uFFFF]+$/),fg=Yt(/^aria-[\-\w]+$/),Kh=Yt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),dg=Yt(/^(?:\w+script|data):/i),hg=Yt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Yh=Yt(/^html$/i),pg=Yt(/^[a-z][.\w]*(-[.\w]+)+$/i);var vc=Object.freeze({__proto__:null,ARIA_ATTR:fg,ATTR_WHITESPACE:hg,CUSTOM_ELEMENT:pg,DATA_ATTR:cg,DOCTYPE_NAME:Yh,ERB_EXPR:lg,IS_ALLOWED_URI:Kh,IS_SCRIPT_OR_DATA:dg,MUSTACHE_EXPR:sg,TMPLIT_EXPR:ug});const Hn={element:1,text:3,progressingInstruction:7,comment:8,document:9},vg=function(){return typeof window>"u"?null:window},mg=function(r,t){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const o="dompurify"+(n?"#"+n:"");try{return r.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},mc=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Xh(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vg();const r=ye=>Xh(ye);if(r.version="3.2.7",r.removed=[],!e||!e.document||e.document.nodeType!==Hn.document||!e.Element)return r.isSupported=!1,r;let{document:t}=e;const n=t,i=n.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:c,NodeFilter:d,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:l,DOMParser:u,trustedTypes:h}=e,v=c.prototype,b=zn(v,"cloneNode"),p=zn(v,"remove"),g=zn(v,"nextSibling"),m=zn(v,"childNodes"),x=zn(v,"parentNode");if(typeof a=="function"){const ye=t.createElement("template");ye.content&&ye.content.ownerDocument&&(t=ye.content.ownerDocument)}let y,E="";const{implementation:_,createNodeIterator:w,createDocumentFragment:S,getElementsByTagName:T}=t,{importNode:O}=n;let C=mc();r.isSupported=typeof Wh=="function"&&typeof x=="function"&&_&&_.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:R,ERB_EXPR:j,TMPLIT_EXPR:A,DATA_ATTR:I,ARIA_ATTR:$,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:G,CUSTOM_ELEMENT:D}=vc;let{IS_ALLOWED_URI:F}=vc,P=null;const L=Ie({},[...fc,...oa,...aa,...sa,...dc]);let B=null;const X=Ie({},[...hc,...la,...pc,...Ni]);let W=Object.seal(Gh(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,N=null,V=!0,U=!0,K=!1,J=!0,ne=!1,ce=!0,re=!1,de=!1,oe=!1,se=!1,Q=!1,ee=!1,ue=!0,le=!1;const ae="user-content-";let pe=!0,fe=!1,ge={},Re=null;const qe=Ie({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ce=null;const Ke=Ie({},["audio","video","img","source","image","track"]);let Ae=null;const ke=Ie({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Fe="http://www.w3.org/1998/Math/MathML",Pe="http://www.w3.org/2000/svg",Ee="http://www.w3.org/1999/xhtml";let Ve=Ee,xe=!1,Se=null;const at=Ie({},[Fe,Pe,Ee],na);let Pt=Ie({},["mi","mo","mn","ms","mtext"]),zt=Ie({},["annotation-xml"]);const Or=Ie({},["title","style","font","a","script"]);let Jt=null;const jr=["application/xhtml+xml","text/html"],Lt="text/html";let Le=null,Xe=null;const er=t.createElement("form"),pt=function(Z){return Z instanceof RegExp||Z instanceof Function},$e=function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Xe&&Xe===Z)){if((!Z||typeof Z!="object")&&(Z={}),Z=br(Z),Jt=jr.indexOf(Z.PARSER_MEDIA_TYPE)===-1?Lt:Z.PARSER_MEDIA_TYPE,Le=Jt==="application/xhtml+xml"?na:Ki,P=ir(Z,"ALLOWED_TAGS")?Ie({},Z.ALLOWED_TAGS,Le):L,B=ir(Z,"ALLOWED_ATTR")?Ie({},Z.ALLOWED_ATTR,Le):X,Se=ir(Z,"ALLOWED_NAMESPACES")?Ie({},Z.ALLOWED_NAMESPACES,na):at,Ae=ir(Z,"ADD_URI_SAFE_ATTR")?Ie(br(ke),Z.ADD_URI_SAFE_ATTR,Le):ke,Ce=ir(Z,"ADD_DATA_URI_TAGS")?Ie(br(Ke),Z.ADD_DATA_URI_TAGS,Le):Ke,Re=ir(Z,"FORBID_CONTENTS")?Ie({},Z.FORBID_CONTENTS,Le):qe,q=ir(Z,"FORBID_TAGS")?Ie({},Z.FORBID_TAGS,Le):br({}),N=ir(Z,"FORBID_ATTR")?Ie({},Z.FORBID_ATTR,Le):br({}),ge=ir(Z,"USE_PROFILES")?Z.USE_PROFILES:!1,V=Z.ALLOW_ARIA_ATTR!==!1,U=Z.ALLOW_DATA_ATTR!==!1,K=Z.ALLOW_UNKNOWN_PROTOCOLS||!1,J=Z.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ne=Z.SAFE_FOR_TEMPLATES||!1,ce=Z.SAFE_FOR_XML!==!1,re=Z.WHOLE_DOCUMENT||!1,se=Z.RETURN_DOM||!1,Q=Z.RETURN_DOM_FRAGMENT||!1,ee=Z.RETURN_TRUSTED_TYPE||!1,oe=Z.FORCE_BODY||!1,ue=Z.SANITIZE_DOM!==!1,le=Z.SANITIZE_NAMED_PROPS||!1,pe=Z.KEEP_CONTENT!==!1,fe=Z.IN_PLACE||!1,F=Z.ALLOWED_URI_REGEXP||Kh,Ve=Z.NAMESPACE||Ee,Pt=Z.MATHML_TEXT_INTEGRATION_POINTS||Pt,zt=Z.HTML_INTEGRATION_POINTS||zt,W=Z.CUSTOM_ELEMENT_HANDLING||{},Z.CUSTOM_ELEMENT_HANDLING&&pt(Z.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=Z.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Z.CUSTOM_ELEMENT_HANDLING&&pt(Z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=Z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Z.CUSTOM_ELEMENT_HANDLING&&typeof Z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(W.allowCustomizedBuiltInElements=Z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ne&&(U=!1),Q&&(se=!0),ge&&(P=Ie({},dc),B=[],ge.html===!0&&(Ie(P,fc),Ie(B,hc)),ge.svg===!0&&(Ie(P,oa),Ie(B,la),Ie(B,Ni)),ge.svgFilters===!0&&(Ie(P,aa),Ie(B,la),Ie(B,Ni)),ge.mathMl===!0&&(Ie(P,sa),Ie(B,pc),Ie(B,Ni))),Z.ADD_TAGS&&(P===L&&(P=br(P)),Ie(P,Z.ADD_TAGS,Le)),Z.ADD_ATTR&&(B===X&&(B=br(B)),Ie(B,Z.ADD_ATTR,Le)),Z.ADD_URI_SAFE_ATTR&&Ie(Ae,Z.ADD_URI_SAFE_ATTR,Le),Z.FORBID_CONTENTS&&(Re===qe&&(Re=br(Re)),Ie(Re,Z.FORBID_CONTENTS,Le)),pe&&(P["#text"]=!0),re&&Ie(P,["html","head","body"]),P.table&&(Ie(P,["tbody"]),delete q.tbody),Z.TRUSTED_TYPES_POLICY){if(typeof Z.TRUSTED_TYPES_POLICY.createHTML!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Z.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=Z.TRUSTED_TYPES_POLICY,E=y.createHTML("")}else y===void 0&&(y=mg(h,i)),y!==null&&typeof E=="string"&&(E=y.createHTML(""));At&&At(Z),Xe=Z}},Be=Ie({},[...oa,...aa,...og]),ft=Ie({},[...sa,...ag]),Ht=function(Z){let he=x(Z);(!he||!he.tagName)&&(he={namespaceURI:Ve,tagName:"template"});const me=Ki(Z.tagName),He=Ki(he.tagName);return Se[Z.namespaceURI]?Z.namespaceURI===Pe?he.namespaceURI===Ee?me==="svg":he.namespaceURI===Fe?me==="svg"&&(He==="annotation-xml"||Pt[He]):!!Be[me]:Z.namespaceURI===Fe?he.namespaceURI===Ee?me==="math":he.namespaceURI===Pe?me==="math"&&zt[He]:!!ft[me]:Z.namespaceURI===Ee?he.namespaceURI===Pe&&!zt[He]||he.namespaceURI===Fe&&!Pt[He]?!1:!ft[me]&&(Or[me]||!Be[me]):!!(Jt==="application/xhtml+xml"&&Se[Z.namespaceURI]):!1},Je=function(Z){$n(r.removed,{element:Z});try{x(Z).removeChild(Z)}catch{p(Z)}},Ue=function(Z,he){try{$n(r.removed,{attribute:he.getAttributeNode(Z),from:he})}catch{$n(r.removed,{attribute:null,from:he})}if(he.removeAttribute(Z),Z==="is")if(se||Q)try{Je(he)}catch{}else try{he.setAttribute(Z,"")}catch{}},tr=function(Z){let he=null,me=null;if(oe)Z="<remove></remove>"+Z;else{const nt=ia(Z,/^[\r\n\t ]+/);me=nt&&nt[0]}Jt==="application/xhtml+xml"&&Ve===Ee&&(Z='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Z+"</body></html>");const He=y?y.createHTML(Z):Z;if(Ve===Ee)try{he=new u().parseFromString(He,Jt)}catch{}if(!he||!he.documentElement){he=_.createDocument(Ve,"template",null);try{he.documentElement.innerHTML=xe?E:He}catch{}}const dt=he.body||he.documentElement;return Z&&me&&dt.insertBefore(t.createTextNode(me),dt.childNodes[0]||null),Ve===Ee?T.call(he,re?"html":"body")[0]:re?he.documentElement:dt},Vt=function(Z){return w.call(Z.ownerDocument||Z,Z,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},ze=function(Z){return Z instanceof l&&(typeof Z.nodeName!="string"||typeof Z.textContent!="string"||typeof Z.removeChild!="function"||!(Z.attributes instanceof f)||typeof Z.removeAttribute!="function"||typeof Z.setAttribute!="function"||typeof Z.namespaceURI!="string"||typeof Z.insertBefore!="function"||typeof Z.hasChildNodes!="function")},rt=function(Z){return typeof s=="function"&&Z instanceof s};function et(ye,Z,he){Pi(ye,me=>{me.call(r,Z,he,Xe)})}const vt=function(Z){let he=null;if(et(C.beforeSanitizeElements,Z,null),ze(Z))return Je(Z),!0;const me=Le(Z.nodeName);if(et(C.uponSanitizeElement,Z,{tagName:me,allowedTags:P}),ce&&Z.hasChildNodes()&&!rt(Z.firstElementChild)&&Ot(/<[/\w!]/g,Z.innerHTML)&&Ot(/<[/\w!]/g,Z.textContent)||Z.nodeType===Hn.progressingInstruction||ce&&Z.nodeType===Hn.comment&&Ot(/<[/\w]/g,Z.data))return Je(Z),!0;if(!P[me]||q[me]){if(!q[me]&&gr(me)&&(W.tagNameCheck instanceof RegExp&&Ot(W.tagNameCheck,me)||W.tagNameCheck instanceof Function&&W.tagNameCheck(me)))return!1;if(pe&&!Re[me]){const He=x(Z)||Z.parentNode,dt=m(Z)||Z.childNodes;if(dt&&He){const nt=dt.length;for(let lt=nt-1;lt>=0;--lt){const Mt=b(dt[lt],!0);Mt.__removalCount=(Z.__removalCount||0)+1,He.insertBefore(Mt,g(Z))}}}return Je(Z),!0}return Z instanceof c&&!Ht(Z)||(me==="noscript"||me==="noembed"||me==="noframes")&&Ot(/<\/no(script|embed|frames)/i,Z.innerHTML)?(Je(Z),!0):(ne&&Z.nodeType===Hn.text&&(he=Z.textContent,Pi([R,j,A],He=>{he=Bn(he,He," ")}),Z.textContent!==he&&($n(r.removed,{element:Z.cloneNode()}),Z.textContent=he)),et(C.afterSanitizeElements,Z,null),!1)},Dt=function(Z,he,me){if(ue&&(he==="id"||he==="name")&&(me in t||me in er))return!1;if(!(U&&!N[he]&&Ot(I,he))){if(!(V&&Ot($,he))){if(!B[he]||N[he]){if(!(gr(Z)&&(W.tagNameCheck instanceof RegExp&&Ot(W.tagNameCheck,Z)||W.tagNameCheck instanceof Function&&W.tagNameCheck(Z))&&(W.attributeNameCheck instanceof RegExp&&Ot(W.attributeNameCheck,he)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(he,Z))||he==="is"&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&Ot(W.tagNameCheck,me)||W.tagNameCheck instanceof Function&&W.tagNameCheck(me))))return!1}else if(!Ae[he]){if(!Ot(F,Bn(me,G,""))){if(!((he==="src"||he==="xlink:href"||he==="href")&&Z!=="script"&&tg(me,"data:")===0&&Ce[Z])){if(!(K&&!Ot(H,Bn(me,G,"")))){if(me)return!1}}}}}}return!0},gr=function(Z){return Z!=="annotation-xml"&&ia(Z,D)},Nt=function(Z){et(C.beforeSanitizeAttributes,Z,null);const{attributes:he}=Z;if(!he||ze(Z))return;const me={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let He=he.length;for(;He--;){const dt=he[He],{name:nt,namespaceURI:lt,value:Mt}=dt,ur=Le(nt),Tr=Mt;let ut=nt==="value"?Tr:rg(Tr);if(me.attrName=ur,me.attrValue=ut,me.keepAttr=!0,me.forceKeepAttr=void 0,et(C.uponSanitizeAttribute,Z,me),ut=me.attrValue,le&&(ur==="id"||ur==="name")&&(Ue(nt,Z),ut=ae+ut),ce&&Ot(/((--!?|])>)|<\/(style|title|textarea)/i,ut)){Ue(nt,Z);continue}if(ur==="attributename"&&ia(ut,"href")){Ue(nt,Z);continue}if(me.forceKeepAttr)continue;if(!me.keepAttr){Ue(nt,Z);continue}if(!J&&Ot(/\/>/i,ut)){Ue(nt,Z);continue}ne&&Pi([R,j,A],fr=>{ut=Bn(ut,fr," ")});const cr=Le(Z.nodeName);if(!Dt(cr,ur,ut)){Ue(nt,Z);continue}if(y&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!lt)switch(h.getAttributeType(cr,ur)){case"TrustedHTML":{ut=y.createHTML(ut);break}case"TrustedScriptURL":{ut=y.createScriptURL(ut);break}}if(ut!==Tr)try{lt?Z.setAttributeNS(lt,nt,ut):Z.setAttribute(nt,ut),ze(Z)?Je(Z):cc(r.removed)}catch{Ue(nt,Z)}}et(C.afterSanitizeAttributes,Z,null)},It=function ye(Z){let he=null;const me=Vt(Z);for(et(C.beforeSanitizeShadowDOM,Z,null);he=me.nextNode();)et(C.uponSanitizeShadowNode,he,null),vt(he),Nt(he),he.content instanceof o&&ye(he.content);et(C.afterSanitizeShadowDOM,Z,null)};return r.sanitize=function(ye){let Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},he=null,me=null,He=null,dt=null;if(xe=!ye,xe&&(ye="<!-->"),typeof ye!="string"&&!rt(ye))if(typeof ye.toString=="function"){if(ye=ye.toString(),typeof ye!="string")throw qn("dirty is not a string, aborting")}else throw qn("toString is not a function");if(!r.isSupported)return ye;if(de||$e(Z),r.removed=[],typeof ye=="string"&&(fe=!1),fe){if(ye.nodeName){const Mt=Le(ye.nodeName);if(!P[Mt]||q[Mt])throw qn("root node is forbidden and cannot be sanitized in-place")}}else if(ye instanceof s)he=tr("<!---->"),me=he.ownerDocument.importNode(ye,!0),me.nodeType===Hn.element&&me.nodeName==="BODY"||me.nodeName==="HTML"?he=me:he.appendChild(me);else{if(!se&&!ne&&!re&&ye.indexOf("<")===-1)return y&&ee?y.createHTML(ye):ye;if(he=tr(ye),!he)return se?null:ee?E:""}he&&oe&&Je(he.firstChild);const nt=Vt(fe?ye:he);for(;He=nt.nextNode();)vt(He),Nt(He),He.content instanceof o&&It(He.content);if(fe)return ye;if(se){if(Q)for(dt=S.call(he.ownerDocument);he.firstChild;)dt.appendChild(he.firstChild);else dt=he;return(B.shadowroot||B.shadowrootmode)&&(dt=O.call(n,dt,!0)),dt}let lt=re?he.outerHTML:he.innerHTML;return re&&P["!doctype"]&&he.ownerDocument&&he.ownerDocument.doctype&&he.ownerDocument.doctype.name&&Ot(Yh,he.ownerDocument.doctype.name)&&(lt="<!DOCTYPE "+he.ownerDocument.doctype.name+`>
2
+ `+lt),ne&&Pi([R,j,A],Mt=>{lt=Bn(lt,Mt," ")}),y&&ee?y.createHTML(lt):lt},r.setConfig=function(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$e(ye),de=!0},r.clearConfig=function(){Xe=null,de=!1},r.isValidAttribute=function(ye,Z,he){Xe||$e({});const me=Le(ye),He=Le(Z);return Dt(me,He,he)},r.addHook=function(ye,Z){typeof Z=="function"&&$n(C[ye],Z)},r.removeHook=function(ye,Z){if(Z!==void 0){const he=Jm(C[ye],Z);return he===-1?void 0:eg(C[ye],he,1)[0]}return cc(C[ye])},r.removeHooks=function(ye){C[ye]=[]},r.removeAllHooks=function(){C=mc()},r}var gg=Xh(),Yi={exports:{}},yg=Yi.exports,gc;function bg(){return gc||(gc=1,(function(e,r){(function(t,n){e.exports=n()})(yg,function(){return(function(t){function n(o){if(i[o])return i[o].exports;var a=i[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}var i={};return n.m=t,n.c=i,n.i=function(o){return o},n.d=function(o,a,s){n.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:s})},n.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(a,"a",a),a},n.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},n.p="",n(n.s=38)})([function(t,n){function i(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}t.exports=i},function(t,n,i){var o=i(22),a=typeof self=="object"&&self&&self.Object===Object&&self,s=o||a||Function("return this")();t.exports=s},function(t,n){function i(o){return o!=null&&typeof o=="object"}t.exports=i},function(t,n,i){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var v=l[u];this.set(v[0],v[1])}}var a=i(75),s=i(76),c=i(77),d=i(78),f=i(79);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=c,o.prototype.has=d,o.prototype.set=f,t.exports=o},function(t,n,i){function o(s,c){for(var d=s.length;d--;)if(a(s[d][0],c))return d;return-1}var a=i(8);t.exports=o},function(t,n,i){function o(u){return u==null?u===void 0?f:d:l&&l in Object(u)?s(u):c(u)}var a=i(16),s=i(64),c=i(87),d="[object Null]",f="[object Undefined]",l=a?a.toStringTag:void 0;t.exports=o},function(t,n,i){function o(s,c){var d=s.__data__;return a(c)?d[typeof c=="string"?"string":"hash"]:d.map}var a=i(73);t.exports=o},function(t,n,i){var o=i(11),a=o(Object,"create");t.exports=a},function(t,n){function i(o,a){return o===a||o!==o&&a!==a}t.exports=i},function(t,n,i){function o(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")}i.d(n,"a",function(){return a});var a=function s(c){o(this,s),this.onCreate=function(){},this.onDestroy=function(){},this.onUpdate=function(){},this.overlay=c.overlay,this.img=c.img,this.options=c.options,this.requestUpdate=c.onUpdate}},function(t,n,i){function o(s,c,d){c=="__proto__"&&a?a(s,c,{configurable:!0,enumerable:!0,value:d,writable:!0}):s[c]=d}var a=i(21);t.exports=o},function(t,n,i){function o(c,d){var f=s(c,d);return a(f)?f:void 0}var a=i(48),s=i(65);t.exports=o},function(t,n,i){function o(c){return c!=null&&s(c.length)&&!a(c)}var a=i(13),s=i(30);t.exports=o},function(t,n,i){function o(u){if(!s(u))return!1;var h=a(u);return h==d||h==f||h==c||h==l}var a=i(5),s=i(0),c="[object AsyncFunction]",d="[object Function]",f="[object GeneratorFunction]",l="[object Proxy]";t.exports=o},function(t,n){t.exports=function(i){return i.webpackPolyfill||(i.deprecate=function(){},i.paths=[],i.children||(i.children=[]),Object.defineProperty(i,"loaded",{enumerable:!0,get:function(){return i.l}}),Object.defineProperty(i,"id",{enumerable:!0,get:function(){return i.i}}),i.webpackPolyfill=1),i}},function(t,n,i){var o=i(11),a=i(1),s=o(a,"Map");t.exports=s},function(t,n,i){var o=i(1),a=o.Symbol;t.exports=a},function(t,n){function i(o,a,s){switch(s.length){case 0:return o.call(a);case 1:return o.call(a,s[0]);case 2:return o.call(a,s[0],s[1]);case 3:return o.call(a,s[0],s[1],s[2])}return o.apply(a,s)}t.exports=i},function(t,n,i){function o(c,d,f){(f===void 0||s(c[d],f))&&(f!==void 0||d in c)||a(c,d,f)}var a=i(10),s=i(8);t.exports=o},function(t,n,i){function o(u,h,v,b,p){u!==h&&c(h,function(g,m){if(f(g))p||(p=new a),d(u,h,m,v,o,b,p);else{var x=b?b(u[m],g,m+"",u,h,p):void 0;x===void 0&&(x=g),s(u,m,x)}},l)}var a=i(41),s=i(18),c=i(46),d=i(51),f=i(0),l=i(32);t.exports=o},function(t,n,i){function o(d,f){return c(s(d,f,a),d+"")}var a=i(26),s=i(89),c=i(90);t.exports=o},function(t,n,i){var o=i(11),a=(function(){try{var s=o(Object,"defineProperty");return s({},"",{}),s}catch{}})();t.exports=a},function(t,n,i){(function(o){var a=typeof o=="object"&&o&&o.Object===Object&&o;t.exports=a}).call(n,i(107))},function(t,n,i){var o=i(88),a=o(Object.getPrototypeOf,Object);t.exports=a},function(t,n){function i(s,c){return!!(c=c??o)&&(typeof s=="number"||a.test(s))&&s>-1&&s%1==0&&s<c}var o=9007199254740991,a=/^(?:0|[1-9]\d*)$/;t.exports=i},function(t,n){function i(a){var s=a&&a.constructor;return a===(typeof s=="function"&&s.prototype||o)}var o=Object.prototype;t.exports=i},function(t,n){function i(o){return o}t.exports=i},function(t,n,i){var o=i(47),a=i(2),s=Object.prototype,c=s.hasOwnProperty,d=s.propertyIsEnumerable,f=o((function(){return arguments})())?o:function(l){return a(l)&&c.call(l,"callee")&&!d.call(l,"callee")};t.exports=f},function(t,n){var i=Array.isArray;t.exports=i},function(t,n,i){(function(o){var a=i(1),s=i(102),c=typeof n=="object"&&n&&!n.nodeType&&n,d=c&&typeof o=="object"&&o&&!o.nodeType&&o,f=d&&d.exports===c,l=f?a.Buffer:void 0,u=l?l.isBuffer:void 0,h=u||s;o.exports=h}).call(n,i(14)(t))},function(t,n){function i(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=o}var o=9007199254740991;t.exports=i},function(t,n,i){var o=i(49),a=i(54),s=i(86),c=s&&s.isTypedArray,d=c?a(c):o;t.exports=d},function(t,n,i){function o(d){return c(d)?a(d,!0):s(d)}var a=i(43),s=i(50),c=i(12);t.exports=o},function(t,n,i){n.a={modules:["DisplaySize","Toolbar","Resize"],overlayStyles:{position:"absolute",boxSizing:"border-box",border:"1px dashed #444"},handleStyles:{position:"absolute",height:"12px",width:"12px",backgroundColor:"white",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80"},displayStyles:{position:"absolute",font:"12px/1.0 Arial, Helvetica, sans-serif",padding:"4px 8px",textAlign:"center",backgroundColor:"white",color:"#333",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80",cursor:"default"},toolbarStyles:{position:"absolute",top:"-12px",right:"0",left:"0",height:"0",minWidth:"100px",font:"12px/1.0 Arial, Helvetica, sans-serif",textAlign:"center",color:"#333",boxSizing:"border-box",cursor:"default"},toolbarButtonStyles:{display:"inline-block",width:"24px",height:"24px",background:"white",border:"1px solid #999",verticalAlign:"middle"},toolbarButtonSvgStyles:{fill:"#444",stroke:"#444",strokeWidth:"2"}}},function(t,n,i){function o(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}function a(f,l){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||typeof l!="object"&&typeof l!="function"?f:l}function s(f,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);f.prototype=Object.create(l&&l.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(f,l):f.__proto__=l)}var c=i(9);i.d(n,"a",function(){return d});var d=(function(f){function l(){var u,h,v,b;o(this,l);for(var p=arguments.length,g=Array(p),m=0;m<p;m++)g[m]=arguments[m];return h=v=a(this,(u=l.__proto__||Object.getPrototypeOf(l)).call.apply(u,[this].concat(g))),v.onCreate=function(){v.display=document.createElement("div"),Object.assign(v.display.style,v.options.displayStyles),v.overlay.appendChild(v.display)},v.onDestroy=function(){},v.onUpdate=function(){if(v.display&&v.img){var x=v.getCurrentSize();if(v.display.innerHTML=x.join(" &times; "),x[0]>120&&x[1]>30)Object.assign(v.display.style,{right:"4px",bottom:"4px",left:"auto"});else if(v.img.style.float=="right"){var y=v.display.getBoundingClientRect();Object.assign(v.display.style,{right:"auto",bottom:"-"+(y.height+4)+"px",left:"-"+(y.width+4)+"px"})}else{var E=v.display.getBoundingClientRect();Object.assign(v.display.style,{right:"-"+(E.width+4)+"px",bottom:"-"+(E.height+4)+"px",left:"auto"})}}},v.getCurrentSize=function(){return[v.img.width,Math.round(v.img.width/v.img.naturalWidth*v.img.naturalHeight)]},b=h,a(v,b)}return s(l,f),l})(c.a)},function(t,n,i){function o(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}function a(f,l){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||typeof l!="object"&&typeof l!="function"?f:l}function s(f,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);f.prototype=Object.create(l&&l.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(f,l):f.__proto__=l)}var c=i(9);i.d(n,"a",function(){return d});var d=(function(f){function l(){var u,h,v,b;o(this,l);for(var p=arguments.length,g=Array(p),m=0;m<p;m++)g[m]=arguments[m];return h=v=a(this,(u=l.__proto__||Object.getPrototypeOf(l)).call.apply(u,[this].concat(g))),v.onCreate=function(){v.boxes=[],v.addBox("nwse-resize"),v.addBox("nesw-resize"),v.addBox("nwse-resize"),v.addBox("nesw-resize"),v.positionBoxes()},v.onDestroy=function(){v.setCursor("")},v.positionBoxes=function(){var x=-parseFloat(v.options.handleStyles.width)/2+"px",y=-parseFloat(v.options.handleStyles.height)/2+"px";[{left:x,top:y},{right:x,top:y},{right:x,bottom:y},{left:x,bottom:y}].forEach(function(E,_){Object.assign(v.boxes[_].style,E)})},v.addBox=function(x){var y=document.createElement("div");Object.assign(y.style,v.options.handleStyles),y.style.cursor=x,y.style.width=v.options.handleStyles.width+"px",y.style.height=v.options.handleStyles.height+"px",y.addEventListener("mousedown",v.handleMousedown,!1),v.overlay.appendChild(y),v.boxes.push(y)},v.handleMousedown=function(x){v.dragBox=x.target,v.dragStartX=x.clientX,v.preDragWidth=v.img.width||v.img.naturalWidth,v.setCursor(v.dragBox.style.cursor),document.addEventListener("mousemove",v.handleDrag,!1),document.addEventListener("mouseup",v.handleMouseup,!1)},v.handleMouseup=function(){v.setCursor(""),document.removeEventListener("mousemove",v.handleDrag),document.removeEventListener("mouseup",v.handleMouseup)},v.handleDrag=function(x){if(v.img){var y=x.clientX-v.dragStartX;v.dragBox===v.boxes[0]||v.dragBox===v.boxes[3]?v.img.width=Math.round(v.preDragWidth-y):v.img.width=Math.round(v.preDragWidth+y),v.requestUpdate()}},v.setCursor=function(x){[document.body,v.img].forEach(function(y){y.style.cursor=x})},b=h,a(v,b)}return s(l,f),l})(c.a)},function(t,n,i){function o(y,E){if(!(y instanceof E))throw new TypeError("Cannot call a class as a function")}function a(y,E){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!E||typeof E!="object"&&typeof E!="function"?y:E}function s(y,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);y.prototype=Object.create(E&&E.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(y,E):y.__proto__=E)}var c=i(105),d=i.n(c),f=i(104),l=i.n(f),u=i(106),h=i.n(u),v=i(9);i.d(n,"a",function(){return x});var b={},p={},g={},m={},x=(function(y){function E(){var _,w,S,T;o(this,E);for(var O=arguments.length,C=Array(O),R=0;R<O;R++)C[R]=arguments[R];return w=S=a(this,(_=E.__proto__||Object.getPrototypeOf(E)).call.apply(_,[this].concat(C))),S.onCreate=function(j){b=j,p=new b.Attributor.Style("float","float"),g=new b.Attributor.Style("margin","margin"),m=new b.Attributor.Style("display","display"),S.toolbar=document.createElement("div"),Object.assign(S.toolbar.style,S.options.toolbarStyles),S.overlay.appendChild(S.toolbar),S._defineAlignments(),S._addToolbarButtons()},S.onDestroy=function(){},S.onUpdate=function(){},S._defineAlignments=function(){S.alignments=[{icon:d.a,apply:function(){m.add(S.img,"inline"),p.add(S.img,"left"),g.add(S.img,"0 1em 1em 0")},isApplied:function(){return p.value(S.img)=="left"}},{icon:l.a,apply:function(){m.add(S.img,"block"),p.remove(S.img),g.add(S.img,"auto")},isApplied:function(){return g.value(S.img)=="auto"}},{icon:h.a,apply:function(){m.add(S.img,"inline"),p.add(S.img,"right"),g.add(S.img,"0 0 1em 1em")},isApplied:function(){return p.value(S.img)=="right"}}]},S._addToolbarButtons=function(){var j=[];S.alignments.forEach(function(A,I){var $=document.createElement("span");j.push($),$.innerHTML=A.icon,$.addEventListener("click",function(){j.forEach(function(H){return H.style.filter=""}),A.isApplied()?(p.remove(S.img),g.remove(S.img),m.remove(S.img)):(S._selectButton($),A.apply()),S.requestUpdate()}),Object.assign($.style,S.options.toolbarButtonStyles),I>0&&($.style.borderLeftWidth="0"),Object.assign($.children[0].style,S.options.toolbarButtonSvgStyles),A.isApplied()&&S._selectButton($),S.toolbar.appendChild($)})},S._selectButton=function(j){j.style.filter="invert(20%)"},T=w,a(S,T)}return s(E,y),E})(v.a)},function(t,n,i){var o=i(17),a=i(20),s=i(63),c=i(101),d=a(function(f){return f.push(void 0,s),o(c,void 0,f)});t.exports=d},function(t,n,i){function o(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var a=i(37),s=i.n(a),c=i(33),d=i(34),f=i(36),l=i(35),u={DisplaySize:d.a,Toolbar:f.a,Resize:l.a},h=function v(b){var p=this,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,v),this.initializeModules=function(){p.removeModules(),p.modules=p.moduleClasses.map(function(x){return new(u[x]||x)(p)}),p.modules.forEach(function(x){x.onCreate(p.parchment)}),p.onUpdate()},this.onUpdate=function(){p.repositionElements(),p.modules.forEach(function(x){x.onUpdate()})},this.removeModules=function(){p.modules.forEach(function(x){x.onDestroy()}),p.modules=[]},this.handleClick=function(x){if(x.target&&x.target.tagName&&x.target.tagName.toUpperCase()==="IMG"){if(p.img===x.target)return;p.img&&p.hide(),p.show(x.target)}else p.img&&p.hide()},this.show=function(x){p.img=x,p.showOverlay(),p.initializeModules()},this.showOverlay=function(){p.overlay&&p.hideOverlay(),p.quill.setSelection(null),p.setUserSelect("none"),document.addEventListener("keyup",p.checkImage,!0),p.quill.root.addEventListener("input",p.checkImage,!0),p.overlay=document.createElement("div"),Object.assign(p.overlay.style,p.options.overlayStyles),p.quill.root.parentNode.appendChild(p.overlay),p.repositionElements()},this.hideOverlay=function(){p.overlay&&(p.quill.root.parentNode.removeChild(p.overlay),p.overlay=void 0,document.removeEventListener("keyup",p.checkImage),p.quill.root.removeEventListener("input",p.checkImage),p.setUserSelect(""))},this.repositionElements=function(){if(p.overlay&&p.img){var x=p.quill.root.parentNode,y=p.img.getBoundingClientRect(),E=x.getBoundingClientRect();Object.assign(p.overlay.style,{left:y.left-E.left-1+x.scrollLeft+"px",top:y.top-E.top+x.scrollTop+"px",width:y.width+"px",height:y.height+"px"})}},this.hide=function(){p.hideOverlay(),p.removeModules(),p.img=void 0},this.setUserSelect=function(x){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach(function(y){p.quill.root.style[y]=x,document.documentElement.style[y]=x})},this.checkImage=function(x){p.img&&(x.keyCode!=46&&x.keyCode!=8||window.Quill.find(p.img).deleteAt(0),p.hide())},this.quill=b;var m=!1;g.modules&&(m=g.modules.slice()),g.parchment&&(this.parchment=g.parchment),this.options=s()({},g,c.a),m!==!1&&(this.options.modules=m),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,this.modules=[]};n.default=h,window.Quill&&window.Quill.register("modules/imageResize",h)},function(t,n,i){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var v=l[u];this.set(v[0],v[1])}}var a=i(66),s=i(67),c=i(68),d=i(69),f=i(70);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=c,o.prototype.has=d,o.prototype.set=f,t.exports=o},function(t,n,i){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var v=l[u];this.set(v[0],v[1])}}var a=i(80),s=i(81),c=i(82),d=i(83),f=i(84);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=c,o.prototype.has=d,o.prototype.set=f,t.exports=o},function(t,n,i){function o(u){var h=this.__data__=new a(u);this.size=h.size}var a=i(3),s=i(92),c=i(93),d=i(94),f=i(95),l=i(96);o.prototype.clear=s,o.prototype.delete=c,o.prototype.get=d,o.prototype.has=f,o.prototype.set=l,t.exports=o},function(t,n,i){var o=i(1),a=o.Uint8Array;t.exports=a},function(t,n,i){function o(v,b){var p=c(v),g=!p&&s(v),m=!p&&!g&&d(v),x=!p&&!g&&!m&&l(v),y=p||g||m||x,E=y?a(v.length,String):[],_=E.length;for(var w in v)!b&&!h.call(v,w)||y&&(w=="length"||m&&(w=="offset"||w=="parent")||x&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||f(w,_))||E.push(w);return E}var a=i(53),s=i(27),c=i(28),d=i(29),f=i(24),l=i(31),u=Object.prototype,h=u.hasOwnProperty;t.exports=o},function(t,n,i){function o(f,l,u){var h=f[l];d.call(f,l)&&s(h,u)&&(u!==void 0||l in f)||a(f,l,u)}var a=i(10),s=i(8),c=Object.prototype,d=c.hasOwnProperty;t.exports=o},function(t,n,i){var o=i(0),a=Object.create,s=(function(){function c(){}return function(d){if(!o(d))return{};if(a)return a(d);c.prototype=d;var f=new c;return c.prototype=void 0,f}})();t.exports=s},function(t,n,i){var o=i(62),a=o();t.exports=a},function(t,n,i){function o(d){return s(d)&&a(d)==c}var a=i(5),s=i(2),c="[object Arguments]";t.exports=o},function(t,n,i){function o(p){return!(!c(p)||s(p))&&(a(p)?b:f).test(d(p))}var a=i(13),s=i(74),c=i(0),d=i(97),f=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,h=l.toString,v=u.hasOwnProperty,b=RegExp("^"+h.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=o},function(t,n,i){function o(f){return c(f)&&s(f.length)&&!!d[a(f)]}var a=i(5),s=i(30),c=i(2),d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d["[object Arguments]"]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d["[object Function]"]=d["[object Map]"]=d["[object Number]"]=d["[object Object]"]=d["[object RegExp]"]=d["[object Set]"]=d["[object String]"]=d["[object WeakMap]"]=!1,t.exports=o},function(t,n,i){function o(l){if(!a(l))return c(l);var u=s(l),h=[];for(var v in l)(v!="constructor"||!u&&f.call(l,v))&&h.push(v);return h}var a=i(0),s=i(25),c=i(85),d=Object.prototype,f=d.hasOwnProperty;t.exports=o},function(t,n,i){function o(y,E,_,w,S,T,O){var C=y[_],R=E[_],j=O.get(R);if(j)return void a(y,_,j);var A=T?T(C,R,_+"",y,E,O):void 0,I=A===void 0;if(I){var $=u(R),H=!$&&v(R),G=!$&&!H&&m(R);A=R,$||H||G?u(C)?A=C:h(C)?A=d(C):H?(I=!1,A=s(R,!0)):G?(I=!1,A=c(R,!0)):A=[]:g(R)||l(R)?(A=C,l(C)?A=x(C):(!p(C)||w&&b(C))&&(A=f(R))):I=!1}I&&(O.set(R,A),S(A,R,w,T,O),O.delete(R)),a(y,_,A)}var a=i(18),s=i(56),c=i(57),d=i(58),f=i(71),l=i(27),u=i(28),h=i(99),v=i(29),b=i(13),p=i(0),g=i(100),m=i(31),x=i(103);t.exports=o},function(t,n,i){var o=i(98),a=i(21),s=i(26),c=a?function(d,f){return a(d,"toString",{configurable:!0,enumerable:!1,value:o(f),writable:!0})}:s;t.exports=c},function(t,n){function i(o,a){for(var s=-1,c=Array(o);++s<o;)c[s]=a(s);return c}t.exports=i},function(t,n){function i(o){return function(a){return o(a)}}t.exports=i},function(t,n,i){function o(s){var c=new s.constructor(s.byteLength);return new a(c).set(new a(s)),c}var a=i(42);t.exports=o},function(t,n,i){(function(o){function a(h,v){if(v)return h.slice();var b=h.length,p=u?u(b):new h.constructor(b);return h.copy(p),p}var s=i(1),c=typeof n=="object"&&n&&!n.nodeType&&n,d=c&&typeof o=="object"&&o&&!o.nodeType&&o,f=d&&d.exports===c,l=f?s.Buffer:void 0,u=l?l.allocUnsafe:void 0;o.exports=a}).call(n,i(14)(t))},function(t,n,i){function o(s,c){var d=c?a(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}var a=i(55);t.exports=o},function(t,n){function i(o,a){var s=-1,c=o.length;for(a||(a=Array(c));++s<c;)a[s]=o[s];return a}t.exports=i},function(t,n,i){function o(c,d,f,l){var u=!f;f||(f={});for(var h=-1,v=d.length;++h<v;){var b=d[h],p=l?l(f[b],c[b],b,f,c):void 0;p===void 0&&(p=c[b]),u?s(f,b,p):a(f,b,p)}return f}var a=i(44),s=i(10);t.exports=o},function(t,n,i){var o=i(1),a=o["__core-js_shared__"];t.exports=a},function(t,n,i){function o(c){return a(function(d,f){var l=-1,u=f.length,h=u>1?f[u-1]:void 0,v=u>2?f[2]:void 0;for(h=c.length>3&&typeof h=="function"?(u--,h):void 0,v&&s(f[0],f[1],v)&&(h=u<3?void 0:h,u=1),d=Object(d);++l<u;){var b=f[l];b&&c(d,b,l,h)}return d})}var a=i(20),s=i(72);t.exports=o},function(t,n){function i(o){return function(a,s,c){for(var d=-1,f=Object(a),l=c(a),u=l.length;u--;){var h=l[o?u:++d];if(s(f[h],h,f)===!1)break}return a}}t.exports=i},function(t,n,i){function o(c,d,f,l,u,h){return s(c)&&s(d)&&(h.set(d,c),a(c,d,void 0,o,h),h.delete(d)),c}var a=i(19),s=i(0);t.exports=o},function(t,n,i){function o(l){var u=c.call(l,f),h=l[f];try{l[f]=void 0}catch{}var v=d.call(l);return u?l[f]=h:delete l[f],v}var a=i(16),s=Object.prototype,c=s.hasOwnProperty,d=s.toString,f=a?a.toStringTag:void 0;t.exports=o},function(t,n){function i(o,a){return o?.[a]}t.exports=i},function(t,n,i){function o(){this.__data__=a?a(null):{},this.size=0}var a=i(7);t.exports=o},function(t,n){function i(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}t.exports=i},function(t,n,i){function o(f){var l=this.__data__;if(a){var u=l[f];return u===s?void 0:u}return d.call(l,f)?l[f]:void 0}var a=i(7),s="__lodash_hash_undefined__",c=Object.prototype,d=c.hasOwnProperty;t.exports=o},function(t,n,i){function o(d){var f=this.__data__;return a?f[d]!==void 0:c.call(f,d)}var a=i(7),s=Object.prototype,c=s.hasOwnProperty;t.exports=o},function(t,n,i){function o(c,d){var f=this.__data__;return this.size+=this.has(c)?0:1,f[c]=a&&d===void 0?s:d,this}var a=i(7),s="__lodash_hash_undefined__";t.exports=o},function(t,n,i){function o(d){return typeof d.constructor!="function"||c(d)?{}:a(s(d))}var a=i(45),s=i(23),c=i(25);t.exports=o},function(t,n,i){function o(f,l,u){if(!d(u))return!1;var h=typeof l;return!!(h=="number"?s(u)&&c(l,u.length):h=="string"&&l in u)&&a(u[l],f)}var a=i(8),s=i(12),c=i(24),d=i(0);t.exports=o},function(t,n){function i(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}t.exports=i},function(t,n,i){function o(c){return!!s&&s in c}var a=i(60),s=(function(){var c=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})();t.exports=o},function(t,n){function i(){this.__data__=[],this.size=0}t.exports=i},function(t,n,i){function o(d){var f=this.__data__,l=a(f,d);return!(l<0)&&(l==f.length-1?f.pop():c.call(f,l,1),--this.size,!0)}var a=i(4),s=Array.prototype,c=s.splice;t.exports=o},function(t,n,i){function o(s){var c=this.__data__,d=a(c,s);return d<0?void 0:c[d][1]}var a=i(4);t.exports=o},function(t,n,i){function o(s){return a(this.__data__,s)>-1}var a=i(4);t.exports=o},function(t,n,i){function o(s,c){var d=this.__data__,f=a(d,s);return f<0?(++this.size,d.push([s,c])):d[f][1]=c,this}var a=i(4);t.exports=o},function(t,n,i){function o(){this.size=0,this.__data__={hash:new a,map:new(c||s),string:new a}}var a=i(39),s=i(3),c=i(15);t.exports=o},function(t,n,i){function o(s){var c=a(this,s).delete(s);return this.size-=c?1:0,c}var a=i(6);t.exports=o},function(t,n,i){function o(s){return a(this,s).get(s)}var a=i(6);t.exports=o},function(t,n,i){function o(s){return a(this,s).has(s)}var a=i(6);t.exports=o},function(t,n,i){function o(s,c){var d=a(this,s),f=d.size;return d.set(s,c),this.size+=d.size==f?0:1,this}var a=i(6);t.exports=o},function(t,n){function i(o){var a=[];if(o!=null)for(var s in Object(o))a.push(s);return a}t.exports=i},function(t,n,i){(function(o){var a=i(22),s=typeof n=="object"&&n&&!n.nodeType&&n,c=s&&typeof o=="object"&&o&&!o.nodeType&&o,d=c&&c.exports===s,f=d&&a.process,l=(function(){try{return f&&f.binding&&f.binding("util")}catch{}})();o.exports=l}).call(n,i(14)(t))},function(t,n){function i(s){return a.call(s)}var o=Object.prototype,a=o.toString;t.exports=i},function(t,n){function i(o,a){return function(s){return o(a(s))}}t.exports=i},function(t,n,i){function o(c,d,f){return d=s(d===void 0?c.length-1:d,0),function(){for(var l=arguments,u=-1,h=s(l.length-d,0),v=Array(h);++u<h;)v[u]=l[d+u];u=-1;for(var b=Array(d+1);++u<d;)b[u]=l[u];return b[d]=f(v),a(c,this,b)}}var a=i(17),s=Math.max;t.exports=o},function(t,n,i){var o=i(52),a=i(91),s=a(o);t.exports=s},function(t,n){function i(c){var d=0,f=0;return function(){var l=s(),u=a-(l-f);if(f=l,u>0){if(++d>=o)return arguments[0]}else d=0;return c.apply(void 0,arguments)}}var o=800,a=16,s=Date.now;t.exports=i},function(t,n,i){function o(){this.__data__=new a,this.size=0}var a=i(3);t.exports=o},function(t,n){function i(o){var a=this.__data__,s=a.delete(o);return this.size=a.size,s}t.exports=i},function(t,n){function i(o){return this.__data__.get(o)}t.exports=i},function(t,n){function i(o){return this.__data__.has(o)}t.exports=i},function(t,n,i){function o(f,l){var u=this.__data__;if(u instanceof a){var h=u.__data__;if(!s||h.length<d-1)return h.push([f,l]),this.size=++u.size,this;u=this.__data__=new c(h)}return u.set(f,l),this.size=u.size,this}var a=i(3),s=i(15),c=i(40),d=200;t.exports=o},function(t,n){function i(s){if(s!=null){try{return a.call(s)}catch{}try{return s+""}catch{}}return""}var o=Function.prototype,a=o.toString;t.exports=i},function(t,n){function i(o){return function(){return o}}t.exports=i},function(t,n,i){function o(c){return s(c)&&a(c)}var a=i(12),s=i(2);t.exports=o},function(t,n,i){function o(b){if(!c(b)||a(b)!=d)return!1;var p=s(b);if(p===null)return!0;var g=h.call(p,"constructor")&&p.constructor;return typeof g=="function"&&g instanceof g&&u.call(g)==v}var a=i(5),s=i(23),c=i(2),d="[object Object]",f=Function.prototype,l=Object.prototype,u=f.toString,h=l.hasOwnProperty,v=u.call(Object);t.exports=o},function(t,n,i){var o=i(19),a=i(61),s=a(function(c,d,f,l){o(c,d,f,l)});t.exports=s},function(t,n){function i(){return!1}t.exports=i},function(t,n,i){function o(c){return a(c,s(c))}var a=i(59),s=i(32);t.exports=o},function(t,n){t.exports=`<svg viewbox="0 0 18 18">
3
+ <line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"></line>
4
+ <line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"></line>
5
+ <line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"></line>
6
+ </svg>`},function(t,n){t.exports=`<svg viewbox="0 0 18 18">
7
+ <line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"></line>
8
+ <line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"></line>
9
+ <line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"></line>
10
+ </svg>`},function(t,n){t.exports=`<svg viewbox="0 0 18 18">
11
+ <line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"></line>
12
+ <line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"></line>
13
+ <line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"></line>
14
+ </svg>`},function(t,n){var i;i=(function(){return this})();try{i=i||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(i=window)}t.exports=i}])})})(Yi)),Yi.exports}var xg=bg();const Eg=Me.getDefaultExportFromCjs(xg);var ua,yc;function wg(){if(yc)return ua;yc=1;function e(){this.__data__=[],this.size=0}return ua=e,ua}var ca,bc;function Zh(){if(bc)return ca;bc=1;function e(r,t){return r===t||r!==r&&t!==t}return ca=e,ca}var fa,xc;function wo(){if(xc)return fa;xc=1;var e=Zh();function r(t,n){for(var i=t.length;i--;)if(e(t[i][0],n))return i;return-1}return fa=r,fa}var da,Ec;function Sg(){if(Ec)return da;Ec=1;var e=wo(),r=Array.prototype,t=r.splice;function n(i){var o=this.__data__,a=e(o,i);if(a<0)return!1;var s=o.length-1;return a==s?o.pop():t.call(o,a,1),--this.size,!0}return da=n,da}var ha,wc;function _g(){if(wc)return ha;wc=1;var e=wo();function r(t){var n=this.__data__,i=e(n,t);return i<0?void 0:n[i][1]}return ha=r,ha}var pa,Sc;function Cg(){if(Sc)return pa;Sc=1;var e=wo();function r(t){return e(this.__data__,t)>-1}return pa=r,pa}var va,_c;function Rg(){if(_c)return va;_c=1;var e=wo();function r(t,n){var i=this.__data__,o=e(i,t);return o<0?(++this.size,i.push([t,n])):i[o][1]=n,this}return va=r,va}var ma,Cc;function So(){if(Cc)return ma;Cc=1;var e=wg(),r=Sg(),t=_g(),n=Cg(),i=Rg();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var d=a[s];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=r,o.prototype.get=t,o.prototype.has=n,o.prototype.set=i,ma=o,ma}var ga,Rc;function Og(){if(Rc)return ga;Rc=1;var e=So();function r(){this.__data__=new e,this.size=0}return ga=r,ga}var ya,Oc;function jg(){if(Oc)return ya;Oc=1;function e(r){var t=this.__data__,n=t.delete(r);return this.size=t.size,n}return ya=e,ya}var ba,jc;function Tg(){if(jc)return ba;jc=1;function e(r){return this.__data__.get(r)}return ba=e,ba}var xa,Tc;function Ag(){if(Tc)return xa;Tc=1;function e(r){return this.__data__.has(r)}return xa=e,xa}var Ea,Ac;function Qh(){if(Ac)return Ea;Ac=1;var e=typeof Me.commonjsGlobal=="object"&&Me.commonjsGlobal&&Me.commonjsGlobal.Object===Object&&Me.commonjsGlobal;return Ea=e,Ea}var wa,kc;function _r(){if(kc)return wa;kc=1;var e=Qh(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return wa=t,wa}var Sa,Pc;function pu(){if(Pc)return Sa;Pc=1;var e=_r(),r=e.Symbol;return Sa=r,Sa}var _a,Nc;function kg(){if(Nc)return _a;Nc=1;var e=pu(),r=Object.prototype,t=r.hasOwnProperty,n=r.toString,i=e?e.toStringTag:void 0;function o(a){var s=t.call(a,i),c=a[i];try{a[i]=void 0;var d=!0}catch{}var f=n.call(a);return d&&(s?a[i]=c:delete a[i]),f}return _a=o,_a}var Ca,Ic;function Pg(){if(Ic)return Ca;Ic=1;var e=Object.prototype,r=e.toString;function t(n){return r.call(n)}return Ca=t,Ca}var Ra,Mc;function _o(){if(Mc)return Ra;Mc=1;var e=pu(),r=kg(),t=Pg(),n="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?i:n:o&&o in Object(s)?r(s):t(s)}return Ra=a,Ra}var Oa,Lc;function Jh(){if(Lc)return Oa;Lc=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return Oa=e,Oa}var ja,Dc;function ep(){if(Dc)return ja;Dc=1;var e=_o(),r=Jh(),t="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function a(s){if(!r(s))return!1;var c=e(s);return c==n||c==i||c==t||c==o}return ja=a,ja}var Ta,Fc;function Ng(){if(Fc)return Ta;Fc=1;var e=_r(),r=e["__core-js_shared__"];return Ta=r,Ta}var Aa,$c;function Ig(){if($c)return Aa;$c=1;var e=Ng(),r=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function t(n){return!!r&&r in n}return Aa=t,Aa}var ka,Bc;function tp(){if(Bc)return ka;Bc=1;var e=Function.prototype,r=e.toString;function t(n){if(n!=null){try{return r.call(n)}catch{}try{return n+""}catch{}}return""}return ka=t,ka}var Pa,qc;function Mg(){if(qc)return Pa;qc=1;var e=ep(),r=Ig(),t=Jh(),n=tp(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,c=a.toString,d=s.hasOwnProperty,f=RegExp("^"+c.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(u){if(!t(u)||r(u))return!1;var h=e(u)?f:o;return h.test(n(u))}return Pa=l,Pa}var Na,zc;function Lg(){if(zc)return Na;zc=1;function e(r,t){return r?.[t]}return Na=e,Na}var Ia,Hc;function xn(){if(Hc)return Ia;Hc=1;var e=Mg(),r=Lg();function t(n,i){var o=r(n,i);return e(o)?o:void 0}return Ia=t,Ia}var Ma,Vc;function vu(){if(Vc)return Ma;Vc=1;var e=xn(),r=_r(),t=e(r,"Map");return Ma=t,Ma}var La,Uc;function Co(){if(Uc)return La;Uc=1;var e=xn(),r=e(Object,"create");return La=r,La}var Da,Wc;function Dg(){if(Wc)return Da;Wc=1;var e=Co();function r(){this.__data__=e?e(null):{},this.size=0}return Da=r,Da}var Fa,Gc;function Fg(){if(Gc)return Fa;Gc=1;function e(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}return Fa=e,Fa}var $a,Kc;function $g(){if(Kc)return $a;Kc=1;var e=Co(),r="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function i(o){var a=this.__data__;if(e){var s=a[o];return s===r?void 0:s}return n.call(a,o)?a[o]:void 0}return $a=i,$a}var Ba,Yc;function Bg(){if(Yc)return Ba;Yc=1;var e=Co(),r=Object.prototype,t=r.hasOwnProperty;function n(i){var o=this.__data__;return e?o[i]!==void 0:t.call(o,i)}return Ba=n,Ba}var qa,Xc;function qg(){if(Xc)return qa;Xc=1;var e=Co(),r="__lodash_hash_undefined__";function t(n,i){var o=this.__data__;return this.size+=this.has(n)?0:1,o[n]=e&&i===void 0?r:i,this}return qa=t,qa}var za,Zc;function zg(){if(Zc)return za;Zc=1;var e=Dg(),r=Fg(),t=$g(),n=Bg(),i=qg();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var d=a[s];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=r,o.prototype.get=t,o.prototype.has=n,o.prototype.set=i,za=o,za}var Ha,Qc;function Hg(){if(Qc)return Ha;Qc=1;var e=zg(),r=So(),t=vu();function n(){this.size=0,this.__data__={hash:new e,map:new(t||r),string:new e}}return Ha=n,Ha}var Va,Jc;function Vg(){if(Jc)return Va;Jc=1;function e(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}return Va=e,Va}var Ua,ef;function Ro(){if(ef)return Ua;ef=1;var e=Vg();function r(t,n){var i=t.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Ua=r,Ua}var Wa,tf;function Ug(){if(tf)return Wa;tf=1;var e=Ro();function r(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}return Wa=r,Wa}var Ga,rf;function Wg(){if(rf)return Ga;rf=1;var e=Ro();function r(t){return e(this,t).get(t)}return Ga=r,Ga}var Ka,nf;function Gg(){if(nf)return Ka;nf=1;var e=Ro();function r(t){return e(this,t).has(t)}return Ka=r,Ka}var Ya,of;function Kg(){if(of)return Ya;of=1;var e=Ro();function r(t,n){var i=e(this,t),o=i.size;return i.set(t,n),this.size+=i.size==o?0:1,this}return Ya=r,Ya}var Xa,af;function rp(){if(af)return Xa;af=1;var e=Hg(),r=Ug(),t=Wg(),n=Gg(),i=Kg();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var d=a[s];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=r,o.prototype.get=t,o.prototype.has=n,o.prototype.set=i,Xa=o,Xa}var Za,sf;function Yg(){if(sf)return Za;sf=1;var e=So(),r=vu(),t=rp(),n=200;function i(o,a){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!r||c.length<n-1)return c.push([o,a]),this.size=++s.size,this;s=this.__data__=new t(c)}return s.set(o,a),this.size=s.size,this}return Za=i,Za}var Qa,lf;function Xg(){if(lf)return Qa;lf=1;var e=So(),r=Og(),t=jg(),n=Tg(),i=Ag(),o=Yg();function a(s){var c=this.__data__=new e(s);this.size=c.size}return a.prototype.clear=r,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=i,a.prototype.set=o,Qa=a,Qa}var Ja,uf;function Zg(){if(uf)return Ja;uf=1;var e="__lodash_hash_undefined__";function r(t){return this.__data__.set(t,e),this}return Ja=r,Ja}var es,cf;function Qg(){if(cf)return es;cf=1;function e(r){return this.__data__.has(r)}return es=e,es}var ts,ff;function Jg(){if(ff)return ts;ff=1;var e=rp(),r=Zg(),t=Qg();function n(i){var o=-1,a=i==null?0:i.length;for(this.__data__=new e;++o<a;)this.add(i[o])}return n.prototype.add=n.prototype.push=r,n.prototype.has=t,ts=n,ts}var rs,df;function ey(){if(df)return rs;df=1;function e(r,t){for(var n=-1,i=r==null?0:r.length;++n<i;)if(t(r[n],n,r))return!0;return!1}return rs=e,rs}var ns,hf;function ty(){if(hf)return ns;hf=1;function e(r,t){return r.has(t)}return ns=e,ns}var is,pf;function np(){if(pf)return is;pf=1;var e=Jg(),r=ey(),t=ty(),n=1,i=2;function o(a,s,c,d,f,l){var u=c&n,h=a.length,v=s.length;if(h!=v&&!(u&&v>h))return!1;var b=l.get(a),p=l.get(s);if(b&&p)return b==s&&p==a;var g=-1,m=!0,x=c&i?new e:void 0;for(l.set(a,s),l.set(s,a);++g<h;){var y=a[g],E=s[g];if(d)var _=u?d(E,y,g,s,a,l):d(y,E,g,a,s,l);if(_!==void 0){if(_)continue;m=!1;break}if(x){if(!r(s,function(w,S){if(!t(x,S)&&(y===w||f(y,w,c,d,l)))return x.push(S)})){m=!1;break}}else if(!(y===E||f(y,E,c,d,l))){m=!1;break}}return l.delete(a),l.delete(s),m}return is=o,is}var os,vf;function ry(){if(vf)return os;vf=1;var e=_r(),r=e.Uint8Array;return os=r,os}var as,mf;function ny(){if(mf)return as;mf=1;function e(r){var t=-1,n=Array(r.size);return r.forEach(function(i,o){n[++t]=[o,i]}),n}return as=e,as}var ss,gf;function iy(){if(gf)return ss;gf=1;function e(r){var t=-1,n=Array(r.size);return r.forEach(function(i){n[++t]=i}),n}return ss=e,ss}var ls,yf;function oy(){if(yf)return ls;yf=1;var e=pu(),r=ry(),t=Zh(),n=np(),i=ny(),o=iy(),a=1,s=2,c="[object Boolean]",d="[object Date]",f="[object Error]",l="[object Map]",u="[object Number]",h="[object RegExp]",v="[object Set]",b="[object String]",p="[object Symbol]",g="[object ArrayBuffer]",m="[object DataView]",x=e?e.prototype:void 0,y=x?x.valueOf:void 0;function E(_,w,S,T,O,C,R){switch(S){case m:if(_.byteLength!=w.byteLength||_.byteOffset!=w.byteOffset)return!1;_=_.buffer,w=w.buffer;case g:return!(_.byteLength!=w.byteLength||!C(new r(_),new r(w)));case c:case d:case u:return t(+_,+w);case f:return _.name==w.name&&_.message==w.message;case h:case b:return _==w+"";case l:var j=i;case v:var A=T&a;if(j||(j=o),_.size!=w.size&&!A)return!1;var I=R.get(_);if(I)return I==w;T|=s,R.set(_,w);var $=n(j(_),j(w),T,O,C,R);return R.delete(_),$;case p:if(y)return y.call(_)==y.call(w)}return!1}return ls=E,ls}var us,bf;function ay(){if(bf)return us;bf=1;function e(r,t){for(var n=-1,i=t.length,o=r.length;++n<i;)r[o+n]=t[n];return r}return us=e,us}var cs,xf;function mu(){if(xf)return cs;xf=1;var e=Array.isArray;return cs=e,cs}var fs,Ef;function sy(){if(Ef)return fs;Ef=1;var e=ay(),r=mu();function t(n,i,o){var a=i(n);return r(n)?a:e(a,o(n))}return fs=t,fs}var ds,wf;function ly(){if(wf)return ds;wf=1;function e(r,t){for(var n=-1,i=r==null?0:r.length,o=0,a=[];++n<i;){var s=r[n];t(s,n,r)&&(a[o++]=s)}return a}return ds=e,ds}var hs,Sf;function uy(){if(Sf)return hs;Sf=1;function e(){return[]}return hs=e,hs}var ps,_f;function cy(){if(_f)return ps;_f=1;var e=ly(),r=uy(),t=Object.prototype,n=t.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(s){return n.call(a,s)}))}:r;return ps=o,ps}var vs,Cf;function fy(){if(Cf)return vs;Cf=1;function e(r,t){for(var n=-1,i=Array(r);++n<r;)i[n]=t(n);return i}return vs=e,vs}var ms,Rf;function Oo(){if(Rf)return ms;Rf=1;function e(r){return r!=null&&typeof r=="object"}return ms=e,ms}var gs,Of;function dy(){if(Of)return gs;Of=1;var e=_o(),r=Oo(),t="[object Arguments]";function n(i){return r(i)&&e(i)==t}return gs=n,gs}var ys,jf;function hy(){if(jf)return ys;jf=1;var e=dy(),r=Oo(),t=Object.prototype,n=t.hasOwnProperty,i=t.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(a){return r(a)&&n.call(a,"callee")&&!i.call(a,"callee")};return ys=o,ys}var Kn={exports:{}},bs,Tf;function py(){if(Tf)return bs;Tf=1;function e(){return!1}return bs=e,bs}Kn.exports;var Af;function ip(){return Af||(Af=1,(function(e,r){var t=_r(),n=py(),i=r&&!r.nodeType&&r,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?t.Buffer:void 0,c=s?s.isBuffer:void 0,d=c||n;e.exports=d})(Kn,Kn.exports)),Kn.exports}var xs,kf;function vy(){if(kf)return xs;kf=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function t(n,i){var o=typeof n;return i=i??e,!!i&&(o=="number"||o!="symbol"&&r.test(n))&&n>-1&&n%1==0&&n<i}return xs=t,xs}var Es,Pf;function op(){if(Pf)return Es;Pf=1;var e=9007199254740991;function r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=e}return Es=r,Es}var ws,Nf;function my(){if(Nf)return ws;Nf=1;var e=_o(),r=op(),t=Oo(),n="[object Arguments]",i="[object Array]",o="[object Boolean]",a="[object Date]",s="[object Error]",c="[object Function]",d="[object Map]",f="[object Number]",l="[object Object]",u="[object RegExp]",h="[object Set]",v="[object String]",b="[object WeakMap]",p="[object ArrayBuffer]",g="[object DataView]",m="[object Float32Array]",x="[object Float64Array]",y="[object Int8Array]",E="[object Int16Array]",_="[object Int32Array]",w="[object Uint8Array]",S="[object Uint8ClampedArray]",T="[object Uint16Array]",O="[object Uint32Array]",C={};C[m]=C[x]=C[y]=C[E]=C[_]=C[w]=C[S]=C[T]=C[O]=!0,C[n]=C[i]=C[p]=C[o]=C[g]=C[a]=C[s]=C[c]=C[d]=C[f]=C[l]=C[u]=C[h]=C[v]=C[b]=!1;function R(j){return t(j)&&r(j.length)&&!!C[e(j)]}return ws=R,ws}var Ss,If;function gy(){if(If)return Ss;If=1;function e(r){return function(t){return r(t)}}return Ss=e,Ss}var Yn={exports:{}};Yn.exports;var Mf;function yy(){return Mf||(Mf=1,(function(e,r){var t=Qh(),n=r&&!r.nodeType&&r,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&t.process,s=(function(){try{var c=i&&i.require&&i.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}})();e.exports=s})(Yn,Yn.exports)),Yn.exports}var _s,Lf;function ap(){if(Lf)return _s;Lf=1;var e=my(),r=gy(),t=yy(),n=t&&t.isTypedArray,i=n?r(n):e;return _s=i,_s}var Cs,Df;function by(){if(Df)return Cs;Df=1;var e=fy(),r=hy(),t=mu(),n=ip(),i=vy(),o=ap(),a=Object.prototype,s=a.hasOwnProperty;function c(d,f){var l=t(d),u=!l&&r(d),h=!l&&!u&&n(d),v=!l&&!u&&!h&&o(d),b=l||u||h||v,p=b?e(d.length,String):[],g=p.length;for(var m in d)(f||s.call(d,m))&&!(b&&(m=="length"||h&&(m=="offset"||m=="parent")||v&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||i(m,g)))&&p.push(m);return p}return Cs=c,Cs}var Rs,Ff;function xy(){if(Ff)return Rs;Ff=1;var e=Object.prototype;function r(t){var n=t&&t.constructor,i=typeof n=="function"&&n.prototype||e;return t===i}return Rs=r,Rs}var Os,$f;function Ey(){if($f)return Os;$f=1;function e(r,t){return function(n){return r(t(n))}}return Os=e,Os}var js,Bf;function wy(){if(Bf)return js;Bf=1;var e=Ey(),r=e(Object.keys,Object);return js=r,js}var Ts,qf;function Sy(){if(qf)return Ts;qf=1;var e=xy(),r=wy(),t=Object.prototype,n=t.hasOwnProperty;function i(o){if(!e(o))return r(o);var a=[];for(var s in Object(o))n.call(o,s)&&s!="constructor"&&a.push(s);return a}return Ts=i,Ts}var As,zf;function _y(){if(zf)return As;zf=1;var e=ep(),r=op();function t(n){return n!=null&&r(n.length)&&!e(n)}return As=t,As}var ks,Hf;function Cy(){if(Hf)return ks;Hf=1;var e=by(),r=Sy(),t=_y();function n(i){return t(i)?e(i):r(i)}return ks=n,ks}var Ps,Vf;function Ry(){if(Vf)return Ps;Vf=1;var e=sy(),r=cy(),t=Cy();function n(i){return e(i,t,r)}return Ps=n,Ps}var Ns,Uf;function Oy(){if(Uf)return Ns;Uf=1;var e=Ry(),r=1,t=Object.prototype,n=t.hasOwnProperty;function i(o,a,s,c,d,f){var l=s&r,u=e(o),h=u.length,v=e(a),b=v.length;if(h!=b&&!l)return!1;for(var p=h;p--;){var g=u[p];if(!(l?g in a:n.call(a,g)))return!1}var m=f.get(o),x=f.get(a);if(m&&x)return m==a&&x==o;var y=!0;f.set(o,a),f.set(a,o);for(var E=l;++p<h;){g=u[p];var _=o[g],w=a[g];if(c)var S=l?c(w,_,g,a,o,f):c(_,w,g,o,a,f);if(!(S===void 0?_===w||d(_,w,s,c,f):S)){y=!1;break}E||(E=g=="constructor")}if(y&&!E){var T=o.constructor,O=a.constructor;T!=O&&"constructor"in o&&"constructor"in a&&!(typeof T=="function"&&T instanceof T&&typeof O=="function"&&O instanceof O)&&(y=!1)}return f.delete(o),f.delete(a),y}return Ns=i,Ns}var Is,Wf;function jy(){if(Wf)return Is;Wf=1;var e=xn(),r=_r(),t=e(r,"DataView");return Is=t,Is}var Ms,Gf;function Ty(){if(Gf)return Ms;Gf=1;var e=xn(),r=_r(),t=e(r,"Promise");return Ms=t,Ms}var Ls,Kf;function Ay(){if(Kf)return Ls;Kf=1;var e=xn(),r=_r(),t=e(r,"Set");return Ls=t,Ls}var Ds,Yf;function ky(){if(Yf)return Ds;Yf=1;var e=xn(),r=_r(),t=e(r,"WeakMap");return Ds=t,Ds}var Fs,Xf;function Py(){if(Xf)return Fs;Xf=1;var e=jy(),r=vu(),t=Ty(),n=Ay(),i=ky(),o=_o(),a=tp(),s="[object Map]",c="[object Object]",d="[object Promise]",f="[object Set]",l="[object WeakMap]",u="[object DataView]",h=a(e),v=a(r),b=a(t),p=a(n),g=a(i),m=o;return(e&&m(new e(new ArrayBuffer(1)))!=u||r&&m(new r)!=s||t&&m(t.resolve())!=d||n&&m(new n)!=f||i&&m(new i)!=l)&&(m=function(x){var y=o(x),E=y==c?x.constructor:void 0,_=E?a(E):"";if(_)switch(_){case h:return u;case v:return s;case b:return d;case p:return f;case g:return l}return y}),Fs=m,Fs}var $s,Zf;function Ny(){if(Zf)return $s;Zf=1;var e=Xg(),r=np(),t=oy(),n=Oy(),i=Py(),o=mu(),a=ip(),s=ap(),c=1,d="[object Arguments]",f="[object Array]",l="[object Object]",u=Object.prototype,h=u.hasOwnProperty;function v(b,p,g,m,x,y){var E=o(b),_=o(p),w=E?f:i(b),S=_?f:i(p);w=w==d?l:w,S=S==d?l:S;var T=w==l,O=S==l,C=w==S;if(C&&a(b)){if(!a(p))return!1;E=!0,T=!1}if(C&&!T)return y||(y=new e),E||s(b)?r(b,p,g,m,x,y):t(b,p,w,g,m,x,y);if(!(g&c)){var R=T&&h.call(b,"__wrapped__"),j=O&&h.call(p,"__wrapped__");if(R||j){var A=R?b.value():b,I=j?p.value():p;return y||(y=new e),x(A,I,g,m,y)}}return C?(y||(y=new e),n(b,p,g,m,x,y)):!1}return $s=v,$s}var Bs,Qf;function Iy(){if(Qf)return Bs;Qf=1;var e=Ny(),r=Oo();function t(n,i,o,a,s){return n===i?!0:n==null||i==null||!r(n)&&!r(i)?n!==n&&i!==i:e(n,i,o,a,t,s)}return Bs=t,Bs}var qs,Jf;function My(){if(Jf)return qs;Jf=1;var e=Iy();function r(t,n){return e(t,n)}return qs=r,qs}var Xi={exports:{}};/*!
15
+ * Quill Editor v1.3.7
16
+ * https://quilljs.com/
17
+ * Copyright (c) 2014, Jason Chen
18
+ * Copyright (c) 2013, salesforce.com
19
+ */var Ly=Xi.exports,ed;function Dy(){return ed||(ed=1,(function(e,r){(function(n,i){e.exports=i()})(typeof self<"u"?self:Ly,function(){return(function(t){var n={};function i(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=t,i.c=n,i.d=function(o,a,s){i.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:s})},i.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(a,"a",a),a},i.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},i.p="",i(i.s=109)})([(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(17),a=i(18),s=i(19),c=i(45),d=i(46),f=i(47),l=i(48),u=i(49),h=i(12),v=i(32),b=i(33),p=i(31),g=i(1),m={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:o.default,Format:a.default,Leaf:s.default,Embed:l.default,Scroll:c.default,Block:f.default,Inline:d.default,Text:u.default,Attributor:{Attribute:h.default,Class:v.default,Style:b.default,Store:p.default}};n.default=m}),(function(t,n,i){var o=this&&this.__extends||(function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,m){g.__proto__=m}||function(g,m){for(var x in m)m.hasOwnProperty(x)&&(g[x]=m[x])};return function(g,m){p(g,m);function x(){this.constructor=g}g.prototype=m===null?Object.create(m):(x.prototype=m.prototype,new x)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=(function(p){o(g,p);function g(m){var x=this;return m="[Parchment] "+m,x=p.call(this,m)||this,x.message=m,x.name=x.constructor.name,x}return g})(Error);n.ParchmentError=a;var s={},c={},d={},f={};n.DATA_KEY="__blot";var l;(function(p){p[p.TYPE=3]="TYPE",p[p.LEVEL=12]="LEVEL",p[p.ATTRIBUTE=13]="ATTRIBUTE",p[p.BLOT=14]="BLOT",p[p.INLINE=7]="INLINE",p[p.BLOCK=11]="BLOCK",p[p.BLOCK_BLOT=10]="BLOCK_BLOT",p[p.INLINE_BLOT=6]="INLINE_BLOT",p[p.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",p[p.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",p[p.ANY=15]="ANY"})(l=n.Scope||(n.Scope={}));function u(p,g){var m=v(p);if(m==null)throw new a("Unable to create "+p+" blot");var x=m,y=p instanceof Node||p.nodeType===Node.TEXT_NODE?p:x.create(g);return new x(y,g)}n.create=u;function h(p,g){return g===void 0&&(g=!1),p==null?null:p[n.DATA_KEY]!=null?p[n.DATA_KEY].blot:g?h(p.parentNode,g):null}n.find=h;function v(p,g){g===void 0&&(g=l.ANY);var m;if(typeof p=="string")m=f[p]||s[p];else if(p instanceof Text||p.nodeType===Node.TEXT_NODE)m=f.text;else if(typeof p=="number")p&l.LEVEL&l.BLOCK?m=f.block:p&l.LEVEL&l.INLINE&&(m=f.inline);else if(p instanceof HTMLElement){var x=(p.getAttribute("class")||"").split(/\s+/);for(var y in x)if(m=c[x[y]],m)break;m=m||d[p.tagName]}return m==null?null:g&l.LEVEL&m.scope&&g&l.TYPE&m.scope?m:null}n.query=v;function b(){for(var p=[],g=0;g<arguments.length;g++)p[g]=arguments[g];if(p.length>1)return p.map(function(y){return b(y)});var m=p[0];if(typeof m.blotName!="string"&&typeof m.attrName!="string")throw new a("Invalid definition");if(m.blotName==="abstract")throw new a("Cannot register abstract class");if(f[m.blotName||m.attrName]=m,typeof m.keyName=="string")s[m.keyName]=m;else if(m.className!=null&&(c[m.className]=m),m.tagName!=null){Array.isArray(m.tagName)?m.tagName=m.tagName.map(function(y){return y.toUpperCase()}):m.tagName=m.tagName.toUpperCase();var x=Array.isArray(m.tagName)?m.tagName:[m.tagName];x.forEach(function(y){(d[y]==null||m.className==null)&&(d[y]=m)})}return m}n.register=b}),(function(t,n,i){var o=i(51),a=i(11),s=i(3),c=i(20),d="\0",f=function(l){Array.isArray(l)?this.ops=l:l!=null&&Array.isArray(l.ops)?this.ops=l.ops:this.ops=[]};f.prototype.insert=function(l,u){var h={};return l.length===0?this:(h.insert=l,u!=null&&typeof u=="object"&&Object.keys(u).length>0&&(h.attributes=u),this.push(h))},f.prototype.delete=function(l){return l<=0?this:this.push({delete:l})},f.prototype.retain=function(l,u){if(l<=0)return this;var h={retain:l};return u!=null&&typeof u=="object"&&Object.keys(u).length>0&&(h.attributes=u),this.push(h)},f.prototype.push=function(l){var u=this.ops.length,h=this.ops[u-1];if(l=s(!0,{},l),typeof h=="object"){if(typeof l.delete=="number"&&typeof h.delete=="number")return this.ops[u-1]={delete:h.delete+l.delete},this;if(typeof h.delete=="number"&&l.insert!=null&&(u-=1,h=this.ops[u-1],typeof h!="object"))return this.ops.unshift(l),this;if(a(l.attributes,h.attributes)){if(typeof l.insert=="string"&&typeof h.insert=="string")return this.ops[u-1]={insert:h.insert+l.insert},typeof l.attributes=="object"&&(this.ops[u-1].attributes=l.attributes),this;if(typeof l.retain=="number"&&typeof h.retain=="number")return this.ops[u-1]={retain:h.retain+l.retain},typeof l.attributes=="object"&&(this.ops[u-1].attributes=l.attributes),this}}return u===this.ops.length?this.ops.push(l):this.ops.splice(u,0,l),this},f.prototype.chop=function(){var l=this.ops[this.ops.length-1];return l&&l.retain&&!l.attributes&&this.ops.pop(),this},f.prototype.filter=function(l){return this.ops.filter(l)},f.prototype.forEach=function(l){this.ops.forEach(l)},f.prototype.map=function(l){return this.ops.map(l)},f.prototype.partition=function(l){var u=[],h=[];return this.forEach(function(v){var b=l(v)?u:h;b.push(v)}),[u,h]},f.prototype.reduce=function(l,u){return this.ops.reduce(l,u)},f.prototype.changeLength=function(){return this.reduce(function(l,u){return u.insert?l+c.length(u):u.delete?l-u.delete:l},0)},f.prototype.length=function(){return this.reduce(function(l,u){return l+c.length(u)},0)},f.prototype.slice=function(l,u){l=l||0,typeof u!="number"&&(u=1/0);for(var h=[],v=c.iterator(this.ops),b=0;b<u&&v.hasNext();){var p;b<l?p=v.next(l-b):(p=v.next(u-b),h.push(p)),b+=c.length(p)}return new f(h)},f.prototype.compose=function(l){var u=c.iterator(this.ops),h=c.iterator(l.ops),v=[],b=h.peek();if(b!=null&&typeof b.retain=="number"&&b.attributes==null){for(var p=b.retain;u.peekType()==="insert"&&u.peekLength()<=p;)p-=u.peekLength(),v.push(u.next());b.retain-p>0&&h.next(b.retain-p)}for(var g=new f(v);u.hasNext()||h.hasNext();)if(h.peekType()==="insert")g.push(h.next());else if(u.peekType()==="delete")g.push(u.next());else{var m=Math.min(u.peekLength(),h.peekLength()),x=u.next(m),y=h.next(m);if(typeof y.retain=="number"){var E={};typeof x.retain=="number"?E.retain=m:E.insert=x.insert;var _=c.attributes.compose(x.attributes,y.attributes,typeof x.retain=="number");if(_&&(E.attributes=_),g.push(E),!h.hasNext()&&a(g.ops[g.ops.length-1],E)){var w=new f(u.rest());return g.concat(w).chop()}}else typeof y.delete=="number"&&typeof x.retain=="number"&&g.push(y)}return g.chop()},f.prototype.concat=function(l){var u=new f(this.ops.slice());return l.ops.length>0&&(u.push(l.ops[0]),u.ops=u.ops.concat(l.ops.slice(1))),u},f.prototype.diff=function(l,u){if(this.ops===l.ops)return new f;var h=[this,l].map(function(m){return m.map(function(x){if(x.insert!=null)return typeof x.insert=="string"?x.insert:d;var y=m===l?"on":"with";throw new Error("diff() called "+y+" non-document")}).join("")}),v=new f,b=o(h[0],h[1],u),p=c.iterator(this.ops),g=c.iterator(l.ops);return b.forEach(function(m){for(var x=m[1].length;x>0;){var y=0;switch(m[0]){case o.INSERT:y=Math.min(g.peekLength(),x),v.push(g.next(y));break;case o.DELETE:y=Math.min(x,p.peekLength()),p.next(y),v.delete(y);break;case o.EQUAL:y=Math.min(p.peekLength(),g.peekLength(),x);var E=p.next(y),_=g.next(y);a(E.insert,_.insert)?v.retain(y,c.attributes.diff(E.attributes,_.attributes)):v.push(_).delete(y);break}x-=y}}),v.chop()},f.prototype.eachLine=function(l,u){u=u||`
20
+ `;for(var h=c.iterator(this.ops),v=new f,b=0;h.hasNext();){if(h.peekType()!=="insert")return;var p=h.peek(),g=c.length(p)-h.peekLength(),m=typeof p.insert=="string"?p.insert.indexOf(u,g)-g:-1;if(m<0)v.push(h.next());else if(m>0)v.push(h.next(m));else{if(l(v,h.next(1).attributes||{},b)===!1)return;b+=1,v=new f}}v.length()>0&&l(v,{},b)},f.prototype.transform=function(l,u){if(u=!!u,typeof l=="number")return this.transformPosition(l,u);for(var h=c.iterator(this.ops),v=c.iterator(l.ops),b=new f;h.hasNext()||v.hasNext();)if(h.peekType()==="insert"&&(u||v.peekType()!=="insert"))b.retain(c.length(h.next()));else if(v.peekType()==="insert")b.push(v.next());else{var p=Math.min(h.peekLength(),v.peekLength()),g=h.next(p),m=v.next(p);if(g.delete)continue;m.delete?b.push(m):b.retain(p,c.attributes.transform(g.attributes,m.attributes,u))}return b.chop()},f.prototype.transformPosition=function(l,u){u=!!u;for(var h=c.iterator(this.ops),v=0;h.hasNext()&&v<=l;){var b=h.peekLength(),p=h.peekType();if(h.next(),p==="delete"){l-=Math.min(b,l-v);continue}else p==="insert"&&(v<l||!u)&&(l+=b);v+=b}return l},t.exports=f}),(function(t,n){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=function(h){return typeof Array.isArray=="function"?Array.isArray(h):o.call(h)==="[object Array]"},d=function(h){if(!h||o.call(h)!=="[object Object]")return!1;var v=i.call(h,"constructor"),b=h.constructor&&h.constructor.prototype&&i.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!v&&!b)return!1;var p;for(p in h);return typeof p>"u"||i.call(h,p)},f=function(h,v){a&&v.name==="__proto__"?a(h,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):h[v.name]=v.newValue},l=function(h,v){if(v==="__proto__")if(i.call(h,v)){if(s)return s(h,v).value}else return;return h[v]};t.exports=function u(){var h,v,b,p,g,m,x=arguments[0],y=1,E=arguments.length,_=!1;for(typeof x=="boolean"&&(_=x,x=arguments[1]||{},y=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});y<E;++y)if(h=arguments[y],h!=null)for(v in h)b=l(x,v),p=l(h,v),x!==p&&(_&&p&&(d(p)||(g=c(p)))?(g?(g=!1,m=b&&c(b)?b:[]):m=b&&d(b)?b:{},f(x,{name:v,newValue:u(_,m,p)})):typeof p<"u"&&f(x,{name:v,newValue:p}));return x}}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BlockEmbed=n.bubbleFormats=void 0;var o=(function(){function C(R,j){for(var A=0;A<j.length;A++){var I=j[A];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(R,I.key,I)}}return function(R,j,A){return j&&C(R.prototype,j),A&&C(R,A),R}})(),a=function C(R,j,A){R===null&&(R=Function.prototype);var I=Object.getOwnPropertyDescriptor(R,j);if(I===void 0){var $=Object.getPrototypeOf(R);return $===null?void 0:C($,j,A)}else{if("value"in I)return I.value;var H=I.get;return H===void 0?void 0:H.call(A)}},s=i(3),c=x(s),d=i(2),f=x(d),l=i(0),u=x(l),h=i(16),v=x(h),b=i(6),p=x(b),g=i(7),m=x(g);function x(C){return C&&C.__esModule?C:{default:C}}function y(C,R){if(!(C instanceof R))throw new TypeError("Cannot call a class as a function")}function E(C,R){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:C}function _(C,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);C.prototype=Object.create(R&&R.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(C,R):C.__proto__=R)}var w=1,S=(function(C){_(R,C);function R(){return y(this,R),E(this,(R.__proto__||Object.getPrototypeOf(R)).apply(this,arguments))}return o(R,[{key:"attach",value:function(){a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"attach",this).call(this),this.attributes=new u.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new f.default().insert(this.value(),(0,c.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(A,I){var $=u.default.query(A,u.default.Scope.BLOCK_ATTRIBUTE);$!=null&&this.attributes.attribute($,I)}},{key:"formatAt",value:function(A,I,$,H){this.format($,H)}},{key:"insertAt",value:function(A,I,$){if(typeof I=="string"&&I.endsWith(`
21
+ `)){var H=u.default.create(T.blotName);this.parent.insertBefore(H,A===0?this:this.next),H.insertAt(0,I.slice(0,-1))}else a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,A,I,$)}}]),R})(u.default.Embed);S.scope=u.default.Scope.BLOCK_BLOT;var T=(function(C){_(R,C);function R(j){y(this,R);var A=E(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,j));return A.cache={},A}return o(R,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(u.default.Leaf).reduce(function(A,I){return I.length()===0?A:A.insert(I.value(),O(I))},new f.default).insert(`
22
+ `,O(this))),this.cache.delta}},{key:"deleteAt",value:function(A,I){a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"deleteAt",this).call(this,A,I),this.cache={}}},{key:"formatAt",value:function(A,I,$,H){I<=0||(u.default.query($,u.default.Scope.BLOCK)?A+I===this.length()&&this.format($,H):a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"formatAt",this).call(this,A,Math.min(I,this.length()-A-1),$,H),this.cache={})}},{key:"insertAt",value:function(A,I,$){if($!=null)return a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,A,I,$);if(I.length!==0){var H=I.split(`
23
+ `),G=H.shift();G.length>0&&(A<this.length()-1||this.children.tail==null?a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,Math.min(A,this.length()-1),G):this.children.tail.insertAt(this.children.tail.length(),G),this.cache={});var D=this;H.reduce(function(F,P){return D=D.split(F,!0),D.insertAt(0,P),P.length},A+G.length)}}},{key:"insertBefore",value:function(A,I){var $=this.children.head;a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertBefore",this).call(this,A,I),$ instanceof v.default&&$.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"length",this).call(this)+w),this.cache.length}},{key:"moveChildren",value:function(A,I){a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"moveChildren",this).call(this,A,I),this.cache={}}},{key:"optimize",value:function(A){a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"optimize",this).call(this,A),this.cache={}}},{key:"path",value:function(A){return a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"path",this).call(this,A,!0)}},{key:"removeChild",value:function(A){a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"removeChild",this).call(this,A),this.cache={}}},{key:"split",value:function(A){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(I&&(A===0||A>=this.length()-w)){var $=this.clone();return A===0?(this.parent.insertBefore($,this),this):(this.parent.insertBefore($,this.next),$)}else{var H=a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"split",this).call(this,A,I);return this.cache={},H}}}]),R})(u.default.Block);T.blotName="block",T.tagName="P",T.defaultChild="break",T.allowedChildren=[p.default,u.default.Embed,m.default];function O(C){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C==null||(typeof C.formats=="function"&&(R=(0,c.default)(R,C.formats())),C.parent==null||C.parent.blotName=="scroll"||C.parent.statics.scope!==C.statics.scope)?R:O(C.parent,R)}n.bubbleFormats=O,n.BlockEmbed=S,n.default=T}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.overload=n.expandConfig=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},a=(function(){function D(F,P){var L=[],B=!0,X=!1,W=void 0;try{for(var q=F[Symbol.iterator](),N;!(B=(N=q.next()).done)&&(L.push(N.value),!(P&&L.length===P));B=!0);}catch(V){X=!0,W=V}finally{try{!B&&q.return&&q.return()}finally{if(X)throw W}}return L}return function(F,P){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return D(F,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function D(F,P){for(var L=0;L<P.length;L++){var B=P[L];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(F,B.key,B)}}return function(F,P,L){return P&&D(F.prototype,P),L&&D(F,L),F}})();i(50);var c=i(2),d=O(c),f=i(14),l=O(f),u=i(8),h=O(u),v=i(9),b=O(v),p=i(0),g=O(p),m=i(15),x=O(m),y=i(3),E=O(y),_=i(10),w=O(_),S=i(34),T=O(S);function O(D){return D&&D.__esModule?D:{default:D}}function C(D,F,P){return F in D?Object.defineProperty(D,F,{value:P,enumerable:!0,configurable:!0,writable:!0}):D[F]=P,D}function R(D,F){if(!(D instanceof F))throw new TypeError("Cannot call a class as a function")}var j=(0,w.default)("quill"),A=(function(){s(D,null,[{key:"debug",value:function(P){P===!0&&(P="log"),w.default.level(P)}},{key:"find",value:function(P){return P.__quill||g.default.find(P)}},{key:"import",value:function(P){return this.imports[P]==null&&j.error("Cannot import "+P+". Are you sure it was registered?"),this.imports[P]}},{key:"register",value:function(P,L){var B=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof P!="string"){var W=P.attrName||P.blotName;typeof W=="string"?this.register("formats/"+W,P,L):Object.keys(P).forEach(function(q){B.register(q,P[q],L)})}else this.imports[P]!=null&&!X&&j.warn("Overwriting "+P+" with",L),this.imports[P]=L,(P.startsWith("blots/")||P.startsWith("formats/"))&&L.blotName!=="abstract"?g.default.register(L):P.startsWith("modules")&&typeof L.register=="function"&&L.register()}}]);function D(F){var P=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(R(this,D),this.options=I(F,L),this.container=this.options.container,this.container==null)return j.error("Invalid Quill container",F);this.options.debug&&D.debug(this.options.debug);var B=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=g.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new x.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,function(W){W===h.default.events.TEXT_CHANGE&&P.root.classList.toggle("ql-blank",P.editor.isBlank())}),this.emitter.on(h.default.events.SCROLL_UPDATE,function(W,q){var N=P.selection.lastRange,V=N&&N.length===0?N.index:void 0;$.call(P,function(){return P.editor.update(null,q,V)},W)});var X=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+B+"<p><br></p></div>");this.setContents(X),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return s(D,[{key:"addContainer",value:function(P){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof P=="string"){var B=P;P=document.createElement("div"),P.classList.add(B)}return this.container.insertBefore(P,L),P}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(P,L,B){var X=this,W=H(P,L,B),q=a(W,4);return P=q[0],L=q[1],B=q[3],$.call(this,function(){return X.editor.deleteText(P,L)},B,P,-1*L)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(P),this.container.classList.toggle("ql-disabled",!P)}},{key:"focus",value:function(){var P=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=P,this.scrollIntoView()}},{key:"format",value:function(P,L){var B=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;return $.call(this,function(){var W=B.getSelection(!0),q=new d.default;if(W==null)return q;if(g.default.query(P,g.default.Scope.BLOCK))q=B.editor.formatLine(W.index,W.length,C({},P,L));else{if(W.length===0)return B.selection.format(P,L),q;q=B.editor.formatText(W.index,W.length,C({},P,L))}return B.setSelection(W,h.default.sources.SILENT),q},X)}},{key:"formatLine",value:function(P,L,B,X,W){var q=this,N=void 0,V=H(P,L,B,X,W),U=a(V,4);return P=U[0],L=U[1],N=U[2],W=U[3],$.call(this,function(){return q.editor.formatLine(P,L,N)},W,P,0)}},{key:"formatText",value:function(P,L,B,X,W){var q=this,N=void 0,V=H(P,L,B,X,W),U=a(V,4);return P=U[0],L=U[1],N=U[2],W=U[3],$.call(this,function(){return q.editor.formatText(P,L,N)},W,P,0)}},{key:"getBounds",value:function(P){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,B=void 0;typeof P=="number"?B=this.selection.getBounds(P,L):B=this.selection.getBounds(P.index,P.length);var X=this.container.getBoundingClientRect();return{bottom:B.bottom-X.top,height:B.height,left:B.left-X.left,right:B.right-X.left,top:B.top-X.top,width:B.width}}},{key:"getContents",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-P,B=H(P,L),X=a(B,2);return P=X[0],L=X[1],this.editor.getContents(P,L)}},{key:"getFormat",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof P=="number"?this.editor.getFormat(P,L):this.editor.getFormat(P.index,P.length)}},{key:"getIndex",value:function(P){return P.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(P){return this.scroll.leaf(P)}},{key:"getLine",value:function(P){return this.scroll.line(P)}},{key:"getLines",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof P!="number"?this.scroll.lines(P.index,P.length):this.scroll.lines(P,L)}},{key:"getModule",value:function(P){return this.theme.modules[P]}},{key:"getSelection",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return P&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-P,B=H(P,L),X=a(B,2);return P=X[0],L=X[1],this.editor.getText(P,L)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(P,L,B){var X=this,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:D.sources.API;return $.call(this,function(){return X.editor.insertEmbed(P,L,B)},W,P)}},{key:"insertText",value:function(P,L,B,X,W){var q=this,N=void 0,V=H(P,0,B,X,W),U=a(V,4);return P=U[0],N=U[2],W=U[3],$.call(this,function(){return q.editor.insertText(P,L,N)},W,P,L.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(P,L,B){this.clipboard.dangerouslyPasteHTML(P,L,B)}},{key:"removeFormat",value:function(P,L,B){var X=this,W=H(P,L,B),q=a(W,4);return P=q[0],L=q[1],B=q[3],$.call(this,function(){return X.editor.removeFormat(P,L)},B,P)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(P){var L=this,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return $.call(this,function(){P=new d.default(P);var X=L.getLength(),W=L.editor.deleteText(0,X),q=L.editor.applyDelta(P),N=q.ops[q.ops.length-1];N!=null&&typeof N.insert=="string"&&N.insert[N.insert.length-1]===`
24
+ `&&(L.editor.deleteText(L.getLength()-1,1),q.delete(1));var V=W.compose(q);return V},B)}},{key:"setSelection",value:function(P,L,B){if(P==null)this.selection.setRange(null,L||D.sources.API);else{var X=H(P,L,B),W=a(X,4);P=W[0],L=W[1],B=W[3],this.selection.setRange(new m.Range(P,L),B),B!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(P){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API,B=new d.default().insert(P);return this.setContents(B,L)}},{key:"update",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.default.sources.USER,L=this.scroll.update(P);return this.selection.update(P),L}},{key:"updateContents",value:function(P){var L=this,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return $.call(this,function(){return P=new d.default(P),L.editor.applyDelta(P,B)},B,!0)}}]),D})();A.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},A.events=h.default.events,A.sources=h.default.sources,A.version="1.3.7",A.imports={delta:d.default,parchment:g.default,"core/module":b.default,"core/theme":T.default};function I(D,F){if(F=(0,E.default)(!0,{container:D,modules:{clipboard:!0,keyboard:!0,history:!0}},F),!F.theme||F.theme===A.DEFAULTS.theme)F.theme=T.default;else if(F.theme=A.import("themes/"+F.theme),F.theme==null)throw new Error("Invalid theme "+F.theme+". Did you register it?");var P=(0,E.default)(!0,{},F.theme.DEFAULTS);[P,F].forEach(function(X){X.modules=X.modules||{},Object.keys(X.modules).forEach(function(W){X.modules[W]===!0&&(X.modules[W]={})})});var L=Object.keys(P.modules).concat(Object.keys(F.modules)),B=L.reduce(function(X,W){var q=A.import("modules/"+W);return q==null?j.error("Cannot load "+W+" module. Are you sure you registered it?"):X[W]=q.DEFAULTS||{},X},{});return F.modules!=null&&F.modules.toolbar&&F.modules.toolbar.constructor!==Object&&(F.modules.toolbar={container:F.modules.toolbar}),F=(0,E.default)(!0,{},A.DEFAULTS,{modules:B},P,F),["bounds","container","scrollingContainer"].forEach(function(X){typeof F[X]=="string"&&(F[X]=document.querySelector(F[X]))}),F.modules=Object.keys(F.modules).reduce(function(X,W){return F.modules[W]&&(X[W]=F.modules[W]),X},{}),F}function $(D,F,P,L){if(this.options.strict&&!this.isEnabled()&&F===h.default.sources.USER)return new d.default;var B=P==null?null:this.getSelection(),X=this.editor.delta,W=D();if(B!=null&&(P===!0&&(P=B.index),L==null?B=G(B,W,F):L!==0&&(B=G(B,P,L,F)),this.setSelection(B,h.default.sources.SILENT)),W.length()>0){var q,N=[h.default.events.TEXT_CHANGE,W,X,F];if((q=this.emitter).emit.apply(q,[h.default.events.EDITOR_CHANGE].concat(N)),F!==h.default.sources.SILENT){var V;(V=this.emitter).emit.apply(V,N)}}return W}function H(D,F,P,L,B){var X={};return typeof D.index=="number"&&typeof D.length=="number"?typeof F!="number"?(B=L,L=P,P=F,F=D.length,D=D.index):(F=D.length,D=D.index):typeof F!="number"&&(B=L,L=P,P=F,F=0),(typeof P>"u"?"undefined":o(P))==="object"?(X=P,B=L):typeof P=="string"&&(L!=null?X[P]=L:B=P),B=B||h.default.sources.API,[D,F,X,B]}function G(D,F,P,L){if(D==null)return null;var B=void 0,X=void 0;if(F instanceof d.default){var W=[D.index,D.index+D.length].map(function(U){return F.transformPosition(U,L!==h.default.sources.USER)}),q=a(W,2);B=q[0],X=q[1]}else{var N=[D.index,D.index+D.length].map(function(U){return U<F||U===F&&L===h.default.sources.USER?U:P>=0?U+P:Math.max(F,U+P)}),V=a(N,2);B=V[0],X=V[1]}return new m.Range(B,X-B)}n.expandConfig=I,n.overload=H,n.default=A}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function p(g,m){for(var x=0;x<m.length;x++){var y=m[x];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,m,x){return m&&p(g.prototype,m),x&&p(g,x),g}})(),a=function p(g,m,x){g===null&&(g=Function.prototype);var y=Object.getOwnPropertyDescriptor(g,m);if(y===void 0){var E=Object.getPrototypeOf(g);return E===null?void 0:p(E,m,x)}else{if("value"in y)return y.value;var _=y.get;return _===void 0?void 0:_.call(x)}},s=i(7),c=l(s),d=i(0),f=l(d);function l(p){return p&&p.__esModule?p:{default:p}}function u(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function h(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function v(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var b=(function(p){v(g,p);function g(){return u(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,[{key:"formatAt",value:function(x,y,E,_){if(g.compare(this.statics.blotName,E)<0&&f.default.query(E,f.default.Scope.BLOT)){var w=this.isolate(x,y);_&&w.wrap(E,_)}else a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"formatAt",this).call(this,x,y,E,_)}},{key:"optimize",value:function(x){if(a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,x),this.parent instanceof g&&g.compare(this.statics.blotName,this.parent.statics.blotName)>0){var y=this.parent.isolate(this.offset(),this.length());this.moveChildren(y),y.wrap(this)}}}],[{key:"compare",value:function(x,y){var E=g.order.indexOf(x),_=g.order.indexOf(y);return E>=0||_>=0?E-_:x===y?0:x<y?-1:1}}]),g})(f.default.Inline);b.allowedChildren=[b,f.default.Embed,c.default],b.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],n.default=b}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(0),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function f(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default.Text);n.default=l}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function m(x,y){for(var E=0;E<y.length;E++){var _=y[E];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(x,_.key,_)}}return function(x,y,E){return y&&m(x.prototype,y),E&&m(x,E),x}})(),a=function m(x,y,E){x===null&&(x=Function.prototype);var _=Object.getOwnPropertyDescriptor(x,y);if(_===void 0){var w=Object.getPrototypeOf(x);return w===null?void 0:m(w,y,E)}else{if("value"in _)return _.value;var S=_.get;return S===void 0?void 0:S.call(E)}},s=i(54),c=l(s),d=i(10),f=l(d);function l(m){return m&&m.__esModule?m:{default:m}}function u(m,x){if(!(m instanceof x))throw new TypeError("Cannot call a class as a function")}function h(m,x){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:m}function v(m,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);m.prototype=Object.create(x&&x.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(m,x):m.__proto__=x)}var b=(0,f.default)("quill:events"),p=["selectionchange","mousedown","mouseup","click"];p.forEach(function(m){document.addEventListener(m,function(){for(var x=arguments.length,y=Array(x),E=0;E<x;E++)y[E]=arguments[E];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(_){if(_.__quill&&_.__quill.emitter){var w;(w=_.__quill.emitter).handleDOM.apply(w,y)}})})});var g=(function(m){v(x,m);function x(){u(this,x);var y=h(this,(x.__proto__||Object.getPrototypeOf(x)).call(this));return y.listeners={},y.on("error",b.error),y}return o(x,[{key:"emit",value:function(){b.log.apply(b,arguments),a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(E){for(var _=arguments.length,w=Array(_>1?_-1:0),S=1;S<_;S++)w[S-1]=arguments[S];(this.listeners[E.type]||[]).forEach(function(T){var O=T.node,C=T.handler;(E.target===O||O.contains(E.target))&&C.apply(void 0,[E].concat(w))})}},{key:"listenDOM",value:function(E,_,w){this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push({node:_,handler:w})}}]),x})(c.default);g.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},g.sources={API:"api",SILENT:"silent",USER:"user"},n.default=g}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});function o(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")}var a=function s(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,s),this.quill=c,this.options=d};a.DEFAULTS={},n.default=a}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=["error","warn","log","info"],a="warn";function s(d){if(o.indexOf(d)<=o.indexOf(a)){for(var f,l=arguments.length,u=Array(l>1?l-1:0),h=1;h<l;h++)u[h-1]=arguments[h];(f=console)[d].apply(f,u)}}function c(d){return o.reduce(function(f,l){return f[l]=s.bind(console,l,d),f},{})}s.level=c.level=function(d){a=d},n.default=c}),(function(t,n,i){var o=Array.prototype.slice,a=i(52),s=i(53),c=t.exports=function(u,h,v){return v||(v={}),u===h?!0:u instanceof Date&&h instanceof Date?u.getTime()===h.getTime():!u||!h||typeof u!="object"&&typeof h!="object"?v.strict?u===h:u==h:l(u,h,v)};function d(u){return u==null}function f(u){return!(!u||typeof u!="object"||typeof u.length!="number"||typeof u.copy!="function"||typeof u.slice!="function"||u.length>0&&typeof u[0]!="number")}function l(u,h,v){var b,p;if(d(u)||d(h)||u.prototype!==h.prototype)return!1;if(s(u))return s(h)?(u=o.call(u),h=o.call(h),c(u,h,v)):!1;if(f(u)){if(!f(h)||u.length!==h.length)return!1;for(b=0;b<u.length;b++)if(u[b]!==h[b])return!1;return!0}try{var g=a(u),m=a(h)}catch{return!1}if(g.length!=m.length)return!1;for(g.sort(),m.sort(),b=g.length-1;b>=0;b--)if(g[b]!=m[b])return!1;for(b=g.length-1;b>=0;b--)if(p=g[b],!c(u[p],h[p],v))return!1;return typeof u==typeof h}}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(1),a=(function(){function s(c,d,f){f===void 0&&(f={}),this.attrName=c,this.keyName=d;var l=o.Scope.TYPE&o.Scope.ATTRIBUTE;f.scope!=null?this.scope=f.scope&o.Scope.LEVEL|l:this.scope=o.Scope.ATTRIBUTE,f.whitelist!=null&&(this.whitelist=f.whitelist)}return s.keys=function(c){return[].map.call(c.attributes,function(d){return d.name})},s.prototype.add=function(c,d){return this.canAdd(c,d)?(c.setAttribute(this.keyName,d),!0):!1},s.prototype.canAdd=function(c,d){var f=o.query(c,o.Scope.BLOT&(this.scope|o.Scope.TYPE));return f==null?!1:this.whitelist==null?!0:typeof d=="string"?this.whitelist.indexOf(d.replace(/["']/g,""))>-1:this.whitelist.indexOf(d)>-1},s.prototype.remove=function(c){c.removeAttribute(this.keyName)},s.prototype.value=function(c){var d=c.getAttribute(this.keyName);return this.canAdd(c,d)&&d?d:""},s})();n.default=a}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Code=void 0;var o=(function(){function S(T,O){var C=[],R=!0,j=!1,A=void 0;try{for(var I=T[Symbol.iterator](),$;!(R=($=I.next()).done)&&(C.push($.value),!(O&&C.length===O));R=!0);}catch(H){j=!0,A=H}finally{try{!R&&I.return&&I.return()}finally{if(j)throw A}}return C}return function(T,O){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return S(T,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function S(T,O){for(var C=0;C<O.length;C++){var R=O[C];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(T,R.key,R)}}return function(T,O,C){return O&&S(T.prototype,O),C&&S(T,C),T}})(),s=function S(T,O,C){T===null&&(T=Function.prototype);var R=Object.getOwnPropertyDescriptor(T,O);if(R===void 0){var j=Object.getPrototypeOf(T);return j===null?void 0:S(j,O,C)}else{if("value"in R)return R.value;var A=R.get;return A===void 0?void 0:A.call(C)}},c=i(2),d=m(c),f=i(0),l=m(f),u=i(4),h=m(u),v=i(6),b=m(v),p=i(7),g=m(p);function m(S){return S&&S.__esModule?S:{default:S}}function x(S,T){if(!(S instanceof T))throw new TypeError("Cannot call a class as a function")}function y(S,T){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:S}function E(S,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);S.prototype=Object.create(T&&T.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(S,T):S.__proto__=T)}var _=(function(S){E(T,S);function T(){return x(this,T),y(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return T})(b.default);_.blotName="code",_.tagName="CODE";var w=(function(S){E(T,S);function T(){return x(this,T),y(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return a(T,[{key:"delta",value:function(){var C=this,R=this.domNode.textContent;return R.endsWith(`
25
+ `)&&(R=R.slice(0,-1)),R.split(`
26
+ `).reduce(function(j,A){return j.insert(A).insert(`
27
+ `,C.formats())},new d.default)}},{key:"format",value:function(C,R){if(!(C===this.statics.blotName&&R)){var j=this.descendant(g.default,this.length()-1),A=o(j,1),I=A[0];I?.deleteAt(I.length()-1,1),s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"format",this).call(this,C,R)}}},{key:"formatAt",value:function(C,R,j,A){if(R!==0&&!(l.default.query(j,l.default.Scope.BLOCK)==null||j===this.statics.blotName&&A===this.statics.formats(this.domNode))){var I=this.newlineIndex(C);if(!(I<0||I>=C+R)){var $=this.newlineIndex(C,!0)+1,H=I-$+1,G=this.isolate($,H),D=G.next;G.format(j,A),D instanceof T&&D.formatAt(0,C-$+R-H,j,A)}}}},{key:"insertAt",value:function(C,R,j){if(j==null){var A=this.descendant(g.default,C),I=o(A,2),$=I[0],H=I[1];$.insertAt(H,R)}}},{key:"length",value:function(){var C=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
28
+ `)?C:C+1}},{key:"newlineIndex",value:function(C){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R)return this.domNode.textContent.slice(0,C).lastIndexOf(`
29
+ `);var j=this.domNode.textContent.slice(C).indexOf(`
30
+ `);return j>-1?C+j:-1}},{key:"optimize",value:function(C){this.domNode.textContent.endsWith(`
31
+ `)||this.appendChild(l.default.create("text",`
32
+ `)),s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"optimize",this).call(this,C);var R=this.next;R!=null&&R.prev===this&&R.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===R.statics.formats(R.domNode)&&(R.optimize(C),R.moveChildren(this),R.remove())}},{key:"replace",value:function(C){s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replace",this).call(this,C),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(R){var j=l.default.find(R);j==null?R.parentNode.removeChild(R):j instanceof l.default.Embed?j.remove():j.unwrap()})}}],[{key:"create",value:function(C){var R=s(T.__proto__||Object.getPrototypeOf(T),"create",this).call(this,C);return R.setAttribute("spellcheck",!1),R}},{key:"formats",value:function(){return!0}}]),T})(h.default);w.blotName="code-block",w.tagName="PRE",w.TAB=" ",n.Code=_,n.default=w}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},a=(function(){function D(F,P){var L=[],B=!0,X=!1,W=void 0;try{for(var q=F[Symbol.iterator](),N;!(B=(N=q.next()).done)&&(L.push(N.value),!(P&&L.length===P));B=!0);}catch(V){X=!0,W=V}finally{try{!B&&q.return&&q.return()}finally{if(X)throw W}}return L}return function(F,P){if(Array.isArray(F))return F;if(Symbol.iterator in Object(F))return D(F,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function D(F,P){for(var L=0;L<P.length;L++){var B=P[L];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(F,B.key,B)}}return function(F,P,L){return P&&D(F.prototype,P),L&&D(F,L),F}})(),c=i(2),d=R(c),f=i(20),l=R(f),u=i(0),h=R(u),v=i(13),b=R(v),p=i(24),g=R(p),m=i(4),x=R(m),y=i(16),E=R(y),_=i(21),w=R(_),S=i(11),T=R(S),O=i(3),C=R(O);function R(D){return D&&D.__esModule?D:{default:D}}function j(D,F,P){return F in D?Object.defineProperty(D,F,{value:P,enumerable:!0,configurable:!0,writable:!0}):D[F]=P,D}function A(D,F){if(!(D instanceof F))throw new TypeError("Cannot call a class as a function")}var I=/^[ -~]*$/,$=(function(){function D(F){A(this,D),this.scroll=F,this.delta=this.getDelta()}return s(D,[{key:"applyDelta",value:function(P){var L=this,B=!1;this.scroll.update();var X=this.scroll.length();return this.scroll.batchStart(),P=G(P),P.reduce(function(W,q){var N=q.retain||q.delete||q.insert.length||1,V=q.attributes||{};if(q.insert!=null){if(typeof q.insert=="string"){var U=q.insert;U.endsWith(`
33
+ `)&&B&&(B=!1,U=U.slice(0,-1)),W>=X&&!U.endsWith(`
34
+ `)&&(B=!0),L.scroll.insertAt(W,U);var K=L.scroll.line(W),J=a(K,2),ne=J[0],ce=J[1],re=(0,C.default)({},(0,m.bubbleFormats)(ne));if(ne instanceof x.default){var de=ne.descendant(h.default.Leaf,ce),oe=a(de,1),se=oe[0];re=(0,C.default)(re,(0,m.bubbleFormats)(se))}V=l.default.attributes.diff(re,V)||{}}else if(o(q.insert)==="object"){var Q=Object.keys(q.insert)[0];if(Q==null)return W;L.scroll.insertAt(W,Q,q.insert[Q])}X+=N}return Object.keys(V).forEach(function(ee){L.scroll.formatAt(W,N,ee,V[ee])}),W+N},0),P.reduce(function(W,q){return typeof q.delete=="number"?(L.scroll.deleteAt(W,q.delete),W):W+(q.retain||q.insert.length||1)},0),this.scroll.batchEnd(),this.update(P)}},{key:"deleteText",value:function(P,L){return this.scroll.deleteAt(P,L),this.update(new d.default().retain(P).delete(L))}},{key:"formatLine",value:function(P,L){var B=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(X).forEach(function(W){if(!(B.scroll.whitelist!=null&&!B.scroll.whitelist[W])){var q=B.scroll.lines(P,Math.max(L,1)),N=L;q.forEach(function(V){var U=V.length();if(!(V instanceof b.default))V.format(W,X[W]);else{var K=P-V.offset(B.scroll),J=V.newlineIndex(K+N)-K+1;V.formatAt(K,J,W,X[W])}N-=U})}}),this.scroll.optimize(),this.update(new d.default().retain(P).retain(L,(0,w.default)(X)))}},{key:"formatText",value:function(P,L){var B=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(X).forEach(function(W){B.scroll.formatAt(P,L,W,X[W])}),this.update(new d.default().retain(P).retain(L,(0,w.default)(X)))}},{key:"getContents",value:function(P,L){return this.delta.slice(P,P+L)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(P,L){return P.concat(L.delta())},new d.default)}},{key:"getFormat",value:function(P){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,B=[],X=[];L===0?this.scroll.path(P).forEach(function(q){var N=a(q,1),V=N[0];V instanceof x.default?B.push(V):V instanceof h.default.Leaf&&X.push(V)}):(B=this.scroll.lines(P,L),X=this.scroll.descendants(h.default.Leaf,P,L));var W=[B,X].map(function(q){if(q.length===0)return{};for(var N=(0,m.bubbleFormats)(q.shift());Object.keys(N).length>0;){var V=q.shift();if(V==null)return N;N=H((0,m.bubbleFormats)(V),N)}return N});return C.default.apply(C.default,W)}},{key:"getText",value:function(P,L){return this.getContents(P,L).filter(function(B){return typeof B.insert=="string"}).map(function(B){return B.insert}).join("")}},{key:"insertEmbed",value:function(P,L,B){return this.scroll.insertAt(P,L,B),this.update(new d.default().retain(P).insert(j({},L,B)))}},{key:"insertText",value:function(P,L){var B=this,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return L=L.replace(/\r\n/g,`
35
+ `).replace(/\r/g,`
36
+ `),this.scroll.insertAt(P,L),Object.keys(X).forEach(function(W){B.scroll.formatAt(P,L.length,W,X[W])}),this.update(new d.default().retain(P).insert(L,(0,w.default)(X)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var P=this.scroll.children.head;return P.statics.blotName!==x.default.blotName||P.children.length>1?!1:P.children.head instanceof E.default}},{key:"removeFormat",value:function(P,L){var B=this.getText(P,L),X=this.scroll.line(P+L),W=a(X,2),q=W[0],N=W[1],V=0,U=new d.default;q!=null&&(q instanceof b.default?V=q.newlineIndex(N)-N+1:V=q.length()-N,U=q.delta().slice(N,N+V-1).insert(`
37
+ `));var K=this.getContents(P,L+V),J=K.diff(new d.default().insert(B).concat(U)),ne=new d.default().retain(P).concat(J);return this.applyDelta(ne)}},{key:"update",value:function(P){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,X=this.delta;if(L.length===1&&L[0].type==="characterData"&&L[0].target.data.match(I)&&h.default.find(L[0].target)){var W=h.default.find(L[0].target),q=(0,m.bubbleFormats)(W),N=W.offset(this.scroll),V=L[0].oldValue.replace(g.default.CONTENTS,""),U=new d.default().insert(V),K=new d.default().insert(W.value()),J=new d.default().retain(N).concat(U.diff(K,B));P=J.reduce(function(ne,ce){return ce.insert?ne.insert(ce.insert,q):ne.push(ce)},new d.default),this.delta=X.compose(P)}else this.delta=this.getDelta(),(!P||!(0,T.default)(X.compose(P),this.delta))&&(P=X.diff(this.delta,B));return P}}]),D})();function H(D,F){return Object.keys(F).reduce(function(P,L){return D[L]==null||(F[L]===D[L]?P[L]=F[L]:Array.isArray(F[L])?F[L].indexOf(D[L])<0&&(P[L]=F[L].concat([D[L]])):P[L]=[F[L],D[L]]),P},{})}function G(D){return D.reduce(function(F,P){if(P.insert===1){var L=(0,w.default)(P.attributes);return delete L.image,F.insert({image:P.attributes.image},L)}if(P.attributes!=null&&(P.attributes.list===!0||P.attributes.bullet===!0)&&(P=(0,w.default)(P),P.attributes.list?P.attributes.list="ordered":(P.attributes.list="bullet",delete P.attributes.bullet)),typeof P.insert=="string"){var B=P.insert.replace(/\r\n/g,`
38
+ `).replace(/\r/g,`
39
+ `);return F.insert(B,P.attributes)}return F.push(P)},new d.default)}n.default=$}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Range=void 0;var o=(function(){function S(T,O){var C=[],R=!0,j=!1,A=void 0;try{for(var I=T[Symbol.iterator](),$;!(R=($=I.next()).done)&&(C.push($.value),!(O&&C.length===O));R=!0);}catch(H){j=!0,A=H}finally{try{!R&&I.return&&I.return()}finally{if(j)throw A}}return C}return function(T,O){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return S(T,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function S(T,O){for(var C=0;C<O.length;C++){var R=O[C];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(T,R.key,R)}}return function(T,O,C){return O&&S(T.prototype,O),C&&S(T,C),T}})(),s=i(0),c=g(s),d=i(21),f=g(d),l=i(11),u=g(l),h=i(8),v=g(h),b=i(10),p=g(b);function g(S){return S&&S.__esModule?S:{default:S}}function m(S){if(Array.isArray(S)){for(var T=0,O=Array(S.length);T<S.length;T++)O[T]=S[T];return O}else return Array.from(S)}function x(S,T){if(!(S instanceof T))throw new TypeError("Cannot call a class as a function")}var y=(0,p.default)("quill:selection"),E=function S(T){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;x(this,S),this.index=T,this.length=O},_=(function(){function S(T,O){var C=this;x(this,S),this.emitter=O,this.scroll=T,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new E(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){C.mouseDown||setTimeout(C.update.bind(C,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(R,j){R===v.default.events.TEXT_CHANGE&&j.length()>0&&C.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(C.hasFocus()){var R=C.getNativeRange();R!=null&&R.start.node!==C.cursor.textNode&&C.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{C.setNativeRange(R.start.node,R.start.offset,R.end.node,R.end.offset)}catch{}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(R,j){if(j.range){var A=j.range,I=A.startNode,$=A.startOffset,H=A.endNode,G=A.endOffset;C.setNativeRange(I,$,H,G)}}),this.update(v.default.sources.SILENT)}return a(S,[{key:"handleComposition",value:function(){var O=this;this.root.addEventListener("compositionstart",function(){O.composing=!0}),this.root.addEventListener("compositionend",function(){if(O.composing=!1,O.cursor.parent){var C=O.cursor.restore();if(!C)return;setTimeout(function(){O.setNativeRange(C.startNode,C.startOffset,C.endNode,C.endOffset)},1)}})}},{key:"handleDragging",value:function(){var O=this;this.emitter.listenDOM("mousedown",document.body,function(){O.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){O.mouseDown=!1,O.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(O,C){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[O])){this.scroll.update();var R=this.getNativeRange();if(!(R==null||!R.native.collapsed||c.default.query(O,c.default.Scope.BLOCK))){if(R.start.node!==this.cursor.textNode){var j=c.default.find(R.start.node,!1);if(j==null)return;if(j instanceof c.default.Leaf){var A=j.split(R.start.offset);j.parent.insertBefore(this.cursor,A)}else j.insertBefore(this.cursor,R.start.node);this.cursor.attach()}this.cursor.format(O,C),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(O){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,R=this.scroll.length();O=Math.min(O,R-1),C=Math.min(O+C,R-1)-O;var j=void 0,A=this.scroll.leaf(O),I=o(A,2),$=I[0],H=I[1];if($==null)return null;var G=$.position(H,!0),D=o(G,2);j=D[0],H=D[1];var F=document.createRange();if(C>0){F.setStart(j,H);var P=this.scroll.leaf(O+C),L=o(P,2);if($=L[0],H=L[1],$==null)return null;var B=$.position(H,!0),X=o(B,2);return j=X[0],H=X[1],F.setEnd(j,H),F.getBoundingClientRect()}else{var W="left",q=void 0;return j instanceof Text?(H<j.data.length?(F.setStart(j,H),F.setEnd(j,H+1)):(F.setStart(j,H-1),F.setEnd(j,H),W="right"),q=F.getBoundingClientRect()):(q=$.domNode.getBoundingClientRect(),H>0&&(W="right")),{bottom:q.top+q.height,height:q.height,left:q[W],right:q[W],top:q.top,width:0}}}},{key:"getNativeRange",value:function(){var O=document.getSelection();if(O==null||O.rangeCount<=0)return null;var C=O.getRangeAt(0);if(C==null)return null;var R=this.normalizeNative(C);return y.info("getNativeRange",R),R}},{key:"getRange",value:function(){var O=this.getNativeRange();if(O==null)return[null,null];var C=this.normalizedToRange(O);return[C,O]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(O){var C=this,R=[[O.start.node,O.start.offset]];O.native.collapsed||R.push([O.end.node,O.end.offset]);var j=R.map(function($){var H=o($,2),G=H[0],D=H[1],F=c.default.find(G,!0),P=F.offset(C.scroll);return D===0?P:F instanceof c.default.Container?P+F.length():P+F.index(G,D)}),A=Math.min(Math.max.apply(Math,m(j)),this.scroll.length()-1),I=Math.min.apply(Math,[A].concat(m(j)));return new E(I,A-I)}},{key:"normalizeNative",value:function(O){if(!w(this.root,O.startContainer)||!O.collapsed&&!w(this.root,O.endContainer))return null;var C={start:{node:O.startContainer,offset:O.startOffset},end:{node:O.endContainer,offset:O.endOffset},native:O};return[C.start,C.end].forEach(function(R){for(var j=R.node,A=R.offset;!(j instanceof Text)&&j.childNodes.length>0;)if(j.childNodes.length>A)j=j.childNodes[A],A=0;else if(j.childNodes.length===A)j=j.lastChild,A=j instanceof Text?j.data.length:j.childNodes.length+1;else break;R.node=j,R.offset=A}),C}},{key:"rangeToNative",value:function(O){var C=this,R=O.collapsed?[O.index]:[O.index,O.index+O.length],j=[],A=this.scroll.length();return R.forEach(function(I,$){I=Math.min(A-1,I);var H=void 0,G=C.scroll.leaf(I),D=o(G,2),F=D[0],P=D[1],L=F.position(P,$!==0),B=o(L,2);H=B[0],P=B[1],j.push(H,P)}),j.length<2&&(j=j.concat(j)),j}},{key:"scrollIntoView",value:function(O){var C=this.lastRange;if(C!=null){var R=this.getBounds(C.index,C.length);if(R!=null){var j=this.scroll.length()-1,A=this.scroll.line(Math.min(C.index,j)),I=o(A,1),$=I[0],H=$;if(C.length>0){var G=this.scroll.line(Math.min(C.index+C.length,j)),D=o(G,1);H=D[0]}if(!($==null||H==null)){var F=O.getBoundingClientRect();R.top<F.top?O.scrollTop-=F.top-R.top:R.bottom>F.bottom&&(O.scrollTop+=R.bottom-F.bottom)}}}}},{key:"setNativeRange",value:function(O,C){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:O,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:C,A=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(y.info("setNativeRange",O,C,R,j),!(O!=null&&(this.root.parentNode==null||O.parentNode==null||R.parentNode==null))){var I=document.getSelection();if(I!=null)if(O!=null){this.hasFocus()||this.root.focus();var $=(this.getNativeRange()||{}).native;if($==null||A||O!==$.startContainer||C!==$.startOffset||R!==$.endContainer||j!==$.endOffset){O.tagName=="BR"&&(C=[].indexOf.call(O.parentNode.childNodes,O),O=O.parentNode),R.tagName=="BR"&&(j=[].indexOf.call(R.parentNode.childNodes,R),R=R.parentNode);var H=document.createRange();H.setStart(O,C),H.setEnd(R,j),I.removeAllRanges(),I.addRange(H)}}else I.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(O){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;if(typeof C=="string"&&(R=C,C=!1),y.info("setRange",O),O!=null){var j=this.rangeToNative(O);this.setNativeRange.apply(this,m(j).concat([C]))}else this.setNativeRange(null);this.update(R)}},{key:"update",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,C=this.lastRange,R=this.getRange(),j=o(R,2),A=j[0],I=j[1];if(this.lastRange=A,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,u.default)(C,this.lastRange)){var $;!this.composing&&I!=null&&I.native.collapsed&&I.start.node!==this.cursor.textNode&&this.cursor.restore();var H=[v.default.events.SELECTION_CHANGE,(0,f.default)(this.lastRange),(0,f.default)(C),O];if(($=this.emitter).emit.apply($,[v.default.events.EDITOR_CHANGE].concat(H)),O!==v.default.sources.SILENT){var G;(G=this.emitter).emit.apply(G,H)}}}}]),S})();function w(S,T){try{T.parentNode}catch{return!1}return T instanceof Text&&(T=T.parentNode),S.contains(T)}n.Range=E,n.default=_}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function v(b,p){for(var g=0;g<p.length;g++){var m=p[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(b,m.key,m)}}return function(b,p,g){return p&&v(b.prototype,p),g&&v(b,g),b}})(),a=function v(b,p,g){b===null&&(b=Function.prototype);var m=Object.getOwnPropertyDescriptor(b,p);if(m===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:v(x,p,g)}else{if("value"in m)return m.value;var y=m.get;return y===void 0?void 0:y.call(g)}},s=i(0),c=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function l(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function u(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var h=(function(v){u(b,v);function b(){return f(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"insertInto",value:function(g,m){g.children.length===0?a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertInto",this).call(this,g,m):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),b})(c.default.Embed);h.blotName="break",h.tagName="BR",n.default=h}),(function(t,n,i){var o=this&&this.__extends||(function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var v in h)h.hasOwnProperty(v)&&(u[v]=h[v])};return function(u,h){l(u,h);function v(){this.constructor=u}u.prototype=h===null?Object.create(h):(v.prototype=h.prototype,new v)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=i(44),s=i(30),c=i(1),d=(function(l){o(u,l);function u(h){var v=l.call(this,h)||this;return v.build(),v}return u.prototype.appendChild=function(h){this.insertBefore(h)},u.prototype.attach=function(){l.prototype.attach.call(this),this.children.forEach(function(h){h.attach()})},u.prototype.build=function(){var h=this;this.children=new a.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(v){try{var b=f(v);h.insertBefore(b,h.children.head||void 0)}catch(p){if(p instanceof c.ParchmentError)return;throw p}})},u.prototype.deleteAt=function(h,v){if(h===0&&v===this.length())return this.remove();this.children.forEachAt(h,v,function(b,p,g){b.deleteAt(p,g)})},u.prototype.descendant=function(h,v){var b=this.children.find(v),p=b[0],g=b[1];return h.blotName==null&&h(p)||h.blotName!=null&&p instanceof h?[p,g]:p instanceof u?p.descendant(h,g):[null,-1]},u.prototype.descendants=function(h,v,b){v===void 0&&(v=0),b===void 0&&(b=Number.MAX_VALUE);var p=[],g=b;return this.children.forEachAt(v,b,function(m,x,y){(h.blotName==null&&h(m)||h.blotName!=null&&m instanceof h)&&p.push(m),m instanceof u&&(p=p.concat(m.descendants(h,x,g))),g-=y}),p},u.prototype.detach=function(){this.children.forEach(function(h){h.detach()}),l.prototype.detach.call(this)},u.prototype.formatAt=function(h,v,b,p){this.children.forEachAt(h,v,function(g,m,x){g.formatAt(m,x,b,p)})},u.prototype.insertAt=function(h,v,b){var p=this.children.find(h),g=p[0],m=p[1];if(g)g.insertAt(m,v,b);else{var x=b==null?c.create("text",v):c.create(v,b);this.appendChild(x)}},u.prototype.insertBefore=function(h,v){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(b){return h instanceof b}))throw new c.ParchmentError("Cannot insert "+h.statics.blotName+" into "+this.statics.blotName);h.insertInto(this,v)},u.prototype.length=function(){return this.children.reduce(function(h,v){return h+v.length()},0)},u.prototype.moveChildren=function(h,v){this.children.forEach(function(b){h.insertBefore(b,v)})},u.prototype.optimize=function(h){if(l.prototype.optimize.call(this,h),this.children.length===0)if(this.statics.defaultChild!=null){var v=c.create(this.statics.defaultChild);this.appendChild(v),v.optimize(h)}else this.remove()},u.prototype.path=function(h,v){v===void 0&&(v=!1);var b=this.children.find(h,v),p=b[0],g=b[1],m=[[this,h]];return p instanceof u?m.concat(p.path(g,v)):(p!=null&&m.push([p,g]),m)},u.prototype.removeChild=function(h){this.children.remove(h)},u.prototype.replace=function(h){h instanceof u&&h.moveChildren(this),l.prototype.replace.call(this,h)},u.prototype.split=function(h,v){if(v===void 0&&(v=!1),!v){if(h===0)return this;if(h===this.length())return this.next}var b=this.clone();return this.parent.insertBefore(b,this.next),this.children.forEachAt(h,this.length(),function(p,g,m){p=p.split(g,v),b.appendChild(p)}),b},u.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},u.prototype.update=function(h,v){var b=this,p=[],g=[];h.forEach(function(m){m.target===b.domNode&&m.type==="childList"&&(p.push.apply(p,m.addedNodes),g.push.apply(g,m.removedNodes))}),g.forEach(function(m){if(!(m.parentNode!=null&&m.tagName!=="IFRAME"&&document.body.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var x=c.find(m);x!=null&&(x.domNode.parentNode==null||x.domNode.parentNode===b.domNode)&&x.detach()}}),p.filter(function(m){return m.parentNode==b.domNode}).sort(function(m,x){return m===x?0:m.compareDocumentPosition(x)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(m){var x=null;m.nextSibling!=null&&(x=c.find(m.nextSibling));var y=f(m);(y.next!=x||y.next==null)&&(y.parent!=null&&y.parent.removeChild(b),b.insertBefore(y,x||void 0))})},u})(s.default);function f(l){var u=c.find(l);if(u==null)try{u=c.create(l)}catch{u=c.create(c.Scope.INLINE),[].slice.call(l.childNodes).forEach(function(v){u.domNode.appendChild(v)}),l.parentNode&&l.parentNode.replaceChild(u.domNode,l),u.attach()}return u}n.default=d}),(function(t,n,i){var o=this&&this.__extends||(function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var v in h)h.hasOwnProperty(v)&&(u[v]=h[v])};return function(u,h){l(u,h);function v(){this.constructor=u}u.prototype=h===null?Object.create(h):(v.prototype=h.prototype,new v)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=i(12),s=i(31),c=i(17),d=i(1),f=(function(l){o(u,l);function u(h){var v=l.call(this,h)||this;return v.attributes=new s.default(v.domNode),v}return u.formats=function(h){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return h.tagName.toLowerCase()},u.prototype.format=function(h,v){var b=d.query(h);b instanceof a.default?this.attributes.attribute(b,v):v&&b!=null&&(h!==this.statics.blotName||this.formats()[h]!==v)&&this.replaceWith(h,v)},u.prototype.formats=function(){var h=this.attributes.values(),v=this.statics.formats(this.domNode);return v!=null&&(h[this.statics.blotName]=v),h},u.prototype.replaceWith=function(h,v){var b=l.prototype.replaceWith.call(this,h,v);return this.attributes.copy(b),b},u.prototype.update=function(h,v){var b=this;l.prototype.update.call(this,h,v),h.some(function(p){return p.target===b.domNode&&p.type==="attributes"})&&this.attributes.build()},u.prototype.wrap=function(h,v){var b=l.prototype.wrap.call(this,h,v);return b instanceof u&&b.statics.scope===this.statics.scope&&this.attributes.move(b),b},u})(c.default);n.default=f}),(function(t,n,i){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=i(30),s=i(1),c=(function(d){o(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.value=function(l){return!0},f.prototype.index=function(l,u){return this.domNode===l||this.domNode.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(u,1):-1},f.prototype.position=function(l,u){var h=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return l>0&&(h+=1),[this.parent.domNode,h]},f.prototype.value=function(){var l;return l={},l[this.statics.blotName]=this.statics.value(this.domNode)||!0,l},f.scope=s.Scope.INLINE_BLOT,f})(a.default);n.default=c}),(function(t,n,i){var o=i(11),a=i(3),s={attributes:{compose:function(d,f,l){typeof d!="object"&&(d={}),typeof f!="object"&&(f={});var u=a(!0,{},f);l||(u=Object.keys(u).reduce(function(v,b){return u[b]!=null&&(v[b]=u[b]),v},{}));for(var h in d)d[h]!==void 0&&f[h]===void 0&&(u[h]=d[h]);return Object.keys(u).length>0?u:void 0},diff:function(d,f){typeof d!="object"&&(d={}),typeof f!="object"&&(f={});var l=Object.keys(d).concat(Object.keys(f)).reduce(function(u,h){return o(d[h],f[h])||(u[h]=f[h]===void 0?null:f[h]),u},{});return Object.keys(l).length>0?l:void 0},transform:function(d,f,l){if(typeof d!="object")return f;if(typeof f=="object"){if(!l)return f;var u=Object.keys(f).reduce(function(h,v){return d[v]===void 0&&(h[v]=f[v]),h},{});return Object.keys(u).length>0?u:void 0}}},iterator:function(d){return new c(d)},length:function(d){return typeof d.delete=="number"?d.delete:typeof d.retain=="number"?d.retain:typeof d.insert=="string"?d.insert.length:1}};function c(d){this.ops=d,this.index=0,this.offset=0}c.prototype.hasNext=function(){return this.peekLength()<1/0},c.prototype.next=function(d){d||(d=1/0);var f=this.ops[this.index];if(f){var l=this.offset,u=s.length(f);if(d>=u-l?(d=u-l,this.index+=1,this.offset=0):this.offset+=d,typeof f.delete=="number")return{delete:d};var h={};return f.attributes&&(h.attributes=f.attributes),typeof f.retain=="number"?h.retain=d:typeof f.insert=="string"?h.insert=f.insert.substr(l,d):h.insert=f.insert,h}else return{retain:1/0}},c.prototype.peek=function(){return this.ops[this.index]},c.prototype.peekLength=function(){return this.ops[this.index]?s.length(this.ops[this.index])-this.offset:1/0},c.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},c.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var d=this.offset,f=this.index,l=this.next(),u=this.ops.slice(this.index);return this.offset=d,this.index=f,[l].concat(u)}else return[]},t.exports=s}),(function(t,n){var i=(function(){function o(b,p){return p!=null&&b instanceof p}var a;try{a=Map}catch{a=function(){}}var s;try{s=Set}catch{s=function(){}}var c;try{c=Promise}catch{c=function(){}}function d(b,p,g,m,x){typeof p=="object"&&(g=p.depth,m=p.prototype,x=p.includeNonEnumerable,p=p.circular);var y=[],E=[],_=typeof Buffer<"u";typeof p>"u"&&(p=!0),typeof g>"u"&&(g=1/0);function w(S,T){if(S===null)return null;if(T===0)return S;var O,C;if(typeof S!="object")return S;if(o(S,a))O=new a;else if(o(S,s))O=new s;else if(o(S,c))O=new c(function(F,P){S.then(function(L){F(w(L,T-1))},function(L){P(w(L,T-1))})});else if(d.__isArray(S))O=[];else if(d.__isRegExp(S))O=new RegExp(S.source,v(S)),S.lastIndex&&(O.lastIndex=S.lastIndex);else if(d.__isDate(S))O=new Date(S.getTime());else{if(_&&Buffer.isBuffer(S))return Buffer.allocUnsafe?O=Buffer.allocUnsafe(S.length):O=new Buffer(S.length),S.copy(O),O;o(S,Error)?O=Object.create(S):typeof m>"u"?(C=Object.getPrototypeOf(S),O=Object.create(C)):(O=Object.create(m),C=m)}if(p){var R=y.indexOf(S);if(R!=-1)return E[R];y.push(S),E.push(O)}o(S,a)&&S.forEach(function(F,P){var L=w(P,T-1),B=w(F,T-1);O.set(L,B)}),o(S,s)&&S.forEach(function(F){var P=w(F,T-1);O.add(P)});for(var j in S){var A;C&&(A=Object.getOwnPropertyDescriptor(C,j)),!(A&&A.set==null)&&(O[j]=w(S[j],T-1))}if(Object.getOwnPropertySymbols)for(var I=Object.getOwnPropertySymbols(S),j=0;j<I.length;j++){var $=I[j],H=Object.getOwnPropertyDescriptor(S,$);H&&!H.enumerable&&!x||(O[$]=w(S[$],T-1),H.enumerable||Object.defineProperty(O,$,{enumerable:!1}))}if(x)for(var G=Object.getOwnPropertyNames(S),j=0;j<G.length;j++){var D=G[j],H=Object.getOwnPropertyDescriptor(S,D);H&&H.enumerable||(O[D]=w(S[D],T-1),Object.defineProperty(O,D,{enumerable:!1}))}return O}return w(b,g)}d.clonePrototype=function(p){if(p===null)return null;var g=function(){};return g.prototype=p,new g};function f(b){return Object.prototype.toString.call(b)}d.__objToStr=f;function l(b){return typeof b=="object"&&f(b)==="[object Date]"}d.__isDate=l;function u(b){return typeof b=="object"&&f(b)==="[object Array]"}d.__isArray=u;function h(b){return typeof b=="object"&&f(b)==="[object RegExp]"}d.__isRegExp=h;function v(b){var p="";return b.global&&(p+="g"),b.ignoreCase&&(p+="i"),b.multiline&&(p+="m"),p}return d.__getRegExpFlags=v,d})();typeof t=="object"&&t.exports&&(t.exports=i)}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function O(C,R){var j=[],A=!0,I=!1,$=void 0;try{for(var H=C[Symbol.iterator](),G;!(A=(G=H.next()).done)&&(j.push(G.value),!(R&&j.length===R));A=!0);}catch(D){I=!0,$=D}finally{try{!A&&H.return&&H.return()}finally{if(I)throw $}}return j}return function(C,R){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return O(C,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function O(C,R){for(var j=0;j<R.length;j++){var A=R[j];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(C,A.key,A)}}return function(C,R,j){return R&&O(C.prototype,R),j&&O(C,j),C}})(),s=function O(C,R,j){C===null&&(C=Function.prototype);var A=Object.getOwnPropertyDescriptor(C,R);if(A===void 0){var I=Object.getPrototypeOf(C);return I===null?void 0:O(I,R,j)}else{if("value"in A)return A.value;var $=A.get;return $===void 0?void 0:$.call(j)}},c=i(0),d=y(c),f=i(8),l=y(f),u=i(4),h=y(u),v=i(16),b=y(v),p=i(13),g=y(p),m=i(25),x=y(m);function y(O){return O&&O.__esModule?O:{default:O}}function E(O,C){if(!(O instanceof C))throw new TypeError("Cannot call a class as a function")}function _(O,C){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:O}function w(O,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);O.prototype=Object.create(C&&C.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(O,C):O.__proto__=C)}function S(O){return O instanceof h.default||O instanceof u.BlockEmbed}var T=(function(O){w(C,O);function C(R,j){E(this,C);var A=_(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,R));return A.emitter=j.emitter,Array.isArray(j.whitelist)&&(A.whitelist=j.whitelist.reduce(function(I,$){return I[$]=!0,I},{})),A.domNode.addEventListener("DOMNodeInserted",function(){}),A.optimize(),A.enable(),A}return a(C,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(j,A){var I=this.line(j),$=o(I,2),H=$[0],G=$[1],D=this.line(j+A),F=o(D,1),P=F[0];if(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"deleteAt",this).call(this,j,A),P!=null&&H!==P&&G>0){if(H instanceof u.BlockEmbed||P instanceof u.BlockEmbed){this.optimize();return}if(H instanceof g.default){var L=H.newlineIndex(H.length(),!0);if(L>-1&&(H=H.split(L+1),H===P)){this.optimize();return}}else if(P instanceof g.default){var B=P.newlineIndex(0);B>-1&&P.split(B+1)}var X=P.children.head instanceof b.default?null:P.children.head;H.moveChildren(P,X),H.remove()}this.optimize()}},{key:"enable",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",j)}},{key:"formatAt",value:function(j,A,I,$){this.whitelist!=null&&!this.whitelist[I]||(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"formatAt",this).call(this,j,A,I,$),this.optimize())}},{key:"insertAt",value:function(j,A,I){if(!(I!=null&&this.whitelist!=null&&!this.whitelist[A])){if(j>=this.length())if(I==null||d.default.query(A,d.default.Scope.BLOCK)==null){var $=d.default.create(this.statics.defaultChild);this.appendChild($),I==null&&A.endsWith(`
40
+ `)&&(A=A.slice(0,-1)),$.insertAt(0,A,I)}else{var H=d.default.create(A,I);this.appendChild(H)}else s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertAt",this).call(this,j,A,I);this.optimize()}}},{key:"insertBefore",value:function(j,A){if(j.statics.scope===d.default.Scope.INLINE_BLOT){var I=d.default.create(this.statics.defaultChild);I.appendChild(j),j=I}s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertBefore",this).call(this,j,A)}},{key:"leaf",value:function(j){return this.path(j).pop()||[null,-1]}},{key:"line",value:function(j){return j===this.length()?this.line(j-1):this.descendant(S,j)}},{key:"lines",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,I=function $(H,G,D){var F=[],P=D;return H.children.forEachAt(G,D,function(L,B,X){S(L)?F.push(L):L instanceof d.default.Container&&(F=F.concat($(L,B,P))),P-=X}),F};return I(this,j,A)}},{key:"optimize",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"optimize",this).call(this,j,A),j.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,j,A))}},{key:"path",value:function(j){return s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"path",this).call(this,j).slice(1)}},{key:"update",value:function(j){if(this.batch!==!0){var A=l.default.sources.USER;typeof j=="string"&&(A=j),Array.isArray(j)||(j=this.observer.takeRecords()),j.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,A,j),s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"update",this).call(this,j.concat([])),j.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,A,j)}}}]),C})(d.default.Scroll);T.blotName="scroll",T.className="ql-editor",T.tagName="DIV",T.defaultChild="block",T.allowedChildren=[h.default,u.BlockEmbed,x.default],n.default=T}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SHORTKEY=n.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},a=(function(){function q(N,V){var U=[],K=!0,J=!1,ne=void 0;try{for(var ce=N[Symbol.iterator](),re;!(K=(re=ce.next()).done)&&(U.push(re.value),!(V&&U.length===V));K=!0);}catch(de){J=!0,ne=de}finally{try{!K&&ce.return&&ce.return()}finally{if(J)throw ne}}return U}return function(N,V){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return q(N,V);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function q(N,V){for(var U=0;U<V.length;U++){var K=V[U];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(N,K.key,K)}}return function(N,V,U){return V&&q(N.prototype,V),U&&q(N,U),N}})(),c=i(21),d=O(c),f=i(11),l=O(f),u=i(3),h=O(u),v=i(2),b=O(v),p=i(20),g=O(p),m=i(0),x=O(m),y=i(5),E=O(y),_=i(10),w=O(_),S=i(9),T=O(S);function O(q){return q&&q.__esModule?q:{default:q}}function C(q,N,V){return N in q?Object.defineProperty(q,N,{value:V,enumerable:!0,configurable:!0,writable:!0}):q[N]=V,q}function R(q,N){if(!(q instanceof N))throw new TypeError("Cannot call a class as a function")}function j(q,N){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:q}function A(q,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);q.prototype=Object.create(N&&N.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(q,N):q.__proto__=N)}var I=(0,w.default)("quill:keyboard"),$=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",H=(function(q){A(N,q),s(N,null,[{key:"match",value:function(U,K){return K=W(K),["altKey","ctrlKey","metaKey","shiftKey"].some(function(J){return!!K[J]!==U[J]&&K[J]!==null})?!1:K.key===(U.which||U.keyCode)}}]);function N(V,U){R(this,N);var K=j(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,V,U));return K.bindings={},Object.keys(K.options.bindings).forEach(function(J){J==="list autofill"&&V.scroll.whitelist!=null&&!V.scroll.whitelist.list||K.options.bindings[J]&&K.addBinding(K.options.bindings[J])}),K.addBinding({key:N.keys.ENTER,shiftKey:null},L),K.addBinding({key:N.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(K.addBinding({key:N.keys.BACKSPACE},{collapsed:!0},D),K.addBinding({key:N.keys.DELETE},{collapsed:!0},F)):(K.addBinding({key:N.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},D),K.addBinding({key:N.keys.DELETE},{collapsed:!0,suffix:/^.?$/},F)),K.addBinding({key:N.keys.BACKSPACE},{collapsed:!1},P),K.addBinding({key:N.keys.DELETE},{collapsed:!1},P),K.addBinding({key:N.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},D),K.listen(),K}return s(N,[{key:"addBinding",value:function(U){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ne=W(U);if(ne==null||ne.key==null)return I.warn("Attempted to add invalid keyboard binding",ne);typeof K=="function"&&(K={handler:K}),typeof J=="function"&&(J={handler:J}),ne=(0,h.default)(ne,K,J),this.bindings[ne.key]=this.bindings[ne.key]||[],this.bindings[ne.key].push(ne)}},{key:"listen",value:function(){var U=this;this.quill.root.addEventListener("keydown",function(K){if(!K.defaultPrevented){var J=K.which||K.keyCode,ne=(U.bindings[J]||[]).filter(function(Ae){return N.match(K,Ae)});if(ne.length!==0){var ce=U.quill.getSelection();if(!(ce==null||!U.quill.hasFocus())){var re=U.quill.getLine(ce.index),de=a(re,2),oe=de[0],se=de[1],Q=U.quill.getLeaf(ce.index),ee=a(Q,2),ue=ee[0],le=ee[1],ae=ce.length===0?[ue,le]:U.quill.getLeaf(ce.index+ce.length),pe=a(ae,2),fe=pe[0],ge=pe[1],Re=ue instanceof x.default.Text?ue.value().slice(0,le):"",qe=fe instanceof x.default.Text?fe.value().slice(ge):"",Ce={collapsed:ce.length===0,empty:ce.length===0&&oe.length()<=1,format:U.quill.getFormat(ce),offset:se,prefix:Re,suffix:qe},Ke=ne.some(function(Ae){if(Ae.collapsed!=null&&Ae.collapsed!==Ce.collapsed||Ae.empty!=null&&Ae.empty!==Ce.empty||Ae.offset!=null&&Ae.offset!==Ce.offset)return!1;if(Array.isArray(Ae.format)){if(Ae.format.every(function(ke){return Ce.format[ke]==null}))return!1}else if(o(Ae.format)==="object"&&!Object.keys(Ae.format).every(function(ke){return Ae.format[ke]===!0?Ce.format[ke]!=null:Ae.format[ke]===!1?Ce.format[ke]==null:(0,l.default)(Ae.format[ke],Ce.format[ke])}))return!1;return Ae.prefix!=null&&!Ae.prefix.test(Ce.prefix)||Ae.suffix!=null&&!Ae.suffix.test(Ce.suffix)?!1:Ae.handler.call(U,ce,Ce)!==!0});Ke&&K.preventDefault()}}}})}}]),N})(T.default);H.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},H.DEFAULTS={bindings:{bold:X("bold"),italic:X("italic"),underline:X("underline"),indent:{key:H.keys.TAB,format:["blockquote","indent","list"],handler:function(N,V){if(V.collapsed&&V.offset!==0)return!0;this.quill.format("indent","+1",E.default.sources.USER)}},outdent:{key:H.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(N,V){if(V.collapsed&&V.offset!==0)return!0;this.quill.format("indent","-1",E.default.sources.USER)}},"outdent backspace":{key:H.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(N,V){V.format.indent!=null?this.quill.format("indent","-1",E.default.sources.USER):V.format.list!=null&&this.quill.format("list",!1,E.default.sources.USER)}},"indent code-block":B(!0),"outdent code-block":B(!1),"remove tab":{key:H.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(N){this.quill.deleteText(N.index-1,1,E.default.sources.USER)}},tab:{key:H.keys.TAB,handler:function(N){this.quill.history.cutoff();var V=new b.default().retain(N.index).delete(N.length).insert(" ");this.quill.updateContents(V,E.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(N.index+1,E.default.sources.SILENT)}},"list empty enter":{key:H.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(N,V){this.quill.format("list",!1,E.default.sources.USER),V.format.indent&&this.quill.format("indent",!1,E.default.sources.USER)}},"checklist enter":{key:H.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(N){var V=this.quill.getLine(N.index),U=a(V,2),K=U[0],J=U[1],ne=(0,h.default)({},K.formats(),{list:"checked"}),ce=new b.default().retain(N.index).insert(`
41
+ `,ne).retain(K.length()-J-1).retain(1,{list:"unchecked"});this.quill.updateContents(ce,E.default.sources.USER),this.quill.setSelection(N.index+1,E.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:H.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(N,V){var U=this.quill.getLine(N.index),K=a(U,2),J=K[0],ne=K[1],ce=new b.default().retain(N.index).insert(`
42
+ `,V.format).retain(J.length()-ne-1).retain(1,{header:null});this.quill.updateContents(ce,E.default.sources.USER),this.quill.setSelection(N.index+1,E.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(N,V){var U=V.prefix.length,K=this.quill.getLine(N.index),J=a(K,2),ne=J[0],ce=J[1];if(ce>U)return!0;var re=void 0;switch(V.prefix.trim()){case"[]":case"[ ]":re="unchecked";break;case"[x]":re="checked";break;case"-":case"*":re="bullet";break;default:re="ordered"}this.quill.insertText(N.index," ",E.default.sources.USER),this.quill.history.cutoff();var de=new b.default().retain(N.index-ce).delete(U+1).retain(ne.length()-2-ce).retain(1,{list:re});this.quill.updateContents(de,E.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(N.index-U,E.default.sources.SILENT)}},"code exit":{key:H.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(N){var V=this.quill.getLine(N.index),U=a(V,2),K=U[0],J=U[1],ne=new b.default().retain(N.index+K.length()-J-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ne,E.default.sources.USER)}},"embed left":G(H.keys.LEFT,!1),"embed left shift":G(H.keys.LEFT,!0),"embed right":G(H.keys.RIGHT,!1),"embed right shift":G(H.keys.RIGHT,!0)}};function G(q,N){var V,U=q===H.keys.LEFT?"prefix":"suffix";return V={key:q,shiftKey:N,altKey:null},C(V,U,/^$/),C(V,"handler",function(J){var ne=J.index;q===H.keys.RIGHT&&(ne+=J.length+1);var ce=this.quill.getLeaf(ne),re=a(ce,1),de=re[0];return de instanceof x.default.Embed?(q===H.keys.LEFT?N?this.quill.setSelection(J.index-1,J.length+1,E.default.sources.USER):this.quill.setSelection(J.index-1,E.default.sources.USER):N?this.quill.setSelection(J.index,J.length+1,E.default.sources.USER):this.quill.setSelection(J.index+J.length+1,E.default.sources.USER),!1):!0}),V}function D(q,N){if(!(q.index===0||this.quill.getLength()<=1)){var V=this.quill.getLine(q.index),U=a(V,1),K=U[0],J={};if(N.offset===0){var ne=this.quill.getLine(q.index-1),ce=a(ne,1),re=ce[0];if(re!=null&&re.length()>1){var de=K.formats(),oe=this.quill.getFormat(q.index-1,1);J=g.default.attributes.diff(de,oe)||{}}}var se=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(N.prefix)?2:1;this.quill.deleteText(q.index-se,se,E.default.sources.USER),Object.keys(J).length>0&&this.quill.formatLine(q.index-se,se,J,E.default.sources.USER),this.quill.focus()}}function F(q,N){var V=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(N.suffix)?2:1;if(!(q.index>=this.quill.getLength()-V)){var U={},K=0,J=this.quill.getLine(q.index),ne=a(J,1),ce=ne[0];if(N.offset>=ce.length()-1){var re=this.quill.getLine(q.index+1),de=a(re,1),oe=de[0];if(oe){var se=ce.formats(),Q=this.quill.getFormat(q.index,1);U=g.default.attributes.diff(se,Q)||{},K=oe.length()}}this.quill.deleteText(q.index,V,E.default.sources.USER),Object.keys(U).length>0&&this.quill.formatLine(q.index+K-1,V,U,E.default.sources.USER)}}function P(q){var N=this.quill.getLines(q),V={};if(N.length>1){var U=N[0].formats(),K=N[N.length-1].formats();V=g.default.attributes.diff(K,U)||{}}this.quill.deleteText(q,E.default.sources.USER),Object.keys(V).length>0&&this.quill.formatLine(q.index,1,V,E.default.sources.USER),this.quill.setSelection(q.index,E.default.sources.SILENT),this.quill.focus()}function L(q,N){var V=this;q.length>0&&this.quill.scroll.deleteAt(q.index,q.length);var U=Object.keys(N.format).reduce(function(K,J){return x.default.query(J,x.default.Scope.BLOCK)&&!Array.isArray(N.format[J])&&(K[J]=N.format[J]),K},{});this.quill.insertText(q.index,`
43
+ `,U,E.default.sources.USER),this.quill.setSelection(q.index+1,E.default.sources.SILENT),this.quill.focus(),Object.keys(N.format).forEach(function(K){U[K]==null&&(Array.isArray(N.format[K])||K!=="link"&&V.quill.format(K,N.format[K],E.default.sources.USER))})}function B(q){return{key:H.keys.TAB,shiftKey:!q,format:{"code-block":!0},handler:function(V){var U=x.default.query("code-block"),K=V.index,J=V.length,ne=this.quill.scroll.descendant(U,K),ce=a(ne,2),re=ce[0],de=ce[1];if(re!=null){var oe=this.quill.getIndex(re),se=re.newlineIndex(de,!0)+1,Q=re.newlineIndex(oe+de+J),ee=re.domNode.textContent.slice(se,Q).split(`
44
+ `);de=0,ee.forEach(function(ue,le){q?(re.insertAt(se+de,U.TAB),de+=U.TAB.length,le===0?K+=U.TAB.length:J+=U.TAB.length):ue.startsWith(U.TAB)&&(re.deleteAt(se+de,U.TAB.length),de-=U.TAB.length,le===0?K-=U.TAB.length:J-=U.TAB.length),de+=ue.length+1}),this.quill.update(E.default.sources.USER),this.quill.setSelection(K,J,E.default.sources.SILENT)}}}}function X(q){return{key:q[0].toUpperCase(),shortKey:!0,handler:function(V,U){this.quill.format(q,!U.format[q],E.default.sources.USER)}}}function W(q){if(typeof q=="string"||typeof q=="number")return W({key:q});if((typeof q>"u"?"undefined":o(q))==="object"&&(q=(0,d.default)(q,!1)),typeof q.key=="string")if(H.keys[q.key.toUpperCase()]!=null)q.key=H.keys[q.key.toUpperCase()];else if(q.key.length===1)q.key=q.key.toUpperCase().charCodeAt(0);else return null;return q.shortKey&&(q[$]=q.shortKey,delete q.shortKey),q}n.default=H,n.SHORTKEY=$}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function g(m,x){var y=[],E=!0,_=!1,w=void 0;try{for(var S=m[Symbol.iterator](),T;!(E=(T=S.next()).done)&&(y.push(T.value),!(x&&y.length===x));E=!0);}catch(O){_=!0,w=O}finally{try{!E&&S.return&&S.return()}finally{if(_)throw w}}return y}return function(m,x){if(Array.isArray(m))return m;if(Symbol.iterator in Object(m))return g(m,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=function g(m,x,y){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,x);if(E===void 0){var _=Object.getPrototypeOf(m);return _===null?void 0:g(_,x,y)}else{if("value"in E)return E.value;var w=E.get;return w===void 0?void 0:w.call(y)}},s=(function(){function g(m,x){for(var y=0;y<x.length;y++){var E=x[y];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,x,y){return x&&g(m.prototype,x),y&&g(m,y),m}})(),c=i(0),d=u(c),f=i(7),l=u(f);function u(g){return g&&g.__esModule?g:{default:g}}function h(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function v(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function b(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var p=(function(g){b(m,g),s(m,null,[{key:"value",value:function(){}}]);function m(x,y){h(this,m);var E=v(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,x));return E.selection=y,E.textNode=document.createTextNode(m.CONTENTS),E.domNode.appendChild(E.textNode),E._length=0,E}return s(m,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(y,E){if(this._length!==0)return a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,y,E);for(var _=this,w=0;_!=null&&_.statics.scope!==d.default.Scope.BLOCK_BLOT;)w+=_.offset(_.parent),_=_.parent;_!=null&&(this._length=m.CONTENTS.length,_.optimize(),_.formatAt(w,m.CONTENTS.length,y,E),this._length=0)}},{key:"index",value:function(y,E){return y===this.textNode?0:a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"index",this).call(this,y,E)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var y=this.textNode,E=this.selection.getNativeRange(),_=void 0,w=void 0,S=void 0;if(E!=null&&E.start.node===y&&E.end.node===y){var T=[y,E.start.offset,E.end.offset];_=T[0],w=T[1],S=T[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==m.CONTENTS){var O=this.textNode.data.split(m.CONTENTS).join("");this.next instanceof l.default?(_=this.next.domNode,this.next.insertAt(0,O),this.textNode.data=m.CONTENTS):(this.textNode.data=O,this.parent.insertBefore(d.default.create(this.textNode),this),this.textNode=document.createTextNode(m.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),w!=null){var C=[w,S].map(function(j){return Math.max(0,Math.min(_.data.length,j-1))}),R=o(C,2);return w=R[0],S=R[1],{startNode:_,startOffset:w,endNode:_,endOffset:S}}}}},{key:"update",value:function(y,E){var _=this;if(y.some(function(S){return S.type==="characterData"&&S.target===_.textNode})){var w=this.restore();w&&(E.range=w)}}},{key:"value",value:function(){return""}}]),m})(d.default.Embed);p.blotName="cursor",p.className="ql-cursor",p.tagName="span",p.CONTENTS="\uFEFF",n.default=p}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(0),a=d(o),s=i(4),c=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function l(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function u(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var h=(function(v){u(b,v);function b(){return f(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return b})(a.default.Container);h.allowedChildren=[c.default,s.BlockEmbed,h],n.default=h}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.ColorStyle=n.ColorClass=n.ColorAttributor=void 0;var o=(function(){function p(g,m){for(var x=0;x<m.length;x++){var y=m[x];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,m,x){return m&&p(g.prototype,m),x&&p(g,x),g}})(),a=function p(g,m,x){g===null&&(g=Function.prototype);var y=Object.getOwnPropertyDescriptor(g,m);if(y===void 0){var E=Object.getPrototypeOf(g);return E===null?void 0:p(E,m,x)}else{if("value"in y)return y.value;var _=y.get;return _===void 0?void 0:_.call(x)}},s=i(0),c=d(s);function d(p){return p&&p.__esModule?p:{default:p}}function f(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function l(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function u(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var h=(function(p){u(g,p);function g(){return f(this,g),l(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,[{key:"value",value:function(x){var y=a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,x);return y.startsWith("rgb(")?(y=y.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+y.split(",").map(function(E){return("00"+parseInt(E).toString(16)).slice(-2)}).join("")):y}}]),g})(c.default.Attributor.Style),v=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),b=new h("color","color",{scope:c.default.Scope.INLINE});n.ColorAttributor=h,n.ColorClass=v,n.ColorStyle=b}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.sanitize=n.default=void 0;var o=(function(){function b(p,g){for(var m=0;m<g.length;m++){var x=g[m];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(p,x.key,x)}}return function(p,g,m){return g&&b(p.prototype,g),m&&b(p,m),p}})(),a=function b(p,g,m){p===null&&(p=Function.prototype);var x=Object.getOwnPropertyDescriptor(p,g);if(x===void 0){var y=Object.getPrototypeOf(p);return y===null?void 0:b(y,g,m)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(m)}},s=i(6),c=d(s);function d(b){return b&&b.__esModule?b:{default:b}}function f(b,p){if(!(b instanceof p))throw new TypeError("Cannot call a class as a function")}function l(b,p){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:b}function u(b,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);b.prototype=Object.create(p&&p.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(b,p):b.__proto__=p)}var h=(function(b){u(p,b);function p(){return f(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return o(p,[{key:"format",value:function(m,x){if(m!==this.statics.blotName||!x)return a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"format",this).call(this,m,x);x=this.constructor.sanitize(x),this.domNode.setAttribute("href",x)}}],[{key:"create",value:function(m){var x=a(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,m);return m=this.sanitize(m),x.setAttribute("href",m),x.setAttribute("rel","noopener noreferrer"),x.setAttribute("target","_blank"),x}},{key:"formats",value:function(m){return m.getAttribute("href")}},{key:"sanitize",value:function(m){return v(m,this.PROTOCOL_WHITELIST)?m:this.SANITIZED_URL}}]),p})(c.default);h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function v(b,p){var g=document.createElement("a");g.href=b;var m=g.href.slice(0,g.href.indexOf(":"));return p.indexOf(m)>-1}n.default=h,n.sanitize=v}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},a=(function(){function p(g,m){for(var x=0;x<m.length;x++){var y=m[x];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,m,x){return m&&p(g.prototype,m),x&&p(g,x),g}})(),s=i(23),c=l(s),d=i(107),f=l(d);function l(p){return p&&p.__esModule?p:{default:p}}function u(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}var h=0;function v(p,g){p.setAttribute(g,p.getAttribute(g)!=="true")}var b=(function(){function p(g){var m=this;u(this,p),this.select=g,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){m.togglePicker()}),this.label.addEventListener("keydown",function(x){switch(x.keyCode){case c.default.keys.ENTER:m.togglePicker();break;case c.default.keys.ESCAPE:m.escape(),x.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return a(p,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),v(this.label,"aria-expanded"),v(this.options,"aria-hidden")}},{key:"buildItem",value:function(m){var x=this,y=document.createElement("span");return y.tabIndex="0",y.setAttribute("role","button"),y.classList.add("ql-picker-item"),m.hasAttribute("value")&&y.setAttribute("data-value",m.getAttribute("value")),m.textContent&&y.setAttribute("data-label",m.textContent),y.addEventListener("click",function(){x.selectItem(y,!0)}),y.addEventListener("keydown",function(E){switch(E.keyCode){case c.default.keys.ENTER:x.selectItem(y,!0),E.preventDefault();break;case c.default.keys.ESCAPE:x.escape(),E.preventDefault();break}}),y}},{key:"buildLabel",value:function(){var m=document.createElement("span");return m.classList.add("ql-picker-label"),m.innerHTML=f.default,m.tabIndex="0",m.setAttribute("role","button"),m.setAttribute("aria-expanded","false"),this.container.appendChild(m),m}},{key:"buildOptions",value:function(){var m=this,x=document.createElement("span");x.classList.add("ql-picker-options"),x.setAttribute("aria-hidden","true"),x.tabIndex="-1",x.id="ql-picker-options-"+h,h+=1,this.label.setAttribute("aria-controls",x.id),this.options=x,[].slice.call(this.select.options).forEach(function(y){var E=m.buildItem(y);x.appendChild(E),y.selected===!0&&m.selectItem(E)}),this.container.appendChild(x)}},{key:"buildPicker",value:function(){var m=this;[].slice.call(this.select.attributes).forEach(function(x){m.container.setAttribute(x.name,x.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var m=this;this.close(),setTimeout(function(){return m.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(m){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=this.container.querySelector(".ql-selected");if(m!==y&&(y?.classList.remove("ql-selected"),m!=null&&(m.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(m.parentNode.children,m),m.hasAttribute("data-value")?this.label.setAttribute("data-value",m.getAttribute("data-value")):this.label.removeAttribute("data-value"),m.hasAttribute("data-label")?this.label.setAttribute("data-label",m.getAttribute("data-label")):this.label.removeAttribute("data-label"),x))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":o(Event))==="object"){var E=document.createEvent("Event");E.initEvent("change",!0,!0),this.select.dispatchEvent(E)}this.close()}}},{key:"update",value:function(){var m=void 0;if(this.select.selectedIndex>-1){var x=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];m=this.select.options[this.select.selectedIndex],this.selectItem(x)}else this.selectItem(null);var y=m!=null&&m!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",y)}}]),p})();n.default=b}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(0),a=I(o),s=i(5),c=I(s),d=i(4),f=I(d),l=i(16),u=I(l),h=i(25),v=I(h),b=i(24),p=I(b),g=i(35),m=I(g),x=i(6),y=I(x),E=i(22),_=I(E),w=i(7),S=I(w),T=i(55),O=I(T),C=i(42),R=I(C),j=i(23),A=I(j);function I($){return $&&$.__esModule?$:{default:$}}c.default.register({"blots/block":f.default,"blots/block/embed":d.BlockEmbed,"blots/break":u.default,"blots/container":v.default,"blots/cursor":p.default,"blots/embed":m.default,"blots/inline":y.default,"blots/scroll":_.default,"blots/text":S.default,"modules/clipboard":O.default,"modules/history":R.default,"modules/keyboard":A.default}),a.default.register(f.default,u.default,p.default,y.default,_.default,S.default),n.default=c.default}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(1),a=(function(){function s(c){this.domNode=c,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(s.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),s.create=function(c){if(this.tagName==null)throw new o.ParchmentError("Blot definition missing tagName");var d;return Array.isArray(this.tagName)?(typeof c=="string"&&(c=c.toUpperCase(),parseInt(c).toString()===c&&(c=parseInt(c))),typeof c=="number"?d=document.createElement(this.tagName[c-1]):this.tagName.indexOf(c)>-1?d=document.createElement(c):d=document.createElement(this.tagName[0])):d=document.createElement(this.tagName),this.className&&d.classList.add(this.className),d},s.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},s.prototype.clone=function(){var c=this.domNode.cloneNode(!1);return o.create(c)},s.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},s.prototype.deleteAt=function(c,d){var f=this.isolate(c,d);f.remove()},s.prototype.formatAt=function(c,d,f,l){var u=this.isolate(c,d);if(o.query(f,o.Scope.BLOT)!=null&&l)u.wrap(f,l);else if(o.query(f,o.Scope.ATTRIBUTE)!=null){var h=o.create(this.statics.scope);u.wrap(h),h.format(f,l)}},s.prototype.insertAt=function(c,d,f){var l=f==null?o.create("text",d):o.create(d,f),u=this.split(c);this.parent.insertBefore(l,u)},s.prototype.insertInto=function(c,d){d===void 0&&(d=null),this.parent!=null&&this.parent.children.remove(this);var f=null;c.children.insertBefore(this,d),d!=null&&(f=d.domNode),(this.domNode.parentNode!=c.domNode||this.domNode.nextSibling!=f)&&c.domNode.insertBefore(this.domNode,f),this.parent=c,this.attach()},s.prototype.isolate=function(c,d){var f=this.split(c);return f.split(d),f},s.prototype.length=function(){return 1},s.prototype.offset=function(c){return c===void 0&&(c=this.parent),this.parent==null||this==c?0:this.parent.children.offset(this)+this.parent.offset(c)},s.prototype.optimize=function(c){this.domNode[o.DATA_KEY]!=null&&delete this.domNode[o.DATA_KEY].mutations},s.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},s.prototype.replace=function(c){c.parent!=null&&(c.parent.insertBefore(this,c.next),c.remove())},s.prototype.replaceWith=function(c,d){var f=typeof c=="string"?o.create(c,d):c;return f.replace(this),f},s.prototype.split=function(c,d){return c===0?this:this.next},s.prototype.update=function(c,d){},s.prototype.wrap=function(c,d){var f=typeof c=="string"?o.create(c,d):c;return this.parent!=null&&this.parent.insertBefore(f,this.next),f.appendChild(this),f},s.blotName="abstract",s})();n.default=a}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(12),a=i(32),s=i(33),c=i(1),d=(function(){function f(l){this.attributes={},this.domNode=l,this.build()}return f.prototype.attribute=function(l,u){u?l.add(this.domNode,u)&&(l.value(this.domNode)!=null?this.attributes[l.attrName]=l:delete this.attributes[l.attrName]):(l.remove(this.domNode),delete this.attributes[l.attrName])},f.prototype.build=function(){var l=this;this.attributes={};var u=o.default.keys(this.domNode),h=a.default.keys(this.domNode),v=s.default.keys(this.domNode);u.concat(h).concat(v).forEach(function(b){var p=c.query(b,c.Scope.ATTRIBUTE);p instanceof o.default&&(l.attributes[p.attrName]=p)})},f.prototype.copy=function(l){var u=this;Object.keys(this.attributes).forEach(function(h){var v=u.attributes[h].value(u.domNode);l.format(h,v)})},f.prototype.move=function(l){var u=this;this.copy(l),Object.keys(this.attributes).forEach(function(h){u.attributes[h].remove(u.domNode)}),this.attributes={}},f.prototype.values=function(){var l=this;return Object.keys(this.attributes).reduce(function(u,h){return u[h]=l.attributes[h].value(l.domNode),u},{})},f})();n.default=d}),(function(t,n,i){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=i(12);function s(d,f){var l=d.getAttribute("class")||"";return l.split(/\s+/).filter(function(u){return u.indexOf(f+"-")===0})}var c=(function(d){o(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.keys=function(l){return(l.getAttribute("class")||"").split(/\s+/).map(function(u){return u.split("-").slice(0,-1).join("-")})},f.prototype.add=function(l,u){return this.canAdd(l,u)?(this.remove(l),l.classList.add(this.keyName+"-"+u),!0):!1},f.prototype.remove=function(l){var u=s(l,this.keyName);u.forEach(function(h){l.classList.remove(h)}),l.classList.length===0&&l.removeAttribute("class")},f.prototype.value=function(l){var u=s(l,this.keyName)[0]||"",h=u.slice(this.keyName.length+1);return this.canAdd(l,h)?h:""},f})(a.default);n.default=c}),(function(t,n,i){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=i(12);function s(d){var f=d.split("-"),l=f.slice(1).map(function(u){return u[0].toUpperCase()+u.slice(1)}).join("");return f[0]+l}var c=(function(d){o(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.keys=function(l){return(l.getAttribute("style")||"").split(";").map(function(u){var h=u.split(":");return h[0].trim()})},f.prototype.add=function(l,u){return this.canAdd(l,u)?(l.style[s(this.keyName)]=u,!0):!1},f.prototype.remove=function(l){l.style[s(this.keyName)]="",l.getAttribute("style")||l.removeAttribute("style")},f.prototype.value=function(l){var u=l.style[s(this.keyName)];return this.canAdd(l,u)?u:""},f})(a.default);n.default=c}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function c(d,f){for(var l=0;l<f.length;l++){var u=f[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,u.key,u)}}return function(d,f,l){return f&&c(d.prototype,f),l&&c(d,l),d}})();function a(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}var s=(function(){function c(d,f){a(this,c),this.quill=d,this.options=f,this.modules={}}return o(c,[{key:"init",value:function(){var f=this;Object.keys(this.options.modules).forEach(function(l){f.modules[l]==null&&f.addModule(l)})}},{key:"addModule",value:function(f){var l=this.quill.constructor.import("modules/"+f);return this.modules[f]=new l(this.quill,this.options.modules[f]||{}),this.modules[f]}}]),c})();s.DEFAULTS={modules:{}},s.themes={default:s},n.default=s}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function g(m,x){for(var y=0;y<x.length;y++){var E=x[y];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,x,y){return x&&g(m.prototype,x),y&&g(m,y),m}})(),a=function g(m,x,y){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,x);if(E===void 0){var _=Object.getPrototypeOf(m);return _===null?void 0:g(_,x,y)}else{if("value"in E)return E.value;var w=E.get;return w===void 0?void 0:w.call(y)}},s=i(0),c=l(s),d=i(7),f=l(d);function l(g){return g&&g.__esModule?g:{default:g}}function u(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function h(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function v(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var b="\uFEFF",p=(function(g){v(m,g);function m(x){u(this,m);var y=h(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,x));return y.contentNode=document.createElement("span"),y.contentNode.setAttribute("contenteditable",!1),[].slice.call(y.domNode.childNodes).forEach(function(E){y.contentNode.appendChild(E)}),y.leftGuard=document.createTextNode(b),y.rightGuard=document.createTextNode(b),y.domNode.appendChild(y.leftGuard),y.domNode.appendChild(y.contentNode),y.domNode.appendChild(y.rightGuard),y}return o(m,[{key:"index",value:function(y,E){return y===this.leftGuard?0:y===this.rightGuard?1:a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"index",this).call(this,y,E)}},{key:"restore",value:function(y){var E=void 0,_=void 0,w=y.data.split(b).join("");if(y===this.leftGuard)if(this.prev instanceof f.default){var S=this.prev.length();this.prev.insertAt(S,w),E={startNode:this.prev.domNode,startOffset:S+w.length}}else _=document.createTextNode(w),this.parent.insertBefore(c.default.create(_),this),E={startNode:_,startOffset:w.length};else y===this.rightGuard&&(this.next instanceof f.default?(this.next.insertAt(0,w),E={startNode:this.next.domNode,startOffset:w.length}):(_=document.createTextNode(w),this.parent.insertBefore(c.default.create(_),this.next),E={startNode:_,startOffset:w.length}));return y.data=b,E}},{key:"update",value:function(y,E){var _=this;y.forEach(function(w){if(w.type==="characterData"&&(w.target===_.leftGuard||w.target===_.rightGuard)){var S=_.restore(w.target);S&&(E.range=S)}})}}]),m})(c.default.Embed);n.default=p}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.AlignStyle=n.AlignClass=n.AlignAttribute=void 0;var o=i(0),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}var c={scope:a.default.Scope.BLOCK,whitelist:["right","center","justify"]},d=new a.default.Attributor.Attribute("align","align",c),f=new a.default.Attributor.Class("align","ql-align",c),l=new a.default.Attributor.Style("align","text-align",c);n.AlignAttribute=d,n.AlignClass=f,n.AlignStyle=l}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.BackgroundStyle=n.BackgroundClass=void 0;var o=i(0),a=c(o),s=i(26);function c(l){return l&&l.__esModule?l:{default:l}}var d=new a.default.Attributor.Class("background","ql-bg",{scope:a.default.Scope.INLINE}),f=new s.ColorAttributor("background","background-color",{scope:a.default.Scope.INLINE});n.BackgroundClass=d,n.BackgroundStyle=f}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.DirectionStyle=n.DirectionClass=n.DirectionAttribute=void 0;var o=i(0),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}var c={scope:a.default.Scope.BLOCK,whitelist:["rtl"]},d=new a.default.Attributor.Attribute("direction","dir",c),f=new a.default.Attributor.Class("direction","ql-direction",c),l=new a.default.Attributor.Style("direction","direction",c);n.DirectionAttribute=d,n.DirectionClass=f,n.DirectionStyle=l}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.FontClass=n.FontStyle=void 0;var o=(function(){function g(m,x){for(var y=0;y<x.length;y++){var E=x[y];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,x,y){return x&&g(m.prototype,x),y&&g(m,y),m}})(),a=function g(m,x,y){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,x);if(E===void 0){var _=Object.getPrototypeOf(m);return _===null?void 0:g(_,x,y)}else{if("value"in E)return E.value;var w=E.get;return w===void 0?void 0:w.call(y)}},s=i(0),c=d(s);function d(g){return g&&g.__esModule?g:{default:g}}function f(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function l(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function u(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var h={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},v=new c.default.Attributor.Class("font","ql-font",h),b=(function(g){u(m,g);function m(){return f(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,[{key:"value",value:function(y){return a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,y).replace(/["']/g,"")}}]),m})(c.default.Attributor.Style),p=new b("font","font-family",h);n.FontStyle=p,n.FontClass=v}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SizeStyle=n.SizeClass=void 0;var o=i(0),a=s(o);function s(f){return f&&f.__esModule?f:{default:f}}var c=new a.default.Attributor.Class("size","ql-size",{scope:a.default.Scope.INLINE,whitelist:["small","large","huge"]}),d=new a.default.Attributor.Style("size","font-size",{scope:a.default.Scope.INLINE,whitelist:["10px","18px","32px"]});n.SizeClass=c,n.SizeStyle=d}),(function(t,n,i){t.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.getLastChangeIndex=n.default=void 0;var o=(function(){function x(y,E){for(var _=0;_<E.length;_++){var w=E[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,E,_){return E&&x(y.prototype,E),_&&x(y,_),y}})(),a=i(0),s=u(a),c=i(5),d=u(c),f=i(9),l=u(f);function u(x){return x&&x.__esModule?x:{default:x}}function h(x,y){if(!(x instanceof y))throw new TypeError("Cannot call a class as a function")}function v(x,y){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:x}function b(x,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);x.prototype=Object.create(y&&y.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(x,y):x.__proto__=y)}var p=(function(x){b(y,x);function y(E,_){h(this,y);var w=v(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,E,_));return w.lastRecorded=0,w.ignoreChange=!1,w.clear(),w.quill.on(d.default.events.EDITOR_CHANGE,function(S,T,O,C){S!==d.default.events.TEXT_CHANGE||w.ignoreChange||(!w.options.userOnly||C===d.default.sources.USER?w.record(T,O):w.transform(T))}),w.quill.keyboard.addBinding({key:"Z",shortKey:!0},w.undo.bind(w)),w.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},w.redo.bind(w)),/Win/i.test(navigator.platform)&&w.quill.keyboard.addBinding({key:"Y",shortKey:!0},w.redo.bind(w)),w}return o(y,[{key:"change",value:function(_,w){if(this.stack[_].length!==0){var S=this.stack[_].pop();this.stack[w].push(S),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(S[_],d.default.sources.USER),this.ignoreChange=!1;var T=m(S[_]);this.quill.setSelection(T)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(_,w){if(_.ops.length!==0){this.stack.redo=[];var S=this.quill.getContents().diff(w),T=Date.now();if(this.lastRecorded+this.options.delay>T&&this.stack.undo.length>0){var O=this.stack.undo.pop();S=S.compose(O.undo),_=O.redo.compose(_)}else this.lastRecorded=T;this.stack.undo.push({redo:_,undo:S}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(_){this.stack.undo.forEach(function(w){w.undo=_.transform(w.undo,!0),w.redo=_.transform(w.redo,!0)}),this.stack.redo.forEach(function(w){w.undo=_.transform(w.undo,!0),w.redo=_.transform(w.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),y})(l.default);p.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function g(x){var y=x.ops[x.ops.length-1];return y==null?!1:y.insert!=null?typeof y.insert=="string"&&y.insert.endsWith(`
45
+ `):y.attributes!=null?Object.keys(y.attributes).some(function(E){return s.default.query(E,s.default.Scope.BLOCK)!=null}):!1}function m(x){var y=x.reduce(function(_,w){return _+=w.delete||0,_},0),E=x.length()-y;return g(x)&&(E-=1),E}n.default=p,n.getLastChangeIndex=m}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BaseTooltip=void 0;var o=(function(){function L(B,X){for(var W=0;W<X.length;W++){var q=X[W];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(B,q.key,q)}}return function(B,X,W){return X&&L(B.prototype,X),W&&L(B,W),B}})(),a=function L(B,X,W){B===null&&(B=Function.prototype);var q=Object.getOwnPropertyDescriptor(B,X);if(q===void 0){var N=Object.getPrototypeOf(B);return N===null?void 0:L(N,X,W)}else{if("value"in q)return q.value;var V=q.get;return V===void 0?void 0:V.call(W)}},s=i(3),c=T(s),d=i(2),f=T(d),l=i(8),u=T(l),h=i(23),v=T(h),b=i(34),p=T(b),g=i(59),m=T(g),x=i(60),y=T(x),E=i(28),_=T(E),w=i(61),S=T(w);function T(L){return L&&L.__esModule?L:{default:L}}function O(L,B){if(!(L instanceof B))throw new TypeError("Cannot call a class as a function")}function C(L,B){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:L}function R(L,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);L.prototype=Object.create(B&&B.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(L,B):L.__proto__=B)}var j=[!1,"center","right","justify"],A=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],I=[!1,"serif","monospace"],$=["1","2","3",!1],H=["small",!1,"large","huge"],G=(function(L){R(B,L);function B(X,W){O(this,B);var q=C(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,X,W)),N=function V(U){if(!document.body.contains(X.root))return document.body.removeEventListener("click",V);q.tooltip!=null&&!q.tooltip.root.contains(U.target)&&document.activeElement!==q.tooltip.textbox&&!q.quill.hasFocus()&&q.tooltip.hide(),q.pickers!=null&&q.pickers.forEach(function(K){K.container.contains(U.target)||K.close()})};return X.emitter.listenDOM("click",document.body,N),q}return o(B,[{key:"addModule",value:function(W){var q=a(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"addModule",this).call(this,W);return W==="toolbar"&&this.extendToolbar(q),q}},{key:"buildButtons",value:function(W,q){W.forEach(function(N){var V=N.getAttribute("class")||"";V.split(/\s+/).forEach(function(U){if(U.startsWith("ql-")&&(U=U.slice(3),q[U]!=null))if(U==="direction")N.innerHTML=q[U][""]+q[U].rtl;else if(typeof q[U]=="string")N.innerHTML=q[U];else{var K=N.value||"";K!=null&&q[U][K]&&(N.innerHTML=q[U][K])}})})}},{key:"buildPickers",value:function(W,q){var N=this;this.pickers=W.map(function(U){if(U.classList.contains("ql-align"))return U.querySelector("option")==null&&P(U,j),new y.default(U,q.align);if(U.classList.contains("ql-background")||U.classList.contains("ql-color")){var K=U.classList.contains("ql-background")?"background":"color";return U.querySelector("option")==null&&P(U,A,K==="background"?"#ffffff":"#000000"),new m.default(U,q[K])}else return U.querySelector("option")==null&&(U.classList.contains("ql-font")?P(U,I):U.classList.contains("ql-header")?P(U,$):U.classList.contains("ql-size")&&P(U,H)),new _.default(U)});var V=function(){N.pickers.forEach(function(K){K.update()})};this.quill.on(u.default.events.EDITOR_CHANGE,V)}}]),B})(p.default);G.DEFAULTS=(0,c.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var B=this,X=this.container.querySelector("input.ql-image[type=file]");X==null&&(X=document.createElement("input"),X.setAttribute("type","file"),X.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),X.classList.add("ql-image"),X.addEventListener("change",function(){if(X.files!=null&&X.files[0]!=null){var W=new FileReader;W.onload=function(q){var N=B.quill.getSelection(!0);B.quill.updateContents(new f.default().retain(N.index).delete(N.length).insert({image:q.target.result}),u.default.sources.USER),B.quill.setSelection(N.index+1,u.default.sources.SILENT),X.value=""},W.readAsDataURL(X.files[0])}}),this.container.appendChild(X)),X.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var D=(function(L){R(B,L);function B(X,W){O(this,B);var q=C(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,X,W));return q.textbox=q.root.querySelector('input[type="text"]'),q.listen(),q}return o(B,[{key:"listen",value:function(){var W=this;this.textbox.addEventListener("keydown",function(q){v.default.match(q,"enter")?(W.save(),q.preventDefault()):v.default.match(q,"escape")&&(W.cancel(),q.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),q!=null?this.textbox.value=q:W!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+W)||""),this.root.setAttribute("data-mode",W)}},{key:"restoreFocus",value:function(){var W=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=W}},{key:"save",value:function(){var W=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var q=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",W,u.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",W,u.default.sources.USER)),this.quill.root.scrollTop=q;break}case"video":W=F(W);case"formula":{if(!W)break;var N=this.quill.getSelection(!0);if(N!=null){var V=N.index+N.length;this.quill.insertEmbed(V,this.root.getAttribute("data-mode"),W,u.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(V+1," ",u.default.sources.USER),this.quill.setSelection(V+2,u.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),B})(S.default);function F(L){var B=L.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||L.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return B?(B[1]||"https")+"://www.youtube.com/embed/"+B[2]+"?showinfo=0":(B=L.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(B[1]||"https")+"://player.vimeo.com/video/"+B[2]+"/":L}function P(L,B){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;B.forEach(function(W){var q=document.createElement("option");W===X?q.setAttribute("selected","selected"):q.setAttribute("value",W),L.appendChild(q)})}n.BaseTooltip=D,n.default=G}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function a(){this.head=this.tail=null,this.length=0}return a.prototype.append=function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];this.insertBefore(s[0],null),s.length>1&&this.append.apply(this,s.slice(1))},a.prototype.contains=function(s){for(var c,d=this.iterator();c=d();)if(c===s)return!0;return!1},a.prototype.insertBefore=function(s,c){s&&(s.next=c,c!=null?(s.prev=c.prev,c.prev!=null&&(c.prev.next=s),c.prev=s,c===this.head&&(this.head=s)):this.tail!=null?(this.tail.next=s,s.prev=this.tail,this.tail=s):(s.prev=null,this.head=this.tail=s),this.length+=1)},a.prototype.offset=function(s){for(var c=0,d=this.head;d!=null;){if(d===s)return c;c+=d.length(),d=d.next}return-1},a.prototype.remove=function(s){this.contains(s)&&(s.prev!=null&&(s.prev.next=s.next),s.next!=null&&(s.next.prev=s.prev),s===this.head&&(this.head=s.next),s===this.tail&&(this.tail=s.prev),this.length-=1)},a.prototype.iterator=function(s){return s===void 0&&(s=this.head),function(){var c=s;return s!=null&&(s=s.next),c}},a.prototype.find=function(s,c){c===void 0&&(c=!1);for(var d,f=this.iterator();d=f();){var l=d.length();if(s<l||c&&s===l&&(d.next==null||d.next.length()!==0))return[d,s];s-=l}return[null,0]},a.prototype.forEach=function(s){for(var c,d=this.iterator();c=d();)s(c)},a.prototype.forEachAt=function(s,c,d){if(!(c<=0))for(var f=this.find(s),l=f[0],u=f[1],h,v=s-u,b=this.iterator(l);(h=b())&&v<s+c;){var p=h.length();s>v?d(h,s-v,Math.min(c,v+p-s)):d(h,0,Math.min(p,s+c-v)),v+=p}},a.prototype.map=function(s){return this.reduce(function(c,d){return c.push(s(d)),c},[])},a.prototype.reduce=function(s,c){for(var d,f=this.iterator();d=f();)c=s(c,d);return c},a})();n.default=o}),(function(t,n,i){var o=this&&this.__extends||(function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var v in h)h.hasOwnProperty(v)&&(u[v]=h[v])};return function(u,h){l(u,h);function v(){this.constructor=u}u.prototype=h===null?Object.create(h):(v.prototype=h.prototype,new v)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=i(17),s=i(1),c={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},d=100,f=(function(l){o(u,l);function u(h){var v=l.call(this,h)||this;return v.scroll=v,v.observer=new MutationObserver(function(b){v.update(b)}),v.observer.observe(v.domNode,c),v.attach(),v}return u.prototype.detach=function(){l.prototype.detach.call(this),this.observer.disconnect()},u.prototype.deleteAt=function(h,v){this.update(),h===0&&v===this.length()?this.children.forEach(function(b){b.remove()}):l.prototype.deleteAt.call(this,h,v)},u.prototype.formatAt=function(h,v,b,p){this.update(),l.prototype.formatAt.call(this,h,v,b,p)},u.prototype.insertAt=function(h,v,b){this.update(),l.prototype.insertAt.call(this,h,v,b)},u.prototype.optimize=function(h,v){var b=this;h===void 0&&(h=[]),v===void 0&&(v={}),l.prototype.optimize.call(this,v);for(var p=[].slice.call(this.observer.takeRecords());p.length>0;)h.push(p.pop());for(var g=function(E,_){_===void 0&&(_=!0),!(E==null||E===b)&&E.domNode.parentNode!=null&&(E.domNode[s.DATA_KEY].mutations==null&&(E.domNode[s.DATA_KEY].mutations=[]),_&&g(E.parent))},m=function(E){E.domNode[s.DATA_KEY]==null||E.domNode[s.DATA_KEY].mutations==null||(E instanceof a.default&&E.children.forEach(m),E.optimize(v))},x=h,y=0;x.length>0;y+=1){if(y>=d)throw new Error("[Parchment] Maximum optimize iterations reached");for(x.forEach(function(E){var _=s.find(E.target,!0);_!=null&&(_.domNode===E.target&&(E.type==="childList"?(g(s.find(E.previousSibling,!1)),[].forEach.call(E.addedNodes,function(w){var S=s.find(w,!1);g(S,!1),S instanceof a.default&&S.children.forEach(function(T){g(T,!1)})})):E.type==="attributes"&&g(_.prev)),g(_))}),this.children.forEach(m),x=[].slice.call(this.observer.takeRecords()),p=x.slice();p.length>0;)h.push(p.pop())}},u.prototype.update=function(h,v){var b=this;v===void 0&&(v={}),h=h||this.observer.takeRecords(),h.map(function(p){var g=s.find(p.target,!0);return g==null?null:g.domNode[s.DATA_KEY].mutations==null?(g.domNode[s.DATA_KEY].mutations=[p],g):(g.domNode[s.DATA_KEY].mutations.push(p),null)}).forEach(function(p){p==null||p===b||p.domNode[s.DATA_KEY]==null||p.update(p.domNode[s.DATA_KEY].mutations||[],v)}),this.domNode[s.DATA_KEY].mutations!=null&&l.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,v),this.optimize(h,v)},u.blotName="scroll",u.defaultChild="block",u.scope=s.Scope.BLOCK_BLOT,u.tagName="DIV",u})(a.default);n.default=f}),(function(t,n,i){var o=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var h in u)u.hasOwnProperty(h)&&(l[h]=u[h])};return function(l,u){f(l,u);function h(){this.constructor=l}l.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=i(18),s=i(1);function c(f,l){if(Object.keys(f).length!==Object.keys(l).length)return!1;for(var u in f)if(f[u]!==l[u])return!1;return!0}var d=(function(f){o(l,f);function l(){return f!==null&&f.apply(this,arguments)||this}return l.formats=function(u){if(u.tagName!==l.tagName)return f.formats.call(this,u)},l.prototype.format=function(u,h){var v=this;u===this.statics.blotName&&!h?(this.children.forEach(function(b){b instanceof a.default||(b=b.wrap(l.blotName,!0)),v.attributes.copy(b)}),this.unwrap()):f.prototype.format.call(this,u,h)},l.prototype.formatAt=function(u,h,v,b){if(this.formats()[v]!=null||s.query(v,s.Scope.ATTRIBUTE)){var p=this.isolate(u,h);p.format(v,b)}else f.prototype.formatAt.call(this,u,h,v,b)},l.prototype.optimize=function(u){f.prototype.optimize.call(this,u);var h=this.formats();if(Object.keys(h).length===0)return this.unwrap();var v=this.next;v instanceof l&&v.prev===this&&c(h,v.formats())&&(v.moveChildren(this),v.remove())},l.blotName="inline",l.scope=s.Scope.INLINE_BLOT,l.tagName="SPAN",l})(a.default);n.default=d}),(function(t,n,i){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=i(18),s=i(1),c=(function(d){o(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.formats=function(l){var u=s.query(f.blotName).tagName;if(l.tagName!==u)return d.formats.call(this,l)},f.prototype.format=function(l,u){s.query(l,s.Scope.BLOCK)!=null&&(l===this.statics.blotName&&!u?this.replaceWith(f.blotName):d.prototype.format.call(this,l,u))},f.prototype.formatAt=function(l,u,h,v){s.query(h,s.Scope.BLOCK)!=null?this.format(h,v):d.prototype.formatAt.call(this,l,u,h,v)},f.prototype.insertAt=function(l,u,h){if(h==null||s.query(u,s.Scope.INLINE)!=null)d.prototype.insertAt.call(this,l,u,h);else{var v=this.split(l),b=s.create(u,h);v.parent.insertBefore(b,v)}},f.prototype.update=function(l,u){navigator.userAgent.match(/Trident/)?this.build():d.prototype.update.call(this,l,u)},f.blotName="block",f.scope=s.Scope.BLOCK_BLOT,f.tagName="P",f})(a.default);n.default=c}),(function(t,n,i){var o=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var l in f)f.hasOwnProperty(l)&&(d[l]=f[l])};return function(d,f){c(d,f);function l(){this.constructor=d}d.prototype=f===null?Object.create(f):(l.prototype=f.prototype,new l)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=i(19),s=(function(c){o(d,c);function d(){return c!==null&&c.apply(this,arguments)||this}return d.formats=function(f){},d.prototype.format=function(f,l){c.prototype.formatAt.call(this,0,this.length(),f,l)},d.prototype.formatAt=function(f,l,u,h){f===0&&l===this.length()?this.format(u,h):c.prototype.formatAt.call(this,f,l,u,h)},d.prototype.formats=function(){return this.statics.formats(this.domNode)},d})(a.default);n.default=s}),(function(t,n,i){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(n,"__esModule",{value:!0});var a=i(19),s=i(1),c=(function(d){o(f,d);function f(l){var u=d.call(this,l)||this;return u.text=u.statics.value(u.domNode),u}return f.create=function(l){return document.createTextNode(l)},f.value=function(l){var u=l.data;return u.normalize&&(u=u.normalize()),u},f.prototype.deleteAt=function(l,u){this.domNode.data=this.text=this.text.slice(0,l)+this.text.slice(l+u)},f.prototype.index=function(l,u){return this.domNode===l?u:-1},f.prototype.insertAt=function(l,u,h){h==null?(this.text=this.text.slice(0,l)+u+this.text.slice(l),this.domNode.data=this.text):d.prototype.insertAt.call(this,l,u,h)},f.prototype.length=function(){return this.text.length},f.prototype.optimize=function(l){d.prototype.optimize.call(this,l),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof f&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},f.prototype.position=function(l,u){return[this.domNode,l]},f.prototype.split=function(l,u){if(u===void 0&&(u=!1),!u){if(l===0)return this;if(l===this.length())return this.next}var h=s.create(this.domNode.splitText(l));return this.parent.insertBefore(h,this.next),this.text=this.statics.value(this.domNode),h},f.prototype.update=function(l,u){var h=this;l.some(function(v){return v.type==="characterData"&&v.target===h.domNode})&&(this.text=this.statics.value(this.domNode))},f.prototype.value=function(){return this.text},f.blotName="text",f.scope=s.Scope.INLINE_BLOT,f})(a.default);n.default=c}),(function(t,n,i){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(s,c){return arguments.length>1&&!this.contains(s)==!c?c:a.call(this,s)}}String.prototype.startsWith||(String.prototype.startsWith=function(s,c){return c=c||0,this.substr(c,s.length)===s}),String.prototype.endsWith||(String.prototype.endsWith=function(s,c){var d=this.toString();(typeof c!="number"||!isFinite(c)||Math.floor(c)!==c||c>d.length)&&(c=d.length),c-=s.length;var f=d.indexOf(s,c);return f!==-1&&f===c}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(c){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof c!="function")throw new TypeError("predicate must be a function");for(var d=Object(this),f=d.length>>>0,l=arguments[1],u,h=0;h<f;h++)if(u=d[h],c.call(l,u,h,d))return u}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(t,n){var i=-1,o=1,a=0;function s(y,E,_){if(y==E)return y?[[a,y]]:[];(_<0||y.length<_)&&(_=null);var w=l(y,E),S=y.substring(0,w);y=y.substring(w),E=E.substring(w),w=u(y,E);var T=y.substring(y.length-w);y=y.substring(0,y.length-w),E=E.substring(0,E.length-w);var O=c(y,E);return S&&O.unshift([a,S]),T&&O.push([a,T]),v(O),_!=null&&(O=g(O,_)),O=m(O),O}function c(y,E){var _;if(!y)return[[o,E]];if(!E)return[[i,y]];var w=y.length>E.length?y:E,S=y.length>E.length?E:y,T=w.indexOf(S);if(T!=-1)return _=[[o,w.substring(0,T)],[a,S],[o,w.substring(T+S.length)]],y.length>E.length&&(_[0][0]=_[2][0]=i),_;if(S.length==1)return[[i,y],[o,E]];var O=h(y,E);if(O){var C=O[0],R=O[1],j=O[2],A=O[3],I=O[4],$=s(C,j),H=s(R,A);return $.concat([[a,I]],H)}return d(y,E)}function d(y,E){for(var _=y.length,w=E.length,S=Math.ceil((_+w)/2),T=S,O=2*S,C=new Array(O),R=new Array(O),j=0;j<O;j++)C[j]=-1,R[j]=-1;C[T+1]=0,R[T+1]=0;for(var A=_-w,I=A%2!=0,$=0,H=0,G=0,D=0,F=0;F<S;F++){for(var P=-F+$;P<=F-H;P+=2){var L=T+P,B;P==-F||P!=F&&C[L-1]<C[L+1]?B=C[L+1]:B=C[L-1]+1;for(var X=B-P;B<_&&X<w&&y.charAt(B)==E.charAt(X);)B++,X++;if(C[L]=B,B>_)H+=2;else if(X>w)$+=2;else if(I){var W=T+A-P;if(W>=0&&W<O&&R[W]!=-1){var q=_-R[W];if(B>=q)return f(y,E,B,X)}}}for(var N=-F+G;N<=F-D;N+=2){var W=T+N,q;N==-F||N!=F&&R[W-1]<R[W+1]?q=R[W+1]:q=R[W-1]+1;for(var V=q-N;q<_&&V<w&&y.charAt(_-q-1)==E.charAt(w-V-1);)q++,V++;if(R[W]=q,q>_)D+=2;else if(V>w)G+=2;else if(!I){var L=T+A-N;if(L>=0&&L<O&&C[L]!=-1){var B=C[L],X=T+B-L;if(q=_-q,B>=q)return f(y,E,B,X)}}}}return[[i,y],[o,E]]}function f(y,E,_,w){var S=y.substring(0,_),T=E.substring(0,w),O=y.substring(_),C=E.substring(w),R=s(S,T),j=s(O,C);return R.concat(j)}function l(y,E){if(!y||!E||y.charAt(0)!=E.charAt(0))return 0;for(var _=0,w=Math.min(y.length,E.length),S=w,T=0;_<S;)y.substring(T,S)==E.substring(T,S)?(_=S,T=_):w=S,S=Math.floor((w-_)/2+_);return S}function u(y,E){if(!y||!E||y.charAt(y.length-1)!=E.charAt(E.length-1))return 0;for(var _=0,w=Math.min(y.length,E.length),S=w,T=0;_<S;)y.substring(y.length-S,y.length-T)==E.substring(E.length-S,E.length-T)?(_=S,T=_):w=S,S=Math.floor((w-_)/2+_);return S}function h(y,E){var _=y.length>E.length?y:E,w=y.length>E.length?E:y;if(_.length<4||w.length*2<_.length)return null;function S(H,G,D){for(var F=H.substring(D,D+Math.floor(H.length/4)),P=-1,L="",B,X,W,q;(P=G.indexOf(F,P+1))!=-1;){var N=l(H.substring(D),G.substring(P)),V=u(H.substring(0,D),G.substring(0,P));L.length<V+N&&(L=G.substring(P-V,P)+G.substring(P,P+N),B=H.substring(0,D-V),X=H.substring(D+N),W=G.substring(0,P-V),q=G.substring(P+N))}return L.length*2>=H.length?[B,X,W,q,L]:null}var T=S(_,w,Math.ceil(_.length/4)),O=S(_,w,Math.ceil(_.length/2)),C;if(!T&&!O)return null;O?T?C=T[4].length>O[4].length?T:O:C=O:C=T;var R,j,A,I;y.length>E.length?(R=C[0],j=C[1],A=C[2],I=C[3]):(A=C[0],I=C[1],R=C[2],j=C[3]);var $=C[4];return[R,j,A,I,$]}function v(y){y.push([a,""]);for(var E=0,_=0,w=0,S="",T="",O;E<y.length;)switch(y[E][0]){case o:w++,T+=y[E][1],E++;break;case i:_++,S+=y[E][1],E++;break;case a:_+w>1?(_!==0&&w!==0&&(O=l(T,S),O!==0&&(E-_-w>0&&y[E-_-w-1][0]==a?y[E-_-w-1][1]+=T.substring(0,O):(y.splice(0,0,[a,T.substring(0,O)]),E++),T=T.substring(O),S=S.substring(O)),O=u(T,S),O!==0&&(y[E][1]=T.substring(T.length-O)+y[E][1],T=T.substring(0,T.length-O),S=S.substring(0,S.length-O))),_===0?y.splice(E-w,_+w,[o,T]):w===0?y.splice(E-_,_+w,[i,S]):y.splice(E-_-w,_+w,[i,S],[o,T]),E=E-_-w+(_?1:0)+(w?1:0)+1):E!==0&&y[E-1][0]==a?(y[E-1][1]+=y[E][1],y.splice(E,1)):E++,w=0,_=0,S="",T="";break}y[y.length-1][1]===""&&y.pop();var C=!1;for(E=1;E<y.length-1;)y[E-1][0]==a&&y[E+1][0]==a&&(y[E][1].substring(y[E][1].length-y[E-1][1].length)==y[E-1][1]?(y[E][1]=y[E-1][1]+y[E][1].substring(0,y[E][1].length-y[E-1][1].length),y[E+1][1]=y[E-1][1]+y[E+1][1],y.splice(E-1,1),C=!0):y[E][1].substring(0,y[E+1][1].length)==y[E+1][1]&&(y[E-1][1]+=y[E+1][1],y[E][1]=y[E][1].substring(y[E+1][1].length)+y[E+1][1],y.splice(E+1,1),C=!0)),E++;C&&v(y)}var b=s;b.INSERT=o,b.DELETE=i,b.EQUAL=a,t.exports=b;function p(y,E){if(E===0)return[a,y];for(var _=0,w=0;w<y.length;w++){var S=y[w];if(S[0]===i||S[0]===a){var T=_+S[1].length;if(E===T)return[w+1,y];if(E<T){y=y.slice();var O=E-_,C=[S[0],S[1].slice(0,O)],R=[S[0],S[1].slice(O)];return y.splice(w,1,C,R),[w+1,y]}else _=T}}throw new Error("cursor_pos is out of bounds!")}function g(y,E){var _=p(y,E),w=_[1],S=_[0],T=w[S],O=w[S+1];if(T==null)return y;if(T[0]!==a)return y;if(O!=null&&T[1]+O[1]===O[1]+T[1])return w.splice(S,2,O,T),x(w,S,2);if(O!=null&&O[1].indexOf(T[1])===0){w.splice(S,2,[O[0],T[1]],[0,T[1]]);var C=O[1].slice(T[1].length);return C.length>0&&w.splice(S+2,0,[O[0],C]),x(w,S,3)}else return y}function m(y){for(var E=!1,_=function(O){return O.charCodeAt(0)>=56320&&O.charCodeAt(0)<=57343},w=function(O){return O.charCodeAt(O.length-1)>=55296&&O.charCodeAt(O.length-1)<=56319},S=2;S<y.length;S+=1)y[S-2][0]===a&&w(y[S-2][1])&&y[S-1][0]===i&&_(y[S-1][1])&&y[S][0]===o&&_(y[S][1])&&(E=!0,y[S-1][1]=y[S-2][1].slice(-1)+y[S-1][1],y[S][1]=y[S-2][1].slice(-1)+y[S][1],y[S-2][1]=y[S-2][1].slice(0,-1));if(!E)return y;for(var T=[],S=0;S<y.length;S+=1)y[S][1].length>0&&T.push(y[S]);return T}function x(y,E,_){for(var w=E+_-1;w>=0&&w>=E-1;w--)if(w+1<y.length){var S=y[w],T=y[w+1];S[0]===T[1]&&y.splice(w,2,[S[0],S[1]+T[1]])}return y}}),(function(t,n){n=t.exports=typeof Object.keys=="function"?Object.keys:i,n.shim=i;function i(o){var a=[];for(var s in o)a.push(s);return a}}),(function(t,n){var i=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";n=t.exports=i?o:a,n.supported=o;function o(s){return Object.prototype.toString.call(s)=="[object Arguments]"}n.unsupported=a;function a(s){return s&&typeof s=="object"&&typeof s.length=="number"&&Object.prototype.hasOwnProperty.call(s,"callee")&&!Object.prototype.propertyIsEnumerable.call(s,"callee")||!1}}),(function(t,n){var i=Object.prototype.hasOwnProperty,o="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(o=!1));function s(d,f,l){this.fn=d,this.context=f,this.once=l||!1}function c(){this._events=new a,this._eventsCount=0}c.prototype.eventNames=function(){var f=[],l,u;if(this._eventsCount===0)return f;for(u in l=this._events)i.call(l,u)&&f.push(o?u.slice(1):u);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(l)):f},c.prototype.listeners=function(f,l){var u=o?o+f:f,h=this._events[u];if(l)return!!h;if(!h)return[];if(h.fn)return[h.fn];for(var v=0,b=h.length,p=new Array(b);v<b;v++)p[v]=h[v].fn;return p},c.prototype.emit=function(f,l,u,h,v,b){var p=o?o+f:f;if(!this._events[p])return!1;var g=this._events[p],m=arguments.length,x,y;if(g.fn){switch(g.once&&this.removeListener(f,g.fn,void 0,!0),m){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,l),!0;case 3:return g.fn.call(g.context,l,u),!0;case 4:return g.fn.call(g.context,l,u,h),!0;case 5:return g.fn.call(g.context,l,u,h,v),!0;case 6:return g.fn.call(g.context,l,u,h,v,b),!0}for(y=1,x=new Array(m-1);y<m;y++)x[y-1]=arguments[y];g.fn.apply(g.context,x)}else{var E=g.length,_;for(y=0;y<E;y++)switch(g[y].once&&this.removeListener(f,g[y].fn,void 0,!0),m){case 1:g[y].fn.call(g[y].context);break;case 2:g[y].fn.call(g[y].context,l);break;case 3:g[y].fn.call(g[y].context,l,u);break;case 4:g[y].fn.call(g[y].context,l,u,h);break;default:if(!x)for(_=1,x=new Array(m-1);_<m;_++)x[_-1]=arguments[_];g[y].fn.apply(g[y].context,x)}}return!0},c.prototype.on=function(f,l,u){var h=new s(l,u||this),v=o?o+f:f;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],h]:this._events[v].push(h):(this._events[v]=h,this._eventsCount++),this},c.prototype.once=function(f,l,u){var h=new s(l,u||this,!0),v=o?o+f:f;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],h]:this._events[v].push(h):(this._events[v]=h,this._eventsCount++),this},c.prototype.removeListener=function(f,l,u,h){var v=o?o+f:f;if(!this._events[v])return this;if(!l)return--this._eventsCount===0?this._events=new a:delete this._events[v],this;var b=this._events[v];if(b.fn)b.fn===l&&(!h||b.once)&&(!u||b.context===u)&&(--this._eventsCount===0?this._events=new a:delete this._events[v]);else{for(var p=0,g=[],m=b.length;p<m;p++)(b[p].fn!==l||h&&!b[p].once||u&&b[p].context!==u)&&g.push(b[p]);g.length?this._events[v]=g.length===1?g[0]:g:--this._eventsCount===0?this._events=new a:delete this._events[v]}return this},c.prototype.removeAllListeners=function(f){var l;return f?(l=o?o+f:f,this._events[l]&&(--this._eventsCount===0?this._events=new a:delete this._events[l])):(this._events=new a,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=o,c.EventEmitter=c,typeof t<"u"&&(t.exports=c)}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.matchText=n.matchSpacing=n.matchNewline=n.matchBlot=n.matchAttributor=n.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},a=(function(){function Q(ee,ue){var le=[],ae=!0,pe=!1,fe=void 0;try{for(var ge=ee[Symbol.iterator](),Re;!(ae=(Re=ge.next()).done)&&(le.push(Re.value),!(ue&&le.length===ue));ae=!0);}catch(qe){pe=!0,fe=qe}finally{try{!ae&&ge.return&&ge.return()}finally{if(pe)throw fe}}return le}return function(ee,ue){if(Array.isArray(ee))return ee;if(Symbol.iterator in Object(ee))return Q(ee,ue);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function Q(ee,ue){for(var le=0;le<ue.length;le++){var ae=ue[le];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(ee,ae.key,ae)}}return function(ee,ue,le){return ue&&Q(ee.prototype,ue),le&&Q(ee,le),ee}})(),c=i(3),d=R(c),f=i(2),l=R(f),u=i(0),h=R(u),v=i(5),b=R(v),p=i(10),g=R(p),m=i(9),x=R(m),y=i(36),E=i(37),_=i(13),w=R(_),S=i(26),T=i(38),O=i(39),C=i(40);function R(Q){return Q&&Q.__esModule?Q:{default:Q}}function j(Q,ee,ue){return ee in Q?Object.defineProperty(Q,ee,{value:ue,enumerable:!0,configurable:!0,writable:!0}):Q[ee]=ue,Q}function A(Q,ee){if(!(Q instanceof ee))throw new TypeError("Cannot call a class as a function")}function I(Q,ee){if(!Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee&&(typeof ee=="object"||typeof ee=="function")?ee:Q}function $(Q,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ee);Q.prototype=Object.create(ee&&ee.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),ee&&(Object.setPrototypeOf?Object.setPrototypeOf(Q,ee):Q.__proto__=ee)}var H=(0,g.default)("quill:clipboard"),G="__ql-matcher",D=[[Node.TEXT_NODE,se],[Node.TEXT_NODE,re],["br",J],[Node.ELEMENT_NODE,re],[Node.ELEMENT_NODE,K],[Node.ELEMENT_NODE,de],[Node.ELEMENT_NODE,U],[Node.ELEMENT_NODE,oe],["li",ce],["b",V.bind(V,"bold")],["i",V.bind(V,"italic")],["style",ne]],F=[y.AlignAttribute,T.DirectionAttribute].reduce(function(Q,ee){return Q[ee.keyName]=ee,Q},{}),P=[y.AlignStyle,E.BackgroundStyle,S.ColorStyle,T.DirectionStyle,O.FontStyle,C.SizeStyle].reduce(function(Q,ee){return Q[ee.keyName]=ee,Q},{}),L=(function(Q){$(ee,Q);function ee(ue,le){A(this,ee);var ae=I(this,(ee.__proto__||Object.getPrototypeOf(ee)).call(this,ue,le));return ae.quill.root.addEventListener("paste",ae.onPaste.bind(ae)),ae.container=ae.quill.addContainer("ql-clipboard"),ae.container.setAttribute("contenteditable",!0),ae.container.setAttribute("tabindex",-1),ae.matchers=[],D.concat(ae.options.matchers).forEach(function(pe){var fe=a(pe,2),ge=fe[0],Re=fe[1];!le.matchVisual&&Re===de||ae.addMatcher(ge,Re)}),ae}return s(ee,[{key:"addMatcher",value:function(le,ae){this.matchers.push([le,ae])}},{key:"convert",value:function(le){if(typeof le=="string")return this.container.innerHTML=le.replace(/\>\r?\n +\</g,"><"),this.convert();var ae=this.quill.getFormat(this.quill.selection.savedRange.index);if(ae[w.default.blotName]){var pe=this.container.innerText;return this.container.innerHTML="",new l.default().insert(pe,j({},w.default.blotName,ae[w.default.blotName]))}var fe=this.prepareMatching(),ge=a(fe,2),Re=ge[0],qe=ge[1],Ce=N(this.container,Re,qe);return W(Ce,`
46
+ `)&&Ce.ops[Ce.ops.length-1].attributes==null&&(Ce=Ce.compose(new l.default().retain(Ce.length()-1).delete(1))),H.log("convert",this.container.innerHTML,Ce),this.container.innerHTML="",Ce}},{key:"dangerouslyPasteHTML",value:function(le,ae){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b.default.sources.API;if(typeof le=="string")this.quill.setContents(this.convert(le),ae),this.quill.setSelection(0,b.default.sources.SILENT);else{var fe=this.convert(ae);this.quill.updateContents(new l.default().retain(le).concat(fe),pe),this.quill.setSelection(le+fe.length(),b.default.sources.SILENT)}}},{key:"onPaste",value:function(le){var ae=this;if(!(le.defaultPrevented||!this.quill.isEnabled())){var pe=this.quill.getSelection(),fe=new l.default().retain(pe.index),ge=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(b.default.sources.SILENT),setTimeout(function(){fe=fe.concat(ae.convert()).delete(pe.length),ae.quill.updateContents(fe,b.default.sources.USER),ae.quill.setSelection(fe.length()-pe.length,b.default.sources.SILENT),ae.quill.scrollingContainer.scrollTop=ge,ae.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var le=this,ae=[],pe=[];return this.matchers.forEach(function(fe){var ge=a(fe,2),Re=ge[0],qe=ge[1];switch(Re){case Node.TEXT_NODE:pe.push(qe);break;case Node.ELEMENT_NODE:ae.push(qe);break;default:[].forEach.call(le.container.querySelectorAll(Re),function(Ce){Ce[G]=Ce[G]||[],Ce[G].push(qe)});break}}),[ae,pe]}}]),ee})(x.default);L.DEFAULTS={matchers:[],matchVisual:!0};function B(Q,ee,ue){return(typeof ee>"u"?"undefined":o(ee))==="object"?Object.keys(ee).reduce(function(le,ae){return B(le,ae,ee[ae])},Q):Q.reduce(function(le,ae){return ae.attributes&&ae.attributes[ee]?le.push(ae):le.insert(ae.insert,(0,d.default)({},j({},ee,ue),ae.attributes))},new l.default)}function X(Q){if(Q.nodeType!==Node.ELEMENT_NODE)return{};var ee="__ql-computed-style";return Q[ee]||(Q[ee]=window.getComputedStyle(Q))}function W(Q,ee){for(var ue="",le=Q.ops.length-1;le>=0&&ue.length<ee.length;--le){var ae=Q.ops[le];if(typeof ae.insert!="string")break;ue=ae.insert+ue}return ue.slice(-1*ee.length)===ee}function q(Q){if(Q.childNodes.length===0)return!1;var ee=X(Q);return["block","list-item"].indexOf(ee.display)>-1}function N(Q,ee,ue){return Q.nodeType===Q.TEXT_NODE?ue.reduce(function(le,ae){return ae(Q,le)},new l.default):Q.nodeType===Q.ELEMENT_NODE?[].reduce.call(Q.childNodes||[],function(le,ae){var pe=N(ae,ee,ue);return ae.nodeType===Q.ELEMENT_NODE&&(pe=ee.reduce(function(fe,ge){return ge(ae,fe)},pe),pe=(ae[G]||[]).reduce(function(fe,ge){return ge(ae,fe)},pe)),le.concat(pe)},new l.default):new l.default}function V(Q,ee,ue){return B(ue,Q,!0)}function U(Q,ee){var ue=h.default.Attributor.Attribute.keys(Q),le=h.default.Attributor.Class.keys(Q),ae=h.default.Attributor.Style.keys(Q),pe={};return ue.concat(le).concat(ae).forEach(function(fe){var ge=h.default.query(fe,h.default.Scope.ATTRIBUTE);ge!=null&&(pe[ge.attrName]=ge.value(Q),pe[ge.attrName])||(ge=F[fe],ge!=null&&(ge.attrName===fe||ge.keyName===fe)&&(pe[ge.attrName]=ge.value(Q)||void 0),ge=P[fe],ge!=null&&(ge.attrName===fe||ge.keyName===fe)&&(ge=P[fe],pe[ge.attrName]=ge.value(Q)||void 0))}),Object.keys(pe).length>0&&(ee=B(ee,pe)),ee}function K(Q,ee){var ue=h.default.query(Q);if(ue==null)return ee;if(ue.prototype instanceof h.default.Embed){var le={},ae=ue.value(Q);ae!=null&&(le[ue.blotName]=ae,ee=new l.default().insert(le,ue.formats(Q)))}else typeof ue.formats=="function"&&(ee=B(ee,ue.blotName,ue.formats(Q)));return ee}function J(Q,ee){return W(ee,`
47
+ `)||ee.insert(`
48
+ `),ee}function ne(){return new l.default}function ce(Q,ee){var ue=h.default.query(Q);if(ue==null||ue.blotName!=="list-item"||!W(ee,`
49
+ `))return ee;for(var le=-1,ae=Q.parentNode;!ae.classList.contains("ql-clipboard");)(h.default.query(ae)||{}).blotName==="list"&&(le+=1),ae=ae.parentNode;return le<=0?ee:ee.compose(new l.default().retain(ee.length()-1).retain(1,{indent:le}))}function re(Q,ee){return W(ee,`
50
+ `)||(q(Q)||ee.length()>0&&Q.nextSibling&&q(Q.nextSibling))&&ee.insert(`
51
+ `),ee}function de(Q,ee){if(q(Q)&&Q.nextElementSibling!=null&&!W(ee,`
52
+
53
+ `)){var ue=Q.offsetHeight+parseFloat(X(Q).marginTop)+parseFloat(X(Q).marginBottom);Q.nextElementSibling.offsetTop>Q.offsetTop+ue*1.5&&ee.insert(`
54
+ `)}return ee}function oe(Q,ee){var ue={},le=Q.style||{};return le.fontStyle&&X(Q).fontStyle==="italic"&&(ue.italic=!0),le.fontWeight&&(X(Q).fontWeight.startsWith("bold")||parseInt(X(Q).fontWeight)>=700)&&(ue.bold=!0),Object.keys(ue).length>0&&(ee=B(ee,ue)),parseFloat(le.textIndent||0)>0&&(ee=new l.default().insert(" ").concat(ee)),ee}function se(Q,ee){var ue=Q.data;if(Q.parentNode.tagName==="O:P")return ee.insert(ue.trim());if(ue.trim().length===0&&Q.parentNode.classList.contains("ql-clipboard"))return ee;if(!X(Q.parentNode).whiteSpace.startsWith("pre")){var le=function(pe,fe){return fe=fe.replace(/[^\u00a0]/g,""),fe.length<1&&pe?" ":fe};ue=ue.replace(/\r\n/g," ").replace(/\n/g," "),ue=ue.replace(/\s\s+/g,le.bind(le,!0)),(Q.previousSibling==null&&q(Q.parentNode)||Q.previousSibling!=null&&q(Q.previousSibling))&&(ue=ue.replace(/^\s+/,le.bind(le,!1))),(Q.nextSibling==null&&q(Q.parentNode)||Q.nextSibling!=null&&q(Q.nextSibling))&&(ue=ue.replace(/\s+$/,le.bind(le,!1)))}return ee.insert(ue)}n.default=L,n.matchAttributor=U,n.matchBlot=K,n.matchNewline=re,n.matchSpacing=de,n.matchText=se}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function v(b,p){for(var g=0;g<p.length;g++){var m=p[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(b,m.key,m)}}return function(b,p,g){return p&&v(b.prototype,p),g&&v(b,g),b}})(),a=function v(b,p,g){b===null&&(b=Function.prototype);var m=Object.getOwnPropertyDescriptor(b,p);if(m===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:v(x,p,g)}else{if("value"in m)return m.value;var y=m.get;return y===void 0?void 0:y.call(g)}},s=i(6),c=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function l(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function u(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var h=(function(v){u(b,v);function b(){return f(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"optimize",value:function(g){a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,g),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),b})(c.default);h.blotName="bold",h.tagName=["STRONG","B"],n.default=h}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.addControls=n.default=void 0;var o=(function(){function C(R,j){var A=[],I=!0,$=!1,H=void 0;try{for(var G=R[Symbol.iterator](),D;!(I=(D=G.next()).done)&&(A.push(D.value),!(j&&A.length===j));I=!0);}catch(F){$=!0,H=F}finally{try{!I&&G.return&&G.return()}finally{if($)throw H}}return A}return function(R,j){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return C(R,j);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function C(R,j){for(var A=0;A<j.length;A++){var I=j[A];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(R,I.key,I)}}return function(R,j,A){return j&&C(R.prototype,j),A&&C(R,A),R}})(),s=i(2),c=g(s),d=i(0),f=g(d),l=i(5),u=g(l),h=i(10),v=g(h),b=i(9),p=g(b);function g(C){return C&&C.__esModule?C:{default:C}}function m(C,R,j){return R in C?Object.defineProperty(C,R,{value:j,enumerable:!0,configurable:!0,writable:!0}):C[R]=j,C}function x(C,R){if(!(C instanceof R))throw new TypeError("Cannot call a class as a function")}function y(C,R){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:C}function E(C,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);C.prototype=Object.create(R&&R.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(C,R):C.__proto__=R)}var _=(0,v.default)("quill:toolbar"),w=(function(C){E(R,C);function R(j,A){x(this,R);var I=y(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,j,A));if(Array.isArray(I.options.container)){var $=document.createElement("div");T($,I.options.container),j.container.parentNode.insertBefore($,j.container),I.container=$}else typeof I.options.container=="string"?I.container=document.querySelector(I.options.container):I.container=I.options.container;if(!(I.container instanceof HTMLElement)){var H;return H=_.error("Container required for toolbar",I.options),y(I,H)}return I.container.classList.add("ql-toolbar"),I.controls=[],I.handlers={},Object.keys(I.options.handlers).forEach(function(G){I.addHandler(G,I.options.handlers[G])}),[].forEach.call(I.container.querySelectorAll("button, select"),function(G){I.attach(G)}),I.quill.on(u.default.events.EDITOR_CHANGE,function(G,D){G===u.default.events.SELECTION_CHANGE&&I.update(D)}),I.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){var G=I.quill.selection.getRange(),D=o(G,1),F=D[0];I.update(F)}),I}return a(R,[{key:"addHandler",value:function(A,I){this.handlers[A]=I}},{key:"attach",value:function(A){var I=this,$=[].find.call(A.classList,function(G){return G.indexOf("ql-")===0});if($){if($=$.slice(3),A.tagName==="BUTTON"&&A.setAttribute("type","button"),this.handlers[$]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[$]==null){_.warn("ignoring attaching to disabled format",$,A);return}if(f.default.query($)==null){_.warn("ignoring attaching to nonexistent format",$,A);return}}var H=A.tagName==="SELECT"?"change":"click";A.addEventListener(H,function(G){var D=void 0;if(A.tagName==="SELECT"){if(A.selectedIndex<0)return;var F=A.options[A.selectedIndex];F.hasAttribute("selected")?D=!1:D=F.value||!1}else A.classList.contains("ql-active")?D=!1:D=A.value||!A.hasAttribute("value"),G.preventDefault();I.quill.focus();var P=I.quill.selection.getRange(),L=o(P,1),B=L[0];if(I.handlers[$]!=null)I.handlers[$].call(I,D);else if(f.default.query($).prototype instanceof f.default.Embed){if(D=prompt("Enter "+$),!D)return;I.quill.updateContents(new c.default().retain(B.index).delete(B.length).insert(m({},$,D)),u.default.sources.USER)}else I.quill.format($,D,u.default.sources.USER);I.update(B)}),this.controls.push([$,A])}}},{key:"update",value:function(A){var I=A==null?{}:this.quill.getFormat(A);this.controls.forEach(function($){var H=o($,2),G=H[0],D=H[1];if(D.tagName==="SELECT"){var F=void 0;if(A==null)F=null;else if(I[G]==null)F=D.querySelector("option[selected]");else if(!Array.isArray(I[G])){var P=I[G];typeof P=="string"&&(P=P.replace(/\"/g,'\\"')),F=D.querySelector('option[value="'+P+'"]')}F==null?(D.value="",D.selectedIndex=-1):F.selected=!0}else if(A==null)D.classList.remove("ql-active");else if(D.hasAttribute("value")){var L=I[G]===D.getAttribute("value")||I[G]!=null&&I[G].toString()===D.getAttribute("value")||I[G]==null&&!D.getAttribute("value");D.classList.toggle("ql-active",L)}else D.classList.toggle("ql-active",I[G]!=null)})}}]),R})(p.default);w.DEFAULTS={};function S(C,R,j){var A=document.createElement("button");A.setAttribute("type","button"),A.classList.add("ql-"+R),j!=null&&(A.value=j),C.appendChild(A)}function T(C,R){Array.isArray(R[0])||(R=[R]),R.forEach(function(j){var A=document.createElement("span");A.classList.add("ql-formats"),j.forEach(function(I){if(typeof I=="string")S(A,I);else{var $=Object.keys(I)[0],H=I[$];Array.isArray(H)?O(A,$,H):S(A,$,H)}}),C.appendChild(A)})}function O(C,R,j){var A=document.createElement("select");A.classList.add("ql-"+R),j.forEach(function(I){var $=document.createElement("option");I!==!1?$.setAttribute("value",I):$.setAttribute("selected","selected"),A.appendChild($)}),C.appendChild(A)}w.DEFAULTS={container:null,handlers:{clean:function(){var R=this,j=this.quill.getSelection();if(j!=null)if(j.length==0){var A=this.quill.getFormat();Object.keys(A).forEach(function(I){f.default.query(I,f.default.Scope.INLINE)!=null&&R.quill.format(I,!1)})}else this.quill.removeFormat(j,u.default.sources.USER)},direction:function(R){var j=this.quill.getFormat().align;R==="rtl"&&j==null?this.quill.format("align","right",u.default.sources.USER):!R&&j==="right"&&this.quill.format("align",!1,u.default.sources.USER),this.quill.format("direction",R,u.default.sources.USER)},indent:function(R){var j=this.quill.getSelection(),A=this.quill.getFormat(j),I=parseInt(A.indent||0);if(R==="+1"||R==="-1"){var $=R==="+1"?1:-1;A.direction==="rtl"&&($*=-1),this.quill.format("indent",I+$,u.default.sources.USER)}},link:function(R){R===!0&&(R=prompt("Enter link URL:")),this.quill.format("link",R,u.default.sources.USER)},list:function(R){var j=this.quill.getSelection(),A=this.quill.getFormat(j);R==="check"?A.list==="checked"||A.list==="unchecked"?this.quill.format("list",!1,u.default.sources.USER):this.quill.format("list","unchecked",u.default.sources.USER):this.quill.format("list",R,u.default.sources.USER)}}},n.default=w,n.addControls=T}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function v(b,p){for(var g=0;g<p.length;g++){var m=p[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(b,m.key,m)}}return function(b,p,g){return p&&v(b.prototype,p),g&&v(b,g),b}})(),a=function v(b,p,g){b===null&&(b=Function.prototype);var m=Object.getOwnPropertyDescriptor(b,p);if(m===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:v(x,p,g)}else{if("value"in m)return m.value;var y=m.get;return y===void 0?void 0:y.call(g)}},s=i(28),c=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function l(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function u(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var h=(function(v){u(b,v);function b(p,g){f(this,b);var m=l(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,p));return m.label.innerHTML=g,m.container.classList.add("ql-color-picker"),[].slice.call(m.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")}),m}return o(b,[{key:"buildItem",value:function(g){var m=a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"buildItem",this).call(this,g);return m.style.backgroundColor=g.getAttribute("value")||"",m}},{key:"selectItem",value:function(g,m){a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"selectItem",this).call(this,g,m);var x=this.label.querySelector(".ql-color-label"),y=g&&g.getAttribute("data-value")||"";x&&(x.tagName==="line"?x.style.stroke=y:x.style.fill=y)}}]),b})(c.default);n.default=h}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function v(b,p){for(var g=0;g<p.length;g++){var m=p[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(b,m.key,m)}}return function(b,p,g){return p&&v(b.prototype,p),g&&v(b,g),b}})(),a=function v(b,p,g){b===null&&(b=Function.prototype);var m=Object.getOwnPropertyDescriptor(b,p);if(m===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:v(x,p,g)}else{if("value"in m)return m.value;var y=m.get;return y===void 0?void 0:y.call(g)}},s=i(28),c=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function l(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function u(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var h=(function(v){u(b,v);function b(p,g){f(this,b);var m=l(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,p));return m.container.classList.add("ql-icon-picker"),[].forEach.call(m.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=g[x.getAttribute("data-value")||""]}),m.defaultItem=m.container.querySelector(".ql-selected"),m.selectItem(m.defaultItem),m}return o(b,[{key:"selectItem",value:function(g,m){a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"selectItem",this).call(this,g,m),g=g||this.defaultItem,this.label.innerHTML=g.innerHTML}}]),b})(c.default);n.default=h}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function c(d,f){for(var l=0;l<f.length;l++){var u=f[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,u.key,u)}}return function(d,f,l){return f&&c(d.prototype,f),l&&c(d,l),d}})();function a(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}var s=(function(){function c(d,f){var l=this;a(this,c),this.quill=d,this.boundsContainer=f||document.body,this.root=d.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){l.root.style.marginTop=-1*l.quill.root.scrollTop+"px"}),this.hide()}return o(c,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(f){var l=f.left+f.width/2-this.root.offsetWidth/2,u=f.bottom+this.quill.root.scrollTop;this.root.style.left=l+"px",this.root.style.top=u+"px",this.root.classList.remove("ql-flip");var h=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),b=0;if(v.right>h.right&&(b=h.right-v.right,this.root.style.left=l+b+"px"),v.left<h.left&&(b=h.left-v.left,this.root.style.left=l+b+"px"),v.bottom>h.bottom){var p=v.bottom-v.top,g=f.bottom-f.top+p;this.root.style.top=u-g+"px",this.root.classList.add("ql-flip")}return b}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),c})();n.default=s}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function O(C,R){var j=[],A=!0,I=!1,$=void 0;try{for(var H=C[Symbol.iterator](),G;!(A=(G=H.next()).done)&&(j.push(G.value),!(R&&j.length===R));A=!0);}catch(D){I=!0,$=D}finally{try{!A&&H.return&&H.return()}finally{if(I)throw $}}return j}return function(C,R){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return O(C,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=function O(C,R,j){C===null&&(C=Function.prototype);var A=Object.getOwnPropertyDescriptor(C,R);if(A===void 0){var I=Object.getPrototypeOf(C);return I===null?void 0:O(I,R,j)}else{if("value"in A)return A.value;var $=A.get;return $===void 0?void 0:$.call(j)}},s=(function(){function O(C,R){for(var j=0;j<R.length;j++){var A=R[j];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(C,A.key,A)}}return function(C,R,j){return R&&O(C.prototype,R),j&&O(C,j),C}})(),c=i(3),d=x(c),f=i(8),l=x(f),u=i(43),h=x(u),v=i(27),b=x(v),p=i(15),g=i(41),m=x(g);function x(O){return O&&O.__esModule?O:{default:O}}function y(O,C){if(!(O instanceof C))throw new TypeError("Cannot call a class as a function")}function E(O,C){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:O}function _(O,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);O.prototype=Object.create(C&&C.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(O,C):O.__proto__=C)}var w=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],S=(function(O){_(C,O);function C(R,j){y(this,C),j.modules.toolbar!=null&&j.modules.toolbar.container==null&&(j.modules.toolbar.container=w);var A=E(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,R,j));return A.quill.container.classList.add("ql-snow"),A}return s(C,[{key:"extendToolbar",value:function(j){j.container.classList.add("ql-snow"),this.buildButtons([].slice.call(j.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(j.container.querySelectorAll("select")),m.default),this.tooltip=new T(this.quill,this.options.bounds),j.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(A,I){j.handlers.link.call(j,!I.format.link)})}}]),C})(h.default);S.DEFAULTS=(0,d.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){if(C){var R=this.quill.getSelection();if(R==null||R.length==0)return;var j=this.quill.getText(R);/^\S+@\S+\.\S+$/.test(j)&&j.indexOf("mailto:")!==0&&(j="mailto:"+j);var A=this.quill.theme.tooltip;A.edit("link",j)}else this.quill.format("link",!1)}}}}});var T=(function(O){_(C,O);function C(R,j){y(this,C);var A=E(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,R,j));return A.preview=A.root.querySelector("a.ql-preview"),A}return s(C,[{key:"listen",value:function(){var j=this;a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(A){j.root.classList.contains("ql-editing")?j.save():j.edit("link",j.preview.textContent),A.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(A){if(j.linkRange!=null){var I=j.linkRange;j.restoreFocus(),j.quill.formatText(I,"link",!1,l.default.sources.USER),delete j.linkRange}A.preventDefault(),j.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(A,I,$){if(A!=null){if(A.length===0&&$===l.default.sources.USER){var H=j.quill.scroll.descendant(b.default,A.index),G=o(H,2),D=G[0],F=G[1];if(D!=null){j.linkRange=new p.Range(A.index-F,D.length());var P=b.default.formats(D.domNode);j.preview.textContent=P,j.preview.setAttribute("href",P),j.show(),j.position(j.quill.getBounds(j.linkRange));return}}else delete j.linkRange;j.hide()}})}},{key:"show",value:function(){a(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),C})(u.BaseTooltip);T.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),n.default=S}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(29),a=ae(o),s=i(36),c=i(38),d=i(64),f=i(65),l=ae(f),u=i(66),h=ae(u),v=i(67),b=ae(v),p=i(37),g=i(26),m=i(39),x=i(40),y=i(56),E=ae(y),_=i(68),w=ae(_),S=i(27),T=ae(S),O=i(69),C=ae(O),R=i(70),j=ae(R),A=i(71),I=ae(A),$=i(72),H=ae($),G=i(73),D=ae(G),F=i(13),P=ae(F),L=i(74),B=ae(L),X=i(75),W=ae(X),q=i(57),N=ae(q),V=i(41),U=ae(V),K=i(28),J=ae(K),ne=i(59),ce=ae(ne),re=i(60),de=ae(re),oe=i(61),se=ae(oe),Q=i(108),ee=ae(Q),ue=i(62),le=ae(ue);function ae(pe){return pe&&pe.__esModule?pe:{default:pe}}a.default.register({"attributors/attribute/direction":c.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":g.ColorClass,"attributors/class/direction":c.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":x.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":g.ColorStyle,"attributors/style/direction":c.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":x.SizeStyle},!0),a.default.register({"formats/align":s.AlignClass,"formats/direction":c.DirectionClass,"formats/indent":d.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":g.ColorStyle,"formats/font":m.FontClass,"formats/size":x.SizeClass,"formats/blockquote":l.default,"formats/code-block":P.default,"formats/header":h.default,"formats/list":b.default,"formats/bold":E.default,"formats/code":F.Code,"formats/italic":w.default,"formats/link":T.default,"formats/script":C.default,"formats/strike":j.default,"formats/underline":I.default,"formats/image":H.default,"formats/video":D.default,"formats/list/item":v.ListItem,"modules/formula":B.default,"modules/syntax":W.default,"modules/toolbar":N.default,"themes/bubble":ee.default,"themes/snow":le.default,"ui/icons":U.default,"ui/picker":J.default,"ui/icon-picker":de.default,"ui/color-picker":ce.default,"ui/tooltip":se.default},!0),n.default=a.default}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var o=(function(){function b(p,g){for(var m=0;m<g.length;m++){var x=g[m];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(p,x.key,x)}}return function(p,g,m){return g&&b(p.prototype,g),m&&b(p,m),p}})(),a=function b(p,g,m){p===null&&(p=Function.prototype);var x=Object.getOwnPropertyDescriptor(p,g);if(x===void 0){var y=Object.getPrototypeOf(p);return y===null?void 0:b(y,g,m)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(m)}},s=i(0),c=d(s);function d(b){return b&&b.__esModule?b:{default:b}}function f(b,p){if(!(b instanceof p))throw new TypeError("Cannot call a class as a function")}function l(b,p){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:b}function u(b,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);b.prototype=Object.create(p&&p.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(b,p):b.__proto__=p)}var h=(function(b){u(p,b);function p(){return f(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return o(p,[{key:"add",value:function(m,x){if(x==="+1"||x==="-1"){var y=this.value(m)||0;x=x==="+1"?y+1:y-1}return x===0?(this.remove(m),!0):a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"add",this).call(this,m,x)}},{key:"canAdd",value:function(m,x){return a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"canAdd",this).call(this,m,x)||a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"canAdd",this).call(this,m,parseInt(x))}},{key:"value",value:function(m){return parseInt(a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"value",this).call(this,m))||void 0}}]),p})(c.default.Attributor.Class),v=new h("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});n.IndentClass=v}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(4),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function f(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="blockquote",l.tagName="blockquote",n.default=l}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function h(v,b){for(var p=0;p<b.length;p++){var g=b[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(v,g.key,g)}}return function(v,b,p){return b&&h(v.prototype,b),p&&h(v,p),v}})(),a=i(4),s=c(a);function c(h){return h&&h.__esModule?h:{default:h}}function d(h,v){if(!(h instanceof v))throw new TypeError("Cannot call a class as a function")}function f(h,v){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:h}function l(h,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);h.prototype=Object.create(v&&v.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(h,v):h.__proto__=v)}var u=(function(h){l(v,h);function v(){return d(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,null,[{key:"formats",value:function(p){return this.tagName.indexOf(p.tagName)+1}}]),v})(s.default);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],n.default=u}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ListItem=void 0;var o=(function(){function y(E,_){for(var w=0;w<_.length;w++){var S=_[w];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(E,S.key,S)}}return function(E,_,w){return _&&y(E.prototype,_),w&&y(E,w),E}})(),a=function y(E,_,w){E===null&&(E=Function.prototype);var S=Object.getOwnPropertyDescriptor(E,_);if(S===void 0){var T=Object.getPrototypeOf(E);return T===null?void 0:y(T,_,w)}else{if("value"in S)return S.value;var O=S.get;return O===void 0?void 0:O.call(w)}},s=i(0),c=h(s),d=i(4),f=h(d),l=i(25),u=h(l);function h(y){return y&&y.__esModule?y:{default:y}}function v(y,E,_){return E in y?Object.defineProperty(y,E,{value:_,enumerable:!0,configurable:!0,writable:!0}):y[E]=_,y}function b(y,E){if(!(y instanceof E))throw new TypeError("Cannot call a class as a function")}function p(y,E){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:y}function g(y,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);y.prototype=Object.create(E&&E.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(y,E):y.__proto__=E)}var m=(function(y){g(E,y);function E(){return b(this,E),p(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return o(E,[{key:"format",value:function(w,S){w===x.blotName&&!S?this.replaceWith(c.default.create(this.statics.scope)):a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"format",this).call(this,w,S)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(w,S){return this.parent.isolate(this.offset(this.parent),this.length()),w===this.parent.statics.blotName?(this.parent.replaceWith(w,S),this):(this.parent.unwrap(),a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,w,S))}}],[{key:"formats",value:function(w){return w.tagName===this.tagName?void 0:a(E.__proto__||Object.getPrototypeOf(E),"formats",this).call(this,w)}}]),E})(f.default);m.blotName="list-item",m.tagName="LI";var x=(function(y){g(E,y),o(E,null,[{key:"create",value:function(w){var S=w==="ordered"?"OL":"UL",T=a(E.__proto__||Object.getPrototypeOf(E),"create",this).call(this,S);return(w==="checked"||w==="unchecked")&&T.setAttribute("data-checked",w==="checked"),T}},{key:"formats",value:function(w){if(w.tagName==="OL")return"ordered";if(w.tagName==="UL")return w.hasAttribute("data-checked")?w.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function E(_){b(this,E);var w=p(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,_)),S=function(O){if(O.target.parentNode===_){var C=w.statics.formats(_),R=c.default.find(O.target);C==="checked"?R.format("list","unchecked"):C==="unchecked"&&R.format("list","checked")}};return _.addEventListener("touchstart",S),_.addEventListener("mousedown",S),w}return o(E,[{key:"format",value:function(w,S){this.children.length>0&&this.children.tail.format(w,S)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(w,S){if(w instanceof m)a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertBefore",this).call(this,w,S);else{var T=S==null?this.length():S.offset(this),O=this.split(T);O.parent.insertBefore(w,O)}}},{key:"optimize",value:function(w){a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"optimize",this).call(this,w);var S=this.next;S!=null&&S.prev===this&&S.statics.blotName===this.statics.blotName&&S.domNode.tagName===this.domNode.tagName&&S.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(S.moveChildren(this),S.remove())}},{key:"replace",value:function(w){if(w.statics.blotName!==this.statics.blotName){var S=c.default.create(this.statics.defaultChild);w.moveChildren(S),this.appendChild(S)}a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replace",this).call(this,w)}}]),E})(u.default);x.blotName="list",x.scope=c.default.Scope.BLOCK_BLOT,x.tagName=["OL","UL"],x.defaultChild="list-item",x.allowedChildren=[m],n.ListItem=m,n.default=x}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(56),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function f(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="italic",l.tagName=["EM","I"],n.default=l}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function v(b,p){for(var g=0;g<p.length;g++){var m=p[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(b,m.key,m)}}return function(b,p,g){return p&&v(b.prototype,p),g&&v(b,g),b}})(),a=function v(b,p,g){b===null&&(b=Function.prototype);var m=Object.getOwnPropertyDescriptor(b,p);if(m===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:v(x,p,g)}else{if("value"in m)return m.value;var y=m.get;return y===void 0?void 0:y.call(g)}},s=i(6),c=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function l(v,b){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:v}function u(v,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);v.prototype=Object.create(b&&b.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(v,b):v.__proto__=b)}var h=(function(v){u(b,v);function b(){return f(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,null,[{key:"create",value:function(g){return g==="super"?document.createElement("sup"):g==="sub"?document.createElement("sub"):a(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,g)}},{key:"formats",value:function(g){if(g.tagName==="SUB")return"sub";if(g.tagName==="SUP")return"super"}}]),b})(c.default);h.blotName="script",h.tagName=["SUB","SUP"],n.default=h}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(6),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function f(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="strike",l.tagName="S",n.default=l}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(6),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function f(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="underline",l.tagName="U",n.default=l}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function p(g,m){for(var x=0;x<m.length;x++){var y=m[x];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,m,x){return m&&p(g.prototype,m),x&&p(g,x),g}})(),a=function p(g,m,x){g===null&&(g=Function.prototype);var y=Object.getOwnPropertyDescriptor(g,m);if(y===void 0){var E=Object.getPrototypeOf(g);return E===null?void 0:p(E,m,x)}else{if("value"in y)return y.value;var _=y.get;return _===void 0?void 0:_.call(x)}},s=i(0),c=f(s),d=i(27);function f(p){return p&&p.__esModule?p:{default:p}}function l(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function u(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function h(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var v=["alt","height","width"],b=(function(p){h(g,p);function g(){return l(this,g),u(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,[{key:"format",value:function(x,y){v.indexOf(x)>-1?y?this.domNode.setAttribute(x,y):this.domNode.removeAttribute(x):a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,x,y)}}],[{key:"create",value:function(x){var y=a(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,x);return typeof x=="string"&&y.setAttribute("src",this.sanitize(x)),y}},{key:"formats",value:function(x){return v.reduce(function(y,E){return x.hasAttribute(E)&&(y[E]=x.getAttribute(E)),y},{})}},{key:"match",value:function(x){return/\.(jpe?g|gif|png)$/.test(x)||/^data:image\/.+;base64/.test(x)}},{key:"sanitize",value:function(x){return(0,d.sanitize)(x,["http","https","data"])?x:"//:0"}},{key:"value",value:function(x){return x.getAttribute("src")}}]),g})(c.default.Embed);b.blotName="image",b.tagName="IMG",n.default=b}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function p(g,m){for(var x=0;x<m.length;x++){var y=m[x];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,m,x){return m&&p(g.prototype,m),x&&p(g,x),g}})(),a=function p(g,m,x){g===null&&(g=Function.prototype);var y=Object.getOwnPropertyDescriptor(g,m);if(y===void 0){var E=Object.getPrototypeOf(g);return E===null?void 0:p(E,m,x)}else{if("value"in y)return y.value;var _=y.get;return _===void 0?void 0:_.call(x)}},s=i(4),c=i(27),d=f(c);function f(p){return p&&p.__esModule?p:{default:p}}function l(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function u(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function h(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var v=["height","width"],b=(function(p){h(g,p);function g(){return l(this,g),u(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,[{key:"format",value:function(x,y){v.indexOf(x)>-1?y?this.domNode.setAttribute(x,y):this.domNode.removeAttribute(x):a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,x,y)}}],[{key:"create",value:function(x){var y=a(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,x);return y.setAttribute("frameborder","0"),y.setAttribute("allowfullscreen",!0),y.setAttribute("src",this.sanitize(x)),y}},{key:"formats",value:function(x){return v.reduce(function(y,E){return x.hasAttribute(E)&&(y[E]=x.getAttribute(E)),y},{})}},{key:"sanitize",value:function(x){return d.default.sanitize(x)}},{key:"value",value:function(x){return x.getAttribute("src")}}]),g})(s.BlockEmbed);b.blotName="video",b.className="ql-video",b.tagName="IFRAME",n.default=b}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var o=(function(){function x(y,E){for(var _=0;_<E.length;_++){var w=E[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,E,_){return E&&x(y.prototype,E),_&&x(y,_),y}})(),a=function x(y,E,_){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,E);if(w===void 0){var S=Object.getPrototypeOf(y);return S===null?void 0:x(S,E,_)}else{if("value"in w)return w.value;var T=w.get;return T===void 0?void 0:T.call(_)}},s=i(35),c=h(s),d=i(5),f=h(d),l=i(9),u=h(l);function h(x){return x&&x.__esModule?x:{default:x}}function v(x,y){if(!(x instanceof y))throw new TypeError("Cannot call a class as a function")}function b(x,y){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:x}function p(x,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);x.prototype=Object.create(y&&y.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(x,y):x.__proto__=y)}var g=(function(x){p(y,x);function y(){return v(this,y),b(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,null,[{key:"create",value:function(_){var w=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,_);return typeof _=="string"&&(window.katex.render(_,w,{throwOnError:!1,errorColor:"#f00"}),w.setAttribute("data-value",_)),w}},{key:"value",value:function(_){return _.getAttribute("data-value")}}]),y})(c.default);g.blotName="formula",g.className="ql-formula",g.tagName="SPAN";var m=(function(x){p(y,x),o(y,null,[{key:"register",value:function(){f.default.register(g,!0)}}]);function y(){v(this,y);var E=b(this,(y.__proto__||Object.getPrototypeOf(y)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return E}return y})(u.default);n.FormulaBlot=g,n.default=m}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.CodeToken=n.CodeBlock=void 0;var o=(function(){function _(w,S){for(var T=0;T<S.length;T++){var O=S[T];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(w,O.key,O)}}return function(w,S,T){return S&&_(w.prototype,S),T&&_(w,T),w}})(),a=function _(w,S,T){w===null&&(w=Function.prototype);var O=Object.getOwnPropertyDescriptor(w,S);if(O===void 0){var C=Object.getPrototypeOf(w);return C===null?void 0:_(C,S,T)}else{if("value"in O)return O.value;var R=O.get;return R===void 0?void 0:R.call(T)}},s=i(0),c=b(s),d=i(5),f=b(d),l=i(9),u=b(l),h=i(13),v=b(h);function b(_){return _&&_.__esModule?_:{default:_}}function p(_,w){if(!(_ instanceof w))throw new TypeError("Cannot call a class as a function")}function g(_,w){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:_}function m(_,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);_.prototype=Object.create(w&&w.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(_,w):_.__proto__=w)}var x=(function(_){m(w,_);function w(){return p(this,w),g(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return o(w,[{key:"replaceWith",value:function(T){this.domNode.textContent=this.domNode.textContent,this.attach(),a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,T)}},{key:"highlight",value:function(T){var O=this.domNode.textContent;this.cachedText!==O&&((O.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=T(O),this.domNode.normalize(),this.attach()),this.cachedText=O)}}]),w})(v.default);x.className="ql-syntax";var y=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),E=(function(_){m(w,_),o(w,null,[{key:"register",value:function(){f.default.register(y,!0),f.default.register(x,!0)}}]);function w(S,T){p(this,w);var O=g(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,S,T));if(typeof O.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var C=null;return O.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(C),C=setTimeout(function(){O.highlight(),C=null},O.options.interval)}),O.highlight(),O}return o(w,[{key:"highlight",value:function(){var T=this;if(!this.quill.selection.composing){this.quill.update(f.default.sources.USER);var O=this.quill.getSelection();this.quill.scroll.descendants(x).forEach(function(C){C.highlight(T.options.highlight)}),this.quill.update(f.default.sources.SILENT),O!=null&&this.quill.setSelection(O,f.default.sources.SILENT)}}}]),w})(u.default);E.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(_){var w=window.hljs.highlightAuto(_);return w.value}})(),interval:1e3},n.CodeBlock=x,n.CodeToken=y,n.default=E}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(t,n){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(t,n){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(t,n){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(t,n){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(t,n){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}),(function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BubbleTooltip=void 0;var o=function w(S,T,O){S===null&&(S=Function.prototype);var C=Object.getOwnPropertyDescriptor(S,T);if(C===void 0){var R=Object.getPrototypeOf(S);return R===null?void 0:w(R,T,O)}else{if("value"in C)return C.value;var j=C.get;return j===void 0?void 0:j.call(O)}},a=(function(){function w(S,T){for(var O=0;O<T.length;O++){var C=T[O];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(S,C.key,C)}}return function(S,T,O){return T&&w(S.prototype,T),O&&w(S,O),S}})(),s=i(3),c=p(s),d=i(8),f=p(d),l=i(43),u=p(l),h=i(15),v=i(41),b=p(v);function p(w){return w&&w.__esModule?w:{default:w}}function g(w,S){if(!(w instanceof S))throw new TypeError("Cannot call a class as a function")}function m(w,S){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:w}function x(w,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);w.prototype=Object.create(S&&S.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(w,S):w.__proto__=S)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],E=(function(w){x(S,w);function S(T,O){g(this,S),O.modules.toolbar!=null&&O.modules.toolbar.container==null&&(O.modules.toolbar.container=y);var C=m(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,T,O));return C.quill.container.classList.add("ql-bubble"),C}return a(S,[{key:"extendToolbar",value:function(O){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(O.container),this.buildButtons([].slice.call(O.container.querySelectorAll("button")),b.default),this.buildPickers([].slice.call(O.container.querySelectorAll("select")),b.default)}}]),S})(u.default);E.DEFAULTS=(0,c.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(S){S?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=(function(w){x(S,w);function S(T,O){g(this,S);var C=m(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,T,O));return C.quill.on(f.default.events.EDITOR_CHANGE,function(R,j,A,I){if(R===f.default.events.SELECTION_CHANGE)if(j!=null&&j.length>0&&I===f.default.sources.USER){C.show(),C.root.style.left="0px",C.root.style.width="",C.root.style.width=C.root.offsetWidth+"px";var $=C.quill.getLines(j.index,j.length);if($.length===1)C.position(C.quill.getBounds(j));else{var H=$[$.length-1],G=C.quill.getIndex(H),D=Math.min(H.length()-1,j.index+j.length-G),F=C.quill.getBounds(new h.Range(G,D));C.position(F)}}else document.activeElement!==C.textbox&&C.quill.hasFocus()&&C.hide()}),C}return a(S,[{key:"listen",value:function(){var O=this;o(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){O.root.classList.remove("ql-editing")}),this.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!O.root.classList.contains("ql-hidden")){var C=O.quill.getSelection();C!=null&&O.position(O.quill.getBounds(C))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(O){var C=o(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"position",this).call(this,O),R=this.root.querySelector(".ql-tooltip-arrow");if(R.style.marginLeft="",C===0)return C;R.style.marginLeft=-1*C-R.offsetWidth/2+"px"}}]),S})(l.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),n.BubbleTooltip=_,n.default=E}),(function(t,n,i){t.exports=i(63)})]).default})})(Xi)),Xi.exports}var nr,td;function Fy(){if(td)return nr;td=1;var e=nr&&nr.__extends||(function(){var f=function(l,u){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var b in v)v.hasOwnProperty(b)&&(h[b]=v[b])},f(l,u)};return function(l,u){f(l,u);function h(){this.constructor=l}l.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}})(),r=nr&&nr.__assign||function(){return r=Object.assign||function(f){for(var l,u=1,h=arguments.length;u<h;u++){l=arguments[u];for(var v in l)Object.prototype.hasOwnProperty.call(l,v)&&(f[v]=l[v])}return f},r.apply(this,arguments)},t=nr&&nr.__spreadArrays||function(){for(var f=0,l=0,u=arguments.length;l<u;l++)f+=arguments[l].length;for(var h=Array(f),v=0,l=0;l<u;l++)for(var b=arguments[l],p=0,g=b.length;p<g;p++,v++)h[v]=b[p];return h},n=nr&&nr.__importDefault||function(f){return f&&f.__esModule?f:{default:f}},i=n(z),o=n(ri),a=n(My()),s=n(Dy()),c=(function(f){e(l,f);function l(u){var h=f.call(this,u)||this;h.dirtyProps=["modules","formats","bounds","theme","children"],h.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],h.state={generation:0},h.selection=null,h.onEditorChange=function(b,p,g,m){var x,y,E,_;b==="text-change"?(y=(x=h).onEditorChangeText)===null||y===void 0||y.call(x,h.editor.root.innerHTML,p,m,h.unprivilegedEditor):b==="selection-change"&&((_=(E=h).onEditorChangeSelection)===null||_===void 0||_.call(E,p,m,h.unprivilegedEditor))};var v=h.isControlled()?u.value:u.defaultValue;return h.value=v??"",h}return l.prototype.validateProps=function(u){var h;if(i.default.Children.count(u.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(i.default.Children.count(u.children)){var v=i.default.Children.only(u.children);if(((h=v)===null||h===void 0?void 0:h.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&u.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},l.prototype.shouldComponentUpdate=function(u,h){var v=this,b;if(this.validateProps(u),!this.editor||this.state.generation!==h.generation)return!0;if("value"in u){var p=this.getEditorContents(),g=(b=u.value,b??"");this.isEqualValue(g,p)||this.setEditorContents(this.editor,g)}return u.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,u.readOnly),t(this.cleanProps,this.dirtyProps).some(function(m){return!a.default(u[m],v.props[m])})},l.prototype.shouldComponentRegenerate=function(u){var h=this;return this.dirtyProps.some(function(v){return!a.default(u[v],h.props[v])})},l.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},l.prototype.componentWillUnmount=function(){this.destroyEditor()},l.prototype.componentDidUpdate=function(u,h){var v=this;if(this.editor&&this.shouldComponentRegenerate(u)){var b=this.editor.getContents(),p=this.editor.getSelection();this.regenerationSnapshot={delta:b,selection:p},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==h.generation){var g=this.regenerationSnapshot,b=g.delta,m=g.selection;delete this.regenerationSnapshot,this.instantiateEditor();var x=this.editor;x.setContents(b),d(function(){return v.setEditorSelection(x,m)})}},l.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},l.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},l.prototype.isControlled=function(){return"value"in this.props},l.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},l.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},l.prototype.createEditor=function(u,h){var v=new s.default(u,h);return h.tabIndex!=null&&this.setEditorTabIndex(v,h.tabIndex),this.hookEditor(v),v},l.prototype.hookEditor=function(u){this.unprivilegedEditor=this.makeUnprivilegedEditor(u),u.on("editor-change",this.onEditorChange)},l.prototype.unhookEditor=function(u){u.off("editor-change",this.onEditorChange)},l.prototype.getEditorContents=function(){return this.value},l.prototype.getEditorSelection=function(){return this.selection},l.prototype.isDelta=function(u){return u&&u.ops},l.prototype.isEqualValue=function(u,h){return this.isDelta(u)&&this.isDelta(h)?a.default(u.ops,h.ops):a.default(u,h)},l.prototype.setEditorContents=function(u,h){var v=this;this.value=h;var b=this.getEditorSelection();typeof h=="string"?u.setContents(u.clipboard.convert(h)):u.setContents(h),d(function(){return v.setEditorSelection(u,b)})},l.prototype.setEditorSelection=function(u,h){if(this.selection=h,h){var v=u.getLength();h.index=Math.max(0,Math.min(h.index,v-1)),h.length=Math.max(0,Math.min(h.length,v-1-h.index)),u.setSelection(h)}},l.prototype.setEditorTabIndex=function(u,h){var v,b;!((b=(v=u)===null||v===void 0?void 0:v.scroll)===null||b===void 0)&&b.domNode&&(u.scroll.domNode.tabIndex=h)},l.prototype.setEditorReadOnly=function(u,h){h?u.disable():u.enable()},l.prototype.makeUnprivilegedEditor=function(u){var h=u;return{getHTML:function(){return h.root.innerHTML},getLength:h.getLength.bind(h),getText:h.getText.bind(h),getContents:h.getContents.bind(h),getSelection:h.getSelection.bind(h),getBounds:h.getBounds.bind(h)}},l.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var u=o.default.findDOMNode(this.editingArea);if(!u)throw new Error("Cannot find element for editing area");if(u.nodeType===3)throw new Error("Editing area cannot be a text node");return u},l.prototype.renderEditingArea=function(){var u=this,h=this.props,v=h.children,b=h.preserveWhitespace,p=this.state.generation,g={key:p,ref:function(m){u.editingArea=m}};return i.default.Children.count(v)?i.default.cloneElement(i.default.Children.only(v),g):b?i.default.createElement("pre",r({},g)):i.default.createElement("div",r({},g))},l.prototype.render=function(){var u;return i.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(u=this.props.className,u??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},l.prototype.onEditorChangeText=function(u,h,v,b){var p,g;if(this.editor){var m=this.isDelta(this.value)?b.getContents():b.getHTML();m!==this.getEditorContents()&&(this.lastDeltaChangeSet=h,this.value=m,(g=(p=this.props).onChange)===null||g===void 0||g.call(p,u,h,v,b))}},l.prototype.onEditorChangeSelection=function(u,h,v){var b,p,g,m,x,y;if(this.editor){var E=this.getEditorSelection(),_=!E&&u,w=E&&!u;a.default(u,E)||(this.selection=u,(p=(b=this.props).onChangeSelection)===null||p===void 0||p.call(b,u,h,v),_?(m=(g=this.props).onFocus)===null||m===void 0||m.call(g,u,h,v):w&&((y=(x=this.props).onBlur)===null||y===void 0||y.call(x,E,h,v)))}},l.prototype.focus=function(){this.editor&&this.editor.focus()},l.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},l.displayName="React Quill",l.Quill=s.default,l.defaultProps={theme:"snow",modules:{},readOnly:!1},l})(i.default.Component);function d(f){Promise.resolve().then(f)}return nr=c,nr}var gu=Fy();const $y=Me.getDefaultExportFromCjs(gu),Hr=({width:e="100%",height:r="100%",boxAlign:t,display:n="show",overflow:i,style:o,className:a,border:s=!0,children:c,ref:d})=>k.jsxRuntimeExports.jsx("div",{style:{width:e,height:r,display:n==="show"?"":n,overflowX:i?.x,overflowY:i?.y,...o},className:`bwgview-content-box ${t?`content-box-${t}`:""} ${a||""} ${s?"":"none-box-st"}`,ref:d,children:c});gu.Quill.register("modules/imageResize",Eg);const oo=e=>gg.sanitize(e??"",{ALLOWED_TAGS:["p","br","div","span","strong","b","em","i","u","s","blockquote","pre","code","ul","ol","li","h1","h2","h3","h4","h5","h6","a","img"],ALLOWED_ATTR:["style","class","href","target","rel","src","alt","width","height","data-*","align"],ALLOWED_URI_REGEXP:/^(?:(?:https?|data|mailto|tel):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,KEEP_CONTENT:!0,RETURN_TRUSTED_TYPE:!1}),ao=z.forwardRef(({border:e=!0,editorProps:r,value:t,defaultValue:n,onChange:i,onBlur:o,disabled:a},s)=>{const{isEditing:c=!0,title:d,containerHeight:f="100%"}=r||{},l=z.useRef(null),u=z.useMemo(()=>({toolbar:c?[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{align:[]}],["link","image"],["clean"]]:!1,imageResize:{parchment:gu.Quill.import("parchment"),modules:["Resize","DisplaySize","Toolbar"],displayStyles:{backgroundColor:"black",border:"none",color:"white"}}}),[c]),h=z.useMemo(()=>["header","bold","italic","underline","strike","color","background","list","bullet","indent","align","link","image","width","height"],[]),v=t!==void 0,[b,p]=z.useState(n??""),g=v?t:b,m=z.useCallback((_,w,S,T)=>{const O=oo(_??"");v||p(O),i?.(O,w,S,T)},[v,i]),E=`calc(100% - ${c?"42px":"0px"} - ${d?"40px":"0px"})`;return z.useImperativeHandle(s,()=>({getHTML:()=>g??"",getText:()=>l.current?.getEditor()?.getText()??"",insertHTML:_=>{const w=l.current?.getEditor();if(!w)return;const S=w.getSelection(!0),T=oo(_??"");w.clipboard.dangerouslyPasteHTML(S?S.index:w.getLength(),T)},insertImage:(_,w)=>{const S=l.current?.getEditor();if(!S)return;const T=S.getSelection(!0),O=typeof _=="string"?_:"";S.insertEmbed(T?T.index:S.getLength(),"image",O,"user")},getQuill:()=>l.current?.getEditor?.()??null})),k.jsxRuntimeExports.jsxs(Hr,{border:e,style:{opacity:a?.6:1,pointerEvents:a?"none":"auto",height:typeof f=="number"?`${f}px`:f},children:[d&&k.jsxRuntimeExports.jsx(xo,{...d,paddingBottom:10}),k.jsxRuntimeExports.jsx($y,{ref:l,readOnly:!c,value:g,onChange:m,onBlur:o,modules:u,formats:h,style:{width:"100%",height:E}},c?"snow":"bubble")]})}),By=(e,r,t,n)=>oo(e??""),qy=({itemProps:e,...r})=>{const{rules:t,shouldUpdate:n,dependencies:i,noStyle:o,...a}=e;return k.jsxRuntimeExports.jsx(Y.Form.Item,{valuePropName:"value",trigger:"onChange",getValueFromEvent:By,normalize:s=>s??"",rules:t,shouldUpdate:n,dependencies:i,noStyle:o,...a,children:k.jsxRuntimeExports.jsx(ao,{...r})})},zy=e=>{const{itemProps:r,onChange:t,editorProps:n,...i}=e,o=Y.Form.useFormInstance();if(r?.name!=null){const a=r.name;return k.jsxRuntimeExports.jsxs(k.jsxRuntimeExports.Fragment,{children:[k.jsxRuntimeExports.jsx(Y.Form.Item,{hidden:!0,name:a,rules:r.rules,normalize:s=>s??"",children:k.jsxRuntimeExports.jsx("input",{type:"hidden"})}),k.jsxRuntimeExports.jsx(ao,{...i,editorProps:n,value:o.getFieldValue(a)??"",onChange:(s,c,d,f)=>{const l=oo(s??"");o.setFieldValue(a,l),t?.(l,c,d,f)},onBlur:()=>{o.validateFields([a]).catch(()=>{})}})]})}return k.jsxRuntimeExports.jsx(ao,{...e})},bl=Object.assign(zy,{FormItem:qy,Core:ao});var Xr={},rd;function Hy(){if(rd)return Xr;rd=1;var e=ri;if(process.env.NODE_ENV==="production")Xr.createRoot=e.createRoot,Xr.hydrateRoot=e.hydrateRoot;else{var r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Xr.createRoot=function(t,n){r.usingClientEntryPoint=!0;try{return e.createRoot(t,n)}finally{r.usingClientEntryPoint=!1}},Xr.hydrateRoot=function(t,n,i){r.usingClientEntryPoint=!0;try{return e.hydrateRoot(t,n,i)}finally{r.usingClientEntryPoint=!1}}}return Xr}var Vy=Hy();const yu=z.forwardRef(({currentPage:e,totalPages:r,pageSize:t=10,totalData:n,onPageChange:i,pageSizeOptions:o=[10,20,50,100],gridRef:a,mode:s="client",onServerPageChange:c},d)=>{const[f,l]=z.useState(t),[u,h]=z.useState(1),[v,b]=z.useState(t),[p,g]=z.useState(0);z.useEffect(()=>{l(t)},[t]),z.useEffect(()=>{l(t)},[]),z.useImperativeHandle(d,()=>({currentPage:u,pageSize:v,totalData:p,totalPages:Math.ceil(p/v),setPage:R=>{h(R),c?.(R,v)},setPageSize:R=>{b(R),h(1),c?.(1,R)},setTotalData:R=>{g(R)},reset:()=>{h(1),b(t),g(0)}}),[u,v,p,c,t]);const m=s==="client",x=m?(e||0)+1:u,y=m?(r||0)>0:p>0,_=m?y?Math.ceil((n||0)/f):0:Math.ceil(p/v),w=m?y&&n||0:p,S=Math.min(x,_||1),T=`${f}-${_}-${S}`,O=R=>{m?i?.(R-1):(h(R),c?.(R,v))},C=R=>{if(m){l(R);try{a?.current?.gridView?(a.current.gridView.setPaging(!0,R),a.current.gridView.setPage(0)):i?.(0)}catch(j){console.warn("페이지 사이즈 변경 중 오류:",j),i?.(0)}}else b(R),h(1),c?.(1,R)};return k.jsxRuntimeExports.jsxs("div",{style:{padding:"10px",display:"flex",justifyContent:"space-between",alignItems:"center",borderTop:"1px solid #f0f0f0",backgroundColor:"#fafafa"},children:[k.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[k.jsxRuntimeExports.jsx("span",{style:{fontSize:"12px"},children:"페이지당"}),k.jsxRuntimeExports.jsx("select",{value:m?f:v,onChange:R=>C(Number(R.target.value)),disabled:!y,style:{padding:"4px 8px",border:"1px solid #d9d9d9",borderRadius:"4px",fontSize:"12px",opacity:y?1:.5},children:o.map(R=>k.jsxRuntimeExports.jsxs("option",{value:R,children:[R,"개"]},R))}),k.jsxRuntimeExports.jsxs("span",{style:{fontSize:"12px",color:"#666",opacity:y?1:.5},children:["/ 총 ",w,"개"]})]}),k.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[k.jsxRuntimeExports.jsx(Y.Button,{onClick:()=>O(1),disabled:!y||S===1,style:{width:"30px",height:"24px",background:!y||S===1?"#f5f5f5":"white",cursor:!y||S===1?"not-allowed":"pointer",opacity:y?1:.5},icon:k.jsxRuntimeExports.jsx(Te.DoubleLeftOutlined,{})}),k.jsxRuntimeExports.jsx(Y.Button,{onClick:()=>O(S-1),disabled:!y||S===1,style:{width:"30px",height:"24px",background:!y||S===1?"#f5f5f5":"white",cursor:!y||S===1?"not-allowed":"pointer",opacity:y?1:.5},icon:k.jsxRuntimeExports.jsx(Te.LeftOutlined,{})}),k.jsxRuntimeExports.jsx("div",{children:(()=>{if(!y||_===0)return k.jsxRuntimeExports.jsx(Y.Button,{disabled:!0,style:{width:"30px",height:"24px"},children:"1"});const R=5;let j=1,A=Math.min(R,_);S>3&&_>R&&(j=Math.max(1,S-2),A=Math.min(_,j+R-1),A===_&&(j=Math.max(1,A-R+1)));const I=[];for(let $=j;$<=A;$++)I.push(k.jsxRuntimeExports.jsx(Y.Button,{onClick:()=>O($),style:{width:"30px",height:"24px",background:S===$?"#1890ff":"white",color:S===$?"white":"black",cursor:"pointer"},children:$},$));return I})()},T),k.jsxRuntimeExports.jsx(Y.Button,{onClick:()=>O(S+1),disabled:!y||S>=_,style:{width:"30px",height:"24px",background:!y||S>=_?"#f5f5f5":"white",cursor:!y||S>=_?"not-allowed":"pointer",opacity:y?1:.5},icon:k.jsxRuntimeExports.jsx(Te.RightOutlined,{})}),k.jsxRuntimeExports.jsx(Y.Button,{onClick:()=>O(_),disabled:!y||S>=_,style:{width:"30px",height:"24px",background:!y||S>=_?"#f5f5f5":"white",cursor:!y||S>=_?"not-allowed":"pointer",opacity:y?1:.5},icon:k.jsxRuntimeExports.jsx(Te.DoubleRightOutlined,{})})]})]})});yu.displayName="BwgPagination";const Uy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZZDLDcJADETHUe7QQVJC6AAqACoAKkCcESh8JI60kBKgg3TA0kE6gAISzHgj0BJ8sWw/j2cXCCI7aD446g2diDp1aWyWaz9sxmHhNlJSyUCDnlQeQpEKm5UCDwgqvHBnTji4MvcEKGw3FsVFDeCmCCbMYwIpQY4wMnX5mj5pKrXfTFSxc1sp/o03yLlZaoSpRFhme53/QF4FmNl9txbH8wuC5893tEo1PZivBs6/sgVXBlv9BpvVRX62Og6eAAAAAElFTkSuQmCC",Wy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZVDbDcIwDHSiqL90AzoCI5S/fvQBEwATIDYoE7BCRwjqAtmAsEE3gAlqzlFBKbXknJ2cL5cQRcF13SIf9Bd63mmHdcN5nsbbJm6UtY6bxlGaCunNZZmTUpniqhpQvIhZ8AlcI+9QXYHYIb3BgQ0ETAJ36BvUmQiDuBV19TNdFBkliUyK0lX1fbc0bkyL1WF6D7UzbBxnpKCi9YHG0UPeoz6BePt+h55UxMMA9NMrPa68BDLiAxmcQh0cAM62AAAAAElFTkSuQmCC",Gy=[{label:"엑셀다운로드",tag:"excel"},{label:"엑셀(제목포함)",tag:"withTitleExcel"},{label:"-"},{label:"필터",type:"check",checked:!1,tag:"filter"},{label:"열고정",tag:"fixedCol"},{label:"행고정",tag:"fixedRow"},{label:"고정해제",tag:"fixedCancel"},{label:"-"},{label:"숨기기",tag:"hide"},{label:"숨기기해제",tag:"hideClear"}],Ky=[{label:"엑셀다운로드",tag:"excel"},{label:"엑셀(들여쓰기 표시)",tag:"showIndentExcel"},{label:"엑셀(제목포함)",tag:"withTitleExcel"},{label:"-"},{label:"필터",type:"check",checked:!1,tag:"filter"},{label:"열고정",tag:"fixedCol"},{label:"행고정",tag:"fixedRow"},{label:"고정해제",tag:"fixedCancel"},{label:"-"},{label:"숨기기",tag:"hide"},{label:"숨기기해제",tag:"hideClear"}],Yy=({children:e})=>{const[r,t]=z.useState(!1),[n,i]=z.useState(null);return r?k.jsxRuntimeExports.jsx("div",{style:{padding:"20px",border:"1px solid #ff4d4f",borderRadius:"6px",backgroundColor:"#fff2f0",margin:"10px"},children:k.jsxRuntimeExports.jsx(Y.Alert,{message:"리얼그리드 로드 실패",description:k.jsxRuntimeExports.jsxs("div",{children:[k.jsxRuntimeExports.jsx("p",{children:"리얼그리드 라이센스 또는 초기화 중 오류가 발생했습니다."}),k.jsxRuntimeExports.jsxs("p",{style:{fontSize:"12px",color:"#666",marginTop:"8px"},children:["오류: ",n?.message||"알 수 없는 오류"]}),k.jsxRuntimeExports.jsx(Y.Button,{type:"primary",size:"small",style:{marginTop:"8px"},onClick:()=>{t(!1),i(null),window.location.reload()},children:"다시 시도"})]}),type:"error",showIcon:!0})}):k.jsxRuntimeExports.jsx(Xy,{onError:o=>{console.error("BwgGrid 에러:",o),i(o),t(!0)},children:e})};class Xy extends z.Component{constructor(r){super(r),this.state={hasError:!1}}static getDerivedStateFromError(r){return{hasError:!0}}componentDidCatch(r,t){this.props.onError(r)}render(){return this.state.hasError?null:this.props.children}}const sp=z.forwardRef(({type:e="nrml",gridDivStyle:r,gridDivClassName:t,gridColumns:n,gridOptions:i,gridEvents:o,bindRef:a,gridContext:s,renderers:c,gridInitCallback:d},f)=>{const l=z.useRef(null),u=z.useRef(new Map),h=(N,V,U,K)=>{let J=[],ne=[];const ce="treeNode";for(let re in N){let de=N[re];J[de[U]]=N[re];let oe=J[de[V]];if(oe==null||oe=="-"){ne.push(de);continue}oe[ce]==null&&(oe[ce]=[]),oe[ce].push(de)}return ne},v=z.useCallback(N=>{const V=K=>{const J=[];return K.forEach(ne=>{ne.children&&ne.children.length>0?J.push(...V(ne.children)):J.push(ne)}),J};return V(N).map(K=>({fieldName:K.fieldName,dataType:K.dataType||"text"}))},[]),b=z.useCallback(N=>{const V=K=>{const J=[];return K.forEach(ne=>{ne.children&&ne.children.length>0?J.push(...V(ne.children)):J.push(ne)}),J};return V(N).map(K=>({...K,header:{template:K.required?`<img src='${Wy}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:K.editable?`<img src='${Uy}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:"${headerText}",values:{headerText:K.header?.text??""},text:K.header?.text||""},styleName:K.dataType==="number"?"right":K.styleName||"center"}))},[]);z.useImperativeHandle(f,()=>({addAllData(N,V){const U=l.current?.gridView.getCurrent().dataRow;if(l.current?.dataProvider instanceof mt.LocalDataProvider){l.current.dataProvider.clearRows();try{l.current?.gridView.showLoading(),l.current.dataProvider.setRows(N)}catch(K){console.error("fillJsonData 오류:",K)}finally{l.current?.gridView.closeLoading()}}if(l.current?.dataProvider instanceof mt.LocalTreeDataProvider){if(l.current.dataProvider.clearRows(),V?.treeOption?.dataField==null||V?.treeOption?.parentField==null)return;const K={rows:"treeNode"};try{l.current?.gridView.showLoading();let J=h(N,V.treeOption?.parentField,V.treeOption?.dataField);l.current.dataProvider.fillJsonData({treeNode:J},K),V.treeOption.isExpand&&l.current.gridView?.expandAll()}catch(J){console.error("fillJsonData 오류:",J)}finally{l.current?.gridView.closeLoading()}}V?.isCurrent?l.current?.gridView.setCurrent({dataRow:U}):l.current?.gridView.setCurrent({dataRow:0})},getGridInstance:()=>l.current,getCurrentRow:()=>l.current?.gridView.getCurrent().dataRow??-1,getCurrentIndex:()=>l.current?.gridView.getCurrent().itemIndex??-1,gridExcelDown(N){l.current?.gridView.exportGrid({type:"excel",target:"local",allItems:!1,lookupDisplay:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!N?.indenting,header:"default",footer:"default",sheetName:"",fileName:N?.fileName||"sample.xlsx",...N})},getGridSaveData:()=>{const N=l.current?.dataProvider?.getAllStateRows();if(N===void 0)return[{}];let V=[];if(N.created!==void 0&&N.created.length>0)for(const U in N.created){let K=l.current?.dataProvider?.getJsonRow(N.created[U]);K={...K,iudFlag:"I"},V.push(K)}if(N.updated!==void 0&&N.updated.length>0)for(const U in N.updated){let K=l.current?.dataProvider?.getJsonRow(N.updated[U]);K={...K,iudFlag:"U"},V.push(K)}if(N.deleted!==void 0&&N.deleted.length>0)for(const U in N.deleted){let K=l.current?.dataProvider?.getJsonRow(N.deleted[U]);K={...K,iudFlag:"D"},V.push(K)}return V},deleteGridData:()=>{l?.current?.gridView?.getCheckedItems()?.map(V=>{let U=l?.current?.gridView?.getDataRow(V)??-1;const K=l?.current?.dataProvider?.getRowState(U);K==mt.RowState.DELETED?(l?.current?.dataProvider?.setRowState(U,u.current.get(V)??mt.RowState.NONE),u.current.delete(V)):K==mt.RowState.CREATED?l?.current?.dataProvider?.setRowState(U,mt.RowState.CREATE_AND_DELETED):K==mt.RowState.CREATE_AND_DELETED?l?.current?.dataProvider?.setRowState(U,mt.RowState.CREATED):(u.current.set(V,K??mt.RowState.NONE),l?.current?.dataProvider?.setRowState(U,mt.RowState.DELETED)),l?.current?.gridView?.checkItem(V,!1)})},_oriRowState:[{}],dp:l.current?.dataProvider??null,vw:l.current?.gridView??null}));const p=z.useCallback((N,V,U)=>{if(a!==void 0&&U>=0){let K=N.getDataSource().getJsonRow(U);a?.current?.setFieldsValue(K)}else a!==void 0&&U<0&&a?.current?.resetFields();N.setCurrent({dataRow:0}),o?.onCurrentRowChanged&&o?.onCurrentRowChanged(N,V,U)},[a,o]),g=z.useCallback((N,V,U)=>{const K=V.fieldName??"";a?.current?.getFieldInstance(K)&&a?.current.setFieldValue(K,U),o?.onEditChange&&o?.onEditChange(N,V,U)},[a,o]),m=z.useCallback((N,V,U)=>{const K=N.getOrgFieldName(U),J=N.getValue(V,U);a?.current?.setFieldValue(K,J)},[a]),x=z.useCallback((N,V,U,K)=>{const J=N.getColumn(K).name??"",ne=N.getValue(V,K);a?.current?.getFieldInstance(J)&&a?.current.setFieldValue(J,ne),o?.onCellEdited&&o?.onCellEdited(N,V,U,K)},[a,o]),y=z.useCallback(N=>{if(!l.current)return;const V=l.current.gridView,U=V.getDataSource();if(i?.container?.page){const K=V.getPage(),J=V.getPageCount(),ne=U.getRowCount();F({currentPage:K,totalPages:J,totalData:ne})}},[i?.container?.page]),E=z.useCallback(()=>{if(!l.current)return;const N=l.current.gridView,V=N.getDataSource(),U=["onKeyDown"],K=["onRowInserted"];Object.keys(o??{}).map(J=>{U.includes(J)?N[J+"Add"]=o?.[J]:N[J]=o?.[J],K.includes(J)?V[J+"Add"]=o?.[J]:V[J]=o?.[J]}),V instanceof mt.LocalDataProvider&&(V.onRowInserted=(J,ne)=>{ne<0||(setTimeout(function(){N?.setCurrent({dataRow:ne})},1),J.onRowInsertedAdd!==void 0&&J.onRowInsertedAdd(J,ne))}),N.onKeyDown=function(J,ne){if(ne.code=="Space"){let ce=J.getSelectedItems(!0);for(const re in ce)J.isCheckable(ce[re])&&(J.isCheckedItem(ce[re])?J.checkItem(ce[re],!1,!1):J.checkItem(ce[re],!0,!1))}return J.onKeyDownAdd!==void 0&&J.onKeyDownAdd(J,ne),!0},l.current.gridView.onCurrentRowChanged=p,l.current.gridView.onEditChange=g,l.current.gridView.getDataSource().onValueChanged=m,l.current.gridView.onCellEdited=x,l.current.gridView.onDataLoadComplated=y},[p,g,m,x,y]),_=z.useCallback(N=>{if(N){try{N.gridView.setSortingOptions({enabled:!0}),N.gridView.sortMode=mt.SortMode.EXPLICIT,N.gridView.editorOptions.viewGridInside=!0,N.gridView instanceof mt.TreeView&&N.gridView.setTreeOptions({expandWhenSetData:mt.ExpandWhenSetData.REMAIN_AND_EXPAND,expanderIconStyle:mt.TreeExpanderIconStyle.SQUARE,iconVisible:!1,lineVisible:!0}),N.gridView.setDisplayOptions({showEmptyMessage:!0,emptyMessage:"조회된 데이터가 존재하지 않습니다.",useFocusClass:!0,minRowHeight:i?.display?.minRowHeight||43,maxRowHeight:i?.display?.maxRowHeight||100,rowHeight:i?.display?.rowHeight||43,rowChangeDelay:i?.display?.rowChangeDelay||0,selectionStyle:i?.display?.selectionStyle||mt.SelectionStyle.ROWS,fitStyle:i?.display?.fitStyle||mt.GridFitStyle.FILL,useAlternateRowStyle:i?.display?.useAlternateRowStyle||!1}),N.gridView.setEditOptions({commitWhenExitLast:!0,columnEditableFirst:!1,commitByCell:!0,commitWhenLeave:!0,crossWhenExitLast:!0,confirmWhenDelete:!1,deletable:!1,revertable:!1,showOnlyValidationMessage:!0,editable:i?.edit?.editable||!1,validateOnEdited:i?.edit?.validateOnEdited||!1}),N.gridView.setCopyOptions({singleMode:i?.copy?.singleMode||!1}),N.gridView.setPasteOptions({selectBlockPaste:!0,checkReadOnly:!0,throwValidationError:!1}),N.gridView.header.height=i?.header?.height||43,N.gridView.header.styleName=i?.header?.styleName||"bwgGridHeader",i?.container?.radio?N.gridView.setCheckBar({exclusive:i?.container?.radio||!1}):N.gridView.setCheckBar({visible:i?.container?.check||!1,showAll:i?.container?.checkAll||!1}),N.gridView.setStateBar({visible:i?.container?.state||!1}),N.gridView.rowIndicator.visible=i?.container?.indicator||!1,N.gridView instanceof mt.GridView&&(N.gridView.groupPanel.visible=i?.container?.panel||!1),N.gridView.setFooters({visible:i?.container?.footer||!1}),N.gridView.setHeader({visible:i?.container?.header||!0}),N.gridView.formatOptions.numberFormat="#,##0"}catch(V){console.log("그리드 옵션 설정 중 오류:",V)}try{N.gridView instanceof mt.TreeView?N.gridView.setContextMenu(Ky):N.gridView.setContextMenu(Gy),N.gridView.onContextMenuItemClicked=function(V,U,K){if(!(!K||!K.column)){if(U.tag=="excel")R(V,{isTitle:!1},s?.excel);else if(U.tag=="showIndentExcel")R(V,{isTitle:!1,treeBlank:!0},s?.excel);else if(U.tag=="withTitleExcel")R(V,{isTitle:!0,treeBlank:!1},s?.excel);else if(U.tag=="filter")j(V,U);else if(U.tag=="fixedCol"){const ne=V.getDataSource().getFieldIndex(K.column);V.setFixedOptions({colCount:ne})}else if(U.tag=="fixedRow")V.setFixedOptions({rowCount:(K.itemIndex||0)+1});else if(U.tag=="fixedCancel")V.setFixedOptions({colCount:0,rowCount:0});else if(U.tag=="hide")V.setColumnProperty(K.column,"visible",!1),V._hideCols[V._hideCols.length]=K.column;else if(U.tag=="hideClear")for(var J=0;J<V._hideCols.length;J++)V.setColumnProperty(V._hideCols[J],"visible",!0)}}}catch(V){console.log("컨텍스트 설정 중 오류:",V)}}},[i]),w=N=>{if(!(!c||c.length===0))try{c.forEach(V=>{const{name:U,renderer:K}=V;if(U&&K){const J=typeof K=="function"?new K:K;N.gridView.registerCustomRenderer(U,J)}})}catch(V){console.error("커스텀 렌더러 초기화 중 오류:",V)}},S=N=>{N.onPageChanged=(V,U)=>{F(K=>({...K,currentPage:U}))},N.onPageCountChanged=(V,U)=>{F(K=>({...K,totalPages:U}))}},T=N=>{l.current?.gridView&&l.current.gridView.setPage(N)},O=N=>{if(i?.layout?.colspan&&i.layout.colspan.length>0&&i?.layout?.colspan.forEach(V=>{const U=N.gridView.layoutByColumn(V.fieldName);if(U){const K=V.span;U.spanCallback=function(J,ne,ce){return K}}}),n&&n.length>0&&n.some(U=>U.children&&U.children.length>0))try{(()=>{const K=JSON.parse(JSON.stringify(n)),J=[],ne=ce=>{const re=[];return ce.children.map(de=>{if(de.children&&de.children.length>0){const oe=ne(de),se=de.header?.text||de.fieldName,Q=N.gridView.getColumnProperty(de.fieldName,"header");delete de.children,delete de.header;let ee={name:de.fieldName,header:{text:Q?.text||se,template:Q?.template,values:Q?.values,visible:Q?.visible??!0},items:oe,...de};re.push(ee)}else re.push(de.fieldName)}),re};K.map(ce=>{if(ce.children&&ce.children.length>0){const re=ne(ce),de=ce.header?.text||ce.fieldName,oe=ce.header?.visible??!0,se=N.gridView.getColumnProperty(ce.fieldName,"header");delete ce.children,delete ce.header;const Q={name:ce.fieldName,header:{text:se?.text||de,template:se?.template,values:se?.values,visible:se?.visible||oe},items:re,...ce};J.push(Q)}else J.push(ce.fieldName)}),console.log("Final Layout!!",J),N.gridView.setColumnLayout(J)})()}catch(U){console.error("컬럼 레이아웃 설정 오류:",U)}},C=()=>{if(l.current){if(e==="nrml"){const N=l.current;if(_(N),w(N),n&&n.length>0){const V=v(n),U=b(n);N.gridView.getDataSource().setFields(V),N.gridView.setColumns(U)}if(O(N),i?.container?.page){const V=i?.pagingOption?.pageSize||10;N.gridView.setPaging(!0,V),S(N.gridView)}}else{const N=l.current;if(_(N),w(N),n&&n.length>0){const V=v(n),U=b(n);N.gridView.getDataSource().setFields(V),N.gridView.setColumns(U)}O(l.current)}setTimeout(()=>{if(d){const N=typeof f=="object"&&f!==null?f.current:null;d(N)}},0)}},R=(N,V,U)=>{const K=N.getDataSource();let J=U?.footer==null?"default":U.footer;K.getRowCount()<1&&(J="hidden");let ne={type:"excel",target:"local",allItems:!1,lookupDisplay:!0,compatibility:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!V?.treeBlank,footer:J,sheetName:"",documentTitle:{},documentSubtitle:{},documentTail:{},fileName:U?.fileName||"sample.xlsx"};K instanceof mt.LocalTreeDataProvider&&(ne.indenting=!!V?.treeBlank),U?.isCellMerge==!0&&(ne.separateRows=!1),Me.isEmpty(U?.sheetName)==!1&&(ne.sheetName=U?.sheetName),V?.isTitle&&(ne.documentTitle={message:Me.isSafeEmpty(U?.mainTitle,"No Title"),visible:!0,styleName:"documentStyle",spaceTop:1,spaceBottom:0,height:43},Me.isEmpty(U?.subTitle)==!1&&(ne.documentSubtitle={message:U?.subTitle,visible:!0,styleName:"center",height:20}),Me.isEmpty(U?.tailTitle)==!1&&(ne.documentTail={message:U?.tailTitle,visible:!0,styleName:"documentStyle"})),N.exportGrid(ne)},j=(N,V)=>{const U=N.getDataSource(),K=U.getOrgFieldNames();if(V.checked)for(var J=0;J<K.length;J++){let ce=[],re=U.getDistinctValues(K[J])??[];if(re.length==0)continue;let de=N.columnByName(K[J]);for(var ne=0;ne<re.length;ne++){if(re[ne]==null)continue;let oe=de.values!=null&&de.values.indexOf(re[ne])!=-1?de?.labels?.[de.values.indexOf(re[ne])]:re[ne];Me.isEmpty(oe)&&(Me.isEmpty(re[ne])?oe=" ":oe=re[ne]);let se="";re[ne]==null?se="value="+re[ne]:se="value='"+re[ne]+"'",ce.push({name:oe,criteria:se})}N.setColumnFilters(K[J],ce)}else for(var J=0;J<K.length;J++)N.clearColumnFilters(K[J]),N.activateAllColumnFilters(K[J],!1),N.clearColumnFilters(K[J])};z.useEffect(()=>{if(l.current&&l.current.gridView)if(e==="nrml"){const N=l.current;_(N)}else{const N=l.current;_(N)}},[e,i,_]),z.useEffect(()=>{!l.current||!n||n.length===0||C()},[n]),z.useEffect(()=>{l.current&&E()},[o,E]);const[A,I]=z.useState(!1),[$,H]=z.useState(""),G=z.useRef(null),[D,F]=z.useState({currentPage:0,totalPages:0,totalData:0});z.useEffect(()=>{F({currentPage:0,totalPages:0,totalData:0})},[]),z.useEffect(()=>{A&&setTimeout(()=>{G.current?.focus?.()},0)},[A]),z.useEffect(()=>()=>{if(l.current)try{const N=l.current;N.gridView&&(N.gridView.onDataLoadComplated=void 0,N.gridView.onCurrentRowChanged=void 0,N.gridView.onCellClicked=void 0,N.gridView.onCellDblClicked=void 0,N.gridView.onEditRowChanged=void 0,N.gridView.onItemChecked=void 0,N.gridView.onItemAllChecked=void 0,N.gridView.onColumnCheckedChanged=void 0,N.gridView.onCellButtonClicked=void 0,N.gridView.onEditChange=void 0,N.gridView.onCellEdited=void 0,N.gridView.onKeyUp=void 0,N.gridView.onKeyDown=void 0,N.gridView.onWheel=void 0,N.gridView.onValidateColumn=void 0,N.gridView.onValidateRow=void 0,N.gridView.onValidationFail=void 0,N.gridView.onRowInserting=void 0,N.gridView.onCellItemClicked=void 0,N.gridView.onShowEditor=void 0,N.gridView.getDataSource()&&(N.gridView.getDataSource().clearRows(),N.gridView.getDataSource().setFields([])),N.gridView.getDataSource().clearRows())}catch(N){console.warn("⚠️ BwgGrid cleanup error:",N)}},[]);const P=z.useCallback(N=>{L(N)},[]),L=z.useCallback(N=>{const V=l.current?.gridView;if(V?.isFiltered()){console.log("EE:: [그리드 Filtering 으로 인한 오류] 그리드 내 Filter를 해제 후 진행해 주십시오.");return}if(V?.commit(),Me.isEmpty(N))return;const U=V?.getCurrent().itemIndex??-1;if(U<0)return;const K={value:N,startIndex:U+1,wrap:!0,caseSensitive:!1,partialMatch:!0},J=V?.searchCell(K);V?.setCurrent(J)},[]),B=z.useCallback(N=>{N.key==="Escape"&&(N.preventDefault(),I(!1))},[]),X=z.useCallback(N=>{N.ctrlKey&&N.code==="KeyF"&&(N.preventDefault(),H(""),I(!A))},[A]),W={searchRow:P,searchEnter:L,handleCloseKeyword:B,handleSearch:X},q=z.useMemo(()=>({...r,position:"relative",width:r?.width||"100%",height:r?.height||"100%"}),[r]);return k.jsxRuntimeExports.jsxs(Yy,{children:[k.jsxRuntimeExports.jsxs("div",{style:q,className:t,onKeyDown:N=>W.handleSearch(N),children:[A&&k.jsxRuntimeExports.jsx("div",{className:"grid-search-box",children:k.jsxRuntimeExports.jsxs(Y.Flex,{gap:3,children:[k.jsxRuntimeExports.jsx(Y.ConfigProvider,{theme:{components:{Button:{controlHeight:32},Input:{controlHeight:32}}},children:k.jsxRuntimeExports.jsxs(Y.Space.Compact,{children:[k.jsxRuntimeExports.jsx(Y.Button,{icon:k.jsxRuntimeExports.jsx(Te.SearchOutlined,{})}),k.jsxRuntimeExports.jsx(Y.Input,{ref:G,value:$,name:"srchField",autoComplete:"off",onKeyUp:N=>W.handleCloseKeyword(N),onChange:N=>H(N.target.value),onPressEnter:N=>W.searchEnter(N)})]})}),k.jsxRuntimeExports.jsx(Y.Button,{variant:"solid",icon:k.jsxRuntimeExports.jsx(Te.CloseOutlined,{}),onClick:()=>I(!1)})]})}),e==="nrml"?k.jsxRuntimeExports.jsx(Wu.RealGridReact,{ref:l,autoGenerateField:!0,onInitialized:C}):k.jsxRuntimeExports.jsx(Wu.RealTreeReact,{ref:l,autoGenerateField:!1,onInitialized:C})]}),i?.container?.page&&k.jsxRuntimeExports.jsx(yu,{currentPage:D.currentPage,totalPages:D.totalPages,pageSize:i?.pagingOption?.pageSize,totalData:D.totalData,onPageChange:T,pageSizeOptions:i?.pagingOption?.pageSizeOptions,gridRef:l})]})}),Zi=e=>({initContent(r){this._root=Vy.createRoot(r)},render(r,t,n,i){const o=this._root;o&&e(r,t,n,i,o)},clearContent(r){const t=this._root;t&&setTimeout(()=>{t&&(t.unmount(),this._root=null)},0)},canClick(r){return!0},click(){return{}}}),Zy=z.memo(({title:e,border:r,children:t,titleChildren:n})=>{const i=z.useMemo(()=>({components:{Form:{labelColor:"#9A9A9A"},Select:{colorTextDisabled:"#000"}}}),[]);return k.jsxRuntimeExports.jsxs(Wr,{type:"vertical",children:[k.jsxRuntimeExports.jsx(xo,{title:e,icons:{type:"antd",icon:"InfoCircleTwoTone"},children:n}),k.jsxRuntimeExports.jsx(Hr,{border:!1,children:k.jsxRuntimeExports.jsx(Y.ConfigProvider,{theme:i,children:t})})]})}),Wr=({type:e="horizontal",layoutAlign:r="left",verticalAlign:t,className:n,style:i,children:o})=>k.jsxRuntimeExports.jsx("div",{style:i,className:`bwgview-content-layout ${e=="horizontal"?"hz-layout":"vt-layout"} layout-${r} ${t&&`vertical-${t}`} ${n||""}`,children:o}),nd=(e,r)=>{const t=window.innerWidth,n=window.innerHeight,i=Math.min(Math.max(e.x,0),Math.max(0,t-r.width)),o=Math.min(Math.max(e.y,0),Math.max(0,n-r.height));return{x:i,y:o}},Qy=({buttons:e,popupData:r,onButtonClick:t})=>!e||e.length===0?null:k.jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:6},children:e.map(n=>k.jsxRuntimeExports.jsx(Y.Button,{type:n.type||"default",danger:n.danger,disabled:n.disabled,onClick:()=>t?.(n.key,r),className:"bwg-btn popup-btn",children:n.text},n.key))}),Jy=({popup:e,popupEvent:r,onClose:t,children:n})=>{const i=z.useRef(null);e?.popupId;const o=e?.popupTitle||"팝업",a=e?.width||800,s=e?.height||600,c=e?.buttonList?.map((_,w)=>({key:_.btnId||`btn_${w}`,text:_.btnNm,type:_.btnId==="CLOSE"?"default":"primary",disabled:_.enblYn!=="Y",danger:!1}))||[],f=c.some(_=>_.key==="CLOSE"||_.key==="close")?c:[...c,{key:"CLOSE",text:"닫기",type:"default",disabled:!1,danger:!1}],[l,u]=z.useState(a),[h,v]=z.useState(s),b=z.useMemo(()=>{const _=Math.max(0,(window.innerWidth-a)/2),w=Math.max(0,(window.innerHeight-s)/2);return{x:_,y:w}},[a,s]),[p,g]=z.useState(b),m=(_,w)=>{if(_==="CLOSE"||_==="close"){e?.close?.()||t?.();return}r&&r[_]?r[_]():e?.close?.()||t?.()},x=(_,w)=>{const S=nd({x:w.x,y:w.y},{width:l,height:h});g(S)},y=(_,w,S,T,O)=>{const C={width:parseInt(S.style.width,10),height:parseInt(S.style.height,10)},R=nd(O,C);u(C.width),v(C.height),g(R)},E=()=>i.current??document.body;return k.jsxRuntimeExports.jsxs("div",{style:{position:"fixed",inset:0,zIndex:1e3},children:[k.jsxRuntimeExports.jsx("div",{onClick:t,style:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.3)",zIndex:0}}),k.jsxRuntimeExports.jsxs($h.Rnd,{className:"bwg-popup",size:{width:l,height:h},position:p,bounds:"window",minWidth:400,minHeight:300,onDragStop:x,onResizeStop:y,dragHandleClassName:"drag-handle",cancel:".rnd-cancel",enableUserSelectHack:!1,style:{backgroundColor:"white",borderRadius:20,boxShadow:"0 4px 15px rgba(0,0,0,0.25)",overflow:"visible",position:"absolute",zIndex:1},children:[k.jsxRuntimeExports.jsx("div",{className:"bwg-popup-content",style:{overflow:"hidden",borderRadius:20,height:"100%"},children:k.jsxRuntimeExports.jsx(hu,{getPopupContainer:E,children:k.jsxRuntimeExports.jsx(Wr,{type:"vertical",children:k.jsxRuntimeExports.jsx(Y.Card,{className:"popup-drag-container",title:k.jsxRuntimeExports.jsx("div",{className:"drag-handle",style:{display:"flex",alignItems:"center",gap:8},children:o}),style:{width:"100%",height:"100%"},styles:{body:{height:"calc(100% - 77px)",padding:20,overflow:"auto"}},extra:k.jsxRuntimeExports.jsx(Qy,{buttons:f,popupData:e,onButtonClick:m}),children:k.jsxRuntimeExports.jsx("div",{className:"rnd-cancel",style:{height:"100%"},children:n})})})})}),k.jsxRuntimeExports.jsx("div",{ref:i,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},e0=({children:e,...r})=>k.jsxRuntimeExports.jsx(Y.Row,{...r,className:"bwg-row",children:e}),t0=({rowKey:e="id",columns:r,dataSource:t,loading:n=!1,rowSelection:i,size:o="middle",pagination:a=!1,...s})=>k.jsxRuntimeExports.jsx(Y.Table,{rowKey:e,columns:r,dataSource:t,loading:n,rowSelection:i,size:o,pagination:a,bordered:!0,scroll:{x:"max-content"},locale:{emptyText:"데이터가 없습니다."},...s}),r0=e=>{const{type:r="card",animated:t=!0,...n}=e;return k.jsxRuntimeExports.jsx(Y.Tabs,{type:r,animated:t,...n})};function xl(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function n0(e){if(Array.isArray(e))return xl(e)}function lp(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bu(e,r){if(e){if(typeof e=="string")return xl(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?xl(e,r):void 0}}function i0(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
55
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function we(e){return n0(e)||lp(e)||bu(e)||i0()}function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},tt.apply(null,arguments)}var o0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function up(e){if(Array.isArray(e))return e}function a0(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,o,a,s=[],c=!0,d=!1;try{if(o=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=o.call(t)).done)&&(s.push(n.value),s.length!==r);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(d)throw i}}return s}}function cp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
56
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ve(e,r){return up(e)||a0(e,r)||bu(e,r)||cp()}function je(e){"@babel/helpers - typeof";return je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},je(e)}function s0(e,r){if(je(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(je(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function fp(e){var r=s0(e,"string");return je(r)=="symbol"?r:r+""}function te(e,r,t){return(r=fp(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l0(e,r){if(e==null)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(r.indexOf(n)!==-1)continue;t[n]=e[n]}return t}function Rt(e,r){if(e==null)return{};var t,n,i=l0(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)===-1&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var zs={exports:{}};/*!
57
+ Copyright (c) 2018 Jed Watson.
58
+ Licensed under the MIT License (MIT), see
59
+ http://jedwatson.github.io/classnames
60
+ */var id;function u0(){return id||(id=1,(function(e){(function(){var r={}.hasOwnProperty;function t(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,n(s)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)r.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(zs)),zs.exports}var c0=u0();const _e=Me.getDefaultExportFromCjs(c0),Et=Math.round;function Hs(e,r){const t=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=t.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=r(n[i]||0,t[i]||"",i);return t[3]?n[3]=t[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const od=(e,r,t)=>t===0?e:e/100;function Vn(e,r){const t=r||255;return e>t?t:e<0?0:e}let bt=class dp{constructor(r){te(this,"isValid",!0),te(this,"r",0),te(this,"g",0),te(this,"b",0),te(this,"a",1),te(this,"_h",void 0),te(this,"_s",void 0),te(this,"_l",void 0),te(this,"_v",void 0),te(this,"_max",void 0),te(this,"_min",void 0),te(this,"_brightness",void 0);function t(n){return n[0]in r&&n[1]in r&&n[2]in r}if(r)if(typeof r=="string"){let i=function(o){return n.startsWith(o)};const n=r.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):i("rgb")?this.fromRgbString(n):i("hsl")?this.fromHslString(n):(i("hsv")||i("hsb"))&&this.fromHsvString(n)}else if(r instanceof dp)this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this._h=r._h,this._s=r._s,this._l=r._l,this._v=r._v;else if(t("rgb"))this.r=Vn(r.r),this.g=Vn(r.g),this.b=Vn(r.b),this.a=typeof r.a=="number"?Vn(r.a,1):1;else if(t("hsl"))this.fromHsl(r);else if(t("hsv"))this.fromHsv(r);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(r))}setR(r){return this._sc("r",r)}setG(r){return this._sc("g",r)}setB(r){return this._sc("b",r)}setA(r){return this._sc("a",r,1)}setHue(r){const t=this.toHsv();return t.h=r,this._c(t)}getLuminance(){function r(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const t=r(this.r),n=r(this.g),i=r(this.b);return .2126*t+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){const r=this.getMax()-this.getMin();r===0?this._h=0:this._h=Et(60*(this.r===this.getMax()?(this.g-this.b)/r+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/r+2:(this.r-this.g)/r+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const r=this.getMax()-this.getMin();r===0?this._s=0:this._s=r/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(r=10){const t=this.getHue(),n=this.getSaturation();let i=this.getLightness()-r/100;return i<0&&(i=0),this._c({h:t,s:n,l:i,a:this.a})}lighten(r=10){const t=this.getHue(),n=this.getSaturation();let i=this.getLightness()+r/100;return i>1&&(i=1),this._c({h:t,s:n,l:i,a:this.a})}mix(r,t=50){const n=this._c(r),i=t/100,o=s=>(n[s]-this[s])*i+this[s],a={r:Et(o("r")),g:Et(o("g")),b:Et(o("b")),a:Et(o("a")*100)/100};return this._c(a)}tint(r=10){return this.mix({r:255,g:255,b:255,a:1},r)}shade(r=10){return this.mix({r:0,g:0,b:0,a:1},r)}onBackground(r){const t=this._c(r),n=this.a+t.a*(1-this.a),i=o=>Et((this[o]*this.a+t[o]*t.a*(1-this.a))/n);return this._c({r:i("r"),g:i("g"),b:i("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(r){return this.r===r.r&&this.g===r.g&&this.b===r.b&&this.a===r.a}clone(){return this._c(this)}toHexString(){let r="#";const t=(this.r||0).toString(16);r+=t.length===2?t:"0"+t;const n=(this.g||0).toString(16);r+=n.length===2?n:"0"+n;const i=(this.b||0).toString(16);if(r+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=Et(this.a*255).toString(16);r+=o.length===2?o:"0"+o}return r}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const r=this.getHue(),t=Et(this.getSaturation()*100),n=Et(this.getLightness()*100);return this.a!==1?`hsla(${r},${t}%,${n}%,${this.a})`:`hsl(${r},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(r,t,n){const i=this.clone();return i[r]=Vn(t,n),i}_c(r){return new this.constructor(r)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(r){const t=r.replace("#","");function n(i,o){return parseInt(t[i]+t[o||i],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:r,s:t,l:n,a:i}){if(this._h=r%360,this._s=t,this._l=n,this.a=typeof i=="number"?i:1,t<=0){const u=Et(n*255);this.r=u,this.g=u,this.b=u}let o=0,a=0,s=0;const c=r/60,d=(1-Math.abs(2*n-1))*t,f=d*(1-Math.abs(c%2-1));c>=0&&c<1?(o=d,a=f):c>=1&&c<2?(o=f,a=d):c>=2&&c<3?(a=d,s=f):c>=3&&c<4?(a=f,s=d):c>=4&&c<5?(o=f,s=d):c>=5&&c<6&&(o=d,s=f);const l=n-d/2;this.r=Et((o+l)*255),this.g=Et((a+l)*255),this.b=Et((s+l)*255)}fromHsv({h:r,s:t,v:n,a:i}){this._h=r%360,this._s=t,this._v=n,this.a=typeof i=="number"?i:1;const o=Et(n*255);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=r/60,s=Math.floor(a),c=a-s,d=Et(n*(1-t)*255),f=Et(n*(1-t*c)*255),l=Et(n*(1-t*(1-c))*255);switch(s){case 0:this.g=l,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=l;break;case 3:this.r=d,this.g=f;break;case 4:this.r=l,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(r){const t=Hs(r,od);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(r){const t=Hs(r,od);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(r){const t=Hs(r,(n,i)=>i.includes("%")?Et(n/100*255):n);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}};var Ii=2,ad=.16,f0=.05,d0=.05,h0=.15,hp=5,pp=4,p0=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function sd(e,r,t){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=t?Math.round(e.h)-Ii*r:Math.round(e.h)+Ii*r:n=t?Math.round(e.h)+Ii*r:Math.round(e.h)-Ii*r,n<0?n+=360:n>=360&&(n-=360),n}function ld(e,r,t){if(e.h===0&&e.s===0)return e.s;var n;return t?n=e.s-ad*r:r===pp?n=e.s+ad:n=e.s+f0*r,n>1&&(n=1),t&&r===hp&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function ud(e,r,t){var n;return t?n=e.v+d0*r:n=e.v-h0*r,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function ni(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],n=new bt(e),i=n.toHsv(),o=hp;o>0;o-=1){var a=new bt({h:sd(i,o,!0),s:ld(i,o,!0),v:ud(i,o,!0)});t.push(a)}t.push(n);for(var s=1;s<=pp;s+=1){var c=new bt({h:sd(i,s),s:ld(i,s),v:ud(i,s)});t.push(c)}return r.theme==="dark"?p0.map(function(d){var f=d.index,l=d.amount;return new bt(r.backgroundColor||"#141414").mix(t[f],l).toHexString()}):t.map(function(d){return d.toHexString()})}var Vs={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},El=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];El.primary=El[5];var wl=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];wl.primary=wl[5];var Sl=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Sl.primary=Sl[5];var so=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];so.primary=so[5];var _l=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];_l.primary=_l[5];var Cl=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Cl.primary=Cl[5];var Rl=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Rl.primary=Rl[5];var Ol=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Ol.primary=Ol[5];var lo=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];lo.primary=lo[5];var jl=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];jl.primary=jl[5];var Tl=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Tl.primary=Tl[5];var Al=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Al.primary=Al[5];var kl=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];kl.primary=kl[5];var Us={red:El,volcano:wl,orange:Sl,gold:so,yellow:_l,lime:Cl,green:Rl,cyan:Ol,blue:lo,geekblue:jl,purple:Tl,magenta:Al,grey:kl},xu=z.createContext({});function cd(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function ie(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?cd(Object(t),!0).forEach(function(n){te(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):cd(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Tt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function v0(e,r){if(!e)return!1;if(e.contains)return e.contains(r);for(var t=r;t;){if(t===e)return!0;t=t.parentNode}return!1}var fd="data-rc-order",dd="data-rc-priority",m0="rc-util-key",Pl=new Map;function vp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.mark;return r?r.startsWith("data-")?r:"data-".concat(r):m0}function jo(e){if(e.attachTo)return e.attachTo;var r=document.querySelector("head");return r||document.body}function g0(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Eu(e){return Array.from((Pl.get(e)||e).children).filter(function(r){return r.tagName==="STYLE"})}function mp(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Tt())return null;var t=r.csp,n=r.prepend,i=r.priority,o=i===void 0?0:i,a=g0(n),s=a==="prependQueue",c=document.createElement("style");c.setAttribute(fd,a),s&&o&&c.setAttribute(dd,"".concat(o)),t!=null&&t.nonce&&(c.nonce=t?.nonce),c.innerHTML=e;var d=jo(r),f=d.firstChild;if(n){if(s){var l=(r.styles||Eu(d)).filter(function(u){if(!["prepend","prependQueue"].includes(u.getAttribute(fd)))return!1;var h=Number(u.getAttribute(dd)||0);return o>=h});if(l.length)return d.insertBefore(c,l[l.length-1].nextSibling),c}d.insertBefore(c,f)}else d.appendChild(c);return c}function gp(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=jo(r);return(r.styles||Eu(t)).find(function(n){return n.getAttribute(vp(r))===e})}function ii(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=gp(e,r);if(t){var n=jo(r);n.removeChild(t)}}function y0(e,r){var t=Pl.get(e);if(!t||!v0(document,t)){var n=mp("",r),i=n.parentNode;Pl.set(e,i),e.removeChild(n)}}function Sr(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=jo(t),i=Eu(n),o=ie(ie({},t),{},{styles:i});y0(n,o);var a=gp(r,o);if(a){var s,c;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var d;a.nonce=(d=o.csp)===null||d===void 0?void 0:d.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var f=mp(e,o);return f.setAttribute(vp(o),r),f}function yp(e){var r;return e==null||(r=e.getRootNode)===null||r===void 0?void 0:r.call(e)}function b0(e){return yp(e)instanceof ShadowRoot}function uo(e){return b0(e)?yp(e):null}var Nl={},wu=[],x0=function(r){wu.push(r)};function cn(e,r){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var t=wu.reduce(function(n,i){return i(n??"","warning")},r);t&&console.error("Warning: ".concat(t))}}function E0(e,r){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var t=wu.reduce(function(n,i){return i(n??"","note")},r);t&&console.warn("Note: ".concat(t))}}function bp(){Nl={}}function xp(e,r,t){!r&&!Nl[t]&&(e(!1,t),Nl[t]=!0)}function ot(e,r){xp(cn,e,r)}function w0(e,r){xp(E0,e,r)}ot.preMessage=x0;ot.resetWarned=bp;ot.noteOnce=w0;function S0(e){return e.replace(/-(.)/g,function(r,t){return t.toUpperCase()})}function _0(e,r){ot(e,"[@ant-design/icons] ".concat(r))}function hd(e){return je(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(je(e.icon)==="object"||typeof e.icon=="function")}function pd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(r,t){var n=e[t];switch(t){case"class":r.className=n,delete r.class;break;default:delete r[t],r[S0(t)]=n}return r},{})}function Il(e,r,t){return t?z.createElement(e.tag,ie(ie({key:r},pd(e.attrs)),t),(e.children||[]).map(function(n,i){return Il(n,"".concat(r,"-").concat(e.tag,"-").concat(i))})):z.createElement(e.tag,ie({key:r},pd(e.attrs)),(e.children||[]).map(function(n,i){return Il(n,"".concat(r,"-").concat(e.tag,"-").concat(i))}))}function Ep(e){return ni(e)[0]}function wp(e){return e?Array.isArray(e)?e:[e]:[]}var C0=`
61
+ .anticon {
62
+ display: inline-flex;
63
+ align-items: center;
64
+ color: inherit;
65
+ font-style: normal;
66
+ line-height: 0;
67
+ text-align: center;
68
+ text-transform: none;
69
+ vertical-align: -0.125em;
70
+ text-rendering: optimizeLegibility;
71
+ -webkit-font-smoothing: antialiased;
72
+ -moz-osx-font-smoothing: grayscale;
73
+ }
74
+
75
+ .anticon > * {
76
+ line-height: 1;
77
+ }
78
+
79
+ .anticon svg {
80
+ display: inline-block;
81
+ }
82
+
83
+ .anticon::before {
84
+ display: none;
85
+ }
86
+
87
+ .anticon .anticon-icon {
88
+ display: block;
89
+ }
90
+
91
+ .anticon[tabindex] {
92
+ cursor: pointer;
93
+ }
94
+
95
+ .anticon-spin::before,
96
+ .anticon-spin {
97
+ display: inline-block;
98
+ -webkit-animation: loadingCircle 1s infinite linear;
99
+ animation: loadingCircle 1s infinite linear;
100
+ }
101
+
102
+ @-webkit-keyframes loadingCircle {
103
+ 100% {
104
+ -webkit-transform: rotate(360deg);
105
+ transform: rotate(360deg);
106
+ }
107
+ }
108
+
109
+ @keyframes loadingCircle {
110
+ 100% {
111
+ -webkit-transform: rotate(360deg);
112
+ transform: rotate(360deg);
113
+ }
114
+ }
115
+ `,R0=function(r){var t=z.useContext(xu),n=t.csp,i=t.prefixCls,o=t.layer,a=C0;i&&(a=a.replace(/anticon/g,i)),o&&(a="@layer ".concat(o,` {
116
+ `).concat(a,`
117
+ }`)),z.useEffect(function(){var s=r.current,c=uo(s);Sr(a,"@ant-design-icons",{prepend:!o,csp:n,attachTo:c})},[])},O0=["icon","className","onClick","style","primaryColor","secondaryColor"],Jn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function j0(e){var r=e.primaryColor,t=e.secondaryColor;Jn.primaryColor=r,Jn.secondaryColor=t||Ep(r),Jn.calculated=!!t}function T0(){return ie({},Jn)}var En=function(r){var t=r.icon,n=r.className,i=r.onClick,o=r.style,a=r.primaryColor,s=r.secondaryColor,c=Rt(r,O0),d=M.useRef(),f=Jn;if(a&&(f={primaryColor:a,secondaryColor:s||Ep(a)}),R0(d),_0(hd(t),"icon should be icon definiton, but got ".concat(t)),!hd(t))return null;var l=t;return l&&typeof l.icon=="function"&&(l=ie(ie({},l),{},{icon:l.icon(f.primaryColor,f.secondaryColor)})),Il(l.icon,"svg-".concat(l.name),ie(ie({className:n,onClick:i,style:o,"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:d}))};En.displayName="IconReact";En.getTwoToneColors=T0;En.setTwoToneColors=j0;function Sp(e){var r=wp(e),t=ve(r,2),n=t[0],i=t[1];return En.setTwoToneColors({primaryColor:n,secondaryColor:i})}function A0(){var e=En.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var k0=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Sp(lo.primary);var Cr=M.forwardRef(function(e,r){var t=e.className,n=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,c=e.twoToneColor,d=Rt(e,k0),f=M.useContext(xu),l=f.prefixCls,u=l===void 0?"anticon":l,h=f.rootClassName,v=_e(h,u,te(te({},"".concat(u,"-").concat(n.name),!!n.name),"".concat(u,"-spin"),!!i||n.name==="loading"),t),b=a;b===void 0&&s&&(b=-1);var p=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,g=wp(c),m=ve(g,2),x=m[0],y=m[1];return M.createElement("span",tt({role:"img","aria-label":n.name},d,{ref:r,tabIndex:b,onClick:s,className:v}),M.createElement(En,{icon:n,primaryColor:x,secondaryColor:y,style:p}))});Cr.displayName="AntdIcon";Cr.getTwoToneColor=A0;Cr.setTwoToneColor=Sp;var P0=function(r,t){return M.createElement(Cr,tt({},r,{ref:t,icon:o0}))},_p=M.forwardRef(P0);process.env.NODE_ENV!=="production"&&(_p.displayName="EditOutlined");var N0=Symbol.for("react.element"),I0=Symbol.for("react.transitional.element"),M0=Symbol.for("react.fragment");function Cp(e){return e&&je(e)==="object"&&(e.$$typeof===N0||e.$$typeof===I0)&&e.type===M0}function fn(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[];return z.Children.forEach(e,function(n){n==null&&!r.keepEmpty||(Array.isArray(n)?t=t.concat(fn(n)):Cp(n)&&n.props?t=t.concat(fn(n.props.children,r)):t.push(n))}),t}function oi(e){return e instanceof HTMLElement||e instanceof SVGElement}function L0(e){return e&&je(e)==="object"&&oi(e.nativeElement)?e.nativeElement:oi(e)?e:null}function Qi(e){var r=L0(e);if(r)return r;if(e instanceof z.Component){var t;return(t=ri.findDOMNode)===null||t===void 0?void 0:t.call(ri,e)}return null}var Mi={exports:{}},We={};/**
118
+ * @license React
119
+ * react-is.production.min.js
120
+ *
121
+ * Copyright (c) Facebook, Inc. and its affiliates.
122
+ *
123
+ * This source code is licensed under the MIT license found in the
124
+ * LICENSE file in the root directory of this source tree.
125
+ */var vd;function D0(){if(vd)return We;vd=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v;v=Symbol.for("react.module.reference");function b(p){if(typeof p=="object"&&p!==null){var g=p.$$typeof;switch(g){case e:switch(p=p.type,p){case t:case i:case n:case d:case f:return p;default:switch(p=p&&p.$$typeof,p){case s:case a:case c:case u:case l:case o:return p;default:return g}}case r:return g}}}return We.ContextConsumer=a,We.ContextProvider=o,We.Element=e,We.ForwardRef=c,We.Fragment=t,We.Lazy=u,We.Memo=l,We.Portal=r,We.Profiler=i,We.StrictMode=n,We.Suspense=d,We.SuspenseList=f,We.isAsyncMode=function(){return!1},We.isConcurrentMode=function(){return!1},We.isContextConsumer=function(p){return b(p)===a},We.isContextProvider=function(p){return b(p)===o},We.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},We.isForwardRef=function(p){return b(p)===c},We.isFragment=function(p){return b(p)===t},We.isLazy=function(p){return b(p)===u},We.isMemo=function(p){return b(p)===l},We.isPortal=function(p){return b(p)===r},We.isProfiler=function(p){return b(p)===i},We.isStrictMode=function(p){return b(p)===n},We.isSuspense=function(p){return b(p)===d},We.isSuspenseList=function(p){return b(p)===f},We.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===t||p===i||p===n||p===d||p===f||p===h||typeof p=="object"&&p!==null&&(p.$$typeof===u||p.$$typeof===l||p.$$typeof===o||p.$$typeof===a||p.$$typeof===c||p.$$typeof===v||p.getModuleId!==void 0)},We.typeOf=b,We}var Ge={};/**
126
+ * @license React
127
+ * react-is.development.js
128
+ *
129
+ * Copyright (c) Facebook, Inc. and its affiliates.
130
+ *
131
+ * This source code is licensed under the MIT license found in the
132
+ * LICENSE file in the root directory of this source tree.
133
+ */var md;function F0(){return md||(md=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v=!1,b=!1,p=!1,g=!1,m=!1,x;x=Symbol.for("react.module.reference");function y(re){return!!(typeof re=="string"||typeof re=="function"||re===t||re===i||m||re===n||re===d||re===f||g||re===h||v||b||p||typeof re=="object"&&re!==null&&(re.$$typeof===u||re.$$typeof===l||re.$$typeof===o||re.$$typeof===a||re.$$typeof===c||re.$$typeof===x||re.getModuleId!==void 0))}function E(re){if(typeof re=="object"&&re!==null){var de=re.$$typeof;switch(de){case e:var oe=re.type;switch(oe){case t:case i:case n:case d:case f:return oe;default:var se=oe&&oe.$$typeof;switch(se){case s:case a:case c:case u:case l:case o:return se;default:return de}}case r:return de}}}var _=a,w=o,S=e,T=c,O=t,C=u,R=l,j=r,A=i,I=n,$=d,H=f,G=!1,D=!1;function F(re){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function P(re){return D||(D=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(re){return E(re)===a}function B(re){return E(re)===o}function X(re){return typeof re=="object"&&re!==null&&re.$$typeof===e}function W(re){return E(re)===c}function q(re){return E(re)===t}function N(re){return E(re)===u}function V(re){return E(re)===l}function U(re){return E(re)===r}function K(re){return E(re)===i}function J(re){return E(re)===n}function ne(re){return E(re)===d}function ce(re){return E(re)===f}Ge.ContextConsumer=_,Ge.ContextProvider=w,Ge.Element=S,Ge.ForwardRef=T,Ge.Fragment=O,Ge.Lazy=C,Ge.Memo=R,Ge.Portal=j,Ge.Profiler=A,Ge.StrictMode=I,Ge.Suspense=$,Ge.SuspenseList=H,Ge.isAsyncMode=F,Ge.isConcurrentMode=P,Ge.isContextConsumer=L,Ge.isContextProvider=B,Ge.isElement=X,Ge.isForwardRef=W,Ge.isFragment=q,Ge.isLazy=N,Ge.isMemo=V,Ge.isPortal=U,Ge.isProfiler=K,Ge.isStrictMode=J,Ge.isSuspense=ne,Ge.isSuspenseList=ce,Ge.isValidElementType=y,Ge.typeOf=E})()),Ge}var gd;function $0(){return gd||(gd=1,process.env.NODE_ENV==="production"?Mi.exports=D0():Mi.exports=F0()),Mi.exports}var Ws=$0();function Su(e,r,t){var n=M.useRef({});return(!("value"in n.current)||t(n.current.condition,r))&&(n.current.value=e(),n.current.condition=r),n.current.value}var B0=Number(z.version.split(".")[0]),_u=function(r,t){typeof r=="function"?r(t):je(r)==="object"&&r&&"current"in r&&(r.current=t)},vi=function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];var i=t.filter(Boolean);return i.length<=1?i[0]:function(o){t.forEach(function(a){_u(a,o)})}},Cu=function(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return Su(function(){return vi.apply(void 0,t)},t,function(i,o){return i.length!==o.length||i.every(function(a,s){return a!==o[s]})})},To=function(r){var t,n;if(!r)return!1;if(Rp(r)&&B0>=19)return!0;var i=Ws.isMemo(r)?r.type.type:r.type;return!(typeof i=="function"&&!((t=i.prototype)!==null&&t!==void 0&&t.render)&&i.$$typeof!==Ws.ForwardRef||typeof r=="function"&&!((n=r.prototype)!==null&&n!==void 0&&n.render)&&r.$$typeof!==Ws.ForwardRef)};function Rp(e){return z.isValidElement(e)&&!Cp(e)}var Ru=function(r){if(r&&Rp(r)){var t=r;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},Ml=M.createContext(null);function q0(e){var r=e.children,t=e.onBatchResize,n=M.useRef(0),i=M.useRef([]),o=M.useContext(Ml),a=M.useCallback(function(s,c,d){n.current+=1;var f=n.current;i.current.push({size:s,element:c,data:d}),Promise.resolve().then(function(){f===n.current&&(t?.(i.current),i.current=[])}),o?.(s,c,d)},[t,o]);return M.createElement(Ml.Provider,{value:a},r)}var Op=(function(){if(typeof Map<"u")return Map;function e(r,t){var n=-1;return r.some(function(i,o){return i[0]===t?(n=o,!0):!1}),n}return(function(){function r(){this.__entries__=[]}return Object.defineProperty(r.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),r.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},r.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},r.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},r.prototype.has=function(t){return!!~e(this.__entries__,t)},r.prototype.clear=function(){this.__entries__.splice(0)},r.prototype.forEach=function(t,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];t.call(n,a[1],a[0])}},r})()})(),Ll=typeof window<"u"&&typeof document<"u"&&window.document===document,co=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),z0=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(co):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),H0=2;function V0(e,r){var t=!1,n=!1,i=0;function o(){t&&(t=!1,e()),n&&s()}function a(){z0(o)}function s(){var c=Date.now();if(t){if(c-i<H0)return;n=!0}else t=!0,n=!1,setTimeout(a,r);i=c}return s}var U0=20,W0=["top","right","bottom","left","width","height","size","weight"],G0=typeof MutationObserver<"u",K0=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=V0(this.refresh.bind(this),U0)}return e.prototype.addObserver=function(r){~this.observers_.indexOf(r)||this.observers_.push(r),this.connected_||this.connect_()},e.prototype.removeObserver=function(r){var t=this.observers_,n=t.indexOf(r);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var r=this.updateObservers_();r&&this.refresh()},e.prototype.updateObservers_=function(){var r=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return r.forEach(function(t){return t.broadcastActive()}),r.length>0},e.prototype.connect_=function(){!Ll||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),G0?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ll||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(r){var t=r.propertyName,n=t===void 0?"":t,i=W0.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),jp=(function(e,r){for(var t=0,n=Object.keys(r);t<n.length;t++){var i=n[t];Object.defineProperty(e,i,{value:r[i],enumerable:!1,writable:!1,configurable:!0})}return e}),dn=(function(e){var r=e&&e.ownerDocument&&e.ownerDocument.defaultView;return r||co}),Tp=Ao(0,0,0,0);function fo(e){return parseFloat(e)||0}function yd(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return r.reduce(function(n,i){var o=e["border-"+i+"-width"];return n+fo(o)},0)}function Y0(e){for(var r=["top","right","bottom","left"],t={},n=0,i=r;n<i.length;n++){var o=i[n],a=e["padding-"+o];t[o]=fo(a)}return t}function X0(e){var r=e.getBBox();return Ao(0,0,r.width,r.height)}function Z0(e){var r=e.clientWidth,t=e.clientHeight;if(!r&&!t)return Tp;var n=dn(e).getComputedStyle(e),i=Y0(n),o=i.left+i.right,a=i.top+i.bottom,s=fo(n.width),c=fo(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+o)!==r&&(s-=yd(n,"left","right")+o),Math.round(c+a)!==t&&(c-=yd(n,"top","bottom")+a)),!J0(e)){var d=Math.round(s+o)-r,f=Math.round(c+a)-t;Math.abs(d)!==1&&(s-=d),Math.abs(f)!==1&&(c-=f)}return Ao(i.left,i.top,s,c)}var Q0=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof dn(e).SVGGraphicsElement}:function(e){return e instanceof dn(e).SVGElement&&typeof e.getBBox=="function"}})();function J0(e){return e===dn(e).document.documentElement}function eb(e){return Ll?Q0(e)?X0(e):Z0(e):Tp}function tb(e){var r=e.x,t=e.y,n=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return jp(a,{x:r,y:t,width:n,height:i,top:t,right:r+n,bottom:i+t,left:r}),a}function Ao(e,r,t,n){return{x:e,y:r,width:t,height:n}}var rb=(function(){function e(r){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ao(0,0,0,0),this.target=r}return e.prototype.isActive=function(){var r=eb(this.target);return this.contentRect_=r,r.width!==this.broadcastWidth||r.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var r=this.contentRect_;return this.broadcastWidth=r.width,this.broadcastHeight=r.height,r},e})(),nb=(function(){function e(r,t){var n=tb(t);jp(this,{target:r,contentRect:n})}return e})(),ib=(function(){function e(r,t,n){if(this.activeObservations_=[],this.observations_=new Op,typeof r!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=r,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(r instanceof dn(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(r)||(t.set(r,new rb(r)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(r instanceof dn(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(r)&&(t.delete(r),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var r=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&r.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var r=this.callbackCtx_,t=this.activeObservations_.map(function(n){return new nb(n.target,n.broadcastRect())});this.callback_.call(r,t,r),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Ap=typeof WeakMap<"u"?new WeakMap:new Op,kp=(function(){function e(r){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=K0.getInstance(),n=new ib(r,t,this);Ap.set(this,n)}return e})();["observe","unobserve","disconnect"].forEach(function(e){kp.prototype[e]=function(){var r;return(r=Ap.get(this))[e].apply(r,arguments)}});var ob=(function(){return typeof co.ResizeObserver<"u"?co.ResizeObserver:kp})(),wr=new Map;function Pp(e){e.forEach(function(r){var t,n=r.target;(t=wr.get(n))===null||t===void 0||t.forEach(function(i){return i(n)})})}var Np=new ob(Pp);process.env.NODE_ENV;process.env.NODE_ENV;function ab(e,r){wr.has(e)||(wr.set(e,new Set),Np.observe(e)),wr.get(e).add(r)}function sb(e,r){wr.has(e)&&(wr.get(e).delete(r),wr.get(e).size||(Np.unobserve(e),wr.delete(e)))}function St(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function bd(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fp(n.key),n)}}function _t(e,r,t){return r&&bd(e.prototype,r),t&&bd(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ai(e,r){return ai=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},ai(e,r)}function $r(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&ai(e,r)}function si(e){return si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},si(e)}function Ou(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ou=function(){return!!e})()}function Ne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lb(e,r){if(r&&(je(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ne(e)}function Br(e){var r=Ou();return function(){var t,n=si(e);if(r){var i=si(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return lb(this,t)}}var ub=(function(e){$r(t,e);var r=Br(t);function t(){return St(this,t),r.apply(this,arguments)}return _t(t,[{key:"render",value:function(){return this.props.children}}]),t})(M.Component);function cb(e,r){var t=e.children,n=e.disabled,i=M.useRef(null),o=M.useRef(null),a=M.useContext(Ml),s=typeof t=="function",c=s?t(i):t,d=M.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!s&&M.isValidElement(c)&&To(c),l=f?Ru(c):null,u=Cu(l,i),h=function(){var g;return Qi(i.current)||(i.current&&je(i.current)==="object"?Qi((g=i.current)===null||g===void 0?void 0:g.nativeElement):null)||Qi(o.current)};M.useImperativeHandle(r,function(){return h()});var v=M.useRef(e);v.current=e;var b=M.useCallback(function(p){var g=v.current,m=g.onResize,x=g.data,y=p.getBoundingClientRect(),E=y.width,_=y.height,w=p.offsetWidth,S=p.offsetHeight,T=Math.floor(E),O=Math.floor(_);if(d.current.width!==T||d.current.height!==O||d.current.offsetWidth!==w||d.current.offsetHeight!==S){var C={width:T,height:O,offsetWidth:w,offsetHeight:S};d.current=C;var R=w===Math.round(E)?E:w,j=S===Math.round(_)?_:S,A=ie(ie({},C),{},{offsetWidth:R,offsetHeight:j});a?.(A,p,x),m&&Promise.resolve().then(function(){m(A,p)})}},[]);return M.useEffect(function(){var p=h();return p&&!n&&ab(p,b),function(){return sb(p,b)}},[i.current,n]),M.createElement(ub,{ref:o},f?M.cloneElement(c,{ref:u}):c)}var Ip=M.forwardRef(cb);process.env.NODE_ENV!=="production"&&(Ip.displayName="SingleObserver");var fb="rc-observer-key";function db(e,r){var t=e.children,n=typeof t=="function"?[t]:fn(t);return process.env.NODE_ENV!=="production"&&(n.length>1?cn(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&cn(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(i,o){var a=i?.key||"".concat(fb,"-").concat(o);return M.createElement(Ip,tt({},e,{key:a,ref:o===0?r:void 0}),i)})}var wn=M.forwardRef(db);process.env.NODE_ENV!=="production"&&(wn.displayName="ResizeObserver");wn.Collection=q0;var xd=process.env.NODE_ENV!=="test"&&Tt()?M.useLayoutEffect:M.useEffect,st=function(r,t){var n=M.useRef(!0);xd(function(){return r(n.current)},t),xd(function(){return n.current=!1,function(){n.current=!0}},[])},Ed=function(r,t){st(function(n){if(!n)return r()},t)};function jt(e){var r=M.useRef();r.current=e;var t=M.useCallback(function(){for(var n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(n=r.current)===null||n===void 0?void 0:n.call.apply(n,[r].concat(o))},[]);return t}function li(e){var r=M.useRef(!1),t=M.useState(e),n=ve(t,2),i=n[0],o=n[1];M.useEffect(function(){return r.current=!1,function(){r.current=!0}},[]);function a(s,c){c&&r.current||o(s)}return[i,a]}function Gs(e){return e!==void 0}function Gr(e,r){var t=r||{},n=t.defaultValue,i=t.value,o=t.onChange,a=t.postState,s=li(function(){return Gs(i)?i:Gs(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),c=ve(s,2),d=c[0],f=c[1],l=i!==void 0?i:d,u=a?a(l):l,h=jt(o),v=li([l]),b=ve(v,2),p=b[0],g=b[1];Ed(function(){var x=p[0];d!==x&&h(d,x)},[p]),Ed(function(){Gs(i)||f(i)},[i]);var m=jt(function(x,y){f(x,y),g([l],y)});return[u,m]}function Mp(e,r){var t=Object.assign({},e);return Array.isArray(r)&&r.forEach(function(n){delete t[n]}),t}var hb=function(r){if(Tt()&&window.document.documentElement){var t=Array.isArray(r)?r:[r],n=window.document.documentElement;return t.some(function(i){return i in n.style})}return!1};function wd(e,r){return hb(e)}function ui(e){for(var r=0,t,n=0,i=e.length;i>=4;++n,i-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(i){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}function Dl(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=n.has(o);if(ot(!c,"Warning: There may be circular references"),c)return!1;if(o===a)return!0;if(t&&s>1)return!1;n.add(o);var d=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var f=0;f<o.length;f++)if(!i(o[f],a[f],d))return!1;return!0}if(o&&a&&je(o)==="object"&&je(a)==="object"){var l=Object.keys(o);return l.length!==Object.keys(a).length?!1:l.every(function(u){return i(o[u],a[u],d)})}return!1}return i(e,r)}var pb="%";function Fl(e){return e.join(pb)}var vb=(function(){function e(r){St(this,e),te(this,"instanceId",void 0),te(this,"cache",new Map),te(this,"extracted",new Set),this.instanceId=r}return _t(e,[{key:"get",value:function(t){return this.opGet(Fl(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,n){return this.opUpdate(Fl(t),n)}},{key:"opUpdate",value:function(t,n){var i=this.cache.get(t),o=n(i);o===null?this.cache.delete(t):this.cache.set(t,o)}}]),e})(),hn="data-token-hash",sr="data-css-hash",mb="data-cache-path",Lr="__cssinjs_instance__";function gb(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var r=document.body.querySelectorAll("style[".concat(sr,"]"))||[],t=document.head.firstChild;Array.from(r).forEach(function(i){i[Lr]=i[Lr]||e,i[Lr]===e&&document.head.insertBefore(i,t)});var n={};Array.from(document.querySelectorAll("style[".concat(sr,"]"))).forEach(function(i){var o=i.getAttribute(sr);if(n[o]){if(i[Lr]===e){var a;(a=i.parentNode)===null||a===void 0||a.removeChild(i)}}else n[o]=!0})}return new vb(e)}var mi=M.createContext({hashPriority:"low",cache:gb(),defaultCache:!0});function yb(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}var ju=(function(){function e(){St(this,e),te(this,"cache",void 0),te(this,"keys",void 0),te(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return _t(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var n,i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return t.forEach(function(s){if(!a)a=void 0;else{var c;a=(c=a)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(n=a)!==null&&n!==void 0&&n.value&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===null||i===void 0?void 0:i.value}},{key:"get",value:function(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(t,n){var i=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(d,f){var l=ve(d,2),u=l[1];return i.internalGet(f)[1]<u?[f,i.internalGet(f)[1]]:d},[this.keys[0],this.cacheCallTimes]),a=ve(o,1),s=a[0];this.delete(s)}this.keys.push(t)}var c=this.cache;t.forEach(function(d,f){if(f===t.length-1)c.set(d,{value:[n,i.cacheCallTimes++]});else{var l=c.get(d);l?l.map||(l.map=new Map):c.set(d,{map:new Map}),c=c.get(d).map}})}},{key:"deleteByPath",value:function(t,n){var i=t.get(n[0]);if(n.length===1){var o;return i.map?t.set(n[0],{map:i.map}):t.delete(n[0]),(o=i.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(i.map,n.slice(1));return(!i.map||i.map.size===0)&&!i.value&&t.delete(n[0]),a}},{key:"delete",value:function(t){if(this.has(t))return this.keys=this.keys.filter(function(n){return!yb(n,t)}),this.deleteByPath(this.cache,t)}}]),e})();te(ju,"MAX_CACHE_SIZE",20);te(ju,"MAX_CACHE_OFFSET",5);var Sd=0,Lp=(function(){function e(r){St(this,e),te(this,"derivatives",void 0),te(this,"id",void 0),this.derivatives=Array.isArray(r)?r:[r],this.id=Sd,r.length===0&&cn(r.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Sd+=1}return _t(e,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce(function(n,i){return i(t,n)},void 0)}}]),e})(),Ks=new ju;function $l(e){var r=Array.isArray(e)?e:[e];return Ks.has(r)||Ks.set(r,new Lp(r)),Ks.get(r)}var bb=new WeakMap,Ys={};function xb(e,r){for(var t=bb,n=0;n<r.length;n+=1){var i=r[n];t.has(i)||t.set(i,new WeakMap),t=t.get(i)}return t.has(Ys)||t.set(Ys,e()),t.get(Ys)}var _d=new WeakMap;function ei(e){var r=_d.get(e)||"";return r||(Object.keys(e).forEach(function(t){var n=e[t];r+=t,n instanceof Lp?r+=n.id:n&&je(n)==="object"?r+=ei(n):r+=n}),r=ui(r),_d.set(e,r)),r}function Cd(e,r){return ui("".concat(r,"_").concat(ei(e)))}var Bl=Tt();function Ye(e){return typeof e=="number"?"".concat(e,"px"):e}function ho(e,r,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var o=ie(ie({},n),{},te(te({},hn,r),sr,t)),a=Object.keys(o).map(function(s){var c=o[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var Ji=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(r).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Eb=function(r,t,n){return Object.keys(r).length?".".concat(t).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(r).map(function(i){var o=ve(i,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Dp=function(r,t,n){var i={},o={};return Object.entries(r).forEach(function(a){var s,c,d=ve(a,2),f=d[0],l=d[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[f])o[f]=l;else if((typeof l=="string"||typeof l=="number")&&!(n!=null&&(c=n.ignore)!==null&&c!==void 0&&c[f])){var u,h=Ji(f,n?.prefix);i[h]=typeof l=="number"&&!(n!=null&&(u=n.unitless)!==null&&u!==void 0&&u[f])?"".concat(l,"px"):String(l),o[f]="var(".concat(h,")")}}),[o,Eb(i,t,{scope:n?.scope})]},wb=ie({},M),Rd=wb.useInsertionEffect,Sb=function(r,t,n){M.useMemo(r,n),st(function(){return t(!0)},n)},_b=Rd?function(e,r,t){return Rd(function(){return e(),r()},t)}:Sb,Cb=ie({},M),Rb=Cb.useInsertionEffect,Ob=function(r){var t=[],n=!1;function i(o){if(n){process.env.NODE_ENV!=="production"&&cn(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}t.push(o)}return M.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(o){return o()})}},r),i},jb=function(){return function(r){r()}},Tb=typeof Rb<"u"?Ob:jb;function Ab(){return!1}var ql=!1;function kb(){return ql}const Pb=process.env.NODE_ENV==="production"?Ab:kb;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Li=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(Li&&typeof Li.webpackHotUpdate=="function"){var Nb=Li.webpackHotUpdate;Li.webpackHotUpdate=function(){return ql=!0,setTimeout(function(){ql=!1},0),Nb.apply(void 0,arguments)}}}function Tu(e,r,t,n,i){var o=M.useContext(mi),a=o.cache,s=[e].concat(we(r)),c=Fl(s),d=Tb([c]),f=Pb(),l=function(b){a.opUpdate(c,function(p){var g=p||[void 0,void 0],m=ve(g,2),x=m[0],y=x===void 0?0:x,E=m[1],_=E;process.env.NODE_ENV!=="production"&&E&&f&&(n?.(_,f),_=null);var w=_||t(),S=[y,w];return b?b(S):S})};M.useMemo(function(){l()},[c]);var u=a.opGet(c);process.env.NODE_ENV!=="production"&&!u&&(l(),u=a.opGet(c));var h=u[1];return _b(function(){i?.(h)},function(v){return l(function(b){var p=ve(b,2),g=p[0],m=p[1];return v&&g===0&&i?.(h),[g+1,m]}),function(){a.opUpdate(c,function(b){var p=b||[],g=ve(p,2),m=g[0],x=m===void 0?0:m,y=g[1],E=x-1;return E===0?(d(function(){(v||!a.opGet(c))&&n?.(y,!1)}),null):[x-1,y]})}},[c]),h}var Ib={},Mb=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",zr=new Map;function Lb(e){zr.set(e,(zr.get(e)||0)+1)}function Db(e,r){if(typeof document<"u"){var t=document.querySelectorAll("style[".concat(hn,'="').concat(e,'"]'));t.forEach(function(n){if(n[Lr]===r){var i;(i=n.parentNode)===null||i===void 0||i.removeChild(n)}})}}var Fb=0;function $b(e,r){zr.set(e,(zr.get(e)||0)-1);var t=new Set;zr.forEach(function(n,i){n<=0&&t.add(i)}),zr.size-t.size>Fb&&t.forEach(function(n){Db(n,r),zr.delete(n)})}var Bb=function(r,t,n,i){var o=n.getDerivativeToken(r),a=ie(ie({},o),t);return i&&(a=i(a)),a},Fp="token";function qb(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=z.useContext(mi),i=n.cache.instanceId,o=n.container,a=t.salt,s=a===void 0?"":a,c=t.override,d=c===void 0?Ib:c,f=t.formatToken,l=t.getComputedToken,u=t.cssVar,h=xb(function(){return Object.assign.apply(Object,[{}].concat(we(r)))},r),v=ei(h),b=ei(d),p=u?ei(u):"",g=Tu(Fp,[s,e.id,v,b,p],function(){var m,x=l?l(h,d,e):Bb(h,d,e,f),y=ie({},x),E="";if(u){var _=Dp(x,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve}),w=ve(_,2);x=w[0],E=w[1]}var S=Cd(x,s);x._tokenKey=S,y._tokenKey=Cd(y,s);var T=(m=u?.key)!==null&&m!==void 0?m:S;x._themeKey=T,Lb(T);var O="".concat(Mb,"-").concat(ui(S));return x._hashId=O,[x,O,y,E,u?.key||""]},function(m){$b(m[0]._themeKey,i)},function(m){var x=ve(m,4),y=x[0],E=x[3];if(u&&E){var _=Sr(E,ui("css-variables-".concat(y._themeKey)),{mark:sr,prepend:"queue",attachTo:o,priority:-999});_[Lr]=i,_.setAttribute(hn,y._themeKey)}});return g}var zb=function(r,t,n){var i=ve(r,5),o=i[2],a=i[3],s=i[4],c=n||{},d=c.plain;if(!a)return null;var f=o._tokenKey,l=-999,u={"data-rc-order":"prependQueue","data-rc-priority":"".concat(l)},h=ho(a,s,f,u,d);return[l,f,h]},Hb={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},$p="comm",Bp="rule",qp="decl",Vb="@import",Ub="@namespace",Wb="@keyframes",Gb="@layer",zp=Math.abs,Au=String.fromCharCode;function Hp(e){return e.trim()}function eo(e,r,t){return e.replace(r,t)}function Kb(e,r,t){return e.indexOf(r,t)}function sn(e,r){return e.charCodeAt(r)|0}function pn(e,r,t){return e.slice(r,t)}function hr(e){return e.length}function Yb(e){return e.length}function Di(e,r){return r.push(e),e}var ko=1,vn=1,Vp=0,Xt=0,gt=0,Sn="";function ku(e,r,t,n,i,o,a,s){return{value:e,root:r,parent:t,type:n,props:i,children:o,line:ko,column:vn,length:a,return:"",siblings:s}}function Xb(){return gt}function Zb(){return gt=Xt>0?sn(Sn,--Xt):0,vn--,gt===10&&(vn=1,ko--),gt}function lr(){return gt=Xt<Vp?sn(Sn,Xt++):0,vn++,gt===10&&(vn=1,ko++),gt}function Dr(){return sn(Sn,Xt)}function to(){return Xt}function Po(e,r){return pn(Sn,e,r)}function ci(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Qb(e){return ko=vn=1,Vp=hr(Sn=e),Xt=0,[]}function Jb(e){return Sn="",e}function Xs(e){return Hp(Po(Xt-1,zl(e===91?e+2:e===40?e+1:e)))}function e1(e){for(;(gt=Dr())&&gt<33;)lr();return ci(e)>2||ci(gt)>3?"":" "}function t1(e,r){for(;--r&&lr()&&!(gt<48||gt>102||gt>57&&gt<65||gt>70&&gt<97););return Po(e,to()+(r<6&&Dr()==32&&lr()==32))}function zl(e){for(;lr();)switch(gt){case e:return Xt;case 34:case 39:e!==34&&e!==39&&zl(gt);break;case 40:e===41&&zl(e);break;case 92:lr();break}return Xt}function r1(e,r){for(;lr()&&e+gt!==57;)if(e+gt===84&&Dr()===47)break;return"/*"+Po(r,Xt-1)+"*"+Au(e===47?e:lr())}function n1(e){for(;!ci(Dr());)lr();return Po(e,Xt)}function i1(e){return Jb(ro("",null,null,null,[""],e=Qb(e),0,[0],e))}function ro(e,r,t,n,i,o,a,s,c){for(var d=0,f=0,l=a,u=0,h=0,v=0,b=1,p=1,g=1,m=0,x="",y=i,E=o,_=n,w=x;p;)switch(v=m,m=lr()){case 40:if(v!=108&&sn(w,l-1)==58){Kb(w+=eo(Xs(m),"&","&\f"),"&\f",zp(d?s[d-1]:0))!=-1&&(g=-1);break}case 34:case 39:case 91:w+=Xs(m);break;case 9:case 10:case 13:case 32:w+=e1(v);break;case 92:w+=t1(to()-1,7);continue;case 47:switch(Dr()){case 42:case 47:Di(o1(r1(lr(),to()),r,t,c),c),(ci(v||1)==5||ci(Dr()||1)==5)&&hr(w)&&pn(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*b:s[d++]=hr(w)*g;case 125*b:case 59:case 0:switch(m){case 0:case 125:p=0;case 59+f:g==-1&&(w=eo(w,/\f/g,"")),h>0&&(hr(w)-l||b===0&&v===47)&&Di(h>32?jd(w+";",n,t,l-1,c):jd(eo(w," ","")+";",n,t,l-2,c),c);break;case 59:w+=";";default:if(Di(_=Od(w,r,t,d,f,i,s,x,y=[],E=[],l,o),o),m===123)if(f===0)ro(w,r,_,_,y,o,l,s,E);else{switch(u){case 99:if(sn(w,3)===110)break;case 108:if(sn(w,2)===97)break;default:f=0;case 100:case 109:case 115:}f?ro(e,_,_,n&&Di(Od(e,_,_,0,0,i,s,x,i,y=[],l,E),E),i,E,l,s,n?y:E):ro(w,_,_,_,[""],E,0,s,E)}}d=f=h=0,b=g=1,x=w="",l=a;break;case 58:l=1+hr(w),h=v;default:if(b<1){if(m==123)--b;else if(m==125&&b++==0&&Zb()==125)continue}switch(w+=Au(m),m*b){case 38:g=f>0?1:(w+="\f",-1);break;case 44:s[d++]=(hr(w)-1)*g,g=1;break;case 64:Dr()===45&&(w+=Xs(lr())),u=Dr(),f=l=hr(x=w+=n1(to())),m++;break;case 45:v===45&&hr(w)==2&&(b=0)}}return o}function Od(e,r,t,n,i,o,a,s,c,d,f,l){for(var u=i-1,h=i===0?o:[""],v=Yb(h),b=0,p=0,g=0;b<n;++b)for(var m=0,x=pn(e,u+1,u=zp(p=a[b])),y=e;m<v;++m)(y=Hp(p>0?h[m]+" "+x:eo(x,/&\f/g,h[m])))&&(c[g++]=y);return ku(e,r,t,i===0?Bp:s,c,d,f,l)}function o1(e,r,t,n){return ku(e,r,t,$p,Au(Xb()),pn(e,2,-2),0,n)}function jd(e,r,t,n,i){return ku(e,r,t,qp,pn(e,0,n),pn(e,n+1,-1),n,i)}function Hl(e,r){for(var t="",n=0;n<e.length;n++)t+=r(e[n],n,e,r)||"";return t}function a1(e,r,t,n){switch(e.type){case Gb:if(e.children.length)break;case Vb:case Ub:case qp:return e.return=e.return||e.value;case $p:return"";case Wb:return e.return=e.value+"{"+Hl(e.children,n)+"}";case Bp:if(!hr(e.value=e.props.join(",")))return""}return hr(t=Hl(e.children,n))?e.return=e.value+"{"+t+"}":""}function Up(e,r){var t=r.path,n=r.parentSelectors;ot(!1,"[Ant Design CSS-in-JS] ".concat(t?"Error in ".concat(t,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var s1=function(r,t,n){if(r==="content"){var i=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,o=["normal","none","initial","inherit","unset"];(typeof t!="string"||o.indexOf(t)===-1&&!i.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!=='"'&&t.charAt(0)!=="'"))&&Up("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),n)}},l1=function(r,t,n){r==="animation"&&n.hashId&&t!=="none"&&Up("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Td="data-ant-cssinjs-cache-path",Wp="_FILE_STYLE__",Ur,Gp=!0;function u1(){if(!Ur&&(Ur={},Tt())){var e=document.createElement("div");e.className=Td,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var r=getComputedStyle(e).content||"";r=r.replace(/^"/,"").replace(/"$/,""),r.split(";").forEach(function(i){var o=i.split(":"),a=ve(o,2),s=a[0],c=a[1];Ur[s]=c});var t=document.querySelector("style[".concat(Td,"]"));if(t){var n;Gp=!1,(n=t.parentNode)===null||n===void 0||n.removeChild(t)}document.body.removeChild(e)}}function c1(e){return u1(),!!Ur[e]}function f1(e){var r=Ur[e],t=null;if(r&&Tt())if(Gp)t=Wp;else{var n=document.querySelector("style[".concat(sr,'="').concat(Ur[e],'"]'));n?t=n.innerHTML:delete Ur[e]}return[t,r]}var Kp="_skip_check_",Yp="_multi_value_";function no(e){var r=Hl(i1(e),a1);return r.replace(/\{%%%\:[^;];}/g,";")}function d1(e){return je(e)==="object"&&e&&(Kp in e||Yp in e)}function Ad(e,r,t){if(!r)return e;var n=".".concat(r),i=t==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(a){var s,c=a.trim().split(/\s+/),d=c[0]||"",f=((s=d.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return d="".concat(f).concat(i).concat(d.slice(f.length)),[d].concat(we(c.slice(1))).join(" ")});return o.join(",")}var h1=function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,o=n.injectHash,a=n.parentSelectors,s=t.hashId,c=t.layer,d=t.path,f=t.hashPriority,l=t.transformers,u=l===void 0?[]:l,h=t.linters,v=h===void 0?[]:h,b="",p={};function g(y){var E=y.getName(s);if(!p[E]){var _=e(y.style,t,{root:!1,parentSelectors:a}),w=ve(_,1),S=w[0];p[E]="@keyframes ".concat(y.getName(s)).concat(S)}}function m(y){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(_){Array.isArray(_)?m(_,E):_&&E.push(_)}),E}var x=m(Array.isArray(r)?r:[r]);return x.forEach(function(y){var E=typeof y=="string"&&!i?{}:y;if(typeof E=="string")b+="".concat(E,`
134
+ `);else if(E._keyframe)g(E);else{var _=u.reduce(function(w,S){var T;return(S==null||(T=S.visit)===null||T===void 0?void 0:T.call(S,w))||w},E);Object.keys(_).forEach(function(w){var S=_[w];if(je(S)==="object"&&S&&(w!=="animationName"||!S._keyframe)&&!d1(S)){var T=!1,O=w.trim(),C=!1;(i||o)&&s?O.startsWith("@")?T=!0:O==="&"?O=Ad("",s,f):O=Ad(w,s,f):i&&!s&&(O==="&"||O==="")&&(O="",C=!0);var R=e(S,t,{root:C,injectHash:T,parentSelectors:[].concat(we(a),[O])}),j=ve(R,2),A=j[0],I=j[1];p=ie(ie({},p),I),b+="".concat(O).concat(A)}else{let G=function(D,F){process.env.NODE_ENV!=="production"&&(je(S)!=="object"||!(S!=null&&S[Kp]))&&[s1,l1].concat(we(v)).forEach(function(B){return B(D,F,{path:d,hashId:s,parentSelectors:a})});var P=D.replace(/[A-Z]/g,function(B){return"-".concat(B.toLowerCase())}),L=F;!Hb[D]&&typeof L=="number"&&L!==0&&(L="".concat(L,"px")),D==="animationName"&&F!==null&&F!==void 0&&F._keyframe&&(g(F),L=F.getName(s)),b+="".concat(P,":").concat(L,";")};var $,H=($=S?.value)!==null&&$!==void 0?$:S;je(S)==="object"&&S!==null&&S!==void 0&&S[Yp]&&Array.isArray(H)?H.forEach(function(D){G(w,D)}):G(w,H)}})}}),i?c&&(b&&(b="@layer ".concat(c.name," {").concat(b,"}")),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map(function(y){return"@layer ".concat(y,", ").concat(c.name,";")}).join(`
135
+ `))):b="{".concat(b,"}"),[b,p]};function Xp(e,r){return ui("".concat(e.join("%")).concat(r))}function p1(){return null}var Zp="style";function Vl(e,r){var t=e.token,n=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,c=e.order,d=c===void 0?0:c,f=M.useContext(mi),l=f.autoClear,u=f.mock,h=f.defaultCache,v=f.hashPriority,b=f.container,p=f.ssrInline,g=f.transformers,m=f.linters,x=f.cache,y=f.layer,E=t._tokenKey,_=[E];y&&_.push("layer"),_.push.apply(_,we(n));var w=Bl;process.env.NODE_ENV!=="production"&&u!==void 0&&(w=u==="client");var S=Tu(Zp,_,function(){var j=_.join("|");if(c1(j)){var A=f1(j),I=ve(A,2),$=I[0],H=I[1];if($)return[$,E,H,{},s,d]}var G=r(),D=h1(G,{hashId:i,hashPriority:v,layer:y?o:void 0,path:n.join("-"),transformers:g,linters:m}),F=ve(D,2),P=F[0],L=F[1],B=no(P),X=Xp(_,B);return[B,E,X,L,s,d]},function(j,A){var I=ve(j,3),$=I[2];(A||l)&&Bl&&ii($,{mark:sr,attachTo:b})},function(j){var A=ve(j,4),I=A[0];A[1];var $=A[2],H=A[3];if(w&&I!==Wp){var G={mark:sr,prepend:y?!1:"queue",attachTo:b,priority:d},D=typeof a=="function"?a():a;D&&(G.csp={nonce:D});var F=[],P=[];Object.keys(H).forEach(function(B){B.startsWith("@layer")?F.push(B):P.push(B)}),F.forEach(function(B){Sr(no(H[B]),"_layer-".concat(B),ie(ie({},G),{},{prepend:!0}))});var L=Sr(I,$,G);L[Lr]=x.instanceId,L.setAttribute(hn,E),process.env.NODE_ENV!=="production"&&L.setAttribute(mb,_.join("|")),P.forEach(function(B){Sr(no(H[B]),"_effect-".concat(B),G)})}}),T=ve(S,3),O=T[0],C=T[1],R=T[2];return function(j){var A;return!p||w||!h?A=M.createElement(p1,null):A=M.createElement("style",tt({},te(te({},hn,C),sr,R),{dangerouslySetInnerHTML:{__html:O}})),M.createElement(M.Fragment,null,A,j)}}var v1=function(r,t,n){var i=ve(r,6),o=i[0],a=i[1],s=i[2],c=i[3],d=i[4],f=i[5],l=n||{},u=l.plain;if(d)return null;var h=o,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)};return h=ho(o,a,s,v,u),c&&Object.keys(c).forEach(function(b){if(!t[b]){t[b]=!0;var p=no(c[b]),g=ho(p,a,"_effect-".concat(b),v,u);b.startsWith("@layer")?h=g+h:h+=g}}),[f,s,h]},Qp="cssVar",m1=function(r,t){var n=r.key,i=r.prefix,o=r.unitless,a=r.ignore,s=r.token,c=r.scope,d=c===void 0?"":c,f=z.useContext(mi),l=f.cache.instanceId,u=f.container,h=s._tokenKey,v=[].concat(we(r.path),[n,d,h]),b=Tu(Qp,v,function(){var p=t(),g=Dp(p,n,{prefix:i,unitless:o,ignore:a,scope:d}),m=ve(g,2),x=m[0],y=m[1],E=Xp(v,y);return[x,y,E,n]},function(p){var g=ve(p,3),m=g[2];Bl&&ii(m,{mark:sr,attachTo:u})},function(p){var g=ve(p,3),m=g[1],x=g[2];if(m){var y=Sr(m,x,{mark:sr,prepend:"queue",attachTo:u,priority:-999});y[Lr]=l,y.setAttribute(hn,n)}});return b},g1=function(r,t,n){var i=ve(r,4),o=i[1],a=i[2],s=i[3],c=n||{},d=c.plain;if(!o)return null;var f=-999,l={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},u=ho(o,s,a,l,d);return[f,a,u]};te(te(te({},Zp,v1),Fp,zb),Qp,g1);var Qt=(function(){function e(r,t){St(this,e),te(this,"name",void 0),te(this,"style",void 0),te(this,"_keyframe",!0),this.name=r,this.style=t}return _t(e,[{key:"getName",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e})();function Zr(e){return e.notSplit=!0,e}Zr(["borderTop","borderBottom"]),Zr(["borderTop"]),Zr(["borderBottom"]),Zr(["borderLeft","borderRight"]),Zr(["borderLeft"]),Zr(["borderRight"]);function y1(e){return up(e)||lp(e)||bu(e)||cp()}function pr(e,r){for(var t=e,n=0;n<r.length;n+=1){if(t==null)return;t=t[r[n]]}return t}function Jp(e,r,t,n){if(!r.length)return t;var i=y1(r),o=i[0],a=i.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=we(e):s=ie({},e),n&&t===void 0&&a.length===1?delete s[o][a[0]]:s[o]=Jp(s[o],a,t,n),s}function or(e,r,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return r.length&&n&&t===void 0&&!pr(e,r.slice(0,-1))?e:Jp(e,r,t,n)}function b1(e){return je(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function kd(e){return Array.isArray(e)?[]:{}}var x1=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function nn(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=kd(r[0]);return r.forEach(function(i){function o(a,s){var c=new Set(s),d=pr(i,a),f=Array.isArray(d);if(f||b1(d)){if(!c.has(d)){c.add(d);var l=pr(n,a);f?n=or(n,a,[]):(!l||je(l)!=="object")&&(n=or(n,a,kd(d))),x1(d).forEach(function(u){o([].concat(we(a),[u]),c)})}}else n=or(n,a,d)}o([])}),n}function ev(){}let xr=null;function E1(){xr=null,bp()}let tv=ev;process.env.NODE_ENV!=="production"&&(tv=(e,r,t)=>{ot(e,`[antd: ${r}] ${t}`),process.env.NODE_ENV==="test"&&E1()});const gi=tv,rv=M.createContext({}),vr=process.env.NODE_ENV!=="production"?e=>{const{strict:r}=M.useContext(rv),t=(n,i,o)=>{if(!n)if(r===!1&&i==="deprecated"){const a=xr;xr||(xr={}),xr[e]=xr[e]||[],xr[e].includes(o||"")||xr[e].push(o||""),a||console.warn("[antd] There exists deprecated usage in your code:",xr)}else process.env.NODE_ENV!=="production"&&gi(n,e,o)};return t.deprecated=(n,i,o,a)=>{t(n,"deprecated",`\`${i}\` is deprecated. Please use \`${o}\` instead.${a?` ${a}`:""}`)},t}:()=>{const e=()=>{};return e.deprecated=ev,e},w1=z.createContext(void 0);var S1={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},_1={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},C1=ie(ie({},_1),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const nv={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Pd={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},C1),timePickerLocale:Object.assign({},nv)},Ft="${label} is not a valid ${type}",mn={locale:"en",Pagination:S1,DatePicker:Pd,TimePicker:nv,Calendar:Pd,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ft,method:Ft,array:Ft,object:Ft,number:Ft,date:Ft,boolean:Ft,integer:Ft,float:Ft,regexp:Ft,email:Ft,url:Ft,hex:Ft},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},mn.Modal);let io=[];const Nd=()=>io.reduce((e,r)=>Object.assign(Object.assign({},e),r),mn.Modal);function R1(e){if(e){const r=Object.assign({},e);return io.push(r),Nd(),()=>{io=io.filter(t=>t!==r),Nd()}}Object.assign({},mn.Modal)}const Pu=z.createContext(void 0),O1=(e,r)=>{const t=M.useContext(Pu),n=M.useMemo(()=>{var o;const a=mn[e],s=(o=t?.[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,r,t]),i=M.useMemo(()=>{const o=t?.locale;return t?.exist&&!o?mn.locale:o},[t]);return[n,i]},iv="internalMark",ov=e=>{const{locale:r={},children:t,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const o=vr("LocaleProvider");process.env.NODE_ENV!=="production"&&o(n===iv,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}M.useEffect(()=>R1(r?.Modal),[r]);const i=M.useMemo(()=>Object.assign(Object.assign({},r),{exist:!0}),[r]);return M.createElement(Pu.Provider,{value:i},t)};process.env.NODE_ENV!=="production"&&(ov.displayName="LocaleProvider");const av={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},fi=Object.assign(Object.assign({},av),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
136
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
137
+ 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function j1(e,{generateColorPalettes:r,generateNeutralColorPalettes:t}){const{colorSuccess:n,colorWarning:i,colorError:o,colorInfo:a,colorPrimary:s,colorBgBase:c,colorTextBase:d}=e,f=r(s),l=r(n),u=r(i),h=r(o),v=r(a),b=t(c,d),p=e.colorLink||e.colorInfo,g=r(p),m=new bt(h[1]).mix(new bt(h[3]),50).toHexString();return Object.assign(Object.assign({},b),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:l[1],colorSuccessBgHover:l[2],colorSuccessBorder:l[3],colorSuccessBorderHover:l[4],colorSuccessHover:l[4],colorSuccess:l[6],colorSuccessActive:l[7],colorSuccessTextHover:l[8],colorSuccessText:l[9],colorSuccessTextActive:l[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:m,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:u[1],colorWarningBgHover:u[2],colorWarningBorder:u[3],colorWarningBorderHover:u[4],colorWarningHover:u[4],colorWarning:u[6],colorWarningActive:u[7],colorWarningTextHover:u[8],colorWarningText:u[9],colorWarningTextActive:u[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new bt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const T1=e=>{let r=e,t=e,n=e,i=e;return e<6&&e>=5?r=e+1:e<16&&e>=6?r=e+2:e>=16&&(r=16),e<7&&e>=5?t=4:e<8&&e>=7?t=5:e<14&&e>=8?t=6:e<16&&e>=14?t=7:e>=16&&(t=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:t,borderRadiusLG:r,borderRadiusOuter:i}};function A1(e){const{motionUnit:r,motionBase:t,borderRadius:n,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(t+r).toFixed(1)}s`,motionDurationMid:`${(t+r*2).toFixed(1)}s`,motionDurationSlow:`${(t+r*3).toFixed(1)}s`,lineWidthBold:i+1},T1(n))}const k1=e=>{const{controlHeight:r}=e;return{controlHeightSM:r*.75,controlHeightXS:r*.5,controlHeightLG:r*1.25}};function P1(e){return(e+8)/e}function N1(e){const r=Array.from({length:10}).map((t,n)=>{const i=n-1,o=e*Math.pow(Math.E,i/5),a=n>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return r[1]=e,r.map(t=>({size:t,lineHeight:P1(t)}))}const I1=e=>{const r=N1(e),t=r.map(f=>f.size),n=r.map(f=>f.lineHeight),i=t[1],o=t[0],a=t[2],s=n[1],c=n[0],d=n[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:s,lineHeightLG:d,lineHeightSM:c,fontHeight:Math.round(s*i),fontHeightLG:Math.round(d*a),fontHeightSM:Math.round(c*o),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function M1(e){const{sizeUnit:r,sizeStep:t}=e;return{sizeXXL:r*(t+8),sizeXL:r*(t+4),sizeLG:r*(t+2),sizeMD:r*(t+1),sizeMS:r*t,size:r*t,sizeSM:r*(t-1),sizeXS:r*(t-2),sizeXXS:r*(t-3)}}const Wt=(e,r)=>new bt(e).setA(r).toRgbString(),Un=(e,r)=>new bt(e).darken(r).toHexString(),L1=e=>{const r=ni(e);return{1:r[0],2:r[1],3:r[2],4:r[3],5:r[4],6:r[5],7:r[6],8:r[4],9:r[5],10:r[6]}},D1=(e,r)=>{const t=e||"#fff",n=r||"#000";return{colorBgBase:t,colorTextBase:n,colorText:Wt(n,.88),colorTextSecondary:Wt(n,.65),colorTextTertiary:Wt(n,.45),colorTextQuaternary:Wt(n,.25),colorFill:Wt(n,.15),colorFillSecondary:Wt(n,.06),colorFillTertiary:Wt(n,.04),colorFillQuaternary:Wt(n,.02),colorBgSolid:Wt(n,1),colorBgSolidHover:Wt(n,.75),colorBgSolidActive:Wt(n,.95),colorBgLayout:Un(t,4),colorBgContainer:Un(t,0),colorBgElevated:Un(t,0),colorBgSpotlight:Wt(n,.85),colorBgBlur:"transparent",colorBorder:Un(t,15),colorBorderSecondary:Un(t,6)}};function F1(e){Vs.pink=Vs.magenta,Us.pink=Us.magenta;const r=Object.keys(av).map(t=>{const n=e[t]===Vs[t]?Us[t]:ni(e[t]);return Array.from({length:10},()=>1).reduce((i,o,a)=>(i[`${t}-${a+1}`]=n[a],i[`${t}${a+1}`]=n[a],i),{})}).reduce((t,n)=>(t=Object.assign(Object.assign({},t),n),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),r),j1(e,{generateColorPalettes:L1,generateNeutralColorPalettes:D1})),I1(e.fontSize)),M1(e)),k1(e)),A1(e))}const sv=$l(F1),Ul={token:fi,override:{override:fi},hashed:!0},lv=z.createContext(Ul),Wl="ant",Nu="anticon",$1=["outlined","borderless","filled","underlined"],B1=(e,r)=>r||(e?`${Wl}-${e}`:Wl),mr=M.createContext({getPrefixCls:B1,iconPrefixCls:Nu}),{Consumer:l_}=mr,Id={};function No(e){const r=M.useContext(mr),{getPrefixCls:t,direction:n,getPopupContainer:i}=r,o=r[e];return Object.assign(Object.assign({classNames:Id,styles:Id},o),{getPrefixCls:t,direction:n,getPopupContainer:i})}const q1=`-ant-${Date.now()}-${Math.random()}`;function z1(e,r){const t={},n=(a,s)=>{let c=a.clone();return c=s?.(c)||c,c.toRgbString()},i=(a,s)=>{const c=new bt(a),d=ni(c.toRgbString());t[`${s}-color`]=n(c),t[`${s}-color-disabled`]=d[1],t[`${s}-color-hover`]=d[4],t[`${s}-color-active`]=d[6],t[`${s}-color-outline`]=c.clone().setA(.2).toRgbString(),t[`${s}-color-deprecated-bg`]=d[0],t[`${s}-color-deprecated-border`]=d[2]};if(r.primaryColor){i(r.primaryColor,"primary");const a=new bt(r.primaryColor),s=ni(a.toRgbString());s.forEach((d,f)=>{t[`primary-${f+1}`]=d}),t["primary-color-deprecated-l-35"]=n(a,d=>d.lighten(35)),t["primary-color-deprecated-l-20"]=n(a,d=>d.lighten(20)),t["primary-color-deprecated-t-20"]=n(a,d=>d.tint(20)),t["primary-color-deprecated-t-50"]=n(a,d=>d.tint(50)),t["primary-color-deprecated-f-12"]=n(a,d=>d.setA(d.a*.12));const c=new bt(s[0]);t["primary-color-active-deprecated-f-30"]=n(c,d=>d.setA(d.a*.3)),t["primary-color-active-deprecated-d-02"]=n(c,d=>d.darken(2))}return r.successColor&&i(r.successColor,"success"),r.warningColor&&i(r.warningColor,"warning"),r.errorColor&&i(r.errorColor,"error"),r.infoColor&&i(r.infoColor,"info"),`
138
+ :root {
139
+ ${Object.keys(t).map(a=>`--${e}-${a}: ${t[a]};`).join(`
140
+ `)}
141
+ }
142
+ `.trim()}function H1(e,r){const t=z1(e,r);Tt()?Sr(t,`${q1}-dynamic-theme`):process.env.NODE_ENV!=="production"&&gi(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const di=M.createContext(!1),V1=({children:e,disabled:r})=>{const t=M.useContext(di);return M.createElement(di.Provider,{value:r??t},e)},gn=M.createContext(void 0),U1=({children:e,size:r})=>{const t=M.useContext(gn);return M.createElement(gn.Provider,{value:r||t},e)};function W1(){const e=z.useContext(di),r=z.useContext(gn);return{componentDisabled:e,componentSize:r}}var uv=_t(function e(){St(this,e)}),cv="CALC_UNIT",G1=new RegExp(cv,"g");function Zs(e){return typeof e=="number"?"".concat(e).concat(cv):e}var K1=(function(e){$r(t,e);var r=Br(t);function t(n,i){var o;St(this,t),o=r.call(this),te(Ne(o),"result",""),te(Ne(o),"unitlessCssVar",void 0),te(Ne(o),"lowPriority",void 0);var a=je(n);return o.unitlessCssVar=i,n instanceof t?o.result="(".concat(n.result,")"):a==="number"?o.result=Zs(n):a==="string"&&(o.result=n),o}return _t(t,[{key:"add",value:function(i){return i instanceof t?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(Zs(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof t?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(Zs(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof t?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof t?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,a=i||{},s=a.unit,c=!0;return typeof s=="boolean"?c=s:Array.from(this.unitlessCssVar).some(function(d){return o.result.includes(d)})&&(c=!1),this.result=this.result.replace(G1,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),t})(uv),Y1=(function(e){$r(t,e);var r=Br(t);function t(n){var i;return St(this,t),i=r.call(this),te(Ne(i),"result",0),n instanceof t?i.result=n.result:typeof n=="number"&&(i.result=n),i}return _t(t,[{key:"add",value:function(i){return i instanceof t?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof t?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof t?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof t?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),t})(uv),X1=function(r,t){var n=r==="css"?K1:Y1;return function(i){return new n(i,t)}},Md=function(r,t){return"".concat([t,r.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Ld(e,r,t,n){var i=ie({},r[e]);if(n!=null&&n.deprecatedTokens){var o=n.deprecatedTokens;o.forEach(function(s){var c=ve(s,2),d=c[0],f=c[1];if(process.env.NODE_ENV!=="production"&&ot(!(i!=null&&i[d]),"Component Token `".concat(String(d),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(f),"` instead.")),i!=null&&i[d]||i!=null&&i[f]){var l;(l=i[f])!==null&&l!==void 0||(i[f]=i?.[d])}})}var a=ie(ie({},t),i);return Object.keys(a).forEach(function(s){a[s]===r[s]&&delete a[s]}),a}var fv=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",Gl=!0;function Rr(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(!fv)return Object.assign.apply(Object,[{}].concat(r));Gl=!1;var n={};return r.forEach(function(i){if(je(i)==="object"){var o=Object.keys(i);o.forEach(function(a){Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:function(){return i[a]}})})}}),Gl=!0,n}var Dd={};function Z1(){}var Q1=function(r){var t,n=r,i=Z1;return fv&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(r,{get:function(a,s){if(Gl){var c;(c=t)===null||c===void 0||c.add(s)}return a[s]}}),i=function(a,s){var c;Dd[a]={global:Array.from(t),component:ie(ie({},(c=Dd[a])===null||c===void 0?void 0:c.component),s)}}),{token:n,keys:t,flush:i}};function Fd(e,r,t){if(typeof t=="function"){var n;return t(Rr(r,(n=r[e])!==null&&n!==void 0?n:{}))}return t??{}}function J1(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return"max(".concat(n.map(function(o){return Ye(o)}).join(","),")")},min:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return"min(".concat(n.map(function(o){return Ye(o)}).join(","),")")}}}var ex=1e3*60*10,tx=(function(){function e(){St(this,e),te(this,"map",new Map),te(this,"objectIDMap",new WeakMap),te(this,"nextID",0),te(this,"lastAccessBeat",new Map),te(this,"accessBeat",0)}return _t(e,[{key:"set",value:function(t,n){this.clear();var i=this.getCompositeKey(t);this.map.set(i,n),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(t){var n=this.getCompositeKey(t),i=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(t){var n=this,i=t.map(function(o){return o&&je(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(je(o),"_").concat(o)});return i.join("|")}},{key:"getObjectID",value:function(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);var n=this.nextID;return this.objectIDMap.set(t,n),this.nextID+=1,n}},{key:"clear",value:function(){var t=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(i,o){n-i>ex&&(t.map.delete(o),t.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),$d=new tx;function rx(e,r){return z.useMemo(function(){var t=$d.get(r);if(t)return t;var n=e();return $d.set(r,n),n},r)}var nx=function(){return{}};function ix(e){var r=e.useCSP,t=r===void 0?nx:r,n=e.useToken,i=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function c(u,h,v,b){var p=Array.isArray(u)?u[0]:u;function g(S){return"".concat(String(p)).concat(S.slice(0,1).toUpperCase()).concat(S.slice(1))}var m=b?.unitless||{},x=typeof s=="function"?s(u):{},y=ie(ie({},x),{},te({},g("zIndexPopup"),!0));Object.keys(m).forEach(function(S){y[g(S)]=m[S]});var E=ie(ie({},b),{},{unitless:y,prefixToken:g}),_=f(u,h,v,E),w=d(p,v,E);return function(S){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,O=_(S,T),C=ve(O,2),R=C[1],j=w(T),A=ve(j,2),I=A[0],$=A[1];return[I,R,$]}}function d(u,h,v){var b=v.unitless,p=v.injectStyle,g=p===void 0?!0:p,m=v.prefixToken,x=v.ignore,y=function(w){var S=w.rootCls,T=w.cssVar,O=T===void 0?{}:T,C=n(),R=C.realToken;return m1({path:[u],prefix:O.prefix,key:O.key,unitless:b,ignore:x,token:R,scope:S},function(){var j=Fd(u,R,h),A=Ld(u,R,j,{deprecatedTokens:v?.deprecatedTokens});return Object.keys(j).forEach(function(I){A[m(I)]=A[I],delete A[I]}),A}),null},E=function(w){var S=n(),T=S.cssVar;return[function(O){return g&&T?z.createElement(z.Fragment,null,z.createElement(y,{rootCls:w,cssVar:T,component:u}),O):O},T?.key]};return E}function f(u,h,v){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=Array.isArray(u)?u:[u,u],g=ve(p,1),m=g[0],x=p.join("-"),y=e.layer||{name:"antd"};return function(E){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,w=n(),S=w.theme,T=w.realToken,O=w.hashId,C=w.token,R=w.cssVar,j=i(),A=j.rootPrefixCls,I=j.iconPrefixCls,$=t(),H=R?"css":"js",G=rx(function(){var X=new Set;return R&&Object.keys(b.unitless||{}).forEach(function(W){X.add(Ji(W,R.prefix)),X.add(Ji(W,Md(m,R.prefix)))}),X1(H,X)},[H,m,R?.prefix]),D=J1(H),F=D.max,P=D.min,L={theme:S,token:C,hashId:O,nonce:function(){return $.nonce},clientOnly:b.clientOnly,layer:y,order:b.order||-999};typeof o=="function"&&Vl(ie(ie({},L),{},{clientOnly:!1,path:["Shared",A]}),function(){return o(C,{prefix:{rootPrefixCls:A,iconPrefixCls:I},csp:$})});var B=Vl(ie(ie({},L),{},{path:[x,E,I]}),function(){if(b.injectStyle===!1)return[];var X=Q1(C),W=X.token,q=X.flush,N=Fd(m,T,v),V=".".concat(E),U=Ld(m,T,N,{deprecatedTokens:b.deprecatedTokens});R&&N&&je(N)==="object"&&Object.keys(N).forEach(function(ce){N[ce]="var(".concat(Ji(ce,Md(m,R.prefix)),")")});var K=Rr(W,{componentCls:V,prefixCls:E,iconCls:".".concat(I),antCls:".".concat(A),calc:G,max:F,min:P},R?N:U),J=h(K,{hashId:O,prefixCls:E,rootPrefixCls:A,iconPrefixCls:I});q(m,U);var ne=typeof a=="function"?a(K,E,_,b.resetFont):null;return[b.resetStyle===!1?null:ne,J]});return[B,O]}}function l(u,h,v){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=f(u,h,v,ie({resetStyle:!1,order:-998},b)),g=function(x){var y=x.prefixCls,E=x.rootCls,_=E===void 0?y:E;return p(y,_),null};return process.env.NODE_ENV!=="production"&&(g.displayName="SubStyle_".concat(String(Array.isArray(u)?u.join("."):u))),g}return{genStyleHooks:c,genSubStyleComponent:l,genComponentStyleHook:f}}const po=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],ox="5.27.1";function Qs(e){return e>=0&&e<=255}function Fi(e,r){const{r:t,g:n,b:i,a:o}=new bt(e).toRgb();if(o<1)return e;const{r:a,g:s,b:c}=new bt(r).toRgb();for(let d=.01;d<=1;d+=.01){const f=Math.round((t-a*(1-d))/d),l=Math.round((n-s*(1-d))/d),u=Math.round((i-c*(1-d))/d);if(Qs(f)&&Qs(l)&&Qs(u))return new bt({r:f,g:l,b:u,a:Math.round(d*100)/100}).toRgbString()}return new bt({r:t,g:n,b:i,a:1}).toRgbString()}var ax=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};function dv(e){const{override:r}=e,t=ax(e,["override"]),n=Object.assign({},r);Object.keys(fi).forEach(u=>{delete n[u]});const i=Object.assign(Object.assign({},t),n),o=480,a=576,s=768,c=992,d=1200,f=1600;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Fi(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Fi(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Fi(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Fi(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
143
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
144
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
145
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
146
+ `,boxShadowSecondary:`
147
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
148
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
149
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
150
+ `,boxShadowTertiary:`
151
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
152
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
153
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
154
+ `,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:d-1,screenXL:d,screenXLMin:d,screenXLMax:f-1,screenXXL:f,screenXXLMin:f,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
155
+ 0 1px 2px -2px ${new bt("rgba(0, 0, 0, 0.16)").toRgbString()},
156
+ 0 3px 6px 0 ${new bt("rgba(0, 0, 0, 0.12)").toRgbString()},
157
+ 0 5px 12px 4px ${new bt("rgba(0, 0, 0, 0.09)").toRgbString()}
158
+ `,boxShadowDrawerRight:`
159
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
160
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
161
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
162
+ `,boxShadowDrawerLeft:`
163
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
164
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
165
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
166
+ `,boxShadowDrawerUp:`
167
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
168
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
169
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
170
+ `,boxShadowDrawerDown:`
171
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
172
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
173
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
174
+ `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var Bd=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};const hv={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},sx={motionBase:!0,motionUnit:!0},lx={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},pv=(e,r,t)=>{const n=t.getDerivativeToken(e),{override:i}=r,o=Bd(r,["override"]);let a=Object.assign(Object.assign({},n),{override:i});return a=dv(a),o&&Object.entries(o).forEach(([s,c])=>{const{theme:d}=c,f=Bd(c,["theme"]);let l=f;d&&(l=pv(Object.assign(Object.assign({},a),f),{override:f},d)),a[s]=l}),a};function _n(){const{token:e,hashed:r,theme:t,override:n,cssVar:i}=z.useContext(lv),o=`${ox}-${r||""}`,a=t||sv,[s,c,d]=qb(a,[fi,e],{salt:o,override:n,getComputedToken:pv,formatToken:dv,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:hv,ignore:sx,preserve:lx}});return[a,d,r?c:"",s,i]}const Iu=(e,r=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:r?"inherit":e.fontFamily}),ux=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),cx=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),fx=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),dx=(e,r,t,n)=>{const i=`[class^="${r}"], [class*=" ${r}"]`,o=t?`.${t}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},hx=(e,r)=>({outline:`${Ye(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:r??1,transition:"outline-offset 0s, outline 0s"}),px=(e,r)=>({"&:focus-visible":hx(e,r)}),vv=e=>({[`.${e}`]:Object.assign(Object.assign({},ux()),{[`.${e} .${e}-icon`]:{display:"block"}})}),mv=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},px(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:yi}=ix({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:r}=z.useContext(mr);return{rootPrefixCls:e(),iconPrefixCls:r}},useToken:()=>{const[e,r,t,n,i]=_n();return{theme:e,realToken:r,hashId:t,token:n,cssVar:i}},useCSP:()=>{const{csp:e}=z.useContext(mr);return e??{}},getResetStyles:(e,r)=>{var t;const n=fx(e);return[n,{"&":n},vv((t=r?.prefix.iconPrefixCls)!==null&&t!==void 0?t:Nu)]},getCommonStyle:dx,getCompUnitless:()=>hv});function vx(e,r){return po.reduce((t,n)=>{const i=e[`${n}1`],o=e[`${n}3`],a=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},t),r(n,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const mx=(e,r)=>{const[t,n]=_n();return Vl({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>r?.nonce,layer:{name:"antd"}},()=>vv(e))},gx=Object.assign({},M),{useId:qd}=gx,yx=()=>"",bx=typeof qd>"u"?yx:qd;function xx(e,r,t){var n,i;const o=vr("ConfigProvider"),a=e||{},s=a.inherit===!1||!r?Object.assign(Object.assign({},Ul),{hashed:(n=r?.hashed)!==null&&n!==void 0?n:Ul.hashed,cssVar:r?.cssVar}):r,c=bx();if(process.env.NODE_ENV!=="production"){const d=a.cssVar||s.cssVar,f=!!(typeof a.cssVar=="object"&&(!((i=a.cssVar)===null||i===void 0)&&i.key)||c);process.env.NODE_ENV!=="production"&&o(!d||f,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Su(()=>{var d,f;if(!e)return r;const l=Object.assign({},s.components);Object.keys(e.components||{}).forEach(v=>{l[v]=Object.assign(Object.assign({},l[v]),e.components[v])});const u=`css-var-${c.replace(/:/g,"")}`,h=((d=a.cssVar)!==null&&d!==void 0?d:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:t?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((f=a.cssVar)===null||f===void 0?void 0:f.key)||u});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:l,cssVar:h})},[a,s],(d,f)=>d.some((l,u)=>{const h=f[u];return!Dl(l,h,!0)}))}var Ex=["children"],gv=M.createContext({});function wx(e){var r=e.children,t=Rt(e,Ex);return M.createElement(gv.Provider,{value:t},r)}var Sx=(function(e){$r(t,e);var r=Br(t);function t(){return St(this,t),r.apply(this,arguments)}return _t(t,[{key:"render",value:function(){return this.props.children}}]),t})(M.Component);function _x(e){var r=M.useReducer(function(s){return s+1},0),t=ve(r,2),n=t[1],i=M.useRef(e),o=jt(function(){return i.current}),a=jt(function(s){i.current=typeof s=="function"?s(i.current):s,n()});return[o,a]}var Mr="none",$i="appear",Bi="enter",qi="leave",zd="none",ar="prepare",on="start",an="active",Mu="end",yv="prepared";function Hd(e,r){var t={};return t[e.toLowerCase()]=r.toLowerCase(),t["Webkit".concat(e)]="webkit".concat(r),t["Moz".concat(e)]="moz".concat(r),t["ms".concat(e)]="MS".concat(r),t["O".concat(e)]="o".concat(r.toLowerCase()),t}function Cx(e,r){var t={animationend:Hd("Animation","AnimationEnd"),transitionend:Hd("Transition","TransitionEnd")};return e&&("AnimationEvent"in r||delete t.animationend.animation,"TransitionEvent"in r||delete t.transitionend.transition),t}var Rx=Cx(Tt(),typeof window<"u"?window:{}),bv={};if(Tt()){var Ox=document.createElement("div");bv=Ox.style}var zi={};function xv(e){if(zi[e])return zi[e];var r=Rx[e];if(r)for(var t=Object.keys(r),n=t.length,i=0;i<n;i+=1){var o=t[i];if(Object.prototype.hasOwnProperty.call(r,o)&&o in bv)return zi[e]=r[o],zi[e]}return""}var Ev=xv("animationend"),wv=xv("transitionend"),Sv=!!(Ev&&wv),Vd=Ev||"animationend",Ud=wv||"transitionend";function Wd(e,r){if(!e)return null;if(je(e)==="object"){var t=r.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[t]}return"".concat(e,"-").concat(r)}const jx=(function(e){var r=z.useRef();function t(i){i&&(i.removeEventListener(Ud,e),i.removeEventListener(Vd,e))}function n(i){r.current&&r.current!==i&&t(r.current),i&&i!==r.current&&(i.addEventListener(Ud,e),i.addEventListener(Vd,e),r.current=i)}return M.useEffect(function(){return function(){t(r.current)}},[]),[n,t]});var _v=Tt()?z.useLayoutEffect:z.useEffect,Cv=function(r){return+setTimeout(r,16)},Rv=function(r){return clearTimeout(r)};typeof window<"u"&&"requestAnimationFrame"in window&&(Cv=function(r){return window.requestAnimationFrame(r)},Rv=function(r){return window.cancelAnimationFrame(r)});var Gd=0,Io=new Map;function Ov(e){Io.delete(e)}var yn=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Gd+=1;var n=Gd;function i(o){if(o===0)Ov(n),r();else{var a=Cv(function(){i(o-1)});Io.set(n,a)}}return i(t),n};yn.cancel=function(e){var r=Io.get(e);return Ov(e),Rv(r)};process.env.NODE_ENV!=="production"&&(yn.ids=function(){return Io});const Tx=(function(){var e=M.useRef(null);function r(){yn.cancel(e.current)}function t(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;r();var o=yn(function(){i<=1?n({isCanceled:function(){return o!==e.current}}):t(n,i-1)});e.current=o}return M.useEffect(function(){return function(){r()}},[]),[t,r]});var Ax=[ar,on,an,Mu],kx=[ar,yv],jv=!1,Px=!0;function Tv(e){return e===an||e===Mu}const Nx=(function(e,r,t){var n=li(zd),i=ve(n,2),o=i[0],a=i[1],s=Tx(),c=ve(s,2),d=c[0],f=c[1];function l(){a(ar,!0)}var u=r?kx:Ax;return _v(function(){if(o!==zd&&o!==Mu){var h=u.indexOf(o),v=u[h+1],b=t(o);b===jv?a(v,!0):v&&d(function(p){function g(){p.isCanceled()||a(v,!0)}b===!0?g():Promise.resolve(b).then(g)})}},[e,o]),M.useEffect(function(){return function(){f()}},[]),[l,o]});function Ix(e,r,t,n){var i=n.motionEnter,o=i===void 0?!0:i,a=n.motionAppear,s=a===void 0?!0:a,c=n.motionLeave,d=c===void 0?!0:c,f=n.motionDeadline,l=n.motionLeaveImmediately,u=n.onAppearPrepare,h=n.onEnterPrepare,v=n.onLeavePrepare,b=n.onAppearStart,p=n.onEnterStart,g=n.onLeaveStart,m=n.onAppearActive,x=n.onEnterActive,y=n.onLeaveActive,E=n.onAppearEnd,_=n.onEnterEnd,w=n.onLeaveEnd,S=n.onVisibleChanged,T=li(),O=ve(T,2),C=O[0],R=O[1],j=_x(Mr),A=ve(j,2),I=A[0],$=A[1],H=li(null),G=ve(H,2),D=G[0],F=G[1],P=I(),L=z.useRef(!1),B=z.useRef(null);function X(){return t()}var W=z.useRef(!1);function q(){$(Mr),F(null,!0)}var N=jt(function(le){var ae=I();if(ae!==Mr){var pe=X();if(!(le&&!le.deadline&&le.target!==pe)){var fe=W.current,ge;ae===$i&&fe?ge=E?.(pe,le):ae===Bi&&fe?ge=_?.(pe,le):ae===qi&&fe&&(ge=w?.(pe,le)),fe&&ge!==!1&&q()}}}),V=jx(N),U=ve(V,1),K=U[0],J=function(ae){switch(ae){case $i:return te(te(te({},ar,u),on,b),an,m);case Bi:return te(te(te({},ar,h),on,p),an,x);case qi:return te(te(te({},ar,v),on,g),an,y);default:return{}}},ne=M.useMemo(function(){return J(P)},[P]),ce=Nx(P,!e,function(le){if(le===ar){var ae=ne[ar];return ae?ae(X()):jv}if(oe in ne){var pe;F(((pe=ne[oe])===null||pe===void 0?void 0:pe.call(ne,X(),null))||null)}return oe===an&&P!==Mr&&(K(X()),f>0&&(clearTimeout(B.current),B.current=setTimeout(function(){N({deadline:!0})},f))),oe===yv&&q(),Px}),re=ve(ce,2),de=re[0],oe=re[1],se=Tv(oe);W.current=se;var Q=z.useRef(null);_v(function(){if(!(L.current&&Q.current===r)){R(r);var le=L.current;L.current=!0;var ae;!le&&r&&s&&(ae=$i),le&&r&&o&&(ae=Bi),(le&&!r&&d||!le&&l&&!r&&d)&&(ae=qi);var pe=J(ae);ae&&(e||pe[ar])?($(ae),de()):$(Mr),Q.current=r}},[r]),z.useEffect(function(){(P===$i&&!s||P===Bi&&!o||P===qi&&!d)&&$(Mr)},[s,o,d]),z.useEffect(function(){return function(){L.current=!1,clearTimeout(B.current)}},[]);var ee=M.useRef(!1);z.useEffect(function(){C&&(ee.current=!0),C!==void 0&&P===Mr&&((ee.current||C)&&S?.(C),ee.current=!0)},[C,P]);var ue=D;return ne[ar]&&oe===on&&(ue=ie({transition:"none"},ue)),[P,oe,ue,C??r]}function Mx(e){var r=e;je(e)==="object"&&(r=e.transitionSupport);function t(i,o){return!!(i.motionName&&r&&o!==!1)}var n=M.forwardRef(function(i,o){var a=i.visible,s=a===void 0?!0:a,c=i.removeOnLeave,d=c===void 0?!0:c,f=i.forceRender,l=i.children,u=i.motionName,h=i.leavedClassName,v=i.eventProps,b=M.useContext(gv),p=b.motion,g=t(i,p),m=z.useRef(),x=z.useRef();function y(){try{return m.current instanceof HTMLElement?m.current:Qi(x.current)}catch{return null}}var E=Ix(g,s,y,i),_=ve(E,4),w=_[0],S=_[1],T=_[2],O=_[3],C=M.useRef(O);O&&(C.current=!0);var R=M.useCallback(function(G){m.current=G,_u(o,G)},[o]),j,A=ie(ie({},v),{},{visible:s});if(!l)j=null;else if(w===Mr)O?j=l(ie({},A),R):!d&&C.current&&h?j=l(ie(ie({},A),{},{className:h}),R):f||!d&&!h?j=l(ie(ie({},A),{},{style:{display:"none"}}),R):j=null;else{var I;S===ar?I="prepare":Tv(S)?I="active":S===on&&(I="start");var $=Wd(u,"".concat(w,"-").concat(I));j=l(ie(ie({},A),{},{className:_e(Wd(u,w),te(te({},$,$&&I),u,typeof u=="string")),style:T}),R)}if(M.isValidElement(j)&&To(j)){var H=Ru(j);H||(j=M.cloneElement(j,{ref:R}))}return M.createElement(Sx,{ref:x},j)});return n.displayName="CSSMotion",n}const Lu=Mx(Sv);var Kl="add",Yl="keep",Xl="remove",Js="removed";function Lx(e){var r;return e&&je(e)==="object"&&"key"in e?r=e:r={key:e},ie(ie({},r),{},{key:String(r.key)})}function Zl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Lx)}function Dx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=[],n=0,i=r.length,o=Zl(e),a=Zl(r);o.forEach(function(d){for(var f=!1,l=n;l<i;l+=1){var u=a[l];if(u.key===d.key){n<l&&(t=t.concat(a.slice(n,l).map(function(h){return ie(ie({},h),{},{status:Kl})})),n=l),t.push(ie(ie({},u),{},{status:Yl})),n+=1,f=!0;break}}f||t.push(ie(ie({},d),{},{status:Xl}))}),n<i&&(t=t.concat(a.slice(n).map(function(d){return ie(ie({},d),{},{status:Kl})})));var s={};t.forEach(function(d){var f=d.key;s[f]=(s[f]||0)+1});var c=Object.keys(s).filter(function(d){return s[d]>1});return c.forEach(function(d){t=t.filter(function(f){var l=f.key,u=f.status;return l!==d||u!==Xl}),t.forEach(function(f){f.key===d&&(f.status=Yl)})}),t}var Fx=["component","children","onVisibleChanged","onAllRemoved"],$x=["status"],Bx=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function qx(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Lu,t=(function(n){$r(o,n);var i=Br(o);function o(){var a;St(this,o);for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];return a=i.call.apply(i,[this].concat(c)),te(Ne(a),"state",{keyEntities:[]}),te(Ne(a),"removeKey",function(f){a.setState(function(l){var u=l.keyEntities.map(function(h){return h.key!==f?h:ie(ie({},h),{},{status:Js})});return{keyEntities:u}},function(){var l=a.state.keyEntities,u=l.filter(function(h){var v=h.status;return v!==Js}).length;u===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return _t(o,[{key:"render",value:function(){var s=this,c=this.state.keyEntities,d=this.props,f=d.component,l=d.children,u=d.onVisibleChanged;d.onAllRemoved;var h=Rt(d,Fx),v=f||M.Fragment,b={};return Bx.forEach(function(p){b[p]=h[p],delete h[p]}),delete h.keys,M.createElement(v,h,c.map(function(p,g){var m=p.status,x=Rt(p,$x),y=m===Kl||m===Yl;return M.createElement(r,tt({},b,{key:x.key,visible:y,eventProps:x,onVisibleChanged:function(_){u?.(_,{key:x.key}),_||s.removeKey(x.key)}}),function(E,_){return l(ie(ie({},E),{},{index:g}),_)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,c){var d=s.keys,f=c.keyEntities,l=Zl(d),u=Dx(f,l);return{keyEntities:u.filter(function(h){var v=f.find(function(b){var p=b.key;return h.key===p});return!(v&&v.status===Js&&h.status===Xl)})}}}]),o})(M.Component);return te(t,"defaultProps",{component:"div"}),t}qx(Sv);const Ql=M.createContext(!0);process.env.NODE_ENV!=="production"&&(Ql.displayName="MotionCacheContext");function zx(e){const r=M.useContext(Ql),{children:t}=e,[,n]=_n(),{motion:i}=n,o=M.useRef(!1);return o.current||(o.current=r!==i),o.current?M.createElement(Ql.Provider,{value:i},M.createElement(wx,{motion:i},t)):t}const Av=M.memo(({dropdownMatchSelectWidth:e})=>(vr("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Av.displayName="PropWarning");const Hx=process.env.NODE_ENV!=="production"?Av:()=>null;var Vx=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};let Jl=!1;process.env.NODE_ENV;const Ux=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let kv;function Wx(){return kv||Wl}function Gx(e){return Object.keys(e).some(r=>r.endsWith("Color"))}const Kx=e=>{const{prefixCls:r,iconPrefixCls:t,theme:n,holderRender:i}=e;r!==void 0&&(kv=r),n&&Gx(n)&&(process.env.NODE_ENV!=="production"&&gi(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),H1(Wx(),n))},Yx=e=>{const{children:r,csp:t,autoInsertSpaceInButton:n,alert:i,anchor:o,form:a,locale:s,componentSize:c,direction:d,space:f,splitter:l,virtual:u,dropdownMatchSelectWidth:h,popupMatchSelectWidth:v,popupOverflow:b,legacyLocale:p,parentContext:g,iconPrefixCls:m,theme:x,componentDisabled:y,segmented:E,statistic:_,spin:w,calendar:S,carousel:T,cascader:O,collapse:C,typography:R,checkbox:j,descriptions:A,divider:I,drawer:$,skeleton:H,steps:G,image:D,layout:F,list:P,mentions:L,modal:B,progress:X,result:W,slider:q,breadcrumb:N,menu:V,pagination:U,input:K,textArea:J,empty:ne,badge:ce,radio:re,rate:de,switch:oe,transfer:se,avatar:Q,message:ee,tag:ue,table:le,card:ae,tabs:pe,timeline:fe,timePicker:ge,upload:Re,notification:qe,tree:Ce,colorPicker:Ke,datePicker:Ae,rangePicker:ke,flex:Fe,wave:Pe,dropdown:Ee,warning:Ve,tour:xe,tooltip:Se,popover:at,popconfirm:Pt,floatButton:zt,floatButtonGroup:Or,variant:Jt,inputNumber:jr,treeSelect:Lt}=e,Le=M.useCallback((ze,rt)=>{const{prefixCls:et}=e;if(rt)return rt;const vt=et||g.getPrefixCls("");return ze?`${vt}-${ze}`:vt},[g.getPrefixCls,e.prefixCls]),Xe=m||g.iconPrefixCls||Nu,er=t||g.csp;mx(Xe,er);const pt=xx(x,g.theme,{prefixCls:Le("")});process.env.NODE_ENV!=="production"&&(Jl=Jl||!!pt);const $e={csp:er,autoInsertSpaceInButton:n,alert:i,anchor:o,locale:s||p,direction:d,space:f,splitter:l,virtual:u,popupMatchSelectWidth:v??h,popupOverflow:b,getPrefixCls:Le,iconPrefixCls:Xe,theme:pt,segmented:E,statistic:_,spin:w,calendar:S,carousel:T,cascader:O,collapse:C,typography:R,checkbox:j,descriptions:A,divider:I,drawer:$,skeleton:H,steps:G,image:D,input:K,textArea:J,layout:F,list:P,mentions:L,modal:B,progress:X,result:W,slider:q,breadcrumb:N,menu:V,pagination:U,empty:ne,badge:ce,radio:re,rate:de,switch:oe,transfer:se,avatar:Q,message:ee,tag:ue,table:le,card:ae,tabs:pe,timeline:fe,timePicker:ge,upload:Re,notification:qe,tree:Ce,colorPicker:Ke,datePicker:Ae,rangePicker:ke,flex:Fe,wave:Pe,dropdown:Ee,warning:Ve,tour:xe,tooltip:Se,popover:at,popconfirm:Pt,floatButton:zt,floatButtonGroup:Or,variant:Jt,inputNumber:jr,treeSelect:Lt};process.env.NODE_ENV!=="production"&&vr("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Be=Object.assign({},g);Object.keys($e).forEach(ze=>{$e[ze]!==void 0&&(Be[ze]=$e[ze])}),Ux.forEach(ze=>{const rt=e[ze];rt&&(Be[ze]=rt)}),typeof n<"u"&&(Be.button=Object.assign({autoInsertSpace:n},Be.button));const ft=Su(()=>Be,Be,(ze,rt)=>{const et=Object.keys(ze),vt=Object.keys(rt);return et.length!==vt.length||et.some(Dt=>ze[Dt]!==rt[Dt])}),{layer:Ht}=M.useContext(mi),Je=M.useMemo(()=>({prefixCls:Xe,csp:er,layer:Ht?"antd":void 0}),[Xe,er,Ht]);let Ue=M.createElement(M.Fragment,null,M.createElement(Hx,{dropdownMatchSelectWidth:h}),r);const tr=M.useMemo(()=>{var ze,rt,et,vt;return nn(((ze=mn.Form)===null||ze===void 0?void 0:ze.defaultValidateMessages)||{},((et=(rt=ft.locale)===null||rt===void 0?void 0:rt.Form)===null||et===void 0?void 0:et.defaultValidateMessages)||{},((vt=ft.form)===null||vt===void 0?void 0:vt.validateMessages)||{},a?.validateMessages||{})},[ft,a?.validateMessages]);Object.keys(tr).length>0&&(Ue=M.createElement(w1.Provider,{value:tr},Ue)),s&&(Ue=M.createElement(ov,{locale:s,_ANT_MARK__:iv},Ue)),Ue=M.createElement(xu.Provider,{value:Je},Ue),c&&(Ue=M.createElement(U1,{size:c},Ue)),Ue=M.createElement(zx,null,Ue);const Vt=M.useMemo(()=>{const ze=pt||{},{algorithm:rt,token:et,components:vt,cssVar:Dt}=ze,gr=Vx(ze,["algorithm","token","components","cssVar"]),Nt=rt&&(!Array.isArray(rt)||rt.length>0)?$l(rt):sv,It={};Object.entries(vt||{}).forEach(([Z,he])=>{const me=Object.assign({},he);"algorithm"in me&&(me.algorithm===!0?me.theme=Nt:(Array.isArray(me.algorithm)||typeof me.algorithm=="function")&&(me.theme=$l(me.algorithm)),delete me.algorithm),It[Z]=me});const ye=Object.assign(Object.assign({},fi),et);return Object.assign(Object.assign({},gr),{theme:Nt,token:ye,components:It,override:Object.assign({override:ye},It),cssVar:Dt})},[pt]);return x&&(Ue=M.createElement(lv.Provider,{value:Vt},Ue)),ft.warning&&(Ue=M.createElement(rv.Provider,{value:ft.warning},Ue)),y!==void 0&&(Ue=M.createElement(V1,{disabled:y},Ue)),M.createElement(mr.Provider,{value:ft},Ue)},Cn=e=>{const r=M.useContext(mr),t=M.useContext(Pu);return M.createElement(Yx,Object.assign({parentContext:r,legacyLocale:t},e))};Cn.ConfigContext=mr;Cn.SizeContext=gn;Cn.config=Kx;Cn.useConfig=W1;Object.defineProperty(Cn,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&gi(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),gn)});process.env.NODE_ENV!=="production"&&(Cn.displayName="ConfigProvider");function Pv(e){var r=e.children,t=e.prefixCls,n=e.id,i=e.overlayInnerStyle,o=e.bodyClassName,a=e.className,s=e.style;return M.createElement("div",{className:_e("".concat(t,"-content"),a),style:s},M.createElement("div",{className:_e("".concat(t,"-inner"),o),id:n,role:"tooltip",style:i},typeof r=="function"?r():r))}var Nv=M.createContext(null),Kd=[];function Xx(e,r){var t=M.useState(function(){if(!Tt())return null;var v=document.createElement("div");return process.env.NODE_ENV!=="production"&&r&&v.setAttribute("data-debug",r),v}),n=ve(t,1),i=n[0],o=M.useRef(!1),a=M.useContext(Nv),s=M.useState(Kd),c=ve(s,2),d=c[0],f=c[1],l=a||(o.current?void 0:function(v){f(function(b){var p=[v].concat(we(b));return p})});function u(){i.parentElement||document.body.appendChild(i),o.current=!0}function h(){var v;(v=i.parentElement)===null||v===void 0||v.removeChild(i),o.current=!1}return st(function(){return e?a?a(u):u():h(),h},[e]),st(function(){d.length&&(d.forEach(function(v){return v()}),f(Kd))},[d]),[i,l]}function Zx(e){var r="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),t=document.createElement("div");t.id=r;var n=t.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var i,o;if(e){var a=getComputedStyle(e);n.scrollbarColor=a.scrollbarColor,n.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),d=parseInt(s.height,10);try{var f=c?"width: ".concat(s.width,";"):"",l=d?"height: ".concat(s.height,";"):"";Sr(`
175
+ #`.concat(r,`::-webkit-scrollbar {
176
+ `).concat(f,`
177
+ `).concat(l,`
178
+ }`),r)}catch(v){console.error(v),i=c,o=d}}document.body.appendChild(t);var u=e&&i&&!isNaN(i)?i:t.offsetWidth-t.clientWidth,h=e&&o&&!isNaN(o)?o:t.offsetHeight-t.clientHeight;return document.body.removeChild(t),ii(r),{width:u,height:h}}function Qx(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Zx(e)}function Jx(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var eE="rc-util-locker-".concat(Date.now()),Yd=0;function tE(e){var r=!!e,t=M.useState(function(){return Yd+=1,"".concat(eE,"_").concat(Yd)}),n=ve(t,1),i=n[0];st(function(){if(r){var o=Qx(document.body).width,a=Jx();Sr(`
179
+ html body {
180
+ overflow-y: hidden;
181
+ `.concat(a?"width: calc(100% - ".concat(o,"px);"):"",`
182
+ }`),i)}else ii(i);return function(){ii(i)}},[r,i])}var rE=!1;function nE(e){return rE}var Xd=function(r){return r===!1?!1:!Tt()||!r?null:typeof r=="string"?document.querySelector(r):typeof r=="function"?r():r},Du=M.forwardRef(function(e,r){var t=e.open,n=e.autoLock,i=e.getContainer,o=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,c=e.children,d=M.useState(t),f=ve(d,2),l=f[0],u=f[1],h=l||t;process.env.NODE_ENV!=="production"&&ot(Tt()||!t,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),M.useEffect(function(){(s||t)&&u(t)},[t,s]);var v=M.useState(function(){return Xd(i)}),b=ve(v,2),p=b[0],g=b[1];M.useEffect(function(){var R=Xd(i);g(R??null)});var m=Xx(h&&!p,o),x=ve(m,2),y=x[0],E=x[1],_=p??y;tE(n&&t&&Tt()&&(_===y||_===document.body));var w=null;if(c&&To(c)&&r){var S=c;w=S.ref}var T=Cu(w,r);if(!h||!Tt()||p===void 0)return null;var O=_===!1||nE(),C=c;return r&&(C=M.cloneElement(c,{ref:T})),M.createElement(Nv.Provider,{value:E},O?C:ri.createPortal(C,_))});process.env.NODE_ENV!=="production"&&(Du.displayName="Portal");function iE(){var e=ie({},M);return e.useId}var Zd=0,Qd=iE();const Iv=Qd?function(r){var t=Qd();return r||(process.env.NODE_ENV==="test"?"test-id":t)}:function(r){var t=M.useState("ssr-id"),n=ve(t,2),i=n[0],o=n[1];return M.useEffect(function(){var a=Zd;Zd+=1,o("rc_unique_".concat(a))},[]),r||(process.env.NODE_ENV==="test"?"test-id":i)},oE=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))});function aE(e){var r=e.prefixCls,t=e.align,n=e.arrow,i=e.arrowPos,o=n||{},a=o.className,s=o.content,c=i.x,d=c===void 0?0:c,f=i.y,l=f===void 0?0:f,u=M.useRef();if(!t||!t.points)return null;var h={position:"absolute"};if(t.autoArrow!==!1){var v=t.points[0],b=t.points[1],p=v[0],g=v[1],m=b[0],x=b[1];p===m||!["t","b"].includes(p)?h.top=l:p==="t"?h.top=0:h.bottom=0,g===x||!["l","r"].includes(g)?h.left=d:g==="l"?h.left=0:h.right=0}return M.createElement("div",{ref:u,className:_e("".concat(r,"-arrow"),a),style:h},s)}function sE(e){var r=e.prefixCls,t=e.open,n=e.zIndex,i=e.mask,o=e.motion;return i?M.createElement(Lu,tt({},o,{motionAppear:!0,visible:t,removeOnLeave:!0}),function(a){var s=a.className;return M.createElement("div",{style:{zIndex:n},className:_e("".concat(r,"-mask"),s)})}):null}var Mv=M.memo(function(e){var r=e.children;return r},function(e,r){return r.cache});process.env.NODE_ENV!=="production"&&(Mv.displayName="PopupContent");var Lv=M.forwardRef(function(e,r){var t=e.popup,n=e.className,i=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,c=e.open,d=e.keepDom,f=e.fresh,l=e.onClick,u=e.mask,h=e.arrow,v=e.arrowPos,b=e.align,p=e.motion,g=e.maskMotion,m=e.forceRender,x=e.getPopupContainer,y=e.autoDestroy,E=e.portal,_=e.zIndex,w=e.onMouseEnter,S=e.onMouseLeave,T=e.onPointerEnter,O=e.onPointerDownCapture,C=e.ready,R=e.offsetX,j=e.offsetY,A=e.offsetR,I=e.offsetB,$=e.onAlign,H=e.onPrepare,G=e.stretch,D=e.targetWidth,F=e.targetHeight,P=typeof t=="function"?t():t,L=c||d,B=x?.length>0,X=M.useState(!x||!B),W=ve(X,2),q=W[0],N=W[1];if(st(function(){!q&&B&&a&&N(!0)},[q,B,a]),!q)return null;var V="auto",U={left:"-1000vw",top:"-1000vh",right:V,bottom:V};if(C||!c){var K,J=b.points,ne=b.dynamicInset||((K=b._experimental)===null||K===void 0?void 0:K.dynamicInset),ce=ne&&J[0][1]==="r",re=ne&&J[0][0]==="b";ce?(U.right=A,U.left=V):(U.left=R,U.right=V),re?(U.bottom=I,U.top=V):(U.top=j,U.bottom=V)}var de={};return G&&(G.includes("height")&&F?de.height=F:G.includes("minHeight")&&F&&(de.minHeight=F),G.includes("width")&&D?de.width=D:G.includes("minWidth")&&D&&(de.minWidth=D)),c||(de.pointerEvents="none"),M.createElement(E,{open:m||L,getContainer:x&&function(){return x(a)},autoDestroy:y},M.createElement(sE,{prefixCls:i,open:c,zIndex:_,mask:u,motion:g}),M.createElement(wn,{onResize:$,disabled:!c},function(oe){return M.createElement(Lu,tt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(i,"-hidden")},p,{onAppearPrepare:H,onEnterPrepare:H,visible:c,onVisibleChanged:function(Q){var ee;p==null||(ee=p.onVisibleChanged)===null||ee===void 0||ee.call(p,Q),s(Q)}}),function(se,Q){var ee=se.className,ue=se.style,le=_e(i,ee,n);return M.createElement("div",{ref:vi(oe,r,Q),className:le,style:ie(ie(ie(ie({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},U),de),ue),{},{boxSizing:"border-box",zIndex:_},o),onMouseEnter:w,onMouseLeave:S,onPointerEnter:T,onClick:l,onPointerDownCapture:O},h&&M.createElement(aE,{prefixCls:i,arrow:h,arrowPos:v,align:b}),M.createElement(Mv,{cache:!c&&!f},P))})}))});process.env.NODE_ENV!=="production"&&(Lv.displayName="Popup");var Dv=M.forwardRef(function(e,r){var t=e.children,n=e.getTriggerDOMNode,i=To(t),o=M.useCallback(function(s){_u(r,n?n(s):s)},[n]),a=Cu(o,Ru(t));return i?M.cloneElement(t,{ref:a}):t});process.env.NODE_ENV!=="production"&&(Dv.displayName="TriggerWrapper");var Jd=M.createContext(null);function eh(e){return e?Array.isArray(e)?e:[e]:[]}function lE(e,r,t,n){return M.useMemo(function(){var i=eh(t??r),o=eh(n??r),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,r,t,n])}const uE=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var r=e.getBBox(),t=r.width,n=r.height;if(t||n)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1});function cE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2?arguments[2]:void 0;return t?e[0]===r[0]:e[0]===r[0]&&e[1]===r[1]}function fE(e,r,t,n){for(var i=t.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,c=o[a];if(cE((s=e[c])===null||s===void 0?void 0:s.points,i,n))return"".concat(r,"-placement-").concat(c)}return""}function th(e,r,t,n){return r||(t?{motionName:"".concat(e,"-").concat(t)}:n?{motionName:n}:null)}function bi(e){return e.ownerDocument.defaultView}function eu(e){for(var r=[],t=e?.parentElement,n=["hidden","scroll","clip","auto"];t;){var i=bi(t).getComputedStyle(t),o=i.overflowX,a=i.overflowY,s=i.overflow;[o,a,s].some(function(c){return n.includes(c)})&&r.push(t),t=t.parentElement}return r}function hi(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?r:e}function Wn(e){return hi(parseFloat(e),0)}function rh(e,r){var t=ie({},e);return(r||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var i=bi(n).getComputedStyle(n),o=i.overflow,a=i.overflowClipMargin,s=i.borderTopWidth,c=i.borderBottomWidth,d=i.borderLeftWidth,f=i.borderRightWidth,l=n.getBoundingClientRect(),u=n.offsetHeight,h=n.clientHeight,v=n.offsetWidth,b=n.clientWidth,p=Wn(s),g=Wn(c),m=Wn(d),x=Wn(f),y=hi(Math.round(l.width/v*1e3)/1e3),E=hi(Math.round(l.height/u*1e3)/1e3),_=(v-b-m-x)*y,w=(u-h-p-g)*E,S=p*E,T=g*E,O=m*y,C=x*y,R=0,j=0;if(o==="clip"){var A=Wn(a);R=A*y,j=A*E}var I=l.x+O-R,$=l.y+S-j,H=I+l.width+2*R-O-C-_,G=$+l.height+2*j-S-T-w;t.left=Math.max(t.left,I),t.top=Math.max(t.top,$),t.right=Math.min(t.right,H),t.bottom=Math.min(t.bottom,G)}}),t}function nh(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t="".concat(r),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function ih(e,r){var t=r||[],n=ve(t,2),i=n[0],o=n[1];return[nh(e.width,i),nh(e.height,o)]}function oh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Qr(e,r){var t=r[0],n=r[1],i,o;return t==="t"?o=e.y:t==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?i=e.x:n==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function Ir(e,r){var t={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,i){return i===r?t[n]||"c":n}).join("")}function dE(e,r,t,n,i,o,a){var s=M.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),c=ve(s,2),d=c[0],f=c[1],l=M.useRef(0),u=M.useMemo(function(){return r?eu(r):[]},[r]),h=M.useRef({}),v=function(){h.current={}};e||v();var b=jt(function(){if(r&&t&&e){let Ut=function(An,yr){var Nr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ge,kn=L.x+An,Ti=L.y+yr,Uo=kn+re,Wo=Ti+ce,Go=Math.max(kn,Nr.left),be=Math.max(Ti,Nr.top),Oe=Math.min(Uo,Nr.right),it=Math.min(Wo,Nr.bottom);return Math.max(0,(Oe-Go)*(it-be))},Yr=function(){Nt=L.y+Be,It=Nt+ce,ye=L.x+$e,Z=ye+re};var m,x,y,E,_=r,w=_.ownerDocument,S=bi(_),T=S.getComputedStyle(_),O=T.position,C=_.style.left,R=_.style.top,j=_.style.right,A=_.style.bottom,I=_.style.overflow,$=ie(ie({},i[n]),o),H=w.createElement("div");(m=_.parentElement)===null||m===void 0||m.appendChild(H),H.style.left="".concat(_.offsetLeft,"px"),H.style.top="".concat(_.offsetTop,"px"),H.style.position=O,H.style.height="".concat(_.offsetHeight,"px"),H.style.width="".concat(_.offsetWidth,"px"),_.style.left="0",_.style.top="0",_.style.right="auto",_.style.bottom="auto",_.style.overflow="hidden";var G;if(Array.isArray(t))G={x:t[0],y:t[1],width:0,height:0};else{var D,F,P=t.getBoundingClientRect();P.x=(D=P.x)!==null&&D!==void 0?D:P.left,P.y=(F=P.y)!==null&&F!==void 0?F:P.top,G={x:P.x,y:P.y,width:P.width,height:P.height}}var L=_.getBoundingClientRect(),B=S.getComputedStyle(_),X=B.height,W=B.width;L.x=(x=L.x)!==null&&x!==void 0?x:L.left,L.y=(y=L.y)!==null&&y!==void 0?y:L.top;var q=w.documentElement,N=q.clientWidth,V=q.clientHeight,U=q.scrollWidth,K=q.scrollHeight,J=q.scrollTop,ne=q.scrollLeft,ce=L.height,re=L.width,de=G.height,oe=G.width,se={left:0,top:0,right:N,bottom:V},Q={left:-ne,top:-J,right:U-ne,bottom:K-J},ee=$.htmlRegion,ue="visible",le="visibleFirst";ee!=="scroll"&&ee!==le&&(ee=ue);var ae=ee===le,pe=rh(Q,u),fe=rh(se,u),ge=ee===ue?fe:pe,Re=ae?fe:ge;_.style.left="auto",_.style.top="auto",_.style.right="0",_.style.bottom="0";var qe=_.getBoundingClientRect();_.style.left=C,_.style.top=R,_.style.right=j,_.style.bottom=A,_.style.overflow=I,(E=_.parentElement)===null||E===void 0||E.removeChild(H);var Ce=hi(Math.round(re/parseFloat(W)*1e3)/1e3),Ke=hi(Math.round(ce/parseFloat(X)*1e3)/1e3);if(Ce===0||Ke===0||oi(t)&&!uE(t))return;var Ae=$.offset,ke=$.targetOffset,Fe=ih(L,Ae),Pe=ve(Fe,2),Ee=Pe[0],Ve=Pe[1],xe=ih(G,ke),Se=ve(xe,2),at=Se[0],Pt=Se[1];G.x-=at,G.y-=Pt;var zt=$.points||[],Or=ve(zt,2),Jt=Or[0],jr=Or[1],Lt=oh(jr),Le=oh(Jt),Xe=Qr(G,Lt),er=Qr(L,Le),pt=ie({},$),$e=Xe.x-er.x+Ee,Be=Xe.y-er.y+Ve,ft=Ut($e,Be),Ht=Ut($e,Be,fe),Je=Qr(G,["t","l"]),Ue=Qr(L,["t","l"]),tr=Qr(G,["b","r"]),Vt=Qr(L,["b","r"]),ze=$.overflow||{},rt=ze.adjustX,et=ze.adjustY,vt=ze.shiftX,Dt=ze.shiftY,gr=function(yr){return typeof yr=="boolean"?yr:yr>=0},Nt,It,ye,Z;Yr();var he=gr(et),me=Le[0]===Lt[0];if(he&&Le[0]==="t"&&(It>Re.bottom||h.current.bt)){var He=Be;me?He-=ce-de:He=Je.y-Vt.y-Ve;var dt=Ut($e,He),nt=Ut($e,He,fe);dt>ft||dt===ft&&(!ae||nt>=Ht)?(h.current.bt=!0,Be=He,Ve=-Ve,pt.points=[Ir(Le,0),Ir(Lt,0)]):h.current.bt=!1}if(he&&Le[0]==="b"&&(Nt<Re.top||h.current.tb)){var lt=Be;me?lt+=ce-de:lt=tr.y-Ue.y-Ve;var Mt=Ut($e,lt),ur=Ut($e,lt,fe);Mt>ft||Mt===ft&&(!ae||ur>=Ht)?(h.current.tb=!0,Be=lt,Ve=-Ve,pt.points=[Ir(Le,0),Ir(Lt,0)]):h.current.tb=!1}var Tr=gr(rt),ut=Le[1]===Lt[1];if(Tr&&Le[1]==="l"&&(Z>Re.right||h.current.rl)){var cr=$e;ut?cr-=re-oe:cr=Je.x-Vt.x-Ee;var fr=Ut(cr,Be),Rn=Ut(cr,Be,fe);fr>ft||fr===ft&&(!ae||Rn>=Ht)?(h.current.rl=!0,$e=cr,Ee=-Ee,pt.points=[Ir(Le,1),Ir(Lt,1)]):h.current.rl=!1}if(Tr&&Le[1]==="r"&&(ye<Re.left||h.current.lr)){var qr=$e;ut?qr+=re-oe:qr=tr.x-Ue.x-Ee;var On=Ut(qr,Be),Kr=Ut(qr,Be,fe);On>ft||On===ft&&(!ae||Kr>=Ht)?(h.current.lr=!0,$e=qr,Ee=-Ee,pt.points=[Ir(Le,1),Ir(Lt,1)]):h.current.lr=!1}Yr();var rr=vt===!0?0:vt;typeof rr=="number"&&(ye<fe.left&&($e-=ye-fe.left-Ee,G.x+oe<fe.left+rr&&($e+=G.x-fe.left+oe-rr)),Z>fe.right&&($e-=Z-fe.right-Ee,G.x>fe.right-rr&&($e+=G.x-fe.right+rr)));var Ar=Dt===!0?0:Dt;typeof Ar=="number"&&(Nt<fe.top&&(Be-=Nt-fe.top-Ve,G.y+de<fe.top+Ar&&(Be+=G.y-fe.top+de-Ar)),It>fe.bottom&&(Be-=It-fe.bottom-Ve,G.y>fe.bottom-Ar&&(Be+=G.y-fe.bottom+Ar)));var kr=L.x+$e,Pr=kr+re,jn=L.y+Be,Lo=jn+ce,_i=G.x,Ci=_i+oe,Ri=G.y,Do=Ri+de,Fo=Math.max(kr,_i),Oi=Math.min(Pr,Ci),$o=(Fo+Oi)/2,Bo=$o-kr,ji=Math.max(jn,Ri),qo=Math.min(Lo,Do),zo=(ji+qo)/2,Ho=zo-jn;a?.(r,pt);var dr=qe.right-L.x-($e+L.width),Tn=qe.bottom-L.y-(Be+L.height);Ce===1&&($e=Math.round($e),dr=Math.round(dr)),Ke===1&&(Be=Math.round(Be),Tn=Math.round(Tn));var Vo={ready:!0,offsetX:$e/Ce,offsetY:Be/Ke,offsetR:dr/Ce,offsetB:Tn/Ke,arrowX:Bo/Ce,arrowY:Ho/Ke,scaleX:Ce,scaleY:Ke,align:pt};f(Vo)}}),p=function(){l.current+=1;var x=l.current;Promise.resolve().then(function(){l.current===x&&b()})},g=function(){f(function(x){return ie(ie({},x),{},{ready:!1})})};return st(g,[n]),st(function(){e||g()},[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,p]}function hE(e,r,t,n,i){st(function(){if(e&&r&&t){let l=function(){n(),i()};var o=r,a=t,s=eu(o),c=eu(a),d=bi(a),f=new Set([d].concat(we(s),we(c)));return f.forEach(function(u){u.addEventListener("scroll",l,{passive:!0})}),d.addEventListener("resize",l,{passive:!0}),n(),function(){f.forEach(function(u){u.removeEventListener("scroll",l),d.removeEventListener("resize",l)})}}},[e,r,t])}function pE(e,r,t,n,i,o,a,s){var c=M.useRef(e);c.current=e;var d=M.useRef(!1);M.useEffect(function(){if(r&&n&&(!i||o)){var l=function(){d.current=!1},u=function(y){var E;c.current&&!a(((E=y.composedPath)===null||E===void 0||(E=E.call(y))===null||E===void 0?void 0:E[0])||y.target)&&!d.current&&s(!1)},h=bi(n);h.addEventListener("pointerdown",l,!0),h.addEventListener("mousedown",u,!0),h.addEventListener("contextmenu",u,!0);var v=uo(t);if(v&&(v.addEventListener("mousedown",u,!0),v.addEventListener("contextmenu",u,!0)),process.env.NODE_ENV!=="production"){var b,p,g=t==null||(b=t.getRootNode)===null||b===void 0?void 0:b.call(t),m=(p=n.getRootNode)===null||p===void 0?void 0:p.call(n);cn(g===m,"trigger element and popup element should in same shadow root.")}return function(){h.removeEventListener("pointerdown",l,!0),h.removeEventListener("mousedown",u,!0),h.removeEventListener("contextmenu",u,!0),v&&(v.removeEventListener("mousedown",u,!0),v.removeEventListener("contextmenu",u,!0))}}},[r,t,n,i,o]);function f(){d.current=!0}return f}var vE=["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 mE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Du,r=M.forwardRef(function(t,n){var i=t.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=t.children,s=t.action,c=s===void 0?"hover":s,d=t.showAction,f=t.hideAction,l=t.popupVisible,u=t.defaultPopupVisible,h=t.onPopupVisibleChange,v=t.afterPopupVisibleChange,b=t.mouseEnterDelay,p=t.mouseLeaveDelay,g=p===void 0?.1:p,m=t.focusDelay,x=t.blurDelay,y=t.mask,E=t.maskClosable,_=E===void 0?!0:E,w=t.getPopupContainer,S=t.forceRender,T=t.autoDestroy,O=t.destroyPopupOnHide,C=t.popup,R=t.popupClassName,j=t.popupStyle,A=t.popupPlacement,I=t.builtinPlacements,$=I===void 0?{}:I,H=t.popupAlign,G=t.zIndex,D=t.stretch,F=t.getPopupClassNameFromAlign,P=t.fresh,L=t.alignPoint,B=t.onPopupClick,X=t.onPopupAlign,W=t.arrow,q=t.popupMotion,N=t.maskMotion,V=t.popupTransitionName,U=t.popupAnimation,K=t.maskTransitionName,J=t.maskAnimation,ne=t.className,ce=t.getTriggerDOMNode,re=Rt(t,vE),de=T||O||!1,oe=M.useState(!1),se=ve(oe,2),Q=se[0],ee=se[1];st(function(){ee(oE())},[]);var ue=M.useRef({}),le=M.useContext(Jd),ae=M.useMemo(function(){return{registerSubPopup:function(Oe,it){ue.current[Oe]=it,le?.registerSubPopup(Oe,it)}}},[le]),pe=Iv(),fe=M.useState(null),ge=ve(fe,2),Re=ge[0],qe=ge[1],Ce=M.useRef(null),Ke=jt(function(be){Ce.current=be,oi(be)&&Re!==be&&qe(be),le?.registerSubPopup(pe,be)}),Ae=M.useState(null),ke=ve(Ae,2),Fe=ke[0],Pe=ke[1],Ee=M.useRef(null),Ve=jt(function(be){oi(be)&&Fe!==be&&(Pe(be),Ee.current=be)}),xe=M.Children.only(a),Se=xe?.props||{},at={},Pt=jt(function(be){var Oe,it,yt=Fe;return yt?.contains(be)||((Oe=uo(yt))===null||Oe===void 0?void 0:Oe.host)===be||be===yt||Re?.contains(be)||((it=uo(Re))===null||it===void 0?void 0:it.host)===be||be===Re||Object.values(ue.current).some(function(ct){return ct?.contains(be)||be===ct})}),zt=th(o,q,U,V),Or=th(o,N,J,K),Jt=M.useState(u||!1),jr=ve(Jt,2),Lt=jr[0],Le=jr[1],Xe=l??Lt,er=jt(function(be){l===void 0&&Le(be)});st(function(){Le(l||!1)},[l]);var pt=M.useRef(Xe);pt.current=Xe;var $e=M.useRef([]);$e.current=[];var Be=jt(function(be){var Oe;er(be),((Oe=$e.current[$e.current.length-1])!==null&&Oe!==void 0?Oe:Xe)!==be&&($e.current.push(be),h?.(be))}),ft=M.useRef(),Ht=function(){clearTimeout(ft.current)},Je=function(Oe){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ht(),it===0?Be(Oe):ft.current=setTimeout(function(){Be(Oe)},it*1e3)};M.useEffect(function(){return Ht},[]);var Ue=M.useState(!1),tr=ve(Ue,2),Vt=tr[0],ze=tr[1];st(function(be){(!be||Xe)&&ze(!0)},[Xe]);var rt=M.useState(null),et=ve(rt,2),vt=et[0],Dt=et[1],gr=M.useState(null),Nt=ve(gr,2),It=Nt[0],ye=Nt[1],Z=function(Oe){ye([Oe.clientX,Oe.clientY])},he=dE(Xe,Re,L&&It!==null?It:Fe,A,$,H,X),me=ve(he,11),He=me[0],dt=me[1],nt=me[2],lt=me[3],Mt=me[4],ur=me[5],Tr=me[6],ut=me[7],cr=me[8],fr=me[9],Rn=me[10],qr=lE(Q,c,d,f),On=ve(qr,2),Kr=On[0],rr=On[1],Ar=Kr.has("click"),kr=rr.has("click")||rr.has("contextMenu"),Pr=jt(function(){Vt||Rn()}),jn=function(){pt.current&&L&&kr&&Je(!1)};hE(Xe,Fe,Re,Pr,jn),st(function(){Pr()},[It,A]),st(function(){Xe&&!($!=null&&$[A])&&Pr()},[JSON.stringify(H)]);var Lo=M.useMemo(function(){var be=fE($,o,fr,L);return _e(be,F?.(fr))},[fr,F,$,o,L]);M.useImperativeHandle(n,function(){return{nativeElement:Ee.current,popupElement:Ce.current,forceAlign:Pr}});var _i=M.useState(0),Ci=ve(_i,2),Ri=Ci[0],Do=Ci[1],Fo=M.useState(0),Oi=ve(Fo,2),$o=Oi[0],Bo=Oi[1],ji=function(){if(D&&Fe){var Oe=Fe.getBoundingClientRect();Do(Oe.width),Bo(Oe.height)}},qo=function(){ji(),Pr()},zo=function(Oe){ze(!1),Rn(),v?.(Oe)},Ho=function(){return new Promise(function(Oe){ji(),Dt(function(){return Oe})})};st(function(){vt&&(Rn(),vt(),Dt(null))},[vt]);function dr(be,Oe,it,yt){at[be]=function(ct){var Ai;yt?.(ct),Je(Oe,it);for(var Ko=arguments.length,Uu=new Array(Ko>1?Ko-1:0),ki=1;ki<Ko;ki++)Uu[ki-1]=arguments[ki];(Ai=Se[be])===null||Ai===void 0||Ai.call.apply(Ai,[Se,ct].concat(Uu))}}(Ar||kr)&&(at.onClick=function(be){var Oe;pt.current&&kr?Je(!1):!pt.current&&Ar&&(Z(be),Je(!0));for(var it=arguments.length,yt=new Array(it>1?it-1:0),ct=1;ct<it;ct++)yt[ct-1]=arguments[ct];(Oe=Se.onClick)===null||Oe===void 0||Oe.call.apply(Oe,[Se,be].concat(yt))});var Tn=pE(Xe,kr,Fe,Re,y,_,Pt,Je),Vo=Kr.has("hover"),Ut=rr.has("hover"),Yr,An;Vo&&(dr("onMouseEnter",!0,b,function(be){Z(be)}),dr("onPointerEnter",!0,b,function(be){Z(be)}),Yr=function(Oe){(Xe||Vt)&&Re!==null&&Re!==void 0&&Re.contains(Oe.target)&&Je(!0,b)},L&&(at.onMouseMove=function(be){var Oe;(Oe=Se.onMouseMove)===null||Oe===void 0||Oe.call(Se,be)})),Ut&&(dr("onMouseLeave",!1,g),dr("onPointerLeave",!1,g),An=function(){Je(!1,g)}),Kr.has("focus")&&dr("onFocus",!0,m),rr.has("focus")&&dr("onBlur",!1,x),Kr.has("contextMenu")&&(at.onContextMenu=function(be){var Oe;pt.current&&rr.has("contextMenu")?Je(!1):(Z(be),Je(!0)),be.preventDefault();for(var it=arguments.length,yt=new Array(it>1?it-1:0),ct=1;ct<it;ct++)yt[ct-1]=arguments[ct];(Oe=Se.onContextMenu)===null||Oe===void 0||Oe.call.apply(Oe,[Se,be].concat(yt))}),ne&&(at.className=_e(Se.className,ne));var yr=M.useRef(!1);yr.current||(yr.current=S||Xe||Vt);var Nr=ie(ie({},Se),at),kn={},Ti=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ti.forEach(function(be){re[be]&&(kn[be]=function(){for(var Oe,it=arguments.length,yt=new Array(it),ct=0;ct<it;ct++)yt[ct]=arguments[ct];(Oe=Nr[be])===null||Oe===void 0||Oe.call.apply(Oe,[Nr].concat(yt)),re[be].apply(re,yt)})});var Uo=M.cloneElement(xe,ie(ie({},Nr),kn)),Wo={x:ur,y:Tr},Go=W?ie({},W!==!0?W:{}):null;return M.createElement(M.Fragment,null,M.createElement(wn,{disabled:!Xe,ref:Ve,onResize:qo},M.createElement(Dv,{getTriggerDOMNode:ce},Uo)),yr.current&&M.createElement(Jd.Provider,{value:ae},M.createElement(Lv,{portal:e,ref:Ke,prefixCls:o,popup:C,className:_e(R,Lo),style:j,target:Fe,onMouseEnter:Yr,onMouseLeave:An,onPointerEnter:Yr,zIndex:G,open:Xe,keepDom:Vt,fresh:P,onClick:B,onPointerDownCapture:Tn,mask:y,motion:zt,maskMotion:Or,onVisibleChanged:zo,onPrepare:Ho,forceRender:S,autoDestroy:de,getPopupContainer:w,align:fr,arrow:Go,arrowPos:Wo,ready:He,offsetX:dt,offsetY:nt,offsetR:lt,offsetB:Mt,onAlign:Pr,stretch:D,targetWidth:Ri/ut,targetHeight:$o/cr})))});return process.env.NODE_ENV!=="production"&&(r.displayName="Trigger"),r}const gE=mE(Du);var Jr={shiftX:64,adjustY:1},en={adjustX:1,shiftY:!0},Gt=[0,0],yE={left:{points:["cr","cl"],overflow:en,offset:[-4,0],targetOffset:Gt},right:{points:["cl","cr"],overflow:en,offset:[4,0],targetOffset:Gt},top:{points:["bc","tc"],overflow:Jr,offset:[0,-4],targetOffset:Gt},bottom:{points:["tc","bc"],overflow:Jr,offset:[0,4],targetOffset:Gt},topLeft:{points:["bl","tl"],overflow:Jr,offset:[0,-4],targetOffset:Gt},leftTop:{points:["tr","tl"],overflow:en,offset:[-4,0],targetOffset:Gt},topRight:{points:["br","tr"],overflow:Jr,offset:[0,-4],targetOffset:Gt},rightTop:{points:["tl","tr"],overflow:en,offset:[4,0],targetOffset:Gt},bottomRight:{points:["tr","br"],overflow:Jr,offset:[0,4],targetOffset:Gt},rightBottom:{points:["bl","br"],overflow:en,offset:[4,0],targetOffset:Gt},bottomLeft:{points:["tl","bl"],overflow:Jr,offset:[0,4],targetOffset:Gt},leftBottom:{points:["br","bl"],overflow:en,offset:[-4,0],targetOffset:Gt}},bE=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],xE=function(r,t){var n=r.overlayClassName,i=r.trigger,o=i===void 0?["hover"]:i,a=r.mouseEnterDelay,s=a===void 0?0:a,c=r.mouseLeaveDelay,d=c===void 0?.1:c,f=r.overlayStyle,l=r.prefixCls,u=l===void 0?"rc-tooltip":l,h=r.children,v=r.onVisibleChange,b=r.afterVisibleChange,p=r.transitionName,g=r.animation,m=r.motion,x=r.placement,y=x===void 0?"right":x,E=r.align,_=E===void 0?{}:E,w=r.destroyTooltipOnHide,S=w===void 0?!1:w,T=r.defaultVisible,O=r.getTooltipContainer,C=r.overlayInnerStyle;r.arrowContent;var R=r.overlay,j=r.id,A=r.showArrow,I=A===void 0?!0:A,$=r.classNames,H=r.styles,G=Rt(r,bE),D=Iv(j),F=z.useRef(null);z.useImperativeHandle(t,function(){return F.current});var P=ie({},G);"visible"in r&&(P.popupVisible=r.visible);var L=function(){return M.createElement(Pv,{key:"content",prefixCls:u,id:D,bodyClassName:$?.body,overlayInnerStyle:ie(ie({},C),H?.body)},R)},B=function(){var W=M.Children.only(h),q=W?.props||{},N=ie(ie({},q),{},{"aria-describedby":R?D:null});return M.cloneElement(h,N)};return M.createElement(gE,tt({popupClassName:_e(n,$?.root),prefixCls:u,popup:L,action:o,builtinPlacements:yE,popupPlacement:y,ref:F,popupAlign:_,getPopupContainer:O,onPopupVisibleChange:v,afterPopupVisibleChange:b,popupTransitionName:p,popupAnimation:g,popupMotion:m,defaultPopupVisible:T,autoDestroy:S,mouseLeaveDelay:d,popupStyle:ie(ie({},f),H?.root),mouseEnterDelay:s,arrow:I},P),B())};const EE=z.forwardRef(xE);function Fv(e,r){this.v=e,this.k=r}function Ct(e,r,t,n){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}Ct=function(a,s,c,d){function f(l,u){Ct(a,l,function(h){return this._invoke(l,u,h)})}s?i?i(a,s,{value:c,enumerable:!d,configurable:!d,writable:!d}):a[s]=c:(f("next",0),f("throw",1),f("return",2))},Ct(e,r,t,n)}function Fu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,r,t=typeof Symbol=="function"?Symbol:{},n=t.iterator||"@@iterator",i=t.toStringTag||"@@toStringTag";function o(h,v,b,p){var g=v&&v.prototype instanceof s?v:s,m=Object.create(g.prototype);return Ct(m,"_invoke",(function(x,y,E){var _,w,S,T=0,O=E||[],C=!1,R={p:0,n:0,v:e,a:j,f:j.bind(e,4),d:function(I,$){return _=I,w=0,S=e,R.n=$,a}};function j(A,I){for(w=A,S=I,r=0;!C&&T&&!$&&r<O.length;r++){var $,H=O[r],G=R.p,D=H[2];A>3?($=D===I)&&(S=H[(w=H[4])?5:(w=3,3)],H[4]=H[5]=e):H[0]<=G&&(($=A<2&&G<H[1])?(w=0,R.v=I,R.n=H[1]):G<D&&($=A<3||H[0]>I||I>D)&&(H[4]=A,H[5]=I,R.n=D,w=0))}if($||A>1)return a;throw C=!0,I}return function(A,I,$){if(T>1)throw TypeError("Generator is already running");for(C&&I===1&&j(I,$),w=I,S=$;(r=w<2?e:S)||!C;){_||(w?w<3?(w>1&&(R.n=-1),j(w,S)):R.n=S:R.v=S);try{if(T=2,_){if(w||(A="next"),r=_[A]){if(!(r=r.call(_,S)))throw TypeError("iterator result is not an object");if(!r.done)return r;S=r.value,w<2&&(w=0)}else w===1&&(r=_.return)&&r.call(_),w<2&&(S=TypeError("The iterator does not provide a '"+A+"' method"),w=1);_=e}else if((r=(C=R.n<0)?S:x.call(y,R))!==a)break}catch(H){_=e,w=1,S=H}finally{T=1}}return{value:r,done:C}}})(h,b,p),!0),m}var a={};function s(){}function c(){}function d(){}r=Object.getPrototypeOf;var f=[][n]?r(r([][n]())):(Ct(r={},n,function(){return this}),r),l=d.prototype=s.prototype=Object.create(f);function u(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,d):(h.__proto__=d,Ct(h,i,"GeneratorFunction")),h.prototype=Object.create(l),h}return c.prototype=d,Ct(l,"constructor",d),Ct(d,"constructor",c),c.displayName="GeneratorFunction",Ct(d,i,"GeneratorFunction"),Ct(l),Ct(l,i,"Generator"),Ct(l,n,function(){return this}),Ct(l,"toString",function(){return"[object Generator]"}),(Fu=function(){return{w:o,m:u}})()}function vo(e,r){function t(i,o,a,s){try{var c=e[i](o),d=c.value;return d instanceof Fv?r.resolve(d.v).then(function(f){t("next",f,a,s)},function(f){t("throw",f,a,s)}):r.resolve(d).then(function(f){c.value=f,a(c)},function(f){return t("throw",f,a,s)})}catch(f){s(f)}}var n;this.next||(Ct(vo.prototype),Ct(vo.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Ct(this,"_invoke",function(i,o,a){function s(){return new r(function(c,d){t(i,a,c,d)})}return n=n?n.then(s,s):s()},!0)}function $v(e,r,t,n,i){return new vo(Fu().w(e,r,t,n),i||Promise)}function wE(e,r,t,n,i){var o=$v(e,r,t,n,i);return o.next().then(function(a){return a.done?a.value:o.next()})}function SE(e){var r=Object(e),t=[];for(var n in r)t.unshift(n);return function i(){for(;t.length;)if((n=t.pop())in r)return i.value=n,i.done=!1,i;return i.done=!0,i}}function ah(e){if(e!=null){var r=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],t=0;if(r)return r.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}throw new TypeError(je(e)+" is not iterable")}function Zt(){var e=Fu(),r=e.m(Zt),t=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function n(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===t||(s.displayName||s.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function o(a){var s,c;return function(d){s||(s={stop:function(){return c(d.a,2)},catch:function(){return d.v},abrupt:function(l,u){return c(d.a,i[l],u)},delegateYield:function(l,u,h){return s.resultName=u,c(d.d,ah(l),h)},finish:function(l){return c(d.f,l)}},c=function(l,u,h){d.p=s.prev,d.n=s.next;try{return l(u,h)}finally{s.next=d.n}}),s.resultName&&(s[s.resultName]=d.v,s.resultName=void 0),s.sent=d.v,s.next=d.n;try{return a.call(this,s)}finally{d.p=s.prev,d.n=s.next}}}return(Zt=function(){return{wrap:function(c,d,f,l){return e.w(o(c),d,f,l&&l.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(c,d){return new Fv(c,d)},AsyncIterator:vo,async:function(c,d,f,l,u){return(n(d)?$v:wE)(o(c),d,f,l,u)},keys:SE,values:ah}})()}function sh(e,r,t,n,i,o,a){try{var s=e[o](a),c=s.value}catch(d){return void t(d)}s.done?r(c):Promise.resolve(c).then(n,i)}function xi(e){return function(){var r=this,t=arguments;return new Promise(function(n,i){var o=e.apply(r,t);function a(c){sh(o,n,i,a,s,"next",c)}function s(c){sh(o,n,i,a,s,"throw",c)}a(void 0)})}}var Vr="RC_FORM_INTERNAL_HOOKS",Ze=function(){ot(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},bn=M.createContext({getFieldValue:Ze,getFieldsValue:Ze,getFieldError:Ze,getFieldWarning:Ze,getFieldsError:Ze,isFieldsTouched:Ze,isFieldTouched:Ze,isFieldValidating:Ze,isFieldsValidating:Ze,resetFields:Ze,setFields:Ze,setFieldValue:Ze,setFieldsValue:Ze,validateFields:Ze,submit:Ze,getInternalHooks:function(){return Ze(),{dispatch:Ze,initEntityValue:Ze,registerField:Ze,useSubscribe:Ze,setInitialValues:Ze,destroyForm:Ze,setCallbacks:Ze,registerWatch:Ze,getFields:Ze,setValidateMessages:Ze,setPreserve:Ze,getInitialValue:Ze}}}),mo=M.createContext(null);function tu(e){return e==null?[]:Array.isArray(e)?e:[e]}function _E(e){return e&&!!e._init}function ru(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var r=JSON.parse(JSON.stringify(this));return r.clone=this.clone,r}}}var nu=ru();function CE(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function RE(e,r,t){if(Ou())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,r);var i=new(e.bind.apply(e,n));return t&&ai(i,t.prototype),i}function iu(e){var r=typeof Map=="function"?new Map:void 0;return iu=function(n){if(n===null||!CE(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(n))return r.get(n);r.set(n,i)}function i(){return RE(n,arguments,si(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ai(i,n)},iu(e)}var OE=/%[sdj%]/g,Bv=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(Bv=function(r,t){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&t.every(function(n){return typeof n=="string"})&&console.warn(r,t)});function ou(e){if(!e||!e.length)return null;var r={};return e.forEach(function(t){var n=t.field;r[n]=r[n]||[],r[n].push(t)}),r}function qt(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var i=0,o=t.length;if(typeof e=="function")return e.apply(null,t);if(typeof e=="string"){var a=e.replace(OE,function(s){if(s==="%%")return"%";if(i>=o)return s;switch(s){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function jE(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function xt(e,r){return!!(e==null||r==="array"&&Array.isArray(e)&&!e.length||jE(r)&&typeof e=="string"&&!e)}function TE(e,r,t){var n=[],i=0,o=e.length;function a(s){n.push.apply(n,we(s||[])),i++,i===o&&t(n)}e.forEach(function(s){r(s,a)})}function lh(e,r,t){var n=0,i=e.length;function o(a){if(a&&a.length){t(a);return}var s=n;n=n+1,s<i?r(e[s],o):t([])}o([])}function AE(e){var r=[];return Object.keys(e).forEach(function(t){r.push.apply(r,we(e[t]||[]))}),r}var uh=(function(e){$r(t,e);var r=Br(t);function t(n,i){var o;return St(this,t),o=r.call(this,"Async Validation Error"),te(Ne(o),"errors",void 0),te(Ne(o),"fields",void 0),o.errors=n,o.fields=i,o}return _t(t)})(iu(Error));function kE(e,r,t,n,i){if(r.first){var o=new Promise(function(u,h){var v=function(g){return n(g),g.length?h(new uh(g,ou(g))):u(i)},b=AE(e);lh(b,t,v)});return o.catch(function(u){return u}),o}var a=r.firstFields===!0?Object.keys(e):r.firstFields||[],s=Object.keys(e),c=s.length,d=0,f=[],l=new Promise(function(u,h){var v=function(p){if(f.push.apply(f,p),d++,d===c)return n(f),f.length?h(new uh(f,ou(f))):u(i)};s.length||(n(f),u(i)),s.forEach(function(b){var p=e[b];a.indexOf(b)!==-1?lh(p,t,v):TE(p,t,v)})});return l.catch(function(u){return u}),l}function PE(e){return!!(e&&e.message!==void 0)}function NE(e,r){for(var t=e,n=0;n<r.length;n++){if(t==null)return t;t=t[r[n]]}return t}function ch(e,r){return function(t){var n;return e.fullFields?n=NE(r,e.fullFields):n=r[t.field||e.fullField],PE(t)?(t.field=t.field||e.fullField,t.fieldValue=n,t):{message:typeof t=="function"?t():t,fieldValue:n,field:t.field||e.fullField}}}function fh(e,r){if(r){for(var t in r)if(r.hasOwnProperty(t)){var n=r[t];je(n)==="object"&&je(e[t])==="object"?e[t]=ie(ie({},e[t]),n):e[t]=n}}return e}var tn="enum",IE=function(r,t,n,i,o){r[tn]=Array.isArray(r[tn])?r[tn]:[],r[tn].indexOf(t)===-1&&i.push(qt(o.messages[tn],r.fullField,r[tn].join(", ")))},ME=function(r,t,n,i,o){if(r.pattern){if(r.pattern instanceof RegExp)r.pattern.lastIndex=0,r.pattern.test(t)||i.push(qt(o.messages.pattern.mismatch,r.fullField,t,r.pattern));else if(typeof r.pattern=="string"){var a=new RegExp(r.pattern);a.test(t)||i.push(qt(o.messages.pattern.mismatch,r.fullField,t,r.pattern))}}},LE=function(r,t,n,i,o){var a=typeof r.len=="number",s=typeof r.min=="number",c=typeof r.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=t,l=null,u=typeof t=="number",h=typeof t=="string",v=Array.isArray(t);if(u?l="number":h?l="string":v&&(l="array"),!l)return!1;v&&(f=t.length),h&&(f=t.replace(d,"_").length),a?f!==r.len&&i.push(qt(o.messages[l].len,r.fullField,r.len)):s&&!c&&f<r.min?i.push(qt(o.messages[l].min,r.fullField,r.min)):c&&!s&&f>r.max?i.push(qt(o.messages[l].max,r.fullField,r.max)):s&&c&&(f<r.min||f>r.max)&&i.push(qt(o.messages[l].range,r.fullField,r.min,r.max))},qv=function(r,t,n,i,o,a){r.required&&(!n.hasOwnProperty(r.field)||xt(t,a||r.type))&&i.push(qt(o.messages.required,r.fullField))},Hi;const DE=(function(){if(Hi)return Hi;var e="[a-fA-F\\d:]",r=function(_){return _&&_.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},t="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(t,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(t,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(t,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(t,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(t,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(t,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(t,"|(?::").concat(n,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(i.join("|"),")").concat(o),s=new RegExp("(?:^".concat(t,"$)|(?:^").concat(a,"$)")),c=new RegExp("^".concat(t,"$")),d=new RegExp("^".concat(a,"$")),f=function(_){return _&&_.exact?s:new RegExp("(?:".concat(r(_)).concat(t).concat(r(_),")|(?:").concat(r(_)).concat(a).concat(r(_),")"),"g")};f.v4=function(E){return E&&E.exact?c:new RegExp("".concat(r(E)).concat(t).concat(r(E)),"g")},f.v6=function(E){return E&&E.exact?d:new RegExp("".concat(r(E)).concat(a).concat(r(E)),"g")};var l="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",h=f.v4().source,v=f.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',y="(?:".concat(l,"|www\\.)").concat(u,"(?:localhost|").concat(h,"|").concat(v,"|").concat(b).concat(p).concat(g,")").concat(m).concat(x);return Hi=new RegExp("(?:^".concat(y,"$)"),"i"),Hi});var dh={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Xn={integer:function(r){return Xn.number(r)&&parseInt(r,10)===r},float:function(r){return Xn.number(r)&&!Xn.integer(r)},array:function(r){return Array.isArray(r)},regexp:function(r){if(r instanceof RegExp)return!0;try{return!!new RegExp(r)}catch{return!1}},date:function(r){return typeof r.getTime=="function"&&typeof r.getMonth=="function"&&typeof r.getYear=="function"&&!isNaN(r.getTime())},number:function(r){return isNaN(r)?!1:typeof r=="number"},object:function(r){return je(r)==="object"&&!Xn.array(r)},method:function(r){return typeof r=="function"},email:function(r){return typeof r=="string"&&r.length<=320&&!!r.match(dh.email)},url:function(r){return typeof r=="string"&&r.length<=2048&&!!r.match(DE())},hex:function(r){return typeof r=="string"&&!!r.match(dh.hex)}},FE=function(r,t,n,i,o){if(r.required&&t===void 0){qv(r,t,n,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=r.type;a.indexOf(s)>-1?Xn[s](t)||i.push(qt(o.messages.types[s],r.fullField,r.type)):s&&je(t)!==r.type&&i.push(qt(o.messages.types[s],r.fullField,r.type))},$E=function(r,t,n,i,o){(/^\s+$/.test(t)||t==="")&&i.push(qt(o.messages.whitespace,r.fullField))};const De={required:qv,whitespace:$E,type:FE,range:LE,enum:IE,pattern:ME};var BE=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t)&&!r.required)return n();De.required(r,t,i,a,o)}n(a)},qE=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(t==null&&!r.required)return n();De.required(r,t,i,a,o,"array"),t!=null&&(De.type(r,t,i,a,o),De.range(r,t,i,a,o))}n(a)},zE=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t)&&!r.required)return n();De.required(r,t,i,a,o),t!==void 0&&De.type(r,t,i,a,o)}n(a)},HE=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t,"date")&&!r.required)return n();if(De.required(r,t,i,a,o),!xt(t,"date")){var c;t instanceof Date?c=t:c=new Date(t),De.type(r,c,i,a,o),c&&De.range(r,c.getTime(),i,a,o)}}n(a)},VE="enum",UE=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t)&&!r.required)return n();De.required(r,t,i,a,o),t!==void 0&&De[VE](r,t,i,a,o)}n(a)},WE=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t)&&!r.required)return n();De.required(r,t,i,a,o),t!==void 0&&(De.type(r,t,i,a,o),De.range(r,t,i,a,o))}n(a)},GE=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t)&&!r.required)return n();De.required(r,t,i,a,o),t!==void 0&&(De.type(r,t,i,a,o),De.range(r,t,i,a,o))}n(a)},KE=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t)&&!r.required)return n();De.required(r,t,i,a,o),t!==void 0&&De.type(r,t,i,a,o)}n(a)},YE=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(t===""&&(t=void 0),xt(t)&&!r.required)return n();De.required(r,t,i,a,o),t!==void 0&&(De.type(r,t,i,a,o),De.range(r,t,i,a,o))}n(a)},XE=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t)&&!r.required)return n();De.required(r,t,i,a,o),t!==void 0&&De.type(r,t,i,a,o)}n(a)},ZE=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t,"string")&&!r.required)return n();De.required(r,t,i,a,o),xt(t,"string")||De.pattern(r,t,i,a,o)}n(a)},QE=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t)&&!r.required)return n();De.required(r,t,i,a,o),xt(t)||De.type(r,t,i,a,o)}n(a)},JE=function(r,t,n,i,o){var a=[],s=Array.isArray(t)?"array":je(t);De.required(r,t,i,a,o,s),n(a)},ew=function(r,t,n,i,o){var a=[],s=r.required||!r.required&&i.hasOwnProperty(r.field);if(s){if(xt(t,"string")&&!r.required)return n();De.required(r,t,i,a,o,"string"),xt(t,"string")||(De.type(r,t,i,a,o),De.range(r,t,i,a,o),De.pattern(r,t,i,a,o),r.whitespace===!0&&De.whitespace(r,t,i,a,o))}n(a)},el=function(r,t,n,i,o){var a=r.type,s=[],c=r.required||!r.required&&i.hasOwnProperty(r.field);if(c){if(xt(t,a)&&!r.required)return n();De.required(r,t,i,s,o,a),xt(t,a)||De.type(r,t,i,s,o)}n(s)};const ti={string:ew,method:KE,number:YE,boolean:zE,regexp:QE,integer:GE,float:WE,array:qE,object:XE,enum:UE,pattern:ZE,date:HE,url:el,hex:el,email:el,required:JE,any:BE};var Ei=(function(){function e(r){St(this,e),te(this,"rules",null),te(this,"_messages",nu),this.define(r)}return _t(e,[{key:"define",value:function(t){var n=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(je(t)!=="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(i){var o=t[i];n.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(t){return t&&(this._messages=fh(ru(),t)),this._messages}},{key:"validate",value:function(t){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=t,s=i,c=o;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function d(v){var b=[],p={};function g(x){if(Array.isArray(x)){var y;b=(y=b).concat.apply(y,we(x))}else b.push(x)}for(var m=0;m<v.length;m++)g(v[m]);b.length?(p=ou(b),c(b,p)):c(null,a)}if(s.messages){var f=this.messages();f===nu&&(f=ru()),fh(f,s.messages),s.messages=f}else s.messages=this.messages();var l={},u=s.keys||Object.keys(this.rules);u.forEach(function(v){var b=n.rules[v],p=a[v];b.forEach(function(g){var m=g;typeof m.transform=="function"&&(a===t&&(a=ie({},a)),p=a[v]=m.transform(p),p!=null&&(m.type=m.type||(Array.isArray(p)?"array":je(p)))),typeof m=="function"?m={validator:m}:m=ie({},m),m.validator=n.getValidationMethod(m),m.validator&&(m.field=v,m.fullField=m.fullField||v,m.type=n.getType(m),l[v]=l[v]||[],l[v].push({rule:m,value:p,source:a,field:v}))})});var h={};return kE(l,s,function(v,b){var p=v.rule,g=(p.type==="object"||p.type==="array")&&(je(p.fields)==="object"||je(p.defaultField)==="object");g=g&&(p.required||!p.required&&v.value),p.field=v.field;function m(w,S){return ie(ie({},S),{},{fullField:"".concat(p.fullField,".").concat(w),fullFields:p.fullFields?[].concat(we(p.fullFields),[w]):[w]})}function x(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],S=Array.isArray(w)?w:[w];!s.suppressWarning&&S.length&&e.warning("async-validator:",S),S.length&&p.message!==void 0&&(S=[].concat(p.message));var T=S.map(ch(p,a));if(s.first&&T.length)return h[p.field]=1,b(T);if(!g)b(T);else{if(p.required&&!v.value)return p.message!==void 0?T=[].concat(p.message).map(ch(p,a)):s.error&&(T=[s.error(p,qt(s.messages.required,p.field))]),b(T);var O={};p.defaultField&&Object.keys(v.value).map(function(j){O[j]=p.defaultField}),O=ie(ie({},O),v.rule.fields);var C={};Object.keys(O).forEach(function(j){var A=O[j],I=Array.isArray(A)?A:[A];C[j]=I.map(m.bind(null,j))});var R=new e(C);R.messages(s.messages),v.rule.options&&(v.rule.options.messages=s.messages,v.rule.options.error=s.error),R.validate(v.value,v.rule.options||s,function(j){var A=[];T&&T.length&&A.push.apply(A,we(T)),j&&j.length&&A.push.apply(A,we(j)),b(A.length?A:null)})}}var y;if(p.asyncValidator)y=p.asyncValidator(p,v.value,x,v.source,s);else if(p.validator){try{y=p.validator(p,v.value,x,v.source,s)}catch(w){var E,_;(E=(_=console).error)===null||E===void 0||E.call(_,w),s.suppressValidatorError||setTimeout(function(){throw w},0),x(w.message)}y===!0?x():y===!1?x(typeof p.message=="function"?p.message(p.fullField||p.field):p.message||"".concat(p.fullField||p.field," fails")):y instanceof Array?x(y):y instanceof Error&&x(y.message)}y&&y.then&&y.then(function(){return x()},function(w){return x(w)})},function(v){d(v)},a)}},{key:"getType",value:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!ti.hasOwnProperty(t.type))throw new Error(qt("Unknown rule type %s",t.type));return t.type||"string"}},{key:"getValidationMethod",value:function(t){if(typeof t.validator=="function")return t.validator;var n=Object.keys(t),i=n.indexOf("message");return i!==-1&&n.splice(i,1),n.length===1&&n[0]==="required"?ti.required:ti[this.getType(t)]||void 0}}]),e})();te(Ei,"register",function(r,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");ti[r]=t});te(Ei,"warning",Bv);te(Ei,"messages",nu);te(Ei,"validators",ti);var $t="'${name}' is not a valid ${type}",zv={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:$t,method:$t,array:$t,object:$t,number:$t,date:$t,boolean:$t,integer:$t,float:$t,regexp:$t,email:$t,url:$t,hex:$t},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},hh=Ei;function tw(e,r){return e.replace(/\\?\$\{\w+\}/g,function(t){if(t.startsWith("\\"))return t.slice(1);var n=t.slice(2,-1);return r[n]})}var ph="CODE_LOGIC_ERROR";function au(e,r,t,n,i){return su.apply(this,arguments)}function su(){return su=xi(Zt().mark(function e(r,t,n,i,o){var a,s,c,d,f,l,u,h,v;return Zt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return a=ie({},n),delete a.ruleIndex,hh.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(g){return console.error(g),Promise.reject(ph)}}),c=null,a&&a.type==="array"&&a.defaultField&&(c=a.defaultField,delete a.defaultField),d=new hh(te({},r,[a])),f=nn(zv,i.validateMessages),d.messages(f),l=[],p.prev=10,p.next=13,Promise.resolve(d.validate(te({},r,t),ie({},i)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(l=p.t0.errors.map(function(g,m){var x=g.message,y=x===ph?f.default:x;return M.isValidElement(y)?M.cloneElement(y,{key:"error_".concat(m)}):y}));case 18:if(!(!l.length&&c)){p.next=23;break}return p.next=21,Promise.all(t.map(function(g,m){return au("".concat(r,".").concat(m),g,c,i,o)}));case 21:return u=p.sent,p.abrupt("return",u.reduce(function(g,m){return[].concat(we(g),we(m))},[]));case 23:return h=ie(ie({},n),{},{name:r,enum:(n.enum||[]).join(", ")},o),v=l.map(function(g){return typeof g=="string"?tw(g,h):g}),p.abrupt("return",v);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),su.apply(this,arguments)}function rw(e,r,t,n,i,o){var a=e.join("."),s=t.map(function(f,l){var u=f.validator,h=ie(ie({},f),{},{ruleIndex:l});return u&&(h.validator=function(v,b,p){var g=!1,m=function(){for(var E=arguments.length,_=new Array(E),w=0;w<E;w++)_[w]=arguments[w];Promise.resolve().then(function(){ot(!g,"Your validator function has already return a promise. `callback` will be ignored."),g||p.apply(void 0,_)})},x=u(v,b,m);g=x&&typeof x.then=="function"&&typeof x.catch=="function",ot(g,"`callback` is deprecated. Please return a promise instead."),g&&x.then(function(){p()}).catch(function(y){p(y||" ")})}),h}).sort(function(f,l){var u=f.warningOnly,h=f.ruleIndex,v=l.warningOnly,b=l.ruleIndex;return!!u==!!v?h-b:u?1:-1}),c;if(i===!0)c=new Promise((function(){var f=xi(Zt().mark(function l(u,h){var v,b,p;return Zt().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:v=0;case 1:if(!(v<s.length)){m.next=12;break}return b=s[v],m.next=5,au(a,r,b,n,o);case 5:if(p=m.sent,!p.length){m.next=9;break}return h([{errors:p,rule:b}]),m.abrupt("return");case 9:v+=1,m.next=1;break;case 12:u([]);case 13:case"end":return m.stop()}},l)}));return function(l,u){return f.apply(this,arguments)}})());else{var d=s.map(function(f){return au(a,r,f,n,o).then(function(l){return{errors:l,rule:f}})});c=(i?iw(d):nw(d)).then(function(f){return Promise.reject(f)})}return c.catch(function(f){return f}),c}function nw(e){return lu.apply(this,arguments)}function lu(){return lu=xi(Zt().mark(function e(r){return Zt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(r).then(function(i){var o,a=(o=[]).concat.apply(o,we(i));return a}));case 1:case"end":return n.stop()}},e)})),lu.apply(this,arguments)}function iw(e){return uu.apply(this,arguments)}function uu(){return uu=xi(Zt().mark(function e(r){var t;return Zt().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return t=0,i.abrupt("return",new Promise(function(o){r.forEach(function(a){a.then(function(s){s.errors.length&&o([s]),t+=1,t===r.length&&o([])})})}));case 2:case"end":return i.stop()}},e)})),uu.apply(this,arguments)}function ht(e){return tu(e)}function vh(e,r){var t={};return r.forEach(function(n){var i=pr(e,n);t=or(t,n,i)}),t}function ln(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return Hv(r,n,t)})}function Hv(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!r||!t&&e.length!==r.length?!1:r.every(function(n,i){return e[i]===n})}function ow(e,r){if(e===r)return!0;if(!e&&r||e&&!r||!e||!r||je(e)!=="object"||je(r)!=="object")return!1;var t=Object.keys(e),n=Object.keys(r),i=new Set([].concat(t,n));return we(i).every(function(o){var a=e[o],s=r[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function aw(e){var r=arguments.length<=1?void 0:arguments[1];return r&&r.target&&je(r.target)==="object"&&e in r.target?r.target[e]:r}function mh(e,r,t){var n=e.length;if(r<0||r>=n||t<0||t>=n)return e;var i=e[r],o=r-t;return o>0?[].concat(we(e.slice(0,t)),[i],we(e.slice(t,r)),we(e.slice(r+1,n))):o<0?[].concat(we(e.slice(0,r)),we(e.slice(r+1,t+1)),[i],we(e.slice(t+1,n))):e}var sw=["name"],Kt=[];function tl(e,r,t,n,i,o){return typeof e=="function"?e(r,t,"source"in o?{source:o.source}:{}):n!==i}var $u=(function(e){$r(t,e);var r=Br(t);function t(n){var i;if(St(this,t),i=r.call(this,n),te(Ne(i),"state",{resetCount:0}),te(Ne(i),"cancelRegisterFunc",null),te(Ne(i),"mounted",!1),te(Ne(i),"touched",!1),te(Ne(i),"dirty",!1),te(Ne(i),"validatePromise",void 0),te(Ne(i),"prevValidating",void 0),te(Ne(i),"errors",Kt),te(Ne(i),"warnings",Kt),te(Ne(i),"cancelRegister",function(){var c=i.props,d=c.preserve,f=c.isListField,l=c.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(f,d,ht(l)),i.cancelRegisterFunc=null}),te(Ne(i),"getNamePath",function(){var c=i.props,d=c.name,f=c.fieldContext,l=f.prefixName,u=l===void 0?[]:l;return d!==void 0?[].concat(we(u),we(d)):[]}),te(Ne(i),"getRules",function(){var c=i.props,d=c.rules,f=d===void 0?[]:d,l=c.fieldContext;return f.map(function(u){return typeof u=="function"?u(l):u})}),te(Ne(i),"refresh",function(){i.mounted&&i.setState(function(c){var d=c.resetCount;return{resetCount:d+1}})}),te(Ne(i),"metaCache",null),te(Ne(i),"triggerMetaEvent",function(c){var d=i.props.onMetaChange;if(d){var f=ie(ie({},i.getMeta()),{},{destroy:c});Dl(i.metaCache,f)||d(f),i.metaCache=f}else i.metaCache=null}),te(Ne(i),"onStoreChange",function(c,d,f){var l=i.props,u=l.shouldUpdate,h=l.dependencies,v=h===void 0?[]:h,b=l.onReset,p=f.store,g=i.getNamePath(),m=i.getValue(c),x=i.getValue(p),y=d&&ln(d,g);switch(f.type==="valueUpdate"&&f.source==="external"&&!Dl(m,x)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Kt,i.warnings=Kt,i.triggerMetaEvent()),f.type){case"reset":if(!d||y){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Kt,i.warnings=Kt,i.triggerMetaEvent(),b?.(),i.refresh();return}break;case"remove":{if(u&&tl(u,c,p,m,x,f)){i.reRender();return}break}case"setField":{var E=f.data;if(y){"touched"in E&&(i.touched=E.touched),"validating"in E&&!("originRCField"in E)&&(i.validatePromise=E.validating?Promise.resolve([]):null),"errors"in E&&(i.errors=E.errors||Kt),"warnings"in E&&(i.warnings=E.warnings||Kt),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in E&&ln(d,g,!0)){i.reRender();return}if(u&&!g.length&&tl(u,c,p,m,x,f)){i.reRender();return}break}case"dependenciesUpdate":{var _=v.map(ht);if(_.some(function(w){return ln(f.relatedFields,w)})){i.reRender();return}break}default:if(y||(!v.length||g.length||u)&&tl(u,c,p,m,x,f)){i.reRender();return}break}u===!0&&i.reRender()}),te(Ne(i),"validateRules",function(c){var d=i.getNamePath(),f=i.getValue(),l=c||{},u=l.triggerName,h=l.validateOnly,v=h===void 0?!1:h,b=Promise.resolve().then(xi(Zt().mark(function p(){var g,m,x,y,E,_,w;return Zt().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(i.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(g=i.props,m=g.validateFirst,x=m===void 0?!1:m,y=g.messageVariables,E=g.validateDebounce,_=i.getRules(),u&&(_=_.filter(function(O){return O}).filter(function(O){var C=O.validateTrigger;if(!C)return!0;var R=tu(C);return R.includes(u)})),!(E&&u)){T.next=10;break}return T.next=8,new Promise(function(O){setTimeout(O,E)});case 8:if(i.validatePromise===b){T.next=10;break}return T.abrupt("return",[]);case 10:return w=rw(d,f,_,c,x,y),w.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Kt;if(i.validatePromise===b){var C;i.validatePromise=null;var R=[],j=[];(C=O.forEach)===null||C===void 0||C.call(O,function(A){var I=A.rule.warningOnly,$=A.errors,H=$===void 0?Kt:$;I?j.push.apply(j,we(H)):R.push.apply(R,we(H))}),i.errors=R,i.warnings=j,i.triggerMetaEvent(),i.reRender()}}),T.abrupt("return",w);case 13:case"end":return T.stop()}},p)})));return v||(i.validatePromise=b,i.dirty=!0,i.errors=Kt,i.warnings=Kt,i.triggerMetaEvent(),i.reRender()),b}),te(Ne(i),"isFieldValidating",function(){return!!i.validatePromise}),te(Ne(i),"isFieldTouched",function(){return i.touched}),te(Ne(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var c=i.props.fieldContext,d=c.getInternalHooks(Vr),f=d.getInitialValue;return f(i.getNamePath())!==void 0}),te(Ne(i),"getErrors",function(){return i.errors}),te(Ne(i),"getWarnings",function(){return i.warnings}),te(Ne(i),"isListField",function(){return i.props.isListField}),te(Ne(i),"isList",function(){return i.props.isList}),te(Ne(i),"isPreserve",function(){return i.props.preserve}),te(Ne(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var c={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return c}),te(Ne(i),"getOnlyChild",function(c){if(typeof c=="function"){var d=i.getMeta();return ie(ie({},i.getOnlyChild(c(i.getControlled(),d,i.props.fieldContext))),{},{isFunction:!0})}var f=fn(c);return f.length!==1||!M.isValidElement(f[0])?{child:f,isFunction:!1}:{child:f[0],isFunction:!1}}),te(Ne(i),"getValue",function(c){var d=i.props.fieldContext.getFieldsValue,f=i.getNamePath();return pr(c||d(!0),f)}),te(Ne(i),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=i.props,f=d.name,l=d.trigger,u=d.validateTrigger,h=d.getValueFromEvent,v=d.normalize,b=d.valuePropName,p=d.getValueProps,g=d.fieldContext,m=u!==void 0?u:g.validateTrigger,x=i.getNamePath(),y=g.getInternalHooks,E=g.getFieldsValue,_=y(Vr),w=_.dispatch,S=i.getValue(),T=p||function(A){return te({},b,A)},O=c[l],C=f!==void 0?T(S):{};process.env.NODE_ENV!=="production"&&C&&Object.keys(C).forEach(function(A){ot(typeof C[A]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(A,")"))});var R=ie(ie({},c),C);R[l]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var A,I=arguments.length,$=new Array(I),H=0;H<I;H++)$[H]=arguments[H];h?A=h.apply(void 0,$):A=aw.apply(void 0,[b].concat($)),v&&(A=v(A,S,E(!0))),A!==S&&w({type:"updateValue",namePath:x,value:A}),O&&O.apply(void 0,$)};var j=tu(m||[]);return j.forEach(function(A){var I=R[A];R[A]=function(){I&&I.apply(void 0,arguments);var $=i.props.rules;$&&$.length&&w({type:"validateField",namePath:x,triggerName:A})}}),R}),n.fieldContext){var o=n.fieldContext.getInternalHooks,a=o(Vr),s=a.initEntityValue;s(Ne(i))}return i}return _t(t,[{key:"componentDidMount",value:function(){var i=this.props,o=i.shouldUpdate,a=i.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,c=s(Vr),d=c.registerField;this.cancelRegisterFunc=d(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var i=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),s=a.child,c=a.isFunction,d;return c?d=s:M.isValidElement(s)?d=M.cloneElement(s,this.getControlled(s.props)):(ot(!s,"`children` of Field is not validate ReactElement."),d=s),M.createElement(M.Fragment,{key:i},d)}}]),t})(M.Component);te($u,"contextType",bn);te($u,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Vv(e){var r,t=e.name,n=Rt(e,sw),i=M.useContext(bn),o=M.useContext(mo),a=t!==void 0?ht(t):void 0,s=(r=n.isListField)!==null&&r!==void 0?r:!!o,c="keep";return s||(c="_".concat((a||[]).join("_"))),process.env.NODE_ENV!=="production"&&n.preserve===!1&&s&&a.length<=1&&ot(!1,"`preserve` should not apply on Form.List fields."),M.createElement($u,tt({key:c,name:a,isListField:s},n,{fieldContext:i}))}function lw(e){var r=e.name,t=e.initialValue,n=e.children,i=e.rules,o=e.validateTrigger,a=e.isListField,s=M.useContext(bn),c=M.useContext(mo),d=M.useRef({keys:[],id:0}),f=d.current,l=M.useMemo(function(){var b=ht(s.prefixName)||[];return[].concat(we(b),we(ht(r)))},[s.prefixName,r]),u=M.useMemo(function(){return ie(ie({},s),{},{prefixName:l})},[s,l]),h=M.useMemo(function(){return{getKey:function(p){var g=l.length,m=p[g];return[f.keys[m],p.slice(g+1)]}}},[l]);if(typeof n!="function")return ot(!1,"Form.List only accepts function as children."),null;var v=function(p,g,m){var x=m.source;return x==="internal"?!1:p!==g};return M.createElement(mo.Provider,{value:h},M.createElement(bn.Provider,{value:u},M.createElement(Vv,{name:[],shouldUpdate:v,rules:i,validateTrigger:o,initialValue:t,isList:!0,isListField:a??!!c},function(b,p){var g=b.value,m=g===void 0?[]:g,x=b.onChange,y=s.getFieldValue,E=function(){var T=y(l||[]);return T||[]},_={add:function(T,O){var C=E();O>=0&&O<=C.length?(f.keys=[].concat(we(f.keys.slice(0,O)),[f.id],we(f.keys.slice(O))),x([].concat(we(C.slice(0,O)),[T],we(C.slice(O))))):(process.env.NODE_ENV!=="production"&&(O<0||O>C.length)&&ot(!1,"The second parameter of the add function should be a valid positive number."),f.keys=[].concat(we(f.keys),[f.id]),x([].concat(we(C),[T]))),f.id+=1},remove:function(T){var O=E(),C=new Set(Array.isArray(T)?T:[T]);C.size<=0||(f.keys=f.keys.filter(function(R,j){return!C.has(j)}),x(O.filter(function(R,j){return!C.has(j)})))},move:function(T,O){if(T!==O){var C=E();T<0||T>=C.length||O<0||O>=C.length||(f.keys=mh(f.keys,T,O),x(mh(C,T,O)))}}},w=m||[];return Array.isArray(w)||(w=[],process.env.NODE_ENV!=="production"&&ot(!1,"Current value of '".concat(l.join(" > "),"' is not an array type."))),n(w.map(function(S,T){var O=f.keys[T];return O===void 0&&(f.keys[T]=f.id,O=f.keys[T],f.id+=1),{name:T,key:O,isListField:!0}}),_,p)})))}function uw(e){var r=!1,t=e.length,n=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(c){return r=!0,c}).then(function(c){t-=1,n[s]=c,!(t>0)&&(r&&o(n),i(n))})})}):Promise.resolve([])}var Uv="__@field_split__";function rl(e){return e.map(function(r){return"".concat(je(r),":").concat(r)}).join(Uv)}var rn=(function(){function e(){St(this,e),te(this,"kvs",new Map)}return _t(e,[{key:"set",value:function(t,n){this.kvs.set(rl(t),n)}},{key:"get",value:function(t){return this.kvs.get(rl(t))}},{key:"update",value:function(t,n){var i=this.get(t),o=n(i);o?this.set(t,o):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(rl(t))}},{key:"map",value:function(t){return we(this.kvs.entries()).map(function(n){var i=ve(n,2),o=i[0],a=i[1],s=o.split(Uv);return t({key:s.map(function(c){var d=c.match(/^([^:]*):(.*)$/),f=ve(d,3),l=f[1],u=f[2];return l==="number"?Number(u):u}),value:a})})}},{key:"toJSON",value:function(){var t={};return this.map(function(n){var i=n.key,o=n.value;return t[i.join(".")]=o,null}),t}}]),e})(),cw=["name"],fw=_t(function e(r){var t=this;St(this,e),te(this,"formHooked",!1),te(this,"forceRootUpdate",void 0),te(this,"subscribable",!0),te(this,"store",{}),te(this,"fieldEntities",[]),te(this,"initialValues",{}),te(this,"callbacks",{}),te(this,"validateMessages",null),te(this,"preserve",null),te(this,"lastValidatePromise",null),te(this,"getForm",function(){return{getFieldValue:t.getFieldValue,getFieldsValue:t.getFieldsValue,getFieldError:t.getFieldError,getFieldWarning:t.getFieldWarning,getFieldsError:t.getFieldsError,isFieldsTouched:t.isFieldsTouched,isFieldTouched:t.isFieldTouched,isFieldValidating:t.isFieldValidating,isFieldsValidating:t.isFieldsValidating,resetFields:t.resetFields,setFields:t.setFields,setFieldValue:t.setFieldValue,setFieldsValue:t.setFieldsValue,validateFields:t.validateFields,submit:t.submit,_init:!0,getInternalHooks:t.getInternalHooks}}),te(this,"getInternalHooks",function(n){return n===Vr?(t.formHooked=!0,{dispatch:t.dispatch,initEntityValue:t.initEntityValue,registerField:t.registerField,useSubscribe:t.useSubscribe,setInitialValues:t.setInitialValues,destroyForm:t.destroyForm,setCallbacks:t.setCallbacks,setValidateMessages:t.setValidateMessages,getFields:t.getFields,setPreserve:t.setPreserve,getInitialValue:t.getInitialValue,registerWatch:t.registerWatch}):(ot(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),te(this,"useSubscribe",function(n){t.subscribable=n}),te(this,"prevWithoutPreserves",null),te(this,"setInitialValues",function(n,i){if(t.initialValues=n||{},i){var o,a=nn(n,t.store);(o=t.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var c=s.key;a=or(a,c,pr(n,c))}),t.prevWithoutPreserves=null,t.updateStore(a)}}),te(this,"destroyForm",function(n){if(n)t.updateStore({});else{var i=new rn;t.getFieldEntities(!0).forEach(function(o){t.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),t.prevWithoutPreserves=i}}),te(this,"getInitialValue",function(n){var i=pr(t.initialValues,n);return n.length?nn(i):i}),te(this,"setCallbacks",function(n){t.callbacks=n}),te(this,"setValidateMessages",function(n){t.validateMessages=n}),te(this,"setPreserve",function(n){t.preserve=n}),te(this,"watchList",[]),te(this,"registerWatch",function(n){return t.watchList.push(n),function(){t.watchList=t.watchList.filter(function(i){return i!==n})}}),te(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(t.watchList.length){var i=t.getFieldsValue(),o=t.getFieldsValue(!0);t.watchList.forEach(function(a){a(i,o,n)})}}),te(this,"timeoutId",null),te(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!t.timeoutId&&typeof window<"u"&&(t.timeoutId=setTimeout(function(){t.timeoutId=null,t.formHooked||ot(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),te(this,"updateStore",function(n){t.store=n}),te(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?t.fieldEntities.filter(function(i){return i.getNamePath().length}):t.fieldEntities}),te(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new rn;return t.getFieldEntities(n).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),te(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return t.getFieldEntities(!0);var i=t.getFieldsMap(!0);return n.map(function(o){var a=ht(o);return i.get(a)||{INVALIDATE_NAME_PATH:ht(o)}})}),te(this,"getFieldsValue",function(n,i){t.warningUnhooked();var o,a,s;if(n===!0||Array.isArray(n)?(o=n,a=i):n&&je(n)==="object"&&(s=n.strict,a=n.filter),o===!0&&!a)return t.store;var c=t.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),d=[];return c.forEach(function(f){var l,u,h="INVALIDATE_NAME_PATH"in f?f.INVALIDATE_NAME_PATH:f.getNamePath();if(s){var v,b;if((v=(b=f).isList)!==null&&v!==void 0&&v.call(b))return}else if(!o&&(l=(u=f).isListField)!==null&&l!==void 0&&l.call(u))return;if(!a)d.push(h);else{var p="getMeta"in f?f.getMeta():null;a(p)&&d.push(h)}}),vh(t.store,d.map(ht))}),te(this,"getFieldValue",function(n){t.warningUnhooked();var i=ht(n);return pr(t.store,i)}),te(this,"getFieldsError",function(n){t.warningUnhooked();var i=t.getFieldEntitiesForNamePathList(n);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:ht(n[a]),errors:[],warnings:[]}})}),te(this,"getFieldError",function(n){t.warningUnhooked();var i=ht(n),o=t.getFieldsError([i])[0];return o.errors}),te(this,"getFieldWarning",function(n){t.warningUnhooked();var i=ht(n),o=t.getFieldsError([i])[0];return o.warnings}),te(this,"isFieldsTouched",function(){t.warningUnhooked();for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i[0],s=i[1],c,d=!1;i.length===0?c=null:i.length===1?Array.isArray(a)?(c=a.map(ht),d=!1):(c=null,d=a):(c=a.map(ht),d=s);var f=t.getFieldEntities(!0),l=function(p){return p.isFieldTouched()};if(!c)return d?f.every(function(b){return l(b)||b.isList()}):f.some(l);var u=new rn;c.forEach(function(b){u.set(b,[])}),f.forEach(function(b){var p=b.getNamePath();c.forEach(function(g){g.every(function(m,x){return p[x]===m})&&u.update(g,function(m){return[].concat(we(m),[b])})})});var h=function(p){return p.some(l)},v=u.map(function(b){var p=b.value;return p});return d?v.every(h):v.some(h)}),te(this,"isFieldTouched",function(n){return t.warningUnhooked(),t.isFieldsTouched([n])}),te(this,"isFieldsValidating",function(n){t.warningUnhooked();var i=t.getFieldEntities();if(!n)return i.some(function(a){return a.isFieldValidating()});var o=n.map(ht);return i.some(function(a){var s=a.getNamePath();return ln(o,s)&&a.isFieldValidating()})}),te(this,"isFieldValidating",function(n){return t.warningUnhooked(),t.isFieldsValidating([n])}),te(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new rn,o=t.getFieldEntities(!0);o.forEach(function(c){var d=c.props.initialValue,f=c.getNamePath();if(d!==void 0){var l=i.get(f)||new Set;l.add({entity:c,value:d}),i.set(f,l)}});var a=function(d){d.forEach(function(f){var l=f.props.initialValue;if(l!==void 0){var u=f.getNamePath(),h=t.getInitialValue(u);if(h!==void 0)ot(!1,"Form already set 'initialValues' with path '".concat(u.join("."),"'. Field can not overwrite it."));else{var v=i.get(u);if(v&&v.size>1)ot(!1,"Multiple Field with path '".concat(u.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var b=t.getFieldValue(u),p=f.isListField();!p&&(!n.skipExist||b===void 0)&&t.updateStore(or(t.store,u,we(v)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(c){var d=i.get(c);if(d){var f;(f=s).push.apply(f,we(we(d).map(function(l){return l.entity})))}})):s=o,a(s)}),te(this,"resetFields",function(n){t.warningUnhooked();var i=t.store;if(!n){t.updateStore(nn(t.initialValues)),t.resetWithFieldInitialValue(),t.notifyObservers(i,null,{type:"reset"}),t.notifyWatch();return}var o=n.map(ht);o.forEach(function(a){var s=t.getInitialValue(a);t.updateStore(or(t.store,a,s))}),t.resetWithFieldInitialValue({namePathList:o}),t.notifyObservers(i,o,{type:"reset"}),t.notifyWatch(o)}),te(this,"setFields",function(n){t.warningUnhooked();var i=t.store,o=[];n.forEach(function(a){var s=a.name,c=Rt(a,cw),d=ht(s);o.push(d),"value"in c&&t.updateStore(or(t.store,d,c.value)),t.notifyObservers(i,[d],{type:"setField",data:a})}),t.notifyWatch(o)}),te(this,"getFields",function(){var n=t.getFieldEntities(!0),i=n.map(function(o){var a=o.getNamePath(),s=o.getMeta(),c=ie(ie({},s),{},{name:a,value:t.getFieldValue(a)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return i}),te(this,"initEntityValue",function(n){var i=n.props.initialValue;if(i!==void 0){var o=n.getNamePath(),a=pr(t.store,o);a===void 0&&t.updateStore(or(t.store,o,i))}}),te(this,"isMergedPreserve",function(n){var i=n!==void 0?n:t.preserve;return i??!0}),te(this,"registerField",function(n){t.fieldEntities.push(n);var i=n.getNamePath();if(t.notifyWatch([i]),n.props.initialValue!==void 0){var o=t.store;t.resetWithFieldInitialValue({entities:[n],skipExist:!0}),t.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t.fieldEntities=t.fieldEntities.filter(function(l){return l!==n}),!t.isMergedPreserve(s)&&(!a||c.length>1)){var d=a?void 0:t.getInitialValue(i);if(i.length&&t.getFieldValue(i)!==d&&t.fieldEntities.every(function(l){return!Hv(l.getNamePath(),i)})){var f=t.store;t.updateStore(or(f,i,d,!0)),t.notifyObservers(f,[i],{type:"remove"}),t.triggerDependenciesUpdate(f,i)}}t.notifyWatch([i])}}),te(this,"dispatch",function(n){switch(n.type){case"updateValue":{var i=n.namePath,o=n.value;t.updateValue(i,o);break}case"validateField":{var a=n.namePath,s=n.triggerName;t.validateFields([a],{triggerName:s});break}}}),te(this,"notifyObservers",function(n,i,o){if(t.subscribable){var a=ie(ie({},o),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(n,i,a)})}else t.forceRootUpdate()}),te(this,"triggerDependenciesUpdate",function(n,i){var o=t.getDependencyChildrenFields(i);return o.length&&t.validateFields(o),t.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[i].concat(we(o))}),o}),te(this,"updateValue",function(n,i){var o=ht(n),a=t.store;t.updateStore(or(t.store,o,i)),t.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),t.notifyWatch([o]);var s=t.triggerDependenciesUpdate(a,o),c=t.callbacks.onValuesChange;if(c){var d=vh(t.store,[o]);c(d,t.getFieldsValue())}t.triggerOnFieldsChange([o].concat(we(s)))}),te(this,"setFieldsValue",function(n){t.warningUnhooked();var i=t.store;if(n){var o=nn(t.store,n);t.updateStore(o)}t.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),t.notifyWatch()}),te(this,"setFieldValue",function(n,i){t.setFields([{name:n,value:i,errors:[],warnings:[]}])}),te(this,"getDependencyChildrenFields",function(n){var i=new Set,o=[],a=new rn;t.getFieldEntities().forEach(function(c){var d=c.props.dependencies;(d||[]).forEach(function(f){var l=ht(f);a.update(l,function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return u.add(c),u})})});var s=function c(d){var f=a.get(d)||new Set;f.forEach(function(l){if(!i.has(l)){i.add(l);var u=l.getNamePath();l.isFieldDirty()&&u.length&&(o.push(u),c(u))}})};return s(n),o}),te(this,"triggerOnFieldsChange",function(n,i){var o=t.callbacks.onFieldsChange;if(o){var a=t.getFields();if(i){var s=new rn;i.forEach(function(d){var f=d.name,l=d.errors;s.set(f,l)}),a.forEach(function(d){d.errors=s.get(d.name)||d.errors})}var c=a.filter(function(d){var f=d.name;return ln(n,f)});c.length&&o(c,a)}}),te(this,"validateFields",function(n,i){t.warningUnhooked();var o,a;Array.isArray(n)||typeof n=="string"||typeof i=="string"?(o=n,a=i):a=n;var s=!!o,c=s?o.map(ht):[],d=[],f=String(Date.now()),l=new Set,u=a||{},h=u.recursive,v=u.dirty;t.getFieldEntities(!0).forEach(function(m){if(s||c.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)&&!(v&&!m.isFieldDirty())){var x=m.getNamePath();if(l.add(x.join(f)),!s||ln(c,x,h)){var y=m.validateRules(ie({validateMessages:ie(ie({},zv),t.validateMessages)},a));d.push(y.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(E){var _,w=[],S=[];return(_=E.forEach)===null||_===void 0||_.call(E,function(T){var O=T.rule.warningOnly,C=T.errors;O?S.push.apply(S,we(C)):w.push.apply(w,we(C))}),w.length?Promise.reject({name:x,errors:w,warnings:S}):{name:x,errors:w,warnings:S}}))}}});var b=uw(d);t.lastValidatePromise=b,b.catch(function(m){return m}).then(function(m){var x=m.map(function(y){var E=y.name;return E});t.notifyObservers(t.store,x,{type:"validateFinish"}),t.triggerOnFieldsChange(x,m)});var p=b.then(function(){return t.lastValidatePromise===b?Promise.resolve(t.getFieldsValue(c)):Promise.reject([])}).catch(function(m){var x=m.filter(function(y){return y&&y.errors.length});return Promise.reject({values:t.getFieldsValue(c),errorFields:x,outOfDate:t.lastValidatePromise!==b})});p.catch(function(m){return m});var g=c.filter(function(m){return l.has(m.join(f))});return t.triggerOnFieldsChange(g),p}),te(this,"submit",function(){t.warningUnhooked(),t.validateFields().then(function(n){var i=t.callbacks.onFinish;if(i)try{i(n)}catch(o){console.error(o)}}).catch(function(n){var i=t.callbacks.onFinishFailed;i&&i(n)})}),this.forceRootUpdate=r});function Wv(e){var r=M.useRef(),t=M.useState({}),n=ve(t,2),i=n[1];if(!r.current)if(e)r.current=e;else{var o=function(){i({})},a=new fw(o);r.current=a.getForm()}return[r.current]}var cu=M.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),dw=function(r){var t=r.validateMessages,n=r.onFormChange,i=r.onFormFinish,o=r.children,a=M.useContext(cu),s=M.useRef({});return M.createElement(cu.Provider,{value:ie(ie({},a),{},{validateMessages:ie(ie({},a.validateMessages),t),triggerFormChange:function(d,f){n&&n(d,{changedFields:f,forms:s.current}),a.triggerFormChange(d,f)},triggerFormFinish:function(d,f){i&&i(d,{values:f,forms:s.current}),a.triggerFormFinish(d,f)},registerForm:function(d,f){d&&(s.current=ie(ie({},s.current),{},te({},d,f))),a.registerForm(d,f)},unregisterForm:function(d){var f=ie({},s.current);delete f[d],s.current=f,a.unregisterForm(d)}})},o)},hw=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],pw=function(r,t){var n=r.name,i=r.initialValues,o=r.fields,a=r.form,s=r.preserve,c=r.children,d=r.component,f=d===void 0?"form":d,l=r.validateMessages,u=r.validateTrigger,h=u===void 0?"onChange":u,v=r.onValuesChange,b=r.onFieldsChange,p=r.onFinish,g=r.onFinishFailed,m=r.clearOnDestroy,x=Rt(r,hw),y=M.useRef(null),E=M.useContext(cu),_=Wv(a),w=ve(_,1),S=w[0],T=S.getInternalHooks(Vr),O=T.useSubscribe,C=T.setInitialValues,R=T.setCallbacks,j=T.setValidateMessages,A=T.setPreserve,I=T.destroyForm;M.useImperativeHandle(t,function(){return ie(ie({},S),{},{nativeElement:y.current})}),M.useEffect(function(){return E.registerForm(n,S),function(){E.unregisterForm(n)}},[E,S,n]),j(ie(ie({},E.validateMessages),l)),R({onValuesChange:v,onFieldsChange:function(X){if(E.triggerFormChange(n,X),b){for(var W=arguments.length,q=new Array(W>1?W-1:0),N=1;N<W;N++)q[N-1]=arguments[N];b.apply(void 0,[X].concat(q))}},onFinish:function(X){E.triggerFormFinish(n,X),p&&p(X)},onFinishFailed:g}),A(s);var $=M.useRef(null);C(i,!$.current),$.current||($.current=!0),M.useEffect(function(){return function(){return I(m)}},[]);var H,G=typeof c=="function";if(G){var D=S.getFieldsValue(!0);H=c(D,S)}else H=c;O(!G);var F=M.useRef();M.useEffect(function(){ow(F.current||[],o||[])||S.setFields(o||[]),F.current=o},[o,S]);var P=M.useMemo(function(){return ie(ie({},S),{},{validateTrigger:h})},[S,h]),L=M.createElement(mo.Provider,{value:null},M.createElement(bn.Provider,{value:P},H));return f===!1?L:M.createElement(f,tt({},x,{ref:y,onSubmit:function(X){X.preventDefault(),X.stopPropagation(),S.submit()},onReset:function(X){var W;X.preventDefault(),S.resetFields(),(W=x.onReset)===null||W===void 0||W.call(x,X)}}),L)};function gh(e){try{return JSON.stringify(e)}catch{return Math.random()}}var vw=process.env.NODE_ENV!=="production"?function(e){var r=e.join("__RC_FIELD_FORM_SPLIT__"),t=z.useRef(r);ot(t.current===r,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function mw(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=r[0],i=r[1],o=i===void 0?{}:i,a=_E(o)?{form:o}:o,s=a.form,c=z.useState(),d=ve(c,2),f=d[0],l=d[1],u=z.useMemo(function(){return gh(f)},[f]),h=z.useRef(u);h.current=u;var v=z.useContext(bn),b=s||v,p=b&&b._init;process.env.NODE_ENV!=="production"&&ot(r.length===2?s?p:!0:p,"useWatch requires a form instance since it can not auto detect from context.");var g=ht(n),m=z.useRef(g);return m.current=g,vw(g),z.useEffect(function(){if(p){var x=b.getFieldsValue,y=b.getInternalHooks,E=y(Vr),_=E.registerWatch,w=function(C,R){var j=a.preserve?R:C;return typeof n=="function"?n(j):pr(j,m.current)},S=_(function(O,C){var R=w(O,C),j=gh(R);h.current!==j&&(h.current=j,l(R))}),T=w(x(),x(!0));return f!==T&&l(T),S}},[p]),f}var gw=M.forwardRef(pw),wi=gw;wi.FormProvider=dw;wi.Field=Vv;wi.List=lw;wi.useForm=Wv;wi.useWatch=mw;const pi=M.createContext({});process.env.NODE_ENV!=="production"&&(pi.displayName="FormItemInputContext");const yw=({children:e,status:r,override:t})=>{const n=M.useContext(pi),i=M.useMemo(()=>{const o=Object.assign({},n);return t&&delete o.isFormItemInput,r&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[r,t,n]);return M.createElement(pi.Provider,{value:i},e)},bw=M.createContext(void 0),Gv=e=>{const r=z.useContext(gn);return z.useMemo(()=>e?typeof e=="string"?e??r:typeof e=="function"?e(r):r:r,[e,r])},Kv=M.createContext(null),Yv=(e,r)=>{const t=M.useContext(Kv),n=M.useMemo(()=>{if(!t)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=t,s=i==="vertical"?"-vertical-":"-";return _e(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:r==="rtl"})},[e,r,t]);return{compactSize:t?.compactSize,compactDirection:t?.compactDirection,compactItemClassnames:n}},xw=e=>{const{children:r}=e;return M.createElement(Kv.Provider,{value:null},r)},fu=e=>{const{space:r,form:t,children:n}=e;if(n==null)return null;let i=n;return t&&(i=z.createElement(yw,{override:!0,status:!0},i)),r&&(i=z.createElement(xw,null,i)),i},Bu=z.createContext(void 0);process.env.NODE_ENV!=="production"&&(Bu.displayName="zIndexContext");const Er=100,Ew=10,ww=Er*Ew,Sw=ww+Er,Xv={Modal:Er,Drawer:Er,Popover:Er,Popconfirm:Er,Tooltip:Er,Tour:Er,FloatButton:Er},_w={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Cw(e){return e in Xv}const Rw=(e,r)=>{const[,t]=_n(),n=z.useContext(Bu),i=Cw(e);let o;if(r!==void 0)o=[r,r];else{let a=n??0;i?a+=(n?0:t.zIndexPopupBase)+Xv[e]:a+=_w[e],o=[n===void 0?r:a,a]}if(process.env.NODE_ENV!=="production"){const a=vr(e),s=t.zIndexPopupBase+Sw,c=o[0]||0;process.env.NODE_ENV!=="production"&&a(r!==void 0||c<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return o},Ow=(e,r,t)=>t!==void 0?t:`${e}-${r}`;function jw(e){const{sizePopupArrow:r,borderRadiusXS:t,borderRadiusOuter:n}=e,i=r/2,o=0,a=i,s=n*1/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),d=i-t*(1/Math.sqrt(2)),f=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),l=2*i-d,u=f,h=2*i-s,v=c,b=2*i-o,p=a,g=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),m=n*(Math.sqrt(2)-1),x=`polygon(${m}px 100%, 50% ${m}px, ${2*i-m}px 100%, ${m}px 100%)`,y=`path('M ${o} ${a} A ${n} ${n} 0 0 0 ${s} ${c} L ${d} ${f} A ${t} ${t} 0 0 1 ${l} ${u} L ${h} ${v} A ${n} ${n} 0 0 0 ${b} ${p} Z')`;return{arrowShadowWidth:g,arrowPath:y,arrowPolygon:x}}const Tw=(e,r,t)=>{const{sizePopupArrow:n,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:c(n).div(2).equal(),background:r,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ye(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:t,zIndex:0,background:"transparent"}}},Zv=8;function Qv(e){const{contentRadius:r,limitVerticalRadius:t}=e,n=r>12?r+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:t?Zv:n}}function Vi(e,r){return e?r:{}}function Aw(e,r,t){const{componentCls:n,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Tw(e,r,i)),{"&:before":{background:r}})]},Vi(!!c.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Ye(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Vi(!!c.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Ye(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Vi(!!c.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:o},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:o}})),Vi(!!c.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:o},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:o}}))}}function kw(e,r,t,n){if(n===!1)return{adjustX:!1,adjustY:!1};const i=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=r.arrowOffsetHorizontal*2+t,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=r.arrowOffsetVertical*2+t,o.shiftX=!0,o.adjustX=!0;break}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const yh={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Pw={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Nw=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Iw(e){const{arrowWidth:r,autoAdjustOverflow:t,arrowPointAtCenter:n,offset:i,borderRadius:o}=e,a=r/2,s={},c=Qv({contentRadius:o,limitVerticalRadius:!0});return Object.keys(yh).forEach(d=>{const f=n&&Pw[d]||yh[d],l=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(s[d]=l,Nw.has(d)&&(l.autoArrow=!1),d){case"top":case"topLeft":case"topRight":l.offset[1]=-a-i;break;case"bottom":case"bottomLeft":case"bottomRight":l.offset[1]=a+i;break;case"left":case"leftTop":case"leftBottom":l.offset[0]=-a-i;break;case"right":case"rightTop":case"rightBottom":l.offset[0]=a+i;break}if(n)switch(d){case"topLeft":case"bottomLeft":l.offset[0]=-c.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":l.offset[0]=c.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":l.offset[1]=-c.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":l.offset[1]=c.arrowOffsetHorizontal*2-a;break}l.overflow=kw(d,c,r,t),l.htmlRegion="visibleFirst"}),s}function Mw(e){return e&&z.isValidElement(e)&&e.type===z.Fragment}const Lw=(e,r,t)=>z.isValidElement(e)?z.cloneElement(e,typeof t=="function"?t(e.props||{}):t):r;function Jv(e,r){return Lw(e,e,r)}const Dw=e=>({animationDuration:e,animationFillMode:"both"}),Fw=e=>({animationDuration:e,animationFillMode:"both"}),$w=(e,r,t,n,i=!1)=>{const o=i?"&":"";return{[`
183
+ ${o}${e}-enter,
184
+ ${o}${e}-appear
185
+ `]:Object.assign(Object.assign({},Dw(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Fw(n)),{animationPlayState:"paused"}),[`
186
+ ${o}${e}-enter${e}-enter-active,
187
+ ${o}${e}-appear${e}-appear-active
188
+ `]:{animationName:r,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:t,animationPlayState:"running",pointerEvents:"none"}}},Bw=new Qt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),qw=new Qt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),bh=new Qt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),xh=new Qt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),zw=new Qt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Hw=new Qt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Vw=new Qt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Uw=new Qt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Ww=new Qt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Gw=new Qt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Kw=new Qt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Yw=new Qt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Xw={zoom:{inKeyframes:Bw,outKeyframes:qw},"zoom-big":{inKeyframes:bh,outKeyframes:xh},"zoom-big-fast":{inKeyframes:bh,outKeyframes:xh},"zoom-left":{inKeyframes:Vw,outKeyframes:Uw},"zoom-right":{inKeyframes:Ww,outKeyframes:Gw},"zoom-up":{inKeyframes:zw,outKeyframes:Hw},"zoom-down":{inKeyframes:Kw,outKeyframes:Yw}},Zw=(e,r)=>{const{antCls:t}=e,n=`${t}-${r}`,{inKeyframes:i,outKeyframes:o}=Xw[r];return[$w(n,i,o,e.motionDurationFast),{[`
189
+ ${n}-enter,
190
+ ${n}-appear
191
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Qw=e=>{const{calc:r,componentCls:t,tooltipMaxWidth:n,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:c,boxShadowSecondary:d,paddingSM:f,paddingXS:l,arrowOffsetHorizontal:u,sizePopupArrow:h}=e,v=r(a).add(h).add(u).equal(),b=r(a).mul(2).add(h).equal();return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Iu(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:b,minHeight:c,padding:`${Ye(e.calc(f).div(2).equal())} ${Ye(l)}`,color:`var(--ant-tooltip-color, ${i})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:d,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:v},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(a,Zv)}},[`${t}-content`]:{position:"relative"}}),vx(e,(p,{darkColor:g})=>({[`&${t}-${p}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}))),{"&-rtl":{direction:"rtl"}})},Aw(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Jw=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Qv({contentRadius:e.borderRadius,limitVerticalRadius:!0})),jw(Rr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),em=(e,r=!0)=>yi("Tooltip",n=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=n,s=Rr(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[Qw(s),Zw(n,"zoom-big-fast")]},Jw,{resetStyle:!1,injectStyle:r})(e),e2=po.map(e=>`${e}-inverse`);function t2(e,r=!0){return r?[].concat(we(e2),we(po)).includes(e):po.includes(e)}const wt=Math.round;function nl(e,r){const t=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=t.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=r(n[i]||0,t[i]||"",i);return t[3]?n[3]=t[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const Eh=(e,r,t)=>t===0?e:e/100;function Gn(e,r){const t=r||255;return e>t?t:e<0?0:e}class Mo{constructor(r){te(this,"isValid",!0),te(this,"r",0),te(this,"g",0),te(this,"b",0),te(this,"a",1),te(this,"_h",void 0),te(this,"_s",void 0),te(this,"_l",void 0),te(this,"_v",void 0),te(this,"_max",void 0),te(this,"_min",void 0),te(this,"_brightness",void 0);function t(n){return n[0]in r&&n[1]in r&&n[2]in r}if(r)if(typeof r=="string"){let i=function(o){return n.startsWith(o)};const n=r.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):i("rgb")?this.fromRgbString(n):i("hsl")?this.fromHslString(n):(i("hsv")||i("hsb"))&&this.fromHsvString(n)}else if(r instanceof Mo)this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this._h=r._h,this._s=r._s,this._l=r._l,this._v=r._v;else if(t("rgb"))this.r=Gn(r.r),this.g=Gn(r.g),this.b=Gn(r.b),this.a=typeof r.a=="number"?Gn(r.a,1):1;else if(t("hsl"))this.fromHsl(r);else if(t("hsv"))this.fromHsv(r);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(r))}setR(r){return this._sc("r",r)}setG(r){return this._sc("g",r)}setB(r){return this._sc("b",r)}setA(r){return this._sc("a",r,1)}setHue(r){const t=this.toHsv();return t.h=r,this._c(t)}getLuminance(){function r(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const t=r(this.r),n=r(this.g),i=r(this.b);return .2126*t+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){const r=this.getMax()-this.getMin();r===0?this._h=0:this._h=wt(60*(this.r===this.getMax()?(this.g-this.b)/r+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/r+2:(this.r-this.g)/r+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const r=this.getMax()-this.getMin();r===0?this._s=0:this._s=r/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(r=10){const t=this.getHue(),n=this.getSaturation();let i=this.getLightness()-r/100;return i<0&&(i=0),this._c({h:t,s:n,l:i,a:this.a})}lighten(r=10){const t=this.getHue(),n=this.getSaturation();let i=this.getLightness()+r/100;return i>1&&(i=1),this._c({h:t,s:n,l:i,a:this.a})}mix(r,t=50){const n=this._c(r),i=t/100,o=s=>(n[s]-this[s])*i+this[s],a={r:wt(o("r")),g:wt(o("g")),b:wt(o("b")),a:wt(o("a")*100)/100};return this._c(a)}tint(r=10){return this.mix({r:255,g:255,b:255,a:1},r)}shade(r=10){return this.mix({r:0,g:0,b:0,a:1},r)}onBackground(r){const t=this._c(r),n=this.a+t.a*(1-this.a),i=o=>wt((this[o]*this.a+t[o]*t.a*(1-this.a))/n);return this._c({r:i("r"),g:i("g"),b:i("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(r){return this.r===r.r&&this.g===r.g&&this.b===r.b&&this.a===r.a}clone(){return this._c(this)}toHexString(){let r="#";const t=(this.r||0).toString(16);r+=t.length===2?t:"0"+t;const n=(this.g||0).toString(16);r+=n.length===2?n:"0"+n;const i=(this.b||0).toString(16);if(r+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=wt(this.a*255).toString(16);r+=o.length===2?o:"0"+o}return r}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const r=this.getHue(),t=wt(this.getSaturation()*100),n=wt(this.getLightness()*100);return this.a!==1?`hsla(${r},${t}%,${n}%,${this.a})`:`hsl(${r},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(r,t,n){const i=this.clone();return i[r]=Gn(t,n),i}_c(r){return new this.constructor(r)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(r){const t=r.replace("#","");function n(i,o){return parseInt(t[i]+t[o||i],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:r,s:t,l:n,a:i}){if(this._h=r%360,this._s=t,this._l=n,this.a=typeof i=="number"?i:1,t<=0){const u=wt(n*255);this.r=u,this.g=u,this.b=u}let o=0,a=0,s=0;const c=r/60,d=(1-Math.abs(2*n-1))*t,f=d*(1-Math.abs(c%2-1));c>=0&&c<1?(o=d,a=f):c>=1&&c<2?(o=f,a=d):c>=2&&c<3?(a=d,s=f):c>=3&&c<4?(a=f,s=d):c>=4&&c<5?(o=f,s=d):c>=5&&c<6&&(o=d,s=f);const l=n-d/2;this.r=wt((o+l)*255),this.g=wt((a+l)*255),this.b=wt((s+l)*255)}fromHsv({h:r,s:t,v:n,a:i}){this._h=r%360,this._s=t,this._v=n,this.a=typeof i=="number"?i:1;const o=wt(n*255);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=r/60,s=Math.floor(a),c=a-s,d=wt(n*(1-t)*255),f=wt(n*(1-t*c)*255),l=wt(n*(1-t*(1-c))*255);switch(s){case 0:this.g=l,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=l;break;case 3:this.r=d,this.g=f;break;case 4:this.r=l,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(r){const t=nl(r,Eh);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(r){const t=nl(r,Eh);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(r){const t=nl(r,(n,i)=>i.includes("%")?wt(n/100*255):n);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var r2=["b"],n2=["v"],il=function(r){return Math.round(Number(r||0))},i2=function(r){if(r instanceof Mo)return r;if(r&&je(r)==="object"&&"h"in r&&"b"in r){var t=r,n=t.b,i=Rt(t,r2);return ie(ie({},i),{},{v:n})}return typeof r=="string"&&/hsb/.test(r)?r.replace(/hsb/,"hsv"):r},Fr=(function(e){$r(t,e);var r=Br(t);function t(n){return St(this,t),r.call(this,i2(n))}return _t(t,[{key:"toHsbString",value:function(){var i=this.toHsb(),o=il(i.s*100),a=il(i.b*100),s=il(i.h),c=i.a,d="hsb(".concat(s,", ").concat(o,"%, ").concat(a,"%)"),f="hsba(".concat(s,", ").concat(o,"%, ").concat(a,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?d:f}},{key:"toHsb",value:function(){var i=this.toHsv(),o=i.v,a=Rt(i,n2);return ie(ie({},a),{},{b:o,a:this.a})}}]),t})(Mo),o2="rc-color-picker",un=function(r){return r instanceof Fr?r:new Fr(r)},a2=un("#1677ff"),tm=function(r){var t=r.offset,n=r.targetRef,i=r.containerRef,o=r.color,a=r.type,s=i.current.getBoundingClientRect(),c=s.width,d=s.height,f=n.current.getBoundingClientRect(),l=f.width,u=f.height,h=l/2,v=u/2,b=(t.x+h)/c,p=1-(t.y+v)/d,g=o.toHsb(),m=b,x=(t.x+h)/c*360;if(a)switch(a){case"hue":return un(ie(ie({},g),{},{h:x<=0?0:x}));case"alpha":return un(ie(ie({},g),{},{a:m<=0?0:m}))}return un({h:g.h,s:b<=0?0:b,b:p>=1?1:p,a:g.a})},rm=function(r,t){var n=r.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:r.a*100,y:50};default:return{x:n.s*100,y:(1-n.b)*100}}},s2=function(r){var t=r.color,n=r.prefixCls,i=r.className,o=r.style,a=r.onClick,s="".concat(n,"-color-block");return z.createElement("div",{className:_e(s,i),style:o,onClick:a},z.createElement("div",{className:"".concat(s,"-inner"),style:{background:t}}))};function l2(e){var r="touches"in e?e.touches[0]:e,t=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,n=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:r.pageX-t,pageY:r.pageY-n}}function nm(e){var r=e.targetRef,t=e.containerRef,n=e.direction,i=e.onDragChange,o=e.onDragChangeComplete,a=e.calculate,s=e.color,c=e.disabledDrag,d=z.useState({x:0,y:0}),f=ve(d,2),l=f[0],u=f[1],h=z.useRef(null),v=z.useRef(null);z.useEffect(function(){u(a())},[s]),z.useEffect(function(){return function(){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",v.current),h.current=null,v.current=null}},[]);var b=function(y){var E=l2(y),_=E.pageX,w=E.pageY,S=t.current.getBoundingClientRect(),T=S.x,O=S.y,C=S.width,R=S.height,j=r.current.getBoundingClientRect(),A=j.width,I=j.height,$=A/2,H=I/2,G=Math.max(0,Math.min(_-T,C))-$,D=Math.max(0,Math.min(w-O,R))-H,F={x:G,y:n==="x"?l.y:D};if(A===0&&I===0||A!==I)return!1;i?.(F)},p=function(y){y.preventDefault(),b(y)},g=function(y){y.preventDefault(),document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",v.current),h.current=null,v.current=null,o?.()},m=function(y){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",v.current),!c&&(b(y),document.addEventListener("mousemove",p),document.addEventListener("mouseup",g),document.addEventListener("touchmove",p),document.addEventListener("touchend",g),h.current=p,v.current=g)};return[l,m]}var im=function(r){var t=r.size,n=t===void 0?"default":t,i=r.color,o=r.prefixCls;return z.createElement("div",{className:_e("".concat(o,"-handler"),te({},"".concat(o,"-handler-sm"),n==="small")),style:{backgroundColor:i}})},om=function(r){var t=r.children,n=r.style,i=r.prefixCls;return z.createElement("div",{className:"".concat(i,"-palette"),style:ie({position:"relative"},n)},t)},am=z.forwardRef(function(e,r){var t=e.children,n=e.x,i=e.y;return z.createElement("div",{ref:r,style:{position:"absolute",left:"".concat(n,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},t)}),u2=function(r){var t=r.color,n=r.onChange,i=r.prefixCls,o=r.onChangeComplete,a=r.disabled,s=z.useRef(),c=z.useRef(),d=z.useRef(t),f=jt(function(b){var p=tm({offset:b,targetRef:c,containerRef:s,color:t});d.current=p,n(p)}),l=nm({color:t,containerRef:s,targetRef:c,calculate:function(){return rm(t)},onDragChange:f,onDragChangeComplete:function(){return o?.(d.current)},disabledDrag:a}),u=ve(l,2),h=u[0],v=u[1];return z.createElement("div",{ref:s,className:"".concat(i,"-select"),onMouseDown:v,onTouchStart:v},z.createElement(om,{prefixCls:i},z.createElement(am,{x:h.x,y:h.y,ref:c},z.createElement(im,{color:t.toRgbString(),prefixCls:i})),z.createElement("div",{className:"".concat(i,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},c2=function(r,t){var n=Gr(r,{value:t}),i=ve(n,2),o=i[0],a=i[1],s=z.useMemo(function(){return un(o)},[o]);return[s,a]},f2=function(r){var t=r.colors,n=r.children,i=r.direction,o=i===void 0?"to right":i,a=r.type,s=r.prefixCls,c=z.useMemo(function(){return t.map(function(d,f){var l=un(d);return a==="alpha"&&f===t.length-1&&(l=new Fr(l.setA(1))),l.toRgbString()}).join(",")},[t,a]);return z.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(c,")")}},n)},d2=function(r){var t=r.prefixCls,n=r.colors,i=r.disabled,o=r.onChange,a=r.onChangeComplete,s=r.color,c=r.type,d=z.useRef(),f=z.useRef(),l=z.useRef(s),u=function(E){return c==="hue"?E.getHue():E.a*100},h=jt(function(y){var E=tm({offset:y,targetRef:f,containerRef:d,color:s,type:c});l.current=E,o(u(E))}),v=nm({color:s,targetRef:f,containerRef:d,calculate:function(){return rm(s,c)},onDragChange:h,onDragChangeComplete:function(){a(u(l.current))},direction:"x",disabledDrag:i}),b=ve(v,2),p=b[0],g=b[1],m=z.useMemo(function(){if(c==="hue"){var y=s.toHsb();y.s=1,y.b=1,y.a=1;var E=new Fr(y);return E}return s},[s,c]),x=z.useMemo(function(){return n.map(function(y){return"".concat(y.color," ").concat(y.percent,"%")})},[n]);return z.createElement("div",{ref:d,className:_e("".concat(t,"-slider"),"".concat(t,"-slider-").concat(c)),onMouseDown:g,onTouchStart:g},z.createElement(om,{prefixCls:t},z.createElement(am,{x:p.x,y:p.y,ref:f},z.createElement(im,{size:"small",color:m.toHexString(),prefixCls:t})),z.createElement(f2,{colors:x,type:c,prefixCls:t})))};function h2(e){return M.useMemo(function(){var r=e||{},t=r.slider;return[t||d2]},[e])}var p2=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],v2=z.forwardRef(function(e,r){var t=e.value,n=e.defaultValue,i=e.prefixCls,o=i===void 0?o2:i,a=e.onChange,s=e.onChangeComplete,c=e.className,d=e.style,f=e.panelRender,l=e.disabledAlpha,u=l===void 0?!1:l,h=e.disabled,v=h===void 0?!1:h,b=e.components,p=h2(b),g=ve(p,1),m=g[0],x=c2(n||a2,t),y=ve(x,2),E=y[0],_=y[1],w=z.useMemo(function(){return E.setA(1).toRgbString()},[E]),S=function(D,F){t||_(D),a?.(D,F)},T=function(D){return new Fr(E.setHue(D))},O=function(D){return new Fr(E.setA(D/100))},C=function(D){S(T(D),{type:"hue",value:D})},R=function(D){S(O(D),{type:"alpha",value:D})},j=function(D){s&&s(T(D))},A=function(D){s&&s(O(D))},I=_e("".concat(o,"-panel"),c,te({},"".concat(o,"-panel-disabled"),v)),$={prefixCls:o,disabled:v,color:E},H=z.createElement(z.Fragment,null,z.createElement(u2,tt({onChange:S},$,{onChangeComplete:s})),z.createElement("div",{className:"".concat(o,"-slider-container")},z.createElement("div",{className:_e("".concat(o,"-slider-group"),te({},"".concat(o,"-slider-group-disabled-alpha"),u))},z.createElement(m,tt({},$,{type:"hue",colors:p2,min:0,max:359,value:E.getHue(),onChange:C,onChangeComplete:j})),!u&&z.createElement(m,tt({},$,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:w}],min:0,max:100,value:E.a*100,onChange:R,onChangeComplete:A}))),z.createElement(s2,{color:E.toRgbString(),prefixCls:o})));return z.createElement("div",{className:I,style:d,ref:r},typeof f=="function"?f(H):H)});process.env.NODE_ENV!=="production"&&(v2.displayName="ColorPicker");const m2=(e,r)=>e?.replace(/[^\w/]/g,"").slice(0,r?8:6)||"",g2=(e,r)=>e?m2(e,r):"";let wh=(function(){function e(r){St(this,e);var t;if(this.cleared=!1,r instanceof e){this.metaColor=r.metaColor.clone(),this.colors=(t=r.colors)===null||t===void 0?void 0:t.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=r.cleared;return}const n=Array.isArray(r);n&&r.length?(this.colors=r.map(({color:i,percent:o})=>({color:new e(i),percent:o})),this.metaColor=new Fr(this.colors[0].color.metaColor)):this.metaColor=new Fr(n?"":r),(!r||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return _t(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return g2(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:t}=this;return t?`linear-gradient(90deg, ${t.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(t){return!t||this.isGradient()!==t.isGradient()?!1:this.isGradient()?this.colors.length===t.colors.length&&this.colors.every((n,i)=>{const o=t.colors[i];return n.percent===o.percent&&n.color.equals(o.color)}):this.toHexString()===t.toHexString()}}])})();const y2=e=>e instanceof wh?e:new wh(e);function sm(e,r){const t=t2(r),n=_e({[`${e}-${r}`]:r&&t}),i={},o={},a=y2(r).toRgb(),c=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return r&&!t&&(i.background=r,i["--ant-tooltip-color"]=c,o["--antd-arrow-background-color"]=r),{className:n,overlayStyle:i,arrowStyle:o}}const b2=e=>{const{prefixCls:r,className:t,placement:n="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=M.useContext(mr),c=s("tooltip",r),[d,f,l]=em(c),u=sm(c,o),h=u.arrowStyle,v=Object.assign(Object.assign({},a),u.overlayStyle),b=_e(f,l,c,`${c}-pure`,`${c}-placement-${n}`,t,u.className);return d(M.createElement("div",{className:b,style:h},M.createElement("div",{className:`${c}-arrow`}),M.createElement(Pv,Object.assign({},e,{className:f,prefixCls:c,overlayInnerStyle:v}),i)))};var x2=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};const E2=M.forwardRef((e,r)=>{var t,n;const{prefixCls:i,openClassName:o,getTooltipContainer:a,color:s,overlayInnerStyle:c,children:d,afterOpenChange:f,afterVisibleChange:l,destroyTooltipOnHide:u,destroyOnHidden:h,arrow:v=!0,title:b,overlay:p,builtinPlacements:g,arrowPointAtCenter:m=!1,autoAdjustOverflow:x=!0,motion:y,getPopupContainer:E,placement:_="top",mouseEnterDelay:w=.1,mouseLeaveDelay:S=.1,overlayStyle:T,rootClassName:O,overlayClassName:C,styles:R,classNames:j}=e,A=x2(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),I=!!v,[,$]=_n(),{getPopupContainer:H,getPrefixCls:G,direction:D,className:F,style:P,classNames:L,styles:B}=No("tooltip"),X=vr("Tooltip"),W=M.useRef(null),q=()=>{var ke;(ke=W.current)===null||ke===void 0||ke.forceAlign()};M.useImperativeHandle(r,()=>{var ke,Fe;return{forceAlign:q,forcePopupAlign:()=>{X.deprecated(!1,"forcePopupAlign","forceAlign"),q()},nativeElement:(ke=W.current)===null||ke===void 0?void 0:ke.nativeElement,popupElement:(Fe=W.current)===null||Fe===void 0?void 0:Fe.popupElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(([ke,Fe])=>{X.deprecated(!(ke in e),ke,Fe)}),process.env.NODE_ENV!=="production"&&X(!u||typeof u=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&X(!v||typeof v=="boolean"||!("arrowPointAtCenter"in v),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[N,V]=Gr(!1,{value:(t=e.open)!==null&&t!==void 0?t:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),U=!b&&!p&&b!==0,K=ke=>{var Fe,Pe;V(U?!1:ke),U||((Fe=e.onOpenChange)===null||Fe===void 0||Fe.call(e,ke),(Pe=e.onVisibleChange)===null||Pe===void 0||Pe.call(e,ke))},J=M.useMemo(()=>{var ke,Fe;let Pe=m;return typeof v=="object"&&(Pe=(Fe=(ke=v.pointAtCenter)!==null&&ke!==void 0?ke:v.arrowPointAtCenter)!==null&&Fe!==void 0?Fe:m),g||Iw({arrowPointAtCenter:Pe,autoAdjustOverflow:x,arrowWidth:I?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS})},[m,v,g,$]),ne=M.useMemo(()=>b===0?b:p||b||"",[p,b]),ce=M.createElement(fu,{space:!0},typeof ne=="function"?ne():ne),re=G("tooltip",i),de=G(),oe=e["data-popover-inject"];let se=N;!("open"in e)&&!("visible"in e)&&U&&(se=!1);const Q=M.isValidElement(d)&&!Mw(d)?d:M.createElement("span",null,d),ee=Q.props,ue=!ee.className||typeof ee.className=="string"?_e(ee.className,o||`${re}-open`):ee.className,[le,ae,pe]=em(re,!oe),fe=sm(re,s),ge=fe.arrowStyle,Re=_e(C,{[`${re}-rtl`]:D==="rtl"},fe.className,O,ae,pe,F,L.root,j?.root),qe=_e(L.body,j?.body),[Ce,Ke]=Rw("Tooltip",A.zIndex),Ae=M.createElement(EE,Object.assign({},A,{zIndex:Ce,showArrow:I,placement:_,mouseEnterDelay:w,mouseLeaveDelay:S,prefixCls:re,classNames:{root:Re,body:qe},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ge),B.root),P),T),R?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},B.body),c),R?.body),fe.overlayStyle)},getTooltipContainer:E||a||H,ref:W,builtinPlacements:J,overlay:ce,visible:se,onVisibleChange:K,afterVisibleChange:f??l,arrowContent:M.createElement("span",{className:`${re}-arrow-content`}),motion:{motionName:Ow(de,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:h??!!u}),se?Jv(Q,{className:ue}):Q);return le(M.createElement(Bu.Provider,{value:Ke},Ae))}),Si=E2;process.env.NODE_ENV!=="production"&&(Si.displayName="Tooltip");Si._InternalPanelDoNotUseOrYouWillBeFired=b2;var w2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},S2=function(r,t){return M.createElement(Cr,tt({},r,{ref:t,icon:w2}))},lm=M.forwardRef(S2);process.env.NODE_ENV!=="production"&&(lm.displayName="EnterOutlined");var Sh={ENTER:13,ESC:27};function _2(e){return!!(e.addonBefore||e.addonAfter)}function C2(e){return!!(e.prefix||e.suffix||e.allowClear)}function _h(e,r,t){var n=r.cloneNode(!0),i=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=t,typeof r.selectionStart=="number"&&typeof r.selectionEnd=="number"&&(n.selectionStart=r.selectionStart,n.selectionEnd=r.selectionEnd),n.setSelectionRange=function(){r.setSelectionRange.apply(r,arguments)},i}function go(e,r,t,n){if(t){var i=r;if(r.type==="click"){i=_h(r,e,""),t(i);return}if(e.type!=="file"&&n!==void 0){i=_h(r,e,n),t(i);return}t(i)}}function um(e,r){if(e){e.focus(r);var t=r||{},n=t.cursor;if(n){var i=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var cm=z.forwardRef(function(e,r){var t,n,i,o=e.inputElement,a=e.children,s=e.prefixCls,c=e.prefix,d=e.suffix,f=e.addonBefore,l=e.addonAfter,u=e.className,h=e.style,v=e.disabled,b=e.readOnly,p=e.focused,g=e.triggerFocus,m=e.allowClear,x=e.value,y=e.handleReset,E=e.hidden,_=e.classes,w=e.classNames,S=e.dataAttrs,T=e.styles,O=e.components,C=e.onClear,R=a??o,j=O?.affixWrapper||"span",A=O?.groupWrapper||"span",I=O?.wrapper||"span",$=O?.groupAddon||"span",H=z.useRef(null),G=function(de){var oe;(oe=H.current)!==null&&oe!==void 0&&oe.contains(de.target)&&g?.()},D=C2(e),F=z.cloneElement(R,{value:x,className:_e((t=R.props)===null||t===void 0?void 0:t.className,!D&&w?.variant)||null}),P=z.useRef(null);if(z.useImperativeHandle(r,function(){return{nativeElement:P.current||H.current}}),D){var L=null;if(m){var B=!v&&!b&&x,X="".concat(s,"-clear-icon"),W=je(m)==="object"&&m!==null&&m!==void 0&&m.clearIcon?m.clearIcon:"✖";L=z.createElement("button",{type:"button",tabIndex:-1,onClick:function(de){y?.(de),C?.()},onMouseDown:function(de){return de.preventDefault()},className:_e(X,te(te({},"".concat(X,"-hidden"),!B),"".concat(X,"-has-suffix"),!!d))},W)}var q="".concat(s,"-affix-wrapper"),N=_e(q,te(te(te(te(te({},"".concat(s,"-disabled"),v),"".concat(q,"-disabled"),v),"".concat(q,"-focused"),p),"".concat(q,"-readonly"),b),"".concat(q,"-input-with-clear-btn"),d&&m&&x),_?.affixWrapper,w?.affixWrapper,w?.variant),V=(d||m)&&z.createElement("span",{className:_e("".concat(s,"-suffix"),w?.suffix),style:T?.suffix},L,d);F=z.createElement(j,tt({className:N,style:T?.affixWrapper,onClick:G},S?.affixWrapper,{ref:H}),c&&z.createElement("span",{className:_e("".concat(s,"-prefix"),w?.prefix),style:T?.prefix},c),F,V)}if(_2(e)){var U="".concat(s,"-group"),K="".concat(U,"-addon"),J="".concat(U,"-wrapper"),ne=_e("".concat(s,"-wrapper"),U,_?.wrapper,w?.wrapper),ce=_e(J,te({},"".concat(J,"-disabled"),v),_?.group,w?.groupWrapper);F=z.createElement(A,{className:ce,ref:P},z.createElement(I,{className:ne},f&&z.createElement($,{className:K},f),F,l&&z.createElement($,{className:K},l)))}return z.cloneElement(F,{className:_e((n=F.props)===null||n===void 0?void 0:n.className,u)||null,style:ie(ie({},(i=F.props)===null||i===void 0?void 0:i.style),h),hidden:E})}),R2=["show"];function fm(e,r){return M.useMemo(function(){var t={};r&&(t.show=je(r)==="object"&&r.formatter?r.formatter:!!r),t=ie(ie({},t),e);var n=t,i=n.show,o=Rt(n,R2);return ie(ie({},o),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:o.strategy||function(a){return a.length}})},[e,r])}var O2=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],j2=z.forwardRef(function(e,r){var t=e.autoComplete,n=e.onChange,i=e.onFocus,o=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,c=e.onKeyUp,d=e.prefixCls,f=d===void 0?"rc-input":d,l=e.disabled,u=e.htmlSize,h=e.className,v=e.maxLength,b=e.suffix,p=e.showCount,g=e.count,m=e.type,x=m===void 0?"text":m,y=e.classes,E=e.classNames,_=e.styles,w=e.onCompositionStart,S=e.onCompositionEnd,T=Rt(e,O2),O=z.useState(!1),C=ve(O,2),R=C[0],j=C[1],A=z.useRef(!1),I=z.useRef(!1),$=z.useRef(null),H=z.useRef(null),G=function(fe){$.current&&um($.current,fe)},D=Gr(e.defaultValue,{value:e.value}),F=ve(D,2),P=F[0],L=F[1],B=P==null?"":String(P),X=z.useState(null),W=ve(X,2),q=W[0],N=W[1],V=fm(g,p),U=V.max||v,K=V.strategy(B),J=!!U&&K>U;z.useImperativeHandle(r,function(){var pe;return{focus:G,blur:function(){var ge;(ge=$.current)===null||ge===void 0||ge.blur()},setSelectionRange:function(ge,Re,qe){var Ce;(Ce=$.current)===null||Ce===void 0||Ce.setSelectionRange(ge,Re,qe)},select:function(){var ge;(ge=$.current)===null||ge===void 0||ge.select()},input:$.current,nativeElement:((pe=H.current)===null||pe===void 0?void 0:pe.nativeElement)||$.current}}),z.useEffect(function(){I.current&&(I.current=!1),j(function(pe){return pe&&l?!1:pe})},[l]);var ne=function(fe,ge,Re){var qe=ge;if(!A.current&&V.exceedFormatter&&V.max&&V.strategy(ge)>V.max){if(qe=V.exceedFormatter(ge,{max:V.max}),ge!==qe){var Ce,Ke;N([((Ce=$.current)===null||Ce===void 0?void 0:Ce.selectionStart)||0,((Ke=$.current)===null||Ke===void 0?void 0:Ke.selectionEnd)||0])}}else if(Re.source==="compositionEnd")return;L(qe),$.current&&go($.current,fe,n,qe)};z.useEffect(function(){if(q){var pe;(pe=$.current)===null||pe===void 0||pe.setSelectionRange.apply(pe,we(q))}},[q]);var ce=function(fe){ne(fe,fe.target.value,{source:"change"})},re=function(fe){A.current=!1,ne(fe,fe.currentTarget.value,{source:"compositionEnd"}),S?.(fe)},de=function(fe){a&&fe.key==="Enter"&&!I.current&&(I.current=!0,a(fe)),s?.(fe)},oe=function(fe){fe.key==="Enter"&&(I.current=!1),c?.(fe)},se=function(fe){j(!0),i?.(fe)},Q=function(fe){I.current&&(I.current=!1),j(!1),o?.(fe)},ee=function(fe){L(""),G(),$.current&&go($.current,fe,n)},ue=J&&"".concat(f,"-out-of-range"),le=function(){var fe=Mp(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return z.createElement("input",tt({autoComplete:t},fe,{onChange:ce,onFocus:se,onBlur:Q,onKeyDown:de,onKeyUp:oe,className:_e(f,te({},"".concat(f,"-disabled"),l),E?.input),style:_?.input,ref:$,size:u,type:x,onCompositionStart:function(Re){A.current=!0,w?.(Re)},onCompositionEnd:re}))},ae=function(){var fe=Number(U)>0;if(b||V.show){var ge=V.showFormatter?V.showFormatter({value:B,count:K,maxLength:U}):"".concat(K).concat(fe?" / ".concat(U):"");return z.createElement(z.Fragment,null,V.show&&z.createElement("span",{className:_e("".concat(f,"-show-count-suffix"),te({},"".concat(f,"-show-count-has-suffix"),!!b),E?.count),style:ie({},_?.count)},ge),b)}return null};return z.createElement(cm,tt({},T,{prefixCls:f,className:_e(h,ue),handleReset:ee,value:B,focused:R,triggerFocus:G,suffix:ae(),disabled:l,classes:y,classNames:E,styles:_,ref:H}),le())}),T2=`
192
+ min-height:0 !important;
193
+ max-height:none !important;
194
+ height:0 !important;
195
+ visibility:hidden !important;
196
+ overflow:hidden !important;
197
+ position:absolute !important;
198
+ z-index:-1000 !important;
199
+ top:0 !important;
200
+ right:0 !important;
201
+ pointer-events: none !important;
202
+ `,A2=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ol={},Bt;function k2(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(r&&ol[t])return ol[t];var n=window.getComputedStyle(e),i=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=A2.map(function(d){return"".concat(d,":").concat(n.getPropertyValue(d))}).join(";"),c={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:i};return r&&t&&(ol[t]=c),c}function P2(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Bt||(Bt=document.createElement("textarea"),Bt.setAttribute("tab-index","-1"),Bt.setAttribute("aria-hidden","true"),Bt.setAttribute("name","hiddenTextarea"),document.body.appendChild(Bt)),e.getAttribute("wrap")?Bt.setAttribute("wrap",e.getAttribute("wrap")):Bt.removeAttribute("wrap");var i=k2(e,r),o=i.paddingSize,a=i.borderSize,s=i.boxSizing,c=i.sizingStyle;Bt.setAttribute("style","".concat(c,";").concat(T2)),Bt.value=e.value||e.placeholder||"";var d=void 0,f=void 0,l,u=Bt.scrollHeight;if(s==="border-box"?u+=a:s==="content-box"&&(u-=o),t!==null||n!==null){Bt.value=" ";var h=Bt.scrollHeight-o;t!==null&&(d=h*t,s==="border-box"&&(d=d+o+a),u=Math.max(d,u)),n!==null&&(f=h*n,s==="border-box"&&(f=f+o+a),l=u>f?"":"hidden",u=Math.min(f,u))}var v={height:u,overflowY:l,resize:"none"};return d&&(v.minHeight=d),f&&(v.maxHeight=f),v}var N2=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],al=0,sl=1,ll=2,I2=M.forwardRef(function(e,r){var t=e,n=t.prefixCls,i=t.defaultValue,o=t.value,a=t.autoSize,s=t.onResize,c=t.className,d=t.style,f=t.disabled,l=t.onChange,u=t.onInternalAutoSize,h=Rt(t,N2),v=Gr(i,{value:o,postState:function(X){return X??""}}),b=ve(v,2),p=b[0],g=b[1],m=function(X){g(X.target.value),l?.(X)},x=M.useRef();M.useImperativeHandle(r,function(){return{textArea:x.current}});var y=M.useMemo(function(){return a&&je(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),E=ve(y,2),_=E[0],w=E[1],S=!!a,T=M.useState(ll),O=ve(T,2),C=O[0],R=O[1],j=M.useState(),A=ve(j,2),I=A[0],$=A[1],H=function(){R(al),process.env.NODE_ENV==="test"&&u?.()};st(function(){S&&H()},[o,_,w,S]),st(function(){if(C===al)R(sl);else if(C===sl){var B=P2(x.current,!1,_,w);R(ll),$(B)}},[C]);var G=M.useRef(),D=function(){yn.cancel(G.current)},F=function(X){C===ll&&(s?.(X),a&&(D(),G.current=yn(function(){H()})))};M.useEffect(function(){return D},[]);var P=S?I:null,L=ie(ie({},d),P);return(C===al||C===sl)&&(L.overflowY="hidden",L.overflowX="hidden"),M.createElement(wn,{onResize:F,disabled:!(a||s)},M.createElement("textarea",tt({},h,{ref:x,style:L,className:_e(n,c,te({},"".concat(n,"-disabled"),f)),disabled:f,value:p,onChange:m})))}),M2=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],L2=z.forwardRef(function(e,r){var t,n=e.defaultValue,i=e.value,o=e.onFocus,a=e.onBlur,s=e.onChange,c=e.allowClear,d=e.maxLength,f=e.onCompositionStart,l=e.onCompositionEnd,u=e.suffix,h=e.prefixCls,v=h===void 0?"rc-textarea":h,b=e.showCount,p=e.count,g=e.className,m=e.style,x=e.disabled,y=e.hidden,E=e.classNames,_=e.styles,w=e.onResize,S=e.onClear,T=e.onPressEnter,O=e.readOnly,C=e.autoSize,R=e.onKeyDown,j=Rt(e,M2),A=Gr(n,{value:i,defaultValue:n}),I=ve(A,2),$=I[0],H=I[1],G=$==null?"":String($),D=z.useState(!1),F=ve(D,2),P=F[0],L=F[1],B=z.useRef(!1),X=z.useState(null),W=ve(X,2),q=W[0],N=W[1],V=z.useRef(null),U=z.useRef(null),K=function(){var Ee;return(Ee=U.current)===null||Ee===void 0?void 0:Ee.textArea},J=function(){K().focus()};z.useImperativeHandle(r,function(){var Pe;return{resizableTextArea:U.current,focus:J,blur:function(){K().blur()},nativeElement:((Pe=V.current)===null||Pe===void 0?void 0:Pe.nativeElement)||K()}}),z.useEffect(function(){L(function(Pe){return!x&&Pe})},[x]);var ne=z.useState(null),ce=ve(ne,2),re=ce[0],de=ce[1];z.useEffect(function(){if(re){var Pe;(Pe=K()).setSelectionRange.apply(Pe,we(re))}},[re]);var oe=fm(p,b),se=(t=oe.max)!==null&&t!==void 0?t:d,Q=Number(se)>0,ee=oe.strategy(G),ue=!!se&&ee>se,le=function(Ee,Ve){var xe=Ve;!B.current&&oe.exceedFormatter&&oe.max&&oe.strategy(Ve)>oe.max&&(xe=oe.exceedFormatter(Ve,{max:oe.max}),Ve!==xe&&de([K().selectionStart||0,K().selectionEnd||0])),H(xe),go(Ee.currentTarget,Ee,s,xe)},ae=function(Ee){B.current=!0,f?.(Ee)},pe=function(Ee){B.current=!1,le(Ee,Ee.currentTarget.value),l?.(Ee)},fe=function(Ee){le(Ee,Ee.target.value)},ge=function(Ee){Ee.key==="Enter"&&T&&T(Ee),R?.(Ee)},Re=function(Ee){L(!0),o?.(Ee)},qe=function(Ee){L(!1),a?.(Ee)},Ce=function(Ee){H(""),J(),go(K(),Ee,s)},Ke=u,Ae;oe.show&&(oe.showFormatter?Ae=oe.showFormatter({value:G,count:ee,maxLength:se}):Ae="".concat(ee).concat(Q?" / ".concat(se):""),Ke=z.createElement(z.Fragment,null,Ke,z.createElement("span",{className:_e("".concat(v,"-data-count"),E?.count),style:_?.count},Ae)));var ke=function(Ee){var Ve;w?.(Ee),(Ve=K())!==null&&Ve!==void 0&&Ve.style.height&&N(!0)},Fe=!C&&!b&&!c;return z.createElement(cm,{ref:V,value:G,allowClear:c,handleReset:Ce,suffix:Ke,prefixCls:v,classNames:ie(ie({},E),{},{affixWrapper:_e(E?.affixWrapper,te(te({},"".concat(v,"-show-count"),b),"".concat(v,"-textarea-allow-clear"),c))}),disabled:x,focused:P,className:_e(g,ue&&"".concat(v,"-out-of-range")),style:ie(ie({},m),q&&!Fe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ae=="string"?Ae:void 0}},hidden:y,readOnly:O,onClear:S},z.createElement(I2,tt({},j,{autoSize:C,maxLength:d,onKeyDown:ge,onChange:fe,onFocus:Re,onBlur:qe,onCompositionStart:ae,onCompositionEnd:pe,className:_e(E?.textarea),style:ie(ie({},_?.textarea),{},{resize:m?.resize}),disabled:x,prefixCls:v,onResize:ke,ref:U,readOnly:O})))}),D2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},F2=function(r,t){return M.createElement(Cr,tt({},r,{ref:t,icon:D2}))},dm=M.forwardRef(F2);process.env.NODE_ENV!=="production"&&(dm.displayName="CloseCircleFilled");const hm=e=>{let r;return typeof e=="object"&&e?.clearIcon?r=e:e&&(r={clearIcon:z.createElement(dm,null)}),r};function du(e,r,t){return _e({[`${e}-status-success`]:r==="success",[`${e}-status-warning`]:r==="warning",[`${e}-status-error`]:r==="error",[`${e}-status-validating`]:r==="validating",[`${e}-has-feedback`]:t})}const pm=(e,r)=>r||e,vm=e=>{const[,,,,r]=_n();return r?`${e}-css-var`:""},mm=(e,r,t=void 0)=>{var n,i;const{variant:o,[e]:a}=M.useContext(mr),s=M.useContext(bw),c=a?.variant;let d;typeof r<"u"?d=r:t===!1?d="borderless":d=(i=(n=s??c)!==null&&n!==void 0?n:o)!==null&&i!==void 0?i:"outlined";const f=$1.includes(d);return[d,f]};function $2(e,r){const t=z.useRef([]),n=()=>{t.current.push(setTimeout(()=>{var i,o,a,s;!((i=e.current)===null||i===void 0)&&i.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return z.useEffect(()=>(n(),()=>t.current.forEach(i=>{i&&clearTimeout(i)})),[]),n}function B2(e,r,t,n){const{focusElCls:i,focus:o,borderElCls:a}=t,s=a?"> *":"",c=["hover",o?"focus":null,"active"].filter(Boolean).map(d=>`&:${d} ${s}`).join(",");return{[`&-item:not(${r}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[c]:{zIndex:3}},i?{[`&${i}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function q2(e,r,t){const{borderElCls:n}=t,i=n?`> ${n}`:"";return{[`&-item:not(${r}-first-item):not(${r}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${r}-last-item)${r}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${r}-first-item)${r}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function z2(e,r={focus:!0}){const{componentCls:t}=e,n=`${t}-compact`;return{[n]:Object.assign(Object.assign({},B2(e,n,r,t)),q2(t,n,r))}}function qu(e){return Rr(e,{inputAffixPadding:e.paddingXXS})}const zu=e=>{const{controlHeight:r,fontSize:t,lineHeight:n,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:c,paddingSM:d,controlPaddingHorizontalSM:f,controlPaddingHorizontal:l,colorFillAlter:u,colorPrimaryHover:h,colorPrimary:v,controlOutlineWidth:b,controlOutline:p,colorErrorOutline:g,colorWarningOutline:m,colorBgContainer:x,inputFontSize:y,inputFontSizeLG:E,inputFontSizeSM:_}=e,w=y||t,S=_||w,T=E||s,O=Math.round((r-w*n)/2*10)/10-i,C=Math.round((o-S*n)/2*10)/10-i,R=Math.ceil((a-T*c)/2*10)/10-i;return{paddingBlock:Math.max(O,0),paddingBlockSM:Math.max(C,0),paddingBlockLG:Math.max(R,0),paddingInline:d-i,paddingInlineSM:f-i,paddingInlineLG:l-i,addonBg:u,activeBorderColor:v,hoverBorderColor:h,activeShadow:`0 0 0 ${b}px ${p}`,errorActiveShadow:`0 0 0 ${b}px ${g}`,warningActiveShadow:`0 0 0 ${b}px ${m}`,hoverBg:x,activeBg:x,inputFontSize:w,inputFontSizeLG:T,inputFontSizeSM:S}},H2=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Hu=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},H2(Rr(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),gm=(e,r)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:r.borderColor,"&:hover":{borderColor:r.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:r.activeBorderColor,boxShadow:r.activeShadow,outline:0,backgroundColor:e.activeBg}}),Ch=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},gm(e,r)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}}),[`&${e.componentCls}-status-${r.status}${e.componentCls}-disabled`]:{borderColor:r.borderColor}}),V2=(e,r)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gm(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Hu(e))}),Ch(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Ch(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),r)}),Rh=(e,r)=>({[`&${e.componentCls}-group-wrapper-status-${r.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:r.addonBorderColor,color:r.addonColor}}}),U2=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Rh(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Rh(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Hu(e))}})}),W2=(e,r)=>{const{componentCls:t}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${t}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${t}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${t}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},r)}},ym=(e,r)=>{var t;return{background:r.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(t=r?.inputColor)!==null&&t!==void 0?t:"unset"},"&:hover":{background:r.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:r.activeBorderColor,backgroundColor:e.activeBg}}},Oh=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},ym(e,r)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}})}),G2=(e,r)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ym(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Hu(e))}),Oh(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Oh(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),r)}),jh=(e,r)=>({[`&${e.componentCls}-group-wrapper-status-${r.status}`]:{[`${e.componentCls}-group-addon`]:{background:r.addonBg,color:r.addonColor}}}),K2=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},jh(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),jh(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ye(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),bm=(e,r)=>({background:e.colorBgContainer,borderWidth:`${Ye(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${r.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${r.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${r.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Th=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},bm(e,r)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}}),[`&${e.componentCls}-status-${r.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${r.borderColor} transparent`}}),Y2=(e,r)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},bm(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),Th(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Th(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),r)}),X2=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),xm=e=>{const{paddingBlockLG:r,lineHeightLG:t,borderRadiusLG:n,paddingInlineLG:i}=e;return{padding:`${Ye(r)} ${Ye(i)}`,fontSize:e.inputFontSizeLG,lineHeight:t,borderRadius:n}},Em=e=>({padding:`${Ye(e.paddingBlockSM)} ${Ye(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),wm=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ye(e.paddingBlock)} ${Ye(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},X2(e.colorTextPlaceholder)),{"&-lg":Object.assign({},xm(e)),"&-sm":Object.assign({},Em(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Z2=e=>{const{componentCls:r,antCls:t}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${r}, &-lg > ${r}-group-addon`]:Object.assign({},xm(e)),[`&-sm ${r}, &-sm > ${r}-group-addon`]:Object.assign({},Em(e)),[`&-lg ${t}-select-single ${t}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${t}-select-single ${t}-select-selector`]:{height:e.controlHeightSM},[`> ${r}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${r}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ye(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${t}-select`]:{margin:`${Ye(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ye(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${t}-select-single:not(${t}-select-customize-input):not(${t}-pagination-size-changer)`]:{[`${t}-select-selector`]:{backgroundColor:"inherit",border:`${Ye(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${t}-cascader-picker`]:{margin:`-9px ${Ye(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${t}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[r]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${r}-search-with-button &`]:{zIndex:0}}},[`> ${r}:first-child, ${r}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${r}-affix-wrapper`]:{[`&:not(:first-child) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${r}:last-child, ${r}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${r}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${r}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${r}-group-compact`]:Object.assign(Object.assign({display:"block"},cx()),{[`${r}-group-addon, ${r}-group-wrap, > ${r}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
203
+ & > ${r}-affix-wrapper,
204
+ & > ${r}-number-affix-wrapper,
205
+ & > ${t}-picker-range
206
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[r]:{float:"none"},[`& > ${t}-select > ${t}-select-selector,
207
+ & > ${t}-select-auto-complete ${r},
208
+ & > ${t}-cascader-picker ${r},
209
+ & > ${r}-group-wrapper ${r}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${t}-select-focused`]:{zIndex:1},[`& > ${t}-select > ${t}-select-arrow`]:{zIndex:1},[`& > *:first-child,
210
+ & > ${t}-select:first-child > ${t}-select-selector,
211
+ & > ${t}-select-auto-complete:first-child ${r},
212
+ & > ${t}-cascader-picker:first-child ${r}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
213
+ & > ${t}-select:last-child > ${t}-select-selector,
214
+ & > ${t}-cascader-picker:last-child ${r},
215
+ & > ${t}-cascader-picker-focused:last-child ${r}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${t}-select-auto-complete ${r}`]:{verticalAlign:"top"},[`${r}-group-wrapper + ${r}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${r}-affix-wrapper`]:{borderRadius:0}},[`${r}-group-wrapper:not(:last-child)`]:{[`&${r}-search > ${r}-group`]:{[`& > ${r}-group-addon > ${r}-search-button`]:{borderRadius:0},[`& > ${r}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Q2=e=>{const{componentCls:r,controlHeightSM:t,lineWidth:n,calc:i}=e,a=i(t).sub(i(n).mul(2)).sub(16).div(2).equal();return{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Iu(e)),wm(e)),V2(e)),G2(e)),W2(e)),Y2(e)),{'&[type="color"]':{height:e.controlHeight,[`&${r}-lg`]:{height:e.controlHeightLG},[`&${r}-sm`]:{height:t,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},J2=e=>{const{componentCls:r}=e;return{[`${r}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ye(e.inputAffixPadding)}`}}}},eS=e=>{const{componentCls:r,inputAffixPadding:t,colorTextDescription:n,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=e,c=`${r}-affix-wrapper`,d=`${r}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},wm(e)),{display:"inline-flex",[`&:not(${r}-disabled):hover`]:{zIndex:1,[`${r}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${r}`]:{padding:0},[`> input${r}, > textarea${r}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[r]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:t},"&-suffix":{marginInlineStart:t}}}),J2(e)),{[`${s}${r}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[`${r}-underlined`]:{borderRadius:0},[d]:{[`${s}${r}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},tS=e=>{const{componentCls:r,borderRadiusLG:t,borderRadiusSM:n}=e;return{[`${r}-group`]:Object.assign(Object.assign(Object.assign({},Iu(e)),Z2(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${r}-group-addon`]:{borderRadius:t,fontSize:e.inputFontSizeLG}},"&-sm":{[`${r}-group-addon`]:{borderRadius:n}}},U2(e)),K2(e)),{[`&:not(${r}-compact-first-item):not(${r}-compact-last-item)${r}-compact-item`]:{[`${r}, ${r}-group-addon`]:{borderRadius:0}},[`&:not(${r}-compact-last-item)${r}-compact-first-item`]:{[`${r}, ${r}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${r}-compact-first-item)${r}-compact-last-item`]:{[`${r}, ${r}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${r}-compact-last-item)${r}-compact-item`]:{[`${r}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${r}-compact-first-item)${r}-compact-item`]:{[`${r}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},rS=e=>{const{componentCls:r,antCls:t}=e,n=`${r}-search`;return{[n]:{[r]:{"&:hover, &:focus":{[`+ ${r}-group-addon ${n}-button:not(${t}-btn-color-primary):not(${t}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${r}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${r}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${r}-group`]:{[`> ${r}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${t}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${t}-btn-loading::before`]:{inset:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${r}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${r}-affix-wrapper, ${n}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${r}-compact-item`]:{[`&:not(${r}-compact-last-item)`]:{[`${r}-group-addon`]:{[`${r}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${r}-compact-first-item)`]:{[`${r},${r}-affix-wrapper`]:{borderRadius:0}},[`> ${r}-group-addon ${r}-search-button,
216
+ > ${r},
217
+ ${r}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${r}-affix-wrapper-focused`]:{zIndex:2}}}}},nS=e=>{const{componentCls:r}=e;return{[`${r}-out-of-range`]:{[`&, & input, & textarea, ${r}-show-count-suffix, ${r}-data-count`]:{color:e.colorError}}}},Sm=yi(["Input","Shared"],e=>{const r=Rr(e,qu(e));return[Q2(r),eS(r)]},zu,{resetFont:!1}),iS=yi(["Input","Component"],e=>{const r=Rr(e,qu(e));return[tS(r),rS(r),nS(r),z2(r)]},zu,{resetFont:!1});function oS(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var aS=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};const sS=z.forwardRef((e,r)=>{const{prefixCls:t,bordered:n=!0,status:i,size:o,disabled:a,onBlur:s,onFocus:c,suffix:d,allowClear:f,addonAfter:l,addonBefore:u,className:h,style:v,styles:b,rootClassName:p,onChange:g,classNames:m,variant:x}=e,y=aS(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:ee}=vr("Input");ee(!("bordered"in e),"bordered","variant")}const{getPrefixCls:E,direction:_,allowClear:w,autoComplete:S,className:T,style:O,classNames:C,styles:R}=No("input"),j=E("input",t),A=z.useRef(null),I=vm(j),[$,H,G]=Sm(j,p),[D]=iS(j,I),{compactSize:F,compactItemClassnames:P}=Yv(j,_),L=Gv(ee=>{var ue;return(ue=o??F)!==null&&ue!==void 0?ue:ee}),B=z.useContext(di),X=a??B,{status:W,hasFeedback:q,feedbackIcon:N}=z.useContext(pi),V=pm(W,i),U=oS(e)||!!q,K=z.useRef(U);if(process.env.NODE_ENV!=="production"){const ee=vr("Input");z.useEffect(()=>{var ue;U&&!K.current&&process.env.NODE_ENV!=="production"&&ee(document.activeElement===((ue=A.current)===null||ue===void 0?void 0:ue.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),K.current=U},[U])}const J=$2(A),ne=ee=>{J(),s?.(ee)},ce=ee=>{J(),c?.(ee)},re=ee=>{J(),g?.(ee)},de=(q||d)&&z.createElement(z.Fragment,null,d,q&&N),oe=hm(f??w),[se,Q]=mm("input",x,n);return $(D(z.createElement(j2,Object.assign({ref:vi(r,A),prefixCls:j,autoComplete:S},y,{disabled:X,onBlur:ne,onFocus:ce,style:Object.assign(Object.assign({},O),v),styles:Object.assign(Object.assign({},R),b),suffix:de,allowClear:oe,className:_e(h,p,G,I,P,T),onChange:re,addonBefore:u&&z.createElement(fu,{form:!0,space:!0},u),addonAfter:l&&z.createElement(fu,{form:!0,space:!0},l),classNames:Object.assign(Object.assign(Object.assign({},m),C),{input:_e({[`${j}-sm`]:L==="small",[`${j}-lg`]:L==="large",[`${j}-rtl`]:_==="rtl"},m?.input,C.input,H),variant:_e({[`${j}-${se}`]:Q},du(j,V)),affixWrapper:_e({[`${j}-affix-wrapper-sm`]:L==="small",[`${j}-affix-wrapper-lg`]:L==="large",[`${j}-affix-wrapper-rtl`]:_==="rtl"},H),wrapper:_e({[`${j}-group-rtl`]:_==="rtl"},H),groupWrapper:_e({[`${j}-group-wrapper-sm`]:L==="small",[`${j}-group-wrapper-lg`]:L==="large",[`${j}-group-wrapper-rtl`]:_==="rtl",[`${j}-group-wrapper-${se}`]:Q},du(`${j}-group-wrapper`,V,q),H)})}))))});process.env.NODE_ENV!=="production"&&(sS.displayName="Input");const lS=e=>{const{componentCls:r,paddingLG:t}=e,n=`${r}-textarea`;return{[`textarea${r}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${r}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${r}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${r}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
218
+ &-allow-clear > ${r},
219
+ &-affix-wrapper${n}-has-feedback ${r}
220
+ `]:{paddingInlineEnd:t},[`&-affix-wrapper${r}-affix-wrapper`]:{padding:0,[`> textarea${r}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${r}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${r}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${r}-affix-wrapper-rtl`]:{[`${r}-suffix`]:{[`${r}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${r}-affix-wrapper-sm`]:{[`${r}-suffix`]:{[`${r}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},uS=yi(["Input","TextArea"],e=>{const r=Rr(e,qu(e));return lS(r)},zu,{resetFont:!1});var cS=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};const fS=z.forwardRef((e,r)=>{var t;const{prefixCls:n,bordered:i=!0,size:o,disabled:a,status:s,allowClear:c,classNames:d,rootClassName:f,className:l,style:u,styles:h,variant:v,showCount:b,onMouseDown:p,onResize:g}=e,m=cS(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:oe}=vr("TextArea");oe(!("bordered"in e),"bordered","variant")}const{getPrefixCls:x,direction:y,allowClear:E,autoComplete:_,className:w,style:S,classNames:T,styles:O}=No("textArea"),C=M.useContext(di),R=a??C,{status:j,hasFeedback:A,feedbackIcon:I}=M.useContext(pi),$=pm(j,s),H=M.useRef(null);M.useImperativeHandle(r,()=>{var oe;return{resizableTextArea:(oe=H.current)===null||oe===void 0?void 0:oe.resizableTextArea,focus:se=>{var Q,ee;um((ee=(Q=H.current)===null||Q===void 0?void 0:Q.resizableTextArea)===null||ee===void 0?void 0:ee.textArea,se)},blur:()=>{var se;return(se=H.current)===null||se===void 0?void 0:se.blur()}}});const G=x("input",n),D=vm(G),[F,P,L]=Sm(G,f),[B]=uS(G,D),{compactSize:X,compactItemClassnames:W}=Yv(G,y),q=Gv(oe=>{var se;return(se=o??X)!==null&&se!==void 0?se:oe}),[N,V]=mm("textArea",v,i),U=hm(c??E),[K,J]=M.useState(!1),[ne,ce]=M.useState(!1),re=oe=>{J(!0),p?.(oe);const se=()=>{J(!1),document.removeEventListener("mouseup",se)};document.addEventListener("mouseup",se)},de=oe=>{var se,Q;if(g?.(oe),K&&typeof getComputedStyle=="function"){const ee=(Q=(se=H.current)===null||se===void 0?void 0:se.nativeElement)===null||Q===void 0?void 0:Q.querySelector("textarea");ee&&getComputedStyle(ee).resize==="both"&&ce(!0)}};return F(B(M.createElement(L2,Object.assign({autoComplete:_},m,{style:Object.assign(Object.assign({},S),u),styles:Object.assign(Object.assign({},O),h),disabled:R,allowClear:U,className:_e(L,D,l,f,W,w,ne&&`${G}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},d),T),{textarea:_e({[`${G}-sm`]:q==="small",[`${G}-lg`]:q==="large"},P,d?.textarea,T.textarea,K&&`${G}-mouse-active`),variant:_e({[`${G}-${N}`]:V},du(G,$)),affixWrapper:_e(`${G}-textarea-affix-wrapper`,{[`${G}-affix-wrapper-rtl`]:y==="rtl",[`${G}-affix-wrapper-sm`]:q==="small",[`${G}-affix-wrapper-lg`]:q==="large",[`${G}-textarea-show-count`]:b||((t=e.count)===null||t===void 0?void 0:t.show)},P)}),prefixCls:G,suffix:A&&M.createElement("span",{className:`${G}-textarea-suffix`},I),showCount:b,ref:H,onResize:de,onMouseDown:re}))))}),dS=(e,r,t,n)=>{const{titleMarginBottom:i,fontWeightStrong:o}=n;return{marginBottom:i,color:t,fontWeight:o,fontSize:e,lineHeight:r}},hS=e=>{const r=[1,2,3,4,5],t={};return r.forEach(n=>{t[`
221
+ h${n}&,
222
+ div&-h${n},
223
+ div&-h${n} > textarea,
224
+ h${n}
225
+ `]=dS(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),t},pS=e=>{const{componentCls:r}=e;return{"a&, a":Object.assign(Object.assign({},mv(e)),{userSelect:"text",[`&[disabled], &${r}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},vS=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:so[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),mS=e=>{const{componentCls:r,paddingSM:t}=e,n=t;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${Ye(n)})`},[`${r}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},gS=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),yS=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),bS=e=>{const{componentCls:r,titleMarginTop:t}=e;return{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${r}-secondary`]:{color:e.colorTextDescription},[`&${r}-success`]:{color:e.colorSuccessText},[`&${r}-warning`]:{color:e.colorWarningText},[`&${r}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${r}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},hS(e)),{[`
226
+ & + h1${r},
227
+ & + h2${r},
228
+ & + h3${r},
229
+ & + h4${r},
230
+ & + h5${r}
231
+ `]:{marginTop:t},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:t}}}),vS(e)),pS(e)),{[`
232
+ ${r}-expand,
233
+ ${r}-collapse,
234
+ ${r}-edit,
235
+ ${r}-copy
236
+ `]:Object.assign(Object.assign({},mv(e)),{marginInlineStart:e.marginXXS})}),mS(e)),gS(e)),yS()),{"&-rtl":{direction:"rtl"}})}},xS=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),_m=yi("Typography",bS,xS),ES=e=>{const{prefixCls:r,"aria-label":t,className:n,style:i,direction:o,maxLength:a,autoSize:s=!0,value:c,onSave:d,onCancel:f,onEnd:l,component:u,enterIcon:h=M.createElement(lm,null)}=e,v=M.useRef(null),b=M.useRef(!1),p=M.useRef(null),[g,m]=M.useState(c);M.useEffect(()=>{m(c)},[c]),M.useEffect(()=>{var A;if(!((A=v.current)===null||A===void 0)&&A.resizableTextArea){const{textArea:I}=v.current.resizableTextArea;I.focus();const{length:$}=I.value;I.setSelectionRange($,$)}},[]);const x=({target:A})=>{m(A.value.replace(/[\n\r]/g,""))},y=()=>{b.current=!0},E=()=>{b.current=!1},_=({keyCode:A})=>{b.current||(p.current=A)},w=()=>{d(g.trim())},S=({keyCode:A,ctrlKey:I,altKey:$,metaKey:H,shiftKey:G})=>{p.current!==A||b.current||I||$||H||G||(A===Sh.ENTER?(w(),l?.()):A===Sh.ESC&&f())},T=()=>{w()},[O,C,R]=_m(r),j=_e(r,`${r}-edit-content`,{[`${r}-rtl`]:o==="rtl",[`${r}-${u}`]:!!u},n,C,R);return O(M.createElement("div",{className:j,style:i},M.createElement(fS,{ref:v,maxLength:a,value:g,onChange:x,onKeyDown:_,onKeyUp:S,onCompositionStart:y,onCompositionEnd:E,onBlur:T,"aria-label":t,rows:1,autoSize:s}),h!==null?Jv(h,{className:`${r}-edit-content-confirm`}):null))};var ul,Ah;function wS(){return Ah||(Ah=1,ul=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var r=document.activeElement,t=[],n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));switch(r.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":r.blur();break;default:r=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||t.forEach(function(i){e.addRange(i)}),r&&r.focus()}}),ul}var cl,kh;function SS(){if(kh)return cl;kh=1;var e=wS(),r={"text/plain":"Text","text/html":"Url",default:"Text"},t="Copy to clipboard: #{key}, Enter";function n(o){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,a)}function i(o,a){var s,c,d,f,l,u,h=!1;a||(a={}),s=a.debug||!1;try{d=e(),f=document.createRange(),l=document.getSelection(),u=document.createElement("span"),u.textContent=o,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(b){if(b.stopPropagation(),a.format)if(b.preventDefault(),typeof b.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=r[a.format]||r.default;window.clipboardData.setData(p,o)}else b.clipboardData.clearData(),b.clipboardData.setData(a.format,o);a.onCopy&&(b.preventDefault(),a.onCopy(b.clipboardData))}),document.body.appendChild(u),f.selectNodeContents(u),l.addRange(f);var v=document.execCommand("copy");if(!v)throw new Error("copy command was unsuccessful");h=!0}catch(b){s&&console.error("unable to copy using execCommand: ",b),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",o),a.onCopy&&a.onCopy(window.clipboardData),h=!0}catch(p){s&&console.error("unable to copy using clipboardData: ",p),s&&console.error("falling back to prompt"),c=n("message"in a?a.message:t),window.prompt(c,o)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(f):l.removeAllRanges()),u&&document.body.removeChild(u),d()}return h}return cl=i,cl}var _S=SS();const CS=Me.getDefaultExportFromCjs(_S),RS=(e,r=!1)=>r&&e==null?[]:Array.isArray(e)?e:[e];var OS=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(f){try{d(n.next(f))}catch(l){a(l)}}function c(f){try{d(n.throw(f))}catch(l){a(l)}}function d(f){f.done?o(f.value):i(f.value).then(s,c)}d((n=n.apply(e,r||[])).next())})};const jS=({copyConfig:e,children:r})=>{const[t,n]=M.useState(!1),[i,o]=M.useState(!1),a=M.useRef(null),s=()=>{a.current&&clearTimeout(a.current)},c={};e.format&&(c.format=e.format),M.useEffect(()=>s,[]);const d=jt(f=>OS(void 0,void 0,void 0,function*(){var l;f?.preventDefault(),f?.stopPropagation(),o(!0);try{const u=typeof e.text=="function"?yield e.text():e.text;CS(u||RS(r,!0).join("")||"",c),o(!1),n(!0),s(),a.current=setTimeout(()=>{n(!1)},3e3),(l=e.onCopy)===null||l===void 0||l.call(e,f)}catch(u){throw o(!1),u}}));return{copied:t,copyLoading:i,onClick:d}};function fl(e,r){return M.useMemo(()=>{const t=!!e;return[t,Object.assign(Object.assign({},r),t&&typeof e=="object"?e:null)]},[e])}const TS=e=>{const r=z.useRef(void 0);return z.useEffect(()=>{r.current=e}),r.current},AS=(e,r,t)=>z.useMemo(()=>e===!0?{title:r??t}:z.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:r??t},e):{title:e},[e,r,t]);var kS=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};const Cm=M.forwardRef((e,r)=>{const{prefixCls:t,component:n="article",className:i,rootClassName:o,setContentRef:a,children:s,direction:c,style:d}=e,f=kS(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:l,direction:u,className:h,style:v}=No("typography"),b=c??u,p=a?vi(r,a):r,g=l("typography",t);process.env.NODE_ENV!=="production"&&vr("Typography").deprecated(!a,"setContentRef","ref");const[m,x,y]=_m(g),E=_e(g,h,{[`${g}-rtl`]:b==="rtl"},i,o,x,y),_=Object.assign(Object.assign({},v),d);return m(M.createElement(n,Object.assign({className:E,style:_,ref:p},f),s))});process.env.NODE_ENV!=="production"&&(Cm.displayName="Typography");var PS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},NS=function(r,t){return M.createElement(Cr,tt({},r,{ref:t,icon:PS}))},Rm=M.forwardRef(NS);process.env.NODE_ENV!=="production"&&(Rm.displayName="CheckOutlined");var IS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},MS=function(r,t){return M.createElement(Cr,tt({},r,{ref:t,icon:IS}))},Om=M.forwardRef(MS);process.env.NODE_ENV!=="production"&&(Om.displayName="CopyOutlined");var LS={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},DS=function(r,t){return M.createElement(Cr,tt({},r,{ref:t,icon:LS}))},jm=M.forwardRef(DS);process.env.NODE_ENV!=="production"&&(jm.displayName="LoadingOutlined");function Ph(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function dl(e,r,t){return e===!0||e===void 0?r:e||t&&r}function FS(e){const r=document.createElement("em");e.appendChild(r),process.env.NODE_ENV!=="production"&&(r.className="ant-typography-css-ellipsis-content-measure");const t=e.getBoundingClientRect(),n=r.getBoundingClientRect();return e.removeChild(r),t.left>n.left||n.right>t.right||t.top>n.top||n.bottom>t.bottom}const Vu=e=>["string","number"].includes(typeof e),$S=({prefixCls:e,copied:r,locale:t,iconOnly:n,tooltips:i,icon:o,tabIndex:a,onCopy:s,loading:c})=>{const d=Ph(i),f=Ph(o),{copied:l,copy:u}=t??{},h=r?l:u,v=dl(d[r?1:0],h),b=typeof v=="string"?v:h;return M.createElement(Si,{title:v,getPopupContainer:p=>p.parentNode},M.createElement("button",{type:"button",className:_e(`${e}-copy`,{[`${e}-copy-success`]:r,[`${e}-copy-icon-only`]:n}),onClick:s,"aria-label":b,tabIndex:a},r?dl(f[1],M.createElement(Rm,null),!0):dl(f[0],c?M.createElement(jm,null):M.createElement(Om,null),!0)))},Ui=M.forwardRef(({style:e,children:r},t)=>{const n=M.useRef(null);return M.useImperativeHandle(t,()=>({isExceed:()=>{const i=n.current;return i.scrollHeight>i.clientHeight},getHeight:()=>n.current.clientHeight})),M.createElement("span",{"aria-hidden":!0,ref:n,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},r)}),BS=e=>e.reduce((r,t)=>r+(Vu(t)?String(t).length:1),0);function Nh(e,r){let t=0;const n=[];for(let i=0;i<e.length;i+=1){if(t===r)return n;const o=e[i],s=Vu(o)?String(o).length:1,c=t+s;if(c>r){const d=r-t;return n.push(String(o).slice(0,d)),n}n.push(o),t=c}return e}const hl=0,pl=1,vl=2,ml=3,Ih=4,Wi={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function qS(e){const{enableMeasure:r,width:t,text:n,children:i,rows:o,expanded:a,miscDeps:s,onEllipsis:c}=e,d=M.useMemo(()=>fn(n),[n]),f=M.useMemo(()=>BS(d),[n]),l=M.useMemo(()=>i(d,!1),[n]),[u,h]=M.useState(null),v=M.useRef(null),b=M.useRef(null),p=M.useRef(null),g=M.useRef(null),m=M.useRef(null),[x,y]=M.useState(!1),[E,_]=M.useState(hl),[w,S]=M.useState(0),[T,O]=M.useState(null);st(()=>{_(r&&t&&f?pl:hl)},[t,n,o,r,d]),st(()=>{var A,I,$,H;if(E===pl){_(vl);const G=b.current&&getComputedStyle(b.current).whiteSpace;O(G)}else if(E===vl){const G=!!(!((A=p.current)===null||A===void 0)&&A.isExceed());_(G?ml:Ih),h(G?[0,f]:null),y(G);const D=((I=p.current)===null||I===void 0?void 0:I.getHeight())||0,F=o===1?0:(($=g.current)===null||$===void 0?void 0:$.getHeight())||0,P=((H=m.current)===null||H===void 0?void 0:H.getHeight())||0,L=Math.max(D,F+P);S(L+1),c(G)}},[E]);const C=u?Math.ceil((u[0]+u[1])/2):0;st(()=>{var A;const[I,$]=u||[0,0];if(I!==$){const G=(((A=v.current)===null||A===void 0?void 0:A.getHeight())||0)>w;let D=C;$-I===1&&(D=G?I:$),h(G?[I,D]:[D,$])}},[u,C]);const R=M.useMemo(()=>{if(!r)return i(d,!1);if(E!==ml||!u||u[0]!==u[1]){const A=i(d,!1);return[Ih,hl].includes(E)?A:M.createElement("span",{style:Object.assign(Object.assign({},Wi),{WebkitLineClamp:o})},A)}return i(a?d:Nh(d,u[0]),x)},[a,E,u,d].concat(we(s))),j={width:t,margin:0,padding:0,whiteSpace:T==="nowrap"?"normal":"inherit"};return M.createElement(M.Fragment,null,R,E===vl&&M.createElement(M.Fragment,null,M.createElement(Ui,{style:Object.assign(Object.assign(Object.assign({},j),Wi),{WebkitLineClamp:o}),ref:p},l),M.createElement(Ui,{style:Object.assign(Object.assign(Object.assign({},j),Wi),{WebkitLineClamp:o-1}),ref:g},l),M.createElement(Ui,{style:Object.assign(Object.assign(Object.assign({},j),Wi),{WebkitLineClamp:1}),ref:m},i([],!0))),E===ml&&u&&u[0]!==u[1]&&M.createElement(Ui,{style:Object.assign(Object.assign({},j),{top:400}),ref:v},i(Nh(d,C),!0)),E===pl&&M.createElement("span",{style:{whiteSpace:"inherit"},ref:b}))}const Tm=({enableEllipsis:e,isEllipsis:r,children:t,tooltipProps:n})=>!n?.title||!e?t:M.createElement(Si,Object.assign({open:r?void 0:!1},n),t);process.env.NODE_ENV!=="production"&&(Tm.displayName="EllipsisTooltip");var zS=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]]);return t};function HS({mark:e,code:r,underline:t,delete:n,strong:i,keyboard:o,italic:a},s){let c=s;function d(f,l){l&&(c=M.createElement(f,{},c))}return d("strong",i),d("u",t),d("del",n),d("code",r),d("mark",e),d("kbd",o),d("i",a),c}const VS="...",Mh=["delete","mark","code","underline","strong","keyboard","italic"],US=M.forwardRef((e,r)=>{var t;const{prefixCls:n,className:i,style:o,type:a,disabled:s,children:c,ellipsis:d,editable:f,copyable:l,component:u,title:h}=e,v=zS(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:p}=M.useContext(mr),[g]=O1("Text"),m=M.useRef(null),x=M.useRef(null),y=b("typography",n),E=Mp(v,Mh),[_,w]=fl(f),[S,T]=Gr(!1,{value:w.editing}),{triggerType:O=["icon"]}=w,C=xe=>{var Se;xe&&((Se=w.onStart)===null||Se===void 0||Se.call(w)),T(xe)},R=TS(S);st(()=>{var xe;!S&&R&&((xe=x.current)===null||xe===void 0||xe.focus())},[S]);const j=xe=>{xe?.preventDefault(),C(!0)},A=xe=>{var Se;(Se=w.onChange)===null||Se===void 0||Se.call(w,xe),C(!1)},I=()=>{var xe;(xe=w.onCancel)===null||xe===void 0||xe.call(w),C(!1)},[$,H]=fl(l),{copied:G,copyLoading:D,onClick:F}=jS({copyConfig:H,children:c}),[P,L]=M.useState(!1),[B,X]=M.useState(!1),[W,q]=M.useState(!1),[N,V]=M.useState(!1),[U,K]=M.useState(!0),[J,ne]=fl(d,{expandable:!1,symbol:xe=>xe?g?.collapse:g?.expand}),[ce,re]=Gr(ne.defaultExpanded||!1,{value:ne.expanded}),de=J&&(!ce||ne.expandable==="collapsible"),{rows:oe=1}=ne,se=M.useMemo(()=>de&&(ne.suffix!==void 0||ne.onEllipsis||ne.expandable||_||$),[de,ne,_,$]);st(()=>{J&&!se&&(L(wd("webkitLineClamp")),X(wd("textOverflow")))},[se,J]);const[Q,ee]=M.useState(de),ue=M.useMemo(()=>se?!1:oe===1?B:P,[se,B,P]);st(()=>{ee(ue&&de)},[ue,de]);const le=de&&(Q?N:W),ae=de&&oe===1&&Q,pe=de&&oe>1&&Q,fe=(xe,Se)=>{var at;re(Se.expanded),(at=ne.onExpand)===null||at===void 0||at.call(ne,xe,Se)},[ge,Re]=M.useState(0),qe=({offsetWidth:xe})=>{Re(xe)},Ce=xe=>{var Se;q(xe),W!==xe&&((Se=ne.onEllipsis)===null||Se===void 0||Se.call(ne,xe))};M.useEffect(()=>{const xe=m.current;if(J&&Q&&xe){const Se=FS(xe);N!==Se&&V(Se)}},[J,Q,c,pe,U,ge]),M.useEffect(()=>{const xe=m.current;if(typeof IntersectionObserver>"u"||!xe||!Q||!de)return;const Se=new IntersectionObserver(()=>{K(!!xe.offsetParent)});return Se.observe(xe),()=>{Se.disconnect()}},[Q,de]);const Ke=AS(ne.tooltip,w.text,c),Ae=M.useMemo(()=>{if(!(!J||Q))return[w.text,c,h,Ke.title].find(Vu)},[J,Q,h,Ke.title,le]);if(S)return M.createElement(ES,{value:(t=w.text)!==null&&t!==void 0?t:typeof c=="string"?c:"",onSave:A,onCancel:I,onEnd:w.onEnd,prefixCls:y,className:i,style:o,direction:p,component:u,maxLength:w.maxLength,autoSize:w.autoSize,enterIcon:w.enterIcon});const ke=()=>{const{expandable:xe,symbol:Se}=ne;return xe?M.createElement("button",{type:"button",key:"expand",className:`${y}-${ce?"collapse":"expand"}`,onClick:at=>fe(at,{expanded:!ce}),"aria-label":ce?g.collapse:g?.expand},typeof Se=="function"?Se(ce):Se):null},Fe=()=>{if(!_)return;const{icon:xe,tooltip:Se,tabIndex:at}=w,Pt=fn(Se)[0]||g?.edit,zt=typeof Pt=="string"?Pt:"";return O.includes("icon")?M.createElement(Si,{key:"edit",title:Se===!1?"":Pt},M.createElement("button",{type:"button",ref:x,className:`${y}-edit`,onClick:j,"aria-label":zt,tabIndex:at},xe||M.createElement(_p,{role:"button"}))):null},Pe=()=>$?M.createElement($S,Object.assign({key:"copy"},H,{prefixCls:y,copied:G,locale:g,onCopy:F,loading:D,iconOnly:c==null})):null,Ee=xe=>[xe&&ke(),Fe(),Pe()],Ve=xe=>[xe&&!ce&&M.createElement("span",{"aria-hidden":!0,key:"ellipsis"},VS),ne.suffix,Ee(xe)];return M.createElement(wn,{onResize:qe,disabled:!de},xe=>M.createElement(Tm,{tooltipProps:Ke,enableEllipsis:de,isEllipsis:le},M.createElement(Cm,Object.assign({className:_e({[`${y}-${a}`]:a,[`${y}-disabled`]:s,[`${y}-ellipsis`]:J,[`${y}-ellipsis-single-line`]:ae,[`${y}-ellipsis-multiple-line`]:pe},i),prefixCls:n,style:Object.assign(Object.assign({},o),{WebkitLineClamp:pe?oe:void 0}),component:u,ref:vi(xe,m,r),direction:p,onClick:O.includes("text")?j:void 0,"aria-label":Ae?.toString(),title:h},E),M.createElement(qS,{enableMeasure:de&&!Q,text:c,rows:oe,width:ge,onEllipsis:Ce,expanded:ce,miscDeps:[G,ce,D,_,$,g].concat(we(Mh.map(Se=>e[Se])))},(Se,at)=>HS(e,M.createElement(M.Fragment,null,Se.length>0&&at&&!ce&&Ae?M.createElement("span",{key:"show-content","aria-hidden":!0},Se):Se,Ve(at)))))))}),WS=M.forwardRef((e,r)=>M.createElement(US,Object.assign({ref:r},e,{component:"div"}))),Lh=(e,r)=>{const t=window.innerWidth,n=window.innerHeight,i=Math.min(Math.max(e.x,0),Math.max(0,t-r.width)),o=Math.min(Math.max(e.y,0),Math.max(0,n-r.height));return{x:i,y:o}},GS=({title:e="팝업",width:r=800,height:t=600,minWidth:n=400,minHeight:i=300,onClose:o,children:a,footer:s,showMask:c=!0,maskStyle:d={backgroundColor:"rgba(0,0,0,0.3)"},buttons:f=[]})=>{const[l,u]=z.useState(r),[h,v]=z.useState(t),b=z.useRef(null),{loading:p}=Me.usePopupLoadingStore(),g=z.useMemo(()=>{const S=Math.max(0,(window.innerWidth-r)/2),T=Math.max(0,(window.innerHeight-t)/2);return{x:S,y:T}},[r,t]),[m,x]=z.useState(g),y=(S,T)=>{const O=Lh({x:T.x,y:T.y},{width:l,height:h});x(O)},E=(S,T,O,C,R)=>{const j={width:parseInt(O.style.width,10),height:parseInt(O.style.height,10)},A=Lh(R,j);u(j.width),v(j.height),x(A)},_=()=>b.current??document.body,w=[...f,{key:"CLOSE",text:"닫기",type:"default",danger:!1,disabled:!1,onClick:o}];return k.jsxRuntimeExports.jsxs("div",{style:{position:"fixed",inset:0,zIndex:1e3},children:[c&&k.jsxRuntimeExports.jsx("div",{onClick:o,style:{position:"absolute",inset:0,...d,zIndex:0}}),k.jsxRuntimeExports.jsxs($h.Rnd,{className:"bwg-draggable",size:{width:l,height:h},position:m,bounds:"window",minWidth:n,minHeight:i,onDragStop:y,onResizeStop:E,dragHandleClassName:"drag-handle",cancel:".rnd-cancel",enableUserSelectHack:!1,style:{backgroundColor:"white",borderRadius:20,boxShadow:"0 4px 15px rgba(0,0,0,0.25)",overflow:"visible",position:"absolute",zIndex:1},children:[k.jsxRuntimeExports.jsx("div",{className:"bwg-popup-content",style:{overflow:"hidden",borderRadius:20,height:"100%"},children:k.jsxRuntimeExports.jsx(hu,{getPopupContainer:_,children:k.jsxRuntimeExports.jsx(Wr,{type:"vertical",children:k.jsxRuntimeExports.jsxs(Y.Card,{className:"popup-drag-container",title:k.jsxRuntimeExports.jsx("div",{className:"drag-handle",style:{display:"flex",alignItems:"center",gap:8},children:e}),style:{width:"100%",height:"100%"},styles:{body:{height:s?"calc(100% - 120px)":"calc(100% - 77px)",padding:20,overflow:"auto"}},extra:k.jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:8},children:w.map(S=>k.jsxRuntimeExports.jsx(Y.Button,{type:S.type,danger:S.danger,disabled:S.disabled,className:"bwg-btn",onClick:S.onClick,children:S.text},S.key))}),children:[k.jsxRuntimeExports.jsxs("div",{className:"rnd-cancel",style:{height:"100%"},children:[a,p&&k.jsxRuntimeExports.jsx(Bh.LoadingOverlay,{})]}),s&&k.jsxRuntimeExports.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,padding:"16px 20px",borderTop:"1px solid #f0f0f0",backgroundColor:"#fafafa",borderRadius:"0 0 8px 8px"},children:s})]})})})}),k.jsxRuntimeExports.jsx("div",{ref:b,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},{TextArea:KS}=Y.Input,Gi=[{label:"요청",value:"RQST"},{label:"문의",value:"INQR"}],YS={INQR:"blue",RQST:"green",RPRT:"red",SGSN:"purple"},Dh=[{label:"대기",value:"READY"},{label:"담당자 지정",value:"ASSIGNED"},{label:"처리중",value:"PROCESSING"},{label:"처리완료",value:"COMPLETED"},{label:"반려",value:"REJECTED"}],XS={READY:"gray",ASSIGNED:"blue",PROCESSING:"yellow",COMPLETED:"green",REJECTED:"red"},Fh={READY:0,ASSIGNED:25,PROCESSING:50,COMPLETED:100,REJECTED:100},ZS=({open:e,onClose:r})=>{const{searchBoxRef:t}=yo.useSearchBox(),n=z.useRef(null),i=z.useRef(null),{user:o}=Me.useUserStore(),{activeMenuItem:a}=Me.useMenuViewStore(),[s]=Y.Form.useForm(),[c,d]=z.useState(!1),[f,l]=z.useState(!1),[u,h]=z.useState(!1),[v,b]=z.useState(!1),[p,g]=z.useState(!1),[m,x]=z.useState("list"),[y,E]=z.useState(null),_=z.useRef(null),[w,S]=z.useState([]),[T,O]=z.useState(""),[C,R]=z.useState(!1),[j,A]=z.useState(15),I=z.useRef(null),$=z.useMemo(()=>Zi((oe,se,Q,ee,ue)=>{const le=oe.getValue(se.index?.itemIndex,"type");ue.render(k.jsxRuntimeExports.jsx(Y.Tag,{color:YS[le],children:Gi.find(ae=>ae.value===le)?.label}))}),[]),H=z.useMemo(()=>Zi((oe,se,Q,ee,ue)=>{const le=oe.getValue(se.index?.itemIndex,"status");ue.render(k.jsxRuntimeExports.jsx(Y.Tag,{color:XS[le],children:Dh.find(ae=>ae.value===le)?.label}))}),[]),G=z.useMemo(()=>Zi((oe,se,Q,ee,ue)=>{oe.getValue(se.index?.itemIndex,"urgentYn")==="Y"?ue.render(k.jsxRuntimeExports.jsx(Te.AlertTwoTone,{twoToneColor:"red"})):ue.render(k.jsxRuntimeExports.jsx(k.jsxRuntimeExports.Fragment,{}))}),[]),D=[{fieldName:"boardMstrId",header:{text:"글 번호"},width:80},{name:"type",fieldName:"type",header:{text:"등록구분"},width:80,renderer:"tagType"},{fieldName:"title",header:{text:"제목"},width:200},{fieldName:"content",header:{text:"내용"},width:200,visible:!1},{name:"status",fieldName:"status",header:{text:"상태"},width:80,renderer:"statusTag"},{fieldName:"rgstUserId",visible:!1},{fieldName:"rgstUserNm",header:{text:"등록자"},width:100},{fieldName:"rgstDt",header:{text:"등록일자"},width:120,renderer:Yo.realFormat.maskYmd},{fieldName:"dueDt",header:{text:"마감요청일자"},width:120,renderer:Yo.realFormat.maskYmd},{fieldName:"urgentYn",header:{text:"긴급여부"},width:80,renderer:"alert"},{fieldName:"prcsUserId",visible:!1},{fieldName:"prcsUserNm",header:{text:"처리담당자"},width:100},{fieldName:"prcsDt",header:{text:"처리일자"},width:120,renderer:Yo.realFormat.maskYmd},{fieldName:"scrnId",header:{text:"화면ID"},width:100,visible:!1},{fieldName:"menuId",header:{text:"메뉴ID"},width:100,visible:!1}],F={onCellDblClicked:(oe,se)=>{const Q=se.itemIndex??-1;if(Q<0)return;const ee=oe.getValues(Q);console.log("🔍 그리드 셀 더블클릭 이벤트:",ee);const ue={...ee,menuId:a?.menuId,menuNm:a?.menuNm,scrnId:a?.scrnId};s.setFieldsValue(ue),h(ue.rgstUserId===o?.userId),b(ue.status==="COMPLETED"||ue.status==="REJECTED"),x("detail")}},P=()=>{s.resetFields(),x("list"),re.SCMBoardMstr0001(1,20)},L=async oe=>{d(!0);try{s.validateFields().then(se=>{console.log("문의/신고 제출:",se),m==="new"?re.SCMBoardMstr0003(se):m==="detail"&&re.SCMBoardMstr0004(se)})}catch(se){console.error("문의/신고 제출 실패:",se)}finally{d(!1)}},B=()=>{re.SCMBoardMstr0005()},X=()=>{t?.current?.resetForm(),s.resetFields(),m==="new"?x("list"):(x("list"),r())},W=()=>{t?.current?.resetForm(),s.resetFields(),x("list"),r()},q=()=>{(m==="detail"||m==="new")&&x("list")},N=()=>{s.resetFields(),x("new")},V=()=>{console.log("댓글 수동 새로고침"),A(15)},U=()=>{if(!T.trim()){Y.message.warning("댓글 상세내용 작성");return}re.SCMBoardDtls0002(s.getFieldValue("boardMstrId"),T.trim()),O(""),setTimeout(()=>{_.current&&(_.current.scrollTop=_.current.scrollHeight)},100)},K=oe=>{const se=w.find(Q=>Q.id===oe);if(se&&se.regUserId!==o?.userId){Y.message.error("본인이 작성한 댓글만 삭제할 수 있습니다.");return}re.SCMBoardDtls0003(s.getFieldValue("boardMstrId"),oe)};z.useEffect(()=>{e&&setTimeout(()=>{re.SCMBoardMstr0001(1,20)},100)},[e]);const J=()=>k.jsxRuntimeExports.jsxs(Hr,{border:!1,children:[k.jsxRuntimeExports.jsx(Eo,{border:!0,ref:t,reqRows:k.jsxRuntimeExports.jsxs(k.jsxRuntimeExports.Fragment,{children:[k.jsxRuntimeExports.jsx(Y.Row,{gutter:[16,8],style:{marginBottom:"8px"},children:k.jsxRuntimeExports.jsx(Y.Col,{span:24,children:k.jsxRuntimeExports.jsx(Qe.BwgFormItem,{label:"화면 정보",name:void 0,children:k.jsxRuntimeExports.jsxs(Y.Space.Compact,{style:{width:"100%"},children:[k.jsxRuntimeExports.jsx(Y.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:k.jsxRuntimeExports.jsx(Y.Input,{disabled:!0})}),k.jsxRuntimeExports.jsx(Y.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:k.jsxRuntimeExports.jsx(Y.Input,{disabled:!0})})]})})})}),k.jsxRuntimeExports.jsxs(Y.Row,{gutter:[16,8],style:{marginBottom:"8px"},children:[k.jsxRuntimeExports.jsx(Y.Col,{span:6,children:k.jsxRuntimeExports.jsx(Qe.BwgSelect,{itemProps:{label:"등록구분",name:"type"},selectProps:{options:Gi}})}),k.jsxRuntimeExports.jsx(Y.Col,{span:12,children:k.jsxRuntimeExports.jsx(Qe.BwgRangePicker,{itemProps:{label:"등록일자",name:"rgstDt"},inputProps:{allowEmpty:!0}})}),k.jsxRuntimeExports.jsx(Y.Col,{span:6,children:k.jsxRuntimeExports.jsx(Qe.BwgSwitch,{itemProps:{name:"myArticle",label:"내 글만"},inputProps:{format:"YN",onChange:()=>console.log("hello!!")}})})]}),k.jsxRuntimeExports.jsx(Y.Row,{children:k.jsxRuntimeExports.jsx(Y.Col,{span:24,children:k.jsxRuntimeExports.jsx(Qe.BwgInput,{itemProps:{label:"제목 및 내용",name:"keyword"}})})})]})}),k.jsxRuntimeExports.jsx(sp,{ref:I,gridColumns:D,gridEvents:F,gridOptions:{},renderers:[{name:"tagType",renderer:$},{name:"statusTag",renderer:H},{name:"alert",renderer:G}]}),k.jsxRuntimeExports.jsx(yu,{ref:n,mode:"server",onServerPageChange:(oe,se)=>{console.log("🔄 서버 모드 페이징 변경:",{page:oe,size:se}),re.SCMBoardMstr0001(oe,se)},pageSizeOptions:[10,20,50,100]})]}),ne=()=>k.jsxRuntimeExports.jsxs(Y.Splitter,{children:[k.jsxRuntimeExports.jsx(Y.Splitter.Panel,{defaultSize:"70%",min:"60%",max:"80%",style:{paddingRight:"15px",overflowX:"hidden",overflowY:"hidden"},children:k.jsxRuntimeExports.jsx(Hr,{children:k.jsxRuntimeExports.jsxs(Y.Form,{form:s,onFinish:L,labelCol:{flex:"100px"},disabled:!u||v,children:[k.jsxRuntimeExports.jsxs(Y.Row,{gutter:[16,8],children:[k.jsxRuntimeExports.jsxs(Y.Col,{span:8,children:[k.jsxRuntimeExports.jsx(Y.Form.Item,{name:"boardMstrId",hidden:!0,children:k.jsxRuntimeExports.jsx(Y.Input,{})}),k.jsxRuntimeExports.jsx(Qe.BwgSelect,{itemProps:{name:"type",label:"구분"},selectProps:{options:Gi}})]}),k.jsxRuntimeExports.jsxs(Y.Col,{span:16,children:[k.jsxRuntimeExports.jsx(Qe.BwgFormItem,{label:"화면 정보",name:void 0,children:k.jsxRuntimeExports.jsxs(Y.Space.Compact,{children:[k.jsxRuntimeExports.jsx(Y.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:k.jsxRuntimeExports.jsx(Y.Input,{readOnly:!0})}),k.jsxRuntimeExports.jsx(Y.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:k.jsxRuntimeExports.jsx(Y.Input,{readOnly:!0})})]})}),k.jsxRuntimeExports.jsx(Y.Form.Item,{name:"scrnId",style:{width:"100%"},hidden:!0,children:k.jsxRuntimeExports.jsx(Y.Input,{readOnly:!0})})]})]}),k.jsxRuntimeExports.jsxs(Y.Row,{gutter:[16,8],children:[k.jsxRuntimeExports.jsx(Y.Col,{span:8,children:k.jsxRuntimeExports.jsx(Qe.BwgFormItem,{label:"작성자",name:void 0,children:k.jsxRuntimeExports.jsxs(Y.Space.Compact,{style:{width:"100%"},children:[k.jsxRuntimeExports.jsx(Y.Form.Item,{name:"rgstUserId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:k.jsxRuntimeExports.jsx(Y.Input,{readOnly:!0})}),k.jsxRuntimeExports.jsx(Y.Form.Item,{name:"rgstUserNm",style:{width:"60%",marginBottom:0},children:k.jsxRuntimeExports.jsx(Y.Input,{readOnly:!0})})]})})}),k.jsxRuntimeExports.jsx(Y.Col,{span:8,children:k.jsxRuntimeExports.jsx(Qe.BwgDatePicker,{itemProps:{label:"작성일자",name:"rgstDt"},inputProps:{disabled:!0}})}),k.jsxRuntimeExports.jsx(Y.Col,{span:8,children:k.jsxRuntimeExports.jsx(Qe.BwgSelect,{itemProps:{name:"status",label:"상태"},selectProps:{options:Dh,disabled:!0}})})]}),k.jsxRuntimeExports.jsxs(Y.Row,{gutter:[16,8],children:[k.jsxRuntimeExports.jsx(Y.Col,{span:8,children:k.jsxRuntimeExports.jsx(Qe.BwgDatePicker,{itemProps:{label:"마감요청일",name:"dueDate"}})}),k.jsxRuntimeExports.jsx(Y.Col,{span:8,children:k.jsxRuntimeExports.jsxs(Y.Flex,{vertical:!0,gap:2,children:[k.jsxRuntimeExports.jsx("span",{style:{fontSize:"12px",color:"#000000E0"},children:"진척률"}),k.jsxRuntimeExports.jsx(Y.Progress,{percent:Fh[s.getFieldValue("status")],status:Fh[s.getFieldValue("status")]>0?"active":"normal",size:"small",format:oe=>`${oe}%`})]})}),k.jsxRuntimeExports.jsx(Y.Col,{span:8,children:k.jsxRuntimeExports.jsx(Qe.BwgCheck,{itemProps:{name:"urgentYn",label:"긴급여부"}})})]}),k.jsxRuntimeExports.jsxs(Y.Row,{gutter:[16,8],children:[k.jsxRuntimeExports.jsx(Y.Col,{span:8,children:k.jsxRuntimeExports.jsx(Qe.BwgFormItem,{label:"처리담당자",name:void 0,help:"",children:k.jsxRuntimeExports.jsxs(Y.Space.Compact,{children:[k.jsxRuntimeExports.jsx(Y.Form.Item,{name:"processor",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:k.jsxRuntimeExports.jsx(Y.Input,{readOnly:!0})}),k.jsxRuntimeExports.jsx(Y.Form.Item,{name:"processorNm",style:{width:"60%",marginBottom:0},children:k.jsxRuntimeExports.jsx(Y.Input,{readOnly:!0})})]})})}),k.jsxRuntimeExports.jsx(Y.Col,{span:8,children:k.jsxRuntimeExports.jsx(Qe.BwgDatePicker,{itemProps:{label:"처리일자",name:"processDt"}})})]}),k.jsxRuntimeExports.jsx(Y.Row,{gutter:[16,8],children:k.jsxRuntimeExports.jsx(Y.Col,{span:24,children:k.jsxRuntimeExports.jsx(Qe.BwgFormItem,{label:"제목",name:"title",style:{width:"100%"},children:k.jsxRuntimeExports.jsx(Y.Input,{})})})}),k.jsxRuntimeExports.jsx(bl,{border:!1,itemProps:{name:"content",label:"내용",rules:[{required:!0,message:"내용을 입력하세요."}]},editorProps:{isEditing:u&&!v,title:{title:"에디터"}}})]})})}),k.jsxRuntimeExports.jsx(Y.Splitter.Panel,{collapsible:!0,style:{paddingLeft:"15px"},children:k.jsxRuntimeExports.jsxs(Hr,{style:{flex:"0 0 400px",display:"flex",flexDirection:"column"},children:[k.jsxRuntimeExports.jsxs("div",{style:{borderBottom:"1px solid #e8e8e8",paddingBottom:"12px",marginBottom:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[k.jsxRuntimeExports.jsx("span",{style:{fontSize:"14px",fontWeight:"600",color:"#262626"},children:"댓글"}),k.jsxRuntimeExports.jsxs("div",{style:{position:"relative",display:"inline-block"},children:[k.jsxRuntimeExports.jsx(Y.Button,{type:"text",icon:k.jsxRuntimeExports.jsx(Te.ReloadOutlined,{spin:C||p}),onClick:V,disabled:C||p,size:"small",style:{fontSize:"12px",color:v?"#d9d9d9":p?"#8c8c8c":"#595959",height:"24px",padding:"0 8px"}}),!v&&k.jsxRuntimeExports.jsx("span",{style:{position:"absolute",top:"-4px",right:"-4px",fontSize:"10px",fontWeight:"700",color:C?"#8c8c8c":"#1890ff",minWidth:"14px",height:"14px",lineHeight:"14px",textAlign:"center",borderRadius:"50%",pointerEvents:"none"},children:j})]})]}),k.jsxRuntimeExports.jsx("div",{ref:_,style:{flex:1,overflowY:"auto",marginBottom:"16px",minHeight:0,position:"relative"},children:p?k.jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"200px",color:"#8c8c8c"},children:[k.jsxRuntimeExports.jsx("div",{style:{marginBottom:"12px"},children:k.jsxRuntimeExports.jsx(Te.ReloadOutlined,{spin:!0,style:{fontSize:"24px"}})}),k.jsxRuntimeExports.jsx("div",{style:{fontSize:"13px"},children:"댓글을 불러오는 중..."})]}):w.length===0?k.jsxRuntimeExports.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"200px",color:"#8c8c8c"},children:k.jsxRuntimeExports.jsx("div",{style:{fontSize:"13px"},children:"등록된 댓글이 없습니다."})}):k.jsxRuntimeExports.jsx(Y.List,{dataSource:w,renderItem:oe=>k.jsxRuntimeExports.jsxs(Y.List.Item,{style:{position:"relative",paddingRight:"20px",padding:"12px 20px 12px 12px",borderBottom:"1px solid #f0f0f0"},children:[k.jsxRuntimeExports.jsx(Y.List.Item.Meta,{avatar:k.jsxRuntimeExports.jsx(Y.Avatar,{size:32,style:{backgroundColor:"#1890ff",fontSize:"13px"},children:oe.author[0]}),title:k.jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"4px"},children:[k.jsxRuntimeExports.jsx("span",{style:{fontWeight:"500",fontSize:"13px",color:"#262626"},children:oe.author}),k.jsxRuntimeExports.jsx("span",{style:{fontSize:"11px",color:"#8c8c8c"},children:oe.regDt})]}),description:k.jsxRuntimeExports.jsx("span",{style:{fontSize:"13px",color:"#595959",lineHeight:"1.5"},children:oe.content})}),oe.regUserId===o?.userId&&k.jsxRuntimeExports.jsx(Y.Button,{type:"text",danger:!0,icon:k.jsxRuntimeExports.jsx(Te.DeleteOutlined,{style:{fontSize:"12px"}}),size:"small",onClick:()=>K(oe.id),disabled:p,style:{position:"absolute",right:"8px",top:"62%",transform:"translateY(-50%)",opacity:p?.3:.5,height:"24px",width:"24px",padding:0},onMouseEnter:se=>{p||(se.currentTarget.style.opacity="1")},onMouseLeave:se=>{se.currentTarget.style.opacity=p?"0.3":"0.5"}})]},oe.id)})}),k.jsxRuntimeExports.jsx("div",{style:{padding:"12px",borderTop:"1px solid #e8e8e8",backgroundColor:v?"#f5f5f5":"#fafafa",flexShrink:0,marginTop:"auto"},children:v?k.jsxRuntimeExports.jsxs("div",{style:{textAlign:"center",padding:"20px",color:"#8c8c8c",fontSize:"13px",backgroundColor:"#ffffff",borderRadius:"6px",border:"1px solid #e8e8e8"},children:[k.jsxRuntimeExports.jsx("div",{style:{marginBottom:"8px"},children:k.jsxRuntimeExports.jsx(Te.AlertTwoTone,{twoToneColor:"#faad14"})}),k.jsxRuntimeExports.jsx("div",{children:"이미 완료처리된 게시글입니다."}),k.jsxRuntimeExports.jsx("div",{style:{fontSize:"11px",marginTop:"4px"},children:"댓글을 작성할 수 없습니다."})]}):k.jsxRuntimeExports.jsxs(k.jsxRuntimeExports.Fragment,{children:[k.jsxRuntimeExports.jsx("div",{style:{marginBottom:"8px"},children:k.jsxRuntimeExports.jsx(KS,{rows:2,placeholder:p?"댓글 처리 중...":"댓글을 입력하세요...",value:T,onChange:oe=>O(oe.target.value),maxLength:300,disabled:p,style:{borderRadius:"6px",border:"1px solid #d9d9d9",resize:"none",fontSize:"13px",backgroundColor:p?"#f5f5f5":"#ffffff",color:p?"#8c8c8c":"#000000"},onFocus:oe=>{p||(oe.target.style.borderColor="#1890ff",oe.target.style.boxShadow="0 0 0 2px rgba(24, 144, 255, 0.05)")},onBlur:oe=>{oe.target.style.borderColor="#d9d9d9",oe.target.style.boxShadow="none"}})}),k.jsxRuntimeExports.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[k.jsxRuntimeExports.jsx("span",{style:{fontSize:"11px",color:"#8c8c8c"},children:p?"처리 중...":`${T.length} / 300자`}),k.jsxRuntimeExports.jsx(Y.Button,{type:"primary",onClick:U,size:"small",loading:p,style:{borderRadius:"4px",fontSize:"12px",height:"28px",padding:"0 16px",fontWeight:"500"},disabled:!T.trim()||p,children:p?"등록 중...":"등록"})]})]})})]})})]}),ce=()=>k.jsxRuntimeExports.jsx(Hr,{children:k.jsxRuntimeExports.jsxs(Qe.BwgForm,{form:s,onFinish:L,initialValues:{type:"INQR"},labelCol:{flex:"100px"},children:[k.jsxRuntimeExports.jsxs(Y.Row,{gutter:[16,8],children:[k.jsxRuntimeExports.jsx(Y.Col,{span:8,children:k.jsxRuntimeExports.jsx(Qe.BwgSelect,{itemProps:{name:"type",label:"구분",rules:[{required:!0,message:"구분을 선택해주세요."}]},selectProps:{options:Gi}})}),k.jsxRuntimeExports.jsxs(Y.Col,{span:16,children:[k.jsxRuntimeExports.jsx(Qe.BwgFormItem,{label:"화면 정보",name:void 0,children:k.jsxRuntimeExports.jsxs(Y.Space.Compact,{style:{width:"100%"},children:[k.jsxRuntimeExports.jsx(Y.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:k.jsxRuntimeExports.jsx(Y.Input,{readOnly:!0})}),k.jsxRuntimeExports.jsx(Y.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:k.jsxRuntimeExports.jsx(Y.Input,{readOnly:!0})})]})}),k.jsxRuntimeExports.jsx(Y.Form.Item,{name:"scrnId",style:{width:"100%"},hidden:!0,children:k.jsxRuntimeExports.jsx(Y.Input,{readOnly:!0})})]})]}),k.jsxRuntimeExports.jsxs(Y.Row,{gutter:[16,8],children:[k.jsxRuntimeExports.jsx(Y.Col,{span:8,children:k.jsxRuntimeExports.jsx(Qe.BwgFormItem,{label:"작성자",name:void 0,children:k.jsxRuntimeExports.jsxs(Y.Space.Compact,{style:{width:"100%"},children:[k.jsxRuntimeExports.jsx(Y.Form.Item,{name:"rgstUserId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:k.jsxRuntimeExports.jsx(Y.Input,{readOnly:!0})}),k.jsxRuntimeExports.jsx(Y.Form.Item,{name:"rgstUserNm",style:{width:"60%",marginBottom:0},children:k.jsxRuntimeExports.jsx(Y.Input,{readOnly:!0})})]})})}),k.jsxRuntimeExports.jsx(Y.Col,{span:6,children:k.jsxRuntimeExports.jsx(Qe.BwgFormItem,{label:"작성일자",name:"rgstDt",style:{width:"100%"},children:k.jsxRuntimeExports.jsx(Y.DatePicker,{disabled:!0})})}),k.jsxRuntimeExports.jsx(Y.Col,{span:6,children:k.jsxRuntimeExports.jsx(Qe.BwgFormItem,{label:"마감요청일",name:"dueDate",style:{width:"100%"},children:k.jsxRuntimeExports.jsx(Y.DatePicker,{})})}),k.jsxRuntimeExports.jsx(Y.Col,{span:4,children:k.jsxRuntimeExports.jsx(Qe.BwgCheck,{itemProps:{name:"urgentYn",label:"긴급여부"}})})]}),k.jsxRuntimeExports.jsx(Y.Row,{gutter:[16,8],children:k.jsxRuntimeExports.jsx(Y.Col,{span:24,children:k.jsxRuntimeExports.jsx(Qe.BwgFormItem,{label:"제목",name:"title",style:{width:"100%"},rules:[{required:!0,message:"제목을 입력해주세요."}],children:k.jsxRuntimeExports.jsx(Y.Input,{})})})}),k.jsxRuntimeExports.jsx(bl,{border:!1,itemProps:{name:"content"},editorProps:{isEditing:f,title:{title:k.jsxRuntimeExports.jsxs(k.jsxRuntimeExports.Fragment,{children:[k.jsxRuntimeExports.jsx(Te.EditOutlined,{style:{marginRight:"5px"}})," 상세내용 작성"]}),children:k.jsxRuntimeExports.jsx(Y.Button,{icon:k.jsxRuntimeExports.jsx(Te.EyeFilled,{}),onClick:()=>l(!f),children:"미리보기"})}}})]})});z.useEffect(()=>{m==="new"&&(l(!0),s.setFieldsValue({type:"INQR",menuId:a?.menuId,menuNm:a?.menuNm,scrnId:a?.scrnId,rgstUserId:o?.userId,rgstUserNm:o?.userNm,rgstDt:Pm(),content:""}))},[m,s,a,o]),z.useEffect(()=>{if(m==="detail"&&!v){const oe=setInterval(()=>{A(se=>se<=1?(console.log("🔄 댓글 자동 갱신 실행 (카운트다운 완료)"),re.SCMBoardDtls0001(s.getFieldValue("boardMstrId")),15):se-1)},1e3);return re.SCMBoardDtls0001(s.getFieldValue("boardMstrId")),()=>{console.log("🧹 댓글 인터벌 정리"),clearInterval(oe)}}else m==="detail"&&v&&(console.log("📋 완료된 게시글 - 댓글 조회만"),re.SCMBoardDtls0001(s.getFieldValue("boardMstrId")))},[m,v,s]),z.useEffect(()=>()=>{console.log("🧹 컴포넌트 언마운트 - 모든 인터벌 정리"),i.current&&(clearInterval(i.current),i.current=null)},[]),z.useEffect(()=>{m==="list"&&a&&(t?.current?.setFormData({menuId:a?.menuId,menuNm:a?.menuNm}),re.SCMBoardMstr0001(1,20))},[m,a]),z.useEffect(()=>{e&&a&&t?.current?.setFormData({menuId:a?.menuId,menuNm:a?.menuNm})},[e,a]);const re={SCMBoardMstr0001:async(oe,se)=>{const Q=oe||n.current?.currentPage||1,ee=se||n.current?.pageSize||20,ue={...t?.current?.getFormData(),pageNum:Q,pageCount:ee};console.log("🔍 서버 모드 페이징 요청:",ue);try{const le=await Me.callService("SCMBoardMstr0001",ue,{isPopup:!0});if(le&&le.pageList){const ae=le.pageCnt||0;n.current?.setTotalData(ae),I.current?.addAllData(le.pageList)}else n.current?.setTotalData(0),I.current?.addAllData([]),console.log("📭 서버 모드 페이징 데이터 없음")}catch(le){console.error("❌ SCMBoardMstr0001 호출 실패:",le),Y.message.error("데이터 조회 중 오류가 발생했습니다.")}},SCMBoardMstr0003:oe=>{Me.callService("SCMBoardMstr0003",{...oe,status:"READY"},{isPopup:!0}).then(se=>{console.log("문의/신고 제출 응답:",se),Y.message.success("정상 접수되었습니다."),P()}).catch(se=>{console.error("문의/신고 제출 실패:",se),Y.message.error("접수 중 오류가 발생했습니다.")})},SCMBoardMstr0004:oe=>{Me.callService("SCMBoardMstr0004",{boardMstrId:s.getFieldValue("boardMstrId"),...oe},{isPopup:!0}).then(se=>{console.log("문의/신고 제출 응답:",se),Y.message.success("수정이 완료되었습니다."),P()}).catch(se=>{console.error("문의/신고 변경 실패:",se)})},SCMBoardMstr0005:()=>{Me.callService("SCMBoardMstr0005",{boardMstrId:s.getFieldValue("boardMstrId")},{isPopup:!0}).then(oe=>{console.log("문의/신고 삭제 응답:",oe),Y.message.success("삭제가 완료되었습니다."),P()})},SCMBoardDtls0001:oe=>{g(!0),Me.callService("SCMBoardDtls0001",{boardMstrId:oe},{isPopup:!0,showLoading:!1}).then(se=>{if(se&&se.subList){const Q=se.subList.map(ee=>({id:ee.seq,author:ee.userNm||ee.regUserId,regUserId:ee.regUserId,content:ee.content,regDt:ee.regDt}));S(Q)}else S([])}).catch(se=>{console.error("게시글 댓글 목록 조회 실패:",se),Y.message.error("댓글 목록 조회 중 오류가 발생했습니다.")}).finally(()=>{g(!1),A(15)})},SCMBoardDtls0002:(oe,se)=>{g(!0),Me.callService("SCMBoardDtls0002",{boardMstrId:oe,content:se},{isPopup:!0,showLoading:!1}).then(Q=>{Q&&Q.result===1?(Y.message.success("댓글이 등록되었습니다."),re.SCMBoardDtls0001(oe)):Y.message.error("댓글 등록에 실패했습니다.")}).catch(Q=>{Y.message.error("댓글 등록 중 오류가 발생했습니다.")}).finally(()=>{g(!1)})},SCMBoardDtls0003:(oe,se)=>{g(!0),Me.callService("SCMBoardDtls0003",{boardMstrId:oe,seq:se},{isPopup:!0,showLoading:!1}).then(Q=>{Q&&Q.result===1?(Y.message.success("댓글이 삭제되었습니다."),re.SCMBoardDtls0001(oe)):Y.message.error("댓글 삭제에 실패했습니다.")}).catch(Q=>{Y.message.error("댓글 삭제 중 오류가 발생했습니다.")}).finally(()=>{g(!1)})}},de=()=>{switch(m){case"list":return[{key:"REFRESH",text:"조회",type:"default",onClick:()=>re.SCMBoardMstr0001(),disabled:c},{key:"NEW",text:"신규 등록",type:"primary",onClick:N}];case"detail":return[{key:"BACK",text:"뒤로",type:"default",onClick:q},{key:"EDIT",text:"수정",type:"primary",disabled:!u||v,onClick:()=>s.submit()},{key:"DELETE",text:"삭제",danger:!0,disabled:!u||v,onClick:B}];case"new":return[{key:"SUBMIT",text:"제출",type:"primary",onClick:()=>s.submit(),disabled:c},{key:"CANCEL",text:"취소",type:"default",onClick:X}];default:return[]}};return e?k.jsxRuntimeExports.jsxs(GS,{title:"게시판",width:1400,height:800,minWidth:600,minHeight:400,onClose:W,buttons:de(),children:[m==="list"&&J(),m==="detail"&&ne(),m==="new"&&ce()]}):null},Am=(e,r,t=null)=>{for(let n=0;n<e.length;n++){const i=e[n];if(i.key===r)return{node:i,ctx:{parent:t,index:n,siblings:e}};if(i.children?.length){const o=Am(i.children,r,i);if(o.node)return o}}return{node:null,ctx:null}},km=(e,r)=>{if(!e.children)return!1;for(const t of e.children)if(t.key===r||km(t,r))return!0;return!1};function QS({open:e,onClose:r}){const{nodes:t,rootIds:n,addFolder:i,editFolder:o,removeFolder:a,removeMenu:s,moveNode:c}=Zn.useFavoriteStore(),d=z.useRef(null),[f,l]=z.useState([]),[u,h]=z.useState([]),[v,b]=z.useState(""),[p,g]=z.useState("ADD"),[m,x]=z.useState(!1),[y,E]=z.useState("");z.useEffect(()=>{e&&h(n)},[e]),z.useEffect(()=>{const S=_(t,n);l(S)},[t]),z.useEffect(()=>{m&&y&&(d.current.setFieldValue("prntBkmkId",y),d.current.setFieldValue("prntBkmkNm",t[y]?.bkmkNm??"-")),m&&p==="EDIT"&&(d.current.setFieldValue("bkmkId",y),d.current.setFieldValue("bkmkNm",t[y]?.bkmkNm)),!m&&p=="ADD"&&h(S=>[...S,y]),!m&&d.current&&(E("-"),d.current.resetFields())},[m,p,y,t]);const _=(S,T)=>{const O=(C,R="-")=>{const j=S[C];if(!j)return null;const A={key:j.bkmkId,type:j.type,title:j.type==="F"?j.bkmkNm:j.menuNm?`${j.menuNm} (${j.menuId})`:j.menuId,parentId:R,sortOrdr:j.sortOrdr??0};if(j.type==="F"){const $=(j.children??[]).map(H=>O(H,j.bkmkId)).filter(Boolean);return{...A,children:$}}return A};return T.map(C=>O(C,"-")).filter(Boolean)},w=()=>{if(g("ADD"),!v){E("-"),x(!0);return}const S=t[v];if(!S){E("-"),x(!0);return}S.type==="F"?E(S.bkmkId):E(S.prntBkmkId),x(!0)};return k.jsxRuntimeExports.jsxs(Y.ConfigProvider,{theme:{components:{Modal:{wireframe:!0}}},children:[k.jsxRuntimeExports.jsxs(Y.Modal,{open:e,okButtonProps:{style:{display:"none"}},cancelText:"닫기",width:560,style:{zIndex:1001},styles:{body:{paddingTop:"12px"}},title:k.jsxRuntimeExports.jsx("div",{style:{display:"flex",alignItems:"center",gap:12},children:k.jsxRuntimeExports.jsxs(Y.Typography.Text,{strong:!0,style:{fontSize:18},children:[k.jsxRuntimeExports.jsx(Te.FolderOpenFilled,{style:{marginRight:10,fontSize:18,color:"#faad14"}}),"북마크 관리"]})}),onCancel:r,children:[k.jsxRuntimeExports.jsxs("div",{style:{width:"100%",display:"flex",justifyContent:"space-between",marginBottom:10},children:[k.jsxRuntimeExports.jsx(Y.Button,{color:"blue",variant:"outlined",icon:k.jsxRuntimeExports.jsx(Te.FolderAddOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:w,children:"새 폴더"}),k.jsxRuntimeExports.jsxs("div",{children:[k.jsxRuntimeExports.jsx(Y.Tooltip,{title:"펼치기",children:k.jsxRuntimeExports.jsx(Y.Button,{icon:k.jsxRuntimeExports.jsx(Te.PlusSquareOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:()=>{const S=Object.values(t).filter(T=>T.type==="F").map(T=>T.bkmkId);h(S)}})}),k.jsxRuntimeExports.jsx(Y.Tooltip,{title:"접기",children:k.jsxRuntimeExports.jsx(Y.Button,{icon:k.jsxRuntimeExports.jsx(Te.MinusSquareOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:()=>h([])})})]})]}),k.jsxRuntimeExports.jsxs("div",{style:{maxHeight:420,height:350,overflow:"auto",border:"1px solid #f0f0f0",borderRadius:8,padding:8},children:[f.length==0&&k.jsxRuntimeExports.jsx(Y.Empty,{description:k.jsxRuntimeExports.jsxs(Y.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",k.jsxRuntimeExports.jsx("br",{}),"새로운 폴더를 생성해보세요."]})}),k.jsxRuntimeExports.jsx(Y.Tree,{blockNode:!0,draggable:!0,allowDrop:({dropNode:S,dropPosition:T})=>{const O=S.type==="F";return T===0?O:!0},onDrop:S=>{const{dragNode:T,node:O,dropPosition:C,dropToGap:R}=S;if(T.key===O.key||km(T,O.key))return;let j,A;if(R){const $=Am(f,O.key).ctx;$.siblings;const H=$.index;j=$.parent?$.parent.key:"-",A=C>0?H+1:H}else{if(O.type!=="F")return;const $=O.children||[];j=O.key,A=$.length}const I=Me.getUserId();if(T.type==="F")c({bkmkId:T.key,newPrntBkmkId:j,sortOrdr:A,userId:I}).catch(()=>{Y.Modal.error({title:"이동 실패",content:"폴더 이동 중 오류가 발생했어요."})});else{if(j==="-"){Y.Modal.warning({title:"이동 불가",content:"메뉴는 최상위로 이동할 수 없어요."});return}c({bkmkId:T.key,newPrntBkmkId:j,sortOrdr:A,userId:I}).catch(()=>{Y.Modal.error({title:"이동 실패",content:"메뉴 이동 중 오류가 발생했어요."})})}R===!1&&h($=>Array.from(new Set([...$,O.key])))},showLine:!0,treeData:f,selectedKeys:[v],expandedKeys:u,onExpand:h,onSelect:S=>b(S[0]),titleRender:S=>k.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[k.jsxRuntimeExports.jsxs("span",{children:[S.type==="F"?"📁":"📄"," ",S.title,S.isNew?k.jsxRuntimeExports.jsx(Y.Tag,{color:"gold",style:{marginLeft:4,fontSize:"10px",height:"16px",lineHeight:"16px",padding:"0 5px"},children:"N"}):null]}),k.jsxRuntimeExports.jsxs("span",{style:{display:"inline-flex",gap:8},children:[S.type==="F"&&k.jsxRuntimeExports.jsxs(k.jsxRuntimeExports.Fragment,{children:[k.jsxRuntimeExports.jsx(Te.PlusOutlined,{style:{opacity:.8},onClick:()=>{g("ADD"),E(S.key),x(!0)}}),k.jsxRuntimeExports.jsx(Te.EditOutlined,{style:{opacity:.8},onClick:()=>{g("EDIT"),E(S.key),x(!0)}})]}),k.jsxRuntimeExports.jsx(Te.DeleteOutlined,{style:{cursor:"pointer",opacity:.5},onClick:()=>{S.type==="F"?Y.Modal.confirm({title:"삭제 안내",content:"폴더를 삭제하면 하위 폴더와 메뉴도 모두 삭제됩니다. 삭제하시겠습니까?",centered:!0,onOk:()=>a(S.key)}):Y.Modal.confirm({title:"삭제 안내",centered:!0,content:"메뉴를 삭제하시겠습니까?",onOk:()=>s(S.key)})}})]})]})})]})]}),k.jsxRuntimeExports.jsx(Y.ConfigProvider,{theme:{components:{Modal:{titleColor:p==="ADD"?"#0958d9":"#d46b08",headerBg:p==="ADD"?"#e6f4ff":"#fff7e6"}}},children:k.jsxRuntimeExports.jsx(Y.Modal,{title:k.jsxRuntimeExports.jsxs(k.jsxRuntimeExports.Fragment,{children:[p==="ADD"?k.jsxRuntimeExports.jsx(Te.FolderAddOutlined,{style:{marginRight:10,fontSize:18,color:"#1677ff"}}):k.jsxRuntimeExports.jsx(Te.EditOutlined,{style:{marginRight:10,fontSize:18,color:"#d46b08"}}),k.jsxRuntimeExports.jsxs(Y.Typography.Text,{strong:!0,style:{fontSize:17},children:["폴더",p==="ADD"?" 추가":"명 수정"]})]}),open:m,okText:"저장",onOk:()=>{const S=d.current.getFieldValue("bkmkNm"),T=Me.getUserId();if(p==="ADD"){const O=__SYS_CD__??"KH",C=d.current.getFieldValue("prntBkmkId");i(S,C,O,T).then(()=>{x(!1)})}else{const O=d.current.getFieldValue("bkmkId");o(O,T,S).then(()=>{x(!1)})}},centered:!0,width:400,onCancel:()=>x(!1),children:k.jsxRuntimeExports.jsxs(Qe.BwgForm,{ref:d,children:[k.jsxRuntimeExports.jsx(Qe.BwgInput,{itemProps:{name:p==="EDIT"?"bkmkId":"prntBkmkId",hidden:!0}}),k.jsxRuntimeExports.jsx(Qe.BwgInput,{itemProps:{label:"상위 폴더명",name:"prntBkmkNm",hidden:y==="-"||p==="EDIT"},inputProps:{disabled:!0}}),k.jsxRuntimeExports.jsx(Qe.BwgInput,{itemProps:{label:"폴더명",name:"bkmkNm"}})]})})})]})}function JS({triggerIcon:e}){const[r,t]=z.useState(!1),[n,i]=z.useState(""),[o,a]=z.useState(null),[s,c]=z.useState([]),[d,f]=z.useState([]),[l,u]=z.useState(!1),[h,v]=z.useState(!1),[b,p]=z.useState(!1),[g,m]=z.useState(null);Zn.useFavoriteStore(D=>D.treeNodes);const{nodes:x,getPrntBkmkIdByMenuId:y,getNodeByMenuId:E,isMenuBookmarked:_,removeMenuByMenuId:w,addMenuToFolder:S,convertToAntTreeData:T}=Zn.useFavoriteStore(),O=Zn.useFavoriteStore(D=>D.rootIds),C=z.useMemo(()=>T(x,O,n,!0),[x,O,n]),R=Me.useMenuViewStore(D=>D.activeMenuItem??{menuId:"",menuNm:""}),j=z.useMemo(()=>{if(!R?.menuId)return"";const D=E(R.menuId);if(!D)return"";if(D.fullPath)return D.fullPath;const F=P=>{const L=x[P];if(!L)return"";if(L.prntBkmkId==="-")return`${L.bkmkNm||R?.menuNm}`;const B=F(L.prntBkmkId);return B?`${B} > ${L.bkmkNm||R?.menuNm}`:L.bkmkNm||R?.menuNm};return console.log("bookmarkNode ::::: ",D),console.log(F(D.bkmkId)),F(D.bkmkId)},[R?.menuId,E,x]);z.useEffect(()=>{r&&R?.menuId&&_(R.menuId)?f([y(R.menuId)]):r&&R?.menuId&&!_(R.menuId)?f(O):(f([]),c([]),m(null),p(!1))},[r,R?.menuId,_,y]),z.useEffect(()=>{if(!b||!R?.menuId)return;const D=y(R.menuId);!D||!x[D]||(i(""),c([D]),m(D))},[b,R?.menuId,x,y]);const A=(D,F)=>{S(D,F).then(P=>{console.log("AddMenuToFolder ::::: ",P),P||f(L=>L.includes(D)?L:[...L,D])})},I=D=>{w(D)},$=async D=>{R?.menuId&&(await w(R.menuId),await S(D,R),p(!1),m(null),f(F=>F.includes(D)?F:[...F,D]))},H=()=>k.jsxRuntimeExports.jsxs("div",{style:{width:360},children:[k.jsxRuntimeExports.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:k.jsxRuntimeExports.jsxs(Y.Space,{direction:"vertical",style:{width:"100%"},children:[k.jsxRuntimeExports.jsxs(Y.Typography.Text,{strong:!0,style:{fontSize:18},children:[k.jsxRuntimeExports.jsx(Y.Button,{type:"text",icon:k.jsxRuntimeExports.jsx(Te.ArrowLeftOutlined,{}),onClick:()=>p(!1),style:{marginRight:4}}),"폴더 변경"]}),R&&k.jsxRuntimeExports.jsxs(Y.Typography.Text,{type:"secondary",children:["현재 화면: ",k.jsxRuntimeExports.jsx("b",{children:R.menuNm})," ",k.jsxRuntimeExports.jsxs("span",{style:{opacity:.7},children:["(",R.menuId,")"]})]})]})}),G(),k.jsxRuntimeExports.jsxs("div",{style:{padding:12,borderTop:"1px solid #f0f0f0",display:"flex",justifyContent:"flex-end",gap:8},children:[k.jsxRuntimeExports.jsx(Y.Button,{onClick:()=>{p(!1),m(null)},children:"취소"}),k.jsxRuntimeExports.jsx(Y.Button,{type:"primary",disabled:!g,onClick:()=>g&&$(String(g)),children:"이동"})]})]}),G=()=>k.jsxRuntimeExports.jsxs("div",{style:{maxHeight:360,overflow:"auto",padding:8},children:[k.jsxRuntimeExports.jsxs(Y.Space,{style:{width:"100%",marginBottom:8,display:"flex",justifyContent:"space-between"},children:[k.jsxRuntimeExports.jsx(Y.Input,{placeholder:"검색(폴더명)",prefix:k.jsxRuntimeExports.jsx(Te.SearchOutlined,{}),allowClear:!0,value:n,onChange:D=>i(D.target.value),style:{width:"260px",height:28}}),k.jsxRuntimeExports.jsxs(Y.ConfigProvider,{theme:{components:{Button:{defaultHoverColor:"#6f6f6f",defaultHoverBorderColor:"#6f6f6f"}}},children:[k.jsxRuntimeExports.jsx(Y.Button,{icon:k.jsxRuntimeExports.jsx(Te.PlusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>{const D=Object.values(x).filter(F=>F.type==="F").map(F=>F.bkmkId);f(D)},title:"모두 확장"}),k.jsxRuntimeExports.jsx(Y.Button,{icon:k.jsxRuntimeExports.jsx(Te.MinusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>f([]),title:"모두 축소"})]})]}),C.length===0?k.jsxRuntimeExports.jsx(Y.Empty,{description:k.jsxRuntimeExports.jsxs(Y.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",k.jsxRuntimeExports.jsx("br",{}),"새로운 폴더를 만들어 시작해보세요."]}),image:Y.Empty.PRESENTED_IMAGE_SIMPLE}):k.jsxRuntimeExports.jsx(Y.Tree,{blockNode:!0,showLine:!0,treeData:C,selectedKeys:s,expandedKeys:d,onExpand:f,onSelect:D=>{c(D),m(D[0])},autoExpandParent:!0,titleRender:D=>{const F=String(D.key),P=o===F;return k.jsxRuntimeExports.jsxs("div",{onMouseEnter:()=>a(F),onMouseLeave:()=>a(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[k.jsxRuntimeExports.jsx("div",{children:D.title}),!_(R?.menuId)&&R&&P&&k.jsxRuntimeExports.jsx(Y.Button,{size:"small",type:"link",onClick:L=>{L.stopPropagation(),A(F,R)},children:"+ 현재화면 추가"})]})}})]});return k.jsxRuntimeExports.jsxs(k.jsxRuntimeExports.Fragment,{children:[k.jsxRuntimeExports.jsx(Y.Popover,{open:r&&!l,onOpenChange:t,trigger:"click",placement:"bottomLeft",styles:{body:{padding:0,borderRadius:12,border:"1px solid #e8edf5",boxShadow:"0 12px 32px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08)",background:"#fcfcff",zIndex:1e3}},content:b?H():k.jsxRuntimeExports.jsxs("div",{style:{width:360},children:[k.jsxRuntimeExports.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:k.jsxRuntimeExports.jsxs(Y.Space,{direction:"vertical",style:{width:"100%"},children:[k.jsxRuntimeExports.jsxs(Y.Typography.Text,{strong:!0,style:{fontSize:18},children:["📌 북마크"," ",_(R?.menuId)?"저장됨":"추가"]}),R&&k.jsxRuntimeExports.jsxs(Y.Typography.Text,{type:"secondary",children:["현재 화면: ",k.jsxRuntimeExports.jsx("b",{children:R.menuNm})," ",k.jsxRuntimeExports.jsxs("span",{style:{opacity:.7},children:["(",R.menuId,")"]})]})]})}),_(R?.menuId)?k.jsxRuntimeExports.jsxs("div",{style:{padding:12,margin:8,borderRadius:8,backgroundColor:"#f5f5f5"},children:[k.jsxRuntimeExports.jsx(Y.Typography.Text,{type:"secondary",style:{fontSize:12},children:"저장 위치"}),k.jsxRuntimeExports.jsx("div",{style:{marginTop:4},children:`📁 > ${j}`||"알 수 없음"})]}):G(),k.jsxRuntimeExports.jsxs(Wr,{style:{padding:8,borderTop:"1px solid #f0f0f0"},layoutAlign:"right",children:[R&&!_(R.menuId)?k.jsxRuntimeExports.jsx(Y.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},type:"primary",icon:k.jsxRuntimeExports.jsx(Te.PlusOutlined,{}),onClick:()=>{const D=String(s[0]);let F="-";D&&x[D]&&(F=x[D].type=="M"?x[D].prntBkmkId:D),A(F,R)},children:"추가"}):k.jsxRuntimeExports.jsxs(Wr,{layoutAlign:"between",children:[k.jsxRuntimeExports.jsx(Y.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:k.jsxRuntimeExports.jsx(Te.FolderOpenOutlined,{}),onClick:()=>p(!0),children:"폴더 변경"}),k.jsxRuntimeExports.jsx(Y.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},color:"danger",variant:"solid",icon:k.jsxRuntimeExports.jsx(Te.MinusOutlined,{}),onClick:()=>I(R.menuId),children:"삭제"})]}),k.jsxRuntimeExports.jsx(Y.Button,{type:"text",style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:k.jsxRuntimeExports.jsx(Te.SettingOutlined,{}),onClick:()=>{v(r),u(!0)},children:"관리"})]})]}),children:k.jsxRuntimeExports.jsx("span",{style:{cursor:"pointer",display:"inline-flex",alignItems:"center"},children:e})}),k.jsxRuntimeExports.jsx(QS,{open:l,onClose:()=>{u(!1),h&&t(!0)}})]})}const e_=({reqRows:e,subRows:r})=>{const{searchBoxRef:t}=yo.useSearchBox();return k.jsxRuntimeExports.jsx(Eo,{ref:t,reqRows:e,subRows:r})},t_=({children:e,searchBox:r,title:t,preRenderEvents:n=[],postRenderEvents:i=[],loading:o=!1,error:a=null,grantEvent:s={},customEvent:c={}})=>{const d=yo.useServiceCodeValue("AUTH_BTNS"),{user:f,isLoggedIn:l}=Me.useUserStore(),{activeMenuItem:u}=Me.useMenuViewStore(),{loadFavoritesIfNeeded:h,isMenuBookmarked:v,addMenuToFolder:b}=Zn.useFavoriteStore(),{loading:p}=Me.useLoadingStore(),[g,m]=z.useState({isInitialized:!1,isReady:!1,error:null,loading:!0,preRenderComplete:!1,postRenderComplete:!1}),[x,y]=z.useState(null),[E,_]=z.useState([]),[w,S]=z.useState([]),[T,O]=z.useState(!1),C=async()=>{if(n.length===0){m(D=>({...D,preRenderComplete:!0}));return}try{for(const D of n)await D();m(D=>({...D,preRenderComplete:!0}))}catch(D){m(F=>({...F,error:D instanceof Error?D.message:"사전 렌더링 실패",preRenderComplete:!0}))}},R=async()=>{if(i.length===0){m(D=>({...D,postRenderComplete:!0}));return}try{for(const D of i)await D();m(D=>({...D,postRenderComplete:!0}))}catch(D){m(F=>({...F,error:D instanceof Error?D.message:"사후 렌더링 실패",postRenderComplete:!0}))}};z.useEffect(()=>{if(g.isInitialized)return;(async()=>{try{try{console.log("SCMSIGN00202 권한 서비스 호출 시작");const F=await Me.callService(d,{crprCd:f?.crprCd,userId:f?.userId,menuId:u?.menuId});if(console.log("SCMSIGN00202 권한 서비스 응답:",F),F?.data&&F.data.length>0){const P=F.data?.filter(B=>B.grpId?.toUpperCase()==="DEFAULT").map(B=>({id:B.btnId,label:B.btnNm,type:"default",disabled:!1,onClick:s[B.btnId]||void 0}))||[];_(P);const L=F.data?.filter(B=>B.grpId?.toUpperCase()==="CUSTOM").map(B=>({id:B.btnId,label:B.btnNm,type:"default",disabled:!1,onClick:c[B.btnId]||void 0}))||[];S(L)}else _([]),S([])}catch(F){console.error("SCMSIGN00202 권한 서비스 호출 실패:",F),_([]),S([])}await C(),m(F=>({...F,isInitialized:!0,loading:!1}))}catch(F){console.error("BwgView 초기화 실패:",F),m(P=>({...P,isInitialized:!0,loading:!1}))}})()},[]),z.useEffect(()=>{f?.userId&&h(f.userId)},[h,f?.userId]),z.useEffect(()=>{g.isInitialized&&g.preRenderComplete&&!g.isReady&&setTimeout(async()=>{await R(),m(F=>({...F,isReady:!0}))},100)},[g.isInitialized,g.preRenderComplete,g.isReady]),z.useEffect(()=>{a&&m(D=>({...D,error:a}))},[a]);const j=()=>k.jsxRuntimeExports.jsxs("div",{className:"bwgview-header-container",children:[k.jsxRuntimeExports.jsxs("div",{className:"bwgview-header",children:[k.jsxRuntimeExports.jsx("div",{className:"bwgview-header-left",children:G.LEFT}),k.jsxRuntimeExports.jsx("div",{className:"bwgview-header-right",children:G.RIGHT})]}),r&&k.jsxRuntimeExports.jsx(e_,{reqRows:r.reqRows,subRows:r.subRows})]});if(z.useEffect(()=>{},[f,u]),g.error||a)return k.jsxRuntimeExports.jsx("div",{style:{padding:"24px"},children:k.jsxRuntimeExports.jsx(Y.Alert,{message:"오류 발생",description:g.error||a,type:"error",showIcon:!0})});const A=()=>k.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:k.jsxRuntimeExports.jsx("path",{d:"M9.9348 1.4645C10.2382 0.845167 10.7437 0.845167 11.0597 1.4645L13.0694 5.5344C13.3727 6.15374 14.1943 6.74779 14.8768 6.84891L19.3638 7.50616C20.0464 7.60727 20.2107 8.08757 19.7051 8.56787L16.4568 11.7277C15.9638 12.208 15.6478 13.1686 15.7616 13.8512L16.5326 18.3129C16.6464 18.9954 16.2419 19.2988 15.6226 18.9701L11.6159 16.8594C10.9965 16.5307 9.998 16.5307 9.37867 16.8594L5.37196 18.9701C4.75263 19.2988 4.34817 18.9954 4.46192 18.3129L5.23293 13.8512C5.34668 13.1686 5.04334 12.208 4.53776 11.7277L1.28942 8.56787C0.79648 8.08757 0.948154 7.60727 1.63068 7.50616L6.11769 6.84891C6.80022 6.74779 7.62179 6.15374 7.92513 5.5344L9.9348 1.4645Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10"})}),I=()=>k.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:k.jsxRuntimeExports.jsx("path",{d:"M9.9348 1.4645C10.2382 0.845167 10.7437 0.845167 11.0597 1.4645L13.0694 5.5344C13.3727 6.15374 14.1943 6.74779 14.8768 6.84891L19.3638 7.50616C20.0464 7.60727 20.2107 8.08757 19.7051 8.56787L16.4568 11.7277C15.9638 12.208 15.6478 13.1686 15.7616 13.8512L16.5326 18.3129C16.6464 18.9954 16.2419 19.2988 15.6226 18.9701L11.6159 16.8594C10.9965 16.5307 9.998 16.5307 9.37867 16.8594L5.37196 18.9701C4.75263 19.2988 4.34817 18.9954 4.46192 18.3129L5.23293 13.8512C5.34668 13.1686 5.04334 12.208 4.53776 11.7277L1.28942 8.56787C0.79648 8.08757 0.948154 7.60727 1.63068 7.50616L6.11769 6.84891C6.80022 6.74779 7.62178 6.15374 7.92513 5.5344L9.9348 1.4645Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",fill:"none"})}),$=D=>k.jsxRuntimeExports.jsx(Te,{component:A,...D}),H=D=>k.jsxRuntimeExports.jsx(Te,{component:I,...D}),G={LEFT:k.jsxRuntimeExports.jsx("div",{className:"bwgview-header-left",children:k.jsxRuntimeExports.jsxs(Y.ConfigProvider,{theme:{components:{Tag:{controlHeight:28,controlHeightLG:28,controlHeightSM:28,controlHeightXS:28}}},children:[k.jsxRuntimeExports.jsxs(Y.Space,{children:[u&&k.jsxRuntimeExports.jsx(JS,{triggerIcon:v(u.menuId)?k.jsxRuntimeExports.jsx($,{className:"bookmark-icon",style:{color:"#faad14"}}):k.jsxRuntimeExports.jsx(H,{className:"bookmark-icon"})}),k.jsxRuntimeExports.jsxs(Y.Space.Compact,{style:{alignItems:"center"},children:[k.jsxRuntimeExports.jsx("span",{className:"pageMenuNm",children:(()=>{let D="";return t?.useMenuTitle&&u?D=u.menuNm:t?.text?D=t.text:u&&(D=u.menuPrntId==="CM00"?u.menuNm.substring(u.menuNm.indexOf(" ")+1):u.menuNm),t?.prefix&&(D=`${t.prefix} ${D}`),t?.suffix&&(D=`${D} ${t.suffix}`),D})()}),u?.menuNo&&k.jsxRuntimeExports.jsx(Y.Tag,{className:"page-num-tag",children:u?.menuNo}),k.jsxRuntimeExports.jsx(Y.Tooltip,{title:"도움말",color:"geekblue",children:k.jsxRuntimeExports.jsx(Y.Button,{variant:"text",type:"text",className:"menu-help-btn",icon:k.jsxRuntimeExports.jsx(Te.QuestionCircleTwoTone,{twoToneColor:"orange"})})}),k.jsxRuntimeExports.jsx(Y.Tooltip,{title:"게시판",color:"geekblue",children:k.jsxRuntimeExports.jsx(Y.Button,{variant:"text",type:"text",onClick:()=>O(!0),icon:k.jsxRuntimeExports.jsx(Te.BugFilled,{style:{color:"#1890ff"}})})})]})]}),u?.scrnId&&Me.isLocal&&k.jsxRuntimeExports.jsx(Y.Tag,{style:{marginLeft:8,fontSize:13,fontWeight:500,display:"flex"},children:k.jsxRuntimeExports.jsx(WS,{copyable:!0,style:{display:"inherit",justifyContent:"center",alignItems:"center",marginBottom:0},children:u?.scrnId})})]})}),RIGHT:k.jsxRuntimeExports.jsx("div",{className:"bwgview-header-right",children:k.jsxRuntimeExports.jsx(Y.ConfigProvider,{theme:{components:{Space:{padding:8}}},children:k.jsxRuntimeExports.jsxs(Y.Space,{children:[k.jsxRuntimeExports.jsx(Y.Flex,{gap:8,children:w.map(D=>k.jsxRuntimeExports.jsx(Y.Button,{type:D.type,disabled:D.disabled,className:"bwg-btn",onClick:()=>{typeof D.onClick=="function"&&D.onClick()},children:D.label},D.id))}),k.jsxRuntimeExports.jsx(Y.ConfigProvider,{theme:{components:{Divider:{verticalMarginInline:0}}},children:k.jsxRuntimeExports.jsx(Y.Divider,{type:"vertical"})}),k.jsxRuntimeExports.jsx(Y.Flex,{gap:8,className:"permission-buttons",children:E.length>0?E.map(D=>k.jsxRuntimeExports.jsx(Y.Button,{type:D.type,disabled:D.disabled,className:"bwg-btn",onClick:()=>{typeof D.onClick=="function"&&D.onClick()},children:D.label},D.id)):k.jsxRuntimeExports.jsx(Y.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})})]})})})};return k.jsxRuntimeExports.jsxs("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:[j(),k.jsxRuntimeExports.jsxs("div",{className:"bwgview-content",children:[k.jsxRuntimeExports.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:e}),(g.loading||o||p)&&k.jsxRuntimeExports.jsx(Bh.LoadingOverlay,{title:p?"처리 중...":"화면 로드 중..."})]}),k.jsxRuntimeExports.jsx(ZS,{open:T,onClose:()=>O(!1)})]})},r_=({children:e,customTheme:r,customComponentSize:t="middle"})=>{const n={token:{colorPrimary:"#1890ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1890ff",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',fontSize:14,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,padding:16,margin:16,borderRadius:6,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",boxShadowSecondary:"0 2px 4px rgba(0, 0, 0, 0.12)"},algorithm:Y.theme.defaultAlgorithm},i={...n,...r,token:{...n.token,...r?.token}};return k.jsxRuntimeExports.jsx(Y.ConfigProvider,{locale:Uh,theme:i,componentSize:t,space:{size:t},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},children:e})},n_="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_9273)'%3e%3cpath%20d='M25.9254%2020.8996C27.5151%2020.8996%2028.8039%2019.6108%2028.8039%2018.0211C28.8039%2016.4313%2027.5151%2015.1426%2025.9254%2015.1426C24.3356%2015.1426%2023.0469%2016.4313%2023.0469%2018.0211C23.0469%2019.6108%2024.3356%2020.8996%2025.9254%2020.8996Z'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M31.4825%2032.4711V25.9066C31.4825%2024.5671%2030.485%2023.4746%2029.2595%2023.4746H22.6C21.3745%2023.4746%2020.377%2024.5671%2020.377%2025.9066'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M25.2696%2026.7334H14.2686L16.5106%2032.6234H27.5021L25.2696%2026.7334Z'%20stroke='%23925CFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.5617%2018.8385C6.1462%2017.4135%205.2627%2015.447%205.2627%2013.2715C5.2627%208.91095%208.7967%205.37695%2013.1572%205.37695C17.5177%205.37695%2021.0517%208.91095%2021.0517%2013.2715C21.0517%2015.124%2020.4152%2016.815%2019.3512%2018.164C18.0497%2019.8075%2016.1117%2020.919%2013.9172%2021.128'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.1572%2013.2715L16.0167%2015.5705'%20stroke='%23925CFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.1572%208.62598V13.2715'%20stroke='%23925CFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.35963%2016.1973L7.84663%2019.1328L4.91113%2018.6293'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.91113%2032.623H33.0881'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_127_9273'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",i_="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_9289)'%3e%3cpath%20d='M27.3705%2010.9919C28.5405%2010.9919%2029.489%2010.0434%2029.489%208.87338C29.489%207.70337%2028.5405%206.75488%2027.3705%206.75488C26.2004%206.75488%2025.252%207.70337%2025.252%208.87338C25.252%2010.0434%2026.2004%2010.9919%2027.3705%2010.9919Z'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M30.3053%2017.2998V32.3098H24.4248V17.2998'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M27.3701%2032.31V23.3135'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M22.2305%2022.1925V17.642V15.6945C22.2305%2014.3075%2023.3515%2013.1865%2024.7385%2013.1865H29.9825C31.3695%2013.1865%2032.4905%2014.3075%2032.4905%2015.6945V17.642V22.1925'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.2519%2021.4229H18.6199C19.1044%2021.4229%2019.5034%2021.8219%2019.5034%2022.3064V24.4154H16.3779V22.3064C16.3779%2021.8219%2016.7769%2021.4229%2017.2614%2021.4229H17.2519Z'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M20.8339%2024.4062H15.0294C14.6254%2024.4062%2014.2979%2024.7338%2014.2979%2025.1377V31.6832C14.2979%2032.0872%2014.6254%2032.4147%2015.0294%2032.4147H20.8339C21.2378%2032.4147%2021.5654%2032.0872%2021.5654%2031.6832V25.1377C21.5654%2024.7338%2021.2378%2024.4062%2020.8339%2024.4062Z'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M16.8252%2027.1895V29.631'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.0391%2027.1895V29.631'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.71875%2014.1642H8.53075C9.03425%2014.1642%209.49025%2013.8602%209.68025%2013.4042L10.3263%2011.8652'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.4991%205.54803L12.2266%2011.8655H17.5371L19.8836%205.51953L17.4991%205.54803Z'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M22.2017%2016.4639H6.57421C5.97571%2016.4639%205.49121%2015.9794%205.49121%2015.3809C5.49121%2013.4334%207.06821%2011.8564%209.01571%2011.8564H20.3492'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.56738%2032.4805H32.2909'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_127_9289'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",o_="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_9314)'%3e%3cpath%20d='M15.1807%2019.3994L18.7717%2029.7164'%20stroke='%23FF8CC3'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9033%209.25293L12.6063%2011.2574C12.6063%2011.2574%2010.7443%2014.7724%2013.2618%2022.0209'%20stroke='%23FF8CC4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9033%209.25293L12.6063%2011.2574C12.6063%2011.2574%2016.2448%2012.8534%2018.7718%2020.1019'%20stroke='%23FF8CC4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.8257%2016.71C22.2202%2012.112%2017.1947%209.67999%2012.5967%2011.276C7.99871%2012.8815%205.56671%2017.907%207.16271%2022.505L7.67571%2023.968L7.88471%2023.892C7.93221%2022.7235%208.67321%2021.6405%209.85121%2021.232C11.0292%2020.8235%2012.2737%2021.2035%2013.0432%2022.0965L13.4422%2021.954C13.4897%2020.7855%2014.2307%2019.7025%2015.4087%2019.294C16.5867%2018.8855%2017.8312%2019.2655%2018.6007%2020.1585L18.9997%2020.016C19.0472%2018.8475%2019.7882%2017.7645%2020.9662%2017.356C22.1442%2016.9475%2023.3887%2017.3275%2024.1582%2018.2205L24.3577%2018.154L23.8447%2016.691L23.8257%2016.71Z'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.37%2015.4193C23.636%2015.4858%2023.9115%2015.5238%2024.1965%2015.5238C26.068%2015.5238%2027.5785%2014.0038%2027.5785%2012.1418C27.5785%2010.2798%2026.0585%208.75977%2024.1965%208.75977C22.3345%208.75977%2020.8145%2010.2798%2020.8145%2012.1418'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M24.2061%206.12784V5.00684'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.8641%207.79018L19.1611%207.09668'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M28.5381%2016.4736L29.2411%2017.1766'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M30.21%2012.1318H31.331'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M28.5469%207.79018L29.2404%207.09668'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M29.3355%2029.8213H14.2305'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.2302%2029.8213L10.3447%2025.2803'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8527%2028.4531L7.76074%2032.9941'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.8447%2029.8213L27.4072%2032.9943'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_127_9314'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",a_=({children:e})=>{const[r,t]=z.useState({x:0,y:0}),[n,i]=z.useState(!1),[o,a]=z.useState({x:0,y:0}),[s,c]=z.useState(!1),[d,f]=z.useState(!0),l=z.useRef(null),u=[{id:"overtime",title:"시간 외 근무신청",icon:k.jsxRuntimeExports.jsx("img",{src:n_,alt:"시간외근무신청",className:"quick-overtime"}),color:"#722ed1",onClick:()=>{console.log("시간 외 근무 신청 클릭")}},{id:"business-trip",title:"출장신청",icon:k.jsxRuntimeExports.jsx("img",{src:i_,alt:"출장신청",className:"quick-business-trip"}),color:"#1890ff",onClick:()=>{console.log("출장 신청 클릭")}},{id:"vacation",title:"휴가신청",icon:k.jsxRuntimeExports.jsx("img",{src:o_,alt:"휴가신청",className:"quick-holiday"}),color:"#eb2f96",onClick:()=>{console.log("휴가 신청 클릭")}},{id:"document",title:"문서신청",icon:k.jsxRuntimeExports.jsx(Te.FileTextOutlined,{}),color:"#52c41a",onClick:()=>{console.log("문서 신청 클릭")}},{id:"profile",title:"인사정보",icon:k.jsxRuntimeExports.jsx(Te.UserOutlined,{}),color:"#fa8c16",onClick:()=>{console.log("인사 정보 클릭")}},{id:"settings",title:"설정",icon:k.jsxRuntimeExports.jsx(Te.SettingOutlined,{}),color:"#13c2c2",onClick:()=>{console.log("설정 클릭")}}];z.useEffect(()=>{const m=()=>{const x=window.innerHeight,E=Math.max(64,(x-300)/3);t({x:0,y:E});const _=x/2;f(E<_)};return m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[]);const h=m=>{if(m.preventDefault(),m.stopPropagation(),l.current){const x=l.current.getBoundingClientRect();a({x:m.clientX-x.left,y:m.clientY-x.top}),i(!0)}},v=m=>{if(n){const x=m.clientY-o.y,y=window.innerHeight-24,_=Math.max(64,Math.min(y,x));t({x:r.x,y:_});const w=window.innerHeight/2;f(_<w)}},b=()=>{i(!1)},p=()=>{c(!s)},g=m=>{m.onClick&&m.onClick()};return z.useEffect(()=>{if(n)return document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),()=>{document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b)}},[n,o]),k.jsxRuntimeExports.jsxs("div",{className:"quick-tab-container",ref:l,style:{position:"fixed",right:0,top:r.y,zIndex:1e3,userSelect:"none",touchAction:"none"},children:[k.jsxRuntimeExports.jsxs("div",{className:"quick-tab",style:{position:"absolute",right:"40px",top:d?0:"auto",bottom:d?"auto":0,display:"flex",flexDirection:"column",gap:"15px",border:"1px solid #E0DEEF",borderRadius:"15px",padding:"8px",boxShadow:"0 0 10px rgba(0, 0, 0, 0.3)",minWidth:"88px",maxWidth:"88px",maxHeight:d?`calc(100vh - ${r.y+12}px)`:`${r.y-12}px`,transform:s?"translateX(0)":"translateX(calc(100% + 100px))",transition:"transform 0.3s ease",marginTop:d&&r.y<100?"32px":"0",marginBottom:!d&&r.y>window.innerHeight-100?"8px":"0"},children:[k.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-wrap",style:{background:"#ffffff",borderRadius:"10px",flex:1,overflowY:"auto",maxHeight:d?`calc(100vh - ${r.y+120}px)`:`${r.y-60}px`,padding:"14px 0"},children:u.map(m=>k.jsxRuntimeExports.jsx(Y.Card,{className:"quick-tab-items",size:"small",style:{border:"none",boxShadow:"none",marginBottom:"15px",cursor:"pointer",transition:"all 0.2s ease"},styles:{body:{padding:"0"}},onClick:()=>g(m),onMouseEnter:x=>{},onMouseLeave:x=>{},children:k.jsxRuntimeExports.jsxs("div",{className:"quick-tab-item-inner",children:[k.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-icon",style:{width:"44px",height:"44px",borderRadius:"8PX",fontSize:"24px",color:m.color,marginBottom:"5px"},children:m.icon}),k.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-title",children:m.title})]})},m.id))}),k.jsxRuntimeExports.jsx("div",{className:"quick-tab-add-btn",style:{height:"30px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease",flexShrink:0,marginBottom:"7px"},onMouseEnter:m=>{},onMouseLeave:m=>{},children:k.jsxRuntimeExports.jsx(Te.PlusOutlined,{style:{color:"#CDC4FF",fontSize:"15px"}})})]}),k.jsxRuntimeExports.jsx("div",{className:"quick-tab-drag-btn",style:{cursor:n?"grabbing":"grab",zIndex:1001},onMouseDown:h}),k.jsxRuntimeExports.jsx(Y.Button,{className:`quick-tab-toggle-btn ${s?"expanded":""}`,type:"default",style:{border:"0",backgroundColor:"transparent"},onClick:p})]})},s_=()=>{const{verifyWithToken:e}=Nm.useAuth(),r=Gu.useNavigate(),t=Gu.useLocation();return z.useEffect(()=>{const i=new URLSearchParams(t.search).get("token");if(!i){r("/login",{replace:!0});return}(async()=>{const o=await e(i);r(o?"/main":"/login",{replace:!0})})()},[t.search]),k.jsxRuntimeExports.jsx("div",{style:{display:"grid",placeItems:"center",height:"100dvh"},children:k.jsxRuntimeExports.jsx(Y.Spin,{tip:"인증중..."})})};exports.BwgButtonGroup=Im;exports.BwgCmptArea=Mm;exports.BwgCol=Lm;exports.BwgConfigProvider=hu;exports.BwgDetail=Km;exports.BwgDrawer=Ym;exports.BwgEditor=bl;exports.BwgGrid=sp;exports.BwgInfoArea=Zy;exports.BwgPopup=Jy;exports.BwgRow=e0;exports.BwgTable=t0;exports.BwgTabs=r0;exports.BwgTitleBox=xo;exports.BwgView=t_;exports.ContentBox=Hr;exports.ContentLayOut=Wr;exports.GlobalConfigProvider=r_;exports.QuickServiceToggle=a_;exports.SSOHandler=s_;exports.SearchBox=Eo;exports.createBwgGridRenderer=Zi;
237
+ //# sourceMappingURL=SSOHandler-DiW4Ft9i.cjs.map