@ckeditor/ckeditor5-slash-command 48.8.1-alpha.0 → 48.8.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x309d15}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0xc35a8b}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x440e2a,uid as _0x3fa968}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x16b87a,IconQuote as _0x126ba4,IconBulletedList as _0x31b61c,IconCodeBlock as _0x15632c,IconBrowseFiles as _0x5bd611,IconEmoji as _0x3405b8,IconHeading1 as _0x17a76d,IconHeading2 as _0xbe3678,IconHeading3 as _0x69113c,IconHeading4 as _0x231a94,IconHeading5 as _0x492633,IconHeading6 as _0x5e3575,IconHorizontalLine as _0xb640bb,IconHtml as _0x384412,IconIndent as _0x562ce2,IconTable as _0x22dfc2,IconTableOfContents as _0x8c8c49,IconNumberedList as _0x23cad8,IconOutdent as _0x5e68f5,IconParagraph as _0x247ba9,IconTodoList as _0xe9605b,IconFootnote as _0x26ee66,IconPlay as _0x472119}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x219e65,View as _0x4cb0cc}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0x309d15{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5cfe95){super(_0x5cfe95),this['_allowedCommands']=null;}['afterInit'](){const _0x416b75=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x4bdaa4=function(_0x4b412f){let _0x5cd058=['heading4','heading5','heading6'];if(_0x4b412f){const _0x4a699c=_0x4b412f['map'](_0x3852af=>_0x3852af['model']);_0x5cd058=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x38fc48=>!_0x4a699c['includes'](_0x38fc48));}return _0x5cd058;}(this['editor']['config']['get']('heading.options'));let _0x57fec4=this['getDefaultCommands']()['filter'](_0x2f6b6a=>!_0x4bdaa4['includes'](_0x2f6b6a['id']))['filter'](_0x48148c=>!_0x416b75['includes'](_0x48148c['commandName']));const _0x2a5a12=this['editor']['config']['get']('slashCommand.extraCommands');_0x2a5a12&&_0x2a5a12['length']&&(_0x57fec4=_0x57fec4['concat'](_0x2a5a12));const _0x396b46=this['editor']['config']['get']('template.definitions');_0x396b46&&_0x396b46['length']&&(_0x57fec4=_0x57fec4['concat'](function(_0x2bd168){return _0x2bd168['map'](_0x552fae=>{const {title:_0x2fdb31,icon:_0xae3a3c,description:_0x1c1a6e,data:_0x4691f0}=_0x552fae,_0x5197b8={'id':O(_0x2fdb31,'template'),'commandName':'insertTemplate','execute':_0x28e0cc=>{_0x28e0cc['execute']('insertTemplate',_0x4691f0);},'description':_0x1c1a6e,'icon':_0xae3a3c,'title':_0x2fdb31};return _0xae3a3c&&(_0x5197b8['isIconColorInherited']=!0x1),_0x5197b8;});}(_0x396b46)));const _0x5c018a=this['editor']['config']['get']('style.definitions');_0x5c018a&&_0x5c018a['length']&&(_0x57fec4=_0x57fec4['concat'](function(_0x29007d){return _0x29007d['map'](_0x411810=>({'id':O(_0x411810['name'],'style'),'commandName':'style','execute':_0x4a9428=>{_0x4a9428['execute']('style',{'styleName':_0x411810['name']});},'isEnabled':_0x4e3239=>{const _0x48987b=_0x4e3239['commands']['get']('style');return _0x48987b['isEnabled']&&_0x48987b['enabledStyles']['includes'](_0x411810['name']);},'title':_0x411810['name']}));}(_0x5c018a)));const _0x29c707=_0x57fec4['filter'](_0x5d5054=>!_0x5d5054['commandName']||void 0x0!==this['editor']['commands']['get'](_0x5d5054['commandName'])),_0x34e392=[];for(const _0x2cb065 of _0x29c707)_0x34e392['push']({'id':_0x2cb065['id'],'commandName':_0x2cb065['commandName'],'title':'function'==typeof _0x2cb065['title']?_0x2cb065['title'](this['editor']):_0x2cb065['title'],'description':_0x2cb065['description'],'icon':_0x2cb065['icon'],'isIconColorInherited':_0x2cb065['isIconColorInherited'],'aliases':_0x2cb065['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x2cb065),'execute':()=>this['_proxyExecute'](_0x2cb065)});this['_allowedCommands']=_0x34e392['sort'](S),async function(_0x939235){const _0x137c7e=_0xb9d739([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0x91a742=0x305505ed,_0x4bff1c=0x30528fcd^_0x91a742,_0x11040a=window[_0xb9d739([0x44,0x61,0x74,0x65])][_0xb9d739([0x6e,0x6f,0x77])](),_0x1d5140=_0x939235[_0xb9d739([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc4863c=new window[(_0xb9d739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18f445=>{_0x1d5140[_0xb9d739([0x6f,0x6e,0x63,0x65])](_0xb9d739([0x72,0x65,0x61,0x64,0x79]),_0x18f445);}),_0x469ae1={[_0xb9d739([0x6b,0x74,0x79])]:_0xb9d739([0x45,0x43]),[_0xb9d739([0x75,0x73,0x65])]:_0xb9d739([0x73,0x69,0x67]),[_0xb9d739([0x63,0x72,0x76])]:_0xb9d739([0x50,0x2d,0x32,0x35,0x36]),[_0xb9d739([0x78])]:_0xb9d739([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]),[_0xb9d739([0x79])]:_0xb9d739([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]),[_0xb9d739([0x61,0x6c,0x67])]:_0xb9d739([0x45,0x53,0x32,0x35,0x36])},_0x2d516c=_0x1d5140[_0xb9d739([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb9d739([0x67,0x65,0x74])](_0xb9d739([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5c8fa5(){let _0x594d7d,_0x1978a4=null,_0x16e97d=null;try{if(_0x2d516c==_0xb9d739([0x47,0x50,0x4c]))return _0xb9d739([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x594d7d=_0x25bf6d(),!_0x594d7d)return _0xb9d739([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x594d7d[_0xb9d739([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x16e97d=_0x3aa72b(_0x594d7d[_0xb9d739([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x594d7d[_0xb9d739([0x6a,0x74,0x69])])),await _0x293992()?_0x1a2b39()?_0x2881a7()?_0xb9d739([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x160a66()?(_0x594d7d[_0xb9d739([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb9d739([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1978a4=_0x399518(_0xb9d739([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5942dc()):_0xb9d739([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb9d739([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb9d739([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xb9d739([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2881a7(){const _0x5121c6=[_0xb9d739([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb9d739([0x74,0x72,0x69,0x61,0x6c])][_0xb9d739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x594d7d[_0xb9d739([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11040a/0x3e8:0xe10*_0x4bff1c;return _0x594d7d[_0xb9d739([0x65,0x78,0x70])]<_0x5121c6;}function _0x1a2b39(){const _0x2f9a2e=_0x594d7d[_0xb9d739([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2f9a2e&&(!!_0x2f9a2e[_0xb9d739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb9d739([0x2a]))||(!!_0x2f9a2e[_0xb9d739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb9d739([0x53,0x43]))||(!!_0x2f9a2e[_0xb9d739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb9d739([0x50,0x50]))||!(!_0x2f9a2e[_0xb9d739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb9d739([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x20d21a()))));}function _0x160a66(){const _0x4ffa65=_0x594d7d[_0xb9d739([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ffa65||0x0==_0x4ffa65[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29a39b}=new URL(window[_0xb9d739([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ffa65[_0xb9d739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29a39b))return!0x0;const _0x35de0d=_0x29a39b[_0xb9d739([0x73,0x70,0x6c,0x69,0x74])](_0xb9d739([0x2e]));return _0x4ffa65[_0xb9d739([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x410c14=>_0x410c14[_0xb9d739([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb9d739([0x2a])))[_0xb9d739([0x6d,0x61,0x70])](_0xaccb2a=>_0xaccb2a[_0xb9d739([0x73,0x70,0x6c,0x69,0x74])](_0xb9d739([0x2e])))[_0xb9d739([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x443234=>_0x443234[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x35de0d[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb9d739([0x6d,0x61,0x70])](_0x4f0342=>Array(_0x35de0d[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4f0342[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb9d739([0x66,0x69,0x6c,0x6c])](_0x4f0342[0x0]===_0xb9d739([0x2a])?_0xb9d739([0x2a]):'')[_0xb9d739([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4f0342))[_0xb9d739([0x73,0x6f,0x6d,0x65])](_0x24deac=>_0x35de0d[_0xb9d739([0x65,0x76,0x65,0x72,0x79])]((_0x38084f,_0x3fd14b)=>_0x24deac[_0x3fd14b]===_0x38084f||_0x24deac[_0x3fd14b]===_0xb9d739([0x2a])));}function _0x5942dc(){return _0x1978a4&&_0x16e97d?new window[(_0xb9d739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x548c03,_0x2c0e9f)=>{_0x1978a4[_0xb9d739([0x74,0x68,0x65,0x6e])](_0x548c03,_0x2c0e9f),_0x16e97d[_0xb9d739([0x74,0x68,0x65,0x6e])](_0x4bf896=>{_0x4bf896!=_0xb9d739([0x56,0x61,0x6c,0x69,0x64])&&_0x548c03(_0x4bf896);},_0x2c0e9f);}):_0x1978a4||_0x16e97d||_0xb9d739([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3aa72b(_0x197c46,_0x2f7522){return new window[(_0xb9d739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a6fbc=>{if(_0x60f568())return _0x5a6fbc(_0xb9d739([0x56,0x61,0x6c,0x69,0x64]));_0x572aab(),_0x1d5140[_0xb9d739([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb9d739([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x64c850=!0x1;const _0xf6b9f7=_0x3fa968();function _0x4e3f8b(_0x2ca832){return!!_0x2ca832&&(typeof _0x2ca832===_0xb9d739([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ca832===_0xb9d739([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ca832[_0xb9d739([0x74,0x68,0x65,0x6e])]===_0xb9d739([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ca832[_0xb9d739([0x63,0x61,0x74,0x63,0x68])]===_0xb9d739([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x39225e(_0x30afab){_0x2269ed(_0x30afab)[_0xb9d739([0x74,0x68,0x65,0x6e])](_0x4408ce=>{if(!_0x4408ce||_0x4408ce[_0xb9d739([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb9d739([0x6f,0x6b]))return _0xb9d739([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x375642(_0x3fd9ed(_0xf6b9f7+_0x2f7522))!=_0x4408ce[_0xb9d739([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb9d739([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb9d739([0x56,0x61,0x6c,0x69,0x64]);})[_0xb9d739([0x74,0x68,0x65,0x6e])](_0x1cac67=>(_0x2e94d7(),_0x1cac67),()=>{const _0x455374=_0x20ac75();return null==_0x455374?(_0x2e94d7(),_0xb9d739([0x56,0x61,0x6c,0x69,0x64])):_0xb9d739(_0x11040a-_0x455374>(0x145981ed^_0x91a742)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb9d739([0x74,0x68,0x65,0x6e])](_0x5a6fbc)[_0xb9d739([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a6fbc(_0xb9d739([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x391b29=0x3063eb6d^_0x91a742;function _0x2e94d7(){const _0x14da8b=_0xb9d739([0x6c,0x6c,0x63,0x74,0x2d])+_0x375642(_0x3fd9ed(_0x197c46)),_0x365275=_0x1bceb9(_0x375642(window[_0xb9d739([0x4d,0x61,0x74,0x68])][_0xb9d739([0x63,0x65,0x69,0x6c])](_0x11040a/_0x391b29)));window[_0xb9d739([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb9d739([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14da8b,_0x365275);}function _0x20ac75(){const _0xa9a683=_0xb9d739([0x6c,0x6c,0x63,0x74,0x2d])+_0x375642(_0x3fd9ed(_0x197c46)),_0xb62dc6=window[_0xb9d739([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb9d739([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa9a683);return _0xb62dc6?window[_0xb9d739([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bceb9(_0xb62dc6),0x10)*_0x391b29:null;}function _0x2269ed(_0x1d7e3a){return new window[(_0xb9d739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d17e0,_0x43038b)=>{_0x1d7e3a[_0xb9d739([0x74,0x68,0x65,0x6e])](_0x2d17e0,_0x43038b),window[_0xb9d739([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43038b,0x3054d12d^_0x91a742);});}}_0x1d5140[_0xb9d739([0x6f,0x6e])](_0xb9d739([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x30520d,_0x2d74e0)=>{if(_0x2d74e0[0x0]!=_0x197c46)return _0x5a6fbc(_0xb9d739([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d74e0[0x1]={..._0x2d74e0[0x1],[_0xb9d739([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xf6b9f7};},{[_0xb9d739([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb9d739([0x68,0x69,0x67,0x68])}),_0x1d5140[_0xb9d739([0x6f,0x6e])](_0xb9d739([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x453e12=>{_0x4e3f8b(_0x453e12[_0xb9d739([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x64c850=!0x0,_0x39225e(_0x453e12[_0xb9d739([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb9d739([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb9d739([0x6c,0x6f,0x77])}),_0xc4863c[_0xb9d739([0x74,0x68,0x65,0x6e])](()=>{_0x64c850||_0x5a6fbc(_0xb9d739([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x60f568(){return _0x1d5140[_0xb9d739([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb9d739([0x76,0x69,0x65,0x77])][_0xb9d739([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb9d739([0x61,0x75,0x74,0x6f]);}function _0x572aab(){_0x1d5140[_0xb9d739([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb9d739([0x76,0x69,0x65,0x77])][_0xb9d739([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb9d739([0x61,0x75,0x74,0x6f]);}}function _0x399518(_0x2d321f){const _0x14cfa6=[new window[(_0xb9d739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x124207=>setTimeout(_0x124207,0x305c3b21^_0x91a742)),_0xc4863c[_0xb9d739([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb9d739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b3dc5=>{let _0x40597c=0x0;_0x1d5140[_0xb9d739([0x6d,0x6f,0x64,0x65,0x6c])][_0xb9d739([0x6f,0x6e])](_0xb9d739([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1c1303,_0x3b4c56)=>{_0x3b4c56[0x0][_0xb9d739([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x40597c++,_0x40597c==(0x30550005^_0x91a742)&&(_0x1b3dc5(),_0x1c1303[_0xb9d739([0x6f,0x66,0x66])]());});}))];return window[_0xb9d739([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb9d739([0x72,0x61,0x63,0x65])](_0x14cfa6)[_0xb9d739([0x74,0x68,0x65,0x6e])](()=>_0x2d321f);}async function _0x2483ef(){await _0xc4863c,_0x1d5140[_0xb9d739([0x6d,0x6f,0x64,0x65,0x6c])][_0xb9d739([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3edf1d,_0x1d5140[_0xb9d739([0x6d,0x6f,0x64,0x65,0x6c])][_0xb9d739([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3edf1d,_0x1d5140[_0xb9d739([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb9d739([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x20d21a(){return window[_0xb9d739([0x67,0x6c,0x6f,0x62])]&&window[_0xb9d739([0x67,0x6c,0x6f,0x62])][_0xb9d739([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x446ecc(_0x41953f){const _0x42d504=_0x2e92dd();_0x1d5140[_0x42d504]=_0xb9d739([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x41953f,_0x41953f!=_0xb9d739([0x56,0x61,0x6c,0x69,0x64])&&_0x2483ef();}function _0x2e92dd(){const _0x265dd7=window[_0xb9d739([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb9d739([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb9d739([0x6e,0x6f,0x77])]())[_0xb9d739([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb9d739([0x2e]),'');let _0x952e0c=_0xb9d739([0x75]);for(let _0x57e701=0x0;_0x57e701<_0x265dd7[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57e701+=0x2){let _0xac336a=window[_0xb9d739([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x265dd7[_0xb9d739([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57e701,_0x57e701+0x2));_0xac336a>=_0x137c7e[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xac336a-=_0x137c7e[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x952e0c+=_0x137c7e[_0xac336a];}return _0x952e0c;}function _0x25bf6d(){const _0x3bece1=_0x2d516c[_0xb9d739([0x73,0x70,0x6c,0x69,0x74])](_0xb9d739([0x2e]));if(0x3!=_0x3bece1[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3aa081(_0x3bece1[0x1]);function _0x3aa081(_0x499d8d){const _0x14276d=_0x423102(_0x499d8d);return _0x14276d&&_0x59acb0()?_0x14276d:null;function _0x59acb0(){const _0x1f5088=_0x14276d[_0xb9d739([0x6a,0x74,0x69])],_0x14aae0=window[_0xb9d739([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f5088[_0xb9d739([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f5088[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x38c085={..._0x14276d,[_0xb9d739([0x6a,0x74,0x69])]:_0x1f5088[_0xb9d739([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f5088[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x38c085[_0xb9d739([0x76,0x63])],_0x3fd9ed(_0x38c085)==_0x14aae0;}}}async function _0x293992(){let _0x42bc0a=!0x0;try{const _0x2445c9=_0x2d516c[_0xb9d739([0x73,0x70,0x6c,0x69,0x74])](_0xb9d739([0x2e])),[_0x579492,_0xbeb285,_0x5169ef]=_0x2445c9;return _0x5b9625(_0x579492),await _0x457d3f(_0x579492,_0xbeb285,_0x5169ef),_0x42bc0a;}catch{return!0x1;}function _0x5b9625(_0x4cbc77){const _0x40c55d=_0x423102(_0x4cbc77);_0x40c55d&&_0x40c55d[_0xb9d739([0x61,0x6c,0x67])]==_0xb9d739([0x45,0x53,0x32,0x35,0x36])||(_0x42bc0a=!0x1);}async function _0x457d3f(_0x21e901,_0x2ca04e,_0x18ebbb){const _0x40ad1e=window[_0xb9d739([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb9d739([0x66,0x72,0x6f,0x6d])](_0x5d21f1(_0x18ebbb),_0xd5824f=>_0xd5824f[_0xb9d739([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x11fd98=new window[(_0xb9d739([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb9d739([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x21e901+_0xb9d739([0x2e])+_0x2ca04e),_0x188d33=window[_0xb9d739([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb9d739([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x188d33)return;const _0x5c9b7d=await _0x188d33[_0xb9d739([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb9d739([0x6a,0x77,0x6b]),_0x469ae1,{[_0xb9d739([0x6e,0x61,0x6d,0x65])]:_0xb9d739([0x45,0x43,0x44,0x53,0x41]),[_0xb9d739([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb9d739([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb9d739([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x188d33[_0xb9d739([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb9d739([0x6e,0x61,0x6d,0x65])]:_0xb9d739([0x45,0x43,0x44,0x53,0x41]),[_0xb9d739([0x68,0x61,0x73,0x68])]:{[_0xb9d739([0x6e,0x61,0x6d,0x65])]:_0xb9d739([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c9b7d,_0x40ad1e,_0x11fd98)||(_0x42bc0a=!0x1);}}function _0x423102(_0x12463a){return _0x12463a[_0xb9d739([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb9d739([0x65,0x79]))?JSON[_0xb9d739([0x70,0x61,0x72,0x73,0x65])](_0x5d21f1(_0x12463a)):null;}function _0x5d21f1(_0x4e72e8){return window[_0xb9d739([0x61,0x74,0x6f,0x62])](_0x4e72e8[_0xb9d739([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb9d739([0x2b]))[_0xb9d739([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb9d739([0x2f])));}function _0x3fd9ed(_0x810d6a){let _0x1d98ab=0x1505;function _0x2274d3(_0x41944c){for(let _0x2eed77=0x0;_0x2eed77<_0x41944c[_0xb9d739([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2eed77++){const _0x4f2982=_0x41944c[_0xb9d739([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2eed77);_0x1d98ab=(_0x1d98ab<<0x5)+_0x1d98ab+_0x4f2982,_0x1d98ab&=_0x1d98ab;}}function _0x850f42(_0x4d1fce){Array[_0xb9d739([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d1fce)?_0x4d1fce[_0xb9d739([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x850f42):_0x4d1fce&&typeof _0x4d1fce==_0xb9d739([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb9d739([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d1fce)[_0xb9d739([0x73,0x6f,0x72,0x74])]()[_0xb9d739([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a81a0,_0x376068])=>{_0x2274d3(_0x1a81a0),_0x850f42(_0x376068);}):_0x2274d3(window[_0xb9d739([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d1fce));}return _0x850f42(_0x810d6a),_0x1d98ab>>>0x0;}function _0x375642(_0x4419ff){return _0x4419ff[_0xb9d739([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb9d739([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb9d739([0x30]));}function _0x1bceb9(_0x570b5a){return _0x570b5a[_0xb9d739([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb9d739([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb9d739([0x6a,0x6f,0x69,0x6e])]('');}function _0x3edf1d(){}function _0xb9d739(_0x145634){return _0x145634['map'](_0x36a83a=>String['fromCharCode'](_0x36a83a))['join']('');}_0x446ecc(await _0x5c8fa5());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x473f3e=_0x13b042=>function(_0x3910e7,_0xea5435){const t=_0x3910e7['t'],_0x5526f1=_0x3910e7['t'];switch(_0xea5435){case'AI\x20Assistant':return _0x5526f1('AI\x20Assistant');case'Block\x20quote':return _0x5526f1('Block\x20quote');case'Bulleted\x20List':return _0x5526f1('Bulleted\x20List');case'Insert\x20code\x20block':return _0x5526f1('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x5526f1('Open\x20file\x20manager');case'Insert\x20image':return _0x5526f1('Insert\x20image');case'Heading\x201':return _0x5526f1('Heading\x201');case'Heading\x202':return _0x5526f1('Heading\x202');case'Heading\x203':return _0x5526f1('Heading\x203');case'Heading\x204':return _0x5526f1('Heading\x204');case'Heading\x205':return _0x5526f1('Heading\x205');case'Heading\x206':return _0x5526f1('Heading\x206');case'Horizontal\x20line':return _0x5526f1('Horizontal\x20line');case'Insert\x20HTML':return _0x5526f1('Insert\x20HTML');case'Increase\x20indent':return _0x5526f1('Increase\x20indent');case'Insert\x20table':return _0x5526f1('Insert\x20table');case'Table\x20of\x20contents':return _0x5526f1('Table\x20of\x20contents');case'Numbered\x20List':return _0x5526f1('Numbered\x20List');case'Decrease\x20indent':return _0x5526f1('Decrease\x20indent');case'Paragraph':return _0x5526f1('Paragraph');case'To-do\x20List':return _0x5526f1('To-do\x20List');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');case'Insert\x20a\x20footnote':return t('Insert\x20a\x20footnote');default:return _0xea5435;}}(this['editor']['locale'],_0x13b042);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x16b87a,'title':_0x473f3e('AI\x20Assistant'),'description':_0x473f3e('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x7fb62e=>{setTimeout(()=>_0x7fb62e['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x126ba4,'title':_0x473f3e('Block\x20quote'),'description':_0x473f3e('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x31b61c,'title':_0x473f3e('Bulleted\x20List'),'description':_0x473f3e('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x15632c,'title':_0x473f3e('Insert\x20code\x20block'),'description':_0x473f3e('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x5bd611,'title':_0x473f3e('Open\x20file\x20manager'),'description':_0x473f3e('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x5bd611,'title':_0x473f3e('Insert\x20image'),'description':_0x473f3e('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x3405b8,'title':_0x473f3e('Emoji'),'description':_0x473f3e('Insert\x20an\x20emoji'),'execute':_0x50f7ce=>{setTimeout(()=>_0x50f7ce['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x17a76d,'title':_0x473f3e('Heading\x201'),'description':_0x473f3e('Create\x20a\x20heading\x20level\x201'),'execute':_0x37d51e=>{_0x37d51e['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0xbe3678,'title':_0x473f3e('Heading\x202'),'description':_0x473f3e('Create\x20a\x20heading\x20level\x202'),'execute':_0x59da7e=>{_0x59da7e['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x69113c,'title':_0x473f3e('Heading\x203'),'description':_0x473f3e('Create\x20a\x20heading\x20level\x203'),'execute':_0xbda1b2=>{_0xbda1b2['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x231a94,'title':_0x473f3e('Heading\x204'),'description':_0x473f3e('Create\x20a\x20heading\x20level\x204'),'execute':_0x10270c=>{_0x10270c['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x492633,'title':_0x473f3e('Heading\x205'),'description':_0x473f3e('Create\x20a\x20heading\x20level\x205'),'execute':_0x5141fa=>{_0x5141fa['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x5e3575,'title':_0x473f3e('Heading\x206'),'description':_0x473f3e('Create\x20a\x20heading\x20level\x206'),'execute':_0x5b86fa=>{_0x5b86fa['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0xb640bb,'title':_0x473f3e('Horizontal\x20line'),'description':_0x473f3e('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x384412,'title':_0x473f3e('Insert\x20HTML'),'description':_0x473f3e('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x562ce2,'title':_0x473f3e('Increase\x20indent'),'description':_0x473f3e('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x473f3e('Insert\x20Mermaid\x20diagram'),'description':_0x473f3e('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x22dfc2,'title':_0x473f3e('Insert\x20table'),'description':_0x473f3e('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x8c8c49,'title':_0x473f3e('Table\x20of\x20contents'),'description':_0x473f3e('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x23cad8,'title':_0x473f3e('Numbered\x20List'),'description':_0x473f3e('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x5e68f5,'title':_0x473f3e('Decrease\x20indent'),'description':_0x473f3e('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x247ba9,'title':_0x473f3e('Paragraph'),'description':_0x473f3e('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0xe9605b,'title':_0x473f3e('To-do\x20List'),'description':_0x473f3e('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x26ee66,'title':_0x473f3e('Footnote'),'description':_0x473f3e('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x146148){return _0x146148['isEnabled']?_0x146148['isEnabled'](this['editor']):!_0x146148['commandName']||this['editor']['commands']['get'](_0x146148['commandName'])['isEnabled'];}['_proxyExecute'](_0x5d48df){if(_0x5d48df['execute'])_0x5d48df['execute'](this['editor']);else{if(!_0x5d48df['commandName'])throw new _0x440e2a('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x5d48df});this['editor']['execute'](_0x5d48df['commandName']);}}}function S(_0x177dd9,_0x16e731){return _0x177dd9['title']<_0x16e731['title']?-0x1:_0x177dd9['title']>_0x16e731['title']?0x1:0x0;}function O(_0x2f8d28,_0x36155b){return _0x36155b+'-'+_0x2f8d28['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0x309d15{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x533627){const _0x5c136d=_0x533627&&_0x533627['toLowerCase']();let _0xbb860f=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0xbb860f=_0xbb860f['filter'](_0x52f42f=>_0x52f42f['isEnabled']()),_0x5c136d){const _0x416792=[],_0x1f82b6=[],_0x4bec9e=[],_0x4cb877=[];for(const _0x4e9b8e of _0xbb860f)_0x4e9b8e['id']['toLowerCase']()['includes'](_0x5c136d)?_0x416792['push'](_0x4e9b8e):_0x4e9b8e['title']['toLowerCase']()['includes'](_0x5c136d)?_0x1f82b6['push'](_0x4e9b8e):_0x4e9b8e['aliases']&&_0x4e9b8e['aliases']['some'](_0x5ab43d=>_0x5ab43d['toLowerCase']()['includes'](_0x5c136d))?_0x4bec9e['push'](_0x4e9b8e):_0x4e9b8e['description']&&_0x4e9b8e['description']['toLowerCase']()['includes'](_0x5c136d)&&_0x4cb877['push'](_0x4e9b8e);_0xbb860f=_0x416792['concat'](_0x1f82b6,_0x4bec9e,_0x4cb877);}return _0xbb860f;}}class SlashCommandButtonView extends _0x219e65{constructor(_0x38d0a3,_0x58d1d6){super(_0x38d0a3),this['textPartView']=this['_createTextPartView'](_0x38d0a3,_0x58d1d6),void 0x0!==_0x58d1d6['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x58d1d6['isIconColorInherited']),this['set']({'icon':_0x58d1d6['icon']||_0x472119,'withText':!0x0,'label':_0x58d1d6['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x35c2f6,_0x315e9c){const _0xe5916a=new _0x4cb0cc(_0x35c2f6);return _0xe5916a['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x315e9c['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x315e9c['description']}]}]:[this['labelView']]}),_0xe5916a;}}class SlashCommandUI extends _0x309d15{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18fc40){super(_0x18fc40),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x459793=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1be786;for(const _0x48c1ce in _0x459793){const _0x31fcd8=_0x48c1ce,_0x39bfb5=_0x459793[_0x31fcd8];if('slashCommandLicenseKeyValid'==_0x39bfb5||'slashCommandLicenseKeyInvalid'==_0x39bfb5||'slashCommandLicenseKeyExpired'==_0x39bfb5||'slashCommandLicenseKeyDomainLimit'==_0x39bfb5||'slashCommandLicenseKeyNotAllowed'==_0x39bfb5||'slashCommandLicenseKeyEvaluationLimit'==_0x39bfb5||'slashCommandLicenseKeyUsageLimit'==_0x39bfb5){delete _0x459793[_0x31fcd8],_0x1be786=_0x39bfb5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x1be786&&_0x459793['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x1be786&&_0x459793['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x1be786&&_0x459793['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x1be786&&_0x459793['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x1be786&&_0x459793['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x1be786&&_0x459793['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0xb96dfe=this['editor'],_0x5d436c=this['editor']['plugins']['get']('SlashCommandEditing'),_0x49270f=_0xb96dfe['config']['get']('mention.feeds');_0x49270f['push']({'marker':'/','feed':_0x329daa=>_0x5d436c['getMatchingCommands'](_0x329daa),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0xb96dfe['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0xb96dfe['config']['set']('mention.feeds',_0x49270f);}['_overrideMentionExecuteListener'](){const _0x475f9e=this['editor'];_0x475f9e['commands']['get']('mention')['on']('execute',(_0x87c5f2,_0x196563)=>{const _0x9876f1=_0x196563[0x0],_0x537d9b=_0x475f9e['model'];'/'===_0x9876f1['marker']&&_0x537d9b['change'](_0x32f1fb=>{_0x32f1fb['remove'](_0x9876f1['range']),_0x9876f1['mention']['execute'](),_0x87c5f2['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x56b2c1){const _0x26f06d=this['editor']['locale'],_0x4e545c=new SlashCommandButtonView(_0x26f06d,_0x56b2c1);return _0x4e545c['render'](),_0x4e545c['element'];}}class SlashCommand extends _0x309d15{static get['requires'](){return[_0xc35a8b,SlashCommandEditing,SlashCommandUI];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{SlashCommand,SlashCommandConfig,SlashCommandEditing,SlashCommandUI};
23
+ import{Plugin as _0xbd09bc}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x3047db}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x4c6594,uid as _0x47ef15}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x4c6457,IconQuote as _0x5b920c,IconBulletedList as _0x1b5468,IconCodeBlock as _0x36e9b3,IconBrowseFiles as _0x2843cf,IconEmoji as _0x4aca39,IconHeading1 as _0x25f9c8,IconHeading2 as _0x20e148,IconHeading3 as _0x1b9d10,IconHeading4 as _0x500a40,IconHeading5 as _0x5205d3,IconHeading6 as _0x3fe496,IconHorizontalLine as _0x2048fb,IconHtml as _0x355e9e,IconIndent as _0x32badf,IconTable as _0xcda14a,IconTableOfContents as _0x5e38af,IconNumberedList as _0xec6784,IconOutdent as _0x49d997,IconParagraph as _0x409cad,IconTodoList as _0x18d339,IconFootnote as _0x2429e3,IconPlay as _0x20f466}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x516fee,View as _0xbb769b}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0xbd09bc{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56452c){super(_0x56452c),this['_allowedCommands']=null;}['afterInit'](){const _0x56493f=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x7c12d8=function(_0x3624ed){let _0x26c22d=['heading4','heading5','heading6'];if(_0x3624ed){const _0x5804cf=_0x3624ed['map'](_0x40509b=>_0x40509b['model']);_0x26c22d=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x28aa1e=>!_0x5804cf['includes'](_0x28aa1e));}return _0x26c22d;}(this['editor']['config']['get']('heading.options'));let _0xf0eb7=this['getDefaultCommands']()['filter'](_0x54324f=>!_0x7c12d8['includes'](_0x54324f['id']))['filter'](_0x31c9bc=>!_0x56493f['includes'](_0x31c9bc['commandName']));const _0x51e9d3=this['editor']['config']['get']('slashCommand.extraCommands');_0x51e9d3&&_0x51e9d3['length']&&(_0xf0eb7=_0xf0eb7['concat'](_0x51e9d3));const _0x4707a4=this['editor']['config']['get']('template.definitions');_0x4707a4&&_0x4707a4['length']&&(_0xf0eb7=_0xf0eb7['concat'](function(_0x3166f4){return _0x3166f4['map'](_0x2d34a5=>{const {title:_0x184ee2,icon:_0x3b4f39,description:_0x5c5840,data:_0x3d45e6}=_0x2d34a5,_0x32c71e={'id':O(_0x184ee2,'template'),'commandName':'insertTemplate','execute':_0x50f4e2=>{_0x50f4e2['execute']('insertTemplate',_0x3d45e6);},'description':_0x5c5840,'icon':_0x3b4f39,'title':_0x184ee2};return _0x3b4f39&&(_0x32c71e['isIconColorInherited']=!0x1),_0x32c71e;});}(_0x4707a4)));const _0x38fbfb=this['editor']['config']['get']('style.definitions');_0x38fbfb&&_0x38fbfb['length']&&(_0xf0eb7=_0xf0eb7['concat'](function(_0x2424ab){return _0x2424ab['map'](_0x456607=>({'id':O(_0x456607['name'],'style'),'commandName':'style','execute':_0x5d4068=>{_0x5d4068['execute']('style',{'styleName':_0x456607['name']});},'isEnabled':_0x31636d=>{const _0x2b54b8=_0x31636d['commands']['get']('style');return _0x2b54b8['isEnabled']&&_0x2b54b8['enabledStyles']['includes'](_0x456607['name']);},'title':_0x456607['name']}));}(_0x38fbfb)));const _0x262ed3=_0xf0eb7['filter'](_0x3cad69=>!_0x3cad69['commandName']||void 0x0!==this['editor']['commands']['get'](_0x3cad69['commandName'])),_0x426c12=[];for(const _0xcd562e of _0x262ed3)_0x426c12['push']({'id':_0xcd562e['id'],'commandName':_0xcd562e['commandName'],'title':'function'==typeof _0xcd562e['title']?_0xcd562e['title'](this['editor']):_0xcd562e['title'],'description':_0xcd562e['description'],'icon':_0xcd562e['icon'],'isIconColorInherited':_0xcd562e['isIconColorInherited'],'aliases':_0xcd562e['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0xcd562e),'execute':()=>this['_proxyExecute'](_0xcd562e)});this['_allowedCommands']=_0x426c12['sort'](S),async function(_0x102c46){const _0x1398e9=_0x3039c4([0x75,0x6d,0x67,0x6c,0x31,0x46,0x34,0x59,0x6b,0x41,0x56,0x45,0x74,0x76,0x30,0x54,0x63,0x4e,0x36,0x6e,0x4b,0x69,0x58,0x43,0x72,0x68,0x4f,0x44,0x64,0x32,0x50,0x61,0x47,0x4d,0x53,0x49,0x4a,0x62,0x73,0x70,0x79,0x7a,0x39,0x51,0x4c,0x42,0x6f,0x57,0x78,0x55,0x66,0x6a,0x35,0x48,0x5a,0x65,0x77,0x37,0x33,0x38,0x52,0x71]),_0x30ea8c=0x305505ed,_0x3e254a=0x30528fd5^_0x30ea8c,_0x49ac60=window[_0x3039c4([0x44,0x61,0x74,0x65])][_0x3039c4([0x6e,0x6f,0x77])](),_0x382b64=_0x102c46[_0x3039c4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x131286=new window[(_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a6e2c=>{_0x382b64[_0x3039c4([0x6f,0x6e,0x63,0x65])](_0x3039c4([0x72,0x65,0x61,0x64,0x79]),_0x2a6e2c);}),_0x48f433={[_0x3039c4([0x6b,0x74,0x79])]:_0x3039c4([0x45,0x43]),[_0x3039c4([0x75,0x73,0x65])]:_0x3039c4([0x73,0x69,0x67]),[_0x3039c4([0x63,0x72,0x76])]:_0x3039c4([0x50,0x2d,0x32,0x35,0x36]),[_0x3039c4([0x78])]:_0x3039c4([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]),[_0x3039c4([0x79])]:_0x3039c4([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]),[_0x3039c4([0x61,0x6c,0x67])]:_0x3039c4([0x45,0x53,0x32,0x35,0x36])},_0x73bbc6=_0x382b64[_0x3039c4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3039c4([0x67,0x65,0x74])](_0x3039c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x53f622(){let _0x4d504b,_0x37c90f=null,_0x313632=null;try{if(_0x73bbc6==_0x3039c4([0x47,0x50,0x4c]))return _0x3039c4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4d504b=_0x1b7080(),!_0x4d504b)return _0x3039c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4d504b[_0x3039c4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x313632=_0x1c03a6(_0x4d504b[_0x3039c4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4d504b[_0x3039c4([0x6a,0x74,0x69])])),await _0x183d8c()?_0x2bce98()?_0x51f280()?_0x3039c4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x217aed()?(_0x4d504b[_0x3039c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3039c4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x37c90f=_0x5b4222(_0x3039c4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ec911()):_0x3039c4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3039c4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3039c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3039c4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x51f280(){const _0x4088b6=[_0x3039c4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3039c4([0x74,0x72,0x69,0x61,0x6c])][_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d504b[_0x3039c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x49ac60/0x3e8:0xe10*_0x3e254a;return _0x4d504b[_0x3039c4([0x65,0x78,0x70])]<_0x4088b6;}function _0x2bce98(){const _0x46dde4=_0x4d504b[_0x3039c4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x46dde4&&(!!_0x46dde4[_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039c4([0x2a]))||(!!_0x46dde4[_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039c4([0x53,0x43]))||(!!_0x46dde4[_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039c4([0x50,0x50]))||!(!_0x46dde4[_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039c4([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x374450()))));}function _0x217aed(){const _0x2fab6d=_0x4d504b[_0x3039c4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2fab6d||0x0==_0x2fab6d[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa9e8a1}=new URL(window[_0x3039c4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2fab6d[_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa9e8a1))return!0x0;const _0x3dd2e9=_0xa9e8a1[_0x3039c4([0x73,0x70,0x6c,0x69,0x74])](_0x3039c4([0x2e]));return _0x2fab6d[_0x3039c4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x60e52a=>_0x60e52a[_0x3039c4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3039c4([0x2a])))[_0x3039c4([0x6d,0x61,0x70])](_0x55019a=>_0x55019a[_0x3039c4([0x73,0x70,0x6c,0x69,0x74])](_0x3039c4([0x2e])))[_0x3039c4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4da3e1=>_0x4da3e1[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3dd2e9[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3039c4([0x6d,0x61,0x70])](_0x21b7b2=>Array(_0x3dd2e9[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x21b7b2[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3039c4([0x66,0x69,0x6c,0x6c])](_0x21b7b2[0x0]===_0x3039c4([0x2a])?_0x3039c4([0x2a]):'')[_0x3039c4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x21b7b2))[_0x3039c4([0x73,0x6f,0x6d,0x65])](_0xef85ef=>_0x3dd2e9[_0x3039c4([0x65,0x76,0x65,0x72,0x79])]((_0x5263a3,_0x307bc3)=>_0xef85ef[_0x307bc3]===_0x5263a3||_0xef85ef[_0x307bc3]===_0x3039c4([0x2a])));}function _0x5ec911(){return _0x37c90f&&_0x313632?new window[(_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30bb4e,_0x12996c)=>{_0x37c90f[_0x3039c4([0x74,0x68,0x65,0x6e])](_0x30bb4e,_0x12996c),_0x313632[_0x3039c4([0x74,0x68,0x65,0x6e])](_0x293ce8=>{_0x293ce8!=_0x3039c4([0x56,0x61,0x6c,0x69,0x64])&&_0x30bb4e(_0x293ce8);},_0x12996c);}):_0x37c90f||_0x313632||_0x3039c4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c03a6(_0x2290ed,_0x288056){return new window[(_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d7b3b=>{if(_0x9d0aec())return _0x4d7b3b(_0x3039c4([0x56,0x61,0x6c,0x69,0x64]));_0x44219f(),_0x382b64[_0x3039c4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3039c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17c4b2=!0x1;const _0x14502a=_0x47ef15();function _0x4c007f(_0x3949ff){return!!_0x3949ff&&(typeof _0x3949ff===_0x3039c4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3949ff===_0x3039c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3949ff[_0x3039c4([0x74,0x68,0x65,0x6e])]===_0x3039c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3949ff[_0x3039c4([0x63,0x61,0x74,0x63,0x68])]===_0x3039c4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x458a4f(_0x398894){_0x63d7b6(_0x398894)[_0x3039c4([0x74,0x68,0x65,0x6e])](_0x23712d=>{if(!_0x23712d||_0x23712d[_0x3039c4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3039c4([0x6f,0x6b]))return _0x3039c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5f102a(_0x62c433(_0x14502a+_0x288056))!=_0x23712d[_0x3039c4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3039c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3039c4([0x56,0x61,0x6c,0x69,0x64]);})[_0x3039c4([0x74,0x68,0x65,0x6e])](_0x3209c4=>(_0x525b1c(),_0x3209c4),()=>{const _0x33bf2d=_0x211322();return null==_0x33bf2d?(_0x525b1c(),_0x3039c4([0x56,0x61,0x6c,0x69,0x64])):_0x3039c4(_0x49ac60-_0x33bf2d>(0x145981ed^_0x30ea8c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3039c4([0x74,0x68,0x65,0x6e])](_0x4d7b3b)[_0x3039c4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d7b3b(_0x3039c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ede1c=0x3063eb6d^_0x30ea8c;function _0x525b1c(){const _0x171a7d=_0x3039c4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f102a(_0x62c433(_0x2290ed)),_0x53f49b=_0x544b51(_0x5f102a(window[_0x3039c4([0x4d,0x61,0x74,0x68])][_0x3039c4([0x63,0x65,0x69,0x6c])](_0x49ac60/_0x5ede1c)));window[_0x3039c4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3039c4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x171a7d,_0x53f49b);}function _0x211322(){const _0x4ed16e=_0x3039c4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f102a(_0x62c433(_0x2290ed)),_0x18d3dc=window[_0x3039c4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3039c4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ed16e);return _0x18d3dc?window[_0x3039c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x544b51(_0x18d3dc),0x10)*_0x5ede1c:null;}function _0x63d7b6(_0x6944a3){return new window[(_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b655e,_0xac5265)=>{_0x6944a3[_0x3039c4([0x74,0x68,0x65,0x6e])](_0x3b655e,_0xac5265),window[_0x3039c4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xac5265,0x3054d12d^_0x30ea8c);});}}_0x382b64[_0x3039c4([0x6f,0x6e])](_0x3039c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3a618f,_0x266828)=>{if(_0x266828[0x0]!=_0x2290ed)return _0x4d7b3b(_0x3039c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x266828[0x1]={..._0x266828[0x1],[_0x3039c4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14502a};},{[_0x3039c4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3039c4([0x68,0x69,0x67,0x68])}),_0x382b64[_0x3039c4([0x6f,0x6e])](_0x3039c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd36ad7=>{_0x4c007f(_0xd36ad7[_0x3039c4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17c4b2=!0x0,_0x458a4f(_0xd36ad7[_0x3039c4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3039c4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3039c4([0x6c,0x6f,0x77])}),_0x131286[_0x3039c4([0x74,0x68,0x65,0x6e])](()=>{_0x17c4b2||_0x4d7b3b(_0x3039c4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9d0aec(){return _0x382b64[_0x3039c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3039c4([0x76,0x69,0x65,0x77])][_0x3039c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3039c4([0x61,0x75,0x74,0x6f]);}function _0x44219f(){_0x382b64[_0x3039c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3039c4([0x76,0x69,0x65,0x77])][_0x3039c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3039c4([0x61,0x75,0x74,0x6f]);}}function _0x5b4222(_0xbf85a1){const _0x1334e7=[new window[(_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5882d7=>setTimeout(_0x5882d7,0x305c3b21^_0x30ea8c)),_0x131286[_0x3039c4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55311d=>{let _0x1bda00=0x0;_0x382b64[_0x3039c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x3039c4([0x6f,0x6e])](_0x3039c4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2eb873,_0x2dc845)=>{_0x2dc845[0x0][_0x3039c4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1bda00++,_0x1bda00==(0x30550005^_0x30ea8c)&&(_0x55311d(),_0x2eb873[_0x3039c4([0x6f,0x66,0x66])]());});}))];return window[_0x3039c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3039c4([0x72,0x61,0x63,0x65])](_0x1334e7)[_0x3039c4([0x74,0x68,0x65,0x6e])](()=>_0xbf85a1);}async function _0x52dff2(){await _0x131286,_0x382b64[_0x3039c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x3039c4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x37d95f,_0x382b64[_0x3039c4([0x6d,0x6f,0x64,0x65,0x6c])][_0x3039c4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x37d95f,_0x382b64[_0x3039c4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3039c4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x374450(){return window[_0x3039c4([0x67,0x6c,0x6f,0x62])]&&window[_0x3039c4([0x67,0x6c,0x6f,0x62])][_0x3039c4([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x2ba5cd(_0x58abe2){const _0x13b136=_0x577509();_0x382b64[_0x13b136]=_0x3039c4([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58abe2,_0x58abe2!=_0x3039c4([0x56,0x61,0x6c,0x69,0x64])&&_0x52dff2();}function _0x577509(){const _0xd9d04a=window[_0x3039c4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3039c4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3039c4([0x6e,0x6f,0x77])]())[_0x3039c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3039c4([0x2e]),'');let _0x44b1a6=_0x3039c4([0x75]);for(let _0x15ed8e=0x0;_0x15ed8e<_0xd9d04a[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15ed8e+=0x2){let _0x380e17=window[_0x3039c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd9d04a[_0x3039c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15ed8e,_0x15ed8e+0x2));_0x380e17>=_0x1398e9[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x380e17-=_0x1398e9[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x44b1a6+=_0x1398e9[_0x380e17];}return _0x44b1a6;}function _0x1b7080(){const _0x36d937=_0x73bbc6[_0x3039c4([0x73,0x70,0x6c,0x69,0x74])](_0x3039c4([0x2e]));if(0x3!=_0x36d937[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2cbff0(_0x36d937[0x1]);function _0x2cbff0(_0x5de43c){const _0xaa23d7=_0x1bc6c2(_0x5de43c);return _0xaa23d7&&_0x48c0fd()?_0xaa23d7:null;function _0x48c0fd(){const _0x40424c=_0xaa23d7[_0x3039c4([0x6a,0x74,0x69])],_0x42166b=window[_0x3039c4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40424c[_0x3039c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40424c[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x42c3f8={..._0xaa23d7,[_0x3039c4([0x6a,0x74,0x69])]:_0x40424c[_0x3039c4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x40424c[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x42c3f8[_0x3039c4([0x76,0x63])],_0x62c433(_0x42c3f8)==_0x42166b;}}}async function _0x183d8c(){let _0x167983=!0x0;try{const _0x1db9ac=_0x73bbc6[_0x3039c4([0x73,0x70,0x6c,0x69,0x74])](_0x3039c4([0x2e])),[_0x3a06a9,_0x3fdccf,_0x3438d5]=_0x1db9ac;return _0x311379(_0x3a06a9),await _0x3f34f3(_0x3a06a9,_0x3fdccf,_0x3438d5),_0x167983;}catch{return!0x1;}function _0x311379(_0x556e32){const _0x1b0425=_0x1bc6c2(_0x556e32);_0x1b0425&&_0x1b0425[_0x3039c4([0x61,0x6c,0x67])]==_0x3039c4([0x45,0x53,0x32,0x35,0x36])||(_0x167983=!0x1);}async function _0x3f34f3(_0x282376,_0x334181,_0x264eeb){const _0xe01974=window[_0x3039c4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3039c4([0x66,0x72,0x6f,0x6d])](_0x5cc16f(_0x264eeb),_0x20442f=>_0x20442f[_0x3039c4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x533fcf=new window[(_0x3039c4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3039c4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x282376+_0x3039c4([0x2e])+_0x334181),_0x2c8fba=window[_0x3039c4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3039c4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2c8fba)return;const _0x1d4de4=await _0x2c8fba[_0x3039c4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3039c4([0x6a,0x77,0x6b]),_0x48f433,{[_0x3039c4([0x6e,0x61,0x6d,0x65])]:_0x3039c4([0x45,0x43,0x44,0x53,0x41]),[_0x3039c4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3039c4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3039c4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2c8fba[_0x3039c4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3039c4([0x6e,0x61,0x6d,0x65])]:_0x3039c4([0x45,0x43,0x44,0x53,0x41]),[_0x3039c4([0x68,0x61,0x73,0x68])]:{[_0x3039c4([0x6e,0x61,0x6d,0x65])]:_0x3039c4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d4de4,_0xe01974,_0x533fcf)||(_0x167983=!0x1);}}function _0x1bc6c2(_0x24b4f3){return _0x24b4f3[_0x3039c4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3039c4([0x65,0x79]))?JSON[_0x3039c4([0x70,0x61,0x72,0x73,0x65])](_0x5cc16f(_0x24b4f3)):null;}function _0x5cc16f(_0x1180ff){return window[_0x3039c4([0x61,0x74,0x6f,0x62])](_0x1180ff[_0x3039c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3039c4([0x2b]))[_0x3039c4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3039c4([0x2f])));}function _0x62c433(_0x513a97){let _0x122203=0x1505;function _0x46b363(_0xa283ab){for(let _0x5dcdd6=0x0;_0x5dcdd6<_0xa283ab[_0x3039c4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dcdd6++){const _0x5a6a62=_0xa283ab[_0x3039c4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5dcdd6);_0x122203=(_0x122203<<0x5)+_0x122203+_0x5a6a62,_0x122203&=_0x122203;}}function _0x446055(_0x48ba84){Array[_0x3039c4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48ba84)?_0x48ba84[_0x3039c4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x446055):_0x48ba84&&typeof _0x48ba84==_0x3039c4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3039c4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48ba84)[_0x3039c4([0x73,0x6f,0x72,0x74])]()[_0x3039c4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c11f9,_0x5f4599])=>{_0x46b363(_0x3c11f9),_0x446055(_0x5f4599);}):_0x46b363(window[_0x3039c4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48ba84));}return _0x446055(_0x513a97),_0x122203>>>0x0;}function _0x5f102a(_0x342a08){return _0x342a08[_0x3039c4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3039c4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3039c4([0x30]));}function _0x544b51(_0x3edba3){return _0x3edba3[_0x3039c4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3039c4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3039c4([0x6a,0x6f,0x69,0x6e])]('');}function _0x37d95f(){}function _0x3039c4(_0xfee72e){return _0xfee72e['map'](_0x37e056=>String['fromCharCode'](_0x37e056))['join']('');}_0x2ba5cd(await _0x53f622());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x3303a1=_0x2797ec=>function(_0x123206,_0x3903ee){const t=_0x123206['t'],_0x5be62d=_0x123206['t'];switch(_0x3903ee){case'AI\x20Assistant':return _0x5be62d('AI\x20Assistant');case'Block\x20quote':return _0x5be62d('Block\x20quote');case'Bulleted\x20List':return _0x5be62d('Bulleted\x20List');case'Insert\x20code\x20block':return _0x5be62d('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x5be62d('Open\x20file\x20manager');case'Insert\x20image':return _0x5be62d('Insert\x20image');case'Heading\x201':return _0x5be62d('Heading\x201');case'Heading\x202':return _0x5be62d('Heading\x202');case'Heading\x203':return _0x5be62d('Heading\x203');case'Heading\x204':return _0x5be62d('Heading\x204');case'Heading\x205':return _0x5be62d('Heading\x205');case'Heading\x206':return _0x5be62d('Heading\x206');case'Horizontal\x20line':return _0x5be62d('Horizontal\x20line');case'Insert\x20HTML':return _0x5be62d('Insert\x20HTML');case'Increase\x20indent':return _0x5be62d('Increase\x20indent');case'Insert\x20table':return _0x5be62d('Insert\x20table');case'Table\x20of\x20contents':return _0x5be62d('Table\x20of\x20contents');case'Numbered\x20List':return _0x5be62d('Numbered\x20List');case'Decrease\x20indent':return _0x5be62d('Decrease\x20indent');case'Paragraph':return _0x5be62d('Paragraph');case'To-do\x20List':return _0x5be62d('To-do\x20List');case'Create\x20a\x20block\x20quote':return t('Create\x20a\x20block\x20quote');case'Create\x20a\x20bulleted\x20list':return t('Create\x20a\x20bulleted\x20list');case'Create\x20a\x20code\x20block':return t('Create\x20a\x20code\x20block');case'Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file':return t('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file');case'Create\x20a\x20heading\x20level\x201':return t('Create\x20a\x20heading\x20level\x201');case'Create\x20a\x20heading\x20level\x202':return t('Create\x20a\x20heading\x20level\x202');case'Create\x20a\x20heading\x20level\x203':return t('Create\x20a\x20heading\x20level\x203');case'Create\x20a\x20heading\x20level\x204':return t('Create\x20a\x20heading\x20level\x204');case'Create\x20a\x20heading\x20level\x205':return t('Create\x20a\x20heading\x20level\x205');case'Create\x20a\x20heading\x20level\x206':return t('Create\x20a\x20heading\x20level\x206');case'Insert\x20a\x20horizontal\x20line':return t('Insert\x20a\x20horizontal\x20line');case'Insert\x20an\x20HTML\x20snippet':return t('Insert\x20an\x20HTML\x20snippet');case'Increase\x20the\x20indentation':return t('Increase\x20the\x20indentation');case'Insert\x20Mermaid\x20diagram':return t('Insert\x20Mermaid\x20diagram');case'Insert\x20the\x20Mermaid\x20diagram':return t('Insert\x20the\x20Mermaid\x20diagram');case'Create\x20a\x20table':return t('Create\x20a\x20table');case'Insert\x20table\x20of\x20contents':return t('Insert\x20table\x20of\x20contents');case'Create\x20a\x20numbered\x20list':return t('Create\x20a\x20numbered\x20list');case'Decrease\x20the\x20indentation':return t('Decrease\x20the\x20indentation');case'Insert\x20a\x20paragraph':return t('Insert\x20a\x20paragraph');case'Create\x20a\x20to-do\x20list':return t('Create\x20a\x20to-do\x20list');case'Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content':return t('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content');case'Insert\x20an\x20emoji':return t('Insert\x20an\x20emoji');case'Insert\x20a\x20footnote':return t('Insert\x20a\x20footnote');default:return _0x3903ee;}}(this['editor']['locale'],_0x2797ec);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x4c6457,'title':_0x3303a1('AI\x20Assistant'),'description':_0x3303a1('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x4b9ba0=>{setTimeout(()=>_0x4b9ba0['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x5b920c,'title':_0x3303a1('Block\x20quote'),'description':_0x3303a1('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x1b5468,'title':_0x3303a1('Bulleted\x20List'),'description':_0x3303a1('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x36e9b3,'title':_0x3303a1('Insert\x20code\x20block'),'description':_0x3303a1('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x2843cf,'title':_0x3303a1('Open\x20file\x20manager'),'description':_0x3303a1('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x2843cf,'title':_0x3303a1('Insert\x20image'),'description':_0x3303a1('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x4aca39,'title':_0x3303a1('Emoji'),'description':_0x3303a1('Insert\x20an\x20emoji'),'execute':_0x4024ff=>{setTimeout(()=>_0x4024ff['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x25f9c8,'title':_0x3303a1('Heading\x201'),'description':_0x3303a1('Create\x20a\x20heading\x20level\x201'),'execute':_0x33e4d4=>{_0x33e4d4['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x20e148,'title':_0x3303a1('Heading\x202'),'description':_0x3303a1('Create\x20a\x20heading\x20level\x202'),'execute':_0x5a8471=>{_0x5a8471['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x1b9d10,'title':_0x3303a1('Heading\x203'),'description':_0x3303a1('Create\x20a\x20heading\x20level\x203'),'execute':_0x58ca39=>{_0x58ca39['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x500a40,'title':_0x3303a1('Heading\x204'),'description':_0x3303a1('Create\x20a\x20heading\x20level\x204'),'execute':_0xdf1ccc=>{_0xdf1ccc['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x5205d3,'title':_0x3303a1('Heading\x205'),'description':_0x3303a1('Create\x20a\x20heading\x20level\x205'),'execute':_0x7c9cbf=>{_0x7c9cbf['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x3fe496,'title':_0x3303a1('Heading\x206'),'description':_0x3303a1('Create\x20a\x20heading\x20level\x206'),'execute':_0x522d13=>{_0x522d13['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x2048fb,'title':_0x3303a1('Horizontal\x20line'),'description':_0x3303a1('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x355e9e,'title':_0x3303a1('Insert\x20HTML'),'description':_0x3303a1('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x32badf,'title':_0x3303a1('Increase\x20indent'),'description':_0x3303a1('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x3303a1('Insert\x20Mermaid\x20diagram'),'description':_0x3303a1('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0xcda14a,'title':_0x3303a1('Insert\x20table'),'description':_0x3303a1('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x5e38af,'title':_0x3303a1('Table\x20of\x20contents'),'description':_0x3303a1('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0xec6784,'title':_0x3303a1('Numbered\x20List'),'description':_0x3303a1('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x49d997,'title':_0x3303a1('Decrease\x20indent'),'description':_0x3303a1('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x409cad,'title':_0x3303a1('Paragraph'),'description':_0x3303a1('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x18d339,'title':_0x3303a1('To-do\x20List'),'description':_0x3303a1('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x2429e3,'title':_0x3303a1('Footnote'),'description':_0x3303a1('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x35f59b){return _0x35f59b['isEnabled']?_0x35f59b['isEnabled'](this['editor']):!_0x35f59b['commandName']||this['editor']['commands']['get'](_0x35f59b['commandName'])['isEnabled'];}['_proxyExecute'](_0x3ec654){if(_0x3ec654['execute'])_0x3ec654['execute'](this['editor']);else{if(!_0x3ec654['commandName'])throw new _0x4c6594('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x3ec654});this['editor']['execute'](_0x3ec654['commandName']);}}}function S(_0x457f15,_0x12d93d){return _0x457f15['title']<_0x12d93d['title']?-0x1:_0x457f15['title']>_0x12d93d['title']?0x1:0x0;}function O(_0x1da34d,_0x415d81){return _0x415d81+'-'+_0x1da34d['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0xbd09bc{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x2d5633){const _0x584b4e=_0x2d5633&&_0x2d5633['toLowerCase']();let _0xecf43e=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0xecf43e=_0xecf43e['filter'](_0x322979=>_0x322979['isEnabled']()),_0x584b4e){const _0x44b16b=[],_0x386190=[],_0x2cdf6a=[],_0x5c633e=[];for(const _0x3447a6 of _0xecf43e)_0x3447a6['id']['toLowerCase']()['includes'](_0x584b4e)?_0x44b16b['push'](_0x3447a6):_0x3447a6['title']['toLowerCase']()['includes'](_0x584b4e)?_0x386190['push'](_0x3447a6):_0x3447a6['aliases']&&_0x3447a6['aliases']['some'](_0x35053a=>_0x35053a['toLowerCase']()['includes'](_0x584b4e))?_0x2cdf6a['push'](_0x3447a6):_0x3447a6['description']&&_0x3447a6['description']['toLowerCase']()['includes'](_0x584b4e)&&_0x5c633e['push'](_0x3447a6);_0xecf43e=_0x44b16b['concat'](_0x386190,_0x2cdf6a,_0x5c633e);}return _0xecf43e;}}class SlashCommandButtonView extends _0x516fee{constructor(_0x3fc3a0,_0x82833f){super(_0x3fc3a0),this['textPartView']=this['_createTextPartView'](_0x3fc3a0,_0x82833f),void 0x0!==_0x82833f['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x82833f['isIconColorInherited']),this['set']({'icon':_0x82833f['icon']||_0x20f466,'withText':!0x0,'label':_0x82833f['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x14ca9b,_0x3409d9){const _0x290d6d=new _0xbb769b(_0x14ca9b);return _0x290d6d['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x3409d9['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x3409d9['description']}]}]:[this['labelView']]}),_0x290d6d;}}class SlashCommandUI extends _0xbd09bc{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x196702){super(_0x196702),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x196cdf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1fdf49;for(const _0xe36a1f in _0x196cdf){const _0x164267=_0xe36a1f,_0x562b0a=_0x196cdf[_0x164267];if('slashCommandLicenseKeyValid'==_0x562b0a||'slashCommandLicenseKeyInvalid'==_0x562b0a||'slashCommandLicenseKeyExpired'==_0x562b0a||'slashCommandLicenseKeyDomainLimit'==_0x562b0a||'slashCommandLicenseKeyNotAllowed'==_0x562b0a||'slashCommandLicenseKeyEvaluationLimit'==_0x562b0a||'slashCommandLicenseKeyUsageLimit'==_0x562b0a){delete _0x196cdf[_0x164267],_0x1fdf49=_0x562b0a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x1fdf49&&_0x196cdf['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x1fdf49&&_0x196cdf['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x1fdf49&&_0x196cdf['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x1fdf49&&_0x196cdf['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x1fdf49&&_0x196cdf['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x1fdf49&&_0x196cdf['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x4089a3=this['editor'],_0x241878=this['editor']['plugins']['get']('SlashCommandEditing'),_0x195ea9=_0x4089a3['config']['get']('mention.feeds');_0x195ea9['push']({'marker':'/','feed':_0x17453c=>_0x241878['getMatchingCommands'](_0x17453c),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x4089a3['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x4089a3['config']['set']('mention.feeds',_0x195ea9);}['_overrideMentionExecuteListener'](){const _0x2fb3f6=this['editor'];_0x2fb3f6['commands']['get']('mention')['on']('execute',(_0x3c243c,_0x217a9b)=>{const _0x2f644e=_0x217a9b[0x0],_0x1c69b0=_0x2fb3f6['model'];'/'===_0x2f644e['marker']&&_0x1c69b0['change'](_0x48ef97=>{_0x48ef97['remove'](_0x2f644e['range']),_0x2f644e['mention']['execute'](),_0x3c243c['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x4c1d51){const _0xef01c1=this['editor']['locale'],_0xcd7e86=new SlashCommandButtonView(_0xef01c1,_0x4c1d51);return _0xcd7e86['render'](),_0xcd7e86['element'];}}class SlashCommand extends _0xbd09bc{static get['requires'](){return[_0x3047db,SlashCommandEditing,SlashCommandUI];}static get['pluginName'](){return'SlashCommand';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{SlashCommand,SlashCommandConfig,SlashCommandEditing,SlashCommandUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-slash-command",
3
- "version": "48.8.1-alpha.0",
3
+ "version": "48.8.1-alpha.1",
4
4
  "description": "Slash command feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,14 +21,14 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.8.1-alpha.0",
25
- "@ckeditor/ckeditor5-heading": "48.8.1-alpha.0",
26
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.0",
27
- "@ckeditor/ckeditor5-mention": "48.8.1-alpha.0",
28
- "@ckeditor/ckeditor5-style": "48.8.1-alpha.0",
29
- "@ckeditor/ckeditor5-template": "48.8.1-alpha.0",
30
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.0",
31
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.0"
24
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.1",
25
+ "@ckeditor/ckeditor5-heading": "48.8.1-alpha.1",
26
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.1",
27
+ "@ckeditor/ckeditor5-mention": "48.8.1-alpha.1",
28
+ "@ckeditor/ckeditor5-style": "48.8.1-alpha.1",
29
+ "@ckeditor/ckeditor5-template": "48.8.1-alpha.1",
30
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.1",
31
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.1"
32
32
  },
33
33
  "files": [
34
34
  "dist",