@ckeditor/ckeditor5-source-editing-enhanced 46.0.1-alpha.6 → 46.0.1-alpha.7
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/build/source-editing-enhanced.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +7 -7
- package/src/sourceeditingenhancedui.js +1 -1
- package/src/ui/codeeditorview.js +1 -1
- package/src/ui/editsourcecommand.js +1 -1
- package/src/utils/createcodemirroreditor.js +1 -1
- package/src/utils/format.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as _0x3e1443,PendingActions as _0x1dc351,Plugin as _0x287862}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3338fa,formatHtml as _0x14ba10,env as _0x5b6a33,uid as _0x190e19}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0xf2e31e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x4a69bd,ButtonView as _0x35739d,MenuBarMenuListItemButtonView as _0x1cd999}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x2bbb09,crosshairCursor as _0x166070,drawSelection as _0x282f6f,dropCursor as _0x13a804,lineNumbers as _0x393979,highlightActiveLine as _0x2f8d41,highlightActiveLineGutter as _0x1d4df7,highlightSpecialChars as _0x22bc29,rectangularSelection as _0x1708c8,keymap as _0x2521c8}from'@codemirror/view';import{Compartment as _0x2d0118,Transaction as _0x425651}from'@codemirror/state';import{bracketMatching as _0x230f9a,foldGutter as _0x22df85,indentOnInput as _0x10206c,syntaxHighlighting as _0x55579b,defaultHighlightStyle as _0x5cc9be,foldKeymap as _0x224642}from'@codemirror/language';import{toggleTabFocusMode as _0x424f8d,history as _0x219138,defaultKeymap as _0x507460,historyKeymap as _0x57a003,indentLess as _0x14325b,indentMore as _0x5819e5,redo as _0x416040,undo as _0x56c707}from'@codemirror/commands';import{autocompletion as _0x543ffd,closeBrackets as _0x57554f,closeBracketsKeymap as _0x2478d5,completionKeymap as _0x30ca7b}from'@codemirror/autocomplete';import{html as _0x9cc068}from'@codemirror/lang-html';import{markdown as _0x57270c}from'@codemirror/lang-markdown';import{oneDark as _0x2738ed}from'@codemirror/theme-one-dark';function w(_0x43edfb,_0x52cd53){const t=_0x43edfb['t'];switch(_0x52cd53){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 _0x52cd53;}}function r(_0x361b4d){const _0x92d6b6=_0x361b4d['editing']['view']['document']['roots'],_0x218db0=_0x92d6b6['length'];if(0x0===_0x218db0)throw new _0x3338fa('source-editing-enhanced-editor-no-root',_0x361b4d);if(0x1===_0x218db0)return _0x92d6b6['first']['rootName'];return Array['from'](_0x361b4d['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function $(_0x12b222){return X(_0x12b222['replace'](/^[\n\s]*/g,''))?_0x12b222['replace'](/\s+/g,''):_0x12b222;}function X(_0x2456b3){return _0x2456b3['startsWith']('<');}function Y(_0x5a8448){const _0x20b614=[_0x2bbb09['lineWrapping'],_0x543ffd(),_0x230f9a(),_0x57554f(),_0x166070(),_0x282f6f(),_0x13a804(),_0x393979(),_0x22df85(),_0x2f8d41(),_0x1d4df7(),_0x22bc29(),_0x219138(),_0x10206c(),_0x1708c8(),_0x55579b(_0x5cc9be,{'fallback':!0x0})],_0x29a280=new _0x2d0118();_0x20b614['push'](_0x29a280['of'](_0x2bbb09['editable']['of'](!0x0))),'html'===_0x5a8448['syntaxLanguage']?_0x20b614['push'](_0x9cc068()):_0x20b614['push'](_0x57270c());const _0x56a6fc=function(_0x3c7bad){if(_0x3c7bad&&'default'!==_0x3c7bad)return'dark'===_0x3c7bad?_0x2738ed:_0x3c7bad;return null;}(_0x5a8448['theme']);_0x56a6fc&&_0x20b614['push'](_0x56a6fc),_0x20b614['push'](_0x2521c8['of']([..._0x2478d5,..._0x507460,..._0x57a003,..._0x224642,..._0x30ca7b,{'key':'Tab','run':_0x5819e5,'shift':_0x14325b,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x416040,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x416040,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x56c707,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x1365ea=new _0x2bbb09({'extensions':_0x20b614,'parent':_0x5a8448['parent']});return _0x424f8d(_0x1365ea),{'focus':()=>{_0x1365ea['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x1365ea['focus']();},'getData':()=>_0x1365ea['state']['doc']['toString'](),'setData':_0x45c815=>{_0x1365ea['dispatch']({'changes':{'from':0x0,'to':_0x1365ea['state']['doc']['length'],'insert':_0x45c815},'annotations':_0x425651['addToHistory']['of'](!0x1)});},'setReadOnly':_0x470583=>{_0x1365ea['dispatch']({'effects':[_0x29a280['reconfigure'](_0x2bbb09['editable']['of'](!_0x470583))]});},'destroy':()=>{_0x1365ea['destroy']();},'instance':_0x1365ea};}class ee extends _0x4a69bd{['_codeEditorApi']=null;['_options'];constructor(_0x3f5b28,_0x1e6f97){super(_0x3f5b28),this['_options']=_0x1e6f97,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']=Y({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x566f77,_0x1719c3,_0x15f635)=>{this['setReadOnly'](_0x15f635);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x5a7c91){this['_codeEditorApi']['setData'](_0x5a7c91);}['setReadOnly'](_0x456b80){this['_codeEditorApi']['setReadOnly'](_0x456b80);}}const te='SourceEditingEnhancedMode';class d extends _0x3e1443{constructor(_0x4760eb){super(_0x4760eb),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x1dc351)['on']('change:hasAny',(_0x3659b4,_0x35ee6a,_0x555ced)=>{_0x555ced?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x57ce76=this['editor'];for(const _0x211bb3 of _0x57ce76['commands']['names']())['replaceSource','editSource']['includes'](_0x211bb3)||_0x57ce76['commands']['get'](_0x211bb3)['forceDisabled'](te);}['_enableCommands'](){const _0x59d3ed=this['editor'];for(const _0x3c9e8f of _0x59d3ed['commands']['commands']())_0x3c9e8f['clearForceDisabled'](te);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xb6e944=this['editor'],_0x2fe524=_0xb6e944['locale'],_0x53ea7f=_0xb6e944['plugins']['get']('Dialog'),_0x132e0f=r(_0xb6e944),_0x95f1c=_0xb6e944['data']['get']({'rootName':_0x132e0f}),_0x5e7267=X(_0x226113=_0x95f1c)?_0x14ba10(_0x226113):_0x226113;var _0x226113;const _0x21e10e=new ee(_0x2fe524,{'syntaxLanguage':_0xb6e944['plugins']['has']('Markdown')?'markdown':'html','theme':_0xb6e944['config']['get']('sourceEditingEnhanced.theme')});let _0x448311=!0x0;const _0x171ab4=_0x1c948d=>{if(!_0x448311)return;return $(_0x21e10e['getData']())!==$(_0x5e7267)?window['confirm'](w(_0x2fe524,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x1c948d['stop']():void 0x0;};_0x53ea7f['show']({'id':'sourceEditingEnhanced','title':w(_0x2fe524,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x21e10e,'actionButtons':[{'label':w(_0x2fe524,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x53ea7f['hide']();}},{'label':w(_0x2fe524,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x5aaeee=$(_0x21e10e['getData']())!==$(_0x5e7267);(_0x5aaeee&&_0xb6e944['execute']('replaceSource',_0x21e10e['getData']()),_0x448311=!0x1,_0x53ea7f['hide'](),_0x5aaeee&&'editables'in _0xb6e944['ui']['view'])&&_0xb6e944['ui']['view']['editables'][_0x132e0f]['element']['focus']();},'onCreate':_0x46bb12=>{_0x46bb12['set']('isEnabled',!_0xb6e944['isReadOnly']),_0x46bb12['bind']('isEnabled')['to'](_0xb6e944,'isReadOnly',this,'isEnabled',(_0x6d4b49,_0x4d706f)=>!_0x6d4b49&&_0x4d706f);}}],'onHide':()=>{this['_enableCommands'](),_0x53ea7f['off']('hide',_0x171ab4),_0x21e10e['destroy']();},'onShow':()=>{_0x21e10e['bind']('isReadOnly')['to'](_0xb6e944,'isReadOnly',this,'isEnabled',(_0x236c73,_0x5d39f9)=>_0x236c73||!_0x5d39f9),_0x21e10e['setData'](_0x5e7267),_0x21e10e['focus'](),_0x53ea7f['on']('hide',_0x171ab4,{'priority':'highest'}),this['_disableCommands']();}});}}class a extends _0x287862{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x1dc351];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x31a0a0=this['editor'],_0x559d6b=_0x31a0a0['locale'],_0x39a2bc=new d(_0x31a0a0);_0x31a0a0['commands']['add']('editSource',_0x39a2bc),_0x31a0a0['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0xe3d40b=this['_createButton'](_0x35739d,_0x39a2bc);return _0xe3d40b['set']({'label':w(_0x559d6b,'Source'),'icon':_0xf2e31e,'tooltip':w(_0x559d6b,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0xe3d40b;}),_0x31a0a0['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x4a4144=this['_createButton'](_0x1cd999,_0x39a2bc,!0x0);return _0x4a4144['set']({'label':w(_0x559d6b,'Edit\x20source\x20modal\x20label'),'icon':_0xf2e31e,'role':'menuitemcheckbox'}),_0x4a4144;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x2d01a2){const _0x219253=_0x464c4e([0x51,0x71,0x32,0x76,0x62,0x58,0x30,0x35,0x72,0x6d,0x46,0x4e,0x73,0x34,0x42,0x77,0x4d,0x38,0x36,0x61,0x55,0x79,0x41,0x54,0x37,0x33,0x75,0x68,0x5a,0x67,0x49,0x66,0x63,0x48,0x4c,0x47,0x6b,0x43,0x52,0x69,0x70,0x74,0x64,0x39,0x44,0x6c,0x31,0x56,0x6f,0x4f,0x57,0x59,0x7a,0x45,0x78,0x65,0x53,0x4b,0x6e,0x4a,0x50,0x6a]),_0x3763ba=0xf544b40,_0x37e29b=0xf5324d8^_0x3763ba,_0x210c4e=window[_0x464c4e([0x44,0x61,0x74,0x65])][_0x464c4e([0x6e,0x6f,0x77])](),_0x46c252=_0x2d01a2[_0x464c4e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x55fcb6=new window[(_0x464c4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57cefc=>{_0x46c252[_0x464c4e([0x6f,0x6e,0x63,0x65])](_0x464c4e([0x72,0x65,0x61,0x64,0x79]),_0x57cefc);}),_0x553977={[_0x464c4e([0x6b,0x74,0x79])]:_0x464c4e([0x45,0x43]),[_0x464c4e([0x75,0x73,0x65])]:_0x464c4e([0x73,0x69,0x67]),[_0x464c4e([0x63,0x72,0x76])]:_0x464c4e([0x50,0x2d,0x32,0x35,0x36]),[_0x464c4e([0x78])]:_0x464c4e([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]),[_0x464c4e([0x79])]:_0x464c4e([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]),[_0x464c4e([0x61,0x6c,0x67])]:_0x464c4e([0x45,0x53,0x32,0x35,0x36])},_0x46b8be=_0x46c252[_0x464c4e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x464c4e([0x67,0x65,0x74])](_0x464c4e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x492e79(){let _0x31e245,_0x5d82a1=null,_0x256a9a=null;try{if(_0x46b8be==_0x464c4e([0x47,0x50,0x4c]))return _0x464c4e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x31e245=_0x488269(),!_0x31e245)return _0x464c4e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x31e245[_0x464c4e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x256a9a=_0x421b19(_0x31e245[_0x464c4e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x31e245[_0x464c4e([0x6a,0x74,0x69])])),await _0x15b718()?_0xdc1cc7()?_0x154760()?_0x464c4e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x230379()?(_0x31e245[_0x464c4e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x464c4e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5d82a1=_0x2ef835(_0x464c4e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x31e245[_0x464c4e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x464c4e([0x74,0x72,0x69,0x61,0x6c])&&(_0x5d82a1=_0x2ef835(_0x464c4e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x54bb0b()):_0x464c4e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x464c4e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x464c4e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x464c4e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x154760(){const _0x5db50b=[_0x464c4e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x464c4e([0x74,0x72,0x69,0x61,0x6c])][_0x464c4e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31e245[_0x464c4e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x210c4e/0x3e8:0xe10*_0x37e29b;return _0x31e245[_0x464c4e([0x65,0x78,0x70])]<_0x5db50b;}function _0xdc1cc7(){const _0x7dc604=_0x31e245[_0x464c4e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x7dc604&&(!!_0x7dc604[_0x464c4e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x464c4e([0x2a]))||!!_0x7dc604[_0x464c4e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x464c4e([0x53,0x45,0x45])));}function _0x230379(){const _0x77ee4f=_0x31e245[_0x464c4e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x77ee4f||0x0==_0x77ee4f[_0x464c4e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x483f0d}=new URL(window[_0x464c4e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x77ee4f[_0x464c4e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x483f0d))return!0x0;const _0x152b17=_0x483f0d[_0x464c4e([0x73,0x70,0x6c,0x69,0x74])](_0x464c4e([0x2e]));return _0x77ee4f[_0x464c4e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xd94d97=>_0xd94d97[_0x464c4e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x464c4e([0x2a])))[_0x464c4e([0x6d,0x61,0x70])](_0x5d0ce7=>_0x5d0ce7[_0x464c4e([0x73,0x70,0x6c,0x69,0x74])](_0x464c4e([0x2e])))[_0x464c4e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c2fe3=>_0x4c2fe3[_0x464c4e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x152b17[_0x464c4e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x464c4e([0x6d,0x61,0x70])](_0x48525c=>Array(_0x152b17[_0x464c4e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x48525c[_0x464c4e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x464c4e([0x66,0x69,0x6c,0x6c])](_0x48525c[0x0]===_0x464c4e([0x2a])?_0x464c4e([0x2a]):'')[_0x464c4e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x48525c))[_0x464c4e([0x73,0x6f,0x6d,0x65])](_0x39e030=>_0x152b17[_0x464c4e([0x65,0x76,0x65,0x72,0x79])]((_0x1e44bc,_0x5f00f3)=>_0x39e030[_0x5f00f3]===_0x1e44bc||_0x39e030[_0x5f00f3]===_0x464c4e([0x2a])));}function _0x54bb0b(){return _0x5d82a1&&_0x256a9a?new window[(_0x464c4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x208c4f,_0xdd6791)=>{_0x5d82a1[_0x464c4e([0x74,0x68,0x65,0x6e])](_0x208c4f,_0xdd6791),_0x256a9a[_0x464c4e([0x74,0x68,0x65,0x6e])](_0x4a4c08=>{_0x4a4c08!=_0x464c4e([0x56,0x61,0x6c,0x69,0x64])&&_0x208c4f(_0x4a4c08);},_0xdd6791);}):_0x5d82a1||_0x256a9a||_0x464c4e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x421b19(_0x3b4145,_0x2f3027){return new window[(_0x464c4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45edd1=>{if(_0xd3e83a())return _0x45edd1(_0x464c4e([0x56,0x61,0x6c,0x69,0x64]));_0x312e87(),_0x46c252[_0x464c4e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x464c4e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x32416d=!0x1;const _0x505029=_0x190e19();function _0x1491c7(_0x462743){return!!_0x462743&&(typeof _0x462743===_0x464c4e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x462743===_0x464c4e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x462743[_0x464c4e([0x74,0x68,0x65,0x6e])]===_0x464c4e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x462743[_0x464c4e([0x63,0x61,0x74,0x63,0x68])]===_0x464c4e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1460fe(_0x501256){_0x212d38(_0x501256)[_0x464c4e([0x74,0x68,0x65,0x6e])](_0x3fab04=>{if(!_0x3fab04||_0x3fab04[_0x464c4e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x464c4e([0x6f,0x6b]))return _0x464c4e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b34b9(_0x23d62c(_0x505029+_0x2f3027))!=_0x3fab04[_0x464c4e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x464c4e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x464c4e([0x56,0x61,0x6c,0x69,0x64]);})[_0x464c4e([0x74,0x68,0x65,0x6e])](_0x1dadcc=>(_0x4b8af0(),_0x1dadcc),()=>{const _0x4c6c5e=_0x4a469e();return null==_0x4c6c5e?(_0x4b8af0(),_0x464c4e([0x56,0x61,0x6c,0x69,0x64])):_0x464c4e(_0x210c4e-_0x4c6c5e>(0x2b58cf40^_0x3763ba)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x464c4e([0x74,0x68,0x65,0x6e])](_0x45edd1)[_0x464c4e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x45edd1(_0x464c4e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x110ed2=0xf62a5c0^_0x3763ba;function _0x4b8af0(){const _0x4a325a=_0x464c4e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b34b9(_0x23d62c(_0x3b4145)),_0x4dcf7d=_0x44ff64(_0x2b34b9(window[_0x464c4e([0x4d,0x61,0x74,0x68])][_0x464c4e([0x63,0x65,0x69,0x6c])](_0x210c4e/_0x110ed2)));window[_0x464c4e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x464c4e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a325a,_0x4dcf7d);}function _0x4a469e(){const _0x574e1f=_0x464c4e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b34b9(_0x23d62c(_0x3b4145)),_0xe50947=window[_0x464c4e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x464c4e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x574e1f);return _0xe50947?window[_0x464c4e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44ff64(_0xe50947),0x10)*_0x110ed2:null;}function _0x212d38(_0x4371ca){return new window[(_0x464c4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4652b4,_0x58b56)=>{_0x4371ca[_0x464c4e([0x74,0x68,0x65,0x6e])](_0x4652b4,_0x58b56),window[_0x464c4e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x58b56,0xf559f80^_0x3763ba);});}}_0x46c252[_0x464c4e([0x6f,0x6e])](_0x464c4e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x37b691,_0x52beed)=>{if(_0x52beed[0x0]!=_0x3b4145)return _0x45edd1(_0x464c4e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x52beed[0x1]={..._0x52beed[0x1],[_0x464c4e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x505029};},{[_0x464c4e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x464c4e([0x68,0x69,0x67,0x68])}),_0x46c252[_0x464c4e([0x6f,0x6e])](_0x464c4e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x54c9f7=>{_0x1491c7(_0x54c9f7[_0x464c4e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x32416d=!0x0,_0x1460fe(_0x54c9f7[_0x464c4e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x464c4e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x464c4e([0x6c,0x6f,0x77])}),_0x55fcb6[_0x464c4e([0x74,0x68,0x65,0x6e])](()=>{_0x32416d||_0x45edd1(_0x464c4e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd3e83a(){return _0x46c252[_0x464c4e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x464c4e([0x76,0x69,0x65,0x77])][_0x464c4e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x464c4e([0x61,0x75,0x74,0x6f]);}function _0x312e87(){_0x46c252[_0x464c4e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x464c4e([0x76,0x69,0x65,0x77])][_0x464c4e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x464c4e([0x61,0x75,0x74,0x6f]);}}function _0x2ef835(_0x387b41){const _0x120ba9=[new window[(_0x464c4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59947d=>setTimeout(_0x59947d,0xf5d758c^_0x3763ba)),_0x55fcb6[_0x464c4e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x464c4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e9617=>{let _0x436462=0x0;_0x46c252[_0x464c4e([0x6d,0x6f,0x64,0x65,0x6c])][_0x464c4e([0x6f,0x6e])](_0x464c4e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x50ecc6,_0x4a43d7)=>{_0x4a43d7[0x0][_0x464c4e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x436462++,_0x436462==(0xf544ab8^_0x3763ba)&&(_0x4e9617(),_0x50ecc6[_0x464c4e([0x6f,0x66,0x66])]());});}))];return window[_0x464c4e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x464c4e([0x72,0x61,0x63,0x65])](_0x120ba9)[_0x464c4e([0x74,0x68,0x65,0x6e])](()=>_0x387b41);}async function _0x29cc46(){await _0x55fcb6,_0x46c252[_0x464c4e([0x6d,0x6f,0x64,0x65,0x6c])][_0x464c4e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2337df,_0x46c252[_0x464c4e([0x6d,0x6f,0x64,0x65,0x6c])][_0x464c4e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2337df,_0x46c252[_0x464c4e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x464c4e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f7b6d(_0x75be5e){const _0x51c4f6=_0xcf2f87();_0x46c252[_0x51c4f6]=_0x464c4e([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])+_0x75be5e,_0x75be5e!=_0x464c4e([0x56,0x61,0x6c,0x69,0x64])&&_0x29cc46();}function _0xcf2f87(){const _0x275d92=window[_0x464c4e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x464c4e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x464c4e([0x6e,0x6f,0x77])]())[_0x464c4e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x464c4e([0x2e]),'');let _0x2c488b=_0x464c4e([0x51]);for(let _0x4a093c=0x0;_0x4a093c<_0x275d92[_0x464c4e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4a093c+=0x2){let _0x5c150c=window[_0x464c4e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x275d92[_0x464c4e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a093c,_0x4a093c+0x2));_0x5c150c>=_0x219253[_0x464c4e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c150c-=_0x219253[_0x464c4e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c488b+=_0x219253[_0x5c150c];}return _0x2c488b;}function _0x488269(){const _0x4b4d08=_0x46b8be[_0x464c4e([0x73,0x70,0x6c,0x69,0x74])](_0x464c4e([0x2e]));if(0x3!=_0x4b4d08[_0x464c4e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x326857(_0x4b4d08[0x1]);function _0x326857(_0x3d7c65){const _0x5f464e=_0x78a0d0(_0x3d7c65);return _0x5f464e&&_0x200308()?_0x5f464e:null;function _0x200308(){const _0x2e7cc4=_0x5f464e[_0x464c4e([0x6a,0x74,0x69])],_0x5df4c8=window[_0x464c4e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e7cc4[_0x464c4e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e7cc4[_0x464c4e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3de0aa={..._0x5f464e,[_0x464c4e([0x6a,0x74,0x69])]:_0x2e7cc4[_0x464c4e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e7cc4[_0x464c4e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3de0aa[_0x464c4e([0x76,0x63])],_0x23d62c(_0x3de0aa)==_0x5df4c8;}}}async function _0x15b718(){let _0x5f0d02=!0x0;try{const _0x1577f3=_0x46b8be[_0x464c4e([0x73,0x70,0x6c,0x69,0x74])](_0x464c4e([0x2e])),[_0x247074,_0x27d1db,_0x2b2cfb]=_0x1577f3;return _0xa25fd2(_0x247074),await _0x44c98a(_0x247074,_0x27d1db,_0x2b2cfb),_0x5f0d02;}catch{return!0x1;}function _0xa25fd2(_0x79fa8e){const _0x44c589=_0x78a0d0(_0x79fa8e);_0x44c589&&_0x44c589[_0x464c4e([0x61,0x6c,0x67])]==_0x464c4e([0x45,0x53,0x32,0x35,0x36])||(_0x5f0d02=!0x1);}async function _0x44c98a(_0x3392c3,_0x55508d,_0x4599a6){const _0x538314=window[_0x464c4e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x464c4e([0x66,0x72,0x6f,0x6d])](_0xdaecba(_0x4599a6),_0x264f7d=>_0x264f7d[_0x464c4e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x708d2b=new window[(_0x464c4e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x464c4e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3392c3+_0x464c4e([0x2e])+_0x55508d),_0x57e14d=window[_0x464c4e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x464c4e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57e14d)return;const _0x17129a=await _0x57e14d[_0x464c4e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x464c4e([0x6a,0x77,0x6b]),_0x553977,{[_0x464c4e([0x6e,0x61,0x6d,0x65])]:_0x464c4e([0x45,0x43,0x44,0x53,0x41]),[_0x464c4e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x464c4e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x464c4e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57e14d[_0x464c4e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x464c4e([0x6e,0x61,0x6d,0x65])]:_0x464c4e([0x45,0x43,0x44,0x53,0x41]),[_0x464c4e([0x68,0x61,0x73,0x68])]:{[_0x464c4e([0x6e,0x61,0x6d,0x65])]:_0x464c4e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x17129a,_0x538314,_0x708d2b)||(_0x5f0d02=!0x1);}}function _0x78a0d0(_0x34f1f3){return _0x34f1f3[_0x464c4e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x464c4e([0x65,0x79]))?JSON[_0x464c4e([0x70,0x61,0x72,0x73,0x65])](_0xdaecba(_0x34f1f3)):null;}function _0xdaecba(_0x38dd1c){return window[_0x464c4e([0x61,0x74,0x6f,0x62])](_0x38dd1c[_0x464c4e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x464c4e([0x2b]))[_0x464c4e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x464c4e([0x2f])));}function _0x23d62c(_0x5c04db){let _0x4e37ef=0x1505;function _0x18cf83(_0x5b945a){for(let _0x13750d=0x0;_0x13750d<_0x5b945a[_0x464c4e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13750d++){const _0x2ee66f=_0x5b945a[_0x464c4e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x13750d);_0x4e37ef=(_0x4e37ef<<0x5)+_0x4e37ef+_0x2ee66f,_0x4e37ef&=_0x4e37ef;}}function _0x29aa7d(_0x30fad8){Array[_0x464c4e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x30fad8)?_0x30fad8[_0x464c4e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x29aa7d):_0x30fad8&&typeof _0x30fad8==_0x464c4e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x464c4e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x30fad8)[_0x464c4e([0x73,0x6f,0x72,0x74])]()[_0x464c4e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a8096,_0x3fdbdd])=>{_0x18cf83(_0x5a8096),_0x29aa7d(_0x3fdbdd);}):_0x18cf83(window[_0x464c4e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x30fad8));}return _0x29aa7d(_0x5c04db),_0x4e37ef>>>0x0;}function _0x2b34b9(_0x29415e){return _0x29415e[_0x464c4e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x464c4e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x464c4e([0x30]));}function _0x44ff64(_0x3c9763){return _0x3c9763[_0x464c4e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x464c4e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x464c4e([0x6a,0x6f,0x69,0x6e])]('');}function _0x2337df(){}function _0x464c4e(_0x3133d0){return _0x3133d0['map'](_0x3e18fe=>String['fromCharCode'](_0x3e18fe))['join']('');}_0x2f7b6d(await _0x492e79());}(this);}['_createButton'](_0x6ba3d9,_0x594ddc,_0x513cf6=!0x1){const _0x2a6740=new _0x6ba3d9(this['editor']['locale']);return _0x2a6740['set']({'withText':_0x513cf6,'isToggleable':!0x1}),_0x2a6740['bind']('isEnabled')['to'](_0x594ddc,'isEnabled'),this['listenTo'](_0x2a6740,'execute',()=>_0x594ddc['execute']()),_0x2a6740;}['_registerKeybindings'](){const _0x183cda=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':w(_0x183cda,'Source\x20Editing\x20Enhanced')});const _0x4aeeca=_0x5b6a33['isMac']||_0x5b6a33['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':w(_0x183cda,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':w(_0x183cda,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':w(_0x183cda,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':w(_0x183cda,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':w(_0x183cda,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':w(_0x183cda,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':w(_0x183cda,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x4aeeca?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':w(_0x183cda,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':w(_0x183cda,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':w(_0x183cda,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':w(_0x183cda,'Select\x20line'),'keystroke':_0x4aeeca?'Ctrl!+L':'Alt+L'},{'label':w(_0x183cda,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x4aeeca?'Alt+Shift+M':'Ctrl+M'},{'label':w(_0x183cda,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':w(_0x183cda,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':w(_0x183cda,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':w(_0x183cda,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':w(_0x183cda,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x4aeeca?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class c extends _0x3e1443{constructor(_0x8efacf){super(_0x8efacf),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0xbe59f6,_0x29c419){const _0x4e9657=this['editor'],_0x253860=_0x29c419?.['rootName']??r(_0x4e9657);_0x4e9657['data']['set']({[_0x253860]:_0xbe59f6},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class ne extends _0x287862{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[a];}constructor(_0x1f5ef9){super(_0x1f5ef9),_0x1f5ef9['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new c(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2afaef=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c3944;for(const _0x458747 in _0x2afaef){const _0x1688bc=_0x458747,_0x53d114=_0x2afaef[_0x1688bc];if('sourceEditingEnhancedLicenseKeyValid'==_0x53d114||'sourceEditingEnhancedLicenseKeyInvalid'==_0x53d114||'sourceEditingEnhancedLicenseKeyExpired'==_0x53d114||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x53d114||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x53d114||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x53d114||'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x53d114||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x53d114){delete _0x2afaef[_0x1688bc],_0x1c3944=_0x53d114,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x1c3944&&_0x2afaef['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x1c3944&&_0x2afaef['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x1c3944&&_0x2afaef['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x1c3944&&_0x2afaef['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x1c3944&&_0x2afaef['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x1c3944&&_0x2afaef['_showLicenseError']('trialLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x1c3944&&_0x2afaef['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x5f33c7=this['editor'],_0x358767=_0x5f33c7['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x358767&&_0x5f33c7['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x3338fa('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x358767&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x348a11=>_0x5f33c7['plugins']['has'](_0x348a11))&&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.'),_0x5f33c7['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{d as EditSourceCommand,c as ReplaceSourceCommand,ne as SourceEditingEnhanced};
|
|
23
|
+
import{Command as _0x463e02,PendingActions as _0x277400,Plugin as _0x536617}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x504c6c,formatHtml as _0x65bb9b,env as _0x490abd,uid as _0x1c00a0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x5d8520}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x4945b4,ButtonView as _0x5eb559,MenuBarMenuListItemButtonView as _0x3baa00}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x368b07,crosshairCursor as _0x430005,drawSelection as _0x185265,dropCursor as _0x24c114,lineNumbers as _0x36bc5a,highlightActiveLine as _0x1b03f8,highlightActiveLineGutter as _0x2a0ea0,highlightSpecialChars as _0x2f9018,rectangularSelection as _0x15d2a2,keymap as _0x530e19}from'@codemirror/view';import{Compartment as _0x2a905d,Transaction as _0x164364}from'@codemirror/state';import{bracketMatching as _0xe8aced,foldGutter as _0x6181cc,indentOnInput as _0x593891,syntaxHighlighting as _0x39aa41,defaultHighlightStyle as _0x460767,foldKeymap as _0x146564}from'@codemirror/language';import{toggleTabFocusMode as _0x401cb8,history as _0x3aabb6,defaultKeymap as _0x4d54af,historyKeymap as _0x741fe,indentLess as _0x2aa41a,indentMore as _0x13b4a7,redo as _0x1a5680,undo as _0x312b00}from'@codemirror/commands';import{autocompletion as _0x16c6ab,closeBrackets as _0x4a51c9,closeBracketsKeymap as _0x17fa1f,completionKeymap as _0x20950a}from'@codemirror/autocomplete';import{html as _0x282ad0}from'@codemirror/lang-html';import{markdown as _0x2646a4}from'@codemirror/lang-markdown';import{oneDark as _0x13cec2}from'@codemirror/theme-one-dark';function w(_0x5a6ddb,_0x5a49db){const t=_0x5a6ddb['t'];switch(_0x5a49db){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 _0x5a49db;}}function r(_0x20a9ef){const _0x2399c3=_0x20a9ef['editing']['view']['document']['roots'],_0x25d727=_0x2399c3['length'];if(0x0===_0x25d727)throw new _0x504c6c('source-editing-enhanced-editor-no-root',_0x20a9ef);if(0x1===_0x25d727)return _0x2399c3['first']['rootName'];return Array['from'](_0x20a9ef['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function g(_0x382726){return tr(_0x382726['replace'](/^[\n\s]*/g,''))?_0x382726['replace'](/\s+/g,''):_0x382726;}function tr(_0x3f2f93){return _0x3f2f93['startsWith']('<');}function p(_0x2f6cd6){const _0x1ad3fc=[_0x368b07['lineWrapping'],_0x16c6ab(),_0xe8aced(),_0x4a51c9(),_0x430005(),_0x185265(),_0x24c114(),_0x36bc5a(),_0x6181cc(),_0x1b03f8(),_0x2a0ea0(),_0x2f9018(),_0x3aabb6(),_0x593891(),_0x15d2a2(),_0x39aa41(_0x460767,{'fallback':!0x0})],_0x476c2e=new _0x2a905d();_0x1ad3fc['push'](_0x476c2e['of'](_0x368b07['editable']['of'](!0x0))),'html'===_0x2f6cd6['syntaxLanguage']?_0x1ad3fc['push'](_0x282ad0()):_0x1ad3fc['push'](_0x2646a4());const _0x24dce1=function(_0x193738){if(_0x193738&&'default'!==_0x193738)return'dark'===_0x193738?_0x13cec2:_0x193738;return null;}(_0x2f6cd6['theme']);_0x24dce1&&_0x1ad3fc['push'](_0x24dce1),_0x1ad3fc['push'](_0x530e19['of']([..._0x17fa1f,..._0x4d54af,..._0x741fe,..._0x146564,..._0x20950a,{'key':'Tab','run':_0x13b4a7,'shift':_0x2aa41a,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x1a5680,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x1a5680,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x312b00,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x28f07c=new _0x368b07({'extensions':_0x1ad3fc,'parent':_0x2f6cd6['parent']});return _0x401cb8(_0x28f07c),{'focus':()=>{_0x28f07c['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x28f07c['focus']();},'getData':()=>_0x28f07c['state']['doc']['toString'](),'setData':_0x3f7abc=>{_0x28f07c['dispatch']({'changes':{'from':0x0,'to':_0x28f07c['state']['doc']['length'],'insert':_0x3f7abc},'annotations':_0x164364['addToHistory']['of'](!0x1)});},'setReadOnly':_0x41c3b9=>{_0x28f07c['dispatch']({'effects':[_0x476c2e['reconfigure'](_0x368b07['editable']['of'](!_0x41c3b9))]});},'destroy':()=>{_0x28f07c['destroy']();},'instance':_0x28f07c};}class E extends _0x4945b4{['_codeEditorApi']=null;['_options'];constructor(_0x126bb5,_0x34991c){super(_0x126bb5),this['_options']=_0x34991c,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']=p({'parent':this['element'],'syntaxLanguage':this['_options']['syntaxLanguage'],'theme':this['_options']['theme']}),this['on']('change:isReadOnly',(_0x476f95,_0x20617b,_0x4bcc9a)=>{this['setReadOnly'](_0x4bcc9a);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x50a076){this['_codeEditorApi']['setData'](_0x50a076);}['setReadOnly'](_0x144edd){this['_codeEditorApi']['setReadOnly'](_0x144edd);}}const b='SourceEditingEnhancedMode';class d extends _0x463e02{constructor(_0x144197){super(_0x144197),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x277400)['on']('change:hasAny',(_0x142de9,_0x33094b,_0x3f7164)=>{_0x3f7164?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x5615fd=this['editor'];for(const _0x57a6b5 of _0x5615fd['commands']['names']())['replaceSource','editSource']['includes'](_0x57a6b5)||_0x5615fd['commands']['get'](_0x57a6b5)['forceDisabled'](b);}['_enableCommands'](){const _0x13a99f=this['editor'];for(const _0x51d85d of _0x13a99f['commands']['commands']())_0x51d85d['clearForceDisabled'](b);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x493c80=this['editor'],_0x21acb9=_0x493c80['locale'],_0x23d43b=_0x493c80['plugins']['get']('Dialog'),_0x4d1032=r(_0x493c80),_0x4fc396=_0x493c80['data']['get']({'rootName':_0x4d1032}),_0x1ad102=tr(_0x485910=_0x4fc396)?_0x65bb9b(_0x485910):_0x485910;var _0x485910;const _0x5e8ec4=new E(_0x21acb9,{'syntaxLanguage':_0x493c80['plugins']['has']('Markdown')?'markdown':'html','theme':_0x493c80['config']['get']('sourceEditingEnhanced.theme')});let _0x4e6e85=!0x0;const _0x8032e8=_0x526a93=>{if(!_0x4e6e85)return;return g(_0x5e8ec4['getData']())!==g(_0x1ad102)?window['confirm'](w(_0x21acb9,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x526a93['stop']():void 0x0;};_0x23d43b['show']({'id':'sourceEditingEnhanced','title':w(_0x21acb9,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x5e8ec4,'actionButtons':[{'label':w(_0x21acb9,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x23d43b['hide']();}},{'label':w(_0x21acb9,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x222a8d=g(_0x5e8ec4['getData']())!==g(_0x1ad102);(_0x222a8d&&_0x493c80['execute']('replaceSource',_0x5e8ec4['getData']()),_0x4e6e85=!0x1,_0x23d43b['hide'](),_0x222a8d&&'editables'in _0x493c80['ui']['view'])&&_0x493c80['ui']['view']['editables'][_0x4d1032]['element']['focus']();},'onCreate':_0x281e84=>{_0x281e84['set']('isEnabled',!_0x493c80['isReadOnly']),_0x281e84['bind']('isEnabled')['to'](_0x493c80,'isReadOnly',this,'isEnabled',(_0x9b06b5,_0x37bc50)=>!_0x9b06b5&&_0x37bc50);}}],'onHide':()=>{this['_enableCommands'](),_0x23d43b['off']('hide',_0x8032e8),_0x5e8ec4['destroy']();},'onShow':()=>{_0x5e8ec4['bind']('isReadOnly')['to'](_0x493c80,'isReadOnly',this,'isEnabled',(_0x213ad0,_0x4293b8)=>_0x213ad0||!_0x4293b8),_0x5e8ec4['setData'](_0x1ad102),_0x5e8ec4['focus'](),_0x23d43b['on']('hide',_0x8032e8,{'priority':'highest'}),this['_disableCommands']();}});}}class a extends _0x536617{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x277400];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x58d37f=this['editor'],_0x1cd145=_0x58d37f['locale'],_0x4772c5=new d(_0x58d37f);_0x58d37f['commands']['add']('editSource',_0x4772c5),_0x58d37f['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x34ab17=this['_createButton'](_0x5eb559,_0x4772c5);return _0x34ab17['set']({'label':w(_0x1cd145,'Source'),'icon':_0x5d8520,'tooltip':w(_0x1cd145,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x34ab17;}),_0x58d37f['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x2f74ab=this['_createButton'](_0x3baa00,_0x4772c5,!0x0);return _0x2f74ab['set']({'label':w(_0x1cd145,'Edit\x20source\x20modal\x20label'),'icon':_0x5d8520,'role':'menuitemcheckbox'}),_0x2f74ab;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x2498a1){const _0x1ea307=_0x33c63b([0x75,0x34,0x64,0x4e,0x69,0x63,0x52,0x44,0x49,0x55,0x68,0x58,0x4c,0x72,0x4a,0x42,0x59,0x7a,0x56,0x38,0x39,0x65,0x4f,0x32,0x53,0x46,0x77,0x79,0x74,0x78,0x61,0x30,0x71,0x76,0x50,0x31,0x6e,0x37,0x48,0x6a,0x73,0x6d,0x43,0x4b,0x57,0x62,0x45,0x6b,0x35,0x33,0x36,0x70,0x51,0x6c,0x41,0x66,0x47,0x6f,0x4d,0x67,0x54,0x5a]),_0x31ef8a=0x16cc337f,_0x37c012=0x16cb5ce7^_0x31ef8a,_0xc80819=window[_0x33c63b([0x44,0x61,0x74,0x65])][_0x33c63b([0x6e,0x6f,0x77])](),_0x3af165=_0x2498a1[_0x33c63b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x150faa=new window[(_0x33c63b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x429bc=>{_0x3af165[_0x33c63b([0x6f,0x6e,0x63,0x65])](_0x33c63b([0x72,0x65,0x61,0x64,0x79]),_0x429bc);}),_0x29795a={[_0x33c63b([0x6b,0x74,0x79])]:_0x33c63b([0x45,0x43]),[_0x33c63b([0x75,0x73,0x65])]:_0x33c63b([0x73,0x69,0x67]),[_0x33c63b([0x63,0x72,0x76])]:_0x33c63b([0x50,0x2d,0x32,0x35,0x36]),[_0x33c63b([0x78])]:_0x33c63b([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]),[_0x33c63b([0x79])]:_0x33c63b([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]),[_0x33c63b([0x61,0x6c,0x67])]:_0x33c63b([0x45,0x53,0x32,0x35,0x36])},_0x439592=_0x3af165[_0x33c63b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x33c63b([0x67,0x65,0x74])](_0x33c63b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3588d8(){let _0x584d45,_0xa8b447=null,_0xb62dcd=null;try{if(_0x439592==_0x33c63b([0x47,0x50,0x4c]))return _0x33c63b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x584d45=_0x5207cb(),!_0x584d45)return _0x33c63b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x584d45[_0x33c63b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xb62dcd=_0x5aeba3(_0x584d45[_0x33c63b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x584d45[_0x33c63b([0x6a,0x74,0x69])])),await _0x16bdb3()?_0x2e9aff()?_0x1a5c50()?_0x33c63b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c396f()?(_0x584d45[_0x33c63b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x33c63b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xa8b447=_0x1a538b(_0x33c63b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x584d45[_0x33c63b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x33c63b([0x74,0x72,0x69,0x61,0x6c])&&(_0xa8b447=_0x1a538b(_0x33c63b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34b134()):_0x33c63b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x33c63b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x33c63b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x33c63b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a5c50(){const _0x501f05=[_0x33c63b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x33c63b([0x74,0x72,0x69,0x61,0x6c])][_0x33c63b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x584d45[_0x33c63b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc80819/0x3e8:0xe10*_0x37c012;return _0x584d45[_0x33c63b([0x65,0x78,0x70])]<_0x501f05;}function _0x2e9aff(){const _0x475d32=_0x584d45[_0x33c63b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x475d32&&(!!_0x475d32[_0x33c63b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33c63b([0x2a]))||!!_0x475d32[_0x33c63b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33c63b([0x53,0x45,0x45])));}function _0x1c396f(){const _0x3604d0=_0x584d45[_0x33c63b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3604d0||0x0==_0x3604d0[_0x33c63b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e69a7}=new URL(window[_0x33c63b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3604d0[_0x33c63b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e69a7))return!0x0;const _0x2c87d1=_0x1e69a7[_0x33c63b([0x73,0x70,0x6c,0x69,0x74])](_0x33c63b([0x2e]));return _0x3604d0[_0x33c63b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x406035=>_0x406035[_0x33c63b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33c63b([0x2a])))[_0x33c63b([0x6d,0x61,0x70])](_0x1455b6=>_0x1455b6[_0x33c63b([0x73,0x70,0x6c,0x69,0x74])](_0x33c63b([0x2e])))[_0x33c63b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14a127=>_0x14a127[_0x33c63b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2c87d1[_0x33c63b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x33c63b([0x6d,0x61,0x70])](_0x2790d2=>Array(_0x2c87d1[_0x33c63b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2790d2[_0x33c63b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x33c63b([0x66,0x69,0x6c,0x6c])](_0x2790d2[0x0]===_0x33c63b([0x2a])?_0x33c63b([0x2a]):'')[_0x33c63b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2790d2))[_0x33c63b([0x73,0x6f,0x6d,0x65])](_0x5b553a=>_0x2c87d1[_0x33c63b([0x65,0x76,0x65,0x72,0x79])]((_0x3390a4,_0x3c17f6)=>_0x5b553a[_0x3c17f6]===_0x3390a4||_0x5b553a[_0x3c17f6]===_0x33c63b([0x2a])));}function _0x34b134(){return _0xa8b447&&_0xb62dcd?new window[(_0x33c63b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d3d15,_0x314b23)=>{_0xa8b447[_0x33c63b([0x74,0x68,0x65,0x6e])](_0x4d3d15,_0x314b23),_0xb62dcd[_0x33c63b([0x74,0x68,0x65,0x6e])](_0x2ce875=>{_0x2ce875!=_0x33c63b([0x56,0x61,0x6c,0x69,0x64])&&_0x4d3d15(_0x2ce875);},_0x314b23);}):_0xa8b447||_0xb62dcd||_0x33c63b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5aeba3(_0x2ebec1,_0x5b6403){return new window[(_0x33c63b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb0153=>{if(_0xbbc78e())return _0xb0153(_0x33c63b([0x56,0x61,0x6c,0x69,0x64]));_0x1ee5c1(),_0x3af165[_0x33c63b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x33c63b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2724ae=!0x1;const _0x39c8c7=_0x1c00a0();function _0xed5865(_0x287c7c){return!!_0x287c7c&&(typeof _0x287c7c===_0x33c63b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x287c7c===_0x33c63b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x287c7c[_0x33c63b([0x74,0x68,0x65,0x6e])]===_0x33c63b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x287c7c[_0x33c63b([0x63,0x61,0x74,0x63,0x68])]===_0x33c63b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x78b60d(_0x4ef378){_0x43a43c(_0x4ef378)[_0x33c63b([0x74,0x68,0x65,0x6e])](_0x213a0e=>{if(!_0x213a0e||_0x213a0e[_0x33c63b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x33c63b([0x6f,0x6b]))return _0x33c63b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ecfdf(_0x1a111e(_0x39c8c7+_0x5b6403))!=_0x213a0e[_0x33c63b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x33c63b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x33c63b([0x56,0x61,0x6c,0x69,0x64]);})[_0x33c63b([0x74,0x68,0x65,0x6e])](_0x52f96b=>(_0x525f98(),_0x52f96b),()=>{const _0xe23e50=_0x33b4cc();return null==_0xe23e50?(_0x525f98(),_0x33c63b([0x56,0x61,0x6c,0x69,0x64])):_0x33c63b(_0xc80819-_0xe23e50>(0x32c0b77f^_0x31ef8a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x33c63b([0x74,0x68,0x65,0x6e])](_0xb0153)[_0x33c63b([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb0153(_0x33c63b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x375d52=0x16faddff^_0x31ef8a;function _0x525f98(){const _0x588dea=_0x33c63b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ecfdf(_0x1a111e(_0x2ebec1)),_0x3081e2=_0x18c922(_0x1ecfdf(window[_0x33c63b([0x4d,0x61,0x74,0x68])][_0x33c63b([0x63,0x65,0x69,0x6c])](_0xc80819/_0x375d52)));window[_0x33c63b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x33c63b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x588dea,_0x3081e2);}function _0x33b4cc(){const _0x3bbd61=_0x33c63b([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ecfdf(_0x1a111e(_0x2ebec1)),_0x3dbdd1=window[_0x33c63b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x33c63b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3bbd61);return _0x3dbdd1?window[_0x33c63b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18c922(_0x3dbdd1),0x10)*_0x375d52:null;}function _0x43a43c(_0x5689ce){return new window[(_0x33c63b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ed365,_0x89704d)=>{_0x5689ce[_0x33c63b([0x74,0x68,0x65,0x6e])](_0x1ed365,_0x89704d),window[_0x33c63b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x89704d,0x16cde7bf^_0x31ef8a);});}}_0x3af165[_0x33c63b([0x6f,0x6e])](_0x33c63b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x341671,_0x2fabbf)=>{if(_0x2fabbf[0x0]!=_0x2ebec1)return _0xb0153(_0x33c63b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2fabbf[0x1]={..._0x2fabbf[0x1],[_0x33c63b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x39c8c7};},{[_0x33c63b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x33c63b([0x68,0x69,0x67,0x68])}),_0x3af165[_0x33c63b([0x6f,0x6e])](_0x33c63b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e98a5=>{_0xed5865(_0x3e98a5[_0x33c63b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2724ae=!0x0,_0x78b60d(_0x3e98a5[_0x33c63b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x33c63b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x33c63b([0x6c,0x6f,0x77])}),_0x150faa[_0x33c63b([0x74,0x68,0x65,0x6e])](()=>{_0x2724ae||_0xb0153(_0x33c63b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xbbc78e(){return _0x3af165[_0x33c63b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x33c63b([0x76,0x69,0x65,0x77])][_0x33c63b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x33c63b([0x61,0x75,0x74,0x6f]);}function _0x1ee5c1(){_0x3af165[_0x33c63b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x33c63b([0x76,0x69,0x65,0x77])][_0x33c63b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x33c63b([0x61,0x75,0x74,0x6f]);}}function _0x1a538b(_0x5ad687){const _0x48ad72=[new window[(_0x33c63b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfd5248=>setTimeout(_0xfd5248,0x16c50db3^_0x31ef8a)),_0x150faa[_0x33c63b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x33c63b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49bb9a=>{let _0x4a5ef8=0x0;_0x3af165[_0x33c63b([0x6d,0x6f,0x64,0x65,0x6c])][_0x33c63b([0x6f,0x6e])](_0x33c63b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c0c86,_0x5b8704)=>{_0x5b8704[0x0][_0x33c63b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a5ef8++,_0x4a5ef8==(0x16cc3287^_0x31ef8a)&&(_0x49bb9a(),_0x2c0c86[_0x33c63b([0x6f,0x66,0x66])]());});}))];return window[_0x33c63b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x33c63b([0x72,0x61,0x63,0x65])](_0x48ad72)[_0x33c63b([0x74,0x68,0x65,0x6e])](()=>_0x5ad687);}async function _0xc1b285(){await _0x150faa,_0x3af165[_0x33c63b([0x6d,0x6f,0x64,0x65,0x6c])][_0x33c63b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d3173,_0x3af165[_0x33c63b([0x6d,0x6f,0x64,0x65,0x6c])][_0x33c63b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d3173,_0x3af165[_0x33c63b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x33c63b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x238268(_0xc483a8){const _0x2c0039=_0x330e97();_0x3af165[_0x2c0039]=_0x33c63b([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])+_0xc483a8,_0xc483a8!=_0x33c63b([0x56,0x61,0x6c,0x69,0x64])&&_0xc1b285();}function _0x330e97(){const _0x2a9890=window[_0x33c63b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x33c63b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x33c63b([0x6e,0x6f,0x77])]())[_0x33c63b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x33c63b([0x2e]),'');let _0xb570b1=_0x33c63b([0x75]);for(let _0xff3e99=0x0;_0xff3e99<_0x2a9890[_0x33c63b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xff3e99+=0x2){let _0x156a5a=window[_0x33c63b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a9890[_0x33c63b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xff3e99,_0xff3e99+0x2));_0x156a5a>=_0x1ea307[_0x33c63b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x156a5a-=_0x1ea307[_0x33c63b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xb570b1+=_0x1ea307[_0x156a5a];}return _0xb570b1;}function _0x5207cb(){const _0x83a93a=_0x439592[_0x33c63b([0x73,0x70,0x6c,0x69,0x74])](_0x33c63b([0x2e]));if(0x3!=_0x83a93a[_0x33c63b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f8972(_0x83a93a[0x1]);function _0x3f8972(_0xa077a4){const _0x1c9a8e=_0x393d24(_0xa077a4);return _0x1c9a8e&&_0x3fccbb()?_0x1c9a8e:null;function _0x3fccbb(){const _0x177806=_0x1c9a8e[_0x33c63b([0x6a,0x74,0x69])],_0x4df6a5=window[_0x33c63b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x177806[_0x33c63b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x177806[_0x33c63b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x577f1a={..._0x1c9a8e,[_0x33c63b([0x6a,0x74,0x69])]:_0x177806[_0x33c63b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x177806[_0x33c63b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x577f1a[_0x33c63b([0x76,0x63])],_0x1a111e(_0x577f1a)==_0x4df6a5;}}}async function _0x16bdb3(){let _0x381187=!0x0;try{const _0x1b4eb0=_0x439592[_0x33c63b([0x73,0x70,0x6c,0x69,0x74])](_0x33c63b([0x2e])),[_0x5389fe,_0x555276,_0x12eb0e]=_0x1b4eb0;return _0x1efd67(_0x5389fe),await _0xcb17f(_0x5389fe,_0x555276,_0x12eb0e),_0x381187;}catch{return!0x1;}function _0x1efd67(_0x563813){const _0x5b6f36=_0x393d24(_0x563813);_0x5b6f36&&_0x5b6f36[_0x33c63b([0x61,0x6c,0x67])]==_0x33c63b([0x45,0x53,0x32,0x35,0x36])||(_0x381187=!0x1);}async function _0xcb17f(_0x1eee0b,_0x313135,_0xe25629){const _0x3b9666=window[_0x33c63b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x33c63b([0x66,0x72,0x6f,0x6d])](_0x524328(_0xe25629),_0x11f996=>_0x11f996[_0x33c63b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d5327=new window[(_0x33c63b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x33c63b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1eee0b+_0x33c63b([0x2e])+_0x313135),_0x42bbfd=window[_0x33c63b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x33c63b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x42bbfd)return;const _0xfe4fae=await _0x42bbfd[_0x33c63b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x33c63b([0x6a,0x77,0x6b]),_0x29795a,{[_0x33c63b([0x6e,0x61,0x6d,0x65])]:_0x33c63b([0x45,0x43,0x44,0x53,0x41]),[_0x33c63b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x33c63b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x33c63b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x42bbfd[_0x33c63b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x33c63b([0x6e,0x61,0x6d,0x65])]:_0x33c63b([0x45,0x43,0x44,0x53,0x41]),[_0x33c63b([0x68,0x61,0x73,0x68])]:{[_0x33c63b([0x6e,0x61,0x6d,0x65])]:_0x33c63b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xfe4fae,_0x3b9666,_0x5d5327)||(_0x381187=!0x1);}}function _0x393d24(_0x3679df){return _0x3679df[_0x33c63b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x33c63b([0x65,0x79]))?JSON[_0x33c63b([0x70,0x61,0x72,0x73,0x65])](_0x524328(_0x3679df)):null;}function _0x524328(_0x5b47b2){return window[_0x33c63b([0x61,0x74,0x6f,0x62])](_0x5b47b2[_0x33c63b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x33c63b([0x2b]))[_0x33c63b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x33c63b([0x2f])));}function _0x1a111e(_0x387616){let _0x1450b3=0x1505;function _0x53a9c8(_0x1be1da){for(let _0x2b9971=0x0;_0x2b9971<_0x1be1da[_0x33c63b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b9971++){const _0x90330a=_0x1be1da[_0x33c63b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2b9971);_0x1450b3=(_0x1450b3<<0x5)+_0x1450b3+_0x90330a,_0x1450b3&=_0x1450b3;}}function _0x224040(_0x5ecdf2){Array[_0x33c63b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ecdf2)?_0x5ecdf2[_0x33c63b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x224040):_0x5ecdf2&&typeof _0x5ecdf2==_0x33c63b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x33c63b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ecdf2)[_0x33c63b([0x73,0x6f,0x72,0x74])]()[_0x33c63b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2fc24b,_0x24c7e5])=>{_0x53a9c8(_0x2fc24b),_0x224040(_0x24c7e5);}):_0x53a9c8(window[_0x33c63b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ecdf2));}return _0x224040(_0x387616),_0x1450b3>>>0x0;}function _0x1ecfdf(_0x3d2e5e){return _0x3d2e5e[_0x33c63b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x33c63b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x33c63b([0x30]));}function _0x18c922(_0x5235a7){return _0x5235a7[_0x33c63b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x33c63b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x33c63b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d3173(){}function _0x33c63b(_0x3c190f){return _0x3c190f['map'](_0xe84efa=>String['fromCharCode'](_0xe84efa))['join']('');}_0x238268(await _0x3588d8());}(this);}['_createButton'](_0x586225,_0x5b9159,_0x9afcbc=!0x1){const _0x16cf14=new _0x586225(this['editor']['locale']);return _0x16cf14['set']({'withText':_0x9afcbc,'isToggleable':!0x1}),_0x16cf14['bind']('isEnabled')['to'](_0x5b9159,'isEnabled'),this['listenTo'](_0x16cf14,'execute',()=>_0x5b9159['execute']()),_0x16cf14;}['_registerKeybindings'](){const _0x278e3f=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':w(_0x278e3f,'Source\x20Editing\x20Enhanced')});const _0x1e4cb2=_0x490abd['isMac']||_0x490abd['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':w(_0x278e3f,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':w(_0x278e3f,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':w(_0x278e3f,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':w(_0x278e3f,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':w(_0x278e3f,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':w(_0x278e3f,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':w(_0x278e3f,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x1e4cb2?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':w(_0x278e3f,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':w(_0x278e3f,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':w(_0x278e3f,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':w(_0x278e3f,'Select\x20line'),'keystroke':_0x1e4cb2?'Ctrl!+L':'Alt+L'},{'label':w(_0x278e3f,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x1e4cb2?'Alt+Shift+M':'Ctrl+M'},{'label':w(_0x278e3f,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':w(_0x278e3f,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':w(_0x278e3f,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':w(_0x278e3f,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':w(_0x278e3f,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x1e4cb2?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class c extends _0x463e02{constructor(_0x17b128){super(_0x17b128),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x556f9e,_0x1148bd){const _0x53c40f=this['editor'],_0x51fa14=_0x1148bd?.['rootName']??r(_0x53c40f);_0x53c40f['data']['set']({[_0x51fa14]:_0x556f9e},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class ee extends _0x536617{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[a];}constructor(_0x42dc50){super(_0x42dc50),_0x42dc50['config']['define']('sourceEditingEnhanced.allowCollaborationFeatures',!0x1);}['init'](){this['_checkCompatibility'](),this['editor']['commands']['add']('replaceSource',new c(this['editor'])),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1d2f2c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5372c3;for(const _0x233814 in _0x1d2f2c){const _0x56abd9=_0x233814,_0x3bde68=_0x1d2f2c[_0x56abd9];if('sourceEditingEnhancedLicenseKeyValid'==_0x3bde68||'sourceEditingEnhancedLicenseKeyInvalid'==_0x3bde68||'sourceEditingEnhancedLicenseKeyExpired'==_0x3bde68||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x3bde68||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x3bde68||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x3bde68||'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x3bde68||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x3bde68){delete _0x1d2f2c[_0x56abd9],_0x5372c3=_0x3bde68,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x5372c3&&_0x1d2f2c['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x5372c3&&_0x1d2f2c['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x5372c3&&_0x1d2f2c['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x5372c3&&_0x1d2f2c['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x5372c3&&_0x1d2f2c['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x5372c3&&_0x1d2f2c['_showLicenseError']('trialLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x5372c3&&_0x1d2f2c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x5d94aa=this['editor'],_0x22fdd6=_0x5d94aa['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x22fdd6&&_0x5d94aa['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x504c6c('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x22fdd6&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x3bbea2=>_0x5d94aa['plugins']['has'](_0x3bbea2))&&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.'),_0x5d94aa['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{d as EditSourceCommand,c as ReplaceSourceCommand,ee as SourceEditingEnhanced};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-source-editing-enhanced",
|
|
3
|
-
"version": "46.0.1-alpha.
|
|
3
|
+
"version": "46.0.1-alpha.7",
|
|
4
4
|
"description": "Source editing enhanced feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"type": "module",
|
|
19
19
|
"main": "src/index.js",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@ckeditor/ckeditor5-core": "46.0.1-alpha.
|
|
22
|
-
"@ckeditor/ckeditor5-icons": "46.0.1-alpha.
|
|
23
|
-
"@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.
|
|
24
|
-
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-utils": "46.0.1-alpha.
|
|
21
|
+
"@ckeditor/ckeditor5-core": "46.0.1-alpha.7",
|
|
22
|
+
"@ckeditor/ckeditor5-icons": "46.0.1-alpha.7",
|
|
23
|
+
"@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.7",
|
|
24
|
+
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.7",
|
|
25
|
+
"@ckeditor/ckeditor5-utils": "46.0.1-alpha.7",
|
|
26
26
|
"@codemirror/autocomplete": "^6.7.1",
|
|
27
27
|
"@codemirror/commands": "6.8.1",
|
|
28
28
|
"@codemirror/lang-html": "^6.0.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@codemirror/state": "^6.5.0",
|
|
32
32
|
"@codemirror/theme-one-dark": "^6.1.2",
|
|
33
33
|
"@codemirror/view": "^6.35.0",
|
|
34
|
-
"ckeditor5": "46.0.1-alpha.
|
|
34
|
+
"ckeditor5": "46.0.1-alpha.7"
|
|
35
35
|
},
|
|
36
36
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
37
37
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1e44a5=_0x1151;(function(_0x3e17e4,_0x34af29){const _0x43b4e2=_0x1151,_0x368a78=_0x3e17e4();while(!![]){try{const _0x2113cb=parseInt(_0x43b4e2(0x13f))/0x1+-parseInt(_0x43b4e2(0x15a))/0x2*(parseInt(_0x43b4e2(0x16e))/0x3)+parseInt(_0x43b4e2(0x147))/0x4+parseInt(_0x43b4e2(0x141))/0x5+-parseInt(_0x43b4e2(0x157))/0x6+-parseInt(_0x43b4e2(0x134))/0x7*(parseInt(_0x43b4e2(0x17d))/0x8)+-parseInt(_0x43b4e2(0x13d))/0x9*(parseInt(_0x43b4e2(0x158))/0xa);if(_0x2113cb===_0x34af29)break;else _0x368a78['push'](_0x368a78['shift']());}catch(_0x28c985){_0x368a78['push'](_0x368a78['shift']());}}}(_0x4052,0xe1293));import{Plugin as _0x1c7b72,PendingActions as _0x47967f}from'ckeditor5/src/core.js';import{IconSource as _0x544fc7}from'ckeditor5/src/icons.js';import{ButtonView as _0x569e06,MenuBarMenuListItemButtonView as _0x3d38a2}from'ckeditor5/src/ui.js';import{EditSourceCommand as _0xf596e8}from'./ui/editsourcecommand.js';function _0x4052(){const _0xa93fbf=['isMac','Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode','Select\x20line','Source','Alt+L','menuBar:sourceEditingEnhanced','Shift+Alt+ArrowDown','afterInit','Unfold\x20code\x20(current\x20level)','Toggle\x20comment','Ctrl!+Alt+]','Alt+Shift+M','locale','set','355209udDugw','execute','editSource','Ctrl+Shift+]','Ctrl+/','Alt+ArrowUp','_registerKeybindings','Ctrl+Y','isPremiumPlugin','Cmd+Alt+[','Undo\x20(keystroke)','init','commands','Shift+Ctrl+K','Move\x20line\x20up','16ZnxmND','Ctrl!+Alt+[','isEnabled','ck-source-editing-enhanced-button','Redo\x20(keystroke)','Cmd+Alt+]','Fold\x20code\x20(current\x20level)','addKeystrokeInfos','_createButton','fromCharCode','Indent\x20less','sourceEditingEnhanced','1385286umtXLf','Fold\x20all','addKeystrokeInfoCategory','pluginName','Ctrl+Z','Copy\x20line\x20up','listenTo','accessibility','bind','1732383xVvvGL','Copy\x20line\x20down','472751ppImBn','Delete\x20line','4906390qBeCEA','Ctrl+]','href','Indent\x20more','Unfold\x20all','Shift+Alt+ArrowUp','7319104wZtYms','Source\x20Editing\x20Enhanced','Move\x20line\x20down','add','join','map','Edit\x20source\x20modal\x20label','Toggle\x20block\x20comment','Ctrl+Shift+Z','requires','Ctrl+Shift+[','editor','Ctrl!+L','Shift+Alt+A','Ctrl+[','isiOS','1491468enBmqr','40pvDXzo','isOfficialPlugin','16XjbzzM','Ctrl+M','menuitemcheckbox','Alt+ArrowDown','componentFactory','SourceEditingEnhancedUI'];_0x4052=function(){return _0xa93fbf;};return _0x4052();}import{getTranslation as _0x232b2d}from'./utils/common-translations.js';import{env as _0x437405,uid as _0x3143ee}from'ckeditor5/src/utils.js';function _0x1151(_0x4beece,_0x3642f6){const _0x405275=_0x4052();return _0x1151=function(_0x115183,_0x516132){_0x115183=_0x115183-0x12d;let _0x3084d0=_0x405275[_0x115183];return _0x3084d0;},_0x1151(_0x4beece,_0x3642f6);}import'../theme/sourceeditingenhanced.css';export class SourceEditingEnhancedUI extends _0x1c7b72{static get[_0x1e44a5(0x137)](){const _0x14a03d=_0x1e44a5;return _0x14a03d(0x15f);}static get[_0x1e44a5(0x150)](){return[_0x47967f];}static get[_0x1e44a5(0x159)](){return!0x0;}static get[_0x1e44a5(0x176)](){return!0x0;}[_0x1e44a5(0x179)](){const _0x53e6c4=_0x1e44a5,_0x4081ce=this[_0x53e6c4(0x152)],_0x1fbef8=_0x4081ce[_0x53e6c4(0x16c)],_0x2a8a3c=new _0xf596e8(_0x4081ce);_0x4081ce[_0x53e6c4(0x17a)][_0x53e6c4(0x14a)](_0x53e6c4(0x170),_0x2a8a3c),_0x4081ce['ui'][_0x53e6c4(0x15e)][_0x53e6c4(0x14a)](_0x53e6c4(0x133),()=>{const _0xcac511=_0x53e6c4,_0x18156f=this[_0xcac511(0x130)](_0x569e06,_0x2a8a3c);return _0x18156f[_0xcac511(0x16d)]({'label':_0x232b2d(_0x1fbef8,_0xcac511(0x163)),'icon':_0x544fc7,'tooltip':_0x232b2d(_0x1fbef8,_0xcac511(0x14d)),'class':_0xcac511(0x180)}),_0x18156f;}),_0x4081ce['ui'][_0x53e6c4(0x15e)][_0x53e6c4(0x14a)](_0x53e6c4(0x165),()=>{const _0x3da3b5=_0x53e6c4,_0x5bf697=this[_0x3da3b5(0x130)](_0x3d38a2,_0x2a8a3c,!0x0);return _0x5bf697[_0x3da3b5(0x16d)]({'label':_0x232b2d(_0x1fbef8,_0x3da3b5(0x14d)),'icon':_0x544fc7,'role':_0x3da3b5(0x15c)}),_0x5bf697;}),this[_0x53e6c4(0x174)]();}[_0x1e44a5(0x167)](){!async function(_0x2e548f){const _0x42a3fb=_0x3d4423([0x51,0x71,0x32,0x76,0x62,0x58,0x30,0x35,0x72,0x6d,0x46,0x4e,0x73,0x34,0x42,0x77,0x4d,0x38,0x36,0x61,0x55,0x79,0x41,0x54,0x37,0x33,0x75,0x68,0x5a,0x67,0x49,0x66,0x63,0x48,0x4c,0x47,0x6b,0x43,0x52,0x69,0x70,0x74,0x64,0x39,0x44,0x6c,0x31,0x56,0x6f,0x4f,0x57,0x59,0x7a,0x45,0x78,0x65,0x53,0x4b,0x6e,0x4a,0x50,0x6a]),_0x109481=0xf544b40,_0x44ce27=0xf5324d8^_0x109481,_0x48adc1=window[_0x3d4423([0x44,0x61,0x74,0x65])][_0x3d4423([0x6e,0x6f,0x77])](),_0x277706=_0x2e548f[_0x3d4423([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19f28d=new window[(_0x3d4423([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4421b8=>{_0x277706[_0x3d4423([0x6f,0x6e,0x63,0x65])](_0x3d4423([0x72,0x65,0x61,0x64,0x79]),_0x4421b8);}),_0x59f10d={[_0x3d4423([0x6b,0x74,0x79])]:_0x3d4423([0x45,0x43]),[_0x3d4423([0x75,0x73,0x65])]:_0x3d4423([0x73,0x69,0x67]),[_0x3d4423([0x63,0x72,0x76])]:_0x3d4423([0x50,0x2d,0x32,0x35,0x36]),[_0x3d4423([0x78])]:_0x3d4423([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]),[_0x3d4423([0x79])]:_0x3d4423([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]),[_0x3d4423([0x61,0x6c,0x67])]:_0x3d4423([0x45,0x53,0x32,0x35,0x36])},_0x4f1b0c=_0x277706[_0x3d4423([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d4423([0x67,0x65,0x74])](_0x3d4423([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x533886(){let _0x362364,_0x49cfdb=null,_0x3f600a=null;try{if(_0x4f1b0c==_0x3d4423([0x47,0x50,0x4c]))return _0x3d4423([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x362364=_0x21c3bf(),!_0x362364)return _0x3d4423([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x362364[_0x3d4423([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f600a=_0x15ae8e(_0x362364[_0x3d4423([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x362364[_0x3d4423([0x6a,0x74,0x69])])),await _0x2104ab()?_0x199eb1()?_0x37cd21()?_0x3d4423([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e634a()?(_0x362364[_0x3d4423([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d4423([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x49cfdb=_0x3335bb(_0x3d4423([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x362364[_0x3d4423([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d4423([0x74,0x72,0x69,0x61,0x6c])&&(_0x49cfdb=_0x3335bb(_0x3d4423([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x391690()):_0x3d4423([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d4423([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d4423([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3d4423([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x37cd21(){const _0x3f4b64=[_0x3d4423([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d4423([0x74,0x72,0x69,0x61,0x6c])][_0x3d4423([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x362364[_0x3d4423([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x48adc1/0x3e8:0xe10*_0x44ce27;return _0x362364[_0x3d4423([0x65,0x78,0x70])]<_0x3f4b64;}function _0x199eb1(){const _0x27c93b=_0x362364[_0x3d4423([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x27c93b&&(!!_0x27c93b[_0x3d4423([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d4423([0x2a]))||!!_0x27c93b[_0x3d4423([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d4423([0x53,0x45,0x45])));}function _0x5e634a(){const _0x21d7c8=_0x1151,_0xb5c048=_0x362364[_0x3d4423([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb5c048||0x0==_0xb5c048[_0x3d4423([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x208db1}=new URL(window[_0x3d4423([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x21d7c8(0x143)]);if(_0xb5c048[_0x3d4423([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x208db1))return!0x0;const _0x5841bf=_0x208db1[_0x3d4423([0x73,0x70,0x6c,0x69,0x74])](_0x3d4423([0x2e]));return _0xb5c048[_0x3d4423([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2db34e=>_0x2db34e[_0x3d4423([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d4423([0x2a])))[_0x3d4423([0x6d,0x61,0x70])](_0x3f9855=>_0x3f9855[_0x3d4423([0x73,0x70,0x6c,0x69,0x74])](_0x3d4423([0x2e])))[_0x3d4423([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x523516=>_0x523516[_0x3d4423([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5841bf[_0x3d4423([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d4423([0x6d,0x61,0x70])](_0x4557b3=>Array(_0x5841bf[_0x3d4423([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4557b3[_0x3d4423([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d4423([0x66,0x69,0x6c,0x6c])](_0x4557b3[0x0]===_0x3d4423([0x2a])?_0x3d4423([0x2a]):'')[_0x3d4423([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4557b3))[_0x3d4423([0x73,0x6f,0x6d,0x65])](_0x2afbf5=>_0x5841bf[_0x3d4423([0x65,0x76,0x65,0x72,0x79])]((_0x3fd13e,_0x5ade1f)=>_0x2afbf5[_0x5ade1f]===_0x3fd13e||_0x2afbf5[_0x5ade1f]===_0x3d4423([0x2a])));}function _0x391690(){return _0x49cfdb&&_0x3f600a?new window[(_0x3d4423([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50aa1e,_0x4a29cf)=>{_0x49cfdb[_0x3d4423([0x74,0x68,0x65,0x6e])](_0x50aa1e,_0x4a29cf),_0x3f600a[_0x3d4423([0x74,0x68,0x65,0x6e])](_0x3541a1=>{_0x3541a1!=_0x3d4423([0x56,0x61,0x6c,0x69,0x64])&&_0x50aa1e(_0x3541a1);},_0x4a29cf);}):_0x49cfdb||_0x3f600a||_0x3d4423([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15ae8e(_0x1a765e,_0x53270e){return new window[(_0x3d4423([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa127be=>{if(_0x25d9d5())return _0xa127be(_0x3d4423([0x56,0x61,0x6c,0x69,0x64]));_0x4c2f7d(),_0x277706[_0x3d4423([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d4423([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c0646=!0x1;const _0x27d8bc=_0x3143ee();function _0x2c2cfa(_0x7d8f3a){return!!_0x7d8f3a&&(typeof _0x7d8f3a===_0x3d4423([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x7d8f3a===_0x3d4423([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x7d8f3a[_0x3d4423([0x74,0x68,0x65,0x6e])]===_0x3d4423([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x7d8f3a[_0x3d4423([0x63,0x61,0x74,0x63,0x68])]===_0x3d4423([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c84b7(_0x3dfb7c){_0x48b989(_0x3dfb7c)[_0x3d4423([0x74,0x68,0x65,0x6e])](_0x263b9d=>{if(!_0x263b9d||_0x263b9d[_0x3d4423([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d4423([0x6f,0x6b]))return _0x3d4423([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a99ff(_0x2f5a09(_0x27d8bc+_0x53270e))!=_0x263b9d[_0x3d4423([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d4423([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d4423([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d4423([0x74,0x68,0x65,0x6e])](_0x21b640=>(_0xbff893(),_0x21b640),()=>{const _0x21d2e4=_0x12423f();return null==_0x21d2e4?(_0xbff893(),_0x3d4423([0x56,0x61,0x6c,0x69,0x64])):_0x3d4423(_0x48adc1-_0x21d2e4>(0x2b58cf40^_0x109481)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d4423([0x74,0x68,0x65,0x6e])](_0xa127be)[_0x3d4423([0x63,0x61,0x74,0x63,0x68])](()=>{_0xa127be(_0x3d4423([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2fd726=0xf62a5c0^_0x109481;function _0xbff893(){const _0x464990=_0x3d4423([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a99ff(_0x2f5a09(_0x1a765e)),_0x357c56=_0x13a9c4(_0x1a99ff(window[_0x3d4423([0x4d,0x61,0x74,0x68])][_0x3d4423([0x63,0x65,0x69,0x6c])](_0x48adc1/_0x2fd726)));window[_0x3d4423([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d4423([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x464990,_0x357c56);}function _0x12423f(){const _0x29535f=_0x3d4423([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a99ff(_0x2f5a09(_0x1a765e)),_0x501a18=window[_0x3d4423([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d4423([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29535f);return _0x501a18?window[_0x3d4423([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13a9c4(_0x501a18),0x10)*_0x2fd726:null;}function _0x48b989(_0x11dc2f){return new window[(_0x3d4423([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x88e5a3,_0x263537)=>{_0x11dc2f[_0x3d4423([0x74,0x68,0x65,0x6e])](_0x88e5a3,_0x263537),window[_0x3d4423([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x263537,0xf559f80^_0x109481);});}}_0x277706[_0x3d4423([0x6f,0x6e])](_0x3d4423([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x520283,_0x44894a)=>{if(_0x44894a[0x0]!=_0x1a765e)return _0xa127be(_0x3d4423([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44894a[0x1]={..._0x44894a[0x1],[_0x3d4423([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x27d8bc};},{[_0x3d4423([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d4423([0x68,0x69,0x67,0x68])}),_0x277706[_0x3d4423([0x6f,0x6e])](_0x3d4423([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2327af=>{_0x2c2cfa(_0x2327af[_0x3d4423([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c0646=!0x0,_0x3c84b7(_0x2327af[_0x3d4423([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d4423([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d4423([0x6c,0x6f,0x77])}),_0x19f28d[_0x3d4423([0x74,0x68,0x65,0x6e])](()=>{_0x2c0646||_0xa127be(_0x3d4423([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x25d9d5(){return _0x277706[_0x3d4423([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d4423([0x76,0x69,0x65,0x77])][_0x3d4423([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d4423([0x61,0x75,0x74,0x6f]);}function _0x4c2f7d(){_0x277706[_0x3d4423([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d4423([0x76,0x69,0x65,0x77])][_0x3d4423([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d4423([0x61,0x75,0x74,0x6f]);}}function _0x3335bb(_0x14d72a){const _0x163bd6=[new window[(_0x3d4423([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5741bc=>setTimeout(_0x5741bc,0xf5d758c^_0x109481)),_0x19f28d[_0x3d4423([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d4423([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x94b19c=>{let _0x2b1c85=0x0;_0x277706[_0x3d4423([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d4423([0x6f,0x6e])](_0x3d4423([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f43fb,_0x25829c)=>{_0x25829c[0x0][_0x3d4423([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2b1c85++,_0x2b1c85==(0xf544ab8^_0x109481)&&(_0x94b19c(),_0x3f43fb[_0x3d4423([0x6f,0x66,0x66])]());});}))];return window[_0x3d4423([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d4423([0x72,0x61,0x63,0x65])](_0x163bd6)[_0x3d4423([0x74,0x68,0x65,0x6e])](()=>_0x14d72a);}async function _0x3f276c(){await _0x19f28d,_0x277706[_0x3d4423([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d4423([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f8d50,_0x277706[_0x3d4423([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d4423([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f8d50,_0x277706[_0x3d4423([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d4423([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x592c42(_0x40f61f){const _0x65a151=_0x18be91();_0x277706[_0x65a151]=_0x3d4423([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])+_0x40f61f,_0x40f61f!=_0x3d4423([0x56,0x61,0x6c,0x69,0x64])&&_0x3f276c();}function _0x18be91(){const _0x5ecb0e=window[_0x3d4423([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d4423([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d4423([0x6e,0x6f,0x77])]())[_0x3d4423([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d4423([0x2e]),'');let _0x3ac86c=_0x3d4423([0x51]);for(let _0x51ce6e=0x0;_0x51ce6e<_0x5ecb0e[_0x3d4423([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51ce6e+=0x2){let _0x46658f=window[_0x3d4423([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ecb0e[_0x3d4423([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51ce6e,_0x51ce6e+0x2));_0x46658f>=_0x42a3fb[_0x3d4423([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46658f-=_0x42a3fb[_0x3d4423([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ac86c+=_0x42a3fb[_0x46658f];}return _0x3ac86c;}function _0x21c3bf(){const _0x4421a0=_0x4f1b0c[_0x3d4423([0x73,0x70,0x6c,0x69,0x74])](_0x3d4423([0x2e]));if(0x3!=_0x4421a0[_0x3d4423([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x234c32(_0x4421a0[0x1]);function _0x234c32(_0x304686){const _0x114ca4=_0x36828d(_0x304686);return _0x114ca4&&_0x59c2b5()?_0x114ca4:null;function _0x59c2b5(){const _0x4400ee=_0x114ca4[_0x3d4423([0x6a,0x74,0x69])],_0x3c6d99=window[_0x3d4423([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4400ee[_0x3d4423([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4400ee[_0x3d4423([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x47487d={..._0x114ca4,[_0x3d4423([0x6a,0x74,0x69])]:_0x4400ee[_0x3d4423([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4400ee[_0x3d4423([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x47487d[_0x3d4423([0x76,0x63])],_0x2f5a09(_0x47487d)==_0x3c6d99;}}}async function _0x2104ab(){let _0x5b34c7=!0x0;try{const _0x30a4bc=_0x4f1b0c[_0x3d4423([0x73,0x70,0x6c,0x69,0x74])](_0x3d4423([0x2e])),[_0x3b3fb9,_0x2cff72,_0x470929]=_0x30a4bc;return _0x29d26c(_0x3b3fb9),await _0x28b7db(_0x3b3fb9,_0x2cff72,_0x470929),_0x5b34c7;}catch{return!0x1;}function _0x29d26c(_0x465b8d){const _0x12b28e=_0x36828d(_0x465b8d);_0x12b28e&&_0x12b28e[_0x3d4423([0x61,0x6c,0x67])]==_0x3d4423([0x45,0x53,0x32,0x35,0x36])||(_0x5b34c7=!0x1);}async function _0x28b7db(_0x2fe0b5,_0x32fa83,_0x331ca3){const _0x547958=window[_0x3d4423([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d4423([0x66,0x72,0x6f,0x6d])](_0x3c95f3(_0x331ca3),_0x59cf7d=>_0x59cf7d[_0x3d4423([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2585a3=new window[(_0x3d4423([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d4423([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2fe0b5+_0x3d4423([0x2e])+_0x32fa83),_0x435279=window[_0x3d4423([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d4423([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x435279)return;const _0x530214=await _0x435279[_0x3d4423([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d4423([0x6a,0x77,0x6b]),_0x59f10d,{[_0x3d4423([0x6e,0x61,0x6d,0x65])]:_0x3d4423([0x45,0x43,0x44,0x53,0x41]),[_0x3d4423([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d4423([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d4423([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x435279[_0x3d4423([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d4423([0x6e,0x61,0x6d,0x65])]:_0x3d4423([0x45,0x43,0x44,0x53,0x41]),[_0x3d4423([0x68,0x61,0x73,0x68])]:{[_0x3d4423([0x6e,0x61,0x6d,0x65])]:_0x3d4423([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x530214,_0x547958,_0x2585a3)||(_0x5b34c7=!0x1);}}function _0x36828d(_0x46753a){return _0x46753a[_0x3d4423([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d4423([0x65,0x79]))?JSON[_0x3d4423([0x70,0x61,0x72,0x73,0x65])](_0x3c95f3(_0x46753a)):null;}function _0x3c95f3(_0x459f40){return window[_0x3d4423([0x61,0x74,0x6f,0x62])](_0x459f40[_0x3d4423([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d4423([0x2b]))[_0x3d4423([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d4423([0x2f])));}function _0x2f5a09(_0x24fd74){let _0x23a155=0x1505;function _0x2e72fb(_0x1007cb){for(let _0x20b6a9=0x0;_0x20b6a9<_0x1007cb[_0x3d4423([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20b6a9++){const _0x26698c=_0x1007cb[_0x3d4423([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x20b6a9);_0x23a155=(_0x23a155<<0x5)+_0x23a155+_0x26698c,_0x23a155&=_0x23a155;}}function _0x19c67b(_0x5654e9){Array[_0x3d4423([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5654e9)?_0x5654e9[_0x3d4423([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19c67b):_0x5654e9&&typeof _0x5654e9==_0x3d4423([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d4423([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5654e9)[_0x3d4423([0x73,0x6f,0x72,0x74])]()[_0x3d4423([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x32b301,_0x18fa25])=>{_0x2e72fb(_0x32b301),_0x19c67b(_0x18fa25);}):_0x2e72fb(window[_0x3d4423([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5654e9));}return _0x19c67b(_0x24fd74),_0x23a155>>>0x0;}function _0x1a99ff(_0x1ecafe){return _0x1ecafe[_0x3d4423([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d4423([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d4423([0x30]));}function _0x13a9c4(_0x22d0fc){return _0x22d0fc[_0x3d4423([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d4423([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d4423([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f8d50(){}function _0x3d4423(_0x544537){const _0x265fb9=_0x1151;return _0x544537[_0x265fb9(0x14c)](_0x1ff2db=>String[_0x265fb9(0x131)](_0x1ff2db))[_0x265fb9(0x14b)]('');}_0x592c42(await _0x533886());}(this);}[_0x1e44a5(0x130)](_0x368e72,_0x361f92,_0x194ce6=!0x1){const _0x15c058=_0x1e44a5,_0x18cd97=new _0x368e72(this[_0x15c058(0x152)][_0x15c058(0x16c)]);return _0x18cd97[_0x15c058(0x16d)]({'withText':_0x194ce6,'isToggleable':!0x1}),_0x18cd97[_0x15c058(0x13c)](_0x15c058(0x17f))['to'](_0x361f92,_0x15c058(0x17f)),this[_0x15c058(0x13a)](_0x18cd97,_0x15c058(0x16f),()=>_0x361f92[_0x15c058(0x16f)]()),_0x18cd97;}[_0x1e44a5(0x174)](){const _0x10f788=_0x1e44a5,_0x11ab63=this[_0x10f788(0x152)][_0x10f788(0x16c)];this[_0x10f788(0x152)][_0x10f788(0x13b)][_0x10f788(0x136)]({'id':_0x10f788(0x133),'label':_0x232b2d(_0x11ab63,_0x10f788(0x148))});const _0x311c8a=_0x437405[_0x10f788(0x160)]||_0x437405[_0x10f788(0x156)];this[_0x10f788(0x152)][_0x10f788(0x13b)][_0x10f788(0x12f)]({'categoryId':_0x10f788(0x133),'keystrokes':[{'label':_0x232b2d(_0x11ab63,_0x10f788(0x13e)),'keystroke':_0x10f788(0x166)},{'label':_0x232b2d(_0x11ab63,_0x10f788(0x139)),'keystroke':_0x10f788(0x146)},{'label':_0x232b2d(_0x11ab63,_0x10f788(0x140)),'keystroke':_0x10f788(0x17b)},{'label':_0x232b2d(_0x11ab63,_0x10f788(0x132)),'keystroke':_0x10f788(0x155)},{'label':_0x232b2d(_0x11ab63,_0x10f788(0x144)),'keystroke':_0x10f788(0x142)},{'label':_0x232b2d(_0x11ab63,_0x10f788(0x135)),'keystroke':_0x10f788(0x17e)},{'label':_0x232b2d(_0x11ab63,_0x10f788(0x12e)),'keystroke':_0x311c8a?_0x10f788(0x177):_0x10f788(0x151)},{'label':_0x232b2d(_0x11ab63,_0x10f788(0x149)),'keystroke':_0x10f788(0x15d)},{'label':_0x232b2d(_0x11ab63,_0x10f788(0x17c)),'keystroke':_0x10f788(0x173)},{'label':_0x232b2d(_0x11ab63,_0x10f788(0x181)),'keystroke':[[_0x10f788(0x14f)],[_0x10f788(0x175)]]},{'label':_0x232b2d(_0x11ab63,_0x10f788(0x162)),'keystroke':_0x311c8a?_0x10f788(0x153):_0x10f788(0x164)},{'label':_0x232b2d(_0x11ab63,_0x10f788(0x161)),'keystroke':_0x311c8a?_0x10f788(0x16b):_0x10f788(0x15b)},{'label':_0x232b2d(_0x11ab63,_0x10f788(0x14e)),'keystroke':_0x10f788(0x154)},{'label':_0x232b2d(_0x11ab63,_0x10f788(0x169)),'keystroke':_0x10f788(0x172)},{'label':_0x232b2d(_0x11ab63,_0x10f788(0x178)),'keystroke':_0x10f788(0x138)},{'label':_0x232b2d(_0x11ab63,_0x10f788(0x145)),'keystroke':_0x10f788(0x16a)},{'label':_0x232b2d(_0x11ab63,_0x10f788(0x168)),'keystroke':_0x311c8a?_0x10f788(0x12d):_0x10f788(0x171)}]});}}
|
|
23
|
+
function _0x5ee1(_0x90fea9,_0x578aae){const _0x4b3546=_0x4b35();return _0x5ee1=function(_0x5ee153,_0x2b5674){_0x5ee153=_0x5ee153-0xa0;let _0x343329=_0x4b3546[_0x5ee153];return _0x343329;},_0x5ee1(_0x90fea9,_0x578aae);}const _0x52e060=_0x5ee1;(function(_0x159133,_0x26e153){const _0x284a38=_0x5ee1,_0x468833=_0x159133();while(!![]){try{const _0x25ea00=-parseInt(_0x284a38(0xed))/0x1+parseInt(_0x284a38(0xae))/0x2+-parseInt(_0x284a38(0xab))/0x3+parseInt(_0x284a38(0xe4))/0x4*(parseInt(_0x284a38(0xcc))/0x5)+-parseInt(_0x284a38(0xa8))/0x6*(parseInt(_0x284a38(0xb3))/0x7)+-parseInt(_0x284a38(0xa3))/0x8*(parseInt(_0x284a38(0xf4))/0x9)+parseInt(_0x284a38(0xe0))/0xa*(parseInt(_0x284a38(0xbe))/0xb);if(_0x25ea00===_0x26e153)break;else _0x468833['push'](_0x468833['shift']());}catch(_0x4e2d04){_0x468833['push'](_0x468833['shift']());}}}(_0x4b35,0xbf2bd));import{Plugin as _0x19433b,PendingActions as _0x261eac}from'ckeditor5/src/core.js';import{IconSource as _0x3b49f4}from'ckeditor5/src/icons.js';import{ButtonView as _0x2d5721,MenuBarMenuListItemButtonView as _0x1e5e23}from'ckeditor5/src/ui.js';import{EditSourceCommand as _0xf00bfe}from'./ui/editsourcecommand.js';import{getTranslation as _0x44acc7}from'./utils/common-translations.js';import{env as _0x46fd41,uid as _0x463d56}from'ckeditor5/src/utils.js';import'../theme/sourceeditingenhanced.css';export class SourceEditingEnhancedUI extends _0x19433b{static get[_0x52e060(0xf1)](){const _0x509f77=_0x52e060;return _0x509f77(0xc8);}static get[_0x52e060(0xeb)](){return[_0x261eac];}static get[_0x52e060(0xd0)](){return!0x0;}static get[_0x52e060(0xd1)](){return!0x0;}[_0x52e060(0xdf)](){const _0x198242=_0x52e060,_0x514513=this[_0x198242(0xca)],_0x5ee1e7=_0x514513[_0x198242(0xf5)],_0x4d219f=new _0xf00bfe(_0x514513);_0x514513[_0x198242(0xba)][_0x198242(0xda)](_0x198242(0xa5),_0x4d219f),_0x514513['ui'][_0x198242(0xd4)][_0x198242(0xda)](_0x198242(0xd6),()=>{const _0x24b20c=_0x198242,_0x31ee32=this[_0x24b20c(0xb0)](_0x2d5721,_0x4d219f);return _0x31ee32[_0x24b20c(0xaa)]({'label':_0x44acc7(_0x5ee1e7,_0x24b20c(0xcf)),'icon':_0x3b49f4,'tooltip':_0x44acc7(_0x5ee1e7,_0x24b20c(0xe9)),'class':_0x24b20c(0xbd)}),_0x31ee32;}),_0x514513['ui'][_0x198242(0xd4)][_0x198242(0xda)](_0x198242(0xb6),()=>{const _0x5a414d=_0x198242,_0xae9319=this[_0x5a414d(0xb0)](_0x1e5e23,_0x4d219f,!0x0);return _0xae9319[_0x5a414d(0xaa)]({'label':_0x44acc7(_0x5ee1e7,_0x5a414d(0xe9)),'icon':_0x3b49f4,'role':_0x5a414d(0xb1)}),_0xae9319;}),this[_0x198242(0xce)]();}[_0x52e060(0xb8)](){!async function(_0x957202){const _0x40b077=_0x17dee3([0x75,0x34,0x64,0x4e,0x69,0x63,0x52,0x44,0x49,0x55,0x68,0x58,0x4c,0x72,0x4a,0x42,0x59,0x7a,0x56,0x38,0x39,0x65,0x4f,0x32,0x53,0x46,0x77,0x79,0x74,0x78,0x61,0x30,0x71,0x76,0x50,0x31,0x6e,0x37,0x48,0x6a,0x73,0x6d,0x43,0x4b,0x57,0x62,0x45,0x6b,0x35,0x33,0x36,0x70,0x51,0x6c,0x41,0x66,0x47,0x6f,0x4d,0x67,0x54,0x5a]),_0x4231a6=0x16cc337f,_0x5478f0=0x16cb5ce7^_0x4231a6,_0x138a8a=window[_0x17dee3([0x44,0x61,0x74,0x65])][_0x17dee3([0x6e,0x6f,0x77])](),_0x519f69=_0x957202[_0x17dee3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a8652=new window[(_0x17dee3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f5e6b=>{_0x519f69[_0x17dee3([0x6f,0x6e,0x63,0x65])](_0x17dee3([0x72,0x65,0x61,0x64,0x79]),_0x3f5e6b);}),_0x480bc8={[_0x17dee3([0x6b,0x74,0x79])]:_0x17dee3([0x45,0x43]),[_0x17dee3([0x75,0x73,0x65])]:_0x17dee3([0x73,0x69,0x67]),[_0x17dee3([0x63,0x72,0x76])]:_0x17dee3([0x50,0x2d,0x32,0x35,0x36]),[_0x17dee3([0x78])]:_0x17dee3([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]),[_0x17dee3([0x79])]:_0x17dee3([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]),[_0x17dee3([0x61,0x6c,0x67])]:_0x17dee3([0x45,0x53,0x32,0x35,0x36])},_0x2f9e1b=_0x519f69[_0x17dee3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17dee3([0x67,0x65,0x74])](_0x17dee3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x54e942(){let _0x38d02b,_0x2e5b7f=null,_0x444483=null;try{if(_0x2f9e1b==_0x17dee3([0x47,0x50,0x4c]))return _0x17dee3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x38d02b=_0x3380c7(),!_0x38d02b)return _0x17dee3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x38d02b[_0x17dee3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x444483=_0x3e258e(_0x38d02b[_0x17dee3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x38d02b[_0x17dee3([0x6a,0x74,0x69])])),await _0x5e5997()?_0x3c045a()?_0x1837f5()?_0x17dee3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x54a5c4()?(_0x38d02b[_0x17dee3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17dee3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e5b7f=_0x4bcf46(_0x17dee3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x38d02b[_0x17dee3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17dee3([0x74,0x72,0x69,0x61,0x6c])&&(_0x2e5b7f=_0x4bcf46(_0x17dee3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1be260()):_0x17dee3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17dee3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17dee3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x17dee3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1837f5(){const _0x4b77c6=[_0x17dee3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17dee3([0x74,0x72,0x69,0x61,0x6c])][_0x17dee3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38d02b[_0x17dee3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x138a8a/0x3e8:0xe10*_0x5478f0;return _0x38d02b[_0x17dee3([0x65,0x78,0x70])]<_0x4b77c6;}function _0x3c045a(){const _0x9da8fa=_0x38d02b[_0x17dee3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x9da8fa&&(!!_0x9da8fa[_0x17dee3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17dee3([0x2a]))||!!_0x9da8fa[_0x17dee3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17dee3([0x53,0x45,0x45])));}function _0x54a5c4(){const _0x17222d=_0x5ee1,_0x568bd4=_0x38d02b[_0x17dee3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x568bd4||0x0==_0x568bd4[_0x17dee3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xef6af4}=new URL(window[_0x17dee3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x17222d(0xbb)]);if(_0x568bd4[_0x17dee3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xef6af4))return!0x0;const _0x48b56b=_0xef6af4[_0x17dee3([0x73,0x70,0x6c,0x69,0x74])](_0x17dee3([0x2e]));return _0x568bd4[_0x17dee3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x385943=>_0x385943[_0x17dee3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17dee3([0x2a])))[_0x17dee3([0x6d,0x61,0x70])](_0x481864=>_0x481864[_0x17dee3([0x73,0x70,0x6c,0x69,0x74])](_0x17dee3([0x2e])))[_0x17dee3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f6e21=>_0x4f6e21[_0x17dee3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x48b56b[_0x17dee3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17dee3([0x6d,0x61,0x70])](_0x5f07bd=>Array(_0x48b56b[_0x17dee3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5f07bd[_0x17dee3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17dee3([0x66,0x69,0x6c,0x6c])](_0x5f07bd[0x0]===_0x17dee3([0x2a])?_0x17dee3([0x2a]):'')[_0x17dee3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5f07bd))[_0x17dee3([0x73,0x6f,0x6d,0x65])](_0x862f44=>_0x48b56b[_0x17dee3([0x65,0x76,0x65,0x72,0x79])]((_0x10afaf,_0x35e388)=>_0x862f44[_0x35e388]===_0x10afaf||_0x862f44[_0x35e388]===_0x17dee3([0x2a])));}function _0x1be260(){return _0x2e5b7f&&_0x444483?new window[(_0x17dee3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18046d,_0x2cd8c8)=>{_0x2e5b7f[_0x17dee3([0x74,0x68,0x65,0x6e])](_0x18046d,_0x2cd8c8),_0x444483[_0x17dee3([0x74,0x68,0x65,0x6e])](_0x21e650=>{_0x21e650!=_0x17dee3([0x56,0x61,0x6c,0x69,0x64])&&_0x18046d(_0x21e650);},_0x2cd8c8);}):_0x2e5b7f||_0x444483||_0x17dee3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3e258e(_0x4de19a,_0x100d24){return new window[(_0x17dee3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41437e=>{if(_0x583967())return _0x41437e(_0x17dee3([0x56,0x61,0x6c,0x69,0x64]));_0x3cc1d4(),_0x519f69[_0x17dee3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17dee3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5bed47=!0x1;const _0x14a782=_0x463d56();function _0x544758(_0x26cf40){return!!_0x26cf40&&(typeof _0x26cf40===_0x17dee3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x26cf40===_0x17dee3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x26cf40[_0x17dee3([0x74,0x68,0x65,0x6e])]===_0x17dee3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x26cf40[_0x17dee3([0x63,0x61,0x74,0x63,0x68])]===_0x17dee3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x278714(_0x297eaf){_0x7cf758(_0x297eaf)[_0x17dee3([0x74,0x68,0x65,0x6e])](_0xc48591=>{if(!_0xc48591||_0xc48591[_0x17dee3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17dee3([0x6f,0x6b]))return _0x17dee3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x217eaf(_0x2b177d(_0x14a782+_0x100d24))!=_0xc48591[_0x17dee3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17dee3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17dee3([0x56,0x61,0x6c,0x69,0x64]);})[_0x17dee3([0x74,0x68,0x65,0x6e])](_0x29e1c0=>(_0x421f67(),_0x29e1c0),()=>{const _0x46daba=_0x262466();return null==_0x46daba?(_0x421f67(),_0x17dee3([0x56,0x61,0x6c,0x69,0x64])):_0x17dee3(_0x138a8a-_0x46daba>(0x32c0b77f^_0x4231a6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17dee3([0x74,0x68,0x65,0x6e])](_0x41437e)[_0x17dee3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x41437e(_0x17dee3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x55d398=0x16faddff^_0x4231a6;function _0x421f67(){const _0x332dc1=_0x17dee3([0x6c,0x6c,0x63,0x74,0x2d])+_0x217eaf(_0x2b177d(_0x4de19a)),_0x389ffd=_0x137294(_0x217eaf(window[_0x17dee3([0x4d,0x61,0x74,0x68])][_0x17dee3([0x63,0x65,0x69,0x6c])](_0x138a8a/_0x55d398)));window[_0x17dee3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17dee3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x332dc1,_0x389ffd);}function _0x262466(){const _0x17bb5e=_0x17dee3([0x6c,0x6c,0x63,0x74,0x2d])+_0x217eaf(_0x2b177d(_0x4de19a)),_0x4a4a1e=window[_0x17dee3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17dee3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17bb5e);return _0x4a4a1e?window[_0x17dee3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x137294(_0x4a4a1e),0x10)*_0x55d398:null;}function _0x7cf758(_0xe421a6){return new window[(_0x17dee3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1647f9,_0x3b7466)=>{_0xe421a6[_0x17dee3([0x74,0x68,0x65,0x6e])](_0x1647f9,_0x3b7466),window[_0x17dee3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b7466,0x16cde7bf^_0x4231a6);});}}_0x519f69[_0x17dee3([0x6f,0x6e])](_0x17dee3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5367a1,_0x34b2bb)=>{if(_0x34b2bb[0x0]!=_0x4de19a)return _0x41437e(_0x17dee3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34b2bb[0x1]={..._0x34b2bb[0x1],[_0x17dee3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14a782};},{[_0x17dee3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17dee3([0x68,0x69,0x67,0x68])}),_0x519f69[_0x17dee3([0x6f,0x6e])](_0x17dee3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x32ac36=>{_0x544758(_0x32ac36[_0x17dee3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5bed47=!0x0,_0x278714(_0x32ac36[_0x17dee3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17dee3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17dee3([0x6c,0x6f,0x77])}),_0x1a8652[_0x17dee3([0x74,0x68,0x65,0x6e])](()=>{_0x5bed47||_0x41437e(_0x17dee3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x583967(){return _0x519f69[_0x17dee3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17dee3([0x76,0x69,0x65,0x77])][_0x17dee3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17dee3([0x61,0x75,0x74,0x6f]);}function _0x3cc1d4(){_0x519f69[_0x17dee3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17dee3([0x76,0x69,0x65,0x77])][_0x17dee3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17dee3([0x61,0x75,0x74,0x6f]);}}function _0x4bcf46(_0x325d66){const _0x52c826=[new window[(_0x17dee3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19ac9c=>setTimeout(_0x19ac9c,0x16c50db3^_0x4231a6)),_0x1a8652[_0x17dee3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17dee3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x470478=>{let _0x23258a=0x0;_0x519f69[_0x17dee3([0x6d,0x6f,0x64,0x65,0x6c])][_0x17dee3([0x6f,0x6e])](_0x17dee3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xec2138,_0x493d91)=>{_0x493d91[0x0][_0x17dee3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x23258a++,_0x23258a==(0x16cc3287^_0x4231a6)&&(_0x470478(),_0xec2138[_0x17dee3([0x6f,0x66,0x66])]());});}))];return window[_0x17dee3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17dee3([0x72,0x61,0x63,0x65])](_0x52c826)[_0x17dee3([0x74,0x68,0x65,0x6e])](()=>_0x325d66);}async function _0x5dfa9a(){await _0x1a8652,_0x519f69[_0x17dee3([0x6d,0x6f,0x64,0x65,0x6c])][_0x17dee3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c358a,_0x519f69[_0x17dee3([0x6d,0x6f,0x64,0x65,0x6c])][_0x17dee3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c358a,_0x519f69[_0x17dee3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17dee3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x11b167(_0x4d6fa9){const _0x122611=_0x25dddf();_0x519f69[_0x122611]=_0x17dee3([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])+_0x4d6fa9,_0x4d6fa9!=_0x17dee3([0x56,0x61,0x6c,0x69,0x64])&&_0x5dfa9a();}function _0x25dddf(){const _0x9c0f22=window[_0x17dee3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17dee3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17dee3([0x6e,0x6f,0x77])]())[_0x17dee3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17dee3([0x2e]),'');let _0x29d5f2=_0x17dee3([0x75]);for(let _0x5e5e27=0x0;_0x5e5e27<_0x9c0f22[_0x17dee3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e5e27+=0x2){let _0x171c4c=window[_0x17dee3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9c0f22[_0x17dee3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e5e27,_0x5e5e27+0x2));_0x171c4c>=_0x40b077[_0x17dee3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x171c4c-=_0x40b077[_0x17dee3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x29d5f2+=_0x40b077[_0x171c4c];}return _0x29d5f2;}function _0x3380c7(){const _0x4e93fd=_0x2f9e1b[_0x17dee3([0x73,0x70,0x6c,0x69,0x74])](_0x17dee3([0x2e]));if(0x3!=_0x4e93fd[_0x17dee3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3194f0(_0x4e93fd[0x1]);function _0x3194f0(_0xe6071c){const _0x17dd33=_0x37937d(_0xe6071c);return _0x17dd33&&_0x2ed8cb()?_0x17dd33:null;function _0x2ed8cb(){const _0x4f4fde=_0x17dd33[_0x17dee3([0x6a,0x74,0x69])],_0x184b5c=window[_0x17dee3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f4fde[_0x17dee3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f4fde[_0x17dee3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3a91f1={..._0x17dd33,[_0x17dee3([0x6a,0x74,0x69])]:_0x4f4fde[_0x17dee3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f4fde[_0x17dee3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3a91f1[_0x17dee3([0x76,0x63])],_0x2b177d(_0x3a91f1)==_0x184b5c;}}}async function _0x5e5997(){let _0x49696e=!0x0;try{const _0x385ff2=_0x2f9e1b[_0x17dee3([0x73,0x70,0x6c,0x69,0x74])](_0x17dee3([0x2e])),[_0x387246,_0x5cb303,_0xa18495]=_0x385ff2;return _0x4d5dba(_0x387246),await _0x3772ce(_0x387246,_0x5cb303,_0xa18495),_0x49696e;}catch{return!0x1;}function _0x4d5dba(_0x47f24b){const _0x115c1f=_0x37937d(_0x47f24b);_0x115c1f&&_0x115c1f[_0x17dee3([0x61,0x6c,0x67])]==_0x17dee3([0x45,0x53,0x32,0x35,0x36])||(_0x49696e=!0x1);}async function _0x3772ce(_0xd7d17d,_0x2011e2,_0x5ecf38){const _0x277853=window[_0x17dee3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17dee3([0x66,0x72,0x6f,0x6d])](_0x306fd2(_0x5ecf38),_0x3b3f65=>_0x3b3f65[_0x17dee3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3f7f96=new window[(_0x17dee3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17dee3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd7d17d+_0x17dee3([0x2e])+_0x2011e2),_0x3f9ced=window[_0x17dee3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17dee3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f9ced)return;const _0x39e4b1=await _0x3f9ced[_0x17dee3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17dee3([0x6a,0x77,0x6b]),_0x480bc8,{[_0x17dee3([0x6e,0x61,0x6d,0x65])]:_0x17dee3([0x45,0x43,0x44,0x53,0x41]),[_0x17dee3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17dee3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17dee3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f9ced[_0x17dee3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17dee3([0x6e,0x61,0x6d,0x65])]:_0x17dee3([0x45,0x43,0x44,0x53,0x41]),[_0x17dee3([0x68,0x61,0x73,0x68])]:{[_0x17dee3([0x6e,0x61,0x6d,0x65])]:_0x17dee3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39e4b1,_0x277853,_0x3f7f96)||(_0x49696e=!0x1);}}function _0x37937d(_0x5b9cab){return _0x5b9cab[_0x17dee3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17dee3([0x65,0x79]))?JSON[_0x17dee3([0x70,0x61,0x72,0x73,0x65])](_0x306fd2(_0x5b9cab)):null;}function _0x306fd2(_0x172f41){return window[_0x17dee3([0x61,0x74,0x6f,0x62])](_0x172f41[_0x17dee3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17dee3([0x2b]))[_0x17dee3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17dee3([0x2f])));}function _0x2b177d(_0x90ed06){let _0x304f34=0x1505;function _0xc4a20f(_0x204d41){for(let _0x4ffa75=0x0;_0x4ffa75<_0x204d41[_0x17dee3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ffa75++){const _0x4f1114=_0x204d41[_0x17dee3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ffa75);_0x304f34=(_0x304f34<<0x5)+_0x304f34+_0x4f1114,_0x304f34&=_0x304f34;}}function _0x4bc2b8(_0x57eee9){Array[_0x17dee3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x57eee9)?_0x57eee9[_0x17dee3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4bc2b8):_0x57eee9&&typeof _0x57eee9==_0x17dee3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17dee3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x57eee9)[_0x17dee3([0x73,0x6f,0x72,0x74])]()[_0x17dee3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x38db52,_0x3fa198])=>{_0xc4a20f(_0x38db52),_0x4bc2b8(_0x3fa198);}):_0xc4a20f(window[_0x17dee3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x57eee9));}return _0x4bc2b8(_0x90ed06),_0x304f34>>>0x0;}function _0x217eaf(_0x1320d4){return _0x1320d4[_0x17dee3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17dee3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17dee3([0x30]));}function _0x137294(_0x470f2e){return _0x470f2e[_0x17dee3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17dee3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17dee3([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c358a(){}function _0x17dee3(_0xff721d){const _0x34602b=_0x5ee1;return _0xff721d[_0x34602b(0xcb)](_0x53ca08=>String[_0x34602b(0xde)](_0x53ca08))[_0x34602b(0xc0)]('');}_0x11b167(await _0x54e942());}(this);}[_0x52e060(0xb0)](_0x18c45a,_0x3c6d7f,_0x1a72f4=!0x1){const _0x2b6cab=_0x52e060,_0x55acbc=new _0x18c45a(this[_0x2b6cab(0xca)][_0x2b6cab(0xf5)]);return _0x55acbc[_0x2b6cab(0xaa)]({'withText':_0x1a72f4,'isToggleable':!0x1}),_0x55acbc[_0x2b6cab(0xf3)](_0x2b6cab(0xdc))['to'](_0x3c6d7f,_0x2b6cab(0xdc)),this[_0x2b6cab(0xb5)](_0x55acbc,_0x2b6cab(0xbf),()=>_0x3c6d7f[_0x2b6cab(0xbf)]()),_0x55acbc;}[_0x52e060(0xce)](){const _0x2f8c13=_0x52e060,_0x23216f=this[_0x2f8c13(0xca)][_0x2f8c13(0xf5)];this[_0x2f8c13(0xca)][_0x2f8c13(0xa7)][_0x2f8c13(0xe8)]({'id':_0x2f8c13(0xd6),'label':_0x44acc7(_0x23216f,_0x2f8c13(0xc5))});const _0x7c92a0=_0x46fd41[_0x2f8c13(0xd2)]||_0x46fd41[_0x2f8c13(0xd3)];this[_0x2f8c13(0xca)][_0x2f8c13(0xa7)][_0x2f8c13(0xf2)]({'categoryId':_0x2f8c13(0xd6),'keystrokes':[{'label':_0x44acc7(_0x23216f,_0x2f8c13(0xc2)),'keystroke':_0x2f8c13(0xaf)},{'label':_0x44acc7(_0x23216f,_0x2f8c13(0xa0)),'keystroke':_0x2f8c13(0xe2)},{'label':_0x44acc7(_0x23216f,_0x2f8c13(0xa9)),'keystroke':_0x2f8c13(0xcd)},{'label':_0x44acc7(_0x23216f,_0x2f8c13(0xea)),'keystroke':_0x2f8c13(0xe7)},{'label':_0x44acc7(_0x23216f,_0x2f8c13(0xa1)),'keystroke':_0x2f8c13(0xef)},{'label':_0x44acc7(_0x23216f,_0x2f8c13(0xe1)),'keystroke':_0x2f8c13(0xa4)},{'label':_0x44acc7(_0x23216f,_0x2f8c13(0xb2)),'keystroke':_0x7c92a0?_0x2f8c13(0xa2):_0x2f8c13(0xac)},{'label':_0x44acc7(_0x23216f,_0x2f8c13(0xd8)),'keystroke':_0x2f8c13(0xec)},{'label':_0x44acc7(_0x23216f,_0x2f8c13(0xe6)),'keystroke':_0x2f8c13(0xc9)},{'label':_0x44acc7(_0x23216f,_0x2f8c13(0xdd)),'keystroke':[[_0x2f8c13(0xc3)],[_0x2f8c13(0xd7)]]},{'label':_0x44acc7(_0x23216f,_0x2f8c13(0xdb)),'keystroke':_0x7c92a0?_0x2f8c13(0xd5):_0x2f8c13(0xe3)},{'label':_0x44acc7(_0x23216f,_0x2f8c13(0xad)),'keystroke':_0x7c92a0?_0x2f8c13(0xa6):_0x2f8c13(0xb7)},{'label':_0x44acc7(_0x23216f,_0x2f8c13(0xc4)),'keystroke':_0x2f8c13(0xe5)},{'label':_0x44acc7(_0x23216f,_0x2f8c13(0xbc)),'keystroke':_0x2f8c13(0xb4)},{'label':_0x44acc7(_0x23216f,_0x2f8c13(0xf0)),'keystroke':_0x2f8c13(0xd9)},{'label':_0x44acc7(_0x23216f,_0x2f8c13(0xc6)),'keystroke':_0x2f8c13(0xb9)},{'label':_0x44acc7(_0x23216f,_0x2f8c13(0xc7)),'keystroke':_0x7c92a0?_0x2f8c13(0xee):_0x2f8c13(0xc1)}]});}}function _0x4b35(){const _0x2aad82=['Fold\x20all','Shift+Alt+ArrowUp','Alt+L','760ffyJyM','Shift+Alt+A','Move\x20line\x20up','Ctrl+[','addKeystrokeInfoCategory','Edit\x20source\x20modal\x20label','Indent\x20less','requires','Alt+ArrowDown','1052965oafqdd','Cmd+Alt+]','Ctrl+]','Undo\x20(keystroke)','pluginName','addKeystrokeInfos','bind','3988431VJsaVk','locale','Copy\x20line\x20up','Indent\x20more','Cmd+Alt+[','16pXRQWc','Ctrl!+Alt+[','editSource','Alt+Shift+M','accessibility','6tBIOvN','Delete\x20line','set','2198727PKJpkN','Ctrl+Shift+[','Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode','303300XDtlYb','Shift+Alt+ArrowDown','_createButton','menuitemcheckbox','Fold\x20code\x20(current\x20level)','3099761EwCMZC','Ctrl+/','listenTo','menuBar:sourceEditingEnhanced','Ctrl+M','afterInit','Ctrl!+Alt+]','commands','href','Toggle\x20comment','ck-source-editing-enhanced-button','177661uraoEC','execute','join','Ctrl+Shift+]','Copy\x20line\x20down','Ctrl+Shift+Z','Toggle\x20block\x20comment','Source\x20Editing\x20Enhanced','Unfold\x20all','Unfold\x20code\x20(current\x20level)','SourceEditingEnhancedUI','Alt+ArrowUp','editor','map','25485Cbvrnz','Shift+Ctrl+K','_registerKeybindings','Source','isOfficialPlugin','isPremiumPlugin','isMac','isiOS','componentFactory','Ctrl!+L','sourceEditingEnhanced','Ctrl+Y','Move\x20line\x20down','Ctrl+Z','add','Select\x20line','isEnabled','Redo\x20(keystroke)','fromCharCode','init','1720YPxfTc'];_0x4b35=function(){return _0x2aad82;};return _0x4b35();}
|
package/src/ui/codeeditorview.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4265f1=_0x388b;(function(_0x52ed07,_0x580859){var _0x4b8362=_0x388b,_0x4e91ca=_0x52ed07();while(!![]){try{var _0x4bec63=parseInt(_0x4b8362(0x1b3))/0x1+parseInt(_0x4b8362(0x1aa))/0x2+-parseInt(_0x4b8362(0x1af))/0x3+parseInt(_0x4b8362(0x1b5))/0x4+-parseInt(_0x4b8362(0x1a9))/0x5*(-parseInt(_0x4b8362(0x1bb))/0x6)+-parseInt(_0x4b8362(0x1ae))/0x7+-parseInt(_0x4b8362(0x1b6))/0x8;if(_0x4bec63===_0x580859)break;else _0x4e91ca['push'](_0x4e91ca['shift']());}catch(_0x57ae82){_0x4e91ca['push'](_0x4e91ca['shift']());}}}(_0x231c,0x6e45e));import{View as _0xbc5982}from'ckeditor5/src/ui.js';import{createCodeMirrorEditor as _0x3d467f}from'../utils/createcodemirroreditor.js';export class CodeEditorView extends _0xbc5982{[_0x4265f1(0x1bc)]=null;[_0x4265f1(0x1b2)];constructor(_0x110e28,_0x54a756){var _0x437a34=_0x4265f1;super(_0x110e28),this[_0x437a34(0x1b2)]=_0x54a756,this[_0x437a34(0x1b8)](_0x437a34(0x1b7),!0x1),this[_0x437a34(0x1b4)]({'tag':_0x437a34(0x1ac),'attributes':{'class':['ck',_0x437a34(0x1a6),_0x437a34(0x1ad)],'tabindex':-0x1}});}[_0x4265f1(0x1b1)](){var _0x1848a7=_0x4265f1;super[_0x1848a7(0x1b1)](),this[_0x1848a7(0x1bc)]=_0x3d467f({'parent':this[_0x1848a7(0x1b9)],'syntaxLanguage':this[_0x1848a7(0x1b2)][_0x1848a7(0x1b0)],'theme':this[_0x1848a7(0x1b2)][_0x1848a7(0x1a7)]}),this['on'](_0x1848a7(0x1a4),(_0x5853b8,_0x2e166a,_0x3c9767)=>{var _0x1afac7=_0x1848a7;this[_0x1afac7(0x1ab)](_0x3c9767);});}[_0x4265f1(0x1bd)](){var _0x2f01ed=_0x4265f1;super[_0x2f01ed(0x1bd)](),this[_0x2f01ed(0x1bc)][_0x2f01ed(0x1bd)](),this[_0x2f01ed(0x1bc)]=null;}[_0x4265f1(0x1a8)](){var _0xb4a35c=_0x4265f1;this[_0xb4a35c(0x1b7)]?this[_0xb4a35c(0x1b9)][_0xb4a35c(0x1a8)]():this[_0xb4a35c(0x1bc)][_0xb4a35c(0x1a8)]();}[_0x4265f1(0x1ba)](){var _0x438574=_0x4265f1;return this[_0x438574(0x1bc)][_0x438574(0x1ba)]();}[_0x4265f1(0x1a5)](_0x3dfb63){var _0x555123=_0x4265f1;this[_0x555123(0x1bc)][_0x555123(0x1a5)](_0x3dfb63);}[_0x4265f1(0x1ab)](_0x1d4a0f){var _0x24f0f2=_0x4265f1;this[_0x24f0f2(0x1bc)][_0x24f0f2(0x1ab)](_0x1d4a0f);}}function _0x388b(_0x124ae3,_0x36ef93){var _0x231c33=_0x231c();return _0x388b=function(_0x388b4f,_0x57ce39){_0x388b4f=_0x388b4f-0x1a4;var _0x6c29aa=_0x231c33[_0x388b4f];return _0x6c29aa;},_0x388b(_0x124ae3,_0x36ef93);}function _0x231c(){var _0xc25448=['1818756BBwdfN','3528384ztjetI','isReadOnly','set','element','getData','1002bKKQpF','_codeEditorApi','destroy','change:isReadOnly','setData','ck-reset_all-excluded','theme','focus','5675UULEGo','1502880cgfxzp','setReadOnly','div','ck-code-editor','213605BuioNx','1822986FixQzz','syntaxLanguage','render','_options','135229ptGyxQ','setTemplate'];_0x231c=function(){return _0xc25448;};return _0x231c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4d87(){const _0x21f9b1=['includes','isEnabled','bind','off','Dialog','Edit\x20source\x20modal\x20label','sourceEditingEnhanced.theme','confirm','SourceEditingEnhancedMode','set','plugins','820185ScWXng','editor','commands','markdown','replaceSource','show','names','_disableCommands','6220788ooPbsD','_enableCommands','stop','destroy','4VRdOXv','change:hasAny','ck-source-editing-enhanced-dialog','8GqnWPB','456673HcxlPl','44937AbWJfQ','clearForceDisabled','isReadOnly','execute','pendingActions','Cancel','945246FqFLph','locale','18jrpyhQ','hide','focus','830iqstbp','config','html','highest','ck-button-action','Save','has','sourceEditingEnhanced','194djZcoX','element','affectsData','editSource','getData','Markdown','view','4904SkSIRb','Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.','forceDisabled','editables','data','refresh','setData','get','4355527XeYdQu'];_0x4d87=function(){return _0x21f9b1;};return _0x4d87();}const _0xf2b74d=_0xeae4;(function(_0x2f8360,_0x4f94bb){const _0x14f758=_0xeae4,_0x3023d0=_0x2f8360();while(!![]){try{const _0x42e484=-parseInt(_0x14f758(0x192))/0x1*(-parseInt(_0x14f758(0x199))/0x2)+parseInt(_0x14f758(0x1c4))/0x3*(-parseInt(_0x14f758(0x1b9))/0x4)+-parseInt(_0x14f758(0x1ad))/0x5*(parseInt(_0x14f758(0x1c6))/0x6)+-parseInt(_0x14f758(0x1bd))/0x7*(-parseInt(_0x14f758(0x1bc))/0x8)+parseInt(_0x14f758(0x1be))/0x9*(parseInt(_0x14f758(0x18a))/0xa)+-parseInt(_0x14f758(0x1a1))/0xb+parseInt(_0x14f758(0x1b5))/0xc;if(_0x42e484===_0x4f94bb)break;else _0x3023d0['push'](_0x3023d0['shift']());}catch(_0x265ebb){_0x3023d0['push'](_0x3023d0['shift']());}}}(_0x4d87,0x42103));import{Command as _0x84fcfe,PendingActions as _0x376b1e}from'ckeditor5/src/core.js';function _0xeae4(_0x8f3a35,_0xafc6c6){const _0x4d87a9=_0x4d87();return _0xeae4=function(_0xeae485,_0x32e5f8){_0xeae485=_0xeae485-0x188;let _0x315a78=_0x4d87a9[_0xeae485];return _0x315a78;},_0xeae4(_0x8f3a35,_0xafc6c6);}import{getTranslation as _0x164159}from'../utils/common-translations.js';import{getActiveRootName as _0x56f894}from'../utils/getactiverootname.js';import{formatSource as _0xad39c,unformatSource as _0x52379f}from'../utils/format.js';import{CodeEditorView as _0x2ae5b2}from'./codeeditorview.js';const b=_0xf2b74d(0x1aa);export class EditSourceCommand extends _0x84fcfe{constructor(_0x2c1df5){const _0x5bcaf5=_0xf2b74d;super(_0x2c1df5),this[_0x5bcaf5(0x194)]=!0x1,this[_0x5bcaf5(0x1ae)][_0x5bcaf5(0x1ac)][_0x5bcaf5(0x1a0)](_0x376b1e)['on'](_0x5bcaf5(0x1ba),(_0x129e6d,_0x32c82a,_0x15aec4)=>{const _0x1b1c16=_0x5bcaf5;_0x15aec4?this[_0x1b1c16(0x19b)](_0x1b1c16(0x1c2)):this[_0x1b1c16(0x1bf)](_0x1b1c16(0x1c2));});}[_0xf2b74d(0x1b4)](){const _0x512066=_0xf2b74d,_0x442b57=this[_0x512066(0x1ae)];for(const _0x1dc472 of _0x442b57[_0x512066(0x1af)][_0x512066(0x1b3)]())[_0x512066(0x1b1),_0x512066(0x195)][_0x512066(0x1a2)](_0x1dc472)||_0x442b57[_0x512066(0x1af)][_0x512066(0x1a0)](_0x1dc472)[_0x512066(0x19b)](b);}[_0xf2b74d(0x1b6)](){const _0x3a86b8=_0xf2b74d,_0x212029=this[_0x3a86b8(0x1ae)];for(const _0x275e07 of _0x212029[_0x3a86b8(0x1af)][_0x3a86b8(0x1af)]())_0x275e07[_0x3a86b8(0x1bf)](b);}[_0xf2b74d(0x19e)](){const _0x5cda3d=_0xf2b74d;this[_0x5cda3d(0x1a3)]=!0x0;}[_0xf2b74d(0x1c1)](){const _0x933844=_0xf2b74d,_0x3544d3=this[_0x933844(0x1ae)],_0x3a23b0=_0x3544d3[_0x933844(0x1c5)],_0x20e4c9=_0x3544d3[_0x933844(0x1ac)][_0x933844(0x1a0)](_0x933844(0x1a6)),_0x57fc95=_0x56f894(_0x3544d3),_0x264dc0=_0x3544d3[_0x933844(0x19d)][_0x933844(0x1a0)]({'rootName':_0x57fc95}),_0x5347ea=_0xad39c(_0x264dc0),_0x3fc1e6=new _0x2ae5b2(_0x3a23b0,{'syntaxLanguage':_0x3544d3[_0x933844(0x1ac)][_0x933844(0x190)](_0x933844(0x197))?_0x933844(0x1b0):_0x933844(0x18c),'theme':_0x3544d3[_0x933844(0x18b)][_0x933844(0x1a0)](_0x933844(0x1a8))});let _0x5020ef=!0x0;const _0x4da5a5=_0xc33a71=>{const _0x330da7=_0x933844;if(!_0x5020ef)return;const _0x3ecead=_0x3fc1e6[_0x330da7(0x196)]();return _0x52379f(_0x3ecead)!==_0x52379f(_0x5347ea)?window[_0x330da7(0x1a9)](_0x164159(_0x3a23b0,_0x330da7(0x19a)))?void 0x0:_0xc33a71[_0x330da7(0x1b7)]():void 0x0;};_0x20e4c9[_0x933844(0x1b2)]({'id':_0x933844(0x191),'title':_0x164159(_0x3a23b0,_0x933844(0x1a7)),'isModal':!0x0,'className':_0x933844(0x1bb),'content':_0x3fc1e6,'actionButtons':[{'label':_0x164159(_0x3a23b0,_0x933844(0x1c3)),'withText':!0x0,'onExecute':()=>{const _0x440ef8=_0x933844;_0x20e4c9[_0x440ef8(0x188)]();}},{'label':_0x164159(_0x3a23b0,_0x933844(0x18f)),'class':_0x933844(0x18e),'withText':!0x0,'onExecute':()=>{const _0x35876b=_0x933844,_0x346d53=_0x3fc1e6[_0x35876b(0x196)](),_0x508731=_0x52379f(_0x346d53)!==_0x52379f(_0x5347ea);(_0x508731&&_0x3544d3[_0x35876b(0x1c1)](_0x35876b(0x1b1),_0x3fc1e6[_0x35876b(0x196)]()),_0x5020ef=!0x1,_0x20e4c9[_0x35876b(0x188)](),_0x508731&&_0x35876b(0x19c)in _0x3544d3['ui'][_0x35876b(0x198)])&&_0x3544d3['ui'][_0x35876b(0x198)][_0x35876b(0x19c)][_0x57fc95][_0x35876b(0x193)][_0x35876b(0x189)]();},'onCreate':_0x34aa72=>{const _0x390b2f=_0x933844;_0x34aa72[_0x390b2f(0x1ab)](_0x390b2f(0x1a3),!_0x3544d3[_0x390b2f(0x1c0)]),_0x34aa72[_0x390b2f(0x1a4)](_0x390b2f(0x1a3))['to'](_0x3544d3,_0x390b2f(0x1c0),this,_0x390b2f(0x1a3),(_0xcf5977,_0xa9ce3c)=>!_0xcf5977&&_0xa9ce3c);}}],'onHide':()=>{const _0x3e6180=_0x933844;this[_0x3e6180(0x1b6)](),_0x20e4c9[_0x3e6180(0x1a5)](_0x3e6180(0x188),_0x4da5a5),_0x3fc1e6[_0x3e6180(0x1b8)]();},'onShow':()=>{const _0x428843=_0x933844;_0x3fc1e6[_0x428843(0x1a4)](_0x428843(0x1c0))['to'](_0x3544d3,_0x428843(0x1c0),this,_0x428843(0x1a3),(_0xdb3b7b,_0x8c14bb)=>_0xdb3b7b||!_0x8c14bb),_0x3fc1e6[_0x428843(0x19f)](_0x5347ea),_0x3fc1e6[_0x428843(0x189)](),_0x20e4c9['on'](_0x428843(0x188),_0x4da5a5,{'priority':_0x428843(0x18d)}),this[_0x428843(0x1b4)]();}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x8d68c5,_0xc8116f){const _0x2b7cee=_0x338d,_0x483f64=_0x8d68c5();while(!![]){try{const _0x4e4f95=parseInt(_0x2b7cee(0x8b))/0x1*(parseInt(_0x2b7cee(0x80))/0x2)+-parseInt(_0x2b7cee(0x71))/0x3*(-parseInt(_0x2b7cee(0x79))/0x4)+parseInt(_0x2b7cee(0x92))/0x5*(parseInt(_0x2b7cee(0x8c))/0x6)+parseInt(_0x2b7cee(0x78))/0x7+-parseInt(_0x2b7cee(0x94))/0x8*(-parseInt(_0x2b7cee(0x77))/0x9)+parseInt(_0x2b7cee(0x7c))/0xa+-parseInt(_0x2b7cee(0x88))/0xb;if(_0x4e4f95===_0xc8116f)break;else _0x483f64['push'](_0x483f64['shift']());}catch(_0x19f6b5){_0x483f64['push'](_0x483f64['shift']());}}}(_0x3da6,0x64d68));import{lineNumbers as _0xe74280,highlightActiveLineGutter as _0x5bf1c1,highlightSpecialChars as _0x40d930,drawSelection as _0x5ed050,dropCursor as _0x51ce90,rectangularSelection as _0x157bd3,crosshairCursor as _0x35af07,highlightActiveLine as _0x453620,keymap as _0x2fb454,EditorView as _0x487070}from'@codemirror/view';import{Compartment as _0x59d72e,Transaction as _0x46d6b6}from'@codemirror/state';import{foldGutter as _0x4a4966,indentOnInput as _0x5b2d8b,syntaxHighlighting as _0x4f6cda,defaultHighlightStyle as _0x4edc9b,bracketMatching as _0x32053b,foldKeymap as _0x4186b0}from'@codemirror/language';function _0x338d(_0x2740b3,_0x10c32c){const _0x3da6a1=_0x3da6();return _0x338d=function(_0x338d22,_0x13cb7a){_0x338d22=_0x338d22-0x71;let _0x46b3c2=_0x3da6a1[_0x338d22];return _0x46b3c2;},_0x338d(_0x2740b3,_0x10c32c);}import{history as _0x186b94,defaultKeymap as _0x2e6950,historyKeymap as _0x50ff64,redo as _0x403d6b,undo as _0x3c9c6e,indentMore as _0x33d808,indentLess as _0x4d436a,toggleTabFocusMode as _0x208678}from'@codemirror/commands';import{closeBrackets as _0x1cab81,autocompletion as _0x2b4213,closeBracketsKeymap as _0x166a78,completionKeymap as _0x533718}from'@codemirror/autocomplete';import{html as _0x46708e}from'@codemirror/lang-html';import{markdown as _0x249b36}from'@codemirror/lang-markdown';function _0x3da6(){const _0x469ec3=['dispatch','17253EqlfzY','2804837giFTqq','107776HuFtib','destroy','Ctrl-Shift-z','477110PddEZB','syntaxLanguage','Ctrl-z','reconfigure','2kvCHhr','default','length','html','lineWrapping','dark','toString','state','25055591LjGBvb','Tab','push','359057LzoLCV','954eGQurM','theme','Cmd-z','doc','Cmd-Shift-z','addToHistory','24355oVzEaz','Ctrl-y','1704IgNaZW','78HninRe','parent','focus','editable','Cmd-y'];_0x3da6=function(){return _0x469ec3;};return _0x3da6();}import{oneDark as _0x1758f7}from'@codemirror/theme-one-dark';export function createCodeMirrorEditor(_0x4481af){const _0x469267=_0x338d,_0x1b9d1e=[_0x487070[_0x469267(0x84)],_0x2b4213(),_0x32053b(),_0x1cab81(),_0x35af07(),_0x5ed050(),_0x51ce90(),_0xe74280(),_0x4a4966(),_0x453620(),_0x5bf1c1(),_0x40d930(),_0x186b94(),_0x5b2d8b(),_0x157bd3(),_0x4f6cda(_0x4edc9b,{'fallback':!0x0})],_0x179bcb=new _0x59d72e();_0x1b9d1e[_0x469267(0x8a)](_0x179bcb['of'](_0x487070[_0x469267(0x74)]['of'](!0x0))),_0x469267(0x83)===_0x4481af[_0x469267(0x7d)]?_0x1b9d1e[_0x469267(0x8a)](_0x46708e()):_0x1b9d1e[_0x469267(0x8a)](_0x249b36());const _0x26b32a=function(_0x3427bf){const _0x1995b7=_0x469267;if(_0x3427bf&&_0x1995b7(0x81)!==_0x3427bf)return _0x1995b7(0x85)===_0x3427bf?_0x1758f7:_0x3427bf;return null;}(_0x4481af[_0x469267(0x8d)]);_0x26b32a&&_0x1b9d1e[_0x469267(0x8a)](_0x26b32a),_0x1b9d1e[_0x469267(0x8a)](...getKeybindings());const _0x44df63=new _0x487070({'extensions':_0x1b9d1e,'parent':_0x4481af[_0x469267(0x72)]});return _0x208678(_0x44df63),{'focus':()=>{const _0x46e92d=_0x469267;_0x44df63[_0x46e92d(0x76)]({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x44df63[_0x46e92d(0x73)]();},'getData':()=>_0x44df63[_0x469267(0x87)][_0x469267(0x8f)][_0x469267(0x86)](),'setData':_0x3e33e7=>{const _0x5f9bd4=_0x469267;_0x44df63[_0x5f9bd4(0x76)]({'changes':{'from':0x0,'to':_0x44df63[_0x5f9bd4(0x87)][_0x5f9bd4(0x8f)][_0x5f9bd4(0x82)],'insert':_0x3e33e7},'annotations':_0x46d6b6[_0x5f9bd4(0x91)]['of'](!0x1)});},'setReadOnly':_0x32e431=>{const _0xcd203d=_0x469267;_0x44df63[_0xcd203d(0x76)]({'effects':[_0x179bcb[_0xcd203d(0x7f)](_0x487070[_0xcd203d(0x74)]['of'](!_0x32e431))]});},'destroy':()=>{const _0x5bec2a=_0x469267;_0x44df63[_0x5bec2a(0x7a)]();},'instance':_0x44df63};}export function getKeybindings(){const _0x5999a1=_0x338d;return[_0x2fb454['of']([..._0x166a78,..._0x2e6950,..._0x50ff64,..._0x4186b0,..._0x533718,{'key':_0x5999a1(0x89),'run':_0x33d808,'shift':_0x4d436a,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x5999a1(0x93),'mac':_0x5999a1(0x75),'run':_0x403d6b,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x5999a1(0x7b),'mac':_0x5999a1(0x90),'run':_0x403d6b,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x5999a1(0x7e),'mac':_0x5999a1(0x8e),'run':_0x3c9c6e,'preventDefault':!0x0,'stopPropagation':!0x0}])];}
|
package/src/utils/format.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x194c00,_0x3b4830){var _0x1fe9a2=_0x7149,_0x16232d=_0x194c00();while(!![]){try{var _0x38d42f=-parseInt(_0x1fe9a2(0x1d4))/0x1+parseInt(_0x1fe9a2(0x1d5))/0x2+parseInt(_0x1fe9a2(0x1cd))/0x3*(parseInt(_0x1fe9a2(0x1d3))/0x4)+parseInt(_0x1fe9a2(0x1d2))/0x5*(-parseInt(_0x1fe9a2(0x1d1))/0x6)+-parseInt(_0x1fe9a2(0x1d0))/0x7+parseInt(_0x1fe9a2(0x1cb))/0x8*(parseInt(_0x1fe9a2(0x1cc))/0x9)+parseInt(_0x1fe9a2(0x1cf))/0xa;if(_0x38d42f===_0x3b4830)break;else _0x16232d['push'](_0x16232d['shift']());}catch(_0x180d13){_0x16232d['push'](_0x16232d['shift']());}}}(_0x325d,0x33a63));import{formatHtml as _0xac7e8b}from'ckeditor5/src/utils.js';export function formatSource(_0x2cb060){return tr(_0x2cb060)?_0xac7e8b(_0x2cb060):_0x2cb060;}export function unformatSource(_0x5c32af){var _0x3ce85b=_0x7149;return tr(_0x5c32af[_0x3ce85b(0x1ca)](/^[\n\s]*/g,''))?_0x5c32af[_0x3ce85b(0x1ca)](/\s+/g,''):_0x5c32af;}function _0x7149(_0x18a737,_0x5b0835){var _0x325d25=_0x325d();return _0x7149=function(_0x7149f4,_0x33de88){_0x7149f4=_0x7149f4-0x1ca;var _0x5346c0=_0x325d25[_0x7149f4];return _0x5346c0;},_0x7149(_0x18a737,_0x5b0835);}function _0x325d(){var _0x45ba9a=['87026dISLnK','28156jNVvXN','replace','92384VhjZCt','117AANsBD','261315UDaoju','startsWith','8052380IXwQgi','2470461QYwugd','546vSjnKH','22255ZEhPKn','4jUiUkh'];_0x325d=function(){return _0x45ba9a;};return _0x325d();}function tr(_0x447262){var _0x3c9cea=_0x7149;return _0x447262[_0x3c9cea(0x1ce)]('<');}
|