@ckeditor/ckeditor5-slash-command 48.8.1-alpha.2 → 48.8.1-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.
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 _0x1621ab}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x41fe7e}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x455950,uid as _0x2a564b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x180f8b,IconQuote as _0x4c6759,IconBulletedList as _0x3d21fd,IconCodeBlock as _0x12ae03,IconBrowseFiles as _0x2151ab,IconEmoji as _0x37f51c,IconHeading1 as _0x3de418,IconHeading2 as _0x4d1c92,IconHeading3 as _0x151501,IconHeading4 as _0x3615ef,IconHeading5 as _0x3148e1,IconHeading6 as _0x166654,IconHorizontalLine as _0x42bf38,IconHtml as _0x3afdd2,IconIndent as _0x450a82,IconTable as _0xfb6cd9,IconTableOfContents as _0x12f569,IconNumberedList as _0x48798b,IconOutdent as _0x48771c,IconParagraph as _0x53fbe3,IconTodoList as _0x40b581,IconFootnote as _0x5ab836,IconPlay as _0x398f9d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xc98a35,View as _0x25b200}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0x1621ab{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x247518){super(_0x247518),this['_allowedCommands']=null;}['afterInit'](){const _0x15c25d=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x26598a=function(_0x4d2915){let _0xd17600=['heading4','heading5','heading6'];if(_0x4d2915){const _0x21a136=_0x4d2915['map'](_0x457586=>_0x457586['model']);_0xd17600=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x4f026f=>!_0x21a136['includes'](_0x4f026f));}return _0xd17600;}(this['editor']['config']['get']('heading.options'));let _0x10e8ec=this['getDefaultCommands']()['filter'](_0x43facb=>!_0x26598a['includes'](_0x43facb['id']))['filter'](_0x1bf7ae=>!_0x15c25d['includes'](_0x1bf7ae['commandName']));const _0x494cd2=this['editor']['config']['get']('slashCommand.extraCommands');_0x494cd2&&_0x494cd2['length']&&(_0x10e8ec=_0x10e8ec['concat'](_0x494cd2));const _0x4222cb=this['editor']['config']['get']('template.definitions');_0x4222cb&&_0x4222cb['length']&&(_0x10e8ec=_0x10e8ec['concat'](function(_0x2ff126){return _0x2ff126['map'](_0x16792c=>{const {title:_0x17f9d9,icon:_0x3dce64,description:_0x214b60,data:_0x54975f}=_0x16792c,_0x23d888={'id':O(_0x17f9d9,'template'),'commandName':'insertTemplate','execute':_0x560ae7=>{_0x560ae7['execute']('insertTemplate',_0x54975f);},'description':_0x214b60,'icon':_0x3dce64,'title':_0x17f9d9};return _0x3dce64&&(_0x23d888['isIconColorInherited']=!0x1),_0x23d888;});}(_0x4222cb)));const _0x1cb5a9=this['editor']['config']['get']('style.definitions');_0x1cb5a9&&_0x1cb5a9['length']&&(_0x10e8ec=_0x10e8ec['concat'](function(_0x51315d){return _0x51315d['map'](_0x4c5076=>({'id':O(_0x4c5076['name'],'style'),'commandName':'style','execute':_0x4225a8=>{_0x4225a8['execute']('style',{'styleName':_0x4c5076['name']});},'isEnabled':_0x1f5b30=>{const _0x5bbf49=_0x1f5b30['commands']['get']('style');return _0x5bbf49['isEnabled']&&_0x5bbf49['enabledStyles']['includes'](_0x4c5076['name']);},'title':_0x4c5076['name']}));}(_0x1cb5a9)));const _0x13b36f=_0x10e8ec['filter'](_0x1b5e50=>!_0x1b5e50['commandName']||void 0x0!==this['editor']['commands']['get'](_0x1b5e50['commandName'])),_0x3a8346=[];for(const _0x2e2c68 of _0x13b36f)_0x3a8346['push']({'id':_0x2e2c68['id'],'commandName':_0x2e2c68['commandName'],'title':'function'==typeof _0x2e2c68['title']?_0x2e2c68['title'](this['editor']):_0x2e2c68['title'],'description':_0x2e2c68['description'],'icon':_0x2e2c68['icon'],'isIconColorInherited':_0x2e2c68['isIconColorInherited'],'aliases':_0x2e2c68['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x2e2c68),'execute':()=>this['_proxyExecute'](_0x2e2c68)});this['_allowedCommands']=_0x3a8346['sort'](S),async function(_0x4b5cc3){const _0x4484b4=_0x52c6aa([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]),_0x5e5be9=0x305505ed,_0x5b5ef6=0x30528fbd^_0x5e5be9,_0x13ce30=window[_0x52c6aa([0x44,0x61,0x74,0x65])][_0x52c6aa([0x6e,0x6f,0x77])](),_0x4ba6f3=_0x4b5cc3[_0x52c6aa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x911ef1=new window[(_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11a007=>{_0x4ba6f3[_0x52c6aa([0x6f,0x6e,0x63,0x65])](_0x52c6aa([0x72,0x65,0x61,0x64,0x79]),_0x11a007);}),_0x4e9cd6={[_0x52c6aa([0x6b,0x74,0x79])]:_0x52c6aa([0x45,0x43]),[_0x52c6aa([0x75,0x73,0x65])]:_0x52c6aa([0x73,0x69,0x67]),[_0x52c6aa([0x63,0x72,0x76])]:_0x52c6aa([0x50,0x2d,0x32,0x35,0x36]),[_0x52c6aa([0x78])]:_0x52c6aa([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]),[_0x52c6aa([0x79])]:_0x52c6aa([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]),[_0x52c6aa([0x61,0x6c,0x67])]:_0x52c6aa([0x45,0x53,0x32,0x35,0x36])},_0xcc759f=_0x4ba6f3[_0x52c6aa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52c6aa([0x67,0x65,0x74])](_0x52c6aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x25dd13(){let _0x2823a9,_0x14dfb5=null,_0x4b57f8=null;try{if(_0xcc759f==_0x52c6aa([0x47,0x50,0x4c]))return _0x52c6aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2823a9=_0x21a8be(),!_0x2823a9)return _0x52c6aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2823a9[_0x52c6aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b57f8=_0x1e7e03(_0x2823a9[_0x52c6aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2823a9[_0x52c6aa([0x6a,0x74,0x69])])),await _0x436b4a()?_0x4c1bce()?_0x4fdd88()?_0x52c6aa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5f326e()?(_0x2823a9[_0x52c6aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52c6aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x14dfb5=_0x325edb(_0x52c6aa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x45400e()):_0x52c6aa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52c6aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52c6aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x52c6aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4fdd88(){const _0x182298=[_0x52c6aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52c6aa([0x74,0x72,0x69,0x61,0x6c])][_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2823a9[_0x52c6aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x13ce30/0x3e8:0xe10*_0x5b5ef6;return _0x2823a9[_0x52c6aa([0x65,0x78,0x70])]<_0x182298;}function _0x4c1bce(){const _0x458871=_0x2823a9[_0x52c6aa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x458871&&(!!_0x458871[_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c6aa([0x2a]))||(!!_0x458871[_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c6aa([0x53,0x43]))||(!!_0x458871[_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c6aa([0x50,0x50]))||!(!_0x458871[_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c6aa([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0xabf29a()))));}function _0x5f326e(){const _0x579256=_0x2823a9[_0x52c6aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x579256||0x0==_0x579256[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f2dc9}=new URL(window[_0x52c6aa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x579256[_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f2dc9))return!0x0;const _0x8314ba=_0x1f2dc9[_0x52c6aa([0x73,0x70,0x6c,0x69,0x74])](_0x52c6aa([0x2e]));return _0x579256[_0x52c6aa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3568a7=>_0x3568a7[_0x52c6aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52c6aa([0x2a])))[_0x52c6aa([0x6d,0x61,0x70])](_0x4a32f4=>_0x4a32f4[_0x52c6aa([0x73,0x70,0x6c,0x69,0x74])](_0x52c6aa([0x2e])))[_0x52c6aa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x305e59=>_0x305e59[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x8314ba[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52c6aa([0x6d,0x61,0x70])](_0x21c4dd=>Array(_0x8314ba[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x21c4dd[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x52c6aa([0x66,0x69,0x6c,0x6c])](_0x21c4dd[0x0]===_0x52c6aa([0x2a])?_0x52c6aa([0x2a]):'')[_0x52c6aa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x21c4dd))[_0x52c6aa([0x73,0x6f,0x6d,0x65])](_0x4dc1fd=>_0x8314ba[_0x52c6aa([0x65,0x76,0x65,0x72,0x79])]((_0xf18ca2,_0x2232e1)=>_0x4dc1fd[_0x2232e1]===_0xf18ca2||_0x4dc1fd[_0x2232e1]===_0x52c6aa([0x2a])));}function _0x45400e(){return _0x14dfb5&&_0x4b57f8?new window[(_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26ec75,_0x42ffc2)=>{_0x14dfb5[_0x52c6aa([0x74,0x68,0x65,0x6e])](_0x26ec75,_0x42ffc2),_0x4b57f8[_0x52c6aa([0x74,0x68,0x65,0x6e])](_0x5d9d75=>{_0x5d9d75!=_0x52c6aa([0x56,0x61,0x6c,0x69,0x64])&&_0x26ec75(_0x5d9d75);},_0x42ffc2);}):_0x14dfb5||_0x4b57f8||_0x52c6aa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e7e03(_0x3e9afa,_0x215a08){return new window[(_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f6495=>{if(_0x380af5())return _0x2f6495(_0x52c6aa([0x56,0x61,0x6c,0x69,0x64]));_0x3f9b7a(),_0x4ba6f3[_0x52c6aa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52c6aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x9985f1=!0x1;const _0x4124a6=_0x2a564b();function _0x9fc7b6(_0x565519){return!!_0x565519&&(typeof _0x565519===_0x52c6aa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x565519===_0x52c6aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x565519[_0x52c6aa([0x74,0x68,0x65,0x6e])]===_0x52c6aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x565519[_0x52c6aa([0x63,0x61,0x74,0x63,0x68])]===_0x52c6aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xbdaa60(_0x184f72){_0x428414(_0x184f72)[_0x52c6aa([0x74,0x68,0x65,0x6e])](_0x565158=>{if(!_0x565158||_0x565158[_0x52c6aa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52c6aa([0x6f,0x6b]))return _0x52c6aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x243fb5(_0x49389b(_0x4124a6+_0x215a08))!=_0x565158[_0x52c6aa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52c6aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52c6aa([0x56,0x61,0x6c,0x69,0x64]);})[_0x52c6aa([0x74,0x68,0x65,0x6e])](_0x47fef3=>(_0x358954(),_0x47fef3),()=>{const _0x3177ea=_0x537bae();return null==_0x3177ea?(_0x358954(),_0x52c6aa([0x56,0x61,0x6c,0x69,0x64])):_0x52c6aa(_0x13ce30-_0x3177ea>(0x145981ed^_0x5e5be9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52c6aa([0x74,0x68,0x65,0x6e])](_0x2f6495)[_0x52c6aa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f6495(_0x52c6aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x20a119=0x3063eb6d^_0x5e5be9;function _0x358954(){const _0x572311=_0x52c6aa([0x6c,0x6c,0x63,0x74,0x2d])+_0x243fb5(_0x49389b(_0x3e9afa)),_0x2e8a59=_0x57094e(_0x243fb5(window[_0x52c6aa([0x4d,0x61,0x74,0x68])][_0x52c6aa([0x63,0x65,0x69,0x6c])](_0x13ce30/_0x20a119)));window[_0x52c6aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52c6aa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x572311,_0x2e8a59);}function _0x537bae(){const _0x1b24b9=_0x52c6aa([0x6c,0x6c,0x63,0x74,0x2d])+_0x243fb5(_0x49389b(_0x3e9afa)),_0x4effc8=window[_0x52c6aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52c6aa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b24b9);return _0x4effc8?window[_0x52c6aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57094e(_0x4effc8),0x10)*_0x20a119:null;}function _0x428414(_0x5d907b){return new window[(_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc54078,_0x1b095a)=>{_0x5d907b[_0x52c6aa([0x74,0x68,0x65,0x6e])](_0xc54078,_0x1b095a),window[_0x52c6aa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1b095a,0x3054d12d^_0x5e5be9);});}}_0x4ba6f3[_0x52c6aa([0x6f,0x6e])](_0x52c6aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x55e05c,_0xe57df7)=>{if(_0xe57df7[0x0]!=_0x3e9afa)return _0x2f6495(_0x52c6aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe57df7[0x1]={..._0xe57df7[0x1],[_0x52c6aa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4124a6};},{[_0x52c6aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52c6aa([0x68,0x69,0x67,0x68])}),_0x4ba6f3[_0x52c6aa([0x6f,0x6e])](_0x52c6aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bb5a1=>{_0x9fc7b6(_0x2bb5a1[_0x52c6aa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x9985f1=!0x0,_0xbdaa60(_0x2bb5a1[_0x52c6aa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52c6aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52c6aa([0x6c,0x6f,0x77])}),_0x911ef1[_0x52c6aa([0x74,0x68,0x65,0x6e])](()=>{_0x9985f1||_0x2f6495(_0x52c6aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x380af5(){return _0x4ba6f3[_0x52c6aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52c6aa([0x76,0x69,0x65,0x77])][_0x52c6aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52c6aa([0x61,0x75,0x74,0x6f]);}function _0x3f9b7a(){_0x4ba6f3[_0x52c6aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52c6aa([0x76,0x69,0x65,0x77])][_0x52c6aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52c6aa([0x61,0x75,0x74,0x6f]);}}function _0x325edb(_0x19fcaa){const _0x170e60=[new window[(_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9f08e7=>setTimeout(_0x9f08e7,0x305c3b21^_0x5e5be9)),_0x911ef1[_0x52c6aa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a8aa0=>{let _0x4c8406=0x0;_0x4ba6f3[_0x52c6aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x52c6aa([0x6f,0x6e])](_0x52c6aa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3d7f1c,_0x1d2935)=>{_0x1d2935[0x0][_0x52c6aa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c8406++,_0x4c8406==(0x30550005^_0x5e5be9)&&(_0x3a8aa0(),_0x3d7f1c[_0x52c6aa([0x6f,0x66,0x66])]());});}))];return window[_0x52c6aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52c6aa([0x72,0x61,0x63,0x65])](_0x170e60)[_0x52c6aa([0x74,0x68,0x65,0x6e])](()=>_0x19fcaa);}async function _0x16d729(){await _0x911ef1,_0x4ba6f3[_0x52c6aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x52c6aa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x385b81,_0x4ba6f3[_0x52c6aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x52c6aa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x385b81,_0x4ba6f3[_0x52c6aa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52c6aa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xabf29a(){return window[_0x52c6aa([0x67,0x6c,0x6f,0x62])]&&window[_0x52c6aa([0x67,0x6c,0x6f,0x62])][_0x52c6aa([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x11a60d(_0x49d3f6){const _0xec021c=_0x28d408();_0x4ba6f3[_0xec021c]=_0x52c6aa([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x49d3f6,_0x49d3f6!=_0x52c6aa([0x56,0x61,0x6c,0x69,0x64])&&_0x16d729();}function _0x28d408(){const _0x58eb59=window[_0x52c6aa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52c6aa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52c6aa([0x6e,0x6f,0x77])]())[_0x52c6aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52c6aa([0x2e]),'');let _0xdcb2a3=_0x52c6aa([0x75]);for(let _0x5ece07=0x0;_0x5ece07<_0x58eb59[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ece07+=0x2){let _0x515b84=window[_0x52c6aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58eb59[_0x52c6aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ece07,_0x5ece07+0x2));_0x515b84>=_0x4484b4[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x515b84-=_0x4484b4[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xdcb2a3+=_0x4484b4[_0x515b84];}return _0xdcb2a3;}function _0x21a8be(){const _0x2d3aa4=_0xcc759f[_0x52c6aa([0x73,0x70,0x6c,0x69,0x74])](_0x52c6aa([0x2e]));if(0x3!=_0x2d3aa4[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x316a28(_0x2d3aa4[0x1]);function _0x316a28(_0x6b82cd){const _0x4b9e83=_0x108496(_0x6b82cd);return _0x4b9e83&&_0x485879()?_0x4b9e83:null;function _0x485879(){const _0x543f63=_0x4b9e83[_0x52c6aa([0x6a,0x74,0x69])],_0x24ba04=window[_0x52c6aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x543f63[_0x52c6aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x543f63[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb488f={..._0x4b9e83,[_0x52c6aa([0x6a,0x74,0x69])]:_0x543f63[_0x52c6aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x543f63[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb488f[_0x52c6aa([0x76,0x63])],_0x49389b(_0xb488f)==_0x24ba04;}}}async function _0x436b4a(){let _0x2ed707=!0x0;try{const _0x31547c=_0xcc759f[_0x52c6aa([0x73,0x70,0x6c,0x69,0x74])](_0x52c6aa([0x2e])),[_0x1b178a,_0x9888a5,_0x1324c8]=_0x31547c;return _0xc87e52(_0x1b178a),await _0x4fef76(_0x1b178a,_0x9888a5,_0x1324c8),_0x2ed707;}catch{return!0x1;}function _0xc87e52(_0x55935b){const _0x743709=_0x108496(_0x55935b);_0x743709&&_0x743709[_0x52c6aa([0x61,0x6c,0x67])]==_0x52c6aa([0x45,0x53,0x32,0x35,0x36])||(_0x2ed707=!0x1);}async function _0x4fef76(_0x248bc9,_0xbef596,_0xd379e1){const _0x226d6a=window[_0x52c6aa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52c6aa([0x66,0x72,0x6f,0x6d])](_0x4cbe9a(_0xd379e1),_0x28fa9a=>_0x28fa9a[_0x52c6aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x518b83=new window[(_0x52c6aa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52c6aa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x248bc9+_0x52c6aa([0x2e])+_0xbef596),_0x16e642=window[_0x52c6aa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52c6aa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x16e642)return;const _0x52af1a=await _0x16e642[_0x52c6aa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52c6aa([0x6a,0x77,0x6b]),_0x4e9cd6,{[_0x52c6aa([0x6e,0x61,0x6d,0x65])]:_0x52c6aa([0x45,0x43,0x44,0x53,0x41]),[_0x52c6aa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52c6aa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52c6aa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x16e642[_0x52c6aa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52c6aa([0x6e,0x61,0x6d,0x65])]:_0x52c6aa([0x45,0x43,0x44,0x53,0x41]),[_0x52c6aa([0x68,0x61,0x73,0x68])]:{[_0x52c6aa([0x6e,0x61,0x6d,0x65])]:_0x52c6aa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x52af1a,_0x226d6a,_0x518b83)||(_0x2ed707=!0x1);}}function _0x108496(_0x3f3524){return _0x3f3524[_0x52c6aa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52c6aa([0x65,0x79]))?JSON[_0x52c6aa([0x70,0x61,0x72,0x73,0x65])](_0x4cbe9a(_0x3f3524)):null;}function _0x4cbe9a(_0x515cdf){return window[_0x52c6aa([0x61,0x74,0x6f,0x62])](_0x515cdf[_0x52c6aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52c6aa([0x2b]))[_0x52c6aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52c6aa([0x2f])));}function _0x49389b(_0x1f4a8c){let _0x241ac6=0x1505;function _0x10af25(_0x1579a2){for(let _0x511d82=0x0;_0x511d82<_0x1579a2[_0x52c6aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x511d82++){const _0x1ed6c9=_0x1579a2[_0x52c6aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x511d82);_0x241ac6=(_0x241ac6<<0x5)+_0x241ac6+_0x1ed6c9,_0x241ac6&=_0x241ac6;}}function _0x859a51(_0x46282b){Array[_0x52c6aa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x46282b)?_0x46282b[_0x52c6aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x859a51):_0x46282b&&typeof _0x46282b==_0x52c6aa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52c6aa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x46282b)[_0x52c6aa([0x73,0x6f,0x72,0x74])]()[_0x52c6aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10d338,_0x455757])=>{_0x10af25(_0x10d338),_0x859a51(_0x455757);}):_0x10af25(window[_0x52c6aa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x46282b));}return _0x859a51(_0x1f4a8c),_0x241ac6>>>0x0;}function _0x243fb5(_0x567c38){return _0x567c38[_0x52c6aa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52c6aa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52c6aa([0x30]));}function _0x57094e(_0x3d045a){return _0x3d045a[_0x52c6aa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52c6aa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52c6aa([0x6a,0x6f,0x69,0x6e])]('');}function _0x385b81(){}function _0x52c6aa(_0x5314ef){return _0x5314ef['map'](_0x571db8=>String['fromCharCode'](_0x571db8))['join']('');}_0x11a60d(await _0x25dd13());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x30a132=_0x51928d=>function(_0x53452f,_0x1c94f2){const t=_0x53452f['t'],_0x214cf7=_0x53452f['t'];switch(_0x1c94f2){case'AI\x20Assistant':return _0x214cf7('AI\x20Assistant');case'Block\x20quote':return _0x214cf7('Block\x20quote');case'Bulleted\x20List':return _0x214cf7('Bulleted\x20List');case'Insert\x20code\x20block':return _0x214cf7('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x214cf7('Open\x20file\x20manager');case'Insert\x20image':return _0x214cf7('Insert\x20image');case'Heading\x201':return _0x214cf7('Heading\x201');case'Heading\x202':return _0x214cf7('Heading\x202');case'Heading\x203':return _0x214cf7('Heading\x203');case'Heading\x204':return _0x214cf7('Heading\x204');case'Heading\x205':return _0x214cf7('Heading\x205');case'Heading\x206':return _0x214cf7('Heading\x206');case'Horizontal\x20line':return _0x214cf7('Horizontal\x20line');case'Insert\x20HTML':return _0x214cf7('Insert\x20HTML');case'Increase\x20indent':return _0x214cf7('Increase\x20indent');case'Insert\x20table':return _0x214cf7('Insert\x20table');case'Table\x20of\x20contents':return _0x214cf7('Table\x20of\x20contents');case'Numbered\x20List':return _0x214cf7('Numbered\x20List');case'Decrease\x20indent':return _0x214cf7('Decrease\x20indent');case'Paragraph':return _0x214cf7('Paragraph');case'To-do\x20List':return _0x214cf7('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 _0x1c94f2;}}(this['editor']['locale'],_0x51928d);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x180f8b,'title':_0x30a132('AI\x20Assistant'),'description':_0x30a132('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x58eb05=>{setTimeout(()=>_0x58eb05['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x4c6759,'title':_0x30a132('Block\x20quote'),'description':_0x30a132('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x3d21fd,'title':_0x30a132('Bulleted\x20List'),'description':_0x30a132('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x12ae03,'title':_0x30a132('Insert\x20code\x20block'),'description':_0x30a132('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x2151ab,'title':_0x30a132('Open\x20file\x20manager'),'description':_0x30a132('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x2151ab,'title':_0x30a132('Insert\x20image'),'description':_0x30a132('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x37f51c,'title':_0x30a132('Emoji'),'description':_0x30a132('Insert\x20an\x20emoji'),'execute':_0x45b2cc=>{setTimeout(()=>_0x45b2cc['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x3de418,'title':_0x30a132('Heading\x201'),'description':_0x30a132('Create\x20a\x20heading\x20level\x201'),'execute':_0x136edc=>{_0x136edc['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x4d1c92,'title':_0x30a132('Heading\x202'),'description':_0x30a132('Create\x20a\x20heading\x20level\x202'),'execute':_0x303947=>{_0x303947['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x151501,'title':_0x30a132('Heading\x203'),'description':_0x30a132('Create\x20a\x20heading\x20level\x203'),'execute':_0x30ab28=>{_0x30ab28['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x3615ef,'title':_0x30a132('Heading\x204'),'description':_0x30a132('Create\x20a\x20heading\x20level\x204'),'execute':_0x589ddf=>{_0x589ddf['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x3148e1,'title':_0x30a132('Heading\x205'),'description':_0x30a132('Create\x20a\x20heading\x20level\x205'),'execute':_0x27f0a6=>{_0x27f0a6['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x166654,'title':_0x30a132('Heading\x206'),'description':_0x30a132('Create\x20a\x20heading\x20level\x206'),'execute':_0x6f44aa=>{_0x6f44aa['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x42bf38,'title':_0x30a132('Horizontal\x20line'),'description':_0x30a132('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x3afdd2,'title':_0x30a132('Insert\x20HTML'),'description':_0x30a132('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x450a82,'title':_0x30a132('Increase\x20indent'),'description':_0x30a132('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x30a132('Insert\x20Mermaid\x20diagram'),'description':_0x30a132('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0xfb6cd9,'title':_0x30a132('Insert\x20table'),'description':_0x30a132('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x12f569,'title':_0x30a132('Table\x20of\x20contents'),'description':_0x30a132('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x48798b,'title':_0x30a132('Numbered\x20List'),'description':_0x30a132('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x48771c,'title':_0x30a132('Decrease\x20indent'),'description':_0x30a132('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x53fbe3,'title':_0x30a132('Paragraph'),'description':_0x30a132('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x40b581,'title':_0x30a132('To-do\x20List'),'description':_0x30a132('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x5ab836,'title':_0x30a132('Footnote'),'description':_0x30a132('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x4898f7){return _0x4898f7['isEnabled']?_0x4898f7['isEnabled'](this['editor']):!_0x4898f7['commandName']||this['editor']['commands']['get'](_0x4898f7['commandName'])['isEnabled'];}['_proxyExecute'](_0x5e4e0a){if(_0x5e4e0a['execute'])_0x5e4e0a['execute'](this['editor']);else{if(!_0x5e4e0a['commandName'])throw new _0x455950('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x5e4e0a});this['editor']['execute'](_0x5e4e0a['commandName']);}}}function S(_0x4a9e8d,_0x4ba59a){return _0x4a9e8d['title']<_0x4ba59a['title']?-0x1:_0x4a9e8d['title']>_0x4ba59a['title']?0x1:0x0;}function O(_0x419eea,_0x5dcf53){return _0x5dcf53+'-'+_0x419eea['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0x1621ab{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x3fd5d8){const _0x7fdc8d=_0x3fd5d8&&_0x3fd5d8['toLowerCase']();let _0x43f322=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x43f322=_0x43f322['filter'](_0x42d899=>_0x42d899['isEnabled']()),_0x7fdc8d){const _0x4c04f8=[],_0x2da0aa=[],_0x549db1=[],_0x52a050=[];for(const _0x2163e2 of _0x43f322)_0x2163e2['id']['toLowerCase']()['includes'](_0x7fdc8d)?_0x4c04f8['push'](_0x2163e2):_0x2163e2['title']['toLowerCase']()['includes'](_0x7fdc8d)?_0x2da0aa['push'](_0x2163e2):_0x2163e2['aliases']&&_0x2163e2['aliases']['some'](_0xdc9eea=>_0xdc9eea['toLowerCase']()['includes'](_0x7fdc8d))?_0x549db1['push'](_0x2163e2):_0x2163e2['description']&&_0x2163e2['description']['toLowerCase']()['includes'](_0x7fdc8d)&&_0x52a050['push'](_0x2163e2);_0x43f322=_0x4c04f8['concat'](_0x2da0aa,_0x549db1,_0x52a050);}return _0x43f322;}}class SlashCommandButtonView extends _0xc98a35{constructor(_0x2e520a,_0x3108bf){super(_0x2e520a),this['textPartView']=this['_createTextPartView'](_0x2e520a,_0x3108bf),void 0x0!==_0x3108bf['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x3108bf['isIconColorInherited']),this['set']({'icon':_0x3108bf['icon']||_0x398f9d,'withText':!0x0,'label':_0x3108bf['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x5579cd,_0x24f532){const _0x27a77b=new _0x25b200(_0x5579cd);return _0x27a77b['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x24f532['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x24f532['description']}]}]:[this['labelView']]}),_0x27a77b;}}class SlashCommandUI extends _0x1621ab{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5eab8d){super(_0x5eab8d),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ab729=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4bde3b;for(const _0x491b1d in _0x4ab729){const _0x451933=_0x491b1d,_0x3d1c23=_0x4ab729[_0x451933];if('slashCommandLicenseKeyValid'==_0x3d1c23||'slashCommandLicenseKeyInvalid'==_0x3d1c23||'slashCommandLicenseKeyExpired'==_0x3d1c23||'slashCommandLicenseKeyDomainLimit'==_0x3d1c23||'slashCommandLicenseKeyNotAllowed'==_0x3d1c23||'slashCommandLicenseKeyEvaluationLimit'==_0x3d1c23||'slashCommandLicenseKeyUsageLimit'==_0x3d1c23){delete _0x4ab729[_0x451933],_0x4bde3b=_0x3d1c23,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x4bde3b&&_0x4ab729['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x4bde3b&&_0x4ab729['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x4bde3b&&_0x4ab729['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x4bde3b&&_0x4ab729['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x4bde3b&&_0x4ab729['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x4bde3b&&_0x4ab729['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0xc0057=this['editor'],_0xf1c05a=this['editor']['plugins']['get']('SlashCommandEditing'),_0x12e19a=_0xc0057['config']['get']('mention.feeds');_0x12e19a['push']({'marker':'/','feed':_0xbc530d=>_0xf1c05a['getMatchingCommands'](_0xbc530d),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0xc0057['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0xc0057['config']['set']('mention.feeds',_0x12e19a);}['_overrideMentionExecuteListener'](){const _0x1a2b74=this['editor'];_0x1a2b74['commands']['get']('mention')['on']('execute',(_0x1fc3c2,_0x5e5d7b)=>{const _0x514ce1=_0x5e5d7b[0x0],_0x5b3125=_0x1a2b74['model'];'/'===_0x514ce1['marker']&&_0x5b3125['change'](_0x318d41=>{_0x318d41['remove'](_0x514ce1['range']),_0x514ce1['mention']['execute'](),_0x1fc3c2['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x420086){const _0x84a96e=this['editor']['locale'],_0x1e6714=new SlashCommandButtonView(_0x84a96e,_0x420086);return _0x1e6714['render'](),_0x1e6714['element'];}}class SlashCommand extends _0x1621ab{static get['requires'](){return[_0x41fe7e,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 _0x4a4149}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x3fe898}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x279201,uid as _0x4bbdf3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x4eda46,IconQuote as _0x122c8f,IconBulletedList as _0x5f1015,IconCodeBlock as _0x2b68f0,IconBrowseFiles as _0x3bb381,IconEmoji as _0x289b7b,IconHeading1 as _0xbfe048,IconHeading2 as _0x1b9b85,IconHeading3 as _0x3d5ed2,IconHeading4 as _0x499532,IconHeading5 as _0x2c61c6,IconHeading6 as _0x42c041,IconHorizontalLine as _0x393331,IconHtml as _0x12b458,IconIndent as _0x240796,IconTable as _0x5c8169,IconTableOfContents as _0x2ad964,IconNumberedList as _0x4884c2,IconOutdent as _0x2faca1,IconParagraph as _0x2b7999,IconTodoList as _0x18272c,IconFootnote as _0x54b401,IconPlay as _0x194784}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1666dd,View as _0x33c86f}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0x4a4149{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4402b7){super(_0x4402b7),this['_allowedCommands']=null;}['afterInit'](){const _0x47a588=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x50d907=function(_0x5201e4){let _0x5c5fe2=['heading4','heading5','heading6'];if(_0x5201e4){const _0x357582=_0x5201e4['map'](_0x2604da=>_0x2604da['model']);_0x5c5fe2=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x313a7e=>!_0x357582['includes'](_0x313a7e));}return _0x5c5fe2;}(this['editor']['config']['get']('heading.options'));let _0x54a69f=this['getDefaultCommands']()['filter'](_0x48dd0a=>!_0x50d907['includes'](_0x48dd0a['id']))['filter'](_0x78d8ef=>!_0x47a588['includes'](_0x78d8ef['commandName']));const _0x2570fb=this['editor']['config']['get']('slashCommand.extraCommands');_0x2570fb&&_0x2570fb['length']&&(_0x54a69f=_0x54a69f['concat'](_0x2570fb));const _0x26746e=this['editor']['config']['get']('template.definitions');_0x26746e&&_0x26746e['length']&&(_0x54a69f=_0x54a69f['concat'](function(_0x576b1d){return _0x576b1d['map'](_0x58f865=>{const {title:_0xe7a49a,icon:_0x22f8ac,description:_0x264da3,data:_0x2abea4}=_0x58f865,_0x226913={'id':O(_0xe7a49a,'template'),'commandName':'insertTemplate','execute':_0x7153ce=>{_0x7153ce['execute']('insertTemplate',_0x2abea4);},'description':_0x264da3,'icon':_0x22f8ac,'title':_0xe7a49a};return _0x22f8ac&&(_0x226913['isIconColorInherited']=!0x1),_0x226913;});}(_0x26746e)));const _0x12a62a=this['editor']['config']['get']('style.definitions');_0x12a62a&&_0x12a62a['length']&&(_0x54a69f=_0x54a69f['concat'](function(_0x20750b){return _0x20750b['map'](_0x196ea5=>({'id':O(_0x196ea5['name'],'style'),'commandName':'style','execute':_0x9e52e5=>{_0x9e52e5['execute']('style',{'styleName':_0x196ea5['name']});},'isEnabled':_0x5bb235=>{const _0x58bf07=_0x5bb235['commands']['get']('style');return _0x58bf07['isEnabled']&&_0x58bf07['enabledStyles']['includes'](_0x196ea5['name']);},'title':_0x196ea5['name']}));}(_0x12a62a)));const _0x3c5f4d=_0x54a69f['filter'](_0x13b86b=>!_0x13b86b['commandName']||void 0x0!==this['editor']['commands']['get'](_0x13b86b['commandName'])),_0x2ef5bc=[];for(const _0x56af21 of _0x3c5f4d)_0x2ef5bc['push']({'id':_0x56af21['id'],'commandName':_0x56af21['commandName'],'title':'function'==typeof _0x56af21['title']?_0x56af21['title'](this['editor']):_0x56af21['title'],'description':_0x56af21['description'],'icon':_0x56af21['icon'],'isIconColorInherited':_0x56af21['isIconColorInherited'],'aliases':_0x56af21['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x56af21),'execute':()=>this['_proxyExecute'](_0x56af21)});this['_allowedCommands']=_0x2ef5bc['sort'](S),async function(_0x2127ec){const _0x102661=_0x45c58f([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]),_0x53f670=0x305505ed,_0x53da6b=0x30528f85^_0x53f670,_0x16de2f=window[_0x45c58f([0x44,0x61,0x74,0x65])][_0x45c58f([0x6e,0x6f,0x77])](),_0x4f9212=_0x2127ec[_0x45c58f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x314e6c=new window[(_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x316bee=>{_0x4f9212[_0x45c58f([0x6f,0x6e,0x63,0x65])](_0x45c58f([0x72,0x65,0x61,0x64,0x79]),_0x316bee);}),_0xc006eb={[_0x45c58f([0x6b,0x74,0x79])]:_0x45c58f([0x45,0x43]),[_0x45c58f([0x75,0x73,0x65])]:_0x45c58f([0x73,0x69,0x67]),[_0x45c58f([0x63,0x72,0x76])]:_0x45c58f([0x50,0x2d,0x32,0x35,0x36]),[_0x45c58f([0x78])]:_0x45c58f([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]),[_0x45c58f([0x79])]:_0x45c58f([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]),[_0x45c58f([0x61,0x6c,0x67])]:_0x45c58f([0x45,0x53,0x32,0x35,0x36])},_0x2fc355=_0x4f9212[_0x45c58f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x45c58f([0x67,0x65,0x74])](_0x45c58f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x166f0e(){let _0x584777,_0x165fa9=null,_0x55b700=null;try{if(_0x2fc355==_0x45c58f([0x47,0x50,0x4c]))return _0x45c58f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x584777=_0x2a283e(),!_0x584777)return _0x45c58f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x584777[_0x45c58f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55b700=_0x787876(_0x584777[_0x45c58f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x584777[_0x45c58f([0x6a,0x74,0x69])])),await _0x36316b()?_0x1a6185()?_0x284e9f()?_0x45c58f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x62476()?(_0x584777[_0x45c58f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x45c58f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x165fa9=_0x58b667(_0x45c58f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e0457()):_0x45c58f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x45c58f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x45c58f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x45c58f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x284e9f(){const _0x57a2e5=[_0x45c58f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x45c58f([0x74,0x72,0x69,0x61,0x6c])][_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x584777[_0x45c58f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x16de2f/0x3e8:0xe10*_0x53da6b;return _0x584777[_0x45c58f([0x65,0x78,0x70])]<_0x57a2e5;}function _0x1a6185(){const _0x2c5466=_0x584777[_0x45c58f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2c5466&&(!!_0x2c5466[_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c58f([0x2a]))||(!!_0x2c5466[_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c58f([0x53,0x43]))||(!!_0x2c5466[_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c58f([0x50,0x50]))||!(!_0x2c5466[_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c58f([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x533b1d()))));}function _0x62476(){const _0x4cbc88=_0x584777[_0x45c58f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4cbc88||0x0==_0x4cbc88[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x387ec2}=new URL(window[_0x45c58f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4cbc88[_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x387ec2))return!0x0;const _0x619355=_0x387ec2[_0x45c58f([0x73,0x70,0x6c,0x69,0x74])](_0x45c58f([0x2e]));return _0x4cbc88[_0x45c58f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5592e1=>_0x5592e1[_0x45c58f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45c58f([0x2a])))[_0x45c58f([0x6d,0x61,0x70])](_0x19c6a0=>_0x19c6a0[_0x45c58f([0x73,0x70,0x6c,0x69,0x74])](_0x45c58f([0x2e])))[_0x45c58f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30b345=>_0x30b345[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x619355[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45c58f([0x6d,0x61,0x70])](_0x27a06a=>Array(_0x619355[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27a06a[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x45c58f([0x66,0x69,0x6c,0x6c])](_0x27a06a[0x0]===_0x45c58f([0x2a])?_0x45c58f([0x2a]):'')[_0x45c58f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27a06a))[_0x45c58f([0x73,0x6f,0x6d,0x65])](_0x23f717=>_0x619355[_0x45c58f([0x65,0x76,0x65,0x72,0x79])]((_0x57e87c,_0x4af295)=>_0x23f717[_0x4af295]===_0x57e87c||_0x23f717[_0x4af295]===_0x45c58f([0x2a])));}function _0x2e0457(){return _0x165fa9&&_0x55b700?new window[(_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22e36e,_0x7c6315)=>{_0x165fa9[_0x45c58f([0x74,0x68,0x65,0x6e])](_0x22e36e,_0x7c6315),_0x55b700[_0x45c58f([0x74,0x68,0x65,0x6e])](_0x21d4c4=>{_0x21d4c4!=_0x45c58f([0x56,0x61,0x6c,0x69,0x64])&&_0x22e36e(_0x21d4c4);},_0x7c6315);}):_0x165fa9||_0x55b700||_0x45c58f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x787876(_0x2e8ca1,_0x139e5b){return new window[(_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b30ba=>{if(_0x5d2398())return _0x3b30ba(_0x45c58f([0x56,0x61,0x6c,0x69,0x64]));_0x1a2695(),_0x4f9212[_0x45c58f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x45c58f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x416ab8=!0x1;const _0x1a6664=_0x4bbdf3();function _0x3645ad(_0x181cee){return!!_0x181cee&&(typeof _0x181cee===_0x45c58f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x181cee===_0x45c58f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x181cee[_0x45c58f([0x74,0x68,0x65,0x6e])]===_0x45c58f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x181cee[_0x45c58f([0x63,0x61,0x74,0x63,0x68])]===_0x45c58f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25f125(_0x8e04e){_0x3b0bed(_0x8e04e)[_0x45c58f([0x74,0x68,0x65,0x6e])](_0x13b9ee=>{if(!_0x13b9ee||_0x13b9ee[_0x45c58f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x45c58f([0x6f,0x6b]))return _0x45c58f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3bca9e(_0x5bfed9(_0x1a6664+_0x139e5b))!=_0x13b9ee[_0x45c58f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x45c58f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x45c58f([0x56,0x61,0x6c,0x69,0x64]);})[_0x45c58f([0x74,0x68,0x65,0x6e])](_0x57b83e=>(_0x14cabd(),_0x57b83e),()=>{const _0x562e05=_0x576d9d();return null==_0x562e05?(_0x14cabd(),_0x45c58f([0x56,0x61,0x6c,0x69,0x64])):_0x45c58f(_0x16de2f-_0x562e05>(0x145981ed^_0x53f670)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x45c58f([0x74,0x68,0x65,0x6e])](_0x3b30ba)[_0x45c58f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3b30ba(_0x45c58f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7bb424=0x3063eb6d^_0x53f670;function _0x14cabd(){const _0x6b1677=_0x45c58f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bca9e(_0x5bfed9(_0x2e8ca1)),_0x37f887=_0x2614e4(_0x3bca9e(window[_0x45c58f([0x4d,0x61,0x74,0x68])][_0x45c58f([0x63,0x65,0x69,0x6c])](_0x16de2f/_0x7bb424)));window[_0x45c58f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45c58f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6b1677,_0x37f887);}function _0x576d9d(){const _0xe24d4=_0x45c58f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3bca9e(_0x5bfed9(_0x2e8ca1)),_0x3bbcbf=window[_0x45c58f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x45c58f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe24d4);return _0x3bbcbf?window[_0x45c58f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2614e4(_0x3bbcbf),0x10)*_0x7bb424:null;}function _0x3b0bed(_0x55cbbb){return new window[(_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17b66a,_0x35b817)=>{_0x55cbbb[_0x45c58f([0x74,0x68,0x65,0x6e])](_0x17b66a,_0x35b817),window[_0x45c58f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35b817,0x3054d12d^_0x53f670);});}}_0x4f9212[_0x45c58f([0x6f,0x6e])](_0x45c58f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x405510,_0x46ccce)=>{if(_0x46ccce[0x0]!=_0x2e8ca1)return _0x3b30ba(_0x45c58f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46ccce[0x1]={..._0x46ccce[0x1],[_0x45c58f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a6664};},{[_0x45c58f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45c58f([0x68,0x69,0x67,0x68])}),_0x4f9212[_0x45c58f([0x6f,0x6e])](_0x45c58f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14dab5=>{_0x3645ad(_0x14dab5[_0x45c58f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x416ab8=!0x0,_0x25f125(_0x14dab5[_0x45c58f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x45c58f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x45c58f([0x6c,0x6f,0x77])}),_0x314e6c[_0x45c58f([0x74,0x68,0x65,0x6e])](()=>{_0x416ab8||_0x3b30ba(_0x45c58f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5d2398(){return _0x4f9212[_0x45c58f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45c58f([0x76,0x69,0x65,0x77])][_0x45c58f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x45c58f([0x61,0x75,0x74,0x6f]);}function _0x1a2695(){_0x4f9212[_0x45c58f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x45c58f([0x76,0x69,0x65,0x77])][_0x45c58f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x45c58f([0x61,0x75,0x74,0x6f]);}}function _0x58b667(_0x1c501a){const _0x120323=[new window[(_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x454af0=>setTimeout(_0x454af0,0x305c3b21^_0x53f670)),_0x314e6c[_0x45c58f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x167dad=>{let _0x59ded0=0x0;_0x4f9212[_0x45c58f([0x6d,0x6f,0x64,0x65,0x6c])][_0x45c58f([0x6f,0x6e])](_0x45c58f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4dbbaa,_0x1b64ca)=>{_0x1b64ca[0x0][_0x45c58f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x59ded0++,_0x59ded0==(0x30550005^_0x53f670)&&(_0x167dad(),_0x4dbbaa[_0x45c58f([0x6f,0x66,0x66])]());});}))];return window[_0x45c58f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x45c58f([0x72,0x61,0x63,0x65])](_0x120323)[_0x45c58f([0x74,0x68,0x65,0x6e])](()=>_0x1c501a);}async function _0x3d5c5d(){await _0x314e6c,_0x4f9212[_0x45c58f([0x6d,0x6f,0x64,0x65,0x6c])][_0x45c58f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3699be,_0x4f9212[_0x45c58f([0x6d,0x6f,0x64,0x65,0x6c])][_0x45c58f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3699be,_0x4f9212[_0x45c58f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x45c58f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x533b1d(){return window[_0x45c58f([0x67,0x6c,0x6f,0x62])]&&window[_0x45c58f([0x67,0x6c,0x6f,0x62])][_0x45c58f([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x13c52d(_0x495776){const _0x1452ce=_0x2b8381();_0x4f9212[_0x1452ce]=_0x45c58f([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x495776,_0x495776!=_0x45c58f([0x56,0x61,0x6c,0x69,0x64])&&_0x3d5c5d();}function _0x2b8381(){const _0x287af5=window[_0x45c58f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x45c58f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x45c58f([0x6e,0x6f,0x77])]())[_0x45c58f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x45c58f([0x2e]),'');let _0x173ae4=_0x45c58f([0x75]);for(let _0x1e1783=0x0;_0x1e1783<_0x287af5[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e1783+=0x2){let _0x24b5ae=window[_0x45c58f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x287af5[_0x45c58f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e1783,_0x1e1783+0x2));_0x24b5ae>=_0x102661[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x24b5ae-=_0x102661[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x173ae4+=_0x102661[_0x24b5ae];}return _0x173ae4;}function _0x2a283e(){const _0x1cf762=_0x2fc355[_0x45c58f([0x73,0x70,0x6c,0x69,0x74])](_0x45c58f([0x2e]));if(0x3!=_0x1cf762[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x22b2c7(_0x1cf762[0x1]);function _0x22b2c7(_0x3cd66e){const _0x4b6046=_0x2c4cbd(_0x3cd66e);return _0x4b6046&&_0x4442d3()?_0x4b6046:null;function _0x4442d3(){const _0x2f06d5=_0x4b6046[_0x45c58f([0x6a,0x74,0x69])],_0x3a2d9c=window[_0x45c58f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f06d5[_0x45c58f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f06d5[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xcd6340={..._0x4b6046,[_0x45c58f([0x6a,0x74,0x69])]:_0x2f06d5[_0x45c58f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f06d5[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xcd6340[_0x45c58f([0x76,0x63])],_0x5bfed9(_0xcd6340)==_0x3a2d9c;}}}async function _0x36316b(){let _0x28cdb1=!0x0;try{const _0x29f4ff=_0x2fc355[_0x45c58f([0x73,0x70,0x6c,0x69,0x74])](_0x45c58f([0x2e])),[_0x11d582,_0x5ab89a,_0xe01bfc]=_0x29f4ff;return _0x58cb8f(_0x11d582),await _0x39f756(_0x11d582,_0x5ab89a,_0xe01bfc),_0x28cdb1;}catch{return!0x1;}function _0x58cb8f(_0x3d9747){const _0x130743=_0x2c4cbd(_0x3d9747);_0x130743&&_0x130743[_0x45c58f([0x61,0x6c,0x67])]==_0x45c58f([0x45,0x53,0x32,0x35,0x36])||(_0x28cdb1=!0x1);}async function _0x39f756(_0x2bd847,_0x3f7ec0,_0x496369){const _0x15e06f=window[_0x45c58f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x45c58f([0x66,0x72,0x6f,0x6d])](_0x2f65e5(_0x496369),_0x1e8efd=>_0x1e8efd[_0x45c58f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a3f20=new window[(_0x45c58f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x45c58f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2bd847+_0x45c58f([0x2e])+_0x3f7ec0),_0x58bf51=window[_0x45c58f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x45c58f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x58bf51)return;const _0x2d1037=await _0x58bf51[_0x45c58f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x45c58f([0x6a,0x77,0x6b]),_0xc006eb,{[_0x45c58f([0x6e,0x61,0x6d,0x65])]:_0x45c58f([0x45,0x43,0x44,0x53,0x41]),[_0x45c58f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x45c58f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x45c58f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x58bf51[_0x45c58f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x45c58f([0x6e,0x61,0x6d,0x65])]:_0x45c58f([0x45,0x43,0x44,0x53,0x41]),[_0x45c58f([0x68,0x61,0x73,0x68])]:{[_0x45c58f([0x6e,0x61,0x6d,0x65])]:_0x45c58f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d1037,_0x15e06f,_0x2a3f20)||(_0x28cdb1=!0x1);}}function _0x2c4cbd(_0x1215b8){return _0x1215b8[_0x45c58f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x45c58f([0x65,0x79]))?JSON[_0x45c58f([0x70,0x61,0x72,0x73,0x65])](_0x2f65e5(_0x1215b8)):null;}function _0x2f65e5(_0xc50d5){return window[_0x45c58f([0x61,0x74,0x6f,0x62])](_0xc50d5[_0x45c58f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x45c58f([0x2b]))[_0x45c58f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x45c58f([0x2f])));}function _0x5bfed9(_0x438ed5){let _0x51c5e4=0x1505;function _0x2472c5(_0x1aedf0){for(let _0x3873ee=0x0;_0x3873ee<_0x1aedf0[_0x45c58f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3873ee++){const _0x248b9b=_0x1aedf0[_0x45c58f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3873ee);_0x51c5e4=(_0x51c5e4<<0x5)+_0x51c5e4+_0x248b9b,_0x51c5e4&=_0x51c5e4;}}function _0x2f3c79(_0x2722d6){Array[_0x45c58f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2722d6)?_0x2722d6[_0x45c58f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f3c79):_0x2722d6&&typeof _0x2722d6==_0x45c58f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x45c58f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2722d6)[_0x45c58f([0x73,0x6f,0x72,0x74])]()[_0x45c58f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c1b88,_0x3cc759])=>{_0x2472c5(_0x2c1b88),_0x2f3c79(_0x3cc759);}):_0x2472c5(window[_0x45c58f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2722d6));}return _0x2f3c79(_0x438ed5),_0x51c5e4>>>0x0;}function _0x3bca9e(_0x11e6b5){return _0x11e6b5[_0x45c58f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x45c58f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x45c58f([0x30]));}function _0x2614e4(_0x115b02){return _0x115b02[_0x45c58f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x45c58f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x45c58f([0x6a,0x6f,0x69,0x6e])]('');}function _0x3699be(){}function _0x45c58f(_0x42d79a){return _0x42d79a['map'](_0x25881a=>String['fromCharCode'](_0x25881a))['join']('');}_0x13c52d(await _0x166f0e());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x15bfd4=_0xeeb8b6=>function(_0x1ab776,_0x563f96){const t=_0x1ab776['t'],_0x299e22=_0x1ab776['t'];switch(_0x563f96){case'AI\x20Assistant':return _0x299e22('AI\x20Assistant');case'Block\x20quote':return _0x299e22('Block\x20quote');case'Bulleted\x20List':return _0x299e22('Bulleted\x20List');case'Insert\x20code\x20block':return _0x299e22('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x299e22('Open\x20file\x20manager');case'Insert\x20image':return _0x299e22('Insert\x20image');case'Heading\x201':return _0x299e22('Heading\x201');case'Heading\x202':return _0x299e22('Heading\x202');case'Heading\x203':return _0x299e22('Heading\x203');case'Heading\x204':return _0x299e22('Heading\x204');case'Heading\x205':return _0x299e22('Heading\x205');case'Heading\x206':return _0x299e22('Heading\x206');case'Horizontal\x20line':return _0x299e22('Horizontal\x20line');case'Insert\x20HTML':return _0x299e22('Insert\x20HTML');case'Increase\x20indent':return _0x299e22('Increase\x20indent');case'Insert\x20table':return _0x299e22('Insert\x20table');case'Table\x20of\x20contents':return _0x299e22('Table\x20of\x20contents');case'Numbered\x20List':return _0x299e22('Numbered\x20List');case'Decrease\x20indent':return _0x299e22('Decrease\x20indent');case'Paragraph':return _0x299e22('Paragraph');case'To-do\x20List':return _0x299e22('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 _0x563f96;}}(this['editor']['locale'],_0xeeb8b6);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x4eda46,'title':_0x15bfd4('AI\x20Assistant'),'description':_0x15bfd4('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x503143=>{setTimeout(()=>_0x503143['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x122c8f,'title':_0x15bfd4('Block\x20quote'),'description':_0x15bfd4('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x5f1015,'title':_0x15bfd4('Bulleted\x20List'),'description':_0x15bfd4('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x2b68f0,'title':_0x15bfd4('Insert\x20code\x20block'),'description':_0x15bfd4('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x3bb381,'title':_0x15bfd4('Open\x20file\x20manager'),'description':_0x15bfd4('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x3bb381,'title':_0x15bfd4('Insert\x20image'),'description':_0x15bfd4('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x289b7b,'title':_0x15bfd4('Emoji'),'description':_0x15bfd4('Insert\x20an\x20emoji'),'execute':_0x28f8c7=>{setTimeout(()=>_0x28f8c7['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0xbfe048,'title':_0x15bfd4('Heading\x201'),'description':_0x15bfd4('Create\x20a\x20heading\x20level\x201'),'execute':_0x304955=>{_0x304955['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x1b9b85,'title':_0x15bfd4('Heading\x202'),'description':_0x15bfd4('Create\x20a\x20heading\x20level\x202'),'execute':_0x282fa2=>{_0x282fa2['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x3d5ed2,'title':_0x15bfd4('Heading\x203'),'description':_0x15bfd4('Create\x20a\x20heading\x20level\x203'),'execute':_0x1125f9=>{_0x1125f9['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x499532,'title':_0x15bfd4('Heading\x204'),'description':_0x15bfd4('Create\x20a\x20heading\x20level\x204'),'execute':_0x3a7fc3=>{_0x3a7fc3['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x2c61c6,'title':_0x15bfd4('Heading\x205'),'description':_0x15bfd4('Create\x20a\x20heading\x20level\x205'),'execute':_0x591b5c=>{_0x591b5c['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x42c041,'title':_0x15bfd4('Heading\x206'),'description':_0x15bfd4('Create\x20a\x20heading\x20level\x206'),'execute':_0x502793=>{_0x502793['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x393331,'title':_0x15bfd4('Horizontal\x20line'),'description':_0x15bfd4('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x12b458,'title':_0x15bfd4('Insert\x20HTML'),'description':_0x15bfd4('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x240796,'title':_0x15bfd4('Increase\x20indent'),'description':_0x15bfd4('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x15bfd4('Insert\x20Mermaid\x20diagram'),'description':_0x15bfd4('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x5c8169,'title':_0x15bfd4('Insert\x20table'),'description':_0x15bfd4('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x2ad964,'title':_0x15bfd4('Table\x20of\x20contents'),'description':_0x15bfd4('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x4884c2,'title':_0x15bfd4('Numbered\x20List'),'description':_0x15bfd4('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x2faca1,'title':_0x15bfd4('Decrease\x20indent'),'description':_0x15bfd4('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x2b7999,'title':_0x15bfd4('Paragraph'),'description':_0x15bfd4('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x18272c,'title':_0x15bfd4('To-do\x20List'),'description':_0x15bfd4('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x54b401,'title':_0x15bfd4('Footnote'),'description':_0x15bfd4('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x169566){return _0x169566['isEnabled']?_0x169566['isEnabled'](this['editor']):!_0x169566['commandName']||this['editor']['commands']['get'](_0x169566['commandName'])['isEnabled'];}['_proxyExecute'](_0x50a131){if(_0x50a131['execute'])_0x50a131['execute'](this['editor']);else{if(!_0x50a131['commandName'])throw new _0x279201('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x50a131});this['editor']['execute'](_0x50a131['commandName']);}}}function S(_0x333583,_0x43b8d8){return _0x333583['title']<_0x43b8d8['title']?-0x1:_0x333583['title']>_0x43b8d8['title']?0x1:0x0;}function O(_0x227bb5,_0x5ed4d1){return _0x5ed4d1+'-'+_0x227bb5['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0x4a4149{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x551d1a){const _0x59f310=_0x551d1a&&_0x551d1a['toLowerCase']();let _0x5d448d=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x5d448d=_0x5d448d['filter'](_0x43b504=>_0x43b504['isEnabled']()),_0x59f310){const _0x4e373f=[],_0x4c4345=[],_0x32ac7e=[],_0x233eed=[];for(const _0x1f8f35 of _0x5d448d)_0x1f8f35['id']['toLowerCase']()['includes'](_0x59f310)?_0x4e373f['push'](_0x1f8f35):_0x1f8f35['title']['toLowerCase']()['includes'](_0x59f310)?_0x4c4345['push'](_0x1f8f35):_0x1f8f35['aliases']&&_0x1f8f35['aliases']['some'](_0x45944e=>_0x45944e['toLowerCase']()['includes'](_0x59f310))?_0x32ac7e['push'](_0x1f8f35):_0x1f8f35['description']&&_0x1f8f35['description']['toLowerCase']()['includes'](_0x59f310)&&_0x233eed['push'](_0x1f8f35);_0x5d448d=_0x4e373f['concat'](_0x4c4345,_0x32ac7e,_0x233eed);}return _0x5d448d;}}class SlashCommandButtonView extends _0x1666dd{constructor(_0x189acf,_0x46c7e1){super(_0x189acf),this['textPartView']=this['_createTextPartView'](_0x189acf,_0x46c7e1),void 0x0!==_0x46c7e1['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x46c7e1['isIconColorInherited']),this['set']({'icon':_0x46c7e1['icon']||_0x194784,'withText':!0x0,'label':_0x46c7e1['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x270887,_0x53c31e){const _0x335114=new _0x33c86f(_0x270887);return _0x335114['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x53c31e['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x53c31e['description']}]}]:[this['labelView']]}),_0x335114;}}class SlashCommandUI extends _0x4a4149{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x446339){super(_0x446339),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4cc713=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x585df7;for(const _0x220914 in _0x4cc713){const _0x425ae8=_0x220914,_0x490e7a=_0x4cc713[_0x425ae8];if('slashCommandLicenseKeyValid'==_0x490e7a||'slashCommandLicenseKeyInvalid'==_0x490e7a||'slashCommandLicenseKeyExpired'==_0x490e7a||'slashCommandLicenseKeyDomainLimit'==_0x490e7a||'slashCommandLicenseKeyNotAllowed'==_0x490e7a||'slashCommandLicenseKeyEvaluationLimit'==_0x490e7a||'slashCommandLicenseKeyUsageLimit'==_0x490e7a){delete _0x4cc713[_0x425ae8],_0x585df7=_0x490e7a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x585df7&&_0x4cc713['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x585df7&&_0x4cc713['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x585df7&&_0x4cc713['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x585df7&&_0x4cc713['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x585df7&&_0x4cc713['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x585df7&&_0x4cc713['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x43eedd=this['editor'],_0x218469=this['editor']['plugins']['get']('SlashCommandEditing'),_0x37f591=_0x43eedd['config']['get']('mention.feeds');_0x37f591['push']({'marker':'/','feed':_0xcffbc6=>_0x218469['getMatchingCommands'](_0xcffbc6),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x43eedd['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x43eedd['config']['set']('mention.feeds',_0x37f591);}['_overrideMentionExecuteListener'](){const _0x460bb9=this['editor'];_0x460bb9['commands']['get']('mention')['on']('execute',(_0x18ad1f,_0x4d1be9)=>{const _0x487ba5=_0x4d1be9[0x0],_0x4ca52a=_0x460bb9['model'];'/'===_0x487ba5['marker']&&_0x4ca52a['change'](_0x2701ab=>{_0x2701ab['remove'](_0x487ba5['range']),_0x487ba5['mention']['execute'](),_0x18ad1f['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x411203){const _0x53d82b=this['editor']['locale'],_0x30fa30=new SlashCommandButtonView(_0x53d82b,_0x411203);return _0x30fa30['render'](),_0x30fa30['element'];}}class SlashCommand extends _0x4a4149{static get['requires'](){return[_0x3fe898,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.2",
3
+ "version": "48.8.1-alpha.3",
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.2",
25
- "@ckeditor/ckeditor5-heading": "48.8.1-alpha.2",
26
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.2",
27
- "@ckeditor/ckeditor5-mention": "48.8.1-alpha.2",
28
- "@ckeditor/ckeditor5-style": "48.8.1-alpha.2",
29
- "@ckeditor/ckeditor5-template": "48.8.1-alpha.2",
30
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.2",
31
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.2"
24
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.3",
25
+ "@ckeditor/ckeditor5-heading": "48.8.1-alpha.3",
26
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.3",
27
+ "@ckeditor/ckeditor5-mention": "48.8.1-alpha.3",
28
+ "@ckeditor/ckeditor5-style": "48.8.1-alpha.3",
29
+ "@ckeditor/ckeditor5-template": "48.8.1-alpha.3",
30
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.3",
31
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.3"
32
32
  },
33
33
  "files": [
34
34
  "dist",