@ckeditor/ckeditor5-source-editing-enhanced 47.4.0-alpha.2 → 47.4.0-alpha.3
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 _0x371054,PendingActions as _0x5c09b2,Plugin as _0x13c1d3}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4dcec8,formatHtml as _0x231068,env as _0x24e384,uid as _0x4cfa61}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x88ed6c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x42119f,ButtonView as _0x745b69,MenuBarMenuListItemButtonView as _0x26def0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x5b2755,crosshairCursor as _0x364af6,drawSelection as _0x29d275,dropCursor as _0x1552d6,lineNumbers as _0x2584cb,highlightActiveLine as _0xcd887f,highlightActiveLineGutter as _0x375292,highlightSpecialChars as _0x8091ff,rectangularSelection as _0x528a06,keymap as _0x42e3fe}from'@codemirror/view';import{Compartment as _0xf211c8,Transaction as _0x2ec642}from'@codemirror/state';import{bracketMatching as _0x4652c1,foldGutter as _0x4879bc,indentOnInput as _0x1897a8,syntaxHighlighting as _0x17c8f2,defaultHighlightStyle as _0x3ada9e,foldKeymap as _0x3313a8}from'@codemirror/language';import{toggleTabFocusMode as _0x5a64c3,history as _0x53bb21,defaultKeymap as _0x525f30,historyKeymap as _0x56904b,indentLess as _0x1d30cc,indentMore as _0x524f75,redo as _0x1b2708,undo as _0x5a3709}from'@codemirror/commands';import{autocompletion as _0x27039d,closeBrackets as _0x433bc6,closeBracketsKeymap as _0x4f8129,completionKeymap as _0xda32b7}from'@codemirror/autocomplete';import{html as _0xafe03f}from'@codemirror/lang-html';import{markdown as _0x319f2c}from'@codemirror/lang-markdown';import{oneDark as _0xd2a388}from'@codemirror/theme-one-dark';function w(_0x2410af,_0x5b1c38){const t=_0x2410af['t'];switch(_0x5b1c38){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 _0x5b1c38;}}function r(_0x108212){const _0x14a0a7=_0x108212['editing']['view']['document']['roots'],_0x5148f2=_0x14a0a7['length'];if(0x0===_0x5148f2)throw new _0x4dcec8('source-editing-enhanced-editor-no-root',_0x108212);if(0x1===_0x5148f2)return _0x14a0a7['first']['rootName'];return Array['from'](_0x108212['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function $(_0x4cc94a){return X(_0x4cc94a['replace'](/^[\n\s]*/g,''))?_0x4cc94a['replace'](/\s+/g,''):_0x4cc94a;}function X(_0x4f504c){return _0x4f504c['startsWith']('<');}function Y(_0x4804ed){const _0x466d5c=[_0x5b2755['lineWrapping'],_0x27039d(),_0x4652c1(),_0x433bc6(),_0x364af6(),_0x29d275(),_0x1552d6(),_0x2584cb(),_0x4879bc(),_0xcd887f(),_0x375292(),_0x8091ff(),_0x53bb21(),_0x1897a8(),_0x528a06(),_0x17c8f2(_0x3ada9e,{'fallback':!0x0})],_0x3ad809=new _0xf211c8();_0x466d5c['push'](_0x3ad809['of'](_0x5b2755['editable']['of'](!0x0))),'html'===_0x4804ed['syntaxLanguage']?_0x466d5c['push'](_0xafe03f()):_0x466d5c['push'](_0x319f2c());const _0x2ff472=function(_0x2d2cca){if(_0x2d2cca&&'default'!==_0x2d2cca)return'dark'===_0x2d2cca?_0xd2a388:_0x2d2cca;return null;}(_0x4804ed['theme']);_0x2ff472&&_0x466d5c['push'](_0x2ff472),_0x466d5c['push'](_0x42e3fe['of']([..._0x4f8129,..._0x525f30,..._0x56904b,..._0x3313a8,..._0xda32b7,{'key':'Tab','run':_0x524f75,'shift':_0x1d30cc,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x1b2708,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x1b2708,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x5a3709,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x316c21=new _0x5b2755({'extensions':_0x466d5c,'parent':_0x4804ed['parent']});return _0x5a64c3(_0x316c21),{'focus':()=>{_0x316c21['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x316c21['focus']();},'getData':()=>_0x316c21['state']['doc']['toString'](),'setData':_0x4b2403=>{_0x316c21['dispatch']({'changes':{'from':0x0,'to':_0x316c21['state']['doc']['length'],'insert':_0x4b2403},'annotations':_0x2ec642['addToHistory']['of'](!0x1)});},'setReadOnly':_0x5eeb96=>{_0x316c21['dispatch']({'effects':[_0x3ad809['reconfigure'](_0x5b2755['editable']['of'](!_0x5eeb96))]});},'destroy':()=>{_0x316c21['destroy']();},'instance':_0x316c21};}class ee extends _0x42119f{['_codeEditorApi']=null;['_options'];constructor(_0x3a2f34,_0x5043c6){super(_0x3a2f34),this['_options']=_0x5043c6,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',(_0x7455a8,_0x2855ff,_0x1a283c)=>{this['setReadOnly'](_0x1a283c);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x242b0b){this['_codeEditorApi']['setData'](_0x242b0b);}['setReadOnly'](_0x478284){this['_codeEditorApi']['setReadOnly'](_0x478284);}}const te='SourceEditingEnhancedMode';class d extends _0x371054{constructor(_0x7ebc39){super(_0x7ebc39),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x5c09b2)['on']('change:hasAny',(_0x5ac7c0,_0x1cda85,_0x700f25)=>{_0x700f25?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x6e2216=this['editor'];for(const _0x5765e1 of _0x6e2216['commands']['names']())['replaceSource','editSource']['includes'](_0x5765e1)||_0x6e2216['commands']['get'](_0x5765e1)['forceDisabled'](te);}['_enableCommands'](){const _0xe72db9=this['editor'];for(const _0x28c5bd of _0xe72db9['commands']['commands']())_0x28c5bd['clearForceDisabled'](te);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xa31147=this['editor'],_0x5eb457=_0xa31147['locale'],_0x55d992=_0xa31147['plugins']['get']('Dialog'),_0x571481=r(_0xa31147),_0x2e5764=_0xa31147['data']['get']({'rootName':_0x571481}),_0x1e8659=X(_0x31d574=_0x2e5764)?_0x231068(_0x31d574):_0x31d574;var _0x31d574;const _0x1b01a7=new ee(_0x5eb457,{'syntaxLanguage':_0xa31147['plugins']['has']('Markdown')?'markdown':'html','theme':_0xa31147['config']['get']('sourceEditingEnhanced.theme')});let _0x359ef5=!0x0;const _0x23a480=_0x9b0e24=>{if(!_0x359ef5)return;return $(_0x1b01a7['getData']())!==$(_0x1e8659)?window['confirm'](w(_0x5eb457,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x9b0e24['stop']():void 0x0;};_0x55d992['show']({'id':'sourceEditingEnhanced','title':w(_0x5eb457,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x1b01a7,'actionButtons':[{'label':w(_0x5eb457,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x55d992['hide']();}},{'label':w(_0x5eb457,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x5ab093=$(_0x1b01a7['getData']())!==$(_0x1e8659);(_0x5ab093&&_0xa31147['execute']('replaceSource',_0x1b01a7['getData']()),_0x359ef5=!0x1,_0x55d992['hide'](),_0x5ab093&&'editables'in _0xa31147['ui']['view'])&&_0xa31147['ui']['view']['editables'][_0x571481]['element']['focus']();},'onCreate':_0x37d2a0=>{_0x37d2a0['set']('isEnabled',!_0xa31147['isReadOnly']),_0x37d2a0['bind']('isEnabled')['to'](_0xa31147,'isReadOnly',this,'isEnabled',(_0x333375,_0x43d7d8)=>!_0x333375&&_0x43d7d8);}}],'onHide':()=>{this['_enableCommands'](),_0x55d992['off']('hide',_0x23a480),_0x1b01a7['destroy']();},'onShow':()=>{_0x1b01a7['bind']('isReadOnly')['to'](_0xa31147,'isReadOnly',this,'isEnabled',(_0x3a7667,_0x46b31d)=>_0x3a7667||!_0x46b31d),_0x1b01a7['setData'](_0x1e8659),_0x1b01a7['focus'](),_0x55d992['on']('hide',_0x23a480,{'priority':'highest'}),this['_disableCommands']();}});}}class a extends _0x13c1d3{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x5c09b2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5d4fd8=this['editor'],_0x3609a1=_0x5d4fd8['locale'],_0x9d4a32=new d(_0x5d4fd8);_0x5d4fd8['commands']['add']('editSource',_0x9d4a32),_0x5d4fd8['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x18842b=this['_createButton'](_0x745b69,_0x9d4a32);return _0x18842b['set']({'label':w(_0x3609a1,'Source'),'icon':_0x88ed6c,'tooltip':w(_0x3609a1,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x18842b;}),_0x5d4fd8['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x38a0c7=this['_createButton'](_0x26def0,_0x9d4a32,!0x0);return _0x38a0c7['set']({'label':w(_0x3609a1,'Edit\x20source\x20modal\x20label'),'icon':_0x88ed6c,'role':'menuitemcheckbox'}),_0x38a0c7;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0xf48648){const _0xdfbf74=_0x46c3e6([0x4e,0x51,0x56,0x58,0x79,0x42,0x46,0x48,0x4a,0x7a,0x72,0x38,0x57,0x47,0x49,0x34,0x61,0x5a,0x6e,0x54,0x65,0x6f,0x55,0x78,0x36,0x70,0x39,0x6a,0x66,0x76,0x33,0x44,0x69,0x74,0x4c,0x77,0x75,0x63,0x6b,0x59,0x6c,0x68,0x64,0x4d,0x41,0x32,0x4b,0x35,0x53,0x37,0x6d,0x62,0x43,0x4f,0x50,0x45,0x73,0x31,0x71,0x67,0x52,0x30]),_0x5cd63c=0x5dba9314,_0x5d4229=0x5dbded7c^_0x5cd63c,_0xbe30f0=window[_0x46c3e6([0x44,0x61,0x74,0x65])][_0x46c3e6([0x6e,0x6f,0x77])](),_0x85fb79=_0xf48648[_0x46c3e6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x860a70=new window[(_0x46c3e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35114b=>{_0x85fb79[_0x46c3e6([0x6f,0x6e,0x63,0x65])](_0x46c3e6([0x72,0x65,0x61,0x64,0x79]),_0x35114b);}),_0x249281={[_0x46c3e6([0x6b,0x74,0x79])]:_0x46c3e6([0x45,0x43]),[_0x46c3e6([0x75,0x73,0x65])]:_0x46c3e6([0x73,0x69,0x67]),[_0x46c3e6([0x63,0x72,0x76])]:_0x46c3e6([0x50,0x2d,0x32,0x35,0x36]),[_0x46c3e6([0x78])]:_0x46c3e6([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]),[_0x46c3e6([0x79])]:_0x46c3e6([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]),[_0x46c3e6([0x61,0x6c,0x67])]:_0x46c3e6([0x45,0x53,0x32,0x35,0x36])},_0x4862f7=_0x85fb79[_0x46c3e6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x46c3e6([0x67,0x65,0x74])](_0x46c3e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a44cf(){let _0x48b186,_0x5d6380=null,_0x3f240e=null;try{if(_0x4862f7==_0x46c3e6([0x47,0x50,0x4c]))return _0x46c3e6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x48b186=_0x74197(),!_0x48b186)return _0x46c3e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x48b186[_0x46c3e6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f240e=_0x107d67(_0x48b186[_0x46c3e6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x48b186[_0x46c3e6([0x6a,0x74,0x69])])),await _0x1ff404()?_0x55a74d()?_0x31419d()?_0x46c3e6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x54c480()?(_0x48b186[_0x46c3e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46c3e6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5d6380=_0x3e2a6e(_0x46c3e6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ca754()):_0x46c3e6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x46c3e6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x46c3e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x46c3e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31419d(){const _0x480b9c=[_0x46c3e6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x46c3e6([0x74,0x72,0x69,0x61,0x6c])][_0x46c3e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48b186[_0x46c3e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xbe30f0/0x3e8:0xe10*_0x5d4229;return _0x48b186[_0x46c3e6([0x65,0x78,0x70])]<_0x480b9c;}function _0x55a74d(){const _0x435d28=_0x48b186[_0x46c3e6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x435d28&&(!!_0x435d28[_0x46c3e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46c3e6([0x2a]))||!!_0x435d28[_0x46c3e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46c3e6([0x53,0x45,0x45])));}function _0x54c480(){const _0x2c2fe0=_0x48b186[_0x46c3e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2c2fe0||0x0==_0x2c2fe0[_0x46c3e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x11cafd}=new URL(window[_0x46c3e6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2c2fe0[_0x46c3e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11cafd))return!0x0;const _0x31ca78=_0x11cafd[_0x46c3e6([0x73,0x70,0x6c,0x69,0x74])](_0x46c3e6([0x2e]));return _0x2c2fe0[_0x46c3e6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c9824=>_0x1c9824[_0x46c3e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46c3e6([0x2a])))[_0x46c3e6([0x6d,0x61,0x70])](_0x196a7a=>_0x196a7a[_0x46c3e6([0x73,0x70,0x6c,0x69,0x74])](_0x46c3e6([0x2e])))[_0x46c3e6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x176aa9=>_0x176aa9[_0x46c3e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x31ca78[_0x46c3e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46c3e6([0x6d,0x61,0x70])](_0x34578b=>Array(_0x31ca78[_0x46c3e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x34578b[_0x46c3e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46c3e6([0x66,0x69,0x6c,0x6c])](_0x34578b[0x0]===_0x46c3e6([0x2a])?_0x46c3e6([0x2a]):'')[_0x46c3e6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x34578b))[_0x46c3e6([0x73,0x6f,0x6d,0x65])](_0x3fd860=>_0x31ca78[_0x46c3e6([0x65,0x76,0x65,0x72,0x79])]((_0x5936c7,_0x2a9cb3)=>_0x3fd860[_0x2a9cb3]===_0x5936c7||_0x3fd860[_0x2a9cb3]===_0x46c3e6([0x2a])));}function _0x5ca754(){return _0x5d6380&&_0x3f240e?new window[(_0x46c3e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9a3f48,_0x5ae778)=>{_0x5d6380[_0x46c3e6([0x74,0x68,0x65,0x6e])](_0x9a3f48,_0x5ae778),_0x3f240e[_0x46c3e6([0x74,0x68,0x65,0x6e])](_0x439718=>{_0x439718!=_0x46c3e6([0x56,0x61,0x6c,0x69,0x64])&&_0x9a3f48(_0x439718);},_0x5ae778);}):_0x5d6380||_0x3f240e||_0x46c3e6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x107d67(_0x37504f,_0x59a42b){return new window[(_0x46c3e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x71b658=>{if(_0x27141())return _0x71b658(_0x46c3e6([0x56,0x61,0x6c,0x69,0x64]));_0x41043f(),_0x85fb79[_0x46c3e6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x46c3e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c3442=!0x1;const _0x2070f7=_0x4cfa61();function _0x334b8d(_0x3e903d){return!!_0x3e903d&&(typeof _0x3e903d===_0x46c3e6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e903d===_0x46c3e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e903d[_0x46c3e6([0x74,0x68,0x65,0x6e])]===_0x46c3e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e903d[_0x46c3e6([0x63,0x61,0x74,0x63,0x68])]===_0x46c3e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e78a8(_0x3a2283){_0x507b76(_0x3a2283)[_0x46c3e6([0x74,0x68,0x65,0x6e])](_0x2fed8a=>{if(!_0x2fed8a||_0x2fed8a[_0x46c3e6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x46c3e6([0x6f,0x6b]))return _0x46c3e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x51fdda(_0x3a833f(_0x2070f7+_0x59a42b))!=_0x2fed8a[_0x46c3e6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x46c3e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x46c3e6([0x56,0x61,0x6c,0x69,0x64]);})[_0x46c3e6([0x74,0x68,0x65,0x6e])](_0x1b1238=>(_0x32bd40(),_0x1b1238),()=>{const _0x1f43c4=_0x2788fe();return null==_0x1f43c4?(_0x32bd40(),_0x46c3e6([0x56,0x61,0x6c,0x69,0x64])):_0x46c3e6(_0xbe30f0-_0x1f43c4>(0x79b61714^_0x5cd63c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x46c3e6([0x74,0x68,0x65,0x6e])](_0x71b658)[_0x46c3e6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x71b658(_0x46c3e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1408d3=0x5d8c7d94^_0x5cd63c;function _0x32bd40(){const _0x9f2cfe=_0x46c3e6([0x6c,0x6c,0x63,0x74,0x2d])+_0x51fdda(_0x3a833f(_0x37504f)),_0x19c1c5=_0x53dd54(_0x51fdda(window[_0x46c3e6([0x4d,0x61,0x74,0x68])][_0x46c3e6([0x63,0x65,0x69,0x6c])](_0xbe30f0/_0x1408d3)));window[_0x46c3e6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46c3e6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x9f2cfe,_0x19c1c5);}function _0x2788fe(){const _0x580717=_0x46c3e6([0x6c,0x6c,0x63,0x74,0x2d])+_0x51fdda(_0x3a833f(_0x37504f)),_0xfa184f=window[_0x46c3e6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46c3e6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x580717);return _0xfa184f?window[_0x46c3e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53dd54(_0xfa184f),0x10)*_0x1408d3:null;}function _0x507b76(_0x4ac067){return new window[(_0x46c3e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18b481,_0x3a6bd1)=>{_0x4ac067[_0x46c3e6([0x74,0x68,0x65,0x6e])](_0x18b481,_0x3a6bd1),window[_0x46c3e6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3a6bd1,0x5dbb47d4^_0x5cd63c);});}}_0x85fb79[_0x46c3e6([0x6f,0x6e])](_0x46c3e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c5594,_0x148129)=>{if(_0x148129[0x0]!=_0x37504f)return _0x71b658(_0x46c3e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x148129[0x1]={..._0x148129[0x1],[_0x46c3e6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2070f7};},{[_0x46c3e6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46c3e6([0x68,0x69,0x67,0x68])}),_0x85fb79[_0x46c3e6([0x6f,0x6e])](_0x46c3e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5f5741=>{_0x334b8d(_0x5f5741[_0x46c3e6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c3442=!0x0,_0x1e78a8(_0x5f5741[_0x46c3e6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x46c3e6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46c3e6([0x6c,0x6f,0x77])}),_0x860a70[_0x46c3e6([0x74,0x68,0x65,0x6e])](()=>{_0x1c3442||_0x71b658(_0x46c3e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27141(){return _0x85fb79[_0x46c3e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46c3e6([0x76,0x69,0x65,0x77])][_0x46c3e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x46c3e6([0x61,0x75,0x74,0x6f]);}function _0x41043f(){_0x85fb79[_0x46c3e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46c3e6([0x76,0x69,0x65,0x77])][_0x46c3e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x46c3e6([0x61,0x75,0x74,0x6f]);}}function _0x3e2a6e(_0x169c11){const _0x1f7b92=[new window[(_0x46c3e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a1059=>setTimeout(_0x2a1059,0x5db3add8^_0x5cd63c)),_0x860a70[_0x46c3e6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x46c3e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x367eef=>{let _0x2fe3be=0x0;_0x85fb79[_0x46c3e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x46c3e6([0x6f,0x6e])](_0x46c3e6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x588f78,_0x5ed28d)=>{_0x5ed28d[0x0][_0x46c3e6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2fe3be++,_0x2fe3be==(0x5dba96fc^_0x5cd63c)&&(_0x367eef(),_0x588f78[_0x46c3e6([0x6f,0x66,0x66])]());});}))];return window[_0x46c3e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x46c3e6([0x72,0x61,0x63,0x65])](_0x1f7b92)[_0x46c3e6([0x74,0x68,0x65,0x6e])](()=>_0x169c11);}async function _0xf10bf1(){await _0x860a70,_0x85fb79[_0x46c3e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x46c3e6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f7451,_0x85fb79[_0x46c3e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x46c3e6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f7451,_0x85fb79[_0x46c3e6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x46c3e6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a28d2(_0x23220b){const _0x4304ec=_0x5a6a5e();_0x85fb79[_0x4304ec]=_0x46c3e6([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])+_0x23220b,_0x23220b!=_0x46c3e6([0x56,0x61,0x6c,0x69,0x64])&&_0xf10bf1();}function _0x5a6a5e(){const _0x1d09f7=window[_0x46c3e6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x46c3e6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x46c3e6([0x6e,0x6f,0x77])]())[_0x46c3e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x46c3e6([0x2e]),'');let _0x18ec89=_0x46c3e6([0x4e]);for(let _0x18d7ac=0x0;_0x18d7ac<_0x1d09f7[_0x46c3e6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18d7ac+=0x2){let _0x336cc6=window[_0x46c3e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d09f7[_0x46c3e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18d7ac,_0x18d7ac+0x2));_0x336cc6>=_0xdfbf74[_0x46c3e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x336cc6-=_0xdfbf74[_0x46c3e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18ec89+=_0xdfbf74[_0x336cc6];}return _0x18ec89;}function _0x74197(){const _0x18a970=_0x4862f7[_0x46c3e6([0x73,0x70,0x6c,0x69,0x74])](_0x46c3e6([0x2e]));if(0x3!=_0x18a970[_0x46c3e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58a431(_0x18a970[0x1]);function _0x58a431(_0xb05bcb){const _0x382091=_0x126afa(_0xb05bcb);return _0x382091&&_0x5924af()?_0x382091:null;function _0x5924af(){const _0x1b5dc8=_0x382091[_0x46c3e6([0x6a,0x74,0x69])],_0x3b2b83=window[_0x46c3e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b5dc8[_0x46c3e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b5dc8[_0x46c3e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x136656={..._0x382091,[_0x46c3e6([0x6a,0x74,0x69])]:_0x1b5dc8[_0x46c3e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1b5dc8[_0x46c3e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x136656[_0x46c3e6([0x76,0x63])],_0x3a833f(_0x136656)==_0x3b2b83;}}}async function _0x1ff404(){let _0x1d4a84=!0x0;try{const _0x4be6cb=_0x4862f7[_0x46c3e6([0x73,0x70,0x6c,0x69,0x74])](_0x46c3e6([0x2e])),[_0x24fdf4,_0x319b6b,_0x4c88ad]=_0x4be6cb;return _0x20eac5(_0x24fdf4),await _0x135b5e(_0x24fdf4,_0x319b6b,_0x4c88ad),_0x1d4a84;}catch{return!0x1;}function _0x20eac5(_0x4b05fc){const _0x45e7f6=_0x126afa(_0x4b05fc);_0x45e7f6&&_0x45e7f6[_0x46c3e6([0x61,0x6c,0x67])]==_0x46c3e6([0x45,0x53,0x32,0x35,0x36])||(_0x1d4a84=!0x1);}async function _0x135b5e(_0x3a6249,_0x4bdc3a,_0x4e2b8c){const _0x34bb82=window[_0x46c3e6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x46c3e6([0x66,0x72,0x6f,0x6d])](_0x12f94e(_0x4e2b8c),_0x5ad5c8=>_0x5ad5c8[_0x46c3e6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e2d60=new window[(_0x46c3e6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x46c3e6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a6249+_0x46c3e6([0x2e])+_0x4bdc3a),_0x4e5333=window[_0x46c3e6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x46c3e6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e5333)return;const _0x1a39eb=await _0x4e5333[_0x46c3e6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x46c3e6([0x6a,0x77,0x6b]),_0x249281,{[_0x46c3e6([0x6e,0x61,0x6d,0x65])]:_0x46c3e6([0x45,0x43,0x44,0x53,0x41]),[_0x46c3e6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x46c3e6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x46c3e6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e5333[_0x46c3e6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x46c3e6([0x6e,0x61,0x6d,0x65])]:_0x46c3e6([0x45,0x43,0x44,0x53,0x41]),[_0x46c3e6([0x68,0x61,0x73,0x68])]:{[_0x46c3e6([0x6e,0x61,0x6d,0x65])]:_0x46c3e6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a39eb,_0x34bb82,_0x4e2d60)||(_0x1d4a84=!0x1);}}function _0x126afa(_0x41e671){return _0x41e671[_0x46c3e6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x46c3e6([0x65,0x79]))?JSON[_0x46c3e6([0x70,0x61,0x72,0x73,0x65])](_0x12f94e(_0x41e671)):null;}function _0x12f94e(_0x18089f){return window[_0x46c3e6([0x61,0x74,0x6f,0x62])](_0x18089f[_0x46c3e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x46c3e6([0x2b]))[_0x46c3e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x46c3e6([0x2f])));}function _0x3a833f(_0x2daaa6){let _0xaa7711=0x1505;function _0x4e87db(_0x2f75d2){for(let _0x1bd6db=0x0;_0x1bd6db<_0x2f75d2[_0x46c3e6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bd6db++){const _0x236b8c=_0x2f75d2[_0x46c3e6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1bd6db);_0xaa7711=(_0xaa7711<<0x5)+_0xaa7711+_0x236b8c,_0xaa7711&=_0xaa7711;}}function _0x38c436(_0x588f80){Array[_0x46c3e6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x588f80)?_0x588f80[_0x46c3e6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x38c436):_0x588f80&&typeof _0x588f80==_0x46c3e6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x46c3e6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x588f80)[_0x46c3e6([0x73,0x6f,0x72,0x74])]()[_0x46c3e6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x418f6d,_0x43ab60])=>{_0x4e87db(_0x418f6d),_0x38c436(_0x43ab60);}):_0x4e87db(window[_0x46c3e6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x588f80));}return _0x38c436(_0x2daaa6),_0xaa7711>>>0x0;}function _0x51fdda(_0x20c181){return _0x20c181[_0x46c3e6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x46c3e6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x46c3e6([0x30]));}function _0x53dd54(_0x2daab1){return _0x2daab1[_0x46c3e6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x46c3e6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x46c3e6([0x6a,0x6f,0x69,0x6e])]('');}function _0x3f7451(){}function _0x46c3e6(_0x1326e0){return _0x1326e0['map'](_0xd86450=>String['fromCharCode'](_0xd86450))['join']('');}_0x2a28d2(await _0x4a44cf());}(this);}['_createButton'](_0x1b740b,_0xc966a8,_0x338fbe=!0x1){const _0x424bae=new _0x1b740b(this['editor']['locale']);return _0x424bae['set']({'withText':_0x338fbe,'isToggleable':!0x1}),_0x424bae['bind']('isEnabled')['to'](_0xc966a8,'isEnabled'),this['listenTo'](_0x424bae,'execute',()=>_0xc966a8['execute']()),_0x424bae;}['_registerKeybindings'](){const _0x8199b4=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':w(_0x8199b4,'Source\x20Editing\x20Enhanced')});const _0x5c2a11=_0x24e384['isMac']||_0x24e384['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':w(_0x8199b4,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':w(_0x8199b4,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':w(_0x8199b4,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':w(_0x8199b4,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':w(_0x8199b4,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':w(_0x8199b4,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':w(_0x8199b4,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x5c2a11?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':w(_0x8199b4,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':w(_0x8199b4,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':w(_0x8199b4,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':w(_0x8199b4,'Select\x20line'),'keystroke':_0x5c2a11?'Ctrl!+L':'Alt+L'},{'label':w(_0x8199b4,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x5c2a11?'Alt+Shift+M':'Ctrl+M'},{'label':w(_0x8199b4,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':w(_0x8199b4,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':w(_0x8199b4,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':w(_0x8199b4,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':w(_0x8199b4,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x5c2a11?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class c extends _0x371054{constructor(_0x25edb1){super(_0x25edb1),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x397113,_0x271cdc){const _0x502544=this['editor'],_0x375446=_0x271cdc?.['rootName']??r(_0x502544);_0x502544['data']['set']({[_0x375446]:_0x397113},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class ne extends _0x13c1d3{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[a];}constructor(_0x593507){super(_0x593507),_0x593507['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 _0x21fe00=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x40ad25;for(const _0x14d623 in _0x21fe00){const _0x5033ed=_0x14d623,_0x8857ba=_0x21fe00[_0x5033ed];if('sourceEditingEnhancedLicenseKeyValid'==_0x8857ba||'sourceEditingEnhancedLicenseKeyInvalid'==_0x8857ba||'sourceEditingEnhancedLicenseKeyExpired'==_0x8857ba||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x8857ba||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x8857ba||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x8857ba||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x8857ba){delete _0x21fe00[_0x5033ed],_0x40ad25=_0x8857ba,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x40ad25&&_0x21fe00['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x40ad25&&_0x21fe00['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x40ad25&&_0x21fe00['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x40ad25&&_0x21fe00['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x40ad25&&_0x21fe00['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x40ad25&&_0x21fe00['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x106e70=this['editor'],_0x289585=_0x106e70['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x289585&&_0x106e70['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x4dcec8('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x289585&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x3474f0=>_0x106e70['plugins']['has'](_0x3474f0))&&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.'),_0x106e70['plugins']['has']('RestrictedEditingModeEditing')&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20restricted\x20editing\x20feature.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20enhanced\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20restricted\x20editing\x20feature.');}}export{d as EditSourceCommand,c as ReplaceSourceCommand,ne as SourceEditingEnhanced};
|
|
23
|
+
import{Command as _0x9b328e,PendingActions as _0x312317,Plugin as _0x9a6f3d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1bf6e8,formatHtml as _0xa6dc8,env as _0x4623dc,uid as _0x9d8519}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconSource as _0x3ec1c9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x582d84,ButtonView as _0x331b9b,MenuBarMenuListItemButtonView as _0x3431f5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{EditorView as _0x3b8f0b,crosshairCursor as _0x418570,drawSelection as _0x191400,dropCursor as _0x1abac0,lineNumbers as _0x26f136,highlightActiveLine as _0x33d32c,highlightActiveLineGutter as _0x438a65,highlightSpecialChars as _0x23ac0d,rectangularSelection as _0x596ea4,keymap as _0x151cee}from'@codemirror/view';import{Compartment as _0x374ab8,Transaction as _0x29fcee}from'@codemirror/state';import{bracketMatching as _0x59183d,foldGutter as _0x52beaa,indentOnInput as _0x2b318b,syntaxHighlighting as _0xd633fd,defaultHighlightStyle as _0x3c4365,foldKeymap as _0x106f3a}from'@codemirror/language';import{toggleTabFocusMode as _0xfe43e5,history as _0x539bb5,defaultKeymap as _0x380b76,historyKeymap as _0x455bd3,indentLess as _0x5655d5,indentMore as _0x40d523,redo as _0x3957c5,undo as _0x151787}from'@codemirror/commands';import{autocompletion as _0x4daf11,closeBrackets as _0xd87447,closeBracketsKeymap as _0x34cdde,completionKeymap as _0x32df4e}from'@codemirror/autocomplete';import{html as _0x163f4d}from'@codemirror/lang-html';import{markdown as _0x5e6e93}from'@codemirror/lang-markdown';import{oneDark as _0x251173}from'@codemirror/theme-one-dark';function w(_0x572075,_0x3daf16){const t=_0x572075['t'];switch(_0x3daf16){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 _0x3daf16;}}function r(_0xc873c6){const _0x4696c9=_0xc873c6['editing']['view']['document']['roots'],_0x1526e4=_0x4696c9['length'];if(0x0===_0x1526e4)throw new _0x1bf6e8('source-editing-enhanced-editor-no-root',_0xc873c6);if(0x1===_0x1526e4)return _0x4696c9['first']['rootName'];return Array['from'](_0xc873c6['editing']['view']['document']['selection']['getRanges']())[0x0]['root']['rootName'];}function g(_0x34fac0){return tr(_0x34fac0['replace'](/^[\n\s]*/g,''))?_0x34fac0['replace'](/\s+/g,''):_0x34fac0;}function tr(_0x343234){return _0x343234['startsWith']('<');}function p(_0x2e4c52){const _0x3c7561=[_0x3b8f0b['lineWrapping'],_0x4daf11(),_0x59183d(),_0xd87447(),_0x418570(),_0x191400(),_0x1abac0(),_0x26f136(),_0x52beaa(),_0x33d32c(),_0x438a65(),_0x23ac0d(),_0x539bb5(),_0x2b318b(),_0x596ea4(),_0xd633fd(_0x3c4365,{'fallback':!0x0})],_0x5724bc=new _0x374ab8();_0x3c7561['push'](_0x5724bc['of'](_0x3b8f0b['editable']['of'](!0x0))),'html'===_0x2e4c52['syntaxLanguage']?_0x3c7561['push'](_0x163f4d()):_0x3c7561['push'](_0x5e6e93());const _0x2a2f95=function(_0x309863){if(_0x309863&&'default'!==_0x309863)return'dark'===_0x309863?_0x251173:_0x309863;return null;}(_0x2e4c52['theme']);_0x2a2f95&&_0x3c7561['push'](_0x2a2f95),_0x3c7561['push'](_0x151cee['of']([..._0x34cdde,..._0x380b76,..._0x455bd3,..._0x106f3a,..._0x32df4e,{'key':'Tab','run':_0x40d523,'shift':_0x5655d5,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-y','mac':'Cmd-y','run':_0x3957c5,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-Shift-z','mac':'Cmd-Shift-z','run':_0x3957c5,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':'Ctrl-z','mac':'Cmd-z','run':_0x151787,'preventDefault':!0x0,'stopPropagation':!0x0}]));const _0x263dbf=new _0x3b8f0b({'extensions':_0x3c7561,'parent':_0x2e4c52['parent']});return _0xfe43e5(_0x263dbf),{'focus':()=>{_0x263dbf['dispatch']({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x263dbf['focus']();},'getData':()=>_0x263dbf['state']['doc']['toString'](),'setData':_0x542683=>{_0x263dbf['dispatch']({'changes':{'from':0x0,'to':_0x263dbf['state']['doc']['length'],'insert':_0x542683},'annotations':_0x29fcee['addToHistory']['of'](!0x1)});},'setReadOnly':_0x5cf879=>{_0x263dbf['dispatch']({'effects':[_0x5724bc['reconfigure'](_0x3b8f0b['editable']['of'](!_0x5cf879))]});},'destroy':()=>{_0x263dbf['destroy']();},'instance':_0x263dbf};}class E extends _0x582d84{['_codeEditorApi']=null;['_options'];constructor(_0x2ec27c,_0xae6903){super(_0x2ec27c),this['_options']=_0xae6903,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',(_0x3f7826,_0x65a50d,_0x16a8b4)=>{this['setReadOnly'](_0x16a8b4);});}['destroy'](){super['destroy'](),this['_codeEditorApi']['destroy'](),this['_codeEditorApi']=null;}['focus'](){this['isReadOnly']?this['element']['focus']():this['_codeEditorApi']['focus']();}['getData'](){return this['_codeEditorApi']['getData']();}['setData'](_0x327c11){this['_codeEditorApi']['setData'](_0x327c11);}['setReadOnly'](_0xb6ef2d){this['_codeEditorApi']['setReadOnly'](_0xb6ef2d);}}const b='SourceEditingEnhancedMode';class d extends _0x9b328e{constructor(_0x4eec01){super(_0x4eec01),this['affectsData']=!0x1,this['editor']['plugins']['get'](_0x312317)['on']('change:hasAny',(_0x49fad4,_0x33ac90,_0x3ab06f)=>{_0x3ab06f?this['forceDisabled']('pendingActions'):this['clearForceDisabled']('pendingActions');});}['_disableCommands'](){const _0x48c685=this['editor'];for(const _0x475313 of _0x48c685['commands']['names']())['replaceSource','editSource']['includes'](_0x475313)||_0x48c685['commands']['get'](_0x475313)['forceDisabled'](b);}['_enableCommands'](){const _0x513903=this['editor'];for(const _0x3fb848 of _0x513903['commands']['commands']())_0x3fb848['clearForceDisabled'](b);}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5918f5=this['editor'],_0x42317f=_0x5918f5['locale'],_0x29d1d0=_0x5918f5['plugins']['get']('Dialog'),_0x487d6e=r(_0x5918f5),_0x266e3e=_0x5918f5['data']['get']({'rootName':_0x487d6e}),_0xb1151f=tr(_0x53bfce=_0x266e3e)?_0xa6dc8(_0x53bfce):_0x53bfce;var _0x53bfce;const _0x369089=new E(_0x42317f,{'syntaxLanguage':_0x5918f5['plugins']['has']('Markdown')?'markdown':'html','theme':_0x5918f5['config']['get']('sourceEditingEnhanced.theme')});let _0x3dece8=!0x0;const _0x3deb30=_0x4eebd4=>{if(!_0x3dece8)return;return g(_0x369089['getData']())!==g(_0xb1151f)?window['confirm'](w(_0x42317f,'Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.'))?void 0x0:_0x4eebd4['stop']():void 0x0;};_0x29d1d0['show']({'id':'sourceEditingEnhanced','title':w(_0x42317f,'Edit\x20source\x20modal\x20label'),'isModal':!0x0,'className':'ck-source-editing-enhanced-dialog','content':_0x369089,'actionButtons':[{'label':w(_0x42317f,'Cancel'),'withText':!0x0,'onExecute':()=>{_0x29d1d0['hide']();}},{'label':w(_0x42317f,'Save'),'class':'ck-button-action','withText':!0x0,'onExecute':()=>{const _0x3e1006=g(_0x369089['getData']())!==g(_0xb1151f);(_0x3e1006&&_0x5918f5['execute']('replaceSource',_0x369089['getData']()),_0x3dece8=!0x1,_0x29d1d0['hide'](),_0x3e1006&&'editables'in _0x5918f5['ui']['view'])&&_0x5918f5['ui']['view']['editables'][_0x487d6e]['element']['focus']();},'onCreate':_0x2ceccb=>{_0x2ceccb['set']('isEnabled',!_0x5918f5['isReadOnly']),_0x2ceccb['bind']('isEnabled')['to'](_0x5918f5,'isReadOnly',this,'isEnabled',(_0x557e83,_0x218ca5)=>!_0x557e83&&_0x218ca5);}}],'onHide':()=>{this['_enableCommands'](),_0x29d1d0['off']('hide',_0x3deb30),_0x369089['destroy']();},'onShow':()=>{_0x369089['bind']('isReadOnly')['to'](_0x5918f5,'isReadOnly',this,'isEnabled',(_0x37532d,_0x55a63b)=>_0x37532d||!_0x55a63b),_0x369089['setData'](_0xb1151f),_0x369089['focus'](),_0x29d1d0['on']('hide',_0x3deb30,{'priority':'highest'}),this['_disableCommands']();}});}}class a extends _0x9a6f3d{static get['pluginName'](){return'SourceEditingEnhancedUI';}static get['requires'](){return[_0x312317];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5cc888=this['editor'],_0x12d91e=_0x5cc888['locale'],_0x49eca7=new d(_0x5cc888);_0x5cc888['commands']['add']('editSource',_0x49eca7),_0x5cc888['ui']['componentFactory']['add']('sourceEditingEnhanced',()=>{const _0x537710=this['_createButton'](_0x331b9b,_0x49eca7);return _0x537710['set']({'label':w(_0x12d91e,'Source'),'icon':_0x3ec1c9,'tooltip':w(_0x12d91e,'Edit\x20source\x20modal\x20label'),'class':'ck-source-editing-enhanced-button'}),_0x537710;}),_0x5cc888['ui']['componentFactory']['add']('menuBar:sourceEditingEnhanced',()=>{const _0x2c0f60=this['_createButton'](_0x3431f5,_0x49eca7,!0x0);return _0x2c0f60['set']({'label':w(_0x12d91e,'Edit\x20source\x20modal\x20label'),'icon':_0x3ec1c9,'role':'menuitemcheckbox'}),_0x2c0f60;}),this['_registerKeybindings']();}['afterInit'](){!async function(_0x1c52e9){const _0x3201ea=_0x18c77e([0x4e,0x51,0x56,0x58,0x79,0x42,0x46,0x48,0x4a,0x7a,0x72,0x38,0x57,0x47,0x49,0x34,0x61,0x5a,0x6e,0x54,0x65,0x6f,0x55,0x78,0x36,0x70,0x39,0x6a,0x66,0x76,0x33,0x44,0x69,0x74,0x4c,0x77,0x75,0x63,0x6b,0x59,0x6c,0x68,0x64,0x4d,0x41,0x32,0x4b,0x35,0x53,0x37,0x6d,0x62,0x43,0x4f,0x50,0x45,0x73,0x31,0x71,0x67,0x52,0x30]),_0x5b1303=0x5dba9314,_0x3df8f0=0x5dbded94^_0x5b1303,_0x4c9a06=window[_0x18c77e([0x44,0x61,0x74,0x65])][_0x18c77e([0x6e,0x6f,0x77])](),_0x385e17=_0x1c52e9[_0x18c77e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe565=new window[(_0x18c77e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4441a5=>{_0x385e17[_0x18c77e([0x6f,0x6e,0x63,0x65])](_0x18c77e([0x72,0x65,0x61,0x64,0x79]),_0x4441a5);}),_0x22a1a8={[_0x18c77e([0x6b,0x74,0x79])]:_0x18c77e([0x45,0x43]),[_0x18c77e([0x75,0x73,0x65])]:_0x18c77e([0x73,0x69,0x67]),[_0x18c77e([0x63,0x72,0x76])]:_0x18c77e([0x50,0x2d,0x32,0x35,0x36]),[_0x18c77e([0x78])]:_0x18c77e([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]),[_0x18c77e([0x79])]:_0x18c77e([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]),[_0x18c77e([0x61,0x6c,0x67])]:_0x18c77e([0x45,0x53,0x32,0x35,0x36])},_0x2d3ced=_0x385e17[_0x18c77e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x18c77e([0x67,0x65,0x74])](_0x18c77e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x11ee13(){let _0x3ca959,_0x3ffc73=null,_0x487194=null;try{if(_0x2d3ced==_0x18c77e([0x47,0x50,0x4c]))return _0x18c77e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ca959=_0x290271(),!_0x3ca959)return _0x18c77e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ca959[_0x18c77e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x487194=_0x5d2ba4(_0x3ca959[_0x18c77e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ca959[_0x18c77e([0x6a,0x74,0x69])])),await _0x1f9fac()?_0x349c5d()?_0x587656()?_0x18c77e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c3a22()?(_0x3ca959[_0x18c77e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x18c77e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3ffc73=_0x41d306(_0x18c77e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2bae3a()):_0x18c77e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x18c77e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x18c77e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x18c77e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x587656(){const _0x3c9f43=[_0x18c77e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x18c77e([0x74,0x72,0x69,0x61,0x6c])][_0x18c77e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ca959[_0x18c77e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4c9a06/0x3e8:0xe10*_0x3df8f0;return _0x3ca959[_0x18c77e([0x65,0x78,0x70])]<_0x3c9f43;}function _0x349c5d(){const _0x285017=_0x3ca959[_0x18c77e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x285017&&(!!_0x285017[_0x18c77e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18c77e([0x2a]))||!!_0x285017[_0x18c77e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18c77e([0x53,0x45,0x45])));}function _0x5c3a22(){const _0x329099=_0x3ca959[_0x18c77e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x329099||0x0==_0x329099[_0x18c77e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b4da7}=new URL(window[_0x18c77e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x329099[_0x18c77e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b4da7))return!0x0;const _0x3fea2c=_0x1b4da7[_0x18c77e([0x73,0x70,0x6c,0x69,0x74])](_0x18c77e([0x2e]));return _0x329099[_0x18c77e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14fb36=>_0x14fb36[_0x18c77e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18c77e([0x2a])))[_0x18c77e([0x6d,0x61,0x70])](_0x540d90=>_0x540d90[_0x18c77e([0x73,0x70,0x6c,0x69,0x74])](_0x18c77e([0x2e])))[_0x18c77e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1907dc=>_0x1907dc[_0x18c77e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3fea2c[_0x18c77e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x18c77e([0x6d,0x61,0x70])](_0x459742=>Array(_0x3fea2c[_0x18c77e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x459742[_0x18c77e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x18c77e([0x66,0x69,0x6c,0x6c])](_0x459742[0x0]===_0x18c77e([0x2a])?_0x18c77e([0x2a]):'')[_0x18c77e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x459742))[_0x18c77e([0x73,0x6f,0x6d,0x65])](_0x28bed9=>_0x3fea2c[_0x18c77e([0x65,0x76,0x65,0x72,0x79])]((_0x33e3d6,_0x3aa540)=>_0x28bed9[_0x3aa540]===_0x33e3d6||_0x28bed9[_0x3aa540]===_0x18c77e([0x2a])));}function _0x2bae3a(){return _0x3ffc73&&_0x487194?new window[(_0x18c77e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x177ca2,_0x284d5b)=>{_0x3ffc73[_0x18c77e([0x74,0x68,0x65,0x6e])](_0x177ca2,_0x284d5b),_0x487194[_0x18c77e([0x74,0x68,0x65,0x6e])](_0x23e9be=>{_0x23e9be!=_0x18c77e([0x56,0x61,0x6c,0x69,0x64])&&_0x177ca2(_0x23e9be);},_0x284d5b);}):_0x3ffc73||_0x487194||_0x18c77e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5d2ba4(_0x452511,_0x3a91d6){return new window[(_0x18c77e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19ec63=>{if(_0x51e50f())return _0x19ec63(_0x18c77e([0x56,0x61,0x6c,0x69,0x64]));_0x406ac0(),_0x385e17[_0x18c77e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x18c77e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2b8301=!0x1;const _0x1de5dc=_0x9d8519();function _0x112764(_0x36953d){return!!_0x36953d&&(typeof _0x36953d===_0x18c77e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x36953d===_0x18c77e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x36953d[_0x18c77e([0x74,0x68,0x65,0x6e])]===_0x18c77e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x36953d[_0x18c77e([0x63,0x61,0x74,0x63,0x68])]===_0x18c77e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5e8c11(_0x51cb4c){_0x27e147(_0x51cb4c)[_0x18c77e([0x74,0x68,0x65,0x6e])](_0x52fc18=>{if(!_0x52fc18||_0x52fc18[_0x18c77e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x18c77e([0x6f,0x6b]))return _0x18c77e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x51645f(_0x343756(_0x1de5dc+_0x3a91d6))!=_0x52fc18[_0x18c77e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x18c77e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x18c77e([0x56,0x61,0x6c,0x69,0x64]);})[_0x18c77e([0x74,0x68,0x65,0x6e])](_0x87be9=>(_0x4e5c7e(),_0x87be9),()=>{const _0x4a973b=_0x15c904();return null==_0x4a973b?(_0x4e5c7e(),_0x18c77e([0x56,0x61,0x6c,0x69,0x64])):_0x18c77e(_0x4c9a06-_0x4a973b>(0x79b61714^_0x5b1303)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x18c77e([0x74,0x68,0x65,0x6e])](_0x19ec63)[_0x18c77e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19ec63(_0x18c77e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39647f=0x5d8c7d94^_0x5b1303;function _0x4e5c7e(){const _0x128d08=_0x18c77e([0x6c,0x6c,0x63,0x74,0x2d])+_0x51645f(_0x343756(_0x452511)),_0x3c8535=_0x55a23f(_0x51645f(window[_0x18c77e([0x4d,0x61,0x74,0x68])][_0x18c77e([0x63,0x65,0x69,0x6c])](_0x4c9a06/_0x39647f)));window[_0x18c77e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18c77e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x128d08,_0x3c8535);}function _0x15c904(){const _0x1353f6=_0x18c77e([0x6c,0x6c,0x63,0x74,0x2d])+_0x51645f(_0x343756(_0x452511)),_0x158fdc=window[_0x18c77e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x18c77e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1353f6);return _0x158fdc?window[_0x18c77e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55a23f(_0x158fdc),0x10)*_0x39647f:null;}function _0x27e147(_0x4cfd0a){return new window[(_0x18c77e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44f3cc,_0x16a9c7)=>{_0x4cfd0a[_0x18c77e([0x74,0x68,0x65,0x6e])](_0x44f3cc,_0x16a9c7),window[_0x18c77e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x16a9c7,0x5dbb47d4^_0x5b1303);});}}_0x385e17[_0x18c77e([0x6f,0x6e])](_0x18c77e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x27c596,_0xb64ea8)=>{if(_0xb64ea8[0x0]!=_0x452511)return _0x19ec63(_0x18c77e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb64ea8[0x1]={..._0xb64ea8[0x1],[_0x18c77e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1de5dc};},{[_0x18c77e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18c77e([0x68,0x69,0x67,0x68])}),_0x385e17[_0x18c77e([0x6f,0x6e])](_0x18c77e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x378202=>{_0x112764(_0x378202[_0x18c77e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2b8301=!0x0,_0x5e8c11(_0x378202[_0x18c77e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x18c77e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x18c77e([0x6c,0x6f,0x77])}),_0xe565[_0x18c77e([0x74,0x68,0x65,0x6e])](()=>{_0x2b8301||_0x19ec63(_0x18c77e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x51e50f(){return _0x385e17[_0x18c77e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18c77e([0x76,0x69,0x65,0x77])][_0x18c77e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x18c77e([0x61,0x75,0x74,0x6f]);}function _0x406ac0(){_0x385e17[_0x18c77e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18c77e([0x76,0x69,0x65,0x77])][_0x18c77e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18c77e([0x61,0x75,0x74,0x6f]);}}function _0x41d306(_0x57ba96){const _0x514e4=[new window[(_0x18c77e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2aac4e=>setTimeout(_0x2aac4e,0x5db3add8^_0x5b1303)),_0xe565[_0x18c77e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x18c77e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x663d79=>{let _0x1f04ea=0x0;_0x385e17[_0x18c77e([0x6d,0x6f,0x64,0x65,0x6c])][_0x18c77e([0x6f,0x6e])](_0x18c77e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x22169d,_0x2360d7)=>{_0x2360d7[0x0][_0x18c77e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1f04ea++,_0x1f04ea==(0x5dba96fc^_0x5b1303)&&(_0x663d79(),_0x22169d[_0x18c77e([0x6f,0x66,0x66])]());});}))];return window[_0x18c77e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18c77e([0x72,0x61,0x63,0x65])](_0x514e4)[_0x18c77e([0x74,0x68,0x65,0x6e])](()=>_0x57ba96);}async function _0x4e3b00(){await _0xe565,_0x385e17[_0x18c77e([0x6d,0x6f,0x64,0x65,0x6c])][_0x18c77e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x589944,_0x385e17[_0x18c77e([0x6d,0x6f,0x64,0x65,0x6c])][_0x18c77e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x589944,_0x385e17[_0x18c77e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x18c77e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x28ce9e(_0x59e88b){const _0x567ef4=_0x4c517b();_0x385e17[_0x567ef4]=_0x18c77e([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])+_0x59e88b,_0x59e88b!=_0x18c77e([0x56,0x61,0x6c,0x69,0x64])&&_0x4e3b00();}function _0x4c517b(){const _0x30ac47=window[_0x18c77e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x18c77e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x18c77e([0x6e,0x6f,0x77])]())[_0x18c77e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x18c77e([0x2e]),'');let _0x5f5107=_0x18c77e([0x4e]);for(let _0x5cec4e=0x0;_0x5cec4e<_0x30ac47[_0x18c77e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cec4e+=0x2){let _0x375d22=window[_0x18c77e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30ac47[_0x18c77e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cec4e,_0x5cec4e+0x2));_0x375d22>=_0x3201ea[_0x18c77e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x375d22-=_0x3201ea[_0x18c77e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5f5107+=_0x3201ea[_0x375d22];}return _0x5f5107;}function _0x290271(){const _0x3df078=_0x2d3ced[_0x18c77e([0x73,0x70,0x6c,0x69,0x74])](_0x18c77e([0x2e]));if(0x3!=_0x3df078[_0x18c77e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x548c3b(_0x3df078[0x1]);function _0x548c3b(_0x33467e){const _0x2e9f77=_0x1141c8(_0x33467e);return _0x2e9f77&&_0x53c009()?_0x2e9f77:null;function _0x53c009(){const _0x1c0d7d=_0x2e9f77[_0x18c77e([0x6a,0x74,0x69])],_0x5ad4a1=window[_0x18c77e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c0d7d[_0x18c77e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1c0d7d[_0x18c77e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1212df={..._0x2e9f77,[_0x18c77e([0x6a,0x74,0x69])]:_0x1c0d7d[_0x18c77e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1c0d7d[_0x18c77e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1212df[_0x18c77e([0x76,0x63])],_0x343756(_0x1212df)==_0x5ad4a1;}}}async function _0x1f9fac(){let _0xb5950f=!0x0;try{const _0x582f32=_0x2d3ced[_0x18c77e([0x73,0x70,0x6c,0x69,0x74])](_0x18c77e([0x2e])),[_0x5393f9,_0x2f66dc,_0x477608]=_0x582f32;return _0x2d5e86(_0x5393f9),await _0xcd59e7(_0x5393f9,_0x2f66dc,_0x477608),_0xb5950f;}catch{return!0x1;}function _0x2d5e86(_0x2ece19){const _0x5ad249=_0x1141c8(_0x2ece19);_0x5ad249&&_0x5ad249[_0x18c77e([0x61,0x6c,0x67])]==_0x18c77e([0x45,0x53,0x32,0x35,0x36])||(_0xb5950f=!0x1);}async function _0xcd59e7(_0x58ddec,_0x4fd4e0,_0x45765a){const _0x3bf1b1=window[_0x18c77e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x18c77e([0x66,0x72,0x6f,0x6d])](_0x5ce2db(_0x45765a),_0x1b4caa=>_0x1b4caa[_0x18c77e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1197bc=new window[(_0x18c77e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x18c77e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x58ddec+_0x18c77e([0x2e])+_0x4fd4e0),_0xea723c=window[_0x18c77e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x18c77e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xea723c)return;const _0x5d9218=await _0xea723c[_0x18c77e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x18c77e([0x6a,0x77,0x6b]),_0x22a1a8,{[_0x18c77e([0x6e,0x61,0x6d,0x65])]:_0x18c77e([0x45,0x43,0x44,0x53,0x41]),[_0x18c77e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x18c77e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x18c77e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xea723c[_0x18c77e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x18c77e([0x6e,0x61,0x6d,0x65])]:_0x18c77e([0x45,0x43,0x44,0x53,0x41]),[_0x18c77e([0x68,0x61,0x73,0x68])]:{[_0x18c77e([0x6e,0x61,0x6d,0x65])]:_0x18c77e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d9218,_0x3bf1b1,_0x1197bc)||(_0xb5950f=!0x1);}}function _0x1141c8(_0x561f32){return _0x561f32[_0x18c77e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x18c77e([0x65,0x79]))?JSON[_0x18c77e([0x70,0x61,0x72,0x73,0x65])](_0x5ce2db(_0x561f32)):null;}function _0x5ce2db(_0x490a75){return window[_0x18c77e([0x61,0x74,0x6f,0x62])](_0x490a75[_0x18c77e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x18c77e([0x2b]))[_0x18c77e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x18c77e([0x2f])));}function _0x343756(_0x5a4762){let _0x1c2f87=0x1505;function _0xd83a70(_0xa56e63){for(let _0x26b677=0x0;_0x26b677<_0xa56e63[_0x18c77e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26b677++){const _0x23632d=_0xa56e63[_0x18c77e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x26b677);_0x1c2f87=(_0x1c2f87<<0x5)+_0x1c2f87+_0x23632d,_0x1c2f87&=_0x1c2f87;}}function _0x36730e(_0x5bc1b0){Array[_0x18c77e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5bc1b0)?_0x5bc1b0[_0x18c77e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36730e):_0x5bc1b0&&typeof _0x5bc1b0==_0x18c77e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x18c77e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5bc1b0)[_0x18c77e([0x73,0x6f,0x72,0x74])]()[_0x18c77e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x483d35,_0x37192c])=>{_0xd83a70(_0x483d35),_0x36730e(_0x37192c);}):_0xd83a70(window[_0x18c77e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5bc1b0));}return _0x36730e(_0x5a4762),_0x1c2f87>>>0x0;}function _0x51645f(_0x408434){return _0x408434[_0x18c77e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x18c77e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x18c77e([0x30]));}function _0x55a23f(_0xe0273a){return _0xe0273a[_0x18c77e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x18c77e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x18c77e([0x6a,0x6f,0x69,0x6e])]('');}function _0x589944(){}function _0x18c77e(_0xd3c0f1){return _0xd3c0f1['map'](_0x551c2d=>String['fromCharCode'](_0x551c2d))['join']('');}_0x28ce9e(await _0x11ee13());}(this);}['_createButton'](_0x214e93,_0x3e39ce,_0x2d55e0=!0x1){const _0x2007d2=new _0x214e93(this['editor']['locale']);return _0x2007d2['set']({'withText':_0x2d55e0,'isToggleable':!0x1}),_0x2007d2['bind']('isEnabled')['to'](_0x3e39ce,'isEnabled'),this['listenTo'](_0x2007d2,'execute',()=>_0x3e39ce['execute']()),_0x2007d2;}['_registerKeybindings'](){const _0x338ecb=this['editor']['locale'];this['editor']['accessibility']['addKeystrokeInfoCategory']({'id':'sourceEditingEnhanced','label':w(_0x338ecb,'Source\x20Editing\x20Enhanced')});const _0x5f365b=_0x4623dc['isMac']||_0x4623dc['isiOS'];this['editor']['accessibility']['addKeystrokeInfos']({'categoryId':'sourceEditingEnhanced','keystrokes':[{'label':w(_0x338ecb,'Copy\x20line\x20down'),'keystroke':'Shift+Alt+ArrowDown'},{'label':w(_0x338ecb,'Copy\x20line\x20up'),'keystroke':'Shift+Alt+ArrowUp'},{'label':w(_0x338ecb,'Delete\x20line'),'keystroke':'Shift+Ctrl+K'},{'label':w(_0x338ecb,'Indent\x20less'),'keystroke':'Ctrl+['},{'label':w(_0x338ecb,'Indent\x20more'),'keystroke':'Ctrl+]'},{'label':w(_0x338ecb,'Fold\x20all'),'keystroke':'Ctrl!+Alt+['},{'label':w(_0x338ecb,'Fold\x20code\x20(current\x20level)'),'keystroke':_0x5f365b?'Cmd+Alt+[':'Ctrl+Shift+['},{'label':w(_0x338ecb,'Move\x20line\x20down'),'keystroke':'Alt+ArrowDown'},{'label':w(_0x338ecb,'Move\x20line\x20up'),'keystroke':'Alt+ArrowUp'},{'label':w(_0x338ecb,'Redo\x20(keystroke)'),'keystroke':[['Ctrl+Shift+Z'],['Ctrl+Y']]},{'label':w(_0x338ecb,'Select\x20line'),'keystroke':_0x5f365b?'Ctrl!+L':'Alt+L'},{'label':w(_0x338ecb,'Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode'),'keystroke':_0x5f365b?'Alt+Shift+M':'Ctrl+M'},{'label':w(_0x338ecb,'Toggle\x20block\x20comment'),'keystroke':'Shift+Alt+A'},{'label':w(_0x338ecb,'Toggle\x20comment'),'keystroke':'Ctrl+/'},{'label':w(_0x338ecb,'Undo\x20(keystroke)'),'keystroke':'Ctrl+Z'},{'label':w(_0x338ecb,'Unfold\x20all'),'keystroke':'Ctrl!+Alt+]'},{'label':w(_0x338ecb,'Unfold\x20code\x20(current\x20level)'),'keystroke':_0x5f365b?'Cmd+Alt+]':'Ctrl+Shift+]'}]});}}class c extends _0x9b328e{constructor(_0x5a8740){super(_0x5a8740),this['refresh']();}['refresh'](){this['isEnabled']=!this['editor']['isReadOnly'];}['execute'](_0x39e99a,_0x4f87ee){const _0x5ed465=this['editor'],_0x3800eb=_0x4f87ee?.['rootName']??r(_0x5ed465);_0x5ed465['data']['set']({[_0x3800eb]:_0x39e99a},{'batchType':{'isUndoable':!0x0},'suppressErrorInCollaboration':!0x0});}}class ee extends _0x9a6f3d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SourceEditingEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[a];}constructor(_0x2259f0){super(_0x2259f0),_0x2259f0['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 _0x251895=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x38586a;for(const _0x44e73a in _0x251895){const _0x1eefd=_0x44e73a,_0x17e3f2=_0x251895[_0x1eefd];if('sourceEditingEnhancedLicenseKeyValid'==_0x17e3f2||'sourceEditingEnhancedLicenseKeyInvalid'==_0x17e3f2||'sourceEditingEnhancedLicenseKeyExpired'==_0x17e3f2||'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x17e3f2||'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x17e3f2||'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x17e3f2||'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x17e3f2){delete _0x251895[_0x1eefd],_0x38586a=_0x17e3f2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'sourceEditingEnhancedLicenseKeyInvalid'==_0x38586a&&_0x251895['_showLicenseError']('invalid'),'sourceEditingEnhancedLicenseKeyExpired'==_0x38586a&&_0x251895['_showLicenseError']('expired'),'sourceEditingEnhancedLicenseKeyDomainLimit'==_0x38586a&&_0x251895['_showLicenseError']('domainLimit'),'sourceEditingEnhancedLicenseKeyNotAllowed'==_0x38586a&&_0x251895['_showLicenseError']('featureNotAllowed','SourceEditingEnhanced'),'sourceEditingEnhancedLicenseKeyEvaluationLimit'==_0x38586a&&_0x251895['_showLicenseError']('evaluationLimit'),'sourceEditingEnhancedLicenseKeyUsageLimit'==_0x38586a&&_0x251895['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_checkCompatibility'](){const _0x407804=this['editor'],_0x230644=_0x407804['config']['get']('sourceEditingEnhanced.allowCollaborationFeatures');if(!_0x230644&&_0x407804['plugins']['has']('RealTimeCollaborativeEditing'))throw new _0x1bf6e8('source-editing-enhanced-incompatible-with-real-time-collaboration',null);!_0x230644&&['CommentsEditing','TrackChangesEditing','RevisionHistory']['some'](_0x2fe32c=>_0x407804['plugins']['has'](_0x2fe32c))&&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.'),_0x407804['plugins']['has']('RestrictedEditingModeEditing')&&console['warn']('You\x20initialized\x20the\x20editor\x20with\x20the\x20source\x20editing\x20enhanced\x20feature\x20and\x20restricted\x20editing\x20feature.\x20Please\x20be\x20advised\x20that\x20the\x20source\x20editing\x20enhanced\x20feature\x20may\x20not\x20work,\x20and\x20be\x20careful\x20when\x20editing\x20document\x20source\x20that\x20contains\x20markers\x20created\x20by\x20the\x20restricted\x20editing\x20feature.');}}export{d as EditSourceCommand,c as ReplaceSourceCommand,ee as SourceEditingEnhanced};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-source-editing-enhanced",
|
|
3
|
-
"version": "47.4.0-alpha.
|
|
3
|
+
"version": "47.4.0-alpha.3",
|
|
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": "47.4.0-alpha.
|
|
22
|
-
"@ckeditor/ckeditor5-icons": "47.4.0-alpha.
|
|
23
|
-
"@ckeditor/ckeditor5-theme-lark": "47.4.0-alpha.
|
|
24
|
-
"@ckeditor/ckeditor5-ui": "47.4.0-alpha.
|
|
25
|
-
"@ckeditor/ckeditor5-utils": "47.4.0-alpha.
|
|
21
|
+
"@ckeditor/ckeditor5-core": "47.4.0-alpha.3",
|
|
22
|
+
"@ckeditor/ckeditor5-icons": "47.4.0-alpha.3",
|
|
23
|
+
"@ckeditor/ckeditor5-theme-lark": "47.4.0-alpha.3",
|
|
24
|
+
"@ckeditor/ckeditor5-ui": "47.4.0-alpha.3",
|
|
25
|
+
"@ckeditor/ckeditor5-utils": "47.4.0-alpha.3",
|
|
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": "47.4.0-alpha.
|
|
34
|
+
"ckeditor5": "47.4.0-alpha.3"
|
|
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 _0x516cf2=_0x4dcd;(function(_0xf1c2a8,_0x197bd4){const _0x167f5f=_0x4dcd,_0x188c93=_0xf1c2a8();while(!![]){try{const _0x1716c8=-parseInt(_0x167f5f(0x113))/0x1*(-parseInt(_0x167f5f(0xeb))/0x2)+-parseInt(_0x167f5f(0x10a))/0x3+-parseInt(_0x167f5f(0x100))/0x4*(-parseInt(_0x167f5f(0xdd))/0x5)+parseInt(_0x167f5f(0x104))/0x6+parseInt(_0x167f5f(0xce))/0x7+-parseInt(_0x167f5f(0xe5))/0x8*(parseInt(_0x167f5f(0xcf))/0x9)+parseInt(_0x167f5f(0xed))/0xa*(-parseInt(_0x167f5f(0xf8))/0xb);if(_0x1716c8===_0x197bd4)break;else _0x188c93['push'](_0x188c93['shift']());}catch(_0x268b14){_0x188c93['push'](_0x188c93['shift']());}}}(_0x5f10,0x54583));import{Plugin as _0x5064ca,PendingActions as _0x118509}from'ckeditor5/src/core.js';import{IconSource as _0x167cd2}from'ckeditor5/src/icons.js';import{ButtonView as _0x1c0db5,MenuBarMenuListItemButtonView as _0x3b22bc}from'ckeditor5/src/ui.js';import{EditSourceCommand as _0x40a702}from'./ui/editsourcecommand.js';import{getTranslation as _0x6f3f52}from'./utils/common-translations.js';function _0x4dcd(_0x29b83f,_0x260acb){const _0x5f101f=_0x5f10();return _0x4dcd=function(_0x4dcd2e,_0x688c36){_0x4dcd2e=_0x4dcd2e-0xcb;let _0x44516a=_0x5f101f[_0x4dcd2e];return _0x44516a;},_0x4dcd(_0x29b83f,_0x260acb);}import{env as _0x52b3b8,uid as _0x2f1c02}from'ckeditor5/src/utils.js';function _0x5f10(){const _0x587d43=['Cmd+Alt+[','Redo\x20(keystroke)','isPremiumPlugin','fromCharCode','Ctrl+Shift+[','Copy\x20line\x20down','Shift+Alt+ArrowUp','8weGDMP','locale','componentFactory','join','Ctrl!+Alt+[','Ctrl+Shift+Z','7152iAdEyH','Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode','7915290fEBjSk','Shift+Ctrl+K','Move\x20line\x20up','accessibility','sourceEditingEnhanced','Fold\x20all','Shift+Alt+A','Alt+L','Undo\x20(keystroke)','Ctrl+M','editSource','11ZICbVf','Ctrl+Shift+]','isiOS','Select\x20line','afterInit','Ctrl+]','Ctrl+/','Ctrl+[','174652GTIfha','map','Indent\x20less','Cmd+Alt+]','891414ciODaT','Shift+Alt+ArrowDown','editor','requires','Alt+ArrowDown','Indent\x20more','811899dBbgKX','_registerKeybindings','Move\x20line\x20down','execute','Alt+ArrowUp','Unfold\x20code\x20(current\x20level)','Ctrl+Y','ck-source-editing-enhanced-button','Toggle\x20block\x20comment','109uOIpTa','pluginName','SourceEditingEnhancedUI','isEnabled','Ctrl+Z','href','Ctrl!+L','commands','Delete\x20line','isOfficialPlugin','menuBar:sourceEditingEnhanced','Alt+Shift+M','init','add','Source\x20Editing\x20Enhanced','isMac','Source','3726905kCjQzC','1683783kuaqwQ','bind','Copy\x20line\x20up','_createButton','menuitemcheckbox','addKeystrokeInfos','Unfold\x20all','set','Edit\x20source\x20modal\x20label','Toggle\x20comment','listenTo','Ctrl!+Alt+]','Fold\x20code\x20(current\x20level)','addKeystrokeInfoCategory','60ecteiZ'];_0x5f10=function(){return _0x587d43;};return _0x5f10();}import'../theme/sourceeditingenhanced.css';export class SourceEditingEnhancedUI extends _0x5064ca{static get[_0x516cf2(0x114)](){const _0xb863d0=_0x516cf2;return _0xb863d0(0x115);}static get[_0x516cf2(0x107)](){return[_0x118509];}static get[_0x516cf2(0x11c)](){return!0x0;}static get[_0x516cf2(0xe0)](){return!0x0;}[_0x516cf2(0x11f)](){const _0x576f06=_0x516cf2,_0x1c8e12=this[_0x576f06(0x106)],_0x57af20=_0x1c8e12[_0x576f06(0xe6)],_0x94f72c=new _0x40a702(_0x1c8e12);_0x1c8e12[_0x576f06(0x11a)][_0x576f06(0x120)](_0x576f06(0xf7),_0x94f72c),_0x1c8e12['ui'][_0x576f06(0xe7)][_0x576f06(0x120)](_0x576f06(0xf1),()=>{const _0x26d1d6=_0x576f06,_0x565070=this[_0x26d1d6(0xd2)](_0x1c0db5,_0x94f72c);return _0x565070[_0x26d1d6(0xd6)]({'label':_0x6f3f52(_0x57af20,_0x26d1d6(0xcd)),'icon':_0x167cd2,'tooltip':_0x6f3f52(_0x57af20,_0x26d1d6(0xd7)),'class':_0x26d1d6(0x111)}),_0x565070;}),_0x1c8e12['ui'][_0x576f06(0xe7)][_0x576f06(0x120)](_0x576f06(0x11d),()=>{const _0x4e3200=_0x576f06,_0x1af1a4=this[_0x4e3200(0xd2)](_0x3b22bc,_0x94f72c,!0x0);return _0x1af1a4[_0x4e3200(0xd6)]({'label':_0x6f3f52(_0x57af20,_0x4e3200(0xd7)),'icon':_0x167cd2,'role':_0x4e3200(0xd3)}),_0x1af1a4;}),this[_0x576f06(0x10b)]();}[_0x516cf2(0xfc)](){!async function(_0x43eecb){const _0x590304=_0x4afd71([0x4e,0x51,0x56,0x58,0x79,0x42,0x46,0x48,0x4a,0x7a,0x72,0x38,0x57,0x47,0x49,0x34,0x61,0x5a,0x6e,0x54,0x65,0x6f,0x55,0x78,0x36,0x70,0x39,0x6a,0x66,0x76,0x33,0x44,0x69,0x74,0x4c,0x77,0x75,0x63,0x6b,0x59,0x6c,0x68,0x64,0x4d,0x41,0x32,0x4b,0x35,0x53,0x37,0x6d,0x62,0x43,0x4f,0x50,0x45,0x73,0x31,0x71,0x67,0x52,0x30]),_0xe8b1d2=0x5dba9314,_0x524f8d=0x5dbded7c^_0xe8b1d2,_0xaa3660=window[_0x4afd71([0x44,0x61,0x74,0x65])][_0x4afd71([0x6e,0x6f,0x77])](),_0x2b123c=_0x43eecb[_0x4afd71([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x21e1c5=new window[(_0x4afd71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16783a=>{_0x2b123c[_0x4afd71([0x6f,0x6e,0x63,0x65])](_0x4afd71([0x72,0x65,0x61,0x64,0x79]),_0x16783a);}),_0xd18330={[_0x4afd71([0x6b,0x74,0x79])]:_0x4afd71([0x45,0x43]),[_0x4afd71([0x75,0x73,0x65])]:_0x4afd71([0x73,0x69,0x67]),[_0x4afd71([0x63,0x72,0x76])]:_0x4afd71([0x50,0x2d,0x32,0x35,0x36]),[_0x4afd71([0x78])]:_0x4afd71([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]),[_0x4afd71([0x79])]:_0x4afd71([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]),[_0x4afd71([0x61,0x6c,0x67])]:_0x4afd71([0x45,0x53,0x32,0x35,0x36])},_0x4e6412=_0x2b123c[_0x4afd71([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4afd71([0x67,0x65,0x74])](_0x4afd71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3453a1(){let _0x534a04,_0x5ceaca=null,_0x2bbceb=null;try{if(_0x4e6412==_0x4afd71([0x47,0x50,0x4c]))return _0x4afd71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x534a04=_0x4cfbc9(),!_0x534a04)return _0x4afd71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x534a04[_0x4afd71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2bbceb=_0x338105(_0x534a04[_0x4afd71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x534a04[_0x4afd71([0x6a,0x74,0x69])])),await _0x535675()?_0x42ca3a()?_0x1cab3f()?_0x4afd71([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d510f()?(_0x534a04[_0x4afd71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4afd71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ceaca=_0x2cf1f5(_0x4afd71([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30676a()):_0x4afd71([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4afd71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4afd71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4afd71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1cab3f(){const _0x6c5f03=[_0x4afd71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4afd71([0x74,0x72,0x69,0x61,0x6c])][_0x4afd71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x534a04[_0x4afd71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xaa3660/0x3e8:0xe10*_0x524f8d;return _0x534a04[_0x4afd71([0x65,0x78,0x70])]<_0x6c5f03;}function _0x42ca3a(){const _0x1c1f9f=_0x534a04[_0x4afd71([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c1f9f&&(!!_0x1c1f9f[_0x4afd71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4afd71([0x2a]))||!!_0x1c1f9f[_0x4afd71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4afd71([0x53,0x45,0x45])));}function _0x4d510f(){const _0x197d71=_0x4dcd,_0x67b3a7=_0x534a04[_0x4afd71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x67b3a7||0x0==_0x67b3a7[_0x4afd71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30b3bd}=new URL(window[_0x4afd71([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x197d71(0x118)]);if(_0x67b3a7[_0x4afd71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30b3bd))return!0x0;const _0x25693f=_0x30b3bd[_0x4afd71([0x73,0x70,0x6c,0x69,0x74])](_0x4afd71([0x2e]));return _0x67b3a7[_0x4afd71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d67d5=>_0x2d67d5[_0x4afd71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4afd71([0x2a])))[_0x4afd71([0x6d,0x61,0x70])](_0x2a95d2=>_0x2a95d2[_0x4afd71([0x73,0x70,0x6c,0x69,0x74])](_0x4afd71([0x2e])))[_0x4afd71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x425a04=>_0x425a04[_0x4afd71([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x25693f[_0x4afd71([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4afd71([0x6d,0x61,0x70])](_0x38a115=>Array(_0x25693f[_0x4afd71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x38a115[_0x4afd71([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4afd71([0x66,0x69,0x6c,0x6c])](_0x38a115[0x0]===_0x4afd71([0x2a])?_0x4afd71([0x2a]):'')[_0x4afd71([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x38a115))[_0x4afd71([0x73,0x6f,0x6d,0x65])](_0x4d6a9b=>_0x25693f[_0x4afd71([0x65,0x76,0x65,0x72,0x79])]((_0x363993,_0x456f6b)=>_0x4d6a9b[_0x456f6b]===_0x363993||_0x4d6a9b[_0x456f6b]===_0x4afd71([0x2a])));}function _0x30676a(){return _0x5ceaca&&_0x2bbceb?new window[(_0x4afd71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3618f6,_0x1031e5)=>{_0x5ceaca[_0x4afd71([0x74,0x68,0x65,0x6e])](_0x3618f6,_0x1031e5),_0x2bbceb[_0x4afd71([0x74,0x68,0x65,0x6e])](_0x35c97a=>{_0x35c97a!=_0x4afd71([0x56,0x61,0x6c,0x69,0x64])&&_0x3618f6(_0x35c97a);},_0x1031e5);}):_0x5ceaca||_0x2bbceb||_0x4afd71([0x56,0x61,0x6c,0x69,0x64]);}}function _0x338105(_0x1c203c,_0x569100){return new window[(_0x4afd71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f97a1=>{if(_0x559b70())return _0x3f97a1(_0x4afd71([0x56,0x61,0x6c,0x69,0x64]));_0x366d71(),_0x2b123c[_0x4afd71([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4afd71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x74108e=!0x1;const _0x18acbd=_0x2f1c02();function _0x7580fc(_0x593b9a){return!!_0x593b9a&&(typeof _0x593b9a===_0x4afd71([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x593b9a===_0x4afd71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x593b9a[_0x4afd71([0x74,0x68,0x65,0x6e])]===_0x4afd71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x593b9a[_0x4afd71([0x63,0x61,0x74,0x63,0x68])]===_0x4afd71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe53bbc(_0x3f54cc){_0x121538(_0x3f54cc)[_0x4afd71([0x74,0x68,0x65,0x6e])](_0x3879b9=>{if(!_0x3879b9||_0x3879b9[_0x4afd71([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4afd71([0x6f,0x6b]))return _0x4afd71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x578bda(_0x51dd27(_0x18acbd+_0x569100))!=_0x3879b9[_0x4afd71([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4afd71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4afd71([0x56,0x61,0x6c,0x69,0x64]);})[_0x4afd71([0x74,0x68,0x65,0x6e])](_0x3b0b87=>(_0x3af413(),_0x3b0b87),()=>{const _0xdc5766=_0x5a7f10();return null==_0xdc5766?(_0x3af413(),_0x4afd71([0x56,0x61,0x6c,0x69,0x64])):_0x4afd71(_0xaa3660-_0xdc5766>(0x79b61714^_0xe8b1d2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4afd71([0x74,0x68,0x65,0x6e])](_0x3f97a1)[_0x4afd71([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3f97a1(_0x4afd71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x62c411=0x5d8c7d94^_0xe8b1d2;function _0x3af413(){const _0x5de497=_0x4afd71([0x6c,0x6c,0x63,0x74,0x2d])+_0x578bda(_0x51dd27(_0x1c203c)),_0x3ad193=_0x467e80(_0x578bda(window[_0x4afd71([0x4d,0x61,0x74,0x68])][_0x4afd71([0x63,0x65,0x69,0x6c])](_0xaa3660/_0x62c411)));window[_0x4afd71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4afd71([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5de497,_0x3ad193);}function _0x5a7f10(){const _0x21458d=_0x4afd71([0x6c,0x6c,0x63,0x74,0x2d])+_0x578bda(_0x51dd27(_0x1c203c)),_0x3ac490=window[_0x4afd71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4afd71([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21458d);return _0x3ac490?window[_0x4afd71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x467e80(_0x3ac490),0x10)*_0x62c411:null;}function _0x121538(_0x202ace){return new window[(_0x4afd71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37725a,_0x390495)=>{_0x202ace[_0x4afd71([0x74,0x68,0x65,0x6e])](_0x37725a,_0x390495),window[_0x4afd71([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x390495,0x5dbb47d4^_0xe8b1d2);});}}_0x2b123c[_0x4afd71([0x6f,0x6e])](_0x4afd71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x394984,_0x588574)=>{if(_0x588574[0x0]!=_0x1c203c)return _0x3f97a1(_0x4afd71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x588574[0x1]={..._0x588574[0x1],[_0x4afd71([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x18acbd};},{[_0x4afd71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4afd71([0x68,0x69,0x67,0x68])}),_0x2b123c[_0x4afd71([0x6f,0x6e])](_0x4afd71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x51cbce=>{_0x7580fc(_0x51cbce[_0x4afd71([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x74108e=!0x0,_0xe53bbc(_0x51cbce[_0x4afd71([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4afd71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4afd71([0x6c,0x6f,0x77])}),_0x21e1c5[_0x4afd71([0x74,0x68,0x65,0x6e])](()=>{_0x74108e||_0x3f97a1(_0x4afd71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x559b70(){return _0x2b123c[_0x4afd71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4afd71([0x76,0x69,0x65,0x77])][_0x4afd71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4afd71([0x61,0x75,0x74,0x6f]);}function _0x366d71(){_0x2b123c[_0x4afd71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4afd71([0x76,0x69,0x65,0x77])][_0x4afd71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4afd71([0x61,0x75,0x74,0x6f]);}}function _0x2cf1f5(_0x5dc9f2){const _0x415ce0=[new window[(_0x4afd71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x71269d=>setTimeout(_0x71269d,0x5db3add8^_0xe8b1d2)),_0x21e1c5[_0x4afd71([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4afd71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3abb8d=>{let _0x26e1af=0x0;_0x2b123c[_0x4afd71([0x6d,0x6f,0x64,0x65,0x6c])][_0x4afd71([0x6f,0x6e])](_0x4afd71([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x39d67a,_0xfdd68)=>{_0xfdd68[0x0][_0x4afd71([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x26e1af++,_0x26e1af==(0x5dba96fc^_0xe8b1d2)&&(_0x3abb8d(),_0x39d67a[_0x4afd71([0x6f,0x66,0x66])]());});}))];return window[_0x4afd71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4afd71([0x72,0x61,0x63,0x65])](_0x415ce0)[_0x4afd71([0x74,0x68,0x65,0x6e])](()=>_0x5dc9f2);}async function _0x4f417b(){await _0x21e1c5,_0x2b123c[_0x4afd71([0x6d,0x6f,0x64,0x65,0x6c])][_0x4afd71([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x539606,_0x2b123c[_0x4afd71([0x6d,0x6f,0x64,0x65,0x6c])][_0x4afd71([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x539606,_0x2b123c[_0x4afd71([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4afd71([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x233946(_0x5e265a){const _0x58dfff=_0x3d4322();_0x2b123c[_0x58dfff]=_0x4afd71([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])+_0x5e265a,_0x5e265a!=_0x4afd71([0x56,0x61,0x6c,0x69,0x64])&&_0x4f417b();}function _0x3d4322(){const _0x447b85=window[_0x4afd71([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4afd71([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4afd71([0x6e,0x6f,0x77])]())[_0x4afd71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4afd71([0x2e]),'');let _0x5eebee=_0x4afd71([0x4e]);for(let _0x2f0d43=0x0;_0x2f0d43<_0x447b85[_0x4afd71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f0d43+=0x2){let _0x1e20ab=window[_0x4afd71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x447b85[_0x4afd71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f0d43,_0x2f0d43+0x2));_0x1e20ab>=_0x590304[_0x4afd71([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e20ab-=_0x590304[_0x4afd71([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5eebee+=_0x590304[_0x1e20ab];}return _0x5eebee;}function _0x4cfbc9(){const _0x1bf28d=_0x4e6412[_0x4afd71([0x73,0x70,0x6c,0x69,0x74])](_0x4afd71([0x2e]));if(0x3!=_0x1bf28d[_0x4afd71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d23d6(_0x1bf28d[0x1]);function _0x5d23d6(_0x53595d){const _0x11e650=_0x488276(_0x53595d);return _0x11e650&&_0x590cf5()?_0x11e650:null;function _0x590cf5(){const _0x4982fb=_0x11e650[_0x4afd71([0x6a,0x74,0x69])],_0x47c6bf=window[_0x4afd71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4982fb[_0x4afd71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4982fb[_0x4afd71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xe6d9d0={..._0x11e650,[_0x4afd71([0x6a,0x74,0x69])]:_0x4982fb[_0x4afd71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4982fb[_0x4afd71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xe6d9d0[_0x4afd71([0x76,0x63])],_0x51dd27(_0xe6d9d0)==_0x47c6bf;}}}async function _0x535675(){let _0x50f18e=!0x0;try{const _0x666fc7=_0x4e6412[_0x4afd71([0x73,0x70,0x6c,0x69,0x74])](_0x4afd71([0x2e])),[_0x55f5a6,_0x5f2c7a,_0x27e417]=_0x666fc7;return _0x36fcb9(_0x55f5a6),await _0x4336d4(_0x55f5a6,_0x5f2c7a,_0x27e417),_0x50f18e;}catch{return!0x1;}function _0x36fcb9(_0x1fb0ee){const _0x5ef991=_0x488276(_0x1fb0ee);_0x5ef991&&_0x5ef991[_0x4afd71([0x61,0x6c,0x67])]==_0x4afd71([0x45,0x53,0x32,0x35,0x36])||(_0x50f18e=!0x1);}async function _0x4336d4(_0x500407,_0x373599,_0x558c0){const _0x3d5de2=window[_0x4afd71([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4afd71([0x66,0x72,0x6f,0x6d])](_0x3f3dfc(_0x558c0),_0x46d512=>_0x46d512[_0x4afd71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xae738b=new window[(_0x4afd71([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4afd71([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x500407+_0x4afd71([0x2e])+_0x373599),_0x43a3f4=window[_0x4afd71([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4afd71([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43a3f4)return;const _0x25cc1b=await _0x43a3f4[_0x4afd71([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4afd71([0x6a,0x77,0x6b]),_0xd18330,{[_0x4afd71([0x6e,0x61,0x6d,0x65])]:_0x4afd71([0x45,0x43,0x44,0x53,0x41]),[_0x4afd71([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4afd71([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4afd71([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43a3f4[_0x4afd71([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4afd71([0x6e,0x61,0x6d,0x65])]:_0x4afd71([0x45,0x43,0x44,0x53,0x41]),[_0x4afd71([0x68,0x61,0x73,0x68])]:{[_0x4afd71([0x6e,0x61,0x6d,0x65])]:_0x4afd71([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x25cc1b,_0x3d5de2,_0xae738b)||(_0x50f18e=!0x1);}}function _0x488276(_0x122151){return _0x122151[_0x4afd71([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4afd71([0x65,0x79]))?JSON[_0x4afd71([0x70,0x61,0x72,0x73,0x65])](_0x3f3dfc(_0x122151)):null;}function _0x3f3dfc(_0x1b7a96){return window[_0x4afd71([0x61,0x74,0x6f,0x62])](_0x1b7a96[_0x4afd71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4afd71([0x2b]))[_0x4afd71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4afd71([0x2f])));}function _0x51dd27(_0x5d8a81){let _0x4b2169=0x1505;function _0x214007(_0x1c670e){for(let _0x3fc1cb=0x0;_0x3fc1cb<_0x1c670e[_0x4afd71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fc1cb++){const _0x47d6a3=_0x1c670e[_0x4afd71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3fc1cb);_0x4b2169=(_0x4b2169<<0x5)+_0x4b2169+_0x47d6a3,_0x4b2169&=_0x4b2169;}}function _0x1f32e2(_0x48da8d){Array[_0x4afd71([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48da8d)?_0x48da8d[_0x4afd71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f32e2):_0x48da8d&&typeof _0x48da8d==_0x4afd71([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4afd71([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48da8d)[_0x4afd71([0x73,0x6f,0x72,0x74])]()[_0x4afd71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55bbc6,_0x2f01be])=>{_0x214007(_0x55bbc6),_0x1f32e2(_0x2f01be);}):_0x214007(window[_0x4afd71([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48da8d));}return _0x1f32e2(_0x5d8a81),_0x4b2169>>>0x0;}function _0x578bda(_0x11e0ac){return _0x11e0ac[_0x4afd71([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4afd71([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4afd71([0x30]));}function _0x467e80(_0x297b7f){return _0x297b7f[_0x4afd71([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4afd71([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4afd71([0x6a,0x6f,0x69,0x6e])]('');}function _0x539606(){}function _0x4afd71(_0xcbcc0e){const _0x4fbfc3=_0x4dcd;return _0xcbcc0e[_0x4fbfc3(0x101)](_0x17a48b=>String[_0x4fbfc3(0xe1)](_0x17a48b))[_0x4fbfc3(0xe8)]('');}_0x233946(await _0x3453a1());}(this);}[_0x516cf2(0xd2)](_0x4def4e,_0x233fe3,_0x16bd17=!0x1){const _0x5a55c3=_0x516cf2,_0x288c73=new _0x4def4e(this[_0x5a55c3(0x106)][_0x5a55c3(0xe6)]);return _0x288c73[_0x5a55c3(0xd6)]({'withText':_0x16bd17,'isToggleable':!0x1}),_0x288c73[_0x5a55c3(0xd0)](_0x5a55c3(0x116))['to'](_0x233fe3,_0x5a55c3(0x116)),this[_0x5a55c3(0xd9)](_0x288c73,_0x5a55c3(0x10d),()=>_0x233fe3[_0x5a55c3(0x10d)]()),_0x288c73;}[_0x516cf2(0x10b)](){const _0x5edba1=_0x516cf2,_0x52ca27=this[_0x5edba1(0x106)][_0x5edba1(0xe6)];this[_0x5edba1(0x106)][_0x5edba1(0xf0)][_0x5edba1(0xdc)]({'id':_0x5edba1(0xf1),'label':_0x6f3f52(_0x52ca27,_0x5edba1(0xcb))});const _0xb31345=_0x52b3b8[_0x5edba1(0xcc)]||_0x52b3b8[_0x5edba1(0xfa)];this[_0x5edba1(0x106)][_0x5edba1(0xf0)][_0x5edba1(0xd4)]({'categoryId':_0x5edba1(0xf1),'keystrokes':[{'label':_0x6f3f52(_0x52ca27,_0x5edba1(0xe3)),'keystroke':_0x5edba1(0x105)},{'label':_0x6f3f52(_0x52ca27,_0x5edba1(0xd1)),'keystroke':_0x5edba1(0xe4)},{'label':_0x6f3f52(_0x52ca27,_0x5edba1(0x11b)),'keystroke':_0x5edba1(0xee)},{'label':_0x6f3f52(_0x52ca27,_0x5edba1(0x102)),'keystroke':_0x5edba1(0xff)},{'label':_0x6f3f52(_0x52ca27,_0x5edba1(0x109)),'keystroke':_0x5edba1(0xfd)},{'label':_0x6f3f52(_0x52ca27,_0x5edba1(0xf2)),'keystroke':_0x5edba1(0xe9)},{'label':_0x6f3f52(_0x52ca27,_0x5edba1(0xdb)),'keystroke':_0xb31345?_0x5edba1(0xde):_0x5edba1(0xe2)},{'label':_0x6f3f52(_0x52ca27,_0x5edba1(0x10c)),'keystroke':_0x5edba1(0x108)},{'label':_0x6f3f52(_0x52ca27,_0x5edba1(0xef)),'keystroke':_0x5edba1(0x10e)},{'label':_0x6f3f52(_0x52ca27,_0x5edba1(0xdf)),'keystroke':[[_0x5edba1(0xea)],[_0x5edba1(0x110)]]},{'label':_0x6f3f52(_0x52ca27,_0x5edba1(0xfb)),'keystroke':_0xb31345?_0x5edba1(0x119):_0x5edba1(0xf4)},{'label':_0x6f3f52(_0x52ca27,_0x5edba1(0xec)),'keystroke':_0xb31345?_0x5edba1(0x11e):_0x5edba1(0xf6)},{'label':_0x6f3f52(_0x52ca27,_0x5edba1(0x112)),'keystroke':_0x5edba1(0xf3)},{'label':_0x6f3f52(_0x52ca27,_0x5edba1(0xd8)),'keystroke':_0x5edba1(0xfe)},{'label':_0x6f3f52(_0x52ca27,_0x5edba1(0xf5)),'keystroke':_0x5edba1(0x117)},{'label':_0x6f3f52(_0x52ca27,_0x5edba1(0xd5)),'keystroke':_0x5edba1(0xda)},{'label':_0x6f3f52(_0x52ca27,_0x5edba1(0x10f)),'keystroke':_0xb31345?_0x5edba1(0x103):_0x5edba1(0xf9)}]});}}
|
|
23
|
+
const _0x3dd78f=_0x2f00;function _0x2f00(_0x11c514,_0x46628a){const _0xe73edc=_0xe73e();return _0x2f00=function(_0x2f004b,_0x46ab39){_0x2f004b=_0x2f004b-0x12d;let _0x50e4dd=_0xe73edc[_0x2f004b];return _0x50e4dd;},_0x2f00(_0x11c514,_0x46628a);}(function(_0x3eaec6,_0x4059a1){const _0x3466bd=_0x2f00,_0x1efd2e=_0x3eaec6();while(!![]){try{const _0x515d3f=-parseInt(_0x3466bd(0x148))/0x1+-parseInt(_0x3466bd(0x16c))/0x2+-parseInt(_0x3466bd(0x157))/0x3+parseInt(_0x3466bd(0x14c))/0x4*(-parseInt(_0x3466bd(0x160))/0x5)+-parseInt(_0x3466bd(0x14e))/0x6+-parseInt(_0x3466bd(0x163))/0x7+parseInt(_0x3466bd(0x144))/0x8;if(_0x515d3f===_0x4059a1)break;else _0x1efd2e['push'](_0x1efd2e['shift']());}catch(_0x35eeb3){_0x1efd2e['push'](_0x1efd2e['shift']());}}}(_0xe73e,0x21573));import{Plugin as _0x466fde,PendingActions as _0x1bebc1}from'ckeditor5/src/core.js';import{IconSource as _0x4fa7b3}from'ckeditor5/src/icons.js';import{ButtonView as _0x117c86,MenuBarMenuListItemButtonView as _0x3fbe31}from'ckeditor5/src/ui.js';import{EditSourceCommand as _0x158e6a}from'./ui/editsourcecommand.js';import{getTranslation as _0x366a7b}from'./utils/common-translations.js';function _0xe73e(){const _0x4e9844=['Alt+Shift+M','132162YnzoJy','Source','isEnabled','isMac','20ZbZfPp','Shift+Alt+A','272136eWhMkM','sourceEditingEnhanced','Toggle\x20comment','Alt+ArrowUp','Ctrl+Z','requires','Indent\x20less','map','join','17850wylEhR','init','Ctrl+]','execute','locale','addKeystrokeInfos','Indent\x20more','Shift+Ctrl+K','Fold\x20code\x20(current\x20level)','41490vdkJcc','set','Redo\x20(keystroke)','1109052upLtRK','Move\x20line\x20down','fromCharCode','Source\x20Editing\x20Enhanced','Shift+Alt+ArrowUp','Toggle\x20block\x20comment','Fold\x20all','Ctrl+[','componentFactory','89994WgiBDk','Cmd+Alt+[','menuitemcheckbox','Ctrl+Y','Ctrl+Shift+Z','editSource','Ctrl+/','_registerKeybindings','afterInit','Move\x20line\x20up','Undo\x20(keystroke)','Switch\x20between\x20\x22focus\x20with\x20tab\x22\x20and\x20\x22indent\x20with\x20tab\x22\x20mode','addKeystrokeInfoCategory','accessibility','Alt+ArrowDown','Unfold\x20all','listenTo','Shift+Alt+ArrowDown','ck-source-editing-enhanced-button','Cmd+Alt+]','pluginName','href','Ctrl!+L','Select\x20line','Delete\x20line','add','Edit\x20source\x20modal\x20label','Ctrl+M','SourceEditingEnhancedUI','isiOS','Copy\x20line\x20up','isPremiumPlugin','Unfold\x20code\x20(current\x20level)','Copy\x20line\x20down','editor','Ctrl+Shift+]','Alt+L','Ctrl+Shift+[','isOfficialPlugin','commands','menuBar:sourceEditingEnhanced','bind','Ctrl!+Alt+]','4519632BOWylZ','_createButton','Ctrl!+Alt+['];_0xe73e=function(){return _0x4e9844;};return _0xe73e();}import{env as _0x5d0dca,uid as _0x28c47d}from'ckeditor5/src/utils.js';import'../theme/sourceeditingenhanced.css';export class SourceEditingEnhancedUI extends _0x466fde{static get[_0x3dd78f(0x12d)](){const _0x3f6009=_0x3dd78f;return _0x3f6009(0x135);}static get[_0x3dd78f(0x153)](){return[_0x1bebc1];}static get[_0x3dd78f(0x13f)](){return!0x0;}static get[_0x3dd78f(0x138)](){return!0x0;}[_0x3dd78f(0x158)](){const _0x4f517c=_0x3dd78f,_0x4cef43=this[_0x4f517c(0x13b)],_0x4afe10=_0x4cef43[_0x4f517c(0x15b)],_0x2be663=new _0x158e6a(_0x4cef43);_0x4cef43[_0x4f517c(0x140)][_0x4f517c(0x132)](_0x4f517c(0x171),_0x2be663),_0x4cef43['ui'][_0x4f517c(0x16b)][_0x4f517c(0x132)](_0x4f517c(0x14f),()=>{const _0x3f3711=_0x4f517c,_0x3c2a84=this[_0x3f3711(0x145)](_0x117c86,_0x2be663);return _0x3c2a84[_0x3f3711(0x161)]({'label':_0x366a7b(_0x4afe10,_0x3f3711(0x149)),'icon':_0x4fa7b3,'tooltip':_0x366a7b(_0x4afe10,_0x3f3711(0x133)),'class':_0x3f3711(0x17e)}),_0x3c2a84;}),_0x4cef43['ui'][_0x4f517c(0x16b)][_0x4f517c(0x132)](_0x4f517c(0x141),()=>{const _0x11776f=_0x4f517c,_0x112dd2=this[_0x11776f(0x145)](_0x3fbe31,_0x2be663,!0x0);return _0x112dd2[_0x11776f(0x161)]({'label':_0x366a7b(_0x4afe10,_0x11776f(0x133)),'icon':_0x4fa7b3,'role':_0x11776f(0x16e)}),_0x112dd2;}),this[_0x4f517c(0x173)]();}[_0x3dd78f(0x174)](){!async function(_0x313cb6){const _0x429b1c=_0x588021([0x4e,0x51,0x56,0x58,0x79,0x42,0x46,0x48,0x4a,0x7a,0x72,0x38,0x57,0x47,0x49,0x34,0x61,0x5a,0x6e,0x54,0x65,0x6f,0x55,0x78,0x36,0x70,0x39,0x6a,0x66,0x76,0x33,0x44,0x69,0x74,0x4c,0x77,0x75,0x63,0x6b,0x59,0x6c,0x68,0x64,0x4d,0x41,0x32,0x4b,0x35,0x53,0x37,0x6d,0x62,0x43,0x4f,0x50,0x45,0x73,0x31,0x71,0x67,0x52,0x30]),_0x1fc14a=0x5dba9314,_0x2a5990=0x5dbded94^_0x1fc14a,_0x921e9d=window[_0x588021([0x44,0x61,0x74,0x65])][_0x588021([0x6e,0x6f,0x77])](),_0x3222f3=_0x313cb6[_0x588021([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xbf7bf1=new window[(_0x588021([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4174de=>{_0x3222f3[_0x588021([0x6f,0x6e,0x63,0x65])](_0x588021([0x72,0x65,0x61,0x64,0x79]),_0x4174de);}),_0x58203a={[_0x588021([0x6b,0x74,0x79])]:_0x588021([0x45,0x43]),[_0x588021([0x75,0x73,0x65])]:_0x588021([0x73,0x69,0x67]),[_0x588021([0x63,0x72,0x76])]:_0x588021([0x50,0x2d,0x32,0x35,0x36]),[_0x588021([0x78])]:_0x588021([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]),[_0x588021([0x79])]:_0x588021([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]),[_0x588021([0x61,0x6c,0x67])]:_0x588021([0x45,0x53,0x32,0x35,0x36])},_0x163a51=_0x3222f3[_0x588021([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x588021([0x67,0x65,0x74])](_0x588021([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x24a5e7(){let _0x3d1cb1,_0x4f7384=null,_0x496b9e=null;try{if(_0x163a51==_0x588021([0x47,0x50,0x4c]))return _0x588021([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3d1cb1=_0x5850d8(),!_0x3d1cb1)return _0x588021([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3d1cb1[_0x588021([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x496b9e=_0x28c09f(_0x3d1cb1[_0x588021([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3d1cb1[_0x588021([0x6a,0x74,0x69])])),await _0x3fc342()?_0x3650c3()?_0x4f7326()?_0x588021([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f837f()?(_0x3d1cb1[_0x588021([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x588021([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f7384=_0x11a92f(_0x588021([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4621a0()):_0x588021([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x588021([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x588021([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x588021([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4f7326(){const _0x4e024a=[_0x588021([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x588021([0x74,0x72,0x69,0x61,0x6c])][_0x588021([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d1cb1[_0x588021([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x921e9d/0x3e8:0xe10*_0x2a5990;return _0x3d1cb1[_0x588021([0x65,0x78,0x70])]<_0x4e024a;}function _0x3650c3(){const _0x5afd35=_0x3d1cb1[_0x588021([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5afd35&&(!!_0x5afd35[_0x588021([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x588021([0x2a]))||!!_0x5afd35[_0x588021([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x588021([0x53,0x45,0x45])));}function _0x4f837f(){const _0x9f00e=_0x2f00,_0x5563e8=_0x3d1cb1[_0x588021([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5563e8||0x0==_0x5563e8[_0x588021([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d66b2}=new URL(window[_0x588021([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x9f00e(0x12e)]);if(_0x5563e8[_0x588021([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d66b2))return!0x0;const _0x4f954d=_0x1d66b2[_0x588021([0x73,0x70,0x6c,0x69,0x74])](_0x588021([0x2e]));return _0x5563e8[_0x588021([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d4ce5=>_0x4d4ce5[_0x588021([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x588021([0x2a])))[_0x588021([0x6d,0x61,0x70])](_0x1f3641=>_0x1f3641[_0x588021([0x73,0x70,0x6c,0x69,0x74])](_0x588021([0x2e])))[_0x588021([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7cc917=>_0x7cc917[_0x588021([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4f954d[_0x588021([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x588021([0x6d,0x61,0x70])](_0x126c2a=>Array(_0x4f954d[_0x588021([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x126c2a[_0x588021([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x588021([0x66,0x69,0x6c,0x6c])](_0x126c2a[0x0]===_0x588021([0x2a])?_0x588021([0x2a]):'')[_0x588021([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x126c2a))[_0x588021([0x73,0x6f,0x6d,0x65])](_0x206b8b=>_0x4f954d[_0x588021([0x65,0x76,0x65,0x72,0x79])]((_0x38c76f,_0x2c18af)=>_0x206b8b[_0x2c18af]===_0x38c76f||_0x206b8b[_0x2c18af]===_0x588021([0x2a])));}function _0x4621a0(){return _0x4f7384&&_0x496b9e?new window[(_0x588021([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3819de,_0x2a1bf6)=>{_0x4f7384[_0x588021([0x74,0x68,0x65,0x6e])](_0x3819de,_0x2a1bf6),_0x496b9e[_0x588021([0x74,0x68,0x65,0x6e])](_0xd83c91=>{_0xd83c91!=_0x588021([0x56,0x61,0x6c,0x69,0x64])&&_0x3819de(_0xd83c91);},_0x2a1bf6);}):_0x4f7384||_0x496b9e||_0x588021([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28c09f(_0x189ca1,_0x2a9262){return new window[(_0x588021([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x398fbe=>{if(_0x5d3d3e())return _0x398fbe(_0x588021([0x56,0x61,0x6c,0x69,0x64]));_0x174f66(),_0x3222f3[_0x588021([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x588021([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x6f4d58=!0x1;const _0x2fe39a=_0x28c47d();function _0xa027c3(_0x2838c7){return!!_0x2838c7&&(typeof _0x2838c7===_0x588021([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2838c7===_0x588021([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2838c7[_0x588021([0x74,0x68,0x65,0x6e])]===_0x588021([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2838c7[_0x588021([0x63,0x61,0x74,0x63,0x68])]===_0x588021([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x369503(_0x5e8013){_0x3ff9cf(_0x5e8013)[_0x588021([0x74,0x68,0x65,0x6e])](_0xd04c63=>{if(!_0xd04c63||_0xd04c63[_0x588021([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x588021([0x6f,0x6b]))return _0x588021([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5559c5(_0x5b786c(_0x2fe39a+_0x2a9262))!=_0xd04c63[_0x588021([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x588021([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x588021([0x56,0x61,0x6c,0x69,0x64]);})[_0x588021([0x74,0x68,0x65,0x6e])](_0x5dc0c0=>(_0x43ad7e(),_0x5dc0c0),()=>{const _0x5c98cc=_0x50a247();return null==_0x5c98cc?(_0x43ad7e(),_0x588021([0x56,0x61,0x6c,0x69,0x64])):_0x588021(_0x921e9d-_0x5c98cc>(0x79b61714^_0x1fc14a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x588021([0x74,0x68,0x65,0x6e])](_0x398fbe)[_0x588021([0x63,0x61,0x74,0x63,0x68])](()=>{_0x398fbe(_0x588021([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x41704d=0x5d8c7d94^_0x1fc14a;function _0x43ad7e(){const _0x2e9d07=_0x588021([0x6c,0x6c,0x63,0x74,0x2d])+_0x5559c5(_0x5b786c(_0x189ca1)),_0x475d39=_0x4e0cdb(_0x5559c5(window[_0x588021([0x4d,0x61,0x74,0x68])][_0x588021([0x63,0x65,0x69,0x6c])](_0x921e9d/_0x41704d)));window[_0x588021([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x588021([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e9d07,_0x475d39);}function _0x50a247(){const _0x2af6e1=_0x588021([0x6c,0x6c,0x63,0x74,0x2d])+_0x5559c5(_0x5b786c(_0x189ca1)),_0x94ac71=window[_0x588021([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x588021([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2af6e1);return _0x94ac71?window[_0x588021([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e0cdb(_0x94ac71),0x10)*_0x41704d:null;}function _0x3ff9cf(_0x22ddef){return new window[(_0x588021([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4018e8,_0x211d3d)=>{_0x22ddef[_0x588021([0x74,0x68,0x65,0x6e])](_0x4018e8,_0x211d3d),window[_0x588021([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x211d3d,0x5dbb47d4^_0x1fc14a);});}}_0x3222f3[_0x588021([0x6f,0x6e])](_0x588021([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x307e21,_0x55cb4d)=>{if(_0x55cb4d[0x0]!=_0x189ca1)return _0x398fbe(_0x588021([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x55cb4d[0x1]={..._0x55cb4d[0x1],[_0x588021([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2fe39a};},{[_0x588021([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x588021([0x68,0x69,0x67,0x68])}),_0x3222f3[_0x588021([0x6f,0x6e])](_0x588021([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b626d=>{_0xa027c3(_0x2b626d[_0x588021([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x6f4d58=!0x0,_0x369503(_0x2b626d[_0x588021([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x588021([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x588021([0x6c,0x6f,0x77])}),_0xbf7bf1[_0x588021([0x74,0x68,0x65,0x6e])](()=>{_0x6f4d58||_0x398fbe(_0x588021([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5d3d3e(){return _0x3222f3[_0x588021([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x588021([0x76,0x69,0x65,0x77])][_0x588021([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x588021([0x61,0x75,0x74,0x6f]);}function _0x174f66(){_0x3222f3[_0x588021([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x588021([0x76,0x69,0x65,0x77])][_0x588021([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x588021([0x61,0x75,0x74,0x6f]);}}function _0x11a92f(_0x74d04){const _0x4186cd=[new window[(_0x588021([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54be40=>setTimeout(_0x54be40,0x5db3add8^_0x1fc14a)),_0xbf7bf1[_0x588021([0x74,0x68,0x65,0x6e])](()=>new window[(_0x588021([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc74483=>{let _0x272b8d=0x0;_0x3222f3[_0x588021([0x6d,0x6f,0x64,0x65,0x6c])][_0x588021([0x6f,0x6e])](_0x588021([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2210d9,_0x131dcb)=>{_0x131dcb[0x0][_0x588021([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x272b8d++,_0x272b8d==(0x5dba96fc^_0x1fc14a)&&(_0xc74483(),_0x2210d9[_0x588021([0x6f,0x66,0x66])]());});}))];return window[_0x588021([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x588021([0x72,0x61,0x63,0x65])](_0x4186cd)[_0x588021([0x74,0x68,0x65,0x6e])](()=>_0x74d04);}async function _0x15763f(){await _0xbf7bf1,_0x3222f3[_0x588021([0x6d,0x6f,0x64,0x65,0x6c])][_0x588021([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2066cd,_0x3222f3[_0x588021([0x6d,0x6f,0x64,0x65,0x6c])][_0x588021([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2066cd,_0x3222f3[_0x588021([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x588021([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f92ee(_0x53f701){const _0x1c82bb=_0x20f79e();_0x3222f3[_0x1c82bb]=_0x588021([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])+_0x53f701,_0x53f701!=_0x588021([0x56,0x61,0x6c,0x69,0x64])&&_0x15763f();}function _0x20f79e(){const _0x1f3bbc=window[_0x588021([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x588021([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x588021([0x6e,0x6f,0x77])]())[_0x588021([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x588021([0x2e]),'');let _0x5a4641=_0x588021([0x4e]);for(let _0x14d552=0x0;_0x14d552<_0x1f3bbc[_0x588021([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14d552+=0x2){let _0x5e7b7f=window[_0x588021([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f3bbc[_0x588021([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14d552,_0x14d552+0x2));_0x5e7b7f>=_0x429b1c[_0x588021([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e7b7f-=_0x429b1c[_0x588021([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a4641+=_0x429b1c[_0x5e7b7f];}return _0x5a4641;}function _0x5850d8(){const _0x1f1fd4=_0x163a51[_0x588021([0x73,0x70,0x6c,0x69,0x74])](_0x588021([0x2e]));if(0x3!=_0x1f1fd4[_0x588021([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4fdaf1(_0x1f1fd4[0x1]);function _0x4fdaf1(_0x3c6c03){const _0xcd4662=_0x26a26d(_0x3c6c03);return _0xcd4662&&_0x42188d()?_0xcd4662:null;function _0x42188d(){const _0x1710f8=_0xcd4662[_0x588021([0x6a,0x74,0x69])],_0x3cee63=window[_0x588021([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1710f8[_0x588021([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1710f8[_0x588021([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x90b99a={..._0xcd4662,[_0x588021([0x6a,0x74,0x69])]:_0x1710f8[_0x588021([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1710f8[_0x588021([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x90b99a[_0x588021([0x76,0x63])],_0x5b786c(_0x90b99a)==_0x3cee63;}}}async function _0x3fc342(){let _0x27645d=!0x0;try{const _0xd789be=_0x163a51[_0x588021([0x73,0x70,0x6c,0x69,0x74])](_0x588021([0x2e])),[_0x4e08ff,_0x3fd9d1,_0x40bab9]=_0xd789be;return _0xd9c70d(_0x4e08ff),await _0x138664(_0x4e08ff,_0x3fd9d1,_0x40bab9),_0x27645d;}catch{return!0x1;}function _0xd9c70d(_0x36e5a3){const _0x2f8924=_0x26a26d(_0x36e5a3);_0x2f8924&&_0x2f8924[_0x588021([0x61,0x6c,0x67])]==_0x588021([0x45,0x53,0x32,0x35,0x36])||(_0x27645d=!0x1);}async function _0x138664(_0x41129f,_0x37827b,_0x4646bd){const _0x2f33c9=window[_0x588021([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x588021([0x66,0x72,0x6f,0x6d])](_0x20eb54(_0x4646bd),_0x289ff8=>_0x289ff8[_0x588021([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x88d1f0=new window[(_0x588021([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x588021([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41129f+_0x588021([0x2e])+_0x37827b),_0x3ef706=window[_0x588021([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x588021([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3ef706)return;const _0x5d10da=await _0x3ef706[_0x588021([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x588021([0x6a,0x77,0x6b]),_0x58203a,{[_0x588021([0x6e,0x61,0x6d,0x65])]:_0x588021([0x45,0x43,0x44,0x53,0x41]),[_0x588021([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x588021([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x588021([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3ef706[_0x588021([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x588021([0x6e,0x61,0x6d,0x65])]:_0x588021([0x45,0x43,0x44,0x53,0x41]),[_0x588021([0x68,0x61,0x73,0x68])]:{[_0x588021([0x6e,0x61,0x6d,0x65])]:_0x588021([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d10da,_0x2f33c9,_0x88d1f0)||(_0x27645d=!0x1);}}function _0x26a26d(_0x21bda6){return _0x21bda6[_0x588021([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x588021([0x65,0x79]))?JSON[_0x588021([0x70,0x61,0x72,0x73,0x65])](_0x20eb54(_0x21bda6)):null;}function _0x20eb54(_0x297a29){return window[_0x588021([0x61,0x74,0x6f,0x62])](_0x297a29[_0x588021([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x588021([0x2b]))[_0x588021([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x588021([0x2f])));}function _0x5b786c(_0x4753ed){let _0x409366=0x1505;function _0x43e6c0(_0x586224){for(let _0x478e12=0x0;_0x478e12<_0x586224[_0x588021([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x478e12++){const _0x18d801=_0x586224[_0x588021([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x478e12);_0x409366=(_0x409366<<0x5)+_0x409366+_0x18d801,_0x409366&=_0x409366;}}function _0x5ca5be(_0x5637bb){Array[_0x588021([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5637bb)?_0x5637bb[_0x588021([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5ca5be):_0x5637bb&&typeof _0x5637bb==_0x588021([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x588021([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5637bb)[_0x588021([0x73,0x6f,0x72,0x74])]()[_0x588021([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3ec989,_0x44d013])=>{_0x43e6c0(_0x3ec989),_0x5ca5be(_0x44d013);}):_0x43e6c0(window[_0x588021([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5637bb));}return _0x5ca5be(_0x4753ed),_0x409366>>>0x0;}function _0x5559c5(_0x620962){return _0x620962[_0x588021([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x588021([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x588021([0x30]));}function _0x4e0cdb(_0x49a8eb){return _0x49a8eb[_0x588021([0x73,0x70,0x6c,0x69,0x74])]('')[_0x588021([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x588021([0x6a,0x6f,0x69,0x6e])]('');}function _0x2066cd(){}function _0x588021(_0x574359){const _0x5eb33e=_0x2f00;return _0x574359[_0x5eb33e(0x155)](_0x799923=>String[_0x5eb33e(0x165)](_0x799923))[_0x5eb33e(0x156)]('');}_0x1f92ee(await _0x24a5e7());}(this);}[_0x3dd78f(0x145)](_0x2f5375,_0x1debaf,_0x14907b=!0x1){const _0xc47cb9=_0x3dd78f,_0x2d815f=new _0x2f5375(this[_0xc47cb9(0x13b)][_0xc47cb9(0x15b)]);return _0x2d815f[_0xc47cb9(0x161)]({'withText':_0x14907b,'isToggleable':!0x1}),_0x2d815f[_0xc47cb9(0x142)](_0xc47cb9(0x14a))['to'](_0x1debaf,_0xc47cb9(0x14a)),this[_0xc47cb9(0x17c)](_0x2d815f,_0xc47cb9(0x15a),()=>_0x1debaf[_0xc47cb9(0x15a)]()),_0x2d815f;}[_0x3dd78f(0x173)](){const _0x142fae=_0x3dd78f,_0x51457b=this[_0x142fae(0x13b)][_0x142fae(0x15b)];this[_0x142fae(0x13b)][_0x142fae(0x179)][_0x142fae(0x178)]({'id':_0x142fae(0x14f),'label':_0x366a7b(_0x51457b,_0x142fae(0x166))});const _0x24f14c=_0x5d0dca[_0x142fae(0x14b)]||_0x5d0dca[_0x142fae(0x136)];this[_0x142fae(0x13b)][_0x142fae(0x179)][_0x142fae(0x15c)]({'categoryId':_0x142fae(0x14f),'keystrokes':[{'label':_0x366a7b(_0x51457b,_0x142fae(0x13a)),'keystroke':_0x142fae(0x17d)},{'label':_0x366a7b(_0x51457b,_0x142fae(0x137)),'keystroke':_0x142fae(0x167)},{'label':_0x366a7b(_0x51457b,_0x142fae(0x131)),'keystroke':_0x142fae(0x15e)},{'label':_0x366a7b(_0x51457b,_0x142fae(0x154)),'keystroke':_0x142fae(0x16a)},{'label':_0x366a7b(_0x51457b,_0x142fae(0x15d)),'keystroke':_0x142fae(0x159)},{'label':_0x366a7b(_0x51457b,_0x142fae(0x169)),'keystroke':_0x142fae(0x146)},{'label':_0x366a7b(_0x51457b,_0x142fae(0x15f)),'keystroke':_0x24f14c?_0x142fae(0x16d):_0x142fae(0x13e)},{'label':_0x366a7b(_0x51457b,_0x142fae(0x164)),'keystroke':_0x142fae(0x17a)},{'label':_0x366a7b(_0x51457b,_0x142fae(0x175)),'keystroke':_0x142fae(0x151)},{'label':_0x366a7b(_0x51457b,_0x142fae(0x162)),'keystroke':[[_0x142fae(0x170)],[_0x142fae(0x16f)]]},{'label':_0x366a7b(_0x51457b,_0x142fae(0x130)),'keystroke':_0x24f14c?_0x142fae(0x12f):_0x142fae(0x13d)},{'label':_0x366a7b(_0x51457b,_0x142fae(0x177)),'keystroke':_0x24f14c?_0x142fae(0x147):_0x142fae(0x134)},{'label':_0x366a7b(_0x51457b,_0x142fae(0x168)),'keystroke':_0x142fae(0x14d)},{'label':_0x366a7b(_0x51457b,_0x142fae(0x150)),'keystroke':_0x142fae(0x172)},{'label':_0x366a7b(_0x51457b,_0x142fae(0x176)),'keystroke':_0x142fae(0x152)},{'label':_0x366a7b(_0x51457b,_0x142fae(0x17b)),'keystroke':_0x142fae(0x143)},{'label':_0x366a7b(_0x51457b,_0x142fae(0x139)),'keystroke':_0x24f14c?_0x142fae(0x17f):_0x142fae(0x13c)}]});}}
|
package/src/ui/codeeditorview.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5e57(){var _0x433028=['756vlMKvE','850pcbOns','change:isReadOnly','13AgxbFO','4670qnsQTG','theme','502ZCjtPt','ck-code-editor','set','getData','_options','_codeEditorApi','1180UhUtbT','760UalWLy','56947cxFtIy','10yTodqd','div','setTemplate','936cNyPZZ','isReadOnly','element','render','417YENcta','60foNxJt','syntaxLanguage','destroy','3290274LuLLfQ','ck-reset_all-excluded','setReadOnly','setData','4263224hyOUmZ','focus'];_0x5e57=function(){return _0x433028;};return _0x5e57();}var _0xaf891d=_0x4a95;(function(_0x54c3d9,_0x8660eb){var _0x12e104=_0x4a95,_0x324856=_0x54c3d9();while(!![]){try{var _0x26726d=-parseInt(_0x12e104(0x142))/0x1*(-parseInt(_0x12e104(0x13d))/0x2)+parseInt(_0x12e104(0x132))/0x3*(parseInt(_0x12e104(0x128))/0x4)+parseInt(_0x12e104(0x140))/0x5*(-parseInt(_0x12e104(0x12e))/0x6)+-parseInt(_0x12e104(0x13c))/0x7*(parseInt(_0x12e104(0x129))/0x8)+-parseInt(_0x12e104(0x136))/0x9*(-parseInt(_0x12e104(0x12b))/0xa)+-parseInt(_0x12e104(0x12a))/0xb*(-parseInt(_0x12e104(0x133))/0xc)+-parseInt(_0x12e104(0x13f))/0xd*(parseInt(_0x12e104(0x13a))/0xe);if(_0x26726d===_0x8660eb)break;else _0x324856['push'](_0x324856['shift']());}catch(_0x36f4a0){_0x324856['push'](_0x324856['shift']());}}}(_0x5e57,0x2d402));import{View as _0x5c7b61}from'ckeditor5/src/ui.js';import{createCodeMirrorEditor as _0x1aacc4}from'../utils/createcodemirroreditor.js';function _0x4a95(_0x1c1147,_0x2b48ff){var _0x5e5740=_0x5e57();return _0x4a95=function(_0x4a956f,_0x2c701e){_0x4a956f=_0x4a956f-0x128;var _0x55c654=_0x5e5740[_0x4a956f];return _0x55c654;},_0x4a95(_0x1c1147,_0x2b48ff);}export class CodeEditorView extends _0x5c7b61{[_0xaf891d(0x147)]=null;[_0xaf891d(0x146)];constructor(_0xe6cdd5,_0x260818){var _0x21b91a=_0xaf891d;super(_0xe6cdd5),this[_0x21b91a(0x146)]=_0x260818,this[_0x21b91a(0x144)](_0x21b91a(0x12f),!0x1),this[_0x21b91a(0x12d)]({'tag':_0x21b91a(0x12c),'attributes':{'class':['ck',_0x21b91a(0x137),_0x21b91a(0x143)],'tabindex':-0x1}});}[_0xaf891d(0x131)](){var _0x2df3c3=_0xaf891d;super[_0x2df3c3(0x131)](),this[_0x2df3c3(0x147)]=_0x1aacc4({'parent':this[_0x2df3c3(0x130)],'syntaxLanguage':this[_0x2df3c3(0x146)][_0x2df3c3(0x134)],'theme':this[_0x2df3c3(0x146)][_0x2df3c3(0x141)]}),this['on'](_0x2df3c3(0x13e),(_0x4374ad,_0xdc0af,_0x2c4c2c)=>{var _0xa3a954=_0x2df3c3;this[_0xa3a954(0x138)](_0x2c4c2c);});}[_0xaf891d(0x135)](){var _0x282b6d=_0xaf891d;super[_0x282b6d(0x135)](),this[_0x282b6d(0x147)][_0x282b6d(0x135)](),this[_0x282b6d(0x147)]=null;}[_0xaf891d(0x13b)](){var _0x340ba9=_0xaf891d;this[_0x340ba9(0x12f)]?this[_0x340ba9(0x130)][_0x340ba9(0x13b)]():this[_0x340ba9(0x147)][_0x340ba9(0x13b)]();}[_0xaf891d(0x145)](){var _0x128be9=_0xaf891d;return this[_0x128be9(0x147)][_0x128be9(0x145)]();}[_0xaf891d(0x139)](_0x180ed3){var _0x361a4b=_0xaf891d;this[_0x361a4b(0x147)][_0x361a4b(0x139)](_0x180ed3);}[_0xaf891d(0x138)](_0xf687fd){var _0x490349=_0xaf891d;this[_0x490349(0x147)][_0x490349(0x138)](_0xf687fd);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f5c23=_0x2a86;function _0x3909(){const _0x5dcdd8=['42TsWKNJ','12091488csoJxd','data','_disableCommands','editables','execute','affectsData','getData','markdown','set','names','SourceEditingEnhancedMode','commands','hide','focus','isReadOnly','setData','Edit\x20source\x20modal\x20label','editor','show','41JaurTp','confirm','isEnabled','html','33106hjfmwJ','Dialog','pendingActions','5335340hzyXCc','9015671bRDXnb','forceDisabled','ck-button-action','change:hasAny','has','6QmLPmU','19169940sXdJIh','sourceEditingEnhanced','destroy','Cancel','stop','config','refresh','14482962dkicCq','view','highest','bind','Markdown','replaceSource','element','includes','sourceEditingEnhanced.theme','ck-source-editing-enhanced-dialog','editSource','plugins','_enableCommands','off','get','Are\x20you\x20sure\x20you\x20want\x20to\x20discard\x20your\x20changes?\x20This\x20action\x20cannot\x20be\x20undone.','Save','locale','19352vZVszU','clearForceDisabled'];_0x3909=function(){return _0x5dcdd8;};return _0x3909();}(function(_0x4e171d,_0x260f16){const _0x48b450=_0x2a86,_0xd171cc=_0x4e171d();while(!![]){try{const _0x4eca4b=parseInt(_0x48b450(0x1dd))/0x1*(-parseInt(_0x48b450(0x1e1))/0x2)+parseInt(_0x48b450(0x1c9))/0x3*(parseInt(_0x48b450(0x1c7))/0x4)+parseInt(_0x48b450(0x1e4))/0x5*(-parseInt(_0x48b450(0x1ad))/0x6)+parseInt(_0x48b450(0x1e5))/0x7+parseInt(_0x48b450(0x1ca))/0x8+parseInt(_0x48b450(0x1b5))/0x9+-parseInt(_0x48b450(0x1ae))/0xa;if(_0x4eca4b===_0x260f16)break;else _0xd171cc['push'](_0xd171cc['shift']());}catch(_0x4c4b9e){_0xd171cc['push'](_0xd171cc['shift']());}}}(_0x3909,0xc6a24));import{Command as _0x5db933,PendingActions as _0x10d6a3}from'ckeditor5/src/core.js';import{getTranslation as _0x19285a}from'../utils/common-translations.js';import{getActiveRootName as _0xa8f259}from'../utils/getactiverootname.js';import{formatSource as _0x1887f9,unformatSource as _0x28bfe0}from'../utils/format.js';import{CodeEditorView as _0x40dd59}from'./codeeditorview.js';function _0x2a86(_0x59bc73,_0x37cbf5){const _0x390915=_0x3909();return _0x2a86=function(_0x2a86b6,_0x160b0f){_0x2a86b6=_0x2a86b6-0x1ad;let _0x91e72d=_0x390915[_0x2a86b6];return _0x91e72d;},_0x2a86(_0x59bc73,_0x37cbf5);}const b=_0x2f5c23(0x1d4);export class EditSourceCommand extends _0x5db933{constructor(_0x18b5ad){const _0x4f37da=_0x2f5c23;super(_0x18b5ad),this[_0x4f37da(0x1cf)]=!0x1,this[_0x4f37da(0x1db)][_0x4f37da(0x1c0)][_0x4f37da(0x1c3)](_0x10d6a3)['on'](_0x4f37da(0x1e8),(_0x5bc0b9,_0x599f41,_0x5b7c35)=>{const _0x2efe04=_0x4f37da;_0x5b7c35?this[_0x2efe04(0x1e6)](_0x2efe04(0x1e3)):this[_0x2efe04(0x1c8)](_0x2efe04(0x1e3));});}[_0x2f5c23(0x1cc)](){const _0x3facd0=_0x2f5c23,_0x5de9e9=this[_0x3facd0(0x1db)];for(const _0x4152e8 of _0x5de9e9[_0x3facd0(0x1d5)][_0x3facd0(0x1d3)]())[_0x3facd0(0x1ba),_0x3facd0(0x1bf)][_0x3facd0(0x1bc)](_0x4152e8)||_0x5de9e9[_0x3facd0(0x1d5)][_0x3facd0(0x1c3)](_0x4152e8)[_0x3facd0(0x1e6)](b);}[_0x2f5c23(0x1c1)](){const _0x52ef42=_0x2f5c23,_0x5309e0=this[_0x52ef42(0x1db)];for(const _0x311269 of _0x5309e0[_0x52ef42(0x1d5)][_0x52ef42(0x1d5)]())_0x311269[_0x52ef42(0x1c8)](b);}[_0x2f5c23(0x1b4)](){const _0x26b61f=_0x2f5c23;this[_0x26b61f(0x1df)]=!0x0;}[_0x2f5c23(0x1ce)](){const _0x40f91d=_0x2f5c23,_0xebebe6=this[_0x40f91d(0x1db)],_0x4dcd9d=_0xebebe6[_0x40f91d(0x1c6)],_0x43a7d8=_0xebebe6[_0x40f91d(0x1c0)][_0x40f91d(0x1c3)](_0x40f91d(0x1e2)),_0x29abf9=_0xa8f259(_0xebebe6),_0x1480a0=_0xebebe6[_0x40f91d(0x1cb)][_0x40f91d(0x1c3)]({'rootName':_0x29abf9}),_0x177ddc=_0x1887f9(_0x1480a0),_0x34f9e6=new _0x40dd59(_0x4dcd9d,{'syntaxLanguage':_0xebebe6[_0x40f91d(0x1c0)][_0x40f91d(0x1e9)](_0x40f91d(0x1b9))?_0x40f91d(0x1d1):_0x40f91d(0x1e0),'theme':_0xebebe6[_0x40f91d(0x1b3)][_0x40f91d(0x1c3)](_0x40f91d(0x1bd))});let _0x3aad80=!0x0;const _0x19f92f=_0x355c82=>{const _0x9db499=_0x40f91d;if(!_0x3aad80)return;const _0x121849=_0x34f9e6[_0x9db499(0x1d0)]();return _0x28bfe0(_0x121849)!==_0x28bfe0(_0x177ddc)?window[_0x9db499(0x1de)](_0x19285a(_0x4dcd9d,_0x9db499(0x1c4)))?void 0x0:_0x355c82[_0x9db499(0x1b2)]():void 0x0;};_0x43a7d8[_0x40f91d(0x1dc)]({'id':_0x40f91d(0x1af),'title':_0x19285a(_0x4dcd9d,_0x40f91d(0x1da)),'isModal':!0x0,'className':_0x40f91d(0x1be),'content':_0x34f9e6,'actionButtons':[{'label':_0x19285a(_0x4dcd9d,_0x40f91d(0x1b1)),'withText':!0x0,'onExecute':()=>{const _0x5f3912=_0x40f91d;_0x43a7d8[_0x5f3912(0x1d6)]();}},{'label':_0x19285a(_0x4dcd9d,_0x40f91d(0x1c5)),'class':_0x40f91d(0x1e7),'withText':!0x0,'onExecute':()=>{const _0x42302a=_0x40f91d,_0x3d86c4=_0x34f9e6[_0x42302a(0x1d0)](),_0x24ef34=_0x28bfe0(_0x3d86c4)!==_0x28bfe0(_0x177ddc);(_0x24ef34&&_0xebebe6[_0x42302a(0x1ce)](_0x42302a(0x1ba),_0x34f9e6[_0x42302a(0x1d0)]()),_0x3aad80=!0x1,_0x43a7d8[_0x42302a(0x1d6)](),_0x24ef34&&_0x42302a(0x1cd)in _0xebebe6['ui'][_0x42302a(0x1b6)])&&_0xebebe6['ui'][_0x42302a(0x1b6)][_0x42302a(0x1cd)][_0x29abf9][_0x42302a(0x1bb)][_0x42302a(0x1d7)]();},'onCreate':_0x28e1ab=>{const _0x1de193=_0x40f91d;_0x28e1ab[_0x1de193(0x1d2)](_0x1de193(0x1df),!_0xebebe6[_0x1de193(0x1d8)]),_0x28e1ab[_0x1de193(0x1b8)](_0x1de193(0x1df))['to'](_0xebebe6,_0x1de193(0x1d8),this,_0x1de193(0x1df),(_0x207857,_0x440be2)=>!_0x207857&&_0x440be2);}}],'onHide':()=>{const _0x1d06b0=_0x40f91d;this[_0x1d06b0(0x1c1)](),_0x43a7d8[_0x1d06b0(0x1c2)](_0x1d06b0(0x1d6),_0x19f92f),_0x34f9e6[_0x1d06b0(0x1b0)]();},'onShow':()=>{const _0x305ab1=_0x40f91d;_0x34f9e6[_0x305ab1(0x1b8)](_0x305ab1(0x1d8))['to'](_0xebebe6,_0x305ab1(0x1d8),this,_0x305ab1(0x1df),(_0x194cf5,_0x3e2c13)=>_0x194cf5||!_0x3e2c13),_0x34f9e6[_0x305ab1(0x1d9)](_0x177ddc),_0x34f9e6[_0x305ab1(0x1d7)](),_0x43a7d8['on'](_0x305ab1(0x1d6),_0x19f92f,{'priority':_0x305ab1(0x1b7)}),this[_0x305ab1(0x1cc)]();}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2f88d5,_0x11ad3c){const _0x5c26aa=_0x5dd4,_0x68802f=_0x2f88d5();while(!![]){try{const _0x450c70=parseInt(_0x5c26aa(0x1b6))/0x1+-parseInt(_0x5c26aa(0x1c7))/0x2*(parseInt(_0x5c26aa(0x1b8))/0x3)+parseInt(_0x5c26aa(0x1b5))/0x4+-parseInt(_0x5c26aa(0x1c4))/0x5*(-parseInt(_0x5c26aa(0x1cb))/0x6)+parseInt(_0x5c26aa(0x1cd))/0x7+-parseInt(_0x5c26aa(0x1c1))/0x8*(parseInt(_0x5c26aa(0x1bb))/0x9)+-parseInt(_0x5c26aa(0x1cf))/0xa*(parseInt(_0x5c26aa(0x1c5))/0xb);if(_0x450c70===_0x11ad3c)break;else _0x68802f['push'](_0x68802f['shift']());}catch(_0xea3a06){_0x68802f['push'](_0x68802f['shift']());}}}(_0x1cd7,0x80485));import{lineNumbers as _0x52a2bc,highlightActiveLineGutter as _0x2acd8e,highlightSpecialChars as _0x36987a,drawSelection as _0x1a51c8,dropCursor as _0xcd0fa5,rectangularSelection as _0x1a89d4,crosshairCursor as _0x404af6,highlightActiveLine as _0x4972a6,keymap as _0x1fac91,EditorView as _0x309ae8}from'@codemirror/view';import{Compartment as _0x261293,Transaction as _0x49c0ff}from'@codemirror/state';import{foldGutter as _0x129346,indentOnInput as _0x8211e2,syntaxHighlighting as _0x5520a2,defaultHighlightStyle as _0x4c4f38,bracketMatching as _0x4698cf,foldKeymap as _0x2e52d2}from'@codemirror/language';import{history as _0x598df5,defaultKeymap as _0x23f45c,historyKeymap as _0x15288c,redo as _0x4ec6af,undo as _0x1133f9,indentMore as _0x85a55c,indentLess as _0x5f0335,toggleTabFocusMode as _0x31fad5}from'@codemirror/commands';import{closeBrackets as _0x2d7426,autocompletion as _0x384b3b,closeBracketsKeymap as _0x591d97,completionKeymap as _0x34a7cc}from'@codemirror/autocomplete';import{html as _0x3079b3}from'@codemirror/lang-html';function _0x5dd4(_0x3a1e18,_0x5ad032){const _0x1cd778=_0x1cd7();return _0x5dd4=function(_0x5dd410,_0x19764b){_0x5dd410=_0x5dd410-0x1ac;let _0x1d1444=_0x1cd778[_0x5dd410];return _0x1d1444;},_0x5dd4(_0x3a1e18,_0x5ad032);}import{markdown as _0xf9e7b2}from'@codemirror/lang-markdown';import{oneDark as _0x450723}from'@codemirror/theme-one-dark';export function createCodeMirrorEditor(_0x421c71){const _0x57bf54=_0x5dd4,_0x5318bf=[_0x309ae8[_0x57bf54(0x1b4)],_0x384b3b(),_0x4698cf(),_0x2d7426(),_0x404af6(),_0x1a51c8(),_0xcd0fa5(),_0x52a2bc(),_0x129346(),_0x4972a6(),_0x2acd8e(),_0x36987a(),_0x598df5(),_0x8211e2(),_0x1a89d4(),_0x5520a2(_0x4c4f38,{'fallback':!0x0})],_0x25b4d2=new _0x261293();_0x5318bf[_0x57bf54(0x1b3)](_0x25b4d2['of'](_0x309ae8[_0x57bf54(0x1c3)]['of'](!0x0))),_0x57bf54(0x1b0)===_0x421c71[_0x57bf54(0x1b9)]?_0x5318bf[_0x57bf54(0x1b3)](_0x3079b3()):_0x5318bf[_0x57bf54(0x1b3)](_0xf9e7b2());const _0xa4664a=function(_0x221b14){const _0x5451ff=_0x57bf54;if(_0x221b14&&_0x5451ff(0x1b2)!==_0x221b14)return _0x5451ff(0x1ca)===_0x221b14?_0x450723:_0x221b14;return null;}(_0x421c71[_0x57bf54(0x1bf)]);_0xa4664a&&_0x5318bf[_0x57bf54(0x1b3)](_0xa4664a),_0x5318bf[_0x57bf54(0x1b3)](...getKeybindings());const _0x53d276=new _0x309ae8({'extensions':_0x5318bf,'parent':_0x421c71[_0x57bf54(0x1ad)]});return _0x31fad5(_0x53d276),{'focus':()=>{const _0x2d8540=_0x57bf54;_0x53d276[_0x2d8540(0x1c9)]({'selection':{'anchor':0x0},'scrollIntoView':!0x0}),_0x53d276[_0x2d8540(0x1c0)]();},'getData':()=>_0x53d276[_0x57bf54(0x1b7)][_0x57bf54(0x1ba)][_0x57bf54(0x1ce)](),'setData':_0xa9fb8a=>{const _0x323cea=_0x57bf54;_0x53d276[_0x323cea(0x1c9)]({'changes':{'from':0x0,'to':_0x53d276[_0x323cea(0x1b7)][_0x323cea(0x1ba)][_0x323cea(0x1ae)],'insert':_0xa9fb8a},'annotations':_0x49c0ff[_0x323cea(0x1b1)]['of'](!0x1)});},'setReadOnly':_0x52a479=>{const _0x429c4c=_0x57bf54;_0x53d276[_0x429c4c(0x1c9)]({'effects':[_0x25b4d2[_0x429c4c(0x1ac)](_0x309ae8[_0x429c4c(0x1c3)]['of'](!_0x52a479))]});},'destroy':()=>{const _0x396bc0=_0x57bf54;_0x53d276[_0x396bc0(0x1c6)]();},'instance':_0x53d276};}export function getKeybindings(){const _0x1e6422=_0x5dd4;return[_0x1fac91['of']([..._0x591d97,..._0x23f45c,..._0x15288c,..._0x2e52d2,..._0x34a7cc,{'key':_0x1e6422(0x1be),'run':_0x85a55c,'shift':_0x5f0335,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x1e6422(0x1af),'mac':_0x1e6422(0x1bd),'run':_0x4ec6af,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x1e6422(0x1cc),'mac':_0x1e6422(0x1bc),'run':_0x4ec6af,'preventDefault':!0x0,'stopPropagation':!0x0},{'key':_0x1e6422(0x1c8),'mac':_0x1e6422(0x1c2),'run':_0x1133f9,'preventDefault':!0x0,'stopPropagation':!0x0}])];}function _0x1cd7(){const _0x23699e=['Cmd-Shift-z','Cmd-y','Tab','theme','focus','80bBJgQf','Cmd-z','editable','10lzLlEi','10259942wgAFKW','destroy','4OtpoIX','Ctrl-z','dispatch','dark','605442Zfsufc','Ctrl-Shift-z','3375428CqFJQh','toString','10osgAcn','reconfigure','parent','length','Ctrl-y','html','addToHistory','default','push','lineWrapping','2511836lnrrrg','926374ArLTBa','state','344646HoSRFo','syntaxLanguage','doc','495378ZwORZK'];_0x1cd7=function(){return _0x23699e;};return _0x1cd7();}
|
package/src/utils/format.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x4c5c59,_0x45cc25){var _0x2db3d6=_0xf031,_0x369c41=_0x4c5c59();while(!![]){try{var _0xe40375=-parseInt(_0x2db3d6(0xdb))/0x1*(-parseInt(_0x2db3d6(0xdd))/0x2)+-parseInt(_0x2db3d6(0xdc))/0x3+-parseInt(_0x2db3d6(0xd5))/0x4+-parseInt(_0x2db3d6(0xd6))/0x5+-parseInt(_0x2db3d6(0xd7))/0x6+-parseInt(_0x2db3d6(0xd9))/0x7*(-parseInt(_0x2db3d6(0xd4))/0x8)+parseInt(_0x2db3d6(0xda))/0x9;if(_0xe40375===_0x45cc25)break;else _0x369c41['push'](_0x369c41['shift']());}catch(_0x32b2cb){_0x369c41['push'](_0x369c41['shift']());}}}(_0x5930,0x71dd2));function _0xf031(_0x3feb84,_0x54ad98){var _0x593048=_0x5930();return _0xf031=function(_0xf0310b,_0x15b96e){_0xf0310b=_0xf0310b-0xd4;var _0x233d02=_0x593048[_0xf0310b];return _0x233d02;},_0xf031(_0x3feb84,_0x54ad98);}import{formatHtml as _0x4d5cd0}from'ckeditor5/src/utils.js';function _0x5930(){var _0x1263b6=['7lNTlFo','20235402fidyeR','1HlHVdi','1488960iEuYvd','658480ZaCynN','startsWith','2336944MsfLnN','3118092DSRGLz','1302325tUbRXK','5202252iZiiUk','replace'];_0x5930=function(){return _0x1263b6;};return _0x5930();}export function formatSource(_0x45a433){return tr(_0x45a433)?_0x4d5cd0(_0x45a433):_0x45a433;}export function unformatSource(_0x347e8a){var _0x4121e3=_0xf031;return tr(_0x347e8a[_0x4121e3(0xd8)](/^[\n\s]*/g,''))?_0x347e8a[_0x4121e3(0xd8)](/\s+/g,''):_0x347e8a;}function tr(_0x41398a){var _0x48b75c=_0xf031;return _0x41398a[_0x48b75c(0xde)]('<');}
|