@ebl-vue/editor-full 2.31.51 → 2.31.53

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.
Files changed (2) hide show
  1. package/dist/index.mjs +183 -170
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
- (function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode(':root{--color-border: #EFF0F1}.ebl-editor{cursor:text;font-size:16px;font-weight:400;background-color:#fff;height:100%;overflow:auto;position:relative;padding-top:15px}.ebl-editor.outline{padding-right:280px}.ebl-editor.outline .codex-editor{-webkit-box-flex:1;-ms-flex:1;flex:1}@media (max-width:1240px){.ebl-outline{display:none}.ebl-editor.outline{padding-right:0}}@media (min-width:1240px){.ebl-editor.readonly .ce-block__content{max-width:100%;padding-left:100px;padding-right:100px}}.ce-toolbar,.ce-inline-toolbar{z-index:1000}.ce-toolbar__plus{border:1px solid #EFF0F1}.ce-toolbar .ce-popover__items,.ce-popover-clone .ce-popover__items{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.ce-toolbar .ce-popover__items .ce-popover-item,.ce-popover-clone .ce-popover__items .ce-popover-item{position:relative}.ce-toolbar .ce-popover__items .ce-popover-item__title,.ce-popover-clone .ce-popover__items .ce-popover-item__title{display:none}.ce-toolbar .ce-popover-item-html,.ce-toolbar .ce-popover-item-separator,.ce-toolbar .ce-popover-item[data-item-name=convert-to],.ce-popover-clone .ce-popover-item-html,.ce-popover-clone .ce-popover-item-separator,.ce-popover-clone .ce-popover-item[data-item-name=convert-to]{width:100%}.ce-toolbar .ce-popover-item-html[data-item-name=list-setting],.ce-popover-clone .ce-popover-item-html[data-item-name=list-setting]{width:auto;overflow:hidden}.ce-toolbar .ce-popover-item-html[data-item-name=list-setting-start-with],.ce-popover-clone .ce-popover-item-html[data-item-name=list-setting-start-with]{border-radius:6px;padding:3px}.ce-toolbar .ce-popover-item-html[data-item-name=list-setting-start-with]:hover,.ce-popover-clone .ce-popover-item-html[data-item-name=list-setting-start-with]:hover{background-color:#f8f8f8}.ce-toolbar .ce-popover-item[data-item-name=convert-to] .ce-popover-item__title,.ce-popover-clone .ce-popover-item[data-item-name=convert-to] .ce-popover-item__title{display:block}.ce-toolbar .ce-popover-item[data-item-name=add-below],.ce-popover-clone .ce-popover-item[data-item-name=add-below]{width:100%}.ce-toolbar .ce-popover-item[data-item-name=add-below] .ce-popover-item__title,.ce-popover-clone .ce-popover-item[data-item-name=add-below] .ce-popover-item__title{display:block}.ce-toolbar .ce-popover-item[data-item-name=list-setting],.ce-popover-clone .ce-popover-item[data-item-name=list-setting]{width:100%}.ce-toolbar .ce-popover-item[data-item-name=list-setting] .ce-popover-item__title,.ce-popover-clone .ce-popover-item[data-item-name=list-setting] .ce-popover-item__title{display:block}.ce-popover--inline .ce-popover-item-html{padding:0 2px}.ce-inline-toolbar .ce-popover__items{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}.ce-inline-toolbar .ce-popover__items{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.ce-inline-toolbar .ce-popover__items .ce-popover-item__title{display:none}.ebl-editor ::-webkit-scrollbar{width:6px;height:6px}.ebl-editor ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:1px}.ebl-editor ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:1px solid #fff}.ebl-editor ::-webkit-scrollbar-thumb:hover{background:#555}.cdx-notifies{left:50%!important}.cdx-notifies{-webkit-transform:translateX(-50%);transform:translate(-50%);top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ebl-er-doc-outline-item{padding:7px 24px;cursor:pointer;white-space:normal;word-wrap:break-word}.ebl-er-doc-outline-item:hover{background-color:#f6f6f6}.ebl-er-doc-outline-item.selected{background-color:#ebebeb}.ebl-outline .level_1{padding-left:24px}.ebl-outline .level_2{padding-left:42px}.ebl-outline .level_3{padding-left:60px}.ce-popover--inline .ce-popover--nested .ce-popover__container{width:-webkit-min-content!important;width:-moz-min-content!important;width:min-content!important;min-width:0!important;min-width:initial!important}.ce-popover--inline .ce-popover--nested .ce-popover__items{width:-webkit-max-content;width:-moz-max-content;width:max-content}.editorjs__color-selector-container{display:grid;grid-gap:10px;padding:4px}.editorjs__color-selector__container-item{width:30px;height:30px;display:block;cursor:pointer;border-radius:100%;-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}.editorjs__color-selector__container-item:hover{-webkit-transform:scale(1.1);transform:scale(1.1)}.cel-inline-bold{font-weight:700}.cel-inline-strikethrough{-webkit-text-decoration:line-through;text-decoration:line-through}.cel-inline-italic{font-style:italic}.cel-inline-code{margin-left:2px;margin-right:2px;background-color:#f5f6f7;border:1px solid #dee0e3;border-color:#dee0e3;border-width:1px 0;border-radius:4px;padding:1px 5px 1px 4px}.cel-inline-underline{-webkit-text-decoration:underline;text-decoration:underline}.cel-inline-mark{background-color:#ff0;padding:2px}.cel-inline-link-input-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:5px}.cel-inline-link-input{-webkit-box-flex:1;-ms-flex:1;flex:1;background:#f8f8f8;border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:4px 8px;font-size:14px;line-height:22px;outline:none;margin:0;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;font-weight:500;font-family:inherit}.cel-inline-link-input-btn{width:50px;border-radius:5px;background-color:#161c27;color:#fff;border:none;cursor:pointer}.cel-inline-link-input-btn.disabled{opacity:.4;cursor:not-allowed}.cel-fake-background{background-color:#a8d6ff}.editorjs__color-selector__input{width:1px;height:1px;opacity:0}.editorjs__color-selector__container-item-none{background-color:transparent;border:1px solid #e6e6e6;position:relative}.editorjs__color-selector__container-item-none:before{content:"";position:absolute;top:50%;left:50%;width:1px;height:35px;background-color:#e6e6e6;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.cel-inline-gray-text{color:#646a73}.cel-inline-pink-text{color:#d83931}.cel-inline-orange-text{color:#de7802}.cel-inline-yellow-text{color:#dc9b04}.cel-inline-green-text{color:#2ea121}.cel-inline-blue-text{color:#245bdb}.cel-inline-purple-text{color:#6425d0}.ebl-er-doc{font-family:var(--font-family);font-size:16px;font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box}.ebl-er-header{height:var(--ebl-er-header-height);-webkit-box-sizing:border-box;box-sizing:border-box;position:sticky;top:0;z-index:10}.ebl-er-footer{height:var(--ebl-er-footer-height);-webkit-box-sizing:border-box;box-sizing:border-box}.ebl-er-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;min-height:calc(100vh - var(--ebl-er-header-height))}.ebl-er-doc-menu{width:var(--ebl-er-doc-menu-width);-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;height:calc(100vh - var(--ebl-er-header-height));position:sticky;top:var(--ebl-er-header-height)}.ebl-er-doc-menu-content{-webkit-box-sizing:border-box;box-sizing:border-box}.ebl-er-doc-content{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;max-width:calc(100% - var(--ebl-er-doc-menu-width));-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.ebl-er-doc-content-container{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 50px 50px;width:100%;overflow-x:hidden;white-space:normal;word-wrap:break-word}.ebl-er-doc-content-inner-wrap{margin:0 auto}.ebl-er-doc-content-inner .ce-block{width:100%}.ebl-er-doc-outline{width:280px;-webkit-box-sizing:border-box;box-sizing:border-box;height:calc(100vh - var(--ebl-er-header-height));position:sticky;top:var(--ebl-er-header-height);overflow:auto;padding:12px}.ebl-er-doc-pre-next{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:33px 0}@media (max-width:960px){.ebl-er-doc-outline{display:none}}.ebl-er-doc ::-webkit-scrollbar{width:6px;height:6px}.ebl-er-doc ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:1px}.ebl-er-doc ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:1px solid #fff}.ebl-er-doc ::-webkit-scrollbar-thumb:hover{background:#555}.ce-el-link-wrapper{position:absolute;z-index:1000;width:auto;max-width:300px;height:46px;padding:6px 20px;border:1px solid #eff0f1;border-radius:6px;background-color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.ce-el-link-input{border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:4px 8px;background-color:#f8f8f8;font-size:12px;line-height:22px;margin:0;-webkit-box-flex:1;-ms-flex:1;flex:1;width:260px}.ce-el-link-input.ce-el-link__noedit{display:none}.ce-el-link-btn-wrap{width:50px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.ce-el-link-btn{width:50px;background-color:#161c27;color:#fff;border-radius:6px;margin-left:5px;display:block}.ce-el-link-btn.ce-el-link__noedit{display:none}.ce-el-link-icon-btn{width:24px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-left:5px;cursor:pointer;display:none}.ce-el-link-icon-btn.ce-el-link__noedit{display:-webkit-box;display:-ms-flexbox;display:flex}.ce-el-link-input-text{padding-right:20px;display:none}.ce-el-link-input-text.ce-el-link__noedit{display:block}.ce-block--drop-target .ce-block__content:before{content:"";position:absolute;top:50%;left:-20px;margin-top:-1px;height:8px;width:8px;border:solid #a0a0a0;border-width:1px 1px 0 0;-webkit-transform-origin:right;transform-origin:right;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ce-block--drop-target .ce-block__content:after{background:none}.ce-header{padding:15px 0 3px;margin:0;line-height:1.25;outline:none}.ce-header p,.ce-header div{padding:0!important;margin:0!important}.ce-tune-alignment--right{text-align:right}.ce-tune-alignment--center{text-align:center}.ce-tune-alignment--left{text-align:left}.ce-paragraph{line-height:2!important}.ce-paragraph{outline:none}.ce-block:only-of-type .ce-paragraph[data-placeholder-active]:empty:before,.ce-block:only-of-type .ce-paragraph[data-placeholder-active][data-empty=true]:before{content:attr(data-placeholder-active)}.ce-paragraph p:first-of-type{margin-top:0}.ce-paragraph p:last-of-type{margin-bottom:0}.ce-editorjs-x-shiki{border-radius:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin:10px 0;border:2px solid transparent;position:relative}.ce-editorjs-x-shiki.editable:hover{border:2px solid #C0C0C0}.ce-editorjs-x-shiki__lang{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:8px}.ce-editorjs-x-shiki__code{position:relative;float:left;min-width:100%;overflow:hidden;height:auto;min-height:60px}.ce-editorjs-x-shiki__code__dragHandler{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);bottom:-5px;cursor:ns-resize;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;height:8px;width:60px;background-color:silver;border-radius:5px;display:none}.ce-editorjs-x-shiki:hover .ce-editorjs-x-shiki__code__dragHandler{display:block}.ce-editorjs-x-shiki__selector{display:-webkit-box;display:-ms-flexbox;display:flex;gap:15px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;border-bottom-style:solid;border-color:#9ca3af0d;border-bottom-width:1px;padding:0 8px 8px}.ce-editorjs-x-shiki__selector-language,.ce-editorjs-x-shiki__selector-theme{font-size:13px;font-family:inherit}.ce-editorjs-x-shiki__selector-language{width:90px}.ce-editorjs-x-shiki__selector select{border:none;outline:none}.ce-editorjs-x-shiki__span{position:relative;z-index:0;padding:20px 20px 20px 55px;margin:0;white-space:pre;font-size:13px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__span code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__textarea{all:unset;white-space:pre;background-color:transparent;position:absolute;padding:20px 20px 20px 55px;inset:0;color:transparent;z-index:0;font-size:13px;caret-color:#999;resize:none;border:none;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__textarea::-moz-selection{background-color:#083ca9;color:#fff}.ce-editorjs-x-shiki__textarea::selection{background-color:#083ca9;color:#fff}.ce-editorjs-x-shiki__copy{width:24px;height:24px;cursor:pointer;position:relative;margin-right:0}.ce-editorjs-x-shiki__copy_tip{font-size:12px;width:60px;margin-left:-20px;background-color:#0c0c0c;color:#ececec;text-align:center;border-radius:6px;padding:5px 10px;position:absolute;z-index:1;top:125%;-webkit-transition:opacity .3s;transition:opacity .3s;visibility:hidden;opacity:0}.ce-editorjs-x-shiki__copy_tip:after{content:"";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #0c0c0c transparent}.ce-editorjs-x-shiki__copy_tip.visible{visibility:visible;opacity:1}.ce-editorjs-x-shiki__span.shiki .line:before{content:attr(data-line);width:40px;display:inline-block;text-align:right;color:#888;position:absolute;left:0}.ce-editorjs-x-shiki__code ::-webkit-scrollbar{width:8px;height:8px}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-track{background:#22272e;border-radius:1px}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:2px solid #22272e}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-thumb:hover{background:#555}.cdx-quote{overflow:hidden;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;word-wrap:break-word;word-break:break-all}.cdx-quote blockquote{margin:0}.cdx-block-quote{border:solid #acacac;border-width:0 0 0 3px;-webkit-box-shadow:none;box-shadow:none;color:#666;line-height:1.6em;padding:1px 0 0 12px}.ce-delimiter__line__wrapper{height:24px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ce-delimiter__line{-webkit-box-flex:1;-ms-flex:1;flex:1;height:2px;background-color:#eff0f1}.cdx-list{margin:0;padding:0;outline:none;display:grid;counter-reset:item;grid-gap:var(--spacing-s);padding:var(--spacing-xs);--spacing-s: 8px;--spacing-xs: 6px;--list-counter-type: numeric;--radius-border: 5px;--checkbox-background: #fff;--color-border: #C9C9C9;--color-bg-checked: #369FFF;--line-height: 1.45em;--color-bg-checked-hover: #0059AB;--color-tick: #fff;--size-checkbox: 1.2em}.cdx-list ol{padding-left:0}.cdx-list__item{line-height:var(--line-height);display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;grid-template-areas:"checkbox content" ". child"}.cdx-list__item-children{display:grid;grid-area:child;grid-gap:var(--spacing-s);padding-top:var(--spacing-s)}.cdx-list__item [contenteditable]{outline:none}.cdx-list__item-content{word-break:break-word;white-space:pre-wrap;grid-area:content;padding-left:var(--spacing-s)}.cdx-list__item:before{counter-increment:item;white-space:nowrap}.cdx-list-ordered .cdx-list__item:before{content:counters(item,".",var(--list-counter-type)) "."}.cdx-list-ordered{counter-reset:item}.cdx-list-unordered{padding-left:0}.cdx-list-unordered .cdx-list__item:before{content:"•"}.cdx-list-checklist .cdx-list__item:before{content:""}.cdx-list__settings .cdx-settings-button{width:50%}.cdx-list__checkbox{padding-top:calc((var(--line-height) - var(--size-checkbox)) / 2);grid-area:checkbox;width:var(--size-checkbox);height:var(--size-checkbox);display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer}.cdx-list__checkbox svg{opacity:0;height:var(--size-checkbox);width:var(--size-checkbox);left:-1px;top:-1px;position:absolute}@media (hover: hover){.cdx-list__checkbox:not(.cdx-list__checkbox--no-hover):hover .cdx-list__checkbox-check svg{opacity:1}}.cdx-list__checkbox--checked{line-height:var(--line-height)}@media (hover: hover){.cdx-list__checkbox--checked:not(.cdx-list__checkbox--checked--no-hover):hover .cdx-checklist__checkbox-check{background:var(--color-bg-checked-hover);border-color:var(--color-bg-checked-hover)}}.cdx-list__checkbox--checked .cdx-list__checkbox-check{background:var(--color-bg-checked);border-color:var(--color-bg-checked)}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg{opacity:1}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg path{stroke:var(--color-tick)}.cdx-list__checkbox--checked .cdx-list__checkbox-check:before{opacity:0;visibility:visible;-webkit-transform:scale(2.5);transform:scale(2.5)}.cdx-list__checkbox-check{cursor:pointer;display:inline-block;position:relative;margin:0 auto;width:var(--size-checkbox);height:var(--size-checkbox);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:var(--radius-border);border:1px solid var(--color-border);background:var(--checkbox-background)}.cdx-list__checkbox-check:before{content:"";position:absolute;inset:0;border-radius:100%;background-color:var(--color-bg-checked);visibility:hidden;pointer-events:none;-webkit-transform:scale(1);transform:scale(1);-webkit-transition:opacity .4s,-webkit-transform .4s ease-out;transition:opacity .4s,-webkit-transform .4s ease-out;transition:transform .4s ease-out,opacity .4s;transition:transform .4s ease-out,opacity .4s,-webkit-transform .4s ease-out}.cdx-list__checkbox-check--disabled{pointer-events:none}.cdx-list-start-with-field{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;overflow:hidden;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cdx-list-start-with-field--invalid{background:#ffeced;border:1px solid #E13F3F}.cdx-list-start-with-field:hover{background-color:#f8f8f8}.cdx-list-start-with-field--invalid .cdx-list-start-with-field__input{color:#e13f3f}.cdx-list-start-with-field__startlabel{width:70px;font-size:14px}.cdx-list-start-with-field__input-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden}.cdx-list-start-with-field__input{font-size:14px;outline:none;font-weight:500;font-family:inherit;border:0;background:transparent;margin:0;line-height:22px;-webkit-box-flex:1;-ms-flex:1;flex:1;border:1px solid rgba(226,226,229,1);border-radius:6px;padding:0 10px;width:50px;text-align:center}.cdx-list-start-with-field__input::-webkit-input-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input::-moz-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input:-ms-input-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input::-ms-input-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input::placeholder{color:var(--grayText);font-weight:500}.cdx-alert{position:relative;padding:10px;border-radius:5px;margin-bottom:10px;margin-top:10px}.cdx-alert-primary{background-color:#ebf8ff;border:1px solid #4299e1;color:#2b6cb0}.cdx-alert-secondary{background-color:#f7fafc;border:1px solid #cbd5e0;color:#222731}.cdx-alert-info{background-color:#e6fdff;border:1px solid #4cd4ce;color:#00727c}.cdx-alert-success{background-color:#f0fff4;border:1px solid #68d391;color:#2f855a}.cdx-alert-warning{background-color:#fffaf0;border:1px solid #ed8936;color:#c05621}.cdx-alert-danger{background-color:#fff5f5;border:1px solid #fc8181;color:#c53030}.cdx-alert-light{background-color:#fff;border:1px solid #edf2f7;color:#1a202c}.cdx-alert-dark{background-color:#2d3748;border:1px solid #1a202c;color:#d3d3d3}.cdx-alert-align-left{text-align:left}.cdx-alert-align-center{text-align:center}.cdx-alert-align-right{text-align:right}.cdx-alert__message{outline:none}.cdx-alert [contentEditable=true][data-placeholder]:before{position:absolute;content:attr(data-placeholder);color:#707684;font-weight:400;opacity:0}.cdx-alert [contentEditable=true][data-placeholder]:empty:before{opacity:1}.cdx-alert [contentEditable=true][data-placeholder]:empty:focus:before{opacity:0}.ce-popover__item[data-item-name=alert-primary] .ce-popover__item-icon svg #background{fill:#ebf8ff;stroke:#4299e1}.ce-popover__item[data-item-name=alert-primary] .ce-popover__item-icon svg #content{fill:#2b6cb0}.ce-popover__item[data-item-name=alert-secondary] .ce-popover__item-icon svg #background{fill:#f7fafc;stroke:#cbd5e0}.ce-popover__item[data-item-name=alert-secondary] .ce-popover__item-icon svg #content{fill:#222731}.ce-popover__item[data-item-name=alert-info] .ce-popover__item-icon svg #background{fill:#e6fdff;stroke:#4cd4ce}.ce-popover__item[data-item-name=alert-info] .ce-popover__item-icon svg #content{fill:#00727c}.ce-popover__item[data-item-name=alert-success] .ce-popover__item-icon svg #background{fill:#f0fff4;stroke:#68d391}.ce-popover__item[data-item-name=alert-success] .ce-popover__item-icon svg #content{fill:#2f855a}.ce-popover__item[data-item-name=alert-warning] .ce-popover__item-icon svg #background{fill:#fffaf0;stroke:#ed8936}.ce-popover__item[data-item-name=alert-warning] .ce-popover__item-icon svg #content{fill:#c05621}.ce-popover__item[data-item-name=alert-danger] .ce-popover__item-icon svg #background{fill:#fff5f5;stroke:#fc8181}.ce-popover__item[data-item-name=alert-danger] .ce-popover__item-icon svg #content{fill:#c53030}.ce-popover__item[data-item-name=alert-light] .ce-popover__item-icon svg #background{fill:#fff;stroke:#edf2f7}.ce-popover__item[data-item-name=alert-light] .ce-popover__item-icon svg #content{fill:#1a202c}.ce-popover__item[data-item-name=alert-dark] .ce-popover__item-icon svg #background{fill:#2d3748;stroke:#1a202c}.ce-popover__item[data-item-name=alert-dark] .ce-popover__item-icon svg #content{fill:#d3d3d3}.cdx-alert_setting__icon_wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:10px}.cdx-alert_setting__icon_wrapper_align{margin-top:10px}.cdx-alert_setting__icon{display:inline-block;width:24px;height:24px;text-align:center;line-height:24px;cursor:pointer}.cdx-alert_setting__icon_active{opacity:.3}.ce-popover-indent-item{cursor:default!important}.ce-popover-indent-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:3px}.ce-popover-indent-item[version^="2.26"]{gap:10px}.ce-popover-indent-item:hover{background-color:transparent!important}.ce-popover-indent-item .ce-popover-item__icon{width:26px;height:26px;cursor:pointer;will-change:background-color,color;transition:.3s background-color,.3s color;padding:0;border-width:0px;color:#000;background-color:#fff;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;-webkit-transition:.3s background-color,.3s color;-moz-transition:.3s background-color,.3s color;-ms-transition:.3s background-color,.3s color;-o-transition:.3s background-color,.3s color}.ce-popover-indent-item .ce-popover-item--disabled{color:#707684;opacity:.3;cursor:default}.ce-popover-indent-item .ce-popover-item__icon:focus{outline:none}.ce-popover-indent-item[version^="2.26"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.27"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.28"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.29"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.26"] .ce-popover-item__icon,.ce-popover-indent-item[version^="2.27"] .ce-popover-item__icon,.ce-popover-indent-item[version^="2.28"] .ce-popover-item__icon,.ce-popover-indent-item[version^="2.29"] .ce-popover-item__icon{box-shadow:0 0 0 1px #c9c9cc7a!important;-webkit-box-shadow:0 0 0 1px rgba(201,201,204,.48)!important}.ce-popover-indent-item[version^="2.26"] .ce-popover-item__icon:hover,.ce-popover-indent-item[version^="2.27"] .ce-popover-item__icon:hover,.ce-popover-indent-item[version^="2.28"] .ce-popover-item__icon:hover,.ce-popover-indent-item[version^="2.29"] .ce-popover-item__icon:hover{background-color:#eff2f5}.ce-highlight-indent{display:inline-block;height:1.6em;top:50%;position:absolute;transform:translateY(-50%);-webkit-transform:translate(0px,-50%);-moz-transform:translate(0px,-50%);-ms-transform:translate(0px,-50%);-o-transform:translate(0px,-50%)}.ce-popover-indent-item[version^="2.3"] .ce-popover-item__title{margin-left:4px}.tc-wrap{--color-background: #f9f9fb;--color-text-secondary: #7b7e89;--color-border: #e8e8eb;--cell-size: 34px;--toolbox-icon-size: 18px;--toolbox-padding: 6px;--toolbox-aiming-field-size: calc(var(--toolbox-icon-size) + var(--toolbox-padding)*2);--col-width: 100px 100px 100px;position:relative;height:100%;margin-top:var(--toolbox-icon-size);-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-grid;z-index:0}.tc-wrap svg{vertical-align:top}@media print{.tc-wrap{border-left-color:var(--color-border);border-left-style:solid;border-left-width:1px}}@media print{.tc-wrap .tc-row:after{display:none}}.tc-table{position:relative;width:100%;height:100%;display:grid;font-size:14px;border-top:1px solid var(--color-border);border-left:1px solid var(--color-border);line-height:1.4;overflow-x:auto}.tc-table:after{width:calc(var(--cell-size));height:100%;left:calc(var(--cell-size)*-1);top:0}.tc-table:after,.tc-table:before{position:absolute;content:""}.tc-table:before{width:100%;height:var(--toolbox-aiming-field-size);top:calc(var(--toolbox-aiming-field-size)*-1);left:0}.tc-table--heading .tc-row:first-child{font-weight:600;border-bottom:2px solid var(--color-border);position:sticky;top:0;z-index:2;background:var(--color-background)}.tc-table--heading .tc-row:first-child [contenteditable]:empty:before{content:attr(heading);color:var(--color-text-secondary)}.tc-table--heading .tc-row:first-child:after{bottom:-2px;border-bottom:2px solid var(--color-border)}.tc-add-column,.tc-add-row{display:-webkit-box;display:-ms-flexbox;display:flex;color:var(--color-text-secondary)}@media print{.tc-add{display:none}}.tc-add-column{display:grid;border-top:1px solid var(--color-border);grid-auto-rows:var(--cell-size);-webkit-box-align:center;-ms-flex-align:center;align-items:center;justify-items:center}.tc-add-column svg{padding:5px;position:sticky;top:0;background-color:var(--color-background)}.tc-add-column--disabled{visibility:hidden}@media print{.tc-add-column{display:none}}.tc-add-row{height:var(--cell-size);-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:4px;position:relative}.tc-add-row--disabled{display:none}.tc-add-row:before{content:"";position:absolute;right:calc(var(--cell-size)*-1);width:var(--cell-size);height:100%}@media print{.tc-add-row{display:none}}.tc-add-column,.tc-add-row{-webkit-transition:0s;transition:0s;cursor:pointer;will-change:background-color}.tc-add-column:hover,.tc-add-row:hover{-webkit-transition:background-color .1s ease;transition:background-color .1s ease;background-color:var(--color-background)}.tc-add-row{margin-top:1px}.tc-add-row:hover:before{-webkit-transition:.1s;transition:.1s;background-color:var(--color-background)}.tc-row{display:grid;grid-template-columns:var(--col-width);position:relative;border-bottom:1px solid var(--color-border)}.tc-row--selected{background:var(--color-background)}.tc-row--selected:after{background:var(--color-background)}.tc-cell{border-right:1px solid var(--color-border);padding:6px 12px;overflow:hidden;outline:none;line-break:normal}.tc-cell--selected{background:var(--color-background)}.tc-wrap--readonly .tc-row:after{display:none}.tc-toolbox{--toolbox-padding: 6px;--popover-margin: 30px;--toggler-click-zone-size: 30px;--toggler-dots-color: #7b7e89;--toggler-dots-color-hovered: #1d202b;position:absolute;cursor:pointer;z-index:1;opacity:0;-webkit-transition:opacity .1s;transition:opacity .1s;will-change:left,opacity}.tc-toolbox--column{top:calc(var(--toggler-click-zone-size)*-1);-webkit-transform:translate(calc(var(--toggler-click-zone-size)*-1/2));transform:translate(calc(var(--toggler-click-zone-size)*-1/2));will-change:left,opacity}.tc-toolbox--row{left:calc(var(--popover-margin)*-1);-webkit-transform:translateY(calc(var(--toggler-click-zone-size)*-1/2));transform:translateY(calc(var(--toggler-click-zone-size)*-1/2));margin-top:-1px;will-change:top,opacity}.tc-toolbox--showed{opacity:1}.tc-toolbox .tc-popover{position:absolute;top:0;left:var(--popover-margin)}.tc-toolbox__toggler{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:var(--toggler-click-zone-size);height:var(--toggler-click-zone-size);color:var(--toggler-dots-color);opacity:0;-webkit-transition:opacity .15s ease;transition:opacity .15s ease;will-change:opacity}.tc-toolbox__toggler:hover{color:var(--toggler-dots-color-hovered)}.tc-toolbox__toggler svg{fill:currentColor}.tc-wrap:hover .tc-toolbox__toggler{opacity:1}.tc-settings .cdx-settings-button{width:50%;margin:0}.tc-popover{--color-border: #eaeaea;--color-background: #fff;--color-background-hover: rgba(232, 232, 235, .49);--color-background-confirm: #e24a4a;--color-background-confirm-hover: #d54040;--color-text-confirm: #fff;background:var(--color-background);border:1px solid var(--color-border);-webkit-box-shadow:0 3px 15px -3px rgba(13,20,33,.12941);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;padding:6px;display:none;will-change:opacity,transform}.tc-popover--opened{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-animation:menuShowing .1s cubic-bezier(.215,.61,.355,1) forwards;animation:menuShowing .1s cubic-bezier(.215,.61,.355,1) forwards}.tc-popover__item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:2px 14px 2px 2px;border-radius:5px;cursor:pointer;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tc-popover__item:hover{background:var(--color-background-hover)}.tc-popover__item:not(:last-of-type){margin-bottom:2px}.tc-popover__item-icon{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:26px;height:26px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background:var(--color-background);border-radius:5px;border:1px solid var(--color-border);margin-right:8px}.tc-popover__item-label{line-height:22px;font-size:14px;font-weight:500}.tc-popover__item--confirm{background:var(--color-background-confirm);color:var(--color-text-confirm)}.tc-popover__item--confirm:hover{background-color:var(--color-background-confirm-hover)}.tc-popover__item--confirm .tc-popover__item-icon{background:var(--color-background-confirm);border-color:#0000001a}.tc-popover__item--confirm .tc-popover__item-icon svg{-webkit-transition:-webkit-transform .2s ease-in;transition:-webkit-transform .2s ease-in;transition:transform .2s ease-in;transition:transform .2s ease-in,-webkit-transform .2s ease-in;-webkit-transform:rotate(90deg) scale(1.2);transform:rotate(90deg) scale(1.2)}.tc-popover__item--hidden{display:none}@-webkit-keyframes menuShowing{0%{opacity:0;-webkit-transform:translateY(-8px) scale(.9);transform:translateY(-8px) scale(.9)}70%{opacity:1;-webkit-transform:translateY(2px);transform:translateY(2px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes menuShowing{0%{opacity:0;-webkit-transform:translateY(-8px) scale(.9);transform:translateY(-8px) scale(.9)}70%{opacity:1;-webkit-transform:translateY(2px);transform:translateY(2px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}.cell-resizable{cursor:col-resize}.image-tool{--bg-color: #cdd1e0;--front-color: #388ae5;--border-color: #e8e8eb;display:inline-block}.image-tool__image{border-radius:3px;overflow:hidden;margin-bottom:10px;padding-bottom:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.image-tool__image-picture{max-width:100%;vertical-align:bottom;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.image-tool__image-preloader{width:150px;height:150px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-color:var(--bg-color);background-position:center center}.image-tool__image-preloader:after{content:"";position:absolute;z-index:3;width:60px;height:60px;border-radius:50%;border:2px solid var(--bg-color);border-top-color:var(--front-color);left:50%;top:50%;margin-top:-30px;margin-left:-30px;-webkit-animation:image-preloader-spin 2s infinite linear;animation:image-preloader-spin 2s infinite linear;-webkit-box-sizing:border-box;box-sizing:border-box}.image-tool__caption{visibility:hidden;position:absolute;bottom:0;left:0;margin-bottom:10px}.image-tool__caption[contentEditable=true][data-placeholder]:before{position:absolute!important}.image-tool__caption[contentEditable=true][data-placeholder]:before{content:attr(data-placeholder);color:#707684;font-weight:400;display:none}.image-tool__caption[contentEditable=true][data-placeholder]:empty:before{display:block}.image-tool__caption[contentEditable=true][data-placeholder]:empty:focus:before{display:none}.image-tool--empty .image-tool__image,.image-tool--empty .image-tool__image-preloader{display:none}.image-tool--empty .image-tool__caption,.image-tool--uploading .image-tool__caption{visibility:hidden!important}.image-tool .cdx-button{display:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.image-tool .cdx-button svg{height:auto;margin:0 6px 0 0}.image-tool--filled .cdx-button,.image-tool--filled .image-tool__image-preloader{display:none}.image-tool--uploading{width:100%}.image-tool--uploading .resizable{display:none!important}.image-tool--uploading .image-tool__image{min-height:200px;display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#fff}.image-tool--uploading .image-tool__image-picture,.image-tool--uploading .cdx-button{display:none}.image-tool--withBorder .image-tool__image{border:1px solid var(--border-color)}.image-tool--withBackground .image-tool__image{padding:15px;background:var(--bg-color)}.image-tool--withBackground .image-tool__image-picture{max-width:60%;margin:0 auto}.image-tool--stretched .image-tool__image-picture{width:100%}.image-tool--caption .image-tool__caption{visibility:visible}.image-tool--caption{padding-bottom:50px}@-webkit-keyframes image-preloader-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes image-preloader-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.cdx-image-tool-tune--floatLeft .cdx-block,.cdx-image-tool-tune--center .cdx-block,.cdx-image-tool-tune--floatRight .cdx-block,.cdx-image-tool-tune--floatLeft .image-tool__image,.cdx-image-tool-tune--center .image-tool__image,.cdx-image-tool-tune--floatRight .image-tool__image{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}:root{--primary: #2492F5;--primary-content: #E9F4FE}.cdx-settings-button--active{background:#e9f4fe;color:#2492f5}.cdx-settings-button:hover{background:#e9f4fe}.cdx-image-tool-tune--center{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@media all and (min-width: 470px){.codex-editor:not(.read-only) .cdx-image-tool-tune--floatLeft.ce-block__content,.codex-editor:not(.read-only) .cdx-image-tool-tune--floatRight.ce-block__content{min-height:20px}.cdx-image-tool-tune--floatLeft.ce-block__content .image-tool__image,.cdx-image-tool-tune--floatRight.ce-block__content .image-tool__image{margin-top:40px}.cdx-image-tool-tune--floatLeft.ce-block__content .image-tool__image{margin-left:20px}.cdx-image-tool-tune--floatRight.ce-block__content .image-tool__image{margin-right:20px}.cdx-image-tool-tune--floatLeft.ce-block__content .cdx-input,.cdx-image-tool-tune--floatRight.ce-block__content .cdx-input{width:calc(100% - 20px)}.cdx-image-tool-tune--floatLeft.ce-block__content .cdx-input{margin-left:20px}.cdx-image-tool-tune--floatRight.ce-block__content .cdx-input{margin-right:20px}.cdx-image-tool-tune--floatLeft .cdx-block{float:left;margin-right:10px}.cdx-image-tool-tune--floatRight .cdx-block{float:right;margin-left:10px}.cdx-image-tool-tune--sizeSmall .cdx-block{max-width:25%!important}.cdx-image-tool-tune--sizeMiddle .cdx-block{max-width:50%!important}.cdx-image-tool-tune--sizeLarge .cdx-block{max-width:75%!important}}.cdx-image-tool-tune--sizeLarge img,.cdx-image-tool-tune--sizeSmall img,.cdx-image-tool-tune--sizeMiddle img{-o-object-fit:cover;object-fit:cover;max-width:100%}.codex-editor.read-only .cdx-input.image-tool__caption:empty,.read-only>.codex-editor .cdx-input.image-tool__caption:empty{display:none}.cdx-image-tool-tune--resize .cdx-block{position:relative;overflow:visible}.cdx-image-tool-tune--resize .cdx-block .resizable{display:none}.cdx-image-tool-tune--resize .image-tool__image-picture{width:100%!important}.cdx-image-tool-tune--resize .cdx-block:hover .resizable{display:block}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer{-webkit-box-sizing:border-box;box-sizing:border-box;width:14px;height:14px;border-radius:50%;background:#e9f4fe;border:3px solid #2492F5;position:absolute}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.top-left{left:-8px;top:2px;cursor:nwse-resize}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.top-right{right:-8px;top:1px;cursor:nesw-resize}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.bottom-left{left:-9px;bottom:10px;cursor:nesw-resize}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.bottom-right{right:-9px;bottom:10px;cursor:nwse-resize}.cdx-image-tool-tune--crop:hover,.cdx-image-tool-tune--crop.isCropping,.cdx-image-tool-tune--resize:hover{z-index:2}.cdx-image-tool-tune--crop .image-tool__image{position:relative}.cdx-image-tool-tune--crop .isCropping .image-tool__image{min-height:600px;min-width:100%}.cdx-image-tool-tune--crop .image-tool__image .crop-btn,.cdx-image-tool-tune--crop .image-tool__image .crop-save{position:absolute;top:0;left:0;padding:7px;background:#2492f5;color:#e9f4fe;text-align:center;line-height:20px;cursor:pointer;display:none}.cdx-image-tool-tune--crop .image-tool__image:hover .crop-btn,.cdx-image-tool-tune--crop .image-tool__image:hover .crop-save{display:block}.cdx-image-tool-tune--crop .image-tool__image img.isCropped{position:absolute;min-width:0;min-width:initial;max-width:none;max-width:initial;min-height:0;min-height:initial;max-height:none;max-height:initial}.cdx-image-tool-tune--crop .cdx-block.image-tool.isCropping{min-width:0!important;min-width:initial!important;max-width:none!important;max-width:initial!important;min-height:0!important;min-height:initial!important;max-height:none!important;max-height:initial!important}.image-tool__caption{background-color:#fff}.image-tool{position:relative;z-index:1}.cdx-image-tool-tune{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;gap:4px;width:100%}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { defineComponent as Ln, inject as xn, onMounted as Rn, toRaw as Mt, onUnmounted as Nn, watch as An, createElementBlock as _n, openBlock as Mn } from "vue";
3
- import On from "@ebl-vue/editorjs";
4
- import { bundledLanguagesInfo as In, codeToHtml as Hn } from "shiki";
1
+ (function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode(':root{--color-border: #EFF0F1}.ebl-editor{cursor:text;font-size:16px;font-weight:400;background-color:#fff;height:100%;overflow:auto;position:relative;padding-top:15px}.ebl-editor.outline{padding-right:280px}.ebl-editor.outline .codex-editor{-webkit-box-flex:1;-ms-flex:1;flex:1}@media (max-width:1240px){.ebl-outline{display:none}.ebl-editor.outline{padding-right:0}}@media (min-width:1240px){.ebl-editor.readonly .ce-block__content{max-width:100%;padding-left:100px;padding-right:100px}}.ce-toolbar,.ce-inline-toolbar{z-index:1000}.ce-toolbar__plus{border:1px solid #EFF0F1}.ce-toolbar .ce-popover__items,.ce-popover-clone .ce-popover__items{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.ce-toolbar .ce-popover__items .ce-popover-item,.ce-popover-clone .ce-popover__items .ce-popover-item{position:relative}.ce-toolbar .ce-popover__items .ce-popover-item__title,.ce-popover-clone .ce-popover__items .ce-popover-item__title{display:none}.ce-toolbar .ce-popover-item-html,.ce-toolbar .ce-popover-item-separator,.ce-toolbar .ce-popover-item[data-item-name=convert-to],.ce-popover-clone .ce-popover-item-html,.ce-popover-clone .ce-popover-item-separator,.ce-popover-clone .ce-popover-item[data-item-name=convert-to]{width:100%}.ce-toolbar .ce-popover-item-html[data-item-name=list-setting],.ce-popover-clone .ce-popover-item-html[data-item-name=list-setting]{width:auto;overflow:hidden}.ce-toolbar .ce-popover-item-html[data-item-name=list-setting-start-with],.ce-popover-clone .ce-popover-item-html[data-item-name=list-setting-start-with]{border-radius:6px;padding:3px}.ce-toolbar .ce-popover-item-html[data-item-name=list-setting-start-with]:hover,.ce-popover-clone .ce-popover-item-html[data-item-name=list-setting-start-with]:hover{background-color:#f8f8f8}.ce-toolbar .ce-popover-item[data-item-name=convert-to] .ce-popover-item__title,.ce-popover-clone .ce-popover-item[data-item-name=convert-to] .ce-popover-item__title{display:block}.ce-toolbar .ce-popover-item[data-item-name=add-below],.ce-popover-clone .ce-popover-item[data-item-name=add-below]{width:100%}.ce-toolbar .ce-popover-item[data-item-name=add-below] .ce-popover-item__title,.ce-popover-clone .ce-popover-item[data-item-name=add-below] .ce-popover-item__title{display:block}.ce-toolbar .ce-popover-item[data-item-name=list-setting],.ce-popover-clone .ce-popover-item[data-item-name=list-setting]{width:100%}.ce-toolbar .ce-popover-item[data-item-name=list-setting] .ce-popover-item__title,.ce-popover-clone .ce-popover-item[data-item-name=list-setting] .ce-popover-item__title{display:block}.ce-popover--inline .ce-popover-item-html{padding:0 2px}.ce-inline-toolbar .ce-popover__items{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}.ce-inline-toolbar .ce-popover__items{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.ce-inline-toolbar .ce-popover__items .ce-popover-item__title{display:none}.ebl-editor ::-webkit-scrollbar{width:6px;height:6px}.ebl-editor ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:1px}.ebl-editor ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:1px solid #fff}.ebl-editor ::-webkit-scrollbar-thumb:hover{background:#555}.cdx-notifies{left:50%!important}.cdx-notifies{-webkit-transform:translateX(-50%);transform:translate(-50%);top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ebl-er-doc-outline-item{padding:7px 24px;cursor:pointer;white-space:normal;word-wrap:break-word}.ebl-er-doc-outline-item:hover{background-color:#f6f6f6}.ebl-er-doc-outline-item.selected{background-color:#ebebeb}.ebl-outline .level_1{padding-left:24px}.ebl-outline .level_2{padding-left:42px}.ebl-outline .level_3{padding-left:60px}.ce-popover--inline .ce-popover--nested .ce-popover__container{width:-webkit-min-content!important;width:-moz-min-content!important;width:min-content!important;min-width:0!important;min-width:initial!important}.ce-popover--inline .ce-popover--nested .ce-popover__items{width:-webkit-max-content;width:-moz-max-content;width:max-content}.editorjs__color-selector-container{display:grid;grid-gap:10px;padding:4px}.editorjs__color-selector__container-item{width:30px;height:30px;display:block;cursor:pointer;border-radius:100%;-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}.editorjs__color-selector__container-item:hover{-webkit-transform:scale(1.1);transform:scale(1.1)}.cel-inline-bold{font-weight:700}.cel-inline-strikethrough{-webkit-text-decoration:line-through;text-decoration:line-through}.cel-inline-italic{font-style:italic}.cel-inline-code{margin-left:2px;margin-right:2px;background-color:#f5f6f7;border:1px solid #dee0e3;border-color:#dee0e3;border-width:1px 0;border-radius:4px;padding:1px 5px 1px 4px}.cel-inline-underline{-webkit-text-decoration:underline;text-decoration:underline}.cel-inline-mark{background-color:#ff0;padding:2px}.cel-inline-link-input-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;gap:5px}.cel-inline-link-input{-webkit-box-flex:1;-ms-flex:1;flex:1;background:#f8f8f8;border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:4px 8px;font-size:14px;line-height:22px;outline:none;margin:0;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;font-weight:500;font-family:inherit}.cel-inline-link-input-btn{width:50px;border-radius:5px;background-color:#161c27;color:#fff;border:none;cursor:pointer}.cel-inline-link-input-btn.disabled{opacity:.4;cursor:not-allowed}.cel-fake-background{background-color:#a8d6ff}.editorjs__color-selector__input{width:1px;height:1px;opacity:0}.editorjs__color-selector__container-item-none{background-color:transparent;border:1px solid #e6e6e6;position:relative}.editorjs__color-selector__container-item-none:before{content:"";position:absolute;top:50%;left:50%;width:1px;height:35px;background-color:#e6e6e6;-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg)}.cel-inline-gray-text{color:#646a73}.cel-inline-pink-text{color:#d83931}.cel-inline-orange-text{color:#de7802}.cel-inline-yellow-text{color:#dc9b04}.cel-inline-green-text{color:#2ea121}.cel-inline-blue-text{color:#245bdb}.cel-inline-purple-text{color:#6425d0}.ebl-er-doc{font-family:var(--font-family);font-size:16px;font-weight:400;-webkit-box-sizing:border-box;box-sizing:border-box}.ebl-er-header{height:var(--ebl-er-header-height);-webkit-box-sizing:border-box;box-sizing:border-box;position:sticky;top:0;z-index:10}.ebl-er-footer{height:var(--ebl-er-footer-height);-webkit-box-sizing:border-box;box-sizing:border-box}.ebl-er-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;min-height:calc(100vh - var(--ebl-er-header-height))}.ebl-er-doc-menu{width:var(--ebl-er-doc-menu-width);-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-negative:0;flex-shrink:0;height:calc(100vh - var(--ebl-er-header-height));position:sticky;top:var(--ebl-er-header-height)}.ebl-er-doc-menu-content{-webkit-box-sizing:border-box;box-sizing:border-box}.ebl-er-doc-content{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;max-width:calc(100% - var(--ebl-er-doc-menu-width));-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.ebl-er-doc-content-container{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 50px 50px;width:100%;overflow-x:hidden;white-space:normal;word-wrap:break-word}.ebl-er-doc-content-inner-wrap{margin:0 auto}.ebl-er-doc-content-inner .ce-block{width:100%}.ebl-er-doc-outline{width:280px;-webkit-box-sizing:border-box;box-sizing:border-box;height:calc(100vh - var(--ebl-er-header-height));position:sticky;top:var(--ebl-er-header-height);overflow:auto;padding:12px}.ebl-er-doc-pre-next{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:33px 0}@media (max-width:960px){.ebl-er-doc-outline{display:none}}.ebl-er-doc ::-webkit-scrollbar{width:6px;height:6px}.ebl-er-doc ::-webkit-scrollbar-track{background:#f1f1f1;border-radius:1px}.ebl-er-doc ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:1px solid #fff}.ebl-er-doc ::-webkit-scrollbar-thumb:hover{background:#555}.ce-el-link-wrapper{position:absolute;z-index:1000;width:auto;max-width:300px;height:46px;padding:6px 20px;border:1px solid #eff0f1;border-radius:6px;background-color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.ce-el-link-input{border:1px solid rgba(226,226,229,.2);border-radius:6px;padding:4px 8px;background-color:#f8f8f8;font-size:12px;line-height:22px;margin:0;-webkit-box-flex:1;-ms-flex:1;flex:1;width:260px}.ce-el-link-input.ce-el-link__noedit{display:none}.ce-el-link-btn-wrap{width:50px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.ce-el-link-btn{width:50px;background-color:#161c27;color:#fff;border-radius:6px;margin-left:5px;display:block}.ce-el-link-btn.ce-el-link__noedit{display:none}.ce-el-link-icon-btn{width:24px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-left:5px;cursor:pointer;display:none}.ce-el-link-icon-btn.ce-el-link__noedit{display:-webkit-box;display:-ms-flexbox;display:flex}.ce-el-link-input-text{padding-right:20px;display:none}.ce-el-link-input-text.ce-el-link__noedit{display:block}.ce-block--drop-target .ce-block__content:before{content:"";position:absolute;top:50%;left:-20px;margin-top:-1px;height:8px;width:8px;border:solid #a0a0a0;border-width:1px 1px 0 0;-webkit-transform-origin:right;transform-origin:right;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.ce-block--drop-target .ce-block__content:after{background:none}.ce-header{padding:15px 0 3px;margin:0;line-height:1.25;outline:none}.ce-header p,.ce-header div{padding:0!important;margin:0!important}.ce-tune-alignment--right{text-align:right}.ce-tune-alignment--center{text-align:center}.ce-tune-alignment--left{text-align:left}.ce-paragraph{line-height:2!important}.ce-paragraph{outline:none}.ce-block:only-of-type .ce-paragraph[data-placeholder-active]:empty:before,.ce-block:only-of-type .ce-paragraph[data-placeholder-active][data-empty=true]:before{content:attr(data-placeholder-active)}.ce-paragraph p:first-of-type{margin-top:0}.ce-paragraph p:last-of-type{margin-bottom:0}.ce-editorjs-x-shiki{border-radius:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin:10px 0;border:2px solid transparent;position:relative}.ce-editorjs-x-shiki.editable:hover{border:2px solid #C0C0C0}.ce-editorjs-x-shiki__lang{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:8px}.ce-editorjs-x-shiki__code{position:relative;float:left;min-width:100%;overflow:hidden;height:auto;min-height:60px}.ce-editorjs-x-shiki__code__dragHandler{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);bottom:-5px;cursor:ns-resize;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;height:8px;width:60px;background-color:silver;border-radius:5px;display:none}.ce-editorjs-x-shiki:hover .ce-editorjs-x-shiki__code__dragHandler{display:block}.ce-editorjs-x-shiki__selector{display:-webkit-box;display:-ms-flexbox;display:flex;gap:15px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;border-bottom-style:solid;border-color:#9ca3af0d;border-bottom-width:1px;padding:0 8px 8px}.ce-editorjs-x-shiki__selector-language,.ce-editorjs-x-shiki__selector-theme{font-size:13px;font-family:inherit}.ce-editorjs-x-shiki__selector-language{width:90px}.ce-editorjs-x-shiki__selector select{border:none;outline:none}.ce-editorjs-x-shiki__span{position:relative;z-index:0;padding:20px 20px 20px 55px;margin:0;white-space:pre;font-size:13px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__span code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__textarea{all:unset;white-space:pre;background-color:transparent;position:absolute;padding:20px 20px 20px 55px;inset:0;color:transparent;z-index:0;font-size:13px;caret-color:#999;resize:none;border:none;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.ce-editorjs-x-shiki__textarea::-moz-selection{background-color:#083ca9;color:#fff}.ce-editorjs-x-shiki__textarea::selection{background-color:#083ca9;color:#fff}.ce-editorjs-x-shiki__copy{width:24px;height:24px;cursor:pointer;position:relative;margin-right:0}.ce-editorjs-x-shiki__copy_tip{font-size:12px;width:60px;margin-left:-20px;background-color:#0c0c0c;color:#ececec;text-align:center;border-radius:6px;padding:5px 10px;position:absolute;z-index:1;top:125%;-webkit-transition:opacity .3s;transition:opacity .3s;visibility:hidden;opacity:0}.ce-editorjs-x-shiki__copy_tip:after{content:"";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #0c0c0c transparent}.ce-editorjs-x-shiki__copy_tip.visible{visibility:visible;opacity:1}.ce-editorjs-x-shiki__span.shiki .line:before{content:attr(data-line);width:40px;display:inline-block;text-align:right;color:#888;position:absolute;left:0}.ce-editorjs-x-shiki__code ::-webkit-scrollbar{width:8px;height:8px}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-track{background:#22272e;border-radius:1px}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-thumb{background:silver;border-radius:10px;border:2px solid #22272e}.ce-editorjs-x-shiki__code ::-webkit-scrollbar-thumb:hover{background:#555}.ce-block--selected .ce-editorjs-x-shiki{outline:2px solid #4299e1}.ce-block--selected .ce-editorjs-x-shiki,.ce-block--selected .ce-editorjs-x-shiki__selector-language,.ce-block--selected .ce-editorjs-x-shiki__span{background-color:#e1f2ff!important}.cdx-quote{overflow:hidden;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;word-wrap:break-word;word-break:break-all}.cdx-quote blockquote{margin:0}.cdx-block-quote{border:solid #acacac;border-width:0 0 0 3px;-webkit-box-shadow:none;box-shadow:none;color:#666;line-height:1.6em;padding:1px 0 0 12px}.ce-delimiter__line__wrapper{height:24px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ce-delimiter__line{-webkit-box-flex:1;-ms-flex:1;flex:1;height:2px;background-color:#eff0f1}.cdx-list{margin:0;padding:0;outline:none;display:grid;counter-reset:item;grid-gap:var(--spacing-s);padding:var(--spacing-xs);--spacing-s: 8px;--spacing-xs: 6px;--list-counter-type: numeric;--radius-border: 5px;--checkbox-background: #fff;--color-border: #C9C9C9;--color-bg-checked: #369FFF;--line-height: 1.45em;--color-bg-checked-hover: #0059AB;--color-tick: #fff;--size-checkbox: 1.2em}.cdx-list ol{padding-left:0}.cdx-list__item{line-height:var(--line-height);display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;grid-template-areas:"checkbox content" ". child"}.cdx-list__item-children{display:grid;grid-area:child;grid-gap:var(--spacing-s);padding-top:var(--spacing-s)}.cdx-list__item [contenteditable]{outline:none}.cdx-list__item-content{word-break:break-word;white-space:pre-wrap;grid-area:content;padding-left:var(--spacing-s)}.cdx-list__item:before{counter-increment:item;white-space:nowrap}.cdx-list-ordered .cdx-list__item:before{content:counters(item,".",var(--list-counter-type)) "."}.cdx-list-ordered{counter-reset:item}.cdx-list-unordered{padding-left:0}.cdx-list-unordered .cdx-list__item:before{content:"•"}.cdx-list-checklist .cdx-list__item:before{content:""}.cdx-list__settings .cdx-settings-button{width:50%}.cdx-list__checkbox{padding-top:calc((var(--line-height) - var(--size-checkbox)) / 2);grid-area:checkbox;width:var(--size-checkbox);height:var(--size-checkbox);display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer}.cdx-list__checkbox svg{opacity:0;height:var(--size-checkbox);width:var(--size-checkbox);left:-1px;top:-1px;position:absolute}@media (hover: hover){.cdx-list__checkbox:not(.cdx-list__checkbox--no-hover):hover .cdx-list__checkbox-check svg{opacity:1}}.cdx-list__checkbox--checked{line-height:var(--line-height)}@media (hover: hover){.cdx-list__checkbox--checked:not(.cdx-list__checkbox--checked--no-hover):hover .cdx-checklist__checkbox-check{background:var(--color-bg-checked-hover);border-color:var(--color-bg-checked-hover)}}.cdx-list__checkbox--checked .cdx-list__checkbox-check{background:var(--color-bg-checked);border-color:var(--color-bg-checked)}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg{opacity:1}.cdx-list__checkbox--checked .cdx-list__checkbox-check svg path{stroke:var(--color-tick)}.cdx-list__checkbox--checked .cdx-list__checkbox-check:before{opacity:0;visibility:visible;-webkit-transform:scale(2.5);transform:scale(2.5)}.cdx-list__checkbox-check{cursor:pointer;display:inline-block;position:relative;margin:0 auto;width:var(--size-checkbox);height:var(--size-checkbox);-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:var(--radius-border);border:1px solid var(--color-border);background:var(--checkbox-background)}.cdx-list__checkbox-check:before{content:"";position:absolute;inset:0;border-radius:100%;background-color:var(--color-bg-checked);visibility:hidden;pointer-events:none;-webkit-transform:scale(1);transform:scale(1);-webkit-transition:opacity .4s,-webkit-transform .4s ease-out;transition:opacity .4s,-webkit-transform .4s ease-out;transition:transform .4s ease-out,opacity .4s;transition:transform .4s ease-out,opacity .4s,-webkit-transform .4s ease-out}.cdx-list__checkbox-check--disabled{pointer-events:none}.cdx-list-start-with-field{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;overflow:hidden;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cdx-list-start-with-field--invalid{background:#ffeced;border:1px solid #E13F3F}.cdx-list-start-with-field:hover{background-color:#f8f8f8}.cdx-list-start-with-field--invalid .cdx-list-start-with-field__input{color:#e13f3f}.cdx-list-start-with-field__startlabel{width:70px;font-size:14px}.cdx-list-start-with-field__input-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden}.cdx-list-start-with-field__input{font-size:14px;outline:none;font-weight:500;font-family:inherit;border:0;background:transparent;margin:0;line-height:22px;-webkit-box-flex:1;-ms-flex:1;flex:1;border:1px solid rgba(226,226,229,1);border-radius:6px;padding:0 10px;width:50px;text-align:center}.cdx-list-start-with-field__input::-webkit-input-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input::-moz-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input:-ms-input-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input::-ms-input-placeholder{color:var(--grayText);font-weight:500}.cdx-list-start-with-field__input::placeholder{color:var(--grayText);font-weight:500}.cdx-alert{position:relative;padding:10px;border-radius:5px;margin-bottom:10px;margin-top:10px}.cdx-alert-primary{background-color:#ebf8ff;border:1px solid #4299e1;color:#2b6cb0}.cdx-alert-secondary{background-color:#f7fafc;border:1px solid #cbd5e0;color:#222731}.cdx-alert-info{background-color:#e6fdff;border:1px solid #4cd4ce;color:#00727c}.cdx-alert-success{background-color:#f0fff4;border:1px solid #68d391;color:#2f855a}.cdx-alert-warning{background-color:#fffaf0;border:1px solid #ed8936;color:#c05621}.cdx-alert-danger{background-color:#fff5f5;border:1px solid #fc8181;color:#c53030}.cdx-alert-light{background-color:#fff;border:1px solid #edf2f7;color:#1a202c}.cdx-alert-dark{background-color:#2d3748;border:1px solid #1a202c;color:#d3d3d3}.cdx-alert-align-left{text-align:left}.cdx-alert-align-center{text-align:center}.cdx-alert-align-right{text-align:right}.cdx-alert__message{outline:none}.cdx-alert [contentEditable=true][data-placeholder]:before{position:absolute;content:attr(data-placeholder);color:#707684;font-weight:400;opacity:0}.cdx-alert [contentEditable=true][data-placeholder]:empty:before{opacity:1}.cdx-alert [contentEditable=true][data-placeholder]:empty:focus:before{opacity:0}.ce-popover__item[data-item-name=alert-primary] .ce-popover__item-icon svg #background{fill:#ebf8ff;stroke:#4299e1}.ce-popover__item[data-item-name=alert-primary] .ce-popover__item-icon svg #content{fill:#2b6cb0}.ce-popover__item[data-item-name=alert-secondary] .ce-popover__item-icon svg #background{fill:#f7fafc;stroke:#cbd5e0}.ce-popover__item[data-item-name=alert-secondary] .ce-popover__item-icon svg #content{fill:#222731}.ce-popover__item[data-item-name=alert-info] .ce-popover__item-icon svg #background{fill:#e6fdff;stroke:#4cd4ce}.ce-popover__item[data-item-name=alert-info] .ce-popover__item-icon svg #content{fill:#00727c}.ce-popover__item[data-item-name=alert-success] .ce-popover__item-icon svg #background{fill:#f0fff4;stroke:#68d391}.ce-popover__item[data-item-name=alert-success] .ce-popover__item-icon svg #content{fill:#2f855a}.ce-popover__item[data-item-name=alert-warning] .ce-popover__item-icon svg #background{fill:#fffaf0;stroke:#ed8936}.ce-popover__item[data-item-name=alert-warning] .ce-popover__item-icon svg #content{fill:#c05621}.ce-popover__item[data-item-name=alert-danger] .ce-popover__item-icon svg #background{fill:#fff5f5;stroke:#fc8181}.ce-popover__item[data-item-name=alert-danger] .ce-popover__item-icon svg #content{fill:#c53030}.ce-popover__item[data-item-name=alert-light] .ce-popover__item-icon svg #background{fill:#fff;stroke:#edf2f7}.ce-popover__item[data-item-name=alert-light] .ce-popover__item-icon svg #content{fill:#1a202c}.ce-popover__item[data-item-name=alert-dark] .ce-popover__item-icon svg #background{fill:#2d3748;stroke:#1a202c}.ce-popover__item[data-item-name=alert-dark] .ce-popover__item-icon svg #content{fill:#d3d3d3}.cdx-alert_setting__icon_wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:10px}.cdx-alert_setting__icon_wrapper_align{margin-top:10px}.cdx-alert_setting__icon{display:inline-block;width:24px;height:24px;text-align:center;line-height:24px;cursor:pointer}.cdx-alert_setting__icon_active{opacity:.3}.ce-block--selected .cdx-alert{outline:2px solid #4299e1}.ce-popover-indent-item{cursor:default!important}.ce-popover-indent-item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:3px}.ce-popover-indent-item[version^="2.26"]{gap:10px}.ce-popover-indent-item:hover{background-color:transparent!important}.ce-popover-indent-item .ce-popover-item__icon{width:26px;height:26px;cursor:pointer;will-change:background-color,color;transition:.3s background-color,.3s color;padding:0;border-width:0px;color:#000;background-color:#fff;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;-webkit-transition:.3s background-color,.3s color;-moz-transition:.3s background-color,.3s color;-ms-transition:.3s background-color,.3s color;-o-transition:.3s background-color,.3s color}.ce-popover-indent-item .ce-popover-item--disabled{color:#707684;opacity:.3;cursor:default}.ce-popover-indent-item .ce-popover-item__icon:focus{outline:none}.ce-popover-indent-item[version^="2.26"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.27"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.28"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.29"]:hover .ce-popover-item__icon,.ce-popover-indent-item[version^="2.26"] .ce-popover-item__icon,.ce-popover-indent-item[version^="2.27"] .ce-popover-item__icon,.ce-popover-indent-item[version^="2.28"] .ce-popover-item__icon,.ce-popover-indent-item[version^="2.29"] .ce-popover-item__icon{box-shadow:0 0 0 1px #c9c9cc7a!important;-webkit-box-shadow:0 0 0 1px rgba(201,201,204,.48)!important}.ce-popover-indent-item[version^="2.26"] .ce-popover-item__icon:hover,.ce-popover-indent-item[version^="2.27"] .ce-popover-item__icon:hover,.ce-popover-indent-item[version^="2.28"] .ce-popover-item__icon:hover,.ce-popover-indent-item[version^="2.29"] .ce-popover-item__icon:hover{background-color:#eff2f5}.ce-highlight-indent{display:inline-block;height:1.6em;top:50%;position:absolute;transform:translateY(-50%);-webkit-transform:translate(0px,-50%);-moz-transform:translate(0px,-50%);-ms-transform:translate(0px,-50%);-o-transform:translate(0px,-50%)}.ce-popover-indent-item[version^="2.3"] .ce-popover-item__title{margin-left:4px}.tc-wrap{--color-background: #f9f9fb;--color-text-secondary: #7b7e89;--color-border: #e8e8eb;--cell-size: 34px;--toolbox-icon-size: 18px;--toolbox-padding: 6px;--toolbox-aiming-field-size: calc(var(--toolbox-icon-size) + var(--toolbox-padding)*2);--col-width: 100px 100px 100px;position:relative;height:100%;margin-top:var(--toolbox-icon-size);-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-grid;z-index:0}.tc-wrap svg{vertical-align:top}@media print{.tc-wrap{border-left-color:var(--color-border);border-left-style:solid;border-left-width:1px}}@media print{.tc-wrap .tc-row:after{display:none}}.tc-table{position:relative;width:100%;height:100%;display:grid;font-size:14px;border-top:1px solid var(--color-border);border-left:1px solid var(--color-border);line-height:1.4;overflow-x:auto}.tc-table:after{width:calc(var(--cell-size));height:100%;left:calc(var(--cell-size)*-1);top:0}.tc-table:after,.tc-table:before{position:absolute;content:""}.tc-table:before{width:100%;height:var(--toolbox-aiming-field-size);top:calc(var(--toolbox-aiming-field-size)*-1);left:0}.tc-table--heading .tc-row:first-child{font-weight:600;border-bottom:2px solid var(--color-border);position:sticky;top:0;z-index:2;background:var(--color-background)}.tc-table--heading .tc-row:first-child [contenteditable]:empty:before{content:attr(heading);color:var(--color-text-secondary)}.tc-table--heading .tc-row:first-child:after{bottom:-2px;border-bottom:2px solid var(--color-border)}.tc-add-column,.tc-add-row{display:-webkit-box;display:-ms-flexbox;display:flex;color:var(--color-text-secondary)}@media print{.tc-add{display:none}}.tc-add-column{display:grid;border-top:1px solid var(--color-border);grid-auto-rows:var(--cell-size);-webkit-box-align:center;-ms-flex-align:center;align-items:center;justify-items:center}.tc-add-column svg{padding:5px;position:sticky;top:0;background-color:var(--color-background)}.tc-add-column--disabled{visibility:hidden}@media print{.tc-add-column{display:none}}.tc-add-row{height:var(--cell-size);-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:4px;position:relative}.tc-add-row--disabled{display:none}.tc-add-row:before{content:"";position:absolute;right:calc(var(--cell-size)*-1);width:var(--cell-size);height:100%}@media print{.tc-add-row{display:none}}.tc-add-column,.tc-add-row{-webkit-transition:0s;transition:0s;cursor:pointer;will-change:background-color}.tc-add-column:hover,.tc-add-row:hover{-webkit-transition:background-color .1s ease;transition:background-color .1s ease;background-color:var(--color-background)}.tc-add-row{margin-top:1px}.tc-add-row:hover:before{-webkit-transition:.1s;transition:.1s;background-color:var(--color-background)}.tc-row{display:grid;grid-template-columns:var(--col-width);position:relative;border-bottom:1px solid var(--color-border)}.tc-row--selected{background:var(--color-background)}.tc-row--selected:after{background:var(--color-background)}.tc-cell{border-right:1px solid var(--color-border);padding:6px 12px;overflow:hidden;outline:none;line-break:normal}.tc-cell--selected{background:var(--color-background)}.tc-wrap--readonly .tc-row:after{display:none}.tc-toolbox{--toolbox-padding: 6px;--popover-margin: 30px;--toggler-click-zone-size: 30px;--toggler-dots-color: #7b7e89;--toggler-dots-color-hovered: #1d202b;position:absolute;cursor:pointer;z-index:1;opacity:0;-webkit-transition:opacity .1s;transition:opacity .1s;will-change:left,opacity}.tc-toolbox--column{top:calc(var(--toggler-click-zone-size)*-1);-webkit-transform:translate(calc(var(--toggler-click-zone-size)*-1/2));transform:translate(calc(var(--toggler-click-zone-size)*-1/2));will-change:left,opacity}.tc-toolbox--row{left:calc(var(--popover-margin)*-1);-webkit-transform:translateY(calc(var(--toggler-click-zone-size)*-1/2));transform:translateY(calc(var(--toggler-click-zone-size)*-1/2));margin-top:-1px;will-change:top,opacity}.tc-toolbox--showed{opacity:1}.tc-toolbox .tc-popover{position:absolute;top:0;left:var(--popover-margin)}.tc-toolbox__toggler{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:var(--toggler-click-zone-size);height:var(--toggler-click-zone-size);color:var(--toggler-dots-color);opacity:0;-webkit-transition:opacity .15s ease;transition:opacity .15s ease;will-change:opacity}.tc-toolbox__toggler:hover{color:var(--toggler-dots-color-hovered)}.tc-toolbox__toggler svg{fill:currentColor}.tc-wrap:hover .tc-toolbox__toggler{opacity:1}.tc-settings .cdx-settings-button{width:50%;margin:0}.tc-popover{--color-border: #eaeaea;--color-background: #fff;--color-background-hover: rgba(232, 232, 235, .49);--color-background-confirm: #e24a4a;--color-background-confirm-hover: #d54040;--color-text-confirm: #fff;background:var(--color-background);border:1px solid var(--color-border);-webkit-box-shadow:0 3px 15px -3px rgba(13,20,33,.12941);box-shadow:0 3px 15px -3px #0d142121;border-radius:6px;padding:6px;display:none;will-change:opacity,transform}.tc-popover--opened{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-animation:menuShowing .1s cubic-bezier(.215,.61,.355,1) forwards;animation:menuShowing .1s cubic-bezier(.215,.61,.355,1) forwards}.tc-popover__item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:2px 14px 2px 2px;border-radius:5px;cursor:pointer;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tc-popover__item:hover{background:var(--color-background-hover)}.tc-popover__item:not(:last-of-type){margin-bottom:2px}.tc-popover__item-icon{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;width:26px;height:26px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background:var(--color-background);border-radius:5px;border:1px solid var(--color-border);margin-right:8px}.tc-popover__item-label{line-height:22px;font-size:14px;font-weight:500}.tc-popover__item--confirm{background:var(--color-background-confirm);color:var(--color-text-confirm)}.tc-popover__item--confirm:hover{background-color:var(--color-background-confirm-hover)}.tc-popover__item--confirm .tc-popover__item-icon{background:var(--color-background-confirm);border-color:#0000001a}.tc-popover__item--confirm .tc-popover__item-icon svg{-webkit-transition:-webkit-transform .2s ease-in;transition:-webkit-transform .2s ease-in;transition:transform .2s ease-in;transition:transform .2s ease-in,-webkit-transform .2s ease-in;-webkit-transform:rotate(90deg) scale(1.2);transform:rotate(90deg) scale(1.2)}.tc-popover__item--hidden{display:none}@-webkit-keyframes menuShowing{0%{opacity:0;-webkit-transform:translateY(-8px) scale(.9);transform:translateY(-8px) scale(.9)}70%{opacity:1;-webkit-transform:translateY(2px);transform:translateY(2px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes menuShowing{0%{opacity:0;-webkit-transform:translateY(-8px) scale(.9);transform:translateY(-8px) scale(.9)}70%{opacity:1;-webkit-transform:translateY(2px);transform:translateY(2px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}.cell-resizable{cursor:col-resize}.image-tool{--bg-color: #cdd1e0;--front-color: #388ae5;--border-color: #e8e8eb;display:inline-block}.image-tool__image{border-radius:3px;overflow:hidden;margin-bottom:10px;padding-bottom:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.image-tool__image-picture{max-width:100%;vertical-align:bottom;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}.image-tool__image-preloader{width:150px;height:150px;border-radius:50%;background-size:cover;margin:auto;position:relative;background-color:var(--bg-color);background-position:center center}.image-tool__image-preloader:after{content:"";position:absolute;z-index:3;width:60px;height:60px;border-radius:50%;border:2px solid var(--bg-color);border-top-color:var(--front-color);left:50%;top:50%;margin-top:-30px;margin-left:-30px;-webkit-animation:image-preloader-spin 2s infinite linear;animation:image-preloader-spin 2s infinite linear;-webkit-box-sizing:border-box;box-sizing:border-box}.image-tool__caption{visibility:hidden;position:absolute;bottom:0;left:0;margin-bottom:10px}.image-tool__caption[contentEditable=true][data-placeholder]:before{position:absolute!important}.image-tool__caption[contentEditable=true][data-placeholder]:before{content:attr(data-placeholder);color:#707684;font-weight:400;display:none}.image-tool__caption[contentEditable=true][data-placeholder]:empty:before{display:block}.image-tool__caption[contentEditable=true][data-placeholder]:empty:focus:before{display:none}.image-tool--empty .image-tool__image,.image-tool--empty .image-tool__image-preloader{display:none}.image-tool--empty .image-tool__caption,.image-tool--uploading .image-tool__caption{visibility:hidden!important}.image-tool .cdx-button{display:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.image-tool .cdx-button svg{height:auto;margin:0 6px 0 0}.image-tool--filled .cdx-button,.image-tool--filled .image-tool__image-preloader{display:none}.image-tool--uploading{width:100%}.image-tool--uploading .resizable{display:none!important}.image-tool--uploading .image-tool__image{min-height:200px;display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#fff}.image-tool--uploading .image-tool__image-picture,.image-tool--uploading .cdx-button{display:none}.image-tool--withBorder .image-tool__image{border:1px solid var(--border-color)}.image-tool--withBackground .image-tool__image{padding:15px;background:var(--bg-color)}.image-tool--withBackground .image-tool__image-picture{max-width:60%;margin:0 auto}.image-tool--stretched .image-tool__image-picture{width:100%}.image-tool--caption .image-tool__caption{visibility:visible}.image-tool--caption{padding-bottom:50px}@-webkit-keyframes image-preloader-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes image-preloader-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.cdx-image-tool-tune--floatLeft .cdx-block,.cdx-image-tool-tune--center .cdx-block,.cdx-image-tool-tune--floatRight .cdx-block,.cdx-image-tool-tune--floatLeft .image-tool__image,.cdx-image-tool-tune--center .image-tool__image,.cdx-image-tool-tune--floatRight .image-tool__image{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center}:root{--primary: #2492F5;--primary-content: #E9F4FE}.cdx-settings-button--active{background:#e9f4fe;color:#2492f5}.cdx-settings-button:hover{background:#e9f4fe}.cdx-image-tool-tune--center{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@media all and (min-width: 470px){.codex-editor:not(.read-only) .cdx-image-tool-tune--floatLeft.ce-block__content,.codex-editor:not(.read-only) .cdx-image-tool-tune--floatRight.ce-block__content{min-height:20px}.cdx-image-tool-tune--floatLeft.ce-block__content .image-tool__image,.cdx-image-tool-tune--floatRight.ce-block__content .image-tool__image{margin-top:40px}.cdx-image-tool-tune--floatLeft.ce-block__content .image-tool__image{margin-left:20px}.cdx-image-tool-tune--floatRight.ce-block__content .image-tool__image{margin-right:20px}.cdx-image-tool-tune--floatLeft.ce-block__content .cdx-input,.cdx-image-tool-tune--floatRight.ce-block__content .cdx-input{width:calc(100% - 20px)}.cdx-image-tool-tune--floatLeft.ce-block__content .cdx-input{margin-left:20px}.cdx-image-tool-tune--floatRight.ce-block__content .cdx-input{margin-right:20px}.cdx-image-tool-tune--floatLeft .cdx-block{float:left;margin-right:10px}.cdx-image-tool-tune--floatRight .cdx-block{float:right;margin-left:10px}.cdx-image-tool-tune--sizeSmall .cdx-block{max-width:25%!important}.cdx-image-tool-tune--sizeMiddle .cdx-block{max-width:50%!important}.cdx-image-tool-tune--sizeLarge .cdx-block{max-width:75%!important}}.cdx-image-tool-tune--sizeLarge img,.cdx-image-tool-tune--sizeSmall img,.cdx-image-tool-tune--sizeMiddle img{-o-object-fit:cover;object-fit:cover;max-width:100%}.codex-editor.read-only .cdx-input.image-tool__caption:empty,.read-only>.codex-editor .cdx-input.image-tool__caption:empty{display:none}.cdx-image-tool-tune--resize .cdx-block{position:relative;overflow:visible}.cdx-image-tool-tune--resize .cdx-block .resizable{display:none}.cdx-image-tool-tune--resize .image-tool__image-picture{width:100%!important}.cdx-image-tool-tune--resize .cdx-block:hover .resizable{display:block}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer{-webkit-box-sizing:border-box;box-sizing:border-box;width:14px;height:14px;border-radius:50%;background:#e9f4fe;border:3px solid #2492F5;position:absolute}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.top-left{left:-8px;top:2px;cursor:nwse-resize}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.top-right{right:-8px;top:1px;cursor:nesw-resize}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.bottom-left{left:-9px;bottom:10px;cursor:nesw-resize}.cdx-image-tool-tune--resize .cdx-block .resizable .resizers .resizer.bottom-right{right:-9px;bottom:10px;cursor:nwse-resize}.cdx-image-tool-tune--crop:hover,.cdx-image-tool-tune--crop.isCropping,.cdx-image-tool-tune--resize:hover{z-index:2}.cdx-image-tool-tune--crop .image-tool__image{position:relative}.cdx-image-tool-tune--crop .isCropping .image-tool__image{min-height:600px;min-width:100%}.cdx-image-tool-tune--crop .image-tool__image .crop-btn,.cdx-image-tool-tune--crop .image-tool__image .crop-save{position:absolute;top:0;left:0;padding:7px;background:#2492f5;color:#e9f4fe;text-align:center;line-height:20px;cursor:pointer;display:none}.cdx-image-tool-tune--crop .image-tool__image:hover .crop-btn,.cdx-image-tool-tune--crop .image-tool__image:hover .crop-save{display:block}.cdx-image-tool-tune--crop .image-tool__image img.isCropped{position:absolute;min-width:0;min-width:initial;max-width:none;max-width:initial;min-height:0;min-height:initial;max-height:none;max-height:initial}.cdx-image-tool-tune--crop .cdx-block.image-tool.isCropping{min-width:0!important;min-width:initial!important;max-width:none!important;max-width:initial!important;min-height:0!important;min-height:initial!important;max-height:none!important;max-height:initial!important}.image-tool__caption{background-color:#fff}.image-tool{position:relative;z-index:1}.cdx-image-tool-tune{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;gap:4px;width:100%}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
+ import { defineComponent as xn, inject as Rn, onMounted as Nn, toRaw as Mt, onUnmounted as An, watch as _n, createElementBlock as Mn, openBlock as On } from "vue";
3
+ import In from "@ebl-vue/editorjs";
4
+ import { isCaretAtStartOfInput as yn, focus as Hn, getCaretNodeAndOffset as Bn } from "@editorjs/caret";
5
+ import { bundledLanguagesInfo as Dn, codeToHtml as Pn } from "shiki";
5
6
  import * as Tt from "@editorjs/dom";
6
7
  import { make as Re, isEmpty as $t } from "@editorjs/dom";
7
- import { focus as Bn, isCaretAtStartOfInput as Dn, getCaretNodeAndOffset as Pn } from "@editorjs/caret";
8
8
  import Et from "axios";
9
9
  const Kt = Symbol("INSTALLED_KEY"), zn = (_, e) => (_.install = (t) => {
10
10
  for (const n of [_, ...Object.values({})]) t.component(n.name, n);
@@ -34,7 +34,7 @@ function Wn() {
34
34
  function H(p) {
35
35
  return g(p, "body") ? p.body : p.getElementsByTagName("body")[0];
36
36
  }
37
- var B, X, ie = {}, de = typeof window != e && typeof document != e, fe = { isHostMethod: c, isHostObject: g, isHostProperty: C, areHostMethods: b, areHostObjects: M, areHostProperties: A, isTextRange: R, getBody: H, forEach: [].forEach ? function(p, x) {
37
+ var B, G, ie = {}, de = typeof window != e && typeof document != e, fe = { isHostMethod: c, isHostObject: g, isHostProperty: C, areHostMethods: b, areHostObjects: M, areHostProperties: A, isTextRange: R, getBody: H, forEach: [].forEach ? function(p, x) {
38
38
  p.forEach(x);
39
39
  } : function(p, x) {
40
40
  for (var L = 0, F = p.length; L < F; ++L) x(p[L], L);
@@ -74,11 +74,11 @@ function Wn() {
74
74
  for (var J = [], ee = 0, K = F.length; ee < K; ++ee) J[ee] = F[ee];
75
75
  return J;
76
76
  }), fe.toArray = p;
77
- }(), de && (c(document, "addEventListener") ? X = function(p, x, L) {
77
+ }(), de && (c(document, "addEventListener") ? G = function(p, x, L) {
78
78
  p.addEventListener(x, L, !1);
79
- } : c(document, "attachEvent") ? X = function(p, x, L) {
79
+ } : c(document, "attachEvent") ? G = function(p, x, L) {
80
80
  p.attachEvent("on" + x, L);
81
- } : Ae("Document does not have required addEventListener or attachEvent method"), fe.addListener = X);
81
+ } : Ae("Document does not have required addEventListener or attachEvent method"), fe.addListener = G);
82
82
  var Be = [];
83
83
  function Ye(p) {
84
84
  return p.message || p.description || String(p);
@@ -431,7 +431,7 @@ function Wn() {
431
431
  return null;
432
432
  };
433
433
  }
434
- var Ie = Ne([9, 11]), Ge = Ne([5, 6, 10, 12]), Pe = Ne([6, 10, 12]), it = Ne([1]);
434
+ var Ie = Ne([9, 11]), Xe = Ne([5, 6, 10, 12]), Pe = Ne([6, 10, 12]), it = Ne([1]);
435
435
  function be(o, f) {
436
436
  if (Pe(o, f)) throw new ee("INVALID_NODE_TYPE_ERR");
437
437
  }
@@ -445,16 +445,16 @@ function Wn() {
445
445
  if (Ie(o, !0) !== Ie(f, !0)) throw new ee("WRONG_DOCUMENT_ERR");
446
446
  }
447
447
  function ze(o) {
448
- if (Ge(o, !0)) throw new ee("NO_MODIFICATION_ALLOWED_ERR");
448
+ if (Xe(o, !0)) throw new ee("NO_MODIFICATION_ALLOWED_ERR");
449
449
  }
450
450
  function ft(o, f) {
451
451
  if (!o) throw new ee(f);
452
452
  }
453
- function Xe(o, f) {
453
+ function Ge(o, f) {
454
454
  return f <= (K(o) ? o.length : o.childNodes.length);
455
455
  }
456
456
  function mt(o) {
457
- return !!o.startContainer && !!o.endContainer && !(P && (L.isBrokenNode(o.startContainer) || L.isBrokenNode(o.endContainer))) && v(o.startContainer) == v(o.endContainer) && Xe(o.startContainer, o.startOffset) && Xe(o.endContainer, o.endOffset);
457
+ return !!o.startContainer && !!o.endContainer && !(P && (L.isBrokenNode(o.startContainer) || L.isBrokenNode(o.endContainer))) && v(o.startContainer) == v(o.endContainer) && Ge(o.startContainer, o.startOffset) && Ge(o.endContainer, o.endOffset);
458
458
  }
459
459
  function pe(o) {
460
460
  if (!mt(o)) throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: (" + o.inspect() + ")");
@@ -502,19 +502,19 @@ function Wn() {
502
502
  }
503
503
  function kt(o, f) {
504
504
  function i(w, N) {
505
- return function(G) {
506
- Ee(G, ge), Ee(v(G), Me);
507
- var j = (w ? Y : Z)(G);
505
+ return function(X) {
506
+ Ee(X, ge), Ee(v(X), Me);
507
+ var j = (w ? Y : Z)(X);
508
508
  (N ? l : m)(this, j.node, j.offset);
509
509
  };
510
510
  }
511
- function l(w, N, G) {
511
+ function l(w, N, X) {
512
512
  var j = w.endContainer, oe = w.endOffset;
513
- N === w.startContainer && G === w.startOffset || (v(N) == v(j) && u(N, G, j, oe) != 1 || (j = N, oe = G), f(w, N, G, j, oe));
513
+ N === w.startContainer && X === w.startOffset || (v(N) == v(j) && u(N, X, j, oe) != 1 || (j = N, oe = X), f(w, N, X, j, oe));
514
514
  }
515
- function m(w, N, G) {
515
+ function m(w, N, X) {
516
516
  var j = w.startContainer, oe = w.startOffset;
517
- N === w.endContainer && G === w.endOffset || (v(N) == v(j) && u(N, G, j, oe) != -1 || (j = N, oe = G), f(w, j, oe, N, G));
517
+ N === w.endContainer && X === w.endOffset || (v(N) == v(j) && u(N, X, j, oe) != -1 || (j = N, oe = X), f(w, j, oe, N, X));
518
518
  }
519
519
  var k = function() {
520
520
  };
@@ -523,7 +523,7 @@ function Wn() {
523
523
  }, setEnd: function(w, N) {
524
524
  be(w, !0), je(w, N), m(this, w, N);
525
525
  }, setStartAndEnd: function() {
526
- var w = arguments, N = w[0], G = w[1], j = N, oe = G;
526
+ var w = arguments, N = w[0], X = w[1], j = N, oe = X;
527
527
  switch (w.length) {
528
528
  case 3:
529
529
  oe = w[2];
@@ -531,17 +531,17 @@ function Wn() {
531
531
  case 4:
532
532
  j = w[2], oe = w[3];
533
533
  }
534
- be(N, !0), je(N, G), be(j, !0), je(j, oe), f(this, N, G, j, oe);
535
- }, setBoundary: function(w, N, G) {
536
- this["set" + (G ? "Start" : "End")](w, N);
534
+ be(N, !0), je(N, X), be(j, !0), je(j, oe), f(this, N, X, j, oe);
535
+ }, setBoundary: function(w, N, X) {
536
+ this["set" + (X ? "Start" : "End")](w, N);
537
537
  }, setStartBefore: i(!0, !0), setStartAfter: i(!1, !0), setEndBefore: i(!0, !1), setEndAfter: i(!1, !1), collapse: function(w) {
538
538
  pe(this), w ? f(this, this.startContainer, this.startOffset, this.startContainer, this.startOffset) : f(this, this.endContainer, this.endOffset, this.endContainer, this.endOffset);
539
539
  }, selectNodeContents: function(w) {
540
540
  be(w, !0), f(this, w, 0, w, O(w));
541
541
  }, selectNode: function(w) {
542
542
  be(w, !1), Ee(w, ge);
543
- var N = Y(w), G = Z(w);
544
- f(this, N.node, N.offset, G.node, G.offset);
543
+ var N = Y(w), X = Z(w);
544
+ f(this, N.node, N.offset, X.node, X.offset);
545
545
  }, extractContents: Qe(D, f), deleteContents: Qe(S, f), canSurroundContents: function() {
546
546
  pe(this), ze(this.startContainer), ze(this.endContainer);
547
547
  var w = new ne(this, !0), N = w._first && I(w._first, this) || w._last && I(w._last, this);
@@ -552,18 +552,18 @@ function Wn() {
552
552
  dt(this, w);
553
553
  }, normalizeBoundaries: function() {
554
554
  pe(this);
555
- var w, N = this.startContainer, G = this.startOffset, j = this.endContainer, oe = this.endOffset, Je = function(Le) {
555
+ var w, N = this.startContainer, X = this.startOffset, j = this.endContainer, oe = this.endOffset, Je = function(Le) {
556
556
  var We = Le.nextSibling;
557
557
  We && We.nodeType == Le.nodeType && (j = Le, oe = Le.length, Le.appendData(We.data), W(We));
558
558
  }, ht = function(Le) {
559
559
  var We = Le.previousSibling;
560
560
  if (We && We.nodeType == Le.nodeType) {
561
561
  N = Le;
562
- var En = Le.length;
563
- if (G = We.length, Le.insertData(0, We.data), W(We), N == j) oe += G, j = N;
562
+ var Ln = Le.length;
563
+ if (X = We.length, Le.insertData(0, We.data), W(We), N == j) oe += X, j = N;
564
564
  else if (j == Le.parentNode) {
565
565
  var Vt = ue(Le);
566
- oe == Vt ? (j = Le, oe = En) : oe > Vt && oe--;
566
+ oe == Vt ? (j = Le, oe = Ln) : oe > Vt && oe--;
567
567
  }
568
568
  }
569
569
  }, Nt = !0;
@@ -576,13 +576,13 @@ function Wn() {
576
576
  Nt = !this.collapsed;
577
577
  }
578
578
  if (Nt) {
579
- if (K(N)) G == 0 ? ht(N) : G == N.length && (w = N.nextSibling) && w.nodeType == N.nodeType && (j == w && (j = N, oe += N.length), N.appendData(w.data), W(w));
580
- else if (G < N.childNodes.length) {
581
- var _t = N.childNodes[G];
579
+ if (K(N)) X == 0 ? ht(N) : X == N.length && (w = N.nextSibling) && w.nodeType == N.nodeType && (j == w && (j = N, oe += N.length), N.appendData(w.data), W(w));
580
+ else if (X < N.childNodes.length) {
581
+ var _t = N.childNodes[X];
582
582
  _t && K(_t) && ht(_t);
583
583
  }
584
- } else N = j, G = oe;
585
- f(this, N, G, j, oe);
584
+ } else N = j, X = oe;
585
+ f(this, N, X, j, oe);
586
586
  }, collapseToPoint: function(w, N) {
587
587
  be(w, !0), je(w, N), this.setStartAndEnd(w, N);
588
588
  }, parentElement: function() {
@@ -688,16 +688,16 @@ function Wn() {
688
688
  return pe(this), function(i, l, m) {
689
689
  var k, w = !(!l || !l.length), N = !!m;
690
690
  w && (k = new RegExp("^(" + l.join("|") + ")$"));
691
- var G = [];
691
+ var X = [];
692
692
  return d(new ne(i, !1), function(j) {
693
693
  if ((!w || k.test(j.nodeType)) && (!N || m(j))) {
694
694
  var oe = i.startContainer;
695
695
  if (j != oe || !K(oe) || i.startOffset != oe.length) {
696
696
  var Je = i.endContainer;
697
- j == Je && K(Je) && i.endOffset == 0 || G.push(j);
697
+ j == Je && K(Je) && i.endOffset == 0 || X.push(j);
698
698
  }
699
699
  }
700
- }), G;
700
+ }), X;
701
701
  }(this, o, f);
702
702
  }, getDocument: function() {
703
703
  return U(this);
@@ -713,7 +713,7 @@ function Wn() {
713
713
  }, moveToBookmark: function(o) {
714
714
  var f = o.containerNode, i = 0;
715
715
  this.setStart(f, 0), this.collapse(!0);
716
- for (var l, m, k, w, N = [f], G = !1, j = !1; !j && (l = N.pop()); ) if (l.nodeType == 3) m = i + l.length, !G && o.start >= i && o.start <= m && (this.setStart(l, o.start - i), G = !0), G && o.end >= i && o.end <= m && (this.setEnd(l, o.end - i), j = !0), i = m;
716
+ for (var l, m, k, w, N = [f], X = !1, j = !1; !j && (l = N.pop()); ) if (l.nodeType == 3) m = i + l.length, !X && o.start >= i && o.start <= m && (this.setStart(l, o.start - i), X = !0), X && o.end >= i && o.end <= m && (this.setEnd(l, o.end - i), j = !0), i = m;
717
717
  else for (k = (w = l.childNodes).length; k--; ) N.push(w[k]);
718
718
  }, getName: function() {
719
719
  return "DomRange";
@@ -841,8 +841,8 @@ function Wn() {
841
841
  if ($ = te.nextSibling, he == -1 && $ && u($)) {
842
842
  var Ne;
843
843
  if (Y.setEndPoint(W ? "EndToStart" : "EndToEnd", v), /[\r\n]/.test($.data)) {
844
- var Ie = Y.duplicate(), Ge = Ie.text.replace(/\r\n/g, "\r").length;
845
- for (Ne = Ie.moveStart("character", Ge); (he = Ie.compareEndPoints("StartToEnd", Ie)) == -1; ) Ne++, Ie.moveStart("character", 1);
844
+ var Ie = Y.duplicate(), Xe = Ie.text.replace(/\r\n/g, "\r").length;
845
+ for (Ne = Ie.moveStart("character", Xe); (he = Ie.compareEndPoints("StartToEnd", Ie)) == -1; ) Ne++, Ie.moveStart("character", 1);
846
846
  } else Ne = Y.text.length;
847
847
  D = new K($, Ne);
848
848
  } else d = (I || !W) && te.previousSibling, D = (S = (I || W) && te.nextSibling) && u(S) ? new K(S, 0) : d && u(d) ? new K(d, d.data.length) : new K(Z, J.getNodeIndex(te));
@@ -946,7 +946,7 @@ function Wn() {
946
946
  var i = window.getSelection();
947
947
  if (i) {
948
948
  for (var l = i.rangeCount, m = l > 1, k = [], w = Z(i), N = 0; N < l; ++N) k[N] = i.getRangeAt(N);
949
- var G = K.createTestElement(document, "", !1), j = G.appendChild(document.createTextNode("   ")), oe = document.createRange();
949
+ var X = K.createTestElement(document, "", !1), j = X.appendChild(document.createTextNode("   ")), oe = document.createRange();
950
950
  if (oe.setStart(j, 1), oe.collapse(!0), i.removeAllRanges(), i.addRange(oe), we = i.rangeCount == 1, i.removeAllRanges(), !m) {
951
951
  var Je = window.navigator.appVersion.match(/Chrome\/(.*?) /);
952
952
  if (Je && parseInt(Je[1]) >= 36) Ce = !1;
@@ -955,10 +955,10 @@ function Wn() {
955
955
  oe.setStart(j, 0), ht.setEnd(j, 3), ht.setStart(j, 2), i.addRange(oe), i.addRange(ht), Ce = i.rangeCount == 2;
956
956
  }
957
957
  }
958
- for (K.removeNode(G), i.removeAllRanges(), N = 0; N < l; ++N) N == 0 && w ? Ne ? Ne(i, k[N]) : (p.warn("Rangy initialization: original selection was backwards but selection has been restored forwards because the browser does not support Selection.extend"), i.addRange(k[N])) : i.addRange(k[N]);
958
+ for (K.removeNode(X), i.removeAllRanges(), N = 0; N < l; ++N) N == 0 && w ? Ne ? Ne(i, k[N]) : (p.warn("Rangy initialization: original selection was backwards but selection has been restored forwards because the browser does not support Selection.extend"), i.addRange(k[N])) : i.addRange(k[N]);
959
959
  }
960
960
  }(), O.selectionSupportsMultipleRanges = Ce, O.collapsedNonEditableSelectionsSupported = we;
961
- var Ie, Ge, Pe = !1;
961
+ var Ie, Xe, Pe = !1;
962
962
  function it(i, l, m) {
963
963
  var k = m ? "end" : "start", w = m ? "start" : "end";
964
964
  i.anchorNode = l[k + "Container"], i.anchorOffset = l[k + "Offset"], i.focusNode = l[w + "Container"], i.focusOffset = l[w + "Offset"];
@@ -989,7 +989,7 @@ function Wn() {
989
989
  var m = new u(l);
990
990
  i._ranges = [m], it(i, m, !1), i.rangeCount = 1, i.isCollapsed = m.collapsed, Ee(i);
991
991
  }
992
- function Xe(i) {
992
+ function Ge(i) {
993
993
  if (i._ranges.length = 0, i.docSelection.type == "None") be(i);
994
994
  else {
995
995
  var l = i.docSelection.createRange();
@@ -1002,13 +1002,13 @@ function Wn() {
1002
1002
  }
1003
1003
  }
1004
1004
  function mt(i, l) {
1005
- for (var m = i.docSelection.createRange(), k = st(l), w = v(m.item(0)), N = P(w).createControlRange(), G = 0, j = m.length; G < j; ++G) N.add(m.item(G));
1005
+ for (var m = i.docSelection.createRange(), k = st(l), w = v(m.item(0)), N = P(w).createControlRange(), X = 0, j = m.length; X < j; ++X) N.add(m.item(X));
1006
1006
  try {
1007
1007
  N.add(k);
1008
1008
  } catch (oe) {
1009
1009
  throw x.createError("addRange(): Element within the specified Range could not be added to control selection (does it have layout?)");
1010
1010
  }
1011
- N.select(), Xe(i);
1011
+ N.select(), Ge(i);
1012
1012
  }
1013
1013
  function pe(i, l, m) {
1014
1014
  this.nativeSelection = i, this.docSelection = l, this._ranges = [], this.win = m, this.refresh();
@@ -1020,13 +1020,13 @@ function Wn() {
1020
1020
  return i.anchorNode === i.focusNode && i.anchorOffset === i.focusOffset;
1021
1021
  } : function(i) {
1022
1022
  return !!i.rangeCount && i.getRangeAt(i.rangeCount - 1).collapsed;
1023
- }, r(d, "getRangeAt") ? Ge = function(i, l) {
1023
+ }, r(d, "getRangeAt") ? Xe = function(i, l) {
1024
1024
  try {
1025
1025
  return i.getRangeAt(l);
1026
1026
  } catch (m) {
1027
1027
  return null;
1028
1028
  }
1029
- } : $ && (Ge = function(i) {
1029
+ } : $ && (Xe = function(i) {
1030
1030
  var l = v(i.anchorNode), m = p.createRange(l);
1031
1031
  return m.setStartAndEnd(i.anchorNode, i.anchorOffset, i.focusNode, i.focusOffset), m.collapsed !== this.isCollapsed && m.setStartAndEnd(i.focusNode, i.focusOffset, i.anchorNode, i.anchorOffset), m;
1032
1032
  }), pe.prototype = p.selectionPrototype;
@@ -1044,7 +1044,7 @@ function Wn() {
1044
1044
  p.getSelection = dt, ue.createAliasForDeprecatedMethod(p, "getIframeSelection", "getSelection");
1045
1045
  var rt, se = pe.prototype;
1046
1046
  function wt(i, l) {
1047
- for (var m, k = v(l[0].startContainer), w = P(k).createControlRange(), N = 0, G = l.length; N < G; ++N) {
1047
+ for (var m, k = v(l[0].startContainer), w = P(k).createControlRange(), N = 0, X = l.length; N < X; ++N) {
1048
1048
  m = st(l[N]);
1049
1049
  try {
1050
1050
  w.add(m);
@@ -1052,7 +1052,7 @@ function Wn() {
1052
1052
  throw x.createError("setRanges(): Element within one of the specified Ranges could not be added to control selection (does it have layout?)");
1053
1053
  }
1054
1054
  }
1055
- w.select(), Xe(i);
1055
+ w.select(), Ge(i);
1056
1056
  }
1057
1057
  if (!he && $ && ue.areHostMethods(d, ["removeAllRanges", "addRange"])) {
1058
1058
  se.removeAllRanges = function() {
@@ -1074,7 +1074,7 @@ function Wn() {
1074
1074
  }
1075
1075
  if (this.rangeCount = this.nativeSelection.rangeCount, this.rangeCount == m + 1) {
1076
1076
  if (p.config.checkSelectionRanges) {
1077
- var w = Ge(this.nativeSelection, this.rangeCount - 1);
1077
+ var w = Xe(this.nativeSelection, this.rangeCount - 1);
1078
1078
  w && !W(w, i) && (i = new u(w));
1079
1079
  }
1080
1080
  this._ranges[this.rangeCount - 1] = i, it(this, i, Qe(this.nativeSelection)), this.isCollapsed = F(this), Ee(this);
@@ -1118,10 +1118,10 @@ function Wn() {
1118
1118
  return this._ranges[i].cloneRange();
1119
1119
  }, he) rt = function(i) {
1120
1120
  var l;
1121
- p.isSelectionValid(i.win) ? l = i.docSelection.createRange() : (l = P(i.win.document).createTextRange()).collapse(!0), i.docSelection.type == z ? Xe(i) : ze(l) ? ft(i, l) : be(i);
1121
+ p.isSelectionValid(i.win) ? l = i.docSelection.createRange() : (l = P(i.win.document).createTextRange()).collapse(!0), i.docSelection.type == z ? Ge(i) : ze(l) ? ft(i, l) : be(i);
1122
1122
  };
1123
1123
  else if (r(d, "getRangeAt") && typeof d.rangeCount == ee) rt = function(i) {
1124
- if (Pe && te && i.docSelection.type == z) Xe(i);
1124
+ if (Pe && te && i.docSelection.type == z) Ge(i);
1125
1125
  else if (i._ranges.length = i.rangeCount = i.nativeSelection.rangeCount, i.rangeCount) {
1126
1126
  for (var l = 0, m = i.rangeCount; l < m; ++l) i._ranges[l] = new p.WrappedRange(i.nativeSelection.getRangeAt(l));
1127
1127
  it(i, i._ranges[i.rangeCount - 1], Qe(i.nativeSelection)), i.isCollapsed = F(i), Ee(i);
@@ -1131,7 +1131,7 @@ function Wn() {
1131
1131
  if (!$ || typeof d.isCollapsed != J || typeof S.collapsed != J || !O.implementsDomRange) return x.fail("No means of obtaining a Range or TextRange from the user's selection was found"), !1;
1132
1132
  rt = function(i) {
1133
1133
  var l, m = i.nativeSelection;
1134
- m.anchorNode ? (l = Ge(m, 0), i._ranges = [l], i.rangeCount = 1, function(k) {
1134
+ m.anchorNode ? (l = Xe(m, 0), i._ranges = [l], i.rangeCount = 1, function(k) {
1135
1135
  var w = k.nativeSelection;
1136
1136
  k.anchorNode = w.anchorNode, k.anchorOffset = w.anchorOffset, k.focusNode = w.focusNode, k.focusOffset = w.focusOffset;
1137
1137
  }(i), i.isCollapsed = F(i), Ee(i)) : be(i);
@@ -1166,13 +1166,13 @@ function Wn() {
1166
1166
  }
1167
1167
  function f(i) {
1168
1168
  var l = [], m = new T(i.anchorNode, i.anchorOffset), k = new T(i.focusNode, i.focusOffset), w = typeof i.getName == "function" ? i.getName() : "Selection";
1169
- if (i.rangeCount !== void 0) for (var N = 0, G = i.rangeCount; N < G; ++N) l[N] = h.inspect(i.getRangeAt(N));
1169
+ if (i.rangeCount !== void 0) for (var N = 0, X = i.rangeCount; N < X; ++N) l[N] = h.inspect(i.getRangeAt(N));
1170
1170
  return "[" + w + "(Ranges: " + l.join(", ") + ")(anchor: " + m.inspect() + ", focus: " + k.inspect() + "]";
1171
1171
  }
1172
1172
  se.removeRange = Pe && te ? function(i) {
1173
1173
  if (this.docSelection.type == z) {
1174
- for (var l = this.docSelection.createRange(), m = st(i), k = v(l.item(0)), w = P(k).createControlRange(), N = !1, G = 0, j = l.length; G < j; ++G) l.item(G) !== m || N ? w.add(l.item(G)) : N = !0;
1175
- w.select(), Xe(this);
1174
+ for (var l = this.docSelection.createRange(), m = st(i), k = v(l.item(0)), w = P(k).createControlRange(), N = !1, X = 0, j = l.length; X < j; ++X) l.item(X) !== m || N ? w.add(l.item(X)) : N = !0;
1175
+ w.select(), Ge(this);
1176
1176
  } else kt(this, i);
1177
1177
  } : function(i) {
1178
1178
  kt(this, i);
@@ -1283,7 +1283,7 @@ function Wn() {
1283
1283
  var le = !1, ve = function(p) {
1284
1284
  le || (le = !0, !q.initialized && q.config.autoInitialize && Oe());
1285
1285
  };
1286
- return de && (document.readyState == "complete" ? ve() : (c(document, "addEventListener") && document.addEventListener("DOMContentLoaded", ve, !1), X(window, "load", ve))), q;
1286
+ return de && (document.readyState == "complete" ? ve() : (c(document, "addEventListener") && document.addEventListener("DOMContentLoaded", ve, !1), G(window, "load", ve))), q;
1287
1287
  }
1288
1288
  function Fn(_) {
1289
1289
  return _.createModule("ClassApplier", ["WrappedSelection"], function(e, t) {
@@ -1323,11 +1323,11 @@ function Fn(_) {
1323
1323
  function B(r) {
1324
1324
  return typeof r.className == "string" ? r.className : r.getAttribute("class");
1325
1325
  }
1326
- function X(r) {
1326
+ function G(r) {
1327
1327
  return r && r.split(/\s+/).sort().join(" ");
1328
1328
  }
1329
1329
  function ie(r) {
1330
- return X(B(r));
1330
+ return G(B(r));
1331
1331
  }
1332
1332
  function de(r, h) {
1333
1333
  return ie(r) == ie(h);
@@ -1480,7 +1480,7 @@ function Fn(_) {
1480
1480
  var I = document.createElement(v.elementTagName);
1481
1481
  v.elementProperties = v.copyPropertiesToElement(P, I, !0), E(W, function(Y, Z) {
1482
1482
  v.attrExceptions.push(Y), W[Y] = "" + Z;
1483
- }), v.elementAttributes = W, v.elementSortedClassName = v.elementProperties.hasOwnProperty("className") ? X(v.elementProperties.className + " " + r) : r, v.applyToAnyTagName = !1;
1483
+ }), v.elementAttributes = W, v.elementSortedClassName = v.elementProperties.hasOwnProperty("className") ? G(v.elementProperties.className + " " + r) : r, v.applyToAnyTagName = !1;
1484
1484
  var U = typeof u;
1485
1485
  if (U == "string") u == "*" ? v.applyToAnyTagName = !0 : v.tagNames = b(u.toLowerCase()).split(/\s*,\s*/);
1486
1486
  else if (U == "object" && typeof u.length == "number") for (v.tagNames = [], T = 0, O = u.length; T < O; ++T) u[T] == "*" ? v.applyToAnyTagName = !0 : v.tagNames.push(u[T].toLowerCase());
@@ -1488,7 +1488,7 @@ function Fn(_) {
1488
1488
  }
1489
1489
  ue.prototype = { elementTagName: "span", elementProperties: {}, elementAttributes: {}, ignoreWhiteSpace: !0, applyToEditableOnly: !1, useExistingElements: !0, removeEmptyElements: !0, onElementCreate: null, copyPropertiesToElement: function(r, h, u) {
1490
1490
  var y, T, O, z, v, P, W = {};
1491
- for (var I in r) if (r.hasOwnProperty(I)) if (z = r[I], v = h[I], I == "className") R(h, z), R(h, this.className), h[I] = X(h[I]), u && (W[I] = z);
1491
+ for (var I in r) if (r.hasOwnProperty(I)) if (z = r[I], v = h[I], I == "className") R(h, z), R(h, this.className), h[I] = G(h[I]), u && (W[I] = z);
1492
1492
  else if (I == "style") {
1493
1493
  for (y in T = v, u && (W[I] = O = {}), r[I]) r[I].hasOwnProperty(y) && (T[y] = z[y], u && (O[y] = T[y]));
1494
1494
  this.attrExceptions.push(I);
@@ -1663,7 +1663,7 @@ function Fn(_) {
1663
1663
  }, c.createAliasForDeprecatedMethod(e, "createCssClassApplier", "createClassApplier", t);
1664
1664
  }), _;
1665
1665
  }
1666
- const Yt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19 17V10.2135C19 10.1287 18.9011 10.0824 18.836 10.1367L16 12.5"/></svg>', Gt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 11C16 10 19 9.5 19 12C19 13.9771 16.0684 13.9997 16.0012 16.8981C15.9999 16.9533 16.0448 17 16.1 17L19.3 17"/></svg>', Xt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 11C16 10.5 16.8323 10 17.6 10C18.3677 10 19.5 10.311 19.5 11.5C19.5 12.5315 18.7474 12.9022 18.548 12.9823C18.5378 12.9864 18.5395 13.0047 18.5503 13.0063C18.8115 13.0456 20 13.3065 20 14.8C20 16 19.5 17 17.8 17C17.8 17 16 17 16 16.3"/></svg>', Qt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M18 10L15.2834 14.8511C15.246 14.9178 15.294 15 15.3704 15C16.8489 15 18.7561 15 20.2 15M19 17C19 15.7187 19 14.8813 19 13.6"/></svg>', Zt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 15.9C16 15.9 16.3768 17 17.8 17C19.5 17 20 15.6199 20 14.7C20 12.7323 17.6745 12.0486 16.1635 12.9894C16.094 13.0327 16 12.9846 16 12.9027V10.1C16 10.0448 16.0448 10 16.1 10H19.8"/></svg>', Jt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19.5 10C16.5 10.5 16 13.3285 16 15M16 15V15C16 16.1046 16.8954 17 18 17H18.3246C19.3251 17 20.3191 16.3492 20.2522 15.3509C20.0612 12.4958 16 12.6611 16 15Z"/></svg>', en = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M9.2 12L11.0586 13.8586C11.1367 13.9367 11.2633 13.9367 11.3414 13.8586L14.7 10.5"/><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/></svg>', tn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 8L12 12M12 12L16 16M12 12L16 8M12 12L8 16"/></svg>', nn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7.69998 12.6L7.67896 12.62C6.53993 13.7048 6.52012 15.5155 7.63516 16.625V16.625C8.72293 17.7073 10.4799 17.7102 11.5712 16.6314L13.0263 15.193C14.0703 14.1609 14.2141 12.525 13.3662 11.3266L13.22 11.12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16.22 11.12L16.3564 10.9805C17.2895 10.0265 17.3478 8.5207 16.4914 7.49733V7.49733C15.5691 6.39509 13.9269 6.25143 12.8271 7.17675L11.3901 8.38588C10.0935 9.47674 9.95706 11.4241 11.0888 12.6852L11.12 12.72"/></svg>', sn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="9" x2="19" y1="7" y2="7" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="9" x2="19" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="9" x2="19" y1="17" y2="17" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 17H4.99002"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 12H4.99002"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 7H4.99002"/></svg>', rn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="12" x2="19" y1="7" y2="7" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="12" x2="19" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="12" x2="19" y1="17" y2="17" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7.79999 14L7.79999 7.2135C7.79999 7.12872 7.7011 7.0824 7.63597 7.13668L4.79999 9.5"/></svg>', yn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.13968 15.32L8.69058 11.5661C9.02934 11.2036 9.48873 11 9.96774 11C10.4467 11 10.9061 11.2036 11.2449 11.5661L15.3871 16M13.5806 14.0664L15.0132 12.533C15.3519 12.1705 15.8113 11.9668 16.2903 11.9668C16.7693 11.9668 17.2287 12.1705 17.5675 12.533L18.841 13.9634"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.7778 9.33331H13.7867"/></svg>', kn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 9V7.2C8 7.08954 8.08954 7 8.2 7L12 7M16 9V7.2C16 7.08954 15.9105 7 15.8 7L12 7M12 7L12 17M12 17H10M12 17H14"/></svg>', bn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M15.7795 11.5C15.7795 11.5 16.053 11.1962 16.5497 10.6722C17.4442 9.72856 17.4701 8.2475 16.5781 7.30145V7.30145C15.6482 6.31522 14.0873 6.29227 13.1288 7.25073L11.8796 8.49999"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8.24517 12.3883C8.24517 12.3883 7.97171 12.6922 7.47504 13.2161C6.58051 14.1598 6.55467 15.6408 7.44666 16.5869V16.5869C8.37653 17.5731 9.93744 17.5961 10.8959 16.6376L12.1452 15.3883"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M17.7802 15.1032L16.597 14.9422C16.0109 14.8624 15.4841 15.3059 15.4627 15.8969L15.4199 17.0818"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6.39064 9.03238L7.58432 9.06668C8.17551 9.08366 8.6522 8.58665 8.61056 7.99669L8.5271 6.81397"/><line x1="12.1142" x2="11.7" y1="12.2" y2="11.7858" stroke="currentColor" stroke-linecap="round" stroke-width="2"/></svg>', on = '<svg t="1763708081701" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2604" width="24" height="24"><path d="M469.3330000000001 725.333H896V640H469.3330000000001v85.333zM128 512l170.667 170.667V341.3330000000001L128 512z m0 384h768v-85.333H128V896z m0-768v85.333h768V128H128z m341.333 256H896v-85.333H469.3330000000001V384z m0 170.667H896v-85.334H469.3330000000001v85.334z" p-id="2605" fill="#000000"></path></svg>', an = '<svg t="1763708124227" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2788" width="24" height="24"><path d="M128 896h768v-85.333H128V896z m0-554.667v341.334L298.667 512 128 341.333z m341.333 384H896V640H469.333v85.333zM128 128v85.333h768V128H128z m341.333 256H896v-85.333H469.333V384z m0 170.667H896v-85.334H469.333v85.334z" p-id="2789" fill="#000000"></path></svg>';
1666
+ const Yt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19 17V10.2135C19 10.1287 18.9011 10.0824 18.836 10.1367L16 12.5"/></svg>', Xt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 11C16 10 19 9.5 19 12C19 13.9771 16.0684 13.9997 16.0012 16.8981C15.9999 16.9533 16.0448 17 16.1 17L19.3 17"/></svg>', Gt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 11C16 10.5 16.8323 10 17.6 10C18.3677 10 19.5 10.311 19.5 11.5C19.5 12.5315 18.7474 12.9022 18.548 12.9823C18.5378 12.9864 18.5395 13.0047 18.5503 13.0063C18.8115 13.0456 20 13.3065 20 14.8C20 16 19.5 17 17.8 17C17.8 17 16 17 16 16.3"/></svg>', Qt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M18 10L15.2834 14.8511C15.246 14.9178 15.294 15 15.3704 15C16.8489 15 18.7561 15 20.2 15M19 17C19 15.7187 19 14.8813 19 13.6"/></svg>', Zt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 15.9C16 15.9 16.3768 17 17.8 17C19.5 17 20 15.6199 20 14.7C20 12.7323 17.6745 12.0486 16.1635 12.9894C16.094 13.0327 16 12.9846 16 12.9027V10.1C16 10.0448 16.0448 10 16.1 10H19.8"/></svg>', Jt = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6 7L6 12M6 17L6 12M6 12L12 12M12 7V12M12 17L12 12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M19.5 10C16.5 10.5 16 13.3285 16 15M16 15V15C16 16.1046 16.8954 17 18 17H18.3246C19.3251 17 20.3191 16.3492 20.2522 15.3509C20.0612 12.4958 16 12.6611 16 15Z"/></svg>', en = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M9.2 12L11.0586 13.8586C11.1367 13.9367 11.2633 13.9367 11.3414 13.8586L14.7 10.5"/><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/></svg>', tn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 8L12 12M12 12L16 16M12 12L16 8M12 12L8 16"/></svg>', nn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7.69998 12.6L7.67896 12.62C6.53993 13.7048 6.52012 15.5155 7.63516 16.625V16.625C8.72293 17.7073 10.4799 17.7102 11.5712 16.6314L13.0263 15.193C14.0703 14.1609 14.2141 12.525 13.3662 11.3266L13.22 11.12"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16.22 11.12L16.3564 10.9805C17.2895 10.0265 17.3478 8.5207 16.4914 7.49733V7.49733C15.5691 6.39509 13.9269 6.25143 12.8271 7.17675L11.3901 8.38588C10.0935 9.47674 9.95706 11.4241 11.0888 12.6852L11.12 12.72"/></svg>', sn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="9" x2="19" y1="7" y2="7" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="9" x2="19" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="9" x2="19" y1="17" y2="17" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 17H4.99002"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 12H4.99002"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5.00001 7H4.99002"/></svg>', rn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><line x1="12" x2="19" y1="7" y2="7" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="12" x2="19" y1="12" y2="12" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><line x1="12" x2="19" y1="17" y2="17" stroke="currentColor" stroke-linecap="round" stroke-width="2"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M7.79999 14L7.79999 7.2135C7.79999 7.12872 7.7011 7.0824 7.63597 7.13668L4.79999 9.5"/></svg>', kn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.13968 15.32L8.69058 11.5661C9.02934 11.2036 9.48873 11 9.96774 11C10.4467 11 10.9061 11.2036 11.2449 11.5661L15.3871 16M13.5806 14.0664L15.0132 12.533C15.3519 12.1705 15.8113 11.9668 16.2903 11.9668C16.7693 11.9668 17.2287 12.1705 17.5675 12.533L18.841 13.9634"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.7778 9.33331H13.7867"/></svg>', bn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8 9V7.2C8 7.08954 8.08954 7 8.2 7L12 7M16 9V7.2C16 7.08954 15.9105 7 15.8 7L12 7M12 7L12 17M12 17H10M12 17H14"/></svg>', Sn = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M15.7795 11.5C15.7795 11.5 16.053 11.1962 16.5497 10.6722C17.4442 9.72856 17.4701 8.2475 16.5781 7.30145V7.30145C15.6482 6.31522 14.0873 6.29227 13.1288 7.25073L11.8796 8.49999"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M8.24517 12.3883C8.24517 12.3883 7.97171 12.6922 7.47504 13.2161C6.58051 14.1598 6.55467 15.6408 7.44666 16.5869V16.5869C8.37653 17.5731 9.93744 17.5961 10.8959 16.6376L12.1452 15.3883"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M17.7802 15.1032L16.597 14.9422C16.0109 14.8624 15.4841 15.3059 15.4627 15.8969L15.4199 17.0818"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M6.39064 9.03238L7.58432 9.06668C8.17551 9.08366 8.6522 8.58665 8.61056 7.99669L8.5271 6.81397"/><line x1="12.1142" x2="11.7" y1="12.2" y2="11.7858" stroke="currentColor" stroke-linecap="round" stroke-width="2"/></svg>', on = '<svg t="1763708081701" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2604" width="24" height="24"><path d="M469.3330000000001 725.333H896V640H469.3330000000001v85.333zM128 512l170.667 170.667V341.3330000000001L128 512z m0 384h768v-85.333H128V896z m0-768v85.333h768V128H128z m341.333 256H896v-85.333H469.3330000000001V384z m0 170.667H896v-85.334H469.3330000000001v85.334z" p-id="2605" fill="#000000"></path></svg>', an = '<svg t="1763708124227" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2788" width="24" height="24"><path d="M128 896h768v-85.333H128V896z m0-554.667v341.334L298.667 512 128 341.333z m341.333 384H896V640H469.333v85.333zM128 128v85.333h768V128H128z m341.333 256H896v-85.333H469.333V384z m0 170.667H896v-85.334H469.333v85.334z" p-id="2789" fill="#000000"></path></svg>';
1667
1667
  class Un {
1668
1668
  constructor(e, t) {
1669
1669
  this.holder = document.getElementById(e), this.holder.addEventListener("click", (n) => {
@@ -1700,13 +1700,13 @@ class Un {
1700
1700
  const R = document.createElement("div");
1701
1701
  R.setAttribute("class", "ce-el-link-btn-wrap");
1702
1702
  const H = document.createElement("div");
1703
- H.innerHTML = bn, H.setAttribute("class", "ce-el-link-icon-btn ce-el-link-unlink-btn ce-el-link__noedit"), H.setAttribute("title", "取消链接");
1703
+ H.innerHTML = Sn, H.setAttribute("class", "ce-el-link-icon-btn ce-el-link-unlink-btn ce-el-link__noedit"), H.setAttribute("title", "取消链接");
1704
1704
  const B = document.createElement("div");
1705
1705
  B.innerHTML = '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="2483" width="20" height="20"><path d="M391.467 736.322a31.99 31.99 0 0 1-13.783 8.126l-232.261 66.798c-12.088 3.477-23.276-7.711-19.799-19.799l66.798-232.261a32 32 0 0 1 8.126-13.782l472.869-472.87c12.496-12.496 32.758-12.496 45.254 0L864.335 218.2c12.497 12.496 12.497 32.758 0 45.255L391.467 736.322z m248.009-516.709l77.781 77.782 56.569-56.569-77.782-77.782-56.568 56.569z m-50.912 50.911L265.88 593.209l-31.401 109.182 109.182-31.401 322.685-322.684-77.782-77.782zM129.001 889h768v72h-768v-72z" fill="#323338" ></path></svg>', B.setAttribute("class", "ce-el-link-icon-btn ce-el-link-edit-btn ce-el-link__noedit"), B.setAttribute("title", "编辑链接");
1706
- const X = document.createElement("button");
1707
- X.setAttribute("type", "button"), X.setAttribute("class", "ce-el-link-btn ce-el-link__noedit"), X.innerHTML = "确定", R.appendChild(B), R.appendChild(H), R.appendChild(X), B.addEventListener("click", (ie) => {
1708
- ie.preventDefault(), ie.stopPropagation(), M.classList.remove("ce-el-link__noedit"), A.classList.remove("ce-el-link__noedit"), B.classList.remove("ce-el-link__noedit"), H.classList.remove("ce-el-link__noedit"), X.classList.remove("ce-el-link__noedit"), s.removeEventListener("mouseout", this.mouseOut), b.removeEventListener("mouseout", this.mouseOut);
1709
- }), X.addEventListener("click", (ie) => {
1706
+ const G = document.createElement("button");
1707
+ G.setAttribute("type", "button"), G.setAttribute("class", "ce-el-link-btn ce-el-link__noedit"), G.innerHTML = "确定", R.appendChild(B), R.appendChild(H), R.appendChild(G), B.addEventListener("click", (ie) => {
1708
+ ie.preventDefault(), ie.stopPropagation(), M.classList.remove("ce-el-link__noedit"), A.classList.remove("ce-el-link__noedit"), B.classList.remove("ce-el-link__noedit"), H.classList.remove("ce-el-link__noedit"), G.classList.remove("ce-el-link__noedit"), s.removeEventListener("mouseout", this.mouseOut), b.removeEventListener("mouseout", this.mouseOut);
1709
+ }), G.addEventListener("click", (ie) => {
1710
1710
  var de;
1711
1711
  ie.preventDefault(), ie.stopPropagation(), s.href = M.value, (de = s.querySelector('div[data-input-wrap="true"]')) == null || de.remove();
1712
1712
  }), H.addEventListener("click", (ie) => {
@@ -1798,6 +1798,28 @@ class $n {
1798
1798
  }
1799
1799
  }
1800
1800
  class jn {
1801
+ constructor(e, t, n) {
1802
+ this.holder = document.getElementById(e), this.readOnly = t, this.editor = n, this.blockSelection = n.blockSelection, this.readOnly || this.setListener();
1803
+ }
1804
+ setListener() {
1805
+ this.readOnly || new MutationObserver((e, t) => {
1806
+ var n;
1807
+ (n = this.holder) == null || n.querySelectorAll(".cdx-alert__message,.cdx-block-quote,.ce-editorjs-x-shiki__textarea").forEach((s) => {
1808
+ s.getAttribute("data-block-backspace") !== "true" && (s.addEventListener("keydown", (a) => {
1809
+ if (a.code === "Backspace" && yn(s)) {
1810
+ a.preventDefault(), a.stopPropagation();
1811
+ const c = this.editor.blockManager.currentBlock;
1812
+ this.blockSelection.selectBlock(c);
1813
+ }
1814
+ }), s.setAttribute("data-block-backspace", "true"));
1815
+ });
1816
+ }).observe(this.holder, { childList: !0, subtree: !0 });
1817
+ }
1818
+ static get isReadOnlySupported() {
1819
+ return !0;
1820
+ }
1821
+ }
1822
+ class qn {
1801
1823
  constructor({ data: e, config: t, api: n, readOnly: s }) {
1802
1824
  this.api = n, this.readOnly = s, this._settings = { placeholder: "H1" }, this._data = this.normalizeData(e), this._element = this.getTag();
1803
1825
  }
@@ -1878,7 +1900,7 @@ class jn {
1878
1900
  return { icon: Yt, title: "H1" };
1879
1901
  }
1880
1902
  }
1881
- class qn {
1903
+ class Vn {
1882
1904
  constructor({ data: e, config: t, api: n, readOnly: s }) {
1883
1905
  this.api = n, this.readOnly = s, this._settings = { placeholder: "H2" }, this._data = this.normalizeData(e), this._element = this.getTag();
1884
1906
  }
@@ -1946,7 +1968,7 @@ class qn {
1946
1968
  e.dataset.placeholder = this.api.i18n.t(this._settings.placeholder || "");
1947
1969
  }
1948
1970
  get defaultLevel() {
1949
- return { number: 2, tag: "H2", svg: Gt };
1971
+ return { number: 2, tag: "H2", svg: Xt };
1950
1972
  }
1951
1973
  onPaste(e) {
1952
1974
  const t = e.detail;
@@ -1956,10 +1978,10 @@ class qn {
1956
1978
  }
1957
1979
  }
1958
1980
  static get toolbox() {
1959
- return { icon: Gt, title: "H2" };
1981
+ return { icon: Xt, title: "H2" };
1960
1982
  }
1961
1983
  }
1962
- class Vn {
1984
+ class Kn {
1963
1985
  constructor({ data: e, config: t, api: n, readOnly: s }) {
1964
1986
  this.api = n, this.readOnly = s, this._settings = { placeholder: "H3" }, this._data = this.normalizeData(e), this._element = this.getTag();
1965
1987
  }
@@ -2027,7 +2049,7 @@ class Vn {
2027
2049
  e.dataset.placeholder = this.api.i18n.t(this._settings.placeholder || "");
2028
2050
  }
2029
2051
  get defaultLevel() {
2030
- return { number: 3, tag: "H3", svg: Xt };
2052
+ return { number: 3, tag: "H3", svg: Gt };
2031
2053
  }
2032
2054
  onPaste(e) {
2033
2055
  const t = e.detail;
@@ -2037,10 +2059,10 @@ class Vn {
2037
2059
  }
2038
2060
  }
2039
2061
  static get toolbox() {
2040
- return { icon: Xt, title: "H3" };
2062
+ return { icon: Gt, title: "H3" };
2041
2063
  }
2042
2064
  }
2043
- class Kn {
2065
+ class Yn {
2044
2066
  constructor({ data: e, config: t, api: n, readOnly: s }) {
2045
2067
  this.api = n, this.readOnly = s, this._settings = { placeholder: "H4" }, this._data = this.normalizeData(e), this._element = this.getTag();
2046
2068
  }
@@ -2121,7 +2143,7 @@ class Kn {
2121
2143
  return { icon: Qt, title: "H4" };
2122
2144
  }
2123
2145
  }
2124
- class Yn {
2146
+ class Xn {
2125
2147
  constructor({ data: e, config: t, api: n, readOnly: s }) {
2126
2148
  this.api = n, this.readOnly = s, this._settings = { placeholder: "H5" }, this._data = this.normalizeData(e), this._element = this.getTag();
2127
2149
  }
@@ -2376,7 +2398,7 @@ class qt {
2376
2398
  return { tags: ["P", "div", "br"] };
2377
2399
  }
2378
2400
  static get toolbox() {
2379
- return { icon: kn, title: "Text" };
2401
+ return { icon: bn, title: "Text" };
2380
2402
  }
2381
2403
  }
2382
2404
  class St {
@@ -2446,7 +2468,7 @@ class St {
2446
2468
  }
2447
2469
  drawView() {
2448
2470
  const e = document.createElement("div"), t = document.createElement("div"), n = document.createElement("div"), s = document.createElement("div"), a = document.createElement("div"), c = document.createElement("div"), g = document.createElement("select"), C = document.createElement("select"), E = document.createElement("span"), b = document.createElement("textarea"), M = document.createElement("div");
2449
- return M.classList.add("ce-editorjs-x-shiki__code__dragHandler"), e.classList.add(this.CSS.baseClass, this.CSS.wrapper), this.readOnly ? e.classList.add("read-only") : e.classList.add("editable"), t.classList.add("ce-editorjs-x-shiki__code"), n.classList.add("ce-editorjs-x-shiki__selector"), s.classList.add("ce-editorjs-x-shiki__lang"), a.classList.add("ce-editorjs-x-shiki__copy"), c.classList.add("ce-editorjs-x-shiki__copy_tip"), g.classList.add(this.CSS.selectorLanguage), b.classList.add(this.CSS.textarea, this.CSS.input), s.innerHTML = this.data.lang, a.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.25 8.5H10.25C9.2835 8.5 8.5 9.2835 8.5 10.25V17.25C8.5 18.2165 9.2835 19 10.25 19H17.25C18.2165 19 19 18.2165 19 17.25V10.25C19 9.2835 18.2165 8.5 17.25 8.5Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.5 8.5V6.75C15.5 6.28587 15.3156 5.84075 14.9874 5.51256C14.6592 5.18437 14.2141 5 13.75 5H6.75C6.28587 5 5.84075 5.18437 5.51256 5.51256C5.18437 5.84075 5 6.28587 5 6.75V13.75C5 14.2141 5.18437 14.6592 5.51256 14.9874C5.84075 15.3156 6.28587 15.5 6.75 15.5H8.5"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 12L15.5 12"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15.5L15.5 15.5"/></svg>', c.innerText = this.api.i18n.t("Copied"), In.forEach((A) => {
2471
+ return M.classList.add("ce-editorjs-x-shiki__code__dragHandler"), e.classList.add(this.CSS.baseClass, this.CSS.wrapper), this.readOnly ? e.classList.add("read-only") : e.classList.add("editable"), t.classList.add("ce-editorjs-x-shiki__code"), n.classList.add("ce-editorjs-x-shiki__selector"), s.classList.add("ce-editorjs-x-shiki__lang"), a.classList.add("ce-editorjs-x-shiki__copy"), c.classList.add("ce-editorjs-x-shiki__copy_tip"), g.classList.add(this.CSS.selectorLanguage), b.classList.add(this.CSS.textarea, this.CSS.input), s.innerHTML = this.data.lang, a.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.25 8.5H10.25C9.2835 8.5 8.5 9.2835 8.5 10.25V17.25C8.5 18.2165 9.2835 19 10.25 19H17.25C18.2165 19 19 18.2165 19 17.25V10.25C19 9.2835 18.2165 8.5 17.25 8.5Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.5 8.5V6.75C15.5 6.28587 15.3156 5.84075 14.9874 5.51256C14.6592 5.18437 14.2141 5 13.75 5H6.75C6.28587 5 5.84075 5.18437 5.51256 5.51256C5.18437 5.84075 5 6.28587 5 6.75V13.75C5 14.2141 5.18437 14.6592 5.51256 14.9874C5.84075 15.3156 6.28587 15.5 6.75 15.5H8.5"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 12L15.5 12"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15.5L15.5 15.5"/></svg>', c.innerText = this.api.i18n.t("Copied"), Dn.forEach((A) => {
2450
2472
  const R = document.createElement("option");
2451
2473
  R.value = A.id, R.text = A.name, g.appendChild(R);
2452
2474
  }), g.value = this.data.lang, b.value = this.data.code, b.placeholder = this.placeholder, b.spellcheck = !1, b.autocomplete = "off", b.autocapitalize = "off", this.readOnly && (b.disabled = !0), t.appendChild(E), t.appendChild(b), e.appendChild(M), this.data.resizeSize && this.data.resizeSize > 0 && (t.style.height = this.data.resizeSize + "px"), this.readOnly ? n.appendChild(s) : n.appendChild(g), a.appendChild(c), n.appendChild(a), e.appendChild(n), e.appendChild(t), this.runShiki().then(({ html: A, preStyle: R }) => {
@@ -2466,15 +2488,9 @@ class St {
2466
2488
  E.innerHTML = A, e == null || e.setAttribute("style", R), g.setAttribute("style", R), C.setAttribute("style", R);
2467
2489
  });
2468
2490
  }), b.addEventListener("keydown", (A) => {
2469
- switch (A.code) {
2470
- case "Backspace":
2471
- b.value || (A.preventDefault(), A.stopPropagation());
2472
- break;
2473
- case "Tab":
2474
- this.tabHandler(A), this.data.code = b.value, this.runShiki().then(({ html: R, preStyle: H }) => {
2475
- E.innerHTML = R;
2476
- });
2477
- }
2491
+ A.code === "Tab" && (this.tabHandler(A), this.data.code = b.value, this.runShiki().then(({ html: R, preStyle: H }) => {
2492
+ E.innerHTML = R;
2493
+ }));
2478
2494
  }), b.addEventListener("scroll", () => {
2479
2495
  E.style = `display:block;transform: translateY(-${b.scrollTop}px)`;
2480
2496
  }), a.addEventListener("click", (A) => {
@@ -2497,7 +2513,7 @@ class St {
2497
2513
  }
2498
2514
  async runShiki() {
2499
2515
  let e = "";
2500
- return { html: await Hn(this.data.code, { lang: this._selectorLanguage, theme: this._selectorTheme, transformers: [{ preprocess: (t) => `${t}`, pre(t) {
2516
+ return { html: await Pn(this.data.code, { lang: this._selectorLanguage, theme: this._selectorTheme, transformers: [{ preprocess: (t) => `${t}`, pre(t) {
2501
2517
  var n;
2502
2518
  this.addClassToHast(t, "ce-editorjs-x-shiki__span"), e = ((n = t.properties) == null ? void 0 : n.style) || "";
2503
2519
  }, line(t, n) {
@@ -2537,7 +2553,7 @@ class St {
2537
2553
  }
2538
2554
  }
2539
2555
  }
2540
- class Xn {
2556
+ class Qn {
2541
2557
  constructor({ data: e, api: t, readOnly: n }) {
2542
2558
  this.api = t, this.readOnly = n, this._data = { text: e.text || "" }, this._CSS = { baseClass: this.api.styles.block, wrapper: "cdx-quote", text: "cdx-quote__text", input: this.api.styles.input };
2543
2559
  }
@@ -2570,13 +2586,7 @@ class Xn {
2570
2586
  return e.nodeType !== Node.ELEMENT_NODE && (e = e.parentNode), e.closest(`.${this.CSS.text}`);
2571
2587
  }
2572
2588
  handleKeydown(e) {
2573
- var n;
2574
- const t = this._quoteElement;
2575
- if (e.key === "Enter" && (e.shiftKey || (e.preventDefault(), this.getOutOfQuote())), e.key === "Backspace" && ((n = t.textContent) == null ? void 0 : n.trim().length) === 0) {
2576
- e.preventDefault();
2577
- const s = this.api.blocks.getCurrentBlockIndex();
2578
- return this.api.blocks.delete(s), this.api.blocks.insert("paragraph", { text: "" }), void this.api.caret.setToBlock(s);
2579
- }
2589
+ e.key === "Enter" && (e.shiftKey || (e.preventDefault(), e.stopPropagation(), this.getOutOfQuote()));
2580
2590
  }
2581
2591
  getOutOfQuote() {
2582
2592
  this.api.blocks.insert(), this.api.caret.setToBlock(this.api.blocks.getCurrentBlockIndex());
@@ -2590,7 +2600,7 @@ class Xn {
2590
2600
  return { text: { br: !0 } };
2591
2601
  }
2592
2602
  }
2593
- class Qn {
2603
+ class Zn {
2594
2604
  static get isReadOnlySupported() {
2595
2605
  return !0;
2596
2606
  }
@@ -2745,7 +2755,7 @@ function Ft(_) {
2745
2755
  }
2746
2756
  function ut(_, e = !0) {
2747
2757
  const t = Ft(_);
2748
- t && Bn(t, e);
2758
+ t && Hn(t, e);
2749
2759
  }
2750
2760
  class Ht {
2751
2761
  get currentItem() {
@@ -2843,7 +2853,7 @@ class Ht {
2843
2853
  backspace(e) {
2844
2854
  var n;
2845
2855
  const t = this.currentItem;
2846
- t !== null && Dn(t) && ((n = window.getSelection()) == null ? void 0 : n.isCollapsed) !== !1 && (e.stopPropagation(), t.parentNode !== this.listWrapper || t.previousElementSibling !== null ? (e.preventDefault(), this.mergeItemWithPrevious(t)) : this.convertFirstItemToDefaultBlock());
2856
+ t !== null && yn(t) && ((n = window.getSelection()) == null ? void 0 : n.isCollapsed) !== !1 && (e.stopPropagation(), t.parentNode !== this.listWrapper || t.previousElementSibling !== null ? (e.preventDefault(), this.mergeItemWithPrevious(t)) : this.convertFirstItemToDefaultBlock());
2847
2857
  }
2848
2858
  shiftTab(e) {
2849
2859
  e.stopPropagation(), e.preventDefault(), this.currentItem !== null && this.unshiftItem(this.currentItem);
@@ -2876,7 +2886,7 @@ class Ht {
2876
2886
  g.meta.start = this.data.style == "ordered" ? 1 : void 0, this.api.blocks.insert(n == null ? void 0 : n.name, g, this.config, s + 1), this.convertItemToDefaultBlock(s + 1), c.remove();
2877
2887
  }
2878
2888
  splitItem(e) {
2879
- const [t] = Pn();
2889
+ const [t] = Bn();
2880
2890
  if (t === null) return;
2881
2891
  const n = this.renderItem(null);
2882
2892
  e == null || e.after(n), ut(n);
@@ -3035,11 +3045,11 @@ class xt {
3035
3045
  if (this.listStyle === "ordered") {
3036
3046
  const n = function(c, g, { value: C, placeholder: E, attributes: b, sanitize: M }) {
3037
3047
  const A = Tt.make("div", pt.wrapper), R = Tt.make("div", "cdx-list-start-with-field__startlabel", { innerText: c }), H = Tt.make("div", "cdx-list-start-with-field__input-wrapper"), B = Tt.make("input", pt.input, { placeholder: E, tabIndex: -1, value: C, type: "number" });
3038
- for (const X in b) B.setAttribute(X, b[X]);
3048
+ for (const G in b) B.setAttribute(G, b[G]);
3039
3049
  return A.appendChild(R), H.appendChild(B), A.appendChild(H), B.addEventListener("input", () => {
3040
3050
  M !== void 0 && (B.value = M(B.value));
3041
- const X = B.checkValidity();
3042
- X || A.classList.contains(pt.startWithElementWrapperInvalid) || A.classList.add(pt.startWithElementWrapperInvalid), X && A.classList.contains(pt.startWithElementWrapperInvalid) && A.classList.remove(pt.startWithElementWrapperInvalid), X && g(B.value);
3051
+ const G = B.checkValidity();
3052
+ G || A.classList.contains(pt.startWithElementWrapperInvalid) || A.classList.add(pt.startWithElementWrapperInvalid), G && A.classList.contains(pt.startWithElementWrapperInvalid) && A.classList.remove(pt.startWithElementWrapperInvalid), G && g(B.value);
3043
3053
  }), A;
3044
3054
  }(this.api.i18n.t("Start with"), (c) => this.changeStartWith(Number(c)), { value: String((t = this.data.meta.start) != null ? t : 1), placeholder: "", attributes: { required: "true" }, sanitize: (c) => function(g) {
3045
3055
  return g.replace(/\D+/g, "");
@@ -3121,7 +3131,7 @@ class cn {
3121
3131
  return n;
3122
3132
  }
3123
3133
  }
3124
- class Zn {
3134
+ class Jn {
3125
3135
  constructor(e, t, n) {
3126
3136
  this.holder = t, this.observer = null, this.debounceTimer = n, this.mutationDebouncer = this.debounce(() => {
3127
3137
  e();
@@ -3161,12 +3171,12 @@ class Zn {
3161
3171
  document.dispatchEvent(e), (t = this.observer) == null || t.disconnect();
3162
3172
  }
3163
3173
  }
3164
- class Jn {
3174
+ class ei {
3165
3175
  constructor({ editor: e, config: t = {}, onUpdate: n, maxLength: s }) {
3166
3176
  this.position = 0;
3167
3177
  const a = { maxLength: 30, onUpdate() {
3168
- }, config: { debounceTimer: 200, shortcuts: { undo: ["CMD+Z"], redo: ["CMD+Y", "CMD+SHIFT+Z"] } } }, { blocks: c, caret: g } = e, { configuration: C } = e, { holder: E, defaultBlock: b } = C, M = a.config.shortcuts, { shortcuts: A } = t, R = { ...M, ...A }, H = Array.isArray(R.undo) ? R.undo : [R.undo], B = Array.isArray(R.redo) ? R.redo : [R.redo], X = a.config.debounceTimer, { debounceTimer: ie = X } = t;
3169
- this.holder = typeof E == "string" ? document.getElementById(E) : E, this.editor = e, this.defaultBlock = b, this.blocks = c, this.caret = g, this.shouldSaveHistory = !0, this.readOnly = C.readOnly, this.maxLength = s || a.maxLength, this.onUpdate = n || a.onUpdate, this.config = { debounceTimer: ie, shortcuts: { undo: H, redo: B } }, new Zn(() => this.registerChange(), this.holder, this.config.debounceTimer).setMutationObserver(), this.setEventListeners(), this.initialItem = null, this.clear();
3178
+ }, config: { debounceTimer: 200, shortcuts: { undo: ["CMD+Z"], redo: ["CMD+Y", "CMD+SHIFT+Z"] } } }, { blocks: c, caret: g } = e, { configuration: C } = e, { holder: E, defaultBlock: b } = C, M = a.config.shortcuts, { shortcuts: A } = t, R = { ...M, ...A }, H = Array.isArray(R.undo) ? R.undo : [R.undo], B = Array.isArray(R.redo) ? R.redo : [R.redo], G = a.config.debounceTimer, { debounceTimer: ie = G } = t;
3179
+ this.holder = typeof E == "string" ? document.getElementById(E) : E, this.editor = e, this.defaultBlock = b, this.blocks = c, this.caret = g, this.shouldSaveHistory = !0, this.readOnly = C.readOnly, this.maxLength = s || a.maxLength, this.onUpdate = n || a.onUpdate, this.config = { debounceTimer: ie, shortcuts: { undo: H, redo: B } }, new Jn(() => this.registerChange(), this.holder, this.config.debounceTimer).setMutationObserver(), this.setEventListeners(), this.initialItem = null, this.clear();
3170
3180
  }
3171
3181
  static get isReadOnlySupported() {
3172
3182
  return !0;
@@ -3288,7 +3298,7 @@ class Jn {
3288
3298
  return n.push(s), n;
3289
3299
  }
3290
3300
  setEventListeners() {
3291
- const { holder: e } = this, { shortcuts: t } = this.config, { undo: n, redo: s } = t, a = n.map((R) => R.replace(/ /g, "").split("+")), c = s.map((R) => R.replace(/ /g, "").split("+")), g = a.map((R) => this.parseKeys(R)), C = c.map((R) => this.parseKeys(R)), E = (R, H) => H.reduce((B, X) => B || ((ie, de) => de.length === 3 && ie[de[0]] && ie[de[1]] && ie.key.toLowerCase() === de[2])(R, X), !1), b = (R, H, B) => !(!((X, ie) => ie.reduce((de, fe) => de || ((q, ye) => ye.length === 2 && q[ye[0]] && q.key.toLowerCase() === ye[1])(X, fe), !1))(R, H) || E(R, B)) || !!E(R, H), M = (R) => {
3301
+ const { holder: e } = this, { shortcuts: t } = this.config, { undo: n, redo: s } = t, a = n.map((R) => R.replace(/ /g, "").split("+")), c = s.map((R) => R.replace(/ /g, "").split("+")), g = a.map((R) => this.parseKeys(R)), C = c.map((R) => this.parseKeys(R)), E = (R, H) => H.reduce((B, G) => B || ((ie, de) => de.length === 3 && ie[de[0]] && ie[de[1]] && ie.key.toLowerCase() === de[2])(R, G), !1), b = (R, H, B) => !(!((G, ie) => ie.reduce((de, fe) => de || ((q, ye) => ye.length === 2 && q[ye[0]] && q.key.toLowerCase() === ye[1])(G, fe), !1))(R, H) || E(R, B)) || !!E(R, H), M = (R) => {
3292
3302
  b(R, g, C) && (R.preventDefault(), this.undo());
3293
3303
  }, A = (R) => {
3294
3304
  b(R, C, g) && (R.preventDefault(), this.redo());
@@ -3323,8 +3333,9 @@ class et {
3323
3333
  get CSS() {
3324
3334
  return { wrapper: "cdx-alert", wrapperForType: (e) => `cdx-alert-${e}`, wrapperForAlignType: (e) => `cdx-alert-align-${e}`, message: "cdx-alert__message" };
3325
3335
  }
3326
- constructor({ data: e, config: t, api: n, readOnly: s }) {
3327
- this.api = n, this.alertTypes = t.alertTypes || et.ALERT_TYPES, this.defaultType = t.defaultType || et.DEFAULT_TYPE, this.defaultAlign = t.defaultAlign || et.DEFAULT_ALIGN_TYPE, this.messagePlaceholder = this.api.i18n.t(t.messagePlaceholder || et.DEFAULT_MESSAGE_PLACEHOLDER), this.data = { type: this.alertTypes.includes(e.type) ? e.type : this.defaultType, align: et.ALIGN_TYPES.includes(e.align) ? e.align : this.defaultAlign, message: e.message || "" }, this.container = void 0, this.readOnly = s;
3336
+ constructor(e) {
3337
+ const { data: t, config: n, api: s, readOnly: a } = e;
3338
+ this.api = s, this.alertTypes = n.alertTypes || et.ALERT_TYPES, this.defaultType = n.defaultType || et.DEFAULT_TYPE, this.defaultAlign = n.defaultAlign || et.DEFAULT_ALIGN_TYPE, this.messagePlaceholder = this.api.i18n.t(n.messagePlaceholder || et.DEFAULT_MESSAGE_PLACEHOLDER), this.data = { type: this.alertTypes.includes(t.type) ? t.type : this.defaultType, align: et.ALIGN_TYPES.includes(t.align) ? t.align : this.defaultAlign, message: t.message || "" }, this.container = void 0, this.readOnly = a;
3328
3339
  }
3329
3340
  static get isReadOnlySupported() {
3330
3341
  return !0;
@@ -3333,7 +3344,9 @@ class et {
3333
3344
  const e = [this.CSS.wrapper, this.CSS.wrapperForType(this.data.type)];
3334
3345
  this.container = this._make("div", e);
3335
3346
  const t = this._make("div", [this.CSS.message], { contentEditable: !this.readOnly, innerHTML: this.data.message });
3336
- return t.dataset.placeholder = this.messagePlaceholder, this.container.appendChild(t), this.container;
3347
+ return t.dataset.placeholder = this.messagePlaceholder, t.addEventListener("keydown", (n) => {
3348
+ n.code === "Enter" && (n.shiftKey || (n.preventDefault(), n.stopPropagation(), this.api.blocks.insert(), this.api.caret.setToBlock(this.api.blocks.getCurrentBlockIndex())));
3349
+ }), this.container.appendChild(t), this.container;
3337
3350
  }
3338
3351
  _getSettingIconStyle(e) {
3339
3352
  let t = "";
@@ -3421,9 +3434,9 @@ const dn = { orientation: !1 }, Se = class Se {
3421
3434
  this.wrapper = document.createElement("div"), this.DEFAULT_INDENT_KEY = "Tab", this.lastResizeTimeout = null, this.cachedMaxWidthForContent = null, this.api = e, this.block = s, !n && "settings" in a && (n = (g = a.settings) != null ? g : {}), this.config = { indentSize: 24, maxIndent: 8, minIndent: 0, multiblock: !1, autoIndent: !1, tuneName: null, orientation: "horizontal", customBlockIndentLimits: {}, handleShortcut: void 0, direction: "ltr", directionChangeHandler: null, version: "2.30", ...n != null ? n : {} }, this.changeConfigBasedOnVersionIfNeeded(), (C = this.config) != null && C.directionChangeHandler && this.config.directionChangeHandler(this.alignmentChangeListener.bind(this));
3422
3435
  const c = (A = (M = this.config.customBlockIndentLimits[(b = (E = this.block) == null ? void 0 : E.name) != null ? b : ""]) == null ? void 0 : M.min) != null ? A : this.config.minIndent;
3423
3436
  this.data = { indentLevel: c, ...t != null ? t : {} }, this.config.multiblock && this.config.tuneName, window.addEventListener("resize", (R) => this.onResize.call(this, R)), this.api.events.on("block changed", ({ event: R }) => {
3424
- var X;
3437
+ var G;
3425
3438
  const H = R.detail.target.id;
3426
- ((X = this.block) == null ? void 0 : X.id) === H && this.shouldApplyAutoIndent && queueMicrotask(() => this.autoIndentBlock());
3439
+ ((G = this.block) == null ? void 0 : G.id) === H && this.shouldApplyAutoIndent && queueMicrotask(() => this.autoIndentBlock());
3427
3440
  });
3428
3441
  }
3429
3442
  static get isTune() {
@@ -3778,8 +3791,8 @@ class tt {
3778
3791
  (e = this.popover) == null || e.close(), this.wrapper.classList.remove(tt.CSS.toolboxShowed);
3779
3792
  }
3780
3793
  }
3781
- const gn = "tc-wrap", ei = "tc-wrap--readonly", fn = "tc-table", at = "tc-row", mn = "tc-table--heading", Dt = "tc-row--selected", lt = "tc-cell", Pt = "tc-cell--selected", zt = "tc-add-row", vn = "tc-add-row--disabled", Wt = "tc-add-column", Cn = "tc-add-column--disabled";
3782
- class ti {
3794
+ const gn = "tc-wrap", ti = "tc-wrap--readonly", fn = "tc-table", at = "tc-row", mn = "tc-table--heading", Dt = "tc-row--selected", lt = "tc-cell", Pt = "tc-cell--selected", zt = "tc-add-row", vn = "tc-add-row--disabled", Wt = "tc-add-column", Cn = "tc-add-column--disabled";
3795
+ class ni {
3783
3796
  constructor(e, t, n, s) {
3784
3797
  this.minCellWidhth = 50, this.defaultCellWidth = 100, this.handleDocumentMousedown = (a) => {
3785
3798
  this.wrapper.contains(a.target) && a.target.classList.contains("cell-resizable") && (a.preventDefault(), this.isDragging = !0, this.table.classList.add("table-resizing"), document.addEventListener("mousemove", this.handleDocumentMousemove), document.addEventListener("mouseup", this.handleDocumentMouseup), this.draggingColumn = this.hoveredColumn, this.startWidth = this.colWidthArr[this.draggingColumn - 1], this.mouseStartX = a.clientX);
@@ -3901,7 +3914,7 @@ class ti {
3901
3914
  t && t.classList.remove(vn), this.addHeadingAttrToFirstRow();
3902
3915
  }
3903
3916
  createTableWrapper() {
3904
- this.wrapper = He("div", gn), this.table = He("div", fn), this.readOnly && this.wrapper.classList.add(ei), this.wrapper.appendChild(this.toolboxRow.element), this.wrapper.appendChild(this.toolboxColumn.element), this.wrapper.appendChild(this.table);
3917
+ this.wrapper = He("div", gn), this.table = He("div", fn), this.readOnly && this.wrapper.classList.add(ti), this.wrapper.appendChild(this.toolboxRow.element), this.wrapper.appendChild(this.toolboxColumn.element), this.wrapper.appendChild(this.table);
3905
3918
  }
3906
3919
  computeInitialSize() {
3907
3920
  const e = this.data && this.data.content, t = Array.isArray(e), n = !!t && e.length, s = t ? e.length : void 0, a = n ? e[0].length : void 0, c = Number.parseInt(this.config && this.config.rows), g = Number.parseInt(this.config && this.config.cols), C = !isNaN(c) && c > 0 ? c : void 0, E = !isNaN(g) && g > 0 ? g : void 0;
@@ -4030,8 +4043,8 @@ class ti {
4030
4043
  getHoveredCell(e) {
4031
4044
  let t = this.hoveredRow, n = this.hoveredColumn;
4032
4045
  const { width: s, height: a, x: c, y: g } = function(A, R) {
4033
- const H = A.getBoundingClientRect(), { width: B, height: X, x: ie, y: de } = H, { clientX: fe, clientY: q } = R;
4034
- return { width: B, height: X, x: fe - ie, y: q - de };
4046
+ const H = A.getBoundingClientRect(), { width: B, height: G, x: ie, y: de } = H, { clientX: fe, clientY: q } = R;
4047
+ return { width: B, height: G, x: fe - ie, y: q - de };
4035
4048
  }(this.table, e);
4036
4049
  if (c >= 0) {
4037
4050
  const A = ({ fromLeftBorder: H }) => c < H, R = ({ fromRightBorder: H }) => c > s - H;
@@ -4074,7 +4087,7 @@ class ti {
4074
4087
  document.removeEventListener("click", this.documentClicked);
4075
4088
  }
4076
4089
  }
4077
- class ni {
4090
+ class ii {
4078
4091
  static get isReadOnlySupported() {
4079
4092
  return !0;
4080
4093
  }
@@ -4088,7 +4101,7 @@ class ni {
4088
4101
  return { icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-width="2" d="M10 5V18.5"/><path stroke="currentColor" stroke-width="2" d="M5 10H19"/><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/></svg>', title: "Table" };
4089
4102
  }
4090
4103
  render() {
4091
- return this.table = new ti(this.readOnly, this.api, this.data, this.config), this.container = He("div", this.api.styles.block), this.container.appendChild(this.table.getWrapper()), this.table.setHeadingsSetting(this.data.withHeadings), this.container;
4104
+ return this.table = new ni(this.readOnly, this.api, this.data, this.config), this.container = He("div", this.api.styles.block), this.container.appendChild(this.table.getWrapper()), this.table.setHeadingsSetting(this.data.withHeadings), this.container;
4092
4105
  }
4093
4106
  renderSettings() {
4094
4107
  return [{ label: this.api.i18n.t("With headings"), icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-width="2" d="M5 10H19"/><rect width="14" height="14" x="5" y="5" stroke="currentColor" stroke-width="2" rx="4"/></svg>', isActive: this.data.withHeadings, closeOnActivate: !0, toggle: !0, hint: { title: this.api.i18n.t("With headings") }, onActivate: () => {
@@ -4125,7 +4138,7 @@ function gt(_, e = null, t = {}) {
4125
4138
  return n;
4126
4139
  }
4127
4140
  var Lt = ((_) => (_.Empty = "empty", _.Uploading = "uploading", _.Filled = "filled", _))(Lt || {});
4128
- class ii {
4141
+ class si {
4129
4142
  constructor({ api: e, config: t, onSelectFile: n, readOnly: s }) {
4130
4143
  this.api = e, this.config = t, this.onSelectFile = n, this.readOnly = s, this.nodes = { wrapper: gt("div", [this.CSS.baseClass, this.CSS.wrapper]), imageContainer: gt("div", [this.CSS.imageContainer]), fileButton: this.createFileButton(), imageEl: void 0, imagePreloader: gt("div", this.CSS.imagePreloader), caption: gt("div", [this.CSS.input, this.CSS.caption], { contentEditable: !this.readOnly }) }, this.nodes.caption.dataset.placeholder = this.config.captionPlaceholder, this.nodes.imageContainer.appendChild(this.nodes.imagePreloader), this.nodes.wrapper.appendChild(this.nodes.imageContainer), this.nodes.wrapper.appendChild(this.nodes.caption), this.nodes.wrapper.appendChild(this.nodes.fileButton);
4131
4144
  }
@@ -4163,12 +4176,12 @@ class ii {
4163
4176
  createFileButton() {
4164
4177
  var t;
4165
4178
  const e = gt("div", [this.CSS.button]);
4166
- return e.innerHTML = (t = this.config.buttonContent) != null ? t : `${yn} ${this.api.i18n.t("Select an Image")}`, e.addEventListener("click", () => {
4179
+ return e.innerHTML = (t = this.config.buttonContent) != null ? t : `${kn} ${this.api.i18n.t("Select an Image")}`, e.addEventListener("click", () => {
4167
4180
  this.onSelectFile();
4168
4181
  }), e;
4169
4182
  }
4170
4183
  }
4171
- class si {
4184
+ class ri {
4172
4185
  constructor({ config: e, onUpload: t, onError: n }) {
4173
4186
  this.config = e, this.onUpload = t, this.onError = n;
4174
4187
  }
@@ -4176,24 +4189,24 @@ class si {
4176
4189
  var H;
4177
4190
  let n = "", s = "";
4178
4191
  const a = await function(B = {}) {
4179
- let X = !0;
4192
+ let G = !0;
4180
4193
  return new Promise((ie, de) => {
4181
4194
  let fe = document.createElement("INPUT");
4182
4195
  fe.type = "file", B.multiple && fe.setAttribute("multiple", "multiple"), B.accept && fe.setAttribute("accept", B.accept), fe.style.display = "none", document.body.appendChild(fe), fe.addEventListener("change", (q) => {
4183
- X = !1;
4196
+ G = !1;
4184
4197
  const ye = q.target.files;
4185
4198
  ie(ye), document.body.removeChild(fe);
4186
4199
  }, !1), window.addEventListener("focus", () => {
4187
4200
  setTimeout(() => {
4188
- X && ie([]);
4201
+ G && ie([]);
4189
4202
  }, 1e3);
4190
4203
  }, { once: !0 }), fe.click();
4191
4204
  });
4192
4205
  }({ accept: (H = this.config.types) != null ? H : "image/*" });
4193
4206
  if (!(a && a.length > 0)) return void t();
4194
4207
  (function(B) {
4195
- const X = new FileReader();
4196
- X.readAsDataURL(B), X.onload = (ie) => {
4208
+ const G = new FileReader();
4209
+ G.readAsDataURL(B), G.onload = (ie) => {
4197
4210
  e(ie.target.result);
4198
4211
  };
4199
4212
  })(a[0]);
@@ -4202,8 +4215,8 @@ class si {
4202
4215
  if (!g.includes(E.toLowerCase())) return void this.onError("文件类型不支持");
4203
4216
  let b = {};
4204
4217
  if (this.config.tokenInfo) {
4205
- const B = this.config.tokenInfo.token, X = this.config.tokenInfo.tokenName, ie = this.config.tokenInfo.tokenPrefix;
4206
- B && X && (b[X] = ie + " " + B);
4218
+ const B = this.config.tokenInfo.token, G = this.config.tokenInfo.tokenName, ie = this.config.tokenInfo.tokenPrefix;
4219
+ B && G && (b[G] = ie + " " + B);
4207
4220
  }
4208
4221
  b["Content-Type"] = "application/json";
4209
4222
  const M = Et.create({ timeout: 18e5, headers: b }), A = await M.post(this.config.endpoints.byFile, { fileName: c.name, contentType: c.type });
@@ -4211,8 +4224,8 @@ class si {
4211
4224
  const R = A.data;
4212
4225
  if (!R.success) return void this.onError(R.message);
4213
4226
  n = R.data.cdn, n && !n.endsWith && (n += "/"), s = R.data.objectKey, Et.create({ timeout: 18e5, headers: { "Content-Type": c.type } }).put(R.data.presignedUrl, c).then((B) => {
4214
- let X = {};
4215
- X = B.status === 200 ? { success: 1, file: { url: n + s } } : { success: 0, message: B.statusText }, this.onUpload(X);
4227
+ let G = {};
4228
+ G = B.status === 200 ? { success: 1, file: { url: n + s } } : { success: 0, message: B.statusText }, this.onUpload(G);
4216
4229
  }).catch((B) => {
4217
4230
  this.onError(B);
4218
4231
  });
@@ -4258,7 +4271,7 @@ class si {
4258
4271
  class Rt {
4259
4272
  constructor({ data: e, config: t, api: n, readOnly: s, block: a }) {
4260
4273
  var c;
4261
- this.isCaptionEnabled = null, this.api = n, this.block = a, this.config = { endpoints: t.endpoints, additionalRequestData: t.additionalRequestData, additionalRequestHeaders: t.additionalRequestHeaders, field: t.field, types: t.types, captionPlaceholder: this.api.i18n.t((c = t.captionPlaceholder) != null ? c : "Caption"), buttonContent: t.buttonContent, uploader: t.uploader, actions: t.actions, features: t.features || {}, tokenInfo: t.tokenInfo }, this.uploader = new si({ config: this.config, onUpload: (g) => this.onUpload(g), onError: (g) => this.uploadingFailed(g) }), this.ui = new ii({ api: n, config: this.config, onSelectFile: () => {
4274
+ this.isCaptionEnabled = null, this.api = n, this.block = a, this.config = { endpoints: t.endpoints, additionalRequestData: t.additionalRequestData, additionalRequestHeaders: t.additionalRequestHeaders, field: t.field, types: t.types, captionPlaceholder: this.api.i18n.t((c = t.captionPlaceholder) != null ? c : "Caption"), buttonContent: t.buttonContent, uploader: t.uploader, actions: t.actions, features: t.features || {}, tokenInfo: t.tokenInfo }, this.uploader = new ri({ config: this.config, onUpload: (g) => this.onUpload(g), onError: (g) => this.uploadingFailed(g) }), this.ui = new si({ api: n, config: this.config, onSelectFile: () => {
4262
4275
  this.uploader.uploadSelectedFile({ onPreview: (g) => {
4263
4276
  this.ui.showPreloader(g);
4264
4277
  }, noSelectedFile: () => {
@@ -4276,7 +4289,7 @@ class Rt {
4276
4289
  return !0;
4277
4290
  }
4278
4291
  static get toolbox() {
4279
- return { icon: yn, title: "Image" };
4292
+ return { icon: kn, title: "Image" };
4280
4293
  }
4281
4294
  static get tunes() {
4282
4295
  return [{ name: "withBorder", icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18.9919 9.5H19.0015"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.5 5H14.5096"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M14.625 5H15C17.2091 5 19 6.79086 19 9V9.375"/><path stroke="currentColor" stroke-width="2" d="M9.375 5L9 5C6.79086 5 5 6.79086 5 9V9.375"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.3725 5H9.38207"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 9.5H5.00957"/><path stroke="currentColor" stroke-width="2" d="M9.375 19H9C6.79086 19 5 17.2091 5 15V14.625"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.3725 19H9.38207"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 14.55H5.00957"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 13V16M16 19V16M19 16H16M16 16H13"/></svg>', title: "With border", toggle: !0 }, { name: "stretched", icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 9L20 12L17 15"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 12H20"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 9L4 12L7 15"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 12H10"/></svg>', title: "Stretch image", toggle: !0 }, { name: "withBackground", icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 19V19C9.13623 19 8.20435 19 7.46927 18.6955C6.48915 18.2895 5.71046 17.5108 5.30448 16.5307C5 15.7956 5 14.8638 5 13V12C5 9.19108 5 7.78661 5.67412 6.77772C5.96596 6.34096 6.34096 5.96596 6.77772 5.67412C7.78661 5 9.19108 5 12 5H13.5C14.8956 5 15.5933 5 16.1611 5.17224C17.4395 5.56004 18.44 6.56046 18.8278 7.83886C19 8.40666 19 9.10444 19 10.5V10.5"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M16 13V16M16 19V16M19 16H16M16 16H13"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6.5 17.5L17.5 6.5"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18.9919 10.5H19.0015"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.9919 19H11.0015"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13L13 5"/></svg>', title: "With background", toggle: !0 }];
@@ -4295,7 +4308,7 @@ class Rt {
4295
4308
  renderSettings() {
4296
4309
  var a;
4297
4310
  const e = Rt.tunes.concat(this.config.actions || []), t = { border: "withBorder", background: "withBackground", stretch: "stretched", caption: "caption" };
4298
- ((a = this.config.features) == null ? void 0 : a.caption) === "optional" && e.push({ name: "caption", icon: kn, title: "With caption", toggle: !0 });
4311
+ ((a = this.config.features) == null ? void 0 : a.caption) === "optional" && e.push({ name: "caption", icon: bn, title: "With caption", toggle: !0 });
4299
4312
  const n = e.filter((c) => {
4300
4313
  var C, E;
4301
4314
  const g = Object.keys(t).find((b) => t[b] === c.name);
@@ -4374,7 +4387,7 @@ class Rt {
4374
4387
  this.ui.showPreloader(e), this.uploader.uploadByUrl(e);
4375
4388
  }
4376
4389
  }
4377
- class ri {
4390
+ class oi {
4378
4391
  constructor({ api: e, data: t, config: n, block: s }) {
4379
4392
  var a, c, g, C, E, b, M, A, R;
4380
4393
  this.settings = [], this.api = e, this.block = s, this.data = { floatLeft: (a = t == null ? void 0 : t.floatLeft) != null ? a : !1, floatRight: (c = t == null ? void 0 : t.floatRight) != null ? c : !1, center: (g = t == null ? void 0 : t.center) != null ? g : !1, sizeSmall: (C = t == null ? void 0 : t.sizeSmall) != null ? C : !1, sizeMiddle: (E = t == null ? void 0 : t.sizeMiddle) != null ? E : !1, sizeLarge: (b = t == null ? void 0 : t.sizeLarge) != null ? b : !1, resize: (A = (M = t == null ? void 0 : t.resize) != null ? M : n == null ? void 0 : n.resize) != null ? A : !1, resizeSize: (R = t == null ? void 0 : t.resizeSize) != null ? R : 0 }, this.wrapper = void 0, this.buttons = [], this.styles = { settingsButton: "cdx-settings-button", settingsButtonActive: "cdx-settings-button--active", settingsButtonModifier: "", settingsButtonModifierActive: "" };
@@ -4598,7 +4611,7 @@ class nt {
4598
4611
  this.rangy.removeAllRanges();
4599
4612
  }
4600
4613
  }
4601
- class oi {
4614
+ class ai {
4602
4615
  constructor({ api: e, config: t }) {
4603
4616
  this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new nt("bold", t.rangy);
4604
4617
  }
@@ -4623,7 +4636,7 @@ class oi {
4623
4636
  return "CMD+B";
4624
4637
  }
4625
4638
  }
4626
- class ai {
4639
+ class li {
4627
4640
  constructor({ api: e, config: t }) {
4628
4641
  this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new nt("strikethrough", t.rangy);
4629
4642
  }
@@ -4648,7 +4661,7 @@ class ai {
4648
4661
  return "CMD+SHIFT+X";
4649
4662
  }
4650
4663
  }
4651
- class li {
4664
+ class ci {
4652
4665
  constructor({ api: e, config: t }) {
4653
4666
  this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new nt("italic", t.rangy);
4654
4667
  }
@@ -4673,7 +4686,7 @@ class li {
4673
4686
  return "CMD+I";
4674
4687
  }
4675
4688
  }
4676
- class ci {
4689
+ class di {
4677
4690
  constructor({ api: e, config: t }) {
4678
4691
  this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new nt("code", t.rangy);
4679
4692
  }
@@ -4698,7 +4711,7 @@ class ci {
4698
4711
  return "CMD+SHIFT+C";
4699
4712
  }
4700
4713
  }
4701
- class di {
4714
+ class hi {
4702
4715
  constructor({ api: e, config: t }) {
4703
4716
  this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new nt("underline", t.rangy);
4704
4717
  }
@@ -4723,7 +4736,7 @@ class di {
4723
4736
  return "CMD+U";
4724
4737
  }
4725
4738
  }
4726
- class hi {
4739
+ class ui {
4727
4740
  constructor({ api: e, config: t }) {
4728
4741
  this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new nt("mark", t.rangy);
4729
4742
  }
@@ -4745,7 +4758,7 @@ class hi {
4745
4758
  return { span: { class: !0 } };
4746
4759
  }
4747
4760
  }
4748
- class ui {
4761
+ class pi {
4749
4762
  constructor({ api: e, config: t }) {
4750
4763
  this.input = null, this.okbtn = null, this.ENTER_KEY = 13, this.inputOpened = !1, this.isFakeBackgroundEnabled = !1, this.api = e, this.button = null, this.i18n = e.i18n, this.rangy = t.rangy, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, this.inlineToolUtils = new nt("link", t.rangy);
4751
4764
  }
@@ -4808,7 +4821,7 @@ class ui {
4808
4821
  checkState() {
4809
4822
  var t;
4810
4823
  const e = this.inlineToolUtils.checkState();
4811
- return (t = this.button) == null || t.classList.toggle(this.iconClasses.active, e), this.button.innerHTML = e ? bn : nn, e;
4824
+ return (t = this.button) == null || t.classList.toggle(this.iconClasses.active, e), this.button.innerHTML = e ? Sn : nn, e;
4812
4825
  }
4813
4826
  static get sanitize() {
4814
4827
  return { a: { class: !0, href: !0, target: !0 } };
@@ -4820,7 +4833,7 @@ class ui {
4820
4833
  this.closeActions();
4821
4834
  }
4822
4835
  }
4823
- class pi {
4836
+ class gi {
4824
4837
  constructor({ api: e, config: t }) {
4825
4838
  this.colors = { none: "inherit", "#646a73": "cel-inline-gray-text", "#d83931": "cel-inline-pink-text", "#de7802": "cel-inline-orange-text", "#dc9b04": "cel-inline-yellow-text", "#2ea121": "cel-inline-green-text", "#245bdb": "cel-inline-blue-text", "#6425d0": "cel-inline-purple-text" }, this.columns = 4, this.isChecked = !1, this.api = e, this.button = null, this.iconClasses = { base: this.api.styles.inlineToolButton, active: this.api.styles.inlineToolButtonActive }, t.colors && (this.colors = t.colors), t.columns && (this.columns = t.columns), this.rangy = t.rangy, this.inlineToolUtils = new nt("color", t.rangy);
4826
4839
  }
@@ -4861,10 +4874,10 @@ class pi {
4861
4874
  return { span: { class: !0, style: !0 } };
4862
4875
  }
4863
4876
  }
4864
- const gi = { class: "ebl-editor", id: "holder" }, fi = Ln({ name: "EblEditor", inheritAttrs: !1, __name: "Editor", props: { readOnly: { type: Boolean, default: !1 }, placeholder: { default: "Enter something" }, data: { default: () => ({ blocks: [] }) }, locale: { default: {} }, tokenInfo: { default: { token: "", tokenName: "Authorization", tokenPrefix: "Bearer" } } }, emits: ["onReady", "onChange"], setup(_, { expose: e, emit: t }) {
4877
+ const fi = { class: "ebl-editor", id: "holder" }, mi = xn({ name: "EblEditor", inheritAttrs: !1, __name: "Editor", props: { readOnly: { type: Boolean, default: !1 }, placeholder: { default: "Enter something" }, data: { default: () => ({ blocks: [] }) }, locale: { default: {} }, tokenInfo: { default: { token: "", tokenName: "Authorization", tokenPrefix: "Bearer" } } }, emits: ["onReady", "onChange"], setup(_, { expose: e, emit: t }) {
4865
4878
  let n = Wn();
4866
4879
  n = Fn(n), n = function(H) {
4867
- return H.createModule("SaveRestore", ["WrappedSelection"], function(B, X) {
4880
+ return H.createModule("SaveRestore", ["WrappedSelection"], function(B, G) {
4868
4881
  var ie = B.dom, de = ie.removeNode, fe = B.Selection.isDirectionBackward;
4869
4882
  function q(V, re) {
4870
4883
  return (re || document).getElementById(V);
@@ -4875,7 +4888,7 @@ const gi = { class: "ebl-editor", id: "holder" }, fi = Ln({ name: "EblEditor", i
4875
4888
  }
4876
4889
  function $e(V, re, Q, ae) {
4877
4890
  var le = q(Q, V);
4878
- le ? (re[ae ? "setStartBefore" : "setEndBefore"](le), de(le)) : X.warn("Marker element has been removed. Cannot restore selection.");
4891
+ le ? (re[ae ? "setStartBefore" : "setEndBefore"](le), de(le)) : G.warn("Marker element has been removed. Cannot restore selection.");
4879
4892
  }
4880
4893
  function Ae(V, re) {
4881
4894
  return re.compareBoundaryPoints(V.START_TO_START, V);
@@ -4896,7 +4909,7 @@ const gi = { class: "ebl-editor", id: "holder" }, fi = Ln({ name: "EblEditor", i
4896
4909
  le.style.display = "inline";
4897
4910
  var ve = le.previousSibling;
4898
4911
  ve && ve.nodeType == 3 ? (de(le), ae.collapseToPoint(ve, ve.length)) : (ae.collapseBefore(le), de(le));
4899
- } else X.warn("Marker element has been removed. Cannot restore selection.");
4912
+ } else G.warn("Marker element has been removed. Cannot restore selection.");
4900
4913
  } else $e(Q, ae, V.startMarkerId, !0), $e(Q, ae, V.endMarkerId, !1);
4901
4914
  return re && ae.normalizeBoundaries(), ae;
4902
4915
  }
@@ -4916,7 +4929,7 @@ const gi = { class: "ebl-editor", id: "holder" }, fi = Ln({ name: "EblEditor", i
4916
4929
  Q && de(Q);
4917
4930
  }
4918
4931
  B.util.extend(B, { saveRange: Be, restoreRange: Ye, saveRanges: Oe, restoreRanges: _e, saveSelection: function(V) {
4919
- if (!B.isSelectionValid(V)) return X.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."), null;
4932
+ if (!B.isSelectionValid(V)) return G.warn("Cannot save selection. This usually happens when the selection is collapsed and the selection document has lost focus."), null;
4920
4933
  var re = B.getSelection(V), Q = re.getAllRanges(), ae = Q.length == 1 && re.isBackward(), le = Oe(Q, ae);
4921
4934
  return ae ? re.setSingleRange(Q[0], ae) : re.setRanges(Q), { win: V, rangeInfos: le, restored: !1 };
4922
4935
  }, restoreSelection: function(V, re) {
@@ -4929,19 +4942,19 @@ const gi = { class: "ebl-editor", id: "holder" }, fi = Ln({ name: "EblEditor", i
4929
4942
  } });
4930
4943
  }), H;
4931
4944
  }(n);
4932
- const s = xn("EblEditorSettings");
4945
+ const s = Rn("EblEditorSettings");
4933
4946
  let a = t;
4934
4947
  const c = _;
4935
4948
  let g = { blocks: [] }, C = null, E = null;
4936
4949
  const b = ["indent", "blockAlignment"], M = ["linkTool", "boldTool", "strikethrough", "italicTool", "inlineCode", "underline", "Color", "marker"];
4937
- Rn(() => {
4938
- n.init(), C = new On({ minHeight: 300, holder: "holder", autofocus: !0, defaultBlock: "paragraph", placeholder: c.placeholder, tunes: b, tools: { linkTool: { class: ui, config: { rangy: n }, shortcut: "CMD+K" }, boldTool: { class: oi, config: { rangy: n }, shortcut: "CMD+B" }, strikethrough: { class: ai, config: { rangy: n }, shortcut: "CMD+SHIFT+X" }, italicTool: { class: li, config: { rangy: n }, shortcut: "CMD+I" }, inlineCode: { class: ci, config: { rangy: n }, shortcut: "CMD+SHIFT+C" }, underline: { class: di, config: { rangy: n }, shortcut: "CMD+U" }, Color: { class: pi, config: { rangy: n } }, marker: { class: hi, config: { rangy: n } }, indent: { class: Ut }, alert: { class: et, inlineToolbar: M }, List: { class: xt, inlineToolbar: M, config: { defaultStyle: "checklist", maxLevel: 4 } }, h1: { class: jn, inlineToolbar: M }, h2: { class: qn, inlineToolbar: M }, h3: { class: Vn, inlineToolbar: M }, h4: { class: Kn, inlineToolbar: M }, h5: { class: Yn, inlineToolbar: M }, h6: { class: Gn, inlineToolbar: M }, paragraph: { class: qt, inlineToolbar: M }, blockAlignment: { class: jt, inlineToolbar: !1 }, code: { tunes: [], class: St, config: { lang: "javascript", theme: "github-dark-dimmed" } }, quote: { tunes: ["blockAlignment"], class: Xn, inlineToolbar: M }, delimiter: Qn, table: { class: ni, inlineToolbar: M, config: { rows: 2, cols: 3 } }, image: { class: Rt, inlineToolbar: !1, tunes: b.concat(["imageResize"]), config: { types: ".png,.jpeg,.jpg,.gif,.webp", tokenInfo: c.tokenInfo, endpoints: { byFile: s == null ? void 0 : s.fileUploadEndpoint }, features: { caption: !1, stretch: !1, border: !1, background: !1 } } }, imageResize: { class: ri, config: { resize: !0, crop: !1 } } }, readOnly: c.readOnly, i18n: c.locale, onChange: (H, B) => {
4950
+ Nn(() => {
4951
+ n.init(), C = new In({ minHeight: 300, holder: "holder", autofocus: !0, defaultBlock: "paragraph", placeholder: c.placeholder, tunes: b, tools: { linkTool: { class: pi, config: { rangy: n }, shortcut: "CMD+K" }, boldTool: { class: ai, config: { rangy: n }, shortcut: "CMD+B" }, strikethrough: { class: li, config: { rangy: n }, shortcut: "CMD+SHIFT+X" }, italicTool: { class: ci, config: { rangy: n }, shortcut: "CMD+I" }, inlineCode: { class: di, config: { rangy: n }, shortcut: "CMD+SHIFT+C" }, underline: { class: hi, config: { rangy: n }, shortcut: "CMD+U" }, Color: { class: gi, config: { rangy: n } }, marker: { class: ui, config: { rangy: n } }, indent: { class: Ut }, alert: { class: et, inlineToolbar: M }, List: { class: xt, inlineToolbar: M, config: { defaultStyle: "checklist", maxLevel: 4 } }, h1: { class: qn, inlineToolbar: M }, h2: { class: Vn, inlineToolbar: M }, h3: { class: Kn, inlineToolbar: M }, h4: { class: Yn, inlineToolbar: M }, h5: { class: Xn, inlineToolbar: M }, h6: { class: Gn, inlineToolbar: M }, paragraph: { class: qt, inlineToolbar: M }, blockAlignment: { class: jt, inlineToolbar: !1 }, code: { tunes: [], class: St, config: { lang: "javascript", theme: "github-dark-dimmed" } }, quote: { tunes: ["blockAlignment"], class: Qn, inlineToolbar: M }, delimiter: Zn, table: { class: ii, inlineToolbar: M, config: { rows: 2, cols: 3 } }, image: { class: Rt, inlineToolbar: !1, tunes: b.concat(["imageResize"]), config: { types: ".png,.jpeg,.jpg,.gif,.webp", tokenInfo: c.tokenInfo, endpoints: { byFile: s == null ? void 0 : s.fileUploadEndpoint }, features: { caption: !1, stretch: !1, border: !1, background: !1 } } }, imageResize: { class: oi, config: { resize: !0, crop: !1 } } }, readOnly: c.readOnly, i18n: c.locale, onChange: (H, B) => {
4939
4952
  a("onChange", H, B);
4940
4953
  }, onReady: () => {
4941
- new $n("holder", c.readOnly, C, "1px solid #999"), new Un("holder", c.readOnly), c.data && c.data.blocks && c.data.blocks.length > 0 && (E = new Jn({ editor: C, config: { debounceTimer: 200, maxLength: 100 }, onUpdate: () => {
4954
+ new $n("holder", c.readOnly, C, "1px solid #999"), new Un("holder", c.readOnly), new jn("holder", c.readOnly, C), c.data && c.data.blocks && c.data.blocks.length > 0 && (E = new ei({ editor: C, config: { debounceTimer: 200, maxLength: 100 }, onUpdate: () => {
4942
4955
  } }), g = Mt(c.data), E.initialize(g), R(g)), a("onReady");
4943
4956
  } });
4944
- }), Nn(() => {
4957
+ }), An(() => {
4945
4958
  C !== null && (C.destroy(), C = null);
4946
4959
  });
4947
4960
  let A = !1;
@@ -4952,32 +4965,32 @@ const gi = { class: "ebl-editor", id: "holder" }, fi = Ln({ name: "EblEditor", i
4952
4965
  });
4953
4966
  }));
4954
4967
  }
4955
- return An(() => c.data, (H, B) => {
4968
+ return _n(() => c.data, (H, B) => {
4956
4969
  H && H.blocks && H.blocks.length !== 0 && (g = Mt(H), R(Mt(H)), E != null && (E.clear(), E.initialize(g)));
4957
4970
  }, { deep: !0 }), e({ validate: function() {
4958
4971
  return new Promise((H, B) => {
4959
4972
  if (C === null) return H(!1);
4960
- C.save().then((X) => X.blocks.length > 0 ? H(!0) : H(!1));
4973
+ C.save().then((G) => G.blocks.length > 0 ? H(!0) : H(!1));
4961
4974
  });
4962
4975
  }, getData: function() {
4963
4976
  return new Promise((H, B) => {
4964
4977
  if (C === null) return H(null);
4965
- C.save().then((X) => H(X));
4978
+ C.save().then((G) => H(G));
4966
4979
  });
4967
- } }), (H, B) => (Mn(), _n("div", gi));
4968
- } }), wn = [fi];
4969
- let Sn = [];
4980
+ } }), (H, B) => (On(), Mn("div", fi));
4981
+ } }), wn = [mi];
4982
+ let Tn = [];
4970
4983
  for (let _ in wn) {
4971
4984
  const e = zn(wn[_]);
4972
- Sn.push(e);
4985
+ Tn.push(e);
4973
4986
  }
4974
- const bi = { messages: { ui: { blockTunes: { toggler: { "Click to tune": "可拖拽和点击" } }, toolbar: { toolbox: { Add: "添加", Filter: "过滤", "Nothing found": "无内容" }, popover: { Filter: "过滤", "Nothing found": "无内容" } }, popover: { Filter: "筛选", "Nothing found": "未找到任何内容", "Convert to": "转化为", "Add below": "在下方插入" } }, toolNames: { Text: "段落", H1: "一级标题", H2: "二级标题", H3: "三级标题", H4: "四级标题", H5: "五级标题", H6: "六级标题", "Ordered List": "有序列表", "Unordered List": "无序列表", Checklist: "任务列表", Quote: "引用", Code: "代码块", Delimiter: "分割线", Link: "链接", LinkTool: "链接", Bold: "加粗", BoldTool: "粗体", Italic: "倾斜", ItalicTool: "斜体", Alert: "高亮块", indent: "缩进", Marker: "文本高亮", Color: "文本颜色", Underline: "下划线", InlineCode: "行内代码", Table: "表格", Image: "图片", Strikethrough: "删除线" }, tools: { image: { "Couldn’t upload image. Please try another.": "上传图片失败,请稍后重试。" }, table: { "Add row above": "在上面插入行", "Add row below": "在下面插入行", "Delete row": "删除行", "Add column to left": "在左边插入列", "Add column to right": "在右边插入列", "Delete column": "删除列", "With headings": "使用标题行", "Without headings": "不使用标题行" }, marker: { Marker: "突出显示" }, linkTool: { "Add a link": "添加链接", Save: "确定", "Pasted link is not valid.": "链接地址无效" }, List: { Unordered: "无序", Ordered: "有序", Checklist: "任务列表", "Counter type": "计数器类型", Numeric: "阿拉伯数字", "Lower Roman": "小写罗马数字", "Upper Roman": "大写罗马数字", "Lower Alpha": "小写字母", "Upper Alpha": "大写字母", "Start with": "开始序号" }, paragraph: { "Enter something": "请输入内容" }, stub: { "The block can not be displayed correctly.": "该模块不能放置在这里" }, code: { "Enter your code": "输入代码", Copied: "已复制", "Unable to copy": "复制失败" }, convertTo: { "Convert to": "转化为" }, alert: { "alert-primary": "主要样式", "alert-secondary": "次要样式", "alert-info": "信息", "alert-success": "成功", "alert-warning": "警告", "alert-danger": "危险", "alert-light": "浅色", "alert-dark": "深色", "align-left": "左对齐", "align-center": "居中", "align-right": "右对齐", "Type here...": "输入内容" }, Color: { "#646a73": "灰色", "#d83931": "红色", "#de7802": "橙色", "#dc9b04": "黄色", "#2ea121": "绿色", "#245bdb": "蓝色", "#6425d0": "紫色", none: "恢复默认" } }, blockTunes: { delete: { Delete: "删除", "Click to delete": "点击删除" }, moveUp: { "Move up": "向上移" }, moveDown: { "Move down": "向下移" }, filter: { Filter: "过滤" }, blockAlignment: { "left align": "左对齐", "center align": "居中对齐", "right align": "右对齐", "justify align": "两端对齐" }, indent: { "Indent right": "向右缩进", "Indent left": "向左缩进" } } } }, Tn = /* @__PURE__ */ ((_ = []) => ({ version: "2.31.51", install: (e, t) => {
4987
+ const Si = { messages: { ui: { blockTunes: { toggler: { "Click to tune": "可拖拽和点击" } }, toolbar: { toolbox: { Add: "添加", Filter: "过滤", "Nothing found": "无内容" }, popover: { Filter: "过滤", "Nothing found": "无内容" } }, popover: { Filter: "筛选", "Nothing found": "未找到任何内容", "Convert to": "转化为", "Add below": "在下方插入" } }, toolNames: { Text: "段落", H1: "一级标题", H2: "二级标题", H3: "三级标题", H4: "四级标题", H5: "五级标题", H6: "六级标题", "Ordered List": "有序列表", "Unordered List": "无序列表", Checklist: "任务列表", Quote: "引用", Code: "代码块", Delimiter: "分割线", Link: "链接", LinkTool: "链接", Bold: "加粗", BoldTool: "粗体", Italic: "倾斜", ItalicTool: "斜体", Alert: "高亮块", indent: "缩进", Marker: "文本高亮", Color: "文本颜色", Underline: "下划线", InlineCode: "行内代码", Table: "表格", Image: "图片", Strikethrough: "删除线" }, tools: { image: { "Couldn’t upload image. Please try another.": "上传图片失败,请稍后重试。" }, table: { "Add row above": "在上面插入行", "Add row below": "在下面插入行", "Delete row": "删除行", "Add column to left": "在左边插入列", "Add column to right": "在右边插入列", "Delete column": "删除列", "With headings": "使用标题行", "Without headings": "不使用标题行" }, marker: { Marker: "突出显示" }, linkTool: { "Add a link": "添加链接", Save: "确定", "Pasted link is not valid.": "链接地址无效" }, List: { Unordered: "无序", Ordered: "有序", Checklist: "任务列表", "Counter type": "计数器类型", Numeric: "阿拉伯数字", "Lower Roman": "小写罗马数字", "Upper Roman": "大写罗马数字", "Lower Alpha": "小写字母", "Upper Alpha": "大写字母", "Start with": "开始序号" }, paragraph: { "Enter something": "请输入内容" }, stub: { "The block can not be displayed correctly.": "该模块不能放置在这里" }, code: { "Enter your code": "输入代码", Copied: "已复制", "Unable to copy": "复制失败" }, convertTo: { "Convert to": "转化为" }, alert: { "alert-primary": "主要样式", "alert-secondary": "次要样式", "alert-info": "信息", "alert-success": "成功", "alert-warning": "警告", "alert-danger": "危险", "alert-light": "浅色", "alert-dark": "深色", "align-left": "左对齐", "align-center": "居中", "align-right": "右对齐", "Type here...": "输入内容" }, Color: { "#646a73": "灰色", "#d83931": "红色", "#de7802": "橙色", "#dc9b04": "黄色", "#2ea121": "绿色", "#245bdb": "蓝色", "#6425d0": "紫色", none: "恢复默认" } }, blockTunes: { delete: { Delete: "删除", "Click to delete": "点击删除" }, moveUp: { "Move up": "向上移" }, moveDown: { "Move down": "向下移" }, filter: { Filter: "过滤" }, blockAlignment: { "left align": "左对齐", "center align": "居中对齐", "right align": "右对齐", "justify align": "两端对齐" }, indent: { "Indent right": "向右缩进", "Indent left": "向左缩进" } } } }, En = /* @__PURE__ */ ((_ = []) => ({ version: "2.31.53", install: (e, t) => {
4975
4988
  e[Kt] || (e[Kt] = !0, _.forEach((n) => e.use(n)), e.provide("EblEditorSettings", t));
4976
- } }))(Sn), Si = Tn.install, Ti = Tn.version;
4989
+ } }))(Tn), Ti = En.install, Ei = En.version;
4977
4990
  export {
4978
- fi as EblEditor,
4979
- Tn as default,
4980
- Si as install,
4981
- Ti as version,
4982
- bi as zhCn
4991
+ mi as EblEditor,
4992
+ En as default,
4993
+ Ti as install,
4994
+ Ei as version,
4995
+ Si as zhCn
4983
4996
  };