@ckeditor/ckeditor5-source-editing-enhanced 46.1.1-alpha.1 → 46.1.1-alpha.2
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 _0xf1ebea,PendingActions as _0x44eb8a,Plugin as _0x56a566}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xec401e,formatHtml as _0x25d744,env as _0x18ecde,uid as _0x2074a3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x4406c0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x1e24a3,ButtonView as _0x2336f3,MenuBarMenuListItemButtonView as _0x3dfee6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0xed37a3,crosshairCursor as _0x414afb,drawSelection as _0x5599c9,dropCursor as _0x53e6a9,lineNumbers as _0x279c36,highlightActiveLine as _0x5c13dd,highlightActiveLineGutter as _0x3958bb,highlightSpecialChars as _0x118835,rectangularSelection as _0x14745b,keymap as _0xc9fb9f}from'@codemirror/view';import{Compartment as _0x1a1fff,Transaction as _0x1ac48b}from'@codemirror/state';import{bracketMatching as _0x4f4616,foldGutter as _0x47d431,indentOnInput as _0x2be40d,syntaxHighlighting as _0x1a5eb4,defaultHighlightStyle as _0x3bcde2,foldKeymap as _0x54521f}from'@codemirror/language';import{toggleTabFocusMode as _0x19b2b1,history as _0xa74d8e,defaultKeymap as _0x2c386e,historyKeymap as _0x19fa74,indentLess as _0x1ec906,indentMore as _0x5f0237,redo as _0x5ea7ce,undo as _0x38a1d8}from'@codemirror/commands';import{autocompletion as _0x359140,closeBrackets as _0x1754d4,closeBracketsKeymap as _0x4ace1e,completionKeymap as _0x1a7da0}from'@codemirror/autocomplete';import{html as _0x4a427b}from'@codemirror/lang-html';import{markdown as _0x151b33}from'@codemirror/lang-markdown';import{oneDark as _0x4e7c1e}from'@codemirror/theme-one-dark';function w(_0x33f5dc,_0x51f0d9){const t=_0x33f5dc['t'];switch(_0x51f0d9){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 _0x51f0d9;}}function r(_0xcddd02){const _0x54be22=_0xcddd02['editing']['view']['document']['roots'],_0xbf5e31=_0x54be22['length'];if(0x0===_0xbf5e31)throw new _0xec401e('source-editing-enhanced-editor-no-root',_0xcddd02);if(0x1===_0xbf5e31)return _0x54be22['first']['rootName'];return Array['from'](_0xcddd02['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function g(_0x58ad29){return tr(_0x58ad29['replace'](/^[\n\s]*/g,''))?_0x58ad29['replace'](/\s+/g,''):_0x58ad29;}function tr(_0x4f77dc){return _0x4f77dc['startsWith']('<');}function p(_0x5d30f0){const _0x257c1b=[_0xed37a3['lineWrapping'],_0x359140(),_0x4f4616(),_0x1754d4(),_0x414afb(),_0x5599c9(),_0x53e6a9(),_0x279c36(),_0x47d431(),_0x5c13dd(),_0x3958bb(),_0x118835(),_0xa74d8e(),_0x2be40d(),_0x14745b(),_0x1a5eb4(_0x3bcde2,{'fallback':!0x0})],_0x11972d=new _0x1a1fff();_0x257c1b['push'](_0x11972d['of'](_0xed37a3['editable']['of'](!0x0))),'html'===_0x5d30f0['syntaxLanguage']?_0x257c1b['push'](_0x4a427b()):_0x257c1b['push'](_0x151b33());const _0x180ec5=function(_0x4fa40f){if(_0x4fa40f&&'default'!==_0x4fa40f)return'dark'===_0x4fa40f?_0x4e7c1e:_0x4fa40f;return null;}(_0x5d30f0['theme']);_0x180ec5&&_0x257c1b['push'](_0x180ec5),_0x257c1b['push'](_0xc9fb9f['of']([..._0x4ace1e,..._0x2c386e,..._0x19fa74,..._0x54521f,..._0x1a7da0,{'key':'Tab','run':_0x5f0237,'shift':_0x1ec906,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x5ea7ce,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x5ea7ce,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x38a1d8,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x890e4b=new _0xed37a3({'extensions':_0x257c1b,'parent':_0x5d30f0['parent']});return _0x19b2b1(_0x890e4b),{'focus':()=>{_0x890e4b['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x890e4b['focus']();},'getData':()=>_0x890e4b['state']['doc']['toString'](),'setData':_0x1df594=>{_0x890e4b['dispatch']({'changes':{'from':0x0,'to':_0x890e4b['state']['doc']['length'],'insert':_0x1df594},'annotations':_0x1ac48b['addToHistory']['of'](!0x1)});},'setReadOnly':_0x48341c=>{_0x890e4b['dispatch']({'effects':[_0x11972d['reconfigure'](_0xed37a3['editable']['of'](!_0x48341c))]});},'destroy':()=>{_0x890e4b['destroy']();},'instance':_0x890e4b};}class E extends _0x1e24a3{['_codeEditorApi']=null;['_options'];constructor(_0x2627e6,_0x431464){super(_0x2627e6),this['_options']=_0x431464,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',(_0x48834e,_0x455f83,_0x4edd74)=>{this['setReadOnly'](_0x4edd74);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x394c83){this['_codeEditorApi']['setData'](_0x394c83);}['setReadOnly'](_0x10a9a3){this['_codeEditorApi']['setReadOnly'](_0x10a9a3);}}const b='SourceEditingEnhancedMode';class d extends _0xf1ebea{constructor(_0x4f0c8f){super(_0x4f0c8f),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x44eb8a)['on']('change:hasAny',(_0x400ce3,_0x3eccb9,_0x13a3cf)=>{_0x13a3cf?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x31f7c6=this['editor'];for(const _0x3825af of _0x31f7c6['commands']['names']())['replaceSource','editSource']['includes'](_0x3825af)||_0x31f7c6['commands']['get'](_0x3825af)['forceDisabled'](b);}['_enableCommands'](){const _0x518217=this['editor'];for(const _0x4913a3 of _0x518217['commands']['commands']())_0x4913a3['clearForceDisabled'](b);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4d3d71=this['editor'],_0x518b2f=_0x4d3d71['locale'],_0x31d7f3=_0x4d3d71['plugins']['get']('Dialog'),_0x45763c=r(_0x4d3d71),_0x4efa07=_0x4d3d71['data']['get']({'rootName':_0x45763c}),_0x5290a8=tr(_0x2f4509=_0x4efa07)?_0x25d744(_0x2f4509):_0x2f4509;var _0x2f4509;const _0x1dbefd=new E(_0x518b2f,{'syntaxLanguage':_0x4d3d71['plugins']['has']('Markdown')?'markdown':'html','theme':_0x4d3d71['config']['get']('sourceEditingEnhanced.theme')});let _0x2a645f=!0x0;const _0x562cd2=_0x3bf7f0=>{if(!_0x2a645f)return;return g(_0x1dbefd['getData']())!==g(_0x5290a8)?window['confirm'](w(_0x518b2f,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x3bf7f0['stop']():void 0x0;};_0x31d7f3['show']({'id':'sourceEditingEnhanced','title':w(_0x518b2f,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x1dbefd,'actionButtons':[{'label':w(_0x518b2f,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x31d7f3['hide']();}},{'label':w(_0x518b2f,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x48cac5=g(_0x1dbefd['getData']())!==g(_0x5290a8);(_0x48cac5&&_0x4d3d71['execute']('replaceSource',_0x1dbefd['getData']()),_0x2a645f=!0x1,_0x31d7f3['hide'](),_0x48cac5&&'editables'in _0x4d3d71['ui']['view'])&&_0x4d3d71['ui']['view']['editables'][_0x45763c]['element']['focus']();},'onCreate':_0x2084d8=>{_0x2084d8['set']('isEnabled',!_0x4d3d71['isReadOnly']),_0x2084d8['bind']('isEnabled')['to'](_0x4d3d71,'isReadOnly',this,'isEnabled',(_0x43372a,_0x68000a)=>!_0x43372a&&_0x68000a);}}],'onHide':()=>{this['_enableCommands'](),_0x31d7f3['off']('hide',_0x562cd2),_0x1dbefd['destroy']();},'onShow':()=>{_0x1dbefd['bind']('isReadOnly')['to'](_0x4d3d71,'isReadOnly',this,'isEnabled',(_0xc70db7,_0x3f4b30)=>_0xc70db7||!_0x3f4b30),_0x1dbefd['setData'](_0x5290a8),_0x1dbefd['focus'](),_0x31d7f3['on']('hide',_0x562cd2,{'priority':'highest'}),this['_disableCommands']();}});}}class a extends _0x56a566{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x44eb8a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3d5cf9=this['editor'],_0x331f50=_0x3d5cf9['locale'],_0x56c262=new d(_0x3d5cf9);_0x3d5cf9['commands']['add']('editSource',_0x56c262),_0x3d5cf9['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x1e9364=this['_createButton'](_0x2336f3,_0x56c262);return _0x1e9364['set']({'label':w(_0x331f50,'Source'),'icon':_0x4406c0,'tooltip':w(_0x331f50,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x1e9364;}),_0x3d5cf9['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x4631df=this['_createButton'](_0x3dfee6,_0x56c262,!0x0);return _0x4631df['set']({'label':w(_0x331f50,'Edit\x20source\x20modal\x20label'),'icon':_0x4406c0,'role':'menuitemcheckbox'}),_0x4631df;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x4f5c30){const _0x4056c5=_0x141fa0([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0x1d93b7=0x305505ed,_0x17f5aa=0x305276ad^_0x1d93b7,_0x558286=window[_0x141fa0([0x44,0x61,0x74,0x65])][_0x141fa0([0x6e,0x6f,0x77])](),_0x36925c=_0x4f5c30[_0x141fa0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x418c71=new window[(_0x141fa0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6edbc1=>{_0x36925c[_0x141fa0([0x6f,0x6e,0x63,0x65])](_0x141fa0([0x72,0x65,0x61,0x64,0x79]),_0x6edbc1);}),_0x5990b1={[_0x141fa0([0x6b,0x74,0x79])]:_0x141fa0([0x45,0x43]),[_0x141fa0([0x75,0x73,0x65])]:_0x141fa0([0x73,0x69,0x67]),[_0x141fa0([0x63,0x72,0x76])]:_0x141fa0([0x50,0x2d,0x32,0x35,0x36]),[_0x141fa0([0x78])]:_0x141fa0([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]),[_0x141fa0([0x79])]:_0x141fa0([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]),[_0x141fa0([0x61,0x6c,0x67])]:_0x141fa0([0x45,0x53,0x32,0x35,0x36])},_0x5450d8=_0x36925c[_0x141fa0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x141fa0([0x67,0x65,0x74])](_0x141fa0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x208abe(){let _0x1ce8e4,_0x152df2=null,_0x28ab43=null;try{if(_0x5450d8==_0x141fa0([0x47,0x50,0x4c]))return _0x141fa0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1ce8e4=_0x16186c(),!_0x1ce8e4)return _0x141fa0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1ce8e4[_0x141fa0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x28ab43=_0x3817a1(_0x1ce8e4[_0x141fa0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1ce8e4[_0x141fa0([0x6a,0x74,0x69])])),await _0x48aee1()?_0x226840()?_0x45e89b()?_0x141fa0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x181532()?(_0x1ce8e4[_0x141fa0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x141fa0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x152df2=_0x21efdc(_0x141fa0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1ce8e4[_0x141fa0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x141fa0([0x74,0x72,0x69,0x61,0x6c])&&(_0x152df2=_0x21efdc(_0x141fa0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x39a0ce()):_0x141fa0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x141fa0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x141fa0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x141fa0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x45e89b(){const _0x513930=[_0x141fa0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x141fa0([0x74,0x72,0x69,0x61,0x6c])][_0x141fa0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ce8e4[_0x141fa0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x558286/0x3e8:0xe10*_0x17f5aa;return _0x1ce8e4[_0x141fa0([0x65,0x78,0x70])]<_0x513930;}function _0x226840(){const _0x47ab8a=_0x1ce8e4[_0x141fa0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x47ab8a&&(!!_0x47ab8a[_0x141fa0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x141fa0([0x2a]))||!!_0x47ab8a[_0x141fa0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x141fa0([0x53,0x45,0x45])));}function _0x181532(){const _0x422f0c=_0x1ce8e4[_0x141fa0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x422f0c||0x0==_0x422f0c[_0x141fa0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4df8d9}=new URL(window[_0x141fa0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x422f0c[_0x141fa0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4df8d9))return!0x0;const _0x45d1b1=_0x4df8d9[_0x141fa0([0x73,0x70,0x6c,0x69,0x74])](_0x141fa0([0x2e]));return _0x422f0c[_0x141fa0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58f1ec=>_0x58f1ec[_0x141fa0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x141fa0([0x2a])))[_0x141fa0([0x6d,0x61,0x70])](_0x1b3d68=>_0x1b3d68[_0x141fa0([0x73,0x70,0x6c,0x69,0x74])](_0x141fa0([0x2e])))[_0x141fa0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30bd0c=>_0x30bd0c[_0x141fa0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x45d1b1[_0x141fa0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x141fa0([0x6d,0x61,0x70])](_0x42726d=>Array(_0x45d1b1[_0x141fa0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x42726d[_0x141fa0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x141fa0([0x66,0x69,0x6c,0x6c])](_0x42726d[0x0]===_0x141fa0([0x2a])?_0x141fa0([0x2a]):'')[_0x141fa0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x42726d))[_0x141fa0([0x73,0x6f,0x6d,0x65])](_0x1623aa=>_0x45d1b1[_0x141fa0([0x65,0x76,0x65,0x72,0x79])]((_0x4e90df,_0x1ff6d7)=>_0x1623aa[_0x1ff6d7]===_0x4e90df||_0x1623aa[_0x1ff6d7]===_0x141fa0([0x2a])));}function _0x39a0ce(){return _0x152df2&&_0x28ab43?new window[(_0x141fa0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x107616,_0x15a385)=>{_0x152df2[_0x141fa0([0x74,0x68,0x65,0x6e])](_0x107616,_0x15a385),_0x28ab43[_0x141fa0([0x74,0x68,0x65,0x6e])](_0x739c95=>{_0x739c95!=_0x141fa0([0x56,0x61,0x6c,0x69,0x64])&&_0x107616(_0x739c95);},_0x15a385);}):_0x152df2||_0x28ab43||_0x141fa0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3817a1(_0x169643,_0x5d99e7){return new window[(_0x141fa0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ca3da=>{if(_0x15c624())return _0x5ca3da(_0x141fa0([0x56,0x61,0x6c,0x69,0x64]));_0x4d8d16(),_0x36925c[_0x141fa0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x141fa0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d291a=!0x1;const _0x16d6ea=_0x2074a3();function _0x8b0646(_0x3bea7c){return!!_0x3bea7c&&(typeof _0x3bea7c===_0x141fa0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3bea7c===_0x141fa0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3bea7c[_0x141fa0([0x74,0x68,0x65,0x6e])]===_0x141fa0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3bea7c[_0x141fa0([0x63,0x61,0x74,0x63,0x68])]===_0x141fa0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a4432(_0x5b1c74){_0x40858b(_0x5b1c74)[_0x141fa0([0x74,0x68,0x65,0x6e])](_0x70c1a2=>{if(!_0x70c1a2||_0x70c1a2[_0x141fa0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x141fa0([0x6f,0x6b]))return _0x141fa0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x23b824(_0x1dad5c(_0x16d6ea+_0x5d99e7))!=_0x70c1a2[_0x141fa0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x141fa0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x141fa0([0x56,0x61,0x6c,0x69,0x64]);})[_0x141fa0([0x74,0x68,0x65,0x6e])](_0x5de339=>(_0xdc4326(),_0x5de339),()=>{const _0x39fa6a=_0xfbfda6();return null==_0x39fa6a?(_0xdc4326(),_0x141fa0([0x56,0x61,0x6c,0x69,0x64])):_0x141fa0(_0x558286-_0x39fa6a>(0x145981ed^_0x1d93b7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x141fa0([0x74,0x68,0x65,0x6e])](_0x5ca3da)[_0x141fa0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ca3da(_0x141fa0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x479dea=0x3063eb6d^_0x1d93b7;function _0xdc4326(){const _0x4b16e2=_0x141fa0([0x6c,0x6c,0x63,0x74,0x2d])+_0x23b824(_0x1dad5c(_0x169643)),_0x12c648=_0x26537e(_0x23b824(window[_0x141fa0([0x4d,0x61,0x74,0x68])][_0x141fa0([0x63,0x65,0x69,0x6c])](_0x558286/_0x479dea)));window[_0x141fa0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x141fa0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b16e2,_0x12c648);}function _0xfbfda6(){const _0x45a5f0=_0x141fa0([0x6c,0x6c,0x63,0x74,0x2d])+_0x23b824(_0x1dad5c(_0x169643)),_0x1b2a6d=window[_0x141fa0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x141fa0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x45a5f0);return _0x1b2a6d?window[_0x141fa0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26537e(_0x1b2a6d),0x10)*_0x479dea:null;}function _0x40858b(_0x2abd60){return new window[(_0x141fa0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x198ae0,_0x490410)=>{_0x2abd60[_0x141fa0([0x74,0x68,0x65,0x6e])](_0x198ae0,_0x490410),window[_0x141fa0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x490410,0x3054d12d^_0x1d93b7);});}}_0x36925c[_0x141fa0([0x6f,0x6e])](_0x141fa0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xadd094,_0x3539a2)=>{if(_0x3539a2[0x0]!=_0x169643)return _0x5ca3da(_0x141fa0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3539a2[0x1]={..._0x3539a2[0x1],[_0x141fa0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16d6ea};},{[_0x141fa0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x141fa0([0x68,0x69,0x67,0x68])}),_0x36925c[_0x141fa0([0x6f,0x6e])](_0x141fa0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d9054=>{_0x8b0646(_0x5d9054[_0x141fa0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d291a=!0x0,_0x1a4432(_0x5d9054[_0x141fa0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x141fa0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x141fa0([0x6c,0x6f,0x77])}),_0x418c71[_0x141fa0([0x74,0x68,0x65,0x6e])](()=>{_0x2d291a||_0x5ca3da(_0x141fa0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x15c624(){return _0x36925c[_0x141fa0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x141fa0([0x76,0x69,0x65,0x77])][_0x141fa0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x141fa0([0x61,0x75,0x74,0x6f]);}function _0x4d8d16(){_0x36925c[_0x141fa0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x141fa0([0x76,0x69,0x65,0x77])][_0x141fa0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x141fa0([0x61,0x75,0x74,0x6f]);}}function _0x21efdc(_0x15b1ab){const _0x4b0e26=[new window[(_0x141fa0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a3252=>setTimeout(_0x5a3252,0x305c3b21^_0x1d93b7)),_0x418c71[_0x141fa0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x141fa0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x377918=>{let _0x24cf52=0x0;_0x36925c[_0x141fa0([0x6d,0x6f,0x64,0x65,0x6c])][_0x141fa0([0x6f,0x6e])](_0x141fa0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c4c9f,_0x5673d5)=>{_0x5673d5[0x0][_0x141fa0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x24cf52++,_0x24cf52==(0x30550415^_0x1d93b7)&&(_0x377918(),_0x1c4c9f[_0x141fa0([0x6f,0x66,0x66])]());});}))];return window[_0x141fa0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x141fa0([0x72,0x61,0x63,0x65])](_0x4b0e26)[_0x141fa0([0x74,0x68,0x65,0x6e])](()=>_0x15b1ab);}async function _0x2a2d6b(){await _0x418c71,_0x36925c[_0x141fa0([0x6d,0x6f,0x64,0x65,0x6c])][_0x141fa0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d26a6,_0x36925c[_0x141fa0([0x6d,0x6f,0x64,0x65,0x6c])][_0x141fa0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d26a6,_0x36925c[_0x141fa0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x141fa0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2311bd(_0x5cf1da){const _0x2b7ec0=_0x56e9ab();_0x36925c[_0x2b7ec0]=_0x141fa0([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])+_0x5cf1da,_0x5cf1da!=_0x141fa0([0x56,0x61,0x6c,0x69,0x64])&&_0x2a2d6b();}function _0x56e9ab(){const _0xc5469f=window[_0x141fa0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x141fa0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x141fa0([0x6e,0x6f,0x77])]())[_0x141fa0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x141fa0([0x2e]),'');let _0x25da5d=_0x141fa0([0x75]);for(let _0x7da011=0x0;_0x7da011<_0xc5469f[_0x141fa0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7da011+=0x2){let _0x14c841=window[_0x141fa0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc5469f[_0x141fa0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7da011,_0x7da011+0x2));_0x14c841>=_0x4056c5[_0x141fa0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14c841-=_0x4056c5[_0x141fa0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x25da5d+=_0x4056c5[_0x14c841];}return _0x25da5d;}function _0x16186c(){const _0x17cd09=_0x5450d8[_0x141fa0([0x73,0x70,0x6c,0x69,0x74])](_0x141fa0([0x2e]));if(0x3!=_0x17cd09[_0x141fa0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e4738(_0x17cd09[0x1]);function _0x2e4738(_0x4db263){const _0x4408d0=_0x5413f3(_0x4db263);return _0x4408d0&&_0x5120dc()?_0x4408d0:null;function _0x5120dc(){const _0x253a97=_0x4408d0[_0x141fa0([0x6a,0x74,0x69])],_0x587b9e=window[_0x141fa0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x253a97[_0x141fa0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x253a97[_0x141fa0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18b32a={..._0x4408d0,[_0x141fa0([0x6a,0x74,0x69])]:_0x253a97[_0x141fa0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x253a97[_0x141fa0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18b32a[_0x141fa0([0x76,0x63])],_0x1dad5c(_0x18b32a)==_0x587b9e;}}}async function _0x48aee1(){let _0x2bd373=!0x0;try{const _0x17f431=_0x5450d8[_0x141fa0([0x73,0x70,0x6c,0x69,0x74])](_0x141fa0([0x2e])),[_0x488ad4,_0x32e303,_0x4daec2]=_0x17f431;return _0x4a4fad(_0x488ad4),await _0x237355(_0x488ad4,_0x32e303,_0x4daec2),_0x2bd373;}catch{return!0x1;}function _0x4a4fad(_0x184914){const _0x2fe784=_0x5413f3(_0x184914);_0x2fe784&&_0x2fe784[_0x141fa0([0x61,0x6c,0x67])]==_0x141fa0([0x45,0x53,0x32,0x35,0x36])||(_0x2bd373=!0x1);}async function _0x237355(_0x2b7003,_0x31b151,_0x6ab6be){const _0x45d7d8=window[_0x141fa0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x141fa0([0x66,0x72,0x6f,0x6d])](_0x4d4812(_0x6ab6be),_0x424816=>_0x424816[_0x141fa0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x266c83=new window[(_0x141fa0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x141fa0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b7003+_0x141fa0([0x2e])+_0x31b151),_0x56fae1=window[_0x141fa0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x141fa0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x56fae1)return;const _0x1b10d9=await _0x56fae1[_0x141fa0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x141fa0([0x6a,0x77,0x6b]),_0x5990b1,{[_0x141fa0([0x6e,0x61,0x6d,0x65])]:_0x141fa0([0x45,0x43,0x44,0x53,0x41]),[_0x141fa0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x141fa0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x141fa0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x56fae1[_0x141fa0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x141fa0([0x6e,0x61,0x6d,0x65])]:_0x141fa0([0x45,0x43,0x44,0x53,0x41]),[_0x141fa0([0x68,0x61,0x73,0x68])]:{[_0x141fa0([0x6e,0x61,0x6d,0x65])]:_0x141fa0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1b10d9,_0x45d7d8,_0x266c83)||(_0x2bd373=!0x1);}}function _0x5413f3(_0x5a8357){return _0x5a8357[_0x141fa0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x141fa0([0x65,0x79]))?JSON[_0x141fa0([0x70,0x61,0x72,0x73,0x65])](_0x4d4812(_0x5a8357)):null;}function _0x4d4812(_0x8dbfab){return window[_0x141fa0([0x61,0x74,0x6f,0x62])](_0x8dbfab[_0x141fa0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x141fa0([0x2b]))[_0x141fa0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x141fa0([0x2f])));}function _0x1dad5c(_0x1861a6){let _0x45bf4d=0x1505;function _0x1f3687(_0xe04556){for(let _0x3ce294=0x0;_0x3ce294<_0xe04556[_0x141fa0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ce294++){const _0x548279=_0xe04556[_0x141fa0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ce294);_0x45bf4d=(_0x45bf4d<<0x5)+_0x45bf4d+_0x548279,_0x45bf4d&=_0x45bf4d;}}function _0x41a3e0(_0xfae505){Array[_0x141fa0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xfae505)?_0xfae505[_0x141fa0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x41a3e0):_0xfae505&&typeof _0xfae505==_0x141fa0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x141fa0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xfae505)[_0x141fa0([0x73,0x6f,0x72,0x74])]()[_0x141fa0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x379a92,_0x4ccb99])=>{_0x1f3687(_0x379a92),_0x41a3e0(_0x4ccb99);}):_0x1f3687(window[_0x141fa0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xfae505));}return _0x41a3e0(_0x1861a6),_0x45bf4d>>>0x0;}function _0x23b824(_0x4676eb){return _0x4676eb[_0x141fa0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x141fa0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x141fa0([0x30]));}function _0x26537e(_0x11666c){return _0x11666c[_0x141fa0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x141fa0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x141fa0([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d26a6(){}function _0x141fa0(_0x332336){return _0x332336['map'](_0x43c80d=>String['fromCharCode'](_0x43c80d))['join']('');}_0x2311bd(await _0x208abe());}(this);}['_createButton'](_0x1ddc9f,_0x77cce4,_0xa1f6bc=!0x1){const _0x49dc32=new _0x1ddc9f(this['editor']['locale']);return _0x49dc32['set']({'withText':_0xa1f6bc,'isToggleable':!0x1}),_0x49dc32['bind']('isEnabled')['to'](_0x77cce4,'isEnabled'),this['listenTo'](_0x49dc32,'execute',()=>_0x77cce4['execute']()),_0x49dc32;}['_registerKeybindings'](){const _0x20dbf3=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':w(_0x20dbf3,'Source\x20Editing\x20Enhanced')});const _0x4b8677=_0x18ecde['isMac']||_0x18ecde['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':w(_0x20dbf3,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':w(_0x20dbf3,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':w(_0x20dbf3,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':w(_0x20dbf3,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':w(_0x20dbf3,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':w(_0x20dbf3,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':w(_0x20dbf3,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x4b8677?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':w(_0x20dbf3,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':w(_0x20dbf3,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':w(_0x20dbf3,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':w(_0x20dbf3,'Select\x20line'),'keystroke':_0x4b8677?'Ctrl!+L':'Alt+L'},{'label':w(_0x20dbf3,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x4b8677?'Alt+Shift+M':'Ctrl+M'},{'label':w(_0x20dbf3,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':w(_0x20dbf3,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':w(_0x20dbf3,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':w(_0x20dbf3,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':w(_0x20dbf3,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x4b8677?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class c extends _0xf1ebea{constructor(_0x52b930){super(_0x52b930),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x59bf62,_0x337286){const _0x17a166=this['editor'],_0x51bb4f=_0x337286?.['rootName']??r(_0x17a166);_0x17a166['data']['set']({[_0x51bb4f]:_0x59bf62},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class ee extends _0x56a566{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[a];}constructor(_0x4dde55){super(_0x4dde55),_0x4dde55['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 _0x2b7aae=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x164c38;for(const _0x4f51fd in _0x2b7aae){const _0xe9cdd3=_0x4f51fd,_0x7b6962=_0x2b7aae[_0xe9cdd3];if('sourceEditingEnhancedLicenseKeyValid'==_0x7b6962||'sourceEditingEnhancedLicenseKeyInvalid'==_0x7b6962||'sourceEditingEnhancedLicenseKeyExpired'==_0x7b6962||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x7b6962||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x7b6962||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x7b6962||'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x7b6962||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x7b6962){delete _0x2b7aae[_0xe9cdd3],_0x164c38=_0x7b6962,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x164c38&&_0x2b7aae['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x164c38&&_0x2b7aae['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x164c38&&_0x2b7aae['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x164c38&&_0x2b7aae['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x164c38&&_0x2b7aae['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x164c38&&_0x2b7aae['_showLicenseError']('trialLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x164c38&&_0x2b7aae['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x871ae1=this['editor'],_0x897cfc=_0x871ae1['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x897cfc&&_0x871ae1['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0xec401e('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x897cfc&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x598307=>_0x871ae1['plugins']['has'](_0x598307))&&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.'),_0x871ae1['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};
|
|
23
|
+
import{Command as _0x3eda9e,PendingActions as _0x10059a,Plugin as _0x427a6b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x110e58,formatHtml as _0x16cf6f,env as _0x2eac57,uid as _0x28e9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x26d023}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0xd95d0b,ButtonView as _0x17ad3c,MenuBarMenuListItemButtonView as _0x32cd1a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x37f078,crosshairCursor as _0x58e816,drawSelection as _0x4c04b6,dropCursor as _0x2a4d09,lineNumbers as _0x21719e,highlightActiveLine as _0x364c15,highlightActiveLineGutter as _0x1a17bb,highlightSpecialChars as _0x1140b9,rectangularSelection as _0x38972e,keymap as _0x164d69}from'@codemirror/view';import{Compartment as _0x25e61f,Transaction as _0x37ff43}from'@codemirror/state';import{bracketMatching as _0x5b2eb6,foldGutter as _0x54a6c6,indentOnInput as _0x3c22cb,syntaxHighlighting as _0x35a038,defaultHighlightStyle as _0x14b268,foldKeymap as _0x5d6651}from'@codemirror/language';import{toggleTabFocusMode as _0x344713,history as _0x46df79,defaultKeymap as _0x195891,historyKeymap as _0x144c53,indentLess as _0x23d0c8,indentMore as _0x77c80d,redo as _0x141942,undo as _0x1a325b}from'@codemirror/commands';import{autocompletion as _0x3b977b,closeBrackets as _0x1dc71b,closeBracketsKeymap as _0x272051,completionKeymap as _0x390787}from'@codemirror/autocomplete';import{html as _0x15a61e}from'@codemirror/lang-html';import{markdown as _0xcf4825}from'@codemirror/lang-markdown';import{oneDark as _0x1456a4}from'@codemirror/theme-one-dark';function w(_0xf0ce37,_0x9b76a2){const t=_0xf0ce37['t'];switch(_0x9b76a2){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 _0x9b76a2;}}function r(_0x3eba07){const _0x1ae4c9=_0x3eba07['editing']['view']['document']['roots'],_0x4d9c23=_0x1ae4c9['length'];if(0x0===_0x4d9c23)throw new _0x110e58('source-editing-enhanced-editor-no-root',_0x3eba07);if(0x1===_0x4d9c23)return _0x1ae4c9['first']['rootName'];return Array['from'](_0x3eba07['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function $(_0x33410c){return X(_0x33410c['replace'](/^[\n\s]*/g,''))?_0x33410c['replace'](/\s+/g,''):_0x33410c;}function X(_0xff2784){return _0xff2784['startsWith']('<');}function Y(_0x327852){const _0x2e9370=[_0x37f078['lineWrapping'],_0x3b977b(),_0x5b2eb6(),_0x1dc71b(),_0x58e816(),_0x4c04b6(),_0x2a4d09(),_0x21719e(),_0x54a6c6(),_0x364c15(),_0x1a17bb(),_0x1140b9(),_0x46df79(),_0x3c22cb(),_0x38972e(),_0x35a038(_0x14b268,{'fallback':!0x0})],_0x31dae3=new _0x25e61f();_0x2e9370['push'](_0x31dae3['of'](_0x37f078['editable']['of'](!0x0))),'html'===_0x327852['syntaxLanguage']?_0x2e9370['push'](_0x15a61e()):_0x2e9370['push'](_0xcf4825());const _0x5dde36=function(_0x4fed3a){if(_0x4fed3a&&'default'!==_0x4fed3a)return'dark'===_0x4fed3a?_0x1456a4:_0x4fed3a;return null;}(_0x327852['theme']);_0x5dde36&&_0x2e9370['push'](_0x5dde36),_0x2e9370['push'](_0x164d69['of']([..._0x272051,..._0x195891,..._0x144c53,..._0x5d6651,..._0x390787,{'key':'Tab','run':_0x77c80d,'shift':_0x23d0c8,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x141942,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x141942,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x1a325b,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x4c7137=new _0x37f078({'extensions':_0x2e9370,'parent':_0x327852['parent']});return _0x344713(_0x4c7137),{'focus':()=>{_0x4c7137['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x4c7137['focus']();},'getData':()=>_0x4c7137['state']['doc']['toString'](),'setData':_0x564e11=>{_0x4c7137['dispatch']({'changes':{'from':0x0,'to':_0x4c7137['state']['doc']['length'],'insert':_0x564e11},'annotations':_0x37ff43['addToHistory']['of'](!0x1)});},'setReadOnly':_0x1d1c9b=>{_0x4c7137['dispatch']({'effects':[_0x31dae3['reconfigure'](_0x37f078['editable']['of'](!_0x1d1c9b))]});},'destroy':()=>{_0x4c7137['destroy']();},'instance':_0x4c7137};}class ee extends _0xd95d0b{['_codeEditorApi']=null;['_options'];constructor(_0x604964,_0x45be41){super(_0x604964),this['_options']=_0x45be41,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',(_0x127fef,_0x50fdff,_0x5ddb44)=>{this['setReadOnly'](_0x5ddb44);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x25759e){this['_codeEditorApi']['setData'](_0x25759e);}['setReadOnly'](_0x39415e){this['_codeEditorApi']['setReadOnly'](_0x39415e);}}const te='SourceEditingEnhancedMode';class d extends _0x3eda9e{constructor(_0x50df8c){super(_0x50df8c),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x10059a)['on']('change:hasAny',(_0x5232c4,_0x29a68c,_0x5a03a5)=>{_0x5a03a5?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x14bbdc=this['editor'];for(const _0x591fb4 of _0x14bbdc['commands']['names']())['replaceSource','editSource']['includes'](_0x591fb4)||_0x14bbdc['commands']['get'](_0x591fb4)['forceDisabled'](te);}['_enableCommands'](){const _0x3c5421=this['editor'];for(const _0x52c224 of _0x3c5421['commands']['commands']())_0x52c224['clearForceDisabled'](te);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1a8dac=this['editor'],_0x55911e=_0x1a8dac['locale'],_0x29912c=_0x1a8dac['plugins']['get']('Dialog'),_0x3479c2=r(_0x1a8dac),_0x358689=_0x1a8dac['data']['get']({'rootName':_0x3479c2}),_0x1f60b7=X(_0x2df8db=_0x358689)?_0x16cf6f(_0x2df8db):_0x2df8db;var _0x2df8db;const _0x5293ee=new ee(_0x55911e,{'syntaxLanguage':_0x1a8dac['plugins']['has']('Markdown')?'markdown':'html','theme':_0x1a8dac['config']['get']('sourceEditingEnhanced.theme')});let _0x3cdb40=!0x0;const _0x106b0d=_0x3f9142=>{if(!_0x3cdb40)return;return $(_0x5293ee['getData']())!==$(_0x1f60b7)?window['confirm'](w(_0x55911e,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x3f9142['stop']():void 0x0;};_0x29912c['show']({'id':'sourceEditingEnhanced','title':w(_0x55911e,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x5293ee,'actionButtons':[{'label':w(_0x55911e,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x29912c['hide']();}},{'label':w(_0x55911e,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x356fe2=$(_0x5293ee['getData']())!==$(_0x1f60b7);(_0x356fe2&&_0x1a8dac['execute']('replaceSource',_0x5293ee['getData']()),_0x3cdb40=!0x1,_0x29912c['hide'](),_0x356fe2&&'editables'in _0x1a8dac['ui']['view'])&&_0x1a8dac['ui']['view']['editables'][_0x3479c2]['element']['focus']();},'onCreate':_0x43fee9=>{_0x43fee9['set']('isEnabled',!_0x1a8dac['isReadOnly']),_0x43fee9['bind']('isEnabled')['to'](_0x1a8dac,'isReadOnly',this,'isEnabled',(_0x49339d,_0x5b3a94)=>!_0x49339d&&_0x5b3a94);}}],'onHide':()=>{this['_enableCommands'](),_0x29912c['off']('hide',_0x106b0d),_0x5293ee['destroy']();},'onShow':()=>{_0x5293ee['bind']('isReadOnly')['to'](_0x1a8dac,'isReadOnly',this,'isEnabled',(_0x316536,_0x12219a)=>_0x316536||!_0x12219a),_0x5293ee['setData'](_0x1f60b7),_0x5293ee['focus'](),_0x29912c['on']('hide',_0x106b0d,{'priority':'highest'}),this['_disableCommands']();}});}}class a extends _0x427a6b{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x10059a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x10e5cb=this['editor'],_0x486ddb=_0x10e5cb['locale'],_0x3e77b9=new d(_0x10e5cb);_0x10e5cb['commands']['add']('editSource',_0x3e77b9),_0x10e5cb['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x4b852c=this['_createButton'](_0x17ad3c,_0x3e77b9);return _0x4b852c['set']({'label':w(_0x486ddb,'Source'),'icon':_0x26d023,'tooltip':w(_0x486ddb,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x4b852c;}),_0x10e5cb['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x48f76c=this['_createButton'](_0x32cd1a,_0x3e77b9,!0x0);return _0x48f76c['set']({'label':w(_0x486ddb,'Edit\x20source\x20modal\x20label'),'icon':_0x26d023,'role':'menuitemcheckbox'}),_0x48f76c;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x2ed20c){const _0x390a35=_0x924291([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0x481053=0x305505ed,_0x3a92a4=0x305276b5^_0x481053,_0xc61f7c=window[_0x924291([0x44,0x61,0x74,0x65])][_0x924291([0x6e,0x6f,0x77])](),_0x1b88a6=_0x2ed20c[_0x924291([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x142365=new window[(_0x924291([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x638c37=>{_0x1b88a6[_0x924291([0x6f,0x6e,0x63,0x65])](_0x924291([0x72,0x65,0x61,0x64,0x79]),_0x638c37);}),_0x526fc4={[_0x924291([0x6b,0x74,0x79])]:_0x924291([0x45,0x43]),[_0x924291([0x75,0x73,0x65])]:_0x924291([0x73,0x69,0x67]),[_0x924291([0x63,0x72,0x76])]:_0x924291([0x50,0x2d,0x32,0x35,0x36]),[_0x924291([0x78])]:_0x924291([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]),[_0x924291([0x79])]:_0x924291([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]),[_0x924291([0x61,0x6c,0x67])]:_0x924291([0x45,0x53,0x32,0x35,0x36])},_0x5a57d5=_0x1b88a6[_0x924291([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x924291([0x67,0x65,0x74])](_0x924291([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e5503(){let _0x143f6f,_0x5c8bc1=null,_0x54bac8=null;try{if(_0x5a57d5==_0x924291([0x47,0x50,0x4c]))return _0x924291([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x143f6f=_0x47d12e(),!_0x143f6f)return _0x924291([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x143f6f[_0x924291([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x54bac8=_0xcb6064(_0x143f6f[_0x924291([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x143f6f[_0x924291([0x6a,0x74,0x69])])),await _0x5b27cf()?_0x1b4297()?_0x527b90()?_0x924291([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdeb45()?(_0x143f6f[_0x924291([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x924291([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c8bc1=_0x5eef47(_0x924291([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x143f6f[_0x924291([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x924291([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c8bc1=_0x5eef47(_0x924291([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4f93a3()):_0x924291([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x924291([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x924291([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x924291([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x527b90(){const _0x5704a2=[_0x924291([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x924291([0x74,0x72,0x69,0x61,0x6c])][_0x924291([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x143f6f[_0x924291([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc61f7c/0x3e8:0xe10*_0x3a92a4;return _0x143f6f[_0x924291([0x65,0x78,0x70])]<_0x5704a2;}function _0x1b4297(){const _0x47d0cd=_0x143f6f[_0x924291([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x47d0cd&&(!!_0x47d0cd[_0x924291([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x924291([0x2a]))||!!_0x47d0cd[_0x924291([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x924291([0x53,0x45,0x45])));}function _0xdeb45(){const _0x1ae4aa=_0x143f6f[_0x924291([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1ae4aa||0x0==_0x1ae4aa[_0x924291([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56e3a}=new URL(window[_0x924291([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1ae4aa[_0x924291([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56e3a))return!0x0;const _0x1444fd=_0x56e3a[_0x924291([0x73,0x70,0x6c,0x69,0x74])](_0x924291([0x2e]));return _0x1ae4aa[_0x924291([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c1d6f=>_0x2c1d6f[_0x924291([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x924291([0x2a])))[_0x924291([0x6d,0x61,0x70])](_0x46ff67=>_0x46ff67[_0x924291([0x73,0x70,0x6c,0x69,0x74])](_0x924291([0x2e])))[_0x924291([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb17dca=>_0xb17dca[_0x924291([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1444fd[_0x924291([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x924291([0x6d,0x61,0x70])](_0x4a617b=>Array(_0x1444fd[_0x924291([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4a617b[_0x924291([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x924291([0x66,0x69,0x6c,0x6c])](_0x4a617b[0x0]===_0x924291([0x2a])?_0x924291([0x2a]):'')[_0x924291([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4a617b))[_0x924291([0x73,0x6f,0x6d,0x65])](_0x2ac85c=>_0x1444fd[_0x924291([0x65,0x76,0x65,0x72,0x79])]((_0x49959f,_0x57acc1)=>_0x2ac85c[_0x57acc1]===_0x49959f||_0x2ac85c[_0x57acc1]===_0x924291([0x2a])));}function _0x4f93a3(){return _0x5c8bc1&&_0x54bac8?new window[(_0x924291([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x217567,_0x22460a)=>{_0x5c8bc1[_0x924291([0x74,0x68,0x65,0x6e])](_0x217567,_0x22460a),_0x54bac8[_0x924291([0x74,0x68,0x65,0x6e])](_0x5251fe=>{_0x5251fe!=_0x924291([0x56,0x61,0x6c,0x69,0x64])&&_0x217567(_0x5251fe);},_0x22460a);}):_0x5c8bc1||_0x54bac8||_0x924291([0x56,0x61,0x6c,0x69,0x64]);}}function _0xcb6064(_0x3ca4df,_0x596eab){return new window[(_0x924291([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x165323=>{if(_0x70ab7a())return _0x165323(_0x924291([0x56,0x61,0x6c,0x69,0x64]));_0x18f66f(),_0x1b88a6[_0x924291([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x924291([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43b534=!0x1;const _0x31e524=_0x28e9();function _0x1a2967(_0x3f93cd){return!!_0x3f93cd&&(typeof _0x3f93cd===_0x924291([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3f93cd===_0x924291([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3f93cd[_0x924291([0x74,0x68,0x65,0x6e])]===_0x924291([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3f93cd[_0x924291([0x63,0x61,0x74,0x63,0x68])]===_0x924291([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1687cd(_0x5ddd5a){_0xb32637(_0x5ddd5a)[_0x924291([0x74,0x68,0x65,0x6e])](_0x116a46=>{if(!_0x116a46||_0x116a46[_0x924291([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x924291([0x6f,0x6b]))return _0x924291([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2d9110(_0x2f1b26(_0x31e524+_0x596eab))!=_0x116a46[_0x924291([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x924291([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x924291([0x56,0x61,0x6c,0x69,0x64]);})[_0x924291([0x74,0x68,0x65,0x6e])](_0x166ea5=>(_0x2fe508(),_0x166ea5),()=>{const _0x26fc51=_0x484a9d();return null==_0x26fc51?(_0x2fe508(),_0x924291([0x56,0x61,0x6c,0x69,0x64])):_0x924291(_0xc61f7c-_0x26fc51>(0x145981ed^_0x481053)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x924291([0x74,0x68,0x65,0x6e])](_0x165323)[_0x924291([0x63,0x61,0x74,0x63,0x68])](()=>{_0x165323(_0x924291([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1dbd9e=0x3063eb6d^_0x481053;function _0x2fe508(){const _0x1d5f25=_0x924291([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d9110(_0x2f1b26(_0x3ca4df)),_0x501f33=_0x3562d8(_0x2d9110(window[_0x924291([0x4d,0x61,0x74,0x68])][_0x924291([0x63,0x65,0x69,0x6c])](_0xc61f7c/_0x1dbd9e)));window[_0x924291([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x924291([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d5f25,_0x501f33);}function _0x484a9d(){const _0x3167db=_0x924291([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d9110(_0x2f1b26(_0x3ca4df)),_0xe02aee=window[_0x924291([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x924291([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3167db);return _0xe02aee?window[_0x924291([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3562d8(_0xe02aee),0x10)*_0x1dbd9e:null;}function _0xb32637(_0x4e66d3){return new window[(_0x924291([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c034e,_0x1d7296)=>{_0x4e66d3[_0x924291([0x74,0x68,0x65,0x6e])](_0x4c034e,_0x1d7296),window[_0x924291([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d7296,0x3054d12d^_0x481053);});}}_0x1b88a6[_0x924291([0x6f,0x6e])](_0x924291([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x301e84,_0x45243f)=>{if(_0x45243f[0x0]!=_0x3ca4df)return _0x165323(_0x924291([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x45243f[0x1]={..._0x45243f[0x1],[_0x924291([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31e524};},{[_0x924291([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x924291([0x68,0x69,0x67,0x68])}),_0x1b88a6[_0x924291([0x6f,0x6e])](_0x924291([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3dcc81=>{_0x1a2967(_0x3dcc81[_0x924291([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43b534=!0x0,_0x1687cd(_0x3dcc81[_0x924291([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x924291([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x924291([0x6c,0x6f,0x77])}),_0x142365[_0x924291([0x74,0x68,0x65,0x6e])](()=>{_0x43b534||_0x165323(_0x924291([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x70ab7a(){return _0x1b88a6[_0x924291([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x924291([0x76,0x69,0x65,0x77])][_0x924291([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x924291([0x61,0x75,0x74,0x6f]);}function _0x18f66f(){_0x1b88a6[_0x924291([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x924291([0x76,0x69,0x65,0x77])][_0x924291([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x924291([0x61,0x75,0x74,0x6f]);}}function _0x5eef47(_0x5236f4){const _0x11bd12=[new window[(_0x924291([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3064de=>setTimeout(_0x3064de,0x305c3b21^_0x481053)),_0x142365[_0x924291([0x74,0x68,0x65,0x6e])](()=>new window[(_0x924291([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19f23d=>{let _0x292619=0x0;_0x1b88a6[_0x924291([0x6d,0x6f,0x64,0x65,0x6c])][_0x924291([0x6f,0x6e])](_0x924291([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x225d23,_0x3eb68b)=>{_0x3eb68b[0x0][_0x924291([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x292619++,_0x292619==(0x30550415^_0x481053)&&(_0x19f23d(),_0x225d23[_0x924291([0x6f,0x66,0x66])]());});}))];return window[_0x924291([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x924291([0x72,0x61,0x63,0x65])](_0x11bd12)[_0x924291([0x74,0x68,0x65,0x6e])](()=>_0x5236f4);}async function _0x1819d1(){await _0x142365,_0x1b88a6[_0x924291([0x6d,0x6f,0x64,0x65,0x6c])][_0x924291([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x17f230,_0x1b88a6[_0x924291([0x6d,0x6f,0x64,0x65,0x6c])][_0x924291([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x17f230,_0x1b88a6[_0x924291([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x924291([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb84b33(_0x1fc69e){const _0x2f2236=_0x4068cf();_0x1b88a6[_0x2f2236]=_0x924291([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])+_0x1fc69e,_0x1fc69e!=_0x924291([0x56,0x61,0x6c,0x69,0x64])&&_0x1819d1();}function _0x4068cf(){const _0x39c151=window[_0x924291([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x924291([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x924291([0x6e,0x6f,0x77])]())[_0x924291([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x924291([0x2e]),'');let _0xd17c98=_0x924291([0x75]);for(let _0x1469c4=0x0;_0x1469c4<_0x39c151[_0x924291([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1469c4+=0x2){let _0x470433=window[_0x924291([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39c151[_0x924291([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1469c4,_0x1469c4+0x2));_0x470433>=_0x390a35[_0x924291([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x470433-=_0x390a35[_0x924291([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xd17c98+=_0x390a35[_0x470433];}return _0xd17c98;}function _0x47d12e(){const _0x28cbac=_0x5a57d5[_0x924291([0x73,0x70,0x6c,0x69,0x74])](_0x924291([0x2e]));if(0x3!=_0x28cbac[_0x924291([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x527927(_0x28cbac[0x1]);function _0x527927(_0x2da3b8){const _0x50d752=_0x5dfbd1(_0x2da3b8);return _0x50d752&&_0x32c875()?_0x50d752:null;function _0x32c875(){const _0xb668f3=_0x50d752[_0x924291([0x6a,0x74,0x69])],_0x265323=window[_0x924291([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb668f3[_0x924291([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb668f3[_0x924291([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x587d77={..._0x50d752,[_0x924291([0x6a,0x74,0x69])]:_0xb668f3[_0x924291([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb668f3[_0x924291([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x587d77[_0x924291([0x76,0x63])],_0x2f1b26(_0x587d77)==_0x265323;}}}async function _0x5b27cf(){let _0xd9ea6a=!0x0;try{const _0x2d2d62=_0x5a57d5[_0x924291([0x73,0x70,0x6c,0x69,0x74])](_0x924291([0x2e])),[_0x29af5d,_0x3992f1,_0x526db7]=_0x2d2d62;return _0x2a7fc8(_0x29af5d),await _0xc63f13(_0x29af5d,_0x3992f1,_0x526db7),_0xd9ea6a;}catch{return!0x1;}function _0x2a7fc8(_0x2afd8c){const _0x3c5ae6=_0x5dfbd1(_0x2afd8c);_0x3c5ae6&&_0x3c5ae6[_0x924291([0x61,0x6c,0x67])]==_0x924291([0x45,0x53,0x32,0x35,0x36])||(_0xd9ea6a=!0x1);}async function _0xc63f13(_0x14e106,_0x13f6f4,_0x30d861){const _0x3e7708=window[_0x924291([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x924291([0x66,0x72,0x6f,0x6d])](_0x424047(_0x30d861),_0x7e4b29=>_0x7e4b29[_0x924291([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2381bf=new window[(_0x924291([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x924291([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14e106+_0x924291([0x2e])+_0x13f6f4),_0x1662be=window[_0x924291([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x924291([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1662be)return;const _0x158c64=await _0x1662be[_0x924291([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x924291([0x6a,0x77,0x6b]),_0x526fc4,{[_0x924291([0x6e,0x61,0x6d,0x65])]:_0x924291([0x45,0x43,0x44,0x53,0x41]),[_0x924291([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x924291([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x924291([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1662be[_0x924291([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x924291([0x6e,0x61,0x6d,0x65])]:_0x924291([0x45,0x43,0x44,0x53,0x41]),[_0x924291([0x68,0x61,0x73,0x68])]:{[_0x924291([0x6e,0x61,0x6d,0x65])]:_0x924291([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x158c64,_0x3e7708,_0x2381bf)||(_0xd9ea6a=!0x1);}}function _0x5dfbd1(_0x27bceb){return _0x27bceb[_0x924291([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x924291([0x65,0x79]))?JSON[_0x924291([0x70,0x61,0x72,0x73,0x65])](_0x424047(_0x27bceb)):null;}function _0x424047(_0x49fdce){return window[_0x924291([0x61,0x74,0x6f,0x62])](_0x49fdce[_0x924291([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x924291([0x2b]))[_0x924291([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x924291([0x2f])));}function _0x2f1b26(_0x46a952){let _0x55432b=0x1505;function _0x32d83b(_0xc98323){for(let _0x14fc1d=0x0;_0x14fc1d<_0xc98323[_0x924291([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14fc1d++){const _0x3d470c=_0xc98323[_0x924291([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14fc1d);_0x55432b=(_0x55432b<<0x5)+_0x55432b+_0x3d470c,_0x55432b&=_0x55432b;}}function _0x4e2f3d(_0x31ae46){Array[_0x924291([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31ae46)?_0x31ae46[_0x924291([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e2f3d):_0x31ae46&&typeof _0x31ae46==_0x924291([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x924291([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31ae46)[_0x924291([0x73,0x6f,0x72,0x74])]()[_0x924291([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f384f,_0x5d026f])=>{_0x32d83b(_0x3f384f),_0x4e2f3d(_0x5d026f);}):_0x32d83b(window[_0x924291([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31ae46));}return _0x4e2f3d(_0x46a952),_0x55432b>>>0x0;}function _0x2d9110(_0x3a59c0){return _0x3a59c0[_0x924291([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x924291([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x924291([0x30]));}function _0x3562d8(_0x1b1120){return _0x1b1120[_0x924291([0x73,0x70,0x6c,0x69,0x74])]('')[_0x924291([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x924291([0x6a,0x6f,0x69,0x6e])]('');}function _0x17f230(){}function _0x924291(_0xe15ae7){return _0xe15ae7['map'](_0x1a26b7=>String['fromCharCode'](_0x1a26b7))['join']('');}_0xb84b33(await _0x5e5503());}(this);}['_createButton'](_0x567606,_0x3f3c09,_0x1d4bf7=!0x1){const _0x46e322=new _0x567606(this['editor']['locale']);return _0x46e322['set']({'withText':_0x1d4bf7,'isToggleable':!0x1}),_0x46e322['bind']('isEnabled')['to'](_0x3f3c09,'isEnabled'),this['listenTo'](_0x46e322,'execute',()=>_0x3f3c09['execute']()),_0x46e322;}['_registerKeybindings'](){const _0x76efe8=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':w(_0x76efe8,'Source\x20Editing\x20Enhanced')});const _0x260573=_0x2eac57['isMac']||_0x2eac57['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':w(_0x76efe8,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':w(_0x76efe8,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':w(_0x76efe8,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':w(_0x76efe8,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':w(_0x76efe8,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':w(_0x76efe8,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':w(_0x76efe8,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x260573?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':w(_0x76efe8,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':w(_0x76efe8,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':w(_0x76efe8,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':w(_0x76efe8,'Select\x20line'),'keystroke':_0x260573?'Ctrl!+L':'Alt+L'},{'label':w(_0x76efe8,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x260573?'Alt+Shift+M':'Ctrl+M'},{'label':w(_0x76efe8,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':w(_0x76efe8,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':w(_0x76efe8,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':w(_0x76efe8,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':w(_0x76efe8,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x260573?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class c extends _0x3eda9e{constructor(_0x36034e){super(_0x36034e),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x456a0c,_0x2f6732){const _0x4dcd43=this['editor'],_0x79d14e=_0x2f6732?.['rootName']??r(_0x4dcd43);_0x4dcd43['data']['set']({[_0x79d14e]:_0x456a0c},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class ne extends _0x427a6b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[a];}constructor(_0x3451a4){super(_0x3451a4),_0x3451a4['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 _0x41539f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2421e8;for(const _0x3217d8 in _0x41539f){const _0x27d99b=_0x3217d8,_0x272089=_0x41539f[_0x27d99b];if('sourceEditingEnhancedLicenseKeyValid'==_0x272089||'sourceEditingEnhancedLicenseKeyInvalid'==_0x272089||'sourceEditingEnhancedLicenseKeyExpired'==_0x272089||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x272089||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x272089||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x272089||'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x272089||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x272089){delete _0x41539f[_0x27d99b],_0x2421e8=_0x272089,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x2421e8&&_0x41539f['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x2421e8&&_0x41539f['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x2421e8&&_0x41539f['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x2421e8&&_0x41539f['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x2421e8&&_0x41539f['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyTrialLimit'==_0x2421e8&&_0x41539f['_showLicenseError']('trialLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x2421e8&&_0x41539f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x4fd45d=this['editor'],_0x30a3cd=_0x4fd45d['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x30a3cd&&_0x4fd45d['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x110e58('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x30a3cd&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x387fcc=>_0x4fd45d['plugins']['has'](_0x387fcc))&&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.'),_0x4fd45d['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};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-source-editing-enhanced",
|
|
3
|
-
"version": "46.1.1-alpha.
|
|
3
|
+
"version": "46.1.1-alpha.2",
|
|
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.1.1-alpha.
|
|
22
|
-
"@ckeditor/ckeditor5-icons": "46.1.1-alpha.
|
|
23
|
-
"@ckeditor/ckeditor5-theme-lark": "46.1.1-alpha.
|
|
24
|
-
"@ckeditor/ckeditor5-ui": "46.1.1-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-utils": "46.1.1-alpha.
|
|
21
|
+
"@ckeditor/ckeditor5-core": "46.1.1-alpha.2",
|
|
22
|
+
"@ckeditor/ckeditor5-icons": "46.1.1-alpha.2",
|
|
23
|
+
"@ckeditor/ckeditor5-theme-lark": "46.1.1-alpha.2",
|
|
24
|
+
"@ckeditor/ckeditor5-ui": "46.1.1-alpha.2",
|
|
25
|
+
"@ckeditor/ckeditor5-utils": "46.1.1-alpha.2",
|
|
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.1.1-alpha.
|
|
34
|
+
"ckeditor5": "46.1.1-alpha.2"
|
|
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 _0x376302=_0x566f;function _0x262f(){const _0x5aef72=['Ctrl+Z','Ctrl+Y','Shift+Alt+ArrowUp','editor','_registerKeybindings','Alt+L','4812220LuhjVY','addKeystrokeInfos','Ctrl!+Alt+[','join','Ctrl+M','isOfficialPlugin','listenTo','menuBar:sourceEditingEnhanced','Ctrl+Shift+]','Source','2246uEnTPA','bind','menuitemcheckbox','1064050hsTxoD','Alt+ArrowUp','Source\x20Editing\x20Enhanced','Fold\x20all','pluginName','120GQCrdh','map','308xUoVro','execute','Indent\x20less','Copy\x20line\x20down','Edit\x20source\x20modal\x20label','Undo\x20(keystroke)','517QAZdUe','isiOS','Toggle\x20comment','editSource','12mcDSKn','fromCharCode','Toggle\x20block\x20comment','Unfold\x20all','Ctrl+/','set','Shift+Alt+ArrowDown','Delete\x20line','Copy\x20line\x20up','Shift+Ctrl+K','Move\x20line\x20down','init','Redo\x20(keystroke)','Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode','locale','componentFactory','Fold\x20code\x20(current\x20level)','SourceEditingEnhancedUI','afterInit','accessibility','addKeystrokeInfoCategory','requires','256239POVXdq','add','_createButton','Move\x20line\x20up','href','Ctrl+Shift+[','Unfold\x20code\x20(current\x20level)','isEnabled','Ctrl!+L','ck-source-editing-enhanced-button','Shift+Alt+A','1381445BUBlNb','Indent\x20more','Ctrl+Shift+Z','Alt+Shift+M','Select\x20line','2450244KALgGg','1822590lHoYBz','sourceEditingEnhanced','Cmd+Alt+[','Alt+ArrowDown','Ctrl+]','Ctrl!+Alt+]','Cmd+Alt+]','isPremiumPlugin','commands','Ctrl+[','isMac'];_0x262f=function(){return _0x5aef72;};return _0x262f();}(function(_0x3ad3f6,_0x39c009){const _0x215890=_0x566f,_0x2ba7a6=_0x3ad3f6();while(!![]){try{const _0x2996ad=parseInt(_0x215890(0xdf))/0x1*(-parseInt(_0x215890(0x125))/0x2)+-parseInt(_0x215890(0x10a))/0x3+-parseInt(_0x215890(0x109))/0x4+-parseInt(_0x215890(0x104))/0x5*(parseInt(_0x215890(0xe3))/0x6)+-parseInt(_0x215890(0x11b))/0x7+-parseInt(_0x215890(0xd7))/0x8*(-parseInt(_0x215890(0xf9))/0x9)+parseInt(_0x215890(0x128))/0xa*(parseInt(_0x215890(0xd9))/0xb);if(_0x2996ad===_0x39c009)break;else _0x2ba7a6['push'](_0x2ba7a6['shift']());}catch(_0x560820){_0x2ba7a6['push'](_0x2ba7a6['shift']());}}}(_0x262f,0x59475));import{Plugin as _0x482434,PendingActions as _0x2d3a0f}from'ckeditor5/src/core.js';import{IconSource as _0x5dc0d6}from'ckeditor5/src/icons.js';import{ButtonView as _0xd52d7d,MenuBarMenuListItemButtonView as _0xdfd14a}from'ckeditor5/src/ui.js';import{EditSourceCommand as _0xdfa3bd}from'./ui/editsourcecommand.js';import{getTranslation as _0x1a6e31}from'./utils/common-translations.js';import{env as _0x8fd0ed,uid as _0x74981d}from'ckeditor5/src/utils.js';import'../theme/sourceeditingenhanced.css';function _0x566f(_0x4ead2f,_0x45625b){const _0x262fe0=_0x262f();return _0x566f=function(_0x566f59,_0x48e616){_0x566f59=_0x566f59-0xd4;let _0x17f1ca=_0x262fe0[_0x566f59];return _0x17f1ca;},_0x566f(_0x4ead2f,_0x45625b);}export class SourceEditingEnhancedUI extends _0x482434{static get[_0x376302(0xd6)](){const _0x21df35=_0x376302;return _0x21df35(0xf4);}static get[_0x376302(0xf8)](){return[_0x2d3a0f];}static get[_0x376302(0x120)](){return!0x0;}static get[_0x376302(0x111)](){return!0x0;}[_0x376302(0xee)](){const _0x2b089b=_0x376302,_0x52e481=this[_0x2b089b(0x118)],_0x2969c0=_0x52e481[_0x2b089b(0xf1)],_0x44d831=new _0xdfa3bd(_0x52e481);_0x52e481[_0x2b089b(0x112)][_0x2b089b(0xfa)](_0x2b089b(0xe2),_0x44d831),_0x52e481['ui'][_0x2b089b(0xf2)][_0x2b089b(0xfa)](_0x2b089b(0x10b),()=>{const _0x4286a2=_0x2b089b,_0xa58a10=this[_0x4286a2(0xfb)](_0xd52d7d,_0x44d831);return _0xa58a10[_0x4286a2(0xe8)]({'label':_0x1a6e31(_0x2969c0,_0x4286a2(0x124)),'icon':_0x5dc0d6,'tooltip':_0x1a6e31(_0x2969c0,_0x4286a2(0xdd)),'class':_0x4286a2(0x102)}),_0xa58a10;}),_0x52e481['ui'][_0x2b089b(0xf2)][_0x2b089b(0xfa)](_0x2b089b(0x122),()=>{const _0x7486b6=_0x2b089b,_0x172b1d=this[_0x7486b6(0xfb)](_0xdfd14a,_0x44d831,!0x0);return _0x172b1d[_0x7486b6(0xe8)]({'label':_0x1a6e31(_0x2969c0,_0x7486b6(0xdd)),'icon':_0x5dc0d6,'role':_0x7486b6(0x127)}),_0x172b1d;}),this[_0x2b089b(0x119)]();}[_0x376302(0xf5)](){!async function(_0x400f50){const _0x2b68f0=_0x66dc18([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0x37a7f2=0x305505ed,_0x35a7b7=0x305276ad^_0x37a7f2,_0x1a1a9b=window[_0x66dc18([0x44,0x61,0x74,0x65])][_0x66dc18([0x6e,0x6f,0x77])](),_0x31ffa=_0x400f50[_0x66dc18([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x27295a=new window[(_0x66dc18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ed0cd=>{_0x31ffa[_0x66dc18([0x6f,0x6e,0x63,0x65])](_0x66dc18([0x72,0x65,0x61,0x64,0x79]),_0x1ed0cd);}),_0x552e8d={[_0x66dc18([0x6b,0x74,0x79])]:_0x66dc18([0x45,0x43]),[_0x66dc18([0x75,0x73,0x65])]:_0x66dc18([0x73,0x69,0x67]),[_0x66dc18([0x63,0x72,0x76])]:_0x66dc18([0x50,0x2d,0x32,0x35,0x36]),[_0x66dc18([0x78])]:_0x66dc18([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]),[_0x66dc18([0x79])]:_0x66dc18([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]),[_0x66dc18([0x61,0x6c,0x67])]:_0x66dc18([0x45,0x53,0x32,0x35,0x36])},_0xf396e3=_0x31ffa[_0x66dc18([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x66dc18([0x67,0x65,0x74])](_0x66dc18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x312eb0(){let _0x35e2d3,_0x596181=null,_0x489207=null;try{if(_0xf396e3==_0x66dc18([0x47,0x50,0x4c]))return _0x66dc18([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35e2d3=_0x4595c8(),!_0x35e2d3)return _0x66dc18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35e2d3[_0x66dc18([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x489207=_0x2b13cb(_0x35e2d3[_0x66dc18([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35e2d3[_0x66dc18([0x6a,0x74,0x69])])),await _0x3d6b2b()?_0x332db1()?_0x2423d5()?_0x66dc18([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x135a93()?(_0x35e2d3[_0x66dc18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x66dc18([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x596181=_0x3c93bb(_0x66dc18([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x35e2d3[_0x66dc18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x66dc18([0x74,0x72,0x69,0x61,0x6c])&&(_0x596181=_0x3c93bb(_0x66dc18([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x368176()):_0x66dc18([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x66dc18([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x66dc18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x66dc18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2423d5(){const _0x36aa67=[_0x66dc18([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x66dc18([0x74,0x72,0x69,0x61,0x6c])][_0x66dc18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35e2d3[_0x66dc18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1a1a9b/0x3e8:0xe10*_0x35a7b7;return _0x35e2d3[_0x66dc18([0x65,0x78,0x70])]<_0x36aa67;}function _0x332db1(){const _0xa2b590=_0x35e2d3[_0x66dc18([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa2b590&&(!!_0xa2b590[_0x66dc18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x66dc18([0x2a]))||!!_0xa2b590[_0x66dc18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x66dc18([0x53,0x45,0x45])));}function _0x135a93(){const _0x874491=_0x566f,_0x5f6b19=_0x35e2d3[_0x66dc18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5f6b19||0x0==_0x5f6b19[_0x66dc18([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x978572}=new URL(window[_0x66dc18([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x874491(0xfd)]);if(_0x5f6b19[_0x66dc18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x978572))return!0x0;const _0x1addaf=_0x978572[_0x66dc18([0x73,0x70,0x6c,0x69,0x74])](_0x66dc18([0x2e]));return _0x5f6b19[_0x66dc18([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c60b8=>_0x4c60b8[_0x66dc18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x66dc18([0x2a])))[_0x66dc18([0x6d,0x61,0x70])](_0x177133=>_0x177133[_0x66dc18([0x73,0x70,0x6c,0x69,0x74])](_0x66dc18([0x2e])))[_0x66dc18([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5eaf77=>_0x5eaf77[_0x66dc18([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1addaf[_0x66dc18([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x66dc18([0x6d,0x61,0x70])](_0x1d175c=>Array(_0x1addaf[_0x66dc18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1d175c[_0x66dc18([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x66dc18([0x66,0x69,0x6c,0x6c])](_0x1d175c[0x0]===_0x66dc18([0x2a])?_0x66dc18([0x2a]):'')[_0x66dc18([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1d175c))[_0x66dc18([0x73,0x6f,0x6d,0x65])](_0x2bc8fb=>_0x1addaf[_0x66dc18([0x65,0x76,0x65,0x72,0x79])]((_0x5afccf,_0x27f9c0)=>_0x2bc8fb[_0x27f9c0]===_0x5afccf||_0x2bc8fb[_0x27f9c0]===_0x66dc18([0x2a])));}function _0x368176(){return _0x596181&&_0x489207?new window[(_0x66dc18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x179187,_0x3ce0ae)=>{_0x596181[_0x66dc18([0x74,0x68,0x65,0x6e])](_0x179187,_0x3ce0ae),_0x489207[_0x66dc18([0x74,0x68,0x65,0x6e])](_0x2d1d81=>{_0x2d1d81!=_0x66dc18([0x56,0x61,0x6c,0x69,0x64])&&_0x179187(_0x2d1d81);},_0x3ce0ae);}):_0x596181||_0x489207||_0x66dc18([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b13cb(_0x420518,_0x401ed4){return new window[(_0x66dc18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d72cb=>{if(_0x176b8b())return _0x5d72cb(_0x66dc18([0x56,0x61,0x6c,0x69,0x64]));_0x26ebb9(),_0x31ffa[_0x66dc18([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x66dc18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x34e109=!0x1;const _0x2484da=_0x74981d();function _0x1c38ed(_0x48d360){return!!_0x48d360&&(typeof _0x48d360===_0x66dc18([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48d360===_0x66dc18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48d360[_0x66dc18([0x74,0x68,0x65,0x6e])]===_0x66dc18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48d360[_0x66dc18([0x63,0x61,0x74,0x63,0x68])]===_0x66dc18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x30c4e9(_0x16f323){_0x59b993(_0x16f323)[_0x66dc18([0x74,0x68,0x65,0x6e])](_0x302eba=>{if(!_0x302eba||_0x302eba[_0x66dc18([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x66dc18([0x6f,0x6b]))return _0x66dc18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28e9c5(_0x7a3dd0(_0x2484da+_0x401ed4))!=_0x302eba[_0x66dc18([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x66dc18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x66dc18([0x56,0x61,0x6c,0x69,0x64]);})[_0x66dc18([0x74,0x68,0x65,0x6e])](_0x1cddcb=>(_0x37ea21(),_0x1cddcb),()=>{const _0x52f39a=_0x2a1889();return null==_0x52f39a?(_0x37ea21(),_0x66dc18([0x56,0x61,0x6c,0x69,0x64])):_0x66dc18(_0x1a1a9b-_0x52f39a>(0x145981ed^_0x37a7f2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x66dc18([0x74,0x68,0x65,0x6e])](_0x5d72cb)[_0x66dc18([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d72cb(_0x66dc18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x52ccd4=0x3063eb6d^_0x37a7f2;function _0x37ea21(){const _0x3a30eb=_0x66dc18([0x6c,0x6c,0x63,0x74,0x2d])+_0x28e9c5(_0x7a3dd0(_0x420518)),_0x3b9636=_0x5ad0f8(_0x28e9c5(window[_0x66dc18([0x4d,0x61,0x74,0x68])][_0x66dc18([0x63,0x65,0x69,0x6c])](_0x1a1a9b/_0x52ccd4)));window[_0x66dc18([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x66dc18([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a30eb,_0x3b9636);}function _0x2a1889(){const _0x4fb445=_0x66dc18([0x6c,0x6c,0x63,0x74,0x2d])+_0x28e9c5(_0x7a3dd0(_0x420518)),_0x2d953b=window[_0x66dc18([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x66dc18([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fb445);return _0x2d953b?window[_0x66dc18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ad0f8(_0x2d953b),0x10)*_0x52ccd4:null;}function _0x59b993(_0x222b9b){return new window[(_0x66dc18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43a786,_0x5a5450)=>{_0x222b9b[_0x66dc18([0x74,0x68,0x65,0x6e])](_0x43a786,_0x5a5450),window[_0x66dc18([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a5450,0x3054d12d^_0x37a7f2);});}}_0x31ffa[_0x66dc18([0x6f,0x6e])](_0x66dc18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3bff25,_0x335236)=>{if(_0x335236[0x0]!=_0x420518)return _0x5d72cb(_0x66dc18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x335236[0x1]={..._0x335236[0x1],[_0x66dc18([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2484da};},{[_0x66dc18([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x66dc18([0x68,0x69,0x67,0x68])}),_0x31ffa[_0x66dc18([0x6f,0x6e])](_0x66dc18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x51f806=>{_0x1c38ed(_0x51f806[_0x66dc18([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x34e109=!0x0,_0x30c4e9(_0x51f806[_0x66dc18([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x66dc18([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x66dc18([0x6c,0x6f,0x77])}),_0x27295a[_0x66dc18([0x74,0x68,0x65,0x6e])](()=>{_0x34e109||_0x5d72cb(_0x66dc18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x176b8b(){return _0x31ffa[_0x66dc18([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x66dc18([0x76,0x69,0x65,0x77])][_0x66dc18([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x66dc18([0x61,0x75,0x74,0x6f]);}function _0x26ebb9(){_0x31ffa[_0x66dc18([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x66dc18([0x76,0x69,0x65,0x77])][_0x66dc18([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x66dc18([0x61,0x75,0x74,0x6f]);}}function _0x3c93bb(_0x12b1f6){const _0x486efe=[new window[(_0x66dc18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47d314=>setTimeout(_0x47d314,0x305c3b21^_0x37a7f2)),_0x27295a[_0x66dc18([0x74,0x68,0x65,0x6e])](()=>new window[(_0x66dc18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x120ace=>{let _0x4f8944=0x0;_0x31ffa[_0x66dc18([0x6d,0x6f,0x64,0x65,0x6c])][_0x66dc18([0x6f,0x6e])](_0x66dc18([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x14f12e,_0x3513c8)=>{_0x3513c8[0x0][_0x66dc18([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f8944++,_0x4f8944==(0x30550415^_0x37a7f2)&&(_0x120ace(),_0x14f12e[_0x66dc18([0x6f,0x66,0x66])]());});}))];return window[_0x66dc18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x66dc18([0x72,0x61,0x63,0x65])](_0x486efe)[_0x66dc18([0x74,0x68,0x65,0x6e])](()=>_0x12b1f6);}async function _0x2313f2(){await _0x27295a,_0x31ffa[_0x66dc18([0x6d,0x6f,0x64,0x65,0x6c])][_0x66dc18([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b3234,_0x31ffa[_0x66dc18([0x6d,0x6f,0x64,0x65,0x6c])][_0x66dc18([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b3234,_0x31ffa[_0x66dc18([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x66dc18([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x464ced(_0x1feb14){const _0x475330=_0x2df3c3();_0x31ffa[_0x475330]=_0x66dc18([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])+_0x1feb14,_0x1feb14!=_0x66dc18([0x56,0x61,0x6c,0x69,0x64])&&_0x2313f2();}function _0x2df3c3(){const _0x492573=window[_0x66dc18([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x66dc18([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x66dc18([0x6e,0x6f,0x77])]())[_0x66dc18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x66dc18([0x2e]),'');let _0x5a80d5=_0x66dc18([0x75]);for(let _0x47c067=0x0;_0x47c067<_0x492573[_0x66dc18([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47c067+=0x2){let _0x11d3b9=window[_0x66dc18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x492573[_0x66dc18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47c067,_0x47c067+0x2));_0x11d3b9>=_0x2b68f0[_0x66dc18([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11d3b9-=_0x2b68f0[_0x66dc18([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a80d5+=_0x2b68f0[_0x11d3b9];}return _0x5a80d5;}function _0x4595c8(){const _0x23bfef=_0xf396e3[_0x66dc18([0x73,0x70,0x6c,0x69,0x74])](_0x66dc18([0x2e]));if(0x3!=_0x23bfef[_0x66dc18([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x56d7be(_0x23bfef[0x1]);function _0x56d7be(_0x12d5b2){const _0x2a1612=_0x2d1680(_0x12d5b2);return _0x2a1612&&_0x3b5c23()?_0x2a1612:null;function _0x3b5c23(){const _0x20079a=_0x2a1612[_0x66dc18([0x6a,0x74,0x69])],_0x3608a3=window[_0x66dc18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20079a[_0x66dc18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20079a[_0x66dc18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5751da={..._0x2a1612,[_0x66dc18([0x6a,0x74,0x69])]:_0x20079a[_0x66dc18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20079a[_0x66dc18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5751da[_0x66dc18([0x76,0x63])],_0x7a3dd0(_0x5751da)==_0x3608a3;}}}async function _0x3d6b2b(){let _0x492050=!0x0;try{const _0x1b53e7=_0xf396e3[_0x66dc18([0x73,0x70,0x6c,0x69,0x74])](_0x66dc18([0x2e])),[_0x45fa5e,_0x3f7c3f,_0x4732ee]=_0x1b53e7;return _0x178a89(_0x45fa5e),await _0x44001b(_0x45fa5e,_0x3f7c3f,_0x4732ee),_0x492050;}catch{return!0x1;}function _0x178a89(_0x52f2e0){const _0x239aca=_0x2d1680(_0x52f2e0);_0x239aca&&_0x239aca[_0x66dc18([0x61,0x6c,0x67])]==_0x66dc18([0x45,0x53,0x32,0x35,0x36])||(_0x492050=!0x1);}async function _0x44001b(_0x274e86,_0x284731,_0x1d37e1){const _0x291e9a=window[_0x66dc18([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x66dc18([0x66,0x72,0x6f,0x6d])](_0x7488dd(_0x1d37e1),_0x55eceb=>_0x55eceb[_0x66dc18([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5eb953=new window[(_0x66dc18([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x66dc18([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x274e86+_0x66dc18([0x2e])+_0x284731),_0x6bbf52=window[_0x66dc18([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x66dc18([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6bbf52)return;const _0x3569a0=await _0x6bbf52[_0x66dc18([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x66dc18([0x6a,0x77,0x6b]),_0x552e8d,{[_0x66dc18([0x6e,0x61,0x6d,0x65])]:_0x66dc18([0x45,0x43,0x44,0x53,0x41]),[_0x66dc18([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x66dc18([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x66dc18([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6bbf52[_0x66dc18([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x66dc18([0x6e,0x61,0x6d,0x65])]:_0x66dc18([0x45,0x43,0x44,0x53,0x41]),[_0x66dc18([0x68,0x61,0x73,0x68])]:{[_0x66dc18([0x6e,0x61,0x6d,0x65])]:_0x66dc18([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3569a0,_0x291e9a,_0x5eb953)||(_0x492050=!0x1);}}function _0x2d1680(_0x996fd0){return _0x996fd0[_0x66dc18([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x66dc18([0x65,0x79]))?JSON[_0x66dc18([0x70,0x61,0x72,0x73,0x65])](_0x7488dd(_0x996fd0)):null;}function _0x7488dd(_0x5832d5){return window[_0x66dc18([0x61,0x74,0x6f,0x62])](_0x5832d5[_0x66dc18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x66dc18([0x2b]))[_0x66dc18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x66dc18([0x2f])));}function _0x7a3dd0(_0x54a583){let _0x17c2db=0x1505;function _0x3633d9(_0x4f8197){for(let _0x5e0736=0x0;_0x5e0736<_0x4f8197[_0x66dc18([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e0736++){const _0x1cb8f1=_0x4f8197[_0x66dc18([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5e0736);_0x17c2db=(_0x17c2db<<0x5)+_0x17c2db+_0x1cb8f1,_0x17c2db&=_0x17c2db;}}function _0x3a2f9f(_0x40371a){Array[_0x66dc18([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x40371a)?_0x40371a[_0x66dc18([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a2f9f):_0x40371a&&typeof _0x40371a==_0x66dc18([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x66dc18([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x40371a)[_0x66dc18([0x73,0x6f,0x72,0x74])]()[_0x66dc18([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c086b,_0x2e53e3])=>{_0x3633d9(_0x2c086b),_0x3a2f9f(_0x2e53e3);}):_0x3633d9(window[_0x66dc18([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x40371a));}return _0x3a2f9f(_0x54a583),_0x17c2db>>>0x0;}function _0x28e9c5(_0x61d291){return _0x61d291[_0x66dc18([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x66dc18([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x66dc18([0x30]));}function _0x5ad0f8(_0x16aeb8){return _0x16aeb8[_0x66dc18([0x73,0x70,0x6c,0x69,0x74])]('')[_0x66dc18([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x66dc18([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b3234(){}function _0x66dc18(_0x32c6c1){const _0x56eb9d=_0x566f;return _0x32c6c1[_0x56eb9d(0xd8)](_0x56fc36=>String[_0x56eb9d(0xe4)](_0x56fc36))[_0x56eb9d(0x11e)]('');}_0x464ced(await _0x312eb0());}(this);}[_0x376302(0xfb)](_0x3189a6,_0x192b8a,_0x178d96=!0x1){const _0x27a630=_0x376302,_0x566d31=new _0x3189a6(this[_0x27a630(0x118)][_0x27a630(0xf1)]);return _0x566d31[_0x27a630(0xe8)]({'withText':_0x178d96,'isToggleable':!0x1}),_0x566d31[_0x27a630(0x126)](_0x27a630(0x100))['to'](_0x192b8a,_0x27a630(0x100)),this[_0x27a630(0x121)](_0x566d31,_0x27a630(0xda),()=>_0x192b8a[_0x27a630(0xda)]()),_0x566d31;}[_0x376302(0x119)](){const _0x16eb7f=_0x376302,_0x3f1513=this[_0x16eb7f(0x118)][_0x16eb7f(0xf1)];this[_0x16eb7f(0x118)][_0x16eb7f(0xf6)][_0x16eb7f(0xf7)]({'id':_0x16eb7f(0x10b),'label':_0x1a6e31(_0x3f1513,_0x16eb7f(0xd4))});const _0x42f116=_0x8fd0ed[_0x16eb7f(0x114)]||_0x8fd0ed[_0x16eb7f(0xe0)];this[_0x16eb7f(0x118)][_0x16eb7f(0xf6)][_0x16eb7f(0x11c)]({'categoryId':_0x16eb7f(0x10b),'keystrokes':[{'label':_0x1a6e31(_0x3f1513,_0x16eb7f(0xdc)),'keystroke':_0x16eb7f(0xe9)},{'label':_0x1a6e31(_0x3f1513,_0x16eb7f(0xeb)),'keystroke':_0x16eb7f(0x117)},{'label':_0x1a6e31(_0x3f1513,_0x16eb7f(0xea)),'keystroke':_0x16eb7f(0xec)},{'label':_0x1a6e31(_0x3f1513,_0x16eb7f(0xdb)),'keystroke':_0x16eb7f(0x113)},{'label':_0x1a6e31(_0x3f1513,_0x16eb7f(0x105)),'keystroke':_0x16eb7f(0x10e)},{'label':_0x1a6e31(_0x3f1513,_0x16eb7f(0xd5)),'keystroke':_0x16eb7f(0x11d)},{'label':_0x1a6e31(_0x3f1513,_0x16eb7f(0xf3)),'keystroke':_0x42f116?_0x16eb7f(0x10c):_0x16eb7f(0xfe)},{'label':_0x1a6e31(_0x3f1513,_0x16eb7f(0xed)),'keystroke':_0x16eb7f(0x10d)},{'label':_0x1a6e31(_0x3f1513,_0x16eb7f(0xfc)),'keystroke':_0x16eb7f(0x129)},{'label':_0x1a6e31(_0x3f1513,_0x16eb7f(0xef)),'keystroke':[[_0x16eb7f(0x106)],[_0x16eb7f(0x116)]]},{'label':_0x1a6e31(_0x3f1513,_0x16eb7f(0x108)),'keystroke':_0x42f116?_0x16eb7f(0x101):_0x16eb7f(0x11a)},{'label':_0x1a6e31(_0x3f1513,_0x16eb7f(0xf0)),'keystroke':_0x42f116?_0x16eb7f(0x107):_0x16eb7f(0x11f)},{'label':_0x1a6e31(_0x3f1513,_0x16eb7f(0xe5)),'keystroke':_0x16eb7f(0x103)},{'label':_0x1a6e31(_0x3f1513,_0x16eb7f(0xe1)),'keystroke':_0x16eb7f(0xe7)},{'label':_0x1a6e31(_0x3f1513,_0x16eb7f(0xde)),'keystroke':_0x16eb7f(0x115)},{'label':_0x1a6e31(_0x3f1513,_0x16eb7f(0xe6)),'keystroke':_0x16eb7f(0x10f)},{'label':_0x1a6e31(_0x3f1513,_0x16eb7f(0xff)),'keystroke':_0x42f116?_0x16eb7f(0x110):_0x16eb7f(0x123)}]});}}
|
|
23
|
+
const _0x272679=_0x37fd;(function(_0x3c65da,_0x561ff2){const _0x311157=_0x37fd,_0x515867=_0x3c65da();while(!![]){try{const _0x11a01c=parseInt(_0x311157(0x111))/0x1+parseInt(_0x311157(0x129))/0x2+-parseInt(_0x311157(0x124))/0x3+-parseInt(_0x311157(0x14f))/0x4*(parseInt(_0x311157(0x115))/0x5)+-parseInt(_0x311157(0x118))/0x6*(parseInt(_0x311157(0x125))/0x7)+-parseInt(_0x311157(0x11a))/0x8*(-parseInt(_0x311157(0x15e))/0x9)+-parseInt(_0x311157(0x160))/0xa*(-parseInt(_0x311157(0x14e))/0xb);if(_0x11a01c===_0x561ff2)break;else _0x515867['push'](_0x515867['shift']());}catch(_0x26bb04){_0x515867['push'](_0x515867['shift']());}}}(_0x5261,0xa1d26));import{Plugin as _0x4671e9,PendingActions as _0x40ad4f}from'ckeditor5/src/core.js';import{IconSource as _0x5d323b}from'ckeditor5/src/icons.js';import{ButtonView as _0x785d0b,MenuBarMenuListItemButtonView as _0x1c6554}from'ckeditor5/src/ui.js';import{EditSourceCommand as _0x3125d7}from'./ui/editsourcecommand.js';function _0x5261(){const _0x1c6171=['Fold\x20all','Ctrl+Shift+[','Shift+Ctrl+K','add','editor','Ctrl!+L','isMac','Copy\x20line\x20up','Source\x20Editing\x20Enhanced','11rqZgOs','140uYxGMe','locale','accessibility','ck-source-editing-enhanced-button','Shift+Alt+ArrowUp','href','editSource','fromCharCode','Ctrl+]','Ctrl!+Alt+]','Move\x20line\x20down','listenTo','afterInit','addKeystrokeInfos','Alt+L','5898933MZXapd','Ctrl+Y','7786720ptXsSX','pluginName','Alt+ArrowUp','init','Undo\x20(keystroke)','isiOS','Ctrl+M','144268kBrXLZ','Indent\x20less','Cmd+Alt+[','requires','60505QdOxAS','Unfold\x20all','Ctrl!+Alt+[','18aGrEGI','Ctrl+[','8VIwFZB','Ctrl+Shift+]','menuitemcheckbox','Alt+Shift+M','Edit\x20source\x20modal\x20label','map','isOfficialPlugin','Shift+Alt+A','join','Unfold\x20code\x20(current\x20level)','3050643yQvrNj','826903MrPseL','Redo\x20(keystroke)','Ctrl+/','sourceEditingEnhanced','1758496rlHFLJ','commands','Delete\x20line','Indent\x20more','_registerKeybindings','_createButton','isPremiumPlugin','addKeystrokeInfoCategory','Move\x20line\x20up','Alt+ArrowDown','Source','execute','Ctrl+Z','Fold\x20code\x20(current\x20level)','Toggle\x20comment','menuBar:sourceEditingEnhanced','isEnabled','Ctrl+Shift+Z','Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode','componentFactory','set','SourceEditingEnhancedUI','Copy\x20line\x20down','Toggle\x20block\x20comment','Select\x20line','Shift+Alt+ArrowDown','bind','Cmd+Alt+]'];_0x5261=function(){return _0x1c6171;};return _0x5261();}import{getTranslation as _0x497f34}from'./utils/common-translations.js';import{env as _0x564785,uid as _0x2a46bd}from'ckeditor5/src/utils.js';function _0x37fd(_0x569320,_0xd58b25){const _0x5261c4=_0x5261();return _0x37fd=function(_0x37fdb8,_0x147cdd){_0x37fdb8=_0x37fdb8-0x10e;let _0xffebd4=_0x5261c4[_0x37fdb8];return _0xffebd4;},_0x37fd(_0x569320,_0xd58b25);}import'../theme/sourceeditingenhanced.css';export class SourceEditingEnhancedUI extends _0x4671e9{static get[_0x272679(0x161)](){const _0xc180c9=_0x272679;return _0xc180c9(0x13e);}static get[_0x272679(0x114)](){return[_0x40ad4f];}static get[_0x272679(0x120)](){return!0x0;}static get[_0x272679(0x12f)](){return!0x0;}[_0x272679(0x163)](){const _0x474386=_0x272679,_0x3e7d86=this[_0x474386(0x149)],_0xcbcf66=_0x3e7d86[_0x474386(0x150)],_0x7d748f=new _0x3125d7(_0x3e7d86);_0x3e7d86[_0x474386(0x12a)][_0x474386(0x148)](_0x474386(0x155),_0x7d748f),_0x3e7d86['ui'][_0x474386(0x13c)][_0x474386(0x148)](_0x474386(0x128),()=>{const _0x4643e9=_0x474386,_0x288186=this[_0x4643e9(0x12e)](_0x785d0b,_0x7d748f);return _0x288186[_0x4643e9(0x13d)]({'label':_0x497f34(_0xcbcf66,_0x4643e9(0x133)),'icon':_0x5d323b,'tooltip':_0x497f34(_0xcbcf66,_0x4643e9(0x11e)),'class':_0x4643e9(0x152)}),_0x288186;}),_0x3e7d86['ui'][_0x474386(0x13c)][_0x474386(0x148)](_0x474386(0x138),()=>{const _0x5e3cbe=_0x474386,_0x33f685=this[_0x5e3cbe(0x12e)](_0x1c6554,_0x7d748f,!0x0);return _0x33f685[_0x5e3cbe(0x13d)]({'label':_0x497f34(_0xcbcf66,_0x5e3cbe(0x11e)),'icon':_0x5d323b,'role':_0x5e3cbe(0x11c)}),_0x33f685;}),this[_0x474386(0x12d)]();}[_0x272679(0x15b)](){!async function(_0x586bc6){const _0x1f2186=_0x521f4b([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0xe870ce=0x305505ed,_0x10b27a=0x305276b5^_0xe870ce,_0x309846=window[_0x521f4b([0x44,0x61,0x74,0x65])][_0x521f4b([0x6e,0x6f,0x77])](),_0x386112=_0x586bc6[_0x521f4b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x25f37e=new window[(_0x521f4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57e3b0=>{_0x386112[_0x521f4b([0x6f,0x6e,0x63,0x65])](_0x521f4b([0x72,0x65,0x61,0x64,0x79]),_0x57e3b0);}),_0x561cb1={[_0x521f4b([0x6b,0x74,0x79])]:_0x521f4b([0x45,0x43]),[_0x521f4b([0x75,0x73,0x65])]:_0x521f4b([0x73,0x69,0x67]),[_0x521f4b([0x63,0x72,0x76])]:_0x521f4b([0x50,0x2d,0x32,0x35,0x36]),[_0x521f4b([0x78])]:_0x521f4b([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]),[_0x521f4b([0x79])]:_0x521f4b([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]),[_0x521f4b([0x61,0x6c,0x67])]:_0x521f4b([0x45,0x53,0x32,0x35,0x36])},_0x25343a=_0x386112[_0x521f4b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x521f4b([0x67,0x65,0x74])](_0x521f4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36ead3(){let _0x823a52,_0x358a06=null,_0x4dd80c=null;try{if(_0x25343a==_0x521f4b([0x47,0x50,0x4c]))return _0x521f4b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x823a52=_0x50c6b8(),!_0x823a52)return _0x521f4b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x823a52[_0x521f4b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4dd80c=_0x51daf2(_0x823a52[_0x521f4b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x823a52[_0x521f4b([0x6a,0x74,0x69])])),await _0x4a4c6e()?_0x3528c1()?_0x33ee45()?_0x521f4b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19c897()?(_0x823a52[_0x521f4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x521f4b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x358a06=_0x16b216(_0x521f4b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x823a52[_0x521f4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x521f4b([0x74,0x72,0x69,0x61,0x6c])&&(_0x358a06=_0x16b216(_0x521f4b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34ba02()):_0x521f4b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x521f4b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x521f4b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x521f4b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33ee45(){const _0x167c08=[_0x521f4b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x521f4b([0x74,0x72,0x69,0x61,0x6c])][_0x521f4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x823a52[_0x521f4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x309846/0x3e8:0xe10*_0x10b27a;return _0x823a52[_0x521f4b([0x65,0x78,0x70])]<_0x167c08;}function _0x3528c1(){const _0x306bd4=_0x823a52[_0x521f4b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x306bd4&&(!!_0x306bd4[_0x521f4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x521f4b([0x2a]))||!!_0x306bd4[_0x521f4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x521f4b([0x53,0x45,0x45])));}function _0x19c897(){const _0x2d5cd7=_0x37fd,_0x4d97a7=_0x823a52[_0x521f4b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4d97a7||0x0==_0x4d97a7[_0x521f4b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c700e}=new URL(window[_0x521f4b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2d5cd7(0x154)]);if(_0x4d97a7[_0x521f4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c700e))return!0x0;const _0x36997b=_0x4c700e[_0x521f4b([0x73,0x70,0x6c,0x69,0x74])](_0x521f4b([0x2e]));return _0x4d97a7[_0x521f4b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5bdc7=>_0x5bdc7[_0x521f4b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x521f4b([0x2a])))[_0x521f4b([0x6d,0x61,0x70])](_0x4ae60a=>_0x4ae60a[_0x521f4b([0x73,0x70,0x6c,0x69,0x74])](_0x521f4b([0x2e])))[_0x521f4b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d04e2=>_0x2d04e2[_0x521f4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x36997b[_0x521f4b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x521f4b([0x6d,0x61,0x70])](_0x2ce574=>Array(_0x36997b[_0x521f4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2ce574[_0x521f4b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x521f4b([0x66,0x69,0x6c,0x6c])](_0x2ce574[0x0]===_0x521f4b([0x2a])?_0x521f4b([0x2a]):'')[_0x521f4b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2ce574))[_0x521f4b([0x73,0x6f,0x6d,0x65])](_0x2fbee1=>_0x36997b[_0x521f4b([0x65,0x76,0x65,0x72,0x79])]((_0x15fb2b,_0x4d9c08)=>_0x2fbee1[_0x4d9c08]===_0x15fb2b||_0x2fbee1[_0x4d9c08]===_0x521f4b([0x2a])));}function _0x34ba02(){return _0x358a06&&_0x4dd80c?new window[(_0x521f4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bec5c,_0x401480)=>{_0x358a06[_0x521f4b([0x74,0x68,0x65,0x6e])](_0x4bec5c,_0x401480),_0x4dd80c[_0x521f4b([0x74,0x68,0x65,0x6e])](_0x553de0=>{_0x553de0!=_0x521f4b([0x56,0x61,0x6c,0x69,0x64])&&_0x4bec5c(_0x553de0);},_0x401480);}):_0x358a06||_0x4dd80c||_0x521f4b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51daf2(_0x49acb7,_0x471033){return new window[(_0x521f4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf513be=>{if(_0x474beb())return _0xf513be(_0x521f4b([0x56,0x61,0x6c,0x69,0x64]));_0x58ebfb(),_0x386112[_0x521f4b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x521f4b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x258d49=!0x1;const _0x342c36=_0x2a46bd();function _0x1a8be2(_0x47dcae){return!!_0x47dcae&&(typeof _0x47dcae===_0x521f4b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x47dcae===_0x521f4b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x47dcae[_0x521f4b([0x74,0x68,0x65,0x6e])]===_0x521f4b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x47dcae[_0x521f4b([0x63,0x61,0x74,0x63,0x68])]===_0x521f4b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2da226(_0x98651f){_0x2ce5a4(_0x98651f)[_0x521f4b([0x74,0x68,0x65,0x6e])](_0x5f2386=>{if(!_0x5f2386||_0x5f2386[_0x521f4b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x521f4b([0x6f,0x6b]))return _0x521f4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x17a882(_0xe7f952(_0x342c36+_0x471033))!=_0x5f2386[_0x521f4b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x521f4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x521f4b([0x56,0x61,0x6c,0x69,0x64]);})[_0x521f4b([0x74,0x68,0x65,0x6e])](_0x99d159=>(_0x487d68(),_0x99d159),()=>{const _0x1cf006=_0x2ba7e5();return null==_0x1cf006?(_0x487d68(),_0x521f4b([0x56,0x61,0x6c,0x69,0x64])):_0x521f4b(_0x309846-_0x1cf006>(0x145981ed^_0xe870ce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x521f4b([0x74,0x68,0x65,0x6e])](_0xf513be)[_0x521f4b([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf513be(_0x521f4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7dd087=0x3063eb6d^_0xe870ce;function _0x487d68(){const _0x2a0ff4=_0x521f4b([0x6c,0x6c,0x63,0x74,0x2d])+_0x17a882(_0xe7f952(_0x49acb7)),_0x15bc34=_0x301e9f(_0x17a882(window[_0x521f4b([0x4d,0x61,0x74,0x68])][_0x521f4b([0x63,0x65,0x69,0x6c])](_0x309846/_0x7dd087)));window[_0x521f4b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x521f4b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a0ff4,_0x15bc34);}function _0x2ba7e5(){const _0x12e51a=_0x521f4b([0x6c,0x6c,0x63,0x74,0x2d])+_0x17a882(_0xe7f952(_0x49acb7)),_0x514a8a=window[_0x521f4b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x521f4b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12e51a);return _0x514a8a?window[_0x521f4b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x301e9f(_0x514a8a),0x10)*_0x7dd087:null;}function _0x2ce5a4(_0xc78f8a){return new window[(_0x521f4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ccba4,_0x3db5b3)=>{_0xc78f8a[_0x521f4b([0x74,0x68,0x65,0x6e])](_0x5ccba4,_0x3db5b3),window[_0x521f4b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3db5b3,0x3054d12d^_0xe870ce);});}}_0x386112[_0x521f4b([0x6f,0x6e])](_0x521f4b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x54e377,_0x338e38)=>{if(_0x338e38[0x0]!=_0x49acb7)return _0xf513be(_0x521f4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x338e38[0x1]={..._0x338e38[0x1],[_0x521f4b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x342c36};},{[_0x521f4b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x521f4b([0x68,0x69,0x67,0x68])}),_0x386112[_0x521f4b([0x6f,0x6e])](_0x521f4b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xe94714=>{_0x1a8be2(_0xe94714[_0x521f4b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x258d49=!0x0,_0x2da226(_0xe94714[_0x521f4b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x521f4b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x521f4b([0x6c,0x6f,0x77])}),_0x25f37e[_0x521f4b([0x74,0x68,0x65,0x6e])](()=>{_0x258d49||_0xf513be(_0x521f4b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x474beb(){return _0x386112[_0x521f4b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x521f4b([0x76,0x69,0x65,0x77])][_0x521f4b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x521f4b([0x61,0x75,0x74,0x6f]);}function _0x58ebfb(){_0x386112[_0x521f4b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x521f4b([0x76,0x69,0x65,0x77])][_0x521f4b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x521f4b([0x61,0x75,0x74,0x6f]);}}function _0x16b216(_0x12c381){const _0xaac915=[new window[(_0x521f4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a6bf0=>setTimeout(_0x2a6bf0,0x305c3b21^_0xe870ce)),_0x25f37e[_0x521f4b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x521f4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x307de3=>{let _0x102e93=0x0;_0x386112[_0x521f4b([0x6d,0x6f,0x64,0x65,0x6c])][_0x521f4b([0x6f,0x6e])](_0x521f4b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x15cfd1,_0xd08b26)=>{_0xd08b26[0x0][_0x521f4b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x102e93++,_0x102e93==(0x30550415^_0xe870ce)&&(_0x307de3(),_0x15cfd1[_0x521f4b([0x6f,0x66,0x66])]());});}))];return window[_0x521f4b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x521f4b([0x72,0x61,0x63,0x65])](_0xaac915)[_0x521f4b([0x74,0x68,0x65,0x6e])](()=>_0x12c381);}async function _0x278f41(){await _0x25f37e,_0x386112[_0x521f4b([0x6d,0x6f,0x64,0x65,0x6c])][_0x521f4b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f5a25,_0x386112[_0x521f4b([0x6d,0x6f,0x64,0x65,0x6c])][_0x521f4b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f5a25,_0x386112[_0x521f4b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x521f4b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e8781(_0x349b7f){const _0x5c69de=_0x3e0dff();_0x386112[_0x5c69de]=_0x521f4b([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])+_0x349b7f,_0x349b7f!=_0x521f4b([0x56,0x61,0x6c,0x69,0x64])&&_0x278f41();}function _0x3e0dff(){const _0x22fac6=window[_0x521f4b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x521f4b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x521f4b([0x6e,0x6f,0x77])]())[_0x521f4b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x521f4b([0x2e]),'');let _0x4d4c8f=_0x521f4b([0x75]);for(let _0x44128a=0x0;_0x44128a<_0x22fac6[_0x521f4b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44128a+=0x2){let _0xf4a0c3=window[_0x521f4b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22fac6[_0x521f4b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44128a,_0x44128a+0x2));_0xf4a0c3>=_0x1f2186[_0x521f4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf4a0c3-=_0x1f2186[_0x521f4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d4c8f+=_0x1f2186[_0xf4a0c3];}return _0x4d4c8f;}function _0x50c6b8(){const _0x850af1=_0x25343a[_0x521f4b([0x73,0x70,0x6c,0x69,0x74])](_0x521f4b([0x2e]));if(0x3!=_0x850af1[_0x521f4b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x48c280(_0x850af1[0x1]);function _0x48c280(_0x69ffe3){const _0x190f37=_0x24d350(_0x69ffe3);return _0x190f37&&_0x2ab71a()?_0x190f37:null;function _0x2ab71a(){const _0x293889=_0x190f37[_0x521f4b([0x6a,0x74,0x69])],_0xfd4605=window[_0x521f4b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x293889[_0x521f4b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x293889[_0x521f4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x637ce3={..._0x190f37,[_0x521f4b([0x6a,0x74,0x69])]:_0x293889[_0x521f4b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x293889[_0x521f4b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x637ce3[_0x521f4b([0x76,0x63])],_0xe7f952(_0x637ce3)==_0xfd4605;}}}async function _0x4a4c6e(){let _0x53d018=!0x0;try{const _0x5ef238=_0x25343a[_0x521f4b([0x73,0x70,0x6c,0x69,0x74])](_0x521f4b([0x2e])),[_0x16f1fa,_0x3dc095,_0x402a8a]=_0x5ef238;return _0x178a4f(_0x16f1fa),await _0x55f779(_0x16f1fa,_0x3dc095,_0x402a8a),_0x53d018;}catch{return!0x1;}function _0x178a4f(_0x20d4b3){const _0x12658e=_0x24d350(_0x20d4b3);_0x12658e&&_0x12658e[_0x521f4b([0x61,0x6c,0x67])]==_0x521f4b([0x45,0x53,0x32,0x35,0x36])||(_0x53d018=!0x1);}async function _0x55f779(_0x18644f,_0x4a2bea,_0x174f0d){const _0x51750c=window[_0x521f4b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x521f4b([0x66,0x72,0x6f,0x6d])](_0x1de7b3(_0x174f0d),_0x397584=>_0x397584[_0x521f4b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1ac42e=new window[(_0x521f4b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x521f4b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18644f+_0x521f4b([0x2e])+_0x4a2bea),_0x232933=window[_0x521f4b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x521f4b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x232933)return;const _0x5f1c81=await _0x232933[_0x521f4b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x521f4b([0x6a,0x77,0x6b]),_0x561cb1,{[_0x521f4b([0x6e,0x61,0x6d,0x65])]:_0x521f4b([0x45,0x43,0x44,0x53,0x41]),[_0x521f4b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x521f4b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x521f4b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x232933[_0x521f4b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x521f4b([0x6e,0x61,0x6d,0x65])]:_0x521f4b([0x45,0x43,0x44,0x53,0x41]),[_0x521f4b([0x68,0x61,0x73,0x68])]:{[_0x521f4b([0x6e,0x61,0x6d,0x65])]:_0x521f4b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5f1c81,_0x51750c,_0x1ac42e)||(_0x53d018=!0x1);}}function _0x24d350(_0x55ae0e){return _0x55ae0e[_0x521f4b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x521f4b([0x65,0x79]))?JSON[_0x521f4b([0x70,0x61,0x72,0x73,0x65])](_0x1de7b3(_0x55ae0e)):null;}function _0x1de7b3(_0x4cfefe){return window[_0x521f4b([0x61,0x74,0x6f,0x62])](_0x4cfefe[_0x521f4b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x521f4b([0x2b]))[_0x521f4b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x521f4b([0x2f])));}function _0xe7f952(_0x215315){let _0x480028=0x1505;function _0x371fe9(_0x29eabc){for(let _0x13109d=0x0;_0x13109d<_0x29eabc[_0x521f4b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x13109d++){const _0x152834=_0x29eabc[_0x521f4b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x13109d);_0x480028=(_0x480028<<0x5)+_0x480028+_0x152834,_0x480028&=_0x480028;}}function _0x3094f4(_0x37e28d){Array[_0x521f4b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x37e28d)?_0x37e28d[_0x521f4b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3094f4):_0x37e28d&&typeof _0x37e28d==_0x521f4b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x521f4b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x37e28d)[_0x521f4b([0x73,0x6f,0x72,0x74])]()[_0x521f4b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x51c067,_0x4e398a])=>{_0x371fe9(_0x51c067),_0x3094f4(_0x4e398a);}):_0x371fe9(window[_0x521f4b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x37e28d));}return _0x3094f4(_0x215315),_0x480028>>>0x0;}function _0x17a882(_0x3c05ef){return _0x3c05ef[_0x521f4b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x521f4b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x521f4b([0x30]));}function _0x301e9f(_0x1925d5){return _0x1925d5[_0x521f4b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x521f4b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x521f4b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3f5a25(){}function _0x521f4b(_0x153af3){const _0x7cb3fc=_0x37fd;return _0x153af3[_0x7cb3fc(0x11f)](_0x2aa535=>String[_0x7cb3fc(0x156)](_0x2aa535))[_0x7cb3fc(0x122)]('');}_0x1e8781(await _0x36ead3());}(this);}[_0x272679(0x12e)](_0x4aff78,_0x5a6d57,_0x1dae53=!0x1){const _0x1d2c77=_0x272679,_0x586db9=new _0x4aff78(this[_0x1d2c77(0x149)][_0x1d2c77(0x150)]);return _0x586db9[_0x1d2c77(0x13d)]({'withText':_0x1dae53,'isToggleable':!0x1}),_0x586db9[_0x1d2c77(0x143)](_0x1d2c77(0x139))['to'](_0x5a6d57,_0x1d2c77(0x139)),this[_0x1d2c77(0x15a)](_0x586db9,_0x1d2c77(0x134),()=>_0x5a6d57[_0x1d2c77(0x134)]()),_0x586db9;}[_0x272679(0x12d)](){const _0x4ab562=_0x272679,_0x5db280=this[_0x4ab562(0x149)][_0x4ab562(0x150)];this[_0x4ab562(0x149)][_0x4ab562(0x151)][_0x4ab562(0x130)]({'id':_0x4ab562(0x128),'label':_0x497f34(_0x5db280,_0x4ab562(0x14d))});const _0x381c63=_0x564785[_0x4ab562(0x14b)]||_0x564785[_0x4ab562(0x10f)];this[_0x4ab562(0x149)][_0x4ab562(0x151)][_0x4ab562(0x15c)]({'categoryId':_0x4ab562(0x128),'keystrokes':[{'label':_0x497f34(_0x5db280,_0x4ab562(0x13f)),'keystroke':_0x4ab562(0x142)},{'label':_0x497f34(_0x5db280,_0x4ab562(0x14c)),'keystroke':_0x4ab562(0x153)},{'label':_0x497f34(_0x5db280,_0x4ab562(0x12b)),'keystroke':_0x4ab562(0x147)},{'label':_0x497f34(_0x5db280,_0x4ab562(0x112)),'keystroke':_0x4ab562(0x119)},{'label':_0x497f34(_0x5db280,_0x4ab562(0x12c)),'keystroke':_0x4ab562(0x157)},{'label':_0x497f34(_0x5db280,_0x4ab562(0x145)),'keystroke':_0x4ab562(0x117)},{'label':_0x497f34(_0x5db280,_0x4ab562(0x136)),'keystroke':_0x381c63?_0x4ab562(0x113):_0x4ab562(0x146)},{'label':_0x497f34(_0x5db280,_0x4ab562(0x159)),'keystroke':_0x4ab562(0x132)},{'label':_0x497f34(_0x5db280,_0x4ab562(0x131)),'keystroke':_0x4ab562(0x162)},{'label':_0x497f34(_0x5db280,_0x4ab562(0x126)),'keystroke':[[_0x4ab562(0x13a)],[_0x4ab562(0x15f)]]},{'label':_0x497f34(_0x5db280,_0x4ab562(0x141)),'keystroke':_0x381c63?_0x4ab562(0x14a):_0x4ab562(0x15d)},{'label':_0x497f34(_0x5db280,_0x4ab562(0x13b)),'keystroke':_0x381c63?_0x4ab562(0x11d):_0x4ab562(0x110)},{'label':_0x497f34(_0x5db280,_0x4ab562(0x140)),'keystroke':_0x4ab562(0x121)},{'label':_0x497f34(_0x5db280,_0x4ab562(0x137)),'keystroke':_0x4ab562(0x127)},{'label':_0x497f34(_0x5db280,_0x4ab562(0x10e)),'keystroke':_0x4ab562(0x135)},{'label':_0x497f34(_0x5db280,_0x4ab562(0x116)),'keystroke':_0x4ab562(0x158)},{'label':_0x497f34(_0x5db280,_0x4ab562(0x123)),'keystroke':_0x381c63?_0x4ab562(0x144):_0x4ab562(0x11b)}]});}}
|
package/src/ui/codeeditorview.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x5fb2(_0x3e0993,_0x3719f2){var _0x69bad6=_0x69ba();return _0x5fb2=function(_0x5fb29f,_0x4d0ed5){_0x5fb29f=_0x5fb29f-0x1d1;var _0x32b5c7=_0x69bad6[_0x5fb29f];return _0x32b5c7;},_0x5fb2(_0x3e0993,_0x3719f2);}var _0x1ca805=_0x5fb2;(function(_0x2d8e34,_0xda6630){var _0x4826b2=_0x5fb2,_0x153fb2=_0x2d8e34();while(!![]){try{var _0x4df7b1=-parseInt(_0x4826b2(0x1d4))/0x1+-parseInt(_0x4826b2(0x1d5))/0x2*(parseInt(_0x4826b2(0x1db))/0x3)+parseInt(_0x4826b2(0x1e2))/0x4+-parseInt(_0x4826b2(0x1d7))/0x5*(parseInt(_0x4826b2(0x1de))/0x6)+parseInt(_0x4826b2(0x1e0))/0x7+-parseInt(_0x4826b2(0x1e1))/0x8+parseInt(_0x4826b2(0x1e4))/0x9;if(_0x4df7b1===_0xda6630)break;else _0x153fb2['push'](_0x153fb2['shift']());}catch(_0x5b10af){_0x153fb2['push'](_0x153fb2['shift']());}}}(_0x69ba,0xaf888));import{View as _0x328901}from'ckeditor5/src/ui.js';import{createCodeMirrorEditor as _0x22412a}from'../utils/createcodemirroreditor.js';function _0x69ba(){var _0x15af5c=['destroy','theme','change:isReadOnly','1140213hROtzs','setReadOnly','getData','6LdUMqW','_options','4059643nYeobi','4411984pScaZA','4414992NFQHJM','setData','16826247axcnUZ','div','isReadOnly','focus','setTemplate','_codeEditorApi','syntaxLanguage','set','ck-reset_all-excluded','render','element','1027953JSOoJT','2zEMCpC','ck-code-editor','4373870Llcoxs'];_0x69ba=function(){return _0x15af5c;};return _0x69ba();}export class CodeEditorView extends _0x328901{[_0x1ca805(0x1e9)]=null;[_0x1ca805(0x1df)];constructor(_0x3e51c5,_0x156b36){var _0x346c55=_0x1ca805;super(_0x3e51c5),this[_0x346c55(0x1df)]=_0x156b36,this[_0x346c55(0x1eb)](_0x346c55(0x1e6),!0x1),this[_0x346c55(0x1e8)]({'tag':_0x346c55(0x1e5),'attributes':{'class':['ck',_0x346c55(0x1d1),_0x346c55(0x1d6)],'tabindex':-0x1}});}[_0x1ca805(0x1d2)](){var _0x2889a6=_0x1ca805;super[_0x2889a6(0x1d2)](),this[_0x2889a6(0x1e9)]=_0x22412a({'parent':this[_0x2889a6(0x1d3)],'syntaxLanguage':this[_0x2889a6(0x1df)][_0x2889a6(0x1ea)],'theme':this[_0x2889a6(0x1df)][_0x2889a6(0x1d9)]}),this['on'](_0x2889a6(0x1da),(_0x9490dc,_0x56d44b,_0x286128)=>{var _0x2bf19d=_0x2889a6;this[_0x2bf19d(0x1dc)](_0x286128);});}[_0x1ca805(0x1d8)](){var _0x2b9376=_0x1ca805;super[_0x2b9376(0x1d8)](),this[_0x2b9376(0x1e9)][_0x2b9376(0x1d8)](),this[_0x2b9376(0x1e9)]=null;}[_0x1ca805(0x1e7)](){var _0x57b48a=_0x1ca805;this[_0x57b48a(0x1e6)]?this[_0x57b48a(0x1d3)][_0x57b48a(0x1e7)]():this[_0x57b48a(0x1e9)][_0x57b48a(0x1e7)]();}[_0x1ca805(0x1dd)](){var _0x16f783=_0x1ca805;return this[_0x16f783(0x1e9)][_0x16f783(0x1dd)]();}[_0x1ca805(0x1e3)](_0xed6510){var _0x19cf30=_0x1ca805;this[_0x19cf30(0x1e9)][_0x19cf30(0x1e3)](_0xed6510);}[_0x1ca805(0x1dc)](_0x1e8079){var _0xbad908=_0x1ca805;this[_0xbad908(0x1e9)][_0xbad908(0x1dc)](_0x1e8079);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x558c48=_0x3551;(function(_0x4efcd7,_0x4b3712){const _0x3182c9=_0x3551,_0x20032d=_0x4efcd7();while(!![]){try{const _0x5956e2=parseInt(_0x3182c9(0x17d))/0x1*(-parseInt(_0x3182c9(0x195))/0x2)+-parseInt(_0x3182c9(0x18e))/0x3*(-parseInt(_0x3182c9(0x19b))/0x4)+-parseInt(_0x3182c9(0x178))/0x5+parseInt(_0x3182c9(0x1a3))/0x6*(-parseInt(_0x3182c9(0x16f))/0x7)+-parseInt(_0x3182c9(0x194))/0x8*(parseInt(_0x3182c9(0x16c))/0x9)+-parseInt(_0x3182c9(0x17b))/0xa+parseInt(_0x3182c9(0x192))/0xb;if(_0x5956e2===_0x4b3712)break;else _0x20032d['push'](_0x20032d['shift']());}catch(_0x234d58){_0x20032d['push'](_0x20032d['shift']());}}}(_0x82f8,0x78502));import{Command as _0x4405cb,PendingActions as _0x2d7918}from'ckeditor5/src/core.js';import{getTranslation as _0x2a4a72}from'../utils/common-translations.js';function _0x82f8(){const _0x1ad1ff=['_disableCommands','Cancel','1353200BJVuuv','replaceSource','sourceEditingEnhanced','3427240pXnpyH','element','6WjnUmt','set','setData','config','Edit\x20source\x20modal\x20label','hide','refresh','locale','names','commands','plugins','bind','includes','sourceEditingEnhanced.theme','view','has','change:hasAny','3wqbQxx','SourceEditingEnhancedMode','show','affectsData','10197099cQYMsr','markdown','291960rQJNaR','32754otLQJk','forceDisabled','getData','Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.','editables','editSource','3032612CNCfcn','ck-button-action','clearForceDisabled','confirm','editor','Save','off','html','78pnSpON','execute','Markdown','stop','Dialog','focus','destroy','45IrWexk','ck-source-editing-enhanced-dialog','data','160601YWdXNk','get','pendingActions','highest','_enableCommands','isEnabled','isReadOnly'];_0x82f8=function(){return _0x1ad1ff;};return _0x82f8();}import{getActiveRootName as _0x30160a}from'../utils/getactiverootname.js';import{formatSource as _0x872e2e,unformatSource as _0x55fad5}from'../utils/format.js';import{CodeEditorView as _0x465771}from'./codeeditorview.js';function _0x3551(_0x5828c3,_0x48a02d){const _0x82f8f2=_0x82f8();return _0x3551=function(_0x355189,_0x2729e3){_0x355189=_0x355189-0x168;let _0x2c8533=_0x82f8f2[_0x355189];return _0x2c8533;},_0x3551(_0x5828c3,_0x48a02d);}const te=_0x558c48(0x18f);export class EditSourceCommand extends _0x4405cb{constructor(_0x14e503){const _0x4c52b7=_0x558c48;super(_0x14e503),this[_0x4c52b7(0x191)]=!0x1,this[_0x4c52b7(0x19f)][_0x4c52b7(0x187)][_0x4c52b7(0x170)](_0x2d7918)['on'](_0x4c52b7(0x18d),(_0x2af186,_0x1591ad,_0x8b48be)=>{const _0x154b38=_0x4c52b7;_0x8b48be?this[_0x154b38(0x196)](_0x154b38(0x171)):this[_0x154b38(0x19d)](_0x154b38(0x171));});}[_0x558c48(0x176)](){const _0x1911c9=_0x558c48,_0x4ddb7f=this[_0x1911c9(0x19f)];for(const _0x4e9bba of _0x4ddb7f[_0x1911c9(0x186)][_0x1911c9(0x185)]())[_0x1911c9(0x179),_0x1911c9(0x19a)][_0x1911c9(0x189)](_0x4e9bba)||_0x4ddb7f[_0x1911c9(0x186)][_0x1911c9(0x170)](_0x4e9bba)[_0x1911c9(0x196)](te);}[_0x558c48(0x173)](){const _0x1e3bd2=_0x558c48,_0xe7134f=this[_0x1e3bd2(0x19f)];for(const _0x272b59 of _0xe7134f[_0x1e3bd2(0x186)][_0x1e3bd2(0x186)]())_0x272b59[_0x1e3bd2(0x19d)](te);}[_0x558c48(0x183)](){const _0x56bb3d=_0x558c48;this[_0x56bb3d(0x174)]=!0x0;}[_0x558c48(0x1a4)](){const _0x282825=_0x558c48,_0x2d35b7=this[_0x282825(0x19f)],_0x2082b4=_0x2d35b7[_0x282825(0x184)],_0x1bfa25=_0x2d35b7[_0x282825(0x187)][_0x282825(0x170)](_0x282825(0x169)),_0x599cba=_0x30160a(_0x2d35b7),_0x21f495=_0x2d35b7[_0x282825(0x16e)][_0x282825(0x170)]({'rootName':_0x599cba}),_0x148abf=_0x872e2e(_0x21f495),_0x151ebe=new _0x465771(_0x2082b4,{'syntaxLanguage':_0x2d35b7[_0x282825(0x187)][_0x282825(0x18c)](_0x282825(0x1a5))?_0x282825(0x193):_0x282825(0x1a2),'theme':_0x2d35b7[_0x282825(0x180)][_0x282825(0x170)](_0x282825(0x18a))});let _0xa8f898=!0x0;const _0x1c4376=_0x51699e=>{const _0x4363a0=_0x282825;if(!_0xa8f898)return;const _0x14e0b3=_0x151ebe[_0x4363a0(0x197)]();return _0x55fad5(_0x14e0b3)!==_0x55fad5(_0x148abf)?window[_0x4363a0(0x19e)](_0x2a4a72(_0x2082b4,_0x4363a0(0x198)))?void 0x0:_0x51699e[_0x4363a0(0x168)]():void 0x0;};_0x1bfa25[_0x282825(0x190)]({'id':_0x282825(0x17a),'title':_0x2a4a72(_0x2082b4,_0x282825(0x181)),'isModal':!0x0,'className':_0x282825(0x16d),'content':_0x151ebe,'actionButtons':[{'label':_0x2a4a72(_0x2082b4,_0x282825(0x177)),'withText':!0x0,'onExecute':()=>{const _0x272e95=_0x282825;_0x1bfa25[_0x272e95(0x182)]();}},{'label':_0x2a4a72(_0x2082b4,_0x282825(0x1a0)),'class':_0x282825(0x19c),'withText':!0x0,'onExecute':()=>{const _0x38af06=_0x282825,_0xd1f437=_0x151ebe[_0x38af06(0x197)](),_0x1c68cb=_0x55fad5(_0xd1f437)!==_0x55fad5(_0x148abf);(_0x1c68cb&&_0x2d35b7[_0x38af06(0x1a4)](_0x38af06(0x179),_0x151ebe[_0x38af06(0x197)]()),_0xa8f898=!0x1,_0x1bfa25[_0x38af06(0x182)](),_0x1c68cb&&_0x38af06(0x199)in _0x2d35b7['ui'][_0x38af06(0x18b)])&&_0x2d35b7['ui'][_0x38af06(0x18b)][_0x38af06(0x199)][_0x599cba][_0x38af06(0x17c)][_0x38af06(0x16a)]();},'onCreate':_0x17b201=>{const _0x4f63f6=_0x282825;_0x17b201[_0x4f63f6(0x17e)](_0x4f63f6(0x174),!_0x2d35b7[_0x4f63f6(0x175)]),_0x17b201[_0x4f63f6(0x188)](_0x4f63f6(0x174))['to'](_0x2d35b7,_0x4f63f6(0x175),this,_0x4f63f6(0x174),(_0x31b61b,_0xb37262)=>!_0x31b61b&&_0xb37262);}}],'onHide':()=>{const _0xae5f27=_0x282825;this[_0xae5f27(0x173)](),_0x1bfa25[_0xae5f27(0x1a1)](_0xae5f27(0x182),_0x1c4376),_0x151ebe[_0xae5f27(0x16b)]();},'onShow':()=>{const _0x43ed35=_0x282825;_0x151ebe[_0x43ed35(0x188)](_0x43ed35(0x175))['to'](_0x2d35b7,_0x43ed35(0x175),this,_0x43ed35(0x174),(_0x9c8a62,_0x1f5ee1)=>_0x9c8a62||!_0x1f5ee1),_0x151ebe[_0x43ed35(0x17f)](_0x148abf),_0x151ebe[_0x43ed35(0x16a)](),_0x1bfa25['on'](_0x43ed35(0x182),_0x1c4376,{'priority':_0x43ed35(0x172)}),this[_0x43ed35(0x176)]();}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x61994b,_0xce0cdc){const _0x313bf8=_0x41fc,_0xdd3744=_0x61994b();while(!![]){try{const _0x36947b=parseInt(_0x313bf8(0x15f))/0x1*(-parseInt(_0x313bf8(0x157))/0x2)+-parseInt(_0x313bf8(0x16a))/0x3+parseInt(_0x313bf8(0x162))/0x4+-parseInt(_0x313bf8(0x178))/0x5*(-parseInt(_0x313bf8(0x15a))/0x6)+parseInt(_0x313bf8(0x15e))/0x7+parseInt(_0x313bf8(0x164))/0x8+parseInt(_0x313bf8(0x160))/0x9*(-parseInt(_0x313bf8(0x16c))/0xa);if(_0x36947b===_0xce0cdc)break;else _0xdd3744['push'](_0xdd3744['shift']());}catch(_0x5af966){_0xdd3744['push'](_0xdd3744['shift']());}}}(_0x2590,0xabfde));import{lineNumbers as _0x4e394c,highlightActiveLineGutter as _0x545272,highlightSpecialChars as _0x404754,drawSelection as _0x514b9b,dropCursor as _0x3bf741,rectangularSelection as _0x58f230,crosshairCursor as _0xb84e23,highlightActiveLine as _0x355c80,keymap as _0x33b0a3,EditorView as _0x370421}from'@codemirror/view';import{Compartment as _0x3d430b,Transaction as _0x27cb00}from'@codemirror/state';import{foldGutter as _0x5205c4,indentOnInput as _0x5b80a1,syntaxHighlighting as _0x3c676f,defaultHighlightStyle as _0xffc3ca,bracketMatching as _0x471f8f,foldKeymap as _0x5bf2de}from'@codemirror/language';import{history as _0x1ea1e9,defaultKeymap as _0x1d3da4,historyKeymap as _0x4b933e,redo as _0x3540b1,undo as _0x4044e4,indentMore as _0x387e33,indentLess as _0xa6e620,toggleTabFocusMode as _0x145443}from'@codemirror/commands';function _0x2590(){const _0x287f8b=['7796976RjevDN','state','doc','toString','addToHistory','Ctrl-y','2560677ACsmhz','length','14930puSbDl','default','Tab','push','parent','theme','Cmd-y','dispatch','Cmd-Shift-z','Ctrl-z','destroy','Cmd-z','2801035fZhEWe','focus','2aBBAZv','reconfigure','editable','6iSUVgd','lineWrapping','syntaxLanguage','dark','9450847fEokqi','399203qPDOlR','6336LoJjrL','html','493448YBfthQ','Ctrl-Shift-z'];_0x2590=function(){return _0x287f8b;};return _0x2590();}function _0x41fc(_0x1c651d,_0x24b571){const _0x2590ca=_0x2590();return _0x41fc=function(_0x41fc26,_0x3604cf){_0x41fc26=_0x41fc26-0x157;let _0x18524b=_0x2590ca[_0x41fc26];return _0x18524b;},_0x41fc(_0x1c651d,_0x24b571);}import{closeBrackets as _0x5b0b0f,autocompletion as _0x320282,closeBracketsKeymap as _0x5102e9,completionKeymap as _0x18d68c}from'@codemirror/autocomplete';import{html as _0x5b436a}from'@codemirror/lang-html';import{markdown as _0x437a65}from'@codemirror/lang-markdown';import{oneDark as _0x543474}from'@codemirror/theme-one-dark';export function createCodeMirrorEditor(_0x25f666){const _0x4fefdf=_0x41fc,_0x41920b=[_0x370421[_0x4fefdf(0x15b)],_0x320282(),_0x471f8f(),_0x5b0b0f(),_0xb84e23(),_0x514b9b(),_0x3bf741(),_0x4e394c(),_0x5205c4(),_0x355c80(),_0x545272(),_0x404754(),_0x1ea1e9(),_0x5b80a1(),_0x58f230(),_0x3c676f(_0xffc3ca,{'fallback':!0x0})],_0x5d2e76=new _0x3d430b();_0x41920b[_0x4fefdf(0x16f)](_0x5d2e76['of'](_0x370421[_0x4fefdf(0x159)]['of'](!0x0))),_0x4fefdf(0x161)===_0x25f666[_0x4fefdf(0x15c)]?_0x41920b[_0x4fefdf(0x16f)](_0x5b436a()):_0x41920b[_0x4fefdf(0x16f)](_0x437a65());const _0x5949c2=function(_0x24e6fb){const _0x2b74f9=_0x4fefdf;if(_0x24e6fb&&_0x2b74f9(0x16d)!==_0x24e6fb)return _0x2b74f9(0x15d)===_0x24e6fb?_0x543474:_0x24e6fb;return null;}(_0x25f666[_0x4fefdf(0x171)]);_0x5949c2&&_0x41920b[_0x4fefdf(0x16f)](_0x5949c2),_0x41920b[_0x4fefdf(0x16f)](...getKeybindings());const _0x1e027b=new _0x370421({'extensions':_0x41920b,'parent':_0x25f666[_0x4fefdf(0x170)]});return _0x145443(_0x1e027b),{'focus':()=>{const _0x3ff318=_0x4fefdf;_0x1e027b[_0x3ff318(0x173)]({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x1e027b[_0x3ff318(0x179)]();},'getData':()=>_0x1e027b[_0x4fefdf(0x165)][_0x4fefdf(0x166)][_0x4fefdf(0x167)](),'setData':_0x19c853=>{const _0x6f561c=_0x4fefdf;_0x1e027b[_0x6f561c(0x173)]({'changes':{'from':0x0,'to':_0x1e027b[_0x6f561c(0x165)][_0x6f561c(0x166)][_0x6f561c(0x16b)],'insert':_0x19c853},'annotations':_0x27cb00[_0x6f561c(0x168)]['of'](!0x1)});},'setReadOnly':_0x3043f7=>{const _0x8932a9=_0x4fefdf;_0x1e027b[_0x8932a9(0x173)]({'effects':[_0x5d2e76[_0x8932a9(0x158)](_0x370421[_0x8932a9(0x159)]['of'](!_0x3043f7))]});},'destroy':()=>{const _0x30fa53=_0x4fefdf;_0x1e027b[_0x30fa53(0x176)]();},'instance':_0x1e027b};}export function getKeybindings(){const _0x4cd126=_0x41fc;return[_0x33b0a3['of']([..._0x5102e9,..._0x1d3da4,..._0x4b933e,..._0x5bf2de,..._0x18d68c,{'key':_0x4cd126(0x16e),'run':_0x387e33,'shift':_0xa6e620,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x4cd126(0x169),'mac':_0x4cd126(0x172),'run':_0x3540b1,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x4cd126(0x163),'mac':_0x4cd126(0x174),'run':_0x3540b1,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x4cd126(0x175),'mac':_0x4cd126(0x177),'run':_0x4044e4,'preventDefault':!0x0,'stopPropagation':!0x0}])];}
|
package/src/utils/format.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x402235,_0x5d1fce){var _0x27c2b6=_0x2765,_0x2fd823=_0x402235();while(!![]){try{var _0x31bf92=parseInt(_0x27c2b6(0x14a))/0x1*(-parseInt(_0x27c2b6(0x148))/0x2)+-parseInt(_0x27c2b6(0x146))/0x3*(parseInt(_0x27c2b6(0x143))/0x4)+parseInt(_0x27c2b6(0x145))/0x5+-parseInt(_0x27c2b6(0x144))/0x6*(parseInt(_0x27c2b6(0x147))/0x7)+-parseInt(_0x27c2b6(0x14e))/0x8+-parseInt(_0x27c2b6(0x14b))/0x9+parseInt(_0x27c2b6(0x149))/0xa;if(_0x31bf92===_0x5d1fce)break;else _0x2fd823['push'](_0x2fd823['shift']());}catch(_0x3c7b8d){_0x2fd823['push'](_0x2fd823['shift']());}}}(_0x4a2e,0x3fa0b));import{formatHtml as _0x2383fc}from'ckeditor5/src/utils.js';function _0x2765(_0x2fcf95,_0x42e037){var _0x4a2e9c=_0x4a2e();return _0x2765=function(_0x2765ec,_0x2e724e){_0x2765ec=_0x2765ec-0x143;var _0x505717=_0x4a2e9c[_0x2765ec];return _0x505717;},_0x2765(_0x2fcf95,_0x42e037);}export function formatSource(_0x3b9907){return X(_0x3b9907)?_0x2383fc(_0x3b9907):_0x3b9907;}export function unformatSource(_0x2814cb){var _0x434e2a=_0x2765;return X(_0x2814cb[_0x434e2a(0x14c)](/^[\n\s]*/g,''))?_0x2814cb[_0x434e2a(0x14c)](/\s+/g,''):_0x2814cb;}function X(_0x81c610){var _0x2f5c58=_0x2765;return _0x81c610[_0x2f5c58(0x14d)]('<');}function _0x4a2e(){var _0xbf5f2f=['3456729GZFWlj','replace','startsWith','771968jmQjbp','1244072JhSBZn','214806KfCaVz','613320CachWk','3CzdYIp','84LIgotI','88868kcjHaz','15368980ZQunjJ','4JtfZgO'];_0x4a2e=function(){return _0xbf5f2f;};return _0x4a2e();}
|