PageSourceSearch

https://xyrus.ai/_next/static/chunks/875.bac59d6ff2eba21e.js

js xyrus.ai collected 2026-10-05 15:09:00 UTC 378,590 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[875],{191:(e,t,n)=>{"use strict";n.d(t,{_:()=>y});var r=n(27737),i=n(61259),l=n(98801),o=n(12115),s=n(97503),a=n(33289),u=n(55644),c=n(85203),d=n(74898),f=n(65333);let h=o.forwardRef(({children:e,className:t,...n},r)=>o.createElement(u.q7,{...n,ref:r,className:c(t,d.Ay.selectItem)},o.createElement(u.p4,null,e))),g=({title:e,placeholder:t,className:n})=>{let[r,l]=(0,i.uX)(s.pc,s.yr);return o.createElement(f.I,{title:e},o.createElement(u.l9,{"aria-label":t,className:c(d.Ay.selectTrigger,n),"data-toolbar-item":!0,disabled:r},o.createElement(u.WT,{placeholder:t}),o.createElement(u.In,{className:d.Ay.selectDropdownArrow},l("arrow_drop_down"))))},p=({children:e,className:t=d.Ay.selectContainer})=>{let n=(0,i.X3)(s.xZ);return o.createElement(u.ZL,{container:null==n?void 0:n.current},o.createElement(u.UC,{className:c(t,"mdxeditor-select-content"),onCloseAutoFocus:e=>{e.preventDefault()},position:"popper"},o.createElement(u.LM,{"data-editor-dropdown":!0},e)))},m=e=>o.createElement(u.bL,{value:e.value||"",onValueChange:e.onChange,disabled:e.disabled},o.createElement(g,{title:e.triggerTitle,placeholder:e.placeholder}),o.createElement(p,null,e.items.map((e,t)=>"separator"===e?o.createElement(u.wv,{key:t}):o.createElement(h,{key:t,value:e.value},e.label)))),y=()=>{let e=(0,i.qM)(s.vR),t=(0,i.X3)(s.X3),n=(0,i.X3)(s.TI),u=n.includes("quote"),c=n.includes("headings"),d=(0,s.Bd)();if(!u&&!c)return null;let f=[{label:d("toolbar.blockTypes.paragraph","Paragraph"),value:"paragraph"}];if(u&&f.push({label:d("toolbar.blockTypes.quote","Quote"),value:"quote"}),c){let e=(0,i.X3)(a.OO);f.push(...e.map(e=>({label:d("toolbar.blockTypes.heading","Heading {{level}}",{level:e}),value:`h${e}`})))}return o.createElement(m,{value:t,onChange:t=>{switch(t){case"quote":e(()=>(0,r.xi)());break;case"paragraph":e(()=>(0,l.lJ7)());break;case"":break;default:if(t.startsWith("h"))e(()=>(0,r.fi)(t));else throw Error(`Unknown block type: ${t}`)}},triggerTitle:d("toolbar.blockTypeSelect.selectBlockTypeTooltip","Select block type"),placeholder:d("toolbar.blockTypeSelect.placeholder","Block type"),items:f})}},3829:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]])},4556:(e,t,n)=>{"use strict";n.d(t,{O:()=>S});var r=n(12115),i=n(64672);let l={testNode:"link",visitNode({mdastNode:e,actions:t}){t.addAndStepInto((0,i.zA)(e.url,{title:e.title}))}},o={testLexicalNode:i.FJ,visitLexicalNode:({lexicalNode:e,actions:t})=>{t.addAndStepInto("link",{url:e.getURL(),title:e.getTitle()})}};var s=n(66934),a=n(75288),u=n(98801);function c({validateUrl:e,attributes:t}){let[n]=(0,s.DF)();return(0,r.useEffect)(()=>{if(!n.hasNodes([i.Db]))throw Error("LinkPlugin: LinkNode not registered on editor");return(0,a.Sd)(n.registerCommand(i.yW,n=>{if(null===n)return(0,i.hx)(n),!0;if("string"==typeof n)return!(void 0!==e&&!e(n))&&((0,i.hx)(n,t),!0);{let{url:e,target:r,rel:l,title:o}=n;return(0,i.hx)(e,{...t,rel:l,target:r,title:o}),!0}},u.AcJ),void 0!==e?n.registerCommand(u.waI,r=>{let l=(0,u.vJq)();if(!(0,u.I2P)(l)||l.isCollapsed()||!(0,a.xj)(r,ClipboardEvent)||null===r.clipboardData)return!1;let o=r.clipboardData.getData("text");return!!e(o)&&!l.getNodes().some(e=>(0,u.ff4)(e))&&(n.dispatchCommand(i.yW,{...t,url:o}),r.preventDefault(),!0)},u.AcJ):()=>{})},[n,e,t]),null}function d(e,t=e=>e){return n=>{let r=e.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:t(r[0])}}}function f(e,t){for(let n=0;n<t.length;n++){let r=t[n](e);if(r)return r}return null}let h=/[.,;\s]/;function g(e){return h.test(e)}function p(e){return g(e[e.length-1])}function m(e){let t=e.getPreviousSibling();return(0,u.ff4)(t)&&(t=t.getLastDescendant()),null===t||(0,u.wH$)(t)||(0,u.kFe)(t)&&p(t.getTextContent())}function y(e){let t=e.getNextSibling();return(0,u.ff4)(t)&&(t=t.getFirstDescendant()),null===t||(0,u.wH$)(t)||(0,u.kFe)(t)&&g(t.getTextContent()[0])}function x(e,t,n){let r=e.getChildren(),i=r.length;for(let t=0;t<i;t++){let i=r[t];if(!(0,u.kFe)(i)||!i.isSimpleText())return _(e),void n(null,e.getURL())}let l=e.getTextContent(),o=f(l,t);if(null===o||o.text!==l||!m(e)||!y(e))return _(e),void n(null,e.getURL());let s=e.getURL();if(s!==o.url&&(e.setURL(o.url),n(o.url,s)),o.attributes){let t=e.getRel();t!==o.attributes.rel&&(e.setRel(o.attributes.rel||null),n(o.attributes.rel||null,t));let r=e.getTarget();r!==o.attributes.target&&(e.setTarget(o.attributes.target||null),n(o.attributes.target||null,r))}}function _(e){let t=e.getChildren();for(let n=t.length-1;n>=0;n--)e.insertAfter(t[n]);return e.remove(),t.map(e=>e.getLatest())}function v({matchers:e,onChange:t}){let[n]=(0,s.DF)();return(0,r.useEffect)(()=>{n.hasNodes([i.k_])||function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",77),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${77}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77);let r=(e,n)=>{t&&t(e,n)};return(0,a.Sd)(n.registerNodeTransform(u.Ey8,t=>{let n=t.getParentOrThrow(),l=t.getPreviousSibling();if((0,i.iK)(n)&&!n.getIsUnlinked())x(n,e,r);else if(!(0,i.FJ)(n)){t.isSimpleText()&&(g(t.getTextContent()[0])||!(0,i.iK)(l))&&function(e,t,n){let r=[...e],l=r.map(e=>e.getTextContent()).join(""),o,s=l,a=0;for(;(o=f(s,t))&&null!==o;){var c,d,h;let e=o.index,t=e+o.length;if(c=a+e,d=a+t,h=r,(c>0?g(l[c-1]):m(h[0]))&&(d<l.length?g(l[d]):y(h[h.length-1]))){let[l,,s,c]=function(e,t,n){let r=[],i=[],l=[],o=0,s=0,a=[...e];for(;a.length>0;){let e=a[0],u=e.getTextContent().length,c=s;s+u<=t?(r.push(e),o+=u):c>=n?l.push(e):i.push(e),s+=u,a.shift()}return[o,r,i,l]}(r,a+e,a+t),d=function(e,t,n,r){let l=(0,i.Yh)(r.url,r.attributes);if(1===e.length){let i,o=e[0];0===t?[i,o]=o.splitText(n):[,i,o]=o.splitText(t,n);let s=(0,u.sTu)(r.text);return s.setFormat(i.getFormat()),s.setDetail(i.getDetail()),s.setStyle(i.getStyle()),l.append(s),i.replace(l),o}if(e.length>1){let r,i=e[0],o,s=i.getTextContent().length;0===t?o=i:[,o]=i.splitText(t);let a=[];for(let t=1;t<e.length;t++){let i=e[t],l=i.getTextContent().length,o=s;if(o<n)if(s+l<=n)a.push(i);else{let[e,t]=i.splitText(n-o);a.push(e),r=t}s+=l}let c=(0,u.vJq)(),d=c?c.getNodes().find(u.kFe):void 0,f=(0,u.sTu)(o.getTextContent());return f.setFormat(o.getFormat()),f.setDetail(o.getDetail()),f.setStyle(o.getStyle()),l.append(f,...a),d&&d===o&&((0,u.I2P)(c)?f.select(c.anchor.offset,c.focus.offset):(0,u.RTZ)(c)&&f.select(0,f.getTextContent().length)),o.replace(l),r}}(s,a+e-l,a+t-l,o);r=d?[d,...c]:c,n(o.url,null),a=0}else a+=t;s=s.substring(t)}}(function(e){let t=[e],n=e.getNextSibling();for(;null!==n&&(0,u.kFe)(n)&&n.isSimpleText()&&(t.push(n),!/[\s]/.test(n.getTextContent()));)n=n.getNextSibling();return t}(t),e,r);var o=t,s=e,a=r;let n=o.getPreviousSibling(),c=o.getNextSibling(),d=o.getTextContent();!(0,i.iK)(n)||n.getIsUnlinked()||g(d[0])&&!(n.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(d):/^\.[a-zA-Z0-9]{1,}/.test(d))||(n.append(o),x(n,s,a),a(null,n.getURL())),!(0,i.iK)(c)||c.getIsUnlinked()||p(d)||
1(_(c),x(c,s,a),a(null,c.getURL()))}}),n.registerCommand(i.yW,e=>{let t=(0,u.vJq)();return null===e&&!!(0,u.I2P)(t)&&(t.extract().forEach(e=>{let t=e.getParent();(0,i.iK)(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),!1)},u.AcJ))},[n,e,t]),null}let C=[d(/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,e=>e.startsWith("http")?e:`https://${e}`),d(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,e=>`mailto:${e}`)],b=()=>r.createElement(v,{matchers:C});var w=n(61259),T=n(11919),k=n(97503);let E=(0,w.fh)(!1),S=(0,T.Z)({init(e,t){let n=!!(null==t?void 0:t.disableAutoLink),s=(null==t?void 0:t.validateUrl)?{validateUrl:t.validateUrl}:{},a=()=>r.createElement(r.Fragment,null,r.createElement(c,{...s}),n?null:r.createElement(b,null));e.pubIn({[k.$0]:"link",[k.R1]:l,[k.q]:[i.Db,i.k_],[k.iI]:o,[E]:n,[k.Id]:a,[k.aC]:a})}})},5789:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]])},11018:(e,t,n)=>{"use strict";function r(e,t){return t(e),e}function i(){}n.d(t,{Mi:()=>r,lQ:()=>i})},11919:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o,g:()=>s});var r=n(12115),i=n(61259),l=n(11018);function o(e){return function(t){return{init:n=>{var r;return null==(r=e.init)?void 0:r.call(e,n,t)},postInit:n=>{var r;return null==(r=e.postInit)?void 0:r.call(e,n,t)},update:n=>{var r;return null==(r=e.update)?void 0:r.call(e,n,t)}}}}function s({children:e,plugins:t}){let n=r.useMemo(()=>(0,l.Mi)(new i.Mx,e=>{var n,r;for(let r of t)null==(n=r.init)||n.call(r,e);for(let n of t)null==(r=n.postInit)||r.call(n,e)}),[]);return r.useEffect(()=>{var e;for(let r of t)null==(e=r.update)||e.call(r,n)}),r.createElement(i.Zb.Provider,{value:n},e)}},13174:(e,t,n)=>{"use strict";n.d(t,{oQ:()=>i,sY:()=>r});let r="undefined"!=typeof window&&void 0!==window.document.createElement&&/Mac|iPod|iPhone|iPad/.test(navigator.platform);function i(e,t){return r?e:t}},27737:(e,t,n)=>{"use strict";n.d(t,{fi:()=>I,xi:()=>T,Pi:()=>A,jd:()=>k,jL:()=>E,dJ:()=>w,ZI:()=>D});var r=n(92270),i=n(98801);let l=new Set(["STYLE","SCRIPT"]);var o=n(75288);function s(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let n of(r.append("code",e),t))r.append("v",n);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function a(e,t,n){let o=e.getData("application/x-lexical-editor");if(o)try{let e=JSON.parse(o);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes))return u(n,function(e){let t=[];for(let n=0;n<e.length;n++){let l=e[n],o=(0,i.GMe)(l);(0,i.kFe)(o)&&(0,r.Xg)(o),t.push(o)}return t}(e.nodes),t)}catch(e){}let s=e.getData("text/html"),a=e.getData("text/plain");if(s&&a!==s)try{let e=(new DOMParser).parseFromString(window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(s):s,"text/html");return u(n,function(e,t){let n=t.body?t.body.childNodes:[],r=[],o=[];for(let t=0;t<n.length;t++){let s=n[t];if(!l.has(s.nodeName)){let t=function e(t,n,r,o,s=new Map,a){let u=[];if(l.has(t.nodeName))return u;let c=null,d=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),f=d?d(t):null,h=null;if(null!==f){h=f.after;let e=f.node;if(null!==(c=Array.isArray(e)?e[e.length-1]:e)){for(let[,e]of s)if(!(c=e(c,a)))break;c&&u.push(...Array.isArray(e)?e:[c])}null!=f.forChild&&s.set(t.nodeName,f.forChild)}let g=t.childNodes,p=[],m=(null==c||!(0,i.IqF)(c))&&(null!=c&&(0,i.y68)(c)||o);for(let t=0;t<g.length;t++)p.push(...e(g[t],n,r,m,new Map(s),c));return null!=h&&(p=h(p)),(0,i.a9V)(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.y68)(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.y68)(t[e+1])){let e=n();e.setFormat(r),e.append(...o),l.push(e),o=[]}}return l}(t,p,m?()=>{let e=new i.A7V;return r.push(e),e}:i.lJ7)),null==c?p.length>0?u=u.concat(p):(0,i.a9V)(t)&&null!=t.nextSibling&&null!=t.previousSibling&&(0,i._On)(t.nextSibling)&&(0,i._On)(t.previousSibling)&&(u=u.concat((0,i.WKo)())):(0,i.ff4)(c)&&c.append(...p),u}(s,e,o,!1);null!==t&&(r=r.concat(t))}}return function(e){for(let t of e)t.getNextSibling()instanceof i.A7V&&t.insertAfter((0,i.WKo)());for(let t of e){for(let e of t.getChildren())t.insertBefore(e);t.remove()}}(o),r}(n,e),t)}catch(e){}
1let c=a||e.getData("text/uri-list");if(null!=c)if((0,i.I2P)(t)){let e=c.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){let n=(0,i.vJq)();if((0,i.I2P)(n)){let r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"	"===r?n.insertNodes([(0,i.ev7)()]):n.insertText(r)}}}else t.insertRawText(c)}function u(e,t,n){e.dispatchCommand(i.oqR,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if((0,i.I2P)(e)&&e.isCollapsed()){let t=e.anchor,n=null,r=(0,i.Ave)(t,"previous");if(r)if((0,i.rN)(r))n=r.origin;else for(let e of(0,i.TJt)(r,(0,i.uwZ)((0,i.NiT)(),"next").getFlipped())){if((0,i.kFe)(e.origin)){n=e.origin;break}if((0,i.ff4)(e.origin)&&!e.origin.isInline())break}if(n&&(0,i.kFe)(n)){let t=n.getFormat(),r=n.getStyle();e.format===t&&e.style===r||(e.format=t,e.style=r,e.dirty=!0)}}}(n))}let c=null;async function d(e,t,n){if(null!==c)return!1;if(null!==t)return new Promise((r,i)=>{e.update(()=>{r(f(e,t,n))})});let r=e.getRootElement(),l=e._window||window,s=window.document,a=(0,i.peL)(l);if(null===r||null===a)return!1;let u=s.createElement("span");u.style.cssText="position: fixed; top: -1000px;",u.append(s.createTextNode("#")),r.append(u);let d=new Range;return d.setStart(u,0),d.setEnd(u,1),a.removeAllRanges(),a.addRange(d),new Promise((t,r)=>{let l=e.registerCommand(i.u5G,r=>((0,o.xj)(r,ClipboardEvent)&&(l(),null!==c&&(window.clearTimeout(c),c=null),t(f(e,r,n))),!0),i.da8);c=window.setTimeout(()=>{l(),c=null,t(!1)},50),s.execCommand("copy"),u.remove()})}function f(e,t,n){if(void 0===n){let t=(0,i.peL)(e._window);if(!t)return!1;let r=t.anchorNode,l=t.focusNode;if(null!==r&&null!==l&&!(0,i.LYZ)(e,r,l))return!1;let o=(0,i.vJq)();if(null===o)return!1;n=function(e=(0,i.vJq)()){let t={"text/plain":e?e.getTextContent():""};if(e){let n=(0,i.i0_)();for(let[r,i]of h){let l=i(n,e);null!==l&&(t[r]=l)}}return t}(o)}t.preventDefault();let r=t.clipboardData;return null!==r&&(function(e,t){for(let n in t){let r=t[n];void 0!==r&&e.setData(n,r)}}(r,n),!0)}let h=[["text/html",function(e,t=(0,i.vJq)()){return null==t&&s(166),(0,i.I2P)(t)&&t.isCollapsed()||0===t.getNodes().length?"":function(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.NiT)().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.ff4)(n)&&n.excludeFromCopy("html"),u=n;if(null!==o){let e=(0,i.BEs)(n);u=e=(0,i.kFe)(e)&&null!==o?(0,r.SD)(o,e):e}let c=(0,i.ff4)(u)?u.getChildren():[],d=(0,i.Jvg)(t,u.getType()),{element:f,after:h}=d&&void 0!==d.exportDOM?d.exportDOM(t,u):u.exportDOM(t);if(!f)return!1;let g=document.createDocumentFragment();for(let r=0;r<c.length;r++){let l=c[r],a=e(t,l,g,o);!s&&(0,i.ff4)(n)&&a&&n.extractWithChild(l,o,"html")&&(s=!0)}if(s&&!a){if(((0,i.sby)(f)||(0,i.K8K)(f))&&f.append(g),l.append(f),h){let e=h.call(u,f);e&&((0,i.K8K)(f)?f.replaceChildren(e):f.replaceWith(e))}}else l.append(g);return s}(e,l[o],n,t);return n.innerHTML}(e,t)}],["application/x-lexical-editor",function(e,t=(0,i.vJq)()){return null==t&&s(166),(0,i.I2P)(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){let n=[],l=(0,i.NiT)().getChildren();for(let o=0;o<l.length;o++)!function e(t,n,l,o=[]){let a=null===n||l.isSelected(n),u=(0,i.ff4)(l)&&l.excludeFromCopy("html"),c=l;if(null!==n){let e=(0,i.BEs)(l);c=e=(0,i.kFe)(e)&&null!==n?(0,r.SD)(n,e):e}let d=(0,i.ff4)(c)?c.getChildren():[],f=function(e){let t=e.exportJSON(),n=e.constructor;return t.type!==n.getType()&&s(58,n.name),(0,i.ff4)(e)&&(Array.isArray(t.children)||s(59,n.name)),t}(c);if((0,i.kFe)(c)){let e=c.__text;e.length>0?f.text=e:a=!1}for(let r=0;r<d.length;r++){let o=d[r],s=e(t,n,o,f.children);!a&&(0,i.ff4)(l)&&s&&l.extractWithChild(o,n,"clone")&&(a=!0)}if(a&&!u)o.push(f);else if(Array.isArray(f.children))for(let e=0;e<f.children.length;e++){let t=f.children[e];o.push(t)}return a}(e,t,l[o],n);return{namespace:e._config.namespace,nodes:n}}(e,t))}]];function g(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 p="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,m=p&&"documentMode"in document?document.documentMode:null,y=!(!p||!("InputEvent"in window)||m)&&"getTargetRanges"in new window.InputEvent("input"),x=p&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),_=p&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,v=p&&/^(?=.*Chrome).*/i.test(navigator.userAgent),C=p&&/AppleWeb
1Kit\/[\d.]+/.test(navigator.userAgent)&&!v,b=(0,i.guI)("DRAG_DROP_PASTE_FILE");class w extends i.fGB{static getType(){return"quote"}static clone(e){return new w(e.__key)}createDOM(e){let t=document.createElement("blockquote");return(0,o.ZB)(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:M,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if((0,i.sby)(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return T().updateFromJSON(e)}insertNewAfter(e,t){let n=(0,i.lJ7)(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){let e=(0,i.lJ7)();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}}function T(){return(0,i.pTq)(new w)}function k(e){return e instanceof w}class E extends i.fGB{static getType(){return"heading"}static clone(e){return new E(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}setTag(e){let t=this.getWritable();return this.__tag=e,t}createDOM(e){let t=this.__tag,n=document.createElement(t),r=e.theme.heading;if(void 0!==r){let e=r[t];(0,o.ZB)(n,e)}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}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&&S(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>S(e)?{conversion:e=>({node:I("h1")}),priority:3}:null}}exportDOM(e){let{element:t}=super.exportDOM(e);if((0,i.sby)(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return I(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){let n=e?e.anchor.offset:0,r=this.getLastDescendant(),l=r&&(!e||e.anchor.key!==r.getKey()||n!==r.getTextContentSize())&&e?I(this.getTag()):(0,i.lJ7)(),o=this.getDirection();if(l.setDirection(o),this.insertAfter(l,t),0===n&&!this.isEmpty()&&e){let e=(0,i.lJ7)();e.select(),this.replace(e,!0)}return l}collapseAtStart(){let e=this.isEmpty()?(0,i.lJ7)():I(this.getTag());
1return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}}function S(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=I(t),null!==e.style&&((0,i.dxY)(e,n),n.setFormat(e.style.textAlign))),{node:n}}function M(e){let t=T();return null!==e.style&&(t.setFormat(e.style.textAlign),(0,i.dxY)(e,t)),{node:t}}function I(e="h1"){return(0,i.pTq)(new E(e))}function A(e){return e instanceof E}function L(e){let t=null;if((0,o.xj)(e,DragEvent)?t=e.dataTransfer:(0,o.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 P(e){let t=(0,i.vJq)();if(!(0,i.I2P)(t))return!1;let n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){let l=r[t],s=l.getKey();if(n.has(s))continue;let a=(0,o.Bt)(l,e=>(0,i.ff4)(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 O(e){let t=(0,i.xL4)(e);return(0,i.Cyw)(t)}function F(e){for(let t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function D(e){return(0,o.Sd)(e.registerCommand(i.d8p,e=>{let t=(0,i.vJq)();return!!(0,i.RTZ)(t)&&(t.clear(),!0)},i.jZM),e.registerCommand(i.WuB,e=>{let t=(0,i.vJq)();return(0,i.I2P)(t)?(t.deleteCharacter(e),!0):!!(0,i.RTZ)(t)&&(t.deleteNodes(),!0)},i.jZM),e.registerCommand(i.hi0,e=>{let t=(0,i.vJq)();return!!(0,i.I2P)(t)&&(t.deleteWord(e),!0)},i.jZM),e.registerCommand(i.viC,e=>{let t=(0,i.vJq)();return!!(0,i.I2P)(t)&&(t.deleteLine(e),!0)},i.jZM),e.registerCommand(i.bM3,t=>{let n=(0,i.vJq)();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;let r=t.dataTransfer;if(null!=r)a(r,n,e);else if((0,i.I2P)(n)){let e=t.data;return e&&n.insertText(e),!0}}return!0},i.jZM),e.registerCommand(i.$ey,()=>{let e=(0,i.vJq)();return!!(0,i.I2P)(e)&&(e.removeText(),!0)},i.jZM),e.registerCommand(i.mB,e=>{let t=(0,i.vJq)();return!!(0,i.I2P)(t)&&(t.formatText(e),!0)},i.jZM),e.registerCommand(i.fUS,e=>{let t=(0,i.vJq)();if(!(0,i.I2P)(t)&&!(0,i.RTZ)(t))return!1;for(let n of t.getNodes()){let t=(0,o.Bt)(n,e=>(0,i.ff4)(e)&&!e.isInline());null!==t&&t.setFormat(e)}return!0},i.jZM),e.registerCommand(i.FEN,e=>{let t=(0,i.vJq)();return!!(0,i.I2P)(t)&&(t.insertLineBreak(e),!0)},i.jZM),e.registerCommand(i.XKQ,()=>{let e=(0,i.vJq)();return!!(0,i.I2P)(e)&&(e.insertParagraph(),!0)},i.jZM),e.registerCommand(i.YW5,()=>((0,i.H2A)([(0,i.ev7)()]),!0),i.jZM),e.registerCommand(i.PiT,()=>P(e=>{let t=e.getIndent();e.setIndent(t+1)}),i.jZM),e.registerCommand(i.sik,()=>P(e=>{let t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),i.jZM),e.registerCommand(i.UDz,e=>{let t=(0,i.vJq)();if((0,i.RTZ)(t)){let e=t.getNodes();if(e.length>0)return e[0].selectPrevious(),!0}else if((0,i.I2P)(t)){let n=(0,i.B$P)(t.focus,!0);if(!e.shiftKey&&(0,i.Cyw)(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},i.jZM),e.registerCommand(i.bbF,e=>{let t=(0,i.vJq)();if((0,i.RTZ)(t)){let e=t.getNodes();if(e.length>0)return e[0].selectNext(0,0),!0}else if((0,i.I2P)(t)){if(function(e){let t=e.focus;return"root"===t.key&&t.offset===(0,i.NiT)().getChildrenSize()}(t))return e.preventDefault(),!0;let n=(0,i.B$P)(t.focus,!1);if(!e.shiftKey&&(0,i.Cyw)(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},i.jZM),e.registerCommand(i.AX0,e=>{let t=(0,i.vJq)();if((0,i.RTZ)(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),(0,r.dt)(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!(0,i.I2P)(t))return!1;if((0,r.Cb)(t,!0)){let n=e.shiftKey;return e.preventDefault(),(0,r.Rk)(t,n,!0),!0}return!1},i.jZM),e.registerCommand(i.JM3,e=>{let t=(0,i.vJq)();if((0,i.RTZ)(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),(0,r.dt)(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!(0,i.I2P)(t))return!1;let n=e.shiftKey;return!!(0,r.Cb)(t,!1)&&(e.preventDefault(),(0,r.Rk)(t,n,!1),!0)},i.jZM),e.registerCommand(i.gCZ,t=>{if(O(t.target))return!1;let n=(0,i.vJq)();if((0,i.I2P)(n)){if(function(e){if(!e.isCollapsed())return!1;let{anchor:t}=e;if(0!==t.offset)return!1;let n=t.getNode();if((0,i.hVZ)(n))return!1;let r=(0,o.mB)(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(i.sik,void 0);if(_&&"ko-KR"===navigator.language)return!1}else if(!(0,i.RTZ)(n))return!1;return t.preventDefault(),e.dispatchCommand(i.WuB,!0)},i.jZM),e.registerCommand(i.w$Z,t=>{if(O(t.target))return!1;let n=(0,i.vJq)();return!(!(0,i.I2P)(n)&&!(0,i.RTZ)(n))&&(t.preventDefault(),e.dispatchCommand(i.WuB,!1))},i.jZM),e.registerCommand(i.RTo,t=>{let n=(0,i.vJq)();if(!(0,i.I2P)(n))return!1;if(F(n),null!==t){if((_||x||C)&&y)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(i.FEN,!1)}return e.dispatchCommand(i.XKQ,void 0)},i.jZM),e.registerCommand(i.Q$N,()=>{let t=(0,i.vJq)();return!!(0,i.I2P)(t)&&(e.blur(),!0)},i.jZM),e.registerCommand(i.Sr4,t=>{let[,n]=L(t);if(n.length>0){let r=g(t.clientX,t.clientY);if(null!==r){let{offset:t,node:l}=r,o=(0,i.xL4)(l);if(null!==o){let e=(0,i.uTE)();if((0,i.kFe)(o))e.anchor.set(o.getKey(),t,"text"),e.focus.set(o.getKey(),t,"text");else{let t=o.getParentOrThrow().getKey(),n=o.getIndexWithinParent()+1;e.anchor.set(t,n,"element"),e.focus.set(t,n,"element")}let n=(0,i.CaD)(e);(0,i.n1P)(n)}e.dispatchCommand(b,n)}return t.preventDefault(),!0}let r=(0,i.vJq)();return!!(0,i.I2P)(r)},i.jZM),e.registerCommand(i.TgX,e=>{let[t]=L(e),n=(0,i.vJq)();return!(t&&!(0,i.I2P)(n))},i.jZM),e.registerCommand(i.riq,e=>{let[t]=L(e),n=(0,i.vJq)();if(t&&!(0,i.I2P)(n))return!1;let r=g(e.clientX,e.clientY);if(null!==r){let t=(0,i.xL4)(r.node);(0,i.Cyw)(t)&&e.preventDefault()}return!0},i.jZM),e.registerCommand(i.HYn,()=>((0,i.e1k)(),!0),i.jZM),e.registerCommand(i.u5G,t=>(d(e,(0,o.xj)(t,ClipboardEvent)?t:null),!0),i.jZM),e.registerCommand(i.VSO,t=>((async function(e,t){await d(t,(0,o.xj)(e,ClipboardEvent)?e:null),t.update(()=>{let e=(0,i.vJq)();
1(0,i.I2P)(e)?e.removeText():(0,i.RTZ)(e)&&e.getNodes().forEach(e=>e.remove())})})(t,e),!0),i.jZM),e.registerCommand(i.waI,t=>{let[,n,r]=L(t);return n.length>0&&!r?(e.dispatchCommand(b,n),!0):!((0,i.vAA)(t.target)&&(0,i.Z$U)(t.target))&&null!==(0,i.vJq)()&&(t.preventDefault(),e.update(()=>{let n=(0,i.vJq)(),r=(0,o.xj)(t,InputEvent)||(0,o.xj)(t,KeyboardEvent)?null:t.clipboardData;null!=r&&null!==n&&a(r,n,e)},{tag:i.fwY}),!0)},i.jZM),e.registerCommand(i.Huu,e=>{let t=(0,i.vJq)();return(0,i.I2P)(t)&&F(t),!1},i.jZM),e.registerCommand(i.OXk,e=>{let t=(0,i.vJq)();return(0,i.I2P)(t)&&F(t),!1},i.jZM))}},30710:(e,t,n)=>{"use strict";n.d(t,{FA:()=>r,Ig:()=>o,J6:()=>l,S3:()=>i,Te:()=>a,jG:()=>s,o4:()=>u,sM:()=>c});let r=1,i=2,l=4,o=8,s=16,a=32,u=64,c=128},31561:(e,t,n)=>{"use strict";n.d(t,{Nq:()=>b,SH:()=>C,Zq:()=>w});var r=n(97503),i=n(86660);let l={testNode:"list",visitNode:function({mdastNode:e,lexicalParent:t,actions:n}){let r=e.children.some(e=>"boolean"==typeof e.checked)?"check":e.ordered?"number":"bullet",l=(0,i.DE)(r);if((0,i.Mz)(t)){let e=(0,i.i)();e.append(l),t.insertAfter(e)}else t.append(l);n.visitChildren(e,l)}},o={testNode:"listItem",visitNode({mdastNode:e,actions:t,lexicalParent:n}){let r="check"===n.getListType()?e.checked??!1:void 0;t.addAndStepInto((0,i.i)(r))}},s={testLexicalNode:i.HY,visitLexicalNode:({lexicalNode:e,actions:t})=>{t.addAndStepInto("list",{ordered:"number"===e.getListType(),spread:!1})}};var a=n(98801);let u={testLexicalNode:i.Mz,visitLexicalNode:({lexicalNode:e,mdastParent:t,actions:n})=>{let r=e.getChildren(),l=r[0];if(1===r.length&&(0,i.HY)(l)){let r=t.children.at(-1);r?n.visitChildren(e,r):n.visitChildren(l,t)}else{let r=e.getParent(),i=n.appendToParent(t,{type:"listItem",checked:"check"===r.getListType()?!!e.getChecked():void 0,spread:!1,children:[]}),l=null;for(let t of e.getChildren())(0,a.kFe)(t)||(0,a.wH$)(t)||t.isInline()&&((0,a.ff4)(t)||(0,a.Cyw)(t))?(l||(l=n.appendToParent(i,{type:"paragraph",children:[]})),n.visit(t,l)):(l=null,n.visit(t,i))}}};var c=n(66934),d=n(75288),f=n(12115);function h({maxIndent:e}){let[t]=(0,c.DF)();return(0,f.useEffect)(()=>(0,d.Sd)(t.registerCommand(a.OXk,e=>{let n=(0,a.vJq)();if(!(0,a.I2P)(n))return!1;e.preventDefault();let r=!function(e){let t=e.getNodes();if((0,d.zD)(t,e=>(0,a.y68)(e)&&e.canIndent()?e:null).length>0)return!0;let n=e.anchor,r=e.focus,i=r.isBefore(n)?r:n,l=i.getNode(),o=(0,d.mB)(l);if(o.canIndent()){let e=o.getKey(),t=(0,a.uTE)();if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),(t=(0,a.CaD)(t)).anchor.is(i))return!0}return!1}(n)?a.YW5:e.shiftKey?a.sik:a.PiT;return t.dispatchCommand(r,void 0)},a.jZM),t.registerCommand(a.PiT,()=>{if(null==e)return!1;let t=(0,a.vJq)();return!!(0,a.I2P)(t)&&Math.max(...t.getNodes().map(e=>(0,d.mB)(e).getIndent()))+1>=e},a.da8)),[t,e]),null}function g(){let[e]=(0,c.DF)();return(0,f.useEffect)(()=>(0,i.GO)(e),[e]),null}function p({hasStrictIndent:e=!1}){let[t]=(0,c.DF)();return(0,f.useEffect)(()=>{if(!t.hasNodes([i.v5,i.YW]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),(0,f.useEffect)(()=>{if(e)return(0,i.Js)(t)},[t,e]),(0,f.useEffect)(()=>(0,i.cz)(t),[t]),null}var m=n(80861),y=n(12795),x=n(61259),_=n(11919);let v=new Map([["number",i.x],["bullet",i.q7],["check",i.mJ],["",i.uS]]),C=(0,x.fh)("",e=>{e.sub(e.pipe(r.cj,(0,x.EY)(r.Cp)),([t,n])=>{if(!t||!n)return;let r=t.anchor.getNode(),l="root"===r.getKey()?r:(0,d.Bt)(r,e=>{let t=e.getParent();return null!==t&&(0,a.IqF)(t)});null===l&&(l=r.getTopLevelElementOrThrow());let o=l.getKey();if(null!==n.getElementByKey(o))if((0,i.HY)(l)){let t=(0,d.eu)(r,i.v5),n=t?t.getListType():l.getListType();e.pub(C,n)}else e.pub(C,"")})}),b=(0,x.HN)(e=>{e.sub(e.pipe(b,(0,x.EY)(r.Cp)),([e,t])=>
1{null==t||t.dispatchCommand(v.get(e),void 0)})}),w=(0,_.Z)({init(e){var t;null==(t=e.getValue(r.u0))||t.registerCommand(a.PiT,()=>!function(e){let t=(0,a.vJq)();if(!(0,a.I2P)(t))return!1;let n=function(e){let t=e.getNodes();return new Set(0===t.length?[e.anchor.getNode().getParentOrThrow(),e.focus.getNode().getParentOrThrow()]:t.map(e=>(0,a.ff4)(e)?e:e.getParentOrThrow()))}(t),r=0;for(let e of n)if((0,i.HY)(e))r=Math.max((0,i.g2)(e)+1,r);else if((0,i.Mz)(e)){let t=e.getParent();if((null==t?void 0:t.getChildren().length)===1){let e=t.getParent();if((0,i.Mz)(e)&&1===e.getChildren().length)return!1}if(!(0,i.HY)(t))throw Error("ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.");r=Math.max((0,i.g2)(t)+1,r)}return r<=7}(7),a.da8),e.pubIn({[r.$0]:"lists",[r.C2]:(0,y.S)(),[r.cx]:(0,m.J)(),[r.R1]:[l,o],[r.q]:[i.YW,i.v5],[r.iI]:[s,u],[r.lN]:(0,y.P)(),[r.aC]:[h,p,g],[r.Id]:[h,p,g]})}})},33289:(e,t,n)=>{"use strict";n.d(t,{OO:()=>g,xO:()=>p});var r=n(27737),i=n(61259),l=n(98801),o=n(11919),s=n(13174),a=n(97503);let u={testLexicalNode:r.Pi,visitLexicalNode:({lexicalNode:e,actions:t})=>{let n=parseInt(e.getTag()[1],10);t.addAndStepInto("heading",{depth:n})}},c={testNode:"heading",visitNode:function({mdastNode:e,actions:t}){t.addAndStepInto((0,r.fi)(`h${e.depth}`))}},d=[48,49,50,51,52,53,54],f=[1,2,3,4,5,6],h={49:1,50:2,51:3,52:4,53:5,54:6},g=(0,i.fh)(f,e=>{e.pub(a.Jl,t=>t.registerCommand(l.R18,n=>{let{keyCode:i,ctrlKey:o,metaKey:u,altKey:c}=n;return!!(d.includes(i)&&(0,s.oQ)(u,o))&&!!c&&(n.preventDefault(),t.update(()=>{if(48===i)e.pub(a.vR,()=>(0,l.lJ7)());else{let t=e.getValue(g),n=h[i];t.includes(n)||e.pub(a.vR,()=>(0,r.fi)(`h${n}`))}}),!0)},l.AcJ))}),p=(0,o.Z)({init(e){e.pubIn({[a.$0]:"headings",[a.R1]:c,[a.q]:r.jL,[a.iI]:u})},update(e,t){e.pub(g,(null==t?void 0:t.allowedHeadingLevels)??f)}})},37796:(e,t,n)=>{"use strict";n.d(t,{d:()=>a});var r=n(12115),i=n(89859),l=n(70653),o=n(61259),s=n(97503);let a=()=>{let e=(0,o.qM)(l.NN),t=(0,o.X3)(s.yr),n=(0,s.Bd)();return r.createElement(i.gx,{"aria-label":n("toolbar.link","Create link"),title:n("toolbar.link","Create link"),onClick:t=>{e()}},t("link"))}},37849:(e,t,n)=>{"use strict";n(68381)},38993:(e,t,n)=>{"use strict";n.d(t,{OL:()=>a,eo:()=>u,kI:()=>c});var r=n(98801),i=n(64672),l=n(27737),o=n(86660),s=n(92270);function a(e){try{let t=e.anchor,n=e.focus,r=e.anchor.getNode(),i=e.focus.getNode();if(r===i)return r;if(e.isBackward())return(0,s.Nx)(n)?r:i;return(0,s.Nx)(t)?r:i}catch(e){return null}}function u(e){let t=(0,r.vJq)(),n=window.getSelection(),i=document.activeElement,l=e.getRootElement();if(null!==t&&null!==n&&null!==l&&l.contains(n.anchorNode)&&e.isEditable()){let e,t=n.getRangeAt(0);if(n.isCollapsed){let t=n.anchorNode;(null==t?void 0:t.nodeType)==3&&(t=t.parentNode),(e=t.getBoundingClientRect()).width=0}else if(n.anchorNode===l){let t=l;for(;null!=t.firstElementChild;)t=t.firstElementChild;e=t.getBoundingClientRect()}else e=t.getBoundingClientRect();return{top:Math.round(e.top),left:Math.round(e.left),width:Math.round(e.width),height:Math.round(e.height)}}return i&&i.className,null}function c(e,t){let n="";return e.getEditorState().read(()=>{let e=(0,r.vJq)();if(!e||!(0,r.I2P)(e)||e.isCollapsed())return;let t=e.getNodes();if(0===t.length)return;let s=new Set;t.forEach(e=>{let t=e;for(;t;){if((0,l.Pi)(t)||(0,o.Mz)(t)||"paragraph"===t.getType()||"quote"===t.getType()){(0,r.ff4)(t)&&s.add(t);break}t=t.getParent()}}),n=(s.size>0?Array.from(s):t).map(e=>(function e(t){if((0,l.Pi)(t)){let n=parseInt(t.getTag().replace("h","")),r=t.getChildren().map(t=>e(t)).join("");return"#".repeat(n)+" "+r+"\n\n"}if((0,o.Mz)(t)){let n=t.getParent();return(n&&(0,o.HY)(n)&&"number"===n.getListType()?"1. ":"- ")+t.getChildren().map(t=>e(t)).join("")+"\n"}if((0,o.HY)(t))return t.getChildren().map(t=>e(t)).join("")+"\n";if((0,r.kFe)(t)){let e=t.getTextContent(),n=t.getFormat();return 16&n?`\`${e}\``:(1&n&&(e=`**${e}**`),2&n&&(e=`*${e}*`),4&n&&(e=`~~${e}~~`),e)}if((0,i.FJ)(t)){let n=t.getURL(),r=t.getTitle(),i=t.getChildren().map(t=>e(t)).join("");return r?`[${i}](${n} "${r}")`:`[${i}](${n})`}else if((0,r.ff4)(t))return t.getChildren().map(t=>e(t)).join("");return t.getTextContent()})(e)).join("")}),n.trim()}},44615:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]])},45757:(e,t,n)=>{"use strict";n.d(t,{F7:()=>d});var r=n(11919),i=n(61259),l=n(12115),o=n(97503),s=n(89859);let a=(0,i.fh)(()=>null),u=(0,i.fh)(""),c=()=>"This is an empty toolbar. Pass `{toolbarContents: () => { return <>toolbar components</> }}` to the toolbarPlugin to customize it.",d=(0,r.Z)({init(e,t){let n=(null==t?void 0:t.toolbarPosition)==="bottom"?o.O2:o.IZ;e.pubIn({[a]:(null==t?void 0:t.toolbarContents)??c,[u]:(null==t?void 0:t.toolbarClassName)??"",[n]:()=>{let[e,t,n]=(0,i.uX)(a,o.pc,u);return l.createElement(s.bL,{className:n,readOnly:t},e())}})},update(e,t){e.pub(a,(null==t?void 0:t.toolbarContents)??c),e.pub(u,(null==t?void 0:t.toolbarClassName)??"")}})},61259:(e,t,n)=>{"use strict";let r;n.d(t,{EY:()=>w,HN:()=>p,LO:()=>x,Mx:()=>h,SQ:()=>k,Tj:()=>b,X3:()=>_,Zb:()=>y,fh:()=>g,pb:()=>T,qM:()=>C,rc:()=>m,uX:()=>v});var i=n(12115);n(95155);var l=Object.defineProperty,o=(e,t,n)=>((e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);class s{constructor(e=new Map){this.map=e}clone(){return new s(new Map(this.map))}increment(e){let t=this.map.get(e)??0;this.map.set(e,t+1)}
1decrement(e,t){let n=this.map.get(e);void 0!==n&&(n-=1,this.map.set(e,n),0===n&&t())}}class a{constructor(){o(this,"map",new Map)}getOrCreate(e){let t=this.map.get(e);return void 0===t&&(t=new Set,this.map.set(e,t)),t}get(e){return this.map.get(e)}use(e,t){let n=this.get(e);void 0!==n&&t(n)}delete(e){return this.map.delete(e)}}function u(){}let c="cell";function d(e,t){return e===t}let f=new Map;class h{constructor(e={}){for(let t of(o(this,"subscriptions",new a),o(this,"singletonSubscriptions",new Map),o(this,"graph",new a),o(this,"state",new Map),o(this,"distinctNodes",new Map),o(this,"executionMaps",new Map),o(this,"definitionRegistry",new Set),o(this,"combinedCells",[]),Object.getOwnPropertySymbols(e)))this.state.set(t,e[t])}cellInstance(e,t=!0,n=Symbol()){return this.state.has(n)||this.state.set(n,e),!1===t||this.distinctNodes.has(n)||this.distinctNodes.set(n,!0===t?d:t),n}signalInstance(e=!0,t=Symbol()){return!1!==e&&this.distinctNodes.set(t,!0===e?d:e),t}sub(e,t){this.register(e);let n=this.subscriptions.getOrCreate(e);return n.add(t),()=>n.delete(t)}singletonSub(e,t){return this.register(e),void 0===t?this.singletonSubscriptions.delete(e):this.singletonSubscriptions.set(e,t),()=>this.singletonSubscriptions.delete(e)}resetSingletonSubs(){this.singletonSubscriptions.clear()}subMultiple(e,t){let n=this.signalInstance();return this.connect({map:e=>(...t)=>{e(t)},sink:n,sources:e}),this.sub(n,t)}pubIn(e){var t;let n=Reflect.ownKeys(e),r=this.getExecutionMap(n),i=r.refCount.clone(),l=r.participatingNodes.slice(),o=new Map(this.state),s=e=>{this.graph.use(e,t=>{for(let{sources:n,sink:r}of t)n.has(e)&&i.decrement(r,()=>{l.splice(l.indexOf(r),1),s(r)})})};for(;;){let n=l.shift();if(void 0===n)break;let i=!1,a=e=>{let t=this.distinctNodes.get(n);if(null!=t&&t(o.get(n),e)){i=!1;return}i=!0,o.set(n,e),this.state.has(n)&&this.state.set(n,e)};if(Object.prototype.hasOwnProperty.call(e,n)?a(e[n]):r.projections.use(n,e=>{for(let t of e){let e=[...Array.from(t.sources),...Array.from(t.pulls)].map(e=>o.get(e));t.map(a)(...e)}}),i){let e=o.get(n);this.inContext(()=>{this.subscriptions.use(n,t=>{for(let n of t)n(e)})}),null==(t=this.singletonSubscriptions.get(n))||t(e)}else s(n)}}connect({sources:e,pulls:t=[],map:n,sink:r}){let i={map:n,pulls:new Set(t),sink:this.register(r),sources:new Set(e)};for(let n of[...e,...t])this.register(n),this.graph.getOrCreate(n).add(i);this.executionMaps.clear()}pub(e,t){this.pubIn({[e]:t})}pipe(e,...t){return this.combineOperators(...t)(e)}transformer(...e){return t=>{var n;let r;return n=this.signalInstance(),r=n,this.link(this.pipe(r,...e),t),n}}link(e,t){this.connect({map:e=>t=>{e(t)},sink:t,sources:[e]})}combine(...e){var t,n;return n=t=this.signalInstance(),this.connect({map:e=>(...t)=>{e(t)},sink:n,sources:e}),t}combineCells(...e){let t=this.combinedCells.find(t=>e.length===t.sources.length&&e.every((e,n)=>e===t.sources[n]));if(t)return t.cell;let n=this.cellInstance(e.map(e=>this.getValue(e)),!0);return this.connect({map:e=>(...t)=>{e(t)},sink:n,sources:e}),this.combinedCells.push({sources:e,cell:n}),n}getValue(e){return this.register(e),this.state.get(e)}getValues(e){return e.map(e=>this.getValue(e))}register(e){var t,n;let r=f.get(e);return void 0===r||this.definitionRegistry.has(e)?e:(this.definitionRegistry.add(e),n=t=r.type===c?this.cellInstance(r.initial,r.distinct,e):this.signalInstance(r.distinct,e),this.inContext(()=>{r.init(this,n)}),t)}inContext(e){let t=r;r=this;let n=e();return r=t,n}changeWith(e,t,n){this.connect({sources:[t],pulls:[e],sink:e,map:e=>(t,r)=>{e(n(r,t))}})}calculateExecutionMap(e){let t=[],n=new Set,r=new a,i=new s,l=new a,o=(e,s=0)=>{i.increment(e),n.has(e)||(this.register(e),r.use(e,e=>{s=Math.max(...Array.from(e).map(e=>t.indexOf(e)))+1}),this.graph.use(e,t=>{for(let n of t)n.sources.has(e)?(l.getOrCreate(n.sink).add(n),o(n.sink,s)):r.getOrCreate(n.sink).add(e)}),n.add(e),t.splice(s,0,e))};return e.forEach(o),{participatingNodes:t,pendingPulls:r,projections:l,refCount:i}}getExecutionMap(e){let t=e;if(1===e.length){t=e[0];let n=this.executionMaps.get(t);if(void 0!==n)return n}else for(let[t,n]of this.executionMaps.entries())if(Array.isArray(t)&&t.length===e.length&&t.every(t=>e.includes(t)))return n;let n=this.calculateExecutionMap(e);return this.executionMaps.set(t,n),n}combineOperators(...e){return t=>{for(let n of e)t=n(t,this);return t}}}function g(e,t=u,n=!0){var r,i;return i=r=Symbol(),f.set(i,{type:c,distinct:n,initial:e,init:t}),r}function p(e=u,t=!1){var n,r;return r=n=Symbol(),f.set(r,{type:"signal",distinct:t,init:e}),n}function m(e=u){var t,n;return n=t=Symbol(),f.set(n,{type:"signal",distinct:!1,init:e}),t}let y=i.createContext(null);function x(){let e=i.useContext(y);if(null===e)throw Error("useRealm must be used within a RealmContextProvider");return e}function _(e){let t=x();t.register(e);let n=i.useCallback(n=>t.sub(e,n),[t,e]);return i.useSyncExternalStore(n,()=>t.getValue(e),()=>t.getValue(e))}function v(...e){let t=x();return _(i.useMemo(()=>t.combineCells.apply(t,e),[t,...e]))}function C(e){let t=x();return t.register(e),i.useCallback(n=>{t.pub(e,n)},[t,e])}function b(e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:t=>n=>{t(e(n))},sink:r,sources:[t]}),r}}function w(...e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:e=>(...t)=>{e(t)},pulls:e,sink:r,sources:[t]}),r}}function T(e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:t=>n=>{e(n)&&t(n)},sink:r,sources:[t]}),r}}function k(e,t){return(n,r)=>{let i=r.signalInstance();return r.connect({map:n=>r=>{n(t=e(t,r))},sink:i,sources:[n]}),i}}}
1,64672:(e,t,n)=>{"use strict";n.d(t,{Db:()=>o,FJ:()=>u,Yh:()=>d,hx:()=>p,iK:()=>f,k_:()=>c,yW:()=>h,zA:()=>a});var r=n(75288),i=n(98801);let l=new Set(["http:","https:","mailto:","sms:","tel:"]);class o extends i.fGB{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 this.updateLinkDOM(null,t,e),(0,r.ZB)(t,e.theme.link),t}updateLinkDOM(e,t,n){if((0,i.nYP)(t))for(let n of(e&&e.__url===this.__url||(t.href=this.sanitizeUrl(this.__url)),["target","rel","title"])){let r=`__${n}`,i=this[r];e&&e[r]===i||(i?t[n]=i:t.removeAttribute(n))}}updateDOM(e,t,n){return this.updateLinkDOM(e,t,n),!1}static importDOM(){return{a:e=>({conversion:s,priority:1})}}static importJSON(e){return a().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=x(e);try{let t=new URL(x(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(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){let t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){let t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){let t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){let t=this.getWritable();return t.__title=e,t}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.I2P)(t))return!1;let r=t.anchor.getNode(),l=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(l)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function s(e){let t=null;if((0,i.nYP)(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.pTq)(new o(e,t))}function u(e){return e instanceof o}class c 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 c(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){return d().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){let n=this.getParentOrThrow().insertNewAfter(e,t);if((0,i.ff4)(n)){let e=d(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return n.append(e),e}return null}}function d(e="",t){return(0,i.pTq)(new c(e,t))}function f(e){return e instanceof c}let h=(0,i.guI)("TOGGLE_LINK_COMMAND");function g(e,t){if("element"===e.type){let n=e.getNode();return(0,i.ff4)(n)||function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",252),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${252}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(252),n.getChildren()[e.offset+t]||null}return null}function p(e,t={}){let{target:n,title:l}=t,o=void 0===t.rel?"noreferrer":t.rel,s=(0,i.vJq)();if(null===s||!(0,i.I2P)(s)&&!(0,i.RTZ)(s))return;if((0,i.RTZ)(s)){let t=s.getNodes();if(0===t.length)return;return void t.forEach(t=>{if(null===e){let e=(0,r.Bt)(t,e=>!f(e)&&u(e));e&&(e.insertBefore(t),0===e.getChildren().length&&e.remove())}else{let i=(0,r.Bt)(t,e=>!f(e)&&u(e));if(i)i.setURL(e),void 0!==n&&i.setTarget(n),void 0!==o&&i.setRel(o);else{let r=a(e,{rel:o,target:n});t.insertBefore(r),r.append(t)}}})}let c=s.extract();
1if(null===e)return void c.forEach(e=>{let t=(0,r.Bt)(e,e=>!f(e)&&u(e));if(t){let e=t.getChildren();for(let n=0;n<e.length;n++)t.insertBefore(e[n]);t.remove()}});let d=new Set,h=t=>{d.has(t.getKey())||(d.add(t.getKey()),t.setURL(e),void 0!==n&&t.setTarget(n),void 0!==o&&t.setRel(o),void 0!==l&&t.setTitle(l))};if(1===c.length){let e=m(c[0],u);if(null!==e)return h(e)}!function(e){let t=(0,i.vJq)();if(!(0,i.I2P)(t))return e();let n=(0,i.CaD)(t),r=n.isBackward(),l=g(n.anchor,r?-1:0),o=g(n.focus,r?0:-1);if(e(),l||o){let e=(0,i.vJq)();if((0,i.I2P)(e)){let t=e.clone();if(l){let e=l.getParent();e&&t.anchor.set(e.getKey(),l.getIndexWithinParent()+ +!!r,"element")}if(o){let e=o.getParent();e&&t.focus.set(e.getKey(),o.getIndexWithinParent()+ +!r,"element")}(0,i.n1P)((0,i.CaD)(t))}}}(()=>{let t=null;for(let r of c){if(!r.isAttached())continue;let s=m(r,u);if(s){h(s);continue}if((0,i.ff4)(r)){if(!r.isInline())continue;if(u(r)){if(!(f(r)||null!==t&&t.getParentOrThrow().isParentOf(r))){h(r),t=r;continue}for(let e of r.getChildren())r.insertBefore(e);r.remove();continue}}let c=r.getPreviousSibling();u(c)&&c.is(t)?c.append(r):(t=a(e,{rel:o,target:n,title:l}),r.insertAfter(t),t.append(r))}})}function m(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}let y=/^\+?[0-9\s()-]{5,}$/;function x(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:y.test(e)?`tel:${e}`:`https://${e}`}},65333:(e,t,n)=>{"use strict";n.d(t,{I:()=>u});var r=n(47520),i=n(85203),l=n(12115),o=n(74898),s=n(61259),a=n(97503);let u=l.forwardRef(({title:e,children:t},n)=>{let u=(0,s.X3)(a.xZ);return l.createElement(r.Kq,{delayDuration:100},l.createElement(r.bL,null,l.createElement(r.l9,{ref:n,asChild:!0},l.createElement("span",{className:o.Ay.tooltipTrigger},t)),l.createElement(r.ZL,{container:null==u?void 0:u.current},l.createElement(r.UC,{className:i(o.Ay.tooltipContent),sideOffset:10},e))))})},66934:(e,t,n)=>{"use strict";n.d(t,{DF:()=>o,Gu:()=>i,Mx:()=>l});var r=n(12115);let i=(0,r.createContext)(null);function l(e,t){let n=null;return null!=e&&(n=e[1]),{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}}function o(){let e=(0,r.useContext)(i);return null==e&&function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",8),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${8}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),e}},67048:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]])},68381:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,l=60108,o=60114,s=60109,a=60110,u=60112,c=60113,d=60120,f=60115,h=60116;if("function"==typeof Symbol&&Symbol.for){var g=Symbol.for;n=g("react.element"),r=g("react.portal"),i=g("react.fragment"),l=g("react.strict_mode"),o=g("react.profiler"),s=g("react.provider"),a=g("react.context"),u=g("react.forward_ref"),c=g("react.suspense"),d=g("react.suspense_list"),f=g("react.memo"),h=g("react.lazy"),g("react.block"),g("react.server.block"),g("react.fundamental"),g("react.debug_trace_mode"),g("react.legacy_hidden")}},70062:(e,t,n)=>{"use strict";n.d(t,{G:()=>a});var r=n(27737);let i={testNode:"blockquote",visitNode({actions:e}){e.addAndStepInto((0,r.xi)())}},l={testLexicalNode:r.jd,visitLexicalNode:({lexicalNode:e,mdastParent:t,actions:n})=>{let r={type:"paragraph",children:[]};n.appendToParent(t,{type:"blockquote",children:[r]}),n.visitChildren(e,r)}};var o=n(11919),s=n(97503);let a=(0,o.Z)({init(e){e.pubIn({[s.$0]:"quote",[s.R1]:i,[s.q]:r.dJ,[
1s.iI]:l})}})},70653:(e,t,n)=>{"use strict";n.d(t,{py:()=>eN,A:()=>eL,Mi:()=>eV,_5:()=>eE,zr:()=>eP,WK:()=>ek,NN:()=>eA,XI:()=>eI,sm:()=>eD,_F:()=>eM,uQ:()=>eS});var r=n(64672),i=n(61259),l=n(98801),o=n(11919),s=n(13174),a=n(38993),u=n(97503),c=n(82286),d=n(47520),f=n(12115),h=n(67810),g=n(88945),p=n(12758),m=n.n(p);n(37849);let y=e=>"object"==typeof e&&null!=e&&1===e.nodeType,x=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,_=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return x(n.overflowY,t)||x(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},v=(e,t,n,r,i,l,o,s)=>l<e&&o>t||l>e&&o<t?0:l<=e&&s<=n||o>=t&&s>=n?l-e-r:o>t&&s<n||l<e&&s>n?o-t+i:0,C=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t};var b=n(71450),w=0;function T(){}function k(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function E(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,l=Array(i),o=0;o<i;o++)l[o]=arguments[o];r(),n=setTimeout(function(){n=null,e.apply(void 0,l)},t)}return i.cancel=r,i}function S(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some(function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault})}}function N(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(function(t){"function"==typeof t?t(e):t&&(t.current=e)})}}function M(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=void 0!==t[r]?t[r]:e[r],n},{})}function I(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function A(e,t,n,r,i){if(void 0===i&&(i=!0),0===n)return -1;var l=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:l+1);var o=t+e;o<0?o=i?l:0:o>l&&(o=i?0:l);var s=L(e,o,n,r,i);return -1===s?t>=n?-1:t:s}function L(e,t,n,r,i){var l=r(t);if(!l||!l.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o<n;o++)if(!r(o).hasAttribute("disabled"))return o}else for(var s=t-1;s>=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?L(1,0,n,r,!1):L(-1,n-1,n,r,!1):-1}function P(e,t,n,r){return void 0===r&&(r=!0),t.some(function(t){return t&&(k(t,e,n)||r&&k(t,n.document.activeElement,n))})}var O=E(function(e){D(e).textContent=""},500);function F(e,t){var n=D(t);e&&(n.textContent=e,O(t))}function D(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t)),t}var V=["isInitialMount","highlightedIndex","items","environment"],H={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""},R=E(function(e,t){F(e(),t)},200),J="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?f.useLayoutEffect:f.useEffect;function B(e){var t=e.id,n=void 0===t?"downshift-"+String(w++):t,r=e.labelId,i=e.menuId,l=e.getItemId,o=e.toggleButtonId,s=e.inputId;return(0,f.useRef)({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:l||function(e){return n+"-item-"+e},toggleButtonId:o||n+"-toggle-button",inputId:s||n+"-input"}).current}function j(e,t,n,r){var i,l;if(void 0===e){if(void 0===t)throw Error(r);i=n[t],l=t}else l=void 0===t?n.indexOf(e):t,i=e;return[i,l]}function K(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function z(e){var t=(0,f.useRef)(e);return t.current=e,t}function Z(e,t,n){var r=(0,f.useRef)(),i=(0,f.useRef)(),l=(0,f.useCallback)(function(t,n){i.current=n;var r=e(t=M(t,n.props),n);return n.props.stateReducer(t,(0,g.A)({},n,{changes:r}))},[e]),o=(0,f.useReducer)(l,t),s=o[0],a=o[1],u=z(n),c=(0,f.useCallback)(function(e){return a((0,g.A)({props:u.current},e))},[u]),d=i.current;return(0,f.useEffect)(function(){var e,t,n,i;d&&r.current&&r.current!==s&&(e=M(r.current,d.props),t=d.props,n=d.type,i={},Object.keys(e).forEach(function(t){var n,r,l,o,a,u,c;n=t,r=d,l=e,o=s,a=r.props,u=r.type,a[c="on"+K(n)+"Change"]&&void 0!==o[n]&&o[n]!==l[n]&&a[c]((0,g.A)({type:u},o)),s[t]!==e[t]&&(i[t]=s[t])}),t.onStateChange&&Object.keys(i).length&&t.onStateChange((0,g.A)({type:n},i))),r.current=s},[s,n,d]),[s,c]}var W={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:function(e,t){e&&((e,t)=>{var n,r,i,l,o,s;if("undefined"==typeof document)return[];
1let{scrollMode:a,block:u,inline:c,boundary:d,skipOverflowHiddenElements:f}=t,h="function"==typeof d?d:e=>e!==d;if(!y(e))throw TypeError("Invalid target");let g=document.scrollingElement||document.documentElement,p=[],m=e;for(;y(m)&&h(m);){if((m=C(m))===g){p.push(m);break}null!=m&&m===document.body&&_(m)&&!_(document.documentElement)||null!=m&&_(m,f)&&p.push(m)}let x=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,b=null!=(l=null==(i=window.visualViewport)?void 0:i.height)?l:innerHeight,w=null!=(o=window.scrollX)?o:pageXOffset,T=null!=(s=window.scrollY)?s:pageYOffset,{height:k,width:E,top:S,right:N,bottom:M,left:I}=e.getBoundingClientRect(),A="start"===u||"nearest"===u?S:"end"===u?M:S+k/2,L="center"===c?I+E/2:"end"===c?N:I,P=[];for(let e=0;e<p.length;e++){let t=p[e],{height:n,width:r,top:i,right:l,bottom:o,left:s}=t.getBoundingClientRect();if("if-needed"===a&&S>=0&&I>=0&&M<=b&&N<=x&&S>=i&&M<=o&&I>=s&&N<=l)break;let d=getComputedStyle(t),f=parseInt(d.borderLeftWidth,10),h=parseInt(d.borderTopWidth,10),m=parseInt(d.borderRightWidth,10),y=parseInt(d.borderBottomWidth,10),_=0,C=0,O="offsetWidth"in t?t.offsetWidth-t.clientWidth-f-m:0,F="offsetHeight"in t?t.offsetHeight-t.clientHeight-h-y:0,D="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,V="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(g===t)_="start"===u?A:"end"===u?A-b:"nearest"===u?v(T,T+b,b,h,y,T+A,T+A+k,k):A-b/2,C="start"===c?L:"center"===c?L-x/2:"end"===c?L-x:v(w,w+x,x,f,m,w+L,w+L+E,E),_=Math.max(0,_+T),C=Math.max(0,C+w);else{_="start"===u?A-i-h:"end"===u?A-o+y+F:"nearest"===u?v(i,o,n,h,y+F,A,A+k,k):A-(i+n/2)+F/2,C="start"===c?L-s-f:"center"===c?L-(s+r/2)+O/2:"end"===c?L-l+m+O:v(s,l,r,f,m+O,L,L+E,E);let{scrollLeft:e,scrollTop:a}=t;_=Math.max(0,Math.min(a+_/V,t.scrollHeight-n/V+F)),C=Math.max(0,Math.min(e+C/D,t.scrollWidth-r/D+O)),A+=a-_,L+=e-C}P.push({el:t,top:_,left:C})}return P})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}
1).forEach(function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r})},environment:"undefined"==typeof window?{}:window};function U(e,t,n){void 0===n&&(n=H);var r=e["default"+K(t)];return void 0!==r?r:n[t]}function q(e,t,n){void 0===n&&(n=H);var r=e[t];if(void 0!==r)return r;var i=e["initial"+K(t)];return void 0!==i?i:U(e,t,n)}function $(e){var t=q(e,"selectedItem"),n=q(e,"isOpen"),r=q(e,"highlightedIndex"),i=q(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function G(e,t,n){var r=e.items,i=e.initialHighlightedIndex,l=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return 0===r.length?-1:void 0!==i&&s===i?i:void 0!==l?l:o?r.indexOf(o):0===n?-1:n<0?r.length-1:0}function Y(e,t,n,r){var i=(0,f.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,f.useEffect)(function(){if((null==n?void 0:n.addEventListener)!=null){var l=function(){i.current.isMouseDown=!0},o=function(l){i.current.isMouseDown=!1,e&&!P(l.target,t.map(function(e){return e.current}),n)&&r()},s=function(){i.current.isTouchMove=!1},a=function(){i.current.isTouchMove=!0},u=function(l){!e||i.current.isTouchMove||P(l.target,t.map(function(e){return e.current}),n,!1)||r()};return n.addEventListener("mousedown",l),n.addEventListener("mouseup",o),n.addEventListener("touchstart",s),n.addEventListener("touchmove",a),n.addEventListener("touchend",u),function(){n.removeEventListener("mousedown",l),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",a),n.removeEventListener("touchend",u)}}},[e,n]),i}var X=function(){return T};function Q(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,l=n.items,o=n.environment,s=(0,h.A)(n,V);(0,f.useEffect)(function(){r||R(function(){return e((0,g.A)({highlightedIndex:i,highlightedItem:l[i],resultCount:l.length},s))},o.document)},t)}function ee(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,l=e.menuElement,o=e.scrollIntoView,s=(0,f.useRef)(!0);return J(function(){!(t<0)&&n&&Object.keys(r.current).length&&(!1===s.current?s.current=!0:o(i(t),l))},[t]),s}function et(e,t,n){void 0===n&&(n=!0);var r,i=(null==(r=e.items)?void 0:r.length)&&t>=0;return(0,g.A)({isOpen:!1,highlightedIndex:-1},i&&(0,g.A)({selectedItem:e.items[t],isOpen:U(e,"isOpen"),highlightedIndex:U(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function en(e,t,n){var r,i=t.type,l=t.props;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:G(l,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:G(l,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:U(l,"highlightedIndex"),isOpen:U(l,"isOpen"),selectedItem:U(l,"selectedItem"),inputValue:U(l,"inputValue")};break;default:throw Error("Reducer called without proper action type.")}return(0,g.A)({},e,r)}m().array.isRequired,m().func,m().func,m().func,m().number,m().number,m().number,m().bool,m().bool,m().bool,m().any,m().any,m().any,m().string,m().string,m().string,m().func,m().string,m().func,m().func,m().func,m().func,m().func,m().shape({addEventListener:m().func,removeEventListener:m().func,document:m().shape({getElementById:m().func,activeElement:m().any,body:m().any})});var er=(0,b.__assign)((0,b.__assign)({},W),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}}),ei=Object.freeze({__proto__:null,ToggleButtonClick:0,ToggleButtonKeyDownArrowDown:1,ToggleButtonKeyDownArrowUp:2,ToggleButtonKeyDownCharacter:3,ToggleButtonKeyDownEscape:4,ToggleButtonKeyDown
1Home:5,ToggleButtonKeyDownEnd:6,ToggleButtonKeyDownEnter:7,ToggleButtonKeyDownSpaceButton:8,ToggleButtonKeyDownPageUp:9,ToggleButtonKeyDownPageDown:10,ToggleButtonBlur:11,MenuMouseLeave:12,ItemMouseMove:13,ItemClick:14,FunctionToggleMenu:15,FunctionOpenMenu:16,FunctionCloseMenu:17,FunctionSetHighlightedIndex:18,FunctionSelectItem:19,FunctionSetInputValue:20,FunctionReset:21});var el=Object.freeze({__proto__:null,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownEnd:4,InputKeyDownPageUp:5,InputKeyDownPageDown:6,InputKeyDownEnter:7,InputChange:8,InputBlur:9,InputFocus:10,MenuMouseLeave:11,ItemMouseMove:12,ItemClick:13,ToggleButtonClick:14,FunctionToggleMenu:15,FunctionOpenMenu:16,FunctionCloseMenu:17,FunctionSetHighlightedIndex:18,FunctionSelectItem:19,FunctionSetInputValue:20,FunctionReset:21,ControlledPropUpdatedSelectedItem:22});m().array.isRequired,m().func,m().func,m().func,m().func,m().number,m().number,m().number,m().bool,m().bool,m().bool,m().any,m().any,m().any,m().string,m().string,m().string,m().string,m().string,m().string,m().func,m().string,m().string,m().func,m().func,m().func,m().func,m().func,m().func,m().shape({addEventListener:m().func,removeEventListener:m().func,document:m().shape({getElementById:m().func,activeElement:m().any,body:m().any})});var eo=(0,g.A)({},W,{selectedItemChanged:function(e,t){return e!==t},getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}});function es(e,t){var n,r,i=t.type,l=t.props,o=t.altKey;switch(i){case 13:r={isOpen:U(l,"isOpen"),highlightedIndex:U(l,"highlightedIndex"),selectedItem:l.items[t.index],inputValue:l.itemToString(l.items[t.index])};break;case 0:r=e.isOpen?{highlightedIndex:A(1,e.highlightedIndex,l.items.length,t.getItemNodeFromIndex,!0)}:{highlightedIndex:o&&null==e.selectedItem?-1:G(l,e,1,t.getItemNodeFromIndex),isOpen:l.items.length>=0};break;case 1:r=e.isOpen?o?et(l,e.highlightedIndex):{highlightedIndex:A(-1,e.highlightedIndex,l.items.length,t.getItemNodeFromIndex,!0)}:{highlightedIndex:G(l,e,-1,t.getItemNodeFromIndex),isOpen:l.items.length>=0};break;case 7:r=et(l,e.highlightedIndex);break;case 2:r=(0,g.A)({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case 5:r={highlightedIndex:A(-10,e.highlightedIndex,l.items.length,t.getItemNodeFromIndex,!1)};break;case 6:r={highlightedIndex:A(10,e.highlightedIndex,l.items.length,t.getItemNodeFromIndex,!1)};break;case 3:r={highlightedIndex:L(1,0,l.items.length,t.getItemNodeFromIndex,!1)};break;case 4:r={highlightedIndex:L(-1,l.items.length-1,l.items.length,t.getItemNodeFromIndex,!1)};break;case 9:r=(0,g.A)({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=l.items)?void 0:n.length)&&t.selectItem&&{selectedItem:l.items[e.highlightedIndex],inputValue:l.itemToString(l.items[e.highlightedIndex])});break;case 8:r={isOpen:!0,highlightedIndex:U(l,"highlightedIndex"),inputValue:t.inputValue};break;case 10:r={isOpen:!0,highlightedIndex:G(l,e,0)};break;case 19:r={selectedItem:t.selectedItem,inputValue:l.itemToString(t.selectedItem)};break;case 22:r={inputValue:t.inputValue};break;default:return en(e,t,el)}return(0,g.A)({},e,r)}var ea=["onMouseLeave","refKey","ref"],eu=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],ec=["onClick","onPress","refKey","ref"],ed=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];function ef(e){void 0===e&&(e={});var t,n,r,i,l,o,s,a=(0,g.A)({},eo,e),u=a.initialIsOpen,c=a.defaultIsOpen,d=a.items,p=a.scrollIntoView,m=a.environment,y=a.getA11yStatusMessage,x=a.getA11ySelectionMessage,_=a.itemToString,v=(n=(t=$(a)).selectedItem,""===(r=t.inputValue)&&n&&void 0===a.defaultInputValue&&void 0===a.initialInputValue&&void 0===a.inputValue&&(r=a.itemToString(n)),(0,g.A)({},t,{inputValue:r})),C=(i=(0,f.useRef)(),o=(l=Z(es,v,a))[0],s=l[1],(0,f.useEffect)(function(){void 0!==a.selectedItem&&(a.selectedItemChanged(i.current,a.selectedItem)&&s({type:22,inputValue:a.itemToString(a.selectedItem)}),i.current=o.selectedItem===i.current?a.selectedItem:o.selectedItem)},[o.selectedItem,a.selectedItem]),[M(o,a),s]),b=C[0],w=C[1],T=b.isOpen,k=b.highlightedIndex,E=b.selectedItem,A=b.inputValue,L=(0,f.useRef)(null),P=(0,f.useRef)({}),O=(0,f.useRef)(null),F=(0,f.useRef)(null),D=(0,f.useRef)(!0),V=B(a),H=(0,f.useRef)(),R=z({state:b,props:a}),J=(0,f.useCallback)(function(e){return P.current[V.getItemId(e)]},[V]);Q(y,[T,k,A,d],(0,g.A)({isInitialMount:D.current,previousResultCount:H.current,items:d,environment:m,itemToString:_},b)),Q(x,[E],(0,g.A)({isInitialMount:D.current,previousResultCount:H.current,items:d,environment:m,itemToString:_},b));var K=ee({menuElement:L.current,highlightedIndex:k,isOpen:T,itemRefs:P,scrollIntoView:p,getItemNodeFromIndex:J});D.current,(0,f.useEffect)(function(){(u||c||T)&&O.current&&O.current.focus()},[]),(0,f.useEffect)(function(){D.current||(H.current=d.length)});var W=Y(T,[O,L,F],m,function(){w({type:9,selectItem:!1})}),U=X("getInputProps","getMenuProps");(0,f.useEffect)(function(){return D.current=!1,function(){D.current=!0}},[]),(0,f.useEffect)(function(){var e,t;T?(null==(e=m.document)?void 0:e.activeElement)!==O.current&&(null==O||null==(t=O.current)||t.focu
1s()):P.current={}},[T,m]);var q=(0,f.useMemo)(function(){return{ArrowDown:function(e){e.preventDefault(),w({type:0,altKey:e.altKey,getItemNodeFromIndex:J})},ArrowUp:function(e){e.preventDefault(),w({type:1,altKey:e.altKey,getItemNodeFromIndex:J})},Home:function(e){R.current.state.isOpen&&(e.preventDefault(),w({type:3,getItemNodeFromIndex:J}))},End:function(e){R.current.state.isOpen&&(e.preventDefault(),w({type:4,getItemNodeFromIndex:J}))},Escape:function(e){var t=R.current.state;(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1)&&(e.preventDefault(),w({type:2}))},Enter:function(e){R.current.state.isOpen&&229!==e.which&&(e.preventDefault(),w({type:7,getItemNodeFromIndex:J}))},PageUp:function(e){R.current.state.isOpen&&(e.preventDefault(),w({type:5,getItemNodeFromIndex:J}))},PageDown:function(e){R.current.state.isOpen&&(e.preventDefault(),w({type:6,getItemNodeFromIndex:J}))}}},[w,R,J]),G=(0,f.useCallback)(function(e){return(0,g.A)({id:V.labelId,htmlFor:V.inputId},e)},[V]),et=(0,f.useCallback)(function(e,t){var n,r=void 0===e?{}:e,i=r.onMouseLeave,l=r.refKey,o=void 0===l?"ref":l,s=r.ref,a=(0,h.A)(r,ea),u=(void 0===t?{}:t).suppressRefError;return U("getMenuProps",void 0!==u&&u,o,L),(0,g.A)(((n={})[o]=N(s,function(e){L.current=e}),n.id=V.menuId,n.role="listbox",n["aria-labelledby"]=a&&a["aria-label"]?void 0:""+V.labelId,n.onMouseLeave=S(i,function(){w({type:11})}),n),a)},[w,U,V]),en=(0,f.useCallback)(function(e){var t,n,r=void 0===e?{}:e,i=r.item,l=r.index,o=r.refKey,s=r.ref,a=r.onMouseMove,u=r.onMouseDown,c=r.onClick;r.onPress;var d=r.disabled,f=(0,h.A)(r,eu),p=R.current,m=p.props,y=p.state,x=j(i,l,m.items,"Pass either item or index to getItemProps!")[1];return(0,g.A)(((t={})[void 0===o?"ref":o]=N(s,function(e){e&&(P.current[V.getItemId(x)]=e)}),t.disabled=d,t.role="option",t["aria-selected"]=""+(x===y.highlightedIndex),t.id=V.getItemId(x),t),!d&&((n={}).onClick=S(c,function(){w({type:13,index:x})}),n),{onMouseMove:S(a,function(){x!==y.highlightedIndex&&(K.current=!1,w({type:12,index:x,disabled:d}))}),onMouseDown:S(u,function(e){return e.preventDefault()})},f)},[w,R,K,V]),er=(0,f.useCallback)(function(e){var t,n=void 0===e?{}:e,r=n.onClick;n.onPress;var i=n.refKey,l=n.ref,o=(0,h.A)(n,ec),s=R.current.state;return(0,g.A)(((t={})[void 0===i?"ref":i]=N(l,function(e){F.current=e}),t["aria-controls"]=V.menuId,t["aria-expanded"]=s.isOpen,t.id=V.toggleButtonId,t.tabIndex=-1,t),!o.disabled&&(0,g.A)({},{onClick:S(r,function(){w({type:14})})}),o)},[w,R,V]),ei=(0,f.useCallback)(function(e,t){var n,r,i=void 0===e?{}:e,l=i.onKeyDown,o=i.onChange,s=i.onInput,a=i.onFocus,u=i.onBlur;i.onChangeText;var c=i.refKey,d=void 0===c?"ref":c,f=i.ref,p=(0,h.A)(i,ed),y=(void 0===t?{}:t).suppressRefError;U("getInputProps",void 0!==y&&y,d,O);var x=R.current.state,_={};return p.disabled||((r={}).onChange=S(o,s,function(e){w({type:8,inputValue:e.target.value})}),r.onKeyDown=S(l,function(e){var t=I(e);t&&q[t]&&q[t](e)}),r.onBlur=S(u,function(e){x.isOpen&&!W.current.isMouseDown&&w({type:9,selectItem:null!==e.relatedTarget||m.document.activeElement===m.document.body})}),r.onFocus=S(a,function(){x.isOpen||w({type:10})}),_=r),(0,g.A)(((n={})[d]=N(f,function(e){O.current=e}),n["aria-activedescendant"]=x.isOpen&&x.highlightedIndex>-1?V.getItemId(x.highlightedIndex):"",n["aria-autocomplete"]="list",n["aria-controls"]=V.menuId,n["aria-expanded"]=x.isOpen,n["aria-labelledby"]=p&&p["aria-label"]?void 0:""+V.labelId,n.autoComplete="off",n.id=V.inputId,n.role="combobox",n.value=x.inputValue,n),_,p)},[U,R,V,q,w,W,m]),el=(0,f.useCallback)(function(){w({type:15})},[w]),ef=(0,f.useCallback)(function(){w({type:17})},[w]),eh=(0,f.useCallback)(function(){w({type:16})},[w]),eg=(0,f.useCallback)(function(e){w({type:18,highlightedIndex:e})},[w]),ep=(0,f.useCallback)(function(e){w({type:19,selectedItem:e})},[w]);return{getItemProps:en,getLabelProps:G,getMenuProps:et,getInputProps:ei,getToggleButtonProps:er,toggleMenu:el,openMenu:eh,closeMenu:ef,setHighlightedIndex:eg,setInputValue:(0,f.useCallback)(function(e){w({type:20,inputValue:e})},[w]),selectItem:ep,reset:(0,f.useCallback)(function(){w({type:21})},[w]),highlightedIndex:k,isOpen:T,selectedItem:E,inputValue:A}}ef.stateChangeTypes=el;m().array,m().array,m().array,m().func,m().func,m().func,m().number,m().number,m().number,m().func,m().func,m().str
1ing,m().string,m().shape({addEventListener:m().func,removeEventListener:m().func,document:m().shape({getElementById:m().func,activeElement:m().any,body:m().any})});var eh={itemToString:W.itemToString,stateReducer:W.stateReducer,environment:W.environment,getA11yRemovalMessage:function(e){var t=e.removedSelectedItem;return(0,e.itemToString)(t)+" has been removed."},keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},eg=Object.freeze({__proto__:null,SelectedItemClick:0,SelectedItemKeyDownDelete:1,SelectedItemKeyDownBackspace:2,SelectedItemKeyDownNavigationNext:3,SelectedItemKeyDownNavigationPrevious:4,DropdownKeyDownNavigationPrevious:5,DropdownKeyDownBackspace:6,DropdownClick:7,FunctionAddSelectedItem:8,FunctionRemoveSelectedItem:9,FunctionSetSelectedItems:10,FunctionSetActiveIndex:11,FunctionReset:12});var ep=n(22544),em=n(74898);let ey=e=>e.suggestions.length>0?f.createElement(ex,{...e}):f.createElement("input",{className:em.Ay.textInput,size:40,autoFocus:!0,...e.register(e.inputName)}),ex=({autofocus:e,suggestions:t,control:n,inputName:r,placeholder:l,initialInputValue:o,setValue:s})=>{let[a,c]=f.useState(t.slice(0,20)),d=(0,i.X3)(u.yr),h=t.length>0,{isOpen:g,getToggleButtonProps:p,getMenuProps:m,getInputProps:y,highlightedIndex:x,getItemProps:_,selectedItem:v}=ef({initialInputValue:o,onInputValueChange({inputValue:e=""}){s(r,e),e=e.toLowerCase()||"";let n=[];for(let r of t)if(r.toLowerCase().includes(e)&&(n.push(r),n.length>=20))break;c(n)},items:a,itemToString:e=>e??""}),C=g&&a.length>0;return f.createElement("div",{className:em.Ay.downshiftAutocompleteContainer},f.createElement("div",{"data-visible-dropdown":C,className:em.Ay.downshiftInputWrapper},f.createElement(ep.xI,{name:r,control:n,render:({field:t})=>{let n=y();return f.createElement("input",{...n,name:t.name,placeholder:l,className:em.Ay.downshiftInput,size:30,"data-editor-dialog":!0,autoFocus:e})}}),h&&f.createElement("button",{"aria-label":"toggle menu",type:"button",...p()},d("arrow_drop_down"))),f.createElement("div",{className:em.Ay.downshiftAutocompleteContainer},f.createElement("ul",{...m(),"data-visible":C},a.map((e,t)=>f.createElement("li",{"data-selected":v===e,"data-highlighted":x===t,key:`${e}${t}`,..._({item:e,index:t})},e)))))};var e_=n(85203);function ev({url:e,title:t,text:n,onSubmit:r,onCancel:i,linkAutocompleteSuggestions:l,showLinkTitleField:o,showAnchorTextField:s}){let{register:a,handleSubmit:c,control:d,setValue:h,reset:g}=(0,ep.mN)({values:{url:e,title:t,text:n}}),p=(0,u.Bd)();return f.createElement("form",{onSubmit:e=>{c(r)(e),e.stopPropagation(),e.preventDefault()},onReset:e=>{e.stopPropagation(),i()},onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),i())},className:e_(em.Ay.multiFieldForm,em.Ay.linkDialogEditForm)},f.createElement("div",{className:em.Ay.formField}
1,f.createElement("label",{htmlFor:"link-url"},p("createLink.url","URL")),f.createElement(ey,{register:a,initialInputValue:e,inputName:"url",suggestions:l,setValue:h,control:d,placeholder:p("createLink.urlPlaceholder","Select or paste an URL"),autofocus:!0})),s?f.createElement("div",{className:em.Ay.formField},f.createElement("label",{htmlFor:"link-text",title:p("createLink.textTooltip","The text to be displayed for the link")},p("createLink.text","Anchor text")),f.createElement("input",{id:"link-text",className:em.Ay.textInput,size:40,...a("text")})):null,o?f.createElement("div",{className:em.Ay.formField},f.createElement("label",{htmlFor:"link-title",title:p("createLink.titleTooltip","The link's title attribute, shown on hover")},p("createLink.title","Link title")),f.createElement("input",{id:"link-title",className:em.Ay.textInput,size:40,...a("title")})):null,f.createElement("div",{style:{display:"flex",justifyContent:"flex-end",gap:"var(--spacing-2)"}},f.createElement("button",{type:"submit",title:p("createLink.saveTooltip","Set URL"),"aria-label":p("createLink.saveTooltip","Set URL"),className:e_(em.Ay.primaryButton)},p("dialogControls.save","Save")),f.createElement("button",{type:"reset",title:p("createLink.cancelTooltip","Cancel change"),"aria-label":p("createLink.cancelTooltip","Cancel change"),className:e_(em.Ay.secondaryButton)},p("dialogControls.cancel","Cancel"))))}(0,l.guI)();let eC=()=>{let[e,t,n,r,l,o,s]=(0,i.uX)(u.xZ,u.Cp,u.yr,eE,eL,eP,eD),a=(0,i.qM)(ek),h=(0,i.qM)(eS),g=(0,i.qM)(eN),p=(0,i.qM)(eM),m=(0,i.qM)(eI);f.useEffect(()=>{let e=()=>{null==t||t.getEditorState().read(()=>{a(!0)})};return window.addEventListener("resize",e),window.addEventListener("scroll",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e)}},[t,a]);let[y,x]=f.useState(!1),_=(0,u.Bd)();if("inactive"===r.type)return null;let v=r.rectangle,C="preview"===r.type&&r.url.startsWith("http");return f.createElement(c.bL,{open:!0},f.createElement(c.Mz,{"data-visible":"edit"===r.type,className:em.Ay.linkDialogAnchor,style:{to
1p:`${v.top}px`,left:`${v.left}px`,width:`${v.width}px`,height:`${v.height}px`}}),f.createElement(c.ZL,{container:null==e?void 0:e.current},f.createElement(c.UC,{className:e_(em.Ay.linkDialogPopoverContent),sideOffset:5,onOpenAutoFocus:e=>{e.preventDefault()},key:r.linkNodeKey},"edit"===r.type&&f.createElement(ev,{url:r.url,title:r.title,text:r.text,onSubmit:h,onCancel:g.bind(null),linkAutocompleteSuggestions:l,showLinkTitleField:s,showAnchorTextField:r.withAnchorText}),"preview"===r.type&&f.createElement(f.Fragment,null,f.createElement("a",{className:em.Ay.linkDialogPreviewAnchor,href:r.url,...C?{target:"_blank",rel:"noreferrer"}:{},onClick:e=>{null!==o&&(e.preventDefault(),o(r.url))},title:C?_("linkPreview.open","Open {{url}} in new window",{url:r.url}):r.url},f.createElement("span",null,r.url),C&&n("open_in_new")),f.createElement(eb,{onClick:()=>{p()},title:_("linkPreview.edit","Edit link URL"),"aria-label":_("linkPreview.edit","Edit link URL")},n("edit")),f.createElement(d.Kq,null,f.createElement(d.bL,{open:y},f.createElement(d.l9,{asChild:!0},f.createElement(eb,{title:_("linkPreview.copyToClipboard","Copy to clipboard"),"aria-label":_("linkPreview.copyToClipboard","Copy to clipboard"),onClick:()=>{window.navigator.clipboard.writeText(r.url).then(()=>{x(!0),setTimeout(()=>{x(!1)},1e3)})}},n(y?"check":"content_copy"))),f.createElement(d.ZL,{container:null==e?void 0:e.current},f.createElement(d.UC,{className:e_(em.Ay.tooltipContent),sideOffset:5},_("linkPreview.copied","Copied!"),f.createElement(d.i3,null))))),f.createElement(eb,{title:_("linkPreview.remove","Remove link"),"aria-label":_("linkPreview.remove","Remove link"),onClick:()=>{m()}},n("link_off"))),f.createElement(c.i3,{className:em.Ay.popoverArrow}))))},eb=f.forwardRef(({className:e,...t},n)=>f.createElement("button",{className:e_(em.Ay.actionButton,e),ref:n,...t}));var ew=n(75288);function eT(e){if(!e)return null;let t=(0,a.OL)(e);if(null===t)return null;let n=t.getParent();return(0,r.FJ)(n)?n:(0,r.FJ)(t)?t:null}let ek=(0,i.HN)(),eE=(0,i.fh)({type:"inactive"},e=>{e.pub(u.Z4,t=>t.registerCommand(l.Q$N,()=>"preview"===e.getValue(eE).type&&(e.pub(eE,{type:"inactive"}),!0),l.AcJ)),e.sub(e.pipe(u.n$),t=>{"rich-text"!==t&&e.pub(eE,{type:"inactive"})}),e.pub(u.Z4,t=>t.registerCommand(l.cqi,t=>{if("k"===t.key&&(s.sY?t.metaKey:t.ctrlKey)&&!e.getValue(u.pc)){let n=(0,l.vJq)();if((0,l.I2P)(n))return e.pub(eA),t.stopPropagation(),t.preventDefault(),!0}return!1},l.WgU)),e.sub(e.pipe(eM,(0,i.EY)(eE,u.Cp)),([,t,n])=>{if("preview"===t.type)setTimeout(()=>{null==n||n.getEditorState().read(()=>{let n=(0,l.nsf)(t.linkNodeKey),i=!!(0,r.FJ)(n)&&n.getTextContent().length>0&&1>=n.getChildrenSize(),o=i&&n?n.getTextContent():"";e.pub(eE,{type:"edit",initialUrl:t.url,url:t.url,title:t.title,text:o,withAnchorText:i,linkNodeKey:t.linkNodeKey,rectangle:t.rectangle})})});else throw Error("Cannot switch to edit mode when not in preview mode")}),e.sub(e.pipe(eS,(0,i.EY)(u.Cp,eE,u.cj)),([t,n,i,o])=>{var s,a,u;let c=(null==(s=t.text)?void 0:s.trim())??"",d=(null==(a=t.url)?void 0:a.trim())??"",f=(null==(u=t.title)?void 0:u.trim())??"";if(""!==d){if(null==o?void 0:o.isCollapsed()){let e=c||f||d;null==n||n.update(()=>{let t=eT(o);if(t)t.setURL(d),t.setTitle(f),eF(t.getFirstChild(),c);else{let t=(0,r.zA)(d,{title:f});t.append((0,l.sTu)(e)),(0,l.H2A)([t]),t.select()}},{discrete:!0})}else null==n||n.update(()=>{eF(null==o?void 0:o.anchor.getNode(),c)}),null==n||n.dispatchCommand(r.yW,{url:d,title:f});e.pub(eE,{type:"preview",linkNodeKey:i.linkNodeKey,rectangle:i.rectangle,title:f,url:d})}else"edit"===i.type&&""!==i.initialUrl&&(null==n||n.dispatchCommand(r.yW,null)),e.pub(eE,{type:"inactive"})}),e.link(e.pipe(eN,(0,i.EY)(eE,u.Cp),(0,i.Tj)(([,e,t])=>{if("edit"===e.type)return(null==t||t.focus(),""===e.initialUrl)?{type:"inactive"}:{type:"preview",url:e.initialUrl,linkNodeKey:e.linkNodeKey,rectangle:e.rectangle};throw Error("Cannot cancel edit when not in edit mode")})),eE),e.link(e.pipe(e.combine(u.cj,ek),(0,i.EY)(u.Cp,eE,u.pc),(0,i.Tj)(([[e],t,n,r])=>{if(!(0,l.I2P)(e)||!t||r)return{type:"inactive"};{let n=eT(e);
1if(!n)return{type:"inactive"};{let e=(0,a.eo)(t);return e?{type:"preview",url:n.getURL(),linkNodeKey:n.getKey(),title:n.getTitle(),rectangle:e}:{type:"inactive"}}}})),eE)}),eS=(0,i.HN)(),eN=(0,i.rc)();(0,i.rc)();let eM=(0,i.rc)(),eI=(0,i.rc)(e=>{e.sub(e.pipe(eI,(0,i.EY)(u.Cp)),([,e])=>{null==e||e.dispatchCommand(r.yW,null)})}),eA=(0,i.rc)(e=>{e.sub(e.pipe(eA,(0,i.EY)(u.cj,u.Cp),(0,i.pb)(([,e])=>(0,l.I2P)(e))),([,t,n])=>{null==n||n.focus(()=>{setTimeout(()=>{n.getEditorState().read(()=>{let r=eT(t),i=(0,a.eo)(n),l=(null==r?void 0:r.getURL())??"",o=(null==r?void 0:r.getURL())??"",s=(null==r?void 0:r.getTitle())??"",u=(null==r?void 0:r.getKey())??"",c=r?r.getTextContent().length>0&&1>=r.getChildrenSize():!!(null==t?void 0:t.isCollapsed()),d=c&&r?r.getTextContent():"";e.pub(eE,{type:"edit",initialUrl:l,url:o,title:s,text:d,withAnchorText:c,linkNodeKey:u,rectangle:i})})})})})}),eL=(0,i.fh)([]),eP=(0,i.fh)(null),eO=(0,i.fh)(null,e=>{e.pub(u.Z4,t=>{function n(n){let[i,o]=e.getValues([u.pc,eO]);i&&null!==o&&t.update(()=>{let e=(0,l.xL4)(n.target);if(null!==e){let t=(0,ew.Bt)(e,e=>e instanceof r.Db);
1null!==t&&o(n,t,t.getURL())}})}return t.registerRootListener((e,t)=>{e&&e.addEventListener("click",n),t&&t.removeEventListener("click",n)})})});function eF(e,t){(0,l.kFe)(e)&&t&&(e.setTextContent(t),e.selectStart())}let eD=(0,i.fh)(!0),eV=(0,o.Z)({init(e,t){e.pub(u.aC,(null==t?void 0:t.LinkDialog)??eC),e.pub(eP,(null==t?void 0:t.onClickLinkCallback)??null),e.pub(eO,(null==t?void 0:t.onReadOnlyClickLinkCallback)??null),e.pub(eD,(null==t?void 0:t.showLinkTitleField)??!0)},update(e,t={}){e.pub(eL,t.linkAutocompleteSuggestions??[])}})},71450:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>F,__assign:()=>l,__asyncDelegator:()=>k,__asyncGenerator:()=>T,__asyncValues:()=>E,__await:()=>w,__awaiter:()=>g,__classPrivateFieldGet:()=>L,__classPrivateFieldIn:()=>O,__classPrivateFieldSet:()=>P,__createBinding:()=>m,__decorate:()=>s,__disposeResources:()=>V,__esDecorate:()=>u,__exportStar:()=>y,__extends:()=>i,__generator:()=>p,__importDefault:()=>A,__importStar:()=>I,__makeTemplateObject:()=>S,__metadata:()=>h,__param:()=>a,__propKey:()=>d,__read:()=>_,__rest:()=>o,__rewriteRelativeImportExtension:()=>H,__runInitializers:()=>c,__setFunctionName:()=>f,__spread:()=>v,__spreadArray:()=>b,__spreadArrays:()=>C,__values:()=>x,default:()=>R});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function s(e,t,n,r){var i,l=arguments.length,o=l<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(l<3?i(o):l>3?i(t,n,o):i(t,n))||o);return l>3&&o&&Object.defineProperty(t,n,o),o}function a(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,i,l){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var s,a=r.kind,u="getter"===a?"get":"setter"===a?"set":"value",c=!t&&e?r.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),f=!1,h=n.length-1;h>=0;h--){var g={};for(var p in r)g[p]="access"===p?{}:r[p];for(var p in r.access)g.access[p]=r.access[p];g.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");l.push(o(e||null))};var m=(0,n[h])("accessor"===a?{get:d.get,set:d.set}:d[u],g);if("accessor"===a){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw TypeError("Object expected");(s=o(m.get))&&(d.get=s),(s=o(m.set))&&(d.set=s),(s=o(m.init))&&i.unshift(s)}else(s=o(m))&&("field"===a?i.unshift(s):d[u]=s)}c&&Object.defineProperty(c,r.name,d),f=!0}function c(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function h(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function g(e,t,n,r){return new(n||(n=Promise))(function(i,l){function o(e){try{a(r.next(e))}catch(e){l(e)}}function s(e){try{a(r.throw(e))}catch(e){l(e)}}function a(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}a((r=r.apply(e,t||[])).next())})}function p(e,t){var n,r,i,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(a){var u=[s,a];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(l=0)),l;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return l.label++,{value:u[1],done:!1};case 5:l.label++,r=u[1],u=[0];continue;case 7:u=l.ops.pop(),l.trys.pop();continue;default:if(!(i=(i=l.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){l=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){l.label=u[1];break}if(6===u[0]&&l.label<i[1]){l.label=i[1],i=u;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(u);break}i[2]&&l.ops.pop(),l.trys.pop();continue}u=t.call(e,l)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var m=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);
vendor: 4,267 bytes, line 1
1(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||m(t,e,n)}function x(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,l=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=l.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}return o}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}function C(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var l=arguments[t],o=0,s=l.length;o<s;o++,i++)r[i]=l[o];return r}function b(e,t,n){if(n||2==arguments.length)for(var r,i=0,l=t.length;i<l;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function w(e){return this instanceof w?(this.v=e,this):new w(e)}function T(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),l=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function o(e,t){i[e]&&(r[e]=function(t){return new Promise(function(n,r){l.push([e,t,n,r])>1||s(e,t)})},t&&(r[e]=t(r[e])))}function s(e,t){try{var n;(n=i[e](t)).value instanceof w?Promise.resolve(n.value.v).then(a,u):c(l[0][2],n)}catch(e){c(l[0][3],e)}}function a(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),l.shift(),l.length&&s(l[0][0],l[0][1])}}function k(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:w(e[r](t)),done:!1}:i?i(t):t}:i}}function E(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=x(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){var l,o,s;l=r,o=i,s=(t=e[n](t)).done,Promise.resolve(t.value).then(function(e){l({value:e,done:s})},o)})}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},M=function(e){return(M=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)};function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=M(e),r=0;r<n.length;r++)"default"!==n[r]&&m(t,e,n[r]);return N(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function L(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function P(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function O(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function F(e,t,n){if(null!=t){var r,i;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");
1if(n){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var D="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function V(e){function t(t){e.error=e.hasError?new D(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function i(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var l=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(l).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function H(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,i,l){return n?t?".jsx":".js":!r||i&&l?r+i+"."+l.toLowerCase()+"js":e}):e}let R={__extends:i,__assign:l,__rest:o,__decorate:s,__param:a,__esDecorate:u,__runInitializers:c,__propKey:d,__setFunctionName:f,__metadata:h,__awaiter:g,__generator:p,__createBinding:m,__exportStar:y,__values:x,__read:_,__spread:v,__spreadArrays:C,__spreadArray:b,__await:w,__asyncGenerator:T,__asyncDelegator:k,__asyncValues:E,__makeTemplateOb
1ject:S,__importStar:I,__importDefault:A,__classPrivateFieldGet:L,__classPrivateFieldSet:P,__classPrivateFieldIn:O,__addDisposableResource:F,__disposeResources:V,__rewriteRelativeImportExtension:H}},72431:(e,t,n)=>{"use strict";n.d(t,{RG:()=>C,bL:()=>I,q7:()=>A});var r=n(12115),i=n(92556),l=n(49972),o=n(94446),s=n(3468),a=n(68946),u=n(97602),c=n(70222),d=n(23558),f=n(66218),h=n(95155),g="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},m="RovingFocusGroup",[y,x,_]=(0,l.N)(m),[v,C]=(0,s.A)(m,[_]),[b,w]=v(m),T=r.forwardRef((e,t)=>(0,h.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(k,{...e,ref:t})})}));T.displayName=m;var k=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:l,loop:s=!1,dir:a,currentTabStopId:y,defaultCurrentTabStopId:_,onCurrentTabStopIdChange:v,onEntryFocus:C,preventScrollOnEntryFocus:w=!1,...T}=e,k=r.useRef(null),E=(0,o.s)(t,k),S=(0,f.jH)(a),[N,I]=(0,d.i)({prop:y,defaultProp:null!=_?_:null,onChange:v,caller:m}),[A,L]=r.useState(!1),P=(0,c.c)(C),O=x(n),F=r.useRef(!1),[D,V]=r.useState(0);return r.useEffect(()=>{let e=k.current;if(e)return e.addEventListener(g,P),()=>e.removeEventListener(g,P)},[P]),(0,h.jsx)(b,{scope:n,orientation:l,dir:S,loop:s,currentTabStopId:N,onItemFocus:r.useCallback(e=>I(e),[I]),onItemShiftTab:r.useCallback(()=>L(!0),[]),onFocusableItemAdd:r.useCallback(()=>V(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>V(e=>e-1),[]),children:(0,h.jsx)(u.sG.div,{tabIndex:A||0===D?-1:0,"data-orientation":l,...T,ref:E,style:{outline:"none",...e.style},onMouseDown:(0,i.mK)(e.onMouseDown,()=>{F.current=!0}),onFocus:(0,i.mK)(e.onFocus,e=>{let t=!F.current;if(e.target===e.currentTarget&&t&&!A){let t=new CustomEvent(g,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>e.focusable);M([e.find(e=>e.active),e.find(e=>e.id===N),...e].filter(Boolean).map(e=>e.ref.current),w)}}F.current=!1}),onBlur:(0,i.mK)(e.onBlur,()=>L(!1))})})}),E="RovingFocusGroupItem",S=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:l=!0,active:o=!1,tabStopId:s,children:c,...d}=e,f=(0,a.B)(),g=s||f,p=w(E,n),m=p.currentTabStopId===g,_=x(n),{onFocusableItemAdd:v,onFocusableItemRemove:C,currentTabStopId:b}=p;return r.useEffect(()=>{if(l)return v(),()=>C()},[l,v,C]),(0,h.jsx)(y.ItemSlot,{scope:n,id:g,focusable:l,active:o,children:(0,h.jsx)(u.sG.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...d,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{l?p.onItemFocus(g):e.preventDefault()}),onFocus:(0,i.mK)(e.onFocus,()=>p.onItemFocus(g)),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return N[i]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=_().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=p.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>M(n))}}),children:"function"==typeof c?c({isCurrentTabStop:m,hasTabStop:null!=b}):c})})});S.displayName=E;var N={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function M(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var I=T,A=S},74898:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>r});let r={editorRoot:"_editorRoot_1e2ox_53",editorWrapper:"_editorWrapper_1e2ox_155",toolbarRoot:"_toolbarRoot_1e2ox_162",readOnlyToolbarRoot:"_readOnlyToolbarRoot_1e2ox_189",toolbarToggleItem:"_toolbarToggleItem_1e2ox_208",toolbarGroupOfGroups:"_toolbarGroupOfGroups_1e2ox_219",toolbarToggleSingleGroup:"_toolbarToggleSingleGroup_1e2ox_224",toolbarButton:"_toolbarButton_1e2ox_239",activeToolbarButton:"_activeToolbarButton_1e2ox_275",toolbarButtonDropdownContainer:"_toolbarButtonDropdownContainer_1e2ox_286",selectContainer:"_selectContainer_1e2ox_288",selectItem:"_selectItem_1e2ox_301",toolbarButtonSelectTrigger:"_toolbarButtonSelectTrigger_1e2ox_307",selectTrigger:"_selectTrigger_1e2ox_308",selectDropdownArrow:"_selectDropdownArrow_1e2ox_374",contentEditable:"_contentEditable_1e2ox_380",codeMirrorWrapper:"_codeMirrorWrapper_1e2ox_392",sandPackWrapper:"_sandPackWrapper_1e2ox_401",codeMirrorToolbar:"_codeMirrorToolbar_1e2ox_409",propertyPanelTitle:"_propertyPanelTitle_1e2ox_431",propertyEditorTable:"_propertyEditorTable_1e2ox_439",iconButton:"_iconButton_1e2ox_457",readOnlyColumnCell:"_readOnlyColumnCell_1e2ox_462",buttonsFooter:"_buttonsFooter_1e2ox_475",propertyEditorInput:"_propertyEditorInput_1e2ox_481",primaryButton:"_primaryButton_1e2ox_507",secondaryButton:"_secondaryButton_1e2ox_508",smallButton:"_smallButton_1e2ox_523",dialogForm:"_dialogForm_1e2ox_535",linkDialogEditForm:"_linkDialogEditForm_1e2ox_541",linkDialogInputContainer:"_linkDialogInputContainer_1e2ox_549",linkDialogInputWrapper:"_linkDialogInputWrapper_1e2ox_555",linkDialogInput:"_linkDialogInput_1e2ox_549",linkDialogAnchor:"_linkDialogAnchor_1e2ox_587",linkDialogPopoverContent:"_linkDialogPopoverContent_1e2ox_601",tableColumnEditorPopoverContent:"_tableColumnEditorPopoverContent_1e2ox_602",dialogContent:"_dialogContent_1e2ox_603",largeDialogContent:"_largeDialogContent_1e2ox_615",dialogTitle:"_dialogTitle_1e2ox_625",dialogCloseButton:"_dialogCloseButton_1e2ox_631",popoverContent:"_popoverContent_1e2ox_638",popoverArrow:"_popoverArrow_1e2ox_650",linkDialogPreviewAnchor:"_linkDialogPreviewAnchor_1e2ox_654",tooltipTrigger:"_tooltipTrigger_1e2ox_677",tooltipContent:"_tooltipContent_1e2ox_681",actionButton:"_actionButton_1e2ox_695",primaryActionButton:"_primaryActionButton_1e2ox_702",tableEditor:"_tableEditor_1e2ox_714",toolCell:"_toolCell_1e2ox_725",tableColumnEditorTrigger:"_tableColumnEditorTrigger_1e2ox_744",addRowButton:"_addRowButton_1e2ox_746",addColumnButton:"_addColumnButton_1e2ox_747",tableColumnEditorToolbar:"_tableColumnEditorToolbar_1e2ox_789",toggleGroupRoot:"_toggleGroupRoot_1e2ox_802",tableToolsColumn:"_tableToolsColumn_1e2ox_820",leftAlignedCell:"_leftAlignedCell_1e2ox_829",rightAlignedCell:"_rightAlignedCell_1e2ox_833",centeredCell:"_centeredCell_1e2ox_837",dialogOverlay:"_dialogOverlay_1e2ox_870",focusedImage:"_focusedImage_1e2ox_916",imageWrapper:"_imageWrapper_1e2ox_920",editImageToolbar:"_editImageToolbar_1e2ox_933",editImageButton:"_editImageButton_1e2ox_937",inline
1Editor:"_inlineEditor_1e2ox_943",blockEditor:"_blockEditor_1e2ox_952",nestedEditor:"_nestedEditor_1e2ox_961",genericComponentName:"_genericComponentName_1e2ox_980",diffSourceToggleWrapper:"_diffSourceToggleWrapper_1e2ox_986",ggDiffSourceToggle:"_ggDiffSourceToggle_1e2ox_994",diffSourceToggle:"_diffSourceToggle_1e2ox_986",selectWithLabel:"_selectWithLabel_1e2ox_1012",toolbarTitleMode:"_toolbarTitleMode_1e2ox_1027",imageControlWrapperResizing:"_imageControlWrapperResizing_1e2ox_1032",imageResizer:"_imageResizer_1e2ox_1036",imageResizerN:"_imageResizerN_1e2ox_1045",imageResizerNe:"_imageResizerNe_1e2ox_1051",imageResizerE:"_imageResizerE_1e2ox_1057",imageResizerSe:"_imageResizerSe_1e2ox_1063",imageResizerS:"_imageResizerS_1e2ox_1063",imageResizerSw:"_imageResizerSw_1e2ox_1075",imageResizerW:"_imageResizerW_1e2ox_1081",imageResizerNw:"_imageResizerNw_1e2ox_1087",imagePlaceholder:"_imagePlaceholder_1e2ox_1093",imageDimensionsContainer:"_imageDimensionsContainer_1e2ox_1101",placeholder:"_placeholder_1e2ox_1106",rootContentEditableWrapper:"_rootContentEditableWrapper_1e2ox_1119",downshiftInputWrapper:"_downshiftInputWrapper_1e2ox_1129",downshiftInput:"_downshiftInput_1e2ox_1129",downshiftAutocompleteContainer:"_downshiftAutocompleteContainer_1e2ox_1160",textInput:"_textInput_1e2ox_1206",multiFieldForm:"_multiFieldForm_1e2ox_1214",formField:"_formField_1e2ox_1220",markdownParseError:"_markdownParseError_1e2ox_1231",popupContainer:"_popupContainer_1e2ox_1240",inputSizer:"_inputSizer_1e2ox_1245"}},75164:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let r={}.hasOwnProperty;function i(e,t){let n=t||{};function i(t,...n){let l=i.invalid,o=i.handlers;if(t&&r.call(t,e)){let n=String(t[e]);l=r.call(o,n)?o[n]:i.unknown}if(l)return l.call(this,t,...n)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}},75288:(e,t,n)=>{"use strict";n.d(t,{Bt:()=>g,HE:()=>d,OV:()=>v,Pe:()=>p,Sd:()=>u,ZB:()=>c,cj:()=>m,eu:()=>f,mB:()=>h,xj:()=>y,zD:()=>x});var r=n(98801);function i(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let n of(r.append("code",e),t))r.append("v",n);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} 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,s=(l&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),l&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent));function a(...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 u(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function c(e,...t){let n=a(...t);n.length>0&&e.classList.add(...n)}function d(e,...t){let n=a(...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 h(e){let t=g(e,e=>(0,r.ff4)(e)&&!e.isInline());return(0,r.ff4)(t)||i(4,e.__key),t}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 g=(e,t)=>{let n=e;for(;n!==(0,r.NiT)()&&null!=n;){if(t(n))return n;n=n.getParent()}return null};function p(e){let t,n=(0,r.vJq)()||(0,r.S1w)();if((0,r.I2P)(n))t=(0,r.Ave)(n.focus,"next");else{if(null!=n){let e=n.getNodes(),i=e[e.length-1];i&&(t=(0,r.IlV)(i,"next"))}t=t||(0,r.uwZ)((0,r.NiT)(),"previous").getFlipped().insert((0,r.lJ7)())}let l=function(e,t,n){let l=(0,r.Csq)(t,"next");for(let e=l;e;e=(0,r.k1Q)(e,void 0))l=e;return(0,r.rN)(l)&&i(283),l.insert(e.isInline()?(0,r.lJ7)().append(e):e),(0,r.Csq)((0,r.IlV)(e.getLatest(),"next"),t.direction)}(e,t),o=(0,r.erb)(l),s=(0,r.cmH)(o)?(0,r.lSZ)(o):l;return(0,r.xQ8)((0,r.sWS)(s)),e.getLatest()}function m(e,t){let n=t();return e.replace(n),n.append(e),n}function y(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function x(e,t){let n=[];for(let r=0;r<e.length;r++){let i=t(e[r]);null!==i&&n.push(i)}return n}let _=!(s||!l)&&void 0;function v(e){let t=1;if(function(){if(void 0===_){let e=document.createElement("div");e.style.cssText="position: absolute; opacity: 0; width: 100px; left: -1000px;",document.body.appendChild(e);let t=e.getBoundingClientRect();e.style.setProperty("zoom","2"),_=e.getBoundingClientRect().width===t.width,document.body.removeChild(e)}return _}())for(;e;)t*=Number(window.getComputedStyle(e).getPropertyValue("zoom")),e=e.parentElement;return t}},76842:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(12115),i=n(94446),l=n(4129),o=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[i,o]=r.useState(),a=r.useRef(null),u=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>
1{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=s(a.current);c.current="mounted"===d?e:"none"},[d]),(0,l.N)(()=>{let t=a.current,n=u.current;if(n!==e){let r=c.current,i=s(t);e?f("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==i?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,l.N)(()=>{if(i){var e;let t,n=null!=(e=i.ownerDocument.defaultView)?e:window,r=e=>{let r=s(a.current).includes(CSS.escape(e.animationName));if(e.target===i&&r&&(f("ANIMATION_END"),!u.current)){let e=i.style.animationFillMode;i.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=e)})}},l=e=>{e.target===i&&(c.current=s(a.current))};return i.addEventListener("animationstart",l),i.addEventListener("animationcancel",r),i.addEventListener("animationend",r),()=>{n.clearTimeout(t),i.removeEventListener("animationstart",l),i.removeEventListener("animationcancel",r),i.removeEventListener("animationend",r)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{a.current=e?getComputedStyle(e):null,o(e)},[])}}(t),a="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),u=(0,i.s)(o.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(i=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(a));return"function"==typeof n||o.isPresent?r.cloneElement(a,{ref:u}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}o.displayName="Presence"},79373:(e,t,n)=>{"use strict";n.d(t,{C:()=>i});let r={bold:"_bold_1tncs_10",italic:"_italic_1tncs_14",underline:"_underline_1tncs_18",strikethrough:"_strikethrough_1tncs_34",underlineStrikethrough:"_underlineStrikethrough_1tncs_38",subscript:"_subscript_1tncs_42",superscript:"_superscript_1tncs_47",code:"_code_1tncs_52",nestedListItem:"_nestedListItem_1tncs_59",listitem:"_listitem_1tncs_69",listItemChecked:"_listItemChecked_1tncs_73",listItemUnchecked:"_listItemUnchecked_1tncs_74",admonitionDanger:"_admonitionDanger_1tncs_151",admonitionInfo:"_admonitionInfo_1tncs_152",admonitionNote:"_admonitionNote_1tncs_153",admonitionTip:"_admonitionTip_1tncs_154",admonitionCaution:"_admonitionCaution_1tncs_155"},i={text:{bold:r.bold,italic:r.italic,underline:r.underline,code:r.code,strikethrough:r.strikethrough,subscript:r.subscript,superscript:r.superscript,underlineStrikethrough:r.underlineStrikethrough},list:{listitem:r.listitem,listitemChecked:r.listItemChecked,listitemUnchecked:r.listItemUnchecked,nested:{listitem:r.nestedListItem}},admonition:{danger:r.admonitionDanger,info:r.admonitionInfo,note:r.admonitionNote,tip:r.admonitionTip,caution:r.admonitionCaution}}},80003:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},83905:(e,t,n)=>{"use strict";n.d(t,{R:()=>K});var r=n(61259),i=n(12115),l=n(97503),o=n(11919),s=n(66934),a=n(95155),u=n(98801);function c(e){return()=>(function(e){if(!function(e,t=!0){if(e)return!1;let n=(0,u.NiT)().getTextContent();return t&&(n=n.trim()),""===n}(e,!1))return!1;let t=(0,u.NiT)().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){let n=t[e];if((0,u.Cyw)(n))return!1;if((0,u.ff4)(n)){if(!(0,u.bSg)(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,u.kFe)(n))return!1}}}return!0})(e)}var d=n(75288);let f="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect,h=(0,i.forwardRef)(function({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:l,ariaErrorMessage:o,ariaExpanded:s,ariaInvalid:u,ariaLabel:c,ariaLabelledBy:d,ariaMultiline:h,ariaOwns:g,ariaRequired:p,autoCapitalize:m,className:y,id:x,role:_="textbox",spell
1Check:v=!0,style:C,tabIndex:b,"data-testid":w,...T},k){let[E,S]=(0,i.useState)(e.isEditable()),N=(0,i.useCallback)(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),M=(0,i.useMemo)(()=>(function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}})(k,N),[N,k]);return f(()=>(S(e.isEditable()),e.registerEditableListener(e=>{S(e)})),[e]),(0,a.jsx)("div",{"aria-activedescendant":E?t:void 0,"aria-autocomplete":E?n:"none","aria-controls":E?r:void 0,"aria-describedby":l,...null!=o?{"aria-errormessage":o}:{},"aria-expanded":E&&"combobox"===_?!!s:void 0,...null!=u?{"aria-invalid":u}:{},"aria-label":c,"aria-labelledby":d,"aria-multiline":h,"aria-owns":E?g:void 0,"aria-readonly":!E||void 0,"aria-required":p,autoCapitalize:m,className:y,contentEditable:E,"data-testid":w,id:x,ref:M,role:_,spellCheck:v,style:C,tabIndex:b,...T})});function g(e){return e.getEditorState().read(c(e.isComposing()))}let p=(0,i.forwardRef)(function(e,t){let{placeholder:n,...r}=e,[i]=(0,s.DF)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h,{editor:i,...r,ref:t}),null!=n&&(0,a.jsx)(m,{editor:i,content:n})]})});function m({content:e,editor:t}){let n=function(e){let[t,n]=(0,i.useState)(()=>g(e));return f(()=>{function t(){n(g(e))}return t(),(0,d.Sd)(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,l]=(0,i.useState)(t.isEditable());if((0,i.useLayoutEffect)(()=>(l(t.isEditable()),t.registerEditableListener(e=>{l(e)})),[t]),!n)return null;let o=null;return"function"==typeof e?o=e(r):null!==e&&(o=e),null===o?null:(0,a.jsx)("div",{"aria-hidden":!0,children:o})}function y(e,t){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var x={error:null},_=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=x,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,y(t,e),t.getDerivedStateFromError=function(e){return{error:e}};var n=t.prototype;return n.reset=function(){this.setState(x)},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,r=t.FallbackComponent,l=t.fallback;if(null!==e){var o={error:e,resetErrorBoundary:this.resetErrorBoundary};if(i.isValidElement(l))return l;if("function"==typeof n)return n(o);if(r)return i.createElement(r,o);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(i.Component);function v({children:e,onError:t}){return(0,a.jsx)(_,{fallback:(0,a.jsx)("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}let C="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect;function b(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}var w=n(47650),T=n(27737);let k="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect;function E(e){return e.getEditorState().read(c(e.isComposing()))}function S({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){var r;let[l]=(0,s.DF)(),o=function(e,t){let[n,r]=(0,i.useState)(()=>e.getDecorators());return k(()=>e.registerDecoratorListener(e=>{(0,w.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],u=(0,a.jsx)(t,{onError:t=>e._onError(t),children:(0,a.jsx)(i.Suspense,{fallback:null,children:n[s]})}),c=e.getElementByKey(s);null!==c&&r.push((0,w.createPortal)(u,c,s))}return r},[t,n,e])}(l,n);return k(()=>(0,d.Sd)((0,T.ZI)(r),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,s,a]=t;e.update(()=>{let e=(0,u.vJq)();if((0,u.I2P)(e)){let t=e.anchor,a=t.getNode(),c=0,d=0;if((0,u.kFe)(a)&&r>=0&&i>=0&&(c=r,d=r+i,e.setTextNodeRange(a,c,a,d)),c===d&&""===l||(e.insertRawText(l),a=t.getNode()),(0,u.kFe)(a)){c=o,d=o+s;let t=a.getTextContentSize();c=c>t?t:c,d=d>t?t:d,e.setTextNodeRange(a,c,a,d)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(r)),[r=l]),(0,a.jsxs)(a.Fragment,{children:[e,(0,a.jsx)(N,{content:t}),o]})}function N({content:e}){let[t]=(0,s.DF)(),n=function(e){let[t,n]=(0,i.useState)(()=>E(e));return k(()=>{function t(){n(E(e))}return t(),(0,d.Sd)(e.registerUpdateListener(()=>{t()}
1),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=function(){let[e]=(0,s.DF)(),t=(0,i.useMemo)(()=>b(e),[e,b]),[n,r]=(0,i.useState)(()=>t.initialValueFn()),l=(0,i.useRef)(n);return C(()=>{let{initialValueFn:e,subscribe:n}=t,i=e();return l.current!==i&&(l.current=i,r(i)),n(e=>{l.current=e,r(e)})},[t,b]),n}();return n?"function"==typeof e?e(r):e:null}var M=n(85203);let I={undo:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M7.202 18.5V17H14.3788C15.4224 17 16.3205 16.6554 17.073 15.9663C17.8257 15.2773 18.202 14.4263 18.202 13.4135C18.202 12.4007 17.8257 11.5512 17.073 10.8652C16.3205 10.1794 15.4224 9.8365 14.3788 9.8365H7.35775L10.1402 12.6193L9.0865 13.673L4.5 9.0865L9.0865 4.5L10.1402 5.55375L7.35775 8.3365H14.3788C15.8416 8.3365 17.0945 8.82467 18.1375 9.801C19.1805 10.7773 19.702 11.9815 19.702 13.4135C19.702 14.8455 19.1805 16.0513 18.1375 17.0308C17.0945 18.0103 15.8416 18.5 14.3788 18.5H7.202Z",fill:"currentColor"})),redo:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M9.6211 18.5C8.15827 18.5 6.90535 18.0103 5.86235 17.0308C4.81935 16.0513 4.29785 14.8455 4.29785 13.4135C4.29785 11.9815 4.81935 10.7773 5.86235 9.801C6.90535 8.82467 8.15827 8.3365 9.6211 8.3365H16.6421L13.8596 5.55375L14.9134 4.5L19.4999 9.0865L14.9134 13.673L13.8596 12.6193L16.6421 9.8365H9.6211C8.57744 9.8365 7.67935 10.1794 6.92685 10.8652C6.17418 11.5512 5.79785 12.4007 5.79785 13.4135C5.79785 14.4263 6.17418 15.2773 6.92685 15.9663C7.67935 16.6554 8.57744 17 9.6211 17H16.7979V18.5H9.6211Z",fill:"currentColor"})),format_bold:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M7.33838 18.625V5.375H12.1999C13.219 5.375 14.1405 5.69233 14.9644 6.327C15.788 6.9615 16.1999 7.816 16.1999 8.8905C16.1999 9.63783 16.0194 10.2471 15.6584 10.7182C15.2975 11.1894 14.9088 11.5314 14.4921 11.7442C15.005 11.9211 15.4947 12.2708 15.9614 12.7933C16.428 13.3158 16.6614 14.0193 16.6614 14.9038C16.6614 16.1819 16.1902 17.1217 15.2479 17.723C14.3055 18.3243 13.3562 18.625 12.3999 18.625H7.33838ZM9.48838 16.6328H12.3191C13.1063 16.6328 13.6627 16.4142 13.9884 15.977C14.314 15.5398 14.4769 15.1206 14.4769 14.7192C14.4769 14.3179 14.314 13.8987 13.9884 13.4615C13.6627 13.0243 13.0909 12.8058 12.2729 12.8058H9.48838V16.6328ZM9.48838 10.875H12.0826C12.6903 10.875 13.172 10.7013 13.5279 10.3538C13.8835 10.0064 14.0614 9.59042 14.0614 9.10575C14.0614 8.59042 13.8733 8.16925 13.4971 7.84225C13.1208 7.51542 12.6595 7.352 12.1134 7.352H9.48838V10.875Z",fill:"currentColor"})),format_italic:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5.39404 18.625V16.8173H9.21129L12.4518 7.18275H8.63454V5.375H17.7883V7.18275H14.2785L11.0383 16.8173H14.5478V18.625H5.39404Z",fill:"currentColor"})),format_underlined:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5.34619 22.125V20.625H18.6537V22.125H5.34619ZM11.9999 18.5287C10.4448 18.5287 9.23102 18.0566 8.35869 17.1125C7.48619 16.1683 7.04994 14.9032 7.04994 13.3172V5.41345H8.90369V13.4095C8.90369 14.4198 9.17228 15.2295 9.70944 15.8385C10.2466 16.4475 11.0101 16.752 11.9999 16.752C12.9898 16.752 13.7533 16.4475 14.2904 15.8385C14.8276 15.2295 15.0962 14.4198 15.0962 13.4095V5.41345H16.9499V13.3172C16.9499 14.9032 16.5137 16.1683 15.6412 17.1125C14.7689 18.0566 13.5551 18.5287 11.9999 18.5287Z",fill:"currentColor"})),format_highlight:i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"},i.createElement("path",{d:"m9 11-6 6v3h9l3-3"}),i.createElement("path",{d:"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4"})),code:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M7.99994 17.6537L2.34619 11.9999L7.99994 6.34619L9.06919 7.41544L4.46919 12.0154L9.05369 16.5999L7.99994 17.6537ZM15.9999 17.6537L14.9307 16.5844L19.5307 11.9844L14.9462 7.39994L15.9999 6.34619L21.6537 11.9999L15.9999 17.6537Z",fill:"currentColor"})),strikeThrough:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M12.15 19.6923C10.9732 19.6923 9.9315 19.359 9.025 18.6923C8.11867 18.0256 7.45525 17.1128 7.03475 15.9538L8.6385 15.2635C8.91667 16.0444 9.3545 16.6867 9.952 17.1905C10.5493 17.6944 11.2923 17.9463 12.1808 17.9463C12.9578 17.9463 13.6744 17.7508 14.3307 17.3598C14.9872 16.9686 15.3155 16.3487 15.3155 15.5C15.3155 15.123 15.2555 14.7968 15.1355 14.5213C15.0157 14.2456 14.8462 13.9885 14.627 13.75H16.677C16.7987 13.9705 16.8932 14.2256 16.9605 14.5153C17.0278 14.8051 17.0615 15.1334 17.0615 15.5C17.0615 16.8372 16.5747 17.8702 15.601 18.599C14.6272 19.3279 13.4768 19.6923 12.15 19.6923ZM2.25 11.75V10.25H21.75V11.75H2.25ZM12.05 4.19629C13.0475 4.19629 13.9123 4.42704 14.6443 4.88854C15.3763 5.35004 15.9673 6.05896 16.4173 7.01529L14.823 7.73079C14.6218 7.26029 14.2978 6.84462 13.851 6.48379C13.4042 6.12279 12.8141 5.94229 12.0808 5.94229C11.2244 5.94229 10.5392 6.16221 10.025 6.60204C9.51083 7.04171 9.264 7.59104 9.2845 8.25004H7.5385C7.50133 7.16421 7.89783 6.21712 8.728 5.40879C9.558 4.60046 10.6653 4.19629 12.05 4.19629Z",fill:"currentColor"})),superscript:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M16.6924 8V6.2115C16.6924 5.95383 16.7786 5.73875 16.9511 5.56625C17.1235 5.39392 17.3385 5.30775 17.5961 5.30775H19.5001V4.38475H16.6924V3.5H19.4809C19.7385 3.5 19.9536 3.58625 20.1261 3.75875C20.2985 3.93108 20.3846 4.14617 20.3846 4.404V5.2885C20.3846 5.54617 20.2985 5.76125 20.1261 5.93375C19.9536 6.10608 19.7385 6.19225 19.4809 6.19225H17.5771V7.1155H20.3846V8H16.6924ZM4.44238 18.5L8.84638 11.6287L4.77713 5.30775H6.74438L9.95963 10.404H10.0214L13.2501 5.30775H15.2329L11.1194 
111.6287L15.5579 18.5H13.5751L10.0214 12.9308H9.95963L6.42513 18.5H4.44238Z",fill:"currentColor"})),subscript:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M16.6924 20.5V18.7115C16.6924 18.4538 16.7786 18.2387 16.9511 18.0662C17.1235 17.8939 17.3385 17.8077 17.5961 17.8077H19.5001V16.8845H16.6924V16H19.4809C19.7385 16 19.9536 16.0863 20.1261 16.2587C20.2985 16.4311 20.3846 16.6461 20.3846 16.9038V17.7885C20.3846 18.0462 20.2985 18.2612 20.1261 18.4337C19.9536 18.6061 19.7385 18.6923 19.4809 18.6923H17.5771V19.6152H20.3846V20.5H16.6924ZM4.44238 18.6923L8.84638 11.8212L4.77713 5.5H6.74438L9.95963 10.5962H10.0214L13.2501 5.5H15.2329L11.1194 11.8212L15.5579 18.6923H13.5751L10.0214 13.123H9.95963L6.42513 18.6923H4.44238Z",fill:"currentColor"})),format_list_bulleted:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M9.30775 18.75V17.25H20.5V18.75H9.30775ZM9.30775 12.75V11.25H20.5V12.75H9.30775ZM9.30775 6.75005V5.25005H20.5V6.75005H9.30775ZM5.1635 19.6635C4.706 19.6635 4.31442 19.5006 3.98875 19.1748C3.66292 18.8491 3.5 18.4575 3.5 18C3.5 17.5425 3.66292 17.151 3.98875 16.8253C4.31442 16.4995 4.706 16.3365 5.1635 16.3365C5.621 16.3365 6.01258 16.4995 6.33825 16.8253C6.66408 17.151 6.827 17.5425 6.827 18C6.827 18.4575 6.66408 18.8491 6.33825 19.1748C6.
101258 19.5006 5.621 19.6635 5.1635 19.6635ZM5.1635 13.6635C4.706 13.6635 4.31442 13.5006 3.98875 13.1748C3.66292 12.8491 3.5 12.4575 3.5 12C3.5 11.5425 3.66292 11.151 3.98875 10.8253C4.31442 10.4995 4.706 10.3365 5.1635 10.3365C5.621 10.3365 6.01258 10.4995 6.33825 10.8253C6.66408 11.151 6.827 11.5425 6.827 12C6.827 12.4575 6.66408 12.8491 6.33825 13.1748C6.01258 13.5006 5.621 13.6635 5.1635 13.6635ZM5.1635 7.66355C4.706 7.66355 4.31442 7.50063 3.98875 7.1748C3.66292 6.84913 3.5 6.45755 3.5 6.00005C3.5 5.54255 3.66292 5.15096 3.98875 4.8253C4.31442 4.49946 4.706 4.33655 5.1635 4.33655C5.621 4.33655 6.01258 4.49946 6.33825 4.8253C6.66408 5.15096 6.827 5.54255 6.827 6.00005C6.827 6.45755 6.66408 6.84913 6.33825 7.1748C6.01258 7.50063 5.621 7.66355 5.1635 7.66355Z",fill:"currentColor"})),format_list_numbered:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M3.5 21.5V20.3078H6V19.25H4.5V18.0577H6V17H3.5V15.8077H6.34625C6.58592 15.8077 6.78683 15.8888 6.949 16.051C7.11117 16.2132 7.19225 16.4141 7.19225 16.6538V17.8462C7.19225 18.0859 7.11117 18.2868 6.949 18.449C6.78683 18.6112 6.58592 18.6923 6.34625 18.6923C6.58592 18.6923 6.78683 18.7733 6.949 18.9355C7.11117 19.0977 7.19225 19.2987 7.19225 19.5385V20.6538C7.19225 20.8936 7.11117 21.0946 6.949 21.2568C6.78683 21.4189 6.58592 21.5 6.34625 21.5H3.5ZM3.5 14.8463V12.25C3.5 12.0103 3.58108 11.8093 3.74325 11.647C3.90542 11.4848 4.10642 11.4038 4.34625 11.4038H6V10.3462H3.5V9.15375H6.34625C6.58592 9.15375 6.78683 9.23483 6.949 9.397C7.11117 9.55933 7.19225 9.76033 7.19225 10V11.75C7.19225 11.9897 7.11117 12.1907 6.949 12.353C6.78683 12.5152 6.58592 12.5963 6.34625 12.5963H4.69225V13.6538H7.19225V14.8463H3.5ZM5 8.19225V3.69225H3.5V2.5H6.19225V8.19225H5ZM9.30775 18.75V17.25H20.5V18.75H9.30775ZM9.30775 12.75V11.25H20.5V12.75H9.30775ZM9.30775 6.75V5.25H20.5V6.75H9.30775Z",fill:"currentColor"})),format_list_checked:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5.69425 18.452L2.5 15.2578L3.54425 14.2135L5.66925 16.3385L9.91925 12.0885L10.9635 13.1578L5.69425 18.452ZM5.69425 10.8365L2.5 7.64227L3.54425 6.59802L5.66925 8.72302L9.91925 4.47302L10.9635 5.54227L5.69425 10.8365ZM13.0095 16.5578V15.0578H21.5095V16.5578H13.0095ZM13.0095 8.94227V7.44227H21.5095V8.94227H13.0095Z",fill:"currentColor"})),link:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M10.8077 16.5385H7.0385C5.78283 16.5385 4.7125 16.096 3.8275 15.211C2.9425 14.3262 2.5 13.256 2.5 12.0005C2.5 10.745 2.9425 9.67471 3.8275 8.78955C4.7125 7.90421 5.78283 7.46155 7.0385 7.46155H10.8077V8.96155H7.0385C6.19867 8.96155 5.48233 9.25805 4.8895 9.85105C4.2965 10.444 4 11.1604 4 12C4 12.8397 4.2965 13.556 4.8895 14.149C5.48233 14.742 6.19867 15.0385 7.0385 15.0385H10.8077V16.5385ZM8.25 12.75V11.25H15.75V12.75H8.25ZM13.1923 16.5385V15.0385H16.9615C17.8013 15.0385 18.5177 14.742 19.1105 14.149C19.7035 13.556 20 12.8397 20 12C20 11.1604 19.7035 10.444 19.1105 9.85105C18.5177 9.25805 17.8013 8.96155 16.9615 8.96155H13.1923V7.46155H16.9615C18.2172 7.46155 19.2875 7.90405 20.1725 8.78905C21.0575 9.67388 21.5 10.744 21.5 11.9995C21.5 13.255 21.0575 14.3254 20.1725 15.2105C19.2875 16.0959 18.2172 16.5385 16.9615 16.5385H13.1923Z",fill:"currentColor"})),add_photo:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5.11537 20.5C4.6182 20.5 4.19262 20.323 3.83862 19.969C3.48462 19.615 3.30762 19.1894 3.30762 18.6922V5.30773C3.30762 4.81056 3.48462 4.38498 3.83862 4.03098C4.19262 3.67698 4.6182 3.49998 5.11537 3.49998H13.8076V4.99998H5.11537C5.02553 4.99998 4.95178 5.02881 4.89412 5.08648C4.83645 5.14415 4.80762 5.2179 4.80762 5.30773V18.6922C4.80762 18.7821 4.83645 18.8558 4.89412 18.9135C4.95178 18.9711 5.02553 19 5.11537 19H18.4999C18.5895 19 18.6633 18.9711 18.7211 18.9135C18.7788 18.8558 18.8076 18.7821 18.8076 18.6922V9.99998H20.3076V18.6922C20.3076 19.1894 20.1306 19.615 19.7766 19.969C19.4226 20.323 18.997 20.5 18.4999 20.5H5.11537ZM17.1921 8.61523V6.61523H15.1921V5.11548H17.1921V3.11548H18.6921V5.11548H20.6921V6.61523H18.6921V8.61523H17.1921ZM6.55762 16.75H17.1344L13.8459 12.3655L11.0384 16.0192L9.03837 13.4615L6.55762 16.75Z",fill:"currentColor"})),table:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M3.5 18.6923V5.30775C3.5 4.81058 3.677 4.385 4.031 4.031C4.385 3.677 4.81058 3.5 5.30775 3.5H18.6923C19.1894 3.5 19.615 3.677 19.969 4.031C20.323 4.385 20.5 4.81058 20.5 5.30775V18.6923C20.5 19.1894 20.323 19.615 19.969 19.969C19.615 20.323 19.1894 20.5 18.6923 20.5H5.30775C4.81058 20.5 4.385 20.323 4.031 19.969C3.677 19.615 3.5 19.1894 3.5 18.6923ZM5 9.077H19V5.30775C19 5.21792 18.9712 5.14417 18.9135 5.0865C18.8558 5.02883 18.7821 5 18.6923 5H5.30775C5.21792 5 5.14417 5.02883 5.0865 5.0865C5.02883 5.14417 5 5.21792 5 5.30775V9.077ZM10.1615 14.0385H13.8385V10.577H10.1615V14.0385ZM10.1615 19H13.8385V15.5385H10.1615V19ZM5 14.0385H8.6615V10.577H5V14.0385ZM15.3385 14.0385H19V10.577H15.3385V14.0385ZM5.30775 19H8.661
15V15.5385H5V18.6923C5 18.7821 5.02883 18.8558 5.0865 18.9135C5.14417 18.9712 5.21792 19 5.30775 19ZM15.3385 19H18.6923C18.7821 19 18.8558 18.9712 18.9135 18.9135C18.9712 18.8558 19 18.7821 19 18.6923V15.5385H15.3385V19Z",fill:"currentColor"})),horizontal_rule:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M4.5 12.75V11.25H19.5V12.75H4.5Z",fill:"currentColor"})),frontmatter:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M4.5 8.75V7.25H8.5V8.75H4.5Z",fill:"currentColor"}),i.createElement("path",{d:"M4.5 14.75V13.25H8.5V14.75H4.5Z",fill:"currentColor"}),i.createElement("path",{d:"M9.5 8.75V7.25H13.5V8.75H9.5Z",fill:"currentColor"}),i.createElement("path",{d:"M9.5 14.75V13.25H13.5V14.75H9.5Z",fill:"currentColor"}),i.createElement("path",{d:"M14.5 8.75V7.25H18.5V8.75H14.5Z",fill:"currentColor"}),i.createElement("path",{d:"M14.5 14.75V13.25H18.5V14.75H14.5Z",fill:"currentColor"})),frame_source:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M8.6 15.2443L5.35575 12L8.6 8.75575L9.64425 9.825L7.46925 12L9.64425 14.175L8.6 15.2443ZM15.4 15.2443L14.3558 14.175L16.5307 12L14.3558 9.825L15.4 8.75575L18.6443 12L15.4 15.2443ZM5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V15H5V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19H9V20.5H5.30775ZM15 20.5V19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V15H20.5V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H15ZM3.5 9V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H9V5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V9H3.5ZM19 9V5.30775C19 5.23075 18.9679 5.16025 18.9038 5.09625C18.8398 5.03208 18.7692 5 18.6923 5H15V3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V9H19Z",fill:"currentColor"})),arrow_drop_down:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M11.9999 14.6537L7.59619 10.25H16.4037L11.9999 14.6537Z",fill:"currentColor"})),admonition:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M12.0001 21.4C11.7654 21.4 11.5385 21.3548 11.3193 21.2645C11.1002 21.174 10.9002 21.0435 10.7193 20.873L3.1271 13.2807C2.9566 13.0999 2.8261 12.8999 2.7356 12.6807C2.64526 12.4616 2.6001 12.2346 2.6001 12C2.6001 11.7653 2.64526 11.5358 2.7356 11.3115C2.8261 11.0871 2.9566 10.8897 3.1271 10.7192L10.7193 3.12698C10.9002 2.94614 11.1002 2.81314 11.3193 2.72798C11.5385 2.64264 11.7654 2.59998 12.0001 2.59998C12.2348 2.59998 12.4643 2.64264 12.6886 2.72798C12.9129 2.81314 13.1103 2.94614 13.2808 3.12698L20.8731 10.7192C21.0539 10.8897 21.1869 11.0871 21.2721 11.3115C21.3574 11.5358 21.4001 11.7653 21.4001 12C21.4001 12.2346 21.3574 12.4616 21.2721 12.6807C21.1869 12.8999 21.0539 13.0999 20.8731 13.2807L13.2808 20.873C13.1103 21.0435 12.9129 21.174 12.6886 21.2645C12.4643 21.3548 12.2348 21.4 12.0001 21.4ZM12.2213 19.8037L19.8039 12.2212C19.8552 12.1699 19.8808 12.0961 19.8808 12C19.8808 11.9038 19.8552 11.8301 19.8039 11.7787L12.2213 4.19623C12.17 4.14489 12.0963 4.11923 12.0001 4.11923C11.9039 4.11923 11.8302 4.14489 11.7788 4.19623L4.19635 11.7787C4.14501 11.8301 4.11935 11.9038 4.11935 12C4.11935 12.0961 4.14501 12.1699 4.19635 12.2212L11.7788 19.8037C11.8302 19.8551 11.9039 19.8807 12.0001 19.8807C12.0963 19.8807 12.17 19.8551 12.2213 19.8037ZM11.2501 13.0865H12.7501V7.47123H11.2501V13.0865ZM12.0001 15.702C12.2258 15.702 12.4168 15.6237 12.5731 15.4672C12.7296 15.3109 12.8078 15.1199 12.8078 14.8942C12.8078 14.6686 12.7296 14.4776 12.5731 14.3212C12.4168 14.1647 12.2258 14.0865 12.0001 14.0865C11.7744 14.0865 11.5834 14.1647 11.4271 14.3212C11.2706 14.4776 11.1923 14.6686 11.1923 14.8942C11.1923 15.1199 11.2706 15.3109 11.4271 15.4672C11.5834 15.6237 11.7744 15.702 12.0001 15.702Z",fill:"currentColor"})),sandpack:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M12.9999 22.5C12.4947 22.5 12.0671 22.325 11.7171 21.975C11.3671 21.625 11.1921 21.1974 11.1921 20.6922V7.30775C11.1921 6.80258 11.3671 6.375 11.7171 6.025C12.0671 5.675 12.4947 5.5 12.9999 5.5H16.3844C16.8895 5.5 17.3171 5.675 17.6671 6.025C18.0171 6.375 18.1921 6.80258 18.1921 7.30775V20.6922C18.1921 21.1974 18.0171 21.625 17.6671 21.975C17.3171 22.325 16.8895 22.5 16.3844 22.5H12.9999ZM12.6921 7.30775V20.6922C12.6921 20.7692 12.7242 20.8398 12.7884 20.9038C12.8524 20.9679 12.9229 21 12.9999 21H16.3844C16.4614 21 16.5319 20.9679 16.5959 20.9038C16.66 20.8398 16.6921 20.7692 16.6921 20.6922V7.30775C16.6921 7.23075 16.66 7.16025 16.5959 7.09625C16.5319 7.03208 16.4614 7 16.3844 7H12.9999C12.9229 7 12.8524 7.03208 12.7884 7.09625C12.7242 7.16025 12.6921 7.23075 12.6921 7.30775ZM6.61537 18.5C6.1102 18.5 5.
168262 18.325 5.33262 17.975C4.98262 17.625 4.80762 17.1974 4.80762 16.6923V3.30775C4.80762 2.80258 4.98262 2.375 5.33262 2.025C5.68262 1.675 6.1102 1.5 6.61537 1.5H9.99987C10.505 1.5 10.9326 1.675 11.2826 2.025C11.6326 2.375 11.8076 2.80258 11.8076 3.30775V16.6923C11.8076 17.1974 11.6326 17.625 11.2826 17.975C10.9326 18.325 10.505 18.5 9.99987 18.5H6.61537ZM6.30762 3.30775V16.6923C6.30762 16.7692 6.3397 16.8398 6.40387 16.9038C6.46787 16.9679 6.53837 17 6.61537 17H9.99987C10.0769 17 10.1474 16.9679 10.2114 16.9038C10.2755 16.8398 10.3076 16.7692 10.3076 16.6923V3.30775C10.3076 3.23075 10.2755 3.16025 10.2114 3.09625C10.1474 3.03208 10.0769 3 9.99987 3H6.61537C6.53837 3 6.46787 3.03208 6.40387 3.09625C6.3397 3.16025 6.30762 3.23075 6.30762 3.30775Z",fill:"currentColor"})),rich_text:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM5.30775 19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V5.30775C19 5.23075 18.9679 5.16025 18.9038 5.09625C18.8398 5.03208 18.7692 5 18.6923 5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19ZM6.75 17H17.3268L14 12.3655L11.2308 16.0192L9 13.4615L6.75 17Z",fill:"currentColor"}),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12V6.5H9.1925C9.5925 6.5 9.9425 6.65 10.2425 6.95C10.5425 7.25 10.6925 7.6 10.6925 8V8.6925C10.6925 9.03733 10.605 9.32675 10.43 9.56075C10.255 9.79458 10.0168 9.97817 9.7155 10.1115L10.6155 12H9.404L8.504 10.1925H7.1925V12H6ZM9.1925 9H7.1925V7.6925H9.1925C9.26933 7.6925 9.33983 7.7245 9.404 7.7885C9.468 7.85267 9.5 7.92317 9.5 8V8.6925C9.5 8.76933 9.468 8.83983 9.404 8.904C9.33983 8.968 9.26933 9 9.1925 9Z",fill:"currentColor"}),i.createElement("path",{d:"M12.5 7H17.5V8.25H12.5V7Z",fill:"currentColor"}),i.createElement("path",{d:"M12.5 9.25H17.5V10.5H12.5V9.25Z",fill:"currentColor"})),difference:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM18.6923 19H5.30775C5.23075 19 5.16025 18.9679 5.09625 18.9038C5.03208 18.8398 5 18.7692 5 18.6923V5.30775C5 5.23075 5.03208 5.16025 5.09625 5.09625C5.16025 5.03208 5.23075 5 5.30775 5H18.6923C18.7692 5 18.8398 5.03208 18.9038 5.09625C18.9679 5.16025 19 5.23075 19 5.30775V18.6923C19 18.7692 18.9679 18.8398 18.9038 18.9038C18.8398 18.9679 18.7692 19 18.6923 19Z",fill:"currentColor"}),i.createElement("rect",{x:"9",y:"10",width:"5.5",height:"1.5",fill:"currentColor"}),i.createElement("rect",{x:"9",y:"15",width:"5.5",height:"1.5",fill:"currentColor"}),i.createElement("rect",{x:"11",y:"8",width:"1.5",height:"5.5",fill:"currentColor"})),markdown:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM18.6923 19H5.30775C5.23075 19 5.16025 18.9679 5.09625 18.9038C5.03208 18.8398 5 18.7692 5 18.6923V5.30775C5 5.23075 5.03208 5.16025 5.09625 5.09625C5.16025 5.03208 5.23075 5 5.30775 5H18.6923C18.7692 5 18.8398 5.03208 18.9038 5.09625C18.9679 5.16025 19 5.23075 19 5.30775V18.6923C19 18.7692 18.9679 18.8398 18.9038 18.9038C18.8398 18.9679 18.7692 19 18.6923 19Z",fill:"currentColor"}),i.createElement("path",{d:"M13 15H11.5V11L9.5 14L7.5 11V15H6V8H7.5L9.5 11L11.5 8H13V15Z",fill:"currentColor"}),i.createElement("path",{d:"M15.9921 15.5833L13.2886 12.8797L14.0546 12.1137L15.4504 13.5016V7.99597L16.5336 7.99993V13.5016L17.9296 12.1137L18.6954 12.8797L15.9921 15.5833Z",fill:"currentColor"})),open_in_new:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H11.6152V5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V12.3848H20.5V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM9.71925 15.3345L8.6655 14.2808L17.9462 5H14V3.5H20.5V10H19V6.05375L9.71925 15.3345Z",fill:"currentColor"})),link_off:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M18.8843 16.1038L17.7498 14.9385C18.4228 14.7552 18.9661 14.3946 19.3796 13.8568C19.7931 13.319 19.9998 12.7 19.9998 12C19.9998 11.1604 19.705 10.444 19.1153 9.85105C18.5255 9.25805 17.8139 8.96155 16.9806 8.96155H13.1728V7.46155H16.9806C18.2293 7.46155 19.2947 7.90422 20.1768 8.78955C21.0588 9.67472 21.4998 10.7449 21.4998 12C21.4998 12.8859 21.262 13.6951 20.7863 14.4278C20.3107 15.1606 19.6767 15.7193 18.8843 16.1038ZM15.5806 12.75L14.0806 11.25H15.7306V12.75H15.5806ZM20.1461 22.2538L1.74609 3.8538L2.79984 2.80005L21.1998 21.2L20.1461 22.2538ZM10.8268 16.5386H7.03834C5.78318 16.5386 4.71301 16.0959 3.82784 15.2105C2.94251 14.3254 2.49984 13.2552 2.49984 12C2.49984 10.8885 2.85784 9.91322 3.57384 9.07405C4.28984 8.23505 5.18826 7.72838 6.26909 7.55405H6.49984L7.90759 8.96155H7.03834C6.19851 8.96155 5.48218 9.25805 4.88934 9.85105C4.29634 10.444 3.99984 11.1604 3.99984 12C3.99984 12.8397 4.29634 13.556 4.88934 14.149C5.48218 14.742 6.19851 15.0385 7.03834 15.0385H10.8268V16.5386ZM8.26909 12.75V11.25H10.2113L11.6863 12.75H8.26909Z",fill:"currentColor"})),edit:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5 19H6.2615L16.498 8.7635L15.2365 7.502L5 17.7385V19ZM3.5 20.5V17.1155L16.6905 3.93075C16.8417 3.79342 17.0086 3.68733 17.1913 3.6125C17.3741 3.5375 17.5658 3.5 17.7663 3.5C17.9668 3.5 18.1609 3.53558 18.3488 3.60675C18.5367 3.67792 18.7032 3.79108 18.848 3.94625L20.0693 5.
118275C20.2244 5.32758 20.335 5.49425 20.401 5.68275C20.467 5.87125 20.5 6.05975 20.5 6.24825C20.5 6.44942 20.4657 6.64133 20.397 6.824C20.3283 7.00683 20.2191 7.17383 20.0693 7.325L6.8845 20.5H3.5ZM15.8562 8.14375L15.2365 7.502L16.498 8.7635L15.8562 8.14375Z",fill:"currentColor"})),content_copy:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M9.05775 17.5C8.55258 17.5 8.125 17.325 7.775 16.975C7.425 16.625 7.25 16.1974 7.25 15.6923V4.30775C7.25 3.80258 7.425 3.375 7.775 3.025C8.125 2.675 8.55258 2.5 9.05775 2.5H17.4423C17.9474 2.5 18.375 2.675 18.725 3.025C19.075 3.375 19.25 3.80258 19.25 4.30775V15.6923C19.25 16.1974 19.075 16.625 18.725 16.975C18.375 17.325 17.9474 17.5 17.4423 17.5H9.05775ZM9.05775 16H17.4423C17.5192 16 17.5898 15.9679 17.6538 15.9038C17.7179 15.8398 17.75 15.7692 17.75 15.6923V4.30775C17.75 4.23075 17.7179 4.16025 17.6538 4.09625C17.5898 4.03208 17.5192 4 17.4423 4H9.05775C8.98075 4 8.91025 4.03208 8.84625 4.09625C8.78208 4.16025 8.75 4.23075 8.75 4.30775V15.6923C8.75 15.7692 8.78208 15.8398 8.84625 15.9038C8.91025 15.9679 8.98075 16 9.05775 16ZM5.55775 21C5.05258 21 4.625 20.825 4.275 20.475C3.925 20.125 3.75 19.6974 3.75 19.1923V6.30775H5.25V19.1923C5.25 19.2693 5.28208 19.3398 5.34625 19.4038C5.41025 19.4679 5.48075 19.5 5.55775 19.5H15.4423V21H5.55775Z",fill:"currentColor"})),more_horiz:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M6.23096 13.5C5.81846 13.5 5.46537 13.3531 5.17171 13.0592C4.87787 12.7656 4.73096 12.4125 4.73096 12C4.73096 11.5875 4.87787 11.2344 5.17171 10.9408C5.46537 10.6469 5.81846 10.5 6.23096 10.5C6.64346 10.5 6.99662 10.6469 7.29046 10.9408C7.58412 11.2344 7.73096 11.5875 7.73096 12C7.73096 12.4125 7.58412 12.7656 7.29046 13.0592C6.99662 13.3531 6.64346 13.5 6.23096 13.5ZM12.0002 13.5C11.5877 13.5 11.2346 13.3531 10.941 13.0592C10.6471 12.7656 10.5002 12.4125 10.5002 12C10.5002 11.5875 10.6471 11.2344 10.941 10.9408C11.2346 10.6469 11.5877 10.5 12.0002 10.5C12.4127 10.5 12.7658 10.6469 13.0595 10.9408C13.3533 11.2344 13.5002 11.5875 13.5002 12C13.5002 12.4125 13.3533 12.7656 13.0595 13.0592C12.7658 13.3531 12.4127 13.5 12.0002 13.5ZM17.7695 13.5C17.357 13.5 17.0038 13.3531 16.71 13.0592C16.4163 12.7656 16.2695 12.4125 16.2695 12C16.2695 11.5875 16.4163 11.2344 16.71 10.9408C17.0038 10.6469 17.357 10.5 17.7695 10.5C18.182 10.5 18.535 10.6469 18.8287 10.9408C19.1225 11.2344 19.2695 11.5875 19.2695 12C19.2695 12.4125 19.1225 12.7656 18.8287 13.0592C18.535 13.3531 18.182 13.5 17.7695 13.5Z",fill:"currentColor"})),more_vert:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M12 19.2692C11.5875 19.2692 11.2344 19.1223 10.9408 18.8285C10.6469 18.5348 10.5 18.1817 10.5 17.7692C10.5 17.3567 10.6469 17.0035 10.9408 16.7097C11.2344 16.416 11.5875 16.2692 12 16.2692C12.4125 16.2692 12.7656 16.416 13.0592 16.7097C13.3531 17.0035 13.5 17.3567 13.5 17.7692C13.5 18.1817 13.3531 18.5348 13.0592 18.8285C12.7656 19.1223 12.4125 19.2692 12 19.2692ZM12 13.5C11.5875 13.5 11.2344 13.353 10.9408 13.0592C10.6469 12.7655 10.5 12.4125 10.5 12C10.5 11.5875 10.6469 11.2344 10.9408 10.9407C11.2344 10.6469 11.5875 10.5 12 10.5C12.4125 10.5 12.7656 10.6469 13.0592 10.9407C13.3531 11.2344 13.5 11.5875 13.5 12C13.5 12.4125 13.3531 12.7655 13.0592 13.0592C12.7656 13.353 12.4125 13.5 12 13.5ZM12 7.73071C11.5875 7.73071 11.2344 7.58388 10.9408 7.29021C10.6469 6.99638 10.5 6.64321 10.5 6.23071C10.5 5.81821 10.6469 5.46513 10.9408 5.17146C11.2344 4.87763 11.5875 4.73071 12 4.73071C12.4125 4.73071 12.7656 4.87763 13.0592 5.17146C13.3531 5.46513 13.5 5.81821 13.5 6.23071C13.5 6.64321 13.3531 6.99638 13.0592 7.29021C12.7656 7.58388 12.4125 7.73071 12 7.73071Z",fill:"currentColor"})),close:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M6.39994 18.6538L5.34619 17.6L10.9462 12L5.34619 6.4L6.39994 5.34625L11.9999 10.9463L17.5999 5.34625L18.6537 6.4L13.0537 12L18.6537 17.6L17.5999 18.6538L11.9999 13.0538L6.39994 18.6538Z",fill:"currentColor"})),settings:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M9.69225 21.5L9.3115 18.4538C9.04367 18.3641 8.769 18.2385 8.4875 18.077C8.20617 17.9153 7.95459 17.7422 7.73275 17.5577L4.9115 18.75L2.604 14.75L5.04425 12.9058C5.02125 12.7571 5.00492 12.6077 4.99525 12.4578C4.98559 12.3078 4.98075 12.1583 4.98075 12.0095C4.98075 11.8673 4.98559 11.7228 4.99525 11.576C5.00492 11.4292 5.02125 11.2686 5.04425 11.0943L2.604 9.25L4.9115 5.26925L7.723 6.452C7.96417 6.261 8.22159 6.08633 8.49525 5.928C8.76892 5.76967 9.03784 5.64242 9.302 5.54625L9.69225 2.5H14.3078L14.6885 5.55575C14.9885 5.66475 15.2599 5.792 15.5028 5.9375C15.7458 6.083 15.991 6.2545 16.2385 6.452L19.0885 5.26925L21.396 9.25L18.9173 11.123C18.9531 11.2845 18.9727 11.4355 18.976 11.576C18.9792 11.7163 18.9808 11.8577 18.9808 12C18.9808 12.1358 18.9775 12.274 18.971 12.4145C18.9647 12.5548 18.9417 12.7154 18.902 12.8963L21.3615 14.75L19.0538 18.75L16.2385 17.548C15.99
11 17.7455 15.7384 17.9202 15.4808 18.072C15.2231 18.224 14.959 18.3481 14.6885 18.4443L14.3078 21.5H9.69225ZM11 20H12.9655L13.325 17.3212C13.8353 17.1879 14.3017 16.9985 14.724 16.753C15.1465 16.5073 15.5539 16.1916 15.9463 15.8057L18.4308 16.85L19.4155 15.15L17.2463 13.5155C17.3296 13.2565 17.3863 13.0026 17.4163 12.7537C17.4464 12.5051 17.4615 12.2538 17.4615 12C17.4615 11.7397 17.4464 11.4884 17.4163 11.2463C17.3863 11.0039 17.3296 10.7564 17.2463 10.5038L19.4345 8.85L18.45 7.15L15.9365 8.2095C15.6018 7.85183 15.2009 7.53583 14.7338 7.2615C14.2664 6.98717 13.7937 6.79292 13.3155 6.67875L13 4H11.0155L10.6845 6.66925C10.1743 6.78975 9.70325 6.97433 9.27125 7.223C8.83909 7.47183 8.42684 7.79233 8.0345 8.1845L5.55 7.15L4.5655 8.85L6.725 10.4595C6.64167 10.6968 6.58334 10.9437 6.55 11.2C6.51667 11.4563 6.5 11.7262 6.5 12.0095C6.5 12.2698 6.51667 12.525 6.55 12.775C6.58334 13.025 6.6385 13.2718 6.7155 13.5155L4.5655 15.15L5.55 16.85L8.025 15.8C8.4045 16.1897 8.81025 16.5089 9.24225 16.7578C9.67442 17.0064 10.152 17.1974 10.675 17.3307L11 20ZM12.0115 15C12.8435 15 13.5515 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.168 14.7195 10.46 14.1355 9.876C13.5515 9.292 12.8435 9 12.0115 9C11.1692 9 10.4586 9.292 9.87975 9.876C9.30092 10.46 9.0115 11.168 9.0115 12C9.0115 12.832 9.30092 13.54 9.87975 14.124C10.4586 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})),delete_big:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M7.30775 20.5C6.80908 20.5 6.38308 20.3234 6.02975 19.9702C5.67658 19.6169 5.5 19.1909 5.5 18.6922V5.99998H4.5V4.49998H9V3.61548H15V4.49998H19.5V5.99998H18.5V18.6922C18.5 19.1974 18.325 19.625 17.975 19.975C17.625 20.325 17.1974 20.5 16.6923 20.5H7.30775ZM17 5.99998H7V18.6922C7 18.7821 7.02883 18.8558 7.0865 18.9135C7.14417 18.9711 7.21792 19 7.30775 19H16.6923C16.7692 19 16.8398 18.9679 16.9038 18.9037C16.9679 18.8397 17 18.7692 17 18.6922V5.99998ZM9.404 17H10.9037V7.99998H9.404V17ZM13.0962 17H14.596V7.99998H13.0962V17Z",fill:"currentColor"})),delete_small:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M7.30775 20.5C6.80908 20.5 6.38308 20.3234 6.02975 19.9702C5.67658 19.6169 5.5 19.1909 5.5 18.6922V5.99998H4.5V4.49998H9V3.61548H15V4.49998H19.5V5.99998H18.5V18.6922C18.5 19.1974 18.325 19.625 17.975 19.975C17.625 20.325 17.1974 20.5 16.6923 20.5H7.30775ZM17 5.99998H7V18.6922C7 18.7821 7.02883 18.8558 7.0865 18.9135C7.14417 18.9711 7.21792 19 7.30775 19H16.6923C16.7692 19 16.8398 18.9679 16.9038 18.9037C16.9679 18.8397 17 18.7692 17 18.6922V5.99998ZM9.404 17H10.9037V7.99998H9.404V17ZM13.0962 17H14.596V7.99998H13.0962V17Z",fill:"currentColor"})),format_align_center:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M3.5 20.5V19H20.5V20.5H3.5ZM7.5 16.625V15.125H16.5V16.625H7.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM7.5 8.875V7.375H16.5V8.875H7.5ZM3.5 5V3.5H20.5V5H3.5Z",fill:"currentColor"})),format_align_left:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M3.5 20.5V19H20.5V20.5H3.5ZM3.5 16.625V15.125H14.5V16.625H3.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM3.5 8.875V7.375H14.5V8.875H3.5ZM3.5 5V3.5H20.5V5H3.5Z",fill:"currentColor"})),format_align_right:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M3.5 5V3.5H20.5V5H3.5ZM9.5 8.875V7.375H20.5V8.875H9.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM9.5 16.625V15.125H20.5V16.625H9.5ZM3.5 20.5V19H20.5V20.5H3.5Z",fill:"currentColor"})),add_row:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.025 10.2077C4.375 9.85775 4.80258 9.68275 5.30775 9.68275H6.5V11.1827H5.30775C5.21792 11.1827 5.14417 11.2116 5.0865 11.2693C5.02883 11.3269 5 11.4007 5 11.4905V16.1923C5 16.2821 5.02883 16.3558 5.0865 16.4135C5.14417 16.4712 5.21792 16.5 5.30775 16.5H18.6923C18.7821 16.5 18.8558 16.4712 18.9135 16.4135C18.9712 16.3558 19 16.2821 19 16.1923V11.4905C19 11.4007 18.9712 11.3269 18.9135 11.2693C18.8558 11.2116 18.7821 11.1827 18.6923 11.1827H17.6923V9.68275H18.6923C19.1974 9.68275 19.625 9.85775 19.975 10.2077C20.325 10.5577 20.5 10.9853 20.5 11.4905V16.1923C20.5 16.6974 20.325 17.125 19.975 17.475C19.625 17.825 19.1974 18 18.6923 18H5.30775C4.80258 18 4.375 17.825 4.025 17.475C3.675 17.125 3.5 16.6974 3.5 16.1923V11.4905C3.5 10.9853 3.675 10.5577 4.025 10.2077Z",fill:"currentColor"}),i.createElement("path",{d:"M11.3848 9.68275V7.5H12.8848V9.68275H15V11.1827H12.8848V13.2307H11.3848V11.1827H9.26925V9.68275H11.3848Z",fill:"currentColor"})),add_column:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.70775 4.025C9.35775 4.375 9.18275 4.80258 9.18275 5.30775V6.5H10.6827V5.30775C10.6827 5.21792 10.7116 5.14417 10.7693 5.0865C10.8269 5.02883 10.9007 5 10.9905 5H15.6923C15.7821 5 15.8558 5.02883 15.9135 5.0865C15.9712 5.14417 16 5.21792 16 5.30775V18.6923C16 18.7821 15.9712 18.8558 15.9135 18.9135C15.8558 18.9712 15.7821 19 15.6923 19H10.9905C10.9007 19 10.8269 18.9712 10.7693 18.9135C10.7116 18.8558 10.6827 18.7821 10.6827 18.6923V17.6923H9.18275V18.6923C9.18275 19.1974 9.35775 19.625 9.70775 19.975C10.0577 20.325 10.4853 20.5 10.9905 20.5H15.6923C16.1974 20.5 16.625 20.325 16.975 19.975C17.325 19.625 17.5 19.1974 17.5 18.6923V5.30775C17.5 4.80258 17.325 4.375 16.975 4.025C16.625 3.675 16.1974 3.5 15.6923 3.5H10.9905C10.4853 3.5 10.0577 3.675 9.70775 4.025Z",fill:"currentColor"}),i.createElement("path",{d:"M9.18275 11.3848H7V12.8848H9.18275V15H10.6827V12.8848H12.7307V11.3848H10.6827V9.26925H9.18275V11.3848Z",fill:"currentColor"})),insert_col_left:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M13.0001 20.1152H8.67713H8.75388H8.69238H13.0001ZM7.19238 19.8075C7.19238 20.3127 7.36738 20.7402 7.71738 21.0902C8.06738 21.4402 8.49497 21.6152 9.00013 21.6152H12.6924C13.1975 21.6152 13.6251 21.4402 13.9751 21.0902C14.3251 20.7402 14.5001 20.3127 14.5001 19.8075V10.423H13.0001V19.8075C13.0001 19.8973 12.9713 19.9711 12.9136 20.0287C12.856 20.0864 12.7822 20.1152 12.6924 20.1152H9.00013C8.9103 20.1152 8.83655 20.0864 8.77888 20.0287C8.72122 19.9711 8.69238 19.8973 8.69238 19.8075V4.69223C8.26422 4.74357 7.90722 4.93299 7.62138 5.26048C7.33538 5.58798 7.19238 5.97548 7.19238 6.42298V19.8075ZM13.0001 2.49998V4.61523H10.8846V6.11523H13.0001V8.23073H14.5001V6.11523H16.6154V4.61523H14.5001V2.49998H13.0001Z",fill:"currentColor"})),insert_row_above:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M20.1152 9.99987V14.3229V14.2461V14.3076V9.99987ZM19.8075 15.8076C20.3127 15.8076 20.7402 15.6326 21.0902 15.2826C21.4402 14.9326 21.6152 14.505 21.6152 13.9999V10.3076C21.6152 9.80245 21.4402 9.37487 21.0902 9.02487C20.7402 8.67487 20.3127 8.49987 19.8075 8.49987H10.423V9.99987H19.8075C19.8973 9.99987 19.9711 10.0287 20.0287 10.0864C20.0864 10.144 20.1152 10.2178 20.1152 10.3076V13.9999C20.1152 14.0897 20.0864 14.1635 20.0287 14.2211C19.9711 14.2788 19.8973 14.3076 19.8075 14.3076H4.69223C4.74357 14.7358 4.93299 15.0928 5.26048 15.3786C5.58798 15.6646 5.97548 15.8076 6.42298 15.8076H19.8075ZM2.49998 9.99987H4.61523V12.1154H6.11523V9.99987H8.23073V8.49987H6.11523V6.38462H4.61523V8.49987H2.49998V9.99987Z",fill:"currentColor"})),insert_row_below:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M20.1152 14.1924V9.86939V9.94614V9.88464V14.1924ZM19.8075 8.38464C20.3127 8.38464 20.7402 8.55964 21.0902 8.90964C21.4402 9.25964 21.6152 9.68723 21.6152 10.1924V13.8846C21.6152 14.3898 21.4402 14.8174 21.0902 15.1674C20.7402 15.5174 20.3127 15.6924 19.8075 15.6924H10.423V14.1924H19.8075C19.8973 14.1924 19.9711 14.1636 20.0287 14.1059C20.0864 14.0482 20.1152 13.9745 20.1152 13.8846V10.1924C20.1152 10.1026 20.0864 10.0288 20.0287 9.97114C19.9711 9.91348 19.8973 9.88464 19.8075 9.88464H4.69223C4.74357 9.45648 4.93299 9.09948 5.26048 8.81364C5.58798 8.52764 5.97548 8.38464 6.42298 8.38464H19.8075ZM2.49998 14.1924H4.61523V12.0769H6.11523V14.1924H8.23073V15.6924H6.11523V1
17.8076H4.61523V15.6924H2.49998V14.1924Z",fill:"currentColor"})),insert_col_right:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M10.8075 20.1152H15.1305H15.0537H15.1152H10.8075ZM16.6152 19.8075C16.6152 20.3127 16.4402 20.7402 16.0902 21.0902C15.7402 21.4402 15.3127 21.6152 14.8075 21.6152H11.1152C10.6101 21.6152 10.1825 21.4402 9.83248 21.0902C9.48248 20.7402 9.30748 20.3127 9.30748 19.8075V10.423H10.8075V19.8075C10.8075 19.8973 10.8363 19.9711 10.894 20.0287C10.9517 20.0864 11.0254 20.1152 11.1152 20.1152H14.8075C14.8973 20.1152 14.9711 20.0864 15.0287 20.0287C15.0864 19.9711 15.1152 19.8973 15.1152 19.8075V4.69223C15.5434 4.74357 15.9004 4.93299 16.1862 5.26048C16.4722 5.58798 16.6152 5.97548 16.6152 6.42298V19.8075ZM10.8075 2.49998V4.61523H12.923V6.11523H10.8075V8.23073H9.30748V6.11523H7.19223V4.61523H9.30748V2.49998H10.8075Z",fill:"currentColor"})),check:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M9.54983 17.6537L4.21533 12.3192L5.28433 11.25L9.54983 15.5155L18.7153 6.34998L19.7843 7.41923L9.54983 17.6537Z",fill:"currentColor"}))};var A=n(79373),L=n(74898),P=n(11018),O=n(38993);let F=({children:e})=>{let t=(0,r.X3)(l.u0),n=i.useMemo(()=>[t,(0,s.Mx)(null,A.C)],[t]);return i.createElement(s.Gu.Provider,{value:n},e)},D=()=>{let e=(0,l.Bd)(),t=(0,r.qM)(l.Xz),n=(0,r.qM)(l.N2),[o,s,a,u,c,d,f]=(0,r.uX)(l.X2,l.J2,l.GS,l.Me,l.yY,l.M0,l.sF);return i.createElement(i.Fragment,null,u.map((e,t)=>i.createElement(e,{key:t})),i.createElement(J,{wrappers:c},i.createElement("div",{className:M(L.Ay.rootContentEditableWrapper,"mdxeditor-root-contenteditable")},i.createElement(S,{contentEditable:i.createElement("div",{ref:e=>{n(e),t(e?{current:e}:null)}},i.createElement(p,{className:M(L.Ay.contentEditable,o),ariaLabel:e("contentArea.editableMarkdown","editable markdown"),spellCheck:s})),placeholder:i.createElement("div",{className:M(L.Ay.contentEditable,L.Ay.placeholder,o)},i.createElement("p",null,d)),ErrorBoundary:v}))),a.map((e,t)=>i.createElement(e,{key:t})),f.map((e,t)=>i.createElement(e,{key:t})))},V={listItemIndent:"one"},H=e=>I[e];function R(e,t,n={}){let r=t;for(let[e,t]of Object.entries(n))r=r.replaceAll(`{{${e}}}`,String(t));return r}let J=({wrappers:e,children:t})=>{if(0===e.length)return i.createElement(i.Fragment,null,t);let n=e[0];return i.createElement(n,null,i.createElement(J,{wrappers:e.slice(1)},t))},B=({children:e,className:t,overlayContainer:n})=>{let o=i.useRef(null),s=i.useRef(null),a=(0,r.qM)(l.xZ),u=(0,r.qM)(l.mF);return i.useEffect(()=>{let e=document.createElement("div");return e.classList.add("mdxeditor-popup-container",L.Ay.editorRoot,L.Ay.popupContainer,...(t??"").trim().split(" ").filter(Boolean)),(n??document.body).appendChild(e),o.current=e,a(o),u(s),()=>{e.remove()}},[t,o,n,a,u]),i.createElement("div",{className:M("mdxeditor",L.Ay.editorRoot,L.Ay.editorWrapper,t),ref:s},e)},j=({mdxRef:e})=>{let t=(0,r.LO)();return i.useImperativeHandle(e,()=>({getMarkdown:()=>{let e=t.getValue(l.n$);return"source"===e||"diff"===e?t.getValue(l.Bn):t.getValue(l.oF)},setMarkdown:e=>{t.pub(l.Sv,e)},insertMarkdown:e=>{t.pub(l.HU,e)},focus:(e,n)=>{var r;null==(r=t.getValue(l.u0))||r.focus(e,n)},getContentEditableHTML:()=>{var e;return(null==(e=t.getValue(l.Xz))?void 0:e.current.innerHTML)??""},getSelectionMarkdown:()=>{let e=t.getValue(l.n$);if("source"===e||"diff"===e)return"";let n=t.getValue(l.Cp);return n?(t.getValue(l.IJ),t.getValue(l.dY),t.getValue(l.Jf),t.getValue(l.X_),t.getValue(l.nK),(0,O.kI)(n)):""}}),[t]),null},K=i.forwardRef((e,t)=>i.createElement(o.g,{plugins:[(0,l.LH)({contentEditableClassName:e.contentEditableClassName??"",spellCheck:e.spellCheck??!0,initialMarkdown:e.markdown,onChange:e.onChange??P.lQ,onBlur:e.onBlur??P.lQ,toMarkdownOptions:e.toMarkdownOptions??V,autoFocus:e.autoFocus??!1,placeholder:e.placeholder??"",readOnly:!!e.readOnly,iconComponentFor:e.iconComponentFor??H,suppressHtmlProcessing:e.suppressHtmlProcessing??!1,onError:e.onError??P.lQ,translation:e.translation??R,trim:e.trim??!0,lexicalTheme:e.lexicalTheme,..."editorState"in e?{editorState:e.editorState}:{},suppressSharedHistory:e.suppressSharedHistory??!1,additionalLexicalNodes:e.additionalLexicalNodes??[],lexicalEditorNamespace:e.lexicalEditorNamespace??"MDXEditor"}),...e.plugins??[]]},i.createElement(B,{className:e.className,overlayContainer:e.overlayContainer},i.createElement(F,null,i.createElement(D,null))),i.createElement(j,{mdxRef:t})))},85203:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];
1n&&(e=l(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=l(t,n));return t}(n)))}return e}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=(function(){return i}).apply(t,[]))||(e.exports=n)}()},86660:(e,t,n)=>{"use strict";n.d(t,{DE:()=>S,GO:()=>I,HY:()=>N,Js:()=>B,Mz:()=>C,YW:()=>x,cz:()=>J,g2:()=>s,i:()=>v,mJ:()=>M,q7:()=>V,uS:()=>R,v5:()=>b,x:()=>H});var r=n(75288),i=n(98801),l=n(92270);function o(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let n of(r.append("code",e),t))r.append("v",n);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function s(e){let t=1,n=e.getParent();for(;null!=n;){if(C(n)){let e=n.getParent();if(N(e)){t++,n=e.getParent();continue}o(40)}break}return t}function a(e){let t=e.getParent();N(t)||o(40);let n=t;for(;null!==n;)N(n=n.getParent())&&(t=n);return t}function u(e){return C(e)&&N(e.getFirstChild())}function c(e){return v().append(e)}function d(e,t){return C(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function f(e){let t=(0,i.vJq)();if(null!==t){let n=t.getNodes();if((0,i.I2P)(t)){let r=t.getStartEndPoints();null===r&&o(143);let[l]=r,s=l.getNode(),a=s.getParent();if((0,i.IqF)(s)){let e=s.getFirstChild();if(e)n=e.selectStart().getNodes();else{let e=(0,i.lJ7)();s.append(e),n=e.select().getNodes()}}else if(d(s,n)){let t=S(e);if((0,i.IqF)(a)){s.replace(t);let e=v();(0,i.ff4)(s)&&(e.setFormat(s.getFormatType()),e.setIndent(s.getIndent())),t.append(e)}else if(C(s)){let e=s.getParentOrThrow();h(t,e.getChildren()),e.replace(t)}return}}let r=new Set;for(let t=0;t<n.length;t++){let l=n[t];if((0,i.ff4)(l)&&l.isEmpty()&&!C(l)&&!r.has(l.getKey())){g(l,e);continue}let o=(0,i.jG6)(l)?l.getParent():C(l)&&l.isEmpty()?l:null;for(;null!=o;){let t=o.getKey();if(N(o)){if(!r.has(t)){let n=S(e);h(n,o.getChildren()),o.replace(n),r.add(t)}break}{let n=o.getParent();if((0,i.IqF)(n)&&!r.has(t)){r.add(t),g(o,e);break}o=n}}}}}function h(e,t){e.splice(e.getChildrenSize(),0,t)}function g(e,t){let n;if(N(e))return e;let r=e.getPreviousSibling(),i=e.getNextSibling(),l=v();
1if(h(l,e.getChildren()),N(r)&&t===r.getListType())r.append(l),N(i)&&t===i.getListType()&&(h(r,i.getChildren()),i.remove()),n=r;else if(N(i)&&t===i.getListType())i.getFirstChildOrThrow().insertBefore(l),n=i;else{let r=S(t);r.append(l),e.replace(r),n=r}return l.setFormat(e.getFormatType()),l.setIndent(e.getIndent()),e.remove(),n}function p(e,t){let n=e.getLastChild(),r=t.getFirstChild();n&&r&&u(n)&&u(r)&&(p(n.getFirstChild(),r.getFirstChild()),r.remove());let i=t.getChildren();i.length>0&&e.append(...i),t.remove()}function m(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.getLatest().__checked&&r.setChecked(void 0),N(r.getFirstChild())||n++)}function y(...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 x extends i.fGB{$config(){return this.config("listitem",{$transform:e=>{if(null==e.__checked)return;let t=e.getParent();N(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)},extends:i.fGB,importDOM:(0,i.kBm)({li:()=>({conversion:_,priority:0})})})}constructor(e=1,t,n){super(n),this.__value=void 0===e?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){let t=document.createElement("li");return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,n){let i=this.getParent();N(i)&&"check"===i.getListType()&&(N(this.getFirstChild())?(t.removeAttribute("role"),t.removeAttribute("tabIndex"),t.removeAttribute("aria-checked")):(t.setAttribute("role","checkbox"),t.setAttribute("tabIndex","-1"),e&&this.__checked===e.__checked||t.setAttribute("aria-checked",this.getChecked()?"true":"false"))),t.value=this.__value,function(e,t,n){let i,l=[],o=[],s=t.list,a=s?s.listitem:void 0;if(s&&s.nested&&(i=s.nested.listitem),void 0!==a&&l.push(...y(a)),s){let e=n.getParent(),t=N(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!==i){let e=y(i);n.getChildren().some(e=>N(e))?l.push(...e):o.push(...e)}o.length>0&&(0,r.HE)(e,...o),l.length>0&&(0,r.ZB)(e,...l)}(t,n.theme,this);let o=e?e.__style:"",s=this.__style;o!==s&&(""===s?t.removeAttribute("style"):t.style.cssText=s),function(e,t,n){let r=(0,l.Wh)(t.__textStyle);for(let t in r)e.style.setProperty(`--listitem-marker-${t}`,r[t]);if(n)for(let t in(0,l.Wh)(n.__textStyle))t in r||e.style.removeProperty(`--listitem-marker-${t}`)}(t,this,e)}updateDOM(e,t,n){return this.updateListItemDOM(e,t,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){let t=this.createDOM(e._config),n=this.getFormatType();n&&(t.style.textAlign=n);let r=this.getDirection();return r&&(t.dir=r),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;t<e.length;t++){let n=e[t];if((0,i.ff4)(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(!N(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let t=S(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,i.ff4)(e)||o(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(N(n)||o(39),C(e))return super.insertAfter(e,t);let r=this.getNextSiblings();if(n.insertAfter(e,t),0!==r.length){let i=S(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&&u(t)&&u(n)&&(p(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){let n=v().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(n,t),n}collapseAtStart(e){let t=(0,i.lJ7)();this.getChildren().forEach(e=>t.append(e));let n=this.getParentOrThrow(),r=n.getParentOrThrow(),l=C(r);if(1===n.getChildrenSize())if(l)n.remove(),r.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){let t=this.getWritable();return t.__value=e,t}getChecked(){let e,t=this.getLatest(),n=this.getParent();return N(n)&&(e=n.getListType()),"check"===e?!!t.__checked:void 0}setChecked(e){let t=this.getWritable();return t.__checked=e,t}toggleChecked(){let e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){let e=this.getParent();if(null===e||!this.isAttached())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&&o(117),(e=Math.floor(e))>=0||o(199);let t=this.getIndent();for(;t!==e;)t<e?(function(e){let t=new Set;if(u(e)||t.has(e.getKey()))return;let n=e.getParent(),r=e.getNextSibling(),i=e.getPreviousSibling();if(u(r)&&u(i)){let n=i.getFirstChild();if(N(n)){n.append(e);let i=r.getFirstChild();N(i)&&(h(n,i.getChildren()),r.remove(),t.add(r.getKey()))}}else if(u(r)){let t=r.getFirstChild();if(N(t)){let n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(u(i)){let t=i.getFirstChild();N(t)&&t.append(e)}else if(N(n)){let t=v().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),l=S(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());t.append(l),l.append(e),i?i.insertAfter(t):r?r.insertBefore(t):n.append(t)}}(this),t++):(function(e){if(u(e))return;let t=e.getParent(),n=t?t.getParent():void 0;if(N(n?n.getParent():void 0)&&C(n)&&N(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=v(),l=S(r);
1i.append(l),e.getPreviousSiblings().forEach(e=>l.append(e));let o=v(),s=S(r);o.append(s),h(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 C(e)||(0,i.bSg)(e)}extractWithChild(e,t){if(!(0,i.I2P)(t))return!1;let n=t.anchor.getNode(),r=t.focus.getNode();return this.isParentOf(n)&&this.isParentOf(r)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return S("bullet")}canMergeWhenEmpty(){return!0}}function _(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:v(t.hasAttribute("checked"))}}}let n=e.getAttribute("aria-checked");return{node:v("true"===n||"false"!==n&&void 0)}}function v(e){return(0,i.pTq)(new x(void 0,e))}function C(e){return e instanceof x}class b extends i.fGB{$config(){return this.config("list",{$transform:e=>{!function(e){let t=e.getNextSibling();N(t)&&e.getListType()===t.getListType()&&p(e,t)}(e),m(e)},extends:i.fGB,importDOM:(0,i.kBm)({ol:()=>({conversion:k,priority:0}),ul:()=>({conversion:k,priority:0})})})}constructor(e="number",t=1,n){super(n);let r=E[e]||e;this.__listType=r,this.__tag="number"===r?"ol":"ul",this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){let t=this.getWritable();return t.__listType=e,t.__tag="number"===e?"ol":"ul",t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){let t=this.getWritable();return t.__start=e,t}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,w(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||(w(t,n.theme,this),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){let t=this.createDOM(e._config,e);return(0,i.sby)(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()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,n){let r=n;for(let e=0;e<n.length;e++){let t=n[e];C(t)||(r===n&&(r=[...n]),r[e]=v().append(!(0,i.ff4)(t)||N(t)||t.isInline()?t:(0,i.sTu)(t.getTextContent())))}return super.splice(e,t,r)}extractWithChild(e){return C(e)}}function w(e,t,n){let i=[],l=[],o=t.list;if(void 0!==o){let e,t=o[`${n.__tag}Depth`]||[],r=s(n)-1,a=r%t.length,u=t[a],c=o[n.__tag],d=o.nested,f=o.checklist;if(void 0!==d&&d.list&&(e=d.list),void 0!==c&&i.push(c),void 0!==f&&"check"===n.__listType&&i.push(f),void 0!==u){i.push(...y(u));for(let e=0;e<t.length;e++)e!==a&&l.push(n.__tag+e)}if(void 0!==e){let t=y(e);r>1?i.push(...t):l.push(...t)}}l.length>0&&(0,r.HE)(e,...l),i.length>0&&(0,r.ZB)(e,...i)}function T(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>1&&e.forEach(e=>{N(e)&&t.push(c(e))})}else t.push(c(r))}return t}function k(e){let t=e.nodeName.toLowerCase(),n=null;return"ol"===t?n=S("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,i.sby)(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?S("bullet"):S("check")),{after:T,node:n}}let E={ol:"number",ul:"bullet"};function S(e="number",t=1){return(0,i.pTq)(new b(e,t))}function N(e){return e instanceof b}let M=(0,i.guI)("INSERT_CHECK_LIST_COMMAND");function I(e){return(0,r.Sd)(e.registerCommand(M,()=>(f("check"),!0),i.AcJ),e.registerCommand(i.bbF,t=>F(t,e,!1),i.AcJ),e.registerCommand(i.UDz,t=>F(t,e,!0),i.AcJ),e.registerCommand(i.Q$N,()=>{if(null!=O()){let t=e.getRootElement();return null!=t&&t.focus(),!0}return!1},i.AcJ),e.registerCommand(i.Huu,t=>{let n=O();return!(null==n||!e.isEditable())&&(e.update(()=>{let e=(0,i.xL4)(n);C(e)&&(t.preventDefault(),e.toggleChecked())}),!0)},i.AcJ),e.registerCommand(i.AX0,t=>e.getEditorState().read(()=>{let n=(0,i.vJq)();if((0,i.I2P)(n)&&n.isCollapsed()){let{anchor:l}=n,o="element"===l.type;if(o||0===l.offset){let n=l.getNode(),s=(0,r.Bt)(n,e=>(0,i.ff4)(e)&&!e.isInline());if(C(s)){let r=s.getParent();if(N(r)&&"check"===r.getListType()&&(o||s.getFirstDescendant()===n)){let n=e.getElementByKey(s.__key);if(null!=n&&document.activeElement!==n)return n.focus(),t.preventDefault(),!0}}}}return!1}),i.AcJ),e.registerRootListener((e,t)=>
1{null!==e&&(e.addEventListener("click",L),e.addEventListener("pointerdown",P)),null!==t&&(t.removeEventListener("click",L),t.removeEventListener("pointerdown",P))}))}function A(e,t){let n=e.target;if(!(0,i.sby)(n))return;let l=n.firstChild;if((0,i.sby)(l)&&("UL"===l.tagName||"OL"===l.tagName))return;let o=n.parentNode;if(!o||"check"!==o.__lexicalListType)return;let s=n.getBoundingClientRect(),a=(0,r.OV)(n),u=e.clientX/a,c=parseFloat((window.getComputedStyle?window.getComputedStyle(n,"::before"):{width:"0px"}).width),d=32*("touch"===e.pointerType);("rtl"===n.dir?u<s.right+d&&u>s.right-c-d:u>s.left-d&&u<s.left+c+d)&&t()}function L(e){A(e,()=>{if((0,i.sby)(e.target)){let t=e.target,n=(0,i.scG)(t);null!=n&&n.isEditable()&&n.update(()=>{let e=(0,i.xL4)(t);C(e)&&(t.focus(),e.toggleChecked())})}})}function P(e){A(e,()=>{e.preventDefault()})}function O(){let e=document.activeElement;return(0,i.sby)(e)&&"LI"===e.tagName&&null!=e.parentNode&&"check"===e.parentNode.__lexicalListType?e:null}function F(e,t,n){let r=O();return null!=r&&t.update(()=>{let l=(0,i.xL4)(r);if(!C(l))return;let o=function(e,t){let n=t?e.getPreviousSibling():e.getNextSibling(),r=e;for(;null==n&&C(r);)null!=(r=r.getParentOrThrow().getParent())&&(n=t?r.getPreviousSibling():r.getNextSibling());for(;C(n);){let e=t?n.getLastChild():n.getFirstChild();if(!N(e))return n;n=t?e.getLastChild():e.getFirstChild()}return null}(l,n);if(null!=o){o.selectStart();let n=t.getElementByKey(o.__key);null!=n&&(e.preventDefault(),setTimeout(()=>{n.focus()},0))}}),!1}let D=(0,i.guI)("UPDATE_LIST_START_COMMAND"),V=(0,i.guI)("INSERT_UNORDERED_LIST_COMMAND"),H=(0,i.guI)("INSERT_ORDERED_LIST_COMMAND"),R=(0,i.guI)("REMOVE_LIST_COMMAND");function J(e){return(0,r.Sd)(e.registerCommand(H,()=>(f("number"),!0),i.AcJ),e.registerCommand(D,e=>{let{listNodeKey:t,newStart:n}=e,r=(0,i.nsf)(t);return!!N(r)&&("number"===r.getListType()&&(r.setStart(n),m(r)),!0)},i.AcJ),e.registerCommand(V,()=>(f("bullet"),!0),i.AcJ),e.registerCommand(R,()=>((function(){let e=(0,i.vJq)();if((0,i.I2P)(e)){let t=new Set,n=e.getNodes(),l=e.anchor.getNode();if(d(l,n))t.add(a(l));else for(let e=0;e<n.length;e++){let l=n[e];if((0,i.jG6)(l)){let e=(0,r.eu)(l,x);null!=e&&t.add(a(e))}}for(let n of t){let t=n;for(let r 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();N(l)?n=n.concat(e(l)):n.push(i)}return n}(n)){let n=(0,i.lJ7)().setTextStyle(e.style).setTextFormat(e.format);h(n,r.getChildren()),t.insertAfter(n),t=n,r.__key===e.anchor.key&&(0,i.wp6)(e.anchor,(0,i.lSZ)((0,i.uwZ)(n,"next"))),r.__key===e.focus.key&&(0,i.wp6)(e.focus,(0,i.lSZ)((0,i.uwZ)(n,"next"))),r.remove()}n.remove()}}})(),!0),i.AcJ),e.registerCommand(i.XKQ,()=>(function(){let e,t=(0,i.vJq)();if(!(0,i.I2P)(t)||!t.isCollapsed())return!1;let n=t.anchor.getNode();if(!C(n)||0!==n.getChildrenSize())return!1;let r=a(n),l=n.getParent();N(l)||o(40);let s=l.getParent();if((0,i.IqF)(s))e=(0,i.lJ7)(),r.insertAfter(e);else{if(!C(s))return!1;e=v(),s.insertAfter(e)}e.setTextStyle(t.style).setTextFormat(t.format).select();let u=n.getNextSiblings();if(u.length>0){let t=S(l.getListType());if(C(e)){let n=v();n.append(t),e.insertAfter(n)}else e.insertAfter(t);t.append(...u)}return function(e){let t=e;for(;null==t.getNextSibling()&&null==t.getPreviousSibling();){let e=t.getParent();if(null==e||!C(e)&&!N(e))break;t=e}t.remove()}(n),!0})(),i.AcJ),e.registerNodeTransform(x,e=>{let t=e.getFirstChild();if(t){if((0,i.kFe)(t)){let n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{let t=(0,i.vJq)();(0,i.I2P)(t)&&(t.style!==e.getTextStyle()||t.format!==e.getTextFormat())&&t.isCollapsed()&&e.is(t.anchor.getNode())&&e.setTextStyle(t.style).setTextFormat(t.format)}}),e.registerNodeTransform(i.Ey8,e=>{let t=e.getParent();if(C(t)&&e.is(t.getFirstChild())){let n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}}))}function B(e){let t=e=>{let t=e.getParent();if(N(e.getFirstChild())||!N(t))return;let n=(0,r.Bt)(e,e=>C(e)&&N(e.getParent())&&C(e.getPreviousSibling()));if(null===n&&e.getIndent()>0)e.setIndent(0);else if(C(n)){let r=n.getPreviousSibling();if(C(r)){let n=(function(e){let t=e,n=t.getFirstChild();for(;N(n);){let e=n.getLastChild();if(!C(e))break;n=(t=e).getFirstChild()}return t})(r).getParent();if(N(n)){let r=s(n);r+1<s(t)&&e.setIndent(r)}}}};return e.registerNodeTransform(b,e=>{let n=[e];for(;n.length>0;){let e=n.shift();if(N(e)){for(let r of e.getChildren())if(C(r)){t(r);let e=r.getFirstChild();N(e)&&n.push(e)}}}})}},88945:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{A:()=>r})},89859:(e,t,n)=>{"use strict";n.d(t,{gx:()=>Y,bL:()=>G,wv:()=>Q});var r,i=n(12115),l=n(92556),o=n(3468),s=n(72431),a=n(97602),u=n(95155),c="horizontal",d=["horizontal","vertical"],f=i.forwardRef((e,t)=>
1{var n;let{decorative:r,orientation:i=c,...l}=e,o=(n=i,d.includes(n))?i:c;return(0,u.jsx)(a.sG.div,{"data-orientation":o,...r?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},...l,ref:t})});f.displayName="Separator";var h=n(23558),g="Toggle",p=i.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:i,...o}=e,[s,c]=(0,h.i)({prop:n,onChange:i,defaultProp:null!=r&&r,caller:g});return(0,u.jsx)(a.sG.button,{type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:t,onClick:(0,l.mK)(e.onClick,()=>{e.disabled||c(!s)})})});p.displayName=g;var m=n(66218),y="ToggleGroup",[x,_]=(0,o.A)(y,[s.RG]),v=(0,s.RG)(),C=i.forwardRef((e,t)=>{let{type:n,...r}=e;if("single"===n)return(0,u.jsx)(T,{...r,ref:t});if("multiple"===n)return(0,u.jsx)(k,{...r,ref:t});throw Error("Missing prop `type` expected on `".concat(y,"`"))});C.displayName=y;var[b,w]=x(y),T=i.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:l=()=>{},...o}=e,[s,a]=(0,h.i)({prop:n,defaultProp:null!=r?r:"",onChange:l,caller:y});return(0,u.jsx)(b,{scope:e.__scopeToggleGroup,type:"single",value:i.useMemo(()=>s?[s]:[],[s]),onItemActivate:a,onItemDeactivate:i.useCallback(()=>a(""),[a]),children:(0,u.jsx)(N,{...o,ref:t})})}),k=i.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:l=()=>{},...o}=e,[s,a]=(0,h.i)({prop:n,defaultProp:null!=r?r:[],onChange:l,caller:y}),c=i.useCallback(e=>a(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[a]),d=i.useCallback(e=>a(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[a]);return(0,u.jsx)(b,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:c,onItemDeactivate:d,children:(0,u.jsx)(N,{...o,ref:t})})});C.displayName=y;var[E,S]=x(y),N=i.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:l,dir:o,loop:c=!0,...d}=e,f=v(n),h=(0,m.jH)(o),g={role:"group",dir:h,...d};return(0,u.jsx)(E,{scope:n,rovingFocus:i,disabled:r,children:i?(0,u.jsx)(s.bL,{asChild:!0,...f,orientation:l,dir:h,loop:c,children:(0,u.jsx)(a.sG.div,{...g,ref:t})}):(0,u.jsx)(a.sG.div,{...g,ref:t})})}),M="ToggleGroupItem",I=i.forwardRef((e,t)=>{let n=w(M,e.__scopeToggleGroup),r=S(M,e.__scopeToggleGroup),l=v(e.__scopeToggleGroup),o=n.value.includes(e.value),a=r.disabled||e.disabled,c={...e,pressed:o,disabled:a},d=i.useRef(null);return r.rovingFocus?(0,u.jsx)(s.q7,{asChild:!0,...l,focusable:!a,active:o,ref:d,children:(0,u.jsx)(A,{...c,ref:t})}):(0,u.jsx)(A,{...c,ref:t})});I.displayName=M;var A=i.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...i}=e,l=w(M,n),o={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s="single"===l.type?o:void 0;return(0,u.jsx)(p,{...s,...i,ref:t,onPressedChange:e=>{e?l.onItemActivate(r):l.onItemDeactivate(r)}})}),L="Toolbar",[P,O]=(0,o.A)(L,[s.RG,_]),F=(0,s.RG)(),D=_(),[V,H]=P(L),R=i.forwardRef((e,t)=>{let{__scopeToolbar:n,orientation:r="horizontal",dir:i,loop:l=!0,...o}=e,c=F(n),d=(0,m.jH)(i);return(0,u.jsx)(V,{scope:n,orientation:r,dir:d,children:(0,u.jsx)(s.bL,{asChild:!0,...c,orientation:r,dir:d,loop:l,children:(0,u.jsx)(a.sG.div,{role:"toolbar","aria-orientation":r,dir:d,...o,ref:t})})})});R.displayName=L;var J="ToolbarSeparator",B=i.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=H(J,n);return(0,u.jsx)(f,{orientation:"horizontal"===i.orientation?"vertical":"horizontal",...r,ref:t})});B.displayName=J;var j=i.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=F(n);return(0,u.jsx)(s.q7,{asChild:!0,...i,focusable:!e.disabled,children:(0,u.jsx)(a.sG.button,{type:"button",...r,ref:t})})});j.displayName="ToolbarButton",i.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=F(n);return(0,u.jsx)(s.q7,{asChild:!0,...i,focusable:!0,children:(0,u.jsx)(a.sG.a,{...r,ref:t,onKeyDown:(0,l.mK)(e.onKeyDown,e=>{" "===e.key&&e.currentTarget.click()})})})}).displayName="ToolbarLink";var K="ToolbarToggleGroup",z=i.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=H(K,n),l=D(n);return(0,u.jsx)(C,{"data-orientation":i.orientation,dir:i.dir,...l,...r,ref:t,rovingFocus:!1})});z.displayName=K;var Z=i.forwardRef((e,t)=>
1{let{__scopeToolbar:n,...r}=e,i=D(n),l={__scopeToolbar:e.__scopeToolbar};return(0,u.jsx)(j,{asChild:!0,...l,children:(0,u.jsx)(I,{...i,...r,ref:t})})});Z.displayName="ToolbarToggleItem";var W=n(85203),U=n(74898),q=n(65333);function $(e,t){return i.forwardRef((n,r)=>{let l=W(t.className,n.className);return i.createElement(e,{...t,...n,className:l,ref:r})})}let G=({readOnly:e,children:t,className:n})=>i.createElement(R,{className:W("mdxeditor-toolbar",U.Ay.toolbarRoot,{[U.Ay.readOnlyToolbarRoot]:e},n),...e?{tabIndex:-1}:{}},t),Y=(r=$(j,{className:U.Ay.toolbarButton,"data-toolbar-item":!0}),({title:e,children:t,...n})=>i.createElement(r,{...n},i.createElement(q.I,{title:e},t))),X=$(Z,{className:U.Ay.toolbarToggleItem,"data-toolbar-item":!0});$(z,{type:"single",className:U.Ay.toolbarToggleSingleGroup}),i.forwardRef(({on:e,title:t,children:n,disabled:r,...l},o)=>i.createElement(z,{type:"single",className:U.Ay.toolbarToggleSingleGroup,...l,value:e?"on":"off",ref:o},i.createElement(X,{"aria-label":t,value:"on",disabled:r},i.createElement(q.I,{title:t},n))));let Q=B},92270:(e,t,n)=>{"use strict";n.d(t,{Cb:()=>y,Nx:()=>d,Rk:()=>_,SD:()=>c,Wh:()=>o,Xg:()=>f,dt:()=>u,zI:()=>g});var r=n(98801);let i=new Map;function l(e){let t={};if(!e)return t;for(let n of e.split(";"))if(""!==n){let[e,r]=n.split(/:([^]+)/);e&&r&&(t[e.trim()]=r.trim())}return t}function o(e){let t=i.get(e);return void 0===t&&(t=l(e),i.set(e,t)),t}function s(e){let t=(0,r.i0_)().getElementByKey(e.getKey());if(null===t)return null;let n=t.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(t)}function a(e){return s((0,r.hVZ)(e)?e:e.getParentOrThrow())}function u(e){let t=a(e);return null!==t&&"rtl"===t.direction}function c(e,t){let n=e.getStartEndPoints();if(t.isSelected(e)&&!(0,r.Rb_)(t)&&null!==n){let[i,l]=n,o=e.isBackward(),s=i.getNode(),a=l.getNode(),u=t.is(s),c=t.is(a);if(u||c){let[n,i]=(0,r.Cku)(e),l=s.is(a),u=t.is(o?a:s),c=t.is(o?s:a),d,f=0;l?(f=n>i?i:n,d=n>i?n:i):u?(f=o?i:n,d=void 0):c&&(f=0,d=o?n:i),t.__text=t.__text.slice(f,d)}}return t}function d(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();let t=e.getNode();return(0,r.ff4)(t)||function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",177),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${177}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(177),e.offset===t.getChildrenSize()}function f(e){let t=e.getStyle(),n=l(t);i.set(t,n)}function h(e,t){let n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function g(e,t,n=h){if(null===e)return;let i=e.getStartEndPoints(),l=new Map,o=null;if(i){let[e,t]=i;(o=(0,r.uTE)()).anchor.set(e.key,e.offset,e.type),o.focus.set(t.key,t.offset,t.type);let n=v(e.getNode(),r.w3H),s=v(t.getNode(),r.w3H);(0,r.ff4)(n)&&l.set(n.getKey(),n),(0,r.ff4)(s)&&l.set(s.getKey(),s)}for(let t of e.getNodes())if((0,r.ff4)(t)&&(0,r.w3H)(t))l.set(t.getKey(),t);else if(null===i){let e=v(t,r.w3H);(0,r.ff4)(e)&&l.set(e.getKey(),e)}for(let[e,r]of l){let i=t();n(r,i),r.replace(i,!0),o&&(e===o.anchor.key&&o.anchor.set(i.getKey(),o.anchor.offset,o.anchor.type),e===o.focus.key&&o.focus.set(i.getKey(),o.focus.offset,o.focus.type))}o&&e.is((0,r.vJq)())&&(0,r.n1P)(o)}function p(e){let t=m(e);return null!==t&&"vertical-rl"===t.writingMode}function m(e){let t=e.anchor.getNode();return(0,r.ff4)(t)?s(t):a(t)}function y(e,t){let n=p(e)?!t:t;x(e)&&(n=!n);let i=(0,r.Ave)(e.focus,n?"previous":"next");if((0,r.pGK)(i))return!1;for(let e of(0,r.mWO)(i)){if((0,r.cmH)(e))return!e.origin.isInline();if(!(0,r.ff4)(e.origin)){if((0,r.Cyw)(e.origin))return!0;break}}return!1}function x(e){let t=m(e);return null!==t&&"rtl"===t.direction}function _(e,t,n){let r,i=x(e);r=p(e)||i?!n:n,e.modify(t?"extend":"move",r,"character")}function v(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}},97239:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("list-ordered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]])},97503:(e,t,n)=>{"use strict";n.d(t,{Cp:()=>tV,TI:()=>nR,$0:()=>nJ,O2:()=>nI,aC:()=>nE,iI:()=>na,R1:()=>nl,q:()=>ni,C2:()=>ns,Id:()=>nL,cx:()=>no,lN:()=>nu,IZ:()=>nN,C_:()=>tU,sF:()=>nM,GS:()=>nk,X2:()=>tH,Xz:()=>nr,N2:()=>ng,vR:()=>nF,LH:()=>nK,Z4:()=>nw,Jl:()=>nb,X3:()=>nO,PI:()=>tz,cj:()=>tq,xZ:()=>nt,mF:()=>nn,yY:()=>nA,IJ:()=>t9,M9:()=>nP,yr:()=>n_,HU:()=>nf,X_:()=>t6,nK:()=>t8,oF:()=>tG,Bn:()=>nH,M0:()=>tB,pc:()=>tJ,u0:()=>tD,Sv:()=>nd,J2:()=>tR,dY:()=>t7,Jf:()=>t3,Me:()=>nS,Bd:()=>nz,n$:()=>nV});var r=n(11919),i=n(75288),l=n(98801);function o(e){e.undoStack=[],e.redoStack=[],e.current=null}function s(){return{current:null,redoStack:[],undoStack:[]}}var a=n(27737),u=n(92270),c=n(61259),d=n(3922),f=n(9548);p.peek=function(){return"="};
1var h={canContainEols:["highlight"],enter:{highlight:function(e){this.enter({type:"highlight",children:[]},e)}},exit:{highlight:function(e){this.exit(e)}}},g={unsafe:[{character:"=",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{highlight:p}};function p(e,t,n,r){let i=n.createTracker(r),l=n.enter("highlight"),o=i.move("==");return o+=i.move(n.containerPhrasing(e,{before:o,after:"=",...i.current()})),o+=i.move("=="),l(),o}var m=n(5009),y=n(63758);let x=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","
1sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],_={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function v(e){let t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function C(e){let t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function b(e){return function(e){let t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||v(e)}var w=n(17039);let T=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"],k=/["&'<>`]/g,E=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,S=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,N=/[|\\{}()[\]^$+*?.]/g,M=new WeakMap;function I(e){return"&#x"+e.toString(16).toUpperCase()+";"}var A=n(16277),L=n(18283);function P(e){let t=0,n=e.stack.length;for(;--n>-1;){let r=e.stack[n];if("blockquote"===r||"listItem"===r)break;"mdxJsxFlowElement"===r&&t++}return t}function O(e){return"  ".repeat(e)}function F(){return"<"}var D=Object.prototype.hasOwnProperty;function V(e,t,n){for(n of e.keys())if(H(n,t))return n}function H(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&H(e[r],t[r]););return -1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if((i=r)&&"object"==typeof i&&!(i=V(t,i))||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if((i=r[0])&&"object"==typeof i&&!(i=V(t,i))||!H(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return -1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return -1===r}if(!n||"object"==typeof e){for(n in r=0,e)if(D.call(e,n)&&++r&&!D.call(t,n)||!(n in t)||!H(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!=e&&t!=t}var R=n(95704);let J,B,j,K,z=!0;void 0!==R&&({FORCE_COLOR:J,NODE_DISABLE_COLORS:B,NO_COLOR:j,TERM:K}=R.env||{},z=R.stdout&&R.stdout.isTTY);let Z={enabled:!B&&null==j&&"dumb"!==K&&(null!=J&&"0"!==J||z),reset:U(0,0),bold:U(1,22),dim:U(2,22),italic:U(3,23),underline:U(4,24),inverse:U(7,27),hidden:U(8,28),strikethrough:U(9,29),black:U(30,39),red:U(31,39),green:U(32,39),yellow:U(33,39),blue:U(34,39),magenta:U(35,39),cyan:U(36,39),white:U(37,39),gray:U(90,39),grey:U(90,39),bgBlack:U(40,49),bgRed:U(41,49),bgGreen:U(42,49),bgYellow:U(43,49),bgBlue:U(44,49),bgMagenta:U(45,49),bgCyan:U(46,49),bgWhite:U(47,49)};function W(e,t){let n=0,r,i="",l="";for(;n<e.length;n++)i+=(r=e[n]).open,l+=r.close,~t.indexOf(r.close)&&(t=t.replace(r.rgx,r.close+r.open));return i+t+l}function U(e,t){let n={open:`\x1b[${e}m`,close:`\x1b[${t}m`,rgx:RegExp(`\\x1b\\[${t}m`,"g")};return function(t){let r;return void 0!==this&&void 0!==this.has?(~this.has.indexOf(e)||(this.has.push(e),this.keys.push(n)),void 0===t?this:Z.enabled?W(this.keys,t+""):t+""):void 0===t?((r={has:[e],keys:[n]}).reset=Z.reset.bind(r),r.bold=Z.bold.bind(r),r.dim=Z.dim.bind(r),r.italic=Z.italic.bind(r),r.underline=Z.underline.bind(r),r.inverse=Z.inverse.bind(r),r.hidden=Z.hidden.bind(r),r.strikethrough=Z.strikethrough.bind(r),r.black=Z.black.bind(r),r.red=Z.red.bind(r),r.green=Z.green.bind(r),r.yellow=Z.yellow.bind(r),r.blue=Z.blue.bind(r),r.magenta=Z.magenta.bind(r),r.cyan=Z.cyan.bind(r),r.white=Z.white.bind(r),r.gray=Z.gray.bind(r),r.grey=Z.grey.bind(r),r.bgBlack=Z.bgBlack.bind(r),r.bgRed=Z.bgRed.bind(r),r.bgGreen=Z.bgGreen.bind(r),r.bgYellow=Z.bgYellow.bind(r),r.bgBlue=Z.bgBlue.bind(r),r.bgMagenta=Z.bgMagenta.bind(r),r.bgCyan=Z.bgCyan.bind(r),r.bgWhite=Z.bgWhite.bind(r),r):Z.enabled?W([n],t+""):t+""}}function q(){}q.prototype={diff:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.callback;"function"==typeof r&&(i=r,r={}),this.options=r;var l=this;function o(e){return i?(setTimeout(function(){i(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var s=(t=this.removeEmpty(this.tokenize(t))).length,a=e.length,u=1,c=s+a;r.maxEditLength&&(c=Math.min(c,r.maxEditLength));var d=null!=(n=r.timeout)?n:1/0,f=Date.now()+d,h=[{oldPos:-1,lastComponent:void 0}],g=this.extractCommon(h[0],t,e,0);if(h[0].oldPos+1>=a&&g+1>=s)return o([{value:this.join(t),count:t.length}]);var p=-1/0,m=1/0;function y(){for(var n=Math.max(p,-u);n<=Math.min(m,u);n+=2){var r=void 0,i=h[n-1],c=h[n+1];i&&(h[n-1]=void 0);var d=!1;if(c){var f=c.oldPos-n;d=c&&0<=f&&f<s}var y=i&&i.oldPos+1<a;if(!d&&!y){h[n]=void 0;continue}if(r=!y||d&&i.oldPos+1<c.oldPos?l.addToPath(c,!0,void 0,0):l.addToPath(i,void 0,!0,1),g=l.extractCommon(r,t,e,n),r.oldPos+1>=a&&g+1>=s)return o(function(e,t,n,r,i){for(var l,o=[];t;)o.push(t),l=t.previousComponent,delete t.previousComponent,t=l;o.reverse();for(var s=0,a=o.length,u=0,c=0;s<a;s++){var d=o[s];if(d.removed){if(d.value=e.join(r.slice(c,c+d.count)),c+=d.count,s&&o[s-1].added){var f=o[s-1];o[s-1]=o[s],o[s]=f}}else{if(!d.added&&i){var h=n.slice(u,u+d.count);h=h.map(function(e,t){var n=r[c+t];return n.length>e.length?n:e}),d.value=e.join(h)}else d.value=e.join(n.slice(u,u+d.count));u+=d.count,d.added||(c+=d.count)}
1}var g=o[a-1];return a>1&&"string"==typeof g.value&&(g.added||g.removed)&&e.equals("",g.value)&&(o[a-2].value+=g.value,o.pop()),o}(l,r.lastComponent,t,e,l.useLongestToken));h[n]=r,r.oldPos+1>=a&&(m=Math.min(m,n-1)),g+1>=s&&(p=Math.max(p,n+1))}u++}if(i)!function e(){setTimeout(function(){if(u>c||Date.now()>f)return i();y()||e()},0)}();else for(;u<=c&&Date.now()<=f;){var x=y();if(x)return x}},addToPath:function(e,t,n,r){var i=e.lastComponent;return i&&i.added===t&&i.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:i.count+1,added:t,removed:n,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:i}}},extractCommon:function(e,t,n,r){for(var i=t.length,l=n.length,o=e.oldPos,s=o-r,a=0;s+1<i&&o+1<l&&this.equals(t[s+1],n[o+1]);)s++,o++,a++;return a&&(e.lastComponent={count:a,previousComponent:e.lastComponent}),e.oldPos=o,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var $=new q,G=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Y=/\S/,X=new q;X.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Y.test(e)&&!Y.test(t)},X.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&G.test(t[n])&&G.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var Q=new q;function ee(e){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Q.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t},new q().tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},new q().tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var et=Object.prototype.toString,en=new q;en.useLongestToken=!0,en.tokenize=Q.tokenize,en.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=void 0===r?function(e,t){return void 0===t?n:t}:r;return"string"==typeof e?e:JSON.stringify(function e(t,n,r,i,l){for(n=n||[],r=r||[],i&&(t=i(l,t)),o=0;o<n.length;o+=1)if(n[o]===t)return r[o];if("[object Array]"===et.call(t)){for(n.push(t),s=Array(t.length),r.push(s),o=0;o<t.length;o+=1)s[o]=e(t[o],n,r,i,l);return n.pop(),r.pop(),s}if(t&&t.toJSON&&(t=t.toJSON()),"object"===ee(t)&&null!==t){n.push(t),s={},r.push(s);var o,s,a,u=[];for(a in t)t.hasOwnProperty(a)&&u.push(a);for(u.sort(),o=0;o<u.length;o+=1)s[a=u[o]]=e(t[a],n,r,i,a);n.pop(),r.pop()}else s=t;return s}(e,null,null,i),i,"  ")},en.equals=function(e,t){return q.prototype.equals.call(en,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var er=new q;er.tokenize=function(e){return e.slice()},er.join=er.removeEmpty=function(e){return e};Z.red,Z.grey,Z.green,Z.dim().italic,Z.dim("→"),Z.dim("\xb7"),Z.dim("↵");function ei(e){let t=(e=e.replace(/\r?\n/g,"\n")).match(/^[ \t]*(?=\S)/gm),n=0,r=1/0,i=(t||[]).length;for(;n<i;n++)r=Math.min(r,t[n].length);return i&&r?e.replace(RegExp(`^[ \\t]{${r}}`,"gm"),""):e}class el extends Error{constructor(e={}
1){super(e.message),this.name="Assertion",this.code="ERR_ASSERTION",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.details=e.details||!1,this.generated=!!e.generated,this.operator=e.operator,this.expects=e.expects,this.actual=e.actual}}function eo(e,t,n,r,i,l,o){if(e)return;if(o instanceof Error)throw o;let s=i&&i(t,n);throw new el({actual:t,expects:n,operator:r,message:o||l,details:s,generated:!o})}function es(e,t){eo(!e,!0,!1,"not",!1,"Expected value to be falsey",t)}es.ok=es,es.equal=function(e,t,n){eo(!H(e,t),e,t,"not.equal",!1,"Expected values not to be deeply equal",n)},es.type=function(e,t,n){let r=typeof e;eo(r!==t,r,t,"not.type",!1,`Expected "${r}" not to be "${t}"`,n)},es.instance=function(e,t,n){let r="`"+(t.name||t.constructor.name)+"`";eo(!(e instanceof t),e,t,"not.instance",!1,`Expected value not to be an instance of ${r}`,n)},es.snapshot=function(e,t,n){eo((e=ei(e))!==(t=ei(t)),e,t,"not.snapshot",!1,"Expected value not to match snapshot",n)},es.fixture=function(e,t,n){eo((e=ei(e))!==(t=ei(t)),e,t,"not.fixture",!1,"Expected value not to match fixture",n)},es.match=function(e,t,n){"string"==typeof t?eo(!e.includes(t),e,t,"not.match",!1,`Expected value not to include "${t}" substring`,n):eo(!t.test(e),e,t,"not.match",!1,`Expected value not to match \`${String(t)}\` pattern`,n)},es.throws=function(e,t,n){n||"string"!=typeof t||(n=t,t=null);try{e()}catch(e){"function"==typeof t?eo(!t(e),!0,!1,"not.throws",!1,"Expected function not to throw matching exception",n):t instanceof RegExp?eo(!t.test(e.message),!0,!1,"not.throws",!1,`Expected function not to throw exception matching \`${String(t)}\` pattern`,n):t||eo(!1,!0,!1,"not.throws",!1,"Expected function not to throw",n)}};var ea=n(17032),eu=n(23362),ec=n(41006);let ed={eof:null,exclamationMark:33,dash:45,equalsTo:61,greaterThan:62},ef={data:"data",lineEnding:"lineEnding",linePrefix:"linePrefix",characterEscape:"characterEscape"},eh={attentionSideAfter:2};var eg="highlightSequenceTemporary",ep="highlightSequence",em=n(34091),ey=n(79168),ex=n(3407);let e_={}.hasOwnProperty,ev=Symbol("continue"),eC=Symbol("exit"),eb=Symbol("skip");function ew(e){return Array.isArray(e)?e:"number"==typeof e?[ev,e]:[e]}function eT(e){return!!(e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.length>0)}function ek(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function eE(e){let t=e||{},n=t.loc||{},r=t.range||[void 0,void 0],i=eS(n.start,r[0]||t.start),l=eS(n.end,r[1]||t.end);if(i&&l)return{start:i,end:l}}function eS(e,t){if(e&&"object"==typeof e){let n="line"in e?eN(e.line):void 0,r="column"in e?eN(e.column):void 0;if(n&&void 0!==r)return{line:n,column:r+1,offset:eN(t)}}}function eN(e){return"number"==typeof e&&e>-1?e:void 0}let eM="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",eI="#unexpected-type-in-code-expected-an-object-spread-spread";function eA(e,t,n,r,i,l,o,s,a,u,c){let d,f,h=this,g=this.events.length+3,p=0;return function(t){return e.enter(n),e.enter(r),e.consume(t),e.exit(r),d=h.now(),m};function m(c){if(null===c){if(f)throw f;let e=new L.o("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:h.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw e.url=eM+"#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",e}if((0,ex.HP)(c))return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),x;if(125===c&&0===p){let p=l?eL.call(h,l,o,i,g,d,u||!1,a||!1):{type:"ok",estree:void 0};if("ok"===p.type){e.enter(r),e.consume(c),e.exit(r);let i=e.exit(n);return s&&p.estree&&Object.assign(i,{estree:p.estree}),t}return f=p.message,e.enter(i),e.consume(c),y}return e.enter(i),y(c)}function y(t){return 125===t&&0===p||null===t||(0,ex.HP)(t)?(e.exit(i),m(t)):(123!==t||l?125===t&&(p-=1):p+=1,e.consume(t),y)}function x(t){let n=h.now();if(n.line!==d.line&&!c&&h.parser.lazy[n.line]){let e=new L.o("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:h.now(),ruleId:"unex
1pected-lazy",source:"micromark-extension-mdx-expression"});throw e.url=eM+"#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",e}return(0,ex.On)(t)?(0,ey.N)(e,m,"linePrefix",3)(t):m(t)}}function eL(e,t,n,r,i,l,o){let s=function(e,t){let n,r,i=t.prefix||"",l=t.suffix||"",o=Object.assign({},t.acornOptions),s=[],a=[],u=o.onComment,c=o.onToken,d=!1,f=Object.assign({},o,{onComment:s,preserveParens:!0});c&&(f.onToken=a);let h=function(e,t){let n={value:"",stops:[]},r=-1;for(;++r<e.length;){let i=e[r];if("enter"===i[0]){let e=i[1].type;if("lineEnding"===e||t.includes(e)){let e=i[2].sliceStream(i[1]);for(;e.length>0&&-1===e[0];)e.shift();let t=function(e){let t,n=-1,r=[];for(;++n<e.length;){let i,l=e[n];if("string"==typeof l)i=l;else switch(l){case -5:i="\r";break;case -4:i="\n";break;case -3:i="\r\n";break;case -2:i="	";break;case -1:if(t)continue;i=" ";break;default:i=String.fromCharCode(l)}t=-2===l,r.push(i)}return r.join("")}(e);n.stops.push([n.value.length,i[1].start]),n.value+=t,n.stops.push([n.value.length,i[1].end])}}}return n}(e,t.tokenTypes),g=h.value,p=i+g+l,m=t.expression&&ek(g);if(m&&!t.allowEmpty)throw new L.o("Unexpected empty expression",{place:v(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{n=t.expression&&!m?t.acorn.parseExpressionAt(p,0,f):t.acorn.parse(p,f)}catch(t){let e=v(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,""),t.pos=e.offset,t.loc={line:e.line,column:e.column-1},r=t,d=t.raisedAt>=i.length+g.length||"Unterminated comment"===t.message}if(n&&t.expression&&!m)if(ek(p.slice(n.end,p.length-l.length)))n={type:"Program",start:0,end:i.length+g.length,body:[{type:"ExpressionStatement",expression:n,start:0,end:i.length+g.length}],sourceType:"module",comments:[]};else{let e=v(n.end),t=Error("Unexpected content after expression");t.pos=e.offset,t.loc={line:e.line,column:e.column-1},r=t,n=void 0}if(n){var y,x;let e,t;if(n.comments=s,y=n,"function"==typeof(x=function(e,t,n,r){let i=r[r.length-1],l=t;"ParenthesizedExpression"===e.type&&i&&l&&("number"==typeof n&&(i=i[l],l=n),i[l]=e.expression),_(e)})?e=x:x,(function n(r,i,l,o){return eT(r)&&(s.displayName="node ("+r.type+")"),s;function s(){let s=e?ew(e(r,i,l,o)):[];if(s[0]===eC)return s;if(s[0]!==eb){let e;for(e in r)if(e_.call(r,e)&&r[e]&&"object"==typeof r[e]&&"data"!==e&&"position"!==e){let t=o.concat(r),i=r[e];if(Array.isArray(i)){let r=0;for(;r>-1&&r<i.length;){let l=i[r];if(eT(l)){let i=n(l,e,r,t)();if(i[0]===eC)return i;r="number"==typeof i[1]?i[1]:r+1}else r++}}else if(eT(i)){let r=n(i,e,void 0,t)();if(r[0]===eC)return r}}}return t?ew(t(r,i,l,o)):s}})(y,void 0,void 0,[])(),Array.isArray(u))u.push(...s);else if("function"==typeof u)for(let e of s)u("Block"===e.type,e.value,e.start,e.end,e.loc.start,e.loc.end);for(let e of a)e.end<=i.length||e.start-i.length>=g.length||(_(e),Array.isArray(c)?c.push(e):c(e))}return{estree:n,error:r,swallow:d};function _(e){let t=v(e.start),n=v(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function v(e){let n=e-i.length;n<0?n=0:n>g.length&&(n=g.length);let r=function(e,t){let n=0;for(;n<e.length&&e[n][0]<=t;)n+=1;if(0===n)return;let[r,i]=e[n-1],l=t-r;return{line:i.line,column:i.column+l,offset:i.offset+l}}(h.stops,n);return r||(r={line:t.start.line,column:t.start.column,offset:t.start.offset}),r}}(this.events.slice(r),{acorn:e,tokenTypes:[n],acornOptions:t,start:i,expression:!0,allowEmpty:l,prefix:o?"({":"",suffix:o?"})":""}),a=s.estree;if(o&&a){let e=a.body[0];if("ExpressionStatement"!==e.type||"ObjectExpression"!==e.expression.type){let t=eE(e),n=new L.o("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw n.url=eM+eI,n}if(e.expression.properties[1]){let t=eE(e.expression.properties[1]),n=new L.o("Unexpected extra content in spread: only a single spread is supported",{place:t.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw n.url=eM+"#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",n}if(e.expression.properties[0]&&"SpreadElement"!==e.expression.properties[0].type){let t=eE(e.expression.properties[0]),n=new L.o("Unexpected `"+e.expression.properties[0].type+"` in code: only spread elements are supported",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw n.url=eM+eI,n}}if(s.error){let e=new L.o("Could not parse expression with acorn",{cause:s.error,place:{line:s.error.loc.line,column:s.error.loc.column+1,offset:s.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return e.url=eM+"#could-not-parse-expression-with-acorn",{type:"nok",message:e}}return{type:"ok",estree:a}}let eP="https://github.com/micromark/micromark-extension-mdx-jsx";function eO(e,t,n,r,i,l,o,s,a,u,c,d,f,h,g,p,m,y,x,_,v,C,b,w,T,k,E,S,N,M,I,A){let P,O,F=this;return function(t){return e.enter(s),e.enter(a),e.consume(t),e.exit(a),D};function D(e){return(0,ex.Ee)(e)?n(e):(P=V,ei(e))}function V(t){return 47===t?(e.enter(u),e.consume(t),e.exit(u),P=H,ei):62===t?er(t):null!==t&&t>=0&&(0,em.ni)(t)?(e.enter(d),e.enter(f),e.consume(t),R):void eo(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(33===t?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function H(t){return 62===t?er(t):null!==t&&t>=0&&(0,em.ni)(t)?(e.enter(d),e.enter(f),e.consume(t),R):void eo(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(42===t||47===t?" (note: JS comments in JSX tags are not supported in MDX)":""))}function R(t){return null!==t&&t>=0&&(0,em.jD)(t,{jsx:!0})?(e.consume(t),R):46===t||47===t||58===t||62===t||123===t||(0,ex.Ee)(t)||(0,ex.Ny)(t)?(e.exit(f),P=J,ei(t)):void eo(t,"in name","a 
1name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function J(t){return 46===t?(e.enter(h),e.consume(t),e.exit(h),P=B,ei):58===t?(e.enter(p),e.consume(t),e.exit(p),P=z,ei):47===t||62===t||123===t||null!==t&&t>=0&&(0,em.ni)(t)?(e.exit(d),U(t)):void eo(t,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function B(t){if(null!==t&&t>=0&&(0,em.ni)(t))return e.enter(g),e.consume(t),j;eo(t,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function j(t){return null!==t&&t>=0&&(0,em.jD)(t,{jsx:!0})?(e.consume(t),j):46===t||47===t||62===t||123===t||(0,ex.Ee)(t)||(0,ex.Ny)(t)?(e.exit(g),P=K,ei(t)):void eo(t,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function K(t){return 46===t?(e.enter(h),e.consume(t),e.exit(h),P=B,ei):47===t||62===t||123===t||null!==t&&t>=0&&(0,em.ni)(t)?(e.exit(d),U(t)):void eo(t,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function z(t){if(null!==t&&t>=0&&(0,em.ni)(t))return e.enter(m),e.consume(t),Z;eo(t,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(43===t||null!==t&&t>46&&t<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function Z(t){return null!==t&&t>=0&&(0,em.jD)(t,{jsx:!0})?(e.consume(t),Z):47===t||62===t||123===t||(0,ex.Ee)(t)||(0,ex.Ny)(t)?(e.exit(m),P=W,ei(t)):void eo(t,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function W(t){if(47===t||62===t||123===t||null!==t&&t>=0&&(0,em.ni)(t))return e.exit(d),U(t);eo(t,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function U(t){return 47===t?(e.enter(c),e.consume(t),e.exit(c),P=en,ei):62===t?er(t):123===t?eA.call(F,e,q,y,x,_,r,i,l,!0,!1,o)(t):null!==t&&t>=0&&(0,em.ni)(t)?(e.enter(v),e.enter(C),e.enter(b),e.consume(t),$):void eo(t,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function q(e){return P=U,ei(e)}function $(t){return null!==t&&t>=0&&(0,em.jD)(t,{jsx:!0})?(e.consume(t),$):47===t||58===t||61===t||62===t||123===t||(0,ex.Ee)(t)||(0,ex.Ny)(t)?(e.exit(b),P=G,ei(t)):void eo(t,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function G(t){return 58===t?(e.enter(w),e.consume(t),e.exit(w),P=Y,ei):61===t?(e.exit(C),e.enter(k),e.consume(t),e.exit(k),P=ee,ei):47===t||62===t||123===t||(0,ex.Ee)(t)||(0,ex.Ny)(t)||null!==t&&t>=0&&(0,em.ni)(t)?(e.exit(C),e.exit(v),P=U,ei(t)):void eo(t,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Y(t){if(null!==t&&t>=0&&(0,em.ni)(t))return e.enter(T),e.consume(t),X;eo(t,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function X(t){return null!==t&&t>=0&&(0,em.jD)(t,{jsx:!0})?(e.consume(t),X):47===t||61===t||62===t||123===t||(0,ex.Ee)(t)||(0,ex.Ny)(t)?(e.exit(T),e.exit(C),P=Q,ei(t)):void eo(t,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Q(t){return 61===t?(e.enter(k),e.consume(t),e.exit(k),P=ee,ei):47===t||62===t||123===t||null!==t&&t>=0&&(0,em.ni)(t)?(e.exit(v),U(t)):void eo(t,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function ee(t){return 34===t||39===t?(e.enter(E),e.enter(S),e.consume(t),e.exit(S),O=t,function t(n){return(null===n&&eo(n,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(O)+"`"),n===O)?(e.enter(S),e.consume(n),e.exit(S),e.exit(E),e.exit(v),O=void 0,P=U,ei):(0,ex.HP)(n)?(P=t,ei(n)):(e.enter(N),function n(r){return null===r||r===O||(0,ex.HP)(r)?(e.exit(N),t(r)):(e.consume(r),n)}(n))}):123===t?eA.call(F,e,et,M,I,A,r,i,l,!1,!1,o)(t):void eo(t,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(60===t?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function et(t){return e.exit(v),P=U,ei(t)}function en(e){if(62===e)return er(e);eo(e,"after self-closing slash","`>` to end the tag"+(42===e||47===e?" (note: JS comments in JSX tags are not supported in MDX)":""))}function er(n){return e.enter(a),e.consume(n),e.exit(a),e.exit(s),t}function ei(t){return(0,ex.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),el):(0,ex.On)(t)||(0,ex.Ny)(t)?(e.enter("esWhitespace"),function t(n){return(0,ex.HP)(n)?(e.exit("esWhitespace"),ei(n)):(0,ex.On)(n)||(0,ex.Ny)(n)?(e.consume(n),t):(e.exit("esWhitespace"),P(n))}(t)):P(t)}function el(e){if(!o&&F.parser.lazy[F.now().line]){let e=new L.o("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",F.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw e.url=eP+"#unexpected-lazy-line-in-container-expected-line-to-be",e}return ei(e)}function eo(e,t,n){let r=new L.o("Unexpected "+(null===e?"end of file":"character `"+(96===e?"` ` `":String.fromCodePoint(e))+"` (U+"+e.toString(16).toUpperCase().padStart(4,"0")+")")+" "+t+", expected "+n,F.now(),"micromark-extension-mdx-jsx:unexpected-"+(null===e?"eof":"character"));throw r.url=eP+(null===e?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-ex
1pected-expect"),r}}var eF=n(75164);let eD={}.hasOwnProperty;var eV=n(62737),eH=n(69512),eR=n(48411);let eJ=[function(e,t,n,r){if("code"===t.type&&(0,eH.m)(t,r)&&("list"===e.type||e.type===t.type&&(0,eH.m)(e,r)))return!1;if("spread"in n&&"boolean"==typeof n.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&(0,eR.f)(t,r)))return;return+!!n.spread}}],eB=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],ej=[{character:"	",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"	",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"	",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:eB},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:eB},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ 	\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:eB},{atBreak:!0,character:"+",after:"(?:[ 	\r\n])"},{atBreak:!0,character:"-",after:"(?:[ 	\r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ 	\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:eB},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:eB},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:eB},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:eB},{atBreak:!0,character:"~"}];var eK=n(55592);function ez(e){return e.label||!e.identifier?e.label||"":(0,eK.s)(e.identifier)}function eZ(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}var eW=n(9038);let eU=/\r?\n|\r/g;function eq(e,t){let n,r=[],i=0,l=0;for(;n=eU.exec(e);)o(e.slice(i,n.index)),r.push(n[0]),i=n.index+n[0].length,l++;return o(e.slice(i)),r.join("");function o(e){r.push(t(e,l,!e))}}var e$=n(91305);function eG(e,t){return e-t}function eY(e,t){let n,r=/\\(?=[!-/:-@[-`{-~])/g,i=[],l=[],o=e+t,s=-1,a=0;for(;n=r.exec(o);)i.push(n.index);for(;++s<i.length;)a!==i[s]&&l.push(e.slice(a,i[s])),l.push("\\"),a=i[s];return l.push(e.slice(a)),l.join("")}function eX(e){let t=e||{},n=t.now||{},r=t.lineShift||0,i=n.line||1,l=n.column||1;return{move:function(e){let t=e||"",n=t.split(/\r?\n|\r/g),o=n[n.length-1];return i+=n.length-1,l=1===n.length?l+o.length:1+o.length+r,t},current:function(){return{now:{line:i,column:l},lineShift:r}},shift:function(e){r+=e}}}function eQ(e,t){let n={associationId:ez,containerPhrasing:e2,containerFlow:e9,createTracker:eX,compilePattern:eZ,enter:function(e){return n.stack.push(e),function(){n.stack.pop()}},handlers:{...eV.p},handle:void 0,indentLines:eq,indexStack:[],join:[...eJ],options:{},safe:e7,stack:[],unsafe:[...ej]};!function e(t,n){var r,i,l,o;let s,a=-1;if(n.extensions)for(;++a<n.extensions.length;)e(t,n.extensions[a]);for(s in n)if(eD.call(n,s))switch(s){case"extensions":break;case"unsafe":case"join":r=t[s],(i=n[s])&&r.push(...i);break;case"handlers":l=t[s],(o=n[s])&&Object.assign(l,o);break;default:t.options[s]=n[s]}return t}(n,t||{}),n.options.tightDefinitions&&n.join.push(e5),n.handle=(0,eF.A)("type",{invalid:e1,unknown:e0,handlers:n.handlers});let r=n.handle(e,void 0,n,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0});return r&&10!==r.charCodeAt(r.length-1)&&13!==r.charCodeAt(r.length-1)&&(r+="\n"),r}function e1(e){throw Error("Cannot handle value `"+e+"`, expected node")}function e0(e){throw Error("Cannot handle unknown node `"+e.type+"`")}function e5(e,t){if("definition"===e.type&&e.type===t.type)return 0}function e2(e,t){return function(e,t,n){let r,i=t.indexStack,l=e.children||[],o=[],s=-1,a=n.before;i.push(-1);let u=t.createTracker(n);for(;++s<l.length;){let c,d=l[s];if(i[i.length-1]=s,s+1<l.length){let n=t.handle.handlers[l[s+1].type];n&&n.peek&&(n=n.peek),c=n?n(l[s+1],e,t,{before:"",after:"",...u.current()}).charAt(0):""}else c=n.after;o.length>0&&("\r"===a||"\n"===a)&&"html"===d.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" ",(u=t.createTracker(n)).move(o.join("")));let f=t.handle(d,e,t,{...u.current(),after:c,before:a});r&&r===f.slice(0,1)&&(f=(0,eW.T)(r.charCodeAt(0))+f.slice(1));let h=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,r=void 0,h&&(o.length>0&&h.before&&a===o[o.length-1].slice(-1)&&(o[o.length-1]=o[o.length-1].slice(0,-1)+(0,eW.T)(a.charCo
1deAt(0))),h.after&&(r=c)),u.move(f),o.push(f),a=f.slice(-1)}return i.pop(),o.join("")}(e,this,t)}function e9(e,t){return function(e,t,n){let r=t.indexStack,i=e.children||[],l=t.createTracker(n),o=[],s=-1;for(r.push(-1);++s<i.length;){let n=i[s];r[r.length-1]=s,o.push(l.move(t.handle(n,e,t,{before:"\n",after:"\n",...l.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),s<i.length-1&&o.push(l.move(function(e,t,n,r){let i=r.join.length;for(;i--;){let l=r.join[i](e,t,n,r);if(!0===l||1===l)break;if("number"==typeof l)return"\n".repeat(1+l);if(!1===l)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}(n,i[s+1],e,t)))}return r.pop(),o.join("")}(e,this,t)}function e7(e,t){return function(e,t,n){let r=(n.before||"")+(t||"")+(n.after||""),i=[],l=[],o={},s=-1;for(;++s<e.unsafe.length;){let t,n=e.unsafe[s];if(!(0,e$.q)(e.stack,n))continue;let l=e.compilePattern(n);for(;t=l.exec(r);){let e="before"in n||!!n.atBreak,r="after"in n,l=t.index+(e?t[1].length:0);i.includes(l)?(o[l].before&&!e&&(o[l].before=!1),o[l].after&&!r&&(o[l].after=!1)):(i.push(l),o[l]={before:e,after:r})}}i.sort(eG);let a=n.before?n.before.length:0,u=r.length-(n.after?n.after.length:0);for(s=-1;++s<i.length;){let e=i[s];!(e<a)&&!(e>=u)&&(!(e+1<u)||i[s+1]!==e+1||!o[e].after||o[e+1].before||o[e+1].after)&&(i[s-1]!==e-1||!o[e].before||o[e-1].before||o[e-1].after)&&(a!==e&&l.push(eY(r.slice(a,e),"\\")),a=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(l.push((0,eW.T)(r.charCodeAt(e))),a++):l.push("\\"))}return l.push(eY(r.slice(a,u),n.after)),l.join("")}(this,e,t)}let e3=["mdxJsxTextElement","mdxJsxFlowElement"];function e8(e){return e3.includes(e.type)&&e6.includes(e.name.toLowerCase())}let e6=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","input","ins","kbd","label","legend","li","link","main","map","mark","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function e4(e){let t={};return e.split(";").filter(e=>""!==e.trim()).forEach(e=>{let[n,r]=e.split(":").map(e=>e.trim());t[n]=r}),t}let te=/\s+$/,tt=/^\s+/;var tn=n(97853);function tr(e){return e.children instanceof Array}class ti extends Error{constructor(e,t){super(e),this.name="MarkdownParseError",this.cause=t}}class tl extends Error{constructor(e){super(e),this.name="UnrecognizedMarkdownConstructError"}}var to=n(11018),ts=Object.defineProperty,ta=(e,t,n)=>(((e,t,n)=>t in e?ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),n);let tu="generic-html";class tc extends l.fGB{constructor(e,t,n,r){super(r),ta(this,"__tag"),ta(this,"__nodeType"),ta(this,"__attributes"),this.__tag=e,this.__nodeType=t,this.__attributes=n}static getType(){return tu}static clone(e){return new tc(e.__tag,e.__nodeType,e.__attributes,e.__key)}getTag(){return this.__tag}getNodeType(){return this.__nodeType}getAttributes(){return this.__attributes}updateAttributes(e){this.getWritable().__attributes=e}getStyle(){var e;return null==(e=this.__attributes.find(e=>"style"===e.name))?void 0:e.value}createDOM(){let e=this.__tag,t=document.createElement(e);return this.__attributes.forEach(e=>{t.setAttribute(e.name,e.value)}),t}updateDOM(){return!1}static importDOM(){return{}}exportDOM(e){let{element:t}=super.exportDOM(e);return{element:t}}static importJSON(e){let t=td(e.tag,e.mdxType,e.attributes);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),attributes:this.__attributes,mdxType:this.__nodeType,type:tu,version:1}}extractWithChild(){return!0}isInline(){return"mdxJsxTextElement"===this.__nodeType}}
1function td(e,t,n){return(0,l.pTq)(new tc(e,t,n))}let tf={testLexicalNode:function(e){return e instanceof tc},visitLexicalNode({actions:e,lexicalNode:t}){e.addAndStepInto("mdxJsxTextElement",{name:t.getTag(),type:t.getNodeType(),attributes:t.getAttributes()})},priority:-100},th={testLexicalNode:l.wH$,visitLexicalNode:({mdastParent:e,actions:t})=>{t.appendToParent(e,{type:"text",value:"\n"})}},tg={testLexicalNode:l.bSg,visitLexicalNode:({actions:e})=>{e.addAndStepInto("paragraph")}},tp={testLexicalNode:l.hVZ,visitLexicalNode:({actions:e})=>{e.addAndStepInto("root")}};var tm=n(30710);function ty(e){return"text"===e.type}let tx=["u","span","sub","sup"],t_={shouldJoin:(e,t)=>["text","emphasis","strong","highlight"].includes(e.type)?e.type===t.type:!!("mdxJsxTextElement"===e.type&&"mdxJsxTextElement"===t.type&&tx.includes(t.name))&&e.name===t.name&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes),join:(e,t)=>ty(e)&&ty(t)?{type:"text",value:e.value+t.value}:{...e,children:[...e.children,...t.children]},testLexicalNode:l.kFe,visitLexicalNode:({lexicalNode:e,mdastParent:t,actions:n})=>{let r=e.getPreviousSibling(),i=(0,l.kFe)(r)?r.getFormat():0,o=e.getTextContent(),s=e.getFormat(),a=e.getStyle(),u=t;if(a&&(u=n.appendToParent(u,{type:"mdxJsxTextElement",name:"span",children:[],attributes:[{type:"mdxJsxAttribute",name:"style",value:a}]})),i&s&tm.Ig&&(u=n.appendToParent(u,{type:"mdxJsxTextElement",name:"u",children:[],attributes:[]})),i&s&tm.o4&&(u=n.appendToParent(u,{type:"mdxJsxTextElement",name:"sup",children:[],attributes:[]})),i&s&tm.Te&&(u=n.appendToParent(u,{type:"mdxJsxTextElement",name:"sub",children:[],attributes:[]})),i&s&tm.S3&&(u=n.appendToParent(u,{type:"emphasis",children:[]})),i&s&tm.FA&&(u=n.appendToParent(u,{type:"strong",children:[]})),i&s&tm.J6&&(u=n.appendToParent(u,{type:"delete",children:[]})),i&s&tm.sM&&(u=n.appendToParent(u,{type:"highlight",children:[]})),s&tm.Ig&&!(i&tm.Ig)&&(u=n.appendToParent(u,{type:"mdxJsxTextElement",name:"u",children:[],attributes:[]})),s&tm.o4&&!(i&tm.o4)&&(u=n.appendToParent(u,{type:"mdxJsxTextElement",name:"sup",children:[],attributes:[]})),s&tm.Te&&!(i&tm.Te)&&(u=n.appendToParent(u,{type:"mdxJsxTextElement",name:"sub",children:[],attributes:[]})),s&tm.S3&&!(i&tm.S3)&&(u=n.appendToParent(u,{type:"emphasis",children:[]})),s&tm.FA&&!(i&tm.FA)&&(u=n.appendToParent(u,{type:"strong",children:[]})),s&tm.J6&&!(i&tm.J6)&&(u=n.appendToParent(u,{type:"delete",children:[]})),s&tm.sM&&!(i&tm.sM)&&(u=n.appendToParent(u,{type:"highlight",children:[]})),s&tm.jG)return void n.appendToParent(u,{type:"inlineCode",value:o});n.appendToParent(u,{type:"text",value:o})}},tv={testNode:"break",visitNode:function({lexicalParent:e}){e.append((0,l.WKo)())}};function tC(e,t){return[{testNode:t=>"mdxJsxTextElement"===t.type&&t.name===e,visitNode({actions:e,mdastNode:n,lexicalParent:r}){e.addFormatting(t),e.visitChildren(n,r)}},{testNode:t=>"html"===t.type&&t.value===`<${e}>`,visitNode({actions:e,mdastParent:n}){e.addFormatting(t,n)}},{testNode:t=>"html"===t.type&&t.value===`</${e}>`,visitNode({actions:e,mdastParent:n}){e.removeFormatting(t,n)}}]}let tb=[{testNode:"emphasis",visitNode({mdastNode:e,actions:t,lexicalParent:n}
1){t.addFormatting(tm.S3),t.visitChildren(e,n)}},{testNode:"strong",visitNode({mdastNode:e,actions:t,lexicalParent:n}){t.addFormatting(tm.FA),t.visitChildren(e,n)}},...tC("u",tm.Ig),...tC("code",tm.jG),{testNode:"inlineCode",visitNode({mdastNode:e,actions:t}){t.addAndStepInto((0,l.sTu)(e.value).setFormat(t.getParentFormatting()|tm.jG))}},{testNode:"delete",visitNode({mdastNode:e,actions:t,lexicalParent:n}){t.addFormatting(tm.J6),t.visitChildren(e,n)}},{testNode:"highlight",visitNode({mdastNode:e,actions:t,lexicalParent:n}){t.addFormatting(tm.sM),t.visitChildren(e,n)}},...tC("sup",tm.o4),...tC("sub",tm.Te)],tw={testNode:e8,visitNode:function({mdastNode:e,actions:t,lexicalParent:n}){"span"===e.name&&1===e.attributes.length&&"mdxJsxAttribute"===e.attributes[0].type&&"style"===e.attributes[0].name?(t.addStyle(e.attributes[0].value,e),t.visitChildren(e,n)):t.addAndStepInto(td(e.name,e.type,e.attributes))},priority:-100},tT=["listitem","quote","admonition"],tk={testNode:"paragraph",visitNode:function({mdastNode:e,lexicalParent:t,actions:n}){tT.includes(t.getType())?n.visitChildren(e,t):n.addAndStepInto((0,l.lJ7)())}},tE={testNode:"root",visitNode({actions:e,mdastNode:t,lexicalParent:n}){e.visitChildren(t,n)}},tS={testNode:"text",visitNode({mdastNode:e,actions:t}){let n=(0,l.sTu)(e.value);n.setFormat(t.getParentFormatting());let r=t.getParentStyle();""!==r&&n.setStyle(r),t.addAndStepInto(n)}};var tN=n(66934),tM=n(12115);function tI({delay:e,externalHistoryState:t}){let[n]=(0,tN.DF)();return function(e,t,n=1e3){let r=(0,tM.useMemo)(()=>t||s(),[t]);(0,tM.useEffect)(()=>(function(e,t,n){let r,s,a=(r=Date.now(),s=0,(t,i,o,a,u,c)=>{let d=Date.now();
1if(c.has(l.n0X))return s=0,r=d,2;let f=function(e,t,n,r,i){if(null===e||0===n.size&&0===r.size&&!i)return 0;let o=t._selection,s=e._selection;if(i)return 1;if(!((0,l.I2P)(o)&&(0,l.I2P)(s)&&s.isCollapsed()&&o.isCollapsed()))return 0;let a=function(e,t,n){let r=e._nodeMap,i=[];for(let e of t){let t=r.get(e);void 0!==t&&i.push(t)}for(let[e,t]of n){if(!t)continue;let n=r.get(e);void 0===n||(0,l.hVZ)(n)||i.push(n)}return i}(t,n,r);if(0===a.length)return 0;if(a.length>1){let n=t._nodeMap,r=n.get(o.anchor.key),i=n.get(s.anchor.key);return r&&i&&!e._nodeMap.has(r.__key)&&(0,l.kFe)(r)&&1===r.__text.length&&1===o.anchor.offset?2:0}let u=a[0],c=e._nodeMap.get(u.__key);if(!(0,l.kFe)(c)||!(0,l.kFe)(u)||c.__mode!==u.__mode)return 0;let d=c.__text,f=u.__text;if(d===f)return 0;let h=o.anchor,g=s.anchor;if(h.key!==g.key||"text"!==h.type)return 0;let p=h.offset,m=g.offset,y=f.length-d.length;return 1===y&&m===p-1?2:-1===y&&m===p+1?3:4*(-1===y&&m===p)}(t,i,a,u,e.isComposing()),h=(()=>{let h=null===o||o.editor===e,g=c.has(l.bMH);if(!g&&h&&c.has(l.T40))return 0;if(null===t)return 1;let p=i._selection;return a.size>0||u.size>0?!1===g&&0!==f&&f===s&&d<r+n&&h||1===a.size&&function(e,t,n){let r=t._nodeMap.get(e),i=n._nodeMap.get(e),o=t._selection,s=n._selection;return!((0,l.I2P)(o)&&(0,l.I2P)(s)&&"element"===o.anchor.type&&"element"===o.focus.type&&"text"===s.anchor.type&&"text"===s.focus.type||!(0,l.kFe)(r)||!(0,l.kFe)(i)||r.__parent!==i.__parent)&&JSON.stringify(t.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>i.exportJSON()))}(Array.from(a)[0],t,i)?0:1:2*(null===p)})();return r=d,s=f,h});return(0,i.Sd)(e.registerCommand(l.ZKf,()=>((function(e,t){let n=t.redoStack,r=t.undoStack;if(0!==r.length){let i=t.current,o=r.pop();null!==i&&(n.push(i),e.dispatchCommand(l.WWb,!0)),0===r.length&&e.dispatchCommand(l.KfJ,!1),t.current=o||null,o&&o.editor.setEditorState(o.editorState,{tag:l.n0X})}})(e,t),!0),l.jZM),e.registerCommand(l.V30,()=>((function(e,t){let n=t.redoStack,r=t.undoStack;if(0!==n.length){let i=t.current;null!==i&&(r.push(i),e.dispatchCommand(l.KfJ,!0));let o=n.pop();0===n.length&&e.dispatchCommand(l.WWb,!1),t.current=o||null,o&&o.editor.setEditorState(o.editorState,{tag:l.n0X})}})(e,t),!0),l.jZM),e.registerCommand(l.SKc,()=>(o(t),!1),l.jZM),e.registerCommand(l.t5V,()=>(o(t),e.dispatchCommand(l.WWb,!1),e.dispatchCommand(l.KfJ,!1),!0),l.jZM),e.registerUpdateListener(({editorState:n,prevEditorState:r,dirtyLeaves:i,dirtyElements:o,tags:s})=>{let u=t.current,c=t.redoStack,d=t.undoStack,f=null===u?null:u.editorState;if(null!==u&&n===f)return;let h=a(r,n,u,i,o,s);if(1===h)0!==c.length&&(t.redoStack=[],e.dispatchCommand(l.WWb,!1)),null!==u&&(d.push({...u}),e.dispatchCommand(l.KfJ,!0));else if(2===h)return;t.current={editor:e,editorState:n}}))})(e,r,n),[n,e,r])}(n,t,e),null}let tA=()=>tM.createElement(tI,{externalHistoryState:(0,c.X3)(nP)}),tL=(e,t,n)=>{return function(t){return e.enter("comment"),e.consume(t),r};function r(t){return t===ed.exclamationMark?(e.consume(t),i):n(t)}function i(t){return t===ed.dash?(e.consume(t),l):n(t)}function l(t){return t===ed.dash?(e.consume(t),o):n(t)}function o(t){return t===ed.greaterThan?n(t):(0,ex.HP)(t)?u(t):(e.enter(ef.data),t===ed.dash)?(e.consume(t),s):a(t)}function s(e){return e===ed.greaterThan?n(e):a(e)}function a(t){return t===ed.eof?n(t):t===ed.dash?(e.consume(t),d):(0,ex.HP)(t)?(e.exit(ef.data),u(t)):(e.consume(t),a)}function u(t){return e.enter(ef.lineEnding),e.consume(t),e.exit(ef.lineEnding),(0,ey.N)(e,c,ef.linePrefix)}function c(t){return(0,ex.HP)(t)?u(t):(e.enter(ef.data),a(t))}function d(t){return t===ed.dash?(e.consume(t),f):a(t)}function f(n){return n===ed.greaterThan?(e.exit(ef.data),e.enter("commentEnd"),e.consume(n),e.exit("commentEnd"),e.exit("comment"),t(n)):n===ed.dash?(e.consume(n),f):a(n)}},tP={flow:{60:{tokenize:tL,concrete:!0}},text:{60:{tokenize:tL}}};var tO=n(79373);let tF=(0,l.guI)("NESTED_EDITOR_UPDATED_COMMAND"),tD=(0,c.fh)(null),tV=(0,c.fh)(null),tH=(0,c.fh)(""),tR=(0,c.fh)(!0),tJ=(0,c.fh)(!1,e=>{e.sub(e.pipe(tJ,(0,c.EY)(tD)),([e,t])=>{null==t||t.setEditable(!e)})}),tB=(0,c.fh)(""),tj=(0,c.fh)(!1),tK=(0,c.fh)(!1),tz=(0,c.fh)(0),tZ=(0,c.fh)(null),tW=(0,c.HN)(e=>{e.link(e.pipe(tZ,(0,c.pb)(e=>null!==e)),tW)}),tU=(0,c.HN)(e=>{e.sub(e.pipe(tU,(0,c.EY)(tV)),([e,t])=>
1{null==t||t.dispatchCommand(l.mB,e)})}),tq=(0,c.fh)(null,e=>{e.sub(e.pipe(tq,(0,c.EY)(tV)),([t,n])=>{if(!t||!n)return;let r=t.anchor.getNode(),o="root"===r.getKey()?r:(0,i.Bt)(r,e=>{let t=e.getParent();return null!==t&&(0,l.IqF)(t)});null===o&&(o=r.getTopLevelElementOrThrow());let s=o.getKey();if(null!==n.getElementByKey(s)){let t=(0,a.Pi)(o)?o.getTag():o.getType();e.pub(nO,t)}})}),t$=(0,c.fh)(""),tG=(0,c.fh)(""),tY=(0,c.fh)(!1),tX=(0,c.HN)(e=>{e.link(tG,tX),e.sub(t$,t=>{e.pubIn({[tY]:!0,[tG]:t})})}),tQ=(0,c.HN)(e=>{e.link(e.pipe(tX,(0,c.EY)(nc),(0,c.pb)(([,e])=>!e),(0,c.Tj)(([e])=>e)),tQ)},!0),t1=(0,c.fh)([]),t0=(0,c.fh)([]),t5=(0,c.fh)([]),t2=(0,c.fh)([]),t9=(0,c.fh)([]),t7=(0,c.fh)([]),t3=(0,c.fh)({}),t8=(0,c.fh)(!1),t6=(0,c.fh)([]),t4=(0,c.fh)([]),ne=(0,c.fh)([]),nt=(0,c.fh)(null),nn=(0,c.fh)(null),nr=(0,c.fh)(null),ni=nv(t0),nl=nv(t1),no=nv(t5),ns=nv(t2),na=nv(t9),nu=nv(t7),nc=(0,c.fh)(!1),nd=(0,c.HN)(e=>{e.sub(e.pipe(nd,(0,c.EY)(tG,tD,tK),(0,c.pb)(([e,t])=>e.trim()!==t.trim())),([t,,n,r])=>{e.pub(nc,!0),null==n||n.update(()=>{(0,l.NiT)().clear(),nT(e,(0,l.NiT)(),t),r?n.focus():(0,l.n1P)(null)},{onUpdate:()=>{e.pub(nc,!1)}})})}),nf=(0,c.HN)(e=>{e.sub(e.pipe(nf,(0,c.EY)(tV,tK)),([t,n,r])=>{null==n||n.update(()=>{let i=(0,l.vJq)();if(null!==i){let n={children:[],append(e){this.children.push(e)},getType:()=>i.getNodes()[0].getType()};nT(e,n,t),(0,l.H2A)(n.children)}r?n.focus():(0,l.n1P)(null)})})});function nh(){return(0,c.SQ)((e,[t,n])=>(e.forEach(e=>{if(!e)throw Error("You have a subscription that does not return a teardown");e()}),n?t.map(e=>e(n)):[]),[])}let ng=(0,c.fh)(null),np=(0,c.fh)([],e=>{e.pipe(e.combine(np,tV),nh())}),nm=(0,c.fh)([],e=>{e.pipe(e.combine(nm,tD),nh())}),ny=(0,c.fh)(null,to.lQ,(e,t)=>!!(e&&t&&e.editorRef===t.editorRef)),nx=(0,c.HN)(),n_=(0,c.fh)(e=>{throw Error(`No icon component for ${e}`)});function nv(e,t){return(0,c.HN)((n,r)=>{n.changeWith(e,r,(e,t)=>{Array.isArray(t)||(t=[t]);let n=e;for(let r of t)e.includes(r)||(n=[...n,r]);return n}),null==t||t(n,r)})}function nC(e){let t=(0,l.vJq)();(0,l.I2P)(t)&&e.pubIn({[tq]:t,[tz]:t.format})}let nb=nv(nm,(e,t)=>{e.pub(t,[t=>t.registerCommand(l.MvL,(t,n)=>(e.pubIn({[tV]:n,[tK]:!0}),null===n._parentEditor&&n.getEditorState().read(()=>{e.pub(ny,{rootNode:(0,l.NiT)(),editorType:"lexical",editorRef:n})}),nC(e),!1),l.da8),t=>t.registerUpdateListener(({dirtyElements:n,dirtyLeaves:r,editorState:i})=>{let o;null===e.getValue(tZ)&&(0!==n.size||0!==r.size)&&(i.read(()=>{(0,l.NiT)().getLastChild()instanceof l.Kp7&&t.update(()=>{(0,l.NiT)().append((0,l.lJ7)())},{discrete:!0}),o=function({root:e,toMarkdownOptions:t,toMarkdownExtensions:n,visitors:r,jsxComponentDescriptors:i,jsxIsAvailable:o}){return eQ(function({root:e,visitors:t,jsxComponentDescriptors:n,jsxIsAvailable:r,addImportStatements:i=!0}){let o=null,s=new Set,a=new Map;function u(e,t){s.add(e),t&&a.set(e,{...t})}function c(e,n){if(null===o)return o=n;if(!(e.children instanceof Array))throw Error("Attempting to append children to a non-parent");let r=e.children,i=r.at(-1);if(i){let e=t.find(e=>{var t;return null==(t=e.shouldJoin)?void 0:t.call(e,i,n)});if(e){let t=e.join(i,n);return r.splice(r.length-1,1,t),t}}return r.push(n),n}
1function d(e,t){e.getChildren().forEach(e=>{f(e,t)})}function f(e,n,r=null){var i;let o=t.find((t,n)=>{var i;return(null==r||!r.has(n))&&(null==(i=t.testLexicalNode)?void 0:i.call(t,e))});if(!o)throw Error(`no lexical visitor found for ${e.getType()}`,{cause:e});null==(i=o.visitLexicalNode)||i.call(o,{lexicalNode:e,mdastParent:n,actions:{addAndStepInto(t,r={},i=!0){let o={type:t,...r,...i?{children:[]}:{}};c(n,o),(0,l.ff4)(e)&&i&&d(e,o)},appendToParent:c,visitChildren:d,visit:f,registerReferredComponent:u,nextVisitor(){f(e,n,(r??new Set).add(t.indexOf(o)))}}})}if(t=t.sort((e,t)=>(t.priority??0)-(e.priority??0)),f(e,null),null===o)throw Error("traversal ended with no root element");let h=new Map,g=new Map;for(let e of s){let t=n.find(t=>t.name===e)??a.get(e)??n.find(e=>"*"===e.name);if(!t)throw Error(`Component ${e} is used but not imported`);if(t.source)if(t.defaultExport)g.set(e,t.source);else{let{source:n}=t,r=h.get(n);r?r.push(e):h.set(n,[e])}}if(!i){for(let[e,t]of h.entries()){let n=t.filter(e=>a.has(e));n.length>0?h.set(e,n):h.delete(e)}for(let e of g.keys())a.has(e)||g.delete(e)}let p=Array.from(h).map(([e,t])=>({type:"mdxjsEsm",value:`import { ${t.join(", ")} } from '${e}'`}));p.push(...Array.from(g).map(([e,t])=>({type:"mdxjsEsm",value:`import ${e} from '${t}'`})));let m=o,y=m.children.find(e=>"yaml"===e.type);return y?m.children.splice(m.children.indexOf(y)+1,0,...p):m.children.unshift(...p),function e(t,n){if("strong"===t.type||"emphasis"===t.type){let r=t.children.at(-1);if((null==r?void 0:r.type)==="text"){let i=r.value.match(te);if(i){r.value=r.value.replace(te,"");let l=n.at(-1);l&&(l.children.splice(l.children.indexOf(t)+1,0,{type:"text",value:i[0]}),e(l,n.slice(0,-1)))}}let i=t.children.at(0);if((null==i?void 0:i.type)==="text"){let r=i.value.match(tt);if(r){i.value=i.value.replace(tt,"");let l=n.at(-1);l&&(l.children.splice(l.children.indexOf(t),0,{type:"text",value:r[0]}),e(l,n.slice(0,-1)))}}}"children"in t&&t.children.length>0&&t.children.forEach(r=>{e(r,[...n,t])})}(m,[]),function e(t){if("children"in t&&t.children.length>0){if(e8(t)&&1===t.children.length){let e=t.children[0];"mdxJsxTextElement"===e.type&&"span"===e.name&&(e.attributes.forEach(e=>{if("mdxJsxAttribute"===e.type){let n=t.attributes.find(t=>"mdxJsxAttribute"===t.type&&t.name===e.name);if(n)if("className"===e.name){let t=new Set([...n.value.split(" "),...e.value.split(" ")]);n.value=Array.from(t).join(" ")}else"style"===e.name&&(n.value=function(e,t){let n=e4(e),r=e4(t);return Object.entries({...n,...r}).map(([e,t])=>`${e}: ${t}`).join("; ")}(n.value,e.value));else t.attributes.push(e)}}),t.children=e.children)}t.children.forEach(t=>{e(t)})}}(m),r||function e(t){if(Object.hasOwn(t,"children")){let n=[];t.children.forEach(t=>{"mdxJsxTextElement"===t.type&&"u"===t.name?n.push({type:"html",value:"<u>"},...t.children,{type:"html",value:"</u>"}):(n.push(t),e(t))}),t.children=n}}(m),m}({root:e,visitors:r,jsxComponentDescriptors:i,jsxIsAvailable:o}),{extensions:n,...t})+"\n"}({root:(0,l.NiT)(),visitors:e.getValue(t9),jsxComponentDescriptors:e.getValue(t6),toMarkdownExtensions:e.getValue(t7),toMarkdownOptions:e.getValue(t3),jsxIsAvailable:e.getValue(t8)})}),e.pub(tG,o.trim()),e.pub(tY,!1))}),t=>t.registerCommand(l.$7r,()=>(e.pub(tK,!0),!1),l.da8)])}),nw=nv(np,(e,t)=>{e.pub(t,[t=>t.registerUpdateListener(({editorState:t})=>{t.read(()=>{nC(e)})}),t=>t.registerCommand(l.I2H,t=>{var n;let r=e.getValue(tD);return r&&((null==(n=r.getRootElement())?void 0:n.contains(t.relatedTarget))||e.pubIn({[tK]:!1,[nx]:t})),!1},l.da8)])});function nT(e,t,n){try{!function({root:e,markdown:t,visitors:n,syntaxExtensions:r,mdastExtensions:i,...l}){var o;let s;try{s=(0,tn.Y)(t,{extensions:r,mdastExtensions:i})}catch(e){if(e instanceof Error)throw new ti(`Error parsing markdown: ${e.message}`,e);throw new ti(`Error parsing markdown: ${e}`,e)}0===s.children.length&&s.children.push({type:"paragraph",children:[]}),(null==(o=s.children.at(-1))?void 0:o.type)!=="paragraph"&&s.children.push({type:"paragraph",children:[]}),function({root:e,mdastRoot:t,visitors:n,...r}){let i=new WeakMap,l=new WeakMap,o=function(e){let t=new Map;return"root"!==e.type?{importDeclarations:{}}:(e.children.filter(e=>"mdxjsEsm"===e.type).filter(e=>
1e.value.startsWith("import ")).forEach(e=>{var n,r;((null==(r=null==(n=e.data)?void 0:n.estree)?void 0:r.body)??[]).forEach(e=>{"ImportDeclaration"===e.type&&e.specifiers.forEach(n=>{t.set(n.local.name,{source:`${e.source.value}`,defaultExport:"ImportDefaultSpecifier"===n.type})})})}),{importDeclarations:Object.fromEntries(t.entries())})}(t);function s(e,t){if(!tr(e))throw Error("Attempting to visit children of a non-parent");e.children.forEach(n=>{a(n,t,e)})}function a(e,t,u,c=null){let d=n.find((t,n)=>(null==c||!c.has(n))&&("string"==typeof t.testNode?t.testNode===e.type:t.testNode(e,r)));if(!d)try{throw new tl(`Unsupported markdown syntax: ${eQ(e)}`)}catch(t){throw new tl(`Parsing of the following markdown structure failed: ${JSON.stringify({type:e.type,name:"name"in e?e.name:"N/A"})}`)}d.visitNode({mdastNode:e,lexicalParent:t,mdastParent:u,descriptors:r,metaData:o,actions:{visitChildren:s,nextVisitor(){a(e,t,u,(c??new Set).add(n.indexOf(d)))},addAndStepInto(n){t.append(n),tr(e)&&s(e,n)},addFormatting(t,n){!n&&tr(e)&&(n=e),n&&i.set(n,t|(i.get(u)??0))},removeFormatting(t,n){!n&&tr(e)&&(n=e),n&&i.set(n,t^(i.get(u)??0))},getParentFormatting:()=>i.get(u)??0,addStyle(t,n){!n&&tr(e)&&(n=e),n&&l.set(n,t)},getParentStyle:()=>l.get(u)??""}})}n=n.sort((e,t)=>(t.priority??0)-(e.priority??0)),a(t,e,null)}({root:e,mdastRoot:s,visitors:n,...l})}({root:t,visitors:e.getValue(t1),mdastExtensions:e.getValue(t2),markdown:n,syntaxExtensions:e.getValue(t5),jsxComponentDescriptors:e.getValue(t6),directiveDescriptors:e.getValue(t4),codeBlockEditorDescriptors:e.getValue(ne)}),e.pub(tZ,null)}catch(t){if(t instanceof ti||t instanceof tl)e.pubIn({[tG]:n,[tZ]:{error:t.message,source:n}});else throw t}}let nk=(0,c.fh)([]),nE=nv(nk),nS=(0,c.fh)([]),nN=nv(nS),nM=(0,c.fh)([]),nI=nv(nM),nA=(0,c.fh)([]);nv(nA);let nL=nv((0,c.fh)([])),nP=(0,c.fh)(s()),nO=(0,c.fh)("");(0,c.HN)();let nF=(0,c.HN)(e=>{e.sub(e.pipe(nF,(0,c.EY)(tV)),([e,t])=>{null==t||t.update(()=>{let n=(0,l.vJq)();(0,l.I2P)(n)&&((0,u.zI)(n,e),setTimeout(()=>{t.focus()}))})})}),nD=(0,c.HN)(e=>{e.sub(e.pipe(nD,(0,c.EY)(tV)),([e,t])=>{null==t||t.focus(()=>{t.getEditorState().read(()=>{let n=(0,l.vJq)();(0,l.I2P)(n)&&(t.update(()=>{let t=e();t.isInline()?((0,l.H2A)([t]),(0,l.IqF)(t.getParentOrThrow())&&(0,i.cj)(t,l.lJ7).selectEnd()):(0,i.Pe)(t),setTimeout(()=>{"select"in t&&"function"==typeof t.select&&t.select()})}),setTimeout(()=>{t.dispatchCommand(tF,void 0)}))})},{defaultSelection:"rootEnd"})})}),nV=(0,c.fh)("rich-text",e=>{function t(){return(0,c.SQ)((e,t)=>({current:e.next,next:t}),{current:"rich-text",next:"rich-text"})}e.sub(e.pipe(nV,t(),(0,c.EY)(nH)),([{current:t},n])=>{("source"===t||"diff"===t)&&e.pub(nd,n)}),e.sub(e.pipe(nV,t(),(0,c.pb)(e=>"rich-text"===e.current),(0,c.EY)(tV)),([,e])=>{null==e||e.dispatchCommand(tF,void 0)})}),nH=(0,c.fh)("",e=>{e.link(tG,nH),e.link(nH,tX)},!0),nR=(0,c.fh)([]),nJ=nv(nR),nB=(0,c.fh)(()=>{throw Error("No translation function provided")}),nj=(0,c.fh)(tO.C),nK=(0,r.Z)({init(e,t){let n=(null==t?void 0:t.initialMarkdown)??"";e.register(nb),e.register(nw),e.register(tX),e.register(nH),e.pubIn({[t$]:(null==t?void 0:t.trim)?n.trim():n,[n_]:null==t?void 0:t.iconComponentFor,[nl]:[tE,tk,tS,tv,...tb],[ni]:[l.fD3,l.Ey8,tc],[na]:[tp,tg,t_,th,tf],[tH]:null==t?void 0:t.contentEditableClassName,[tR]:null==t?void 0:t.spellCheck,[t3]:null==t?void 0:t.toMarkdownOptions,[tj]:null==t?void 0:t.autoFocus,[tB]:null==t?void 0:t.placeholder,[tJ]:null==t?void 0:t.readOnly,[nB]:null==t?void 0:t.translation,[ns]:[(0,f.p)(),h],[no]:[(0,d.K)(),function(){let e={name:"highlight",tokenize:function(e,t,n){let r=this.previous,i=this.events,l=0;return function(o){return(eo(o===ed.equalsTo,!1,!0,"ok",!1,"Expected value to be truthy","expected `=`"),r===ed.equalsTo&&i[i.length-1][1].type!==ef.characterEscape)?n(o):(e.enter(eg),function i(o){let s=(0,eu.S)(r);if(o===ed.equalsTo)return l>1?n(o):(e.consume(o),l++,i);if(l<2)return n(o);let a=e.exit(eg),u=(0,eu.S)(o);return a._open=!u||u===eh.attentionSideAfter&&!!s,a._close=!s||s===eh.attentionSideAfter&&!!u,t(o)}(o))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&e[n][1].type===eg&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&e[r][1].type===eg&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=ep,e[r][1].type=ep;let i={type:"highlight",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},l={type:"highlightText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",l,t]],s=t.parser.constructs.insideSpan.null;s&&(0,ea.m)(o,o.length,0,(0,ec.W)(s,e.slice(r+1,n),t)),(0,ea.m)(o,o.length,0,[["exit",l,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,ea.m)(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===eg&&(e[n][1].type=ef.data);return e}};return{text:{[ed.equalsTo]:e},insideSpan:{null:[e]},attentionMarkers:{null:[ed.equalsTo]}}}()],[nu]:[function(e){let t={},n=t.quote||'"',r=t.quoteSmart||!1,i=t.tightSelfClosing||!1,l=t.printWidth||1/0,o='"'===n?"'":'"';if('"'!==n&&"'"!==n)throw Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return s.peek=F,{handlers:{mdxJsxFlowElement:s,mdxJsxTextElement:s},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0}
1;function s(e,t,s,a){let u="mdxJsxFlowElement"===e.type,c=!!e.name&&(!e.children||0===e.children.length),d=O(P(s)),f=s.createTracker(a),h=s.createTracker(a),g=[],p=(u?d:"")+"<"+(e.name||""),y=s.enter(e.type);if(f.move(p),h.move(p),e.attributes&&e.attributes.length>0){if(!e.name)throw Error("Cannot serialize fragment w/ attributes");let t=-1;for(;++t<e.attributes.length;){let i,l=e.attributes[t];if("mdxJsxExpressionAttribute"===l.type)i="{"+(l.value||"")+"}";else{if(!l.name)throw Error("Cannot serialize attribute w/o name");let e=l.value,t=l.name,s="";if(null==e);else if("object"==typeof e)s="{"+(e.value||"")+"}";else{let t=r&&(0,m.D)(e,n)>(0,m.D)(e,o)?o:n;s=t+function(e,t){var n=e,r=Object.assign({format:I},t);if(n=n.replace(r.subset?function(e){let t=M.get(e);return t||(t=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(N,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(e),M.set(e,t)),t}(r.subset):k,i),r.subset||r.escapeOnly)return n;return n.replace(E,function(e,t,n){return r.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),r)}).replace(S,i);function i(e,t,n){return r.format(e.charCodeAt(0),n.charCodeAt(t+1),r)}}(e,{subset:[t]})+t}i=t+(s?"=":"")+s}g.push(i)}}let x=!1,_=g.join(" ");u&&(/\r?\n|\r/.test(_)||f.current().now.column+_.length+(c?i?2:3:1)>l)&&(x=!0);let v=f,C=p;if(x){v=h;let e=-1;for(;++e<g.length;)g[e]=d+"  "+g[e];C+=v.move("\n"+g.join("\n")+"\n"+d)}else _&&(C+=v.move(" "+_));return c&&(C+=v.move((i||x?"":" ")+"/")),C+=v.move(">"),e.children&&e.children.length>0&&("mdxJsxTextElement"===e.type?C+=v.move(s.containerPhrasing(e,{...v.current(),before:">",after:"<"})):(v.shift(2),C+=v.move("\n"),C+=v.move(function(e,t,n){let r=t.indexStack,i=e.children,l=t.createTracker(n),o=O(P(t)),s=[],a=-1;for(r.push(-1);++a<i.length;){let n=i[a];r[r.length-1]=a;let u={before:"\n",after:"\n",...l.current()},c=t.handle(n,e,t,u),d="mdxJsxFlowElement"===n.type?c:t.indentLines(c,function(e,t,n){return(n?"":o)+e});s.push(l.move(d)),"list"!==n.type&&(t.bulletLastUsed=void 0),a<i.length-1&&s.push(l.move("\n\n"))}return r.pop(),s.join("")}(e,s,v.current())),C+=v.move("\n"))),c||(C+=v.move((u?d:"")+"</"+(e.name||"")+">")),y(),C}}(),(0,f.K)(),g],[nj]:(null==t?void 0:t.lexicalTheme)??tO.C}),e.singletonSub(tW,null==t?void 0:t.onError),e.singletonSub(tQ,n=>{null==t||t.onChange(n,e.getValue(tY))}),e.singletonSub(nx,null==t?void 0:t.onBlur),(null==t?void 0:t.suppressHtmlProcessing)||e.pubIn({[ns]:[function(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:r,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:d,mdxJsxFlowTagExpressionAttribute:f,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:r,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:d,mdxJsxTextTagExpressionAttribute:f,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:s,mdxJsxFlowTagNamePrimary:a,mdxJsxFlowTagNameMember:u,mdxJsxFlowTagNameLocal:c,mdxJsxFlowTagExpressionAttribute:h,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:g,mdxJsxFlowTagAttributeNameLocal:p,mdxJsxFlowTagAttributeValueLiteral:m,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:k,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:E,mdxJsxFlowTag:S,mdxJsxTextTagClosingMarker:s,mdxJsxTextTagNamePrimary:a,mdxJsxTextTagNameMember:u,mdxJsxTextTagNameLocal:c,mdxJsxTextTagExpressionAttribute:h,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:g,mdxJsxTextTagAttributeNameLocal:p,mdxJsxTextTagAttributeValueLiteral:m,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:k,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:E,mdxJsxTextTag:S}};function e(){this.buffer()}function t(e){return{line:e.line,column:e.column,offset:e.offset}}function n(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function r(e){let t={name:void 0,attributes:[],close:!1,selfClosing:!1,start:e.start,end:e.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=t,this.buffer()}function i(e){let t=this.data.mdxJsxTagStack;if((0,y.ok)(t,"expected `mdxJsxTagStack`"),0===t.length)throw new L.o("Unexpected closing slash `/` in tag, expected an open tag first",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function l(e){let t=this.data.mdxJsxTag;if((0,y.ok)(t,"expected `mdxJsxTag`"),t.close)throw new L.o("Unexpected attribute in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-attribute")}function o(e){let t=this.data.mdxJsxTag;if((0,y.ok)(t,"expected `mdxJsxTag`"),t.close)throw new L.o("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function s(){let e=this.data.mdxJsxTag;(0,y.ok)(e,"expected `mdxJsxTag`"),e.close=!0}function a(e){let t=this.data.mdxJsxTag;(0,y.ok)(t,"expected `mdxJsxTag`"),t.name=this.sliceSerialize(e)}function u(e){let t=this.data.mdxJsxTag;(0,y.ok)(t,"expected `mdxJsxTag`"),t.name+="."+this.sliceSerialize(e)}function c(e){let t=this.data.mdxJsxTag;(0,y.ok)(t,"expected `mdxJsxTag`"),t.name+=":"+this.sliceSerialize(e)}function d(e){let n=this.data.mdxJsxTag;(0,y.ok)(n,"expected `mdxJsxTag`"),l.call(this,e),n.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(e.start),end:void 0}})}function f(e){let n=this.data.mdxJsxTag;(0,y.ok)(n,"expected `mdxJsxTag`"),l.call(this,e),n.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(e.start),end:void 0}}),this.buffer()}function h(e){let n=this.data.mdxJsxTag;(0,y.ok)(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];(0,y.ok)("mdxJsxExpressionAttribute"===r.type);let i=e.estree;r.value=this.resume(),(0,y.ok)(void 0!==r.position),r.position.end=t(e.end),i&&(r.data={estree:i})}function g(e){let n=this.data.mdxJsxTag;(0,y.ok)(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];(0,y.ok)("mdxJsxAttribute"===r.type),r.name=this.sliceSerialize(e),(0,y.ok)(void 0!==r.position),r.position.end=t(e.end)}function p(e){let n=this.data.mdxJsxTag;(0,y.ok)(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];(0,y.ok)("mdxJsxAttribute"===r.type),r.name+=":"+this.sliceSerialize(e),(0,y.ok)(void 0!==r.position),r.position.end=t(e.end)}function m(e){let n=this.data.mdxJsxTag;(0,y.ok)(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];r.value=function(e,t){let n,r,i,l=t||{},o="string"==typeof l.additional?l.additional.charCodeAt(0):l.additional,s=[],a=0,u=-1,c="";l.position&&("start"in l.position||"indent"in l.position?(r=l.position.indent,n=l.position.start):n=l.position);let d=(n?n.line:0)||1,f=(n?n.column:0)||1,h=m();for(a--;++a<=e.length;)if(10===i&&(f=(r?r[u]:0)||1),38===(i=e.charCodeAt(a))){let t,n=e.charCodeAt(a+1);if(9===n||10===n||12===n||32===n||38===n||60===n||Number.isNaN(n)||o&&n===o){c+=String.fromCharCode(i),f++;continue}let r=a+1,u=r,d=r;if(35===n){d=++u;let n=e.charCodeAt(d);88===n||120===n?(t="hexadecimal",d=++u):t="decimal"}else t="named";let T="",E="",S="",N="named"===t?b:"decimal"===t?v:C;for(d--;++d<=e.length;){let n=e.charCodeAt(d);if(!N(n))break;S+=String.fromCharCode(n),"named"===t&&x.includes(S)&&(T=S,E=(0,w.s)(S))}let M=59===e.charCodeAt(d);if(M){d++;let e="named"===t&&(0,w.s)(S);e&&(T=S,E=e)}let I=1+d-r,A="";if(M||!1!==l.nonTerminated)if(S)if("named"===t){if(M&&!E)y(5,1);else if(T!==S&&(I=1+(d=u+T.length)-u,M=!1),!M){let t=T?1:3;if(l.attribute){let n=e.charCodeAt(d);61===n?(y(t,I),E=""):b(n)?E="":y(t,I)}else y(t,I)}A=E}else{var g,p;M||y(2,I);let e=Number.parseInt(S,"hexadecimal"===t?16:10);if((g=e)>=55296&&g<=57343||g>1114111)y(7,I),A=String.fromCharCode(65533);else if(e in _)y(6,I),A=_[e];else{let t="";((p=e)>=1&&p<=8||11===p||p>=13&&p<=31||p>=127&&p<=159||p>=64976&&p<=65007||(65535&p)==65535||(65535&p)==65534)&&y(6,I),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|1023&e),A=t+String.fromCharCode(e)}}else"named"!==t&&y(4,I);if(A){k(),h=m(),a=d-1,f+=d-r+1,s.push(A);let t=m();t.offset++,l.reference&&l.reference.call(l.referenceContext||void 0,A,{start:h,end:t},e.slice(r-1,d)),h=t}else S=e.slice(r-1,d),c+=S,f+=S.length,a=d-1}else 10===i&&(d++,u++,f=0),Number.isNaN(i)?k():(c+=String.fromCharCode(i),f++);return s.join("");function m(){return{line:d,column:f,offset:a+((n?n.offset:0)||0)}}function y(e,t){let n;l.warning&&(n=m(),n.column+=t,n.offset+=t,l.warning.call(l.warningContext||void 0,T[e],n,e))}function k(){c&&(s.push(c),l.text&&l.text.call(l.textContext||void 0,c,{start:h,end:m()}),c="")}}(this.resume(),{nonTerminated:!1}),(0,y.ok)(void 0!==r.position),r.position.end=t(e.end)}function k(e){let n=this.data.mdxJsxTag;(0,y.ok)(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];(0,y.ok)("mdxJsxAttribute"===r.type);let i={type:"mdxJsxAttributeValueExpression",value:this.resume()},l=e.estree;l&&(i.data={estree:l}),r.value=i,(0,y.ok)(void 0!==r.position),r.position.end=t(e.end)}function E(){let e=this.data.mdxJsxTag;(0,y.ok)(e,"expected `mdxJsxTag`"),e.selfClosing=!0}function S(e){let t=this.data.mdxJsxTag;(0,y.ok)(t,"expected `mdxJsxTag`");let n=this.data.mdxJsxTagStack;(0,y.ok)(n,"expected `mdxJsxTagStack`");let r=n[n.length-1];if(t.close&&r.name!==t.name)throw new L.o("Unexpected closing tag `"+I(t)+"`, expected corresponding closing tag for `"+I(r)+"` ("+(0,A.L)(r)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),t.close?n.pop():this.enter({type:"mdxJsxTextTag"===e.type?"mdxJsxTextElement":"mdxJsxFlowElement",name:t.name||null,attributes:t.attributes,children:[]},e,N),t.selfClosing||t.close?this.exit(e,M):n.push(t)}function N(e,t){let n=this.data.mdxJsxTagStack;(0,y.ok)(n,"expected `mdxJsxTagStack`");let r=n[n.length-1];(0,y.ok)(r,"expected `mdxJsxTag`");let i=e?" before the end of `"+e.type+"`":"",l=e?{start:e.start,end:e.end}:void 0;throw new L.o("Expected a closing tag for `"+I(r)+"` ("+(0,A.L)({start:t.start,end:t.end})+")"+i,l,"mdast-util-mdx-jsx:end-tag-mismatch")}function M(e,t){let n=this.data.mdxJsxTag;throw(0,y.ok)(n,"expected `mdxJsxTag`"),new L.o("Expected the closing tag `"+I(n)+"` either after the end of `"+t.type+"` ("+(0,A.L)(t.end)+") or another opening tag after the start of `"+t.type+"` ("+(0,A.L)(t.start)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function I(e){return"<"+(e.close?"/":"")+(e.name||"")+">"}}
1(),{canContainEols:["comment"],enter:{comment(e){this.buffer()}},exit:{comment(e){this.resume()}}}],[no]:[function(e){var t,n,r,i;let l,o={},s=o.acorn;if(s){if(!s.parse||!s.parseExpressionAt)throw Error("Expected a proper `acorn` instance passed in as `options.acorn`");l=Object.assign({ecmaVersion:2024,sourceType:"module"},o.acornOptions,{locations:!0})}else if(o.acornOptions||o.addResult)throw Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:(t=s||void 0,n={acornOptions:l,addResult:o.addResult||void 0},{concrete:!0,name:"mdxJsxFlowTag",tokenize:function(e,r,i){let l=this;return function(e){return o(e)};function o(r){return eO.call(l,e,s,i,t,n.acornOptions,n.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(r)}function s(t){return(0,ex.On)(t)?(0,ey.N)(e,a,"whitespace")(t):a(t)}function a(t){let n,s=l.parser.constructs.flow[123];for(let e of Array.isArray(s)?s:s?[s]:[])if("mdxFlowExpression"===e.name){n=e;break}return 60===t?o(t):123===t&&n?e.attempt(n,a,i)(t):null===t||(0,ex.HP)(t)?r(t):i(t)}}})},text:{60:(r=s||void 0,i={acornOptions:l,addResult:o.addResult||void 0},{name:"mdxJsxTextTag",tokenize:function(e,t,n){return eO.call(this,e,t,n,r,i.acornOptions,i.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}})}}}(),{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}},tP],[nl]:tw}),(null==t?void 0:t.suppressSharedHistory)||e.pub(nE,tA)},postInit(e,t){let n=(0,l.ieJ)({editable:(null==t?void 0:t.readOnly)!==!0,namespace:(null==t?void 0:t.lexicalEditorNamespace)??"MDXEditor",nodes:[...e.getValue(t0),...(null==t?void 0:t.additionalLexicalNodes)??[]],onError:e=>{throw e},theme:e.getValue(nj)});(null==t?void 0:t.editorState)!==null&&n.update(()=>{let r=(null==t?void 0:t.initialMarkdown.trim())??"";nT(e,(0,l.NiT)(),r);let i=null==t?void 0:t.autoFocus;if(i){if(!0===i)return void setTimeout(()=>{n.focus(to.lQ,{defaultSelection:"rootStart"})});setTimeout(()=>{n.focus(to.lQ,{defaultSelection:i.defaultSelection??"rootStart"})})}}),e.pub(tD,n),e.pub(tV,n)},update(e,t){e.pubIn({[tH]:null==t?void 0:t.contentEditableClassName,[tR]:null==t?void 0:t.spellCheck,[t3]:null==t?void 0:t.toMarkdownOptions,[tj]:null==t?void 0:t.autoFocus,[tB]:null==t?void 0:t.placeholder,[tJ]:null==t?void 0:t.readOnly}),e.singletonSub(tQ,n=>{null==t||t.onChange(n,e.getValue(tY))}),e.singletonSub(nx,null==t?void 0:t.onBlur),e.singletonSub(tW,null==t?void 0:t.onError)}});function nz(){return(0,c.X3)(nB)}},98032:()=>{},98801:(e,t,n)=>{"use strict";function r(e,...t){let n=new URL("https://lexical.dev/docs/error"),i=new URLSearchParams;for(let n of(i.append("code",e),t))i.append("v",n);throw n.search=i.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}n.d(t,{$7r:()=>e6,$ey:()=>eN,A7V:()=>rn,AX0:()=>eV,AcJ:()=>ra,Ave:()=>i3,B$P:()=>r8,BEs:()=>iN,CaD:()=>B,Cku:()=>nt,Csq:()=>lo,Cyw:()=>nQ,Ey8:()=>tj,FEN:()=>eT,GMe:()=>nR,H2A:()=>nC,HYn:()=>e2,Huu:()=>ej,I2H:()=>e4,I2P:()=>t8,IlV:()=>iZ,IqF:()=>ia,JM3:()=>eF,Jvg:()=>ry,K8K:()=>i_,KfJ:()=>e8,Kp7:()=>nX,LYZ:()=>rv,MvL:()=>ev,NiT:()=>rB,OXk:()=>eW,PiT:()=>eq,Q$N:()=>ez,R18:()=>eO,RTZ:()=>t4,RTo:()=>eB,Rb_:()=>rk,S1w:()=>np,SKc:()=>e9,Sr4:()=>eG,T40:()=>n8,TJt:()=>i1,TgX:()=>eX,UDz:()=>eR,V30:()=>eP,VSO:()=>e5,WKo:()=>
1tP,WWb:()=>e3,WgU:()=>ru,WuB:()=>ew,XKQ:()=>ek,YW5:()=>eU,Z$U:()=>r_,ZKf:()=>eL,_On:()=>iv,a9V:()=>iC,bM3:()=>eE,bMH:()=>n3,bSg:()=>ro,bbF:()=>eJ,cmH:()=>iB,cqi:()=>te,d8p:()=>eb,da8:()=>rc,dxY:()=>iM,e1k:()=>r2,erb:()=>i$,ev7:()=>t1,fD3:()=>rr,fGB:()=>n$,fUS:()=>eY,ff4:()=>nG,fwY:()=>n6,gCZ:()=>eK,guI:()=>e_,hVZ:()=>n0,hi0:()=>eM,i0_:()=>iT,ieJ:()=>rf,jG6:()=>rM,jZM:()=>rs,k1Q:()=>lc,kBm:()=>tM,kFe:()=>tY,lJ7:()=>rl,lSZ:()=>li,mB:()=>eA,mWO:()=>iX,n0X:()=>n7,n1P:()=>rK,nYP:()=>im,nsf:()=>rF,oqR:()=>eC,pGK:()=>ll,pTq:()=>ic,peL:()=>ip,rN:()=>iR,riq:()=>eQ,sTu:()=>tG,sWS:()=>iQ,sby:()=>iy,scG:()=>rb,sik:()=>e$,t5V:()=>e7,u5G:()=>e0,uTE:()=>nd,uwZ:()=>iq,vAA:()=>ix,vJq:()=>ng,viC:()=>eI,w$Z:()=>eZ,w3H:()=>ib,wH$:()=>tO,waI:()=>eS,wp6:()=>i8,xL4:()=>rH,xQ8:()=>i6,y68:()=>nu});let i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,l=i&&"documentMode"in document?document.documentMode:null,o=i&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),s=i&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),a=!(!i||!("InputEvent"in window)||l)&&"getTargetRanges"in new window.InputEvent("input"),u=i&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),c=i&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,d=i&&/Android/.test(navigator.userAgent),f=i&&/^(?=.*Chrome).*/i.test(navigator.userAgent),h=i&&d&&f,g=i&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!f;function p(...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 m=u||c||g?"\xa0":"​",y=s?"\xa0":m,x={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},_={directionless:1,unmergeable:2},v={center:2,end:6,justify:4,left:1,right:3,start:5},C={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},b={normal:0,segmented:2,token:1},w={0:"normal",2:"segmented",1:"token"},T="$config",k=!1,E=0;function S(e){E=e.timeStamp}function N(e,t,n){let r="BR"===e.nodeName,i=t.__lexicalLineBreak;return i&&(e===i||r&&e.previousSibling===i)||r&&void 0!==rV(e,n)}function M(e,t,n){k=!0;let r=performance.now()-E>100;try{nW(e,()=>{let i=ng()||e.getEditorState().read(()=>{let e=ng();return null!==e?e.clone():null}),l=new Map,o=e.getRootElement(),a=e._editorState,u=e._blockCursorElement,c=!1,d="";for(let n=0;n<t.length;n++){let f=t[n],h=f.type,g=f.target,p=function(e,t,n,r){var i;for(let l=e;l&&(i=l,!0!==i.__lexicalUnmanaged);l=ir(l)){let e=rV(l,t);if(void 0!==e){let t=rF(e,n);if(t)return nQ(t)||!iy(l)?void 0:[l,t]}else if(l===r)return[r,rj(n)]}}(g,e,a,o);if(!p)continue;let[m,y]=p;if("characterData"===h)r&&tY(y)&&rE(g)&&function(e,t,n){if(t8(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return rE(t)&&n.isAttached()}(i,g,y)&&function(e,t,n){let r=ip(is(n)),i=null,l=null;null!==r&&r.anchorNode===e&&(i=r.anchorOffset,l=r.focusOffset);let o=e.nodeValue;null!==o&&rG(t,o,i,l,!1)}(g,y,e);else if("childList"===h){c=!0;let t=f.addedNodes;for(let n=0;n<t.length;n++){let r=t[n],i=rD(r),l=r.parentNode;if(null!=l&&r!==u&&null===i&&!N(r,l,e)){if(s){let e=(iy(r)?r.innerText:null)||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];(N(r,g,e)||u===r)&&(g.appendChild(r),t++)}r!==t&&l.set(m,y)}}}if(l.size>0)for(let[t,n]of l)n.reconcileObservedMutation(t,e);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||N(n,i,e)||l.removeChild(n)}}n.takeRecords()}null!==i&&(c&&rK(i),s&&r6(e)&&i.insertRawText(d))})}finally{k=!1}}function I(e){let t=e._observer;null!==t&&M(e,t.takeRecords(),t)}function A(e){0===E&&is(e).addEventListener("textInput",S,!0),e._observer=new MutationObserver((t,n)=>{M(e,t,n)})}class L{constructor(e,t,n,r=new Map,i){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;let{sharedConfigMap:l}=this.sharedNodeState,o=void 0!==i?i:function(e,t,n){let r=n.size;if(t)for(let i in t){let t=e.get(i);t&&n.has(t)||r++}return r}(l,n,r);this.size=o}getValue(e){let t=this.knownState.get(e);if(void 0!==t)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){let t=this.unknownState[e.key];void 0!==t&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){let e={...this.unknownState},t={};for(let[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(let n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return O(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;let{sharedNodeState:t,unknownState:n}=this,r=new Map(this.knownState);return new L(e,t,function(e,t,n){let r;if(n)for(let[i,l]of Object.entries(n)){let n=e.get(i);n?t.has(n)||t.set(n,n.parse(l)):(r=r||{})[i]=l}return r}(t.sharedConfigMap,r,n),r,this.size)}updateFromKnown(e,t){let n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);let{knownState:r,unknownState:i}=this;r.has(e)||i&&n in i||(i&&(delete i[n],this.unknownState=O(i)),this.size++),r.set(e,t)}updateFromUnknown(e,t){let n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){let{knownState:t}=this;for(let e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(let[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}}function P(e){return e.__state?e.__state.sharedNodeState:rm(iT(),e.getType()).sharedNodeState}function O(e){if(e)for(let t in e)return e}function F(e,t,n){for(let[r,i]of t.knownState){if(e.has(r.key))continue;e.add(r.key);let t=n?n.getValue(r):r.defaultValue;
1if(t!==i&&!r.isEqual(t,i))return!0}return!1}function D(e,t,n){let{unknownState:r}=t,i=n?n.unknownState:void 0;if(r){for(let[t,n]of Object.entries(r))if(!e.has(t)&&(e.add(t),n!==(i?i[t]:void 0)))return!0}return!1}function V(e,t){let n=e.__state;return n&&n.node===e?n.getWritable(t):n}function H(e,t){let n=e.__mode,r=e.__format,i=e.__style,l=t.__mode,o=t.__format,s=t.__style,a=e.__state,u=t.__state;return(null===n||n===l)&&(null===r||r===o)&&(null===i||i===s)&&(null===e.__state||a===u||function(e,t){if(e===t)return!0;if(e&&t&&e.size!==t.size)return!1;let n=new Set;return!(e&&F(n,e,t)||t&&F(n,t,e)||e&&D(n,e,t)||t&&D(n,t,e))}(a,u))}function R(e,t){let n=e.mergeWithSibling(t),r=nO()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function J(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&tY(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){H(t,r)&&(r=R(t,r));break}t.remove()}for(;null!==(n=r.getNextSibling())&&tY(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){H(r,n)&&(r=R(r,n));break}n.remove()}}else r.remove()}function B(e){return j(e.anchor),j(e.focus),e}function j(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),tY(t)){e.set(t.__key,n?t.getTextContentSize():0,"text",!0);break}if(!nG(t))break;e.set(t.__key,n?t.getChildrenSize():0,"element",!0)}}let K,z,Z,W,U,q,$,G,Y,X,Q="",ee=null,et="",en="",er=!1,ei=!1;function el(e,t){let n=$.get(e);if(null!==t){let n=ex(e);n.parentNode===t&&t.removeChild(n)}if(G.has(e)||z._keyToDOMMap.delete(e),nG(n)){let e=ep(n,$);eo(e,0,e.length-1,null)}void 0!==n&&r7(X,Z,W,n,"destroyed")}function eo(e,t,n,r){let i=t;for(;i<=n;++i){let t=e[i];void 0!==t&&el(t,r)}}function es(e,t){e.setProperty("text-align",t)}function ea(e,t){let n=K.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 eu(e,t){let n=e.style;0===t?es(n,""):1===t?es(n,"left"):2===t?es(n,"center"):3===t?es(n,"right"):4===t?es(n,"justify"):5===t?es(n,"start"):6===t&&es(n,"end")}function ec(e,t){let n=function(e){let t=e.__dir;if(null!==t)return t;if(n0(e))return null;let n=e.getParentOrThrow();return n0(n)&&null===n.__dir?"auto":null}(t);null!==n?e.dir=n:e.removeAttribute("dir")}function ed(e,t){let n=G.get(e);void 0===n&&r(60);let i=n.createDOM(K,z);if(function(e,t,n){let r=n._keyToDOMMap;t[`__lexicalKey_${n._key}`]=e,r.set(e,t)}(e,i,z),tY(n)?i.setAttribute("data-lexical-text","true"):nQ(n)&&i.setAttribute("data-lexical-decorator","true"),nG(n)){let e=n.__indent,t=n.__size;ec(i,n),0!==e&&ea(i,e),0!==t&&ef(ep(n,G),n,0,t-1,n.getDOMSlot(i));let r=n.__format;0!==r&&eu(i,r),n.isInline()||eg(null,n,i),ie(n)&&(Q+="\n\n",en+="\n\n")}else{let t=n.getTextContent();if(nQ(n)){let t=n.decorate(z,K);null!==t&&em(e,t),i.contentEditable="false"}Q+=t,en+=t}return null!==t&&t.insertChild(i),r7(X,Z,W,n,"created"),i}function ef(e,t,n,r,i){let l=Q;Q="";let o=n;for(;o<=r;++o){ed(e[o],i);let t=G.get(e[o]);null!==t&&tY(t)&&(null===ee&&(ee=t.getFormat()),""===et&&(et=t.getStyle()))}ie(t)&&(Q+="\n\n"),i.element.__lexicalTextContent=Q,Q=l+Q}function eh(e,t){if(e){let n=e.__last;if(n){let e=t.get(n);if(e)return tO(e)?"line-break":nQ(e)&&e.isInline()?"decorator":null}return"empty"}return null}function eg(e,t,n){let r=eh(e,$),i=eh(t,G);r!==i&&t.getDOMSlot(n).setManagedLineBreak(i)}function ep(e,t){let n=[],i=e.__first;for(;null!==i;){let e=t.get(i);void 0===e&&r(101),n.push(i),i=e.__next}return n}function em(e,t){let n=z._pendingDecorators,r=z._decorators;if(null===n){if(r[e]===t)return;n=rR(z)}n[e]=t}function ey(e){let t=e.nextSibling;return null!==t&&t===z._blockCursorElement&&(t=t.nextSibling),t}function ex(e){let t=Y.get(e);return void 0===t&&r(75,e),t}function e_(e){return{type:e}}let ev=e_("SELECTION_CHANGE_COMMAND"),eC=e_("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),eb=e_("CLICK_COMMAND"),ew=e_("DELETE_CHARACTER_COMMAND"),eT=e_("INSERT_LINE_BREAK_COMMAND"),ek=e_("INSERT_PARAGRAPH_COMMAND"),eE=e_("CONTROLLED_TEXT_INSERTION_COMMAND"),eS=e_("PASTE_COMMAND"),eN=e_("REMOVE_TEXT_COMMAND"),eM=e_("DELETE_WORD_COMMAND"),eI=e_("DELETE_LINE_COMMAND"),eA=e_("FORMAT_TEXT_COMMAND"),eL=e_("UNDO_COMMAND"),eP=e_("REDO_COMMAND"),eO=e_("KEYDOWN_COMMAND"),eF=e_("KEY_ARROW_RIGHT_COMMAND"),eD=e_("MOVE_TO_END"),eV=e_("KEY_ARROW_LEFT_COMMAND"),eH=e_("MOVE_TO_START"),eR=e_("KEY_ARROW_UP_COMMAND"),eJ=e_("KEY_ARROW_DOWN_COMMAND"),eB=e_("KEY_ENTER_COMMAND"),ej=e_("KEY_SPACE_COMMAND"),eK=e_("KEY_BACKSPACE_COMMAND"),ez=e_("KEY_ESCAPE_COMMAND"),eZ=e_("KEY_DELETE_COMMAND"),eW=e_("KEY_TAB_COMMAND"),eU=e_("INSERT_TAB_COMMAND"),eq=e_("INDENT_CONTENT_COMMAND"),e$=e_("OUTDENT_CONTENT_COMMAND"),eG=e_("DROP_COMMAND"),eY=e_("FORMAT_ELEMENT_COMMAND"),eX=e_("DRAGSTART_COMMAND"),eQ=e_("DRAGOVER_COMMAND"),e1=e_("DRAGEND_COMMAND"),e0=e_("COPY_COMMAND"),e5=e_("CUT_COMMAND"),e2=e_("SELECT_ALL_COMMAND"),e9=e_("CLEAR_EDITOR_COMMAND"),e7=e_("CLEAR_HISTORY_COMMAND"),e3=e_("CAN_REDO_COMMAND"),e8=e_("CAN_UNDO_COMMAND"),e6=e_("FOCUS_COMMAND"),e4=e_("BLUR_COMMAND"),te=e_("KEY_MODIFIER_COMMAND"),tt=Object.freeze({}),tn=[["keydown",function(e,t){if((tr=e.timeStamp,ti=e.key,!(t.isComposing()||r4(t,eO,e)))&&null!=e.key){if(tf&&r5(e))return nW(t,()=>{tb(t,th)}),tf=!1,void(th="");if(rQ(e,"ArrowRight",{shiftKey:"any"}))r4(t,eF,e);else if(rQ(e,"ArrowRight",r1))r4(t,eD,e);else if(rQ(e,"ArrowLeft",{shiftKey:"any"}))r4(t,eV,e);else if(rQ(e,"ArrowLeft",r1))r4(t,eH,e);else if(rQ(e,"ArrowUp",{altKey:"any",shiftKey:"any"}))r4(t,eR,e);else if(rQ(e,"ArrowDown",{altKey:"any",shiftKey:"any"}))r4(t,eJ,e);else if(rQ(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0}))tc=!0,r4(t,eB,e);else if(" "===e.key)r4(t,ej,e);else if(o&&rQ(e,"o",{ctrlKey:!0}))e.preventDefault(),tc=!0,r4(t,eT,!0);else if(rQ(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"}))tc=!1,r4(t,eB,e);else if(rQ(e,"Backspace",{shiftKey:"any"})||o&&rQ(e,"h",{ctrlKey:!0}))r5(e)?r4(t,eK,e):(e.preventDefault(),r4(t,ew,!0));else if("Escape"===e.key)r4(t,ez,e);else if(rQ(e,"Delete",{})||o&&rQ(e,"d",{ctrlKey:!0}))"Delete"!==e.key?(e.preventDefault(),r4(t,ew,!1)):r4(t,eZ,e);else if(rQ(e,"Backspace",r0))e.preventDefault(),r4(t,eM,!0);else if(rQ(e,"Delete",r0))e.preventDefault(),r4(t,eM,!1);else if(o&&rQ(e,"Backspace",{metaKey:!0}))e.preventDefault(),r4(t,eI,!0);
1else if(o&&(rQ(e,"Delete",{metaKey:!0})||rQ(e,"k",{ctrlKey:!0})))e.preventDefault(),r4(t,eI,!1);else if(rQ(e,"b",r1))e.preventDefault(),r4(t,eA,"bold");else if(rQ(e,"u",r1))e.preventDefault(),r4(t,eA,"underline");else if(rQ(e,"i",r1))e.preventDefault(),r4(t,eA,"italic");else if(rQ(e,"Tab",{shiftKey:"any"}))r4(t,eW,e);else if(rQ(e,"z",r1))e.preventDefault(),r4(t,eL,void 0);else if(o?rQ(e,"z",{metaKey:!0,shiftKey:!0}):rQ(e,"y",{ctrlKey:!0})||rQ(e,"z",{ctrlKey:!0,shiftKey:!0}))e.preventDefault(),r4(t,eP,void 0);else{let n=t._editorState._selection;null===n||t8(n)?rQ(e,"a",r1)&&(e.preventDefault(),r4(t,e2,e)):rQ(e,"c",r1)?(e.preventDefault(),r4(t,e0,e)):rQ(e,"x",r1)?(e.preventDefault(),r4(t,e5,e)):rQ(e,"a",r1)&&(e.preventDefault(),r4(t,e2,e))}(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)&&r4(t,te,e)}}],["pointerdown",function(e,t){let n=e.target,r=e.pointerType;ix(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&nW(t,()=>{nQ(rH(n))||(tu=!0)})}],["compositionstart",function(e,t){nW(t,()=>{let n=ng();if(t8(n)&&!t.isComposing()){let r=n.anchor,i=n.anchor.getNode();rP(r.key),(e.timeStamp<tr+30||"element"===r.type||!n.isCollapsed()||i.getFormat()!==n.format||tY(i)&&i.getStyle()!==n.style)&&r4(t,eE,y)}})}],["compositionend",function(e,t){s?td=!0:!c&&(u||g)?(tf=!0,th=e.data):nW(t,()=>{tb(t,e.data)})}],["input",function(e,t){e.stopPropagation(),nW(t,()=>{if(iy(e.target)&&nQ(rH(e.target)))return;let n=ng(),r=e.data,i=tC(e);if(null!=r&&t8(n)&&tm(n,i,r,e.timeStamp,!1)){td&&(tb(t,r),td=!1);let i=n.anchor.getNode(),l=ip(is(t));if(null===l)return;let o=n.isBackward(),d=o?n.anchor.offset:n.focus.offset,f=o?n.focus.offset:n.anchor.offset;a&&!n.isCollapsed()&&tY(i)&&null!==l.anchorNode&&i.getTextContent().slice(0,d)+r+i.getTextContent().slice(d+f)===rq(l.anchorNode)||r4(t,eE,r);let h=r.length;s&&h>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=h),u||c||g||!t.isComposing()||(tr=0,rP(null))}else r$(!1,t,null!==r?r:void 0),td&&(tb(t,r||void 0),td=!1);nA(),I(nO())},{event:e}),to=null}],["click",function(e,t){nW(t,()=>{let n=ng(),r=ip(is(t)),i=np();if(r){if(t8(n)){let t=n.anchor,l=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!n0(l)&&1===rB().getChildrenSize()&&l.getTopLevelElementOrThrow().isEmpty()&&null!==i&&n.is(i))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()&&l!==n.focus.getNode()){let e=function(e,t){let n=e;for(;n!==rB()&&null!=n;){if(t(n))return n;n=n.getParent()}return null}(l,e=>nG(e)&&!e.isInline());nG(e)&&e.select(0)}}else if("touch"===e.pointerType||"pen"===e.pointerType){let n=r.anchorNode;(iy(n)||rE(n))&&rK(nh(i,r,t,e))}}r4(t,eb,e)})}],["cut",tt],["copy",tt],["dragstart",tt],["dragover",tt],["dragend",tt],["paste",tt],["focus",tt],["blur",tt],["drop",tt]];a&&tn.push(["beforeinput",(e,t)=>(function(e,t){let n=e.inputType,i=tC(e);"deleteCompositionText"===n||s&&r6(t)||"insertCompositionText"!==n&&nW(t,()=>{var l;let o=ng();if("deleteContentBackward"===n){if(null===o){let e=np();if(!t8(e))return;rK(e.clone())}if(t8(o)){let n=o.anchor.key===o.focus.key;if(l=e.timeStamp,"MediaLast"===ti&&l<tr+30&&t.isComposing()&&n){if(rP(null),tr=0,setTimeout(()=>{nW(t,()=>{rP(null)})},30),t8(o)){let e=o.anchor.getNode();e.markDirty(),tY(e)||r(142),tv(o,e)}}else{rP(null),e.preventDefault();let r=o.anchor.getNode(),i=r.getTextContent(),l=r.canInsertTextAfter(),s=0===o.anchor.offset&&o.focus.offset===i.length,a=h&&n&&!s&&l;if(a&&o.isCollapsed()&&(a=!nQ(r8(o.anchor,!0))),!a){r4(t,ew,!0);let e=ng();h&&t8(e)&&e.isCollapsed()&&(tg=e,setTimeout(()=>tg=null))}}return}}if(!t8(o))return;let s=e.data;null!==to&&r$(!1,t,to),o.dirty&&null===to||!o.isCollapsed()||n0(o.anchor.getNode())||null===i||o.applyDOMRange(i),to=null;let a=o.anchor,u=o.focus,d=a.getNode(),f=u.getNode();if("insertText"!==n&&"insertTranspose"!==n)switch(e.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":r4(t,eE,e);break;case"insertFromComposition":rP(null),r4(t,eE,e);break;case"insertLineBreak":rP(null),r4(t,eT,!1);break;case"insertParagraph":rP(null),tc&&!c?(tc=!1,r4(t,eT,!1)):r4(t,ek,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":r4(t,eS,e);break;case"deleteByComposition":(d!==f||nG(d)||nG(f)||!rT(d)||!rT(f))&&r4(t,eN,e);break;case"deleteByDrag":case"deleteByCut":r4(t,eN,e);break;case"deleteContent":r4(t,ew,!1);break;case"deleteWordBackward":r4(t,eM,!0);break;
1case"deleteWordForward":r4(t,eM,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":r4(t,eI,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":r4(t,eI,!1);break;case"formatStrikeThrough":r4(t,eA,"strikethrough");break;case"formatBold":r4(t,eA,"bold");break;case"formatItalic":r4(t,eA,"italic");break;case"formatUnderline":r4(t,eA,"underline");break;case"historyUndo":r4(t,eL,void 0);break;case"historyRedo":r4(t,eP,void 0)}else{if("\n"===s)e.preventDefault(),r4(t,eT,!1);else if("\n\n"===s)e.preventDefault(),r4(t,ek,void 0);else if(null==s&&e.dataTransfer){let t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=s&&tm(o,i,s,e.timeStamp,!0)?(e.preventDefault(),r4(t,eE,s)):to=s;tl=e.timeStamp}})})(e,t)]);let tr=0,ti=null,tl=0,to=null,ts=new WeakMap,ta=!1,tu=!1,tc=!1,td=!1,tf=!1,th="",tg=null,tp=[0,"",0,"root",0];function tm(e,t,n,r,i){let l=e.anchor,o=e.focus,s=l.getNode(),u=nO(),c=ip(is(u)),d=null!==c?c.anchorNode:null,f=l.key,h=u.getElementByKey(f),g=n.length;return f!==o.key||!tY(s)||(!i&&(!a||tl<r+50)||s.isDirty()&&g<2||rZ(n))&&l.offset!==o.offset&&!s.isComposing()||rk(s)||s.isDirty()&&g>1||(i||!a)&&null!==h&&!s.isComposing()&&d!==rS(h)||null!==c&&null!==t&&(!t.collapsed||t.startContainer!==c.anchorNode||t.startOffset!==c.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=rT(t);return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||i||function(e){let t=e.getPreviousSibling();return(tY(t)||nG(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||i)}(e,s)}function ty(e,t){return rE(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function tx(e,t,n){let{anchorNode:i,anchorOffset:l,focusNode:o,focusOffset:s}=e;ta&&(ta=!1,ty(i,l)&&ty(o,s)&&!tg)||nW(t,()=>{if(!n)return void rK(null);if(!rv(t,i,o))return;let a=ng();if(tg&&t8(a)&&a.isCollapsed()){let e=a.anchor,t=tg.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&rK(a=tg.clone())}if(tg=null,t8(a)){let n=a.anchor,i=n.getNode();if(a.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(a.dirty=!0);let l=is(t).event,o=l?l.timeStamp:performance.now(),[s,c,d,f,h]=tp,g=rB(),p=!1===t.isComposing()&&""===g.getTextContent();if(o<h+200&&n.offset===d&&n.key===f)t_(a,s,c);else if("text"===n.type)tY(i)||r(141),tv(a,i);else if("element"===n.type&&!p){var u;nG(i)||r(259);let e=n.getNode();e.isEmpty()?t_(a,(u=e).getTextFormat(),u.getTextStyle()):t_(a,0,"")}}else{let e=n.key,t=a.focus.key,r=a.getNodes(),i=r.length,o=a.isBackward(),u=o?s:l,c=o?l:s,d=o?t:e,f=o?e:t,h=2047,g=!1;for(let e=0;e<i;e++){let t=r[e],n=t.getTextContentSize();if(tY(t)&&0!==n&&(0!==e||t.__key!==d||u!==n)&&(e!==i-1||t.__key!==f||0!==c)&&(g=!0,0==(h&=t.getFormat())))break}a.format=g?h:0}}r4(t,ev,void 0)})}function t_(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function tv(e,t){t_(e,t.getFormat(),t.getStyle())}function tC(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return 0===t.length?null:t[0]}function tb(e,t){let n=e._compositionKey;if(rP(null),null!==n&&null!=t){if(""===t){let t=rF(n),r=rS(e.getElementByKey(n));return void(null!==r&&null!==r.nodeValue&&tY(t)&&rG(t,r.nodeValue,null,null,!0))}if("\n"===t[t.length-1]){let t=ng();if(t8(t)){let n=t.focus;return t.anchor.set(n.key,n.offset,n.type),void r4(e,eB,null)}}}r$(!0,e,t)}function tw(e){let t=e.__lexicalEventHandles;return void 0===t&&(e.__lexicalEventHandles=t=[]),t}let tT=new Map;function tk(e){let t=function(e){let t=io(e);return t?t.getSelection():null}(e.target);if(null===t)return;let n=rb(t.anchorNode);if(null===n)return;tu&&(tu=!1,nW(n,()=>{let r=np(),i=t.anchorNode;(iy(i)||rE(i))&&rK(nh(r,t,n,e))}));let r=rW(n),i=r[r.length-1],l=i._key,o=tT.get(l),s=o||i;s!==n&&tx(t,s,!1),tx(t,n,!0),n!==i?tT.set(l,n):o&&tT.delete(l)}function tE(e){e._lexicalHandled=!0}function tS(e){return!0===e._lexicalHandled}function tN(e,t,n){nA();let r=e.__key,i=e.getParent();if(null===i)return;let l=function(e){let t=ng();if(!t8(t)||!nG(e))return t;let{anchor:n,focus:r}=t,i=n.getNode(),l=r.getNode();return il(i,e)&&n.set(e.__key,0,"element"),il(l,e)&&r.set(e.__key,0,"element"),t}(e),o=!1;if(t8(l)&&t){let t=l.anchor,n=l.focus;t.key===r&&(nx(t,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0),n.key===r&&(nx(n,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0)}else t4(l)&&t&&e.isSelected()&&e.selectPrevious();if(t8(l)&&t&&!o){let t=e.getIndexWithinParent();rA(e),nm(l,i,t,-1)}else rA(e);n||ia(i)||i.canBeEmpty()||!i.isEmpty()||tN(i,t),t&&l&&n0(i)&&i.isEmpty()&&i.selectEnd()}function tM(e){return e}class tI{static getType(){let{ownNodeType:e}=iA(this);return void 0===e&&r(64,this.name),e}static clone(e){r(65,this.name)}$config(){return{}}config(e,t){let n=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:n,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),rI(this,e)}getType(){return this.__type}isInline(){r(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;let t=rF(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){let t=e||ng();if(null==t)return!1;let n=t.getNodes().some(e=>e.__key===this.__key);if(tY(this))return n;if(t8(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;let e=this.getParent();if(nQ(this)&&this.isInline()&&e){let n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return 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:rF(e)}getParentOrThrow(){let e=this.getParent();return null===e&&r(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let t=e.getParent();if(ia(t))return nG(e)||e===this&&nQ(e)||r(194),e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&r(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:rF(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:rF(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=nG(this)?this:this.getParent(),n=nG(e)?e:e.getParent(),r=t&&n?i7(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){let t=i7(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===i2(t):("same"!==t.type&&"ancestor"!==t.type&&r(279),!1)))}isParentOf(e){let t=i7(this,e);return null!==t&&"ancestor"===t.type}getNodesBetween(e){let t=this.isBefore(e),n=[],i=new Set,l=this;for(;null!==l;){let o=l.__key;
1if(i.has(o)||(i.add(o),n.push(l)),l===e)break;let s=nG(l)?t?l.getFirstChild():l.getLastChild():null;if(null!==s){l=s;continue}let a=t?l.getNextSibling():l.getPreviousSibling();if(null!==a){l=a;continue}let u=l.getParentOrThrow();if(i.has(u.__key)||n.push(u),u===e)break;let c=null,d=u;do{if(null===d&&r(68),c=t?d.getNextSibling():d.getPreviousSibling(),null===(d=d.getParent()))break;null!==c||i.has(d.__key)||n.push(d)}while(null===c);l=c}return t||n.reverse(),n}isDirty(){let e=nO()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){let e=rF(this.__key);return null===e&&r(113),e}getWritable(){nA();let e=nP(),t=nO(),n=e._nodeMap,r=this.__key,i=this.getLatest(),l=t._cloneNotNeeded,o=ng();if(null!==o&&o.setCachedNodes(null),l.has(r))return rL(i),i;let s=iN(i);return l.add(r),rL(s),n.set(r,s),s}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){r(70)}updateDOM(e,t,n){r(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){let e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){r(18,this.name)}updateFromJSON(e){return function(e,t){let n=e.getWritable(),r=t.$,i=r;for(let e of P(n).flatKeys)e in t&&(void 0!==i&&i!==r||(i={...r}),i[e]=t[e]);return(n.__state||i)&&(function(e){let t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new L(t,P(t));return t.__state=n,n})(e).updateFromJSON(i),n}(this,e)}static transform(){return null}remove(e){tN(this,!0,e)}replace(e,t){nA();let n=ng();null!==n&&(n=n.clone()),id(this,e);let i=this.getLatest(),l=this.__key,o=e.__key,s=e.getWritable(),a=this.getParentOrThrow().getWritable(),u=a.__size;rA(s);let c=i.getPreviousSibling(),d=i.getNextSibling(),f=i.__prev,h=i.__next,g=i.__parent;if((tN(i,!1,!0),null===c)?a.__first=o:c.getWritable().__next=o,(s.__prev=f,null===d)?a.__last=o:d.getWritable().__prev=o,s.__next=h,s.__parent=g,a.__size=u,t&&(nG(this)&&nG(s)||r(139),this.getChildren().forEac
1h(e=>{s.append(e)})),t8(n)){rK(n);let e=n.anchor,t=n.focus;e.key===l&&t7(e,s),t.key===l&&t7(t,s)}return rO()===l&&rP(o),s}insertAfter(e,t=!0){nA(),id(this,e);let n=this.getWritable(),r=e.getWritable(),i=r.getParent(),l=ng(),o=!1,s=!1;if(null!==i){let t=e.getIndexWithinParent();if(rA(r),t8(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(),c=r.__key,d=n.__next;if(null===a?u.__last=c:a.getWritable().__prev=c,u.__size++,n.__next=c,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&t8(l)){let e=this.getIndexWithinParent();nm(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){nA(),id(this,e);let n=this.getWritable(),r=e.getWritable(),i=r.__key;rA(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=ng();return t&&t8(u)&&nm(u,this.getParentOrThrow(),a),e}isParentRequired(){return!1}createParentElementNode(){return rl()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){nA();let n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(nG(n))return n.select();
1if(!tY(n)){let e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){nA();let n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(nG(n))return n.select(0,0);if(!tY(n)){let e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}class tA extends tI{static getType(){return"linebreak"}static clone(e){return new tA(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>(function(e){let t=e.parentElement;if(null!==t&&iC(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&tF(n)){let n=t.lastChild;if(n===e||n.previousSibling===e&&tF(n))return!0}}return!1})(e)||function(e){let t=e.parentElement;if(null!==t&&iC(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&tF(n))return!1;let r=t.lastChild;if(r===e||r.previousSibling===e&&tF(r))return!0}return!1}(e)?null:{conversion:tL,priority:0}}}static importJSON(e){return tP().updateFromJSON(e)}}function tL(e){return{node:tP()}}function tP(){return ic(new tA)}function tO(e){return e instanceof tA}function tF(e){return rE(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function tD(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function tV(e,t){return 1&t?"strong":2&t?"em":"span"}function tH(e,t,n,r,i){let l=r.classList,o=r9(i,"base");void 0!==o&&l.add(...o);let s=!1,a=8&t&&4&t;for(let e in void 0!==(o=r9(i,"underlineStrikethrough"))&&(8&n&&4&n?(s=!0,a||l.add(...o)):a&&l.remove(...o)),x){let r=x[e];if(void 0!==(o=r9(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 tR(e,t,n){let r=t.firstChild,i=n.isComposing(),l=e+(i?m:"");if(null==r)t.textContent=l;else{let e=r.nodeValue;if(e!==l)if(i||s){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 tJ(e,t,n,r,i,l){tR(i,e,t);let o=l.theme.text;void 0!==o&&tH(0,0,r,e,o)}function tB(e,t){let n=document.createElement(t);return n.appendChild(e),n}class tj extends tI{static getType(){return"text"}static clone(e){return new tj(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}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 w[this.getLatest().__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===rO()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){let t=x[e];return!!(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return rN(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){let n=this.__format,r=tD(0,n),i=tV(0,n),l=null===r?i:r,o=document.createElement(l),s=o;this.hasFormat("code")&&o.setAttribute("spellcheck","false"),null!==r&&(s=document.createElement(i),o.appendChild(s)),tJ(s,this,0,n,this.__text,e);let a=this.__style;return""!==a&&(o.style.cssText=a),o}updateDOM(e,t,n){let i=this.__text,l=e.__format,o=this.__format,s=tD(0,l),a=tD(0,o),u=tV(0,l),c=tV(0,o);if((null===s?u:s)!==(null===a?c:a))return!0;if(s===a&&u!==c){let e=t.firstChild;null==e&&r(48);let l=document.createElement(c);return tJ(l,this,0,o,i,n),t.replaceChild(l,e),!1}let d=t;null!==a&&null!==s&&null==(d=t.firstChild)&&r(49),tR(i,d,this);let f=n.theme.text;void 0!==f&&l!==o&&tH(0,l,o,d,f);let h=e.__style,g=this.__style;return h!==g&&(t.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:tW,priority:0}),b:()=>({conversion:tz,priority:0}),code:()=>({conversion:t$,priority:0}),em:()=>({conversion:t$,priority:0}),i:()=>({conversion:t$,priority:0}),mark:()=>({conversion:t$,priority:0}),s:()=>({conversion:t$,priority:0}),span:()=>({conversion:tK,priority:0}),strong:()=>({conversion:t$,priority:0}),sub:()=>({conversion:t$,priority:0}),sup:()=>({conversion:t$,priority:0}),u:()=>({conversion:t$,priority:0})}}static importJSON(e){return tG().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}
1exportDOM(e){let{element:t}=super.exportDOM(e);return iy(t)||r(132),t.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?t.style.textTransform="lowercase":this.hasFormat("uppercase")?t.style.textTransform="uppercase":this.hasFormat("capitalize")&&(t.style.textTransform="capitalize"),this.hasFormat("bold")&&(t=tB(t,"b")),this.hasFormat("italic")&&(t=tB(t,"i")),this.hasFormat("strikethrough")&&(t=tB(t,"s")),this.hasFormat("underline")&&(t=tB(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){let t=this.getWritable();return t.__format="string"==typeof e?x[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail="string"==typeof e?_[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=rN(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=b[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){nA();let n=e,r=t,i=ng(),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(!t8(i))return nc(o,n,o,r,"text","text");{let e=rO();e!==i.anchor.key&&e!==i.focus.key||rP(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=ng();if(r&&t8(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;nA();let n=this.getLatest(),r=n.getTextContent();if(""===r)return[];let i=n.__key,l=rO(),o=r.length;e.sort((e,t)=>e-t),e.push(o);let s=[],a=e.length;for(let t=0,n=0;t<o&&n<=a;n++){let i=e[n];i>t&&(s.push(r.slice(t,i)),t=i)}let u=s.length;if(1===u)return[n];let c=s[0],d=n.getParent(),f=n.getFormat(),h=n.getStyle(),g=n.__detail,p=!1,m=null,y=null,x=ng();if(t8(x)){let[e,t]=x.isBackward()?[x.focus,x.anchor]:[x.anchor,x.focus];"text"===e.type&&e.key===i&&(m=e),"text"===t.type&&t.key===i&&(y=t)}n.isSegmented()?((t=tG(c)).__format=f,t.__style=h,t.__detail=g,t.__state=V(n,t),p=!0):t=n.setTextContent(c);let _=[t];for(let e=1;e<u;e++){let t=tG(s[e]);t.__format=f,t.__style=h,t.__detail=g,t.__state=V(n,t);let r=t.__key;l===i&&rP(r),_.push(t)}let v=m?m.offset:null,C=y?y.offset:null,b=0;for(let e of _){if(!m&&!y)break;let t=b+e.getTextContentSize();if(null!==m&&null!==v&&v<=t&&v>=b&&(m.set(e.getKey(),v-b,"text"),v<t&&(m=null)),null!==y&&null!==C&&C<=t&&C>=b){y.set(e.getKey(),C-b,"text");break}b=t}if(null!==d){let e=this.getPreviousSibling(),t=this.getNextSibling();null!==e&&rL(e),null!==t&&rL(t);let n=d.getWritable(),r=this.getIndexWithinParent();p?(n.splice(r,0,_),this.remove()):n.splice(r,1,_),t8(x)&&nm(x,d,r,u-1)}return _}mergeWithSibling(e){let t=e===this.getPreviousSibling();t||e===this.getNextSibling()||r(50);let n=this.__key,i=e.__key,l=this.__text,o=l.length;rO()===i&&rP(n);let s=ng();if(t8(s)){let r=s.anchor,l=s.focus;null!==r&&r.key===i&&n_(r,t,n,e,o),null!==l&&l.key===i&&n_(l,t,n,e,o)}let a=e.__text,u=t?a+l:l+a;this.setTextContent(u);let c=this.getWritable();return e.remove(),c}isTextEntity(){return!1}}function tK(e){return{forChild:tX(e.style),node:null}}function tz(e){let t="normal"===e.style.fontWeight;return{forChild:tX(e.style,t?void 0:"bold"),node:null}}let tZ=new WeakMap;function tW(e){null===e.parentElement&&r(129);let t=e.textContent||"";if(null!==function(e){let t,n=e.parentNode,r=[e];for(;null!==n&&void 0===(t=tZ.get(n))&&!function(e){if(!iy(e))return!1;if("PRE"===e.nodeName)return!0;let t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}(n);)r.push(n),n=n.parentNode;let i=void 0===t?n:t;for(let e=0;e<r.length;e++)tZ.set(r[e],i);return i}(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(tP()):"	"===r?n.push(t1()):""!==r&&n.push(tG(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=tU(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=tU(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:tG(t)}}function tU(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(iy(n=e)){let e=n.style.display;if(""===e&&!iv(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(rE(n))return n;if("BR"===n.nodeName)return null}}let tq={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function t$(e){let t=tq[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:tX(e.style,t),node:null}}function tG(e=""){return ic(new tj(e))}function tY(e){return e instanceof tj}function tX(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=>(tY(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 tQ extends tj{static getType(){return"tab"}static clone(e){return new tQ(e.__key)}constructor(e){super("	",e),this.__detail=2}static importDOM(){return null}createDOM(e){let t=super.createDOM(e),n=r9(e.theme,"tab");return void 0!==n&&t.classList.add(...n),t}static importJSON(e){return t1().updateFromJSON(e)}setTextContent(e){return"	"!==e&&""!==e&&r(126),super.setTextContent("	")}spliceText(e,t,n,i){return""===n&&0===t||"	"===n&&1===t||r(286),this}setDetail(e){return 2!==e&&r(127),this}setMode(e){return"normal"!==e&&r(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function t1(){return ic(new tQ)}function t0(e){return e instanceof tQ}class t5{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){return this.key===e.key?this.offset<e.offset:0>i5(li(i3(this,"next")),li(i3(e,"next")))}getNode(){let e=rF(this.key);return null===e&&r(20),e}set(e,t,n,r){let i=this._selection,l=this.key;r&&this.key===e&&this.offset===t&&this.type===n||(this.key=e,this.offset=t,this.type=n,nI()||(rO()===l&&rP(e),null!==i&&(i.setCachedNodes(null),i.dirty=!0)))}}function t2(e,t,n){return new t5(e,t,n)}function t9(e,t){let n=t.__key,r=e.offset,i="element";if(tY(t)){i="text";let e=t.getTextContentSize();r>e&&(r=e)}else if(!nG(t)){let e=t.getNextSibling();if(tY(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 t7(e,t){if(nG(t)){let n=t.getLastDescendant();nG(n)||tY(n)?t9(e,n):t9(e,t)}else t9(e,t)}class t3{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!t4(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 t3(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(tY(i))t=i.select();else{let e=i.getIndexWithinParent()+1;t=i.getParentOrThrow().select(e,e)}t.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=rF(e);
1null!==t&&n.push(t)}return nI()||(this._cachedNodes=n),n}getTextContent(){let e=this.getNodes(),t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}deleteNodes(){let e=this.getNodes();if((ng()||np())===this&&e[0]){let t=iZ(e[0],"next");i6(i1(t,t))}for(let t of e)t.remove()}}function t8(e){return e instanceof t6}class t6{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!!t8(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=this._cachedNodes;if(null!==e)return e;let t=function(e){let t=[],[n,r]=e.getTextSlices();n&&t.push(n.caret.origin);let i=new Set,l=new Set;for(let n of e)if(iB(n)){let{origin:e}=n;0===t.length?i.add(e):(l.add(e),t.push(e))}else{let{origin:e}=n;nG(e)&&l.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),iJ(e.focus)&&nG(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=iq(e.focus.origin,"previous");iB(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=i$(n))i.delete(n.origin),t.pop();for(;t.length>1;){let e=t[t.length-1];if(!nG(e)||l.has(e)||e.isEmpty()||i.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){let n=li(e.anchor),r=li(e.anchor.getFlipped()),i=e=>iR(e)?e.origin:e.getNodeAtCaret(),l=i(n)||i(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(l)}return t}(ls(le(this),"next"));return nI()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){this.anchor.set(e.__key,t,"text"),this.focus.set(n.__key,r,"text")}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]=nt(this),a="",u=!0;for(let c=0;c<e.length;c++){let d=e[c];if(nG(d)&&!d.isInline())u||(a+="\n"),u=!d.isEmpty();else if(u=!1,tY(d)){let e=d.getTextContent();d===t?d===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):d===n&&(e=l?e.slice(0,s):e.slice(0,o)),a+=e}else!nQ(d)&&!tO(d)||d===n&&this.isCollapsed()||(a+=d.getTextContent())}return a}applyDOMRange(e){let t=nO(),n=t.getEditorState()._selection,r=na(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(null===r)return;let[i,l]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(l.key,l.offset,l.type,!0),B(this)}clone(){let e=this.anchor,t=this.focus;return new t6(t2(e.key,e.offset,e.type),t2(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=rN(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){let t=x[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(tP()):"	"===r?n.push(t1()):n.push(tG(r))}this.insertNodes(n)}insertText(e){let t=this.anchor,n=this.focus,i=this.format,l=this.style,o=t,s=n;!this.isCollapsed()&&n.isBefore(t)&&(o=n,s=t),"element"===o.type&&function(e,t,n,r){let i=e.getNode(),l=i.getChildAtIndex(e.offset),o=tG();if(o.setFormat(n),o.setStyle(r),ro(l))l.splice(0,0,[o]);else{let e=n0(i)?rl().append(o):o;null===l?i.append(e):l.insertBefore(e)}e.is(t)&&t.set(o.__key,0,"text"),e.set(o.__key,0,"text")}(o,s,i,l),"element"===s.type&&i8(s,li(i3(s,"next")));let a=o.offset,u=s.offset,c=this.getNodes(),d=c.length,f=c[0];tY(f)||r(26);let h=f.getTextContent().length,g=f.getParentOrThrow(),p=c[d-1];if(1===d&&"element"===s.type&&(u=h,s.set(o.key,u,"text")),this.isCollapsed()&&a===h&&(rk(f)||!f.canInsertTextAfter()||!g.canInsertTextAfter()&&null===f.getNextSibling())){let t=f.getNextSibling();if(tY(t)&&t.canInsertTextBefore()&&!rk(t)||((t=tG()).setFormat(i),t.setStyle(l),g.canInsertTextAfter()?f.insertAfter(t):g.insertAfter(t)),t.select(0,0),f=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===a&&(rk(f)||!f.canInsertTextBefore()||!g.canInsertTextBefore()&&null===f.getPreviousSibling())){let t=f.getPreviousSibling();if(tY(t)&&!rk(t)||((t=tG()).setFormat(i),g.canInsertTextBefore()?f.insertBefore(t):g.insertBefore(t)),t.select(),f=t,""!==e)return void this.insertText(e)}else if(f.isSegmented()&&a!==h){let e=tG(f.getTextContent());e.setFormat(i),f.replace(e),f=e}else if(!this.isCollapsed()&&""!==e){let t=p.getParent();if(!g.canInsertTextBefore()||!g.canInsertTextAfter()||nG(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),ns(this.anchor,this.focus,null),void this.insertText(e)}if(1===d){if(rT(f)){let t=tG(e);return t.select(),void f.replace(t)}let t=f.getFormat(),n=f.getStyle();if(a!==u||t===i&&n===l){if(t0(f)){let t=tG(e);return t.setFormat(i),t.setStyle(l),t.select(),void f.replace(t)}}else{if(""!==f.getTextContent()){let t=tG(e);if(t.setFormat(i),t.setStyle(l),t.select(),0===a)f.insertBefore(t,!1);else{let[e]=f.splitText(a);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}f.setFormat(i),f.setStyle(l)}let r=u-a;""===(f=f.spliceText(a,r,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(),...p.getParentKeys()]),n=nG(f)?f:f.getParentOrThrow(),r=nG(p)?p:p.getParentOrThrow(),i=p;if(!n.is(r)&&r.isInline())do i=r,r=r.getParentOrThrow();while(r.isInline());if("text"===s.type&&(0!==u||""===p.getTextContent())||"element"===s.type&&p.getIndexWithinParent()<u)if(tY(p)&&!rT(p)&&u!==p.getTextContentSize()){if(p.isSegmented()){let e=tG(p.getTextContent());p.replace(e),p=e}n0(s.getNode())||"text"!==s.type||(p=p.spliceText(0,u,"")),t.add(p.__key)}else{let e=p.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?p.remove():e.remove()}else t.add(p.__key);let l=r.getChildren(),o=new Set(c),g=n.is(r),m=n.isInline()&&null===f.getNextSibling()?n:f;for(let e=l.length-1;e>=0;e--){let t=l[e];if(t.is(f)||nG(t)&&t.isParentOf(f))break;t.isAttached()&&(!o.has(t)||t.is(i)?g||m.insertAfter(t,!1):t.remove())}if(!g){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()}}
1if(rT(f))if(a===h)f.select();else{let t=tG(e);t.select(),f.replace(t)}else""===(f=f.spliceText(a,h-a,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=c[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){let e=ng()===this;i4(this,function(e,t="removeEmptySlices"){let n,i;if(e.isCollapsed())return e;let l="root",o="next",s=t,a=ls(e,o),u=ln(a.anchor,l),c=ln(a.focus.getFlipped(),l),d=new Set,f=[];for(let e of a.iterNodeCarets(l))if(iB(e))d.add(e.origin.getKey());else if(iJ(e)){let{origin:t}=e;nG(t)&&!d.has(t.getKey())||f.push(t)}for(let e of f)e.remove();for(let e of a.getTextSlices()){if(!e)continue;let{origin:t}=e.caret,n=t.getTextContentSize(),r=lt(iZ(t,o)),i=t.getMode();if(Math.abs(e.distance)===n&&"removeEmptySlices"===s||"token"===i&&0!==e.distance)r.remove();else if(0!==e.distance){s="removeEmptySlices";let t=e.removeTextSlice(),n=e.caret.origin;if("segmented"===i){let e=t.origin,n=tG(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());r.replaceOrInsert(n),t=iW(n,o,t.offset)}n.is(u[0].origin)&&(u[0]=t),n.is(c[0].origin)&&(c[0]=t.getFlipped())}}for(let e of u)if(lr(e)){n=li(e);break}for(let e of c)if(lr(e)){i=li(e);break}let h=function(e,t,n){let r;if(!e||!t)return null;let i=e.getParentAtCaret(),l=t.getParentAtCaret();if(!i||!l)return null;let o=i.getParents().reverse();o.push(i);let s=l.getParents().reverse();s.push(l);let a=Math.min(o.length,s.length);for(r=0;r<a&&o[r]===s[r];r++);let u=(e,t)=>{let n;for(let i=r;i<e.length;i++){let r=e[i];if(ia(r))return;!n&&t(r)&&(n=r)}return n},c=u(o,ib),d=c&&u(s,e=>n.has(e.getKey())&&ib(e));return c&&d?[c,d]:null}(n,i,d);if(h){let[e,t]=h;iq(e,"previous").splice(0,t.getChildren()),t.remove()}let g=[n,i,...u,...c].find(lr);if(g)return iQ(lo(li(g),e.direction));r(269,JSON.stringify(u.map(e=>e.origin.__key)))}(le(this))),e&&ng()!==this&&rK(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void rP(null);let n=this.getNodes(),r=[];for(let e of n)tY(e)&&r.push(e);let i=t=>{n.forEach(n=>{if(nG(n)){let r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},l=r.length;if(0===l)return this.toggleFormat(e),rP(null),void i(t);let o=this.anchor,s=this.focus,a=this.isBackward(),u=a?s:o,c=a?o:s,d=0,f=r[0],h="element"===u.type?0:u.offset;if("text"===u.type&&h===f.getTextContentSize()&&(d=1,f=r[1],h=0),null==f)return;let g=f.getFormatFlags(e,t);i(g);let p=l-1,m=r[p],y="text"===c.type?c.offset:m.getTextContentSize();if(f.is(m)){if(h===y)return;if(rk(f)||0===h&&y===f.getTextContentSize())f.setFormat(g);else{let e=f.splitText(h,y),t=0===h?e[0]:e[1];t.setFormat(g),"text"===u.type&&u.set(t.__key,0,"text"),"text"===c.type&&c.set(t.__key,y-h,"text")}return void(this.format=g)}0===h||rk(f)||([,f]=f.splitText(h),h=0),f.setFormat(g);let x=m.getFormatFlags(e,g);y>0&&(y===m.getTextContentSize()||rk(m)||([m]=m.splitText(y)),m.setFormat(x));for(let t=d+1;t<p;t++){let n=r[t],i=n.getFormatFlags(e,x);n.setFormat(i)}"text"===u.type&&u.set(f.__key,h,"text"),"text"===c.type&&c.set(m.__key,y,"text"),this.format=g|x}insertNodes(e){var t;if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();let t=ng();return t8(t)||r(134),t.insertNodes(e)}let n=(this.isBackward()?this.focus:this.anchor).getNode(),i=iw(n,ib),l=e[e.length-1];if(nG(i)&&"__language"in i){if("__language"in e[0])this.insertText(e[0].getTextContent());else{let t=nb(this);i.splice(t,0,e),l.selectEnd()}return}if(!e.some(e=>(nG(e)||nQ(e))&&!e.isInline())){nG(i)||r(211,n.constructor.name,n.getType());let t=nb(this);return i.splice(t,0,e),void l.selectEnd()}let o=function(e){let t=rl(),n=null;for(let r=0;r<e.length;r++){let i=e[r],l=tO(i);if(l||nQ(i)&&i.isInline()||nG(i)&&i.isInline()||tY(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),s=o.getLastDescendant(),a=o.getChildren(),u=nG(i)&&i.isEmpty()?null:this.insertParagraph(),c=a[a.length-1],d=a[0];nG(t=d)&&ib(t)&&!t.isEmpty()&&nG(i)&&(!i.isEmpty()||i.canMergeWhenEmpty())&&(nG(i)||r(211,n.constructor.name,n.getType()),i.append(...d.getChildren()),d=a[1]),d&&(null===i&&r(212,n.constructor.name,n.getType()),function(e,t,n){let i=t.getParentOrThrow().getLastChild(),l=t,o=[t];for(;l!==i;)l.getNextSibling()||r(140),o.push(l=l.getNextSibling());let s=e;for(let e of o)s=s.insertAfter(e)}(i,d));let f=iw(s,ib);u&&nG(f)&&(u.canMergeWhenEmpty()||ib(c))&&(f.append(...u.getChildren()),u.remove()),nG(i)&&i.isEmpty()&&i.remove(),s.selectEnd();let h=nG(i)?i.getLastChild():null;tO(h)&&f!==i&&h.remove()}insertParagraph(){if("root"===this.anchor.key){let e=rl();return rB().splice(this.anchor.offset,0,[e]),e.select(),e}let e=nb(this),t=iw(this.anchor.getNode(),ib);nG(t)||r(213);let n=t.getChildAtIndex(e),i=n?[n,...n.getNextSiblings()]:[],l=t.insertNewAfter(this,!1);return l?(l.append(...i),l.selectStart(),l):null}insertLineBreak(e){let t=tP();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]=nt(this);if(0===t)return[];if(1===t){if(tY(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(tY(l)){let t=u?s:a;t===l.getTextContentSize()?e.shift():0!==t&&([,l]=l.splitText(t),e[0]=l)}
1if(tY(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;if(nw(this,e,t,n))return;let i="move"===e,l=nO(),o=ip(is(l));if(!o)return;let s=l._blockCursorElement,a=l._rootElement,u=this.focus.getNode();if(null===a||null===s||!nG(u)||u.isInline()||u.canBeEmpty()||ig(s,l,a),this.dirty){let e=it(l,this.anchor.key),t=it(l,this.focus.key);"text"===this.anchor.type&&(e=rS(e)),"text"===this.focus.type&&(t=rS(t)),e&&t&&nv(o,e,this.anchor.offset,t,this.focus.offset)}if(r=t?"backward":"forward",o.modify(e,r,n),o.rangeCount>0){let e=o.getRangeAt(0),n=this.anchor.getNode(),r=n0(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t&&!ia(t);)t=t.getParentOrThrow();return t}(n);if(this.applyDOMRange(e),this.dirty=!0,!i){let n=this.getNodes(),i=[],l=!1;for(let e=0;e<n.length;e++){let t=n[e];il(t,r)?i.push(t):l=!0}if(l&&i.length>0)if(t){let e=i[0];nG(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{let e=i[i.length-1];nG(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}o.anchorNode===e.startContainer&&o.anchorOffset===e.startOffset||function(e){let t=e.focus,n=e.anchor,r=n.key,i=n.offset,l=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,i,l,!0)}(this)}}"lineboundary"===n&&nw(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&nG(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(nG(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=iX(i3(t,e?"previous":"next"));if(r.getTextSlices().every(e=>null===e||0===e.distance)){let e={type:"initial"};for(let t of r.iterNodeCarets("shadowRoot"))if(iB(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(nG(r.anchor.origin)&&r.anchor.origin.isEmpty()){let e=li(t);i4(this,i1(e,e)),r.anchor.origin.remove()}return}"merge-next-block"!==e.type&&"merge-block"!==e.type||(e={block:e.block,caret:t,type:"merge-block"})}else{if("merge-block"===e.type)break;if(iJ(t)){if(nG(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:"merge-next-block"};continue}if(nQ(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&nG(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();let e=nf();e.add(t.origin.getKey()),rK(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){let{caret:t,block:n}=e;return i4(this,i1(!t.origin.isEmpty()&&n.isEmpty()?lt(iZ(n,t.direction)):r.anchor,t)),this.removeText()}}let i=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&nn(this,t.getNode()))return}else{let r="text"===i.type?i.getNode():null;if(n="text"===t.type?t.getNode():null,null!==r&&r.isSegmented()){let t=i.offset,l=r.getTextContentSize();if(r.is(n)||e&&t!==l||!e&&0!==t)return void ni(r,e,t)}else if(null!==n&&n.isSegmented()){let i=t.offset,l=n.getTextContentSize();if(n.is(r)||e&&0!==i||!e&&i!==l)return void ni(n,e,i)}!function(e,t){let n=e.anchor,r=e.focus,i=n.getNode();if(i===r.getNode()&&"text"===n.type&&"text"===r.type){var l;let e=n.offset,o=r.offset,s=e<o,a=s?e:o,u=s?o:e,c=u-1;a===c||rZ(l=i.getTextContent().slice(a,u))||nr(l)||(t?r.set(r.key,c,r.type):n.set(n.key,c,n.type))}}(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){let e=this.anchor.getNode();e.isEmpty()&&n0(e.getParent())&&null===e.getPreviousSibling()&&nn(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):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 t4(e){return e instanceof t3}function ne(e){let t=e.offset;if("text"===e.type)return t;let n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function nt(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]:[ne(n),ne(r)]}function nn(e,t){for(let n=t;n;
1n=n.getParent()){if(nG(n)){if(n.collapseAtStart(e))return!0;if(ia(n))break}if(n.getPreviousSibling())break}return!1}let nr=(()=>{try{let e=RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("\uD83D\uDC4D"))return t}catch(e){}return()=>!1})();function ni(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 nl(e,t,n,i){let l,o=t;if(iy(e)){let s=!1,a=e.childNodes,u=a.length,c=i._blockCursorElement;o===u&&(s=!0,o=u-1);let d=a[o],f=!1;if(d===c)d=a[o+1],f=!0;else if(null!==c){let n=c.parentNode;e===n&&t>Array.prototype.indexOf.call(n.children,c)&&o--}if(tY(l=rz(d)))o=iU(l,s?"next":"previous");else{let a=rz(e);if(null===a)return null;if(nG(a)){let u=i.getElementByKey(a.getKey());null===u&&r(214);let c=a.getDOMSlot(u);[a,o]=c.resolveChildIndex(a,u,e,t),nG(a)||r(215),s&&o>=a.getChildrenSize()&&(o=Math.max(0,a.getChildrenSize()-1));let d=a.getChildAtIndex(o);if(nG(d)&&function(e,t,n){let r=e.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(d,0,n)){let e=s?d.getLastDescendant():d.getFirstDescendant();a=null===e||nG(d=e)?d:d.getParentOrThrow(),o=0}tY(d)?(l=d,a=null,o=iU(d,s?"next":"previous")):d!==a&&s&&!f&&(nG(a)||r(216),o=Math.min(a.getChildrenSize(),o+1))}else{let n=a.getIndexWithinParent();o=0===t&&nQ(a)&&rz(e)===a?n:n+1,a=a.getParentOrThrow()}if(nG(a))return t2(a.__key,o,"element")}}else l=rz(e);return tY(l)?t2(l.__key,iU(l,o,"clamp"),"text"):null}function no(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&&nG(l)&&l.isInline()){let t=l.getPreviousSibling();tY(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else nG(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):tY(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===i.getTextContent().length){let r=i.getNextSibling(),l=i.getParent();if(t&&nG(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&nG(l)&&l.isInline()&&!l.canInsertTextAfter()){let t=l.getNextSibling();tY(t)&&e.set(t.__key,0,"text")}}}function ns(e,t,n){if("text"===e.type&&"text"===t.type){let r=e.isBefore(t),i=e.is(t);no(e,r,i),no(t,!r,i),i&&t.set(e.key,e.offset,e.type);let l=nO();if(l.isComposing()&&l._compositionKey!==e.key&&t8(n)){let r=n.anchor,i=n.focus;e.set(r.key,r.offset,r.type,!0),t.set(i.key,i.offset,i.type,!0)}}}function na(e,t,n,r,i,l){if(null===e||null===n||!rv(i,e,n))return null;let o=nl(e,t,t8(l)?l.anchor:null,i);if(null===o)return null;let s=nl(n,r,t8(l)?l.focus:null,i);if(null===s)return null;if("element"===o.type&&"element"===s.type){let t=rz(e),r=rz(n);if(nQ(t)&&nQ(r))return null}return ns(o,s,l),[o,s]}function nu(e){return nG(e)&&!e.isInline()}function nc(e,t,n,r,i,l){let o=nP(),s=new t6(t2(e,t,i),t2(n,r,l),0,"");return s.dirty=!0,o._selection=s,s}function nd(){return new t6(t2("root",0,"element"),t2("root",0,"element"),0,"")}function nf(){return new t3(new Set)}function nh(e,t,n,r){let i,l,o,s,a=n._window;if(null===a)return null;let u=r||a.event,c=u?u.type:void 0,d="selectionchange"===c,f=!k&&(d||"beforeinput"===c||"compositionstart"===c||"compositionend"===c||"click"===c&&u&&3===u.detail||"drop"===c||void 0===c);if(t8(e)&&!f)return e.clone();if(null===t)return null;if(i=t.anchorNode,l=t.focusNode,o=t.anchorOffset,s=t.focusOffset,d&&t8(e)&&!rv(n,i,l))return e.clone();let h=na(i,o,l,s,n,e);if(null===h)return null;let[g,p]=h;return new t6(g,p,t8(e)?e.format:0,t8(e)?e.style:"")}function ng(){return nP()._selection}function np(){return nO()._editorState._selection}function nm(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"),ny(e)}}else{let o=e.isBackward(),s=o?l:i,u=s.getNode(),c=o?i:l,d=c.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(d)){let e=c.offset;(n<=e&&r>0||n<e&&r<0)&&c.set(a,Math.max(0,e+r),"element")}}ny(e)}function ny(e){let t=e.anchor,n=t.offset,r=e.focus,i=r.offset,l=t.getNode(),o=r.getNode();if(e.isCollapsed()){if(!nG(l))return;let e=l.getChildrenSize(),i=n>=e,o=i?l.getChildAtIndex(e-1):l.getChildAtIndex(n);if(tY(o)){let e=0;i&&(e=o.getTextContentSize()),t.set(o.__key,e,"text"),r.set(o.__key,e,"text")}}else{if(nG(l)){let e=l.getChildrenSize(),r=n>=e,i=r?l.getChildAtIndex(e-1):l.getChildAtIndex(n);if(tY(i)){let e=0;r&&(e=i.getTextContentSize()),t.set(i.__key,e,"text")}}if(nG(o)){let e=o.getChildrenSize(),t=i>=e,n=t?o.getChildAtIndex(e-1):o.getChildAtIndex(i);if(tY(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}}function nx(e,t,n,r,i){let l=null,o=0,s=null;null!==r?(l=r.__key,tY(r)?(o=r.getTextContentSize(),s="text"):nG(r)&&(o=r.getChildrenSize(),s="element")):null!==i&&(l=i.__key,tY(i)?s="text":nG(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 n_(e,t,n,r,i){"text"===e.type?e.set(n,e.offset+(t?0:i),"text"):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function nv(e,t,n,r,i){try{e.setBaseAndExtent(t,n,r,i)}catch(e){}}function nC(e){let t=ng()||np();
1null===t&&(t=rB().selectEnd()),t.insertNodes(e)}function nb(e){let t=e;e.isCollapsed()||t.removeText();let n=ng();t8(n)&&(t=n),t8(t)||r(161);let i=t.anchor,l=i.getNode(),o=i.offset;for(;!ib(l);){let e=l;if([l,o]=function(e,t){let n=e.getParent();if(!n){let e=rl();return rB().append(e),e.select(),[rB(),0]}if(tY(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(!nG(e)||0===t)return[n,e.getIndexWithinParent()];let r=e.getChildAtIndex(t);if(r){let n=new t6(t2(e.__key,t,"element"),t2(e.__key,t,"element"),0,""),i=e.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}(l,o),e.is(l))break}return o}function nw(e,t,n,r,i="decorators-and-blocks"){if("move"===t&&"character"===r&&!e.isCollapsed()){let[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}let l=i3(e.focus,n?"previous":"next"),o="lineboundary"===r,s="move"===t,a=l,u="decorators-and-blocks"===i;if(!ll(a)){for(let e of a){u=!1;let{origin:t}=e;if(!nQ(t)||t.isIsolated()||(a=e,!o||!t.isInline()))break}if(u)for(let e of iX(l).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(iB(e))e.origin.isInline()||(a=e);else{if(nG(e.origin))continue;nQ(e.origin)&&!e.origin.isInline()&&(a=e)}break}}if(a===l)return!1;if(s&&!o&&nQ(a.origin)&&a.origin.isKeyboardSelectable()){let e=nf();return e.add(a.origin.getKey()),rK(e),!0}return a=li(a),s&&i8(e.anchor,a),i8(e.focus,a),u||!o}let nT=null,nk=null,nE=!1,nS=!1,nN=0,nM={characterData:!0,childList:!0,subtree:!0};function nI(){return nE||null!==nT&&nT._readOnly}function nA(){nE&&r(13)}function nL(){nN>99&&r(14)}function nP(){return null===nT&&r(195,nF()),nT}function nO(){return null===nk&&r(196,nF()),nk}function nF(){let e=0,t=new Set,n=rh.version;if("undefined"!=typeof window)for(let r of document.querySelectorAll("[contenteditable]")){let i=rw(r);if(rC(i))e++;else if(i){let e=String(i.constructor.version||"<0.17.1");e===n&&(e+=" (separately built, likely a bundler configuration issue)"),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function nD(e,t,n){let r=t.__type,i=rm(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 nV(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function nH(e,t){if(!t)return;let n=e._updateTags,r=t;for(let e of(Array.isArray(t)||(r=[t]),r))n.add(e)}function nR(e){return nJ(e,nO()._nodes)}function nJ(e,t){let n=e.type,i=t.get(n);void 0===i&&r(17,n);let l=i.klass;e.type!==l.getType()&&r(18,l.name);let o=l.importJSON(e),s=e.children;if(nG(o)&&Array.isArray(s))for(let e=0;e<s.length;e++){let n=nJ(s[e],t);o.append(n)}return o}function nB(e,t,n){let r=nT,i=nE,l=nk;nT=t,nE=!0,nk=e;try{return n()}finally{nT=r,nE=i,nk=l}}function nj(e,t){let n=e._pendingEditorState,i=e._rootElement,l=e._headless||null===i;if(null===n)return;let o=e._editorState,s=o._selection,a=n._selection,u=0!==e._dirtyType,c=nT,d=nE,f=nk,h=e._updating,g=e._observer,m=null;if(e._pendingEditorState=null,e._editorState=n,!l&&u&&null!==g){nk=e,nT=n,nE=!1,e._updating=!0;try{let t=e._dirtyType,i=e._dirtyElements,l=e._dirtyLeaves;g.disconnect(),m=function(e,t,n,i,l,o){Q="",en="",er=2===i,z=n,K=n._config,Z=n._nodes,W=z._listeners.mutation,U=l,q=o,$=e._nodeMap,G=t._nodeMap,ei=t._readOnly,Y=new Map(n._keyToDOMMap);let s=new Map;return X=s,function e(t,n){let i=$.get(t),l=G.get(t);void 0!==i&&void 0!==l||r(61);let o=er||q.has(t)||U.has(t),s=it(z,t);if(i===l&&!o){if(nG(i)){let e=s.__lexicalTextContent;void 0!==e&&(Q+=e,en+=e)}else{let e=i.getTextContent();en+=e,Q+=e}return s}if(i!==l&&o&&r7(X,Z,W,l,"updated"),l.updateDOM(i,s,K)){let e=ed(t,null);return null===n&&r(62),n.replaceChild(e,s),el(t,null),e}if(nG(i)&&nG(l)){let t=l.__indent;(er||t!==i.__indent)&&ea(s,t);let n=l.__format;if((er||n!==i.__format)&&eu(s,n),o&&(function(t,n,i){ee=null,et="",function(t,n,i){let l=Q,o=t.__size,s=n.__size;Q="";let a=i.element;
1if(1===o&&1===s){let r=t.__first,i=n.__first;if(r===i)e(r,a);else{let e=ex(r),t=ed(i,null);try{a.replaceChild(t,e)}catch(n){if("object"==typeof n&&null!=n)throw Error(`${n.toString()} Parent: ${a.tagName}, new child: {tag: ${t.tagName} key: ${i}}, old child: {tag: ${e.tagName}, key: ${r}}.`);throw n}el(r,null)}let l=G.get(i);tY(l)&&(null===ee&&(ee=l.getFormat()),""===et&&(et=l.getStyle()))}else{let l=ep(t,$),u=ep(n,G);if(l.length!==o&&r(227),u.length!==s&&r(228),0===o)0!==s&&ef(u,n,0,s-1,i);else if(0===s){if(0!==o){let e=null==i.after&&null==i.before&&null==i.element.__lexicalLineBreak;eo(l,0,o-1,e?null:a),e&&(a.textContent="")}}else!function(t,n,r,i,l,o){let s=i-1,a=l-1,u,c,d=o.getFirstChild(),f=0,h=0;for(;f<=s&&h<=a;){let t=n[f],i=r[h];if(t===i)d=ey(e(i,o.element)),f++,h++;else{void 0===u&&(u=new Set(n)),void 0===c&&(c=new Set(r));let l=c.has(t),s=u.has(i);if(l)if(s){let t=it(z,i);t===d?d=ey(e(i,o.element)):(o.withBefore(d).insertChild(t),e(i,o.element)),f++,h++}else ed(i,o.withBefore(d)),h++;else d=ey(ex(t)),el(t,o.element),f++}let l=G.get(i);null!==l&&tY(l)&&(null===ee&&(ee=l.getFormat()),""===et&&(et=l.getStyle()))}let g=f>s,p=h>a;if(g&&!p){let e=r[a+1],n=void 0===e?null:z.getElementByKey(e);ef(r,t,h,a,o.withBefore(n))}else p&&!g&&eo(n,f,s,o.element)}(n,l,u,o,s,i)}ie(n)&&(Q+="\n\n"),a.__lexicalTextContent=Q,Q=l+Q}(t,n,n.getDOMSlot(i)),null==ee||ee===n.__textFormat||ei||n.setTextFormat(ee),""===et||et===n.__textStyle||ei||n.setTextStyle(et)}(i,l,s),n0(l)||l.isInline()||eg(i,l,s)),ie(l)&&(Q+="\n\n",en+="\n\n"),(er||l.__dir!==i.__dir)&&(ec(s,l),n0(l)&&!er))for(let e of l.getChildren())nG(e)&&ec(it(z,e.getKey()),e)}else{let e=l.getTextContent();if(nQ(l)){let e=l.decorate(z,K);null!==e&&em(t,e)}Q+=e,en+=e}if(!ei&&n0(l)&&l.__cachedText!==en){let e=l.getWritable();e.__cachedText=en,l=e}return s}("root",null),z=void 0,Z=void 0,U=void 0,q=void 0,$=void 0,G=void 0,K=void 0,Y=void 0,X=void 0,s}(o,n,e,t,i,l)}catch(t){if(t instanceof Error&&e._onError(t),nS)throw t;return rd(e,null,i,n),A(e),e._dirtyType=2,nS=!0,nj(e,o),void(nS=!1)}finally{g.observe(i,nM),e._updating=h,nT=c,nE=d,nk=f}}n._readOnly||(n._readOnly=!0);let y=e._dirtyLeaves,x=e._dirtyElements,_=e._normalizedNodes,v=e._updateTags,C=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=rR(e)),delete i[n])}(e,n);let b=l?null:ip(is(e));if(e._editable&&null!==b&&(u||null===a||a.dirty)&&null!==i&&!v.has(rt)){nk=e,nT=n;try{if(null!==g&&g.disconnect(),u||null===a||a.dirty){let t=e._blockCursorElement;null!==t&&ig(t,e,i),function(e,t,n,r,i,l,o){let s=r.anchorNode,a=r.focusNode,u=r.anchorOffset,c=r.focusOffset,d=document.activeElement;if(i.has(n4)&&d!==l||null!==d&&r_(d))return;if(!t8(t))return null!==e&&rv(n,s,a)&&r.removeAllRanges();let f=t.anchor,h=t.focus,g=f.key,p=h.key,m=it(n,g),y=it(n,p),x=f.offset,_=h.offset,v=t.format,C=t.style,b=t.isCollapsed(),w=m,T=y,k=!1;if("text"===f.type){w=rS(m);let e=f.getNode();k=e.getFormat()!==v||e.getStyle()!==C}else t8(e)&&"text"===e.anchor.type&&(k=!0);if("text"===h.type&&(T=rS(y)),null!==w&&null!==T&&(b&&(null===e||k||t8(e)&&(e.format!==v||e.style!==C))&&(tp=[v,C,x,g,performance.now()]),u!==x||c!==_||s!==w||a!==T||"Range"===r.type&&b||(null!==d&&l.contains(d)||l.focus({preventScroll:!0}),"element"===f.type))){if(nv(r,w,x,T,_),!i.has(re)&&t.isCollapsed()&&null!==l&&l===document.activeElement){let e=t8(t)&&"element"===t.anchor.type?w.childNodes[x]||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=ii(n),i=io(r);if(null===r||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=is(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=ir(u)}}(n,t,l)}}ta=!0}
1}(s,a,e,b,v,i)}!function(e,t,n){let r=e._blockCursorElement;if(t8(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())ih(l.getChildAtIndex(o-1))&&(s=!0);else{let t=l.getChildAtIndex(o);if(null!==t&&ih(t)){let n=t.getPreviousSibling();(null===n||ih(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=p(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&&ig(r,e,t)}(e,i,a)}finally{null!==g&&g.observe(i,nM),nk=f,nT=c}}null!==m&&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];for(let e of s){let l=t.get(e);void 0!==l&&o(l,{dirtyLeaves:r,prevEditorState:i,updateTags:n})}}}(e,m,v,y,o),t8(a)||null===a||null!==s&&s.is(a)||e.dispatchCommand(ev,void 0);let w=e._pendingDecorators;null!==w&&(e._decorators=w,e._pendingDecorators=null,nK("decorator",e,!0,w)),function(e,t,n){let r=rJ(t),i=rJ(n);r!==i&&nK("textcontent",e,!0,i)}(e,t||o,n),nK("update",e,!0,{dirtyElements:x,dirtyLeaves:y,editorState:n,mutatedNodes:m,normalizedNodes:_,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,C),function(e){let t=e._updates;if(0!==t.length){let n=t.shift();if(n){let[t,r]=n;nZ(e,t,r)}}}(e)}function nK(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 nz(e,t){let n=e._updates,i=t||!1;for(;0!==n.length;){let t=n.shift();if(t){let n,[l,o]=t,s=e._pendingEditorState;void 0!==o&&(n=o.onUpdate,o.skipTransforms&&(i=!0),o.discrete&&(null===s&&r(191),s._flushSync=!0),n&&e._deferred.push(n),nH(e,o.tag)),null==s?nZ(e,l,o):l()}}return i}function nZ(e,t,n){let i=e._updateTags,l,o=!1,s=!1;void 0!==n&&(l=n.onUpdate,nH(e,n.tag),o=n.skipTransforms||!1,s=n.discrete||!1),l&&e._deferred.push(l);let a=e._editorState,u=e._pendingEditorState,c=!1;(null===u||u._readOnly)&&(u=e._pendingEditorState=n5(u||a),c=!0),u._flushSync=s;let d=nT,f=nE,h=nk,g=e._updating;nT=u,nE=!1,e._updating=!0,nk=e;let p=e._headless||null===e.getRootElement();rg=null;try{c&&(p?null!==a._selection&&(u._selection=a._selection.clone()):u._selection=function(e,t){let n=e.getEditorState()._selection,r=ip(is(e));return t8(n)||null==n?nh(n,r,e,t):n.clone()}(e,n&&n.event||null));let i=e._compositionKey;t(),o=nz(e,o),function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(t8(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);tY(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&J(t)}}(u,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements,i=e._nodeMap,l=rO(),o=new Map,s=n,a=s.size,u=r,c=u.size;for(;a>0||c>0;){if(a>0){for(let e of(t._dirtyLeaves=new Set,s)){let r=i.get(e);tY(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&J(r),void 0!==r&&nV(r,l)&&nD(t,r,o),n.add(e)}if((a=(s=t._dirtyLeaves).size)>0){nN++;continue}}for(let e of(t._dirtyLeaves=new Set,t._dirtyElements=new Map,u.delete("root")&&u.set("root",!0),u)){let n=e[0],s=e[1];if(r.set(n,s),!s)continue;let a=i.get(n);void 0!==a&&nV(a,l)&&nD(t,a,o)}a=(s=t._dirtyLeaves).size,c=(u=t._dirtyElements).size,nN++}t._dirtyLeaves=n,t._dirtyElements=r}(u,e),nz(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()||(nG(t)&&function e(t,n,r,i,l,o){let s=t.getFirstChild();for(;null!==s;){let t=s.__key;s.__parent===n&&(nG(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)),i!==e._compositionKey&&(u._flushSync=!0);let l=u._selection;if(t8(l)){let e=u._nodeMap,t=l.anchor.key,n=l.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||r(19)}else t4(l)&&0===l._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 nj(e)}finally{nT=d,nE=f,nk=h,e._updating=g,nN=0}0!==e._dirtyType||e._deferred.length>0||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,nj(e)):c&&rx(()=>{nj(e)}):(u._flushSync=!1,c&&(i.clear(),e._deferred=[],e._pendingEditorState=null))}function nW(e,t,n){nk===e&&void 0===n?t():nZ(e,t,n)}class nU{constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new nU(this.element,e,this.after)}withAfter(e){return new nU(this.element,this.before,e)}withElement(e){return this.element===e?this:new nU(e,this.before,this.after)}insertChild(e){let t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&r(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&r(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&r(224),this.element.replaceChild(e,t),this}getFirstChild(){let e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){null===e?this.removeManagedLineBreak():this.insertManagedLineBreak("decorator"===e&&(c||u))}removeManagedLineBreak(){let e=this.getManagedLineBreak();if(e){let t=this.element,n="IMG"===e.nodeName?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){let t=this.getManagedLineBreak();if(t){if(e===("IMG"===t.nodeName))return;this.removeManagedLineBreak()}let n=this.element,r=this.before,i=document.createElement("br");if(n.insertBefore(i,r),e){let e=document.createElement("img");e.setAttribute("data-lexical-linebreak","true"),e.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",e.alt="",n.insertBefore(e,i),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let t=this.after;null!==t;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,n,r){if(n===this.element){let t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,r))]}let i=nq(t,n);i.push(r);let l=nq(t,this.element),o=e.getIndexWithinParent();for(let e=0;e<l.length;e++){let t=i[e],n=l[e];
1if(void 0===t||t<n)break;if(t>n){o+=1;break}}return[e.getParentOrThrow(),o]}}function nq(e,t){let n=[],i=t;for(;i!==e&&null!==i;i=i.parentNode){let e=0;for(let t=i.previousSibling;null!==t;t=t.previousSibling)e++;n.push(e)}return i!==e&&r(225),n.reverse()}class n$ extends tI{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){return C[this.getFormat()]||""}getStyle(){return this.getLatest().__style}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=nO()._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(tY(t)&&e.push(t),nG(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;nG(e);){let t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;nG(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 nG(e)&&e.getLastDescendant()||e||null}let r=t[e];return nG(r)&&r.getFirstDescendant()||r||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:rF(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&r(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:rF(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&r(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(),nG(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(),nG(i)&&r!==n-1&&!i.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(""!==e){let t=v[e];return!!(this.getFormat()&t)}return!1}hasTextFormat(e){let t=x[e];return!!(this.getTextFormat()&t)}getFormatFlags(e,t){return rN(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){nA();let n=ng(),r=e,i=t,l=this.getChildrenSize();if(!this.canBeEmpty()){if(0===e&&0===t){let e=this.getFirstChild();if(tY(e)||nG(e))return e.select(0,0)}else if((void 0===e||e===l)&&(void 0===t||t===l)){let e=this.getLastChild();if(tY(e)||nG(e))return e.select()}}void 0===r&&(r=l),void 0===i&&(i=l);let o=this.__key;return t8(n)?(n.anchor.set(o,r,"element"),n.focus.set(o,i,"element"),n.dirty=!0,n):nc(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();
1return 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?v[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){let t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){let t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){let i=n.length,l=this.getChildrenSize(),o=this.getWritable();e+t<=l||r(226,String(e),String(t),String(l));let s=o.__key,a=[],u=[],c=this.getChildAtIndex(e+t),d=null,f=l-t+i;if(0!==e)if(e===l)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&&r(100);let t=e.getNextSibling(),n=e.__key;rA(e.getWritable()),u.push(n),e=t}}let h=d;for(let e=0;e<i;e++){let t=n[e];null!==h&&t.is(h)&&(d=h=h.getPreviousSibling());let i=t.getWritable();i.__parent===s&&f--,rA(i);let l=t.__key;if(null===h)o.__first=l,i.__prev=null;else{let e=h.getWritable();e.__next=l,i.__prev=e.__key}t.__key===s&&r(76),i.__parent=s,a.push(l),h=t}if(e+t===l)null!==h&&(h.getWritable().__next=null,o.__last=h.__key);else if(null!==c){let e=c.getWritable();if(null!==h){let t=h.getWritable();e.__prev=h.__key,t.__next=c.__key}else e.__prev=null}if(o.__size=f,u.length){let e=ng();if(t8(e)){let t=new Set(u),n=new Set(a),{anchor:r,focus:i}=e;nY(r,t,n)&&nx(r,r.getNode(),this,d,c),nY(i,t,n)&&nx(i,i.getNode(),this,d,c),0!==f||this.canBeEmpty()||ia(this)||this.remove()}}return o}getDOMSlot(e){return new nU(e)}exportDOM(e){let{element:t}=super.exportDOM(e);if(iy(t)){let e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+"px");let n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){let e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return 0!==t&&(e.textFormat=t),""!==n&&(e.textStyle=n),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}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}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){let n=this.getDOMSlot(e),r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){let i=t.getElementByKey(e.getKey());null!==i&&(null==r?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling)}}}function nG(e){return e instanceof n$}function nY(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 nX extends tI{decorate(e,t){r(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function nQ(e){return e instanceof nX}class n1 extends n${static getType(){return"root"}static clone(){return new n1}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){r(51)}getTextContent(){let e=this.__cachedText;return(nI()||0===nO()._dirtyType)&&null!==e?e:super.getTextContent()}remove(){r(52)}replace(e){r(53)}insertBefore(e){r(54)}insertAfter(e){r(55)}updateDOM(e,t){return!1}splice(e,t,n){for(let e of n)nG(e)||nQ(e)||r(282);return super.splice(e,t,n)}static importJSON(e){return rB().updateFromJSON(e)}collapseAtStart(){return!0}}function n0(e){return e instanceof n1}function n5(e){return new n9(new Map(e._nodeMap))}function n2(){return new n9(new Map([["root",new n1]]))}class n9{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,t){return nB(t&&t.editor||null,this,e)}clone(e){let t=new n9(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return nB(null,this,()=>({root:function e(t){let n=t.exportJSON(),i=t.constructor;if(n.type!==i.getType()&&r(130,i.name),nG(t)){let l=n.children;Array.isArray(l)||r(59,i.name);let o=t.getChildren();for(let t=0;t<o.length;t++){let n=e(o[t]);l.push(n)}}return n}(rB())}))}}let n7="historic",n3="history-push",n8="history-merge",n6="paste",n4="collaboration",re="skip-scroll-into-view",rt="skip-dom-selection";class rn extends n${static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class rr extends n${static getType(){return"paragraph"}static clone(e){return new rr(e.__key)}createDOM(e){let t=document.createElement("p"),n=r9(e.theme,"paragraph");return void 0!==n&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:ri,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(iy(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return rl().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}
1insertNewAfter(e,t){let n=rl();n.setTextFormat(e.format),n.setTextStyle(e.style);let r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){let e=this.getChildren();if(0===e.length||tY(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 ri(e){let t=rl();return e.style&&(t.setFormat(e.style.textAlign),iM(e,t)),{node:t}}function rl(){return ic(new rr)}function ro(e){return e instanceof rr}let rs=0,ra=1,ru=3,rc=4;function rd(e,t,n,r){let i=e._keyToDOMMap;i.clear(),e._editorState=n2(),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 rf(e){let t,n=e||{},r=nk,i=n.theme||{},l=void 0===e?r:n.parentEditor||null,o=n.disableEvents||!1,s=n2(),a=n.namespace||(null!==l?l._config.namespace:rU()),u=n.editorState,c=[n1,tj,tA,tQ,rr,rn,...n.nodes||[]],{onError:d,html:f}=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<c.length;e++){let n=c[e],r=null,i=null;if("function"!=typeof n){let e=n;n=e.replace,r=e.with,i=e.withKlass||null}let{ownNodeConfig:l}=iA(n),o=n.getType(),s=n.transform(),a=new Set;l&&l.$transform&&a.add(l.$transform),null!==s&&a.add(s),t.set(o,{exportDOM:f&&f.export?f.export.get(n):void 0,klass:n,replace:r,replaceWithKlass:i,sharedNodeState:function(e){let t=new Map,n=new Set;for(let r="function"==typeof e?e:e.replace;r.prototype&&void 0!==r.prototype.getType;r=Object.getPrototypeOf(r)){let{ownNodeConfig:e}=iA(r);if(e&&e.stateConfigs)for(let r of e.stateConfigs){let e;"stateConfig"in r?(e=r.stateConfig,r.flat&&n.add(e.key)):e=r,t.set(e.key,e)}}return{flatKeys:n,sharedConfigMap:t}}(c[e]),transforms:a})}}let g=new rh(s,l,t,{disableEvents:o,namespace:a,theme:i},d||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])})};return 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,f?f.import:void 0),h,e);return void 0!==u&&(g._pendingEditorState=u,g._dirtyType=2),g}class rh{constructor(e,t,n,r,i,l,o,s){this._createEditorArgs=s,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=rU(),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&&r(35);let i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);let l=i.get(e);void 0===l&&r(36,String(e));let o=l[n];return o.add(t),()=>{o.delete(t),l.every(e=>0===e.size)&&i.delete(e)}}registerMutationListener(e,t,n){let r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation,l=i.get(t);void 0===l&&(l=new Set,i.set(t,l)),l.add(r);let o=n&&n.skipInitialization;return void 0!==o&&o||this.initializeMutationListener(t,r),()=>{l.delete(r),0===l.size&&i.delete(t)}}getRegisteredNode(e){let t=this._nodes.get(e.getType());return void 0===t&&r(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){let n=this._editorState,r=iS(n).get(t.getType());if(!r)return;let i=new Map;for(let e of r.keys())i.set(e,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){let n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){let n=this.registerNodeTransformToKlass(e,t),r=[n],i=n.replaceWithKlass;if(null!=i){let e=this.registerNodeTransformToKlass(i,t);r.push(e)}return function(e,t){let n=iS(e.getEditorState()),r=[];for(let e of t){let t=n.get(e);t&&r.push(t)}0!==r.length&&e.update(()=>{for(let e of r)for(let t of e.keys()){let e=rF(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:n8}:void 0)}(this,r.map(e=>e.klass.getType())),()=>
1{r.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 r4(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=r9(this._config.theme,"root"),i=this._pendingEditorState||this._editorState;if(this._rootElement=e,rd(this,t,e,i),null!==t&&(this._config.disableEvents||function(e){let t=e.ownerDocument,n=ts.get(t);if(void 0===n)return;let i=n-1;i>=0||r(164),ts.set(t,i),0===i&&t.removeEventListener("selectionchange",tk);let l=rw(e);rC(l)?(!function(e){if(null!==e._parentEditor){let t=rW(e),n=t[t.length-1]._key;tT.get(n)===e&&tT.delete(n)}else tT.delete(e._key)}(l),e.__lexicalEditor=null):l&&r(198);let o=tw(e);for(let e=0;e<o.length;e++)o[e]();e.__lexicalEventHandles=[]}(t),null!=n&&t.classList.remove(...n)),null!==e){let t=io(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,A(this),this._updateTags.add(n8),nj(this),this._config.disableEvents||function(e,t){let n=e.ownerDocument,r=ts.get(n);(void 0===r||r<1)&&n.addEventListener("selectionchange",tk),ts.set(n,(r||0)+1),e.__lexicalEditor=t;let i=tw(e);for(let n=0;n<tn.length;n++){let[r,l]=tn[n],o="function"==typeof l?e=>{tS(e)||(tE(e),(t.isEditable()||"click"===r)&&l(e,t))}:e=>{if(tS(e))return;tE(e);let n=t.isEditable();switch(r){case"cut":return n&&r4(t,e5,e);case"copy":return r4(t,e0,e);case"paste":return n&&r4(t,eS,e);case"dragstart":return n&&r4(t,eX,e);case"dragover":return n&&r4(t,eQ,e);case"dragend":return n&&r4(t,e1,e);case"focus":return n&&r4(t,e6,e);case"blur":return n&&r4(t,e4,e);case"drop":return n&&r4(t,eG,e)}};e.addEventListener(r,o),i.push(()=>{e.removeEventListener(r,o)})}}(e,this),null!=n&&e.classList.add(...n)}else this._window=null,this._updateTags.add(n8),nj(this);nK("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&r(38);let n=e;n._readOnly&&((n=n5(e))._selection=e._selection?e._selection.clone():null),I(this);let i=this._pendingEditorState,l=this._updateTags,o=void 0!==t?t.tag:null;null===i||i.isEmpty()||(null!=o&&l.add(o),nj(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=o&&l.add(o),this._updating||nj(this)}parseEditorState(e,t){return function(e,t,n){let r=n2(),i=nT,l=nE,o=nk,s=t._dirtyElements,a=t._dirtyLeaves,u=t._cloneNotNeeded,c=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,nT=r,nE=!1,nk=t,rg=null;try{let i=t._nodes;nJ(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=c,nT=i,nE=l,nk=o}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return nj(this),this.getEditorState().read(e,{editor:this})}update(e,t){this._updating?this._updates.push([e,t]):nZ(this,e,t)}focus(e,t={}){let n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),nW(this,()=>{var r,i;let l=ng(),o=rB();null!==l?l.dirty||rK(l.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),r="focus",nA(),nO()._updateTags.add(r),i=()=>{n.removeAttribute("autocapitalize"),e&&e()},nA(),nO()._deferred.push(i)}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){let e=this._rootElement;null!==e&&e.blur();let t=ip(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,nK("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}rh.version="0.35.0+prod.esm";let rg=null,rp=1;function rm(e,t){let n=ry(e,t);return void 0===n&&r(30,t),n}function ry(e,t){return e._nodes.get(t)}let rx="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function r_(e){let t=document.activeElement;if(!iy(t))return!1;let n=t.nodeName;return nQ(rH(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==rw(t))}function rv(e,t,n){let r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!r_(t)&&rb(t)===e}catch(e){return!1}}function rC(e){return e instanceof rh}function rb(e){let t=e;for(;null!=t;){let e=rw(t);if(rC(e))return e;t=ir(t)}return null}function rw(e){return e?e.__lexicalEditor:null}function rT(e){return t0(e)||e.isToken()}function rk(e){return rT(e)||e.isSegmented()}
1function rE(e){return ix(e)&&3===e.nodeType}function rS(e){let t=e;for(;null!=t;){if(rE(t))return t;t=t.firstChild}return null}function rN(e,t,n){let r=x[t];if(null!==n&&(e&r)==(n&r))return e;let i=e^r;return"subscript"===t?i&=~x.superscript:"superscript"===t?i&=~x.subscript:"lowercase"===t?(i&=~x.uppercase,i&=~x.capitalize):"uppercase"===t?(i&=~x.lowercase,i&=~x.capitalize):"capitalize"===t&&(i&=~x.lowercase,i&=~x.uppercase),i}function rM(e){return tY(e)||tO(e)||nQ(e)}function rI(e,t){let n=function(){let e=rg;return rg=null,e}();if(null!=(t=t||n&&n.__key))return void(e.__key=t);nA(),nL();let r=nO(),i=nP(),l=""+rp++;i._nodeMap.set(l,e),nG(e)?r._dirtyElements.set(l,!0):r._dirtyLeaves.add(l),r._cloneNotNeeded.add(l),r._dirtyType=1,e.__key=l}function rA(e){let t=e.getParent();if(null!==t){let n=e.getWritable(),r=t.getWritable(),i=e.getPreviousSibling(),l=e.getNextSibling(),o=null!==l?l.__key:null,s=null!==i?i.__key:null,a=null!==i?i.getWritable():null,u=null!==l?l.getWritable():null;null===i&&(r.__first=o),null===l&&(r.__last=s),null!==a&&(a.__next=o),null!==u&&(u.__prev=s),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function rL(e){nL();let t=e.getLatest(),n=t.__parent,r=nP(),i=nO(),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,nG(e)?o.set(s,!0):i._dirtyLeaves.add(s)}function rP(e){nA();let t=nO(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){let e=rF(n);null!==e&&e.getWritable()}if(null!==e){let t=rF(e);null!==t&&t.getWritable()}}}function rO(){return nI()?null:nO()._compositionKey}function rF(e,t){let n=(t||nP())._nodeMap.get(e);return void 0===n?null:n}function rD(e,t){let n=rV(e,nO());return void 0!==n?rF(n,t):null}function rV(e,t){return e[`__lexicalKey_${t._key}`]}function rH(e,t){let n=e;for(;null!=n;){let e=rD(n,t);if(null!==e)return e;n=ir(n)}return null}function rR(e){let t=Object.assign({},e._decorators);return e._pendingDecorators=t,t}function rJ(e){return e.read(()=>rB().getTextContent())}function rB(){return rj(nP())}function rj(e){return e._nodeMap.get("root")}function rK(e){nA();let t=nP();null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function rz(e){let t=nO(),n=function(e,t){let n=e;for(;null!=n;){let e=rV(n,t);if(void 0!==e)return e;n=ir(n)}return null}(e,t);return null===n?e===t.getRootElement()?rF("root"):null:rF(n)}function rZ(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function rW(e){let t=[],n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function rU(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function rq(e){return rE(e)?e.nodeValue:null}function r$(e,t,n){let r=ip(is(t));if(null===r)return;let i=r.anchorNode,{anchorOffset:l,focusOffset:o}=r;if(null!==i){let t=rq(i),r=rH(i);if(null!==t&&tY(r)){if(t===m&&n){let e=n.length;t=n,l=e,o=e}null!==t&&rG(r,t,l,o,e)}}}function rG(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]===m&&(s=t.slice(0,-1));let a=l.getTextContent();if(i||s!==a){if(""===s){if(rP(null),u||c||g)l.remove();else{let e=nO();setTimeout(()=>{e.update(()=>{l.isAttached()&&l.remove()})},20)}return}let t=l.getParent(),i=np(),a=l.getTextContentSize(),d=rO(),f=l.getKey();if(l.isToken()||null!==d&&f===d&&!o||t8(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 h=ng();if(!t8(h)||null===n||null===r)return void rY(l,s,h);if(h.setTextNodeRange(l,n,l,r),l.isSegmented()){let e=tG(l.getTextContent());l.replace(e),l=e}rY(l,s,h)}}}function rY(e,t,n){if(e.setTextContent(t),t8(n)){let t=e.getKey();for(let r of["anchor","focus"]){let i=n[r];"text"===i.type&&i.key===t&&(i.offset=iU(e,i.offset,"clamp"))}}}function rX(e,t,n){let r=t[n]||!1;return"any"===r||r===e[n]}function rQ(e,t,n){return rX(e,n,"altKey")&&rX(e,n,"ctrlKey")&&rX(e,n,"shiftKey")&&rX(e,n,"metaKey")&&e.key.toLowerCase()===t.toLowerCase()}let r1={ctrlKey:!o,metaKey:o},r0={altKey:o,ctrlKey:!o};function r5(e){return"Backspace"===e.key}function r2(e){let t=rB();if(t8(e)){let t=e.anchor,n=e.focus,r=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),B(e),e}{let e=t.select(0,t.getChildrenSize());return rK(B(e)),e}}
1function r9(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=p(i);return n[t]=e,e}return i}function r7(e,t,n,i,l){if(0===n.size)return;let o=i.__type,s=i.__key,a=t.get(o);void 0===a&&r(33,o);let u=a.klass,c=e.get(u);void 0===c&&(c=new Map,e.set(u,c));let d=c.get(s),f="destroyed"===d&&"created"===l;(void 0===d||f)&&c.set(s,f?"updated":l)}function r3(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 r8(e,t){let n=e.offset;if("element"===e.type)return r3(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?r3(r.getParentOrThrow(),t,r.getIndexWithinParent()+ +!t):e}}return null}function r6(e){let t=is(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function r4(e,t,n){return function(e,t,n){let r=rW(e);for(let i=4;i>=0;i--)for(let l=0;l<r.length;l++){let o=r[l],s=o._commands.get(t);if(void 0!==s){let t=s[i];if(void 0!==t){let r=Array.from(t),i=r.length,l=!1;if(nW(o,()=>{for(let t=0;t<i;t++)if(r[t](n,e))return void(l=!0)}),l)return l}}}return!1}(e,t,n)}function ie(e){return!n0(e)&&!e.isLastChild()&&!e.isInline()}function it(e,t){let n=e._keyToDOMMap.get(t);return void 0===n&&r(75,t),n}function ir(e){let t=e.assignedSlot||e.parentElement;return i_(t)?t.host:t}function ii(e){return ix(e)&&9===e.nodeType?e:iy(e)?e.ownerDocument:null}function il(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function io(e){let t=ii(e);return t?t.defaultView:null}function is(e){let t=e._window;return null===t&&r(78),t}function ia(e){return n0(e)||nG(e)&&e.isShadowRoot()}function iu(e){let t=e.constructor.clone(e);return rI(t,null),t.afterCloneFrom(e),t}function ic(e){let t=nO(),n=e.getType(),i=ry(t,n);void 0===i&&r(200,e.constructor.name,n);let{replace:l,replaceWithKlass:o}=i;if(null!==l){let t=l(e),i=t.constructor;return null!==o?t instanceof o||r(201,o.name,o.getType(),i.name,i.getType(),e.constructor.name,n):t instanceof e.constructor&&i!==e.constructor||r(202,i.name,i.getType(),e.constructor.name,n),t.__key===e.__key&&r(203,e.constructor.name,n,i.name,i.getType()),t}return e}function id(e,t){!n0(e.getParent())||nG(t)||nQ(t)||r(99)}function ih(e){return(nQ(e)||nG(e)&&!e.canBeEmpty())&&!e.isInline()}function ig(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;let r=e.parentElement;null!==r&&r.removeChild(e)}function ip(e){return i?(e||window).getSelection():null}function im(e){return iy(e)&&"A"===e.tagName}function iy(e){return ix(e)&&1===e.nodeType}function ix(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function i_(e){return ix(e)&&11===e.nodeType}function iv(e){let t=RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}function iC(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 ib(e){if(nQ(e)&&!e.isInline())return!0;if(!nG(e)||ia(e))return!1;let t=e.getFirstChild(),n=null===t||tO(t)||tY(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function iw(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}function iT(){return nO()}let ik=new WeakMap,iE=new Map;function iS(e){if(!e._readOnly&&e.isEmpty())return iE;e._readOnly||r(192);let t=ik.get(e);return t||(t=function(e){let t=new Map;for(let[n,r]of e._nodeMap){let e=r.__type,i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,r)}return t}(e),ik.set(e,t)),t}function iN(e){let t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function iM(e,t){let n=Math.round((parseInt(e.style.paddingInlineStart,10)||0)/40);t.setIndent(n)}function iI(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==tI[t]}function iA(e){let t=T in e.prototype?e.prototype[T]():void 0,n=e===nX||e===n$||e===tI,r=!n&&iI(e,"getType")?e.getType():void 0,i,l=r;if(t)if(r)i=t[r];else for(let[e,n]of Object.entries(t))l=e,i=n;if(!n&&l&&(iI(e,"getType")||(e.getType=()=>l),iI(e,"clone")||(e.clone=t=>(rg=t,new e)),iI(e,"importJSON")||(e.importJSON=i&&i.$importJSON||(t=>(new e).updateFromJSON(t))),!iI(e,"importDOM")&&i)){let{importDOM:t}=i;t&&(e.importDOM=()=>t)}return{ownNodeConfig:i,ownNodeType:l}}let iL={next:"previous",previous:"next"};class iP{constructor(e){this.origin=e}[Symbol.iterator](){return i0({hasNext:iJ,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return iZ(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return iZ(this.origin,this.direction)}remove(){let e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){let n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(null===n?this.insert(e):n.replace(e,t)),this}splice(e,t,n="next"){let i=n===this.direction?t:Array.from(t).reverse(),l=this,o=this.getParentAtCaret(),s=new Map;for(let t=l.getAdjacentCaret();null!==t&&s.size<e;t=t.getAdjacentCaret()){let e=t.origin.getWritable();s.set(e.getKey(),e)}for(let e of i){if(s.size>0){let t=l.getNodeAtCaret();if(t)if(s.delete(t.getKey()),s.delete(e.getKey()),t.is(e)||l.origin.is(e));else{let n=e.getParent();n&&n.is(o)&&e.remove(),t.replace(e)}else null===t&&r(263,Array.from(s).join(" "))}else l.insert(e);l=iZ(e,this.direction)}for(let e of s.values())e.remove();return this}}class iO extends iP{type="child";getLatest(){let e=this.origin.getLatest();return e===this.origin?this:iq(e,this.direction)}getParentCaret(e="root"){return iZ(iD(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=iL[this.direction];return iZ(this.getNodeAtCaret(),e)||iq(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof iO&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}let iF={root:n0,shadowRoot:ia};function iD(e,t="root"){return iF[t](e)?null:e}class iV extends iP{type="sibling";getLatest(){let e=this.origin.getLatest();return e===this.origin?this:iZ(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return nG(this.origin)?iq(this.origin,this.direction):null}getParentCaret(e="root"){return iZ(iD(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=iL[this.direction];return iZ(this.getNodeAtCaret(),e)||iq(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof iV&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof iV||e instanceof iH)&&this.direction===e.direction&&this.origin.is(e.origin)}}class iH extends iP{type="text";constructor(e,t){super(e),this.offset=t}getLatest(){let e=this.origin.getLatest();return e===this.origin?this:iW(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return iZ(iD(this.getParentAtCaret(),e),this.direction)}getFlipped(){return iW(this.origin,iL[this.direction],this.offset)}isSamePointCaret(e){return e instanceof iH&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof iV||e instanceof iH)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return iZ(this.origin,this.direction)}}function iR(e){return e instanceof iH}function iJ(e){return e instanceof iV}function iB(e){return e instanceof iO}let ij={next:class extends iH{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends iH{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},iK={next:class extends iV{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends iV{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},iz={next:class extends iO{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends iO{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function iZ(e,t){return e?new iK[t](e):null}function iW(e,t,n){return e?new ij[t](e,iU(e,n)):null}function iU(e,t,n="error"){let r=e.getTextContentSize(),i="next"===t?r:"previous"===t?0:t;return(i<0||i>r)&&("clamp"!==n&&function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",284),t))r.append("v",e);n.search=r.toString(),console.warn(`Minified Lexical warning #${284}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}
1(284,String(t),String(r),e.getKey()),i=i<0?0:r),i}function iq(e,t){return nG(e)?new iz[t](e):null}function i$(e){var t;return e&&((t=e.getAdjacentCaret())&&t.getChildCaret()||t)}class iG{type="node-caret-range";constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){let e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new iG(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){let e=e=>{let t=this[e].getLatest();return iR(t)?function(e,t){let{direction:n,origin:r}=e;return new iY(e,iU(r,"focus"===t?iL[n]:n)-e.offset)}(t,e):null},t=e("anchor"),n=e("focus");if(t&&n){let{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[new iY(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){let t=iR(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=iR(n),i=t=>t.isSameNodeCaret(n)?null:i$(t)||t.getParentCaret(e);return i0({hasNext:e=>null!==e&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:i(t),map:e=>e,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class iY{type="slice";constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){let{distance:e,caret:{offset:t}}=this,n=t+e;return n<t?[n,t]:[t,n]}getTextContent(){let[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){let{caret:{origin:e,direction:t}}=this,[n,r]=this.getSliceIndices(),i=e.getTextContent();return iW(e.setTextContent(i.slice(0,n)+i.slice(r)),t,n)}}function iX(e){return i1(e,iZ(rB(),e.direction))}function iQ(e){return i1(e,e)}function i1(e,t){return e.direction!==t.direction&&r(265),new iG(e,t,e.direction)}function i0(e){let{initial:t,hasNext:n,step:r,map:i}=e,l=t;return{[Symbol.iterator](){return this},next(){if(!n(l))return{done:!0,value:void 0};let e={done:!1,value:i(l)};return l=r(l),e}}}function i5(e,t){let n=i7(e.origin,t.origin);switch(null===n&&r(275,e.origin.getKey(),t.origin.getKey()),n.type){case"same":{let n="text"===e.type,r="text"===t.type;return n&&r?Math.sign(e.offset-t.offset):e.type===t.type?0:n?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===t.type?1:-1;case"branch":return i2(n)}}function i2(e){let{a:t,b:n}=e,r=t.__key,i=n.__key,l=t,o=n;for(;l&&o;l=l.getNextSibling(),o=o.getNextSibling()){if(l.__key===i)return -1;if(o.__key===r)return 1}return null===l?1:-1}function i9(e){return nG(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function i7(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};let n=new Map;for(let[t,r]=i9(e);t;r=t,t=t.getParent())n.set(t,r);for(let[i,l]=i9(t);i;l=i,i=i.getParent()){let o=n.get(i);if(void 0!==o)return null===o?(i.is(e)||r(276),{commonAncestor:i,type:"ancestor"}):null===l?(i.is(t)||r(277),{commonAncestor:i,type:"descendant"}):((nG(o)||o.is(e))&&(nG(l)||l.is(t))&&i.is(o.getParent())&&i.is(l.getParent())||r(278),{a:o,b:l,commonAncestor:i,type:"branch"})}return null}function i3(e,t){let{type:n,key:i,offset:l}=e,o=function(e){let t=rF(e);return null===t&&r(63,e),t}(e.key);return"text"===n?(tY(o)||r(266,o.getType(),i),iW(o,t,l)):(nG(o)||r(267,o.getType(),i),function(e,t,n){let r=iq(e,"next");for(let e=0;e<t;e++){let e=r.getAdjacentCaret();if(null===e)break;r=e}return lo(r,n)}(o,e.offset,t))}function i8(e,t){let{origin:n,direction:i}=t,l="next"===i;iR(t)?e.set(n.getKey(),t.offset,"text"):iJ(t)?tY(n)?e.set(n.getKey(),iU(n,i),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+ +!!l,"element"):(iB(t)&&nG(n)||r(268),e.set(n.getKey(),l?0:n.getChildrenSize(),"element"))}function i6(e){let t=ng(),n=t8(t)?t:nd();return i4(n,e),rK(n),n}function i4(e,t){i8(e.anchor,t.anchor),i8(e.focus,t.focus)}function le(e){let{anchor:t,focus:n}=e,r=i3(t,"next"),i=i3(n,"next"),l=0>=i5(r,i)?"next":"previous";return i1(lo(r,l),lo(i,l))}function lt(e){let{direction:t,origin:n}=e,r=iZ(n,iL[t]).getNodeAtCaret();return r?iZ(r,t):iq(n.getParentOrThrow(),t)}function ln(e,t="root"){let n=[e];for(let r=iB(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;
1r=r.getParentCaret(t))n.push(lt(r));return n}function lr(e){return!!e&&e.origin.isAttached()}function li(e){let t=function(e){let t=e;for(;iB(t);){let e=i$(t);if(!iB(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(tY(t.origin))return iR(t)?t:iW(t.origin,n,n);let r=t.getAdjacentCaret();return iJ(r)&&tY(r.origin)?iW(r.origin,n,iL[n]):t}function ll(e){return iR(e)&&e.offset!==iU(e.origin,e.direction)}function lo(e,t){return e.direction===t?e:e.getFlipped()}function ls(e,t){return e.direction===t?e:i1(lo(e.focus,t),lo(e.anchor,t))}function la(e){let{origin:t,offset:n,direction:i}=e;if(n===iU(t,i))return e.getSiblingCaret();if(n===iU(t,iL[i]))return lt(e.getSiblingCaret());let[l]=t.splitText(n);return tY(l)||r(281),lo(iZ(l,"next"),i)}function lu(e,t){return!0}function lc(e,{$copyElementNode:t=iu,$splitTextPointCaretNext:n=la,rootMode:r="shadowRoot",$shouldSplit:i=lu}={}){if(iR(e))return n(e);let l=e.getParentCaret(r);if(l){let{origin:n}=l;if(iB(e)&&(!n.canBeEmpty()||!i(n,"first")))return lt(l);let r=function(e){let t=[];for(let n=e.getAdjacentCaret();n;n=n.getAdjacentCaret())t.push(n.origin);return t}(e);(r.length>0||n.canBeEmpty()&&i(n,"last"))&&l.insert(t(n).splice(0,0,r))}return l}}}]);

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.