1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0a8b2903-05c5-45e0-8078-2be254950eda",e._sentryDebugIdIdentifier="sentry-dbid-0a8b2903-05c5-45e0-8078-2be254950eda")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1744],{3439:(e,t,n)=>{function r(e){return{}}n.d(t,{$e:()=>c,A7:()=>rF,AX:()=>T,Ac:()=>rJ,B$:()=>to,C:()=>eD,Ck:()=>nq,Cy:()=>rO,Ey:()=>nw,FE:()=>a,GM:()=>ry,H2:()=>rr,HY:()=>U,I2:()=>n$,Iq:()=>th,JM:()=>v,Kf:()=>H,Kp:()=>rD,LY:()=>eM,MK:()=>nz,Mv:()=>i,Ni:()=>eq,OX:()=>D,Pi:()=>I,Q$:()=>E,RT:()=>nG,SK:()=>J,Sr:()=>P,Tg:()=>F,UD:()=>b,V3:()=>m,VS:()=>W,WK:()=>nm,WW:()=>j,Wu:()=>s,XK:()=>u,YW:()=>O,Z$:()=>eP,ZK:()=>_,a9:()=>tT,bM:()=>d,bS:()=>rW,bb:()=>S,d:()=>rK,d8:()=>o,e1:()=>tn,ev:()=>nB,fG:()=>rN,fU:()=>M,ff:()=>rE,gC:()=>N,gu:()=>r,hV:()=>rL,hi:()=>h,ie:()=>rH,if:()=>k,jG:()=>eW,jZ:()=>rU,kF:()=>nM,lJ:()=>rz,mB:()=>p,n1:()=>eX,nY:()=>tv,ns:()=>eH,oq:()=>l,pT:()=>tg,rU:()=>n6,ri:()=>R,sT:()=>nP,sb:()=>tx,si:()=>L,t5:()=>K,u5:()=>z,uT:()=>n5,vJ:()=>n9,vi:()=>g,w:()=>f,w$:()=>A,wH:()=>ny,xL:()=>eZ,y6:()=>n2});let i={},l={},o={},s={},a={},u={},d={},f={},c={},h={},g={},p={},_={},m={},y={},v={},x={},T={},C={},b={},S={},k={},w={},N={},E={},A={},D={},O={},I={},L={},P={},M={},F={},R={},B={},z={},W={},U={},J={},K={},j={},H={},$={},Z={},G={},V="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,q=V&&"documentMode"in document?document.documentMode:null,Y=V&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),X=V&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Q=!(!V||!("InputEvent"in window)||q)&&"getTargetRanges"in new window.InputEvent("input"),ee=V&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),et=V&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,en=V&&/Android/.test(navigator.userAgent),er=V&&/^(?=.*Chrome).*/i.test(navigator.userAgent),ei=V&&en&&er,el=V&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!er,eo=ee||et||el?"\xa0":"â",es=X?"\xa0":eo,ea="Ö-ß¿ï¬-﷽ﹰ-ﻼ",eu="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸÌ-Öà -á¿¿ââ°-ï¬ï¸-﹯﻽-ï¿¿",ed=RegExp("^[^"+eu+"]*["+ea+"]"),ef=RegExp("^[^"+ea+"]*["+eu+"]"),ec={bold:1,code:16,highlight:128,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},eh={directionless:1,unmergeable:2},eg={center:2,end:6,justify:4,left:1,right:3,start:5},ep={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},e_={normal:0,segmented:2,token:1},em={0:"normal",2:"segmented",1:"token"};var ey=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function ev(...e){let t=[];for(let n of e)if(n&&"string"==typeof n)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}let ex=!1,eT=0;function eC(e){eT=e.timeStamp}function eb(e,t,n){return t.__lexicalLineBreak===e||void 0!==e[`__lexicalKey_${n._key}`]}function eS(e,t,n){ex=!0;let r=performance.now()-eT>100;try{rw(e,()=>{let i=n9()||e.getEditorState().read(()=>{let e=n9();return null!==e?e.clone():null}),l=new Map,o=e.getRootElement(),s=e._editorState,a=e._blockCursorElement,u=!1,d="";for(let n=0;n<t.length;n++){let f=t[n],c=f.type,h=f.target,g=eZ(h,s);if(!(null===g&&h!==o||rO(g))){if("characterData"===c)r&&nM(g)&&function(e,t,n){if(n$(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return 3===t.nodeType&&n.isAttached()}(i,h,g)&&function(e,t,n){let r=ty(n._window),i=null,l=null;null!==r&&r.anchorNode===e&&(i=r.anchorOffset,l=r.focusOffset);let o=e.nodeValue;null!==o&&e4(t,o,i,l,!1)}(h,g,e);else if("childList"===c){u=!0;let t=f.addedNodes;for(let n=0;n<t.length;n++){let r=t[n],i=e$(r),l=r.parentNode;if(null!=l&&r!==a&&null===i&&("BR"!==r.nodeName||!eb(r,l,e))){if
1(X){let e=r.innerText||r.nodeValue;e&&(d+=e)}l.removeChild(r)}}let n=f.removedNodes,r=n.length;if(r>0){let t=0;for(let i=0;i<r;i++){let r=n[i];("BR"===r.nodeName&&eb(r,h,e)||a===r)&&(h.appendChild(r),t++)}r!==t&&(h===o&&(g=eY(s)),l.set(h,g))}}}}if(l.size>0)for(let[t,n]of l)if(rE(n)){let r=n.getChildrenKeys(),i=t.firstChild;for(let n=0;n<r.length;n++){let l=r[n],o=e.getElementByKey(l);null!==o&&(null==i?(t.appendChild(o),i=o):i!==o&&t.replaceChild(o,i),i=i.nextSibling)}}else nM(n)&&n.markDirty();let f=n.takeRecords();if(f.length>0){for(let t=0;t<f.length;t++){let n=f[t],r=n.addedNodes,i=n.target;for(let t=0;t<r.length;t++){let n=r[t],l=n.parentNode;null==l||"BR"!==n.nodeName||eb(n,i,e)||l.removeChild(n)}}n.takeRecords()}null!==i&&(u&&(i.dirty=!0,eX(i)),X&&ts(e)&&i.insertRawText(d))})}finally{ex=!1}}function ek(e){let t=e._observer;null!==t&&eS(e,t.takeRecords(),t)}function ew(e){0===eT&&tc(e).addEventListener("textInput",eC,!0),e._observer=new MutationObserver((t,n)=>{eS(e,t,n)})}function eN(e,t){let n=e.__mode,r=e.__format,i=e.__style,l=t.__mode,o=t.__format,s=t.__style;return(null===n||n===l)&&(null===r||r===o)&&(null===i||i===s)}function eE(e,t){let n=e.mergeWithSibling(t),r=rp()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function eA(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&nM(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){eN(t,r)&&(r=eE(t,r));break}t.remove()}for(;null!==(n=r.getNextSibling())&&nM(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){eN(r,n)&&(r=eE(r,n));break}n.remove()}}else r.remove()}function eD(e){return eO(e.anchor),eO(e.focus),e}function eO(e){for(;"element"===e.type;){let t,n,r=e.getNode(),i=e.offset;if(i===r.getChildrenSize()?(t=r.getChildAtIndex(i-1),n=!0):(t=r.getChildAtIndex(i),n=!1),nM(t)){e.set(t.__key,n?t.getTextContentSize():0,"text");break}if(!rE(t))break;e.set(t.__key,n?t.getChildrenSize():0,"element")}}let eI=1,eL="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function eP(e){let t=document.activeElement;if(null===t)return!1;let n=t.nodeName;return rO(eZ(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==t.__lexicalEditor)}function eM(e,t,n){let r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!eP(t)&&eF(t)===e}catch(e){return!1}}function eF(e){let t=e;for(;null!=t;){let e=t.__lexicalEditor;if(null!=e)return e;t=td(t)}return null}function eR(e){return e.isToken()||e.isSegmented()}function eB(e){let t=e;for(;null!=t;){if(3===t.nodeType)return t;t=t.firstChild}return null}function ez(e,t,n){let r=ec[t];if(null!==n&&(e&r)==(n&r))return e;let i=e^r;return"subscript"===t?i&=~ec.superscript:"superscript"===t&&(i&=~ec.subscript),i}function eW(e){return nM(e)||ny(e)||rO(e)}function eU(e){let t=e.getParent();if(null!==t){let n=e.getWritable(),r=t.getWritable(),i=e.getPreviousSibling(),l=e.getNextSibling();if(null===i)if(null!==l){let e=l.getWritable();r.__first=l.__key,e.__prev=null}else r.__first=null;else{let e=i.getWritable();if(null!==l){let t=l.getWritable();t.__prev=e.__key,e.__next=t.__key}else e.__next=null;n.__prev=null}if(null===l)if(null!==i){let e=i.getWritable();r.__last=i.__key,e.__next=null}else r.__last=null;else{let e=l.getWritable();if(null!==i){let t=i.getWritable();t.__next=e.__key,e.__prev=t.__key}else e.__prev=null;n.__next=null}r.__size--,n.__parent=null}}function eJ(e){rh();let t=e.getLatest(),n=t.__parent,r=rg(),i=rp(),l=r._nodeMap,o=i._dirtyElements;null!==n&&function(e,t,n){let r=e;for(;null!==r;){if(n.has(r))return;let e=t.get(r);if(void 0===e)break;n.set(r,!1),r=e.__parent}}(n,l,o);let s=t.__key;i._dirtyType=1,rE(e)?o.set(s,!0):i._dirtyLeaves.add(s)}function eK(e){rc();let t=rp(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){let e=eH(n);null!==e&&e.getWritable()}if(null!==e){let t=eH(e);null!==t&&t.getWritable()}}}function ej(){return rf()?null:rp()._compositionKey}function eH(e,t){let n=(t||rg())._nodeMap.get(e);return void 0===n?null:n}
1function e$(e,t){let n=e[`__lexicalKey_${rp()._key}`];return void 0!==n?eH(n,t):null}function eZ(e,t){let n=e;for(;null!=n;){let e=e$(n,t);if(null!==e)return e;n=td(n)}return null}function eG(e){let t=Object.assign({},e._decorators);return e._pendingDecorators=t,t}function eV(e){return e.read(()=>eq().getTextContent())}function eq(){return eY(rg())}function eY(e){return e._nodeMap.get("root")}function eX(e){rc();let t=rg();null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function eQ(e){let t=rp(),n=function(e,t){let n=e;for(;null!=n;){let e=n[`__lexicalKey_${t._key}`];if(void 0!==e)return e;n=td(n)}return null}(e,t);return null===n?e===t.getRootElement()?eH("root"):null:eH(n)}function e0(e,t){return t?e.getTextContentSize():0}function e1(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function e2(e){let t=[],n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function e3(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function e5(e){return 3===e.nodeType?e.nodeValue:null}function e6(e,t,n){let r=ty(t._window);if(null===r)return;let i=r.anchorNode,{anchorOffset:l,focusOffset:o}=r;if(null!==i){let t=e5(i),r=eZ(i);if(null!==t&&nM(r)){if(t===eo&&n){let e=n.length;t=n,l=e,o=e}null!==t&&e4(r,t,l,o,e)}}}function e4(e,t,n,r,i){let l=e;if(l.isAttached()&&(i||!l.isDirty())){let o=l.isComposing(),s=t;(o||i)&&t[t.length-1]===eo&&(s=t.slice(0,-1));let a=l.getTextContent();if(i||s!==a){if(""===s){if(eK(null),ee||et||el)l.remove();else{let e=rp();setTimeout(()=>{e.update(()=>{l.isAttached()&&l.remove()})},20)}return}let t=l.getParent(),i=n7(),a=l.getTextContentSize(),u=ej(),d=l.getKey();if(l.isToken()||null!==u&&d===u&&!o||n$(i)&&(null!==t&&!t.canInsertTextBefore()&&0===i.anchor.offset||i.anchor.key===e.__key&&0===i.anchor.offset&&!l.canInsertTextBefore()&&!o||i.focus.key===e.__key&&i.focus.offset===a&&!l.canInsertTextAfter()&&!o))return void l.markDirty();let f=n9();if(!n$(f)||null===n||null===r)return void l.setTextContent(s);if(f.setTextNodeRange(l,n,l,r),l.isSegmented()){let e=nP(l.getTextContent());l.replace(e),l=e}l.setTextContent(s)}}}function e9(e){return"ArrowLeft"===e}function e7(e){return"ArrowRight"===e}function e8(e){return"Backspace"===e}function te(e){return"Delete"===e}function tt(e,t,n){return"a"===e.toLowerCase()&&(Y?t:n)}function tn(){let e=eq();eX(eD(e.select(0,e.getChildrenSize())))}function tr(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];if(void 0!==r)return r;let i=e[t];if("string"==typeof i){let e=ev(i);return n[t]=e,e}return i}function ti(e,t,n,r,i){if(0===n.size)return;let l=r.__type,o=r.__key,s=t.get(l);void 0===s&&ey(33,l);let a=s.klass,u=e.get(a);void 0===u&&(u=new Map,e.set(a,u));let d=u.get(o),f="destroyed"===d&&"created"===i;(void 0===d||f)&&u.set(o,f?"updated":i)}function tl(e,t,n){let r=e.getParent(),i=n,l=e;return null!==r&&(t&&0===n?(i=l.getIndexWithinParent(),l=r):t||n!==l.getChildrenSize()||(i=l.getIndexWithinParent()+1,l=r)),l.getChildAtIndex(t?i-1:i)}function to(e,t){let n=e.offset;if("element"===e.type)return tl(e.getNode(),t,n);{let r=e.getNode();if(t&&0===n||!t&&n===r.getTextContentSize()){let e=t?r.getPreviousSibling():r.getNextSibling();return null===e?tl(r.getParentOrThrow(),t,r.getIndexWithinParent()+ +!t):e}}return null}function ts(e){let t=tc(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function ta(e){return!rL(e)&&!e.isLastChild()&&!e.isInline()}function tu(e,t){let n=e._keyToDOMMap.get(t);return void 0===n&&ey(75,t),n}function td(e){let t=e.assignedSlot||e.parentElement;return null!==t&&11===t.nodeType?t.host:t}function tf(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function tc(e){let t=e._window;return null===t&&ey(78),t}function th(e){return rL(e)||rE(e)&&e.isShadowRoot()}function tg(e){let t=rp(),n=e.constructor.getType(),r=t._nodes.get(n);void 0===r&&ey(97);let i=r.replace;if(null!==i){let t=i(e);return t instanceof e.constructor||ey(98),t}return e}function tp(e,t){!rL(e.getParent())||rE(t)||rO(t)||ey(99)}function t_(e){return(rO(e)||rE(e)&&!e.canBeEmpty())&&!e.isInline()}function tm(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;let r=e.parentElement;null!==r&&r.removeChild(e)}function ty(e){return V?(e||window).getSelection():null}function tv(e){return tx(e)&&"A"===e.tagName}function tx(e){return 1===e.nodeType}
1function tT(e){let t=RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(t)}function tC(e){if(rL(e)||rO(e)&&!e.isInline())return!0;if(!rE(e)||th(e))return!1;let t=e.getFirstChild(),n=null===t||ny(t)||nM(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function tb(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}let tS,tk,tw,tN,tE,tA,tD,tO,tI,tL,tP="",tM="",tF=null,tR="",tB=!1,tz=!1,tW=null;function tU(e,t){let n=tD.get(e);if(null!==t){let n=t0(e);n.parentNode===t&&t.removeChild(n)}if(tO.has(e)||tk._keyToDOMMap.delete(e),rE(n)){let e=tY(n,tD);tJ(e,0,e.length-1,null)}void 0!==n&&ti(tL,tw,tN,n,"destroyed")}function tJ(e,t,n,r){let i=t;for(;i<=n;++i){let t=e[i];void 0!==t&&tU(t,r)}}function tK(e,t){e.setProperty("text-align",t)}function tj(e,t){let n=tS.theme.indent;if("string"==typeof n){let r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}let r=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||"40px";e.style.setProperty("padding-inline-start",0===t?"":`calc(${t} * ${r})`)}function tH(e,t){let n=e.style;0===t?tK(n,""):1===t?tK(n,"left"):2===t?tK(n,"center"):3===t?tK(n,"right"):4===t?tK(n,"justify"):5===t?tK(n,"start"):6===t&&tK(n,"end")}function t$(e,t,n){let r=tO.get(e);void 0===r&&ey(60);let i=r.createDOM(tS,tk);if(function(e,t,n){let r=n._keyToDOMMap;t["__lexicalKey_"+n._key]=e,r.set(e,t)}(e,i,tk),nM(r)?i.setAttribute("data-lexical-text","true"):rO(r)&&i.setAttribute("data-lexical-decorator","true"),rE(r)){let e=r.__indent,t=r.__size;0!==e&&tj(i,e),0!==t&&function(e,t,n,r){let i=tM;tM="",tZ(e,n,0,t,r,null),tq(n,r),tM=i}(tY(r,tO),t-1,r,i);let n=r.__format;0!==n&&tH(i,n),r.isInline()||tV(null,r,i),ta(r)&&(tP+="\n\n",tR+="\n\n")}else{let t=r.getTextContent();if(rO(r)){let t=r.decorate(tk,tS);null!==t&&tX(e,t),i.contentEditable="false"}else nM(r)&&(r.isDirectionless()||(tM+=t));tP+=t,tR+=t}if(null!==t)if(null!=n)t.insertBefore(i,n);else{let e=t.__lexicalLineBreak;
1null!=e?t.insertBefore(i,e):t.appendChild(i)}return ti(tL,tw,tN,r,"created"),i}function tZ(e,t,n,r,i,l){let o=tP;tP="";let s=n;for(;s<=r;++s){t$(e[s],i,l);let t=tO.get(e[s]);null!==t&&null===tF&&nM(t)&&(tF=t.getFormat())}ta(t)&&(tP+="\n\n"),i.__lexicalTextContent=tP,tP=o+tP}function tG(e,t){let n=t.get(e);return ny(n)||rO(n)&&n.isInline()}function tV(e,t,n){let r=null!==e&&(0===e.__size||tG(e.__last,tD)),i=0===t.__size||tG(t.__last,tO);if(r){if(!i){let e=n.__lexicalLineBreak;null!=e&&n.removeChild(e),n.__lexicalLineBreak=null}}else if(i){let e=document.createElement("br");n.__lexicalLineBreak=e,n.appendChild(e)}}function tq(e,t){var n;let r=t.__lexicalDirTextContent,i=t.__lexicalDir;if(r!==tM||i!==tW){let r=""===tM,l=r?tW:(n=tM,ed.test(n)?"rtl":ef.test(n)?"ltr":null);if(l!==i){let n=t.classList,o=tS.theme,s=null!==i?o[i]:void 0,a=null!==l?o[l]:void 0;if(void 0!==s){if("string"==typeof s){let e=ev(s);s=o[i]=e}n.remove(...s)}if(null===l||r&&"ltr"===l)t.removeAttribute("dir");else{if(void 0!==a){if("string"==typeof a){let e=ev(a);a=o[l]=e}void 0!==a&&n.add(...a)}t.dir=l}tz||(e.getWritable().__dir=l)}tW=l,t.__lexicalDirTextContent=tM,t.__lexicalDir=l}}function tY(e,t){let n=[],r=e.__first;for(;null!==r;){let e=t.get(r);void 0===e&&ey(101),n.push(r),r=e.__next}return n}function tX(e,t){let n=tk._pendingDecorators,r=tk._decorators;if(null===n){if(r[e]===t)return;n=eG(tk)}n[e]=t}function tQ(e){let t=e.nextSibling;return null!==t&&t===tk._blockCursorElement&&(t=t.nextSibling),t}function t0(e){let t=tI.get(e);return void 0===t&&ey(75,e),t}let t1=Object.freeze({}),t2=[["keydown",function(e,t){if(t3=e.timeStamp,t5=e.key,t.isComposing())return;let{key:n,shiftKey:r,ctrlKey:i,metaKey:l,altKey:o}=e;!rb(t,y,e)&&null!=n&&(!e7(n)||i||l||o?e7(n)&&!o&&!r&&(i||l)?rb(t,x,e):!e9(n)||i||l||o?e9(n)&&!o&&!r&&(i||l)?rb(t,C,e):"ArrowUp"!==n||i||l?"ArrowDown"!==n||i||l?"Enter"===n&&r?(ne=!0,rb(t,k,e)):" "===n?rb(t,w,e):Y&&i&&"o"===n.toLowerCase()?(e.preventDefault(),ne=!0,rb(t,a,!0)):"Enter"!==n||r?(Y?!o&&!l&&(e8(n)||"h"===n.toLowerCase()&&i):!(i||o||l)&&e8(n))?e8(n)?rb(t,N,e):(e.preventDefault(),rb(t,s,!0)):"Escape"===n?rb(t,E,e):(Y?!(r||o||l)&&(te(n)||"d"===n.toLowerCase()&&i):!(i||o||l)&&te(n))?te(n)?rb(t,A,e):(e.preventDefault(),rb(t,s,!1)):e8(n)&&(Y?o:i)?(e.preventDefault(),rb(t,h,!0)):te(n)&&(Y?o:i)?(e.preventDefault(),rb(t,h,!1)):Y&&l&&e8(n)?(e.preventDefault(),rb(t,g,!0)):Y&&l&&te(n)?(e.preventDefault(),rb(t,g,!1)):"b"===n.toLowerCase()&&!o&&(Y?l:i)?(e.preventDefault(),rb(t,p,"bold")):"u"===n.toLowerCase()&&!o&&(Y?l:i)?(e.preventDefault(),rb(t,p,"underline")):"i"===n.toLowerCase()&&!o&&(Y?l:i)?(e.preventDefault(),rb(t,p,"italic")):"Tab"!==n||o||i||l?"z"===n.toLowerCase()&&!r&&(Y?l:i)?(e.preventDefault(),rb(t,_,void 0)):(Y?"z"===n.toLowerCase()&&l&&r:"y"===n.toLowerCase()&&i||"z"===n.toLowerCase()&&i&&r)?(e.preventDefault(),rb(t,m,void 0)):nG(t._editorState._selection)?!r&&"c"===n.toLowerCase()&&(Y?l:i)?(e.preventDefault(),rb(t,z,e)):!r&&"x"===n.toLowerCase()&&(Y?l:i)?(e.preventDefault(),rb(t,W,e)):tt(n,l,i)&&(e.preventDefault(),rb(t,U,e)):!X&&tt(n,l,i)&&(e.preventDefault(),rb(t,U,e)):rb(t,D,e):(ne=!1,rb(t,k,e)):rb(t,S,e):rb(t,b,e):rb(t,T,e):rb(t,v,e),(i||r||o||l)&&rb(t,G,e))}],["pointerdown",function(e,t){let n=e.target,r=e.pointerType;n instanceof Node&&"touch"!==r&&rw(t,()=>{rO(eZ(n))||(t8=!0)})}],["compositionstart",function(e,t){rw(t,()=>{let n=n9();if(n$(n)&&!t.isComposing()){let r=n.anchor,i=n.anchor.getNode();eK(r.key),(e.timeStamp<t3+30||"element"===r.type||!n.isCollapsed()||i.getFormat()!==n.format||nM(i)&&i.getStyle()!==n.style)&&rb(t,d,es)}})}],["compositionend",function(e,t){X?nt=!0:rw(t,()=>{ns(t,e.data)})}],["input",function(e,t){e.stopPropagation(),rw(t,()=>{let n=n9(),r=e.data,i=no(e);if(null!=r&&n$(n)&&nr(n,i,r,e.timeStamp,!1)){nt&&(ns(t,r),nt=!1);let i=n.anchor.getNode(),l=ty(t._window);if(null===l)return;let o=n.isBackward(),s=o?n.anchor.offset:n.focus.offset,a=o?n.focus.offset:n.anchor.offset;Q&&!n.isCollapsed()&&nM(i)&&null!==l.anchorNode&&i.getTextContent().slice(0,s)+r+i.getTextContent().slice(s+a)===e5(l.anchorNode)||rb(t,d,r);let u=r.length;X&&u>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=u),ee||et||el||!t.isComposing()||(t3=0,eK(null))}else e6(!1,t,null!==r?r:void 0),nt&&(ns(t,r||void 0),nt=!1);rc(),ek(rp())}),t4=null}],["click",function(e,t){rw(t,()=>{let n=n9(),r=ty(t._window),i=n7();if(r){if(n$(n)){let t=n.anchor,l=t.getNode();"element"===t.type&&0===t.offset&&n.isCollapsed()&&!rL(l)&&1===eq().getChildrenSize()&&l.getTopLevelElementOrThrow().isEmpty()&&null!==i&&n.is(i)?(r.removeAllRanges(),n.dirty=!0):3!==e.detail||n.isCollapsed()||l===n.focus.getNode()||(rE(l)?l.select(0):l.getParentOrThrow().select(0))}else if("touch"===e.pointerType){let n=r.anchorNode;if(null!==n){let l=n.nodeType;(1===l||3===l)&&eX(n4(i,r,t,e))}}}rb(t,o,e)})}],["cut",t1],["copy",t1],["dragstart",t1],["dragover",t1],["dragend",t1],["paste",t1],["focus",t1],["blur",t1],["drop",t1]];Q&&t2.push(["beforeinput",(e,t)=>(function(e,t){let n=e.inputType,r=no(e);"deleteCompositionText"===n||X&&ts(t)||"insertCompositionText"!==n&&rw(t,()=>{var i;let l=n9();if("deleteContentBackward"===n){if(null===l){let e=n7();if(!n$(e))return;eX(e.clone())}if(n$(l)){let n=l.anchor.key===l.focus.key;if(i=e.timeStamp,"MediaLast"===t5&&i<t3+30&&t.isComposing()&&n){if(eK(null),t3=0,setTimeout(()=>{rw(t,()=>{eK(null)})},30),n$(l)){let e=l.anchor.getNode();e.markDirty(),l.format=e.getFormat(),nM(e)||ey(142),l.style=e.getStyle()}}else{eK(null),e.preventDefault();let r=l.anchor.getNode().getTextContent(),i=0===l.anchor.offset&&l.focus.offset===r.length;ei&&n&&!i||rb(t,s,!0)}return}}if(!n$(l))return;let o=e.data;null!==t4&&e6(!1,t,t4),l.dirty&&null===t4||!l.isCollapsed()||rL(l.anchor.getNode())||null===r||l.applyDOMRange(r),t4=null;
1let y=l.anchor,v=l.focus,x=y.getNode(),T=v.getNode();if("insertText"!==n&&"insertTranspose"!==n)switch(e.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":rb(t,d,e);break;case"insertFromComposition":eK(null),rb(t,d,e);break;case"insertLineBreak":eK(null),rb(t,a,!1);break;case"insertParagraph":eK(null),ne&&!et?(ne=!1,rb(t,a,!1)):rb(t,u,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":rb(t,f,e);break;case"deleteByComposition":(x!==T||rE(x)||rE(T)||!x.isToken()||!T.isToken())&&rb(t,c,e);break;case"deleteByDrag":case"deleteByCut":rb(t,c,e);break;case"deleteContent":rb(t,s,!1);break;case"deleteWordBackward":rb(t,h,!0);break;case"deleteWordForward":rb(t,h,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":rb(t,g,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":rb(t,g,!1);break;case"formatStrikeThrough":rb(t,p,"strikethrough");break;case"formatBold":rb(t,p,"bold");break;case"formatItalic":rb(t,p,"italic");break;case"formatUnderline":rb(t,p,"underline");break;case"historyUndo":rb(t,_,void 0);break;case"historyRedo":rb(t,m,void 0)}else{if("\n"===o)e.preventDefault(),rb(t,a,!1);else if("\n\n"===o)e.preventDefault(),rb(t,u,void 0);else if(null==o&&e.dataTransfer){let t=e.dataTransfer.getData("text/plain");e.preventDefault(),l.insertRawText(t)}else null!=o&&nr(l,r,o,e.timeStamp,!0)?(e.preventDefault(),rb(t,d,o)):t4=o;t6=e.timeStamp}})})(e,t)]);let t3=0,t5=null,t6=0,t4=null,t9=new WeakMap,t7=!1,t8=!1,ne=!1,nt=!1,nn=[0,"",0,"root",0];function nr(e,t,n,r,i){let l=e.anchor,o=e.focus,s=l.getNode(),a=rp(),u=ty(a._window),d=null!==u?u.anchorNode:null,f=l.key,c=a.getElementByKey(f),h=n.length;return f!==o.key||!nM(s)||(!i&&(!Q||t6<r+50)||s.isDirty()&&h<2||e1(n))&&l.offset!==o.offset&&!s.isComposing()||eR(s)||s.isDirty()&&h>1||(i||!Q)&&null!==c&&!s.isComposing()&&d!==eB(c)||null!==u&&null!==t&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||s.getFormat()!==e.format||s.getStyle()!==e.style||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let n=e.anchor.offset,r=t.getParentOrThrow(),i=t.isToken();return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||i||function(e){let t=e.getPreviousSibling();return(nM(t)||rE(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||i)}(e,s)}function ni(e,t){return null!==e&&null!==e.nodeValue&&3===e.nodeType&&0!==t&&t!==e.nodeValue.length}function nl(e,t,n){let{anchorNode:r,anchorOffset:l,focusNode:o,focusOffset:s}=e;t7&&(t7=!1,ni(r,l)&&ni(o,s))||rw(t,()=>{if(!n)return void eX(null);if(!eM(t,r,o))return;let a=n9();if(n$(a)){let n=a.anchor,r=n.getNode();if(a.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(a.dirty=!0);let i=tc(t).event,l=i?i.timeStamp:performance.now(),[o,s,u,d,f]=nn,c=eq(),h=!1===t.isComposing()&&""===c.getTextContent();if(l<f+200&&n.offset===u&&n.key===d)a.format=o,a.style=s;else if("text"===n.type)nM(r)||ey(141),a.format=r.getFormat(),a.style=r.getStyle();else if("element"===n.type&&!h){let e=n.getNode();e instanceof rR&&0===e.getChildrenSize()?a.format=e.getTextFormat():a.format=0,a.style=""}}else{let e=n.key,t=a.focus.key,r=a.getNodes(),i=r.length,o=a.isBackward(),u=o?s:l,d=o?l:s,f=o?t:e,c=o?e:t,h=255,g=!1;for(let e=0;e<i;e++){let t=r[e],n=t.getTextContentSize();if(nM(t)&&0!==n&&(0!==e||t.__key!==f||u!==n)&&(e!==i-1||t.__key!==c||0!==d)&&(g=!0,0==(h&=t.getFormat())))break}a.format=g?h:0}}rb(t,i,void 0)})}function no(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return 0===t.length?null:t[0]}function ns(e,t){let n=e._compositionKey;if(eK(null),null!==n&&null!=t){if(""===t){let t=eH(n),r=eB(e.getElementByKey(n));return void(null!==r&&null!==r.nodeValue&&nM(t)&&e4(t,r.nodeValue,null,null,!0))}if("\n"===t[t.length-1]){let t=n9();if(n$(t)){let n=t.focus;return t.anchor.set(n.key,n.offset,n.type),void rb(e,k,null)}}}e6(!0,e,t)}function na(e){let t=e.__lexicalEventHandles;return void 0===t&&(e.__lexicalEventHandles=t=[]),t}let nu=new Map;
1function nd(e){let t=e.target,n=ty(null==t?null:9===t.nodeType?t.defaultView:t.ownerDocument.defaultView);if(null===n)return;let r=eF(n.anchorNode);if(null===r)return;t8&&(t8=!1,rw(r,()=>{let t=n7(),i=n.anchorNode;if(null===i)return;let l=i.nodeType;(1===l||3===l)&&eX(n4(t,n,r,e))}));let i=e2(r),l=i[i.length-1],o=l._key,s=nu.get(o),a=s||l;a!==r&&nl(n,a,!1),nl(n,r,!0),r!==l?nu.set(o,r):s&&nu.delete(o)}function nf(e){e._lexicalHandled=!0}function nc(e){return!0===e._lexicalHandled}function nh(e,t,n){rc();let r=e.__key,i=e.getParent();if(null===i)return;let l=function(e){let t=n9();if(!n$(t)||!rE(e))return t;let{anchor:n,focus:r}=t,i=n.getNode(),l=r.getNode();return tf(i,e)&&n.set(e.__key,0,"element"),tf(l,e)&&r.set(e.__key,0,"element"),t}(e),o=!1;if(n$(l)&&t){let t=l.anchor,n=l.focus;t.key===r&&(rt(t,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0),n.key===r&&(rt(n,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0)}else nG(l)&&t&&e.isSelected()&&e.selectPrevious();if(n$(l)&&t&&!o){let t=e.getIndexWithinParent();eU(e),n8(l,i,t,-1)}else eU(e);n||th(i)||i.canBeEmpty()||!i.isEmpty()||nh(i,t),t&&rL(i)&&i.isEmpty()&&i.selectEnd()}class ng{static getType(){ey(64,this.name)}static clone(e){ey(65,this.name)}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,function(e,t){if(null!=t)return e.__key=t;rc(),rh();let n=rp(),r=rg(),i=""+eI++;r._nodeMap.set(i,e),rE(e)?n._dirtyElements.set(i,!0):n._dirtyLeaves.add(i),n._cloneNotNeeded.add(i),n._dirtyType=1,e.__key=i}(this,e)}getType(){return this.__type}isInline(){ey(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;let t=eH(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){let t=e||n9();if(null==t)return!1;let n=t.getNodes().some(e=>e.__key===this.__key);return(nM(this)||!n$(t)||"element"!==t.anchor.type||"element"!==t.focus.type||t.anchor.key!==t.focus.key||t.anchor.offset!==t.focus.offset)&&n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();if(null===e)return -1;let t=e.getFirstChild(),n=0;for(;null!==t;){if(this.is(t))return n;n++,t=t.getNextSibling()}return -1}getParent(){let e=this.getLatest().__parent;return null===e?null:eH(e)}getParentOrThrow(){let e=this.getParent();return null===e&&ey(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let t=e.getParent();if(th(t))return rE(e)||ey(138),e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&ey(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return null===e?null:eH(e)}getPreviousSiblings(){let e=[],t=this.getParent();if(null===t)return e;let n=t.getFirstChild();for(;null!==n&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return null===e?null:eH(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=this.getParents(),n=e.getParents();rE(this)&&t.unshift(this),rE(e)&&n.unshift(e);let r=t.length,i=n.length;if(0===r||0===i||t[r-1]!==n[i-1])return null;let l=new Set(n);for(let e=0;e<r;e++){let n=t[e];if(l.has(n))return n}return null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){if(this===e)return!1;if(e.isParentOf(this))return!0;if(this.isParentOf(e))return!1;let t=this.getCommonAncestor(e),n=0,r=0,i=this;for(;;){let e=i.getParentOrThrow();if(e===t){n=i.getIndexWithinParent();break}i=e}for(i=e;;){let e=i.getParentOrThrow();if(e===t){r=i.getIndexWithinParent();break}i=e}return n<r}isParentOf(e){let t=this.__key;if(t===e.__key)return!1;let n=e;for(;null!==n;){if(n.__key===t)return!0;n=n.getParent()}return!1}getNodesBetween(e){let t=this.isBefore(e),n=[],r=new Set,i=this;for(;null!==i;){let l=i.__key;if(r.has(l)||(r.add(l),n.push(i)),i===e)break;let o=rE(i)?t?i.getFirstChild():i.getLastChild():null;if(null!==o){i=o;continue}let s=t?i.getNextSibling():i.getPreviousSibling();if(null!==s){i=s;continue}let a=i.getParentOrThrow();if(r.has(a.__key)||n.push(a),a===e)break;let u=null,d=a;do{if(null===d&&ey(68),u=t?d.getNextSibling():d.getPreviousSibling(),null===(d=d.getParent()))break;null!==u||r.has(d.__key)||n.push(d)}while(null===u);i=u}return t||n.reverse(),n}isDirty(){let e=rp()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){let e=eH(this.__key);return null===e&&ey(113),e}getWritable(){rc();let e=rg(),t=rp(),n=e._nodeMap,r=this.__key,i=this.getLatest(),l=i.__parent,o=t._cloneNotNeeded,s=n9();if(null!==s&&s.setCachedNodes(null),o.has(r))return eJ(i),i;let a=i.constructor.clone(i);return a.__parent=l,a.__next=i.__next,a.__prev=i.__prev,rE(i)&&rE(a)?(rW(i)&&rW(a
1)&&(a.__textFormat=i.__textFormat),a.__first=i.__first,a.__last=i.__last,a.__size=i.__size,a.__indent=i.__indent,a.__format=i.__format,a.__dir=i.__dir):nM(i)&&nM(a)&&(a.__format=i.__format,a.__style=i.__style,a.__mode=i.__mode,a.__detail=i.__detail),o.add(r),a.__key=r,eJ(a),n.set(r,a),a}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){ey(70)}updateDOM(e,t,n){ey(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){ey(72)}static importJSON(e){ey(18,this.name)}static transform(){return null}remove(e){nh(this,!0,e)}replace(e,t){rc();let n=n9();null!==n&&(n=n.clone()),tp(this,e);let r=this.getLatest(),i=this.__key,l=e.__key,o=e.getWritable(),s=this.getParentOrThrow().getWritable(),a=s.__size;eU(o);let u=r.getPreviousSibling(),d=r.getNextSibling(),f=r.__prev,c=r.__next,h=r.__parent;if((nh(r,!1,!0),null===u)?s.__first=l:u.getWritable().__next=l,(o.__prev=f,null===d)?s.__last=l:d.getWritable().__prev=l,o.__next=c,o.__parent=h,s.__size=a,t&&(rE(this)&&rE(o)||ey(139),this.getChildren().forEac
1h(e=>{o.append(e)})),n$(n)){eX(n);let e=n.anchor,t=n.focus;e.key===i&&nK(e,o),t.key===i&&nK(t,o)}return ej()===i&&eK(l),o}insertAfter(e,t=!0){rc(),tp(this,e);let n=this.getWritable(),r=e.getWritable(),i=r.getParent(),l=n9(),o=!1,s=!1;if(null!==i){let t=e.getIndexWithinParent();if(eU(r),n$(l)){let e=i.__key,n=l.anchor,r=l.focus;o="element"===n.type&&n.key===e&&n.offset===t+1,s="element"===r.type&&r.key===e&&r.offset===t+1}}let a=this.getNextSibling(),u=this.getParentOrThrow().getWritable(),d=r.__key,f=n.__next;if(null===a?u.__last=d:a.getWritable().__prev=d,u.__size++,n.__next=d,r.__next=f,r.__prev=n.__key,r.__parent=n.__parent,t&&n$(l)){let e=this.getIndexWithinParent();n8(l,u,e+1);let t=u.__key;o&&l.anchor.set(t,e+2,"element"),s&&l.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){rc(),tp(this,e);let n=this.getWritable(),r=e.getWritable(),i=r.__key;eU(r);let l=this.getPreviousSibling(),o=this.getParentOrThrow().getWritable(),s=n.__prev,a=this.getIndexWithinParent();null===l?o.__first=i:l.getWritable().__next=i,o.__size++,n.__prev=i,r.__prev=s,r.__next=n.__key,r.__parent=n.__parent;let u=n9();return t&&n$(u)&&n8(u,this.getParentOrThrow(),a),e}isParentRequired(){return!1}createParentElementNode(){return rz()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){rc();let n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(rE(n))return n.select();if(!nM(n)){let e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){rc();let n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(rE(n))return n.select(0,0);if(!nM(n)){let e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}}class np extends ng{static getType(){return"linebreak"}static clone(e){return new np(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>!function(e){let t=e.parentElement;if(null!==t){let n=t.firstChild;if(n===e||n.nextSibling===e&&nv(n)){let n=t.lastChild;if(n===e||n.previousSibling===e&&nv(n))return!0}}return!1}(e)?{conversion:n_,priority:0}:null}}static importJSON(e){return nm()}exportJSON(){return{type:"linebreak",version:1}}}function n_(e){return{node:nm()}}function nm(){return tg(new np)}function ny(e){return e instanceof np}function nv(e){return 3===e.nodeType&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function nx(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function nT(e,t){return 1&t?"strong":2&t?"em":"span"}function nC(e,t,n,r,i){let l=r.classList,o=tr(i,"base");void 0!==o&&l.add(...o);let s=!1,a=8&t&&4&t;for(let e in void 0!==(o=tr(i,"underlineStrikethrough"))&&(8&n&&4&n?(s=!0,a||l.add(...o)):a&&l.remove(...o)),ec){let r=ec[e];if(void 0!==(o=tr(i,e)))if(n&r){if(s&&("underline"===e||"strikethrough"===e)){t&r&&l.remove(...o);continue}t&r&&(!a||"underline"!==e)&&"strikethrough"!==e||l.add(...o)}else t&r&&l.remove(...o)}}function nb(e,t,n){let r=t.firstChild,i=n.isComposing(),l=e+(i?eo:"");if(null==r)t.textContent=l;else{let e=r.nodeValue;if(e!==l)if(i||X){let[t,n,i]=function(e,t){let n=e.length,r=t.length,i=0,l=0;for(;i<n&&i<r&&e[i]===t[i];)i++;for(;l+i<n&&l+i<r&&e[n-l-1]===t[r-l-1];)l++;return[i,n-i-l,t.slice(i,r-l)]}(e,l);0!==n&&r.deleteData(t,n),r.insertData(t,i)}else r.nodeValue=l}}function nS(e,t,n,r,i,l){nb(i,e,t);let o=l.theme.text;void 0!==o&&nC(0,0,r,e,o)}function nk(e,t){let n=document.createElement(t);return n.appendChild(e),n}class nw extends ng{static getType(){return"text"}static clone(e){return new nw(e.__text,e.__key)}constructor(e,t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){return em[this.getLatest().__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===ej()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){let t=ec[e];return!!(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return ez(this.getLatest().__format,e,t)}canHaveFormat(){return!0}createDOM(e,t){let n=this.__format,r=nx(0,n),i=nT(0,n),l=null===r?i:r,o=document.createElement(l),s=o;
1this.hasFormat("code")&&o.setAttribute("spellcheck","false"),null!==r&&(s=document.createElement(i),o.appendChild(s)),nS(s,this,0,n,this.__text,e);let a=this.__style;return""!==a&&(o.style.cssText=a),o}updateDOM(e,t,n){let r=this.__text,i=e.__format,l=this.__format,o=nx(0,i),s=nx(0,l),a=nT(0,i),u=nT(0,l);if((null===o?a:o)!==(null===s?u:s))return!0;if(o===s&&a!==u){let e=t.firstChild;null==e&&ey(48);let i=document.createElement(u);return nS(i,this,0,l,r,n),t.replaceChild(i,e),!1}let d=t;null!==s&&null!==o&&null==(d=t.firstChild)&&ey(49),nb(r,d,this);let f=n.theme.text;void 0!==f&&i!==l&&nC(0,i,l,d,f);let c=e.__style,h=this.__style;return c!==h&&(t.style.cssText=h),!1}static importDOM(){return{"#text":()=>({conversion:nD,priority:0}),b:()=>({conversion:nE,priority:0}),code:()=>({conversion:nL,priority:0}),em:()=>({conversion:nL,priority:0}),i:()=>({conversion:nL,priority:0}),s:()=>({conversion:nL,priority:0}),span:()=>({conversion:nN,priority:0}),strong:()=>({conversion:nL,priority:0}),sub:()=>({conversion:nL,priority:0}),sup:()=>({conversion:nL,priority:0}),u:()=>({conversion:nL,priority:0})}}static importJSON(e){let t=nP(e.text);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportDOM(e){let{element:t}=super.exportDOM(e);return null!==t&&tx(t)||ey(132),t.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(t=nk(t,"b")),this.hasFormat("italic")&&(t=nk(t,"i")),this.hasFormat("strikethrough")&&(t=nk(t,"s")),this.hasFormat("underline")&&(t=nk(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(e,t){}setFormat(e){let t=this.getWritable();return t.__format="string"==typeof e?ec[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail="string"==typeof e?eh[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=ez(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){let t=e_[e];if(this.__mode===t)return this;let n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){rc();let n=e,r=t,i=n9(),l=this.getTextContent(),o=this.__key;if("string"==typeof l){let e=l.length;void 0===n&&(n=e),void 0===r&&(r=e)}else n=0,r=0;if(!n$(i))return n3(o,n,o,r,"text","text");{let e=ej();e!==i.anchor.key&&e!==i.focus.key||eK(o),i.setTextNodeRange(this,n,this,r)}return i}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){let i=this.getWritable(),l=i.__text,o=n.length,s=e;s<0&&(s=o+s)<0&&(s=0);let a=n9();if(r&&n$(a)){let t=e+o;a.setTextNodeRange(i,t,i,t)}return i.__text=l.slice(0,s)+n+l.slice(s+t),i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){let t;rc();let n=this.getLatest(),r=n.getTextContent(),i=n.__key,l=ej(),o=new Set(e),s=[],a=r.length,u="";for(let e=0;e<a;e++)""!==u&&o.has(e)&&(s.push(u),u=""),u+=r[e];""!==u&&s.push(u);let d=s.length;if(0===d)return[];if(s[0]===r)return[n];let f=s[0],c=n.getParentOrThrow(),h=n.getFormat(),g=n.getStyle(),p=n.__detail,_=!1;n.isSegmented()?((t=nP(f)).__format=h,t.__style=g,t.__detail=p,_=!0):(t=n.getWritable()).__text=f;let m=n9(),y=[t],v=f.length;for(let e=1;e<d;e++){let t=s[e],n=t.length,r=nP(t).getWritable();r.__format=h,r.__style=g,r.__detail=p;let o=r.__key,a=v+n;if(n$(m)){let e=m.anchor,t=m.focus;e.key===i&&"text"===e.type&&e.offset>v&&e.offset<=a&&(e.key=o,e.offset-=v,m.dirty=!0),t.key===i&&"text"===t.type&&t.offset>v&&t.offset<=a&&(t.key=o,t.offset-=v,m.dirty=!0)}l===i&&eK(o),v=a,y.push(r)}let x=this.getPreviousSibling(),T=this.getNextSibling();null!==x&&eJ(x),null!==T&&eJ(T);let C=c.getWritable(),b=this.getIndexWithinParent();return _?(C.splice(b,0,y),this.remove()):C.splice(b,1,y),n$(m)&&n8(m,c,b,d-1),y}mergeWithSibling(e){let t=e===this.getPreviousSibling();t||e===this.getNextSibling()||ey(50);let n=this.__key,r=e.__key,i=this.__text,l=i.length;ej()===r&&eK(n);let o=n9();if(n$(o)){let i=o.anchor,s=o.focus;null!==i&&i.key===r&&(rn(i,t,n,e,l),o.dirty=!0),null!==s&&s.key===r&&(rn(s,t,n,e,l),o.dirty=!0)}let s=e.__text,a=t?s+i:i+s;this.setTextContent(a);let u=this.getWritable();return e.remove(),u}isTextEntity(){return!1}}function nN(e){return{forChild:nF(e.style),node:null}}function nE(e){let t="normal"===e.style.fontWeight;return{forChild:nF(e.style,t?void 0:"bold"),node:null}}let nA=new WeakMap;function nD(e){null===e.parentElement&&ey(129);let t=e.textContent||"";if(null!==function(e){var t;let n,r=e.parentNode,i=[e];for(;null!==r&&void 0===(n=nA.get(r))&&!("PRE"===(t=r).nodeName||1===t.nodeType&&void 0!==t.style&&void 0!==t.style.whiteSpace&&t.style.whiteSpace.startsWith("pre"));)i.push(r),r=r.parentNode;let l=void 0===n?r:n;for(let e=0;e<i.length;e++)nA.set(i[e],l);return l}(e)){let e=t.split(/(\r?\n|\t)/),n=[],r=e.length;for(let t=0;t<r;t++){let r=e[t];"\n"===r||"\r\n"===r?n.push(nm()):" "===r?n.push(nB()):""!==r&&n.push(nP(r))}return{node:n}}if(""===(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," ")))return{node:null};if(" "===t[0]){let n=e,r=!0;for(;null!==n&&null!==(n=nO(n,!1));){let e=n.textContent||"";if(e.length>
10){/[ \t\n]$/.test(e)&&(t=t.slice(1)),r=!1;break}}r&&(t=t.slice(1))}if(" "===t[t.length-1]){let n=e,r=!0;for(;null!==n&&null!==(n=nO(n,!0));)if((n.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(t=t.slice(0,t.length-1))}return""===t?{node:null}:{node:nP(t)}}function nO(e,t){let n=e;for(;;){let e;for(;null===(e=t?n.nextSibling:n.previousSibling);){let e=n.parentElement;if(null===e)return null;n=e}if(1===(n=e).nodeType){let e=n.style.display;if(""===e&&!function(e){let t=RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(3===n.nodeType)return n;if("BR"===n.nodeName)return null}}let nI={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function nL(e){let t=nI[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:nF(e.style,t),node:null}}function nP(e=""){return tg(new nw(e))}function nM(e){return e instanceof nw}function nF(e,t){let n=e.fontWeight,r=e.textDecoration.split(" "),i="700"===n||"bold"===n,l=r.includes("line-through"),o="italic"===e.fontStyle,s=r.includes("underline"),a=e.verticalAlign;return e=>(nM(e)&&(i&&!e.hasFormat("bold")&&e.toggleFormat("bold"),l&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),o&&!e.hasFormat("italic")&&e.toggleFormat("italic"),s&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==a||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==a||e.hasFormat("superscript")||e.toggleFormat("superscript"),t&&!e.hasFormat(t)&&e.toggleFormat(t)),e)}class nR extends nw{static getType(){return"tab"}static clone(e){let t=new nR(e.__key);return t.__text=e.__text,t.__format=e.__format,t.__style=e.__style,t}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}static importJSON(e){let t=nB();return t.setFormat(e.format),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(e){ey(126)}setDetail(e){ey(127)}setMode(e){ey(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function nB(){return tg(new nR)}function nz(e){return e instanceof nR}class nW{constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let t=this.getNode(),n=e.getNode(),r=this.offset,i=e.offset;if(rE(t)){let e=t.getDescendantByIndex(r);t=null!=e?e:t}if(rE(n)){let e=n.getDescendantByIndex(i);n=null!=e?e:n}return t===n?r<i:t.isBefore(n)}getNode(){let e=eH(this.key);return null===e&&ey(20),e}set(e,t,n){let r=this._selection,i=this.key;this.key=e,this.offset=t,this.type=n,rf()||(ej()===i&&eK(e),null!==r&&(r.setCachedNodes(null),r.dirty=!0))}}function nU(e,t,n){return new nW(e,t,n)}function nJ(e,t){let n=t.__key,r=e.offset,i="element";if(nM(t)){i="text";let e=t.getTextContentSize();r>e&&(r=e)}else if(!rE(t)){let e=t.getNextSibling();if(nM(e))n=e.__key,r=0,i="text";else{let e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,i)}function nK(e,t){if(rE(t)){let n=t.getLastDescendant();rE(n)||nM(n)?nJ(e,n):nJ(e,t)}else nJ(e,t)}function nj(e,t,n,r){e.key=t,e.offset=n,e.type=r}class nH{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!nG(e))return!1;let t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every(e=>n.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new nH(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){let t,n=this.getNodes(),r=n.length,i=n[r-1];if(nM(i))t=i.select();else{let e=i.getIndexWithinParent()+1;t=i.getParentOrThrow().select(e,e)}
1t.insertNodes(e);for(let e=0;e<r;e++)n[e].remove()}getNodes(){let e=this._cachedNodes;if(null!==e)return e;let t=this._nodes,n=[];for(let e of t){let t=eH(e);null!==t&&n.push(t)}return rf()||(this._cachedNodes=n),n}getTextContent(){let e=this.getNodes(),t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}}function n$(e){return e instanceof nZ}class nZ{constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!n$(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){let e,t=this._cachedNodes;if(null!==t)return t;let n=this.anchor,r=this.focus,i=n.isBefore(r),l=i?n:r,o=i?r:n,s=l.getNode(),a=o.getNode(),u=l.offset,d=o.offset;if(rE(s)){let e=s.getDescendantByIndex(u);s=null!=e?e:s}if(rE(a)){let e=a.getDescendantByIndex(d);null!==e&&e!==s&&a.getChildAtIndex(d)===e&&(e=e.getPreviousSibling()),a=null!=e?e:a}return e=s.is(a)?rE(s)&&s.getChildrenSize()>0?[]:[s]:s.getNodesBetween(a),rf()||(this._cachedNodes=e),e}setTextNodeRange(e,t,n,r){nj(this.anchor,e.__key,t,"text"),nj(this.focus,n.__key,r,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){let e=this.getNodes();if(0===e.length)return"";let t=e[0],n=e[e.length-1],r=this.anchor,i=this.focus,l=r.isBefore(i),[o,s]=nq(this),a="",u=!0;for(let d=0;d<e.length;d++){let f=e[d];if(rE(f)&&!f.isInline())u||(a+="\n"),u=!f.isEmpty();else if(u=!1,nM(f)){let e=f.getTextContent();f===t?f===n?"element"===r.type&&"element"===i.type&&i.offset!==r.offset||(e=o<s?e.slice(o,s):e.slice(s,o)):e=l?e.slice(o):e.slice(s):f===n&&(e=l?e.slice(0,s):e.slice(0,o)),a+=e}else!rO(f)&&!ny(f)||f===n&&this.isCollapsed()||(a+=f.getTextContent())}return a}applyDOMRange(e){let t=rp(),n=t.getEditorState()._selection,r=n1(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(null===r)return;let[i,l]=r;nj(this.anchor,i.key,i.offset,i.type),nj(this.focus,l.key,l.offset,l.type),this._cachedNodes=null}clone(){let e=this.anchor,t=this.focus;return new nZ(nU(e.key,e.offset,e.type),nU(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=ez(this.format,e,null),this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){let t=ec[e];return!!(this.format&t)}insertRawText(e){let t=e.split(/(\r?\n|\t)/),n=[],r=t.length;for(let e=0;e<r;e++){let r=t[e];"\n"===r||"\r\n"===r?n.push(nm()):" "===r?n.push(nB()):n.push(nP(r))}this.insertNodes(n)}insertText(e){let t=this.anchor,n=this.focus,r=this.format,i=this.style,l=t,o=n;!this.isCollapsed()&&n.isBefore(t)&&(l=n,o=t),"element"===l.type&&function(e,t,n,r){let i=e.getNode(),l=i.getChildAtIndex(e.offset),o=nP(),s=rL(i)?rz().append(o):o;o.setFormat(n),o.setStyle(r),null===l?i.append(s):l.insertBefore(s),e.is(t)&&t.set(o.__key,0,"text"),e.set(o.__key,0,"text")}(l,o,r,i);let s=l.offset,a=o.offset,u=this.getNodes(),d=u.length,f=u[0];nM(f)||ey(26);let c=f.getTextContent().length,h=f.getParentOrThrow(),g=u[d-1];if(1===d&&"element"===o.type&&(a=c,o.set(l.key,a,"text")),this.isCollapsed()&&s===c&&(f.isSegmented()||f.isToken()||!f.canInsertTextAfter()||!h.canInsertTextAfter()&&null===f.getNextSibling())){let t=f.getNextSibling();if(nM(t)&&t.canInsertTextBefore()&&!eR(t)||((t=nP()).setFormat(r),t.setStyle(i),h.canInsertTextAfter()?f.insertAfter(t):h.insertAfter(t)),t.select(0,0),f=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===s&&(f.isSegmented()||f.isToken()||!f.canInsertTextBefore()||!h.canInsertTextBefore()&&null===f.getPreviousSibling())){let t=f.getPreviousSibling();if(nM(t)&&!eR(t)||((t=nP()).setFormat(r),h.canInsertTextBefore()?f.insertBefore(t):h.insertBefore(t)),t.select(),f=t,""!==e)return void this.insertText(e)}else if(f.isSegmented()&&s!==c){let e=nP(f.getTextContent());e.setFormat(r),f.replace(e),f=e}else if(!this.isCollapsed()&&""!==e){let t=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||rE(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),n0(this.anchor,this.focus,null),void this.insertText(e)}if(1===d){if(f.isToken()){let t=nP(e);return t.select(),void f.replace(t)}let t=f.getFormat(),n=f.getStyle();if(s!==a||t===r&&n===i){if(nz(f)){let t=nP(e);return t.setFormat(r),t.setStyle(i),t.select(),void f.replace(t)}}else{if(""!==f.getTextContent()){let t=nP(e);if(t.setFormat(r),t.setStyle(i),t.select(),0===s)f.insertBefore(t,!1);else{let[e]=f.splitText(s);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}f.setFormat(r),f.setStyle(i)}let l=a-s;""===(f=f.spliceText(s,l,e,!0)).getTextContent()?f.remove():"text"===this.anchor.type&&(f.isComposing()?this.anchor.offset-=e.length:(this.format=t,this.style=n))}else{let t=new Set([...f.getParentKeys(),...g.getParentKeys()]),n=rE(f)?f:f.getParentOrThrow(),r=rE(g)?g:g.getParentOrThrow(),i=g;if(!n.is(r)&&r.isInline())do i=r,r=r.getParentOrThrow();while(r.isInline());if("text"===o.type&&(0!==a||""===g.getTextContent())||"element"===o.type&&g.getIndexWithinParent()<a)if(nM(g)&&!g.isToken()&&a!==g.getTextContentSize()){if(g.isSegmented()){let e=nP(g.getTextContent());g.replace(e),g=e}rL(o.getNode())||"text"!==o.type||(g=g.spliceText(0,a,"")),t.add(g.__key)}else{let e=g.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?g.remove():e.remove()}else t.add(g.__key);let l=r.getChildren(),h=new Set(u),p=n.is(r),_=n.isInline()&&null===f.getNextSibling()?n:f;for(let e=l.length-1;e>=0;e--){let t=l[e];if(t.is(f)||rE(t)&&t.isParentOf(f))break;t.isAttached()&&(!h.has(t)||t.is(i)?p||_.insertAfter(t,!1):t.remove())}if(!p){let e=r,n=null;for(;null!==e;){let r=e.getChildren(),i=r.length;(0===i||r[i-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(f.isToken())if(s===c)f.select();else{let t=nP(e);t.select(),f.replace(t)}else""===(f=f.spliceText(s,c-s,e,!0)).getTextContent()?f.remove():f.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length);for(let e=1;e<d;e++){let n=u[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){this.insertText("")}formatText(e){if(this.isCollapsed())return this.toggleFormat(e),void eK(null);let t=this.getNodes(),n=[];for(let e of t)nM(e)&&n.push(e);let r=n.length;if(0===r)return this.toggleFormat(e),void eK(null);let i=this.anchor,l=this.focus,o=this.isBackward(),s=o?l:i,a=o?i:l,u=0,d=n[0],f="element"===s.type?0:s.offset;if("text"===s.type&&f===d.getTextContentSize()&&(u=1,d=n[1],f=0),null==d)return;let c=d.getFormatFlags(e,null),h=r-1,g=n[h],p="text"===a.type?a.offset:g.getTextContentSize();if(d.is(g)){if(f===p)return;if(eR(d)||0===f&&p===d.getTextContentSize())d.setFormat(c);else{let e=d.splitText(f,p),t=0===f?e[0]:e[1];t.setFormat(c),"text"===s.type&&s.set(t.__key,0,"text"),"text"===a.type&&a.set(t.__key,p-f,"text")}return void(this.format=c)}0===f||eR(d)||([,d]=d.splitText(f),f=0),d.setFormat(c);let _=g.getFormatFlags(e,c);p>0&&(p===g.getTextContentSize()||eR(g)||([g]=g.splitText(p)),g.setFormat(_));for(let t=u+1;t<h;t++){let r=n[t],i=r.getFormatFlags(e,_);r.setFormat(i)}"text"===s.type&&s.set(d.__key,f,"text"),"text"===a.type&&a.set(g.__key,p,"text"),this.format=c|_}insertNodes(e){var t;if(0===e.length)return;if("root"===this.anchor.key){this.insertParagraph();let t=n9();
1return n$(t)||ey(134),t.insertNodes(e)}let n=tb((this.isBackward()?this.focus:this.anchor).getNode(),tC),r=e[e.length-1];if("__language"in n&&rE(n)){if("__language"in e[0])this.insertText(e[0].getTextContent());else{let t=ri(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some(e=>(rE(e)||rO(e))&&!e.isInline())){rE(n)||ey(135);let t=ri(this);return n.splice(t,0,e),void r.selectEnd()}let i=function(e){let t=rz(),n=null;for(let r=0;r<e.length;r++){let i=e[r],l=ny(i);if(l||rO(i)&&i.isInline()||rE(i)&&i.isInline()||nM(i)||i.isParentRequired()){if(null===n&&(n=i.createParentElementNode(),t.append(n),l))continue;null!==n&&n.append(i)}else t.append(i),n=null}return t}(e),l=i.getLastDescendant(),o=i.getChildren(),s=e=>"__value"in e&&"__checked"in e,a=rE(n)&&n.isEmpty()?null:this.insertParagraph(),u=o[o.length-1],d=o[0];rE(t=d)&&tC(t)&&!t.isEmpty()&&rE(n)&&(!n.isEmpty()||s(n))&&(rE(n)||ey(135),n.append(...d.getChildren()),d=o[1]),d&&function(e,t,n){let r=t.getParentOrThrow().getLastChild(),i=t,l=[t];for(;i!==r;)i.getNextSibling()||ey(140),l.push(i=i.getNextSibling());let o=e;for(let e of l)o=o.insertAfter(e)}(n,d);let f=tb(l,tC);a&&rE(f)&&(s(a)||tC(u))&&(f.append(...a.getChildren()),a.remove()),rE(n)&&n.isEmpty()&&n.remove(),l.selectEnd();let c=rE(n)?n.getLastChild():null;ny(c)&&f!==n&&c.remove()}insertParagraph(){if("root"===this.anchor.key){let e=rz();return eq().splice(this.anchor.offset,0,[e]),e.select(),e}let e=ri(this),t=tb(this.anchor.getNode(),tC);rE(t)||ey(136);let n=t.getChildAtIndex(e),r=n?[n,...n.getNextSiblings()]:[],i=t.insertNewAfter(this,!1);return i?(i.append(...r),i.selectStart(),i):null}insertLineBreak(e){let t=nm();if(this.insertNodes([t]),e){let e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){let e=this.getNodes(),t=e.length,n=t-1,r=this.anchor,i=this.focus,l=e[0],o=e[n],[s,a]=nq(this);if(0===t)return[];if(1===t){if(nM(l)&&!this.isCollapsed()){let e=s>a?a:s,t=l.splitText(e,s>a?s:a),n=0===e?t[0]:t[1];return null!=n?[n]:[]}return[l]}let u=r.isBefore(i);if(nM(l)){let t=u?s:a;t===l.getTextContentSize()?e.shift():0!==t&&([,l]=l.splitText(t),e[0]=l)}if(nM(o)){let t=o.getTextContent().length,r=u?a:s;0===r?e.pop():r!==t&&([o]=o.splitText(r),e[n]=o)}return e}modify(e,t,n){var r;let i=this.focus,l=this.anchor,o="move"===e,s=to(i,t);if(rO(s)&&!s.isIsolated()){if(o&&s.isKeyboardSelectable()){let e=n6();return e.add(s.__key),void eX(e)}let e=t?s.getPreviousSibling():s.getNextSibling();if(nM(e)){let n=e.__key,r=t?e.getTextContent().length:0;return i.set(n,r,"text"),void(o&&l.set(n,r,"text"))}{let n,r,a=s.getParentOrThrow();return rE(e)?(r=e.__key,n=t?e.getChildrenSize():0):(n=s.getIndexWithinParent(),r=a.__key,t||n++),i.set(r,n,"element"),void(o&&l.set(r,n,"element"))}}let a=rp(),u=ty(a._window);if(!u)return;let d=a._blockCursorElement,f=a._rootElement;if(null===f||null===d||!rE(s)||s.isInline()||s.canBeEmpty()||tm(d,a,f),r=t?"backward":"forward",u.modify(e,r,n),u.rangeCount>0){let e=u.getRangeAt(0),n=this.anchor.getNode(),r=rL(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t&&!th(t);)t=t.getParentOrThrow();return t}(n);if(this.applyDOMRange(e),this.dirty=!0,!o){let n=this.getNodes(),i=[],l=!1;for(let e=0;e<n.length;e++){let t=n[e];tf(t,r)?i.push(t):l=!0}if(l&&i.length>0)if(t){let e=i[0];rE(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{let e=i[i.length-1];rE(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}u.anchorNode===e.startContainer&&u.anchorOffset===e.startOffset||function(e){let t=e.focus,n=e.anchor,r=n.key,i=n.offset,l=n.type;nj(n,t.key,t.offset,t.type),nj(t,r,i,l),e._cachedNodes=null}(this)}}}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&rE(t)&&e.offset===t.getChildrenSize()||"text"===e.type&&e.offset===t.getTextContentSize())){let e=t.getParent(),n=t.getNextSibling()||(null===e?null:e.getNextSibling());if(rE(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){let t=this.isCollapsed();if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;let r=this.focus,l=to(r,e);if(rO(l)&&!l.isIsolated()){if(l.isKeyboardSelectable()&&rE(n)&&0===n.getChildrenSize()){n.remove();let e=n6();e.add(l.__key),eX(e)}else l.remove(),rp().dispatchCommand(i,void 0);return}if(!e&&rE(l)&&rE(n)&&n.isEmpty())return n.remove(),void l.selectStart();if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&("element"===t.type?t.getNode():t.getNode().getParentOrThrow()).collapseAtStart(this))return}else{let i="text"===r.type?r.getNode():null;if(n="text"===t.type?t.getNode():null,null!==i&&i.isSegmented()){let t=r.offset,l=i.getTextContentSize();if(i.is(n)||e&&t!==l||!e&&0!==t)return void nY(i,e,t)}else if(null!==n&&n.isSegmented()){let r=t.offset,l=n.getTextContentSize();if(n.is(i)||e&&0!==r||!e&&r!==l)return void nY(n,e,r)}!function(e,t){let n=e.anchor,r=e.focus,i=n.getNode();if(i===r.getNode()&&"text"===n.type&&"text"===r.type){let e=n.offset,l=r.offset,o=e<l,s=o?e:l,a=o?l:e,u=a-1;
1s!==u&&(e1(i.getTextContent().slice(s,a))||(t?r.offset=u:n.offset=u))}}(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){let e=this.anchor.getNode();e.isEmpty()&&rL(e.getParent())&&0===e.getIndexWithinParent()&&e.collapseAtStart(this)}}deleteLine(e){if(this.isCollapsed()){let t="element"===this.anchor.type;if(t&&this.insertText(" "),this.modify("extend",e,"lineboundary"),0===(e?this.focus:this.anchor).offset&&this.modify("extend",e,"character"),t){let t=e?this.anchor:this.focus;t.set(t.key,t.offset+1,t.type)}}this.removeText()}deleteWord(e){if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function nG(e){return e instanceof nH}function nV(e){let t=e.offset;if("text"===e.type)return t;let n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function nq(e){let t=e.getStartEndPoints();if(null===t)return[0,0];let[n,r]=t;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[nV(n),nV(r)]}function nY(e,t,n){let r=e.getTextContent().split(/(?=\s)/g),i=r.length,l=0,o=0;for(let e=0;e<i;e++){let s=e===i-1;if(o=l,l+=r[e].length,t&&l===n||l>n||s){r.splice(e,1),s&&(o=void 0);break}}let s=r.join("").trim();""===s?e.remove():(e.setTextContent(s),e.select(o,o))}function nX(e,t,n,r){let i,l=t;if(1===e.nodeType){let o=!1,s=e.childNodes,a=s.length,u=r._blockCursorElement;l===a&&(o=!0,l=a-1);let d=s[l],f=!1;
1if(d===u)d=s[l+1],f=!0;else if(null!==u){let n=u.parentNode;e===n&&t>Array.prototype.indexOf.call(n.children,u)&&l--}if(nM(i=eQ(d)))l=e0(i,o);else{let r=eQ(e);if(null===r)return null;if(rE(r)){l=Math.min(r.getChildrenSize(),l);let e=r.getChildAtIndex(l);if(rE(e)&&function(e,t,n){let r=e.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(e,0,n)){let t=o?e.getLastDescendant():e.getFirstDescendant();r=null===t||rE(e=t)?e:e.getParentOrThrow(),l=0}nM(e)?(i=e,r=null,l=e0(e,o)):e!==r&&o&&!f&&l++}else{let n=r.getIndexWithinParent();l=0===t&&rO(r)&&eQ(e)===r?n:n+1,r=r.getParentOrThrow()}if(rE(r))return nU(r.__key,l,"element")}}else i=eQ(e);return nM(i)?nU(i.__key,l,"text"):null}function nQ(e,t,n){let r=e.offset,i=e.getNode();if(0===r){let r=i.getPreviousSibling(),l=i.getParent();if(t){if((n||!t)&&null===r&&rE(l)&&l.isInline()){let t=l.getPreviousSibling();nM(t)&&(e.key=t.__key,e.offset=t.getTextContent().length)}}else rE(r)&&!n&&r.isInline()?(e.key=r.__key,e.offset=r.getChildrenSize(),e.type="element"):nM(r)&&(e.key=r.__key,e.offset=r.getTextContent().length)}else if(r===i.getTextContent().length){let r=i.getNextSibling(),l=i.getParent();if(t&&rE(r)&&r.isInline())e.key=r.__key,e.offset=0,e.type="element";else if((n||t)&&null===r&&rE(l)&&l.isInline()&&!l.canInsertTextAfter()){let t=l.getNextSibling();nM(t)&&(e.key=t.__key,e.offset=0)}}}function n0(e,t,n){if("text"===e.type&&"text"===t.type){let r=e.isBefore(t),i=e.is(t);nQ(e,r,i),nQ(t,!r,i),i&&(t.key=e.key,t.offset=e.offset,t.type=e.type);let l=rp();if(l.isComposing()&&l._compositionKey!==e.key&&n$(n)){let r=n.anchor,i=n.focus;nj(e,r.key,r.offset,r.type),nj(t,i.key,i.offset,i.type)}}}function n1(e,t,n,r,i,l){if(null===e||null===n||!eM(i,e,n))return null;let o=nX(e,t,n$(l)?l.anchor:null,i);if(null===o)return null;let s=nX(n,r,n$(l)?l.focus:null,i);if(null===s)return null;if("element"===o.type&&"element"===s.type){let t=eQ(e),r=eQ(n);if(rO(t)&&rO(r))return null}return n0(o,s,l),[o,s]}function n2(e){return rE(e)&&!e.isInline()}function n3(e,t,n,r,i,l){let o=rg(),s=new nZ(nU(e,t,i),nU(n,r,l),0,"");return s.dirty=!0,o._selection=s,s}function n5(){return new nZ(nU("root",0,"element"),nU("root",0,"element"),0,"")}function n6(){return new nH(new Set)}function n4(e,t,n,r){let i,l,o,s,a=n._window;if(null===a)return null;let u=r||a.event,d=u?u.type:void 0,f="selectionchange"===d,c=!ex&&(f||"beforeinput"===d||"compositionstart"===d||"compositionend"===d||"click"===d&&u&&3===u.detail||"drop"===d||void 0===d);if(n$(e)&&!c)return e.clone();if(null===t)return null;if(i=t.anchorNode,l=t.focusNode,o=t.anchorOffset,s=t.focusOffset,f&&n$(e)&&!eM(n,i,l))return e.clone();let h=n1(i,o,l,s,n,e);if(null===h)return null;let[g,p]=h;return new nZ(g,p,n$(e)?e.format:0,n$(e)?e.style:"")}function n9(){return rg()._selection}function n7(){return rp()._editorState._selection}function n8(e,t,n,r=1){let i=e.anchor,l=e.focus,o=i.getNode(),s=l.getNode();if(!t.is(o)&&!t.is(s))return;let a=t.__key;if(e.isCollapsed()){let t=i.offset;if(n<=t&&r>0||n<t&&r<0){let n=Math.max(0,t+r);i.set(a,n,"element"),l.set(a,n,"element"),re(e)}}else{let o=e.isBackward(),s=o?l:i,u=s.getNode(),d=o?i:l,f=d.getNode();if(t.is(u)){let e=s.offset;(n<=e&&r>0||n<e&&r<0)&&s.set(a,Math.max(0,e+r),"element")}if(t.is(f)){let e=d.offset;(n<=e&&r>0||n<e&&r<0)&&d.set(a,Math.max(0,e+r),"element")}}re(e)}function re(e){let t=e.anchor,n=t.offset,r=e.focus,i=r.offset,l=t.getNode(),o=r.getNode();if(e.isCollapsed()){if(!rE(l))return;let e=l.getChildrenSize(),i=n>=e,o=i?l.getChildAtIndex(e-1):l.getChildAtIndex(n);if(nM(o)){let e=0;i&&(e=o.getTextContentSize()),t.set(o.__key,e,"text"),r.set(o.__key,e,"text")}}else{if(rE(l)){let e=l.getChildrenSize(),r=n>=e,i=r?l.getChildAtIndex(e-1):l.getChildAtIndex(n);if(nM(i)){let e=0;r&&(e=i.getTextContentSize()),t.set(i.__key,e,"text")}}if(rE(o)){let e=o.getChildrenSize(),t=i>=e,n=t?o.getChildAtIndex(e-1):o.getChildAtIndex(i);if(nM(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}}function rt(e,t,n,r,i){let l=null,o=0,s=null;null!==r?(l=r.__key,nM(r)?(o=r.getTextContentSize(),s="text"):rE(r)&&(o=r.getChildrenSize(),s="element")):null!==i&&(l=i.__key,nM(i)?s="text":rE(i)&&(s="element")),null!==l&&null!==s?e.set(l,o,s):(-1===(o=t.getIndexWithinParent())&&(o=n.getChildrenSize()),e.set(n.__key,o,"element"))}function rn(e,t,n,r,i){"text"===e.type?(e.key=n,t||(e.offset+=i)):e.offset>
1r.getIndexWithinParent()&&(e.offset-=1)}function rr(e){let t=n9()||n7();null===t&&(t=eq().selectEnd()),t.insertNodes(e)}function ri(e){let t=e;e.isCollapsed()||t.removeText();let n=n9();n$(n)&&(t=n),n$(t)||ey(161);let r=t.anchor,i=r.getNode(),l=r.offset;for(;!tC(i);)[i,l]=function(e,t){let n=e.getParent();if(!n){let e=rz();return eq().append(e),e.select(),[eq(),0]}if(nM(e)){let r=e.splitText(t);if(0===r.length)return[n,e.getIndexWithinParent()];let i=+(0!==t);return[n,r[0].getIndexWithinParent()+i]}if(!rE(e)||0===t)return[n,e.getIndexWithinParent()];let r=e.getChildAtIndex(t);if(r){let n=new nZ(nU(e.__key,t,"element"),nU(e.__key,t,"element"),0,""),i=e.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}(i,l);return l}let rl=null,ro=null,rs=!1,ra=!1,ru=0,rd={characterData:!0,childList:!0,subtree:!0};function rf(){return rs||null!==rl&&rl._readOnly}function rc(){rs&&ey(13)}function rh(){ru>99&&ey(14)}function rg(){return null===rl&&ey(15),rl}function rp(){return null===ro&&ey(16),ro}function r_(e,t,n){let r=t.__type,i=function(e,t){let n=e._nodes.get(t);return void 0===n&&ey(30,t),n}(e,r),l=n.get(r);void 0===l&&(l=Array.from(i.transforms),n.set(r,l));let o=l.length;for(let e=0;e<o&&(l[e](t),t.isAttached());e++);}function rm(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function ry(e){return rv(e,rp()._nodes)}function rv(e,t){let n=e.type,r=t.get(n);void 0===r&&ey(17,n);let i=r.klass;e.type!==i.getType()&&ey(18,i.name);let l=i.importJSON(e),o=e.children;if(rE(l)&&Array.isArray(o))for(let e=0;e<o.length;e++){let n=rv(o[e],t);l.append(n)}return l}function rx(e,t){let n=rl,r=rs,i=ro;rl=e,rs=!0,ro=null;try{return t()}finally{rl=n,rs=r,ro=i}}function rT(e,t){let n=e._pendingEditorState,r=e._rootElement,l=e._headless||null===r;if(null===n)return;let o=e._editorState,s=o._selection,a=n._selection,u=0!==e._dirtyType,d=rl,f=rs,c=ro,h=e._updating,g=e._observer,p=null;if(e._pendingEditorState=null,e._editorState=n,!l&&u&&null!==g){ro=e,rl=n,rs=!1,e._updating=!0;try{let t=e._dirtyType,r=e._dirtyElements,i=e._dirtyLeaves;g.disconnect(),p=function(e,t,n,r,i,l){tP="",tR="",tM="",tB=2===r,tW=null,tk=n,tS=n._config,tw=n._nodes,tN=tk._listeners.mutation,tE=i,tA=l,tD=e._nodeMap,tO=t._nodeMap,tz=t._readOnly,tI=new Map(n._keyToDOMMap);let o=new Map;return tL=o,function e(t,n){let r=tD.get(t),i=tO.get(t);void 0!==r&&void 0!==i||ey(61);let l=tB||tA.has(t)||tE.has(t),o=tu(tk,t);if(r===i&&!l){if(rE(r)){let e=o.__lexicalTextContent;void 0!==e&&(tP+=e,tR+=e);let t=o.__lexicalDirTextContent;void 0!==t&&(tM+=t)}else{let e=r.getTextContent();nM(r)&&!r.isDirectionless()&&(tM+=e),tR+=e,tP+=e}return o}if(r!==i&&l&&ti(tL,tw,tN,i,"updated"),i.updateDOM(r,o,tS)){let e=t$(t,null,null);return null===n&&ey(62),n.replaceChild(e,o),tU(t,null),e}if(rE(r)&&rE(i)){let t=i.__indent;t!==r.__indent&&tj(o,t);let n=i.__format;n!==r.__format&&tH(o,n),l&&(function(t,n,r){let i=tM;tM="",tF=null,function(t,n,r){let i=tP,l=t.__size,o=n.__size;if(tP="",1===l&&1===o){let i=t.__first,l=n.__first;if(i===l)e(i,r);else{let e=t0(i),t=t$(l,null,null);r.replaceChild(t,e),tU(i,null)}let o=tO.get(l);null===tF&&nM(o)&&(tF=o.getFormat())}else{let i=tY(t,tD),s=tY(n,tO);if(0===l)0!==o&&tZ(s,n,0,o-1,r,null);else if(0===o){if(0!==l){let e=null==r.__lexicalLineBreak;
1tJ(i,0,l-1,e?null:r),e&&(r.textContent="")}}else!function(t,n,r,i,l,o){let s=i-1,a=l-1,u,d,f=o.firstChild,c=0,h=0;for(;c<=s&&h<=a;){let t=n[c],i=r[h];if(t===i)f=tQ(e(i,o)),c++,h++;else{void 0===u&&(u=new Set(n)),void 0===d&&(d=new Set(r));let l=d.has(t),s=u.has(i);if(l)if(s){let t=tu(tk,i);t===f?f=tQ(e(i,o)):(null!=f?o.insertBefore(t,f):o.appendChild(t),e(i,o)),c++,h++}else t$(i,o,f),h++;else f=tQ(t0(t)),tU(t,o),c++}let l=tO.get(i);null!==l&&null===tF&&nM(l)&&(tF=l.getFormat())}let g=c>s,p=h>a;if(g&&!p){let e=r[a+1];tZ(r,t,h,a,o,void 0===e?null:tk.getElementByKey(e))}else p&&!g&&tJ(n,c,s,o)}(n,i,s,l,o,r)}ta(n)&&(tP+="\n\n"),r.__lexicalTextContent=tP,tP=i+tP}(t,n,r),tq(n,r),rW(n)&&null!=tF&&tF!==n.__textFormat&&!tz&&n.setTextFormat(tF),tM=i,tF=null}(r,i,o),rL(i)||i.isInline()||tV(r,i,o)),ta(i)&&(tP+="\n\n",tR+="\n\n")}else{let e=i.getTextContent();if(rO(i)){let e=i.decorate(tk,tS);null!==e&&tX(t,e)}else nM(i)&&!i.isDirectionless()&&(tM+=e);tP+=e,tR+=e}if(!tz&&rL(i)&&i.__cachedText!==tR){let e=i.getWritable();e.__cachedText=tR,i=e}return o}("root",null),tk=void 0,tw=void 0,tE=void 0,tA=void 0,tD=void 0,tO=void 0,tS=void 0,tI=void 0,tL=void 0,o}(o,n,e,t,r,i)}catch(t){if(t instanceof Error&&e._onError(t),ra)throw t;return rj(e,null,r,n),ew(e),e._dirtyType=2,ra=!0,rT(e,o),void(ra=!1)}finally{g.observe(r,rd),e._updating=h,rl=d,rs=f,ro=c}}n._readOnly||(n._readOnly=!0);let _=e._dirtyLeaves,m=e._dirtyElements,y=e._normalizedNodes,v=e._updateTags,x=e._deferred;u&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,t){let n,r=e._decorators,i=e._pendingDecorators||r,l=t._nodeMap;for(n in i)l.has(n)||(i===r&&(i=eG(e)),delete i[n])}(e,n);let T=l?null:ty(e._window);if(e._editable&&null!==T&&(u||null===a||a.dirty)){ro=e,rl=n;try{if(null!==g&&g.disconnect(),u||null===a||a.dirty){let t=e._blockCursorElement;null!==t&&tm(t,e,r),function(e,t,n,r,i,l,o){let s=r.anchorNode,a=r.focusNode,u=r.anchorOffset,d=r.focusOffset,f=document.activeElement;if(i.has("collaboration")&&f!==l||null!==f&&eP(f))return;if(!n$(t))return null!==e&&eM(n,s,a)&&r.removeAllRanges();let c=t.anchor,h=t.focus,g=c.key,p=h.key,_=tu(n,g),m=tu(n,p),y=c.offset,v=h.offset,x=t.format,T=t.style,C=t.isCollapsed(),b=_,S=m,k=!1;if("text"===c.type){b=eB(_);let e=c.getNode();k=e.getFormat()!==x||e.getStyle()!==T}else n$(e)&&"text"===e.anchor.type&&(k=!0);if("text"===h.type&&(S=eB(m)),null!==b&&null!==S&&(C&&(null===e||k||n$(e)&&(e.format!==x||e.style!==T))&&(nn=[x,T,y,g,performance.now()]),u!==y||d!==v||s!==b||a!==S||"Range"===r.type&&C||(null!==f&&l.contains(f)||l.focus({preventScroll:!0}),"element"===c.type))){try{r.setBaseAndExtent(b,y,S,v)}catch(e){}if(!i.has("skip-scroll-into-view")&&t.isCollapsed()&&null!==l&&l===document.activeElement){let e=t instanceof nZ&&"element"===t.anchor.type?b.childNodes[y]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){let n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,n){let r=n.ownerDocument,i=r.defaultView;if(null===i)return;let{top:l,bottom:o}=t,s=0,a=0,u=n;for(;null!==u;){let t=u===r.body;if(t)s=0,a=tc(e).innerHeight;else{let e=u.getBoundingClientRect();s=e.top,a=e.bottom}let n=0;if(l<s?n=-(s-l):o>a&&(n=o-a),0!==n)if(t)i.scrollBy(0,n);else{let e=u.scrollTop;u.scrollTop+=n;let t=u.scrollTop-e;l-=t,o-=t}if(t)break;u=td(u)}}(n,t,l)}}t7=!0}}(s,a,e,T,v,r)}(function(e,t,n){let r=e._blockCursorElement;if(n$(n)&&n.isCollapsed()&&"element"===n.anchor.type&&t.contains(document.activeElement)){let i=n.anchor,l=i.getNode(),o=i.offset,s=!1,a=null;if(o===l.getChildrenSize())t_(l.getChildAtIndex(o-1))&&(s=!0);else{let t=l.getChildAtIndex(o);if(t_(t)){let n=t.getPreviousSibling();(null===n||t_(n))&&(s=!0,a=e.getElementByKey(t.__key))}}if(s){let n=e.getElementByKey(l.__key);return null===r&&(e._blockCursorElement=r=function(e){let t=e.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=t.blockCursor;return void 0!==r&&("string"==typeof r&&(r=t.blockCursor=ev(r)),void 0!==r&&n.classList.add(...r)),n}(e._config)),t.style.caretColor="transparent",null===a?n.appendChild(r):n.insertBefore(r,a)}}null!==r&&tm(r,e,t)})(e,r,a),null!==g&&g.observe(r,rd)}finally{ro=c,rl=d}}null!==p&&function(e,t,n,r,i){let l=Array.from(e._listeners.mutation),o=l.length;for(let e=0;e<o;e++){let[o,s]=l[e],a=t.get(s);void 0!==a&&o(a,{dirtyLeaves:r,prevEditorState:i,updateTags:n})}}(e,p,v,_,o),n$(a)||null===a||null!==s&&s.is(a)||e.dispatchCommand(i,void 0);let C=e._pendingDecorators;null!==C&&(e._decorators=C,e._pendingDecorators=null,rC("decorator",e,!0,C)),function(e,t,n){let r=eV(t),i=eV(n);r!==i&&rC("textcontent",e,!0,i)}(e,t||o,n),rC("update",e,!0,{dirtyElements:m,dirtyLeaves:_,editorState:n,normalizedNodes:y,prevEditorState:t||o,tags:v}),function(e,t){if(e._deferred=[],0!==t.length){let n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}(e,x),function(e){let t=e._updates;if(0!==t.length){let n=t.shift();if(n){let[t,r]=n;rk(e,t,r)}}}(e)}function rC(e,t,n,...r){let i=t._updating;t._updating=n;try{let n=Array.from(t._listeners[e]);for(let e=0;e<n.length;e++)n[e].apply(null,r)}finally{t._updating=i}}function rb(e,t,n){if(!1===e._updating||ro!==e){let r=!1;return e.update(()=>{r=rb(e,t,n)}),r}let r=e2(e);for(let i=4;i>=0;i--)for(let l=0;l<r.length;l++){let o=r[l]._commands.get(t);
1if(void 0!==o){let t=o[i];if(void 0!==t){let r=Array.from(t),i=r.length;for(let t=0;t<i;t++)if(!0===r[t](n,e))return!0}}}return!1}function rS(e,t){let n=e._updates,r=t||!1;for(;0!==n.length;){let t=n.shift();if(t){let n,i,[l,o]=t;void 0!==o&&(n=o.onUpdate,i=o.tag,o.skipTransforms&&(r=!0),n&&e._deferred.push(n),i&&e._updateTags.add(i)),l()}}return r}function rk(e,t,n){let r=e._updateTags,i,l,o=!1,s=!1;void 0!==n&&(i=n.onUpdate,null!=(l=n.tag)&&r.add(l),o=n.skipTransforms||!1,s=n.discrete||!1),i&&e._deferred.push(i);let a=e._editorState,u=e._pendingEditorState,d=!1;(null===u||u._readOnly)&&(u=e._pendingEditorState=new rM(new Map((u||a)._nodeMap)),d=!0),u._flushSync=s;let f=rl,c=rs,h=ro,g=e._updating;rl=u,rs=!1,e._updating=!0,ro=e;try{d&&(e._headless?null!==a._selection&&(u._selection=a._selection.clone()):u._selection=function(e){let t=e.getEditorState()._selection,n=ty(e._window);return n$(t)||null==t?n4(t,n,e,null):t.clone()}(e));let n=e._compositionKey;t(),o=rS(e,o),function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(n$(r)){let e,t=r.anchor,i=r.focus;if("text"===t.type&&(e=t.getNode()).selectionTransform(n,r),"text"===i.type){let t=i.getNode();e!==t&&t.selectionTransform(n,r)}}}(u,e),0!==e._dirtyType&&(o?function(e,t){let n=t._dirtyLeaves,r=e._nodeMap;for(let e of n){let t=r.get(e);nM(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&eA(t)}}(u,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements,i=e._nodeMap,l=ej(),o=new Map,s=n,a=s.size,u=r,d=u.size;for(;a>0||d>0;){if(a>0){for(let e of(t._dirtyLeaves=new Set,s)){let r=i.get(e);nM(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&eA(r),void 0!==r&&rm(r,l)&&r_(t,r,o),n.add(e)}if((a=(s=t._dirtyLeaves).size)>0){ru++;continue}}for(let e of(t._dirtyLeaves=new Set,t._dirtyElements=new Map,u)){let n=e[0],s=e[1];if("root"!==n&&!s)continue;let a=i.get(n);void 0!==a&&rm(a,l)&&r_(t,a,o),r.set(n,s)}a=(s=t._dirtyLeaves).size,d=(u=t._dirtyElements).size,ru++}t._dirtyLeaves=n,t._dirtyElements=r}(u,e),rS(e),function(e,t,n,r){let i=e._nodeMap,l=t._nodeMap,o=[];for(let[e]of r){let t=l.get(e);void 0!==t&&(t.isAttached()||(rE(t)&&function e(t,n,r,i,l,o){let s=t.getFirstChild();for(;null!==s;){let t=s.__key;s.__parent===n&&(rE(s)&&e(s,t,r,i,l,o),r.has(t)||o.delete(t),l.push(t)),s=s.getNextSibling()}}(t,e,i,l,o,r),i.has(e)||r.delete(e),o.push(e)))}for(let e of o)l.delete(e);for(let e of n){let t=l.get(e);void 0===t||t.isAttached()||(i.has(e)||n.delete(e),l.delete(e))}}(a,u,e._dirtyLeaves,e._dirtyElements)),n!==e._compositionKey&&(u._flushSync=!0);let r=u._selection;if(n$(r)){let e=u._nodeMap,t=r.anchor.key,n=r.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||ey(19)}else nG(r)&&0===r._nodes.size&&(u._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=a,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void rT(e)}finally{rl=f,rs=c,ro=h,e._updating=g,ru=0}0!==e._dirtyType||function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(u,e)?u._flushSync?(u._flushSync=!1,rT(e)):d&&eL(()=>{rT(e)}):(u._flushSync=!1,d&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function rw(e,t,n){e._updating?e._updates.push([t,n]):rk(e,t,n)}class rN extends ng{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__indent=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){return ep[this.getFormat()]||""}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){let e=rp()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){let e=[],t=this.getFirstChild();for(;null!==t;){if(nM(t)&&e.push(t),rE(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;rE(e);){let t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;rE(e);){let t=e.getLastChild();if(null===t)break;e=t}return e}getDescendantByIndex(e){let t=this.getChildren(),n=t.length;if(e>=n){let e=t[n-1];return rE(e)&&e.getLastDescendant()||e||null}let r=t[e];return rE(r)&&r.getFirstDescendant()||r||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:eH(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&ey(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:eH(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&ey(96,this.__key),e}getChildAtIndex(e){let t,n,r=this.getChildrenSize();if(e<r/2){for(t=this.getFirstChild(),n=0;null!==t&&n<=e;){if(n===e)return t;t=t.getNextSibling(),n++}return null}for(t=this.getLastChild(),n=r-1;null!==t&&n>=e;){if(n===e)return t;t=t.getPreviousSibling(),n--}return null}getTextContent(){let e="",t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContent(),rE(i)&&r!==n-1&&!i.isInline()&&(e+="\n\n")}return e}getTextContentSize(){let e=0,t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContentSize(),rE(i)&&r!==n-1&&!i.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){if(""!==e){let t=eg[e];return!!(this.getFormat()&t)}return!1}select(e,t){rc();let n=n9(),r=e,i=t,l=this.getChildrenSize();if(!this.canBeEmpty()){if(0===e&&0===t){let e=this.getFirstChild();if(nM(e)||rE(e))return e.select(0,0)}else if((void 0===e||e===l)&&(void 0===t||t===l)){let e=this.getLastChild();if(nM(e)||rE(e))return e.select()}}void 0===r&&(r=l),void 0===i&&(i=l);let o=this.__key;
1return n$(n)?(n.anchor.set(o,r,"element"),n.focus.set(o,i,"element"),n.dirty=!0,n):n3(o,r,o,i,"element","element")}selectStart(){let e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){let e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach(e=>e.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?eg[e]:0,this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){let r=n.length,i=this.getChildrenSize(),l=this.getWritable(),o=l.__key,s=[],a=[],u=this.getChildAtIndex(e+t),d=null,f=i-t+r;if(0!==e)if(e===i)d=this.getLastChild();else{let t=this.getChildAtIndex(e);null!==t&&(d=t.getPreviousSibling())}if(t>0){let e=null===d?this.getFirstChild():d.getNextSibling();for(let n=0;n<t;n++){null===e&&ey(100);let t=e.getNextSibling(),n=e.__key;eU(e.getWritable()),a.push(n),e=t}}let c=d;for(let e=0;e<r;e++){let t=n[e];null!==c&&t.is(c)&&(d=c=c.getPreviousSibling());let r=t.getWritable();r.__parent===o&&f--,eU(r);let i=t.__key;if(null===c)l.__first=i,r.__prev=null;else{let e=c.getWritable();e.__next=i,r.__prev=e.__key}t.__key===o&&ey(76),r.__parent=o,s.push(i),c=t}if(e+t===i)null!==c&&(c.getWritable().__next=null,l.__last=c.__key);else if(null!==u){let e=u.getWritable();if(null!==c){let t=c.getWritable();e.__prev=c.__key,t.__next=u.__key}else e.__prev=null}if(l.__size=f,a.length){let e=n9();if(n$(e)){let t=new Set(a),n=new Set(s),{anchor:r,focus:i}=e;rA(r,t,n)&&rt(r,r.getNode(),this,d,u),rA(i,t,n)&&rt(i,i.getNode(),this,d,u),0!==f||this.canBeEmpty()||th(this)||this.remove()}}return l}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}}function rE(e){return e instanceof rN}function rA(e,t,n){let r=e.getNode();for(;r;){let e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}class rD extends ng{constructor(e){super(e)}decorate(e,t){ey(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function rO(e){return e instanceof rD}class rI extends rN{static getType(){return"root"}static clone(){return new rI}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){ey(51)}getTextContent(){let e=this.__cachedText;return(rf()||0===rp()._dirtyType)&&null!==e?e:super.getTextContent()}remove(){ey(52)}replace(e){ey(53)}insertBefore(e){ey(54)}insertAfter(e){ey(55)}updateDOM(e,t){return!1}append(...e){for(let t=0;t<e.length;t++){let n=e[t];rE(n)||rO(n)||ey(56)}return super.append(...e)}static importJSON(e){let t=eq();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}collapseAtStart(){return!0}}function rL(e){return e instanceof rI}function rP(){return new rM(new Map([["root",new rI]]))}class rM{constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e){return rx(this,e)}clone(e){let t=new rM(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return rx(this,()=>({root:function e(t){let n=t.exportJSON(),r=t.constructor;if(n.type!==r.getType()&&ey(130,r.name),rE(t)){let i=n.children;Array.isArray(i)||ey(59,r.name);let l=t.getChildren();for(let t=0;t<l.length;t++){let n=e(l[t]);i.push(n)}}return n}(eq())}))}}class rF extends rN{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class rR extends rN{constructor(e){super(e),this.__textFormat=0}static getType(){return"paragraph"}getTextFormat(){return this.getLatest().__textFormat}setTextFormat(e){let t=this.getWritable();return t.__textFormat=e,t}hasTextFormat(e){let t=ec[e];return!!(this.getTextFormat()&t)}static clone(e){return new rR(e.__key)}createDOM(e){let t=document.createElement("p"),n=tr(e.theme,"paragraph");return void 0!==n&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:rB,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(t&&tx(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();t.style.textAlign=e;let n=this.getDirection();n&&(t.dir=n);let r=this.getIndent();r>0&&(t.style.textIndent=20*r+"px")}return{element:t}}static importJSON(e){let t=rz();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t.setTextFormat(e.textFormat),t}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),type:"paragraph",version:1}}insertNewAfter(e,t){let n=rz();n.setTextFormat(e.format);let r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),this.insertAfter(n,t),n}collapseAtStart(){let e=this.getChildren();if(0===e.length||nM(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function rB(e){let t=rz();if(e.style){t.setFormat(e.style.textAlign);let n=parseInt(e.style.textIndent,10)/20;n>0&&t.setIndent(n)}return{node:t}}function rz(){return tg(new rR)}function rW(e){return e instanceof rR}let rU=0,rJ=1,rK=4;function rj(e,t,n,r){let i=e._keyToDOMMap;i.clear(),e._editorState=rP(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;let l=e._observer;null!==l&&(l.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",i.set("root",n))}function rH(e){let t,n=e||{},r=ro,i=n.theme||{},l=void 0===e?r:n.parentEditor||null,o=n.disableEvents||!1,s=rP(),a=n.namespace||(null!==l?l._config.namespace:e3()),u=n.editorState,d=[rI,nw,np,nR,rR,rF,...n.nodes||[]],{onError:f,html:c}=n,h=void 0===n.editable||n.editable;if(void 0===e&&null!==r)t=r._nodes;else{t=new Map;for(let e=0;e<d.length;e++){let n=d[e],r=null,i=null;if("function"!=typeof n){let e=n;n=e.replace,r=e.with,i=e.withKlass||null}let l=n.getType(),o=n.transform(),s=new Set;null!==o&&s.add(o),t.set(l,{exportDOM:c&&c.export?c.export.get(n):void 0,klass:n,replace:r,replaceWithKlass:i,transforms:s})}}let g=new r$(s,l,t,{disableEvents:o,namespace:a,theme:i},f||console.error,function(e,t){let n=new Map,r=new Set,i=e=>{Object.keys(e).forEach(t=>{let r=n.get(t);void 0===r&&(r=[],n.set(t,r)),r.push(e[t])})};
1return e.forEach(e=>{let t=e.klass.importDOM;if(null==t||r.has(t))return;r.add(t);let n=t.call(e.klass);null!==n&&i(n)}),t&&i(t),n}(t,c?c.import:void 0),h);return void 0!==u&&(g._pendingEditorState=u,g._dirtyType=2),g}class r${constructor(e,t,n,r,i,l,o){this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=e3(),this._onError=i,this._htmlConversions=l,this._editable=o,this._headless=null!==t&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){let t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){let t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){let t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){let t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){let t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,n){void 0===n&&ey(35);let r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);let i=r.get(e);void 0===i&&ey(36,String(e));let l=i[n];return l.add(t),()=>{l.delete(t),i.every(e=>0===e.size)&&r.delete(e)}}registerMutationListener(e,t){let n=this._nodes.get(e.getType());void 0===n&&ey(37,e.name);let r=e,i=null;for(;i=n.replaceWithKlass;)r=i,void 0===(n=this._nodes.get(i.getType()))&&ey(37,i.name);let l=this._listeners.mutation;return l.set(t,r),()=>{l.delete(t)}}registerNodeTransformToKlass(e,t){let n=e.getType(),r=this._nodes.get(n);return void 0===r&&ey(37,e.name),r.transforms.add(t),r}registerNodeTransform(e,t){var n;let r=this.registerNodeTransformToKlass(e,t),i=[r],l=r.replaceWithKlass;if(null!=l){let e=this.registerNodeTransformToKlass(l,t);i.push(e)}return n=e.getType(),rw(this,()=>{let e=rg();if(!e.isEmpty()){if("root"===n)return void eq().markDirty();for(let[,t]of e._nodeMap)t.markDirty()}},null===this._pendingEditorState?{tag:"history-merge"}:void 0),()=>{i.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return rb(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let n=tr(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,rj(this,t,e,r),null!==t&&(this._config.disableEvents||function(e){let t=e.ownerDocument,n=t9.get(t);void 0===n&&ey(162);let r=n-1;r>=0||ey(164),t9.set(t,r),0===r&&t.removeEventListener("selectionchange",nd);let i=e.__lexicalEditor;null!=i&&(!function(e){if(null!==e._parentEditor){let t=e2(e),n=t[t.length-1]._key;nu.get(n)===e&&nu.delete(n)}else nu.delete(e._key)}(i),e.__lexicalEditor=null);let l=na(e);for(let e=0;e<l.length;e++)l[e]();e.__lexicalEventHandles=[]}(t),null!=n&&t.classList.remove(...n)),null!==e){let t=function(e){let t=e.ownerDocument;return t&&t.defaultView||null}(e),r=e.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=t,this._dirtyType=2,ew(this),this._updateTags.add("history-merge"),rT(this),this._config.disableEvents||function(e,t){let n=e.ownerDocument,r=t9.get(n);(void 0===r||r<1)&&n.addEventListener("selectionchange",nd),t9.set(n,(r||0)+1),e.__lexicalEditor=t;let i=na(e);for(let n=0;n<t2.length;n++){let[r,l]=t2[n],o="function"==typeof l?e=>{nc(e)||(nf(e),(t.isEditable()||"click"===r)&&l(e,t))}:e=>{if(nc(e))return;nf(e);let n=t.isEditable();switch(r){case"cut":return n&&rb(t,W,e);case"copy":return rb(t,z,e);case"paste":return n&&rb(t,f,e);case"dragstart":return n&&rb(t,F,e);case"dragover":return n&&rb(t,R,e);case"dragend":return n&&rb(t,B,e);case"focus":return n&&rb(t,$,e);case"blur":return n&&rb(t,Z,e);case"drop":return n&&rb(t,P,e)}};e.addEventListener(r,o),i.push(()=>{e.removeEventListener(r,o)})}}(e,this),null!=n&&e.classList.add(...n)}else this._editorState=r,this._pendingEditorState=null,this._window=null;rC("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&ey(38),ek(this);
1let n=this._pendingEditorState,r=this._updateTags,i=void 0!==t?t.tag:null;null===n||n.isEmpty()||(null!=i&&r.add(i),rT(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=i&&r.add(i),rT(this)}parseEditorState(e,t){return function(e,t,n){let r=rP(),i=rl,l=rs,o=ro,s=t._dirtyElements,a=t._dirtyLeaves,u=t._cloneNotNeeded,d=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,rl=r,rs=!1,ro=t;try{let i=t._nodes;rv(e.root,i),n&&n(),r._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=a,t._cloneNotNeeded=u,t._dirtyType=d,rl=i,rs=l,ro=o}return r}("string"==typeof e?JSON.parse(e):e,this,t)}update(e,t){rw(this,e,t)}focus(e,t={}){let n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),rw(this,()=>{let e=n9(),n=eq();null!==e?e.dirty=!0:0!==n.getChildrenSize()&&("rootStart"===t.defaultSelection?n.selectStart():n.selectEnd())},{onUpdate:()=>{n.removeAttribute("autocapitalize"),e&&e()},tag:"focus"}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){let e=this._rootElement;null!==e&&e.blur();let t=ty(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,rC("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}},5849:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(1521),i=n(73365);function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var o={error:null},s=function(e){function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state=o,t.resetErrorBoundary=function(){for(var e,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];null==t.props.onReset||(e=t.props).onReset.apply(e,r),t.reset()},t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,l(t,e),t.getDerivedStateFromError=function(e){return{error:e}};var n=t.prototype;return n.reset=function(){this.setState(o)},n.componentDidCatch=function(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)},n.componentDidUpdate=function(e,t){var n,r,i,l,o=this.state.error,s=this.props.resetKeys;null!==o&&null!==t.error&&(void 0===(i=e.resetKeys)&&(i=[]),void 0===(l=s)&&(l=[]),i.length!==l.length||i.some(function(e,t){return!Object.is(e,l[t])}))&&(null==(n=(r=this.props).onResetKeysChange)||n.call(r,e.resetKeys,s),this.reset())},n.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,i=t.FallbackComponent,l=t.fallback;if(null!==e){var o={error:e,resetErrorBoundary:this.resetErrorBoundary};if(r.isValidElement(l))return l;if("function"==typeof n)return n(o);if(i)return r.createElement(i,o);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(r.Component);function a({children:e,onError:t}){return(0,i.jsx)(s,{fallback:(0,i.jsx)("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}},16413:(e,t,n)=>{n.d(t,{$:()=>g});var r=n(38560),i=n(1521);let l="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect;function o(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}var s=n(3439);!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});var a=n(57130),u=n(98196),d=n(73365),f=n(40594);let c="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect;function h(e){var t;return e.getEditorState().read((t=e.isComposing(),()=>(function(e){if(!function(e,t=!0){if(e)return!1;let n=(0,s.Ni)().getTextContent();return t&&(n=n.trim()),""===n}(e,!1))return!1;let t=(0,s.Ni)().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){let n=t[e];if((0,s.Cy)(n))return!1;if((0,s.ff)(n)){if(!(0,s.bS)(n)||0!==n.__indent)return!1;let t=n.getChildren(),r=t.length;for(let n=0;n<r;n++){let n=t[e];if(!(0,s.kF)(n))return!1}}}return!0})(t)))}function g({contentEditable:e,placeholder:t,ErrorBoundary:n}){var l;let[o]=(0,r.DF)(),h=function(e,t){let[n,r]=(0,i.useState)(()=>e.getDecorators());return c(()=>e.registerDecoratorListener(e=>{(0,u.flushSync)(()=>{r(e)})}),[e]),(0,i.useEffect)(()=>{r(e.getDecorators())},[e]),(0,i.useMemo)(()=>{let r=[],l=Object.keys(n);for(let o=0;o<l.length;o++){let s=l[o],a=(0,d.jsx)(t,{onError:t=>e._onError(t),children:(0,d.jsx)(i.Suspense,{fallback:null,children:n[s]})}),f=e.getElementByKey(s);null!==f&&r.push((0,u.createPortal)(a,f,s))}return r},[t,n,e])}(o,n);return c(()=>(0,a.Sd)((0,f.ZI)(l),function(e){let t=window.location.origin,n=n=>{if(n.origin!==t)return;let r=e.getRootElement();if(document.activeElement!==r)return;let i=n.data;if("string"==typeof i){let t;try{t=JSON.parse(i)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){let r=t.payload;if(r&&"makeChanges"===r.functionId){let t=r.args;if(t){let[r,i,l,o,a,u]=t;e.update(()=>{let e=(0,s.vJ)();if((0,s.I2)(e)){let t=e.anchor,u=t.getNode(),d=0,f=0;if((0,s.kF)(u)&&r>=0&&i>=0&&(d=r,f=r+i,e.setTextNodeRange(u,d,u,f)),d===f&&""===l||(e.insertRawText(l),u=t.getNode()),(0,s.kF)(u)){d=o,f=o+a;let t=u.getTextContentSize();d=d>t?t:d,f=f>
1t?t:f,e.setTextNodeRange(u,d,u,f)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(l)),[l=o]),(0,d.jsxs)(d.Fragment,{children:[e,(0,d.jsx)(p,{content:t}),h]})}function p({content:e}){let[t]=(0,r.DF)(),n=function(e){let[t,n]=(0,i.useState)(()=>h(e));return c(()=>{function t(){n(h(e))}return t(),(0,a.Sd)(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),s=function(){let[e]=(0,r.DF)(),t=(0,i.useMemo)(()=>o(e),[e,o]),n=(0,i.useRef)(t.initialValueFn()),[s,a]=(0,i.useState)(n.current);return l(()=>{let{initialValueFn:e,subscribe:r}=t,i=e();return n.current!==i&&(n.current=i,a(i)),r(e=>{n.current=e,a(e)})},[t,o]),s}();return n?"function"==typeof e?e(s):e:null}},16982:(e,t,n)=>{n.d(t,{HY:()=>A,YW:()=>m,q7:()=>D,tK:()=>g,uS:()=>I,us:()=>d,v5:()=>b,x:()=>O,yX:()=>p});var r=n(3439),i=n(57130),l=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function o(e){let t=e.getParent();A(t)||l(40);let n=t;for(;null!==n;)A(n=n.getParent())&&(t=n);return t}function s(e){return C(e)&&A(e.getFirstChild())}function a(e){return T().append(e)}function u(e,t){return C(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function d(e,t){e.update(()=>{let e=(0,r.vJ)();if(null!==e){let n=e.getNodes();if((0,r.I2)(e)){let i=e.getStartEndPoints();null===i&&l(143);let[o]=i,s=o.getNode(),a=s.getParent();if(u(s,n)){let e=E(t);if((0,r.Iq)(a)){s.replace(e);let t=T();(0,r.ff)(s)&&(t.setFormat(s.getFormatType()),t.setIndent(s.getIndent())),e.append(t)}else if(C(s)){let t=s.getParentOrThrow();f(e,t.getChildren()),t.replace(e)}return}}let i=new Set;for(let e=0;e<n.length;e++){let l=n[e];if(!(0,r.ff)(l)||!l.isEmpty()||C(l)||i.has(l.getKey())){if((0,r.jG)(l)){let e=l.getParent();for(;null!=e;){let n=e.getKey();if(A(e)){if(!i.has(n)){let r=E(t);f(r,e.getChildren()),e.replace(r),i.add(n)}break}{let l=e.getParent();if((0,r.Iq)(l)&&!i.has(n)){i.add(n),c(e,t);break}e=l}}}}else c(l,t)}}})}function f(e,t){e.splice(e.getChildrenSize(),0,t)}function c(e,t){if(A(e))return e;let n=e.getPreviousSibling(),r=e.getNextSibling(),i=T();if(i.setFormat(e.getFormatType()),i.setIndent(e.getIndent()),f(i,e.getChildren()),A(n)&&t===n.getListType())return n.append(i),e.remove(),A(r)&&t===r.getListType()&&(f(n,r.getChildren()),r.remove()),n;if(A(r)&&t===r.getListType())return r.getFirstChildOrThrow().insertBefore(i),e.remove(),r;{let n=E(t);return n.append(i),e.replace(n),n}}function h(e,t){let n=e.getLastChild(),r=t.getFirstChild();n&&r&&s(n)&&s(r)&&(h(n.getFirstChild(),r.getFirstChild()),r.remove());let i=t.getChildren();i.length>0&&e.append(...i),t.remove()}function g(e){e.update(()=>{let e=(0,r.vJ)();if((0,r.I2)(e)){let t=new Set,n=e.getNodes(),l=e.anchor.getNode();if(u(l,n))t.add(o(l));else for(let e=0;e<n.length;e++){let l=n[e];if((0,r.jG)(l)){let e=(0,i.eu)(l,m);null!=e&&t.add(o(e))}}for(let n of t){let t=n;for(let i of function e(t){let n=[],r=t.getChildren().filter(C);for(let t=0;t<r.length;t++){let i=r[t],l=i.getFirstChild();A(l)?n=n.concat(e(l)):n.push(i)}return n}(n)){let n=(0,r.lJ)();f(n,i.getChildren()),t.insertAfter(n),t=n,i.__key===e.anchor.key&&e.anchor.set(n.getKey(),0,"element"),i.__key===e.focus.key&&e.focus.set(n.getKey(),0,"element"),i.remove()}n.remove()}}})}function p(){let e,t=(0,r.vJ)();if(!(0,r.I2)(t)||!t.isCollapsed())return!1;let n=t.anchor.getNode();if(!C(n)||0!==n.getChildrenSize())return!1;let i=o(n),s=n.getParent();A(s)||l(40);let a=s.getParent();if((0,r.Iq)(a))e=(0,r.lJ)(),i.insertAfter(e);else{if(!C(a))return!1;e=T(),a.insertAfter(e)}e.select();let u=n.getNextSiblings();if(u.length>0){let t=E(s.getListType());if((0,r.bS)(e))e.insertAfter(t);else{let n=T();n.append(t),e.insertAfter(n)}
1u.forEach(e=>{e.remove(),t.append(e)})}return function(e){let t=e;for(;null==t.getNextSibling()&&null==t.getPreviousSibling();){let e=t.getParent();if(null==e||!C(t)&&!A(t))break;t=e}t.remove()}(n),!0}function _(...e){let t=[];for(let n of e)if(n&&"string"==typeof n)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}class m extends r.fG{static getType(){return"listitem"}static clone(e){return new m(e.__value,e.__checked,e.__key)}constructor(e,t,n){super(n),this.__value=void 0===e?1:e,this.__checked=t}createDOM(e){let t=document.createElement("li"),n=this.getParent();return A(n)&&"check"===n.getListType()&&v(t,this,null),t.value=this.__value,y(t,e.theme,this),t}updateDOM(e,t,n){let r=this.getParent();return A(r)&&"check"===r.getListType()&&v(t,this,e),t.value=this.__value,y(t,n.theme,this),!1}static transform(){return e=>{if(C(e)||l(144),null==e.__checked)return;let t=e.getParent();A(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)}}static importDOM(){return{li:()=>({conversion:x,priority:0})}}static importJSON(e){let t=T();return t.setChecked(e.checked),t.setValue(e.value),t.setFormat(e.format),t.setDirection(e.direction),t}exportDOM(e){let t=this.createDOM(e._config);return t.style.textAlign=this.getFormatType(),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...e){for(let t=0;t<e.length;t++){let n=e[t];if((0,r.ff)(n)&&this.canMergeWith(n)){let e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(C(e))return super.replace(e);this.setIndent(0);let n=this.getParentOrThrow();if(!A(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let t=E(n.getListType()),r=this.getNextSibling();for(;r;){let e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}
1return t&&((0,r.ff)(e)||l(139),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){let n=this.getParentOrThrow();if(A(n)||l(39),C(e))return super.insertAfter(e,t);let r=this.getNextSiblings();if(n.insertAfter(e,t),0!==r.length){let i=E(n.getListType());r.forEach(e=>i.append(e)),e.insertAfter(i,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&s(t)&&s(n)&&(h(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){let n=T(null==this.__checked&&void 0);return this.insertAfter(n,t),n}collapseAtStart(e){let t=(0,r.lJ)();this.getChildren().forEach(e=>t.append(e));let n=this.getParentOrThrow(),i=n.getParentOrThrow(),l=C(i);if(1===n.getChildrenSize())if(l)n.remove(),i.select();else{n.insertBefore(t),n.remove();let r=e.anchor,i=e.focus,l=t.getKey();"element"===r.type&&r.getNode().is(this)&&r.set(l,r.offset,"element"),"element"===i.type&&i.getNode().is(this)&&i.set(l,i.offset,"element")}else n.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){return this.getLatest().__checked}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){let e=this.getParent();if(null===e)return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;C(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){"number"==typeof e&&e>-1||l(117);let t=this.getIndent();for(;t!==e;)t<e?(function(e){let t=new Set;if(s(e)||t.has(e.getKey()))return;let n=e.getParent(),r=e.getNextSibling(),i=e.getPreviousSibling();if(s(r)&&s(i)){let n=i.getFirstChild();if(A(n)){n.append(e);let i=r.getFirstChild();A(i)&&(f(n,i.getChildren()),r.remove(),t.add(r.getKey()))}}else if(s(r)){let t=r.getFirstChild();if(A(t)){let n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(s(i)){let t=i.getFirstChild();A(t)&&t.append(e)}else if(A(n)){let t=T(),l=E(n.getListType());t.append(l),l.append(e),i?i.insertAfter(t):r?r.insertBefore(t):n.append(t)}}(this),t++):(function(e){if(s(e))return;let t=e.getParent(),n=t?t.getParent():void 0;if(A(n?n.getParent():void 0)&&C(n)&&A(t)){let r=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(i))n.insertAfter(e),t.isEmpty()&&n.remove();else{let r=t.getListType(),i=T(),l=E(r);
1i.append(l),e.getPreviousSiblings().forEach(e=>l.append(e));let o=T(),s=E(r);o.append(s),f(s,e.getNextSiblings()),n.insertBefore(i),n.insertAfter(o),n.replace(e)}}}(this),t--);return this}canInsertAfter(e){return C(e)}canReplaceWith(e){return C(e)}canMergeWith(e){return(0,r.bS)(e)||C(e)}extractWithChild(e,t){if(!(0,r.I2)(t))return!1;let n=t.anchor.getNode(),i=t.focus.getNode();return this.isParentOf(n)&&this.isParentOf(i)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return E("bullet")}}function y(e,t,n){let r,l=[],o=[],s=t.list,a=s?s.listitem:void 0;if(s&&s.nested&&(r=s.nested.listitem),void 0!==a&&l.push(..._(a)),s){let e=n.getParent(),t=A(e)&&"check"===e.getListType(),r=n.getChecked();t&&!r||o.push(s.listitemUnchecked),t&&r||o.push(s.listitemChecked),t&&l.push(r?s.listitemChecked:s.listitemUnchecked)}if(void 0!==r){let e=_(r);n.getChildren().some(e=>A(e))?l.push(...e):o.push(...e)}o.length>0&&(0,i.HE)(e,...o),l.length>0&&(0,i.ZB)(e,...l)}function v(e,t,n,r){A(t.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),n&&t.__checked===n.__checked||e.setAttribute("aria-checked",t.getChecked()?"true":"false"))}function x(e){if(e.classList.contains("task-list-item")){for(let n of e.children)if("INPUT"===n.tagName){var t;return"checkbox"!==(t=n).getAttribute("type")?{node:null}:{node:T(t.hasAttribute("checked"))}}}let n=e.getAttribute("aria-checked");return{node:T("true"===n||"false"!==n&&void 0)}}function T(e){return(0,r.pT)(new m(void 0,e))}function C(e){return e instanceof m}class b extends r.fG{static getType(){return"list"}static clone(e){return new b(e.__listType||N[e.__tag],e.__start,e.__key)}constructor(e,t,n){super(n);let r=N[e]||e;this.__listType=r,this.__tag="number"===r?"ol":"ul",this.__start=t}getTag(){return this.__tag}setListType(e){let t=this.getWritable();t.__listType=e,t.__tag="number"===e?"ol":"ul"}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e,t){let n=this.__tag,r=document.createElement(n);return 1!==this.__start&&r.setAttribute("start",String(this.__start)),r.__lexicalListType=this.__listType,S(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||(S(t,n.theme,this),!1)}static transform(){return e=>{A(e)||l(163),function(e){let t=e.getNextSibling();A(t)&&e.getListType()===t.getListType()&&h(e,t)}(e),function(e){let t="check"!==e.getListType(),n=e.getStart();for(let r of e.getChildren())C(r)&&(r.getValue()!==n&&r.setValue(n),t&&null!=r.getChecked()&&r.setChecked(void 0),A(r.getFirstChild())||n++)}(e)}}static importDOM(){return{ol:()=>({conversion:w,priority:0}),ul:()=>({conversion:w,priority:0})}}static importJSON(e){let t=E(e.listType,e.start);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportDOM(e){let{element:t}=super.exportDOM(e);return t&&(0,r.sb)(t)&&(1!==this.__start&&t.setAttribute("start",String(this.__start)),"check"===this.__listType&&t.setAttribute("__lexicalListType","check")),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...e){for(let t=0;t<e.length;t++){let n=e[t];if(C(n))super.append(n);else{let e=T();if(A(n))e.append(n);else if((0,r.ff)(n)){let t=(0,r.sT)(n.getTextContent());e.append(t)}else e.append(n);super.append(e)}}return this}extractWithChild(e){return C(e)}}function S(e,t,n){let r=[],o=[],s=t.list;if(void 0!==s){let e,t=s[`${n.__tag}Depth`]||[],i=function(e){let t=1,n=e.getParent();for(;null!=n;){if(C(n)){let e=n.getParent();if(A(e)){t++,n=e.getParent();continue}l(40)}break}return t}(n)-1,a=i%t.length,u=t[a],d=s[n.__tag],f=s.nested,c=s.checklist;if(void 0!==f&&f.list&&(e=f.list),void 0!==d&&r.push(d),void 0!==c&&"check"===n.__listType&&r.push(c),void 0!==u){r.push(..._(u));for(let e=0;e<t.length;e++)e!==a&&o.push(n.__tag+e)}if(void 0!==e){let t=_(e);i>1?r.push(...t):o.push(...t)}}o.length>0&&(0,i.HE)(e,...o),r.length>0&&(0,i.ZB)(e,...r)}function k(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(C(r)){t.push(r);let e=r.getChildren();e.length>
11&&e.forEach(e=>{A(e)&&t.push(a(e))})}else t.push(a(r))}return t}function w(e){let t=e.nodeName.toLowerCase(),n=null;return"ol"===t?n=E("number",e.start):"ul"===t&&(n=!function(e){if("check"===e.getAttribute("__lexicallisttype")||e.classList.contains("contains-task-list"))return!0;for(let t of e.childNodes)if((0,r.sb)(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?E("bullet"):E("check")),{after:k,node:n}}let N={ol:"number",ul:"bullet"};function E(e,t=1){return(0,r.pT)(new b(e,t))}function A(e){return e instanceof b}let D=(0,r.gu)("INSERT_UNORDERED_LIST_COMMAND"),O=(0,r.gu)("INSERT_ORDERED_LIST_COMMAND"),I=((0,r.gu)("INSERT_CHECK_LIST_COMMAND"),(0,r.gu)("REMOVE_LIST_COMMAND"))},33250:(e,t,n)=>{n.d(t,{Db:()=>o,FJ:()=>u,hx:()=>h,yW:()=>c});var r=n(57130),i=n(3439);let l=new Set(["http:","https:","mailto:","sms:","tel:"]);class o extends i.fG{static getType(){return"link"}static clone(e){return new o(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e,t={},n){super(n);let{target:r=null,rel:i=null,title:l=null}=t;this.__url=e,this.__target=r,this.__rel=i,this.__title=l}createDOM(e){let t=document.createElement("a");return t.href=this.sanitizeUrl(this.__url),null!==this.__target&&(t.target=this.__target),null!==this.__rel&&(t.rel=this.__rel),null!==this.__title&&(t.title=this.__title),(0,r.ZB)(t,e.theme.link),t}updateDOM(e,t,n){if(t instanceof HTMLAnchorElement){let n=this.__url,r=this.__target,i=this.__rel,l=this.__title;n!==e.__url&&(t.href=n),r!==e.__target&&(r?t.target=r:t.removeAttribute("target")),i!==e.__rel&&(i?t.rel=i:t.removeAttribute("rel")),l!==e.__title&&(l?t.title=l:t.removeAttribute("title"))}return!1}static importDOM(){return{a:e=>({conversion:s,priority:1})}}static importJSON(e){let t=a(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}sanitizeUrl(e){try{let t=new URL(e);if(!l.has(t.protocol))return"about:blank"}catch(e){}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}getTitle(){return this.getLatest().__title}setTitle(e){this.getWritable().__title=e}insertNewAfter(e,t=!0){let n=a(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!(0,i.I2)(t))return!1;let r=t.anchor.getNode(),l=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(l)&&t.getTextContent().length>0}}function s(e){let t=null;if((0,i.nY)(e)){let n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=a(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function a(e,t){return(0,i.pT)(new o(e,t))}function u(e){return e instanceof o}class d extends o{constructor(e,t={},n){super(e,t,n),this.__isUnlinked=void 0!==t.isUnlinked&&null!==t.isUnlinked&&t.isUnlinked}static getType(){return"autolink"}static clone(e){return new d(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){let t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){let t=f(e.url,{isUnlinked:e.isUnlinked,rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked,type:"autolink",version:1}}insertNewAfter(e,t=!0){let n=this.getParentOrThrow().insertNewAfter(e,t);if((0,i.ff)(n)){let e=f(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return n.append(e),e}return null}}function f(e,t){return(0,i.pT)(new d(e,t))}let c=(0,i.gu)("TOGGLE_LINK_COMMAND");function h(e,t={}){let{target:n,title:r}=t,l=void 0===t.rel?"noreferrer":t.rel,o=(0,i.vJ)();if(!(0,i.I2)(o))return;let s=o.extract();
1if(null===e)s.forEach(e=>{let t=e.getParent();if(!(t instanceof d)&&u(t)){let e=t.getChildren();for(let n=0;n<e.length;n++)t.insertBefore(e[n]);t.remove()}});else{if(1===s.length){let t=function(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}(s[0],u);if(null!==t)return t.setURL(e),void 0!==n&&t.setTarget(n),null!==l&&t.setRel(l),void(void 0!==r&&t.setTitle(r))}let t=null,o=null;s.forEach(s=>{let d=s.getParent();if(d!==o&&null!==d&&(!(0,i.ff)(s)||s.isInline())){if(u(d))return o=d,d.setURL(e),void 0!==n&&d.setTarget(n),null!==l&&o.setRel(l),void(void 0!==r&&o.setTitle(r));if(d.is(t)||(t=d,o=a(e,{rel:l,target:n,title:r}),u(d)?null===s.getPreviousSibling()?d.insertBefore(o):d.insertAfter(o):s.insertBefore(o)),u(s)){if(s.is(o))return;if(null!==o){let e=s.getChildren();for(let t=0;t<e.length;t++)o.append(e[t])}s.remove()}else null!==o&&o.append(s)}})}}},38560:(e,t,n)=>{n.d(t,{DF:()=>s,Gu:()=>l,Mx:()=>o});var r=n(1521),i=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});let l=(0,r.createContext)(null);function o(e,t){let n=null;return null!=e&&(n=e[1]),{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}}function s(){let e=(0,r.useContext)(l);return null==e&&i(8),e}},40594:(e,t,n)=>{n.d(t,{fi:()=>E,Pi:()=>A,jL:()=>k,ZI:()=>L});var r=n(75326),i=n(71976),l=n(57130),o=n(3439),s=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});let a="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,u=e=>a?(e||window).getSelection():null;function d(e,t,n){let l=e.getData("application/x-lexical-editor");if(l)try{let e=JSON.parse(l);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes))return f(n,function(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n],l=(0,o.GM)(r);(0,o.kF)(l)&&(0,i.Xg)(l),t.push(l)}return t}(e.nodes),t)}catch(e){}let s=e.getData("text/html");if(s)try{let e=(new DOMParser).parseFromString(s,"text/html");return f(n,(0,r.d)(n,e),t)}catch(e){}let a=e.getData("text/plain")||e.getData("text/uri-list");if(null!=a)if((0,o.I2)(t)){let e=a.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){let n=(0,o.vJ)();if((0,o.I2)(n)){let r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():" "===r?n.insertNodes([(0,o.ev)()]):n.insertText(r)}}}else t.insertRawText(a)}function f(e,t,n){e.dispatchCommand(o.oq,{nodes:t,selection:n})||n.insertNodes(t)}let c=null;async function h(e,t){if(null!==c)return!1;if(null!==t)return new Promise((n,r)=>{e.update(()=>{n(g(e,t))})});let n=e.getRootElement(),r=null==e._window?window.document:e._window.document,i=u(e._window);if(null===n||null===i)return!1;let s=r.createElement("span");s.style.cssText="position: fixed; top: -1000px;",s.append(r.createTextNode("#")),n.append(s);let a=new Range;return a.setStart(s,0),a.setEnd(s,1),i.removeAllRanges(),i.addRange(a),new Promise((t,n)=>{let i=e.registerCommand(o.u5,n=>((0,l.xj)(n,ClipboardEvent)&&(i(),null!==c&&(window.clearTimeout(c),c=null),t(g(e,n))),!0),o.d);c=window.setTimeout(()=>{i(),c=null,t(!1)},50),r.execCommand("copy"),s.remove()})}function g(e,t){let n=u(e._window);if(!n)return!1;let l=n.anchorNode,a=n.focusNode;if(null!==l&&null!==a&&!(0,o.LY)(e,l,a))return!1;t.preventDefault();let d=t.clipboardData,f=(0,o.vJ)();if(null===d||null===f)return!1;let c=function(e){let t=(0,o.vJ)();return null==t&&s(166),(0,o.I2)(t)&&t.isCollapsed()||0===t.getNodes().length?"":(0,r.g)(e,t)}(e),h=function(e){let t=(0,o.vJ)();return null==t&&s(166),(0,o.I2)(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){let n=[],r=(0,o.Ni)().getChildren();for(let l=0;l<r.length;l++)!function e(t,n,r,l=[]){let a=null===n||r.isSelected(n),u=(0,o.ff)(r)&&r.excludeFromCopy("html"),d=r;if(null!==n){let e=(0,i.BE)(r);
1d=e=(0,o.kF)(e)&&null!==n?(0,i.SD)(n,e):e}let f=(0,o.ff)(d)?d.getChildren():[],c=function(e){let t=e.exportJSON(),n=e.constructor;return t.type!==n.getType()&&s(58,n.name),(0,o.ff)(e)&&(Array.isArray(t.children)||s(59,n.name)),t}(d);if((0,o.kF)(d)){let e=d.__text;e.length>0?c.text=e:a=!1}for(let i=0;i<f.length;i++){let l=f[i],s=e(t,n,l,c.children);!a&&(0,o.ff)(r)&&s&&r.extractWithChild(l,n,"clone")&&(a=!0)}if(a&&!u)l.push(c);else if(Array.isArray(c.children))for(let e=0;e<c.children.length;e++){let t=c.children[e];l.push(t)}return a}(e,t,r[l],n);return{namespace:e._config.namespace,nodes:n}}(e,t))}(e),g="";return null!==f&&(g=f.getTextContent()),null!==c&&d.setData("text/html",c),null!==h&&d.setData("application/x-lexical-editor",h),d.setData("text/plain",g),!0}function p(e,t){if(void 0!==document.caretRangeFromPoint){let n=document.caretRangeFromPoint(e,t);return null===n?null:{node:n.startContainer,offset:n.startOffset}}if("undefined"!==document.caretPositionFromPoint){let n=document.caretPositionFromPoint(e,t);return null===n?null:{node:n.offsetNode,offset:n.offset}}return null}let _="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,m=_&&"documentMode"in document?document.documentMode:null,y=!(!_||!("InputEvent"in window)||m)&&"getTargetRanges"in new window.InputEvent("input"),v=_&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),x=_&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,T=_&&/^(?=.*Chrome).*/i.test(navigator.userAgent),C=_&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!T,b=(0,o.gu)("DRAG_DROP_PASTE_FILE");class S extends o.fG{static getType(){return"quote"}static clone(e){return new S(e.__key)}constructor(e){super(e)}createDOM(e){let t=document.createElement("blockquote");return(0,l.ZB)(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:xt,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(t&&(0,o.sb)(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();t.style.textAlign=e;let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){let t=ht();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(e,t){let n=(0,o.lJ)(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){let e=(0,o.lJ)();
1return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}}class k extends o.fG{static getType(){return"heading"}static clone(e){return new k(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}createDOM(e){let t=this.__tag,n=document.createElement(t),r=e.theme.heading;if(void 0!==r){let e=r[t];(0,l.ZB)(n,e)}return n}updateDOM(e,t){return!1}static importDOM(){return{h1:e=>({conversion:N,priority:0}),h2:e=>({conversion:N,priority:0}),h3:e=>({conversion:N,priority:0}),h4:e=>({conversion:N,priority:0}),h5:e=>({conversion:N,priority:0}),h6:e=>({conversion:N,priority:0}),p:e=>{let t=e.firstChild;return null!==t&&w(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>w(e)?{conversion:e=>({node:E("h1")}),priority:3}:null}}exportDOM(e){let{element:t}=super.exportDOM(e);if(t&&(0,o.sb)(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();t.style.textAlign=e;let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){let t=E(e.tag);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(e,t=!0){let n=e?e.anchor.offset:0,r=n!==this.getTextContentSize()&&e?E(this.getTag()):(0,o.lJ)(),i=this.getDirection();if(r.setDirection(i),this.insertAfter(r,t),0===n&&!this.isEmpty()&&e){let e=(0,o.lJ)();e.select(),this.replace(e,!0)}return r}collapseAtStart(){let e=this.isEmpty()?(0,o.lJ)():E(this.getTag());
1return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}}function w(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function N(e){let t=e.nodeName.toLowerCase(),n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=E(t),null!==e.style&&n.setFormat(e.style.textAlign)),{node:n}}function E(e){return(0,o.pT)(new k(e))}function A(e){return e instanceof k}function D(e){let t=null;if((0,l.xj)(e,DragEvent)?t=e.dataTransfer:(0,l.xj)(e,ClipboardEvent)&&(t=e.clipboardData),null===t)return[!1,[],!1];let n=t.types,r=n.includes("Files"),i=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(t.files),i]}function O(e){let t=(0,o.vJ)();if(!(0,o.I2)(t))return!1;let n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){let i=r[t],s=i.getKey();if(n.has(s))continue;let a=(0,l.Bt)(i,e=>(0,o.ff)(e)&&!e.isInline());if(null===a)continue;let u=a.getKey();a.canIndent()&&!n.has(u)&&(n.add(u),e(a))}return n.size>0}function I(e){let t=(0,o.xL)(e);return(0,o.Cy)(t)}function L(e){return(0,l.Sd)(e.registerCommand(o.d8,e=>{let t=(0,o.vJ)();return!!(0,o.RT)(t)&&(t.clear(),!0)},0),e.registerCommand(o.Wu,e=>{let t=(0,o.vJ)();return!!(0,o.I2)(t)&&(t.deleteCharacter(e),!0)},o.jZ),e.registerCommand(o.hi,e=>{let t=(0,o.vJ)();return!!(0,o.I2)(t)&&(t.deleteWord(e),!0)},o.jZ),e.registerCommand(o.vi,e=>{let t=(0,o.vJ)();return!!(0,o.I2)(t)&&(t.deleteLine(e),!0)},o.jZ),e.registerCommand(o.bM,t=>{let n=(0,o.vJ)();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;let r=t.dataTransfer;if(null!=r)d(r,n,e);else if((0,o.I2)(n)){let e=t.data;return e&&n.insertText(e),!0}}return!0},o.jZ),e.registerCommand(o.$e,()=>{let e=(0,o.vJ)();return!!(0,o.I2)(e)&&(e.removeText(),!0)},o.jZ),e.registerCommand(o.mB,e=>{let t=(0,o.vJ)();return!!(0,o.I2)(t)&&(t.formatText(e),!0)},o.jZ),e.registerCommand(o.fU,e=>{let t=(0,o.vJ)();if(!(0,o.I2)(t)&&!(0,o.RT)(t))return!1;for(let n of t.getNodes()){let t=(0,l.Bt)(n,e=>(0,o.ff)(e)&&!e.isInline());null!==t&&t.setFormat(e)}return!0},o.jZ),e.registerCommand(o.FE,e=>{let t=(0,o.vJ)();return!!(0,o.I2)(t)&&(t.insertLineBreak(e),!0)},o.jZ),e.registerCommand(o.XK,()=>{let e=(0,o.vJ)();return!!(0,o.I2)(e)&&(e.insertParagraph(),!0)},o.jZ),e.registerCommand(o.YW,()=>((0,o.H2)([(0,o.ev)()]),!0),o.jZ),e.registerCommand(o.Pi,()=>O(e=>{let t=e.getIndent();e.setIndent(t+1)}),o.jZ),e.registerCommand(o.si,()=>O(e=>{let t=e.getIndent();t>0&&e.setIndent(t-1)}),o.jZ),e.registerCommand(o.UD,e=>{let t=(0,o.vJ)();if((0,o.RT)(t)&&!I(e.target)){let e=t.getNodes();if(e.length>0)return e[0].selectPrevious(),!0}else if((0,o.I2)(t)){let n=(0,o.B$)(t.focus,!0);if(!e.shiftKey&&(0,o.Cy)(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},o.jZ),e.registerCommand(o.bb,e=>{let t=(0,o.vJ)();if((0,o.RT)(t)){let e=t.getNodes();if(e.length>0)return e[0].selectNext(0,0),!0}else if((0,o.I2)(t)){if(function(e){let t=e.focus;return"root"===t.key&&t.offset===(0,o.Ni)().getChildrenSize()}(t))return e.preventDefault(),!0;let n=(0,o.B$)(t.focus,!1);if(!e.shiftKey&&(0,o.Cy)(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},o.jZ),e.registerCommand(o.AX,e=>{let t=(0,o.vJ)();if((0,o.RT)(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}if(!(0,o.I2)(t))return!1;if((0,i.Cb)(t,!0)){let n=e.shiftKey;return e.preventDefault(),(0,i.Rk)(t,n,!0),!0}return!1},o.jZ),e.registerCommand(o.JM,e=>{let t=(0,o.vJ)();if((0,o.RT)(t)&&!I(e.target)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}if(!(0,o.I2)(t))return!1;let n=e.shiftKey;return!!(0,i.Cb)(t,!1)&&(e.preventDefault(),(0,i.Rk)(t,n,!1),!0)},o.jZ),e.registerCommand(o.gC,t=>{if(I(t.target))return!1;let n=(0,o.vJ)();if(!(0,o.I2)(n))return!1;t.preventDefault();let{anchor:r}=n,i=r.getNode();return n.isCollapsed()&&0===r.offset&&!(0,o.hV)(i)&&(0,l.mB)(i).getIndent()>0?e.dispatchCommand(o.si,void 0):e.dispatchCommand(o.Wu,!0)},o.jZ),e.registerCommand(o.w$,t=>{if(I(t.target))return!1;let n=(0,o.vJ)();return!!(0,o.I2)(n)&&(t.preventDefault(),e.dispatchCommand(o.Wu,!1))},o.jZ),e.registerCommand(o.if,t=>{let n=(0,o.vJ)();if(!(0,o.I2)(n))return!1;if(null!==t){if((x||v||C)&&y)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(o.FE,!1)}return e.dispatchCommand(o.XK,void 0)},o.jZ),e.registerCommand(o.Q$,()=>{let t=(0,o.vJ)();return!!(0,o.I2)(t)&&(e.blur(),!0)},o.jZ),e.registerCommand(o.Sr,t=>{let[,n]=D(t);if(n.length>0){let r=p(t.clientX,t.clientY);if(null!==r){let{offset:t,node:i}=r,l=(0,o.xL)(i);if(null!==l){let e=(0,o.uT)();if((0,o.kF)(l))e.anchor.set(l.getKey(),t,"text"),e.focus.set(l.getKey(),t,"text");else{let t=l.getParentOrThrow().getKey(),n=l.getIndexWithinParent()+1;e.anchor.set(t,n,"element"),e.focus.set(t,n,"element")}let n=(0,o.C)(e);(0,o.n1)(n)}e.dispatchCommand(b,n)}return t.preventDefault(),!0}let r=(0,o.vJ)();return!!(0,o.I2)(r)},o.jZ),e.registerCommand(o.Tg,e=>{let[t]=D(e),n=(0,o.vJ)();return!(t&&!(0,o.I2)(n))},o.jZ),e.registerCommand(o.ri,e=>{let[t]=D(e),n=(0,o.vJ)();if(t&&!(0,o.I2)(n))return!1;let r=p(e.clientX,e.clientY);
1if(null!==r){let t=(0,o.xL)(r.node);(0,o.Cy)(t)&&e.preventDefault()}return!0},o.jZ),e.registerCommand(o.HY,()=>((0,o.e1)(),!0),o.jZ),e.registerCommand(o.u5,t=>(h(e,(0,l.xj)(t,ClipboardEvent)?t:null),!0),o.jZ),e.registerCommand(o.VS,t=>((async function(e,t){await h(t,(0,l.xj)(e,ClipboardEvent)?e:null),t.update(()=>{let e=(0,o.vJ)();(0,o.I2)(e)?e.removeText():(0,o.RT)(e)&&e.getNodes().forEach(e=>e.remove())})})(t,e),!0),o.jZ),e.registerCommand(o.w,t=>{let[,n,r]=D(t);return n.length>0&&!r?(e.dispatchCommand(b,n),!0):!(0,o.Z$)(t.target)&&null!==(0,o.vJ)()&&(t.preventDefault(),e.update(()=>{let n=(0,o.vJ)(),r=(0,l.xj)(t,InputEvent)||(0,l.xj)(t,KeyboardEvent)?null:t.clipboardData;null!=r&&null!==n&&d(r,n,e)},{tag:"paste"}),!0)},o.jZ))}},57130:(e,t,n)=>{n.d(t,{Bt:()=>h,HE:()=>d,Sd:()=>a,ZB:()=>u,eu:()=>f,mB:()=>c,xj:()=>g,zD:()=>p});var r=n(3439),i=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});let l="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,o=l&&"documentMode"in document?document.documentMode:null;function s(...e){let t=[];for(let n of e)if(n&&"string"==typeof n)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}function a(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function u(e,...t){let n=s(...t);n.length>0&&e.classList.add(...n)}function d(e,...t){let n=s(...t);n.length>0&&e.classList.remove(...n)}function f(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function c(e){let t=h(e,e=>(0,r.ff)(e)&&!e.isInline());return(0,r.ff)(t)||i(4,e.__key),t}l&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),l&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),l&&"InputEvent"in window&&!o&&new window.InputEvent("input"),l&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),l&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,l&&/Android/.test(navigator.userAgent),l&&/^(?=.*Chrome).*/i.test(navigator.userAgent),l&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent);let h=(e,t)=>{let n=e;for(;n!==(0,r.Ni)()&&null!=n;){if(t(n))return n;n=n.getParent()}return null};function g(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function p(e,t){let n=[];for(let r=0;r<e.length;r++){let i=t(e[r]);null!==i&&n.push(i)}return n}},71976:(e,t,n)=>{n.d(t,{BE:()=>o,Cb:()=>f,LP:()=>c,Nx:()=>a,Rk:()=>h,SD:()=>s,Xg:()=>u,zI:()=>d});var r=n(3439),i=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});let l=new Map;function o(e){let t=e.constructor.clone(e);return t.__parent=e.__parent,t.__next=e.__next,t.__prev=e.__prev,(0,r.ff)(e)&&(0,r.ff)(t)?(t.__first=e.__first,t.__last=e.__last,t.__size=e.__size,t.__format=e.__format,t.__indent=e.__indent,t.__dir=e.__dir):(0,r.kF)(e)&&(0,r.kF)(t)?(t.__format=e.__format,t.__style=e.__style,t.__mode=e.__mode,t.__detail=e.__detail):(0,r.bS)(e)&&(0,r.bS)(t)&&(t.__textFormat=e.__textFormat),t}function s(e,t){let n=e.getStartEndPoints();if(t.isSelected(e)&&!t.isSegmented()&&!t.isToken()&&null!==n){let[i,l]=n,o=e.isBackward(),s=i.getNode(),a=l.getNode(),u=t.is(s),d=t.is(a);if(u||d){let[n,i]=(0,r.Ck)(e),l=s.is(a),u=t.is(o?a:s),d=t.is(o?s:a),f,c=0;return l?(c=n>i?i:n,f=n>i?n:i):u?(c=o?i:n,f=void 0):d&&(c=0,f=o?n:i),t.__text=t.__text.slice(c,f),t}}return t}function a(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();let t=e.getNode();return(0,r.ff)(t)||i(177),e.offset===t.getChildrenSize()}function u(e){let t=e.getStyle(),n=function(e){let t={};for(let n of e.split(";"))if(""!==n){let[e,r]=n.split(/:([^]+)/);e&&r&&(t[e.trim()]=r.trim())}return t}(t);l.set(t,n)}function d(e,t){if(null===e)return;let n=e.getStartEndPoints(),l=n?n[0]:null;if(null!==l&&"root"===l.key){let e=t(),n=(0,r.Ni)(),i=n.getFirstChild();return void(i?i.replace(e,!0):n.append(e))}let o=e.getNodes(),s=null!==l&&function(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}(l.getNode(),g);s&&-1===o.indexOf(s)&&o.push(s);for(let e=0;e<o.length;e++){let n=o[e];if(!g(n))continue;(0,r.ff)(n)||i(178);let l=t();l.setFormat(n.getFormatType()),l.setIndent(n.getIndent()),n.replace(l,!0)}}function f(e,t){let n=(0,r.B$)(e.focus,t);return(0,r.Cy)(n)&&!n.isIsolated()||(0,r.ff)(n)&&!n.isInline()&&!n.canBeEmpty()}function c(e){let t=e.anchor.getNode();return"rtl"===((0,r.hV)(t)?t:t.getParentOrThrow()).getDirection()}function h(e,t,n){let r=c(e);e.modify(t?"extend":"move",n?!r:r,"character")}function g(e){if((0,r.Cy)(e)||!(0,r.ff)(e)||(0,r.Iq)(e))return!1;let t=e.getFirstChild(),n=null===t||(0,r.wH)(t)||(0,r.kF)(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}},75326:(e,t,n)=>{n.d(t,{d:()=>l,g:()=>o});var r=n(71976),i=n(3439);function l(e,t){let n=t.body?t.body.childNodes:[],r=[],l=[];for(let t=0;t<n.length;t++){let o=n[t];if(!s.has(o.nodeName)){let t=function e(t,n,r,l,o=new Map,a){let u=[];
1if(s.has(t.nodeName))return u;let d=null,f=function(e,t){let{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase()),i=null;if(void 0!==r)for(let t of r){let n=t(e);null!==n&&(null===i||(i.priority||0)<(n.priority||0))&&(i=n)}return null!==i?i.conversion:null}(t,n),c=f?f(t):null,h=null;if(null!==c){h=c.after;let e=c.node;if(null!==(d=Array.isArray(e)?e[e.length-1]:e)){for(let[,e]of o)if(!(d=e(d,a)))break;d&&u.push(...Array.isArray(e)?e:[d])}null!=c.forChild&&o.set(t.nodeName,c.forChild)}let g=t.childNodes,p=[],_=(null==d||!(0,i.Iq)(d))&&(null!=d&&(0,i.y6)(d)||l);for(let t=0;t<g.length;t++)p.push(...e(g[t],n,r,_,new Map(o),d));return null!=h&&(p=h(p)),(0,i.a9)(t)&&(p=function(e,t,n){let r=e.style.textAlign,l=[],o=[];for(let e=0;e<t.length;e++){let s=t[e];if((0,i.y6)(s))r&&!s.getFormat()&&s.setFormat(r),l.push(s);else if(o.push(s),e===t.length-1||e<t.length-1&&(0,i.y6)(t[e+1])){let e=n();e.setFormat(r),e.append(...o),l.push(e),o=[]}}return l}(t,p,_?()=>{let e=new i.A7;return r.push(e),e}:i.lJ)),null==d?u=u.concat(p):(0,i.ff)(d)&&d.append(...p),u}(o,e,l,!1);null!==t&&(r=r.concat(t))}}return function(e){for(let t of e)t.getNextSibling()instanceof i.A7&&t.insertAfter((0,i.WK)());for(let t of e){for(let e of t.getChildren())t.insertBefore(e);t.remove()}}(l),r}function o(e,t){if("undefined"==typeof document||"undefined"==typeof window&&void 0===global.window)throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let n=document.createElement("div"),l=(0,i.Ni)().getChildren();for(let o=0;o<l.length;o++)!function e(t,n,l,o=null){let s=null===o||n.isSelected(o),a=(0,i.ff)(n)&&n.excludeFromCopy("html"),u=n;if(null!==o){let e=(0,r.BE)(n);u=e=(0,i.kF)(e)&&null!==o?(0,r.SD)(o,e):e}let d=(0,i.ff)(u)?u.getChildren():[],f=t._nodes.get(u.getType()),{element:c,after:h}=f&&void 0!==f.exportDOM?f.exportDOM(t,u):u.exportDOM(t);if(!c)return!1;let g=document.createDocumentFragment();for(let r=0;r<d.length;r++){let l=d[r],a=e(t,l,g,o);!s&&(0,i.ff)(n)&&a&&n.extractWithChild(l,o,"html")&&(s=!0)}if(s&&!a){if((0,i.sb)(c)&&c.append(g),l.append(c),h){let e=h.call(u,c);e&&c.replaceWith(e)}}else l.append(g);return s}(e,l[o],n,t);return n.innerHTML}let s=new Set(["STYLE","SCRIPT"])},76425:(e,t,n)=>{n.d(t,{n:()=>d});var r=n(38560),i=n(3439),l=n(1521),o=n(73365);let s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,a=s?l.useLayoutEffect:l.useEffect,u={tag:"history-merge"};function d({initialConfig:e,children:t}){let n=(0,l.useMemo)(()=>{let{theme:t,namespace:n,editor__DEPRECATED:l,nodes:o,onError:a,editorState:d,html:f}=e,c=(0,r.Mx)(null,t),h=l||null;if(null===h){let r=(0,i.ie)({editable:e.editable,html:f,namespace:n,nodes:o,onError:e=>a(e,r),theme:t});!function(e,t){if(null!==t){if(void 0===t)e.update(()=>{let t=(0,i.Ni)();if(t.isEmpty()){let n=(0,i.lJ)();t.append(n);let r=s?document.activeElement:null;(null!==(0,i.vJ)()||null!==r&&r===e.getRootElement())&&n.select()}},u);else if(null!==t)switch(typeof t){case"string":{let n=e.parseEditorState(t);e.setEditorState(n,u);break}case"object":e.setEditorState(t,u);break;case"function":e.update(()=>{(0,i.Ni)().isEmpty()&&t(e)},u)}}}(r,d),h=r}return[h,c]},[]);return a(()=>{let t=e.editable,[r]=n;r.setEditable(void 0===t||t)},[]),(0,o.jsx)(r.Gu.Provider,{value:n,children:t})}},79689:(e,t,n)=>{let{entries:r,setPrototypeOf:i,isFrozen:l,getPrototypeOf:o,getOwnPropertyDescriptor:s}=Object,{freeze:a,seal:u,create:d}=Object,{apply:f,construct:c}="undefined"!=typeof Reflect&&Reflect;a||(a=function(e){return e}),u||(u=function(e){return e}),f||(f=function(e,t,n){return e.apply(t,n)}),c||(c=function(e,t){return new e(...t)});let h=N(Array.prototype.forEach),g=N(Array.prototype.lastIndexOf),p=N(Array.prototype.pop),_=N(Array.prototype.push),m=N(Array.prototype.splice),y=N(String.prototype.toLowerCase),v=N(String.prototype.toString),x=N(String.prototype.match),T=N(String.prototype.replace),C=N(String.prototype.indexOf),b=N(String.prototype.trim),S=N(Object.prototype.hasOwnProperty),k=N(RegExp.prototype.test),w=(Y=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(Y,t)});function N(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return f(e,t,r)}}function E(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;i&&i(e,null);let r=t.length;for(;r--;){let i=t[r];
1if("string"==typeof i){let e=n(i);e!==i&&(l(t)||(t[r]=e),i=e)}e[i]=!0}return e}function A(e){let t=d(null);for(let[n,i]of r(e))S(e,n)&&(Array.isArray(i)?t[n]=function(e){for(let t=0;t<e.length;t++)S(e,t)||(e[t]=null);return e}(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=A(i):t[n]=i);return t}function D(e,t){for(;null!==e;){let n=s(e,t);if(n){if(n.get)return N(n.get);if("function"==typeof n.value)return N(n.value)}e=o(e)}return function(){return null}}let O=a(["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","section","select","shadow","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"]),I=a(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=a(["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"]),P=a(["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"]),M=a(["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"]),F=a(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=a(["#text"]),B=a(["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","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),z=a(["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"]),W=a(["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","
1subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=a(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),J=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),K=u(/<%[\w\W]*|[\w\W]*%>/gm),j=u(/\$\{[\w\W]*/gm),H=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),$=u(/^aria-[\-\w]+$/),Z=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=u(/^(?:\w+script|data):/i),V=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),q=u(/^html$/i);var Y,X=Object.freeze({__proto__:null,ARIA_ATTR:$,ATTR_WHITESPACE:V,CUSTOM_ELEMENT:u(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:H,DOCTYPE_NAME:q,ERB_EXPR:K,IS_ALLOWED_URI:Z,IS_SCRIPT_OR_DATA:G,MUSTACHE_EXPR:J,TMPLIT_EXPR:j});let Q={element:1,text:3,progressingInstruction:7,comment:8,document:9},ee=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},et=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};!function e(){let t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,i=t=>e(t);if(i.version="3.2.5",i.removed=[],!n||!n.document||n.document.nodeType!==Q.document||!n.Element)return i.isSupported=!1,i;let{document:l}=n,o=l,s=o.currentScript,{DocumentFragment:u,HTMLTemplateElement:f,Node:c,Element:N,NodeFilter:J,NamedNodeMap:K=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:j,DOMParser:H,trustedTypes:$}=n,G=N.prototype,V=D(G,"cloneNode"),Y=D(G,"remove"),en=D(G,"nextSibling"),er=D(G,"childNodes"),ei=D(G,"parentNode");if("function"==typeof f){let e=l.createElement("template");e.content&&e.content.ownerDocument&&(l=e.content.ownerDocument)}let el="",{implementation:eo,createNodeIterator:es,createDocumentFragment:ea,getElementsByTagName:eu}=l,{importNode:ed}=o,ef=et();i.isSupported="function"==typeof r&&"function"==typeof ei&&eo&&void 0!==eo.createHTMLDocument;let{MUSTACHE_EXPR:ec,ERB_EXPR:eh,TMPLIT_EXPR:eg,DATA_ATTR:ep,ARIA_ATTR:e_,IS_SCRIPT_OR_DATA:em,ATTR_WHITESPACE:ey,CUSTOM_ELEMENT:ev}=X,{IS_ALLOWED_URI:ex}=X,eT=null,eC=E({},[...O,...I,...L,...M,...R]),eb=null,eS=E({},[...B,...z,...W,...U]),ek=Object.seal(d(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}})),ew=null,eN=null,eE=!0,eA=!0,eD=!1,eO=!0,eI=!1,eL=!0,eP=!1,eM=!1,eF=!1,eR=!1,eB=!1,ez=!1,eW=!0,eU=!1,eJ=!0,eK=!1,ej={},eH=null,e$=E({},["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"]),eZ=null,eG=E({},["audio","video","img","source","image","track"]),eV=null,eq=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eY="http://www.w3.org/1998/Math/MathML",eX="http://www.w3.org/2000/svg",eQ="http://www.w3.org/1999/xhtml",e0=eQ,e1=!1,e2=null,e3=E({},[eY,eX,eQ],v),e5=E({},["mi","mo","mn","ms","mtext"]),e6=E({},["annotation-xml"]),e4=E({},["title","style","font","a","script"]),e9=null,e7=["application/xhtml+xml","text/html"],e8=null,te=null,tt=l.createElement("form"),tn=function(e){return e instanceof RegExp||e instanceof Function},tr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!te||te!==e){if(e&&"object"==typeof e||(e={}),e=A(e),e8="application/xhtml+xml"===(e9=-1===e7.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?v:y,eT=S(e,"ALLOWED_TAGS")?E({},e.ALLOWED_TAGS,e8):eC,eb=S(e,"ALLOWED_ATTR")?E({},e.ALLOWED_ATTR,e8):eS,e2=S(e,"ALLOWED_NAMESPACES")?E({},e.ALLOWED_NAMESPACES,v):e3,eV=S(e,"ADD_URI_SAFE_ATTR")?E(A(eq),e.ADD_URI_SAFE_ATTR,e8):eq,eZ=S(e,"ADD_DATA_URI_TAGS")?E(A(eG),e.ADD_DATA_URI_TAGS,e8):eG,eH=S(e,"FORBID_CONTENTS")?E({},e.FORBID_CONTENTS,e8):e$,ew=S(e,"FORBID_TAGS")?E({},e.FORBID_TAGS,e8):{},eN=S(e,"FORBID_ATTR")?E({},e.FORBID_ATTR,e8):{},ej=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,eE=!1!==e.ALLOW_ARIA_ATTR,eA=!1!==e.ALLOW_DATA_ATTR,eD=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eO=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eI=e.SAFE_FOR_TEMPLATES||!1,eL=!1!==e.
1SAFE_FOR_XML,eP=e.WHOLE_DOCUMENT||!1,eR=e.RETURN_DOM||!1,eB=e.RETURN_DOM_FRAGMENT||!1,ez=e.RETURN_TRUSTED_TYPE||!1,eF=e.FORCE_BODY||!1,eW=!1!==e.SANITIZE_DOM,eU=e.SANITIZE_NAMED_PROPS||!1,eJ=!1!==e.KEEP_CONTENT,eK=e.IN_PLACE||!1,ex=e.ALLOWED_URI_REGEXP||Z,e0=e.NAMESPACE||eQ,e5=e.MATHML_TEXT_INTEGRATION_POINTS||e5,e6=e.HTML_INTEGRATION_POINTS||e6,ek=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tn(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ek.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tn(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ek.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ek.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eI&&(eA=!1),eB&&(eR=!0),ej&&(eT=E({},R),eb=[],!0===ej.html&&(E(eT,O),E(eb,B)),!0===ej.svg&&(E(eT,I),E(eb,z),E(eb,U)),!0===ej.svgFilters&&(E(eT,L),E(eb,z),E(eb,U)),!0===ej.mathMl&&(E(eT,M),E(eb,W),E(eb,U))),e.ADD_TAGS&&(eT===eC&&(eT=A(eT)),E(eT,e.ADD_TAGS,e8)),e.ADD_ATTR&&(eb===eS&&(eb=A(eb)),E(eb,e.ADD_ATTR,e8)),e.ADD_URI_SAFE_ATTR&&E(eV,e.ADD_URI_SAFE_ATTR,e8),e.FORBID_CONTENTS&&(eH===e$&&(eH=A(eH)),E(eH,e.FORBID_CONTENTS,e8)),eJ&&(eT["#text"]=!0),eP&&E(eT,["html","head","body"]),eT.table&&(E(eT,["tbody"]),delete ew.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');el=(t=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===t&&(t=ee($,s)),null!==t&&"string"==typeof el&&(el=t.createHTML(""));a&&a(e),te=e}},ti=E({},[...I,...L,...P]),tl=E({},[...M,...F]),to=function(e){let t=ei(e);t&&t.tagName||(t={namespaceURI:e0,tagName:"template"});let n=y(e.tagName),r=y(t.tagName);return!!e2[e.namespaceURI]&&(e.namespaceURI===eX?t.namespaceURI===eQ?"svg"===n:t.namespaceURI===eY?"svg"===n&&("annotation-xml"===r||e5[r]):!!ti[n]:e.namespaceURI===eY?t.namespaceURI===eQ?"math"===n:t.namespaceURI===eX?"math"===n&&e6[r]:!!tl[n]:e.namespaceURI===eQ?(t.namespaceURI!==eX||!!e6[r])&&(t.namespaceURI!==eY||!!e5[r])&&!tl[n]&&(e4[n]||!ti[n]):"application/xhtml+xml"===e9&&!!e2[e.namespaceURI])},ts=function(e){_(i.removed,{element:e});try{ei(e).removeChild(e)}catch(t){Y(e)}},ta=function(e,t){try{_(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){_(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(eR||eB)try{ts(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tu=function(e){let n=null,r=null;if(eF)e="<remove></remove>"+e;else{let t=x(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===e9&&e0===eQ&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=t?t.createHTML(e):e;if(e0===eQ)try{n=new H().parseFromString(i,e9)}catch(e){}if(!n||!n.documentElement){n=eo.createDocument(e0,"template",null);try{n.documentElement.innerHTML=e1?el:i}catch(e){}}let o=n.body||n.documentElement;return(e&&r&&o.insertBefore(l.createTextNode(r),o.childNodes[0]||null),e0===eQ)?eu.call(n,eP?"html":"body")[0]:eP?n.documentElement:o},td=function(e){return es.call(e.ownerDocument||e,e,J.SHOW_ELEMENT|J.SHOW_COMMENT|J.SHOW_TEXT|J.SHOW_PROCESSING_INSTRUCTION|J.SHOW_CDATA_SECTION,null)},tf=function(e){return e instanceof j&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof K)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},tc=function(e){return"function"==typeof c&&e instanceof c};function th(e,t,n){h(e,e=>{e.call(i,t,n,te)})}let tg=function(e){let t=null;if(th(ef.beforeSanitizeElements,e,null),tf(e))return ts(e),!0;let n=e8(e.nodeName);if(th(ef.uponSanitizeElement,e,{tagName:n,allowedTags:eT}),e.hasChildNodes()&&!tc(e.firstElementChild)&&k(/<[/\w!]/g,e.innerHTML)&&k(/<[/\w!]/g,e.textContent)||e.nodeType===Q.progressingInstruction||eL&&e.nodeType===Q.comment&&k(/<[/\w]/g,e.data))return ts(e),!0;if(!eT[n]||ew[n]){if(!ew[n]&&t_(n)&&(ek.tagNameCheck instanceof RegExp&&k(ek.tagNameCheck,n)||ek.tagNameCheck instanceof Function&&ek.tagNameCheck(n)))return!1;if(eJ&&!eH[n]){let t=ei(e)||e.parentNode,n=er(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=V(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,en(e))}}}return ts(e),!0}return e instanceof N&&!to(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&k(/<\/no(script|embed|frames)/i,e.innerHTML)?(ts(e),!0):(eI&&e.nodeType===Q.text&&(t=e.textContent,h([ec,eh,eg],e=>{t=T(t,e," ")}),e.textContent!==t&&(_(i.removed,{element:e.cloneNode()}),e.textContent=t)),th(ef.afterSanitizeElements,e,null),!1)},tp=function(e,t,n){if(eW&&("id"===t||"name"===t)&&(n in l||n in tt))return!1;if(eA&&!eN[t]&&k(ep,t));else if(eE&&k(e_,t));else if(!eb[t]||eN[t]){if(!(t_(e)&&(ek.tagNameCheck instanceof RegExp&&k(ek.tagNameCheck,e)||ek.tagNameCheck instanceof Function&&ek.tagNameCheck(e))&&(ek.attributeNameCheck instanceof RegExp&&k(ek.attributeNameCheck,t)||ek.attributeNameCheck instanceof Function&&ek.attributeNameCheck(t))||"is"===t&&ek.allowCustomizedBuiltInElements&&(ek.tagNameCheck instanceof RegExp&&k(ek.tagNameCheck,n)||ek.tagNameCheck instanceof Function&&ek.tagNameCheck(n))))return!1}else if(eV[t]);else if(k(ex,T(n,ey,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===C(n,"data:")&&eZ[e]);else if(eD&&!k(em,T(n,ey,"")));else if(n)return!1;return!0},t_=function(e){return"annotation-xml"!==e&&x(e,ev)},tm=function(e){th(ef.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||tf(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:eb,forceKeepAttr:void 0},l=n.length;for(;l--;){let{name:o,namespaceURI:s,value:a}=n[l],u=e8(o),d="value"===o?a:b(a);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,th(ef.uponSanitizeAttribute,e,r),d=r.attrValue,eU&&("id"===u||"name"===u)&&(ta(o,e),d="user-content-"+d),eL&&k(/((--!?|])>)|<\/(style|title)/i,d)){ta(o,e);continue}if(r.forceKeepAttr||(ta(o,e),!r.keepAttr))continue;if(!eO&&k(/\/>/i,d)){ta(o,e);continue}eI&&h([ec,eh,eg],e=>{d=T(d,e," ")});let f=e8(e.nodeName);if(tp(f,u,d)){if(t&&"object"==typeof $&&"function"==typeof $.getAttributeType)if(s);else switch($.getAttributeType(f,u)){case"TrustedHTML":d=t.createHTML(d);break;case"TrustedScriptURL":d=t.createScriptURL(d)}try{s?e.setAttributeNS(s,o,d):e.setAttribute(o,d),tf(e)?ts(e):p(i.removed)}catch(e){}}}th(ef.afterSanitizeAttributes,e,null)},ty=function e(t){let n=null,r=td(t);for(th(ef.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)th(ef.uponSanitizeShadowNode,n,null),tg(n),tm(n),n.content instanceof u&&e(n.content);th(ef.afterSanitizeShadowDOM,t,null)};return i.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,l=null,s=null,a=null;if((e1=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!tc(e))if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw w("dirty is not a string, aborting")}else throw w("toString is not a function");if(!i.isSupported)return e;
1if(eM||tr(n),i.removed=[],"string"==typeof e&&(eK=!1),eK){if(e.nodeName){let t=e8(e.nodeName);if(!eT[t]||ew[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)(l=(r=tu("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType===Q.element&&"BODY"===l.nodeName||"HTML"===l.nodeName?r=l:r.appendChild(l);else{if(!eR&&!eI&&!eP&&-1===e.indexOf("<"))return t&&ez?t.createHTML(e):e;if(!(r=tu(e)))return eR?null:ez?el:""}r&&eF&&ts(r.firstChild);let d=td(eK?e:r);for(;s=d.nextNode();)tg(s),tm(s),s.content instanceof u&&ty(s.content);if(eK)return e;if(eR){if(eB)for(a=ea.call(r.ownerDocument);r.firstChild;)a.appendChild(r.firstChild);else a=r;return(eb.shadowroot||eb.shadowrootmode)&&(a=ed.call(o,a,!0)),a}let f=eP?r.outerHTML:r.innerHTML;return eP&&eT["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&k(q,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),eI&&h([ec,eh,eg],e=>{f=T(f,e," ")}),t&&ez?t.createHTML(f):f},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tr(e),eM=!0},i.clearConfig=function(){te=null,eM=!1},i.isValidAttribute=function(e,t,n){return te||tr({}),tp(e8(e),e8(t),n)},i.addHook=function(e,t){"function"==typeof t&&_(ef[e],t)},i.removeHook=function(e,t){if(void 0!==t){let n=g(ef[e],t);return -1===n?void 0:m(ef[e],n,1)[0]}return p(ef[e])},i.removeHooks=function(e){ef[e]=[]},i.removeAllHooks=function(){ef=et()},i}()},95480:(e,t,n)=>{n.d(t,{a:()=>s});var r=n(38560),i=n(1521),l=n(73365);let o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect;function s({ariaActiveDescendant:e,ariaAutoComplete:t,ariaControls:n,ariaDescribedBy:s,ariaExpanded:a,ariaLabel:u,ariaLabelledBy:d,ariaMultiline:f,ariaOwns:c,ariaRequired:h,autoCapitalize:g,className:p,id:_,role:m="textbox",spellCheck:y=!0,style:v,tabIndex:x,"data-testid":T,...C}){let[b]=(0,r.DF)(),[S,k]=(0,i.useState)(!1),w=(0,i.useCallback)(e=>{e&&e.ownerDocument&&e.ownerDocument.defaultView&&b.setRootElement(e)},[b]);return o(()=>(k(b.isEditable()),b.registerEditableListener(e=>{k(e)})),[b]),(0,l.jsx)("div",{...C,"aria-activedescendant":S?e:void 0,"aria-autocomplete":S?t:"none","aria-controls":S?n:void 0,"aria-describedby":s,"aria-expanded":S&&"combobox"===m?!!a:void 0,"aria-label":u,"aria-labelledby":d,"aria-multiline":f,"aria-owns":S?c:void 0,"aria-readonly":!S||void 0,"aria-required":h,autoCapitalize:g,className:p,contentEditable:S,"data-testid":T,id:_,ref:w,role:m,spellCheck:y,style:v,tabIndex:x})}}}]);
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.