@ckeditor/ckeditor5-format-painter 48.8.1-alpha.2 → 48.8.1-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +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 _0x4b6260,Plugin as _0x1e9f7e}from'@ckeditor/ckeditor5-core/dist/index.js';import{RemoveFormatCommand as _0x1ab786}from'@ckeditor/ckeditor5-remove-format/dist/index.js';import{createDropdown as _0x11b490,SplitButtonView as _0x2fefb6,UIModel as _0x233ceb,addListToDropdown as _0x47c9a6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DomEmitterMixin as _0x56180d,Collection as _0x40afea,global as _0x48532a,uid as _0x4949d7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ClickObserver as _0x10f869}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconPaintRoller as _0x22684d}from'@ckeditor/ckeditor5-icons/dist/index.js';const w='copyFormat',g='pasteFormat',h='ck-format-painter-active';class CopyFormatCommand extends _0x4b6260{constructor(_0x3fe8ed){super(_0x3fe8ed),this['value']=void 0x0,this['on']('change:isEnabled',(_0x5ce301,_0x376a57,_0x5c4342)=>{_0x5c4342||this['reset']();}),this['on']('change:value',()=>_0x3fe8ed['commands']['get'](g)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0x1cfa43=this['editor']['model'],_0x4b1b50=_0x1cfa43['document']['selection'];return Object['fromEntries'](Array['from'](_0x4b1b50['getAttributes']())['filter'](([_0x11ebbf])=>_0x1cfa43['schema']['getAttributeProperties'](_0x11ebbf)['isFormatting']));}}class PasteFormatCommand extends _0x4b6260{constructor(_0x52638a){super(_0x52638a),this['_removeFormatCommand']=new _0x1ab786(_0x52638a);}['execute'](_0x14450e={}){const _0x309d39=this['editor']['model'],_0x1b4068=_0x309d39['document']['selection'],_0x178661=Array['from'](_0x1b4068['getRanges']()),_0x3e9813=_0x1b4068['isCollapsed']?[this['_createRangeOnEntireWord'](_0x309d39,_0x1b4068)]:_0x178661;_0x309d39['change'](_0x8c588d=>{_0x8c588d['setSelection'](_0x3e9813),this['_removeFormatCommand']['execute']();for(const _0x33f3b7 in _0x14450e)for(const _0x1b037d of _0x309d39['schema']['getValidRanges'](_0x3e9813,_0x33f3b7))_0x8c588d['setAttribute'](_0x33f3b7,_0x14450e[_0x33f3b7],_0x1b037d);_0x8c588d['setSelection'](_0x178661);});}['_createRangeOnEntireWord'](_0x4fe480,_0x507b61){const _0x1969ac=_0x4fe480['createSelection'](_0x507b61);_0x4fe480['modifySelection'](_0x1969ac,{'unit':'word','direction':'backward'});const _0x35346e=_0x1969ac['getFirstPosition']();_0x4fe480['modifySelection'](_0x1969ac,{'unit':'word','direction':'forward'});const _0x3bdedb=_0x1969ac['getLastPosition']();return _0x4fe480['createRange'](_0x35346e,_0x3bdedb);}}class FormatPainterEditing extends _0x1e9f7e{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4cc97a=this['editor'];_0x4cc97a['commands']['add'](w,new CopyFormatCommand(_0x4cc97a)),_0x4cc97a['commands']['add'](g,new PasteFormatCommand(_0x4cc97a)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x283a77=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x40d55e;for(const _0x16bff3 in _0x283a77){const _0x26389b=_0x16bff3,_0x568d6e=_0x283a77[_0x26389b];if('formatPainterLicenseKeyValid'==_0x568d6e||'formatPainterLicenseKeyInvalid'==_0x568d6e||'formatPainterLicenseKeyExpired'==_0x568d6e||'formatPainterLicenseKeyDomainLimit'==_0x568d6e||'formatPainterLicenseKeyNotAllowed'==_0x568d6e||'formatPainterLicenseKeyEvaluationLimit'==_0x568d6e||'formatPainterLicenseKeyUsageLimit'==_0x568d6e){delete _0x283a77[_0x26389b],_0x40d55e=_0x568d6e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x40d55e&&_0x283a77['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x40d55e&&_0x283a77['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x40d55e&&_0x283a77['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x40d55e&&_0x283a77['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x40d55e&&_0x283a77['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x40d55e&&_0x283a77['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function p(_0x4f069f,_0x444f94){const t=_0x4f069f['t'];switch(_0x444f94){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 _0x444f94;}}class FormatPainterUI extends/* #__PURE__ -- @preserve */
24
- _0x56180d(_0x1e9f7e){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2234b5=this['editor'];_0x2234b5['editing']['view']['addObserver'](_0x10f869),_0x2234b5['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':p(_0x2234b5['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':p(_0x2234b5['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x2234b5['ui']['componentFactory']['add']('formatPainter',_0xa3a43f=>{const _0x1d65d5=_0x11b490(_0xa3a43f,_0x2fefb6),_0xdf56ad=_0x2234b5['commands']['get'](w);_0x1d65d5['buttonView']['set']({'label':p(_0x2234b5['locale'],'Paint\x20formatting'),'icon':_0x22684d,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x1d65d5['class']='ck-format-painter-dropdown',_0xdf56ad&&(_0x1d65d5['bind']('isEnabled')['to'](_0xdf56ad,'isEnabled'),this['listenTo'](_0xdf56ad,'change:isEnabled',(_0x37ac00,_0x429677,_0xd9d8eb)=>{_0xd9d8eb||this['_finishPainting']();}),_0x1d65d5['buttonView']['bind']('isOn')['to'](_0xdf56ad,'value',_0x4614cb=>!!_0x4614cb),this['listenTo'](_0x2234b5,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0xdf56ad,'change:value',(_0x84d84c,_0x46f29e,_0x45a511)=>{this['_toggleSpecialCursor'](!!_0x45a511);}));const _0x26d73d=new _0x233ceb({'withText':!0x0,'label':p(_0x2234b5['locale'],'Continuous\x20painting'),'tooltip':p(_0x2234b5['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});_0x47c9a6(_0x1d65d5,new _0x40afea([{'type':'switchbutton','model':_0x26d73d}]),{'role':'menu'});const _0x165ca2=()=>{this['_copyFormatting'](),this['listenTo'](_0x48532a['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x26d73d['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x1d65d5,'execute',()=>{_0x26d73d['isOn']=!_0x26d73d['isOn'];}),this['listenTo'](_0x1d65d5['buttonView'],'execute',()=>{_0x2234b5['editing']['view']['focus'](),_0x1d65d5['buttonView']['isOn']?this['_finishPainting']():_0x165ca2();}),_0x2234b5['keystrokes']['set']('Ctrl+Alt+C',(_0x33bb33,_0x20fa9f)=>{_0x165ca2(),_0x26d73d['isOn']=!0x0,_0x20fa9f();},{'priority':'high'}),_0x2234b5['keystrokes']['set']('Ctrl+Alt+V',(_0x389246,_0x8464bc)=>{_0x1d65d5['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x26d73d['isOn']||this['_finishPainting'](),_0x8464bc());},{'priority':'high'}),_0x2234b5['keystrokes']['set']('Esc',(_0x4c4c17,_0x483b39)=>{_0x1d65d5['buttonView']['isOn']&&(_0x26d73d['isOn']=!0x1,this['_finishPainting'](),_0x2234b5['ui']['ariaLiveAnnouncer']['announce'](p(_0x2234b5['locale'],'Painting\x20cancelled.')),_0x483b39());}),_0x1d65d5;});}['afterInit'](){!async function(_0x1b6a4d){const _0x2c1afd=_0x11a551([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]),_0x285e16=0x4597e011,_0x372a75=0x45906a41^_0x285e16,_0x10c600=window[_0x11a551([0x44,0x61,0x74,0x65])][_0x11a551([0x6e,0x6f,0x77])](),_0x2ae282=_0x1b6a4d[_0x11a551([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4d49f9=new window[(_0x11a551([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x299940=>{_0x2ae282[_0x11a551([0x6f,0x6e,0x63,0x65])](_0x11a551([0x72,0x65,0x61,0x64,0x79]),_0x299940);}),_0x4729c1={[_0x11a551([0x6b,0x74,0x79])]:_0x11a551([0x45,0x43]),[_0x11a551([0x75,0x73,0x65])]:_0x11a551([0x73,0x69,0x67]),[_0x11a551([0x63,0x72,0x76])]:_0x11a551([0x50,0x2d,0x32,0x35,0x36]),[_0x11a551([0x78])]:_0x11a551([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]),[_0x11a551([0x79])]:_0x11a551([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]),[_0x11a551([0x61,0x6c,0x67])]:_0x11a551([0x45,0x53,0x32,0x35,0x36])},_0x373f1c=_0x2ae282[_0x11a551([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x11a551([0x67,0x65,0x74])](_0x11a551([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6bebc6(){let _0x51b594,_0x13239a=null,_0xc023e1=null;try{if(_0x373f1c==_0x11a551([0x47,0x50,0x4c]))return _0x11a551([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51b594=_0x2cdc0f(),!_0x51b594)return _0x11a551([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51b594[_0x11a551([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc023e1=_0x3ff83f(_0x51b594[_0x11a551([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51b594[_0x11a551([0x6a,0x74,0x69])])),await _0x48cd69()?_0x153e05()?_0x2f2af3()?_0x11a551([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47050f()?(_0x51b594[_0x11a551([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11a551([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x13239a=_0x5e000f(_0x11a551([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4179ae()):_0x11a551([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x11a551([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x11a551([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x11a551([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f2af3(){const _0x2b0a52=[_0x11a551([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x11a551([0x74,0x72,0x69,0x61,0x6c])][_0x11a551([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51b594[_0x11a551([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x10c600/0x3e8:0xe10*_0x372a75;return _0x51b594[_0x11a551([0x65,0x78,0x70])]<_0x2b0a52;}function _0x153e05(){const _0x4e682f=_0x51b594[_0x11a551([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4e682f&&(!!_0x4e682f[_0x11a551([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a551([0x2a]))||(!!_0x4e682f[_0x11a551([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a551([0x46,0x50]))||(!!_0x4e682f[_0x11a551([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a551([0x50,0x50]))||!(!_0x4e682f[_0x11a551([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a551([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x54b838()))));}function _0x47050f(){const _0xf31999=_0x51b594[_0x11a551([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf31999||0x0==_0xf31999[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2048f1}=new URL(window[_0x11a551([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xf31999[_0x11a551([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2048f1))return!0x0;const _0x103b9f=_0x2048f1[_0x11a551([0x73,0x70,0x6c,0x69,0x74])](_0x11a551([0x2e]));return _0xf31999[_0x11a551([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d4e52=>_0x2d4e52[_0x11a551([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11a551([0x2a])))[_0x11a551([0x6d,0x61,0x70])](_0x480696=>_0x480696[_0x11a551([0x73,0x70,0x6c,0x69,0x74])](_0x11a551([0x2e])))[_0x11a551([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b6eca=>_0x2b6eca[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x103b9f[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11a551([0x6d,0x61,0x70])](_0x441f5d=>Array(_0x103b9f[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x441f5d[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x11a551([0x66,0x69,0x6c,0x6c])](_0x441f5d[0x0]===_0x11a551([0x2a])?_0x11a551([0x2a]):'')[_0x11a551([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x441f5d))[_0x11a551([0x73,0x6f,0x6d,0x65])](_0x1aa7fb=>_0x103b9f[_0x11a551([0x65,0x76,0x65,0x72,0x79])]((_0x2d5245,_0x2f4e22)=>_0x1aa7fb[_0x2f4e22]===_0x2d5245||_0x1aa7fb[_0x2f4e22]===_0x11a551([0x2a])));}function _0x4179ae(){return _0x13239a&&_0xc023e1?new window[(_0x11a551([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x278fc5,_0x127e61)=>{_0x13239a[_0x11a551([0x74,0x68,0x65,0x6e])](_0x278fc5,_0x127e61),_0xc023e1[_0x11a551([0x74,0x68,0x65,0x6e])](_0x5435d1=>{_0x5435d1!=_0x11a551([0x56,0x61,0x6c,0x69,0x64])&&_0x278fc5(_0x5435d1);},_0x127e61);}):_0x13239a||_0xc023e1||_0x11a551([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ff83f(_0x5781b5,_0x354380){return new window[(_0x11a551([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7ebab6=>{if(_0x17a0d0())return _0x7ebab6(_0x11a551([0x56,0x61,0x6c,0x69,0x64]));_0x58f0f9(),_0x2ae282[_0x11a551([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x11a551([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x50fd66=!0x1;const _0x4fcfdc=_0x4949d7();function _0x52fa93(_0x4a9280){return!!_0x4a9280&&(typeof _0x4a9280===_0x11a551([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a9280===_0x11a551([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a9280[_0x11a551([0x74,0x68,0x65,0x6e])]===_0x11a551([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a9280[_0x11a551([0x63,0x61,0x74,0x63,0x68])]===_0x11a551([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3b309d(_0x3a67d8){_0x5c1844(_0x3a67d8)[_0x11a551([0x74,0x68,0x65,0x6e])](_0x13f656=>{if(!_0x13f656||_0x13f656[_0x11a551([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x11a551([0x6f,0x6b]))return _0x11a551([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x7b0d05(_0x5659be(_0x4fcfdc+_0x354380))!=_0x13f656[_0x11a551([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x11a551([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x11a551([0x56,0x61,0x6c,0x69,0x64]);})[_0x11a551([0x74,0x68,0x65,0x6e])](_0x5d1ec7=>(_0x9089e4(),_0x5d1ec7),()=>{const _0x25a3b5=_0x3c4e74();return null==_0x25a3b5?(_0x9089e4(),_0x11a551([0x56,0x61,0x6c,0x69,0x64])):_0x11a551(_0x10c600-_0x25a3b5>(0x619b6411^_0x285e16)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x11a551([0x74,0x68,0x65,0x6e])](_0x7ebab6)[_0x11a551([0x63,0x61,0x74,0x63,0x68])](()=>{_0x7ebab6(_0x11a551([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x257538=0x45a10e91^_0x285e16;function _0x9089e4(){const _0x3e66bc=_0x11a551([0x6c,0x6c,0x63,0x74,0x2d])+_0x7b0d05(_0x5659be(_0x5781b5)),_0x14a88a=_0x1027d7(_0x7b0d05(window[_0x11a551([0x4d,0x61,0x74,0x68])][_0x11a551([0x63,0x65,0x69,0x6c])](_0x10c600/_0x257538)));window[_0x11a551([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11a551([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e66bc,_0x14a88a);}function _0x3c4e74(){const _0x5a0e13=_0x11a551([0x6c,0x6c,0x63,0x74,0x2d])+_0x7b0d05(_0x5659be(_0x5781b5)),_0x4c5ff6=window[_0x11a551([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11a551([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a0e13);return _0x4c5ff6?window[_0x11a551([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1027d7(_0x4c5ff6),0x10)*_0x257538:null;}function _0x5c1844(_0x2b4b61){return new window[(_0x11a551([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28d155,_0xccd58b)=>{_0x2b4b61[_0x11a551([0x74,0x68,0x65,0x6e])](_0x28d155,_0xccd58b),window[_0x11a551([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xccd58b,0x459634d1^_0x285e16);});}}_0x2ae282[_0x11a551([0x6f,0x6e])](_0x11a551([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5740a5,_0x37f03f)=>{if(_0x37f03f[0x0]!=_0x5781b5)return _0x7ebab6(_0x11a551([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37f03f[0x1]={..._0x37f03f[0x1],[_0x11a551([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4fcfdc};},{[_0x11a551([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11a551([0x68,0x69,0x67,0x68])}),_0x2ae282[_0x11a551([0x6f,0x6e])](_0x11a551([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x150023=>{_0x52fa93(_0x150023[_0x11a551([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x50fd66=!0x0,_0x3b309d(_0x150023[_0x11a551([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x11a551([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11a551([0x6c,0x6f,0x77])}),_0x4d49f9[_0x11a551([0x74,0x68,0x65,0x6e])](()=>{_0x50fd66||_0x7ebab6(_0x11a551([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x17a0d0(){return _0x2ae282[_0x11a551([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11a551([0x76,0x69,0x65,0x77])][_0x11a551([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x11a551([0x61,0x75,0x74,0x6f]);}function _0x58f0f9(){_0x2ae282[_0x11a551([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11a551([0x76,0x69,0x65,0x77])][_0x11a551([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11a551([0x61,0x75,0x74,0x6f]);}}function _0x5e000f(_0x40a3f4){const _0x1e58d3=[new window[(_0x11a551([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2640e4=>setTimeout(_0x2640e4,0x459ededd^_0x285e16)),_0x4d49f9[_0x11a551([0x74,0x68,0x65,0x6e])](()=>new window[(_0x11a551([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x544215=>{let _0x2608cb=0x0;_0x2ae282[_0x11a551([0x6d,0x6f,0x64,0x65,0x6c])][_0x11a551([0x6f,0x6e])](_0x11a551([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe5f5c2,_0x4ee51b)=>{_0x4ee51b[0x0][_0x11a551([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2608cb++,_0x2608cb==(0x4597e5f9^_0x285e16)&&(_0x544215(),_0xe5f5c2[_0x11a551([0x6f,0x66,0x66])]());});}))];return window[_0x11a551([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11a551([0x72,0x61,0x63,0x65])](_0x1e58d3)[_0x11a551([0x74,0x68,0x65,0x6e])](()=>_0x40a3f4);}async function _0x401a48(){await _0x4d49f9,_0x2ae282[_0x11a551([0x6d,0x6f,0x64,0x65,0x6c])][_0x11a551([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x48b9d3,_0x2ae282[_0x11a551([0x6d,0x6f,0x64,0x65,0x6c])][_0x11a551([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x48b9d3,_0x2ae282[_0x11a551([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x11a551([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x54b838(){return window[_0x11a551([0x67,0x6c,0x6f,0x62])]&&window[_0x11a551([0x67,0x6c,0x6f,0x62])][_0x11a551([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x4dfeb7(_0xecb980){const _0x54cb49=_0x1ed184();_0x2ae282[_0x54cb49]=_0x11a551([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xecb980,_0xecb980!=_0x11a551([0x56,0x61,0x6c,0x69,0x64])&&_0x401a48();}function _0x1ed184(){const _0x509c39=window[_0x11a551([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x11a551([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x11a551([0x6e,0x6f,0x77])]())[_0x11a551([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x11a551([0x2e]),'');let _0x24c7e6=_0x11a551([0x51]);for(let _0x3e5ccc=0x0;_0x3e5ccc<_0x509c39[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e5ccc+=0x2){let _0x30e5d4=window[_0x11a551([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x509c39[_0x11a551([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e5ccc,_0x3e5ccc+0x2));_0x30e5d4>=_0x2c1afd[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30e5d4-=_0x2c1afd[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24c7e6+=_0x2c1afd[_0x30e5d4];}return _0x24c7e6;}function _0x2cdc0f(){const _0xf8ecca=_0x373f1c[_0x11a551([0x73,0x70,0x6c,0x69,0x74])](_0x11a551([0x2e]));if(0x3!=_0xf8ecca[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57dabe(_0xf8ecca[0x1]);function _0x57dabe(_0x34b1dc){const _0x3f5f28=_0x1c300d(_0x34b1dc);return _0x3f5f28&&_0x1fb161()?_0x3f5f28:null;function _0x1fb161(){const _0x74dd11=_0x3f5f28[_0x11a551([0x6a,0x74,0x69])],_0x43d22c=window[_0x11a551([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x74dd11[_0x11a551([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x74dd11[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x244167={..._0x3f5f28,[_0x11a551([0x6a,0x74,0x69])]:_0x74dd11[_0x11a551([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x74dd11[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x244167[_0x11a551([0x76,0x63])],_0x5659be(_0x244167)==_0x43d22c;}}}async function _0x48cd69(){let _0x346230=!0x0;try{const _0x3cc4e2=_0x373f1c[_0x11a551([0x73,0x70,0x6c,0x69,0x74])](_0x11a551([0x2e])),[_0x2ab652,_0x2c4de3,_0x3ef27e]=_0x3cc4e2;return _0x32456f(_0x2ab652),await _0x4bb343(_0x2ab652,_0x2c4de3,_0x3ef27e),_0x346230;}catch{return!0x1;}function _0x32456f(_0x10318a){const _0x19dd6b=_0x1c300d(_0x10318a);_0x19dd6b&&_0x19dd6b[_0x11a551([0x61,0x6c,0x67])]==_0x11a551([0x45,0x53,0x32,0x35,0x36])||(_0x346230=!0x1);}async function _0x4bb343(_0x5c5a7c,_0xff04b2,_0x584261){const _0x2cc740=window[_0x11a551([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x11a551([0x66,0x72,0x6f,0x6d])](_0x52568d(_0x584261),_0x181dad=>_0x181dad[_0x11a551([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ecd24=new window[(_0x11a551([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x11a551([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c5a7c+_0x11a551([0x2e])+_0xff04b2),_0x5ae7c6=window[_0x11a551([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x11a551([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ae7c6)return;const _0x15a993=await _0x5ae7c6[_0x11a551([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x11a551([0x6a,0x77,0x6b]),_0x4729c1,{[_0x11a551([0x6e,0x61,0x6d,0x65])]:_0x11a551([0x45,0x43,0x44,0x53,0x41]),[_0x11a551([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x11a551([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x11a551([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ae7c6[_0x11a551([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x11a551([0x6e,0x61,0x6d,0x65])]:_0x11a551([0x45,0x43,0x44,0x53,0x41]),[_0x11a551([0x68,0x61,0x73,0x68])]:{[_0x11a551([0x6e,0x61,0x6d,0x65])]:_0x11a551([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x15a993,_0x2cc740,_0x2ecd24)||(_0x346230=!0x1);}}function _0x1c300d(_0x4ee988){return _0x4ee988[_0x11a551([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x11a551([0x65,0x79]))?JSON[_0x11a551([0x70,0x61,0x72,0x73,0x65])](_0x52568d(_0x4ee988)):null;}function _0x52568d(_0x2cefd2){return window[_0x11a551([0x61,0x74,0x6f,0x62])](_0x2cefd2[_0x11a551([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x11a551([0x2b]))[_0x11a551([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x11a551([0x2f])));}function _0x5659be(_0x10d064){let _0x5121b6=0x1505;function _0x314c8a(_0x6da6a9){for(let _0x57266b=0x0;_0x57266b<_0x6da6a9[_0x11a551([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57266b++){const _0x44b961=_0x6da6a9[_0x11a551([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x57266b);_0x5121b6=(_0x5121b6<<0x5)+_0x5121b6+_0x44b961,_0x5121b6&=_0x5121b6;}}function _0x58560e(_0x2fed0f){Array[_0x11a551([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2fed0f)?_0x2fed0f[_0x11a551([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x58560e):_0x2fed0f&&typeof _0x2fed0f==_0x11a551([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x11a551([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2fed0f)[_0x11a551([0x73,0x6f,0x72,0x74])]()[_0x11a551([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x480d0a,_0x5dd6ee])=>{_0x314c8a(_0x480d0a),_0x58560e(_0x5dd6ee);}):_0x314c8a(window[_0x11a551([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2fed0f));}return _0x58560e(_0x10d064),_0x5121b6>>>0x0;}function _0x7b0d05(_0x142bfb){return _0x142bfb[_0x11a551([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x11a551([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x11a551([0x30]));}function _0x1027d7(_0x5ec4cb){return _0x5ec4cb[_0x11a551([0x73,0x70,0x6c,0x69,0x74])]('')[_0x11a551([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x11a551([0x6a,0x6f,0x69,0x6e])]('');}function _0x48b9d3(){}function _0x11a551(_0xfb4a8a){return _0xfb4a8a['map'](_0x52078e=>String['fromCharCode'](_0x52078e))['join']('');}_0x4dfeb7(await _0x6bebc6());}(this);}['_toggleSpecialCursor'](_0x262692){this['editor']['editing']['view']['change'](_0x50b2c1=>{for(const _0x1f73a4 of this['editor']['editing']['view']['document']['roots'])_0x262692?_0x50b2c1['addClass'](h,_0x1f73a4):_0x50b2c1['removeClass'](h,_0x1f73a4);});}['_copyFormatting'](){const {editor:_0xf264f8}=this;_0xf264f8['execute'](w),_0xf264f8['ui']['ariaLiveAnnouncer']['announce'](p(_0xf264f8['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x3ffc6b}=this,_0x35e445=_0x3ffc6b['commands']['get'](w)['value'];_0x3ffc6b['execute'](g,_0x35e445),_0x3ffc6b['ui']['ariaLiveAnnouncer']['announce'](p(_0x3ffc6b['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](w)['reset'](),this['stopListening'](_0x48532a['window']['document'],'mouseup');}}class FormatPainter extends _0x1e9f7e{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 _0x1f8e64,Plugin as _0x84604f}from'@ckeditor/ckeditor5-core/dist/index.js';import{RemoveFormatCommand as _0x37c0be}from'@ckeditor/ckeditor5-remove-format/dist/index.js';import{createDropdown as _0x25f407,SplitButtonView as _0x2d5f6d,UIModel as _0x1f129e,addListToDropdown as _0xad4581}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DomEmitterMixin as _0x4aa564,Collection as _0x4a42f4,global as _0x1d1616,uid as _0x5a684e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ClickObserver as _0x5c5280}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconPaintRoller as _0x3a42f9}from'@ckeditor/ckeditor5-icons/dist/index.js';const w='copyFormat',g='pasteFormat',h='ck-format-painter-active';class CopyFormatCommand extends _0x1f8e64{constructor(_0x40d5be){super(_0x40d5be),this['value']=void 0x0,this['on']('change:isEnabled',(_0x4e016a,_0x4ca227,_0x40bdfe)=>{_0x40bdfe||this['reset']();}),this['on']('change:value',()=>_0x40d5be['commands']['get'](g)['refresh']());}['execute'](){this['value']=this['_getFormattingAttributes']();}['reset'](){this['value']=void 0x0;}['_getFormattingAttributes'](){const _0x50e2db=this['editor']['model'],_0x3b8904=_0x50e2db['document']['selection'];return Object['fromEntries'](Array['from'](_0x3b8904['getAttributes']())['filter'](([_0x4dab96])=>_0x50e2db['schema']['getAttributeProperties'](_0x4dab96)['isFormatting']));}}class PasteFormatCommand extends _0x1f8e64{constructor(_0x247aa1){super(_0x247aa1),this['_removeFormatCommand']=new _0x37c0be(_0x247aa1);}['execute'](_0x43e6d6={}){const _0x38048e=this['editor']['model'],_0x3a8845=_0x38048e['document']['selection'],_0x5dec69=Array['from'](_0x3a8845['getRanges']()),_0x1978b4=_0x3a8845['isCollapsed']?[this['_createRangeOnEntireWord'](_0x38048e,_0x3a8845)]:_0x5dec69;_0x38048e['change'](_0x111a47=>{_0x111a47['setSelection'](_0x1978b4),this['_removeFormatCommand']['execute']();for(const _0x3f7af4 in _0x43e6d6)for(const _0x57f884 of _0x38048e['schema']['getValidRanges'](_0x1978b4,_0x3f7af4))_0x111a47['setAttribute'](_0x3f7af4,_0x43e6d6[_0x3f7af4],_0x57f884);_0x111a47['setSelection'](_0x5dec69);});}['_createRangeOnEntireWord'](_0x685f59,_0x7c8b31){const _0x1401aa=_0x685f59['createSelection'](_0x7c8b31);_0x685f59['modifySelection'](_0x1401aa,{'unit':'word','direction':'backward'});const _0x29d96d=_0x1401aa['getFirstPosition']();_0x685f59['modifySelection'](_0x1401aa,{'unit':'word','direction':'forward'});const _0x172319=_0x1401aa['getLastPosition']();return _0x685f59['createRange'](_0x29d96d,_0x172319);}}class FormatPainterEditing extends _0x84604f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FormatPainterEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2618f2=this['editor'];_0x2618f2['commands']['add'](w,new CopyFormatCommand(_0x2618f2)),_0x2618f2['commands']['add'](g,new PasteFormatCommand(_0x2618f2)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ff50c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c737d;for(const _0x48d8b9 in _0x4ff50c){const _0x584c8f=_0x48d8b9,_0x42c1f3=_0x4ff50c[_0x584c8f];if('formatPainterLicenseKeyValid'==_0x42c1f3||'formatPainterLicenseKeyInvalid'==_0x42c1f3||'formatPainterLicenseKeyExpired'==_0x42c1f3||'formatPainterLicenseKeyDomainLimit'==_0x42c1f3||'formatPainterLicenseKeyNotAllowed'==_0x42c1f3||'formatPainterLicenseKeyEvaluationLimit'==_0x42c1f3||'formatPainterLicenseKeyUsageLimit'==_0x42c1f3){delete _0x4ff50c[_0x584c8f],_0x1c737d=_0x42c1f3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'formatPainterLicenseKeyInvalid'==_0x1c737d&&_0x4ff50c['_showLicenseError']('invalid'),'formatPainterLicenseKeyExpired'==_0x1c737d&&_0x4ff50c['_showLicenseError']('expired'),'formatPainterLicenseKeyDomainLimit'==_0x1c737d&&_0x4ff50c['_showLicenseError']('domainLimit'),'formatPainterLicenseKeyNotAllowed'==_0x1c737d&&_0x4ff50c['_showLicenseError']('featureNotAllowed','FormatPainter'),'formatPainterLicenseKeyEvaluationLimit'==_0x1c737d&&_0x4ff50c['_showLicenseError']('evaluationLimit'),'formatPainterLicenseKeyUsageLimit'==_0x1c737d&&_0x4ff50c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function p(_0x2dc18a,_0x1a4837){const t=_0x2dc18a['t'];switch(_0x1a4837){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 _0x1a4837;}}class FormatPainterUI extends/* #__PURE__ -- @preserve */
24
+ _0x4aa564(_0x84604f){static get['pluginName'](){return'FormatPainterUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x53366c=this['editor'];_0x53366c['editing']['view']['addObserver'](_0x5c5280),_0x53366c['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':p(_0x53366c['locale'],'Copy\x20text\x20formatting'),'keystroke':'Ctrl+Alt+C'},{'label':p(_0x53366c['locale'],'Paste\x20text\x20formatting'),'keystroke':'Ctrl+Alt+V'}]}),_0x53366c['ui']['componentFactory']['add']('formatPainter',_0x5a132a=>{const _0x4c3e1c=_0x25f407(_0x5a132a,_0x2d5f6d),_0x215f0d=_0x53366c['commands']['get'](w);_0x4c3e1c['buttonView']['set']({'label':p(_0x53366c['locale'],'Paint\x20formatting'),'icon':_0x3a42f9,'keystroke':'Ctrl+Alt+C','tooltip':!0x0}),_0x4c3e1c['class']='ck-format-painter-dropdown',_0x215f0d&&(_0x4c3e1c['bind']('isEnabled')['to'](_0x215f0d,'isEnabled'),this['listenTo'](_0x215f0d,'change:isEnabled',(_0x140d2a,_0x2d7b4e,_0x4444e6)=>{_0x4444e6||this['_finishPainting']();}),_0x4c3e1c['buttonView']['bind']('isOn')['to'](_0x215f0d,'value',_0x140667=>!!_0x140667),this['listenTo'](_0x53366c,'destroy',()=>this['_toggleSpecialCursor'](!0x1)),this['listenTo'](_0x215f0d,'change:value',(_0x574e5b,_0xc3064e,_0x12b4ba)=>{this['_toggleSpecialCursor'](!!_0x12b4ba);}));const _0x438152=new _0x1f129e({'withText':!0x0,'label':p(_0x53366c['locale'],'Continuous\x20painting'),'tooltip':p(_0x53366c['locale'],'Keeps\x20the\x20painter\x20on\x20after\x20setting\x20the\x20formatting.'),'isOn':!0x1,'role':'menuitemcheckbox'});_0xad4581(_0x4c3e1c,new _0x4a42f4([{'type':'switchbutton','model':_0x438152}]),{'role':'menu'});const _0x352354=()=>{this['_copyFormatting'](),this['listenTo'](_0x1d1616['window']['document'],'mouseup',()=>{this['_pasteFormatting'](),_0x438152['isOn']||this['_finishPainting']();});};return this['listenTo'](_0x4c3e1c,'execute',()=>{_0x438152['isOn']=!_0x438152['isOn'];}),this['listenTo'](_0x4c3e1c['buttonView'],'execute',()=>{_0x53366c['editing']['view']['focus'](),_0x4c3e1c['buttonView']['isOn']?this['_finishPainting']():_0x352354();}),_0x53366c['keystrokes']['set']('Ctrl+Alt+C',(_0x20c18b,_0x553a15)=>{_0x352354(),_0x438152['isOn']=!0x0,_0x553a15();},{'priority':'high'}),_0x53366c['keystrokes']['set']('Ctrl+Alt+V',(_0x4b2111,_0xa69cda)=>{_0x4c3e1c['buttonView']['isOn']&&(this['_pasteFormatting'](),_0x438152['isOn']||this['_finishPainting'](),_0xa69cda());},{'priority':'high'}),_0x53366c['keystrokes']['set']('Esc',(_0x20dc33,_0x109b8e)=>{_0x4c3e1c['buttonView']['isOn']&&(_0x438152['isOn']=!0x1,this['_finishPainting'](),_0x53366c['ui']['ariaLiveAnnouncer']['announce'](p(_0x53366c['locale'],'Painting\x20cancelled.')),_0x109b8e());}),_0x4c3e1c;});}['afterInit'](){!async function(_0x313407){const _0x54c79a=_0x10a961([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]),_0x31b71d=0x4597e011,_0x1a3318=0x45906a79^_0x31b71d,_0x3ea2bf=window[_0x10a961([0x44,0x61,0x74,0x65])][_0x10a961([0x6e,0x6f,0x77])](),_0x5da668=_0x313407[_0x10a961([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ebd49=new window[(_0x10a961([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14c0f3=>{_0x5da668[_0x10a961([0x6f,0x6e,0x63,0x65])](_0x10a961([0x72,0x65,0x61,0x64,0x79]),_0x14c0f3);}),_0x1605df={[_0x10a961([0x6b,0x74,0x79])]:_0x10a961([0x45,0x43]),[_0x10a961([0x75,0x73,0x65])]:_0x10a961([0x73,0x69,0x67]),[_0x10a961([0x63,0x72,0x76])]:_0x10a961([0x50,0x2d,0x32,0x35,0x36]),[_0x10a961([0x78])]:_0x10a961([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]),[_0x10a961([0x79])]:_0x10a961([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]),[_0x10a961([0x61,0x6c,0x67])]:_0x10a961([0x45,0x53,0x32,0x35,0x36])},_0x2d2bf7=_0x5da668[_0x10a961([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x10a961([0x67,0x65,0x74])](_0x10a961([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x402060(){let _0xbea773,_0x266ebc=null,_0x37dd62=null;try{if(_0x2d2bf7==_0x10a961([0x47,0x50,0x4c]))return _0x10a961([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xbea773=_0x22b062(),!_0xbea773)return _0x10a961([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xbea773[_0x10a961([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37dd62=_0x4d21f9(_0xbea773[_0x10a961([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xbea773[_0x10a961([0x6a,0x74,0x69])])),await _0x947245()?_0x40cf58()?_0x45a492()?_0x10a961([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x398d9f()?(_0xbea773[_0x10a961([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x10a961([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x266ebc=_0x3b2d75(_0x10a961([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5581db()):_0x10a961([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x10a961([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x10a961([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x10a961([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x45a492(){const _0x1d8f90=[_0x10a961([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x10a961([0x74,0x72,0x69,0x61,0x6c])][_0x10a961([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xbea773[_0x10a961([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ea2bf/0x3e8:0xe10*_0x1a3318;return _0xbea773[_0x10a961([0x65,0x78,0x70])]<_0x1d8f90;}function _0x40cf58(){const _0x4bfdf2=_0xbea773[_0x10a961([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4bfdf2&&(!!_0x4bfdf2[_0x10a961([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10a961([0x2a]))||(!!_0x4bfdf2[_0x10a961([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10a961([0x46,0x50]))||(!!_0x4bfdf2[_0x10a961([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10a961([0x50,0x50]))||!(!_0x4bfdf2[_0x10a961([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10a961([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0xf1fd34()))));}function _0x398d9f(){const _0x5ef1e4=_0xbea773[_0x10a961([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ef1e4||0x0==_0x5ef1e4[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1aee43}=new URL(window[_0x10a961([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5ef1e4[_0x10a961([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1aee43))return!0x0;const _0xf1f568=_0x1aee43[_0x10a961([0x73,0x70,0x6c,0x69,0x74])](_0x10a961([0x2e]));return _0x5ef1e4[_0x10a961([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x113db1=>_0x113db1[_0x10a961([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10a961([0x2a])))[_0x10a961([0x6d,0x61,0x70])](_0x4f25ce=>_0x4f25ce[_0x10a961([0x73,0x70,0x6c,0x69,0x74])](_0x10a961([0x2e])))[_0x10a961([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x472504=>_0x472504[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf1f568[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x10a961([0x6d,0x61,0x70])](_0x14955d=>Array(_0xf1f568[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x14955d[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x10a961([0x66,0x69,0x6c,0x6c])](_0x14955d[0x0]===_0x10a961([0x2a])?_0x10a961([0x2a]):'')[_0x10a961([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x14955d))[_0x10a961([0x73,0x6f,0x6d,0x65])](_0x14938c=>_0xf1f568[_0x10a961([0x65,0x76,0x65,0x72,0x79])]((_0x10f8ad,_0x45fa0c)=>_0x14938c[_0x45fa0c]===_0x10f8ad||_0x14938c[_0x45fa0c]===_0x10a961([0x2a])));}function _0x5581db(){return _0x266ebc&&_0x37dd62?new window[(_0x10a961([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4633ea,_0x56a601)=>{_0x266ebc[_0x10a961([0x74,0x68,0x65,0x6e])](_0x4633ea,_0x56a601),_0x37dd62[_0x10a961([0x74,0x68,0x65,0x6e])](_0x3a73da=>{_0x3a73da!=_0x10a961([0x56,0x61,0x6c,0x69,0x64])&&_0x4633ea(_0x3a73da);},_0x56a601);}):_0x266ebc||_0x37dd62||_0x10a961([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d21f9(_0xca47f1,_0x16fe91){return new window[(_0x10a961([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49fbe0=>{if(_0x1c2c2b())return _0x49fbe0(_0x10a961([0x56,0x61,0x6c,0x69,0x64]));_0x2858e3(),_0x5da668[_0x10a961([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x10a961([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf87aad=!0x1;const _0x2a6e0f=_0x5a684e();function _0x13368b(_0x40f68e){return!!_0x40f68e&&(typeof _0x40f68e===_0x10a961([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40f68e===_0x10a961([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40f68e[_0x10a961([0x74,0x68,0x65,0x6e])]===_0x10a961([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40f68e[_0x10a961([0x63,0x61,0x74,0x63,0x68])]===_0x10a961([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x176fd5(_0x148297){_0x1a00f7(_0x148297)[_0x10a961([0x74,0x68,0x65,0x6e])](_0x47976b=>{if(!_0x47976b||_0x47976b[_0x10a961([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x10a961([0x6f,0x6b]))return _0x10a961([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3fe8b2(_0x39a681(_0x2a6e0f+_0x16fe91))!=_0x47976b[_0x10a961([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x10a961([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x10a961([0x56,0x61,0x6c,0x69,0x64]);})[_0x10a961([0x74,0x68,0x65,0x6e])](_0x55e537=>(_0x51f9c2(),_0x55e537),()=>{const _0x1d63cb=_0x4d4962();return null==_0x1d63cb?(_0x51f9c2(),_0x10a961([0x56,0x61,0x6c,0x69,0x64])):_0x10a961(_0x3ea2bf-_0x1d63cb>(0x619b6411^_0x31b71d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x10a961([0x74,0x68,0x65,0x6e])](_0x49fbe0)[_0x10a961([0x63,0x61,0x74,0x63,0x68])](()=>{_0x49fbe0(_0x10a961([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4dd2a4=0x45a10e91^_0x31b71d;function _0x51f9c2(){const _0x18f7ed=_0x10a961([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fe8b2(_0x39a681(_0xca47f1)),_0x5ce035=_0x421784(_0x3fe8b2(window[_0x10a961([0x4d,0x61,0x74,0x68])][_0x10a961([0x63,0x65,0x69,0x6c])](_0x3ea2bf/_0x4dd2a4)));window[_0x10a961([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10a961([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18f7ed,_0x5ce035);}function _0x4d4962(){const _0x10fb8a=_0x10a961([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fe8b2(_0x39a681(_0xca47f1)),_0x361b7f=window[_0x10a961([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x10a961([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10fb8a);return _0x361b7f?window[_0x10a961([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x421784(_0x361b7f),0x10)*_0x4dd2a4:null;}function _0x1a00f7(_0x40c44b){return new window[(_0x10a961([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47ed88,_0x1c81ae)=>{_0x40c44b[_0x10a961([0x74,0x68,0x65,0x6e])](_0x47ed88,_0x1c81ae),window[_0x10a961([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c81ae,0x459634d1^_0x31b71d);});}}_0x5da668[_0x10a961([0x6f,0x6e])](_0x10a961([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x348145,_0x5b2653)=>{if(_0x5b2653[0x0]!=_0xca47f1)return _0x49fbe0(_0x10a961([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b2653[0x1]={..._0x5b2653[0x1],[_0x10a961([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a6e0f};},{[_0x10a961([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10a961([0x68,0x69,0x67,0x68])}),_0x5da668[_0x10a961([0x6f,0x6e])](_0x10a961([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x440b99=>{_0x13368b(_0x440b99[_0x10a961([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf87aad=!0x0,_0x176fd5(_0x440b99[_0x10a961([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x10a961([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x10a961([0x6c,0x6f,0x77])}),_0x4ebd49[_0x10a961([0x74,0x68,0x65,0x6e])](()=>{_0xf87aad||_0x49fbe0(_0x10a961([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c2c2b(){return _0x5da668[_0x10a961([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10a961([0x76,0x69,0x65,0x77])][_0x10a961([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x10a961([0x61,0x75,0x74,0x6f]);}function _0x2858e3(){_0x5da668[_0x10a961([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x10a961([0x76,0x69,0x65,0x77])][_0x10a961([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x10a961([0x61,0x75,0x74,0x6f]);}}function _0x3b2d75(_0x3aa0e7){const _0x5ba2f4=[new window[(_0x10a961([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e6142=>setTimeout(_0x2e6142,0x459ededd^_0x31b71d)),_0x4ebd49[_0x10a961([0x74,0x68,0x65,0x6e])](()=>new window[(_0x10a961([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x325ec7=>{let _0x549efd=0x0;_0x5da668[_0x10a961([0x6d,0x6f,0x64,0x65,0x6c])][_0x10a961([0x6f,0x6e])](_0x10a961([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5a07d2,_0x1ad95f)=>{_0x1ad95f[0x0][_0x10a961([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x549efd++,_0x549efd==(0x4597e5f9^_0x31b71d)&&(_0x325ec7(),_0x5a07d2[_0x10a961([0x6f,0x66,0x66])]());});}))];return window[_0x10a961([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x10a961([0x72,0x61,0x63,0x65])](_0x5ba2f4)[_0x10a961([0x74,0x68,0x65,0x6e])](()=>_0x3aa0e7);}async function _0x105cb9(){await _0x4ebd49,_0x5da668[_0x10a961([0x6d,0x6f,0x64,0x65,0x6c])][_0x10a961([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x837fb7,_0x5da668[_0x10a961([0x6d,0x6f,0x64,0x65,0x6c])][_0x10a961([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x837fb7,_0x5da668[_0x10a961([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x10a961([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xf1fd34(){return window[_0x10a961([0x67,0x6c,0x6f,0x62])]&&window[_0x10a961([0x67,0x6c,0x6f,0x62])][_0x10a961([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x5e7c66(_0x44375b){const _0x299afb=_0x5cbe94();_0x5da668[_0x299afb]=_0x10a961([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x44375b,_0x44375b!=_0x10a961([0x56,0x61,0x6c,0x69,0x64])&&_0x105cb9();}function _0x5cbe94(){const _0x34719a=window[_0x10a961([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x10a961([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x10a961([0x6e,0x6f,0x77])]())[_0x10a961([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x10a961([0x2e]),'');let _0x619099=_0x10a961([0x51]);for(let _0x533053=0x0;_0x533053<_0x34719a[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x533053+=0x2){let _0xad2b90=window[_0x10a961([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34719a[_0x10a961([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x533053,_0x533053+0x2));_0xad2b90>=_0x54c79a[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xad2b90-=_0x54c79a[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x619099+=_0x54c79a[_0xad2b90];}return _0x619099;}function _0x22b062(){const _0x14eef2=_0x2d2bf7[_0x10a961([0x73,0x70,0x6c,0x69,0x74])](_0x10a961([0x2e]));if(0x3!=_0x14eef2[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x23642f(_0x14eef2[0x1]);function _0x23642f(_0x314463){const _0x40bfe8=_0x27376d(_0x314463);return _0x40bfe8&&_0x4528b9()?_0x40bfe8:null;function _0x4528b9(){const _0x390e58=_0x40bfe8[_0x10a961([0x6a,0x74,0x69])],_0x514728=window[_0x10a961([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x390e58[_0x10a961([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x390e58[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e8349={..._0x40bfe8,[_0x10a961([0x6a,0x74,0x69])]:_0x390e58[_0x10a961([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x390e58[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e8349[_0x10a961([0x76,0x63])],_0x39a681(_0x3e8349)==_0x514728;}}}async function _0x947245(){let _0x40052b=!0x0;try{const _0x531ac0=_0x2d2bf7[_0x10a961([0x73,0x70,0x6c,0x69,0x74])](_0x10a961([0x2e])),[_0x18d4e1,_0x1e2dd6,_0x106e94]=_0x531ac0;return _0x4984fe(_0x18d4e1),await _0x25500f(_0x18d4e1,_0x1e2dd6,_0x106e94),_0x40052b;}catch{return!0x1;}function _0x4984fe(_0x1f2812){const _0x479ec7=_0x27376d(_0x1f2812);_0x479ec7&&_0x479ec7[_0x10a961([0x61,0x6c,0x67])]==_0x10a961([0x45,0x53,0x32,0x35,0x36])||(_0x40052b=!0x1);}async function _0x25500f(_0x3009f3,_0x2b9f6b,_0x1112b9){const _0x19c6a9=window[_0x10a961([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x10a961([0x66,0x72,0x6f,0x6d])](_0x77deaf(_0x1112b9),_0x538182=>_0x538182[_0x10a961([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1aa546=new window[(_0x10a961([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x10a961([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3009f3+_0x10a961([0x2e])+_0x2b9f6b),_0x40e82b=window[_0x10a961([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x10a961([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x40e82b)return;const _0x5e7336=await _0x40e82b[_0x10a961([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x10a961([0x6a,0x77,0x6b]),_0x1605df,{[_0x10a961([0x6e,0x61,0x6d,0x65])]:_0x10a961([0x45,0x43,0x44,0x53,0x41]),[_0x10a961([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x10a961([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x10a961([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x40e82b[_0x10a961([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x10a961([0x6e,0x61,0x6d,0x65])]:_0x10a961([0x45,0x43,0x44,0x53,0x41]),[_0x10a961([0x68,0x61,0x73,0x68])]:{[_0x10a961([0x6e,0x61,0x6d,0x65])]:_0x10a961([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5e7336,_0x19c6a9,_0x1aa546)||(_0x40052b=!0x1);}}function _0x27376d(_0xe0b45e){return _0xe0b45e[_0x10a961([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x10a961([0x65,0x79]))?JSON[_0x10a961([0x70,0x61,0x72,0x73,0x65])](_0x77deaf(_0xe0b45e)):null;}function _0x77deaf(_0x236187){return window[_0x10a961([0x61,0x74,0x6f,0x62])](_0x236187[_0x10a961([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x10a961([0x2b]))[_0x10a961([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x10a961([0x2f])));}function _0x39a681(_0x597fc1){let _0x2d3146=0x1505;function _0x30be91(_0x20bd00){for(let _0x2496e1=0x0;_0x2496e1<_0x20bd00[_0x10a961([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2496e1++){const _0x4973b4=_0x20bd00[_0x10a961([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2496e1);_0x2d3146=(_0x2d3146<<0x5)+_0x2d3146+_0x4973b4,_0x2d3146&=_0x2d3146;}}function _0x515509(_0x1462a1){Array[_0x10a961([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1462a1)?_0x1462a1[_0x10a961([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x515509):_0x1462a1&&typeof _0x1462a1==_0x10a961([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x10a961([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1462a1)[_0x10a961([0x73,0x6f,0x72,0x74])]()[_0x10a961([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x258cde,_0x407ad8])=>{_0x30be91(_0x258cde),_0x515509(_0x407ad8);}):_0x30be91(window[_0x10a961([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1462a1));}return _0x515509(_0x597fc1),_0x2d3146>>>0x0;}function _0x3fe8b2(_0x310590){return _0x310590[_0x10a961([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x10a961([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x10a961([0x30]));}function _0x421784(_0x1479b9){return _0x1479b9[_0x10a961([0x73,0x70,0x6c,0x69,0x74])]('')[_0x10a961([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x10a961([0x6a,0x6f,0x69,0x6e])]('');}function _0x837fb7(){}function _0x10a961(_0x2c5ea9){return _0x2c5ea9['map'](_0x10601b=>String['fromCharCode'](_0x10601b))['join']('');}_0x5e7c66(await _0x402060());}(this);}['_toggleSpecialCursor'](_0x5b9c4f){this['editor']['editing']['view']['change'](_0x107058=>{for(const _0x38f9fd of this['editor']['editing']['view']['document']['roots'])_0x5b9c4f?_0x107058['addClass'](h,_0x38f9fd):_0x107058['removeClass'](h,_0x38f9fd);});}['_copyFormatting'](){const {editor:_0x3d0563}=this;_0x3d0563['execute'](w),_0x3d0563['ui']['ariaLiveAnnouncer']['announce'](p(_0x3d0563['locale'],'Formatting\x20copied.'));}['_pasteFormatting'](){const {editor:_0x2a8795}=this,_0x9fbebc=_0x2a8795['commands']['get'](w)['value'];_0x2a8795['execute'](g,_0x9fbebc),_0x2a8795['ui']['ariaLiveAnnouncer']['announce'](p(_0x2a8795['locale'],'Pasted\x20formatting.'));}['_finishPainting'](){this['editor']['commands']['get'](w)['reset'](),this['stopListening'](_0x1d1616['window']['document'],'mouseup');}}class FormatPainter extends _0x84604f{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.2",
3
+ "version": "48.8.1-alpha.3",
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.2",
25
- "@ckeditor/ckeditor5-engine": "48.8.1-alpha.2",
26
- "@ckeditor/ckeditor5-icons": "48.8.1-alpha.2",
27
- "@ckeditor/ckeditor5-remove-format": "48.8.1-alpha.2",
28
- "@ckeditor/ckeditor5-ui": "48.8.1-alpha.2",
29
- "@ckeditor/ckeditor5-utils": "48.8.1-alpha.2"
24
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.3",
25
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.3",
26
+ "@ckeditor/ckeditor5-icons": "48.8.1-alpha.3",
27
+ "@ckeditor/ckeditor5-remove-format": "48.8.1-alpha.3",
28
+ "@ckeditor/ckeditor5-ui": "48.8.1-alpha.3",
29
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.3"
30
30
  },
31
31
  "files": [
32
32
  "dist",