@ones-editor/editor 0.0.3-beta.172 → 0.0.3-beta.174

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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document!="undefined"){var t=document.createElement("style");t.appendChild(document.createTextNode(`@keyframes ones-editor-blink{0%,to{background-color:transparent}50%{background-color:var(--primary-color)}}*{--link-color: #338fe5;--color-0: #e52727;--color-1: #eb6414;--color-2: #f0a100;--color-3: #24b47e;--color-4: #338fe5;--color-5: #9678d3;--color-6: #909090;--background-color-0: #fad4d4;--background-color-1: #fbe0d0;--background-color-2: #fceccc;--background-color-3: #d3f0e5;--background-color-4: #d6e9fa;--background-color-5: #eae4f6;--background-color-6: #dedede;--background-color-7: #e52727;--background-color-8: #eb6414;--background-color-9: #f0a100;--background-color-10: #24b47e;--background-color-11: #338fe5;--background-color-12: #9678d3;--background-color-13: #909090;--background-color-14: #e8e8e8;--font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif}div.editor-root{--text-color: #303030;--primary-color: #338fe5;--background-selection: #338fe533;--background-code: #cdcdcd40}div.editor-root{color:var(--text-color);position:relative;box-sizing:border-box;min-height:100%;width:100%;z-index:1}div.editor-root.readonly div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] span.text.link{cursor:pointer}div.editor-root *{box-sizing:border-box;font-family:var(--font-family)}div.editor-root button{outline:none}div.editor-root.active div.editor-content .editor-cursor{opacity:1}div.editor-root .safari.mobile div.editor-content .editor-input{pointer-events:all;width:8px}div.editor-root div.editor-content{height:100%;width:100%;padding:0 30px 30px}div.editor-root div.editor-content .editor-cursor{position:absolute;background:var(--primary-color);width:2px;transition:top .1s ease-in,left .1s linear;animation:ones-editor-blink 1s ease-in-out infinite;opacity:0;pointer-events:none}div.editor-root div.editor-content .editor-input{position:absolute;opacity:0;pointer-events:none;width:16px;height:20px;font-size:16px}div.editor-root div.editor-content div[data-type=editor-container]{position:relative}div.editor-root div.editor-content div[data-type=editor-container].root{user-select:none;width:100%;cursor:text}div.editor-root div.editor-content div[data-type=editor-container].root>.container-blocks>*+*{margin-top:1em}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block]:not(:first-of-type){background-color:var(--background-selection)}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block]:not(:first-of-type) div[data-type=block-background]>.editor-selection-background{background-color:transparent!important}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block].embed-block>div[data-type=block-content]:before,div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block].embed-block .embed-selected-content:before{display:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-quoted]+div[data-type=editor-block][data-style-quoted]{margin-top:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block]{font-size:var(--font-size);line-height:var(--line-height);position:relative;--font-size: 15px;--line-height: 1.6}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-align=center] div[data-type=block-content]{text-align:center}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-align=right] div[data-type=block-content]{text-align:end}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].block-hidden{display:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=text]{cursor:text}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]{word-break:break-word;position:relative}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span{cursor:text}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text{white-space:pre-wrap}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.link{color:var(--link-color)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.link:hover{text-decoration:underline}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.link.style-strikethrough:hover{text-decoration:underline line-through}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-bold{font-weight:700}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-italic{font-style:italic}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-underline{text-decoration:underline}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-strikethrough{text-decoration:line-through}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-underline.style-strikethrough{text-decoration:underline line-through}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-code{border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;background-color:var(--background-code);padding:4px;font:.8em Monaco,Consolas,"Andale Mono",DejaVu Sans Mono,monospace}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-sub{vertical-align:sub;font-size:70%}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-super{vertical-align:super;font-size:70%}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="0"]{color:var(--color-0)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="1"]{color:var(--color-1)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="2"]{color:var(--color-2)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="3"]{color:var(--color-3)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="4"]{color:var(--color-4)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="5"]{color:var(--color-5)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="6"]{color:var(--color-6)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="0"]{background-color:var(--background-color-0)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="1"]{background-color:var(--background-color-1)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="2"]{background-color:var(--background-color-2)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="3"]{background-color:var(--background-color-3)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="4"]{background-color:var(--background-color-4)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="5"]{background-color:var(--background-color-5)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="6"]{background-color:var(--background-color-6)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="7"]{background-color:var(--background-color-7)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="8"]{background-color:var(--background-color-8)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="9"]{background-color:var(--background-color-9)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="10"]{background-color:var(--background-color-10)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="11"]{background-color:var(--background-color-11)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="12"]{background-color:var(--background-color-12)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="13"]{background-color:var(--background-color-13)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="14"]{background-color:var(--background-color-14)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].inputting-insertion>span[data-type=insertion-content]{border-bottom:1px solid var(--primary-color)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion{width:0px;position:relative;display:inline-block;vertical-align:text-bottom;overflow:visible;height:1em}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion>span[data-type=insertion-content]{position:absolute;color:transparent;width:3px;left:-3px;border-right:var(--cursor-color) 1px solid;text-overflow:clip;display:inline-block;top:-5px;bottom:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion>span[data-type=insertion-content] span[data-cursor-name]{display:inline-block;width:8px;background-color:transparent;border:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion>span[data-type=insertion-content] span[data-cursor-name]:hover:before,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion.active>span[data-type=insertion-content] span[data-cursor-name]:before{content:attr(data-cursor-name);position:absolute;top:-12px;height:1.1em;background-color:var(--cursor-color);z-index:27;left:0px;color:#fff;white-space:nowrap;font-size:12px;display:flex;align-items:center;padding:1px 4px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] span[data-type=box-content]{border-radius:2px;margin-left:8px;margin-right:8px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] span[data-type=editor-box].br-box>span[data-type=box-content] img{vertical-align:middle;max-width:1em}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] span[data-type=editor-box][data-box-type=image].image-box span[data-type=box-content]{user-select:none;margin-left:0;margin-right:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-tools] .editor-block-anchor{position:absolute}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-background] .editor-selection-background{position:absolute;background-color:var(--background-selection);z-index:1;pointer-events:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block{cursor:default}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.hover>div[data-type=block-content],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block.hover>div[data-type=block-content]{outline:1px solid #338fe5}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block>div[data-type=block-content],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block>div[data-type=block-content]{display:flex}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.hover .embed-hover-content{outline:1px solid #338fe5}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.selected>div[data-type=block-content],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.selected .embed-selected-content{position:relative}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.selected>div[data-type=block-content]:before,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.selected .embed-selected-content:before{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;z-index:1;background-color:#338fe5;opacity:.1}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block{color:#909090;font-size:12px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block>div[data-type=block-content]{padding:5px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-quoted]{border-left:4px solid #e8e8e8;color:#909090}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-quoted]:not([data-list-level]){padding-left:8px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="1"]{--font-size: 28px;--line-height: 1.5;margin-top:24px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="2"]{--font-size: 26px;--line-height: 1.5;margin-top:24px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="3"]{--font-size: 24px;--line-height: 1.5;margin-top:20px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="4"]{--font-size: 22px;--line-height: 1.5;margin-top:20px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="5"]{--font-size: 20px;--line-height: 1.6;margin-top:16px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="6"]{--font-size: 18px;--line-height: 1.6;margin-top:16px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="7"]{--font-size: 16px;--line-height: 1.6}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="8"]{--font-size: 14px;--line-height: 1.6}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading]{font-size:var(--font-size);line-height:var(--line-height);font-weight:700}.editor-disable-scroll{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:9900;overflow:hidden}div:not(.comment-editor-root)>div.editor-root>div.editor-content>div[data-type=editor-container]>div.container-blocks>div[data-type=editor-block]:first-of-type{font-size:30px;line-height:1.3}div.editor-root div.editor-content>div[data-type=editor-container]>div.container-blocks :first-child{margin-top:0}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-anchor{position:absolute;pointer-events:none;z-index:-1}.editor-command-bar.toolbar .color-button{width:24px;height:24px;display:flex;padding:0;margin:0;align-items:center;justify-content:center;background-color:transparent;border:0;outline:0;border-radius:3px;cursor:pointer}.editor-command-bar.toolbar .color-button[data-color="0"]{color:var(--color-0)}.editor-command-bar.toolbar .color-button[data-color="1"]{color:var(--color-1)}.editor-command-bar.toolbar .color-button[data-color="2"]{color:var(--color-2)}.editor-command-bar.toolbar .color-button[data-color="3"]{color:var(--color-3)}.editor-command-bar.toolbar .color-button[data-color="4"]{color:var(--color-4)}.editor-command-bar.toolbar .color-button[data-color="5"]{color:var(--color-5)}.editor-command-bar.toolbar .color-button[data-color="6"]{color:var(--color-6)}.editor-command-bar.toolbar .color-button[data-background-color="0"]{background-color:var(--background-color-0)}.editor-command-bar.toolbar .color-button[data-background-color="1"]{background-color:var(--background-color-1)}.editor-command-bar.toolbar .color-button[data-background-color="2"]{background-color:var(--background-color-2)}.editor-command-bar.toolbar .color-button[data-background-color="3"]{background-color:var(--background-color-3)}.editor-command-bar.toolbar .color-button[data-background-color="4"]{background-color:var(--background-color-4)}.editor-command-bar.toolbar .color-button[data-background-color="5"]{background-color:var(--background-color-5)}.editor-command-bar.toolbar .color-button[data-background-color="6"]{background-color:var(--background-color-6)}.editor-command-bar.toolbar .color-button[data-background-color="7"]{background-color:var(--background-color-7)}.editor-command-bar.toolbar .color-button[data-background-color="8"]{background-color:var(--background-color-8)}.editor-command-bar.toolbar .color-button[data-background-color="9"]{background-color:var(--background-color-9)}.editor-command-bar.toolbar .color-button[data-background-color="10"]{background-color:var(--background-color-10)}.editor-command-bar.toolbar .color-button[data-background-color="11"]{background-color:var(--background-color-11)}.editor-command-bar.toolbar .color-button[data-background-color="12"]{background-color:var(--background-color-12)}.editor-command-bar.toolbar .color-button[data-background-color="13"]{background-color:var(--background-color-13)}.editor-command-bar.toolbar .color-button[data-background-color="14"]{background-color:var(--background-color-14)}.tippy-content{white-space:pre-line}.editor-button{min-height:26px;min-width:46px;font-size:12px;font-weight:500;outline:none;background-color:var(--editor-button-bg-color, #338fe5);color:var(--editor-button-color, #fff);border:0;padding:4px 8px;border-radius:4px;margin-right:8px;cursor:pointer}.editor-button:hover{background-color:#5ca5ea}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}[data-theme=dropdown-list]{border-radius:4px;background:white;position:relative;max-width:calc(100vw - 24px);box-shadow:#0f0f0f0d 0 0 0 1px,#0f0f0f1a 0 3px 6px,#0f0f0f33 0 9px 24px;overflow:hidden}[data-theme=dropdown-list] .tippy-content{padding:0;background:white;color:#303030}[data-theme=dropdown-list] .tippy-content .editor-command-bar{max-height:50vh}[data-theme=dropdown-list] .filterable-list{min-width:100px;max-width:300px;display:flex;flex-direction:column;max-height:100%}[data-theme=dropdown-list] .filterable-list .filter{padding:8px}[data-theme=dropdown-list] .filterable-list .filter .filter-container{width:100%;font-size:14px;line-height:20px;padding:3px 6px;position:relative;border-radius:3px;box-shadow:#0f0f0f1a 0 0 0 1px inset;background:rgba(242,241,238,.6);cursor:text;height:28px;box-sizing:border-box;display:flex;align-items:center}[data-theme=dropdown-list] .filterable-list .filter .filter-container input.filter-input{border:none;outline:none;flex-grow:1;background:transparent}[data-theme=dropdown-list] .filterable-list .list{max-height:60vh;overflow-y:auto;padding:8px 0}[data-theme=dropdown-list] .filterable-list .list .list-item{user-select:none;transition:background 20ms ease-in 0s;cursor:pointer;width:calc(100% - 8px);margin-left:4px;margin-right:4px;border-radius:3px;height:24px;padding:4px 8px;display:flex;align-items:center;box-sizing:border-box}[data-theme=dropdown-list] .filterable-list .list .list-item .list-text{white-space:nowrap}[data-theme=dropdown-list] .filterable-list .list .list-item.selected{background-color:#eee}[data-theme=dropdown-list] .filterable-list .list .list-item.disabled{color:#c1c1c1}::placeholder{color:#bbb}.toast{font-family:Avenir,Helvetica,Arial,sans-serif;visibility:hidden;min-width:250px;margin-left:-125px;background-color:#333;color:#fff;text-align:center;border-radius:2px;padding:8px;position:fixed;z-index:1;left:50%;bottom:30px}.toast.show{visibility:visible;animation:toast_fade_in .5s,toast_fade_out .5s 2.5s}.toast.positioned.show{animation:toast_fade_in_positioned .5s,toast_fade_out_positioned .5s 2.5s}.toast.positioned{bottom:unset}@keyframes toast_fade_in{0%{bottom:0;opacity:0}to{bottom:30px;opacity:1}}@keyframes toast_fade_out{0%{bottom:30px;opacity:1}to{bottom:0;opacity:0}}@keyframes toast_fade_in_positioned{0%{opacity:0}to{opacity:1}}@keyframes toast_fade_out_positioned{0%{opacity:1}to{opacity:0}}div.tippy-box[data-theme=toolbar] .tippy-content,div.tippy-box[data-theme=menu] .tippy-content{padding:0}div.tippy-box[data-theme=menu] .tippy-content .editor-command-bar.menu{min-width:180px}div.tippy-box[data-theme=menu] .tippy-content .editor-command-bar-root,div.tippy-box[data-theme=toolbar] .tippy-content .editor-command-bar-root{box-shadow:0 0 1px #30303040,0 12px 24px #30303026}div.tippy-box button{outline:none}.editor-command-bar-root{display:flex;flex-direction:column;align-items:flex-start;background:#ffffff;border-radius:2px;max-height:50vh;overflow:auto}.editor-command-bar-root.scrollable-bar>.editor-command-bar.menu{overflow-y:scroll}.editor-command-bar{pointer-events:all;display:flex;box-sizing:border-box;--text-color: #606060;--primary-color: #338fe5;--selected-color: #f8f8f8;--separator-color: #dedede;--warn-color: #fdf4f4}.editor-command-bar.fixed.toolbar{box-shadow:none}.editor-command-bar.menu{flex:1;width:100%;display:flex;flex-direction:column;align-items:flex-start;padding:5px 0}.editor-command-bar.menu .command-item.standard{color:var(--text-color);user-select:none;transition:background 20ms ease-in 0s;cursor:pointer;width:100%;height:32px;padding:6px 10px;display:flex;align-items:center;box-sizing:border-box}.editor-command-bar.menu .command-item.standard .menu-item-icon{align-items:center;height:24px;width:24px;margin-right:5px;margin-top:-2px;display:flex;flex-direction:column;justify-content:center}.editor-command-bar.menu .command-item.standard .menu-item-name{white-space:nowrap;flex-grow:1;display:flex;align-items:center}.editor-command-bar.menu .command-item.standard .item-subtext{color:#b2bccd}.editor-command-bar.menu .command-item.standard .menu-item-sub-indicator{display:flex;align-items:center;justify-content:center}.editor-command-bar.menu .command-item.standard .menu-item-sub-indicator svg{width:16px;height:16px}.editor-command-bar.menu .command-item.standard.disabled{color:#c7c7c7;cursor:not-allowed}.editor-command-bar.menu .command-item.separator{height:1px;margin:4px 0;background-color:var(--separator-color);width:100%}.editor-command-bar.menu .command-item.section{font-size:.8em;color:#ccc;padding:5px 5px 5px 10px}.editor-command-bar.menu .command-item.selected{background-color:var(--selected-color)}.editor-command-bar.menu .command-item.selected[data-id=delete]{background-color:var(--warn-color)}.editor-command-bar.menu .command-item.selected.disabled{background-color:transparent}.editor-command-bar.menu .command-item.checked{color:var(--primary-color)}.editor-command-bar.menu .command-item.checked .menu-item-checked-icon{display:flex;align-items:center;justify-content:center;margin-left:10px}.editor-command-bar.menu .command-item.checked.disabled{color:#c7c7c7}.editor-command-bar.menu .command-item span.highlight{color:#e52727}.editor-command-bar.toolbar{display:flex;flex-direction:row;align-items:flex-start;padding:5px 10px;gap:5px;background:#ffffff;box-shadow:0 0 1px #30303033,0 8px 16px #30303026;border-radius:3px}.editor-command-bar.toolbar .command-item{background:transparent;border:none;display:flex;align-items:center;justify-content:center;color:var(--text-color);height:24px;padding:0;cursor:pointer;border-radius:3px;min-width:24px}.editor-command-bar.toolbar .command-item.selected:not(.disabled){background-color:var(--selected-color)}.editor-command-bar.toolbar .command-item.disabled{color:#c7c7c7}.editor-command-bar.toolbar .command-item.checked{color:var(--primary-color)}.editor-command-bar.toolbar .command-item.checked.disabled{color:#c7c7c7}.editor-command-bar.toolbar .command-item.separator{margin:auto 2px;height:20px;min-width:1px;width:1px;background-color:var(--separator-color);padding:0;pointer-events:none;cursor:default}.editor-command-bar.toolbar .command-item .toolbar-item-name-container,.editor-command-bar.toolbar .command-item .toolbar-item-icon-container{display:flex}.editor-command-bar.toolbar .command-item[data-dropdown=true]{padding-left:4px;padding-right:4px}.editor-command-bar.toolbar .command-item[data-dropdown=true] .toolbar-item-icon-container{width:24px;height:24px;align-items:center;justify-content:center}.editor-command-bar.toolbar .command-item .toolbar-item-dropdown-container{display:flex}.editor-command-bar.toolbar .command-item .toolbar-item-dropdown-container svg{transform:rotate(360deg);transition:transform .2s linear}.editor-command-bar.toolbar .command-item.active .toolbar-item-dropdown-container svg{transform:rotate(180deg)}.editor-command-bar.toolbar .editor-button+.editor-button{margin-left:5px}.editor-command-bar.footer{width:100%}.reference-hidden .tippy-box[data-reference-hidden]{opacity:0;pointer-events:none;transition:none}.tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px #9aa1b126,0 4px 80px -8px #24282f40,0 4px 4px -2px #5b5e6926;background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}.editor-dropdown{display:flex;align-items:center;border:1px solid #f0f0f0;border-radius:3px;font-size:14px;width:200px;height:30px}.editor-dropdown *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}.editor-dropdown .dropdown-text,.editor-dropdown .dropdown-input{flex-grow:1;padding:2px 8px;border:none;outline:none;background:transparent;font-size:14px;color:#333;min-width:0;flex-shrink:1}.editor-dropdown .dropdown-text{margin-right:4.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:100%;cursor:text;display:flex;align-items:center}.editor-dropdown:hover{border-color:#338fe5}.editor-dropdown.active{border-color:#338fe5;box-shadow:0 0 0 2px #338fe533}.editor-dropdown.active .dropdown-text{display:none}.editor-dropdown:not(.active) .dropdown-input{display:none}.editor-dropdown .dropdown-labels{display:flex;align-items:center;flex-shrink:0}.editor-dropdown .dropdown-labels .dropdown-label{color:#338fe5;background-color:#eaf3fc;height:20px;padding:0 5px;border-radius:3px;display:flex;align-items:center}.editor-dropdown .dropdown-labels .dropdown-label+.dropdown-label{margin-left:5px}.editor-dropdown .dropdown-clear-icon,.editor-dropdown .dropdown-icon{flex-shrink:0;width:16px;height:16px;margin-left:4px;display:flex;align-items:center;justify-content:center;cursor:pointer}.editor-dropdown .dropdown-clear-icon{color:#909090}.editor-dropdown.empty .dropdown-clear-icon,.editor-dropdown:not(:hover) .dropdown-clear-icon{display:none}.editor-dropdown.empty .dropdown-text{color:#909090}.editor-dropdown .dropdown-icon{margin-right:4px}.scale-border:after,.color-palette .palette-container-row .background-color-button.selected:after,.color-palette .palette-container-row .background-color-button:hover:after{content:"";outline:1px solid #d6e9fa;border-radius:3px;position:absolute;left:0;right:0;top:0;bottom:0;transform:scale(1.1)}.color-palette{display:flex;flex-direction:column;align-items:center;padding-top:5px;background-color:#fff;--active-color: #2872b7}.color-palette .bar-desc{box-sizing:border-box;width:100%;height:24px;padding-left:10px;margin-bottom:10px;line-height:24px;font-size:12px;font-weight:500;background:#F8F8F8;color:#909090}.color-palette .palette-container{padding:0 10px}.color-palette .background-color .palette-container-row:first-child{margin-bottom:5px}.color-palette .palette-container-row{display:flex;flex-direction:row;margin-bottom:20px}.color-palette .palette-container-row .color-button{width:24px;height:24px;border:none;outline:none;cursor:pointer;border-radius:3px;background-color:#fff;border:1px solid #f0f0f0;display:flex;margin:0;padding:0;align-items:center;justify-content:center}.color-palette .palette-container-row .color-button:hover{border:1px solid #d6e9fa}.color-palette .palette-container-row .color-button.selected{border:1px solid var(--primary-color)}.color-palette .palette-container-row .color-button[data-color-index="-1"]{color:var(--text-color)}.color-palette .palette-container-row .color-button[data-color-index="0"]{color:var(--color-0)}.color-palette .palette-container-row .color-button[data-color-index="1"]{color:var(--color-1)}.color-palette .palette-container-row .color-button[data-color-index="2"]{color:var(--color-2)}.color-palette .palette-container-row .color-button[data-color-index="3"]{color:var(--color-3)}.color-palette .palette-container-row .color-button[data-color-index="4"]{color:var(--color-4)}.color-palette .palette-container-row .color-button[data-color-index="5"]{color:var(--color-5)}.color-palette .palette-container-row .color-button[data-color-index="6"]{color:var(--color-6)}.color-palette .palette-container-row .background-color-button{width:24px;height:24px;border:none;outline:none;cursor:pointer;border-radius:3px;position:relative}.color-palette .palette-container-row .background-color-button.selected:after{outline:1px solid var(--primary-color)}.color-palette .palette-container-row .background-color-button[data-color-index="-1"]{position:relative;background-color:#fff;border:1px solid #e8e8e8}.color-palette .palette-container-row .background-color-button[data-color-index="-1"]:after{transform:scale(1.2)}.color-palette .palette-container-row .background-color-button[data-color-index="-1"]:before{content:"";position:absolute;width:1px;height:56px;top:2px;left:22px;background-color:#c7c7c7;transform:rotate(45deg) scale(.5);transform-origin:-1px -2px}.color-palette .palette-container-row .background-color-button[data-color-index="0"]{background-color:var(--background-color-0)}.color-palette .palette-container-row .background-color-button[data-color-index="1"]{background-color:var(--background-color-1)}.color-palette .palette-container-row .background-color-button[data-color-index="2"]{background-color:var(--background-color-2)}.color-palette .palette-container-row .background-color-button[data-color-index="3"]{background-color:var(--background-color-3)}.color-palette .palette-container-row .background-color-button[data-color-index="4"]{background-color:var(--background-color-4)}.color-palette .palette-container-row .background-color-button[data-color-index="5"]{background-color:var(--background-color-5)}.color-palette .palette-container-row .background-color-button[data-color-index="6"]{background-color:var(--background-color-6)}.color-palette .palette-container-row .background-color-button[data-color-index="7"]{background-color:var(--background-color-7)}.color-palette .palette-container-row .background-color-button[data-color-index="8"]{background-color:var(--background-color-8)}.color-palette .palette-container-row .background-color-button[data-color-index="9"]{background-color:var(--background-color-9)}.color-palette .palette-container-row .background-color-button[data-color-index="10"]{background-color:var(--background-color-10)}.color-palette .palette-container-row .background-color-button[data-color-index="11"]{background-color:var(--background-color-11)}.color-palette .palette-container-row .background-color-button[data-color-index="12"]{background-color:var(--background-color-12)}.color-palette .palette-container-row .background-color-button[data-color-index="13"]{background-color:var(--background-color-13)}.color-palette .palette-container-row .background-color-button[data-color-index="14"]{background-color:var(--background-color-14)}.color-palette .palette-container-row .color-button+.color-button{margin-left:5px}.color-palette .palette-container-row .background-color-button+.background-color-button{margin-left:5px}.color-palette .clear-button-container{box-sizing:border-box;width:100%;margin-bottom:5px;padding:0 10px}.color-palette .clear-button-container .clear-button{box-sizing:border-box;padding:3px 10px;width:100%;height:26px;background:#ffffff;color:#606060;border:1px solid #c7c7c7;border-radius:3px;cursor:pointer}.color-palette .clear-button-container .clear-button:hover{border-color:var(--primary-color);color:var(--primary-color)}.color-palette .clear-button-container .clear-button:active{border-color:var(--active-color);color:var(--active-color);background-color:#d6e9fa}.editor-input-wrap .editor-input-label{margin-top:8px;margin-bottom:8px;position:relative}.editor-input-wrap .editor-input-label.required:before{content:"*";color:#e82100;position:absolute;left:-8px;top:3px}.editor-input-wrap .editor-input-label .span{font-size:14px;line-height:1.4;font-weight:700;color:#303030}.editor-input-wrap .editor-input-container{display:flex;border:none;border-radius:4px;padding:4px;background-color:#fff}.editor-input-wrap .editor-input-container .editor-input{outline:none;border:1px solid #c7c7c7;border-radius:3px;padding:4px 10px;font-size:14px;line-height:1.4;color:#000;width:100%}.editor-input-wrap .editor-input-container .editor-input:focus{border-color:#338fe5;box-shadow:0 0 0 2px #338fe533}.editor-input-wrap.error .editor-input-container{border:1px solid #e82100}.editor-input-wrap.error .editor-input-container .editor-input{border:none;outline:none;box-shadow:unset}.editor-input-wrap.error .editor-input-error{margin-top:8px;color:red;display:block}.editor-input-wrap .editor-input-error{display:none}div.scroll-container-root{position:relative}div.scroll-container-root>div.scroll-container{position:relative;overflow-x:auto;overflow-y:hidden;box-sizing:border-box;line-height:0px}div.scroll-container-root>div.scroll-container>.scroll-area{position:relative;display:inline-block;overflow:hidden;line-height:normal}div.scroll-container-root>div.scroll-container{scrollbar-width:none}div.scroll-container-root>div.scroll-container::-webkit-scrollbar{height:0;opacity:0}div.scroll-container-root>div.container-scroll-tool .container-border-shadow{position:absolute;top:0;opacity:0;width:0;border:none;pointer-events:none;transition:opacity 50ms ease-in;z-index:1}div.scroll-container-root>div.container-scroll-tool .container-right-border-shadow{right:0;background:linear-gradient(90deg,rgba(31,35,41,0) 0,rgba(31,35,41,.1));border-right:0px solid #dee0e3}div.scroll-container-root>div.container-scroll-tool .container-left-border-shadow{left:0;background:linear-gradient(270deg,rgba(31,35,41,0) 0,rgba(31,35,41,.1));border-left:0px solid #dee0e3}div.scroll-container-root>div.container-scroll-tool .container-border-shadow.active{width:8px;opacity:1}div.scroll-container-root>div.container-scroll-tool .container-right-border-shadow.active{border-right-width:1px}div.scroll-container-root>div.container-scroll-tool .container-left-border-shadow.active{border-left-width:1px}div.scroll-container-root>div.container-scroll-tool .container-scrollbar{position:absolute;left:0;z-index:1000;visibility:visible;overflow-x:auto;overflow-y:hidden;cursor:auto}div.scroll-container-root>div.container-scroll-tool .container-scrollbar div{height:1px}div.scroll-container-root>div.container-scroll-tool div.container-scrollbar.fixed{position:fixed}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar{opacity:.6;transition:opacity .1s ease-in-out}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar::-webkit-scrollbar{height:8px}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar::-webkit-scrollbar-track{background-color:transparent}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar::-webkit-scrollbar-thumb{background-color:#646a73cc;border-radius:8px}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar::-webkit-scrollbar-button{display:none}[data-tippy-root]{font-family:Avenir,Helvetica,Arial,sans-serif}[data-command-bar-id=editor-toolbar]{padding-top:10px;padding-bottom:5px}[data-command-bar-id=editor-toolbar] .command-item[data-id=link-text]{height:32px;width:unset}[data-command-bar-id=editor-toolbar] .command-item[data-id=link-text].selected:hover{background-color:transparent}[data-command-bar-id=editor-toolbar] .command-item[data-id=link-text] .link-href-button{max-width:275px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#303030;text-decoration:none}[data-command-bar-id=editor-toolbar] .command-item[data-id=link-text] .link-href-button:hover{text-decoration:underline}[data-command-bar-id=editor-toolbar] .command-item[data-id=edit-link],[data-command-bar-id=editor-toolbar] .command-item[data-id=remove-link]{height:32px}[data-command-bar-id=editor-toolbar] .command-item[data-id=edit-link] svg,[data-command-bar-id=editor-toolbar] .command-item[data-id=remove-link] svg{stroke-width:2}[data-command-bar-id=editor-toolbar] .command-item[data-id=edit-link].selected:hover,[data-command-bar-id=editor-toolbar] .command-item[data-id=remove-link].selected:hover{background-color:transparent;color:#338fe5}[data-command-bar-id=quick-menu],[data-command-bar-id=empty-block-menu]{box-sizing:border-box;width:240px}[data-command-bar-id=quick-menu] .command-item.menu-item,[data-command-bar-id=empty-block-menu] .command-item.menu-item{width:100%;cursor:pointer}[data-command-bar-id=quick-menu] .command-item.menu-item.section,[data-command-bar-id=empty-block-menu] .command-item.menu-item.section{height:24px;padding:2px 10px;font-weight:500;font-size:12px;line-height:20px;color:#909090;background:#f8f8f8;min-height:initial;box-sizing:border-box;margin-bottom:5px}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item{color:#303030;display:flex;width:100%;padding:6px 10px}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-icon-container,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-icon-container{display:flex;align-items:center;justify-content:center;padding-right:6px}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-icon-container .quick-menu-item-icon,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-icon-container .quick-menu-item-icon{width:16px;height:16px;display:flex;align-items:center;justify-content:center}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content{flex-grow:1;display:flex;flex-direction:column;justify-content:center}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1{display:flex;align-items:center}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .item-name,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .item-name{flex-grow:1;font-size:14px;line-height:22px;color:#303030}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .item-subtext,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .item-subtext{color:#b2bccd}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .quick-menu-item-submenu-icon,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .quick-menu-item-submenu-icon{display:flex;align-items:center;margin-left:12px}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-2,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-2{margin-top:5px}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-2 .item-markdown,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-2 .item-markdown{color:#b2bccd}[data-command-bar-id=quick-menu] .command-item.menu-item[data-id=placeholder] .quick-menu-item-icon-container,[data-command-bar-id=empty-block-menu] .command-item.menu-item[data-id=placeholder] .quick-menu-item-icon-container{display:none}[data-command-bar-id=quick-menu] .command-item.menu-item[data-id=placeholder] .item-name.text,[data-command-bar-id=empty-block-menu] .command-item.menu-item[data-id=placeholder] .item-name.text{color:#909090!important;padding:5px 0}[data-command-bar-id=block-menu]{width:240px}[data-command-bar-id=quick-menu] div.command-item>div.menu-item-name{color:#303030}[data-command-bar-id=quick-menu] div.command-item>div.menu-item-icon{color:#606060}[data-command-bar-id=quick-menu] div.command-item.section{margin-top:5px}[data-command-bar-id=quick-menu] div.command-item.section:first-of-type{margin-top:0}div.tippy-box[data-theme=editor-tooltip]{background-color:#303030;opacity:.8;font-size:12px;border-radius:3px}div.tippy-box[data-theme=editor-tooltip] .editor-tooltip-desc{display:block;margin-top:2px;color:#a8a9ab}div.tippy-box[data-theme=editor-tooltip]>.tippy-arrow:before{transform:scale(.8)}div.tippy-box[data-theme=editor-tooltip]>.tippy-content{padding:4px 10px;text-align:justify}:root div.tippy-box[data-theme=editor-tooltip]>.tippy-content>div>span:first-of-type{font-weight:500}.link-popup-content{padding:10px 7px}.link-popup-content .link-popup-gap{margin-top:16px}.link-popup-content .editor-input-container{padding:4px 0}.link-popup-content .editor-input-container .editor-input{width:330px;line-height:1.5}.link-popup-content .editor-input-wrap .editor-input-label{margin-bottom:4px}.link-popup-content .link-popup-footer{margin:10px 0 5px;text-align:right}.link-popup-content .link-popup-footer button{min-width:58px;min-height:30px;padding:0 10px;border-radius:3px;background-color:#eef3f8;font-size:14px;color:#fff;cursor:pointer;outline:none}.link-popup-content .link-popup-footer .cancel-button{margin:0 8px 0 0;background-color:transparent;border:1px solid #c7c7c7;color:#606060}.link-popup-content .link-popup-footer .cancel-button:hover{color:#303030;background:#eee;border:1px solid #c7c7c7}.link-popup-content .link-popup-footer .submit-button{outline:none;background-color:#338fe5;color:#fff;border:0}.link-popup-content .link-popup-footer .submit-button:disabled{color:#fff;background-color:#338fe580}.link-popup-content .link-popup-footer .submit-button:disabled:hover{background-color:#338fe580}.link-popup-content .link-popup-footer .submit-button:hover{background-color:#5ca5ea}:root{--mindmap-bg-color: #f0f2f4}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block.focused [data-type=block-tools] .editor-mindmap-svg{border-radius:3px;outline:1px solid #338FE5}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block.editor-in-mindmap-first{height:600px;min-width:150px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-content]{margin-right:24px;transition:background-color .25s linear}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-tools] .editor-mindmap-svg{position:absolute;left:0;top:0;right:0;bottom:0;z-index:2;font-size:14px;background-color:var(--mindmap-bg-color)}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-tools] .mindmap-toolbar{position:absolute;top:8px;right:8px;height:24px;z-index:3}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-tools] .mindmap-toolbar .editor-button.mindmap-button{background-color:transparent;outline:none;border:none;fill:none;color:#c1c1c1;cursor:pointer;min-width:initial;margin-right:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-tools] .mindmap-toolbar .editor-button.mindmap-button:hover{color:#5587f0}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block.to-mindmap-highlight [data-type=block-content],.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block.to-mindmap-highlight:hover [data-type=block-content]{background-color:#eaf3fc}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-to-mindmap-wrap,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .mention-button-wrap{position:absolute;right:0;top:2px;display:flex;align-items:center;height:calc(var(--font-size) * var(--line-height))}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=list-to-mindmap],.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=mention-button]{flex-grow:0;flex-shrink:0;width:24px;height:24px;min-width:24px;min-height:24px;padding:0;border:0;outline:0;display:flex;align-items:center;justify-content:end;background-color:transparent;color:#07142a}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=list-to-mindmap] svg,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=mention-button] svg{width:16px;height:16px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=list-block-mention]:hover>svg{cursor:initial;background-color:#eee}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button+button[data-button-id=list-block-mention]{right:20px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="1"]{padding-left:24px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="1"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="2"]{padding-left:48px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="2"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="3"]{padding-left:72px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="3"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="4"]{padding-left:96px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="4"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="5"]{padding-left:120px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="5"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="6"]{padding-left:144px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="6"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="7"]{padding-left:168px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="7"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="8"]{padding-left:192px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="8"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="9"]{padding-left:216px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="9"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="10"]{padding-left:240px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="10"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="11"]{padding-left:264px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="11"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="12"]{padding-left:288px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="12"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=list][data-list-level="1"]{padding-left:0}div.editor-root div.editor-content div[data-block-type=list][data-list-level="2"]{padding-left:24px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="3"]{padding-left:48px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="4"]{padding-left:72px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="5"]{padding-left:96px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="6"]{padding-left:120px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="7"]{padding-left:144px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="8"]{padding-left:168px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="9"]{padding-left:192px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="10"]{padding-left:216px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="11"]{padding-left:240px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="12"]{padding-left:264px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block+div[data-type=editor-block].list-block{margin-top:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block{display:flex;padding-bottom:2px;padding-top:2px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=text-only] .list-container{pointer-events:none}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=checked] div[data-type=block-content] span.text{color:#c7c7c7}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=unordered] .list-container .list-marker{font-family:PingFangSC-Regular,PingFang SC;justify-content:space-around}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-content]{position:relative;flex-grow:1;padding-left:2px;margin-right:29px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-container{display:flex;min-width:24px;align-items:center;justify-content:center;flex-shrink:0;border-radius:3px;height:calc(var(--font-size) * var(--line-height))}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-container .list-marker{min-width:16px;border:none;background-color:transparent;outline:none;display:flex;align-items:center;justify-content:flex-end;padding:0;overflow:visible;color:var(--primary-color);font-size:var(--font-size)}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block div[data-type=block-tools] .block-helper{top:2px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-style-align=center]{justify-content:center}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-style-align=center]>div[data-type=block-content]{flex-grow:initial}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-style-align=right]{justify-content:flex-end}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-style-align=right]>div[data-type=block-content]{flex-grow:initial}.editor-root.readonly button[data-button-id=mindmap-close]{display:none}.editor-root:not(.readonly) div[data-type=editor-block].list-block.active,.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover{background-color:#f8f8f8}.editor-root:not(.readonly) div[data-type=editor-block].list-block.active .list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover .list-container{cursor:pointer}.editor-root:not(.readonly) div[data-type=editor-block].list-block .list-container:hover .list-marker{cursor:pointer}.editor-root:not(.readonly) div[data-type=editor-block].list-block:not([data-list-type=unchecked]):not([data-list-type=checked]):not([data-list-type=unordered]) .list-container:hover{background-color:var(--background-selection)}.editor-root:not(.readonly) div[data-type=editor-block].list-block[data-list-type=unordered] .list-container:hover .list-marker{cursor:initial}.editor-root:not(.readonly) div[data-type=editor-block].list-block[data-list-type=unchecked] .list-container:hover .list-marker svg>*{fill:var(--background-selection)}[data-tippy-root] .customize-start-panel{max-width:350px;padding:0 16px;color:#333;font-size:14px;line-height:21px;user-select:none;background-color:#fff!important}[data-tippy-root] .customize-start-panel-input{width:64px;margin:0 8px;border:1px solid #cfd6e1;height:24px;border-radius:3px;padding:1px 0 1px 8px;outline:none;color:inherit;background-color:#fff}[data-tippy-root] .customize-start-panel-button{min-width:40px;font-size:12px;min-height:30px;margin:0 8px 0 0;background-color:var(--primary-color);color:#fff;outline:none;border:none;padding:4px 8px;border-radius:4px;cursor:pointer}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block].list-block [data-type=block-content][data-content-placeholder]:before{left:2px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.math-box{display:inline-flex}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.math-box .mathjax-tex-text.mathjax-error{color:var(--color-0)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] img.mathjax{max-width:100%}div.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-embed-type=math]>div[data-type=block-content]{align-items:center;justify-content:center;min-height:40px}div.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-embed-type=math]>div[data-type=block-content] img{margin:auto;padding:8px}.mathjax-editor-textarea{border:none;outline:none;width:400px;height:128px}.editor-text-button{border:0;color:var(--text-button-color, #c1c1c1);background-color:var(--text-button-bg-color, transparent);cursor:pointer;border-radius:var(--editor-border-radius, 3px);font-size:14px;padding:1px 6px;display:flex;align-items:center}.editor-text-button:hover{color:var(--text-button-color-hover, #5587F0);background-color:var(--text-button-bg-color-hover, transparent)}div[data-type=editor-block].table-block{--table-bar-width: 6px;--table-bar-left: -6px;--table-bar-top: -6px}div[data-type=editor-block].table-block>div[data-type=block-content]{position:relative;left:-26px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-resize-gripper,div[data-type=editor-block].table-block div[data-type=table-tools] .table-resize-gripper{position:absolute;background-color:transparent;cursor:col-resize;padding:0 2px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-resize-gripper>.table-resize-gripper-indicator,div[data-type=editor-block].table-block div[data-type=table-tools] .table-resize-gripper>.table-resize-gripper-indicator{pointer-events:none;background-color:var(--primary-color);width:100%;height:100%}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container{position:absolute;background-color:transparent;z-index:10}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container.top,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container.top{left:0;top:var(--table-bar-top);right:0;height:var(--table-bar-width);flex-direction:row}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container.left,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container.left{top:20px;left:var(--table-bar-left);width:var(--table-bar-width);bottom:0;flex-direction:column}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar{position:absolute;left:0;top:0;right:0;bottom:0;cursor:pointer;display:flex}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar.left,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar.left{flex-direction:column}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell{background-color:#e8e8e8;position:relative;flex-grow:0;flex-shrink:0}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.corner,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.corner{width:var(--table-bar-width);height:var(--table-bar-width)}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.top,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.top{height:100%}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell:hover,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell:hover{background-color:#dedede}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.selected,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.selected{background-color:var(--primary-color)}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.danger,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.danger{background-color:#e52727}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root{position:relative}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root.top,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root.top{max-width:0;width:0;overflow:visible}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root.top:last-child,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root.top:last-child{margin-left:-2px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root.left,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root.left{max-height:0;height:0;overflow:visible}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root.left:last-child,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root.left:last-child{margin-top:-2px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container{position:absolute;width:26px;height:26px;display:flex;align-items:center;justify-content:center;z-index:1}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container.top,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container.top{right:-14px;top:-22px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container.left,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container.left{transform:rotate(270deg);left:-22px;bottom:-14px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container .insert-indicator,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container .insert-indicator{position:absolute;width:3px;height:3px;background:#e8e8e8;border-radius:50%;margin-top:6px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-indicator,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-indicator{display:none}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-column-button,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-column-button{display:unset}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-column-button span.icon,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-column-button span.icon{margin-top:2px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .drop-marker,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .drop-marker{opacity:1;transform:scale(.7)}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker{width:26px;height:26px;border-radius:3px;background:var(--primary-color);cursor:pointer;opacity:0;transform:scale(.4);transition:transform .2s ease-in,opacity .2s ease-in}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker:after,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker:after{content:"";display:block;width:10px;height:1px;background-color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker:before,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker:before{content:"";display:block;width:1px;height:10px;background-color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}div[data-type=editor-block].table-block div[data-type=block-tools] .editor-table-chart,div[data-type=editor-block].table-block div[data-type=table-tools] .editor-table-chart{padding-top:16px}div[data-type=editor-block].table-block div[data-type=table-content]{position:relative}div[data-type=editor-block].table-block div[data-type=table-content]>.error{color:red;border:1px solid red;padding:8px}div[data-type=editor-block].table-block div[data-type=table-content]>table{border-collapse:collapse;width:max-content;border-spacing:0}div[data-type=editor-block].table-block div[data-type=table-content]>table colgroup col{min-width:40px}div[data-type=editor-block].table-block div[data-type=table-content]>table,div[data-type=editor-block].table-block div[data-type=table-content]>table td,div[data-type=editor-block].table-block div[data-type=table-content]>table th{border:1px solid #c7c7c7;background-color:transparent}div[data-type=editor-block].table-block div[data-type=table-content]>table tr td.danger{background-color:#fce9e9!important}div[data-type=editor-block].table-block div[data-type=table-content]>table td{min-width:40px;padding:0;position:relative}div[data-type=editor-block].table-block div[data-type=table-content]>table td .table-cell-menu-btn{display:none;position:absolute;right:2px;top:2px;padding:0;width:16px;height:16px;border:none;border-radius:3px;background:#eaf3fc;color:#338fe5;cursor:pointer;transform:rotate(0);transition:transform .2s}div[data-type=editor-block].table-block div[data-type=table-content]>table td .table-cell-menu-btn.active{transform:rotate(180deg)}div[data-type=editor-block].table-block div[data-type=table-content]>table td>div[data-type=editor-container]>.container-blocks>*+*{margin-top:5px}div[data-type=editor-block].table-block div[data-type=table-content] .child{padding:8px}div[data-type=editor-block].table-block div[data-type=table-content] .child div[data-type=editor-block].table-block>div[data-type=block-content]{pointer-events:none}div[data-type=editor-block].table-block div[data-type=table-content] .child div[data-type=editor-block].table-block>div[data-type=block-content] div[data-type=table-content]{pointer-events:auto}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-0{background-color:var(--background-color-0)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-1{background-color:var(--background-color-1)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-2{background-color:var(--background-color-2)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-3{background-color:var(--background-color-3)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-4{background-color:var(--background-color-4)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-5{background-color:var(--background-color-5)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-6{background-color:var(--background-color-6)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-7{background-color:var(--background-color-7)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-8{background-color:var(--background-color-8)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-9{background-color:var(--background-color-9)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-10{background-color:var(--background-color-10)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-11{background-color:var(--background-color-11)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-12{background-color:var(--background-color-12)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-13{background-color:var(--background-color-13)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-14{background-color:var(--background-color-14)}div[data-type=editor-block].table-block div[data-type=table-content]>table.row-title>tbody>tr:first-child>td,div[data-type=editor-block].table-block div[data-type=table-content]>table.col-title td.col-title-item{background-color:#f8f8f8}div[data-type=editor-block].table-block div[data-type=table-content]>table.stripe:not(.row-title)>tbody>tr:nth-of-type(2n),div[data-type=editor-block].table-block div[data-type=table-content]>table.stripe.row-title>tbody>tr:nth-of-type(2n + 1){background-color:#f5f8fb}div[data-type=editor-block].table-block div[data-type=table-content]>table.no-border,div[data-type=editor-block].table-block div[data-type=table-content]>.no-border>tbody>tr>td{border:1px dashed;border-color:transparent}div[data-type=editor-block].table-block.focused div[data-type=table-content]>table.no-border,div[data-type=editor-block].table-block.focused div[data-type=table-content]>table.no-border>tbody>tr>td,div[data-type=editor-block].table-block.child-focused div[data-type=table-content]>table.no-border,div[data-type=editor-block].table-block.child-focused div[data-type=table-content]>table.no-border>tbody>tr>td{border-color:#b9bfc8}div[data-type=editor-block].table-block.full-selected>div[data-type=block-content]>.scroll-container-root>.scroll-container>.scroll-area>div[data-type=table-content]>table{background-color:var(--background-selection)}div[data-type=editor-block].table-block div[data-type=table-content]>table tbody tr td.selected,div[data-type=editor-block].table-block div[data-type=table-content]>table.row-title tbody tr td.selected,div[data-type=editor-block].table-block div[data-type=table-content]>table.col-title tbody tr td.selected{background-color:var(--background-selection)}div[data-type=editor-block].table-block div[data-type=table-content]>table td div[data-type=editor-block].table-block div[data-type=table-content]>table{max-width:100%}.command-item.menu-item .table-creator{background-color:#fff;padding:0 5px}.command-item.menu-item .table-creator .table-creator-row{display:flex}.command-item.menu-item .table-creator .table-creator-row .table-creator-cell{width:16px;height:16px;margin:3px;border:solid 1px #ddd}.command-item.menu-item .table-creator .table-creator-row .table-creator-cell.active{background-color:#99c7f2}div.editor-root div.editor-content div[data-type=editor-container].root div[data-type=editor-block].table-block{margin-top:0}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color]{width:100%}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .bar-desc{display:none}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item{box-sizing:border-box;width:100%;height:32px;padding:5px 10px;display:flex;align-items:center;justify-content:space-between;color:var(--text-color)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-sub-indicator{display:flex;align-items:center;margin-left:5px}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-sub-indicator svg{height:16px;width:16px}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button{width:24px;height:24px;border:none;outline:none;cursor:pointer;border-radius:3px;position:relative;margin-left:auto}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="-1"]{position:relative;background-color:#fff;border:1px solid #e8e8e8}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="-1"]:after{transform:scale(1.2)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="-1"]:before{content:"";position:absolute;width:1px;height:56px;top:2px;left:22px;background-color:#c7c7c7;transform:rotate(45deg) scale(.5);transform-origin:-1px -2px}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="0"]{background-color:var(--background-color-0)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="1"]{background-color:var(--background-color-1)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="2"]{background-color:var(--background-color-2)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="3"]{background-color:var(--background-color-3)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="4"]{background-color:var(--background-color-4)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="5"]{background-color:var(--background-color-5)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="6"]{background-color:var(--background-color-6)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="7"]{background-color:var(--background-color-7)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="8"]{background-color:var(--background-color-8)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="9"]{background-color:var(--background-color-9)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="10"]{background-color:var(--background-color-10)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="11"]{background-color:var(--background-color-11)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="12"]{background-color:var(--background-color-12)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="13"]{background-color:var(--background-color-13)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="14"]{background-color:var(--background-color-14)}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table]{background-color:transparent}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table] table.row-title>tbody>tr:first-child>td,div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table] table.col-title td.col-title-item{background-color:transparent}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table] table.stripe:not(.row-title)>tbody>tr:nth-of-type(2n),div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table] table.stripe.row-title>tbody>tr:nth-of-type(2n + 1){background-color:transparent}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment{box-shadow:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment table,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment table{box-shadow:0 2px #f8e6ab}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment table table,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment table table{box-shadow:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment.active,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment.active{outline:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment.active table,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment.active table{border-bottom:none;outline:4px solid #f8e6ab}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment.active table table,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment.active table table{box-shadow:none;outline:none}div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-self>[data-type=block-content]:after,div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-others>[data-type=block-content]:after{display:none}div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-self>[data-type=block-content] div[data-type=table-content],div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-others>[data-type=block-content] div[data-type=table-content]{position:relative}div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-self>[data-type=block-content] div[data-type=table-content]:after,div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-others>[data-type=block-content] div[data-type=table-content]:after{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;z-index:1;background-color:#303030;opacity:.1}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-align=center] [data-type=block-content][data-content-placeholder]:before{justify-content:center}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-align=right] [data-type=block-content][data-content-placeholder]:before{justify-content:right}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block] [data-type=block-content][data-title-placeholder]:before{position:absolute;left:0;top:0;right:0;bottom:0;content:attr(data-title-placeholder);color:#c7c7c7}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block] [data-type=block-content][data-content-placeholder]:before{position:absolute;left:0;top:0;right:0;bottom:0;content:attr(data-content-placeholder);color:#c7c7c7;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block] [data-type=block-tools] .block-placeholder-container{position:absolute;left:0;top:0;right:0}div.editor-root.readonly div.editor-content div[data-type=editor-container] div[data-type=editor-block] [data-type=block-content][data-title-placeholder]:before{position:absolute;left:0;top:0;right:0;bottom:0;content:attr(data-title-placeholder-readonly);color:#c7c7c7}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block{min-width:360px;counter-reset:code-line}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.full-selected{background-color:var(--background-selection)}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.editing-language div[data-type=block-tools] .code-block-header,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.child-focused div[data-type=block-tools] .code-block-header,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:hover div[data-type=block-tools] .code-block-header{opacity:1}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.wrap>div[data-type=block-tools] .code-block-header button[data-id=wrap] *{color:var(--primary-color)}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:not(.wrap)>div[data-type=block-content] div[data-type=editor-container].child{overflow-x:auto}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:not(.wrap)>div[data-type=block-content] div[data-type=editor-container].child div[data-type=block-content]{word-break:keep-all;overflow:visible;white-space:pre}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:not(.wrap)>div[data-type=block-content] div[data-type=editor-container].child div[data-type=block-content]>span.text,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:not(.wrap)>div[data-type=block-content] div[data-type=editor-container].child div[data-type=block-content]>span.inputting-insertion{white-space:pre}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header{opacity:0;transition:opacity .3s ease-in 0s;position:absolute;top:0;display:flex;padding-left:16px;padding-right:4px;align-items:center;left:0;right:0;height:32px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .language-select{font-size:14px;color:#999;cursor:pointer;display:flex;align-items:center}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .language-select .arrow-icon{width:16px;height:16px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-spacer{flex-grow:1}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button{display:flex;justify-content:center;align-items:center;border:none;border-radius:2px;margin-left:4px;padding:0;background:none;outline:none;color:#c1c1c1}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button:not(.disabled){cursor:pointer}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button:not(.disabled):hover{color:#5587f0}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button.disabled{cursor:not-allowed}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button[data-id=caption]{margin-right:4px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button .button-icon{height:24px;display:flex;align-items:center;justify-content:center}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button .button-icon>svg{width:24px;height:24px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button .button-label{margin-left:4px;font-size:14px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.full-selected>div[data-type=block-content]>div.editor-code-root>div.code-text-root{background-color:unset}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root{background-color:var(--background-code)}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container]{padding-left:32px;padding-top:32px;padding-bottom:24px;border-radius:4px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container].selected{background-color:var(--background-selection)}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] *{font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:14px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block+div.text-block{margin-top:4px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block:before{content:counter(code-line);counter-increment:code-line;position:absolute;left:-48px;top:10px;z-index:1;margin-top:-4px;display:block;width:48px;padding-right:8px;text-align:right;color:#aaa;box-sizing:border-box;font-size:12px;font-weight:400;line-height:12px;letter-spacing:0;white-space:nowrap;opacity:1}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-comment,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-prolog,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-doctype,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-cdata{color:#708090}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-punctuation{color:#999}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-namespace{opacity:.7}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-property,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-tag,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-boolean,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-number,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-constant,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-symbol,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-deleted{color:#905}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-selector,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-attr-name,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-string,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-char,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-builtin,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-inserted{color:#690}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-operator,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-entity,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-url,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-string{color:#9a6e3a}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-atrule,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-attr-value,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-keyword{color:#07a}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-function,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-class-name{color:#dd4a68}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-regex,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-important,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-variable{color:#e90}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-important,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-bold{font-weight:700}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-italic{font-style:italic}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-entity{cursor:help}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-caption-root{padding:8px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-caption-root *{color:#aaa}div.editor-root.readonly .container-blocks div[data-block-type=code] div[data-type=block-tools] .code-block-header .code-header-button[data-id=wrap],div.editor-root.readonly .container-blocks div[data-block-type=code] div[data-type=block-tools] .code-block-header .code-header-button[data-id=caption]{display:none}div.editor-root.readonly .container-blocks div[data-block-type=code] div[data-type=block-tools] .code-block-header .language-select{cursor:default!important}div.editor-root.readonly .container-blocks div[data-block-type=code] div[data-type=block-tools] .code-block-header .language-select .arrow-icon{display:none}div.editor-root div.editor-content div[data-type=editor-container].root.select-all div[data-type=block-content]>div.editor-code-root>div.code-text-root{background-color:unset}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer{position:absolute;background-color:transparent;border:1px solid #338FE5;pointer-events:none;z-index:1;display:none}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer.active{display:block}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper{position:absolute;width:16px;height:16px;border:2px solid white;background-color:#338fe5;border-radius:50%;pointer-events:all}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.bottom{left:calc(50% - 8px);bottom:-8px;cursor:ns-resize}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.top-left{left:-8px;top:-8px;cursor:nwse-resize}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.top-right{right:-8px;top:-8px;cursor:nesw-resize}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.bottom-left{left:-8px;bottom:-8px;cursor:nesw-resize}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.bottom-right{right:-8px;bottom:-8px;cursor:nwse-resize}div.editor-root.readonly div.editor-content div[data-type=editor-block]>[data-type=block-tools] .block-resizer{display:none}.before-content,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected [data-type=block-content] .images .image-container.active:before,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected:not(.focused) [data-type=block-content] .images .image-container:before{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;z-index:1;background-color:#338fe5;opacity:.1}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image]{display:flex}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].block-hidden{display:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image][data-style-align=left]{justify-content:flex-start}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image][data-style-align=center]{justify-content:center}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image][data-style-align=right]{justify-content:flex-end}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].hover [data-type=block-content]{outline:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].hover [data-type=block-content] .images .image-container.empty:hover,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].hover [data-type=block-content] .images .image-container.error:hover{outline:1px solid #338FE5}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected [data-type=block-content]:before{display:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected [data-type=block-content]{outline:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected [data-type=block-content] .images .image-container.active .image-warning{opacity:0;z-index:-1}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].multi [data-type=block-tools] .block-resizer{display:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image]:not(.multi) [data-type=block-content] .images.empty{min-height:400px}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content]{cursor:default}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images{width:100%;display:flex;align-items:flex-start}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter{width:10px;flex-grow:0;flex-shrink:0;padding:0 4px;cursor:col-resize;height:100%}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter .image-splitter-indicator{width:100%;height:100%}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter:active .image-splitter-indicator,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter:hover .image-splitter-indicator{background-color:#d9d9d9}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container{position:relative;flex:1;background-color:#f8f8f8;display:flex;min-height:inherit;overflow:hidden}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container img{max-width:100%;width:100%;height:auto}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.empty .upload-image-icon{display:flex;color:#c7c7c7}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.error{height:100%;outline:1px solid #DEDEDE;border-radius:3px}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.error img{display:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;z-index:1}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-icon,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-icon{display:flex;color:#c7c7c7}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message{display:flex;flex-direction:column;align-items:center;overflow:hidden}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-1,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-1{margin-top:10px;font-size:18px;font-weight:500;color:#303030;height:26px;vertical-align:middle;line-height:26px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-2,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-3,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-2,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-3{font-size:14px;color:#606060;vertical-align:middle;height:22px;line-height:22px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-2 a,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-3 a,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-2 a,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-3 a{text-decoration:none;color:#338fe5}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .line-3 a{display:inline-flex;align-items:center;text-decoration:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .line-3 a:after{content:" ";display:inline-block;width:16px;height:16px;margin-left:5px;background-image:url("data:image/svg+xml,%3Csvg width='17' height='16' viewBox='0 0 17 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 2H3.5C2.94772 2 2.5 2.44772 2.5 3V13C2.5 13.5523 2.94772 14 3.5 14H13.5C14.0523 14 14.5 13.5523 14.5 13V10' stroke='%23338FE5'/%3E%3Cpath d='M14.5 2L9 7.5' stroke='%23338FE5'/%3E%3Cpath d='M8.5 2H14.5V8' stroke='%23338FE5'/%3E%3C/svg%3E%0A")}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .uploading-progress-mask{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#303030;opacity:.8;display:flex;align-items:center;justify-content:center}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .uploading-progress-mask .uploading-progress-bar{width:75%;height:6px;border-radius:3px;display:flex;background-color:#fff}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .uploading-progress-mask .uploading-progress-bar .uploading-progress-bar-value{background-color:#338fe5}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .image-warning{position:absolute;right:5px;top:5px;color:#fff;background-color:#333;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:3px;z-index:2;transition:opacity linear .2s;opacity:.7}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.empty{display:flex;flex-direction:column;align-items:center;outline:1px solid #DEDEDE;border-radius:3px;justify-content:center;height:100%}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.empty svg{width:48px;height:48px}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-tools] .drag-container{display:flex;box-sizing:content-box;pointer-events:none;position:fixed;z-index:100;background-color:#fff;border:1px solid #338FE5}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-tools] .drag-container .drag-target{width:100%}.editor-root[readonly=true] .image-splitter{visibility:hidden}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].comment{box-shadow:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].comment [data-type=block-content]{box-shadow:0 2px #f8e6ab}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].comment.active{outline:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].comment.active [data-type=block-content]{box-shadow:none;outline:4px solid #f8e6ab}.editor-root .editor-content div[data-type=editor-block].dragging div[data-type=block-tools] .block-helper{opacity:0}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper{position:absolute;right:100%;top:0;padding-right:5px;display:flex;align-items:center}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .helper-sizer{width:0;opacity:0;pointer-events:none}div[data-type=editor-block].block-exclusive:after{content:attr(data-exclusive-tips);position:absolute;top:0px;left:0px;width:100%;background:#f8f8f8;border-radius:var(--editor-border-radius);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:14px;line-height:22px;color:#909090;text-align:center;padding:9px 0;z-index:1000}.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self>[data-type=block-content],.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others>[data-type=block-content]{position:relative}.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others>[data-type=block-content]:after{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;z-index:1;background-color:#303030;opacity:.1}.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self.text-block>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self.locked-by-self>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others.text-block>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others.locked-by-self>[data-type=block-content]:after{pointer-events:none}.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self.text-block>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others.text-block>[data-type=block-content]:after{outline:2px solid #303030}.editor-root{--selected-color: #e8e8e8}.editor-root .editor-content.dragging *{cursor:grabbing!important}.editor-root .editor-content.dragging div[data-type=editor-block] iframe{pointer-events:none}.editor-root .editor-content .editor-drop-indicator{position:absolute;background-color:var(--primary-color);pointer-events:none;transition:top .2s linear,left .2s linear,width .2s linear}.editor-root .editor-content div[data-type=editor-block].text-block.highlighted{outline:2px solid var(--background-selection);background-color:var(--background-selection)}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .block-button{width:24px;height:24px;cursor:pointer;margin:0;padding:0;display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;border-radius:3px}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .block-button[data-type=move]{cursor:grab}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .block-button:hover{background-color:var(--selected-color)}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .block-button svg{width:16px;height:16px;color:#909090}.drag-image-container{position:fixed;z-index:100;box-shadow:0 3px 20px #00000026;background-color:#fff;opacity:.4}.drag-image-container.drag-placeholder{width:500px;height:200px;border:1px solid #dedede;border-radius:3px;background:#e8e8e8}.drag-image-container .drag-image{width:100%;display:none}.drag-image-container[data-status=loaded] .drag-image{display:block}.drag-image-container[data-status=loaded] .drag-loading{display:none}.editor-command-bar-root .editor-command-bar .command-item.menu-item{display:flex;align-items:center;flex:none}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles{padding:5px 10px;background-color:#fff}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section+.text-style-section{margin-top:5px}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section{display:flex;flex-wrap:wrap}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section .style-icon{width:24px;height:24px;padding:0;margin:0 5px 0 0;display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;outline:none;cursor:pointer;border-radius:3px;color:#606060}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section .style-icon:hover{background-color:var(--selected-color)}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section .style-icon.active{color:#338fe5}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-anchor[data-id=paste-special-button-anchor]{z-index:unset}[data-command-bar-id=paste-special-button] .editor-command-bar.toolbar{padding:0}[data-command-bar-id=paste-special-button] .editor-command-bar.toolbar .command-item[data-dropdown=true]{padding-left:5px;padding-right:5px}.editor-find-dialog{--popover-input-border: 1px solid #CFD6E1;--editor-find-dialog-input-container-border-color: #CFD6E1;--editor-find-dialog-input-container-bg-color: transparent;--editor-border-radius-big: 3px;--editor-color: #07142A;--button-black-text-color: #333;--editor-find-dialog-button-color: #333;--editor-find-dialog-icon-button-color: #333;--editor-find-dialog-button-border-bg-color: rgba(255, 255, 255, .56);--editor-find-dialog-input-placeholder-color: #b9bfc8;--editor-find-dialog-button-disabled-color: #ccc !important;--editor-find-dialog-button-hover-color: rgba(150, 150, 150, .2);--editor-find-dialog-button-border: solid 1px #ccc;box-sizing:border-box;width:400px;background-color:var(--editor-find-dialog-bg-color);border:var(--editor-find-dialog-border);border-radius:var(--editor-border-radius-big);display:flex;padding:8px 8px 0 16px;align-items:flex-start;font-size:14px;font-family:var(--editor-font-family)}.editor-find-dialog .editor-find-content{display:flex;flex-direction:column;flex-grow:1;font-family:inherit}.editor-find-dialog .editor-find-dialog-row{display:flex;margin-bottom:8px;align-items:center}.editor-find-dialog .editor-find-dialog-label{width:80px;flex-grow:0;flex-shrink:0;align-self:center}.editor-find-dialog .editor-find-dialog-input-container{border:var(--popover-input-border);border-color:var(--editor-find-dialog-input-container-border-color);background-color:var(--editor-find-dialog-input-container-bg-color);border-radius:var(--editor-border-radius-big);flex-grow:1;display:flex;padding:2px;align-items:center;height:32px;box-sizing:border-box}.editor-find-dialog .editor-find-dialog-input{border:none;flex-grow:1;width:80px;outline:none;background-color:transparent;color:var(--editor-color)}.editor-find-dialog .editor-find-dialog-input::placeholder{color:var(--editor-find-dialog-input-placeholder-color);opacity:1}.editor-find-dialog .editor-find-dialog-prev{width:24px}.editor-find-dialog .editor-find-dialog-curr{flex-grow:0;text-align:center;flex-shrink:1;display:flex;align-items:center;margin-bottom:2px}.editor-find-dialog .editor-find-dialog-next{width:24px}.editor-find-dialog .editor-find-dialog-icon-button{cursor:pointer;border-radius:4px;color:var(--editor-find-dialog-icon-button-color);background-color:var(--editor-find-dialog-button-border-bg-color);border:none;display:flex;padding:0}.editor-find-dialog .editor-find-dialog-button{padding:6px 16px;cursor:pointer;border-radius:4px;color:var(--editor-find-dialog-button-color);background-color:var(--editor-find-dialog-button-border-bg-color);margin:0 4px;border:none;font-family:inherit;line-height:21px}.editor-find-dialog .editor-find-dialog-button.icon-button{width:32px;height:32px}.editor-find-dialog .editor-find-dialog-button.active,.editor-find-dialog .editor-find-dialog-button:hover{background-color:var(--editor-find-dialog-button-hover-color)}.editor-find-dialog .editor-find-dialog-button:disabled{color:var(--editor-find-dialog-button-disabled-color);cursor:default}.editor-find-dialog .editor-find-dialog-button:disabled:hover{background-color:transparent}.editor-find-dialog .editor-find-dialog-button svg{fill:currentColor}.editor-find-dialog .editor-find-dialog-space{flex-grow:1}.editor-find-dialog .editor-find-dialog-icon-button-border{margin:0 0 0 8px;cursor:pointer;border-radius:4px;color:var(--button-black-text-color);border:var(--editor-find-dialog-button-border);background-color:var(--editor-find-dialog-button-border-bg-color);padding:0;width:32px;display:flex;justify-content:center;align-items:center}.editor-find-dialog .editor-find-dialog-button-close{margin:0 0 0 8px;cursor:pointer;border-radius:4px;color:var(--button-black-text-color);background-color:var(--editor-find-dialog-button-border-bg-color);border:none;padding:0;width:32px;height:32px;display:flex;justify-content:center;align-items:center}.editor-find-dialog .editor-find-dialog-icon-button-border svg,.editor-find-dialog .editor-find-dialog-button-close svg{fill:currentColor}.editor-find-dialog .editor-highlight{opacity:.6;pointer-events:none}.editor-find-dialog .editor-highlight .editor-highlight-child{position:absolute;background-color:bisque}.editor-find-dialog .editor-highlight.active .editor-highlight-child{position:absolute;background-color:tomato}.editor-find-dialog .editor-search-result-highlight{opacity:.6;pointer-events:none}.editor-find-dialog .editor-search-result-highlight .editor-highlight-child{position:absolute;background-color:#40e0d0}.editor-find-dialog .editor-find-dialog-status{display:flex}.editor-highlight{opacity:.6;pointer-events:none}.editor-highlight .editor-highlight-child{position:absolute;background-color:bisque}.editor-highlight.active .editor-highlight-child{position:absolute;background-color:tomato}.editor-search-result-highlight{opacity:.6;pointer-events:none}.editor-search-result-highlight .editor-highlight-child{position:absolute;background-color:#40e0d0}.editor-find-dialog-status{display:flex}.comment-editor{font-size:14px;border:1px solid #c7c7c7;border-radius:3px;padding:1px 10px;margin:6px 10px 0}.comment-editor:after{content:"";height:0;display:block;clear:both}.comment-editor-root{display:inline-block;min-width:calc(100% - 40px);padding-top:2px}.comment-editor-root .editor-root .editor-content{padding:0}.comment-editor-root .editor-root .editor-content>[data-type=editor-container].root>.container-blocks>*+*{margin-top:0}.comment-editor-img{float:right;color:#c1c1c1;padding:0;width:24px;height:24px;justify-content:center}.comment-editor-root:not(.comment-editor-readonly) .editor-root .editor-content [data-type=editor-block]:not([data-block-type=text]){width:248px}.comment-editor-editing{border:1px solid #338fe5}.comment-editor-readonly{border:none;padding-left:37px;margin:0}.comment-editor-readonly .comment-editor-img{display:none}.comment-item-root{position:relative;margin-top:10px}.comment-item-root:not(.last-comment-item):before{content:" ";display:block;position:absolute;left:20px;width:1px;background-color:var(--editor-border-color, #e8e8e8);overflow:hidden;opacity:.8;top:21px;bottom:-12px;transform:scaleX(.5)}.comment-item-root .item-head{padding:0 10px;position:relative;display:flex;align-items:center}.comment-item-root .item-head-avatar{margin-right:5px;width:var(--editor-comment-avatar-width, 21px);height:var(--editor-comment-avatar-width, 21px);border-radius:100%}.comment-item-root .item-head-avatar-string{display:flex;align-items:center;justify-content:center;font-size:12px;color:#fff;background-color:var(--comment-avatar-color);flex-shrink:0}.comment-item-root .item-head-username{font-size:var(--editor-comment-username-font-size, 12px);color:var(--editor-comment-username-color, #07142a);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.comment-item-root .item-head-modified{margin-left:8px;font-size:12px;color:var(--editor-comment-modified-color, #808080);flex-grow:1;white-space:nowrap}.comment-item-root .item-head-tools{display:flex;align-items:center;visibility:hidden}.comment-item-root .item-head-tools .editor-text-button svg{width:20px;height:20px}.comment-item-root .item-head-tools.active{visibility:visible}.comment-item-root .item-actions{margin-top:10px;display:flex;justify-content:flex-end}.comment-item-root .item-actions.hidden{display:none}.comment-item-root .item-actions .editor-button[data-button-id=comment-item-cancel]{color:#606060;background:transparent;border:1px solid #c7c7c7}.comment-item-root .item-actions .editor-button[data-button-id=comment-item-cancel]:hover{color:#303030;background:#eee;border:1px solid #c7c7c7}.comment-item-root .item-actions .editor-button.disabled[data-button-id=comment-item-ok]{color:#fff;background-color:#338fe580;cursor:default}.comment-item-root:hover:not(.comment-item-editing) .item-head-tools{visibility:visible}.comment-item-root.readonly .item-head-tools{display:none}.mobile-comment-item{margin-top:4px;background-color:var(--editor-comment-layer-bg-color);padding-bottom:20px;color:var(--editor-comment-username-color)}.mobile-comment-item .item-head{padding:12px;display:flex;align-items:center}.mobile-comment-item .item-head-avatar{width:var(--editor-comment-avatar-size);height:var(--editor-comment-avatar-size);flex-grow:0}.mobile-comment-item .item-head-username{margin-left:12px}.mobile-comment-item .item-head-modified{margin-left:12px;color:#999}.mobile-comment-item .item-editor .comment-editor-readonly{padding-left:18px}.mini-comment-item{position:relative;line-height:16px;width:20px;height:16px;text-align:center;font-size:12px;border-radius:1px;background-color:var(--editor-comment-active-color, #FFC328);color:var(--editor-comment-mini-text-color, #ffffff);cursor:pointer}.mini-comment-item:after{content:"";position:absolute;left:50%;bottom:-4px;width:6px;height:6px;background-color:var(--editor-comment-active-color, #FFC328);border-radius:1px;transform:matrix(.71,.61,.82,-.71,0,0) translate(-50%);z-index:-1}.comment-quick-reply .quick-reply-button{position:absolute;left:8px;bottom:3px;z-index:2;color:var(--editor-comment-quick-reply-color, #7084A4);font-size:12px}.comment-quick-reply .quick-reply-button.editor-text-button:hover{color:var(--text-button-color-hover, #5587F0);background-color:var(--text-button-bg-color-hover, transparent)}.comment-quick-reply .quick-reply-editor{display:none}.comment-quick-reply .quick-reply-editor .reply-editor-actions{display:flex;justify-content:flex-end;margin-top:10px}.comment-quick-reply .quick-reply-editor .reply-editor-actions .editor-button[data-button-id=quick-reply-cancel]{color:#606060;background:transparent;border:1px solid #c7c7c7}.comment-quick-reply .quick-reply-editor .reply-editor-actions .editor-button[data-button-id=quick-reply-cancel]:hover{color:#303030;background:#eee;border:1px solid #c7c7c7}.comment-quick-reply .quick-reply-editor .reply-editor-actions .editor-button.disabled[data-button-id=quick-reply-ok]{color:#fff;background-color:#338fe580;cursor:default}.comment-quick-reply.hidden,.comment-quick-reply.reply-editor-editing .quick-reply-button{display:none}.comment-quick-reply.reply-editor-editing .quick-reply-editor{display:block}:root{--editor-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Robot, "Helvetica Neue", Helvetica, Arial, sans-serif;--editor-comment-layer-bg-color:#ffffff;--editor-comment-group-bg-color: #ffffff;--comment-root-border-color: #eaeaea;--editor-comment-layer-active-border-color: #cecece;--editor-box-shadow: 0px 3px 20px rgba(0, 0, 0, .15);--wiz-editor-z-comment-group-active-top-before: 29;--editor-comment-quote-color: #909090;--editor-comment-quote-before-bg-color: #909090;--editor-comment-switch-button-width: 12px;--editor-comment-active-color: #FFC328;--editor-bg-color: #ffffff;--wiz-editor-z-comment-head:11;--text-button-color-hover:#5587f0;--editor-comment-username-color:#07142A;--editor-comment-avatar-size: 32px}.disabled-scroll{overflow:hidden}.editor-root .editor-content div[data-type=editor-block].text-block.comment{box-shadow:none}.editor-root .editor-content div[data-type=editor-block].text-block.comment>div[data-type=block-content]>span{border-bottom:2px solid #f8e6ab}.editor-root .editor-content div[data-type=editor-block].text-block.comment.active{box-shadow:none;outline:none}.editor-root .editor-content div[data-type=editor-block].text-block.comment.active>div[data-type=block-content] span{background-color:#f8e6ab}.editor-root .editor-content div[data-type=editor-block] span.text.comment{border-bottom:2px solid #f8e6ab}.editor-root .editor-content div[data-type=editor-block] span.text.comment.active{background-color:#faf1d1}.editor-root .editor-content div[data-type=editor-block].comment{box-shadow:0 2px #f8e6ab}.editor-root .editor-content div[data-type=editor-block].comment.active{box-shadow:none;outline:4px solid #f8e6ab}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-comment-button{all:unset;position:absolute;right:-28px;top:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;padding:0;border-radius:3px;color:#07142a;cursor:pointer}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-comment-button:hover{background:#eaeaea}.editor-web-comment-root{position:absolute;right:0;width:300px;top:0;bottom:0;transition:width .16s ease-in;will-change:width;font-family:var(--editor-font-family)}.editor-web-comment-root .comment-groups-container .comment-group-item-root{position:absolute;left:50%;right:0;width:290px;transform:translate(-50%);background-color:var(--editor-comment-group-bg-color);border-radius:2px;border-color:var(--editor-comment-layer-active-border-color);box-shadow:var(--editor-box-shadow);padding-bottom:18px}.editor-web-comment-root .comment-groups-container .comment-group-item-root:not(.no-animation){transition:top .2s ease-in,opacity .35s ease-in}.editor-web-comment-root .comment-groups-container .comment-group-item-root:before{content:"";position:absolute;left:0;right:0;height:6px;background-color:#fff;border-radius:2px 2px 0 0;z-index:var(--wiz-editor-z-comment-group-active-top-before)}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head{display:flex;align-items:center}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-quote{box-sizing:content-box;font-size:12px;line-height:12px;height:12px;color:var(--editor-comment-quote-color);padding:18px 12px 10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:100%;max-width:calc(100% - 80px)}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-quote:before{content:"";display:block;width:2px;height:100%;background-color:var(--editor-comment-quote-before-bg-color);margin-right:6px;float:left;border-radius:10px}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch{display:flex;align-items:center;height:22px;padding-top:6px;visibility:hidden}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button{padding:0;width:var(--editor-comment-switch-button-width);margin:3px 0;color:#606060}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button[data-button-id=switch-up]{margin-right:16px}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button:not(.disabled):hover{color:var(--text-button-color-hover)}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button.disabled{color:#60606080;cursor:not-allowed}.editor-web-comment-root .comment-groups-container .comment-group-item-root.active:before{background-color:var(--editor-comment-active-color)}.editor-web-comment-root .comment-groups-container .comment-group-item-root.active .item-head-switch{visibility:visible}.editor-web-comment-root .comment-groups-container .comment-group-item-root.readonly .comment-quick-reply{display:none}.editor-mobile-comments-root{position:fixed;left:0;right:0;bottom:0;top:0;overflow:hidden;z-index:11}.editor-mobile-comments-root .mobile-comment-mask{position:absolute;left:0;right:0;bottom:0;top:0;background-color:#00000073}.editor-mobile-comments-root .mobile-comment-groups-container{position:absolute;width:100%;height:100vh;z-index:1;overflow:hidden}.editor-mobile-comments-root .mobile-comment-groups-container .mobile-comment-groups-scroll-container{padding:0 12px}.editor-mobile-comments-root .mobile-comment-pull-info-container{position:absolute;right:0;left:0;bottom:100px;z-index:2;text-align:center;display:none}.editor-mobile-comments-root .mobile-comment-pull-info-container .mobile-comment-pull-info{display:inline-block;padding:12px;border-radius:36px;margin:0 auto;background-color:#000c;color:#fff;font-size:12px;opacity:0;transition:opacity .25s cubic-bezier(.65,.05,.36,1)}.editor-mobile-comments-root .mobile-comment-pull-info-container.active{display:block}.editor-mobile-comments-root .mobile-comment-pull-info-container.active .mobile-comment-pull-info{opacity:1}.editor-mobile-comments-root .mobile-group-item-root{margin:0 auto;width:100%;height:100vh;overflow:hidden}.editor-mobile-comments-root .mobile-group-item-root .mobile-group-item{min-height:calc(100vh + 1px);padding-bottom:50px}.editor-mobile-comments-root .mobile-group-item-root .mobile-group-item-space{height:50vh}.editor-mobile-comments-root .mobile-group-item-root .mobile-group-item-abstract{background-color:var(--editor-comment-layer-bg-color);padding:12px;color:#999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-mini-comment-root{position:absolute;right:0;top:0;bottom:0;width:48px;border-left:1px solid #f0f0f0;transition:width .16s ease-in;will-change:width;font-family:var(--editor-font-family);border:none;background-color:transparent;z-index:11}.editor-mini-comment-root .comment-groups-container{width:100%;height:100%}.editor-mini-comment-root .comment-groups-container .mini-group-item{position:absolute;top:0;left:50%;margin-left:-10px;transition:top .2s cubic-bezier(.65,.05,.36,1)}:is(.editor-web-comment-root,.editor-mobile-comments-root,.editor-mini-comment-root).hidden{display:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=file] span[data-type=box-content]{margin:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=file] span[data-type=box-content] span.file-icon{display:inline-flex;vertical-align:text-bottom}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=file] span[data-type=box-content] .file-name{color:var(--primary-color);padding:0;border-radius:12px;margin-right:4px;white-space:wrap;word-break:break-all;cursor:pointer}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office]{justify-content:start}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office].hover [data-type=block-content]{border-radius:3px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content]{max-width:360px;min-width:360px;height:48px;cursor:pointer}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root{display:flex;align-items:center;min-width:360px;max-width:100%;background-color:#f5f6f7;border-radius:3px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root:before{border-radius:3px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details{display:flex;flex-direction:column;justify-content:center;font-size:14px;flex-grow:1}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details .file-name{color:#1f2329;max-width:185px;display:flex;flex-direction:row;align-items:center;white-space:nowrap}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details .file-size{color:#646a73;font-size:12px;margin-top:2px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details .file-name-pre{text-overflow:ellipsis;overflow:hidden}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-actions button{width:34px;height:34px;background-color:#fff;border:1px solid #dee0e3;border-radius:50%;margin:0 8px;padding:0;background-repeat:no-repeat;background-position:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-actions button svg{width:16px;height:16px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-icon{display:flex;width:36px;height:36px;margin:6px 6px 6px 12px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-icon>svg{width:100%;height:100%}:root{--editor-version-button-border: black;--editor-bg-color: #ffffff;--editor-version-list-bg-color: white;--editor-version-select-bg-color: #F8F8F8}.version-dialog{display:flex;background-color:var(--editor-bg-color);width:100%;height:100%;color:var(--editor-color)}.version-dialog *{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;box-sizing:border-box}.version-dialog .version-item-latest{color:#338fe5;background-color:#eaf3fc;height:20px;padding:0 5px;border-radius:3px;display:inline-flex;align-items:center;font-size:12px;font-weight:400;margin-left:10px}.version-dialog .version-viewer{flex:1;display:flex;flex-direction:column;width:0;padding:0}.version-dialog .version-viewer .version-dialog-editor{flex-grow:1;overflow-y:auto}.version-dialog .version-viewer .version-info-container{height:50px;border-bottom:#E8E8E8 1px solid;display:flex;align-items:center;flex-shrink:0;padding-left:20px;font-size:14px;color:#303030}.version-dialog .version-viewer .version-info-container .version-info-right .text-3,.version-dialog .version-viewer .version-info-container .version-info-left .text-1,.version-dialog .version-viewer .version-info-container .version-info-left .text-2{color:#909090}.version-dialog .version-viewer .version-info-container .version-info-left .name{font-weight:500}.version-dialog .version-viewer .version-info-container .version-info-left .name .version-item-latest{margin-left:5px}.version-dialog .version-viewer .version-info-container .editor-dropdown{margin-left:10px;margin-right:10px}.version-dialog .version-viewer .version-info-container .command-item[data-id=current-version]{min-width:200px;border:1px solid #f0f0f0}.version-dialog .version-viewer .version-info-container .command-item[data-id=current-version] .toolbar-item-name-container{flex-grow:1}.version-dialog .version-viewer .dialog-button-text{margin-top:1px;margin-left:-4px}.version-dialog .version-viewer .dialog-text-button{outline:none;background:transparent;border:none;display:flex;align-items:center;color:var(--editor-color);font-size:16px;font-weight:500;padding:4px 0;cursor:pointer}.version-dialog .version-viewer .dialog-text-button .dialog-button-icon{margin-right:0;width:24px;height:24px}.version-dialog .version-viewer .dialog-text-button .dialog-button-icon svg{fill:currentColor}.editor-root.history .root-container .editor-block .text-element .inline-plugin.editor-box-loading{display:none}.editor-root.history .editor-content{padding:30px 75px}.editor-root.history .history-inserted-block[data-type=editor-block] [data-type=block-content]{border:4px solid var(--op-selected-color)}.editor-root.history .history-inserted-block[data-type=editor-block]{position:relative}.editor-root.history .history-inserted-block[data-type=editor-block]:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:var(--wiz-editor-z-history-op-description, 10);font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history .history-inserted-block[data-type=editor-block].table-block table{border:4px solid var(--op-selected-color)}.editor-root.history .history-inserted-block[data-type=editor-block].table-block table .child{pointer-events:none}.editor-root.history .history-inserted-block[data-type=editor-block].table-block{position:relative}.editor-root.history .history-inserted-block[data-type=editor-block].table-block:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:var(--wiz-editor-z-history-op-description, 10);font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history .history-inserted-block[data-type=editor-block].table-block:hover:after{top:0}.editor-root.history .history-deleted-block [data-type=block-content]{border:4px solid var(--op-selected-color)}.editor-root.history .history-deleted-block [data-type=block-content]{position:relative}.editor-root.history .history-deleted-block [data-type=block-content]:after,.editor-root.history .history-deleted-block [data-type=block-content]:before{content:" ";position:absolute;display:flex;z-index:var(--wiz-editor-z-history-delete-marker);color:var(--op-color);justify-items:center;align-items:center;justify-content:center;align-content:center;pointer-events:none;overflow:visible;max-width:100%;max-height:100%;left:calc(50% - 16px);top:calc(50% - 2px);width:32px;height:4px;background-color:var(--op-color);transform:rotate(45deg);opacity:1}.editor-root.history .history-deleted-block [data-type=block-content]:before{transform:rotate(135deg)}.editor-root.history .history-deleted-block{position:relative}.editor-root.history .history-deleted-block:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:var(--wiz-editor-z-history-op-description, 10);font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history .history-deleted-block .history-deleted-box{background-color:unset!important;text-decoration:unset!important}.editor-root.history .history-deleted-block .history-deleted-box:hover:after{opacity:0}.editor-root.history .history-inserted-text{line-height:revert!important;background-color:var(--op-selected-color)}.editor-root.history .history-inserted-text{position:relative}.editor-root.history .history-inserted-text:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:var(--wiz-editor-z-history-op-description, 10);font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history .history-deleted-box{background-color:var(--op-selected-color);text-decoration:line-through}.editor-root.history .history-deleted-box{position:relative}.editor-root.history .history-deleted-box:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:var(--wiz-editor-z-history-op-description, 10);font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history [data-box-type=history-deleted-box]>span[data-type=box-content]{border:none!important;margin:0!important}.editor-root.history [data-type=editor-block].table-block div[data-type=block-content]{overflow-x:revert}.editor-dialog-root{position:absolute;left:0;top:0;bottom:0;right:0;background-color:#639;z-index:100}.size-limit-textarea{display:inline-block;position:relative}.size-limit-textarea .size-limit-textarea-input{width:100%;resize:none;overflow:hidden;color:#303030;outline:none;border:1px solid #f0f0f0;border-radius:3px}.size-limit-textarea .size-limit-textarea-input:focus,.size-limit-textarea .size-limit-textarea-input:hover{border-color:#338fe5}.size-limit-textarea .size-limit-textarea-input:focus{box-shadow:0 0 0 2px #338fe533}.size-limit-textarea .size-limit-textarea-warning{position:absolute;right:0;bottom:10px;color:#909090;z-index:1;font-size:12px;pointer-events:none}.version-list-root{width:320px;background:var(--editor-version-list-bg-color);overflow-y:auto;padding:0;border-left:#E8E8E8 1px solid;display:flex;flex-direction:column}.version-list-root .version-list-header{padding:0 20px;font-size:14px;display:flex;align-items:center;margin-top:8px;margin-bottom:8px;flex-shrink:0;color:#909090}.version-list-root .version-list-header .version-count{flex-grow:1}.version-list-root .version-list-empty{height:100%;display:flex;align-items:center;justify-content:center;font-size:14px;color:#909090}.version-list-root .version-list-content{flex-grow:1;overflow-y:auto}.version-list-root .version-list-content .version-item{padding:15px 10px;cursor:pointer}.version-list-root .version-list-content .version-item.child{padding-left:32px}.version-list-root .version-list-content .version-item:not(.active):hover{background:rgba(112,132,164,.1)}.version-list-root .version-list-content .version-item.active{background-color:var(--editor-version-select-bg-color)}.version-list-root .version-list-content .version-item.active .version-item-title .version-actions{display:flex}.version-list-root .version-list-content .version-item.editing .version-item-memo{display:none}.version-list-root .version-list-content .version-item.active .version-item-memo{cursor:text}.version-list-root .version-list-content .version-item.active .version-item-memo:hover{outline:1px solid #338FE5}.version-list-root .version-list-content .version-item .version-item-restore-from{color:#909090;font-size:12px;line-height:1.5em;height:20px;padding:0 10px 10px}.version-list-root .version-list-content .version-item .version-item-restore-from:empty{display:none}.version-list-root .version-list-content .version-item .memo-input.size-limit-textarea{width:100%;min-height:60px}.version-list-root .version-list-content .version-item .memo-input.size-limit-textarea textarea{padding:5px 10px 10px;box-sizing:border-box;font-size:14px}.version-list-root .version-list-content .version-item .version-item-title{display:flex;align-items:center;padding-bottom:10px;padding-left:10px;padding-right:10px;height:24px}.version-list-root .version-list-content .version-item .version-item-title .version-item-date{font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#303030}.version-list-root .version-list-content .version-item .version-item-title .spacer{flex-grow:1}.version-list-root .version-list-content .version-item .version-item-title .version-actions{display:none}.version-list-root .version-list-content .version-item .version-item-title .version-actions button{display:flex;align-items:center;justify-content:center;height:16px;cursor:pointer;border:none;outline:none;background:transparent;padding:0 0 0 5px;color:#909090}.version-list-root .version-list-content .version-item .version-item-title .version-actions button:hover{color:#338fe5}.version-list-root .version-list-content .version-item .version-item-title .version-actions button.disabled,.version-list-root .version-list-content .version-item .version-item-title .version-actions button.disabled:hover{color:#c7c7c7}.version-list-root .version-list-content .version-item .version-item-title .version-actions .revert-button{border-left:1px solid #E8E8E8;margin-left:5px}.version-list-root .version-list-content .version-item .version-item-authors{list-style:none;margin:0;font-size:12px;padding-left:10px}.version-list-root .version-list-content .version-item .version-item-author{display:flex;align-items:center;margin-top:10px;color:#606060}.version-list-root .version-list-content .version-item .version-item-author-mark{width:6px;height:6px;border-radius:3px;margin-right:5px}.version-list-root .version-list-content .version-item .version-item-memo{font-size:14px;color:#303030;padding:5px 10px 10px;border-radius:3px}.version-list-root .version-list-content .version-item .version-item-memo:empty{display:none}.versions-dropdown-header{color:var(--text-color);padding:10px;border-bottom:1px solid #f0f0f0}.versions-dropdown-header .versions-dropdown-header-info{color:#909090}.versions-dropdown-header .versions-dropdown-header-icon{vertical-align:middle;padding-left:5px;padding-right:5px;cursor:pointer;color:#909090}.editor-command-bar.menu .command-item.standard[data-id=prev-version]{height:44px}[data-command-bar-id=versions-dropdown-popup]{width:320px}[data-command-bar-id=versions-dropdown-popup] .tippy-box{color:var(--text-color)}[data-command-bar-id=versions-dropdown-popup] .tippy-box .version-item-empty{width:100%}[data-command-bar-id=versions-dropdown-popup] .tippy-box .version-item-name{color:var(--text-color)}[data-command-bar-id=versions-dropdown-popup] .tippy-box .editor-command-bar.menu .command-item.standard.disabled{color:#909090}[data-command-bar-id=versions-dropdown-popup] .tippy-box .editor-command-bar{--text-color: #303030}[data-command-bar-id=versions-dropdown-popup] *{box-sizing:border-box}[data-command-bar-id=versions-dropdown-popup] .editor-command-bar-header{width:100%;margin-bottom:5px}[data-command-bar-id=versions-dropdown-popup] .command-item{width:100%;cursor:pointer}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-container{padding:6px 10px;width:100%}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-container .version-item-memo{font-size:12px;color:#909090;line-height:20px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-container .version-item-line1{line-height:22px;display:flex;align-items:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-container .version-item-line1 .version-item-latest{color:#338fe5;background-color:#eaf3fc;height:20px;padding:0 5px;margin-left:10px;border-radius:3px;font-size:12px;display:inline-flex;align-items:center}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-empty{display:flex;height:34px;color:#909090;padding-left:10px;justify-content:left;align-items:center}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item{width:100%}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item .filter-item-info{height:24px;color:#909090;display:flex;align-items:center;padding-left:10px;background-color:#f8f8f8;width:100%;box-sizing:border-box;margin:5px 0}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item .filter-item-input-container{height:34px;display:flex;align-items:center;padding-left:10px;color:#303030}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item .filter-item-input-container .filter-item-input{position:relative;top:-2px;left:-2px;cursor:pointer;accent-color:#338FE5}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item .filter-item-input-container .filter-item-label{user-select:none;cursor:pointer;line-height:1em}.editor-root.readonly .editor-content div[data-type=editor-block].focused div[data-type=block-tools] .block-helper .heading-marker,.editor-root.readonly .editor-content div[data-type=editor-block].highlighted div[data-type=block-tools] .block-helper .heading-marker{display:flex}.editor-root .editor-content div[data-type=editor-block].heading-collapsed div[data-type=block-tools] .block-helper .heading-collapse-button svg{transform:rotate(270deg)}.editor-root .editor-content div[data-type=editor-block].focused div[data-type=block-tools] .block-helper .heading-marker,.editor-root .editor-content div[data-type=editor-block].highlighted div[data-type=block-tools] .block-helper .heading-marker{display:none}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker,.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-collapse-button{width:24px;height:24px;cursor:grab;margin:0;padding:0;display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;border-radius:3px}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker:hover,.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-collapse-button:hover{background-color:var(--selected-color)}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker svg,.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-collapse-button svg{transform:rotate(360deg);transition:transform .2s linear}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker svg,.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-collapse-button svg{width:16px;height:16px}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker:hover{background-color:transparent}.embed-block div[data-type=block-content] .editor-toc-container{display:block;width:100%;background-color:#f0f0f0;padding:20px}.embed-block div[data-type=block-content] .editor-toc-container.loading{margin:0;min-height:100px}.embed-block div[data-type=block-content] .editor-toc-container .toc-node+.toc-node{margin-top:10px}.embed-block div[data-type=block-content] .editor-toc-container .toc-node .toc-text{cursor:pointer;color:var(--primary-color)}.embed-block div[data-type=block-content] .editor-toc-container .toc-node .toc-children{margin-top:10px;padding-left:20px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=mention] span[data-type=box-content]{margin:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=mention] span[data-type=box-content] .mention-name{color:var(--primary-color);padding:0;border-radius:12px;margin-left:4px;margin-right:4px;white-space:wrap;word-break:break-all;cursor:pointer}[data-command-bar-id=editor-mention] .editor-command-bar.menu .command-item.menu-item .menu-item-icon{width:20px;height:20px;border-radius:50%;overflow:hidden}[data-command-bar-id=editor-mention] .editor-command-bar.menu .command-item.menu-item .menu-item-icon img{width:100%;height:100%}[data-command-bar-id=editor-mention] .editor-command-bar.menu .command-item.menu-item .menu-item-icon .mention-user-avatar-string{align-items:center;display:flex;justify-content:center;overflow:hidden;height:100%;width:100%;font-size:12px;color:#fff;flex-shrink:0}[data-command-bar-id=editor-mention] .editor-command-bar.menu .command-item.menu-item .menu-item-name{flex-grow:0;margin-right:5px}.editor-root .editor-templates{position:fixed;bottom:26px;height:256px;width:auto;max-width:100%;padding-left:30px;padding-right:44px;overflow:hidden}.editor-root .editor-templates .editor-templates-title{color:#909090;font-size:14px;margin-left:0;margin-bottom:20px;line-height:19.6px}.editor-root .editor-templates .editor-templates-cards{display:flex;margin-left:0}.editor-root .editor-templates .editor-templates-cards .editor-template-card{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;cursor:pointer;flex-shrink:0;height:192px;width:188px;background:none;border:1px solid #e8e8e8;border-radius:3px;margin:0 0 0 15px;padding:0;align-items:revert}.editor-root .editor-templates .editor-templates-cards .editor-template-card:first-child{margin-left:0}.editor-root .editor-templates .editor-templates-cards .editor-template-card:hover{box-shadow:0 0 1px #30303033,0 8px 16px #30303026}.editor-root .editor-templates .editor-templates-cards .editor-template-card:hover>.editor-template-name{color:#338fe5}.editor-root .editor-templates .editor-templates-cards .editor-template-card .editor-template-name{display:flex;align-items:center;height:40px;width:100%;border-top:1px solid #dedede;padding-left:20px;padding-right:20px;flex:0 0 50px;font-size:14px;font-weight:500;line-height:22px;color:#303030}.editor-root .editor-templates .editor-templates-cards .editor-template-card .editor-template-name span{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-root .editor-templates .editor-templates-cards .editor-template-card.more .editor-template-name{border-top:none}.editor-root .editor-templates .editor-templates-cards .editor-template-card.more .editor-template-name span{padding-left:0;text-align:center}.editor-root .editor-templates .editor-templates-cards .editor-template-card.more .editor-template-thumb-container{display:flex;align-items:center;justify-content:center;padding:16px 39px 14px}.editor-root .editor-templates .editor-templates-cards .editor-template-card.more .editor-template-thumb-container>img{width:110px;height:112px;max-width:revert}.editor-root .editor-templates .editor-templates-cards .editor-template-card .editor-template-thumb-container{flex:1;position:relative;padding:10px 5px 0;height:142px;margin:0;overflow:revert}.editor-root .editor-templates .editor-templates-cards .editor-template-card .editor-template-thumb-container>img{max-width:100%}:root div[data-command-bar-id=webpage]>div.tippy-box{max-width:500px}:root div[data-command-bar-id=webpage]>div.tippy-box div.tippy-content{width:500px;padding:0}.editor-dialog-container{width:500px}.editor-dialog-container .dialog-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 20px;height:50px;border-bottom:1px solid #e8e8e8;margin-bottom:20px}.editor-dialog-container .dialog-header .close-icon{display:flex;cursor:pointer}.editor-dialog-container .dialog-header .dialog-header-title{padding:8px 0 11px;font-size:18px;font-weight:700;flex-grow:1}.editor-dialog-container .dialog-content{padding:0 20px 20px;border-bottom:1px solid #e8e8e8}.editor-dialog-container .dialog-footer{margin:10px 0;padding:0 20px;text-align:right}.editor-dialog-container .dialog-footer button{min-width:58px;min-height:30px;padding:0 10px;border-radius:3px;background-color:#eef3f8;font-size:14px;color:#fff;cursor:pointer}.editor-dialog-container .dialog-footer .cancel-button{margin:0 8px 0 0;background-color:transparent;border:1px solid #c7c7c7;color:#606060}.editor-dialog-container .dialog-footer .cancel-button:hover{color:#303030;background:#eee;border:1px solid #c7c7c7}.editor-dialog-container .dialog-footer .submit-button{outline:none;background-color:#338fe5;color:#fff;border:0}.editor-dialog-container .dialog-footer .submit-button:hover{background-color:#5ca5ea}.editor-disable-scroll.editor-disable-scroll-dark{background-color:#00000080}.embed-block[data-embed-type=webpage]{height:400px;min-height:100px;max-height:1000px}.embed-block[data-embed-type=webpage] .webpage-mask{position:absolute;left:0;right:0;top:0;bottom:0;z-index:1;background-color:transparent}.embed-block[data-embed-type=webpage].resizing [data-type=block-tools] .block-resizer{pointer-events:all!important}.embed-block[data-embed-type=webpage].hover>div[data-type=block-content]{outline:none!important}.embed-block[data-embed-type=webpage].selected>div[data-type=block-content]{outline:none!important}.embed-block[data-embed-type=webpage]>div[data-type=block-content]{justify-content:center;height:100%}.embed-block[data-embed-type=webpage]>div[data-type=block-content]>.editor-embed{width:100%}.embed-block[data-embed-type=webpage]>div[data-type=block-content]>.editor-embed .editor-preview-iframe{width:100%;max-height:500px;height:100%;border:none;position:relative}.embed-block[data-embed-type=webpage]>div[data-type=block-content]>.editor-embed .editor-preview-iframe-loading{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:center;align-items:center;background-color:#fff}.webpage-content .help-container{color:#303030;border:1px solid #dedede;padding:10px;border-radius:4px;border-left:4px solid #338fe5;margin-top:16px;margin-bottom:16px}.webpage-content .help-container .help-content{display:flex;align-items:center}.webpage-content .help-container .help-content .help-icon{display:flex;align-items:center;height:20px;color:#338fe5;margin-right:12px}.webpage-content .help-link-container{margin-top:8px;display:flex;align-items:center}.webpage-content .help-link-container .help-link-content{display:flex;align-items:center;color:#338fe5;text-decoration:none}.webpage-content .help-link-container .help-link-content .help-link-icon{width:16px;height:16px;margin-left:8px}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-embed-type=webpage]>div[data-type=block-content]:before{display:block}:root{--editor-quoted-color: #7084a4;--editor-drawio-empty-svg: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zOC43MjAzIDI4LjcwOTdIMjUuOTIzM0MyNS4yMTY1IDI4LjcwOTcgMjQuNjQzNSAyOC4xNDgxIDI0LjY0MzUgMjcuNDU1MlYyNS43MzMzSDIwLjUyODNDMjAuNDk4NiAyNS43Njk2IDIwLjQ2NjkgMjUuODA0MiAyMC40MzMzIDI1LjgzN0wxNS45MTkyIDMwLjI2MjFWMzQuNzU1NkgyNC42NDM1VjMzLjcyNzZDMjQuNjQzNSAzMy4wMzQ4IDI1LjIxNjUgMzIuNDczMiAyNS45MjMzIDMyLjQ3MzJIMzguNzIwM0MzOS40MjcgMzIuNDczMiA0MCAzMy4wMzQ4IDQwIDMzLjcyNzZWMzguNzQ1NUM0MCAzOS40MzgzIDM5LjQyNyA0MCAzOC43MjAzIDQwSDI1LjkyMzNDMjUuMjE2NSA0MCAyNC42NDM1IDM5LjQzODMgMjQuNjQzNSAzOC43NDU1VjM3LjMzMzNIMTQuNjI2M0MxMy45MTIyIDM3LjMzMzMgMTMuMzMzMyAzNi43NTYyIDEzLjMzMzMgMzYuMDQ0NFYzMC42OTQxTDguMzc4NTIgMjUuODM3QzguMTM2MjYgMjUuNjAxNCA4IDI1LjI4MDggOCAyNC45NDYzQzggMjQuNjExOCA4LjEzNjI2IDI0LjI5MTEgOC4zNzg1MiAyNC4wNTU2TDEzLjMzMzMgMTkuMTk4NVYxNS43NzJDMTEuNzc5OCAxNS4yMjI5IDEwLjY2NjcgMTMuNzQxNiAxMC42NjY3IDEyQzEwLjY2NjcgOS43OTA4NSAxMi40NTc1IDggMTQuNjY2NyA4QzE2Ljg3NTggOCAxOC42NjY2IDkuNzkwODUgMTguNjY2NiAxMkMxOC42NjY2IDEzLjcyNjUgMTcuNTU4OCAxNS4yNTgxIDE1LjkxOTEgMTUuNzk4OFYxOS4yODg4QzE1LjkxOTEgMTkuMzkxOCAxNS45MDY4IDE5LjQ5NDMgMTUuODgyMyAxOS41OTQzTDE5LjUxNTEgMjMuMTU1NUgyNC42NDM1VjIyLjQzNzNDMjQuNjQzNSAyMS43NDQ1IDI1LjIxNjUgMjEuMTgyOSAyNS45MjMzIDIxLjE4MjlIMzguNzIwM0MzOS40MjcgMjEuMTgyOSA0MCAyMS43NDQ1IDQwIDIyLjQzNzNWMjcuNDU1MkM0MCAyOC4xNDgxIDM5LjQyNyAyOC43MDk3IDM4LjcyMDMgMjguNzA5N1pNMjcuMjAzIDM3LjQ5MUgzNy40NDA2VjM0Ljk4MjFIMjcuMjAzVjM3LjQ5MVpNMTQuNDA1OSAyOC4xOTU0TDExLjA5MTUgMjQuOTQ2M0wxNC40MDU5IDIxLjY5NzJMMTcuNzIwNCAyNC45NDYzTDE0LjQwNTkgMjguMTk1NFpNMjcuMjAzIDI2LjIwMDhIMzcuNDQwNlYyMy42OTE4SDI3LjIwM1YyNi4yMDA4WiIgZmlsbD0iIzA3MTQyQSIvPgo8L3N2Zz4K)}.flex-center,.editor-drawio-iframe-container.loading:before{display:flex;align-items:center;justify-content:center}.full-screen,.editor-drawio-iframe-container.loading:before,.drawio-iframe-element,.editor-drawio-iframe-container{width:100%;height:100%}.editor-drawio-iframe-container{position:fixed;top:0;left:0;z-index:1000}div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content]{outline:1px solid #DEDEDE}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content]{justify-content:center;border-radius:3px;padding:10px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content] .editor-drawio-content{display:flex;flex-direction:column;align-items:center;justify-content:center}.embed-block .editor-empty-drawio.editor-drawio-content.editor-embed{width:240px;height:80px;display:inline-block;text-align:center}div.editor-root div.editor-content div[data-type=editor-container] div[data-embed-type=drawio].embed-block>div[data-type=block-content] img{max-width:100%;max-height:100%}.editor-drawio-iframe-container.loading:before{content:attr(data-placeholder);position:absolute;top:0;left:0;background-color:#f7f6f3;z-index:2}.editor-content .editing{background-color:#cdcdcd40}.editor-content div[data-type=block-tools] .embed-code-editor-container{position:absolute;top:0;left:0px;right:0px;bottom:0;background-color:#cdcdcd40;z-index:var(--wiz-editor-z-embed-code-editor-mask);padding:8px}.editor-content div[data-type=block-tools] .embed-code-editor-container textarea{width:100%;height:100%;resize:none;outline:none;padding:12px;border:1px solid #b9bfc8;border-radius:4px;background-color:#fff;color:#333}.flex-row-center,.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=mermaid] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=flowchart] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=plantuml] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=mermaid] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=mermaid],.embed-block[data-embed-type=flowchart],.embed-block[data-embed-type=plantuml]{display:flex;flex-direction:row;align-items:center;justify-content:center}.embed-block[data-embed-type=mermaid] div[data-type=block-content],.embed-block[data-embed-type=flowchart] div[data-type=block-content],.embed-block[data-embed-type=plantuml] div[data-type=block-content]{width:100%;position:relative;border:1px solid #e5e5e5;border-radius:3px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .empty-embed,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .empty-embed,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .empty-embed{width:100%;min-height:106px;background-color:#cdcdcd40}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .empty-embed:after{content:attr(data-empty-tips);position:absolute;top:0;right:0;width:100%;height:100%;color:#07142a;white-space:nowrap}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=flowchart] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=plantuml] div[data-type=block-content] .invalid-code:not(.empty-embed){width:100%;height:100px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .invalid-code:not(.empty-embed) img,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .invalid-code:not(.empty-embed) img,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .invalid-code:not(.empty-embed) img{display:none}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .invalid-code:not(.empty-embed):after,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .invalid-code:not(.empty-embed):after,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .invalid-code:not(.empty-embed):after{content:attr(data-invalid-text);position:absolute;top:0;right:0;width:100%;height:100%;outline:1px solid red;display:flex;flex-direction:row;align-items:center;justify-content:center;color:red}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-img-content,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-img-content,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-img-content{width:100%;text-align:center}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .mermaid-embed-img,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .mermaid-embed-img,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .mermaid-embed-img{max-width:100%;min-width:200px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .editor-plantuml-img,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .editor-plantuml-img,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .editor-plantuml-img{max-width:100%}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-img-content,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-img-content,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-img-content{width:100%;text-align:center;padding:10px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-img-content img,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-img-content img,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-img-content img{max-width:100%}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed{width:100%}.hr-transition,.embed-block[data-type=editor-block][data-embed-type=hr] div[data-type=block-content] .editor-embed-container .editor-embed-hr{transition:border-top ease-in-out .4s}.embed-block[data-type=editor-block][data-embed-type=hr].hover>div[data-type=block-content]{outline:none!important}.embed-block[data-type=editor-block][data-embed-type=hr].selected>div[data-type=block-content]{outline:none!important}.embed-block[data-type=editor-block][data-embed-type=hr]:is(.focused) div[data-type=block-content] .editor-embed-container .editor-embed-hr{caret-color:transparent}.embed-block[data-type=editor-block][data-embed-type=hr] div[data-type=block-content] .editor-embed-container{display:flex;align-items:center;width:100%;height:24px}.embed-block[data-type=editor-block][data-embed-type=hr] div[data-type=block-content] .editor-embed-container .editor-embed-hr{display:block;width:100%;border:none;margin:0;border-top:2px dashed #cccccc;cursor:pointer}.embed-block[data-type=editor-block][data-embed-type=hr] div[data-type=block-tools]>div.block-helper{height:100%}:root{--hover-color: #40a9ff}.flex-column-center,.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error{display:flex;justify-content:center;align-items:center;flex-flow:column}.common{width:400px;height:180px;background-color:#fafafa;border:1px dashed #d9d9d9;border-radius:2px;transition:border-color .3s}.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error{height:200px}.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty .media-error-icon,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error .media-error-icon{display:flex}.editor-root .editor-content div[data-type=editor-block].embed-block.media-block-uploading div[data-type=block-tools] .block-helper{display:none}.embed-block[data-embed-type=video]{display:flex}.embed-block[data-embed-type=video][data-style-align=left]>div[data-type=block-content]{justify-content:flex-start}.embed-block[data-embed-type=video][data-style-align=center]>div[data-type=block-content]{justify-content:center}.embed-block[data-embed-type=video][data-style-align=right]>div[data-type=block-content]{justify-content:flex-end}.embed-block[data-embed-type=video]>div[data-type=block-content]{border:none}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error{height:400px}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty .media-error-icon,.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error .media-error-icon{display:flex}.embed-block[data-embed-type=video].hover>div[data-type=block-content],.embed-block[data-embed-type=audio].hover>div[data-type=block-content]{outline:none!important}.embed-block[data-embed-type=video].selected>div[data-type=block-content]:before,.embed-block[data-embed-type=audio].selected>div[data-type=block-content]:before{display:none}.embed-block[data-embed-type=video]>div[data-type=block-content],.embed-block[data-embed-type=audio]>div[data-type=block-content]{justify-content:center;width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media.full-screen,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media.full-screen{width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media{display:flex;justify-content:center}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress{position:relative;width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress audio,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress audio{display:block;width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress video,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress video{display:block;max-width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress .uploading-progress-mask,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress .uploading-progress-mask{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#303030;opacity:.8;display:flex;align-items:center;justify-content:center}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress .uploading-progress-mask .uploading-progress-bar,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress .uploading-progress-mask .uploading-progress-bar{width:75%;height:6px;border-radius:3px;display:flex;background-color:#fff;overflow:hidden}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress .uploading-progress-mask .uploading-progress-bar .uploading-progress-bar-value,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress .uploading-progress-mask .uploading-progress-bar .uploading-progress-bar-value{background-color:#338fe5}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error{width:100%;background:#F8F8F8;outline:1px solid #DEDEDE;border-radius:3px}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error-icon svg,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error-icon svg{width:48px;height:48px;color:#c7c7c7}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error .line-1,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error .line-1{margin-top:10px;font-size:18px;text-align:center;color:#303030}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error .line-2,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error .line-2{margin-top:5px;font-size:14px;text-align:center;color:#606060}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error .retry-upload,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error .retry-upload{margin-left:4px;color:#338fe5;cursor:pointer;text-decoration:none}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty{width:100%;background:#FFFFFF;outline:1px solid #DEDEDE;border-radius:3px}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty svg,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty svg{width:48px;height:48px;color:#c7c7c7}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-element,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-element{width:100%;display:flex;justify-content:center}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-element .video-container video,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-element .video-container video{display:block;min-width:50px;max-width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-element .audio-container,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-element .audio-container{width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-element .audio-container audio,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-element .audio-container audio{display:block;width:100%}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=video].comment,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=audio].comment{box-shadow:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=video].comment .media,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=audio].comment .media{box-shadow:0 2px #f8e6ab}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=video].comment.active,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=audio].comment.active{outline:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=video].comment.active .media,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=audio].comment.active .media{box-shadow:none;outline:4px solid #f8e6ab}.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-self>[data-type=block-content]:after,.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-others>[data-type=block-content]:after,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-self>[data-type=block-content]:after,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-others>[data-type=block-content]:after{display:none}.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-self>[data-type=block-content] .media,.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-others>[data-type=block-content] .media,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-self>[data-type=block-content] .media,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-others>[data-type=block-content] .media{position:relative}.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-self>[data-type=block-content] .media:after,.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-others>[data-type=block-content] .media:after,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-self>[data-type=block-content] .media:after,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-others>[data-type=block-content] .media:after{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;z-index:1;background-color:#303030;opacity:.1}`)),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
1
+ (function(){"use strict";try{if(typeof document!="undefined"){var t=document.createElement("style");t.appendChild(document.createTextNode(`@keyframes ones-editor-blink{0%,to{background-color:transparent}50%{background-color:var(--primary-color)}}*{--link-color: #338fe5;--color-0: #e52727;--color-1: #eb6414;--color-2: #f0a100;--color-3: #24b47e;--color-4: #338fe5;--color-5: #9678d3;--color-6: #909090;--background-color-0: #fad4d4;--background-color-1: #fbe0d0;--background-color-2: #fceccc;--background-color-3: #d3f0e5;--background-color-4: #d6e9fa;--background-color-5: #eae4f6;--background-color-6: #dedede;--background-color-7: #e52727;--background-color-8: #eb6414;--background-color-9: #f0a100;--background-color-10: #24b47e;--background-color-11: #338fe5;--background-color-12: #9678d3;--background-color-13: #909090;--background-color-14: #e8e8e8;--font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif}div.editor-root{--text-color: #303030;--primary-color: #338fe5;--background-selection: #338fe533;--background-code: #cdcdcd40}div.editor-root{color:var(--text-color);position:relative;box-sizing:border-box;min-height:100%;width:100%;z-index:1}div.editor-root.readonly div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] span.text.link{cursor:pointer}div.editor-root *{box-sizing:border-box;font-family:var(--font-family)}div.editor-root button{outline:none}div.editor-root.active div.editor-content .editor-cursor{opacity:1}div.editor-root .safari.mobile div.editor-content .editor-input{pointer-events:all;width:8px}div.editor-root div.editor-content{height:100%;width:100%;padding:0 30px 30px}div.editor-root div.editor-content .editor-cursor{position:absolute;background:var(--primary-color);width:2px;transition:top .1s ease-in,left .1s linear;animation:ones-editor-blink 1s ease-in-out infinite;opacity:0;pointer-events:none}div.editor-root div.editor-content .editor-input{position:absolute;opacity:0;pointer-events:none;width:16px;height:20px;font-size:16px}div.editor-root div.editor-content div[data-type=editor-container]{position:relative}div.editor-root div.editor-content div[data-type=editor-container].root{user-select:none;width:100%;cursor:text}div.editor-root div.editor-content div[data-type=editor-container].root>.container-blocks>*+*{margin-top:1em}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block]:not(:first-of-type){background-color:var(--background-selection)}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block]:not(:first-of-type) div[data-type=block-background]>.editor-selection-background{background-color:transparent!important}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block].embed-block>div[data-type=block-content]:before,div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block].embed-block .embed-selected-content:before{display:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-quoted]+div[data-type=editor-block][data-style-quoted]{margin-top:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block]{font-size:var(--font-size);line-height:var(--line-height);position:relative;--font-size: 15px;--line-height: 1.6}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-align=center] div[data-type=block-content]{text-align:center}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-align=right] div[data-type=block-content]{text-align:end}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].block-hidden{display:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=text]{cursor:text}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]{word-break:break-word;position:relative}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span{cursor:text}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text{white-space:pre-wrap}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.link{color:var(--link-color)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.link:hover{text-decoration:underline}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.link.style-strikethrough:hover{text-decoration:underline line-through}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-bold{font-weight:700}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-italic{font-style:italic}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-underline{text-decoration:underline}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-strikethrough{text-decoration:line-through}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-underline.style-strikethrough{text-decoration:underline line-through}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-code{border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;background-color:var(--background-code);padding:4px;font:.8em Monaco,Consolas,"Andale Mono",DejaVu Sans Mono,monospace}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-sub{vertical-align:sub;font-size:70%}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text.style-super{vertical-align:super;font-size:70%}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="0"]{color:var(--color-0)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="1"]{color:var(--color-1)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="2"]{color:var(--color-2)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="3"]{color:var(--color-3)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="4"]{color:var(--color-4)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="5"]{color:var(--color-5)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-color="6"]{color:var(--color-6)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="0"]{background-color:var(--background-color-0)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="1"]{background-color:var(--background-color-1)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="2"]{background-color:var(--background-color-2)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="3"]{background-color:var(--background-color-3)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="4"]{background-color:var(--background-color-4)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="5"]{background-color:var(--background-color-5)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="6"]{background-color:var(--background-color-6)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="7"]{background-color:var(--background-color-7)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="8"]{background-color:var(--background-color-8)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="9"]{background-color:var(--background-color-9)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="10"]{background-color:var(--background-color-10)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="11"]{background-color:var(--background-color-11)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="12"]{background-color:var(--background-color-12)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="13"]{background-color:var(--background-color-13)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.text[data-style-bg-color="14"]{background-color:var(--background-color-14)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].inputting-insertion>span[data-type=insertion-content]{border-bottom:1px solid var(--primary-color)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion{width:0px;position:relative;display:inline-block;vertical-align:text-bottom;overflow:visible;height:1em}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion>span[data-type=insertion-content]{position:absolute;color:transparent;width:3px;left:-3px;border-right:var(--cursor-color) 1px solid;text-overflow:clip;display:inline-block;top:-5px;bottom:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion>span[data-type=insertion-content] span[data-cursor-name]{display:inline-block;width:8px;background-color:transparent;border:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion>span[data-type=insertion-content] span[data-cursor-name]:hover:before,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span[data-type=editor-insertion].remote-cursor-insertion.active>span[data-type=insertion-content] span[data-cursor-name]:before{content:attr(data-cursor-name);position:absolute;top:-12px;height:1.1em;background-color:var(--cursor-color);z-index:27;left:0px;color:#fff;white-space:nowrap;font-size:12px;display:flex;align-items:center;padding:1px 4px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] span[data-type=box-content]{border-radius:2px;margin-left:8px;margin-right:8px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] span[data-type=editor-box].br-box>span[data-type=box-content] img{vertical-align:middle;max-width:1em}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] span[data-type=editor-box][data-box-type=image].image-box span[data-type=box-content]{user-select:none;margin-left:0;margin-right:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-tools] .editor-block-anchor{position:absolute}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-background] .editor-selection-background{position:absolute;background-color:var(--background-selection);z-index:1;pointer-events:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block{cursor:default}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.hover>div[data-type=block-content],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block.hover>div[data-type=block-content]{outline:1px solid #338fe5}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block>div[data-type=block-content],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block>div[data-type=block-content]{display:flex}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.hover .embed-hover-content{outline:1px solid #338fe5}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.selected>div[data-type=block-content],div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.selected .embed-selected-content{position:relative}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.selected>div[data-type=block-content]:before,div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block.selected .embed-selected-content:before{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;z-index:1;background-color:#338fe5;opacity:.1}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block{color:#909090;font-size:12px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].unknown-block>div[data-type=block-content]{padding:5px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-quoted]{border-left:4px solid #e8e8e8;color:#909090}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-quoted]:not([data-list-level]){padding-left:8px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="1"]{--font-size: 28px;--line-height: 1.5;margin-top:24px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="2"]{--font-size: 26px;--line-height: 1.5;margin-top:24px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="3"]{--font-size: 24px;--line-height: 1.5;margin-top:20px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="4"]{--font-size: 22px;--line-height: 1.5;margin-top:20px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="5"]{--font-size: 20px;--line-height: 1.6;margin-top:16px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="6"]{--font-size: 18px;--line-height: 1.6;margin-top:16px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="7"]{--font-size: 16px;--line-height: 1.6}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading="8"]{--font-size: 14px;--line-height: 1.6}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-heading]{font-size:var(--font-size);line-height:var(--line-height);font-weight:700}.editor-disable-scroll{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:9900;overflow:hidden}div:not(.comment-editor-root)>div.editor-root>div.editor-content>div[data-type=editor-container]>div.container-blocks>div[data-type=editor-block]:first-of-type{font-size:30px;line-height:1.3}div.editor-root div.editor-content>div[data-type=editor-container]>div.container-blocks :first-child{margin-top:0}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-anchor{position:absolute;pointer-events:none;z-index:-1}.editor-command-bar.toolbar .color-button{width:24px;height:24px;display:flex;padding:0;margin:0;align-items:center;justify-content:center;background-color:transparent;border:0;outline:0;border-radius:3px;cursor:pointer}.editor-command-bar.toolbar .color-button[data-color="0"]{color:var(--color-0)}.editor-command-bar.toolbar .color-button[data-color="1"]{color:var(--color-1)}.editor-command-bar.toolbar .color-button[data-color="2"]{color:var(--color-2)}.editor-command-bar.toolbar .color-button[data-color="3"]{color:var(--color-3)}.editor-command-bar.toolbar .color-button[data-color="4"]{color:var(--color-4)}.editor-command-bar.toolbar .color-button[data-color="5"]{color:var(--color-5)}.editor-command-bar.toolbar .color-button[data-color="6"]{color:var(--color-6)}.editor-command-bar.toolbar .color-button[data-background-color="0"]{background-color:var(--background-color-0)}.editor-command-bar.toolbar .color-button[data-background-color="1"]{background-color:var(--background-color-1)}.editor-command-bar.toolbar .color-button[data-background-color="2"]{background-color:var(--background-color-2)}.editor-command-bar.toolbar .color-button[data-background-color="3"]{background-color:var(--background-color-3)}.editor-command-bar.toolbar .color-button[data-background-color="4"]{background-color:var(--background-color-4)}.editor-command-bar.toolbar .color-button[data-background-color="5"]{background-color:var(--background-color-5)}.editor-command-bar.toolbar .color-button[data-background-color="6"]{background-color:var(--background-color-6)}.editor-command-bar.toolbar .color-button[data-background-color="7"]{background-color:var(--background-color-7)}.editor-command-bar.toolbar .color-button[data-background-color="8"]{background-color:var(--background-color-8)}.editor-command-bar.toolbar .color-button[data-background-color="9"]{background-color:var(--background-color-9)}.editor-command-bar.toolbar .color-button[data-background-color="10"]{background-color:var(--background-color-10)}.editor-command-bar.toolbar .color-button[data-background-color="11"]{background-color:var(--background-color-11)}.editor-command-bar.toolbar .color-button[data-background-color="12"]{background-color:var(--background-color-12)}.editor-command-bar.toolbar .color-button[data-background-color="13"]{background-color:var(--background-color-13)}.editor-command-bar.toolbar .color-button[data-background-color="14"]{background-color:var(--background-color-14)}.tippy-content{white-space:pre-line}.editor-button{min-height:26px;min-width:46px;font-size:12px;font-weight:500;outline:none;background-color:var(--editor-button-bg-color, #338fe5);color:var(--editor-button-color, #fff);border:0;padding:4px 8px;border-radius:4px;margin-right:8px;cursor:pointer}.editor-button:hover{background-color:#5ca5ea}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}[data-theme=dropdown-list]{border-radius:4px;background:white;position:relative;max-width:calc(100vw - 24px);box-shadow:#0f0f0f0d 0 0 0 1px,#0f0f0f1a 0 3px 6px,#0f0f0f33 0 9px 24px;overflow:hidden}[data-theme=dropdown-list] .tippy-content{padding:0;background:white;color:#303030}[data-theme=dropdown-list] .tippy-content .editor-command-bar{max-height:50vh}[data-theme=dropdown-list] .filterable-list{min-width:100px;max-width:300px;display:flex;flex-direction:column;max-height:100%}[data-theme=dropdown-list] .filterable-list .filter{padding:8px}[data-theme=dropdown-list] .filterable-list .filter .filter-container{width:100%;font-size:14px;line-height:20px;padding:3px 6px;position:relative;border-radius:3px;box-shadow:#0f0f0f1a 0 0 0 1px inset;background:rgba(242,241,238,.6);cursor:text;height:28px;box-sizing:border-box;display:flex;align-items:center}[data-theme=dropdown-list] .filterable-list .filter .filter-container input.filter-input{border:none;outline:none;flex-grow:1;background:transparent}[data-theme=dropdown-list] .filterable-list .list{max-height:60vh;overflow-y:auto;padding:8px 0}[data-theme=dropdown-list] .filterable-list .list .list-item{user-select:none;transition:background 20ms ease-in 0s;cursor:pointer;width:calc(100% - 8px);margin-left:4px;margin-right:4px;border-radius:3px;height:24px;padding:4px 8px;display:flex;align-items:center;box-sizing:border-box}[data-theme=dropdown-list] .filterable-list .list .list-item .list-text{white-space:nowrap}[data-theme=dropdown-list] .filterable-list .list .list-item.selected{background-color:#eee}[data-theme=dropdown-list] .filterable-list .list .list-item.disabled{color:#c1c1c1}::placeholder{color:#bbb}.toast{font-family:Avenir,Helvetica,Arial,sans-serif;visibility:hidden;min-width:250px;margin-left:-125px;background-color:#333;color:#fff;text-align:center;border-radius:2px;padding:8px;position:fixed;z-index:1;left:50%;bottom:30px}.toast.show{visibility:visible;animation:toast_fade_in .5s,toast_fade_out .5s 2.5s}.toast.positioned.show{animation:toast_fade_in_positioned .5s,toast_fade_out_positioned .5s 2.5s}.toast.positioned{bottom:unset}@keyframes toast_fade_in{0%{bottom:0;opacity:0}to{bottom:30px;opacity:1}}@keyframes toast_fade_out{0%{bottom:30px;opacity:1}to{bottom:0;opacity:0}}@keyframes toast_fade_in_positioned{0%{opacity:0}to{opacity:1}}@keyframes toast_fade_out_positioned{0%{opacity:1}to{opacity:0}}div.tippy-box[data-theme=toolbar] .tippy-content,div.tippy-box[data-theme=menu] .tippy-content{padding:0}div.tippy-box[data-theme=menu] .tippy-content .editor-command-bar.menu{min-width:180px}div.tippy-box[data-theme=menu] .tippy-content .editor-command-bar-root,div.tippy-box[data-theme=toolbar] .tippy-content .editor-command-bar-root{box-shadow:0 0 1px #30303040,0 12px 24px #30303026}div.tippy-box button{outline:none}.editor-command-bar-root{display:flex;flex-direction:column;align-items:flex-start;background:#ffffff;border-radius:2px;max-height:50vh;overflow:auto}.editor-command-bar-root.scrollable-bar>.editor-command-bar.menu{overflow-y:scroll}.editor-command-bar{pointer-events:all;display:flex;box-sizing:border-box;--text-color: #606060;--primary-color: #338fe5;--selected-color: #f8f8f8;--separator-color: #e8e8e8;--warn-color: #fdf4f4}.editor-command-bar.fixed.toolbar{box-shadow:none}.editor-command-bar.menu{flex:1;width:100%;display:flex;flex-direction:column;align-items:flex-start;padding:5px 0}.editor-command-bar.menu .command-item.standard{color:var(--text-color);user-select:none;transition:background 20ms ease-in 0s;cursor:pointer;width:100%;height:32px;padding:6px 10px;display:flex;align-items:center;box-sizing:border-box}.editor-command-bar.menu .command-item.standard .menu-item-icon{align-items:center;height:24px;width:24px;margin-right:5px;margin-top:-2px;display:flex;flex-direction:column;justify-content:center}.editor-command-bar.menu .command-item.standard .menu-item-name{white-space:nowrap;flex-grow:1;display:flex;align-items:center}.editor-command-bar.menu .command-item.standard .item-subtext{color:#b2bccd}.editor-command-bar.menu .command-item.standard .menu-item-sub-indicator{display:flex;align-items:center;justify-content:center}.editor-command-bar.menu .command-item.standard .menu-item-sub-indicator svg{width:16px;height:16px}.editor-command-bar.menu .command-item.standard.disabled{color:#c7c7c7;cursor:not-allowed}.editor-command-bar.menu .command-item.separator{height:1px;margin:4px 0;background-color:var(--separator-color);width:100%}.editor-command-bar.menu .command-item.section{font-size:.8em;color:#ccc;padding:5px 5px 5px 10px}.editor-command-bar.menu .command-item.selected{background-color:var(--selected-color)}.editor-command-bar.menu .command-item.selected[data-id=delete]{color:#e52727;background-color:var(--warn-color)}.editor-command-bar.menu .command-item.selected.disabled{background-color:transparent}.editor-command-bar.menu .command-item.checked{color:var(--primary-color)}.editor-command-bar.menu .command-item.checked .menu-item-checked-icon{display:flex;align-items:center;justify-content:center;margin-left:10px}.editor-command-bar.menu .command-item.checked.disabled{color:#c7c7c7}.editor-command-bar.menu .command-item span.highlight{color:#e52727}.editor-command-bar.toolbar{display:flex;flex-direction:row;align-items:flex-start;padding:5px 10px;gap:5px;background:#ffffff;box-shadow:0 0 1px #30303033,0 8px 16px #30303026;border-radius:3px}.editor-command-bar.toolbar .command-item{background:transparent;border:none;display:flex;align-items:center;justify-content:center;color:var(--text-color);height:24px;padding:0;cursor:pointer;border-radius:3px;min-width:24px}.editor-command-bar.toolbar .command-item.selected:not(.disabled){background-color:var(--selected-color)}.editor-command-bar.toolbar .command-item.disabled{color:#c7c7c7}.editor-command-bar.toolbar .command-item.checked{color:var(--primary-color)}.editor-command-bar.toolbar .command-item.checked.disabled{color:#c7c7c7}.editor-command-bar.toolbar .command-item.separator{margin:auto 2px;height:20px;min-width:1px;width:1px;background-color:var(--separator-color);padding:0;pointer-events:none;cursor:default}.editor-command-bar.toolbar .command-item .toolbar-item-name-container,.editor-command-bar.toolbar .command-item .toolbar-item-icon-container{display:flex}.editor-command-bar.toolbar .command-item[data-dropdown=true]{padding-left:4px;padding-right:4px}.editor-command-bar.toolbar .command-item[data-dropdown=true] .toolbar-item-icon-container{width:24px;height:24px;align-items:center;justify-content:center}.editor-command-bar.toolbar .command-item .toolbar-item-dropdown-container{display:flex}.editor-command-bar.toolbar .command-item .toolbar-item-dropdown-container svg{transform:rotate(360deg);transition:transform .2s linear}.editor-command-bar.toolbar .command-item.active .toolbar-item-dropdown-container svg{transform:rotate(180deg)}.editor-command-bar.toolbar .editor-button+.editor-button{margin-left:5px}.editor-command-bar.footer{width:100%}.reference-hidden .tippy-box[data-reference-hidden]{opacity:0;pointer-events:none;transition:none}.tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px #9aa1b126,0 4px 80px -8px #24282f40,0 4px 4px -2px #5b5e6926;background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}.editor-dropdown{display:flex;align-items:center;border:1px solid #f0f0f0;border-radius:3px;font-size:14px;width:200px;height:30px}.editor-dropdown *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}.editor-dropdown .dropdown-text,.editor-dropdown .dropdown-input{flex-grow:1;padding:2px 8px;border:none;outline:none;background:transparent;font-size:14px;color:#333;min-width:0;flex-shrink:1}.editor-dropdown .dropdown-text{margin-right:4.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:100%;cursor:text;display:flex;align-items:center}.editor-dropdown:hover{border-color:#338fe5}.editor-dropdown.active{border-color:#338fe5;box-shadow:0 0 0 2px #338fe533}.editor-dropdown.active .dropdown-text{display:none}.editor-dropdown:not(.active) .dropdown-input{display:none}.editor-dropdown .dropdown-labels{display:flex;align-items:center;flex-shrink:0}.editor-dropdown .dropdown-labels .dropdown-label{color:#338fe5;background-color:#eaf3fc;height:20px;padding:0 5px;border-radius:3px;display:flex;align-items:center}.editor-dropdown .dropdown-labels .dropdown-label+.dropdown-label{margin-left:5px}.editor-dropdown .dropdown-clear-icon,.editor-dropdown .dropdown-icon{flex-shrink:0;width:16px;height:16px;margin-left:4px;display:flex;align-items:center;justify-content:center;cursor:pointer}.editor-dropdown .dropdown-clear-icon{color:#909090}.editor-dropdown.empty .dropdown-clear-icon,.editor-dropdown:not(:hover) .dropdown-clear-icon{display:none}.editor-dropdown.empty .dropdown-text{color:#909090}.editor-dropdown .dropdown-icon{margin-right:4px}.scale-border:after,.color-palette .palette-container-row .background-color-button.selected:after,.color-palette .palette-container-row .background-color-button:hover:after{content:"";outline:1px solid #d6e9fa;border-radius:3px;position:absolute;left:0;right:0;top:0;bottom:0;transform:scale(1.1)}.color-palette{display:flex;flex-direction:column;align-items:center;padding-top:5px;background-color:#fff;--active-color: #2872b7}.color-palette .bar-desc{box-sizing:border-box;width:100%;height:24px;padding-left:10px;margin-bottom:10px;line-height:24px;font-size:12px;font-weight:500;background:#F8F8F8;color:#909090}.color-palette .palette-container{padding:0 10px}.color-palette .background-color .palette-container-row:first-child{margin-bottom:5px}.color-palette .palette-container-row{display:flex;flex-direction:row;margin-bottom:20px}.color-palette .palette-container-row .color-button{width:24px;height:24px;border:none;outline:none;cursor:pointer;border-radius:3px;background-color:#fff;border:1px solid #f0f0f0;display:flex;margin:0;padding:0;align-items:center;justify-content:center}.color-palette .palette-container-row .color-button:hover{border:1px solid #d6e9fa}.color-palette .palette-container-row .color-button.selected{border:1px solid var(--primary-color)}.color-palette .palette-container-row .color-button[data-color-index="-1"]{color:var(--text-color)}.color-palette .palette-container-row .color-button[data-color-index="0"]{color:var(--color-0)}.color-palette .palette-container-row .color-button[data-color-index="1"]{color:var(--color-1)}.color-palette .palette-container-row .color-button[data-color-index="2"]{color:var(--color-2)}.color-palette .palette-container-row .color-button[data-color-index="3"]{color:var(--color-3)}.color-palette .palette-container-row .color-button[data-color-index="4"]{color:var(--color-4)}.color-palette .palette-container-row .color-button[data-color-index="5"]{color:var(--color-5)}.color-palette .palette-container-row .color-button[data-color-index="6"]{color:var(--color-6)}.color-palette .palette-container-row .background-color-button{width:24px;height:24px;border:none;outline:none;cursor:pointer;border-radius:3px;position:relative}.color-palette .palette-container-row .background-color-button.selected:after{outline:1px solid var(--primary-color)}.color-palette .palette-container-row .background-color-button[data-color-index="-1"]{position:relative;background-color:#fff;border:1px solid #e8e8e8}.color-palette .palette-container-row .background-color-button[data-color-index="-1"]:after{transform:scale(1.2)}.color-palette .palette-container-row .background-color-button[data-color-index="-1"]:before{content:"";position:absolute;width:1px;height:56px;top:2px;left:22px;background-color:#c7c7c7;transform:rotate(45deg) scale(.5);transform-origin:-1px -2px}.color-palette .palette-container-row .background-color-button[data-color-index="0"]{background-color:var(--background-color-0)}.color-palette .palette-container-row .background-color-button[data-color-index="1"]{background-color:var(--background-color-1)}.color-palette .palette-container-row .background-color-button[data-color-index="2"]{background-color:var(--background-color-2)}.color-palette .palette-container-row .background-color-button[data-color-index="3"]{background-color:var(--background-color-3)}.color-palette .palette-container-row .background-color-button[data-color-index="4"]{background-color:var(--background-color-4)}.color-palette .palette-container-row .background-color-button[data-color-index="5"]{background-color:var(--background-color-5)}.color-palette .palette-container-row .background-color-button[data-color-index="6"]{background-color:var(--background-color-6)}.color-palette .palette-container-row .background-color-button[data-color-index="7"]{background-color:var(--background-color-7)}.color-palette .palette-container-row .background-color-button[data-color-index="8"]{background-color:var(--background-color-8)}.color-palette .palette-container-row .background-color-button[data-color-index="9"]{background-color:var(--background-color-9)}.color-palette .palette-container-row .background-color-button[data-color-index="10"]{background-color:var(--background-color-10)}.color-palette .palette-container-row .background-color-button[data-color-index="11"]{background-color:var(--background-color-11)}.color-palette .palette-container-row .background-color-button[data-color-index="12"]{background-color:var(--background-color-12)}.color-palette .palette-container-row .background-color-button[data-color-index="13"]{background-color:var(--background-color-13)}.color-palette .palette-container-row .background-color-button[data-color-index="14"]{background-color:var(--background-color-14)}.color-palette .palette-container-row .color-button+.color-button{margin-left:5px}.color-palette .palette-container-row .background-color-button+.background-color-button{margin-left:5px}.color-palette .clear-button-container{box-sizing:border-box;width:100%;margin-bottom:5px;padding:0 10px}.color-palette .clear-button-container .clear-button{box-sizing:border-box;padding:3px 10px;width:100%;height:26px;background:#ffffff;color:#606060;border:1px solid #c7c7c7;border-radius:3px;cursor:pointer}.color-palette .clear-button-container .clear-button:hover{border-color:var(--primary-color);color:var(--primary-color)}.color-palette .clear-button-container .clear-button:active{border-color:var(--active-color);color:var(--active-color);background-color:#d6e9fa}.editor-input-wrap .editor-input-label{margin-top:8px;margin-bottom:8px;position:relative}.editor-input-wrap .editor-input-label.required:before{content:"*";color:#e82100;position:absolute;left:-8px;top:3px}.editor-input-wrap .editor-input-label .span{font-size:14px;line-height:1.4;font-weight:700;color:#303030}.editor-input-wrap .editor-input-container{display:flex;border:none;border-radius:4px;padding:4px;background-color:#fff}.editor-input-wrap .editor-input-container .editor-input{outline:none;border:1px solid #c7c7c7;border-radius:3px;padding:4px 10px;font-size:14px;line-height:1.4;color:#000;width:100%}.editor-input-wrap .editor-input-container .editor-input:focus{border-color:#338fe5;box-shadow:0 0 0 2px #338fe533}.editor-input-wrap.error .editor-input-container{border:1px solid #e82100}.editor-input-wrap.error .editor-input-container .editor-input{border:none;outline:none;box-shadow:unset}.editor-input-wrap.error .editor-input-error{margin-top:8px;color:red;display:block}.editor-input-wrap .editor-input-error{display:none}div.scroll-container-root{position:relative}div.scroll-container-root>div.scroll-container{position:relative;overflow-x:auto;overflow-y:hidden;box-sizing:border-box;line-height:0px}div.scroll-container-root>div.scroll-container>.scroll-area{position:relative;display:inline-block;overflow:hidden;line-height:normal}div.scroll-container-root>div.scroll-container{scrollbar-width:none}div.scroll-container-root>div.scroll-container::-webkit-scrollbar{height:0;opacity:0}div.scroll-container-root>div.container-scroll-tool .container-border-shadow{position:absolute;top:0;opacity:0;width:0;border:none;pointer-events:none;transition:opacity 50ms ease-in;z-index:1}div.scroll-container-root>div.container-scroll-tool .container-right-border-shadow{right:0;background:linear-gradient(90deg,rgba(31,35,41,0) 0,rgba(31,35,41,.1));border-right:0px solid #dee0e3}div.scroll-container-root>div.container-scroll-tool .container-left-border-shadow{left:0;background:linear-gradient(270deg,rgba(31,35,41,0) 0,rgba(31,35,41,.1));border-left:0px solid #dee0e3}div.scroll-container-root>div.container-scroll-tool .container-border-shadow.active{width:8px;opacity:1}div.scroll-container-root>div.container-scroll-tool .container-right-border-shadow.active{border-right-width:1px}div.scroll-container-root>div.container-scroll-tool .container-left-border-shadow.active{border-left-width:1px}div.scroll-container-root>div.container-scroll-tool .container-scrollbar{position:absolute;left:0;z-index:1000;visibility:visible;overflow-x:auto;overflow-y:hidden;cursor:auto}div.scroll-container-root>div.container-scroll-tool .container-scrollbar div{height:1px}div.scroll-container-root>div.container-scroll-tool div.container-scrollbar.fixed{position:fixed}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar{opacity:.6;transition:opacity .1s ease-in-out}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar::-webkit-scrollbar{height:8px}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar::-webkit-scrollbar-track{background-color:transparent}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar::-webkit-scrollbar-thumb{background-color:#646a73cc;border-radius:8px}div.scroll-container-root.mac>div.container-scroll-tool .container-scrollbar::-webkit-scrollbar-button{display:none}[data-tippy-root]{font-family:Avenir,Helvetica,Arial,sans-serif}[data-command-bar-id=editor-toolbar]{padding-top:10px;padding-bottom:5px}[data-command-bar-id=editor-toolbar] .command-item[data-id=link-text]{height:32px;width:unset}[data-command-bar-id=editor-toolbar] .command-item[data-id=link-text].selected:hover{background-color:transparent}[data-command-bar-id=editor-toolbar] .command-item[data-id=link-text] .link-href-button{max-width:275px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#303030;text-decoration:none}[data-command-bar-id=editor-toolbar] .command-item[data-id=link-text] .link-href-button:hover{text-decoration:underline}[data-command-bar-id=editor-toolbar] .command-item[data-id=edit-link],[data-command-bar-id=editor-toolbar] .command-item[data-id=remove-link]{height:32px}[data-command-bar-id=editor-toolbar] .command-item[data-id=edit-link] svg,[data-command-bar-id=editor-toolbar] .command-item[data-id=remove-link] svg{stroke-width:2}[data-command-bar-id=editor-toolbar] .command-item[data-id=edit-link].selected:hover,[data-command-bar-id=editor-toolbar] .command-item[data-id=remove-link].selected:hover{background-color:transparent;color:#338fe5}[data-command-bar-id=quick-menu],[data-command-bar-id=empty-block-menu]{box-sizing:border-box;width:240px}[data-command-bar-id=quick-menu] .command-item.menu-item,[data-command-bar-id=empty-block-menu] .command-item.menu-item{width:100%;cursor:pointer}[data-command-bar-id=quick-menu] .command-item.menu-item.section,[data-command-bar-id=empty-block-menu] .command-item.menu-item.section{height:24px;padding:0 10px;font-weight:500;font-size:12px;line-height:24px;color:#909090;background:#f8f8f8;min-height:initial;box-sizing:border-box;margin:5px 0}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item{color:#303030;display:flex;width:100%;padding:6px 10px}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-icon-container,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-icon-container{display:flex;align-items:center;justify-content:center;padding-right:6px}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-icon-container .quick-menu-item-icon,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-icon-container .quick-menu-item-icon{width:16px;height:16px;display:flex;align-items:center;justify-content:center}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content{flex-grow:1;display:flex;flex-direction:column;justify-content:center}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1{display:flex;align-items:center}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .item-name,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .item-name{flex-grow:1;font-size:14px;line-height:22px;color:#303030}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .item-subtext,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .item-subtext{color:#b2bccd}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .quick-menu-item-submenu-icon,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-1 .quick-menu-item-submenu-icon{display:flex;align-items:center;margin-left:12px}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-2,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-2{margin-top:5px}[data-command-bar-id=quick-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-2 .item-markdown,[data-command-bar-id=empty-block-menu] .command-item.menu-item .quick-menu-item .quick-menu-item-content .item-line-2 .item-markdown{color:#b2bccd}[data-command-bar-id=quick-menu] .command-item.menu-item[data-id=placeholder] .quick-menu-item-icon-container,[data-command-bar-id=empty-block-menu] .command-item.menu-item[data-id=placeholder] .quick-menu-item-icon-container{display:none}[data-command-bar-id=quick-menu] .command-item.menu-item[data-id=placeholder] .item-name.text,[data-command-bar-id=empty-block-menu] .command-item.menu-item[data-id=placeholder] .item-name.text{color:#909090!important;padding:5px 0}[data-command-bar-id=block-menu]{width:240px}[data-command-bar-id=quick-menu] div.command-item>div.menu-item-name{color:#303030}[data-command-bar-id=quick-menu] div.command-item>div.menu-item-icon{color:#606060}[data-command-bar-id=quick-menu] div.command-item.section:first-of-type{margin-top:0}div.tippy-box[data-theme=editor-tooltip]{background-color:#303030;opacity:.8;font-size:12px;border-radius:3px}div.tippy-box[data-theme=editor-tooltip] .editor-tooltip-desc{display:block;margin-top:2px;color:#fff;opacity:.5}div.tippy-box[data-theme=editor-tooltip]>.tippy-arrow:before{transform:scale(.8)}div.tippy-box[data-theme=editor-tooltip]>.tippy-content{padding:4px 10px;text-align:justify}:root div.tippy-box[data-theme=editor-tooltip]>.tippy-content{font-weight:500}:root div.tippy-box[data-theme=editor-tooltip]>.tippy-content>div>span:nth-of-type(2){font-weight:400}.link-popup-content{padding:10px 7px}.link-popup-content .link-popup-gap{margin-top:16px}.link-popup-content .editor-input-container{padding:4px 0}.link-popup-content .editor-input-container .editor-input{width:330px;line-height:1.5}.link-popup-content .editor-input-wrap .editor-input-label{margin-bottom:4px}.link-popup-content .link-popup-footer{margin:10px 0 5px;text-align:right}.link-popup-content .link-popup-footer button{min-width:58px;min-height:30px;padding:0 10px;border-radius:3px;background-color:#eef3f8;font-size:14px;color:#fff;cursor:pointer;outline:none}.link-popup-content .link-popup-footer .cancel-button{margin:0 8px 0 0;background-color:transparent;border:1px solid #c7c7c7;color:#606060}.link-popup-content .link-popup-footer .cancel-button:hover{color:#303030;background:#eee;border:1px solid #c7c7c7}.link-popup-content .link-popup-footer .submit-button{outline:none;background-color:#338fe5;color:#fff;border:0}.link-popup-content .link-popup-footer .submit-button:disabled{color:#fff;background-color:#338fe580}.link-popup-content .link-popup-footer .submit-button:disabled:hover{background-color:#338fe580}.link-popup-content .link-popup-footer .submit-button:hover{background-color:#5ca5ea}:root{--mindmap-bg-color: #f0f2f4}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block.focused [data-type=block-tools] .editor-mindmap-svg{border-radius:3px;outline:1px solid #338FE5}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block.editor-in-mindmap-first{height:600px;min-width:150px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-content]{margin-right:24px;transition:background-color .25s linear}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-tools] .editor-mindmap-svg{position:absolute;left:0;top:0;right:0;bottom:0;z-index:2;font-size:14px;background-color:var(--mindmap-bg-color)}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-tools] .mindmap-toolbar{position:absolute;top:8px;right:8px;height:24px;z-index:3}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-tools] .mindmap-toolbar .editor-button.mindmap-button{background-color:transparent;outline:none;border:none;fill:none;color:#c1c1c1;cursor:pointer;min-width:initial;margin-right:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-tools] .mindmap-toolbar .editor-button.mindmap-button:hover{color:#5587f0}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block.to-mindmap-highlight [data-type=block-content],.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block.to-mindmap-highlight:hover [data-type=block-content]{background-color:#eaf3fc}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-to-mindmap-wrap,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .mention-button-wrap{position:absolute;right:0;top:2px;display:flex;align-items:center;height:calc(var(--font-size) * var(--line-height))}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=list-to-mindmap],.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=mention-button]{flex-grow:0;flex-shrink:0;width:24px;height:24px;min-width:24px;min-height:24px;padding:0;border:0;outline:0;display:flex;align-items:center;justify-content:end;background-color:transparent;color:#07142a}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=list-to-mindmap] svg,.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=mention-button] svg{width:16px;height:16px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button[data-button-id=list-block-mention]:hover>svg{cursor:initial;background-color:#eee}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block button+button[data-button-id=list-block-mention]{right:20px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="1"]{padding-left:24px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="1"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="2"]{padding-left:48px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="2"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="3"]{padding-left:72px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="3"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="4"]{padding-left:96px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="4"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="5"]{padding-left:120px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="5"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="6"]{padding-left:144px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="6"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="7"]{padding-left:168px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="7"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="8"]{padding-left:192px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="8"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="9"]{padding-left:216px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="9"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="10"]{padding-left:240px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="10"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="11"]{padding-left:264px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="11"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="12"]{padding-left:288px}div.editor-root div.editor-content div[data-block-type=text][block-padding-level="12"]>div[data-type=block-content]{position:relative}div.editor-root div.editor-content div[data-block-type=list][data-list-level="1"]{padding-left:0}div.editor-root div.editor-content div[data-block-type=list][data-list-level="2"]{padding-left:24px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="3"]{padding-left:48px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="4"]{padding-left:72px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="5"]{padding-left:96px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="6"]{padding-left:120px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="7"]{padding-left:144px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="8"]{padding-left:168px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="9"]{padding-left:192px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="10"]{padding-left:216px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="11"]{padding-left:240px}div.editor-root div.editor-content div[data-block-type=list][data-list-level="12"]{padding-left:264px}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="1"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="2"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="3"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="4"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="5"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="6"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="7"]>div.list-container>button.list-marker{font-weight:700}div.editor-root div.editor-content div[data-block-type=list][data-style-heading="8"]>div.list-container>button.list-marker{font-weight:700}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block+div[data-type=editor-block].list-block{margin-top:0}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block{display:flex;padding-bottom:2px;padding-top:2px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=text-only] .list-container{pointer-events:none}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=checked] div[data-type=block-content] span.text{color:#c7c7c7}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-list-type=unordered] .list-container .list-marker{font-family:PingFangSC-Regular,PingFang SC;justify-content:space-around}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block [data-type=block-content]{position:relative;flex-grow:1;padding-left:2px;margin-right:29px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-container{display:flex;min-width:24px;align-items:center;justify-content:center;flex-shrink:0;border-radius:3px;height:calc(var(--font-size) * var(--line-height))}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block .list-container .list-marker{min-width:16px;border:none;background-color:transparent;outline:none;display:flex;align-items:center;justify-content:flex-end;padding:0;overflow:visible;color:var(--primary-color);font-size:var(--font-size)}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block div[data-type=block-tools] .block-helper{top:2px}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-style-align=center]{justify-content:center}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-style-align=center]>div[data-type=block-content]{flex-grow:initial}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-style-align=right]{justify-content:flex-end}.editor-root [data-type=editor-container].root div[data-type=editor-block].list-block[data-style-align=right]>div[data-type=block-content]{flex-grow:initial}.editor-root.readonly button[data-button-id=mindmap-close]{display:none}.editor-root:not(.readonly) div[data-type=editor-block].list-block.active,.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover{background-color:#f8f8f8}.editor-root:not(.readonly) div[data-type=editor-block].list-block.active .list-container,.editor-root:not(.readonly) div[data-type=editor-block].list-block.hover .list-container{cursor:pointer}.editor-root:not(.readonly) div[data-type=editor-block].list-block .list-container:hover .list-marker{cursor:pointer}.editor-root:not(.readonly) div[data-type=editor-block].list-block:not([data-list-type=unchecked]):not([data-list-type=checked]):not([data-list-type=unordered]) .list-container:hover{background-color:var(--background-selection)}.editor-root:not(.readonly) div[data-type=editor-block].list-block[data-list-type=unordered] .list-container:hover .list-marker{cursor:initial}.editor-root:not(.readonly) div[data-type=editor-block].list-block[data-list-type=unchecked] .list-container:hover .list-marker svg>*{fill:var(--background-selection)}[data-tippy-root] .customize-start-panel{max-width:350px;padding:0 16px;color:#333;font-size:14px;line-height:21px;user-select:none;background-color:#fff!important}[data-tippy-root] .customize-start-panel-input{width:64px;margin:0 8px;border:1px solid #cfd6e1;height:24px;border-radius:3px;padding:1px 0 1px 8px;outline:none;color:inherit;background-color:#fff}[data-tippy-root] .customize-start-panel-button{min-width:40px;font-size:12px;min-height:30px;margin:0 8px 0 0;background-color:var(--primary-color);color:#fff;outline:none;border:none;padding:4px 8px;border-radius:4px;cursor:pointer}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block].list-block [data-type=block-content][data-content-placeholder]:before{left:2px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.math-box{display:inline-flex}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content]>span.math-box .mathjax-tex-text.mathjax-error{color:var(--color-0)}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] img.mathjax{max-width:100%}div.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-embed-type=math]>div[data-type=block-content]{align-items:center;justify-content:center;min-height:40px}div.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-embed-type=math]>div[data-type=block-content] img{margin:auto;padding:8px}.mathjax-editor-textarea{border:none;outline:none;width:400px;height:128px}.editor-text-button{border:0;color:var(--text-button-color, #c1c1c1);background-color:var(--text-button-bg-color, transparent);cursor:pointer;border-radius:var(--editor-border-radius, 3px);font-size:14px;padding:1px 6px;display:flex;align-items:center}.editor-text-button:hover{color:var(--text-button-color-hover, #5587F0);background-color:var(--text-button-bg-color-hover, transparent)}div[data-type=editor-block].table-block{--table-bar-width: 6px;--table-bar-left: -6px;--table-bar-top: -6px}div[data-type=editor-block].table-block>div[data-type=block-content]{position:relative;left:-26px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-resize-gripper,div[data-type=editor-block].table-block div[data-type=table-tools] .table-resize-gripper{position:absolute;background-color:transparent;cursor:col-resize;padding:0 2px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-resize-gripper>.table-resize-gripper-indicator,div[data-type=editor-block].table-block div[data-type=table-tools] .table-resize-gripper>.table-resize-gripper-indicator{pointer-events:none;background-color:var(--primary-color);width:100%;height:100%}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container{position:absolute;background-color:transparent;z-index:10}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container.top,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container.top{left:0;top:var(--table-bar-top);right:0;height:var(--table-bar-width);flex-direction:row}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container.left,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container.left{top:20px;left:var(--table-bar-left);width:var(--table-bar-width);bottom:0;flex-direction:column}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar{position:absolute;left:0;top:0;right:0;bottom:0;cursor:pointer;display:flex}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar.left,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar.left{flex-direction:column}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell{background-color:#e8e8e8;position:relative;flex-grow:0;flex-shrink:0}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.corner,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.corner{width:var(--table-bar-width);height:var(--table-bar-width)}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.top,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.top{height:100%}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell:hover,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell:hover{background-color:#dedede}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.selected,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.selected{background-color:var(--primary-color)}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.danger,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .table-border-bar-cell.danger{background-color:#e52727}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root{position:relative}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root.top,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root.top{max-width:0;width:0;overflow:visible}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root.top:last-child,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root.top:last-child{margin-left:-2px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root.left,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root.left{max-height:0;height:0;overflow:visible}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root.left:last-child,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root.left:last-child{margin-top:-2px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container{position:absolute;width:26px;height:26px;display:flex;align-items:center;justify-content:center;z-index:1}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container.top,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container.top{right:-14px;top:-22px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container.left,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container.left{transform:rotate(270deg);left:-22px;bottom:-14px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container .insert-indicator,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container .insert-indicator{position:absolute;width:3px;height:3px;background:#e8e8e8;border-radius:50%;margin-top:6px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-indicator,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-indicator{display:none}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-column-button,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-column-button{display:unset}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-column-button span.icon,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .insert-column-button span.icon{margin-top:2px}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .drop-marker,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container:hover .drop-marker{opacity:1;transform:scale(.7)}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker{width:26px;height:26px;border-radius:3px;background:var(--primary-color);cursor:pointer;opacity:0;transform:scale(.4);transition:transform .2s ease-in,opacity .2s ease-in}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker:after,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker:after{content:"";display:block;width:10px;height:1px;background-color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}div[data-type=editor-block].table-block div[data-type=block-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker:before,div[data-type=editor-block].table-block div[data-type=table-tools] .table-border-bar-container .table-border-bar .button-root .button-container .drop-marker:before{content:"";display:block;width:1px;height:10px;background-color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}div[data-type=editor-block].table-block div[data-type=block-tools] .editor-table-chart,div[data-type=editor-block].table-block div[data-type=table-tools] .editor-table-chart{padding-top:16px}div[data-type=editor-block].table-block div[data-type=table-content]{position:relative}div[data-type=editor-block].table-block div[data-type=table-content]>.error{color:red;border:1px solid red;padding:8px}div[data-type=editor-block].table-block div[data-type=table-content]>table{border-collapse:collapse;width:max-content;border-spacing:0}div[data-type=editor-block].table-block div[data-type=table-content]>table colgroup col{min-width:40px}div[data-type=editor-block].table-block div[data-type=table-content]>table,div[data-type=editor-block].table-block div[data-type=table-content]>table td,div[data-type=editor-block].table-block div[data-type=table-content]>table th{border:1px solid #c7c7c7;background-color:transparent}div[data-type=editor-block].table-block div[data-type=table-content]>table tr td.danger{background-color:#fce9e9!important}div[data-type=editor-block].table-block div[data-type=table-content]>table td{min-width:40px;padding:0;position:relative}div[data-type=editor-block].table-block div[data-type=table-content]>table td .table-cell-menu-btn{display:none;position:absolute;right:2px;top:2px;padding:0;width:16px;height:16px;border:none;border-radius:3px;background:#eaf3fc;color:#338fe5;cursor:pointer;transform:rotate(0);transition:transform .2s}div[data-type=editor-block].table-block div[data-type=table-content]>table td .table-cell-menu-btn.active{transform:rotate(180deg)}div[data-type=editor-block].table-block div[data-type=table-content]>table td>div[data-type=editor-container]>.container-blocks>*+*{margin-top:5px}div[data-type=editor-block].table-block div[data-type=table-content] .child{padding:8px}div[data-type=editor-block].table-block div[data-type=table-content] .child div[data-type=editor-block].table-block>div[data-type=block-content]{pointer-events:none}div[data-type=editor-block].table-block div[data-type=table-content] .child div[data-type=editor-block].table-block>div[data-type=block-content] div[data-type=table-content]{pointer-events:auto}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-0{background-color:var(--background-color-0)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-1{background-color:var(--background-color-1)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-2{background-color:var(--background-color-2)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-3{background-color:var(--background-color-3)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-4{background-color:var(--background-color-4)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-5{background-color:var(--background-color-5)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-6{background-color:var(--background-color-6)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-7{background-color:var(--background-color-7)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-8{background-color:var(--background-color-8)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-9{background-color:var(--background-color-9)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-10{background-color:var(--background-color-10)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-11{background-color:var(--background-color-11)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-12{background-color:var(--background-color-12)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-13{background-color:var(--background-color-13)}div[data-type=editor-block].table-block div[data-type=table-content]>table td.style-bg-color-14{background-color:var(--background-color-14)}div[data-type=editor-block].table-block div[data-type=table-content]>table.row-title>tbody>tr:first-child>td,div[data-type=editor-block].table-block div[data-type=table-content]>table.col-title td.col-title-item{background-color:#f8f8f8}div[data-type=editor-block].table-block div[data-type=table-content]>table.stripe:not(.row-title)>tbody>tr:nth-of-type(2n),div[data-type=editor-block].table-block div[data-type=table-content]>table.stripe.row-title>tbody>tr:nth-of-type(2n + 1){background-color:#f5f8fb}div[data-type=editor-block].table-block div[data-type=table-content]>table.no-border,div[data-type=editor-block].table-block div[data-type=table-content]>.no-border>tbody>tr>td{border:1px dashed;border-color:transparent}div[data-type=editor-block].table-block.focused div[data-type=table-content]>table.no-border,div[data-type=editor-block].table-block.focused div[data-type=table-content]>table.no-border>tbody>tr>td,div[data-type=editor-block].table-block.child-focused div[data-type=table-content]>table.no-border,div[data-type=editor-block].table-block.child-focused div[data-type=table-content]>table.no-border>tbody>tr>td{border-color:#b9bfc8}div[data-type=editor-block].table-block.full-selected>div[data-type=block-content]>.scroll-container-root>.scroll-container>.scroll-area>div[data-type=table-content]>table{background-color:var(--background-selection)}div[data-type=editor-block].table-block div[data-type=table-content]>table tbody tr td.selected,div[data-type=editor-block].table-block div[data-type=table-content]>table.row-title tbody tr td.selected,div[data-type=editor-block].table-block div[data-type=table-content]>table.col-title tbody tr td.selected{background-color:var(--background-selection)}div[data-type=editor-block].table-block div[data-type=table-content]>table td div[data-type=editor-block].table-block div[data-type=table-content]>table{max-width:100%}.command-item.menu-item .table-creator{background-color:#fff;padding:0 5px}.command-item.menu-item .table-creator .table-creator-row{display:flex}.command-item.menu-item .table-creator .table-creator-row .table-creator-cell{width:16px;height:16px;margin:3px;border:solid 1px #ddd}.command-item.menu-item .table-creator .table-creator-row .table-creator-cell.active{background-color:#99c7f2}div.editor-root div.editor-content div[data-type=editor-container].root div[data-type=editor-block].table-block{margin-top:0}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color]{width:100%}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .bar-desc{display:none}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item{box-sizing:border-box;width:100%;height:32px;padding:5px 10px;display:flex;align-items:center;justify-content:space-between;color:var(--text-color)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-sub-indicator{display:flex;align-items:center;margin-left:5px}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-sub-indicator svg{height:16px;width:16px}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button{width:24px;height:24px;border:none;outline:none;cursor:pointer;border-radius:3px;position:relative;margin-left:auto}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="-1"]{position:relative;background-color:#fff;border:1px solid #e8e8e8}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="-1"]:after{transform:scale(1.2)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="-1"]:before{content:"";position:absolute;width:1px;height:56px;top:2px;left:22px;background-color:#c7c7c7;transform:rotate(45deg) scale(.5);transform-origin:-1px -2px}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="0"]{background-color:var(--background-color-0)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="1"]{background-color:var(--background-color-1)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="2"]{background-color:var(--background-color-2)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="3"]{background-color:var(--background-color-3)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="4"]{background-color:var(--background-color-4)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="5"]{background-color:var(--background-color-5)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="6"]{background-color:var(--background-color-6)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="7"]{background-color:var(--background-color-7)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="8"]{background-color:var(--background-color-8)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="9"]{background-color:var(--background-color-9)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="10"]{background-color:var(--background-color-10)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="11"]{background-color:var(--background-color-11)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="12"]{background-color:var(--background-color-12)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="13"]{background-color:var(--background-color-13)}div.tippy-box[data-theme=menu] .tippy-content div[data-id=cell-background-color] .cell-background-color-item .item-button[data-color-index="14"]{background-color:var(--background-color-14)}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table]{background-color:transparent}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table] table.row-title>tbody>tr:first-child>td,div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table] table.col-title td.col-title-item{background-color:transparent}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table] table.stripe:not(.row-title)>tbody>tr:nth-of-type(2n),div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-block-type=table] table.stripe.row-title>tbody>tr:nth-of-type(2n + 1){background-color:transparent}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment{box-shadow:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment table,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment table{box-shadow:0 2px #f8e6ab}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment table table,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment table table{box-shadow:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment.active,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment.active{outline:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment.active table,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment.active table{border-bottom:none;outline:4px solid #f8e6ab}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-block-type=table].comment.active table table,div.editor-root div.editor-content div[data-type=editor-container].child div[data-type=editor-block][data-block-type=table].comment.active table table{box-shadow:none;outline:none}div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-self>[data-type=block-content]:after,div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-others>[data-type=block-content]:after{display:none}div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-self>[data-type=block-content] div[data-type=table-content],div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-others>[data-type=block-content] div[data-type=table-content]{position:relative}div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-self>[data-type=block-content] div[data-type=table-content]:after,div.editor-root:not(.readonly) div[data-type=editor-block].table-block.locked-by-others>[data-type=block-content] div[data-type=table-content]:after{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;z-index:1;background-color:#303030;opacity:.1}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-align=center] [data-type=block-content][data-content-placeholder]:before{justify-content:center}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block][data-style-align=right] [data-type=block-content][data-content-placeholder]:before{justify-content:right}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block] [data-type=block-content][data-title-placeholder]:before{position:absolute;left:0;top:0;right:0;bottom:0;content:attr(data-title-placeholder);color:#c7c7c7}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block] [data-type=block-content][data-content-placeholder]:before{position:absolute;left:0;top:0;right:0;bottom:0;content:attr(data-content-placeholder);color:#c7c7c7;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center}div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container] div[data-type=editor-block] [data-type=block-tools] .block-placeholder-container{position:absolute;left:0;top:0;right:0}div.editor-root.readonly div.editor-content div[data-type=editor-container] div[data-type=editor-block] [data-type=block-content][data-title-placeholder]:before{position:absolute;left:0;top:0;right:0;bottom:0;content:attr(data-title-placeholder-readonly);color:#c7c7c7}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block{min-width:360px;counter-reset:code-line}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.full-selected{background-color:var(--background-selection)}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.editing-language div[data-type=block-tools] .code-block-header,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.child-focused div[data-type=block-tools] .code-block-header,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:hover div[data-type=block-tools] .code-block-header{opacity:1}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.wrap>div[data-type=block-tools] .code-block-header button[data-id=wrap] *{color:var(--primary-color)}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:not(.wrap)>div[data-type=block-content] div[data-type=editor-container].child{overflow-x:auto}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:not(.wrap)>div[data-type=block-content] div[data-type=editor-container].child div[data-type=block-content]{word-break:keep-all;overflow:visible;white-space:pre}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:not(.wrap)>div[data-type=block-content] div[data-type=editor-container].child div[data-type=block-content]>span.text,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block:not(.wrap)>div[data-type=block-content] div[data-type=editor-container].child div[data-type=block-content]>span.inputting-insertion{white-space:pre}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header{opacity:0;transition:opacity .3s ease-in 0s;position:absolute;top:0;display:flex;padding-left:16px;padding-right:4px;align-items:center;left:0;right:0;height:32px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .language-select{font-size:14px;color:#999;cursor:pointer;display:flex;align-items:center}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .language-select .arrow-icon{width:16px;height:16px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-spacer{flex-grow:1}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button{display:flex;justify-content:center;align-items:center;border:none;border-radius:2px;margin-left:4px;padding:0;background:none;outline:none;color:#c1c1c1}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button:not(.disabled){cursor:pointer}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button:not(.disabled):hover{color:#5587f0}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button.disabled{cursor:not-allowed}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button[data-id=caption]{margin-right:4px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button .button-icon{height:24px;display:flex;align-items:center;justify-content:center}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button .button-icon>svg{width:24px;height:24px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-tools] .code-block-header .code-header-button .button-label{margin-left:4px;font-size:14px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block.full-selected>div[data-type=block-content]>div.editor-code-root>div.code-text-root{background-color:unset}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root{background-color:var(--background-code)}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container]{padding-left:32px;padding-top:32px;padding-bottom:24px;border-radius:4px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container].selected{background-color:var(--background-selection)}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] *{font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:14px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block+div.text-block{margin-top:4px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block:before{content:counter(code-line);counter-increment:code-line;position:absolute;left:-48px;top:10px;z-index:1;margin-top:-4px;display:block;width:48px;padding-right:8px;text-align:right;color:#aaa;box-sizing:border-box;font-size:12px;font-weight:400;line-height:12px;letter-spacing:0;white-space:nowrap;opacity:1}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-comment,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-prolog,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-doctype,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-cdata{color:#708090}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-punctuation{color:#999}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-namespace{opacity:.7}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-property,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-tag,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-boolean,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-number,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-constant,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-symbol,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-deleted{color:#905}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-selector,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-attr-name,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-string,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-char,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-builtin,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-inserted{color:#690}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-operator,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-entity,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-url,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-string{color:#9a6e3a}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-atrule,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-attr-value,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-keyword{color:#07a}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-function,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-class-name{color:#dd4a68}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-regex,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-important,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-variable{color:#e90}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-important,.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-bold{font-weight:700}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-italic{font-style:italic}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-text-root>div.child[data-type=editor-container] div.text-block>div[data-type=block-content] span.style-code-entity{cursor:help}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-caption-root{padding:8px}.editor-root [data-type=editor-container].root div[data-type=editor-block].code-block>div[data-type=block-content]>div.editor-code-root>div.code-caption-root *{color:#aaa}div.editor-root.readonly .container-blocks div[data-block-type=code] div[data-type=block-tools] .code-block-header .code-header-button[data-id=wrap],div.editor-root.readonly .container-blocks div[data-block-type=code] div[data-type=block-tools] .code-block-header .code-header-button[data-id=caption]{display:none}div.editor-root.readonly .container-blocks div[data-block-type=code] div[data-type=block-tools] .code-block-header .language-select{cursor:default!important}div.editor-root.readonly .container-blocks div[data-block-type=code] div[data-type=block-tools] .code-block-header .language-select .arrow-icon{display:none}div.editor-root div.editor-content div[data-type=editor-container].root.select-all div[data-type=block-content]>div.editor-code-root>div.code-text-root{background-color:unset}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer{position:absolute;background-color:transparent;border:1px solid #338FE5;pointer-events:none;z-index:1;display:none}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer.active{display:block}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper{position:absolute;width:16px;height:16px;border:2px solid white;background-color:#338fe5;border-radius:50%;pointer-events:all}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.bottom{left:calc(50% - 8px);bottom:-8px;cursor:ns-resize}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.top-left{left:-8px;top:-8px;cursor:nwse-resize}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.top-right{right:-8px;top:-8px;cursor:nesw-resize}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.bottom-left{left:-8px;bottom:-8px;cursor:nesw-resize}div.editor-root div.editor-content div[data-type=editor-block] [data-type=block-tools] .block-resizer .resize-gripper.bottom-right{right:-8px;bottom:-8px;cursor:nwse-resize}div.editor-root.readonly div.editor-content div[data-type=editor-block]>[data-type=block-tools] .block-resizer{display:none}.before-content,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected [data-type=block-content] .images .image-container.active:before,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected:not(.focused) [data-type=block-content] .images .image-container:before{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;z-index:1;background-color:#338fe5;opacity:.1}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image]{display:flex}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].block-hidden{display:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image][data-style-align=left]{justify-content:flex-start}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image][data-style-align=center]{justify-content:center}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image][data-style-align=right]{justify-content:flex-end}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].hover [data-type=block-content]{outline:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].hover [data-type=block-content] .images .image-container.empty:hover,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].hover [data-type=block-content] .images .image-container.error:hover{outline:1px solid #338FE5}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected [data-type=block-content]:before{display:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected [data-type=block-content]{outline:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].selected [data-type=block-content] .images .image-container.active .image-warning{opacity:0;z-index:-1}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].multi [data-type=block-tools] .block-resizer{display:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image]:not(.multi) [data-type=block-content] .images.empty{min-height:400px}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content]{cursor:default}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images{width:100%;display:flex;align-items:flex-start}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter{width:10px;flex-grow:0;flex-shrink:0;padding:0 4px;cursor:col-resize;height:100%}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter .image-splitter-indicator{width:100%;height:100%}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter:active .image-splitter-indicator,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-splitter:hover .image-splitter-indicator{background-color:#d9d9d9}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container{position:relative;flex:1;background-color:#f8f8f8;display:flex;min-height:inherit;overflow:hidden}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container img{max-width:100%;width:100%;height:auto}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.empty .upload-image-icon{display:flex;color:#c7c7c7}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.error{height:100%;outline:1px solid #DEDEDE;border-radius:3px}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.error img{display:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;z-index:1}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-icon,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-icon{display:flex;color:#c7c7c7}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message{display:flex;flex-direction:column;align-items:center;overflow:hidden}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-1,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-1{margin-top:10px;font-size:18px;font-weight:500;color:#303030;height:26px;vertical-align:middle;line-height:26px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-2,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-3,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-2,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-3{font-size:14px;color:#606060;vertical-align:middle;height:22px;line-height:22px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-2 a,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .error-message .line-3 a,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-2 a,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .upload-error .error-message .line-3 a{text-decoration:none;color:#338fe5}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .line-3 a{display:inline-flex;align-items:center;text-decoration:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .load-error .line-3 a:after{content:" ";display:inline-block;width:16px;height:16px;margin-left:5px;background-image:url("data:image/svg+xml,%3Csvg width='17' height='16' viewBox='0 0 17 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 2H3.5C2.94772 2 2.5 2.44772 2.5 3V13C2.5 13.5523 2.94772 14 3.5 14H13.5C14.0523 14 14.5 13.5523 14.5 13V10' stroke='%23338FE5'/%3E%3Cpath d='M14.5 2L9 7.5' stroke='%23338FE5'/%3E%3Cpath d='M8.5 2H14.5V8' stroke='%23338FE5'/%3E%3C/svg%3E%0A")}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .uploading-progress-mask{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#303030;opacity:.8;display:flex;align-items:center;justify-content:center}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .uploading-progress-mask .uploading-progress-bar{width:75%;height:6px;border-radius:3px;display:flex;background-color:#fff}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .uploading-progress-mask .uploading-progress-bar .uploading-progress-bar-value{background-color:#338fe5}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container .image-warning{position:absolute;right:5px;top:5px;color:#fff;background-color:#333;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:3px;z-index:2;transition:opacity linear .2s;opacity:.7}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.empty{display:flex;flex-direction:column;align-items:center;outline:1px solid #DEDEDE;border-radius:3px;justify-content:center;height:100%}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-content] .images .image-container.empty svg{width:48px;height:48px}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-tools] .drag-container{display:flex;box-sizing:content-box;pointer-events:none;position:fixed;z-index:100;background-color:#fff;border:1px solid #338FE5}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image] [data-type=block-tools] .drag-container .drag-target{width:100%}.editor-root[readonly=true] .image-splitter{visibility:hidden}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].comment{box-shadow:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].comment [data-type=block-content]{box-shadow:0 2px #f8e6ab}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].comment.active{outline:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=image].comment.active [data-type=block-content]{box-shadow:none;outline:4px solid #f8e6ab}.editor-root .editor-content div[data-type=editor-block].dragging div[data-type=block-tools] .block-helper{opacity:0}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper{position:absolute;right:100%;top:0;padding-right:5px;display:flex;align-items:center}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .helper-sizer{width:0;opacity:0;pointer-events:none}div[data-type=editor-block].block-exclusive:after{content:attr(data-exclusive-tips);position:absolute;top:0px;left:0px;width:100%;background:#f8f8f8;border-radius:var(--editor-border-radius);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:14px;line-height:22px;color:#909090;text-align:center;padding:9px 0;z-index:1000}.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self>[data-type=block-content],.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others>[data-type=block-content]{position:relative}.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others>[data-type=block-content]:after{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;z-index:1;background-color:#303030;opacity:.1}.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self.text-block>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self.locked-by-self>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others.text-block>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others.locked-by-self>[data-type=block-content]:after{pointer-events:none}.editor-root:not(.readonly) div[data-type=editor-block].locked-by-self.text-block>[data-type=block-content]:after,.editor-root:not(.readonly) div[data-type=editor-block].locked-by-others.text-block>[data-type=block-content]:after{outline:2px solid #303030}.editor-root{--selected-color: #e8e8e8}.editor-root .editor-content.dragging *{cursor:grabbing!important}.editor-root .editor-content.dragging div[data-type=editor-block] iframe{pointer-events:none}.editor-root .editor-content .editor-drop-indicator{position:absolute;background-color:var(--primary-color);pointer-events:none;transition:top .2s linear,left .2s linear,width .2s linear}.editor-root .editor-content div[data-type=editor-block].text-block.highlighted{outline:2px solid var(--background-selection);background-color:var(--background-selection)}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .block-button{width:24px;height:24px;cursor:pointer;margin:0;padding:0;display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;border-radius:3px}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .block-button[data-type=move]{cursor:grab}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .block-button:hover{background-color:var(--selected-color)}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .block-button svg{width:16px;height:16px;color:#909090}.drag-image-container{position:fixed;z-index:100;box-shadow:0 3px 20px #00000026;background-color:#fff;opacity:.4}.drag-image-container.drag-placeholder{width:500px;height:200px;border:1px solid #dedede;border-radius:3px;background:#e8e8e8}.drag-image-container .drag-image{width:100%;display:none}.drag-image-container[data-status=loaded] .drag-image{display:block}.drag-image-container[data-status=loaded] .drag-loading{display:none}.editor-command-bar-root .editor-command-bar .command-item.menu-item{display:flex;align-items:center;flex:none}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles{padding:5px 10px;background-color:#fff}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section+.text-style-section{margin-top:5px}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section{display:grid;grid-template-columns:repeat(7,24px);grid-row-gap:10px;grid-column-gap:5px}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section .style-icon{height:24px;padding:0;margin:0;display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;outline:none;cursor:pointer;border-radius:3px;color:#606060}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section .style-icon:hover{background-color:var(--selected-color)}.editor-command-bar-root .editor-command-bar .command-item.menu-item .text-styles .text-style-section .style-icon.active{color:#338fe5}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-anchor[data-id=paste-special-button-anchor]{z-index:unset}[data-command-bar-id=paste-special-button] .editor-command-bar.toolbar{padding:0}[data-command-bar-id=paste-special-button] .editor-command-bar.toolbar .command-item[data-dropdown=true]{padding-left:5px;padding-right:5px}.editor-find-dialog{--popover-input-border: 1px solid #CFD6E1;--editor-find-dialog-input-container-border-color: #CFD6E1;--editor-find-dialog-input-container-bg-color: transparent;--editor-border-radius-big: 3px;--editor-color: #07142A;--button-black-text-color: #333;--editor-find-dialog-button-color: #333;--editor-find-dialog-icon-button-color: #333;--editor-find-dialog-button-border-bg-color: rgba(255, 255, 255, .56);--editor-find-dialog-input-placeholder-color: #b9bfc8;--editor-find-dialog-button-disabled-color: #ccc !important;--editor-find-dialog-button-hover-color: rgba(150, 150, 150, .2);--editor-find-dialog-button-border: solid 1px #ccc;box-sizing:border-box;width:400px;background-color:var(--editor-find-dialog-bg-color);border:var(--editor-find-dialog-border);border-radius:var(--editor-border-radius-big);display:flex;padding:8px 8px 0 16px;align-items:flex-start;font-size:14px;font-family:var(--editor-font-family)}.editor-find-dialog .editor-find-content{display:flex;flex-direction:column;flex-grow:1;font-family:inherit}.editor-find-dialog .editor-find-dialog-row{display:flex;margin-bottom:8px;align-items:center}.editor-find-dialog .editor-find-dialog-label{width:80px;flex-grow:0;flex-shrink:0;align-self:center}.editor-find-dialog .editor-find-dialog-input-container{border:var(--popover-input-border);border-color:var(--editor-find-dialog-input-container-border-color);background-color:var(--editor-find-dialog-input-container-bg-color);border-radius:var(--editor-border-radius-big);flex-grow:1;display:flex;padding:2px;align-items:center;height:32px;box-sizing:border-box}.editor-find-dialog .editor-find-dialog-input{border:none;flex-grow:1;width:80px;outline:none;background-color:transparent;color:var(--editor-color)}.editor-find-dialog .editor-find-dialog-input::placeholder{color:var(--editor-find-dialog-input-placeholder-color);opacity:1}.editor-find-dialog .editor-find-dialog-prev{width:24px}.editor-find-dialog .editor-find-dialog-curr{flex-grow:0;text-align:center;flex-shrink:1;display:flex;align-items:center;margin-bottom:2px}.editor-find-dialog .editor-find-dialog-next{width:24px}.editor-find-dialog .editor-find-dialog-icon-button{cursor:pointer;border-radius:4px;color:var(--editor-find-dialog-icon-button-color);background-color:var(--editor-find-dialog-button-border-bg-color);border:none;display:flex;padding:0}.editor-find-dialog .editor-find-dialog-button{padding:6px 16px;cursor:pointer;border-radius:4px;color:var(--editor-find-dialog-button-color);background-color:var(--editor-find-dialog-button-border-bg-color);margin:0 4px;border:none;font-family:inherit;line-height:21px}.editor-find-dialog .editor-find-dialog-button.icon-button{width:32px;height:32px}.editor-find-dialog .editor-find-dialog-button.active,.editor-find-dialog .editor-find-dialog-button:hover{background-color:var(--editor-find-dialog-button-hover-color)}.editor-find-dialog .editor-find-dialog-button:disabled{color:var(--editor-find-dialog-button-disabled-color);cursor:default}.editor-find-dialog .editor-find-dialog-button:disabled:hover{background-color:transparent}.editor-find-dialog .editor-find-dialog-button svg{fill:currentColor}.editor-find-dialog .editor-find-dialog-space{flex-grow:1}.editor-find-dialog .editor-find-dialog-icon-button-border{margin:0 0 0 8px;cursor:pointer;border-radius:4px;color:var(--button-black-text-color);border:var(--editor-find-dialog-button-border);background-color:var(--editor-find-dialog-button-border-bg-color);padding:0;width:32px;display:flex;justify-content:center;align-items:center}.editor-find-dialog .editor-find-dialog-button-close{margin:0 0 0 8px;cursor:pointer;border-radius:4px;color:var(--button-black-text-color);background-color:var(--editor-find-dialog-button-border-bg-color);border:none;padding:0;width:32px;height:32px;display:flex;justify-content:center;align-items:center}.editor-find-dialog .editor-find-dialog-icon-button-border svg,.editor-find-dialog .editor-find-dialog-button-close svg{fill:currentColor}.editor-find-dialog .editor-highlight{opacity:.6;pointer-events:none}.editor-find-dialog .editor-highlight .editor-highlight-child{position:absolute;background-color:bisque}.editor-find-dialog .editor-highlight.active .editor-highlight-child{position:absolute;background-color:tomato}.editor-find-dialog .editor-search-result-highlight{opacity:.6;pointer-events:none}.editor-find-dialog .editor-search-result-highlight .editor-highlight-child{position:absolute;background-color:#40e0d0}.editor-find-dialog .editor-find-dialog-status{display:flex}.editor-highlight{opacity:.6;pointer-events:none}.editor-highlight .editor-highlight-child{position:absolute;background-color:bisque}.editor-highlight.active .editor-highlight-child{position:absolute;background-color:tomato}.editor-search-result-highlight{opacity:.6;pointer-events:none}.editor-search-result-highlight .editor-highlight-child{position:absolute;background-color:#40e0d0}.editor-find-dialog-status{display:flex}.comment-editor{font-size:14px;border:1px solid #c7c7c7;border-radius:3px;padding:1px 10px;margin:6px 10px 0}.comment-editor:after{content:"";height:0;display:block;clear:both}.comment-editor-root{display:inline-block;min-width:calc(100% - 40px);padding-top:2px}.comment-editor-root .editor-root .editor-content{padding:0}.comment-editor-root .editor-root .editor-content>[data-type=editor-container].root>.container-blocks>*+*{margin-top:0}.comment-editor-img{float:right;color:#c1c1c1;padding:0;width:24px;height:24px;justify-content:center}.comment-editor-root:not(.comment-editor-readonly) .editor-root .editor-content [data-type=editor-block]:not([data-block-type=text]){width:248px}.comment-editor-editing{border:1px solid #338fe5}.comment-editor-readonly{border:none;padding-left:37px;margin:0}.comment-editor-readonly .comment-editor-img{display:none}.comment-item-root{position:relative;margin-top:10px}.comment-item-root:not(.last-comment-item):before{content:" ";display:block;position:absolute;left:20px;width:1px;background-color:var(--editor-border-color, #e8e8e8);overflow:hidden;opacity:.8;top:21px;bottom:-12px;transform:scaleX(.5)}.comment-item-root .item-head{padding:0 10px;position:relative;display:flex;align-items:center}.comment-item-root .item-head-avatar{margin-right:5px;width:var(--editor-comment-avatar-width, 21px);height:var(--editor-comment-avatar-width, 21px);border-radius:100%}.comment-item-root .item-head-avatar-string{display:flex;align-items:center;justify-content:center;font-size:12px;color:#fff;background-color:var(--comment-avatar-color);flex-shrink:0}.comment-item-root .item-head-username{font-size:var(--editor-comment-username-font-size, 12px);color:var(--editor-comment-username-color, #07142a);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.comment-item-root .item-head-modified{margin-left:8px;font-size:12px;color:var(--editor-comment-modified-color, #808080);flex-grow:1;white-space:nowrap}.comment-item-root .item-head-tools{display:flex;align-items:center;visibility:hidden}.comment-item-root .item-head-tools .editor-text-button svg{width:20px;height:20px}.comment-item-root .item-head-tools.active{visibility:visible}.comment-item-root .item-actions{margin-top:10px;display:flex;justify-content:flex-end}.comment-item-root .item-actions.hidden{display:none}.comment-item-root .item-actions .editor-button[data-button-id=comment-item-cancel]{color:#606060;background:transparent;border:1px solid #c7c7c7}.comment-item-root .item-actions .editor-button[data-button-id=comment-item-cancel]:hover{color:#303030;background:#eee;border:1px solid #c7c7c7}.comment-item-root .item-actions .editor-button.disabled[data-button-id=comment-item-ok]{color:#fff;background-color:#338fe580;cursor:default}.comment-item-root:hover:not(.comment-item-editing) .item-head-tools{visibility:visible}.comment-item-root.readonly .item-head-tools{display:none}.mobile-comment-item{margin-top:4px;background-color:var(--editor-comment-layer-bg-color);padding-bottom:20px;color:var(--editor-comment-username-color)}.mobile-comment-item .item-head{padding:12px;display:flex;align-items:center}.mobile-comment-item .item-head-avatar{width:var(--editor-comment-avatar-size);height:var(--editor-comment-avatar-size);flex-grow:0}.mobile-comment-item .item-head-username{margin-left:12px}.mobile-comment-item .item-head-modified{margin-left:12px;color:#999}.mobile-comment-item .item-editor .comment-editor-readonly{padding-left:18px}.mini-comment-item{position:relative;line-height:16px;width:20px;height:16px;text-align:center;font-size:12px;border-radius:1px;background-color:var(--editor-comment-active-color, #FFC328);color:var(--editor-comment-mini-text-color, #ffffff);cursor:pointer}.mini-comment-item:after{content:"";position:absolute;left:50%;bottom:-4px;width:6px;height:6px;background-color:var(--editor-comment-active-color, #FFC328);border-radius:1px;transform:matrix(.71,.61,.82,-.71,0,0) translate(-50%);z-index:-1}.comment-quick-reply .quick-reply-button{position:absolute;left:8px;bottom:3px;z-index:2;color:var(--editor-comment-quick-reply-color, #7084A4);font-size:12px}.comment-quick-reply .quick-reply-button.editor-text-button:hover{color:var(--text-button-color-hover, #5587F0);background-color:var(--text-button-bg-color-hover, transparent)}.comment-quick-reply .quick-reply-editor{display:none}.comment-quick-reply .quick-reply-editor .reply-editor-actions{display:flex;justify-content:flex-end;margin-top:10px}.comment-quick-reply .quick-reply-editor .reply-editor-actions .editor-button[data-button-id=quick-reply-cancel]{color:#606060;background:transparent;border:1px solid #c7c7c7}.comment-quick-reply .quick-reply-editor .reply-editor-actions .editor-button[data-button-id=quick-reply-cancel]:hover{color:#303030;background:#eee;border:1px solid #c7c7c7}.comment-quick-reply .quick-reply-editor .reply-editor-actions .editor-button.disabled[data-button-id=quick-reply-ok]{color:#fff;background-color:#338fe580;cursor:default}.comment-quick-reply.hidden,.comment-quick-reply.reply-editor-editing .quick-reply-button{display:none}.comment-quick-reply.reply-editor-editing .quick-reply-editor{display:block}:root{--editor-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Robot, "Helvetica Neue", Helvetica, Arial, sans-serif;--editor-comment-layer-bg-color:#ffffff;--editor-comment-group-bg-color: #ffffff;--comment-root-border-color: #eaeaea;--editor-comment-layer-active-border-color: #cecece;--editor-box-shadow: 0px 3px 20px rgba(0, 0, 0, .15);--wiz-editor-z-comment-group-active-top-before: 29;--editor-comment-quote-color: #909090;--editor-comment-quote-before-bg-color: #909090;--editor-comment-switch-button-width: 12px;--editor-comment-active-color: #FFC328;--editor-bg-color: #ffffff;--wiz-editor-z-comment-head:11;--text-button-color-hover:#5587f0;--editor-comment-username-color:#07142A;--editor-comment-avatar-size: 32px}.disabled-scroll{overflow:hidden}.editor-root .editor-content div[data-type=editor-block].text-block.comment{box-shadow:none}.editor-root .editor-content div[data-type=editor-block].text-block.comment>div[data-type=block-content]>span{border-bottom:2px solid #f8e6ab}.editor-root .editor-content div[data-type=editor-block].text-block.comment.active{box-shadow:none;outline:none}.editor-root .editor-content div[data-type=editor-block].text-block.comment.active>div[data-type=block-content] span{background-color:#f8e6ab}.editor-root .editor-content div[data-type=editor-block] span.text.comment{border-bottom:2px solid #f8e6ab}.editor-root .editor-content div[data-type=editor-block] span.text.comment.active{background-color:#faf1d1}.editor-root .editor-content div[data-type=editor-block].comment{box-shadow:0 2px #f8e6ab}.editor-root .editor-content div[data-type=editor-block].comment.active{box-shadow:none;outline:4px solid #f8e6ab}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-comment-button{all:unset;position:absolute;right:-28px;top:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;padding:0;border-radius:3px;color:#07142a;cursor:pointer}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-comment-button:hover{background:#eaeaea}.editor-web-comment-root{position:absolute;right:0;width:300px;top:0;bottom:0;transition:width .16s ease-in;will-change:width;font-family:var(--editor-font-family)}.editor-web-comment-root .comment-groups-container .comment-group-item-root{position:absolute;left:50%;right:0;width:290px;transform:translate(-50%);background-color:var(--editor-comment-group-bg-color);border-radius:2px;border-color:var(--editor-comment-layer-active-border-color);box-shadow:var(--editor-box-shadow);padding-bottom:18px}.editor-web-comment-root .comment-groups-container .comment-group-item-root:not(.no-animation){transition:top .2s ease-in,opacity .35s ease-in}.editor-web-comment-root .comment-groups-container .comment-group-item-root:before{content:"";position:absolute;left:0;right:0;height:6px;background-color:#fff;border-radius:2px 2px 0 0;z-index:var(--wiz-editor-z-comment-group-active-top-before)}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head{display:flex;align-items:center}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-quote{box-sizing:content-box;font-size:12px;line-height:12px;height:12px;color:var(--editor-comment-quote-color);padding:18px 12px 10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:100%;max-width:calc(100% - 80px)}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-quote:before{content:"";display:block;width:2px;height:100%;background-color:var(--editor-comment-quote-before-bg-color);margin-right:6px;float:left;border-radius:10px}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch{display:flex;align-items:center;height:22px;padding-top:6px;visibility:hidden}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button{padding:0;width:var(--editor-comment-switch-button-width);margin:3px 0;color:#606060}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button[data-button-id=switch-up]{margin-right:16px}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button:not(.disabled):hover{color:var(--text-button-color-hover)}.editor-web-comment-root .comment-groups-container .comment-group-item-root .comment-item-head .item-head-switch .editor-text-button.disabled{color:#60606080;cursor:not-allowed}.editor-web-comment-root .comment-groups-container .comment-group-item-root.active:before{background-color:var(--editor-comment-active-color)}.editor-web-comment-root .comment-groups-container .comment-group-item-root.active .item-head-switch{visibility:visible}.editor-web-comment-root .comment-groups-container .comment-group-item-root.readonly .comment-quick-reply{display:none}.editor-mobile-comments-root{position:fixed;left:0;right:0;bottom:0;top:0;overflow:hidden;z-index:11}.editor-mobile-comments-root .mobile-comment-mask{position:absolute;left:0;right:0;bottom:0;top:0;background-color:#00000073}.editor-mobile-comments-root .mobile-comment-groups-container{position:absolute;width:100%;height:100vh;z-index:1;overflow:hidden}.editor-mobile-comments-root .mobile-comment-groups-container .mobile-comment-groups-scroll-container{padding:0 12px}.editor-mobile-comments-root .mobile-comment-pull-info-container{position:absolute;right:0;left:0;bottom:100px;z-index:2;text-align:center;display:none}.editor-mobile-comments-root .mobile-comment-pull-info-container .mobile-comment-pull-info{display:inline-block;padding:12px;border-radius:36px;margin:0 auto;background-color:#000c;color:#fff;font-size:12px;opacity:0;transition:opacity .25s cubic-bezier(.65,.05,.36,1)}.editor-mobile-comments-root .mobile-comment-pull-info-container.active{display:block}.editor-mobile-comments-root .mobile-comment-pull-info-container.active .mobile-comment-pull-info{opacity:1}.editor-mobile-comments-root .mobile-group-item-root{margin:0 auto;width:100%;height:100vh;overflow:hidden}.editor-mobile-comments-root .mobile-group-item-root .mobile-group-item{min-height:calc(100vh + 1px);padding-bottom:50px}.editor-mobile-comments-root .mobile-group-item-root .mobile-group-item-space{height:50vh}.editor-mobile-comments-root .mobile-group-item-root .mobile-group-item-abstract{background-color:var(--editor-comment-layer-bg-color);padding:12px;color:#999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-mini-comment-root{position:absolute;right:0;top:0;bottom:0;width:48px;border-left:1px solid #f0f0f0;transition:width .16s ease-in;will-change:width;font-family:var(--editor-font-family);border:none;background-color:transparent;z-index:11}.editor-mini-comment-root .comment-groups-container{width:100%;height:100%}.editor-mini-comment-root .comment-groups-container .mini-group-item{position:absolute;top:0;left:50%;margin-left:-10px;transition:top .2s cubic-bezier(.65,.05,.36,1)}:is(.editor-web-comment-root,.editor-mobile-comments-root,.editor-mini-comment-root).hidden{display:none}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=file] span[data-type=box-content]{margin:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=file] span[data-type=box-content] span.file-icon{display:inline-flex;vertical-align:text-bottom}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=file] span[data-type=box-content] .file-name{color:var(--primary-color);padding:0;border-radius:12px;margin-right:4px;white-space:wrap;word-break:break-all;cursor:pointer}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office]{justify-content:start}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office].hover [data-type=block-content]{border-radius:3px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content]{max-width:360px;min-width:360px;height:48px;cursor:pointer}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root{display:flex;align-items:center;min-width:360px;max-width:100%;background-color:#f5f6f7;border-radius:3px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root:before{border-radius:3px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details{display:flex;flex-direction:column;justify-content:center;font-size:14px;flex-grow:1}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details .file-name{color:#1f2329;max-width:185px;display:flex;flex-direction:row;align-items:center;white-space:nowrap}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details .file-size{color:#646a73;font-size:12px;margin-top:2px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details .file-name-pre{text-overflow:ellipsis;overflow:hidden}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-actions button{width:34px;height:34px;background-color:#fff;border:1px solid #dee0e3;border-radius:50%;margin:0 8px;padding:0;background-repeat:no-repeat;background-position:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-actions button svg{width:16px;height:16px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-icon{display:flex;width:36px;height:36px;margin:6px 6px 6px 12px}div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-icon>svg{width:100%;height:100%}:root{--editor-version-button-border: black;--editor-bg-color: #ffffff;--editor-version-list-bg-color: white;--editor-version-select-bg-color: #F8F8F8}.version-dialog{display:flex;background-color:var(--editor-bg-color);width:100%;height:100%;color:var(--editor-color)}.version-dialog *{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;box-sizing:border-box}.version-dialog .version-item-latest{color:#338fe5;background-color:#eaf3fc;height:20px;padding:0 5px;border-radius:3px;display:inline-flex;align-items:center;font-size:12px;font-weight:400;margin-left:10px}.version-dialog .version-viewer{flex:1;display:flex;flex-direction:column;width:0;padding:0}.version-dialog .version-viewer .version-dialog-editor{flex-grow:1;overflow-y:auto}.version-dialog .version-viewer .version-info-container{height:50px;border-bottom:#E8E8E8 1px solid;display:flex;align-items:center;flex-shrink:0;padding-left:20px;font-size:14px;color:#303030}.version-dialog .version-viewer .version-info-container .version-info-right .text-3,.version-dialog .version-viewer .version-info-container .version-info-left .text-1,.version-dialog .version-viewer .version-info-container .version-info-left .text-2{color:#909090}.version-dialog .version-viewer .version-info-container .version-info-left .name{font-weight:500}.version-dialog .version-viewer .version-info-container .version-info-left .name .version-item-latest{margin-left:5px}.version-dialog .version-viewer .version-info-container .editor-dropdown{margin-left:10px;margin-right:10px}.version-dialog .version-viewer .version-info-container .command-item[data-id=current-version]{min-width:200px;border:1px solid #f0f0f0}.version-dialog .version-viewer .version-info-container .command-item[data-id=current-version] .toolbar-item-name-container{flex-grow:1}.version-dialog .version-viewer .dialog-button-text{margin-top:1px;margin-left:-4px}.version-dialog .version-viewer .dialog-text-button{outline:none;background:transparent;border:none;display:flex;align-items:center;color:var(--editor-color);font-size:16px;font-weight:500;padding:4px 0;cursor:pointer}.version-dialog .version-viewer .dialog-text-button .dialog-button-icon{margin-right:0;width:24px;height:24px}.version-dialog .version-viewer .dialog-text-button .dialog-button-icon svg{fill:currentColor}.editor-root.history .root-container .editor-block .text-element .inline-plugin.editor-box-loading{display:none}.editor-root.history .editor-content{padding:30px 75px}.editor-root.history .history-inserted-block[data-type=editor-block] [data-type=block-content]{border:4px solid var(--op-selected-color)}.editor-root.history .history-inserted-block[data-type=editor-block]{position:relative}.editor-root.history .history-inserted-block[data-type=editor-block]:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:var(--wiz-editor-z-history-op-description, 10);font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history .history-inserted-block[data-type=editor-block].table-block table{border:4px solid var(--op-selected-color)}.editor-root.history .history-inserted-block[data-type=editor-block].table-block table .child{pointer-events:none}.editor-root.history .history-inserted-block[data-type=editor-block].table-block{position:relative}.editor-root.history .history-inserted-block[data-type=editor-block].table-block:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:var(--wiz-editor-z-history-op-description, 10);font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history .history-inserted-block[data-type=editor-block].table-block:hover:after{top:0}.editor-root.history .history-deleted-block [data-type=block-content]{border:4px solid var(--op-selected-color)}.editor-root.history .history-deleted-block [data-type=block-content]{position:relative}.editor-root.history .history-deleted-block [data-type=block-content]:after,.editor-root.history .history-deleted-block [data-type=block-content]:before{content:" ";position:absolute;display:flex;z-index:var(--wiz-editor-z-history-delete-marker);color:var(--op-color);justify-items:center;align-items:center;justify-content:center;align-content:center;pointer-events:none;overflow:visible;max-width:100%;max-height:100%;left:calc(50% - 16px);top:calc(50% - 2px);width:32px;height:4px;background-color:var(--op-color);transform:rotate(45deg);opacity:1}.editor-root.history .history-deleted-block [data-type=block-content]:before{transform:rotate(135deg)}.editor-root.history .history-deleted-block{position:relative}.editor-root.history .history-deleted-block:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:var(--wiz-editor-z-history-op-description, 10);font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history .history-deleted-block .history-deleted-box{background-color:unset!important;text-decoration:unset!important}.editor-root.history .history-deleted-block .history-deleted-box:hover:after{opacity:0}.editor-root.history .history-inserted-text{line-height:revert!important;background-color:var(--op-selected-color)}.editor-root.history .history-inserted-text{position:relative}.editor-root.history .history-inserted-text:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:var(--wiz-editor-z-history-op-description, 10);font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history .history-deleted-box{background-color:var(--op-selected-color);text-decoration:line-through}.editor-root.history .history-deleted-box{position:relative}.editor-root.history .history-deleted-box:hover:after{content:attr(data-op-description);position:absolute;top:-26px;left:0;line-height:24px;background-color:var(--op-color);min-width:20px;opacity:1;color:#fff;padding:0 8px;z-index:var(--wiz-editor-z-history-op-description, 10);font-size:14px;font-weight:400;white-space:nowrap;border-radius:3px}.editor-root.history [data-box-type=history-deleted-box]>span[data-type=box-content]{border:none!important;margin:0!important}.editor-root.history [data-type=editor-block].table-block div[data-type=block-content]{overflow-x:revert}.editor-dialog-root{position:absolute;left:0;top:0;bottom:0;right:0;background-color:#639;z-index:100}.size-limit-textarea{display:inline-block;position:relative}.size-limit-textarea .size-limit-textarea-input{width:100%;resize:none;overflow:hidden;color:#303030;outline:none;border:1px solid #f0f0f0;border-radius:3px}.size-limit-textarea .size-limit-textarea-input:focus,.size-limit-textarea .size-limit-textarea-input:hover{border-color:#338fe5}.size-limit-textarea .size-limit-textarea-input:focus{box-shadow:0 0 0 2px #338fe533}.size-limit-textarea .size-limit-textarea-warning{position:absolute;right:0;bottom:10px;color:#909090;z-index:1;font-size:12px;pointer-events:none}.version-list-root{width:320px;background:var(--editor-version-list-bg-color);overflow-y:auto;padding:0;border-left:#E8E8E8 1px solid;display:flex;flex-direction:column}.version-list-root .version-list-header{padding:0 20px;font-size:14px;display:flex;align-items:center;margin-top:8px;margin-bottom:8px;flex-shrink:0;color:#909090}.version-list-root .version-list-header .version-count{flex-grow:1}.version-list-root .version-list-empty{height:100%;display:flex;align-items:center;justify-content:center;font-size:14px;color:#909090}.version-list-root .version-list-content{flex-grow:1;overflow-y:auto}.version-list-root .version-list-content .version-item{padding:15px 10px;cursor:pointer}.version-list-root .version-list-content .version-item.child{padding-left:32px}.version-list-root .version-list-content .version-item:not(.active):hover{background:rgba(112,132,164,.1)}.version-list-root .version-list-content .version-item.active{background-color:var(--editor-version-select-bg-color)}.version-list-root .version-list-content .version-item.active .version-item-title .version-actions{display:flex}.version-list-root .version-list-content .version-item.editing .version-item-memo{display:none}.version-list-root .version-list-content .version-item.active .version-item-memo{cursor:text}.version-list-root .version-list-content .version-item.active .version-item-memo:hover{outline:1px solid #338FE5}.version-list-root .version-list-content .version-item .version-item-restore-from{color:#909090;font-size:12px;line-height:1.5em;height:20px;padding:0 10px 10px}.version-list-root .version-list-content .version-item .version-item-restore-from:empty{display:none}.version-list-root .version-list-content .version-item .memo-input.size-limit-textarea{width:100%;min-height:60px}.version-list-root .version-list-content .version-item .memo-input.size-limit-textarea textarea{padding:5px 10px 10px;box-sizing:border-box;font-size:14px}.version-list-root .version-list-content .version-item .version-item-title{display:flex;align-items:center;padding-bottom:10px;padding-left:10px;padding-right:10px;height:24px}.version-list-root .version-list-content .version-item .version-item-title .version-item-date{font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#303030}.version-list-root .version-list-content .version-item .version-item-title .spacer{flex-grow:1}.version-list-root .version-list-content .version-item .version-item-title .version-actions{display:none}.version-list-root .version-list-content .version-item .version-item-title .version-actions button{display:flex;align-items:center;justify-content:center;height:16px;cursor:pointer;border:none;outline:none;background:transparent;padding:0 0 0 5px;color:#909090}.version-list-root .version-list-content .version-item .version-item-title .version-actions button:hover{color:#338fe5}.version-list-root .version-list-content .version-item .version-item-title .version-actions button.disabled,.version-list-root .version-list-content .version-item .version-item-title .version-actions button.disabled:hover{color:#c7c7c7}.version-list-root .version-list-content .version-item .version-item-title .version-actions .revert-button{border-left:1px solid #E8E8E8;margin-left:5px}.version-list-root .version-list-content .version-item .version-item-authors{list-style:none;margin:0;font-size:12px;padding-left:10px}.version-list-root .version-list-content .version-item .version-item-author{display:flex;align-items:center;margin-top:10px;color:#606060}.version-list-root .version-list-content .version-item .version-item-author-mark{width:6px;height:6px;border-radius:3px;margin-right:5px}.version-list-root .version-list-content .version-item .version-item-memo{font-size:14px;color:#303030;padding:5px 10px 10px;border-radius:3px}.version-list-root .version-list-content .version-item .version-item-memo:empty{display:none}.versions-dropdown-header{color:var(--text-color);padding:10px;border-bottom:1px solid #f0f0f0}.versions-dropdown-header .versions-dropdown-header-info{color:#909090}.versions-dropdown-header .versions-dropdown-header-icon{vertical-align:middle;padding-left:5px;padding-right:5px;cursor:pointer;color:#909090}.editor-command-bar.menu .command-item.standard[data-id=prev-version]{height:44px}[data-command-bar-id=versions-dropdown-popup]{width:320px}[data-command-bar-id=versions-dropdown-popup] .tippy-box{color:var(--text-color)}[data-command-bar-id=versions-dropdown-popup] .tippy-box .version-item-empty{width:100%}[data-command-bar-id=versions-dropdown-popup] .tippy-box .version-item-name{color:var(--text-color)}[data-command-bar-id=versions-dropdown-popup] .tippy-box .editor-command-bar.menu .command-item.standard.disabled{color:#909090}[data-command-bar-id=versions-dropdown-popup] .tippy-box .editor-command-bar{--text-color: #303030}[data-command-bar-id=versions-dropdown-popup] *{box-sizing:border-box}[data-command-bar-id=versions-dropdown-popup] .editor-command-bar-header{width:100%;margin-bottom:5px}[data-command-bar-id=versions-dropdown-popup] .command-item{width:100%;cursor:pointer}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-container{padding:6px 10px;width:100%}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-container .version-item-memo{font-size:12px;color:#909090;line-height:20px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-container .version-item-line1{line-height:22px;display:flex;align-items:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-container .version-item-line1 .version-item-latest{color:#338fe5;background-color:#eaf3fc;height:20px;padding:0 5px;margin-left:10px;border-radius:3px;font-size:12px;display:inline-flex;align-items:center}[data-command-bar-id=versions-dropdown-popup] .command-item .version-item-empty{display:flex;height:34px;color:#909090;padding-left:10px;justify-content:left;align-items:center}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item{width:100%}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item .filter-item-info{height:24px;color:#909090;display:flex;align-items:center;padding-left:10px;background-color:#f8f8f8;width:100%;box-sizing:border-box;margin:5px 0}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item .filter-item-input-container{height:34px;display:flex;align-items:center;padding-left:10px;color:#303030}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item .filter-item-input-container .filter-item-input{position:relative;top:-2px;left:-2px;cursor:pointer;accent-color:#338FE5}[data-command-bar-id=versions-dropdown-popup] .command-item .filter-memoed-version-item .filter-item-input-container .filter-item-label{user-select:none;cursor:pointer;line-height:1em}.editor-root.readonly .editor-content div[data-type=editor-block].focused div[data-type=block-tools] .block-helper .heading-marker,.editor-root.readonly .editor-content div[data-type=editor-block].highlighted div[data-type=block-tools] .block-helper .heading-marker{display:flex}.editor-root .editor-content div[data-type=editor-block].heading-collapsed div[data-type=block-tools] .block-helper .heading-collapse-button svg{transform:rotate(270deg)}.editor-root .editor-content div[data-type=editor-block].focused div[data-type=block-tools] .block-helper .heading-marker,.editor-root .editor-content div[data-type=editor-block].highlighted div[data-type=block-tools] .block-helper .heading-marker{display:none}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker,.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-collapse-button{width:24px;height:24px;cursor:grab;margin:0;padding:0;display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;border-radius:3px}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker:hover,.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-collapse-button:hover{background-color:var(--selected-color)}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker svg,.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-collapse-button svg{transform:rotate(360deg);transition:transform .2s linear}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker svg,.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-collapse-button svg{width:16px;height:16px}.editor-root .editor-content div[data-type=editor-block] div[data-type=block-tools] .block-helper .heading-marker:hover{background-color:transparent}.embed-block div[data-type=block-content] .editor-toc-container{display:block;width:100%;background-color:#f0f0f0;padding:20px}.embed-block div[data-type=block-content] .editor-toc-container.loading{margin:0;min-height:100px}.embed-block div[data-type=block-content] .editor-toc-container .toc-node+.toc-node{margin-top:10px}.embed-block div[data-type=block-content] .editor-toc-container .toc-node .toc-text{cursor:pointer;color:var(--primary-color)}.embed-block div[data-type=block-content] .editor-toc-container .toc-node .toc-children{margin-top:10px;padding-left:20px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=mention] span[data-type=box-content]{margin:0}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] [data-box-type=mention] span[data-type=box-content] .mention-name{color:var(--primary-color);padding:0;border-radius:12px;margin-left:4px;margin-right:4px;white-space:wrap;word-break:break-all;cursor:pointer}[data-command-bar-id=editor-mention] .editor-command-bar.menu .command-item.menu-item .menu-item-icon{width:20px;height:20px;border-radius:50%;overflow:hidden}[data-command-bar-id=editor-mention] .editor-command-bar.menu .command-item.menu-item .menu-item-icon img{width:100%;height:100%}[data-command-bar-id=editor-mention] .editor-command-bar.menu .command-item.menu-item .menu-item-icon .mention-user-avatar-string{align-items:center;display:flex;justify-content:center;overflow:hidden;height:100%;width:100%;font-size:12px;color:#fff;flex-shrink:0}[data-command-bar-id=editor-mention] .editor-command-bar.menu .command-item.menu-item .menu-item-name{flex-grow:0;margin-right:5px}.editor-root .editor-templates{position:fixed;bottom:26px;height:256px;width:auto;max-width:100%;padding-left:30px;padding-right:44px;overflow:hidden}.editor-root .editor-templates .editor-templates-title{color:#909090;font-size:14px;margin-left:0;margin-bottom:20px;line-height:19.6px}.editor-root .editor-templates .editor-templates-cards{display:flex;margin-left:0}.editor-root .editor-templates .editor-templates-cards .editor-template-card{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;cursor:pointer;flex-shrink:0;height:192px;width:188px;background:none;border:1px solid #e8e8e8;border-radius:3px;margin:0 0 0 15px;padding:0;align-items:revert}.editor-root .editor-templates .editor-templates-cards .editor-template-card:first-child{margin-left:0}.editor-root .editor-templates .editor-templates-cards .editor-template-card:hover{box-shadow:0 0 1px #30303033,0 8px 16px #30303026}.editor-root .editor-templates .editor-templates-cards .editor-template-card:hover>.editor-template-name{color:#338fe5}.editor-root .editor-templates .editor-templates-cards .editor-template-card .editor-template-name{display:flex;align-items:center;height:40px;width:100%;border-top:1px solid #dedede;padding-left:20px;padding-right:20px;flex:0 0 50px;font-size:14px;font-weight:500;line-height:22px;color:#303030}.editor-root .editor-templates .editor-templates-cards .editor-template-card .editor-template-name span{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-root .editor-templates .editor-templates-cards .editor-template-card.more .editor-template-name{border-top:none}.editor-root .editor-templates .editor-templates-cards .editor-template-card.more .editor-template-name span{padding-left:0;text-align:center}.editor-root .editor-templates .editor-templates-cards .editor-template-card.more .editor-template-thumb-container{display:flex;align-items:center;justify-content:center;padding:16px 39px 14px}.editor-root .editor-templates .editor-templates-cards .editor-template-card.more .editor-template-thumb-container>img{width:110px;height:112px;max-width:revert}.editor-root .editor-templates .editor-templates-cards .editor-template-card .editor-template-thumb-container{flex:1;position:relative;padding:10px 5px 0;height:142px;margin:0;overflow:revert}.editor-root .editor-templates .editor-templates-cards .editor-template-card .editor-template-thumb-container>img{max-width:100%}:root div[data-command-bar-id=webpage]>div.tippy-box{max-width:500px}:root div[data-command-bar-id=webpage]>div.tippy-box div.tippy-content{width:500px;padding:0}.editor-dialog-container{width:500px}.editor-dialog-container .dialog-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 20px;height:50px;border-bottom:1px solid #e8e8e8;margin-bottom:20px}.editor-dialog-container .dialog-header .close-icon{display:flex;cursor:pointer}.editor-dialog-container .dialog-header .dialog-header-title{padding:8px 0 11px;font-size:18px;font-weight:700;flex-grow:1}.editor-dialog-container .dialog-content{padding:0 20px 20px;border-bottom:1px solid #e8e8e8}.editor-dialog-container .dialog-footer{margin:10px 0;padding:0 20px;text-align:right}.editor-dialog-container .dialog-footer button{min-width:58px;min-height:30px;padding:0 10px;border-radius:3px;background-color:#eef3f8;font-size:14px;color:#fff;cursor:pointer}.editor-dialog-container .dialog-footer .cancel-button{margin:0 8px 0 0;background-color:transparent;border:1px solid #c7c7c7;color:#606060}.editor-dialog-container .dialog-footer .cancel-button:hover{color:#303030;background:#eee;border:1px solid #c7c7c7}.editor-dialog-container .dialog-footer .submit-button{outline:none;background-color:#338fe5;color:#fff;border:0}.editor-dialog-container .dialog-footer .submit-button:hover{background-color:#5ca5ea}.editor-disable-scroll.editor-disable-scroll-dark{background-color:#00000080}.embed-block[data-embed-type=webpage]{height:400px;min-height:100px;max-height:1000px}.embed-block[data-embed-type=webpage] .webpage-mask{position:absolute;left:0;right:0;top:0;bottom:0;z-index:1;background-color:transparent}.embed-block[data-embed-type=webpage].resizing [data-type=block-tools] .block-resizer{pointer-events:all!important}.embed-block[data-embed-type=webpage].hover>div[data-type=block-content]{outline:none!important}.embed-block[data-embed-type=webpage].selected>div[data-type=block-content]{outline:none!important}.embed-block[data-embed-type=webpage]>div[data-type=block-content]{justify-content:center;height:100%}.embed-block[data-embed-type=webpage]>div[data-type=block-content]>.editor-embed{width:100%}.embed-block[data-embed-type=webpage]>div[data-type=block-content]>.editor-embed .editor-preview-iframe{width:100%;max-height:500px;height:100%;border:none;position:relative}.embed-block[data-embed-type=webpage]>div[data-type=block-content]>.editor-embed .editor-preview-iframe-loading{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:center;align-items:center;background-color:#fff}.webpage-content .help-container{color:#303030;border:1px solid #dedede;padding:10px;border-radius:4px;border-left:4px solid #338fe5;margin-top:16px;margin-bottom:16px}.webpage-content .help-container .help-content{display:flex;align-items:center}.webpage-content .help-container .help-content .help-icon{display:flex;align-items:center;height:20px;color:#338fe5;margin-right:12px}.webpage-content .help-link-container{margin-top:8px;display:flex;align-items:center}.webpage-content .help-link-container .help-link-content{display:flex;align-items:center;color:#338fe5;text-decoration:none}.webpage-content .help-link-container .help-link-content .help-link-icon{width:16px;height:16px;margin-left:8px}div.editor-root div.editor-content div[data-type=editor-container].root.select-all>.container-blocks>div[data-type=editor-block][data-embed-type=webpage]>div[data-type=block-content]:before{display:block}:root{--editor-quoted-color: #7084a4;--editor-drawio-empty-svg: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zOC43MjAzIDI4LjcwOTdIMjUuOTIzM0MyNS4yMTY1IDI4LjcwOTcgMjQuNjQzNSAyOC4xNDgxIDI0LjY0MzUgMjcuNDU1MlYyNS43MzMzSDIwLjUyODNDMjAuNDk4NiAyNS43Njk2IDIwLjQ2NjkgMjUuODA0MiAyMC40MzMzIDI1LjgzN0wxNS45MTkyIDMwLjI2MjFWMzQuNzU1NkgyNC42NDM1VjMzLjcyNzZDMjQuNjQzNSAzMy4wMzQ4IDI1LjIxNjUgMzIuNDczMiAyNS45MjMzIDMyLjQ3MzJIMzguNzIwM0MzOS40MjcgMzIuNDczMiA0MCAzMy4wMzQ4IDQwIDMzLjcyNzZWMzguNzQ1NUM0MCAzOS40MzgzIDM5LjQyNyA0MCAzOC43MjAzIDQwSDI1LjkyMzNDMjUuMjE2NSA0MCAyNC42NDM1IDM5LjQzODMgMjQuNjQzNSAzOC43NDU1VjM3LjMzMzNIMTQuNjI2M0MxMy45MTIyIDM3LjMzMzMgMTMuMzMzMyAzNi43NTYyIDEzLjMzMzMgMzYuMDQ0NFYzMC42OTQxTDguMzc4NTIgMjUuODM3QzguMTM2MjYgMjUuNjAxNCA4IDI1LjI4MDggOCAyNC45NDYzQzggMjQuNjExOCA4LjEzNjI2IDI0LjI5MTEgOC4zNzg1MiAyNC4wNTU2TDEzLjMzMzMgMTkuMTk4NVYxNS43NzJDMTEuNzc5OCAxNS4yMjI5IDEwLjY2NjcgMTMuNzQxNiAxMC42NjY3IDEyQzEwLjY2NjcgOS43OTA4NSAxMi40NTc1IDggMTQuNjY2NyA4QzE2Ljg3NTggOCAxOC42NjY2IDkuNzkwODUgMTguNjY2NiAxMkMxOC42NjY2IDEzLjcyNjUgMTcuNTU4OCAxNS4yNTgxIDE1LjkxOTEgMTUuNzk4OFYxOS4yODg4QzE1LjkxOTEgMTkuMzkxOCAxNS45MDY4IDE5LjQ5NDMgMTUuODgyMyAxOS41OTQzTDE5LjUxNTEgMjMuMTU1NUgyNC42NDM1VjIyLjQzNzNDMjQuNjQzNSAyMS43NDQ1IDI1LjIxNjUgMjEuMTgyOSAyNS45MjMzIDIxLjE4MjlIMzguNzIwM0MzOS40MjcgMjEuMTgyOSA0MCAyMS43NDQ1IDQwIDIyLjQzNzNWMjcuNDU1MkM0MCAyOC4xNDgxIDM5LjQyNyAyOC43MDk3IDM4LjcyMDMgMjguNzA5N1pNMjcuMjAzIDM3LjQ5MUgzNy40NDA2VjM0Ljk4MjFIMjcuMjAzVjM3LjQ5MVpNMTQuNDA1OSAyOC4xOTU0TDExLjA5MTUgMjQuOTQ2M0wxNC40MDU5IDIxLjY5NzJMMTcuNzIwNCAyNC45NDYzTDE0LjQwNTkgMjguMTk1NFpNMjcuMjAzIDI2LjIwMDhIMzcuNDQwNlYyMy42OTE4SDI3LjIwM1YyNi4yMDA4WiIgZmlsbD0iIzA3MTQyQSIvPgo8L3N2Zz4K)}.flex-center,.editor-drawio-iframe-container.loading:before{display:flex;align-items:center;justify-content:center}.full-screen,.editor-drawio-iframe-container.loading:before,.drawio-iframe-element,.editor-drawio-iframe-container{width:100%;height:100%}.editor-drawio-iframe-container{position:fixed;top:0;left:0;z-index:1000}div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content]{outline:1px solid #DEDEDE}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content]{justify-content:center;border-radius:3px;padding:10px}div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block].embed-block[data-embed-type=drawio]>div[data-type=block-content] .editor-drawio-content{display:flex;flex-direction:column;align-items:center;justify-content:center}.embed-block .editor-empty-drawio.editor-drawio-content.editor-embed{width:240px;height:80px;display:inline-block;text-align:center}div.editor-root div.editor-content div[data-type=editor-container] div[data-embed-type=drawio].embed-block>div[data-type=block-content] img{max-width:100%;max-height:100%}.editor-drawio-iframe-container.loading:before{content:attr(data-placeholder);position:absolute;top:0;left:0;background-color:#f7f6f3;z-index:2}.editor-content .editing{background-color:#cdcdcd40}.editor-content div[data-type=block-tools] .embed-code-editor-container{position:absolute;top:0;left:0px;right:0px;bottom:0;background-color:#cdcdcd40;z-index:var(--wiz-editor-z-embed-code-editor-mask);padding:8px}.editor-content div[data-type=block-tools] .embed-code-editor-container textarea{width:100%;height:100%;resize:none;outline:none;padding:12px;border:1px solid #b9bfc8;border-radius:4px;background-color:#fff;color:#333}.flex-row-center,.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=mermaid] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=flowchart] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=plantuml] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=mermaid] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=mermaid],.embed-block[data-embed-type=flowchart],.embed-block[data-embed-type=plantuml]{display:flex;flex-direction:row;align-items:center;justify-content:center}.embed-block[data-embed-type=mermaid] div[data-type=block-content],.embed-block[data-embed-type=flowchart] div[data-type=block-content],.embed-block[data-embed-type=plantuml] div[data-type=block-content]{width:100%;position:relative;border:1px solid #e5e5e5;border-radius:3px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .empty-embed,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .empty-embed,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .empty-embed{width:100%;min-height:106px;background-color:#cdcdcd40}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .empty-embed:after,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .empty-embed:after{content:attr(data-empty-tips);position:absolute;top:0;right:0;width:100%;height:100%;color:#07142a;white-space:nowrap}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=flowchart] div[data-type=block-content] .invalid-code:not(.empty-embed),.embed-block[data-embed-type=plantuml] div[data-type=block-content] .invalid-code:not(.empty-embed){width:100%;height:100px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .invalid-code:not(.empty-embed) img,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .invalid-code:not(.empty-embed) img,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .invalid-code:not(.empty-embed) img{display:none}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .invalid-code:not(.empty-embed):after,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .invalid-code:not(.empty-embed):after,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .invalid-code:not(.empty-embed):after{content:attr(data-invalid-text);position:absolute;top:0;right:0;width:100%;height:100%;outline:1px solid red;display:flex;flex-direction:row;align-items:center;justify-content:center;color:red}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-img-content,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-img-content,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-img-content{width:100%;text-align:center}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .mermaid-embed-img,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .mermaid-embed-img,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .mermaid-embed-img{max-width:100%;min-width:200px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .editor-plantuml-img,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .editor-plantuml-img,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .editor-plantuml-img{max-width:100%}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-img-content,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-img-content,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-img-content{width:100%;text-align:center;padding:10px}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .embed-graph-img-content img,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .embed-graph-img-content img,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .embed-graph-img-content img{max-width:100%}.embed-block[data-embed-type=mermaid] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=flowchart] div[data-type=block-content] .graph-embed,.embed-block[data-embed-type=plantuml] div[data-type=block-content] .graph-embed{width:100%}.hr-transition,.embed-block[data-type=editor-block][data-embed-type=hr] div[data-type=block-content] .editor-embed-container .editor-embed-hr{transition:border-top ease-in-out .4s}.embed-block[data-type=editor-block][data-embed-type=hr].hover>div[data-type=block-content]{outline:none!important}.embed-block[data-type=editor-block][data-embed-type=hr].selected>div[data-type=block-content]{outline:none!important}.embed-block[data-type=editor-block][data-embed-type=hr]:is(.focused) div[data-type=block-content] .editor-embed-container .editor-embed-hr{caret-color:transparent}.embed-block[data-type=editor-block][data-embed-type=hr] div[data-type=block-content] .editor-embed-container{display:flex;align-items:center;width:100%;height:24px}.embed-block[data-type=editor-block][data-embed-type=hr] div[data-type=block-content] .editor-embed-container .editor-embed-hr{display:block;width:100%;border:none;margin:0;border-top:2px dashed #cccccc;cursor:pointer}.embed-block[data-type=editor-block][data-embed-type=hr] div[data-type=block-tools]>div.block-helper{height:100%}:root{--hover-color: #40a9ff}.flex-column-center,.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error{display:flex;justify-content:center;align-items:center;flex-flow:column}.common{width:400px;height:180px;background-color:#fafafa;border:1px dashed #d9d9d9;border-radius:2px;transition:border-color .3s}.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error{height:200px}.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty .media-error-icon,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error .media-error-icon{display:flex}.editor-root .editor-content div[data-type=editor-block].embed-block.media-block-uploading div[data-type=block-tools] .block-helper{display:none}.embed-block[data-embed-type=video]{display:flex}.embed-block[data-embed-type=video][data-style-align=left]>div[data-type=block-content]{justify-content:flex-start}.embed-block[data-embed-type=video][data-style-align=center]>div[data-type=block-content]{justify-content:center}.embed-block[data-embed-type=video][data-style-align=right]>div[data-type=block-content]{justify-content:flex-end}.embed-block[data-embed-type=video]>div[data-type=block-content]{border:none}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error{height:400px}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty .media-error-icon,.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error .media-error-icon{display:flex}.embed-block[data-embed-type=video].hover>div[data-type=block-content],.embed-block[data-embed-type=audio].hover>div[data-type=block-content]{outline:none!important}.embed-block[data-embed-type=video].selected>div[data-type=block-content]:before,.embed-block[data-embed-type=audio].selected>div[data-type=block-content]:before{display:none}.embed-block[data-embed-type=video]>div[data-type=block-content],.embed-block[data-embed-type=audio]>div[data-type=block-content]{justify-content:center;width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media.full-screen,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media.full-screen{width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media{display:flex;justify-content:center}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress{position:relative;width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress audio,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress audio{display:block;width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress video,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress video{display:block;max-width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress .uploading-progress-mask,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress .uploading-progress-mask{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#303030;opacity:.8;display:flex;align-items:center;justify-content:center}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress .uploading-progress-mask .uploading-progress-bar,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress .uploading-progress-mask .uploading-progress-bar{width:75%;height:6px;border-radius:3px;display:flex;background-color:#fff;overflow:hidden}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-progress .uploading-progress-mask .uploading-progress-bar .uploading-progress-bar-value,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-progress .uploading-progress-mask .uploading-progress-bar .uploading-progress-bar-value{background-color:#338fe5}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error{width:100%;background:#F8F8F8;outline:1px solid #DEDEDE;border-radius:3px}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error-icon svg,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error-icon svg{width:48px;height:48px;color:#c7c7c7}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error .line-1,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error .line-1{margin-top:10px;font-size:18px;text-align:center;color:#303030}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error .line-2,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error .line-2{margin-top:5px;font-size:14px;text-align:center;color:#606060}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-error .retry-upload,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-error .retry-upload{margin-left:4px;color:#338fe5;cursor:pointer;text-decoration:none}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty{width:100%;background:#FFFFFF;outline:1px solid #DEDEDE;border-radius:3px}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-empty svg,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-empty svg{width:48px;height:48px;color:#c7c7c7}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-element,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-element{width:100%;display:flex;justify-content:center}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-element .video-container video,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-element .video-container video{display:block;min-width:50px;max-width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-element .audio-container,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-element .audio-container{width:100%}.embed-block[data-embed-type=video]>div[data-type=block-content] .media-element .audio-container audio,.embed-block[data-embed-type=audio]>div[data-type=block-content] .media-element .audio-container audio{display:block;width:100%}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=video].comment,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=audio].comment{box-shadow:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=video].comment .media,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=audio].comment .media{box-shadow:0 2px #f8e6ab}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=video].comment.active,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=audio].comment.active{outline:none}.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=video].comment.active .media,.editor-root div.editor-content div[data-type=editor-container] .embed-block[data-type=editor-block][data-embed-type=audio].comment.active .media{box-shadow:none;outline:4px solid #f8e6ab}.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-self>[data-type=block-content]:after,.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-others>[data-type=block-content]:after,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-self>[data-type=block-content]:after,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-others>[data-type=block-content]:after{display:none}.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-self>[data-type=block-content] .media,.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-others>[data-type=block-content] .media,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-self>[data-type=block-content] .media,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-others>[data-type=block-content] .media{position:relative}.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-self>[data-type=block-content] .media:after,.editor-root:not(.readonly) .embed-block[data-embed-type=video].locked-by-others>[data-type=block-content] .media:after,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-self>[data-type=block-content] .media:after,.editor-root:not(.readonly) .embed-block[data-embed-type=audio].locked-by-others>[data-type=block-content] .media:after{content:" ";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;z-index:1;background-color:#303030;opacity:.1}`)),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
2
  (function(b,Hn){typeof exports=="object"&&typeof module<"u"?Hn(exports,require("kiwi-intl"),require("lodash.merge"),require("string-template"),require("nanoid"),require("events"),require("query-string"),require("js-base64"),require("snabbdom"),require("lodash.clonedeep"),require("lodash.isequal"),require("quill-delta"),require("tiny-typed-emitter"),require("lodash.intersection"),require("ot-json1"),require("axios"),require("lodash.findlastindex"),require("reconnecting-websocket"),require("fast-sha256"),require("lodash.debounce"),require("tippy.js"),require("blueimp-md5"),require("css-color-converter"),require("markmap-view"),require("lodash.throttle"),require("prismjs"),require("prismjs/components/prism-c"),require("prismjs/components/prism-cpp"),require("prismjs/components/prism-abap"),require("prismjs/components/prism-arduino"),require("prismjs/components/prism-bash"),require("prismjs/components/prism-basic"),require("prismjs/components/prism-clojure"),require("prismjs/components/prism-coffeescript"),require("prismjs/components/prism-csharp"),require("prismjs/components/prism-css"),require("prismjs/components/prism-dart"),require("prismjs/components/prism-diff"),require("prismjs/components/prism-docker"),require("prismjs/components/prism-elixir"),require("prismjs/components/prism-elm"),require("prismjs/components/prism-erlang"),require("prismjs/components/prism-flow"),require("prismjs/components/prism-fortran"),require("prismjs/components/prism-fsharp"),require("prismjs/components/prism-gherkin"),require("prismjs/components/prism-glsl"),require("prismjs/components/prism-go"),require("prismjs/components/prism-graphql"),require("prismjs/components/prism-groovy"),require("prismjs/components/prism-haskell"),require("prismjs/components/prism-java"),require("prismjs/components/prism-javascript"),require("prismjs/components/prism-json"),require("prismjs/components/prism-julia"),require("prismjs/components/prism-kotlin"),require("prismjs/components/prism-latex"),require("prismjs/components/prism-less"),require("prismjs/components/prism-lisp"),require("prismjs/components/prism-livescript"),require("prismjs/components/prism-lua"),require("prismjs/components/prism-makefile"),require("prismjs/components/prism-markdown"),require("prismjs/components/prism-markup"),require("prismjs/components/prism-matlab"),require("prismjs/components/prism-mermaid"),require("prismjs/components/prism-nix"),require("prismjs/components/prism-objectivec"),require("prismjs/components/prism-ocaml"),require("prismjs/components/prism-pascal"),require("prismjs/components/prism-perl"),require("prismjs/components/prism-php"),require("prismjs/components/prism-powershell"),require("prismjs/components/prism-prolog"),require("prismjs/components/prism-protobuf"),require("prismjs/components/prism-python"),require("prismjs/components/prism-r"),require("prismjs/components/prism-reason"),require("prismjs/components/prism-ruby"),require("prismjs/components/prism-rust"),require("prismjs/components/prism-sass"),require("prismjs/components/prism-scala"),require("prismjs/components/prism-scheme"),require("prismjs/components/prism-scss"),require("prismjs/components/prism-solidity"),require("prismjs/components/prism-sql"),require("prismjs/components/prism-swift"),require("prismjs/components/prism-typescript"),require("prismjs/components/prism-vbnet"),require("prismjs/components/prism-verilog"),require("prismjs/components/prism-vhdl"),require("prismjs/components/prism-visual-basic"),require("prismjs/components/prism-wasm"),require("prismjs/components/prism-yaml"),require("mime-db"),require("dom-to-image"),require("@guyplusplus/turndown-plugin-gfm"),require("turndown"),require("marked"),require("@better-scroll/core"),require("plantuml-encoder"),require("docx")):typeof define=="function"&&define.amd?define(["exports","kiwi-intl","lodash.merge","string-template","nanoid","events","query-string","js-base64","snabbdom","lodash.clonedeep","lodash.isequal","quill-delta","tiny-typed-emitter","lodash.intersection","ot-json1","axios","lodash.findlastindex","reconnecting-websocket","fast-sha256","lodash.debounce","tippy.js","blueimp-md5","css-color-converter","markmap-view","lodash.throttle","prismjs","prismjs/components/prism-c","prismjs/components/prism-cpp","prismjs/components/prism-abap","prismjs/components/prism-arduino","prismjs/components/prism-bash","prismjs/components/prism-basic","prismjs/components/prism-clojure","prismjs/components/prism-coffeescript","prismjs/components/prism-csharp","prismjs/components/prism-css","prismjs/components/prism-dart","prismjs/components/prism-diff","prismjs/components/prism-docker","prismjs/components/prism-elixir","prismjs/components/prism-elm","prismjs/components/prism-erlang","prismjs/components/prism-flow","prismjs/components/prism-fortran","prismjs/components/prism-fsharp","prismjs/components/prism-gherkin","prismjs/components/prism-glsl","prismjs/components/prism-go","prismjs/components/prism-graphql","prismjs/components/prism-groovy","prismjs/components/prism-haskell","prismjs/components/prism-java","prismjs/components/prism-javascript","prismjs/components/prism-json","prismjs/components/prism-julia","prismjs/components/prism-kotlin","prismjs/components/prism-latex","prismjs/components/prism-less","prismjs/components/prism-lisp","prismjs/components/prism-livescript","prismjs/components/prism-lua","prismjs/components/prism-makefile","prismjs/components/prism-markdown","prismjs/components/prism-markup","prismjs/components/prism-matlab","prismjs/components/prism-mermaid","prismjs/components/prism-nix","prismjs/components/prism-objectivec","prismjs/components/prism-ocaml","prismjs/components/prism-pascal","prismjs/components/prism-perl","prismjs/components/prism-php","prismjs/components/prism-powershell","prismjs/components/prism-prolog","prismjs/components/prism-protobuf","prismjs/components/prism-python","prismjs/components/prism-r","prismjs/components/prism-reason","prismjs/components/prism-ruby","prismjs/components/prism-rust","prismjs/components/prism-sass","prismjs/components/prism-scala","prismjs/components/prism-scheme","prismjs/components/prism-scss","prismjs/components/prism-solidity","prismjs/components/prism-sql","prismjs/components/prism-swift","prismjs/components/prism-typescript","prismjs/components/prism-vbnet","prismjs/components/prism-verilog","prismjs/components/prism-vhdl","prismjs/components/prism-visual-basic","prismjs/components/prism-wasm","prismjs/components/prism-yaml","mime-db","dom-to-image","@guyplusplus/turndown-plugin-gfm","turndown","marked","@better-scroll/core","plantuml-encoder","docx"],Hn):(b=typeof globalThis<"u"?globalThis:b||self,Hn(b["oneseditor-editor"]={},b.KiwiIntl,b.merge,b.stringFormat,b.nanoid$1,b.events,b.queryString,b.jsBase64,b.snabbdom,b.cloneDeep,b.isEqual,b.Delta,b.tinyTypedEmitter,b.intersection,b.json1,b.axios,b.findLastIndex,b.ReconnectingWebSocket,b.sha256,b.debounce,b.tippy$1,b.md5,b.cssColorConverter,b.markmap,b.throttle,b.Prism,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,b.mime,b.domToImage,b.turndownPluginGfm,b.TurndownService,b.marked,b.BetterScroll,b.plantumlEncoder,b.docx))})(this,function(b,Hn,As,fB,mB,q5,gB,aa,xi,pB,CB,AB,bt,bB,vB,yB,kB,wB,BB,EB,um,xB,dm,IB,TB,DB,Uee,zee,Vee,Wee,qee,Gee,Zee,Qee,Yee,Jee,Kee,Xee,ete,tte,nte,ote,rte,ite,ste,lte,cte,ate,ute,dte,hte,fte,mte,gte,pte,Cte,Ate,bte,vte,yte,kte,wte,Bte,Ete,xte,Ite,Tte,Dte,Ste,Lte,Mte,Rte,Ote,_te,Fte,Pte,Nte,$te,Hte,jte,Ute,zte,Vte,Wte,qte,Gte,Zte,Qte,Yte,Jte,Kte,Xte,ene,tne,SB,LB,MB,RB,G5,OB,_B,ge){"use strict";var Hee=Object.defineProperty;var jee=(b,Hn,As)=>Hn in b?Hee(b,Hn,{enumerable:!0,configurable:!0,writable:!0,value:As}):b[Hn]=As;var m=(b,Hn,As)=>(jee(b,typeof Hn!="symbol"?Hn+"":Hn,As),As);const Et=n=>n&&typeof n=="object"&&"default"in n?n:{default:n};function Od(n){if(n&&n.__esModule)return n;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const FB=Et(Hn),hm=Et(As),PB=Et(fB),Z5=Et(q5),me=Et(pB),ua=Et(CB),on=Et(AB),fm=Et(bB),_d=Od(vB),NB=Et(yB),$B=Et(kB),HB=Et(wB),jB=Od(BB),Ht=Et(EB),UB=Et(um),zB=Od(um),Fd=Et(xB),VB=Od(IB),WB=Et(TB),da=Et(DB),mm=Et(SB),Q5=Et(LB),qB=Et(RB),Y5=Et(OB),GB=Et(_B);function ZB(n){const e=o=>o<10?`0${String(o)}`:String(o),t=o=>o<10?`00${String(o)}`:o<100?`0${String(o)}`:String(o);return`${n.getFullYear()}-${e(n.getMonth()+1)}-${e(n.getDate())} ${e(n.getHours())}:${e(n.getMinutes())}:${e(n.getSeconds())}.${t(n.getMilliseconds())}`}var ha=(n=>(n.DEBUG="DEBUG",n.INFO="INFO ",n.WARN="WARN ",n.ERROR="ERROR",n))(ha||{});const J5=new Map,Fc=class{constructor(e){m(this,"times",new Map);this.category=e}shouldLog(e){const t=Object.values(ha).indexOf(e),o=Object.values(ha).indexOf(Fc.level);return t>=o}_log(e,t,o,r){var B;if(!this.shouldLog(e))return;const i=typeof process>"u"?{}:process;let s="";if(typeof t=="object")try{s="message"in t?t.message:JSON.stringify(t,null,4)}catch{s=""}else typeof t=="string"?t&&(s=t):s=JSON.stringify(t);s=r?`${s} - ${r}`:s;const l=`${this.category}`;let a=console.log;e==="WARN "&&(a=console.warn),e==="ERROR"&&(a=console.error);const d=`${ZB(new Date)}`,h=e,p=l,A=Fc.extParams?"[{date}] {level}: [{module} {extParams}] - {msg}":"[{date}] {level}: [{module}] - {msg}",v=[PB.default(((B=i.env)==null?void 0:B.LOG_TEMPLATE)||A,{date:d,level:h,module:p,msg:s,extParams:Fc.extParams})];if(typeof t=="object"){const D=t.stack;D&&v.push(D)}if(a===console.error&&Fc.debugMode){const D=new Error().stack;D&&v.push(D)}a(...v),o&&this._log(e,o)}log(e,t){this._log("INFO ",e,void 0,t)}debug(e,t){this._log("DEBUG",e,void 0,t)}info(e,t){this._log("INFO ",e,void 0,t)}warn(e,t,o){this._log("WARN ",e,t,o)}error(e,t,o){this._log("ERROR",e,t,o)}time(e){this.times.set(e,Date.now())}timeEnd(e){this.timeLog(e),this.times.delete(e)}timeLog(e){const t=this.times.get(e);if(!t){this.warn(`no time label: ${e}`);return}this.debug(`${e}: ${Date.now()-t}`)}static setExtParams(e){this.extParams=e}};let Ii=Fc;m(Ii,"debugMode",!1),m(Ii,"level","DEBUG"),m(Ii,"extParams","");function S(n){const e=J5.get(n);if(e)return e;const t=new Ii(n);return J5.set(n,t),t}const QB={name:"ONES Editor",date:{dateFromFuture:"From the future",dateJustNow:"Just now",dateYesterday:"Yesterday",dateMinutesAgo:"{num} minutes ago",date1HourAgo:"1 hour ago",dateHoursAgo:"{num} hours ago",dateDaysAgo:"{num} days ago",dateWeeksAgo:"{num} weeks ago"},common:{cancel:"Cancel"},docx:{imageExportFailed:"Failed to load image"}},YB={name:"Ones Editor",date:{dateFromFuture:"\u6765\u81EA\u672A\u6765",dateJustNow:"\u521A\u521A",dateYesterday:"\u6628\u5929",dateMinutesAgo:"{num}\u5206\u949F\u524D",date1HourAgo:"1\u5C0F\u65F6\u524D",dateHoursAgo:"{num}\u5C0F\u65F6\u524D",dateDaysAgo:"{num}\u5929\u524D",dateWeeksAgo:"{num}\u5468\u524D"},common:{cancel:"\u53D6\u6D88"},docx:{imageExportFailed:"\u56FE\u7247\u52A0\u8F7D\u5931\u8D25"}},JB={name:"ONES \u30A8\u30C7\u30A3\u30BF\u30FC",date:{dateFromFuture:"\u672A\u6765\u304B\u3089",dateJustNow:"\u305F\u3060\u4ECA",dateYesterday:"\u6628\u65E5",dateMinutesAgo:"{num}\u5206\u524D",date1HourAgo:"1\u6642\u9593\u524D",dateHoursAgo:"{num}\u6642\u9593\u524D",dateDaysAgo:"{num}\u65E5\u524D",dateWeeksAgo:"{num}\u9031\u524D"},common:{cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB"},docx:{imageExportFailed:"\u753B\u50CF\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F"}},KB=S("i18n"),XB={"en-US":QB,"zh-CN":YB,"ja-JP":JB},Pd=FB.default.init("en-US",XB);function eE(n=void 0){Pd.setLang&&Pd.setLang(n||"en-US")}function tE(n){hm.default(Pd.__metas__,n)}function nE(n,e){const t=Pd.get(n,e);return t===n&&KB.warn(`no locale value for key ${n}`),t}const R=Object.freeze(Object.defineProperty({__proto__:null,setLang:eE,mergeLang:tE,t:nE},Symbol.toStringTag,{value:"Module"})),nne="";class K5{constructor(e,t){this.editor=e,this.data=t}getData(){return this.data}getEditor(){return this.editor}destroy(){}}class oE extends Error{constructor(e){if(super(e),this.code="Assert",this.stack){const t=this.stack.split(`
3
3
  `);if(t.length>1)if(this.lineNumber&&this.columnNumber){const o=t[1].match(/(.*)@(.*):(\d+):(\d+)/);o&&(this.lineNumber=+o[3],this.columnNumber=+o[4],this.fileName=o[2]),t.splice(0,1)}else t.splice(1,1);this.stack=t.join(`
4
4
  `)}}}function g(n,e,t){if(!e)throw n.error(`assert failed: ${t}`),new oE(t)}const rE=mB.customAlphabet("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_",8),X5="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function iE(){return X5[Date.now()%X5.length]}const K=()=>`${iE()}${rE()}`;class eC extends Z5.default.EventEmitter{constructor(t=60){super();m(this,"cache",new Map);m(this,"expiredSeconds");this.expiredSeconds=t,this.startAutoClear()}delete(t){const o=this.cache.get(t);o&&this.emit("delete",o.data),this.cache.delete(t)}getSync(t,o){const r=this.cache.get(t),i=Date.now();if(r&&(i-r.lastRead)/1e3<this.expiredSeconds)return r.lastRead=i,r.data;const s=o(t);return this.cache.set(t,{lastRead:i,data:s}),s}async get(t,o){const r=this.cache.get(t),i=Date.now();if(r&&(i-r.lastRead)/1e3<this.expiredSeconds)return r.lastRead=i,r.data;const s=await o(t);return this.cache.set(t,{lastRead:i,data:s}),s}startAutoClear(){setInterval(()=>{const t=Date.now();Array.from(this.cache.entries()).forEach(([o,r])=>{(t-r.lastRead)/1e3>this.expiredSeconds&&this.delete(o)})},10*1e3)}}class fa{constructor(){m(this,"_callbacks",new Set)}get callbacks(){return Array.from(this._callbacks)}registerCallback(e){this._callbacks.add(e)}unregisterCallback(e){this._callbacks.delete(e)}clearCallbacks(){this._callbacks.clear()}}const sE=S("await-locker");class lE{constructor(){m(this,"_acquired",!1);m(this,"_waitingResolvers",[]);this._acquired=!1,this._waitingResolvers=[]}acquireAsync(e){return this._acquired?new Promise((t,o)=>{this._waitingResolvers.push(t),e&&e>0&&setTimeout(()=>{const r=this._waitingResolvers.indexOf(t);if(r!==-1){this._waitingResolvers.splice(r,1);const i=new Error(`lock timeout: ${e}, waiting resolves: ${this._waitingResolvers.length}`);o(i)}},e)}):(this._acquired=!0,Promise.resolve())}tryAcquire(){return this._acquired?!1:(this._acquired=!0,!0)}release(){if(!this._acquired)throw new Error("Cannot release an unacquired lock");if(this._waitingResolvers.length>0){const e=this._waitingResolvers.shift();g(sE,e,"Resolver missing"),e(void 0)}else this._acquired=!1}acquired(){return this._acquired}debug(){const e=this._waitingResolvers.length;return console.log(`waiting resolves: ${e}`),{waitingCount:e}}}class cE{constructor(){m(this,"_map");this._map=new Map}getLocker(e){let t=this._map.get(e);return t||(t=new lE,this._map.set(e,t)),t}async lock(e,t){await this.getLocker(e).acquireAsync(t)}release(e){this.getLocker(e).release()}remove(e){this.isLocking(e)||this._map.delete(e)}isLocking(e){return this._map.has(e)?this.getLocker(e).acquired():!1}}const wo=new cE;/**
@@ -12,7 +12,7 @@
12
12
  Available method signatures are:
13
13
  animateScrollTo(y:number, options)
14
14
  animateScrollTo([x:number | null, y:number | null], options)
15
- animateScrollTo(scrollToElement:Element, options)`;t+=i.horizontalOffset,o+=i.verticalOffset;const p=h.getMaxHorizontalScroll(),A=h.getHorizontalScroll();t>p&&(t=p);const v=t-A,B=h.getMaxVerticalScroll(),D=h.getVerticalScroll();D<o?o-=window.innerHeight*3/4:o-=window.innerHeight*1/4,o>B&&(o=B);const T=o-D,_=Math.abs(Math.round(v/1e3*i.speed)),M=Math.abs(Math.round(T/1e3*i.speed));let H=_>M?_:M;return H<i.minDuration?H=i.minDuration:H>i.maxDuration&&(H=i.maxDuration),new Promise((z,q)=>{v===0&&T===0&&z(!0),Lr.remove(h.element,!0);let re;const fe=()=>{Yt(),cancelAnimationFrame(re),z(!1)};Lr.add(h.element,fe);const Be=Ln=>Ln.preventDefault(),je=i.cancelOnUserAction?fe:Be,Ue=i.cancelOnUserAction?{passive:!0}:{passive:!1},tt=["wheel","touchstart","keydown","mousedown"],Yt=()=>{tt.forEach(Ln=>{h.element.removeEventListener(Ln,je,Ue)})};tt.forEach(Ln=>{h.element.addEventListener(Ln,je,Ue)});const Wo=Date.now(),Nt=()=>{const Ln=Date.now()-Wo,vr=Ln/H,bn=Math.round(A+v*i.easing(vr)),an=Math.round(D+T*i.easing(vr));Ln<H&&(bn!==t||an!==o)?(h.scrollTo(bn,an),re=requestAnimationFrame(Nt)):(h.scrollTo(t,o),cancelAnimationFrame(re),Yt(),Lr.remove(h.element,!1),z(!0))};re=requestAnimationFrame(Nt)})}function ws(n,e,t){return n.left<=e&&e<=n.right&&n.top<=t&&t<=n.bottom}function gE(n){const e="\xA0";if(!n)return"";if(n===" ")return e;let t=n;return t.startsWith(" ")&&(t=e+t.substr(1)),t.endsWith(" ")&&(t=t.substr(0,t.length-1)+e),t=t.replace(/ {2}/g,` ${e}`),t}function lC(n){if(!/["'&<>]/.exec(n))return n;const o={'"':"&quot;","'":"&#39;","&":"&amp;","<":"&lt;",">":"&gt;"};return n.split("").map(l=>o[l]||l).join("")}function cC(n){const e=document.getElementById(n);e&&e.remove()}function aC(n,e){const t=document.getElementById(e);if(t)return t.textContent=n,t;const o=document.createElement("style");return o.id=e,o.textContent=n,document.head.append(o),o}function pa(n){const e="custom-cursor-style";if(n){const t=`body * { cursor: ${n} !important}`;aC(t,e)}else cC(e)}const uC=3,dC=S("drag-drop");class hC{constructor(e){m(this,"dragStarted",!1);m(this,"mouseDownEvent",null);m(this,"_dragOffsetX",0);m(this,"_dragOffsetY",0);m(this,"handleMouseDown",e=>{e.preventDefault(),e.stopPropagation(),this.mouseDownEvent=e;const t=this.options.elem.getBoundingClientRect();this._dragOffsetX=this.mouseDownEvent.x-t.left,this._dragOffsetY=this.mouseDownEvent.y-t.top,this.bindEvents()});m(this,"handleMouseMove",e=>{var i;e.preventDefault(),e.stopPropagation(),g(dC,this.mouseDownEvent,"no mouse down event");const t=e.x-this.mouseDownEvent.x,o=e.y-this.mouseDownEvent.y;if(this.dragStarted){this.onDragging(e,t,o);return}const r=(i=this.options.minThreshold)!=null?i:uC;(Math.abs(t)>=r||Math.abs(o)>=r)&&this.onDragStart(this.mouseDownEvent)});m(this,"handleMouseUp",e=>{if(e.button===0){g(dC,this.mouseDownEvent,"no mouse down event");const t=e.x-this.mouseDownEvent.x,o=e.y-this.mouseDownEvent.y;this.onDragEnd(e,t,o),e.preventDefault(),e.stopPropagation()}});this.options=e,this.options.mouseDownEvent?this.handleMouseDown(this.options.mouseDownEvent):this.trackEvents()}get data(){return this.options.data}get dragOffsetX(){return this._dragOffsetX}get dragOffsetY(){return this._dragOffsetY}get dragOffset(){return{x:this._dragOffsetX,y:this._dragOffsetY}}trackEvents(){this.options.elem.addEventListener("mousedown",this.handleMouseDown)}untrackEvents(){this.options.elem.removeEventListener("mousedown",this.handleMouseDown)}bindEvents(){document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}unbindEvents(){document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}onDragStart(e){this.dragStarted=!0,this.options.cursor&&pa(this.options.cursor),this.options.onDragStart(this,e,this.options.elem)}onDragging(e,t,o){this.options.onDragging(this,e,this.options.elem,t,o)}onDragEnd(e,t,o){this.options.cursor&&pa(null),this.dragStarted&&this.options.onDragEnd(this,e,this.options.elem,t,o),this.unbindEvents(),this.dragStarted=!1}destroy(){this.unbindEvents(),this.untrackEvents()}}function wm(n){return new hC(n)}const pE=S("character");function fC(n,e){for(let t=0;t<e.length;t++){const o=e[t][0],r=e[t].length>1?e[t][1]:null;if(r===null&&n===o||r!==null&&n>=o&&n<=r)return!0}return!1}function mC(n){const e=n.charAt(0);return e>="0"&&e<="9"}function gC(n){const e=n.charAt(0);return e>="a"&&e<="z"||e>="A"&&e<="Z"||e.toUpperCase()!==e.toLowerCase()?!0:RegExp(/^\p{L}/,"u").test(e)}function jd(n){const e=[[9,13],[32],[160]];return fC(n.charCodeAt(0),e)}function pC(n){const e=[[12352,12687],[13056,13183],[13312,15661],[19968,40959],[63744,64255],[44032,55215]];return fC(n.charCodeAt(0),e)}function Bm(n,e){let t=e;return g(pE,t.length===1,"invalid char length"),t==="]"&&(t="\\]"),t==="\\"&&(t="\\\\"),n.replace(new RegExp(`^[${t}]+|[${t}]+$`,"g"),"")}const Mr=navigator.userAgent;function CC(){const n=navigator.userAgent.toLowerCase();return n.indexOf("safari")!==-1&&!(n.indexOf("chrome")>-1)}function Em(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}const Kt={isAndroid:!!Mr.match(/Android/i),isIOS:!!Mr.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/i),isIPad:!!Mr.match(/iPad/i),isIPhone:!!Mr.match(/iPhone/i),isLinux:!!Mr.match(/Linux/i),isMac:!!Mr.match(/Macintosh/i),isMobile:!!Mr.match(/AppleWebKit.*Mobile.*/i),isWindows:!!Mr.match(/Window/i),isIe:!!Mr.match(/msie|trident/i),isSafari:CC(),isMobileSafari:!1};Kt.isMobileSafari=Kt.isMobile&&Kt.isSafari;function xm(n){return n?n.length===1||n==="Process"||n==="Unidentified"&&Kt.isAndroid:!1}function AC(n){switch(n){case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":case"End":case"Home":case"PageDown":case"PageUp":return!0;default:return!1}}function CE(n){return AC(n.key)}function AE(n){switch(n){case"ArrowUp":case"ArrowLeft":case"Home":case"PageUp":return!0;default:return!1}}function Bs(n){return n.ctrlKey||n.altKey||n.shiftKey||n.metaKey}function bE(n){return n.key?!!(n.ctrlKey||n.metaKey||n.altKey):!1}function bC(n){return Kt.isMac?n.metaKey&&!n.ctrlKey:!n.metaKey&&n.ctrlKey}function vE(n){return bC(n)&&!n.altKey&&!n.shiftKey}function yE(n){return!n.metaKey&&!n.ctrlKey&&!n.shiftKey&&n.altKey}function vC(n){return!Bs(n)&&n.key==="Enter"}function kE(n){return n.key==="Enter"&&n.shiftKey&&!n.altKey&&!n.ctrlKey&&!n.metaKey}function Im(n){return!Bs(n)&&n.key==="Escape"}function wE(n){return!Bs(n)&&n.key==="Delete"}function yC(n){return!Bs(n)&&n.key==="Backspace"}function BE(n){return!Bs(n)&&n.key==="Tab"}function EE(n){return n.shiftKey&&n.key==="Tab"&&!n.ctrlKey&&!n.metaKey}function Bo(n){if(!n)return"";if(Kt.isMac){const e=n.replace("CtrlOrCmd","\u2318").replace("Shift","\u21E7").replace("Ctrl","\u2303").replace("Alt","\u2325"),t={"\u2318":4,"\u21E7":3,"\u2325":2,"\u2303":1};return e.split(/(?=[\s\S])/u).sort((r,i)=>{var a,d;const s=(a=t[r])!=null?a:5,l=(d=t[i])!=null?d:5;return s-l}).join("")}return n.replace("CtrlOrCmd","Ctrl")}function kC(n){const e={ctrl:!1,alt:!1,shift:!1,cmd:!1,key:""},t=n.toLocaleUpperCase().split("+");for(let o=0;o<t.length;o++){const r=t[o];r==="CTRL"||r==="CONTROL"?e.ctrl=!0:r==="ALT"||r==="OPTION"?e.alt=!0:r==="SHIFT"?e.shift=!0:r==="CMD"||r==="COMMAND"?e.cmd=!0:r==="CMDORCTRL"||r==="CTRLORCMD"?Kt.isMac?e.cmd=!0:e.ctrl=!0:r==="SPACE"?e.key=" ":e.key=r.substring(0,1)+r.substring(1).toLocaleLowerCase()}return e}function Rr(n,e){const t=kC(e);return t.ctrl!==n.ctrlKey||t.alt!==n.altKey||t.shift!==n.shiftKey||Kt.isMac&&t.cmd!==n.metaKey?!1:t.key.length===1?t.key===n.key.toUpperCase():t.key.toUpperCase()===n.key.toUpperCase()}function Tm(n,e){return gB.stringifyUrl({url:n,query:e})}function Es(n){return typeof n=="string"?aa.Base64.encode(n,!0):aa.Base64.fromUint8Array(n,!0)}function Ud(n){return aa.Base64.decode(n)}function xE(n){return aa.Base64.toUint8Array(n)}function Dm(n){return new Blob([aa.Base64.toUint8Array(n)])}const IE=xi.init([xi.classModule,xi.styleModule,xi.datasetModule,xi.attributesModule,xi.propsModule]);function Ca(n,e){const t=xi.toVNode(n),o=xi.toVNode(e);IE(t,o)}async function Sm(n,e){const t=new FileReader,o=new Promise((i,s)=>{t.onload=i,t.onerror=s});return t.readAsDataURL(new Blob([n],{type:e})),await o,t.result}async function Ul(n){const e=new FileReader,t=new Promise((r,i)=>{e.onload=r,e.onerror=i});return e.readAsDataURL(n),await t,e.result}function TE(n,...e){const t=n.tagName.toLowerCase();for(let o=0,r=e.length;o<r;o++)if(t===e[o].toLowerCase())return!0;return!1}function oo(n,e){let t=n;for(;t;){const o=window.getComputedStyle(t);if(e!=null&&e.horizontal){if(/auto|scroll/i.test(o.overflowX))break}else if(/auto|scroll/i.test(o.overflowY))break;t=t.parentElement}return(!t||TE(t,"body"))&&(t=document.documentElement),t}function wC(n){n.preventDefault(),n.stopPropagation()}function BC(n){if(document.querySelector(`.editor-disable-scroll[data-scroll-id="${n}"]`))return;const e=w("div",["editor-disable-scroll"],null);e.setAttribute("data-scroll-id",n),e.addEventListener("wheel",wC,{passive:!1}),document.body.appendChild(e)}function EC(n){const e=document.querySelector(`.editor-disable-scroll[data-scroll-id="${n}"]`);e&&(e.removeEventListener("wheel",wC),e.remove())}function Lm(n,e,t){const o=new Blob([n]),r=new File([o],t,{type:e});return URL.createObjectURL(r)}function zd(n){const e=document.createElement("template");if("content"in e)return e.innerHTML=n,document.importNode(e.content,!0);const t=document.createDocumentFragment(),o=document.createElement("div");for(o.innerHTML=n;o.firstChild;)t.appendChild(o.firstChild);return t}function xC(n){const e=document.createElement("div");return e.appendChild(n),e.innerHTML}function IC(n){let e=n.getPropertyValue("font");if(e)return e;const t=n.getPropertyValue("font-style"),o=n.getPropertyValue("font-variant"),r=n.getPropertyValue("font-weight"),i=n.getPropertyValue("font-size"),s=n.getPropertyValue("font-family");return e=`${t} ${o} ${r} ${i} ${s}`.replace(/ +/g," ").trim(),e}function Vd(n,e){const o=(Vd.canvas||(Vd.canvas=document.createElement("canvas"))).getContext("2d");return o?(typeof e=="string"?e?o.font=e:o.font=IC(window.getComputedStyle(document.body)):e instanceof Element&&(o.font=IC(window.getComputedStyle(e))),o.measureText(n).width+4):200}const DE=S("editor-clipboard");async function SE(n,e){if(e.clipboardData){const t=e.clipboardData;for(const o of n)t.setData(o.type,o.data);return!0}return!1}async function Mm(n){try{const e={};n.forEach(o=>{e[o.type]=o.data});const t=new ClipboardItem(e);return await navigator.clipboard.write([t]),!0}catch(e){return DE.error(e),!1}}function zl(n,e){return new Promise((t,o)=>{const r=document.createElement("input");r.type="file",r.style.display="none",e!=null&&e.multiple&&(r.multiple=!0),r.accept=n,r.onchange=()=>{const i=r.files;if(i){const s=e!=null&&e.multiple?Array.from(i):i[0];t(s)}r.remove()},r.onerror=i=>{o(i),r.remove()},r.click()})}function Wd(n){return Array.isArray(n)?n.every(e=>e instanceof File):!1}function Aa(n){const e=n;if(!e)return"";const t=e.lastIndexOf(".");return t===-1?"":e.slice(t+1)}function qd(n,e){const t=document.createElement("a");t.setAttribute("download",`${e||""}`),t.setAttribute("href",`${n}`),t.click(),t.remove()}const TC=S("auto-scroll");function DC(n,e){return!(n.scrollHeight===n.clientHeight||e==="top"&&n.scrollTop===0||e==="bottom"&&n.scrollTop+n.clientHeight===n.scrollHeight||e==="left"&&n.scrollLeft===0||e==="right"&&n.scrollLeft+n.clientWidth===n.scrollWidth)}function SC(n,{direction:e,step:t}){let o=null;const r=e==="left"||e==="right",i=()=>DC(n,e)?(r?e==="left"?n.scrollLeft=Math.max(n.scrollLeft-t,0):n.scrollLeft=Math.min(n.scrollLeft+t,n.scrollWidth):e==="top"?n.scrollTop=Math.max(n.scrollTop-t,0):n.scrollTop=Math.min(n.scrollTop+t,n.scrollHeight),o=requestAnimationFrame(i),o):(TC.debug("No need for scroll"),null);return o=requestAnimationFrame(i),()=>{o&&cancelAnimationFrame(o)}}class Gd{constructor(e){m(this,"cancelScroll",null);m(this,"options");m(this,"scrollDomInfo");m(this,"scrolling",!1);m(this,"getScrollingDirection",e=>{const{x:t,y:o}=e,{top:r,bottom:i,left:s,right:l}=this.scrollDomInfo,{edge:a}=this.options;return a.top&&o<=a.top+r?"top":a.bottom&&o>=i-a.bottom?"bottom":a.left&&t<=s+a.left?"left":a.right&&t>=l-a.right?"right":null});m(this,"handleMouseMove",e=>{var s;const{scrollElement:t,step:o=10,onDirectionChange:r}=this.options,i=this.getScrollingDirection(e);if(i){if(this.scrolling)return;TC.debug(`scroll direction: ${i}`),this.cancelScroll=SC(t,{direction:i,step:o}),r==null||r(i),this.scrolling=!0}else(s=this.cancelScroll)==null||s.call(this),this.scrolling=!1});this.options=e,this.scrollDomInfo=this.getScrollDomInfo()}getScrollDomInfo(){const{scrollElement:e}=this.options,t=e.getBoundingClientRect(),o=t.top,r=t.left,i=t.bottom,s=t.right;return{left:r,top:o,right:s,bottom:i}}active(){const{trackMouseEvent:e="mousemove"}=this.options;window.addEventListener(e,this.handleMouseMove,!0)}inactive(){var t;const{trackMouseEvent:e="mousemove"}=this.options;window.removeEventListener(e,this.handleMouseMove,!0),(t=this.cancelScroll)==null||t.call(this),this.scrolling=!1}}function LC(n,e){if(n===0)return"0 Bytes";const t=1024,o=e||2,r=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(n)/Math.log(t));return`${parseFloat((n/t**i).toFixed(o))} ${r[i]}`}function ba(n,e){let t=`${n}`;const o=e-t.length;for(let r=0;r<o;r++)t=`0${t}`;return t}const{t:xs}=R;function Rm(n,e){const t=new Date(n).getTime()+864e5*e;return new Date(t)}function LE(n,e){const t=n,o=Math.floor(e/12),r=e-o*12;return o&&t.setFullYear(t.getFullYear()+o),r&&t.setMonth(t.getMonth()+r),t}function ME(n,e){return Rm(n,e)}function Om(n,e){const t=new Date(n),o=new Date(e);return t.getDate()===o.getDate()&&t.getMonth()===o.getMonth()&&t.getFullYear()===o.getFullYear()}function MC(n){const e=new Date,t=new Date(n);return Om(e,t)}function RC(n){const e=Rm(new Date,-1);return Om(e,n)}function RE(n,e){return Math.round((n.getTime()-e.getTime())/864e5)}function _m(n,e){const t=new Date(n);if(e){const o=t.getFullYear(),r=t.getMonth()+1,i=t.getDate(),s=t.getHours(),l=t.getMinutes();let a=e;return a=a.replace("YYYY",`${o}`),a=a.replace("MM",ba(r,2)),a=a.replace("DD",ba(i,2)),a=a.replace("M",`${r}`),a=a.replace("D",`${i}`),a=a.replace("hh",ba(s,2)),a=a.replace("mm",ba(l,2)),a=a.replace("h",`${s}`),a=a.replace("m",`${l}`),a}return n.toLocaleDateString()}function Fm(n,e){const t=new Date(n),o=new Date;if(t.getTime()-o.getTime()>10*1e3)return R.t("date.dateFromFuture");if(MC(t)){const i=(o.getTime()-n.getTime())/1e3;if(i<10*60)return xs("date.dateJustNow");if(i<60*60)return xs("date.dateMinutesAgo",{num:`${Math.floor(i/60)}`});const s=Math.floor(i/60/60);return s===1?xs("date.date1HourAgo"):xs("date.dateHoursAgo",{num:`${s}`})}if(RC(n))return xs("date.dateYesterday");const r=Math.floor((o.getTime()-n.getTime())/1e3/24/60/60)+1;return r<14?xs("date.dateDaysAgo",{num:`${r}`}):r<28?xs("date.dateWeeksAgo",{num:`${Math.round(r/7)}`}):_m(n,e)}function Pm(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function OE(n,e,t){return n.replace(new RegExp(Pm(e),"g"),t)}function _E(n,e,t){return n.replace(new RegExp(Pm(e),"gi"),t)}function OC(n,e,t){const r=document.createElement("canvas").getContext("2d");if(!r)return null;if(r.font=String(e),r.measureText(n).width>t){let s=0,l=0;for(;l<t;)l=r.measureText(n.slice(0,s)).width,s++;return`${n.slice(0,s-2)}...`}return n}const _C=/[\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff66-\uff9f\uAC00-\uD7AF]/,FC=" -\x7F0-9!-/:-@[-`{-~\u0370-\u03FF\u0400-\u04FF",FE=new RegExp(`[${FC}]`),PE=new RegExp(`([^(${FC})])`,"g"),PC=/(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/;function NC(n){return n.length===0?0:n.split("").reduce((e,t)=>{const o=(e<<5)-e+t.charCodeAt(0);return o&o},0)}function NE(n,e=1){var o,r;return(r=((o=Array.from(n))==null?void 0:o.filter(i=>_C.test(i))).slice(-e))==null?void 0:r.join("")}function $E(n,e=1){var r;const t=Array.from((r=n==null?void 0:n.replace(PE,""))==null?void 0:r.split(/\s/));return t.reduce((i,s,l)=>{var a,d;return l===t.length-1&&i.length<e?`${i}${(a=s==null?void 0:s.slice(0,e-i.length))!=null?a:""}`:`${i}${(d=s[0])!=null?d:""}`},"").slice(0,e)}function HE(n,e=1){var o,r;return(r=((o=Array.from(n))==null?void 0:o.filter(i=>PC.test(i))).slice(-e))==null?void 0:r.join("")}function jE(n,e=1){var t,o;return(o=(t=Array.from(n))==null?void 0:t.slice(0,e))==null?void 0:o.join("")}function Zd(n,e=1){if(!n||n.length===0)return"";const t=_C.test(n),o=FE.test(n),r=PC.test(n);switch(!0){case t:return NE(n,e);case o:return $E(n,e);case r:return HE(n,e);default:return jE(n,e)}}var $C=(n=>(n.blue="#338FE5",n.cyan="#34AFDE",n.teal="#2CB2AE",n.green="#24B47E",n.kelly="#8AAB3F",n.yellow="#F0A100",n.orange="#EB6414",n.red="#E52727",n.fuchsia="#BE507D",n.purple="#9678D3",n))($C||{});function Qd(n){const e=Object.values($C),t=Math.abs(typeof n=="string"&&n.trim()?NC(n.trim()):0)%e.length;return e[t]}const HC=S("container-children");function vt(n){const e=Array.from(n.querySelectorAll(":scope > .container-blocks > div[data-type=editor-block]"));return g(HC,e.length>0,"container have not any child block"),e}function St(n){const e=n.querySelector(":scope > .container-blocks > div[data-type=editor-block]");return g(HC,e,"container have not any child block"),e}function Gt(n){const e=vt(n);return e[e.length-1]}function Eo(n){return vt(n).length}function Or(n,e){return vt(n)[e]}const xo=S("block-dom");function Is(n){return n instanceof HTMLDivElement?n.getAttribute("data-type")==="editor-block":!1}function jC(n){return n instanceof HTMLElement&&n.getAttribute("data-type")==="block-tools"}function UC(n){W(n,"block-hidden")}function zC(n){te(n,"block-hidden")}function Yd(n){return!xe(n,"block-hidden")}function ie(n){const{id:e}=n;return g(xo,e,"no block id"),e}function De(n){const e=n.getAttribute("data-block-type");return g(xo,e,"invalid block dom, no data-type"),e}function oe(n){const e=n instanceof Element?n:n.parentElement;if(!e)return null;const t=e.closest("div[data-type=editor-block]");return t||null}function Ts(n){const e=n instanceof Element?n:n.parentElement;if(!e)return null;const t=e.closest("div[data-type=editor-block]:not(:scope)");return t||null}function ne(n){const e=n.closest("div[data-type=editor-container]");return g(xo,e,"failed to get block container"),e}function Re(n){const e=n.querySelector(":scope >div[data-type=block-content]");return g(xo,e,"no block content"),e}function lt(n){let e=n.querySelector(":scope >div[data-type=block-tools]");return e||(e=w("div",[],n),e.setAttribute("data-type","block-tools")),g(xo,e,"no block tools"),e}function Jd(n){const e=n.querySelector(":scope >div[data-type=block-tools]");return e||null}function VC(n){let e=n.querySelector(":scope > div[data-type=block-background]");return e||(e=w("div",[],n),e.setAttribute("data-type","block-background")),e}function WC(n,e,t){const o=n.editorDecorators.decorateBlock(e,t),{id:r,type:i}=o;g(xo,r,"no block id");const s=w("div",[`${i}-block`],null);s.id=r,s.setAttribute("data-type","editor-block"),s.setAttribute("data-block-type",i);const l=n.editorBlockRenders.renderBlock(n,e,t);return l.classes&&W(s,...l.classes),l.attributes&&Object.entries(l.attributes).forEach(([a,d])=>{s.setAttribute(a,d)}),l.styles&&Object.entries(l.styles).forEach(([a,d])=>{s.style.setProperty(a,d)}),s}function Ds(n,e){const t=w(e,[],null);return t.setAttribute("data-type","block-content"),n&&n.appendChild(t),t}function qC(n){const e=w("span",[`${n.type}-box`],null);return e.setAttribute("data-type","editor-box"),e.setAttribute("data-box-type",n.type),e.id=n.id,e}function va(n){const e=n.getAttribute("data-box-type");return g(xo,e,"not a valid box element, no type"),e}function Nm(n){return n instanceof HTMLSpanElement?n.getAttribute("data-type")==="editor-box":!1}function GC(n){const{id:e}=n;return g(xo,e,"no box id"),e}function $m(n){const e=n instanceof Element?n:n.parentElement;if(!e)return null;const t=e.closest("span[data-type=editor-box]");return t||null}function ZC(n){n.innerHTML="",w("span",["box-space-start"],n,ma);const e=w("span",[],n);return e.setAttribute("data-type","box-content"),w("span",["box-space-start"],n,ma),e}function Hm(n){const e=n.querySelector("span[data-type=box-content]");return g(xo,e,"invalid box dom, no content"),e}function QC(n,e){const t=w("span",[`${n}-insertion`],null);return t.setAttribute("data-type","editor-insertion"),t.setAttribute("data-insertion-id",e),t}function YC(n,e){return n.rootContainer.querySelector(`[data-insertion-id=${e}]`)}function JC(n){n.innerHTML="",w("span",["insertion-space-start"],n,ma);const e=w("span",[],n);return e.setAttribute("data-type","insertion-content"),w("span",["insertion-space-start"],n,ma),e}function jm(n){const e=n.querySelector("span[data-type=insertion-content]");return g(xo,e,"invalid insertion-child dom, no content"),e}function ct(n){let e=n.previousElementSibling;for(;e;){if(Is(e))return e;e=e.nextElementSibling}return null}function Ze(n){let e=n.nextElementSibling;for(;e;){if(Is(e))return e;e=e.nextElementSibling}return null}function Ss(n){let e=n.previousElementSibling;for(;e;){if(Is(e)&&Yd(e))return e;e=e.previousElementSibling}return null}function Ls(n){let e=n.nextElementSibling;for(;e;){if(Is(e)&&Yd(e))return e;e=e.nextElementSibling}return null}function be(n){const e=ne(n),o=vt(e).indexOf(n);return g(xo,o!==-1,"invalid block & container dom, failed to get block index"),o}function Um(n){return!n||!(n instanceof Node)?!1:!!oe(n)}function Ms(n){if(!Um(n))return!1;const e=n,t=e instanceof Element?e:e.parentElement;return t?!!t.closest("div[data-type=block-tools]"):!1}const KC=S("block-class");function Qe(n,e){return n.editorBlocks.getBlockClass(De(e))}function XC(n,e){const t=n.editorBlocks.getBlockClass(De(e));return g(KC,t.blockKind==="text",`is not a text block, ${t.blockType}`),t}function jn(n,e){const t=n.editorBlocks.getBlockClass(De(e));return g(KC,t.blockKind==="complex",`is not a text block, ${t.blockType}`),t}function Rs(n,e){return n.editorBlocks.getBlockClass(e)}function ee(n,e){return Qe(n,e).blockKind==="text"}function ya(n,e){return n.editorBlocks.getBlockClass(e).blockKind==="text"}function Le(n,e){return Qe(n,e).blockKind==="complex"}function UE(n,e){return!Le(n,e)}function Io(n,e){return Qe(n,e).blockKind}function To(n,e,t){return Qe(n,e).getCaretRect(e,t)}const e4=S("container");function _r(n){return n.getAttribute("data-type")==="editor-container"}function Xe(n){return xe(n,"root")}function Do(n){return xe(n,"child")}function ae(n){const e=n.getAttribute("data-container-id");return g(e4,e,"no id for container"),Xe(n)&&g(e4,e==="root",`invalid root container id, : ${e}`),e}function t4(n,e){const t=ae(n);return e.getContainerBlocks(t)}const zm=S("block");function ue(n,e){return Qe(n,e).getBlockTextLength(e)}function n4(n){n.editorBlocks.forEach(e=>{e.clearSelection(n)})}function o4(n,e,t,o){Qe(n,e).updateSelection(n,e,t,o)}function Vm(n){for(;;){const e=ne(n);if(Xe(e))return n;const t=oe(e);g(zm,t,"no parent block exists for child container"),n=t}}function r4(n,e){const t=Qe(n,e);if(!!t.getMinWidth)return t.getMinWidth(n,e)}function i4(n,e,t){const o=Qe(n,e);o.handleBlockElementUpdated&&o.handleBlockElementUpdated(n,e,t)}function Kd(n,e,t,o){try{const r=Rs(n,t).convertFrom;return r?r(n,e,o):null}catch{return zm.debug(`unsupported block type: ${t}`),null}}function Ti(n,e,t){const o=Qe(n,e);return o.getClientRects?o.getClientRects(n,e,t):[e.getBoundingClientRect()]}function zE(n,e){const t=Qe(n,e);if(t.getBlockStyles)return t.getBlockStyles(n,e);const o=n.getBlockData(e),r=Object.fromEntries(Object.entries(o).filter(([i])=>i.startsWith("style-")));return Object.entries(r).forEach(([,i])=>{const s=typeof i;g(zm,s==="string"||s==="number"||s==="boolean","invalid style value")}),r}function ht(n,e){return Io(n,e)==="text"?ue(n,e)===0:!1}const s4=S("block-path");function Di(n){const e=[];let t=n;for(;t;){const o=ne(t);if(e.unshift({containerId:ae(o),blockIndex:be(t)}),Xe(o))return e;const r=oe(o);g(s4,r,"no parent block"),t=r}return g(s4,!1,"no parent block"),[]}function VE(n,e){var r,i;const t=Qe(n,e);return(i=(r=t.getOptions)==null?void 0:r.call(t,n))!=null?i:{name:De(e)}}function ro(n){return Xe(ne(n))}function l4(n,e){var r;const t=Qe(n,e);return(r=t.getBlockProperties)==null?void 0:r.call(t,n,e)}function Wm(n,e){var i,s;const t=Qe(n,e),o=(i=t.getBlockProperties)==null?void 0:i.call(t,n,e);let r={};o!=null&&o.blockCommands&&(r={...o.blockCommands});for(const l of n.blockHooks){const a=(s=l.commands)==null?void 0:s.call(l,n,e);a&&(r[a.group]=a)}return r}function WE(n,e,t){var s,l,a,d;const o=Qe(n,e),r=(s=o.getBlockProperties)==null?void 0:s.call(o,n,e);let i={};r!=null&&r.blockCommands&&(i={...r.blockCommands});for(const h of n.blockHooks){const p=(l=h.commands)==null?void 0:l.call(h,n,e);p&&(i[p.group]=p)}return(d=(a=i[t])==null?void 0:a.commands)!=null?d:[]}function c4(n,e,t){let o=e;for(;o;){const r=WE(n,o,t);if(r.length>0)return{element:Re(o),commands:r};if(ro(o))break;o=Ts(o)}return{element:null,commands:[]}}const a4=S("embed-block-common");function Lt(n){return De(n)==="embed"}function Un(n){g(a4,Lt(n),"not an embed block");const e=n.getAttribute("data-embed-type");return g(a4,e,"no embed data type"),e}function qE(n,e){return n.editorEmbeds.getEmbedClass(Un(e))}function Os(n,e){return n.editorEmbeds.getEmbedClass(e)}async function qm(n,e,t,o,r){const i=Os(n,e);if(!i.getOptions)return null;const s=i.getOptions(n);if(!s.insertEmbedCommandItems||!s.insertEmbedCommandItems||s.insertEmbedCommandItems.length===0||!s.handleInsertEmptyEmbed)return null;const l=s.insertEmbedCommandItems[0];return s.handleInsertEmptyEmbed(n,{item:l,containerId:t,blockIndex:o,data:r})}function GE(n,e,t,o,r){var l,a;const i=(a=(l=Rs(n,e)).getOptions)==null?void 0:a.call(l,n);if(!i||!i.insertBlockCommandItems||i.insertBlockCommandItems.length===0||!i.handleInsertEmptyBlock)return null;const s=i.insertBlockCommandItems[0];return i.handleInsertEmptyBlock(n,{item:s,containerId:t,blockIndex:o,data:r})}const ZE=S("execute-block-command");function u4(n,e,t,o){var d;g(ZE,Lt(e),"not a embed block");const r=Un(e),i=Os(n,r);if(!i.getOptions)return;const s=(d=i.getBlockProperties)==null?void 0:d.call(i,n,e),l=s==null?void 0:s.blockCommands;if(!l)return;const a=Object.entries(l);for(const h of a)if(h[0]===t)return h[1].executeCommand(n,e,o)}function d4(n,e,t,o){const r=Wm(n,e);if(!r)return;const i=Object.entries(r);for(const s of i)if(s[0]===t)return s[1].executeCommand(n,e,o)}const Fr=S("text-block-child");function ka(n){return n.tagName==="SPAN"}function io(n){return g(Fr,ka(n),"not a valid text child"),n.getAttribute("data-type")==="editor-box"}function Pr(n){return g(Fr,ka(n),"not a valid text child"),n.getAttribute("data-type")==="editor-insertion"}function wa(n){return!io(n)&&!Pr(n)}function h4(n){return g(Fr,ka(n),"not a valid text child"),io(n)?"box":Pr(n)?"insertion":"text"}function so(n){const e=h4(n);return e==="insertion"?0:e==="box"?1:(g(Fr,n.textContent!==null,"text block content is undefined"),g(Fr,n.textContent.length>=0,"text block content length is negative"),n.textContent.length)}function nr(n){const e=Re(n),t=Array.from(e.children);return t.forEach(o=>{g(Fr,ka(o),"not a valid text child")}),t}function Xd(n,e){const t=nr(n);let o=0;for(let r=0;r<t.length;r++){const i=t[r],s=so(i);if(o+s<e){o+=s;continue}if(o===e)return{prev:t[r-1],next:i,offset:0};if(o+s===e)return{prev:i,next:t[r+1],offset:0};const l=e-o;return g(Fr,l>0,"invalid offset value"),g(Fr,!io(i),"invalid box child"),{prev:i,next:i,offset:l}}g(Fr,!1,`invalid block child at position: ${e}`)}const f4=S("element");function Gm(n,e,t){const o=w("div",[e],n);return o.setAttribute("data-type","editor-container"),o.setAttribute("data-container-id",t),w("div",["container-blocks"],o),o}function Nr(n,e){const t=n.rootElement.querySelector(`[data-container-id=${e}`);return g(f4,t,`no container: ${e}`),t}function m4(n,e){return n.rootElement.querySelector(`[data-container-id=${e}`)}function eh(n){const e=n.querySelector(":scope > .container-blocks");return g(f4,e,"no container blocks element"),e}function QE(n){let e=n.querySelector(":scope > .container-tools");return e||(e=w("div",["container-tools"],n)),e}const YE=S("child-container-path");function g4(n){if(Xe(n))return[];const e=oe(n);return g(YE,e,"no parent block"),Di(e)}const p4=S("load-blocks");function Zm(n,e,t){const o=ae(e),r=t4(e,n.doc);g(p4,r.length>0,"no blocks in container");const i=document.createDocumentFragment();r.forEach((l,a)=>{const d=n.editorBlocks.createBlock([...t,{containerId:o,blockIndex:a}],e,l);i.appendChild(d)}),eh(e).appendChild(i)}function JE(n,e,t){const o=eh(n);if(e===0)return o.insertBefore(t,o.firstChild),t;const r=vt(n);return g(p4,e>=0&&e<=r.length,"invalid block index"),e===r.length?o.appendChild(t):o.insertBefore(t,r[e]),t}function KE(n,e,t,o){const r=g4(e);r.push({containerId:ae(e),blockIndex:t});const i=n.editorBlocks.createBlock(r,e,o);return JE(e,t,i),i}const C4=S("root-container");class XE{constructor(e,t){m(this,"resizeObserver");m(this,"handleContextMenu",e=>{});m(this,"handleResize",()=>{try{this.editor.selection.updateSelection(null),this.editor.emit("resize",this.editor)}catch(e){C4.warn(`failed to update selection while container resizing: ${e.message}`)}});m(this,"handleClick",e=>{this.editor.emit("click",this.editor,e);const t=e.target;if(!Ms(t)&&(e.detail===1&&this.editor.input.focus(),e.detail===3&&this.editor.selectionHandler.handleTripleClick(e),e.detail===1&&e.button===0)){const o=document.elementFromPoint(e.clientX,e.clientY);if(o&&Ke(this.rootContainer,o)){const r=oe(o);r&&Ke(r,o)&&this.handleBlockClick(e,r,o)}}});m(this,"handleBlockClick",(e,t,o)=>{var s,l;if(!ee(this.editor,t))return;const r=$m(o);if(r){const a=oe(r);g(C4,a,"no parent block"),(l=(s=this.editor.editorBoxes.getBoxClass(va(r)))==null?void 0:s.handleClickBox)==null||l.call(s,this.editor,r,e);return}const i=o.closest("span.text.link");i&&nr(t).indexOf(i)!==-1&&this.editor.emit("clickLink",this.editor,e,i)});m(this,"handleDblClick",e=>{Ms(e.target)||this.editor.selectionHandler.handleDblClick(e)});m(this,"handleMouseDown",e=>{const t=e.target;if(!!t&&t instanceof Node&&!Ms(t)){if(t instanceof HTMLElement&&t.draggable){this.editor.selectionHandler.handleMouseDown(e,{autoScroll:!1}),this.editor.selectionHandler.stopSelection(),this.editor.input.focus();return}e.button===0&&(document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),this.editor.selectionHandler.handleMouseDown(e,{autoScroll:!0})),Kt.isMobileSafari||(e.preventDefault(),this.editor.input.focus()),e.button===2&&e.stopPropagation()}});m(this,"handleMouseMove",e=>{this.editor.selectionHandler.handleMouseMove(e)});m(this,"handleMouseUp",e=>{e.button===0&&(this.editor.selectionHandler.handleMouseUp(e),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp))});this.editor=e,this.rootContainer=t,this.editor=e,this.resizeObserver=new ResizeObserver(this.handleResize),this.bindEvents(t)}bindEvents(e){this.resizeObserver.observe(e);const t=this.editor.rootElement;t.onmousedown=this.handleMouseDown,t.ondblclick=this.handleDblClick,t.onclick=this.handleClick,t.oncontextmenu=this.handleContextMenu}unbindEvents(){this.resizeObserver.disconnect();const e=this.editor.rootElement;e.onmousedown=null,e.ondblclick=null,e.onclick=null,e.oncontextmenu=null}destroy(){this.unbindEvents()}reload(){const e=this.editor.selection.range,t=eh(this.rootContainer);t.innerHTML="",Zm(this.editor,this.rootContainer,[]);const o=this.editor.findBlockById(e.start.blockId);if(o)this.editor.selection.selectBlock(o,0);else{const r=St(this.rootContainer);this.editor.selection.selectBlock(r,0)}}}function A4(n){const e=Gm(n.contentElement,"root","root");return n.rootContainer=e,Zm(n,e,[]),new XE(n,e)}function b4(n,e,t,o){const r=m4(n,o);if(r)return t.appendChild(r),setTimeout(()=>{n.emit("containerRemount",n,o)}),r;const i=Gm(t,"child",o);return Zm(n,i,e),i}function v4(n,e){const t=n.getBoundingClientRect().width;return e.withPadding?t:t-Cm(n)}function Qm(n,e){let t=Number.MAX_SAFE_INTEGER;const o=vt(e);for(let i=0;i<o.length;i++){const s=o[i],l=r4(n,s);l&&(t=Math.min(t,l))}return t===Number.MAX_SAFE_INTEGER?void 0:t+Cm(e)}function Ym(n,e){const t=vt(e);return t.length!==1?!1:ht(n,t[0])}const ex=S("complex-block-position");class So{constructor(e,t,o){m(this,"blockId");m(this,"childContainerId");m(this,"custom");e instanceof HTMLElement?this.blockId=ie(e):(g(ex,typeof e=="string",`not a valid block id: ${e}`),this.blockId=e),this.childContainerId=t,o!==void 0&&(this.custom=o)}isSimple(){return!1}}const tx=S("simple-block-position");class jt{constructor(e,t,o){m(this,"blockId");m(this,"offset");m(this,"type");e instanceof HTMLElement?this.blockId=ie(e):(g(tx,typeof e=="string",`not a valid block id: ${e}`),this.blockId=e),this.offset=t,this.type=o}isSimple(){return!0}}const Jm=S("editor-position");function se(n,e,t){return new jt(n,e,t)}function ft(n,e,t){return new So(n,e,t)}function $r(n){return n instanceof jt}function Km(n){return n instanceof So}function Xm(n,e,t){if($r(e)&&$r(t)){const o=e,r=t;if(o.blockId===r.blockId)return o.offset-r.offset;const i=n.getBlockById(e.blockId),s=n.getBlockById(t.blockId);return g(Jm,i!==s,"comparePosition: blocks are the same"),Hd(i,s)}if(Km(e)&&Km(t)){const o=e,r=t;if(o.childContainerId===r.childContainerId)return 0;const i=n.getContainerById(o.childContainerId),s=n.getContainerById(r.childContainerId);return g(Jm,i!==s,"comparePosition: containers are the same"),Hd(i,s)}return g(Jm,!1,"invalid "),0}const th=S("simple-range");class Zt{constructor(e,t){m(this,"editor");m(this,"_anchor");m(this,"_focus");m(this,"reverse");this.editor=e,this._anchor=t.anchor,this._focus=t.focus,this.reverse=Xm(this.editor,this._anchor,this._focus)>0}isCollapsed(){return this.start.blockId===this.end.blockId&&this.start.offset===this.end.offset}isEqual(e){if(!(e instanceof Zt))return!1;const t=e,{start:o,end:r}=t;return this.start.blockId===o.blockId&&this.start.offset===o.offset&&this.start.type===o.type&&this.end.blockId===r.blockId&&this.end.offset===r.offset&&this.end.type===r.type}isSimple(){return!0}isReverse(){return this.reverse}getEditor(){return this.editor}get start(){return this.reverse?this._focus:this._anchor}get end(){return this.reverse?this._anchor:this._focus}get anchor(){return this._anchor}get focus(){return this._focus}getSelectedBlocks(){const{editor:e}=this,t=e.getBlockById(this.start.blockId),o=e.getBlockById(this.end.blockId);g(th,t,"no start block"),g(th,o,"no end block");const r=ne(t),i=ne(o);g(th,r===i,"invalid range");const s=[];if(t===o)s.push({block:t,start:this.start,end:this.end});else{const l=be(t),a=be(o);g(th,l<a,"invalid range, start > index"),s.push({block:t,start:this.start,end:se(t,ue(this.editor,t),"end")});const d=vt(r);for(let h=l+1;h<a;h+=1){const p=d[h];s.push({block:p,start:se(p,0,"home"),end:se(p,ue(this.editor,p),"end")})}s.push({block:o,start:se(o,0,"home"),end:this.end})}return s}getSelectedContainers(){return[]}getAnchorPos(){return this.isReverse()?this.end:this.start}getFocusedPos(){return this.isReverse()?this.start:this.end}clone(){return new Zt(this.editor,this)}toDocRange(){return{anchor:this.anchor,focus:this.focus}}static from(e,t){return new Zt(e,t)}}S("unknown-block");function nx(n,e,t,o,r){W(o,"unknown-block");const i=Ds(o,"div");return i.innerText=`unknown block (${r.type}): ${JSON.stringify(r)}`,i}function ox(n){return 1}function rx(n,e,t,o){return null}function ix(n,e,t,o){const r=document.elementsFromPoint(t,o)[0];if(!r||!e.contains(r)||!n.contains(e))return null;const i=ie(e),s=se(i,0,"home"),l=se(i,1,"end");return new Zt(n,{anchor:s,focus:l})}function sx(n,e){const o=Re(n).getBoundingClientRect();return new DOMRect(o.left+o.width/2,o.top,1,o.height)}function lx(n,e,t,o){W(e,"selected")}function cx(n){n.rootContainer.querySelectorAll("div.unknown-block[data-type=editor-block]").forEach(e=>{te(e,"selected")})}function ax(n,e,t,o){return`[unknown block, ${e.type}]`}const ux={blockType:"unknown-block",blockKind:"embed",createBlockContent:nx,getBlockTextLength:ox,getRangeFromPoint:ix,moveCaret:rx,getCaretRect:sx,updateSelection:lx,clearSelection:cx,convertTo:ax},eg=S("editor-blocks");class y4{constructor(e){m(this,"blocks",new Map);this.editor=e}registerBlockClass(e){const t=e.blockType,o=this.blocks.get(t);g(eg,!o,`duplicated block type: ${t}`),this.blocks.set(t,e)}getBlockClass(e){const t=this.blocks.get(e);return g(eg,t,`unknown block type: ${e}`),t}hasBlock(e){return this.blocks.has(e)}createBlock(e,t,o){const r=WC(this.editor,e,o);let i;this.hasBlock(o.type)?i=this.getBlockClass(o.type):i=this.registerUnknownBlock(o.type);const s=i.createBlockContent(this.editor,e,t,r,o);return s.parentElement!==r&&(eg.warn("content parent is not block"),r.appendChild(s)),this.editor.blockHooks.forEach(l=>{var a;(a=l.create)==null||a.call(l,this.editor,e,t,r,o)}),r}forEach(e){this.blocks.forEach(e)}registerUnknownBlock(e){const t={...ux,blockType:e};return this.editor.editorBlocks.registerBlockClass(t),t}}const k4=S("editor-embeds");class w4{constructor(e){m(this,"objects",new Map);this.editor=e}registerEmbedClass(e){const t=e.embedType,o=this.objects.get(t);g(k4,!o,`duplicated embed object type: ${t}`),this.objects.set(t,e)}getEmbedClass(e){const t=this.objects.get(e);return g(k4,t,`unknown embed type: ${e}`),t}getEmbedClassFromBlock(e){return this.getEmbedClass(Un(e))}forEach(e){this.objects.forEach(e)}}const B4=S("embed-block");function dx(n,e,t,o,r){const i=Ds(o,"div");g(B4,r.type==="embed",`not an embed data: ${JSON.stringify(r)}`);const s=r;return g(B4,s.embedType&&s.embedData,`not an embed data: ${JSON.stringify(s)}`),n.editorEmbeds.getEmbedClass(s.embedType).createEmbedContent(n,i,s,e,t,o),o.setAttribute("data-embed-type",s.embedType),i}function hx(n){return 1}function fx(n,e,t,o){return null}function mx(n,e,t,o){const r=document.elementsFromPoint(t,o)[0];if(!r||!e.contains(r)||!n.contains(e))return null;const i=ie(e),s=se(i,0,"home"),l=se(i,1,"end");return new Zt(n,{anchor:s,focus:l})}function gx(n,e){const o=Re(n).getBoundingClientRect();return new DOMRect(o.left+o.width/2,o.top,1,o.height)}function px(n,e,t,o){W(e,"selected")}function Cx(n){n.rootContainer.querySelectorAll("div.embed-block[data-type=editor-block][data-block-type=embed]").forEach(e=>{te(e,"selected")})}function Ax(n,e,t){let o=null;return n.editorEmbeds.forEach(r=>{var s,l;const i=(l=(s=r.convertFrom)==null?void 0:s.call(r,n,e,t))!=null?l:null;i&&(o=i)}),o}function bx(n,e,t,o){const r=Os(n,e.embedType);return r.convertTo?r.convertTo(n,e,t,o):""}function vx(n,e){const t=qE(n,e);return t.getBlockProperties?t.getBlockProperties(n,e):{}}function yx(n){const e=new Map,t=[];return n.editorEmbeds.forEach(o=>{if(o.getOptions){const r=o.getOptions(n);r.insertEmbedCommandItems&&r.insertEmbedCommandItems.forEach(i=>{t.push(i),e.set(i.id,o)})}}),{name:"EmbedBlock",insertBlockCommandItems:t,async handleInsertEmptyBlock(o,r){const i=e.get(r.item.id);if(!i||!i.getOptions)return null;const s=i.getOptions(o);return s.handleInsertEmptyEmbed?s.handleInsertEmptyEmbed(o,r):null}}}function kx(n,e,t,o){const r=Un(e),i=Os(n,r);!i.handleDeleteBlock||i.handleDeleteBlock(n,e,t,o)}function wx(n,e,t){const o=Un(e),r=Os(n,o);return r.handleUpdateBlock?r.handleUpdateBlock(n,e,t):!1}function Bx(n,e,t,o,r){const i=Un(e),s=Os(n,i);if(s.handleDropOver)return s.handleDropOver(n,e,t,o,r)}function Ex(n,e,t,o,r){const i=Un(e),s=Os(n,i);if(s.handleDrop&&n.isWritable())return s.handleDrop(n,e,t,o,r)}async function xx(n,e,t){const o=e.embedType,r=n.editorEmbeds.getEmbedClass(o);if(r.toStandardDoc){const i=n.getBlockById(e.id),s=Di(i);return r.toStandardDoc(n,e,t,s)}}const E4={blockType:"embed",blockKind:"embed",createBlockContent:dx,getBlockTextLength:hx,getRangeFromPoint:mx,moveCaret:fx,getCaretRect:gx,updateSelection:px,clearSelection:Cx,convertFrom:Ax,convertTo:bx,getBlockProperties:vx,getOptions:yx,handleDeleteBlock:kx,handleUpdateBlock:wx,handleDropOver:Bx,handleDrop:Ex,toStandardDoc:xx},fn=S("complex-block-helper");function En(n,e,t){return jn(n,e).getChildContainers(n,e,t)}function _s(n,e,t,o){return t.isSimple()?(g(fn,o.isSimple(),"invalid start and end position"),En(n,e)):(g(fn,!t.isSimple(),"invalid start pos"),g(fn,!o.isSimple(),"invalid end pos"),jn(n,e).getSelectedContainers(n,e,t,o))}function Ix(n,e){if(be(e)!==0)return!1;const t=oe(ne(e));if(!t)return!1;g(fn,Le(n,t),"not a complex block");const o=ne(e),i=En(n,t).indexOf(o);return g(fn,i>=0,"not valid child container"),i===0}function tg(n,e,t){const o=En(n,e,t);if(o.length===0)return null;const r=o[0];if(!r)return null;const i=St(r);return Le(n,i)?tg(n,i,t):i}function Vl(n,e,t){const o=En(n,e,t);if(o.length===0)return null;const r=o[o.length-1];if(!r)return null;const i=Gt(r);return Le(n,i)?Vl(n,i,t):i}function x4(n,e){g(fn,Do(e),"not a child container");const t=oe(e);g(fn,t,"no parent block"),g(fn,Le(n,t),"not a complex block");const o=En(n,t),r=o.indexOf(e);if(g(fn,r!==-1,"child container not found"),r===0){const l=ct(t);return l?Le(n,l)?Vl(n,l):l:null}const i=o[r-1],s=Gt(i);return Le(n,s)?Vl(n,s):s}function I4(n,e){g(fn,Le(n,e),"not a complex block");const t=En(n,e);if(g(fn,t.length>0,"no child container"),t.length===1)return t;const o=t[0],r=o.getBoundingClientRect();let i=r.left,s=r.right;const l=[o];for(let a=1;a<t.length;a++){const d=t[a],h=d.getBoundingClientRect();if(h.right<=i){l.push(d),i=h.left;continue}if(h.left>=s){s=h.right;continue}}return l}function T4(n,e){g(fn,Le(n,e),"not a complex block");const t=En(n,e);if(g(fn,t.length>0,"no child container"),t.length===1)return t;const o=t[t.length-1],r=o.getBoundingClientRect();let i=r.left,s=r.right;const l=[o];for(let a=t.length-2;a>=0;a--){const d=t[a],h=d.getBoundingClientRect();if(h.right<=i){l.push(d),i=h.left;continue}if(h.left>=s){s=h.right;continue}}return l}function D4(n,e,t,o){const r=e.getBoundingClientRect(),i=o<r.top,s=i?I4(n,e):T4(n,e);let l=s[0],a=tr(l.getBoundingClientRect(),t,o);for(let d=1;d<s.length;d++){const h=s[d],p=h.getBoundingClientRect(),A=tr(p,t,o);A<a&&(l=h,a=A)}return i?St(l):Gt(l)}function nh(n,e,t,o){const r=ie(e);g(fn,r===t.blockId,"invalid start pos"),g(fn,r===o.blockId,"invalid end pos");const i=jn(n,e);return i.adjustSelectionPos?i.adjustSelectionPos(n,e,t,o):{anchor:t,focus:o}}class or{constructor(e,t){m(this,"editor");m(this,"reverse");m(this,"_anchor");m(this,"_focus");this.editor=e,this._anchor=t.anchor,this._focus=t.focus,this.reverse=Xm(this.editor,this._anchor,this._focus)>0}isCollapsed(){return!1}isEqual(e){if(!(e instanceof or))return!1;const t=e,{anchor:o,focus:r}=t;return this._anchor.blockId===o.blockId&&this._anchor.childContainerId===o.childContainerId&&this._focus.blockId===r.blockId&&this._focus.childContainerId===r.childContainerId&&this._anchor.custom===o.custom&&this._focus.custom===r.custom}isReverse(){return this.reverse}isSimple(){return!1}getEditor(){return this.editor}get anchor(){return this._anchor}get focus(){return this._focus}get start(){return this.reverse?this._focus:this._anchor}get end(){return this.reverse?this._anchor:this._focus}getSelectedBlocks(){const e=this.start,t=this.end;return[{block:this.editor.getBlockById(e.blockId),start:e,end:t}]}getAnchorPos(){return this._anchor}getFocusedPos(){return this._focus}getSelectedContainers(){const e=this.editor.getBlockById(this._anchor.blockId);return _s(this.editor,e,this.start,this.end)}clone(){return new or(this.editor,this)}toDocRange(){return{anchor:this._anchor,focus:this._focus}}}const Tx=S("selection-range");function Ut(n,e){const{anchor:t,focus:o}=e;return t instanceof jt&&o instanceof jt?new Zt(n,{anchor:t,focus:o}):(g(Tx,t instanceof So&&o instanceof So,"start position type does not math end type"),new or(n,{anchor:t,focus:o}))}function yt(n,e,t,o){const r=new jt(e,t,"normal"),i=new jt(e,o!=null?o:t,"normal");return Ut(n,{anchor:r,focus:i})}function Dx(n){return!!n.anchor.childContainerId}function Si(n,e){var r,i;if(Dx(e)){const s=ft(e.anchor.blockId,e.anchor.childContainerId,(r=e.anchor)==null?void 0:r.custom),l=ft(e.focus.blockId,e.focus.childContainerId,(i=e.focus)==null?void 0:i.custom);return Ut(n,{anchor:s,focus:l})}const t=se(e.anchor.blockId,e.anchor.offset,"normal"),o=se(e.focus.blockId,e.focus.offset,"normal");return Ut(n,{anchor:t,focus:o})}const S4=S("range-from-point");function oh(n,e,t){const o=[0,-8,8];for(let r=0;r<o.length;r++){const i=document.elementsFromPoint(e,t+o[r])[0];if(!i)continue;const s=i.getBoundingClientRect();if(i.clientWidth&&i.clientHeight&&r===0&&(s.left+i.clientWidth<e||s.top+i.clientHeight<t))return S4.debug("click on scrollbar, out of element rect"),null;if(!n.rootContainer.contains(i))continue;const l=oe(i);if(!l||!n.contains(l))continue;const a=Qe(n,l).getRangeFromPoint(n,l,e,t+o[r]);if(a)return a}return null}function L4(n,e,t,o){const r=e.getBoundingClientRect();if(o<=r.top){const a=St(e),d=Qe(n,a).getRangeFromPoint(n,a,t,a.getBoundingClientRect().top+4);if(d!=null&&d.isSimple())return Zt.from(n,d);const h=se(a,0,"home");return new Zt(n,{anchor:h,focus:h})}const i=Gt(e),s=Qe(n,i).getRangeFromPoint(n,i,t,i.getBoundingClientRect().bottom-4);if(s!=null&&s.isSimple())return Zt.from(n,s);const l=se(i,ue(n,i),"end");return new Zt(n,{anchor:l,focus:l})}function M4(n,e,t){const o=oh(n,e,t);if(o){if(o instanceof Zt)return o;g(S4,o instanceof or,`invalid range type: ${typeof o}`);const a=o,d=n.getContainerById(a.start.childContainerId);return L4(n,d,e,t)}const r=document.elementsFromPoint(e,t)[0];if(!r)return null;const{children:i}=r,s=Array.from(i).filter(a=>_r(a));if(s.length===0)return null;const l=s.reduce((a,d)=>{const h=a.getBoundingClientRect(),p=d.getBoundingClientRect();return tr(h,e,t)>tr(p,e,t)?d:a});return L4(n,l,e,t)}function ng(n,e){const t=[];return vt(e).forEach(r=>{t.push(r),Le(n,r)&&En(n,r).forEach(s=>{t.push(...ng(n,s))})}),t}function og(n,e){let t=ng(n,n.rootContainer);return e!=null&&e.simpleBlockOnly&&(t=t.filter(o=>!Le(n,o))),t}function Lo(n,e){const t=n.selection.range.getSelectedBlocks(),o=[];for(const r of t)o.push(r),Le(n,r.block)&&_s(n,r.block,r.start,r.end).forEach(s=>{const a=ng(n,s).map(d=>({block:d,start:se(d,0,"home"),end:se(d,ue(n,d),"home")}));o.push(...a)});return e!=null&&e.simpleBlockOnly?o.filter(r=>!Le(n,r.block)):o}const one="",Qt=S("text-range");function Sx(n,e){const t=(i,s)=>{if(Pr(i))return g(Qt,s===0,`invalid offset for insertion child: ${s}`),{child:i,container:i,offset:2};if(io(i))return g(Qt,s===0||s===1,`invalid offset for box: ${s}`),{child:i,container:i,offset:s===0?1:2};const l=i.firstChild;return g(Qt,l,"no child node for text child"),g(Qt,l instanceof Text||l instanceof HTMLBRElement,`invalid child for text child, ${l.nodeName}`),l instanceof HTMLBRElement?(g(Qt,s>=0&&s<=0,"invalid offset for text child"),{child:i,container:l,offset:s}):(g(Qt,s>=0&&s<=l.data.length,"invalid offset for text child"),{child:i,container:l,offset:s})};let o=0;const r=nr(n);for(let i=0;i<r.length;i++){const s=r[i],l=so(s);if(e===o)return[t(s,0)];if(e<o+l)return[t(s,e-o)];if(e===o+l){const a=[];a.push(t(s,so(s)));const d=r[i+1];return d&&a.push(t(d,0)),a}o+=l}g(Qt,!1,"failed to get range info")}function Lx(n,e,t){if(e===t?g(Qt,Pr(n),"only insertion child can be zero offset"):g(Qt,e<t,`invalid start & end: ${e}, ${t}`),Pr(n)){g(Qt,e===t,`invalid insertion child range offset: ${e}, ${t}`),g(Qt,e===0,`invalid insertion child range start: ${e}`);const i=n;return g(Qt,i.children.length===3,`invalid insertion dom, children.length = ${i.children.length}`),Nd(i,1,i,2)}if(io(n)){g(Qt,e+1===t,`invalid box child range offset: ${e}, ${t}`),g(Qt,e===0,`invalid box child range start: ${e}`);const i=n;return g(Qt,i.children.length===3,`invalid box dom, children.length = ${i.children.length}`),Nd(i,1,i,2)}const o=so(n);g(Qt,t<=o,`invalid child end: ${t}, ${o}`);const r=n.firstChild;return g(Qt,r instanceof Text,"invalid block text child"),g(Qt,r.data.length>=t,`invalid range end: ${t}, ${r.data.length}`),Nd(r,e,r,t)}const Mo=S("caret-rect");function Mx(n,e){if(Nm(e)){const t=e,o=Hm(t);if(t.getAttribute("data-box-type")==="br"){const r=Re(n),i=Number.parseFloat(window.getComputedStyle(r).lineHeight)||o.getBoundingClientRect().height,s=Array.from(o.getClientRects());g(Mo,s.length>0,"no box client rects");const l=r.getBoundingClientRect(),a=s[0],d=new DOMRect(l.left,a.bottom,1,i);return s.push(d),s}return o.getClientRects()}return jm(e).getClientRects()}function zn(n,e){var l;const t=Sx(n,e.offset);if(t[1]&&t[0].child!==((l=t[1])==null?void 0:l.child)){if(e.type==="end"){const d=vs(t[0].child);return new DOMRect(d.right,d.top,1,d.height)}g(Mo,t[1],"invalid ranges");const a=$d(t[1].child);return new DOMRect(a.left,a.top,1,a.height)}let r=t[0];if(g(Mo,t.length>=1,"failed to get block range"),t.length===1)r=t[0];else{if(g(Mo,t.length>=2,`invalid range info length: ${t.length}`),Pr(t[t.length-1].child)){r=t[t.length-1];const a=r.child,h=jm(a).getClientRects();g(Mo,h.length>=1,"no client rects for box content");const p=h[h.length-1];return new DOMRect(p.right,p.y,1,p.height)}e.type==="home"?r=t[1]:e.type==="end"||wa(t[0].child)?r=t[0]:wa(t[1].child)&&(r=t[1])}if(r.container instanceof HTMLBRElement){g(Mo,e.offset===0,"invalid offset for empty block text");const a=r.container.parentElement,d=a==null?void 0:a.parentElement;g(Mo,d===Re(n)&&a,"invalid br parent, is not block parent");const h=a.getBoundingClientRect(),p=d.getBoundingClientRect();return new DOMRect(h.left,p.top,1,p.height)}const s=tC(r.container,r.offset).getClientRects();if(s.length===0){g(Mo,!wa(r.child),"only box or insertion child range has zero client rect"),g(Mo,r.offset===1||r.offset===2,"invalid offset for box or insertion child");const a=r.child,d=Mx(n,a);if(g(Mo,d.length>=1,"no client rects for box content"),r.offset===1){const p=d[0];return new DOMRect(p.x,p.y,1,p.height)}const h=d[d.length-1];return e.type==="end"||r.offset===2?new DOMRect(h.right,h.y,1,h.height):new DOMRect(h.x,h.y,1,h.height)}return g(Mo,s.length>0,"no client rects for range"),e.type==="home"?s[s.length-1]:s[0]}const Rx=S("core");function Li(n,e,t,o){const r=lt(e);let i=r.querySelector(`.block-anchor[data-id=${t}]`);i||(i=w("div",["block-anchor"],r),i.setAttribute("data-id",t));const s=o!=null?o:e.getBoundingClientRect(),l=e.getBoundingClientRect(),a=new DOMRect(s.left-l.left,s.top-l.top,s.width,s.height);return i.style.left=`${a.left}px`,i.style.top=`${a.top}px`,i.style.width=`${a.width}px`,i.style.height=`${a.height}px`,i}function R4(n,e,t,o){g(Rx,ee(n,e),"not a text kind block");const r=zn(e,se(e,t,"normal")),i=e.getBoundingClientRect(),s=lt(e);let l=s.querySelector(`.block-anchor[data-id=${o}]`);l||(l=w("div",["block-anchor"],s),l.setAttribute("data-id",o));const a=new DOMRect(r.left-i.left,r.top-i.top,r.width,r.height);return l.style.left=`${a.left}px`,l.style.top=`${a.top}px`,l.style.width=`${a.width}px`,l.style.height=`${a.height}px`,l}function Ba(n){const e=nr(n);let t=0;return e.forEach(o=>{t+=so(o)}),t}const O4=S("box");function Ea(n){return!n.attributes||!n.attributes.box?!1:(g(O4,n.attributes.box===!0,`invalid op attribute box property, ${n.attributes.box}`),g(O4,n.attributes.type,`no box type: ${JSON.stringify(n)}`),!0)}const _4=S("rich-text-length");function rg(n){return g(_4,typeof n.insert=="string","op.insert is not string"),n.insert.length}function rn(n){let e=0;return n.forEach(t=>{t.insert&&(g(_4,typeof t.insert=="string","op.insert is not string"),e+=rg(t))}),e}const rr=S("split-text");function xn(n,e,t){if(n=me.default(n),e===0)return{left:[],right:n};if(e===-1)return{left:n,right:[]};let o=0;for(let r=0;r<n.length;r++){const i=n[r];g(rr,typeof i=="object",`invalid op type, ${typeof i}`),g(rr,typeof i.insert=="string",`invalid op.insert type, ${typeof i.insert}`);const s=rg(i);if(o+s<e)o+=s;else{if(o+s===e)return{left:n.slice(0,r+1),right:n.slice(r+1)};{g(rr,o+s>e,`invalid offset, ${o}, ${s}, ${e}`);const l=e-o,a=me.default(i);g(rr,a.insert,"no copied.insert"),g(rr,typeof a.insert=="string","invalid copied.insert type"),a.insert=a.insert.substr(0,l),i.insert=i.insert.substr(l),a.insert===""&&g(rr,!1,"invalid copied.insert, is empty string"),i.insert===""&&g(rr,!1,"invalid op.insert, is empty string");const d=[i,...n.slice(r+1)],h=[...n.splice(0,r),a];return t&&(t.sourceOp=i),{left:h,right:d}}}}throw new Error(`invalid split offset: ${e}, ${JSON.stringify(n)}`)}function zt(n,e,t){g(rr,e>=0,"invalid offset, < 0"),g(rr,t>0,"invalid length, <= 0"),g(rr,e+t<=rn(n),"invalid offset + length < text length");const{left:o,right:r}=xn(n,e+t),{left:i,right:s}=xn(o,e);return{left:i,middle:s,right:r}}function F4(n,e){const t=Array.from(new Set(e)).sort((i,s)=>i-s),o=[];let r=n;for(let i=t.length-1;i>=0;i--){const s=t[i],{left:l,right:a}=xn(r,s);r=l,o.unshift(a)}return r.length>0&&o.unshift(r),o}function P4(n,e,t){return zt(n,e,t).middle}const Wl=S("text-block-content");function Ox(n,e,t,o,r){if(g(Wl,o,"no text for block"),o.length===0&&(!r||r.size===0)){t.innerHTML="<span><br></span>";return}const i=[];r&&i.push(...r.keys());const s=p=>n.editorInsertions.createInsertion(t,p),l=(p,A)=>{const v=r==null?void 0:r.get(A);v&&(v.forEach(B=>{p.appendChild(s(B))}),r==null||r.delete(A))},a=document.createDocumentFragment();let d=0;const h=F4(o,i);for(let p=0;p<h.length;p++){l(a,d);const A=h[p];d+=rn(A);for(let v=0;v<A.length;v++){const B=A[v];if(Ea(B)){g(Wl,B.attributes,`op is not an valid box: ${JSON.stringify(B)}`);const T=n.editorBoxes.createBox(t,B.attributes);g(Wl,T instanceof HTMLSpanElement,`invalid box element: ${T.tagName}`),a.appendChild(T);continue}g(Wl,B.insert,`no insert in op: ${JSON.stringify(B)}`);const D=w("span",["text"],a,B.insert);if(B.attributes){const T=n.editorBlockRenders.renderText(e,B.attributes);T.classes&&W(D,...T.classes),T.attributes&&Object.entries(T.attributes).forEach(([_,M])=>{D.setAttribute(_,M)}),T.styles&&Object.entries(T.styles).forEach(([_,M])=>{D.style.setProperty(_,M)})}a.appendChild(D)}}l(a,d),t.innerHTML="",t.appendChild(a)}function rh(n,e,t,o,r){const{text:i,insertions:s}=n.editorDecorators.decorateText(e,r),l=n.compositingText;if(l){const a=n.selection.range.start;g(Wl,a.isSimple(),"not an simple position while compositing"),a.blockId===t&&s.set(a.offset,[{type:"inputting",id:K(),text:l}])}return Ox(n,e,o,i,s)}function _x(n){const e=n.rootContainer.querySelectorAll('span[data-type="editor-insertion"].inputting-insertion');e.length&&Wl.debug(`remove ${e.length} temp composition span`),Array.from(e).forEach(t=>t.remove())}const ir=S("client-rects");function Fx(n){const e=nr(n);let t=0;const o=[];for(let r=0;r<e.length;r++){const i=e[r],s=so(i);o.push({child:i,startBlockOffset:t,endBlockOffset:t+s}),t+=s}return o}function Px(n,e,t,o){g(ir,t<o,`invalid from & to: ${t}, ${o}`);const r=ue(n,e);g(ir,t>=0&&o>=0&&t<=r&&o<=r,`invalid offset: ${t}, ${o}, length: ${r}`);const i=Fx(e),s=i.findIndex(v=>v.startBlockOffset<=t&&t<v.endBlockOffset),l=i.findIndex(v=>v.startBlockOffset<o&&o<=v.endBlockOffset);if(g(ir,s!==-1,"failed to find start child"),g(ir,l!==-1,"failed to find end child"),g(ir,s<=l,`invalid start index & end index: ${s}, ${l}`),s===l){const v=i[s];return[{child:v.child,startChildOffset:t-v.startBlockOffset,endChildOffset:o-v.startBlockOffset}]}const a=[],d=i[s],h={child:d.child,startChildOffset:t-d.startBlockOffset,endChildOffset:so(d.child)};a.push(h);for(let v=s+1;v<l;v++){const B=i[v],D={child:B.child,startChildOffset:0,endChildOffset:B.endBlockOffset-B.startBlockOffset};a.push(D)}const p=i[l],A={child:p.child,startChildOffset:0,endChildOffset:o-p.startBlockOffset};return a.push(A),a}function Nx(n){const e=(o,r)=>o.left<=r.left&&o.top<=r.top&&o.right>=r.right&&o.bottom>=r.bottom&&(o.width!==r.width||o.height!==r.height);n=n.filter(o=>!n.find(i=>e(o,i)));const t=[];return n=n.filter(o=>t.find(r=>r.left===o.left&&r.top===o.top&&r.width===o.width&&r.height===o.height)?!1:(t.push(o),!0)),n}function N4(n,e,t,o){if(ue(n,e)===0){const h=Re(e).getBoundingClientRect();return[new DOMRect(h.left,h.top,4,h.height)]}const r=t.offset,i=o.offset;if(r===i)return[zn(e,t)];const l=Px(n,e,r,i).map(d=>Lx(d.child,d.startChildOffset,d.endChildOffset)),a=[];return l.forEach(d=>{const h=Nx(Array.from(d.getClientRects()));a.push(...h)}),a}function $x(n,e,t){g(ir,t instanceof Zt,"invalid range");const o=t.start,r=t.end;return g(ir,o.isSimple(),"text block only allow simple position"),g(ir,r.isSimple(),"text block only allow simple position"),g(ir,o.blockId===r.blockId,"only allow update one text block selection"),g(ir,o.blockId===ie(e),"only allow update one text block selection"),N4(n,e,o,r)}const ig=S("selection-background");function Hx(n,e,t,o){g(ig,t.isSimple(),"text block only allow simple position"),g(ig,o.isSimple(),"text block only allow simple position"),g(ig,t.blockId===o.blockId,"only allow update one text block selection");const r=t.offset,i=o.offset;if(r===i&&(ue(n,e)!==0||n.selection.range.isCollapsed()))return;const s=N4(n,e,t,o),l=e.getBoundingClientRect(),a=ks(e),d=VC(e);d.innerHTML="",s.forEach(h=>{const p=w("div",["editor-selection-background"],d);p.style.left=`${(h.left-l.left-e.clientLeft)/a}px`,p.style.top=`${(h.top-l.top-e.clientTop)/a}px`,p.style.width=`${h.width/a}px`,p.style.height=`${h.height/a}px`})}function jx(n){n.rootContainer.querySelectorAll("div[data-type=block-background]").forEach(e=>{e.remove()})}const Fs=S("text-offset"),$4="\u200D";function Mi(n,e){const t=nr(n);let o=0;for(let r=0;r<t.length;r++){const i=t[r],s=so(i);if(i===e){const l=o+s;return{start:o,end:l}}o+=s}g(Fs,!1,"can not find child in children")}function sn(n,e){g(Fs,e>=0,`invalid offset: ${e}`);const t=Xd(n,e),{prev:o,next:r,offset:i}=t;if(!o&&!r&&g(Fs,!1,"invalid offset, no prev & next child at offset"),o!==r)return!0;const s=o;if(g(Fs,s,"no child"),io(s))return g(Fs,i===0||i===1,`invalid box child offset: ${i}`),!0;const l=s.textContent;g(Fs,l,"no content for text child");const a=l.charAt(i-1),d=l.charAt(i);return!(a===$4||d===$4||gm(l[i]))}function Ri(n,e){if(e===0)return 0;const t=e-1;if(sn(n,t))return t;let o=t-1;for(;!sn(n,o);)o-=1;return o}function Ps(n,e){const t=Ba(n);if(g(Fs,e>=0&&e<=t,`invalid offset: ${e}, ${t}`),e===t)return t;const o=e+1;if(sn(n,o))return o;let r=o+1;for(;!sn(n,r);)r+=1;return r}const Ns=S("line-breaker");function xa(n){const e=a=>{const d=$d(a);return vs(a).top>d.top+d.height/2},t=(a,d)=>{const h=vs(a);return $d(d).left<h.right},o=(a,d)=>{const h=vs(a),p=vs(d);return p.top+p.height/2>h.bottom},r=a=>{if(a.length===0||a.length===1)return!1;const d=a[0],h=a[a.length-1];return d.right-h.left>10},i=[];let s=0;const l=nr(n);for(let a=0;a<l.length;a++){const d=l[a];if(Pr(d)){const T=d,_=l[a+1];if(!_)break;const M=l[a-1];if(M&&o(M,T)&&i.push({offset:s,type:"betweenChild",childInfo:{prevChild:M,nextChild:T,wrap:"nextWrapped",prevWrapped:e(M),nextWrapped:e(T)}}),t(T,_)){i.push({offset:s,type:"betweenChild",childInfo:{prevChild:M,nextChild:T,wrap:"nowrap",prevWrapped:e(M),nextWrapped:e(T)}});continue}continue}if(io(d)){const T=d,_=l[a+1];if(!_)break;const M=l[a-1];if(M&&o(M,T)&&i.push({offset:s,type:"betweenChild",childInfo:{prevChild:M,nextChild:T,wrap:"nextWrapped",prevWrapped:e(M),nextWrapped:e(T)}}),t(T,_)){s+=1,i.push({offset:s,type:"betweenChild",childInfo:{prevChild:M,nextChild:d,wrap:"nowrap",prevWrapped:e(M),nextWrapped:e(d)}});continue}s+=1;continue}const h=d,p=h.getClientRects();if(g(Ns,p.length>0,"invalid text child dom"),p.length===1){const T=l[a+1];if(!T)break;if(t(h,T)){s+=so(h),i.push({offset:s,type:"betweenChild",childInfo:{prevChild:h,nextChild:T,wrap:"nowrap",prevWrapped:e(h),nextWrapped:e(T)}});continue}s+=so(h);continue}const A=h.firstChild;g(Ns,A,"invalid text child, no text node"),g(Ns,A instanceof Text,`invalid text child, not a valid text node: ${typeof A}`);const v=document.createRange(),B=document.createRange(),D=so(h);g(Ns,A.data.length===D,"text node data length not equal child text length");for(let T=0;T<A.data.length;T++){if(!sn(n,s+T))continue;v.setStart(A,T),Em()&&v.selectNodeContents(A);const _=v.getClientRects();if(g(Ns,_.length>=1,"invalid text node, no client rects"),r(_)){const re=s+T;i.push({offset:re,type:"textBreakWord",childInfo:{prevChild:d,nextChild:d,wrap:"nowrap",prevWrapped:e(d),nextWrapped:e(d)}});continue}let M=T+1;sn(n,s+M)||(M=T+2),B.setStart(A,M);const H=B.getClientRects(),z=_[0];H[0].left<z.right&&g(Ns,!1,"span pre-wrap should not has a line-wrap by white space")}s+=D}return i}function sg(n,e){const t=xa(n);for(let o=0;o<t.length;o++){const{offset:r,type:i}=t[o];if(e.offset<r)return{lineIndex:o,lineBreaks:t};if(e.offset===r&&e.type==="end")return{lineIndex:o,lineBreaks:t}}return g(Ns,e.offset<=Ba(n),"invalid position, offset > block length"),{lineIndex:t.length,lineBreaks:t}}const Ux=S("line-offset");function lg(n){const e=xa(n),t=[];let o=0;for(let r=0;r<e.length;r++){const i=e[r];t.push({start:o,end:i.offset}),o=i.offset}return t.push({start:o,end:Ba(n)}),t}function ih(n,e){const t=lg(n);return g(Ux,e>=0&&e<t.length,`invalid line index: ${e}, ${t.length}`),t[e]}function H4(n,e){const{lineIndex:t}=sg(n,e);return ih(n,t)}function zx(n){const e=lg(n),t=n.getBoundingClientRect(),o=[];return e.forEach(({start:r,end:i})=>{const s=se(n,r,"home");let l=zn(n,s);const a=se(n,i,"end"),d=zn(n,a);l.top+l.height/2<d.top&&(l=new DOMRect(t.left-1e4,d.top,1,d.height));const h=new DOMRect(l.left,d.top,d.left-l.left,d.height),p=new DOMRect(t.left,d.top,t.width,d.height);o.push({start:r,end:i,rect:p,contentRect:h})}),o}function Vx(n,e,t){const r=zx(n).find(s=>ws(s.rect,e,t));if(!r)return null;const i=r.contentRect;return e-i.left<i.right-e?se(n,r.start,"home"):se(n,r.end,"end")}function j4(n,e,t){const o=zn(n,e),r=zn(n,t),i=o.top+o.height/2,s=r.top+r.height/2,l=r.top<i&&i<r.bottom,a=o.top<s&&s<o.bottom;return l&&a}function U4(n){return lg(n).length}const $s=S("find-text-position");function z4(n,e){const{start:t,end:o}=ih(n,e),r=ie(n),i=zn(n,se(r,t,"home"));if(!(zn(n,se(r,o,"end")).top>i.top+i.height/2))return!1;const a=Xd(n,t);return g($s,a.next,"no next child at offset"),g($s,!wa(a.next),"next child is not text child"),!0}function Wx(n,e){const t=ie(n);g($s,z4(n,e),"line is not wrapped");const{start:o,end:r}=ih(n,e),i=se(t,o,"home");for(let s=o+1;s<=r;s+=1){let l="normal";s===o?l="home":s===r&&(l="end");const a=se(t,s,l);if(!j4(n,i,a))return s-1}return g($s,!1,"failed to find wrapped offset"),0}function sh(n,e,t,o,r,i,s){g($s,ee(n,e),`not a text kind block: ${De(e)}`);const{start:l,end:a}=ih(e,t);let d=l;const h=ie(e);if(e===o&&z4(e,t)){const T=Wx(e,t);(i==="up"||i==="down"&&j4(e,r,se(h,l,"home")))&&(d=T+1)}let p=Number.MAX_SAFE_INTEGER;const A=To(n,o,r),v=s!=null?s:A.left+A.width/2,B=A.top+A.height/2;let D=se(h,d,"home");for(let T=d;T<=a;T++){if(!sn(e,T))continue;let _="normal";T===l?_="home":T===a&&(_="end");const M=se(h,T,_),H=zn(e,M),z=tr(H,v,B);z<p&&(p=z,D=M)}return D}function qx(n,e,t,o,r){return g($s,ee(n,e),"not a text block"),sh(n,e,U4(e)-1,t,o,"up",r)}function Gx(n,e,t,o,r){return g($s,ee(n,e),"not a text block"),sh(n,e,0,t,o,"down",r)}function Zx(n,e,t,o){const{lineIndex:r}=sg(e,t);if(r===U4(e)-1)return null;const i=sh(n,e,r+1,e,t,"down",o);return i||null}function Qx(n,e){if(e.offset===0)return null;const t=xa(n),o=t.find(r=>r.offset===e.offset);if(!o){const r=Ri(n,e.offset);return t.find(s=>s.offset===r)?{offset:r,type:"home"}:{offset:r,type:"normal"}}if(o.type==="betweenChild"){if(e.type==="home"&&o.childInfo.wrap==="nowrap")return{offset:e.offset,type:"end"};if(o.childInfo.prevWrapped)return{offset:Ri(n,e.offset),type:"normal"}}return{offset:Ri(n,e.offset),type:"normal"}}function Yx(n,e){const t=Ba(n);if(e.offset===t)return null;const o=xa(n),r=o.find(i=>i.offset===e.offset);if(!r){const i=Ps(n,e.offset),s=o.find(l=>l.offset===i);return s?s.type==="betweenChild"?{offset:i,type:"end"}:{offset:i,type:"home"}:{offset:i,type:"normal"}}return r.type==="betweenChild"?r.childInfo.wrap==="nowrap"&&e.type==="end"?{offset:e.offset,type:"home"}:{offset:Ps(n,e.offset),type:"home"}:{offset:Ps(n,e.offset),type:"normal"}}function Jx(n,e,t,o){const{lineIndex:r}=sg(e,t);if(r===0)return null;const i=sh(n,e,r-1,e,t,"up",o);return i||null}const Kx=S("move-caret");function Xx(n,e,t,o){if(o==="ArrowLeft"){const r=Qx(e,t);return r?se(ie(e),r.offset,r.type):null}if(o==="ArrowRight"){const r=Yx(e,t);return r?se(ie(e),r.offset,r.type):null}if(o==="ArrowUp"){const r=Jx(n,e,t,n.selection.getSuggestedCaretX());return r?se(ie(e),r.offset,r.type):null}if(o==="ArrowDown"){const r=Zx(n,e,t,n.selection.getSuggestedCaretX());return r?se(ie(e),r.offset,r.type):null}g(Kx,!1,`invalid navigation direction: ${o}`)}const cg=S("text-range");function eI(n){const e=[];return nr(n).forEach(o=>{const r=Array.from(o.getClientRects()).map(i=>({rect:i,child:o}));e.push(...r)}),e}function tI(n,e,t){const o=eI(n);for(let r=1;r<o.length;r++){const i=o[r-1],s=o[r];if(e>=i.rect.right&&e<=s.rect.left&&t>=i.rect.top&&t<=i.rect.bottom&&t>=s.rect.top&&t<=s.rect.bottom)return Mi(n,s.child).start}return null}function nI(n,e,t,o){const r=document.elementsFromPoint(t,o)[0];if(!r||!e.contains(r)||!n.contains(e))return null;const i=r.closest("div[data-type=block-content]>span");if(!i){const _=e.getBoundingClientRect();if(!ws(_,t,o))return null;const M=tI(e,t,o);if(M!==null){const z=se(e,M,"normal");return new Zt(n,{anchor:z,focus:z})}const H=Vx(e,t,o);return H?new Zt(n,{anchor:H,focus:H}):null}const s=nr(e);g(cg,s.indexOf(i)!==-1,"failed to find child in children");const l=Mi(e,i);g(cg,l,"failed to get child offset");const{start:a}=l;let d,h;Pr(i)||io(i)?(d=a,h=0):(g(cg,i.firstChild instanceof Text,"child is not text"),d=a+nC(i.firstChild,t,o),h=0);const p=ie(e),v=xa(e).find(_=>_.offset===d);let B="normal";if(v){const _=se(p,d,"home"),M=se(p,d,"end"),H=zn(e,_),z=zn(e,M),q=tr(H,t,o),re=tr(z,t,o);B=q<re?"home":"end"}const D=se(p,d,B);let T;return h&&(T=se(p,d+h,B)),new Zt(n,{anchor:D,focus:T!=null?T:D})}const oI=S("create-text-op");function lo(n,e){g(oI,n,"text is empty");const t={insert:n};return e&&Object.keys(e).length>0&&(t.attributes=e),t}function ag(n,e){if(n.length===0)return[];if(n.indexOf(`
15
+ animateScrollTo(scrollToElement:Element, options)`;t+=i.horizontalOffset,o+=i.verticalOffset;const p=h.getMaxHorizontalScroll(),A=h.getHorizontalScroll();t>p&&(t=p);const v=t-A,B=h.getMaxVerticalScroll(),D=h.getVerticalScroll();D<o?o-=window.innerHeight*3/4:o-=window.innerHeight*1/4,o>B&&(o=B);const T=o-D,_=Math.abs(Math.round(v/1e3*i.speed)),M=Math.abs(Math.round(T/1e3*i.speed));let H=_>M?_:M;return H<i.minDuration?H=i.minDuration:H>i.maxDuration&&(H=i.maxDuration),new Promise((z,q)=>{v===0&&T===0&&z(!0),Lr.remove(h.element,!0);let re;const fe=()=>{Yt(),cancelAnimationFrame(re),z(!1)};Lr.add(h.element,fe);const Be=Ln=>Ln.preventDefault(),je=i.cancelOnUserAction?fe:Be,Ue=i.cancelOnUserAction?{passive:!0}:{passive:!1},tt=["wheel","touchstart","keydown","mousedown"],Yt=()=>{tt.forEach(Ln=>{h.element.removeEventListener(Ln,je,Ue)})};tt.forEach(Ln=>{h.element.addEventListener(Ln,je,Ue)});const Wo=Date.now(),Nt=()=>{const Ln=Date.now()-Wo,vr=Ln/H,bn=Math.round(A+v*i.easing(vr)),an=Math.round(D+T*i.easing(vr));Ln<H&&(bn!==t||an!==o)?(h.scrollTo(bn,an),re=requestAnimationFrame(Nt)):(h.scrollTo(t,o),cancelAnimationFrame(re),Yt(),Lr.remove(h.element,!1),z(!0))};re=requestAnimationFrame(Nt)})}function ws(n,e,t){return n.left<=e&&e<=n.right&&n.top<=t&&t<=n.bottom}function gE(n){const e="\xA0";if(!n)return"";if(n===" ")return e;let t=n;return t.startsWith(" ")&&(t=e+t.substr(1)),t.endsWith(" ")&&(t=t.substr(0,t.length-1)+e),t=t.replace(/ {2}/g,` ${e}`),t}function lC(n){if(!/["'&<>]/.exec(n))return n;const o={'"':"&quot;","'":"&#39;","&":"&amp;","<":"&lt;",">":"&gt;"};return n.split("").map(l=>o[l]||l).join("")}function cC(n){const e=document.getElementById(n);e&&e.remove()}function aC(n,e){const t=document.getElementById(e);if(t)return t.textContent=n,t;const o=document.createElement("style");return o.id=e,o.textContent=n,document.head.append(o),o}function pa(n){const e="custom-cursor-style";if(n){const t=`body * { cursor: ${n} !important}`;aC(t,e)}else cC(e)}const uC=3,dC=S("drag-drop");class hC{constructor(e){m(this,"dragStarted",!1);m(this,"mouseDownEvent",null);m(this,"_dragOffsetX",0);m(this,"_dragOffsetY",0);m(this,"handleMouseDown",e=>{e.preventDefault(),e.stopPropagation(),this.mouseDownEvent=e;const t=this.options.elem.getBoundingClientRect();this._dragOffsetX=this.mouseDownEvent.x-t.left,this._dragOffsetY=this.mouseDownEvent.y-t.top,this.bindEvents()});m(this,"handleMouseMove",e=>{var i;e.preventDefault(),e.stopPropagation(),g(dC,this.mouseDownEvent,"no mouse down event");const t=e.x-this.mouseDownEvent.x,o=e.y-this.mouseDownEvent.y;if(this.dragStarted){this.onDragging(e,t,o);return}const r=(i=this.options.minThreshold)!=null?i:uC;(Math.abs(t)>=r||Math.abs(o)>=r)&&this.onDragStart(this.mouseDownEvent)});m(this,"handleMouseUp",e=>{if(e.button===0){g(dC,this.mouseDownEvent,"no mouse down event");const t=e.x-this.mouseDownEvent.x,o=e.y-this.mouseDownEvent.y;this.onDragEnd(e,t,o),e.preventDefault(),e.stopPropagation()}});this.options=e,this.options.mouseDownEvent?this.handleMouseDown(this.options.mouseDownEvent):this.trackEvents()}get data(){return this.options.data}get dragOffsetX(){return this._dragOffsetX}get dragOffsetY(){return this._dragOffsetY}get dragOffset(){return{x:this._dragOffsetX,y:this._dragOffsetY}}trackEvents(){this.options.elem.addEventListener("mousedown",this.handleMouseDown)}untrackEvents(){this.options.elem.removeEventListener("mousedown",this.handleMouseDown)}bindEvents(){document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}unbindEvents(){document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}onDragStart(e){this.dragStarted=!0,this.options.cursor&&pa(this.options.cursor),this.options.onDragStart(this,e,this.options.elem)}onDragging(e,t,o){this.options.onDragging(this,e,this.options.elem,t,o)}onDragEnd(e,t,o){this.options.cursor&&pa(null),this.dragStarted&&this.options.onDragEnd(this,e,this.options.elem,t,o),this.unbindEvents(),this.dragStarted=!1}destroy(){this.unbindEvents(),this.untrackEvents()}}function wm(n){return new hC(n)}const pE=S("character");function fC(n,e){for(let t=0;t<e.length;t++){const o=e[t][0],r=e[t].length>1?e[t][1]:null;if(r===null&&n===o||r!==null&&n>=o&&n<=r)return!0}return!1}function mC(n){const e=n.charAt(0);return e>="0"&&e<="9"}function gC(n){const e=n.charAt(0);return e>="a"&&e<="z"||e>="A"&&e<="Z"||e.toUpperCase()!==e.toLowerCase()?!0:RegExp(/^\p{L}/,"u").test(e)}function jd(n){const e=[[9,13],[32],[160]];return fC(n.charCodeAt(0),e)}function pC(n){const e=[[12352,12687],[13056,13183],[13312,15661],[19968,40959],[63744,64255],[44032,55215]];return fC(n.charCodeAt(0),e)}function Bm(n,e){let t=e;return g(pE,t.length===1,"invalid char length"),t==="]"&&(t="\\]"),t==="\\"&&(t="\\\\"),n.replace(new RegExp(`^[${t}]+|[${t}]+$`,"g"),"")}const Mr=navigator.userAgent;function CC(){const n=navigator.userAgent.toLowerCase();return n.indexOf("safari")!==-1&&!(n.indexOf("chrome")>-1)}function Em(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}const Kt={isAndroid:!!Mr.match(/Android/i),isIOS:!!Mr.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/i),isIPad:!!Mr.match(/iPad/i),isIPhone:!!Mr.match(/iPhone/i),isLinux:!!Mr.match(/Linux/i),isMac:!!Mr.match(/Macintosh/i),isMobile:!!Mr.match(/AppleWebKit.*Mobile.*/i),isWindows:!!Mr.match(/Window/i),isIe:!!Mr.match(/msie|trident/i),isSafari:CC(),isMobileSafari:!1};Kt.isMobileSafari=Kt.isMobile&&Kt.isSafari;function xm(n){return n?n.length===1||n==="Process"||n==="Unidentified"&&Kt.isAndroid:!1}function AC(n){switch(n){case"ArrowDown":case"ArrowUp":case"ArrowLeft":case"ArrowRight":case"End":case"Home":case"PageDown":case"PageUp":return!0;default:return!1}}function CE(n){return AC(n.key)}function AE(n){switch(n){case"ArrowUp":case"ArrowLeft":case"Home":case"PageUp":return!0;default:return!1}}function Bs(n){return n.ctrlKey||n.altKey||n.shiftKey||n.metaKey}function bE(n){return n.key?!!(n.ctrlKey||n.metaKey||n.altKey):!1}function bC(n){return Kt.isMac?n.metaKey&&!n.ctrlKey:!n.metaKey&&n.ctrlKey}function vE(n){return bC(n)&&!n.altKey&&!n.shiftKey}function yE(n){return!n.metaKey&&!n.ctrlKey&&!n.shiftKey&&n.altKey}function vC(n){return!Bs(n)&&n.key==="Enter"}function kE(n){return n.key==="Enter"&&n.shiftKey&&!n.altKey&&!n.ctrlKey&&!n.metaKey}function Im(n){return!Bs(n)&&n.key==="Escape"}function wE(n){return!Bs(n)&&n.key==="Delete"}function yC(n){return!Bs(n)&&n.key==="Backspace"}function BE(n){return!Bs(n)&&n.key==="Tab"}function EE(n){return n.shiftKey&&n.key==="Tab"&&!n.ctrlKey&&!n.metaKey}function Bo(n){if(!n)return"";if(Kt.isMac){const e=n.replace("CtrlOrCmd","\u2318").replace("Shift","\u21E7").replace("Ctrl","\u2303").replace("Alt","\u2325").replace(/\+(?!$)/gm,""),t={"\u2318":4,"\u21E7":3,"\u2325":2,"\u2303":1};return e.split(/(?=[\s\S])/u).sort((r,i)=>{var a,d;const s=(a=t[r])!=null?a:5,l=(d=t[i])!=null?d:5;return s-l}).map(r=>r in t?`${r}+`:r).join("")}return n.replace("CtrlOrCmd","Ctrl")}function kC(n){const e={ctrl:!1,alt:!1,shift:!1,cmd:!1,key:""},t=n.toLocaleUpperCase().split("+");for(let o=0;o<t.length;o++){const r=t[o];r==="CTRL"||r==="CONTROL"?e.ctrl=!0:r==="ALT"||r==="OPTION"?e.alt=!0:r==="SHIFT"?e.shift=!0:r==="CMD"||r==="COMMAND"?e.cmd=!0:r==="CMDORCTRL"||r==="CTRLORCMD"?Kt.isMac?e.cmd=!0:e.ctrl=!0:r==="SPACE"?e.key=" ":e.key=r.substring(0,1)+r.substring(1).toLocaleLowerCase()}return e}function Rr(n,e){const t=kC(e);return t.ctrl!==n.ctrlKey||t.alt!==n.altKey||t.shift!==n.shiftKey||Kt.isMac&&t.cmd!==n.metaKey?!1:t.key.length===1?t.key===n.key.toUpperCase():t.key.toUpperCase()===n.key.toUpperCase()}function Tm(n,e){return gB.stringifyUrl({url:n,query:e})}function Es(n){return typeof n=="string"?aa.Base64.encode(n,!0):aa.Base64.fromUint8Array(n,!0)}function Ud(n){return aa.Base64.decode(n)}function xE(n){return aa.Base64.toUint8Array(n)}function Dm(n){return new Blob([aa.Base64.toUint8Array(n)])}const IE=xi.init([xi.classModule,xi.styleModule,xi.datasetModule,xi.attributesModule,xi.propsModule]);function Ca(n,e){const t=xi.toVNode(n),o=xi.toVNode(e);IE(t,o)}async function Sm(n,e){const t=new FileReader,o=new Promise((i,s)=>{t.onload=i,t.onerror=s});return t.readAsDataURL(new Blob([n],{type:e})),await o,t.result}async function Ul(n){const e=new FileReader,t=new Promise((r,i)=>{e.onload=r,e.onerror=i});return e.readAsDataURL(n),await t,e.result}function TE(n,...e){const t=n.tagName.toLowerCase();for(let o=0,r=e.length;o<r;o++)if(t===e[o].toLowerCase())return!0;return!1}function oo(n,e){let t=n;for(;t;){const o=window.getComputedStyle(t);if(e!=null&&e.horizontal){if(/auto|scroll/i.test(o.overflowX))break}else if(/auto|scroll/i.test(o.overflowY))break;t=t.parentElement}return(!t||TE(t,"body"))&&(t=document.documentElement),t}function wC(n){n.preventDefault(),n.stopPropagation()}function BC(n){if(document.querySelector(`.editor-disable-scroll[data-scroll-id="${n}"]`))return;const e=w("div",["editor-disable-scroll"],null);e.setAttribute("data-scroll-id",n),e.addEventListener("wheel",wC,{passive:!1}),document.body.appendChild(e)}function EC(n){const e=document.querySelector(`.editor-disable-scroll[data-scroll-id="${n}"]`);e&&(e.removeEventListener("wheel",wC),e.remove())}function Lm(n,e,t){const o=new Blob([n]),r=new File([o],t,{type:e});return URL.createObjectURL(r)}function zd(n){const e=document.createElement("template");if("content"in e)return e.innerHTML=n,document.importNode(e.content,!0);const t=document.createDocumentFragment(),o=document.createElement("div");for(o.innerHTML=n;o.firstChild;)t.appendChild(o.firstChild);return t}function xC(n){const e=document.createElement("div");return e.appendChild(n),e.innerHTML}function IC(n){let e=n.getPropertyValue("font");if(e)return e;const t=n.getPropertyValue("font-style"),o=n.getPropertyValue("font-variant"),r=n.getPropertyValue("font-weight"),i=n.getPropertyValue("font-size"),s=n.getPropertyValue("font-family");return e=`${t} ${o} ${r} ${i} ${s}`.replace(/ +/g," ").trim(),e}function Vd(n,e){const o=(Vd.canvas||(Vd.canvas=document.createElement("canvas"))).getContext("2d");return o?(typeof e=="string"?e?o.font=e:o.font=IC(window.getComputedStyle(document.body)):e instanceof Element&&(o.font=IC(window.getComputedStyle(e))),o.measureText(n).width+4):200}const DE=S("editor-clipboard");async function SE(n,e){if(e.clipboardData){const t=e.clipboardData;for(const o of n)t.setData(o.type,o.data);return!0}return!1}async function Mm(n){try{const e={};n.forEach(o=>{e[o.type]=o.data});const t=new ClipboardItem(e);return await navigator.clipboard.write([t]),!0}catch(e){return DE.error(e),!1}}function zl(n,e){return new Promise((t,o)=>{const r=document.createElement("input");r.type="file",r.style.display="none",e!=null&&e.multiple&&(r.multiple=!0),r.accept=n,r.onchange=()=>{const i=r.files;if(i){const s=e!=null&&e.multiple?Array.from(i):i[0];t(s)}r.remove()},r.onerror=i=>{o(i),r.remove()},r.click()})}function Wd(n){return Array.isArray(n)?n.every(e=>e instanceof File):!1}function Aa(n){const e=n;if(!e)return"";const t=e.lastIndexOf(".");return t===-1?"":e.slice(t+1)}function qd(n,e){const t=document.createElement("a");t.setAttribute("download",`${e||""}`),t.setAttribute("href",`${n}`),t.click(),t.remove()}const TC=S("auto-scroll");function DC(n,e){return!(n.scrollHeight===n.clientHeight||e==="top"&&n.scrollTop===0||e==="bottom"&&n.scrollTop+n.clientHeight===n.scrollHeight||e==="left"&&n.scrollLeft===0||e==="right"&&n.scrollLeft+n.clientWidth===n.scrollWidth)}function SC(n,{direction:e,step:t}){let o=null;const r=e==="left"||e==="right",i=()=>DC(n,e)?(r?e==="left"?n.scrollLeft=Math.max(n.scrollLeft-t,0):n.scrollLeft=Math.min(n.scrollLeft+t,n.scrollWidth):e==="top"?n.scrollTop=Math.max(n.scrollTop-t,0):n.scrollTop=Math.min(n.scrollTop+t,n.scrollHeight),o=requestAnimationFrame(i),o):(TC.debug("No need for scroll"),null);return o=requestAnimationFrame(i),()=>{o&&cancelAnimationFrame(o)}}class Gd{constructor(e){m(this,"cancelScroll",null);m(this,"options");m(this,"scrollDomInfo");m(this,"scrolling",!1);m(this,"getScrollingDirection",e=>{const{x:t,y:o}=e,{top:r,bottom:i,left:s,right:l}=this.scrollDomInfo,{edge:a}=this.options;return a.top&&o<=a.top+r?"top":a.bottom&&o>=i-a.bottom?"bottom":a.left&&t<=s+a.left?"left":a.right&&t>=l-a.right?"right":null});m(this,"handleMouseMove",e=>{var s;const{scrollElement:t,step:o=10,onDirectionChange:r}=this.options,i=this.getScrollingDirection(e);if(i){if(this.scrolling)return;TC.debug(`scroll direction: ${i}`),this.cancelScroll=SC(t,{direction:i,step:o}),r==null||r(i),this.scrolling=!0}else(s=this.cancelScroll)==null||s.call(this),this.scrolling=!1});this.options=e,this.scrollDomInfo=this.getScrollDomInfo()}getScrollDomInfo(){const{scrollElement:e}=this.options,t=e.getBoundingClientRect(),o=t.top,r=t.left,i=t.bottom,s=t.right;return{left:r,top:o,right:s,bottom:i}}active(){const{trackMouseEvent:e="mousemove"}=this.options;window.addEventListener(e,this.handleMouseMove,!0)}inactive(){var t;const{trackMouseEvent:e="mousemove"}=this.options;window.removeEventListener(e,this.handleMouseMove,!0),(t=this.cancelScroll)==null||t.call(this),this.scrolling=!1}}function LC(n,e){if(n===0)return"0 Bytes";const t=1024,o=e||2,r=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(n)/Math.log(t));return`${parseFloat((n/t**i).toFixed(o))} ${r[i]}`}function ba(n,e){let t=`${n}`;const o=e-t.length;for(let r=0;r<o;r++)t=`0${t}`;return t}const{t:xs}=R;function Rm(n,e){const t=new Date(n).getTime()+864e5*e;return new Date(t)}function LE(n,e){const t=n,o=Math.floor(e/12),r=e-o*12;return o&&t.setFullYear(t.getFullYear()+o),r&&t.setMonth(t.getMonth()+r),t}function ME(n,e){return Rm(n,e)}function Om(n,e){const t=new Date(n),o=new Date(e);return t.getDate()===o.getDate()&&t.getMonth()===o.getMonth()&&t.getFullYear()===o.getFullYear()}function MC(n){const e=new Date,t=new Date(n);return Om(e,t)}function RC(n){const e=Rm(new Date,-1);return Om(e,n)}function RE(n,e){return Math.round((n.getTime()-e.getTime())/864e5)}function _m(n,e){const t=new Date(n);if(e){const o=t.getFullYear(),r=t.getMonth()+1,i=t.getDate(),s=t.getHours(),l=t.getMinutes();let a=e;return a=a.replace("YYYY",`${o}`),a=a.replace("MM",ba(r,2)),a=a.replace("DD",ba(i,2)),a=a.replace("M",`${r}`),a=a.replace("D",`${i}`),a=a.replace("hh",ba(s,2)),a=a.replace("mm",ba(l,2)),a=a.replace("h",`${s}`),a=a.replace("m",`${l}`),a}return n.toLocaleDateString()}function Fm(n,e){const t=new Date(n),o=new Date;if(t.getTime()-o.getTime()>10*1e3)return R.t("date.dateFromFuture");if(MC(t)){const i=(o.getTime()-n.getTime())/1e3;if(i<10*60)return xs("date.dateJustNow");if(i<60*60)return xs("date.dateMinutesAgo",{num:`${Math.floor(i/60)}`});const s=Math.floor(i/60/60);return s===1?xs("date.date1HourAgo"):xs("date.dateHoursAgo",{num:`${s}`})}if(RC(n))return xs("date.dateYesterday");const r=Math.floor((o.getTime()-n.getTime())/1e3/24/60/60)+1;return r<14?xs("date.dateDaysAgo",{num:`${r}`}):r<28?xs("date.dateWeeksAgo",{num:`${Math.round(r/7)}`}):_m(n,e)}function Pm(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function OE(n,e,t){return n.replace(new RegExp(Pm(e),"g"),t)}function _E(n,e,t){return n.replace(new RegExp(Pm(e),"gi"),t)}function OC(n,e,t){const r=document.createElement("canvas").getContext("2d");if(!r)return null;if(r.font=String(e),r.measureText(n).width>t){let s=0,l=0;for(;l<t;)l=r.measureText(n.slice(0,s)).width,s++;return`${n.slice(0,s-2)}...`}return n}const _C=/[\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff66-\uff9f\uAC00-\uD7AF]/,FC=" -\x7F0-9!-/:-@[-`{-~\u0370-\u03FF\u0400-\u04FF",FE=new RegExp(`[${FC}]`),PE=new RegExp(`([^(${FC})])`,"g"),PC=/(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]/;function NC(n){return n.length===0?0:n.split("").reduce((e,t)=>{const o=(e<<5)-e+t.charCodeAt(0);return o&o},0)}function NE(n,e=1){var o,r;return(r=((o=Array.from(n))==null?void 0:o.filter(i=>_C.test(i))).slice(-e))==null?void 0:r.join("")}function $E(n,e=1){var r;const t=Array.from((r=n==null?void 0:n.replace(PE,""))==null?void 0:r.split(/\s/));return t.reduce((i,s,l)=>{var a,d;return l===t.length-1&&i.length<e?`${i}${(a=s==null?void 0:s.slice(0,e-i.length))!=null?a:""}`:`${i}${(d=s[0])!=null?d:""}`},"").slice(0,e)}function HE(n,e=1){var o,r;return(r=((o=Array.from(n))==null?void 0:o.filter(i=>PC.test(i))).slice(-e))==null?void 0:r.join("")}function jE(n,e=1){var t,o;return(o=(t=Array.from(n))==null?void 0:t.slice(0,e))==null?void 0:o.join("")}function Zd(n,e=1){if(!n||n.length===0)return"";const t=_C.test(n),o=FE.test(n),r=PC.test(n);switch(!0){case t:return NE(n,e);case o:return $E(n,e);case r:return HE(n,e);default:return jE(n,e)}}var $C=(n=>(n.blue="#338FE5",n.cyan="#34AFDE",n.teal="#2CB2AE",n.green="#24B47E",n.kelly="#8AAB3F",n.yellow="#F0A100",n.orange="#EB6414",n.red="#E52727",n.fuchsia="#BE507D",n.purple="#9678D3",n))($C||{});function Qd(n){const e=Object.values($C),t=Math.abs(typeof n=="string"&&n.trim()?NC(n.trim()):0)%e.length;return e[t]}const HC=S("container-children");function vt(n){const e=Array.from(n.querySelectorAll(":scope > .container-blocks > div[data-type=editor-block]"));return g(HC,e.length>0,"container have not any child block"),e}function St(n){const e=n.querySelector(":scope > .container-blocks > div[data-type=editor-block]");return g(HC,e,"container have not any child block"),e}function Gt(n){const e=vt(n);return e[e.length-1]}function Eo(n){return vt(n).length}function Or(n,e){return vt(n)[e]}const xo=S("block-dom");function Is(n){return n instanceof HTMLDivElement?n.getAttribute("data-type")==="editor-block":!1}function jC(n){return n instanceof HTMLElement&&n.getAttribute("data-type")==="block-tools"}function UC(n){W(n,"block-hidden")}function zC(n){te(n,"block-hidden")}function Yd(n){return!xe(n,"block-hidden")}function ie(n){const{id:e}=n;return g(xo,e,"no block id"),e}function De(n){const e=n.getAttribute("data-block-type");return g(xo,e,"invalid block dom, no data-type"),e}function oe(n){const e=n instanceof Element?n:n.parentElement;if(!e)return null;const t=e.closest("div[data-type=editor-block]");return t||null}function Ts(n){const e=n instanceof Element?n:n.parentElement;if(!e)return null;const t=e.closest("div[data-type=editor-block]:not(:scope)");return t||null}function ne(n){const e=n.closest("div[data-type=editor-container]");return g(xo,e,"failed to get block container"),e}function Re(n){const e=n.querySelector(":scope >div[data-type=block-content]");return g(xo,e,"no block content"),e}function lt(n){let e=n.querySelector(":scope >div[data-type=block-tools]");return e||(e=w("div",[],n),e.setAttribute("data-type","block-tools")),g(xo,e,"no block tools"),e}function Jd(n){const e=n.querySelector(":scope >div[data-type=block-tools]");return e||null}function VC(n){let e=n.querySelector(":scope > div[data-type=block-background]");return e||(e=w("div",[],n),e.setAttribute("data-type","block-background")),e}function WC(n,e,t){const o=n.editorDecorators.decorateBlock(e,t),{id:r,type:i}=o;g(xo,r,"no block id");const s=w("div",[`${i}-block`],null);s.id=r,s.setAttribute("data-type","editor-block"),s.setAttribute("data-block-type",i);const l=n.editorBlockRenders.renderBlock(n,e,t);return l.classes&&W(s,...l.classes),l.attributes&&Object.entries(l.attributes).forEach(([a,d])=>{s.setAttribute(a,d)}),l.styles&&Object.entries(l.styles).forEach(([a,d])=>{s.style.setProperty(a,d)}),s}function Ds(n,e){const t=w(e,[],null);return t.setAttribute("data-type","block-content"),n&&n.appendChild(t),t}function qC(n){const e=w("span",[`${n.type}-box`],null);return e.setAttribute("data-type","editor-box"),e.setAttribute("data-box-type",n.type),e.id=n.id,e}function va(n){const e=n.getAttribute("data-box-type");return g(xo,e,"not a valid box element, no type"),e}function Nm(n){return n instanceof HTMLSpanElement?n.getAttribute("data-type")==="editor-box":!1}function GC(n){const{id:e}=n;return g(xo,e,"no box id"),e}function $m(n){const e=n instanceof Element?n:n.parentElement;if(!e)return null;const t=e.closest("span[data-type=editor-box]");return t||null}function ZC(n){n.innerHTML="",w("span",["box-space-start"],n,ma);const e=w("span",[],n);return e.setAttribute("data-type","box-content"),w("span",["box-space-start"],n,ma),e}function Hm(n){const e=n.querySelector("span[data-type=box-content]");return g(xo,e,"invalid box dom, no content"),e}function QC(n,e){const t=w("span",[`${n}-insertion`],null);return t.setAttribute("data-type","editor-insertion"),t.setAttribute("data-insertion-id",e),t}function YC(n,e){return n.rootContainer.querySelector(`[data-insertion-id=${e}]`)}function JC(n){n.innerHTML="",w("span",["insertion-space-start"],n,ma);const e=w("span",[],n);return e.setAttribute("data-type","insertion-content"),w("span",["insertion-space-start"],n,ma),e}function jm(n){const e=n.querySelector("span[data-type=insertion-content]");return g(xo,e,"invalid insertion-child dom, no content"),e}function ct(n){let e=n.previousElementSibling;for(;e;){if(Is(e))return e;e=e.nextElementSibling}return null}function Ze(n){let e=n.nextElementSibling;for(;e;){if(Is(e))return e;e=e.nextElementSibling}return null}function Ss(n){let e=n.previousElementSibling;for(;e;){if(Is(e)&&Yd(e))return e;e=e.previousElementSibling}return null}function Ls(n){let e=n.nextElementSibling;for(;e;){if(Is(e)&&Yd(e))return e;e=e.nextElementSibling}return null}function be(n){const e=ne(n),o=vt(e).indexOf(n);return g(xo,o!==-1,"invalid block & container dom, failed to get block index"),o}function Um(n){return!n||!(n instanceof Node)?!1:!!oe(n)}function Ms(n){if(!Um(n))return!1;const e=n,t=e instanceof Element?e:e.parentElement;return t?!!t.closest("div[data-type=block-tools]"):!1}const KC=S("block-class");function Qe(n,e){return n.editorBlocks.getBlockClass(De(e))}function XC(n,e){const t=n.editorBlocks.getBlockClass(De(e));return g(KC,t.blockKind==="text",`is not a text block, ${t.blockType}`),t}function jn(n,e){const t=n.editorBlocks.getBlockClass(De(e));return g(KC,t.blockKind==="complex",`is not a text block, ${t.blockType}`),t}function Rs(n,e){return n.editorBlocks.getBlockClass(e)}function ee(n,e){return Qe(n,e).blockKind==="text"}function ya(n,e){return n.editorBlocks.getBlockClass(e).blockKind==="text"}function Le(n,e){return Qe(n,e).blockKind==="complex"}function UE(n,e){return!Le(n,e)}function Io(n,e){return Qe(n,e).blockKind}function To(n,e,t){return Qe(n,e).getCaretRect(e,t)}const e4=S("container");function _r(n){return n.getAttribute("data-type")==="editor-container"}function Xe(n){return xe(n,"root")}function Do(n){return xe(n,"child")}function ae(n){const e=n.getAttribute("data-container-id");return g(e4,e,"no id for container"),Xe(n)&&g(e4,e==="root",`invalid root container id, : ${e}`),e}function t4(n,e){const t=ae(n);return e.getContainerBlocks(t)}const zm=S("block");function ue(n,e){return Qe(n,e).getBlockTextLength(e)}function n4(n){n.editorBlocks.forEach(e=>{e.clearSelection(n)})}function o4(n,e,t,o){Qe(n,e).updateSelection(n,e,t,o)}function Vm(n){for(;;){const e=ne(n);if(Xe(e))return n;const t=oe(e);g(zm,t,"no parent block exists for child container"),n=t}}function r4(n,e){const t=Qe(n,e);if(!!t.getMinWidth)return t.getMinWidth(n,e)}function i4(n,e,t){const o=Qe(n,e);o.handleBlockElementUpdated&&o.handleBlockElementUpdated(n,e,t)}function Kd(n,e,t,o){try{const r=Rs(n,t).convertFrom;return r?r(n,e,o):null}catch{return zm.debug(`unsupported block type: ${t}`),null}}function Ti(n,e,t){const o=Qe(n,e);return o.getClientRects?o.getClientRects(n,e,t):[e.getBoundingClientRect()]}function zE(n,e){const t=Qe(n,e);if(t.getBlockStyles)return t.getBlockStyles(n,e);const o=n.getBlockData(e),r=Object.fromEntries(Object.entries(o).filter(([i])=>i.startsWith("style-")));return Object.entries(r).forEach(([,i])=>{const s=typeof i;g(zm,s==="string"||s==="number"||s==="boolean","invalid style value")}),r}function ht(n,e){return Io(n,e)==="text"?ue(n,e)===0:!1}const s4=S("block-path");function Di(n){const e=[];let t=n;for(;t;){const o=ne(t);if(e.unshift({containerId:ae(o),blockIndex:be(t)}),Xe(o))return e;const r=oe(o);g(s4,r,"no parent block"),t=r}return g(s4,!1,"no parent block"),[]}function VE(n,e){var r,i;const t=Qe(n,e);return(i=(r=t.getOptions)==null?void 0:r.call(t,n))!=null?i:{name:De(e)}}function ro(n){return Xe(ne(n))}function l4(n,e){var r;const t=Qe(n,e);return(r=t.getBlockProperties)==null?void 0:r.call(t,n,e)}function Wm(n,e){var i,s;const t=Qe(n,e),o=(i=t.getBlockProperties)==null?void 0:i.call(t,n,e);let r={};o!=null&&o.blockCommands&&(r={...o.blockCommands});for(const l of n.blockHooks){const a=(s=l.commands)==null?void 0:s.call(l,n,e);a&&(r[a.group]=a)}return r}function WE(n,e,t){var s,l,a,d;const o=Qe(n,e),r=(s=o.getBlockProperties)==null?void 0:s.call(o,n,e);let i={};r!=null&&r.blockCommands&&(i={...r.blockCommands});for(const h of n.blockHooks){const p=(l=h.commands)==null?void 0:l.call(h,n,e);p&&(i[p.group]=p)}return(d=(a=i[t])==null?void 0:a.commands)!=null?d:[]}function c4(n,e,t){let o=e;for(;o;){const r=WE(n,o,t);if(r.length>0)return{element:Re(o),commands:r};if(ro(o))break;o=Ts(o)}return{element:null,commands:[]}}const a4=S("embed-block-common");function Lt(n){return De(n)==="embed"}function Un(n){g(a4,Lt(n),"not an embed block");const e=n.getAttribute("data-embed-type");return g(a4,e,"no embed data type"),e}function qE(n,e){return n.editorEmbeds.getEmbedClass(Un(e))}function Os(n,e){return n.editorEmbeds.getEmbedClass(e)}async function qm(n,e,t,o,r){const i=Os(n,e);if(!i.getOptions)return null;const s=i.getOptions(n);if(!s.insertEmbedCommandItems||!s.insertEmbedCommandItems||s.insertEmbedCommandItems.length===0||!s.handleInsertEmptyEmbed)return null;const l=s.insertEmbedCommandItems[0];return s.handleInsertEmptyEmbed(n,{item:l,containerId:t,blockIndex:o,data:r})}function GE(n,e,t,o,r){var l,a;const i=(a=(l=Rs(n,e)).getOptions)==null?void 0:a.call(l,n);if(!i||!i.insertBlockCommandItems||i.insertBlockCommandItems.length===0||!i.handleInsertEmptyBlock)return null;const s=i.insertBlockCommandItems[0];return i.handleInsertEmptyBlock(n,{item:s,containerId:t,blockIndex:o,data:r})}const ZE=S("execute-block-command");function u4(n,e,t,o){var d;g(ZE,Lt(e),"not a embed block");const r=Un(e),i=Os(n,r);if(!i.getOptions)return;const s=(d=i.getBlockProperties)==null?void 0:d.call(i,n,e),l=s==null?void 0:s.blockCommands;if(!l)return;const a=Object.entries(l);for(const h of a)if(h[0]===t)return h[1].executeCommand(n,e,o)}function d4(n,e,t,o){const r=Wm(n,e);if(!r)return;const i=Object.entries(r);for(const s of i)if(s[0]===t)return s[1].executeCommand(n,e,o)}const Fr=S("text-block-child");function ka(n){return n.tagName==="SPAN"}function io(n){return g(Fr,ka(n),"not a valid text child"),n.getAttribute("data-type")==="editor-box"}function Pr(n){return g(Fr,ka(n),"not a valid text child"),n.getAttribute("data-type")==="editor-insertion"}function wa(n){return!io(n)&&!Pr(n)}function h4(n){return g(Fr,ka(n),"not a valid text child"),io(n)?"box":Pr(n)?"insertion":"text"}function so(n){const e=h4(n);return e==="insertion"?0:e==="box"?1:(g(Fr,n.textContent!==null,"text block content is undefined"),g(Fr,n.textContent.length>=0,"text block content length is negative"),n.textContent.length)}function nr(n){const e=Re(n),t=Array.from(e.children);return t.forEach(o=>{g(Fr,ka(o),"not a valid text child")}),t}function Xd(n,e){const t=nr(n);let o=0;for(let r=0;r<t.length;r++){const i=t[r],s=so(i);if(o+s<e){o+=s;continue}if(o===e)return{prev:t[r-1],next:i,offset:0};if(o+s===e)return{prev:i,next:t[r+1],offset:0};const l=e-o;return g(Fr,l>0,"invalid offset value"),g(Fr,!io(i),"invalid box child"),{prev:i,next:i,offset:l}}g(Fr,!1,`invalid block child at position: ${e}`)}const f4=S("element");function Gm(n,e,t){const o=w("div",[e],n);return o.setAttribute("data-type","editor-container"),o.setAttribute("data-container-id",t),w("div",["container-blocks"],o),o}function Nr(n,e){const t=n.rootElement.querySelector(`[data-container-id=${e}`);return g(f4,t,`no container: ${e}`),t}function m4(n,e){return n.rootElement.querySelector(`[data-container-id=${e}`)}function eh(n){const e=n.querySelector(":scope > .container-blocks");return g(f4,e,"no container blocks element"),e}function QE(n){let e=n.querySelector(":scope > .container-tools");return e||(e=w("div",["container-tools"],n)),e}const YE=S("child-container-path");function g4(n){if(Xe(n))return[];const e=oe(n);return g(YE,e,"no parent block"),Di(e)}const p4=S("load-blocks");function Zm(n,e,t){const o=ae(e),r=t4(e,n.doc);g(p4,r.length>0,"no blocks in container");const i=document.createDocumentFragment();r.forEach((l,a)=>{const d=n.editorBlocks.createBlock([...t,{containerId:o,blockIndex:a}],e,l);i.appendChild(d)}),eh(e).appendChild(i)}function JE(n,e,t){const o=eh(n);if(e===0)return o.insertBefore(t,o.firstChild),t;const r=vt(n);return g(p4,e>=0&&e<=r.length,"invalid block index"),e===r.length?o.appendChild(t):o.insertBefore(t,r[e]),t}function KE(n,e,t,o){const r=g4(e);r.push({containerId:ae(e),blockIndex:t});const i=n.editorBlocks.createBlock(r,e,o);return JE(e,t,i),i}const C4=S("root-container");class XE{constructor(e,t){m(this,"resizeObserver");m(this,"handleContextMenu",e=>{});m(this,"handleResize",()=>{try{this.editor.selection.updateSelection(null),this.editor.emit("resize",this.editor)}catch(e){C4.warn(`failed to update selection while container resizing: ${e.message}`)}});m(this,"handleClick",e=>{this.editor.emit("click",this.editor,e);const t=e.target;if(!Ms(t)&&(e.detail===1&&this.editor.input.focus(),e.detail===3&&this.editor.selectionHandler.handleTripleClick(e),e.detail===1&&e.button===0)){const o=document.elementFromPoint(e.clientX,e.clientY);if(o&&Ke(this.rootContainer,o)){const r=oe(o);r&&Ke(r,o)&&this.handleBlockClick(e,r,o)}}});m(this,"handleBlockClick",(e,t,o)=>{var s,l;if(!ee(this.editor,t))return;const r=$m(o);if(r){const a=oe(r);g(C4,a,"no parent block"),(l=(s=this.editor.editorBoxes.getBoxClass(va(r)))==null?void 0:s.handleClickBox)==null||l.call(s,this.editor,r,e);return}const i=o.closest("span.text.link");i&&nr(t).indexOf(i)!==-1&&this.editor.emit("clickLink",this.editor,e,i)});m(this,"handleDblClick",e=>{Ms(e.target)||this.editor.selectionHandler.handleDblClick(e)});m(this,"handleMouseDown",e=>{const t=e.target;if(!!t&&t instanceof Node&&!Ms(t)){if(t instanceof HTMLElement&&t.draggable){this.editor.selectionHandler.handleMouseDown(e,{autoScroll:!1}),this.editor.selectionHandler.stopSelection(),this.editor.input.focus();return}e.button===0&&(document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),this.editor.selectionHandler.handleMouseDown(e,{autoScroll:!0})),Kt.isMobileSafari||(e.preventDefault(),this.editor.input.focus()),e.button===2&&e.stopPropagation()}});m(this,"handleMouseMove",e=>{this.editor.selectionHandler.handleMouseMove(e)});m(this,"handleMouseUp",e=>{e.button===0&&(this.editor.selectionHandler.handleMouseUp(e),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp))});this.editor=e,this.rootContainer=t,this.editor=e,this.resizeObserver=new ResizeObserver(this.handleResize),this.bindEvents(t)}bindEvents(e){this.resizeObserver.observe(e);const t=this.editor.rootElement;t.onmousedown=this.handleMouseDown,t.ondblclick=this.handleDblClick,t.onclick=this.handleClick,t.oncontextmenu=this.handleContextMenu}unbindEvents(){this.resizeObserver.disconnect();const e=this.editor.rootElement;e.onmousedown=null,e.ondblclick=null,e.onclick=null,e.oncontextmenu=null}destroy(){this.unbindEvents()}reload(){const e=this.editor.selection.range,t=eh(this.rootContainer);t.innerHTML="",Zm(this.editor,this.rootContainer,[]);const o=this.editor.findBlockById(e.start.blockId);if(o)this.editor.selection.selectBlock(o,0);else{const r=St(this.rootContainer);this.editor.selection.selectBlock(r,0)}}}function A4(n){const e=Gm(n.contentElement,"root","root");return n.rootContainer=e,Zm(n,e,[]),new XE(n,e)}function b4(n,e,t,o){const r=m4(n,o);if(r)return t.appendChild(r),setTimeout(()=>{n.emit("containerRemount",n,o)}),r;const i=Gm(t,"child",o);return Zm(n,i,e),i}function v4(n,e){const t=n.getBoundingClientRect().width;return e.withPadding?t:t-Cm(n)}function Qm(n,e){let t=Number.MAX_SAFE_INTEGER;const o=vt(e);for(let i=0;i<o.length;i++){const s=o[i],l=r4(n,s);l&&(t=Math.min(t,l))}return t===Number.MAX_SAFE_INTEGER?void 0:t+Cm(e)}function Ym(n,e){const t=vt(e);return t.length!==1?!1:ht(n,t[0])}const ex=S("complex-block-position");class So{constructor(e,t,o){m(this,"blockId");m(this,"childContainerId");m(this,"custom");e instanceof HTMLElement?this.blockId=ie(e):(g(ex,typeof e=="string",`not a valid block id: ${e}`),this.blockId=e),this.childContainerId=t,o!==void 0&&(this.custom=o)}isSimple(){return!1}}const tx=S("simple-block-position");class jt{constructor(e,t,o){m(this,"blockId");m(this,"offset");m(this,"type");e instanceof HTMLElement?this.blockId=ie(e):(g(tx,typeof e=="string",`not a valid block id: ${e}`),this.blockId=e),this.offset=t,this.type=o}isSimple(){return!0}}const Jm=S("editor-position");function se(n,e,t){return new jt(n,e,t)}function ft(n,e,t){return new So(n,e,t)}function $r(n){return n instanceof jt}function Km(n){return n instanceof So}function Xm(n,e,t){if($r(e)&&$r(t)){const o=e,r=t;if(o.blockId===r.blockId)return o.offset-r.offset;const i=n.getBlockById(e.blockId),s=n.getBlockById(t.blockId);return g(Jm,i!==s,"comparePosition: blocks are the same"),Hd(i,s)}if(Km(e)&&Km(t)){const o=e,r=t;if(o.childContainerId===r.childContainerId)return 0;const i=n.getContainerById(o.childContainerId),s=n.getContainerById(r.childContainerId);return g(Jm,i!==s,"comparePosition: containers are the same"),Hd(i,s)}return g(Jm,!1,"invalid "),0}const th=S("simple-range");class Zt{constructor(e,t){m(this,"editor");m(this,"_anchor");m(this,"_focus");m(this,"reverse");this.editor=e,this._anchor=t.anchor,this._focus=t.focus,this.reverse=Xm(this.editor,this._anchor,this._focus)>0}isCollapsed(){return this.start.blockId===this.end.blockId&&this.start.offset===this.end.offset}isEqual(e){if(!(e instanceof Zt))return!1;const t=e,{start:o,end:r}=t;return this.start.blockId===o.blockId&&this.start.offset===o.offset&&this.start.type===o.type&&this.end.blockId===r.blockId&&this.end.offset===r.offset&&this.end.type===r.type}isSimple(){return!0}isReverse(){return this.reverse}getEditor(){return this.editor}get start(){return this.reverse?this._focus:this._anchor}get end(){return this.reverse?this._anchor:this._focus}get anchor(){return this._anchor}get focus(){return this._focus}getSelectedBlocks(){const{editor:e}=this,t=e.getBlockById(this.start.blockId),o=e.getBlockById(this.end.blockId);g(th,t,"no start block"),g(th,o,"no end block");const r=ne(t),i=ne(o);g(th,r===i,"invalid range");const s=[];if(t===o)s.push({block:t,start:this.start,end:this.end});else{const l=be(t),a=be(o);g(th,l<a,"invalid range, start > index"),s.push({block:t,start:this.start,end:se(t,ue(this.editor,t),"end")});const d=vt(r);for(let h=l+1;h<a;h+=1){const p=d[h];s.push({block:p,start:se(p,0,"home"),end:se(p,ue(this.editor,p),"end")})}s.push({block:o,start:se(o,0,"home"),end:this.end})}return s}getSelectedContainers(){return[]}getAnchorPos(){return this.isReverse()?this.end:this.start}getFocusedPos(){return this.isReverse()?this.start:this.end}clone(){return new Zt(this.editor,this)}toDocRange(){return{anchor:this.anchor,focus:this.focus}}static from(e,t){return new Zt(e,t)}}S("unknown-block");function nx(n,e,t,o,r){W(o,"unknown-block");const i=Ds(o,"div");return i.innerText=`unknown block (${r.type}): ${JSON.stringify(r)}`,i}function ox(n){return 1}function rx(n,e,t,o){return null}function ix(n,e,t,o){const r=document.elementsFromPoint(t,o)[0];if(!r||!e.contains(r)||!n.contains(e))return null;const i=ie(e),s=se(i,0,"home"),l=se(i,1,"end");return new Zt(n,{anchor:s,focus:l})}function sx(n,e){const o=Re(n).getBoundingClientRect();return new DOMRect(o.left+o.width/2,o.top,1,o.height)}function lx(n,e,t,o){W(e,"selected")}function cx(n){n.rootContainer.querySelectorAll("div.unknown-block[data-type=editor-block]").forEach(e=>{te(e,"selected")})}function ax(n,e,t,o){return`[unknown block, ${e.type}]`}const ux={blockType:"unknown-block",blockKind:"embed",createBlockContent:nx,getBlockTextLength:ox,getRangeFromPoint:ix,moveCaret:rx,getCaretRect:sx,updateSelection:lx,clearSelection:cx,convertTo:ax},eg=S("editor-blocks");class y4{constructor(e){m(this,"blocks",new Map);this.editor=e}registerBlockClass(e){const t=e.blockType,o=this.blocks.get(t);g(eg,!o,`duplicated block type: ${t}`),this.blocks.set(t,e)}getBlockClass(e){const t=this.blocks.get(e);return g(eg,t,`unknown block type: ${e}`),t}hasBlock(e){return this.blocks.has(e)}createBlock(e,t,o){const r=WC(this.editor,e,o);let i;this.hasBlock(o.type)?i=this.getBlockClass(o.type):i=this.registerUnknownBlock(o.type);const s=i.createBlockContent(this.editor,e,t,r,o);return s.parentElement!==r&&(eg.warn("content parent is not block"),r.appendChild(s)),this.editor.blockHooks.forEach(l=>{var a;(a=l.create)==null||a.call(l,this.editor,e,t,r,o)}),r}forEach(e){this.blocks.forEach(e)}registerUnknownBlock(e){const t={...ux,blockType:e};return this.editor.editorBlocks.registerBlockClass(t),t}}const k4=S("editor-embeds");class w4{constructor(e){m(this,"objects",new Map);this.editor=e}registerEmbedClass(e){const t=e.embedType,o=this.objects.get(t);g(k4,!o,`duplicated embed object type: ${t}`),this.objects.set(t,e)}getEmbedClass(e){const t=this.objects.get(e);return g(k4,t,`unknown embed type: ${e}`),t}getEmbedClassFromBlock(e){return this.getEmbedClass(Un(e))}forEach(e){this.objects.forEach(e)}}const B4=S("embed-block");function dx(n,e,t,o,r){const i=Ds(o,"div");g(B4,r.type==="embed",`not an embed data: ${JSON.stringify(r)}`);const s=r;return g(B4,s.embedType&&s.embedData,`not an embed data: ${JSON.stringify(s)}`),n.editorEmbeds.getEmbedClass(s.embedType).createEmbedContent(n,i,s,e,t,o),o.setAttribute("data-embed-type",s.embedType),i}function hx(n){return 1}function fx(n,e,t,o){return null}function mx(n,e,t,o){const r=document.elementsFromPoint(t,o)[0];if(!r||!e.contains(r)||!n.contains(e))return null;const i=ie(e),s=se(i,0,"home"),l=se(i,1,"end");return new Zt(n,{anchor:s,focus:l})}function gx(n,e){const o=Re(n).getBoundingClientRect();return new DOMRect(o.left+o.width/2,o.top,1,o.height)}function px(n,e,t,o){W(e,"selected")}function Cx(n){n.rootContainer.querySelectorAll("div.embed-block[data-type=editor-block][data-block-type=embed]").forEach(e=>{te(e,"selected")})}function Ax(n,e,t){let o=null;return n.editorEmbeds.forEach(r=>{var s,l;const i=(l=(s=r.convertFrom)==null?void 0:s.call(r,n,e,t))!=null?l:null;i&&(o=i)}),o}function bx(n,e,t,o){const r=Os(n,e.embedType);return r.convertTo?r.convertTo(n,e,t,o):""}function vx(n,e){const t=qE(n,e);return t.getBlockProperties?t.getBlockProperties(n,e):{}}function yx(n){const e=new Map,t=[];return n.editorEmbeds.forEach(o=>{if(o.getOptions){const r=o.getOptions(n);r.insertEmbedCommandItems&&r.insertEmbedCommandItems.forEach(i=>{t.push(i),e.set(i.id,o)})}}),{name:"EmbedBlock",insertBlockCommandItems:t,async handleInsertEmptyBlock(o,r){const i=e.get(r.item.id);if(!i||!i.getOptions)return null;const s=i.getOptions(o);return s.handleInsertEmptyEmbed?s.handleInsertEmptyEmbed(o,r):null}}}function kx(n,e,t,o){const r=Un(e),i=Os(n,r);!i.handleDeleteBlock||i.handleDeleteBlock(n,e,t,o)}function wx(n,e,t){const o=Un(e),r=Os(n,o);return r.handleUpdateBlock?r.handleUpdateBlock(n,e,t):!1}function Bx(n,e,t,o,r){const i=Un(e),s=Os(n,i);if(s.handleDropOver)return s.handleDropOver(n,e,t,o,r)}function Ex(n,e,t,o,r){const i=Un(e),s=Os(n,i);if(s.handleDrop&&n.isWritable())return s.handleDrop(n,e,t,o,r)}async function xx(n,e,t){const o=e.embedType,r=n.editorEmbeds.getEmbedClass(o);if(r.toStandardDoc){const i=n.getBlockById(e.id),s=Di(i);return r.toStandardDoc(n,e,t,s)}}const E4={blockType:"embed",blockKind:"embed",createBlockContent:dx,getBlockTextLength:hx,getRangeFromPoint:mx,moveCaret:fx,getCaretRect:gx,updateSelection:px,clearSelection:Cx,convertFrom:Ax,convertTo:bx,getBlockProperties:vx,getOptions:yx,handleDeleteBlock:kx,handleUpdateBlock:wx,handleDropOver:Bx,handleDrop:Ex,toStandardDoc:xx},fn=S("complex-block-helper");function En(n,e,t){return jn(n,e).getChildContainers(n,e,t)}function _s(n,e,t,o){return t.isSimple()?(g(fn,o.isSimple(),"invalid start and end position"),En(n,e)):(g(fn,!t.isSimple(),"invalid start pos"),g(fn,!o.isSimple(),"invalid end pos"),jn(n,e).getSelectedContainers(n,e,t,o))}function Ix(n,e){if(be(e)!==0)return!1;const t=oe(ne(e));if(!t)return!1;g(fn,Le(n,t),"not a complex block");const o=ne(e),i=En(n,t).indexOf(o);return g(fn,i>=0,"not valid child container"),i===0}function tg(n,e,t){const o=En(n,e,t);if(o.length===0)return null;const r=o[0];if(!r)return null;const i=St(r);return Le(n,i)?tg(n,i,t):i}function Vl(n,e,t){const o=En(n,e,t);if(o.length===0)return null;const r=o[o.length-1];if(!r)return null;const i=Gt(r);return Le(n,i)?Vl(n,i,t):i}function x4(n,e){g(fn,Do(e),"not a child container");const t=oe(e);g(fn,t,"no parent block"),g(fn,Le(n,t),"not a complex block");const o=En(n,t),r=o.indexOf(e);if(g(fn,r!==-1,"child container not found"),r===0){const l=ct(t);return l?Le(n,l)?Vl(n,l):l:null}const i=o[r-1],s=Gt(i);return Le(n,s)?Vl(n,s):s}function I4(n,e){g(fn,Le(n,e),"not a complex block");const t=En(n,e);if(g(fn,t.length>0,"no child container"),t.length===1)return t;const o=t[0],r=o.getBoundingClientRect();let i=r.left,s=r.right;const l=[o];for(let a=1;a<t.length;a++){const d=t[a],h=d.getBoundingClientRect();if(h.right<=i){l.push(d),i=h.left;continue}if(h.left>=s){s=h.right;continue}}return l}function T4(n,e){g(fn,Le(n,e),"not a complex block");const t=En(n,e);if(g(fn,t.length>0,"no child container"),t.length===1)return t;const o=t[t.length-1],r=o.getBoundingClientRect();let i=r.left,s=r.right;const l=[o];for(let a=t.length-2;a>=0;a--){const d=t[a],h=d.getBoundingClientRect();if(h.right<=i){l.push(d),i=h.left;continue}if(h.left>=s){s=h.right;continue}}return l}function D4(n,e,t,o){const r=e.getBoundingClientRect(),i=o<r.top,s=i?I4(n,e):T4(n,e);let l=s[0],a=tr(l.getBoundingClientRect(),t,o);for(let d=1;d<s.length;d++){const h=s[d],p=h.getBoundingClientRect(),A=tr(p,t,o);A<a&&(l=h,a=A)}return i?St(l):Gt(l)}function nh(n,e,t,o){const r=ie(e);g(fn,r===t.blockId,"invalid start pos"),g(fn,r===o.blockId,"invalid end pos");const i=jn(n,e);return i.adjustSelectionPos?i.adjustSelectionPos(n,e,t,o):{anchor:t,focus:o}}class or{constructor(e,t){m(this,"editor");m(this,"reverse");m(this,"_anchor");m(this,"_focus");this.editor=e,this._anchor=t.anchor,this._focus=t.focus,this.reverse=Xm(this.editor,this._anchor,this._focus)>0}isCollapsed(){return!1}isEqual(e){if(!(e instanceof or))return!1;const t=e,{anchor:o,focus:r}=t;return this._anchor.blockId===o.blockId&&this._anchor.childContainerId===o.childContainerId&&this._focus.blockId===r.blockId&&this._focus.childContainerId===r.childContainerId&&this._anchor.custom===o.custom&&this._focus.custom===r.custom}isReverse(){return this.reverse}isSimple(){return!1}getEditor(){return this.editor}get anchor(){return this._anchor}get focus(){return this._focus}get start(){return this.reverse?this._focus:this._anchor}get end(){return this.reverse?this._anchor:this._focus}getSelectedBlocks(){const e=this.start,t=this.end;return[{block:this.editor.getBlockById(e.blockId),start:e,end:t}]}getAnchorPos(){return this._anchor}getFocusedPos(){return this._focus}getSelectedContainers(){const e=this.editor.getBlockById(this._anchor.blockId);return _s(this.editor,e,this.start,this.end)}clone(){return new or(this.editor,this)}toDocRange(){return{anchor:this._anchor,focus:this._focus}}}const Tx=S("selection-range");function Ut(n,e){const{anchor:t,focus:o}=e;return t instanceof jt&&o instanceof jt?new Zt(n,{anchor:t,focus:o}):(g(Tx,t instanceof So&&o instanceof So,"start position type does not math end type"),new or(n,{anchor:t,focus:o}))}function yt(n,e,t,o){const r=new jt(e,t,"normal"),i=new jt(e,o!=null?o:t,"normal");return Ut(n,{anchor:r,focus:i})}function Dx(n){return!!n.anchor.childContainerId}function Si(n,e){var r,i;if(Dx(e)){const s=ft(e.anchor.blockId,e.anchor.childContainerId,(r=e.anchor)==null?void 0:r.custom),l=ft(e.focus.blockId,e.focus.childContainerId,(i=e.focus)==null?void 0:i.custom);return Ut(n,{anchor:s,focus:l})}const t=se(e.anchor.blockId,e.anchor.offset,"normal"),o=se(e.focus.blockId,e.focus.offset,"normal");return Ut(n,{anchor:t,focus:o})}const S4=S("range-from-point");function oh(n,e,t){const o=[0,-8,8];for(let r=0;r<o.length;r++){const i=document.elementsFromPoint(e,t+o[r])[0];if(!i)continue;const s=i.getBoundingClientRect();if(i.clientWidth&&i.clientHeight&&r===0&&(s.left+i.clientWidth<e||s.top+i.clientHeight<t))return S4.debug("click on scrollbar, out of element rect"),null;if(!n.rootContainer.contains(i))continue;const l=oe(i);if(!l||!n.contains(l))continue;const a=Qe(n,l).getRangeFromPoint(n,l,e,t+o[r]);if(a)return a}return null}function L4(n,e,t,o){const r=e.getBoundingClientRect();if(o<=r.top){const a=St(e),d=Qe(n,a).getRangeFromPoint(n,a,t,a.getBoundingClientRect().top+4);if(d!=null&&d.isSimple())return Zt.from(n,d);const h=se(a,0,"home");return new Zt(n,{anchor:h,focus:h})}const i=Gt(e),s=Qe(n,i).getRangeFromPoint(n,i,t,i.getBoundingClientRect().bottom-4);if(s!=null&&s.isSimple())return Zt.from(n,s);const l=se(i,ue(n,i),"end");return new Zt(n,{anchor:l,focus:l})}function M4(n,e,t){const o=oh(n,e,t);if(o){if(o instanceof Zt)return o;g(S4,o instanceof or,`invalid range type: ${typeof o}`);const a=o,d=n.getContainerById(a.start.childContainerId);return L4(n,d,e,t)}const r=document.elementsFromPoint(e,t)[0];if(!r)return null;const{children:i}=r,s=Array.from(i).filter(a=>_r(a));if(s.length===0)return null;const l=s.reduce((a,d)=>{const h=a.getBoundingClientRect(),p=d.getBoundingClientRect();return tr(h,e,t)>tr(p,e,t)?d:a});return L4(n,l,e,t)}function ng(n,e){const t=[];return vt(e).forEach(r=>{t.push(r),Le(n,r)&&En(n,r).forEach(s=>{t.push(...ng(n,s))})}),t}function og(n,e){let t=ng(n,n.rootContainer);return e!=null&&e.simpleBlockOnly&&(t=t.filter(o=>!Le(n,o))),t}function Lo(n,e){const t=n.selection.range.getSelectedBlocks(),o=[];for(const r of t)o.push(r),Le(n,r.block)&&_s(n,r.block,r.start,r.end).forEach(s=>{const a=ng(n,s).map(d=>({block:d,start:se(d,0,"home"),end:se(d,ue(n,d),"home")}));o.push(...a)});return e!=null&&e.simpleBlockOnly?o.filter(r=>!Le(n,r.block)):o}const one="",Qt=S("text-range");function Sx(n,e){const t=(i,s)=>{if(Pr(i))return g(Qt,s===0,`invalid offset for insertion child: ${s}`),{child:i,container:i,offset:2};if(io(i))return g(Qt,s===0||s===1,`invalid offset for box: ${s}`),{child:i,container:i,offset:s===0?1:2};const l=i.firstChild;return g(Qt,l,"no child node for text child"),g(Qt,l instanceof Text||l instanceof HTMLBRElement,`invalid child for text child, ${l.nodeName}`),l instanceof HTMLBRElement?(g(Qt,s>=0&&s<=0,"invalid offset for text child"),{child:i,container:l,offset:s}):(g(Qt,s>=0&&s<=l.data.length,"invalid offset for text child"),{child:i,container:l,offset:s})};let o=0;const r=nr(n);for(let i=0;i<r.length;i++){const s=r[i],l=so(s);if(e===o)return[t(s,0)];if(e<o+l)return[t(s,e-o)];if(e===o+l){const a=[];a.push(t(s,so(s)));const d=r[i+1];return d&&a.push(t(d,0)),a}o+=l}g(Qt,!1,"failed to get range info")}function Lx(n,e,t){if(e===t?g(Qt,Pr(n),"only insertion child can be zero offset"):g(Qt,e<t,`invalid start & end: ${e}, ${t}`),Pr(n)){g(Qt,e===t,`invalid insertion child range offset: ${e}, ${t}`),g(Qt,e===0,`invalid insertion child range start: ${e}`);const i=n;return g(Qt,i.children.length===3,`invalid insertion dom, children.length = ${i.children.length}`),Nd(i,1,i,2)}if(io(n)){g(Qt,e+1===t,`invalid box child range offset: ${e}, ${t}`),g(Qt,e===0,`invalid box child range start: ${e}`);const i=n;return g(Qt,i.children.length===3,`invalid box dom, children.length = ${i.children.length}`),Nd(i,1,i,2)}const o=so(n);g(Qt,t<=o,`invalid child end: ${t}, ${o}`);const r=n.firstChild;return g(Qt,r instanceof Text,"invalid block text child"),g(Qt,r.data.length>=t,`invalid range end: ${t}, ${r.data.length}`),Nd(r,e,r,t)}const Mo=S("caret-rect");function Mx(n,e){if(Nm(e)){const t=e,o=Hm(t);if(t.getAttribute("data-box-type")==="br"){const r=Re(n),i=Number.parseFloat(window.getComputedStyle(r).lineHeight)||o.getBoundingClientRect().height,s=Array.from(o.getClientRects());g(Mo,s.length>0,"no box client rects");const l=r.getBoundingClientRect(),a=s[0],d=new DOMRect(l.left,a.bottom,1,i);return s.push(d),s}return o.getClientRects()}return jm(e).getClientRects()}function zn(n,e){var l;const t=Sx(n,e.offset);if(t[1]&&t[0].child!==((l=t[1])==null?void 0:l.child)){if(e.type==="end"){const d=vs(t[0].child);return new DOMRect(d.right,d.top,1,d.height)}g(Mo,t[1],"invalid ranges");const a=$d(t[1].child);return new DOMRect(a.left,a.top,1,a.height)}let r=t[0];if(g(Mo,t.length>=1,"failed to get block range"),t.length===1)r=t[0];else{if(g(Mo,t.length>=2,`invalid range info length: ${t.length}`),Pr(t[t.length-1].child)){r=t[t.length-1];const a=r.child,h=jm(a).getClientRects();g(Mo,h.length>=1,"no client rects for box content");const p=h[h.length-1];return new DOMRect(p.right,p.y,1,p.height)}e.type==="home"?r=t[1]:e.type==="end"||wa(t[0].child)?r=t[0]:wa(t[1].child)&&(r=t[1])}if(r.container instanceof HTMLBRElement){g(Mo,e.offset===0,"invalid offset for empty block text");const a=r.container.parentElement,d=a==null?void 0:a.parentElement;g(Mo,d===Re(n)&&a,"invalid br parent, is not block parent");const h=a.getBoundingClientRect(),p=d.getBoundingClientRect();return new DOMRect(h.left,p.top,1,p.height)}const s=tC(r.container,r.offset).getClientRects();if(s.length===0){g(Mo,!wa(r.child),"only box or insertion child range has zero client rect"),g(Mo,r.offset===1||r.offset===2,"invalid offset for box or insertion child");const a=r.child,d=Mx(n,a);if(g(Mo,d.length>=1,"no client rects for box content"),r.offset===1){const p=d[0];return new DOMRect(p.x,p.y,1,p.height)}const h=d[d.length-1];return e.type==="end"||r.offset===2?new DOMRect(h.right,h.y,1,h.height):new DOMRect(h.x,h.y,1,h.height)}return g(Mo,s.length>0,"no client rects for range"),e.type==="home"?s[s.length-1]:s[0]}const Rx=S("core");function Li(n,e,t,o){const r=lt(e);let i=r.querySelector(`.block-anchor[data-id=${t}]`);i||(i=w("div",["block-anchor"],r),i.setAttribute("data-id",t));const s=o!=null?o:e.getBoundingClientRect(),l=e.getBoundingClientRect(),a=new DOMRect(s.left-l.left,s.top-l.top,s.width,s.height);return i.style.left=`${a.left}px`,i.style.top=`${a.top}px`,i.style.width=`${a.width}px`,i.style.height=`${a.height}px`,i}function R4(n,e,t,o){g(Rx,ee(n,e),"not a text kind block");const r=zn(e,se(e,t,"normal")),i=e.getBoundingClientRect(),s=lt(e);let l=s.querySelector(`.block-anchor[data-id=${o}]`);l||(l=w("div",["block-anchor"],s),l.setAttribute("data-id",o));const a=new DOMRect(r.left-i.left,r.top-i.top,r.width,r.height);return l.style.left=`${a.left}px`,l.style.top=`${a.top}px`,l.style.width=`${a.width}px`,l.style.height=`${a.height}px`,l}function Ba(n){const e=nr(n);let t=0;return e.forEach(o=>{t+=so(o)}),t}const O4=S("box");function Ea(n){return!n.attributes||!n.attributes.box?!1:(g(O4,n.attributes.box===!0,`invalid op attribute box property, ${n.attributes.box}`),g(O4,n.attributes.type,`no box type: ${JSON.stringify(n)}`),!0)}const _4=S("rich-text-length");function rg(n){return g(_4,typeof n.insert=="string","op.insert is not string"),n.insert.length}function rn(n){let e=0;return n.forEach(t=>{t.insert&&(g(_4,typeof t.insert=="string","op.insert is not string"),e+=rg(t))}),e}const rr=S("split-text");function xn(n,e,t){if(n=me.default(n),e===0)return{left:[],right:n};if(e===-1)return{left:n,right:[]};let o=0;for(let r=0;r<n.length;r++){const i=n[r];g(rr,typeof i=="object",`invalid op type, ${typeof i}`),g(rr,typeof i.insert=="string",`invalid op.insert type, ${typeof i.insert}`);const s=rg(i);if(o+s<e)o+=s;else{if(o+s===e)return{left:n.slice(0,r+1),right:n.slice(r+1)};{g(rr,o+s>e,`invalid offset, ${o}, ${s}, ${e}`);const l=e-o,a=me.default(i);g(rr,a.insert,"no copied.insert"),g(rr,typeof a.insert=="string","invalid copied.insert type"),a.insert=a.insert.substr(0,l),i.insert=i.insert.substr(l),a.insert===""&&g(rr,!1,"invalid copied.insert, is empty string"),i.insert===""&&g(rr,!1,"invalid op.insert, is empty string");const d=[i,...n.slice(r+1)],h=[...n.splice(0,r),a];return t&&(t.sourceOp=i),{left:h,right:d}}}}throw new Error(`invalid split offset: ${e}, ${JSON.stringify(n)}`)}function zt(n,e,t){g(rr,e>=0,"invalid offset, < 0"),g(rr,t>0,"invalid length, <= 0"),g(rr,e+t<=rn(n),"invalid offset + length < text length");const{left:o,right:r}=xn(n,e+t),{left:i,right:s}=xn(o,e);return{left:i,middle:s,right:r}}function F4(n,e){const t=Array.from(new Set(e)).sort((i,s)=>i-s),o=[];let r=n;for(let i=t.length-1;i>=0;i--){const s=t[i],{left:l,right:a}=xn(r,s);r=l,o.unshift(a)}return r.length>0&&o.unshift(r),o}function P4(n,e,t){return zt(n,e,t).middle}const Wl=S("text-block-content");function Ox(n,e,t,o,r){if(g(Wl,o,"no text for block"),o.length===0&&(!r||r.size===0)){t.innerHTML="<span><br></span>";return}const i=[];r&&i.push(...r.keys());const s=p=>n.editorInsertions.createInsertion(t,p),l=(p,A)=>{const v=r==null?void 0:r.get(A);v&&(v.forEach(B=>{p.appendChild(s(B))}),r==null||r.delete(A))},a=document.createDocumentFragment();let d=0;const h=F4(o,i);for(let p=0;p<h.length;p++){l(a,d);const A=h[p];d+=rn(A);for(let v=0;v<A.length;v++){const B=A[v];if(Ea(B)){g(Wl,B.attributes,`op is not an valid box: ${JSON.stringify(B)}`);const T=n.editorBoxes.createBox(t,B.attributes);g(Wl,T instanceof HTMLSpanElement,`invalid box element: ${T.tagName}`),a.appendChild(T);continue}g(Wl,B.insert,`no insert in op: ${JSON.stringify(B)}`);const D=w("span",["text"],a,B.insert);if(B.attributes){const T=n.editorBlockRenders.renderText(e,B.attributes);T.classes&&W(D,...T.classes),T.attributes&&Object.entries(T.attributes).forEach(([_,M])=>{D.setAttribute(_,M)}),T.styles&&Object.entries(T.styles).forEach(([_,M])=>{D.style.setProperty(_,M)})}a.appendChild(D)}}l(a,d),t.innerHTML="",t.appendChild(a)}function rh(n,e,t,o,r){const{text:i,insertions:s}=n.editorDecorators.decorateText(e,r),l=n.compositingText;if(l){const a=n.selection.range.start;g(Wl,a.isSimple(),"not an simple position while compositing"),a.blockId===t&&s.set(a.offset,[{type:"inputting",id:K(),text:l}])}return Ox(n,e,o,i,s)}function _x(n){const e=n.rootContainer.querySelectorAll('span[data-type="editor-insertion"].inputting-insertion');e.length&&Wl.debug(`remove ${e.length} temp composition span`),Array.from(e).forEach(t=>t.remove())}const ir=S("client-rects");function Fx(n){const e=nr(n);let t=0;const o=[];for(let r=0;r<e.length;r++){const i=e[r],s=so(i);o.push({child:i,startBlockOffset:t,endBlockOffset:t+s}),t+=s}return o}function Px(n,e,t,o){g(ir,t<o,`invalid from & to: ${t}, ${o}`);const r=ue(n,e);g(ir,t>=0&&o>=0&&t<=r&&o<=r,`invalid offset: ${t}, ${o}, length: ${r}`);const i=Fx(e),s=i.findIndex(v=>v.startBlockOffset<=t&&t<v.endBlockOffset),l=i.findIndex(v=>v.startBlockOffset<o&&o<=v.endBlockOffset);if(g(ir,s!==-1,"failed to find start child"),g(ir,l!==-1,"failed to find end child"),g(ir,s<=l,`invalid start index & end index: ${s}, ${l}`),s===l){const v=i[s];return[{child:v.child,startChildOffset:t-v.startBlockOffset,endChildOffset:o-v.startBlockOffset}]}const a=[],d=i[s],h={child:d.child,startChildOffset:t-d.startBlockOffset,endChildOffset:so(d.child)};a.push(h);for(let v=s+1;v<l;v++){const B=i[v],D={child:B.child,startChildOffset:0,endChildOffset:B.endBlockOffset-B.startBlockOffset};a.push(D)}const p=i[l],A={child:p.child,startChildOffset:0,endChildOffset:o-p.startBlockOffset};return a.push(A),a}function Nx(n){const e=(o,r)=>o.left<=r.left&&o.top<=r.top&&o.right>=r.right&&o.bottom>=r.bottom&&(o.width!==r.width||o.height!==r.height);n=n.filter(o=>!n.find(i=>e(o,i)));const t=[];return n=n.filter(o=>t.find(r=>r.left===o.left&&r.top===o.top&&r.width===o.width&&r.height===o.height)?!1:(t.push(o),!0)),n}function N4(n,e,t,o){if(ue(n,e)===0){const h=Re(e).getBoundingClientRect();return[new DOMRect(h.left,h.top,4,h.height)]}const r=t.offset,i=o.offset;if(r===i)return[zn(e,t)];const l=Px(n,e,r,i).map(d=>Lx(d.child,d.startChildOffset,d.endChildOffset)),a=[];return l.forEach(d=>{const h=Nx(Array.from(d.getClientRects()));a.push(...h)}),a}function $x(n,e,t){g(ir,t instanceof Zt,"invalid range");const o=t.start,r=t.end;return g(ir,o.isSimple(),"text block only allow simple position"),g(ir,r.isSimple(),"text block only allow simple position"),g(ir,o.blockId===r.blockId,"only allow update one text block selection"),g(ir,o.blockId===ie(e),"only allow update one text block selection"),N4(n,e,o,r)}const ig=S("selection-background");function Hx(n,e,t,o){g(ig,t.isSimple(),"text block only allow simple position"),g(ig,o.isSimple(),"text block only allow simple position"),g(ig,t.blockId===o.blockId,"only allow update one text block selection");const r=t.offset,i=o.offset;if(r===i&&(ue(n,e)!==0||n.selection.range.isCollapsed()))return;const s=N4(n,e,t,o),l=e.getBoundingClientRect(),a=ks(e),d=VC(e);d.innerHTML="",s.forEach(h=>{const p=w("div",["editor-selection-background"],d);p.style.left=`${(h.left-l.left-e.clientLeft)/a}px`,p.style.top=`${(h.top-l.top-e.clientTop)/a}px`,p.style.width=`${h.width/a}px`,p.style.height=`${h.height/a}px`})}function jx(n){n.rootContainer.querySelectorAll("div[data-type=block-background]").forEach(e=>{e.remove()})}const Fs=S("text-offset"),$4="\u200D";function Mi(n,e){const t=nr(n);let o=0;for(let r=0;r<t.length;r++){const i=t[r],s=so(i);if(i===e){const l=o+s;return{start:o,end:l}}o+=s}g(Fs,!1,"can not find child in children")}function sn(n,e){g(Fs,e>=0,`invalid offset: ${e}`);const t=Xd(n,e),{prev:o,next:r,offset:i}=t;if(!o&&!r&&g(Fs,!1,"invalid offset, no prev & next child at offset"),o!==r)return!0;const s=o;if(g(Fs,s,"no child"),io(s))return g(Fs,i===0||i===1,`invalid box child offset: ${i}`),!0;const l=s.textContent;g(Fs,l,"no content for text child");const a=l.charAt(i-1),d=l.charAt(i);return!(a===$4||d===$4||gm(l[i]))}function Ri(n,e){if(e===0)return 0;const t=e-1;if(sn(n,t))return t;let o=t-1;for(;!sn(n,o);)o-=1;return o}function Ps(n,e){const t=Ba(n);if(g(Fs,e>=0&&e<=t,`invalid offset: ${e}, ${t}`),e===t)return t;const o=e+1;if(sn(n,o))return o;let r=o+1;for(;!sn(n,r);)r+=1;return r}const Ns=S("line-breaker");function xa(n){const e=a=>{const d=$d(a);return vs(a).top>d.top+d.height/2},t=(a,d)=>{const h=vs(a);return $d(d).left<h.right},o=(a,d)=>{const h=vs(a),p=vs(d);return p.top+p.height/2>h.bottom},r=a=>{if(a.length===0||a.length===1)return!1;const d=a[0],h=a[a.length-1];return d.right-h.left>10},i=[];let s=0;const l=nr(n);for(let a=0;a<l.length;a++){const d=l[a];if(Pr(d)){const T=d,_=l[a+1];if(!_)break;const M=l[a-1];if(M&&o(M,T)&&i.push({offset:s,type:"betweenChild",childInfo:{prevChild:M,nextChild:T,wrap:"nextWrapped",prevWrapped:e(M),nextWrapped:e(T)}}),t(T,_)){i.push({offset:s,type:"betweenChild",childInfo:{prevChild:M,nextChild:T,wrap:"nowrap",prevWrapped:e(M),nextWrapped:e(T)}});continue}continue}if(io(d)){const T=d,_=l[a+1];if(!_)break;const M=l[a-1];if(M&&o(M,T)&&i.push({offset:s,type:"betweenChild",childInfo:{prevChild:M,nextChild:T,wrap:"nextWrapped",prevWrapped:e(M),nextWrapped:e(T)}}),t(T,_)){s+=1,i.push({offset:s,type:"betweenChild",childInfo:{prevChild:M,nextChild:d,wrap:"nowrap",prevWrapped:e(M),nextWrapped:e(d)}});continue}s+=1;continue}const h=d,p=h.getClientRects();if(g(Ns,p.length>0,"invalid text child dom"),p.length===1){const T=l[a+1];if(!T)break;if(t(h,T)){s+=so(h),i.push({offset:s,type:"betweenChild",childInfo:{prevChild:h,nextChild:T,wrap:"nowrap",prevWrapped:e(h),nextWrapped:e(T)}});continue}s+=so(h);continue}const A=h.firstChild;g(Ns,A,"invalid text child, no text node"),g(Ns,A instanceof Text,`invalid text child, not a valid text node: ${typeof A}`);const v=document.createRange(),B=document.createRange(),D=so(h);g(Ns,A.data.length===D,"text node data length not equal child text length");for(let T=0;T<A.data.length;T++){if(!sn(n,s+T))continue;v.setStart(A,T),Em()&&v.selectNodeContents(A);const _=v.getClientRects();if(g(Ns,_.length>=1,"invalid text node, no client rects"),r(_)){const re=s+T;i.push({offset:re,type:"textBreakWord",childInfo:{prevChild:d,nextChild:d,wrap:"nowrap",prevWrapped:e(d),nextWrapped:e(d)}});continue}let M=T+1;sn(n,s+M)||(M=T+2),B.setStart(A,M);const H=B.getClientRects(),z=_[0];H[0].left<z.right&&g(Ns,!1,"span pre-wrap should not has a line-wrap by white space")}s+=D}return i}function sg(n,e){const t=xa(n);for(let o=0;o<t.length;o++){const{offset:r,type:i}=t[o];if(e.offset<r)return{lineIndex:o,lineBreaks:t};if(e.offset===r&&e.type==="end")return{lineIndex:o,lineBreaks:t}}return g(Ns,e.offset<=Ba(n),"invalid position, offset > block length"),{lineIndex:t.length,lineBreaks:t}}const Ux=S("line-offset");function lg(n){const e=xa(n),t=[];let o=0;for(let r=0;r<e.length;r++){const i=e[r];t.push({start:o,end:i.offset}),o=i.offset}return t.push({start:o,end:Ba(n)}),t}function ih(n,e){const t=lg(n);return g(Ux,e>=0&&e<t.length,`invalid line index: ${e}, ${t.length}`),t[e]}function H4(n,e){const{lineIndex:t}=sg(n,e);return ih(n,t)}function zx(n){const e=lg(n),t=n.getBoundingClientRect(),o=[];return e.forEach(({start:r,end:i})=>{const s=se(n,r,"home");let l=zn(n,s);const a=se(n,i,"end"),d=zn(n,a);l.top+l.height/2<d.top&&(l=new DOMRect(t.left-1e4,d.top,1,d.height));const h=new DOMRect(l.left,d.top,d.left-l.left,d.height),p=new DOMRect(t.left,d.top,t.width,d.height);o.push({start:r,end:i,rect:p,contentRect:h})}),o}function Vx(n,e,t){const r=zx(n).find(s=>ws(s.rect,e,t));if(!r)return null;const i=r.contentRect;return e-i.left<i.right-e?se(n,r.start,"home"):se(n,r.end,"end")}function j4(n,e,t){const o=zn(n,e),r=zn(n,t),i=o.top+o.height/2,s=r.top+r.height/2,l=r.top<i&&i<r.bottom,a=o.top<s&&s<o.bottom;return l&&a}function U4(n){return lg(n).length}const $s=S("find-text-position");function z4(n,e){const{start:t,end:o}=ih(n,e),r=ie(n),i=zn(n,se(r,t,"home"));if(!(zn(n,se(r,o,"end")).top>i.top+i.height/2))return!1;const a=Xd(n,t);return g($s,a.next,"no next child at offset"),g($s,!wa(a.next),"next child is not text child"),!0}function Wx(n,e){const t=ie(n);g($s,z4(n,e),"line is not wrapped");const{start:o,end:r}=ih(n,e),i=se(t,o,"home");for(let s=o+1;s<=r;s+=1){let l="normal";s===o?l="home":s===r&&(l="end");const a=se(t,s,l);if(!j4(n,i,a))return s-1}return g($s,!1,"failed to find wrapped offset"),0}function sh(n,e,t,o,r,i,s){g($s,ee(n,e),`not a text kind block: ${De(e)}`);const{start:l,end:a}=ih(e,t);let d=l;const h=ie(e);if(e===o&&z4(e,t)){const T=Wx(e,t);(i==="up"||i==="down"&&j4(e,r,se(h,l,"home")))&&(d=T+1)}let p=Number.MAX_SAFE_INTEGER;const A=To(n,o,r),v=s!=null?s:A.left+A.width/2,B=A.top+A.height/2;let D=se(h,d,"home");for(let T=d;T<=a;T++){if(!sn(e,T))continue;let _="normal";T===l?_="home":T===a&&(_="end");const M=se(h,T,_),H=zn(e,M),z=tr(H,v,B);z<p&&(p=z,D=M)}return D}function qx(n,e,t,o,r){return g($s,ee(n,e),"not a text block"),sh(n,e,U4(e)-1,t,o,"up",r)}function Gx(n,e,t,o,r){return g($s,ee(n,e),"not a text block"),sh(n,e,0,t,o,"down",r)}function Zx(n,e,t,o){const{lineIndex:r}=sg(e,t);if(r===U4(e)-1)return null;const i=sh(n,e,r+1,e,t,"down",o);return i||null}function Qx(n,e){if(e.offset===0)return null;const t=xa(n),o=t.find(r=>r.offset===e.offset);if(!o){const r=Ri(n,e.offset);return t.find(s=>s.offset===r)?{offset:r,type:"home"}:{offset:r,type:"normal"}}if(o.type==="betweenChild"){if(e.type==="home"&&o.childInfo.wrap==="nowrap")return{offset:e.offset,type:"end"};if(o.childInfo.prevWrapped)return{offset:Ri(n,e.offset),type:"normal"}}return{offset:Ri(n,e.offset),type:"normal"}}function Yx(n,e){const t=Ba(n);if(e.offset===t)return null;const o=xa(n),r=o.find(i=>i.offset===e.offset);if(!r){const i=Ps(n,e.offset),s=o.find(l=>l.offset===i);return s?s.type==="betweenChild"?{offset:i,type:"end"}:{offset:i,type:"home"}:{offset:i,type:"normal"}}return r.type==="betweenChild"?r.childInfo.wrap==="nowrap"&&e.type==="end"?{offset:e.offset,type:"home"}:{offset:Ps(n,e.offset),type:"home"}:{offset:Ps(n,e.offset),type:"normal"}}function Jx(n,e,t,o){const{lineIndex:r}=sg(e,t);if(r===0)return null;const i=sh(n,e,r-1,e,t,"up",o);return i||null}const Kx=S("move-caret");function Xx(n,e,t,o){if(o==="ArrowLeft"){const r=Qx(e,t);return r?se(ie(e),r.offset,r.type):null}if(o==="ArrowRight"){const r=Yx(e,t);return r?se(ie(e),r.offset,r.type):null}if(o==="ArrowUp"){const r=Jx(n,e,t,n.selection.getSuggestedCaretX());return r?se(ie(e),r.offset,r.type):null}if(o==="ArrowDown"){const r=Zx(n,e,t,n.selection.getSuggestedCaretX());return r?se(ie(e),r.offset,r.type):null}g(Kx,!1,`invalid navigation direction: ${o}`)}const cg=S("text-range");function eI(n){const e=[];return nr(n).forEach(o=>{const r=Array.from(o.getClientRects()).map(i=>({rect:i,child:o}));e.push(...r)}),e}function tI(n,e,t){const o=eI(n);for(let r=1;r<o.length;r++){const i=o[r-1],s=o[r];if(e>=i.rect.right&&e<=s.rect.left&&t>=i.rect.top&&t<=i.rect.bottom&&t>=s.rect.top&&t<=s.rect.bottom)return Mi(n,s.child).start}return null}function nI(n,e,t,o){const r=document.elementsFromPoint(t,o)[0];if(!r||!e.contains(r)||!n.contains(e))return null;const i=r.closest("div[data-type=block-content]>span");if(!i){const _=e.getBoundingClientRect();if(!ws(_,t,o))return null;const M=tI(e,t,o);if(M!==null){const z=se(e,M,"normal");return new Zt(n,{anchor:z,focus:z})}const H=Vx(e,t,o);return H?new Zt(n,{anchor:H,focus:H}):null}const s=nr(e);g(cg,s.indexOf(i)!==-1,"failed to find child in children");const l=Mi(e,i);g(cg,l,"failed to get child offset");const{start:a}=l;let d,h;Pr(i)||io(i)?(d=a,h=0):(g(cg,i.firstChild instanceof Text,"child is not text"),d=a+nC(i.firstChild,t,o),h=0);const p=ie(e),v=xa(e).find(_=>_.offset===d);let B="normal";if(v){const _=se(p,d,"home"),M=se(p,d,"end"),H=zn(e,_),z=zn(e,M),q=tr(H,t,o),re=tr(z,t,o);B=q<re?"home":"end"}const D=se(p,d,B);let T;return h&&(T=se(p,d+h,B)),new Zt(n,{anchor:D,focus:T!=null?T:D})}const oI=S("create-text-op");function lo(n,e){g(oI,n,"text is empty");const t={insert:n};return e&&Object.keys(e).length>0&&(t.attributes=e),t}function ag(n,e){if(n.length===0)return[];if(n.indexOf(`
16
16
  `)===-1)return[lo(n,e)];const t=n.replace(/\r\n/g,`
17
17
  `).replace(/\r/g,`
18
18
  `).replace(/\n/g," "),o=[];return t&&o.push(lo(t,e)),o}const lh=S("merge-ops");function ug(n){if(n.length<=1)return n;const e=(r,i)=>r.insert===void 0||i.insert===void 0||r.delete!==void 0||i.delete!==void 0||r.retain!==void 0||i.retain!==void 0||r.attributes!==void 0&&i.attributes===void 0||r.attributes===void 0&&i.attributes!==void 0?!1:r.attributes===void 0?(g(lh,i.attributes===void 0,"op2.attributes is not undefined"),!0):(g(lh,r.attributes&&i.attributes,"op1.attributes && op2.attributes is undefined"),ua.default(r.attributes,i.attributes)),t=[];let o=n[0];t.push(o);for(let r=1;r<n.length;r+=1){const i=n[r];e(o,i)?(g(lh,typeof o.insert=="string","before.insert is not string"),g(lh,typeof i.insert=="string","op.insert is not string"),o.insert+=i.insert):(t.push(i),o=i)}return t}function rI(n){let e;for(e=n.length-1;e>=0;e--){const t=n[e];if(!t.attributes||!t.attributes.box||t.attributes.type!=="br")break}return e===n.length-1?n:n.slice(0,e+1)}const V4=S("delete-text");function dg(n,e,t){const{left:o,right:r}=zt(n,e,t),i=[...o,...r];return ug(i)}function W4(n,e){g(V4,n>=0,`invalid offset: ${n}`),g(V4,e>=1,`invalid delete count: ${e}`);const t=[];return n!==0&&t.push({retain:n}),t.push({delete:e}),t}const q4=S("delta");function G4(n,e){const t=new on.default(n),o=new on.default(e);return t.diff(o).ops}function iI(n,e,t){return new on.default(e).transformPosition(n,!t)}function sI(n){g(q4,n,"ops is null or undefined");for(let e=0;e<n.length;e++){const t=n[e];if(t.insert===null||t.insert===void 0||t.retain!==void 0||t.delete!==void 0)return!1}return!0}function lI(n,e){const t=new on.default(n),o=new on.default(e);return t.compose(o).ops}class ln{static ensureValidText(e){g(q4,sI(e),`text is not a valid text, ${JSON.stringify(e)}`)}static diff(e,t){return this.ensureValidText(e),this.ensureValidText(t),G4(e,t)}static transformCursor(e,t,o){return iI(e,t,o)}static transformOffset(e,t,o){const r=G4(e,t),i=new on.default(r);return o.map(s=>i.transformPosition(s))}static apply(e,t){this.ensureValidText(e);const o=lI(e,t);return this.ensureValidText(o),o}}const Z4=S("insert-text");function Hr(n,e,t,o){g(Z4,t,`invalid text to insert: ${t}`);const{left:r,right:i}=xn(n,e),s=typeof t=="string"?[lo(t,o)]:t,l=[...r,...s,...i];return ug(l)}function Q4(n){return{insert:" ",attributes:n}}function ch(n,e,t){if(g(Z4,n>=0,`invalid offset: ${n}`),e.length===0)return[];const o=[];if(n>0&&o.push({retain:n}),typeof e!="string")return o.push(...e),o;const i={insert:e.replaceAll(`\r
@@ -420,7 +420,7 @@ ${s}
420
420
  Click to open the menu`,insertTips:"Click to add block"}}},N$={blockMenu:{section:{basics:"\u4E00\u822C",system:"\u30B7\u30B9\u30C6\u30E0",styles:"\u30B9\u30BF\u30A4\u30EB",common:"\u4E00\u822C",actions:"\u64CD\u4F5C",thirdParty:"\u5916\u90E8\u30B3\u30F3\u30C6\u30F3\u30C4"},command:{insertAbove:"\u4E0A\u306B\u633F\u5165",insertAfter:"\u4E0B\u306B\u633F\u5165",copy:"\u8907\u88FD",cut:"\u5207\u308B",delete:"\u524A\u9664"},button:{searchPlaceholder:"\u30AD\u30FC\u30EF\u30FC\u30C9\u3067\u691C\u7D22",tips:"\u3092\u30C9\u30E9\u30C3\u30B0\u3057\u3066\u30AF\u30EA\u30C3\u30AF\u3067\u30E1\u30CB\u30E5\u30FC\u3092\u8868\u793A",insertTips:"\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u30D6\u30ED\u30C3\u30AF\u3092\u8FFD\u52A0"}}};R.mergeLang({"zh-CN":F$,"en-US":P$,"ja-JP":N$});const One="";class $${constructor(){m(this,"dragObject",null)}setData(e){this.dragObject=e}getData(){return this.dragObject}clearData(){this.dragObject=null}destroy(){}}function Pf(n){return n.addCustom("drag-data",()=>new $$)}function o2(n,e){if(!e)return null;const t=Pf(n).getData();return!t||t.editorId!==n.id?null:t}function J7(n,e){const t=o2(n,e);return t?n.findBlockById(t.blockId):null}function H$(n,e,t){if(!e.dataTransfer)return;const r=ne(t),i=ae(r),s=ie(t),l={type:"block",editorId:n.id,containerId:i,blockId:s};Pf(n).setData(l)}function j$(n,e,t,o,r){if(!e.dataTransfer)return;const s=ne(t),l=ae(s),a=ie(t),d={type:"custom",customType:o,editorId:n.id,containerId:l,blockId:a,data:r};Pf(n).setData(d)}function U$(n){Pf(n).clearData()}const z$=S("drop-indicator"),Nf=2;class V${constructor(e){m(this,"indicator");m(this,"target",null);this.editor=e,this.indicator=w("div",["editor-drop-indicator"],this.editor.contentElement)}show(e,t){const o=this.getIndicatorRect(e,t),r=this.editor.rootElement.getBoundingClientRect(),i=o.top-r.top,s=o.left-r.left;this.indicator.style.top=`${i}px`,this.indicator.style.left=`${s}px`,this.indicator.style.width=`${o.width}px`,this.indicator.style.height=`${o.height}px`,this.indicator.style.display="",this.target={block:e,insertPos:t}}hide(){this.indicator.style.display="none",this.target=null}getIndicatorRect(e,t){if(typeof t!="string")return t.rect;if(t==="before"){const s=Ss(e);if(!s){g(z$,Do(ne(e)),"block does not in a child container");const d=e.getBoundingClientRect();return new DOMRect(d.x,d.y,d.width,Nf)}const l=s.getBoundingClientRect(),a=e.getBoundingClientRect();return new DOMRect(l.x,(l.bottom+a.top)/2,l.width,Nf)}const o=Ls(e);if(!o){const s=e.getBoundingClientRect();return new DOMRect(s.x,s.bottom,s.width,Nf)}const r=e.getBoundingClientRect(),i=o.getBoundingClientRect();return new DOMRect(r.x,(r.bottom+i.top)/2,r.width,Nf)}}const W$=S("find-drop-target");function q$(n,e){const t=document.elementFromPoint(n,e);if(!t)return null;if(_r(t)&&Do(t))return t;const o=t.firstElementChild;return o&&_r(o)&&Do(o)?o:null}function G$(n,e){const s=e,l=n;for(let a=0;a<2;a++){const d=l+a*50;for(let h=0;h<5;h++){const p=s+h*8,A=document.elementFromPoint(d,p);if(A){const D=oe(A);if(D)return D}if(h===0)continue;const v=s-h*8,B=document.elementFromPoint(d,v);if(B){const D=oe(B);if(D)return D}}}return null}function Z$(n,e,t){const o=document.elementFromPoint(e,t);if(o){const h=oe(o);if(h&&!Le(n,h))return h}const r=new Set,i=q$(e,t);if(i){const h=i.getBoundingClientRect();t<h.top+h.height/2?r.add(St(i)):r.add(Gt(i))}const s=G$(e,t);s&&r.add(s);const l=Array.from(r),a=h=>{for(let p=0;p<l.length;p++){const A=l[p];if(h!==A&&Ke(h,A))return!0}return!1},d=l.filter(h=>!a(h));return d.length>0?d[0]:null}function r2(n,e){if(n.readonly)return!1;const t=ne(e);if(Xe(t))return!0;const o=oe(t);return g(W$,o,"no parent block"),n.isBlockWritable(o)?r2(n,o):!1}const Q$=S("drop-target");function Y$(n,e){let t={};return/image/.test(e.type)?t=n.editorEmbeds.getEmbedClass("image"):/audio/.test(e.type)?t=n.editorEmbeds.getEmbedClass("audio"):/video/.test(e.type)&&(t=n.editorEmbeds.getEmbedClass("video")),g(Q$,t,`unSupport file type ${e.type}`),t}async function K7(n,e,t,o){var i,s;let r=o;for(const l of e){const a=Y$(n,l);a.getOptions&&await((s=(i=a.getOptions(n)).handleInsertEmptyEmbed)==null?void 0:s.call(i,n,{containerId:t,blockIndex:r,data:{file:l}}))&&(r+=1)}}class J${constructor(e){m(this,"handleDrop",(e,t,o,r)=>{if(Array.isArray(t)){const i=t;if(i.length>0){const s=ae(o);return K7(e,i,s,r),!0}}return!1});this.editor=e}}class Su{constructor(e){m(this,"indicator");m(this,"lastDropOverResult");m(this,"handlers",[]);m(this,"handleDragOver",e=>{if(!this.editor.isWritable())return;const t=i=>{var d,h;const s=o2(this.editor,i.dataTransfer),l=J7(this.editor,i.dataTransfer),a=this.findTargetBlock(l,i.x,i.y);if(a&&Ke(this.editor.rootContainer,a)){const p=this.findInsertPos(l,a,i.x,i.y,(h=s!=null?s:(d=i.dataTransfer)==null?void 0:d.items)!=null?h:null);if(p)return this.indicator.show(a,p),"move"}return this.indicator.hide(),"none"},o=(i,s)=>{i.dataTransfer&&(i.dataTransfer.dropEffect=s),s==="move"&&i.preventDefault()};if(this.lastDropOverResult&&e.x===this.lastDropOverResult.x&&e.y===this.lastDropOverResult.y){const i=this.lastDropOverResult.dropEffect;o(e,i);return}const r=t(e);o(e,r),this.lastDropOverResult={x:e.x,y:e.y,dropEffect:r}});m(this,"handleDrop",e=>{var i,s;e.stopPropagation(),setTimeout(()=>{this.indicator.hide()});const t=o2(this.editor,e.dataTransfer),o=Array.from((s=(i=e.dataTransfer)==null?void 0:i.files)!=null?s:[]);if(!t&&o.length===0){e.dataTransfer&&(e.dataTransfer.dropEffect="none");return}const r=this.indicator.target;if(r){const{block:l,insertPos:a}=r,d=J7(this.editor,e.dataTransfer);this.editor.undoManager.runInGroup(()=>{const h=Qe(this.editor,l);if(h.handleDrop&&h.handleDrop(this.editor,l,t!=null?t:o,a,{isSourceBlock:!1,targetBlock:l})){e.preventDefault(),this.editor.focus();return}if(d){const p=Qe(this.editor,d);if(p.handleDrop&&p.handleDrop(this.editor,d,t!=null?t:o,a,{isSourceBlock:!0,targetBlock:l})){e.preventDefault(),this.editor.focus();return}}if(typeof a=="string"){const p=ne(l);let A=be(l);a==="after"&&(A+=1),e.preventDefault();for(let v=0;v<this.handlers.length;v++)if(this.handlers[v].handleDrop(this.editor,d!=null?d:o,p,A)){this.editor.focus();return}if(d){const v=this.editor.getBlockData(d),B=Fi(this.editor.editorBlocks,this.editor.doc.toJSON(),v),[D]=this.editor.insertDocAt(p,A,B);this.editor.selection.selectBlock(D,0),Du.get(this.editor).highlightBlock(D),this.editor.deleteBlock(d),this.editor.focus()}}}),U$(this.editor)}});m(this,"handleDragLeave",()=>{this.indicator.hide()});this.editor=e,this.indicator=new V$(this.editor),this.handlers.push(new J$(this.editor)),this.editor.contentElement.addEventListener("dragover",this.handleDragOver),this.editor.contentElement.addEventListener("dragleave",this.handleDragLeave),this.editor.contentElement.addEventListener("drop",this.handleDrop)}destroy(){this.editor.contentElement.removeEventListener("dragover",this.handleDragOver),this.editor.contentElement.removeEventListener("dragleave",this.handleDragLeave),this.editor.contentElement.removeEventListener("drop",this.handleDrop),this.handlers=[]}addHandler(e){this.handlers.push(e)}static register(e){return e.addCustom("drop-target",()=>new Su(e))}static get(e){return e.getCustom("drop-target")}static find(e){return e.findCustom("drop-target")}canInsertAfter(e,t){return!(this.editor.readonly||Ls(t)===e&&e||!r2(this.editor,t))}canInsertBefore(e,t){return!(this.editor.readonly||Ss(t)===e&&e||!r2(this.editor,t)||Xe(ne(t))&&be(t)===0)}canDrop(e,t){return e===null||e===t?!0:!Ke(e,t)}findTargetBlock(e,t,o){let r=Z$(this.editor,t,o);if(!r||!Ke(this.editor.rootContainer,r))return null;const i=ne(r),s=oe(i);return s&&De(s)==="code"&&(r=s),this.canDrop(e,r)?r:null}findInsertPos(e,t,o,r,i){let s=t;for(;s;){const a=Qe(this.editor,s);if(a.handleDropOver){const d=a.handleDropOver(this.editor,s,i,o,r);if(d)return d;if(d===!1)return null}s=Ts(s)}if(e===t)return"";const l=t.getBoundingClientRect();if(l.top<=r&&r<=l.bottom){if(r<l.top+l.height/2){if(this.canInsertBefore(e,t))return"before";if(this.canInsertAfter(e,t))return"after"}else{if(this.canInsertAfter(e,t))return"after";if(this.canInsertBefore(e,t))return"before"}return""}return r<l.top&&this.canInsertBefore(e,t)?"before":l.bottom<r&&this.canInsertAfter(e,t)?"after":""}}function X7(n,e,t){const o=xt.getImageObject(n,e),r=me.default(o.getImages());if(r.length===1){n.deleteBlock(e);return}if(t===-1||t>=r.length)return;const i=PN(r);if(r.splice(t,1),r.length===1){const l=r[0],a=100*(l.flex/i);l.flex=1;const d=cn([l],a);n.updateEmbedData(e,d);return}r[0].flex=NaN,ku(r);const s=cn(r,o.getWidthPercent());n.updateEmbedData(e,s)}function K$(n,e,t,o){if(e.length===0||o==="after"||o==="before")return!1;let r=o.data;const i=xt.getImageObject(n,t),s=me.default(i.getImages()),l=[],a=[];e.forEach(p=>{$7(p.type)&&s.length+l.length<6?l.push(p):a.push(p)}),l.forEach(p=>{try{N7(n,p)}catch{return}const A={src:"",flex:1,width:0,height:0,virtualSize:!0};s.splice(r,0,A);const v=cn(s,i.getWidthPercent());n.updateEmbedData(t,v),i.replaceImage(r,p),r+=1});const d=n.getBlockIndex(t)+1,h=ae(ne(t));return K7(n,a,h,d),!0}function X$(n,e,t,o,r){var s,l,a;if(Wd(t))return K$(n,t,e,o);if(t.type!=="custom"||t.customType!=="image"||!t.data)return;const i=t.data;if(r.isSourceBlock){const d=r.targetBlock,h=ne(d);let p=be(d);o==="after"&&(p+=1);const v=100*(i.boundingRect.width/n.rootContainer.getBoundingClientRect().width),B=cn([i.image],v),D={id:K(),type:"embed",embedType:"image",embedData:B},T=(l=(s=n.options.componentsOptions)==null?void 0:s.image)==null?void 0:l.defaultAlign;T&&(D.align=T),n.insertBlock(ae(h),p,D),X7(n,e,i.index),(a=n.findCustom("drag-handler"))==null||a.handleDragEnd()}else{if(typeof o=="string")return;const d=e;let h=o.data;const p=xt.getImageObject(n,d),A=me.default(p.getImages());h>A.length&&(h=A.length),n.undoManager.runInGroup(()=>{var B,D;p.setAutoFix(!0);const v=n.getBlockById(t.blockId);if(v===d){const T=i.index,_=h,M=i.image;if(T===_||_===T+1)return;let H=_;T<_?(A.splice(_,0,M),A.splice(T,1),H-=1):(A.splice(T,1),A.splice(_,0,M));const z=cn(A,p.getWidthPercent());n.updateEmbedData(d,z),p.setSelectedIndex(H),(B=n.findCustom("drag-handler"))==null||B.handleDragEnd()}else{A.splice(h,0,i.image),A[0].flex=NaN,ku(A);const T=cn(A,p.getWidthPercent());n.updateEmbedData(d,T),X7(n,v,i.index),(D=n.findCustom("drag-handler"))==null||D.handleDragEnd(),p.setSelectedIndex(h),n.selection.selectBlock(d,0)}})}return!0}const eH=2;function $f(n,e,t){const o=Qr(e);if(t<=0){const s=o[0].getBoundingClientRect();return new DOMRect(s.left-4,s.top,2,s.height)}if(t===o.length){const s=o[t-1].getBoundingClientRect();return new DOMRect(s.right+2,s.top,2,s.height)}const r=o[t-1].getBoundingClientRect(),i=o[t].getBoundingClientRect();return new DOMRect((i.left+r.right)/2-1,r.top,eH,r.height)}function tH(n,e,t,o,r){for(let i=0;i<t.length;i++){const l=t[i].getBoundingClientRect();if(o<=l.right)return o<=l.left+l.width/2?{rect:$f(n,e,i),data:i}:{rect:$f(n,e,i+1),data:i+1}}return o>t[t.length-1].getBoundingClientRect().right?{rect:$f(n,e,t.length),data:t.length}:{rect:$f(n,e,t.length),data:0}}function nH(n,e,t,o,r){const i=Qr(e);if(t instanceof DataTransferItemList){if(!Array.from(t).some(s=>$7(s.type))||i.length>=6)return}else{if((t==null?void 0:t.type)==="block"||i.length>=6&&(t==null?void 0:t.blockId)!==ie(e))return;const s=ie(e);if(i.length===1&&s===(t==null?void 0:t.blockId))return}return tH(n,e,i,o)}async function oH(n){return await Q5.default.toSvg(n)}function i2(n,e){return new DragEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:n.screenX,screenY:n.screenY,dataTransfer:new DataTransfer,clientX:n.clientX,clientY:n.clientY})}class rH{constructor(e){m(this,"img");m(this,"dragContainer",null);m(this,"autoScroll",null);m(this,"imageContainer",null);m(this,"startPosition",null);m(this,"handleMouseDown",e=>{const t=e.target;if(!t||!(t instanceof HTMLImageElement))return;const o=oe(t);if(!o||!zo(o)||!this.editor.isBlockWritable(o)||this.editor.readonly)return;const r=xt.getImageObject(this.editor,o);if(this.imageContainer=G0(e.target),!this.imageContainer)return;const s=M7(e.target).indexOf(this.imageContainer);if(s===-1)return;const l=r.getImages()[s];if(!l)return;const{x:a,y:d}=e;this.startPosition={x:a,y:d};const h={image:l,index:s,boundingRect:this.imageContainer.getBoundingClientRect()},p=i2(e,"dragstart");j$(this.editor,p,o,"image",h),document.addEventListener("mouseup",this.handleDragEnd),this.editor.contentElement.addEventListener("mousemove",this.handleDrag),e.preventDefault()});m(this,"handleDragStart",async e=>{if(!this.imageContainer)return;const t=oe(this.imageContainer);if(!t)return;const{x:o,y:r}=e,{width:i,height:s}=e.target.getBoundingClientRect(),l=lt(t),a=w("div",["drag-container"],l);a.style.left=`${o-i/4}px`,a.style.top=`${r-s/4}px`,a.style.width=`${Math.max(i/2,16)}px`,a.style.height=`${s/2}px`,this.dragContainer=a;const d=w("img",["drag-target"],a),p=await oH(this.imageContainer);p&&(d.src=p),W(this.editor.contentElement,"dragging");const A=oo(t);this.autoScroll=new Gd({scrollElement:A,trackMouseEvent:"mousemove",edge:{top:50,bottom:50}}),this.autoScroll.active()});m(this,"handleDrag",e=>{var i;const{x:t,y:o}=e;if(((i=this.startPosition)==null?void 0:i.x)===t&&this.startPosition.y===o)return;if(window.isDragging||(window.isDragging=!0,this.handleDragStart(e)),this.startPosition&&this.dragContainer){const{x:s,y:l}=e;if(s===0&&l===0){this.dragContainer.style.transform="",this.dragContainer.style.opacity="0";return}const{x:a,y:d}=this.startPosition,h=s-a,p=l-d;this.dragContainer.style.transform=`translate(${h}px, ${p}px)`,this.dragContainer.style.opacity="0.5"}const r=i2(e,"dragover");this.editor.contentElement.dispatchEvent(r)});m(this,"handleDragEnd",e=>{var t;if(window.isDragging=!1,this.dragContainer&&this.dragContainer.remove(),this.dragContainer=null,this.startPosition=null,this.imageContainer=null,(t=this.autoScroll)==null||t.inactive(),te(this.editor.contentElement,"dragging"),document.removeEventListener("mouseup",this.handleDragEnd),this.editor.contentElement.removeEventListener("mousemove",this.handleDrag),e){const o=i2(e,"drop");this.editor.contentElement.dispatchEvent(o)}});this.editor=e,this.editor.rootContainer.addEventListener("mousedown",this.handleMouseDown),this.img=new Image,this.img.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}destroy(){this.editor.rootContainer.removeEventListener("mousedown",this.handleMouseDown)}}class iH{constructor(e){m(this,"handleFocusBlockChanged",(e,t,o)=>{const i=this.editor.getFocusedBlock();if(i&&zo(i)){const s=xt.getImageObject(this.editor,i);s.getImages().length>0&&s.getSelectedIndex()===-1&&s.setSelectedIndex(0)}o&&zo(o)&&xt.getImageObject(this.editor,o).blockResizer.disableResize()});this.editor=e,this.editor.addListener("focusBlockChanged",this.handleFocusBlockChanged)}destroy(){this.editor.removeListener("focusBlockChanged",this.handleFocusBlockChanged)}}class sH{constructor(e){m(this,"currentResizer",null);m(this,"handleHoveringBlockChange",(e,t)=>{t&&this.disable(t),e&&(this.currentResizer=e,this.enable(e))});this.editor=e,pt.get(e).addListener("change",this.handleHoveringBlockChange)}destroy(){pt.get(this.editor).removeListener("change",this.handleHoveringBlockChange)}disable(e){zo(e)&&xt.getImageObject(this.editor,e).disableResizer()}enable(e){if(zo(e)){const t=xt.getImageObject(this.editor,e);this.editor.isBlockWritable(e)&&t.tryEnableResizer()}}}const lH={image:{title:"\u56FE\u7247",upload:{failed:'<div class="line-1">\u56FE\u7247\u4E0A\u4F20\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <a href="" class="retry-upload">\u91CD\u8BD5</a></div>'},load:{failed:'<div class="line-1">\u56FE\u7247\u52A0\u8F7D\u5931\u8D25</div><div class="line-2">\u7F51\u7EDC\u670D\u52A1\u5F02\u5E38\uFF0C\u4F60\u53EF\u4EE5 <a href="" class="retry-upload">\u91CD\u8BD5</a></div>',remote:{failed:'<div class="line-1">\u56FE\u7247\u52A0\u8F7D\u5931\u8D25</div><div class="line-2">\u8BE5\u56FE\u7247\u6765\u81EA\u5916\u90E8\u94FE\u63A5\uFF0C\u5916\u90E8\u94FE\u63A5\u5DF2\u5931\u6548</div><div class="line-3">\u8BF7\u5C06\u539F\u56FE\u4FDD\u5B58\u5230\u672C\u5730\u540E\u4E0A\u4F20\uFF0C <a href="" class="retry-upload">\u6253\u5F00\u56FE\u7247\u94FE\u63A5</a></div>',tooltip:"\u8BE5\u56FE\u7247\u6765\u81EA\u5916\u90E8\u94FE\u63A5\uFF0C\u5982\u679C\u94FE\u63A5\u5931\u6548\u56FE\u7247\u5C06\u65E0\u6CD5\u67E5\u770B\uFF0C\u5EFA\u8BAE\u4FDD\u5B58\u5230\u672C\u5730\u540E\u6DFB\u52A0\u5230\u9875\u9762\u4E2D"}},abstract:"\u56FE\u7247"}},cH={image:{title:"Image",upload:{failed:'<div class="line-1">Image upload failed</div><div class="line-2">Network error, you can <a href="" class="retry-upload">Retry</a></div>'},load:{failed:'<div class="line-1">Image failed to load</div><div class="line-2">Network error, you can <a href="" class="retry-upload">Retry</a></div>',remote:{failed:'<div class="line-1">Failed to load image</div><div class="line-2">This picture is from an expired external link</div><div class="line-3">Please save the original image to local drives and upload it. <a href="" class="retry-upload">Open image link</a></div>',tooltip:"This picture is from an external link. If the link expires, the picture will not be available. It's recommended to save it to local drives and add it to the page."}},abstract:"Image"}},aH={image:{title:"\u753B\u50CF",upload:{failed:'<div class="line-1">\u753B\u50CF\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <a href="" class="retry-upload">\u518D\u8A66\u884C</a></div>'},load:{failed:'<div class="line-1">\u753B\u50CF\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F</div><div class="line-2">\u304A\u4F7F\u3044\u306E\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u63A5\u7D9A\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u6B21\u306E\u64CD\u4F5C\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002 <a href="" class="retry-upload">\u518D\u8A66\u884C</a></div>',remote:{failed:'<div class="line-1">\u753B\u50CF\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F</div><div class="line-2">\u3053\u306E\u753B\u50CF\u306B\u30EA\u30F3\u30AF\u3057\u3066\u3044\u308B URL \u304C\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u306E\u3067\u3001\u8868\u793A\u3067\u304D\u307E\u305B\u3093</div><div class="line-3">\u753B\u50CF\u3092\u30ED\u30FC\u30AB\u30EB\u306B\u4FDD\u5B58\u3057\u3066\u30A2\u30C3\u30D7\u30ED\u30FC\u30C0\u3057\u3066\u304F\u3060\u3055\u3044 <a href="" class="retry-upload">\u753B\u50CF\u30EA\u30F3\u30AF\u3092\u958B\u304F</a></div>',tooltip:"\u3053\u306E\u753B\u50CF\u306F\u5916\u90E8\u306B\u30EA\u30F3\u30AF\u3057\u3066\u3044\u308B\u305F\u3081\u3001\u30EA\u30F3\u30AF\u304C\u7121\u52B9\u306B\u306A\u308B\u3068\u3001\u8868\u793A\u3067\u304D\u306A\u304F\u306A\u308A\u307E\u3059\u306E\u3067\u3001\u30ED\u30FC\u30AB\u30EB\u306B\u4FDD\u5B58\u3057\u3001\u30DA\u30FC\u30B8\u306B\u633F\u5165\u3059\u308B\u3053\u3068\u3092\u304A\u52E7\u3081\u3057\u307E\u3059"}},abstract:"\u753B\u50CF"}};R.mergeLang({"zh-CN":lH,"en-US":cH,"ja-JP":aH});function uH(n,e,t,o){const r=n.getBlockByIndex(e,t),i=n.getBlockText(r),{left:s}=xn(i,o),l=rt(s);let a=o;if(l.endsWith("![]()"))a-=5;else if(l.endsWith("![]"))a-=3;else return!1;const d=o;return zl("image/*").then(h=>{n.undoManager.runInGroup(()=>{n.deleteTextFromBlock(r,a,d-a);let p=t+1;rt(n.getBlockText(r)).trim()?(Yl(n,r,a,{forceInsertAfter:!0}),a===0&&(n.deleteBlock(r),p--)):(n.deleteBlock(r),p--),qm(n,"image",e,p,{file:h})})}),!0}class dH{handleAfterInsertText(e,t,o,r,i){return!!(i===" "&&uH(e,t,o,r))}}function hH(n){const e=n.getFocusedBlock(),t=Ls(e);if(t&&zo(t)){n.selection.selectBlock(t,0);const o=xt.getImageObject(n,t);return o.getImages().length>0&&o.setSelectedIndex(0),!0}}function fH(n){const e=n.getFocusedBlock(),t=Ss(e);if(t&&zo(t)){n.selection.selectBlock(t,0);const o=xt.getImageObject(n,t);return o.getImages().length>0&&o.setSelectedIndex(0),!0}}function mH(n){const t=n.getFocusedBlock();if(t&&zo(t)){const o=xt.getImageObject(n,t),r=o.getImages();if(r.length>0){const i=o.getSelectedIndex();if(i===-1)return o.setSelectedIndex(r.length-1),!0;if(i>0)return o.setSelectedIndex(i-1),!0}}}function gH(n){const t=n.getFocusedBlock();if(t&&zo(t)){const o=xt.getImageObject(n,t),r=o.getImages();if(r.length>0){const i=o.getSelectedIndex();if(i===-1)return o.setSelectedIndex(0),!0;if(i<r.length-1)return o.setSelectedIndex(i+1),!0}}}function s2(n){const t=n.getFocusedBlock();if(t&&zo(t)){const o=xt.getImageObject(n,t);if(o.getImages().length>0){const i=o.getSelectedIndex();if(i!==-1)return o.removeImage(i),!0}}}const pH={ArrowLeft:mH,ArrowRight:gH,ArrowUp:fH,ArrowDown:hH,Delete:s2,Backspace:s2},CH=S("copy-image");function AH(n,e,t,o){const r=t.getImages()[o],i=t.getImages().length===1?t.getWidthPercent():r.flex*100,s=cn([r],i),l={id:K(),type:"embed",embedType:"image",embedData:s},a=n.options.componentsOptions.image;a!=null&&a.defaultAlign&&(l.align=a.defaultAlign);const d={blocks:{root:[l]},comments:{},meta:{}},h=document.createElement("canvas");h.width=e.naturalWidth,h.height=e.naturalHeight;const p=h.getContext("2d");if(!p)return;const A={},v={};try{p.drawImage(e,0,0,h.width,h.height);const z=h.toDataURL("image/png").replace(/^data:image\/(png|jpg);base64,/,""),q=Dm(z),re=new File([q],`${Date.now()}.png`,{type:"image/png"});A["image/png"]=re}catch(H){CH.error(H)}Mh(n,d);const D=`<img src="${n.doc.buildResourceUrl(r.src,{withToken:!0})}" />`,T=Lh(D,d),_=Ma(n,d);A["text/plain"]=new Blob([_],{type:"text/plain"}),v["text/plain"]=_;const M=new Blob([T],{type:"text/html"});return A["text/html"]=M,v["text/html"]=T,[A,v]}function bH(n,e,t,o,r){const i=AH(n,e,t,o);if(!i)return;const[s,l]=i;if(s){const a=Object.entries(s).map(([d,h])=>({type:d,data:h}));return Mm(a).then(d=>{if(!d&&r){const h=r.clipboardData;h&&(h.setData("text/plain",l["text/plain"]),h.setData("text/html",l["text/html"]))}}),!0}}function e8(n,e){const t=n.selection.range;if(t.start.blockId!==t.end.blockId)return;const r=n.getFocusedBlock();if(r&&zo(r)){const i=xt.getImageObject(n,r);if(i.getImages().length>0){const l=i.getSelectedIndex();if(l!==-1){const d=Qr(r)[l].querySelector("img");if(d)return bH(n,d,i,l,e)}}}}class vH{constructor(e){this.editor=e,setTimeout(()=>{this.editor.input.addHandler(this)})}handleBeforeCopy(e,t,o){if(e8(e,t))return!0}handleBeforeCut(e,t){if(e8(e,t))return s2(e),!0}destroy(){}}class l2{constructor(e){this.editor=e,setTimeout(()=>{this.editor.input.addHandler(this)})}async handleAfterPasteDoc(e,t,o){return Object.values(t.blocks).forEach(r=>{r.forEach(i=>{if(i.type==="embed"&&i.embedType==="image"){const s=i.embedData;if(Array.isArray(s.src))return;if(s.src.startsWith("https:")||s.src.startsWith("http:")){const l=o.blockIdMap.get(i.id);l&&Ki(e,l).setAutoFix(!0)}}})}),!1}destroy(){}}const yH=S("image-embed");function kH(n,e,t,o,r,i){xt.create(n,t).createContent(r,i,e),n.addCustom("image-select-handler",()=>new iH(n)),n.addCustom("image-copy-handler",()=>new vH(n)),setTimeout(()=>{n.addCustom("drag-handler",()=>new rH(n));const l=n.addCustom("image-resizer",()=>new sH(n)),a=t.embedData;kc(a)?l.disable(i):l.currentResizer===i&&l.enable(i)})}function wH(n,e,t,o){const r=e.embedData,i=wc(r);return o==="html"?i.map(s=>`<img src="${n.doc.buildResourceUrl(s.src,{withToken:!0})}">`).join(""):o==="markdown"?`${i.map(l=>`![img](${n.doc.buildResourceUrl(l.src,{withToken:!0})})`).join(`
421
421
  `)}
422
422
  `:i.map(s=>n.doc.buildResourceUrl(s.src,{withToken:!0})).join(`
423
- `)}class BH{constructor(){m(this,"group","image");m(this,"commands",[])}executeCommand(e,t,o){if(o.id==="replace-image"){const{block:r,image:i}=o.data;xt.getImageObject(e,r).replaceImage(0,i)}}}function EH(){return{blockCommands:{image:new BH},abstract:`${R.t("image.abstract")}`}}function xH(){return{name:"Image",insertEmbedCommandItems:[{id:"insert-image",name:R.t("image.abstract"),icon:EL,group:"common",subText:"/image",order:100}],handleInsertEmptyEmbed:async(n,e)=>{var v;let t;(v=e.data)!=null&&v.file&&(t=e.data.file);const o=P7(n);if(t=t!=null?t:await zl(o),!t)return null;try{N7(n,t)}catch{return null}let r={width:k7,height:z0};try{r=await i$(t)}catch(B){yH.error(B)}const i=n.rootContainer.clientWidth,s=r.width<i?Math.min(100,r.width/i*100):100,l={src:"",width:r.width,height:r.height,flex:1,virtualSize:!1},a=cn([l],s),d={id:K(),type:"embed",embedType:"image",embedData:a},h=n.options.componentsOptions.image;h!=null&&h.defaultAlign&&(d.align=h.defaultAlign);const p=n.insertBlock(e.containerId,e.blockIndex,d);return xt.getImageObject(n,p).replaceImage(0,t),p}}}function IH(n,e,t){var h;const{data:o}=t,r=n.getBlockString(e).trim();if(!o||o.embedType!=="image"||!ee(n,e))return null;const i=r.match(/^!\[[^\]]*\]\((?<filename>.*?)(?="|\))(?<optionalPart>".*")?\)/),s=(h=i==null?void 0:i.groups)==null?void 0:h.filename;if(!s)return null;const l={src:s},a={id:K(),type:"embed",embedType:"image",embedData:l};xt.create(n,a).setAutoFix(!0);const d=n.options.componentsOptions.image.defaultAlign;return d&&(a.align=d),{blockData:a}}function TH(n,e){const t=ie(e);n.destroyCustom(`image-${t}`)}const t8={embedType:"image",createEmbedContent:kH,convertTo:wH,convertFrom:IH,getBlockProperties:EH,getOptions:xH,handleDrop:X$,handleDropOver:nH,handleDeleteBlock:TH};class DH{constructor(e,t){m(this,"toolbar");m(this,"anchor",null);m(this,"item");m(this,"docs",null);m(this,"checkedId");m(this,"handlePasteSpecial",(e,t)=>{!t.data||(this.checkedId===t.id?this.checkedId=void 0:this.checkedId=t.id,this.onPasteSpecial(t.data),setTimeout(()=>{this.docs&&this.show(this.docs),this.editor.focus()}))});m(this,"handleClose",()=>{this.editor.focus()});m(this,"handleSelectionChange",()=>{this.hide()});this.editor=e,this.onPasteSpecial=t,this.item={id:"paste-special",name:"",icon:xL,dropdown:!0,manualShowChildren:!0,childrenPlacement:"bottom-start",childrenOffset:[-4,4],children:[]},this.toolbar=new ou([this.item],void 0,{id:"paste-special-button",tooltipId:this.editor.clientId,refuseOverflow:!0}),this.toolbar.addListener("click",this.handlePasteSpecial),this.toolbar.addListener("close",this.handleClose),this.editor.addListener("selectionChanged",this.handleSelectionChange)}show(e){this.docs=e;const t=this.editor,o=t.selection.range;if(!o.isCollapsed())return;const r=t.getBlockById(o.start.blockId);if(!ee(t,r))return;const i=Ti(t,r,o)[0];if(!i)return;this.anchor&&this.anchor.remove(),this.anchor=Li(t,r,"paste-special-button-anchor",i);const s=this.getCommandItems(e);this.item.children=s,this.toolbar.manualShow(this.anchor)}hide(){this.toolbar.close("selectionChange")}clearCheckedState(){this.checkedId=void 0}destroy(){this.toolbar.destroy(),this.editor.removeListener("selectionChanged",this.handleSelectionChange)}getCommandItems(e){const t=i=>({id:i,states:this.checkedId===i?["checked"]:void 0,name:R.t("pasteSpecial.originFormats"),data:e[i]}),o=[];let r=!0;return e["text/x-ones-editor-doc"]?o.push(t("text/x-ones-editor-doc")):e["text/office-html"]?o.push(t("text/office-html")):e["text/html"]?o.push(t("text/html")):e["text/plain"]&&(o.push(t("text/plain")),r=!1),e["text/plain"]&&(r&&o.push({id:"text/plain",states:this.checkedId==="text/plain"?["checked"]:void 0,name:R.t("pasteSpecial.plainText"),data:e["text/plain"]}),o.push({id:"text/markdown",states:this.checkedId==="text/markdown"?["checked"]:void 0,name:R.t("pasteSpecial.markdown"),data:e["text/markdown"]})),o}}const SH=S("paste-special");class c2{constructor(e){m(this,"button");m(this,"lastUndoAction",null);m(this,"event",null);m(this,"handlePasteSpecial",e=>{this.editor.undoManager.runInGroup(()=>{this.editor.undoManager.undoTo(this.lastUndoAction),this.editor.pasteDoc(e)})});this.editor=e,this.button=new DH(e,this.handlePasteSpecial)}destroy(){this.event=null,this.button.destroy()}handleChanged(e,t){this.event=null,this.button.hide()}async handleBeforePaste(e,t){return SH.debug("before paste"),this.lastUndoAction=e.undoManager.lastAction(),!1}async handleAfterPaste(e,t,o){if(Object.keys(o).length<=1)return!1;const r=e.selection.range;if(r.isCollapsed()){const i=e.getBlockById(r.start.blockId);if(!ee(e,i))return!1;this.button.clearCheckedState(),this.button.show(o),this.event=t}return!1}}const LH={pasteSpecial:{originFormats:"\u4FDD\u6301\u539F\u6837\u5F0F",plainText:"\u7C98\u8D34\u7EAF\u6587\u672C",markdown:"\u7C98\u8D34\u4E3A Markdown"}},MH={pasteSpecial:{originFormats:"Keep origin formats",plainText:"Paste as plain text",markdown:"Paste as markdown"}},RH={pasteSpecial:{originFormats:"\u5143\u306E\u30B9\u30BF\u30A4\u30EB\u3092\u7DAD\u6301\u3059\u308B",plainText:"\u30D7\u30EC\u30FC\u30F3\u30C6\u30AD\u30B9\u30C8\u3092\u8CBC\u308A\u4ED8\u3051\u308B",markdown:"Markdown \u3068\u3057\u3066\u8CBC\u308A\u4ED8\u3051"}};R.mergeLang({"zh-CN":LH,"en-US":MH,"ja-JP":RH});const _ne="",OH=S("html-to-doc");function _H(n){const e="ones-editor-doc::",t="::ones-editor-doc";let o=n.indexOf(e);if(o!==-1){o+=e.length;const r=n.indexOf(t,o);if(r!==-1){const i=n.substr(o,r-o);try{const s=Ud(i);return JSON.parse(s)}catch(s){OH.error(`invalid doc data: ${s}, ${i}`)}}}return null}const n8="latex-b172fea480b",FH=n=>({name:"latex-block",level:"block",start(e){var t,o;return(o=(t=e.match(/\$\$[^\$]/))==null?void 0:t.index)!=null?o:-1},tokenizer(e,t){const o=/^\$\$([^\$]+)\$\$/.exec(e);return o?{type:"latex-block",raw:o[0],formula:o[1]}:void 0},renderer(e){return n.lazy?`<span class="${n8}" block>${e.formula}</span>`:n.render(e.formula,!0)}}),PH=n=>({name:"latex",level:"inline",start(e){var t,o;return(o=(t=e.match(/\$[^\$]/))==null?void 0:t.index)!=null?o:-1},tokenizer(e,t){const o=/^\$([^\$]+)\$/.exec(e);return o?{type:"latex",raw:o[0],formula:o[1]}:void 0},renderer(e){return n.lazy?`<span class="${n8}">${e.formula}</span>`:n.render(e.formula,!1)}});var NH=(n={})=>(n.lazy&&n.env!=="test"&&new IntersectionObserver((e,t)=>{for(const o of e){if(!o.isIntersecting)continue;const r=o.target;t.unobserve(r),Promise.resolve(n.render(r.innerText,r.hasAttribute("block"))).then(i=>{r.innerHTML=i}),r.classList.add("latex-rendered")}},{threshold:1}),{extensions:[FH(n),PH(n)]});function Bc(n){const e=n.type;if(e==="link")return!!n.tokens.some(Bc);switch(e){case"code":case"table":case"hr":case"blockquote":case"list":case"list_item":case"image":case"paragraph":return!0;default:return!1}}function $H(n){return!Bc(n)}function HH(n){if(n.length===0)return[];if(n.length===1)return[n];const e=[];let t=[n[0]],o=Bc(n[0]);for(let r=1;r<n.length;r++){const i=n[r];o===Bc(i)?t.push(i):(e.push(t),t=[i],o=Bc(i))}return e.push(t),e}function jH(n,e,t){const o=n.href;let r=t.tokensToText(n.tokens,e,t);return r.length===0&&(r=Oi(o,e)),r=uh(r,"link",o),r}let Lu;function a2(n){Lu||(Lu=document.createElement("textarea")),Lu.innerHTML=n;const e=Lu.childNodes.length===0?"":Lu.childNodes[0].nodeValue;return e!=null?e:""}function UH(n,e){const t=a2(n.text);return[lo(t,{...e,"style-code":!0})]}function zH(n,e,t){const r=n.tokens;return r?t.tokensToText(r,e,t):ag(a2(n.text),e)}const VH=S("token-to-text");function u2(n,e,t){return n.map(r=>r.type==="text"?zH(r,e,t):r.type==="strong"?t.tokensToText(r.tokens,{...e,"style-bold":!0},t):r.type==="em"?t.tokensToText(r.tokens,{...e,"style-italic":!0},t):r.type==="del"?t.tokensToText(r.tokens,{...e,"style-strikethrough":!0},t):r.type==="link"?jH(r,e,t):r.type==="codespan"?UH(r,e):r.type==="br"?[{insert:" ",attributes:{id:K(),created:Date.now(),box:!0,type:"br"}}]:r.type==="escape"?ag(a2(r.text),e):r.type==="latex"?[{insert:" ",attributes:{id:K(),created:Date.now(),box:!0,type:"math",tex:r.formula}}]:(VH.warn(`unknown token in text: ${JSON.stringify(r)}`),[])).flat()}function WH(n,e){const t=u2(n.tokens,{},e);return[{id:K(),type:"text",text:t,heading:n.depth}]}function qH(n,e){const{text:t,children:o}=e.tokensToTextWithChildren(n.tokens,e),r=[];return t.length>0&&r.push({id:K(),type:"text",text:t}),r.push(...o),r}function GH(n,e){const{text:t,children:o}=e.tokensToTextWithChildren([n],e),r=[];return t.length>0&&r.push({id:K(),type:"text",text:t}),r.push(...o),r}function ZH(n,e){const t=typeof n.start=="number"?n.start:1,o=n.ordered,r=K(),i=[];return n.items.forEach((l,a)=>{const d={...e,listLevel:e.listLevel+1},{text:h,children:p}=e.tokensToTextWithChildren(l.tokens,d);let A;typeof l.checked=="boolean"&&(A=l.checked?"checked":"unchecked");const v={id:K(),type:"list",groupId:r,ordered:o,checkbox:A,start:t+a,text:h,level:e.listLevel};i.push(v),i.push(...p)}),i}function QH(n,e){const t=e.tokensToBlocks(n.tokens,e);return t.forEach(o=>{o.quoted=!0}),t}const o8=100,YH=20,JH=600;function KH(n,e){const t=e.text;if(t){const o=rt(t);return Math.min(Vd(o,n)+YH,JH)}return o8}function r8(n,e){let t=o8;return e.forEach(o=>{t=Math.max(t,KH(n,o))}),t}function XH(n,e){var l,a;const t=n.header.length,o=n.rows.length+1,r=[],i=Array(t).fill(100);for(let d=0;d<o;d++){let h;d===0?h=n.header:h=n.rows[d-1];for(let p=0;p<t;p++){const A=h[p],v=(l=A==null?void 0:A.tokens)!=null?l:[],B=K();r.push(B);let D;if(v.length===0)D=[hh()];else if(Bc(v[0]))D=e.tokensToBlocks(A.tokens,e),D.length===0&&D.push(hh());else{const{text:T,children:_}=e.tokensToTextWithChildren(A.tokens,e);D=[{id:K(),type:"text",text:T},..._]}e.doc.blocks[B]=D,i[p]=Math.max(i[p],r8((a=e.font)!=null?a:"",D))}}return[{id:K(),type:"table",cols:t,rows:o,colsWidth:i,children:r}]}function ej(n){return[{id:K(),type:"embed",embedType:"hr",embedData:{}}]}function tj(n,e){var a;const t=n.text;if(!t)return[];try{const d=n.text,h=Ud(d),p=JSON.parse(h);if(p){const{root:A,...v}=p.blocks;return e.doc.blocks={...e.doc.blocks,...v},A}}catch{}const o=(a=n.lang)!=null?a:"Plain Text";if(o==="mermaid")return[{id:K(),type:"embed",embedType:"mermaid",embedData:{mermaidText:t}}];if(o==="plantuml")return[{id:K(),type:"embed",embedType:"plantuml",embedData:{plantumlText:t}}];if(o==="flow"||o==="flowchart")return[{id:K(),type:"embed",embedType:"flowchart",embedData:{flowchartText:t}}];const i=t.split(`
423
+ `)}class BH{constructor(){m(this,"group","image");m(this,"commands",[])}executeCommand(e,t,o){if(o.id==="replace-image"){const{block:r,image:i}=o.data;xt.getImageObject(e,r).replaceImage(0,i)}}}function EH(){return{blockCommands:{image:new BH},abstract:`${R.t("image.abstract")}`}}function xH(){return{name:"Image",insertEmbedCommandItems:[{id:"insert-image",name:R.t("image.abstract"),icon:EL,group:"common",subText:"/image",order:100}],handleInsertEmptyEmbed:async(n,e)=>{var v;let t;(v=e.data)!=null&&v.file&&(t=e.data.file);const o=P7(n);if(t=t!=null?t:await zl(o),!t)return null;try{N7(n,t)}catch{return null}let r={width:k7,height:z0};try{r=await i$(t)}catch(B){yH.error(B)}const i=n.rootContainer.clientWidth,s=r.width<i?Math.min(100,r.width/i*100):100,l={src:"",width:r.width,height:r.height,flex:1,virtualSize:!1},a=cn([l],s),d={id:K(),type:"embed",embedType:"image",embedData:a},h=n.options.componentsOptions.image;h!=null&&h.defaultAlign&&(d.align=h.defaultAlign);const p=n.insertBlock(e.containerId,e.blockIndex,d);return xt.getImageObject(n,p).replaceImage(0,t),p}}}function IH(n,e,t){var h;const{data:o}=t,r=n.getBlockString(e).trim();if(!o||o.embedType!=="image"||!ee(n,e))return null;const i=r.match(/^!\[[^\]]*\]\((?<filename>.*?)(?="|\))(?<optionalPart>".*")?\)/),s=(h=i==null?void 0:i.groups)==null?void 0:h.filename;if(!s)return null;const l={src:s},a={id:K(),type:"embed",embedType:"image",embedData:l};xt.create(n,a).setAutoFix(!0);const d=n.options.componentsOptions.image.defaultAlign;return d&&(a.align=d),{blockData:a}}function TH(n,e){const t=ie(e);n.destroyCustom(`image-${t}`)}const t8={embedType:"image",createEmbedContent:kH,convertTo:wH,convertFrom:IH,getBlockProperties:EH,getOptions:xH,handleDrop:X$,handleDropOver:nH,handleDeleteBlock:TH};class DH{constructor(e,t){m(this,"toolbar");m(this,"anchor",null);m(this,"item");m(this,"docs",null);m(this,"checkedId");m(this,"handlePasteSpecial",(e,t)=>{!t.data||(this.checkedId===t.id?this.checkedId=void 0:this.checkedId=t.id,this.onPasteSpecial(t.data),setTimeout(()=>{this.docs&&this.show(this.docs),this.editor.focus()}))});m(this,"handleClose",()=>{this.editor.focus()});m(this,"handleSelectionChange",()=>{this.handleClose()});this.editor=e,this.onPasteSpecial=t,this.item={id:"paste-special",name:"",icon:xL,dropdown:!0,manualShowChildren:!0,childrenPlacement:"bottom-start",childrenOffset:[-4,4],children:[]},this.toolbar=new ou([this.item],void 0,{id:"paste-special-button",tooltipId:this.editor.clientId,refuseOverflow:!0}),this.toolbar.addListener("click",this.handlePasteSpecial),this.toolbar.addListener("close",this.handleClose),this.editor.addListener("selectionChanged",this.handleSelectionChange)}show(e){this.docs=e;const t=this.editor,o=t.selection.range;if(!o.isCollapsed())return;const r=t.getBlockById(o.start.blockId);if(!ee(t,r))return;const i=Ti(t,r,o)[0];if(!i)return;this.anchor&&this.anchor.remove(),this.anchor=Li(t,r,"paste-special-button-anchor",i);const s=this.getCommandItems(e);this.item.children=s,this.toolbar.manualShow(this.anchor)}hide(){this.toolbar.close("selectionChange")}clearCheckedState(){this.checkedId=void 0}destroy(){this.toolbar.destroy(),this.editor.removeListener("selectionChanged",this.handleSelectionChange)}getCommandItems(e){const t=i=>({id:i,states:this.checkedId===i?["checked"]:void 0,name:R.t("pasteSpecial.originFormats"),data:e[i]}),o=[];let r=!0;return e["text/x-ones-editor-doc"]?o.push(t("text/x-ones-editor-doc")):e["text/office-html"]?o.push(t("text/office-html")):e["text/html"]?o.push(t("text/html")):e["text/plain"]&&(o.push(t("text/plain")),r=!1),e["text/plain"]&&(r&&o.push({id:"text/plain",states:this.checkedId==="text/plain"?["checked"]:void 0,name:R.t("pasteSpecial.plainText"),data:e["text/plain"]}),o.push({id:"text/markdown",states:this.checkedId==="text/markdown"?["checked"]:void 0,name:R.t("pasteSpecial.markdown"),data:e["text/markdown"]})),o}}const SH=S("paste-special");class c2{constructor(e){m(this,"button");m(this,"lastUndoAction",null);m(this,"event",null);m(this,"handlePasteSpecial",e=>{this.editor.undoManager.runInGroup(()=>{this.editor.undoManager.undoTo(this.lastUndoAction),this.editor.pasteDoc(e)})});this.editor=e,this.button=new DH(e,this.handlePasteSpecial)}destroy(){this.event=null,this.button.destroy()}handleChanged(e,t){this.event=null,this.button.hide()}async handleBeforePaste(e,t){return SH.debug("before paste"),this.lastUndoAction=e.undoManager.lastAction(),!1}async handleAfterPaste(e,t,o){if(Object.keys(o).length<=1)return!1;const r=e.selection.range;if(r.isCollapsed()){const i=e.getBlockById(r.start.blockId);if(!ee(e,i))return!1;this.button.clearCheckedState(),this.button.show(o),this.event=t}return!1}}const LH={pasteSpecial:{originFormats:"\u4FDD\u6301\u539F\u6837\u5F0F",plainText:"\u7C98\u8D34\u7EAF\u6587\u672C",markdown:"\u7C98\u8D34\u4E3A Markdown"}},MH={pasteSpecial:{originFormats:"Keep origin formats",plainText:"Paste as plain text",markdown:"Paste as markdown"}},RH={pasteSpecial:{originFormats:"\u5143\u306E\u30B9\u30BF\u30A4\u30EB\u3092\u7DAD\u6301\u3059\u308B",plainText:"\u30D7\u30EC\u30FC\u30F3\u30C6\u30AD\u30B9\u30C8\u3092\u8CBC\u308A\u4ED8\u3051\u308B",markdown:"Markdown \u3068\u3057\u3066\u8CBC\u308A\u4ED8\u3051"}};R.mergeLang({"zh-CN":LH,"en-US":MH,"ja-JP":RH});const _ne="",OH=S("html-to-doc");function _H(n){const e="ones-editor-doc::",t="::ones-editor-doc";let o=n.indexOf(e);if(o!==-1){o+=e.length;const r=n.indexOf(t,o);if(r!==-1){const i=n.substr(o,r-o);try{const s=Ud(i);return JSON.parse(s)}catch(s){OH.error(`invalid doc data: ${s}, ${i}`)}}}return null}const n8="latex-b172fea480b",FH=n=>({name:"latex-block",level:"block",start(e){var t,o;return(o=(t=e.match(/\$\$[^\$]/))==null?void 0:t.index)!=null?o:-1},tokenizer(e,t){const o=/^\$\$([^\$]+)\$\$/.exec(e);return o?{type:"latex-block",raw:o[0],formula:o[1]}:void 0},renderer(e){return n.lazy?`<span class="${n8}" block>${e.formula}</span>`:n.render(e.formula,!0)}}),PH=n=>({name:"latex",level:"inline",start(e){var t,o;return(o=(t=e.match(/\$[^\$]/))==null?void 0:t.index)!=null?o:-1},tokenizer(e,t){const o=/^\$([^\$]+)\$/.exec(e);return o?{type:"latex",raw:o[0],formula:o[1]}:void 0},renderer(e){return n.lazy?`<span class="${n8}">${e.formula}</span>`:n.render(e.formula,!1)}});var NH=(n={})=>(n.lazy&&n.env!=="test"&&new IntersectionObserver((e,t)=>{for(const o of e){if(!o.isIntersecting)continue;const r=o.target;t.unobserve(r),Promise.resolve(n.render(r.innerText,r.hasAttribute("block"))).then(i=>{r.innerHTML=i}),r.classList.add("latex-rendered")}},{threshold:1}),{extensions:[FH(n),PH(n)]});function Bc(n){const e=n.type;if(e==="link")return!!n.tokens.some(Bc);switch(e){case"code":case"table":case"hr":case"blockquote":case"list":case"list_item":case"image":case"paragraph":return!0;default:return!1}}function $H(n){return!Bc(n)}function HH(n){if(n.length===0)return[];if(n.length===1)return[n];const e=[];let t=[n[0]],o=Bc(n[0]);for(let r=1;r<n.length;r++){const i=n[r];o===Bc(i)?t.push(i):(e.push(t),t=[i],o=Bc(i))}return e.push(t),e}function jH(n,e,t){const o=n.href;let r=t.tokensToText(n.tokens,e,t);return r.length===0&&(r=Oi(o,e)),r=uh(r,"link",o),r}let Lu;function a2(n){Lu||(Lu=document.createElement("textarea")),Lu.innerHTML=n;const e=Lu.childNodes.length===0?"":Lu.childNodes[0].nodeValue;return e!=null?e:""}function UH(n,e){const t=a2(n.text);return[lo(t,{...e,"style-code":!0})]}function zH(n,e,t){const r=n.tokens;return r?t.tokensToText(r,e,t):ag(a2(n.text),e)}const VH=S("token-to-text");function u2(n,e,t){return n.map(r=>r.type==="text"?zH(r,e,t):r.type==="strong"?t.tokensToText(r.tokens,{...e,"style-bold":!0},t):r.type==="em"?t.tokensToText(r.tokens,{...e,"style-italic":!0},t):r.type==="del"?t.tokensToText(r.tokens,{...e,"style-strikethrough":!0},t):r.type==="link"?jH(r,e,t):r.type==="codespan"?UH(r,e):r.type==="br"?[{insert:" ",attributes:{id:K(),created:Date.now(),box:!0,type:"br"}}]:r.type==="escape"?ag(a2(r.text),e):r.type==="latex"?[{insert:" ",attributes:{id:K(),created:Date.now(),box:!0,type:"math",tex:r.formula}}]:(VH.warn(`unknown token in text: ${JSON.stringify(r)}`),[])).flat()}function WH(n,e){const t=u2(n.tokens,{},e);return[{id:K(),type:"text",text:t,heading:n.depth}]}function qH(n,e){const{text:t,children:o}=e.tokensToTextWithChildren(n.tokens,e),r=[];return t.length>0&&r.push({id:K(),type:"text",text:t}),r.push(...o),r}function GH(n,e){const{text:t,children:o}=e.tokensToTextWithChildren([n],e),r=[];return t.length>0&&r.push({id:K(),type:"text",text:t}),r.push(...o),r}function ZH(n,e){const t=typeof n.start=="number"?n.start:1,o=n.ordered,r=K(),i=[];return n.items.forEach((l,a)=>{const d={...e,listLevel:e.listLevel+1},{text:h,children:p}=e.tokensToTextWithChildren(l.tokens,d);let A;typeof l.checked=="boolean"&&(A=l.checked?"checked":"unchecked");const v={id:K(),type:"list",groupId:r,ordered:o,checkbox:A,start:t+a,text:h,level:e.listLevel};i.push(v),i.push(...p)}),i}function QH(n,e){const t=e.tokensToBlocks(n.tokens,e);return t.forEach(o=>{o.quoted=!0}),t}const o8=100,YH=20,JH=600;function KH(n,e){const t=e.text;if(t){const o=rt(t);return Math.min(Vd(o,n)+YH,JH)}return o8}function r8(n,e){let t=o8;return e.forEach(o=>{t=Math.max(t,KH(n,o))}),t}function XH(n,e){var l,a;const t=n.header.length,o=n.rows.length+1,r=[],i=Array(t).fill(100);for(let d=0;d<o;d++){let h;d===0?h=n.header:h=n.rows[d-1];for(let p=0;p<t;p++){const A=h[p],v=(l=A==null?void 0:A.tokens)!=null?l:[],B=K();r.push(B);let D;if(v.length===0)D=[hh()];else if(Bc(v[0]))D=e.tokensToBlocks(A.tokens,e),D.length===0&&D.push(hh());else{const{text:T,children:_}=e.tokensToTextWithChildren(A.tokens,e);D=[{id:K(),type:"text",text:T},..._]}e.doc.blocks[B]=D,i[p]=Math.max(i[p],r8((a=e.font)!=null?a:"",D))}}return[{id:K(),type:"table",cols:t,rows:o,colsWidth:i,children:r}]}function ej(n){return[{id:K(),type:"embed",embedType:"hr",embedData:{}}]}function tj(n,e){var a;const t=n.text;if(!t)return[];try{const d=n.text,h=Ud(d),p=JSON.parse(h);if(p){const{root:A,...v}=p.blocks;return e.doc.blocks={...e.doc.blocks,...v},A}}catch{}const o=(a=n.lang)!=null?a:"Plain Text";if(o==="mermaid")return[{id:K(),type:"embed",embedType:"mermaid",embedData:{mermaidText:t}}];if(o==="plantuml")return[{id:K(),type:"embed",embedType:"plantuml",embedData:{plantumlText:t}}];if(o==="flow"||o==="flowchart")return[{id:K(),type:"embed",embedType:"flowchart",embedData:{flowchartText:t}}];const i=t.split(`
424
424
  `).map(d=>({id:K(),type:"text",text:Oi(d)})),s=e.doc,l=K();return s.blocks[l]=i,[{id:K(),type:"code",language:o,children:[l]}]}function nj(n){return[{id:K(),type:"embed",embedType:"image",embedData:{src:n.href,title:n.title}}]}function oj(n,e){const{text:t,children:o}=e.tokensToTextWithChildren(n.tokens,e),r=[];return t.length>0&&r.push({id:K(),type:"text",text:t}),r.push(...o),r}function rj(n){const e=n.formula;return e?[{id:K(),type:"embed",embedType:"math",embedData:{mathjaxText:e}}]:[]}const i8=S("markdown-to-doc");function ij(n,e){var t;if(n.type==="heading")return WH(n,e);if(n.type==="paragraph")return qH(n,e);if(n.type==="list")return ZH(n,e);if(n.type==="blockquote")return QH(n,e);if(n.type==="table")return XH(n,e);if(n.type==="hr")return ej();if(n.type==="code")return tj(n,e);if(n.type==="image")return nj(n);if(n.type==="link")return oj(n,e);if(n.type==="latex-block")return rj(n);if(n.type==="text")return GH(n,e);if(n.type==="space"){const o=n.raw.replaceAll(" ",""),r=Math.floor(o.split(`
425
425
  `).length/2)-1;return r>0?new Array(r).fill("").map(()=>({type:"text",id:K(),text:[]})):[]}if(n.type==="html"){const o=(t=e.htmlToDoc)==null?void 0:t.call(e,n.text);if(!o)return i8.warn(`failed to convert html to doc: ${JSON.stringify(n)}`),[];const{root:r,...i}=o.blocks;return e.doc.blocks={...e.doc.blocks,...i},r}return i8.warn(`unknown block token: ${JSON.stringify(n)}`),[]}function d2(n,e){const t=[];return n.forEach(o=>{const r=ij(o,e);t.push(...r)}),t}S("markdown-to-doc");function sj(n,e){const t={text:[],children:[]};return HH(n).forEach((r,i)=>{const s=r[0];if(i===0&&$H(s)){t.text=u2(r,{},e);return}t.children.push(...d2(r,e))}),t}const lj={render:(n,e)=>""};G5.marked.use(NH(lj));function s8(n,e){const o=new G5.marked.Lexer().lex(n),r={blocks:{root:[]},meta:{},comments:{}},i={font:e==null?void 0:e.font,doc:r,tokensToText:u2,tokensToBlocks:d2,tokensToTextWithChildren:sj,htmlToDoc:e==null?void 0:e.htmlToDoc,listLevel:1},s=d2(o,i);return s.length===0?null:(r.blocks.root.push(...s),r)}function cj(n){if(n.nodeName!=="DIV")return!1;const e=n;return Array.from(e.childNodes).every(t=>t.nodeName==="SPAN"||t instanceof Text)?!!e.querySelector(":scope > .hljs-function, :scope > .hljs-params, :scope > .hljs-string, :scope > .hljs-keyword, :scope > .hljs-attr"):!1}function l8(n){if(cj(n)){const e=n,t=e.parentNode,o=document.createElement("pre");Array.from(e.childNodes).forEach(r=>o.appendChild(r)),t==null||t.insertBefore(o,e);return}n.childNodes.forEach(e=>l8(e))}function Hf(n){var e;if(n instanceof HTMLBRElement){const t=document.createTextNode(`
426
426
  `);(e=n.parentNode)==null||e.insertBefore(t,n),n.remove();return}n.childNodes.forEach(Hf)}function aj(n){n.addRule("preOnlyBlockToCode",{filter:e=>e.nodeName!=="PRE"?!1:Array.from(e.childNodes).every(t=>t.nodeName==="SPAN"||t instanceof Text||t.nodeName==="BR"),replacement:(e,t,o)=>{var r;return Hf(t),`