1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29983],{40565:(e,t,i)=>{i.d(t,{O:()=>n});function n(e,t){let i,n=e.getRangeAt(0);if(e.anchorNode===t){let e=t;for(;null!=e.firstElementChild;)e=e.firstElementChild;i=e.getBoundingClientRect()}else i=n.getBoundingClientRect();return i}},399571:(e,t,i)=>{i.d(t,{O:()=>a});var n=i(99713),s=i(720291);function a(e){if(!(0,n.I2)(e))return;let{anchor:t}=e,{focus:i}=e,a=e.anchor.getNode(),r=e.focus.getNode();return a===r?a:e.isBackward()?(0,s.Nx)(i)?a:r:(0,s.Nx)(t)?a:r}},729983:(e,t,i)=>{i.r(t),i.d(t,{default:()=>C});var n=i(823798),s=i(621462),a=i(447993),r=i(99713),o=i(906233),c=i(314548),l=i(546516),d=i(754403),u=i(718587),m=i(7077),p=i(876521),h=i(956218),b=i(527403),f=i(901395),g=i(792342),v=i(40565),E=i(399571),N=i(98228);function k(e){let{isLink:t,isBold:i,isItalic:a,isUnderline:o,isCode:d,isStrikethrough:u,isSubscript:p,isSuperscript:h,insertLink:b,editor:f,isDisableBlock:g}=e,v=[{command:"bold",className:"format bold",ariaLabel:"Format text as bold",isActive:i,isDisabled:!1,description:"ç²é«",iconName:"icon-bold",testId:m.Ce},{command:"italic",className:"format italic",ariaLabel:"Format text as italics",isActive:a,isDisabled:!1,description:"æé«",iconName:"icon-italic",testId:m.Fu},{command:"strikethrough",className:"format strikethrough",ariaLabel:"Format text with a strikethrough",isActive:u,isDisabled:!1,description:"åªé¤ç·",iconName:"icon-strikethrough",testId:m.OA},{command:"underline",className:"format underline",ariaLabel:"Format text to underlined",isActive:o,isDisabled:!1,description:"åºç·",iconName:"icon-underline",testId:m.l0},{command:"code",className:"format code",ariaLabel:"Insert code block",isActive:d,isDisabled:!1,description:"ç¨å¼ç¢¼",iconName:"icon-code",testId:m.oq},{command:"superscript",className:"format superscript",ariaLabel:"Format Superscript",iconName:"icon-superscript",description:"䏿¨",isActive:h,isDisabled:g,testId:m.nX},{command:"subscript",className:"format subscript",ariaLabel:"Format Subscript",iconName:"icon-subscript",description:"䏿¨",isActive:p,isDisabled:g,isVerticalLineEnd:!0,testId:m.e1},{command:"link",className:"format link",ariaLabel:"Insert link",isActive:t,isDisabled:!1,description:"建ç«é£çµ",iconName:"icon-link",testId:m.jT}];return(0,n.jsx)(n.Fragment,{children:v.map((e,t)=>e?.description?(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)(l.A,{containerStyleProps:t+1!==v.length&&{mr:"8px"},content:e.description||"",iconName:e.iconName,isActive:e.isActive,disabled:e?.isDisabled,testId:e.testId,handleButtonClick:()=>{"link"===e.command?b():("superscript"===e.command&&p&&f.dispatchCommand(r.mB,"subscript"),"subscript"===e.command&&h&&f.dispatchCommand(r.mB,"superscript"),f.dispatchCommand(r.mB,e.command))}}),e?.isVerticalLineEnd&&(0,n.jsx)(c.so,{className:"vr","data-description":"Vertical Line",width:"1px",height:"100%"})]},`vocus-${e.command||""}`):(0,n.jsx)("button",{onClick:()=>{f.dispatchCommand(r.mB,e.command)},className:`popup-item spaced ${e.isActive?"active":""}`,"aria-label":e.ariaLabel,children:(0,n.jsx)("i",{className:e.className})},e.command))})}function L(e){let{editor:t,anchorElem:i,isLink:a,isBold:c,isItalic:l,isUnderline:m,isCode:p,isStrikethrough:h,isSubscript:f,isSuperscript:E,isDisableBlock:L}=e,C=(0,s.useRef)(null),S=(0,o.i7)(u.zK,e=>e.stateDispatch),F=(0,s.useCallback)(()=>{a?t.dispatchCommand(b.yW,null):(t.dispatchCommand(b.yW,"https://"),S((0,d.fz)(!0)))},[t,a]);function x(e){if(C?.current&&(1===e.buttons||3===e.buttons)&&"none"!==C.current.style.pointerEvents){let t=e.clientX,i=e.clientY,n=document.elementFromPoint(t,i);C.current.contains(n)||(C.current.style.pointerEvents="none")}}function I(){C?.current&&"auto"!==C.current.style.pointerEvents&&(C.current.style.pointerEvents="auto")}(0,s.useEffect)(()=>{if(C?.current)return document.addEventListener("mousemove",x),document.addEventListener("mouseup",I),()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",I)}},[C]);let A=(0,s.useCallback)(()=>{let e=(0,r.vJ)(),n=C.current,s=window.getSelection();if(null===n)return;let a=t.getRootElement();if(null!==e&&null!==s&&!s.isCollapsed&&null!==a&&a.contains(s.anchorNode)){let e=(0,v.O)(s,a);(0,N.b)(e,n,i)}},[t,i]);return(0,s.useEffect)(()=>{let e=i.parentElement,n=()=>{t.getEditorState().read(()=>{A()})};return window.addEventListener("resize",n),e&&e.addEventListener("scroll",n),()=>{window.removeEventListener("resize",n),e&&e.removeEventListener("scroll",n)}},[t,A,i]),(0,s.useEffect)(()=>(t.getEditorState().read(()=>{A()}),(0,g.Sd)(t.registerUpdateListener(e=>{let{editorState:t}=e;t.read(()=>{A()})}),t.registerCommand(r.Mv,()=>(A(),!1),r.Ac))),[t,A]),(0,n.jsx)("div",{ref:C,className:"floating-toolbar-popup","data-id":"floating-toolbar","data-rich-toolbar":"true",children:t.isEditable()&&(0,n.jsx)(k,{isLink:a,isBold:c,isItalic:l,isUnderline:m,isCode:p,isStrikethrough:h,isSubscript:f,isSuperscript:E,editor:t,insertLink:F,isDisableBlock:L})})}function C(e){let{anchorElem:t=document.body}=e,[i]=(0,f.DF)();
1return function(e,t){let[i,o]=(0,s.useState)(!1),[c,l]=(0,s.useState)(!1),[d,u]=(0,s.useState)(!1),[m,f]=(0,s.useState)(!1),[v,N]=(0,s.useState)(!1),[k,C]=(0,s.useState)(!1),[S,F]=(0,s.useState)(!1),[x,I]=(0,s.useState)(!1),[A,w]=(0,s.useState)(!1),[D,B]=(0,s.useState)(!1),y=(0,s.useCallback)(()=>{e.getEditorState().read(()=>{if(e.isComposing())return;let t=(0,r.vJ)(),i=window.getSelection(),n=e.getRootElement();if(null!==i&&(!(0,r.I2)(t)||null===n||!n.contains(i.anchorNode)))return void o(!1);if(!(0,r.I2)(t))return;B((0,p.w)(t));let s=(0,E.O)(t);u(t.hasFormat("bold")),f(t.hasFormat("italic")),N(t.hasFormat("underline")),C(t.hasFormat("strikethrough")),F(t.hasFormat("subscript")),I(t.hasFormat("superscript")),w(t.hasFormat("code"));let a=s.getParent();(0,b.FJ)(a)||(0,b.FJ)(s)?l(!0):l(!1),(0,h.yN)(t.anchor.getNode())||""===t.getTextContent()?o(!1):o((0,r.kF)(s));let c=t.getTextContent().replace(/\n/g,"");t.isCollapsed()||""!==c||o(!1)})},[e]);return((0,s.useEffect)(()=>(document.addEventListener("selectionchange",y),()=>{document.removeEventListener("selectionchange",y)}),[y]),(0,s.useEffect)(()=>(0,g.Sd)(e.registerUpdateListener(()=>{y()}),e.registerRootListener(()=>{null===e.getRootElement()&&o(!1)})),[e,y]),!i||c)?null:(0,a.createPortal)((0,n.jsx)(L,{editor:e,anchorElem:t,isLink:c,isBold:d,isItalic:m,isStrikethrough:k,isSubscript:S,isSuperscript:x,isUnderline:v,isCode:A,isDisableBlock:D}),t)}(i,t)}},876521:(e,t,i)=>{i.d(t,{A:()=>o,w:()=>c});var n=i(99713),s=i(863363),a=i(141638),r=i(946544);function o(e){let t=(0,r.A)(e);return!t||(0,n.Iq)(t)?null:(0,a.Pi)(t)?t.getTag():(0,s.HY)(t)?t.getListType():t.getType()}function c(e){let t=(0,r.A)(e);return!(!t||(0,n.Iq)(t))&&!!(0,a.Pi)(t)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.