@ckeditor/ckeditor5-slash-command 48.2.0-alpha.3 → 48.2.0-alpha.5

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 _0x40b347}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x2791f2}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0xd96575,uid as _0x27acb6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x399f63,IconQuote as _0xa0eff2,IconBulletedList as _0xcea090,IconCodeBlock as _0x45be2f,IconBrowseFiles as _0x12a89a,IconEmoji as _0x383ae8,IconHeading1 as _0x2b7627,IconHeading2 as _0x499723,IconHeading3 as _0x343857,IconHeading4 as _0x4ac54a,IconHeading5 as _0x543c27,IconHeading6 as _0x52197d,IconHorizontalLine as _0x13ddbc,IconHtml as _0x17c88f,IconIndent as _0x4413bd,IconTable as _0x21c784,IconTableOfContents as _0xd2eb06,IconNumberedList as _0x48bf1f,IconOutdent as _0x26d561,IconParagraph as _0x92f39f,IconTodoList as _0x5e1ef1,IconFootnote as _0x3a303a,IconPlay as _0xcdb010}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x392890,View as _0x19cbbd}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0x40b347{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42de8d){super(_0x42de8d),this['_allowedCommands']=null;}['afterInit'](){const _0x352caa=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0x1b6893=function(_0x24ac59){let _0x149985=['heading4','heading5','heading6'];if(_0x24ac59){const _0x19ac79=_0x24ac59['map'](_0x585449=>_0x585449['model']);_0x149985=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x47d5d9=>!_0x19ac79['includes'](_0x47d5d9));}return _0x149985;}(this['editor']['config']['get']('heading.options'));let _0x1978a4=this['getDefaultCommands']()['filter'](_0x16c228=>!_0x1b6893['includes'](_0x16c228['id']))['filter'](_0x218241=>!_0x352caa['includes'](_0x218241['commandName']));const _0x557656=this['editor']['config']['get']('slashCommand.extraCommands');_0x557656&&_0x557656['length']&&(_0x1978a4=_0x1978a4['concat'](_0x557656));const _0x25af90=this['editor']['config']['get']('template.definitions');_0x25af90&&_0x25af90['length']&&(_0x1978a4=_0x1978a4['concat'](function(_0x370db7){return _0x370db7['map'](_0x48c2cd=>{const {title:_0x2ecaae,icon:_0x28f22c,description:_0x5f4312,data:_0x3926a9}=_0x48c2cd,_0x567820={'id':O(_0x2ecaae,'template'),'commandName':'insertTemplate','execute':_0x47d354=>{_0x47d354['execute']('insertTemplate',_0x3926a9);},'description':_0x5f4312,'icon':_0x28f22c,'title':_0x2ecaae};return _0x28f22c&&(_0x567820['isIconColorInherited']=!0x1),_0x567820;});}(_0x25af90)));const _0x37fee2=this['editor']['config']['get']('style.definitions');_0x37fee2&&_0x37fee2['length']&&(_0x1978a4=_0x1978a4['concat'](function(_0x1e2ffd){return _0x1e2ffd['map'](_0x453893=>({'id':O(_0x453893['name'],'style'),'commandName':'style','execute':_0x3d677f=>{_0x3d677f['execute']('style',{'styleName':_0x453893['name']});},'isEnabled':_0x5404bf=>{const _0x15636b=_0x5404bf['commands']['get']('style');return _0x15636b['isEnabled']&&_0x15636b['enabledStyles']['includes'](_0x453893['name']);},'title':_0x453893['name']}));}(_0x37fee2)));const _0x1333d9=_0x1978a4['filter'](_0x53a8e7=>!_0x53a8e7['commandName']||void 0x0!==this['editor']['commands']['get'](_0x53a8e7['commandName'])),_0x1f4bcf=[];for(const _0x2afd7e of _0x1333d9)_0x1f4bcf['push']({'id':_0x2afd7e['id'],'commandName':_0x2afd7e['commandName'],'title':'function'==typeof _0x2afd7e['title']?_0x2afd7e['title'](this['editor']):_0x2afd7e['title'],'description':_0x2afd7e['description'],'icon':_0x2afd7e['icon'],'isIconColorInherited':_0x2afd7e['isIconColorInherited'],'aliases':_0x2afd7e['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x2afd7e),'execute':()=>this['_proxyExecute'](_0x2afd7e)});this['_allowedCommands']=_0x1f4bcf['sort'](S),async function(_0x214a20){const _0x222ef8=_0x4866f1([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]),_0x37ca02=0x305505ed,_0x20ab94=0x30528e65^_0x37ca02,_0x579abe=window[_0x4866f1([0x44,0x61,0x74,0x65])][_0x4866f1([0x6e,0x6f,0x77])](),_0x491129=_0x214a20[_0x4866f1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3f450f=new window[(_0x4866f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x545efe=>{_0x491129[_0x4866f1([0x6f,0x6e,0x63,0x65])](_0x4866f1([0x72,0x65,0x61,0x64,0x79]),_0x545efe);}),_0x4b3fce={[_0x4866f1([0x6b,0x74,0x79])]:_0x4866f1([0x45,0x43]),[_0x4866f1([0x75,0x73,0x65])]:_0x4866f1([0x73,0x69,0x67]),[_0x4866f1([0x63,0x72,0x76])]:_0x4866f1([0x50,0x2d,0x32,0x35,0x36]),[_0x4866f1([0x78])]:_0x4866f1([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]),[_0x4866f1([0x79])]:_0x4866f1([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]),[_0x4866f1([0x61,0x6c,0x67])]:_0x4866f1([0x45,0x53,0x32,0x35,0x36])},_0x55694f=_0x491129[_0x4866f1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4866f1([0x67,0x65,0x74])](_0x4866f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4501fc(){let _0x145594,_0x308d0c=null,_0x93651a=null;try{if(_0x55694f==_0x4866f1([0x47,0x50,0x4c]))return _0x4866f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x145594=_0x4af51d(),!_0x145594)return _0x4866f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x145594[_0x4866f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x93651a=_0xe01ec3(_0x145594[_0x4866f1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x145594[_0x4866f1([0x6a,0x74,0x69])])),await _0x2fc4b2()?_0x42ee44()?_0x259bb3()?_0x4866f1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd8bea1()?(_0x145594[_0x4866f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4866f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x308d0c=_0x2e4769(_0x4866f1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x21d41e()):_0x4866f1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4866f1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4866f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4866f1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x259bb3(){const _0xfec220=[_0x4866f1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4866f1([0x74,0x72,0x69,0x61,0x6c])][_0x4866f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x145594[_0x4866f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x579abe/0x3e8:0xe10*_0x20ab94;return _0x145594[_0x4866f1([0x65,0x78,0x70])]<_0xfec220;}function _0x42ee44(){const _0x469ba8=_0x145594[_0x4866f1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x469ba8&&(!!_0x469ba8[_0x4866f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4866f1([0x2a]))||(!!_0x469ba8[_0x4866f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4866f1([0x53,0x43]))||(!!_0x469ba8[_0x4866f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4866f1([0x50,0x50]))||!(!_0x469ba8[_0x4866f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4866f1([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x4e4437()))));}function _0xd8bea1(){const _0x1b81e9=_0x145594[_0x4866f1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b81e9||0x0==_0x1b81e9[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x232e83}=new URL(window[_0x4866f1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b81e9[_0x4866f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x232e83))return!0x0;const _0x53f263=_0x232e83[_0x4866f1([0x73,0x70,0x6c,0x69,0x74])](_0x4866f1([0x2e]));return _0x1b81e9[_0x4866f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x921164=>_0x921164[_0x4866f1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4866f1([0x2a])))[_0x4866f1([0x6d,0x61,0x70])](_0x359bb1=>_0x359bb1[_0x4866f1([0x73,0x70,0x6c,0x69,0x74])](_0x4866f1([0x2e])))[_0x4866f1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x882537=>_0x882537[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x53f263[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4866f1([0x6d,0x61,0x70])](_0x4fb43d=>Array(_0x53f263[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4fb43d[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4866f1([0x66,0x69,0x6c,0x6c])](_0x4fb43d[0x0]===_0x4866f1([0x2a])?_0x4866f1([0x2a]):'')[_0x4866f1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4fb43d))[_0x4866f1([0x73,0x6f,0x6d,0x65])](_0x817481=>_0x53f263[_0x4866f1([0x65,0x76,0x65,0x72,0x79])]((_0x5335ed,_0x4e02b7)=>_0x817481[_0x4e02b7]===_0x5335ed||_0x817481[_0x4e02b7]===_0x4866f1([0x2a])));}function _0x21d41e(){return _0x308d0c&&_0x93651a?new window[(_0x4866f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a3524,_0x54a3c5)=>{_0x308d0c[_0x4866f1([0x74,0x68,0x65,0x6e])](_0x1a3524,_0x54a3c5),_0x93651a[_0x4866f1([0x74,0x68,0x65,0x6e])](_0x3bc490=>{_0x3bc490!=_0x4866f1([0x56,0x61,0x6c,0x69,0x64])&&_0x1a3524(_0x3bc490);},_0x54a3c5);}):_0x308d0c||_0x93651a||_0x4866f1([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe01ec3(_0x1c8424,_0x20c29d){return new window[(_0x4866f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48ae22=>{if(_0x4e6efd())return _0x48ae22(_0x4866f1([0x56,0x61,0x6c,0x69,0x64]));_0x2b8fc1(),_0x491129[_0x4866f1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4866f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x57763b=!0x1;const _0x36101e=_0x27acb6();function _0x3048c0(_0x375666){return!!_0x375666&&(typeof _0x375666===_0x4866f1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x375666===_0x4866f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x375666[_0x4866f1([0x74,0x68,0x65,0x6e])]===_0x4866f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x375666[_0x4866f1([0x63,0x61,0x74,0x63,0x68])]===_0x4866f1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34a138(_0x4c377d){_0x6ed040(_0x4c377d)[_0x4866f1([0x74,0x68,0x65,0x6e])](_0x4be141=>{if(!_0x4be141||_0x4be141[_0x4866f1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4866f1([0x6f,0x6b]))return _0x4866f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e2a0b(_0x5af9b6(_0x36101e+_0x20c29d))!=_0x4be141[_0x4866f1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4866f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4866f1([0x56,0x61,0x6c,0x69,0x64]);})[_0x4866f1([0x74,0x68,0x65,0x6e])](_0x121022=>(_0x159bbc(),_0x121022),()=>{const _0x3ba041=_0x141826();return null==_0x3ba041?(_0x159bbc(),_0x4866f1([0x56,0x61,0x6c,0x69,0x64])):_0x4866f1(_0x579abe-_0x3ba041>(0x145981ed^_0x37ca02)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4866f1([0x74,0x68,0x65,0x6e])](_0x48ae22)[_0x4866f1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48ae22(_0x4866f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xa29d3e=0x3063eb6d^_0x37ca02;function _0x159bbc(){const _0x54386d=_0x4866f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e2a0b(_0x5af9b6(_0x1c8424)),_0x13dc31=_0x38a4b6(_0x4e2a0b(window[_0x4866f1([0x4d,0x61,0x74,0x68])][_0x4866f1([0x63,0x65,0x69,0x6c])](_0x579abe/_0xa29d3e)));window[_0x4866f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4866f1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54386d,_0x13dc31);}function _0x141826(){const _0x5cd5c5=_0x4866f1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e2a0b(_0x5af9b6(_0x1c8424)),_0x112acd=window[_0x4866f1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4866f1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5cd5c5);return _0x112acd?window[_0x4866f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38a4b6(_0x112acd),0x10)*_0xa29d3e:null;}function _0x6ed040(_0x13e877){return new window[(_0x4866f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x389cf6,_0x5dbc8a)=>{_0x13e877[_0x4866f1([0x74,0x68,0x65,0x6e])](_0x389cf6,_0x5dbc8a),window[_0x4866f1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5dbc8a,0x3054d12d^_0x37ca02);});}}_0x491129[_0x4866f1([0x6f,0x6e])](_0x4866f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb9e082,_0xea11dc)=>{if(_0xea11dc[0x0]!=_0x1c8424)return _0x48ae22(_0x4866f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xea11dc[0x1]={..._0xea11dc[0x1],[_0x4866f1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36101e};},{[_0x4866f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4866f1([0x68,0x69,0x67,0x68])}),_0x491129[_0x4866f1([0x6f,0x6e])](_0x4866f1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53af64=>{_0x3048c0(_0x53af64[_0x4866f1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x57763b=!0x0,_0x34a138(_0x53af64[_0x4866f1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4866f1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4866f1([0x6c,0x6f,0x77])}),_0x3f450f[_0x4866f1([0x74,0x68,0x65,0x6e])](()=>{_0x57763b||_0x48ae22(_0x4866f1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e6efd(){return _0x491129[_0x4866f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4866f1([0x76,0x69,0x65,0x77])][_0x4866f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4866f1([0x61,0x75,0x74,0x6f]);}function _0x2b8fc1(){_0x491129[_0x4866f1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4866f1([0x76,0x69,0x65,0x77])][_0x4866f1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4866f1([0x61,0x75,0x74,0x6f]);}}function _0x2e4769(_0x7aa1d){const _0x5a64f8=[new window[(_0x4866f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a2671=>setTimeout(_0x3a2671,0x305c3b21^_0x37ca02)),_0x3f450f[_0x4866f1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4866f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e83a7=>{let _0x576ac8=0x0;_0x491129[_0x4866f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4866f1([0x6f,0x6e])](_0x4866f1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4dd5b6,_0x2a7d0b)=>{_0x2a7d0b[0x0][_0x4866f1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x576ac8++,_0x576ac8==(0x30550005^_0x37ca02)&&(_0x5e83a7(),_0x4dd5b6[_0x4866f1([0x6f,0x66,0x66])]());});}))];return window[_0x4866f1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4866f1([0x72,0x61,0x63,0x65])](_0x5a64f8)[_0x4866f1([0x74,0x68,0x65,0x6e])](()=>_0x7aa1d);}async function _0x50db9c(){await _0x3f450f,_0x491129[_0x4866f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4866f1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x144668,_0x491129[_0x4866f1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4866f1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x144668,_0x491129[_0x4866f1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4866f1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e4437(){return window[_0x4866f1([0x67,0x6c,0x6f,0x62])]&&window[_0x4866f1([0x67,0x6c,0x6f,0x62])][_0x4866f1([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0xb38464(_0x5698a5){const _0x434aad=_0x4265df();_0x491129[_0x434aad]=_0x4866f1([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5698a5,_0x5698a5!=_0x4866f1([0x56,0x61,0x6c,0x69,0x64])&&_0x50db9c();}function _0x4265df(){const _0x2a955b=window[_0x4866f1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4866f1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4866f1([0x6e,0x6f,0x77])]())[_0x4866f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4866f1([0x2e]),'');let _0x4cbc89=_0x4866f1([0x75]);for(let _0x5315a2=0x0;_0x5315a2<_0x2a955b[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5315a2+=0x2){let _0x18aa71=window[_0x4866f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a955b[_0x4866f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5315a2,_0x5315a2+0x2));_0x18aa71>=_0x222ef8[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x18aa71-=_0x222ef8[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4cbc89+=_0x222ef8[_0x18aa71];}return _0x4cbc89;}function _0x4af51d(){const _0x4ae00a=_0x55694f[_0x4866f1([0x73,0x70,0x6c,0x69,0x74])](_0x4866f1([0x2e]));if(0x3!=_0x4ae00a[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x31c569(_0x4ae00a[0x1]);function _0x31c569(_0x75b77f){const _0x4de012=_0x3bb4fa(_0x75b77f);return _0x4de012&&_0x15c911()?_0x4de012:null;function _0x15c911(){const _0x5f16f2=_0x4de012[_0x4866f1([0x6a,0x74,0x69])],_0x3e978d=window[_0x4866f1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f16f2[_0x4866f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f16f2[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e2fc2={..._0x4de012,[_0x4866f1([0x6a,0x74,0x69])]:_0x5f16f2[_0x4866f1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5f16f2[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e2fc2[_0x4866f1([0x76,0x63])],_0x5af9b6(_0x2e2fc2)==_0x3e978d;}}}async function _0x2fc4b2(){let _0x1bd9a8=!0x0;try{const _0x15869a=_0x55694f[_0x4866f1([0x73,0x70,0x6c,0x69,0x74])](_0x4866f1([0x2e])),[_0x5b9ead,_0x318de0,_0x1c5fb1]=_0x15869a;return _0x11eaeb(_0x5b9ead),await _0xc37b6c(_0x5b9ead,_0x318de0,_0x1c5fb1),_0x1bd9a8;}catch{return!0x1;}function _0x11eaeb(_0x235fb1){const _0x197491=_0x3bb4fa(_0x235fb1);_0x197491&&_0x197491[_0x4866f1([0x61,0x6c,0x67])]==_0x4866f1([0x45,0x53,0x32,0x35,0x36])||(_0x1bd9a8=!0x1);}async function _0xc37b6c(_0x1bd7c1,_0xe9b445,_0x39d9ff){const _0x53ac2a=window[_0x4866f1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4866f1([0x66,0x72,0x6f,0x6d])](_0x55051d(_0x39d9ff),_0x3875d0=>_0x3875d0[_0x4866f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x484778=new window[(_0x4866f1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4866f1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1bd7c1+_0x4866f1([0x2e])+_0xe9b445),_0x5f2894=window[_0x4866f1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4866f1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5f2894)return;const _0x5ece81=await _0x5f2894[_0x4866f1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4866f1([0x6a,0x77,0x6b]),_0x4b3fce,{[_0x4866f1([0x6e,0x61,0x6d,0x65])]:_0x4866f1([0x45,0x43,0x44,0x53,0x41]),[_0x4866f1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4866f1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4866f1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5f2894[_0x4866f1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4866f1([0x6e,0x61,0x6d,0x65])]:_0x4866f1([0x45,0x43,0x44,0x53,0x41]),[_0x4866f1([0x68,0x61,0x73,0x68])]:{[_0x4866f1([0x6e,0x61,0x6d,0x65])]:_0x4866f1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5ece81,_0x53ac2a,_0x484778)||(_0x1bd9a8=!0x1);}}function _0x3bb4fa(_0xaa3edf){return _0xaa3edf[_0x4866f1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4866f1([0x65,0x79]))?JSON[_0x4866f1([0x70,0x61,0x72,0x73,0x65])](_0x55051d(_0xaa3edf)):null;}function _0x55051d(_0x134430){return window[_0x4866f1([0x61,0x74,0x6f,0x62])](_0x134430[_0x4866f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4866f1([0x2b]))[_0x4866f1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4866f1([0x2f])));}function _0x5af9b6(_0xa54f2e){let _0x5f0a4d=0x1505;function _0x44ff84(_0x3056a6){for(let _0x4bd828=0x0;_0x4bd828<_0x3056a6[_0x4866f1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bd828++){const _0xec31fd=_0x3056a6[_0x4866f1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4bd828);_0x5f0a4d=(_0x5f0a4d<<0x5)+_0x5f0a4d+_0xec31fd,_0x5f0a4d&=_0x5f0a4d;}}function _0x1e7e23(_0x5951c0){Array[_0x4866f1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5951c0)?_0x5951c0[_0x4866f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e7e23):_0x5951c0&&typeof _0x5951c0==_0x4866f1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4866f1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5951c0)[_0x4866f1([0x73,0x6f,0x72,0x74])]()[_0x4866f1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x363cbc,_0x14be59])=>{_0x44ff84(_0x363cbc),_0x1e7e23(_0x14be59);}):_0x44ff84(window[_0x4866f1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5951c0));}return _0x1e7e23(_0xa54f2e),_0x5f0a4d>>>0x0;}function _0x4e2a0b(_0x5c69a9){return _0x5c69a9[_0x4866f1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4866f1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4866f1([0x30]));}function _0x38a4b6(_0x29decf){return _0x29decf[_0x4866f1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4866f1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4866f1([0x6a,0x6f,0x69,0x6e])]('');}function _0x144668(){}function _0x4866f1(_0x3f923b){return _0x3f923b['map'](_0x502c11=>String['fromCharCode'](_0x502c11))['join']('');}_0xb38464(await _0x4501fc());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x47b737=_0x2551e8=>function(_0x564c98,_0x432a43){const t=_0x564c98['t'],_0x1b2eae=_0x564c98['t'];switch(_0x432a43){case'AI\x20Assistant':return _0x1b2eae('AI\x20Assistant');case'Block\x20quote':return _0x1b2eae('Block\x20quote');case'Bulleted\x20List':return _0x1b2eae('Bulleted\x20List');case'Insert\x20code\x20block':return _0x1b2eae('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x1b2eae('Open\x20file\x20manager');case'Insert\x20image':return _0x1b2eae('Insert\x20image');case'Heading\x201':return _0x1b2eae('Heading\x201');case'Heading\x202':return _0x1b2eae('Heading\x202');case'Heading\x203':return _0x1b2eae('Heading\x203');case'Heading\x204':return _0x1b2eae('Heading\x204');case'Heading\x205':return _0x1b2eae('Heading\x205');case'Heading\x206':return _0x1b2eae('Heading\x206');case'Horizontal\x20line':return _0x1b2eae('Horizontal\x20line');case'Insert\x20HTML':return _0x1b2eae('Insert\x20HTML');case'Increase\x20indent':return _0x1b2eae('Increase\x20indent');case'Insert\x20table':return _0x1b2eae('Insert\x20table');case'Table\x20of\x20contents':return _0x1b2eae('Table\x20of\x20contents');case'Numbered\x20List':return _0x1b2eae('Numbered\x20List');case'Decrease\x20indent':return _0x1b2eae('Decrease\x20indent');case'Paragraph':return _0x1b2eae('Paragraph');case'To-do\x20List':return _0x1b2eae('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 _0x432a43;}}(this['editor']['locale'],_0x2551e8);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x399f63,'title':_0x47b737('AI\x20Assistant'),'description':_0x47b737('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x4edfc2=>{setTimeout(()=>_0x4edfc2['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0xa0eff2,'title':_0x47b737('Block\x20quote'),'description':_0x47b737('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0xcea090,'title':_0x47b737('Bulleted\x20List'),'description':_0x47b737('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x45be2f,'title':_0x47b737('Insert\x20code\x20block'),'description':_0x47b737('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x12a89a,'title':_0x47b737('Open\x20file\x20manager'),'description':_0x47b737('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x12a89a,'title':_0x47b737('Insert\x20image'),'description':_0x47b737('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x383ae8,'title':_0x47b737('Emoji'),'description':_0x47b737('Insert\x20an\x20emoji'),'execute':_0x18e235=>{setTimeout(()=>_0x18e235['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x2b7627,'title':_0x47b737('Heading\x201'),'description':_0x47b737('Create\x20a\x20heading\x20level\x201'),'execute':_0x575b6b=>{_0x575b6b['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x499723,'title':_0x47b737('Heading\x202'),'description':_0x47b737('Create\x20a\x20heading\x20level\x202'),'execute':_0x18074d=>{_0x18074d['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x343857,'title':_0x47b737('Heading\x203'),'description':_0x47b737('Create\x20a\x20heading\x20level\x203'),'execute':_0xae398=>{_0xae398['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x4ac54a,'title':_0x47b737('Heading\x204'),'description':_0x47b737('Create\x20a\x20heading\x20level\x204'),'execute':_0x3f8c5f=>{_0x3f8c5f['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x543c27,'title':_0x47b737('Heading\x205'),'description':_0x47b737('Create\x20a\x20heading\x20level\x205'),'execute':_0x5fca0d=>{_0x5fca0d['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x52197d,'title':_0x47b737('Heading\x206'),'description':_0x47b737('Create\x20a\x20heading\x20level\x206'),'execute':_0x3f5115=>{_0x3f5115['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x13ddbc,'title':_0x47b737('Horizontal\x20line'),'description':_0x47b737('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x17c88f,'title':_0x47b737('Insert\x20HTML'),'description':_0x47b737('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x4413bd,'title':_0x47b737('Increase\x20indent'),'description':_0x47b737('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x47b737('Insert\x20Mermaid\x20diagram'),'description':_0x47b737('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x21c784,'title':_0x47b737('Insert\x20table'),'description':_0x47b737('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0xd2eb06,'title':_0x47b737('Table\x20of\x20contents'),'description':_0x47b737('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x48bf1f,'title':_0x47b737('Numbered\x20List'),'description':_0x47b737('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0x26d561,'title':_0x47b737('Decrease\x20indent'),'description':_0x47b737('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x92f39f,'title':_0x47b737('Paragraph'),'description':_0x47b737('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x5e1ef1,'title':_0x47b737('To-do\x20List'),'description':_0x47b737('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x3a303a,'title':_0x47b737('Footnote'),'description':_0x47b737('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x51e882){return _0x51e882['isEnabled']?_0x51e882['isEnabled'](this['editor']):!_0x51e882['commandName']||this['editor']['commands']['get'](_0x51e882['commandName'])['isEnabled'];}['_proxyExecute'](_0x19ad88){if(_0x19ad88['execute'])_0x19ad88['execute'](this['editor']);else{if(!_0x19ad88['commandName'])throw new _0xd96575('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x19ad88});this['editor']['execute'](_0x19ad88['commandName']);}}}function S(_0x5d3cd1,_0xc323a5){return _0x5d3cd1['title']<_0xc323a5['title']?-0x1:_0x5d3cd1['title']>_0xc323a5['title']?0x1:0x0;}function O(_0x11a59b,_0x31ef43){return _0x31ef43+'-'+_0x11a59b['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0x40b347{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x100da4){const _0x356e1f=_0x100da4&&_0x100da4['toLowerCase']();let _0x1fe3d8=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0x1fe3d8=_0x1fe3d8['filter'](_0x272f88=>_0x272f88['isEnabled']()),_0x356e1f){const _0xb2b3f8=[],_0x1321ee=[],_0xdc1f44=[],_0x3e9cbf=[];for(const _0x127756 of _0x1fe3d8)_0x127756['id']['toLowerCase']()['includes'](_0x356e1f)?_0xb2b3f8['push'](_0x127756):_0x127756['title']['toLowerCase']()['includes'](_0x356e1f)?_0x1321ee['push'](_0x127756):_0x127756['aliases']&&_0x127756['aliases']['some'](_0x14ddb1=>_0x14ddb1['toLowerCase']()['includes'](_0x356e1f))?_0xdc1f44['push'](_0x127756):_0x127756['description']&&_0x127756['description']['toLowerCase']()['includes'](_0x356e1f)&&_0x3e9cbf['push'](_0x127756);_0x1fe3d8=_0xb2b3f8['concat'](_0x1321ee,_0xdc1f44,_0x3e9cbf);}return _0x1fe3d8;}}class SlashCommandButtonView extends _0x392890{constructor(_0xc97d5d,_0x4092f1){super(_0xc97d5d),this['textPartView']=this['_createTextPartView'](_0xc97d5d,_0x4092f1),void 0x0!==_0x4092f1['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x4092f1['isIconColorInherited']),this['set']({'icon':_0x4092f1['icon']||_0xcdb010,'withText':!0x0,'label':_0x4092f1['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x3f5caf,_0x35b218){const _0x3fec86=new _0x19cbbd(_0x3f5caf);return _0x3fec86['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x35b218['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x35b218['description']}]}]:[this['labelView']]}),_0x3fec86;}}class SlashCommandUI extends _0x40b347{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x50bd32){super(_0x50bd32),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x28d39b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x486fb3;for(const _0x5bae08 in _0x28d39b){const _0x28dccd=_0x5bae08,_0x1bb231=_0x28d39b[_0x28dccd];if('slashCommandLicenseKeyValid'==_0x1bb231||'slashCommandLicenseKeyInvalid'==_0x1bb231||'slashCommandLicenseKeyExpired'==_0x1bb231||'slashCommandLicenseKeyDomainLimit'==_0x1bb231||'slashCommandLicenseKeyNotAllowed'==_0x1bb231||'slashCommandLicenseKeyEvaluationLimit'==_0x1bb231||'slashCommandLicenseKeyUsageLimit'==_0x1bb231){delete _0x28d39b[_0x28dccd],_0x486fb3=_0x1bb231,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x486fb3&&_0x28d39b['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x486fb3&&_0x28d39b['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x486fb3&&_0x28d39b['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x486fb3&&_0x28d39b['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x486fb3&&_0x28d39b['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x486fb3&&_0x28d39b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x2dfd4d=this['editor'],_0x1daa96=this['editor']['plugins']['get']('SlashCommandEditing'),_0x7fb221=_0x2dfd4d['config']['get']('mention.feeds');_0x7fb221['push']({'marker':'/','feed':_0x218e06=>_0x1daa96['getMatchingCommands'](_0x218e06),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x2dfd4d['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x2dfd4d['config']['set']('mention.feeds',_0x7fb221);}['_overrideMentionExecuteListener'](){const _0x5ca986=this['editor'];_0x5ca986['commands']['get']('mention')['on']('execute',(_0x4ab3e5,_0x1d5d88)=>{const _0x5db0dc=_0x1d5d88[0x0],_0x1b9035=_0x5ca986['model'];'/'===_0x5db0dc['marker']&&_0x1b9035['change'](_0x1b1602=>{_0x1b1602['remove'](_0x5db0dc['range']),_0x5db0dc['mention']['execute'](),_0x4ab3e5['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x90c62f){const _0x1df2c1=this['editor']['locale'],_0x2b61c0=new SlashCommandButtonView(_0x1df2c1,_0x90c62f);return _0x2b61c0['render'](),_0x2b61c0['element'];}}class SlashCommand extends _0x40b347{static get['requires'](){return[_0x2791f2,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 _0x5edba9}from'@ckeditor/ckeditor5-core/dist/index.js';import{Mention as _0x4b6d8b}from'@ckeditor/ckeditor5-mention/dist/index.js';import{CKEditorError as _0x338791,uid as _0x53723a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconRobotPencil as _0x1522b3,IconQuote as _0x316337,IconBulletedList as _0x5bd8c2,IconCodeBlock as _0x57f724,IconBrowseFiles as _0x5dd07c,IconEmoji as _0x101598,IconHeading1 as _0x470cd8,IconHeading2 as _0x21286f,IconHeading3 as _0x2e11e9,IconHeading4 as _0x1e035a,IconHeading5 as _0x34e93c,IconHeading6 as _0x26e55b,IconHorizontalLine as _0x2e5011,IconHtml as _0x1681bc,IconIndent as _0x2d5ac4,IconTable as _0x33bcd8,IconTableOfContents as _0x4897da,IconNumberedList as _0x3c5dde,IconOutdent as _0xe7e1c7,IconParagraph as _0x565579,IconTodoList as _0x4b1ddd,IconFootnote as _0x378f23,IconPlay as _0x31877e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3b8baa,View as _0x36d8a3}from'@ckeditor/ckeditor5-ui/dist/index.js';class SlashCommandConfig extends _0x5edba9{static get['pluginName'](){return'SlashCommandConfig';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20e66f){super(_0x20e66f),this['_allowedCommands']=null;}['afterInit'](){const _0x4dddac=this['editor']['config']['get']('slashCommand.removeCommands')||[],_0xf35fe2=function(_0x4d4b77){let _0xee72a3=['heading4','heading5','heading6'];if(_0x4d4b77){const _0x5b83ac=_0x4d4b77['map'](_0x2a50a0=>_0x2a50a0['model']);_0xee72a3=['heading1','heading2','heading3','heading4','heading5','heading6']['filter'](_0x17989f=>!_0x5b83ac['includes'](_0x17989f));}return _0xee72a3;}(this['editor']['config']['get']('heading.options'));let _0x14a7a5=this['getDefaultCommands']()['filter'](_0x29cecd=>!_0xf35fe2['includes'](_0x29cecd['id']))['filter'](_0x21f485=>!_0x4dddac['includes'](_0x21f485['commandName']));const _0x1a03b4=this['editor']['config']['get']('slashCommand.extraCommands');_0x1a03b4&&_0x1a03b4['length']&&(_0x14a7a5=_0x14a7a5['concat'](_0x1a03b4));const _0x3baa84=this['editor']['config']['get']('template.definitions');_0x3baa84&&_0x3baa84['length']&&(_0x14a7a5=_0x14a7a5['concat'](function(_0x591c4c){return _0x591c4c['map'](_0x4f53ef=>{const {title:_0x1ac53a,icon:_0x12b30e,description:_0x33fa36,data:_0x4ac0e3}=_0x4f53ef,_0x40e99b={'id':O(_0x1ac53a,'template'),'commandName':'insertTemplate','execute':_0x230234=>{_0x230234['execute']('insertTemplate',_0x4ac0e3);},'description':_0x33fa36,'icon':_0x12b30e,'title':_0x1ac53a};return _0x12b30e&&(_0x40e99b['isIconColorInherited']=!0x1),_0x40e99b;});}(_0x3baa84)));const _0x416f30=this['editor']['config']['get']('style.definitions');_0x416f30&&_0x416f30['length']&&(_0x14a7a5=_0x14a7a5['concat'](function(_0x882cde){return _0x882cde['map'](_0x52c113=>({'id':O(_0x52c113['name'],'style'),'commandName':'style','execute':_0x5cea0d=>{_0x5cea0d['execute']('style',{'styleName':_0x52c113['name']});},'isEnabled':_0x220f33=>{const _0x218be4=_0x220f33['commands']['get']('style');return _0x218be4['isEnabled']&&_0x218be4['enabledStyles']['includes'](_0x52c113['name']);},'title':_0x52c113['name']}));}(_0x416f30)));const _0x381393=_0x14a7a5['filter'](_0x7e63b3=>!_0x7e63b3['commandName']||void 0x0!==this['editor']['commands']['get'](_0x7e63b3['commandName'])),_0x1161d9=[];for(const _0x533261 of _0x381393)_0x1161d9['push']({'id':_0x533261['id'],'commandName':_0x533261['commandName'],'title':'function'==typeof _0x533261['title']?_0x533261['title'](this['editor']):_0x533261['title'],'description':_0x533261['description'],'icon':_0x533261['icon'],'isIconColorInherited':_0x533261['isIconColorInherited'],'aliases':_0x533261['aliases'],'isEnabled':()=>this['_proxyIsEnabled'](_0x533261),'execute':()=>this['_proxyExecute'](_0x533261)});this['_allowedCommands']=_0x1161d9['sort'](S),async function(_0x447f5a){const _0x2bbe5c=_0x3f9e5a([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]),_0x3fac59=0x305505ed,_0x5d5831=0x30528e55^_0x3fac59,_0x35b52c=window[_0x3f9e5a([0x44,0x61,0x74,0x65])][_0x3f9e5a([0x6e,0x6f,0x77])](),_0x2104cb=_0x447f5a[_0x3f9e5a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x361298=new window[(_0x3f9e5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfbe2ae=>{_0x2104cb[_0x3f9e5a([0x6f,0x6e,0x63,0x65])](_0x3f9e5a([0x72,0x65,0x61,0x64,0x79]),_0xfbe2ae);}),_0x44cfcd={[_0x3f9e5a([0x6b,0x74,0x79])]:_0x3f9e5a([0x45,0x43]),[_0x3f9e5a([0x75,0x73,0x65])]:_0x3f9e5a([0x73,0x69,0x67]),[_0x3f9e5a([0x63,0x72,0x76])]:_0x3f9e5a([0x50,0x2d,0x32,0x35,0x36]),[_0x3f9e5a([0x78])]:_0x3f9e5a([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]),[_0x3f9e5a([0x79])]:_0x3f9e5a([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]),[_0x3f9e5a([0x61,0x6c,0x67])]:_0x3f9e5a([0x45,0x53,0x32,0x35,0x36])},_0x39e12e=_0x2104cb[_0x3f9e5a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3f9e5a([0x67,0x65,0x74])](_0x3f9e5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c5e84(){let _0x3ebe77,_0xec6785=null,_0xc112a1=null;try{if(_0x39e12e==_0x3f9e5a([0x47,0x50,0x4c]))return _0x3f9e5a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3ebe77=_0x247bb1(),!_0x3ebe77)return _0x3f9e5a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3ebe77[_0x3f9e5a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc112a1=_0x24bd3a(_0x3ebe77[_0x3f9e5a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3ebe77[_0x3f9e5a([0x6a,0x74,0x69])])),await _0x39333e()?_0x28889e()?_0x57923d()?_0x3f9e5a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x176293()?(_0x3ebe77[_0x3f9e5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f9e5a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xec6785=_0x134189(_0x3f9e5a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x50e306()):_0x3f9e5a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3f9e5a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3f9e5a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3f9e5a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x57923d(){const _0x14cfe3=[_0x3f9e5a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3f9e5a([0x74,0x72,0x69,0x61,0x6c])][_0x3f9e5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ebe77[_0x3f9e5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x35b52c/0x3e8:0xe10*_0x5d5831;return _0x3ebe77[_0x3f9e5a([0x65,0x78,0x70])]<_0x14cfe3;}function _0x28889e(){const _0xc1902=_0x3ebe77[_0x3f9e5a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc1902&&(!!_0xc1902[_0x3f9e5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f9e5a([0x2a]))||(!!_0xc1902[_0x3f9e5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f9e5a([0x53,0x43]))||(!!_0xc1902[_0x3f9e5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f9e5a([0x50,0x50]))||!(!_0xc1902[_0x3f9e5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f9e5a([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x376a17()))));}function _0x176293(){const _0x45cfeb=_0x3ebe77[_0x3f9e5a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x45cfeb||0x0==_0x45cfeb[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa0827a}=new URL(window[_0x3f9e5a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x45cfeb[_0x3f9e5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa0827a))return!0x0;const _0x5c4935=_0xa0827a[_0x3f9e5a([0x73,0x70,0x6c,0x69,0x74])](_0x3f9e5a([0x2e]));return _0x45cfeb[_0x3f9e5a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x348fde=>_0x348fde[_0x3f9e5a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f9e5a([0x2a])))[_0x3f9e5a([0x6d,0x61,0x70])](_0x5abe17=>_0x5abe17[_0x3f9e5a([0x73,0x70,0x6c,0x69,0x74])](_0x3f9e5a([0x2e])))[_0x3f9e5a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58e999=>_0x58e999[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5c4935[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3f9e5a([0x6d,0x61,0x70])](_0x4bbb89=>Array(_0x5c4935[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4bbb89[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3f9e5a([0x66,0x69,0x6c,0x6c])](_0x4bbb89[0x0]===_0x3f9e5a([0x2a])?_0x3f9e5a([0x2a]):'')[_0x3f9e5a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4bbb89))[_0x3f9e5a([0x73,0x6f,0x6d,0x65])](_0x2bf97d=>_0x5c4935[_0x3f9e5a([0x65,0x76,0x65,0x72,0x79])]((_0x294b18,_0xfe7368)=>_0x2bf97d[_0xfe7368]===_0x294b18||_0x2bf97d[_0xfe7368]===_0x3f9e5a([0x2a])));}function _0x50e306(){return _0xec6785&&_0xc112a1?new window[(_0x3f9e5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b45ca,_0x11c2e7)=>{_0xec6785[_0x3f9e5a([0x74,0x68,0x65,0x6e])](_0x1b45ca,_0x11c2e7),_0xc112a1[_0x3f9e5a([0x74,0x68,0x65,0x6e])](_0x2f36a6=>{_0x2f36a6!=_0x3f9e5a([0x56,0x61,0x6c,0x69,0x64])&&_0x1b45ca(_0x2f36a6);},_0x11c2e7);}):_0xec6785||_0xc112a1||_0x3f9e5a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x24bd3a(_0x43f8fb,_0x294abf){return new window[(_0x3f9e5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x514eb2=>{if(_0x10ccc0())return _0x514eb2(_0x3f9e5a([0x56,0x61,0x6c,0x69,0x64]));_0x4213ee(),_0x2104cb[_0x3f9e5a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3f9e5a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd16ee0=!0x1;const _0x424459=_0x53723a();function _0x4b9056(_0x3c6b7f){return!!_0x3c6b7f&&(typeof _0x3c6b7f===_0x3f9e5a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c6b7f===_0x3f9e5a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c6b7f[_0x3f9e5a([0x74,0x68,0x65,0x6e])]===_0x3f9e5a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c6b7f[_0x3f9e5a([0x63,0x61,0x74,0x63,0x68])]===_0x3f9e5a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1efe16(_0x4dc204){_0x42fe0b(_0x4dc204)[_0x3f9e5a([0x74,0x68,0x65,0x6e])](_0x2aa039=>{if(!_0x2aa039||_0x2aa039[_0x3f9e5a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3f9e5a([0x6f,0x6b]))return _0x3f9e5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x453d8c(_0x9f84be(_0x424459+_0x294abf))!=_0x2aa039[_0x3f9e5a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3f9e5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3f9e5a([0x56,0x61,0x6c,0x69,0x64]);})[_0x3f9e5a([0x74,0x68,0x65,0x6e])](_0x4d19a0=>(_0x36a3a8(),_0x4d19a0),()=>{const _0x148691=_0x386e51();return null==_0x148691?(_0x36a3a8(),_0x3f9e5a([0x56,0x61,0x6c,0x69,0x64])):_0x3f9e5a(_0x35b52c-_0x148691>(0x145981ed^_0x3fac59)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3f9e5a([0x74,0x68,0x65,0x6e])](_0x514eb2)[_0x3f9e5a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x514eb2(_0x3f9e5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b3fb7=0x3063eb6d^_0x3fac59;function _0x36a3a8(){const _0x32e244=_0x3f9e5a([0x6c,0x6c,0x63,0x74,0x2d])+_0x453d8c(_0x9f84be(_0x43f8fb)),_0x21b8d8=_0x4bbc39(_0x453d8c(window[_0x3f9e5a([0x4d,0x61,0x74,0x68])][_0x3f9e5a([0x63,0x65,0x69,0x6c])](_0x35b52c/_0x3b3fb7)));window[_0x3f9e5a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f9e5a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32e244,_0x21b8d8);}function _0x386e51(){const _0xa7926b=_0x3f9e5a([0x6c,0x6c,0x63,0x74,0x2d])+_0x453d8c(_0x9f84be(_0x43f8fb)),_0x143828=window[_0x3f9e5a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f9e5a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa7926b);return _0x143828?window[_0x3f9e5a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bbc39(_0x143828),0x10)*_0x3b3fb7:null;}function _0x42fe0b(_0x4cdeaf){return new window[(_0x3f9e5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x581f9e,_0x89a4d9)=>{_0x4cdeaf[_0x3f9e5a([0x74,0x68,0x65,0x6e])](_0x581f9e,_0x89a4d9),window[_0x3f9e5a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x89a4d9,0x3054d12d^_0x3fac59);});}}_0x2104cb[_0x3f9e5a([0x6f,0x6e])](_0x3f9e5a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x35fb4b,_0x202884)=>{if(_0x202884[0x0]!=_0x43f8fb)return _0x514eb2(_0x3f9e5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x202884[0x1]={..._0x202884[0x1],[_0x3f9e5a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x424459};},{[_0x3f9e5a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f9e5a([0x68,0x69,0x67,0x68])}),_0x2104cb[_0x3f9e5a([0x6f,0x6e])](_0x3f9e5a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2119cd=>{_0x4b9056(_0x2119cd[_0x3f9e5a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd16ee0=!0x0,_0x1efe16(_0x2119cd[_0x3f9e5a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3f9e5a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f9e5a([0x6c,0x6f,0x77])}),_0x361298[_0x3f9e5a([0x74,0x68,0x65,0x6e])](()=>{_0xd16ee0||_0x514eb2(_0x3f9e5a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10ccc0(){return _0x2104cb[_0x3f9e5a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f9e5a([0x76,0x69,0x65,0x77])][_0x3f9e5a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3f9e5a([0x61,0x75,0x74,0x6f]);}function _0x4213ee(){_0x2104cb[_0x3f9e5a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f9e5a([0x76,0x69,0x65,0x77])][_0x3f9e5a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f9e5a([0x61,0x75,0x74,0x6f]);}}function _0x134189(_0x185129){const _0x516fe8=[new window[(_0x3f9e5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb59cf4=>setTimeout(_0xb59cf4,0x305c3b21^_0x3fac59)),_0x361298[_0x3f9e5a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3f9e5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x279e5f=>{let _0x467c05=0x0;_0x2104cb[_0x3f9e5a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f9e5a([0x6f,0x6e])](_0x3f9e5a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x43eb7b,_0x201d90)=>{_0x201d90[0x0][_0x3f9e5a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x467c05++,_0x467c05==(0x30550005^_0x3fac59)&&(_0x279e5f(),_0x43eb7b[_0x3f9e5a([0x6f,0x66,0x66])]());});}))];return window[_0x3f9e5a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f9e5a([0x72,0x61,0x63,0x65])](_0x516fe8)[_0x3f9e5a([0x74,0x68,0x65,0x6e])](()=>_0x185129);}async function _0x52c430(){await _0x361298,_0x2104cb[_0x3f9e5a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f9e5a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49325a,_0x2104cb[_0x3f9e5a([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f9e5a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49325a,_0x2104cb[_0x3f9e5a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3f9e5a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x376a17(){return window[_0x3f9e5a([0x67,0x6c,0x6f,0x62])]&&window[_0x3f9e5a([0x67,0x6c,0x6f,0x62])][_0x3f9e5a([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x5f28dc(_0x51d825){const _0x55f3c5=_0x4775a7();_0x2104cb[_0x55f3c5]=_0x3f9e5a([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x51d825,_0x51d825!=_0x3f9e5a([0x56,0x61,0x6c,0x69,0x64])&&_0x52c430();}function _0x4775a7(){const _0x59b7f2=window[_0x3f9e5a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3f9e5a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3f9e5a([0x6e,0x6f,0x77])]())[_0x3f9e5a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3f9e5a([0x2e]),'');let _0x7c9964=_0x3f9e5a([0x75]);for(let _0x3f9973=0x0;_0x3f9973<_0x59b7f2[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f9973+=0x2){let _0x4f020b=window[_0x3f9e5a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59b7f2[_0x3f9e5a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f9973,_0x3f9973+0x2));_0x4f020b>=_0x2bbe5c[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f020b-=_0x2bbe5c[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x7c9964+=_0x2bbe5c[_0x4f020b];}return _0x7c9964;}function _0x247bb1(){const _0x443352=_0x39e12e[_0x3f9e5a([0x73,0x70,0x6c,0x69,0x74])](_0x3f9e5a([0x2e]));if(0x3!=_0x443352[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x27c0ea(_0x443352[0x1]);function _0x27c0ea(_0x5ae804){const _0x214d54=_0xbb7dff(_0x5ae804);return _0x214d54&&_0x5a40e8()?_0x214d54:null;function _0x5a40e8(){const _0x5d82d6=_0x214d54[_0x3f9e5a([0x6a,0x74,0x69])],_0x42e064=window[_0x3f9e5a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d82d6[_0x3f9e5a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d82d6[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x528071={..._0x214d54,[_0x3f9e5a([0x6a,0x74,0x69])]:_0x5d82d6[_0x3f9e5a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5d82d6[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x528071[_0x3f9e5a([0x76,0x63])],_0x9f84be(_0x528071)==_0x42e064;}}}async function _0x39333e(){let _0x3bedf4=!0x0;try{const _0x45368a=_0x39e12e[_0x3f9e5a([0x73,0x70,0x6c,0x69,0x74])](_0x3f9e5a([0x2e])),[_0x4b97d5,_0x314abb,_0xd1969d]=_0x45368a;return _0x38155a(_0x4b97d5),await _0x5cf493(_0x4b97d5,_0x314abb,_0xd1969d),_0x3bedf4;}catch{return!0x1;}function _0x38155a(_0x22cd02){const _0x33c8eb=_0xbb7dff(_0x22cd02);_0x33c8eb&&_0x33c8eb[_0x3f9e5a([0x61,0x6c,0x67])]==_0x3f9e5a([0x45,0x53,0x32,0x35,0x36])||(_0x3bedf4=!0x1);}async function _0x5cf493(_0xf0c89a,_0x3e73ad,_0x3bfb3d){const _0x442225=window[_0x3f9e5a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3f9e5a([0x66,0x72,0x6f,0x6d])](_0x1097a3(_0x3bfb3d),_0x5f5175=>_0x5f5175[_0x3f9e5a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52c9bf=new window[(_0x3f9e5a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3f9e5a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf0c89a+_0x3f9e5a([0x2e])+_0x3e73ad),_0x55a960=window[_0x3f9e5a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3f9e5a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55a960)return;const _0x4f3f8f=await _0x55a960[_0x3f9e5a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3f9e5a([0x6a,0x77,0x6b]),_0x44cfcd,{[_0x3f9e5a([0x6e,0x61,0x6d,0x65])]:_0x3f9e5a([0x45,0x43,0x44,0x53,0x41]),[_0x3f9e5a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3f9e5a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3f9e5a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55a960[_0x3f9e5a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3f9e5a([0x6e,0x61,0x6d,0x65])]:_0x3f9e5a([0x45,0x43,0x44,0x53,0x41]),[_0x3f9e5a([0x68,0x61,0x73,0x68])]:{[_0x3f9e5a([0x6e,0x61,0x6d,0x65])]:_0x3f9e5a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4f3f8f,_0x442225,_0x52c9bf)||(_0x3bedf4=!0x1);}}function _0xbb7dff(_0x1d0e2d){return _0x1d0e2d[_0x3f9e5a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3f9e5a([0x65,0x79]))?JSON[_0x3f9e5a([0x70,0x61,0x72,0x73,0x65])](_0x1097a3(_0x1d0e2d)):null;}function _0x1097a3(_0x9bb200){return window[_0x3f9e5a([0x61,0x74,0x6f,0x62])](_0x9bb200[_0x3f9e5a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3f9e5a([0x2b]))[_0x3f9e5a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3f9e5a([0x2f])));}function _0x9f84be(_0x3ef969){let _0x11e165=0x1505;function _0x481a6f(_0x5627ec){for(let _0x1d736f=0x0;_0x1d736f<_0x5627ec[_0x3f9e5a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d736f++){const _0x2db8fa=_0x5627ec[_0x3f9e5a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1d736f);_0x11e165=(_0x11e165<<0x5)+_0x11e165+_0x2db8fa,_0x11e165&=_0x11e165;}}function _0x56a6e7(_0xc49f1e){Array[_0x3f9e5a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc49f1e)?_0xc49f1e[_0x3f9e5a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x56a6e7):_0xc49f1e&&typeof _0xc49f1e==_0x3f9e5a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3f9e5a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc49f1e)[_0x3f9e5a([0x73,0x6f,0x72,0x74])]()[_0x3f9e5a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x136789,_0x2d7862])=>{_0x481a6f(_0x136789),_0x56a6e7(_0x2d7862);}):_0x481a6f(window[_0x3f9e5a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc49f1e));}return _0x56a6e7(_0x3ef969),_0x11e165>>>0x0;}function _0x453d8c(_0x41e709){return _0x41e709[_0x3f9e5a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3f9e5a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3f9e5a([0x30]));}function _0x4bbc39(_0xcc03d){return _0xcc03d[_0x3f9e5a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3f9e5a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3f9e5a([0x6a,0x6f,0x69,0x6e])]('');}function _0x49325a(){}function _0x3f9e5a(_0x1cb80e){return _0x1cb80e['map'](_0x40ef34=>String['fromCharCode'](_0x40ef34))['join']('');}_0x5f28dc(await _0x3c5e84());}(this);}['getAllowedCommands'](){return this['_allowedCommands'];}['getDefaultCommands'](){const _0x3a7fc4=_0x241413=>function(_0xf31a02,_0x3010a0){const t=_0xf31a02['t'],_0x51565d=_0xf31a02['t'];switch(_0x3010a0){case'AI\x20Assistant':return _0x51565d('AI\x20Assistant');case'Block\x20quote':return _0x51565d('Block\x20quote');case'Bulleted\x20List':return _0x51565d('Bulleted\x20List');case'Insert\x20code\x20block':return _0x51565d('Insert\x20code\x20block');case'Open\x20file\x20manager':return _0x51565d('Open\x20file\x20manager');case'Insert\x20image':return _0x51565d('Insert\x20image');case'Heading\x201':return _0x51565d('Heading\x201');case'Heading\x202':return _0x51565d('Heading\x202');case'Heading\x203':return _0x51565d('Heading\x203');case'Heading\x204':return _0x51565d('Heading\x204');case'Heading\x205':return _0x51565d('Heading\x205');case'Heading\x206':return _0x51565d('Heading\x206');case'Horizontal\x20line':return _0x51565d('Horizontal\x20line');case'Insert\x20HTML':return _0x51565d('Insert\x20HTML');case'Increase\x20indent':return _0x51565d('Increase\x20indent');case'Insert\x20table':return _0x51565d('Insert\x20table');case'Table\x20of\x20contents':return _0x51565d('Table\x20of\x20contents');case'Numbered\x20List':return _0x51565d('Numbered\x20List');case'Decrease\x20indent':return _0x51565d('Decrease\x20indent');case'Paragraph':return _0x51565d('Paragraph');case'To-do\x20List':return _0x51565d('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 _0x3010a0;}}(this['editor']['locale'],_0x241413);return[{'id':'aiAssistant','commandName':'showAIAssistant','icon':_0x1522b3,'title':_0x3a7fc4('AI\x20Assistant'),'description':_0x3a7fc4('Open\x20the\x20AI\x20Assistant\x20to\x20generate\x20content'),'execute':_0x499c77=>{setTimeout(()=>_0x499c77['execute']('showAIAssistant'));}},{'id':'blockQuote','commandName':'blockQuote','icon':_0x316337,'title':_0x3a7fc4('Block\x20quote'),'description':_0x3a7fc4('Create\x20a\x20block\x20quote')},{'id':'bulletedList','commandName':'bulletedList','icon':_0x5bd8c2,'title':_0x3a7fc4('Bulleted\x20List'),'description':_0x3a7fc4('Create\x20a\x20bulleted\x20list')},{'id':'codeBlock','commandName':'codeBlock','icon':_0x57f724,'title':_0x3a7fc4('Insert\x20code\x20block'),'description':_0x3a7fc4('Create\x20a\x20code\x20block')},{'id':'ckbox','commandName':'ckbox','icon':_0x5dd07c,'title':_0x3a7fc4('Open\x20file\x20manager'),'description':_0x3a7fc4('Open\x20file\x20manager\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckfinder','filemanager','upload']},{'id':'ckfinder','commandName':'ckfinder','icon':_0x5dd07c,'title':_0x3a7fc4('Insert\x20image'),'description':_0x3a7fc4('Open\x20file\x20browser\x20to\x20insert\x20an\x20image\x20or\x20a\x20file'),'aliases':['ckbox','filemanager','upload']},{'id':'emoji','commandName':'emoji','icon':_0x101598,'title':_0x3a7fc4('Emoji'),'description':_0x3a7fc4('Insert\x20an\x20emoji'),'execute':_0x2632b9=>{setTimeout(()=>_0x2632b9['execute']('emoji'));}},{'id':'heading1','commandName':'heading','icon':_0x470cd8,'title':_0x3a7fc4('Heading\x201'),'description':_0x3a7fc4('Create\x20a\x20heading\x20level\x201'),'execute':_0x26c005=>{_0x26c005['execute']('heading',{'value':'heading1'});}},{'id':'heading2','commandName':'heading','icon':_0x21286f,'title':_0x3a7fc4('Heading\x202'),'description':_0x3a7fc4('Create\x20a\x20heading\x20level\x202'),'execute':_0x33de07=>{_0x33de07['execute']('heading',{'value':'heading2'});}},{'id':'heading3','commandName':'heading','icon':_0x2e11e9,'title':_0x3a7fc4('Heading\x203'),'description':_0x3a7fc4('Create\x20a\x20heading\x20level\x203'),'execute':_0x10a8e5=>{_0x10a8e5['execute']('heading',{'value':'heading3'});}},{'id':'heading4','commandName':'heading','icon':_0x1e035a,'title':_0x3a7fc4('Heading\x204'),'description':_0x3a7fc4('Create\x20a\x20heading\x20level\x204'),'execute':_0x3a433e=>{_0x3a433e['execute']('heading',{'value':'heading4'});}},{'id':'heading5','commandName':'heading','icon':_0x34e93c,'title':_0x3a7fc4('Heading\x205'),'description':_0x3a7fc4('Create\x20a\x20heading\x20level\x205'),'execute':_0x528e05=>{_0x528e05['execute']('heading',{'value':'heading5'});}},{'id':'heading6','commandName':'heading','icon':_0x26e55b,'title':_0x3a7fc4('Heading\x206'),'description':_0x3a7fc4('Create\x20a\x20heading\x20level\x206'),'execute':_0xf85f61=>{_0xf85f61['execute']('heading',{'value':'heading6'});}},{'id':'horizontalLine','commandName':'horizontalLine','icon':_0x2e5011,'title':_0x3a7fc4('Horizontal\x20line'),'description':_0x3a7fc4('Insert\x20a\x20horizontal\x20line')},{'id':'htmlEmbed','commandName':'htmlEmbed','icon':_0x1681bc,'title':_0x3a7fc4('Insert\x20HTML'),'description':_0x3a7fc4('Insert\x20an\x20HTML\x20snippet')},{'id':'indent','commandName':'indent','icon':_0x2d5ac4,'title':_0x3a7fc4('Increase\x20indent'),'description':_0x3a7fc4('Increase\x20the\x20indentation')},{'id':'insertMermaidCommand','commandName':'insertMermaidCommand','title':_0x3a7fc4('Insert\x20Mermaid\x20diagram'),'description':_0x3a7fc4('Insert\x20the\x20Mermaid\x20diagram')},{'id':'insertTable','commandName':'insertTable','icon':_0x33bcd8,'title':_0x3a7fc4('Insert\x20table'),'description':_0x3a7fc4('Create\x20a\x20table')},{'id':'insertTableOfContents','commandName':'insertTableOfContents','icon':_0x4897da,'title':_0x3a7fc4('Table\x20of\x20contents'),'description':_0x3a7fc4('Insert\x20table\x20of\x20contents'),'aliases':['toc']},{'id':'numberedList','commandName':'numberedList','icon':_0x3c5dde,'title':_0x3a7fc4('Numbered\x20List'),'description':_0x3a7fc4('Create\x20a\x20numbered\x20list')},{'id':'outdent','commandName':'outdent','icon':_0xe7e1c7,'title':_0x3a7fc4('Decrease\x20indent'),'description':_0x3a7fc4('Decrease\x20the\x20indentation')},{'id':'paragraph','commandName':'paragraph','icon':_0x565579,'title':_0x3a7fc4('Paragraph'),'description':_0x3a7fc4('Insert\x20a\x20paragraph')},{'id':'todoList','commandName':'todoList','icon':_0x4b1ddd,'title':_0x3a7fc4('To-do\x20List'),'description':_0x3a7fc4('Create\x20a\x20to-do\x20list')},{'id':'footnote','commandName':'insertFootnote','icon':_0x378f23,'title':_0x3a7fc4('Footnote'),'description':_0x3a7fc4('Insert\x20a\x20footnote')}];}['_proxyIsEnabled'](_0x16d6d2){return _0x16d6d2['isEnabled']?_0x16d6d2['isEnabled'](this['editor']):!_0x16d6d2['commandName']||this['editor']['commands']['get'](_0x16d6d2['commandName'])['isEnabled'];}['_proxyExecute'](_0x50036e){if(_0x50036e['execute'])_0x50036e['execute'](this['editor']);else{if(!_0x50036e['commandName'])throw new _0x338791('slash-command-execute-missing',this['editor'],{'commandDefinition':_0x50036e});this['editor']['execute'](_0x50036e['commandName']);}}}function S(_0x3caf48,_0x3a0624){return _0x3caf48['title']<_0x3a0624['title']?-0x1:_0x3caf48['title']>_0x3a0624['title']?0x1:0x0;}function O(_0x33708c,_0x2b0e3b){return _0x2b0e3b+'-'+_0x33708c['toLowerCase']()['split']('\x20')['join']('-');}class SlashCommandEditing extends _0x5edba9{static get['pluginName'](){return'SlashCommandEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[SlashCommandConfig];}['getMatchingCommands'](_0x2ef410){const _0x45a05a=_0x2ef410&&_0x2ef410['toLowerCase']();let _0xbd4cb4=this['editor']['plugins']['get']('SlashCommandConfig')['getAllowedCommands']();if(_0xbd4cb4=_0xbd4cb4['filter'](_0x16bec0=>_0x16bec0['isEnabled']()),_0x45a05a){const _0x9f805b=[],_0x36d282=[],_0x4c842c=[],_0x35c946=[];for(const _0x36e0a7 of _0xbd4cb4)_0x36e0a7['id']['toLowerCase']()['includes'](_0x45a05a)?_0x9f805b['push'](_0x36e0a7):_0x36e0a7['title']['toLowerCase']()['includes'](_0x45a05a)?_0x36d282['push'](_0x36e0a7):_0x36e0a7['aliases']&&_0x36e0a7['aliases']['some'](_0x4314a4=>_0x4314a4['toLowerCase']()['includes'](_0x45a05a))?_0x4c842c['push'](_0x36e0a7):_0x36e0a7['description']&&_0x36e0a7['description']['toLowerCase']()['includes'](_0x45a05a)&&_0x35c946['push'](_0x36e0a7);_0xbd4cb4=_0x9f805b['concat'](_0x36d282,_0x4c842c,_0x35c946);}return _0xbd4cb4;}}class SlashCommandButtonView extends _0x3b8baa{constructor(_0x322499,_0x404249){super(_0x322499),this['textPartView']=this['_createTextPartView'](_0x322499,_0x404249),void 0x0!==_0x404249['isIconColorInherited']&&(this['iconView']['isColorInherited']=_0x404249['isIconColorInherited']),this['set']({'icon':_0x404249['icon']||_0x31877e,'withText':!0x0,'label':_0x404249['title'],'class':'ck-slash-command-button'});}['render'](){super['render'](),this['children']['add'](this['textPartView']);}['_createTextPartView'](_0x1795cc,_0x24762a){const _0x5c611b=new _0x36d8a3(_0x1795cc);return _0x5c611b['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-slash-command-button__text-part']},'children':_0x24762a['description']?[this['labelView'],{'tag':'span','attributes':{'class':['ck','ck-slash-command-button__description']},'children':[{'text':_0x24762a['description']}]}]:[this['labelView']]}),_0x5c611b;}}class SlashCommandUI extends _0x5edba9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'SlashCommandUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18cba0){super(_0x18cba0),this['_setupMentionConfiguration']();}['init'](){this['editor']['once']('ready',this['_overrideMentionExecuteListener']['bind'](this)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x42b30a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x733ea7;for(const _0x2c3697 in _0x42b30a){const _0x3e6f58=_0x2c3697,_0x3e59df=_0x42b30a[_0x3e6f58];if('slashCommandLicenseKeyValid'==_0x3e59df||'slashCommandLicenseKeyInvalid'==_0x3e59df||'slashCommandLicenseKeyExpired'==_0x3e59df||'slashCommandLicenseKeyDomainLimit'==_0x3e59df||'slashCommandLicenseKeyNotAllowed'==_0x3e59df||'slashCommandLicenseKeyEvaluationLimit'==_0x3e59df||'slashCommandLicenseKeyUsageLimit'==_0x3e59df){delete _0x42b30a[_0x3e6f58],_0x733ea7=_0x3e59df,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'slashCommandLicenseKeyInvalid'==_0x733ea7&&_0x42b30a['_showLicenseError']('invalid'),'slashCommandLicenseKeyExpired'==_0x733ea7&&_0x42b30a['_showLicenseError']('expired'),'slashCommandLicenseKeyDomainLimit'==_0x733ea7&&_0x42b30a['_showLicenseError']('domainLimit'),'slashCommandLicenseKeyNotAllowed'==_0x733ea7&&_0x42b30a['_showLicenseError']('featureNotAllowed','SlashCommand'),'slashCommandLicenseKeyEvaluationLimit'==_0x733ea7&&_0x42b30a['_showLicenseError']('evaluationLimit'),'slashCommandLicenseKeyUsageLimit'==_0x733ea7&&_0x42b30a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_setupMentionConfiguration'](){const _0x3b7ad3=this['editor'],_0x1e53a7=this['editor']['plugins']['get']('SlashCommandEditing'),_0x5db959=_0x3b7ad3['config']['get']('mention.feeds');_0x5db959['push']({'marker':'/','feed':_0x2543f3=>_0x1e53a7['getMatchingCommands'](_0x2543f3),'itemRenderer':this['_customItemRenderer']['bind'](this),'dropdownLimit':_0x3b7ad3['config']['get']('slashCommand.dropdownLimit')||0x1/0x0}),_0x3b7ad3['config']['set']('mention.feeds',_0x5db959);}['_overrideMentionExecuteListener'](){const _0x5dd616=this['editor'];_0x5dd616['commands']['get']('mention')['on']('execute',(_0x70bc9b,_0x384e35)=>{const _0x3d8cac=_0x384e35[0x0],_0x53cdb7=_0x5dd616['model'];'/'===_0x3d8cac['marker']&&_0x53cdb7['change'](_0x14f9d9=>{_0x14f9d9['remove'](_0x3d8cac['range']),_0x3d8cac['mention']['execute'](),_0x70bc9b['stop']();});},{'priority':'high'});}['_customItemRenderer'](_0x57b100){const _0x4a2e1f=this['editor']['locale'],_0x16112f=new SlashCommandButtonView(_0x4a2e1f,_0x57b100);return _0x16112f['render'](),_0x16112f['element'];}}class SlashCommand extends _0x5edba9{static get['requires'](){return[_0x4b6d8b,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.2.0-alpha.3",
3
+ "version": "48.2.0-alpha.5",
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.2.0-alpha.3",
25
- "@ckeditor/ckeditor5-heading": "48.2.0-alpha.3",
26
- "@ckeditor/ckeditor5-icons": "48.2.0-alpha.3",
27
- "@ckeditor/ckeditor5-mention": "48.2.0-alpha.3",
28
- "@ckeditor/ckeditor5-style": "48.2.0-alpha.3",
29
- "@ckeditor/ckeditor5-template": "48.2.0-alpha.3",
30
- "@ckeditor/ckeditor5-ui": "48.2.0-alpha.3",
31
- "@ckeditor/ckeditor5-utils": "48.2.0-alpha.3"
24
+ "@ckeditor/ckeditor5-core": "48.2.0-alpha.5",
25
+ "@ckeditor/ckeditor5-heading": "48.2.0-alpha.5",
26
+ "@ckeditor/ckeditor5-icons": "48.2.0-alpha.5",
27
+ "@ckeditor/ckeditor5-mention": "48.2.0-alpha.5",
28
+ "@ckeditor/ckeditor5-style": "48.2.0-alpha.5",
29
+ "@ckeditor/ckeditor5-template": "48.2.0-alpha.5",
30
+ "@ckeditor/ckeditor5-ui": "48.2.0-alpha.5",
31
+ "@ckeditor/ckeditor5-utils": "48.2.0-alpha.5"
32
32
  },
33
33
  "files": [
34
34
  "dist",