@tryghost/koenig-lexical 0.0.36 → 0.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- (function(j,te){typeof exports=="object"&&typeof module<"u"?te(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],te):(j=typeof globalThis<"u"?globalThis:j||self,te(j["@tryghost/koenig-lexical"]={},j.React,j.ReactDOM))})(this,function(j,te,rt){"use strict";var A1=Object.defineProperty;var M1=(j,te,rt)=>te in j?A1(j,te,{enumerable:!0,configurable:!0,writable:!0,value:rt}):j[te]=rt;var Se=(j,te,rt)=>(M1(j,typeof te!="symbol"?te+"":te,rt),rt);var __vite_style__=document.createElement("style");__vite_style__.innerHTML=`.koenig-lexical *,.koenig-lexical :before,.koenig-lexical :after{box-sizing:border-box;max-width:revert;max-height:revert;min-width:revert;min-height:revert;border-width:0;border-style:solid;border-color:currentColor}.koenig-lexical :before,.koenig-lexical :after{--tw-content: ""}.koenig-lexical html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif}.koenig-lexical body{margin:0;line-height:inherit}.koenig-lexical hr{height:0;color:inherit;border-top-width:1px}.koenig-lexical abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.koenig-lexical h1,.koenig-lexical h2,.koenig-lexical h3,.koenig-lexical h4,.koenig-lexical h5,.koenig-lexical h6{font-size:inherit;font-weight:inherit}.koenig-lexical a{color:inherit;text-decoration:inherit}.koenig-lexical b,.koenig-lexical strong{font-weight:bolder}.koenig-lexical code,.koenig-lexical kbd,.koenig-lexical samp,.koenig-lexical pre{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}.koenig-lexical small{font-size:80%}.koenig-lexical sub,.koenig-lexical sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.koenig-lexical sub{bottom:-.25em}.koenig-lexical sup{top:-.5em}.koenig-lexical table{text-indent:0;border-color:inherit;border-collapse:collapse}.koenig-lexical button,.koenig-lexical input,.koenig-lexical optgroup,.koenig-lexical select,.koenig-lexical textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.koenig-lexical button,.koenig-lexical select{text-transform:none}.koenig-lexical button,.koenig-lexical [type=button],.koenig-lexical [type=reset],.koenig-lexical [type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}.koenig-lexical :-moz-focusring{outline:none}.koenig-lexical :-moz-ui-invalid{box-shadow:none}.koenig-lexical progress{vertical-align:baseline}.koenig-lexical ::-webkit-inner-spin-button,.koenig-lexical ::-webkit-outer-spin-button{height:auto}.koenig-lexical [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.koenig-lexical ::-webkit-search-decoration{-webkit-appearance:none}.koenig-lexical ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.koenig-lexical summary{display:list-item}.koenig-lexical blockquote,.koenig-lexical dl,.koenig-lexical dd,.koenig-lexical h1,.koenig-lexical h2,.koenig-lexical h3,.koenig-lexical h4,.koenig-lexical h5,.koenig-lexical h6,.koenig-lexical hr,.koenig-lexical figure,.koenig-lexical p,.koenig-lexical pre{margin:0}.koenig-lexical fieldset{margin:0;padding:0}.koenig-lexical legend{padding:0}.koenig-lexical ol,.koenig-lexical ul,.koenig-lexical menu{list-style:none;margin:0;padding:0}.koenig-lexical textarea{resize:vertical}.koenig-lexical input::-moz-placeholder,.koenig-lexical textarea::-moz-placeholder{opacity:1;color:#aeb7c1}.koenig-lexical input::placeholder,.koenig-lexical textarea::placeholder{opacity:1;color:#aeb7c1}.koenig-lexical img,.koenig-lexical svg,.koenig-lexical video,.koenig-lexical canvas,.koenig-lexical audio,.koenig-lexical iframe,.koenig-lexical embed,.koenig-lexical object{display:block;vertical-align:middle}.koenig-lexical img,.koenig-lexical video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(20 184 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(20 184 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 480px){.container{max-width:480px}}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.koenig-lexical{position:relative}.koenig-lexical>*{font-size:1.7rem;font-weight:300;letter-spacing:.1px;color:var(--grey-900);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-moz-font-feature-settings:"liga" on}.koenig-lexical [contenteditable]{outline:none}.koenig-lexical ::-moz-selection{background:var(--grey-300)}.koenig-lexical ::selection{background:var(--grey-300)}.koenig-lexical .kg-prose :where(p,h1,h2,h3,h4,h5,h6,blockquote,aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0;min-width:100%;max-width:100%}.koenig-lexical .kg-prose :where(h1,h2,h3,h4,h5,h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-weight:700;color:var(--black)}.koenig-lexical .kg-prose :where(h1 strong,h2 strong,h3 strong,h4 strong,h5 strong,h6 strong):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-weight:800}.koenig-lexical .kg-prose :where(h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:4.4rem;line-height:1.15em;letter-spacing:-.015em}.koenig-lexical .kg-prose :where(h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:3.2rem;line-height:1.2em;letter-spacing:-.014em}.koenig-lexical .kg-prose :where(h3):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.5rem;line-height:1.3em;letter-spacing:-.013em}.koenig-lexical .kg-prose :where(h4):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.2rem;line-height:1.35em;letter-spacing:-.011em}.koenig-lexical .kg-prose :where(h5):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2rem;line-height:1.35em;font-weight:700;letter-spacing:-.011em}.koenig-lexical .kg-prose :where(h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:1.85rem;line-height:1.4em;font-weight:700;letter-spacing:-.008em}.koenig-lexical .kg-prose :where(p + h1,p + h2,p + h3,p + h4,p + h5,p + h6,blockquote + h1,blockquote + h2,blockquote + h3,blockquote + h4,blockquote + h5,blockquote + h6,aside + h1,aside + h2,aside + h3,aside + h4,aside + h5,aside + h6,ul + h1,ul + h2,ul + h3,ul + h4,ul + h5,ul + h6,ol + h1,ol + h2,ol + h3,ol + h4,ol + h5,ol + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.4rem 0 0}.koenig-lexical .kg-prose :where(h2 + h1,h3 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1rem 0 0}.koenig-lexical .kg-prose :where(h4 + h1,h5 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h6 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.6rem 0 0}.koenig-lexical .kg-prose :where(div + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1 + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0}.koenig-lexical .kg-prose :where(h2 + h2,h3 + h2,h4 + h2,.koenig-react__editor h5 + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h6 + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(div + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1 + h3,h2 + h3,h1 + h4,h2 + h4,h1 + h5,h2 + h5,h1 + h6,h2 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.2rem 0 0}.koenig-lexical .kg-prose :where(h3 + h4):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + h3,h4 + h3,h5 + h3,h4 + h4,h5 + h4,h3 + h5,h4 + h5,h5 + h5,h3 + h6,h4 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h5 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(h6 + h3,h6 + h4,h6 + h5,h6 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(div + h3,div + h4,div + h5,div + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1:first-child,h2:first-child,h3:first-child,h4:first-child,.koenig-react__editor h5:first-child,h6:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin-top:0rem}@media (max-width: 500px){.koenig-lexical .kg-prose :where(h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:3.2rem}.koenig-lexical .kg-prose :where(h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.8rem}.koenig-lexical .kg-prose :where(h3):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.4rem}.koenig-lexical .kg-prose :where(h4):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.3rem}.koenig-lexical .kg-prose :where(h5):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2rem}.koenig-lexical .kg-prose :where(h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:1.9rem}}.koenig-lexical .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-family:georgia,serif;font-weight:400;line-height:1.6em;font-size:2rem}.koenig-lexical .kg-prose :where(p strong,blockquote strong,aside strong,ul strong,ol strong):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-weight:700}.koenig-lexical .kg-prose :where(h1 + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1rem 0 0}.koenig-lexical .kg-prose :where(h2 + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + p,h4 + p,h5 + p,h6 + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(p + p,blockquote + p,aside + p,ul + p,ol + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(div + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(div + figure):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(p:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin-top:0rem}@media (max-width: 500px){.koenig-lexical .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:1.8rem}}.koenig-lexical .kg-prose :where(ul,ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0;padding:0;min-width:100%;max-width:100%}.koenig-lexical .kg-prose :where(ul li):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){display:list-item;list-style-type:disc;margin:1rem 0 0 2.4rem;padding:0 0 0 .6rem;line-height:3.2rem}.koenig-lexical .kg-prose :where(ul li:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0 0 0 2.4rem}.koenig-lexical .kg-prose :where(ol li):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){display:list-item;list-style-type:decimal;margin:1rem 0 0 2.2rem;padding:0 0 0 .8rem;line-height:3.2rem}.koenig-lexical .kg-prose :where(ol li:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0 0 0 2.2rem}.koenig-lexical .kg-prose :where(p + ul,p + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3rem 0 0}.koenig-lexical .kg-prose :where(ul + ul,ul + ol,ol + ul,ol + ol,blockquote + ul,blockquote + ol,aside + ul,aside + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3rem 0 0}.koenig-lexical .kg-prose :where(h1 + ul,h1 + ol,h2 + ul,h2 + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + ul,h3 + ol,h4 + ul,h4 + ol,h5 + ul,h5 + ol,h6 + ul,h6 + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.2rem 0 0}.koenig-lexical .kg-prose :where(div + ul,div + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(ul ul,ul ol,ol ul,ol ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1rem 0 2rem}.koenig-lexical .kg-prose :where(ul:first-child,ol:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin-top:0rem}.koenig-lexical .kg-prose :where(a):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){color:var(--kg-accent-color, #ff0095);text-decoration:underline}.koenig-lexical .kg-prose :where(blockquote p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0}.koenig-lexical .kg-prose :where(blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){border-left:.25rem solid var(--kg-accent-color, #ff0095);padding-left:2rem;font-style:italic}.koenig-lexical .kg-prose :where(h1 + blockquote,h2 + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + blockquote,h4 + blockquote,.koenig-react__editor h5 + blockquote,h6 + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(p + blockquote,blockquote + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(div + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(aside p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0}.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0;padding:1rem 6rem 1.25rem;font-style:italic;text-align:center;font-size:2.4rem;color:var(--midgrey-l1)}.koenig-lexical .kg-prose :where(h1 + aside,h2 + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + aside,h4 + aside,h5 + aside,h6 + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(p + aside,blockquote + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}@media (max-width: 800px){.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){padding-left:6rem;padding-right:6rem}}@media (max-width: 500px){.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.2rem}}.koenig-lexical .kg-prose :where(div + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){line-height:0;min-width:100%}.koenig-lexical .kg-prose :where(div + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(p + div,blockquote + div,aside + div,ul + div,ol + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(h1 + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(h2 + div,h3 + div,h4 + div,h5 + div,h6 + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0}.koenig-lexical .kg-prose :where(hr):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0}.koenig-lexical .pointer-events-none{pointer-events:none}.koenig-lexical .visible{visibility:visible}.koenig-lexical .static{position:static}.koenig-lexical .fixed{position:fixed}.koenig-lexical .absolute{position:absolute}.koenig-lexical .relative{position:relative}.koenig-lexical .inset-0{top:0px;right:0px;bottom:0px;left:0px}.koenig-lexical .inset-8{top:3.2rem;right:3.2rem;bottom:3.2rem;left:3.2rem}.koenig-lexical .bottom-0{bottom:0px}.koenig-lexical .right-0{right:0px}.koenig-lexical .top-\\[-44px\\]{top:-44px}.koenig-lexical .left-1\\/2{left:50%}.koenig-lexical .top-0{top:0px}.koenig-lexical .left-0{left:0px}.koenig-lexical .top-\\[-2px\\]{top:-2px}.koenig-lexical .left-\\[-66px\\]{left:-66px}.koenig-lexical .left-\\[-16px\\]{left:-16px}.koenig-lexical .top-\\[-6px\\]{top:-6px}.koenig-lexical .left-\\[55\\%\\]{left:55%}.koenig-lexical .top-6{top:2.4rem}.koenig-lexical .right-6{right:2.4rem}.koenig-lexical .top-1\\/2{top:50%}.koenig-lexical .left-4{left:1.6rem}.koenig-lexical .bottom-4{bottom:1.6rem}.koenig-lexical .right-\\[-100\\%\\]{right:-100%}.koenig-lexical .bottom-1{bottom:.4rem}.koenig-lexical .left-6{left:2.4rem}.koenig-lexical .z-\\[9999999\\]{z-index:9999999}.koenig-lexical .z-\\[1000\\]{z-index:1000}.koenig-lexical .z-40{z-index:40}.koenig-lexical .z-10{z-index:10}.koenig-lexical .m-0{margin:0}.koenig-lexical .m-3{margin:1.2rem}.koenig-lexical .m-2{margin:.8rem}.koenig-lexical .m-\\[1rem\\]{margin:1rem}.koenig-lexical .mx-1{margin-left:.4rem;margin-right:.4rem}.koenig-lexical .mx-\\[calc\\(50\\%-\\(50vw-var\\(--kg-breakout-adjustment\\)\\)-\\.8rem\\)\\]{margin-left:calc(50% - (50vw - var(--kg-breakout-adjustment)) - .8rem);margin-right:calc(50% - (50vw - var(--kg-breakout-adjustment)) - .8rem)}.koenig-lexical .mx-2{margin-left:.8rem;margin-right:.8rem}.koenig-lexical .mx-auto{margin-left:auto;margin-right:auto}.koenig-lexical .mb-4{margin-bottom:1.6rem}.koenig-lexical .mt-20{margin-top:8rem}.koenig-lexical .mb-3{margin-bottom:1.2rem}.koenig-lexical .mb-2{margin-bottom:.8rem}.koenig-lexical .ml-4{margin-left:1.6rem}.koenig-lexical .mt-4{margin-top:1.6rem}.koenig-lexical .mr-3{margin-right:1.2rem}.koenig-lexical .ml-\\[66px\\]{margin-left:66px}.koenig-lexical .mt-\\[2px\\]{margin-top:2px}.koenig-lexical .mt-auto{margin-top:auto}.koenig-lexical .mr-2{margin-right:.8rem}.koenig-lexical .mb-\\[1px\\]{margin-bottom:1px}.koenig-lexical .mr-4{margin-right:1.6rem}.koenig-lexical .ml-1{margin-left:.4rem}.koenig-lexical .mt-1{margin-top:.4rem}.koenig-lexical .mt-2{margin-top:.8rem}.koenig-lexical .mt-\\[1px\\]{margin-top:1px}.koenig-lexical .-mt-4{margin-top:-1.6rem}.koenig-lexical .mb-12{margin-bottom:4.8rem}.koenig-lexical .mt-6{margin-top:2.4rem}.koenig-lexical .mt-12{margin-top:4.8rem}.koenig-lexical .mt-3{margin-top:1.2rem}.koenig-lexical .mt-8{margin-top:3.2rem}.koenig-lexical .mt-10{margin-top:4rem}.koenig-lexical .ml-2{margin-left:.8rem}.koenig-lexical .mb-1{margin-bottom:.4rem}.koenig-lexical .mr-6{margin-right:2.4rem}.koenig-lexical .mb-6{margin-bottom:2.4rem}.koenig-lexical .block{display:block}.koenig-lexical .inline-block{display:inline-block}.koenig-lexical .flex{display:flex}.koenig-lexical .hidden{display:none}.koenig-lexical .h-9{height:3.6rem}.koenig-lexical .h-5{height:2rem}.koenig-lexical .h-7{height:2.8rem}.koenig-lexical .h-4{height:1.6rem}.koenig-lexical .h-\\[1px\\]{height:1px}.koenig-lexical .h-32{height:12.8rem}.koenig-lexical .h-20{height:8rem}.koenig-lexical .h-14{height:5.6rem}.koenig-lexical .h-6{height:2.4rem}.koenig-lexical .h-16{height:6.4rem}.koenig-lexical .h-\\[1\\.4rem\\]{height:1.4rem}.koenig-lexical .h-1{height:.4rem}.koenig-lexical .h-10{height:4rem}.koenig-lexical .h-11{height:4.4rem}.koenig-lexical .h-12{height:4.8rem}.koenig-lexical .h-8{height:3.2rem}.koenig-lexical .h-full{height:100%}.koenig-lexical .h-\\[96px\\]{height:96px}.koenig-lexical .h-\\[64px\\]{height:64px}.koenig-lexical .h-\\[40px\\]{height:40px}.koenig-lexical .h-3{height:1.2rem}.koenig-lexical .h-\\[324px\\]{height:324px}.koenig-lexical .h-\\[100vh\\]{height:100vh}.koenig-lexical .max-h-\\[376px\\]{max-height:376px}.koenig-lexical .min-h-\\[120px\\]{min-height:120px}.koenig-lexical .min-h-\\[40vh\\]{min-height:40vh}.koenig-lexical .min-h-\\[60vh\\]{min-height:60vh}.koenig-lexical .min-h-\\[80vh\\]{min-height:80vh}.koenig-lexical .w-9{width:3.6rem}.koenig-lexical .w-px{width:1px}.koenig-lexical .w-7{width:2.8rem}.koenig-lexical .w-4{width:1.6rem}.koenig-lexical .w-\\[312px\\]{width:312px}.koenig-lexical .w-full{width:100%}.koenig-lexical .w-32{width:12.8rem}.koenig-lexical .w-\\[calc\\(65vw\\+2px-var\\(--kg-breakout-adjustment\\)\\)\\]{width:calc(65vw + 2px - var(--kg-breakout-adjustment))}.koenig-lexical .w-20{width:8rem}.koenig-lexical .w-14{width:5.6rem}.koenig-lexical .w-6{width:2.4rem}.koenig-lexical .w-16{width:6.4rem}.koenig-lexical .w-\\[1\\.4rem\\]{width:1.4rem}.koenig-lexical .w-\\[80px\\]{width:80px}.koenig-lexical .w-\\[60\\%\\]{width:60%}.koenig-lexical .w-\\[740px\\]{width:740px}.koenig-lexical .w-5{width:2rem}.koenig-lexical .w-\\[764px\\]{width:764px}.koenig-lexical .w-\\[1170px\\]{width:1170px}.koenig-lexical .w-8{width:3.2rem}.koenig-lexical .w-\\[440px\\]{width:440px}.koenig-lexical .w-0{width:0px}.koenig-lexical .w-\\[400px\\]{width:400px}.koenig-lexical .min-w-\\[calc\\(100\\%\\+3\\.6rem\\)\\]{min-width:calc(100% + 3.6rem)}.koenig-lexical .min-w-full{min-width:100%}.koenig-lexical .min-w-\\[33\\%\\]{min-width:33%}.koenig-lexical .max-w-\\[740px\\]{max-width:740px}.koenig-lexical .max-w-\\[1172px\\]{max-width:1172px}.koenig-lexical .max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.koenig-lexical .max-w-\\[96px\\]{max-width:96px}.koenig-lexical .max-w-\\[550px\\]{max-width:550px}.koenig-lexical .max-w-sm{max-width:38.4rem}.koenig-lexical .shrink-0{flex-shrink:0}.koenig-lexical .flex-grow,.koenig-lexical .grow{flex-grow:1}.koenig-lexical .basis-0{flex-basis:0px}.koenig-lexical .-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .translate-x-\\[calc\\(50vw-50\\%\\+\\.8rem-var\\(--kg-breakout-adjustment\\)\\)\\]{--tw-translate-x: calc(50vw - 50% + .8rem - var(--kg-breakout-adjustment));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .-translate-y-2{--tw-translate-y: -.8rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .cursor-pointer{cursor:pointer}.koenig-lexical .cursor-text{cursor:text}.koenig-lexical .cursor-zoom-in{cursor:zoom-in}.koenig-lexical .resize-none{resize:none}.koenig-lexical .resize{resize:both}.koenig-lexical .\\!list-none{list-style-type:none!important}.koenig-lexical .flex-row{flex-direction:row}.koenig-lexical .flex-col{flex-direction:column}.koenig-lexical .items-start{align-items:flex-start}.koenig-lexical .items-end{align-items:flex-end}.koenig-lexical .items-center{align-items:center}.koenig-lexical .justify-start{justify-content:flex-start}.koenig-lexical .justify-center{justify-content:center}.koenig-lexical .justify-between{justify-content:space-between}.koenig-lexical .justify-evenly{justify-content:space-evenly}.koenig-lexical .gap-2{gap:.8rem}.koenig-lexical .overflow-auto{overflow:auto}.koenig-lexical .\\!overflow-auto{overflow:auto!important}.koenig-lexical .overflow-hidden{overflow:hidden}.koenig-lexical .overflow-y-auto{overflow-y:auto}.koenig-lexical .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.koenig-lexical .whitespace-pre{white-space:pre}.koenig-lexical .rounded{border-radius:.4rem}.koenig-lexical .rounded-full{border-radius:9999px}.koenig-lexical .rounded-lg{border-radius:.8rem}.koenig-lexical .rounded-sm{border-radius:.2rem}.koenig-lexical .rounded-r-\\[\\.3rem\\]{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.koenig-lexical .border{border-width:1px}.koenig-lexical .border-0{border-width:0px}.koenig-lexical .border-2{border-width:2px}.koenig-lexical .border-t{border-top-width:1px}.koenig-lexical .border-grey{--tw-border-opacity: 1;border-color:rgb(171 180 190 / var(--tw-border-opacity))}.koenig-lexical .border-transparent{border-color:transparent}.koenig-lexical .border-grey-300{--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .border-green{--tw-border-opacity: 1;border-color:rgb(48 207 67 / var(--tw-border-opacity))}.koenig-lexical .border-grey-100{--tw-border-opacity: 1;border-color:rgb(244 245 246 / var(--tw-border-opacity))}.koenig-lexical .border-grey\\/20{border-color:#abb4be33}.koenig-lexical .border-grey\\/30{border-color:#abb4be4d}.koenig-lexical .border-grey\\/50{border-color:#abb4be80}.koenig-lexical .border-grey\\/40{border-color:#abb4be66}.koenig-lexical .border-grey\\/60{border-color:#abb4be99}.koenig-lexical .border-grey-200{--tw-border-opacity: 1;border-color:rgb(235 238 240 / var(--tw-border-opacity))}.koenig-lexical .border-t-grey-300{--tw-border-opacity: 1;border-top-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .bg-black{--tw-bg-opacity: 1;background-color:rgb(21 23 26 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey-900{--tw-bg-opacity: 1;background-color:rgb(57 64 71 / var(--tw-bg-opacity))}.koenig-lexical .bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey-50{--tw-bg-opacity: 1;background-color:rgb(250 250 251 / var(--tw-bg-opacity))}.koenig-lexical .bg-green{--tw-bg-opacity: 1;background-color:rgb(48 207 67 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey-100{--tw-bg-opacity: 1;background-color:rgb(244 245 246 / var(--tw-bg-opacity))}.koenig-lexical .bg-purple{--tw-bg-opacity: 1;background-color:rgb(142 66 255 / var(--tw-bg-opacity))}.koenig-lexical .bg-transparent{background-color:transparent}.koenig-lexical .bg-grey\\/30{background-color:#abb4be4d}.koenig-lexical .bg-grey-300{--tw-bg-opacity: 1;background-color:rgb(221 225 229 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey\\/10{background-color:#abb4be1a}.koenig-lexical .bg-blue\\/10{background-color:#14b8ff1a}.koenig-lexical .bg-green\\/10{background-color:#30cf431a}.koenig-lexical .bg-yellow\\/10{background-color:#ffb41f1a}.koenig-lexical .bg-red\\/10{background-color:#f50b231a}.koenig-lexical .bg-pink\\/10{background-color:#fb2d8d1a}.koenig-lexical .bg-purple\\/10{background-color:#8e42ff1a}.koenig-lexical .bg-grey-200{--tw-bg-opacity: 1;background-color:rgb(235 238 240 / var(--tw-bg-opacity))}.koenig-lexical .bg-pink{--tw-bg-opacity: 1;background-color:rgb(251 45 141 / var(--tw-bg-opacity))}.koenig-lexical .bg-white\\/50{background-color:#ffffff80}.koenig-lexical .bg-clip-padding{background-clip:padding-box}.koenig-lexical .fill-white{fill:#fff}.koenig-lexical .fill-green{fill:#30cf43}.koenig-lexical .fill-black{fill:#15171a}.koenig-lexical .fill-grey-900{fill:#394047}.koenig-lexical .stroke-grey-800{stroke:#626d79}.koenig-lexical .stroke-2{stroke-width:2}.koenig-lexical .stroke-\\[1\\.2px\\]{stroke-width:1.2px}.koenig-lexical .p-0{padding:0}.koenig-lexical .p-20{padding:8rem}.koenig-lexical .p-2{padding:.8rem}.koenig-lexical .p-4{padding:1.6rem}.koenig-lexical .p-5{padding:2rem}.koenig-lexical .p-3{padding:1.2rem}.koenig-lexical .\\!p-4{padding:1.6rem!important}.koenig-lexical .p-\\[1rem\\]{padding:1rem}.koenig-lexical .px-1{padding-left:.4rem;padding-right:.4rem}.koenig-lexical .py-0{padding-top:0;padding-bottom:0}.koenig-lexical .px-4{padding-left:1.6rem;padding-right:1.6rem}.koenig-lexical .py-2{padding-top:.8rem;padding-bottom:.8rem}.koenig-lexical .px-3{padding-left:1.2rem;padding-right:1.2rem}.koenig-lexical .px-9{padding-left:3.6rem;padding-right:3.6rem}.koenig-lexical .py-\\[1rem\\]{padding-top:1rem;padding-bottom:1rem}.koenig-lexical .px-5{padding-left:2rem;padding-right:2rem}.koenig-lexical .py-5{padding-top:2rem;padding-bottom:2rem}.koenig-lexical .px-7{padding-left:2.8rem;padding-right:2.8rem}.koenig-lexical .px-2{padding-left:.8rem;padding-right:.8rem}.koenig-lexical .py-1{padding-top:.4rem;padding-bottom:.4rem}.koenig-lexical .py-\\[14vmin\\]{padding-top:14vmin;padding-bottom:14vmin}.koenig-lexical .py-\\[12vmin\\]{padding-top:12vmin;padding-bottom:12vmin}.koenig-lexical .py-\\[18vmin\\]{padding-top:18vmin;padding-bottom:18vmin}.koenig-lexical .py-4{padding-top:1.6rem;padding-bottom:1.6rem}.koenig-lexical .px-6{padding-left:2.4rem;padding-right:2.4rem}.koenig-lexical .py-10{padding-top:4rem;padding-bottom:4rem}.koenig-lexical .px-20{padding-left:8rem;padding-right:8rem}.koenig-lexical .py-\\[15vmin\\]{padding-top:15vmin;padding-bottom:15vmin}.koenig-lexical .pt-0{padding-top:0}.koenig-lexical .pt-3{padding-top:1.2rem}.koenig-lexical .pb-6{padding-bottom:2.4rem}.koenig-lexical .pt-1{padding-top:.4rem}.koenig-lexical .pb-7{padding-bottom:2.8rem}.koenig-lexical .pb-1{padding-bottom:.4rem}.koenig-lexical .pr-8{padding-right:3.2rem}.koenig-lexical .pl-10{padding-left:4rem}.koenig-lexical .pb-16{padding-bottom:6.4rem}.koenig-lexical .pb-4{padding-bottom:1.6rem}.koenig-lexical .pr-1{padding-right:.4rem}.koenig-lexical .text-left{text-align:left}.koenig-lexical .text-center{text-align:center}.koenig-lexical .font-sans{font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif}.koenig-lexical .font-mono{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace}.koenig-lexical .font-serif{font-family:Georgia,serif}.koenig-lexical .text-xl{font-size:2rem}.koenig-lexical .text-md{font-size:1.5rem}.koenig-lexical .text-sm{font-size:1.4rem}.koenig-lexical .text-xs{font-size:1.2rem}.koenig-lexical .text-\\[1\\.3rem\\]{font-size:1.3rem}.koenig-lexical .text-\\[1\\.7rem\\]{font-size:1.7rem}.koenig-lexical .text-\\[1\\.1rem\\]{font-size:1.1rem}.koenig-lexical .text-lg{font-size:1.8rem}.koenig-lexical .text-\\[1\\.5rem\\]{font-size:1.5rem}.koenig-lexical .text-\\[1\\.6rem\\]{font-size:1.6rem}.koenig-lexical .text-6xl{font-size:6rem;line-height:1}.koenig-lexical .text-7xl{font-size:7.2rem;line-height:1}.koenig-lexical .text-8xl{font-size:9.6rem;line-height:1}.koenig-lexical .text-2xl{font-size:2.4rem}.koenig-lexical .text-\\[2\\.7rem\\]{font-size:2.7rem}.koenig-lexical .text-3xl{font-size:3rem}.koenig-lexical .font-bold{font-weight:700}.koenig-lexical .font-normal{font-weight:400}.koenig-lexical .font-medium{font-weight:500}.koenig-lexical .font-semibold{font-weight:600}.koenig-lexical .font-extrabold{font-weight:800}.koenig-lexical .uppercase{text-transform:uppercase}.koenig-lexical .italic{font-style:italic}.koenig-lexical .leading-\\[1\\.333em\\]{line-height:1.333em}.koenig-lexical .leading-7{line-height:1.75rem}.koenig-lexical .leading-8{line-height:2rem}.koenig-lexical .leading-\\[1\\.6rem\\]{line-height:1.6rem}.koenig-lexical .leading-9{line-height:2.25rem}.koenig-lexical .leading-\\[4rem\\]{line-height:4rem}.koenig-lexical .leading-\\[4\\.4rem\\]{line-height:4.4rem}.koenig-lexical .leading-\\[4\\.8rem\\]{line-height:4.8rem}.koenig-lexical .leading-tight{line-height:1.25}.koenig-lexical .leading-none{line-height:1}.koenig-lexical .leading-snug{line-height:1.375}.koenig-lexical .leading-relaxed{line-height:1.625}.koenig-lexical .tracking-\\[\\.06rem\\]{letter-spacing:.06rem}.koenig-lexical .tracking-\\[\\.02rem\\]{letter-spacing:.02rem}.koenig-lexical .tracking-wide{letter-spacing:.025em}.koenig-lexical .tracking-normal{letter-spacing:0em}.koenig-lexical .tracking-tight{letter-spacing:-.025em}.koenig-lexical .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.koenig-lexical .text-grey{--tw-text-opacity: 1;color:rgb(171 180 190 / var(--tw-text-opacity))}.koenig-lexical .text-grey-800{--tw-text-opacity: 1;color:rgb(98 109 121 / var(--tw-text-opacity))}.koenig-lexical .text-grey-900{--tw-text-opacity: 1;color:rgb(57 64 71 / var(--tw-text-opacity))}.koenig-lexical .text-grey-700{--tw-text-opacity: 1;color:rgb(124 139 154 / var(--tw-text-opacity))}.koenig-lexical .text-grey-500{--tw-text-opacity: 1;color:rgb(174 183 193 / var(--tw-text-opacity))}.koenig-lexical .text-black{--tw-text-opacity: 1;color:rgb(21 23 26 / var(--tw-text-opacity))}.koenig-lexical .text-grey-600{--tw-text-opacity: 1;color:rgb(149 161 173 / var(--tw-text-opacity))}.koenig-lexical .text-green{--tw-text-opacity: 1;color:rgb(48 207 67 / var(--tw-text-opacity))}.koenig-lexical .text-grey-400{--tw-text-opacity: 1;color:rgb(206 212 217 / var(--tw-text-opacity))}.koenig-lexical .text-grey-300{--tw-text-opacity: 1;color:rgb(221 225 229 / var(--tw-text-opacity))}.koenig-lexical .underline{text-decoration-line:underline}.koenig-lexical .caret-grey-800{caret-color:#626d79}.koenig-lexical .opacity-80{opacity:.8}.koenig-lexical .opacity-100{opacity:1}.koenig-lexical .opacity-50{opacity:.5}.koenig-lexical .opacity-40{opacity:.4}.koenig-lexical .opacity-60{opacity:.6}.koenig-lexical .opacity-0{opacity:0}.koenig-lexical .shadow{--tw-shadow: 0 0 1px rgba(0,0,0,.05), 0 5px 18px rgba(0,0,0,.08);--tw-shadow-colored: 0 0 1px var(--tw-shadow-color), 0 5px 18px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-\\[0_0_0_2px_\\#30cf43\\]{--tw-shadow: 0 0 0 2px #30cf43;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-\\[0_0_0_2px\\]{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-xl{--tw-shadow: 0 2.8px 2.2px rgba(0, 0, 0, .02), 0 6.7px 5.3px rgba(0, 0, 0, .028), 0 12.5px 10px rgba(0, 0, 0, .035), 0 22.3px 17.9px rgba(0, 0, 0, .042), 0 41.8px 33.4px rgba(0, 0, 0, .05), 0 100px 80px rgba(0, 0, 0, .07);--tw-shadow-colored: 0 2.8px 2.2px var(--tw-shadow-color), 0 6.7px 5.3px var(--tw-shadow-color), 0 12.5px 10px var(--tw-shadow-color), 0 22.3px 17.9px var(--tw-shadow-color), 0 41.8px 33.4px var(--tw-shadow-color), 0 100px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-green{--tw-shadow-color: #30CF43;--tw-shadow: var(--tw-shadow-colored)}.koenig-lexical .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.koenig-lexical .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.koenig-lexical .duration-100{transition-duration:.1s}.koenig-lexical .duration-75{transition-duration:75ms}.koenig-lexical .ease-linear{transition-timing-function:linear}.koenig-lexical .ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.koenig-lexical .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.koenig-lexical .line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.koenig-lexical .line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}:root{--grey-200: #EBEEF0;--grey-300: #DDE1E5;--grey-500: #AEB7C1;--grey-900: #394047;--black: #15171A;--kg-breakout-adjustment: 0px}@font-face{font-family:Inter,sans-serif;src:url(./assets/fonts/Inter.ttf) format("truetype-variations");font-weight:100 900}.koenig-lexical .selection\\:bg-grey-800 *::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .selection\\:bg-grey-800 *::selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .selection\\:bg-grey-800::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .selection\\:bg-grey-800::selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .before\\:mr-2:before{content:var(--tw-content);margin-right:.8rem}.koenig-lexical .before\\:flex-1:before{content:var(--tw-content);flex:1 1 0%}.koenig-lexical .before\\:border-t:before{content:var(--tw-content);border-top-width:1px}.koenig-lexical .before\\:border-grey-300:before{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .before\\:pb-\\[62\\.5\\%\\]:before{content:var(--tw-content);padding-bottom:62.5%}.koenig-lexical .before\\:pb-\\[12\\.5\\%\\]:before{content:var(--tw-content);padding-bottom:12.5%}.koenig-lexical .before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.koenig-lexical .after\\:absolute:after{content:var(--tw-content);position:absolute}.koenig-lexical .after\\:top-\\[36px\\]:after{content:var(--tw-content);top:36px}.koenig-lexical .after\\:left-\\[calc\\(50\\%-8px\\)\\]:after{content:var(--tw-content);left:calc(50% - 8px)}.koenig-lexical .after\\:ml-2:after{content:var(--tw-content);margin-left:.8rem}.koenig-lexical .after\\:block:after{content:var(--tw-content);display:block}.koenig-lexical .after\\:w-0:after{content:var(--tw-content);width:0px}.koenig-lexical .after\\:flex-1:after{content:var(--tw-content);flex:1 1 0%}.koenig-lexical .after\\:border-x-8:after{content:var(--tw-content);border-left-width:8px;border-right-width:8px}.koenig-lexical .after\\:border-t-8:after{content:var(--tw-content);border-top-width:8px}.koenig-lexical .after\\:border-t:after{content:var(--tw-content);border-top-width:1px}.koenig-lexical .after\\:border-grey-300:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .after\\:border-x-transparent:after{content:var(--tw-content);border-left-color:transparent;border-right-color:transparent}.koenig-lexical .after\\:border-t-black:after{content:var(--tw-content);--tw-border-opacity: 1;border-top-color:rgb(21 23 26 / var(--tw-border-opacity))}.koenig-lexical .after\\:pb-4:after{content:var(--tw-content);padding-bottom:1.6rem}.koenig-lexical .first\\:m-0:first-child{margin:0}.koenig-lexical .first-of-type\\:mt-8:first-of-type{margin-top:3.2rem}.koenig-lexical .last-of-type\\:mr-0:last-of-type{margin-right:0}.koenig-lexical .hover\\:border-grey-900:hover{--tw-border-opacity: 1;border-color:rgb(57 64 71 / var(--tw-border-opacity))}.koenig-lexical .hover\\:bg-grey-100:hover{--tw-bg-opacity: 1;background-color:rgb(244 245 246 / var(--tw-bg-opacity))}.koenig-lexical .hover\\:bg-grey-500\\/20:hover{background-color:#aeb7c133}.koenig-lexical .hover\\:fill-grey-800:hover{fill:#626d79}.koenig-lexical .hover\\:shadow-\\[0_0_0_1px_\\#30cf43\\]:hover{--tw-shadow: 0 0 0 1px #30cf43;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .hover\\:shadow-\\[0_0_0_1px\\]:hover{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .hover\\:shadow-green:hover{--tw-shadow-color: #30CF43;--tw-shadow: var(--tw-shadow-colored)}.koenig-lexical .focus\\:border-grey-400:focus{--tw-border-opacity: 1;border-color:rgb(206 212 217 / var(--tw-border-opacity))}.koenig-lexical .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.koenig-lexical .group:hover .group-hover\\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .group:hover .group-hover\\:stroke-grey-900{stroke:#394047}.koenig-lexical .group:hover .group-hover\\:text-grey-800{--tw-text-opacity: 1;color:rgb(98 109 121 / var(--tw-text-opacity))}.koenig-lexical .group:hover .group-hover\\:opacity-100{opacity:1}@media (min-width: 640px){.koenig-lexical .sm\\:min-w-\\[calc\\(100\\%\\+10rem\\)\\]{min-width:calc(100% + 10rem)}}@media (min-width: 768px){.koenig-lexical .md\\:h-9{height:3.6rem}.koenig-lexical .md\\:w-9{width:3.6rem}}@media (min-width: 1024px){.koenig-lexical .lg\\:mx-\\[calc\\(50\\%-50vw\\+\\(var\\(--kg-breakout-adjustment\\)\\/2\\)\\)\\]{margin-left:calc(50% - 50vw + (var(--kg-breakout-adjustment) / 2));margin-right:calc(50% - 50vw + (var(--kg-breakout-adjustment) / 2))}.koenig-lexical .lg\\:w-\\[calc\\(100vw-var\\(--kg-breakout-adjustment\\)\\)\\]{width:calc(100vw - var(--kg-breakout-adjustment))}.koenig-lexical .lg\\:min-w-\\[calc\\(100\\%\\+18rem\\)\\]{min-width:calc(100% + 18rem)}}
2
- `;document.head.appendChild(__vite_style__);const uo=t=>t&&typeof t=="object"&&"default"in t?t:{default:t};function Tc(t){if(t&&t.__esModule)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const _=Tc(te),S=uo(te),Sc=uo(rt),L1="",go=t=>_.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{d:"M7.412 6.217h1.176c1.276 0 2.236-.773 2.236-1.608 0-.835-.96-1.609-2.236-1.609H5.765v3.217h1.647zM5.765 13H9.47C10.875 13 12 11.92 12 10.609s-1.124-2.392-2.53-2.392H5.766V13zm-2 0V3H3c-.552 0-1-.448-1-1s.448-1 1-1h5.588c2.297 0 4.236 1.563 4.236 3.609 0 .877-.357 1.666-.945 2.28C13.15 7.665 14 9.037 14 10.61 14 13.043 11.963 15 9.47 15H3c-.552 0-1-.448-1-1s.448-1 1-1h.765z",fillRule:"nonzero"})),fo=t=>_.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{d:"M12.15 3L6.104 13h.811c.552 0 1 .448 1 1s-.448 1-1 1H2c-.552 0-1-.448-1-1s.448-1 1-1h1.767L9.813 3H9c-.552 0-1-.448-1-1s.448-1 1-1h4.915c.552 0 1 .448 1 1s-.448 1-1 1H12.15z",fillRule:"nonzero"})),ho=t=>_.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{d:"M4 7h8V2c0-.552.448-1 1-1s1 .448 1 1v5.897c.003.034.005.068.005.103 0 .035-.002.07-.005.103V14c0 .552-.448 1-1 1s-1-.448-1-1V9H4v5c0 .552-.448 1-1 1s-1-.448-1-1V2c0-.552.448-1 1-1s1 .448 1 1v5z",fillRule:"nonzero"})),po=t=>_.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{d:"M6 8h4V5.483c0-.552.448-1 1-1s1 .448 1 1V13c0 .552-.448 1-1 1s-1-.448-1-1v-3H6v3c0 .552-.448 1-1 1s-1-.448-1-1V5.483c0-.552.448-1 1-1s1 .448 1 1V8z",fillRule:"nonzero"})),Br=t=>_.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{d:"M6.4 11.688c.4-.382 1.032-.369 1.415.03.382.399.368 1.032-.03 1.414l-1.055 1.01c-1.209 1.21-3.17 1.21-4.38 0l-.494-.494c-1.208-1.209-1.208-3.17.001-4.377L5.07 6.058c1.21-1.21 3.17-1.21 4.38 0 .39.39.39 1.024 0 1.414-.391.39-1.024.39-1.415 0-.428-.428-1.122-.428-1.551 0l-3.213 3.213c-.427.427-.427 1.122 0 1.55l.494.494c.428.428 1.123.428 1.566-.015l1.07-1.026zm3.037-7.212c-.398.383-1.03.372-1.414-.025-.384-.398-.373-1.03.025-1.414l1.222-1.18c1.21-1.209 3.169-1.209 4.379 0l.493.494c1.21 1.209 1.21 3.17.013 4.366l-3.237 3.357c-1.21 1.21-3.17 1.21-4.38 0-.39-.391-.389-1.025.002-1.415.39-.39 1.024-.39 1.414.001.428.429 1.121.429 1.537.013l3.238-3.358c.428-.427.428-1.121 0-1.55l-.494-.493c-.429-.429-1.123-.429-1.563.012L9.437 4.476z",fillRule:"nonzero"})),mo=t=>_.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{d:"M4 8h2c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H3c-.552 0-1-.448-1-1V5.082c0-1.176.906-2.12 2.538-2.969.49-.255 1.094-.065 1.349.425.255.49.065 1.094-.425 1.349-.578.3-.993.589-1.24.847-.168.174-.222.286-.222.348V8zm9 0c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-3c-.552 0-1-.448-1-1V5.082c0-1.176.906-2.12 2.538-2.969.49-.255 1.094-.065 1.349.425.255.49.065 1.094-.425 1.349-.578.3-.993.589-1.24.847-.168.174-.222.286-.222.348V8h2z",fillRule:"nonzero"})),xo=t=>_.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("g",{fillRule:"evenodd"},_.createElement("path",{d:"M2 3c-.552 0-1-.448-1-1s.448-1 1-1h12c.552 0 1 .448 1 1s-.448 1-1 1H2zM2 15c-.552 0-1-.448-1-1s.448-1 1-1h12c.552 0 1 .448 1 1s-.448 1-1 1H2z",fillRule:"nonzero",opacity:.6}),_.createElement("path",{d:"M2 5h12c.552 0 1 .448 1 1v4.001c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1z",fillRule:"nonzero"}))),_o=t=>_.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("g",{fillRule:"evenodd"},_.createElement("path",{d:"M6 3c-.552 0-1-.448-1-1s.448-1 1-1h4c.552 0 1 .448 1 1s-.448 1-1 1H6zM6 15c-.552 0-1-.448-1-1s.448-1 1-1h4c.552 0 1 .448 1 1s-.448 1-1 1H6z",fillRule:"nonzero",opacity:.6}),_.createElement("path",{d:"M2 5h12c.552 0 1 .448 1 1v4.001c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1z",fillRule:"nonzero"}))),vo=t=>_.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("g",{fillRule:"evenodd"},_.createElement("path",{d:"M0 2c0-.552.448-1 1-1s1 .448 1 1v12c0 .552-.448 1-1 1s-1-.448-1-1V2zM14 2c0-.552.448-1 1-1s1 .448 1 1v12c0 .552-.448 1-1 1s-1-.448-1-1V2z",fillRule:"nonzero",opacity:.6}),_.createElement("path",{d:"M10.626 7L9.312 5.691c-.391-.39-.393-1.023-.003-1.414s1.023-.392 1.414-.003l3.029 3.017c.39.389.392 1.02.005 1.412l-3.029 3.059c-.388.392-1.022.395-1.414.007-.392-.389-.396-1.022-.007-1.414L10.648 9H5.415l1.342 1.355c.388.392.385 1.025-.007 1.414-.393.388-1.026.385-1.415-.007L2.307 8.703c-.388-.392-.386-1.023.005-1.412L5.34 4.274c.391-.39 1.025-.388 1.414.003.39.391.389 1.025-.002 1.414L5.438 7h5.188z",fillRule:"nonzero"}))),wo=t=>_.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("g",{fillRule:"evenodd"},_.createElement("path",{d:"M2 9h5c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1v-4c0-.552.448-1 1-1zM9 1h5c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H9c-.552 0-1-.448-1-1V2c0-.552.448-1 1-1zM4.5 5.772l1.15-1.175c.192-.198.509-.201.706-.008.198.193.201.51.008.707L4.382 7.322c-.091.109-.229.178-.382.178-.13 0-.26-.05-.357-.148L1.61 5.298c-.194-.196-.193-.513.004-.707.196-.194.512-.193.707.004L3.5 5.785V3c0-.828.672-1.5 1.5-1.5h1c.276 0 .5.224.5.5s-.224.5-.5.5H5c-.276 0-.5.224-.5.5v2.772zm7 4.456l-1.15 1.175c-.192.198-.509.201-.706.008-.198-.193-.201-.51-.008-.707l1.982-2.026c.091-.109.229-.178.382-.178.13 0 .26.05.357.148l2.032 2.054c.194.196.193.513-.004.707-.196.194-.512.193-.707-.004l-1.178-1.19V13c0 .828-.672 1.5-1.5 1.5h-1c-.276 0-.5-.224-.5-.5s.224-.5.5-.5h1c.276 0 .5-.224.5-.5v-2.772z",fillRule:"nonzero"}))),yo=t=>_.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{d:"M9 7h5c.552 0 1 .448 1 1s-.448 1-1 1H9v5c0 .552-.448 1-1 1s-1-.448-1-1V9H2c-.552 0-1-.448-1-1s.448-1 1-1h5V2c0-.552.448-1 1-1s1 .448 1 1v5z",fillRule:"nonzero"})),Hn=t=>_.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3V13H8.78579L13 8.78579V3H3ZM1.52721 1.52721C1.86477 1.18964 2.32261 1 2.8 1H13.2C13.6774 1 14.1352 1.18964 14.4728 1.52721C14.8104 1.86477 15 2.32261 15 2.8V8.8688C14.9999 9.34585 14.8104 9.80357 14.4732 10.141L10.1412 14.473C9.8038 14.8102 9.34607 14.9999 8.86901 15H2.8C2.32261 15 1.86477 14.8104 1.52721 14.4728C1.18964 14.1352 1 13.6774 1 13.2V2.8C1 2.32261 1.18964 1.86477 1.52721 1.52721Z"}),_.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 10H14C14.5523 10 15 9.55228 15 9C15 8.44772 14.5523 8 14 8H9.84602C9.35643 8 8.88688 8.19449 8.54069 8.54069C8.19449 8.88688 8 9.35643 8 9.84602V14C8 14.5523 8.44772 15 9 15C9.55228 15 10 14.5523 10 14V10Z"})),ko=t=>_.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("g",{fill:"none",fillRule:"evenodd"},_.createElement("path",{d:"M12 1.5v21M1.5 12h21",strokeLinecap:"round",strokeLinejoin:"round"}))),Co=t=>_.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("g",{fill:"none",fillRule:"evenodd"},_.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#30cf43"}),_.createElement("path",{d:"M23.778 12.111c0 3.111-1.556 4.667-4.667 4.667-3.111 0-4.667-1.556-4.667-4.667C14.444 9 16 7.444 19.111 7.444c3.111 0 4.667 1.556 4.667 4.667zM19.111 5.5c.778 0 1.167-.389 1.167-1.167v-.777c0-.45-.195-.786-.584-1.01-.388-.225-.777-.225-1.166 0-.39.224-.584.56-.584 1.01v.777c0 .778.39 1.167 1.167 1.167zM12.788 7.435c.55.552 1.1.554 1.653.004.552-.55.553-1.1.003-1.653l-.549-.55c-.55-.552-1.101-.554-1.653-.004-.553.55-.554 1.101-.005 1.654l.55.55zM10.556 13.278h.777c.778 0 1.167-.39 1.167-1.167 0-.778-.389-1.167-1.167-1.167h-.777c-.778 0-1.167.39-1.167 1.167 0 .778.389 1.167 1.167 1.167zM25.434 16.787c-.549-.512-1.089-.502-1.62.029-.53.53-.54 1.07-.028 1.62l.549.55c.55.55 1.1.55 1.65 0 .55-.55.55-1.1 0-1.65l-.55-.549zM25.722 12.111c0 .778.39 1.167 1.167 1.167h.778c.777 0 1.166-.39 1.166-1.167 0-.778-.389-1.167-1.166-1.167h-.778c-.322 0-.597.114-.825.342-.228.228-.342.503-.342.825zM24.61 7.779c.323 0 .598-.114.824-.344l.551-.549c.55-.55.55-1.1 0-1.65-.55-.55-1.1-.55-1.65 0l-.55.55c-.366.368-.45.792-.251 1.271.198.48.557.72 1.076.722zM21.911 22.356c-.771 0-1.522.12-2.254.364-.127.042-.21.126-.25.254-.039.127-.018.244.063.35 1.283 1.689 2.07 3.583 2.362 5.684.02.142.103.214.247.214h4.906c.836 0 1.492-.343 1.967-1.031-.737-3.89-3.084-5.835-7.042-5.835h.001zM9.644 19.968c-2.518-.004-4.758.783-6.72 2.362-.1.08-.149.183-.146.31v4.2c.004 1.588.8 2.382 2.388 2.382H19.83c.122 0 .222-.046.3-.14.077-.093.105-.2.082-.319-1.083-5.863-4.606-8.795-10.568-8.795z",fill:"#FFF"}))),bc=t=>_.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("g",{fill:"none",fillRule:"evenodd"},_.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#fb2d8d",fillRule:"nonzero"}),_.createElement("path",{stroke:"#FFF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",d:"M8 20v-8l4 4 4-4v8M22 12.07v7.916M19.5 17.5l2.48 2.525L24.5 17.5"}))),Oc=t=>_.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("g",{fill:"none",fillRule:"evenodd"},_.createElement("path",{fill:"#FFF",d:"M2 4h28v24H2z"}),_.createElement("path",{d:"M32 6c0-2.667-1.333-4-4-4H4c-1.105 0-2.047.39-2.828 1.172C.39 3.952 0 4.895 0 6v20c0 2.667 1.333 4 4 4h24c2.667 0 4-1.333 4-4V6zM4 6.667c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C4.444 8 4 7.556 4 6.667zm4 0c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C8.444 8 8 7.556 8 6.667zm4 0c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C12.444 8 12 7.556 12 6.667zM29.333 26c0 .889-.444 1.333-1.333 1.333H4c-.889 0-1.333-.444-1.333-1.333V12c0-.184.065-.341.195-.471.13-.13.287-.196.471-.196h25.334c.444 0 .666.223.666.667v14z",fill:"#14b8ff"}),_.createElement("path",{d:"M10.333 16c0 .667.334 1 1 1 .223 0 .334.111.334.333v5.334c0 .666.333 1 1 1 .666 0 1-.334 1-1v-5.334c0-.092.032-.17.097-.235.065-.065.144-.098.236-.098.667 0 1-.333 1-1s-.333-1-1-1h-2.667c-.276 0-.512.098-.707.293-.195.195-.293.43-.293.707zM5.333 23.667c.667 0 1-.334 1-1v-1.334c0-.128.056-.224.167-.288.111-.064.222-.064.333 0 .111.064.167.16.167.288v1.334c0 .666.333 1 1 1s1-.334 1-1V16c0-.385-.167-.674-.5-.866-.333-.192-.667-.192-1 0-.333.192-.5.481-.5.866v2.667c0 .222-.111.333-.333.333-.223 0-.334-.111-.334-.333V16c0-.385-.166-.674-.5-.866-.333-.192-.666-.192-1 0-.333.192-.5.481-.5.866v6.667c0 .666.334 1 1 1zM23.667 21.333c.001 1.554.78 2.332 2.333 2.334h1.333c.667 0 1-.334 1-1 0-.667-.333-1-1-1H26c-.222 0-.333-.111-.333-.334V16c0-.385-.167-.674-.5-.866-.334-.192-.667-.192-1 0-.334.192-.5.481-.5.866v5.333zM17.333 23.667c.667 0 1-.334 1-1v-2.78c0-.039.02-.063.056-.073.037-.01.066 0 .086.034.207.301.493.452.858.452.366 0 .652-.15.859-.452.02-.033.048-.045.085-.034.038.01.056.034.056.073v2.78c0 .666.334 1 1 1 .667 0 1-.334 1-1V16c-.001-.506-.246-.827-.734-.962s-.863.014-1.124.447l-.856 1.428c-.065.108-.16.161-.286.161-.125 0-.22-.053-.285-.16l-.856-1.429c-.262-.433-.636-.582-1.125-.447-.488.135-.732.456-.734.962v6.667c0 .666.334 1 1 1z",fill:"#14b8ff"}))),Rc=t=>_.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("g",{fill:"none",fillRule:"evenodd"},_.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M1 2h25v24H1z"}),_.createElement("path",{d:"M27.333 24.667v-22C27.333.889 26.444 0 24.667 0h-22C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v22c0 1.777.889 2.666 2.667 2.666h22c1.777 0 2.666-.889 2.666-2.666z",fill:"#ffb41f"}),_.createElement("path",{d:"M19.113 12.933c-.126-.603-.497-.911-1.112-.925-.616-.014-1 .277-1.154.873l-2.123 4.667c-.051.112-.137.176-.26.192-.121.017-.221-.023-.3-.117l-1.467-1.752c-.34-.462-.796-.67-1.368-.625-.571.044-.99.32-1.254.829L6.76 21.6c-.133.222-.136.446-.008.671.128.226.321.338.58.338H22c.236 0 .42-.097.552-.293.132-.195.154-.402.067-.621l-3.506-8.762zM10.667 8c0 1.778-.89 2.667-2.667 2.667-1.778 0-2.667-.89-2.667-2.667 0-1.778.89-2.667 2.667-2.667 1.778 0 2.667.89 2.667 2.667z",fill:"#FFF"}),_.createElement("path",{d:"M30.667 8c-.369 0-.683.13-.943.39-.26.26-.39.575-.39.943v19.334c0 .444-.223.666-.667.666H9.333c-.889 0-1.333.445-1.333 1.334S8.444 32 9.333 32h20C31.111 32 32 31.111 32 29.333v-20C32 8.444 31.556 8 30.667 8z",fill:"#ffb41f"}))),Eo=t=>_.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("g",{fill:"none",fillRule:"evenodd"},_.createElement("rect",{fill:"#30cf43",width:32,height:32,rx:2.5}),_.createElement("rect",{fill:"#FFF",x:3,y:15,width:26,height:2,rx:1}),_.createElement("rect",{fill:"#FFF",x:3,y:3,width:26,height:7,rx:1.5}),_.createElement("rect",{fill:"#FFF",x:3,y:22,width:26,height:7,rx:1.5}))),$c=t=>_.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667Z",fill:"#FB2D8D"}),_.createElement("path",{d:"M15.998-.01v18.674c-.054.558.175.951.687 1.18.525.2.965.084 1.322-.35l2.689-2.683a.404.404 0 0 1 .294-.122c.116 0 .214.041.295.122l2.69 2.684c.245.274.552.417.92.428.139 0 .273-.026.401-.078.512-.23.741-.623.687-1.18V-.062l-9.985.05v.002Z",fill:"#fff"})),Ac=t=>_.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("g",{fillRule:"nonzero",fill:"none"},_.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#14b8ff"}),_.createElement("path",{d:"M23.312 9.5H8.687c-1.233 0-2 .767-2 2v9c0 1.233.767 2 2 2h14.625c1.234 0 2-.767 2-2v-9c0-1.233-.766-2-2-2zM8.56 11.25h14.882c.1.004.118.022.121.122v9.256c-.004.116-.029.122-.178.122H8.56c-.1-.004-.118-.022-.121-.122v-9.256c.003-.1.022-.118.121-.122z",fill:"#FFF"}),_.createElement("path",{d:"M18.123 13.887c.3-.325.79-.37 1.144-.123l.092.075 2.86 2.643c.355.329.377.882.049 1.237-.301.325-.791.37-1.144.123l-.093-.074-2.86-2.644c-.355-.328-.376-.882-.048-1.237zM12.64 13.839c.356-.328.91-.307 1.237.048.301.326.308.818.033 1.15l-.081.087-2.86 2.644c-.355.328-.908.306-1.237-.049-.3-.325-.307-.818-.033-1.15l.082-.087 2.86-2.643z",fill:"#FFF"}),_.createElement("path",{d:"M23.663 10.04c.398-.274.943-.174 1.217.224.252.364.189.853-.13 1.143l-.093.074-7.135 4.92c-.925.638-1.935.676-2.87.112l-.174-.112-7.135-4.92c-.398-.275-.498-.82-.223-1.217.251-.365.73-.48 1.114-.285l.103.061 7.135 4.92c.346.24.613.263.944.072l.113-.072 7.134-4.92z",fill:"#FFF"}))),Mc=t=>_.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("rect",{width:32,height:32,rx:3,fill:"#FFB41F"}),_.createElement("g",{clipPath:"url(#clip0)",fill:"#fff"},_.createElement("path",{d:"M14.536 15.568l2.68 8.931a.83.83 0 001.382.349l1.365-1.365 3.522 3.522a.83.83 0 001.174 0l2.348-2.348a.83.83 0 000-1.174l-3.522-3.522L24.85 18.6a.829.829 0 00-.348-1.382l-8.932-2.68a.83.83 0 00-1.034 1.03z"}),_.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.86 4.255A11.25 11.25 0 0126.47 14.447a.75.75 0 01-1.496.106 9.75 9.75 0 10-10.421 10.42.75.75 0 01-.107 1.496 11.25 11.25 0 01-1.588-22.214z"}),_.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.305 8.785a6.75 6.75 0 018.203 3.934.75.75 0 11-1.39.562 5.25 5.25 0 10-6.837 6.835.75.75 0 11-.562 1.39 6.75 6.75 0 01.586-12.72z"})),_.createElement("clipPath",{id:"clip0"},_.createElement("path",{fill:"#fff",transform:"translate(4 4)",d:"M0 0h24v24H0z"}))),Lc=t=>_.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{d:"M30 0H2a2 2 0 00-2 2v28a2 2 0 002 2h28a2 2 0 002-2V2a2 2 0 00-2-2z",fill:"#30CF43"}),_.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.999 9.001c4.007-.06 7.962 2.737 10.366 5.425l.004.004a2.517 2.517 0 010 3.337l-.003.004c-2.349 2.628-6.294 5.49-10.367 5.428-4.073.061-8.018-2.8-10.365-5.429l-.003-.003a2.517 2.517 0 010-3.337l.003-.004C8.036 11.738 11.991 8.94 16 9.001h-.001zm-8.872 6.756a.517.517 0 000 .683c2.208 2.472 5.645 4.814 8.855 4.759h.034c3.209.055 6.647-2.287 8.857-4.759a.518.518 0 000-.683c-2.257-2.522-5.705-4.81-8.857-4.756h-.034c-3.152-.054-6.6 2.234-8.855 4.756z",fill:"#fff"}),_.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 18a2 2 0 100-4 2 2 0 000 4zm0 2a4 4 0 100-8 4 4 0 000 8z",fill:"#fff"})),Dc=t=>_.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{d:"M29 0H3C1.34315 0 0 1.34315 0 3V29C0 30.6569 1.34315 32 3 32H29C30.6569 32 32 30.6569 32 29V3C32 1.34315 30.6569 0 29 0Z",fill:"#FB2D8D"}),_.createElement("path",{d:"M13.5361 15.568L16.2161 24.499C16.2573 24.6366 16.3335 24.7612 16.4372 24.8605C16.541 24.9599 16.6688 25.0306 16.808 25.0658C16.9473 25.101 17.0933 25.0994 17.2318 25.0612C17.3703 25.023 17.4965 24.9496 17.5981 24.848L18.9631 23.483L22.4851 27.005C22.5622 27.0821 22.6537 27.1433 22.7544 27.185C22.8551 27.2267 22.9631 27.2482 23.0721 27.2482C23.1811 27.2482 23.2891 27.2267 23.3898 27.185C23.4905 27.1433 23.582 27.0821 23.6591 27.005L26.0071 24.657C26.0842 24.5799 26.1454 24.4884 26.1871 24.3877C26.2288 24.287 26.2503 24.179 26.2503 24.07C26.2503 23.961 26.2288 23.853 26.1871 23.7523C26.1454 23.6516 26.0842 23.5601 26.0071 23.483L22.4851 19.961L23.8501 18.6C23.952 18.4986 24.0257 18.3725 24.0641 18.234C24.1025 18.0955 24.1043 17.9494 24.0692 17.81C24.0341 17.6707 23.9634 17.5428 23.8639 17.439C23.7645 17.3352 23.6398 17.2591 23.5021 17.218L14.5701 14.538C14.4269 14.4952 14.2748 14.4918 14.1298 14.5282C13.9848 14.5647 13.8524 14.6396 13.7464 14.7451C13.6405 14.8506 13.5651 14.9828 13.5281 15.1276C13.491 15.2725 13.4938 15.4246 13.5361 15.568Z",fill:"white"}),_.createElement("path",{d:"M12.2871 23.75C12.7013 23.75 13.0371 23.4142 13.0371 23C13.0371 22.5858 12.7013 22.25 12.2871 22.25V23.75ZM25.75 17.2496C25.75 17.6638 26.0858 17.9996 26.5 17.9996C26.9142 17.9996 27.25 17.6638 27.25 17.2496H25.75ZM8.5 9.75H23.5V8.25H8.5V9.75ZM6.25 20V12H4.75V20H6.25ZM12.2871 22.25H10.75V23.75H12.2871V22.25ZM10.75 22.25H8.5V23.75H10.75V22.25ZM25.75 12V16H27.25V12H25.75ZM25.75 16V17.2496H27.25V16H25.75ZM4.75 20C4.75 22.0711 6.42893 23.75 8.5 23.75V22.25C7.25736 22.25 6.25 21.2426 6.25 20H4.75ZM23.5 9.75C24.7426 9.75 25.75 10.7574 25.75 12H27.25C27.25 9.92893 25.5711 8.25 23.5 8.25V9.75ZM8.5 8.25C6.42893 8.25 4.75 9.92893 4.75 12H6.25C6.25 10.7574 7.25736 9.75 8.5 9.75V8.25Z",fill:"white"})),Ic=t=>_.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("rect",{width:28,height:28,rx:3,fill:"#14B8FF"}),_.createElement("g",{fill:"#fff"},_.createElement("path",{d:"M20 11.75a2.242 2.242 0 0 0-1.993-2.225 9.414 9.414 0 0 0-.257 2.225c-.003.749.083 1.496.257 2.224A2.243 2.243 0 0 0 20 11.75ZM13.75 18.433 9.41 17.05l1.973 4.856a1.746 1.746 0 0 0 3.367-.636c.003-.23-.04-.457-.126-.67l-.874-2.167Z"}),_.createElement("path",{d:"M19.25 5c-.27 0-.537.048-.79.139L7.046 8.778A2.864 2.864 0 0 0 5 11.75a2.857 2.857 0 0 0 2.025 2.965l11.437 3.646c.253.091.52.138.788.139 2.138 0 3.75-2.902 3.75-6.75S21.388 5 19.25 5Zm0 12C18.188 17 17 14.755 17 11.75s1.188-5.25 2.25-5.25 2.25 2.245 2.25 5.25S20.312 17 19.25 17Z"})),_.createElement("clipPath",null,_.createElement("path",{fill:"#fff",transform:"translate(5 5)",d:"M0 0h18v18H0z"}))),Pc=t=>_.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{d:"M29 0H3C1.34315 0 0 1.34315 0 3V29C0 30.6569 1.34315 32 3 32H29C30.6569 32 32 30.6569 32 29V3C32 1.34315 30.6569 0 29 0Z",fill:"#FFB41F"}),_.createElement("path",{d:"M5.5 7.75H26.5",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M5.5 24.25H26.5",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M19 19.75V13.75C19 13.3522 19.158 12.9706 19.4393 12.6893C19.7206 12.408 20.1022 12.25 20.5 12.25H22",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M19 16.75H21.25",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M16 19.75V12.25",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M12.25 16.75H13V18.25C13 18.6478 12.842 19.0294 12.5607 19.3107C12.2794 19.592 11.8978 19.75 11.5 19.75C11.1022 19.75 10.7206 19.592 10.4393 19.3107C10.158 19.0294 10 18.6478 10 18.25V13.75C10 13.3522 10.158 12.9706 10.4393 12.6893C10.7206 12.408 11.1022 12.25 11.5 12.25H13",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Fc=t=>_.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("rect",{width:28,height:28,rx:3,fill:"#ffb41f"}),_.createElement("rect",{x:2,y:8,width:15,height:4,rx:1.5,fill:"white"}),_.createElement("rect",{x:2,y:15,width:24,height:2,rx:1,fill:"white"}),_.createElement("rect",{x:2,y:19,width:24,height:2,rx:1,fill:"white"}),_.createElement("path",{d:"M20 9L22.5 11.5L25 9",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),zc=t=>_.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("rect",{width:28,height:28,rx:3,fill:"#30CF43"}),_.createElement("path",{d:"M12.07 20.77a.998.998 0 0 1-1.445-.894v-6.752a.999.999 0 0 1 1.444-.894l6.754 3.377a.997.997 0 0 1 0 1.785L12.07 20.77Z",fill:"#fff",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("rect",{x:3,y:2,width:4,height:4,rx:1,fill:"#fff"}),_.createElement("rect",{x:9,y:2,width:4,height:4,rx:1,fill:"#fff"}),_.createElement("rect",{x:15,y:2,width:4,height:4,rx:1,fill:"#fff"}),_.createElement("rect",{x:21,y:2,width:4,height:4,rx:1,fill:"#fff"})),Bc=t=>_.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("rect",{width:28,height:28,rx:3,fill:"#FB2D8D"}),_.createElement("path",{d:"M9 21c1.105 0 2-.933 2-2.084s-.895-2.084-2-2.084-2 .933-2 2.084C7 20.066 7.895 21 9 21ZM19 18.916c1.105 0 2-.933 2-2.084s-.895-2.084-2-2.084-2 .933-2 2.084c0 1.15.895 2.084 2 2.084Z",fill:"#fff",stroke:"#fff",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),_.createElement("path",{d:"M21 16.834v-7.75c0-.317-.07-.63-.203-.914a2.07 2.07 0 0 0-.566-.729 1.965 1.965 0 0 0-.816-.396 1.922 1.922 0 0 0-.9.017l-6 1.042a1.995 1.995 0 0 0-1.091.74A2.14 2.14 0 0 0 11 10.124v8.792",stroke:"#fff",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),Hc=t=>_.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("rect",{width:28,height:28,rx:3,fill:"#14B8FF"}),_.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.229 6.653a2.625 2.625 0 0 0-2.882.605l-.01.01-6.761 6.761a4.312 4.312 0 1 0 6.098 6.099l8.233-8.234a.75.75 0 1 1 1.06 1.06l-8.232 8.234a5.812 5.812 0 1 1-8.22-8.22l6.758-6.757a4.124 4.124 0 1 1 5.833 5.833l-6.767 6.77a2.437 2.437 0 0 1-3.447-3.446l.01-.01 6.761-6.764a.75.75 0 1 1 1.061 1.06l-6.757 6.76a.937.937 0 0 0 1.326 1.325l6.765-6.769a2.626 2.626 0 0 0-.83-4.317Z",fill:"#fff"})),Kc=t=>_.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("rect",{width:28,height:28,rx:3,fill:"#3BCD4C"}),_.createElement("path",{d:"M17.0141 11.3454C17.0775 11.3165 17.1182 11.2532 17.1182 11.1835C17.1182 11.1137 17.0775 11.0504 17.0141 11.0215L10.0678 7.85488C9.9758 7.814 9.87078 7.814 9.77877 7.85488L7.06135 9.03382C6.99572 9.06178 6.95312 9.12623 6.95312 9.19757C6.95312 9.2689 6.99572 9.33335 7.06135 9.36131L14.3871 12.414C14.4784 12.4523 14.5816 12.4508 14.6718 12.4098L17.0141 11.3454Z",fill:"white"}),_.createElement("path",{d:"M21.3502 9.37202C21.4141 9.34329 21.4552 9.27975 21.4552 9.2097C21.4552 9.13965 21.4141 9.07612 21.3502 9.04738L14.4716 6.05943C14.29 5.98019 14.0837 5.98019 13.9021 6.05943L11.6097 7.05613C11.5454 7.08468 11.5039 7.14844 11.5039 7.2188C11.5039 7.28917 11.5454 7.35293 11.6097 7.38148L18.5153 10.5296C18.609 10.5722 18.7165 10.5722 18.8101 10.5296L21.3502 9.37202Z",fill:"white"}),_.createElement("path",{d:"M6.24633 10.1777C6.19138 10.1549 6.12865 10.161 6.07916 10.194C6.02966 10.2271 5.99996 10.2827 6 10.3422V18.2773C5.99998 18.5646 6.17266 18.8238 6.43783 18.9344L13.76 21.9864C13.8149 22.0093 13.8777 22.0031 13.9271 21.9701C13.9766 21.937 14.0063 21.8815 14.0063 21.8219V13.5309C14.0062 13.459 13.963 13.3942 13.8967 13.3664L6.24633 10.1777Z",fill:"white"}),_.createElement("path",{d:"M15.0781 21.7899C15.0784 21.8502 15.1092 21.9063 15.1599 21.939C15.2105 21.9718 15.2743 21.9767 15.3294 21.9522L21.9582 18.9394C22.2122 18.8238 22.3753 18.5705 22.3754 18.2915V10.3578C22.3754 10.2973 22.3447 10.241 22.2939 10.2082C22.2431 10.1753 22.1791 10.1706 22.124 10.1955L15.1849 13.3507C15.1211 13.3792 15.0801 13.4425 15.0803 13.5124L15.0781 21.7899Z",fill:"white"})),Wc=t=>_.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{d:"M29.5 0H2.5C1.11929 0 0 1.11929 0 2.5V29.5C0 30.8807 1.11929 32 2.5 32H29.5C30.8807 32 32 30.8807 32 29.5V2.5C32 1.11929 30.8807 0 29.5 0Z",fill:"#FB2D8D"}),_.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 10C6 8.89543 6.89543 8 8 8H24C25.1046 8 26 8.89543 26 10V15C26 16.1046 25.1046 17 24 17H8C6.89543 17 6 16.1046 6 15V10ZM6 24C6 23.4477 6.44772 23 7 23H25C25.5523 23 26 23.4477 26 24C26 24.5523 25.5523 25 25 25H7C6.44772 25 6 24.5523 6 24ZM7 19C6.44772 19 6 19.4477 6 20C6 20.5523 6.44772 21 7 21H25C25.5523 21 26 20.5523 26 20C26 19.4477 25.5523 19 25 19H7Z",fill:"white"})),Uc=t=>_.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("g",{fill:"none",fillRule:"evenodd"},_.createElement("path",{d:"M31.252 8.488c-.366-1.37-1.448-2.452-2.824-2.823C25.941 5 15.958 5 15.958 5s-9.977 0-12.47.665c-1.37.366-2.452 1.447-2.823 2.823C0 10.976 0 16.17 0 16.17s0 5.194.665 7.682c.366 1.372 1.447 2.453 2.823 2.823 2.493.666 12.47.666 12.47.666s9.983 0 12.47-.666c1.372-.365 2.453-1.447 2.824-2.823.665-2.488.665-7.682.665-7.682s0-5.194-.665-7.682",fill:"#D9252A"}),_.createElement("path",{fill:"#FFFFFE",d:"M12.77 20.958l8.291-4.788-8.291-4.788v9.576"}))),Yc=t=>_.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{d:"M10.063 29.002c12.076 0 18.68-10.005 18.68-18.68 0-.285 0-.567-.019-.85C30.01 8.545 31.12 7.393 32 6.076c-1.198.53-2.47.879-3.77 1.032 1.37-.82 2.395-2.11 2.886-3.63-1.29.764-2.7 1.303-4.17 1.593-2.035-2.164-5.268-2.694-7.887-1.292-2.62 1.401-3.973 4.386-3.3 7.28-5.28-.265-10.198-2.758-13.532-6.86-1.742 3-.852 6.838 2.033 8.764-1.045-.03-2.067-.313-2.98-.822v.084c0 3.125 2.204 5.817 5.267 6.435-.966.264-1.98.303-2.964.113.86 2.675 3.325 4.507 6.133 4.56-2.324 1.827-5.196 2.818-8.153 2.815-.522 0-1.044-.032-1.563-.094 3.002 1.927 6.496 2.949 10.063 2.944",fill:"#1DA1F2",fillRule:"nonzero"})),Vc=t=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 122.43 122.41",...t},_.createElement("path",{d:"M83.86 54.15v34.13H38.57V54.15H0v68.26h122.43V54.15H83.86zM38.57 0h45.3v34.13h-45.3z"})),jc=t=>_.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("g",{fill:"none",fillRule:"evenodd"},_.createElement("path",{d:"M31.886 25.508c0 3.522-2.855 6.377-6.377 6.377H6.377C2.857 31.885 0 29.03 0 25.508V6.378C0 2.854 2.857 0 6.377 0H25.51c3.522 0 6.377 2.855 6.377 6.377v19.131",fill:"#0FB7FF"}),_.createElement("path",{d:"M25.998 10.58c.175-.982.17-1.992-.436-2.755-.846-1.07-2.646-1.11-3.88-.921-1.003.153-4.397 1.651-5.552 5.236 2.046-.156 3.118.148 2.921 2.4-.082.943-.558 1.976-1.09 2.966-.614 1.141-1.765 3.382-3.274 1.767-1.36-1.454-1.257-4.235-1.568-6.086-.173-1.04-.356-2.334-.697-3.402-.293-.92-.966-2.027-1.788-2.267-.884-.26-1.976.146-2.618.523-2.042 1.2-3.598 2.908-5.365 4.317v.132c.35.335.444.884.96.959 1.216.179 2.375-1.134 3.184.232.492.834.645 1.749.96 2.648.42 1.198.746 2.503 1.09 3.88.583 2.334 1.299 5.82 3.316 6.675 1.029.437 2.575-.148 3.358-.612 2.122-1.255 3.775-3.075 5.19-4.927 3.234-4.382 5.019-9.347 5.289-10.765",fill:"#FFFFFE"}))),Gc=t=>_.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{d:"M31.976 10.886c-.007-.039-.014-.078-.024-.116l-.022-.066c-.01-.034-.022-.068-.035-.1l-.03-.067c-.015-.031-.03-.062-.048-.092-.012-.022-.026-.042-.039-.063-.018-.029-.037-.057-.058-.084-.015-.02-.03-.04-.047-.059-.022-.026-.045-.05-.068-.075l-.055-.053c-.025-.023-.051-.045-.078-.065-.021-.016-.041-.033-.063-.047-.008-.006-.014-.013-.023-.018L16.762.231c-.461-.308-1.063-.308-1.525 0L.612 9.981l-.022.017c-.022.015-.042.031-.063.047-.027.021-.053.043-.078.065-.019.017-.037.035-.055.054-.024.024-.046.048-.068.074-.017.02-.032.039-.047.06-.02.028-.04.055-.058.084l-.04.064c-.017.03-.032.06-.046.09-.01.022-.022.045-.03.067-.014.033-.026.067-.036.1l-.022.065c-.01.038-.017.076-.024.115-.004.02-.008.04-.01.06-.009.06-.013.119-.013.18v9.751c0 .06.004.121.013.18.003.022.009.039.013.06.007.038.013.077.026.116l.021.067c.011.034.022.069.035.1.009.022.021.043.03.065.014.03.03.06.047.092.012.021.026.043.04.062.018.03.038.056.06.082.014.022.03.04.047.06.022.026.043.051.069.074.017.018.034.04.056.052l.077.066c.021.017.043.03.06.046.009.005.014.013.022.017l14.621 9.755c.231.155.496.233.763.232.267-.002.532-.078.763-.232l14.625-9.75.022-.016c.022-.015.042-.031.063-.047.027-.021.053-.043.078-.066l.055-.053c.024-.024.047-.049.068-.075.017-.02.032-.039.047-.06.02-.026.04-.054.058-.083.014-.02.027-.042.04-.063.017-.03.032-.06.047-.092l.03-.066c.014-.033.025-.067.035-.1.008-.023.016-.045.022-.067.01-.038.017-.077.024-.116.004-.02.009-.039.01-.06.009-.059.013-.118.013-.179v-9.75c0-.06-.005-.12-.012-.18-.004-.02-.01-.038-.014-.06h.002zM16 19.253L11.137 16 16 12.747 20.863 16 16 19.253zm-1.375-8.895l-5.962 3.988-4.812-3.22 10.774-7.182v6.414zM6.19 16l-3.44 2.3V13.7l3.44 2.3zm2.473 1.655l5.962 3.987v6.414L3.85 20.873l4.812-3.219v.001zm8.712 3.986l5.961-3.987 4.813 3.22-10.774 7.181v-6.414zm8.434-5.64l3.44-2.302v4.602L25.81 16zm-2.473-1.655l-5.961-3.987V3.944l10.774 7.183-4.813 3.219z",fill:"#000",fillRule:"nonzero"})),Zc=t=>_.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{d:"M16 .053C7.19.053.047 7.194.047 16.003c0 8.81 7.142 15.951 15.951 15.951 8.81 0 15.951-7.14 15.951-15.95C31.95 7.194 24.81.054 16 .054V.053zm7.314 23.005c-.285.469-.899.618-1.367.33-3.745-2.288-8.46-2.806-14.013-1.537-.535.122-1.068-.213-1.19-.749-.122-.535.212-1.068.748-1.19 6.076-1.389 11.288-.79 15.493 1.779.468.287.617.899.33 1.367zm1.953-4.343c-.36.585-1.126.77-1.71.41-4.288-2.636-10.824-3.4-15.896-1.86-.657.199-1.352-.172-1.552-.828-.198-.658.173-1.351.83-1.551 5.793-1.758 12.994-.907 17.918 2.12.585.36.77 1.125.41 1.709zm.167-4.523c-5.14-3.054-13.623-3.334-18.531-1.845-.788.24-1.622-.205-1.86-.994-.24-.788.205-1.621.994-1.86 5.634-1.711 15.001-1.38 20.92 2.133.71.42.943 1.336.522 2.044-.42.71-1.337.943-2.044.522z",fill:"#1ED760",fillRule:"nonzero"})),Jc=t=>_.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{d:"M15.924 9.922c-.236 0-.43.194-.434.433l-.177 8.866.178 3.218c.003.235.197.43.433.43s.43-.195.433-.433v.004l.193-3.219-.193-8.867c-.003-.238-.197-.432-.433-.432zm12.14 5.102c-.54 0-1.054.11-1.522.306C26.228 11.783 23.254 9 19.625 9c-.887 0-1.753.175-2.517.47-.298.115-.377.234-.38.463v12.492c.004.242.19.442.426.466l10.91.006c2.174 0 3.936-1.762 3.936-3.936s-1.762-3.937-3.936-3.937zM10.886 22.56v-.002l.226-3.338-.226-7.276c-.006-.181-.148-.323-.325-.323-.176 0-.319.142-.324.323l-.202 7.276.202 3.34c.005.178.148.32.324.32.177 0 .318-.142.325-.321v.001zm-2.952.32c.144 0 .262-.117.27-.267l.264-3.394-.265-6.497c-.007-.15-.125-.267-.27-.267-.144 0-.263.117-.269.267l-.234 6.497.234 3.395c.006.149.125.266.27.266zm5.297-10.868c-.209 0-.375.166-.38.377l-.169 6.832.17 3.287c.004.21.17.375.379.375.207 0 .373-.166.378-.377v.002l.19-3.287-.19-6.832c-.005-.211-.17-.377-.378-.377zM2.802 22.657c.083 0 .15-.066.16-.156l.34-3.286-.34-3.41c-.01-.091-.077-.157-.16-.157-.084 0-.152.066-.16.157l-.299 3.41.299 3.285c.008.091.076.157.16.157zm2.546.188c.113 0 .206-.092.214-.212l.302-3.418-.302-3.25c-.008-.12-.1-.211-.214-.211-.116 0-.208.09-.216.212l-.266 3.25.266 3.417c.008.12.1.212.216.212zm6.543.03c.191 0 .346-.154.351-.35v.003l.209-3.309-.209-7.09c-.005-.196-.16-.35-.351-.35-.193 0-.348.154-.352.35l-.185 7.09.185 3.308c.004.194.159.348.352.348zm2.69.013c.22 0 .401-.181.405-.404v.002-.002l.172-3.263-.172-8.13c-.004-.223-.186-.405-.406-.405-.22 0-.403.182-.406.405l-.153 8.127.153 3.268c.003.22.186.402.406.402zm-5.338-.016c.16 0 .29-.129.296-.294l.246-3.36-.246-7.039c-.006-.165-.137-.294-.296-.294-.162 0-.292.13-.297.295l-.218 7.038.218 3.361c.005.164.135.293.297.293zM4.07 15.527c-.1 0-.18.08-.188.185L3.6 19.215l.282 3.39c.008.104.089.184.188.184.098 0 .178-.08.187-.184l.32-3.39-.32-3.504c-.009-.104-.09-.184-.187-.184zm2.565-1.837c-.129 0-.235.105-.242.24l-.25 5.287.25 3.417c.007.133.113.239.242.239s.235-.106.243-.24v.001l.283-3.417-.283-5.288c-.008-.134-.114-.24-.243-.24zm-4.957 2.65c-.01-.076-.066-.129-.133-.129-.068 0-.124.055-.133.13l-.315 2.873.315 2.81c.01.076.065.13.133.13.067 0 .122-.053.133-.129l.358-2.81-.358-2.874zm-1.316.972c-.067 0-.12.052-.128.125L0 19.214l.234 1.747c.009.074.061.125.128.125.065 0 .117-.05.128-.124l.277-1.748-.277-1.778c-.01-.073-.063-.124-.128-.124z",fill:"#EE7C25",fillRule:"evenodd"})),Xc=t=>_.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{d:"M32 16C32 24.8361 24.8361 32 16 32C7.16394 32 0 24.8361 0 16C0 7.16394 7.16394 0 16 0C24.8379 0 32 7.16394 32 16Z",fill:"#2081E2"}),_.createElement("path",{d:"M7.89371 16.5376L7.96274 16.4291L12.125 9.91784C12.1858 9.82251 12.3288 9.83236 12.3748 9.93592C13.0702 11.4943 13.6702 13.4324 13.3891 14.639C13.2691 15.1354 12.9403 15.8078 12.5704 16.4291C12.5228 16.5196 12.4702 16.6083 12.4143 16.6938C12.388 16.7333 12.3436 16.7563 12.2959 16.7563H8.01534C7.90027 16.7563 7.83288 16.6313 7.89371 16.5376Z",fill:"white"}),_.createElement("path",{d:"M26.4461 17.7475V18.7782C26.4461 18.8374 26.4099 18.89 26.3573 18.913C26.0351 19.0511 24.9321 19.5574 24.4734 20.1952C23.303 21.8242 22.4088 24.1536 20.4098 24.1536H12.0706C9.11495 24.1536 6.71985 21.7503 6.71985 18.7848V18.6894C6.71985 18.6105 6.78394 18.5464 6.86286 18.5464H11.5117C11.6037 18.5464 11.6711 18.6319 11.6629 18.7223C11.63 19.0248 11.6859 19.3338 11.8289 19.6149C12.1051 20.1755 12.6772 20.5256 13.2952 20.5256H15.5966V18.7289H13.3215C13.2048 18.7289 13.1358 18.5941 13.2032 18.4987C13.2278 18.4609 13.2558 18.4215 13.2854 18.3771C13.5007 18.0714 13.8081 17.5963 14.1139 17.0555C14.3227 16.6905 14.5248 16.3009 14.6876 15.9097C14.7205 15.839 14.7468 15.7666 14.7731 15.696C14.8174 15.571 14.8635 15.4543 14.8964 15.3376C14.9293 15.239 14.9555 15.1354 14.9818 15.0384C15.0591 14.7064 15.092 14.3546 15.092 13.9897C15.092 13.8467 15.0854 13.697 15.0723 13.554C15.0657 13.3979 15.046 13.2417 15.0262 13.0855C15.0131 12.9474 14.9884 12.811 14.9621 12.668C14.9293 12.4592 14.8832 12.2521 14.8306 12.0433L14.8125 11.9644C14.7731 11.8214 14.7402 11.685 14.6942 11.542C14.5643 11.0932 14.4147 10.6559 14.2569 10.2466C14.1994 10.0839 14.1336 9.92771 14.0678 9.77155C13.9709 9.53647 13.8722 9.32278 13.7818 9.12057C13.7358 9.02851 13.6964 8.94467 13.6569 8.85919C13.6125 8.7622 13.5665 8.66521 13.5205 8.57318C13.4876 8.50249 13.4498 8.43673 13.4235 8.37097L13.1424 7.85151C13.1029 7.78083 13.1687 7.69699 13.2459 7.71836L15.0049 8.19507H15.0098C15.0131 8.19507 15.0147 8.19673 15.0164 8.19673L15.2481 8.26083L15.503 8.33318L15.5966 8.35945V7.31398C15.5966 6.80931 16.001 6.39999 16.5008 6.39999C16.7506 6.39999 16.9775 6.50191 17.1402 6.66793C17.303 6.83398 17.4049 7.06083 17.4049 7.31398V8.86579L17.5923 8.91836C17.6071 8.92332 17.6219 8.92988 17.635 8.93974C17.6811 8.97427 17.7468 9.02521 17.8306 9.08771C17.8964 9.14028 17.9671 9.20441 18.0526 9.27017C18.2219 9.40659 18.4241 9.58249 18.646 9.7847C18.7052 9.83564 18.7627 9.88825 18.8153 9.94086C19.1014 10.2072 19.4219 10.5195 19.7277 10.8647C19.8131 10.9617 19.897 11.0603 19.9824 11.1639C20.0679 11.2691 20.1583 11.3726 20.2372 11.4762C20.3408 11.6143 20.4526 11.7573 20.5496 11.9069C20.5956 11.9776 20.6482 12.0499 20.6926 12.1206C20.8175 12.3096 20.9277 12.5053 21.0329 12.7009C21.0773 12.7913 21.1233 12.8899 21.1627 12.9869C21.2794 13.2483 21.3715 13.5146 21.4307 13.7809C21.4487 13.8384 21.4619 13.9009 21.4685 13.9568V13.9699C21.4882 14.0488 21.4948 14.1327 21.5014 14.2181C21.5277 14.491 21.5145 14.7639 21.4553 15.0384C21.4307 15.1552 21.3978 15.2653 21.3583 15.382C21.3189 15.4938 21.2794 15.6105 21.2285 15.7206C21.1299 15.9491 21.0131 16.1776 20.875 16.3913C20.8307 16.4702 20.7781 16.5541 20.7254 16.633C20.6679 16.7168 20.6087 16.7957 20.5561 16.873C20.4838 16.9716 20.4066 17.0752 20.3277 17.1672C20.257 17.2642 20.1846 17.3612 20.1057 17.4467C19.9956 17.5765 19.8904 17.6998 19.7802 17.8182C19.7145 17.8954 19.6438 17.9744 19.5715 18.045C19.5008 18.1239 19.4285 18.1946 19.3627 18.2604C19.2526 18.3705 19.1605 18.456 19.0832 18.5267L18.9024 18.6927C18.8761 18.7157 18.8416 18.7289 18.8054 18.7289H17.4049V20.5256H19.1671C19.5616 20.5256 19.9364 20.3859 20.2389 20.1294C20.3424 20.039 20.7945 19.6478 21.3287 19.0577C21.3468 19.0379 21.3699 19.0231 21.3962 19.0166L26.2636 17.6094C26.354 17.5831 26.4461 17.6522 26.4461 17.7475Z",fill:"white"})),Qc=t=>_.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("g",{fill:"none",fillRule:"evenodd"},_.createElement("rect",{fill:"#fb2d8d",width:32,height:32,rx:2.5}),_.createElement("path",{d:"M12 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2zM18 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2zM24 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2z",fill:"#FFF"}))),qc=t=>_.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{"data-selector":"bg",d:"M2 24h13l9-9V2a2 2 0 00-2-2H2a2 2 0 00-2 2v20a2 2 0 002 2z",fill:"#F0F6F9"}),_.createElement("rect",{"data-selector":"block",x:5.25,y:4.5,width:13.5,height:4.5,rx:1,fill:"#738A94"}),_.createElement("path",{"data-selector":"fold",d:"M15 16v8l9-9h-8a1 1 0 00-1 1z",fill:"#DAE8F1"}),_.createElement("rect",{"data-selector":"line",x:5.25,y:11.25,width:8.25,height:1.5,rx:.75,fill:"#738A94"})),Hr=t=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...t},_.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",stroke:"currentColor",strokeLinejoin:"round",className:"nc-icon-wrapper"},_.createElement("circle",{cx:18,cy:16,r:4}),_.createElement("path",{"data-cap":"butt",d:"M20.849 33.164 33 20l13 13M2 38l12-11 10 9"}),_.createElement("path",{d:"M2 6h44v36H2z"}))),ed=t=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...t},_.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",stroke:"currentColor",strokeLinejoin:"round",className:"nc-icon-wrapper"},_.createElement("path",{d:"M3 9h42v36H3zm7-6h28"}),_.createElement("path",{d:"m10 38 7-10 5 4 8-11 9 17H10z"}),_.createElement("circle",{cx:17,cy:19,r:3})));var No=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function td(t){var e=t.default;if(typeof e=="function"){var n=function(){return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var Kn={exports:{}},Wn={};/**
1
+ (function(G,re){typeof exports=="object"&&typeof module<"u"?re(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],re):(G=typeof globalThis<"u"?globalThis:G||self,re(G["@tryghost/koenig-lexical"]={},G.React,G.ReactDOM))})(this,function(G,re,Je){"use strict";var u0=Object.defineProperty;var g0=(G,re,Je)=>re in G?u0(G,re,{enumerable:!0,configurable:!0,writable:!0,value:Je}):G[re]=Je;var Ee=(G,re,Je)=>(g0(G,typeof re!="symbol"?re+"":re,Je),Je);var __vite_style__=document.createElement("style");__vite_style__.innerHTML=`.koenig-lexical *,.koenig-lexical :before,.koenig-lexical :after{box-sizing:border-box;max-width:revert;max-height:revert;min-width:revert;min-height:revert;border-width:0;border-style:solid;border-color:currentColor}.koenig-lexical :before,.koenig-lexical :after{--tw-content: ""}.koenig-lexical html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif}.koenig-lexical body{margin:0;line-height:inherit}.koenig-lexical hr{height:0;color:inherit;border-top-width:1px}.koenig-lexical abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.koenig-lexical h1,.koenig-lexical h2,.koenig-lexical h3,.koenig-lexical h4,.koenig-lexical h5,.koenig-lexical h6{font-size:inherit;font-weight:inherit}.koenig-lexical a{color:inherit;text-decoration:inherit}.koenig-lexical b,.koenig-lexical strong{font-weight:bolder}.koenig-lexical code,.koenig-lexical kbd,.koenig-lexical samp,.koenig-lexical pre{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}.koenig-lexical small{font-size:80%}.koenig-lexical sub,.koenig-lexical sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.koenig-lexical sub{bottom:-.25em}.koenig-lexical sup{top:-.5em}.koenig-lexical table{text-indent:0;border-color:inherit;border-collapse:collapse}.koenig-lexical button,.koenig-lexical input,.koenig-lexical optgroup,.koenig-lexical select,.koenig-lexical textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.koenig-lexical button,.koenig-lexical select{text-transform:none}.koenig-lexical button,.koenig-lexical [type=button],.koenig-lexical [type=reset],.koenig-lexical [type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}.koenig-lexical :-moz-focusring{outline:none}.koenig-lexical :-moz-ui-invalid{box-shadow:none}.koenig-lexical progress{vertical-align:baseline}.koenig-lexical ::-webkit-inner-spin-button,.koenig-lexical ::-webkit-outer-spin-button{height:auto}.koenig-lexical [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.koenig-lexical ::-webkit-search-decoration{-webkit-appearance:none}.koenig-lexical ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.koenig-lexical summary{display:list-item}.koenig-lexical blockquote,.koenig-lexical dl,.koenig-lexical dd,.koenig-lexical h1,.koenig-lexical h2,.koenig-lexical h3,.koenig-lexical h4,.koenig-lexical h5,.koenig-lexical h6,.koenig-lexical hr,.koenig-lexical figure,.koenig-lexical p,.koenig-lexical pre{margin:0}.koenig-lexical fieldset{margin:0;padding:0}.koenig-lexical legend{padding:0}.koenig-lexical ol,.koenig-lexical ul,.koenig-lexical menu{list-style:none;margin:0;padding:0}.koenig-lexical textarea{resize:vertical}.koenig-lexical input::-moz-placeholder,.koenig-lexical textarea::-moz-placeholder{opacity:1;color:#aeb7c1}.koenig-lexical input::placeholder,.koenig-lexical textarea::placeholder{opacity:1;color:#aeb7c1}.koenig-lexical img,.koenig-lexical svg,.koenig-lexical video,.koenig-lexical canvas,.koenig-lexical audio,.koenig-lexical iframe,.koenig-lexical embed,.koenig-lexical object{display:block;vertical-align:middle}.koenig-lexical img,.koenig-lexical video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(20 184 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(20 184 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 480px){.container{max-width:480px}}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.koenig-lexical{position:relative}.koenig-lexical>*{font-size:1.7rem;font-weight:300;letter-spacing:.1px;color:var(--grey-900);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-moz-font-feature-settings:"liga" on}.koenig-lexical [contenteditable]{outline:none}.koenig-lexical ::-moz-selection{background:var(--grey-300)}.koenig-lexical ::selection{background:var(--grey-300)}.koenig-lexical .kg-prose :where(p,h1,h2,h3,h4,h5,h6,blockquote,aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0;min-width:100%;max-width:100%}.koenig-lexical .kg-prose :where(h1,h2,h3,h4,h5,h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-weight:700;color:var(--black)}.koenig-lexical .kg-prose :where(h1 strong,h2 strong,h3 strong,h4 strong,h5 strong,h6 strong):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-weight:800}.koenig-lexical .kg-prose :where(h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:4.4rem;line-height:1.15em;letter-spacing:-.015em}.koenig-lexical .kg-prose :where(h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:3.2rem;line-height:1.2em;letter-spacing:-.014em}.koenig-lexical .kg-prose :where(h3):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.5rem;line-height:1.3em;letter-spacing:-.013em}.koenig-lexical .kg-prose :where(h4):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.2rem;line-height:1.35em;letter-spacing:-.011em}.koenig-lexical .kg-prose :where(h5):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2rem;line-height:1.35em;font-weight:700;letter-spacing:-.011em}.koenig-lexical .kg-prose :where(h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:1.85rem;line-height:1.4em;font-weight:700;letter-spacing:-.008em}.koenig-lexical .kg-prose :where(p + h1,p + h2,p + h3,p + h4,p + h5,p + h6,blockquote + h1,blockquote + h2,blockquote + h3,blockquote + h4,blockquote + h5,blockquote + h6,aside + h1,aside + h2,aside + h3,aside + h4,aside + h5,aside + h6,ul + h1,ul + h2,ul + h3,ul + h4,ul + h5,ul + h6,ol + h1,ol + h2,ol + h3,ol + h4,ol + h5,ol + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.4rem 0 0}.koenig-lexical .kg-prose :where(h2 + h1,h3 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1rem 0 0}.koenig-lexical .kg-prose :where(h4 + h1,h5 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h6 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.6rem 0 0}.koenig-lexical .kg-prose :where(div + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1 + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0}.koenig-lexical .kg-prose :where(h2 + h2,h3 + h2,h4 + h2,.koenig-react__editor h5 + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h6 + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(div + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1 + h3,h2 + h3,h1 + h4,h2 + h4,h1 + h5,h2 + h5,h1 + h6,h2 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.2rem 0 0}.koenig-lexical .kg-prose :where(h3 + h4):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + h3,h4 + h3,h5 + h3,h4 + h4,h5 + h4,h3 + h5,h4 + h5,h5 + h5,h3 + h6,h4 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h5 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(h6 + h3,h6 + h4,h6 + h5,h6 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(div + h3,div + h4,div + h5,div + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1:first-child,h2:first-child,h3:first-child,h4:first-child,.koenig-react__editor h5:first-child,h6:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin-top:0rem}@media (max-width: 500px){.koenig-lexical .kg-prose :where(h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:3.2rem}.koenig-lexical .kg-prose :where(h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.8rem}.koenig-lexical .kg-prose :where(h3):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.4rem}.koenig-lexical .kg-prose :where(h4):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.3rem}.koenig-lexical .kg-prose :where(h5):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2rem}.koenig-lexical .kg-prose :where(h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:1.9rem}}.koenig-lexical .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-family:georgia,serif;font-weight:400;line-height:1.6em;font-size:2rem}.koenig-lexical .kg-prose :where(p strong,blockquote strong,aside strong,ul strong,ol strong):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-weight:700}.koenig-lexical .kg-prose :where(h1 + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1rem 0 0}.koenig-lexical .kg-prose :where(h2 + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + p,h4 + p,h5 + p,h6 + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(p + p,blockquote + p,aside + p,ul + p,ol + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(div + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(div + figure):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(p:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin-top:0rem}@media (max-width: 500px){.koenig-lexical .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:1.8rem}}.koenig-lexical .kg-prose :where(ul,ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0;padding:0;min-width:100%;max-width:100%}.koenig-lexical .kg-prose :where(ul li):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){display:list-item;list-style-type:disc;margin:1rem 0 0 2.4rem;padding:0 0 0 .6rem;line-height:3.2rem}.koenig-lexical .kg-prose :where(ul li:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0 0 0 2.4rem}.koenig-lexical .kg-prose :where(ol li):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){display:list-item;list-style-type:decimal;margin:1rem 0 0 2.2rem;padding:0 0 0 .8rem;line-height:3.2rem}.koenig-lexical .kg-prose :where(ol li:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0 0 0 2.2rem}.koenig-lexical .kg-prose :where(p + ul,p + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3rem 0 0}.koenig-lexical .kg-prose :where(ul + ul,ul + ol,ol + ul,ol + ol,blockquote + ul,blockquote + ol,aside + ul,aside + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3rem 0 0}.koenig-lexical .kg-prose :where(h1 + ul,h1 + ol,h2 + ul,h2 + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + ul,h3 + ol,h4 + ul,h4 + ol,h5 + ul,h5 + ol,h6 + ul,h6 + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.2rem 0 0}.koenig-lexical .kg-prose :where(div + ul,div + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(ul ul,ul ol,ol ul,ol ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1rem 0 2rem}.koenig-lexical .kg-prose :where(ul:first-child,ol:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin-top:0rem}.koenig-lexical .kg-prose :where(a):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){color:var(--kg-accent-color, #ff0095);text-decoration:underline}.koenig-lexical .kg-prose :where(blockquote p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0}.koenig-lexical .kg-prose :where(blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){border-left:.25rem solid var(--kg-accent-color, #ff0095);padding-left:2rem;font-style:italic}.koenig-lexical .kg-prose :where(h1 + blockquote,h2 + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + blockquote,h4 + blockquote,.koenig-react__editor h5 + blockquote,h6 + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(p + blockquote,blockquote + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(div + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(aside p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0}.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0;padding:1rem 6rem 1.25rem;font-style:italic;text-align:center;font-size:2.4rem;color:var(--midgrey-l1)}.koenig-lexical .kg-prose :where(h1 + aside,h2 + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + aside,h4 + aside,h5 + aside,h6 + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(p + aside,blockquote + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}@media (max-width: 800px){.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){padding-left:6rem;padding-right:6rem}}@media (max-width: 500px){.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.2rem}}.koenig-lexical .kg-prose :where(div + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){line-height:0;min-width:100%}.koenig-lexical .kg-prose :where(div + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(p + div,blockquote + div,aside + div,ul + div,ol + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(h1 + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(h2 + div,h3 + div,h4 + div,h5 + div,h6 + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0}.koenig-lexical .kg-prose :where(hr):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0}.koenig-lexical .kg-prose code{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;background:var(--grey-100);border:1px solid var(--grey-200);border-radius:2px;color:var(--grey-900);font-size:.8em;line-height:1em;padding:.4rem .4rem .2rem;vertical-align:middle;white-space:pre-wrap}.koenig-lexical .pointer-events-none{pointer-events:none}.koenig-lexical .visible{visibility:visible}.koenig-lexical .static{position:static}.koenig-lexical .fixed{position:fixed}.koenig-lexical .absolute{position:absolute}.koenig-lexical .relative{position:relative}.koenig-lexical .inset-0{top:0px;right:0px;bottom:0px;left:0px}.koenig-lexical .inset-8{top:3.2rem;right:3.2rem;bottom:3.2rem;left:3.2rem}.koenig-lexical .bottom-0{bottom:0px}.koenig-lexical .right-0{right:0px}.koenig-lexical .top-\\[-44px\\]{top:-44px}.koenig-lexical .left-1\\/2{left:50%}.koenig-lexical .top-0{top:0px}.koenig-lexical .left-0{left:0px}.koenig-lexical .top-\\[-2px\\]{top:-2px}.koenig-lexical .left-\\[-66px\\]{left:-66px}.koenig-lexical .left-\\[-16px\\]{left:-16px}.koenig-lexical .top-\\[-6px\\]{top:-6px}.koenig-lexical .left-\\[55\\%\\]{left:55%}.koenig-lexical .top-6{top:2.4rem}.koenig-lexical .right-6{right:2.4rem}.koenig-lexical .top-1\\/2{top:50%}.koenig-lexical .left-4{left:1.6rem}.koenig-lexical .bottom-4{bottom:1.6rem}.koenig-lexical .right-\\[-100\\%\\]{right:-100%}.koenig-lexical .top-4{top:1.6rem}.koenig-lexical .top-\\[5px\\]{top:5px}.koenig-lexical .left-\\[6px\\]{left:6px}.koenig-lexical .right-\\[6px\\]{right:6px}.koenig-lexical .top-\\[2px\\]{top:2px}.koenig-lexical .left-\\[22px\\]{left:22px}.koenig-lexical .left-\\[2px\\]{left:2px}.koenig-lexical .bottom-1{bottom:.4rem}.koenig-lexical .left-6{left:2.4rem}.koenig-lexical .z-\\[9999999\\]{z-index:9999999}.koenig-lexical .z-\\[1000\\]{z-index:1000}.koenig-lexical .z-40{z-index:40}.koenig-lexical .z-10{z-index:10}.koenig-lexical .m-0{margin:0}.koenig-lexical .m-3{margin:1.2rem}.koenig-lexical .m-2{margin:.8rem}.koenig-lexical .m-\\[1rem\\]{margin:1rem}.koenig-lexical .mx-1{margin-left:.4rem;margin-right:.4rem}.koenig-lexical .mx-\\[calc\\(50\\%-\\(50vw-var\\(--kg-breakout-adjustment\\)\\)-\\.8rem\\)\\]{margin-left:calc(50% - (50vw - var(--kg-breakout-adjustment)) - .8rem);margin-right:calc(50% - (50vw - var(--kg-breakout-adjustment)) - .8rem)}.koenig-lexical .mx-2{margin-left:.8rem;margin-right:.8rem}.koenig-lexical .mx-auto{margin-left:auto;margin-right:auto}.koenig-lexical .mb-4{margin-bottom:1.6rem}.koenig-lexical .mt-20{margin-top:8rem}.koenig-lexical .mb-3{margin-bottom:1.2rem}.koenig-lexical .mb-2{margin-bottom:.8rem}.koenig-lexical .ml-4{margin-left:1.6rem}.koenig-lexical .mt-4{margin-top:1.6rem}.koenig-lexical .mr-3{margin-right:1.2rem}.koenig-lexical .ml-\\[66px\\]{margin-left:66px}.koenig-lexical .mt-\\[2px\\]{margin-top:2px}.koenig-lexical .mt-auto{margin-top:auto}.koenig-lexical .mr-2{margin-right:.8rem}.koenig-lexical .mb-\\[1px\\]{margin-bottom:1px}.koenig-lexical .mr-4{margin-right:1.6rem}.koenig-lexical .ml-1{margin-left:.4rem}.koenig-lexical .mt-1{margin-top:.4rem}.koenig-lexical .mt-2{margin-top:.8rem}.koenig-lexical .mt-\\[1px\\]{margin-top:1px}.koenig-lexical .-mt-4{margin-top:-1.6rem}.koenig-lexical .mb-12{margin-bottom:4.8rem}.koenig-lexical .mt-6{margin-top:2.4rem}.koenig-lexical .mt-12{margin-top:4.8rem}.koenig-lexical .mt-3{margin-top:1.2rem}.koenig-lexical .mt-8{margin-top:3.2rem}.koenig-lexical .mt-10{margin-top:4rem}.koenig-lexical .ml-2{margin-left:.8rem}.koenig-lexical .mb-1{margin-bottom:.4rem}.koenig-lexical .mr-6{margin-right:2.4rem}.koenig-lexical .mb-6{margin-bottom:2.4rem}.koenig-lexical .mr-1{margin-right:.4rem}.koenig-lexical .block{display:block}.koenig-lexical .inline-block{display:inline-block}.koenig-lexical .flex{display:flex}.koenig-lexical .hidden{display:none}.koenig-lexical .h-9{height:3.6rem}.koenig-lexical .h-5{height:2rem}.koenig-lexical .h-7{height:2.8rem}.koenig-lexical .h-4{height:1.6rem}.koenig-lexical .h-\\[1px\\]{height:1px}.koenig-lexical .h-32{height:12.8rem}.koenig-lexical .h-20{height:8rem}.koenig-lexical .h-14{height:5.6rem}.koenig-lexical .h-6{height:2.4rem}.koenig-lexical .h-16{height:6.4rem}.koenig-lexical .h-\\[1\\.4rem\\]{height:1.4rem}.koenig-lexical .h-1{height:.4rem}.koenig-lexical .h-10{height:4rem}.koenig-lexical .h-11{height:4.4rem}.koenig-lexical .h-12{height:4.8rem}.koenig-lexical .h-8{height:3.2rem}.koenig-lexical .h-full{height:100%}.koenig-lexical .h-\\[96px\\]{height:96px}.koenig-lexical .h-\\[64px\\]{height:64px}.koenig-lexical .h-\\[40px\\]{height:40px}.koenig-lexical .h-3{height:1.2rem}.koenig-lexical .h-\\[324px\\]{height:324px}.koenig-lexical .h-\\[100vh\\]{height:100vh}.koenig-lexical .h-\\[22px\\]{height:22px}.koenig-lexical .h-\\[18px\\]{height:18px}.koenig-lexical .max-h-\\[376px\\]{max-height:376px}.koenig-lexical .min-h-\\[120px\\]{min-height:120px}.koenig-lexical .min-h-\\[40vh\\]{min-height:40vh}.koenig-lexical .min-h-\\[60vh\\]{min-height:60vh}.koenig-lexical .min-h-\\[80vh\\]{min-height:80vh}.koenig-lexical .w-9{width:3.6rem}.koenig-lexical .w-px{width:1px}.koenig-lexical .w-7{width:2.8rem}.koenig-lexical .w-4{width:1.6rem}.koenig-lexical .w-\\[312px\\]{width:312px}.koenig-lexical .w-full{width:100%}.koenig-lexical .w-32{width:12.8rem}.koenig-lexical .w-\\[calc\\(65vw\\+2px-var\\(--kg-breakout-adjustment\\)\\)\\]{width:calc(65vw + 2px - var(--kg-breakout-adjustment))}.koenig-lexical .w-20{width:8rem}.koenig-lexical .w-14{width:5.6rem}.koenig-lexical .w-6{width:2.4rem}.koenig-lexical .w-16{width:6.4rem}.koenig-lexical .w-\\[1\\.4rem\\]{width:1.4rem}.koenig-lexical .w-\\[80px\\]{width:80px}.koenig-lexical .w-\\[60\\%\\]{width:60%}.koenig-lexical .w-\\[740px\\]{width:740px}.koenig-lexical .w-5{width:2rem}.koenig-lexical .w-\\[764px\\]{width:764px}.koenig-lexical .w-\\[1170px\\]{width:1170px}.koenig-lexical .w-8{width:3.2rem}.koenig-lexical .w-\\[max-content\\]{width:-moz-max-content;width:max-content}.koenig-lexical .w-auto{width:auto}.koenig-lexical .w-\\[440px\\]{width:440px}.koenig-lexical .w-0{width:0px}.koenig-lexical .w-\\[42px\\]{width:42px}.koenig-lexical .w-3{width:1.2rem}.koenig-lexical .w-\\[18px\\]{width:18px}.koenig-lexical .w-\\[400px\\]{width:400px}.koenig-lexical .min-w-\\[calc\\(100\\%\\+3\\.6rem\\)\\]{min-width:calc(100% + 3.6rem)}.koenig-lexical .min-w-full{min-width:100%}.koenig-lexical .min-w-\\[33\\%\\]{min-width:33%}.koenig-lexical .min-w-\\[auto\\]{min-width:auto}.koenig-lexical .max-w-\\[740px\\]{max-width:740px}.koenig-lexical .max-w-\\[1172px\\]{max-width:1172px}.koenig-lexical .max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.koenig-lexical .max-w-\\[96px\\]{max-width:96px}.koenig-lexical .max-w-\\[550px\\]{max-width:550px}.koenig-lexical .max-w-sm{max-width:38.4rem}.koenig-lexical .shrink-0{flex-shrink:0}.koenig-lexical .flex-grow,.koenig-lexical .grow{flex-grow:1}.koenig-lexical .basis-0{flex-basis:0px}.koenig-lexical .-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .translate-x-\\[calc\\(50vw-50\\%\\+\\.8rem-var\\(--kg-breakout-adjustment\\)\\)\\]{--tw-translate-x: calc(50vw - 50% + .8rem - var(--kg-breakout-adjustment));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .-translate-y-2{--tw-translate-y: -.8rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .cursor-pointer{cursor:pointer}.koenig-lexical .cursor-text{cursor:text}.koenig-lexical .cursor-zoom-out{cursor:zoom-out}.koenig-lexical .cursor-zoom-in{cursor:zoom-in}.koenig-lexical .resize-none{resize:none}.koenig-lexical .resize{resize:both}.koenig-lexical .\\!list-none{list-style-type:none!important}.koenig-lexical .flex-row{flex-direction:row}.koenig-lexical .flex-col{flex-direction:column}.koenig-lexical .items-start{align-items:flex-start}.koenig-lexical .items-end{align-items:flex-end}.koenig-lexical .items-center{align-items:center}.koenig-lexical .justify-start{justify-content:flex-start}.koenig-lexical .justify-end{justify-content:flex-end}.koenig-lexical .justify-center{justify-content:center}.koenig-lexical .justify-between{justify-content:space-between}.koenig-lexical .justify-evenly{justify-content:space-evenly}.koenig-lexical .gap-2{gap:.8rem}.koenig-lexical .overflow-auto{overflow:auto}.koenig-lexical .\\!overflow-auto{overflow:auto!important}.koenig-lexical .overflow-hidden{overflow:hidden}.koenig-lexical .overflow-y-auto{overflow-y:auto}.koenig-lexical .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.koenig-lexical .whitespace-pre{white-space:pre}.koenig-lexical .rounded{border-radius:.4rem}.koenig-lexical .rounded-full{border-radius:9999px}.koenig-lexical .rounded-lg{border-radius:.8rem}.koenig-lexical .rounded-sm{border-radius:.2rem}.koenig-lexical .rounded-md{border-radius:.6rem}.koenig-lexical .rounded-r-\\[\\.3rem\\]{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.koenig-lexical .border{border-width:1px}.koenig-lexical .border-0{border-width:0px}.koenig-lexical .border-2{border-width:2px}.koenig-lexical .border-t{border-top-width:1px}.koenig-lexical .border-grey{--tw-border-opacity: 1;border-color:rgb(171 180 190 / var(--tw-border-opacity))}.koenig-lexical .border-transparent{border-color:transparent}.koenig-lexical .border-grey-300{--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .border-green{--tw-border-opacity: 1;border-color:rgb(48 207 67 / var(--tw-border-opacity))}.koenig-lexical .border-grey-100{--tw-border-opacity: 1;border-color:rgb(244 245 246 / var(--tw-border-opacity))}.koenig-lexical .border-grey\\/20{border-color:#abb4be33}.koenig-lexical .border-grey\\/30{border-color:#abb4be4d}.koenig-lexical .border-grey\\/50{border-color:#abb4be80}.koenig-lexical .border-grey\\/40{border-color:#abb4be66}.koenig-lexical .border-grey\\/60{border-color:#abb4be99}.koenig-lexical .border-grey-200{--tw-border-opacity: 1;border-color:rgb(235 238 240 / var(--tw-border-opacity))}.koenig-lexical .border-t-grey-300{--tw-border-opacity: 1;border-top-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .bg-black{--tw-bg-opacity: 1;background-color:rgb(21 23 26 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey-900{--tw-bg-opacity: 1;background-color:rgb(57 64 71 / var(--tw-bg-opacity))}.koenig-lexical .bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey-50{--tw-bg-opacity: 1;background-color:rgb(250 250 251 / var(--tw-bg-opacity))}.koenig-lexical .bg-green{--tw-bg-opacity: 1;background-color:rgb(48 207 67 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey-100{--tw-bg-opacity: 1;background-color:rgb(244 245 246 / var(--tw-bg-opacity))}.koenig-lexical .bg-purple{--tw-bg-opacity: 1;background-color:rgb(142 66 255 / var(--tw-bg-opacity))}.koenig-lexical .bg-transparent{background-color:transparent}.koenig-lexical .bg-grey\\/30{background-color:#abb4be4d}.koenig-lexical .bg-grey-300{--tw-bg-opacity: 1;background-color:rgb(221 225 229 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey\\/10{background-color:#abb4be1a}.koenig-lexical .bg-blue\\/10{background-color:#14b8ff1a}.koenig-lexical .bg-green\\/10{background-color:#30cf431a}.koenig-lexical .bg-yellow\\/10{background-color:#ffb41f1a}.koenig-lexical .bg-red\\/10{background-color:#f50b231a}.koenig-lexical .bg-pink\\/10{background-color:#fb2d8d1a}.koenig-lexical .bg-purple\\/10{background-color:#8e42ff1a}.koenig-lexical .bg-grey-200{--tw-bg-opacity: 1;background-color:rgb(235 238 240 / var(--tw-bg-opacity))}.koenig-lexical .bg-pink{--tw-bg-opacity: 1;background-color:rgb(251 45 141 / var(--tw-bg-opacity))}.koenig-lexical .bg-white\\/50{background-color:#ffffff80}.koenig-lexical .bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.koenig-lexical .from-black\\/5{--tw-gradient-from: rgb(21 23 26 / .05);--tw-gradient-to: rgb(21 23 26 / 0);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.koenig-lexical .via-black\\/5{--tw-gradient-to: rgb(21 23 26 / 0);--tw-gradient-stops: var(--tw-gradient-from), rgb(21 23 26 / .05), var(--tw-gradient-to)}.koenig-lexical .to-black\\/30{--tw-gradient-to: rgb(21 23 26 / .3)}.koenig-lexical .bg-clip-padding{background-clip:padding-box}.koenig-lexical .fill-white{fill:#fff}.koenig-lexical .fill-green{fill:#30cf43}.koenig-lexical .fill-black{fill:#15171a}.koenig-lexical .fill-grey-900{fill:#394047}.koenig-lexical .fill-red{fill:#f50b23}.koenig-lexical .stroke-grey-800{stroke:#626d79}.koenig-lexical .stroke-2{stroke-width:2}.koenig-lexical .stroke-\\[1\\.2px\\]{stroke-width:1.2px}.koenig-lexical .stroke-\\[3px\\]{stroke-width:3px}.koenig-lexical .object-contain{-o-object-fit:contain;object-fit:contain}.koenig-lexical .p-0{padding:0}.koenig-lexical .p-20{padding:8rem}.koenig-lexical .p-2{padding:.8rem}.koenig-lexical .p-4{padding:1.6rem}.koenig-lexical .p-5{padding:2rem}.koenig-lexical .p-3{padding:1.2rem}.koenig-lexical .\\!p-4{padding:1.6rem!important}.koenig-lexical .p-\\[1rem\\]{padding:1rem}.koenig-lexical .px-1{padding-left:.4rem;padding-right:.4rem}.koenig-lexical .py-0{padding-top:0;padding-bottom:0}.koenig-lexical .px-4{padding-left:1.6rem;padding-right:1.6rem}.koenig-lexical .py-2{padding-top:.8rem;padding-bottom:.8rem}.koenig-lexical .px-3{padding-left:1.2rem;padding-right:1.2rem}.koenig-lexical .px-9{padding-left:3.6rem;padding-right:3.6rem}.koenig-lexical .py-\\[1rem\\]{padding-top:1rem;padding-bottom:1rem}.koenig-lexical .px-5{padding-left:2rem;padding-right:2rem}.koenig-lexical .py-5{padding-top:2rem;padding-bottom:2rem}.koenig-lexical .px-7{padding-left:2.8rem;padding-right:2.8rem}.koenig-lexical .px-2{padding-left:.8rem;padding-right:.8rem}.koenig-lexical .py-1{padding-top:.4rem;padding-bottom:.4rem}.koenig-lexical .py-\\[14vmin\\]{padding-top:14vmin;padding-bottom:14vmin}.koenig-lexical .py-\\[12vmin\\]{padding-top:12vmin;padding-bottom:12vmin}.koenig-lexical .py-\\[18vmin\\]{padding-top:18vmin;padding-bottom:18vmin}.koenig-lexical .py-4{padding-top:1.6rem;padding-bottom:1.6rem}.koenig-lexical .px-6{padding-left:2.4rem;padding-right:2.4rem}.koenig-lexical .py-10{padding-top:4rem;padding-bottom:4rem}.koenig-lexical .px-20{padding-left:8rem;padding-right:8rem}.koenig-lexical .py-\\[15vmin\\]{padding-top:15vmin;padding-bottom:15vmin}.koenig-lexical .pt-0{padding-top:0}.koenig-lexical .pt-3{padding-top:1.2rem}.koenig-lexical .pb-6{padding-bottom:2.4rem}.koenig-lexical .pt-1{padding-top:.4rem}.koenig-lexical .pb-7{padding-bottom:2.8rem}.koenig-lexical .pb-1{padding-bottom:.4rem}.koenig-lexical .pr-8{padding-right:3.2rem}.koenig-lexical .pl-10{padding-left:4rem}.koenig-lexical .pb-10{padding-bottom:4rem}.koenig-lexical .pb-16{padding-bottom:6.4rem}.koenig-lexical .pb-4{padding-bottom:1.6rem}.koenig-lexical .pr-1{padding-right:.4rem}.koenig-lexical .text-left{text-align:left}.koenig-lexical .text-center{text-align:center}.koenig-lexical .font-sans{font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif}.koenig-lexical .font-mono{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace}.koenig-lexical .font-serif{font-family:Georgia,serif}.koenig-lexical .text-xl{font-size:2rem}.koenig-lexical .text-md{font-size:1.5rem}.koenig-lexical .text-sm{font-size:1.4rem}.koenig-lexical .text-xs{font-size:1.2rem}.koenig-lexical .text-\\[1\\.3rem\\]{font-size:1.3rem}.koenig-lexical .text-\\[1\\.7rem\\]{font-size:1.7rem}.koenig-lexical .text-\\[1\\.1rem\\]{font-size:1.1rem}.koenig-lexical .text-lg{font-size:1.8rem}.koenig-lexical .text-\\[1\\.5rem\\]{font-size:1.5rem}.koenig-lexical .text-\\[1\\.6rem\\]{font-size:1.6rem}.koenig-lexical .text-6xl{font-size:6rem;line-height:1}.koenig-lexical .text-7xl{font-size:7.2rem;line-height:1}.koenig-lexical .text-8xl{font-size:9.6rem;line-height:1}.koenig-lexical .text-2xl{font-size:2.4rem}.koenig-lexical .text-\\[2\\.7rem\\]{font-size:2.7rem}.koenig-lexical .text-3xl{font-size:3rem}.koenig-lexical .text-5xl{font-size:4.8rem;line-height:1.15}.koenig-lexical .font-bold{font-weight:700}.koenig-lexical .font-normal{font-weight:400}.koenig-lexical .font-medium{font-weight:500}.koenig-lexical .font-semibold{font-weight:600}.koenig-lexical .font-extrabold{font-weight:800}.koenig-lexical .uppercase{text-transform:uppercase}.koenig-lexical .italic{font-style:italic}.koenig-lexical .leading-\\[1\\.333em\\]{line-height:1.333em}.koenig-lexical .leading-7{line-height:1.75rem}.koenig-lexical .leading-8{line-height:2rem}.koenig-lexical .leading-\\[1\\.6rem\\]{line-height:1.6rem}.koenig-lexical .leading-9{line-height:2.25rem}.koenig-lexical .leading-\\[4rem\\]{line-height:4rem}.koenig-lexical .leading-\\[4\\.4rem\\]{line-height:4.4rem}.koenig-lexical .leading-\\[4\\.8rem\\]{line-height:4.8rem}.koenig-lexical .leading-tight{line-height:1.25}.koenig-lexical .leading-none{line-height:1}.koenig-lexical .leading-snug{line-height:1.375}.koenig-lexical .leading-relaxed{line-height:1.625}.koenig-lexical .leading-6{line-height:1.5rem}.koenig-lexical .tracking-\\[\\.06rem\\]{letter-spacing:.06rem}.koenig-lexical .tracking-\\[\\.02rem\\]{letter-spacing:.02rem}.koenig-lexical .tracking-wide{letter-spacing:.025em}.koenig-lexical .tracking-normal{letter-spacing:0em}.koenig-lexical .tracking-tight{letter-spacing:-.025em}.koenig-lexical .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.koenig-lexical .text-grey{--tw-text-opacity: 1;color:rgb(171 180 190 / var(--tw-text-opacity))}.koenig-lexical .text-grey-800{--tw-text-opacity: 1;color:rgb(98 109 121 / var(--tw-text-opacity))}.koenig-lexical .text-grey-900{--tw-text-opacity: 1;color:rgb(57 64 71 / var(--tw-text-opacity))}.koenig-lexical .text-grey-700{--tw-text-opacity: 1;color:rgb(124 139 154 / var(--tw-text-opacity))}.koenig-lexical .text-grey-500{--tw-text-opacity: 1;color:rgb(174 183 193 / var(--tw-text-opacity))}.koenig-lexical .text-black{--tw-text-opacity: 1;color:rgb(21 23 26 / var(--tw-text-opacity))}.koenig-lexical .text-grey-600{--tw-text-opacity: 1;color:rgb(149 161 173 / var(--tw-text-opacity))}.koenig-lexical .text-green{--tw-text-opacity: 1;color:rgb(48 207 67 / var(--tw-text-opacity))}.koenig-lexical .text-grey-400{--tw-text-opacity: 1;color:rgb(206 212 217 / var(--tw-text-opacity))}.koenig-lexical .text-grey-300{--tw-text-opacity: 1;color:rgb(221 225 229 / var(--tw-text-opacity))}.koenig-lexical .underline{text-decoration-line:underline}.koenig-lexical .caret-grey-800{caret-color:#626d79}.koenig-lexical .opacity-80{opacity:.8}.koenig-lexical .opacity-100{opacity:1}.koenig-lexical .opacity-50{opacity:.5}.koenig-lexical .opacity-40{opacity:.4}.koenig-lexical .opacity-60{opacity:.6}.koenig-lexical .opacity-0{opacity:0}.koenig-lexical .opacity-90{opacity:.9}.koenig-lexical .shadow{--tw-shadow: 0 0 1px rgba(0,0,0,.05), 0 5px 18px rgba(0,0,0,.08);--tw-shadow-colored: 0 0 1px var(--tw-shadow-color), 0 5px 18px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-\\[0_0_0_2px_\\#30cf43\\]{--tw-shadow: 0 0 0 2px #30cf43;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-\\[0_0_0_2px\\]{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-xl{--tw-shadow: 0 2.8px 2.2px rgba(0, 0, 0, .02), 0 6.7px 5.3px rgba(0, 0, 0, .028), 0 12.5px 10px rgba(0, 0, 0, .035), 0 22.3px 17.9px rgba(0, 0, 0, .042), 0 41.8px 33.4px rgba(0, 0, 0, .05), 0 100px 80px rgba(0, 0, 0, .07);--tw-shadow-colored: 0 2.8px 2.2px var(--tw-shadow-color), 0 6.7px 5.3px var(--tw-shadow-color), 0 12.5px 10px var(--tw-shadow-color), 0 22.3px 17.9px var(--tw-shadow-color), 0 41.8px 33.4px var(--tw-shadow-color), 0 100px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-green{--tw-shadow-color: #30CF43;--tw-shadow: var(--tw-shadow-colored)}.koenig-lexical .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.koenig-lexical .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.koenig-lexical .duration-100{transition-duration:.1s}.koenig-lexical .duration-75{transition-duration:75ms}.koenig-lexical .ease-linear{transition-timing-function:linear}.koenig-lexical .ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.koenig-lexical .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.koenig-lexical .line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.koenig-lexical .line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}:root{--grey-100: #F4F5F6;--grey-200: #EBEEF0;--grey-300: #DDE1E5;--grey-500: #AEB7C1;--grey-900: #394047;--black: #15171A;--kg-breakout-adjustment: 0px}@font-face{font-family:Inter,sans-serif;src:url(./assets/fonts/Inter.ttf) format("truetype-variations");font-weight:100 900}.koenig-lexical .selection\\:bg-grey-800 *::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .selection\\:bg-grey-800 *::selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .selection\\:bg-grey-800::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .selection\\:bg-grey-800::selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .before\\:mr-2:before{content:var(--tw-content);margin-right:.8rem}.koenig-lexical .before\\:flex-1:before{content:var(--tw-content);flex:1 1 0%}.koenig-lexical .before\\:border-t:before{content:var(--tw-content);border-top-width:1px}.koenig-lexical .before\\:border-grey-300:before{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .before\\:pb-\\[62\\.5\\%\\]:before{content:var(--tw-content);padding-bottom:62.5%}.koenig-lexical .before\\:pb-\\[12\\.5\\%\\]:before{content:var(--tw-content);padding-bottom:12.5%}.koenig-lexical .before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.koenig-lexical .after\\:absolute:after{content:var(--tw-content);position:absolute}.koenig-lexical .after\\:top-\\[36px\\]:after{content:var(--tw-content);top:36px}.koenig-lexical .after\\:left-\\[calc\\(50\\%-8px\\)\\]:after{content:var(--tw-content);left:calc(50% - 8px)}.koenig-lexical .after\\:ml-2:after{content:var(--tw-content);margin-left:.8rem}.koenig-lexical .after\\:block:after{content:var(--tw-content);display:block}.koenig-lexical .after\\:w-0:after{content:var(--tw-content);width:0px}.koenig-lexical .after\\:flex-1:after{content:var(--tw-content);flex:1 1 0%}.koenig-lexical .after\\:border-x-8:after{content:var(--tw-content);border-left-width:8px;border-right-width:8px}.koenig-lexical .after\\:border-t-8:after{content:var(--tw-content);border-top-width:8px}.koenig-lexical .after\\:border-t:after{content:var(--tw-content);border-top-width:1px}.koenig-lexical .after\\:border-grey-300:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .after\\:border-x-transparent:after{content:var(--tw-content);border-left-color:transparent;border-right-color:transparent}.koenig-lexical .after\\:border-t-black:after{content:var(--tw-content);--tw-border-opacity: 1;border-top-color:rgb(21 23 26 / var(--tw-border-opacity))}.koenig-lexical .after\\:pb-4:after{content:var(--tw-content);padding-bottom:1.6rem}.koenig-lexical .first\\:m-0:first-child{margin:0}.koenig-lexical .first-of-type\\:mt-8:first-of-type{margin-top:3.2rem}.koenig-lexical .first-of-type\\:mr-3:first-of-type{margin-right:1.2rem}.koenig-lexical .last-of-type\\:mr-0:last-of-type{margin-right:0}.koenig-lexical .hover\\:border-grey-900:hover{--tw-border-opacity: 1;border-color:rgb(57 64 71 / var(--tw-border-opacity))}.koenig-lexical .hover\\:bg-grey-100:hover{--tw-bg-opacity: 1;background-color:rgb(244 245 246 / var(--tw-bg-opacity))}.koenig-lexical .hover\\:bg-grey-500\\/20:hover{background-color:#aeb7c133}.koenig-lexical .hover\\:fill-grey-800:hover{fill:#626d79}.koenig-lexical .hover\\:opacity-100:hover{opacity:1}.koenig-lexical .hover\\:shadow-\\[0_0_0_1px_\\#30cf43\\]:hover{--tw-shadow: 0 0 0 1px #30cf43;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .hover\\:shadow-\\[0_0_0_1px\\]:hover{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .hover\\:shadow-green:hover{--tw-shadow-color: #30CF43;--tw-shadow: var(--tw-shadow-colored)}.koenig-lexical .focus\\:border-grey-400:focus{--tw-border-opacity: 1;border-color:rgb(206 212 217 / var(--tw-border-opacity))}.koenig-lexical .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.koenig-lexical .group:hover .group-hover\\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .group:hover .group-hover\\:stroke-grey-900{stroke:#394047}.koenig-lexical .group:hover .group-hover\\:text-grey-800{--tw-text-opacity: 1;color:rgb(98 109 121 / var(--tw-text-opacity))}.koenig-lexical .group:hover .group-hover\\:opacity-100{opacity:1}@media (min-width: 640px){.koenig-lexical .sm\\:min-w-\\[calc\\(100\\%\\+10rem\\)\\]{min-width:calc(100% + 10rem)}}@media (min-width: 768px){.koenig-lexical .md\\:h-9{height:3.6rem}.koenig-lexical .md\\:w-9{width:3.6rem}}@media (min-width: 1024px){.koenig-lexical .lg\\:mx-\\[calc\\(50\\%-50vw\\+\\(var\\(--kg-breakout-adjustment\\)\\/2\\)\\)\\]{margin-left:calc(50% - 50vw + (var(--kg-breakout-adjustment) / 2));margin-right:calc(50% - 50vw + (var(--kg-breakout-adjustment) / 2))}.koenig-lexical .lg\\:w-\\[calc\\(100vw-var\\(--kg-breakout-adjustment\\)\\)\\]{width:calc(100vw - var(--kg-breakout-adjustment))}.koenig-lexical .lg\\:min-w-\\[calc\\(100\\%\\+18rem\\)\\]{min-width:calc(100% + 18rem)}}
2
+ `;document.head.appendChild(__vite_style__);const yo=t=>t&&typeof t=="object"&&"default"in t?t:{default:t};function jc(t){if(t&&t.__esModule)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const x=jc(re),S=yo(re),Yc=yo(Je),h0="",ko=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M7.412 6.217h1.176c1.276 0 2.236-.773 2.236-1.608 0-.835-.96-1.609-2.236-1.609H5.765v3.217h1.647zM5.765 13H9.47C10.875 13 12 11.92 12 10.609s-1.124-2.392-2.53-2.392H5.766V13zm-2 0V3H3c-.552 0-1-.448-1-1s.448-1 1-1h5.588c2.297 0 4.236 1.563 4.236 3.609 0 .877-.357 1.666-.945 2.28C13.15 7.665 14 9.037 14 10.61 14 13.043 11.963 15 9.47 15H3c-.552 0-1-.448-1-1s.448-1 1-1h.765z",fillRule:"nonzero"})),Co=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M12.15 3L6.104 13h.811c.552 0 1 .448 1 1s-.448 1-1 1H2c-.552 0-1-.448-1-1s.448-1 1-1h1.767L9.813 3H9c-.552 0-1-.448-1-1s.448-1 1-1h4.915c.552 0 1 .448 1 1s-.448 1-1 1H12.15z",fillRule:"nonzero"})),Eo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M4 7h8V2c0-.552.448-1 1-1s1 .448 1 1v5.897c.003.034.005.068.005.103 0 .035-.002.07-.005.103V14c0 .552-.448 1-1 1s-1-.448-1-1V9H4v5c0 .552-.448 1-1 1s-1-.448-1-1V2c0-.552.448-1 1-1s1 .448 1 1v5z",fillRule:"nonzero"})),No=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M6 8h4V5.483c0-.552.448-1 1-1s1 .448 1 1V13c0 .552-.448 1-1 1s-1-.448-1-1v-3H6v3c0 .552-.448 1-1 1s-1-.448-1-1V5.483c0-.552.448-1 1-1s1 .448 1 1V8z",fillRule:"nonzero"})),jr=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M6.4 11.688c.4-.382 1.032-.369 1.415.03.382.399.368 1.032-.03 1.414l-1.055 1.01c-1.209 1.21-3.17 1.21-4.38 0l-.494-.494c-1.208-1.209-1.208-3.17.001-4.377L5.07 6.058c1.21-1.21 3.17-1.21 4.38 0 .39.39.39 1.024 0 1.414-.391.39-1.024.39-1.415 0-.428-.428-1.122-.428-1.551 0l-3.213 3.213c-.427.427-.427 1.122 0 1.55l.494.494c.428.428 1.123.428 1.566-.015l1.07-1.026zm3.037-7.212c-.398.383-1.03.372-1.414-.025-.384-.398-.373-1.03.025-1.414l1.222-1.18c1.21-1.209 3.169-1.209 4.379 0l.493.494c1.21 1.209 1.21 3.17.013 4.366l-3.237 3.357c-1.21 1.21-3.17 1.21-4.38 0-.39-.391-.389-1.025.002-1.415.39-.39 1.024-.39 1.414.001.428.429 1.121.429 1.537.013l3.238-3.358c.428-.427.428-1.121 0-1.55l-.494-.493c-.429-.429-1.123-.429-1.563.012L9.437 4.476z",fillRule:"nonzero"})),To=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M4 8h2c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H3c-.552 0-1-.448-1-1V5.082c0-1.176.906-2.12 2.538-2.969.49-.255 1.094-.065 1.349.425.255.49.065 1.094-.425 1.349-.578.3-.993.589-1.24.847-.168.174-.222.286-.222.348V8zm9 0c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-3c-.552 0-1-.448-1-1V5.082c0-1.176.906-2.12 2.538-2.969.49-.255 1.094-.065 1.349.425.255.49.065 1.094-.425 1.349-.578.3-.993.589-1.24.847-.168.174-.222.286-.222.348V8h2z",fillRule:"nonzero"})),So=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M2 3c-.552 0-1-.448-1-1s.448-1 1-1h12c.552 0 1 .448 1 1s-.448 1-1 1H2zM2 15c-.552 0-1-.448-1-1s.448-1 1-1h12c.552 0 1 .448 1 1s-.448 1-1 1H2z",fillRule:"nonzero",opacity:.6}),x.createElement("path",{d:"M2 5h12c.552 0 1 .448 1 1v4.001c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1z",fillRule:"nonzero"}))),bo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M6 3c-.552 0-1-.448-1-1s.448-1 1-1h4c.552 0 1 .448 1 1s-.448 1-1 1H6zM6 15c-.552 0-1-.448-1-1s.448-1 1-1h4c.552 0 1 .448 1 1s-.448 1-1 1H6z",fillRule:"nonzero",opacity:.6}),x.createElement("path",{d:"M2 5h12c.552 0 1 .448 1 1v4.001c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1z",fillRule:"nonzero"}))),Ro=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M0 2c0-.552.448-1 1-1s1 .448 1 1v12c0 .552-.448 1-1 1s-1-.448-1-1V2zM14 2c0-.552.448-1 1-1s1 .448 1 1v12c0 .552-.448 1-1 1s-1-.448-1-1V2z",fillRule:"nonzero",opacity:.6}),x.createElement("path",{d:"M10.626 7L9.312 5.691c-.391-.39-.393-1.023-.003-1.414s1.023-.392 1.414-.003l3.029 3.017c.39.389.392 1.02.005 1.412l-3.029 3.059c-.388.392-1.022.395-1.414.007-.392-.389-.396-1.022-.007-1.414L10.648 9H5.415l1.342 1.355c.388.392.385 1.025-.007 1.414-.393.388-1.026.385-1.415-.007L2.307 8.703c-.388-.392-.386-1.023.005-1.412L5.34 4.274c.391-.39 1.025-.388 1.414.003.39.391.389 1.025-.002 1.414L5.438 7h5.188z",fillRule:"nonzero"}))),Oo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M2 9h5c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1v-4c0-.552.448-1 1-1zM9 1h5c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H9c-.552 0-1-.448-1-1V2c0-.552.448-1 1-1zM4.5 5.772l1.15-1.175c.192-.198.509-.201.706-.008.198.193.201.51.008.707L4.382 7.322c-.091.109-.229.178-.382.178-.13 0-.26-.05-.357-.148L1.61 5.298c-.194-.196-.193-.513.004-.707.196-.194.512-.193.707.004L3.5 5.785V3c0-.828.672-1.5 1.5-1.5h1c.276 0 .5.224.5.5s-.224.5-.5.5H5c-.276 0-.5.224-.5.5v2.772zm7 4.456l-1.15 1.175c-.192.198-.509.201-.706.008-.198-.193-.201-.51-.008-.707l1.982-2.026c.091-.109.229-.178.382-.178.13 0 .26.05.357.148l2.032 2.054c.194.196.193.513-.004.707-.196.194-.512.193-.707-.004l-1.178-1.19V13c0 .828-.672 1.5-1.5 1.5h-1c-.276 0-.5-.224-.5-.5s.224-.5.5-.5h1c.276 0 .5-.224.5-.5v-2.772z",fillRule:"nonzero"}))),$o=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M9 7h5c.552 0 1 .448 1 1s-.448 1-1 1H9v5c0 .552-.448 1-1 1s-1-.448-1-1V9H2c-.552 0-1-.448-1-1s.448-1 1-1h5V2c0-.552.448-1 1-1s1 .448 1 1v5z",fillRule:"nonzero"})),Jn=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3V13H8.78579L13 8.78579V3H3ZM1.52721 1.52721C1.86477 1.18964 2.32261 1 2.8 1H13.2C13.6774 1 14.1352 1.18964 14.4728 1.52721C14.8104 1.86477 15 2.32261 15 2.8V8.8688C14.9999 9.34585 14.8104 9.80357 14.4732 10.141L10.1412 14.473C9.8038 14.8102 9.34607 14.9999 8.86901 15H2.8C2.32261 15 1.86477 14.8104 1.52721 14.4728C1.18964 14.1352 1 13.6774 1 13.2V2.8C1 2.32261 1.18964 1.86477 1.52721 1.52721Z"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 10H14C14.5523 10 15 9.55228 15 9C15 8.44772 14.5523 8 14 8H9.84602C9.35643 8 8.88688 8.19449 8.54069 8.54069C8.19449 8.88688 8 9.35643 8 9.84602V14C8 14.5523 8.44772 15 9 15C9.55228 15 10 14.5523 10 14V10Z"})),Mo=t=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M12 1.5v21M1.5 12h21",strokeLinecap:"round",strokeLinejoin:"round"}))),Ao=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#30cf43"}),x.createElement("path",{d:"M23.778 12.111c0 3.111-1.556 4.667-4.667 4.667-3.111 0-4.667-1.556-4.667-4.667C14.444 9 16 7.444 19.111 7.444c3.111 0 4.667 1.556 4.667 4.667zM19.111 5.5c.778 0 1.167-.389 1.167-1.167v-.777c0-.45-.195-.786-.584-1.01-.388-.225-.777-.225-1.166 0-.39.224-.584.56-.584 1.01v.777c0 .778.39 1.167 1.167 1.167zM12.788 7.435c.55.552 1.1.554 1.653.004.552-.55.553-1.1.003-1.653l-.549-.55c-.55-.552-1.101-.554-1.653-.004-.553.55-.554 1.101-.005 1.654l.55.55zM10.556 13.278h.777c.778 0 1.167-.39 1.167-1.167 0-.778-.389-1.167-1.167-1.167h-.777c-.778 0-1.167.39-1.167 1.167 0 .778.389 1.167 1.167 1.167zM25.434 16.787c-.549-.512-1.089-.502-1.62.029-.53.53-.54 1.07-.028 1.62l.549.55c.55.55 1.1.55 1.65 0 .55-.55.55-1.1 0-1.65l-.55-.549zM25.722 12.111c0 .778.39 1.167 1.167 1.167h.778c.777 0 1.166-.39 1.166-1.167 0-.778-.389-1.167-1.166-1.167h-.778c-.322 0-.597.114-.825.342-.228.228-.342.503-.342.825zM24.61 7.779c.323 0 .598-.114.824-.344l.551-.549c.55-.55.55-1.1 0-1.65-.55-.55-1.1-.55-1.65 0l-.55.55c-.366.368-.45.792-.251 1.271.198.48.557.72 1.076.722zM21.911 22.356c-.771 0-1.522.12-2.254.364-.127.042-.21.126-.25.254-.039.127-.018.244.063.35 1.283 1.689 2.07 3.583 2.362 5.684.02.142.103.214.247.214h4.906c.836 0 1.492-.343 1.967-1.031-.737-3.89-3.084-5.835-7.042-5.835h.001zM9.644 19.968c-2.518-.004-4.758.783-6.72 2.362-.1.08-.149.183-.146.31v4.2c.004 1.588.8 2.382 2.388 2.382H19.83c.122 0 .222-.046.3-.14.077-.093.105-.2.082-.319-1.083-5.863-4.606-8.795-10.568-8.795z",fill:"#FFF"}))),Vc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#fb2d8d",fillRule:"nonzero"}),x.createElement("path",{stroke:"#FFF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",d:"M8 20v-8l4 4 4-4v8M22 12.07v7.916M19.5 17.5l2.48 2.525L24.5 17.5"}))),Gc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{fill:"#FFF",d:"M2 4h28v24H2z"}),x.createElement("path",{d:"M32 6c0-2.667-1.333-4-4-4H4c-1.105 0-2.047.39-2.828 1.172C.39 3.952 0 4.895 0 6v20c0 2.667 1.333 4 4 4h24c2.667 0 4-1.333 4-4V6zM4 6.667c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C4.444 8 4 7.556 4 6.667zm4 0c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C8.444 8 8 7.556 8 6.667zm4 0c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C12.444 8 12 7.556 12 6.667zM29.333 26c0 .889-.444 1.333-1.333 1.333H4c-.889 0-1.333-.444-1.333-1.333V12c0-.184.065-.341.195-.471.13-.13.287-.196.471-.196h25.334c.444 0 .666.223.666.667v14z",fill:"#14b8ff"}),x.createElement("path",{d:"M10.333 16c0 .667.334 1 1 1 .223 0 .334.111.334.333v5.334c0 .666.333 1 1 1 .666 0 1-.334 1-1v-5.334c0-.092.032-.17.097-.235.065-.065.144-.098.236-.098.667 0 1-.333 1-1s-.333-1-1-1h-2.667c-.276 0-.512.098-.707.293-.195.195-.293.43-.293.707zM5.333 23.667c.667 0 1-.334 1-1v-1.334c0-.128.056-.224.167-.288.111-.064.222-.064.333 0 .111.064.167.16.167.288v1.334c0 .666.333 1 1 1s1-.334 1-1V16c0-.385-.167-.674-.5-.866-.333-.192-.667-.192-1 0-.333.192-.5.481-.5.866v2.667c0 .222-.111.333-.333.333-.223 0-.334-.111-.334-.333V16c0-.385-.166-.674-.5-.866-.333-.192-.666-.192-1 0-.333.192-.5.481-.5.866v6.667c0 .666.334 1 1 1zM23.667 21.333c.001 1.554.78 2.332 2.333 2.334h1.333c.667 0 1-.334 1-1 0-.667-.333-1-1-1H26c-.222 0-.333-.111-.333-.334V16c0-.385-.167-.674-.5-.866-.334-.192-.667-.192-1 0-.334.192-.5.481-.5.866v5.333zM17.333 23.667c.667 0 1-.334 1-1v-2.78c0-.039.02-.063.056-.073.037-.01.066 0 .086.034.207.301.493.452.858.452.366 0 .652-.15.859-.452.02-.033.048-.045.085-.034.038.01.056.034.056.073v2.78c0 .666.334 1 1 1 .667 0 1-.334 1-1V16c-.001-.506-.246-.827-.734-.962s-.863.014-1.124.447l-.856 1.428c-.065.108-.16.161-.286.161-.125 0-.22-.053-.285-.16l-.856-1.429c-.262-.433-.636-.582-1.125-.447-.488.135-.732.456-.734.962v6.667c0 .666.334 1 1 1z",fill:"#14b8ff"}))),Zc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M1 2h25v24H1z"}),x.createElement("path",{d:"M27.333 24.667v-22C27.333.889 26.444 0 24.667 0h-22C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v22c0 1.777.889 2.666 2.667 2.666h22c1.777 0 2.666-.889 2.666-2.666z",fill:"#ffb41f"}),x.createElement("path",{d:"M19.113 12.933c-.126-.603-.497-.911-1.112-.925-.616-.014-1 .277-1.154.873l-2.123 4.667c-.051.112-.137.176-.26.192-.121.017-.221-.023-.3-.117l-1.467-1.752c-.34-.462-.796-.67-1.368-.625-.571.044-.99.32-1.254.829L6.76 21.6c-.133.222-.136.446-.008.671.128.226.321.338.58.338H22c.236 0 .42-.097.552-.293.132-.195.154-.402.067-.621l-3.506-8.762zM10.667 8c0 1.778-.89 2.667-2.667 2.667-1.778 0-2.667-.89-2.667-2.667 0-1.778.89-2.667 2.667-2.667 1.778 0 2.667.89 2.667 2.667z",fill:"#FFF"}),x.createElement("path",{d:"M30.667 8c-.369 0-.683.13-.943.39-.26.26-.39.575-.39.943v19.334c0 .444-.223.666-.667.666H9.333c-.889 0-1.333.445-1.333 1.334S8.444 32 9.333 32h20C31.111 32 32 31.111 32 29.333v-20C32 8.444 31.556 8 30.667 8z",fill:"#ffb41f"}))),Do=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"#30cf43",width:32,height:32,rx:2.5}),x.createElement("rect",{fill:"#FFF",x:3,y:15,width:26,height:2,rx:1}),x.createElement("rect",{fill:"#FFF",x:3,y:3,width:26,height:7,rx:1.5}),x.createElement("rect",{fill:"#FFF",x:3,y:22,width:26,height:7,rx:1.5}))),Jc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667Z",fill:"#FB2D8D"}),x.createElement("path",{d:"M15.998-.01v18.674c-.054.558.175.951.687 1.18.525.2.965.084 1.322-.35l2.689-2.683a.404.404 0 0 1 .294-.122c.116 0 .214.041.295.122l2.69 2.684c.245.274.552.417.92.428.139 0 .273-.026.401-.078.512-.23.741-.623.687-1.18V-.062l-9.985.05v.002Z",fill:"#fff"})),Xc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fillRule:"nonzero",fill:"none"},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#14b8ff"}),x.createElement("path",{d:"M23.312 9.5H8.687c-1.233 0-2 .767-2 2v9c0 1.233.767 2 2 2h14.625c1.234 0 2-.767 2-2v-9c0-1.233-.766-2-2-2zM8.56 11.25h14.882c.1.004.118.022.121.122v9.256c-.004.116-.029.122-.178.122H8.56c-.1-.004-.118-.022-.121-.122v-9.256c.003-.1.022-.118.121-.122z",fill:"#FFF"}),x.createElement("path",{d:"M18.123 13.887c.3-.325.79-.37 1.144-.123l.092.075 2.86 2.643c.355.329.377.882.049 1.237-.301.325-.791.37-1.144.123l-.093-.074-2.86-2.644c-.355-.328-.376-.882-.048-1.237zM12.64 13.839c.356-.328.91-.307 1.237.048.301.326.308.818.033 1.15l-.081.087-2.86 2.644c-.355.328-.908.306-1.237-.049-.3-.325-.307-.818-.033-1.15l.082-.087 2.86-2.643z",fill:"#FFF"}),x.createElement("path",{d:"M23.663 10.04c.398-.274.943-.174 1.217.224.252.364.189.853-.13 1.143l-.093.074-7.135 4.92c-.925.638-1.935.676-2.87.112l-.174-.112-7.135-4.92c-.398-.275-.498-.82-.223-1.217.251-.365.73-.48 1.114-.285l.103.061 7.135 4.92c.346.24.613.263.944.072l.113-.072 7.134-4.92z",fill:"#FFF"}))),qc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:32,height:32,rx:3,fill:"#FFB41F"}),x.createElement("g",{clipPath:"url(#clip0)",fill:"#fff"},x.createElement("path",{d:"M14.536 15.568l2.68 8.931a.83.83 0 001.382.349l1.365-1.365 3.522 3.522a.83.83 0 001.174 0l2.348-2.348a.83.83 0 000-1.174l-3.522-3.522L24.85 18.6a.829.829 0 00-.348-1.382l-8.932-2.68a.83.83 0 00-1.034 1.03z"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.86 4.255A11.25 11.25 0 0126.47 14.447a.75.75 0 01-1.496.106 9.75 9.75 0 10-10.421 10.42.75.75 0 01-.107 1.496 11.25 11.25 0 01-1.588-22.214z"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.305 8.785a6.75 6.75 0 018.203 3.934.75.75 0 11-1.39.562 5.25 5.25 0 10-6.837 6.835.75.75 0 11-.562 1.39 6.75 6.75 0 01.586-12.72z"})),x.createElement("clipPath",{id:"clip0"},x.createElement("path",{fill:"#fff",transform:"translate(4 4)",d:"M0 0h24v24H0z"}))),Qc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M30 0H2a2 2 0 00-2 2v28a2 2 0 002 2h28a2 2 0 002-2V2a2 2 0 00-2-2z",fill:"#30CF43"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.999 9.001c4.007-.06 7.962 2.737 10.366 5.425l.004.004a2.517 2.517 0 010 3.337l-.003.004c-2.349 2.628-6.294 5.49-10.367 5.428-4.073.061-8.018-2.8-10.365-5.429l-.003-.003a2.517 2.517 0 010-3.337l.003-.004C8.036 11.738 11.991 8.94 16 9.001h-.001zm-8.872 6.756a.517.517 0 000 .683c2.208 2.472 5.645 4.814 8.855 4.759h.034c3.209.055 6.647-2.287 8.857-4.759a.518.518 0 000-.683c-2.257-2.522-5.705-4.81-8.857-4.756h-.034c-3.152-.054-6.6 2.234-8.855 4.756z",fill:"#fff"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 18a2 2 0 100-4 2 2 0 000 4zm0 2a4 4 0 100-8 4 4 0 000 8z",fill:"#fff"})),ed=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M29 0H3C1.34315 0 0 1.34315 0 3V29C0 30.6569 1.34315 32 3 32H29C30.6569 32 32 30.6569 32 29V3C32 1.34315 30.6569 0 29 0Z",fill:"#FB2D8D"}),x.createElement("path",{d:"M13.5361 15.568L16.2161 24.499C16.2573 24.6366 16.3335 24.7612 16.4372 24.8605C16.541 24.9599 16.6688 25.0306 16.808 25.0658C16.9473 25.101 17.0933 25.0994 17.2318 25.0612C17.3703 25.023 17.4965 24.9496 17.5981 24.848L18.9631 23.483L22.4851 27.005C22.5622 27.0821 22.6537 27.1433 22.7544 27.185C22.8551 27.2267 22.9631 27.2482 23.0721 27.2482C23.1811 27.2482 23.2891 27.2267 23.3898 27.185C23.4905 27.1433 23.582 27.0821 23.6591 27.005L26.0071 24.657C26.0842 24.5799 26.1454 24.4884 26.1871 24.3877C26.2288 24.287 26.2503 24.179 26.2503 24.07C26.2503 23.961 26.2288 23.853 26.1871 23.7523C26.1454 23.6516 26.0842 23.5601 26.0071 23.483L22.4851 19.961L23.8501 18.6C23.952 18.4986 24.0257 18.3725 24.0641 18.234C24.1025 18.0955 24.1043 17.9494 24.0692 17.81C24.0341 17.6707 23.9634 17.5428 23.8639 17.439C23.7645 17.3352 23.6398 17.2591 23.5021 17.218L14.5701 14.538C14.4269 14.4952 14.2748 14.4918 14.1298 14.5282C13.9848 14.5647 13.8524 14.6396 13.7464 14.7451C13.6405 14.8506 13.5651 14.9828 13.5281 15.1276C13.491 15.2725 13.4938 15.4246 13.5361 15.568Z",fill:"white"}),x.createElement("path",{d:"M12.2871 23.75C12.7013 23.75 13.0371 23.4142 13.0371 23C13.0371 22.5858 12.7013 22.25 12.2871 22.25V23.75ZM25.75 17.2496C25.75 17.6638 26.0858 17.9996 26.5 17.9996C26.9142 17.9996 27.25 17.6638 27.25 17.2496H25.75ZM8.5 9.75H23.5V8.25H8.5V9.75ZM6.25 20V12H4.75V20H6.25ZM12.2871 22.25H10.75V23.75H12.2871V22.25ZM10.75 22.25H8.5V23.75H10.75V22.25ZM25.75 12V16H27.25V12H25.75ZM25.75 16V17.2496H27.25V16H25.75ZM4.75 20C4.75 22.0711 6.42893 23.75 8.5 23.75V22.25C7.25736 22.25 6.25 21.2426 6.25 20H4.75ZM23.5 9.75C24.7426 9.75 25.75 10.7574 25.75 12H27.25C27.25 9.92893 25.5711 8.25 23.5 8.25V9.75ZM8.5 8.25C6.42893 8.25 4.75 9.92893 4.75 12H6.25C6.25 10.7574 7.25736 9.75 8.5 9.75V8.25Z",fill:"white"})),td=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#14B8FF"}),x.createElement("g",{fill:"#fff"},x.createElement("path",{d:"M20 11.75a2.242 2.242 0 0 0-1.993-2.225 9.414 9.414 0 0 0-.257 2.225c-.003.749.083 1.496.257 2.224A2.243 2.243 0 0 0 20 11.75ZM13.75 18.433 9.41 17.05l1.973 4.856a1.746 1.746 0 0 0 3.367-.636c.003-.23-.04-.457-.126-.67l-.874-2.167Z"}),x.createElement("path",{d:"M19.25 5c-.27 0-.537.048-.79.139L7.046 8.778A2.864 2.864 0 0 0 5 11.75a2.857 2.857 0 0 0 2.025 2.965l11.437 3.646c.253.091.52.138.788.139 2.138 0 3.75-2.902 3.75-6.75S21.388 5 19.25 5Zm0 12C18.188 17 17 14.755 17 11.75s1.188-5.25 2.25-5.25 2.25 2.245 2.25 5.25S20.312 17 19.25 17Z"})),x.createElement("clipPath",null,x.createElement("path",{fill:"#fff",transform:"translate(5 5)",d:"M0 0h18v18H0z"}))),nd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M29 0H3C1.34315 0 0 1.34315 0 3V29C0 30.6569 1.34315 32 3 32H29C30.6569 32 32 30.6569 32 29V3C32 1.34315 30.6569 0 29 0Z",fill:"#FFB41F"}),x.createElement("path",{d:"M5.5 7.75H26.5",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M5.5 24.25H26.5",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M19 19.75V13.75C19 13.3522 19.158 12.9706 19.4393 12.6893C19.7206 12.408 20.1022 12.25 20.5 12.25H22",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M19 16.75H21.25",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M16 19.75V12.25",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M12.25 16.75H13V18.25C13 18.6478 12.842 19.0294 12.5607 19.3107C12.2794 19.592 11.8978 19.75 11.5 19.75C11.1022 19.75 10.7206 19.592 10.4393 19.3107C10.158 19.0294 10 18.6478 10 18.25V13.75C10 13.3522 10.158 12.9706 10.4393 12.6893C10.7206 12.408 11.1022 12.25 11.5 12.25H13",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),rd=t=>x.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#ffb41f"}),x.createElement("rect",{x:2,y:8,width:15,height:4,rx:1.5,fill:"white"}),x.createElement("rect",{x:2,y:15,width:24,height:2,rx:1,fill:"white"}),x.createElement("rect",{x:2,y:19,width:24,height:2,rx:1,fill:"white"}),x.createElement("path",{d:"M20 9L22.5 11.5L25 9",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),id=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#30CF43"}),x.createElement("path",{d:"M12.07 20.77a.998.998 0 0 1-1.445-.894v-6.752a.999.999 0 0 1 1.444-.894l6.754 3.377a.997.997 0 0 1 0 1.785L12.07 20.77Z",fill:"#fff",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("rect",{x:3,y:2,width:4,height:4,rx:1,fill:"#fff"}),x.createElement("rect",{x:9,y:2,width:4,height:4,rx:1,fill:"#fff"}),x.createElement("rect",{x:15,y:2,width:4,height:4,rx:1,fill:"#fff"}),x.createElement("rect",{x:21,y:2,width:4,height:4,rx:1,fill:"#fff"})),od=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#FB2D8D"}),x.createElement("path",{d:"M9 21c1.105 0 2-.933 2-2.084s-.895-2.084-2-2.084-2 .933-2 2.084C7 20.066 7.895 21 9 21ZM19 18.916c1.105 0 2-.933 2-2.084s-.895-2.084-2-2.084-2 .933-2 2.084c0 1.15.895 2.084 2 2.084Z",fill:"#fff",stroke:"#fff",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M21 16.834v-7.75c0-.317-.07-.63-.203-.914a2.07 2.07 0 0 0-.566-.729 1.965 1.965 0 0 0-.816-.396 1.922 1.922 0 0 0-.9.017l-6 1.042a1.995 1.995 0 0 0-1.091.74A2.14 2.14 0 0 0 11 10.124v8.792",stroke:"#fff",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),ld=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#14B8FF"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.229 6.653a2.625 2.625 0 0 0-2.882.605l-.01.01-6.761 6.761a4.312 4.312 0 1 0 6.098 6.099l8.233-8.234a.75.75 0 1 1 1.06 1.06l-8.232 8.234a5.812 5.812 0 1 1-8.22-8.22l6.758-6.757a4.124 4.124 0 1 1 5.833 5.833l-6.767 6.77a2.437 2.437 0 0 1-3.447-3.446l.01-.01 6.761-6.764a.75.75 0 1 1 1.061 1.06l-6.757 6.76a.937.937 0 0 0 1.326 1.325l6.765-6.769a2.626 2.626 0 0 0-.83-4.317Z",fill:"#fff"})),sd=t=>x.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#3BCD4C"}),x.createElement("path",{d:"M17.0141 11.3454C17.0775 11.3165 17.1182 11.2532 17.1182 11.1835C17.1182 11.1137 17.0775 11.0504 17.0141 11.0215L10.0678 7.85488C9.9758 7.814 9.87078 7.814 9.77877 7.85488L7.06135 9.03382C6.99572 9.06178 6.95312 9.12623 6.95312 9.19757C6.95312 9.2689 6.99572 9.33335 7.06135 9.36131L14.3871 12.414C14.4784 12.4523 14.5816 12.4508 14.6718 12.4098L17.0141 11.3454Z",fill:"white"}),x.createElement("path",{d:"M21.3502 9.37202C21.4141 9.34329 21.4552 9.27975 21.4552 9.2097C21.4552 9.13965 21.4141 9.07612 21.3502 9.04738L14.4716 6.05943C14.29 5.98019 14.0837 5.98019 13.9021 6.05943L11.6097 7.05613C11.5454 7.08468 11.5039 7.14844 11.5039 7.2188C11.5039 7.28917 11.5454 7.35293 11.6097 7.38148L18.5153 10.5296C18.609 10.5722 18.7165 10.5722 18.8101 10.5296L21.3502 9.37202Z",fill:"white"}),x.createElement("path",{d:"M6.24633 10.1777C6.19138 10.1549 6.12865 10.161 6.07916 10.194C6.02966 10.2271 5.99996 10.2827 6 10.3422V18.2773C5.99998 18.5646 6.17266 18.8238 6.43783 18.9344L13.76 21.9864C13.8149 22.0093 13.8777 22.0031 13.9271 21.9701C13.9766 21.937 14.0063 21.8815 14.0063 21.8219V13.5309C14.0062 13.459 13.963 13.3942 13.8967 13.3664L6.24633 10.1777Z",fill:"white"}),x.createElement("path",{d:"M15.0781 21.7899C15.0784 21.8502 15.1092 21.9063 15.1599 21.939C15.2105 21.9718 15.2743 21.9767 15.3294 21.9522L21.9582 18.9394C22.2122 18.8238 22.3753 18.5705 22.3754 18.2915V10.3578C22.3754 10.2973 22.3447 10.241 22.2939 10.2082C22.2431 10.1753 22.1791 10.1706 22.124 10.1955L15.1849 13.3507C15.1211 13.3792 15.0801 13.4425 15.0803 13.5124L15.0781 21.7899Z",fill:"white"})),ad=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M29.5 0H2.5C1.11929 0 0 1.11929 0 2.5V29.5C0 30.8807 1.11929 32 2.5 32H29.5C30.8807 32 32 30.8807 32 29.5V2.5C32 1.11929 30.8807 0 29.5 0Z",fill:"#FB2D8D"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 10C6 8.89543 6.89543 8 8 8H24C25.1046 8 26 8.89543 26 10V15C26 16.1046 25.1046 17 24 17H8C6.89543 17 6 16.1046 6 15V10ZM6 24C6 23.4477 6.44772 23 7 23H25C25.5523 23 26 23.4477 26 24C26 24.5523 25.5523 25 25 25H7C6.44772 25 6 24.5523 6 24ZM7 19C6.44772 19 6 19.4477 6 20C6 20.5523 6.44772 21 7 21H25C25.5523 21 26 20.5523 26 20C26 19.4477 25.5523 19 25 19H7Z",fill:"white"})),cd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M31.252 8.488c-.366-1.37-1.448-2.452-2.824-2.823C25.941 5 15.958 5 15.958 5s-9.977 0-12.47.665c-1.37.366-2.452 1.447-2.823 2.823C0 10.976 0 16.17 0 16.17s0 5.194.665 7.682c.366 1.372 1.447 2.453 2.823 2.823 2.493.666 12.47.666 12.47.666s9.983 0 12.47-.666c1.372-.365 2.453-1.447 2.824-2.823.665-2.488.665-7.682.665-7.682s0-5.194-.665-7.682",fill:"#D9252A"}),x.createElement("path",{fill:"#FFFFFE",d:"M12.77 20.958l8.291-4.788-8.291-4.788v9.576"}))),dd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M10.063 29.002c12.076 0 18.68-10.005 18.68-18.68 0-.285 0-.567-.019-.85C30.01 8.545 31.12 7.393 32 6.076c-1.198.53-2.47.879-3.77 1.032 1.37-.82 2.395-2.11 2.886-3.63-1.29.764-2.7 1.303-4.17 1.593-2.035-2.164-5.268-2.694-7.887-1.292-2.62 1.401-3.973 4.386-3.3 7.28-5.28-.265-10.198-2.758-13.532-6.86-1.742 3-.852 6.838 2.033 8.764-1.045-.03-2.067-.313-2.98-.822v.084c0 3.125 2.204 5.817 5.267 6.435-.966.264-1.98.303-2.964.113.86 2.675 3.325 4.507 6.133 4.56-2.324 1.827-5.196 2.818-8.153 2.815-.522 0-1.044-.032-1.563-.094 3.002 1.927 6.496 2.949 10.063 2.944",fill:"#1DA1F2",fillRule:"nonzero"})),Yr=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 122.43 122.41",...t},x.createElement("path",{d:"M83.86 54.15v34.13H38.57V54.15H0v68.26h122.43V54.15H83.86zM38.57 0h45.3v34.13h-45.3z"})),ud=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M31.886 25.508c0 3.522-2.855 6.377-6.377 6.377H6.377C2.857 31.885 0 29.03 0 25.508V6.378C0 2.854 2.857 0 6.377 0H25.51c3.522 0 6.377 2.855 6.377 6.377v19.131",fill:"#0FB7FF"}),x.createElement("path",{d:"M25.998 10.58c.175-.982.17-1.992-.436-2.755-.846-1.07-2.646-1.11-3.88-.921-1.003.153-4.397 1.651-5.552 5.236 2.046-.156 3.118.148 2.921 2.4-.082.943-.558 1.976-1.09 2.966-.614 1.141-1.765 3.382-3.274 1.767-1.36-1.454-1.257-4.235-1.568-6.086-.173-1.04-.356-2.334-.697-3.402-.293-.92-.966-2.027-1.788-2.267-.884-.26-1.976.146-2.618.523-2.042 1.2-3.598 2.908-5.365 4.317v.132c.35.335.444.884.96.959 1.216.179 2.375-1.134 3.184.232.492.834.645 1.749.96 2.648.42 1.198.746 2.503 1.09 3.88.583 2.334 1.299 5.82 3.316 6.675 1.029.437 2.575-.148 3.358-.612 2.122-1.255 3.775-3.075 5.19-4.927 3.234-4.382 5.019-9.347 5.289-10.765",fill:"#FFFFFE"}))),gd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M31.976 10.886c-.007-.039-.014-.078-.024-.116l-.022-.066c-.01-.034-.022-.068-.035-.1l-.03-.067c-.015-.031-.03-.062-.048-.092-.012-.022-.026-.042-.039-.063-.018-.029-.037-.057-.058-.084-.015-.02-.03-.04-.047-.059-.022-.026-.045-.05-.068-.075l-.055-.053c-.025-.023-.051-.045-.078-.065-.021-.016-.041-.033-.063-.047-.008-.006-.014-.013-.023-.018L16.762.231c-.461-.308-1.063-.308-1.525 0L.612 9.981l-.022.017c-.022.015-.042.031-.063.047-.027.021-.053.043-.078.065-.019.017-.037.035-.055.054-.024.024-.046.048-.068.074-.017.02-.032.039-.047.06-.02.028-.04.055-.058.084l-.04.064c-.017.03-.032.06-.046.09-.01.022-.022.045-.03.067-.014.033-.026.067-.036.1l-.022.065c-.01.038-.017.076-.024.115-.004.02-.008.04-.01.06-.009.06-.013.119-.013.18v9.751c0 .06.004.121.013.18.003.022.009.039.013.06.007.038.013.077.026.116l.021.067c.011.034.022.069.035.1.009.022.021.043.03.065.014.03.03.06.047.092.012.021.026.043.04.062.018.03.038.056.06.082.014.022.03.04.047.06.022.026.043.051.069.074.017.018.034.04.056.052l.077.066c.021.017.043.03.06.046.009.005.014.013.022.017l14.621 9.755c.231.155.496.233.763.232.267-.002.532-.078.763-.232l14.625-9.75.022-.016c.022-.015.042-.031.063-.047.027-.021.053-.043.078-.066l.055-.053c.024-.024.047-.049.068-.075.017-.02.032-.039.047-.06.02-.026.04-.054.058-.083.014-.02.027-.042.04-.063.017-.03.032-.06.047-.092l.03-.066c.014-.033.025-.067.035-.1.008-.023.016-.045.022-.067.01-.038.017-.077.024-.116.004-.02.009-.039.01-.06.009-.059.013-.118.013-.179v-9.75c0-.06-.005-.12-.012-.18-.004-.02-.01-.038-.014-.06h.002zM16 19.253L11.137 16 16 12.747 20.863 16 16 19.253zm-1.375-8.895l-5.962 3.988-4.812-3.22 10.774-7.182v6.414zM6.19 16l-3.44 2.3V13.7l3.44 2.3zm2.473 1.655l5.962 3.987v6.414L3.85 20.873l4.812-3.219v.001zm8.712 3.986l5.961-3.987 4.813 3.22-10.774 7.181v-6.414zm8.434-5.64l3.44-2.302v4.602L25.81 16zm-2.473-1.655l-5.961-3.987V3.944l10.774 7.183-4.813 3.219z",fill:"#000",fillRule:"nonzero"})),hd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M16 .053C7.19.053.047 7.194.047 16.003c0 8.81 7.142 15.951 15.951 15.951 8.81 0 15.951-7.14 15.951-15.95C31.95 7.194 24.81.054 16 .054V.053zm7.314 23.005c-.285.469-.899.618-1.367.33-3.745-2.288-8.46-2.806-14.013-1.537-.535.122-1.068-.213-1.19-.749-.122-.535.212-1.068.748-1.19 6.076-1.389 11.288-.79 15.493 1.779.468.287.617.899.33 1.367zm1.953-4.343c-.36.585-1.126.77-1.71.41-4.288-2.636-10.824-3.4-15.896-1.86-.657.199-1.352-.172-1.552-.828-.198-.658.173-1.351.83-1.551 5.793-1.758 12.994-.907 17.918 2.12.585.36.77 1.125.41 1.709zm.167-4.523c-5.14-3.054-13.623-3.334-18.531-1.845-.788.24-1.622-.205-1.86-.994-.24-.788.205-1.621.994-1.86 5.634-1.711 15.001-1.38 20.92 2.133.71.42.943 1.336.522 2.044-.42.71-1.337.943-2.044.522z",fill:"#1ED760",fillRule:"nonzero"})),fd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M15.924 9.922c-.236 0-.43.194-.434.433l-.177 8.866.178 3.218c.003.235.197.43.433.43s.43-.195.433-.433v.004l.193-3.219-.193-8.867c-.003-.238-.197-.432-.433-.432zm12.14 5.102c-.54 0-1.054.11-1.522.306C26.228 11.783 23.254 9 19.625 9c-.887 0-1.753.175-2.517.47-.298.115-.377.234-.38.463v12.492c.004.242.19.442.426.466l10.91.006c2.174 0 3.936-1.762 3.936-3.936s-1.762-3.937-3.936-3.937zM10.886 22.56v-.002l.226-3.338-.226-7.276c-.006-.181-.148-.323-.325-.323-.176 0-.319.142-.324.323l-.202 7.276.202 3.34c.005.178.148.32.324.32.177 0 .318-.142.325-.321v.001zm-2.952.32c.144 0 .262-.117.27-.267l.264-3.394-.265-6.497c-.007-.15-.125-.267-.27-.267-.144 0-.263.117-.269.267l-.234 6.497.234 3.395c.006.149.125.266.27.266zm5.297-10.868c-.209 0-.375.166-.38.377l-.169 6.832.17 3.287c.004.21.17.375.379.375.207 0 .373-.166.378-.377v.002l.19-3.287-.19-6.832c-.005-.211-.17-.377-.378-.377zM2.802 22.657c.083 0 .15-.066.16-.156l.34-3.286-.34-3.41c-.01-.091-.077-.157-.16-.157-.084 0-.152.066-.16.157l-.299 3.41.299 3.285c.008.091.076.157.16.157zm2.546.188c.113 0 .206-.092.214-.212l.302-3.418-.302-3.25c-.008-.12-.1-.211-.214-.211-.116 0-.208.09-.216.212l-.266 3.25.266 3.417c.008.12.1.212.216.212zm6.543.03c.191 0 .346-.154.351-.35v.003l.209-3.309-.209-7.09c-.005-.196-.16-.35-.351-.35-.193 0-.348.154-.352.35l-.185 7.09.185 3.308c.004.194.159.348.352.348zm2.69.013c.22 0 .401-.181.405-.404v.002-.002l.172-3.263-.172-8.13c-.004-.223-.186-.405-.406-.405-.22 0-.403.182-.406.405l-.153 8.127.153 3.268c.003.22.186.402.406.402zm-5.338-.016c.16 0 .29-.129.296-.294l.246-3.36-.246-7.039c-.006-.165-.137-.294-.296-.294-.162 0-.292.13-.297.295l-.218 7.038.218 3.361c.005.164.135.293.297.293zM4.07 15.527c-.1 0-.18.08-.188.185L3.6 19.215l.282 3.39c.008.104.089.184.188.184.098 0 .178-.08.187-.184l.32-3.39-.32-3.504c-.009-.104-.09-.184-.187-.184zm2.565-1.837c-.129 0-.235.105-.242.24l-.25 5.287.25 3.417c.007.133.113.239.242.239s.235-.106.243-.24v.001l.283-3.417-.283-5.288c-.008-.134-.114-.24-.243-.24zm-4.957 2.65c-.01-.076-.066-.129-.133-.129-.068 0-.124.055-.133.13l-.315 2.873.315 2.81c.01.076.065.13.133.13.067 0 .122-.053.133-.129l.358-2.81-.358-2.874zm-1.316.972c-.067 0-.12.052-.128.125L0 19.214l.234 1.747c.009.074.061.125.128.125.065 0 .117-.05.128-.124l.277-1.748-.277-1.778c-.01-.073-.063-.124-.128-.124z",fill:"#EE7C25",fillRule:"evenodd"})),pd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M32 16C32 24.8361 24.8361 32 16 32C7.16394 32 0 24.8361 0 16C0 7.16394 7.16394 0 16 0C24.8379 0 32 7.16394 32 16Z",fill:"#2081E2"}),x.createElement("path",{d:"M7.89371 16.5376L7.96274 16.4291L12.125 9.91784C12.1858 9.82251 12.3288 9.83236 12.3748 9.93592C13.0702 11.4943 13.6702 13.4324 13.3891 14.639C13.2691 15.1354 12.9403 15.8078 12.5704 16.4291C12.5228 16.5196 12.4702 16.6083 12.4143 16.6938C12.388 16.7333 12.3436 16.7563 12.2959 16.7563H8.01534C7.90027 16.7563 7.83288 16.6313 7.89371 16.5376Z",fill:"white"}),x.createElement("path",{d:"M26.4461 17.7475V18.7782C26.4461 18.8374 26.4099 18.89 26.3573 18.913C26.0351 19.0511 24.9321 19.5574 24.4734 20.1952C23.303 21.8242 22.4088 24.1536 20.4098 24.1536H12.0706C9.11495 24.1536 6.71985 21.7503 6.71985 18.7848V18.6894C6.71985 18.6105 6.78394 18.5464 6.86286 18.5464H11.5117C11.6037 18.5464 11.6711 18.6319 11.6629 18.7223C11.63 19.0248 11.6859 19.3338 11.8289 19.6149C12.1051 20.1755 12.6772 20.5256 13.2952 20.5256H15.5966V18.7289H13.3215C13.2048 18.7289 13.1358 18.5941 13.2032 18.4987C13.2278 18.4609 13.2558 18.4215 13.2854 18.3771C13.5007 18.0714 13.8081 17.5963 14.1139 17.0555C14.3227 16.6905 14.5248 16.3009 14.6876 15.9097C14.7205 15.839 14.7468 15.7666 14.7731 15.696C14.8174 15.571 14.8635 15.4543 14.8964 15.3376C14.9293 15.239 14.9555 15.1354 14.9818 15.0384C15.0591 14.7064 15.092 14.3546 15.092 13.9897C15.092 13.8467 15.0854 13.697 15.0723 13.554C15.0657 13.3979 15.046 13.2417 15.0262 13.0855C15.0131 12.9474 14.9884 12.811 14.9621 12.668C14.9293 12.4592 14.8832 12.2521 14.8306 12.0433L14.8125 11.9644C14.7731 11.8214 14.7402 11.685 14.6942 11.542C14.5643 11.0932 14.4147 10.6559 14.2569 10.2466C14.1994 10.0839 14.1336 9.92771 14.0678 9.77155C13.9709 9.53647 13.8722 9.32278 13.7818 9.12057C13.7358 9.02851 13.6964 8.94467 13.6569 8.85919C13.6125 8.7622 13.5665 8.66521 13.5205 8.57318C13.4876 8.50249 13.4498 8.43673 13.4235 8.37097L13.1424 7.85151C13.1029 7.78083 13.1687 7.69699 13.2459 7.71836L15.0049 8.19507H15.0098C15.0131 8.19507 15.0147 8.19673 15.0164 8.19673L15.2481 8.26083L15.503 8.33318L15.5966 8.35945V7.31398C15.5966 6.80931 16.001 6.39999 16.5008 6.39999C16.7506 6.39999 16.9775 6.50191 17.1402 6.66793C17.303 6.83398 17.4049 7.06083 17.4049 7.31398V8.86579L17.5923 8.91836C17.6071 8.92332 17.6219 8.92988 17.635 8.93974C17.6811 8.97427 17.7468 9.02521 17.8306 9.08771C17.8964 9.14028 17.9671 9.20441 18.0526 9.27017C18.2219 9.40659 18.4241 9.58249 18.646 9.7847C18.7052 9.83564 18.7627 9.88825 18.8153 9.94086C19.1014 10.2072 19.4219 10.5195 19.7277 10.8647C19.8131 10.9617 19.897 11.0603 19.9824 11.1639C20.0679 11.2691 20.1583 11.3726 20.2372 11.4762C20.3408 11.6143 20.4526 11.7573 20.5496 11.9069C20.5956 11.9776 20.6482 12.0499 20.6926 12.1206C20.8175 12.3096 20.9277 12.5053 21.0329 12.7009C21.0773 12.7913 21.1233 12.8899 21.1627 12.9869C21.2794 13.2483 21.3715 13.5146 21.4307 13.7809C21.4487 13.8384 21.4619 13.9009 21.4685 13.9568V13.9699C21.4882 14.0488 21.4948 14.1327 21.5014 14.2181C21.5277 14.491 21.5145 14.7639 21.4553 15.0384C21.4307 15.1552 21.3978 15.2653 21.3583 15.382C21.3189 15.4938 21.2794 15.6105 21.2285 15.7206C21.1299 15.9491 21.0131 16.1776 20.875 16.3913C20.8307 16.4702 20.7781 16.5541 20.7254 16.633C20.6679 16.7168 20.6087 16.7957 20.5561 16.873C20.4838 16.9716 20.4066 17.0752 20.3277 17.1672C20.257 17.2642 20.1846 17.3612 20.1057 17.4467C19.9956 17.5765 19.8904 17.6998 19.7802 17.8182C19.7145 17.8954 19.6438 17.9744 19.5715 18.045C19.5008 18.1239 19.4285 18.1946 19.3627 18.2604C19.2526 18.3705 19.1605 18.456 19.0832 18.5267L18.9024 18.6927C18.8761 18.7157 18.8416 18.7289 18.8054 18.7289H17.4049V20.5256H19.1671C19.5616 20.5256 19.9364 20.3859 20.2389 20.1294C20.3424 20.039 20.7945 19.6478 21.3287 19.0577C21.3468 19.0379 21.3699 19.0231 21.3962 19.0166L26.2636 17.6094C26.354 17.5831 26.4461 17.6522 26.4461 17.7475Z",fill:"white"})),md=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"#fb2d8d",width:32,height:32,rx:2.5}),x.createElement("path",{d:"M12 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2zM18 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2zM24 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2z",fill:"#FFF"}))),xd=t=>x.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{"data-selector":"bg",d:"M2 24h13l9-9V2a2 2 0 00-2-2H2a2 2 0 00-2 2v20a2 2 0 002 2z",fill:"#F0F6F9"}),x.createElement("rect",{"data-selector":"block",x:5.25,y:4.5,width:13.5,height:4.5,rx:1,fill:"#738A94"}),x.createElement("path",{"data-selector":"fold",d:"M15 16v8l9-9h-8a1 1 0 00-1 1z",fill:"#DAE8F1"}),x.createElement("rect",{"data-selector":"line",x:5.25,y:11.25,width:8.25,height:1.5,rx:.75,fill:"#738A94"})),Vr=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...t},x.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",stroke:"currentColor",strokeLinejoin:"round",className:"nc-icon-wrapper"},x.createElement("circle",{cx:18,cy:16,r:4}),x.createElement("path",{"data-cap":"butt",d:"M20.849 33.164 33 20l13 13M2 38l12-11 10 9"}),x.createElement("path",{d:"M2 6h44v36H2z"}))),_d=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...t},x.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",stroke:"currentColor",strokeLinejoin:"round",className:"nc-icon-wrapper"},x.createElement("path",{d:"M3 9h42v36H3zm7-6h28"}),x.createElement("path",{d:"m10 38 7-10 5 4 8-11 9 17H10z"}),x.createElement("circle",{cx:17,cy:19,r:3})));var Lo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vd(t){var e=t.default;if(typeof e=="function"){var n=function(){return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var Xn={exports:{}},qn={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
5
5
  *
@@ -7,49 +7,49 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var nd=S.default,rd=Symbol.for("react.element"),id=Symbol.for("react.fragment"),od=Object.prototype.hasOwnProperty,ld=nd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sd={key:!0,ref:!0,__self:!0,__source:!0};function To(t,e,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(l=e.ref);for(r in e)od.call(e,r)&&!sd.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:rd,type:t,key:o,ref:l,props:i,_owner:ld.current}}Wn.Fragment=id,Wn.jsx=To,Wn.jsxs=To,function(t){t.exports=Wn}(Kn);const Xt=Kn.exports.Fragment,f=Kn.exports.jsx,V=Kn.exports.jsxs,ad=Object.freeze(Object.defineProperty({__proto__:null,Fragment:Xt,jsx:f,jsxs:V},Symbol.toStringTag,{value:"Module"})),cd=()=>{return V("div",{className:"koenig-lexical",children:[f(t,{label:"Text toolbar"}),f(e,{}),f(t,{label:"Image toolbar"}),f(n,{}),f(t,{label:"Gallery toolbar"}),f(r,{}),f(t,{label:"Plus menu"}),f(l,{}),f(t,{label:"Card menu"}),f(s,{}),f(t,{label:"Divider card"}),f("div",{className:"relative max-w-[740px]",children:f(u,{})}),f(t,{label:"Code block"}),f("div",{className:"relative max-w-[740px]",children:f(g,{})}),f(t,{label:"Image card"}),f("div",{className:"relative max-w-[740px]",children:f(m,{})}),f(t,{label:"Gallery card"}),f("div",{className:"relative max-w-[1172px]",children:f(C,{})})]});function t({label:N}){return f("h3",{className:"mb-4 mt-20 text-xl font-bold first-of-type:mt-8",children:N})}function e(){return f("div",{className:"max-w-fit",children:V("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[f(i,{label:"Format text as bold",Icon:go}),f(i,{label:"Format text as italics",Icon:fo}),f(i,{label:"Toggle heading 1",Icon:ho}),f(i,{label:"Toggle heading 2",Icon:po}),f(o,{}),f(i,{label:"Toggle blockquote",Icon:mo}),f(i,{label:"Insert link",Icon:Br}),f(o,{}),f(i,{label:"Save as snippet",Icon:Hn})]})})}function n(){return f("div",{className:"max-w-fit",children:V("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[f(i,{label:"Set image to regular",Icon:xo}),f(i,{label:"Set image to wide",Icon:_o}),f(i,{label:"Set image to full",Icon:vo}),f(o,{}),f(i,{label:"Insert link",Icon:Br}),f(i,{label:"Replace image",Icon:wo}),f(o,{}),f(i,{label:"Save as snippet",Icon:Hn})]})})}function r(){return f("div",{className:"max-w-fit",children:V("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[f(i,{label:"Add image",Icon:yo}),f(o,{}),f(i,{label:"Save as snippet",Icon:Hn})]})})}function i({label:N,Icon:p,...x}){return f("li",{className:"m-0 flex p-0 first:m-0",...x,children:f("div",{type:"button",className:"flex h-9 w-9 items-center justify-center",children:f(p,{className:"fill-white"})})})}function o(){return f("li",{className:"m-0 mx-1 h-5 w-px bg-grey-900"})}function l(){return f("button",{type:"button","aria-label":"Add a card",className:"group relative flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border border-grey bg-white transition-all ease-linear hover:border-grey-900 md:h-9 md:w-9",children:f(ko,{className:"h-4 w-4 stroke-grey-800 stroke-2 group-hover:stroke-grey-900"})})}function s(){return V("div",{className:"z-[9999999] m-0 mb-3 max-h-[376px] w-[312px] flex-col overflow-y-auto rounded-lg bg-white bg-clip-padding p-0 pt-0 text-sm shadow",children:[f(a,{label:"Primary"}),f(c,{label:"Image",desc:"Upload, or embed with /image [url]",Icon:Co}),f(c,{label:"Markdown",desc:"Insert a Markdown editor card",Icon:bc}),f(c,{label:"HTML",desc:"Insert a raw HTML card",Icon:Oc}),f(c,{label:"Gallery",desc:"Create an image gallery",Icon:Rc}),f(c,{label:"Divider",desc:"Insert a dividing line",Icon:Eo}),f(c,{label:"Bookmark",desc:"Embed a link as a visual bookmark",Icon:$c}),f(c,{label:"Email content",desc:"Only visible when delivered by email",Icon:Ac}),f(c,{label:"Email call to action",desc:"Target free or paid members with a CTA",Icon:Mc}),f(c,{label:"Public preview",desc:"Attract signups with a public intro",Icon:Lc}),f(c,{label:"Button",desc:"Add a button to your post",Icon:Dc}),f(c,{label:"Callout",desc:"Info boxes that stand out",Icon:Ic}),f(c,{label:"GIF",desc:"Search and embed gifs",Icon:Pc}),f(c,{label:"Toggle",desc:"Add collapsible content",Icon:Fc}),f(c,{label:"Video",desc:"Upload and play a video",Icon:zc}),f(c,{label:"Audio",desc:"Upload and play an audio file",Icon:Bc}),f(c,{label:"File",desc:"Upload a downloadable file",Icon:Hc}),f(c,{label:"Product",desc:"Add a product recommendation",Icon:Kc}),f(c,{label:"Header",desc:"Add a bold section header",Icon:Wc}),f(a,{label:"Embed"}),f(c,{label:"YouTube",desc:"/youtube [video url]",Icon:Uc}),f(c,{label:"Twitter",desc:"/twitter [tweet url]",Icon:Yc}),f(c,{label:"Unsplash",desc:"/unsplash [search-term or url]",Icon:Vc}),f(c,{label:"Vimeo",desc:"/vimeo [video url]",Icon:jc}),f(c,{label:"CodePen",desc:"/codepen [pen url]",Icon:Gc}),f(c,{label:"Spotify",desc:"/spotify [track or playlist url]",Icon:Zc}),f(c,{label:"SoundCloud",desc:"/soundcloud [track or playlist url]",Icon:Jc}),f(c,{label:"NFT",desc:"/nft [opensea url]",Icon:Xc}),f(c,{label:"Other...",desc:"/embed [url]",Icon:Qc}),f(a,{label:"Snippets"}),f(d,{label:"A random snippet",Icon:qc})]})}function a({label:N,...p}){return f("div",{className:"mb-2 flex shrink-0 flex-col justify-center px-4 pt-3 text-xs font-medium uppercase tracking-[.06rem] text-grey",style:{minWidth:"calc(100% - 3.2rem)"},...p,children:N})}function c({label:N,desc:p,Icon:x,...T}){return V("div",{className:"flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",...T,children:[f("div",{className:"flex items-center",children:f(x,{className:"h-7 w-7"})}),V("div",{className:"flex flex-col",children:[f("div",{className:"m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900",children:N}),f("div",{className:"m-0 ml-4 truncate text-xs font-normal leading-[1.333em] tracking-[.02rem] text-grey",children:p})]})]})}function d({label:N,Icon:p,...x}){return V("div",{className:"flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",...x,children:[f("div",{className:"flex items-center",children:f(p,{className:"h-7 w-7"})}),f("div",{className:"flex flex-col",children:f("div",{className:"m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900",children:N})})]})}function u(){return f("div",{children:f("hr",{className:"block h-[1px] border-0 border-t border-grey-300"})})}function g(){return V("div",{className:"border-2 border-green",children:[f("div",{className:"rounded bg-grey-50 px-3 py-2",children:f("textarea",{className:"w-full resize-none bg-grey-50 font-mono text-[1.7rem]"})}),f(v,{placeholder:"Type caption for code block (optional)"})]})}function m(){const[N,p]=te.useState(!1),[x,T]=te.useState(!1),E=()=>{p(!N)},k=O=>{O.stopPropagation(),T(!x)};return N?V("div",{className:`border border-transparent ${N?"shadow-[0_0_0_2px_#30cf43]":"hover:shadow-[0_0_0_1px_#30cf43]"}`,onClick:E,children:[f(h,{desc:"Click to select an image",Icon:Hr}),f(v,{placeholder:"Type caption for image (optional)"}),f("button",{className:`absolute bottom-0 right-0 m-3 cursor-pointer rounded border px-1 text-[1.3rem] font-normal leading-7 tracking-wide transition-all duration-100 ${x?"border-green bg-green text-white":"border-grey text-grey"} `,onClick:O=>k(O),children:"Alt"})]}):f("div",{className:`border border-transparent ${N?"shadow-[0_0_0_2px_#30cf43]":"hover:shadow-[0_0_0_1px_#30cf43]"}`,onClick:E,children:f(h,{desc:"Click to select an image",Icon:Hr})})}function h({desc:N,Icon:p,...x}){return V("div",{className:"relative",children:[f("figure",{className:"cursor-pointer border border-transparent",...x,children:f("div",{className:"h-100 relative flex items-center justify-center border border-grey-100 bg-grey-50 before:pb-[62.5%]",children:V("button",{className:"group flex flex-col items-center justify-center p-20",children:[f(p,{className:"h-32 w-32 opacity-80 transition-all ease-linear group-hover:scale-105 group-hover:opacity-100"}),f("p",{className:"mt-4 text-sm font-normal text-grey-700 group-hover:text-grey-800",children:N})]})})}),f("form",{children:f("input",{type:"file",accept:"image/*",name:"image",hidden:!0})})]})}function v({placeholder:N}){return f("input",{className:"not-kg-prose w-full p-2 text-center font-sans text-sm font-normal tracking-wide text-grey-900",placeholder:N})}function C(){return V("div",{className:"border-2 border-green",children:[f(h,{desc:"Click to select up to 9 images",Icon:ed}),f(v,{placeholder:"Type caption for gallery (optional)"})]})}};var So={},Un={},bo=S.default;let Oo=bo.createContext(null);Un.LexicalComposerContext=Oo,Un.createLexicalComposerContext=function(t,e){let n=null;return t!=null&&(n=t[1]),{getTheme:function(){return e!=null?e:n!=null?n.getTheme():null}}},Un.useLexicalComposerContext=function(){let t=bo.useContext(Oo);if(t==null)throw Error("Minified Lexical error #8; visit https://lexical.dev/docs/error?code=8 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return t};var ge=Un,b={};let Ro={},$o={},Qt={},qt={},Kr={},St={},Wr={},Ur={},en={},tn={},it={},Yr={},Vr={},Ao={},Mo={},Lo={},Do={},Io={},Po={},Yn={},Fo={},zo={},Bo={},Ho={},Ko={},Wo={},Uo={},Yo={},Vo={},jr={},Gr={},jo={},Go={},Zo={};function M(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let Ee=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dd=Ee&&"documentMode"in document?document.documentMode:null,be=Ee&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ht=Ee&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ud=Ee&&"InputEvent"in window&&!dd?"getTargetRanges"in new window.InputEvent("input"):!1,Vn=Ee&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),jn=Ee&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Gn=Vn||jn?"\xA0":"\u200B",gd=ht?"\xA0":Gn,fd=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,hd=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,pt={bold:1,code:16,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},pd={directionless:1,unmergeable:2},Jo={center:2,justify:4,left:1,right:3},md={2:"center",4:"justify",1:"left",3:"right"},xd={normal:0,segmented:2,token:1},_d={0:"normal",2:"segmented",1:"token"},Zr=!1,Jr=0;function vd(t){Jr=t.timeStamp}function Xr(t,e,n){return e.__lexicalLineBreak===t||t[`__lexicalKey_${n._key}`]!==void 0}function wd(t){return t.getEditorState().read(()=>{let e=G();return e!==null?e.clone():null})}function Xo(t,e,n){Zr=!0;let r=100<performance.now()-Jr;try{Re(t,()=>{let i=G()||wd(t);var o=new Map,l=t.getRootElement(),s=t._editorState;let a=!1,c="";for(var d=0;d<e.length;d++){var u=e[d],g=u.type,m=u.target,h=nn(m,s);if(!(h===null&&m!==l||ne(h))){if(g==="characterData"){if(u=r&&L(h))e:{u=i,g=m;var v=h;if(B(u)){var C=u.anchor.getNode();if(C.is(v)&&u.format!==C.getFormat()){u=!1;break e}}u=g.nodeType===3&&v.isAttached()}u&&(v=Ee?window.getSelection():null,g=u=null,v!==null&&v.anchorNode===m&&(u=v.anchorOffset,g=v.focusOffset),m=m.nodeValue,m!==null&&ei(h,m,u,g,!1))}else if(g==="childList"){for(a=!0,g=u.addedNodes,v=0;v<g.length;v++){C=g[v];var N=rl(C),p=C.parentNode;p==null||N!==null||C.nodeName==="BR"&&Xr(C,p,t)||(ht&&(N=C.innerText||C.nodeValue)&&(c+=N),p.removeChild(C))}if(u=u.removedNodes,g=u.length,0<g){for(v=0,C=0;C<g;C++)p=u[C],p.nodeName==="BR"&&Xr(p,m,t)&&(m.appendChild(p),v++);g!==v&&(m===l&&(h=s._nodeMap.get("root")),o.set(m,h))}}}}if(0<o.size)for(let[x,T]of o)if(R(T))for(o=T.__children,l=x.firstChild,s=0;s<o.length;s++)d=t.getElementByKey(o[s]),d!==null&&(l==null?(x.appendChild(d),l=d):l!==d&&x.replaceChild(d,l),l=l.nextSibling);else L(T)&&T.markDirty();if(o=n.takeRecords(),0<o.length){for(l=0;l<o.length;l++)for(d=o[l],s=d.addedNodes,d=d.target,h=0;h<s.length;h++)m=s[h],u=m.parentNode,u==null||m.nodeName!=="BR"||Xr(m,d,t)||u.removeChild(m);n.takeRecords()}i!==null&&(a&&(i.dirty=!0,Rt(i)),ht&&gl(t)&&i.insertRawText(c))})}finally{Zr=!1}}function Qo(t){let e=t._observer;if(e!==null){let n=e.takeRecords();Xo(t,n,e)}}function qo(t){Jr===0&&er(t).addEventListener("textInput",vd,!0),t._observer=new MutationObserver((e,n)=>{Xo(t,e,n)})}let yd=1,kd=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function Zn(t,e,n){let r=t.getRootElement();try{var i;if(i=r!==null&&r.contains(e)&&r.contains(n)&&e!==null){let o=document.activeElement,l=o!==null?o.nodeName:null;i=!ne(nn(e))||l!=="INPUT"&&l!=="TEXTAREA"}return i&&el(e)===t}catch{return!1}}function el(t){for(;t!=null;){let e=t.__lexicalEditor;if(e!=null)return e;t=t.parentNode}return null}function Qr(t){return t.isToken()||t.isSegmented()}function Jn(t){for(;t!=null;){if(t.nodeType===3)return t;t=t.firstChild}return null}function tl(t,e,n){return e=pt[e],t&e&&(n===null||(n&e)===0)?t^e:n===null||n&e?t|e:t}function nl(t){return L(t)||vn(t)||ne(t)}function Xn(t){var e=t.getParent();if(e!==null){e=e.getWritable().__children;let n=e.indexOf(t.__key);n===-1&&M(31),Ot(t),e.splice(n,1)}}function bt(t){99<mn&&M(14);var e=t.getLatest(),n=e.__parent,r=Ue();let i=se(),o=r._nodeMap;if(r=i._dirtyElements,n!==null)e:for(;n!==null;){if(r.has(n))break e;let l=o.get(n);if(l===void 0)break;r.set(n,!1),n=l.__parent}e=e.__key,i._dirtyType=1,R(t)?r.set(e,!0):i._dirtyLeaves.add(e)}function Ot(t){let e=t.getPreviousSibling();t=t.getNextSibling(),e!==null&&bt(e),t!==null&&bt(t)}function pe(t){Oe();var e=se();let n=e._compositionKey;t!==n&&(e._compositionKey=t,n!==null&&(e=J(n),e!==null&&e.getWritable()),t!==null&&(t=J(t),t!==null&&t.getWritable()))}function ot(){return le?null:se()._compositionKey}function J(t,e){return t=(e||Ue())._nodeMap.get(t),t===void 0?null:t}function rl(t,e){let n=se();return t=t[`__lexicalKey_${n._key}`],t!==void 0?J(t,e):null}function nn(t,e){for(;t!=null;){let n=rl(t,e);if(n!==null)return n;t=t.parentNode}return null}function il(t){let e=Object.assign({},t._decorators);return t._pendingDecorators=e}function ol(t){return t.read(()=>lt().getTextContent())}function Cd(t,e){Re(t,()=>{var n=Ue();if(!n.isEmpty())if(e==="root")lt().markDirty();else{n=n._nodeMap;for(let[,r]of n)r.markDirty()}},t._pendingEditorState===null?{tag:"history-merge"}:void 0)}function lt(){return Ue()._nodeMap.get("root")}function Rt(t){let e=Ue();t!==null&&(t.dirty=!0,t._cachedNodes=null),e._selection=t}function $t(t){var e=se(),n;e:{for(n=t;n!=null;){let r=n[`__lexicalKey_${e._key}`];if(r!==void 0){n=r;break e}n=n.parentNode}n=null}return n===null?(e=e.getRootElement(),t===e?J("root"):null):J(n)}function ll(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function qr(t){let e=[];for(;t!==null;)e.push(t),t=t._parentEditor;return e}function sl(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function al(t,e){var n=Ee?window.getSelection():null;if(n!==null){var r=n.anchorNode,{anchorOffset:i,focusOffset:o}=n;if(r!==null&&r.nodeType===3&&(n=nn(r),L(n))){if(r=r.nodeValue,r===Gn&&e){let l=e.length;r=e,o=i=l}r!==null&&ei(n,r,i,o,t)}}}function ei(t,e,n,r,i){let o=t;if(o.isAttached()&&(i||!o.isDirty())){var l=o.isComposing();if(t=e,(l||i)&&e[e.length-1]===Gn&&(t=e.slice(0,-1)),e=o.getTextContent(),i||t!==e)if(t==="")if(pe(null),Vn||jn)o.remove();else{let s=se();setTimeout(()=>{s.update(()=>{o.isAttached()&&o.remove()})},20)}else i=o.getParent(),e=pn(),o.isToken()||ot()!==null&&!l||i!==null&&B(e)&&!i.canInsertTextBefore()&&e.anchor.offset===0?o.markDirty():(l=G(),B(l)&&n!==null&&r!==null&&(l.setTextNodeRange(o,n,o,r),o.isSegmented()&&(n=o.getTextContent(),n=me(n),o.replace(n),o=n)),o.setTextContent(t))}}function Ed(t,e){if(e.isSegmented())return!0;if(!t.isCollapsed())return!1;t=t.anchor.offset;let n=e.getParentOrThrow(),r=e.isToken();return t===0?((t=!e.canInsertTextBefore()||!n.canInsertTextBefore()||r)||(e=e.getPreviousSibling(),t=(L(e)||R(e)&&e.isInline())&&!e.canInsertTextAfter()),t):t===e.getTextContentSize()?!e.canInsertTextAfter()||!n.canInsertTextAfter()||r:!1}function cl(t,e){let n=t.anchor,r=t.focus,i=n.getNode();var o=Ee?window.getSelection():null;o=o!==null?o.anchorNode:null;let l=n.key,s=se().getElementByKey(l),a=e.length;return l!==r.key||!L(i)||(2>a||ll(e))&&n.offset!==r.offset&&!i.isComposing()||Qr(i)||i.isDirty()&&1<a||s!==null&&!i.isComposing()&&o!==Jn(s)||i.getFormat()!==t.format||Ed(t,i)}function rn(t,e){var n=t[e];return typeof n=="string"?(n=n.split(" "),t[e]=n):n}function ti(t,e,n,r,i){n.size!==0&&(n=r.__key,e=e.get(r.__type),e===void 0&&M(33),e=e.klass,r=t.get(e),r===void 0&&(r=new Map,t.set(e,r)),r.has(n)||r.set(n,i))}function dl(t,e,n){let r=t.getParent(),i=n;return r!==null&&(e&&n===0?(i=t.getIndexWithinParent(),t=r):e||n!==t.getChildrenSize()||(i=t.getIndexWithinParent()+1,t=r)),t.getChildAtIndex(e?i-1:i)}function ul(t,e){var n=t.offset;return t.type==="element"?(t=t.getNode(),dl(t,e,n)):(t=t.getNode(),e&&n===0||!e&&n===t.getTextContentSize()?(n=e?t.getPreviousSibling():t.getNextSibling(),n===null?dl(t.getParentOrThrow(),e,t.getIndexWithinParent()+(e?0:1)):n):null)}function gl(t){return t=(t=er(t).event)&&t.inputType,t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function ni(t){return!Pe(t)&&!t.isLastChild()&&!t.isInline()}function Qn(t,e){return t=t._keyToDOMMap.get(e),t===void 0&&M(75),t}function Nd(t,e=0){if(e!==0&&M(1),e=G(),!B(e)||!R(t))return e;let{anchor:n,focus:r}=e,i=n.getNode(),o=r.getNode();return qn(i,t)&&n.set(t.__key,0,"element"),qn(o,t)&&r.set(t.__key,0,"element"),e}function qn(t,e){for(t=t.getParent();t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function er(t){return t=t._window,t===null&&M(78),t}function fl(t){for(t=t.getParentOrThrow();t!==null&&!st(t);)t=t.getParentOrThrow();return t}function st(t){return Pe(t)||R(t)&&t.isShadowRoot()}function hl(t,e,n,r,i){t=t.__children;let o=t.length;for(let l=0;l<o;l++){let s=t[l],a=r.get(s);a!==void 0&&a.__parent===e&&(R(a)&&hl(a,s,n,r,i),n.has(s)||i.delete(s),r.delete(s))}}function Td(t,e,n,r){t=t._nodeMap,e=e._nodeMap;for(let i of n){let o=e.get(i);o===void 0||o.isAttached()||(t.has(i)||n.delete(i),e.delete(i))}for(let[i]of r)n=e.get(i),n===void 0||n.isAttached()||(R(n)&&hl(n,i,t,e,r),t.has(i)||r.delete(i),e.delete(i))}function pl(t,e){let n=t.__mode,r=t.__format;t=t.__style;let i=e.__mode,o=e.__format;return e=e.__style,(n===null||n===i)&&(r===null||r===o)&&(t===null||t===e)}function ml(t,e){let n=t.mergeWithSibling(e),r=se()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function xl(t){if(t.__text===""&&t.isSimpleText()&&!t.isUnmergeable())t.remove();else{for(var e;(e=t.getPreviousSibling())!==null&&L(e)&&e.isSimpleText()&&!e.isUnmergeable();)if(e.__text==="")e.remove();else{pl(e,t)&&(t=ml(e,t));break}for(var n;(n=t.getNextSibling())!==null&&L(n)&&n.isSimpleText()&&!n.isUnmergeable();)if(n.__text==="")n.remove();else{pl(t,n)&&ml(t,n);break}}}function _l(t){return vl(t.anchor),vl(t.focus),t}function vl(t){for(;t.type==="element";){var e=t.getNode(),n=t.offset;if(n===e.getChildrenSize()?(e=e.getChildAtIndex(n-1),n=!0):(e=e.getChildAtIndex(n),n=!1),L(e)){t.set(e.__key,n?e.getTextContentSize():0,"text");break}else if(!R(e))break;t.set(e.__key,n?e.getChildrenSize():0,"element")}}let fe="",Ne="",Ze="",mt,Te,on,wl=!1,ri=!1,tr,nr=null,ii,oi,ln,At,li,sn;function rr(t,e){let n=ln.get(t);if(e!==null){let r=ci(t);e.removeChild(r)}At.has(t)||Te._keyToDOMMap.delete(t),R(n)&&(t=n.__children,si(t,0,t.length-1,null)),n!==void 0&&ti(sn,on,tr,n,"destroyed")}function si(t,e,n,r){for(;e<=n;++e){let i=t[e];i!==void 0&&rr(i,r)}}function an(t,e){t.setProperty("text-align",e)}function yl(t,e){t.style.setProperty("padding-inline-start",e===0?"":20*e+"px")}function kl(t,e){t=t.style,e===0?an(t,""):e===1?an(t,"left"):e===2?an(t,"center"):e===3?an(t,"right"):e===4&&an(t,"justify")}function ir(t,e,n){let r=At.get(t);r===void 0&&M(60);let i=r.createDOM(mt,Te);var o=Te._keyToDOMMap;if(i["__lexicalKey_"+Te._key]=t,o.set(t,i),L(r)?i.setAttribute("data-lexical-text","true"):ne(r)&&i.setAttribute("data-lexical-decorator","true"),R(r)){t=r.__indent,t!==0&&yl(i,t),t=r.__children;var l=t.length;if(l!==0){o=t,--l;let s=Ne;Ne="",ai(o,0,l,i,null),Nl(r,i),Ne=s}o=r.__format,o!==0&&kl(i,o),r.isInline()||El(null,t,i),ni(r)&&(fe+=`
10
+ */var wd=S.default,yd=Symbol.for("react.element"),kd=Symbol.for("react.fragment"),Cd=Object.prototype.hasOwnProperty,Ed=wd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Nd={key:!0,ref:!0,__self:!0,__source:!0};function Io(t,e,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(l=e.ref);for(r in e)Cd.call(e,r)&&!Nd.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:yd,type:t,key:o,ref:l,props:i,_owner:Ed.current}}qn.Fragment=kd,qn.jsx=Io,qn.jsxs=Io,function(t){t.exports=qn}(Xn);const Pt=Xn.exports.Fragment,h=Xn.exports.jsx,B=Xn.exports.jsxs,Td=Object.freeze(Object.defineProperty({__proto__:null,Fragment:Pt,jsx:h,jsxs:B},Symbol.toStringTag,{value:"Module"})),Sd=()=>{return B("div",{className:"koenig-lexical",children:[h(t,{label:"Text toolbar"}),h(e,{}),h(t,{label:"Image toolbar"}),h(n,{}),h(t,{label:"Gallery toolbar"}),h(r,{}),h(t,{label:"Plus menu"}),h(l,{}),h(t,{label:"Card menu"}),h(s,{}),h(t,{label:"Divider card"}),h("div",{className:"relative max-w-[740px]",children:h(u,{})}),h(t,{label:"Code block"}),h("div",{className:"relative max-w-[740px]",children:h(g,{})}),h(t,{label:"Image card"}),h("div",{className:"relative max-w-[740px]",children:h(m,{})}),h(t,{label:"Gallery card"}),h("div",{className:"relative max-w-[1172px]",children:h(C,{})})]});function t({label:N}){return h("h3",{className:"mb-4 mt-20 text-xl font-bold first-of-type:mt-8",children:N})}function e(){return h("div",{className:"max-w-fit",children:B("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[h(i,{label:"Format text as bold",Icon:ko}),h(i,{label:"Format text as italics",Icon:Co}),h(i,{label:"Toggle heading 1",Icon:Eo}),h(i,{label:"Toggle heading 2",Icon:No}),h(o,{}),h(i,{label:"Toggle blockquote",Icon:To}),h(i,{label:"Insert link",Icon:jr}),h(o,{}),h(i,{label:"Save as snippet",Icon:Jn})]})})}function n(){return h("div",{className:"max-w-fit",children:B("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[h(i,{label:"Set image to regular",Icon:So}),h(i,{label:"Set image to wide",Icon:bo}),h(i,{label:"Set image to full",Icon:Ro}),h(o,{}),h(i,{label:"Insert link",Icon:jr}),h(i,{label:"Replace image",Icon:Oo}),h(o,{}),h(i,{label:"Save as snippet",Icon:Jn})]})})}function r(){return h("div",{className:"max-w-fit",children:B("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[h(i,{label:"Add image",Icon:$o}),h(o,{}),h(i,{label:"Save as snippet",Icon:Jn})]})})}function i({label:N,Icon:p,...v}){return h("li",{className:"m-0 flex p-0 first:m-0",...v,children:h("div",{type:"button",className:"flex h-9 w-9 items-center justify-center",children:h(p,{className:"fill-white"})})})}function o(){return h("li",{className:"m-0 mx-1 h-5 w-px bg-grey-900"})}function l(){return h("button",{type:"button","aria-label":"Add a card",className:"group relative flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border border-grey bg-white transition-all ease-linear hover:border-grey-900 md:h-9 md:w-9",children:h(Mo,{className:"h-4 w-4 stroke-grey-800 stroke-2 group-hover:stroke-grey-900"})})}function s(){return B("div",{className:"z-[9999999] m-0 mb-3 max-h-[376px] w-[312px] flex-col overflow-y-auto rounded-lg bg-white bg-clip-padding p-0 pt-0 text-sm shadow",children:[h(a,{label:"Primary"}),h(c,{label:"Image",desc:"Upload, or embed with /image [url]",Icon:Ao}),h(c,{label:"Markdown",desc:"Insert a Markdown editor card",Icon:Vc}),h(c,{label:"HTML",desc:"Insert a raw HTML card",Icon:Gc}),h(c,{label:"Gallery",desc:"Create an image gallery",Icon:Zc}),h(c,{label:"Divider",desc:"Insert a dividing line",Icon:Do}),h(c,{label:"Bookmark",desc:"Embed a link as a visual bookmark",Icon:Jc}),h(c,{label:"Email content",desc:"Only visible when delivered by email",Icon:Xc}),h(c,{label:"Email call to action",desc:"Target free or paid members with a CTA",Icon:qc}),h(c,{label:"Public preview",desc:"Attract signups with a public intro",Icon:Qc}),h(c,{label:"Button",desc:"Add a button to your post",Icon:ed}),h(c,{label:"Callout",desc:"Info boxes that stand out",Icon:td}),h(c,{label:"GIF",desc:"Search and embed gifs",Icon:nd}),h(c,{label:"Toggle",desc:"Add collapsible content",Icon:rd}),h(c,{label:"Video",desc:"Upload and play a video",Icon:id}),h(c,{label:"Audio",desc:"Upload and play an audio file",Icon:od}),h(c,{label:"File",desc:"Upload a downloadable file",Icon:ld}),h(c,{label:"Product",desc:"Add a product recommendation",Icon:sd}),h(c,{label:"Header",desc:"Add a bold section header",Icon:ad}),h(a,{label:"Embed"}),h(c,{label:"YouTube",desc:"/youtube [video url]",Icon:cd}),h(c,{label:"Twitter",desc:"/twitter [tweet url]",Icon:dd}),h(c,{label:"Unsplash",desc:"/unsplash [search-term or url]",Icon:Yr}),h(c,{label:"Vimeo",desc:"/vimeo [video url]",Icon:ud}),h(c,{label:"CodePen",desc:"/codepen [pen url]",Icon:gd}),h(c,{label:"Spotify",desc:"/spotify [track or playlist url]",Icon:hd}),h(c,{label:"SoundCloud",desc:"/soundcloud [track or playlist url]",Icon:fd}),h(c,{label:"NFT",desc:"/nft [opensea url]",Icon:pd}),h(c,{label:"Other...",desc:"/embed [url]",Icon:md}),h(a,{label:"Snippets"}),h(d,{label:"A random snippet",Icon:xd})]})}function a({label:N,...p}){return h("div",{className:"mb-2 flex shrink-0 flex-col justify-center px-4 pt-3 text-xs font-medium uppercase tracking-[.06rem] text-grey",style:{minWidth:"calc(100% - 3.2rem)"},...p,children:N})}function c({label:N,desc:p,Icon:v,...T}){return B("div",{className:"flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",...T,children:[h("div",{className:"flex items-center",children:h(v,{className:"h-7 w-7"})}),B("div",{className:"flex flex-col",children:[h("div",{className:"m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900",children:N}),h("div",{className:"m-0 ml-4 truncate text-xs font-normal leading-[1.333em] tracking-[.02rem] text-grey",children:p})]})]})}function d({label:N,Icon:p,...v}){return B("div",{className:"flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",...v,children:[h("div",{className:"flex items-center",children:h(p,{className:"h-7 w-7"})}),h("div",{className:"flex flex-col",children:h("div",{className:"m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900",children:N})})]})}function u(){return h("div",{children:h("hr",{className:"block h-[1px] border-0 border-t border-grey-300"})})}function g(){return B("div",{className:"border-2 border-green",children:[h("div",{className:"rounded bg-grey-50 px-3 py-2",children:h("textarea",{className:"w-full resize-none bg-grey-50 font-mono text-[1.7rem]"})}),h(_,{placeholder:"Type caption for code block (optional)"})]})}function m(){const[N,p]=re.useState(!1),[v,T]=re.useState(!1),E=()=>{p(!N)},k=R=>{R.stopPropagation(),T(!v)};return N?B("div",{className:`border border-transparent ${N?"shadow-[0_0_0_2px_#30cf43]":"hover:shadow-[0_0_0_1px_#30cf43]"}`,onClick:E,children:[h(f,{desc:"Click to select an image",Icon:Vr}),h(_,{placeholder:"Type caption for image (optional)"}),h("button",{className:`absolute bottom-0 right-0 m-3 cursor-pointer rounded border px-1 text-[1.3rem] font-normal leading-7 tracking-wide transition-all duration-100 ${v?"border-green bg-green text-white":"border-grey text-grey"} `,onClick:R=>k(R),children:"Alt"})]}):h("div",{className:`border border-transparent ${N?"shadow-[0_0_0_2px_#30cf43]":"hover:shadow-[0_0_0_1px_#30cf43]"}`,onClick:E,children:h(f,{desc:"Click to select an image",Icon:Vr})})}function f({desc:N,Icon:p,...v}){return B("div",{className:"relative",children:[h("figure",{className:"cursor-pointer border border-transparent",...v,children:h("div",{className:"h-100 relative flex items-center justify-center border border-grey-100 bg-grey-50 before:pb-[62.5%]",children:B("button",{className:"group flex flex-col items-center justify-center p-20",children:[h(p,{className:"h-32 w-32 opacity-80 transition-all ease-linear group-hover:scale-105 group-hover:opacity-100"}),h("p",{className:"mt-4 text-sm font-normal text-grey-700 group-hover:text-grey-800",children:N})]})})}),h("form",{children:h("input",{type:"file",accept:"image/*",name:"image",hidden:!0})})]})}function _({placeholder:N}){return h("input",{className:"not-kg-prose w-full p-2 text-center font-sans text-sm font-normal tracking-wide text-grey-900",placeholder:N})}function C(){return B("div",{className:"border-2 border-green",children:[h(f,{desc:"Click to select up to 9 images",Icon:_d}),h(_,{placeholder:"Type caption for gallery (optional)"})]})}};var Po={},Qn={},Fo=S.default;let zo=Fo.createContext(null);Qn.LexicalComposerContext=zo,Qn.createLexicalComposerContext=function(t,e){let n=null;return t!=null&&(n=t[1]),{getTheme:function(){return e!=null?e:n!=null?n.getTheme():null}}},Qn.useLexicalComposerContext=function(){let t=Fo.useContext(zo);if(t==null)throw Error("Minified Lexical error #8; visit https://lexical.dev/docs/error?code=8 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return t};var ie=Qn,b={};let Bo={},Ho={},cn={},dn={},Gr={},Ft={},Zr={},Jr={},un={},gn={},ot={},Xr={},qr={},Ko={},Wo={},Uo={},jo={},Yo={},Vo={},er={},Go={},Zo={},Jo={},Xo={},qo={},Qo={},el={},tl={},nl={},Qr={},ei={},rl={},il={},ol={};function A(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let Ne=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bd=Ne&&"documentMode"in document?document.documentMode:null,be=Ne&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),mt=Ne&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Rd=Ne&&"InputEvent"in window&&!bd?"getTargetRanges"in new window.InputEvent("input"):!1,ti=Ne&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),ni=Ne&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,tr=ti||ni?"\xA0":"\u200B",Od=mt?"\xA0":tr,$d=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,Md=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,xt={bold:1,code:16,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},Ad={directionless:1,unmergeable:2},ll={center:2,justify:4,left:1,right:3},Dd={2:"center",4:"justify",1:"left",3:"right"},Ld={normal:0,segmented:2,token:1},Id={0:"normal",2:"segmented",1:"token"},ri=!1,ii=0;function Pd(t){ii=t.timeStamp}function oi(t,e,n){return e.__lexicalLineBreak===t||t[`__lexicalKey_${n._key}`]!==void 0}function Fd(t){return t.getEditorState().read(()=>{let e=Z();return e!==null?e.clone():null})}function sl(t,e,n){ri=!0;let r=100<performance.now()-ii;try{$e(t,()=>{let i=Z()||Fd(t);var o=new Map,l=t.getRootElement(),s=t._editorState;let a=!1,c="";for(var d=0;d<e.length;d++){var u=e[d],g=u.type,m=u.target,f=hn(m,s);if(!(f===null&&m!==l||ee(f))){if(g==="characterData"){if(u=r&&L(f))e:{u=i,g=m;var _=f;if(H(u)){var C=u.anchor.getNode();if(C.is(_)&&u.format!==C.getFormat()){u=!1;break e}}u=g.nodeType===3&&_.isAttached()}u&&(_=Ne?window.getSelection():null,g=u=null,_!==null&&_.anchorNode===m&&(u=_.anchorOffset,g=_.focusOffset),m=m.nodeValue,m!==null&&ai(f,m,u,g,!1))}else if(g==="childList"){for(a=!0,g=u.addedNodes,_=0;_<g.length;_++){C=g[_];var N=fl(C),p=C.parentNode;p==null||N!==null||C.nodeName==="BR"&&oi(C,p,t)||(mt&&(N=C.innerText||C.nodeValue)&&(c+=N),p.removeChild(C))}if(u=u.removedNodes,g=u.length,0<g){for(_=0,C=0;C<g;C++)p=u[C],p.nodeName==="BR"&&oi(p,m,t)&&(m.appendChild(p),_++);g!==_&&(m===l&&(f=s._nodeMap.get("root")),o.set(m,f))}}}}if(0<o.size)for(let[v,T]of o)if(O(T))for(o=T.__children,l=v.firstChild,s=0;s<o.length;s++)d=t.getElementByKey(o[s]),d!==null&&(l==null?(v.appendChild(d),l=d):l!==d&&v.replaceChild(d,l),l=l.nextSibling);else L(T)&&T.markDirty();if(o=n.takeRecords(),0<o.length){for(l=0;l<o.length;l++)for(d=o[l],s=d.addedNodes,d=d.target,f=0;f<s.length;f++)m=s[f],u=m.parentNode,u==null||m.nodeName!=="BR"||oi(m,d,t)||u.removeChild(m);n.takeRecords()}i!==null&&(a&&(i.dirty=!0,_t(i)),mt&&kl(t)&&i.insertRawText(c))})}finally{ri=!1}}function al(t){let e=t._observer;if(e!==null){let n=e.takeRecords();sl(t,n,e)}}function cl(t){ii===0&&sr(t).addEventListener("textInput",Pd,!0),t._observer=new MutationObserver((e,n)=>{sl(t,e,n)})}let zd=1,Bd=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function nr(t,e,n){let r=t.getRootElement();try{var i;if(i=r!==null&&r.contains(e)&&r.contains(n)&&e!==null){let o=document.activeElement,l=o!==null?o.nodeName:null;i=!ee(hn(e))||l!=="INPUT"&&l!=="TEXTAREA"}return i&&dl(e)===t}catch{return!1}}function dl(t){for(;t!=null;){let e=t.__lexicalEditor;if(e!=null)return e;t=t.parentNode}return null}function li(t){return t.isToken()||t.isSegmented()}function rr(t){for(;t!=null;){if(t.nodeType===3)return t;t=t.firstChild}return null}function ul(t,e,n){return e=xt[e],t&e&&(n===null||(n&e)===0)?t^e:n===null||n&e?t|e:t}function gl(t){return L(t)||Rn(t)||ee(t)}function hl(t,e){if(e!=null)t.__key=e;else{Re(),99<Tn&&A(14),e=oe();var n=Ye(),r=""+zd++;n._nodeMap.set(r,t),O(t)?e._dirtyElements.set(r,!0):e._dirtyLeaves.add(r),e._cloneNotNeeded.add(r),e._dirtyType=1,t.__key=r}}function ir(t){var e=t.getParent();if(e!==null){e=e.getWritable().__children;let n=e.indexOf(t.__key);n===-1&&A(31),Bt(t),e.splice(n,1)}}function zt(t){99<Tn&&A(14);var e=t.getLatest(),n=e.__parent,r=Ye();let i=oe(),o=r._nodeMap;if(r=i._dirtyElements,n!==null)e:for(;n!==null;){if(r.has(n))break e;let l=o.get(n);if(l===void 0)break;r.set(n,!1),n=l.__parent}e=e.__key,i._dirtyType=1,O(t)?r.set(e,!0):i._dirtyLeaves.add(e)}function Bt(t){let e=t.getPreviousSibling();t=t.getNextSibling(),e!==null&&zt(e),t!==null&&zt(t)}function he(t){Re();var e=oe();let n=e._compositionKey;t!==n&&(e._compositionKey=t,n!==null&&(e=q(n),e!==null&&e.getWritable()),t!==null&&(t=q(t),t!==null&&t.getWritable()))}function lt(){return ae?null:oe()._compositionKey}function q(t,e){return t=(e||Ye())._nodeMap.get(t),t===void 0?null:t}function fl(t,e){let n=oe();return t=t[`__lexicalKey_${n._key}`],t!==void 0?q(t,e):null}function hn(t,e){for(;t!=null;){let n=fl(t,e);if(n!==null)return n;t=t.parentNode}return null}function pl(t){let e=Object.assign({},t._decorators);return t._pendingDecorators=e}function ml(t){return t.read(()=>st().getTextContent())}function Hd(t,e){$e(t,()=>{var n=Ye();if(!n.isEmpty())if(e==="root")st().markDirty();else{n=n._nodeMap;for(let[,r]of n)r.markDirty()}},t._pendingEditorState===null?{tag:"history-merge"}:void 0)}function st(){return Ye()._nodeMap.get("root")}function _t(t){let e=Ye();t!==null&&(t.dirty=!0,t._cachedNodes=null),e._selection=t}function Ht(t){var e=oe(),n;e:{for(n=t;n!=null;){let r=n[`__lexicalKey_${e._key}`];if(r!==void 0){n=r;break e}n=n.parentNode}n=null}return n===null?(e=e.getRootElement(),t===e?q("root"):null):q(n)}function xl(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function si(t){let e=[];for(;t!==null;)e.push(t),t=t._parentEditor;return e}function _l(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function vl(t,e){var n=Ne?window.getSelection():null;if(n!==null){var r=n.anchorNode,{anchorOffset:i,focusOffset:o}=n;if(r!==null&&r.nodeType===3&&(n=hn(r),L(n))){if(r=r.nodeValue,r===tr&&e){let l=e.length;r=e,o=i=l}r!==null&&ai(n,r,i,o,t)}}}function ai(t,e,n,r,i){let o=t;if(o.isAttached()&&(i||!o.isDirty())){var l=o.isComposing();if(t=e,(l||i)&&e[e.length-1]===tr&&(t=e.slice(0,-1)),e=o.getTextContent(),i||t!==e)if(t==="")if(he(null),ti||ni)o.remove();else{let s=oe();setTimeout(()=>{s.update(()=>{o.isAttached()&&o.remove()})},20)}else i=o.getParent(),e=Nn(),o.isToken()||lt()!==null&&!l||i!==null&&H(e)&&!i.canInsertTextBefore()&&e.anchor.offset===0?o.markDirty():(l=Z(),H(l)&&n!==null&&r!==null&&(l.setTextNodeRange(o,n,o,r),o.isSegmented()&&(n=o.getTextContent(),n=fe(n),o.replace(n),o=n)),o.setTextContent(t))}}function Kd(t,e){if(e.isSegmented())return!0;if(!t.isCollapsed())return!1;t=t.anchor.offset;let n=e.getParentOrThrow(),r=e.isToken();return t===0?((t=!e.canInsertTextBefore()||!n.canInsertTextBefore()||r)||(e=e.getPreviousSibling(),t=(L(e)||O(e)&&e.isInline())&&!e.canInsertTextAfter()),t):t===e.getTextContentSize()?!e.canInsertTextAfter()||!n.canInsertTextAfter()||r:!1}function wl(t,e){let n=t.anchor,r=t.focus,i=n.getNode();var o=Ne?window.getSelection():null;o=o!==null?o.anchorNode:null;let l=n.key,s=oe().getElementByKey(l),a=e.length;return l!==r.key||!L(i)||(2>a||xl(e))&&n.offset!==r.offset&&!i.isComposing()||li(i)||i.isDirty()&&1<a||s!==null&&!i.isComposing()&&o!==rr(s)||i.getFormat()!==t.format||Kd(t,i)}function fn(t,e){var n=t[e];return typeof n=="string"?(n=n.split(" "),t[e]=n):n}function ci(t,e,n,r,i){n.size!==0&&(n=r.__key,e=e.get(r.__type),e===void 0&&A(33),e=e.klass,r=t.get(e),r===void 0&&(r=new Map,t.set(e,r)),r.has(n)||r.set(n,i))}function yl(t,e,n){let r=t.getParent(),i=n;return r!==null&&(e&&n===0?(i=t.getIndexWithinParent(),t=r):e||n!==t.getChildrenSize()||(i=t.getIndexWithinParent()+1,t=r)),t.getChildAtIndex(e?i-1:i)}function di(t,e){var n=t.offset;return t.type==="element"?(t=t.getNode(),yl(t,e,n)):(t=t.getNode(),e&&n===0||!e&&n===t.getTextContentSize()?(n=e?t.getPreviousSibling():t.getNextSibling(),n===null?yl(t.getParentOrThrow(),e,t.getIndexWithinParent()+(e?0:1)):n):null)}function kl(t){return t=(t=sr(t).event)&&t.inputType,t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function ui(t){return!Me(t)&&!t.isLastChild()&&!t.isInline()}function or(t,e){return t=t._keyToDOMMap.get(e),t===void 0&&A(75),t}function Wd(t,e=0){if(e!==0&&A(1),e=Z(),!H(e)||!O(t))return e;let{anchor:n,focus:r}=e,i=n.getNode(),o=r.getNode();return lr(i,t)&&n.set(t.__key,0,"element"),lr(o,t)&&r.set(t.__key,0,"element"),e}function lr(t,e){for(t=t.getParent();t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function sr(t){return t=t._window,t===null&&A(78),t}function Cl(t){for(t=t.getParentOrThrow();t!==null&&!at(t);)t=t.getParentOrThrow();return t}function at(t){return Me(t)||O(t)&&t.isShadowRoot()}function ar(t){var e=oe();let n=t.constructor.getType();return e=e._nodes.get(n),e===void 0&&A(97),e=e.replace,e!==null?(e=e(t),e instanceof t.constructor||A(98),e):t}function gi(t,e){if(t=t.getParent(),Me(t)&&!O(e)&&!ee(e))throw Error("Only element or decorator nodes can be inserted in to the root node")}function El(t,e,n,r,i){t=t.__children;let o=t.length;for(let l=0;l<o;l++){let s=t[l],a=r.get(s);a!==void 0&&a.__parent===e&&(O(a)&&El(a,s,n,r,i),n.has(s)||i.delete(s),r.delete(s))}}function Ud(t,e,n,r){t=t._nodeMap,e=e._nodeMap;for(let i of n){let o=e.get(i);o===void 0||o.isAttached()||(t.has(i)||n.delete(i),e.delete(i))}for(let[i]of r)n=e.get(i),n===void 0||n.isAttached()||(O(n)&&El(n,i,t,e,r),t.has(i)||r.delete(i),e.delete(i))}function Nl(t,e){let n=t.__mode,r=t.__format;t=t.__style;let i=e.__mode,o=e.__format;return e=e.__style,(n===null||n===i)&&(r===null||r===o)&&(t===null||t===e)}function Tl(t,e){let n=t.mergeWithSibling(e),r=oe()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function Sl(t){if(t.__text===""&&t.isSimpleText()&&!t.isUnmergeable())t.remove();else{for(var e;(e=t.getPreviousSibling())!==null&&L(e)&&e.isSimpleText()&&!e.isUnmergeable();)if(e.__text==="")e.remove();else{Nl(e,t)&&(t=Tl(e,t));break}for(var n;(n=t.getNextSibling())!==null&&L(n)&&n.isSimpleText()&&!n.isUnmergeable();)if(n.__text==="")n.remove();else{Nl(t,n)&&Tl(t,n);break}}}function bl(t){return Rl(t.anchor),Rl(t.focus),t}function Rl(t){for(;t.type==="element";){var e=t.getNode(),n=t.offset;if(n===e.getChildrenSize()?(e=e.getChildAtIndex(n-1),n=!0):(e=e.getChildAtIndex(n),n=!1),L(e)){t.set(e.__key,n?e.getTextContentSize():0,"text");break}else if(!O(e))break;t.set(e.__key,n?e.getChildrenSize():0,"element")}}let ue="",Te="",Xe="",vt,Se,pn,Ol=!1,hi=!1,cr,dr=null,fi,pi,mn,Kt,mi,xn;function ur(t,e){let n=mn.get(t);if(e!==null){let r=vi(t);e.removeChild(r)}Kt.has(t)||Se._keyToDOMMap.delete(t),O(n)&&(t=n.__children,xi(t,0,t.length-1,null)),n!==void 0&&ci(xn,pn,cr,n,"destroyed")}function xi(t,e,n,r){for(;e<=n;++e){let i=t[e];i!==void 0&&ur(i,r)}}function _n(t,e){t.setProperty("text-align",e)}function $l(t,e){t.style.setProperty("padding-inline-start",e===0?"":20*e+"px")}function Ml(t,e){t=t.style,e===0?_n(t,""):e===1?_n(t,"left"):e===2?_n(t,"center"):e===3?_n(t,"right"):e===4&&_n(t,"justify")}function gr(t,e,n){let r=Kt.get(t);r===void 0&&A(60);let i=r.createDOM(vt,Se);var o=Se._keyToDOMMap;if(i["__lexicalKey_"+Se._key]=t,o.set(t,i),L(r)?i.setAttribute("data-lexical-text","true"):ee(r)&&i.setAttribute("data-lexical-decorator","true"),O(r)){t=r.__indent,t!==0&&$l(i,t),t=r.__children;var l=t.length;if(l!==0){o=t,--l;let s=Te;Te="",_i(o,0,l,i,null),Ll(r,i),Te=s}o=r.__format,o!==0&&Ml(i,o),r.isInline()||Dl(null,t,i),ui(r)&&(ue+=`
11
11
 
12
- `,Ze+=`
12
+ `,Xe+=`
13
13
 
14
- `)}else o=r.getTextContent(),ne(r)?(l=r.decorate(Te,mt),l!==null&&Tl(t,l),i.contentEditable="false"):L(r)&&(r.isDirectionless()||(Ne+=o)),fe+=o,Ze+=o;return e!==null&&(n!=null?e.insertBefore(i,n):(n=e.__lexicalLineBreak,n!=null?e.insertBefore(i,n):e.appendChild(i))),ti(sn,on,tr,r,"created"),i}function ai(t,e,n,r,i){let o=fe;for(fe="";e<=n;++e)ir(t[e],r,i);r.__lexicalTextContent=fe,fe=o+fe}function Cl(t,e){return t=e.get(t[t.length-1]),vn(t)||ne(t)}function El(t,e,n){t=t!==null&&(t.length===0||Cl(t,ln)),e=e!==null&&(e.length===0||Cl(e,At)),t?e||(e=n.__lexicalLineBreak,e!=null&&n.removeChild(e),n.__lexicalLineBreak=null):e&&(e=document.createElement("br"),n.__lexicalLineBreak=e,n.appendChild(e))}function Nl(t,e){var n=e.__lexicalDir;if(e.__lexicalDirTextContent!==Ne||n!==nr){let o=Ne==="";if(o)var r=nr;else r=Ne,r=fd.test(r)?"rtl":hd.test(r)?"ltr":null;if(r!==n){let l=e.classList,s=mt.theme;var i=n!==null?s[n]:void 0;let a=r!==null?s[r]:void 0;i!==void 0&&(typeof i=="string"&&(i=i.split(" "),i=s[n]=i),l.remove(...i)),r===null||o&&r==="ltr"?e.removeAttribute("dir"):(a!==void 0&&(typeof a=="string"&&(n=a.split(" "),a=s[r]=n),a!==void 0&&l.add(...a)),e.dir=r),ri||(t.getWritable().__dir=r)}nr=r,e.__lexicalDirTextContent=Ne,e.__lexicalDir=r}}function cn(t,e){var n=ln.get(t),r=At.get(t);n!==void 0&&r!==void 0||M(61);var i=wl||oi.has(t)||ii.has(t);let o=Qn(Te,t);if(n===r&&!i)return R(n)?(r=o.__lexicalTextContent,r!==void 0&&(fe+=r,Ze+=r),r=o.__lexicalDirTextContent,r!==void 0&&(Ne+=r)):(r=n.getTextContent(),L(n)&&!n.isDirectionless()&&(Ne+=r),Ze+=r,fe+=r),o;if(n!==r&&i&&ti(sn,on,tr,r,"updated"),r.updateDOM(n,o,mt))return r=ir(t,null,null),e===null&&M(62),e.replaceChild(r,o),rr(t,null),r;if(R(n)&&R(r)){if(t=r.__indent,t!==n.__indent&&yl(o,t),t=r.__format,t!==n.__format&&kl(o,t),t=n.__children,n=r.__children,t!==n||i){var l=t,s=n;i=r,e=Ne,Ne="";let m=fe;fe="";var a=l.length,c=s.length;if(a===1&&c===1){var d=l[0];if(s=s[0],d===s)cn(d,o);else{var u=ci(d);s=ir(s,null,null),o.replaceChild(s,u),rr(d,null)}}else if(a===0)c!==0&&ai(s,0,c-1,o,null);else if(c===0)a!==0&&(d=o.__lexicalLineBreak==null,si(l,0,a-1,d?null:o),d&&(o.textContent=""));else{let h=a-1;a=c-1;let v=o.firstChild,C=0;for(c=0;C<=h&&c<=a;){var g=l[C];let N=s[c];if(g===N)v=cn(N,o).nextSibling,C++,c++;else{d===void 0&&(d=new Set(l)),u===void 0&&(u=new Set(s));let p=u.has(g),x=d.has(N);p?(x?(g=Qn(Te,N),g===v?v=cn(N,o).nextSibling:(v!=null?o.insertBefore(g,v):o.appendChild(g),cn(N,o)),C++):ir(N,o,v),c++):(v=ci(g).nextSibling,rr(g,o),C++)}}d=C>h,u=c>a,d&&!u?(d=s[a+1],d=d===void 0?null:Te.getElementByKey(d),ai(s,c,a,o,d)):u&&!d&&si(l,C,h,o)}ni(i)&&(fe+=`
14
+ `)}else o=r.getTextContent(),ee(r)?(l=r.decorate(Se,vt),l!==null&&Il(t,l),i.contentEditable="false"):L(r)&&(r.isDirectionless()||(Te+=o)),ue+=o,Xe+=o;return e!==null&&(n!=null?e.insertBefore(i,n):(n=e.__lexicalLineBreak,n!=null?e.insertBefore(i,n):e.appendChild(i))),ci(xn,pn,cr,r,"created"),i}function _i(t,e,n,r,i){let o=ue;for(ue="";e<=n;++e)gr(t[e],r,i);r.__lexicalTextContent=ue,ue=o+ue}function Al(t,e){return t=e.get(t[t.length-1]),Rn(t)||ee(t)&&t.isInline()}function Dl(t,e,n){t=t!==null&&(t.length===0||Al(t,mn)),e=e!==null&&(e.length===0||Al(e,Kt)),t?e||(e=n.__lexicalLineBreak,e!=null&&n.removeChild(e),n.__lexicalLineBreak=null):e&&(e=document.createElement("br"),n.__lexicalLineBreak=e,n.appendChild(e))}function Ll(t,e){var n=e.__lexicalDir;if(e.__lexicalDirTextContent!==Te||n!==dr){let o=Te==="";if(o)var r=dr;else r=Te,r=$d.test(r)?"rtl":Md.test(r)?"ltr":null;if(r!==n){let l=e.classList,s=vt.theme;var i=n!==null?s[n]:void 0;let a=r!==null?s[r]:void 0;i!==void 0&&(typeof i=="string"&&(i=i.split(" "),i=s[n]=i),l.remove(...i)),r===null||o&&r==="ltr"?e.removeAttribute("dir"):(a!==void 0&&(typeof a=="string"&&(n=a.split(" "),a=s[r]=n),a!==void 0&&l.add(...a)),e.dir=r),hi||(t.getWritable().__dir=r)}dr=r,e.__lexicalDirTextContent=Te,e.__lexicalDir=r}}function vn(t,e){var n=mn.get(t),r=Kt.get(t);n!==void 0&&r!==void 0||A(61);var i=Ol||pi.has(t)||fi.has(t);let o=or(Se,t);if(n===r&&!i)return O(n)?(r=o.__lexicalTextContent,r!==void 0&&(ue+=r,Xe+=r),r=o.__lexicalDirTextContent,r!==void 0&&(Te+=r)):(r=n.getTextContent(),L(n)&&!n.isDirectionless()&&(Te+=r),Xe+=r,ue+=r),o;if(n!==r&&i&&ci(xn,pn,cr,r,"updated"),r.updateDOM(n,o,vt))return r=gr(t,null,null),e===null&&A(62),e.replaceChild(r,o),ur(t,null),r;if(O(n)&&O(r)){if(t=r.__indent,t!==n.__indent&&$l(o,t),t=r.__format,t!==n.__format&&Ml(o,t),t=n.__children,n=r.__children,t!==n||i){var l=t,s=n;i=r,e=Te,Te="";let m=ue;ue="";var a=l.length,c=s.length;if(a===1&&c===1){var d=l[0];if(s=s[0],d===s)vn(d,o);else{var u=vi(d);s=gr(s,null,null),o.replaceChild(s,u),ur(d,null)}}else if(a===0)c!==0&&_i(s,0,c-1,o,null);else if(c===0)a!==0&&(d=o.__lexicalLineBreak==null,xi(l,0,a-1,d?null:o),d&&(o.textContent=""));else{let f=a-1;a=c-1;let _=o.firstChild,C=0;for(c=0;C<=f&&c<=a;){var g=l[C];let N=s[c];if(g===N)_=vn(N,o).nextSibling,C++,c++;else{d===void 0&&(d=new Set(l)),u===void 0&&(u=new Set(s));let p=u.has(g),v=d.has(N);p?(v?(g=or(Se,N),g===_?_=vn(N,o).nextSibling:(_!=null?o.insertBefore(g,_):o.appendChild(g),vn(N,o)),C++):gr(N,o,_),c++):(_=vi(g).nextSibling,ur(g,o),C++)}}d=C>f,u=c>a,d&&!u?(d=s[a+1],d=d===void 0?null:Se.getElementByKey(d),_i(s,c,a,o,d)):u&&!d&&xi(l,C,f,o)}ui(i)&&(ue+=`
15
15
 
16
- `),o.__lexicalTextContent=fe,fe=m+fe,Nl(i,o),Ne=e,Pe(r)||r.isInline()||El(t,n,o)}ni(r)&&(fe+=`
16
+ `),o.__lexicalTextContent=ue,ue=m+ue,Ll(i,o),Te=e,Me(r)||r.isInline()||Dl(t,n,o)}ui(r)&&(ue+=`
17
17
 
18
- `,Ze+=`
18
+ `,Xe+=`
19
19
 
20
- `)}else n=r.getTextContent(),ne(r)?(i=r.decorate(Te,mt),i!==null&&Tl(t,i)):L(r)&&!r.isDirectionless()&&(Ne+=n),fe+=n,Ze+=n;return!ri&&Pe(r)&&r.__cachedText!==Ze&&(r=r.getWritable(),r.__cachedText=Ze),o}function Tl(t,e){let n=Te._pendingDecorators,r=Te._decorators;if(n===null){if(r[t]===e)return;n=il(Te)}n[t]=e}function ci(t){return t=li.get(t),t===void 0&&M(75),t}let Je=Object.freeze({}),di=[["keydown",Dd],["mousedown",bd],["compositionstart",Md],["compositionend",Ld],["input",Ad],["click",Sd],["cut",Je],["copy",Je],["dragstart",Je],["dragover",Je],["dragend",Je],["paste",Je],["focus",Je],["blur",Je],["drop",Je]];ud&&di.push(["beforeinput",(t,e)=>$d(t,e)]);let dn=0,Sl=0,un=0,ui=!1,gi=!1,gn=!1,fn=!1,bl=[0,0,"root",0];function Ol(t,e){return t!==null&&t.nodeValue!==null&&t.nodeType===3&&e!==0&&e!==t.nodeValue.length}function Rl(t,e,n){let{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:l}=t;ui&&(ui=!1,Ol(r,i)&&Ol(o,l))||Re(e,()=>{if(!n)Rt(null);else if(Zn(e,r,o)){var s=G();if(B(s)){var a=s.anchor,c=a.getNode();if(s.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(s.dirty=!0);var d=er(e).event;d=d?d.timeStamp:performance.now();let[u,g,m,h]=bl;d<h+200&&a.offset===g&&a.key===m?s.format=u:a.type==="text"?s.format=c.getFormat():a.type==="element"&&(s.format=0)}else{a=127,c=!1,d=s.getNodes();let u=d.length;for(let g=0;g<u;g++){let m=d[g];if(L(m)&&(c=!0,a&=m.getFormat(),a===0))break}s.format=c?a:0}}A(e,Ro,void 0)}})}function Sd(t,e){Re(e,()=>{let n=G(),r=Ee?window.getSelection():null,i=pn();if(B(n)){let o=n.anchor,l=o.getNode();r&&o.type==="element"&&o.offset===0&&n.isCollapsed()&&!Pe(l)&&lt().getChildrenSize()===1&&l.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i)&&(r.removeAllRanges(),n.dirty=!0)}A(e,$o,t)})}function bd(t,e){let n=t.target;n instanceof Node&&Re(e,()=>{ne(nn(n))||(gi=!0)})}function Od(t,e){e.getTargetRanges&&(e=e.getTargetRanges()[0])&&t.applyDOMRange(e)}function Rd(t,e){return t!==e||R(t)||R(e)||!t.isToken()||!e.isToken()}function $d(t,e){let n=t.inputType;n==="deleteCompositionText"||ht&&gl(e)||n!=="insertCompositionText"&&Re(e,()=>{let r=G();if(n==="deleteContentBackward"){if(r===null){var i=pn();if(!B(i))return;Rt(i.clone())}if(B(r)){Sl===229&&t.timeStamp<dn+30&&e.isComposing()&&r.anchor.key===r.focus.key?(pe(null),dn=0,setTimeout(()=>{Re(e,()=>{pe(null)})},30),B(r)&&(i=r.anchor.getNode(),i.markDirty(),r.format=i.getFormat())):(t.preventDefault(),A(e,Qt,!0));return}}if(B(r)){i=t.data,r.dirty||!r.isCollapsed()||Pe(r.anchor.getNode())||Od(r,t);var o=r.focus,l=r.anchor.getNode();if(o=o.getNode(),n==="insertText"||n==="insertTranspose")i===`
21
- `?(t.preventDefault(),A(e,qt,!1)):i===`
20
+ `)}else n=r.getTextContent(),ee(r)?(i=r.decorate(Se,vt),i!==null&&Il(t,i)):L(r)&&!r.isDirectionless()&&(Te+=n),ue+=n,Xe+=n;return!hi&&Me(r)&&r.__cachedText!==Xe&&(r=r.getWritable(),r.__cachedText=Xe),o}function Il(t,e){let n=Se._pendingDecorators,r=Se._decorators;if(n===null){if(r[t]===e)return;n=pl(Se)}n[t]=e}function vi(t){return t=mi.get(t),t===void 0&&A(75),t}let qe=Object.freeze({}),wi=[["keydown",Qd],["mousedown",Yd],["compositionstart",Xd],["compositionend",qd],["input",Jd],["click",jd],["cut",qe],["copy",qe],["dragstart",qe],["dragover",qe],["dragend",qe],["paste",qe],["focus",qe],["blur",qe],["drop",qe]];Rd&&wi.push(["beforeinput",(t,e)=>Zd(t,e)]);let wn=0,Pl=0,yn=0,yi=!1,ki=!1,kn=!1,Cn=!1,Fl=[0,0,"root",0];function zl(t,e){return t!==null&&t.nodeValue!==null&&t.nodeType===3&&e!==0&&e!==t.nodeValue.length}function Bl(t,e,n){let{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:l}=t;yi&&(yi=!1,zl(r,i)&&zl(o,l))||$e(e,()=>{if(!n)_t(null);else if(nr(e,r,o)){var s=Z();if(H(s)){var a=s.anchor,c=a.getNode();if(s.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(s.dirty=!0);var d=sr(e).event;d=d?d.timeStamp:performance.now();let[u,g,m,f]=Fl;d<f+200&&a.offset===g&&a.key===m?s.format=u:a.type==="text"?s.format=c.getFormat():a.type==="element"&&(s.format=0)}else{a=127,c=!1,d=s.getNodes();let u=d.length;for(let g=0;g<u;g++){let m=d[g];if(L(m)&&(c=!0,a&=m.getFormat(),a===0))break}s.format=c?a:0}}M(e,Bo,void 0)}})}function jd(t,e){$e(e,()=>{let n=Z(),r=Ne?window.getSelection():null,i=Nn();if(H(n)){let o=n.anchor,l=o.getNode();r&&o.type==="element"&&o.offset===0&&n.isCollapsed()&&!Me(l)&&st().getChildrenSize()===1&&l.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i)&&(r.removeAllRanges(),n.dirty=!0)}M(e,Ho,t)})}function Yd(t,e){let n=t.target;n instanceof Node&&$e(e,()=>{ee(hn(n))||(ki=!0)})}function Vd(t,e){e.getTargetRanges&&(e=e.getTargetRanges()[0])&&t.applyDOMRange(e)}function Gd(t,e){return t!==e||O(t)||O(e)||!t.isToken()||!e.isToken()}function Zd(t,e){let n=t.inputType;n==="deleteCompositionText"||mt&&kl(e)||n!=="insertCompositionText"&&$e(e,()=>{let r=Z();if(n==="deleteContentBackward"){if(r===null){var i=Nn();if(!H(i))return;_t(i.clone())}if(H(r)){Pl===229&&t.timeStamp<wn+30&&e.isComposing()&&r.anchor.key===r.focus.key?(he(null),wn=0,setTimeout(()=>{$e(e,()=>{he(null)})},30),H(r)&&(i=r.anchor.getNode(),i.markDirty(),r.format=i.getFormat())):(t.preventDefault(),M(e,cn,!0));return}}if(H(r)){i=t.data,r.dirty||!r.isCollapsed()||Me(r.anchor.getNode())||Vd(r,t);var o=r.focus,l=r.anchor.getNode();if(o=o.getNode(),n==="insertText"||n==="insertTranspose")i===`
21
+ `?(t.preventDefault(),M(e,dn,!1)):i===`
22
22
 
23
- `?(t.preventDefault(),A(e,Kr,void 0)):i==null&&t.dataTransfer?(i=t.dataTransfer.getData("text/plain"),t.preventDefault(),r.insertRawText(i)):i!=null&&cl(r,i)&&(t.preventDefault(),A(e,St,i));else switch(t.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":A(e,St,t);break;case"insertFromComposition":pe(null),A(e,St,t);break;case"insertLineBreak":pe(null),A(e,qt,!1);break;case"insertParagraph":pe(null),gn?(gn=!1,A(e,qt,!1)):A(e,Kr,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":A(e,Wr,t);break;case"deleteByComposition":Rd(l,o)&&A(e,Ur,void 0);break;case"deleteByDrag":case"deleteByCut":A(e,Ur,void 0);break;case"deleteContent":A(e,Qt,!1);break;case"deleteWordBackward":A(e,en,!0);break;case"deleteWordForward":A(e,en,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":A(e,tn,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":A(e,tn,!1);break;case"formatStrikeThrough":A(e,it,"strikethrough");break;case"formatBold":A(e,it,"bold");break;case"formatItalic":A(e,it,"italic");break;case"formatUnderline":A(e,it,"underline");break;case"historyUndo":A(e,Yr,void 0);break;case"historyRedo":A(e,Vr,void 0)}}})}function Ad(t,e){t.stopPropagation(),Re(e,()=>{var n=G(),r=t.data;r!=null&&B(n)&&cl(n,r)?(fn&&(fi(e,r),fn=!1),A(e,St,r),r=r.length,ht&&1<r&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=r),Vn||jn||!e.isComposing()||(dn=0,pe(null))):(al(!1),fn&&(fi(e,r||void 0),fn=!1)),Oe(),n=se(),Qo(n)})}function Md(t,e){Re(e,()=>{let n=G();if(B(n)&&!e.isComposing()){let r=n.anchor;pe(r.key),(t.timeStamp<dn+30||r.type==="element"||!n.isCollapsed()||n.anchor.getNode().getFormat()!==n.format)&&A(e,St,gd)}})}function fi(t,e){var n=t._compositionKey;if(pe(null),n!==null&&e!=null){if(e===""){e=J(n),t=Jn(t.getElementByKey(n)),t!==null&&t.nodeValue!==null&&L(e)&&ei(e,t.nodeValue,null,null,!0);return}if(e[e.length-1]===`
24
- `&&(n=G(),B(n))){e=n.focus,n.anchor.set(e.key,e.offset,e.type),A(t,Yn,null);return}}al(!0,e)}function Ld(t,e){ht?fn=!0:Re(e,()=>{fi(e,t.data)})}function Dd(t,e){if(t._lexicalHandled!==!0&&(t._lexicalHandled=!0,dn=t.timeStamp,Sl=t.keyCode,!e.isComposing())){var{keyCode:n,shiftKey:r,ctrlKey:i,metaKey:o,altKey:l}=t;if(n!==39||i||o||l)if(n!==39||l||r||!i&&!o)if(n!==37||i||o||l)if(n!==37||l||r||!i&&!o)if(n!==38||i||o)if(n!==40||i||o)if(n===13&&r)gn=!0,A(e,Yn,t);else if(n===32)A(e,Fo,t);else if(be&&i&&n===79)t.preventDefault(),gn=!0,A(e,qt,!0);else if(n!==13||r){var s=be?l||o?!1:n===8||n===72&&i:i||l||o?!1:n===8;s?n===8?A(e,zo,t):(t.preventDefault(),A(e,Qt,!0)):n===27?A(e,Bo,t):(s=be?r||l||o?!1:n===46||n===68&&i:i||l||o?!1:n===46,s?n===46?A(e,Ho,t):(t.preventDefault(),A(e,Qt,!1)):n===8&&(be?l:i)?(t.preventDefault(),A(e,en,!0)):n===46&&(be?l:i)?(t.preventDefault(),A(e,en,!1)):be&&o&&n===8?(t.preventDefault(),A(e,tn,!0)):be&&o&&n===46?(t.preventDefault(),A(e,tn,!1)):n===66&&!l&&(be?o:i)?(t.preventDefault(),A(e,it,"bold")):n===85&&!l&&(be?o:i)?(t.preventDefault(),A(e,it,"underline")):n===73&&!l&&(be?o:i)?(t.preventDefault(),A(e,it,"italic")):n!==9||l||i||o?n===90&&!r&&(be?o:i)?(t.preventDefault(),A(e,Yr,void 0)):(s=be?n===90&&o&&r:n===89&&i||n===90&&i&&r,s?(t.preventDefault(),A(e,Vr,void 0)):hn(e._editorState._selection)&&(s=r?!1:n===67?be?o:i:!1,s?(t.preventDefault(),A(e,jr,t)):(s=r?!1:n===88?be?o:i:!1,s&&(t.preventDefault(),A(e,Gr,t))))):A(e,Ko,t))}else gn=!1,A(e,Yn,t);else A(e,Po,t);else A(e,Io,t);else A(e,Do,t);else A(e,Lo,t);else A(e,Mo,t);else A(e,Ao,t);(i||r||l||o)&&A(e,Zo,t)}}function $l(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}let Mt=new Map;function Al(){let t=Ee?window.getSelection():null;if(t!==null){var e=el(t.anchorNode);if(e!==null){gi&&(gi=!1,Re(e,()=>{var l=pn(),s=t.anchorNode;s!==null&&(s=s.nodeType,s===1||s===3)&&(l=Ul(l,t,e),Rt(l))}));var n=qr(e);n=n[n.length-1];var r=n._key,i=Mt.get(r),o=i||n;o!==e&&Rl(t,o,!1),Rl(t,e,!0),e!==n?Mt.set(r,e):i&&Mt.delete(r)}}}function Id(t,e){un===0&&t.ownerDocument.addEventListener("selectionchange",Al),un++,t.__lexicalEditor=e;let n=$l(t);for(let r=0;r<di.length;r++){let[i,o]=di[r],l=typeof o=="function"?s=>{e.isEditable()&&o(s,e)}:s=>{if(e.isEditable())switch(i){case"cut":return A(e,Gr,s);case"copy":return A(e,jr,s);case"paste":return A(e,Wr,s);case"dragstart":return A(e,Uo,s);case"dragover":return A(e,Yo,s);case"dragend":return A(e,Vo,s);case"focus":return A(e,jo,s);case"blur":return A(e,Go,s);case"drop":return A(e,Wo,s)}};t.addEventListener(i,l),n.push(()=>{t.removeEventListener(i,l)})}}class We{constructor(e,n,r){this._selection=null,this.key=e,this.offset=n,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let n=this.getNode(),r=e.getNode(),i=this.offset;if(e=e.offset,R(n)){var o=n.getDescendantByIndex(i);n=o!=null?o:n}return R(r)&&(o=r.getDescendantByIndex(e),r=o!=null?o:r),n===r?i<e:n.isBefore(r)}getNode(){let e=J(this.key);return e===null&&M(20),e}set(e,n,r){let i=this._selection,o=this.key;this.key=e,this.offset=n,this.type=r,le||(ot()===o&&pe(e),i!==null&&(i._cachedNodes=null,i.dirty=!0))}}function hi(t,e){let n=e.__key,r=t.offset,i="element";if(L(e))i="text",e=e.getTextContentSize(),r>e&&(r=e);else if(!R(e)){var o=e.getNextSibling();L(o)?(n=o.__key,r=0):(o=e.getParent())&&(n=o.__key,r=e.getIndexWithinParent()+1)}t.set(n,r,i)}function Ml(t,e){if(R(e)){let n=e.getLastDescendant();R(n)||L(n)?hi(t,n):hi(t,e)}else hi(t,e)}function Ll(t,e,n){let r=t.getNode(),i=r.getChildAtIndex(t.offset),o=me(),l=Pe(r)?zt().append(o):o;o.setFormat(n),i===null?r.append(l):i.insertBefore(l),t.is(e)&&e.set(o.__key,0,"text"),t.set(o.__key,0,"text")}function at(t,e,n,r){t.key=e,t.offset=n,t.type=r}class or{constructor(e){this.dirty=!1,this._nodes=e,this._cachedNodes=null}is(e){if(!hn(e))return!1;let n=this._nodes,r=e._nodes;return n.size===r.size&&Array.from(n).every(i=>r.has(i))}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 or(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,n){let r=this.getNodes(),i=r.length;var o=r[i-1];if(L(o))o=o.select();else{let l=o.getIndexWithinParent()+1;o=o.getParentOrThrow().select(l,l)}for(o.insertNodes(e,n),e=0;e<i;e++)r[e].remove();return!0}getNodes(){var e=this._cachedNodes;if(e!==null)return e;var n=this._nodes;e=[];for(let r of n)n=J(r),n!==null&&e.push(n);return le||(this._cachedNodes=e),e}getTextContent(){let e=this.getNodes(),n="";for(let r=0;r<e.length;r++)n+=e[r].getTextContent();return n}}function B(t){return t instanceof Lt}class lr{constructor(e,n,r){this.gridKey=e,this.anchor=n,this.focus=r,this.dirty=!1,this._cachedNodes=null,n._selection=this,r._selection=this}is(e){return pi(e)?this.gridKey===e.gridKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus):!1}set(e,n,r){this.dirty=!0,this.gridKey=e,this.anchor.key=n,this.focus.key=r,this._cachedNodes=null}clone(){return new lr(this.gridKey,this.anchor,this.focus)}isCollapsed(){return!1}isBackward(){return this.focus.isBefore(this.anchor)}getCharacterOffsets(){return sr(this)}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,n){let r=this.focus.getNode();return _l(r.select(0,r.getChildrenSize())).insertNodes(e,n)}getShape(){var e=J(this.anchor.key);e===null&&M(21);var n=e.getIndexWithinParent();e=e.getParentOrThrow().getIndexWithinParent();var r=J(this.focus.key);r===null&&M(22);var i=r.getIndexWithinParent();let o=r.getParentOrThrow().getIndexWithinParent();return r=Math.min(n,i),n=Math.max(n,i),i=Math.min(e,o),e=Math.max(e,o),{fromX:Math.min(r,n),fromY:Math.min(i,e),toX:Math.max(r,n),toY:Math.max(i,e)}}getNodes(){var e=this._cachedNodes;if(e!==null)return e;e=new Set;let{fromX:n,fromY:r,toX:i,toY:o}=this.getShape();var l=J(this.gridKey);is(l)||M(23),e.add(l),l=l.getChildren();for(let c=r;c<=o;c++){var s=l[c];e.add(s),ls(s)||M(24),s=s.getChildren();for(let d=n;d<=i;d++){var a=s[d];for(ns(a)||M(25),e.add(a),a=a.getChildren();0<a.length;){let u=a.shift();e.add(u),R(u)&&a.unshift(...u.getChildren())}}}return e=Array.from(e),le||(this._cachedNodes=e),e}getTextContent(){let e=this.getNodes(),n="";for(let r=0;r<e.length;r++)n+=e[r].getTextContent();return n}}function pi(t){return t instanceof lr}class Lt{constructor(e,n,r){this.anchor=e,this.focus=n,this.dirty=!1,this.format=r,this._cachedNodes=null,e._selection=this,n._selection=this}is(e){return B(e)?this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format:!1}isBackward(){return this.focus.isBefore(this.anchor)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){var e=this._cachedNodes;if(e!==null)return e;var n=this.anchor,r=this.focus;e=n.getNode();let i=r.getNode();return R(e)&&(n=e.getDescendantByIndex(n.offset),e=n!=null?n:e),R(i)&&(r=i.getDescendantByIndex(r.offset),i=r!=null?r:i),e=e.is(i)?R(e)&&0<e.getChildrenSize()?[]:[e]:e.getNodesBetween(i),le||(this._cachedNodes=e),e}setTextNodeRange(e,n,r,i){at(this.anchor,e.__key,n,"text"),at(this.focus,r.__key,i,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){let e=this.getNodes();if(e.length===0)return"";let n=e[0],r=e[e.length-1],i=this.anchor.isBefore(this.focus),[o,l]=sr(this),s="",a=!0;for(let c=0;c<e.length;c++){let d=e[c];if(R(d)&&!d.isInline())a||(s+=`
25
- `),a=!d.isEmpty();else if(a=!1,L(d)){let u=d.getTextContent();d===n?u=d===r?o<l?u.slice(o,l):u.slice(l,o):i?u.slice(o):u.slice(l):d===r&&(u=i?u.slice(0,l):u.slice(0,o)),s+=u}else!ne(d)&&!vn(d)||d===r&&this.isCollapsed()||(s+=d.getTextContent())}return s}applyDOMRange(e){let n=se(),r=n.getEditorState()._selection;if(e=Bl(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,r),e!==null){var[i,o]=e;at(this.anchor,i.key,i.offset,i.type),at(this.focus,o.key,o.offset,o.type),this._cachedNodes=null}}clone(){let e=this.anchor,n=this.focus;return new Lt(new We(e.key,e.offset,e.type),new We(n.key,n.offset,n.type),this.format)}toggleFormat(e){this.format=tl(this.format,e,null),this.dirty=!0}hasFormat(e){return(this.format&pt[e])!==0}insertRawText(e){let n=e.split(/\r?\n/);if(n.length===1)this.insertText(e);else{e=[];let r=n.length;for(let i=0;i<r;i++){let o=n[i];o!==""&&e.push(me(o)),i!==r-1&&e.push(_n())}this.insertNodes(e)}}insertText(e){var n=this.anchor,r=this.focus,i=this.isCollapsed()||n.isBefore(r),o=this.format;i&&n.type==="element"?Ll(n,r,o):i||r.type!=="element"||Ll(r,n,o);var l=this.getNodes(),s=l.length,a=i?r:n;r=(i?n:r).offset;var c=a.offset;n=l[0],L(n)||M(26),i=n.getTextContent().length;var d=n.getParentOrThrow(),u=l[s-1];if(this.isCollapsed()&&r===i&&(n.isSegmented()||n.isToken()||!n.canInsertTextAfter()||!d.canInsertTextAfter()&&n.getNextSibling()===null)){var g=n.getNextSibling();if((!L(g)||Qr(g))&&(g=me(),g.setFormat(o),d.canInsertTextAfter()?n.insertAfter(g):d.insertAfter(g)),g.select(0,0),n=g,e!==""){this.insertText(e);return}}else if(this.isCollapsed()&&r===0&&(n.isSegmented()||n.isToken()||!n.canInsertTextBefore()||!d.canInsertTextBefore()&&n.getPreviousSibling()===null)){if(g=n.getPreviousSibling(),(!L(g)||Qr(g))&&(g=me(),g.setFormat(o),d.canInsertTextBefore()?n.insertBefore(g):d.insertBefore(g)),g.select(),n=g,e!==""){this.insertText(e);return}}else if(n.isSegmented()&&r!==i)d=me(n.getTextContent()),d.setFormat(o),n.replace(d),n=d;else if(!(this.isCollapsed()||e===""||(g=u.getParent(),d.canInsertTextBefore()&&d.canInsertTextAfter()&&(!R(g)||g.canInsertTextBefore()&&g.canInsertTextAfter())))){this.insertText(""),zl(this.anchor,this.focus,null),this.insertText(e);return}if(s===1)if(n.isToken())e=me(e),e.select(),n.replace(e);else{if(l=n.getFormat(),r===c&&l!==o)if(n.getTextContent()==="")n.setFormat(o);else{l=me(e),l.setFormat(o),l.select(),r===0?n.insertBefore(l):([s]=n.splitText(r),s.insertAfter(l)),l.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);return}n=n.spliceText(r,c-r,e,!0),n.getTextContent()===""?n.remove():this.anchor.type==="text"&&(n.isComposing()?this.anchor.offset-=e.length:this.format=l)}else{o=new Set([...n.getParentKeys(),...u.getParentKeys()]);var m=R(n)?n:n.getParentOrThrow();if(d=R(u)?u:u.getParentOrThrow(),g=u,!m.is(d)&&d.isInline())do g=d,d=d.getParentOrThrow();while(d.isInline());a.type==="text"&&(c!==0||u.getTextContent()==="")||a.type==="element"&&u.getIndexWithinParent()<c?L(u)&&!u.isToken()&&c!==u.getTextContentSize()?(u.isSegmented()&&(a=me(u.getTextContent()),u.replace(a),u=a),u=u.spliceText(0,c,""),o.add(u.__key)):(a=u.getParentOrThrow(),a.canBeEmpty()||a.getChildrenSize()!==1?u.remove():a.remove()):o.add(u.__key),a=d.getChildren(),c=new Set(l),u=m.is(d),m=m.isInline()&&n.getNextSibling()===null?m:n;for(let h=a.length-1;0<=h;h--){let v=a[h];if(v.is(n)||R(v)&&v.isParentOf(n))break;v.isAttached()&&(!c.has(v)||v.is(g)?u||m.insertAfter(v):v.remove())}if(!u)for(a=d,c=null;a!==null;)u=a.getChildren(),d=u.length,(d===0||u[d-1].is(c))&&(o.delete(a.__key),c=a),a=a.getParent();for(n.isToken()?r===i?n.select():(e=me(e),e.select(),n.replace(e)):(n=n.spliceText(r,i-r,e,!0),n.getTextContent()===""?n.remove():n.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length)),e=1;e<s;e++)n=l[e],o.has(n.__key)||n.remove()}}removeText(){this.insertText("")}formatText(e){if(this.isCollapsed())this.toggleFormat(e),pe(null);else{var n=this.getNodes(),r=[];for(var i of n)L(i)&&r.push(i);var o=r.length;if(o===0)this.toggleFormat(e),pe(null);else{i=this.anchor;var l=this.focus,s=this.isBackward();n=s?l:i,i=s?i:l;var a=0,c=r[0];if(l=n.type==="element"?0:n.offset,n.type==="text"&&l===c.getTextContentSize()&&(a=1,c=r[1],l=0),c!=null){s=c.getFormatFlags(e,null);var d=o-1,u=r[d];if(o=i.type==="text"?i.offset:u.getTextContentSize(),c.is(u))l!==o&&(l===0&&o===c.getTextContentSize()?c.setFormat(s):(e=c.splitText(l,o),e=l===0?e[0]:e[1],e.setFormat(s),n.type==="text"&&n.set(e.__key,0,"text"),i.type==="text"&&i.set(e.__key,o-l,"text")),this.format=s);else{l!==0&&([,c]=c.splitText(l),l=0),c.setFormat(s);var g=u.getFormatFlags(e,s);for(0<o&&(o!==u.getTextContentSize()&&([u]=u.splitText(o)),u.setFormat(g)),a+=1;a<d;a++){let m=r[a];if(!m.isToken()){let h=m.getFormatFlags(e,g);m.setFormat(h)}}n.type==="text"&&n.set(c.__key,l,"text"),i.type==="text"&&i.set(u.__key,o,"text"),this.format=s|g}}}}}insertNodes(e,n){if(!this.isCollapsed()){var r=this.isBackward()?this.anchor:this.focus,i=r.getNode().getNextSibling();if(i=i?i.getKey():null,r=(r=r.getNode().getPreviousSibling())?r.getKey():null,this.removeText(),this.isCollapsed()&&this.focus.type==="element"){if(this.focus.key===i&&this.focus.offset===0){var o=me();this.focus.getNode().insertBefore(o)}else this.focus.key===r&&this.focus.offset===this.focus.getNode().getChildrenSize()&&(o=me(),this.focus.getNode().insertAfter(o));o&&(this.focus.set(o.__key,0,"text"),this.anchor.set(o.__key,0,"text"))}}i=this.anchor,r=i.offset;var l=i.getNode();o=l,i.type==="element"&&(o=i.getNode(),i=o.getChildAtIndex(r-1),o=i===null?o:i),i=[];var s=l.getNextSiblings(),a=st(l)?null:l.getTopLevelElementOrThrow();if(L(l))if(o=l.getTextContent().length,r===0&&o!==0)o=l.getPreviousSibling(),o=o!==null?o:l.getParentOrThrow(),i.push(l);else if(r===o)o=l;else{if(l.isToken())return!1;[o,l]=l.splitText(r),i.push(l)}l=o,i.push(...s),s=e[0];var c=!1,d=null;for(let h=0;h<e.length;h++){var u=e[h];if(R(u)&&!u.isInline()){if(u.is(s)){if(R(o)&&o.isEmpty()&&o.canReplaceWith(u)){o.replace(u),o=u,c=!0;continue}var g=u.getFirstDescendant();if(nl(g)){for(g=g.getParentOrThrow();g.isInline();)g=g.getParentOrThrow();if(d=g.getChildren(),c=d.length,R(o))for(var m=0;m<c;m++)o.append(d[m]);else{for(m=c-1;0<=m;m--)o.insertAfter(d[m]);o=o.getParentOrThrow()}if(d=d[c-1],g.remove(),c=!0,g.is(u))continue}}L(o)&&(a===null&&M(27),o=a)}else c&&!ne(u)&&st(o.getParent())&&M(28);c=!1,R(o)&&!o.isInline()?(d=u,ne(u)&&!u.isInline()?o=o.insertAfter(u):R(u)?(u.canBeEmpty()||!u.isEmpty())&&(Pe(o)?(g=o.getChildAtIndex(r),g!==null?g.insertBefore(u):o.append(u),o=u):o=o.insertAfter(u)):(g=o.getFirstChild(),g!==null?g.insertBefore(u):o.append(u),o=u)):!R(u)||R(u)&&u.isInline()||ne(o)&&!o.isInline()?(d=u,o=o.insertAfter(u)):(u=o.getParentOrThrow(),vn(o)&&o.remove(),o=u,h--)}if(n&&(L(l)?l.select():(e=o.getPreviousSibling(),L(e)?e.select():(e=o.getIndexWithinParent(),o.getParentOrThrow().select(e,e)))),R(o)){if(e=L(d)?d:R(d)&&d.isInline()?d.getLastDescendant():o.getLastDescendant(),n||(e===null?o.select():L(e)?e.select():e.selectNext()),i.length!==0)for(n=o,e=i.length-1;0<=e;e--)r=i[e],a=r.getParentOrThrow(),!R(o)||Hl(r)||ne(r)&&!r.isInline()?R(o)||Hl(r)?R(r)&&!r.canInsertAfter(o)?(l=a.constructor.clone(a),R(l)||M(29),l.append(r),o.insertAfter(l)):o.insertAfter(r):(o.insertBefore(r),o=r):(n===o?o.append(r):o.insertBefore(r),o=r),a.isEmpty()&&!a.canBeEmpty()&&a.remove()}else n||(L(o)?o.select():(n=o.getParentOrThrow(),e=o.getIndexWithinParent()+1,n.select(e,e)));return!0}insertParagraph(){this.isCollapsed()||this.removeText();var e=this.anchor,n=e.offset,r=[];if(e.type==="text"){var i=e.getNode(),o=i.getNextSiblings().reverse(),l=i.getParentOrThrow(),s=l.isInline(),a=s?l.getTextContentSize():i.getTextContentSize();n===0?o.push(i):(s&&(r=l.getNextSiblings()),n===a||s&&n===i.getTextContentSize()||([,i]=i.splitText(n),o.push(i)))}else{if(l=e.getNode(),st(l)){o=zt(),r=l.getChildAtIndex(n),o.select(),r!==null?r.insertBefore(o):l.append(o);return}o=l.getChildren().slice(n).reverse()}if(i=o.length,n===0&&0<i&&l.isInline()){if(r=l.getParentOrThrow(),o=r.insertNewAfter(this),R(o))for(r=r.getChildren(),l=0;l<r.length;l++)o.append(r[l])}else if(s=l.insertNewAfter(this),s===null)this.insertLineBreak();else if(R(s))if(a=l.getFirstChild(),n===0&&(l.is(e.getNode())||a&&a.is(e.getNode()))&&0<i)l.insertBefore(s);else{if(l=null,n=r.length,e=s.getParentOrThrow(),0<n)for(a=0;a<n;a++)e.append(r[a]);if(i!==0)for(r=0;r<i;r++)n=o[r],l===null?s.append(n):l.insertBefore(n),l=n;s.canBeEmpty()||s.getChildrenSize()!==0?s.selectStart():(s.selectPrevious(),s.remove())}}insertLineBreak(e){let n=_n();var r=this.anchor;r.type==="element"&&(r=r.getNode(),Pe(r)&&this.insertParagraph()),e?this.insertNodes([n],!0):this.insertNodes([n])&&n.selectNext(0,0)}getCharacterOffsets(){return sr(this)}extract(){var e=this.getNodes(),n=e.length,r=n-1,i=this.anchor;let o=this.focus;var l=e[0];let s=e[r],[a,c]=sr(this);return n===0?[]:n===1?L(l)&&!this.isCollapsed()?(e=a>c?c:a,r=l.splitText(e,a>c?a:c),e=e===0?r[0]:r[1],e!=null?[e]:[]):[l]:(n=i.isBefore(o),L(l)&&(i=n?a:c,i===l.getTextContentSize()?e.shift():i!==0&&([,l]=l.splitText(i),e[0]=l)),L(s)&&(l=s.getTextContent().length,n=n?c:a,n===0?e.pop():n!==l&&([s]=s.splitText(n),e[r]=s)),e)}modify(e,n,r){var i=this.focus,o=this.anchor,l=e==="move",s=ul(i,n);if(ne(s)&&!s.isIsolated())l&&s.isKeyboardSelectable()?(n=Wl(),n.add(s.__key),Rt(n)):(e=n?s.getPreviousSibling():s.getNextSibling(),L(e)?(s=e.__key,n=n?e.getTextContent().length:0,i.set(s,n,"text"),l&&o.set(s,n,"text")):(r=s.getParentOrThrow(),R(e)?(r=e.__key,s=n?e.getChildrenSize():0):(s=s.getIndexWithinParent(),r=r.__key,n||s++),i.set(r,s,"element"),l&&o.set(r,s,"element")));else if((i=Ee?window.getSelection():null)&&(i.modify(e,n?"backward":"forward",r),0<i.rangeCount&&(o=i.getRangeAt(0),s=fl(this.anchor.getNode()),this.applyDOMRange(o),this.dirty=!0,!l))){l=this.getNodes(),e=[],r=!1;for(let a=0;a<l.length;a++){let c=l[a];qn(c,s)?e.push(c):r=!0}r&&0<e.length&&(n?(n=e[0],R(n)?n.selectStart():n.getParentOrThrow().selectStart()):(n=e[e.length-1],R(n)?n.selectEnd():n.getParentOrThrow().selectEnd())),(i.anchorNode!==o.startContainer||i.anchorOffset!==o.startOffset)&&(n=this.focus,l=this.anchor,i=l.key,o=l.offset,s=l.type,at(l,n.key,n.offset,n.type),at(n,i,o,s),this._cachedNodes=null)}}deleteCharacter(e){if(this.isCollapsed()){var n=this.anchor,r=this.focus,i=n.getNode();if(!e&&(n.type==="element"&&R(i)&&n.offset===i.getChildrenSize()||n.type==="text"&&n.offset===i.getTextContentSize())&&(i=i.getNextSibling()||i.getParentOrThrow().getNextSibling(),R(i)&&!i.canExtractContents()))return;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&n.offset===0&&(n.type==="element"?n.getNode():n.getNode().getParentOrThrow()).collapseAtStart(this))return}else{var o=r.type==="text"?r.getNode():null;if(i=n.type==="text"?n.getNode():null,o!==null&&o.isSegmented()){if(n=r.offset,r=o.getTextContentSize(),o.is(i)||e&&n!==r||!e&&n!==0){Il(o,e,n);return}}else if(i!==null&&i.isSegmented()&&(n=n.offset,r=i.getTextContentSize(),i.is(o)||e&&n!==0||!e&&n!==r)){Il(i,e,n);return}if(i=this.anchor,o=this.focus,n=i.getNode(),r=o.getNode(),n===r&&i.type==="text"&&o.type==="text"){var l=i.offset,s=o.offset;let a=l<s;r=a?l:s,s=a?s:l,l=s-1,r!==l&&(n=n.getTextContent().slice(r,s),ll(n)||(e?o.offset=l:i.offset=l))}}}this.removeText()}deleteLine(e){this.isCollapsed()&&(this.anchor.type==="text"&&this.modify("extend",e,"lineboundary"),(e?this.focus:this.anchor).offset===0&&this.modify("extend",e,"character")),this.removeText()}deleteWord(e){this.isCollapsed()&&this.modify("extend",e,"word"),this.removeText()}}function hn(t){return t instanceof or}function Dl(t){let e=t.offset;return t.type==="text"?e:(t=t.getNode(),e===t.getChildrenSize()?t.getTextContent().length:0)}function sr(t){let e=t.anchor;return t=t.focus,e.type==="element"&&t.type==="element"&&e.key===t.key&&e.offset===t.offset?[0,0]:[Dl(e),Dl(t)]}function Il(t,e,n){let r=t.getTextContent().split(/(?=\s)/g),i=r.length,o=0,l=0;for(let s=0;s<i;s++){let a=r[s],c=s===i-1;if(l=o,o+=a.length,e&&o===n||o>n||c){r.splice(s,1),c&&(l=void 0);break}}e=r.join("").trim(),e===""?t.remove():(t.setTextContent(e),t.select(l,l))}function Pl(t,e,n){var r=e;if(t.nodeType===1){let l=!1;var i=t.childNodes,o=i.length;if(r===o&&(l=!0,r=o-1),i=$t(i[r]),L(i))r=l?i.getTextContentSize():0;else{if(o=$t(t),o===null)return null;if(R(o)?(t=o.getChildAtIndex(r),(e=R(t))&&(e=t.getParent(),e=n===null||e===null||!e.canBeEmpty()||e!==n.getNode()),e&&(n=l?t.getLastDescendant():t.getFirstDescendant(),n===null?(o=t,r=0):(t=n,o=t.getParentOrThrow())),L(t)?(i=t,o=null,r=l?t.getTextContentSize():0):t!==o&&l&&r++):(r=o.getIndexWithinParent(),r=e===0&&ne(o)&&$t(t)===o?r:r+1,o=o.getParentOrThrow()),R(o))return new We(o.__key,r,"element")}}else i=$t(t);return L(i)?new We(i.__key,r,"text"):null}function Fl(t,e,n){var r=t.offset,i=t.getNode();r===0?(r=i.getPreviousSibling(),i=i.getParent(),e?(n||!e)&&r===null&&R(i)&&i.isInline()&&(e=i.getPreviousSibling(),L(e)&&(t.key=e.__key,t.offset=e.getTextContent().length)):R(r)&&!n&&r.isInline()?(t.key=r.__key,t.offset=r.getChildrenSize(),t.type="element"):L(r)&&(t.key=r.__key,t.offset=r.getTextContent().length)):r===i.getTextContent().length&&(r=i.getNextSibling(),i=i.getParent(),e&&R(r)&&r.isInline()?(t.key=r.__key,t.offset=0,t.type="element"):(n||e)&&r===null&&R(i)&&i.isInline()&&!i.canInsertTextAfter()&&(e=i.getNextSibling(),L(e)&&(t.key=e.__key,t.offset=0)))}function zl(t,e,n){if(t.type==="text"&&e.type==="text"){var r=t.isBefore(e);let i=t.is(e);Fl(t,r,i),Fl(e,!r,i),i&&(e.key=t.key,e.offset=t.offset,e.type=t.type),r=se(),r.isComposing()&&r._compositionKey!==t.key&&B(n)&&(r=n.anchor,n=n.focus,at(t,r.key,r.offset,r.type),at(e,n.key,n.offset,n.type))}}function Bl(t,e,n,r,i,o){return t===null||n===null||!Zn(i,t,n)||(e=Pl(t,e,B(o)?o.anchor:null),e===null)||(r=Pl(n,r,B(o)?o.focus:null),r===null||e.type==="element"&&r.type==="element"&&(t=$t(t),n=$t(n),ne(t)&&ne(n)))?null:(zl(e,r,o),[e,r])}function Hl(t){return R(t)&&!t.isInline()}function Kl(t,e,n,r,i,o){let l=Ue();return t=new Lt(new We(t,e,i),new We(n,r,o),0),t.dirty=!0,l._selection=t}function Wl(){return new or(new Set)}function Pd(t){let e=t.getEditorState()._selection,n=Ee?window.getSelection():null;return hn(e)||pi(e)?e.clone():Ul(e,n,t)}function Ul(t,e,n){var r=n._window;if(r===null)return null;var i=r.event,o=i?i.type:void 0;r=o==="selectionchange",i=!Zr&&(r||o==="beforeinput"||o==="compositionstart"||o==="compositionend"||o==="click"&&i&&i.detail===3||o==="drop"||o===void 0);let l;if(!B(t)||i){if(e===null)return null;if(i=e.anchorNode,o=e.focusNode,l=e.anchorOffset,e=e.focusOffset,r&&B(t)&&!Zn(n,i,o))return t.clone()}else return t.clone();if(n=Bl(i,l,o,e,n,t),n===null)return null;let[s,a]=n;return new Lt(s,a,B(t)?t.format:0)}function G(){return Ue()._selection}function pn(){return se()._editorState._selection}function ar(t,e,n,r=1){var i=t.anchor,o=t.focus,l=i.getNode(),s=o.getNode();if(e.is(l)||e.is(s))if(l=e.__key,t.isCollapsed())e=i.offset,n<=e&&(n=Math.max(0,e+r),i.set(l,n,"element"),o.set(l,n,"element"),Yl(t));else{var a=t.isBackward();s=a?o:i;var c=s.getNode();i=a?i:o,o=i.getNode(),e.is(c)&&(c=s.offset,n<=c&&s.set(l,Math.max(0,c+r),"element")),e.is(o)&&(e=i.offset,n<=e&&i.set(l,Math.max(0,e+r),"element")),Yl(t)}}function Yl(t){var e=t.anchor,n=e.offset;let r=t.focus;var i=r.offset,o=e.getNode(),l=r.getNode();if(t.isCollapsed())R(o)&&(l=o.getChildrenSize(),l=(i=n>=l)?o.getChildAtIndex(l-1):o.getChildAtIndex(n),L(l)&&(n=0,i&&(n=l.getTextContentSize()),e.set(l.__key,n,"text"),r.set(l.__key,n,"text")));else{if(R(o)){let s=o.getChildrenSize();n=(t=n>=s)?o.getChildAtIndex(s-1):o.getChildAtIndex(n),L(n)&&(o=0,t&&(o=n.getTextContentSize()),e.set(n.__key,o,"text"))}R(l)&&(n=l.getChildrenSize(),i=(e=i>=n)?l.getChildAtIndex(n-1):l.getChildAtIndex(i),L(i)&&(l=0,e&&(l=i.getTextContentSize()),r.set(i.__key,l,"text")))}}function Fd(t,e){if(e=e.getEditorState()._selection,t=t._selection,B(t)){var n=t.anchor;let r=t.focus,i;n.type==="text"&&(i=n.getNode(),i.selectionTransform(e,t)),r.type==="text"&&(n=r.getNode(),i!==n&&n.selectionTransform(e,t))}}function cr(t,e,n,r,i){let o=null,l=0,s=null;r!==null?(o=r.__key,L(r)?(l=r.getTextContentSize(),s="text"):R(r)&&(l=r.getChildrenSize(),s="element")):i!==null&&(o=i.__key,L(i)?s="text":R(i)&&(s="element")),o!==null&&s!==null?t.set(o,l,s):(l=e.getIndexWithinParent(),l===-1&&(l=n.getChildrenSize()),t.set(n.__key,l,"element"))}function Vl(t,e,n,r,i){t.type==="text"?(t.key=n,e||(t.offset+=i)):t.offset>r.getIndexWithinParent()&&--t.offset}let ye=null,he=null,le=!1,mi=!1,mn=0;function Oe(){le&&M(13)}function Ue(){return ye===null&&M(15),ye}function se(){return he===null&&M(16),he}function jl(t,e,n){var r=e.__type;let i=t._nodes.get(r);for(i===void 0&&M(30),t=n.get(r),t===void 0&&(t=Array.from(i.transforms),n.set(r,t)),n=t.length,r=0;r<n&&(t[r](e),e.isAttached());r++);}function zd(t,e){e=e._dirtyLeaves,t=t._nodeMap;for(let n of e)e=t.get(n),L(e)&&e.isAttached()&&e.isSimpleText()&&!e.isUnmergeable()&&xl(e)}function Bd(t,e){let n=e._dirtyLeaves,r=e._dirtyElements;t=t._nodeMap;let i=ot(),o=new Map;var l=n;let s=l.size;for(var a=r,c=a.size;0<s||0<c;){if(0<s){e._dirtyLeaves=new Set;for(let d of l)l=t.get(d),L(l)&&l.isAttached()&&l.isSimpleText()&&!l.isUnmergeable()&&xl(l),l!==void 0&&l!==void 0&&l.__key!==i&&l.isAttached()&&jl(e,l,o),n.add(d);if(l=e._dirtyLeaves,s=l.size,0<s){mn++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map;for(let d of a)a=d[0],c=d[1],(a==="root"||c)&&(l=t.get(a),l!==void 0&&l!==void 0&&l.__key!==i&&l.isAttached()&&jl(e,l,o),r.set(a,c));l=e._dirtyLeaves,s=l.size,a=e._dirtyElements,c=a.size,mn++}e._dirtyLeaves=n,e._dirtyElements=r}function xi(t,e){var n=e.get(t.type);if(n===void 0&&M(17),n=n.klass,t.type!==n.getType()&&M(18),n=n.importJSON(t),t=t.children,R(n)&&Array.isArray(t))for(let r=0;r<t.length;r++){let i=xi(t[r],e);n.append(i)}return n}function Gl(t,e){let n=ye,r=le,i=he;ye=t,le=!0,he=null;try{return e()}finally{ye=n,le=r,he=i}}function xt(t){var e=t._pendingEditorState,n=t._rootElement,r=t._headless;if((n!==null||r)&&e!==null){var i=t._editorState,o=i._selection,l=e._selection,s=t._dirtyType!==0,a=ye,c=le,d=he,u=t._updating,g=t._observer,m=null;if(t._pendingEditorState=null,t._editorState=e,!r&&s&&g!==null){he=t,ye=e,le=!1,t._updating=!0;try{var h=t._dirtyType,v=t._dirtyElements,C=t._dirtyLeaves;g.disconnect(),Ne=Ze=fe="",wl=h===2,nr=null,Te=t,mt=t._config,on=t._nodes,tr=Te._listeners.mutation,ii=v,oi=C,ln=i._nodeMap,At=e._nodeMap,ri=e._readOnly,li=new Map(t._keyToDOMMap);var N=new Map;sn=N,cn("root",null),sn=li=mt=At=ln=oi=ii=on=Te=void 0,m=N}catch(ee){if(ee instanceof Error&&t._onError(ee),mi)throw ee;es(t,null,n,e),qo(t),t._dirtyType=2,mi=!0,xt(t),mi=!1;return}finally{g.observe(n,{characterData:!0,childList:!0,subtree:!0}),t._updating=u,ye=a,le=c,he=d}}e._readOnly||(e._readOnly=!0),u=t._dirtyLeaves,g=t._dirtyElements,N=t._normalizedNodes,h=t._updateTags,c=t._deferred,s&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),C=t._decorators,v=t._pendingDecorators||C;var p=e._nodeMap;for(ie in v)p.has(ie)||(v===C&&(v=il(t)),delete v[ie]);if(r=r?null:Ee?window.getSelection():null,t._editable&&r!==null&&(s||l===null||l.dirty)){he=t,ye=e;try{e:{let ee=r.anchorNode,ce=r.focusNode,Jt=r.anchorOffset,oe=r.focusOffset,de=document.activeElement;if(!h.has("collaboration")||de===n)if(B(l)){var x=l.anchor,T=l.focus,E=x.key,k=T.key,O=Qn(t,E),D=Qn(t,k),$=x.offset,W=T.offset,P=l.format,H=l.isCollapsed();s=O,k=D;var ie=!1;if(x.type==="text"&&(s=Jn(O),ie=x.getNode().getFormat()!==P),T.type==="text"&&(k=Jn(D)),s!==null&&k!==null){if(H&&(o===null||ie||B(o)&&o.format!==P)){var q=performance.now();bl=[P,$,E,q]}if(Jt===$&&oe===W&&ee===s&&ce===k&&(r.type!=="Range"||!H)&&(n===null||de!==null&&n.contains(de)||n.focus({preventScroll:!0}),!jn&&!Vn||x.type!=="element"))break e;try{if(r.setBaseAndExtent(s,$,k,W),!h.has("skip-scroll-into-view")&&l.isCollapsed()&&n!==null&&n===de){let Ce=x.getNode();if(R(Ce)){let ue=Ce.getDescendantByIndex(x.offset);ue!==null&&(Ce=ue)}let Ke=t.getElementByKey(Ce.__key);if(Ke!==null){let ue=Ke.getBoundingClientRect();if(ue.bottom>er(t).innerHeight)Ke.scrollIntoView(!1);else if(0>ue.top)Ke.scrollIntoView();else{let Ir=n.getBoundingClientRect();Math.floor(ue.bottom)>Math.floor(Ir.bottom)?Ke.scrollIntoView(!1):Math.floor(ue.top)<Math.floor(Ir.top)&&Ke.scrollIntoView()}h.add("scroll-into-view")}}ui=!0}catch{}}}else o!==null&&Zn(t,ee,ce)&&r.removeAllRanges()}}finally{he=d,ye=a}}if(m!==null)for(n=m,o=Array.from(t._listeners.mutation),l=o.length,a=0;a<l;a++){let[ee,ce]=o[a];d=n.get(ce),d!==void 0&&ee(d,{dirtyLeaves:u,updateTags:h})}if(n=t._pendingDecorators,n!==null&&(t._decorators=n,t._pendingDecorators=null,xn("decorator",t,!0,n)),n=ol(i),o=ol(e),n!==o&&xn("textcontent",t,!0,o),xn("update",t,!0,{dirtyElements:g,dirtyLeaves:u,editorState:e,normalizedNodes:N,prevEditorState:i,tags:h}),t._deferred=[],c.length!==0){e=t._updating,t._updating=!0;try{for(i=0;i<c.length;i++)c[i]()}finally{t._updating=e}}if(e=t._updates,e.length!==0&&(e=e.shift())){let[ee,ce]=e;Jl(t,ee,ce)}}}function xn(t,e,n,...r){let i=e._updating;e._updating=n;try{let o=Array.from(e._listeners[t]);for(t=0;t<o.length;t++)o[t].apply(null,r)}finally{e._updating=i}}function A(t,e,n){if(t._updating===!1||he!==t){let o=!1;return t.update(()=>{o=A(t,e,n)}),o}let r=qr(t);for(let o=4;0<=o;o--)for(let l=0;l<r.length;l++){var i=r[l]._commands.get(e);if(i!==void 0&&(i=i[o],i!==void 0)){i=Array.from(i);let s=i.length;for(let a=0;a<s;a++)if(i[a](n,t)===!0)return!0}}return!1}function Zl(t,e){let n=t._updates;for(e=e||!1;n.length!==0;){var r=n.shift();if(r){let[i,o]=r,l;o!==void 0&&(r=o.onUpdate,l=o.tag,o.skipTransforms&&(e=!0),r&&t._deferred.push(r),l&&t._updateTags.add(l)),i()}}return e}function Jl(t,e,n){let r=t._updateTags;var i,o=i=!1;if(n!==void 0){var l=n.onUpdate;i=n.tag,i!=null&&r.add(i),i=n.skipTransforms||!1,o=n.discrete||!1}l&&t._deferred.push(l),n=t._editorState,l=t._pendingEditorState;let s=!1;(l===null||l._readOnly)&&(l=t._pendingEditorState=new ur(new Map(n._nodeMap)),s=!0),l._flushSync=o,o=ye;let a=le,c=he,d=t._updating;ye=l,le=!1,t._updating=!0,he=t;try{s&&(t._headless?n._selection!=null&&(l._selection=n._selection.clone()):l._selection=Pd(t));let u=t._compositionKey;e(),i=Zl(t,i),Fd(l,t),t._dirtyType!==0&&(i?zd(l,t):Bd(l,t),Zl(t),Td(n,l,t._dirtyLeaves,t._dirtyElements)),u!==t._compositionKey&&(l._flushSync=!0);let g=l._selection;if(B(g)){let m=l._nodeMap,h=g.focus.key;m.get(g.anchor.key)!==void 0&&m.get(h)!==void 0||M(19)}else hn(g)&&g._nodes.size===0&&(l._selection=null)}catch(u){u instanceof Error&&t._onError(u),t._pendingEditorState=n,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),xt(t);return}finally{ye=o,le=a,he=c,t._updating=d,mn=0}t._dirtyType!==0||Hd(l,t)?l._flushSync?(l._flushSync=!1,xt(t)):s&&kd(()=>{xt(t)}):(l._flushSync=!1,s&&(r.clear(),t._deferred=[],t._pendingEditorState=null))}function Re(t,e,n){t._updating?t._updates.push([e,n]):Jl(t,e,n)}function _i(t,e,n){Oe();var r=t.__key;let i=t.getParent();if(i!==null){var o=Nd(t),l=!1;if(B(o)&&e){var s=o.anchor;let a=o.focus;s.key===r&&(cr(s,t,i,t.getPreviousSibling(),t.getNextSibling()),l=!0),a.key===r&&(cr(a,t,i,t.getPreviousSibling(),t.getNextSibling()),l=!0)}s=i.getWritable().__children,r=s.indexOf(r),r===-1&&M(31),Ot(t),s.splice(r,1),t.getWritable().__parent=null,B(o)&&e&&!l&&ar(o,i,r,-1),n||st(i)||i.canBeEmpty()||!i.isEmpty()||_i(i,e),Pe(i)&&i.isEmpty()&&i.selectEnd()}}function Xl(t){return t=J(t),t===null&&M(63),t}class dr{static getType(){M(64)}static clone(){M(65)}constructor(e){if(this.__type=this.constructor.getType(),this.__parent=null,e!=null)this.__key=e;else{Oe(),99<mn&&M(14),e=se();var n=Ue(),r=""+yd++;n._nodeMap.set(r,this),R(this)?e._dirtyElements.set(r,!0):e._dirtyLeaves.add(r),e._cloneNotNeeded.add(r),e._dirtyType=1,this.__key=r}}getType(){return this.__type}isAttached(){for(var e=this.__key;e!==null;){if(e==="root")return!0;if(e=J(e),e===null)break;e=e.__parent}return!1}isSelected(){let e=G();if(e==null)return!1;let n=e.getNodes().some(r=>r.__key===this.__key);return L(this)?n:B(e)&&e.anchor.type==="element"&&e.focus.type==="element"&&e.anchor.key===e.focus.key&&e.anchor.offset===e.focus.offset?!1:n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();return e===null?-1:e.__children.indexOf(this.__key)}getParent(){let e=this.getLatest().__parent;return e===null?null:J(e)}getParentOrThrow(){let e=this.getParent();return e===null&&M(66),e}getTopLevelElement(){let e=this;for(;e!==null;){let n=e.getParent();if(st(n))return e;e=n}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return e===null&&M(67),e}getParents(){let e=[],n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){let e=[],n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){var e=this.getParent();if(e===null)return null;e=e.__children;let n=e.indexOf(this.__key);return 0>=n?null:J(e[n-1])}getPreviousSiblings(){var e=this.getParent();if(e===null)return[];e=e.__children;let n=e.indexOf(this.__key);return e.slice(0,n).map(r=>Xl(r))}getNextSibling(){var e=this.getParent();if(e===null)return null;e=e.__children;let n=e.length,r=e.indexOf(this.__key);return r>=n-1?null:J(e[r+1])}getNextSiblings(){var e=this.getParent();if(e===null)return[];e=e.__children;let n=e.indexOf(this.__key);return e.slice(n+1).map(r=>Xl(r))}getCommonAncestor(e){let n=this.getParents();var r=e.getParents();R(this)&&n.unshift(this),R(e)&&r.unshift(e),e=n.length;var i=r.length;if(e===0||i===0||n[e-1]!==r[i-1])return null;for(r=new Set(r),i=0;i<e;i++){let o=n[i];if(r.has(o))return o}return null}is(e){return e==null?!1:this.__key===e.__key}isBefore(e){if(e.isParentOf(this))return!0;if(this.isParentOf(e))return!1;var n=this.getCommonAncestor(e);let r=this;for(;;){var i=r.getParentOrThrow();if(i===n){i=i.__children.indexOf(r.__key);break}r=i}for(r=e;;){if(e=r.getParentOrThrow(),e===n){n=e.__children.indexOf(r.__key);break}r=e}return i<n}isParentOf(e){let n=this.__key;if(n===e.__key)return!1;for(;e!==null;){if(e.__key===n)return!0;e=e.getParent()}return!1}getNodesBetween(e){let n=this.isBefore(e),r=[],i=new Set;for(var o=this;;){var l=o.__key;if(i.has(l)||(i.add(l),r.push(o)),o===e)break;if(l=R(o)?n?o.getFirstChild():o.getLastChild():null,l!==null)o=l;else if(l=n?o.getNextSibling():o.getPreviousSibling(),l!==null)o=l;else{if(o=o.getParentOrThrow(),i.has(o.__key)||r.push(o),o===e)break;l=o;do l===null&&M(68),o=n?l.getNextSibling():l.getPreviousSibling(),l=l.getParent(),l!==null&&(o!==null||i.has(l.__key)||r.push(l));while(o===null)}}return n||r.reverse(),r}isDirty(){let e=se()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){let e=J(this.__key);return e===null&&M(69),e}getWritable(){Oe();var e=Ue(),n=se();e=e._nodeMap;let r=this.__key,i=this.getLatest(),o=i.__parent;n=n._cloneNotNeeded;var l=G();return l!==null&&(l._cachedNodes=null),n.has(r)?(bt(i),i):(l=i.constructor.clone(i),l.__parent=o,R(i)&&R(l)?(l.__children=Array.from(i.__children),l.__indent=i.__indent,l.__format=i.__format,l.__dir=i.__dir):L(i)&&L(l)&&(l.__format=i.__format,l.__style=i.__style,l.__mode=i.__mode,l.__detail=i.__detail),n.add(r),l.__key=r,bt(l),e.set(r,l),l)}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(){M(70)}updateDOM(){M(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){M(72)}static importJSON(){M(18)}remove(e){_i(this,!0,e)}replace(e){Oe();let n=this.__key;e=e.getWritable(),Xn(e);var r=this.getParentOrThrow(),i=r.getWritable().__children;let o=i.indexOf(this.__key),l=e.__key;return o===-1&&M(31),i.splice(o,0,l),e.__parent=r.__key,_i(this,!1),Ot(e),i=G(),B(i)&&(r=i.anchor,i=i.focus,r.key===n&&Ml(r,e),i.key===n&&Ml(i,e)),ot()===n&&pe(l),e}insertAfter(e){Oe();var n=this.getWritable(),r=e.getWritable(),i=r.getParent();let o=G();var l=e.getIndexWithinParent(),s=!1,a=!1;i!==null&&(Xn(r),B(o)&&(a=i.__key,s=o.anchor,i=o.focus,s=s.type==="element"&&s.key===a&&s.offset===l+1,a=i.type==="element"&&i.key===a&&i.offset===l+1)),l=this.getParentOrThrow().getWritable(),i=r.__key,r.__parent=n.__parent;let c=l.__children;return n=c.indexOf(n.__key),n===-1&&M(31),c.splice(n+1,0,i),Ot(r),B(o)&&(ar(o,l,n+1),r=l.__key,s&&o.anchor.set(r,n+2,"element"),a&&o.focus.set(r,n+2,"element")),e}insertBefore(e){var n=this.getWritable(),r=e.getWritable();Xn(r);let i=this.getParentOrThrow().getWritable(),o=r.__key;r.__parent=n.__parent;let l=i.__children;return n=l.indexOf(n.__key),n===-1&&M(31),l.splice(n,0,o),Ot(r),r=G(),B(r)&&ar(r,i,n),e}selectPrevious(e,n){Oe();let r=this.getPreviousSibling(),i=this.getParentOrThrow();return r===null?i.select(0,0):R(r)?r.select():L(r)?r.select(e,n):(e=r.getIndexWithinParent()+1,i.select(e,e))}selectNext(e,n){Oe();let r=this.getNextSibling(),i=this.getParentOrThrow();return r===null?i.select():R(r)?r.select(0,0):L(r)?r.select(e,n):(e=r.getIndexWithinParent(),i.select(e,e))}markDirty(){this.getWritable()}}class Ql extends dr{constructor(e){super(e)}decorate(){M(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function ne(t){return t instanceof Ql}class _t extends dr{constructor(e){super(e),this.__children=[],this.__indent=this.__format=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){let e=this.getFormat();return md[e]||""}getIndent(){return this.getLatest().__indent}getChildren(){let e=this.getLatest().__children,n=[];for(let r=0;r<e.length;r++){let i=J(e[r]);i!==null&&n.push(i)}return n}getChildrenKeys(){return this.getLatest().__children}getChildrenSize(){return this.getLatest().__children.length}isEmpty(){return this.getChildrenSize()===0}isDirty(){let e=se()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){let e=this.getLatest();return e.getParentOrThrow().getLastChild()===e}getAllTextNodes(){let e=[],n=this.getLatest().__children;for(let i=0;i<n.length;i++){var r=J(n[i]);L(r)?e.push(r):R(r)&&(r=r.getAllTextNodes(),e.push(...r))}return e}getFirstDescendant(){let e=this.getFirstChild();for(;e!==null;){if(R(e)){let n=e.getFirstChild();if(n!==null){e=n;continue}}break}return e}getLastDescendant(){let e=this.getLastChild();for(;e!==null;){if(R(e)){let n=e.getLastChild();if(n!==null){e=n;continue}}break}return e}getDescendantByIndex(e){let n=this.getChildren(),r=n.length;return e>=r?(e=n[r-1],R(e)&&e.getLastDescendant()||e||null):(e=n[e],R(e)&&e.getFirstDescendant()||e||null)}getFirstChild(){let e=this.getLatest().__children;return e.length===0?null:J(e[0])}getFirstChildOrThrow(){let e=this.getFirstChild();return e===null&&M(45),e}getLastChild(){let e=this.getLatest().__children,n=e.length;return n===0?null:J(e[n-1])}getLastChildOrThrow(){let e=this.getLastChild();return e===null&&M(96),e}getChildAtIndex(e){return e=this.getLatest().__children[e],e===void 0?null:J(e)}getTextContent(){let e="",n=this.getChildren(),r=n.length;for(let i=0;i<r;i++){let o=n[i];e+=o.getTextContent(),R(o)&&i!==r-1&&!o.isInline()&&(e+=`
23
+ `?(t.preventDefault(),M(e,Gr,void 0)):i==null&&t.dataTransfer?(i=t.dataTransfer.getData("text/plain"),t.preventDefault(),r.insertRawText(i)):i!=null&&wl(r,i)&&(t.preventDefault(),M(e,Ft,i));else switch(t.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":M(e,Ft,t);break;case"insertFromComposition":he(null),M(e,Ft,t);break;case"insertLineBreak":he(null),M(e,dn,!1);break;case"insertParagraph":he(null),kn?(kn=!1,M(e,dn,!1)):M(e,Gr,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":M(e,Zr,t);break;case"deleteByComposition":Gd(l,o)&&M(e,Jr,void 0);break;case"deleteByDrag":case"deleteByCut":M(e,Jr,void 0);break;case"deleteContent":M(e,cn,!1);break;case"deleteWordBackward":M(e,un,!0);break;case"deleteWordForward":M(e,un,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":M(e,gn,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":M(e,gn,!1);break;case"formatStrikeThrough":M(e,ot,"strikethrough");break;case"formatBold":M(e,ot,"bold");break;case"formatItalic":M(e,ot,"italic");break;case"formatUnderline":M(e,ot,"underline");break;case"historyUndo":M(e,Xr,void 0);break;case"historyRedo":M(e,qr,void 0)}}})}function Jd(t,e){t.stopPropagation(),$e(e,()=>{var n=Z(),r=t.data;r!=null&&H(n)&&wl(n,r)?(Cn&&(Ci(e,r),Cn=!1),M(e,Ft,r),r=r.length,mt&&1<r&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=r),ti||ni||!e.isComposing()||(wn=0,he(null))):(vl(!1),Cn&&(Ci(e,r||void 0),Cn=!1)),Re(),n=oe(),al(n)})}function Xd(t,e){$e(e,()=>{let n=Z();if(H(n)&&!e.isComposing()){let r=n.anchor;he(r.key),(t.timeStamp<wn+30||r.type==="element"||!n.isCollapsed()||n.anchor.getNode().getFormat()!==n.format)&&M(e,Ft,Od)}})}function Ci(t,e){var n=t._compositionKey;if(he(null),n!==null&&e!=null){if(e===""){e=q(n),t=rr(t.getElementByKey(n)),t!==null&&t.nodeValue!==null&&L(e)&&ai(e,t.nodeValue,null,null,!0);return}if(e[e.length-1]===`
24
+ `&&(n=Z(),H(n))){e=n.focus,n.anchor.set(e.key,e.offset,e.type),M(t,er,null);return}}vl(!0,e)}function qd(t,e){mt?Cn=!0:$e(e,()=>{Ci(e,t.data)})}function Qd(t,e){if(wn=t.timeStamp,Pl=t.keyCode,!e.isComposing()){var{keyCode:n,shiftKey:r,ctrlKey:i,metaKey:o,altKey:l}=t;if(n!==39||i||o||l)if(n!==39||l||r||!i&&!o)if(n!==37||i||o||l)if(n!==37||l||r||!i&&!o)if(n!==38||i||o)if(n!==40||i||o)if(n===13&&r)kn=!0,M(e,er,t);else if(n===32)M(e,Go,t);else if(be&&i&&n===79)t.preventDefault(),kn=!0,M(e,dn,!0);else if(n!==13||r){var s=be?l||o?!1:n===8||n===72&&i:i||l||o?!1:n===8;s?n===8?M(e,Zo,t):(t.preventDefault(),M(e,cn,!0)):n===27?M(e,Jo,t):(s=be?r||l||o?!1:n===46||n===68&&i:i||l||o?!1:n===46,s?n===46?M(e,Xo,t):(t.preventDefault(),M(e,cn,!1)):n===8&&(be?l:i)?(t.preventDefault(),M(e,un,!0)):n===46&&(be?l:i)?(t.preventDefault(),M(e,un,!1)):be&&o&&n===8?(t.preventDefault(),M(e,gn,!0)):be&&o&&n===46?(t.preventDefault(),M(e,gn,!1)):n===66&&!l&&(be?o:i)?(t.preventDefault(),M(e,ot,"bold")):n===85&&!l&&(be?o:i)?(t.preventDefault(),M(e,ot,"underline")):n===73&&!l&&(be?o:i)?(t.preventDefault(),M(e,ot,"italic")):n!==9||l||i||o?n===90&&!r&&(be?o:i)?(t.preventDefault(),M(e,Xr,void 0)):(s=be?n===90&&o&&r:n===89&&i||n===90&&i&&r,s?(t.preventDefault(),M(e,qr,void 0)):En(e._editorState._selection)&&(s=r?!1:n===67?be?o:i:!1,s?(t.preventDefault(),M(e,Qr,t)):(s=r?!1:n===88?be?o:i:!1,s&&(t.preventDefault(),M(e,ei,t))))):M(e,qo,t))}else kn=!1,M(e,er,t);else M(e,Vo,t);else M(e,Yo,t);else M(e,jo,t);else M(e,Uo,t);else M(e,Wo,t);else M(e,Ko,t);(i||r||l||o)&&M(e,ol,t)}}function Hl(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}let Wt=new Map;function Kl(){let t=Ne?window.getSelection():null;if(t!==null){var e=dl(t.anchorNode);if(e!==null){ki&&(ki=!1,$e(e,()=>{var l=Nn(),s=t.anchorNode;s!==null&&(s=s.nodeType,s===1||s===3)&&(l=Ql(l,t,e),_t(l))}));var n=si(e);n=n[n.length-1];var r=n._key,i=Wt.get(r),o=i||n;o!==e&&Bl(t,o,!1),Bl(t,e,!0),e!==n?Wt.set(r,e):i&&Wt.delete(r)}}}function eu(t,e){yn===0&&t.ownerDocument.addEventListener("selectionchange",Kl),yn++,t.__lexicalEditor=e;let n=Hl(t);for(let r=0;r<wi.length;r++){let[i,o]=wi[r],l=typeof o=="function"?s=>{s._lexicalHandled!==!0&&(s._lexicalHandled=!0,e.isEditable()&&o(s,e))}:s=>{if(s._lexicalHandled!==!0&&(s._lexicalHandled=!0,e.isEditable()))switch(i){case"cut":return M(e,ei,s);case"copy":return M(e,Qr,s);case"paste":return M(e,Zr,s);case"dragstart":return M(e,el,s);case"dragover":return M(e,tl,s);case"dragend":return M(e,nl,s);case"focus":return M(e,rl,s);case"blur":return M(e,il,s);case"drop":return M(e,Qo,s)}};t.addEventListener(i,l),n.push(()=>{t.removeEventListener(i,l)})}}class je{constructor(e,n,r){this._selection=null,this.key=e,this.offset=n,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let n=this.getNode(),r=e.getNode(),i=this.offset;if(e=e.offset,O(n)){var o=n.getDescendantByIndex(i);n=o!=null?o:n}return O(r)&&(o=r.getDescendantByIndex(e),r=o!=null?o:r),n===r?i<e:n.isBefore(r)}getNode(){let e=q(this.key);return e===null&&A(20),e}set(e,n,r){let i=this._selection,o=this.key;this.key=e,this.offset=n,this.type=r,ae||(lt()===o&&he(e),i!==null&&(i._cachedNodes=null,i.dirty=!0))}}function Ei(t,e){let n=e.__key,r=t.offset,i="element";if(L(e))i="text",e=e.getTextContentSize(),r>e&&(r=e);else if(!O(e)){var o=e.getNextSibling();L(o)?(n=o.__key,r=0):(o=e.getParent())&&(n=o.__key,r=e.getIndexWithinParent()+1)}t.set(n,r,i)}function Wl(t,e){if(O(e)){let n=e.getLastDescendant();O(n)||L(n)?Ei(t,n):Ei(t,e)}else Ei(t,e)}function Ul(t,e,n){let r=t.getNode(),i=r.getChildAtIndex(t.offset),o=fe(),l=Me(r)?Gt().append(o):o;o.setFormat(n),i===null?r.append(l):i.insertBefore(l),t.is(e)&&e.set(o.__key,0,"text"),t.set(o.__key,0,"text")}function ct(t,e,n,r){t.key=e,t.offset=n,t.type=r}class hr{constructor(e){this.dirty=!1,this._nodes=e,this._cachedNodes=null}is(e){if(!En(e))return!1;let n=this._nodes,r=e._nodes;return n.size===r.size&&Array.from(n).every(i=>r.has(i))}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 hr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,n){let r=this.getNodes(),i=r.length;var o=r[i-1];if(L(o))o=o.select();else{let l=o.getIndexWithinParent()+1;o=o.getParentOrThrow().select(l,l)}for(o.insertNodes(e,n),e=0;e<i;e++)r[e].remove();return!0}getNodes(){var e=this._cachedNodes;if(e!==null)return e;var n=this._nodes;e=[];for(let r of n)n=q(r),n!==null&&e.push(n);return ae||(this._cachedNodes=e),e}getTextContent(){let e=this.getNodes(),n="";for(let r=0;r<e.length;r++)n+=e[r].getTextContent();return n}}function H(t){return t instanceof wt}class fr{constructor(e,n,r){this.gridKey=e,this.anchor=n,this.focus=r,this.dirty=!1,this._cachedNodes=null,n._selection=this,r._selection=this}is(e){return Ni(e)?this.gridKey===e.gridKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus):!1}set(e,n,r){this.dirty=!0,this.gridKey=e,this.anchor.key=n,this.focus.key=r,this._cachedNodes=null}clone(){return new fr(this.gridKey,this.anchor,this.focus)}isCollapsed(){return!1}isBackward(){return this.focus.isBefore(this.anchor)}getCharacterOffsets(){return pr(this)}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,n){let r=this.focus.getNode();return bl(r.select(0,r.getChildrenSize())).insertNodes(e,n)}getShape(){var e=q(this.anchor.key);e===null&&A(21);var n=e.getIndexWithinParent();e=e.getParentOrThrow().getIndexWithinParent();var r=q(this.focus.key);r===null&&A(22);var i=r.getIndexWithinParent();let o=r.getParentOrThrow().getIndexWithinParent();return r=Math.min(n,i),n=Math.max(n,i),i=Math.min(e,o),e=Math.max(e,o),{fromX:Math.min(r,n),fromY:Math.min(i,e),toX:Math.max(r,n),toY:Math.max(i,e)}}getNodes(){var e=this._cachedNodes;if(e!==null)return e;e=new Set;let{fromX:n,fromY:r,toX:i,toY:o}=this.getShape();var l=q(this.gridKey);hs(l)||A(23),e.add(l),l=l.getChildren();for(let c=r;c<=o;c++){var s=l[c];e.add(s),ps(s)||A(24),s=s.getChildren();for(let d=n;d<=i;d++){var a=s[d];for(us(a)||A(25),e.add(a),a=a.getChildren();0<a.length;){let u=a.shift();e.add(u),O(u)&&a.unshift(...u.getChildren())}}}return e=Array.from(e),ae||(this._cachedNodes=e),e}getTextContent(){let e=this.getNodes(),n="";for(let r=0;r<e.length;r++)n+=e[r].getTextContent();return n}}function Ni(t){return t instanceof fr}class wt{constructor(e,n,r){this.anchor=e,this.focus=n,this.dirty=!1,this.format=r,this._cachedNodes=null,e._selection=this,n._selection=this}is(e){return H(e)?this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format:!1}isBackward(){return this.focus.isBefore(this.anchor)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){var e=this._cachedNodes;if(e!==null)return e;var n=this.anchor,r=this.focus;e=n.getNode();let i=r.getNode();return O(e)&&(n=e.getDescendantByIndex(n.offset),e=n!=null?n:e),O(i)&&(r=i.getDescendantByIndex(r.offset),i=r!=null?r:i),e=e.is(i)?O(e)&&0<e.getChildrenSize()?[]:[e]:e.getNodesBetween(i),ae||(this._cachedNodes=e),e}setTextNodeRange(e,n,r,i){ct(this.anchor,e.__key,n,"text"),ct(this.focus,r.__key,i,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){let e=this.getNodes();if(e.length===0)return"";let n=e[0],r=e[e.length-1],i=this.anchor.isBefore(this.focus),[o,l]=pr(this),s="",a=!0;for(let c=0;c<e.length;c++){let d=e[c];if(O(d)&&!d.isInline())a||(s+=`
25
+ `),a=!d.isEmpty();else if(a=!1,L(d)){let u=d.getTextContent();d===n?u=d===r?o<l?u.slice(o,l):u.slice(l,o):i?u.slice(o):u.slice(l):d===r&&(u=i?u.slice(0,l):u.slice(0,o)),s+=u}else!ee(d)&&!Rn(d)||d===r&&this.isCollapsed()||(s+=d.getTextContent())}return s}applyDOMRange(e){let n=oe(),r=n.getEditorState()._selection;if(e=Jl(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,r),e!==null){var[i,o]=e;ct(this.anchor,i.key,i.offset,i.type),ct(this.focus,o.key,o.offset,o.type),this._cachedNodes=null}}clone(){let e=this.anchor,n=this.focus;return new wt(new je(e.key,e.offset,e.type),new je(n.key,n.offset,n.type),this.format)}toggleFormat(e){this.format=ul(this.format,e,null),this.dirty=!0}hasFormat(e){return(this.format&xt[e])!==0}insertRawText(e){let n=e.split(/\r?\n/);if(n.length===1)this.insertText(e);else{e=[];let r=n.length;for(let i=0;i<r;i++){let o=n[i];o!==""&&e.push(fe(o)),i!==r-1&&e.push(bn())}this.insertNodes(e)}}insertText(e){var n=this.anchor,r=this.focus,i=this.isCollapsed()||n.isBefore(r),o=this.format;i&&n.type==="element"?Ul(n,r,o):i||r.type!=="element"||Ul(r,n,o);var l=this.getNodes(),s=l.length,a=i?r:n;r=(i?n:r).offset;var c=a.offset;n=l[0],L(n)||A(26),i=n.getTextContent().length;var d=n.getParentOrThrow(),u=l[s-1];if(this.isCollapsed()&&r===i&&(n.isSegmented()||n.isToken()||!n.canInsertTextAfter()||!d.canInsertTextAfter()&&n.getNextSibling()===null)){var g=n.getNextSibling();if((!L(g)||li(g))&&(g=fe(),g.setFormat(o),d.canInsertTextAfter()?n.insertAfter(g):d.insertAfter(g)),g.select(0,0),n=g,e!==""){this.insertText(e);return}}else if(this.isCollapsed()&&r===0&&(n.isSegmented()||n.isToken()||!n.canInsertTextBefore()||!d.canInsertTextBefore()&&n.getPreviousSibling()===null)){if(g=n.getPreviousSibling(),(!L(g)||li(g))&&(g=fe(),g.setFormat(o),d.canInsertTextBefore()?n.insertBefore(g):d.insertBefore(g)),g.select(),n=g,e!==""){this.insertText(e);return}}else if(n.isSegmented()&&r!==i)d=fe(n.getTextContent()),d.setFormat(o),n.replace(d),n=d;else if(!(this.isCollapsed()||e===""||(g=u.getParent(),d.canInsertTextBefore()&&d.canInsertTextAfter()&&(!O(g)||g.canInsertTextBefore()&&g.canInsertTextAfter())))){this.insertText(""),Zl(this.anchor,this.focus,null),this.insertText(e);return}if(s===1)if(n.isToken())e=fe(e),e.select(),n.replace(e);else{if(l=n.getFormat(),r===c&&l!==o)if(n.getTextContent()==="")n.setFormat(o);else{l=fe(e),l.setFormat(o),l.select(),r===0?n.insertBefore(l):([s]=n.splitText(r),s.insertAfter(l)),l.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);return}n=n.spliceText(r,c-r,e,!0),n.getTextContent()===""?n.remove():this.anchor.type==="text"&&(n.isComposing()?this.anchor.offset-=e.length:this.format=l)}else{o=new Set([...n.getParentKeys(),...u.getParentKeys()]);var m=O(n)?n:n.getParentOrThrow();if(d=O(u)?u:u.getParentOrThrow(),g=u,!m.is(d)&&d.isInline())do g=d,d=d.getParentOrThrow();while(d.isInline());a.type==="text"&&(c!==0||u.getTextContent()==="")||a.type==="element"&&u.getIndexWithinParent()<c?L(u)&&!u.isToken()&&c!==u.getTextContentSize()?(u.isSegmented()&&(a=fe(u.getTextContent()),u.replace(a),u=a),u=u.spliceText(0,c,""),o.add(u.__key)):(a=u.getParentOrThrow(),a.canBeEmpty()||a.getChildrenSize()!==1?u.remove():a.remove()):o.add(u.__key),a=d.getChildren(),c=new Set(l),u=m.is(d),m=m.isInline()&&n.getNextSibling()===null?m:n;for(let f=a.length-1;0<=f;f--){let _=a[f];if(_.is(n)||O(_)&&_.isParentOf(n))break;_.isAttached()&&(!c.has(_)||_.is(g)?u||m.insertAfter(_):_.remove())}if(!u)for(a=d,c=null;a!==null;)u=a.getChildren(),d=u.length,(d===0||u[d-1].is(c))&&(o.delete(a.__key),c=a),a=a.getParent();for(n.isToken()?r===i?n.select():(e=fe(e),e.select(),n.replace(e)):(n=n.spliceText(r,i-r,e,!0),n.getTextContent()===""?n.remove():n.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length)),e=1;e<s;e++)n=l[e],o.has(n.__key)||n.remove()}}removeText(){this.insertText("")}formatText(e){if(this.isCollapsed())this.toggleFormat(e),he(null);else{var n=this.getNodes(),r=[];for(var i of n)L(i)&&r.push(i);var o=r.length;if(o===0)this.toggleFormat(e),he(null);else{i=this.anchor;var l=this.focus,s=this.isBackward();n=s?l:i,i=s?i:l;var a=0,c=r[0];if(l=n.type==="element"?0:n.offset,n.type==="text"&&l===c.getTextContentSize()&&(a=1,c=r[1],l=0),c!=null){s=c.getFormatFlags(e,null);var d=o-1,u=r[d];if(o=i.type==="text"?i.offset:u.getTextContentSize(),c.is(u))l!==o&&(l===0&&o===c.getTextContentSize()?c.setFormat(s):(e=c.splitText(l,o),e=l===0?e[0]:e[1],e.setFormat(s),n.type==="text"&&n.set(e.__key,0,"text"),i.type==="text"&&i.set(e.__key,o-l,"text")),this.format=s);else{l!==0&&([,c]=c.splitText(l),l=0),c.setFormat(s);var g=u.getFormatFlags(e,s);for(0<o&&(o!==u.getTextContentSize()&&([u]=u.splitText(o)),u.setFormat(g)),a+=1;a<d;a++){let m=r[a];if(!m.isToken()){let f=m.getFormatFlags(e,g);m.setFormat(f)}}n.type==="text"&&n.set(c.__key,l,"text"),i.type==="text"&&i.set(u.__key,o,"text"),this.format=s|g}}}}}insertNodes(e,n){if(!this.isCollapsed()){var r=this.isBackward()?this.anchor:this.focus,i=r.getNode().getNextSibling();if(i=i?i.getKey():null,r=(r=r.getNode().getPreviousSibling())?r.getKey():null,this.removeText(),this.isCollapsed()&&this.focus.type==="element"){if(this.focus.key===i&&this.focus.offset===0){var o=fe();this.focus.getNode().insertBefore(o)}else this.focus.key===r&&this.focus.offset===this.focus.getNode().getChildrenSize()&&(o=fe(),this.focus.getNode().insertAfter(o));o&&(this.focus.set(o.__key,0,"text"),this.anchor.set(o.__key,0,"text"))}}i=this.anchor,r=i.offset;var l=i.getNode();o=l,i.type==="element"&&(o=i.getNode(),i=o.getChildAtIndex(r-1),o=i===null?o:i),i=[];var s=l.getNextSiblings(),a=at(l)?null:l.getTopLevelElementOrThrow();if(L(l))if(o=l.getTextContent().length,r===0&&o!==0)o=l.getPreviousSibling(),o=o!==null?o:l.getParentOrThrow(),i.push(l);else if(r===o)o=l;else{if(l.isToken())return!1;[o,l]=l.splitText(r),i.push(l)}l=o,i.push(...s),s=e[0];var c=!1,d=null;for(let f=0;f<e.length;f++){var u=e[f];if(ee(o)||!O(u)||u.isInline())c&&!ee(u)&&at(o.getParent())&&A(28);else{if(u.is(s)){if(O(o)&&o.isEmpty()&&o.canReplaceWith(u)){o.replace(u),o=u,c=!0;continue}var g=u.getFirstDescendant();if(gl(g)){for(g=g.getParentOrThrow();g.isInline();)g=g.getParentOrThrow();if(d=g.getChildren(),c=d.length,O(o))for(var m=0;m<c;m++)o.append(d[m]);else{for(m=c-1;0<=m;m--)o.insertAfter(d[m]);o=o.getParentOrThrow()}if(d=d[c-1],g.remove(),c=!0,g.is(u))continue}}L(o)&&(a===null&&A(27),o=a)}c=!1,O(o)&&!o.isInline()?(d=u,ee(u)&&!u.isInline()?o=o.insertAfter(u):O(u)?(u.canBeEmpty()||!u.isEmpty())&&(Me(o)?(g=o.getChildAtIndex(r),g!==null?g.insertBefore(u):o.append(u),o=u):o=o.insertAfter(u)):(g=o.getFirstChild(),g!==null?g.insertBefore(u):o.append(u),o=u)):!O(u)||O(u)&&u.isInline()||ee(o)&&!o.isInline()?(d=u,o=o.insertAfter(u)):(u=o.getParentOrThrow(),Rn(o)&&o.remove(),o=u,f--)}if(n&&(L(l)?l.select():(e=o.getPreviousSibling(),L(e)?e.select():(e=o.getIndexWithinParent(),o.getParentOrThrow().select(e,e)))),O(o)){if(e=L(d)?d:O(d)&&d.isInline()?d.getLastDescendant():o.getLastDescendant(),n||(e===null?o.select():L(e)?e.select():e.selectNext()),i.length!==0)for(n=o,e=i.length-1;0<=e;e--)r=i[e],a=r.getParentOrThrow(),!O(o)||Xl(r)||ee(r)&&(!r.isInline()||r.isIsolated())?O(o)||Xl(r)?O(r)&&!r.canInsertAfter(o)?(l=a.constructor.clone(a),O(l)||A(29),l.append(r),o.insertAfter(l)):o.insertAfter(r):(o.insertBefore(r),o=r):(n===o?o.append(r):o.insertBefore(r),o=r),a.isEmpty()&&!a.canBeEmpty()&&a.remove()}else n||(L(o)?o.select():(n=o.getParentOrThrow(),e=o.getIndexWithinParent()+1,n.select(e,e)));return!0}insertParagraph(){this.isCollapsed()||this.removeText();var e=this.anchor,n=e.offset,r=[];if(e.type==="text"){var i=e.getNode(),o=i.getNextSiblings().reverse(),l=i.getParentOrThrow(),s=l.isInline(),a=s?l.getTextContentSize():i.getTextContentSize();n===0?o.push(i):(s&&(r=l.getNextSiblings()),n===a||s&&n===i.getTextContentSize()||([,i]=i.splitText(n),o.push(i)))}else{if(l=e.getNode(),at(l)){o=Gt(),r=l.getChildAtIndex(n),o.select(),r!==null?r.insertBefore(o):l.append(o);return}o=l.getChildren().slice(n).reverse()}if(i=o.length,n===0&&0<i&&l.isInline()){if(r=l.getParentOrThrow(),o=r.insertNewAfter(this),O(o))for(r=r.getChildren(),l=0;l<r.length;l++)o.append(r[l])}else if(s=l.insertNewAfter(this),s===null)this.insertLineBreak();else if(O(s))if(a=l.getFirstChild(),n===0&&(l.is(e.getNode())||a&&a.is(e.getNode()))&&0<i)l.insertBefore(s);else{if(l=null,n=r.length,e=s.getParentOrThrow(),0<n)for(a=0;a<n;a++)e.append(r[a]);if(i!==0)for(r=0;r<i;r++)n=o[r],l===null?s.append(n):l.insertBefore(n),l=n;s.canBeEmpty()||s.getChildrenSize()!==0?s.selectStart():(s.selectPrevious(),s.remove())}}insertLineBreak(e){let n=bn();var r=this.anchor;r.type==="element"&&(r=r.getNode(),Me(r)&&this.insertParagraph()),e?this.insertNodes([n],!0):this.insertNodes([n])&&n.selectNext(0,0)}getCharacterOffsets(){return pr(this)}extract(){var e=this.getNodes(),n=e.length,r=n-1,i=this.anchor;let o=this.focus;var l=e[0];let s=e[r],[a,c]=pr(this);return n===0?[]:n===1?L(l)&&!this.isCollapsed()?(e=a>c?c:a,r=l.splitText(e,a>c?a:c),e=e===0?r[0]:r[1],e!=null?[e]:[]):[l]:(n=i.isBefore(o),L(l)&&(i=n?a:c,i===l.getTextContentSize()?e.shift():i!==0&&([,l]=l.splitText(i),e[0]=l)),L(s)&&(l=s.getTextContent().length,n=n?c:a,n===0?e.pop():n!==l&&([s]=s.splitText(n),e[r]=s)),e)}modify(e,n,r){var i=this.focus,o=this.anchor,l=e==="move",s=di(i,n);if(ee(s)&&!s.isIsolated())l&&s.isKeyboardSelectable()?(n=Ti(),n.add(s.__key),_t(n)):(e=n?s.getPreviousSibling():s.getNextSibling(),L(e)?(s=e.__key,n=n?e.getTextContent().length:0,i.set(s,n,"text"),l&&o.set(s,n,"text")):(r=s.getParentOrThrow(),O(e)?(r=e.__key,s=n?e.getChildrenSize():0):(s=s.getIndexWithinParent(),r=r.__key,n||s++),i.set(r,s,"element"),l&&o.set(r,s,"element")));else if((i=Ne?window.getSelection():null)&&(i.modify(e,n?"backward":"forward",r),0<i.rangeCount&&(o=i.getRangeAt(0),s=this.anchor.getNode(),s=Me(s)?s:Cl(s),this.applyDOMRange(o),this.dirty=!0,!l))){l=this.getNodes(),e=[],r=!1;for(let a=0;a<l.length;a++){let c=l[a];lr(c,s)?e.push(c):r=!0}r&&0<e.length&&(n?(n=e[0],O(n)?n.selectStart():n.getParentOrThrow().selectStart()):(n=e[e.length-1],O(n)?n.selectEnd():n.getParentOrThrow().selectEnd())),(i.anchorNode!==o.startContainer||i.anchorOffset!==o.startOffset)&&(n=this.focus,l=this.anchor,i=l.key,o=l.offset,s=l.type,ct(l,n.key,n.offset,n.type),ct(n,i,o,s),this._cachedNodes=null)}}deleteCharacter(e){if(this.isCollapsed()){var n=this.anchor,r=this.focus,i=n.getNode();if(!e&&(n.type==="element"&&O(i)&&n.offset===i.getChildrenSize()||n.type==="text"&&n.offset===i.getTextContentSize())){var o=i.getNextSibling()||i.getParentOrThrow().getNextSibling();if(O(o)&&!o.canExtractContents())return}if(o=di(r,e),ee(o)&&!o.isIsolated()){o.isKeyboardSelectable()&&O(i)&&i.getChildrenSize()===0?(i.remove(),e=Ti(),e.add(o.__key),_t(e)):o.remove();return}if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&n.offset===0&&(n.type==="element"?n.getNode():n.getNode().getParentOrThrow()).collapseAtStart(this))return}else{if(o=r.type==="text"?r.getNode():null,i=n.type==="text"?n.getNode():null,o!==null&&o.isSegmented()){if(n=r.offset,r=o.getTextContentSize(),o.is(i)||e&&n!==r||!e&&n!==0){Yl(o,e,n);return}}else if(i!==null&&i.isSegmented()&&(n=n.offset,r=i.getTextContentSize(),i.is(o)||e&&n!==0||!e&&n!==r)){Yl(i,e,n);return}if(i=this.anchor,o=this.focus,n=i.getNode(),r=o.getNode(),n===r&&i.type==="text"&&o.type==="text"){var l=i.offset,s=o.offset;let a=l<s;r=a?l:s,s=a?s:l,l=s-1,r!==l&&(n=n.getTextContent().slice(r,s),xl(n)||(e?o.offset=l:i.offset=l))}}}this.removeText()}deleteLine(e){this.isCollapsed()&&(this.anchor.type==="text"&&this.modify("extend",e,"lineboundary"),(e?this.focus:this.anchor).offset===0&&this.modify("extend",e,"character")),this.removeText()}deleteWord(e){this.isCollapsed()&&this.modify("extend",e,"word"),this.removeText()}}function En(t){return t instanceof hr}function jl(t){let e=t.offset;return t.type==="text"?e:(t=t.getNode(),e===t.getChildrenSize()?t.getTextContent().length:0)}function pr(t){let e=t.anchor;return t=t.focus,e.type==="element"&&t.type==="element"&&e.key===t.key&&e.offset===t.offset?[0,0]:[jl(e),jl(t)]}function Yl(t,e,n){let r=t.getTextContent().split(/(?=\s)/g),i=r.length,o=0,l=0;for(let s=0;s<i;s++){let a=r[s],c=s===i-1;if(l=o,o+=a.length,e&&o===n||o>n||c){r.splice(s,1),c&&(l=void 0);break}}e=r.join("").trim(),e===""?t.remove():(t.setTextContent(e),t.select(l,l))}function Vl(t,e,n){var r=e;if(t.nodeType===1){let l=!1;var i=t.childNodes,o=i.length;if(r===o&&(l=!0,r=o-1),i=Ht(i[r]),L(i))r=l?i.getTextContentSize():0;else{if(o=Ht(t),o===null)return null;if(O(o)?(t=o.getChildAtIndex(r),(e=O(t))&&(e=t.getParent(),e=n===null||e===null||!e.canBeEmpty()||e!==n.getNode()),e&&(n=l?t.getLastDescendant():t.getFirstDescendant(),n===null?(o=t,r=0):(t=n,o=t.getParentOrThrow())),L(t)?(i=t,o=null,r=l?t.getTextContentSize():0):t!==o&&l&&r++):(r=o.getIndexWithinParent(),r=e===0&&ee(o)&&Ht(t)===o?r:r+1,o=o.getParentOrThrow()),O(o))return new je(o.__key,r,"element")}}else i=Ht(t);return L(i)?new je(i.__key,r,"text"):null}function Gl(t,e,n){var r=t.offset,i=t.getNode();r===0?(r=i.getPreviousSibling(),i=i.getParent(),e?(n||!e)&&r===null&&O(i)&&i.isInline()&&(e=i.getPreviousSibling(),L(e)&&(t.key=e.__key,t.offset=e.getTextContent().length)):O(r)&&!n&&r.isInline()?(t.key=r.__key,t.offset=r.getChildrenSize(),t.type="element"):L(r)&&(t.key=r.__key,t.offset=r.getTextContent().length)):r===i.getTextContent().length&&(r=i.getNextSibling(),i=i.getParent(),e&&O(r)&&r.isInline()?(t.key=r.__key,t.offset=0,t.type="element"):(n||e)&&r===null&&O(i)&&i.isInline()&&!i.canInsertTextAfter()&&(e=i.getNextSibling(),L(e)&&(t.key=e.__key,t.offset=0)))}function Zl(t,e,n){if(t.type==="text"&&e.type==="text"){var r=t.isBefore(e);let i=t.is(e);Gl(t,r,i),Gl(e,!r,i),i&&(e.key=t.key,e.offset=t.offset,e.type=t.type),r=oe(),r.isComposing()&&r._compositionKey!==t.key&&H(n)&&(r=n.anchor,n=n.focus,ct(t,r.key,r.offset,r.type),ct(e,n.key,n.offset,n.type))}}function Jl(t,e,n,r,i,o){return t===null||n===null||!nr(i,t,n)||(e=Vl(t,e,H(o)?o.anchor:null),e===null)||(r=Vl(n,r,H(o)?o.focus:null),r===null||e.type==="element"&&r.type==="element"&&(t=Ht(t),n=Ht(n),ee(t)&&ee(n)))?null:(Zl(e,r,o),[e,r])}function Xl(t){return O(t)&&!t.isInline()}function ql(t,e,n,r,i,o){let l=Ye();return t=new wt(new je(t,e,i),new je(n,r,o),0),t.dirty=!0,l._selection=t}function Ti(){return new hr(new Set)}function tu(t){let e=t.getEditorState()._selection,n=Ne?window.getSelection():null;return En(e)||Ni(e)?e.clone():Ql(e,n,t)}function Ql(t,e,n){var r=n._window;if(r===null)return null;var i=r.event,o=i?i.type:void 0;r=o==="selectionchange",i=!ri&&(r||o==="beforeinput"||o==="compositionstart"||o==="compositionend"||o==="click"&&i&&i.detail===3||o==="drop"||o===void 0);let l;if(!H(t)||i){if(e===null)return null;if(i=e.anchorNode,o=e.focusNode,l=e.anchorOffset,e=e.focusOffset,r&&H(t)&&!nr(n,i,o))return t.clone()}else return t.clone();if(n=Jl(i,l,o,e,n,t),n===null)return null;let[s,a]=n;return new wt(s,a,H(t)?t.format:0)}function Z(){return Ye()._selection}function Nn(){return oe()._editorState._selection}function mr(t,e,n,r=1){var i=t.anchor,o=t.focus,l=i.getNode(),s=o.getNode();if(e.is(l)||e.is(s))if(l=e.__key,t.isCollapsed())e=i.offset,n<=e&&(n=Math.max(0,e+r),i.set(l,n,"element"),o.set(l,n,"element"),es(t));else{var a=t.isBackward();s=a?o:i;var c=s.getNode();i=a?i:o,o=i.getNode(),e.is(c)&&(c=s.offset,n<=c&&s.set(l,Math.max(0,c+r),"element")),e.is(o)&&(e=i.offset,n<=e&&i.set(l,Math.max(0,e+r),"element")),es(t)}}function es(t){var e=t.anchor,n=e.offset;let r=t.focus;var i=r.offset,o=e.getNode(),l=r.getNode();if(t.isCollapsed())O(o)&&(l=o.getChildrenSize(),l=(i=n>=l)?o.getChildAtIndex(l-1):o.getChildAtIndex(n),L(l)&&(n=0,i&&(n=l.getTextContentSize()),e.set(l.__key,n,"text"),r.set(l.__key,n,"text")));else{if(O(o)){let s=o.getChildrenSize();n=(t=n>=s)?o.getChildAtIndex(s-1):o.getChildAtIndex(n),L(n)&&(o=0,t&&(o=n.getTextContentSize()),e.set(n.__key,o,"text"))}O(l)&&(n=l.getChildrenSize(),i=(e=i>=n)?l.getChildAtIndex(n-1):l.getChildAtIndex(i),L(i)&&(l=0,e&&(l=i.getTextContentSize()),r.set(i.__key,l,"text")))}}function nu(t,e){if(e=e.getEditorState()._selection,t=t._selection,H(t)){var n=t.anchor;let r=t.focus,i;n.type==="text"&&(i=n.getNode(),i.selectionTransform(e,t)),r.type==="text"&&(n=r.getNode(),i!==n&&n.selectionTransform(e,t))}}function xr(t,e,n,r,i){let o=null,l=0,s=null;r!==null?(o=r.__key,L(r)?(l=r.getTextContentSize(),s="text"):O(r)&&(l=r.getChildrenSize(),s="element")):i!==null&&(o=i.__key,L(i)?s="text":O(i)&&(s="element")),o!==null&&s!==null?t.set(o,l,s):(l=e.getIndexWithinParent(),l===-1&&(l=n.getChildrenSize()),t.set(n.__key,l,"element"))}function ts(t,e,n,r,i){t.type==="text"?(t.key=n,e||(t.offset+=i)):t.offset>r.getIndexWithinParent()&&--t.offset}let ye=null,ge=null,ae=!1,Si=!1,Tn=0;function Re(){ae&&A(13)}function Ye(){return ye===null&&A(15),ye}function oe(){return ge===null&&A(16),ge}function ns(t,e,n){var r=e.__type;let i=t._nodes.get(r);for(i===void 0&&A(30),t=n.get(r),t===void 0&&(t=Array.from(i.transforms),n.set(r,t)),n=t.length,r=0;r<n&&(t[r](e),e.isAttached());r++);}function ru(t,e){e=e._dirtyLeaves,t=t._nodeMap;for(let n of e)e=t.get(n),L(e)&&e.isAttached()&&e.isSimpleText()&&!e.isUnmergeable()&&Sl(e)}function iu(t,e){let n=e._dirtyLeaves,r=e._dirtyElements;t=t._nodeMap;let i=lt(),o=new Map;var l=n;let s=l.size;for(var a=r,c=a.size;0<s||0<c;){if(0<s){e._dirtyLeaves=new Set;for(let d of l)l=t.get(d),L(l)&&l.isAttached()&&l.isSimpleText()&&!l.isUnmergeable()&&Sl(l),l!==void 0&&l!==void 0&&l.__key!==i&&l.isAttached()&&ns(e,l,o),n.add(d);if(l=e._dirtyLeaves,s=l.size,0<s){Tn++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map;for(let d of a)a=d[0],c=d[1],(a==="root"||c)&&(l=t.get(a),l!==void 0&&l!==void 0&&l.__key!==i&&l.isAttached()&&ns(e,l,o),r.set(a,c));l=e._dirtyLeaves,s=l.size,a=e._dirtyElements,c=a.size,Tn++}e._dirtyLeaves=n,e._dirtyElements=r}function bi(t,e){var n=e.get(t.type);if(n===void 0&&A(17),n=n.klass,t.type!==n.getType()&&A(18),n=n.importJSON(t),t=t.children,O(n)&&Array.isArray(t))for(let r=0;r<t.length;r++){let i=bi(t[r],e);n.append(i)}return n}function rs(t,e){let n=ye,r=ae,i=ge;ye=t,ae=!0,ge=null;try{return e()}finally{ye=n,ae=r,ge=i}}function yt(t){var e=t._pendingEditorState,n=t._rootElement,r=t._headless;if((n!==null||r)&&e!==null){var i=t._editorState,o=i._selection,l=e._selection,s=t._dirtyType!==0,a=ye,c=ae,d=ge,u=t._updating,g=t._observer,m=null;if(t._pendingEditorState=null,t._editorState=e,!r&&s&&g!==null){ge=t,ye=e,ae=!1,t._updating=!0;try{var f=t._dirtyType,_=t._dirtyElements,C=t._dirtyLeaves;g.disconnect(),Te=Xe=ue="",Ol=f===2,dr=null,Se=t,vt=t._config,pn=t._nodes,cr=Se._listeners.mutation,fi=_,pi=C,mn=i._nodeMap,Kt=e._nodeMap,hi=e._readOnly,mi=new Map(t._keyToDOMMap);var N=new Map;xn=N,vn("root",null),xn=mi=vt=Kt=mn=pi=fi=pn=Se=void 0,m=N}catch(X){if(X instanceof Error&&t._onError(X),Si)throw X;cs(t,null,n,e),cl(t),t._dirtyType=2,Si=!0,yt(t),Si=!1;return}finally{g.observe(n,{characterData:!0,childList:!0,subtree:!0}),t._updating=u,ye=a,ae=c,ge=d}}e._readOnly||(e._readOnly=!0),u=t._dirtyLeaves,g=t._dirtyElements,N=t._normalizedNodes,f=t._updateTags,c=t._deferred,s&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),C=t._decorators,_=t._pendingDecorators||C;var p=e._nodeMap;for(se in _)p.has(se)||(_===C&&(_=pl(t)),delete _[se]);if(r=r?null:Ne?window.getSelection():null,t._editable&&r!==null&&(s||l===null||l.dirty)){ge=t,ye=e;try{e:{let X=r.anchorNode,we=r.focusNode,sn=r.anchorOffset,Fe=r.focusOffset,an=document.activeElement;if(!f.has("collaboration")||an===n)if(H(l)){var v=l.anchor,T=l.focus,E=v.key,k=T.key,R=or(t,E),I=or(t,k),$=v.offset,U=T.offset,P=l.format,K=l.isCollapsed();s=R,k=I;var se=!1;if(v.type==="text"&&(s=rr(R),se=v.getNode().getFormat()!==P),T.type==="text"&&(k=rr(I)),s!==null&&k!==null){if(K&&(o===null||se||H(o)&&o.format!==P)){var ne=performance.now();Fl=[P,$,E,ne]}if(sn===$&&Fe===U&&X===s&&we===k&&(r.type!=="Range"||!K)&&(n===null||an!==null&&n.contains(an)||n.focus({preventScroll:!0}),v.type!=="element"))break e;try{if(r.setBaseAndExtent(s,$,k,U),!f.has("skip-scroll-into-view")&&l.isCollapsed()&&n!==null&&n===an){let He=l instanceof wt&&l.anchor.type==="element"?s.childNodes[$]||null:0<r.rangeCount?r.getRangeAt(0):null;if(He!==null){let $t=He.getBoundingClientRect(),Mt=n.ownerDocument,At=Mt.defaultView;if(At!==null)for(var{top:Oe,bottom:Ce}=$t,Pe,V;n!==null;){let Dt=n===Mt.body;if(Dt)Pe=0,V=sr(t).innerHeight;else{let pt=n.getBoundingClientRect();Pe=pt.top,V=pt.bottom}if(o=0,Oe<Pe?o=-(Pe-Oe):Ce>V&&(o=Ce-V),o!==0)if(Dt)At.scrollBy(0,o);else{let pt=n.scrollTop;n.scrollTop+=o;let It=n.scrollTop-pt;Oe-=It,Ce-=It}if(Dt)break;let Lt=n.assignedSlot||n.parentElement;n=Lt!==null&&Lt.nodeType===11?Lt.host:Lt}}}yi=!0}catch{}}}else o!==null&&nr(t,X,we)&&r.removeAllRanges()}}finally{ge=d,ye=a}}if(m!==null)for(a=m,d=Array.from(t._listeners.mutation),m=d.length,Pe=0;Pe<m;Pe++){let[X,we]=d[Pe];V=a.get(we),V!==void 0&&X(V,{dirtyLeaves:u,updateTags:f})}if(a=t._pendingDecorators,a!==null&&(t._decorators=a,t._pendingDecorators=null,Sn("decorator",t,!0,a)),a=ml(i),d=ml(e),a!==d&&Sn("textcontent",t,!0,d),Sn("update",t,!0,{dirtyElements:g,dirtyLeaves:u,editorState:e,normalizedNodes:N,prevEditorState:i,tags:f}),t._deferred=[],c.length!==0){e=t._updating,t._updating=!0;try{for(i=0;i<c.length;i++)c[i]()}finally{t._updating=e}}if(e=t._updates,e.length!==0&&(e=e.shift())){let[X,we]=e;os(t,X,we)}}}function Sn(t,e,n,...r){let i=e._updating;e._updating=n;try{let o=Array.from(e._listeners[t]);for(t=0;t<o.length;t++)o[t].apply(null,r)}finally{e._updating=i}}function M(t,e,n){if(t._updating===!1||ge!==t){let o=!1;return t.update(()=>{o=M(t,e,n)}),o}let r=si(t);for(let o=4;0<=o;o--)for(let l=0;l<r.length;l++){var i=r[l]._commands.get(e);if(i!==void 0&&(i=i[o],i!==void 0)){i=Array.from(i);let s=i.length;for(let a=0;a<s;a++)if(i[a](n,t)===!0)return!0}}return!1}function is(t,e){let n=t._updates;for(e=e||!1;n.length!==0;){var r=n.shift();if(r){let[i,o]=r,l;o!==void 0&&(r=o.onUpdate,l=o.tag,o.skipTransforms&&(e=!0),r&&t._deferred.push(r),l&&t._updateTags.add(l)),i()}}return e}function os(t,e,n){let r=t._updateTags;var i,o=i=!1;if(n!==void 0){var l=n.onUpdate;i=n.tag,i!=null&&r.add(i),i=n.skipTransforms||!1,o=n.discrete||!1}l&&t._deferred.push(l),n=t._editorState,l=t._pendingEditorState;let s=!1;(l===null||l._readOnly)&&(l=t._pendingEditorState=new vr(new Map((l||n)._nodeMap)),s=!0),l._flushSync=o,o=ye;let a=ae,c=ge,d=t._updating;ye=l,ae=!1,t._updating=!0,ge=t;try{s&&(t._headless?n._selection!=null&&(l._selection=n._selection.clone()):l._selection=tu(t));let u=t._compositionKey;e(),i=is(t,i),nu(l,t),t._dirtyType!==0&&(i?ru(l,t):iu(l,t),is(t),Ud(n,l,t._dirtyLeaves,t._dirtyElements)),u!==t._compositionKey&&(l._flushSync=!0);let g=l._selection;if(H(g)){let m=l._nodeMap,f=g.focus.key;m.get(g.anchor.key)!==void 0&&m.get(f)!==void 0||A(19)}else En(g)&&g._nodes.size===0&&(l._selection=null)}catch(u){u instanceof Error&&t._onError(u),t._pendingEditorState=n,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),yt(t);return}finally{ye=o,ae=a,ge=c,t._updating=d,Tn=0}t._dirtyType!==0||ou(l,t)?l._flushSync?(l._flushSync=!1,yt(t)):s&&Bd(()=>{yt(t)}):(l._flushSync=!1,s&&(r.clear(),t._deferred=[],t._pendingEditorState=null))}function $e(t,e,n){t._updating?t._updates.push([e,n]):os(t,e,n)}function Ri(t,e,n){Re();var r=t.__key;let i=t.getParent();if(i!==null){var o=Wd(t),l=!1;if(H(o)&&e){var s=o.anchor;let a=o.focus;s.key===r&&(xr(s,t,i,t.getPreviousSibling(),t.getNextSibling()),l=!0),a.key===r&&(xr(a,t,i,t.getPreviousSibling(),t.getNextSibling()),l=!0)}s=i.getWritable().__children,r=s.indexOf(r),r===-1&&A(31),Bt(t),s.splice(r,1),t.getWritable().__parent=null,H(o)&&e&&!l&&mr(o,i,r,-1),n||at(i)||i.canBeEmpty()||!i.isEmpty()||Ri(i,e),Me(i)&&i.isEmpty()&&i.selectEnd()}}function ls(t){return t=q(t),t===null&&A(63),t}class _r{static getType(){A(64)}static clone(){A(65)}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,hl(this,e)}getType(){return this.__type}isAttached(){for(var e=this.__key;e!==null;){if(e==="root")return!0;if(e=q(e),e===null)break;e=e.__parent}return!1}isSelected(){let e=Z();if(e==null)return!1;let n=e.getNodes().some(r=>r.__key===this.__key);return L(this)?n:H(e)&&e.anchor.type==="element"&&e.focus.type==="element"&&e.anchor.key===e.focus.key&&e.anchor.offset===e.focus.offset?!1:n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();return e===null?-1:e.__children.indexOf(this.__key)}getParent(){let e=this.getLatest().__parent;return e===null?null:q(e)}getParentOrThrow(){let e=this.getParent();return e===null&&A(66),e}getTopLevelElement(){let e=this;for(;e!==null;){let n=e.getParent();if(at(n))return e;e=n}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return e===null&&A(67),e}getParents(){let e=[],n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){let e=[],n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){var e=this.getParent();if(e===null)return null;e=e.__children;let n=e.indexOf(this.__key);return 0>=n?null:q(e[n-1])}getPreviousSiblings(){var e=this.getParent();if(e===null)return[];e=e.__children;let n=e.indexOf(this.__key);return e.slice(0,n).map(r=>ls(r))}getNextSibling(){var e=this.getParent();if(e===null)return null;e=e.__children;let n=e.length,r=e.indexOf(this.__key);return r>=n-1?null:q(e[r+1])}getNextSiblings(){var e=this.getParent();if(e===null)return[];e=e.__children;let n=e.indexOf(this.__key);return e.slice(n+1).map(r=>ls(r))}getCommonAncestor(e){let n=this.getParents();var r=e.getParents();O(this)&&n.unshift(this),O(e)&&r.unshift(e),e=n.length;var i=r.length;if(e===0||i===0||n[e-1]!==r[i-1])return null;for(r=new Set(r),i=0;i<e;i++){let o=n[i];if(r.has(o))return o}return null}is(e){return e==null?!1:this.__key===e.__key}isBefore(e){if(e.isParentOf(this))return!0;if(this.isParentOf(e))return!1;var n=this.getCommonAncestor(e);let r=this;for(;;){var i=r.getParentOrThrow();if(i===n){i=i.__children.indexOf(r.__key);break}r=i}for(r=e;;){if(e=r.getParentOrThrow(),e===n){n=e.__children.indexOf(r.__key);break}r=e}return i<n}isParentOf(e){let n=this.__key;if(n===e.__key)return!1;for(;e!==null;){if(e.__key===n)return!0;e=e.getParent()}return!1}getNodesBetween(e){let n=this.isBefore(e),r=[],i=new Set;for(var o=this;;){var l=o.__key;if(i.has(l)||(i.add(l),r.push(o)),o===e)break;if(l=O(o)?n?o.getFirstChild():o.getLastChild():null,l!==null)o=l;else if(l=n?o.getNextSibling():o.getPreviousSibling(),l!==null)o=l;else{if(o=o.getParentOrThrow(),i.has(o.__key)||r.push(o),o===e)break;l=o;do l===null&&A(68),o=n?l.getNextSibling():l.getPreviousSibling(),l=l.getParent(),l!==null&&(o!==null||i.has(l.__key)||r.push(l));while(o===null)}}return n||r.reverse(),r}isDirty(){let e=oe()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){let e=q(this.__key);return e===null&&A(69),e}getWritable(){Re();var e=Ye(),n=oe();e=e._nodeMap;let r=this.__key,i=this.getLatest(),o=i.__parent;n=n._cloneNotNeeded;var l=Z();return l!==null&&(l._cachedNodes=null),n.has(r)?(zt(i),i):(l=i.constructor.clone(i),l.__parent=o,O(i)&&O(l)?(l.__children=Array.from(i.__children),l.__indent=i.__indent,l.__format=i.__format,l.__dir=i.__dir):L(i)&&L(l)&&(l.__format=i.__format,l.__style=i.__style,l.__mode=i.__mode,l.__detail=i.__detail),n.add(r),l.__key=r,zt(l),e.set(r,l),l)}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(){A(70)}updateDOM(){A(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){A(72)}static importJSON(){A(18)}remove(e){Ri(this,!0,e)}replace(e){Re(),gi(this,e);let n=this.__key;e=e.getWritable(),ir(e);var r=this.getParentOrThrow(),i=r.getWritable().__children;let o=i.indexOf(this.__key),l=e.__key;return o===-1&&A(31),i.splice(o,0,l),e.__parent=r.__key,Ri(this,!1),Bt(e),i=Z(),H(i)&&(r=i.anchor,i=i.focus,r.key===n&&Wl(r,e),i.key===n&&Wl(i,e)),lt()===n&&he(l),e}insertAfter(e){Re(),gi(this,e);var n=this.getWritable(),r=e.getWritable(),i=r.getParent();let o=Z();var l=e.getIndexWithinParent(),s=!1,a=!1;i!==null&&(ir(r),H(o)&&(a=i.__key,s=o.anchor,i=o.focus,s=s.type==="element"&&s.key===a&&s.offset===l+1,a=i.type==="element"&&i.key===a&&i.offset===l+1)),l=this.getParentOrThrow().getWritable(),i=r.__key,r.__parent=n.__parent;let c=l.__children;return n=c.indexOf(n.__key),n===-1&&A(31),c.splice(n+1,0,i),Bt(r),H(o)&&(mr(o,l,n+1),r=l.__key,s&&o.anchor.set(r,n+2,"element"),a&&o.focus.set(r,n+2,"element")),e}insertBefore(e){Re(),gi(this,e);var n=this.getWritable(),r=e.getWritable();ir(r);let i=this.getParentOrThrow().getWritable(),o=r.__key;r.__parent=n.__parent;let l=i.__children;return n=l.indexOf(n.__key),n===-1&&A(31),l.splice(n,0,o),Bt(r),r=Z(),H(r)&&mr(r,i,n),e}selectPrevious(e,n){Re();let r=this.getPreviousSibling(),i=this.getParentOrThrow();return r===null?i.select(0,0):O(r)?r.select():L(r)?r.select(e,n):(e=r.getIndexWithinParent()+1,i.select(e,e))}selectNext(e,n){Re();let r=this.getNextSibling(),i=this.getParentOrThrow();return r===null?i.select():O(r)?r.select(0,0):L(r)?r.select(e,n):(e=r.getIndexWithinParent(),i.select(e,e))}markDirty(){this.getWritable()}}class ss extends _r{constructor(e){super(e)}decorate(){A(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function ee(t){return t instanceof ss}class kt extends _r{constructor(e){super(e),this.__children=[],this.__indent=this.__format=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){let e=this.getFormat();return Dd[e]||""}getIndent(){return this.getLatest().__indent}getChildren(){let e=this.getLatest().__children,n=[];for(let r=0;r<e.length;r++){let i=q(e[r]);i!==null&&n.push(i)}return n}getChildrenKeys(){return this.getLatest().__children}getChildrenSize(){return this.getLatest().__children.length}isEmpty(){return this.getChildrenSize()===0}isDirty(){let e=oe()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){let e=this.getLatest();return e.getParentOrThrow().getLastChild()===e}getAllTextNodes(){let e=[],n=this.getLatest().__children;for(let i=0;i<n.length;i++){var r=q(n[i]);L(r)?e.push(r):O(r)&&(r=r.getAllTextNodes(),e.push(...r))}return e}getFirstDescendant(){let e=this.getFirstChild();for(;e!==null;){if(O(e)){let n=e.getFirstChild();if(n!==null){e=n;continue}}break}return e}getLastDescendant(){let e=this.getLastChild();for(;e!==null;){if(O(e)){let n=e.getLastChild();if(n!==null){e=n;continue}}break}return e}getDescendantByIndex(e){let n=this.getChildren(),r=n.length;return e>=r?(e=n[r-1],O(e)&&e.getLastDescendant()||e||null):(e=n[e],O(e)&&e.getFirstDescendant()||e||null)}getFirstChild(){let e=this.getLatest().__children;return e.length===0?null:q(e[0])}getFirstChildOrThrow(){let e=this.getFirstChild();return e===null&&A(45),e}getLastChild(){let e=this.getLatest().__children,n=e.length;return n===0?null:q(e[n-1])}getLastChildOrThrow(){let e=this.getLastChild();return e===null&&A(96),e}getChildAtIndex(e){return e=this.getLatest().__children[e],e===void 0?null:q(e)}getTextContent(){let e="",n=this.getChildren(),r=n.length;for(let i=0;i<r;i++){let o=n[i];e+=o.getTextContent(),O(o)&&i!==r-1&&!o.isInline()&&(e+=`
26
26
 
27
- `)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){return e!==""?(e=Jo[e],(this.getFormat()&e)!==0):!1}select(e,n){Oe();let r=G();var i=this.getChildrenSize();if(e===void 0&&(e=i),n===void 0&&(n=i),i=this.__key,B(r))r.anchor.set(i,e,"element"),r.focus.set(i,n,"element"),r.dirty=!0;else return Kl(i,e,i,n,"element","element");return r}selectStart(){let e=this.getFirstDescendant();return R(e)||L(e)?e.select(0,0):e!==null?e.selectPrevious():this.select(0,0)}selectEnd(){let e=this.getLastDescendant();return R(e)||L(e)?e.select():e!==null?e.selectNext():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach(n=>n.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let n=this.getWritable();return n.__dir=e,n}setFormat(e){return this.getWritable().__format=e!==""?Jo[e]:0,this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,n,r){let i=this.getWritable();var o=i.__key;let l=i.__children,s=r.length;var a=[];for(let c=0;c<s;c++){let d=r[c],u=d.getWritable();d.__key===o&&M(76),Xn(u),u.__parent=o,a.push(u.__key)}if((r=this.getChildAtIndex(e-1))&&bt(r),(o=this.getChildAtIndex(e+n))&&bt(o),e===l.length?(l.push(...a),e=[]):e=l.splice(e,n,...a),e.length&&(n=G(),B(n))){let c=new Set(e),d=new Set(a);a=m=>{for(m=m.getNode();m;){const h=m.__key;if(c.has(h)&&!d.has(h))return!0;m=m.getParent()}return!1};let{anchor:u,focus:g}=n;for(a(u)&&cr(u,u.getNode(),this,r,o),a(g)&&cr(g,g.getNode(),this,r,o),a=e.length,n=0;n<a;n++)r=J(e[n]),r!=null&&(r.getWritable().__parent=null);l.length!==0||this.canBeEmpty()||st(this)||this.remove()}return i}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(){return null}canInsertTab(){return!1}canIndent(){return!0}collapseAtStart(){return!1}excludeFromCopy(){return!1}canExtractContents(){return!0}canReplaceWith(){return!0}canInsertAfter(){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(){return!1}extractWithChild(){return!1}}function R(t){return t instanceof _t}class Dt extends _t{static getType(){return"root"}static clone(){return new Dt}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){M(51)}getTextContent(){let e=this.__cachedText;return!le&&se()._dirtyType!==0||e===null?super.getTextContent():e}remove(){M(52)}replace(){M(53)}insertBefore(){M(54)}insertAfter(){M(55)}updateDOM(){return!1}append(...e){for(let n=0;n<e.length;n++){let r=e[n];R(r)||ne(r)||M(56)}return super.append(...e)}static importJSON(e){let n=lt();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}}function Pe(t){return t instanceof Dt}function Hd(t,e){if(e=e.getEditorState()._selection,t=t._selection,t!==null){if(t.dirty||!t.is(e))return!0}else if(e!==null)return!0;return!1}function vi(){return new ur(new Map([["root",new Dt]]))}function ql(t){let e=t.exportJSON();e.type!==t.constructor.getType()&&M(58);let n=e.children;if(R(t)){Array.isArray(n)||M(59),t=t.getChildren();for(let r=0;r<t.length;r++){let i=ql(t[r]);n.push(i)}}return e}class ur{constructor(e,n){this._nodeMap=e,this._selection=n||null,this._readOnly=this._flushSync=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e){return Gl(this,e)}clone(e){return e=new ur(this._nodeMap,e===void 0?this._selection:e),e._readOnly=!0,e}toJSON(){return Gl(this,()=>({root:ql(lt())}))}}class It extends dr{static getType(){return"linebreak"}static clone(e){return new It(e.__key)}constructor(e){super(e)}getTextContent(){return`
28
- `}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>{let n=e.parentElement;return n!=null&&n.firstChild===e&&n.lastChild===e?null:{conversion:Kd,priority:0}}}}static importJSON(){return _n()}exportJSON(){return{type:"linebreak",version:1}}}function Kd(){return{node:_n()}}function _n(){return new It}function vn(t){return t instanceof It}function wi(t,e){return e&16?"code":e&32?"sub":e&64?"sup":null}function yi(t,e){return e&1?"strong":e&2?"em":"span"}function ki(t,e,n,r,i){t=r.classList,r=rn(i,"base"),r!==void 0&&t.add(...r),r=rn(i,"underlineStrikethrough");let o=!1,l=e&8&&e&4;var s=n&8&&n&4;r!==void 0&&(s?(o=!0,l||t.add(...r)):l&&t.remove(...r));for(let a in pt)s=pt[a],r=rn(i,a),r!==void 0&&(n&s?!o||a!=="underline"&&a!=="strikethrough"?((e&s)===0||l&&a==="underline"||a==="strikethrough")&&t.add(...r):e&s&&t.remove(...r):e&s&&t.remove(...r))}function Ci(t,e,n){let r=e.firstChild;if(n=n.isComposing(),t+=n?Gn:"",r==null)e.textContent=t;else if(e=r.nodeValue,e!==t)if(n||ht){n=e.length;let i=t.length,o=0,l=0;for(;o<n&&o<i&&e[o]===t[o];)o++;for(;l+o<n&&l+o<i&&e[n-l-1]===t[i-l-1];)l++;t=[o,n-o-l,t.slice(o,i-l)];let[s,a,c]=t;a!==0&&r.deleteData(s,a),r.insertData(s,c)}else r.nodeValue=t}class Pt extends dr{static getType(){return"text"}static clone(e){return new Pt(e.__text,e.__key)}constructor(e,n){super(n),this.__text=e,this.__format=0,this.__style="",this.__detail=this.__mode=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){let e=this.getLatest();return _d[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===ot()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return(this.getLatest().__detail&1)!==0}isUnmergeable(){return(this.getLatest().__detail&2)!==0}hasFormat(e){return e=pt[e],(this.getFormat()&e)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,n){let r=this.getLatest().__format;return tl(r,e,n)}createDOM(e){var n=this.__format,r=wi(this,n);let i=yi(this,n),o=document.createElement(r===null?i:r),l=o;return r!==null&&(l=document.createElement(i),o.appendChild(l)),r=l,Ci(this.__text,r,this),e=e.theme.text,e!==void 0&&ki(i,0,n,r,e),n=this.__style,n!==""&&(o.style.cssText=n),o}updateDOM(e,n,r){let i=this.__text;var o=e.__format,l=this.__format,s=wi(this,o);let a=wi(this,l);var c=yi(this,o);let d=yi(this,l);return(s===null?c:s)!==(a===null?d:a)?!0:s===a&&c!==d?(o=n.firstChild,o==null&&M(48),e=s=document.createElement(d),Ci(i,e,this),r=r.theme.text,r!==void 0&&ki(d,0,l,e,r),n.replaceChild(s,o),!1):(c=n,a!==null&&s!==null&&(c=n.firstChild,c==null&&M(49)),Ci(i,c,this),r=r.theme.text,r!==void 0&&o!==l&&ki(d,o,l,c,r),l=this.__style,e.__style!==l&&(n.style.cssText=l),!1)}static importDOM(){return{"#text":()=>({conversion:Yd,priority:0}),b:()=>({conversion:Ud,priority:0}),code:()=>({conversion:wn,priority:0}),em:()=>({conversion:wn,priority:0}),i:()=>({conversion:wn,priority:0}),span:()=>({conversion:Wd,priority:0}),strong:()=>({conversion:wn,priority:0}),u:()=>({conversion:wn,priority:0})}}static importJSON(e){let n=me(e.text);return n.setFormat(e.format),n.setDetail(e.detail),n.setMode(e.mode),n.setStyle(e.style),n}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(){}setFormat(e){let n=this.getWritable();return n.__format=typeof e=="string"?pt[e]:e,n}setDetail(e){let n=this.getWritable();return n.__detail=typeof e=="string"?pd[e]:e,n}setStyle(e){let n=this.getWritable();return n.__style=e,n}toggleFormat(e){return e=pt[e],this.setFormat(this.getFormat()^e)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){e=xd[e];let n=this.getWritable();return n.__mode=e,n}setTextContent(e){let n=this.getWritable();return n.__text=e,n}select(e,n){Oe();let r=G();var i=this.getTextContent();let o=this.__key;if(typeof i=="string"?(i=i.length,e===void 0&&(e=i),n===void 0&&(n=i)):n=e=0,B(r))i=ot(),i!==r.anchor.key&&i!==r.focus.key||pe(o),r.setTextNodeRange(this,e,this,n);else return Kl(o,e,o,n,"text","text");return r}spliceText(e,n,r,i){let o=this.getWritable(),l=o.__text,s=r.length,a=e;0>a&&(a=s+a,0>a&&(a=0));let c=G();return i&&B(c)&&(e+=s,c.setTextNodeRange(o,e,o,e)),n=l.slice(0,a)+r+l.slice(a+n),o.__text=n,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Oe();var n=this.getLatest(),r=n.getTextContent(),i=n.__key,o=ot(),l=new Set(e);e=[];for(var s=r.length,a="",c=0;c<s;c++)a!==""&&l.has(c)&&(e.push(a),a=""),a+=r[c];if(a!==""&&e.push(a),l=e.length,l===0)return[];if(e[0]===r)return[n];var d=e[0];r=n.getParentOrThrow(),c=r.__key;let u=n.getFormat(),g=n.getStyle(),m=n.__detail;s=!1,n.isSegmented()?(a=me(d),a.__parent=c,a.__format=u,a.__style=g,a.__detail=m,s=!0):(a=n.getWritable(),a.__text=d),n=G(),a=[a],d=d.length;for(let C=1;C<l;C++){var h=e[C],v=h.length;h=me(h).getWritable(),h.__format=u,h.__style=g,h.__detail=m;let N=h.__key;if(v=d+v,B(n)){let p=n.anchor,x=n.focus;p.key===i&&p.type==="text"&&p.offset>d&&p.offset<=v&&(p.key=N,p.offset-=d,n.dirty=!0),x.key===i&&x.type==="text"&&x.offset>d&&x.offset<=v&&(x.key=N,x.offset-=d,n.dirty=!0)}o===i&&pe(N),d=v,h.__parent=c,a.push(h)}return Ot(this),o=r.getWritable().__children,i=o.indexOf(i),e=a.map(C=>C.__key),s?(o.splice(i,0,...e),this.remove()):o.splice(i,1,...e),B(n)&&ar(n,r,i,l-1),a}mergeWithSibling(e){var n=e===this.getPreviousSibling();n||e===this.getNextSibling()||M(50);var r=this.__key;let i=e.__key,o=this.__text,l=o.length;ot()===i&&pe(r);let s=G();if(B(s)){let a=s.anchor,c=s.focus;a!==null&&a.key===i&&(Vl(a,n,r,e,l),s.dirty=!0),c!==null&&c.key===i&&(Vl(c,n,r,e,l),s.dirty=!0)}return r=e.__text,this.setTextContent(n?r+o:o+r),n=this.getWritable(),e.remove(),n}isTextEntity(){return!1}}function Wd(t){let e=t.style.fontWeight==="700",n=t.style.textDecoration==="line-through",r=t.style.fontStyle==="italic",i=t.style.textDecoration==="underline",o=t.style.verticalAlign;return{forChild:l=>(L(l)&&(e&&l.toggleFormat("bold"),n&&l.toggleFormat("strikethrough"),r&&l.toggleFormat("italic"),i&&l.toggleFormat("underline"),o==="sub"&&l.toggleFormat("subscript"),o==="super"&&l.toggleFormat("superscript")),l),node:null}}function Ud(t){let e=t.style.fontWeight==="normal";return{forChild:n=>(L(n)&&!e&&n.toggleFormat("bold"),n),node:null}}function Yd(t,e,n){return t=t.textContent||"",!n&&/\n/.test(t)&&(t=t.replace(/\r?\n/gm," "),t.trim().length===0)?{node:null}:{node:me(t)}}let Vd={code:"code",em:"italic",i:"italic",strong:"bold",u:"underline"};function wn(t){let e=Vd[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:n=>(L(n)&&n.toggleFormat(e),n),node:null}}function me(t=""){return new Pt(t)}function L(t){return t instanceof Pt}class Ft extends _t{static getType(){return"paragraph"}static clone(e){return new Ft(e.__key)}createDOM(e){let n=document.createElement("p");return e=rn(e.theme,"paragraph"),e!==void 0&&n.classList.add(...e),n}updateDOM(){return!1}static importDOM(){return{p:()=>({conversion:jd,priority:0})}}exportDOM(e){if({element:e}=super.exportDOM(e),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var n=this.getFormatType();e.style.textAlign=n,(n=this.getDirection())&&(e.dir=n),n=this.getIndent(),0<n&&(e.style.textIndent=`${20*n}px`)}return{element:e}}static importJSON(e){let n=zt();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(){let e=zt(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=this.getChildren();if(e.length===0||L(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function jd(){return{node:zt()}}function zt(){return new Ft}function es(t,e,n,r){let i=t._keyToDOMMap;i.clear(),t._editorState=vi(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],r=t._observer,r!==null&&(r.disconnect(),t._observer=null),e!==null&&(e.textContent=""),n!==null&&(n.textContent="",i.set("root",n))}function Gd(t){let e=new Map,n=new Set;return t.forEach(r=>{if(r=r.klass.importDOM!=null?r.klass.importDOM.bind(r.klass):null,r!=null&&!n.has(r)){n.add(r);var i=r();i!==null&&Object.keys(i).forEach(o=>{let l=e.get(o);l===void 0&&(l=[],e.set(o,l)),l.push(i[o])})}}),e}class Zd{constructor(e,n,r,i,o,l){this._parentEditor=n,this._rootElement=null,this._editorState=e,this._compositionKey=this._pendingEditorState=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=i,this._nodes=r,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=sl(),this._onError=o,this._htmlConversions=l,this._editable=!0,this._headless=!1,this._window=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){let n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){let n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){let n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){let n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){let n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,r){r===void 0&&M(35);let i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);let o=i.get(e);o===void 0&&M(36);let l=o[r];return l.add(n),()=>{l.delete(n),o.every(s=>s.size===0)&&i.delete(e)}}registerMutationListener(e,n){this._nodes.get(e.getType())===void 0&&M(37);let r=this._listeners.mutation;return r.set(n,e),()=>{r.delete(n)}}registerNodeTransform(e,n){e=e.getType();let r=this._nodes.get(e);r===void 0&&M(37);let i=r.transforms;return i.add(n),Cd(this,e),()=>{i.delete(n)}}hasNodes(e){for(let n=0;n<e.length;n++){let r=e[n].getType();if(!this._nodes.has(r))return!1}return!0}dispatchCommand(e,n){return A(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let n=this._rootElement;if(e!==n){let o=rn(this._config.theme,"root");var r=this._pendingEditorState||this._editorState;if(this._rootElement=e,es(this,n,e,r),n!==null){if(!this._config.disableEvents){if(un!==0&&(un--,un===0&&n.ownerDocument.removeEventListener("selectionchange",Al)),r=n.__lexicalEditor,r!=null){if(r._parentEditor!==null){var i=qr(r);i=i[i.length-1]._key,Mt.get(i)===r&&Mt.delete(i)}else Mt.delete(r._key);n.__lexicalEditor=null}for(r=$l(n),i=0;i<r.length;i++)r[i]();n.__lexicalEventHandles=[]}o!=null&&n.classList.remove(...o)}e!==null?(r=(r=e.ownerDocument)&&r.defaultView||null,i=e.style,i.userSelect="text",i.whiteSpace="pre-wrap",i.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=r,this._dirtyType=2,qo(this),this._updateTags.add("history-merge"),xt(this),this._config.disableEvents||Id(e,this),o!=null&&e.classList.add(...o)):this._window=null,xn("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&M(38),Qo(this);let r=this._pendingEditorState,i=this._updateTags;n=n!==void 0?n.tag:null,r===null||r.isEmpty()||(n!=null&&i.add(n),xt(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,n!=null&&i.add(n),xt(this)}parseEditorState(e,n){e=typeof e=="string"?JSON.parse(e):e;let r=vi(),i=ye,o=le,l=he,s=this._dirtyElements,a=this._dirtyLeaves,c=this._cloneNotNeeded,d=this._dirtyType;this._dirtyElements=new Map,this._dirtyLeaves=new Set,this._cloneNotNeeded=new Set,this._dirtyType=0,ye=r,le=!1,he=this;try{xi(e.root,this._nodes),n&&n(),r._readOnly=!0}finally{this._dirtyElements=s,this._dirtyLeaves=a,this._cloneNotNeeded=c,this._dirtyType=d,ye=i,le=o,he=l}return r}update(e,n){Re(this,e,n)}focus(e,n={}){let r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),Re(this,()=>{let i=G(),o=lt();i!==null?i.dirty=!0:o.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?o.selectStart():o.selectEnd())},{onUpdate:()=>{r.removeAttribute("autocapitalize"),e&&e()}}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){var e=this._rootElement;e!==null&&e.blur(),e=Ee?window.getSelection():null,e!==null&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,xn("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}class ts extends _t{constructor(e,n){super(n),this.__colSpan=e}exportJSON(){return{...super.exportJSON(),colSpan:this.__colSpan}}}function ns(t){return t instanceof ts}class rs extends _t{}function is(t){return t instanceof rs}class os extends _t{}function ls(t){return t instanceof os}b.$addUpdateTag=function(t){Oe(),se()._updateTags.add(t)},b.$createLineBreakNode=_n,b.$createNodeSelection=Wl,b.$createParagraphNode=zt,b.$createRangeSelection=function(){let t=new We("root",0,"element"),e=new We("root",0,"element");return new Lt(t,e,0)},b.$createTextNode=me,b.$getDecoratorNode=ul,b.$getNearestNodeFromDOMNode=nn,b.$getNearestRootOrShadowRoot=fl,b.$getNodeByKey=J,b.$getPreviousSelection=pn,b.$getRoot=lt,b.$getSelection=G,b.$getTextContent=function(){let t=G();return t===null?"":t.getTextContent()},b.$hasAncestor=qn,b.$insertNodes=function(t,e){let n=G();return n===null&&(n=lt().selectEnd()),n.insertNodes(t,e)},b.$isDecoratorNode=ne,b.$isElementNode=R,b.$isInlineElementOrDecoratorNode=function(t){return R(t)&&t.isInline()||ne(t)&&t.isInline()},b.$isLeafNode=nl,b.$isLineBreakNode=vn,b.$isNodeSelection=hn,b.$isParagraphNode=function(t){return t instanceof Ft},b.$isRangeSelection=B,b.$isRootNode=Pe,b.$isRootOrShadowRoot=st,b.$isTextNode=L,b.$nodesOfType=function(t){var e=Ue();let n=e._readOnly,r=t.getType();e=e._nodeMap;let i=[];for(let[,o]of e)o instanceof t&&o.__type===r&&(n||o.isAttached())&&i.push(o);return i},b.$normalizeSelection__EXPERIMENTAL=_l,b.$parseSerializedNode=function(t){return xi(t,se()._nodes)},b.$setCompositionKey=pe,b.$setSelection=Rt,b.BLUR_COMMAND=Go,b.CAN_REDO_COMMAND={},b.CAN_UNDO_COMMAND={},b.CLEAR_EDITOR_COMMAND={},b.CLEAR_HISTORY_COMMAND={},b.CLICK_COMMAND=$o,b.COMMAND_PRIORITY_CRITICAL=4,b.COMMAND_PRIORITY_EDITOR=0,b.COMMAND_PRIORITY_HIGH=3,b.COMMAND_PRIORITY_LOW=1,b.COMMAND_PRIORITY_NORMAL=2,b.CONTROLLED_TEXT_INSERTION_COMMAND=St,b.COPY_COMMAND=jr,b.CUT_COMMAND=Gr,b.DELETE_CHARACTER_COMMAND=Qt,b.DELETE_LINE_COMMAND=tn,b.DELETE_WORD_COMMAND=en,b.DEPRECATED_$createGridSelection=function(){let t=new We("root",0,"element"),e=new We("root",0,"element");return new lr("root",t,e)},b.DEPRECATED_$isGridCellNode=ns,b.DEPRECATED_$isGridNode=is,b.DEPRECATED_$isGridRowNode=ls,b.DEPRECATED_$isGridSelection=pi,b.DEPRECATED_GridCellNode=ts,b.DEPRECATED_GridNode=rs,b.DEPRECATED_GridRowNode=os,b.DRAGEND_COMMAND=Vo,b.DRAGOVER_COMMAND=Yo,b.DRAGSTART_COMMAND=Uo,b.DROP_COMMAND=Wo,b.DecoratorNode=Ql,b.ElementNode=_t,b.FOCUS_COMMAND=jo,b.FORMAT_ELEMENT_COMMAND={},b.FORMAT_TEXT_COMMAND=it,b.INDENT_CONTENT_COMMAND={},b.INSERT_LINE_BREAK_COMMAND=qt,b.INSERT_PARAGRAPH_COMMAND=Kr,b.KEY_ARROW_DOWN_COMMAND=Po,b.KEY_ARROW_LEFT_COMMAND=Lo,b.KEY_ARROW_RIGHT_COMMAND=Ao,b.KEY_ARROW_UP_COMMAND=Io,b.KEY_BACKSPACE_COMMAND=zo,b.KEY_DELETE_COMMAND=Ho,b.KEY_ENTER_COMMAND=Yn,b.KEY_ESCAPE_COMMAND=Bo,b.KEY_MODIFIER_COMMAND=Zo,b.KEY_SPACE_COMMAND=Fo,b.KEY_TAB_COMMAND=Ko,b.LineBreakNode=It,b.MOVE_TO_END=Mo,b.MOVE_TO_START=Do,b.OUTDENT_CONTENT_COMMAND={},b.PASTE_COMMAND=Wr,b.ParagraphNode=Ft,b.REDO_COMMAND=Vr,b.REMOVE_TEXT_COMMAND=Ur,b.RootNode=Dt,b.SELECTION_CHANGE_COMMAND=Ro,b.TextNode=Pt,b.UNDO_COMMAND=Yr,b.VERSION="0.4.1",b.createCommand=function(){return{}},b.createEditor=function(t){var e=t||{},n=he,r=e.theme||{};let i=t===void 0?n:e.parentEditor||null,o=e.disableEvents||!1,l=vi(),s=e.namespace||(i!==null?i._config.namespace:sl()),a=e.editorState,c=[Dt,Pt,It,Ft,...e.nodes||[]],d=e.onError;if(e=e.editable!==void 0?e.editable:!0,t===void 0&&n!==null)t=n._nodes;else for(t=new Map,n=0;n<c.length;n++){let u=c[n],g=u.getType();t.set(g,{klass:u,transforms:new Set})}return r=new Zd(l,i,t,{disableEvents:o,namespace:s,theme:r},d||console.error,Gd(t),e),a!==void 0&&(r._pendingEditorState=a,r._dirtyType=2),r};var w=b,ss=ge,yn=w,gr=S.default,Jd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?gr.useLayoutEffect:gr.useEffect;let fr={tag:"history-merge"};function Xd(t,e){if(e!==null){if(e===void 0)t.update(()=>{var n=yn.$getRoot();if(n.isEmpty()){let r=yn.$createParagraphNode();n.append(r),n=document.activeElement,(yn.$getSelection()!==null||n!==null&&n===t.getRootElement())&&r.select()}},fr);else if(e!==null)switch(typeof e){case"string":let n=t.parseEditorState(e);t.setEditorState(n,fr);break;case"object":t.setEditorState(e,fr);break;case"function":t.update(()=>{yn.$getRoot().isEmpty()&&e(t)},fr)}}}So.LexicalComposer=function({initialConfig:t,children:e}){let n=gr.useMemo(()=>{const{theme:r,namespace:i,editor__DEPRECATED:o,nodes:l,onError:s,editorState:a}=t,c=ss.createLexicalComposerContext(null,r);let d=o||null;if(d===null){const u=yn.createEditor({editable:!1,namespace:i,nodes:l,onError:g=>s(g,u),theme:r});Xd(u,a),d=u}return[d,c]},[]);return Jd(()=>{let r=t.editable,[i]=n;i.setEditable(r!==void 0?r:!0)},[]),gr.createElement(ss.LexicalComposerContext.Provider,{value:n},e)};var Qd=So,xe={},$e={},ke=w;function as(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function cs(t,e){for(;t!==ke.$getRoot()&&t!=null;){if(e(t))return t;t=t.getParent()}return null}function ds(t,e,n,r,i){var o=n._nodes.get(t.__type);o===void 0&&as(5);for(var l in t){var s=t[l];if(s!=null&&typeof s=="object"&&(s=s.editorState,s!=null)){var a=ke.createEditor({namespace:s.namespace});a._nodes=n._nodes,a._parentEditor=n._parentEditor,a._pendingEditorState=us(a,s),t[l]=a}}if(o=o.klass,l=t.__key,t.__key=void 0,o=o.clone(t),t.__key=l,l=o.__key,i._nodeMap.set(l,o),o.__parent=r,ke.$isElementNode(o)){for(r=t.__children,s=0;s<r.length;s++)a=e.get(r[s]),a!==void 0&&(a=ds(a,e,n,l,i).__key,o.__children.push(a));o.__indent=t.__indent,o.__format=t.__format,o.__dir=t.__dir}else ke.$isTextNode(o)&&(o.__format=t.__format,o.__style=t.__style,o.__mode=t.__mode,o.__detail=t.__detail);return o}function qd(t,e){let n=e._editorState.constructor,r=new Map,i=new n(r),o=new Map(t._nodeMap),l=o.get("root");t=e._updating;try{e._updating=!1,e.update(()=>{let s=e._dirtyElements,a=e._dirtyLeaves,c=e._dirtyType;e._dirtyElements=new Map,e._dirtyLeaves=new Set,e._dirtyType=0;try{ds(l,o,e,null,i)}finally{e._dirtyElements=s,e._dirtyLeaves=a,e._dirtyType=c}})}finally{e._updating=t}return i._readOnly=!0,i}function us(t,e){return e=typeof e=="string"?JSON.parse(e):e,qd(e,t)}$e.$dfs=function(t,e){let n=[];t=(t||ke.$getRoot()).getLatest(),e=e||(ke.$isElementNode(t)?t.getLastDescendant():t);for(var r=t,i=0;(r=r.getParent())!==null;)i++;for(r=i;t!==null&&!t.is(e);)if(n.push({depth:r,node:t}),ke.$isElementNode(t)&&0<t.getChildrenSize())t=t.getFirstChild(),r++;else for(i=null;i===null&&t!==null;)i=t.getNextSibling(),i===null?(t=t.getParent(),r--):t=i;return t!==null&&t.is(e)&&n.push({depth:r,node:t}),n},$e.$findMatchingParent=cs,$e.$getNearestBlockElementAncestorOrThrow=function(t){return t=cs(t,e=>ke.$isElementNode(e)&&!e.isInline()),ke.$isElementNode(t)||as(4),t},$e.$getNearestNodeOfType=function(t,e){for(;t!=null;){if(t instanceof e)return t;t=t.getParent()}return null},$e.$insertNodeToNearestRoot=function(t){var e=ke.$getSelection();return ke.$isRangeSelection(e)?e.focus.getNode().getTopLevelElementOrThrow().insertAfter(t):ke.$isNodeSelection(e)||ke.DEPRECATED_$isGridSelection(e)?(e=e.getNodes(),e[e.length-1].getTopLevelElementOrThrow().insertAfter(t)):ke.$getRoot().append(t),e=ke.$createParagraphNode(),t.insertAfter(e),e.select(),t.getLatest()},$e.$restoreEditorState=function(t,e){let n=new Map(e._nodeMap),r=t._pendingEditorState;r&&(r._nodeMap=n),t._dirtyType=2,t=e._selection,ke.$setSelection(t===null?null:t.clone())},$e.$wrapNodeInElement=function(t,e){return e=e(),t.replace(e),e.append(t),e},$e.addClassNamesToElement=function(t,...e){e.forEach(n=>{typeof n=="string"&&(n=n.split(" ").filter(r=>r!==""),t.classList.add(...n))})},$e.mergeRegister=function(...t){return()=>{t.forEach(e=>e())}},$e.registerNestedElementResolver=function(t,e,n,r){return t.registerNodeTransform(e,i=>{e:{for(var o=i.getChildren(),l=0;l<o.length;l++)if(o[l]instanceof e){o=null;break e}for(o=i;o!==null;)if(l=o,o=o.getParent(),o instanceof e){o={child:l,parent:o};break e}o=null}if(o!==null){const{child:s,parent:a}=o;if(s.is(i)){if(r(a,i),i=s.getNextSiblings(),o=i.length,a.insertAfter(s),o!==0){l=n(a),s.insertAfter(l);for(let c=0;c<o;c++)l.append(i[c])}a.canBeEmpty()||a.getChildrenSize()!==0||a.remove()}}})},$e.removeClassNamesFromElement=function(t,...e){e.forEach(n=>{typeof n=="string"&&t.classList.remove(...n.split(" "))})},$e.unstable_convertLegacyJSONEditorState=us;var _e=$e,Y=w,kn=_e;function Cn(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function gs(t){let e=1;for(t=t.getParent();t!=null;){if(Z(t)){if(t=t.getParent(),K(t)){e++,t=t.getParent();continue}Cn(40)}break}return e}function Ei(t){t=t.getParent(),K(t)||Cn(40);let e=t;for(;e!==null;)e=e.getParent(),K(e)&&(t=e);return t}function fs(t){let e=[];t=t.getChildren().filter(Z);for(let n=0;n<t.length;n++){let r=t[n],i=r.getFirstChild();K(i)?e=e.concat(fs(i)):e.push(r)}return e}function Bt(t){return Z(t)&&K(t.getFirstChild())}function eu(t){for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){let e=t.getParent();if(e==null||!Z(t)&&!K(t))break;t=e}t.remove()}function hs(t){return Ie().append(t)}function ps(t,e){return Z(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function vt(t,e){t.splice(t.getChildrenSize(),0,e)}function ms(t,e){if(K(t))return t;let n=t.getPreviousSibling(),r=t.getNextSibling(),i=Ie();return i.setFormat(t.getFormatType()),i.setIndent(t.getIndent()),vt(i,t.getChildren()),K(n)&&e===n.getListType()?(n.append(i),t.remove(),K(r)&&e===r.getListType()&&(vt(n,r.getChildren()),r.remove()),n):K(r)&&e===r.getListType()?(r.getFirstChildOrThrow().insertBefore(i),t.remove(),r):(e=Me(e),e.append(i),t.replace(e),Ae(e),e)}function Ae(t,e){if(t=e||t.getChildren(),t!==void 0)for(e=0;e<t.length;e++){let o=t[e];if(Z(o)){let l=o.getValue();var n=o,r=n.getParent(),i=1;for(r!=null&&(K(r)?i=r.getStart():Cn(44)),n=n.getPreviousSiblings(),r=0;r<n.length;r++){let s=n[r];Z(s)&&!K(s.getFirstChild())&&i++}l!==i&&o.setValue(i)}}}function xs(t){let e=new Set;t.forEach(n=>{if(!Bt(n)&&!e.has(n.getKey())){var r=n.getParent(),i=n.getNextSibling(),o=n.getPreviousSibling();if(Bt(i)&&Bt(o))o=o.getFirstChild(),K(o)&&(o.append(n),n=i.getFirstChild(),K(n)&&(n=n.getChildren(),vt(o,n),i.remove(),e.add(i.getKey())),Ae(o));else if(Bt(i))i=i.getFirstChild(),K(i)&&(o=i.getFirstChild(),o!==null&&o.insertBefore(n),Ae(i));else if(Bt(o))i=o.getFirstChild(),K(i)&&(i.append(n),Ae(i));else if(K(r)){let l=Ie(),s=Me(r.getListType());l.append(s),s.append(n),o?o.insertAfter(l):i?i.insertBefore(l):r.append(l)}K(r)&&Ae(r)}})}function _s(t){t.forEach(e=>{if(!Bt(e)){var n=e.getParent(),r=n?n.getParent():void 0,i=r?r.getParent():void 0;if(K(i)&&Z(r)&&K(n)){var o=n?n.getFirstChild():void 0,l=n?n.getLastChild():void 0;if(e.is(o))r.insertBefore(e),n.isEmpty()&&r.remove();else if(e.is(l))r.insertAfter(e),n.isEmpty()&&r.remove();else{var s=n.getListType();o=Ie();let a=Me(s);o.append(a),e.getPreviousSiblings().forEach(c=>a.append(c)),l=Ie(),s=Me(s),l.append(s),vt(s,e.getNextSiblings()),r.insertBefore(o),r.insertAfter(l),r.replace(e)}Ae(n),Ae(i)}}})}function vs(t){var e=Y.$getSelection();if(Y.$isRangeSelection(e)){var n=e.getNodes(),r=[];if(n.length===0&&n.push(e.anchor.getNode()),n.length===1){e:{for(n=n[0];n!==null;){if(Z(n))break e;n=n.getParent()}n=null}n!==null&&(r=[n])}else{for(r=new Set,e=0;e<n.length;e++){let i=n[e];Z(i)&&r.add(i)}r=Array.from(r)}0<r.length&&(t==="indent"?xs(r):_s(r))}}class wt extends Y.ElementNode{static getType(){return"listitem"}static clone(e){return new wt(e.__value,e.__checked,e.__key)}constructor(e,n,r){super(r),this.__value=e===void 0?1:e,this.__checked=n}createDOM(e){let n=document.createElement("li"),r=this.getParent();return K(r)&&(Ae(r),ys(n,this,null,r)),n.value=this.__value,ws(n,e.theme,this),n}updateDOM(e,n,r){let i=this.getParent();return K(i)&&(Ae(i),ys(n,this,e,i)),n.value=this.__value,ws(n,r.theme,this),!1}static importDOM(){return{li:()=>({conversion:tu,priority:0})}}static importJSON(e){let n=new wt(e.value,e.checked);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...e){for(let n=0;n<e.length;n++){let r=e[n];if(Y.$isElementNode(r)&&this.canMergeWith(r)){let i=r.getChildren();this.append(...i),r.remove()}else super.append(r)}return this}replace(e){if(Z(e))return super.replace(e);let n=this.getParentOrThrow();if(K(n)){var r=n.__children;let o=r.length;var i=r.indexOf(this.__key);if(i===0)n.insertBefore(e);else if(i===o-1)n.insertAfter(e);else{r=Me(n.getListType());let l=n.getChildren();for(i+=1;i<o;i++)r.append(l[i]);n.insertAfter(e),e.insertAfter(r)}this.remove(),o===1&&n.remove()}return e}insertAfter(e){var n=this.getParentOrThrow();K(n)||Cn(39);var r=this.getNextSiblings();if(Z(e))return n=super.insertAfter(e),e=e.getParentOrThrow(),K(e)&&Ae(e),n;if(K(e)&&e.getListType()===n.getListType()){for(n=e,e=e.getChildren(),r=e.length-1;0<=r;r--)n=e[r],this.insertAfter(n);return n}if(n.insertAfter(e),r.length!==0){let i=Me(n.getListType());r.forEach(o=>i.append(o)),e.insertAfter(i)}return e}remove(e){let n=this.getNextSibling();super.remove(e),n!==null&&(e=n.getParent(),K(e)&&Ae(e))}insertNewAfter(){let e=Ie(this.__checked==null?void 0:!1);return this.insertAfter(e),e}collapseAtStart(e){let n=Y.$createParagraphNode();this.getChildren().forEach(l=>n.append(l));var r=this.getParentOrThrow(),i=r.getParentOrThrow();let o=Z(i);return r.getChildrenSize()===1?o?(r.remove(),i.select()):(r.replace(n),r=e.anchor,e=e.focus,i=n.getKey(),r.type==="element"&&r.getNode().is(this)&&r.set(i,r.offset,"element"),e.type==="element"&&e.getNode().is(this)&&e.set(i,e.offset,"element")):(r.insertBefore(n),this.remove()),!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){return this.getLatest().__checked}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){var e=this.getParent();if(e===null)return this.getLatest().__indent;e=e.getParentOrThrow();let n=0;for(;Z(e);)e=e.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){let n=this.getIndent();for(;n!==e;)n<e?(xs([this]),n++):(_s([this]),n--);return this}canIndent(){return!1}insertBefore(e){if(Z(e)){let n=this.getParentOrThrow();if(K(n)){let r=this.getNextSiblings();Ae(n,r)}}return super.insertBefore(e)}canInsertAfter(e){return Z(e)}canReplaceWith(e){return Z(e)}canMergeWith(e){return Y.$isParagraphNode(e)||Z(e)}extractWithChild(e,n){if(!Y.$isRangeSelection(n))return!1;e=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&this.getTextContent().length===n.getTextContent().length}}function ws(t,e,n){let r=[],i=[];var o=(e=e.list)?e.listitem:void 0;if(e&&e.nested)var l=e.nested.listitem;if(o!==void 0&&(o=o.split(" "),r.push(...o)),e){o=n.getParent(),o=K(o)&&o.getListType()==="check";let s=n.getChecked();o&&!s||i.push(e.listitemUnchecked),o&&s||i.push(e.listitemChecked),o&&r.push(s?e.listitemChecked:e.listitemUnchecked)}l!==void 0&&(l=l.split(" "),n.getChildren().some(s=>K(s))?r.push(...l):i.push(...l)),0<i.length&&kn.removeClassNamesFromElement(t,...i),0<r.length&&kn.addClassNamesToElement(t,...r)}function ys(t,e,n,r){r.getListType()==="check"?K(e.getFirstChild())?(t.removeAttribute("role"),t.removeAttribute("tabIndex"),t.removeAttribute("aria-checked")):(t.setAttribute("role","checkbox"),t.setAttribute("tabIndex","-1"),n&&e.__checked===n.__checked||t.setAttribute("aria-checked",e.getChecked()?"true":"false")):e.getChecked()!=null&&e.setChecked(void 0)}function tu(){return{node:Ie()}}function Ie(t){return new wt(void 0,t)}function Z(t){return t instanceof wt}class En extends Y.ElementNode{static getType(){return"list"}static clone(e){return new En(e.__listType||Es[e.__tag],e.__start,e.__key)}constructor(e,n,r){super(r),this.__listType=e=Es[e]||e,this.__tag=e==="number"?"ol":"ul",this.__start=n}getTag(){return this.__tag}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e){let n=document.createElement(this.__tag);return this.__start!==1&&n.setAttribute("start",String(this.__start)),n.__lexicalListType=this.__listType,ks(n,e.theme,this),n}updateDOM(e,n,r){return e.__tag!==this.__tag?!0:(ks(n,r.theme,this),!1)}static importDOM(){return{ol:()=>({conversion:Cs,priority:0}),ul:()=>({conversion:Cs,priority:0})}}static importJSON(e){let n=Me(e.listType,e.start);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...e){for(let r=0;r<e.length;r++){var n=e[r];if(Z(n))super.append(n);else{let i=Ie();K(n)||Y.$isElementNode(n)&&(n=Y.$createTextNode(n.getTextContent())),i.append(n),super.append(i)}}return this}extractWithChild(e){return Z(e)}}function ks(t,e,n){let r=[],i=[];var o=e.list;if(o!==void 0){let s=o[`${n.__tag}Depth`]||[];e=gs(n)-1;let a=e%s.length;var l=s[a];let c=o[n.__tag],d;if(o=o.nested,o!==void 0&&o.list&&(d=o.list),c!==void 0&&r.push(c),l!==void 0)for(l=l.split(" "),r.push(...l),l=0;l<s.length;l++)l!==a&&i.push(n.__tag+l);d!==void 0&&(n=d.split(" "),1<e?r.push(...n):i.push(...n))}0<i.length&&kn.removeClassNamesFromElement(t,...i),0<r.length&&kn.addClassNamesToElement(t,...r)}function nu(t){let e=[];for(let n=0;n<t.length;n++){let r=t[n];Z(r)?(e.push(r),r.getChildren().forEach(i=>{K(i)&&e.push(hs(i))})):e.push(hs(r))}return e}function Cs(t){t=t.nodeName.toLowerCase();let e=null;return t==="ol"?e=Me("number"):t==="ul"&&(e=Me("bullet")),{after:nu,node:e}}let Es={ol:"number",ul:"bullet"};function Me(t,e=1){return new En(t,e)}function K(t){return t instanceof En}let ru=Y.createCommand("INSERT_UNORDERED_LIST_COMMAND"),iu=Y.createCommand("INSERT_ORDERED_LIST_COMMAND"),ou=Y.createCommand("INSERT_CHECK_LIST_COMMAND"),lu=Y.createCommand("REMOVE_LIST_COMMAND");xe.$createListItemNode=Ie,xe.$createListNode=Me,xe.$getListDepth=gs,xe.$handleListInsertParagraph=function(){var t=Y.$getSelection();if(!Y.$isRangeSelection(t)||!t.isCollapsed()||(t=t.anchor.getNode(),!Z(t)||t.getTextContent()!==""))return!1;var e=Ei(t),n=t.getParent();K(n)||Cn(40);let r=n.getParent(),i;if(Y.$isRootOrShadowRoot(r))i=Y.$createParagraphNode(),e.insertAfter(i);else if(Z(r))i=Ie(),r.insertAfter(i);else return!1;if(i.select(),e=t.getNextSiblings(),0<e.length){let o=Me(n.getListType());Y.$isParagraphNode(i)?i.insertAfter(o):(n=Ie(),n.append(o),i.insertAfter(n)),e.forEach(l=>{l.remove(),o.append(l)})}return eu(t),!0},xe.$isListItemNode=Z,xe.$isListNode=K,xe.INSERT_CHECK_LIST_COMMAND=ou,xe.INSERT_ORDERED_LIST_COMMAND=iu,xe.INSERT_UNORDERED_LIST_COMMAND=ru,xe.ListItemNode=wt,xe.ListNode=En,xe.REMOVE_LIST_COMMAND=lu,xe.indentList=function(){vs("indent")},xe.insertList=function(t,e){t.update(()=>{var n=Y.$getSelection();if(Y.$isRangeSelection(n)||Y.DEPRECATED_$isGridSelection(n)){var r=n.getNodes();n=n.anchor.getNode();var i=n.getParent();if(ps(n,r))r=Me(e),Y.$isRootOrShadowRoot(i)?(n.replace(r),i=Ie(),Y.$isElementNode(n)&&(i.setFormat(n.getFormatType()),i.setIndent(n.getIndent())),r.append(i)):Z(n)&&(n=n.getParentOrThrow(),vt(r,n.getChildren()),n.replace(r));else for(n=new Set,i=0;i<r.length;i++){var o=r[i];if(Y.$isElementNode(o)&&o.isEmpty()&&!n.has(o.getKey()))ms(o,e);else if(Y.$isLeafNode(o))for(o=o.getParent();o!=null;){let s=o.getKey();if(K(o)){if(!n.has(s)){var l=Me(e);vt(l,o.getChildren()),o.replace(l),Ae(l),n.add(s)}break}else{if(l=o.getParent(),Y.$isRootOrShadowRoot(l)&&!n.has(s)){n.add(s),ms(o,e);break}o=l}}}}})},xe.outdentList=function(){vs("outdent")},xe.removeList=function(t){t.update(()=>{let e=Y.$getSelection();if(Y.$isRangeSelection(e)){var n=new Set,r=e.getNodes(),i=e.anchor.getNode();if(ps(i,r))n.add(Ei(i));else for(i=0;i<r.length;i++){var o=r[i];Y.$isLeafNode(o)&&(o=kn.$getNearestNodeOfType(o,wt),o!=null&&n.add(Ei(o)))}for(let l of n){n=l,r=fs(l);for(let s of r)r=Y.$createParagraphNode(),vt(r,s.getChildren()),n.insertAfter(r),n=r,s.__key===e.anchor.key&&e.anchor.set(r.getKey(),0,"element"),s.__key===e.focus.key&&e.focus.set(r.getKey(),0,"element"),s.remove();l.remove()}}})};var Xe=xe,Ye={},Qe={},Ni={},ae={},F=w;let hr=new Map;function su(t){return{nodeMap:t.getNodes().map(e=>{const n=e.getKey();return e=mr(e),[n,e]}),range:[t.gridKey]}}function Ns(t){for(;t!=null;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function Ts(t){let e=t.parentNode;if(e==null)throw Error("Should never happen");return[e,Array.from(e.childNodes).indexOf(t)]}function Ss(t){let e={};t=t.split(";");for(let n of t)if(n!==""){let[r,i]=n.split(/:([^]+)/);e[r.trim()]=i.trim()}return e}function Ti(t){let e=hr.get(t);return e===void 0&&(e=Ss(t),hr.set(t,e)),e}function au(t){let e="";for(let n in t)n&&(e+=`${n}: ${t[n]};`);return e}function cu(t){for(;t!==null&&!F.$isRootOrShadowRoot(t);){let e=t.getLatest(),n=t.getParent();e.__children.length===0&&t.remove(!0),t=n}}function pr(t,e,n,r,i=null){if(e.length!==0){var o=e[0],l=new Map,s=[];o=F.$isElementNode(o)?o:o.getParentOrThrow(),o.isInline()&&(o=o.getParentOrThrow());for(var a=!1;o!==null;){var c=o.getPreviousSibling();if(c!==null){o=c,a=!0;break}if(o=o.getParentOrThrow(),F.$isRootOrShadowRoot(o))break}c=new Set;for(var d=0;d<n;d++){var u=e[d];F.$isElementNode(u)&&u.getChildrenSize()===0&&c.add(u.getKey())}var g=new Set;for(d=0;d<n;d++){u=e[d];var m=u.getParent();if(m!==null&&m.isInline()&&(m=m.getParent()),m!==null&&F.$isLeafNode(u)&&!g.has(u.getKey())){if(u=m.getKey(),l.get(u)===void 0){let h=r();h.setFormat(m.getFormatType()),h.setIndent(m.getIndent()),s.push(h),l.set(u,h),m.getChildren().forEach(v=>{h.append(v),g.add(v.getKey())}),cu(m)}}else c.has(u.getKey())&&(m=r(),m.setFormat(u.getFormatType()),m.setIndent(u.getIndent()),s.push(m),u.remove(!0))}if(i!==null)for(e=0;e<s.length;e++)i.append(s[e]);if(F.$isRootOrShadowRoot(o))if(a)if(i!==null)o.insertAfter(i);else for(i=s.length-1;0<=i;i--)o.insertAfter(s[i]);else if(e=o.getFirstChild(),F.$isElementNode(e)&&(o=e),e===null)if(i)o.append(i);else for(i=0;i<s.length;i++)o.append(s[i]);else if(i!==null)e.insertBefore(i);else for(o=0;o<s.length;o++)e.insertBefore(s[o]);else if(i)o.insertAfter(i);else for(i=s.length-1;0<=i;i--)o.insertAfter(s[i]);s=F.$getPreviousSelection(),F.$isRangeSelection(s)&&s.anchor.getNode().isAttached()&&s.focus.getNode().isAttached()?F.$setSelection(s.clone()):t.dirty=!0}}function bs(t,e,n,r){t.modify(e?"extend":"move",n,r)}function Os(t){return t=t.anchor.getNode(),(F.$isRootNode(t)?t:t.getParentOrThrow()).getDirection()==="rtl"}function Rs(t,e,n,r,i,o){for(var l=e;t!==null;){for(e=t.getParent();e!==null&&e.excludeFromCopy("clone");)e=e.getParent();if(e===null)break;if(!F.$isElementNode(t)||!t.excludeFromCopy("clone")){let s=t.getKey(),a=o.get(s),c=a===void 0;if(c&&(a=mr(t),o.set(s,a)),!F.$isTextNode(a)||a.isSegmented()||a.isToken()?F.$isElementNode(a)&&(a.__children=a.__children.slice(r?l:0,r?void 0:(l||0)+1)):a.__text=a.__text.slice(r?l:0,r?n:l),F.$isRootNode(e)){c&&i.push(s);break}}l=o.get(e.getKey()),l=F.$isElementNode(l)?l.__children.indexOf(t.getKey()):t.getIndexWithinParent(),t=e}}function mr(t){t=t.getLatest();let e=t.constructor.clone(t);return e.__parent=t.__parent,F.$isElementNode(t)&&F.$isElementNode(e)?(e.__children=Array.from(t.__children),e.__format=t.__format,e.__indent=t.__indent,e.__dir=t.__dir,e):(F.$isTextNode(t)&&F.$isTextNode(e)&&(e.__format=t.__format,e.__style=t.__style,e.__mode=t.__mode,e.__detail=t.__detail),e)}function Nn(t,e){var n=Ti(t.getStyle());e=Object.entries(e).reduce((r,[i,o])=>(o===null?delete r[i]:r[i]=o,r),{...n}),n=au(e),t.setStyle(n),hr.set(n,e)}ae.$addNodeStyle=function(t){t=t.getStyle();let e=Ss(t);hr.set(t,e)},ae.$cloneContents=function(t){var e={nodeMap:[],range:[]};if(F.$isRangeSelection(t)){var n=t.anchor,r=t.focus;let[c,d]=t.getCharacterOffsets();if(e=t.getNodes(),e.length===0||e.length===1&&F.$isElementNode(e[0])&&e[0].excludeFromCopy("clone"))e={nodeMap:[],range:[]};else{t=e.length;var i=e[0],o=i.getParent();if(o!==null&&(!o.canBeEmpty()||F.$isRootNode(o))){var l=o.__children;if(l.length===t){for(var s=!0,a=0;a<l.length;a++)if(l[a]!==e[a].__key){s=!1;break}s&&(t++,e.push(o))}}for(o=e[t-1],n=n.isBefore(r),r=new Map,l=[],s=F.$isTextNode(i)&&t===1,Rs(i,n?c:d,s?n?d:c:void 0,!0,l,r),i=0;i<t;i++){a=e[i];let u=a.getKey();if(!(r.has(u)||F.$isElementNode(a)&&a.excludeFromCopy("clone"))){let g=mr(a);F.$isRootNode(a.getParent())&&l.push(a.getKey()),u!=="root"&&r.set(u,g)}}Rs(o,s?void 0:n?d:c,void 0,!1,l,r),e={nodeMap:Array.from(r.entries()),range:l}}}else if(F.DEPRECATED_$isGridSelection(t))e=su(t);else if(F.$isNodeSelection(t))throw Error("Minified Lexical error #1; visit https://lexical.dev/docs/error?code=1 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return e},ae.$cloneWithProperties=mr,ae.$getSelectionStyleValueForProperty=function(t,e,n=""){let r=null,i=t.getNodes();var o=t.anchor,l=t.focus,s=t.isBackward();for(t=s?l.offset:o.offset,o=s?l.getNode():o.getNode(),l=0;l<i.length;l++){var a=i[l];if((l===0||t!==0||!a.is(o))&&F.$isTextNode(a)){s=e;var c=n;if(a=a.getStyle(),a=Ti(a),s=a!==null&&a[s]||c,r===null)r=s;else if(r!==s){r="";break}}}return r===null?n:r},ae.$isAtNodeEnd=function(t){return t.type==="text"?t.offset===t.getNode().getTextContentSize():t.offset===t.getNode().getChildrenSize()},ae.$isParentElementRTL=Os,ae.$moveCaretSelection=bs,ae.$moveCharacter=function(t,e,n){let r=Os(t);bs(t,e,n?!r:r,"character")},ae.$patchStyleText=function(t,e){var n=t.getNodes();let r=n.length-1,i=n[0],o=n[r];if(!t.isCollapsed()){var l=t.anchor,s=t.focus,a=i.getTextContent().length,c=s.offset,d=l.offset,u=l.isBefore(s),g=u?d:c;t=u?c:d;var m=u?l.type:s.type,h=u?s.type:l.type;if(l=u?s.key:l.key,F.$isTextNode(i)&&g===a&&(s=i.getNextSibling(),F.$isTextNode(s)&&(g=d=0,i=s)),i.is(o))F.$isTextNode(i)&&(g=m==="element"?0:d>c?c:d,t=h==="element"?a:d>c?d:c,g!==t&&(g===0&&t===a?(Nn(i,e),i.select(g,t)):(n=i.splitText(g,t),n=g===0?n[0]:n[1],Nn(n,e),n.select(0,t-g))));else for(F.$isTextNode(i)&&g<i.getTextContentSize()&&(g!==0&&(i=i.splitText(g)[1]),Nn(i,e)),F.$isTextNode(o)&&(g=o.getTextContent().length,o.__key!==l&&t!==0&&(t=g),t!==g&&([o]=o.splitText(t)),t!==0&&Nn(o,e)),t=1;t<r;t++)g=n[t],a=g.getKey(),F.$isTextNode(g)&&a!==i.getKey()&&a!==o.getKey()&&!g.isToken()&&Nn(g,e)}},ae.$selectAll=function(t){let e=t.anchor;t=t.focus;var n=e.getNode().getTopLevelElementOrThrow().getParentOrThrow();let r=n.getFirstDescendant();n=n.getLastDescendant();let i="element",o="element",l=0;F.$isTextNode(r)?i="text":F.$isElementNode(r)||r===null||(r=r.getParentOrThrow()),F.$isTextNode(n)?(o="text",l=n.getTextContentSize()):F.$isElementNode(n)||n===null||(n=n.getParentOrThrow()),r&&n&&(e.set(r.getKey(),0,i),t.set(n.getKey(),l,o))},ae.$shouldOverrideDefaultCharacterSelection=function(t,e){return t=F.$getDecoratorNode(t.focus,e),F.$isDecoratorNode(t)&&!t.isIsolated()},ae.$sliceSelectedTextNodeContent=function(t,e){if(e.isSelected()&&!e.isSegmented()&&!e.isToken()&&(F.$isRangeSelection(t)||F.DEPRECATED_$isGridSelection(t))){var n=t.anchor.getNode(),r=t.focus.getNode(),i=e.is(n),o=e.is(r);if(i||o){i=t.isBackward();let[l,s]=t.getCharacterOffsets();t=n.is(r),o=e.is(i?r:n),r=e.is(i?n:r),n=0;let a;t?(n=l>s?s:l,a=l>s?l:s):o?(n=i?s:l,a=void 0):r&&(i=i?l:s,n=0,a=i),e.__text=e.__text.slice(n,a)}}return e},ae.$wrapNodes=function(t,e,n=null){var r=t.getNodes();let i=r.length;var o=t.anchor;if(i===0||i===1&&o.type==="element"&&o.getNode().getChildrenSize()===0){t=o.type==="text"?o.getNode().getParentOrThrow():o.getNode(),r=t.getChildren();let s=e();s.setFormat(t.getFormatType()),s.setIndent(t.getIndent()),r.forEach(a=>s.append(a)),n&&(s=n.append(s)),t.replace(s)}else{o=null;var l=[];for(let s=0;s<i;s++){let a=r[s];F.$isRootOrShadowRoot(a)?(pr(t,l,l.length,e,n),l=[],o=a):o===null||o!==null&&F.$hasAncestor(a,o)?l.push(a):(pr(t,l,l.length,e,n),l=[a])}pr(t,l,l.length,e,n)}},ae.$wrapNodesImpl=pr,ae.createDOMRange=function(t,e,n,r,i){let o=e.getKey(),l=r.getKey(),s=document.createRange(),a=t.getElementByKey(o);if(t=t.getElementByKey(l),F.$isTextNode(e)&&(a=Ns(a)),F.$isTextNode(r)&&(t=Ns(t)),e===void 0||r===void 0||a===null||t===null)return null;a.nodeName==="BR"&&([a,n]=Ts(a)),t.nodeName==="BR"&&([t,i]=Ts(t)),e=a.firstChild,a===t&&e!=null&&e.nodeName==="BR"&&n===0&&i===0&&(i=1);try{s.setStart(a,n),s.setEnd(t,i)}catch{return null}return!s.collapsed||n===i&&o===l||(s.setStart(t,i),s.setEnd(a,n)),s},ae.createRectsFromDOMRange=function(t,e){var n=t.getRootElement();if(n===null)return[];t=n.getBoundingClientRect(),n=getComputedStyle(n),n=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),e=Array.from(e.getClientRects());let r=e.length,i;for(let o=0;o<r;o++){let l=e[o],s=l.width+n===t.width;i&&i.top===l.top&&i.left===l.left&&i.width===l.width&&i.height===l.height||s?(e.splice(o--,1),r--):i=l}return e},ae.getStyleObjectFromCSS=Ti,ae.trimTextContentFromAnchor=function(t,e,n){let r=e.getNode();if(F.$isElementNode(r)){var i=r.getDescendantByIndex(e.offset);i!==null&&(r=i)}for(;0<n&&r!==null;){var o=r.getPreviousSibling(),l=0;if(o===null){i=r.getParentOrThrow();for(var s=i.getPreviousSibling();s===null;){if(i=i.getParent(),i===null){o=null;break}s=i.getPreviousSibling()}i!==null&&(l=i.isInline()?0:2,o=F.$isElementNode(s)?s.getLastDescendant():s)}let a=r.getTextContent();a===""&&F.$isElementNode(r)&&!r.isInline()&&(a=`
27
+ `)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){return e!==""?(e=ll[e],(this.getFormat()&e)!==0):!1}select(e,n){Re();let r=Z();var i=this.getChildrenSize();if(e===void 0&&(e=i),n===void 0&&(n=i),i=this.__key,H(r))r.anchor.set(i,e,"element"),r.focus.set(i,n,"element"),r.dirty=!0;else return ql(i,e,i,n,"element","element");return r}selectStart(){let e=this.getFirstDescendant();return O(e)||L(e)?e.select(0,0):e!==null?e.selectPrevious():this.select(0,0)}selectEnd(){let e=this.getLastDescendant();return O(e)||L(e)?e.select():e!==null?e.selectNext():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach(n=>n.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let n=this.getWritable();return n.__dir=e,n}setFormat(e){return this.getWritable().__format=e!==""?ll[e]:0,this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,n,r){let i=this.getWritable();var o=i.__key;let l=i.__children,s=r.length;var a=[];for(let c=0;c<s;c++){let d=r[c],u=d.getWritable();d.__key===o&&A(76),ir(u),u.__parent=o,a.push(u.__key)}if((r=this.getChildAtIndex(e-1))&&zt(r),(o=this.getChildAtIndex(e+n))&&zt(o),e===l.length?(l.push(...a),e=[]):e=l.splice(e,n,...a),e.length&&(n=Z(),H(n))){let c=new Set(e),d=new Set(a);a=m=>{for(m=m.getNode();m;){const f=m.__key;if(c.has(f)&&!d.has(f))return!0;m=m.getParent()}return!1};let{anchor:u,focus:g}=n;for(a(u)&&xr(u,u.getNode(),this,r,o),a(g)&&xr(g,g.getNode(),this,r,o),a=e.length,n=0;n<a;n++)r=q(e[n]),r!=null&&(r.getWritable().__parent=null);l.length!==0||this.canBeEmpty()||at(this)||this.remove()}return i}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(){return null}canInsertTab(){return!1}canIndent(){return!0}collapseAtStart(){return!1}excludeFromCopy(){return!1}canExtractContents(){return!0}canReplaceWith(){return!0}canInsertAfter(){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(){return!1}extractWithChild(){return!1}}function O(t){return t instanceof kt}class Ut extends kt{static getType(){return"root"}static clone(){return new Ut}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){A(51)}getTextContent(){let e=this.__cachedText;return!ae&&oe()._dirtyType!==0||e===null?super.getTextContent():e}remove(){A(52)}replace(){A(53)}insertBefore(){A(54)}insertAfter(){A(55)}updateDOM(){return!1}append(...e){for(let n=0;n<e.length;n++){let r=e[n];O(r)||ee(r)||A(56)}return super.append(...e)}static importJSON(e){let n=st();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}collapseAtStart(){return!0}}function Me(t){return t instanceof Ut}function ou(t,e){if(e=e.getEditorState()._selection,t=t._selection,t!==null){if(t.dirty||!t.is(e))return!0}else if(e!==null)return!0;return!1}function Oi(){return new vr(new Map([["root",new Ut]]))}function as(t){let e=t.exportJSON();e.type!==t.constructor.getType()&&A(58);let n=e.children;if(O(t)){Array.isArray(n)||A(59),t=t.getChildren();for(let r=0;r<t.length;r++){let i=as(t[r]);n.push(i)}}return e}class vr{constructor(e,n){this._nodeMap=e,this._selection=n||null,this._readOnly=this._flushSync=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e){return rs(this,e)}clone(e){return e=new vr(this._nodeMap,e===void 0?this._selection:e),e._readOnly=!0,e}toJSON(){return rs(this,()=>({root:as(st())}))}}class jt extends _r{static getType(){return"linebreak"}static clone(e){return new jt(e.__key)}constructor(e){super(e)}getTextContent(){return`
28
+ `}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>{let n=e.parentElement;return n!=null&&n.firstChild===e&&n.lastChild===e?null:{conversion:lu,priority:0}}}}static importJSON(){return bn()}exportJSON(){return{type:"linebreak",version:1}}}function lu(){return{node:bn()}}function bn(){return ar(new jt)}function Rn(t){return t instanceof jt}function $i(t,e){return e&16?"code":e&32?"sub":e&64?"sup":null}function Mi(t,e){return e&1?"strong":e&2?"em":"span"}function Ai(t,e,n,r,i){t=r.classList,r=fn(i,"base"),r!==void 0&&t.add(...r),r=fn(i,"underlineStrikethrough");let o=!1,l=e&8&&e&4;var s=n&8&&n&4;r!==void 0&&(s?(o=!0,l||t.add(...r)):l&&t.remove(...r));for(let a in xt)s=xt[a],r=fn(i,a),r!==void 0&&(n&s?!o||a!=="underline"&&a!=="strikethrough"?((e&s)===0||l&&a==="underline"||a==="strikethrough")&&t.add(...r):e&s&&t.remove(...r):e&s&&t.remove(...r))}function Di(t,e,n){let r=e.firstChild;if(n=n.isComposing(),t+=n?tr:"",r==null)e.textContent=t;else if(e=r.nodeValue,e!==t)if(n||mt){n=e.length;let i=t.length,o=0,l=0;for(;o<n&&o<i&&e[o]===t[o];)o++;for(;l+o<n&&l+o<i&&e[n-l-1]===t[i-l-1];)l++;t=[o,n-o-l,t.slice(o,i-l)];let[s,a,c]=t;a!==0&&r.deleteData(s,a),r.insertData(s,c)}else r.nodeValue=t}class Yt extends _r{static getType(){return"text"}static clone(e){return new Yt(e.__text,e.__key)}constructor(e,n){super(n),this.__text=e,this.__format=0,this.__style="",this.__detail=this.__mode=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){let e=this.getLatest();return Id[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===lt()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return(this.getLatest().__detail&1)!==0}isUnmergeable(){return(this.getLatest().__detail&2)!==0}hasFormat(e){return e=xt[e],(this.getFormat()&e)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,n){let r=this.getLatest().__format;return ul(r,e,n)}createDOM(e){var n=this.__format,r=$i(this,n);let i=Mi(this,n),o=document.createElement(r===null?i:r),l=o;return r!==null&&(l=document.createElement(i),o.appendChild(l)),r=l,Di(this.__text,r,this),e=e.theme.text,e!==void 0&&Ai(i,0,n,r,e),n=this.__style,n!==""&&(o.style.cssText=n),o}updateDOM(e,n,r){let i=this.__text;var o=e.__format,l=this.__format,s=$i(this,o);let a=$i(this,l);var c=Mi(this,o);let d=Mi(this,l);return(s===null?c:s)!==(a===null?d:a)?!0:s===a&&c!==d?(o=n.firstChild,o==null&&A(48),e=s=document.createElement(d),Di(i,e,this),r=r.theme.text,r!==void 0&&Ai(d,0,l,e,r),n.replaceChild(s,o),!1):(c=n,a!==null&&s!==null&&(c=n.firstChild,c==null&&A(49)),Di(i,c,this),r=r.theme.text,r!==void 0&&o!==l&&Ai(d,o,l,c,r),l=this.__style,e.__style!==l&&(n.style.cssText=l),!1)}static importDOM(){return{"#text":()=>({conversion:cu,priority:0}),b:()=>({conversion:au,priority:0}),code:()=>({conversion:On,priority:0}),em:()=>({conversion:On,priority:0}),i:()=>({conversion:On,priority:0}),span:()=>({conversion:su,priority:0}),strong:()=>({conversion:On,priority:0}),u:()=>({conversion:On,priority:0})}}static importJSON(e){let n=fe(e.text);return n.setFormat(e.format),n.setDetail(e.detail),n.setMode(e.mode),n.setStyle(e.style),n}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(){}setFormat(e){let n=this.getWritable();return n.__format=typeof e=="string"?xt[e]:e,n}setDetail(e){let n=this.getWritable();return n.__detail=typeof e=="string"?Ad[e]:e,n}setStyle(e){let n=this.getWritable();return n.__style=e,n}toggleFormat(e){return e=xt[e],this.setFormat(this.getFormat()^e)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){e=Ld[e];let n=this.getWritable();return n.__mode=e,n}setTextContent(e){let n=this.getWritable();return n.__text=e,n}select(e,n){Re();let r=Z();var i=this.getTextContent();let o=this.__key;if(typeof i=="string"?(i=i.length,e===void 0&&(e=i),n===void 0&&(n=i)):n=e=0,H(r))i=lt(),i!==r.anchor.key&&i!==r.focus.key||he(o),r.setTextNodeRange(this,e,this,n);else return ql(o,e,o,n,"text","text");return r}spliceText(e,n,r,i){let o=this.getWritable(),l=o.__text,s=r.length,a=e;0>a&&(a=s+a,0>a&&(a=0));let c=Z();return i&&H(c)&&(e+=s,c.setTextNodeRange(o,e,o,e)),n=l.slice(0,a)+r+l.slice(a+n),o.__text=n,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Re();var n=this.getLatest(),r=n.getTextContent(),i=n.__key,o=lt(),l=new Set(e);e=[];for(var s=r.length,a="",c=0;c<s;c++)a!==""&&l.has(c)&&(e.push(a),a=""),a+=r[c];if(a!==""&&e.push(a),l=e.length,l===0)return[];if(e[0]===r)return[n];var d=e[0];r=n.getParentOrThrow(),c=r.__key;let u=n.getFormat(),g=n.getStyle(),m=n.__detail;s=!1,n.isSegmented()?(a=fe(d),a.__parent=c,a.__format=u,a.__style=g,a.__detail=m,s=!0):(a=n.getWritable(),a.__text=d),n=Z(),a=[a],d=d.length;for(let C=1;C<l;C++){var f=e[C],_=f.length;f=fe(f).getWritable(),f.__format=u,f.__style=g,f.__detail=m;let N=f.__key;if(_=d+_,H(n)){let p=n.anchor,v=n.focus;p.key===i&&p.type==="text"&&p.offset>d&&p.offset<=_&&(p.key=N,p.offset-=d,n.dirty=!0),v.key===i&&v.type==="text"&&v.offset>d&&v.offset<=_&&(v.key=N,v.offset-=d,n.dirty=!0)}o===i&&he(N),d=_,f.__parent=c,a.push(f)}return Bt(this),o=r.getWritable().__children,i=o.indexOf(i),e=a.map(C=>C.__key),s?(o.splice(i,0,...e),this.remove()):o.splice(i,1,...e),H(n)&&mr(n,r,i,l-1),a}mergeWithSibling(e){var n=e===this.getPreviousSibling();n||e===this.getNextSibling()||A(50);var r=this.__key;let i=e.__key,o=this.__text,l=o.length;lt()===i&&he(r);let s=Z();if(H(s)){let a=s.anchor,c=s.focus;a!==null&&a.key===i&&(ts(a,n,r,e,l),s.dirty=!0),c!==null&&c.key===i&&(ts(c,n,r,e,l),s.dirty=!0)}return r=e.__text,this.setTextContent(n?r+o:o+r),n=this.getWritable(),e.remove(),n}isTextEntity(){return!1}}function su(t){let e=t.style.fontWeight==="700",n=t.style.textDecoration==="line-through",r=t.style.fontStyle==="italic",i=t.style.textDecoration==="underline",o=t.style.verticalAlign;return{forChild:l=>(L(l)&&(e&&l.toggleFormat("bold"),n&&l.toggleFormat("strikethrough"),r&&l.toggleFormat("italic"),i&&l.toggleFormat("underline"),o==="sub"&&l.toggleFormat("subscript"),o==="super"&&l.toggleFormat("superscript")),l),node:null}}function au(t){let e=t.style.fontWeight==="normal";return{forChild:n=>(L(n)&&!e&&n.toggleFormat("bold"),n),node:null}}function cu(t,e,n){return t=t.textContent||"",!n&&/\n/.test(t)&&(t=t.replace(/\r?\n/gm," "),t.trim().length===0)?{node:null}:{node:fe(t)}}let du={code:"code",em:"italic",i:"italic",strong:"bold",u:"underline"};function On(t){let e=du[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:n=>(L(n)&&n.toggleFormat(e),n),node:null}}function fe(t=""){return ar(new Yt(t))}function L(t){return t instanceof Yt}class Vt extends kt{static getType(){return"paragraph"}static clone(e){return new Vt(e.__key)}createDOM(e){let n=document.createElement("p");return e=fn(e.theme,"paragraph"),e!==void 0&&n.classList.add(...e),n}updateDOM(){return!1}static importDOM(){return{p:()=>({conversion:uu,priority:0})}}exportDOM(e){if({element:e}=super.exportDOM(e),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var n=this.getFormatType();e.style.textAlign=n,(n=this.getDirection())&&(e.dir=n),n=this.getIndent(),0<n&&(e.style.textIndent=`${20*n}px`)}return{element:e}}static importJSON(e){let n=Gt();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(){let e=Gt(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=this.getChildren();if(e.length===0||L(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function uu(){return{node:Gt()}}function Gt(){return ar(new Vt)}function cs(t,e,n,r){let i=t._keyToDOMMap;i.clear(),t._editorState=Oi(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],r=t._observer,r!==null&&(r.disconnect(),t._observer=null),e!==null&&(e.textContent=""),n!==null&&(n.textContent="",i.set("root",n))}function gu(t){let e=new Map,n=new Set;return t.forEach(r=>{if(r=r.klass.importDOM!=null?r.klass.importDOM.bind(r.klass):null,r!=null&&!n.has(r)){n.add(r);var i=r();i!==null&&Object.keys(i).forEach(o=>{let l=e.get(o);l===void 0&&(l=[],e.set(o,l)),l.push(i[o])})}}),e}class hu{constructor(e,n,r,i,o,l){this._parentEditor=n,this._rootElement=null,this._editorState=e,this._compositionKey=this._pendingEditorState=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=i,this._nodes=r,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=_l(),this._onError=o,this._htmlConversions=l,this._editable=!0,this._headless=!1,this._window=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){let n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){let n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){let n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){let n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){let n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,r){r===void 0&&A(35);let i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);let o=i.get(e);o===void 0&&A(36);let l=o[r];return l.add(n),()=>{l.delete(n),o.every(s=>s.size===0)&&i.delete(e)}}registerMutationListener(e,n){this._nodes.get(e.getType())===void 0&&A(37);let r=this._listeners.mutation;return r.set(n,e),()=>{r.delete(n)}}registerNodeTransform(e,n){e=e.getType();let r=this._nodes.get(e);r===void 0&&A(37);let i=r.transforms;return i.add(n),Hd(this,e),()=>{i.delete(n)}}hasNodes(e){for(let n=0;n<e.length;n++){let r=e[n].getType();if(!this._nodes.has(r))return!1}return!0}dispatchCommand(e,n){return M(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let n=this._rootElement;if(e!==n){let o=fn(this._config.theme,"root");var r=this._pendingEditorState||this._editorState;if(this._rootElement=e,cs(this,n,e,r),n!==null){if(!this._config.disableEvents){if(yn!==0&&(yn--,yn===0&&n.ownerDocument.removeEventListener("selectionchange",Kl)),r=n.__lexicalEditor,r!=null){if(r._parentEditor!==null){var i=si(r);i=i[i.length-1]._key,Wt.get(i)===r&&Wt.delete(i)}else Wt.delete(r._key);n.__lexicalEditor=null}for(r=Hl(n),i=0;i<r.length;i++)r[i]();n.__lexicalEventHandles=[]}o!=null&&n.classList.remove(...o)}e!==null?(r=(r=e.ownerDocument)&&r.defaultView||null,i=e.style,i.userSelect="text",i.whiteSpace="pre-wrap",i.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=r,this._dirtyType=2,cl(this),this._updateTags.add("history-merge"),yt(this),this._config.disableEvents||eu(e,this),o!=null&&e.classList.add(...o)):this._window=null,Sn("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&A(38),al(this);let r=this._pendingEditorState,i=this._updateTags;n=n!==void 0?n.tag:null,r===null||r.isEmpty()||(n!=null&&i.add(n),yt(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,n!=null&&i.add(n),yt(this)}parseEditorState(e,n){e=typeof e=="string"?JSON.parse(e):e;let r=Oi(),i=ye,o=ae,l=ge,s=this._dirtyElements,a=this._dirtyLeaves,c=this._cloneNotNeeded,d=this._dirtyType;this._dirtyElements=new Map,this._dirtyLeaves=new Set,this._cloneNotNeeded=new Set,this._dirtyType=0,ye=r,ae=!1,ge=this;try{bi(e.root,this._nodes),n&&n(),r._readOnly=!0}finally{this._dirtyElements=s,this._dirtyLeaves=a,this._cloneNotNeeded=c,this._dirtyType=d,ye=i,ae=o,ge=l}return r}update(e,n){$e(this,e,n)}focus(e,n={}){let r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),$e(this,()=>{let i=Z(),o=st();i!==null?i.dirty=!0:o.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?o.selectStart():o.selectEnd())},{onUpdate:()=>{r.removeAttribute("autocapitalize"),e&&e()}}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){var e=this._rootElement;e!==null&&e.blur(),e=Ne?window.getSelection():null,e!==null&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Sn("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}class ds extends kt{constructor(e,n){super(n),this.__colSpan=e}exportJSON(){return{...super.exportJSON(),colSpan:this.__colSpan}}}function us(t){return t instanceof ds}class gs extends kt{}function hs(t){return t instanceof gs}class fs extends kt{}function ps(t){return t instanceof fs}b.$addUpdateTag=function(t){Re(),oe()._updateTags.add(t)},b.$applyNodeReplacement=ar,b.$copyNode=function(t){return t=t.constructor.clone(t),hl(t,null),t},b.$createLineBreakNode=bn,b.$createNodeSelection=Ti,b.$createParagraphNode=Gt,b.$createRangeSelection=function(){let t=new je("root",0,"element"),e=new je("root",0,"element");return new wt(t,e,0)},b.$createTextNode=fe,b.$getDecoratorNode=di,b.$getNearestNodeFromDOMNode=hn,b.$getNearestRootOrShadowRoot=Cl,b.$getNodeByKey=q,b.$getPreviousSelection=Nn,b.$getRoot=st,b.$getSelection=Z,b.$getTextContent=function(){let t=Z();return t===null?"":t.getTextContent()},b.$hasAncestor=lr,b.$insertNodes=function(t,e){let n=Z();return n===null&&(n=st().selectEnd()),n.insertNodes(t,e)},b.$isDecoratorNode=ee,b.$isElementNode=O,b.$isInlineElementOrDecoratorNode=function(t){return O(t)&&t.isInline()||ee(t)&&t.isInline()},b.$isLeafNode=gl,b.$isLineBreakNode=Rn,b.$isNodeSelection=En,b.$isParagraphNode=function(t){return t instanceof Vt},b.$isRangeSelection=H,b.$isRootNode=Me,b.$isRootOrShadowRoot=at,b.$isTextNode=L,b.$nodesOfType=function(t){var e=Ye();let n=e._readOnly,r=t.getType();e=e._nodeMap;let i=[];for(let[,o]of e)o instanceof t&&o.__type===r&&(n||o.isAttached())&&i.push(o);return i},b.$normalizeSelection__EXPERIMENTAL=bl,b.$parseSerializedNode=function(t){return bi(t,oe()._nodes)},b.$setCompositionKey=he,b.$setSelection=_t,b.BLUR_COMMAND=il,b.CAN_REDO_COMMAND={},b.CAN_UNDO_COMMAND={},b.CLEAR_EDITOR_COMMAND={},b.CLEAR_HISTORY_COMMAND={},b.CLICK_COMMAND=Ho,b.COMMAND_PRIORITY_CRITICAL=4,b.COMMAND_PRIORITY_EDITOR=0,b.COMMAND_PRIORITY_HIGH=3,b.COMMAND_PRIORITY_LOW=1,b.COMMAND_PRIORITY_NORMAL=2,b.CONTROLLED_TEXT_INSERTION_COMMAND=Ft,b.COPY_COMMAND=Qr,b.CUT_COMMAND=ei,b.DELETE_CHARACTER_COMMAND=cn,b.DELETE_LINE_COMMAND=gn,b.DELETE_WORD_COMMAND=un,b.DEPRECATED_$createGridSelection=function(){let t=new je("root",0,"element"),e=new je("root",0,"element");return new fr("root",t,e)},b.DEPRECATED_$isGridCellNode=us,b.DEPRECATED_$isGridNode=hs,b.DEPRECATED_$isGridRowNode=ps,b.DEPRECATED_$isGridSelection=Ni,b.DEPRECATED_GridCellNode=ds,b.DEPRECATED_GridNode=gs,b.DEPRECATED_GridRowNode=fs,b.DRAGEND_COMMAND=nl,b.DRAGOVER_COMMAND=tl,b.DRAGSTART_COMMAND=el,b.DROP_COMMAND=Qo,b.DecoratorNode=ss,b.ElementNode=kt,b.FOCUS_COMMAND=rl,b.FORMAT_ELEMENT_COMMAND={},b.FORMAT_TEXT_COMMAND=ot,b.INDENT_CONTENT_COMMAND={},b.INSERT_LINE_BREAK_COMMAND=dn,b.INSERT_PARAGRAPH_COMMAND=Gr,b.KEY_ARROW_DOWN_COMMAND=Vo,b.KEY_ARROW_LEFT_COMMAND=Uo,b.KEY_ARROW_RIGHT_COMMAND=Ko,b.KEY_ARROW_UP_COMMAND=Yo,b.KEY_BACKSPACE_COMMAND=Zo,b.KEY_DELETE_COMMAND=Xo,b.KEY_ENTER_COMMAND=er,b.KEY_ESCAPE_COMMAND=Jo,b.KEY_MODIFIER_COMMAND=ol,b.KEY_SPACE_COMMAND=Go,b.KEY_TAB_COMMAND=qo,b.LineBreakNode=jt,b.MOVE_TO_END=Wo,b.MOVE_TO_START=jo,b.OUTDENT_CONTENT_COMMAND={},b.PASTE_COMMAND=Zr,b.ParagraphNode=Vt,b.REDO_COMMAND=qr,b.REMOVE_TEXT_COMMAND=Jr,b.RootNode=Ut,b.SELECTION_CHANGE_COMMAND=Bo,b.TextNode=Yt,b.UNDO_COMMAND=Xr,b.VERSION="0.6.3",b.createCommand=function(){return{}},b.createEditor=function(t){var e=t||{},n=ge,r=e.theme||{};let i=t===void 0?n:e.parentEditor||null,o=e.disableEvents||!1,l=Oi(),s=e.namespace||(i!==null?i._config.namespace:_l()),a=e.editorState,c=[Ut,Yt,jt,Vt,...e.nodes||[]],d=e.onError;if(e=e.editable!==void 0?e.editable:!0,t===void 0&&n!==null)t=n._nodes;else for(t=new Map,n=0;n<c.length;n++){let g=c[n];var u=null;typeof g!="function"&&(u=g,g=u.replace,u=u.with);let m=g.getType();t.set(m,{klass:g,replace:u,transforms:new Set})}return r=new hu(l,i,t,{disableEvents:o,namespace:s,theme:r},d||console.error,gu(t),e),a!==void 0&&(r._pendingEditorState=a,r._dirtyType=2),r};var w=b,ms=ie,$n=w,wr=S.default,fu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?wr.useLayoutEffect:wr.useEffect;let yr={tag:"history-merge"};function pu(t,e){if(e!==null){if(e===void 0)t.update(()=>{var n=$n.$getRoot();if(n.isEmpty()){let r=$n.$createParagraphNode();n.append(r),n=document.activeElement,($n.$getSelection()!==null||n!==null&&n===t.getRootElement())&&r.select()}},yr);else if(e!==null)switch(typeof e){case"string":let n=t.parseEditorState(e);t.setEditorState(n,yr);break;case"object":t.setEditorState(e,yr);break;case"function":t.update(()=>{$n.$getRoot().isEmpty()&&e(t)},yr)}}}Po.LexicalComposer=function({initialConfig:t,children:e}){let n=wr.useMemo(()=>{const{theme:r,namespace:i,editor__DEPRECATED:o,nodes:l,onError:s,editorState:a}=t,c=ms.createLexicalComposerContext(null,r);let d=o||null;if(d===null){const u=$n.createEditor({editable:!1,namespace:i,nodes:l,onError:g=>s(g,u),theme:r});pu(u,a),d=u}return[d,c]},[]);return fu(()=>{let r=t.editable,[i]=n;i.setEditable(r!==void 0?r:!0)},[]),wr.createElement(ms.LexicalComposerContext.Provider,{value:n},e)};var mu=Po,pe={},ke={},ce=w;function xs(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function _s(t,e){for(let n of e)if(t.type.startsWith(n))return!0;return!1}function vs(t,e){for(;t!==ce.$getRoot()&&t!=null;){if(e(t))return t;t=t.getParent()}return null}function ws(t,e,n,r,i){var o=n._nodes.get(t.__type);o===void 0&&xs(5);for(var l in t){var s=t[l];if(s!=null&&typeof s=="object"&&(s=s.editorState,s!=null)){var a=ce.createEditor({namespace:s.namespace});a._nodes=n._nodes,a._parentEditor=n._parentEditor,a._pendingEditorState=ys(a,s),t[l]=a}}if(o=o.klass,l=t.__key,t.__key=void 0,o=o.clone(t),t.__key=l,l=o.__key,i._nodeMap.set(l,o),o.__parent=r,ce.$isElementNode(o)){for(r=t.__children,s=0;s<r.length;s++)a=e.get(r[s]),a!==void 0&&(a=ws(a,e,n,l,i).__key,o.__children.push(a));o.__indent=t.__indent,o.__format=t.__format,o.__dir=t.__dir}else ce.$isTextNode(o)&&(o.__format=t.__format,o.__style=t.__style,o.__mode=t.__mode,o.__detail=t.__detail);return o}function xu(t,e){let n=e._editorState.constructor,r=new Map,i=new n(r),o=new Map(t._nodeMap),l=o.get("root");t=e._updating;try{e._updating=!1,e.update(()=>{let s=e._dirtyElements,a=e._dirtyLeaves,c=e._dirtyType;e._dirtyElements=new Map,e._dirtyLeaves=new Set,e._dirtyType=0;try{ws(l,o,e,null,i)}finally{e._dirtyElements=s,e._dirtyLeaves=a,e._dirtyType=c}})}finally{e._updating=t}return i._readOnly=!0,i}function ys(t,e){return e=typeof e=="string"?JSON.parse(e):e,xu(e,t)}function ks(t,e){let n=t.getChildAtIndex(e);n==null&&(n=t);let r=l=>{const s=l.getParentOrThrow(),a=ce.$isRootOrShadowRoot(s),c=l!==n||a?ce.$copyNode(l):l;if(a)return l.insertAfter(c),[l,c,c];const[d,u,g]=r(s);return l=l.getNextSiblings(),g.append(c,...l),[d,u,c]},[i,o]=r(n);return[i,o]}ke.$dfs=function(t,e){let n=[];t=(t||ce.$getRoot()).getLatest(),e=e||(ce.$isElementNode(t)?t.getLastDescendant():t);for(var r=t,i=0;(r=r.getParent())!==null;)i++;for(r=i;t!==null&&!t.is(e);)if(n.push({depth:r,node:t}),ce.$isElementNode(t)&&0<t.getChildrenSize())t=t.getFirstChild(),r++;else for(i=null;i===null&&t!==null;)i=t.getNextSibling(),i===null?(t=t.getParent(),r--):t=i;return t!==null&&t.is(e)&&n.push({depth:r,node:t}),n},ke.$findMatchingParent=vs,ke.$getNearestBlockElementAncestorOrThrow=function(t){return t=vs(t,e=>ce.$isElementNode(e)&&!e.isInline()),ce.$isElementNode(t)||xs(4),t},ke.$getNearestNodeOfType=function(t,e){for(;t!=null;){if(t instanceof e)return t;t=t.getParent()}return null},ke.$insertNodeToNearestRoot=function(t){var e=ce.$getSelection();if(ce.$isRangeSelection(e)){var{focus:n}=e;e=n.getNode(),n=n.offset;let r,i;ce.$isTextNode(e)?(r=e.getParentOrThrow(),i=e.getIndexWithinParent(),0<n&&(i+=1,e.splitText(n))):(r=e,i=n),[,e]=ks(r,i),e.insertBefore(t),e.selectStart()}else ce.$isNodeSelection(e)||ce.DEPRECATED_$isGridSelection(e)?(e=e.getNodes(),e[e.length-1].getTopLevelElementOrThrow().insertAfter(t)):ce.$getRoot().append(t),e=ce.$createParagraphNode(),t.insertAfter(e),e.select();return t.getLatest()},ke.$restoreEditorState=function(t,e){let n=new Map(e._nodeMap),r=t._pendingEditorState;r&&(r._nodeMap=n),t._dirtyType=2,t=e._selection,ce.$setSelection(t===null?null:t.clone())},ke.$splitNode=ks,ke.$wrapNodeInElement=function(t,e){return e=e(),t.replace(e),e.append(t),e},ke.addClassNamesToElement=function(t,...e){e.forEach(n=>{typeof n=="string"&&(n=n.split(" ").filter(r=>r!==""),t.classList.add(...n))})},ke.isMimeType=_s,ke.mediaFileReader=function(t,e){let n=t[Symbol.iterator]();return new Promise((r,i)=>{let o=[],l=()=>{const{done:s,value:a}=n.next();if(s)return r(o);const c=new FileReader;c.addEventListener("error",i),c.addEventListener("load",()=>{const d=c.result;typeof d=="string"&&o.push({file:a,result:d}),l()}),_s(a,e)?c.readAsDataURL(a):l()};l()})},ke.mergeRegister=function(...t){return()=>{t.forEach(e=>e())}},ke.registerNestedElementResolver=function(t,e,n,r){return t.registerNodeTransform(e,i=>{e:{for(var o=i.getChildren(),l=0;l<o.length;l++)if(o[l]instanceof e){o=null;break e}for(o=i;o!==null;)if(l=o,o=o.getParent(),o instanceof e){o={child:l,parent:o};break e}o=null}if(o!==null){const{child:s,parent:a}=o;if(s.is(i)){if(r(a,i),i=s.getNextSiblings(),o=i.length,a.insertAfter(s),o!==0){l=n(a),s.insertAfter(l);for(let c=0;c<o;c++)l.append(i[c])}a.canBeEmpty()||a.getChildrenSize()!==0||a.remove()}}})},ke.removeClassNamesFromElement=function(t,...e){e.forEach(n=>{typeof n=="string"&&t.classList.remove(...n.split(" "))})},ke.unstable_convertLegacyJSONEditorState=ys;var me=ke,j=w,Mn=me;function An(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Cs(t){let e=1;for(t=t.getParent();t!=null;){if(J(t)){if(t=t.getParent(),W(t)){e++,t=t.getParent();continue}An(40)}break}return e}function Li(t){t=t.getParent(),W(t)||An(40);let e=t;for(;e!==null;)e=e.getParent(),W(e)&&(t=e);return t}function Es(t){let e=[];t=t.getChildren().filter(J);for(let n=0;n<t.length;n++){let r=t[n],i=r.getFirstChild();W(i)?e=e.concat(Es(i)):e.push(r)}return e}function Zt(t){return J(t)&&W(t.getFirstChild())}function _u(t){for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){let e=t.getParent();if(e==null||!J(t)&&!W(t))break;t=e}t.remove()}function Ns(t){return ze().append(t)}function Ts(t,e){return J(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function Ct(t,e){t.splice(t.getChildrenSize(),0,e)}function Ss(t,e){if(W(t))return t;let n=t.getPreviousSibling(),r=t.getNextSibling(),i=ze();return i.setFormat(t.getFormatType()),i.setIndent(t.getIndent()),Ct(i,t.getChildren()),W(n)&&e===n.getListType()?(n.append(i),t.remove(),W(r)&&e===r.getListType()&&(Ct(n,r.getChildren()),r.remove()),n):W(r)&&e===r.getListType()?(r.getFirstChildOrThrow().insertBefore(i),t.remove(),r):(e=De(e),e.append(i),t.replace(e),Ae(e),e)}function Ae(t,e){if(t=e||t.getChildren(),t!==void 0)for(e=0;e<t.length;e++){let o=t[e];if(J(o)){let l=o.getValue();var n=o,r=n.getParent(),i=1;for(r!=null&&(W(r)?i=r.getStart():An(44)),n=n.getPreviousSiblings(),r=0;r<n.length;r++){let s=n[r];J(s)&&!W(s.getFirstChild())&&i++}l!==i&&o.setValue(i)}}}function bs(t){let e=new Set;t.forEach(n=>{if(!Zt(n)&&!e.has(n.getKey())){var r=n.getParent(),i=n.getNextSibling(),o=n.getPreviousSibling();if(Zt(i)&&Zt(o))o=o.getFirstChild(),W(o)&&(o.append(n),n=i.getFirstChild(),W(n)&&(n=n.getChildren(),Ct(o,n),i.remove(),e.add(i.getKey())),Ae(o));else if(Zt(i))i=i.getFirstChild(),W(i)&&(o=i.getFirstChild(),o!==null&&o.insertBefore(n),Ae(i));else if(Zt(o))i=o.getFirstChild(),W(i)&&(i.append(n),Ae(i));else if(W(r)){let l=ze(),s=De(r.getListType());l.append(s),s.append(n),o?o.insertAfter(l):i?i.insertBefore(l):r.append(l)}W(r)&&Ae(r)}})}function Rs(t){t.forEach(e=>{if(!Zt(e)){var n=e.getParent(),r=n?n.getParent():void 0,i=r?r.getParent():void 0;if(W(i)&&J(r)&&W(n)){var o=n?n.getFirstChild():void 0,l=n?n.getLastChild():void 0;if(e.is(o))r.insertBefore(e),n.isEmpty()&&r.remove();else if(e.is(l))r.insertAfter(e),n.isEmpty()&&r.remove();else{var s=n.getListType();o=ze();let a=De(s);o.append(a),e.getPreviousSiblings().forEach(c=>a.append(c)),l=ze(),s=De(s),l.append(s),Ct(s,e.getNextSiblings()),r.insertBefore(o),r.insertAfter(l),r.replace(e)}Ae(n),Ae(i)}}})}function Os(t){var e=j.$getSelection();if(j.$isRangeSelection(e)){var n=e.getNodes(),r=[];if(n.length===0&&n.push(e.anchor.getNode()),n.length===1){e:{for(n=n[0];n!==null;){if(J(n))break e;n=n.getParent()}n=null}n!==null&&(r=[n])}else{for(r=new Set,e=0;e<n.length;e++){let i=n[e];J(i)&&r.add(i)}r=Array.from(r)}0<r.length&&(t==="indent"?bs(r):Rs(r))}}class Et extends j.ElementNode{static getType(){return"listitem"}static clone(e){return new Et(e.__value,e.__checked,e.__key)}constructor(e,n,r){super(r),this.__value=e===void 0?1:e,this.__checked=n}createDOM(e){let n=document.createElement("li"),r=this.getParent();return W(r)&&(Ae(r),Ms(n,this,null,r)),n.value=this.__value,$s(n,e.theme,this),n}updateDOM(e,n,r){let i=this.getParent();return W(i)&&(Ae(i),Ms(n,this,e,i)),n.value=this.__value,$s(n,r.theme,this),!1}static importDOM(){return{li:()=>({conversion:vu,priority:0})}}static importJSON(e){let n=new Et(e.value,e.checked);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...e){for(let n=0;n<e.length;n++){let r=e[n];if(j.$isElementNode(r)&&this.canMergeWith(r)){let i=r.getChildren();this.append(...i),r.remove()}else super.append(r)}return this}replace(e){if(J(e))return super.replace(e);let n=this.getParentOrThrow();if(W(n)){var r=n.__children;let o=r.length;var i=r.indexOf(this.__key);if(i===0)n.insertBefore(e);else if(i===o-1)n.insertAfter(e);else{r=De(n.getListType());let l=n.getChildren();for(i+=1;i<o;i++)r.append(l[i]);n.insertAfter(e),e.insertAfter(r)}this.remove(),o===1&&n.remove()}return e}insertAfter(e){var n=this.getParentOrThrow();W(n)||An(39);var r=this.getNextSiblings();if(J(e))return n=super.insertAfter(e),e=e.getParentOrThrow(),W(e)&&Ae(e),n;if(W(e)&&e.getListType()===n.getListType()){for(n=e,e=e.getChildren(),r=e.length-1;0<=r;r--)n=e[r],this.insertAfter(n);return n}if(n.insertAfter(e),r.length!==0){let i=De(n.getListType());r.forEach(o=>i.append(o)),e.insertAfter(i)}return e}remove(e){let n=this.getNextSibling();super.remove(e),n!==null&&(e=n.getParent(),W(e)&&Ae(e))}insertNewAfter(){let e=ze(this.__checked==null?void 0:!1);return this.insertAfter(e),e}collapseAtStart(e){let n=j.$createParagraphNode();this.getChildren().forEach(l=>n.append(l));var r=this.getParentOrThrow(),i=r.getParentOrThrow();let o=J(i);return r.getChildrenSize()===1?o?(r.remove(),i.select()):(r.replace(n),r=e.anchor,e=e.focus,i=n.getKey(),r.type==="element"&&r.getNode().is(this)&&r.set(i,r.offset,"element"),e.type==="element"&&e.getNode().is(this)&&e.set(i,e.offset,"element")):(r.insertBefore(n),this.remove()),!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){return this.getLatest().__checked}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){var e=this.getParent();if(e===null)return this.getLatest().__indent;e=e.getParentOrThrow();let n=0;for(;J(e);)e=e.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){let n=this.getIndent();for(;n!==e;)n<e?(bs([this]),n++):(Rs([this]),n--);return this}canIndent(){return!1}insertBefore(e){if(J(e)){let n=this.getParentOrThrow();if(W(n)){let r=this.getNextSiblings();Ae(n,r)}}return super.insertBefore(e)}canInsertAfter(e){return J(e)}canReplaceWith(e){return J(e)}canMergeWith(e){return j.$isParagraphNode(e)||J(e)}extractWithChild(e,n){if(!j.$isRangeSelection(n))return!1;e=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&this.getTextContent().length===n.getTextContent().length}}function $s(t,e,n){let r=[],i=[];var o=(e=e.list)?e.listitem:void 0;if(e&&e.nested)var l=e.nested.listitem;if(o!==void 0&&(o=o.split(" "),r.push(...o)),e){o=n.getParent(),o=W(o)&&o.getListType()==="check";let s=n.getChecked();o&&!s||i.push(e.listitemUnchecked),o&&s||i.push(e.listitemChecked),o&&r.push(s?e.listitemChecked:e.listitemUnchecked)}l!==void 0&&(l=l.split(" "),n.getChildren().some(s=>W(s))?r.push(...l):i.push(...l)),0<i.length&&Mn.removeClassNamesFromElement(t,...i),0<r.length&&Mn.addClassNamesToElement(t,...r)}function Ms(t,e,n,r){r.getListType()==="check"?W(e.getFirstChild())?(t.removeAttribute("role"),t.removeAttribute("tabIndex"),t.removeAttribute("aria-checked")):(t.setAttribute("role","checkbox"),t.setAttribute("tabIndex","-1"),n&&e.__checked===n.__checked||t.setAttribute("aria-checked",e.getChecked()?"true":"false")):e.getChecked()!=null&&e.setChecked(void 0)}function vu(){return{node:ze()}}function ze(t){return j.$applyNodeReplacement(new Et(void 0,t))}function J(t){return t instanceof Et}class Dn extends j.ElementNode{static getType(){return"list"}static clone(e){return new Dn(e.__listType||Ls[e.__tag],e.__start,e.__key)}constructor(e,n,r){super(r),this.__listType=e=Ls[e]||e,this.__tag=e==="number"?"ol":"ul",this.__start=n}getTag(){return this.__tag}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e){let n=document.createElement(this.__tag);return this.__start!==1&&n.setAttribute("start",String(this.__start)),n.__lexicalListType=this.__listType,As(n,e.theme,this),n}updateDOM(e,n,r){return e.__tag!==this.__tag?!0:(As(n,r.theme,this),!1)}static importDOM(){return{ol:()=>({conversion:Ds,priority:0}),ul:()=>({conversion:Ds,priority:0})}}static importJSON(e){let n=De(e.listType,e.start);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...e){for(let r=0;r<e.length;r++){var n=e[r];if(J(n))super.append(n);else{let i=ze();W(n)||j.$isElementNode(n)&&(n=j.$createTextNode(n.getTextContent())),i.append(n),super.append(i)}}return this}extractWithChild(e){return J(e)}}function As(t,e,n){let r=[],i=[];var o=e.list;if(o!==void 0){let s=o[`${n.__tag}Depth`]||[];e=Cs(n)-1;let a=e%s.length;var l=s[a];let c=o[n.__tag],d;if(o=o.nested,o!==void 0&&o.list&&(d=o.list),c!==void 0&&r.push(c),l!==void 0)for(l=l.split(" "),r.push(...l),l=0;l<s.length;l++)l!==a&&i.push(n.__tag+l);d!==void 0&&(n=d.split(" "),1<e?r.push(...n):i.push(...n))}0<i.length&&Mn.removeClassNamesFromElement(t,...i),0<r.length&&Mn.addClassNamesToElement(t,...r)}function wu(t){let e=[];for(let n=0;n<t.length;n++){let r=t[n];J(r)?(e.push(r),r.getChildren().forEach(i=>{W(i)&&e.push(Ns(i))})):e.push(Ns(r))}return e}function Ds(t){t=t.nodeName.toLowerCase();let e=null;return t==="ol"?e=De("number"):t==="ul"&&(e=De("bullet")),{after:wu,node:e}}let Ls={ol:"number",ul:"bullet"};function De(t,e=1){return j.$applyNodeReplacement(new Dn(t,e))}function W(t){return t instanceof Dn}let yu=j.createCommand("INSERT_UNORDERED_LIST_COMMAND"),ku=j.createCommand("INSERT_ORDERED_LIST_COMMAND"),Cu=j.createCommand("INSERT_CHECK_LIST_COMMAND"),Eu=j.createCommand("REMOVE_LIST_COMMAND");pe.$createListItemNode=ze,pe.$createListNode=De,pe.$getListDepth=Cs,pe.$handleListInsertParagraph=function(){var t=j.$getSelection();if(!j.$isRangeSelection(t)||!t.isCollapsed()||(t=t.anchor.getNode(),!J(t)||t.getTextContent()!==""))return!1;var e=Li(t),n=t.getParent();W(n)||An(40);let r=n.getParent(),i;if(j.$isRootOrShadowRoot(r))i=j.$createParagraphNode(),e.insertAfter(i);else if(J(r))i=ze(),r.insertAfter(i);else return!1;if(i.select(),e=t.getNextSiblings(),0<e.length){let o=De(n.getListType());j.$isParagraphNode(i)?i.insertAfter(o):(n=ze(),n.append(o),i.insertAfter(n)),e.forEach(l=>{l.remove(),o.append(l)})}return _u(t),!0},pe.$isListItemNode=J,pe.$isListNode=W,pe.INSERT_CHECK_LIST_COMMAND=Cu,pe.INSERT_ORDERED_LIST_COMMAND=ku,pe.INSERT_UNORDERED_LIST_COMMAND=yu,pe.ListItemNode=Et,pe.ListNode=Dn,pe.REMOVE_LIST_COMMAND=Eu,pe.indentList=function(){Os("indent")},pe.insertList=function(t,e){t.update(()=>{var n=j.$getSelection();if(j.$isRangeSelection(n)||j.DEPRECATED_$isGridSelection(n)){var r=n.getNodes();n=n.anchor.getNode();var i=n.getParent();if(Ts(n,r))r=De(e),j.$isRootOrShadowRoot(i)?(n.replace(r),i=ze(),j.$isElementNode(n)&&(i.setFormat(n.getFormatType()),i.setIndent(n.getIndent())),r.append(i)):J(n)&&(n=n.getParentOrThrow(),Ct(r,n.getChildren()),n.replace(r));else for(n=new Set,i=0;i<r.length;i++){var o=r[i];if(j.$isElementNode(o)&&o.isEmpty()&&!n.has(o.getKey()))Ss(o,e);else if(j.$isLeafNode(o))for(o=o.getParent();o!=null;){let s=o.getKey();if(W(o)){if(!n.has(s)){var l=De(e);Ct(l,o.getChildren()),o.replace(l),Ae(l),n.add(s)}break}else{if(l=o.getParent(),j.$isRootOrShadowRoot(l)&&!n.has(s)){n.add(s),Ss(o,e);break}o=l}}}}})},pe.outdentList=function(){Os("outdent")},pe.removeList=function(t){t.update(()=>{let e=j.$getSelection();if(j.$isRangeSelection(e)){var n=new Set,r=e.getNodes(),i=e.anchor.getNode();if(Ts(i,r))n.add(Li(i));else for(i=0;i<r.length;i++){var o=r[i];j.$isLeafNode(o)&&(o=Mn.$getNearestNodeOfType(o,Et),o!=null&&n.add(Li(o)))}for(let l of n){n=l,r=Es(l);for(let s of r)r=j.$createParagraphNode(),Ct(r,s.getChildren()),n.insertAfter(r),n=r,s.__key===e.anchor.key&&e.anchor.set(r.getKey(),0,"element"),s.__key===e.focus.key&&e.focus.set(r.getKey(),0,"element"),s.remove();l.remove()}}})};var Qe=pe,Ve={},et={},Ii={},de={},F=w;let kr=new Map;function Nu(t){return{nodeMap:t.getNodes().map(e=>{const n=e.getKey();return e=Er(e),[n,e]}),range:[t.gridKey]}}function Is(t){for(;t!=null;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function Ps(t){let e=t.parentNode;if(e==null)throw Error("Should never happen");return[e,Array.from(e.childNodes).indexOf(t)]}function Fs(t){let e={};t=t.split(";");for(let n of t)if(n!==""){let[r,i]=n.split(/:([^]+)/);e[r.trim()]=i.trim()}return e}function Pi(t){let e=kr.get(t);return e===void 0&&(e=Fs(t),kr.set(t,e)),e}function Tu(t){let e="";for(let n in t)n&&(e+=`${n}: ${t[n]};`);return e}function Su(t){for(;t!==null&&!F.$isRootOrShadowRoot(t);){let e=t.getLatest(),n=t.getParent();e.__children.length===0&&t.remove(!0),t=n}}function Cr(t,e,n,r,i=null){if(e.length!==0){var o=e[0],l=new Map,s=[];o=F.$isElementNode(o)?o:o.getParentOrThrow(),o.isInline()&&(o=o.getParentOrThrow());for(var a=!1;o!==null;){var c=o.getPreviousSibling();if(c!==null){o=c,a=!0;break}if(o=o.getParentOrThrow(),F.$isRootOrShadowRoot(o))break}c=new Set;for(var d=0;d<n;d++){var u=e[d];F.$isElementNode(u)&&u.getChildrenSize()===0&&c.add(u.getKey())}var g=new Set;for(d=0;d<n;d++){u=e[d];var m=u.getParent();if(m!==null&&m.isInline()&&(m=m.getParent()),m!==null&&F.$isLeafNode(u)&&!g.has(u.getKey())){if(u=m.getKey(),l.get(u)===void 0){let f=r();f.setFormat(m.getFormatType()),f.setIndent(m.getIndent()),s.push(f),l.set(u,f),m.getChildren().forEach(_=>{f.append(_),g.add(_.getKey()),F.$isElementNode(_)&&_.getChildrenKeys().forEach(C=>g.add(C))}),Su(m)}}else c.has(u.getKey())&&(m=r(),m.setFormat(u.getFormatType()),m.setIndent(u.getIndent()),s.push(m),u.remove(!0))}if(i!==null)for(e=0;e<s.length;e++)i.append(s[e]);if(e=null,F.$isRootOrShadowRoot(o))if(a)if(i!==null)o.insertAfter(i);else for(i=s.length-1;0<=i;i--)o.insertAfter(s[i]);else if(a=o.getFirstChild(),F.$isElementNode(a)&&(o=a),a===null)if(i)o.append(i);else for(i=0;i<s.length;i++)a=s[i],o.append(a),e=a;else if(i!==null)a.insertBefore(i);else for(o=0;o<s.length;o++)i=s[o],a.insertBefore(i),e=i;else if(i)o.insertAfter(i);else for(i=s.length-1;0<=i;i--)a=s[i],o.insertAfter(a),e=a;s=F.$getPreviousSelection(),F.$isRangeSelection(s)&&s.anchor.getNode().isAttached()&&s.focus.getNode().isAttached()?F.$setSelection(s.clone()):e!==null?e.selectEnd():t.dirty=!0}}function zs(t,e,n,r){t.modify(e?"extend":"move",n,r)}function Bs(t){return t=t.anchor.getNode(),(F.$isRootNode(t)?t:t.getParentOrThrow()).getDirection()==="rtl"}function Hs(t,e,n,r,i,o){for(var l=e;t!==null;){for(e=t.getParent();e!==null&&e.excludeFromCopy("clone");)e=e.getParent();if(e===null)break;if(!F.$isElementNode(t)||!t.excludeFromCopy("clone")){let s=t.getKey(),a=o.get(s),c=a===void 0;if(c&&(a=Er(t),o.set(s,a)),!F.$isTextNode(a)||a.isSegmented()||a.isToken()?F.$isElementNode(a)&&(a.__children=a.__children.slice(r?l:0,r?void 0:(l||0)+1)):a.__text=a.__text.slice(r?l:0,r?n:l),F.$isRootNode(e)){c&&i.push(s);break}}l=o.get(e.getKey()),l=F.$isElementNode(l)?l.__children.indexOf(t.getKey()):t.getIndexWithinParent(),t=e}}function Er(t){t=t.getLatest();let e=t.constructor.clone(t);return e.__parent=t.__parent,F.$isElementNode(t)&&F.$isElementNode(e)?(e.__children=Array.from(t.__children),e.__format=t.__format,e.__indent=t.__indent,e.__dir=t.__dir,e):(F.$isTextNode(t)&&F.$isTextNode(e)&&(e.__format=t.__format,e.__style=t.__style,e.__mode=t.__mode,e.__detail=t.__detail),e)}function Ln(t,e){var n=Pi(t.getStyle());e=Object.entries(e).reduce((r,[i,o])=>(o===null?delete r[i]:r[i]=o,r),{...n}),n=Tu(e),t.setStyle(n),kr.set(n,e)}de.$addNodeStyle=function(t){t=t.getStyle();let e=Fs(t);kr.set(t,e)},de.$cloneContents=function(t){var e={nodeMap:[],range:[]};if(F.$isRangeSelection(t)){var n=t.anchor,r=t.focus;let[c,d]=t.getCharacterOffsets();if(e=t.getNodes(),e.length===0||e.length===1&&F.$isElementNode(e[0])&&e[0].excludeFromCopy("clone"))e={nodeMap:[],range:[]};else{t=e.length;var i=e[0],o=i.getParent();if(o!==null&&(!o.canBeEmpty()||F.$isRootNode(o))){var l=o.__children;if(l.length===t){for(var s=!0,a=0;a<l.length;a++)if(l[a]!==e[a].__key){s=!1;break}s&&(t++,e.push(o))}}for(o=e[t-1],n=n.isBefore(r),r=new Map,l=[],s=F.$isTextNode(i)&&t===1,Hs(i,n?c:d,s?n?d:c:void 0,!0,l,r),i=0;i<t;i++){a=e[i];let u=a.getKey();if(!(r.has(u)||F.$isElementNode(a)&&a.excludeFromCopy("clone"))){let g=Er(a);F.$isRootNode(a.getParent())&&l.push(a.getKey()),u!=="root"&&r.set(u,g)}}Hs(o,s?void 0:n?d:c,void 0,!1,l,r),e={nodeMap:Array.from(r.entries()),range:l}}}else if(F.DEPRECATED_$isGridSelection(t))e=Nu(t);else if(F.$isNodeSelection(t))throw Error("Minified Lexical error #1; visit https://lexical.dev/docs/error?code=1 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return e},de.$cloneWithProperties=Er,de.$getSelectionStyleValueForProperty=function(t,e,n=""){let r=null,i=t.getNodes();var o=t.anchor,l=t.focus,s=t.isBackward();for(t=s?l.offset:o.offset,o=s?l.getNode():o.getNode(),l=0;l<i.length;l++){var a=i[l];if((l===0||t!==0||!a.is(o))&&F.$isTextNode(a)){s=e;var c=n;if(a=a.getStyle(),a=Pi(a),s=a!==null&&a[s]||c,r===null)r=s;else if(r!==s){r="";break}}}return r===null?n:r},de.$isAtNodeEnd=function(t){return t.type==="text"?t.offset===t.getNode().getTextContentSize():t.offset===t.getNode().getChildrenSize()},de.$isParentElementRTL=Bs,de.$moveCaretSelection=zs,de.$moveCharacter=function(t,e,n){let r=Bs(t);zs(t,e,n?!r:r,"character")},de.$patchStyleText=function(t,e){var n=t.getNodes();let r=n.length-1,i=n[0],o=n[r];if(!t.isCollapsed()){var l=t.anchor,s=t.focus,a=i.getTextContent().length,c=s.offset,d=l.offset,u=l.isBefore(s),g=u?d:c;t=u?c:d;var m=u?l.type:s.type,f=u?s.type:l.type;if(l=u?s.key:l.key,F.$isTextNode(i)&&g===a&&(s=i.getNextSibling(),F.$isTextNode(s)&&(g=d=0,i=s)),i.is(o))F.$isTextNode(i)&&(g=m==="element"?0:d>c?c:d,t=f==="element"?a:d>c?d:c,g!==t&&(g===0&&t===a?(Ln(i,e),i.select(g,t)):(n=i.splitText(g,t),n=g===0?n[0]:n[1],Ln(n,e),n.select(0,t-g))));else for(F.$isTextNode(i)&&g<i.getTextContentSize()&&(g!==0&&(i=i.splitText(g)[1]),Ln(i,e)),F.$isTextNode(o)&&(g=o.getTextContent().length,o.__key!==l&&t!==0&&(t=g),t!==g&&([o]=o.splitText(t)),t!==0&&Ln(o,e)),t=1;t<r;t++)g=n[t],a=g.getKey(),F.$isTextNode(g)&&a!==i.getKey()&&a!==o.getKey()&&!g.isToken()&&Ln(g,e)}},de.$selectAll=function(t){let e=t.anchor;t=t.focus;var n=e.getNode().getTopLevelElementOrThrow().getParentOrThrow();let r=n.getFirstDescendant();n=n.getLastDescendant();let i="element",o="element",l=0;F.$isTextNode(r)?i="text":F.$isElementNode(r)||r===null||(r=r.getParentOrThrow()),F.$isTextNode(n)?(o="text",l=n.getTextContentSize()):F.$isElementNode(n)||n===null||(n=n.getParentOrThrow()),r&&n&&(e.set(r.getKey(),0,i),t.set(n.getKey(),l,o))},de.$shouldOverrideDefaultCharacterSelection=function(t,e){return t=F.$getDecoratorNode(t.focus,e),F.$isDecoratorNode(t)&&!t.isIsolated()},de.$sliceSelectedTextNodeContent=function(t,e){if(e.isSelected()&&!e.isSegmented()&&!e.isToken()&&(F.$isRangeSelection(t)||F.DEPRECATED_$isGridSelection(t))){var n=t.anchor.getNode(),r=t.focus.getNode(),i=e.is(n),o=e.is(r);if(i||o){i=t.isBackward();let[l,s]=t.getCharacterOffsets();t=n.is(r),o=e.is(i?r:n),r=e.is(i?n:r),n=0;let a;t?(n=l>s?s:l,a=l>s?l:s):o?(n=i?s:l,a=void 0):r&&(i=i?l:s,n=0,a=i),e.__text=e.__text.slice(n,a)}}return e},de.$wrapNodes=function(t,e,n=null){var r=t.getNodes();let i=r.length;var o=t.anchor;if(i===0||i===1&&o.type==="element"&&o.getNode().getChildrenSize()===0){t=o.type==="text"?o.getNode().getParentOrThrow():o.getNode(),r=t.getChildren();let s=e();s.setFormat(t.getFormatType()),s.setIndent(t.getIndent()),r.forEach(a=>s.append(a)),n&&(s=n.append(s)),t.replace(s)}else{o=null;var l=[];for(let s=0;s<i;s++){let a=r[s];F.$isRootOrShadowRoot(a)?(Cr(t,l,l.length,e,n),l=[],o=a):o===null||o!==null&&F.$hasAncestor(a,o)?l.push(a):(Cr(t,l,l.length,e,n),l=[a])}Cr(t,l,l.length,e,n)}},de.$wrapNodesImpl=Cr,de.createDOMRange=function(t,e,n,r,i){let o=e.getKey(),l=r.getKey(),s=document.createRange(),a=t.getElementByKey(o);if(t=t.getElementByKey(l),F.$isTextNode(e)&&(a=Is(a)),F.$isTextNode(r)&&(t=Is(t)),e===void 0||r===void 0||a===null||t===null)return null;a.nodeName==="BR"&&([a,n]=Ps(a)),t.nodeName==="BR"&&([t,i]=Ps(t)),e=a.firstChild,a===t&&e!=null&&e.nodeName==="BR"&&n===0&&i===0&&(i=1);try{s.setStart(a,n),s.setEnd(t,i)}catch{return null}return!s.collapsed||n===i&&o===l||(s.setStart(t,i),s.setEnd(a,n)),s},de.createRectsFromDOMRange=function(t,e){var n=t.getRootElement();if(n===null)return[];t=n.getBoundingClientRect(),n=getComputedStyle(n),n=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),e=Array.from(e.getClientRects());let r=e.length,i;for(let o=0;o<r;o++){let l=e[o],s=l.width+n===t.width;i&&i.top===l.top&&i.left===l.left&&i.width===l.width&&i.height===l.height||s?(e.splice(o--,1),r--):i=l}return e},de.getStyleObjectFromCSS=Pi,de.trimTextContentFromAnchor=function(t,e,n){let r=e.getNode();if(F.$isElementNode(r)){var i=r.getDescendantByIndex(e.offset);i!==null&&(r=i)}for(;0<n&&r!==null;){var o=r.getPreviousSibling(),l=0;if(o===null){i=r.getParentOrThrow();for(var s=i.getPreviousSibling();s===null;){if(i=i.getParent(),i===null){o=null;break}s=i.getPreviousSibling()}i!==null&&(l=i.isInline()?0:2,o=F.$isElementNode(s)?s.getLastDescendant():s)}let a=r.getTextContent();a===""&&F.$isElementNode(r)&&!r.isInline()&&(a=`
29
29
 
30
- `),i=a.length,s=i-n;let c=a.slice(0,s);if(!F.$isTextNode(r)||n>=i)s=r.getParent(),r.remove(),s!=null&&s.getChildrenSize()===0&&s.remove(),n-=i+l,r=o;else{let d=r.getKey();o=t.getEditorState().read(()=>{const u=F.$getNodeByKey(d);return F.$isTextNode(u)&&u.isSimpleText()?u.getTextContent():null}),o!==null&&o!==a?(n=F.$getPreviousSelection(),i=r,r.isSimpleText()?r.setTextContent(o):(i=F.$createTextNode(o),r.replace(i)),F.$isRangeSelection(n)&&n.isCollapsed()&&(n=n.anchor.offset,i.select(n,n))):r.isSimpleText()?(o=e.key===d,l=e.offset,l<n&&(l=i),n=o?l-n:0,i=o?l:s,o&&n===0?([n]=r.splitText(n,i),n.remove()):([,n]=r.splitText(n,i),n.remove())):(n=F.$createTextNode(c),r.replace(n)),n=0}}};var Ve=ae,$s=Ve,Ht=w;function As(t,e,n,r=null){let i=r!=null?e.isSelected():!0,o=Ht.$isElementNode(e)&&e.excludeFromCopy("html");var l=e;r!==null&&(l=$s.$cloneWithProperties(e),l=Ht.$isTextNode(l)&&r!=null?$s.$sliceSelectedTextNodeContent(r,l):l);let s=Ht.$isElementNode(l)?l.getChildren():[],{element:a,after:c}=l.exportDOM(t);if(!a)return!1;let d=new DocumentFragment;for(let u=0;u<s.length;u++){let g=s[u],m=As(t,g,d,r);!i&&Ht.$isElementNode(e)&&m&&e.extractWithChild(g,r,"html")&&(i=!0)}return i&&!o?(a.append(d),n.append(a),c&&(t=c.call(l,a))&&a.replaceWith(t)):n.append(d),i}let Ms=new Set(["STYLE"]);function Ls(t,e,n=new Map,r,i=!1){let o=[];if(Ms.has(t.nodeName))return o;let l=null;var{nodeName:s}=t,a=e._htmlConversions.get(s.toLowerCase());if(s=null,a!==void 0)for(c of a)a=c(t),a!==null&&(s===null||s.priority<a.priority)&&(s=a);var c=(c=s!==null?s.conversion:null)?c(t,void 0,i):null;if(s=null,c!==null){if(s=c.after,l=c.node,l!==null){for(var[,d]of n)if(l=d(l,r),!l)break;l&&o.push(l)}c.forChild!=null&&n.set(t.nodeName,c.forChild)}for(t=t.childNodes,r=[],d=0;d<t.length;d++)r.push(...Ls(t[d],e,new Map(n),l,i||(c&&c.preformatted)===!0));return s!=null&&(r=s(r)),l==null?o=o.concat(r):Ht.$isElementNode(l)&&l.append(...r),o}Ni.$generateHtmlFromNodes=function(t,e){if(typeof document>"u"||typeof window>"u")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"),r=Ht.$getRoot().getChildren();for(let i=0;i<r.length;i++)As(t,r[i],n,e);return n.innerHTML},Ni.$generateNodesFromDOM=function(t,e){let n=[];e=e.body?Array.from(e.body.childNodes):[];let r=e.length;for(let o=0;o<r;o++){var i=e[o];Ms.has(i.nodeName)||(i=Ls(i,t),i!==null&&(n=n.concat(i)))}return n};var du=Ni,Ds=du,Is=Xe,Si=Ve,Tn=_e,z=w;function qe(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Ps(t){let e=z.$getSelection();if(e==null)throw Error("Expected valid LexicalSelection");return z.$isRangeSelection(e)&&e.isCollapsed()||e.getNodes().length===0?"":Ds.$generateHtmlFromNodes(t,e)}function Fs(t){let e=z.$getSelection();if(e==null)throw Error("Expected valid LexicalSelection");return z.$isRangeSelection(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(Bs(t,e))}function bi(t,e,n){(z.DEPRECATED_$isGridSelection(n)||Tn.$findMatchingParent(n.anchor.getNode(),r=>z.DEPRECATED_$isGridCellNode(r))!==null&&Tn.$findMatchingParent(n.focus.getNode(),r=>z.DEPRECATED_$isGridCellNode(r))!==null)&&e.length===1&&z.DEPRECATED_$isGridNode(e[0])?gu(e,n,!1,t):uu(e,n)}function uu(t,e){let n=[],r=null,i=null;for(let o=0;o<t.length;o++){let l=t[o];if(Is.$isListItemNode(l)){i==null&&(i=Is.$createListNode("bullet"),n.push(i)),i.append(l);continue}else i!=null&&(i=null);let s=z.$isLineBreakNode(l);if(s||z.$isDecoratorNode(l)&&l.isInline()||z.$isElementNode(l)&&l.isInline()||z.$isTextNode(l)){if(r===null&&(r=z.$createParagraphNode(),n.push(r),s))continue;r!==null&&r.append(l)}else n.push(l),r=null}z.$isRangeSelection(e)?e.insertNodes(n):z.DEPRECATED_$isGridSelection(e)&&(t=e.anchor.getNode(),z.DEPRECATED_$isGridCellNode(t)||qe(41),t.append(...n))}function gu(t,e,n,r){t.length===1&&z.DEPRECATED_$isGridNode(t[0])||qe(42);var i=t[0];t=i.getChildren(),n=i.getFirstChildOrThrow().getChildrenSize();var o=i.getChildrenSize(),l=Tn.$findMatchingParent(e.anchor.getNode(),m=>z.DEPRECATED_$isGridCellNode(m));e=(i=l&&Tn.$findMatchingParent(l,m=>z.DEPRECATED_$isGridRowNode(m)))&&Tn.$findMatchingParent(i,m=>z.DEPRECATED_$isGridNode(m)),z.DEPRECATED_$isGridCellNode(l)&&z.DEPRECATED_$isGridRowNode(i)&&z.DEPRECATED_$isGridNode(e)||qe(43);var s=i.getIndexWithinParent(),a=Math.min(e.getChildrenSize()-1,s+o-1);o=l.getIndexWithinParent(),l=Math.min(i.getChildrenSize()-1,o+n-1),n=Math.min(o,l),i=Math.min(s,a),o=Math.max(o,l),s=Math.max(s,a),a=e.getChildren(),l=0;let c,d;for(let m=i;m<=s;m++){var u=a[m];z.DEPRECATED_$isGridRowNode(u)||qe(24);var g=t[l];z.DEPRECATED_$isGridRowNode(g)||qe(24),u=u.getChildren(),g=g.getChildren();let h=0;for(let v=n;v<=o;v++){let C=u[v];z.DEPRECATED_$isGridCellNode(C)||qe(25);let N=g[h];z.DEPRECATED_$isGridCellNode(N)||qe(25),m===i&&v===n?c=C.getKey():m===s&&v===o&&(d=C.getKey());let p=C.getChildren();N.getChildren().forEach(x=>{z.$isTextNode(x)&&z.$createParagraphNode().append(x),C.append(x)}),p.forEach(x=>x.remove()),h++}l++}c&&d&&(t=z.DEPRECATED_$createGridSelection(),t.set(e.getKey(),c,d),z.$setSelection(t),r.dispatchCommand(z.SELECTION_CHANGE_COMMAND,void 0))}function zs(t,e,n,r=[]){let i=e!=null?n.isSelected():!0,o=z.$isElementNode(n)&&n.excludeFromCopy("html");var l=n;if(e!==null){var s=Si.$cloneWithProperties(n);l=s=z.$isTextNode(s)&&e!=null?Si.$sliceSelectedTextNodeContent(e,s):s}let a=z.$isElementNode(l)?l.getChildren():[];var c=l;s=c.exportJSON(),s.type!==c.constructor.getType()&&qe(58);var d=s.children;for(z.$isElementNode(c)&&(Array.isArray(d)||qe(59)),z.$isTextNode(l)&&(s.text=l.__text),l=0;l<a.length;l++)c=a[l],d=zs(t,e,c,s.children),!i&&z.$isElementNode(n)&&d&&n.extractWithChild(c,e,"clone")&&(i=!0);if(i&&!o)r.push(s);else if(Array.isArray(s.children))for(t=0;t<s.children.length;t++)r.push(s.children[t]);return i}function Bs(t,e){let n=[],r=z.$getRoot().getChildren();for(let i=0;i<r.length;i++)zs(t,e,r[i],n);return{namespace:t._config.namespace,nodes:n}}function Hs(t){let e=[];for(let n=0;n<t.length;n++){let r=z.$parseSerializedNode(t[n]);z.$isTextNode(r)&&Si.$addNodeStyle(r),e.push(r)}return e}let Kt=null;function Ks(t,e){if(e.preventDefault(),e=e.clipboardData,e===null)return!1;let n=z.$getSelection(),r=Ps(t);t=Fs(t);let i="";return n!==null&&(i=n.getTextContent()),r!==null&&e.setData("text/html",r),t!==null&&e.setData("application/x-lexical-editor",t),e.setData("text/plain",i),!0}Qe.$generateJSONFromSelectedNodes=Bs,Qe.$generateNodesFromSerializedNodes=Hs,Qe.$getHtmlContent=Ps,Qe.$getLexicalContent=Fs,Qe.$insertDataTransferForPlainText=function(t,e){t=t.getData("text/plain"),t!=null&&e.insertRawText(t)},Qe.$insertDataTransferForRichText=function(t,e,n){var r=t.getData("application/x-lexical-editor");if(r)try{let o=JSON.parse(r);if(o.namespace===n._config.namespace&&Array.isArray(o.nodes)){let l=Hs(o.nodes);return bi(n,l,e)}}catch{}if(r=t.getData("text/html"))try{var i=new DOMParser().parseFromString(r,"text/html");let o=Ds.$generateNodesFromDOM(n,i);return bi(n,o,e)}catch{}if(t=t.getData("text/plain"),t!=null)if(z.$isRangeSelection(e))for(t=t.split(/\r?\n/),n=t.length,i=0;i<n;i++)e.insertText(t[i]),i<n-1&&e.insertParagraph();else e.insertRawText(t)},Qe.$insertGeneratedNodes=bi,Qe.copyToClipboard__EXPERIMENTAL=async function(t,e){if(Kt!==null)return!1;if(e!==null)return new Promise(o=>{t.update(()=>{o(Ks(t,e))})});var n=t.getRootElement();let r=document.getSelection();if(n===null||r===null)return!1;let i=document.createElement("span");return i.style.cssText="position: fixed; top: -1000px;",i.append(document.createTextNode("#")),n.append(i),n=new Range,n.setStart(i,0),n.setEnd(i,1),r.removeAllRanges(),r.addRange(n),new Promise(o=>{let l=t.registerCommand(z.COPY_COMMAND,s=>(s instanceof ClipboardEvent&&(l(),Kt!==null&&(window.clearTimeout(Kt),Kt=null),o(Ks(t,s))),!0),z.COMMAND_PRIORITY_CRITICAL);Kt=window.setTimeout(()=>{l(),Kt=null,o(!1)},50),document.execCommand("copy"),i.remove()})};var fu=Qe,xr=fu,_r=Ve,Wt=_e,y=w;let Ut=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hu=Ut&&"documentMode"in document?document.documentMode:null;Ut&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Ut&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);let pu=Ut&&"InputEvent"in window&&!hu?"getTargetRanges"in new window.InputEvent("input"):!1,mu=Ut&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),xu=Ut&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Oi=y.createCommand("DRAG_DROP_PASTE_FILE");class Sn extends y.ElementNode{static getType(){return"quote"}static clone(e){return new Sn(e.__key)}constructor(e){super(e)}createDOM(e){let n=document.createElement("blockquote");return Wt.addClassNamesToElement(n,e.theme.quote),n}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:_u,priority:0})}}static importJSON(e){let n=Ri();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(){let e=y.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=y.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}}function Ri(){return new Sn}class bn extends y.ElementNode{static getType(){return"heading"}static clone(e){return new bn(e.__tag,e.__key)}constructor(e,n){super(n),this.__tag=e}getTag(){return this.__tag}createDOM(e){let n=this.__tag,r=document.createElement(n);return e=e.theme.heading,e!==void 0&&Wt.addClassNamesToElement(r,e[n]),r}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:Yt,priority:0}),h2:()=>({conversion:Yt,priority:0}),h3:()=>({conversion:Yt,priority:0}),h4:()=>({conversion:Yt,priority:0}),h5:()=>({conversion:Yt,priority:0}),h6:()=>({conversion:Yt,priority:0}),p:e=>(e=e.firstChild,e!==null&&Ws(e)?{conversion:()=>({node:null}),priority:3}:null),span:e=>Ws(e)?{conversion:()=>({node:vr("h1")}),priority:3}:null}}static importJSON(e){let n=vr(e.tag);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(){let e=y.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=y.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}extractWithChild(){return!0}}function Ws(t){return t.nodeName.toLowerCase()==="span"?t.style.fontSize==="26pt":!1}function Yt(t){t=t.nodeName.toLowerCase();let e=null;return(t==="h1"||t==="h2"||t==="h3"||t==="h4"||t==="h5"||t==="h6")&&(e=vr(t)),{node:e}}function _u(){return{node:Ri()}}function vr(t){return new bn(t)}function vu(t,e){t.preventDefault(),e.update(()=>{let n=y.$getSelection(),r=t instanceof InputEvent||t instanceof KeyboardEvent?null:t.clipboardData;r!=null&&(y.$isRangeSelection(n)||y.DEPRECATED_$isGridSelection(n))&&xr.$insertDataTransferForRichText(r,n,e)},{tag:"paste"})}async function wu(t,e){e.getEditorState().read(()=>y.$getSelection())!=null&&(await xr.copyToClipboard__EXPERIMENTAL(e,t instanceof ClipboardEvent?t:null),e.update(()=>{let n=y.$getSelection();y.$isRangeSelection(n)?n.removeText():y.$isNodeSelection(n)&&n.getNodes().forEach(r=>r.remove())}))}function On(t){let e=null;return t instanceof DragEvent?e=t.dataTransfer:t instanceof ClipboardEvent&&(e=t.clipboardData),e===null?[!1,[]]:[e.types.includes("Files"),Array.from(e.files)]}function Us(t,e){var n=y.$getSelection();if(y.$isRangeSelection(n)){var r=new Set;n=n.getNodes();for(let o=0;o<n.length;o++){let l=n[o];var i=l.getKey();r.has(i)||(r.add(i),i=Wt.$getNearestBlockElementAncestorOrThrow(l),i.canInsertTab()?t(l):i.canIndent()&&e(i))}}}function wr(t){return t=y.$getNearestNodeFromDOMNode(t),y.$isDecoratorNode(t)}Ye.$createHeadingNode=vr,Ye.$createQuoteNode=Ri,Ye.$isHeadingNode=function(t){return t instanceof bn},Ye.$isQuoteNode=function(t){return t instanceof Sn},Ye.DRAG_DROP_PASTE=Oi,Ye.HeadingNode=bn,Ye.QuoteNode=Sn,Ye.eventFiles=On,Ye.registerRichText=function(t){return Wt.mergeRegister(t.registerCommand(y.CLICK_COMMAND,()=>{const e=y.$getSelection();return y.$isNodeSelection(e)?(e.clear(),!0):!1},0),t.registerCommand(y.DELETE_CHARACTER_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.deleteCharacter(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DELETE_WORD_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.deleteWord(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DELETE_LINE_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.deleteLine(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.CONTROLLED_TEXT_INSERTION_COMMAND,e=>{const n=y.$getSelection();if(typeof e=="string")y.$isRangeSelection(n)?n.insertText(e):y.DEPRECATED_$isGridSelection(n);else{if(!y.$isRangeSelection(n)&&!y.DEPRECATED_$isGridSelection(n))return!1;const r=e.dataTransfer;r!=null?xr.$insertDataTransferForRichText(r,n,t):y.$isRangeSelection(n)&&(e=e.data)&&n.insertText(e)}return!0},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.REMOVE_TEXT_COMMAND,()=>{const e=y.$getSelection();return y.$isRangeSelection(e)?(e.removeText(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.FORMAT_TEXT_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.formatText(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.FORMAT_ELEMENT_COMMAND,e=>{var n=y.$getSelection();if(!y.$isRangeSelection(n)&&!y.$isNodeSelection(n))return!1;n=n.getNodes();for(const r of n)Wt.$getNearestBlockElementAncestorOrThrow(r).setFormat(e);return!0},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.INSERT_LINE_BREAK_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.insertLineBreak(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.INSERT_PARAGRAPH_COMMAND,()=>{const e=y.$getSelection();return y.$isRangeSelection(e)?(e.insertParagraph(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.INDENT_CONTENT_COMMAND,()=>(Us(()=>{t.dispatchCommand(y.CONTROLLED_TEXT_INSERTION_COMMAND," ")},e=>{const n=e.getIndent();n!==10&&e.setIndent(n+1)}),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.OUTDENT_CONTENT_COMMAND,()=>(Us(e=>{y.$isTextNode(e)&&(e=e.getTextContent(),e[e.length-1]===" "&&t.dispatchCommand(y.DELETE_CHARACTER_COMMAND,!0))},e=>{const n=e.getIndent();n!==0&&e.setIndent(n-1)}),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ARROW_UP_COMMAND,e=>{const n=y.$getSelection();return y.$isNodeSelection(n)&&!wr(e.target)&&(e=n.getNodes(),0<e.length)?(e[0].selectPrevious(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ARROW_DOWN_COMMAND,()=>{var e=y.$getSelection();return y.$isNodeSelection(e)&&(e=e.getNodes(),0<e.length)?(e[0].selectNext(0,0),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ARROW_LEFT_COMMAND,e=>{const n=y.$getSelection();if(y.$isNodeSelection(n)){var r=n.getNodes();if(0<r.length)return e.preventDefault(),r[0].selectPrevious(),!0}return y.$isRangeSelection(n)&&_r.$shouldOverrideDefaultCharacterSelection(n,!0)?(r=e.shiftKey,e.preventDefault(),_r.$moveCharacter(n,r,!0),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ARROW_RIGHT_COMMAND,e=>{const n=y.$getSelection();if(y.$isNodeSelection(n)&&!wr(e.target)){var r=n.getNodes();if(0<r.length)return e.preventDefault(),r[0].selectNext(0,0),!0}return y.$isRangeSelection(n)?(r=e.shiftKey,_r.$shouldOverrideDefaultCharacterSelection(n,!1)?(e.preventDefault(),_r.$moveCharacter(n,r,!1),!0):!1):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_BACKSPACE_COMMAND,e=>{if(wr(e.target))return!1;const n=y.$getSelection();if(!y.$isRangeSelection(n))return!1;e.preventDefault(),{anchor:e}=n;const r=e.getNode();return n.isCollapsed()&&e.offset===0&&!y.$isRootNode(r)&&0<Wt.$getNearestBlockElementAncestorOrThrow(r).getIndent()?t.dispatchCommand(y.OUTDENT_CONTENT_COMMAND,void 0):t.dispatchCommand(y.DELETE_CHARACTER_COMMAND,!0)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_DELETE_COMMAND,e=>{if(wr(e.target))return!1;const n=y.$getSelection();return y.$isRangeSelection(n)?(e.preventDefault(),t.dispatchCommand(y.DELETE_CHARACTER_COMMAND,!1)):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ENTER_COMMAND,e=>{const n=y.$getSelection();if(!y.$isRangeSelection(n))return!1;if(e!==null){if((xu||mu)&&pu)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(y.INSERT_LINE_BREAK_COMMAND,!1)}return t.dispatchCommand(y.INSERT_PARAGRAPH_COMMAND,void 0)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_TAB_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(e.preventDefault(),t.dispatchCommand(e.shiftKey?y.OUTDENT_CONTENT_COMMAND:y.INDENT_CONTENT_COMMAND,void 0)):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ESCAPE_COMMAND,()=>{const e=y.$getSelection();return y.$isRangeSelection(e)?(t.blur(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DROP_COMMAND,e=>{const[,n]=On(e);if(0<n.length){var r=e.clientX,i=e.clientY;if(r=typeof document.caretRangeFromPoint<"u"?document.caretRangeFromPoint(r,i):document.caretPositionFromPoint!=="undefined"?document.caretPositionFromPoint(r,i):null,r!==null){const{startOffset:o,endOffset:l,startContainer:s,endContainer:a}=r;if(r=y.$getNearestNodeFromDOMNode(s),i=y.$getNearestNodeFromDOMNode(a),r!==null&&i!==null){const c=y.$createRangeSelection();y.$isTextNode(r)?c.anchor.set(r.getKey(),o,"text"):c.anchor.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+1,"element"),y.$isTextNode(i)?c.focus.set(i.getKey(),l,"text"):c.focus.set(i.getParentOrThrow().getKey(),i.getIndexWithinParent()+1,"element"),r=y.$normalizeSelection__EXPERIMENTAL(c),y.$setSelection(r)}t.dispatchCommand(Oi,n)}return e.preventDefault(),!0}return e=y.$getSelection(),!!y.$isRangeSelection(e)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DRAGSTART_COMMAND,e=>{const[n]=On(e),r=y.$getSelection();return n&&!y.$isRangeSelection(r)?!1:(e.preventDefault(),!0)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DRAGOVER_COMMAND,e=>{const[n]=On(e),r=y.$getSelection();return n&&!y.$isRangeSelection(r)?!1:(e.preventDefault(),!0)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.COPY_COMMAND,e=>(xr.copyToClipboard__EXPERIMENTAL(t,e instanceof ClipboardEvent?e:null),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.CUT_COMMAND,e=>(wu(e,t),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.PASTE_COMMAND,e=>{var[,n]=On(e);return n!==null&&0<n.length?(t.dispatchCommand(Oi,n),!0):(n=y.$getSelection(),y.$isRangeSelection(n)||y.DEPRECATED_$isGridSelection(n)?(vu(e,t),!0):!1)},y.COMMAND_PRIORITY_EDITOR))};var et=Ye,tt={},yu=_e,ct=w;class Vt extends ct.ElementNode{static getType(){return"link"}static clone(e){return new Vt(e.__url,{rel:e.__rel,target:e.__target},e.__key)}constructor(e,n={},r){super(r);let{target:i=null,rel:o=null}=n;this.__url=e,this.__target=i,this.__rel=o}createDOM(e){let n=document.createElement("a");return n.href=this.__url,this.__target!==null&&(n.target=this.__target),this.__rel!==null&&(n.rel=this.__rel),yu.addClassNamesToElement(n,e.theme.link),n}updateDOM(e,n){let r=this.__url,i=this.__target,o=this.__rel;return r!==e.__url&&(n.href=r),i!==e.__target&&(i?n.target=i:n.removeAttribute("target")),o!==e.__rel&&(o?n.rel=o:n.removeAttribute("rel")),!1}static importDOM(){return{a:()=>({conversion:ku,priority:1})}}static importJSON(e){let n=Rn(e.url,{rel:e.rel,target:e.target});return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}insertNewAfter(e){if(e=this.getParentOrThrow().insertNewAfter(e),ct.$isElementNode(e)){let n=Rn(this.__url,{rel:this.__rel,target:this.__target});return e.append(n),n}return null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,n){if(!ct.$isRangeSelection(n))return!1;e=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&0<n.getTextContent().length}}function ku(t){let e=null;if(t instanceof HTMLAnchorElement){let n=t.textContent;n!==null&&n!==""&&(e=Rn(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target")}))}return{node:e}}function Rn(t,e){return new Vt(t,e)}function yt(t){return t instanceof Vt}class $n extends Vt{static getType(){return"autolink"}static clone(e){return new $n(e.__url,{rel:e.__rel,target:e.__target},e.__key)}static importJSON(e){let n=$i(e.url,{rel:e.rel,target:e.target});return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(e){if(e=this.getParentOrThrow().insertNewAfter(e),ct.$isElementNode(e)){let n=$i(this.__url,{rel:this._rel,target:this.__target});return e.append(n),n}return null}}function $i(t,e){return new $n(t,e)}let Cu=ct.createCommand("TOGGLE_LINK_COMMAND");function Eu(t){return Nu(t,e=>yt(e))}function Nu(t,e){for(;t!==null&&(t=t.getParent())!==null&&!e(t););return t}tt.$createAutoLinkNode=$i,tt.$createLinkNode=Rn,tt.$isAutoLinkNode=function(t){return t instanceof $n},tt.$isLinkNode=yt,tt.AutoLinkNode=$n,tt.LinkNode=Vt,tt.TOGGLE_LINK_COMMAND=Cu,tt.toggleLink=function(t,e={}){let{target:n,rel:r}=e;if(e=ct.$getSelection(),ct.$isRangeSelection(e))if(e=e.extract(),t===null)e.forEach(o=>{if(o=o.getParent(),yt(o)){let l=o.getChildren();for(let s=0;s<l.length;s++)o.insertBefore(l[s]);o.remove()}});else{if(e.length===1){var i=e[0];if(i=yt(i)?i:Eu(i),i!==null){i.setURL(t),n!==void 0&&i.setTarget(n),r!==void 0&&i.setRel(r);return}}let o=null,l=null;e.forEach(s=>{var a=s.getParent();if(a!==l&&a!==null&&(!ct.$isElementNode(s)||s.isInline()))if(yt(a))l=a,a.setURL(t),n!==void 0&&a.setTarget(n),r!==void 0&&a.setRel(r);else if(a.is(o)||(o=a,l=Rn(t,{rel:r,target:n}),yt(a)?s.getPreviousSibling()===null?a.insertBefore(l):a.insertAfter(l):s.insertBefore(l)),yt(s)){if(!s.is(l)){if(l!==null){a=s.getChildren();for(let c=0;c<a.length;c++)l.append(a[c])}s.remove()}}else l!==null&&l.append(s)})}};var Ai=tt;class yr extends w.ElementNode{static getType(){return"aside"}static clone(e){return new yr(e.__key)}createDOM(e){const n=document.createElement("aside");return _e.addClassNamesToElement(n,e.theme.aside),n}updateDOM(e,n){return!1}static importDOM(){return{aside:e=>({conversion:Tu,priority:0})}}static importJSON(e){const n=Mi();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"aside"}}insertNewAfter(){const e=w.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertNewAfter(e),e}collapseAtStart(){const e=w.$createParagraphNode();return this.getChildren().forEach(r=>e.append(r)),this.replace(e),!0}}function Tu(){return{node:Mi}}function Mi(){return new yr}var Ys={},Su=ge,kt=w,kr=S.default;function Vs(t,e){return t.getEditorState().read(()=>{let n=kt.$getNodeByKey(e);return n===null?!1:n.isSelected()})}Ys.useLexicalNodeSelection=function(t){let[e]=Su.useLexicalComposerContext(),[n,r]=kr.useState(()=>Vs(e,t));kr.useEffect(()=>e.registerUpdateListener(()=>{r(Vs(e,t))}),[e,t]);let i=kr.useCallback(l=>{e.update(()=>{let s=kt.$getSelection();kt.$isNodeSelection(s)||(s=kt.$createNodeSelection(),kt.$setSelection(s)),l?s.add(t):s.delete(t)})},[e,t]),o=kr.useCallback(()=>{e.update(()=>{const l=kt.$getSelection();kt.$isNodeSelection(l)&&l.clear()})},[e]);return[n,i,o]};var js=Ys;const Gs=S.default.createContext({});var Le={exports:{}},bu="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ou=bu,Ru=Ou;function Zs(){}function Js(){}Js.resetWarningCache=Zs;var $u=function(){function t(r,i,o,l,s,a){if(a!==Ru){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Js,resetWarningCache:Zs};return n.PropTypes=n,n};Le.exports=$u();const Li=S.default.forwardRef(({isSelected:t,cardWidth:e,cardType:n,children:r,...i},o)=>f("div",{className:`relative border border-transparent caret-grey-800 ${t?"shadow-[0_0_0_2px] shadow-green":"hover:shadow-[0_0_0_1px] hover:shadow-green"} ${e==="wide"?"mx-[calc(50%-(50vw-var(--kg-breakout-adjustment))-.8rem)] w-[calc(65vw+2px-var(--kg-breakout-adjustment))] min-w-[calc(100%+3.6rem)] sm:min-w-[calc(100%+10rem)] lg:min-w-[calc(100%+18rem)] translate-x-[calc(50vw-50%+.8rem-var(--kg-breakout-adjustment))]":e==="full"?"lg:mx-[calc(50%-50vw+(var(--kg-breakout-adjustment)/2))] lg:w-[calc(100vw-var(--kg-breakout-adjustment))]":""}`,ref:o,"data-kg-card":n,"data-kg-card-selected":t,...i,children:r}));Li.propTypes={isSelected:Le.exports.bool,cardWidth:Le.exports.oneOf(["regular","wide","full"])},Li.defaultProps={cardWidth:"regular"};const Di=({nodeKey:t,children:e,width:n})=>{const[r]=ge.useLexicalComposerContext(),[i,o,l]=js.useLexicalNodeSelection(t),[s,a]=S.default.useState(null),[c,d]=S.default.useState(null),[u,g]=S.default.useState(n||"regular"),m=S.default.useRef(null);return S.default.useLayoutEffect(()=>{r.getEditorState().read(()=>{const h=w.$getNodeByKey(t);d(h.getType())})},[]),S.default.useEffect(()=>_e.mergeRegister(r.registerUpdateListener(({editorState:h})=>{a(h.read(()=>w.$getSelection()))}),r.registerCommand(w.CLICK_COMMAND,h=>(m.current.contains(h.target)?(l(),o(!0)):i&&o(!1),!1),w.COMMAND_PRIORITY_LOW),r.registerCommand(w.KEY_ENTER_COMMAND,h=>{const v=w.$getSelection();if(i&&w.$isNodeSelection(v)&&v.getNodes().length===1){h.preventDefault();const C=w.$getNodeByKey(t),N=w.$createParagraphNode();return C.getTopLevelElementOrThrow().insertAfter(N),N.select(),!0}return!1},w.COMMAND_PRIORITY_EDITOR),r.registerCommand(w.KEY_BACKSPACE_COMMAND,h=>{const v=w.$getSelection();if(i&&w.$isNodeSelection(v)&&v.getNodes().length===1){h.preventDefault();const C=w.$getNodeByKey(t);if(C.getType()==="image"&&h.target.matches("input"))return r.update(()=>{const x=C.getCaption();C.setCaption(x.slice(0,-1))}),!1;const N=C.getPreviousSibling(),p=C.getNextSibling();if(N)if(N.selectEnd)N.selectEnd();else if(w.$isDecoratorNode(N)){const x=w.$createNodeSelection();x.add(N.getKey()),w.$setSelection(x)}else C.selectPrevious();else if(p)if(p.selectStart)p.selectStart();else if(w.$isDecoratorNode(p)){const x=w.$createNodeSelection();x.add(p.getKey()),w.$setSelection(x)}else C.selectNext();return C.remove(),!0}return!1},w.COMMAND_PRIORITY_EDITOR),r.registerCommand(w.KEY_DELETE_COMMAND,h=>{const v=w.$getSelection();if(i&&w.$isNodeSelection(v)&&v.getNodes().length===1){h.preventDefault();const C=w.$getNodeByKey(t),N=C.getNextSibling();if(N)if(N.selectStart)N.selectStart();else if(w.$isDecoratorNode(N)){const p=w.$createNodeSelection();p.add(N.getKey()),w.$setSelection(p)}else C.selectNext();else{const p=w.$createParagraphNode();C.getTopLevelElementOrThrow().insertAfter(p),p.select()}return C.remove(),!0}return!1},w.COMMAND_PRIORITY_EDITOR)),[r,i,o,l,t]),f(Gs.Provider,{value:{isSelected:i,cardWidth:u,setCardWidth:g,selection:s,cardContainerRef:m},children:f(Li,{isSelected:i,cardType:c,ref:m,cardWidth:u,children:e})})};function Au(){return f("hr",{className:"block h-[1px] border-0 border-t border-grey-300"})}const Xs=w.createCommand(),oo=class extends w.DecoratorNode{static getType(){return"horizontalrule"}static clone(e){return new oo(e.__key)}static importJSON(e){return Ii()}exportJSON(){return{type:"horizontalrule",version:1}}createDOM(){return document.createElement("div")}getTextContent(){return`
31
- `}isInline(){return!1}updateDOM(){return!1}decorate(){return f(Di,{nodeKey:this.getKey(),className:"inline-block",children:f(Au,{})})}};let Ct=oo;Se(Ct,"kgMenu",{label:"Divider",desc:"Insert a dividing line",Icon:Eo,insertCommand:Xs,matches:["divider","horizontal-rule","hr"]});function Ii(){return new Ct}function Mu(t){return t instanceof Ct}const Lu=({el:t,value:e})=>{te.useEffect(()=>{const n=t.current;if(n){n.style.height="0px";const r=n.scrollHeight;n.style.height=`${r}px`}},[t,e])};function Qs({code:t,language:e,updateCode:n,updateLanguage:r}){const i=S.default.useRef(null);return Lu({el:i,value:t}),f("code",{children:f("textarea",{ref:i,autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",tabIndex:"0",autoFocus:!0,className:"min-h-170 w-full bg-grey-50 p-3 text-grey-900",value:t,onChange:n})})}Qs.propTypes={code:Le.exports.string},w.createCommand();function Du({code:t,language:e,nodeKey:n,editor:r}){return f(Qs,{code:t,updateCode:l=>{r.update(()=>{w.$getNodeByKey(n).setCode(l.target.value)})},language:e,updateLanguage:l=>{r.update(()=>{w.$getNodeByKey(n).setLanguage(l.target.value)})}})}class jt extends w.DecoratorNode{constructor(n,r,i){super(i);Se(this,"__code","");Se(this,"__language","");this.__language=n,this.__code=r}static getType(){return"codeblock"}static clone(n){return new jt(n.__key,n.__code)}static importJSON(n){return qs()}exportJSON(){return{type:"codeblock",version:1,code:this.__code,language:this.__language}}createDOM(n){return document.createElement("div")}updateDOM(){return!1}getCode(){return this.getLatest().__code}setCode(n){const r=this.getWritable();r.__code=n}getLanguage(){return this.getLatest().__language}setLanguage(n){const r=this.getWritable();r.__language=n}getTextContent(){return this.getLatest().__code}decorate(n,r){return f(Di,{nodeKey:this.getKey(),children:f(Du,{code:this.__code,language:this.__language,nodeKey:this.getKey(),editor:n})})}isInline(){return!1}}function qs(t,e){return new jt(t,e)}function Iu(t){return t instanceof jt}const Cr=S.default.createContext({});function Pu({value:t,placeholder:e,onChange:n}){return f("input",{onChange:i=>{n(i.target.value)},className:"not-kg-prose w-full px-9 text-center font-sans text-sm font-normal leading-8 tracking-wide text-grey-900",placeholder:e,value:t})}function Fu({value:t,placeholder:e,onChange:n}){return f("input",{onChange:i=>{n(i.target.value)},className:"not-kg-prose w-full px-9 text-center font-sans text-sm font-normal leading-8 tracking-wide text-grey-900",placeholder:e,value:t})}function zu({isEditingAlt:t,onClick:e}){return f("button",{name:"alt-toggle-button",className:`absolute bottom-0 right-0 m-2 cursor-pointer rounded border px-1 font-sans text-[1.3rem] font-normal leading-7 tracking-wide transition-all duration-100 ${t?"border-green bg-green text-white":"border-grey text-grey"} `,onClick:e,children:"Alt"})}function Bu({altText:t,altTextPlaceholder:e,setAltText:n,caption:r,captionPlaceholder:i,setCaption:o,isSelected:l}){const[s,a]=S.default.useState(!1),c=d=>{d.stopPropagation(),a(!s)};if(S.default.useEffect(()=>{l||a(!1)},[l,a]),l||r)return V("figcaption",{className:"flex w-full p-2",children:[s?f(Fu,{value:t,placeholder:e,onChange:n}):f(Pu,{value:r,placeholder:i,onChange:o}),n&&f(zu,{isEditingAlt:s,onClick:c})]})}const Hu=({text:t})=>f("span",{"data-kg-card-drag-text":!0,className:"text-sm font-sans font-bold text-grey-800 transition-all group-hover:text-grey-800",children:t});function Ku({desc:t,Icon:e,filePicker:n,size:r,handleDrag:i,handleDrop:o,isDraggedOver:l,...s}){return f("div",{onDragEnter:i,onDragLeave:i,onDragOver:i,onDrop:o,className:"border border-transparent",...s,"data-testid":"media-placeholder",children:f("div",{className:`h-100 relative flex items-center justify-center border border-grey/20 bg-grey-50 ${r==="xsmall"?"before:pb-[12.5%]":"before:pb-[62.5%]"}`,children:l?f(Hu,{text:"Drop it like it's hot \u{1F525}"}):V("button",{onClick:n,name:"placeholder-button",className:`group flex cursor-pointer items-center justify-center ${r==="xsmall"?"p-4":"p-20 flex-col"}`,children:[f(e,{className:`opacity-80 transition-all ease-linear group-hover:scale-105 group-hover:opacity-100 ${r==="large"?"h-20 w-20 text-grey":r==="small"?"h-14 w-14 text-grey":r==="xsmall"?"w-6 h-6 mr-3 text-grey-700":"h-16 w-16 text-grey"}`}),f("p",{className:`font-sans text-sm font-normal text-grey-700 transition-all group-hover:text-grey-800 ${r==="xsmall"?"":"mt-4"}`,children:t})]})})})}function Er({fileInputRef:t}){t.current.click()}function ea({onFileChange:t,fileInputRef:e}){return f("form",{onChange:t,children:f("input",{name:"image-input",type:"file",accept:"image/*",ref:e,hidden:!0})})}function Wu({src:t,alt:e,previewSrc:n,progress:r}){const i={width:`${r==null?void 0:r.toFixed(0)}%`};return V("div",{children:[f("img",{className:n?"opacity-40":"",src:n||t,alt:e||`upload in progress, ${r} `}),n&&r&&!t?f("div",{className:"absolute inset-0 flex items-center min-w-full bg-white/50 justify-center overflow-hidden",children:f("div",{className:"not-kg-prose bg-grey-200 rounded-full shadow w-[60%]",children:f("div",{className:"bg-green rounded-full text-xs leading-none py-1 text-center text-white",style:i})})}):f(Xt,{})]})}function Uu({onFileChange:t,setFileInputRef:e,handleDrag:n,handleDrop:r,isDraggedOver:i}){const o=S.default.useRef(null);return V(Xt,{children:[f(Ku,{handleDrag:n,handleDrop:r,filePicker:()=>Er({fileInputRef:o}),desc:"Click to select an image",Icon:Hr,isDraggedOver:i}),f(ea,{filePicker:()=>Er({fileInputRef:o}),onFileChange:t,fileInputRef:s=>{o.current=s,e(o)}})]})}const Yu=({src:t,altText:e,previewSrc:n,uploadProgress:r,onFileChange:i,setFileInputRef:o,handleDrag:l,handleDrop:s,isDraggedOver:a})=>n||t?f(Wu,{src:t,alt:e,previewSrc:n,progress:r}):f(Uu,{handleDrag:l,onFileChange:i,setFileInputRef:o,handleDrop:s,isDraggedOver:a});function ta({isSelected:t,src:e,onFileChange:n,caption:r,setCaption:i,altText:o,setAltText:l,setFigureRef:s,fileInputRef:a,handleDrag:c,handleDrop:d,isDraggedOver:u,cardWidth:g,previewSrc:m,uploadProgress:h}){const v=S.default.useRef(null);return S.default.useEffect(()=>{s&&s(v)},[v,s]),f(Xt,{children:V("figure",{"data-kg-card-width":g,ref:v,children:[f(Yu,{src:e,altText:o,previewSrc:m,uploadProgress:h,onFileChange:n,setFileInputRef:N=>{a&&(a.current=N.current)},handleDrag:c,handleDrop:d,isDraggedOver:u}),f(Bu,{altText:o||"",setAltText:l,altTextPlaceholder:"Type alt text for image (optional)",caption:r||"",setCaption:i,captionPlaceholder:"Type caption for image (optional)",isSelected:t})]})})}ta.propTypes={isSelected:Le.exports.bool,setAltText:Le.exports.func,caption:Le.exports.string,altText:Le.exports.string,setCaption:Le.exports.func,src:Le.exports.string,isDraggedOver:Le.exports.bool,previewSrc:Le.exports.string,uploadProgress:Le.exports.number};const Vu={bold:go,italic:fo,headingOne:ho,headingTwo:po,quote:mo,quoteOne:t=>_.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 8.00011H6C6.26522 8.00011 6.51957 8.10546 6.70711 8.293C6.89464 8.48054 7 8.73489 7 9.00011V13.0001C7 13.2653 6.89464 13.5197 6.70711 13.7072C6.51957 13.8947 6.26522 14.0001 6 14.0001H3C2.73478 14.0001 2.48043 13.8947 2.29289 13.7072C2.10536 13.5197 2 13.2653 2 13.0001V5.08211C2 3.90611 2.906 2.96211 4.538 2.11311C4.65448 2.05244 4.78177 2.0153 4.91261 2.00383C5.04344 1.99235 5.17525 2.00675 5.30052 2.04622C5.42579 2.08568 5.54205 2.14944 5.64268 2.23383C5.74331 2.31823 5.82633 2.42162 5.887 2.53811C5.94767 2.65459 5.9848 2.78188 5.99628 2.91271C6.00776 3.04355 5.99335 3.17536 5.95389 3.30063C5.91442 3.42589 5.85067 3.54216 5.76627 3.64279C5.68187 3.74342 5.57848 3.82644 5.462 3.88711C4.884 4.18711 4.469 4.47611 4.222 4.73411C4.054 4.90811 4 5.02011 4 5.08211V8.00011ZM13 8.00011C13.2652 8.00011 13.5196 8.10546 13.7071 8.293C13.8946 8.48054 14 8.73489 14 9.00011V9.5366C13.6143 9.60243 13.2536 9.7523 12.937 9.9445L12.9298 9.9489L12.4315 10.2608C11.9856 10.5357 11.5 11.0479 11.5 11.8252C11.5 12.5688 11.9611 13.2015 12.6323 13.4311V14.0001H10C9.73478 14.0001 9.48043 13.8947 9.29289 13.7072C9.10536 13.5197 9 13.2653 9 13.0001V5.08211C9 3.90611 9.906 2.96211 11.538 2.11311C11.6545 2.05244 11.7818 2.0153 11.9126 2.00383C12.0434 1.99235 12.1753 2.00675 12.3005 2.04622C12.4258 2.08568 12.5421 2.14944 12.6427 2.23383C12.7433 2.31823 12.8263 2.42162 12.887 2.53811C12.9477 2.65459 12.9848 2.78188 12.9963 2.91271C13.0078 3.04355 12.9934 3.17536 12.9539 3.30063C12.9144 3.42589 12.8507 3.54216 12.7663 3.64279C12.6819 3.74342 12.5785 3.82644 12.462 3.88711C11.884 4.18711 11.469 4.47611 11.222 4.73411C11.054 4.90811 11 5.02011 11 5.08211V8.00011H13ZM14.5428 15.4344C14.1182 15.4344 13.8823 15.1783 13.8823 14.7267V11.96H13.8722L13.6397 12.1082C13.4274 12.2329 13.3229 12.2734 13.1948 12.2734C12.9354 12.2734 12.75 12.0846 12.75 11.8252C12.75 11.6297 12.8646 11.4612 13.0904 11.323L13.5858 11.013C13.8688 10.8411 14.1587 10.7501 14.4249 10.7501C14.8933 10.7501 15.2 11.0635 15.2 11.5488V14.7267C15.2 15.1817 14.9641 15.4344 14.5428 15.4344Z"})),quoteTwo:t=>_.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},_.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 8.00015H6C6.26522 8.00015 6.51957 8.1055 6.70711 8.29304C6.89464 8.48058 7 8.73493 7 9.00015V13.0001C7 13.2654 6.89464 13.5197 6.70711 13.7073C6.51957 13.8948 6.26522 14.0001 6 14.0001H3C2.73478 14.0001 2.48043 13.8948 2.29289 13.7073C2.10536 13.5197 2 13.2654 2 13.0001V5.08215C2 3.90615 2.906 2.96215 4.538 2.11315C4.65448 2.05248 4.78177 2.01534 4.91261 2.00387C5.04344 1.99239 5.17525 2.00679 5.30052 2.04626C5.42579 2.08572 5.54205 2.14948 5.64268 2.23387C5.74331 2.31827 5.82633 2.42166 5.887 2.53815C5.94767 2.65463 5.9848 2.78192 5.99628 2.91275C6.00776 3.04359 5.99335 3.1754 5.95389 3.30067C5.91442 3.42593 5.85067 3.5422 5.76627 3.64283C5.68187 3.74346 5.57848 3.82648 5.462 3.88715C4.884 4.18715 4.469 4.47615 4.222 4.73415C4.054 4.90815 4 5.02015 4 5.08215V8.00015ZM13 8.00015C13.2652 8.00015 13.5196 8.1055 13.7071 8.29304C13.8946 8.48058 14 8.73493 14 9.00015V9.51812C13.4378 9.57694 12.9087 9.77735 12.4803 10.0918C11.9785 10.4601 11.5 11.0848 11.5 11.9043C11.5 12.3632 11.6772 12.8135 12.0264 13.1451C12.0604 13.1774 12.0955 13.208 12.1312 13.2369C11.9419 13.4409 11.7509 13.6922 11.6323 14.0001H10C9.73478 14.0001 9.48043 13.8948 9.29289 13.7073C9.10536 13.5197 9 13.2654 9 13.0001V5.08215C9 3.90615 9.906 2.96215 11.538 2.11315C11.6545 2.05248 11.7818 2.01534 11.9126 2.00387C12.0434 1.99239 12.1753 2.00679 12.3005 2.04626C12.4258 2.08572 12.5421 2.14948 12.6427 2.23387C12.7433 2.31827 12.8263 2.42166 12.887 2.53815C12.9477 2.65463 12.9848 2.78192 12.9963 2.91275C13.0078 3.04359 12.9934 3.1754 12.9539 3.30067C12.9144 3.42593 12.8507 3.5422 12.7663 3.64283C12.6819 3.74346 12.5785 3.82648 12.462 3.88715C11.884 4.18715 11.469 4.47615 11.222 4.73415C11.054 4.90815 11 5.02015 11 5.08215V8.00015H13ZM13.2256 15.1428C12.8903 15.1428 12.6626 14.9404 12.6626 14.6432C12.6626 14.4218 12.7891 14.2257 13.1591 13.8779L14.1616 12.907C14.4937 12.5876 14.6391 12.3789 14.6391 12.1607C14.6391 11.9045 14.4526 11.7337 14.1806 11.7337C13.9687 11.7337 13.8169 11.8255 13.6556 12.0532C13.4785 12.2872 13.3457 12.3694 13.1402 12.3694C12.8524 12.3694 12.65 12.1765 12.65 11.9045C12.65 11.2973 13.371 10.7502 14.247 10.7502C15.1546 10.7502 15.825 11.2973 15.825 12.0373C15.825 12.4959 15.5879 12.926 15.0787 13.3908L14.2881 14.1245V14.172H15.4203C15.765 14.172 15.98 14.3585 15.98 14.6621C15.98 14.9626 15.7713 15.1428 15.4203 15.1428H13.2256Z"})),link:Br,imageRegular:xo,imageWide:_o,imageFull:vo,imageReplace:wo,add:yo,edit:t=>_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},_.createElement("path",{d:"M16.19 3.51a.51.51 0 0 0-.71 0L4.07 14.92a.5.5 0 0 0 0 .71l4.28 4.28a.48.48 0 0 0 .7 0L20.47 8.5a.51.51 0 0 0 0-.71ZM3 16.71a.51.51 0 0 0-.47-.13.48.48 0 0 0-.36.33L0 23.33a.49.49 0 0 0 .12.51.5.5 0 0 0 .54.16l6.42-2.14a.52.52 0 0 0 .33-.36.49.49 0 0 0-.14-.5ZM23 1a3.6 3.6 0 0 0-5 0l-.71.71a.5.5 0 0 0 0 .71l4.28 4.28a.51.51 0 0 0 .7 0L23 6a3.53 3.53 0 0 0 0-5Z"})),snippet:Hn};function na({children:t,...e}){return f("ul",{className:"m-0 relative flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white after:absolute after:top-[36px] after:left-[calc(50%-8px)] after:w-0 after:border-t-8 after:border-t-black after:border-x-8 after:border-x-transparent",...e,children:t})}function Fe({label:t,isActive:e,onClick:n,icon:r,...i}){const o=Vu[r];return f("li",{className:"m-0 flex p-0 first:m-0",...i,children:f("button",{type:"button",className:"flex h-9 w-9 items-center justify-center",onClick:n,"aria-label":t,"data-kg-active":e,children:f(o,{className:e?"fill-green":"fill-white"})})})}function Pi(){return f("li",{className:"m-0 mx-1 h-5 w-px bg-grey-900"})}function ju({isVisible:t,children:e,...n}){if(t)return f("div",{className:"not-kg-prose absolute top-[-44px] left-1/2 -translate-x-1/2 z-[1000]",...n,children:e})}async function Gu(t){const e=new Image;return e.src=t,new Promise((n,r)=>{e.onload=()=>{n({width:e.naturalWidth,height:e.naturalHeight})},e.onerror=r})}const Fi=async(t,e,n,r)=>{if(!t)return;let i=URL.createObjectURL(t[0]);i&&await n.update(()=>{w.$getNodeByKey(e).setPreviewSrc(i)});const{width:o,height:l}=await Gu(i),s=await r.imageUploader(t);await n.update(()=>{const a=w.$getNodeByKey(e);a.setImgWidth(o),a.setImgHeight(l),a.setSrc(s.src)})};function Zu({nodeKey:t,src:e,altText:n,caption:r,triggerFileDialog:i,previewSrc:o}){const[l]=ge.useLexicalComposerContext(),[s,a]=S.default.useState(!1),{imageUploader:c}=S.default.useContext(Cr),{isSelected:d,cardWidth:u,setCardWidth:g}=S.default.useContext(Gs),m=S.default.useRef(),h=S.default.useRef(),v=async k=>{const O=k.target.files;return await Fi(O,t,l,c)},C=k=>{l.update(()=>{w.$getNodeByKey(t).setCaption(k)})},N=k=>{l.update(()=>{w.$getNodeByKey(t).setAltText(k)})};S.default.useEffect(()=>{if(!i)return;const k=setTimeout(()=>{Er({fileInputRef:m}),l.update(()=>{w.$getNodeByKey(t).setTriggerFileDialog(!1)})});return()=>{clearTimeout(k)}});const p=k=>{l.update(()=>{w.$getNodeByKey(t).setCardWidth(k),g(k)})},x=k=>{k.preventDefault(),k.stopPropagation(),k.type==="dragenter"||k.type==="dragover"?a(!0):k.type==="dragleave"&&a(!1)},T=async k=>{if(k.preventDefault(),k.stopPropagation(),k.dataTransfer.files&&k.dataTransfer.files[0]){const O=k.dataTransfer.files;O&&(a(!1),await Fi(O,t,l,c))}},E=(c==null?void 0:c.uploadProgress)||0;return V(Xt,{children:[f(ta,{isSelected:d,fileInputRef:m,onFileChange:v,src:e,altText:n,setAltText:N,caption:r,setCaption:C,handleDrag:x,handleDrop:T,isDraggedOver:s,cardWidth:u,previewSrc:o,uploadProgress:E}),V(ju,{isVisible:e&&d,"data-kg-card-toolbar":"image",children:[f(ea,{onFileChange:v,fileInputRef:h}),V(na,{children:[f(Fe,{label:"Regular",icon:"imageRegular",isActive:u==="regular",onClick:()=>p("regular")}),f(Fe,{label:"Wide",icon:"imageWide",isActive:u==="wide",onClick:()=>p("wide")}),f(Fe,{label:"Full",icon:"imageFull",isActive:u==="full",onClick:()=>p("full")}),f(Pi,{}),f(Fe,{label:"Link",icon:"link",isActive:!1}),f(Fe,{label:"Replace",icon:"imageReplace",isActive:!1,onClick:()=>Er({fileInputRef:h})}),f(Pi,{}),f(Fe,{label:"Snippet",icon:"snippet",isActive:!1})]})]})]})}const zi=w.createCommand();w.createCommand();function Ju(t){if(t instanceof HTMLImageElement){const{alt:e,src:n}=t;return{node:Nr({altText:e,src:n})}}return null}const lo=class extends w.DecoratorNode{constructor({src:n,caption:r,altText:i,cardWidth:o,triggerFileDialog:l,width:s,height:a,previewSrc:c}={},d){super(d);Se(this,"__src");Se(this,"__caption");Se(this,"__altText");Se(this,"__cardWidth");Se(this,"__width");Se(this,"__height");Se(this,"__triggerFileDialog",!1);Se(this,"__previewSrc",null);this.__caption=r||"",this.__altText=i||"",this.__src=n||"",this.__previewSrc=c||"",this.__cardWidth=o||"regular",this.__triggerFileDialog=l||!1,this.__width=s||null,this.__height=a||null}static getType(){return"image"}static clone(n){return new lo({src:n.__src,caption:n.__caption,altText:n.__altText,cardWidth:n.__cardWidth,width:n.__width,height:n.__height},n.__key)}static importJSON(n){const{caption:r,altText:i,src:o,cardWidth:l,width:s,height:a}=n;return Nr({altText:i,caption:r,src:o,cardWidth:l,width:s,height:a})}exportDOM(){const n=document.createElement("figure"),r=document.createElement("img"),i=document.createElement("figcaption");return r.src=this.getSrc(),i.innerHTML=this.getCaption(),n.appendChild(r),n.appendChild(i),{element:n}}static importDom(){return{img:(n=Node)=>({conversion:Ju,priority:1})}}exportJSON(){const r=this.getSrc().startsWith("data:");return{altText:this.getAltText(),caption:this.getCaption(),src:r?"<base64String>":this.getSrc(),type:"image",cardWidth:this.getCardWidth(),width:this.getImgWidth(),height:this.getImgHeight()}}createDOM(){return document.createElement("div")}updateDOM(){return!1}isInline(){return!1}getSrc(){return this.__src}setSrc(n){const r=this.getWritable();return r.__src=n}getPreviewSrc(){return this.__previewSrc}setPreviewSrc(n){const r=this.getWritable();return r.__previewSrc=n}setCardWidth(n){const r=this.getWritable();return r.__cardWidth=n}getCardWidth(){return this.__cardWidth}getImgWidth(){return this.__width}setImgWidth(n){const r=this.getWritable();return r.__width=n}getImgHeight(){return this.__height}setImgHeight(n){const r=this.getWritable();return r.__height=n}getCaption(){return this.__caption}setCaption(n){const r=this.getWritable();return r.__caption=n}getAltText(){return this.__altText}setAltText(n){const r=this.getWritable();return r.__altText=n}setTriggerFileDialog(n){const r=this.getWritable();return r.__triggerFileDialog=n}decorate(){return f(Di,{nodeKey:this.getKey(),width:this.__cardWidth,children:f(Zu,{nodeKey:this.getKey(),src:this.__src,altText:this.__altText,caption:this.__caption,triggerFileDialog:this.__triggerFileDialog,previewSrc:this.getPreviewSrc()})})}};let je=lo;Se(je,"kgMenu",{label:"Image",desc:"Upload, or embed with /image [url]",Icon:Co,insertCommand:zi,insertParams:{triggerFileDialog:!0},matches:["image","img"],queryParams:["src"]}),Se(je,"extensionTypes",["gif","jpg","jpeg","png","svg","svgz","webp"]),Se(je,"mimeTypes",["image/gif","image/jpg","image/jpeg","image/png","image/svg+xml","image/webp"]);const Nr=t=>(t.src&&delete t.triggerFileDialog,new je(t));function Xu(t){return t instanceof je}const ra=[et.HeadingNode,Xe.ListNode,Xe.ListItemNode,et.QuoteNode,yr,Ai.LinkNode,jt,Ct,je],Qu={paragraph:void 0,heading:{h1:void 0,h2:void 0,h3:void 0,h4:void 0,h5:void 0,h6:void 0},quote:void 0,aside:void 0,list:{nested:{listitem:"!list-none"},ol:void 0,ul:void 0,listitem:void 0},link:void 0,text:{bold:void 0,italic:"italic",overflowed:void 0,hashtag:void 0,underline:void 0,strikethrough:void 0,underlinestrikethrough:void 0,code:void 0},code:void 0};function qu(t){console.error(t)}const eg={namespace:"KoenigEditor",theme:Qu},tg=({initialEditorState:t,nodes:e=[...ra],onError:n=qu,imageUploadFunction:r,children:i})=>{const o=S.default.useMemo(()=>Object.assign({},eg,{nodes:e,editorState:t,onError:n}),[t,e,n]),l=S.default.useRef(null),s=r||function(){console.error("requires imageUploadFunction to be passed to KoenigComposer component, eg <KoenigComposer imageUploadFunction={function} />")};return f(Qd.LexicalComposer,{initialConfig:o,children:f(Cr.Provider,{value:{imageUploader:s,editorContainerRef:l},children:i})})};var ia={},dt={},De=w;function Bi(t,e=!0){return t?!1:(t=oa(),e&&(t=t.trim()),t==="")}function oa(){return De.$getRoot().getTextContent()}function la(t,e){if(!e||!Bi(t,!1)||(t=De.$getRoot().getChildren(),e=t.length,1<e))return!1;for(let r=0;r<e;r++){var n=t[r];if(De.$isElementNode(n)){if(n.__type!=="paragraph"||n.__indent!==0)return!1;n=n.getChildren();let i=n.length;for(let o=0;o<i;o++)if(!De.$isTextNode(n[r]))return!1}}return!0}dt.$canShowPlaceholder=la,dt.$canShowPlaceholderCurry=function(t,e){return()=>la(t,e)},dt.$findTextIntersectionFromCharacters=function(t,e){var n=t.getFirstChild();t=0;e:for(;n!==null;){if(De.$isElementNode(n)){var r=n.getFirstChild();if(r!==null){n=r;continue}}else if(De.$isTextNode(n)){if(r=n.getTextContentSize(),t+r>e)return{node:n,offset:e-t};t+=r}if(r=n.getNextSibling(),r!==null)n=r;else{for(n=n.getParent();n!==null;){if(r=n.getNextSibling(),r!==null){n=r;continue e}n=n.getParent()}break}}return null},dt.$isRootTextContentEmpty=Bi,dt.$isRootTextContentEmptyCurry=function(t,e){return()=>Bi(t,e)},dt.$rootTextContent=oa,dt.registerLexicalTextEntity=function(t,e,n,r){let i=l=>{const s=De.$createTextNode(l.getTextContent());s.setFormat(l.getFormat()),l.replace(s)},o=t.registerNodeTransform(De.TextNode,l=>{if(l.isSimpleText()){var s=l.getPreviousSibling(),a=l.getTextContent(),c=l;if(De.$isTextNode(s)){var d=s.getTextContent(),u=e(d+a);if(s instanceof n){if(u===null||s.getLatest().__mode!==0){i(s);return}if(u=u.end-d.length,0<u){c=a.slice(0,u),c=d+c,s.select(),s.setTextContent(c),u===a.length?l.remove():(s=a.slice(u),l.setTextContent(s));return}}else if(u===null||u.start<d.length)return}for(;;){if(l=e(a),a=u=l===null?"":a.slice(l.end),u===""){if(d=c.getNextSibling(),De.$isTextNode(d)){if(u=c.getTextContent()+d.getTextContent(),u=e(u),u===null){d instanceof n?i(d):d.markDirty();break}else if(u.start!==0)break}}else if(d=e(u),d!==null&&d.start===0)break;if(l===null)break;if(l.start===0&&De.$isTextNode(s)&&s.isTextEntity())continue;let g;if(l.start===0?[g,c]=c.splitText(l.end):[,g,c]=c.splitText(l.start,l.end),l=r(g),g.replace(l),c==null)break}}});return t=t.registerNodeTransform(n,l=>{var s=l.getTextContent();const a=e(s);a===null||a.start!==0?i(l):s.length>a.end?l.splitText(a.end):(s=l.getPreviousSibling(),De.$isTextNode(s)&&s.isTextEntity()&&(i(s),i(l)),s=l.getNextSibling(),De.$isTextNode(s)&&s.isTextEntity()&&(i(s),l instanceof n&&i(l)))}),[o,t]};var ng=dt,sa={},Tr=w;sa.registerDragonSupport=function(t){let e=n=>{var r=t.getRootElement();if(document.activeElement===r&&(r=n.data,typeof r=="string")){try{var i=JSON.parse(r)}catch{return}if(i&&i.protocol==="nuanria_messaging"&&i.type==="request"&&(i=i.payload)&&i.functionId==="makeChanges"&&(i=i.args)){const[o,l,s,a,c]=i;t.update(()=>{const d=Tr.$getSelection();if(Tr.$isRangeSelection(d)){var u=d.anchor;let g=u.getNode(),m=0,h=0;Tr.$isTextNode(g)&&0<=o&&0<=l&&(m=o,h=o+l,d.setTextNodeRange(g,m,g,h)),(m!==h||s!=="")&&(d.insertRawText(s),g=u.getNode()),Tr.$isTextNode(g)&&(m=a,h=a+c,u=g.getTextContentSize(),m=m>u?u:m,h=h>u?u:h,d.setTextNodeRange(g,m,g,h)),n.stopImmediatePropagation()}})}}};return window.addEventListener("message",e,!0),()=>{window.removeEventListener("message",e,!0)}};var rg=sa,ig=ge,ze=S.default,og=ng,aa=_e,ca=Sc.default,lg=rg,sg=et,Hi=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ze.useLayoutEffect:ze.useEffect;function da(t){return t.getEditorState().read(og.$canShowPlaceholderCurry(t.isComposing(),t.isEditable()))}function ag(t){let[e,n]=ze.useState(()=>da(t));return Hi(()=>{function r(){let i=da(t);n(i)}return r(),aa.mergeRegister(t.registerUpdateListener(()=>{r()}),t.registerEditableListener(()=>{r()}))},[t]),e}function cg(t,e){let[n,r]=ze.useState(()=>t.getDecorators());return Hi(()=>t.registerDecoratorListener(i=>{ca.flushSync(()=>{r(i)})}),[t]),ze.useEffect(()=>{r(t.getDecorators())},[t]),ze.useMemo(()=>{let i=[],o=Object.keys(n);for(let s=0;s<o.length;s++){var l=o[s];let a=ze.createElement(e,{onError:c=>t._onError(c)},ze.createElement(ze.Suspense,{fallback:null},n[l]));l=t.getElementByKey(l),l!==null&&i.push(ca.createPortal(a,l))}return i},[e,n,t])}function dg(t){Hi(()=>aa.mergeRegister(sg.registerRichText(t),lg.registerDragonSupport(t)),[t])}ia.RichTextPlugin=function({contentEditable:t,placeholder:e,ErrorBoundary:n}){let[r]=ig.useLexicalComposerContext(),i=ag(r);return n=cg(r,n),dg(r),ze.createElement(ze.Fragment,null,t,i&&e,n)};var ug=ia,gg=td(ad).jsx,Sr=S.default;function Ki(t,e){return Ki=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ki(t,e)}function fg(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ki(t,e)}function hg(t,e){return t===void 0&&(t=[]),e===void 0&&(e=[]),t.length!==e.length||t.some(function(n,r){return!Object.is(n,e[r])})}var ua={error:null},pg=function(t){function e(){for(var r,i=arguments.length,o=Array(i),l=0;l<i;l++)o[l]=arguments[l];return r=t.call.apply(t,[this].concat(o))||this,r.state=ua,r.resetErrorBoundary=function(){for(var s,a=arguments.length,c=Array(a),d=0;d<a;d++)c[d]=arguments[d];r.props.onReset==null||(s=r.props).onReset.apply(s,c),r.reset()},r}fg(e,t),e.getDerivedStateFromError=function(r){return{error:r}};var n=e.prototype;return n.reset=function(){this.setState(ua)},n.componentDidCatch=function(r,i){var o,l;(o=(l=this.props).onError)==null||o.call(l,r,i)},n.componentDidUpdate=function(r,i){var o=this.props.resetKeys;if(this.state.error!==null&&i.error!==null&&hg(r.resetKeys,o)){var l,s;(l=(s=this.props).onResetKeysChange)==null||l.call(s,r.resetKeys,o),this.reset()}},n.render=function(){var r=this.state.error,i=this.props,o=i.fallbackRender,l=i.FallbackComponent;if(i=i.fallback,r!==null){if(r={error:r,resetErrorBoundary:this.resetErrorBoundary},Sr.isValidElement(i))return i;if(typeof o=="function")return o(r);if(l)return Sr.createElement(l,r);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},e}(Sr.Component),mg=function({children:t,onError:e}){return Sr.createElement(pg,{fallback:gg("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:e},t)},xg=mg,ga={},_g=ge,An=S.default,vg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?An.useLayoutEffect:An.useEffect;ga.ContentEditable=function({ariaActiveDescendantID:t,ariaAutoComplete:e,ariaControls:n,ariaDescribedBy:r,ariaExpanded:i,ariaLabel:o,ariaLabelledBy:l,ariaMultiline:s,ariaOwneeID:a,ariaRequired:c,autoCapitalize:d,autoComplete:u,autoCorrect:g,className:m,id:h,role:v="textbox",spellCheck:C=!0,style:N,tabIndex:p,testid:x}){let[T]=_g.useLexicalComposerContext(),[E,k]=An.useState(!1),O=An.useCallback(D=>{T.setRootElement(D)},[T]);return vg(()=>(k(T.isEditable()),T.registerEditableListener(D=>{k(D)})),[T]),An.createElement("div",{"aria-activedescendant":E?t:null,"aria-autocomplete":E?e:null,"aria-controls":E?n:null,"aria-describedby":r,"aria-expanded":E&&v==="combobox"?!!i:null,"aria-label":o,"aria-labelledby":l,"aria-multiline":s,"aria-owns":E?a:null,"aria-required":c,autoCapitalize:d!==void 0?String(d):void 0,autoComplete:u,autoCorrect:g!==void 0?String(g):void 0,className:m,contentEditable:E,"data-testid":x,id:h,ref:O,role:E?v:void 0,spellCheck:C,style:N,tabIndex:p})};var wg=ga,Wi={},Ui={},yg=_e,X=w;function kg(t,e,n,r,i){if(t===null||n.size===0&&r.size===0&&!i)return 0;var o=e._selection,l=t._selection;if(i)return 1;if(!(X.$isRangeSelection(o)&&X.$isRangeSelection(l)&&l.isCollapsed()&&o.isCollapsed()))return 0;i=e._nodeMap;let s=[];for(let a of n)n=i.get(a),n!==void 0&&s.push(n);for(let[a,c]of r)c&&(r=i.get(a),r===void 0||X.$isRootNode(r)||s.push(r));return s.length===0?0:1<s.length?(r=e._nodeMap,e=r.get(o.anchor.key),l=r.get(l.anchor.key),e&&l&&!t._nodeMap.has(e.__key)&&X.$isTextNode(e)&&e.__text.length===1&&o.anchor.offset===1?2:0):(e=s[0],t=t._nodeMap.get(e.__key),!X.$isTextNode(t)||!X.$isTextNode(e)||t.__mode!==e.__mode||(t=t.__text,e=e.__text,t===e)||(o=o.anchor,l=l.anchor,o.key!==l.key||o.type!=="text")?0:(o=o.offset,l=l.offset,t=e.length-t.length,t===1&&l===o-1?2:t===-1&&l===o+1?3:t===-1&&l===o?4:0))}function Cg(t,e){let n=Date.now(),r=0;return(i,o,l,s,a,c)=>{let d=Date.now();if(c.has("historic"))return r=0,n=d,2;let u=kg(i,o,s,a,t.isComposing()),g=(()=>{var m=l===null||l.editor===t,h=c.has("history-push");if(!h&&m&&c.has("history-merge"))return 0;if(i===null)return 1;const v=o._selection,C=i._selection;return 0<s.size||0<a.size?h===!1&&u!==0&&u===r&&d<n+e&&m||s.size===1&&(h=Array.from(s)[0],m=i._nodeMap.get(h),h=o._nodeMap.get(h),m=X.$isTextNode(m)&&X.$isTextNode(h)?m.__type===h.__type&&m.__text===h.__text&&m.__mode===h.__mode&&m.__detail===h.__detail&&m.__style===h.__style&&m.__format===h.__format&&m.__parent===h.__parent:!1,m)?0:1:C===null&&v!==null?0:2})();return n=d,r=u,g}}Ui.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},Ui.registerHistory=function(t,e,n){let r=Cg(t,n);n=({editorState:l,prevEditorState:s,dirtyLeaves:a,dirtyElements:c,tags:d})=>{const u=e.current,g=e.redoStack,m=e.undoStack,h=u===null?null:u.editorState;if(u===null||l!==h){if(a=r(s,l,u,a,c,d),a===1)g.length!==0&&(e.redoStack=[]),u!==null&&(m.push({...u,undoSelection:s.read(X.$getSelection)}),t.dispatchCommand(X.CAN_UNDO_COMMAND,!0));else if(a===2)return;e.current={editor:t,editorState:l}}};let i=yg.mergeRegister(t.registerCommand(X.UNDO_COMMAND,()=>{let l=e.redoStack,s=e.undoStack;if(s.length!==0){let a=e.current,c=s.pop();a!==null&&(l.push(a),t.dispatchCommand(X.CAN_REDO_COMMAND,!0)),s.length===0&&t.dispatchCommand(X.CAN_UNDO_COMMAND,!1),e.current=c||null,c&&c.editor.setEditorState(c.editorState.clone(c.undoSelection),{tag:"historic"})}return!0},X.COMMAND_PRIORITY_EDITOR),t.registerCommand(X.REDO_COMMAND,()=>{let l=e.redoStack;var s=e.undoStack;if(l.length!==0){let a=e.current;a!==null&&(s.push(a),t.dispatchCommand(X.CAN_UNDO_COMMAND,!0)),s=l.pop(),l.length===0&&t.dispatchCommand(X.CAN_REDO_COMMAND,!1),e.current=s||null,s&&s.editor.setEditorState(s.editorState,{tag:"historic"})}return!0},X.COMMAND_PRIORITY_EDITOR),t.registerCommand(X.CLEAR_EDITOR_COMMAND,()=>(e.undoStack=[],e.redoStack=[],e.current=null,!1),X.COMMAND_PRIORITY_EDITOR),t.registerCommand(X.CLEAR_HISTORY_COMMAND,()=>(e.undoStack=[],e.redoStack=[],e.current=null,t.dispatchCommand(X.CAN_REDO_COMMAND,!1),t.dispatchCommand(X.CAN_UNDO_COMMAND,!1),!0),X.COMMAND_PRIORITY_EDITOR),t.registerUpdateListener(n)),o=t.registerUpdateListener(n);return()=>{i(),o()}};var Eg=Ui,Ng=ge,Yi=Eg,fa=S.default;function Tg(t,e,n=1e3){let r=fa.useMemo(()=>e||Yi.createEmptyHistoryState(),[e]);fa.useEffect(()=>Yi.registerHistory(t,r,n),[n,t,r])}Wi.createEmptyHistoryState=Yi.createEmptyHistoryState,Wi.HistoryPlugin=function({externalHistoryState:t}){let[e]=Ng.useLexicalComposerContext();return Tg(e,t),null};var Sg=Wi,ha={},bg=ge,pa=S.default,Og=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?pa.useLayoutEffect:pa.useEffect;ha.OnChangePlugin=function({ignoreHistoryMergeTagChange:t=!0,ignoreSelectionChange:e=!1,onChange:n}){let[r]=bg.useLexicalComposerContext();return Og(()=>{if(n)return r.registerUpdateListener(({editorState:i,dirtyElements:o,dirtyLeaves:l,prevEditorState:s,tags:a})=>{e&&o.size===0&&l.size===0||t&&a.has("history-merge")||s.isEmpty()||n(i,r)})},[r,t,e,n]),null};var Rg=ha,ma={},Be=Xe,$g=ge,xa=S.default,Ag=_e,nt=w;function Mg(t){xa.useEffect(()=>Ag.mergeRegister(t.registerCommand(nt.INDENT_CONTENT_COMMAND,()=>(Be.indentList(),!1),nt.COMMAND_PRIORITY_LOW),t.registerCommand(nt.OUTDENT_CONTENT_COMMAND,()=>(Be.outdentList(),!1),nt.COMMAND_PRIORITY_LOW),t.registerCommand(Be.INSERT_ORDERED_LIST_COMMAND,()=>(Be.insertList(t,"number"),!0),nt.COMMAND_PRIORITY_LOW),t.registerCommand(Be.INSERT_UNORDERED_LIST_COMMAND,()=>(Be.insertList(t,"bullet"),!0),nt.COMMAND_PRIORITY_LOW),t.registerCommand(Be.REMOVE_LIST_COMMAND,()=>(Be.removeList(t),!0),nt.COMMAND_PRIORITY_LOW),t.registerCommand(nt.INSERT_PARAGRAPH_COMMAND,()=>!!Be.$handleListInsertParagraph(),nt.COMMAND_PRIORITY_LOW)),[t])}ma.ListPlugin=function(){let[t]=$g.useLexicalComposerContext();return xa.useEffect(()=>{if(!t.hasNodes([Be.ListNode,Be.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),Mg(t),null};var Lg=ma;const _a=10;function Ge(t){const e=w.$createNodeSelection();e.add(t.getKey()),w.$setSelection(e)}function va(t){t.nodeType===Node.TEXT_NODE&&(t=t.parentNode);const e="[data-lexical-editor] > *";return t.closest(e)}function Dg({editor:t,containerElem:e}){return S.default.useEffect(()=>{const n=r=>{e.current.contains(r.target)||t.update(()=>{const i=w.$getSelection();w.$isNodeSelection(i)&&w.$setSelection(null)})};return window.addEventListener("mousedown",n),()=>{window.removeEventListener("mousedown",n)}},[t,e]),S.default.useEffect(()=>_e.mergeRegister(t.registerCommand(w.KEY_ARROW_UP_COMMAND,()=>{const n=w.$getSelection();if(w.$isNodeSelection(n)){const i=n.getNodes()[0].getPreviousSibling();if(!i)return!0;if(w.$isDecoratorNode(i))return Ge(i),!0}if(w.$isRangeSelection(n)&&n.isCollapsed){const r=n.anchor.getNode().getTopLevelElement(),i=window.getSelection(),o=(r==null?void 0:r.getTextContent().trim())===""&&n.anchor.offset===0,l=n.anchor.offset===0&&n.focus.offset===0;if(o||l){const s=r.getPreviousSibling();if(w.$isDecoratorNode(s))return Ge(s),!0}else{const a=i.getRangeAt(0).cloneRange().getClientRects();if(a.length>0){const c=a[1]||a[0],u=va(i.anchorNode).getBoundingClientRect();if(Math.abs(c.top-u.top)<=_a){const m=r.getPreviousSibling();if(w.$isDecoratorNode(m))return Ge(m),!0}}}}return!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_DOWN_COMMAND,()=>{const n=w.$getSelection();if(w.$isNodeSelection(n)){const i=n.getNodes()[0].getNextSibling();if(w.$isDecoratorNode(i))return Ge(i),!0}if(w.$isRangeSelection(n)&&n.isCollapsed){const r=n.anchor.getNode().getTopLevelElement(),i=window.getSelection(),o=va(i.anchorNode),l=(r==null?void 0:r.getTextContent().trim())===""&&n.anchor.offset===0,s=i.rangeCount!==0&&i.anchorNode===o&&i.anchorOffset===o.children.length-1&&i.focusOffset===o.children.length-1;if(l||s){const a=r.getNextSibling();if(w.$isDecoratorNode(a))return Ge(a),!0}else{const c=i.getRangeAt(0).cloneRange().getClientRects();if(c.length>0){const d=c[0],u=o.getBoundingClientRect();if(Math.abs(d.bottom-u.bottom)<_a){const g=r.getNextSibling();if(w.$isDecoratorNode(g))return Ge(g),!0}}}}return!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_LEFT_COMMAND,n=>{const r=w.$getSelection();if(!w.$isNodeSelection(r))return!1;const l=r.getNodes()[0].getTopLevelElement().getPreviousSibling();return w.$isDecoratorNode(l)?(n.preventDefault(),Ge(l),!0):!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_RIGHT_COMMAND,n=>{const r=w.$getSelection();if(!w.$isNodeSelection(r))return!1;const i=r.getNodes(),s=i[i.length-1].getTopLevelElement().getNextSibling();return w.$isDecoratorNode(s)?(n.preventDefault(),Ge(s),!0):!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_BACKSPACE_COMMAND,n=>{const r=w.$getSelection();if(w.$isNodeSelection(r))return!1;if(w.$isRangeSelection(r)&&r.isCollapsed){const o=r.anchor.getNode(),l=o.getTopLevelElement(),s=l.getPreviousSibling(),a=r.anchor.offset===0&&r.focus.offset===0;if(a&&Xe.$isListItemNode(o)&&o.getIndent()===0&&o.isEmpty())return n.preventDefault(),t.dispatchCommand(w.INSERT_PARAGRAPH_COMMAND),!0;if(w.$isParagraphNode(o)&&o.isEmpty()&&w.$isDecoratorNode(s))return l.remove(),Ge(s),!0;if(a&&Xe.$isListItemNode(o.getParent())){const c=o.getParent();if(c.getIndent()===0){n.preventDefault();const d=w.$createParagraphNode();return d.append(...c.getChildren()),c.replace(d),!0}}if(a&&w.$isDecoratorNode(s))return n.preventDefault(),s.remove(),!0}return!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_DELETE_COMMAND,n=>{const r=w.$getSelection();if(w.$isNodeSelection(r))return!1;if(w.$isRangeSelection(r)&&r.isCollapsed){const i=r.anchor,o=i.getNode(),l=o.getTopLevelElement(),s=l.getNextSibling();if((l==null?void 0:l.getTextContent().trim())===""&&r.anchor.offset===0&&w.$isDecoratorNode(s))return n.preventDefault(),l.remove(),Ge(s),!0;if((i.type==="element"&&w.$isElementNode(o)&&i.offset===o.getChildrenSize()||i.type==="text"&&i.offset===o.getTextContentSize())&&w.$isDecoratorNode(s))return n.preventDefault(),s.remove(),!0}return!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.PASTE_COMMAND,n=>{var s;const r=(s=n==null?void 0:n.clipboardData)==null?void 0:s.getData("text"),i=r==null?void 0:r.match(/^(https?:\/\/[^\s]+)$/),o=w.$getSelection(),l=o.getTextContent();if(i&&l.length>0){const a=i[1];if(w.$isRangeSelection(o)){const c=o.extract()[0],d=Ai.$createLinkNode(a),u=w.$createTextNode(l);u.setFormat(c.getFormat()),d.append(u),c.replace(d)}return!0}},w.COMMAND_PRIORITY_HIGH))),null}function wa({containerElem:t=document.querySelector(".koenig-editor")}){const[e]=ge.useLexicalComposerContext();return Dg({editor:e,containerElem:t})}var Q={},re={},ya={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
30
+ `),i=a.length,s=i-n;let c=a.slice(0,s);if(!F.$isTextNode(r)||n>=i)s=r.getParent(),r.remove(),s!=null&&s.getChildrenSize()===0&&s.remove(),n-=i+l,r=o;else{let d=r.getKey();o=t.getEditorState().read(()=>{const u=F.$getNodeByKey(d);return F.$isTextNode(u)&&u.isSimpleText()?u.getTextContent():null}),o!==null&&o!==a?(n=F.$getPreviousSelection(),i=r,r.isSimpleText()?r.setTextContent(o):(i=F.$createTextNode(o),r.replace(i)),F.$isRangeSelection(n)&&n.isCollapsed()&&(n=n.anchor.offset,i.select(n,n))):r.isSimpleText()?(o=e.key===d,l=e.offset,l<n&&(l=i),n=o?l-n:0,i=o?l:s,o&&n===0?([n]=r.splitText(n,i),n.remove()):([,n]=r.splitText(n,i),n.remove())):(n=F.$createTextNode(c),r.replace(n)),n=0}}};var Ge=de,Ks=Ge,Jt=w;function Ws(t,e,n,r=null){let i=r!=null?e.isSelected():!0,o=Jt.$isElementNode(e)&&e.excludeFromCopy("html");var l=e;r!==null&&(l=Ks.$cloneWithProperties(e),l=Jt.$isTextNode(l)&&r!=null?Ks.$sliceSelectedTextNodeContent(r,l):l);let s=Jt.$isElementNode(l)?l.getChildren():[],{element:a,after:c}=l.exportDOM(t);if(!a)return!1;let d=new DocumentFragment;for(let u=0;u<s.length;u++){let g=s[u],m=Ws(t,g,d,r);!i&&Jt.$isElementNode(e)&&m&&e.extractWithChild(g,r,"html")&&(i=!0)}return i&&!o?(a.append(d),n.append(a),c&&(t=c.call(l,a))&&a.replaceWith(t)):n.append(d),i}let Us=new Set(["STYLE"]);function js(t,e,n=new Map,r,i=!1){let o=[];if(Us.has(t.nodeName))return o;let l=null;var{nodeName:s}=t,a=e._htmlConversions.get(s.toLowerCase());if(s=null,a!==void 0)for(c of a)a=c(t),a!==null&&(s===null||s.priority<a.priority)&&(s=a);var c=(c=s!==null?s.conversion:null)?c(t,void 0,i):null;if(s=null,c!==null){if(s=c.after,l=c.node,l!==null){for(var[,d]of n)if(l=d(l,r),!l)break;l&&o.push(l)}c.forChild!=null&&n.set(t.nodeName,c.forChild)}for(t=t.childNodes,r=[],d=0;d<t.length;d++)r.push(...js(t[d],e,new Map(n),l,i||(c&&c.preformatted)===!0));return s!=null&&(r=s(r)),l==null?o=o.concat(r):Jt.$isElementNode(l)&&l.append(...r),o}Ii.$generateHtmlFromNodes=function(t,e){if(typeof document>"u"||typeof window>"u")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"),r=Jt.$getRoot().getChildren();for(let i=0;i<r.length;i++)Ws(t,r[i],n,e);return n.innerHTML},Ii.$generateNodesFromDOM=function(t,e){let n=[];e=e.body?Array.from(e.body.childNodes):[];let r=e.length;for(let o=0;o<r;o++){var i=e[o];Us.has(i.nodeName)||(i=js(i,t),i!==null&&(n=n.concat(i)))}return n};var bu=Ii,Ys=bu,Vs=Qe,Fi=Ge,In=me,z=w;function tt(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Gs(t){let e=z.$getSelection();if(e==null)throw Error("Expected valid LexicalSelection");return z.$isRangeSelection(e)&&e.isCollapsed()||e.getNodes().length===0?"":Ys.$generateHtmlFromNodes(t,e)}function Zs(t){let e=z.$getSelection();if(e==null)throw Error("Expected valid LexicalSelection");return z.$isRangeSelection(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(Xs(t,e))}function zi(t,e,n){(z.DEPRECATED_$isGridSelection(n)||In.$findMatchingParent(n.anchor.getNode(),r=>z.DEPRECATED_$isGridCellNode(r))!==null&&In.$findMatchingParent(n.focus.getNode(),r=>z.DEPRECATED_$isGridCellNode(r))!==null)&&e.length===1&&z.DEPRECATED_$isGridNode(e[0])?Ou(e,n,!1,t):Ru(e,n)}function Ru(t,e){let n=[],r=null,i=null;for(let o=0;o<t.length;o++){let l=t[o];if(Vs.$isListItemNode(l)){i==null&&(i=Vs.$createListNode("bullet"),n.push(i)),i.append(l);continue}else i!=null&&(i=null);let s=z.$isLineBreakNode(l);if(s||z.$isDecoratorNode(l)&&l.isInline()||z.$isElementNode(l)&&l.isInline()||z.$isTextNode(l)){if(r===null&&(r=z.$createParagraphNode(),n.push(r),s))continue;r!==null&&r.append(l)}else n.push(l),r=null}z.$isRangeSelection(e)?e.insertNodes(n):z.DEPRECATED_$isGridSelection(e)&&(t=e.anchor.getNode(),z.DEPRECATED_$isGridCellNode(t)||tt(41),t.append(...n))}function Ou(t,e,n,r){t.length===1&&z.DEPRECATED_$isGridNode(t[0])||tt(42);var i=t[0];t=i.getChildren(),n=i.getFirstChildOrThrow().getChildrenSize();var o=i.getChildrenSize(),l=In.$findMatchingParent(e.anchor.getNode(),m=>z.DEPRECATED_$isGridCellNode(m));e=(i=l&&In.$findMatchingParent(l,m=>z.DEPRECATED_$isGridRowNode(m)))&&In.$findMatchingParent(i,m=>z.DEPRECATED_$isGridNode(m)),z.DEPRECATED_$isGridCellNode(l)&&z.DEPRECATED_$isGridRowNode(i)&&z.DEPRECATED_$isGridNode(e)||tt(43);var s=i.getIndexWithinParent(),a=Math.min(e.getChildrenSize()-1,s+o-1);o=l.getIndexWithinParent(),l=Math.min(i.getChildrenSize()-1,o+n-1),n=Math.min(o,l),i=Math.min(s,a),o=Math.max(o,l),s=Math.max(s,a),a=e.getChildren(),l=0;let c,d;for(let m=i;m<=s;m++){var u=a[m];z.DEPRECATED_$isGridRowNode(u)||tt(24);var g=t[l];z.DEPRECATED_$isGridRowNode(g)||tt(24),u=u.getChildren(),g=g.getChildren();let f=0;for(let _=n;_<=o;_++){let C=u[_];z.DEPRECATED_$isGridCellNode(C)||tt(25);let N=g[f];z.DEPRECATED_$isGridCellNode(N)||tt(25),m===i&&_===n?c=C.getKey():m===s&&_===o&&(d=C.getKey());let p=C.getChildren();N.getChildren().forEach(v=>{z.$isTextNode(v)&&z.$createParagraphNode().append(v),C.append(v)}),p.forEach(v=>v.remove()),f++}l++}c&&d&&(t=z.DEPRECATED_$createGridSelection(),t.set(e.getKey(),c,d),z.$setSelection(t),r.dispatchCommand(z.SELECTION_CHANGE_COMMAND,void 0))}function Js(t,e,n,r=[]){let i=e!=null?n.isSelected():!0,o=z.$isElementNode(n)&&n.excludeFromCopy("html");var l=n;if(e!==null){var s=Fi.$cloneWithProperties(n);l=s=z.$isTextNode(s)&&e!=null?Fi.$sliceSelectedTextNodeContent(e,s):s}let a=z.$isElementNode(l)?l.getChildren():[];var c=l;s=c.exportJSON(),s.type!==c.constructor.getType()&&tt(58);var d=s.children;for(z.$isElementNode(c)&&(Array.isArray(d)||tt(59)),z.$isTextNode(l)&&(s.text=l.__text),l=0;l<a.length;l++)c=a[l],d=Js(t,e,c,s.children),!i&&z.$isElementNode(n)&&d&&n.extractWithChild(c,e,"clone")&&(i=!0);if(i&&!o)r.push(s);else if(Array.isArray(s.children))for(t=0;t<s.children.length;t++)r.push(s.children[t]);return i}function Xs(t,e){let n=[],r=z.$getRoot().getChildren();for(let i=0;i<r.length;i++)Js(t,e,r[i],n);return{namespace:t._config.namespace,nodes:n}}function qs(t){let e=[];for(let n=0;n<t.length;n++){let r=z.$parseSerializedNode(t[n]);z.$isTextNode(r)&&Fi.$addNodeStyle(r),e.push(r)}return e}let Xt=null;function Qs(t,e){if(e.preventDefault(),e=e.clipboardData,e===null)return!1;let n=z.$getSelection(),r=Gs(t);t=Zs(t);let i="";return n!==null&&(i=n.getTextContent()),r!==null&&e.setData("text/html",r),t!==null&&e.setData("application/x-lexical-editor",t),e.setData("text/plain",i),!0}et.$generateJSONFromSelectedNodes=Xs,et.$generateNodesFromSerializedNodes=qs,et.$getHtmlContent=Gs,et.$getLexicalContent=Zs,et.$insertDataTransferForPlainText=function(t,e){t=t.getData("text/plain"),t!=null&&e.insertRawText(t)},et.$insertDataTransferForRichText=function(t,e,n){var r=t.getData("application/x-lexical-editor");if(r)try{let o=JSON.parse(r);if(o.namespace===n._config.namespace&&Array.isArray(o.nodes)){let l=qs(o.nodes);return zi(n,l,e)}}catch{}if(r=t.getData("text/html"))try{var i=new DOMParser().parseFromString(r,"text/html");let o=Ys.$generateNodesFromDOM(n,i);return zi(n,o,e)}catch{}if(t=t.getData("text/plain"),t!=null)if(z.$isRangeSelection(e))for(t=t.split(/\r?\n/),n=t.length,i=0;i<n;i++)e.insertText(t[i]),i<n-1&&e.insertParagraph();else e.insertRawText(t)},et.$insertGeneratedNodes=zi,et.copyToClipboard__EXPERIMENTAL=async function(t,e){if(Xt!==null)return!1;if(e!==null)return new Promise(o=>{t.update(()=>{o(Qs(t,e))})});var n=t.getRootElement();let r=document.getSelection();if(n===null||r===null)return!1;let i=document.createElement("span");return i.style.cssText="position: fixed; top: -1000px;",i.append(document.createTextNode("#")),n.append(i),n=new Range,n.setStart(i,0),n.setEnd(i,1),r.removeAllRanges(),r.addRange(n),new Promise(o=>{let l=t.registerCommand(z.COPY_COMMAND,s=>(s instanceof ClipboardEvent&&(l(),Xt!==null&&(window.clearTimeout(Xt),Xt=null),o(Qs(t,s))),!0),z.COMMAND_PRIORITY_CRITICAL);Xt=window.setTimeout(()=>{l(),Xt=null,o(!1)},50),document.execCommand("copy"),i.remove()})};var $u=et,Nr=$u,Tr=Ge,qt=me,y=w;let Qt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Mu=Qt&&"documentMode"in document?document.documentMode:null;Qt&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Qt&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);let Au=Qt&&"InputEvent"in window&&!Mu?"getTargetRanges"in new window.InputEvent("input"):!1,Du=Qt&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Lu=Qt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Bi=y.createCommand("DRAG_DROP_PASTE_FILE");class Pn extends y.ElementNode{static getType(){return"quote"}static clone(e){return new Pn(e.__key)}constructor(e){super(e)}createDOM(e){let n=document.createElement("blockquote");return qt.addClassNamesToElement(n,e.theme.quote),n}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:Iu,priority:0})}}static importJSON(e){let n=Hi();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(){let e=y.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=y.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}}function Hi(){return y.$applyNodeReplacement(new Pn)}class Fn extends y.ElementNode{static getType(){return"heading"}static clone(e){return new Fn(e.__tag,e.__key)}constructor(e,n){super(n),this.__tag=e}getTag(){return this.__tag}createDOM(e){let n=this.__tag,r=document.createElement(n);return e=e.theme.heading,e!==void 0&&qt.addClassNamesToElement(r,e[n]),r}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:en,priority:0}),h2:()=>({conversion:en,priority:0}),h3:()=>({conversion:en,priority:0}),h4:()=>({conversion:en,priority:0}),h5:()=>({conversion:en,priority:0}),h6:()=>({conversion:en,priority:0}),p:e=>(e=e.firstChild,e!==null&&ea(e)?{conversion:()=>({node:null}),priority:3}:null),span:e=>ea(e)?{conversion:()=>({node:Sr("h1")}),priority:3}:null}}static importJSON(e){let n=Sr(e.tag);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(){let e=y.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=y.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}extractWithChild(){return!0}}function ea(t){return t.nodeName.toLowerCase()==="span"?t.style.fontSize==="26pt":!1}function en(t){t=t.nodeName.toLowerCase();let e=null;return(t==="h1"||t==="h2"||t==="h3"||t==="h4"||t==="h5"||t==="h6")&&(e=Sr(t)),{node:e}}function Iu(){return{node:Hi()}}function Sr(t){return y.$applyNodeReplacement(new Fn(t))}function Pu(t,e){t.preventDefault(),e.update(()=>{let n=y.$getSelection(),r=t instanceof InputEvent||t instanceof KeyboardEvent?null:t.clipboardData;r!=null&&(y.$isRangeSelection(n)||y.DEPRECATED_$isGridSelection(n))&&Nr.$insertDataTransferForRichText(r,n,e)},{tag:"paste"})}async function Fu(t,e){await Nr.copyToClipboard__EXPERIMENTAL(e,t instanceof ClipboardEvent?t:null),e.update(()=>{let n=y.$getSelection();y.$isRangeSelection(n)?n.removeText():y.$isNodeSelection(n)&&n.getNodes().forEach(r=>r.remove())})}function zn(t){let e=null;if(t instanceof DragEvent?e=t.dataTransfer:t instanceof ClipboardEvent&&(e=t.clipboardData),e===null)return[!1,[],!1];var n=e.types;return t=n.includes("Files"),n=n.includes("text/html")||n.includes("text/plain"),[t,Array.from(e.files),n]}function ta(t,e){var n=y.$getSelection();if(y.$isRangeSelection(n)){var r=new Set;n=n.getNodes();for(let i=0;i<n.length;i++){let o=n[i],l=o.getKey();if(r.has(l))continue;let s=qt.$getNearestBlockElementAncestorOrThrow(o),a=s.getKey();s.canInsertTab()?(t(o),r.add(l)):s.canIndent()&&!r.has(a)&&(r.add(a),e(s))}}}function br(t){return t=y.$getNearestNodeFromDOMNode(t),y.$isDecoratorNode(t)}Ve.$createHeadingNode=Sr,Ve.$createQuoteNode=Hi,Ve.$isHeadingNode=function(t){return t instanceof Fn},Ve.$isQuoteNode=function(t){return t instanceof Pn},Ve.DRAG_DROP_PASTE=Bi,Ve.HeadingNode=Fn,Ve.QuoteNode=Pn,Ve.eventFiles=zn,Ve.registerRichText=function(t){return qt.mergeRegister(t.registerCommand(y.CLICK_COMMAND,()=>{const e=y.$getSelection();return y.$isNodeSelection(e)?(e.clear(),!0):!1},0),t.registerCommand(y.DELETE_CHARACTER_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.deleteCharacter(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DELETE_WORD_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.deleteWord(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DELETE_LINE_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.deleteLine(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.CONTROLLED_TEXT_INSERTION_COMMAND,e=>{const n=y.$getSelection();if(typeof e=="string")y.$isRangeSelection(n)?n.insertText(e):y.DEPRECATED_$isGridSelection(n);else{if(!y.$isRangeSelection(n)&&!y.DEPRECATED_$isGridSelection(n))return!1;const r=e.dataTransfer;r!=null?Nr.$insertDataTransferForRichText(r,n,t):y.$isRangeSelection(n)&&(e=e.data)&&n.insertText(e)}return!0},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.REMOVE_TEXT_COMMAND,()=>{const e=y.$getSelection();return y.$isRangeSelection(e)?(e.removeText(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.FORMAT_TEXT_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.formatText(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.FORMAT_ELEMENT_COMMAND,e=>{var n=y.$getSelection();if(!y.$isRangeSelection(n)&&!y.$isNodeSelection(n))return!1;n=n.getNodes();for(const r of n)qt.$getNearestBlockElementAncestorOrThrow(r).setFormat(e);return!0},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.INSERT_LINE_BREAK_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.insertLineBreak(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.INSERT_PARAGRAPH_COMMAND,()=>{const e=y.$getSelection();return y.$isRangeSelection(e)?(e.insertParagraph(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.INDENT_CONTENT_COMMAND,()=>(ta(()=>{t.dispatchCommand(y.CONTROLLED_TEXT_INSERTION_COMMAND," ")},e=>{const n=e.getIndent();n!==10&&e.setIndent(n+1)}),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.OUTDENT_CONTENT_COMMAND,()=>(ta(e=>{y.$isTextNode(e)&&(e=e.getTextContent(),e[e.length-1]===" "&&t.dispatchCommand(y.DELETE_CHARACTER_COMMAND,!0))},e=>{const n=e.getIndent();n!==0&&e.setIndent(n-1)}),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ARROW_UP_COMMAND,e=>{const n=y.$getSelection();return y.$isNodeSelection(n)&&!br(e.target)&&(e=n.getNodes(),0<e.length)?(e[0].selectPrevious(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ARROW_DOWN_COMMAND,()=>{var e=y.$getSelection();return y.$isNodeSelection(e)&&(e=e.getNodes(),0<e.length)?(e[0].selectNext(0,0),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ARROW_LEFT_COMMAND,e=>{const n=y.$getSelection();if(y.$isNodeSelection(n)){var r=n.getNodes();if(0<r.length)return e.preventDefault(),r[0].selectPrevious(),!0}return y.$isRangeSelection(n)&&Tr.$shouldOverrideDefaultCharacterSelection(n,!0)?(r=e.shiftKey,e.preventDefault(),Tr.$moveCharacter(n,r,!0),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ARROW_RIGHT_COMMAND,e=>{const n=y.$getSelection();if(y.$isNodeSelection(n)&&!br(e.target)){var r=n.getNodes();if(0<r.length)return e.preventDefault(),r[0].selectNext(0,0),!0}return y.$isRangeSelection(n)?(r=e.shiftKey,Tr.$shouldOverrideDefaultCharacterSelection(n,!1)?(e.preventDefault(),Tr.$moveCharacter(n,r,!1),!0):!1):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_BACKSPACE_COMMAND,e=>{if(br(e.target))return!1;const n=y.$getSelection();if(!y.$isRangeSelection(n))return!1;e.preventDefault(),{anchor:e}=n;const r=e.getNode();return n.isCollapsed()&&e.offset===0&&!y.$isRootNode(r)&&0<qt.$getNearestBlockElementAncestorOrThrow(r).getIndent()?t.dispatchCommand(y.OUTDENT_CONTENT_COMMAND,void 0):t.dispatchCommand(y.DELETE_CHARACTER_COMMAND,!0)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_DELETE_COMMAND,e=>{if(br(e.target))return!1;const n=y.$getSelection();return y.$isRangeSelection(n)?(e.preventDefault(),t.dispatchCommand(y.DELETE_CHARACTER_COMMAND,!1)):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ENTER_COMMAND,e=>{const n=y.$getSelection();if(!y.$isRangeSelection(n))return!1;if(e!==null){if((Lu||Du)&&Au)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(y.INSERT_LINE_BREAK_COMMAND,!1)}return t.dispatchCommand(y.INSERT_PARAGRAPH_COMMAND,void 0)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_TAB_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(e.preventDefault(),t.dispatchCommand(e.shiftKey?y.OUTDENT_CONTENT_COMMAND:y.INDENT_CONTENT_COMMAND,void 0)):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ESCAPE_COMMAND,()=>{const e=y.$getSelection();return y.$isRangeSelection(e)?(t.blur(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DROP_COMMAND,e=>{const[,n]=zn(e);if(0<n.length){var r=e.clientX,i=e.clientY;if(r=typeof document.caretRangeFromPoint<"u"?document.caretRangeFromPoint(r,i):document.caretPositionFromPoint!=="undefined"?document.caretPositionFromPoint(r,i):null,r!==null){const{startOffset:o,endOffset:l,startContainer:s,endContainer:a}=r;if(r=y.$getNearestNodeFromDOMNode(s),i=y.$getNearestNodeFromDOMNode(a),r!==null&&i!==null){const c=y.$createRangeSelection();y.$isTextNode(r)?c.anchor.set(r.getKey(),o,"text"):c.anchor.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+1,"element"),y.$isTextNode(i)?c.focus.set(i.getKey(),l,"text"):c.focus.set(i.getParentOrThrow().getKey(),i.getIndexWithinParent()+1,"element"),r=y.$normalizeSelection__EXPERIMENTAL(c),y.$setSelection(r)}t.dispatchCommand(Bi,n)}return e.preventDefault(),!0}return e=y.$getSelection(),!!y.$isRangeSelection(e)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DRAGSTART_COMMAND,e=>{const[n]=zn(e),r=y.$getSelection();return n&&!y.$isRangeSelection(r)?!1:(e.preventDefault(),!0)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DRAGOVER_COMMAND,e=>{const[n]=zn(e),r=y.$getSelection();return n&&!y.$isRangeSelection(r)?!1:(e.preventDefault(),!0)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.COPY_COMMAND,e=>(Nr.copyToClipboard__EXPERIMENTAL(t,e instanceof ClipboardEvent?e:null),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.CUT_COMMAND,e=>(Fu(e,t),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.PASTE_COMMAND,e=>{const[,n,r]=zn(e);if(0<n.length&&!r)return t.dispatchCommand(Bi,n),!0;const i=y.$getSelection();return y.$isRangeSelection(i)||y.DEPRECATED_$isGridSelection(i)?(Pu(e,t),!0):!1},y.COMMAND_PRIORITY_EDITOR))};var nt=Ve,rt={},zu=me,dt=w;class tn extends dt.ElementNode{static getType(){return"link"}static clone(e){return new tn(e.__url,{rel:e.__rel,target:e.__target},e.__key)}constructor(e,n={},r){super(r);let{target:i=null,rel:o=null}=n;this.__url=e,this.__target=i,this.__rel=o}createDOM(e){let n=document.createElement("a");return n.href=this.__url,this.__target!==null&&(n.target=this.__target),this.__rel!==null&&(n.rel=this.__rel),zu.addClassNamesToElement(n,e.theme.link),n}updateDOM(e,n){let r=this.__url,i=this.__target,o=this.__rel;return r!==e.__url&&(n.href=r),i!==e.__target&&(i?n.target=i:n.removeAttribute("target")),o!==e.__rel&&(o?n.rel=o:n.removeAttribute("rel")),!1}static importDOM(){return{a:()=>({conversion:Bu,priority:1})}}static importJSON(e){let n=Bn(e.url,{rel:e.rel,target:e.target});return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}insertNewAfter(e){if(e=this.getParentOrThrow().insertNewAfter(e),dt.$isElementNode(e)){let n=Bn(this.__url,{rel:this.__rel,target:this.__target});return e.append(n),n}return null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,n){if(!dt.$isRangeSelection(n))return!1;e=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&0<n.getTextContent().length}}function Bu(t){let e=null;if(t instanceof HTMLAnchorElement){let n=t.textContent;n!==null&&n!==""&&(e=Bn(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target")}))}return{node:e}}function Bn(t,e){return new tn(t,e)}function Nt(t){return t instanceof tn}class Hn extends tn{static getType(){return"autolink"}static clone(e){return new Hn(e.__url,{rel:e.__rel,target:e.__target},e.__key)}static importJSON(e){let n=Ki(e.url,{rel:e.rel,target:e.target});return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(e){if(e=this.getParentOrThrow().insertNewAfter(e),dt.$isElementNode(e)){let n=Ki(this.__url,{rel:this._rel,target:this.__target});return e.append(n),n}return null}}function Ki(t,e){return new Hn(t,e)}let Hu=dt.createCommand("TOGGLE_LINK_COMMAND");function Ku(t){return Wu(t,e=>Nt(e))}function Wu(t,e){for(;t!==null&&(t=t.getParent())!==null&&!e(t););return t}rt.$createAutoLinkNode=Ki,rt.$createLinkNode=Bn,rt.$isAutoLinkNode=function(t){return t instanceof Hn},rt.$isLinkNode=Nt,rt.AutoLinkNode=Hn,rt.LinkNode=tn,rt.TOGGLE_LINK_COMMAND=Hu,rt.toggleLink=function(t,e={}){let{target:n}=e,r=e.rel===void 0?"noopener":e.rel;if(e=dt.$getSelection(),dt.$isRangeSelection(e))if(e=e.extract(),t===null)e.forEach(o=>{if(o=o.getParent(),Nt(o)){let l=o.getChildren();for(let s=0;s<l.length;s++)o.insertBefore(l[s]);o.remove()}});else{if(e.length===1){var i=e[0];if(i=Nt(i)?i:Ku(i),i!==null){i.setURL(t),n!==void 0&&i.setTarget(n),r!==null&&i.setRel(r);return}}let o=null,l=null;e.forEach(s=>{var a=s.getParent();if(a!==l&&a!==null&&(!dt.$isElementNode(s)||s.isInline()))if(Nt(a))l=a,a.setURL(t),n!==void 0&&a.setTarget(n),r!==null&&l.setRel(r);else if(a.is(o)||(o=a,l=Bn(t,{rel:r,target:n}),Nt(a)?s.getPreviousSibling()===null?a.insertBefore(l):a.insertAfter(l):s.insertBefore(l)),Nt(s)){if(!s.is(l)){if(l!==null){a=s.getChildren();for(let c=0;c<a.length;c++)l.append(a[c])}s.remove()}}else l!==null&&l.append(s)})}};var Wi=rt;class Rr extends w.ElementNode{static getType(){return"aside"}static clone(e){return new Rr(e.__key)}createDOM(e){const n=document.createElement("aside");return me.addClassNamesToElement(n,e.theme.aside),n}updateDOM(e,n){return!1}static importDOM(){return{aside:e=>({conversion:Uu,priority:0})}}static importJSON(e){const n=Ui();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"aside"}}insertNewAfter(){const e=w.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertNewAfter(e),e}collapseAtStart(){const e=w.$createParagraphNode();return this.getChildren().forEach(r=>e.append(r)),this.replace(e),!0}}function Uu(){return{node:Ui}}function Ui(){return new Rr}var na={},ju=ie,Tt=w,Or=S.default;function ra(t,e){return t.getEditorState().read(()=>{let n=Tt.$getNodeByKey(e);return n===null?!1:n.isSelected()})}na.useLexicalNodeSelection=function(t){let[e]=ju.useLexicalComposerContext(),[n,r]=Or.useState(()=>ra(e,t));Or.useEffect(()=>e.registerUpdateListener(()=>{r(ra(e,t))}),[e,t]);let i=Or.useCallback(l=>{e.update(()=>{let s=Tt.$getSelection();Tt.$isNodeSelection(s)||(s=Tt.$createNodeSelection(),Tt.$setSelection(s)),l?s.add(t):s.delete(t)})},[e,t]),o=Or.useCallback(()=>{e.update(()=>{const l=Tt.$getSelection();Tt.$isNodeSelection(l)&&l.clear()})},[e]);return[n,i,o]};var ia=na;const oa=S.default.createContext({});var xe={exports:{}},Yu="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Vu=Yu,Gu=Vu;function la(){}function sa(){}sa.resetWarningCache=la;var Zu=function(){function t(r,i,o,l,s,a){if(a!==Gu){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:sa,resetWarningCache:la};return n.PropTypes=n,n};xe.exports=Zu();const ji=S.default.forwardRef(({isSelected:t,cardWidth:e,cardType:n,children:r,...i},o)=>h("div",{className:`relative border border-transparent caret-grey-800 ${t?"shadow-[0_0_0_2px] shadow-green":"hover:shadow-[0_0_0_1px] hover:shadow-green"} ${e==="wide"?"mx-[calc(50%-(50vw-var(--kg-breakout-adjustment))-.8rem)] w-[calc(65vw+2px-var(--kg-breakout-adjustment))] min-w-[calc(100%+3.6rem)] sm:min-w-[calc(100%+10rem)] lg:min-w-[calc(100%+18rem)] translate-x-[calc(50vw-50%+.8rem-var(--kg-breakout-adjustment))]":e==="full"?"lg:mx-[calc(50%-50vw+(var(--kg-breakout-adjustment)/2))] lg:w-[calc(100vw-var(--kg-breakout-adjustment))]":""}`,ref:o,"data-kg-card":n,"data-kg-card-selected":t,...i,children:r}));ji.propTypes={isSelected:xe.exports.bool,cardWidth:xe.exports.oneOf(["regular","wide","full"])},ji.defaultProps={cardWidth:"regular"};const Yi=({nodeKey:t,children:e,width:n})=>{const[r]=ie.useLexicalComposerContext(),[i,o,l]=ia.useLexicalNodeSelection(t),[s,a]=S.default.useState(null),[c,d]=S.default.useState(null),[u,g]=S.default.useState(n||"regular"),m=S.default.useRef(null);return S.default.useLayoutEffect(()=>{r.getEditorState().read(()=>{const f=w.$getNodeByKey(t);d(f.getType())})},[]),S.default.useEffect(()=>me.mergeRegister(r.registerUpdateListener(({editorState:f})=>{a(f.read(()=>w.$getSelection()))}),r.registerCommand(w.CLICK_COMMAND,f=>(m.current.contains(f.target)?(l(),o(!0)):i&&o(!1),!1),w.COMMAND_PRIORITY_LOW),r.registerCommand(w.KEY_ENTER_COMMAND,f=>{const _=w.$getSelection();if(i&&w.$isNodeSelection(_)&&_.getNodes().length===1){f.preventDefault();const C=w.$getNodeByKey(t),N=w.$createParagraphNode();return C.getTopLevelElementOrThrow().insertAfter(N),N.select(),!0}return!1},w.COMMAND_PRIORITY_EDITOR),r.registerCommand(w.KEY_BACKSPACE_COMMAND,f=>{const _=w.$getSelection();if(i&&w.$isNodeSelection(_)&&_.getNodes().length===1){f.preventDefault();const C=w.$getNodeByKey(t);if(C.getType()==="image"&&f.target.matches("input"))return r.update(()=>{const v=C.getCaption();C.setCaption(v.slice(0,-1))}),!1;const N=C.getPreviousSibling(),p=C.getNextSibling();if(N)if(N.selectEnd)N.selectEnd();else if(w.$isDecoratorNode(N)){const v=w.$createNodeSelection();v.add(N.getKey()),w.$setSelection(v)}else C.selectPrevious();else if(p)if(p.selectStart)p.selectStart();else if(w.$isDecoratorNode(p)){const v=w.$createNodeSelection();v.add(p.getKey()),w.$setSelection(v)}else C.selectNext();return C.remove(),!0}return!1},w.COMMAND_PRIORITY_EDITOR),r.registerCommand(w.KEY_DELETE_COMMAND,f=>{const _=w.$getSelection();if(i&&w.$isNodeSelection(_)&&_.getNodes().length===1){f.preventDefault();const C=w.$getNodeByKey(t),N=C.getNextSibling();if(N)if(N.selectStart)N.selectStart();else if(w.$isDecoratorNode(N)){const p=w.$createNodeSelection();p.add(N.getKey()),w.$setSelection(p)}else C.selectNext();else{const p=w.$createParagraphNode();C.getTopLevelElementOrThrow().insertAfter(p),p.select()}return C.remove(),!0}return!1},w.COMMAND_PRIORITY_EDITOR)),[r,i,o,l,t]),h(oa.Provider,{value:{isSelected:i,cardWidth:u,setCardWidth:g,selection:s,cardContainerRef:m},children:h(ji,{isSelected:i,cardType:c,ref:m,cardWidth:u,children:e})})};function Ju(){return h("hr",{className:"block h-[1px] border-0 border-t border-grey-300"})}const aa=w.createCommand(),vo=class extends w.DecoratorNode{static getType(){return"horizontalrule"}static clone(e){return new vo(e.__key)}static importJSON(e){return Vi()}exportJSON(){return{type:"horizontalrule",version:1}}createDOM(){return document.createElement("div")}getTextContent(){return`
31
+ `}isInline(){return!1}updateDOM(){return!1}decorate(){return h(Yi,{nodeKey:this.getKey(),className:"inline-block",children:h(Ju,{})})}};let St=vo;Ee(St,"kgMenu",{label:"Divider",desc:"Insert a dividing line",Icon:Do,insertCommand:aa,matches:["divider","horizontal-rule","hr"]});function Vi(){return new St}function Xu(t){return t instanceof St}const qu=({el:t,value:e})=>{re.useEffect(()=>{const n=t.current;if(n){n.style.height="0px";const r=n.scrollHeight;n.style.height=`${r}px`}},[t,e])};function ca({code:t,language:e,updateCode:n,updateLanguage:r}){const i=S.default.useRef(null);return qu({el:i,value:t}),h("code",{children:h("textarea",{ref:i,autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",tabIndex:"0",autoFocus:!0,className:"min-h-170 w-full bg-grey-50 p-3 text-grey-900",value:t,onChange:n})})}ca.propTypes={code:xe.exports.string},w.createCommand();function Qu({code:t,language:e,nodeKey:n,editor:r}){return h(ca,{code:t,updateCode:l=>{r.update(()=>{w.$getNodeByKey(n).setCode(l.target.value)})},language:e,updateLanguage:l=>{r.update(()=>{w.$getNodeByKey(n).setLanguage(l.target.value)})}})}class nn extends w.DecoratorNode{constructor(n,r,i){super(i);Ee(this,"__code","");Ee(this,"__language","");this.__language=n,this.__code=r}static getType(){return"codeblock"}static clone(n){return new nn(n.__key,n.__code)}static importJSON(n){return da()}exportJSON(){return{type:"codeblock",version:1,code:this.__code,language:this.__language}}createDOM(n){return document.createElement("div")}updateDOM(){return!1}getCode(){return this.getLatest().__code}setCode(n){const r=this.getWritable();r.__code=n}getLanguage(){return this.getLatest().__language}setLanguage(n){const r=this.getWritable();r.__language=n}getTextContent(){return this.getLatest().__code}decorate(n,r){return h(Yi,{nodeKey:this.getKey(),children:h(Qu,{code:this.__code,language:this.__language,nodeKey:this.getKey(),editor:n})})}isInline(){return!1}}function da(t,e){return new nn(t,e)}function eg(t){return t instanceof nn}class tg extends w.DecoratorNode{}class ng{constructor(e){this.NodeClass=e}get DOMConversionMap(){const e=this;return{img:()=>({conversion(n){if(n.tagName==="IMG"){const{alt:r,src:i,title:o,width:l,height:s}=n;return{node:new e.NodeClass({altText:r,src:i,title:o,width:l,height:s})}}return null},priority:1})}}}const ua=function(t,e){const n=Object.values(e).map(i=>{let{width:o}=i;return o}).sort((i,o)=>i-o),r=n.filter(i=>i<=t.width);return t.width>r[r.length-1]&&t.width<n[n.length-1]&&r.push(t.width),r},$r=function(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:"").replace(/\/$/,""),r=t.replace(n,"");return/^(\/.*|__GHOST_URL__)\/?content\/images\//.test(r)},rg=function(t){return/images\.unsplash\.com/.test(t)},ig=function(t){let{src:e,width:n,options:r}=t;if(!r.imageOptimization||r.imageOptimization.srcsets===!1||!n||!r.imageOptimization.contentImageSizes||$r(e,r.siteUrl)&&r.canTransformImage&&!r.canTransformImage(e))return;const i=ua({width:n},r.imageOptimization.contentImageSizes);if($r(e,r.siteUrl)){const[,o,l]=e.match(/(.*\/content\/images)\/(.*)/),s=[];if(i.forEach(a=>{a===n?s.push(`${e} ${a}w`):a<=n&&s.push(`${o}/size/w${a}/${l} ${a}w`)}),s.length)return s.join(", ")}if(rg(e)){const o=new URL(e),l=[];return i.forEach(s=>{o.searchParams.set("w",s),l.push(`${o.href} ${s}w`)}),l.join(", ")}},og=function(t,e,n){if(!t||!["IMG","SOURCE"].includes(t.tagName)||!t.getAttribute("src")||!e)return;const{src:r,width:i}=e,o=ig({src:r,width:i,options:n});o&&t.setAttribute("srcset",o)},ga=function(t){let{width:e,height:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{width:r,height:i}=t,o=r/i;if(e){const l=Math.round(e/o);return{width:e,height:l}}if(n)return{width:Math.round(n*o),height:n}};function lg(t){var a;let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!e.createDocument){let c=typeof window<"u"&&window.document;if(!c)throw new Error("renderImageNodeToDOM() must be passed a `createDocument` function as an option when used in a non-browser environment");e.createDocument=function(){return c}}const n=e.createDocument();if(!t.getSrc()||t.getSrc().trim()==="")return n.createTextNode("");const r=n.createElement("figure");let i="kg-card kg-image-card";t.getCardWidth()!=="regular"&&(i+=` kg-width-${t.getCardWidth()}`),r.setAttribute("class",i);const o=n.createElement("img");o.setAttribute("src",t.getSrc()),o.setAttribute("alt",t.getAltText()),o.setAttribute("loading","lazy"),t.getTitle()&&o.setAttribute("title",t.getTitle()),t.getImgWidth()&&t.getImgHeight()&&(o.setAttribute("width",t.getImgWidth()),o.setAttribute("height",t.getImgHeight()));const{canTransformImage:l}=e,{defaultMaxWidth:s}=e.imageOptimization||{};if(s&&t.getImgWidth()>s&&$r(t.getSrc(),e.siteUrl)&&l&&l(t.getSrc())){const c={width:t.getImgWidth(),height:t.getImgHeight()},{width:d,height:u}=ga(c,{width:s});o.setAttribute("width",d),o.setAttribute("height",u)}if(e.target!=="email"){const c={src:t.getSrc(),width:t.getImgWidth(),height:t.getImgHeight()};og(o,c,e),o.getAttribute("srcset")&&t.getImgWidth()&&t.getImgWidth()>=720&&((!t.getCardWidth()||t.getCardWidth()==="regular")&&o.setAttribute("sizes","(min-width: 720px) 720px"),t.getCardWidth()==="wide"&&t.getImgWidth()>=1200&&o.setAttribute("sizes","(min-width: 1200px) 1200px"))}if(e.target==="email"&&t.getImgWidth()&&t.getImgHeight()){let c={width:t.getImgWidth(),height:t.getImgHeight()};if(t.getImgWidth()>=600&&(c=ga(c,{width:600})),o.setAttribute("width",c.width),o.setAttribute("height",c.height),$r(t.getSrc(),e.siteUrl)&&((a=e.canTransformImage)==null?void 0:a.call(e,t.getSrc()))){const u=ua(t,e.imageOptimization.contentImageSizes).find(g=>g>=1200);if(!(!u||u===t.getImgWidth())){const[,g,m]=t.getSrc().match(/(.*\/content\/images)\/(.*)/);o.setAttribute("src",`${g}/size/w${u}/${m}`)}}}if(r.appendChild(o),t.getCaption()){const c=n.createElement("figcaption");c.innerHTML=t.getCaption(),r.appendChild(c)}return r}const Mr=w.createCommand();w.createCommand();class Gi extends tg{constructor(){let{src:n,caption:r,title:i,altText:o,cardWidth:l,width:s,height:a}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0;super(c);Ee(this,"__src");Ee(this,"__caption");Ee(this,"__title");Ee(this,"__altText");Ee(this,"__cardWidth");Ee(this,"__width");Ee(this,"__height");this.__src=n||"",this.__title=i||"",this.__caption=r||"",this.__altText=o||"",this.__width=s||null,this.__height=a||null,this.__cardWidth=l||"regular"}static getType(){return"image"}static clone(n){return new this(n.getDataset(),n.__key)}static get urlTransformMap(){return{src:"url",caption:"html"}}getDataset(){return{src:this.__src,caption:this.__caption,title:this.__title,altText:this.__altText,width:this.__width,height:this.__height,cardWidth:this.__cardWidth}}static importJSON(n){const{src:r,caption:i,title:o,altText:l,width:s,height:a,cardWidth:c}=n;return new this({src:r,caption:i,title:o,altText:l,width:s,height:a,cardWidth:c})}exportJSON(){const r=this.getSrc().startsWith("data:");return{type:"image",src:r?"<base64String>":this.getSrc(),width:this.getImgWidth(),height:this.getImgHeight(),title:this.getTitle(),altText:this.getAltText(),caption:this.getCaption(),cardWidth:this.getCardWidth()}}static importDOM(){return new ng(this).DOMConversionMap}exportDOM(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{element:lg(this,n)}}createDOM(){return document.createElement("div")}updateDOM(){return!1}isInline(){return!1}getSrc(){return this.__src}setSrc(n){const r=this.getWritable();return r.__src=n}getTitle(){return this.__title}setTitle(n){const r=this.getWritable();return r.__title=n}setCardWidth(n){const r=this.getWritable();return r.__cardWidth=n}getCardWidth(){return this.__cardWidth}getImgWidth(){return this.__width}setImgWidth(n){const r=this.getWritable();return r.__width=n}getImgHeight(){return this.__height}setImgHeight(n){const r=this.getWritable();return r.__height=n}getCaption(){return this.__caption}setCaption(n){const r=this.getWritable();return r.__caption=n}getAltText(){return this.__altText}setAltText(n){const r=this.getWritable();return r.__altText=n}decorate(){return""}}Ee(Gi,"extensionTypes",["gif","jpg","jpeg","png","svg","svgz","webp"]),Ee(Gi,"mimeTypes",["image/gif","image/jpg","image/jpeg","image/png","image/svg+xml","image/webp"]);const Ar=S.default.createContext({});function sg({value:t,placeholder:e,onChange:n}){return h("input",{onChange:i=>{n(i.target.value)},className:"not-kg-prose w-full px-9 text-center font-sans text-sm font-normal leading-8 tracking-wide text-grey-900",placeholder:e,value:t})}function ag({value:t,placeholder:e,onChange:n}){return h("input",{onChange:i=>{n(i.target.value)},className:"not-kg-prose w-full px-9 text-center font-sans text-sm font-normal leading-8 tracking-wide text-grey-900",placeholder:e,value:t})}function cg({isEditingAlt:t,onClick:e}){return h("button",{name:"alt-toggle-button",className:`absolute bottom-0 right-0 m-2 cursor-pointer rounded border px-1 font-sans text-[1.3rem] font-normal leading-7 tracking-wide transition-all duration-100 ${t?"border-green bg-green text-white":"border-grey text-grey"} `,onClick:e,children:"Alt"})}function dg({altText:t,altTextPlaceholder:e,setAltText:n,caption:r,captionPlaceholder:i,setCaption:o,isSelected:l}){const[s,a]=S.default.useState(!1),c=d=>{d.stopPropagation(),a(!s)};if(S.default.useEffect(()=>{l||a(!1)},[l,a]),l||r)return B("figcaption",{className:"flex w-full p-2",children:[s?h(ag,{value:t,placeholder:e,onChange:n}):h(sg,{value:r,placeholder:i,onChange:o}),n&&h(cg,{isEditingAlt:s,onClick:c})]})}const ug=({text:t})=>h("span",{"data-kg-card-drag-text":!0,className:"text-sm font-sans font-bold text-grey-800 transition-all group-hover:text-grey-800",children:t});function gg({desc:t,Icon:e,filePicker:n,size:r,handleDrag:i,handleDrop:o,isDraggedOver:l,...s}){return h("div",{onDragEnter:i,onDragLeave:i,onDragOver:i,onDrop:o,className:"border border-transparent",...s,"data-testid":"media-placeholder",children:h("div",{className:`h-100 relative flex items-center justify-center border border-grey/20 bg-grey-50 ${r==="xsmall"?"before:pb-[12.5%]":"before:pb-[62.5%]"}`,children:l?h(ug,{text:"Drop it like it's hot \u{1F525}"}):B("button",{onClick:n,name:"placeholder-button",className:`group flex cursor-pointer items-center justify-center ${r==="xsmall"?"p-4":"p-20 flex-col"}`,children:[h(e,{className:`opacity-80 transition-all ease-linear group-hover:scale-105 group-hover:opacity-100 ${r==="large"?"h-20 w-20 text-grey":r==="small"?"h-14 w-14 text-grey":r==="xsmall"?"w-6 h-6 mr-3 text-grey-700":"h-16 w-16 text-grey"}`}),h("p",{className:`font-sans text-sm font-normal text-grey-700 transition-all group-hover:text-grey-800 ${r==="xsmall"?"":"mt-4"}`,children:t})]})})})}function Dr({fileInputRef:t}){t.current.click()}function ha({onFileChange:t,fileInputRef:e}){return h("form",{onChange:t,children:h("input",{name:"image-input",type:"file",accept:"image/*",ref:e,hidden:!0})})}function hg({src:t,alt:e,previewSrc:n,progress:r}){const i={width:`${r==null?void 0:r.toFixed(0)}%`};return B("div",{children:[h("img",{className:n?"opacity-40":"",src:n||t,alt:e||`upload in progress, ${r} `}),n&&r&&!t?h("div",{className:"absolute inset-0 flex items-center min-w-full bg-white/50 justify-center overflow-hidden",children:h("div",{className:"not-kg-prose bg-grey-200 rounded-full shadow w-[60%]",children:h("div",{className:"bg-green rounded-full text-xs leading-none py-1 text-center text-white",style:i})})}):h(Pt,{})]})}function fg({onFileChange:t,setFileInputRef:e,handleDrag:n,handleDrop:r,isDraggedOver:i}){const o=S.default.useRef(null);return B(Pt,{children:[h(gg,{handleDrag:n,handleDrop:r,filePicker:()=>Dr({fileInputRef:o}),desc:"Click to select an image",Icon:Vr,isDraggedOver:i}),h(ha,{filePicker:()=>Dr({fileInputRef:o}),onFileChange:t,fileInputRef:s=>{o.current=s,e(o)}})]})}const pg=({src:t,altText:e,previewSrc:n,uploadProgress:r,onFileChange:i,setFileInputRef:o,handleDrag:l,handleDrop:s,isDraggedOver:a})=>n||t?h(hg,{src:t,alt:e,previewSrc:n,progress:r}):h(fg,{handleDrag:l,onFileChange:i,setFileInputRef:o,handleDrop:s,isDraggedOver:a});function fa({isSelected:t,src:e,onFileChange:n,caption:r,setCaption:i,altText:o,setAltText:l,setFigureRef:s,fileInputRef:a,handleDrag:c,handleDrop:d,isDraggedOver:u,cardWidth:g,previewSrc:m,uploadProgress:f}){const _=S.default.useRef(null);return S.default.useEffect(()=>{s&&s(_)},[_,s]),h(Pt,{children:B("figure",{"data-kg-card-width":g,ref:_,children:[h(pg,{src:e,altText:o,previewSrc:m,uploadProgress:f,onFileChange:n,setFileInputRef:N=>{a&&(a.current=N.current)},handleDrag:c,handleDrop:d,isDraggedOver:u}),h(dg,{altText:o||"",setAltText:l,altTextPlaceholder:"Type alt text for image (optional)",caption:r||"",setCaption:i,captionPlaceholder:"Type caption for image (optional)",isSelected:t})]})})}fa.propTypes={isSelected:xe.exports.bool,setAltText:xe.exports.func,caption:xe.exports.string,altText:xe.exports.string,setCaption:xe.exports.func,src:xe.exports.string,isDraggedOver:xe.exports.bool,previewSrc:xe.exports.string,uploadProgress:xe.exports.number};const mg={bold:ko,italic:Co,headingOne:Eo,headingTwo:No,quote:To,quoteOne:t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 8.00011H6C6.26522 8.00011 6.51957 8.10546 6.70711 8.293C6.89464 8.48054 7 8.73489 7 9.00011V13.0001C7 13.2653 6.89464 13.5197 6.70711 13.7072C6.51957 13.8947 6.26522 14.0001 6 14.0001H3C2.73478 14.0001 2.48043 13.8947 2.29289 13.7072C2.10536 13.5197 2 13.2653 2 13.0001V5.08211C2 3.90611 2.906 2.96211 4.538 2.11311C4.65448 2.05244 4.78177 2.0153 4.91261 2.00383C5.04344 1.99235 5.17525 2.00675 5.30052 2.04622C5.42579 2.08568 5.54205 2.14944 5.64268 2.23383C5.74331 2.31823 5.82633 2.42162 5.887 2.53811C5.94767 2.65459 5.9848 2.78188 5.99628 2.91271C6.00776 3.04355 5.99335 3.17536 5.95389 3.30063C5.91442 3.42589 5.85067 3.54216 5.76627 3.64279C5.68187 3.74342 5.57848 3.82644 5.462 3.88711C4.884 4.18711 4.469 4.47611 4.222 4.73411C4.054 4.90811 4 5.02011 4 5.08211V8.00011ZM13 8.00011C13.2652 8.00011 13.5196 8.10546 13.7071 8.293C13.8946 8.48054 14 8.73489 14 9.00011V9.5366C13.6143 9.60243 13.2536 9.7523 12.937 9.9445L12.9298 9.9489L12.4315 10.2608C11.9856 10.5357 11.5 11.0479 11.5 11.8252C11.5 12.5688 11.9611 13.2015 12.6323 13.4311V14.0001H10C9.73478 14.0001 9.48043 13.8947 9.29289 13.7072C9.10536 13.5197 9 13.2653 9 13.0001V5.08211C9 3.90611 9.906 2.96211 11.538 2.11311C11.6545 2.05244 11.7818 2.0153 11.9126 2.00383C12.0434 1.99235 12.1753 2.00675 12.3005 2.04622C12.4258 2.08568 12.5421 2.14944 12.6427 2.23383C12.7433 2.31823 12.8263 2.42162 12.887 2.53811C12.9477 2.65459 12.9848 2.78188 12.9963 2.91271C13.0078 3.04355 12.9934 3.17536 12.9539 3.30063C12.9144 3.42589 12.8507 3.54216 12.7663 3.64279C12.6819 3.74342 12.5785 3.82644 12.462 3.88711C11.884 4.18711 11.469 4.47611 11.222 4.73411C11.054 4.90811 11 5.02011 11 5.08211V8.00011H13ZM14.5428 15.4344C14.1182 15.4344 13.8823 15.1783 13.8823 14.7267V11.96H13.8722L13.6397 12.1082C13.4274 12.2329 13.3229 12.2734 13.1948 12.2734C12.9354 12.2734 12.75 12.0846 12.75 11.8252C12.75 11.6297 12.8646 11.4612 13.0904 11.323L13.5858 11.013C13.8688 10.8411 14.1587 10.7501 14.4249 10.7501C14.8933 10.7501 15.2 11.0635 15.2 11.5488V14.7267C15.2 15.1817 14.9641 15.4344 14.5428 15.4344Z"})),quoteTwo:t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 8.00015H6C6.26522 8.00015 6.51957 8.1055 6.70711 8.29304C6.89464 8.48058 7 8.73493 7 9.00015V13.0001C7 13.2654 6.89464 13.5197 6.70711 13.7073C6.51957 13.8948 6.26522 14.0001 6 14.0001H3C2.73478 14.0001 2.48043 13.8948 2.29289 13.7073C2.10536 13.5197 2 13.2654 2 13.0001V5.08215C2 3.90615 2.906 2.96215 4.538 2.11315C4.65448 2.05248 4.78177 2.01534 4.91261 2.00387C5.04344 1.99239 5.17525 2.00679 5.30052 2.04626C5.42579 2.08572 5.54205 2.14948 5.64268 2.23387C5.74331 2.31827 5.82633 2.42166 5.887 2.53815C5.94767 2.65463 5.9848 2.78192 5.99628 2.91275C6.00776 3.04359 5.99335 3.1754 5.95389 3.30067C5.91442 3.42593 5.85067 3.5422 5.76627 3.64283C5.68187 3.74346 5.57848 3.82648 5.462 3.88715C4.884 4.18715 4.469 4.47615 4.222 4.73415C4.054 4.90815 4 5.02015 4 5.08215V8.00015ZM13 8.00015C13.2652 8.00015 13.5196 8.1055 13.7071 8.29304C13.8946 8.48058 14 8.73493 14 9.00015V9.51812C13.4378 9.57694 12.9087 9.77735 12.4803 10.0918C11.9785 10.4601 11.5 11.0848 11.5 11.9043C11.5 12.3632 11.6772 12.8135 12.0264 13.1451C12.0604 13.1774 12.0955 13.208 12.1312 13.2369C11.9419 13.4409 11.7509 13.6922 11.6323 14.0001H10C9.73478 14.0001 9.48043 13.8948 9.29289 13.7073C9.10536 13.5197 9 13.2654 9 13.0001V5.08215C9 3.90615 9.906 2.96215 11.538 2.11315C11.6545 2.05248 11.7818 2.01534 11.9126 2.00387C12.0434 1.99239 12.1753 2.00679 12.3005 2.04626C12.4258 2.08572 12.5421 2.14948 12.6427 2.23387C12.7433 2.31827 12.8263 2.42166 12.887 2.53815C12.9477 2.65463 12.9848 2.78192 12.9963 2.91275C13.0078 3.04359 12.9934 3.1754 12.9539 3.30067C12.9144 3.42593 12.8507 3.5422 12.7663 3.64283C12.6819 3.74346 12.5785 3.82648 12.462 3.88715C11.884 4.18715 11.469 4.47615 11.222 4.73415C11.054 4.90815 11 5.02015 11 5.08215V8.00015H13ZM13.2256 15.1428C12.8903 15.1428 12.6626 14.9404 12.6626 14.6432C12.6626 14.4218 12.7891 14.2257 13.1591 13.8779L14.1616 12.907C14.4937 12.5876 14.6391 12.3789 14.6391 12.1607C14.6391 11.9045 14.4526 11.7337 14.1806 11.7337C13.9687 11.7337 13.8169 11.8255 13.6556 12.0532C13.4785 12.2872 13.3457 12.3694 13.1402 12.3694C12.8524 12.3694 12.65 12.1765 12.65 11.9045C12.65 11.2973 13.371 10.7502 14.247 10.7502C15.1546 10.7502 15.825 11.2973 15.825 12.0373C15.825 12.4959 15.5879 12.926 15.0787 13.3908L14.2881 14.1245V14.172H15.4203C15.765 14.172 15.98 14.3585 15.98 14.6621C15.98 14.9626 15.7713 15.1428 15.4203 15.1428H13.2256Z"})),link:jr,imageRegular:So,imageWide:bo,imageFull:Ro,imageReplace:Oo,add:$o,edit:t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},x.createElement("path",{d:"M16.19 3.51a.51.51 0 0 0-.71 0L4.07 14.92a.5.5 0 0 0 0 .71l4.28 4.28a.48.48 0 0 0 .7 0L20.47 8.5a.51.51 0 0 0 0-.71ZM3 16.71a.51.51 0 0 0-.47-.13.48.48 0 0 0-.36.33L0 23.33a.49.49 0 0 0 .12.51.5.5 0 0 0 .54.16l6.42-2.14a.52.52 0 0 0 .33-.36.49.49 0 0 0-.14-.5ZM23 1a3.6 3.6 0 0 0-5 0l-.71.71a.5.5 0 0 0 0 .71l4.28 4.28a.51.51 0 0 0 .7 0L23 6a3.53 3.53 0 0 0 0-5Z"})),snippet:Jn};function pa({children:t,...e}){return h("ul",{className:"m-0 relative flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white after:absolute after:top-[36px] after:left-[calc(50%-8px)] after:w-0 after:border-t-8 after:border-t-black after:border-x-8 after:border-x-transparent",...e,children:t})}function Ke({label:t,isActive:e,onClick:n,icon:r,...i}){const o=mg[r];return h("li",{className:"m-0 flex p-0 first:m-0",...i,children:h("button",{type:"button",className:"flex h-9 w-9 items-center justify-center",onClick:n,"aria-label":t,"data-kg-active":e,children:h(o,{className:e?"fill-green":"fill-white"})})})}function Zi(){return h("li",{className:"m-0 mx-1 h-5 w-px bg-grey-900"})}function xg({isVisible:t,children:e,...n}){if(t)return h("div",{className:"not-kg-prose absolute top-[-44px] left-1/2 -translate-x-1/2 z-[1000]",...n,children:e})}async function ma(t){const e=new Image;return e.src=t,new Promise((n,r)=>{e.onload=()=>{n({width:e.naturalWidth,height:e.naturalHeight})},e.onerror=r})}const Ji=async(t,e,n,r)=>{if(!t)return;let i=URL.createObjectURL(t[0]);i&&await n.update(()=>{w.$getNodeByKey(e).setPreviewSrc(i)});const{width:o,height:l}=await ma(i),s=await r.imageUploader(t);await n.update(()=>{const a=w.$getNodeByKey(e);a.setImgWidth(o),a.setImgHeight(l),a.setSrc(s.src)})};function _g({nodeKey:t,src:e,altText:n,caption:r,triggerFileDialog:i,previewSrc:o}){const[l]=ie.useLexicalComposerContext(),[s,a]=S.default.useState(!1),{imageUploader:c}=S.default.useContext(Ar),{isSelected:d,cardWidth:u,setCardWidth:g}=S.default.useContext(oa),m=S.default.useRef(),f=S.default.useRef(),_=async k=>{const R=k.target.files;return await Ji(R,t,l,c)},C=k=>{l.update(()=>{w.$getNodeByKey(t).setCaption(k)})},N=k=>{l.update(()=>{w.$getNodeByKey(t).setAltText(k)})};S.default.useEffect(()=>{if(!i)return;const k=setTimeout(()=>{Dr({fileInputRef:m}),l.update(()=>{w.$getNodeByKey(t).setTriggerFileDialog(!1)})});return()=>{clearTimeout(k)}});const p=k=>{l.update(()=>{w.$getNodeByKey(t).setCardWidth(k),g(k)})},v=k=>{k.preventDefault(),k.stopPropagation(),k.type==="dragenter"||k.type==="dragover"?a(!0):k.type==="dragleave"&&a(!1)},T=async k=>{if(k.preventDefault(),k.stopPropagation(),k.dataTransfer.files&&k.dataTransfer.files[0]){const R=k.dataTransfer.files;R&&(a(!1),await Ji(R,t,l,c))}},E=(c==null?void 0:c.uploadProgress)||0;return B(Pt,{children:[h(fa,{isSelected:d,fileInputRef:m,onFileChange:_,src:e,altText:n,setAltText:N,caption:r,setCaption:C,handleDrag:v,handleDrop:T,isDraggedOver:s,cardWidth:u,previewSrc:o,uploadProgress:E}),B(xg,{isVisible:e&&d,"data-kg-card-toolbar":"image",children:[h(ha,{onFileChange:_,fileInputRef:f}),B(pa,{children:[h(Ke,{label:"Regular",icon:"imageRegular",isActive:u==="regular",onClick:()=>p("regular")}),h(Ke,{label:"Wide",icon:"imageWide",isActive:u==="wide",onClick:()=>p("wide")}),h(Ke,{label:"Full",icon:"imageFull",isActive:u==="full",onClick:()=>p("full")}),h(Zi,{}),h(Ke,{label:"Link",icon:"link",isActive:!1}),h(Ke,{label:"Replace",icon:"imageReplace",isActive:!1,onClick:()=>Dr({fileInputRef:f})}),h(Zi,{}),h(Ke,{label:"Snippet",icon:"snippet",isActive:!1})]})]})]})}class rn extends Gi{constructor(n={},r){super(n,r);Ee(this,"__triggerFileDialog",!1);Ee(this,"__previewSrc",null);const{previewSrc:i,triggerFileDialog:o}=n;this.__previewSrc=i||"",this.__triggerFileDialog=!n.src&&o||!1}getDataset(){const n=super.getDataset();return n.__previewSrc=this.__previewSrc,n.__triggerFileDialog=this.__triggerFileDialog,n}getPreviewSrc(){return this.__previewSrc}setPreviewSrc(n){const r=this.getWritable();return r.__previewSrc=n}setTriggerFileDialog(n){const r=this.getWritable();return r.__triggerFileDialog=n}createDOM(){return document.createElement("div")}decorate(){return h(Yi,{nodeKey:this.getKey(),width:this.__cardWidth,children:h(_g,{nodeKey:this.getKey(),src:this.__src,altText:this.__altText,caption:this.__caption,triggerFileDialog:this.__triggerFileDialog,previewSrc:this.getPreviewSrc()})})}}Ee(rn,"kgMenu",[{label:"Image",desc:"Upload, or embed with /image [url]",Icon:Ao,insertCommand:Mr,insertParams:{triggerFileDialog:!0},matches:["image","img"],queryParams:["src"]},{section:"Embed",label:"Unsplash",desc:"/unsplash [search term or url]",Icon:Yr,insertCommand:Mr,insertParams:{triggerFileDialog:!1,triggerFileSelector:"unsplash"},matches:["unsplash","uns"],queryParams:["src"]}]);const xa=t=>new rn(t);function vg(t){return t instanceof rn}const _a=[nt.HeadingNode,Qe.ListNode,Qe.ListItemNode,nt.QuoteNode,Rr,Wi.LinkNode,nn,St,rn],wg={paragraph:void 0,heading:{h1:void 0,h2:void 0,h3:void 0,h4:void 0,h5:void 0,h6:void 0},quote:void 0,aside:void 0,list:{nested:{listitem:"!list-none"},ol:void 0,ul:void 0,listitem:void 0},link:void 0,text:{bold:void 0,italic:"italic",overflowed:void 0,hashtag:void 0,underline:void 0,strikethrough:void 0,underlinestrikethrough:void 0,code:void 0},code:void 0};function yg(t){console.error(t)}const kg={namespace:"KoenigEditor",theme:wg},Cg=({initialEditorState:t,nodes:e=[..._a],onError:n=yg,imageUploadFunction:r,children:i})=>{const o=S.default.useMemo(()=>Object.assign({},kg,{nodes:e,editorState:t,onError:n}),[t,e,n]),l=S.default.useRef(null),s=r||function(){console.error("requires imageUploadFunction to be passed to KoenigComposer component, eg <KoenigComposer imageUploadFunction={function} />")};return h(mu.LexicalComposer,{initialConfig:o,children:h(Ar.Provider,{value:{imageUploader:s,editorContainerRef:l},children:i})})};var va={},ut={},Le=w;function Xi(t,e=!0){return t?!1:(t=wa(),e&&(t=t.trim()),t==="")}function wa(){return Le.$getRoot().getTextContent()}function ya(t,e){if(!e||!Xi(t,!1)||(t=Le.$getRoot().getChildren(),e=t.length,1<e))return!1;for(let r=0;r<e;r++){var n=t[r];if(Le.$isElementNode(n)){if(n.__type!=="paragraph"||n.__indent!==0)return!1;n=n.getChildren();let i=n.length;for(let o=0;o<i;o++)if(!Le.$isTextNode(n[r]))return!1}}return!0}ut.$canShowPlaceholder=ya,ut.$canShowPlaceholderCurry=function(t,e){return()=>ya(t,e)},ut.$findTextIntersectionFromCharacters=function(t,e){var n=t.getFirstChild();t=0;e:for(;n!==null;){if(Le.$isElementNode(n)){var r=n.getFirstChild();if(r!==null){n=r;continue}}else if(Le.$isTextNode(n)){if(r=n.getTextContentSize(),t+r>e)return{node:n,offset:e-t};t+=r}if(r=n.getNextSibling(),r!==null)n=r;else{for(n=n.getParent();n!==null;){if(r=n.getNextSibling(),r!==null){n=r;continue e}n=n.getParent()}break}}return null},ut.$isRootTextContentEmpty=Xi,ut.$isRootTextContentEmptyCurry=function(t,e){return()=>Xi(t,e)},ut.$rootTextContent=wa,ut.registerLexicalTextEntity=function(t,e,n,r){let i=l=>{const s=Le.$createTextNode(l.getTextContent());s.setFormat(l.getFormat()),l.replace(s)},o=t.registerNodeTransform(Le.TextNode,l=>{if(l.isSimpleText()){var s=l.getPreviousSibling(),a=l.getTextContent(),c=l;if(Le.$isTextNode(s)){var d=s.getTextContent(),u=e(d+a);if(s instanceof n){if(u===null||s.getLatest().__mode!==0){i(s);return}if(u=u.end-d.length,0<u){c=a.slice(0,u),c=d+c,s.select(),s.setTextContent(c),u===a.length?l.remove():(s=a.slice(u),l.setTextContent(s));return}}else if(u===null||u.start<d.length)return}for(;;){if(l=e(a),a=u=l===null?"":a.slice(l.end),u===""){if(d=c.getNextSibling(),Le.$isTextNode(d)){if(u=c.getTextContent()+d.getTextContent(),u=e(u),u===null){d instanceof n?i(d):d.markDirty();break}else if(u.start!==0)break}}else if(d=e(u),d!==null&&d.start===0)break;if(l===null)break;if(l.start===0&&Le.$isTextNode(s)&&s.isTextEntity())continue;let g;if(l.start===0?[g,c]=c.splitText(l.end):[,g,c]=c.splitText(l.start,l.end),l=r(g),g.replace(l),c==null)break}}});return t=t.registerNodeTransform(n,l=>{var s=l.getTextContent();const a=e(s);a===null||a.start!==0?i(l):s.length>a.end?l.splitText(a.end):(s=l.getPreviousSibling(),Le.$isTextNode(s)&&s.isTextEntity()&&(i(s),i(l)),s=l.getNextSibling(),Le.$isTextNode(s)&&s.isTextEntity()&&(i(s),l instanceof n&&i(l)))}),[o,t]};var Eg=ut,ka={},Lr=w;ka.registerDragonSupport=function(t){let e=window.location.origin,n=r=>{if(r.origin===e){var i=t.getRootElement();if(document.activeElement===i&&(i=r.data,typeof i=="string")){try{var o=JSON.parse(i)}catch{return}if(o&&o.protocol==="nuanria_messaging"&&o.type==="request"&&(o=o.payload)&&o.functionId==="makeChanges"&&(o=o.args)){const[l,s,a,c,d]=o;t.update(()=>{const u=Lr.$getSelection();if(Lr.$isRangeSelection(u)){var g=u.anchor;let m=g.getNode(),f=0,_=0;Lr.$isTextNode(m)&&0<=l&&0<=s&&(f=l,_=l+s,u.setTextNodeRange(m,f,m,_)),(f!==_||a!=="")&&(u.insertRawText(a),m=g.getNode()),Lr.$isTextNode(m)&&(f=c,_=c+d,g=m.getTextContentSize(),f=f>g?g:f,_=_>g?g:_,u.setTextNodeRange(m,f,m,_)),r.stopImmediatePropagation()}})}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}};var Ng=ka,Tg=ie,We=S.default,Sg=Eg,Ca=me,Ea=Yc.default,bg=Ng,Rg=nt,qi=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?We.useLayoutEffect:We.useEffect;function Na(t){return t.getEditorState().read(Sg.$canShowPlaceholderCurry(t.isComposing(),t.isEditable()))}function Og(t){let[e,n]=We.useState(()=>Na(t));return qi(()=>{function r(){let i=Na(t);n(i)}return r(),Ca.mergeRegister(t.registerUpdateListener(()=>{r()}),t.registerEditableListener(()=>{r()}))},[t]),e}function $g(t,e){let[n,r]=We.useState(()=>t.getDecorators());return qi(()=>t.registerDecoratorListener(i=>{Ea.flushSync(()=>{r(i)})}),[t]),We.useEffect(()=>{r(t.getDecorators())},[t]),We.useMemo(()=>{let i=[],o=Object.keys(n);for(let s=0;s<o.length;s++){var l=o[s];let a=We.createElement(e,{onError:c=>t._onError(c)},We.createElement(We.Suspense,{fallback:null},n[l]));l=t.getElementByKey(l),l!==null&&i.push(Ea.createPortal(a,l))}return i},[e,n,t])}function Mg(t){qi(()=>Ca.mergeRegister(Rg.registerRichText(t),bg.registerDragonSupport(t)),[t])}va.RichTextPlugin=function({contentEditable:t,placeholder:e,ErrorBoundary:n}){let[r]=Tg.useLexicalComposerContext(),i=Og(r);return n=$g(r,n),Mg(r),We.createElement(We.Fragment,null,t,i&&e,n)};var Ag=va,Dg=vd(Td).jsx,Ir=S.default;function Qi(t,e){return Qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Qi(t,e)}function Lg(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Qi(t,e)}function Ig(t,e){return t===void 0&&(t=[]),e===void 0&&(e=[]),t.length!==e.length||t.some(function(n,r){return!Object.is(n,e[r])})}var Ta={error:null},Pg=function(t){function e(){for(var r,i=arguments.length,o=Array(i),l=0;l<i;l++)o[l]=arguments[l];return r=t.call.apply(t,[this].concat(o))||this,r.state=Ta,r.resetErrorBoundary=function(){for(var s,a=arguments.length,c=Array(a),d=0;d<a;d++)c[d]=arguments[d];r.props.onReset==null||(s=r.props).onReset.apply(s,c),r.reset()},r}Lg(e,t),e.getDerivedStateFromError=function(r){return{error:r}};var n=e.prototype;return n.reset=function(){this.setState(Ta)},n.componentDidCatch=function(r,i){var o,l;(o=(l=this.props).onError)==null||o.call(l,r,i)},n.componentDidUpdate=function(r,i){var o=this.props.resetKeys;if(this.state.error!==null&&i.error!==null&&Ig(r.resetKeys,o)){var l,s;(l=(s=this.props).onResetKeysChange)==null||l.call(s,r.resetKeys,o),this.reset()}},n.render=function(){var r=this.state.error,i=this.props,o=i.fallbackRender,l=i.FallbackComponent;if(i=i.fallback,r!==null){if(r={error:r,resetErrorBoundary:this.resetErrorBoundary},Ir.isValidElement(i))return i;if(typeof o=="function")return o(r);if(l)return Ir.createElement(l,r);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},e}(Ir.Component),Fg=function({children:t,onError:e}){return Ir.createElement(Pg,{fallback:Dg("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:e},t)},zg=Fg,Sa={},Bg=ie,Kn=S.default,Hg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Kn.useLayoutEffect:Kn.useEffect;Sa.ContentEditable=function({ariaActiveDescendantID:t,ariaAutoComplete:e,ariaControls:n,ariaDescribedBy:r,ariaExpanded:i,ariaLabel:o,ariaLabelledBy:l,ariaMultiline:s,ariaOwneeID:a,ariaRequired:c,autoCapitalize:d,autoComplete:u,autoCorrect:g,className:m,id:f,role:_="textbox",spellCheck:C=!0,style:N,tabIndex:p,testid:v}){let[T]=Bg.useLexicalComposerContext(),[E,k]=Kn.useState(!1),R=Kn.useCallback(I=>{T.setRootElement(I)},[T]);return Hg(()=>(k(T.isEditable()),T.registerEditableListener(I=>{k(I)})),[T]),Kn.createElement("div",{"aria-activedescendant":E?t:null,"aria-autocomplete":E?e:null,"aria-controls":E?n:null,"aria-describedby":r,"aria-expanded":E&&_==="combobox"?!!i:null,"aria-label":o,"aria-labelledby":l,"aria-multiline":s,"aria-owns":E?a:null,"aria-required":c,autoCapitalize:d!==void 0?String(d):void 0,autoComplete:u,autoCorrect:g!==void 0?String(g):void 0,className:m,contentEditable:E,"data-testid":v,id:f,ref:R,role:E?_:void 0,spellCheck:C,style:N,tabIndex:p})};var Kg=Sa,eo={},to={},Wg=me,Q=w;function Ug(t,e,n,r,i){if(t===null||n.size===0&&r.size===0&&!i)return 0;var o=e._selection,l=t._selection;if(i)return 1;if(!(Q.$isRangeSelection(o)&&Q.$isRangeSelection(l)&&l.isCollapsed()&&o.isCollapsed()))return 0;i=e._nodeMap;let s=[];for(let a of n)n=i.get(a),n!==void 0&&s.push(n);for(let[a,c]of r)c&&(r=i.get(a),r===void 0||Q.$isRootNode(r)||s.push(r));return s.length===0?0:1<s.length?(r=e._nodeMap,e=r.get(o.anchor.key),l=r.get(l.anchor.key),e&&l&&!t._nodeMap.has(e.__key)&&Q.$isTextNode(e)&&e.__text.length===1&&o.anchor.offset===1?2:0):(e=s[0],t=t._nodeMap.get(e.__key),!Q.$isTextNode(t)||!Q.$isTextNode(e)||t.__mode!==e.__mode||(t=t.__text,e=e.__text,t===e)||(o=o.anchor,l=l.anchor,o.key!==l.key||o.type!=="text")?0:(o=o.offset,l=l.offset,t=e.length-t.length,t===1&&l===o-1?2:t===-1&&l===o+1?3:t===-1&&l===o?4:0))}function jg(t,e){let n=Date.now(),r=0;return(i,o,l,s,a,c)=>{let d=Date.now();if(c.has("historic"))return r=0,n=d,2;let u=Ug(i,o,s,a,t.isComposing()),g=(()=>{var m=l===null||l.editor===t,f=c.has("history-push");if(!f&&m&&c.has("history-merge"))return 0;if(i===null)return 1;const _=o._selection,C=i._selection;return 0<s.size||0<a.size?f===!1&&u!==0&&u===r&&d<n+e&&m||s.size===1&&(f=Array.from(s)[0],m=i._nodeMap.get(f),f=o._nodeMap.get(f),m=Q.$isTextNode(m)&&Q.$isTextNode(f)?m.__type===f.__type&&m.__text===f.__text&&m.__mode===f.__mode&&m.__detail===f.__detail&&m.__style===f.__style&&m.__format===f.__format&&m.__parent===f.__parent:!1,m)?0:1:C===null&&_!==null?0:2})();return n=d,r=u,g}}to.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},to.registerHistory=function(t,e,n){let r=jg(t,n);n=({editorState:l,prevEditorState:s,dirtyLeaves:a,dirtyElements:c,tags:d})=>{const u=e.current,g=e.redoStack,m=e.undoStack,f=u===null?null:u.editorState;if(u===null||l!==f){if(a=r(s,l,u,a,c,d),a===1)g.length!==0&&(e.redoStack=[]),u!==null&&(m.push({...u,undoSelection:s.read(Q.$getSelection)}),t.dispatchCommand(Q.CAN_UNDO_COMMAND,!0));else if(a===2)return;e.current={editor:t,editorState:l}}};let i=Wg.mergeRegister(t.registerCommand(Q.UNDO_COMMAND,()=>{let l=e.redoStack,s=e.undoStack;if(s.length!==0){let a=e.current,c=s.pop();a!==null&&(l.push(a),t.dispatchCommand(Q.CAN_REDO_COMMAND,!0)),s.length===0&&t.dispatchCommand(Q.CAN_UNDO_COMMAND,!1),e.current=c||null,c&&c.editor.setEditorState(c.editorState.clone(c.undoSelection),{tag:"historic"})}return!0},Q.COMMAND_PRIORITY_EDITOR),t.registerCommand(Q.REDO_COMMAND,()=>{let l=e.redoStack;var s=e.undoStack;if(l.length!==0){let a=e.current;a!==null&&(s.push(a),t.dispatchCommand(Q.CAN_UNDO_COMMAND,!0)),s=l.pop(),l.length===0&&t.dispatchCommand(Q.CAN_REDO_COMMAND,!1),e.current=s||null,s&&s.editor.setEditorState(s.editorState,{tag:"historic"})}return!0},Q.COMMAND_PRIORITY_EDITOR),t.registerCommand(Q.CLEAR_EDITOR_COMMAND,()=>(e.undoStack=[],e.redoStack=[],e.current=null,!1),Q.COMMAND_PRIORITY_EDITOR),t.registerCommand(Q.CLEAR_HISTORY_COMMAND,()=>(e.undoStack=[],e.redoStack=[],e.current=null,t.dispatchCommand(Q.CAN_REDO_COMMAND,!1),t.dispatchCommand(Q.CAN_UNDO_COMMAND,!1),!0),Q.COMMAND_PRIORITY_EDITOR),t.registerUpdateListener(n)),o=t.registerUpdateListener(n);return()=>{i(),o()}};var Yg=to,Vg=ie,no=Yg,ba=S.default;function Gg(t,e,n=1e3){let r=ba.useMemo(()=>e||no.createEmptyHistoryState(),[e]);ba.useEffect(()=>no.registerHistory(t,r,n),[n,t,r])}eo.createEmptyHistoryState=no.createEmptyHistoryState,eo.HistoryPlugin=function({externalHistoryState:t}){let[e]=Vg.useLexicalComposerContext();return Gg(e,t),null};var Zg=eo,Ra={},Jg=ie,Oa=S.default,Xg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Oa.useLayoutEffect:Oa.useEffect;Ra.OnChangePlugin=function({ignoreHistoryMergeTagChange:t=!0,ignoreSelectionChange:e=!1,onChange:n}){let[r]=Jg.useLexicalComposerContext();return Xg(()=>{if(n)return r.registerUpdateListener(({editorState:i,dirtyElements:o,dirtyLeaves:l,prevEditorState:s,tags:a})=>{e&&o.size===0&&l.size===0||t&&a.has("history-merge")||s.isEmpty()||n(i,r)})},[r,t,e,n]),null};var qg=Ra,$a={},Ue=Qe,Qg=ie,Ma=S.default,e1=me,it=w;function t1(t){Ma.useEffect(()=>e1.mergeRegister(t.registerCommand(it.INDENT_CONTENT_COMMAND,()=>(Ue.indentList(),!1),it.COMMAND_PRIORITY_LOW),t.registerCommand(it.OUTDENT_CONTENT_COMMAND,()=>(Ue.outdentList(),!1),it.COMMAND_PRIORITY_LOW),t.registerCommand(Ue.INSERT_ORDERED_LIST_COMMAND,()=>(Ue.insertList(t,"number"),!0),it.COMMAND_PRIORITY_LOW),t.registerCommand(Ue.INSERT_UNORDERED_LIST_COMMAND,()=>(Ue.insertList(t,"bullet"),!0),it.COMMAND_PRIORITY_LOW),t.registerCommand(Ue.REMOVE_LIST_COMMAND,()=>(Ue.removeList(t),!0),it.COMMAND_PRIORITY_LOW),t.registerCommand(it.INSERT_PARAGRAPH_COMMAND,()=>!!Ue.$handleListInsertParagraph(),it.COMMAND_PRIORITY_LOW)),[t])}$a.ListPlugin=function(){let[t]=Qg.useLexicalComposerContext();return Ma.useEffect(()=>{if(!t.hasNodes([Ue.ListNode,Ue.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),t1(t),null};var n1=$a;const Aa=10;function Ze(t){const e=w.$createNodeSelection();e.add(t.getKey()),w.$setSelection(e)}function Da(t){t.nodeType===Node.TEXT_NODE&&(t=t.parentNode);const e="[data-lexical-editor] > *";return t.closest(e)}function r1({editor:t,containerElem:e}){return S.default.useEffect(()=>{const n=r=>{e.current.contains(r.target)||t.update(()=>{const i=w.$getSelection();w.$isNodeSelection(i)&&w.$setSelection(null)})};return window.addEventListener("mousedown",n),()=>{window.removeEventListener("mousedown",n)}},[t,e]),S.default.useEffect(()=>me.mergeRegister(t.registerCommand(w.KEY_ARROW_UP_COMMAND,()=>{const n=w.$getSelection();if(w.$isNodeSelection(n)){const i=n.getNodes()[0].getPreviousSibling();if(!i)return!0;if(w.$isDecoratorNode(i))return Ze(i),!0}if(w.$isRangeSelection(n)&&n.isCollapsed){const r=n.anchor.getNode().getTopLevelElement(),i=window.getSelection(),o=(r==null?void 0:r.getTextContent().trim())===""&&n.anchor.offset===0,l=n.anchor.offset===0&&n.focus.offset===0;if(o||l){const s=r.getPreviousSibling();if(w.$isDecoratorNode(s))return Ze(s),!0}else{const a=i.getRangeAt(0).cloneRange().getClientRects();if(a.length>0){const c=a[1]||a[0],u=Da(i.anchorNode).getBoundingClientRect();if(Math.abs(c.top-u.top)<=Aa){const m=r.getPreviousSibling();if(w.$isDecoratorNode(m))return Ze(m),!0}}}}return!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_DOWN_COMMAND,()=>{const n=w.$getSelection();if(w.$isNodeSelection(n)){const i=n.getNodes()[0].getNextSibling();if(w.$isDecoratorNode(i))return Ze(i),!0}if(w.$isRangeSelection(n)&&n.isCollapsed){const r=n.anchor.getNode().getTopLevelElement(),i=window.getSelection(),o=Da(i.anchorNode),l=(r==null?void 0:r.getTextContent().trim())===""&&n.anchor.offset===0,s=i.rangeCount!==0&&i.anchorNode===o&&i.anchorOffset===o.children.length-1&&i.focusOffset===o.children.length-1;if(l||s){const a=r.getNextSibling();if(w.$isDecoratorNode(a))return Ze(a),!0}else{const c=i.getRangeAt(0).cloneRange().getClientRects();if(c.length>0){const d=c[0],u=o.getBoundingClientRect();if(Math.abs(d.bottom-u.bottom)<Aa){const g=r.getNextSibling();if(w.$isDecoratorNode(g))return Ze(g),!0}}}}return!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_LEFT_COMMAND,n=>{const r=w.$getSelection();if(!w.$isNodeSelection(r))return!1;const l=r.getNodes()[0].getTopLevelElement().getPreviousSibling();return w.$isDecoratorNode(l)?(n.preventDefault(),Ze(l),!0):!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_RIGHT_COMMAND,n=>{const r=w.$getSelection();if(!w.$isNodeSelection(r))return!1;const i=r.getNodes(),s=i[i.length-1].getTopLevelElement().getNextSibling();return w.$isDecoratorNode(s)?(n.preventDefault(),Ze(s),!0):!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_BACKSPACE_COMMAND,n=>{const r=w.$getSelection();if(w.$isNodeSelection(r))return!1;if(w.$isRangeSelection(r)&&r.isCollapsed){const o=r.anchor.getNode(),l=o.getTopLevelElement(),s=l.getPreviousSibling(),a=r.anchor.offset===0&&r.focus.offset===0;if(a&&Qe.$isListItemNode(o)&&o.getIndent()===0&&o.isEmpty())return n.preventDefault(),t.dispatchCommand(w.INSERT_PARAGRAPH_COMMAND),!0;if(w.$isParagraphNode(o)&&o.isEmpty()&&w.$isDecoratorNode(s))return l.remove(),Ze(s),!0;if(a&&Qe.$isListItemNode(o.getParent())){const c=o.getParent();if(c.getIndent()===0){n.preventDefault();const d=w.$createParagraphNode();return d.append(...c.getChildren()),c.replace(d),!0}}if(a&&w.$isDecoratorNode(s))return n.preventDefault(),s.remove(),!0}return!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_DELETE_COMMAND,n=>{const r=w.$getSelection();if(w.$isNodeSelection(r))return!1;if(w.$isRangeSelection(r)&&r.isCollapsed){const i=r.anchor,o=i.getNode(),l=o.getTopLevelElement(),s=l.getNextSibling();if((l==null?void 0:l.getTextContent().trim())===""&&r.anchor.offset===0&&w.$isDecoratorNode(s))return n.preventDefault(),l.remove(),Ze(s),!0;if((i.type==="element"&&w.$isElementNode(o)&&i.offset===o.getChildrenSize()||i.type==="text"&&i.offset===o.getTextContentSize())&&w.$isDecoratorNode(s))return n.preventDefault(),s.remove(),!0}return!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.PASTE_COMMAND,n=>{var s;const r=(s=n==null?void 0:n.clipboardData)==null?void 0:s.getData("text"),i=r==null?void 0:r.match(/^(https?:\/\/[^\s]+)$/),o=w.$getSelection(),l=o.getTextContent();if(i&&l.length>0){const a=i[1];if(w.$isRangeSelection(o)){const c=o.extract()[0],d=Wi.$createLinkNode(a),u=w.$createTextNode(l);u.setFormat(c.getFormat()),d.append(u),c.replace(d)}return!0}},w.COMMAND_PRIORITY_HIGH))),null}function La({containerElem:t=document.querySelector(".koenig-editor")}){const[e]=ie.useLexicalComposerContext();return r1({editor:e,containerElem:t})}var te={},le={},Ia={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
32
32
  * Prism: Lightweight, robust, elegant syntax highlighting
33
33
  *
34
34
  * @license MIT <https://opensource.org/licenses/MIT>
35
35
  * @author Lea Verou <https://lea.verou.me>
36
36
  * @namespace
37
37
  * @public
38
- */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,l={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function p(x){return x instanceof a?new a(x.type,p(x.content),x.alias):Array.isArray(x)?x.map(p):x.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(p){return Object.prototype.toString.call(p).slice(8,-1)},objId:function(p){return p.__id||Object.defineProperty(p,"__id",{value:++o}),p.__id},clone:function p(x,T){T=T||{};var E,k;switch(s.util.type(x)){case"Object":if(k=s.util.objId(x),T[k])return T[k];E={},T[k]=E;for(var O in x)x.hasOwnProperty(O)&&(E[O]=p(x[O],T));return E;case"Array":return k=s.util.objId(x),T[k]?T[k]:(E=[],T[k]=E,x.forEach(function(D,$){E[$]=p(D,T)}),E);default:return x}},getLanguage:function(p){for(;p;){var x=i.exec(p.className);if(x)return x[1].toLowerCase();p=p.parentElement}return"none"},setLanguage:function(p,x){p.className=p.className.replace(RegExp(i,"gi"),""),p.classList.add("language-"+x)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(E){var p=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(p){var x=document.getElementsByTagName("script");for(var T in x)if(x[T].src==p)return x[T]}return null}},isActive:function(p,x,T){for(var E="no-"+x;p;){var k=p.classList;if(k.contains(x))return!0;if(k.contains(E))return!1;p=p.parentElement}return!!T}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(p,x){var T=s.util.clone(s.languages[p]);for(var E in x)T[E]=x[E];return T},insertBefore:function(p,x,T,E){E=E||s.languages;var k=E[p],O={};for(var D in k)if(k.hasOwnProperty(D)){if(D==x)for(var $ in T)T.hasOwnProperty($)&&(O[$]=T[$]);T.hasOwnProperty(D)||(O[D]=k[D])}var W=E[p];return E[p]=O,s.languages.DFS(s.languages,function(P,H){H===W&&P!=p&&(this[P]=O)}),O},DFS:function p(x,T,E,k){k=k||{};var O=s.util.objId;for(var D in x)if(x.hasOwnProperty(D)){T.call(x,D,x[D],E||D);var $=x[D],W=s.util.type($);W==="Object"&&!k[O($)]?(k[O($)]=!0,p($,T,null,k)):W==="Array"&&!k[O($)]&&(k[O($)]=!0,p($,T,D,k))}}},plugins:{},highlightAll:function(p,x){s.highlightAllUnder(document,p,x)},highlightAllUnder:function(p,x,T){var E={callback:T,container:p,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",E),E.elements=Array.prototype.slice.apply(E.container.querySelectorAll(E.selector)),s.hooks.run("before-all-elements-highlight",E);for(var k=0,O;O=E.elements[k++];)s.highlightElement(O,x===!0,E.callback)},highlightElement:function(p,x,T){var E=s.util.getLanguage(p),k=s.languages[E];s.util.setLanguage(p,E);var O=p.parentElement;O&&O.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(O,E);var D=p.textContent,$={element:p,language:E,grammar:k,code:D};function W(H){$.highlightedCode=H,s.hooks.run("before-insert",$),$.element.innerHTML=$.highlightedCode,s.hooks.run("after-highlight",$),s.hooks.run("complete",$),T&&T.call($.element)}if(s.hooks.run("before-sanity-check",$),O=$.element.parentElement,O&&O.nodeName.toLowerCase()==="pre"&&!O.hasAttribute("tabindex")&&O.setAttribute("tabindex","0"),!$.code){s.hooks.run("complete",$),T&&T.call($.element);return}if(s.hooks.run("before-highlight",$),!$.grammar){W(s.util.encode($.code));return}if(x&&r.Worker){var P=new Worker(s.filename);P.onmessage=function(H){W(H.data)},P.postMessage(JSON.stringify({language:$.language,code:$.code,immediateClose:!0}))}else W(s.highlight($.code,$.grammar,$.language))},highlight:function(p,x,T){var E={code:p,grammar:x,language:T};if(s.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=s.tokenize(E.code,E.grammar),s.hooks.run("after-tokenize",E),a.stringify(s.util.encode(E.tokens),E.language)},tokenize:function(p,x){var T=x.rest;if(T){for(var E in T)x[E]=T[E];delete x.rest}var k=new u;return g(k,k.head,p),d(p,k,x,k.head,0),h(k)},hooks:{all:{},add:function(p,x){var T=s.hooks.all;T[p]=T[p]||[],T[p].push(x)},run:function(p,x){var T=s.hooks.all[p];if(!(!T||!T.length))for(var E=0,k;k=T[E++];)k(x)}},Token:a};r.Prism=s;function a(p,x,T,E){this.type=p,this.content=x,this.alias=T,this.length=(E||"").length|0}a.stringify=function p(x,T){if(typeof x=="string")return x;if(Array.isArray(x)){var E="";return x.forEach(function(W){E+=p(W,T)}),E}var k={type:x.type,content:p(x.content,T),tag:"span",classes:["token",x.type],attributes:{},language:T},O=x.alias;O&&(Array.isArray(O)?Array.prototype.push.apply(k.classes,O):k.classes.push(O)),s.hooks.run("wrap",k);var D="";for(var $ in k.attributes)D+=" "+$+'="'+(k.attributes[$]||"").replace(/"/g,"&quot;")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+D+">"+k.content+"</"+k.tag+">"};function c(p,x,T,E){p.lastIndex=x;var k=p.exec(T);if(k&&E&&k[1]){var O=k[1].length;k.index+=O,k[0]=k[0].slice(O)}return k}function d(p,x,T,E,k,O){for(var D in T)if(!(!T.hasOwnProperty(D)||!T[D])){var $=T[D];$=Array.isArray($)?$:[$];for(var W=0;W<$.length;++W){if(O&&O.cause==D+","+W)return;var P=$[W],H=P.inside,ie=!!P.lookbehind,q=!!P.greedy,ee=P.alias;if(q&&!P.pattern.global){var ce=P.pattern.toString().match(/[imsuy]*$/)[0];P.pattern=RegExp(P.pattern.source,ce+"g")}for(var Jt=P.pattern||P,oe=E.next,de=k;oe!==x.tail&&!(O&&de>=O.reach);de+=oe.value.length,oe=oe.next){var Ce=oe.value;if(x.length>p.length)return;if(!(Ce instanceof a)){var Ke=1,ue;if(q){if(ue=c(Jt,de,p,ie),!ue||ue.index>=p.length)break;var Pr=ue.index,Ir=ue.index+ue[0].length,ft=de;for(ft+=oe.value.length;Pr>=ft;)oe=oe.next,ft+=oe.value.length;if(ft-=oe.value.length,de=ft,oe.value instanceof a)continue;for(var Bn=oe;Bn!==x.tail&&(ft<Ir||typeof Bn.value=="string");Bn=Bn.next)Ke++,ft+=Bn.value.length;Ke--,Ce=p.slice(de,ft),ue.index-=de}else if(ue=c(Jt,0,Ce,ie),!ue)continue;var Pr=ue.index,Fr=ue[0],so=Ce.slice(0,Pr),Nc=Ce.slice(Pr+Fr.length),ao=de+Ce.length;O&&ao>O.reach&&(O.reach=ao);var zr=oe.prev;so&&(zr=g(x,zr,so),de+=so.length),m(x,zr,Ke);var $1=new a(D,H?s.tokenize(Fr,H):Fr,ee,Fr);if(oe=g(x,zr,$1),Nc&&g(x,oe,Nc),Ke>1){var co={cause:D+","+W,reach:ao};d(p,x,T,oe.prev,de,co),O&&co.reach>O.reach&&(O.reach=co.reach)}}}}}}function u(){var p={value:null,prev:null,next:null},x={value:null,prev:p,next:null};p.next=x,this.head=p,this.tail=x,this.length=0}function g(p,x,T){var E=x.next,k={value:T,prev:x,next:E};return x.next=k,E.prev=k,p.length++,k}function m(p,x,T){for(var E=x.next,k=0;k<T&&E!==p.tail;k++)E=E.next;x.next=E,E.prev=x,p.length-=k}function h(p){for(var x=[],T=p.head.next;T!==p.tail;)x.push(T.value),T=T.next;return x}if(!r.document)return r.addEventListener&&(s.disableWorkerMessageHandler||r.addEventListener("message",function(p){var x=JSON.parse(p.data),T=x.language,E=x.code,k=x.immediateClose;r.postMessage(s.highlight(E,s.languages[T],T)),k&&r.close()},!1)),s;var v=s.util.currentScript();v&&(s.filename=v.src,v.hasAttribute("data-manual")&&(s.manual=!0));function C(){s.manual||s.highlightAll()}if(!s.manual){var N=document.readyState;N==="loading"||N==="interactive"&&v&&v.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return s}(e);t.exports&&(t.exports=n),typeof No<"u"&&(No.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var l={};l["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},l.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:l}};s["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var a={};a[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:s},n.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading\u2026",i=function(v,C){return"\u2716 Error "+v+" while fetching file: "+C},o="\u2716 Error: File does not exist or is empty",l={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",a="loading",c="loaded",d="failed",u="pre[data-src]:not(["+s+'="'+c+'"]):not(['+s+'="'+a+'"])';function g(v,C,N){var p=new XMLHttpRequest;p.open("GET",v,!0),p.onreadystatechange=function(){p.readyState==4&&(p.status<400&&p.responseText?C(p.responseText):p.status>=400?N(i(p.status,p.statusText)):N(o))},p.send(null)}function m(v){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(v||"");if(C){var N=Number(C[1]),p=C[2],x=C[3];return p?x?[N,Number(x)]:[N,void 0]:[N,N]}}n.hooks.add("before-highlightall",function(v){v.selector+=", "+u}),n.hooks.add("before-sanity-check",function(v){var C=v.element;if(C.matches(u)){v.code="",C.setAttribute(s,a);var N=C.appendChild(document.createElement("CODE"));N.textContent=r;var p=C.getAttribute("data-src"),x=v.language;if(x==="none"){var T=(/\.(\w+)$/.exec(p)||[,"none"])[1];x=l[T]||T}n.util.setLanguage(N,x),n.util.setLanguage(C,x);var E=n.plugins.autoloader;E&&E.loadLanguages(x),g(p,function(k){C.setAttribute(s,c);var O=m(C.getAttribute("data-range"));if(O){var D=k.split(/\r\n?|\n/g),$=O[0],W=O[1]==null?D.length:O[1];$<0&&($+=D.length),$=Math.max(0,Math.min($-1,D.length)),W<0&&(W+=D.length),W=Math.max(0,Math.min(W,D.length)),k=D.slice($,W).join(`
39
- `),C.hasAttribute("data-start")||C.setAttribute("data-start",String($+1))}N.textContent=k,n.highlightElement(N)},function(k){C.setAttribute(s,d),N.textContent=k})}}),n.plugins.fileHighlight={highlight:function(C){for(var N=(C||document).querySelectorAll(u),p=0,x;x=N[p++];)n.highlightElement(x)}};var h=!1;n.fileHighlight=function(){h||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),h=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(ya),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(d){return d=d.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(u){d!==u&&(t.languages.markdown[d].inside.content.inside[u]=t.languages.markdown[u])})}),t.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function u(g){if(!(!g||typeof g=="string"))for(var m=0,h=g.length;m<h;m++){var v=g[m];if(v.type!=="code"){u(v.content);continue}var C=v.content[1],N=v.content[3];if(C&&N&&C.type==="code-language"&&N.type==="code-block"&&typeof C.content=="string"){var p=C.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");p=(/[a-z][\w-]*/i.exec(p)||[""])[0].toLowerCase();var x="language-"+p;N.alias?typeof N.alias=="string"?N.alias=[N.alias,x]:N.alias.push(x):N.alias=[x]}}}u(d.tokens)}),t.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var u="",g=0,m=d.classes.length;g<m;g++){var h=d.classes[g],v=/language-(.+)/.exec(h);if(v){u=v[1];break}}var C=t.languages[u];if(C)d.content=t.highlight(c(d.content),C,u);else if(u&&u!=="none"&&t.plugins.autoloader){var N="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=N,t.plugins.autoloader.loadLanguages(u,function(){var p=document.getElementById(N);p&&(p.innerHTML=t.highlight(p.textContent,t.languages[u],u))})}}});var l=RegExp(t.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;function c(d){var u=d.replace(l,"");return u=u.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(g,m){if(m=m.toLowerCase(),m[0]==="#"){var h;return m[1]==="x"?h=parseInt(m.slice(2),16):h=Number(m.slice(1)),a(h)}else{var v=s[m];return v||g}}),u}t.languages.md=t.languages.markdown}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec,Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift});var Gt=ya.exports,Mn=_e,I=w;let ka={c:"C",clike:"C-like",css:"CSS",html:"HTML",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",xml:"XML"},Ca={javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain"};function Ea(t){return Ca[t]||t}class Et extends I.TextNode{constructor(e,n,r){super(e,r),this.__highlightType=n}static getType(){return"code-highlight"}static clone(e){return new Et(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}createDOM(e){let n=super.createDOM(e);return e=Vi(e.theme,this.__highlightType),Mn.addClassNamesToElement(n,e),n}updateDOM(e,n,r){let i=super.updateDOM(e,n,r);return e=Vi(r.theme,e.__highlightType),r=Vi(r.theme,this.__highlightType),e!==r&&(e&&Mn.removeClassNamesFromElement(n,e),r&&Mn.addClassNamesToElement(n,r)),i}static importJSON(e){let n=Nt(e.text,e.highlightType);return n.setFormat(e.format),n.setDetail(e.detail),n.setMode(e.mode),n.setStyle(e.style),n}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType(),type:"code-highlight",version:1}}setFormat(){return this}}function Vi(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function Nt(t,e){return new Et(t,e)}function ve(t){return t instanceof Et}function Ln(t){let e=null,n=t.getPreviousSiblings();for(n.push(t);0<n.length&&(t=n.pop(),ve(t)&&(e=t),!I.$isLineBreakNode(t)););return e}function ji(t){let e=null,n=t.getNextSiblings();for(n.unshift(t);0<n.length&&(t=n.shift(),ve(t)&&(e=t),!I.$isLineBreakNode(t)););return e}let Na=t=>t!=null&&Gt.languages.hasOwnProperty(t)?t:void 0;function Ta(t,e){for(let n of t.childNodes){if(n instanceof HTMLElement&&n.tagName===e)return!0;Ta(n,e)}return!1}class ut extends I.ElementNode{static getType(){return"code"}static clone(e){return new ut(e.__language,e.__key)}constructor(e,n){super(n),this.__language=Na(e)}createDOM(e){let n=document.createElement("code");return Mn.addClassNamesToElement(n,e.theme.code),n.setAttribute("spellcheck","false"),(e=this.getLanguage())&&n.setAttribute("data-highlight-language",e),n}updateDOM(e,n){let r=this.__language;return e=e.__language,r?r!==e&&n.setAttribute("data-highlight-language",r):e&&n.removeAttribute("data-highlight-language"),!1}static importDOM(){return{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||Ta(e,"BR"))?{conversion:Sa,priority:1}:null,div:()=>({conversion:Ig,priority:1}),pre:()=>({conversion:Sa,priority:0}),table:e=>Gi(e)?{conversion:Pg,priority:4}:null,td:e=>{let n=e.closest("table");return e.classList.contains("js-file-line")?{conversion:Fg,priority:4}:n&&Gi(n)?{conversion:ba,priority:4}:null},tr:e=>(e=e.closest("table"))&&Gi(e)?{conversion:ba,priority:4}:null}}static importJSON(e){let n=Dn(e.language);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),type:"code",version:1}}insertNewAfter(e){var n=this.getChildren(),r=n.length;if(2<=r&&n[r-1].getTextContent()===`
38
+ */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,l={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function p(v){return v instanceof a?new a(v.type,p(v.content),v.alias):Array.isArray(v)?v.map(p):v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(p){return Object.prototype.toString.call(p).slice(8,-1)},objId:function(p){return p.__id||Object.defineProperty(p,"__id",{value:++o}),p.__id},clone:function p(v,T){T=T||{};var E,k;switch(s.util.type(v)){case"Object":if(k=s.util.objId(v),T[k])return T[k];E={},T[k]=E;for(var R in v)v.hasOwnProperty(R)&&(E[R]=p(v[R],T));return E;case"Array":return k=s.util.objId(v),T[k]?T[k]:(E=[],T[k]=E,v.forEach(function(I,$){E[$]=p(I,T)}),E);default:return v}},getLanguage:function(p){for(;p;){var v=i.exec(p.className);if(v)return v[1].toLowerCase();p=p.parentElement}return"none"},setLanguage:function(p,v){p.className=p.className.replace(RegExp(i,"gi"),""),p.classList.add("language-"+v)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(E){var p=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(p){var v=document.getElementsByTagName("script");for(var T in v)if(v[T].src==p)return v[T]}return null}},isActive:function(p,v,T){for(var E="no-"+v;p;){var k=p.classList;if(k.contains(v))return!0;if(k.contains(E))return!1;p=p.parentElement}return!!T}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(p,v){var T=s.util.clone(s.languages[p]);for(var E in v)T[E]=v[E];return T},insertBefore:function(p,v,T,E){E=E||s.languages;var k=E[p],R={};for(var I in k)if(k.hasOwnProperty(I)){if(I==v)for(var $ in T)T.hasOwnProperty($)&&(R[$]=T[$]);T.hasOwnProperty(I)||(R[I]=k[I])}var U=E[p];return E[p]=R,s.languages.DFS(s.languages,function(P,K){K===U&&P!=p&&(this[P]=R)}),R},DFS:function p(v,T,E,k){k=k||{};var R=s.util.objId;for(var I in v)if(v.hasOwnProperty(I)){T.call(v,I,v[I],E||I);var $=v[I],U=s.util.type($);U==="Object"&&!k[R($)]?(k[R($)]=!0,p($,T,null,k)):U==="Array"&&!k[R($)]&&(k[R($)]=!0,p($,T,I,k))}}},plugins:{},highlightAll:function(p,v){s.highlightAllUnder(document,p,v)},highlightAllUnder:function(p,v,T){var E={callback:T,container:p,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",E),E.elements=Array.prototype.slice.apply(E.container.querySelectorAll(E.selector)),s.hooks.run("before-all-elements-highlight",E);for(var k=0,R;R=E.elements[k++];)s.highlightElement(R,v===!0,E.callback)},highlightElement:function(p,v,T){var E=s.util.getLanguage(p),k=s.languages[E];s.util.setLanguage(p,E);var R=p.parentElement;R&&R.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(R,E);var I=p.textContent,$={element:p,language:E,grammar:k,code:I};function U(K){$.highlightedCode=K,s.hooks.run("before-insert",$),$.element.innerHTML=$.highlightedCode,s.hooks.run("after-highlight",$),s.hooks.run("complete",$),T&&T.call($.element)}if(s.hooks.run("before-sanity-check",$),R=$.element.parentElement,R&&R.nodeName.toLowerCase()==="pre"&&!R.hasAttribute("tabindex")&&R.setAttribute("tabindex","0"),!$.code){s.hooks.run("complete",$),T&&T.call($.element);return}if(s.hooks.run("before-highlight",$),!$.grammar){U(s.util.encode($.code));return}if(v&&r.Worker){var P=new Worker(s.filename);P.onmessage=function(K){U(K.data)},P.postMessage(JSON.stringify({language:$.language,code:$.code,immediateClose:!0}))}else U(s.highlight($.code,$.grammar,$.language))},highlight:function(p,v,T){var E={code:p,grammar:v,language:T};if(s.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=s.tokenize(E.code,E.grammar),s.hooks.run("after-tokenize",E),a.stringify(s.util.encode(E.tokens),E.language)},tokenize:function(p,v){var T=v.rest;if(T){for(var E in T)v[E]=T[E];delete v.rest}var k=new u;return g(k,k.head,p),d(p,k,v,k.head,0),f(k)},hooks:{all:{},add:function(p,v){var T=s.hooks.all;T[p]=T[p]||[],T[p].push(v)},run:function(p,v){var T=s.hooks.all[p];if(!(!T||!T.length))for(var E=0,k;k=T[E++];)k(v)}},Token:a};r.Prism=s;function a(p,v,T,E){this.type=p,this.content=v,this.alias=T,this.length=(E||"").length|0}a.stringify=function p(v,T){if(typeof v=="string")return v;if(Array.isArray(v)){var E="";return v.forEach(function(U){E+=p(U,T)}),E}var k={type:v.type,content:p(v.content,T),tag:"span",classes:["token",v.type],attributes:{},language:T},R=v.alias;R&&(Array.isArray(R)?Array.prototype.push.apply(k.classes,R):k.classes.push(R)),s.hooks.run("wrap",k);var I="";for(var $ in k.attributes)I+=" "+$+'="'+(k.attributes[$]||"").replace(/"/g,"&quot;")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+I+">"+k.content+"</"+k.tag+">"};function c(p,v,T,E){p.lastIndex=v;var k=p.exec(T);if(k&&E&&k[1]){var R=k[1].length;k.index+=R,k[0]=k[0].slice(R)}return k}function d(p,v,T,E,k,R){for(var I in T)if(!(!T.hasOwnProperty(I)||!T[I])){var $=T[I];$=Array.isArray($)?$:[$];for(var U=0;U<$.length;++U){if(R&&R.cause==I+","+U)return;var P=$[U],K=P.inside,se=!!P.lookbehind,ne=!!P.greedy,Oe=P.alias;if(ne&&!P.pattern.global){var Ce=P.pattern.toString().match(/[imsuy]*$/)[0];P.pattern=RegExp(P.pattern.source,Ce+"g")}for(var Pe=P.pattern||P,V=E.next,X=k;V!==v.tail&&!(R&&X>=R.reach);X+=V.value.length,V=V.next){var we=V.value;if(v.length>p.length)return;if(!(we instanceof a)){var sn=1,Fe;if(ne){if(Fe=c(Pe,X,p,se),!Fe||Fe.index>=p.length)break;var Mt=Fe.index,an=Fe.index+Fe[0].length,He=X;for(He+=V.value.length;Mt>=He;)V=V.next,He+=V.value.length;if(He-=V.value.length,X=He,V.value instanceof a)continue;for(var $t=V;$t!==v.tail&&(He<an||typeof $t.value=="string");$t=$t.next)sn++,He+=$t.value.length;sn--,we=p.slice(X,He),Fe.index-=X}else if(Fe=c(Pe,0,we,se),!Fe)continue;var Mt=Fe.index,At=Fe[0],Dt=we.slice(0,Mt),Lt=we.slice(Mt+At.length),pt=X+we.length;R&&pt>R.reach&&(R.reach=pt);var It=V.prev;Dt&&(It=g(v,It,Dt),X+=Dt.length),m(v,It,sn);var d0=new a(I,K?s.tokenize(At,K):At,Oe,At);if(V=g(v,It,d0),Lt&&g(v,V,Lt),sn>1){var wo={cause:I+","+U,reach:pt};d(p,v,T,V.prev,X,wo),R&&wo.reach>R.reach&&(R.reach=wo.reach)}}}}}}function u(){var p={value:null,prev:null,next:null},v={value:null,prev:p,next:null};p.next=v,this.head=p,this.tail=v,this.length=0}function g(p,v,T){var E=v.next,k={value:T,prev:v,next:E};return v.next=k,E.prev=k,p.length++,k}function m(p,v,T){for(var E=v.next,k=0;k<T&&E!==p.tail;k++)E=E.next;v.next=E,E.prev=v,p.length-=k}function f(p){for(var v=[],T=p.head.next;T!==p.tail;)v.push(T.value),T=T.next;return v}if(!r.document)return r.addEventListener&&(s.disableWorkerMessageHandler||r.addEventListener("message",function(p){var v=JSON.parse(p.data),T=v.language,E=v.code,k=v.immediateClose;r.postMessage(s.highlight(E,s.languages[T],T)),k&&r.close()},!1)),s;var _=s.util.currentScript();_&&(s.filename=_.src,_.hasAttribute("data-manual")&&(s.manual=!0));function C(){s.manual||s.highlightAll()}if(!s.manual){var N=document.readyState;N==="loading"||N==="interactive"&&_&&_.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return s}(e);t.exports&&(t.exports=n),typeof Lo<"u"&&(Lo.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var l={};l["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},l.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:l}};s["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var a={};a[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:s},n.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading\u2026",i=function(_,C){return"\u2716 Error "+_+" while fetching file: "+C},o="\u2716 Error: File does not exist or is empty",l={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",a="loading",c="loaded",d="failed",u="pre[data-src]:not(["+s+'="'+c+'"]):not(['+s+'="'+a+'"])';function g(_,C,N){var p=new XMLHttpRequest;p.open("GET",_,!0),p.onreadystatechange=function(){p.readyState==4&&(p.status<400&&p.responseText?C(p.responseText):p.status>=400?N(i(p.status,p.statusText)):N(o))},p.send(null)}function m(_){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(_||"");if(C){var N=Number(C[1]),p=C[2],v=C[3];return p?v?[N,Number(v)]:[N,void 0]:[N,N]}}n.hooks.add("before-highlightall",function(_){_.selector+=", "+u}),n.hooks.add("before-sanity-check",function(_){var C=_.element;if(C.matches(u)){_.code="",C.setAttribute(s,a);var N=C.appendChild(document.createElement("CODE"));N.textContent=r;var p=C.getAttribute("data-src"),v=_.language;if(v==="none"){var T=(/\.(\w+)$/.exec(p)||[,"none"])[1];v=l[T]||T}n.util.setLanguage(N,v),n.util.setLanguage(C,v);var E=n.plugins.autoloader;E&&E.loadLanguages(v),g(p,function(k){C.setAttribute(s,c);var R=m(C.getAttribute("data-range"));if(R){var I=k.split(/\r\n?|\n/g),$=R[0],U=R[1]==null?I.length:R[1];$<0&&($+=I.length),$=Math.max(0,Math.min($-1,I.length)),U<0&&(U+=I.length),U=Math.max(0,Math.min(U,I.length)),k=I.slice($,U).join(`
39
+ `),C.hasAttribute("data-start")||C.setAttribute("data-start",String($+1))}N.textContent=k,n.highlightElement(N)},function(k){C.setAttribute(s,d),N.textContent=k})}}),n.plugins.fileHighlight={highlight:function(C){for(var N=(C||document).querySelectorAll(u),p=0,v;v=N[p++];)n.highlightElement(v)}};var f=!1;n.fileHighlight=function(){f||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),f=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Ia),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(d){return d=d.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(u){d!==u&&(t.languages.markdown[d].inside.content.inside[u]=t.languages.markdown[u])})}),t.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function u(g){if(!(!g||typeof g=="string"))for(var m=0,f=g.length;m<f;m++){var _=g[m];if(_.type!=="code"){u(_.content);continue}var C=_.content[1],N=_.content[3];if(C&&N&&C.type==="code-language"&&N.type==="code-block"&&typeof C.content=="string"){var p=C.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");p=(/[a-z][\w-]*/i.exec(p)||[""])[0].toLowerCase();var v="language-"+p;N.alias?typeof N.alias=="string"?N.alias=[N.alias,v]:N.alias.push(v):N.alias=[v]}}}u(d.tokens)}),t.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var u="",g=0,m=d.classes.length;g<m;g++){var f=d.classes[g],_=/language-(.+)/.exec(f);if(_){u=_[1];break}}var C=t.languages[u];if(C)d.content=t.highlight(c(d.content),C,u);else if(u&&u!=="none"&&t.plugins.autoloader){var N="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=N,t.plugins.autoloader.loadLanguages(u,function(){var p=document.getElementById(N);p&&(p.innerHTML=t.highlight(p.textContent,t.languages[u],u))})}}});var l=RegExp(t.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;function c(d){var u=d.replace(l,"");return u=u.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(g,m){if(m=m.toLowerCase(),m[0]==="#"){var f;return m[1]==="x"?f=parseInt(m.slice(2),16):f=Number(m.slice(1)),a(f)}else{var _=s[m];return _||g}}),u}t.languages.md=t.languages.markdown}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec,Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift});var on=Ia.exports,Wn=me,D=w;let Pa={c:"C",clike:"C-like",css:"CSS",html:"HTML",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",xml:"XML"},Fa={javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain"};function za(t){return Fa[t]||t}class bt extends D.TextNode{constructor(e,n,r){super(e,r),this.__highlightType=n}static getType(){return"code-highlight"}static clone(e){return new bt(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}createDOM(e){let n=super.createDOM(e);return e=ro(e.theme,this.__highlightType),Wn.addClassNamesToElement(n,e),n}updateDOM(e,n,r){let i=super.updateDOM(e,n,r);return e=ro(r.theme,e.__highlightType),r=ro(r.theme,this.__highlightType),e!==r&&(e&&Wn.removeClassNamesFromElement(n,e),r&&Wn.addClassNamesToElement(n,r)),i}static importJSON(e){let n=Rt(e.text,e.highlightType);return n.setFormat(e.format),n.setDetail(e.detail),n.setMode(e.mode),n.setStyle(e.style),n}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType(),type:"code-highlight",version:1}}setFormat(){return this}}function ro(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function Rt(t,e){return D.$applyNodeReplacement(new bt(t,e))}function _e(t){return t instanceof bt}function Un(t){let e=null,n=t.getPreviousSiblings();for(n.push(t);0<n.length&&(t=n.pop(),_e(t)&&(e=t),!D.$isLineBreakNode(t)););return e}function io(t){let e=null,n=t.getNextSiblings();for(n.unshift(t);0<n.length&&(t=n.shift(),_e(t)&&(e=t),!D.$isLineBreakNode(t)););return e}let Ba=t=>t!=null&&on.languages.hasOwnProperty(t)?t:void 0;function Ha(t,e){for(let n of t.childNodes){if(n instanceof HTMLElement&&n.tagName===e)return!0;Ha(n,e)}return!1}class gt extends D.ElementNode{static getType(){return"code"}static clone(e){return new gt(e.__language,e.__key)}constructor(e,n){super(n),this.__language=Ba(e)}createDOM(e){let n=document.createElement("code");return Wn.addClassNamesToElement(n,e.theme.code),n.setAttribute("spellcheck","false"),(e=this.getLanguage())&&n.setAttribute("data-highlight-language",e),n}updateDOM(e,n){let r=this.__language;return e=e.__language,r?r!==e&&n.setAttribute("data-highlight-language",r):e&&n.removeAttribute("data-highlight-language"),!1}static importDOM(){return{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||Ha(e,"BR"))?{conversion:Ka,priority:1}:null,div:()=>({conversion:i1,priority:1}),pre:()=>({conversion:Ka,priority:0}),table:e=>oo(e)?{conversion:o1,priority:4}:null,td:e=>{let n=e.closest("table");return e.classList.contains("js-file-line")?{conversion:l1,priority:4}:n&&oo(n)?{conversion:Wa,priority:4}:null},tr:e=>(e=e.closest("table"))&&oo(e)?{conversion:Wa,priority:4}:null}}static importJSON(e){let n=jn(e.language);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),type:"code",version:1}}insertNewAfter(e){var n=this.getChildren(),r=n.length;if(2<=r&&n[r-1].getTextContent()===`
40
40
  `&&n[r-2].getTextContent()===`
41
- `&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===r)return n[r-1].remove(),n[r-2].remove(),e=I.$createParagraphNode(),this.insertAfter(e),e;n=e.anchor.getNode();var i=Ln(n);if(i!=null){for(r=0,i=i.getTextContent();r<i.length&&/[\t ]/.test(i[r]);)r+=1;if(0<r)return r=i.substring(0,r),r=Nt(r),n.insertAfter(r),e.insertNodes([I.$createLineBreakNode()]),r.select(),r}return null}canInsertTab(){let e=I.$getSelection();return!!(I.$isRangeSelection(e)&&e.isCollapsed())}canIndent(){return!1}collapseAtStart(){let e=I.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}setLanguage(e){this.getWritable().__language=Na(e)}getLanguage(){return this.getLatest().__language}}function Dn(t){return new ut(t)}function br(t){return t instanceof ut}function Sa(){return{node:Dn(),preformatted:!0}}function Ig(t){let e=t.style.fontFamily.match("monospace")!==null;return e||zg(t)?{after:n=>{let r=t.parentNode;return r!=null&&t!==r.lastChild&&n.push(I.$createLineBreakNode()),n},node:e?Dn():null,preformatted:e}:{node:null}}function Pg(){return{node:Dn(),preformatted:!0}}function ba(){return{node:null}}function Fg(t){return{after:e=>(t.parentNode&&t.parentNode.nextSibling&&e.push(I.$createLineBreakNode()),e),node:null}}function zg(t){for(t=t.parentElement;t!==null;){if(t.style.fontFamily.match("monospace")!==null)return!0;t=t.parentElement}return!1}function Gi(t){return t.classList.contains("js-file-line-container")}let Oa={tokenize(t,e){return Gt.tokenize(t,Gt.languages[e||""]||Gt.languages.javascript)}};function Or(t,e){var n=t.length;let r=-1;if(e)for(e=0;e<n;e++){let i=t[e];if(i!==" "&&i!==" "){r=e;break}}else for(--n;-1<n;n--)if(e=t[n],e!==" "&&e!==" "){r=n;break}return r}function Ra(t){let e=null,n=-1;var r=t.getPreviousSiblings();for(r.push(t);0<r.length;){var i=r.pop();if(ve(i)){var o=i.getTextContent();o=Or(o,!0),o!==-1&&(e=i,n=o)}if(I.$isLineBreakNode(i))break}if(e===null)for(t=t.getNextSiblings();0<t.length;){if(r=t.shift(),ve(r)&&(i=r.getTextContent(),i=Or(i,!0),i!==-1)){e=r,n=i;break}if(I.$isLineBreakNode(r))break}return{node:e,offset:n}}function $a(t){let e=null,n=-1;var r=t.getNextSiblings();for(r.unshift(t);0<r.length;){var i=r.shift();if(ve(i)){var o=i.getTextContent();o=Or(o,!1),o!==-1&&(e=i,n=o+1)}if(I.$isLineBreakNode(i))break}if(e===null)for(t=t.getPreviousSiblings();0<t.length;){if(r=t.pop(),ve(r)&&(i=r.getTextContent(),i=Or(i,!1),i!==-1)){e=r,n=i+1;break}if(I.$isLineBreakNode(r))break}return{node:e,offset:n}}function Aa(t,e,n){let r=t.getParent();br(r)?Ma(r,e,n):ve(t)&&t.replace(I.$createTextNode(t.__text))}let Zi=new Set;function Ma(t,e,n){let r=t.getKey();Zi.has(r)||(Zi.add(r),t.getLanguage()===void 0&&t.setLanguage("javascript"),e.update(()=>{Bg(r,()=>{var i=I.$getNodeByKey(r);if(!br(i)||!i.isAttached())return!1;var o=i.getTextContent();o=n.tokenize(o,i.getLanguage()||"javascript"),o=La(o);var l=i.getChildren();for(i=0;i<l.length&&Da(l[i],o[i]);)i++;var s=l.length;let a=o.length,c=Math.min(s,a)-i,d=0;for(;d<c;)if(d++,!Da(l[s-d],o[a-d])){d--;break}l=i,s-=d,o=o.slice(i,a-d);let{from:u,to:g,nodesForReplacement:m}={from:l,nodesForReplacement:o,to:s};return u!==g||m.length?(t.splice(u,g-u,m),!0):!1})},{onUpdate:()=>{Zi.delete(r)},skipTransforms:!0}))}function La(t){let e=[];return t.forEach(n=>{if(typeof n=="string"){n=n.split(`
42
- `);for(var r=0;r<n.length;r++){let i=n[r];i.length&&e.push(Nt(i)),r<n.length-1&&e.push(I.$createLineBreakNode())}}else({content:r}=n),typeof r=="string"?e.push(Nt(r,n.type)):Array.isArray(r)&&r.length===1&&typeof r[0]=="string"?e.push(Nt(r[0],n.type)):Array.isArray(r)&&e.push(...La(r))}),e}function Bg(t,e){if(t=I.$getNodeByKey(t),br(t)&&t.isAttached()){var n=I.$getSelection();if(I.$isRangeSelection(n)){n=n.anchor;var r=n.offset,i=n.type==="element"&&I.$isLineBreakNode(t.getChildAtIndex(n.offset-1)),o=0;if(!i){let l=n.getNode();o=r+l.getPreviousSiblings().reduce((s,a)=>s+(I.$isLineBreakNode(a)?0:a.getTextContentSize()),0)}e()&&(i?n.getNode().select(r,r):t.getChildren().some(l=>{if(I.$isTextNode(l)){let s=l.getTextContentSize();if(s>=o)return l.select(o,o),!0;o-=s}return!1}))}else e()}}function Da(t,e){return ve(t)&&ve(e)?t.__text===e.__text&&t.__highlightType===e.__highlightType:!!(I.$isLineBreakNode(t)&&I.$isLineBreakNode(e))}function Ia(t){var e=I.$getSelection();if(!I.$isRangeSelection(e)||e.isCollapsed())return!1;e=e.getNodes();for(var n=0;n<e.length;n++){var r=e[n];if(!ve(r)&&!I.$isLineBreakNode(r))return!1}for(n=Ln(e[0]),n!=null&&Pa(n,t),n=1;n<e.length;n++)r=e[n],I.$isLineBreakNode(e[n-1])&&ve(r)&&Pa(r,t);return!0}function Pa(t,e){let n=t.getTextContent();e===I.INDENT_CONTENT_COMMAND?0<n.length&&/\s/.test(n[0])?t.setTextContent(" "+n):(e=Nt(" "),t.insertBefore(e)):n.indexOf(" ")===0&&(n.length===1?t.remove():t.setTextContent(n.substring(1)))}function Fa(t,e){let n=I.$getSelection();if(!I.$isRangeSelection(n))return!1;let{anchor:r,focus:i}=n,o=r.offset,l=i.offset,s=r.getNode(),a=i.getNode();var c=t===I.KEY_ARROW_UP_COMMAND;if(!ve(s)||!ve(a))return!1;if(!e.altKey){if(n.isCollapsed()){if(t=s.getParentOrThrow(),c&&o===0&&s.getPreviousSibling()===null){if(t.getPreviousSibling()===null)return t.selectPrevious(),e.preventDefault(),!0}else if(!c&&o===s.getTextContentSize()&&s.getNextSibling()===null&&t.getNextSibling()===null)return t.selectNext(),e.preventDefault(),!0}return!1}var d=Ln(s);let u=ji(a);if(d==null||u==null)return!1;let g=d.getNodesBetween(u);for(let h=0;h<g.length;h++){let v=g[h];if(!ve(v)&&!I.$isLineBreakNode(v))return!1}if(e.preventDefault(),e.stopPropagation(),e=c?d.getPreviousSibling():u.getNextSibling(),!I.$isLineBreakNode(e)||(d=c?e.getPreviousSibling():e.getNextSibling(),d==null))return!0;c=c?Ln(d):ji(d);let m=c!=null?c:d;return e.remove(),g.forEach(h=>h.remove()),t===I.KEY_ARROW_UP_COMMAND?(g.forEach(h=>m.insertBefore(h)),m.insertBefore(e)):(m.insertAfter(e),m=e,g.forEach(h=>{m.insertAfter(h),m=h})),n.setTextNodeRange(s,o,a,l),!0}function za(t,e){let n=I.$getSelection();if(!I.$isRangeSelection(n))return!1;let{anchor:r,focus:i}=n,o=r.getNode(),l=i.getNode();if(t=t===I.MOVE_TO_START,!ve(o)||!ve(l))return!1;let s,a;return t?{node:s,offset:a}=Ra(l):{node:s,offset:a}=$a(l),s!==null&&a!==-1&&n.setTextNodeRange(s,a,s,a),e.preventDefault(),e.stopPropagation(),!0}re.$createCodeHighlightNode=Nt,re.$createCodeNode=Dn,re.$isCodeHighlightNode=ve,re.$isCodeNode=br,re.CODE_LANGUAGE_FRIENDLY_NAME_MAP=ka,re.CODE_LANGUAGE_MAP=Ca,re.CodeHighlightNode=Et,re.CodeNode=ut,re.DEFAULT_CODE_LANGUAGE="javascript",re.PrismTokenizer=Oa,re.getCodeLanguages=()=>Object.keys(Gt.languages).filter(t=>typeof Gt.languages[t]!="function").sort(),re.getDefaultCodeLanguage=()=>"javascript",re.getEndOfCodeInLine=$a,re.getFirstCodeHighlightNodeOfLine=Ln,re.getLanguageFriendlyName=function(t){return t=Ea(t),ka[t]||t},re.getLastCodeHighlightNodeOfLine=ji,re.getStartOfCodeInLine=Ra,re.normalizeCodeLang=Ea,re.registerCodeHighlighting=function(t,e){if(!t.hasNodes([ut,Et]))throw Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");return e==null&&(e=Oa),Mn.mergeRegister(t.registerMutationListener(ut,n=>{t.update(()=>{for(let[o,l]of n)if(l!=="destroyed"){var r=I.$getNodeByKey(o);if(r!==null)e:{var i=r;if(r=t.getElementByKey(i.getKey()),r===null)break e;i=i.getChildren();let s=i.length;if(s===r.__cachedChildrenLength)break e;r.__cachedChildrenLength=s;let a="1",c=1;for(let d=0;d<s;d++)I.$isLineBreakNode(i[d])&&(a+=`
43
- `+ ++c);r.setAttribute("data-gutter",a)}}})}),t.registerNodeTransform(ut,n=>Ma(n,t,e)),t.registerNodeTransform(I.TextNode,n=>Aa(n,t,e)),t.registerNodeTransform(Et,n=>Aa(n,t,e)),t.registerCommand(I.INDENT_CONTENT_COMMAND,()=>Ia(I.INDENT_CONTENT_COMMAND),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.OUTDENT_CONTENT_COMMAND,()=>Ia(I.OUTDENT_CONTENT_COMMAND),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.KEY_ARROW_UP_COMMAND,n=>Fa(I.KEY_ARROW_UP_COMMAND,n),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.KEY_ARROW_DOWN_COMMAND,n=>Fa(I.KEY_ARROW_DOWN_COMMAND,n),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.MOVE_TO_END,n=>za(I.MOVE_TO_END,n),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.MOVE_TO_START,n=>za(I.MOVE_TO_START,n),I.COMMAND_PRIORITY_LOW))};var Hg=re,U=w,In=Hg,we=Xe,gt=et,Kg=_e,Ji=Ai;function Xi(t,e){let n={};for(let r of t)t=e(r),n[t]?n[t].push(r):n[t]=[r];return n}function Qi(t){return t=Xi(t,e=>e.type),{element:t.element||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}let Rr=/[!-/:-@[-`{-~\s]/;function Wg(t){let e=Qi(t),n=e.textFormat.filter(r=>r.format.length===1);return()=>{let r=[];var i=U.$getRoot().getChildren();for(let o of i)i=Ug(o,e.element,n,e.textMatch),i!=null&&r.push(i);return r.join(`
44
-
45
- `)}}function Ug(t,e,n,r){for(let i of e)if(e=i.export(t,o=>$r(o,n,r)),e!=null)return e;return U.$isElementNode(t)?$r(t,n,r):null}function $r(t,e,n){let r=[];t=t.getChildren();e:for(let i of t){for(let o of n)if(t=o.export(i,l=>$r(l,e,n),(l,s)=>Ba(l,s,e)),t!=null){r.push(t);continue e}U.$isLineBreakNode(i)?r.push(`
46
- `):U.$isTextNode(i)?r.push(Ba(i,i.getTextContent(),e)):U.$isElementNode(i)&&r.push($r(i,e,n))}return r.join("")}function Ba(t,e,n){let r=e.trim(),i=r,o=new Set;for(let s of n){n=s.format[0];let a=s.tag;if(qi(t,n)&&!o.has(n)){o.add(n);var l=Ha(t,!0);qi(l,n)||(i=a+i),l=Ha(t,!1),qi(l,n)||(i+=a)}}return e.replace(r,i)}function Ha(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();for(n||(t=t.getParentOrThrow(),t.isInline()&&(n=e?t.getPreviousSibling():t.getNextSibling()));n;){if(U.$isElementNode(n)){if(!n.isInline())break;if(t=e?n.getLastDescendant():n.getFirstDescendant(),U.$isTextNode(t))return t;n=e?n.getPreviousSibling():n.getNextSibling()}if(U.$isTextNode(n))return n;if(!U.$isElementNode(n))break}return null}function qi(t,e){return U.$isTextNode(t)&&t.hasFormat(e)}let Zt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Yg=Zt&&"documentMode"in document?document.documentMode:null;Zt&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Zt&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Zt&&"InputEvent"in window&&!Yg&&"getTargetRanges"in new window.InputEvent("input");let Ka=Zt&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Wa=Zt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Vg=/^\s{0,3}$/,Ua=/^```(\w{1,10})?\s?$/;function jg(t){let e=Qi(t),n=Zg(e.textFormat);return r=>{var i=r.split(`
47
- `),o=i.length;r=U.$getRoot(),r.clear();for(let h=0;h<o;h++){var l=i[h];e:{var s=i,a=h,c=r,d=s[a].match(Ua);if(d){for(var u=a,g=s.length;++u<g;)if(s[u].match(Ua)){d=In.$createCodeNode(d[1]),s=U.$createTextNode(s.slice(a+1,u).join(`
48
- `)),d.append(s),c.append(d),c=[d,u];break e}}c=[null,a]}let[v,C]=c;if(v!=null)h=C;else{c=l,g=r;var m=e.element;u=n,s=e.textMatch,a=c.trim(),d=U.$createTextNode(a),l=U.$createParagraphNode(),l.append(d),g.append(l);for(let{regExp:N,replace:p}of m)if(g=c.match(N)){d.setTextContent(c.slice(g[0].length)),p(l,[d],g,!0);break}Ar(d,u,s),l.isAttached()&&0<a.length&&(c=l.getPreviousSibling(),U.$isParagraphNode(c)||gt.$isQuoteNode(c)||we.$isListNode(c))&&(u=c,we.$isListNode(c)&&(c=c.getLastDescendant(),u=c==null?null:Kg.$findMatchingParent(c,we.$isListItemNode)),u!=null&&0<u.getTextContentSize()&&(u.splice(u.getChildrenSize(),0,[U.$createLineBreakNode(),...l.getChildren()]),l.remove()))}}i=r.getChildren();for(let h of i)i=h,U.$isParagraphNode(i)?(o=i.getFirstChild(),i=o==null||i.getChildrenSize()===1&&U.$isTextNode(o)&&Vg.test(o.getTextContent())):i=!1,i&&h.remove();r.selectEnd()}}function Ar(t,e,n){var r=t.getTextContent();let i=Gg(r,e);if(i){var o,l;if(i[0]===r)var s=t;else{r=i.index||0;let a=r+i[0].length;r===0?[s,o]=t.splitText(a):[l,s,o]=t.splitText(r,a)}if(s.setTextContent(i[2]),t=e.transformersByTag[i[1]])for(let a of t.format)s.hasFormat(a)||s.toggleFormat(a);s.hasFormat("code")||Ar(s,e,n),l&&Ar(l,e,n),o&&Ar(o,e,n)}else Ya(t,n)}function Ya(t,e){e:for(;t;){for(let n of e){let r=t.getTextContent().match(n.importRegExp);if(!r)continue;let i=r.index||0,o=i+r[0].length,l,s,a;i===0?[l,t]=t.splitText(o):[s,l,a]=t.splitText(i,o),s&&Ya(s,e),a&&(t=a),n.replace(l,r);continue e}break}}function Gg(t,e){var n=t.match(e.openTagsRegExp);if(n==null)return null;for(let o of n){var r=o.replace(/^\s/,"");if(n=e.fullMatchRegExpByTag[r],n!=null&&(n=t.match(n),r=e.transformersByTag[r],n!=null&&r!=null)){if(r.intraword!==!1)return n;var{index:i=0}=n;if(r=t[i-1],i=t[i+n[0].length],!(r&&!Rr.test(r)||i&&!Rr.test(i)))return n}}return null}function Zg(t){let e={},n={},r=[];for(let i of t){({tag:t}=i),e[t]=i;let o=t.replace(/(\*|\^)/g,"\\$1");r.push(o),n[t]=Ka||Wa?new RegExp(`(${o})(?![${o}\\s])(.*?[^${o}\\s])${o}(?!${o})`):new RegExp(`(?<![\\\\${o}])(${o})((\\\\${o})?.*?[^${o}\\s](\\\\${o})?)((?<!\\\\)|(?<=\\\\\\\\))(${o})(?![\\\\${o}])`)}return{fullMatchRegExpByTag:n,openTagsRegExp:new RegExp((Ka||Wa?"":"(?<![\\\\])")+"("+r.join("|")+")","g"),transformersByTag:e}}function Va(t,e,n){let r=n.length;for(;e>=r;e--){let i=e-r;if(ja(t,i,n,0,r)&&t[i+r]!==" ")return i}return-1}function ja(t,e,n,r,i){for(let o=0;o<i;o++)if(t[e+o]!==n[r+o])return!1;return!0}let Ga=t=>(e,n,r)=>{r=t(r),r.append(...n),e.replace(r),r.select(0,0)},eo=t=>(e,n,r)=>{var i=e.getPreviousSibling();const o=we.$createListItemNode(t==="check"?r[3]==="x":void 0);we.$isListNode(i)&&i.getListType()===t?(i.append(o),e.remove()):(i=we.$createListNode(t,t==="number"?Number(r[2]):void 0),i.append(o),e.replace(i)),o.append(...n),o.select(0,0),(e=Math.floor(r[1].length/4))&&o.setIndent(e)},Mr=(t,e,n)=>{const r=[];var i=t.getChildren();let o=0;for(const s of i)if(we.$isListItemNode(s)){if(s.getChildrenSize()===1&&(i=s.getFirstChild(),we.$isListNode(i))){r.push(Mr(i,e,n+1));continue}i=" ".repeat(4*n);var l=t.getListType();l=l==="number"?`${t.getStart()+o}. `:l==="check"?`- [${s.getChecked()?"x":" "}] `:"- ",r.push(i+l+e(s)),o++}return r.join(`
49
- `)},Za={dependencies:[gt.HeadingNode],export:(t,e)=>{if(!gt.$isHeadingNode(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:/^(#{1,6})\s/,replace:Ga(t=>gt.$createHeadingNode("h"+t[1].length)),type:"element"},Ja={dependencies:[gt.QuoteNode],export:(t,e)=>{if(!gt.$isQuoteNode(t))return null;t=e(t).split(`
41
+ `&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===r)return n[r-1].remove(),n[r-2].remove(),e=D.$createParagraphNode(),this.insertAfter(e),e;n=e.anchor.getNode();var i=Un(n);if(i!=null){for(r=0,i=i.getTextContent();r<i.length&&/[\t ]/.test(i[r]);)r+=1;if(0<r)return r=i.substring(0,r),r=Rt(r),n.insertAfter(r),e.insertNodes([D.$createLineBreakNode()]),r.select(),r}return null}canInsertTab(){let e=D.$getSelection();return!!(D.$isRangeSelection(e)&&e.isCollapsed())}canIndent(){return!1}collapseAtStart(){let e=D.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}setLanguage(e){this.getWritable().__language=Ba(e)}getLanguage(){return this.getLatest().__language}}function jn(t){return D.$applyNodeReplacement(new gt(t))}function Pr(t){return t instanceof gt}function Ka(){return{node:jn(),preformatted:!0}}function i1(t){let e=t.style.fontFamily.match("monospace")!==null;return e||s1(t)?{after:n=>{let r=t.parentNode;return r!=null&&t!==r.lastChild&&n.push(D.$createLineBreakNode()),n},node:e?jn():null,preformatted:e}:{node:null}}function o1(){return{node:jn(),preformatted:!0}}function Wa(){return{node:null}}function l1(t){return{after:e=>(t.parentNode&&t.parentNode.nextSibling&&e.push(D.$createLineBreakNode()),e),node:null}}function s1(t){for(t=t.parentElement;t!==null;){if(t.style.fontFamily.match("monospace")!==null)return!0;t=t.parentElement}return!1}function oo(t){return t.classList.contains("js-file-line-container")}let Ua={tokenize(t,e){return on.tokenize(t,on.languages[e||""]||on.languages.javascript)}};function Fr(t,e){var n=t.length;let r=-1;if(e)for(e=0;e<n;e++){let i=t[e];if(i!==" "&&i!==" "){r=e;break}}else for(--n;-1<n;n--)if(e=t[n],e!==" "&&e!==" "){r=n;break}return r}function ja(t){let e=null,n=-1;var r=t.getPreviousSiblings();for(r.push(t);0<r.length;){var i=r.pop();if(_e(i)){var o=i.getTextContent();o=Fr(o,!0),o!==-1&&(e=i,n=o)}if(D.$isLineBreakNode(i))break}if(e===null)for(t=t.getNextSiblings();0<t.length;){if(r=t.shift(),_e(r)&&(i=r.getTextContent(),i=Fr(i,!0),i!==-1)){e=r,n=i;break}if(D.$isLineBreakNode(r))break}return{node:e,offset:n}}function Ya(t){let e=null,n=-1;var r=t.getNextSiblings();for(r.unshift(t);0<r.length;){var i=r.shift();if(_e(i)){var o=i.getTextContent();o=Fr(o,!1),o!==-1&&(e=i,n=o+1)}if(D.$isLineBreakNode(i))break}if(e===null)for(t=t.getPreviousSiblings();0<t.length;){if(r=t.pop(),_e(r)&&(i=r.getTextContent(),i=Fr(i,!1),i!==-1)){e=r,n=i+1;break}if(D.$isLineBreakNode(r))break}return{node:e,offset:n}}function Va(t,e,n){let r=t.getParent();Pr(r)?Ga(r,e,n):_e(t)&&t.replace(D.$createTextNode(t.__text))}let lo=new Set;function Ga(t,e,n){let r=t.getKey();lo.has(r)||(lo.add(r),t.getLanguage()===void 0&&t.setLanguage("javascript"),e.update(()=>{a1(r,()=>{var i=D.$getNodeByKey(r);if(!Pr(i)||!i.isAttached())return!1;var o=i.getTextContent();o=n.tokenize(o,i.getLanguage()||"javascript"),o=Za(o);var l=i.getChildren();for(i=0;i<l.length&&Ja(l[i],o[i]);)i++;var s=l.length;let a=o.length,c=Math.min(s,a)-i,d=0;for(;d<c;)if(d++,!Ja(l[s-d],o[a-d])){d--;break}l=i,s-=d,o=o.slice(i,a-d);let{from:u,to:g,nodesForReplacement:m}={from:l,nodesForReplacement:o,to:s};return u!==g||m.length?(t.splice(u,g-u,m),!0):!1})},{onUpdate:()=>{lo.delete(r)},skipTransforms:!0}))}function Za(t){let e=[];return t.forEach(n=>{if(typeof n=="string"){n=n.split(`
42
+ `);for(var r=0;r<n.length;r++){let i=n[r];i.length&&e.push(Rt(i)),r<n.length-1&&e.push(D.$createLineBreakNode())}}else({content:r}=n),typeof r=="string"?e.push(Rt(r,n.type)):Array.isArray(r)&&r.length===1&&typeof r[0]=="string"?e.push(Rt(r[0],n.type)):Array.isArray(r)&&e.push(...Za(r))}),e}function a1(t,e){if(t=D.$getNodeByKey(t),Pr(t)&&t.isAttached()){var n=D.$getSelection();if(D.$isRangeSelection(n)){n=n.anchor;var r=n.offset,i=n.type==="element"&&D.$isLineBreakNode(t.getChildAtIndex(n.offset-1)),o=0;if(!i){let l=n.getNode();o=r+l.getPreviousSiblings().reduce((s,a)=>s+a.getTextContentSize(),0)}e()&&(i?n.getNode().select(r,r):t.getChildren().some(l=>{let s=D.$isTextNode(l);if(s||D.$isLineBreakNode(l)){let a=l.getTextContentSize();if(s&&a>=o)return l.select(o,o),!0;o-=a}return!1}))}else e()}}function Ja(t,e){return _e(t)&&_e(e)?t.__text===e.__text&&t.__highlightType===e.__highlightType:!!(D.$isLineBreakNode(t)&&D.$isLineBreakNode(e))}function Xa(t){var e=D.$getSelection();if(!D.$isRangeSelection(e)||e.isCollapsed())return!1;e=e.getNodes();for(var n=0;n<e.length;n++){var r=e[n];if(!_e(r)&&!D.$isLineBreakNode(r))return!1}for(n=Un(e[0]),n!=null&&qa(n,t),n=1;n<e.length;n++)r=e[n],D.$isLineBreakNode(e[n-1])&&_e(r)&&qa(r,t);return!0}function qa(t,e){let n=t.getTextContent();e===D.INDENT_CONTENT_COMMAND?0<n.length&&/\s/.test(n[0])?t.setTextContent(" "+n):(e=Rt(" "),t.insertBefore(e)):n.indexOf(" ")===0&&(n.length===1?t.remove():t.setTextContent(n.substring(1)))}function Qa(t,e){let n=D.$getSelection();if(!D.$isRangeSelection(n))return!1;let{anchor:r,focus:i}=n,o=r.offset,l=i.offset,s=r.getNode(),a=i.getNode();var c=t===D.KEY_ARROW_UP_COMMAND;if(!_e(s)||!_e(a))return!1;if(!e.altKey){if(n.isCollapsed()){if(t=s.getParentOrThrow(),c&&o===0&&s.getPreviousSibling()===null){if(t.getPreviousSibling()===null)return t.selectPrevious(),e.preventDefault(),!0}else if(!c&&o===s.getTextContentSize()&&s.getNextSibling()===null&&t.getNextSibling()===null)return t.selectNext(),e.preventDefault(),!0}return!1}var d=Un(s);let u=io(a);if(d==null||u==null)return!1;let g=d.getNodesBetween(u);for(let f=0;f<g.length;f++){let _=g[f];if(!_e(_)&&!D.$isLineBreakNode(_))return!1}if(e.preventDefault(),e.stopPropagation(),e=c?d.getPreviousSibling():u.getNextSibling(),!D.$isLineBreakNode(e)||(d=c?e.getPreviousSibling():e.getNextSibling(),d==null))return!0;c=c?Un(d):io(d);let m=c!=null?c:d;return e.remove(),g.forEach(f=>f.remove()),t===D.KEY_ARROW_UP_COMMAND?(g.forEach(f=>m.insertBefore(f)),m.insertBefore(e)):(m.insertAfter(e),m=e,g.forEach(f=>{m.insertAfter(f),m=f})),n.setTextNodeRange(s,o,a,l),!0}function ec(t,e){let n=D.$getSelection();if(!D.$isRangeSelection(n))return!1;let{anchor:r,focus:i}=n,o=r.getNode(),l=i.getNode();if(t=t===D.MOVE_TO_START,!_e(o)||!_e(l))return!1;let s,a;return t?{node:s,offset:a}=ja(l):{node:s,offset:a}=Ya(l),s!==null&&a!==-1&&n.setTextNodeRange(s,a,s,a),e.preventDefault(),e.stopPropagation(),!0}le.$createCodeHighlightNode=Rt,le.$createCodeNode=jn,le.$isCodeHighlightNode=_e,le.$isCodeNode=Pr,le.CODE_LANGUAGE_FRIENDLY_NAME_MAP=Pa,le.CODE_LANGUAGE_MAP=Fa,le.CodeHighlightNode=bt,le.CodeNode=gt,le.DEFAULT_CODE_LANGUAGE="javascript",le.PrismTokenizer=Ua,le.getCodeLanguages=()=>Object.keys(on.languages).filter(t=>typeof on.languages[t]!="function").sort(),le.getDefaultCodeLanguage=()=>"javascript",le.getEndOfCodeInLine=Ya,le.getFirstCodeHighlightNodeOfLine=Un,le.getLanguageFriendlyName=function(t){return t=za(t),Pa[t]||t},le.getLastCodeHighlightNodeOfLine=io,le.getStartOfCodeInLine=ja,le.normalizeCodeLang=za,le.registerCodeHighlighting=function(t,e){if(!t.hasNodes([gt,bt]))throw Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");return e==null&&(e=Ua),Wn.mergeRegister(t.registerMutationListener(gt,n=>{t.update(()=>{for(let[o,l]of n)if(l!=="destroyed"){var r=D.$getNodeByKey(o);if(r!==null)e:{var i=r;if(r=t.getElementByKey(i.getKey()),r===null)break e;i=i.getChildren();let s=i.length;if(s===r.__cachedChildrenLength)break e;r.__cachedChildrenLength=s;let a="1",c=1;for(let d=0;d<s;d++)D.$isLineBreakNode(i[d])&&(a+=`
43
+ `+ ++c);r.setAttribute("data-gutter",a)}}})}),t.registerNodeTransform(gt,n=>Ga(n,t,e)),t.registerNodeTransform(D.TextNode,n=>Va(n,t,e)),t.registerNodeTransform(bt,n=>Va(n,t,e)),t.registerCommand(D.INDENT_CONTENT_COMMAND,()=>Xa(D.INDENT_CONTENT_COMMAND),D.COMMAND_PRIORITY_LOW),t.registerCommand(D.OUTDENT_CONTENT_COMMAND,()=>Xa(D.OUTDENT_CONTENT_COMMAND),D.COMMAND_PRIORITY_LOW),t.registerCommand(D.KEY_ARROW_UP_COMMAND,n=>Qa(D.KEY_ARROW_UP_COMMAND,n),D.COMMAND_PRIORITY_LOW),t.registerCommand(D.KEY_ARROW_DOWN_COMMAND,n=>Qa(D.KEY_ARROW_DOWN_COMMAND,n),D.COMMAND_PRIORITY_LOW),t.registerCommand(D.MOVE_TO_END,n=>ec(D.MOVE_TO_END,n),D.COMMAND_PRIORITY_LOW),t.registerCommand(D.MOVE_TO_START,n=>ec(D.MOVE_TO_START,n),D.COMMAND_PRIORITY_LOW))};var c1=le,Y=w,Yn=c1,ve=Qe,ht=nt,d1=me,so=Wi;function ao(t,e){let n={};for(let r of t)t=e(r),n[t]?n[t].push(r):n[t]=[r];return n}function co(t){return t=ao(t,e=>e.type),{element:t.element||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}let zr=/[!-/:-@[-`{-~\s]/;function u1(t){let e=co(t),n=e.textFormat.filter(r=>r.format.length===1);return()=>{let r=[];var i=Y.$getRoot().getChildren();for(let o of i)i=g1(o,e.element,n,e.textMatch),i!=null&&r.push(i);return r.join(`
44
+
45
+ `)}}function g1(t,e,n,r){for(let i of e)if(e=i.export(t,o=>Br(o,n,r)),e!=null)return e;return Y.$isElementNode(t)?Br(t,n,r):null}function Br(t,e,n){let r=[];t=t.getChildren();e:for(let i of t){for(let o of n)if(t=o.export(i,l=>Br(l,e,n),(l,s)=>tc(l,s,e)),t!=null){r.push(t);continue e}Y.$isLineBreakNode(i)?r.push(`
46
+ `):Y.$isTextNode(i)?r.push(tc(i,i.getTextContent(),e)):Y.$isElementNode(i)&&r.push(Br(i,e,n))}return r.join("")}function tc(t,e,n){let r=e.trim(),i=r,o=new Set;for(let s of n){n=s.format[0];let a=s.tag;if(uo(t,n)&&!o.has(n)){o.add(n);var l=nc(t,!0);uo(l,n)||(i=a+i),l=nc(t,!1),uo(l,n)||(i+=a)}}return e.replace(r,i)}function nc(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();for(n||(t=t.getParentOrThrow(),t.isInline()&&(n=e?t.getPreviousSibling():t.getNextSibling()));n;){if(Y.$isElementNode(n)){if(!n.isInline())break;if(t=e?n.getLastDescendant():n.getFirstDescendant(),Y.$isTextNode(t))return t;n=e?n.getPreviousSibling():n.getNextSibling()}if(Y.$isTextNode(n))return n;if(!Y.$isElementNode(n))break}return null}function uo(t,e){return Y.$isTextNode(t)&&t.hasFormat(e)}let ln=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",h1=ln&&"documentMode"in document?document.documentMode:null;ln&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ln&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ln&&"InputEvent"in window&&!h1&&"getTargetRanges"in new window.InputEvent("input");let rc=ln&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),ic=ln&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,f1=/^\s{0,3}$/,oc=/^```(\w{1,10})?\s?$/;function p1(t){let e=co(t),n=x1(e.textFormat);return r=>{var i=r.split(`
47
+ `),o=i.length;r=Y.$getRoot(),r.clear();for(let f=0;f<o;f++){var l=i[f];e:{var s=i,a=f,c=r,d=s[a].match(oc);if(d){for(var u=a,g=s.length;++u<g;)if(s[u].match(oc)){d=Yn.$createCodeNode(d[1]),s=Y.$createTextNode(s.slice(a+1,u).join(`
48
+ `)),d.append(s),c.append(d),c=[d,u];break e}}c=[null,a]}let[_,C]=c;if(_!=null)f=C;else{c=l,g=r;var m=e.element;u=n,s=e.textMatch,a=c.trim(),d=Y.$createTextNode(a),l=Y.$createParagraphNode(),l.append(d),g.append(l);for(let{regExp:N,replace:p}of m)if(g=c.match(N)){d.setTextContent(c.slice(g[0].length)),p(l,[d],g,!0);break}Hr(d,u,s),l.isAttached()&&0<a.length&&(c=l.getPreviousSibling(),Y.$isParagraphNode(c)||ht.$isQuoteNode(c)||ve.$isListNode(c))&&(u=c,ve.$isListNode(c)&&(c=c.getLastDescendant(),u=c==null?null:d1.$findMatchingParent(c,ve.$isListItemNode)),u!=null&&0<u.getTextContentSize()&&(u.splice(u.getChildrenSize(),0,[Y.$createLineBreakNode(),...l.getChildren()]),l.remove()))}}i=r.getChildren();for(let f of i)i=f,Y.$isParagraphNode(i)?(o=i.getFirstChild(),i=o==null||i.getChildrenSize()===1&&Y.$isTextNode(o)&&f1.test(o.getTextContent())):i=!1,i&&f.remove();r.selectEnd()}}function Hr(t,e,n){var r=t.getTextContent();let i=m1(r,e);if(i){var o,l;if(i[0]===r)var s=t;else{r=i.index||0;let a=r+i[0].length;r===0?[s,o]=t.splitText(a):[l,s,o]=t.splitText(r,a)}if(s.setTextContent(i[2]),t=e.transformersByTag[i[1]])for(let a of t.format)s.hasFormat(a)||s.toggleFormat(a);s.hasFormat("code")||Hr(s,e,n),l&&Hr(l,e,n),o&&Hr(o,e,n)}else lc(t,n)}function lc(t,e){e:for(;t;){for(let n of e){let r=t.getTextContent().match(n.importRegExp);if(!r)continue;let i=r.index||0,o=i+r[0].length,l,s,a;i===0?[l,t]=t.splitText(o):[s,l,a]=t.splitText(i,o),s&&lc(s,e),a&&(t=a),n.replace(l,r);continue e}break}}function m1(t,e){var n=t.match(e.openTagsRegExp);if(n==null)return null;for(let o of n){var r=o.replace(/^\s/,"");if(n=e.fullMatchRegExpByTag[r],n!=null&&(n=t.match(n),r=e.transformersByTag[r],n!=null&&r!=null)){if(r.intraword!==!1)return n;var{index:i=0}=n;if(r=t[i-1],i=t[i+n[0].length],!(r&&!zr.test(r)||i&&!zr.test(i)))return n}}return null}function x1(t){let e={},n={},r=[];for(let i of t){({tag:t}=i),e[t]=i;let o=t.replace(/(\*|\^)/g,"\\$1");r.push(o),n[t]=rc||ic?new RegExp(`(${o})(?![${o}\\s])(.*?[^${o}\\s])${o}(?!${o})`):new RegExp(`(?<![\\\\${o}])(${o})((\\\\${o})?.*?[^${o}\\s](\\\\${o})?)((?<!\\\\)|(?<=\\\\\\\\))(${o})(?![\\\\${o}])`)}return{fullMatchRegExpByTag:n,openTagsRegExp:new RegExp((rc||ic?"":"(?<![\\\\])")+"("+r.join("|")+")","g"),transformersByTag:e}}function sc(t,e,n){let r=n.length;for(;e>=r;e--){let i=e-r;if(ac(t,i,n,0,r)&&t[i+r]!==" ")return i}return-1}function ac(t,e,n,r,i){for(let o=0;o<i;o++)if(t[e+o]!==n[r+o])return!1;return!0}let cc=t=>(e,n,r)=>{r=t(r),r.append(...n),e.replace(r),r.select(0,0)},go=t=>(e,n,r)=>{var i=e.getPreviousSibling();const o=ve.$createListItemNode(t==="check"?r[3]==="x":void 0);ve.$isListNode(i)&&i.getListType()===t?(i.append(o),e.remove()):(i=ve.$createListNode(t,t==="number"?Number(r[2]):void 0),i.append(o),e.replace(i)),o.append(...n),o.select(0,0),(e=Math.floor(r[1].length/4))&&o.setIndent(e)},Kr=(t,e,n)=>{const r=[];var i=t.getChildren();let o=0;for(const s of i)if(ve.$isListItemNode(s)){if(s.getChildrenSize()===1&&(i=s.getFirstChild(),ve.$isListNode(i))){r.push(Kr(i,e,n+1));continue}i=" ".repeat(4*n);var l=t.getListType();l=l==="number"?`${t.getStart()+o}. `:l==="check"?`- [${s.getChecked()?"x":" "}] `:"- ",r.push(i+l+e(s)),o++}return r.join(`
49
+ `)},dc={dependencies:[ht.HeadingNode],export:(t,e)=>{if(!ht.$isHeadingNode(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:/^(#{1,6})\s/,replace:cc(t=>ht.$createHeadingNode("h"+t[1].length)),type:"element"},uc={dependencies:[ht.QuoteNode],export:(t,e)=>{if(!ht.$isQuoteNode(t))return null;t=e(t).split(`
50
50
  `),e=[];for(const n of t)e.push("> "+n);return e.join(`
51
- `)},regExp:/^>\s/,replace:(t,e,n,r)=>{if(r&&(n=t.getPreviousSibling(),gt.$isQuoteNode(n))){n.splice(n.getChildrenSize(),0,[U.$createLineBreakNode(),...e]),n.select(0,0),t.remove();return}n=gt.$createQuoteNode(),n.append(...e),t.replace(n),n.select(0,0)},type:"element"},Xa={dependencies:[In.CodeNode],export:t=>{if(!In.$isCodeNode(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
52
- `+e:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:Ga(t=>In.$createCodeNode(t?t[1]:void 0)),type:"element"},Qa={dependencies:[we.ListNode,we.ListItemNode],export:(t,e)=>we.$isListNode(t)?Mr(t,e,0):null,regExp:/^(\s*)[-*+]\s/,replace:eo("bullet"),type:"element"},Jg={dependencies:[we.ListNode,we.ListItemNode],export:(t,e)=>we.$isListNode(t)?Mr(t,e,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:eo("check"),type:"element"},qa={dependencies:[we.ListNode,we.ListItemNode],export:(t,e)=>we.$isListNode(t)?Mr(t,e,0):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:eo("number"),type:"element"},ec={format:["code"],tag:"`",type:"text-format"},tc={format:["bold","italic"],tag:"***",type:"text-format"},nc={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},rc={format:["bold"],tag:"**",type:"text-format"},ic={format:["bold"],intraword:!1,tag:"__",type:"text-format"},oc={format:["strikethrough"],tag:"~~",type:"text-format"},lc={format:["italic"],tag:"*",type:"text-format"},sc={format:["italic"],intraword:!1,tag:"_",type:"text-format"},ac={dependencies:[Ji.LinkNode],export:(t,e,n)=>{if(!Ji.$isLinkNode(t))return null;e=`[${t.getTextContent()}](${t.getURL()})`;const r=t.getFirstChild();return t.getChildrenSize()===1&&U.$isTextNode(r)?n(r,e):e},importRegExp:/(?:\[([^[]+)\])(?:\(([^(]+)\))/,regExp:/(?:\[([^[]+)\])(?:\(([^(]+)\))$/,replace:(t,e)=>{const[,n,r]=e;e=Ji.$createLinkNode(r);const i=U.$createTextNode(n);i.setFormat(t.getFormat()),e.append(i),t.replace(e)},trigger:")",type:"text-match"},cc=[Za,Ja,Xa,Qa,qa],dc=[ec,tc,nc,rc,ic,lc,sc,oc],uc=[ac],Lr=[...cc,...dc,...uc];Q.$convertFromMarkdownString=function(t,e=Lr){return jg(e)(t)},Q.$convertToMarkdownString=function(t=Lr){return Wg(t)()},Q.BOLD_ITALIC_STAR=tc,Q.BOLD_ITALIC_UNDERSCORE=nc,Q.BOLD_STAR=rc,Q.BOLD_UNDERSCORE=ic,Q.CHECK_LIST=Jg,Q.CODE=Xa,Q.ELEMENT_TRANSFORMERS=cc,Q.HEADING=Za,Q.INLINE_CODE=ec,Q.ITALIC_STAR=lc,Q.ITALIC_UNDERSCORE=sc,Q.LINK=ac,Q.ORDERED_LIST=qa,Q.QUOTE=Ja,Q.STRIKETHROUGH=oc,Q.TEXT_FORMAT_TRANSFORMERS=dc,Q.TEXT_MATCH_TRANSFORMERS=uc,Q.TRANSFORMERS=Lr,Q.UNORDERED_LIST=Qa,Q.registerMarkdownShortcuts=function(t,e=Lr){let n=Qi(e),r=Xi(n.textFormat,({tag:o})=>o[o.length-1]),i=Xi(n.textMatch,({trigger:o})=>o);for(let o of e)if(e=o.type,(e==="element"||e==="text-match")&&!t.hasNodes(o.dependencies))throw Error("Minified Lexical error #79; visit https://lexical.dev/docs/error?code=79 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return t.registerUpdateListener(({tags:o,dirtyLeaves:l,editorState:s,prevEditorState:a})=>{if(!o.has("historic")){var c=s.read(U.$getSelection);if(o=a.read(U.$getSelection),U.$isRangeSelection(o)&&U.$isRangeSelection(c)&&c.isCollapsed()){a=c.anchor.key;var d=c.anchor.offset,u=s._nodeMap.get(a);U.$isTextNode(u)&&l.has(a)&&(d===1||d===o.anchor.offset+1)&&t.update(()=>{if(!u.hasFormat("code")){var g=u.getParent();if(g!==null&&!In.$isCodeNode(g)){var m=c.anchor.offset;e:{var h=n.element,v=g.getParent();if(U.$isRootOrShadowRoot(v)&&g.getFirstChild()===u&&(v=u.getTextContent(),v[m-1]===" ")){for(let{regExp:E,replace:k}of h)if((h=v.match(E))&&h[0].length===m){v=u.getNextSiblings();let[O,D]=u.splitText(m);O.remove(),v=D?[D,...v]:v,k(g,v,h,!1),g=!0;break e}}g=!1}if(!g){e:{if(h=u.getTextContent(),g=i[h[m-1]],g!=null){m<h.length&&(h=h.slice(0,m));for(N of g)if(g=h.match(N.regExp),g!==null){h=g.index||0,v=h+g[0].length;var C=void 0;h===0?[C]=u.splitText(v):[,C]=u.splitText(h,v),C.selectNext(0,0),N.replace(C,g);var N=!0;break e}}N=!1}if(!N)e:{v=u.getTextContent(),--m;var p=v[m];if(N=r[p])for(let E of N){var{tag:x}=E;N=x.length;let k=m-N+1;if(!(1<N&&!ja(v,k,x,0,N)||v[k-1]===" ")&&(C=v[m+1],E.intraword!==!1||!C||Rr.test(C))){g=C=u,h=Va(v,k,x);for(var T=g;0>h&&(T=T.getPreviousSibling())&&!U.$isLineBreakNode(T);)U.$isTextNode(T)&&(h=T.getTextContent(),g=T,h=Va(h,h.length,x));if(!(0>h||g===C&&h+N===k||(x=g.getTextContent(),0<h&&x[h-1]===p||(T=x[h-1],E.intraword===!1&&T&&!Rr.test(T))))){v=C.getTextContent(),v=v.slice(0,k)+v.slice(m+1),C.setTextContent(v),v=g===C?v:x,g.setTextContent(v.slice(0,h)+v.slice(h+N)),v=U.$getSelection(),p=U.$createRangeSelection(),U.$setSelection(p),m=m-N*(g===C?2:1)+1,p.anchor.set(g.__key,h,"text"),p.focus.set(C.__key,m,"text");for(let O of E.format)p.hasFormat(O)||p.formatText(O);p.anchor.set(p.focus.key,p.focus.offset,p.focus.type);for(let O of E.format)p.hasFormat(O)&&p.toggleFormat(O);U.$isRangeSelection(v)&&(p.format=v.format);break e}}}}}}}})}}})};var Tt=Q,to={},Pn={},Xg=ge,Qg=js,qg=_e,He=w,Fn=S.default;let e1=He.createCommand("INSERT_HORIZONTAL_RULE_COMMAND");function t1({nodeKey:t}){let[e]=Xg.useLexicalComposerContext(),n=Fn.useRef(null),[r,i,o]=Qg.useLexicalNodeSelection(t),l=Fn.useCallback(s=>(r&&He.$isNodeSelection(He.$getSelection())&&(s.preventDefault(),s=He.$getNodeByKey(t),gc(s)&&s.remove(),i(!1)),!1),[r,t,i]);return Fn.useEffect(()=>qg.mergeRegister(e.registerCommand(He.CLICK_COMMAND,s=>s.target===n.current?(s.shiftKey||o(),i(!r),!0):!1,He.COMMAND_PRIORITY_LOW),e.registerCommand(He.KEY_DELETE_COMMAND,l,He.COMMAND_PRIORITY_LOW),e.registerCommand(He.KEY_BACKSPACE_COMMAND,l,He.COMMAND_PRIORITY_LOW)),[o,e,r,l,i]),Fn.createElement("hr",{ref:n,className:r?"selected":void 0})}class zn extends He.DecoratorNode{static getType(){return"horizontalrule"}static clone(e){return new zn(e.__key)}static importJSON(){return no()}static importDOM(){return{hr:()=>({conversion:n1,priority:0})}}exportJSON(){return{type:"horizontalrule",version:1}}exportDOM(){return{element:document.createElement("hr")}}createDOM(){let e=document.createElement("div");return e.style.display="contents",e}getTextContent(){return`
53
- `}isInline(){return!1}updateDOM(){return!1}decorate(){return Fn.createElement(t1,{nodeKey:this.__key})}}function n1(){return{node:no()}}function no(){return new zn}function gc(t){return t instanceof zn}Pn.$createHorizontalRuleNode=no,Pn.$isHorizontalRuleNode=gc,Pn.HorizontalRuleNode=zn,Pn.INSERT_HORIZONTAL_RULE_COMMAND=e1;var r1=Pn,fc=Tt,i1=ge,ro=r1,o1=S.default;let hc=[{dependencies:[ro.HorizontalRuleNode],export:t=>ro.$isHorizontalRuleNode(t)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,r)=>{e=ro.$createHorizontalRuleNode(),r||t.getNextSibling()!=null?t.replace(e):t.insertBefore(e),e.selectNext()},type:"element"},...fc.TRANSFORMERS];to.DEFAULT_TRANSFORMERS=hc,to.MarkdownShortcutPlugin=function({transformers:t=hc}){let[e]=i1.useLexicalComposerContext();return o1.useEffect(()=>fc.registerMarkdownShortcuts(e,t),[e,t]),null};var l1=to;const pc={dependencies:[Ct],export:t=>Mu(t)?"---":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,r)=>{const i=Ii();r||t.getNextSibling()!=null?t.replace(i):t.insertBefore(i),i.selectNext()},type:"element"},mc={dependencies:[jt],export:t=>{if(!Iu(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
54
- `+e:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:(t,e,n)=>{const r=n[1]||"",i=e[1],o=qs(i,r);t.replace(o)},type:"element"},s1={dependencies:[je],export:t=>{if(Xu(t)){const{src:e,alt:n}=t.dataset;return`![${n}](${e})`}else return null},regExp:/^image! $/,replace:(t,e,n)=>{const o=Nr({altText:"",src:""});t.replace(o)},type:"element"},xc=[Tt.HEADING,Tt.QUOTE,Tt.UNORDERED_LIST,Tt.ORDERED_LIST,pc,mc,s1],_c=[...xc,...Tt.TEXT_FORMAT_TRANSFORMERS,...Tt.TEXT_MATCH_TRANSFORMERS];function vc({transformers:t=_c}={}){return l1.MarkdownShortcutPlugin({transformers:t})}function Dr(t){const e=t.anchor,n=t.focus,r=t.anchor.getNode(),i=t.focus.getNode();return r===i?r:t.isBackward()?Ve.$isAtNodeEnd(n)?r:i:Ve.$isAtNodeEnd(e)?i:r}function a1({onClick:t}){return f("div",{className:"absolute top-[-2px] left-[-66px]","data-kg-plus-button":!0,children:f("button",{type:"button","aria-label":"Add a card",className:"group relative flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border border-grey bg-white transition-all ease-linear hover:border-grey-900 md:h-9 md:w-9",onClick:t,children:f(ko,{className:"h-4 w-4 stroke-grey-800 stroke-2 group-hover:stroke-grey-900"})})})}function c1({children:t}){return f("div",{className:"absolute left-[-16px]","data-kg-plus-menu":!0,children:t})}const d1=({label:t,children:e,...n})=>V("li",{role:"separator",className:"text-grey flex shrink-0 flex-col justify-center text-[1.1rem] font-semibold uppercase tracking-wide",...n,children:[f("span",{className:"mb-2 block px-4 pt-3",style:{minWidth:"calc(100% - 3.2rem)"},children:t}),f("ul",{role:"menu",children:e})]}),u1=({label:t,desc:e,isSelected:n,onClick:r,Icon:i,...o})=>f("li",{role:"presentation",children:V("button",{type:"button",role:"menuitem",className:`text-grey-800 hover:bg-grey-100 flex w-full cursor-pointer flex-row items-center border border-transparent px-4 py-[1rem] text-left ${n?"bg-grey-100":""}`,onMouseDown:s=>{s.preventDefault()},onClick:r,"data-kg-card-menu-item":t,"data-kg-cardmenu-selected":n,...o,children:[f("div",{className:"flex items-center",children:f(i,{className:"h-7 w-7"})}),V("div",{className:"flex flex-col",children:[f("div",{className:"text-grey-900 m-0 ml-4 truncate text-[1.3rem] font-medium leading-[1.6rem] tracking-[.02rem]",children:t}),f("div",{className:"text-grey m-0 ml-4 truncate text-xs font-normal leading-[1.6rem] tracking-[.02rem]",children:e})]})]})}),g1=({label:t,isSelected:e,Icon:n,...r})=>f("li",{role:"presentation",children:V("button",{type:"button",role:"menuitem",className:`text-grey-800 hover:bg-grey-100 flex w-full cursor-pointer flex-row items-center border border-transparent px-4 py-[1rem] ${e?"bg-grey-100":""}`,"data-kg-cardmenu-selected":e,...r,children:[f("div",{className:"flex items-center",children:f(n,{className:"h-7 w-7"})}),f("div",{className:"flex flex-col",children:f("div",{className:"text-grey-900 m-0 ml-4 truncate text-[1.3rem] font-medium leading-[1.6rem] tracking-[.02rem]",children:t})})]})}),wc=({menu:t=new Map,insert:e=()=>{},selectedItemIndex:n})=>{const r=[];let i=0;for(const[o,l]of t){const s=[];l.forEach(a=>{const c=i===n,d=u=>{u.preventDefault(),e==null||e(a.insertCommand,{insertParams:a.insertParams,queryParams:a.queryParams})};!a.type||a.type==="card"?s.push(f(u1,{label:a.label,desc:a.desc,Icon:a.Icon,isSelected:c,onClick:d,"data-kg-cardmenu-idx":i},i)):a.type==="snippet"&&s.push(f(g1,{label:a.label,Icon:a.Icon,isSelected:c,onClick:d,"data-kg-cardmenu-idx":i},i)),i=i+1}),r.push(f(d1,{label:o,children:s},o))}return f("ul",{role:"menu",className:"not-kg-prose z-[9999999] m-0 mb-3 max-h-[376px] w-[312px] flex-col overflow-y-auto rounded-lg bg-white bg-clip-padding p-0 pt-0 font-sans text-sm shadow after:block after:pb-4",children:r})};function io(t){const e=t._nodes,n=[];for(const[r,{klass:i}]of e)!i.kgMenu||n.push([r,i]);return n}function yc(t,{query:e}={}){const n=new Map;e=e==null?void 0:e.toLowerCase();let r=-1;function i(o){if(e&&(!o.matches||!o.matches.find(s=>s.startsWith(e))))return;const l=o.section||"Primary";n.has(l)?n.get(l).push(o):n.set(l,[o]),r=r+1}for(const[o,l]of t)Array.isArray(l.kgMenu)?l.kgMenu.forEach(s=>i({nodeType:o,...s})):i({nodeType:o,...l.kgMenu});return{menu:n,maxItemIndex:r}}function f1(t){var W;const[e,n]=S.default.useState(!1),[r,i]=S.default.useState(!1),[o,l]=S.default.useState(0),[s,a]=S.default.useState(null),[c,d]=S.default.useState({}),u=S.default.useRef(null);function g(P){const H=P.getBoundingClientRect(),ie=P.parentNode.getBoundingClientRect();return H.top-ie.top}function m(P){const H=new Range;return H.setStart(P,0),H.setEnd(P,0),H}const h=S.default.useCallback(()=>{!s||(document.getSelection().removeAllRanges(),document.getSelection().addRange(s))},[s]),v=S.default.useCallback(P=>{const H=m(P);a(H),n(!0)},[n,a]),C=S.default.useCallback(()=>{n(!1),i(!1),a(null)},[n,i,a]),N=S.default.useCallback(P=>{P==null||P.preventDefault(),h(),i(!0)},[h,i]),p=S.default.useCallback(({resetCursor:P=!1}={})=>{P&&h(),i(!1)},[h,i]),x=S.default.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const P=w.$getSelection();if(!w.$isRangeSelection(P)||!P.type==="text"||!P.isCollapsed()){C();return}const H=Dr(P);if(!w.$isParagraphNode(H)||H.getTextContent()!==""){C();return}const q=window.getSelection().anchorNode,ee=t.getRootElement();if((q==null?void 0:q.tagName)!=="P"||!ee.contains(q)){C();return}l(g(q)),v(q)})},[t,v,C]),T=S.default.useCallback((P,{insertParams:H={}}={})=>{const ie={...H};t.dispatchCommand(P,ie),p()},[t,p]);S.default.useEffect(()=>t.registerUpdateListener(()=>{x()},[t,x]));const E=S.default.useCallback(()=>{var P;if(e){const H=window.getSelection();if(r&&((P=u.current)==null?void 0:P.contains(H.anchorNode)))return;t.getRootElement().contains(H.anchorNode)||C()}},[t,e,r,C]);S.default.useEffect(()=>(document.addEventListener("selectionchange",E),()=>{document.removeEventListener("selectionchange",E)}),[E]);const k=S.default.useCallback(P=>{if(r)return;const H=t.getRootElement();let{pageX:ie,pageY:q}=P,ee=H.getBoundingClientRect();ie<ee.left&&(ie=ie+40);const ce=document.elementFromPoint(ie,q);H.contains(ce)&&((ce==null?void 0:ce.tagName)==="P"&&ce.textContent===""?(l(g(ce)),v(ce)):x())},[t,r,l,v,x]);S.default.useEffect(()=>(window.addEventListener("mousemove",k),()=>{window.removeEventListener("mousemove",k)}),[k]);const O=S.default.useCallback(P=>{var H;if(r&&!((H=u.current)!=null&&H.contains(P.target)))return p()},[r,p]);S.default.useEffect(()=>(window.addEventListener("mousedown",O),()=>{window.removeEventListener("mousedown",O)}),[O]);const D=S.default.useCallback(P=>{if(r){if(P.key==="Escape"){p({resetCursor:!0});return}["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(P.key)&&p()}},[r,p]);S.default.useEffect(()=>(window.addEventListener("keydown",D),()=>{window.removeEventListener("keydown",D)})),S.default.useEffect(()=>{const P=io(t);d(yc(P,{insert:T}))},[t,T,d]);const $={top:`${o}px`};return((W=c.menu)==null?void 0:W.size)===0?null:e?V("div",{className:"absolute",style:$,ref:u,"data-kg-plus-container":!0,children:[e&&f(a1,{onClick:N}),r&&f(c1,{children:f(wc,{menu:c.menu,insert:T})})]}):null}function kc(){const[t]=ge.useLexicalComposerContext();return f1(t)}function h1({children:t}){return f("div",{"data-kg-slash-menu":!0,children:t})}function p1(t){var T;const[e,n]=S.default.useState(!1),[r,i]=S.default.useState(0),[o,l]=S.default.useState(""),[s,a]=S.default.useState([]),[c,d]=S.default.useState({}),[u,g]=S.default.useState(0),m=S.default.useRef(null),h=S.default.useRef(null);function v(E){const k=E.getBoundingClientRect(),O=E.parentNode.getBoundingClientRect();return k.bottom-O.top}function C(){!m.current||(document.getSelection().removeAllRanges(),document.getSelection().addRange(m.current))}const N=S.default.useCallback(()=>{n(!0)},[n]),p=S.default.useCallback(({resetCursor:E=!1}={})=>{E&&C(),n(!1),l(""),a([]),m.current=null},[n]),x=S.default.useCallback((E,{insertParams:k={},queryParams:O={}}={})=>{const D={...k};for(let $=0;$<O.length;$++)if(s[$]){const W=O[$],P=s[$];D[W]=P}t.update(()=>{const $=w.$getSelection();$.modify("extend",!0,"lineboundary"),$.deleteCharacter(!0),t.dispatchCommand(E,D)}),p()},[t,s,p]);return S.default.useEffect(()=>t.registerUpdateListener(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const E=w.$getSelection();if(!w.$isRangeSelection(E)||!E.type==="text"||!E.isCollapsed()){p();return}const k=Dr(E).getTopLevelElement();if(!k||!w.$isParagraphNode(k)||!k.getTextContent().startsWith("/")){p();return}const O=window.getSelection(),D=O.anchorNode,$=t.getRootElement();if((D==null?void 0:D.nodeType)!==Node.TEXT_NODE||!$.contains(D)){p();return}m.current=O.getRangeAt(0);const W=k.getTextContent().slice(1),[P,...H]=W.split(" ");l(P),a(H)})}),[t,p,l,a]),S.default.useEffect(()=>{if(e)return;const E=k=>{const{key:O,isComposing:D,shiftKey:$,ctrlKey:W,metaKey:P,altKey:H}=k;O!=="/"||D||$||W||P||H||!t.getRootElement().matches(":focus")||t.getEditorState().read(()=>{const q=w.$getSelection(),ee=Dr(q).getTopLevelElement();if(!ee||!w.$isParagraphNode(ee))return;const ce=ee.getTextContentSize(),Jt=q.isCollapsed()&&ee.getTextContent()==="",oe=!q.isCollapsed()&&(q.anchor.offset===0&&q.focus.offset===ce||q.anchor.offset===ce&&q.focus.offset===0);if(Jt||oe){const de=window.getSelection();let Ce;de.anchorNode.nodeType===Node.TEXT_NODE?Ce=de.anchorNode.parentNode.closest("p"):Ce=de.anchorNode,i(v(Ce)),N()}})};return window.addEventListener("keypress",E),()=>{window.removeEventListener("keypress",E)}},[t,e,i,N]),S.default.useEffect(()=>{if(!e)return;const E=k=>{if(k.key==="Escape"){p({resetCursor:!0});return}};return window.addEventListener("keydown",E),()=>{window.removeEventListener("keydown",E)}},[e,p]),S.default.useEffect(()=>{if(!e)return;const E=k=>{var O;(O=h.current)!=null&&O.contains(k.target)||p()};return window.addEventListener("mousedown",E),()=>{window.removeEventListener("mousedown",E)}},[e,p]),S.default.useEffect(()=>{if(!e)return;const E=D=>(g(u===0?c.maxItemIndex:u-1),D.preventDefault(),!0),k=D=>(u===c.maxItemIndex?g(0):g(u+1),D.preventDefault(),!0),O=D=>{var $;return($=document.querySelector(`[data-kg-slash-menu] [data-kg-cardmenu-idx="${u}"]`))==null||$.click(),D.preventDefault(),!0};return _e.mergeRegister(t.registerCommand(w.KEY_ARROW_DOWN_COMMAND,k,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_UP_COMMAND,E,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_RIGHT_COMMAND,k,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_LEFT_COMMAND,E,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ENTER_COMMAND,O,w.COMMAND_PRIORITY_HIGH))},[t,e,c,u]),S.default.useEffect(()=>{const E=io(t);d(yc(E,{insert:x,query:o})),g(0)},[t,o,x,d,g]),((T=c.menu)==null?void 0:T.size)===0?null:e?f("div",{className:"absolute",style:{top:`${r}px`},ref:h,"data-kg-slash-container":!0,children:f(h1,{children:f(wc,{menu:c.menu,selectedItemIndex:u,insert:x})})}):null}function m1(){const[t]=ge.useLexicalComposerContext();return p1(t)}const x1=10;function _1(t,e,n,r={}){r=Object.assign({verticalGap:x1,controlOpacity:!1},r);const i=n.parentElement;if(t===null||!i){r.controlOpacity&&(e.style.opacity="0"),e.style.top="-10000px",e.style.left="-10000px";return}const o=e.getBoundingClientRect(),l=n.getBoundingClientRect(),s=i.getBoundingClientRect();let a=t.top-o.height-r.verticalGap,c=t.left+t.width/2-o.width/2;c<s.left&&(c=s.left),c+o.width>s.right&&(c=s.right-o.width),a-=l.top,c-=l.left,r.controlOpacity&&(e.style.opacity="1"),e.style.top=`${a}px`,e.style.left=`${c}px`}function v1(t,e){const n=t.getRangeAt(0);let r;if(t.anchorNode===e){let i=e;for(;i.firstElementChild!=null;)i=i.firstElementChild;r=i.getBoundingClientRect()}else r=n.getBoundingClientRect();return r}function Cc(t){const n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY,r=n!=="visible"&&n!=="hidden";if(t){if(r&&t.scrollHeight>=t.clientHeight)return t}else return null;return Cc(t.parentNode)||document.body}const w1={bullet:"Bulleted List",check:"Check List",code:"Code Block",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",number:"Numbered List",paragraph:"Normal",quote:"Quote",aside:"Aside"};function y1({isText:t,editor:e,anchorElem:n,blockType:r,isBold:i,isItalic:o}){const[l,s]=S.default.useState(!1),a=S.default.useRef(null),c=()=>{r!=="paragraph"&&e.update(()=>{const h=w.$getSelection();w.$isRangeSelection(h)&&Ve.$wrapNodes(h,()=>w.$createParagraphNode())})},d=h=>{r!==h&&e.update(()=>{const v=w.$getSelection();w.$isRangeSelection(v)&&Ve.$wrapNodes(v,()=>et.$createHeadingNode(h))})},u=()=>{e.update(()=>{const h=w.$getSelection();w.$isRangeSelection(h)&&(r==="quote"?Ve.$wrapNodes(h,()=>Mi()):r==="aside"?Ve.$wrapNodes(h,()=>w.$createParagraphNode()):Ve.$wrapNodes(h,()=>et.$createQuoteNode()))})},g=S.default.useCallback(()=>{const h=a.current;if(!h)return;const v=w.$getSelection(),C=window.getSelection(),N=e.getRootElement();if(v!==null&&C!==null&&!C.isCollapsed&&N!==null&&N.contains(C.anchorNode)){const p=v1(C,N);l||_1(p,h,n)}},[e,n,l]),m=S.default.useCallback(()=>{t!==!1&&(a.current.style.opacity="1")},[t]);return S.default.useEffect(()=>(e.getEditorState().read(()=>{g()}),document.addEventListener("mouseup",m),()=>{document.removeEventListener("mouseup",m)}),[m,e,g]),S.default.useEffect(()=>{e.getEditorState().read(()=>{g()});const h=v=>{v.key==="Shift"&&m()};return document.addEventListener("keyup",h),()=>{document.removeEventListener("keyup",h)}},[m,e,g]),S.default.useEffect(()=>{const h=Cc(n),v=()=>{e.getEditorState().read(()=>{g()})};return window.addEventListener("resize",v),h&&h.addEventListener("scroll",v),()=>{window.removeEventListener("resize",v),h&&h.removeEventListener("scroll",v)}},[e,g,n]),S.default.useEffect(()=>(e.getEditorState().read(()=>{g()}),_e.mergeRegister(e.registerUpdateListener(({editorState:h})=>{h.read(()=>{g()})}),e.registerCommand(w.SELECTION_CHANGE_COMMAND,()=>(g(),!1),w.COMMAND_PRIORITY_LOW))),[e,g]),f("div",{className:"absolute",ref:a,"data-kg-floating-toolbar":!0,style:{opacity:0},children:V(na,{children:[f(Fe,{label:"Format text as bold",isActive:i,icon:"bold",onClick:()=>{s(!0),e.dispatchCommand(w.FORMAT_TEXT_COMMAND,"bold")},"data-kg-toolbar-button":"bold"}),f(Fe,{label:"Format text as italics",isActive:o,icon:"italic",onClick:()=>{s(!0),e.dispatchCommand(w.FORMAT_TEXT_COMMAND,"italic")},"data-kg-toolbar-button":"italic"}),f(Fe,{label:"Toggle heading 1",isActive:r==="h2",icon:"headingOne",onClick:()=>{r==="h2"?c():d("h2"),s(!0)},"data-kg-toolbar-button":"h2"}),f(Fe,{label:"Toggle heading 2",isActive:r==="h3",icon:"headingTwo",onClick:()=>{r==="h3"?c():d("h3"),s(!0)},"data-kg-toolbar-button":"h3"}),f(Pi,{}),f(Fe,{label:"Toggle blockquote",isActive:r==="quote"||r==="aside",icon:r==="aside"?"quoteOne":"quoteTwo",onClick:()=>{u(),s(!0)},"data-kg-toolbar-button":"quote"})]})})}function k1(t,e){const[n,r]=S.default.useState(!1),[i,o]=S.default.useState(!1),[l,s]=S.default.useState(!1),[a,c]=S.default.useState("paragraph"),d=S.default.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const u=w.$getSelection(),g=window.getSelection(),m=t.getRootElement();if(g!==null&&(!w.$isRangeSelection(u)||m===null||!m.contains(g.anchorNode))){r(!1);return}if(!w.$isRangeSelection(u))return;const h=Dr(u),v=h.getKey()==="root"?h:h.getTopLevelElementOrThrow(),C=v.getKey(),N=t.getElementByKey(C);if(o(u.hasFormat("bold")),s(u.hasFormat("italic")),N!==null)if(Xe.$isListNode(v)){const p=_e.$getNearestNodeOfType(h,Xe.ListNode),x=p?p.getListType():v.getListType();c(x)}else{const p=et.$isHeadingNode(v)?v.getTag():v.getType();p in w1&&c(p)}u.getTextContent()!==""?r(w.$isTextNode(h)):r(!1)})},[t]);if(te.useEffect(()=>(document.addEventListener("selectionchange",d),()=>{document.removeEventListener("selectionchange",d)}),[d]),te.useEffect(()=>t.registerUpdateListener(()=>{d()}),[t,d]),!!n)return rt.createPortal(f(y1,{isText:n,editor:t,anchorElem:e,blockType:a,isBold:i,isItalic:l}),e)}function Ec({anchorElem:t=document.body}){const[e]=ge.useLexicalComposerContext();return k1(e,t)}const C1=()=>{const[t]=ge.useLexicalComposerContext(),{imageUploader:e}=S.default.useContext(Cr),n=S.default.useCallback(async(r,i)=>{if((r==null?void 0:r.length)>0)return await Fi(r,i,t,e)},[e,t]);return S.default.useEffect(()=>{if(!t.hasNodes([je])){console.error("ImagePlugin: ImageNode not registered");return}return _e.mergeRegister(t.registerCommand(zi,async r=>{const i=w.$getSelection();if(!w.$isRangeSelection(i))return!1;if(i.focus.getNode()!==null){const l=Nr(r);if(!r.src){const u=l.getKey();n(r,u)}const s=i.focus.getNode(),a=w.$isParagraphNode(s)&&s.getTextContent()==="",c=s.getTopLevelElementOrThrow().getNextSibling();!a&&!c&&i.insertParagraph(),i.focus.getNode().getTopLevelElementOrThrow().insertBefore(l);const d=w.$createNodeSelection();d.add(l.getKey()),w.$setSelection(d)}return!0},w.COMMAND_PRIORITY_HIGH))},[t,e,n]),null};function E1(t,e){const n=t.type;return Object.keys(e).find(i=>e[i].includes(n))}function N1(t,e){const n=t[Symbol.iterator]();return new Promise((r,i)=>{const o=[];let l;const s=()=>{const{done:a,value:c}=n.next();if(a)return r({processed:o,node:l});const d=new FileReader;d.addEventListener("error",i),d.addEventListener("load",()=>{typeof d.result=="string"&&o.push(c),s()});const u=E1(c,e);u?(d.readAsDataURL(c),l=u):(console.error("unsupported file type"),s())};s()})}async function T1(t){const e=io(t);let n={};for(const[r,i]of e)r&&i.mimeTypes&&(n[r]=i.mimeTypes);return{acceptableMimeTypes:n}}function S1(){const[t]=ge.useLexicalComposerContext(),e=S.default.useCallback(i=>{i.preventDefault(),i.stopPropagation()},[]),n=S.default.useCallback(async i=>{i.preventDefault(),i.stopPropagation(),i.dataTransfer.files&&t.dispatchCommand(et.DRAG_DROP_PASTE,i.dataTransfer.files)},[t]);S.default.useEffect(()=>{const i=document.querySelector(".gh-koenig-editor")||document;return i.addEventListener("dragover",e),i.addEventListener("drop",n),()=>{i.removeEventListener("dragover",e),i.removeEventListener("drop",n)}},[n,e]);const r=S.default.useCallback(async i=>{const{acceptableMimeTypes:o}=await T1(t),{processed:l,node:s}=await N1(i,o);l.length&&s==="image"&&t.dispatchCommand(zi,l)},[t]);return S.default.useEffect(()=>t.registerCommand(et.DRAG_DROP_PASTE,async i=>{try{return await r(i)}catch(o){console.error(o)}},w.COMMAND_PRIORITY_LOW),[t,r]),null}const b1=()=>{const[t]=ge.useLexicalComposerContext();return te.useEffect(()=>{if(!t.hasNodes([])){console.error("HorizontalRulePlugin: HorizontalRuleNode not registered");return}return t.registerCommand(Xs,()=>{const e=w.$getSelection();if(!w.$isRangeSelection(e))return!1;if(e.focus.getNode()!==null){const r=Ii(),i=e.focus.getNode();w.$isParagraphNode(i)&&i.getTextContent()!==""&&e.insertParagraph(),e.focus.getNode().getTopLevelElementOrThrow().insertBefore(r)}return!0},w.COMMAND_PRIORITY_EDITOR)},[t]),null};function O1(){return f("div",{className:"pointer-events-none absolute top-0 left-0 min-w-full cursor-text font-serif text-xl text-grey-500",children:"Begin writing your post..."})}const R1=({onChange:t,markdownTransformers:e})=>{const n=S.default.useCallback(s=>{const a=s.toJSON();t==null||t(a)},[t]),{editorContainerRef:r}=S.default.useContext(Cr),[i,o]=S.default.useState(null),l=s=>{s!==null&&o(s)};return V("div",{className:"koenig-lexical",ref:r,children:[f(ug.RichTextPlugin,{contentEditable:f("div",{ref:l,children:f(wg.ContentEditable,{className:"kg-prose"})}),placeholder:f(O1,{}),ErrorBoundary:xg}),f(Rg.OnChangePlugin,{onChange:n}),f(Sg.HistoryPlugin,{})," ",f(Lg.ListPlugin,{})," ",f(wa,{containerElem:r}),f(vc,{transformers:e}),f(kc,{}),f(m1,{}),i&&f(Ec,{anchorElem:i}),f(C1,{}),f(S1,{}),f(b1,{})]})};j.CODE_BLOCK_TRANSFORMER=mc,j.DEFAULT_NODES=ra,j.DEFAULT_TRANSFORMERS=_c,j.DesignSandbox=cd,j.ELEMENT_TRANSFORMERS=xc,j.FloatingFormatToolbarPlugin=Ec,j.HR_TRANSFORMER=pc,j.KoenigBehaviourPlugin=wa,j.KoenigComposer=tg,j.KoenigEditor=R1,j.MarkdownShortcutPlugin=vc,j.PlusCardMenuPlugin=kc,Object.defineProperties(j,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
51
+ `)},regExp:/^>\s/,replace:(t,e,n,r)=>{if(r&&(n=t.getPreviousSibling(),ht.$isQuoteNode(n))){n.splice(n.getChildrenSize(),0,[Y.$createLineBreakNode(),...e]),n.select(0,0),t.remove();return}n=ht.$createQuoteNode(),n.append(...e),t.replace(n),n.select(0,0)},type:"element"},gc={dependencies:[Yn.CodeNode],export:t=>{if(!Yn.$isCodeNode(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
52
+ `+e:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:cc(t=>Yn.$createCodeNode(t?t[1]:void 0)),type:"element"},hc={dependencies:[ve.ListNode,ve.ListItemNode],export:(t,e)=>ve.$isListNode(t)?Kr(t,e,0):null,regExp:/^(\s*)[-*+]\s/,replace:go("bullet"),type:"element"},_1={dependencies:[ve.ListNode,ve.ListItemNode],export:(t,e)=>ve.$isListNode(t)?Kr(t,e,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:go("check"),type:"element"},fc={dependencies:[ve.ListNode,ve.ListItemNode],export:(t,e)=>ve.$isListNode(t)?Kr(t,e,0):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:go("number"),type:"element"},pc={format:["code"],tag:"`",type:"text-format"},mc={format:["bold","italic"],tag:"***",type:"text-format"},xc={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},_c={format:["bold"],tag:"**",type:"text-format"},vc={format:["bold"],intraword:!1,tag:"__",type:"text-format"},wc={format:["strikethrough"],tag:"~~",type:"text-format"},yc={format:["italic"],tag:"*",type:"text-format"},kc={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Cc={dependencies:[so.LinkNode],export:(t,e,n)=>{if(!so.$isLinkNode(t))return null;e=`[${t.getTextContent()}](${t.getURL()})`;const r=t.getFirstChild();return t.getChildrenSize()===1&&Y.$isTextNode(r)?n(r,e):e},importRegExp:/(?:\[([^[]+)\])(?:\(([^()]+)\))/,regExp:/(?:\[([^[]+)\])(?:\(([^()]+)\))$/,replace:(t,e)=>{const[,n,r]=e;e=so.$createLinkNode(r);const i=Y.$createTextNode(n);i.setFormat(t.getFormat()),e.append(i),t.replace(e)},trigger:")",type:"text-match"},Ec=[dc,uc,gc,hc,fc],Nc=[pc,mc,xc,_c,vc,yc,kc,wc],Tc=[Cc],Wr=[...Ec,...Nc,...Tc];te.$convertFromMarkdownString=function(t,e=Wr){return p1(e)(t)},te.$convertToMarkdownString=function(t=Wr){return u1(t)()},te.BOLD_ITALIC_STAR=mc,te.BOLD_ITALIC_UNDERSCORE=xc,te.BOLD_STAR=_c,te.BOLD_UNDERSCORE=vc,te.CHECK_LIST=_1,te.CODE=gc,te.ELEMENT_TRANSFORMERS=Ec,te.HEADING=dc,te.INLINE_CODE=pc,te.ITALIC_STAR=yc,te.ITALIC_UNDERSCORE=kc,te.LINK=Cc,te.ORDERED_LIST=fc,te.QUOTE=uc,te.STRIKETHROUGH=wc,te.TEXT_FORMAT_TRANSFORMERS=Nc,te.TEXT_MATCH_TRANSFORMERS=Tc,te.TRANSFORMERS=Wr,te.UNORDERED_LIST=hc,te.registerMarkdownShortcuts=function(t,e=Wr){let n=co(e),r=ao(n.textFormat,({tag:o})=>o[o.length-1]),i=ao(n.textMatch,({trigger:o})=>o);for(let o of e)if(e=o.type,(e==="element"||e==="text-match")&&!t.hasNodes(o.dependencies))throw Error("Minified Lexical error #79; visit https://lexical.dev/docs/error?code=79 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return t.registerUpdateListener(({tags:o,dirtyLeaves:l,editorState:s,prevEditorState:a})=>{if(!o.has("historic")){var c=s.read(Y.$getSelection);if(o=a.read(Y.$getSelection),Y.$isRangeSelection(o)&&Y.$isRangeSelection(c)&&c.isCollapsed()){a=c.anchor.key;var d=c.anchor.offset,u=s._nodeMap.get(a);Y.$isTextNode(u)&&l.has(a)&&(d===1||d===o.anchor.offset+1)&&t.update(()=>{if(!u.hasFormat("code")){var g=u.getParent();if(g!==null&&!Yn.$isCodeNode(g)){var m=c.anchor.offset;e:{var f=n.element,_=g.getParent();if(Y.$isRootOrShadowRoot(_)&&g.getFirstChild()===u&&(_=u.getTextContent(),_[m-1]===" ")){for(let{regExp:E,replace:k}of f)if((f=_.match(E))&&f[0].length===m){_=u.getNextSiblings();let[R,I]=u.splitText(m);R.remove(),_=I?[I,..._]:_,k(g,_,f,!1),g=!0;break e}}g=!1}if(!g){e:{if(f=u.getTextContent(),g=i[f[m-1]],g!=null){m<f.length&&(f=f.slice(0,m));for(N of g)if(g=f.match(N.regExp),g!==null){f=g.index||0,_=f+g[0].length;var C=void 0;f===0?[C]=u.splitText(_):[,C]=u.splitText(f,_),C.selectNext(0,0),N.replace(C,g);var N=!0;break e}}N=!1}if(!N)e:{_=u.getTextContent(),--m;var p=_[m];if(N=r[p])for(let E of N){var{tag:v}=E;N=v.length;let k=m-N+1;if(!(1<N&&!ac(_,k,v,0,N)||_[k-1]===" ")&&(C=_[m+1],E.intraword!==!1||!C||zr.test(C))){g=C=u,f=sc(_,k,v);for(var T=g;0>f&&(T=T.getPreviousSibling())&&!Y.$isLineBreakNode(T);)Y.$isTextNode(T)&&(f=T.getTextContent(),g=T,f=sc(f,f.length,v));if(!(0>f||g===C&&f+N===k||(v=g.getTextContent(),0<f&&v[f-1]===p||(T=v[f-1],E.intraword===!1&&T&&!zr.test(T))))){_=C.getTextContent(),_=_.slice(0,k)+_.slice(m+1),C.setTextContent(_),_=g===C?_:v,g.setTextContent(_.slice(0,f)+_.slice(f+N)),_=Y.$getSelection(),p=Y.$createRangeSelection(),Y.$setSelection(p),m=m-N*(g===C?2:1)+1,p.anchor.set(g.__key,f,"text"),p.focus.set(C.__key,m,"text");for(let R of E.format)p.hasFormat(R)||p.formatText(R);p.anchor.set(p.focus.key,p.focus.offset,p.focus.type);for(let R of E.format)p.hasFormat(R)&&p.toggleFormat(R);Y.$isRangeSelection(_)&&(p.format=_.format);break e}}}}}}}})}}})};var Ot=te,ho={},Vn={},v1=ie,w1=ia,y1=me,Be=w,Gn=S.default;let k1=Be.createCommand("INSERT_HORIZONTAL_RULE_COMMAND");function C1({nodeKey:t}){let[e]=v1.useLexicalComposerContext(),n=Gn.useRef(null),[r,i,o]=w1.useLexicalNodeSelection(t),l=Gn.useCallback(s=>(r&&Be.$isNodeSelection(Be.$getSelection())&&(s.preventDefault(),s=Be.$getNodeByKey(t),Sc(s)&&s.remove(),i(!1)),!1),[r,t,i]);return Gn.useEffect(()=>y1.mergeRegister(e.registerCommand(Be.CLICK_COMMAND,s=>s.target===n.current?(s.shiftKey||o(),i(!r),!0):!1,Be.COMMAND_PRIORITY_LOW),e.registerCommand(Be.KEY_DELETE_COMMAND,l,Be.COMMAND_PRIORITY_LOW),e.registerCommand(Be.KEY_BACKSPACE_COMMAND,l,Be.COMMAND_PRIORITY_LOW)),[o,e,r,l,i]),Gn.createElement("hr",{ref:n,className:r?"selected":void 0})}class Zn extends Be.DecoratorNode{static getType(){return"horizontalrule"}static clone(e){return new Zn(e.__key)}static importJSON(){return fo()}static importDOM(){return{hr:()=>({conversion:E1,priority:0})}}exportJSON(){return{type:"horizontalrule",version:1}}exportDOM(){return{element:document.createElement("hr")}}createDOM(){let e=document.createElement("div");return e.style.display="contents",e}getTextContent(){return`
53
+ `}isInline(){return!1}updateDOM(){return!1}decorate(){return Gn.createElement(C1,{nodeKey:this.__key})}}function E1(){return{node:fo()}}function fo(){return Be.$applyNodeReplacement(new Zn)}function Sc(t){return t instanceof Zn}Vn.$createHorizontalRuleNode=fo,Vn.$isHorizontalRuleNode=Sc,Vn.HorizontalRuleNode=Zn,Vn.INSERT_HORIZONTAL_RULE_COMMAND=k1;var N1=Vn,bc=Ot,T1=ie,po=N1,S1=S.default;let Rc=[{dependencies:[po.HorizontalRuleNode],export:t=>po.$isHorizontalRuleNode(t)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,r)=>{e=po.$createHorizontalRuleNode(),r||t.getNextSibling()!=null?t.replace(e):t.insertBefore(e),e.selectNext()},type:"element"},...bc.TRANSFORMERS];ho.DEFAULT_TRANSFORMERS=Rc,ho.MarkdownShortcutPlugin=function({transformers:t=Rc}){let[e]=T1.useLexicalComposerContext();return S1.useEffect(()=>bc.registerMarkdownShortcuts(e,t),[e,t]),null};var b1=ho;const Oc={dependencies:[St],export:t=>Xu(t)?"---":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,r)=>{const i=Vi();r||t.getNextSibling()!=null?t.replace(i):t.insertBefore(i),i.selectNext()},type:"element"},$c={dependencies:[nn],export:t=>{if(!eg(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
54
+ `+e:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:(t,e,n)=>{const r=n[1]||"",i=e[1],o=da(i,r);t.replace(o)},type:"element"},R1={dependencies:[rn],export:t=>{if(vg(t)){const{src:e,alt:n}=t.dataset;return`![${n}](${e})`}else return null},regExp:/^image! $/,replace:(t,e,n)=>{const o=xa({altText:"",src:""});t.replace(o)},type:"element"},Mc=[Ot.HEADING,Ot.QUOTE,Ot.UNORDERED_LIST,Ot.ORDERED_LIST,Oc,$c,R1],Ac=[...Mc,...Ot.TEXT_FORMAT_TRANSFORMERS,...Ot.TEXT_MATCH_TRANSFORMERS];function Dc({transformers:t=Ac}={}){return b1.MarkdownShortcutPlugin({transformers:t})}function Ur(t){const e=t.anchor,n=t.focus,r=t.anchor.getNode(),i=t.focus.getNode();return r===i?r:t.isBackward()?Ge.$isAtNodeEnd(n)?r:i:Ge.$isAtNodeEnd(e)?i:r}function O1({onClick:t}){return h("div",{className:"absolute top-[-2px] left-[-66px]","data-kg-plus-button":!0,children:h("button",{type:"button","aria-label":"Add a card",className:"group relative flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border border-grey transition-all ease-linear hover:border-grey-900 md:h-9 md:w-9",onClick:t,children:h(Mo,{className:"h-4 w-4 stroke-grey-800 stroke-2 group-hover:stroke-grey-900"})})})}function $1({children:t}){return h("div",{className:"absolute left-[-16px]","data-kg-plus-menu":!0,children:t})}const M1=({label:t,children:e,...n})=>B("li",{role:"separator",className:"text-grey flex shrink-0 flex-col justify-center text-[1.1rem] font-semibold uppercase tracking-wide",...n,children:[h("span",{className:"mb-2 block px-4 pt-3",style:{minWidth:"calc(100% - 3.2rem)"},children:t}),h("ul",{role:"menu",children:e})]}),A1=({label:t,desc:e,isSelected:n,onClick:r,Icon:i,...o})=>h("li",{role:"presentation",children:B("button",{type:"button",role:"menuitem",className:`text-grey-800 hover:bg-grey-100 flex w-full cursor-pointer flex-row items-center border border-transparent px-4 py-[1rem] text-left ${n?"bg-grey-100":""}`,onMouseDown:s=>{s.preventDefault()},onClick:r,"data-kg-card-menu-item":t,"data-kg-cardmenu-selected":n,...o,children:[h("div",{className:"flex items-center",children:h(i,{className:"h-7 w-7"})}),B("div",{className:"flex flex-col",children:[h("div",{className:"text-grey-900 m-0 ml-4 truncate text-[1.3rem] font-medium leading-[1.6rem] tracking-[.02rem]",children:t}),h("div",{className:"text-grey m-0 ml-4 truncate text-xs font-normal leading-[1.6rem] tracking-[.02rem]",children:e})]})]})}),D1=({label:t,isSelected:e,Icon:n,...r})=>h("li",{role:"presentation",children:B("button",{type:"button",role:"menuitem",className:`text-grey-800 hover:bg-grey-100 flex w-full cursor-pointer flex-row items-center border border-transparent px-4 py-[1rem] ${e?"bg-grey-100":""}`,"data-kg-cardmenu-selected":e,...r,children:[h("div",{className:"flex items-center",children:h(n,{className:"h-7 w-7"})}),h("div",{className:"flex flex-col",children:h("div",{className:"text-grey-900 m-0 ml-4 truncate text-[1.3rem] font-medium leading-[1.6rem] tracking-[.02rem]",children:t})})]})}),Lc=({menu:t=new Map,insert:e=()=>{},selectedItemIndex:n})=>{const r=[];let i=0;for(const[o,l]of t){const s=[];l.forEach(a=>{const c=i===n,d=u=>{u.preventDefault(),e==null||e(a.insertCommand,{insertParams:a.insertParams,queryParams:a.queryParams})};!a.type||a.type==="card"?s.push(h(A1,{label:a.label,desc:a.desc,Icon:a.Icon,isSelected:c,onClick:d,"data-kg-cardmenu-idx":i},i)):a.type==="snippet"&&s.push(h(D1,{label:a.label,Icon:a.Icon,isSelected:c,onClick:d,"data-kg-cardmenu-idx":i},i)),i=i+1}),r.push(h(M1,{label:o,children:s},o))}return h("ul",{role:"menu",className:"not-kg-prose z-[9999999] m-0 mb-3 max-h-[376px] w-[312px] flex-col overflow-y-auto rounded-lg bg-white bg-clip-padding p-0 pt-0 font-sans text-sm shadow after:block after:pb-4",children:r})};function mo(t){const e=t._nodes,n=[];for(const[r,{klass:i}]of e)!i.kgMenu||n.push([r,i]);return n}function Ic(t,{query:e}={}){const n=new Map;e=e==null?void 0:e.toLowerCase();let r=-1;function i(o){if(e&&(!o.matches||!o.matches.find(s=>s.startsWith(e))))return;const l=o.section||"Primary";n.has(l)?n.get(l).push(o):n.set(l,[o]),r=r+1}for(const[o,l]of t)Array.isArray(l.kgMenu)?l.kgMenu.forEach(s=>i({nodeType:o,...s})):i({nodeType:o,...l.kgMenu});return{menu:n,maxItemIndex:r}}function L1(t){var U;const[e,n]=S.default.useState(!1),[r,i]=S.default.useState(!1),[o,l]=S.default.useState(0),[s,a]=S.default.useState(null),[c,d]=S.default.useState({}),u=S.default.useRef(null);function g(P){const K=P.getBoundingClientRect(),se=P.parentNode.getBoundingClientRect();return K.top-se.top}function m(P){const K=new Range;return K.setStart(P,0),K.setEnd(P,0),K}const f=S.default.useCallback(()=>{!s||(document.getSelection().removeAllRanges(),document.getSelection().addRange(s))},[s]),_=S.default.useCallback(P=>{const K=m(P);a(K),n(!0)},[n,a]),C=S.default.useCallback(()=>{n(!1),i(!1),a(null)},[n,i,a]),N=S.default.useCallback(P=>{P==null||P.preventDefault(),f(),i(!0)},[f,i]),p=S.default.useCallback(({resetCursor:P=!1}={})=>{P&&f(),i(!1)},[f,i]),v=S.default.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const P=w.$getSelection();if(!w.$isRangeSelection(P)||!P.type==="text"||!P.isCollapsed()){C();return}const K=Ur(P);if(!w.$isParagraphNode(K)||K.getTextContent()!==""){C();return}const ne=window.getSelection().anchorNode,Oe=t.getRootElement();if((ne==null?void 0:ne.tagName)!=="P"||!Oe.contains(ne)){C();return}l(g(ne)),_(ne)})},[t,_,C]),T=S.default.useCallback((P,{insertParams:K={}}={})=>{const se={...K};t.dispatchCommand(P,se),p()},[t,p]);S.default.useEffect(()=>t.registerUpdateListener(()=>{v()},[t,v]));const E=S.default.useCallback(()=>{var P;if(e){const K=window.getSelection();if(r&&((P=u.current)==null?void 0:P.contains(K.anchorNode)))return;t.getRootElement().contains(K.anchorNode)||C()}},[t,e,r,C]);S.default.useEffect(()=>(document.addEventListener("selectionchange",E),()=>{document.removeEventListener("selectionchange",E)}),[E]);const k=S.default.useCallback(P=>{if(r)return;const K=t.getRootElement();let{pageX:se,pageY:ne}=P,Oe=K.getBoundingClientRect();se<Oe.left&&(se=se+40);const Ce=document.elementFromPoint(se,ne);K.contains(Ce)&&((Ce==null?void 0:Ce.tagName)==="P"&&Ce.textContent===""?(l(g(Ce)),_(Ce)):v())},[t,r,l,_,v]);S.default.useEffect(()=>(window.addEventListener("mousemove",k),()=>{window.removeEventListener("mousemove",k)}),[k]);const R=S.default.useCallback(P=>{var K;if(r&&!((K=u.current)!=null&&K.contains(P.target)))return p()},[r,p]);S.default.useEffect(()=>(window.addEventListener("mousedown",R),()=>{window.removeEventListener("mousedown",R)}),[R]);const I=S.default.useCallback(P=>{if(r){if(P.key==="Escape"){p({resetCursor:!0});return}["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(P.key)&&p()}},[r,p]);S.default.useEffect(()=>(window.addEventListener("keydown",I),()=>{window.removeEventListener("keydown",I)})),S.default.useEffect(()=>{const P=mo(t);d(Ic(P,{insert:T}))},[t,T,d]);const $={top:`${o}px`};return((U=c.menu)==null?void 0:U.size)===0?null:e?B("div",{className:"absolute",style:$,ref:u,"data-kg-plus-container":!0,children:[e&&h(O1,{onClick:N}),r&&h($1,{children:h(Lc,{menu:c.menu,insert:T})})]}):null}function Pc(){const[t]=ie.useLexicalComposerContext();return L1(t)}function I1({children:t}){return h("div",{"data-kg-slash-menu":!0,children:t})}function P1(t){var T;const[e,n]=S.default.useState(!1),[r,i]=S.default.useState(0),[o,l]=S.default.useState(""),[s,a]=S.default.useState([]),[c,d]=S.default.useState({}),[u,g]=S.default.useState(0),m=S.default.useRef(null),f=S.default.useRef(null);function _(E){const k=E.getBoundingClientRect(),R=E.parentNode.getBoundingClientRect();return k.bottom-R.top}function C(){!m.current||(document.getSelection().removeAllRanges(),document.getSelection().addRange(m.current))}const N=S.default.useCallback(()=>{n(!0)},[n]),p=S.default.useCallback(({resetCursor:E=!1}={})=>{E&&C(),n(!1),l(""),a([]),m.current=null},[n]),v=S.default.useCallback((E,{insertParams:k={},queryParams:R={}}={})=>{const I={...k};for(let $=0;$<R.length;$++)if(s[$]){const U=R[$],P=s[$];I[U]=P}t.update(()=>{const $=w.$getSelection();$.modify("extend",!0,"lineboundary"),$.deleteCharacter(!0),t.dispatchCommand(E,I)}),p()},[t,s,p]);return S.default.useEffect(()=>t.registerUpdateListener(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const E=w.$getSelection();if(!w.$isRangeSelection(E)||!E.type==="text"||!E.isCollapsed()){p();return}const k=Ur(E).getTopLevelElement();if(!k||!w.$isParagraphNode(k)||!k.getTextContent().startsWith("/")){p();return}const R=window.getSelection(),I=R.anchorNode,$=t.getRootElement();if((I==null?void 0:I.nodeType)!==Node.TEXT_NODE||!$.contains(I)){p();return}m.current=R.getRangeAt(0);const U=k.getTextContent().slice(1),[P,...K]=U.split(" ");l(P),a(K)})}),[t,p,l,a]),S.default.useEffect(()=>{if(e)return;const E=k=>{const{key:R,isComposing:I,shiftKey:$,ctrlKey:U,metaKey:P,altKey:K}=k;R!=="/"||I||$||U||P||K||!t.getRootElement().matches(":focus")||t.getEditorState().read(()=>{const ne=w.$getSelection(),Oe=Ur(ne).getTopLevelElement();if(!Oe||!w.$isParagraphNode(Oe))return;const Ce=Oe.getTextContentSize(),Pe=ne.isCollapsed()&&Oe.getTextContent()==="",V=!ne.isCollapsed()&&(ne.anchor.offset===0&&ne.focus.offset===Ce||ne.anchor.offset===Ce&&ne.focus.offset===0);if(Pe||V){const X=window.getSelection();let we;X.anchorNode.nodeType===Node.TEXT_NODE?we=X.anchorNode.parentNode.closest("p"):we=X.anchorNode,i(_(we)),N()}})};return window.addEventListener("keypress",E),()=>{window.removeEventListener("keypress",E)}},[t,e,i,N]),S.default.useEffect(()=>{if(!e)return;const E=k=>{if(k.key==="Escape"){p({resetCursor:!0});return}};return window.addEventListener("keydown",E),()=>{window.removeEventListener("keydown",E)}},[e,p]),S.default.useEffect(()=>{if(!e)return;const E=k=>{var R;(R=f.current)!=null&&R.contains(k.target)||p()};return window.addEventListener("mousedown",E),()=>{window.removeEventListener("mousedown",E)}},[e,p]),S.default.useEffect(()=>{if(!e)return;const E=I=>(g(u===0?c.maxItemIndex:u-1),I.preventDefault(),!0),k=I=>(u===c.maxItemIndex?g(0):g(u+1),I.preventDefault(),!0),R=I=>{var $;return($=document.querySelector(`[data-kg-slash-menu] [data-kg-cardmenu-idx="${u}"]`))==null||$.click(),I.preventDefault(),!0};return me.mergeRegister(t.registerCommand(w.KEY_ARROW_DOWN_COMMAND,k,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_UP_COMMAND,E,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_RIGHT_COMMAND,k,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_LEFT_COMMAND,E,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ENTER_COMMAND,R,w.COMMAND_PRIORITY_HIGH))},[t,e,c,u]),S.default.useEffect(()=>{const E=mo(t);d(Ic(E,{insert:v,query:o})),g(0)},[t,o,v,d,g]),((T=c.menu)==null?void 0:T.size)===0?null:e?h("div",{className:"absolute",style:{top:`${r}px`},ref:f,"data-kg-slash-container":!0,children:h(I1,{children:h(Lc,{menu:c.menu,selectedItemIndex:u,insert:v})})}):null}function F1(){const[t]=ie.useLexicalComposerContext();return P1(t)}const z1=10;function B1(t,e,n,r={}){r=Object.assign({verticalGap:z1,controlOpacity:!1},r);const i=n.parentElement;if(t===null||!i){r.controlOpacity&&(e.style.opacity="0"),e.style.top="-10000px",e.style.left="-10000px";return}const o=e.getBoundingClientRect(),l=n.getBoundingClientRect(),s=i.getBoundingClientRect();let a=t.top-o.height-r.verticalGap,c=t.left+t.width/2-o.width/2;c<s.left&&(c=s.left),c+o.width>s.right&&(c=s.right-o.width),a-=l.top,c-=l.left,r.controlOpacity&&(e.style.opacity="1"),e.style.top=`${a}px`,e.style.left=`${c}px`}function H1(t,e){const n=t.getRangeAt(0);let r;if(t.anchorNode===e){let i=e;for(;i.firstElementChild!=null;)i=i.firstElementChild;r=i.getBoundingClientRect()}else r=n.getBoundingClientRect();return r}function Fc(t){const n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY,r=n!=="visible"&&n!=="hidden";if(t){if(r&&t.scrollHeight>=t.clientHeight)return t}else return null;return Fc(t.parentNode)||document.body}const K1={bullet:"Bulleted List",check:"Check List",code:"Code Block",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",number:"Numbered List",paragraph:"Normal",quote:"Quote",aside:"Aside"};function W1({isText:t,editor:e,anchorElem:n,blockType:r,isBold:i,isItalic:o}){const[l,s]=S.default.useState(!1),a=S.default.useRef(null),c=()=>{r!=="paragraph"&&e.update(()=>{const f=w.$getSelection();w.$isRangeSelection(f)&&Ge.$wrapNodes(f,()=>w.$createParagraphNode())})},d=f=>{r!==f&&e.update(()=>{const _=w.$getSelection();w.$isRangeSelection(_)&&Ge.$wrapNodes(_,()=>nt.$createHeadingNode(f))})},u=()=>{e.update(()=>{const f=w.$getSelection();w.$isRangeSelection(f)&&(r==="quote"?Ge.$wrapNodes(f,()=>Ui()):r==="aside"?Ge.$wrapNodes(f,()=>w.$createParagraphNode()):Ge.$wrapNodes(f,()=>nt.$createQuoteNode()))})},g=S.default.useCallback(()=>{const f=a.current;if(!f)return;const _=w.$getSelection(),C=window.getSelection(),N=e.getRootElement();if(_!==null&&C!==null&&!C.isCollapsed&&N!==null&&N.contains(C.anchorNode)){const p=H1(C,N);l||B1(p,f,n)}},[e,n,l]),m=S.default.useCallback(()=>{t!==!1&&(a.current.style.opacity="1")},[t]);return S.default.useEffect(()=>(e.getEditorState().read(()=>{g()}),document.addEventListener("mouseup",m),()=>{document.removeEventListener("mouseup",m)}),[m,e,g]),S.default.useEffect(()=>{e.getEditorState().read(()=>{g()});const f=_=>{_.key==="Shift"&&m()};return document.addEventListener("keyup",f),()=>{document.removeEventListener("keyup",f)}},[m,e,g]),S.default.useEffect(()=>{const f=Fc(n),_=()=>{e.getEditorState().read(()=>{g()})};return window.addEventListener("resize",_),f&&f.addEventListener("scroll",_),()=>{window.removeEventListener("resize",_),f&&f.removeEventListener("scroll",_)}},[e,g,n]),S.default.useEffect(()=>(e.getEditorState().read(()=>{g()}),me.mergeRegister(e.registerUpdateListener(({editorState:f})=>{f.read(()=>{g()})}),e.registerCommand(w.SELECTION_CHANGE_COMMAND,()=>(g(),!1),w.COMMAND_PRIORITY_LOW))),[e,g]),h("div",{className:"absolute",ref:a,"data-kg-floating-toolbar":!0,style:{opacity:0},children:B(pa,{children:[h(Ke,{label:"Format text as bold",isActive:i,icon:"bold",onClick:()=>{s(!0),e.dispatchCommand(w.FORMAT_TEXT_COMMAND,"bold")},"data-kg-toolbar-button":"bold"}),h(Ke,{label:"Format text as italics",isActive:o,icon:"italic",onClick:()=>{s(!0),e.dispatchCommand(w.FORMAT_TEXT_COMMAND,"italic")},"data-kg-toolbar-button":"italic"}),h(Ke,{label:"Toggle heading 1",isActive:r==="h2",icon:"headingOne",onClick:()=>{r==="h2"?c():d("h2"),s(!0)},"data-kg-toolbar-button":"h2"}),h(Ke,{label:"Toggle heading 2",isActive:r==="h3",icon:"headingTwo",onClick:()=>{r==="h3"?c():d("h3"),s(!0)},"data-kg-toolbar-button":"h3"}),h(Zi,{}),h(Ke,{label:"Toggle blockquote",isActive:r==="quote"||r==="aside",icon:r==="aside"?"quoteOne":"quoteTwo",onClick:()=>{u(),s(!0)},"data-kg-toolbar-button":"quote"})]})})}function U1(t,e){const[n,r]=S.default.useState(!1),[i,o]=S.default.useState(!1),[l,s]=S.default.useState(!1),[a,c]=S.default.useState("paragraph"),d=S.default.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const u=w.$getSelection(),g=window.getSelection(),m=t.getRootElement();if(g!==null&&(!w.$isRangeSelection(u)||m===null||!m.contains(g.anchorNode))){r(!1);return}if(!w.$isRangeSelection(u))return;const f=Ur(u),_=f.getKey()==="root"?f:f.getTopLevelElementOrThrow(),C=_.getKey(),N=t.getElementByKey(C);if(o(u.hasFormat("bold")),s(u.hasFormat("italic")),N!==null)if(Qe.$isListNode(_)){const p=me.$getNearestNodeOfType(f,Qe.ListNode),v=p?p.getListType():_.getListType();c(v)}else{const p=nt.$isHeadingNode(_)?_.getTag():_.getType();p in K1&&c(p)}u.getTextContent()!==""?r(w.$isTextNode(f)):r(!1)})},[t]);if(re.useEffect(()=>(document.addEventListener("selectionchange",d),()=>{document.removeEventListener("selectionchange",d)}),[d]),re.useEffect(()=>t.registerUpdateListener(()=>{d()}),[t,d]),!!n)return Je.createPortal(h(W1,{isText:n,editor:t,anchorElem:e,blockType:a,isBold:i,isItalic:l}),e)}function zc({anchorElem:t=document.body}){const[e]=ie.useLexicalComposerContext();return U1(e,t)}const j1=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",strokeWidth:1.5,viewBox:"0 0 24 24",...t},x.createElement("title",null,"kg-search"),x.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M1.472 13.357a9.063 9.063 0 1 0 16.682-7.09 9.063 9.063 0 1 0-16.682 7.09Zm14.749 2.863 7.029 7.03"})),Y1=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",strokeWidth:1.5,viewBox:"0 0 24 24",...t},x.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})),V1=t=>x.createElement("svg",{viewBox:"0 0 32 32",...t},x.createElement("title",null,"unsplash-heart"),x.createElement("path",{d:"M17.4 29c-.8.8-2 .8-2.8 0L2.3 16.2C-.8 13.1-.8 8 2.3 4.8c3.1-3.1 8.2-3.1 11.3 0L16 7.6l2.3-2.8c3.1-3.1 8.2-3.1 11.3 0 3.1 3.1 3.1 8.2 0 11.4L17.4 29z"})),G1=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},x.createElement("title",null,"download"),x.createElement("path",{d:"M20 5.5l-8 8-8-8m-3.5 13h23",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,fill:"none"})),Z1=[{id:1,imgUrl:"https://images.unsplash.com/photo-1574948495680-f67aab1ec3ed?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDMyMXx8c3VtbWVyfGVufDB8fHx8MTY2OTEwNDUwNw&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 1"},{id:2,imgUrl:"https://images.unsplash.com/photo-1595905710073-c5bf3611d945?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDIzfHxzZWElMjBncmVlbnxlbnwwfHx8fDE2NjkxMDU3MTA&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 2"},{id:3,imgUrl:"https://images.unsplash.com/photo-1526676537331-7747bf8278fc?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDEyfHxhdGhsZXRpY3MlMjB0cmFja3xlbnwwfHx8fDE2NjkxMDU1MTA&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 3"},{id:4,imgUrl:"https://images.unsplash.com/photo-1600185365483-26d7a4cc7519?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDE0MHx8cnVubmluZ3xlbnwwfHx8fDE2NjkxMDM3MTE&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 4"},{id:5,imgUrl:"https://images.unsplash.com/photo-1668584054035-f5ba7d426401?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8YWxsfDI3Mnx8fHx8fDJ8fDE2NjkxMDUxNTA&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 5"},{id:6,imgUrl:"https://images.unsplash.com/photo-1668656690938-bbb5ec240ad1?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8YWxsfDMwNHx8fHx8fDJ8fDE2NjkxMDUyMTQ&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 6"},{id:7,imgUrl:"https://images.unsplash.com/photo-1668952410266-e86775275752?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8YWxsfDExN3x8fHx8fDJ8fDE2NjkxMDQ2Nzk&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 7"},{id:8,imgUrl:"https://images.unsplash.com/photo-1597305877032-0668b3c6413a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDR8fHBsYW50fGVufDB8fHx8MTY2OTEwNjIwOA&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 8"},{id:9,imgUrl:"https://images.unsplash.com/photo-1591087068118-0e6b440716c8?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDE4OXx8b3JhbmdlfGVufDB8fHx8MTY2OTEwNTM4NQ&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 9"},{id:10,imgUrl:"https://images.unsplash.com/photo-1483921020237-2ff51e8e4b22?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=3570&q=80",caption:"Caption 10"}],J1=(t,e)=>{const n=t.length,r=[];let i=0;for(;i<n;){const o=Math.ceil((n-i)/e--);r.push(t.slice(i,i+=o))}return r};function Bc({toggle:t,insertImage:e,zoomedUrl:n,closeModal:r}){const[i,o]=S.default.useState(n||null),l=s=>{o(s)};return B(Pt,{children:[h("div",{className:"bg-black opacity-60 inset-0 h-[100vh] absolute"}),B("div",{"data-kg-modal":"unsplash",className:"bg-white inset-8 rounded z-40 overflow-hidden absolute shadow-xl",children:[h("button",{className:"absolute top-6 right-6 cursor-pointer",children:h(Y1,{"data-kg-modal-close-button":!0,onClick:()=>r(),className:"w-4 h-4 text-grey-400 stroke-2"})}),B("div",{className:"flex flex-col h-full",children:[B("header",{className:"flex shrink-0 justify-between py-10 px-20 items-center",children:[B("h1",{className:"flex items-center gap-2 text-black text-3xl font-bold font-sans",children:[h(Yr,{className:"mb-1"}),"Unsplash"]}),B("div",{className:"relative w-full max-w-sm",children:[h(j1,{className:"absolute top-1/2 left-4 w-4 h-4 -translate-y-2 text-grey-700"}),h("input",{className:"pr-8 pl-10 border border-grey-300 rounded-full font-sans text-md font-normal text-black h-10 w-full focus:border-grey-400 focus-visible:outline-none",placeholder:"Search free high-resolution photos"})]})]}),h("div",{className:"relative h-full overflow-hidden",children:h("div",{className:`overflow-auto w-full h-full px-20 flex justify-center ${i?"pb-10":""}`,children:i?h(Hc,{imgUrl:i,setZoomedImg:o,selectImg:l,insertImage:e}):h(X1,{selectImg:l,insertImage:e,dataset:Z1})})})]})]})]})}function X1({insertImage:t,selectImg:e,dataset:n}){return J1(n,3).map((i,o)=>h("div",{"data-kg-unsplash-gallery":!0,className:"flex flex-col justify-start mr-6 grow basis-0 last-of-type:mr-0",children:i.map(l=>h(Kc,{imgUrl:l.imgUrl,caption:l.caption,selectImg:e,insertImage:t},l.id))},o))}function Hc({imgUrl:t,setZoomedImg:e,insertImage:n,selectImg:r}){return h("div",{"data-kg-unsplash-zoomed":!0,onClick:()=>e(null),className:"flex justify-center grow basis-0 h-full",children:h(Kc,{zoomed:"true",imgUrl:t,insertImage:n,selectImg:r})})}function Kc({imgUrl:t,zoomed:e,insertImage:n,selectImg:r}){return B("div",{"data-kg-unsplash-gallery-item":!0,onClick:()=>r(t),className:`relative block mb-6 bg-grey-100 ${e?"cursor-zoom-out w-[max-content] h-full":"cursor-zoom-in w-full"}`,children:[h("img",{src:t,alt:"Unsplash",className:`${e?"object-contain w-auto h-full":""}`}),B("div",{className:"absolute inset-0 flex flex-col justify-between p-5 transition-all ease-in-out bg-gradient-to-b from-black/5 via-black/5 to-black/30 opacity-0 hover:opacity-100",children:[B("div",{className:"flex items-center justify-end",children:[h(xo,{icon:"heart",label:"127"}),h(xo,{icon:"download"})]}),B("div",{className:"flex items-center justify-between",children:[B("div",{className:"flex items-center",children:[h("img",{className:"w-8 h-8 rounded-full mr-2",src:"https://images.unsplash.com/profile-1562493255799-d28c159b565e?auto=format&fit=crop&w=32&h=32&q=60&crop=faces&bg=fff",alt:"author"}),h("div",{className:"mr-2 font-sans text-white text-sm font-medium truncate",children:"Richard de Ruijter"})]}),h(xo,{"data-kg-unsplash-insert-button":!0,onClick:()=>{n({src:t})},label:"Insert image"})]})]})]})}const q1={heart:V1,download:G1};function xo({icon:t,label:e,...n}){const r=q1[t];return B("button",{type:"button",className:"flex items-center shrink-0 h-8 py-2 px-3 font-sans text-sm text-grey-700 font-medium leading-6 bg-white rounded-md opacity-90 transition-all ease-in-out hover:opacity-100 first-of-type:mr-3 cursor-pointer",...n,children:[t&&h(r,{className:`w-4 h-4 fill-red stroke-[3px] ${e&&"mr-1"}`}),e&&h("span",{children:e})]})}Bc.propTypes={selectImg:xe.exports.func,insertImage:xe.exports.func,zoomedUrl:xe.exports.string},Hc.propTypes={imgUrl:xe.exports.string};const Q1=({service:t,container:e,nodeKey:n,handleModalClose:r})=>{const[i]=ie.useLexicalComposerContext(),o=e||document.querySelector(".koenig-lexical"),l=()=>{n&&i.update(()=>{w.$getNodeByKey(n).remove()}),r(!1)},s=async c=>{const{height:d,width:u}=await ma(c.src);c.src&&(i.update(()=>{const g=w.$getNodeByKey(n);g.setSrc(c.src),g.setImgHeight(d),g.setImgWidth(u);const m=w.$createNodeSelection();m.add(g.getKey()),w.$setSelection(m)}),r(!1))};if(!o)return null;const a=()=>{if(t==="unsplash")return h(Bc,{closeModal:l,insertImage:s})};return Je.createPortal(h(a,{}),o)},e0=()=>{const[t]=ie.useLexicalComposerContext(),{imageUploader:e}=S.default.useContext(Ar),[n,r]=S.default.useState(null),[i,o]=S.default.useState(null),[l,s]=S.default.useState(!1),a=S.default.useCallback(async(c,d)=>{if((c==null?void 0:c.length)>0)return await Ji(c,d,t,e)},[e,t]);return S.default.useEffect(()=>{if(!t.hasNodes([rn])){console.error("ImagePlugin: ImageNode not registered");return}return me.mergeRegister(t.registerCommand(Mr,async c=>{const d=w.$getSelection();if(!w.$isRangeSelection(d))return!1;if(d.focus.getNode()!==null){const g=xa(c);if((c==null?void 0:c.triggerFileSelector)==="unsplash"&&(o(g.getKey()),s(!0),r("unsplash")),!c.src){const N=g.getKey();a(c,N)}const m=d.focus.getNode(),f=w.$isParagraphNode(m)&&m.getTextContent()==="",_=m.getTopLevelElementOrThrow().getNextSibling();!f&&!_&&d.insertParagraph(),d.focus.getNode().getTopLevelElementOrThrow().insertBefore(g);const C=w.$createNodeSelection();C.add(g.getKey()),w.$setSelection(C)}return!0},w.COMMAND_PRIORITY_HIGH))},[t,e,a]),l&&n?h(Q1,{service:n,nodeKey:i,handleModalClose:s}):null};function t0(t,e){const n=t.type;return Object.keys(e).find(i=>e[i].includes(n))}function n0(t,e){const n=t[Symbol.iterator]();return new Promise((r,i)=>{const o=[];let l;const s=()=>{const{done:a,value:c}=n.next();if(a)return r({processed:o,node:l});const d=new FileReader;d.addEventListener("error",i),d.addEventListener("load",()=>{typeof d.result=="string"&&o.push(c),s()});const u=t0(c,e);u?(d.readAsDataURL(c),l=u):(console.error("unsupported file type"),s())};s()})}async function r0(t){const e=mo(t);let n={};for(const[r,i]of e)r&&i.mimeTypes&&(n[r]=i.mimeTypes);return{acceptableMimeTypes:n}}function i0(){const[t]=ie.useLexicalComposerContext(),e=S.default.useCallback(i=>{i.preventDefault(),i.stopPropagation()},[]),n=S.default.useCallback(async i=>{i.preventDefault(),i.stopPropagation(),i.dataTransfer.files&&t.dispatchCommand(nt.DRAG_DROP_PASTE,i.dataTransfer.files)},[t]);S.default.useEffect(()=>{const i=document.querySelector(".gh-koenig-editor")||document;return i.addEventListener("dragover",e),i.addEventListener("drop",n),()=>{i.removeEventListener("dragover",e),i.removeEventListener("drop",n)}},[n,e]);const r=S.default.useCallback(async i=>{const{acceptableMimeTypes:o}=await r0(t),{processed:l,node:s}=await n0(i,o);l.length&&s==="image"&&t.dispatchCommand(Mr,l)},[t]);return S.default.useEffect(()=>t.registerCommand(nt.DRAG_DROP_PASTE,async i=>{try{return await r(i)}catch(o){console.error(o)}},w.COMMAND_PRIORITY_LOW),[t,r]),null}const o0=()=>{const[t]=ie.useLexicalComposerContext();return re.useEffect(()=>{if(!t.hasNodes([])){console.error("HorizontalRulePlugin: HorizontalRuleNode not registered");return}return t.registerCommand(aa,()=>{const e=w.$getSelection();if(!w.$isRangeSelection(e))return!1;if(e.focus.getNode()!==null){const r=Vi(),i=e.focus.getNode();w.$isParagraphNode(i)&&i.getTextContent()!==""&&e.insertParagraph(),e.focus.getNode().getTopLevelElementOrThrow().insertBefore(r)}return!0},w.COMMAND_PRIORITY_EDITOR)},[t]),null};function l0(){return h("div",{className:"pointer-events-none absolute top-0 left-0 min-w-full cursor-text font-serif text-xl text-grey-500",children:"Begin writing your post..."})}var ft={},Ie=w;function _o(t,e=!0){return t?!1:(t=Wc(),e&&(t=t.trim()),t==="")}function Wc(){return Ie.$getRoot().getTextContent()}function Uc(t,e){if(!e||!_o(t,!1)||(t=Ie.$getRoot().getChildren(),e=t.length,1<e))return!1;for(let r=0;r<e;r++){var n=t[r];if(Ie.$isElementNode(n)){if(n.__type!=="paragraph"||n.__indent!==0)return!1;n=n.getChildren();let i=n.length;for(let o=0;o<i;o++)if(!Ie.$isTextNode(n[r]))return!1}}return!0}ft.$canShowPlaceholder=Uc,ft.$canShowPlaceholderCurry=function(t,e){return()=>Uc(t,e)},ft.$findTextIntersectionFromCharacters=function(t,e){var n=t.getFirstChild();t=0;e:for(;n!==null;){if(Ie.$isElementNode(n)){var r=n.getFirstChild();if(r!==null){n=r;continue}}else if(Ie.$isTextNode(n)){if(r=n.getTextContentSize(),t+r>e)return{node:n,offset:e-t};t+=r}if(r=n.getNextSibling(),r!==null)n=r;else{for(n=n.getParent();n!==null;){if(r=n.getNextSibling(),r!==null){n=r;continue e}n=n.getParent()}break}}return null},ft.$isRootTextContentEmpty=_o,ft.$isRootTextContentEmptyCurry=function(t,e){return()=>_o(t,e)},ft.$rootTextContent=Wc,ft.registerLexicalTextEntity=function(t,e,n,r){let i=l=>{const s=Ie.$createTextNode(l.getTextContent());s.setFormat(l.getFormat()),l.replace(s)},o=t.registerNodeTransform(Ie.TextNode,l=>{if(l.isSimpleText()){var s=l.getPreviousSibling(),a=l.getTextContent(),c=l;if(Ie.$isTextNode(s)){var d=s.getTextContent(),u=e(d+a);if(s instanceof n){if(u===null||s.getLatest().__mode!==0){i(s);return}if(u=u.end-d.length,0<u){c=a.slice(0,u),c=d+c,s.select(),s.setTextContent(c),u===a.length?l.remove():(s=a.slice(u),l.setTextContent(s));return}}else if(u===null||u.start<d.length)return}for(;;){if(l=e(a),a=u=l===null?"":a.slice(l.end),u===""){if(d=c.getNextSibling(),Ie.$isTextNode(d)){if(u=c.getTextContent()+d.getTextContent(),u=e(u),u===null){d instanceof n?i(d):d.markDirty();break}else if(u.start!==0)break}}else if(d=e(u),d!==null&&d.start===0)break;if(l===null)break;if(l.start===0&&Ie.$isTextNode(s)&&s.isTextEntity())continue;let g;if(l.start===0?[g,c]=c.splitText(l.end):[,g,c]=c.splitText(l.start,l.end),l=r(g),g.replace(l),c==null)break}}});return t=t.registerNodeTransform(n,l=>{var s=l.getTextContent();const a=e(s);a===null||a.start!==0?i(l):s.length>a.end?l.splitText(a.end):(s=l.getPreviousSibling(),Ie.$isTextNode(s)&&s.isTextEntity()&&(i(s),i(l)),s=l.getNextSibling(),Ie.$isTextNode(s)&&s.isTextEntity()&&(i(s),l instanceof n&&i(l)))}),[o,t]};var s0=ft;const a0=({registerAPI:t})=>{const[e]=ie.useLexicalComposerContext();S.default.useEffect(()=>t?(t({editorInstance:e,editorIsEmpty(){let r;return e.update(()=>{r=s0.$canShowPlaceholder(!1,!0)}),r},focusEditor({position:r="bottom"}={}){const i={defaultSelection:r==="top"?"rootStart":null};e.focus(()=>{},i)},blurEditor(){e.blur()},insertParagraphAtTop({focus:r=!0}={}){e.update(()=>{const i=w.$createParagraphNode(),[o]=w.$getRoot().getChildren();o.insertBefore(i),r&&i.selectStart()})}}),()=>{t==null||t(null)}):void 0,[e,t])},c0=({onChange:t,markdownTransformers:e,registerAPI:n})=>{const r=S.default.useCallback(a=>{const c=a.toJSON();t==null||t(c)},[t]),{editorContainerRef:i}=S.default.useContext(Ar),[o,l]=S.default.useState(null),s=a=>{a!==null&&l(a)};return B("div",{className:"koenig-lexical",ref:i,children:[h(Ag.RichTextPlugin,{contentEditable:h("div",{ref:s,children:h(Kg.ContentEditable,{className:"kg-prose"})}),placeholder:h(l0,{}),ErrorBoundary:zg}),h(qg.OnChangePlugin,{onChange:r}),h(Zg.HistoryPlugin,{})," ",h(n1.ListPlugin,{})," ",h(La,{containerElem:i}),h(Dc,{transformers:e}),h(Pc,{}),h(F1,{}),o&&h(zc,{anchorElem:o}),h(e0,{}),h(i0,{}),h(o0,{}),h(a0,{registerAPI:n})]})};G.CODE_BLOCK_TRANSFORMER=$c,G.DEFAULT_NODES=_a,G.DEFAULT_TRANSFORMERS=Ac,G.DesignSandbox=Sd,G.ELEMENT_TRANSFORMERS=Mc,G.FloatingFormatToolbarPlugin=zc,G.HR_TRANSFORMER=Oc,G.KoenigBehaviourPlugin=La,G.KoenigComposer=Cg,G.KoenigEditor=c0,G.MarkdownShortcutPlugin=Dc,G.PlusCardMenuPlugin=Pc,Object.defineProperties(G,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
55
55
  //# sourceMappingURL=koenig-lexical.umd.js.map