@ckeditor/ckeditor5-source-editing-enhanced 48.8.1-alpha.0 → 48.8.1-alpha.1

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.js +1 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x1f714f,PendingActions as _0x349183,Plugin as _0x378970}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x38ae71,formatHtml as _0xa2f080,env as _0x37439c,uid as _0x389ead}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x5e1448}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x2f8350,ButtonView as _0x4aab84,MenuBarMenuListItemButtonView as _0x55e078}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x10b471,crosshairCursor as _0x38377c,drawSelection as _0x167204,dropCursor as _0x1d5539,lineNumbers as _0x514d4a,highlightActiveLine as _0x3742fb,highlightActiveLineGutter as _0x4d40f4,highlightSpecialChars as _0x1a2086,rectangularSelection as _0x4d68e8,keymap as _0x48f50b}from'@codemirror/view';import{Compartment as _0x48e64f,Transaction as _0x2465a6}from'@codemirror/state';import{bracketMatching as _0x211c0c,foldGutter as _0x355a3d,indentOnInput as _0x2d7688,syntaxHighlighting as _0x549c0f,defaultHighlightStyle as _0xbb4624,foldKeymap as _0x474f5c}from'@codemirror/language';import{toggleTabFocusMode as _0x10e52d,history as _0xa0a49,defaultKeymap as _0x262d50,historyKeymap as _0x288283,indentLess as _0x2e9521,indentMore as _0x5e46ed,redo as _0x34ea14,undo as _0xf64b36}from'@codemirror/commands';import{autocompletion as _0x481f8e,closeBrackets as _0xb0a8ee,closeBracketsKeymap as _0x2bb449,completionKeymap as _0x31f939}from'@codemirror/autocomplete';import{html as _0x102170}from'@codemirror/lang-html';import{markdown as _0xf15cc4}from'@codemirror/lang-markdown';import{oneDark as _0x2853dd}from'@codemirror/theme-one-dark';function q(_0x3acf7f,_0x21c3eb){const t=_0x3acf7f['t'];switch(_0x21c3eb){case'Edit\x20source\x20modal\x20label':return t({'string':'Edit\x20source','id':'Edit\x20source\x20modal\x20label'});case'Source':return t('Source');case'Source\x20Editing\x20Enhanced':return t('Source\x20Editing\x20Enhanced');case'Copy\x20line\x20down':return t('Copy\x20line\x20down');case'Copy\x20line\x20up':return t('Copy\x20line\x20up');case'Delete\x20line':return t('Delete\x20line');case'Indent\x20less':return t('Indent\x20less');case'Indent\x20more':return t('Indent\x20more');case'Fold\x20all':return t('Fold\x20all');case'Fold\x20code\x20(current\x20level)':return t('Fold\x20code\x20(current\x20level)');case'Move\x20line\x20down':return t('Move\x20line\x20down');case'Move\x20line\x20up':return t('Move\x20line\x20up');case'Redo\x20(keystroke)':return t({'id':'Redo\x20(keystroke)','string':'Redo'});case'Select\x20line':return t('Select\x20line');case'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode':return t('Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode');case'Toggle\x20block\x20comment':return t('Toggle\x20block\x20comment');case'Toggle\x20comment':return t('Toggle\x20comment');case'Undo\x20(keystroke)':return t({'id':'Undo\x20(keystroke)','string':'Undo'});case'Unfold\x20all':return t('Unfold\x20all');case'Unfold\x20code\x20(current\x20level)':return t('Unfold\x20code\x20(current\x20level)');case'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.':return t('Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.');case'Cancel':return t('Cancel');case'Save':return t('Save');default:return _0x21c3eb;}}function H(_0xdf8847){const _0x4f18c9=_0xdf8847['editing']['view']['document']['roots'],_0x235609=_0x4f18c9['length'];if(0x0===_0x235609)throw new _0x38ae71('source-editing-enhanced-editor-no-root',_0xdf8847);if(0x1===_0x235609)return _0x4f18c9['first']['rootName'];return Array['from'](_0xdf8847['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x38eea8){return J(_0x38eea8['replace'](/^[\n\s]*/g,''))?_0x38eea8['replace'](/\s+/g,''):_0x38eea8;}function J(_0x47773a){return _0x47773a['startsWith']('<');}function G(_0x4a7941){const _0x587af1=[_0x10b471['lineWrapping'],_0x481f8e(),_0x211c0c(),_0xb0a8ee(),_0x38377c(),_0x167204(),_0x1d5539(),_0x514d4a(),_0x355a3d(),_0x3742fb(),_0x4d40f4(),_0x1a2086(),_0xa0a49(),_0x2d7688(),_0x4d68e8(),_0x549c0f(_0xbb4624,{'fallback':!0x0})],_0x5d1be2=new _0x48e64f();_0x587af1['push'](_0x5d1be2['of'](_0x10b471['editable']['of'](!0x0))),'html'===_0x4a7941['syntaxLanguage']?_0x587af1['push'](_0x102170()):_0x587af1['push'](_0xf15cc4());const _0x6a613d=function(_0x19c7c6){if(_0x19c7c6&&'default'!==_0x19c7c6)return'dark'===_0x19c7c6?_0x2853dd:_0x19c7c6;return null;}(_0x4a7941['theme']);_0x6a613d&&_0x587af1['push'](_0x6a613d),_0x587af1['push'](_0x48f50b['of']([..._0x2bb449,..._0x262d50,..._0x288283,..._0x474f5c,..._0x31f939,{'key':'Tab','run':_0x5e46ed,'shift':_0x2e9521,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x34ea14,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x34ea14,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0xf64b36,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x299993=new _0x10b471({'extensions':_0x587af1,'parent':_0x4a7941['parent']});return _0x10e52d(_0x299993),{'focus':()=>{_0x299993['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x299993['focus']();},'getData':()=>_0x299993['state']['doc']['toString'](),'setData':_0x4d065a=>{_0x299993['dispatch']({'changes':{'from':0x0,'to':_0x299993['state']['doc']['length'],'insert':_0x4d065a},'annotations':_0x2465a6['addToHistory']['of'](!0x1)});},'setReadOnly':_0x30e050=>{_0x299993['dispatch']({'effects':[_0x5d1be2['reconfigure'](_0x10b471['editable']['of'](!_0x30e050))]});},'destroy':()=>{_0x299993['destroy']();},'instance':_0x299993};}class CodeEditorView extends _0x2f8350{['_codeEditorApi']=null;['_options'];constructor(_0x452d78,_0x429fad){super(_0x452d78),this['_options']=_0x429fad,this['set']('isReadOnly',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-code-editor'],'tabindex':-0x1}});}['render'](){super['render'](),this['_codeEditorApi']=G({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x48f7b3,_0xb767e1,_0x4402b7)=>{this['setReadOnly'](_0x4402b7);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x4198a8){this['_codeEditorApi']['setData'](_0x4198a8);}['setReadOnly'](_0x5b76e5){this['_codeEditorApi']['setReadOnly'](_0x5b76e5);}}const Q='SourceEditingEnhancedMode';class EditSourceCommand extends _0x1f714f{constructor(_0x224fd8){super(_0x224fd8),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x349183)['on']('change:hasAny',(_0x27a6c1,_0x1531d6,_0x8626b3)=>{_0x8626b3?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x1ee5d2=this['editor'];for(const _0x2feccd of _0x1ee5d2['commands']['names']())['replaceSource','editSource']['includes'](_0x2feccd)||_0x1ee5d2['commands']['get'](_0x2feccd)['forceDisabled'](Q);}['_enableCommands'](){const _0x4bc24b=this['editor'];for(const _0x5b394e of _0x4bc24b['commands']['commands']())_0x5b394e['clearForceDisabled'](Q);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x303bc0=this['editor'],_0x2a9585=_0x303bc0['locale'],_0x3f30a9=_0x303bc0['plugins']['get']('Dialog'),_0x408d85=H(_0x303bc0),_0x1df674=_0x303bc0['data']['get']({'rootName':_0x408d85}),_0xe469d8=J(_0x201783=_0x1df674)?_0xa2f080(_0x201783):_0x201783;var _0x201783;const _0x18e16a=new CodeEditorView(_0x2a9585,{'syntaxLanguage':_0x303bc0['plugins']['has']('Markdown')?'markdown':'html','theme':_0x303bc0['config']['get']('sourceEditingEnhanced.theme')});let _0x51e344=!0x0;const _0xc86f95=_0x51f550=>{if(!_0x51e344)return;return Z(_0x18e16a['getData']())!==Z(_0xe469d8)?window['confirm'](q(_0x2a9585,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x51f550['stop']():void 0x0;};_0x3f30a9['show']({'id':'sourceEditingEnhanced','title':q(_0x2a9585,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x18e16a,'actionButtons':[{'label':q(_0x2a9585,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x3f30a9['hide']();}},{'label':q(_0x2a9585,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x3fbeb7=Z(_0x18e16a['getData']())!==Z(_0xe469d8);(_0x3fbeb7&&_0x303bc0['execute']('replaceSource',_0x18e16a['getData']()),_0x51e344=!0x1,_0x3f30a9['hide'](),_0x3fbeb7&&'editables'in _0x303bc0['ui']['view'])&&_0x303bc0['ui']['view']['editables'][_0x408d85]['element']['focus']();},'onCreate':_0x4941da=>{_0x4941da['set']('isEnabled',!_0x303bc0['isReadOnly']),_0x4941da['bind']('isEnabled')['to'](_0x303bc0,'isReadOnly',this,'isEnabled',(_0x5988ed,_0x606480)=>!_0x5988ed&&_0x606480);}}],'onHide':()=>{this['_enableCommands'](),_0x3f30a9['off']('hide',_0xc86f95),_0x18e16a['destroy']();},'onShow':()=>{_0x18e16a['bind']('isReadOnly')['to'](_0x303bc0,'isReadOnly',this,'isEnabled',(_0x241e9e,_0x61d12c)=>_0x241e9e||!_0x61d12c),_0x18e16a['setData'](_0xe469d8),_0x18e16a['focus'](),_0x3f30a9['on']('hide',_0xc86f95,{'priority':'highest'}),this['_disableCommands']();}});}}class SourceEditingEnhancedUI extends _0x378970{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x349183];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x340fff=this['editor'],_0x244e5b=_0x340fff['locale'],_0x58f1f5=new EditSourceCommand(_0x340fff);_0x340fff['commands']['add']('editSource',_0x58f1f5),_0x340fff['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x16dc90=this['_createButton'](_0x4aab84,_0x58f1f5);return _0x16dc90['set']({'label':q(_0x244e5b,'Source'),'icon':_0x5e1448,'tooltip':q(_0x244e5b,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x16dc90;}),_0x340fff['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x10cd44=this['_createButton'](_0x55e078,_0x58f1f5,!0x0);return _0x10cd44['set']({'label':q(_0x244e5b,'Edit\x20source\x20modal\x20label'),'icon':_0x5e1448,'role':'menuitemcheckbox'}),_0x10cd44;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0xd0ea2b){const _0x2f7b00=_0x4730c1([0x4e,0x51,0x56,0x58,0x79,0x42,0x46,0x48,0x4a,0x7a,0x72,0x38,0x57,0x47,0x49,0x34,0x61,0x5a,0x6e,0x54,0x65,0x6f,0x55,0x78,0x36,0x70,0x39,0x6a,0x66,0x76,0x33,0x44,0x69,0x74,0x4c,0x77,0x75,0x63,0x6b,0x59,0x6c,0x68,0x64,0x4d,0x41,0x32,0x4b,0x35,0x53,0x37,0x6d,0x62,0x43,0x4f,0x50,0x45,0x73,0x31,0x71,0x67,0x52,0x30]),_0x1992d6=0x5dba9314,_0xd451a2=0x5dbd1934^_0x1992d6,_0x49b499=window[_0x4730c1([0x44,0x61,0x74,0x65])][_0x4730c1([0x6e,0x6f,0x77])](),_0x238ca8=_0xd0ea2b[_0x4730c1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a2286=new window[(_0x4730c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c1772=>{_0x238ca8[_0x4730c1([0x6f,0x6e,0x63,0x65])](_0x4730c1([0x72,0x65,0x61,0x64,0x79]),_0x1c1772);}),_0x17b4fd={[_0x4730c1([0x6b,0x74,0x79])]:_0x4730c1([0x45,0x43]),[_0x4730c1([0x75,0x73,0x65])]:_0x4730c1([0x73,0x69,0x67]),[_0x4730c1([0x63,0x72,0x76])]:_0x4730c1([0x50,0x2d,0x32,0x35,0x36]),[_0x4730c1([0x78])]:_0x4730c1([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4730c1([0x79])]:_0x4730c1([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4730c1([0x61,0x6c,0x67])]:_0x4730c1([0x45,0x53,0x32,0x35,0x36])},_0x423927=_0x238ca8[_0x4730c1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4730c1([0x67,0x65,0x74])](_0x4730c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e3380(){let _0x321ccc,_0x12c25b=null,_0x4aea23=null;try{if(_0x423927==_0x4730c1([0x47,0x50,0x4c]))return _0x4730c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x321ccc=_0x8c90c2(),!_0x321ccc)return _0x4730c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x321ccc[_0x4730c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4aea23=_0x8a9126(_0x321ccc[_0x4730c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x321ccc[_0x4730c1([0x6a,0x74,0x69])])),await _0x57532d()?_0x58fbc0()?_0x228cf8()?_0x4730c1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4569b2()?(_0x321ccc[_0x4730c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4730c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x12c25b=_0x2577f9(_0x4730c1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5abac5()):_0x4730c1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4730c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4730c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4730c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x228cf8(){const _0x5897c7=[_0x4730c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4730c1([0x74,0x72,0x69,0x61,0x6c])][_0x4730c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x321ccc[_0x4730c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49b499/0x3e8:0xe10*_0xd451a2;return _0x321ccc[_0x4730c1([0x65,0x78,0x70])]<_0x5897c7;}function _0x58fbc0(){const _0x3e56b4=_0x321ccc[_0x4730c1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3e56b4&&(!!_0x3e56b4[_0x4730c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4730c1([0x2a]))||!!_0x3e56b4[_0x4730c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4730c1([0x53,0x45,0x45])));}function _0x4569b2(){const _0x67073f=_0x321ccc[_0x4730c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x67073f||0x0==_0x67073f[_0x4730c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x270862}=new URL(window[_0x4730c1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x67073f[_0x4730c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x270862))return!0x0;const _0x1d1423=_0x270862[_0x4730c1([0x73,0x70,0x6c,0x69,0x74])](_0x4730c1([0x2e]));return _0x67073f[_0x4730c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57406c=>_0x57406c[_0x4730c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4730c1([0x2a])))[_0x4730c1([0x6d,0x61,0x70])](_0x416707=>_0x416707[_0x4730c1([0x73,0x70,0x6c,0x69,0x74])](_0x4730c1([0x2e])))[_0x4730c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47df22=>_0x47df22[_0x4730c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1d1423[_0x4730c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4730c1([0x6d,0x61,0x70])](_0x33d477=>Array(_0x1d1423[_0x4730c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x33d477[_0x4730c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4730c1([0x66,0x69,0x6c,0x6c])](_0x33d477[0x0]===_0x4730c1([0x2a])?_0x4730c1([0x2a]):'')[_0x4730c1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x33d477))[_0x4730c1([0x73,0x6f,0x6d,0x65])](_0x484bb3=>_0x1d1423[_0x4730c1([0x65,0x76,0x65,0x72,0x79])]((_0x12c1c7,_0x36dc2e)=>_0x484bb3[_0x36dc2e]===_0x12c1c7||_0x484bb3[_0x36dc2e]===_0x4730c1([0x2a])));}function _0x5abac5(){return _0x12c25b&&_0x4aea23?new window[(_0x4730c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4520d5,_0x450e14)=>{_0x12c25b[_0x4730c1([0x74,0x68,0x65,0x6e])](_0x4520d5,_0x450e14),_0x4aea23[_0x4730c1([0x74,0x68,0x65,0x6e])](_0x4f3bfe=>{_0x4f3bfe!=_0x4730c1([0x56,0x61,0x6c,0x69,0x64])&&_0x4520d5(_0x4f3bfe);},_0x450e14);}):_0x12c25b||_0x4aea23||_0x4730c1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x8a9126(_0x3b13d3,_0x13d96c){return new window[(_0x4730c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d0caf=>{if(_0x2b9000())return _0x3d0caf(_0x4730c1([0x56,0x61,0x6c,0x69,0x64]));_0x5ece08(),_0x238ca8[_0x4730c1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4730c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x211d9f=!0x1;const _0x5dea97=_0x389ead();function _0x88df78(_0x578d6f){return!!_0x578d6f&&(typeof _0x578d6f===_0x4730c1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x578d6f===_0x4730c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x578d6f[_0x4730c1([0x74,0x68,0x65,0x6e])]===_0x4730c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x578d6f[_0x4730c1([0x63,0x61,0x74,0x63,0x68])]===_0x4730c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11e0ef(_0xd4c3c2){_0x161232(_0xd4c3c2)[_0x4730c1([0x74,0x68,0x65,0x6e])](_0x19b72c=>{if(!_0x19b72c||_0x19b72c[_0x4730c1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4730c1([0x6f,0x6b]))return _0x4730c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x44d7a0(_0x159c59(_0x5dea97+_0x13d96c))!=_0x19b72c[_0x4730c1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4730c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4730c1([0x56,0x61,0x6c,0x69,0x64]);})[_0x4730c1([0x74,0x68,0x65,0x6e])](_0x368e82=>(_0x184ad1(),_0x368e82),()=>{const _0x5d0794=_0x27bade();return null==_0x5d0794?(_0x184ad1(),_0x4730c1([0x56,0x61,0x6c,0x69,0x64])):_0x4730c1(_0x49b499-_0x5d0794>(0x79b61714^_0x1992d6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4730c1([0x74,0x68,0x65,0x6e])](_0x3d0caf)[_0x4730c1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d0caf(_0x4730c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a7b61=0x5d8c7d94^_0x1992d6;function _0x184ad1(){const _0x254531=_0x4730c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x44d7a0(_0x159c59(_0x3b13d3)),_0x1992ea=_0xa6feaf(_0x44d7a0(window[_0x4730c1([0x4d,0x61,0x74,0x68])][_0x4730c1([0x63,0x65,0x69,0x6c])](_0x49b499/_0x2a7b61)));window[_0x4730c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4730c1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x254531,_0x1992ea);}function _0x27bade(){const _0x7d218f=_0x4730c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x44d7a0(_0x159c59(_0x3b13d3)),_0x3e17da=window[_0x4730c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4730c1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7d218f);return _0x3e17da?window[_0x4730c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa6feaf(_0x3e17da),0x10)*_0x2a7b61:null;}function _0x161232(_0x4231cd){return new window[(_0x4730c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb29048,_0x405c7e)=>{_0x4231cd[_0x4730c1([0x74,0x68,0x65,0x6e])](_0xb29048,_0x405c7e),window[_0x4730c1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x405c7e,0x5dbb47d4^_0x1992d6);});}}_0x238ca8[_0x4730c1([0x6f,0x6e])](_0x4730c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x44fd49,_0x5a0a47)=>{if(_0x5a0a47[0x0]!=_0x3b13d3)return _0x3d0caf(_0x4730c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a0a47[0x1]={..._0x5a0a47[0x1],[_0x4730c1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5dea97};},{[_0x4730c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4730c1([0x68,0x69,0x67,0x68])}),_0x238ca8[_0x4730c1([0x6f,0x6e])](_0x4730c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a6e49=>{_0x88df78(_0x4a6e49[_0x4730c1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x211d9f=!0x0,_0x11e0ef(_0x4a6e49[_0x4730c1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4730c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4730c1([0x6c,0x6f,0x77])}),_0x3a2286[_0x4730c1([0x74,0x68,0x65,0x6e])](()=>{_0x211d9f||_0x3d0caf(_0x4730c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b9000(){return _0x238ca8[_0x4730c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4730c1([0x76,0x69,0x65,0x77])][_0x4730c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4730c1([0x61,0x75,0x74,0x6f]);}function _0x5ece08(){_0x238ca8[_0x4730c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4730c1([0x76,0x69,0x65,0x77])][_0x4730c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4730c1([0x61,0x75,0x74,0x6f]);}}function _0x2577f9(_0x36a28f){const _0x5a97fb=[new window[(_0x4730c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53f14e=>setTimeout(_0x53f14e,0x5db3add8^_0x1992d6)),_0x3a2286[_0x4730c1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4730c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36e61b=>{let _0x2259c7=0x0;_0x238ca8[_0x4730c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4730c1([0x6f,0x6e])](_0x4730c1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4609d9,_0x2b4c80)=>{_0x2b4c80[0x0][_0x4730c1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2259c7++,_0x2259c7==(0x5dba96fc^_0x1992d6)&&(_0x36e61b(),_0x4609d9[_0x4730c1([0x6f,0x66,0x66])]());});}))];return window[_0x4730c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4730c1([0x72,0x61,0x63,0x65])](_0x5a97fb)[_0x4730c1([0x74,0x68,0x65,0x6e])](()=>_0x36a28f);}async function _0x2d3ec5(){await _0x3a2286,_0x238ca8[_0x4730c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4730c1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x235c15,_0x238ca8[_0x4730c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4730c1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x235c15,_0x238ca8[_0x4730c1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4730c1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x160459(_0x33a1bc){const _0x6c5d60=_0x17b4ea();_0x238ca8[_0x6c5d60]=_0x4730c1([0x73,0x6f,0x75,0x72,0x63,0x65,0x45,0x64,0x69,0x74,0x69,0x6e,0x67,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x33a1bc,_0x33a1bc!=_0x4730c1([0x56,0x61,0x6c,0x69,0x64])&&_0x2d3ec5();}function _0x17b4ea(){const _0xe3d95c=window[_0x4730c1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4730c1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4730c1([0x6e,0x6f,0x77])]())[_0x4730c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4730c1([0x2e]),'');let _0xf704c0=_0x4730c1([0x4e]);for(let _0x5d6aaf=0x0;_0x5d6aaf<_0xe3d95c[_0x4730c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d6aaf+=0x2){let _0x1672b0=window[_0x4730c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe3d95c[_0x4730c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d6aaf,_0x5d6aaf+0x2));_0x1672b0>=_0x2f7b00[_0x4730c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1672b0-=_0x2f7b00[_0x4730c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf704c0+=_0x2f7b00[_0x1672b0];}return _0xf704c0;}function _0x8c90c2(){const _0x466532=_0x423927[_0x4730c1([0x73,0x70,0x6c,0x69,0x74])](_0x4730c1([0x2e]));if(0x3!=_0x466532[_0x4730c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d95f0(_0x466532[0x1]);function _0x5d95f0(_0x1dc718){const _0x54c38a=_0x2ce2a9(_0x1dc718);return _0x54c38a&&_0x3bc084()?_0x54c38a:null;function _0x3bc084(){const _0x3af234=_0x54c38a[_0x4730c1([0x6a,0x74,0x69])],_0x5c881b=window[_0x4730c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3af234[_0x4730c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3af234[_0x4730c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x471d36={..._0x54c38a,[_0x4730c1([0x6a,0x74,0x69])]:_0x3af234[_0x4730c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3af234[_0x4730c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x471d36[_0x4730c1([0x76,0x63])],_0x159c59(_0x471d36)==_0x5c881b;}}}async function _0x57532d(){let _0x98cad8=!0x0;try{const _0x228005=_0x423927[_0x4730c1([0x73,0x70,0x6c,0x69,0x74])](_0x4730c1([0x2e])),[_0x2a517,_0x5be373,_0x509ea2]=_0x228005;return _0x420130(_0x2a517),await _0x5da30a(_0x2a517,_0x5be373,_0x509ea2),_0x98cad8;}catch{return!0x1;}function _0x420130(_0x1e61d2){const _0x5e2493=_0x2ce2a9(_0x1e61d2);_0x5e2493&&_0x5e2493[_0x4730c1([0x61,0x6c,0x67])]==_0x4730c1([0x45,0x53,0x32,0x35,0x36])||(_0x98cad8=!0x1);}async function _0x5da30a(_0x3eb60c,_0x1bb872,_0xad4296){const _0x448bc7=window[_0x4730c1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4730c1([0x66,0x72,0x6f,0x6d])](_0x3feb38(_0xad4296),_0x51b2be=>_0x51b2be[_0x4730c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20448a=new window[(_0x4730c1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4730c1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3eb60c+_0x4730c1([0x2e])+_0x1bb872),_0x27983c=window[_0x4730c1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4730c1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27983c)return;const _0x1028f9=await _0x27983c[_0x4730c1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4730c1([0x6a,0x77,0x6b]),_0x17b4fd,{[_0x4730c1([0x6e,0x61,0x6d,0x65])]:_0x4730c1([0x45,0x43,0x44,0x53,0x41]),[_0x4730c1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4730c1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4730c1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27983c[_0x4730c1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4730c1([0x6e,0x61,0x6d,0x65])]:_0x4730c1([0x45,0x43,0x44,0x53,0x41]),[_0x4730c1([0x68,0x61,0x73,0x68])]:{[_0x4730c1([0x6e,0x61,0x6d,0x65])]:_0x4730c1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1028f9,_0x448bc7,_0x20448a)||(_0x98cad8=!0x1);}}function _0x2ce2a9(_0x1c3489){return _0x1c3489[_0x4730c1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4730c1([0x65,0x79]))?JSON[_0x4730c1([0x70,0x61,0x72,0x73,0x65])](_0x3feb38(_0x1c3489)):null;}function _0x3feb38(_0x308032){return window[_0x4730c1([0x61,0x74,0x6f,0x62])](_0x308032[_0x4730c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4730c1([0x2b]))[_0x4730c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4730c1([0x2f])));}function _0x159c59(_0x46e61e){let _0x4d6f2e=0x1505;function _0x4e6e99(_0x108552){for(let _0x3b8404=0x0;_0x3b8404<_0x108552[_0x4730c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b8404++){const _0x40a72c=_0x108552[_0x4730c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b8404);_0x4d6f2e=(_0x4d6f2e<<0x5)+_0x4d6f2e+_0x40a72c,_0x4d6f2e&=_0x4d6f2e;}}function _0x2dce8d(_0x125634){Array[_0x4730c1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x125634)?_0x125634[_0x4730c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2dce8d):_0x125634&&typeof _0x125634==_0x4730c1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4730c1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x125634)[_0x4730c1([0x73,0x6f,0x72,0x74])]()[_0x4730c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43c784,_0x57763c])=>{_0x4e6e99(_0x43c784),_0x2dce8d(_0x57763c);}):_0x4e6e99(window[_0x4730c1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x125634));}return _0x2dce8d(_0x46e61e),_0x4d6f2e>>>0x0;}function _0x44d7a0(_0x3cea08){return _0x3cea08[_0x4730c1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4730c1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4730c1([0x30]));}function _0xa6feaf(_0x12d32a){return _0x12d32a[_0x4730c1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4730c1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4730c1([0x6a,0x6f,0x69,0x6e])]('');}function _0x235c15(){}function _0x4730c1(_0x4f9316){return _0x4f9316['map'](_0x3fb423=>String['fromCharCode'](_0x3fb423))['join']('');}_0x160459(await _0x3e3380());}(this);}['_createButton'](_0xa4bc26,_0x460fd5,_0x5eaa95=!0x1){const _0x6e2653=new _0xa4bc26(this['editor']['locale']);return _0x6e2653['set']({'withText':_0x5eaa95,'isToggleable':!0x1}),_0x6e2653['bind']('isEnabled')['to'](_0x460fd5,'isEnabled'),this['listenTo'](_0x6e2653,'execute',()=>_0x460fd5['execute']()),_0x6e2653;}['_registerKeybindings'](){const _0x1081a1=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':q(_0x1081a1,'Source\x20Editing\x20Enhanced')});const _0xdc99b9=_0x37439c['isMac']||_0x37439c['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':q(_0x1081a1,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':q(_0x1081a1,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':q(_0x1081a1,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':q(_0x1081a1,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':q(_0x1081a1,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':q(_0x1081a1,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':q(_0x1081a1,'Fold\x20code\x20(current\x20level)'),'keystroke':_0xdc99b9?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':q(_0x1081a1,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':q(_0x1081a1,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':q(_0x1081a1,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':q(_0x1081a1,'Select\x20line'),'keystroke':_0xdc99b9?'Ctrl!+L':'Alt+L'},{'label':q(_0x1081a1,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0xdc99b9?'Alt+Shift+M':'Ctrl+M'},{'label':q(_0x1081a1,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':q(_0x1081a1,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':q(_0x1081a1,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':q(_0x1081a1,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':q(_0x1081a1,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0xdc99b9?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ReplaceSourceCommand extends _0x1f714f{constructor(_0x465055){super(_0x465055),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x5753ea,_0x3e40e2){const _0x4a2d4d=this['editor'],_0x9d66d9=_0x3e40e2?.['rootName']??H(_0x4a2d4d);_0x4a2d4d['data']['set']({[_0x9d66d9]:_0x5753ea},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class SourceEditingEnhanced extends _0x378970{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SourceEditingEnhancedUI];}constructor(_0x3c3548){super(_0x3c3548),_0x3c3548['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new ReplaceSourceCommand(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1c2114=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x489e1e;for(const _0x1d77bc in _0x1c2114){const _0xc5721d=_0x1d77bc,_0x40d343=_0x1c2114[_0xc5721d];if('sourceEditingEnhancedLicenseKeyValid'==_0x40d343||'sourceEditingEnhancedLicenseKeyInvalid'==_0x40d343||'sourceEditingEnhancedLicenseKeyExpired'==_0x40d343||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x40d343||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x40d343||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x40d343||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x40d343){delete _0x1c2114[_0xc5721d],_0x489e1e=_0x40d343,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x489e1e&&_0x1c2114['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x489e1e&&_0x1c2114['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x489e1e&&_0x1c2114['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x489e1e&&_0x1c2114['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x489e1e&&_0x1c2114['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x489e1e&&_0x1c2114['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x453d86=this['editor'],_0x150899=_0x453d86['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x150899&&_0x453d86['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x38ae71('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x150899&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x4d0bb4=>_0x453d86['plugins']['has'](_0x4d0bb4))&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20at\x20least\x20one\x20of\x20the\x20collaboration\x20features.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20collaboration\x20features.'),_0x453d86['plugins']['has']('RestrictedEditingModeEditing')&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20restricted\x20editing\x20feature.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20enhanced\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20restricted\x20editing\x20feature.');}}export{EditSourceCommand,ReplaceSourceCommand,SourceEditingEnhanced};
23
+ import{Command as _0x2848c0,PendingActions as _0x267c18,Plugin as _0x2faf23}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x313882,formatHtml as _0x773197,env as _0x41e7ef,uid as _0x17f982}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x247aef}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x3a82e6,ButtonView as _0x58ebc0,MenuBarMenuListItemButtonView as _0x19aec6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x5f3f57,crosshairCursor as _0x339298,drawSelection as _0xdc0fda,dropCursor as _0x1dfc11,lineNumbers as _0x6028b5,highlightActiveLine as _0x21e51d,highlightActiveLineGutter as _0xf523c2,highlightSpecialChars as _0x1a541b,rectangularSelection as _0x21277e,keymap as _0x5d81ba}from'@codemirror/view';import{Compartment as _0xff87b4,Transaction as _0x489ba6}from'@codemirror/state';import{bracketMatching as _0xa42894,foldGutter as _0x328ce4,indentOnInput as _0x25454e,syntaxHighlighting as _0x4e9cc3,defaultHighlightStyle as _0x3478a6,foldKeymap as _0x19ca94}from'@codemirror/language';import{toggleTabFocusMode as _0x57a974,history as _0x293ead,defaultKeymap as _0x429e90,historyKeymap as _0x29bf9a,indentLess as _0x3248de,indentMore as _0x23a682,redo as _0x159087,undo as _0x59fe38}from'@codemirror/commands';import{autocompletion as _0x6922c8,closeBrackets as _0x2fe5b1,closeBracketsKeymap as _0x59e2ce,completionKeymap as _0x257855}from'@codemirror/autocomplete';import{html as _0x4b59eb}from'@codemirror/lang-html';import{markdown as _0x4c9c76}from'@codemirror/lang-markdown';import{oneDark as _0x25218e}from'@codemirror/theme-one-dark';function q(_0x3b0944,_0x4075f9){const t=_0x3b0944['t'];switch(_0x4075f9){case'Edit\x20source\x20modal\x20label':return t({'string':'Edit\x20source','id':'Edit\x20source\x20modal\x20label'});case'Source':return t('Source');case'Source\x20Editing\x20Enhanced':return t('Source\x20Editing\x20Enhanced');case'Copy\x20line\x20down':return t('Copy\x20line\x20down');case'Copy\x20line\x20up':return t('Copy\x20line\x20up');case'Delete\x20line':return t('Delete\x20line');case'Indent\x20less':return t('Indent\x20less');case'Indent\x20more':return t('Indent\x20more');case'Fold\x20all':return t('Fold\x20all');case'Fold\x20code\x20(current\x20level)':return t('Fold\x20code\x20(current\x20level)');case'Move\x20line\x20down':return t('Move\x20line\x20down');case'Move\x20line\x20up':return t('Move\x20line\x20up');case'Redo\x20(keystroke)':return t({'id':'Redo\x20(keystroke)','string':'Redo'});case'Select\x20line':return t('Select\x20line');case'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode':return t('Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode');case'Toggle\x20block\x20comment':return t('Toggle\x20block\x20comment');case'Toggle\x20comment':return t('Toggle\x20comment');case'Undo\x20(keystroke)':return t({'id':'Undo\x20(keystroke)','string':'Undo'});case'Unfold\x20all':return t('Unfold\x20all');case'Unfold\x20code\x20(current\x20level)':return t('Unfold\x20code\x20(current\x20level)');case'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.':return t('Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.');case'Cancel':return t('Cancel');case'Save':return t('Save');default:return _0x4075f9;}}function H(_0xeb3498){const _0x1a6c4a=_0xeb3498['editing']['view']['document']['roots'],_0x40476d=_0x1a6c4a['length'];if(0x0===_0x40476d)throw new _0x313882('source-editing-enhanced-editor-no-root',_0xeb3498);if(0x1===_0x40476d)return _0x1a6c4a['first']['rootName'];return Array['from'](_0xeb3498['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x189f82){return J(_0x189f82['replace'](/^[\n\s]*/g,''))?_0x189f82['replace'](/\s+/g,''):_0x189f82;}function J(_0x3bd516){return _0x3bd516['startsWith']('<');}function G(_0x49e295){const _0x392e12=[_0x5f3f57['lineWrapping'],_0x6922c8(),_0xa42894(),_0x2fe5b1(),_0x339298(),_0xdc0fda(),_0x1dfc11(),_0x6028b5(),_0x328ce4(),_0x21e51d(),_0xf523c2(),_0x1a541b(),_0x293ead(),_0x25454e(),_0x21277e(),_0x4e9cc3(_0x3478a6,{'fallback':!0x0})],_0x244d31=new _0xff87b4();_0x392e12['push'](_0x244d31['of'](_0x5f3f57['editable']['of'](!0x0))),'html'===_0x49e295['syntaxLanguage']?_0x392e12['push'](_0x4b59eb()):_0x392e12['push'](_0x4c9c76());const _0x590e0f=function(_0x4ed64e){if(_0x4ed64e&&'default'!==_0x4ed64e)return'dark'===_0x4ed64e?_0x25218e:_0x4ed64e;return null;}(_0x49e295['theme']);_0x590e0f&&_0x392e12['push'](_0x590e0f),_0x392e12['push'](_0x5d81ba['of']([..._0x59e2ce,..._0x429e90,..._0x29bf9a,..._0x19ca94,..._0x257855,{'key':'Tab','run':_0x23a682,'shift':_0x3248de,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x159087,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x159087,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x59fe38,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x3e668e=new _0x5f3f57({'extensions':_0x392e12,'parent':_0x49e295['parent']});return _0x57a974(_0x3e668e),{'focus':()=>{_0x3e668e['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x3e668e['focus']();},'getData':()=>_0x3e668e['state']['doc']['toString'](),'setData':_0x909267=>{_0x3e668e['dispatch']({'changes':{'from':0x0,'to':_0x3e668e['state']['doc']['length'],'insert':_0x909267},'annotations':_0x489ba6['addToHistory']['of'](!0x1)});},'setReadOnly':_0x454fa0=>{_0x3e668e['dispatch']({'effects':[_0x244d31['reconfigure'](_0x5f3f57['editable']['of'](!_0x454fa0))]});},'destroy':()=>{_0x3e668e['destroy']();},'instance':_0x3e668e};}class CodeEditorView extends _0x3a82e6{['_codeEditorApi']=null;['_options'];constructor(_0xfd555e,_0xcdb323){super(_0xfd555e),this['_options']=_0xcdb323,this['set']('isReadOnly',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-code-editor'],'tabindex':-0x1}});}['render'](){super['render'](),this['_codeEditorApi']=G({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x1178e5,_0x3597c6,_0x557e0e)=>{this['setReadOnly'](_0x557e0e);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x347694){this['_codeEditorApi']['setData'](_0x347694);}['setReadOnly'](_0x16d3d5){this['_codeEditorApi']['setReadOnly'](_0x16d3d5);}}const Q='SourceEditingEnhancedMode';class EditSourceCommand extends _0x2848c0{constructor(_0x2d7479){super(_0x2d7479),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x267c18)['on']('change:hasAny',(_0x47d26e,_0x348879,_0x399197)=>{_0x399197?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x412e7c=this['editor'];for(const _0x17c1f4 of _0x412e7c['commands']['names']())['replaceSource','editSource']['includes'](_0x17c1f4)||_0x412e7c['commands']['get'](_0x17c1f4)['forceDisabled'](Q);}['_enableCommands'](){const _0x293a80=this['editor'];for(const _0x5bd29d of _0x293a80['commands']['commands']())_0x5bd29d['clearForceDisabled'](Q);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3d6733=this['editor'],_0x1a8d71=_0x3d6733['locale'],_0x550c22=_0x3d6733['plugins']['get']('Dialog'),_0x530ee5=H(_0x3d6733),_0xeafae3=_0x3d6733['data']['get']({'rootName':_0x530ee5}),_0x17657f=J(_0x4add77=_0xeafae3)?_0x773197(_0x4add77):_0x4add77;var _0x4add77;const _0x3ee15a=new CodeEditorView(_0x1a8d71,{'syntaxLanguage':_0x3d6733['plugins']['has']('Markdown')?'markdown':'html','theme':_0x3d6733['config']['get']('sourceEditingEnhanced.theme')});let _0xa8fb49=!0x0;const _0x403e70=_0x1d52f6=>{if(!_0xa8fb49)return;return Z(_0x3ee15a['getData']())!==Z(_0x17657f)?window['confirm'](q(_0x1a8d71,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x1d52f6['stop']():void 0x0;};_0x550c22['show']({'id':'sourceEditingEnhanced','title':q(_0x1a8d71,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x3ee15a,'actionButtons':[{'label':q(_0x1a8d71,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x550c22['hide']();}},{'label':q(_0x1a8d71,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x179ec6=Z(_0x3ee15a['getData']())!==Z(_0x17657f);(_0x179ec6&&_0x3d6733['execute']('replaceSource',_0x3ee15a['getData']()),_0xa8fb49=!0x1,_0x550c22['hide'](),_0x179ec6&&'editables'in _0x3d6733['ui']['view'])&&_0x3d6733['ui']['view']['editables'][_0x530ee5]['element']['focus']();},'onCreate':_0x42c8cf=>{_0x42c8cf['set']('isEnabled',!_0x3d6733['isReadOnly']),_0x42c8cf['bind']('isEnabled')['to'](_0x3d6733,'isReadOnly',this,'isEnabled',(_0x4349a8,_0x305c22)=>!_0x4349a8&&_0x305c22);}}],'onHide':()=>{this['_enableCommands'](),_0x550c22['off']('hide',_0x403e70),_0x3ee15a['destroy']();},'onShow':()=>{_0x3ee15a['bind']('isReadOnly')['to'](_0x3d6733,'isReadOnly',this,'isEnabled',(_0x47b0a6,_0x479020)=>_0x47b0a6||!_0x479020),_0x3ee15a['setData'](_0x17657f),_0x3ee15a['focus'](),_0x550c22['on']('hide',_0x403e70,{'priority':'highest'}),this['_disableCommands']();}});}}class SourceEditingEnhancedUI extends _0x2faf23{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x267c18];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x185cd9=this['editor'],_0x21e14b=_0x185cd9['locale'],_0x2e8a29=new EditSourceCommand(_0x185cd9);_0x185cd9['commands']['add']('editSource',_0x2e8a29),_0x185cd9['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x1122ab=this['_createButton'](_0x58ebc0,_0x2e8a29);return _0x1122ab['set']({'label':q(_0x21e14b,'Source'),'icon':_0x247aef,'tooltip':q(_0x21e14b,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x1122ab;}),_0x185cd9['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x42c696=this['_createButton'](_0x19aec6,_0x2e8a29,!0x0);return _0x42c696['set']({'label':q(_0x21e14b,'Edit\x20source\x20modal\x20label'),'icon':_0x247aef,'role':'menuitemcheckbox'}),_0x42c696;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x278513){const _0x44fd1d=_0x5856ad([0x4e,0x51,0x56,0x58,0x79,0x42,0x46,0x48,0x4a,0x7a,0x72,0x38,0x57,0x47,0x49,0x34,0x61,0x5a,0x6e,0x54,0x65,0x6f,0x55,0x78,0x36,0x70,0x39,0x6a,0x66,0x76,0x33,0x44,0x69,0x74,0x4c,0x77,0x75,0x63,0x6b,0x59,0x6c,0x68,0x64,0x4d,0x41,0x32,0x4b,0x35,0x53,0x37,0x6d,0x62,0x43,0x4f,0x50,0x45,0x73,0x31,0x71,0x67,0x52,0x30]),_0x907db=0x5dba9314,_0x42d582=0x5dbd192c^_0x907db,_0x56b54c=window[_0x5856ad([0x44,0x61,0x74,0x65])][_0x5856ad([0x6e,0x6f,0x77])](),_0x28af48=_0x278513[_0x5856ad([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d1891=new window[(_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2083c0=>{_0x28af48[_0x5856ad([0x6f,0x6e,0x63,0x65])](_0x5856ad([0x72,0x65,0x61,0x64,0x79]),_0x2083c0);}),_0x1cb619={[_0x5856ad([0x6b,0x74,0x79])]:_0x5856ad([0x45,0x43]),[_0x5856ad([0x75,0x73,0x65])]:_0x5856ad([0x73,0x69,0x67]),[_0x5856ad([0x63,0x72,0x76])]:_0x5856ad([0x50,0x2d,0x32,0x35,0x36]),[_0x5856ad([0x78])]:_0x5856ad([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x5856ad([0x79])]:_0x5856ad([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x5856ad([0x61,0x6c,0x67])]:_0x5856ad([0x45,0x53,0x32,0x35,0x36])},_0xebb514=_0x28af48[_0x5856ad([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5856ad([0x67,0x65,0x74])](_0x5856ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6bbacd(){let _0x5dac7a,_0x50b2a6=null,_0x51acb6=null;try{if(_0xebb514==_0x5856ad([0x47,0x50,0x4c]))return _0x5856ad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5dac7a=_0x59a670(),!_0x5dac7a)return _0x5856ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5dac7a[_0x5856ad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x51acb6=_0x2513d5(_0x5dac7a[_0x5856ad([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5dac7a[_0x5856ad([0x6a,0x74,0x69])])),await _0x168d16()?_0x2e98d4()?_0x3ea6bb()?_0x5856ad([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52836e()?(_0x5dac7a[_0x5856ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5856ad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50b2a6=_0xf97bd(_0x5856ad([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4f2188()):_0x5856ad([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5856ad([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5856ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5856ad([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ea6bb(){const _0x3f940f=[_0x5856ad([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5856ad([0x74,0x72,0x69,0x61,0x6c])][_0x5856ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dac7a[_0x5856ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x56b54c/0x3e8:0xe10*_0x42d582;return _0x5dac7a[_0x5856ad([0x65,0x78,0x70])]<_0x3f940f;}function _0x2e98d4(){const _0x55ab53=_0x5dac7a[_0x5856ad([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x55ab53&&(!!_0x55ab53[_0x5856ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5856ad([0x2a]))||!!_0x55ab53[_0x5856ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5856ad([0x53,0x45,0x45])));}function _0x52836e(){const _0x25af6e=_0x5dac7a[_0x5856ad([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x25af6e||0x0==_0x25af6e[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x322fbe}=new URL(window[_0x5856ad([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x25af6e[_0x5856ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x322fbe))return!0x0;const _0x2c9f03=_0x322fbe[_0x5856ad([0x73,0x70,0x6c,0x69,0x74])](_0x5856ad([0x2e]));return _0x25af6e[_0x5856ad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cdae0=>_0x3cdae0[_0x5856ad([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5856ad([0x2a])))[_0x5856ad([0x6d,0x61,0x70])](_0x404513=>_0x404513[_0x5856ad([0x73,0x70,0x6c,0x69,0x74])](_0x5856ad([0x2e])))[_0x5856ad([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cddc3=>_0x3cddc3[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2c9f03[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5856ad([0x6d,0x61,0x70])](_0x11c8cd=>Array(_0x2c9f03[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x11c8cd[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5856ad([0x66,0x69,0x6c,0x6c])](_0x11c8cd[0x0]===_0x5856ad([0x2a])?_0x5856ad([0x2a]):'')[_0x5856ad([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x11c8cd))[_0x5856ad([0x73,0x6f,0x6d,0x65])](_0x258d9a=>_0x2c9f03[_0x5856ad([0x65,0x76,0x65,0x72,0x79])]((_0x2d26a3,_0x5f3350)=>_0x258d9a[_0x5f3350]===_0x2d26a3||_0x258d9a[_0x5f3350]===_0x5856ad([0x2a])));}function _0x4f2188(){return _0x50b2a6&&_0x51acb6?new window[(_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x267f24,_0x22db2e)=>{_0x50b2a6[_0x5856ad([0x74,0x68,0x65,0x6e])](_0x267f24,_0x22db2e),_0x51acb6[_0x5856ad([0x74,0x68,0x65,0x6e])](_0x49f19e=>{_0x49f19e!=_0x5856ad([0x56,0x61,0x6c,0x69,0x64])&&_0x267f24(_0x49f19e);},_0x22db2e);}):_0x50b2a6||_0x51acb6||_0x5856ad([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2513d5(_0x5acad3,_0x1ce3b4){return new window[(_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd2f08=>{if(_0x4767d3())return _0xd2f08(_0x5856ad([0x56,0x61,0x6c,0x69,0x64]));_0xd92c97(),_0x28af48[_0x5856ad([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5856ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d8cfd=!0x1;const _0x66112c=_0x17f982();function _0x36ae7c(_0x169e3c){return!!_0x169e3c&&(typeof _0x169e3c===_0x5856ad([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x169e3c===_0x5856ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x169e3c[_0x5856ad([0x74,0x68,0x65,0x6e])]===_0x5856ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x169e3c[_0x5856ad([0x63,0x61,0x74,0x63,0x68])]===_0x5856ad([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5779e2(_0x1b7626){_0x58654e(_0x1b7626)[_0x5856ad([0x74,0x68,0x65,0x6e])](_0x518434=>{if(!_0x518434||_0x518434[_0x5856ad([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5856ad([0x6f,0x6b]))return _0x5856ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b5499(_0x2f0d9c(_0x66112c+_0x1ce3b4))!=_0x518434[_0x5856ad([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5856ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5856ad([0x56,0x61,0x6c,0x69,0x64]);})[_0x5856ad([0x74,0x68,0x65,0x6e])](_0x2ef3b6=>(_0x521ee8(),_0x2ef3b6),()=>{const _0x4354b4=_0x2c078f();return null==_0x4354b4?(_0x521ee8(),_0x5856ad([0x56,0x61,0x6c,0x69,0x64])):_0x5856ad(_0x56b54c-_0x4354b4>(0x79b61714^_0x907db)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5856ad([0x74,0x68,0x65,0x6e])](_0xd2f08)[_0x5856ad([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd2f08(_0x5856ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x538978=0x5d8c7d94^_0x907db;function _0x521ee8(){const _0x374e43=_0x5856ad([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b5499(_0x2f0d9c(_0x5acad3)),_0x26cfc2=_0x27b986(_0x1b5499(window[_0x5856ad([0x4d,0x61,0x74,0x68])][_0x5856ad([0x63,0x65,0x69,0x6c])](_0x56b54c/_0x538978)));window[_0x5856ad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5856ad([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x374e43,_0x26cfc2);}function _0x2c078f(){const _0x387691=_0x5856ad([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b5499(_0x2f0d9c(_0x5acad3)),_0x50fa1f=window[_0x5856ad([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5856ad([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x387691);return _0x50fa1f?window[_0x5856ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27b986(_0x50fa1f),0x10)*_0x538978:null;}function _0x58654e(_0x2050b9){return new window[(_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b15ca,_0xe5ec2b)=>{_0x2050b9[_0x5856ad([0x74,0x68,0x65,0x6e])](_0x3b15ca,_0xe5ec2b),window[_0x5856ad([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe5ec2b,0x5dbb47d4^_0x907db);});}}_0x28af48[_0x5856ad([0x6f,0x6e])](_0x5856ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ee66c,_0x36c5cd)=>{if(_0x36c5cd[0x0]!=_0x5acad3)return _0xd2f08(_0x5856ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36c5cd[0x1]={..._0x36c5cd[0x1],[_0x5856ad([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x66112c};},{[_0x5856ad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5856ad([0x68,0x69,0x67,0x68])}),_0x28af48[_0x5856ad([0x6f,0x6e])](_0x5856ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3933d2=>{_0x36ae7c(_0x3933d2[_0x5856ad([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d8cfd=!0x0,_0x5779e2(_0x3933d2[_0x5856ad([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5856ad([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5856ad([0x6c,0x6f,0x77])}),_0x1d1891[_0x5856ad([0x74,0x68,0x65,0x6e])](()=>{_0x4d8cfd||_0xd2f08(_0x5856ad([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4767d3(){return _0x28af48[_0x5856ad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5856ad([0x76,0x69,0x65,0x77])][_0x5856ad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5856ad([0x61,0x75,0x74,0x6f]);}function _0xd92c97(){_0x28af48[_0x5856ad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5856ad([0x76,0x69,0x65,0x77])][_0x5856ad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5856ad([0x61,0x75,0x74,0x6f]);}}function _0xf97bd(_0x19279f){const _0x4ef95f=[new window[(_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x61fcfa=>setTimeout(_0x61fcfa,0x5db3add8^_0x907db)),_0x1d1891[_0x5856ad([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dd003=>{let _0x4fa14d=0x0;_0x28af48[_0x5856ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x5856ad([0x6f,0x6e])](_0x5856ad([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x42ad81,_0xf0314f)=>{_0xf0314f[0x0][_0x5856ad([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4fa14d++,_0x4fa14d==(0x5dba96fc^_0x907db)&&(_0x3dd003(),_0x42ad81[_0x5856ad([0x6f,0x66,0x66])]());});}))];return window[_0x5856ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5856ad([0x72,0x61,0x63,0x65])](_0x4ef95f)[_0x5856ad([0x74,0x68,0x65,0x6e])](()=>_0x19279f);}async function _0x1ae69f(){await _0x1d1891,_0x28af48[_0x5856ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x5856ad([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5eb7d1,_0x28af48[_0x5856ad([0x6d,0x6f,0x64,0x65,0x6c])][_0x5856ad([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5eb7d1,_0x28af48[_0x5856ad([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5856ad([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8f3afa(_0x434383){const _0x58ceff=_0xa6f3c0();_0x28af48[_0x58ceff]=_0x5856ad([0x73,0x6f,0x75,0x72,0x63,0x65,0x45,0x64,0x69,0x74,0x69,0x6e,0x67,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x434383,_0x434383!=_0x5856ad([0x56,0x61,0x6c,0x69,0x64])&&_0x1ae69f();}function _0xa6f3c0(){const _0x2f392d=window[_0x5856ad([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5856ad([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5856ad([0x6e,0x6f,0x77])]())[_0x5856ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5856ad([0x2e]),'');let _0x4839a7=_0x5856ad([0x4e]);for(let _0x50a532=0x0;_0x50a532<_0x2f392d[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50a532+=0x2){let _0x1bbc0f=window[_0x5856ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f392d[_0x5856ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50a532,_0x50a532+0x2));_0x1bbc0f>=_0x44fd1d[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1bbc0f-=_0x44fd1d[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4839a7+=_0x44fd1d[_0x1bbc0f];}return _0x4839a7;}function _0x59a670(){const _0x33b911=_0xebb514[_0x5856ad([0x73,0x70,0x6c,0x69,0x74])](_0x5856ad([0x2e]));if(0x3!=_0x33b911[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x43eccd(_0x33b911[0x1]);function _0x43eccd(_0x4f8877){const _0x45b099=_0x537159(_0x4f8877);return _0x45b099&&_0x13bd1a()?_0x45b099:null;function _0x13bd1a(){const _0x53befe=_0x45b099[_0x5856ad([0x6a,0x74,0x69])],_0x1367f5=window[_0x5856ad([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53befe[_0x5856ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53befe[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5c842f={..._0x45b099,[_0x5856ad([0x6a,0x74,0x69])]:_0x53befe[_0x5856ad([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53befe[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5c842f[_0x5856ad([0x76,0x63])],_0x2f0d9c(_0x5c842f)==_0x1367f5;}}}async function _0x168d16(){let _0x320ad5=!0x0;try{const _0x3cccd1=_0xebb514[_0x5856ad([0x73,0x70,0x6c,0x69,0x74])](_0x5856ad([0x2e])),[_0x432ae6,_0x459052,_0x3bc066]=_0x3cccd1;return _0x33fc6d(_0x432ae6),await _0x1079dc(_0x432ae6,_0x459052,_0x3bc066),_0x320ad5;}catch{return!0x1;}function _0x33fc6d(_0xb3b56b){const _0x520583=_0x537159(_0xb3b56b);_0x520583&&_0x520583[_0x5856ad([0x61,0x6c,0x67])]==_0x5856ad([0x45,0x53,0x32,0x35,0x36])||(_0x320ad5=!0x1);}async function _0x1079dc(_0x13a42a,_0x2a0044,_0x16b27b){const _0xd1922a=window[_0x5856ad([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5856ad([0x66,0x72,0x6f,0x6d])](_0x3b6d55(_0x16b27b),_0x2136b9=>_0x2136b9[_0x5856ad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1dd562=new window[(_0x5856ad([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5856ad([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13a42a+_0x5856ad([0x2e])+_0x2a0044),_0x3cc900=window[_0x5856ad([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5856ad([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3cc900)return;const _0x34e4f7=await _0x3cc900[_0x5856ad([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5856ad([0x6a,0x77,0x6b]),_0x1cb619,{[_0x5856ad([0x6e,0x61,0x6d,0x65])]:_0x5856ad([0x45,0x43,0x44,0x53,0x41]),[_0x5856ad([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5856ad([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5856ad([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3cc900[_0x5856ad([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5856ad([0x6e,0x61,0x6d,0x65])]:_0x5856ad([0x45,0x43,0x44,0x53,0x41]),[_0x5856ad([0x68,0x61,0x73,0x68])]:{[_0x5856ad([0x6e,0x61,0x6d,0x65])]:_0x5856ad([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34e4f7,_0xd1922a,_0x1dd562)||(_0x320ad5=!0x1);}}function _0x537159(_0xd52524){return _0xd52524[_0x5856ad([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5856ad([0x65,0x79]))?JSON[_0x5856ad([0x70,0x61,0x72,0x73,0x65])](_0x3b6d55(_0xd52524)):null;}function _0x3b6d55(_0x3093f2){return window[_0x5856ad([0x61,0x74,0x6f,0x62])](_0x3093f2[_0x5856ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5856ad([0x2b]))[_0x5856ad([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5856ad([0x2f])));}function _0x2f0d9c(_0x50d4c4){let _0x52dcaa=0x1505;function _0x29c548(_0x428e82){for(let _0x1d2ffe=0x0;_0x1d2ffe<_0x428e82[_0x5856ad([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d2ffe++){const _0x106020=_0x428e82[_0x5856ad([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d2ffe);_0x52dcaa=(_0x52dcaa<<0x5)+_0x52dcaa+_0x106020,_0x52dcaa&=_0x52dcaa;}}function _0x534aee(_0x258639){Array[_0x5856ad([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x258639)?_0x258639[_0x5856ad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x534aee):_0x258639&&typeof _0x258639==_0x5856ad([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5856ad([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x258639)[_0x5856ad([0x73,0x6f,0x72,0x74])]()[_0x5856ad([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xbe56b1,_0x756364])=>{_0x29c548(_0xbe56b1),_0x534aee(_0x756364);}):_0x29c548(window[_0x5856ad([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x258639));}return _0x534aee(_0x50d4c4),_0x52dcaa>>>0x0;}function _0x1b5499(_0x415617){return _0x415617[_0x5856ad([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5856ad([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5856ad([0x30]));}function _0x27b986(_0x409a6e){return _0x409a6e[_0x5856ad([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5856ad([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5856ad([0x6a,0x6f,0x69,0x6e])]('');}function _0x5eb7d1(){}function _0x5856ad(_0x279dd8){return _0x279dd8['map'](_0x2f714a=>String['fromCharCode'](_0x2f714a))['join']('');}_0x8f3afa(await _0x6bbacd());}(this);}['_createButton'](_0x5852f2,_0x28e358,_0x4d5529=!0x1){const _0x4767fc=new _0x5852f2(this['editor']['locale']);return _0x4767fc['set']({'withText':_0x4d5529,'isToggleable':!0x1}),_0x4767fc['bind']('isEnabled')['to'](_0x28e358,'isEnabled'),this['listenTo'](_0x4767fc,'execute',()=>_0x28e358['execute']()),_0x4767fc;}['_registerKeybindings'](){const _0x3e8217=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':q(_0x3e8217,'Source\x20Editing\x20Enhanced')});const _0x395c63=_0x41e7ef['isMac']||_0x41e7ef['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':q(_0x3e8217,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':q(_0x3e8217,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':q(_0x3e8217,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':q(_0x3e8217,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':q(_0x3e8217,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':q(_0x3e8217,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':q(_0x3e8217,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x395c63?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':q(_0x3e8217,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':q(_0x3e8217,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':q(_0x3e8217,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':q(_0x3e8217,'Select\x20line'),'keystroke':_0x395c63?'Ctrl!+L':'Alt+L'},{'label':q(_0x3e8217,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x395c63?'Alt+Shift+M':'Ctrl+M'},{'label':q(_0x3e8217,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':q(_0x3e8217,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':q(_0x3e8217,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':q(_0x3e8217,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':q(_0x3e8217,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x395c63?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ReplaceSourceCommand extends _0x2848c0{constructor(_0x227646){super(_0x227646),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x7d7a4a,_0x31ae49){const _0x1973ba=this['editor'],_0x262bd5=_0x31ae49?.['rootName']??H(_0x1973ba);_0x1973ba['data']['set']({[_0x262bd5]:_0x7d7a4a},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class SourceEditingEnhanced extends _0x2faf23{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SourceEditingEnhancedUI];}constructor(_0x58fed2){super(_0x58fed2),_0x58fed2['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new ReplaceSourceCommand(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x41cd33=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x484aa5;for(const _0x582100 in _0x41cd33){const _0x4b8ab4=_0x582100,_0x10db52=_0x41cd33[_0x4b8ab4];if('sourceEditingEnhancedLicenseKeyValid'==_0x10db52||'sourceEditingEnhancedLicenseKeyInvalid'==_0x10db52||'sourceEditingEnhancedLicenseKeyExpired'==_0x10db52||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x10db52||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x10db52||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x10db52||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x10db52){delete _0x41cd33[_0x4b8ab4],_0x484aa5=_0x10db52,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x484aa5&&_0x41cd33['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x484aa5&&_0x41cd33['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x484aa5&&_0x41cd33['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x484aa5&&_0x41cd33['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x484aa5&&_0x41cd33['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x484aa5&&_0x41cd33['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0xae17ac=this['editor'],_0x393b36=_0xae17ac['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x393b36&&_0xae17ac['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x313882('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x393b36&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x49ce31=>_0xae17ac['plugins']['has'](_0x49ce31))&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20at\x20least\x20one\x20of\x20the\x20collaboration\x20features.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20collaboration\x20features.'),_0xae17ac['plugins']['has']('RestrictedEditingModeEditing')&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20restricted\x20editing\x20feature.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20enhanced\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20restricted\x20editing\x20feature.');}}export{EditSourceCommand,ReplaceSourceCommand,SourceEditingEnhanced};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-source-editing-enhanced",
3
- "version": "48.8.1-alpha.0",
3
+ "version": "48.8.1-alpha.1",
4
4
  "description": "Source editing enhanced feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -25,11 +25,11 @@
25
25
  "dist/translations/*.umd.js"
26
26
  ],
27
27
  "dependencies": {
28
- "@ckeditor/ckeditor5-core": "48.8.1-alpha.0",
29
- "@ckeditor/ckeditor5-engine": "48.8.1-alpha.0",
30
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.0",
31
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.0",
32
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.0",
28
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.1",
29
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.1",
30
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.1",
31
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.1",
32
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.1",
33
33
  "@codemirror/autocomplete": "^6.7.1",
34
34
  "@codemirror/commands": "6.8.1",
35
35
  "@codemirror/lang-html": "^6.0.0",