@ckeditor/ckeditor5-format-painter 48.8.1-alpha.0 → 48.8.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x1511fe,Plugin as _0x1fc910}from'@ckeditor/ckeditor5-core/dist/index.js';import{RemoveFormatCommand as _0xd8f5b7}from'@ckeditor/ckeditor5-remove-format/dist/index.js';import{createDropdown as _0x36e8da,SplitButtonView as _0x45fb3d,UIModel as _0x31bd27,addListToDropdown as _0x5036ee}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DomEmitterMixin as _0x173433,Collection as _0x147bc7,global as _0x3f4b5b,uid as _0x5e4ee5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ClickObserver as _0x49c5b8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconPaintRoller as _0x36f6e1}from'@ckeditor/ckeditor5-icons/dist/index.js';const w='copyFormat',g='pasteFormat',h='ck-format-painter-active';class CopyFormatCommand extends _0x1511fe{constructor(_0x21995f){super(_0x21995f),this['value']=void 0x0,this['on']('change:isEnabled',(_0xbfb950,_0x2bd71a,_0xf4bcdc)=>{_0xf4bcdc||this['reset']();}),this['on']('change:value',()=>_0x21995f['commands']['get'](g)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0x2012b2=this['editor']['model'],_0x566c58=_0x2012b2['document']['selection'];return Object['fromEntries'](Array['from'](_0x566c58['getAttributes']())['filter'](([_0x2f3621])=>_0x2012b2['schema']['getAttributeProperties'](_0x2f3621)['isFormatting']));}}class PasteFormatCommand extends _0x1511fe{constructor(_0x131cad){super(_0x131cad),this['_removeFormatCommand']=new _0xd8f5b7(_0x131cad);}['execute'](_0x3785ea={}){const _0x58604d=this['editor']['model'],_0x71099c=_0x58604d['document']['selection'],_0x234316=Array['from'](_0x71099c['getRanges']()),_0x1ade00=_0x71099c['isCollapsed']?[this['_createRangeOnEntireWord'](_0x58604d,_0x71099c)]:_0x234316;_0x58604d['change'](_0x304679=>{_0x304679['setSelection'](_0x1ade00),this['_removeFormatCommand']['execute']();for(const _0x272e3f in _0x3785ea)for(const _0x44178b of _0x58604d['schema']['getValidRanges'](_0x1ade00,_0x272e3f))_0x304679['setAttribute'](_0x272e3f,_0x3785ea[_0x272e3f],_0x44178b);_0x304679['setSelection'](_0x234316);});}['_createRangeOnEntireWord'](_0x11f539,_0x315b10){const _0x36c077=_0x11f539['createSelection'](_0x315b10);_0x11f539['modifySelection'](_0x36c077,{'unit':'word','direction':'backward'});const _0x3e9a35=_0x36c077['getFirstPosition']();_0x11f539['modifySelection'](_0x36c077,{'unit':'word','direction':'forward'});const _0x5cb416=_0x36c077['getLastPosition']();return _0x11f539['createRange'](_0x3e9a35,_0x5cb416);}}class FormatPainterEditing extends _0x1fc910{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x475080=this['editor'];_0x475080['commands']['add'](w,new CopyFormatCommand(_0x475080)),_0x475080['commands']['add'](g,new PasteFormatCommand(_0x475080)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5afdb8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x509c78;for(const _0xd94760 in _0x5afdb8){const _0x3dc070=_0xd94760,_0x101bd2=_0x5afdb8[_0x3dc070];if('formatPainterLicenseKeyValid'==_0x101bd2||'formatPainterLicenseKeyInvalid'==_0x101bd2||'formatPainterLicenseKeyExpired'==_0x101bd2||'formatPainterLicenseKeyDomainLimit'==_0x101bd2||'formatPainterLicenseKeyNotAllowed'==_0x101bd2||'formatPainterLicenseKeyEvaluationLimit'==_0x101bd2||'formatPainterLicenseKeyUsageLimit'==_0x101bd2){delete _0x5afdb8[_0x3dc070],_0x509c78=_0x101bd2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x509c78&&_0x5afdb8['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x509c78&&_0x5afdb8['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x509c78&&_0x5afdb8['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x509c78&&_0x5afdb8['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x509c78&&_0x5afdb8['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x509c78&&_0x5afdb8['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function p(_0x4308ae,_0x242f10){const t=_0x4308ae['t'];switch(_0x242f10){case'Paint\x20formatting':return t('Paint\x20formatting');case'Copy\x20text\x20formatting':return t('Copy\x20text\x20formatting');case'Paste\x20text\x20formatting':return t('Paste\x20text\x20formatting');case'Continuous\x20painting':return t('Continuous\x20painting');case'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':return t('Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.');case'Formatting\x20copied.':return t('Formatting\x20copied.');case'Pasted\x20formatting.':return t('Pasted\x20formatting.');case'Painting\x20cancelled.':return t('Painting\x20cancelled.');default:return _0x242f10;}}class FormatPainterUI extends/* #__PURE__ -- @preserve */
24
- _0x173433(_0x1fc910){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x53b60e=this['editor'];_0x53b60e['editing']['view']['addObserver'](_0x49c5b8),_0x53b60e['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':p(_0x53b60e['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':p(_0x53b60e['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x53b60e['ui']['componentFactory']['add']('formatPainter',_0x524ca3=>{const _0x95b965=_0x36e8da(_0x524ca3,_0x45fb3d),_0x181977=_0x53b60e['commands']['get'](w);_0x95b965['buttonView']['set']({'label':p(_0x53b60e['locale'],'Paint\x20formatting'),'icon':_0x36f6e1,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x95b965['class']='ck-format-painter-dropdown',_0x181977&&(_0x95b965['bind']('isEnabled')['to'](_0x181977,'isEnabled'),this['listenTo'](_0x181977,'change:isEnabled',(_0x2f288c,_0x430b44,_0x7730d4)=>{_0x7730d4||this['_finishPainting']();}),_0x95b965['buttonView']['bind']('isOn')['to'](_0x181977,'value',_0x4354d5=>!!_0x4354d5),this['listenTo'](_0x53b60e,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x181977,'change:value',(_0x574aef,_0x167fd8,_0x1f19ba)=>{this['_toggleSpecialCursor'](!!_0x1f19ba);}));const _0x56fc0e=new _0x31bd27({'withText':!0x0,'label':p(_0x53b60e['locale'],'Continuous\x20painting'),'tooltip':p(_0x53b60e['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});_0x5036ee(_0x95b965,new _0x147bc7([{'type':'switchbutton','model':_0x56fc0e}]),{'role':'menu'});const _0x2f8866=()=>{this['_copyFormatting'](),this['listenTo'](_0x3f4b5b['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x56fc0e['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x95b965,'execute',()=>{_0x56fc0e['isOn']=!_0x56fc0e['isOn'];}),this['listenTo'](_0x95b965['buttonView'],'execute',()=>{_0x53b60e['editing']['view']['focus'](),_0x95b965['buttonView']['isOn']?this['_finishPainting']():_0x2f8866();}),_0x53b60e['keystrokes']['set']('Ctrl+Alt+C',(_0x1fc5a7,_0x12dbb4)=>{_0x2f8866(),_0x56fc0e['isOn']=!0x0,_0x12dbb4();},{'priority':'high'}),_0x53b60e['keystrokes']['set']('Ctrl+Alt+V',(_0x4b1e6c,_0x183af0)=>{_0x95b965['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x56fc0e['isOn']||this['_finishPainting'](),_0x183af0());},{'priority':'high'}),_0x53b60e['keystrokes']['set']('Esc',(_0x1f2fea,_0x549aca)=>{_0x95b965['buttonView']['isOn']&&(_0x56fc0e['isOn']=!0x1,this['_finishPainting'](),_0x53b60e['ui']['ariaLiveAnnouncer']['announce'](p(_0x53b60e['locale'],'Painting\x20cancelled.')),_0x549aca());}),_0x95b965;});}['afterInit'](){!async function(_0x84add){const _0x3d4be5=_0x2fe6c7([0x51,0x69,0x4c,0x52,0x43,0x53,0x4f,0x73,0x5a,0x38,0x70,0x41,0x76,0x44,0x64,0x61,0x50,0x4a,0x55,0x45,0x33,0x6f,0x78,0x6a,0x4b,0x6c,0x7a,0x4d,0x32,0x75,0x58,0x67,0x72,0x74,0x47,0x66,0x65,0x79,0x68,0x35,0x63,0x4e,0x46,0x6b,0x6d,0x42,0x77,0x39,0x49,0x36,0x57,0x48,0x30,0x71,0x6e,0x62,0x34,0x54,0x31,0x37,0x59,0x56]),_0x42c271=0x4597e011,_0x2087e8=0x45906a31^_0x42c271,_0x54d4a7=window[_0x2fe6c7([0x44,0x61,0x74,0x65])][_0x2fe6c7([0x6e,0x6f,0x77])](),_0x4a325d=_0x84add[_0x2fe6c7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe38f84=new window[(_0x2fe6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x133791=>{_0x4a325d[_0x2fe6c7([0x6f,0x6e,0x63,0x65])](_0x2fe6c7([0x72,0x65,0x61,0x64,0x79]),_0x133791);}),_0x1016e8={[_0x2fe6c7([0x6b,0x74,0x79])]:_0x2fe6c7([0x45,0x43]),[_0x2fe6c7([0x75,0x73,0x65])]:_0x2fe6c7([0x73,0x69,0x67]),[_0x2fe6c7([0x63,0x72,0x76])]:_0x2fe6c7([0x50,0x2d,0x32,0x35,0x36]),[_0x2fe6c7([0x78])]:_0x2fe6c7([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]),[_0x2fe6c7([0x79])]:_0x2fe6c7([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]),[_0x2fe6c7([0x61,0x6c,0x67])]:_0x2fe6c7([0x45,0x53,0x32,0x35,0x36])},_0x4096a3=_0x4a325d[_0x2fe6c7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2fe6c7([0x67,0x65,0x74])](_0x2fe6c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x232d2e(){let _0x3b75b4,_0x5c5098=null,_0x1b364f=null;try{if(_0x4096a3==_0x2fe6c7([0x47,0x50,0x4c]))return _0x2fe6c7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b75b4=_0x47b881(),!_0x3b75b4)return _0x2fe6c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b75b4[_0x2fe6c7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b364f=_0x5dc2c7(_0x3b75b4[_0x2fe6c7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b75b4[_0x2fe6c7([0x6a,0x74,0x69])])),await _0x8341fa()?_0x8937f3()?_0x41a44e()?_0x2fe6c7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x486cce()?(_0x3b75b4[_0x2fe6c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fe6c7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c5098=_0x1b519f(_0x2fe6c7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x304a07()):_0x2fe6c7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2fe6c7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2fe6c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2fe6c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41a44e(){const _0xf6cd65=[_0x2fe6c7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2fe6c7([0x74,0x72,0x69,0x61,0x6c])][_0x2fe6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b75b4[_0x2fe6c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x54d4a7/0x3e8:0xe10*_0x2087e8;return _0x3b75b4[_0x2fe6c7([0x65,0x78,0x70])]<_0xf6cd65;}function _0x8937f3(){const _0x76e30f=_0x3b75b4[_0x2fe6c7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x76e30f&&(!!_0x76e30f[_0x2fe6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe6c7([0x2a]))||(!!_0x76e30f[_0x2fe6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe6c7([0x46,0x50]))||(!!_0x76e30f[_0x2fe6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe6c7([0x50,0x50]))||!(!_0x76e30f[_0x2fe6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe6c7([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x4e6700()))));}function _0x486cce(){const _0x3016c4=_0x3b75b4[_0x2fe6c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3016c4||0x0==_0x3016c4[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1827bf}=new URL(window[_0x2fe6c7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3016c4[_0x2fe6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1827bf))return!0x0;const _0x3068e7=_0x1827bf[_0x2fe6c7([0x73,0x70,0x6c,0x69,0x74])](_0x2fe6c7([0x2e]));return _0x3016c4[_0x2fe6c7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x498fbc=>_0x498fbc[_0x2fe6c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe6c7([0x2a])))[_0x2fe6c7([0x6d,0x61,0x70])](_0x1a2a7f=>_0x1a2a7f[_0x2fe6c7([0x73,0x70,0x6c,0x69,0x74])](_0x2fe6c7([0x2e])))[_0x2fe6c7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e412c=>_0x3e412c[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3068e7[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2fe6c7([0x6d,0x61,0x70])](_0x4fe021=>Array(_0x3068e7[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4fe021[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2fe6c7([0x66,0x69,0x6c,0x6c])](_0x4fe021[0x0]===_0x2fe6c7([0x2a])?_0x2fe6c7([0x2a]):'')[_0x2fe6c7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4fe021))[_0x2fe6c7([0x73,0x6f,0x6d,0x65])](_0x29d5f6=>_0x3068e7[_0x2fe6c7([0x65,0x76,0x65,0x72,0x79])]((_0x34495d,_0x61e1bf)=>_0x29d5f6[_0x61e1bf]===_0x34495d||_0x29d5f6[_0x61e1bf]===_0x2fe6c7([0x2a])));}function _0x304a07(){return _0x5c5098&&_0x1b364f?new window[(_0x2fe6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58acce,_0xa0e95d)=>{_0x5c5098[_0x2fe6c7([0x74,0x68,0x65,0x6e])](_0x58acce,_0xa0e95d),_0x1b364f[_0x2fe6c7([0x74,0x68,0x65,0x6e])](_0x44889b=>{_0x44889b!=_0x2fe6c7([0x56,0x61,0x6c,0x69,0x64])&&_0x58acce(_0x44889b);},_0xa0e95d);}):_0x5c5098||_0x1b364f||_0x2fe6c7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5dc2c7(_0x2f90d0,_0x59b103){return new window[(_0x2fe6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ebc32=>{if(_0x340ee3())return _0x4ebc32(_0x2fe6c7([0x56,0x61,0x6c,0x69,0x64]));_0x4eb9e9(),_0x4a325d[_0x2fe6c7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2fe6c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x75a9b7=!0x1;const _0x37d483=_0x5e4ee5();function _0x30af36(_0x39dfd5){return!!_0x39dfd5&&(typeof _0x39dfd5===_0x2fe6c7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x39dfd5===_0x2fe6c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x39dfd5[_0x2fe6c7([0x74,0x68,0x65,0x6e])]===_0x2fe6c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x39dfd5[_0x2fe6c7([0x63,0x61,0x74,0x63,0x68])]===_0x2fe6c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x514005(_0x1a7dde){_0x19d297(_0x1a7dde)[_0x2fe6c7([0x74,0x68,0x65,0x6e])](_0x11ea81=>{if(!_0x11ea81||_0x11ea81[_0x2fe6c7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2fe6c7([0x6f,0x6b]))return _0x2fe6c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x421205(_0x16011a(_0x37d483+_0x59b103))!=_0x11ea81[_0x2fe6c7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2fe6c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2fe6c7([0x56,0x61,0x6c,0x69,0x64]);})[_0x2fe6c7([0x74,0x68,0x65,0x6e])](_0x4eb6fa=>(_0x5eb308(),_0x4eb6fa),()=>{const _0x53adcb=_0x3831b1();return null==_0x53adcb?(_0x5eb308(),_0x2fe6c7([0x56,0x61,0x6c,0x69,0x64])):_0x2fe6c7(_0x54d4a7-_0x53adcb>(0x619b6411^_0x42c271)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2fe6c7([0x74,0x68,0x65,0x6e])](_0x4ebc32)[_0x2fe6c7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ebc32(_0x2fe6c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3931db=0x45a10e91^_0x42c271;function _0x5eb308(){const _0x4507d5=_0x2fe6c7([0x6c,0x6c,0x63,0x74,0x2d])+_0x421205(_0x16011a(_0x2f90d0)),_0x4b6031=_0x973c32(_0x421205(window[_0x2fe6c7([0x4d,0x61,0x74,0x68])][_0x2fe6c7([0x63,0x65,0x69,0x6c])](_0x54d4a7/_0x3931db)));window[_0x2fe6c7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fe6c7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4507d5,_0x4b6031);}function _0x3831b1(){const _0x1be5ea=_0x2fe6c7([0x6c,0x6c,0x63,0x74,0x2d])+_0x421205(_0x16011a(_0x2f90d0)),_0x550616=window[_0x2fe6c7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fe6c7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1be5ea);return _0x550616?window[_0x2fe6c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x973c32(_0x550616),0x10)*_0x3931db:null;}function _0x19d297(_0x4a0e7b){return new window[(_0x2fe6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d4526,_0x3da0f5)=>{_0x4a0e7b[_0x2fe6c7([0x74,0x68,0x65,0x6e])](_0x4d4526,_0x3da0f5),window[_0x2fe6c7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3da0f5,0x459634d1^_0x42c271);});}}_0x4a325d[_0x2fe6c7([0x6f,0x6e])](_0x2fe6c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x38947c,_0x3b51e6)=>{if(_0x3b51e6[0x0]!=_0x2f90d0)return _0x4ebc32(_0x2fe6c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b51e6[0x1]={..._0x3b51e6[0x1],[_0x2fe6c7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37d483};},{[_0x2fe6c7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fe6c7([0x68,0x69,0x67,0x68])}),_0x4a325d[_0x2fe6c7([0x6f,0x6e])](_0x2fe6c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a1788=>{_0x30af36(_0x3a1788[_0x2fe6c7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x75a9b7=!0x0,_0x514005(_0x3a1788[_0x2fe6c7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2fe6c7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fe6c7([0x6c,0x6f,0x77])}),_0xe38f84[_0x2fe6c7([0x74,0x68,0x65,0x6e])](()=>{_0x75a9b7||_0x4ebc32(_0x2fe6c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x340ee3(){return _0x4a325d[_0x2fe6c7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fe6c7([0x76,0x69,0x65,0x77])][_0x2fe6c7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2fe6c7([0x61,0x75,0x74,0x6f]);}function _0x4eb9e9(){_0x4a325d[_0x2fe6c7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fe6c7([0x76,0x69,0x65,0x77])][_0x2fe6c7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fe6c7([0x61,0x75,0x74,0x6f]);}}function _0x1b519f(_0x4217cd){const _0x57d8c5=[new window[(_0x2fe6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x149531=>setTimeout(_0x149531,0x459ededd^_0x42c271)),_0xe38f84[_0x2fe6c7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2fe6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x132320=>{let _0x1aff82=0x0;_0x4a325d[_0x2fe6c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fe6c7([0x6f,0x6e])](_0x2fe6c7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x35c98a,_0x2093c1)=>{_0x2093c1[0x0][_0x2fe6c7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1aff82++,_0x1aff82==(0x4597e5f9^_0x42c271)&&(_0x132320(),_0x35c98a[_0x2fe6c7([0x6f,0x66,0x66])]());});}))];return window[_0x2fe6c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fe6c7([0x72,0x61,0x63,0x65])](_0x57d8c5)[_0x2fe6c7([0x74,0x68,0x65,0x6e])](()=>_0x4217cd);}async function _0x2295a0(){await _0xe38f84,_0x4a325d[_0x2fe6c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fe6c7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53ae11,_0x4a325d[_0x2fe6c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fe6c7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53ae11,_0x4a325d[_0x2fe6c7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2fe6c7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4e6700(){return window[_0x2fe6c7([0x67,0x6c,0x6f,0x62])]&&window[_0x2fe6c7([0x67,0x6c,0x6f,0x62])][_0x2fe6c7([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x10eb62(_0x513903){const _0x3625b9=_0x477190();_0x4a325d[_0x3625b9]=_0x2fe6c7([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x513903,_0x513903!=_0x2fe6c7([0x56,0x61,0x6c,0x69,0x64])&&_0x2295a0();}function _0x477190(){const _0x240a73=window[_0x2fe6c7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2fe6c7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2fe6c7([0x6e,0x6f,0x77])]())[_0x2fe6c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2fe6c7([0x2e]),'');let _0x14e3d2=_0x2fe6c7([0x51]);for(let _0x2ca814=0x0;_0x2ca814<_0x240a73[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ca814+=0x2){let _0xf76851=window[_0x2fe6c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x240a73[_0x2fe6c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ca814,_0x2ca814+0x2));_0xf76851>=_0x3d4be5[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf76851-=_0x3d4be5[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14e3d2+=_0x3d4be5[_0xf76851];}return _0x14e3d2;}function _0x47b881(){const _0x4bc547=_0x4096a3[_0x2fe6c7([0x73,0x70,0x6c,0x69,0x74])](_0x2fe6c7([0x2e]));if(0x3!=_0x4bc547[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x26c044(_0x4bc547[0x1]);function _0x26c044(_0x37d1cc){const _0x12f626=_0x5bcd62(_0x37d1cc);return _0x12f626&&_0x215003()?_0x12f626:null;function _0x215003(){const _0x3f0aa5=_0x12f626[_0x2fe6c7([0x6a,0x74,0x69])],_0x5448df=window[_0x2fe6c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f0aa5[_0x2fe6c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f0aa5[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x513a2d={..._0x12f626,[_0x2fe6c7([0x6a,0x74,0x69])]:_0x3f0aa5[_0x2fe6c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f0aa5[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x513a2d[_0x2fe6c7([0x76,0x63])],_0x16011a(_0x513a2d)==_0x5448df;}}}async function _0x8341fa(){let _0xaed8e7=!0x0;try{const _0x464192=_0x4096a3[_0x2fe6c7([0x73,0x70,0x6c,0x69,0x74])](_0x2fe6c7([0x2e])),[_0x445149,_0x272510,_0x43047d]=_0x464192;return _0x3c6ddf(_0x445149),await _0x42b7bd(_0x445149,_0x272510,_0x43047d),_0xaed8e7;}catch{return!0x1;}function _0x3c6ddf(_0x36ce07){const _0x408def=_0x5bcd62(_0x36ce07);_0x408def&&_0x408def[_0x2fe6c7([0x61,0x6c,0x67])]==_0x2fe6c7([0x45,0x53,0x32,0x35,0x36])||(_0xaed8e7=!0x1);}async function _0x42b7bd(_0x1ac929,_0x233a33,_0x13d30a){const _0x12ab9c=window[_0x2fe6c7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2fe6c7([0x66,0x72,0x6f,0x6d])](_0x1657f0(_0x13d30a),_0x351cea=>_0x351cea[_0x2fe6c7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5979ff=new window[(_0x2fe6c7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2fe6c7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ac929+_0x2fe6c7([0x2e])+_0x233a33),_0x31eab0=window[_0x2fe6c7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2fe6c7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31eab0)return;const _0x41575e=await _0x31eab0[_0x2fe6c7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2fe6c7([0x6a,0x77,0x6b]),_0x1016e8,{[_0x2fe6c7([0x6e,0x61,0x6d,0x65])]:_0x2fe6c7([0x45,0x43,0x44,0x53,0x41]),[_0x2fe6c7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2fe6c7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2fe6c7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31eab0[_0x2fe6c7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2fe6c7([0x6e,0x61,0x6d,0x65])]:_0x2fe6c7([0x45,0x43,0x44,0x53,0x41]),[_0x2fe6c7([0x68,0x61,0x73,0x68])]:{[_0x2fe6c7([0x6e,0x61,0x6d,0x65])]:_0x2fe6c7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x41575e,_0x12ab9c,_0x5979ff)||(_0xaed8e7=!0x1);}}function _0x5bcd62(_0x474cfb){return _0x474cfb[_0x2fe6c7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2fe6c7([0x65,0x79]))?JSON[_0x2fe6c7([0x70,0x61,0x72,0x73,0x65])](_0x1657f0(_0x474cfb)):null;}function _0x1657f0(_0x5e5938){return window[_0x2fe6c7([0x61,0x74,0x6f,0x62])](_0x5e5938[_0x2fe6c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2fe6c7([0x2b]))[_0x2fe6c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2fe6c7([0x2f])));}function _0x16011a(_0x5ab6ec){let _0x1400c6=0x1505;function _0x419c5d(_0x4b9f0b){for(let _0x413f95=0x0;_0x413f95<_0x4b9f0b[_0x2fe6c7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x413f95++){const _0x3ecc46=_0x4b9f0b[_0x2fe6c7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x413f95);_0x1400c6=(_0x1400c6<<0x5)+_0x1400c6+_0x3ecc46,_0x1400c6&=_0x1400c6;}}function _0x370d43(_0x36ff67){Array[_0x2fe6c7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x36ff67)?_0x36ff67[_0x2fe6c7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x370d43):_0x36ff67&&typeof _0x36ff67==_0x2fe6c7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2fe6c7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x36ff67)[_0x2fe6c7([0x73,0x6f,0x72,0x74])]()[_0x2fe6c7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3da67f,_0x1228a7])=>{_0x419c5d(_0x3da67f),_0x370d43(_0x1228a7);}):_0x419c5d(window[_0x2fe6c7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x36ff67));}return _0x370d43(_0x5ab6ec),_0x1400c6>>>0x0;}function _0x421205(_0x55b050){return _0x55b050[_0x2fe6c7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2fe6c7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2fe6c7([0x30]));}function _0x973c32(_0x39a869){return _0x39a869[_0x2fe6c7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2fe6c7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2fe6c7([0x6a,0x6f,0x69,0x6e])]('');}function _0x53ae11(){}function _0x2fe6c7(_0x57c83b){return _0x57c83b['map'](_0x4b9781=>String['fromCharCode'](_0x4b9781))['join']('');}_0x10eb62(await _0x232d2e());}(this);}['_toggleSpecialCursor'](_0x431035){this['editor']['editing']['view']['change'](_0x2cb804=>{for(const _0x8b57c of this['editor']['editing']['view']['document']['roots'])_0x431035?_0x2cb804['addClass'](h,_0x8b57c):_0x2cb804['removeClass'](h,_0x8b57c);});}['_copyFormatting'](){const {editor:_0x574bea}=this;_0x574bea['execute'](w),_0x574bea['ui']['ariaLiveAnnouncer']['announce'](p(_0x574bea['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x12a4dd}=this,_0x1e75a5=_0x12a4dd['commands']['get'](w)['value'];_0x12a4dd['execute'](g,_0x1e75a5),_0x12a4dd['ui']['ariaLiveAnnouncer']['announce'](p(_0x12a4dd['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](w)['reset'](),this['stopListening'](_0x3f4b5b['window']['document'],'mouseup');}}class FormatPainter extends _0x1fc910{static get['requires'](){return[FormatPainterEditing,FormatPainterUI];}static get['pluginName'](){return'FormatPainter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{CopyFormatCommand,FormatPainter,FormatPainterEditing,FormatPainterUI,PasteFormatCommand};
23
+ import{Command as _0x58e619,Plugin as _0x4eee4}from'@ckeditor/ckeditor5-core/dist/index.js';import{RemoveFormatCommand as _0x1fb3a9}from'@ckeditor/ckeditor5-remove-format/dist/index.js';import{createDropdown as _0x22b3c6,SplitButtonView as _0x482fed,UIModel as _0x111680,addListToDropdown as _0x3be317}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DomEmitterMixin as _0x3cba51,Collection as _0x3f7411,global as _0x456ad3,uid as _0x7387e7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ClickObserver as _0x29b0d9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconPaintRoller as _0x19e873}from'@ckeditor/ckeditor5-icons/dist/index.js';const w='copyFormat',g='pasteFormat',h='ck-format-painter-active';class CopyFormatCommand extends _0x58e619{constructor(_0x2259fd){super(_0x2259fd),this['value']=void 0x0,this['on']('change:isEnabled',(_0x4b65f7,_0x5f6fe2,_0x17d988)=>{_0x17d988||this['reset']();}),this['on']('change:value',()=>_0x2259fd['commands']['get'](g)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0x26d861=this['editor']['model'],_0xebb727=_0x26d861['document']['selection'];return Object['fromEntries'](Array['from'](_0xebb727['getAttributes']())['filter'](([_0x3edb79])=>_0x26d861['schema']['getAttributeProperties'](_0x3edb79)['isFormatting']));}}class PasteFormatCommand extends _0x58e619{constructor(_0x2ef95a){super(_0x2ef95a),this['_removeFormatCommand']=new _0x1fb3a9(_0x2ef95a);}['execute'](_0x346521={}){const _0x172c99=this['editor']['model'],_0x42c9bf=_0x172c99['document']['selection'],_0x5c593f=Array['from'](_0x42c9bf['getRanges']()),_0x1c095e=_0x42c9bf['isCollapsed']?[this['_createRangeOnEntireWord'](_0x172c99,_0x42c9bf)]:_0x5c593f;_0x172c99['change'](_0x1b1926=>{_0x1b1926['setSelection'](_0x1c095e),this['_removeFormatCommand']['execute']();for(const _0x51c2a0 in _0x346521)for(const _0x111497 of _0x172c99['schema']['getValidRanges'](_0x1c095e,_0x51c2a0))_0x1b1926['setAttribute'](_0x51c2a0,_0x346521[_0x51c2a0],_0x111497);_0x1b1926['setSelection'](_0x5c593f);});}['_createRangeOnEntireWord'](_0x59b03d,_0x4c0d26){const _0x4d7dd9=_0x59b03d['createSelection'](_0x4c0d26);_0x59b03d['modifySelection'](_0x4d7dd9,{'unit':'word','direction':'backward'});const _0x36fff6=_0x4d7dd9['getFirstPosition']();_0x59b03d['modifySelection'](_0x4d7dd9,{'unit':'word','direction':'forward'});const _0x266b03=_0x4d7dd9['getLastPosition']();return _0x59b03d['createRange'](_0x36fff6,_0x266b03);}}class FormatPainterEditing extends _0x4eee4{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x589c28=this['editor'];_0x589c28['commands']['add'](w,new CopyFormatCommand(_0x589c28)),_0x589c28['commands']['add'](g,new PasteFormatCommand(_0x589c28)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x346651=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a1dc0;for(const _0x8c5dba in _0x346651){const _0x3dfe24=_0x8c5dba,_0x33ab8b=_0x346651[_0x3dfe24];if('formatPainterLicenseKeyValid'==_0x33ab8b||'formatPainterLicenseKeyInvalid'==_0x33ab8b||'formatPainterLicenseKeyExpired'==_0x33ab8b||'formatPainterLicenseKeyDomainLimit'==_0x33ab8b||'formatPainterLicenseKeyNotAllowed'==_0x33ab8b||'formatPainterLicenseKeyEvaluationLimit'==_0x33ab8b||'formatPainterLicenseKeyUsageLimit'==_0x33ab8b){delete _0x346651[_0x3dfe24],_0x4a1dc0=_0x33ab8b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x4a1dc0&&_0x346651['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x4a1dc0&&_0x346651['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x4a1dc0&&_0x346651['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x4a1dc0&&_0x346651['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x4a1dc0&&_0x346651['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x4a1dc0&&_0x346651['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function p(_0x2debdb,_0x441e0d){const t=_0x2debdb['t'];switch(_0x441e0d){case'Paint\x20formatting':return t('Paint\x20formatting');case'Copy\x20text\x20formatting':return t('Copy\x20text\x20formatting');case'Paste\x20text\x20formatting':return t('Paste\x20text\x20formatting');case'Continuous\x20painting':return t('Continuous\x20painting');case'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.':return t('Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.');case'Formatting\x20copied.':return t('Formatting\x20copied.');case'Pasted\x20formatting.':return t('Pasted\x20formatting.');case'Painting\x20cancelled.':return t('Painting\x20cancelled.');default:return _0x441e0d;}}class FormatPainterUI extends/* #__PURE__ -- @preserve */
24
+ _0x3cba51(_0x4eee4){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1f7bcb=this['editor'];_0x1f7bcb['editing']['view']['addObserver'](_0x29b0d9),_0x1f7bcb['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':p(_0x1f7bcb['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':p(_0x1f7bcb['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x1f7bcb['ui']['componentFactory']['add']('formatPainter',_0x39faf3=>{const _0x43395b=_0x22b3c6(_0x39faf3,_0x482fed),_0x57c879=_0x1f7bcb['commands']['get'](w);_0x43395b['buttonView']['set']({'label':p(_0x1f7bcb['locale'],'Paint\x20formatting'),'icon':_0x19e873,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x43395b['class']='ck-format-painter-dropdown',_0x57c879&&(_0x43395b['bind']('isEnabled')['to'](_0x57c879,'isEnabled'),this['listenTo'](_0x57c879,'change:isEnabled',(_0x3c5edf,_0x3867f2,_0x4651f7)=>{_0x4651f7||this['_finishPainting']();}),_0x43395b['buttonView']['bind']('isOn')['to'](_0x57c879,'value',_0xed2736=>!!_0xed2736),this['listenTo'](_0x1f7bcb,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x57c879,'change:value',(_0x20d734,_0x4cf8f5,_0x467124)=>{this['_toggleSpecialCursor'](!!_0x467124);}));const _0x124ae0=new _0x111680({'withText':!0x0,'label':p(_0x1f7bcb['locale'],'Continuous\x20painting'),'tooltip':p(_0x1f7bcb['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});_0x3be317(_0x43395b,new _0x3f7411([{'type':'switchbutton','model':_0x124ae0}]),{'role':'menu'});const _0x49b7d2=()=>{this['_copyFormatting'](),this['listenTo'](_0x456ad3['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x124ae0['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x43395b,'execute',()=>{_0x124ae0['isOn']=!_0x124ae0['isOn'];}),this['listenTo'](_0x43395b['buttonView'],'execute',()=>{_0x1f7bcb['editing']['view']['focus'](),_0x43395b['buttonView']['isOn']?this['_finishPainting']():_0x49b7d2();}),_0x1f7bcb['keystrokes']['set']('Ctrl+Alt+C',(_0x5af0ad,_0xa9283b)=>{_0x49b7d2(),_0x124ae0['isOn']=!0x0,_0xa9283b();},{'priority':'high'}),_0x1f7bcb['keystrokes']['set']('Ctrl+Alt+V',(_0x3368e1,_0x57e587)=>{_0x43395b['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x124ae0['isOn']||this['_finishPainting'](),_0x57e587());},{'priority':'high'}),_0x1f7bcb['keystrokes']['set']('Esc',(_0x4ef596,_0xbe012d)=>{_0x43395b['buttonView']['isOn']&&(_0x124ae0['isOn']=!0x1,this['_finishPainting'](),_0x1f7bcb['ui']['ariaLiveAnnouncer']['announce'](p(_0x1f7bcb['locale'],'Painting\x20cancelled.')),_0xbe012d());}),_0x43395b;});}['afterInit'](){!async function(_0x47756c){const _0x1dfd62=_0x4f4148([0x51,0x69,0x4c,0x52,0x43,0x53,0x4f,0x73,0x5a,0x38,0x70,0x41,0x76,0x44,0x64,0x61,0x50,0x4a,0x55,0x45,0x33,0x6f,0x78,0x6a,0x4b,0x6c,0x7a,0x4d,0x32,0x75,0x58,0x67,0x72,0x74,0x47,0x66,0x65,0x79,0x68,0x35,0x63,0x4e,0x46,0x6b,0x6d,0x42,0x77,0x39,0x49,0x36,0x57,0x48,0x30,0x71,0x6e,0x62,0x34,0x54,0x31,0x37,0x59,0x56]),_0x34d024=0x4597e011,_0x28d2bb=0x45906a29^_0x34d024,_0x59912f=window[_0x4f4148([0x44,0x61,0x74,0x65])][_0x4f4148([0x6e,0x6f,0x77])](),_0x20d95f=_0x47756c[_0x4f4148([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1faccc=new window[(_0x4f4148([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x389ced=>{_0x20d95f[_0x4f4148([0x6f,0x6e,0x63,0x65])](_0x4f4148([0x72,0x65,0x61,0x64,0x79]),_0x389ced);}),_0x4b62f3={[_0x4f4148([0x6b,0x74,0x79])]:_0x4f4148([0x45,0x43]),[_0x4f4148([0x75,0x73,0x65])]:_0x4f4148([0x73,0x69,0x67]),[_0x4f4148([0x63,0x72,0x76])]:_0x4f4148([0x50,0x2d,0x32,0x35,0x36]),[_0x4f4148([0x78])]:_0x4f4148([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]),[_0x4f4148([0x79])]:_0x4f4148([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]),[_0x4f4148([0x61,0x6c,0x67])]:_0x4f4148([0x45,0x53,0x32,0x35,0x36])},_0x2f07e0=_0x20d95f[_0x4f4148([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f4148([0x67,0x65,0x74])](_0x4f4148([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b6719(){let _0x59152a,_0x420422=null,_0x5f5233=null;try{if(_0x2f07e0==_0x4f4148([0x47,0x50,0x4c]))return _0x4f4148([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x59152a=_0x333422(),!_0x59152a)return _0x4f4148([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x59152a[_0x4f4148([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5f5233=_0x4a2d3f(_0x59152a[_0x4f4148([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x59152a[_0x4f4148([0x6a,0x74,0x69])])),await _0x5923fc()?_0x331aa9()?_0x189fec()?_0x4f4148([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x96bd3e()?(_0x59152a[_0x4f4148([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f4148([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x420422=_0x147d50(_0x4f4148([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x36b7d8()):_0x4f4148([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f4148([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f4148([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4f4148([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x189fec(){const _0x3ec810=[_0x4f4148([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f4148([0x74,0x72,0x69,0x61,0x6c])][_0x4f4148([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59152a[_0x4f4148([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59912f/0x3e8:0xe10*_0x28d2bb;return _0x59152a[_0x4f4148([0x65,0x78,0x70])]<_0x3ec810;}function _0x331aa9(){const _0x12277e=_0x59152a[_0x4f4148([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x12277e&&(!!_0x12277e[_0x4f4148([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f4148([0x2a]))||(!!_0x12277e[_0x4f4148([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f4148([0x46,0x50]))||(!!_0x12277e[_0x4f4148([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f4148([0x50,0x50]))||!(!_0x12277e[_0x4f4148([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f4148([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0xd56d8d()))));}function _0x96bd3e(){const _0xd8fea6=_0x59152a[_0x4f4148([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd8fea6||0x0==_0xd8fea6[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16c82a}=new URL(window[_0x4f4148([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xd8fea6[_0x4f4148([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16c82a))return!0x0;const _0x453f28=_0x16c82a[_0x4f4148([0x73,0x70,0x6c,0x69,0x74])](_0x4f4148([0x2e]));return _0xd8fea6[_0x4f4148([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46097f=>_0x46097f[_0x4f4148([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f4148([0x2a])))[_0x4f4148([0x6d,0x61,0x70])](_0x165701=>_0x165701[_0x4f4148([0x73,0x70,0x6c,0x69,0x74])](_0x4f4148([0x2e])))[_0x4f4148([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x15eba2=>_0x15eba2[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x453f28[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f4148([0x6d,0x61,0x70])](_0x2e29b0=>Array(_0x453f28[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2e29b0[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f4148([0x66,0x69,0x6c,0x6c])](_0x2e29b0[0x0]===_0x4f4148([0x2a])?_0x4f4148([0x2a]):'')[_0x4f4148([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2e29b0))[_0x4f4148([0x73,0x6f,0x6d,0x65])](_0x5c78ba=>_0x453f28[_0x4f4148([0x65,0x76,0x65,0x72,0x79])]((_0x3fc342,_0x7135ac)=>_0x5c78ba[_0x7135ac]===_0x3fc342||_0x5c78ba[_0x7135ac]===_0x4f4148([0x2a])));}function _0x36b7d8(){return _0x420422&&_0x5f5233?new window[(_0x4f4148([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f83fd,_0x1548e1)=>{_0x420422[_0x4f4148([0x74,0x68,0x65,0x6e])](_0x1f83fd,_0x1548e1),_0x5f5233[_0x4f4148([0x74,0x68,0x65,0x6e])](_0x1b9ab6=>{_0x1b9ab6!=_0x4f4148([0x56,0x61,0x6c,0x69,0x64])&&_0x1f83fd(_0x1b9ab6);},_0x1548e1);}):_0x420422||_0x5f5233||_0x4f4148([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a2d3f(_0x5c7354,_0x2678d0){return new window[(_0x4f4148([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f6d44=>{if(_0x573726())return _0x2f6d44(_0x4f4148([0x56,0x61,0x6c,0x69,0x64]));_0x49a749(),_0x20d95f[_0x4f4148([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f4148([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4cedd7=!0x1;const _0x1cdf35=_0x7387e7();function _0x5c4469(_0x35a9a6){return!!_0x35a9a6&&(typeof _0x35a9a6===_0x4f4148([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x35a9a6===_0x4f4148([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x35a9a6[_0x4f4148([0x74,0x68,0x65,0x6e])]===_0x4f4148([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x35a9a6[_0x4f4148([0x63,0x61,0x74,0x63,0x68])]===_0x4f4148([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3bfff3(_0x66ba54){_0xe00373(_0x66ba54)[_0x4f4148([0x74,0x68,0x65,0x6e])](_0x3d2463=>{if(!_0x3d2463||_0x3d2463[_0x4f4148([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f4148([0x6f,0x6b]))return _0x4f4148([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5589a4(_0x9153bf(_0x1cdf35+_0x2678d0))!=_0x3d2463[_0x4f4148([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f4148([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f4148([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f4148([0x74,0x68,0x65,0x6e])](_0x5237f3=>(_0x122edd(),_0x5237f3),()=>{const _0x50c45f=_0x4a9d74();return null==_0x50c45f?(_0x122edd(),_0x4f4148([0x56,0x61,0x6c,0x69,0x64])):_0x4f4148(_0x59912f-_0x50c45f>(0x619b6411^_0x34d024)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f4148([0x74,0x68,0x65,0x6e])](_0x2f6d44)[_0x4f4148([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2f6d44(_0x4f4148([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x337b19=0x45a10e91^_0x34d024;function _0x122edd(){const _0x556d8a=_0x4f4148([0x6c,0x6c,0x63,0x74,0x2d])+_0x5589a4(_0x9153bf(_0x5c7354)),_0xe029c4=_0x31167f(_0x5589a4(window[_0x4f4148([0x4d,0x61,0x74,0x68])][_0x4f4148([0x63,0x65,0x69,0x6c])](_0x59912f/_0x337b19)));window[_0x4f4148([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f4148([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x556d8a,_0xe029c4);}function _0x4a9d74(){const _0x35e6e4=_0x4f4148([0x6c,0x6c,0x63,0x74,0x2d])+_0x5589a4(_0x9153bf(_0x5c7354)),_0x2055f4=window[_0x4f4148([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f4148([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35e6e4);return _0x2055f4?window[_0x4f4148([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31167f(_0x2055f4),0x10)*_0x337b19:null;}function _0xe00373(_0x172b76){return new window[(_0x4f4148([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x385113,_0x2fc15c)=>{_0x172b76[_0x4f4148([0x74,0x68,0x65,0x6e])](_0x385113,_0x2fc15c),window[_0x4f4148([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fc15c,0x459634d1^_0x34d024);});}}_0x20d95f[_0x4f4148([0x6f,0x6e])](_0x4f4148([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a2ffd,_0xbffdaa)=>{if(_0xbffdaa[0x0]!=_0x5c7354)return _0x2f6d44(_0x4f4148([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xbffdaa[0x1]={..._0xbffdaa[0x1],[_0x4f4148([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1cdf35};},{[_0x4f4148([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f4148([0x68,0x69,0x67,0x68])}),_0x20d95f[_0x4f4148([0x6f,0x6e])](_0x4f4148([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x543018=>{_0x5c4469(_0x543018[_0x4f4148([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4cedd7=!0x0,_0x3bfff3(_0x543018[_0x4f4148([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f4148([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f4148([0x6c,0x6f,0x77])}),_0x1faccc[_0x4f4148([0x74,0x68,0x65,0x6e])](()=>{_0x4cedd7||_0x2f6d44(_0x4f4148([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x573726(){return _0x20d95f[_0x4f4148([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f4148([0x76,0x69,0x65,0x77])][_0x4f4148([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f4148([0x61,0x75,0x74,0x6f]);}function _0x49a749(){_0x20d95f[_0x4f4148([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f4148([0x76,0x69,0x65,0x77])][_0x4f4148([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f4148([0x61,0x75,0x74,0x6f]);}}function _0x147d50(_0x2862aa){const _0x19e341=[new window[(_0x4f4148([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56ab9b=>setTimeout(_0x56ab9b,0x459ededd^_0x34d024)),_0x1faccc[_0x4f4148([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f4148([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c2ccb=>{let _0x3ffadb=0x0;_0x20d95f[_0x4f4148([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f4148([0x6f,0x6e])](_0x4f4148([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2eb5d8,_0x25e0c5)=>{_0x25e0c5[0x0][_0x4f4148([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3ffadb++,_0x3ffadb==(0x4597e5f9^_0x34d024)&&(_0x4c2ccb(),_0x2eb5d8[_0x4f4148([0x6f,0x66,0x66])]());});}))];return window[_0x4f4148([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f4148([0x72,0x61,0x63,0x65])](_0x19e341)[_0x4f4148([0x74,0x68,0x65,0x6e])](()=>_0x2862aa);}async function _0x53d77e(){await _0x1faccc,_0x20d95f[_0x4f4148([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f4148([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1d8511,_0x20d95f[_0x4f4148([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f4148([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1d8511,_0x20d95f[_0x4f4148([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f4148([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xd56d8d(){return window[_0x4f4148([0x67,0x6c,0x6f,0x62])]&&window[_0x4f4148([0x67,0x6c,0x6f,0x62])][_0x4f4148([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x3ce6ef(_0x43cc04){const _0xbf5abd=_0x44c4d4();_0x20d95f[_0xbf5abd]=_0x4f4148([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x43cc04,_0x43cc04!=_0x4f4148([0x56,0x61,0x6c,0x69,0x64])&&_0x53d77e();}function _0x44c4d4(){const _0x4d38e3=window[_0x4f4148([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f4148([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f4148([0x6e,0x6f,0x77])]())[_0x4f4148([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f4148([0x2e]),'');let _0x201208=_0x4f4148([0x51]);for(let _0x5b8780=0x0;_0x5b8780<_0x4d38e3[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b8780+=0x2){let _0x1d9a13=window[_0x4f4148([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d38e3[_0x4f4148([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b8780,_0x5b8780+0x2));_0x1d9a13>=_0x1dfd62[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1d9a13-=_0x1dfd62[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x201208+=_0x1dfd62[_0x1d9a13];}return _0x201208;}function _0x333422(){const _0x1e8af4=_0x2f07e0[_0x4f4148([0x73,0x70,0x6c,0x69,0x74])](_0x4f4148([0x2e]));if(0x3!=_0x1e8af4[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ae8df(_0x1e8af4[0x1]);function _0x2ae8df(_0x9a2f23){const _0x47466b=_0x17bff6(_0x9a2f23);return _0x47466b&&_0x43b272()?_0x47466b:null;function _0x43b272(){const _0x20db34=_0x47466b[_0x4f4148([0x6a,0x74,0x69])],_0x4f0e2c=window[_0x4f4148([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20db34[_0x4f4148([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20db34[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ad20a={..._0x47466b,[_0x4f4148([0x6a,0x74,0x69])]:_0x20db34[_0x4f4148([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20db34[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ad20a[_0x4f4148([0x76,0x63])],_0x9153bf(_0x2ad20a)==_0x4f0e2c;}}}async function _0x5923fc(){let _0x500a5a=!0x0;try{const _0x46e6c7=_0x2f07e0[_0x4f4148([0x73,0x70,0x6c,0x69,0x74])](_0x4f4148([0x2e])),[_0x20803a,_0x26f174,_0x193874]=_0x46e6c7;return _0x4c5fcd(_0x20803a),await _0x4781d8(_0x20803a,_0x26f174,_0x193874),_0x500a5a;}catch{return!0x1;}function _0x4c5fcd(_0x4fde3e){const _0x43b6c3=_0x17bff6(_0x4fde3e);_0x43b6c3&&_0x43b6c3[_0x4f4148([0x61,0x6c,0x67])]==_0x4f4148([0x45,0x53,0x32,0x35,0x36])||(_0x500a5a=!0x1);}async function _0x4781d8(_0x3ee8b4,_0x211eb5,_0x572ec7){const _0x20ffc3=window[_0x4f4148([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f4148([0x66,0x72,0x6f,0x6d])](_0x25ec7b(_0x572ec7),_0x7a053d=>_0x7a053d[_0x4f4148([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x540cbd=new window[(_0x4f4148([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f4148([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3ee8b4+_0x4f4148([0x2e])+_0x211eb5),_0x58a636=window[_0x4f4148([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f4148([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x58a636)return;const _0x90ff28=await _0x58a636[_0x4f4148([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f4148([0x6a,0x77,0x6b]),_0x4b62f3,{[_0x4f4148([0x6e,0x61,0x6d,0x65])]:_0x4f4148([0x45,0x43,0x44,0x53,0x41]),[_0x4f4148([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f4148([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f4148([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x58a636[_0x4f4148([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f4148([0x6e,0x61,0x6d,0x65])]:_0x4f4148([0x45,0x43,0x44,0x53,0x41]),[_0x4f4148([0x68,0x61,0x73,0x68])]:{[_0x4f4148([0x6e,0x61,0x6d,0x65])]:_0x4f4148([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x90ff28,_0x20ffc3,_0x540cbd)||(_0x500a5a=!0x1);}}function _0x17bff6(_0x3f94e7){return _0x3f94e7[_0x4f4148([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f4148([0x65,0x79]))?JSON[_0x4f4148([0x70,0x61,0x72,0x73,0x65])](_0x25ec7b(_0x3f94e7)):null;}function _0x25ec7b(_0x10eb3d){return window[_0x4f4148([0x61,0x74,0x6f,0x62])](_0x10eb3d[_0x4f4148([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f4148([0x2b]))[_0x4f4148([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f4148([0x2f])));}function _0x9153bf(_0x5d31ef){let _0x58897c=0x1505;function _0x37e527(_0x2ec670){for(let _0x5dffae=0x0;_0x5dffae<_0x2ec670[_0x4f4148([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dffae++){const _0x288ae5=_0x2ec670[_0x4f4148([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5dffae);_0x58897c=(_0x58897c<<0x5)+_0x58897c+_0x288ae5,_0x58897c&=_0x58897c;}}function _0x1fe5a6(_0x29dcf1){Array[_0x4f4148([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x29dcf1)?_0x29dcf1[_0x4f4148([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1fe5a6):_0x29dcf1&&typeof _0x29dcf1==_0x4f4148([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f4148([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x29dcf1)[_0x4f4148([0x73,0x6f,0x72,0x74])]()[_0x4f4148([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3fdd16,_0x43120e])=>{_0x37e527(_0x3fdd16),_0x1fe5a6(_0x43120e);}):_0x37e527(window[_0x4f4148([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x29dcf1));}return _0x1fe5a6(_0x5d31ef),_0x58897c>>>0x0;}function _0x5589a4(_0xb8b9a){return _0xb8b9a[_0x4f4148([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f4148([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f4148([0x30]));}function _0x31167f(_0x21605c){return _0x21605c[_0x4f4148([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f4148([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f4148([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d8511(){}function _0x4f4148(_0x3d9440){return _0x3d9440['map'](_0x5a42d4=>String['fromCharCode'](_0x5a42d4))['join']('');}_0x3ce6ef(await _0x5b6719());}(this);}['_toggleSpecialCursor'](_0x309c31){this['editor']['editing']['view']['change'](_0x5c2951=>{for(const _0x10d683 of this['editor']['editing']['view']['document']['roots'])_0x309c31?_0x5c2951['addClass'](h,_0x10d683):_0x5c2951['removeClass'](h,_0x10d683);});}['_copyFormatting'](){const {editor:_0x1d393f}=this;_0x1d393f['execute'](w),_0x1d393f['ui']['ariaLiveAnnouncer']['announce'](p(_0x1d393f['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x365f52}=this,_0x543f1f=_0x365f52['commands']['get'](w)['value'];_0x365f52['execute'](g,_0x543f1f),_0x365f52['ui']['ariaLiveAnnouncer']['announce'](p(_0x365f52['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](w)['reset'](),this['stopListening'](_0x456ad3['window']['document'],'mouseup');}}class FormatPainter extends _0x4eee4{static get['requires'](){return[FormatPainterEditing,FormatPainterUI];}static get['pluginName'](){return'FormatPainter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{CopyFormatCommand,FormatPainter,FormatPainterEditing,FormatPainterUI,PasteFormatCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-format-painter",
3
- "version": "48.8.1-alpha.0",
3
+ "version": "48.8.1-alpha.1",
4
4
  "description": "Format painter feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -21,12 +21,12 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@ckeditor/ckeditor5-core": "48.8.1-alpha.0",
25
- "@ckeditor/ckeditor5-engine": "48.8.1-alpha.0",
26
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.0",
27
- "@ckeditor/ckeditor5-remove-format": "48.8.1-alpha.0",
28
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.0",
29
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.0"
24
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.1",
25
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.1",
26
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.1",
27
+ "@ckeditor/ckeditor5-remove-format": "48.8.1-alpha.1",
28
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.1",
29
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.1"
30
30
  },
31
31
  "files": [
32
32
  "dist",