@ckeditor/ckeditor5-source-editing-enhanced 48.0.0-alpha.0 → 48.0.0-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 _0x49de58,PendingActions as _0x5e923f,Plugin as _0x213d30}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2ef5d1,formatHtml as _0x585951,env as _0x25c6b7,uid as _0x15c968}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x24324d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x8ef35,ButtonView as _0x2e7ee0,MenuBarMenuListItemButtonView as _0x54143f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x1d198d,crosshairCursor as _0x301449,drawSelection as _0x23b7de,dropCursor as _0xdd73cc,lineNumbers as _0x51336d,highlightActiveLine as _0x27c7c6,highlightActiveLineGutter as _0x4c0d13,highlightSpecialChars as _0x16b745,rectangularSelection as _0x5b2267,keymap as _0x3740cb}from'@codemirror/view';import{Compartment as _0x294625,Transaction as _0xa9d315}from'@codemirror/state';import{bracketMatching as _0x12008f,foldGutter as _0x39d23a,indentOnInput as _0x43b68b,syntaxHighlighting as _0xb3e9a3,defaultHighlightStyle as _0x2b5712,foldKeymap as _0x350767}from'@codemirror/language';import{toggleTabFocusMode as _0x4c6d31,history as _0x31f2a7,defaultKeymap as _0x37746c,historyKeymap as _0x3f254f,indentLess as _0x36436d,indentMore as _0x1e36b1,redo as _0x22de6f,undo as _0x1ddecf}from'@codemirror/commands';import{autocompletion as _0x483f54,closeBrackets as _0x36bc9f,closeBracketsKeymap as _0x2beaac,completionKeymap as _0x47163d}from'@codemirror/autocomplete';import{html as _0x8457d4}from'@codemirror/lang-html';import{markdown as _0x4f69c1}from'@codemirror/lang-markdown';import{oneDark as _0x334a73}from'@codemirror/theme-one-dark';function H(_0x2d4227,_0x3fb297){const t=_0x2d4227['t'];switch(_0x3fb297){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 _0x3fb297;}}function V(_0x1ffac4){const _0x23021=_0x1ffac4['editing']['view']['document']['roots'],_0x43f83c=_0x23021['length'];if(0x0===_0x43f83c)throw new _0x2ef5d1('source-editing-enhanced-editor-no-root',_0x1ffac4);if(0x1===_0x43f83c)return _0x23021['first']['rootName'];return Array['from'](_0x1ffac4['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x345839){return J(_0x345839['replace'](/^[\n\s]*/g,''))?_0x345839['replace'](/\s+/g,''):_0x345839;}function J(_0x3f7a78){return _0x3f7a78['startsWith']('<');}function G(_0x1148e4){const _0x2dcf89=[_0x1d198d['lineWrapping'],_0x483f54(),_0x12008f(),_0x36bc9f(),_0x301449(),_0x23b7de(),_0xdd73cc(),_0x51336d(),_0x39d23a(),_0x27c7c6(),_0x4c0d13(),_0x16b745(),_0x31f2a7(),_0x43b68b(),_0x5b2267(),_0xb3e9a3(_0x2b5712,{'fallback':!0x0})],_0x7484a8=new _0x294625();_0x2dcf89['push'](_0x7484a8['of'](_0x1d198d['editable']['of'](!0x0))),'html'===_0x1148e4['syntaxLanguage']?_0x2dcf89['push'](_0x8457d4()):_0x2dcf89['push'](_0x4f69c1());const _0x3dc45a=function(_0x29342b){if(_0x29342b&&'default'!==_0x29342b)return'dark'===_0x29342b?_0x334a73:_0x29342b;return null;}(_0x1148e4['theme']);_0x3dc45a&&_0x2dcf89['push'](_0x3dc45a),_0x2dcf89['push'](_0x3740cb['of']([..._0x2beaac,..._0x37746c,..._0x3f254f,..._0x350767,..._0x47163d,{'key':'Tab','run':_0x1e36b1,'shift':_0x36436d,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x22de6f,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x22de6f,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x1ddecf,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x1da58d=new _0x1d198d({'extensions':_0x2dcf89,'parent':_0x1148e4['parent']});return _0x4c6d31(_0x1da58d),{'focus':()=>{_0x1da58d['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x1da58d['focus']();},'getData':()=>_0x1da58d['state']['doc']['toString'](),'setData':_0x5199c9=>{_0x1da58d['dispatch']({'changes':{'from':0x0,'to':_0x1da58d['state']['doc']['length'],'insert':_0x5199c9},'annotations':_0xa9d315['addToHistory']['of'](!0x1)});},'setReadOnly':_0x57d331=>{_0x1da58d['dispatch']({'effects':[_0x7484a8['reconfigure'](_0x1d198d['editable']['of'](!_0x57d331))]});},'destroy':()=>{_0x1da58d['destroy']();},'instance':_0x1da58d};}class Q extends _0x8ef35{['_codeEditorApi']=null;['_options'];constructor(_0x187ea6,_0x9c25a4){super(_0x187ea6),this['_options']=_0x9c25a4,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',(_0x1bd596,_0x1b5688,_0x4858e8)=>{this['setReadOnly'](_0x4858e8);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x1af5a8){this['_codeEditorApi']['setData'](_0x1af5a8);}['setReadOnly'](_0x2e70da){this['_codeEditorApi']['setReadOnly'](_0x2e70da);}}const W='SourceEditingEnhancedMode';class X extends _0x49de58{constructor(_0x394b71){super(_0x394b71),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x5e923f)['on']('change:hasAny',(_0x4760d8,_0x41214f,_0x4ad3b9)=>{_0x4ad3b9?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0xbd91df=this['editor'];for(const _0x4325fd of _0xbd91df['commands']['names']())['replaceSource','editSource']['includes'](_0x4325fd)||_0xbd91df['commands']['get'](_0x4325fd)['forceDisabled'](W);}['_enableCommands'](){const _0x55c993=this['editor'];for(const _0x189b11 of _0x55c993['commands']['commands']())_0x189b11['clearForceDisabled'](W);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x521d77=this['editor'],_0x1c4114=_0x521d77['locale'],_0x440e06=_0x521d77['plugins']['get']('Dialog'),_0x568e39=V(_0x521d77),_0x3eab68=_0x521d77['data']['get']({'rootName':_0x568e39}),_0x26834b=J(_0x49d249=_0x3eab68)?_0x585951(_0x49d249):_0x49d249;var _0x49d249;const _0x393f4c=new Q(_0x1c4114,{'syntaxLanguage':_0x521d77['plugins']['has']('Markdown')?'markdown':'html','theme':_0x521d77['config']['get']('sourceEditingEnhanced.theme')});let _0x350574=!0x0;const _0x5286bc=_0x42867e=>{if(!_0x350574)return;return Z(_0x393f4c['getData']())!==Z(_0x26834b)?window['confirm'](H(_0x1c4114,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x42867e['stop']():void 0x0;};_0x440e06['show']({'id':'sourceEditingEnhanced','title':H(_0x1c4114,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x393f4c,'actionButtons':[{'label':H(_0x1c4114,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x440e06['hide']();}},{'label':H(_0x1c4114,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x4506c4=Z(_0x393f4c['getData']())!==Z(_0x26834b);(_0x4506c4&&_0x521d77['execute']('replaceSource',_0x393f4c['getData']()),_0x350574=!0x1,_0x440e06['hide'](),_0x4506c4&&'editables'in _0x521d77['ui']['view'])&&_0x521d77['ui']['view']['editables'][_0x568e39]['element']['focus']();},'onCreate':_0x2d25e8=>{_0x2d25e8['set']('isEnabled',!_0x521d77['isReadOnly']),_0x2d25e8['bind']('isEnabled')['to'](_0x521d77,'isReadOnly',this,'isEnabled',(_0x492d7f,_0x240525)=>!_0x492d7f&&_0x240525);}}],'onHide':()=>{this['_enableCommands'](),_0x440e06['off']('hide',_0x5286bc),_0x393f4c['destroy']();},'onShow':()=>{_0x393f4c['bind']('isReadOnly')['to'](_0x521d77,'isReadOnly',this,'isEnabled',(_0x32d88a,_0x55e494)=>_0x32d88a||!_0x55e494),_0x393f4c['setData'](_0x26834b),_0x393f4c['focus'](),_0x440e06['on']('hide',_0x5286bc,{'priority':'highest'}),this['_disableCommands']();}});}}class $ extends _0x213d30{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x5e923f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1e5fbc=this['editor'],_0x9dbaa0=_0x1e5fbc['locale'],_0x5f392f=new X(_0x1e5fbc);_0x1e5fbc['commands']['add']('editSource',_0x5f392f),_0x1e5fbc['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x5c8475=this['_createButton'](_0x2e7ee0,_0x5f392f);return _0x5c8475['set']({'label':H(_0x9dbaa0,'Source'),'icon':_0x24324d,'tooltip':H(_0x9dbaa0,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x5c8475;}),_0x1e5fbc['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x705aa1=this['_createButton'](_0x54143f,_0x5f392f,!0x0);return _0x705aa1['set']({'label':H(_0x9dbaa0,'Edit\x20source\x20modal\x20label'),'icon':_0x24324d,'role':'menuitemcheckbox'}),_0x705aa1;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x59ddc8){const _0x5d6c68=_0x21f7b1([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]),_0x19caa=0x5dba9314,_0x49f0d0=0x5dbd17dc^_0x19caa,_0x494237=window[_0x21f7b1([0x44,0x61,0x74,0x65])][_0x21f7b1([0x6e,0x6f,0x77])](),_0x12a208=_0x59ddc8[_0x21f7b1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x312e94=new window[(_0x21f7b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4edfd9=>{_0x12a208[_0x21f7b1([0x6f,0x6e,0x63,0x65])](_0x21f7b1([0x72,0x65,0x61,0x64,0x79]),_0x4edfd9);}),_0x4a131f={[_0x21f7b1([0x6b,0x74,0x79])]:_0x21f7b1([0x45,0x43]),[_0x21f7b1([0x75,0x73,0x65])]:_0x21f7b1([0x73,0x69,0x67]),[_0x21f7b1([0x63,0x72,0x76])]:_0x21f7b1([0x50,0x2d,0x32,0x35,0x36]),[_0x21f7b1([0x78])]:_0x21f7b1([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]),[_0x21f7b1([0x79])]:_0x21f7b1([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]),[_0x21f7b1([0x61,0x6c,0x67])]:_0x21f7b1([0x45,0x53,0x32,0x35,0x36])},_0x27f355=_0x12a208[_0x21f7b1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21f7b1([0x67,0x65,0x74])](_0x21f7b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5aa714(){let _0x565f56,_0x2e82bf=null,_0x2b4777=null;try{if(_0x27f355==_0x21f7b1([0x47,0x50,0x4c]))return _0x21f7b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x565f56=_0x4bb3cb(),!_0x565f56)return _0x21f7b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x565f56[_0x21f7b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b4777=_0xe2fdf3(_0x565f56[_0x21f7b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x565f56[_0x21f7b1([0x6a,0x74,0x69])])),await _0x45e77d()?_0x51b809()?_0x58d89f()?_0x21f7b1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45034d()?(_0x565f56[_0x21f7b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21f7b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e82bf=_0x448a04(_0x21f7b1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x55766d()):_0x21f7b1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21f7b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21f7b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x21f7b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x58d89f(){const _0x5f3bb2=[_0x21f7b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21f7b1([0x74,0x72,0x69,0x61,0x6c])][_0x21f7b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x565f56[_0x21f7b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x494237/0x3e8:0xe10*_0x49f0d0;return _0x565f56[_0x21f7b1([0x65,0x78,0x70])]<_0x5f3bb2;}function _0x51b809(){const _0x4f18d9=_0x565f56[_0x21f7b1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4f18d9&&(!!_0x4f18d9[_0x21f7b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21f7b1([0x2a]))||!!_0x4f18d9[_0x21f7b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21f7b1([0x53,0x45,0x45])));}function _0x45034d(){const _0x5de955=_0x565f56[_0x21f7b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5de955||0x0==_0x5de955[_0x21f7b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x53fb86}=new URL(window[_0x21f7b1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5de955[_0x21f7b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53fb86))return!0x0;const _0x3e5865=_0x53fb86[_0x21f7b1([0x73,0x70,0x6c,0x69,0x74])](_0x21f7b1([0x2e]));return _0x5de955[_0x21f7b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48daee=>_0x48daee[_0x21f7b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21f7b1([0x2a])))[_0x21f7b1([0x6d,0x61,0x70])](_0x4eb2b5=>_0x4eb2b5[_0x21f7b1([0x73,0x70,0x6c,0x69,0x74])](_0x21f7b1([0x2e])))[_0x21f7b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29d061=>_0x29d061[_0x21f7b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3e5865[_0x21f7b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21f7b1([0x6d,0x61,0x70])](_0x5ad085=>Array(_0x3e5865[_0x21f7b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5ad085[_0x21f7b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21f7b1([0x66,0x69,0x6c,0x6c])](_0x5ad085[0x0]===_0x21f7b1([0x2a])?_0x21f7b1([0x2a]):'')[_0x21f7b1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5ad085))[_0x21f7b1([0x73,0x6f,0x6d,0x65])](_0x14a371=>_0x3e5865[_0x21f7b1([0x65,0x76,0x65,0x72,0x79])]((_0x35699a,_0x334e59)=>_0x14a371[_0x334e59]===_0x35699a||_0x14a371[_0x334e59]===_0x21f7b1([0x2a])));}function _0x55766d(){return _0x2e82bf&&_0x2b4777?new window[(_0x21f7b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36b5d1,_0x3b9da5)=>{_0x2e82bf[_0x21f7b1([0x74,0x68,0x65,0x6e])](_0x36b5d1,_0x3b9da5),_0x2b4777[_0x21f7b1([0x74,0x68,0x65,0x6e])](_0x585437=>{_0x585437!=_0x21f7b1([0x56,0x61,0x6c,0x69,0x64])&&_0x36b5d1(_0x585437);},_0x3b9da5);}):_0x2e82bf||_0x2b4777||_0x21f7b1([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe2fdf3(_0x87b5eb,_0x4c8455){return new window[(_0x21f7b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x388bb6=>{if(_0x5b2097())return _0x388bb6(_0x21f7b1([0x56,0x61,0x6c,0x69,0x64]));_0x1a8e76(),_0x12a208[_0x21f7b1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21f7b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x556ee4=!0x1;const _0x18a15c=_0x15c968();function _0x57304f(_0x2a0564){return!!_0x2a0564&&(typeof _0x2a0564===_0x21f7b1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a0564===_0x21f7b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a0564[_0x21f7b1([0x74,0x68,0x65,0x6e])]===_0x21f7b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a0564[_0x21f7b1([0x63,0x61,0x74,0x63,0x68])]===_0x21f7b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f2908(_0x30d9bf){_0x1afedb(_0x30d9bf)[_0x21f7b1([0x74,0x68,0x65,0x6e])](_0x33b04e=>{if(!_0x33b04e||_0x33b04e[_0x21f7b1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21f7b1([0x6f,0x6b]))return _0x21f7b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x23c771(_0x8e9c3f(_0x18a15c+_0x4c8455))!=_0x33b04e[_0x21f7b1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21f7b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21f7b1([0x56,0x61,0x6c,0x69,0x64]);})[_0x21f7b1([0x74,0x68,0x65,0x6e])](_0x460621=>(_0x593eb0(),_0x460621),()=>{const _0x97763f=_0x286f5d();return null==_0x97763f?(_0x593eb0(),_0x21f7b1([0x56,0x61,0x6c,0x69,0x64])):_0x21f7b1(_0x494237-_0x97763f>(0x79b61714^_0x19caa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21f7b1([0x74,0x68,0x65,0x6e])](_0x388bb6)[_0x21f7b1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x388bb6(_0x21f7b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2fd12d=0x5d8c7d94^_0x19caa;function _0x593eb0(){const _0x4c84fc=_0x21f7b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x23c771(_0x8e9c3f(_0x87b5eb)),_0x4faa0a=_0x2e42c6(_0x23c771(window[_0x21f7b1([0x4d,0x61,0x74,0x68])][_0x21f7b1([0x63,0x65,0x69,0x6c])](_0x494237/_0x2fd12d)));window[_0x21f7b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21f7b1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c84fc,_0x4faa0a);}function _0x286f5d(){const _0x2418ec=_0x21f7b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x23c771(_0x8e9c3f(_0x87b5eb)),_0x2c44b5=window[_0x21f7b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21f7b1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2418ec);return _0x2c44b5?window[_0x21f7b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e42c6(_0x2c44b5),0x10)*_0x2fd12d:null;}function _0x1afedb(_0x320df9){return new window[(_0x21f7b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c1d0b,_0x268217)=>{_0x320df9[_0x21f7b1([0x74,0x68,0x65,0x6e])](_0x3c1d0b,_0x268217),window[_0x21f7b1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x268217,0x5dbb47d4^_0x19caa);});}}_0x12a208[_0x21f7b1([0x6f,0x6e])](_0x21f7b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x32cc2f,_0x2b4921)=>{if(_0x2b4921[0x0]!=_0x87b5eb)return _0x388bb6(_0x21f7b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2b4921[0x1]={..._0x2b4921[0x1],[_0x21f7b1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x18a15c};},{[_0x21f7b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21f7b1([0x68,0x69,0x67,0x68])}),_0x12a208[_0x21f7b1([0x6f,0x6e])](_0x21f7b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5cbe93=>{_0x57304f(_0x5cbe93[_0x21f7b1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x556ee4=!0x0,_0x2f2908(_0x5cbe93[_0x21f7b1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21f7b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21f7b1([0x6c,0x6f,0x77])}),_0x312e94[_0x21f7b1([0x74,0x68,0x65,0x6e])](()=>{_0x556ee4||_0x388bb6(_0x21f7b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b2097(){return _0x12a208[_0x21f7b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21f7b1([0x76,0x69,0x65,0x77])][_0x21f7b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21f7b1([0x61,0x75,0x74,0x6f]);}function _0x1a8e76(){_0x12a208[_0x21f7b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21f7b1([0x76,0x69,0x65,0x77])][_0x21f7b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21f7b1([0x61,0x75,0x74,0x6f]);}}function _0x448a04(_0x49c7e0){const _0x2e7e19=[new window[(_0x21f7b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3570ab=>setTimeout(_0x3570ab,0x5db3add8^_0x19caa)),_0x312e94[_0x21f7b1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21f7b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fdad0=>{let _0x123c9a=0x0;_0x12a208[_0x21f7b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x21f7b1([0x6f,0x6e])](_0x21f7b1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x509925,_0x23d1c9)=>{_0x23d1c9[0x0][_0x21f7b1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x123c9a++,_0x123c9a==(0x5dba96fc^_0x19caa)&&(_0x1fdad0(),_0x509925[_0x21f7b1([0x6f,0x66,0x66])]());});}))];return window[_0x21f7b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21f7b1([0x72,0x61,0x63,0x65])](_0x2e7e19)[_0x21f7b1([0x74,0x68,0x65,0x6e])](()=>_0x49c7e0);}async function _0x123d90(){await _0x312e94,_0x12a208[_0x21f7b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x21f7b1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x55366b,_0x12a208[_0x21f7b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x21f7b1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x55366b,_0x12a208[_0x21f7b1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21f7b1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2b445b(_0x5eea85){const _0x42b00d=_0x91150c();_0x12a208[_0x42b00d]=_0x21f7b1([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])+_0x5eea85,_0x5eea85!=_0x21f7b1([0x56,0x61,0x6c,0x69,0x64])&&_0x123d90();}function _0x91150c(){const _0x3ed898=window[_0x21f7b1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21f7b1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21f7b1([0x6e,0x6f,0x77])]())[_0x21f7b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21f7b1([0x2e]),'');let _0x2f7d3d=_0x21f7b1([0x4e]);for(let _0xa0cdb3=0x0;_0xa0cdb3<_0x3ed898[_0x21f7b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa0cdb3+=0x2){let _0x331c94=window[_0x21f7b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ed898[_0x21f7b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa0cdb3,_0xa0cdb3+0x2));_0x331c94>=_0x5d6c68[_0x21f7b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x331c94-=_0x5d6c68[_0x21f7b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f7d3d+=_0x5d6c68[_0x331c94];}return _0x2f7d3d;}function _0x4bb3cb(){const _0xd636e4=_0x27f355[_0x21f7b1([0x73,0x70,0x6c,0x69,0x74])](_0x21f7b1([0x2e]));if(0x3!=_0xd636e4[_0x21f7b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x246936(_0xd636e4[0x1]);function _0x246936(_0x31d608){const _0x1ba503=_0x31516f(_0x31d608);return _0x1ba503&&_0x998f2f()?_0x1ba503:null;function _0x998f2f(){const _0xb1e4c4=_0x1ba503[_0x21f7b1([0x6a,0x74,0x69])],_0x5802b9=window[_0x21f7b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb1e4c4[_0x21f7b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb1e4c4[_0x21f7b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x593ab0={..._0x1ba503,[_0x21f7b1([0x6a,0x74,0x69])]:_0xb1e4c4[_0x21f7b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb1e4c4[_0x21f7b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x593ab0[_0x21f7b1([0x76,0x63])],_0x8e9c3f(_0x593ab0)==_0x5802b9;}}}async function _0x45e77d(){let _0x593370=!0x0;try{const _0x5d02a9=_0x27f355[_0x21f7b1([0x73,0x70,0x6c,0x69,0x74])](_0x21f7b1([0x2e])),[_0x25954d,_0x298840,_0x414e36]=_0x5d02a9;return _0x4a2713(_0x25954d),await _0x565881(_0x25954d,_0x298840,_0x414e36),_0x593370;}catch{return!0x1;}function _0x4a2713(_0x3716de){const _0x4fabaf=_0x31516f(_0x3716de);_0x4fabaf&&_0x4fabaf[_0x21f7b1([0x61,0x6c,0x67])]==_0x21f7b1([0x45,0x53,0x32,0x35,0x36])||(_0x593370=!0x1);}async function _0x565881(_0x3a9eb4,_0x447c90,_0xfa8493){const _0x3e6f0f=window[_0x21f7b1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21f7b1([0x66,0x72,0x6f,0x6d])](_0x18ffdf(_0xfa8493),_0x3179e9=>_0x3179e9[_0x21f7b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x23f5dc=new window[(_0x21f7b1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21f7b1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a9eb4+_0x21f7b1([0x2e])+_0x447c90),_0x1155e0=window[_0x21f7b1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21f7b1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1155e0)return;const _0x100c75=await _0x1155e0[_0x21f7b1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21f7b1([0x6a,0x77,0x6b]),_0x4a131f,{[_0x21f7b1([0x6e,0x61,0x6d,0x65])]:_0x21f7b1([0x45,0x43,0x44,0x53,0x41]),[_0x21f7b1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21f7b1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21f7b1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1155e0[_0x21f7b1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21f7b1([0x6e,0x61,0x6d,0x65])]:_0x21f7b1([0x45,0x43,0x44,0x53,0x41]),[_0x21f7b1([0x68,0x61,0x73,0x68])]:{[_0x21f7b1([0x6e,0x61,0x6d,0x65])]:_0x21f7b1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x100c75,_0x3e6f0f,_0x23f5dc)||(_0x593370=!0x1);}}function _0x31516f(_0x3abb0e){return _0x3abb0e[_0x21f7b1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21f7b1([0x65,0x79]))?JSON[_0x21f7b1([0x70,0x61,0x72,0x73,0x65])](_0x18ffdf(_0x3abb0e)):null;}function _0x18ffdf(_0xfbf656){return window[_0x21f7b1([0x61,0x74,0x6f,0x62])](_0xfbf656[_0x21f7b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21f7b1([0x2b]))[_0x21f7b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21f7b1([0x2f])));}function _0x8e9c3f(_0x5ba391){let _0x158ddd=0x1505;function _0x54b8d2(_0x3124bd){for(let _0x2ff701=0x0;_0x2ff701<_0x3124bd[_0x21f7b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ff701++){const _0x5191ae=_0x3124bd[_0x21f7b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2ff701);_0x158ddd=(_0x158ddd<<0x5)+_0x158ddd+_0x5191ae,_0x158ddd&=_0x158ddd;}}function _0x4d6bd8(_0x723bb3){Array[_0x21f7b1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x723bb3)?_0x723bb3[_0x21f7b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4d6bd8):_0x723bb3&&typeof _0x723bb3==_0x21f7b1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21f7b1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x723bb3)[_0x21f7b1([0x73,0x6f,0x72,0x74])]()[_0x21f7b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x118970,_0x5bede1])=>{_0x54b8d2(_0x118970),_0x4d6bd8(_0x5bede1);}):_0x54b8d2(window[_0x21f7b1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x723bb3));}return _0x4d6bd8(_0x5ba391),_0x158ddd>>>0x0;}function _0x23c771(_0x296654){return _0x296654[_0x21f7b1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21f7b1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21f7b1([0x30]));}function _0x2e42c6(_0x5e6884){return _0x5e6884[_0x21f7b1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21f7b1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21f7b1([0x6a,0x6f,0x69,0x6e])]('');}function _0x55366b(){}function _0x21f7b1(_0xbb3de1){return _0xbb3de1['map'](_0x2c61c3=>String['fromCharCode'](_0x2c61c3))['join']('');}_0x2b445b(await _0x5aa714());}(this);}['_createButton'](_0xbb817a,_0xd2f3f2,_0x3fd8a8=!0x1){const _0x4ccab3=new _0xbb817a(this['editor']['locale']);return _0x4ccab3['set']({'withText':_0x3fd8a8,'isToggleable':!0x1}),_0x4ccab3['bind']('isEnabled')['to'](_0xd2f3f2,'isEnabled'),this['listenTo'](_0x4ccab3,'execute',()=>_0xd2f3f2['execute']()),_0x4ccab3;}['_registerKeybindings'](){const _0x5591e6=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':H(_0x5591e6,'Source\x20Editing\x20Enhanced')});const _0x2583ac=_0x25c6b7['isMac']||_0x25c6b7['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':H(_0x5591e6,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':H(_0x5591e6,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':H(_0x5591e6,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':H(_0x5591e6,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':H(_0x5591e6,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':H(_0x5591e6,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':H(_0x5591e6,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x2583ac?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':H(_0x5591e6,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':H(_0x5591e6,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':H(_0x5591e6,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':H(_0x5591e6,'Select\x20line'),'keystroke':_0x2583ac?'Ctrl!+L':'Alt+L'},{'label':H(_0x5591e6,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x2583ac?'Alt+Shift+M':'Ctrl+M'},{'label':H(_0x5591e6,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':H(_0x5591e6,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':H(_0x5591e6,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':H(_0x5591e6,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':H(_0x5591e6,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x2583ac?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ee extends _0x49de58{constructor(_0x221f5b){super(_0x221f5b),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x3d2b9d,_0x292746){const _0x52da90=this['editor'],_0x154c84=_0x292746?.['rootName']??V(_0x52da90);_0x52da90['data']['set']({[_0x154c84]:_0x3d2b9d},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class te extends _0x213d30{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[$];}constructor(_0x270f8f){super(_0x270f8f),_0x270f8f['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new ee(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2ff104=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ed9a9;for(const _0x2683a3 in _0x2ff104){const _0x4c56c4=_0x2683a3,_0x38d9d2=_0x2ff104[_0x4c56c4];if('sourceEditingEnhancedLicenseKeyValid'==_0x38d9d2||'sourceEditingEnhancedLicenseKeyInvalid'==_0x38d9d2||'sourceEditingEnhancedLicenseKeyExpired'==_0x38d9d2||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x38d9d2||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x38d9d2||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x38d9d2||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x38d9d2){delete _0x2ff104[_0x4c56c4],_0x1ed9a9=_0x38d9d2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x1ed9a9&&_0x2ff104['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x1ed9a9&&_0x2ff104['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x1ed9a9&&_0x2ff104['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x1ed9a9&&_0x2ff104['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x1ed9a9&&_0x2ff104['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x1ed9a9&&_0x2ff104['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x349a08=this['editor'],_0x7e7b48=_0x349a08['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x7e7b48&&_0x349a08['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x2ef5d1('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x7e7b48&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x9356cc=>_0x349a08['plugins']['has'](_0x9356cc))&&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.'),_0x349a08['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{X as EditSourceCommand,ee as ReplaceSourceCommand,te as SourceEditingEnhanced};
23
+ import{Command as _0x3891f4,PendingActions as _0x757bea,Plugin as _0x360ad8}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3bcf5e,formatHtml as _0x104724,env as _0x8d4c2f,uid as _0xf0d03e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x5375ad}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x4c0597,ButtonView as _0x2a5e41,MenuBarMenuListItemButtonView as _0x5881e7}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x245deb,crosshairCursor as _0x5f304e,drawSelection as _0x173d2f,dropCursor as _0x26bb78,lineNumbers as _0x25d6fd,highlightActiveLine as _0x25bc3e,highlightActiveLineGutter as _0x8bbc86,highlightSpecialChars as _0x354caf,rectangularSelection as _0x317dac,keymap as _0x48b6ac}from'@codemirror/view';import{Compartment as _0x536551,Transaction as _0x53a1a8}from'@codemirror/state';import{bracketMatching as _0x3625ba,foldGutter as _0x2314a2,indentOnInput as _0x517379,syntaxHighlighting as _0x439c5a,defaultHighlightStyle as _0x20a405,foldKeymap as _0x4a64ff}from'@codemirror/language';import{toggleTabFocusMode as _0x46cbb7,history as _0x277a0b,defaultKeymap as _0x2a6d71,historyKeymap as _0xb2ffdf,indentLess as _0x3436ef,indentMore as _0xebbf45,redo as _0x45b280,undo as _0x39fbcc}from'@codemirror/commands';import{autocompletion as _0x21c770,closeBrackets as _0xa18fc2,closeBracketsKeymap as _0x392fa3,completionKeymap as _0x248645}from'@codemirror/autocomplete';import{html as _0x1864c3}from'@codemirror/lang-html';import{markdown as _0x51d75f}from'@codemirror/lang-markdown';import{oneDark as _0x203791}from'@codemirror/theme-one-dark';function H(_0x28e879,_0x193c69){const t=_0x28e879['t'];switch(_0x193c69){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 _0x193c69;}}function V(_0x407998){const _0x29e286=_0x407998['editing']['view']['document']['roots'],_0x171cef=_0x29e286['length'];if(0x0===_0x171cef)throw new _0x3bcf5e('source-editing-enhanced-editor-no-root',_0x407998);if(0x1===_0x171cef)return _0x29e286['first']['rootName'];return Array['from'](_0x407998['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function Z(_0x4d009f){return J(_0x4d009f['replace'](/^[\n\s]*/g,''))?_0x4d009f['replace'](/\s+/g,''):_0x4d009f;}function J(_0xeb008a){return _0xeb008a['startsWith']('<');}function G(_0x1b5179){const _0x510e31=[_0x245deb['lineWrapping'],_0x21c770(),_0x3625ba(),_0xa18fc2(),_0x5f304e(),_0x173d2f(),_0x26bb78(),_0x25d6fd(),_0x2314a2(),_0x25bc3e(),_0x8bbc86(),_0x354caf(),_0x277a0b(),_0x517379(),_0x317dac(),_0x439c5a(_0x20a405,{'fallback':!0x0})],_0x457378=new _0x536551();_0x510e31['push'](_0x457378['of'](_0x245deb['editable']['of'](!0x0))),'html'===_0x1b5179['syntaxLanguage']?_0x510e31['push'](_0x1864c3()):_0x510e31['push'](_0x51d75f());const _0x4e3340=function(_0x404002){if(_0x404002&&'default'!==_0x404002)return'dark'===_0x404002?_0x203791:_0x404002;return null;}(_0x1b5179['theme']);_0x4e3340&&_0x510e31['push'](_0x4e3340),_0x510e31['push'](_0x48b6ac['of']([..._0x392fa3,..._0x2a6d71,..._0xb2ffdf,..._0x4a64ff,..._0x248645,{'key':'Tab','run':_0xebbf45,'shift':_0x3436ef,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x45b280,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x45b280,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x39fbcc,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x37c1e8=new _0x245deb({'extensions':_0x510e31,'parent':_0x1b5179['parent']});return _0x46cbb7(_0x37c1e8),{'focus':()=>{_0x37c1e8['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x37c1e8['focus']();},'getData':()=>_0x37c1e8['state']['doc']['toString'](),'setData':_0x818d6a=>{_0x37c1e8['dispatch']({'changes':{'from':0x0,'to':_0x37c1e8['state']['doc']['length'],'insert':_0x818d6a},'annotations':_0x53a1a8['addToHistory']['of'](!0x1)});},'setReadOnly':_0x4938f5=>{_0x37c1e8['dispatch']({'effects':[_0x457378['reconfigure'](_0x245deb['editable']['of'](!_0x4938f5))]});},'destroy':()=>{_0x37c1e8['destroy']();},'instance':_0x37c1e8};}class Q extends _0x4c0597{['_codeEditorApi']=null;['_options'];constructor(_0x15823e,_0x1319d){super(_0x15823e),this['_options']=_0x1319d,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',(_0x28f410,_0x933556,_0x2b0c74)=>{this['setReadOnly'](_0x2b0c74);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x274159){this['_codeEditorApi']['setData'](_0x274159);}['setReadOnly'](_0x516f94){this['_codeEditorApi']['setReadOnly'](_0x516f94);}}const W='SourceEditingEnhancedMode';class X extends _0x3891f4{constructor(_0x174e50){super(_0x174e50),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x757bea)['on']('change:hasAny',(_0x4e8efa,_0x3e8ac8,_0x5b2ba)=>{_0x5b2ba?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x791262=this['editor'];for(const _0x5edeb2 of _0x791262['commands']['names']())['replaceSource','editSource']['includes'](_0x5edeb2)||_0x791262['commands']['get'](_0x5edeb2)['forceDisabled'](W);}['_enableCommands'](){const _0x2325ce=this['editor'];for(const _0xed4866 of _0x2325ce['commands']['commands']())_0xed4866['clearForceDisabled'](W);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x26242a=this['editor'],_0x3a2470=_0x26242a['locale'],_0x211f0c=_0x26242a['plugins']['get']('Dialog'),_0x56095e=V(_0x26242a),_0x588a40=_0x26242a['data']['get']({'rootName':_0x56095e}),_0x9d8f4a=J(_0x1f5cde=_0x588a40)?_0x104724(_0x1f5cde):_0x1f5cde;var _0x1f5cde;const _0x1f5fc3=new Q(_0x3a2470,{'syntaxLanguage':_0x26242a['plugins']['has']('Markdown')?'markdown':'html','theme':_0x26242a['config']['get']('sourceEditingEnhanced.theme')});let _0x3c5c8a=!0x0;const _0x1608c1=_0x404b85=>{if(!_0x3c5c8a)return;return Z(_0x1f5fc3['getData']())!==Z(_0x9d8f4a)?window['confirm'](H(_0x3a2470,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x404b85['stop']():void 0x0;};_0x211f0c['show']({'id':'sourceEditingEnhanced','title':H(_0x3a2470,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x1f5fc3,'actionButtons':[{'label':H(_0x3a2470,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x211f0c['hide']();}},{'label':H(_0x3a2470,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x1fa714=Z(_0x1f5fc3['getData']())!==Z(_0x9d8f4a);(_0x1fa714&&_0x26242a['execute']('replaceSource',_0x1f5fc3['getData']()),_0x3c5c8a=!0x1,_0x211f0c['hide'](),_0x1fa714&&'editables'in _0x26242a['ui']['view'])&&_0x26242a['ui']['view']['editables'][_0x56095e]['element']['focus']();},'onCreate':_0x1445b0=>{_0x1445b0['set']('isEnabled',!_0x26242a['isReadOnly']),_0x1445b0['bind']('isEnabled')['to'](_0x26242a,'isReadOnly',this,'isEnabled',(_0x11c1b3,_0x43dde2)=>!_0x11c1b3&&_0x43dde2);}}],'onHide':()=>{this['_enableCommands'](),_0x211f0c['off']('hide',_0x1608c1),_0x1f5fc3['destroy']();},'onShow':()=>{_0x1f5fc3['bind']('isReadOnly')['to'](_0x26242a,'isReadOnly',this,'isEnabled',(_0x1f7808,_0x31f61f)=>_0x1f7808||!_0x31f61f),_0x1f5fc3['setData'](_0x9d8f4a),_0x1f5fc3['focus'](),_0x211f0c['on']('hide',_0x1608c1,{'priority':'highest'}),this['_disableCommands']();}});}}class $ extends _0x360ad8{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x757bea];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x18e37a=this['editor'],_0x2cf7b4=_0x18e37a['locale'],_0x27c702=new X(_0x18e37a);_0x18e37a['commands']['add']('editSource',_0x27c702),_0x18e37a['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x4a9d10=this['_createButton'](_0x2a5e41,_0x27c702);return _0x4a9d10['set']({'label':H(_0x2cf7b4,'Source'),'icon':_0x5375ad,'tooltip':H(_0x2cf7b4,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x4a9d10;}),_0x18e37a['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x1f1ee0=this['_createButton'](_0x5881e7,_0x27c702,!0x0);return _0x1f1ee0['set']({'label':H(_0x2cf7b4,'Edit\x20source\x20modal\x20label'),'icon':_0x5375ad,'role':'menuitemcheckbox'}),_0x1f1ee0;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x1b5a2c){const _0x33dea9=_0x5c7748([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]),_0x1096d5=0x5dba9314,_0x381750=0x5dbd17f4^_0x1096d5,_0x1f5f15=window[_0x5c7748([0x44,0x61,0x74,0x65])][_0x5c7748([0x6e,0x6f,0x77])](),_0x117383=_0x1b5a2c[_0x5c7748([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2aba7d=new window[(_0x5c7748([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c0b16=>{_0x117383[_0x5c7748([0x6f,0x6e,0x63,0x65])](_0x5c7748([0x72,0x65,0x61,0x64,0x79]),_0x5c0b16);}),_0x1b50d3={[_0x5c7748([0x6b,0x74,0x79])]:_0x5c7748([0x45,0x43]),[_0x5c7748([0x75,0x73,0x65])]:_0x5c7748([0x73,0x69,0x67]),[_0x5c7748([0x63,0x72,0x76])]:_0x5c7748([0x50,0x2d,0x32,0x35,0x36]),[_0x5c7748([0x78])]:_0x5c7748([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]),[_0x5c7748([0x79])]:_0x5c7748([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]),[_0x5c7748([0x61,0x6c,0x67])]:_0x5c7748([0x45,0x53,0x32,0x35,0x36])},_0x75cc21=_0x117383[_0x5c7748([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c7748([0x67,0x65,0x74])](_0x5c7748([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x9caaf0(){let _0xb40e4a,_0x43f1dd=null,_0x400b39=null;try{if(_0x75cc21==_0x5c7748([0x47,0x50,0x4c]))return _0x5c7748([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xb40e4a=_0x3c7125(),!_0xb40e4a)return _0x5c7748([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xb40e4a[_0x5c7748([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x400b39=_0x26038c(_0xb40e4a[_0x5c7748([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xb40e4a[_0x5c7748([0x6a,0x74,0x69])])),await _0x45265e()?_0xe8daef()?_0x2f6757()?_0x5c7748([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x573991()?(_0xb40e4a[_0x5c7748([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c7748([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43f1dd=_0x9996d8(_0x5c7748([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x366503()):_0x5c7748([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c7748([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c7748([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5c7748([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f6757(){const _0x218bab=[_0x5c7748([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c7748([0x74,0x72,0x69,0x61,0x6c])][_0x5c7748([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb40e4a[_0x5c7748([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f5f15/0x3e8:0xe10*_0x381750;return _0xb40e4a[_0x5c7748([0x65,0x78,0x70])]<_0x218bab;}function _0xe8daef(){const _0x5bf34d=_0xb40e4a[_0x5c7748([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5bf34d&&(!!_0x5bf34d[_0x5c7748([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c7748([0x2a]))||!!_0x5bf34d[_0x5c7748([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c7748([0x53,0x45,0x45])));}function _0x573991(){const _0x35013c=_0xb40e4a[_0x5c7748([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x35013c||0x0==_0x35013c[_0x5c7748([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x495318}=new URL(window[_0x5c7748([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x35013c[_0x5c7748([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x495318))return!0x0;const _0x53ab3f=_0x495318[_0x5c7748([0x73,0x70,0x6c,0x69,0x74])](_0x5c7748([0x2e]));return _0x35013c[_0x5c7748([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x588f28=>_0x588f28[_0x5c7748([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c7748([0x2a])))[_0x5c7748([0x6d,0x61,0x70])](_0x134143=>_0x134143[_0x5c7748([0x73,0x70,0x6c,0x69,0x74])](_0x5c7748([0x2e])))[_0x5c7748([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x435c43=>_0x435c43[_0x5c7748([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53ab3f[_0x5c7748([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c7748([0x6d,0x61,0x70])](_0x5c6e4f=>Array(_0x53ab3f[_0x5c7748([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5c6e4f[_0x5c7748([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c7748([0x66,0x69,0x6c,0x6c])](_0x5c6e4f[0x0]===_0x5c7748([0x2a])?_0x5c7748([0x2a]):'')[_0x5c7748([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5c6e4f))[_0x5c7748([0x73,0x6f,0x6d,0x65])](_0x4842ce=>_0x53ab3f[_0x5c7748([0x65,0x76,0x65,0x72,0x79])]((_0x3865a9,_0x4723c3)=>_0x4842ce[_0x4723c3]===_0x3865a9||_0x4842ce[_0x4723c3]===_0x5c7748([0x2a])));}function _0x366503(){return _0x43f1dd&&_0x400b39?new window[(_0x5c7748([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x427af4,_0x526742)=>{_0x43f1dd[_0x5c7748([0x74,0x68,0x65,0x6e])](_0x427af4,_0x526742),_0x400b39[_0x5c7748([0x74,0x68,0x65,0x6e])](_0x4dc42e=>{_0x4dc42e!=_0x5c7748([0x56,0x61,0x6c,0x69,0x64])&&_0x427af4(_0x4dc42e);},_0x526742);}):_0x43f1dd||_0x400b39||_0x5c7748([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26038c(_0x3aaa4e,_0x2633b4){return new window[(_0x5c7748([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3053fc=>{if(_0x1510f1())return _0x3053fc(_0x5c7748([0x56,0x61,0x6c,0x69,0x64]));_0x4b9743(),_0x117383[_0x5c7748([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c7748([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3cc096=!0x1;const _0x4f459b=_0xf0d03e();function _0x47b99b(_0x2293a4){return!!_0x2293a4&&(typeof _0x2293a4===_0x5c7748([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2293a4===_0x5c7748([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2293a4[_0x5c7748([0x74,0x68,0x65,0x6e])]===_0x5c7748([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2293a4[_0x5c7748([0x63,0x61,0x74,0x63,0x68])]===_0x5c7748([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xa60a53(_0x3d6cff){_0x486188(_0x3d6cff)[_0x5c7748([0x74,0x68,0x65,0x6e])](_0x29c1bf=>{if(!_0x29c1bf||_0x29c1bf[_0x5c7748([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c7748([0x6f,0x6b]))return _0x5c7748([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x733b03(_0x396480(_0x4f459b+_0x2633b4))!=_0x29c1bf[_0x5c7748([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c7748([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c7748([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c7748([0x74,0x68,0x65,0x6e])](_0x3242cb=>(_0x20a13e(),_0x3242cb),()=>{const _0x5998dc=_0x4f58a1();return null==_0x5998dc?(_0x20a13e(),_0x5c7748([0x56,0x61,0x6c,0x69,0x64])):_0x5c7748(_0x1f5f15-_0x5998dc>(0x79b61714^_0x1096d5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c7748([0x74,0x68,0x65,0x6e])](_0x3053fc)[_0x5c7748([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3053fc(_0x5c7748([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x129708=0x5d8c7d94^_0x1096d5;function _0x20a13e(){const _0x1218f8=_0x5c7748([0x6c,0x6c,0x63,0x74,0x2d])+_0x733b03(_0x396480(_0x3aaa4e)),_0x5cea65=_0x2a41b8(_0x733b03(window[_0x5c7748([0x4d,0x61,0x74,0x68])][_0x5c7748([0x63,0x65,0x69,0x6c])](_0x1f5f15/_0x129708)));window[_0x5c7748([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c7748([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1218f8,_0x5cea65);}function _0x4f58a1(){const _0x4f78e=_0x5c7748([0x6c,0x6c,0x63,0x74,0x2d])+_0x733b03(_0x396480(_0x3aaa4e)),_0xa85e74=window[_0x5c7748([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c7748([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f78e);return _0xa85e74?window[_0x5c7748([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a41b8(_0xa85e74),0x10)*_0x129708:null;}function _0x486188(_0x481111){return new window[(_0x5c7748([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1509a3,_0x59a7f9)=>{_0x481111[_0x5c7748([0x74,0x68,0x65,0x6e])](_0x1509a3,_0x59a7f9),window[_0x5c7748([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59a7f9,0x5dbb47d4^_0x1096d5);});}}_0x117383[_0x5c7748([0x6f,0x6e])](_0x5c7748([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2049f7,_0x19134a)=>{if(_0x19134a[0x0]!=_0x3aaa4e)return _0x3053fc(_0x5c7748([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x19134a[0x1]={..._0x19134a[0x1],[_0x5c7748([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4f459b};},{[_0x5c7748([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c7748([0x68,0x69,0x67,0x68])}),_0x117383[_0x5c7748([0x6f,0x6e])](_0x5c7748([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b81fc=>{_0x47b99b(_0x4b81fc[_0x5c7748([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3cc096=!0x0,_0xa60a53(_0x4b81fc[_0x5c7748([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c7748([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c7748([0x6c,0x6f,0x77])}),_0x2aba7d[_0x5c7748([0x74,0x68,0x65,0x6e])](()=>{_0x3cc096||_0x3053fc(_0x5c7748([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1510f1(){return _0x117383[_0x5c7748([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c7748([0x76,0x69,0x65,0x77])][_0x5c7748([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c7748([0x61,0x75,0x74,0x6f]);}function _0x4b9743(){_0x117383[_0x5c7748([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c7748([0x76,0x69,0x65,0x77])][_0x5c7748([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c7748([0x61,0x75,0x74,0x6f]);}}function _0x9996d8(_0x308d8b){const _0x2e6fdc=[new window[(_0x5c7748([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14a8da=>setTimeout(_0x14a8da,0x5db3add8^_0x1096d5)),_0x2aba7d[_0x5c7748([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c7748([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5576b5=>{let _0x1661d1=0x0;_0x117383[_0x5c7748([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c7748([0x6f,0x6e])](_0x5c7748([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x535ebc,_0x2de716)=>{_0x2de716[0x0][_0x5c7748([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1661d1++,_0x1661d1==(0x5dba96fc^_0x1096d5)&&(_0x5576b5(),_0x535ebc[_0x5c7748([0x6f,0x66,0x66])]());});}))];return window[_0x5c7748([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c7748([0x72,0x61,0x63,0x65])](_0x2e6fdc)[_0x5c7748([0x74,0x68,0x65,0x6e])](()=>_0x308d8b);}async function _0x183d08(){await _0x2aba7d,_0x117383[_0x5c7748([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c7748([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3dda3f,_0x117383[_0x5c7748([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c7748([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3dda3f,_0x117383[_0x5c7748([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c7748([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x20b59b(_0x547291){const _0x4f5ff5=_0x1d49a6();_0x117383[_0x4f5ff5]=_0x5c7748([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])+_0x547291,_0x547291!=_0x5c7748([0x56,0x61,0x6c,0x69,0x64])&&_0x183d08();}function _0x1d49a6(){const _0x893452=window[_0x5c7748([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c7748([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c7748([0x6e,0x6f,0x77])]())[_0x5c7748([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c7748([0x2e]),'');let _0x5806ed=_0x5c7748([0x4e]);for(let _0x3b6ec8=0x0;_0x3b6ec8<_0x893452[_0x5c7748([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b6ec8+=0x2){let _0x187e55=window[_0x5c7748([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x893452[_0x5c7748([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b6ec8,_0x3b6ec8+0x2));_0x187e55>=_0x33dea9[_0x5c7748([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x187e55-=_0x33dea9[_0x5c7748([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5806ed+=_0x33dea9[_0x187e55];}return _0x5806ed;}function _0x3c7125(){const _0x6d2cdb=_0x75cc21[_0x5c7748([0x73,0x70,0x6c,0x69,0x74])](_0x5c7748([0x2e]));if(0x3!=_0x6d2cdb[_0x5c7748([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x12931c(_0x6d2cdb[0x1]);function _0x12931c(_0x19df85){const _0x4f29f7=_0x4c9c5d(_0x19df85);return _0x4f29f7&&_0x5dc9e9()?_0x4f29f7:null;function _0x5dc9e9(){const _0x87622c=_0x4f29f7[_0x5c7748([0x6a,0x74,0x69])],_0x4d0832=window[_0x5c7748([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x87622c[_0x5c7748([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x87622c[_0x5c7748([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26bc52={..._0x4f29f7,[_0x5c7748([0x6a,0x74,0x69])]:_0x87622c[_0x5c7748([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x87622c[_0x5c7748([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26bc52[_0x5c7748([0x76,0x63])],_0x396480(_0x26bc52)==_0x4d0832;}}}async function _0x45265e(){let _0x2faee1=!0x0;try{const _0x489020=_0x75cc21[_0x5c7748([0x73,0x70,0x6c,0x69,0x74])](_0x5c7748([0x2e])),[_0x3ac1f5,_0x4d38d0,_0x31c3b3]=_0x489020;return _0x1624f1(_0x3ac1f5),await _0x362245(_0x3ac1f5,_0x4d38d0,_0x31c3b3),_0x2faee1;}catch{return!0x1;}function _0x1624f1(_0x29da02){const _0x39749b=_0x4c9c5d(_0x29da02);_0x39749b&&_0x39749b[_0x5c7748([0x61,0x6c,0x67])]==_0x5c7748([0x45,0x53,0x32,0x35,0x36])||(_0x2faee1=!0x1);}async function _0x362245(_0x3d9490,_0x424ce6,_0x31dbaa){const _0x176e16=window[_0x5c7748([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c7748([0x66,0x72,0x6f,0x6d])](_0x229afb(_0x31dbaa),_0x4a9717=>_0x4a9717[_0x5c7748([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x445ebd=new window[(_0x5c7748([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c7748([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3d9490+_0x5c7748([0x2e])+_0x424ce6),_0x54eb99=window[_0x5c7748([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c7748([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54eb99)return;const _0x125d07=await _0x54eb99[_0x5c7748([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c7748([0x6a,0x77,0x6b]),_0x1b50d3,{[_0x5c7748([0x6e,0x61,0x6d,0x65])]:_0x5c7748([0x45,0x43,0x44,0x53,0x41]),[_0x5c7748([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c7748([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c7748([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54eb99[_0x5c7748([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c7748([0x6e,0x61,0x6d,0x65])]:_0x5c7748([0x45,0x43,0x44,0x53,0x41]),[_0x5c7748([0x68,0x61,0x73,0x68])]:{[_0x5c7748([0x6e,0x61,0x6d,0x65])]:_0x5c7748([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x125d07,_0x176e16,_0x445ebd)||(_0x2faee1=!0x1);}}function _0x4c9c5d(_0x57d15f){return _0x57d15f[_0x5c7748([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c7748([0x65,0x79]))?JSON[_0x5c7748([0x70,0x61,0x72,0x73,0x65])](_0x229afb(_0x57d15f)):null;}function _0x229afb(_0xab5d96){return window[_0x5c7748([0x61,0x74,0x6f,0x62])](_0xab5d96[_0x5c7748([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c7748([0x2b]))[_0x5c7748([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c7748([0x2f])));}function _0x396480(_0x46be83){let _0x3c90f7=0x1505;function _0x38b1cb(_0x56c7fd){for(let _0x49aa91=0x0;_0x49aa91<_0x56c7fd[_0x5c7748([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49aa91++){const _0x5d1b82=_0x56c7fd[_0x5c7748([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x49aa91);_0x3c90f7=(_0x3c90f7<<0x5)+_0x3c90f7+_0x5d1b82,_0x3c90f7&=_0x3c90f7;}}function _0x546824(_0x4a5988){Array[_0x5c7748([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a5988)?_0x4a5988[_0x5c7748([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x546824):_0x4a5988&&typeof _0x4a5988==_0x5c7748([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c7748([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a5988)[_0x5c7748([0x73,0x6f,0x72,0x74])]()[_0x5c7748([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x547e0b,_0x18cd02])=>{_0x38b1cb(_0x547e0b),_0x546824(_0x18cd02);}):_0x38b1cb(window[_0x5c7748([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a5988));}return _0x546824(_0x46be83),_0x3c90f7>>>0x0;}function _0x733b03(_0x5c7a9b){return _0x5c7a9b[_0x5c7748([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c7748([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c7748([0x30]));}function _0x2a41b8(_0x54359f){return _0x54359f[_0x5c7748([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c7748([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c7748([0x6a,0x6f,0x69,0x6e])]('');}function _0x3dda3f(){}function _0x5c7748(_0x3ef47b){return _0x3ef47b['map'](_0x22ac0a=>String['fromCharCode'](_0x22ac0a))['join']('');}_0x20b59b(await _0x9caaf0());}(this);}['_createButton'](_0x45d10a,_0x136e3f,_0x5b6c1e=!0x1){const _0x24d3a4=new _0x45d10a(this['editor']['locale']);return _0x24d3a4['set']({'withText':_0x5b6c1e,'isToggleable':!0x1}),_0x24d3a4['bind']('isEnabled')['to'](_0x136e3f,'isEnabled'),this['listenTo'](_0x24d3a4,'execute',()=>_0x136e3f['execute']()),_0x24d3a4;}['_registerKeybindings'](){const _0x409bcf=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':H(_0x409bcf,'Source\x20Editing\x20Enhanced')});const _0x2034c1=_0x8d4c2f['isMac']||_0x8d4c2f['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':H(_0x409bcf,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':H(_0x409bcf,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':H(_0x409bcf,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':H(_0x409bcf,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':H(_0x409bcf,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':H(_0x409bcf,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':H(_0x409bcf,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x2034c1?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':H(_0x409bcf,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':H(_0x409bcf,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':H(_0x409bcf,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':H(_0x409bcf,'Select\x20line'),'keystroke':_0x2034c1?'Ctrl!+L':'Alt+L'},{'label':H(_0x409bcf,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x2034c1?'Alt+Shift+M':'Ctrl+M'},{'label':H(_0x409bcf,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':H(_0x409bcf,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':H(_0x409bcf,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':H(_0x409bcf,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':H(_0x409bcf,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x2034c1?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class ee extends _0x3891f4{constructor(_0x35d841){super(_0x35d841),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x12dab8,_0x5107c0){const _0x371bec=this['editor'],_0x301573=_0x5107c0?.['rootName']??V(_0x371bec);_0x371bec['data']['set']({[_0x301573]:_0x12dab8},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class te extends _0x360ad8{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[$];}constructor(_0x524f34){super(_0x524f34),_0x524f34['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new ee(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x654266=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2f015b;for(const _0x295945 in _0x654266){const _0x44be90=_0x295945,_0x334bab=_0x654266[_0x44be90];if('sourceEditingEnhancedLicenseKeyValid'==_0x334bab||'sourceEditingEnhancedLicenseKeyInvalid'==_0x334bab||'sourceEditingEnhancedLicenseKeyExpired'==_0x334bab||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x334bab||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x334bab||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x334bab||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x334bab){delete _0x654266[_0x44be90],_0x2f015b=_0x334bab,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x2f015b&&_0x654266['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x2f015b&&_0x654266['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x2f015b&&_0x654266['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x2f015b&&_0x654266['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x2f015b&&_0x654266['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x2f015b&&_0x654266['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x20be29=this['editor'],_0x540f83=_0x20be29['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x540f83&&_0x20be29['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x3bcf5e('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x540f83&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x5ab771=>_0x20be29['plugins']['has'](_0x5ab771))&&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.'),_0x20be29['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{X as EditSourceCommand,ee as ReplaceSourceCommand,te as SourceEditingEnhanced};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-source-editing-enhanced",
3
- "version": "48.0.0-alpha.0",
3
+ "version": "48.0.0-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.0.0-alpha.0",
29
- "@ckeditor/ckeditor5-engine": "48.0.0-alpha.0",
30
- "@ckeditor/ckeditor5-icons": "48.0.0-alpha.0",
31
- "@ckeditor/ckeditor5-ui": "48.0.0-alpha.0",
32
- "@ckeditor/ckeditor5-utils": "48.0.0-alpha.0",
28
+ "@ckeditor/ckeditor5-core": "48.0.0-alpha.1",
29
+ "@ckeditor/ckeditor5-engine": "48.0.0-alpha.1",
30
+ "@ckeditor/ckeditor5-icons": "48.0.0-alpha.1",
31
+ "@ckeditor/ckeditor5-ui": "48.0.0-alpha.1",
32
+ "@ckeditor/ckeditor5-utils": "48.0.0-alpha.1",
33
33
  "@codemirror/autocomplete": "^6.7.1",
34
34
  "@codemirror/commands": "6.8.1",
35
35
  "@codemirror/lang-html": "^6.0.0",