@ckeditor/ckeditor5-source-editing-enhanced 48.2.0-alpha.3 → 48.2.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x54acb9,PendingActions as _0x3db53b,Plugin as _0x29f5e3}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4a1ddf,formatHtml as _0x7bc39d,env as _0x1ad144,uid as _0x364948}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x8550bf}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x3adde5,ButtonView as _0xc2f1d5,MenuBarMenuListItemButtonView as _0x395623}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x2f5581,crosshairCursor as _0x39844b,drawSelection as _0x4143e1,dropCursor as _0x1eaef9,lineNumbers as _0x30c024,highlightActiveLine as _0x58f0db,highlightActiveLineGutter as _0x113eb0,highlightSpecialChars as _0x42f1f3,rectangularSelection as _0x49dc65,keymap as _0x12eff3}from'@codemirror/view';import{Compartment as _0x3b037f,Transaction as _0x3e55bc}from'@codemirror/state';import{bracketMatching as _0x169013,foldGutter as _0x372bf4,indentOnInput as _0x339358,syntaxHighlighting as _0x28d5a2,defaultHighlightStyle as _0x405372,foldKeymap as _0x1c2974}from'@codemirror/language';import{toggleTabFocusMode as _0x3143ed,history as _0x276c65,defaultKeymap as _0x32b59b,historyKeymap as _0x103623,indentLess as _0x58e279,indentMore as _0x8ca479,redo as _0x4a391d,undo as _0x4ceebc}from'@codemirror/commands';import{autocompletion as _0x29d1fb,closeBrackets as _0x3c0488,closeBracketsKeymap as _0x992e7b,completionKeymap as _0x5d7016}from'@codemirror/autocomplete';import{html as _0x21914c}from'@codemirror/lang-html';import{markdown as _0x53efb8}from'@codemirror/lang-markdown';import{oneDark as _0x1b1f7e}from'@codemirror/theme-one-dark';function q(_0x13d7d7,_0x4770d5){const t=_0x13d7d7['t'];switch(_0x4770d5){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 _0x4770d5;}}function H(_0x46f02f){const _0x373a62=_0x46f02f['editing']['view']['document']['roots'],_0x40d25f=_0x373a62['length'];if(0x0===_0x40d25f)throw new _0x4a1ddf('source-editing-enhanced-editor-no-root',_0x46f02f);if(0x1===_0x40d25f)return _0x373a62['first']['rootName'];return Array['from'](_0x46f02f['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x5b229e){return J(_0x5b229e['replace'](/^[\n\s]*/g,''))?_0x5b229e['replace'](/\s+/g,''):_0x5b229e;}function J(_0x1e1253){return _0x1e1253['startsWith']('<');}function G(_0x58770c){const _0x3d7386=[_0x2f5581['lineWrapping'],_0x29d1fb(),_0x169013(),_0x3c0488(),_0x39844b(),_0x4143e1(),_0x1eaef9(),_0x30c024(),_0x372bf4(),_0x58f0db(),_0x113eb0(),_0x42f1f3(),_0x276c65(),_0x339358(),_0x49dc65(),_0x28d5a2(_0x405372,{'fallback':!0x0})],_0x407d68=new _0x3b037f();_0x3d7386['push'](_0x407d68['of'](_0x2f5581['editable']['of'](!0x0))),'html'===_0x58770c['syntaxLanguage']?_0x3d7386['push'](_0x21914c()):_0x3d7386['push'](_0x53efb8());const _0x2469bb=function(_0x51bf44){if(_0x51bf44&&'default'!==_0x51bf44)return'dark'===_0x51bf44?_0x1b1f7e:_0x51bf44;return null;}(_0x58770c['theme']);_0x2469bb&&_0x3d7386['push'](_0x2469bb),_0x3d7386['push'](_0x12eff3['of']([..._0x992e7b,..._0x32b59b,..._0x103623,..._0x1c2974,..._0x5d7016,{'key':'Tab','run':_0x8ca479,'shift':_0x58e279,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x4a391d,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x4a391d,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x4ceebc,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x11abdd=new _0x2f5581({'extensions':_0x3d7386,'parent':_0x58770c['parent']});return _0x3143ed(_0x11abdd),{'focus':()=>{_0x11abdd['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x11abdd['focus']();},'getData':()=>_0x11abdd['state']['doc']['toString'](),'setData':_0x25dc58=>{_0x11abdd['dispatch']({'changes':{'from':0x0,'to':_0x11abdd['state']['doc']['length'],'insert':_0x25dc58},'annotations':_0x3e55bc['addToHistory']['of'](!0x1)});},'setReadOnly':_0x32cb3e=>{_0x11abdd['dispatch']({'effects':[_0x407d68['reconfigure'](_0x2f5581['editable']['of'](!_0x32cb3e))]});},'destroy':()=>{_0x11abdd['destroy']();},'instance':_0x11abdd};}class CodeEditorView extends _0x3adde5{['_codeEditorApi']=null;['_options'];constructor(_0x220081,_0xaddb27){super(_0x220081),this['_options']=_0xaddb27,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',(_0x510b24,_0x2e887a,_0xb79c96)=>{this['setReadOnly'](_0xb79c96);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x54e597){this['_codeEditorApi']['setData'](_0x54e597);}['setReadOnly'](_0xa2bf7a){this['_codeEditorApi']['setReadOnly'](_0xa2bf7a);}}const Q='SourceEditingEnhancedMode';class EditSourceCommand extends _0x54acb9{constructor(_0x25d2e9){super(_0x25d2e9),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x3db53b)['on']('change:hasAny',(_0x277257,_0x4f1654,_0x2453b4)=>{_0x2453b4?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x7b949f=this['editor'];for(const _0x559bad of _0x7b949f['commands']['names']())['replaceSource','editSource']['includes'](_0x559bad)||_0x7b949f['commands']['get'](_0x559bad)['forceDisabled'](Q);}['_enableCommands'](){const _0x2db1bd=this['editor'];for(const _0x32f1f0 of _0x2db1bd['commands']['commands']())_0x32f1f0['clearForceDisabled'](Q);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2b3faf=this['editor'],_0x20823d=_0x2b3faf['locale'],_0x436626=_0x2b3faf['plugins']['get']('Dialog'),_0x49ce63=H(_0x2b3faf),_0x43d44d=_0x2b3faf['data']['get']({'rootName':_0x49ce63}),_0xd1d17=J(_0x4bf925=_0x43d44d)?_0x7bc39d(_0x4bf925):_0x4bf925;var _0x4bf925;const _0x42ae07=new CodeEditorView(_0x20823d,{'syntaxLanguage':_0x2b3faf['plugins']['has']('Markdown')?'markdown':'html','theme':_0x2b3faf['config']['get']('sourceEditingEnhanced.theme')});let _0x1964f9=!0x0;const _0x27554d=_0x5d4f0a=>{if(!_0x1964f9)return;return Z(_0x42ae07['getData']())!==Z(_0xd1d17)?window['confirm'](q(_0x20823d,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x5d4f0a['stop']():void 0x0;};_0x436626['show']({'id':'sourceEditingEnhanced','title':q(_0x20823d,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x42ae07,'actionButtons':[{'label':q(_0x20823d,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x436626['hide']();}},{'label':q(_0x20823d,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x4e7b34=Z(_0x42ae07['getData']())!==Z(_0xd1d17);(_0x4e7b34&&_0x2b3faf['execute']('replaceSource',_0x42ae07['getData']()),_0x1964f9=!0x1,_0x436626['hide'](),_0x4e7b34&&'editables'in _0x2b3faf['ui']['view'])&&_0x2b3faf['ui']['view']['editables'][_0x49ce63]['element']['focus']();},'onCreate':_0x1018ab=>{_0x1018ab['set']('isEnabled',!_0x2b3faf['isReadOnly']),_0x1018ab['bind']('isEnabled')['to'](_0x2b3faf,'isReadOnly',this,'isEnabled',(_0x28f2a4,_0x50277f)=>!_0x28f2a4&&_0x50277f);}}],'onHide':()=>{this['_enableCommands'](),_0x436626['off']('hide',_0x27554d),_0x42ae07['destroy']();},'onShow':()=>{_0x42ae07['bind']('isReadOnly')['to'](_0x2b3faf,'isReadOnly',this,'isEnabled',(_0x37a55d,_0x48927c)=>_0x37a55d||!_0x48927c),_0x42ae07['setData'](_0xd1d17),_0x42ae07['focus'](),_0x436626['on']('hide',_0x27554d,{'priority':'highest'}),this['_disableCommands']();}});}}class SourceEditingEnhancedUI extends _0x29f5e3{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x3db53b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3e77d2=this['editor'],_0x17aef3=_0x3e77d2['locale'],_0x5b0e06=new EditSourceCommand(_0x3e77d2);_0x3e77d2['commands']['add']('editSource',_0x5b0e06),_0x3e77d2['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x336a58=this['_createButton'](_0xc2f1d5,_0x5b0e06);return _0x336a58['set']({'label':q(_0x17aef3,'Source'),'icon':_0x8550bf,'tooltip':q(_0x17aef3,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x336a58;}),_0x3e77d2['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x41d989=this['_createButton'](_0x395623,_0x5b0e06,!0x0);return _0x41d989['set']({'label':q(_0x17aef3,'Edit\x20source\x20modal\x20label'),'icon':_0x8550bf,'role':'menuitemcheckbox'}),_0x41d989;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x56e49b){const _0x4b05dc=_0x7a5376([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]),_0x190fd6=0x5dba9314,_0x1ba39f=0x5dbd189c^_0x190fd6,_0x43f9c1=window[_0x7a5376([0x44,0x61,0x74,0x65])][_0x7a5376([0x6e,0x6f,0x77])](),_0x4c81c3=_0x56e49b[_0x7a5376([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2c5d6f=new window[(_0x7a5376([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bd9f5=>{_0x4c81c3[_0x7a5376([0x6f,0x6e,0x63,0x65])](_0x7a5376([0x72,0x65,0x61,0x64,0x79]),_0x5bd9f5);}),_0x295464={[_0x7a5376([0x6b,0x74,0x79])]:_0x7a5376([0x45,0x43]),[_0x7a5376([0x75,0x73,0x65])]:_0x7a5376([0x73,0x69,0x67]),[_0x7a5376([0x63,0x72,0x76])]:_0x7a5376([0x50,0x2d,0x32,0x35,0x36]),[_0x7a5376([0x78])]:_0x7a5376([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]),[_0x7a5376([0x79])]:_0x7a5376([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]),[_0x7a5376([0x61,0x6c,0x67])]:_0x7a5376([0x45,0x53,0x32,0x35,0x36])},_0x6ee48a=_0x4c81c3[_0x7a5376([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x7a5376([0x67,0x65,0x74])](_0x7a5376([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x18c336(){let _0x917ae2,_0xc2055d=null,_0x4e2896=null;try{if(_0x6ee48a==_0x7a5376([0x47,0x50,0x4c]))return _0x7a5376([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x917ae2=_0x308071(),!_0x917ae2)return _0x7a5376([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x917ae2[_0x7a5376([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e2896=_0x868c7e(_0x917ae2[_0x7a5376([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x917ae2[_0x7a5376([0x6a,0x74,0x69])])),await _0x19777c()?_0x1258c2()?_0x160df2()?_0x7a5376([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdb8888()?(_0x917ae2[_0x7a5376([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7a5376([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xc2055d=_0x10c524(_0x7a5376([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e0576()):_0x7a5376([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x7a5376([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x7a5376([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x7a5376([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x160df2(){const _0x7ac27a=[_0x7a5376([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x7a5376([0x74,0x72,0x69,0x61,0x6c])][_0x7a5376([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x917ae2[_0x7a5376([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x43f9c1/0x3e8:0xe10*_0x1ba39f;return _0x917ae2[_0x7a5376([0x65,0x78,0x70])]<_0x7ac27a;}function _0x1258c2(){const _0x184822=_0x917ae2[_0x7a5376([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x184822&&(!!_0x184822[_0x7a5376([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7a5376([0x2a]))||!!_0x184822[_0x7a5376([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7a5376([0x53,0x45,0x45])));}function _0xdb8888(){const _0x20038a=_0x917ae2[_0x7a5376([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20038a||0x0==_0x20038a[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x218703}=new URL(window[_0x7a5376([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20038a[_0x7a5376([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x218703))return!0x0;const _0x3d8f05=_0x218703[_0x7a5376([0x73,0x70,0x6c,0x69,0x74])](_0x7a5376([0x2e]));return _0x20038a[_0x7a5376([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x571483=>_0x571483[_0x7a5376([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7a5376([0x2a])))[_0x7a5376([0x6d,0x61,0x70])](_0x97fc7f=>_0x97fc7f[_0x7a5376([0x73,0x70,0x6c,0x69,0x74])](_0x7a5376([0x2e])))[_0x7a5376([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53a59e=>_0x53a59e[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3d8f05[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7a5376([0x6d,0x61,0x70])](_0x51c87a=>Array(_0x3d8f05[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x51c87a[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7a5376([0x66,0x69,0x6c,0x6c])](_0x51c87a[0x0]===_0x7a5376([0x2a])?_0x7a5376([0x2a]):'')[_0x7a5376([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x51c87a))[_0x7a5376([0x73,0x6f,0x6d,0x65])](_0xd4d963=>_0x3d8f05[_0x7a5376([0x65,0x76,0x65,0x72,0x79])]((_0x36b519,_0x1c2bb2)=>_0xd4d963[_0x1c2bb2]===_0x36b519||_0xd4d963[_0x1c2bb2]===_0x7a5376([0x2a])));}function _0x2e0576(){return _0xc2055d&&_0x4e2896?new window[(_0x7a5376([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d52d3,_0x509138)=>{_0xc2055d[_0x7a5376([0x74,0x68,0x65,0x6e])](_0x5d52d3,_0x509138),_0x4e2896[_0x7a5376([0x74,0x68,0x65,0x6e])](_0x45c783=>{_0x45c783!=_0x7a5376([0x56,0x61,0x6c,0x69,0x64])&&_0x5d52d3(_0x45c783);},_0x509138);}):_0xc2055d||_0x4e2896||_0x7a5376([0x56,0x61,0x6c,0x69,0x64]);}}function _0x868c7e(_0x263e95,_0x56e371){return new window[(_0x7a5376([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x597d8b=>{if(_0x351bcf())return _0x597d8b(_0x7a5376([0x56,0x61,0x6c,0x69,0x64]));_0x2ea314(),_0x4c81c3[_0x7a5376([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x7a5376([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x49e287=!0x1;const _0x3c4eae=_0x364948();function _0x3fd52b(_0x511cea){return!!_0x511cea&&(typeof _0x511cea===_0x7a5376([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x511cea===_0x7a5376([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x511cea[_0x7a5376([0x74,0x68,0x65,0x6e])]===_0x7a5376([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x511cea[_0x7a5376([0x63,0x61,0x74,0x63,0x68])]===_0x7a5376([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c0cec(_0x387b66){_0x2969b4(_0x387b66)[_0x7a5376([0x74,0x68,0x65,0x6e])](_0x4f7212=>{if(!_0x4f7212||_0x4f7212[_0x7a5376([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x7a5376([0x6f,0x6b]))return _0x7a5376([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x14b86a(_0x471116(_0x3c4eae+_0x56e371))!=_0x4f7212[_0x7a5376([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x7a5376([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x7a5376([0x56,0x61,0x6c,0x69,0x64]);})[_0x7a5376([0x74,0x68,0x65,0x6e])](_0x4c8d75=>(_0x3600c1(),_0x4c8d75),()=>{const _0x3e84b6=_0x5e5fd1();return null==_0x3e84b6?(_0x3600c1(),_0x7a5376([0x56,0x61,0x6c,0x69,0x64])):_0x7a5376(_0x43f9c1-_0x3e84b6>(0x79b61714^_0x190fd6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x7a5376([0x74,0x68,0x65,0x6e])](_0x597d8b)[_0x7a5376([0x63,0x61,0x74,0x63,0x68])](()=>{_0x597d8b(_0x7a5376([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c4afd=0x5d8c7d94^_0x190fd6;function _0x3600c1(){const _0x2e87c3=_0x7a5376([0x6c,0x6c,0x63,0x74,0x2d])+_0x14b86a(_0x471116(_0x263e95)),_0x3f74dd=_0x5a82cb(_0x14b86a(window[_0x7a5376([0x4d,0x61,0x74,0x68])][_0x7a5376([0x63,0x65,0x69,0x6c])](_0x43f9c1/_0x1c4afd)));window[_0x7a5376([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7a5376([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e87c3,_0x3f74dd);}function _0x5e5fd1(){const _0x1d242c=_0x7a5376([0x6c,0x6c,0x63,0x74,0x2d])+_0x14b86a(_0x471116(_0x263e95)),_0x429d56=window[_0x7a5376([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7a5376([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d242c);return _0x429d56?window[_0x7a5376([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a82cb(_0x429d56),0x10)*_0x1c4afd:null;}function _0x2969b4(_0x44382e){return new window[(_0x7a5376([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c1ee2,_0x3929a7)=>{_0x44382e[_0x7a5376([0x74,0x68,0x65,0x6e])](_0x5c1ee2,_0x3929a7),window[_0x7a5376([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3929a7,0x5dbb47d4^_0x190fd6);});}}_0x4c81c3[_0x7a5376([0x6f,0x6e])](_0x7a5376([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c787e,_0x3be05c)=>{if(_0x3be05c[0x0]!=_0x263e95)return _0x597d8b(_0x7a5376([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3be05c[0x1]={..._0x3be05c[0x1],[_0x7a5376([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3c4eae};},{[_0x7a5376([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7a5376([0x68,0x69,0x67,0x68])}),_0x4c81c3[_0x7a5376([0x6f,0x6e])](_0x7a5376([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e91d2=>{_0x3fd52b(_0x3e91d2[_0x7a5376([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x49e287=!0x0,_0x5c0cec(_0x3e91d2[_0x7a5376([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x7a5376([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7a5376([0x6c,0x6f,0x77])}),_0x2c5d6f[_0x7a5376([0x74,0x68,0x65,0x6e])](()=>{_0x49e287||_0x597d8b(_0x7a5376([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x351bcf(){return _0x4c81c3[_0x7a5376([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7a5376([0x76,0x69,0x65,0x77])][_0x7a5376([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x7a5376([0x61,0x75,0x74,0x6f]);}function _0x2ea314(){_0x4c81c3[_0x7a5376([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7a5376([0x76,0x69,0x65,0x77])][_0x7a5376([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7a5376([0x61,0x75,0x74,0x6f]);}}function _0x10c524(_0x5848e7){const _0x1c8ac8=[new window[(_0x7a5376([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x103445=>setTimeout(_0x103445,0x5db3add8^_0x190fd6)),_0x2c5d6f[_0x7a5376([0x74,0x68,0x65,0x6e])](()=>new window[(_0x7a5376([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x157271=>{let _0x2c3f2a=0x0;_0x4c81c3[_0x7a5376([0x6d,0x6f,0x64,0x65,0x6c])][_0x7a5376([0x6f,0x6e])](_0x7a5376([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b0488,_0x90f89c)=>{_0x90f89c[0x0][_0x7a5376([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2c3f2a++,_0x2c3f2a==(0x5dba96fc^_0x190fd6)&&(_0x157271(),_0x3b0488[_0x7a5376([0x6f,0x66,0x66])]());});}))];return window[_0x7a5376([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7a5376([0x72,0x61,0x63,0x65])](_0x1c8ac8)[_0x7a5376([0x74,0x68,0x65,0x6e])](()=>_0x5848e7);}async function _0x2cc3ea(){await _0x2c5d6f,_0x4c81c3[_0x7a5376([0x6d,0x6f,0x64,0x65,0x6c])][_0x7a5376([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x355714,_0x4c81c3[_0x7a5376([0x6d,0x6f,0x64,0x65,0x6c])][_0x7a5376([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x355714,_0x4c81c3[_0x7a5376([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x7a5376([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f9994(_0x126510){const _0x41268b=_0x357e90();_0x4c81c3[_0x41268b]=_0x7a5376([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])+_0x126510,_0x126510!=_0x7a5376([0x56,0x61,0x6c,0x69,0x64])&&_0x2cc3ea();}function _0x357e90(){const _0x2fad12=window[_0x7a5376([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x7a5376([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x7a5376([0x6e,0x6f,0x77])]())[_0x7a5376([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x7a5376([0x2e]),'');let _0x57465d=_0x7a5376([0x4e]);for(let _0x2391f9=0x0;_0x2391f9<_0x2fad12[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2391f9+=0x2){let _0xd2e43d=window[_0x7a5376([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fad12[_0x7a5376([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2391f9,_0x2391f9+0x2));_0xd2e43d>=_0x4b05dc[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xd2e43d-=_0x4b05dc[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x57465d+=_0x4b05dc[_0xd2e43d];}return _0x57465d;}function _0x308071(){const _0x2f0bec=_0x6ee48a[_0x7a5376([0x73,0x70,0x6c,0x69,0x74])](_0x7a5376([0x2e]));if(0x3!=_0x2f0bec[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f44bf(_0x2f0bec[0x1]);function _0x1f44bf(_0x376da0){const _0x2e1f41=_0x569ebb(_0x376da0);return _0x2e1f41&&_0x5110fb()?_0x2e1f41:null;function _0x5110fb(){const _0x46eb28=_0x2e1f41[_0x7a5376([0x6a,0x74,0x69])],_0xfbe5fc=window[_0x7a5376([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46eb28[_0x7a5376([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46eb28[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x32c6d9={..._0x2e1f41,[_0x7a5376([0x6a,0x74,0x69])]:_0x46eb28[_0x7a5376([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x46eb28[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x32c6d9[_0x7a5376([0x76,0x63])],_0x471116(_0x32c6d9)==_0xfbe5fc;}}}async function _0x19777c(){let _0x7301e9=!0x0;try{const _0x6e4408=_0x6ee48a[_0x7a5376([0x73,0x70,0x6c,0x69,0x74])](_0x7a5376([0x2e])),[_0x5a9204,_0x4db40a,_0x23de53]=_0x6e4408;return _0x16c5dc(_0x5a9204),await _0x576e21(_0x5a9204,_0x4db40a,_0x23de53),_0x7301e9;}catch{return!0x1;}function _0x16c5dc(_0xfa2baa){const _0x4cbba2=_0x569ebb(_0xfa2baa);_0x4cbba2&&_0x4cbba2[_0x7a5376([0x61,0x6c,0x67])]==_0x7a5376([0x45,0x53,0x32,0x35,0x36])||(_0x7301e9=!0x1);}async function _0x576e21(_0x324bd7,_0x56d2b2,_0x541c22){const _0x179e7c=window[_0x7a5376([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x7a5376([0x66,0x72,0x6f,0x6d])](_0x528a85(_0x541c22),_0x3fd79d=>_0x3fd79d[_0x7a5376([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x62a6b6=new window[(_0x7a5376([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x7a5376([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x324bd7+_0x7a5376([0x2e])+_0x56d2b2),_0x5717ac=window[_0x7a5376([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x7a5376([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5717ac)return;const _0x1a3d0f=await _0x5717ac[_0x7a5376([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x7a5376([0x6a,0x77,0x6b]),_0x295464,{[_0x7a5376([0x6e,0x61,0x6d,0x65])]:_0x7a5376([0x45,0x43,0x44,0x53,0x41]),[_0x7a5376([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x7a5376([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x7a5376([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5717ac[_0x7a5376([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x7a5376([0x6e,0x61,0x6d,0x65])]:_0x7a5376([0x45,0x43,0x44,0x53,0x41]),[_0x7a5376([0x68,0x61,0x73,0x68])]:{[_0x7a5376([0x6e,0x61,0x6d,0x65])]:_0x7a5376([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a3d0f,_0x179e7c,_0x62a6b6)||(_0x7301e9=!0x1);}}function _0x569ebb(_0x58229c){return _0x58229c[_0x7a5376([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x7a5376([0x65,0x79]))?JSON[_0x7a5376([0x70,0x61,0x72,0x73,0x65])](_0x528a85(_0x58229c)):null;}function _0x528a85(_0x518f24){return window[_0x7a5376([0x61,0x74,0x6f,0x62])](_0x518f24[_0x7a5376([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x7a5376([0x2b]))[_0x7a5376([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x7a5376([0x2f])));}function _0x471116(_0x1980de){let _0x1c3709=0x1505;function _0x44e470(_0x4d262b){for(let _0x4f1c54=0x0;_0x4f1c54<_0x4d262b[_0x7a5376([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f1c54++){const _0x12fd9d=_0x4d262b[_0x7a5376([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f1c54);_0x1c3709=(_0x1c3709<<0x5)+_0x1c3709+_0x12fd9d,_0x1c3709&=_0x1c3709;}}function _0x5e81(_0x2bfcab){Array[_0x7a5376([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2bfcab)?_0x2bfcab[_0x7a5376([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e81):_0x2bfcab&&typeof _0x2bfcab==_0x7a5376([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x7a5376([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2bfcab)[_0x7a5376([0x73,0x6f,0x72,0x74])]()[_0x7a5376([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x527e26,_0x2650b0])=>{_0x44e470(_0x527e26),_0x5e81(_0x2650b0);}):_0x44e470(window[_0x7a5376([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2bfcab));}return _0x5e81(_0x1980de),_0x1c3709>>>0x0;}function _0x14b86a(_0x54bdab){return _0x54bdab[_0x7a5376([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x7a5376([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x7a5376([0x30]));}function _0x5a82cb(_0x4275aa){return _0x4275aa[_0x7a5376([0x73,0x70,0x6c,0x69,0x74])]('')[_0x7a5376([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x7a5376([0x6a,0x6f,0x69,0x6e])]('');}function _0x355714(){}function _0x7a5376(_0x542625){return _0x542625['map'](_0x5729f0=>String['fromCharCode'](_0x5729f0))['join']('');}_0x2f9994(await _0x18c336());}(this);}['_createButton'](_0x239325,_0x25ffc3,_0x558dfc=!0x1){const _0x462815=new _0x239325(this['editor']['locale']);return _0x462815['set']({'withText':_0x558dfc,'isToggleable':!0x1}),_0x462815['bind']('isEnabled')['to'](_0x25ffc3,'isEnabled'),this['listenTo'](_0x462815,'execute',()=>_0x25ffc3['execute']()),_0x462815;}['_registerKeybindings'](){const _0x3b9a30=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':q(_0x3b9a30,'Source\x20Editing\x20Enhanced')});const _0x2a126b=_0x1ad144['isMac']||_0x1ad144['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':q(_0x3b9a30,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':q(_0x3b9a30,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':q(_0x3b9a30,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':q(_0x3b9a30,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':q(_0x3b9a30,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':q(_0x3b9a30,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':q(_0x3b9a30,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x2a126b?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':q(_0x3b9a30,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':q(_0x3b9a30,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':q(_0x3b9a30,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':q(_0x3b9a30,'Select\x20line'),'keystroke':_0x2a126b?'Ctrl!+L':'Alt+L'},{'label':q(_0x3b9a30,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x2a126b?'Alt+Shift+M':'Ctrl+M'},{'label':q(_0x3b9a30,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':q(_0x3b9a30,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':q(_0x3b9a30,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':q(_0x3b9a30,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':q(_0x3b9a30,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x2a126b?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ReplaceSourceCommand extends _0x54acb9{constructor(_0x402964){super(_0x402964),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x1040e4,_0x4fe642){const _0xa0d7a3=this['editor'],_0x35f4e9=_0x4fe642?.['rootName']??H(_0xa0d7a3);_0xa0d7a3['data']['set']({[_0x35f4e9]:_0x1040e4},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class SourceEditingEnhanced extends _0x29f5e3{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SourceEditingEnhancedUI];}constructor(_0x5b98f8){super(_0x5b98f8),_0x5b98f8['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 _0x399e24=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4c0335;for(const _0x3a25b6 in _0x399e24){const _0x4f54b6=_0x3a25b6,_0x3046db=_0x399e24[_0x4f54b6];if('sourceEditingEnhancedLicenseKeyValid'==_0x3046db||'sourceEditingEnhancedLicenseKeyInvalid'==_0x3046db||'sourceEditingEnhancedLicenseKeyExpired'==_0x3046db||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x3046db||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x3046db||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x3046db||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x3046db){delete _0x399e24[_0x4f54b6],_0x4c0335=_0x3046db,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x4c0335&&_0x399e24['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x4c0335&&_0x399e24['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x4c0335&&_0x399e24['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x4c0335&&_0x399e24['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x4c0335&&_0x399e24['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x4c0335&&_0x399e24['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x4eef2f=this['editor'],_0x2c2869=_0x4eef2f['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x2c2869&&_0x4eef2f['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x4a1ddf('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x2c2869&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x5d7702=>_0x4eef2f['plugins']['has'](_0x5d7702))&&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.'),_0x4eef2f['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 _0x5978ef,PendingActions as _0x278149,Plugin as _0x14126a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x321881,formatHtml as _0x2c1eb9,env as _0x1e705c,uid as _0x5e73e6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x25199f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x153d1c,ButtonView as _0x42fe67,MenuBarMenuListItemButtonView as _0x15e14f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x5de705,crosshairCursor as _0x5324cd,drawSelection as _0x517883,dropCursor as _0x5a7498,lineNumbers as _0x139e9b,highlightActiveLine as _0x8eb41a,highlightActiveLineGutter as _0x6c6412,highlightSpecialChars as _0x4b16cb,rectangularSelection as _0xf28288,keymap as _0x5a25a4}from'@codemirror/view';import{Compartment as _0x5bf9dc,Transaction as _0x35b0d7}from'@codemirror/state';import{bracketMatching as _0x1e619f,foldGutter as _0x2b399e,indentOnInput as _0x1df6ff,syntaxHighlighting as _0x3d2691,defaultHighlightStyle as _0x1a03bc,foldKeymap as _0x5e72ce}from'@codemirror/language';import{toggleTabFocusMode as _0x799c00,history as _0x1fb927,defaultKeymap as _0x3cd15b,historyKeymap as _0x45e95a,indentLess as _0x3d61d6,indentMore as _0x44b79f,redo as _0xac6721,undo as _0x121d29}from'@codemirror/commands';import{autocompletion as _0x4dd4e4,closeBrackets as _0x4f9955,closeBracketsKeymap as _0x3227aa,completionKeymap as _0x1518ef}from'@codemirror/autocomplete';import{html as _0x29e131}from'@codemirror/lang-html';import{markdown as _0x91eef5}from'@codemirror/lang-markdown';import{oneDark as _0x3f99c6}from'@codemirror/theme-one-dark';function q(_0x1647df,_0x4b2e69){const t=_0x1647df['t'];switch(_0x4b2e69){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 _0x4b2e69;}}function H(_0x196666){const _0x529d91=_0x196666['editing']['view']['document']['roots'],_0x34576b=_0x529d91['length'];if(0x0===_0x34576b)throw new _0x321881('source-editing-enhanced-editor-no-root',_0x196666);if(0x1===_0x34576b)return _0x529d91['first']['rootName'];return Array['from'](_0x196666['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x5c62e7){return J(_0x5c62e7['replace'](/^[\n\s]*/g,''))?_0x5c62e7['replace'](/\s+/g,''):_0x5c62e7;}function J(_0x2a0400){return _0x2a0400['startsWith']('<');}function G(_0x2e0186){const _0xe4b70a=[_0x5de705['lineWrapping'],_0x4dd4e4(),_0x1e619f(),_0x4f9955(),_0x5324cd(),_0x517883(),_0x5a7498(),_0x139e9b(),_0x2b399e(),_0x8eb41a(),_0x6c6412(),_0x4b16cb(),_0x1fb927(),_0x1df6ff(),_0xf28288(),_0x3d2691(_0x1a03bc,{'fallback':!0x0})],_0x104879=new _0x5bf9dc();_0xe4b70a['push'](_0x104879['of'](_0x5de705['editable']['of'](!0x0))),'html'===_0x2e0186['syntaxLanguage']?_0xe4b70a['push'](_0x29e131()):_0xe4b70a['push'](_0x91eef5());const _0x27167f=function(_0x28e04c){if(_0x28e04c&&'default'!==_0x28e04c)return'dark'===_0x28e04c?_0x3f99c6:_0x28e04c;return null;}(_0x2e0186['theme']);_0x27167f&&_0xe4b70a['push'](_0x27167f),_0xe4b70a['push'](_0x5a25a4['of']([..._0x3227aa,..._0x3cd15b,..._0x45e95a,..._0x5e72ce,..._0x1518ef,{'key':'Tab','run':_0x44b79f,'shift':_0x3d61d6,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0xac6721,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0xac6721,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x121d29,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x48c765=new _0x5de705({'extensions':_0xe4b70a,'parent':_0x2e0186['parent']});return _0x799c00(_0x48c765),{'focus':()=>{_0x48c765['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x48c765['focus']();},'getData':()=>_0x48c765['state']['doc']['toString'](),'setData':_0x9de6aa=>{_0x48c765['dispatch']({'changes':{'from':0x0,'to':_0x48c765['state']['doc']['length'],'insert':_0x9de6aa},'annotations':_0x35b0d7['addToHistory']['of'](!0x1)});},'setReadOnly':_0x4ad554=>{_0x48c765['dispatch']({'effects':[_0x104879['reconfigure'](_0x5de705['editable']['of'](!_0x4ad554))]});},'destroy':()=>{_0x48c765['destroy']();},'instance':_0x48c765};}class CodeEditorView extends _0x153d1c{['_codeEditorApi']=null;['_options'];constructor(_0x33ced0,_0x1b5e9d){super(_0x33ced0),this['_options']=_0x1b5e9d,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',(_0x463fe8,_0x1c9570,_0xacfc57)=>{this['setReadOnly'](_0xacfc57);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x23d929){this['_codeEditorApi']['setData'](_0x23d929);}['setReadOnly'](_0x519e7c){this['_codeEditorApi']['setReadOnly'](_0x519e7c);}}const Q='SourceEditingEnhancedMode';class EditSourceCommand extends _0x5978ef{constructor(_0x55f1fe){super(_0x55f1fe),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x278149)['on']('change:hasAny',(_0x55357e,_0x358800,_0x55340d)=>{_0x55340d?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x4985ad=this['editor'];for(const _0x3d7109 of _0x4985ad['commands']['names']())['replaceSource','editSource']['includes'](_0x3d7109)||_0x4985ad['commands']['get'](_0x3d7109)['forceDisabled'](Q);}['_enableCommands'](){const _0x4dba08=this['editor'];for(const _0x55d8d0 of _0x4dba08['commands']['commands']())_0x55d8d0['clearForceDisabled'](Q);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x45fbaa=this['editor'],_0x2f9147=_0x45fbaa['locale'],_0x316366=_0x45fbaa['plugins']['get']('Dialog'),_0x30330f=H(_0x45fbaa),_0x38e1d1=_0x45fbaa['data']['get']({'rootName':_0x30330f}),_0x5c0ab8=J(_0x51e605=_0x38e1d1)?_0x2c1eb9(_0x51e605):_0x51e605;var _0x51e605;const _0x2054f8=new CodeEditorView(_0x2f9147,{'syntaxLanguage':_0x45fbaa['plugins']['has']('Markdown')?'markdown':'html','theme':_0x45fbaa['config']['get']('sourceEditingEnhanced.theme')});let _0x305af2=!0x0;const _0x1a6950=_0x242abf=>{if(!_0x305af2)return;return Z(_0x2054f8['getData']())!==Z(_0x5c0ab8)?window['confirm'](q(_0x2f9147,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x242abf['stop']():void 0x0;};_0x316366['show']({'id':'sourceEditingEnhanced','title':q(_0x2f9147,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x2054f8,'actionButtons':[{'label':q(_0x2f9147,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x316366['hide']();}},{'label':q(_0x2f9147,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0xb3164a=Z(_0x2054f8['getData']())!==Z(_0x5c0ab8);(_0xb3164a&&_0x45fbaa['execute']('replaceSource',_0x2054f8['getData']()),_0x305af2=!0x1,_0x316366['hide'](),_0xb3164a&&'editables'in _0x45fbaa['ui']['view'])&&_0x45fbaa['ui']['view']['editables'][_0x30330f]['element']['focus']();},'onCreate':_0x371fcd=>{_0x371fcd['set']('isEnabled',!_0x45fbaa['isReadOnly']),_0x371fcd['bind']('isEnabled')['to'](_0x45fbaa,'isReadOnly',this,'isEnabled',(_0x2a1f4b,_0x419bb8)=>!_0x2a1f4b&&_0x419bb8);}}],'onHide':()=>{this['_enableCommands'](),_0x316366['off']('hide',_0x1a6950),_0x2054f8['destroy']();},'onShow':()=>{_0x2054f8['bind']('isReadOnly')['to'](_0x45fbaa,'isReadOnly',this,'isEnabled',(_0x166c17,_0x3d2c33)=>_0x166c17||!_0x3d2c33),_0x2054f8['setData'](_0x5c0ab8),_0x2054f8['focus'](),_0x316366['on']('hide',_0x1a6950,{'priority':'highest'}),this['_disableCommands']();}});}}class SourceEditingEnhancedUI extends _0x14126a{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x278149];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x426e42=this['editor'],_0x281011=_0x426e42['locale'],_0x3d118c=new EditSourceCommand(_0x426e42);_0x426e42['commands']['add']('editSource',_0x3d118c),_0x426e42['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x8a4828=this['_createButton'](_0x42fe67,_0x3d118c);return _0x8a4828['set']({'label':q(_0x281011,'Source'),'icon':_0x25199f,'tooltip':q(_0x281011,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x8a4828;}),_0x426e42['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x1c5d48=this['_createButton'](_0x15e14f,_0x3d118c,!0x0);return _0x1c5d48['set']({'label':q(_0x281011,'Edit\x20source\x20modal\x20label'),'icon':_0x25199f,'role':'menuitemcheckbox'}),_0x1c5d48;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x319eb9){const _0xf5746d=_0x17fe52([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]),_0x4bcce8=0x5dba9314,_0x4daead=0x5dbd18b4^_0x4bcce8,_0x44a5d3=window[_0x17fe52([0x44,0x61,0x74,0x65])][_0x17fe52([0x6e,0x6f,0x77])](),_0xe65505=_0x319eb9[_0x17fe52([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c1900=new window[(_0x17fe52([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44d314=>{_0xe65505[_0x17fe52([0x6f,0x6e,0x63,0x65])](_0x17fe52([0x72,0x65,0x61,0x64,0x79]),_0x44d314);}),_0x33431c={[_0x17fe52([0x6b,0x74,0x79])]:_0x17fe52([0x45,0x43]),[_0x17fe52([0x75,0x73,0x65])]:_0x17fe52([0x73,0x69,0x67]),[_0x17fe52([0x63,0x72,0x76])]:_0x17fe52([0x50,0x2d,0x32,0x35,0x36]),[_0x17fe52([0x78])]:_0x17fe52([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]),[_0x17fe52([0x79])]:_0x17fe52([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]),[_0x17fe52([0x61,0x6c,0x67])]:_0x17fe52([0x45,0x53,0x32,0x35,0x36])},_0xfab21d=_0xe65505[_0x17fe52([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17fe52([0x67,0x65,0x74])](_0x17fe52([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x292976(){let _0x574222,_0x37c266=null,_0x76d472=null;try{if(_0xfab21d==_0x17fe52([0x47,0x50,0x4c]))return _0x17fe52([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x574222=_0x3b731e(),!_0x574222)return _0x17fe52([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x574222[_0x17fe52([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x76d472=_0x55110b(_0x574222[_0x17fe52([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x574222[_0x17fe52([0x6a,0x74,0x69])])),await _0x41213c()?_0x3bb8fa()?_0x134306()?_0x17fe52([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xddf853()?(_0x574222[_0x17fe52([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17fe52([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x37c266=_0x40225d(_0x17fe52([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xff2cff()):_0x17fe52([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17fe52([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17fe52([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x17fe52([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x134306(){const _0x15f21e=[_0x17fe52([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17fe52([0x74,0x72,0x69,0x61,0x6c])][_0x17fe52([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x574222[_0x17fe52([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44a5d3/0x3e8:0xe10*_0x4daead;return _0x574222[_0x17fe52([0x65,0x78,0x70])]<_0x15f21e;}function _0x3bb8fa(){const _0x568a6a=_0x574222[_0x17fe52([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x568a6a&&(!!_0x568a6a[_0x17fe52([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17fe52([0x2a]))||!!_0x568a6a[_0x17fe52([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17fe52([0x53,0x45,0x45])));}function _0xddf853(){const _0x1893a9=_0x574222[_0x17fe52([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1893a9||0x0==_0x1893a9[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x50f9af}=new URL(window[_0x17fe52([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1893a9[_0x17fe52([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50f9af))return!0x0;const _0x10ead4=_0x50f9af[_0x17fe52([0x73,0x70,0x6c,0x69,0x74])](_0x17fe52([0x2e]));return _0x1893a9[_0x17fe52([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x805108=>_0x805108[_0x17fe52([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17fe52([0x2a])))[_0x17fe52([0x6d,0x61,0x70])](_0x41cb52=>_0x41cb52[_0x17fe52([0x73,0x70,0x6c,0x69,0x74])](_0x17fe52([0x2e])))[_0x17fe52([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3eaff0=>_0x3eaff0[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x10ead4[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17fe52([0x6d,0x61,0x70])](_0xd5c86b=>Array(_0x10ead4[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xd5c86b[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17fe52([0x66,0x69,0x6c,0x6c])](_0xd5c86b[0x0]===_0x17fe52([0x2a])?_0x17fe52([0x2a]):'')[_0x17fe52([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xd5c86b))[_0x17fe52([0x73,0x6f,0x6d,0x65])](_0x493815=>_0x10ead4[_0x17fe52([0x65,0x76,0x65,0x72,0x79])]((_0x3fff61,_0x1615ce)=>_0x493815[_0x1615ce]===_0x3fff61||_0x493815[_0x1615ce]===_0x17fe52([0x2a])));}function _0xff2cff(){return _0x37c266&&_0x76d472?new window[(_0x17fe52([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x253796,_0x473ecf)=>{_0x37c266[_0x17fe52([0x74,0x68,0x65,0x6e])](_0x253796,_0x473ecf),_0x76d472[_0x17fe52([0x74,0x68,0x65,0x6e])](_0x2f3c05=>{_0x2f3c05!=_0x17fe52([0x56,0x61,0x6c,0x69,0x64])&&_0x253796(_0x2f3c05);},_0x473ecf);}):_0x37c266||_0x76d472||_0x17fe52([0x56,0x61,0x6c,0x69,0x64]);}}function _0x55110b(_0x2e05a9,_0x564b2c){return new window[(_0x17fe52([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c62f7=>{if(_0x1cf4ce())return _0x4c62f7(_0x17fe52([0x56,0x61,0x6c,0x69,0x64]));_0x30dba4(),_0xe65505[_0x17fe52([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17fe52([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x35949e=!0x1;const _0x3f627e=_0x5e73e6();function _0x5ac31e(_0x2f0a1c){return!!_0x2f0a1c&&(typeof _0x2f0a1c===_0x17fe52([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f0a1c===_0x17fe52([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f0a1c[_0x17fe52([0x74,0x68,0x65,0x6e])]===_0x17fe52([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f0a1c[_0x17fe52([0x63,0x61,0x74,0x63,0x68])]===_0x17fe52([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x290979(_0x51e877){_0x4335fd(_0x51e877)[_0x17fe52([0x74,0x68,0x65,0x6e])](_0x3e23f7=>{if(!_0x3e23f7||_0x3e23f7[_0x17fe52([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17fe52([0x6f,0x6b]))return _0x17fe52([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x456a00(_0x29e43f(_0x3f627e+_0x564b2c))!=_0x3e23f7[_0x17fe52([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17fe52([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17fe52([0x56,0x61,0x6c,0x69,0x64]);})[_0x17fe52([0x74,0x68,0x65,0x6e])](_0x44e089=>(_0x4bce1a(),_0x44e089),()=>{const _0x4b9770=_0x8b4e06();return null==_0x4b9770?(_0x4bce1a(),_0x17fe52([0x56,0x61,0x6c,0x69,0x64])):_0x17fe52(_0x44a5d3-_0x4b9770>(0x79b61714^_0x4bcce8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17fe52([0x74,0x68,0x65,0x6e])](_0x4c62f7)[_0x17fe52([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c62f7(_0x17fe52([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x295f2e=0x5d8c7d94^_0x4bcce8;function _0x4bce1a(){const _0x50597a=_0x17fe52([0x6c,0x6c,0x63,0x74,0x2d])+_0x456a00(_0x29e43f(_0x2e05a9)),_0x487462=_0x33cf0f(_0x456a00(window[_0x17fe52([0x4d,0x61,0x74,0x68])][_0x17fe52([0x63,0x65,0x69,0x6c])](_0x44a5d3/_0x295f2e)));window[_0x17fe52([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17fe52([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50597a,_0x487462);}function _0x8b4e06(){const _0x18a58b=_0x17fe52([0x6c,0x6c,0x63,0x74,0x2d])+_0x456a00(_0x29e43f(_0x2e05a9)),_0x376f09=window[_0x17fe52([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17fe52([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18a58b);return _0x376f09?window[_0x17fe52([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33cf0f(_0x376f09),0x10)*_0x295f2e:null;}function _0x4335fd(_0xf00411){return new window[(_0x17fe52([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3db539,_0x24e2bd)=>{_0xf00411[_0x17fe52([0x74,0x68,0x65,0x6e])](_0x3db539,_0x24e2bd),window[_0x17fe52([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24e2bd,0x5dbb47d4^_0x4bcce8);});}}_0xe65505[_0x17fe52([0x6f,0x6e])](_0x17fe52([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x31aa2e,_0x1d91d0)=>{if(_0x1d91d0[0x0]!=_0x2e05a9)return _0x4c62f7(_0x17fe52([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d91d0[0x1]={..._0x1d91d0[0x1],[_0x17fe52([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f627e};},{[_0x17fe52([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17fe52([0x68,0x69,0x67,0x68])}),_0xe65505[_0x17fe52([0x6f,0x6e])](_0x17fe52([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xa55f29=>{_0x5ac31e(_0xa55f29[_0x17fe52([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x35949e=!0x0,_0x290979(_0xa55f29[_0x17fe52([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17fe52([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17fe52([0x6c,0x6f,0x77])}),_0x5c1900[_0x17fe52([0x74,0x68,0x65,0x6e])](()=>{_0x35949e||_0x4c62f7(_0x17fe52([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1cf4ce(){return _0xe65505[_0x17fe52([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17fe52([0x76,0x69,0x65,0x77])][_0x17fe52([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17fe52([0x61,0x75,0x74,0x6f]);}function _0x30dba4(){_0xe65505[_0x17fe52([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17fe52([0x76,0x69,0x65,0x77])][_0x17fe52([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17fe52([0x61,0x75,0x74,0x6f]);}}function _0x40225d(_0x1a0d34){const _0x148266=[new window[(_0x17fe52([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x354e0a=>setTimeout(_0x354e0a,0x5db3add8^_0x4bcce8)),_0x5c1900[_0x17fe52([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17fe52([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c79fd=>{let _0x4d0427=0x0;_0xe65505[_0x17fe52([0x6d,0x6f,0x64,0x65,0x6c])][_0x17fe52([0x6f,0x6e])](_0x17fe52([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11943f,_0x2e9e57)=>{_0x2e9e57[0x0][_0x17fe52([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4d0427++,_0x4d0427==(0x5dba96fc^_0x4bcce8)&&(_0x2c79fd(),_0x11943f[_0x17fe52([0x6f,0x66,0x66])]());});}))];return window[_0x17fe52([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17fe52([0x72,0x61,0x63,0x65])](_0x148266)[_0x17fe52([0x74,0x68,0x65,0x6e])](()=>_0x1a0d34);}async function _0x317ebe(){await _0x5c1900,_0xe65505[_0x17fe52([0x6d,0x6f,0x64,0x65,0x6c])][_0x17fe52([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x54f321,_0xe65505[_0x17fe52([0x6d,0x6f,0x64,0x65,0x6c])][_0x17fe52([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x54f321,_0xe65505[_0x17fe52([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17fe52([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e8b40(_0x26c03e){const _0x47c45e=_0xa648e3();_0xe65505[_0x47c45e]=_0x17fe52([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])+_0x26c03e,_0x26c03e!=_0x17fe52([0x56,0x61,0x6c,0x69,0x64])&&_0x317ebe();}function _0xa648e3(){const _0x3a2e8d=window[_0x17fe52([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17fe52([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17fe52([0x6e,0x6f,0x77])]())[_0x17fe52([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17fe52([0x2e]),'');let _0xa10b1b=_0x17fe52([0x4e]);for(let _0x27b556=0x0;_0x27b556<_0x3a2e8d[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27b556+=0x2){let _0x3d6346=window[_0x17fe52([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a2e8d[_0x17fe52([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27b556,_0x27b556+0x2));_0x3d6346>=_0xf5746d[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3d6346-=_0xf5746d[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa10b1b+=_0xf5746d[_0x3d6346];}return _0xa10b1b;}function _0x3b731e(){const _0x1cc814=_0xfab21d[_0x17fe52([0x73,0x70,0x6c,0x69,0x74])](_0x17fe52([0x2e]));if(0x3!=_0x1cc814[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x433009(_0x1cc814[0x1]);function _0x433009(_0x1c4ed9){const _0x2dc723=_0x5a30b9(_0x1c4ed9);return _0x2dc723&&_0x311c9c()?_0x2dc723:null;function _0x311c9c(){const _0x5ec0c1=_0x2dc723[_0x17fe52([0x6a,0x74,0x69])],_0x462847=window[_0x17fe52([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ec0c1[_0x17fe52([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ec0c1[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4672f5={..._0x2dc723,[_0x17fe52([0x6a,0x74,0x69])]:_0x5ec0c1[_0x17fe52([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ec0c1[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4672f5[_0x17fe52([0x76,0x63])],_0x29e43f(_0x4672f5)==_0x462847;}}}async function _0x41213c(){let _0x3f410f=!0x0;try{const _0x38fc8b=_0xfab21d[_0x17fe52([0x73,0x70,0x6c,0x69,0x74])](_0x17fe52([0x2e])),[_0x1364a7,_0xe0009b,_0x53d0e1]=_0x38fc8b;return _0x948b0d(_0x1364a7),await _0x9e3ed4(_0x1364a7,_0xe0009b,_0x53d0e1),_0x3f410f;}catch{return!0x1;}function _0x948b0d(_0x5e164d){const _0x46a78b=_0x5a30b9(_0x5e164d);_0x46a78b&&_0x46a78b[_0x17fe52([0x61,0x6c,0x67])]==_0x17fe52([0x45,0x53,0x32,0x35,0x36])||(_0x3f410f=!0x1);}async function _0x9e3ed4(_0x1bd45e,_0x3b2ef6,_0x5d3388){const _0x1af1ea=window[_0x17fe52([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17fe52([0x66,0x72,0x6f,0x6d])](_0x1193f3(_0x5d3388),_0x3a0903=>_0x3a0903[_0x17fe52([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x17ecf6=new window[(_0x17fe52([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17fe52([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1bd45e+_0x17fe52([0x2e])+_0x3b2ef6),_0x8d41d9=window[_0x17fe52([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17fe52([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x8d41d9)return;const _0x54f4f5=await _0x8d41d9[_0x17fe52([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17fe52([0x6a,0x77,0x6b]),_0x33431c,{[_0x17fe52([0x6e,0x61,0x6d,0x65])]:_0x17fe52([0x45,0x43,0x44,0x53,0x41]),[_0x17fe52([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17fe52([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17fe52([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x8d41d9[_0x17fe52([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17fe52([0x6e,0x61,0x6d,0x65])]:_0x17fe52([0x45,0x43,0x44,0x53,0x41]),[_0x17fe52([0x68,0x61,0x73,0x68])]:{[_0x17fe52([0x6e,0x61,0x6d,0x65])]:_0x17fe52([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54f4f5,_0x1af1ea,_0x17ecf6)||(_0x3f410f=!0x1);}}function _0x5a30b9(_0x33c687){return _0x33c687[_0x17fe52([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17fe52([0x65,0x79]))?JSON[_0x17fe52([0x70,0x61,0x72,0x73,0x65])](_0x1193f3(_0x33c687)):null;}function _0x1193f3(_0x4d3ef6){return window[_0x17fe52([0x61,0x74,0x6f,0x62])](_0x4d3ef6[_0x17fe52([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17fe52([0x2b]))[_0x17fe52([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17fe52([0x2f])));}function _0x29e43f(_0x13ae29){let _0xa5a5a=0x1505;function _0x3be067(_0x2ec127){for(let _0x372b21=0x0;_0x372b21<_0x2ec127[_0x17fe52([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x372b21++){const _0x540abb=_0x2ec127[_0x17fe52([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x372b21);_0xa5a5a=(_0xa5a5a<<0x5)+_0xa5a5a+_0x540abb,_0xa5a5a&=_0xa5a5a;}}function _0x2ef49c(_0x7368a3){Array[_0x17fe52([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x7368a3)?_0x7368a3[_0x17fe52([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ef49c):_0x7368a3&&typeof _0x7368a3==_0x17fe52([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17fe52([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x7368a3)[_0x17fe52([0x73,0x6f,0x72,0x74])]()[_0x17fe52([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3a9a7d,_0x42136e])=>{_0x3be067(_0x3a9a7d),_0x2ef49c(_0x42136e);}):_0x3be067(window[_0x17fe52([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x7368a3));}return _0x2ef49c(_0x13ae29),_0xa5a5a>>>0x0;}function _0x456a00(_0x1428fa){return _0x1428fa[_0x17fe52([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17fe52([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17fe52([0x30]));}function _0x33cf0f(_0x3317e4){return _0x3317e4[_0x17fe52([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17fe52([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17fe52([0x6a,0x6f,0x69,0x6e])]('');}function _0x54f321(){}function _0x17fe52(_0x4fe0b0){return _0x4fe0b0['map'](_0x4b0336=>String['fromCharCode'](_0x4b0336))['join']('');}_0x3e8b40(await _0x292976());}(this);}['_createButton'](_0x3534ee,_0x38a867,_0x10e2f1=!0x1){const _0x5a2ba6=new _0x3534ee(this['editor']['locale']);return _0x5a2ba6['set']({'withText':_0x10e2f1,'isToggleable':!0x1}),_0x5a2ba6['bind']('isEnabled')['to'](_0x38a867,'isEnabled'),this['listenTo'](_0x5a2ba6,'execute',()=>_0x38a867['execute']()),_0x5a2ba6;}['_registerKeybindings'](){const _0x4e89c2=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':q(_0x4e89c2,'Source\x20Editing\x20Enhanced')});const _0x5dda2a=_0x1e705c['isMac']||_0x1e705c['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':q(_0x4e89c2,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':q(_0x4e89c2,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':q(_0x4e89c2,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':q(_0x4e89c2,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':q(_0x4e89c2,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':q(_0x4e89c2,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':q(_0x4e89c2,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x5dda2a?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':q(_0x4e89c2,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':q(_0x4e89c2,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':q(_0x4e89c2,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':q(_0x4e89c2,'Select\x20line'),'keystroke':_0x5dda2a?'Ctrl!+L':'Alt+L'},{'label':q(_0x4e89c2,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x5dda2a?'Alt+Shift+M':'Ctrl+M'},{'label':q(_0x4e89c2,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':q(_0x4e89c2,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':q(_0x4e89c2,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':q(_0x4e89c2,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':q(_0x4e89c2,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x5dda2a?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ReplaceSourceCommand extends _0x5978ef{constructor(_0x59cfe1){super(_0x59cfe1),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x18129a,_0x3c8ca3){const _0x467443=this['editor'],_0x378aa2=_0x3c8ca3?.['rootName']??H(_0x467443);_0x467443['data']['set']({[_0x378aa2]:_0x18129a},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class SourceEditingEnhanced extends _0x14126a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SourceEditingEnhancedUI];}constructor(_0x1d821e){super(_0x1d821e),_0x1d821e['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 _0x580df1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1af0c2;for(const _0x1ecae4 in _0x580df1){const _0x33cccc=_0x1ecae4,_0x307d26=_0x580df1[_0x33cccc];if('sourceEditingEnhancedLicenseKeyValid'==_0x307d26||'sourceEditingEnhancedLicenseKeyInvalid'==_0x307d26||'sourceEditingEnhancedLicenseKeyExpired'==_0x307d26||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x307d26||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x307d26||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x307d26||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x307d26){delete _0x580df1[_0x33cccc],_0x1af0c2=_0x307d26,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x1af0c2&&_0x580df1['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x1af0c2&&_0x580df1['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x1af0c2&&_0x580df1['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x1af0c2&&_0x580df1['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x1af0c2&&_0x580df1['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x1af0c2&&_0x580df1['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x2ddb63=this['editor'],_0xc7f86d=_0x2ddb63['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0xc7f86d&&_0x2ddb63['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x321881('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0xc7f86d&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x9ec6e7=>_0x2ddb63['plugins']['has'](_0x9ec6e7))&&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.'),_0x2ddb63['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.2.0-alpha.
|
|
3
|
+
"version": "48.2.0-alpha.4",
|
|
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.2.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-icons": "48.2.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-ui": "48.2.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.
|
|
28
|
+
"@ckeditor/ckeditor5-core": "48.2.0-alpha.4",
|
|
29
|
+
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.4",
|
|
30
|
+
"@ckeditor/ckeditor5-icons": "48.2.0-alpha.4",
|
|
31
|
+
"@ckeditor/ckeditor5-ui": "48.2.0-alpha.4",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.4",
|
|
33
33
|
"@codemirror/autocomplete": "^6.7.1",
|
|
34
34
|
"@codemirror/commands": "6.8.1",
|
|
35
35
|
"@codemirror/lang-html": "^6.0.0",
|