@ckeditor/ckeditor5-format-painter 48.2.0-alpha.4 → 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 +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 _0x146492,Plugin as _0x14c244}from'@ckeditor/ckeditor5-core/dist/index.js';import{RemoveFormatCommand as _0x20fb50}from'@ckeditor/ckeditor5-remove-format/dist/index.js';import{createDropdown as _0x362eb9,SplitButtonView as _0x563775,UIModel as _0x1838be,addListToDropdown as _0x150ca6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DomEmitterMixin as _0x5f4588,Collection as _0x4566cb,global as _0x1e9561,uid as _0x35327c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ClickObserver as _0x5a4c91}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconPaintRoller as _0x58d117}from'@ckeditor/ckeditor5-icons/dist/index.js';const w='copyFormat',g='pasteFormat',h='ck-format-painter-active';class CopyFormatCommand extends _0x146492{constructor(_0xadc0f3){super(_0xadc0f3),this['value']=void 0x0,this['on']('change:isEnabled',(_0xfa8e58,_0x1c605e,_0x2d0ee0)=>{_0x2d0ee0||this['reset']();}),this['on']('change:value',()=>_0xadc0f3['commands']['get'](g)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0x5384fe=this['editor']['model'],_0x2f6c84=_0x5384fe['document']['selection'];return Object['fromEntries'](Array['from'](_0x2f6c84['getAttributes']())['filter'](([_0x15e266])=>_0x5384fe['schema']['getAttributeProperties'](_0x15e266)['isFormatting']));}}class PasteFormatCommand extends _0x146492{constructor(_0x430e9b){super(_0x430e9b),this['_removeFormatCommand']=new _0x20fb50(_0x430e9b);}['execute'](_0xc44a4={}){const _0x4d51d5=this['editor']['model'],_0x52729c=_0x4d51d5['document']['selection'],_0xbd0ff2=Array['from'](_0x52729c['getRanges']()),_0xa9fedc=_0x52729c['isCollapsed']?[this['_createRangeOnEntireWord'](_0x4d51d5,_0x52729c)]:_0xbd0ff2;_0x4d51d5['change'](_0x26ab8f=>{_0x26ab8f['setSelection'](_0xa9fedc),this['_removeFormatCommand']['execute']();for(const _0x1dc691 in _0xc44a4)for(const _0x1db806 of _0x4d51d5['schema']['getValidRanges'](_0xa9fedc,_0x1dc691))_0x26ab8f['setAttribute'](_0x1dc691,_0xc44a4[_0x1dc691],_0x1db806);_0x26ab8f['setSelection'](_0xbd0ff2);});}['_createRangeOnEntireWord'](_0x31e810,_0x520763){const _0x9ad90a=_0x31e810['createSelection'](_0x520763);_0x31e810['modifySelection'](_0x9ad90a,{'unit':'word','direction':'backward'});const _0x5d13de=_0x9ad90a['getFirstPosition']();_0x31e810['modifySelection'](_0x9ad90a,{'unit':'word','direction':'forward'});const _0x5093ed=_0x9ad90a['getLastPosition']();return _0x31e810['createRange'](_0x5d13de,_0x5093ed);}}class FormatPainterEditing extends _0x14c244{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x59ebdd=this['editor'];_0x59ebdd['commands']['add'](w,new CopyFormatCommand(_0x59ebdd)),_0x59ebdd['commands']['add'](g,new PasteFormatCommand(_0x59ebdd)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x316262=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2e5997;for(const _0x36b76a in _0x316262){const _0x3ba37d=_0x36b76a,_0x4b0683=_0x316262[_0x3ba37d];if('formatPainterLicenseKeyValid'==_0x4b0683||'formatPainterLicenseKeyInvalid'==_0x4b0683||'formatPainterLicenseKeyExpired'==_0x4b0683||'formatPainterLicenseKeyDomainLimit'==_0x4b0683||'formatPainterLicenseKeyNotAllowed'==_0x4b0683||'formatPainterLicenseKeyEvaluationLimit'==_0x4b0683||'formatPainterLicenseKeyUsageLimit'==_0x4b0683){delete _0x316262[_0x3ba37d],_0x2e5997=_0x4b0683,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x2e5997&&_0x316262['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x2e5997&&_0x316262['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x2e5997&&_0x316262['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x2e5997&&_0x316262['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x2e5997&&_0x316262['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x2e5997&&_0x316262['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function p(_0x56435d,_0x4e3679){const t=_0x56435d['t'];switch(_0x4e3679){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 _0x4e3679;}}class FormatPainterUI extends/* #__PURE__ -- @preserve */
24
- _0x5f4588(_0x14c244){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3e5786=this['editor'];_0x3e5786['editing']['view']['addObserver'](_0x5a4c91),_0x3e5786['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':p(_0x3e5786['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':p(_0x3e5786['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x3e5786['ui']['componentFactory']['add']('formatPainter',_0x362fe7=>{const _0x562935=_0x362eb9(_0x362fe7,_0x563775),_0x90aca5=_0x3e5786['commands']['get'](w);_0x562935['buttonView']['set']({'label':p(_0x3e5786['locale'],'Paint\x20formatting'),'icon':_0x58d117,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x562935['class']='ck-format-painter-dropdown',_0x90aca5&&(_0x562935['bind']('isEnabled')['to'](_0x90aca5,'isEnabled'),this['listenTo'](_0x90aca5,'change:isEnabled',(_0x49eeb0,_0x3959ef,_0x1a11d2)=>{_0x1a11d2||this['_finishPainting']();}),_0x562935['buttonView']['bind']('isOn')['to'](_0x90aca5,'value',_0x2c9c18=>!!_0x2c9c18),this['listenTo'](_0x3e5786,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x90aca5,'change:value',(_0xa7af6d,_0xe8b898,_0xcb06d3)=>{this['_toggleSpecialCursor'](!!_0xcb06d3);}));const _0x577c36=new _0x1838be({'withText':!0x0,'label':p(_0x3e5786['locale'],'Continuous\x20painting'),'tooltip':p(_0x3e5786['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});_0x150ca6(_0x562935,new _0x4566cb([{'type':'switchbutton','model':_0x577c36}]),{'role':'menu'});const _0x321883=()=>{this['_copyFormatting'](),this['listenTo'](_0x1e9561['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x577c36['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x562935,'execute',()=>{_0x577c36['isOn']=!_0x577c36['isOn'];}),this['listenTo'](_0x562935['buttonView'],'execute',()=>{_0x3e5786['editing']['view']['focus'](),_0x562935['buttonView']['isOn']?this['_finishPainting']():_0x321883();}),_0x3e5786['keystrokes']['set']('Ctrl+Alt+C',(_0x164190,_0x39e922)=>{_0x321883(),_0x577c36['isOn']=!0x0,_0x39e922();},{'priority':'high'}),_0x3e5786['keystrokes']['set']('Ctrl+Alt+V',(_0x38f374,_0x351da5)=>{_0x562935['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x577c36['isOn']||this['_finishPainting'](),_0x351da5());},{'priority':'high'}),_0x3e5786['keystrokes']['set']('Esc',(_0x4f352d,_0x5937f2)=>{_0x562935['buttonView']['isOn']&&(_0x577c36['isOn']=!0x1,this['_finishPainting'](),_0x3e5786['ui']['ariaLiveAnnouncer']['announce'](p(_0x3e5786['locale'],'Painting\x20cancelled.')),_0x5937f2());}),_0x562935;});}['afterInit'](){!async function(_0x39afd3){const _0x43a214=_0x5d9a5b([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]),_0x51ca0f=0x4597e011,_0x4c6da6=0x45906bb1^_0x51ca0f,_0x3d3ffb=window[_0x5d9a5b([0x44,0x61,0x74,0x65])][_0x5d9a5b([0x6e,0x6f,0x77])](),_0x1f731c=_0x39afd3[_0x5d9a5b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1f45a4=new window[(_0x5d9a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36efd2=>{_0x1f731c[_0x5d9a5b([0x6f,0x6e,0x63,0x65])](_0x5d9a5b([0x72,0x65,0x61,0x64,0x79]),_0x36efd2);}),_0x198c64={[_0x5d9a5b([0x6b,0x74,0x79])]:_0x5d9a5b([0x45,0x43]),[_0x5d9a5b([0x75,0x73,0x65])]:_0x5d9a5b([0x73,0x69,0x67]),[_0x5d9a5b([0x63,0x72,0x76])]:_0x5d9a5b([0x50,0x2d,0x32,0x35,0x36]),[_0x5d9a5b([0x78])]:_0x5d9a5b([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]),[_0x5d9a5b([0x79])]:_0x5d9a5b([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]),[_0x5d9a5b([0x61,0x6c,0x67])]:_0x5d9a5b([0x45,0x53,0x32,0x35,0x36])},_0x25e961=_0x1f731c[_0x5d9a5b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d9a5b([0x67,0x65,0x74])](_0x5d9a5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x377b7c(){let _0x59b700,_0x53bffc=null,_0x5132ec=null;try{if(_0x25e961==_0x5d9a5b([0x47,0x50,0x4c]))return _0x5d9a5b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x59b700=_0x5c682b(),!_0x59b700)return _0x5d9a5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x59b700[_0x5d9a5b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5132ec=_0x18f1f6(_0x59b700[_0x5d9a5b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x59b700[_0x5d9a5b([0x6a,0x74,0x69])])),await _0x1f0ffe()?_0x7d25ff()?_0x4f4c51()?_0x5d9a5b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41f59f()?(_0x59b700[_0x5d9a5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d9a5b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x53bffc=_0x2401e3(_0x5d9a5b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3106ef()):_0x5d9a5b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d9a5b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d9a5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5d9a5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4f4c51(){const _0x5d41df=[_0x5d9a5b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d9a5b([0x74,0x72,0x69,0x61,0x6c])][_0x5d9a5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59b700[_0x5d9a5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d3ffb/0x3e8:0xe10*_0x4c6da6;return _0x59b700[_0x5d9a5b([0x65,0x78,0x70])]<_0x5d41df;}function _0x7d25ff(){const _0x5c44e6=_0x59b700[_0x5d9a5b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5c44e6&&(!!_0x5c44e6[_0x5d9a5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d9a5b([0x2a]))||(!!_0x5c44e6[_0x5d9a5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d9a5b([0x46,0x50]))||(!!_0x5c44e6[_0x5d9a5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d9a5b([0x50,0x50]))||!(!_0x5c44e6[_0x5d9a5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d9a5b([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x440d62()))));}function _0x41f59f(){const _0x6c54b4=_0x59b700[_0x5d9a5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x6c54b4||0x0==_0x6c54b4[_0x5d9a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x425f10}=new URL(window[_0x5d9a5b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x6c54b4[_0x5d9a5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x425f10))return!0x0;const _0x5ea95f=_0x425f10[_0x5d9a5b([0x73,0x70,0x6c,0x69,0x74])](_0x5d9a5b([0x2e]));return _0x6c54b4[_0x5d9a5b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21b348=>_0x21b348[_0x5d9a5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d9a5b([0x2a])))[_0x5d9a5b([0x6d,0x61,0x70])](_0x580ea5=>_0x580ea5[_0x5d9a5b([0x73,0x70,0x6c,0x69,0x74])](_0x5d9a5b([0x2e])))[_0x5d9a5b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9af0f4=>_0x9af0f4[_0x5d9a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5ea95f[_0x5d9a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d9a5b([0x6d,0x61,0x70])](_0x53c1a1=>Array(_0x5ea95f[_0x5d9a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x53c1a1[_0x5d9a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d9a5b([0x66,0x69,0x6c,0x6c])](_0x53c1a1[0x0]===_0x5d9a5b([0x2a])?_0x5d9a5b([0x2a]):'')[_0x5d9a5b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x53c1a1))[_0x5d9a5b([0x73,0x6f,0x6d,0x65])](_0x1bbfff=>_0x5ea95f[_0x5d9a5b([0x65,0x76,0x65,0x72,0x79])]((_0x75b8ee,_0x559ad5)=>_0x1bbfff[_0x559ad5]===_0x75b8ee||_0x1bbfff[_0x559ad5]===_0x5d9a5b([0x2a])));}function _0x3106ef(){return _0x53bffc&&_0x5132ec?new window[(_0x5d9a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9edfc1,_0x333432)=>{_0x53bffc[_0x5d9a5b([0x74,0x68,0x65,0x6e])](_0x9edfc1,_0x333432),_0x5132ec[_0x5d9a5b([0x74,0x68,0x65,0x6e])](_0x5158e3=>{_0x5158e3!=_0x5d9a5b([0x56,0x61,0x6c,0x69,0x64])&&_0x9edfc1(_0x5158e3);},_0x333432);}):_0x53bffc||_0x5132ec||_0x5d9a5b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x18f1f6(_0x561338,_0x467d4d){return new window[(_0x5d9a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d9209=>{if(_0x1b38b7())return _0x1d9209(_0x5d9a5b([0x56,0x61,0x6c,0x69,0x64]));_0x59238b(),_0x1f731c[_0x5d9a5b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d9a5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x455591=!0x1;const _0x2c6979=_0x35327c();function _0x238272(_0x4b0c04){return!!_0x4b0c04&&(typeof _0x4b0c04===_0x5d9a5b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b0c04===_0x5d9a5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b0c04[_0x5d9a5b([0x74,0x68,0x65,0x6e])]===_0x5d9a5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b0c04[_0x5d9a5b([0x63,0x61,0x74,0x63,0x68])]===_0x5d9a5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x18f65f(_0x121d24){_0x346805(_0x121d24)[_0x5d9a5b([0x74,0x68,0x65,0x6e])](_0x4b0c73=>{if(!_0x4b0c73||_0x4b0c73[_0x5d9a5b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d9a5b([0x6f,0x6b]))return _0x5d9a5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e9d8d(_0x3bea72(_0x2c6979+_0x467d4d))!=_0x4b0c73[_0x5d9a5b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d9a5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d9a5b([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d9a5b([0x74,0x68,0x65,0x6e])](_0x30aad4=>(_0x4bfecb(),_0x30aad4),()=>{const _0x5ba07b=_0x2d35a9();return null==_0x5ba07b?(_0x4bfecb(),_0x5d9a5b([0x56,0x61,0x6c,0x69,0x64])):_0x5d9a5b(_0x3d3ffb-_0x5ba07b>(0x619b6411^_0x51ca0f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d9a5b([0x74,0x68,0x65,0x6e])](_0x1d9209)[_0x5d9a5b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d9209(_0x5d9a5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4ddb47=0x45a10e91^_0x51ca0f;function _0x4bfecb(){const _0x3f197d=_0x5d9a5b([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e9d8d(_0x3bea72(_0x561338)),_0x8d22d6=_0x2a27f7(_0x3e9d8d(window[_0x5d9a5b([0x4d,0x61,0x74,0x68])][_0x5d9a5b([0x63,0x65,0x69,0x6c])](_0x3d3ffb/_0x4ddb47)));window[_0x5d9a5b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d9a5b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f197d,_0x8d22d6);}function _0x2d35a9(){const _0x38feeb=_0x5d9a5b([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e9d8d(_0x3bea72(_0x561338)),_0x3c76f7=window[_0x5d9a5b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d9a5b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x38feeb);return _0x3c76f7?window[_0x5d9a5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a27f7(_0x3c76f7),0x10)*_0x4ddb47:null;}function _0x346805(_0x4c2d6f){return new window[(_0x5d9a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a3a8f,_0xd99e8d)=>{_0x4c2d6f[_0x5d9a5b([0x74,0x68,0x65,0x6e])](_0x2a3a8f,_0xd99e8d),window[_0x5d9a5b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xd99e8d,0x459634d1^_0x51ca0f);});}}_0x1f731c[_0x5d9a5b([0x6f,0x6e])](_0x5d9a5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x18c52d,_0x5d2732)=>{if(_0x5d2732[0x0]!=_0x561338)return _0x1d9209(_0x5d9a5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d2732[0x1]={..._0x5d2732[0x1],[_0x5d9a5b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2c6979};},{[_0x5d9a5b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d9a5b([0x68,0x69,0x67,0x68])}),_0x1f731c[_0x5d9a5b([0x6f,0x6e])](_0x5d9a5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x416761=>{_0x238272(_0x416761[_0x5d9a5b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x455591=!0x0,_0x18f65f(_0x416761[_0x5d9a5b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d9a5b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d9a5b([0x6c,0x6f,0x77])}),_0x1f45a4[_0x5d9a5b([0x74,0x68,0x65,0x6e])](()=>{_0x455591||_0x1d9209(_0x5d9a5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b38b7(){return _0x1f731c[_0x5d9a5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d9a5b([0x76,0x69,0x65,0x77])][_0x5d9a5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d9a5b([0x61,0x75,0x74,0x6f]);}function _0x59238b(){_0x1f731c[_0x5d9a5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d9a5b([0x76,0x69,0x65,0x77])][_0x5d9a5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d9a5b([0x61,0x75,0x74,0x6f]);}}function _0x2401e3(_0x4ddf92){const _0x5a4f9f=[new window[(_0x5d9a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x450a38=>setTimeout(_0x450a38,0x459ededd^_0x51ca0f)),_0x1f45a4[_0x5d9a5b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d9a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x441ed1=>{let _0x3bc571=0x0;_0x1f731c[_0x5d9a5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d9a5b([0x6f,0x6e])](_0x5d9a5b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xfe37ec,_0x3af74b)=>{_0x3af74b[0x0][_0x5d9a5b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3bc571++,_0x3bc571==(0x4597e5f9^_0x51ca0f)&&(_0x441ed1(),_0xfe37ec[_0x5d9a5b([0x6f,0x66,0x66])]());});}))];return window[_0x5d9a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d9a5b([0x72,0x61,0x63,0x65])](_0x5a4f9f)[_0x5d9a5b([0x74,0x68,0x65,0x6e])](()=>_0x4ddf92);}async function _0x3c6663(){await _0x1f45a4,_0x1f731c[_0x5d9a5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d9a5b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x430506,_0x1f731c[_0x5d9a5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d9a5b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x430506,_0x1f731c[_0x5d9a5b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d9a5b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x440d62(){return window[_0x5d9a5b([0x67,0x6c,0x6f,0x62])]&&window[_0x5d9a5b([0x67,0x6c,0x6f,0x62])][_0x5d9a5b([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x46df82(_0x4e6878){const _0x267edc=_0x4298c8();_0x1f731c[_0x267edc]=_0x5d9a5b([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e6878,_0x4e6878!=_0x5d9a5b([0x56,0x61,0x6c,0x69,0x64])&&_0x3c6663();}function _0x4298c8(){const _0x41f71e=window[_0x5d9a5b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d9a5b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d9a5b([0x6e,0x6f,0x77])]())[_0x5d9a5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d9a5b([0x2e]),'');let _0x5cbc7c=_0x5d9a5b([0x51]);for(let _0x70d99b=0x0;_0x70d99b<_0x41f71e[_0x5d9a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x70d99b+=0x2){let _0x37a53a=window[_0x5d9a5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41f71e[_0x5d9a5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x70d99b,_0x70d99b+0x2));_0x37a53a>=_0x43a214[_0x5d9a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x37a53a-=_0x43a214[_0x5d9a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5cbc7c+=_0x43a214[_0x37a53a];}return _0x5cbc7c;}function _0x5c682b(){const _0xc5f5b0=_0x25e961[_0x5d9a5b([0x73,0x70,0x6c,0x69,0x74])](_0x5d9a5b([0x2e]));if(0x3!=_0xc5f5b0[_0x5d9a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x15a233(_0xc5f5b0[0x1]);function _0x15a233(_0x5660e5){const _0x57caf9=_0x96a428(_0x5660e5);return _0x57caf9&&_0x1ff817()?_0x57caf9:null;function _0x1ff817(){const _0xcacc34=_0x57caf9[_0x5d9a5b([0x6a,0x74,0x69])],_0x2b8374=window[_0x5d9a5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcacc34[_0x5d9a5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcacc34[_0x5d9a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4bfec8={..._0x57caf9,[_0x5d9a5b([0x6a,0x74,0x69])]:_0xcacc34[_0x5d9a5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xcacc34[_0x5d9a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4bfec8[_0x5d9a5b([0x76,0x63])],_0x3bea72(_0x4bfec8)==_0x2b8374;}}}async function _0x1f0ffe(){let _0x2a20e1=!0x0;try{const _0x3a06a1=_0x25e961[_0x5d9a5b([0x73,0x70,0x6c,0x69,0x74])](_0x5d9a5b([0x2e])),[_0x1d9df9,_0x227f47,_0x20f7d7]=_0x3a06a1;return _0x2fa963(_0x1d9df9),await _0x4784ef(_0x1d9df9,_0x227f47,_0x20f7d7),_0x2a20e1;}catch{return!0x1;}function _0x2fa963(_0x112e30){const _0x1217e6=_0x96a428(_0x112e30);_0x1217e6&&_0x1217e6[_0x5d9a5b([0x61,0x6c,0x67])]==_0x5d9a5b([0x45,0x53,0x32,0x35,0x36])||(_0x2a20e1=!0x1);}async function _0x4784ef(_0x5c1646,_0x563cae,_0x1f77f0){const _0x2a83fc=window[_0x5d9a5b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d9a5b([0x66,0x72,0x6f,0x6d])](_0x5a4eec(_0x1f77f0),_0x48da21=>_0x48da21[_0x5d9a5b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4a8f64=new window[(_0x5d9a5b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d9a5b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c1646+_0x5d9a5b([0x2e])+_0x563cae),_0x11e1e6=window[_0x5d9a5b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d9a5b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x11e1e6)return;const _0x424a9c=await _0x11e1e6[_0x5d9a5b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d9a5b([0x6a,0x77,0x6b]),_0x198c64,{[_0x5d9a5b([0x6e,0x61,0x6d,0x65])]:_0x5d9a5b([0x45,0x43,0x44,0x53,0x41]),[_0x5d9a5b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d9a5b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d9a5b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x11e1e6[_0x5d9a5b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d9a5b([0x6e,0x61,0x6d,0x65])]:_0x5d9a5b([0x45,0x43,0x44,0x53,0x41]),[_0x5d9a5b([0x68,0x61,0x73,0x68])]:{[_0x5d9a5b([0x6e,0x61,0x6d,0x65])]:_0x5d9a5b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x424a9c,_0x2a83fc,_0x4a8f64)||(_0x2a20e1=!0x1);}}function _0x96a428(_0x595ef5){return _0x595ef5[_0x5d9a5b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d9a5b([0x65,0x79]))?JSON[_0x5d9a5b([0x70,0x61,0x72,0x73,0x65])](_0x5a4eec(_0x595ef5)):null;}function _0x5a4eec(_0x53ef20){return window[_0x5d9a5b([0x61,0x74,0x6f,0x62])](_0x53ef20[_0x5d9a5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d9a5b([0x2b]))[_0x5d9a5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d9a5b([0x2f])));}function _0x3bea72(_0x39e48f){let _0x21280c=0x1505;function _0x31c448(_0x25b302){for(let _0x1b95d8=0x0;_0x1b95d8<_0x25b302[_0x5d9a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b95d8++){const _0xc69298=_0x25b302[_0x5d9a5b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1b95d8);_0x21280c=(_0x21280c<<0x5)+_0x21280c+_0xc69298,_0x21280c&=_0x21280c;}}function _0x21ce2f(_0x9dfa0d){Array[_0x5d9a5b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9dfa0d)?_0x9dfa0d[_0x5d9a5b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x21ce2f):_0x9dfa0d&&typeof _0x9dfa0d==_0x5d9a5b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d9a5b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9dfa0d)[_0x5d9a5b([0x73,0x6f,0x72,0x74])]()[_0x5d9a5b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2adbc0,_0x113d1c])=>{_0x31c448(_0x2adbc0),_0x21ce2f(_0x113d1c);}):_0x31c448(window[_0x5d9a5b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9dfa0d));}return _0x21ce2f(_0x39e48f),_0x21280c>>>0x0;}function _0x3e9d8d(_0x55da32){return _0x55da32[_0x5d9a5b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d9a5b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d9a5b([0x30]));}function _0x2a27f7(_0x456354){return _0x456354[_0x5d9a5b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d9a5b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d9a5b([0x6a,0x6f,0x69,0x6e])]('');}function _0x430506(){}function _0x5d9a5b(_0x1b1fed){return _0x1b1fed['map'](_0x28d5d4=>String['fromCharCode'](_0x28d5d4))['join']('');}_0x46df82(await _0x377b7c());}(this);}['_toggleSpecialCursor'](_0x418853){this['editor']['editing']['view']['change'](_0x29749a=>{for(const _0x4df916 of this['editor']['editing']['view']['document']['roots'])_0x418853?_0x29749a['addClass'](h,_0x4df916):_0x29749a['removeClass'](h,_0x4df916);});}['_copyFormatting'](){const {editor:_0xe43b52}=this;_0xe43b52['execute'](w),_0xe43b52['ui']['ariaLiveAnnouncer']['announce'](p(_0xe43b52['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x527e8d}=this,_0x293ef8=_0x527e8d['commands']['get'](w)['value'];_0x527e8d['execute'](g,_0x293ef8),_0x527e8d['ui']['ariaLiveAnnouncer']['announce'](p(_0x527e8d['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](w)['reset'](),this['stopListening'](_0x1e9561['window']['document'],'mouseup');}}class FormatPainter extends _0x14c244{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 _0x359f8f,Plugin as _0x35dc5e}from'@ckeditor/ckeditor5-core/dist/index.js';import{RemoveFormatCommand as _0x554778}from'@ckeditor/ckeditor5-remove-format/dist/index.js';import{createDropdown as _0x135f1a,SplitButtonView as _0x5afa08,UIModel as _0x145557,addListToDropdown as _0x5376f3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DomEmitterMixin as _0x49d667,Collection as _0x3ecfe4,global as _0x1d5ec0,uid as _0x3deacb}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ClickObserver as _0x43b6cc}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconPaintRoller as _0x4d83c1}from'@ckeditor/ckeditor5-icons/dist/index.js';const w='copyFormat',g='pasteFormat',h='ck-format-painter-active';class CopyFormatCommand extends _0x359f8f{constructor(_0x3e4c6d){super(_0x3e4c6d),this['value']=void 0x0,this['on']('change:isEnabled',(_0x340f04,_0x23730e,_0x5b99fe)=>{_0x5b99fe||this['reset']();}),this['on']('change:value',()=>_0x3e4c6d['commands']['get'](g)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0xf1a9e3=this['editor']['model'],_0x40add3=_0xf1a9e3['document']['selection'];return Object['fromEntries'](Array['from'](_0x40add3['getAttributes']())['filter'](([_0x45615d])=>_0xf1a9e3['schema']['getAttributeProperties'](_0x45615d)['isFormatting']));}}class PasteFormatCommand extends _0x359f8f{constructor(_0x4d10c7){super(_0x4d10c7),this['_removeFormatCommand']=new _0x554778(_0x4d10c7);}['execute'](_0x184a0c={}){const _0x1d598d=this['editor']['model'],_0x2274c9=_0x1d598d['document']['selection'],_0x3b30cb=Array['from'](_0x2274c9['getRanges']()),_0x38c268=_0x2274c9['isCollapsed']?[this['_createRangeOnEntireWord'](_0x1d598d,_0x2274c9)]:_0x3b30cb;_0x1d598d['change'](_0xbc894c=>{_0xbc894c['setSelection'](_0x38c268),this['_removeFormatCommand']['execute']();for(const _0x9be762 in _0x184a0c)for(const _0xd502d9 of _0x1d598d['schema']['getValidRanges'](_0x38c268,_0x9be762))_0xbc894c['setAttribute'](_0x9be762,_0x184a0c[_0x9be762],_0xd502d9);_0xbc894c['setSelection'](_0x3b30cb);});}['_createRangeOnEntireWord'](_0x4a090b,_0x275f24){const _0x4ef263=_0x4a090b['createSelection'](_0x275f24);_0x4a090b['modifySelection'](_0x4ef263,{'unit':'word','direction':'backward'});const _0x55e080=_0x4ef263['getFirstPosition']();_0x4a090b['modifySelection'](_0x4ef263,{'unit':'word','direction':'forward'});const _0x1a5905=_0x4ef263['getLastPosition']();return _0x4a090b['createRange'](_0x55e080,_0x1a5905);}}class FormatPainterEditing extends _0x35dc5e{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x167f89=this['editor'];_0x167f89['commands']['add'](w,new CopyFormatCommand(_0x167f89)),_0x167f89['commands']['add'](g,new PasteFormatCommand(_0x167f89)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5b41ab=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5ad27a;for(const _0x1a8bb2 in _0x5b41ab){const _0x53cbcf=_0x1a8bb2,_0x3dab7a=_0x5b41ab[_0x53cbcf];if('formatPainterLicenseKeyValid'==_0x3dab7a||'formatPainterLicenseKeyInvalid'==_0x3dab7a||'formatPainterLicenseKeyExpired'==_0x3dab7a||'formatPainterLicenseKeyDomainLimit'==_0x3dab7a||'formatPainterLicenseKeyNotAllowed'==_0x3dab7a||'formatPainterLicenseKeyEvaluationLimit'==_0x3dab7a||'formatPainterLicenseKeyUsageLimit'==_0x3dab7a){delete _0x5b41ab[_0x53cbcf],_0x5ad27a=_0x3dab7a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x5ad27a&&_0x5b41ab['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x5ad27a&&_0x5b41ab['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x5ad27a&&_0x5b41ab['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x5ad27a&&_0x5b41ab['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x5ad27a&&_0x5b41ab['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x5ad27a&&_0x5b41ab['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function p(_0x46877e,_0x35dd18){const t=_0x46877e['t'];switch(_0x35dd18){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 _0x35dd18;}}class FormatPainterUI extends/* #__PURE__ -- @preserve */
24
+ _0x49d667(_0x35dc5e){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4b069b=this['editor'];_0x4b069b['editing']['view']['addObserver'](_0x43b6cc),_0x4b069b['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':p(_0x4b069b['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':p(_0x4b069b['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x4b069b['ui']['componentFactory']['add']('formatPainter',_0x5d2af6=>{const _0x19b1cd=_0x135f1a(_0x5d2af6,_0x5afa08),_0x3fb409=_0x4b069b['commands']['get'](w);_0x19b1cd['buttonView']['set']({'label':p(_0x4b069b['locale'],'Paint\x20formatting'),'icon':_0x4d83c1,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x19b1cd['class']='ck-format-painter-dropdown',_0x3fb409&&(_0x19b1cd['bind']('isEnabled')['to'](_0x3fb409,'isEnabled'),this['listenTo'](_0x3fb409,'change:isEnabled',(_0x1bdfdc,_0x94a4d3,_0x75afcb)=>{_0x75afcb||this['_finishPainting']();}),_0x19b1cd['buttonView']['bind']('isOn')['to'](_0x3fb409,'value',_0x45bba7=>!!_0x45bba7),this['listenTo'](_0x4b069b,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x3fb409,'change:value',(_0x4be49a,_0x3778ad,_0x13e452)=>{this['_toggleSpecialCursor'](!!_0x13e452);}));const _0x5865bf=new _0x145557({'withText':!0x0,'label':p(_0x4b069b['locale'],'Continuous\x20painting'),'tooltip':p(_0x4b069b['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});_0x5376f3(_0x19b1cd,new _0x3ecfe4([{'type':'switchbutton','model':_0x5865bf}]),{'role':'menu'});const _0x2043d1=()=>{this['_copyFormatting'](),this['listenTo'](_0x1d5ec0['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x5865bf['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x19b1cd,'execute',()=>{_0x5865bf['isOn']=!_0x5865bf['isOn'];}),this['listenTo'](_0x19b1cd['buttonView'],'execute',()=>{_0x4b069b['editing']['view']['focus'](),_0x19b1cd['buttonView']['isOn']?this['_finishPainting']():_0x2043d1();}),_0x4b069b['keystrokes']['set']('Ctrl+Alt+C',(_0x385c22,_0x56e702)=>{_0x2043d1(),_0x5865bf['isOn']=!0x0,_0x56e702();},{'priority':'high'}),_0x4b069b['keystrokes']['set']('Ctrl+Alt+V',(_0x2d90a5,_0x194713)=>{_0x19b1cd['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x5865bf['isOn']||this['_finishPainting'](),_0x194713());},{'priority':'high'}),_0x4b069b['keystrokes']['set']('Esc',(_0x5f36e9,_0x21463a)=>{_0x19b1cd['buttonView']['isOn']&&(_0x5865bf['isOn']=!0x1,this['_finishPainting'](),_0x4b069b['ui']['ariaLiveAnnouncer']['announce'](p(_0x4b069b['locale'],'Painting\x20cancelled.')),_0x21463a());}),_0x19b1cd;});}['afterInit'](){!async function(_0x248ed6){const _0x56dde4=_0x23c3cb([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]),_0x585112=0x4597e011,_0x17db21=0x45906ba9^_0x585112,_0xedd4c2=window[_0x23c3cb([0x44,0x61,0x74,0x65])][_0x23c3cb([0x6e,0x6f,0x77])](),_0x14f498=_0x248ed6[_0x23c3cb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b1a7b=new window[(_0x23c3cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10fd4f=>{_0x14f498[_0x23c3cb([0x6f,0x6e,0x63,0x65])](_0x23c3cb([0x72,0x65,0x61,0x64,0x79]),_0x10fd4f);}),_0x67e154={[_0x23c3cb([0x6b,0x74,0x79])]:_0x23c3cb([0x45,0x43]),[_0x23c3cb([0x75,0x73,0x65])]:_0x23c3cb([0x73,0x69,0x67]),[_0x23c3cb([0x63,0x72,0x76])]:_0x23c3cb([0x50,0x2d,0x32,0x35,0x36]),[_0x23c3cb([0x78])]:_0x23c3cb([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]),[_0x23c3cb([0x79])]:_0x23c3cb([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]),[_0x23c3cb([0x61,0x6c,0x67])]:_0x23c3cb([0x45,0x53,0x32,0x35,0x36])},_0x3d4b79=_0x14f498[_0x23c3cb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x23c3cb([0x67,0x65,0x74])](_0x23c3cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x10c371(){let _0xee92f9,_0x824413=null,_0x2db658=null;try{if(_0x3d4b79==_0x23c3cb([0x47,0x50,0x4c]))return _0x23c3cb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xee92f9=_0x449c24(),!_0xee92f9)return _0x23c3cb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xee92f9[_0x23c3cb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2db658=_0x2db62c(_0xee92f9[_0x23c3cb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xee92f9[_0x23c3cb([0x6a,0x74,0x69])])),await _0x4bb539()?_0x1f6b03()?_0x958daa()?_0x23c3cb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x18d1b0()?(_0xee92f9[_0x23c3cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23c3cb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x824413=_0x359cfa(_0x23c3cb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x137516()):_0x23c3cb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x23c3cb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x23c3cb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x23c3cb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x958daa(){const _0x392fc0=[_0x23c3cb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x23c3cb([0x74,0x72,0x69,0x61,0x6c])][_0x23c3cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xee92f9[_0x23c3cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xedd4c2/0x3e8:0xe10*_0x17db21;return _0xee92f9[_0x23c3cb([0x65,0x78,0x70])]<_0x392fc0;}function _0x1f6b03(){const _0x3494b5=_0xee92f9[_0x23c3cb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3494b5&&(!!_0x3494b5[_0x23c3cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23c3cb([0x2a]))||(!!_0x3494b5[_0x23c3cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23c3cb([0x46,0x50]))||(!!_0x3494b5[_0x23c3cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23c3cb([0x50,0x50]))||!(!_0x3494b5[_0x23c3cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23c3cb([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0xb76318()))));}function _0x18d1b0(){const _0x56a93c=_0xee92f9[_0x23c3cb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x56a93c||0x0==_0x56a93c[_0x23c3cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x165472}=new URL(window[_0x23c3cb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x56a93c[_0x23c3cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x165472))return!0x0;const _0x1ceca7=_0x165472[_0x23c3cb([0x73,0x70,0x6c,0x69,0x74])](_0x23c3cb([0x2e]));return _0x56a93c[_0x23c3cb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2338eb=>_0x2338eb[_0x23c3cb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23c3cb([0x2a])))[_0x23c3cb([0x6d,0x61,0x70])](_0x1ba92c=>_0x1ba92c[_0x23c3cb([0x73,0x70,0x6c,0x69,0x74])](_0x23c3cb([0x2e])))[_0x23c3cb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11ece3=>_0x11ece3[_0x23c3cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ceca7[_0x23c3cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23c3cb([0x6d,0x61,0x70])](_0x577425=>Array(_0x1ceca7[_0x23c3cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x577425[_0x23c3cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23c3cb([0x66,0x69,0x6c,0x6c])](_0x577425[0x0]===_0x23c3cb([0x2a])?_0x23c3cb([0x2a]):'')[_0x23c3cb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x577425))[_0x23c3cb([0x73,0x6f,0x6d,0x65])](_0x258662=>_0x1ceca7[_0x23c3cb([0x65,0x76,0x65,0x72,0x79])]((_0x4e48d5,_0x5cb8e3)=>_0x258662[_0x5cb8e3]===_0x4e48d5||_0x258662[_0x5cb8e3]===_0x23c3cb([0x2a])));}function _0x137516(){return _0x824413&&_0x2db658?new window[(_0x23c3cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe399ae,_0xf55b44)=>{_0x824413[_0x23c3cb([0x74,0x68,0x65,0x6e])](_0xe399ae,_0xf55b44),_0x2db658[_0x23c3cb([0x74,0x68,0x65,0x6e])](_0x3472f5=>{_0x3472f5!=_0x23c3cb([0x56,0x61,0x6c,0x69,0x64])&&_0xe399ae(_0x3472f5);},_0xf55b44);}):_0x824413||_0x2db658||_0x23c3cb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2db62c(_0x29490d,_0x322b8f){return new window[(_0x23c3cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f60f1=>{if(_0x168128())return _0x4f60f1(_0x23c3cb([0x56,0x61,0x6c,0x69,0x64]));_0x1b5d87(),_0x14f498[_0x23c3cb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x23c3cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5ab9d1=!0x1;const _0x4a0e5f=_0x3deacb();function _0x2b384a(_0x26f497){return!!_0x26f497&&(typeof _0x26f497===_0x23c3cb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x26f497===_0x23c3cb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x26f497[_0x23c3cb([0x74,0x68,0x65,0x6e])]===_0x23c3cb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x26f497[_0x23c3cb([0x63,0x61,0x74,0x63,0x68])]===_0x23c3cb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f4c3c(_0x178eac){_0x2de955(_0x178eac)[_0x23c3cb([0x74,0x68,0x65,0x6e])](_0x405ccc=>{if(!_0x405ccc||_0x405ccc[_0x23c3cb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x23c3cb([0x6f,0x6b]))return _0x23c3cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28d999(_0x28dccc(_0x4a0e5f+_0x322b8f))!=_0x405ccc[_0x23c3cb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x23c3cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x23c3cb([0x56,0x61,0x6c,0x69,0x64]);})[_0x23c3cb([0x74,0x68,0x65,0x6e])](_0xed8ce7=>(_0x2143e1(),_0xed8ce7),()=>{const _0x2d0e98=_0x5f147b();return null==_0x2d0e98?(_0x2143e1(),_0x23c3cb([0x56,0x61,0x6c,0x69,0x64])):_0x23c3cb(_0xedd4c2-_0x2d0e98>(0x619b6411^_0x585112)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x23c3cb([0x74,0x68,0x65,0x6e])](_0x4f60f1)[_0x23c3cb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f60f1(_0x23c3cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5348cb=0x45a10e91^_0x585112;function _0x2143e1(){const _0x22406f=_0x23c3cb([0x6c,0x6c,0x63,0x74,0x2d])+_0x28d999(_0x28dccc(_0x29490d)),_0x45584d=_0x54105e(_0x28d999(window[_0x23c3cb([0x4d,0x61,0x74,0x68])][_0x23c3cb([0x63,0x65,0x69,0x6c])](_0xedd4c2/_0x5348cb)));window[_0x23c3cb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23c3cb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22406f,_0x45584d);}function _0x5f147b(){const _0x3fe8b1=_0x23c3cb([0x6c,0x6c,0x63,0x74,0x2d])+_0x28d999(_0x28dccc(_0x29490d)),_0x234c83=window[_0x23c3cb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23c3cb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3fe8b1);return _0x234c83?window[_0x23c3cb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54105e(_0x234c83),0x10)*_0x5348cb:null;}function _0x2de955(_0x142c4a){return new window[(_0x23c3cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x351876,_0x300f68)=>{_0x142c4a[_0x23c3cb([0x74,0x68,0x65,0x6e])](_0x351876,_0x300f68),window[_0x23c3cb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x300f68,0x459634d1^_0x585112);});}}_0x14f498[_0x23c3cb([0x6f,0x6e])](_0x23c3cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x96b3be,_0x397bf6)=>{if(_0x397bf6[0x0]!=_0x29490d)return _0x4f60f1(_0x23c3cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x397bf6[0x1]={..._0x397bf6[0x1],[_0x23c3cb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a0e5f};},{[_0x23c3cb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23c3cb([0x68,0x69,0x67,0x68])}),_0x14f498[_0x23c3cb([0x6f,0x6e])](_0x23c3cb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b68b5=>{_0x2b384a(_0x2b68b5[_0x23c3cb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5ab9d1=!0x0,_0x4f4c3c(_0x2b68b5[_0x23c3cb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x23c3cb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23c3cb([0x6c,0x6f,0x77])}),_0x5b1a7b[_0x23c3cb([0x74,0x68,0x65,0x6e])](()=>{_0x5ab9d1||_0x4f60f1(_0x23c3cb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x168128(){return _0x14f498[_0x23c3cb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23c3cb([0x76,0x69,0x65,0x77])][_0x23c3cb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x23c3cb([0x61,0x75,0x74,0x6f]);}function _0x1b5d87(){_0x14f498[_0x23c3cb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23c3cb([0x76,0x69,0x65,0x77])][_0x23c3cb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23c3cb([0x61,0x75,0x74,0x6f]);}}function _0x359cfa(_0x3372c8){const _0x193ed4=[new window[(_0x23c3cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x128ce4=>setTimeout(_0x128ce4,0x459ededd^_0x585112)),_0x5b1a7b[_0x23c3cb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x23c3cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x290566=>{let _0xf5ac7b=0x0;_0x14f498[_0x23c3cb([0x6d,0x6f,0x64,0x65,0x6c])][_0x23c3cb([0x6f,0x6e])](_0x23c3cb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x46721b,_0x25c648)=>{_0x25c648[0x0][_0x23c3cb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf5ac7b++,_0xf5ac7b==(0x4597e5f9^_0x585112)&&(_0x290566(),_0x46721b[_0x23c3cb([0x6f,0x66,0x66])]());});}))];return window[_0x23c3cb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23c3cb([0x72,0x61,0x63,0x65])](_0x193ed4)[_0x23c3cb([0x74,0x68,0x65,0x6e])](()=>_0x3372c8);}async function _0x2ed9ec(){await _0x5b1a7b,_0x14f498[_0x23c3cb([0x6d,0x6f,0x64,0x65,0x6c])][_0x23c3cb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x39e70d,_0x14f498[_0x23c3cb([0x6d,0x6f,0x64,0x65,0x6c])][_0x23c3cb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x39e70d,_0x14f498[_0x23c3cb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x23c3cb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb76318(){return window[_0x23c3cb([0x67,0x6c,0x6f,0x62])]&&window[_0x23c3cb([0x67,0x6c,0x6f,0x62])][_0x23c3cb([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x45bb0d(_0x31fa49){const _0x11b98e=_0x12c9f3();_0x14f498[_0x11b98e]=_0x23c3cb([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x31fa49,_0x31fa49!=_0x23c3cb([0x56,0x61,0x6c,0x69,0x64])&&_0x2ed9ec();}function _0x12c9f3(){const _0xe91ed=window[_0x23c3cb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x23c3cb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x23c3cb([0x6e,0x6f,0x77])]())[_0x23c3cb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x23c3cb([0x2e]),'');let _0x3c6339=_0x23c3cb([0x51]);for(let _0x5b0959=0x0;_0x5b0959<_0xe91ed[_0x23c3cb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b0959+=0x2){let _0x2d1ce6=window[_0x23c3cb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe91ed[_0x23c3cb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b0959,_0x5b0959+0x2));_0x2d1ce6>=_0x56dde4[_0x23c3cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d1ce6-=_0x56dde4[_0x23c3cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c6339+=_0x56dde4[_0x2d1ce6];}return _0x3c6339;}function _0x449c24(){const _0x240225=_0x3d4b79[_0x23c3cb([0x73,0x70,0x6c,0x69,0x74])](_0x23c3cb([0x2e]));if(0x3!=_0x240225[_0x23c3cb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x708c7e(_0x240225[0x1]);function _0x708c7e(_0x2aa9ce){const _0x3d9d5b=_0x58290b(_0x2aa9ce);return _0x3d9d5b&&_0x6911ed()?_0x3d9d5b:null;function _0x6911ed(){const _0x2a8c11=_0x3d9d5b[_0x23c3cb([0x6a,0x74,0x69])],_0x357706=window[_0x23c3cb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a8c11[_0x23c3cb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2a8c11[_0x23c3cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x322af5={..._0x3d9d5b,[_0x23c3cb([0x6a,0x74,0x69])]:_0x2a8c11[_0x23c3cb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2a8c11[_0x23c3cb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x322af5[_0x23c3cb([0x76,0x63])],_0x28dccc(_0x322af5)==_0x357706;}}}async function _0x4bb539(){let _0x567dad=!0x0;try{const _0x29f758=_0x3d4b79[_0x23c3cb([0x73,0x70,0x6c,0x69,0x74])](_0x23c3cb([0x2e])),[_0x1d2dc1,_0xc61571,_0x5af360]=_0x29f758;return _0x15f030(_0x1d2dc1),await _0x43325f(_0x1d2dc1,_0xc61571,_0x5af360),_0x567dad;}catch{return!0x1;}function _0x15f030(_0x18f73d){const _0x3ae830=_0x58290b(_0x18f73d);_0x3ae830&&_0x3ae830[_0x23c3cb([0x61,0x6c,0x67])]==_0x23c3cb([0x45,0x53,0x32,0x35,0x36])||(_0x567dad=!0x1);}async function _0x43325f(_0x107cc9,_0x30d267,_0x27a1ef){const _0x16a664=window[_0x23c3cb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x23c3cb([0x66,0x72,0x6f,0x6d])](_0x4a2680(_0x27a1ef),_0x3c6934=>_0x3c6934[_0x23c3cb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3998c9=new window[(_0x23c3cb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x23c3cb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x107cc9+_0x23c3cb([0x2e])+_0x30d267),_0x490168=window[_0x23c3cb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x23c3cb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x490168)return;const _0x149ab8=await _0x490168[_0x23c3cb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x23c3cb([0x6a,0x77,0x6b]),_0x67e154,{[_0x23c3cb([0x6e,0x61,0x6d,0x65])]:_0x23c3cb([0x45,0x43,0x44,0x53,0x41]),[_0x23c3cb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x23c3cb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x23c3cb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x490168[_0x23c3cb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x23c3cb([0x6e,0x61,0x6d,0x65])]:_0x23c3cb([0x45,0x43,0x44,0x53,0x41]),[_0x23c3cb([0x68,0x61,0x73,0x68])]:{[_0x23c3cb([0x6e,0x61,0x6d,0x65])]:_0x23c3cb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x149ab8,_0x16a664,_0x3998c9)||(_0x567dad=!0x1);}}function _0x58290b(_0x752d63){return _0x752d63[_0x23c3cb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x23c3cb([0x65,0x79]))?JSON[_0x23c3cb([0x70,0x61,0x72,0x73,0x65])](_0x4a2680(_0x752d63)):null;}function _0x4a2680(_0x153354){return window[_0x23c3cb([0x61,0x74,0x6f,0x62])](_0x153354[_0x23c3cb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x23c3cb([0x2b]))[_0x23c3cb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x23c3cb([0x2f])));}function _0x28dccc(_0x1a8e3c){let _0x3a9dfc=0x1505;function _0x711290(_0x3a8764){for(let _0x50733e=0x0;_0x50733e<_0x3a8764[_0x23c3cb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50733e++){const _0x3484ec=_0x3a8764[_0x23c3cb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x50733e);_0x3a9dfc=(_0x3a9dfc<<0x5)+_0x3a9dfc+_0x3484ec,_0x3a9dfc&=_0x3a9dfc;}}function _0x467627(_0x13854f){Array[_0x23c3cb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x13854f)?_0x13854f[_0x23c3cb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x467627):_0x13854f&&typeof _0x13854f==_0x23c3cb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x23c3cb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x13854f)[_0x23c3cb([0x73,0x6f,0x72,0x74])]()[_0x23c3cb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40628b,_0x2544db])=>{_0x711290(_0x40628b),_0x467627(_0x2544db);}):_0x711290(window[_0x23c3cb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x13854f));}return _0x467627(_0x1a8e3c),_0x3a9dfc>>>0x0;}function _0x28d999(_0x3de420){return _0x3de420[_0x23c3cb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x23c3cb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x23c3cb([0x30]));}function _0x54105e(_0x37f5e1){return _0x37f5e1[_0x23c3cb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x23c3cb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x23c3cb([0x6a,0x6f,0x69,0x6e])]('');}function _0x39e70d(){}function _0x23c3cb(_0x1311f9){return _0x1311f9['map'](_0x120ad0=>String['fromCharCode'](_0x120ad0))['join']('');}_0x45bb0d(await _0x10c371());}(this);}['_toggleSpecialCursor'](_0x5ae7a6){this['editor']['editing']['view']['change'](_0x5e9c16=>{for(const _0x58e7bf of this['editor']['editing']['view']['document']['roots'])_0x5ae7a6?_0x5e9c16['addClass'](h,_0x58e7bf):_0x5e9c16['removeClass'](h,_0x58e7bf);});}['_copyFormatting'](){const {editor:_0x1391d9}=this;_0x1391d9['execute'](w),_0x1391d9['ui']['ariaLiveAnnouncer']['announce'](p(_0x1391d9['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x480c33}=this,_0x460cba=_0x480c33['commands']['get'](w)['value'];_0x480c33['execute'](g,_0x460cba),_0x480c33['ui']['ariaLiveAnnouncer']['announce'](p(_0x480c33['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](w)['reset'](),this['stopListening'](_0x1d5ec0['window']['document'],'mouseup');}}class FormatPainter extends _0x35dc5e{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.2.0-alpha.4",
3
+ "version": "48.2.0-alpha.5",
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.2.0-alpha.4",
25
- "@ckeditor/ckeditor5-engine": "48.2.0-alpha.4",
26
- "@ckeditor/ckeditor5-icons": "48.2.0-alpha.4",
27
- "@ckeditor/ckeditor5-remove-format": "48.2.0-alpha.4",
28
- "@ckeditor/ckeditor5-ui": "48.2.0-alpha.4",
29
- "@ckeditor/ckeditor5-utils": "48.2.0-alpha.4"
24
+ "@ckeditor/ckeditor5-core": "48.2.0-alpha.5",
25
+ "@ckeditor/ckeditor5-engine": "48.2.0-alpha.5",
26
+ "@ckeditor/ckeditor5-icons": "48.2.0-alpha.5",
27
+ "@ckeditor/ckeditor5-remove-format": "48.2.0-alpha.5",
28
+ "@ckeditor/ckeditor5-ui": "48.2.0-alpha.5",
29
+ "@ckeditor/ckeditor5-utils": "48.2.0-alpha.5"
30
30
  },
31
31
  "files": [
32
32
  "dist",