@ckeditor/ckeditor5-paste-from-office-enhanced 48.1.0 → 48.2.0-alpha.0

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.
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x2c6730}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0xb641b0,PasteFromOffice as _0x172afa,parsePasteOfficeHtml as _0x1308da}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x58ead5,uid as _0x5d364f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x35215f,ViewDocument as _0x480d85,ViewDomConverter as _0x2acbd3}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x4b4fba){return a['test'](_0x4b4fba);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x3cc845,_0x44012b){const _0x5b22ae=new Map();for(const [_0x5e88c9,_0x2ae904]of _0x44012b){if(!_0x5e88c9['tagName']&&!_0x5e88c9['className'])continue;const _0x478b53=!_0x5e88c9['tagName']||_0x3cc845['name']===_0x5e88c9['tagName'],_0x98b518=!_0x5e88c9['className']||_0x3cc845['hasClass'](_0x5e88c9['className']);_0x478b53&&_0x98b518&&_0x5b22ae['set'](_0x5e88c9,_0x2ae904);}return _0x5b22ae;}function m(_0x3582da){const _0x15d58f={};for(let _0x3d2ffe=0x0;_0x3d2ffe<_0x3582da['length'];_0x3d2ffe++){const _0x12d914=_0x3582da[_0x3d2ffe],_0x3e0545=_0x3582da['getPropertyValue'](_0x12d914);'initial'!==_0x3e0545&&(_0x15d58f[_0x12d914]=_0x3e0545);}return _0x15d58f;}function p(_0x11001c){const _0x355e69=_0x11001c['split'](',')['map'](_0x12d961=>_0x12d961['trim']()),_0x574c83=[];for(const _0x5cdb07 of _0x355e69){const _0x5dd29d=d['exec'](_0x5cdb07);_0x5dd29d&&_0x574c83['push'](_0x5dd29d['groups']);}return _0x574c83;}function y(_0x4ecede){const _0x39dd59={};for(const _0x330e18 of _0x4ecede)Object['assign'](_0x39dd59,_0x330e18);return _0x39dd59;}class g extends _0xb641b0{['execute'](_0x770281){const {body:_0x9dd315,styles:_0x338bbe,stylesString:_0x2032ae}=_0x770281['_parsedData'],_0x18a486=new _0x35215f(_0x9dd315['document']),_0xa47d00=_0x18a486['createRangeIn'](_0x9dd315),_0x512d8d=function(_0x31e694){const _0x4ada38={};for(const _0xe68e of _0x31e694)for(const _0x3a5cc4 of _0xe68e['cssRules'])if(_0x3a5cc4 instanceof CSSStyleRule){const _0x3b70d3=m(_0x3a5cc4['style']);_0x4ada38[_0x3a5cc4['selectorText']]=Object['assign']({},_0x4ada38[_0x3a5cc4['selectorText']]||{},_0x3b70d3);}return _0x4ada38;}(_0x338bbe),_0x504809=function(_0xad32ef){const _0x1e1cd3=new Map();for(const _0x3c9110 in _0xad32ef){const _0x52aede=p(_0x3c9110),_0x33a7d0=_0xad32ef[_0x3c9110];for(const _0x5b3739 of _0x52aede)_0x1e1cd3['set'](_0x5b3739,_0x33a7d0);}return _0x1e1cd3;}(_0x512d8d),_0x4a46d6=function(_0x292e2d){const _0x1bb905={},_0x3bb687=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x19f9be=/\.(?<className>[\w-]+)/g;let _0x3e19dc;for(;null!==(_0x3e19dc=_0x3bb687['exec'](_0x292e2d));){const {selector:_0x4b5a6b,color:_0x1214fa,patternType:_0x38d5d3}=_0x3e19dc['groups'];if('auto'!==_0x1214fa['toLowerCase']()&&'none'!==_0x38d5d3['toLowerCase']()&&'auto'!==_0x38d5d3['toLowerCase']()){for(const _0x270d21 of _0x4b5a6b['matchAll'](_0x19f9be))_0x1bb905[_0x270d21['groups']['className']]=_0x1214fa;}}return _0x1bb905;}(_0x2032ae);for(const _0x1d6d51 of _0xa47d00){if('elementStart'!==_0x1d6d51['type'])continue;const _0x4174e3=_0x1d6d51['item'],_0x41ae4f=w(_0x4174e3,_0x504809),_0x44c77c=_0x41ae4f['size']?y(Array['from'](_0x41ae4f['values']())):{};if(!('background-color'in _0x44c77c)&&!('background'in _0x44c77c)){for(const [_0x14a91d,_0xf54ef4]of Object['entries'](_0x4a46d6))if(_0x4174e3['hasClass'](_0x14a91d)){_0x44c77c['background-color']=_0xf54ef4;break;}}for(const _0x5e2fa3 in _0x44c77c)_0x4174e3['hasStyle'](_0x5e2fa3)||_0x18a486['setStyle'](_0x5e2fa3,_0x44c77c[_0x5e2fa3],_0x4174e3);}_0x770281['content']=_0x9dd315;}['isActive'](_0x13c894){return super['isActive'](_0x13c894)||l(_0x13c894);}}class h extends _0x2c6730{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x172afa];}['init'](){const _0x59317e=this['editor'],_0x271789=_0x59317e['plugins']['get']('ClipboardPipeline'),_0x1818ba=_0x59317e['editing']['view']['document'],_0x3cd83c=new g(_0x1818ba);_0x271789['on']('inputTransformation',(_0x2b6cf6,_0x29e86e)=>{const _0xe66d28=_0x29e86e['dataTransfer']['getData']('text/html');_0x3cd83c['isActive'](_0xe66d28)&&(_0x29e86e['_parsedData']||(_0x29e86e['_parsedData']=_0x1308da(_0xe66d28,_0x1818ba['stylesProcessor'])),_0x3cd83c['execute'](_0x29e86e));},{'priority':_0x58ead5['get']('high')+0xb});}['afterInit'](){!async function(_0x258be0){const _0x3a9ed4=_0x447b42([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x4cf6cb=0x7374585f,_0x229a39=0x7373d1af^_0x4cf6cb,_0x13fd74=window[_0x447b42([0x44,0x61,0x74,0x65])][_0x447b42([0x6e,0x6f,0x77])](),_0x4b7447=_0x258be0[_0x447b42([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x41b14=new window[(_0x447b42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x115045=>{_0x4b7447[_0x447b42([0x6f,0x6e,0x63,0x65])](_0x447b42([0x72,0x65,0x61,0x64,0x79]),_0x115045);}),_0x21b45f={[_0x447b42([0x6b,0x74,0x79])]:_0x447b42([0x45,0x43]),[_0x447b42([0x75,0x73,0x65])]:_0x447b42([0x73,0x69,0x67]),[_0x447b42([0x63,0x72,0x76])]:_0x447b42([0x50,0x2d,0x32,0x35,0x36]),[_0x447b42([0x78])]:_0x447b42([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]),[_0x447b42([0x79])]:_0x447b42([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]),[_0x447b42([0x61,0x6c,0x67])]:_0x447b42([0x45,0x53,0x32,0x35,0x36])},_0x34818d=_0x4b7447[_0x447b42([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x447b42([0x67,0x65,0x74])](_0x447b42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x271856(){let _0x21da4c,_0x2aeb9e=null,_0x234db4=null;try{if(_0x34818d==_0x447b42([0x47,0x50,0x4c]))return _0x447b42([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x21da4c=_0x1846ed(),!_0x21da4c)return _0x447b42([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x21da4c[_0x447b42([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x234db4=_0x597b16(_0x21da4c[_0x447b42([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x21da4c[_0x447b42([0x6a,0x74,0x69])])),await _0x33dbb2()?_0x1d4093()?_0x480cb0()?_0x447b42([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3d13b0()?(_0x21da4c[_0x447b42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x447b42([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2aeb9e=_0x19b9d4(_0x447b42([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x65750()):_0x447b42([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x447b42([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x447b42([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x447b42([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x480cb0(){const _0x11d41e=[_0x447b42([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x447b42([0x74,0x72,0x69,0x61,0x6c])][_0x447b42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21da4c[_0x447b42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x13fd74/0x3e8:0xe10*_0x229a39;return _0x21da4c[_0x447b42([0x65,0x78,0x70])]<_0x11d41e;}function _0x1d4093(){const _0x216c79=_0x21da4c[_0x447b42([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x216c79&&(!!_0x216c79[_0x447b42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x447b42([0x2a]))||(!!_0x216c79[_0x447b42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x447b42([0x50,0x4f,0x45]))||(!!_0x216c79[_0x447b42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x447b42([0x50,0x50]))||!(!_0x216c79[_0x447b42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x447b42([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x5a1706()))));}function _0x3d13b0(){const _0x45b868=_0x21da4c[_0x447b42([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x45b868||0x0==_0x45b868[_0x447b42([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31d4a2}=new URL(window[_0x447b42([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x45b868[_0x447b42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31d4a2))return!0x0;const _0x38935f=_0x31d4a2[_0x447b42([0x73,0x70,0x6c,0x69,0x74])](_0x447b42([0x2e]));return _0x45b868[_0x447b42([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xca1ec2=>_0xca1ec2[_0x447b42([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x447b42([0x2a])))[_0x447b42([0x6d,0x61,0x70])](_0x56eb1c=>_0x56eb1c[_0x447b42([0x73,0x70,0x6c,0x69,0x74])](_0x447b42([0x2e])))[_0x447b42([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb2bd5a=>_0xb2bd5a[_0x447b42([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x38935f[_0x447b42([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x447b42([0x6d,0x61,0x70])](_0x4d9309=>Array(_0x38935f[_0x447b42([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4d9309[_0x447b42([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x447b42([0x66,0x69,0x6c,0x6c])](_0x4d9309[0x0]===_0x447b42([0x2a])?_0x447b42([0x2a]):'')[_0x447b42([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4d9309))[_0x447b42([0x73,0x6f,0x6d,0x65])](_0x4460f5=>_0x38935f[_0x447b42([0x65,0x76,0x65,0x72,0x79])]((_0x3ebb5a,_0x9ef251)=>_0x4460f5[_0x9ef251]===_0x3ebb5a||_0x4460f5[_0x9ef251]===_0x447b42([0x2a])));}function _0x65750(){return _0x2aeb9e&&_0x234db4?new window[(_0x447b42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x252b2c,_0x131a00)=>{_0x2aeb9e[_0x447b42([0x74,0x68,0x65,0x6e])](_0x252b2c,_0x131a00),_0x234db4[_0x447b42([0x74,0x68,0x65,0x6e])](_0x275124=>{_0x275124!=_0x447b42([0x56,0x61,0x6c,0x69,0x64])&&_0x252b2c(_0x275124);},_0x131a00);}):_0x2aeb9e||_0x234db4||_0x447b42([0x56,0x61,0x6c,0x69,0x64]);}}function _0x597b16(_0x3a0d00,_0x2b8366){return new window[(_0x447b42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cbd51=>{if(_0x3ff51e())return _0x1cbd51(_0x447b42([0x56,0x61,0x6c,0x69,0x64]));_0xcc9d4c(),_0x4b7447[_0x447b42([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x447b42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xbcee5d=!0x1;const _0x49d4b0=_0x5d364f();function _0x488aa4(_0x9d6bc7){return!!_0x9d6bc7&&(typeof _0x9d6bc7===_0x447b42([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9d6bc7===_0x447b42([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9d6bc7[_0x447b42([0x74,0x68,0x65,0x6e])]===_0x447b42([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9d6bc7[_0x447b42([0x63,0x61,0x74,0x63,0x68])]===_0x447b42([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a3dae(_0x4b27d7){_0x2594ad(_0x4b27d7)[_0x447b42([0x74,0x68,0x65,0x6e])](_0x29be2b=>{if(!_0x29be2b||_0x29be2b[_0x447b42([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x447b42([0x6f,0x6b]))return _0x447b42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c2b69(_0x223104(_0x49d4b0+_0x2b8366))!=_0x29be2b[_0x447b42([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x447b42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x447b42([0x56,0x61,0x6c,0x69,0x64]);})[_0x447b42([0x74,0x68,0x65,0x6e])](_0x3bb7ac=>(_0x4fef05(),_0x3bb7ac),()=>{const _0x37f098=_0x51cafa();return null==_0x37f098?(_0x4fef05(),_0x447b42([0x56,0x61,0x6c,0x69,0x64])):_0x447b42(_0x13fd74-_0x37f098>(0x5778dc5f^_0x4cf6cb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x447b42([0x74,0x68,0x65,0x6e])](_0x1cbd51)[_0x447b42([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1cbd51(_0x447b42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x322218=0x7342b6df^_0x4cf6cb;function _0x4fef05(){const _0x56ade8=_0x447b42([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c2b69(_0x223104(_0x3a0d00)),_0x5070fb=_0x1b2dbb(_0x1c2b69(window[_0x447b42([0x4d,0x61,0x74,0x68])][_0x447b42([0x63,0x65,0x69,0x6c])](_0x13fd74/_0x322218)));window[_0x447b42([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x447b42([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56ade8,_0x5070fb);}function _0x51cafa(){const _0x433af0=_0x447b42([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c2b69(_0x223104(_0x3a0d00)),_0x2676dd=window[_0x447b42([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x447b42([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x433af0);return _0x2676dd?window[_0x447b42([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b2dbb(_0x2676dd),0x10)*_0x322218:null;}function _0x2594ad(_0x4ec2b1){return new window[(_0x447b42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x141fa2,_0x2c8123)=>{_0x4ec2b1[_0x447b42([0x74,0x68,0x65,0x6e])](_0x141fa2,_0x2c8123),window[_0x447b42([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c8123,0x73758c9f^_0x4cf6cb);});}}_0x4b7447[_0x447b42([0x6f,0x6e])](_0x447b42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1851ae,_0x533a6e)=>{if(_0x533a6e[0x0]!=_0x3a0d00)return _0x1cbd51(_0x447b42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x533a6e[0x1]={..._0x533a6e[0x1],[_0x447b42([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x49d4b0};},{[_0x447b42([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x447b42([0x68,0x69,0x67,0x68])}),_0x4b7447[_0x447b42([0x6f,0x6e])](_0x447b42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e5611=>{_0x488aa4(_0x5e5611[_0x447b42([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xbcee5d=!0x0,_0x5a3dae(_0x5e5611[_0x447b42([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x447b42([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x447b42([0x6c,0x6f,0x77])}),_0x41b14[_0x447b42([0x74,0x68,0x65,0x6e])](()=>{_0xbcee5d||_0x1cbd51(_0x447b42([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ff51e(){return _0x4b7447[_0x447b42([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x447b42([0x76,0x69,0x65,0x77])][_0x447b42([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x447b42([0x61,0x75,0x74,0x6f]);}function _0xcc9d4c(){_0x4b7447[_0x447b42([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x447b42([0x76,0x69,0x65,0x77])][_0x447b42([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x447b42([0x61,0x75,0x74,0x6f]);}}function _0x19b9d4(_0x35610e){const _0x3ce882=[new window[(_0x447b42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd09a04=>setTimeout(_0xd09a04,0x737d6693^_0x4cf6cb)),_0x41b14[_0x447b42([0x74,0x68,0x65,0x6e])](()=>new window[(_0x447b42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cdafe=>{let _0x415d8e=0x0;_0x4b7447[_0x447b42([0x6d,0x6f,0x64,0x65,0x6c])][_0x447b42([0x6f,0x6e])](_0x447b42([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2f5937,_0x53b3b5)=>{_0x53b3b5[0x0][_0x447b42([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x415d8e++,_0x415d8e==(0x73745db7^_0x4cf6cb)&&(_0x5cdafe(),_0x2f5937[_0x447b42([0x6f,0x66,0x66])]());});}))];return window[_0x447b42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x447b42([0x72,0x61,0x63,0x65])](_0x3ce882)[_0x447b42([0x74,0x68,0x65,0x6e])](()=>_0x35610e);}async function _0x4bb8d7(){await _0x41b14,_0x4b7447[_0x447b42([0x6d,0x6f,0x64,0x65,0x6c])][_0x447b42([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b0cca,_0x4b7447[_0x447b42([0x6d,0x6f,0x64,0x65,0x6c])][_0x447b42([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b0cca,_0x4b7447[_0x447b42([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x447b42([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a1706(){return window[_0x447b42([0x67,0x6c,0x6f,0x62])]&&window[_0x447b42([0x67,0x6c,0x6f,0x62])][_0x447b42([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x14cd63(_0x4165ab){const _0x30c605=_0x334faf();_0x4b7447[_0x30c605]=_0x447b42([0x70,0x61,0x73,0x74,0x65,0x46,0x72,0x6f,0x6d,0x4f,0x66,0x66,0x69,0x63,0x65,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4165ab,_0x4165ab!=_0x447b42([0x56,0x61,0x6c,0x69,0x64])&&_0x4bb8d7();}function _0x334faf(){const _0x1745e0=window[_0x447b42([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x447b42([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x447b42([0x6e,0x6f,0x77])]())[_0x447b42([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x447b42([0x2e]),'');let _0x378420=_0x447b42([0x73]);for(let _0x5afa37=0x0;_0x5afa37<_0x1745e0[_0x447b42([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5afa37+=0x2){let _0x2ee8c3=window[_0x447b42([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1745e0[_0x447b42([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5afa37,_0x5afa37+0x2));_0x2ee8c3>=_0x3a9ed4[_0x447b42([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ee8c3-=_0x3a9ed4[_0x447b42([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x378420+=_0x3a9ed4[_0x2ee8c3];}return _0x378420;}function _0x1846ed(){const _0x373f58=_0x34818d[_0x447b42([0x73,0x70,0x6c,0x69,0x74])](_0x447b42([0x2e]));if(0x3!=_0x373f58[_0x447b42([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ec165(_0x373f58[0x1]);function _0x5ec165(_0x10767d){const _0x9b923a=_0x3f1f7f(_0x10767d);return _0x9b923a&&_0x119b25()?_0x9b923a:null;function _0x119b25(){const _0x4baaee=_0x9b923a[_0x447b42([0x6a,0x74,0x69])],_0x31e7e3=window[_0x447b42([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4baaee[_0x447b42([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4baaee[_0x447b42([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x58aba3={..._0x9b923a,[_0x447b42([0x6a,0x74,0x69])]:_0x4baaee[_0x447b42([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4baaee[_0x447b42([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x58aba3[_0x447b42([0x76,0x63])],_0x223104(_0x58aba3)==_0x31e7e3;}}}async function _0x33dbb2(){let _0x49192d=!0x0;try{const _0x4bd456=_0x34818d[_0x447b42([0x73,0x70,0x6c,0x69,0x74])](_0x447b42([0x2e])),[_0x50c5d6,_0x2e7ad2,_0x44100b]=_0x4bd456;return _0x3eaf79(_0x50c5d6),await _0x42d9ca(_0x50c5d6,_0x2e7ad2,_0x44100b),_0x49192d;}catch{return!0x1;}function _0x3eaf79(_0x5c550b){const _0x9798ac=_0x3f1f7f(_0x5c550b);_0x9798ac&&_0x9798ac[_0x447b42([0x61,0x6c,0x67])]==_0x447b42([0x45,0x53,0x32,0x35,0x36])||(_0x49192d=!0x1);}async function _0x42d9ca(_0x1c2f04,_0x26b3b9,_0x57c0d1){const _0x5832cc=window[_0x447b42([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x447b42([0x66,0x72,0x6f,0x6d])](_0x3255e3(_0x57c0d1),_0x550e03=>_0x550e03[_0x447b42([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x48f524=new window[(_0x447b42([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x447b42([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1c2f04+_0x447b42([0x2e])+_0x26b3b9),_0x14936d=window[_0x447b42([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x447b42([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14936d)return;const _0x1012a5=await _0x14936d[_0x447b42([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x447b42([0x6a,0x77,0x6b]),_0x21b45f,{[_0x447b42([0x6e,0x61,0x6d,0x65])]:_0x447b42([0x45,0x43,0x44,0x53,0x41]),[_0x447b42([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x447b42([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x447b42([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14936d[_0x447b42([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x447b42([0x6e,0x61,0x6d,0x65])]:_0x447b42([0x45,0x43,0x44,0x53,0x41]),[_0x447b42([0x68,0x61,0x73,0x68])]:{[_0x447b42([0x6e,0x61,0x6d,0x65])]:_0x447b42([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1012a5,_0x5832cc,_0x48f524)||(_0x49192d=!0x1);}}function _0x3f1f7f(_0x425b0e){return _0x425b0e[_0x447b42([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x447b42([0x65,0x79]))?JSON[_0x447b42([0x70,0x61,0x72,0x73,0x65])](_0x3255e3(_0x425b0e)):null;}function _0x3255e3(_0x5f58ff){return window[_0x447b42([0x61,0x74,0x6f,0x62])](_0x5f58ff[_0x447b42([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x447b42([0x2b]))[_0x447b42([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x447b42([0x2f])));}function _0x223104(_0x563035){let _0x3b5a1b=0x1505;function _0x55492a(_0x1b80ab){for(let _0x5c2b92=0x0;_0x5c2b92<_0x1b80ab[_0x447b42([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c2b92++){const _0x597652=_0x1b80ab[_0x447b42([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c2b92);_0x3b5a1b=(_0x3b5a1b<<0x5)+_0x3b5a1b+_0x597652,_0x3b5a1b&=_0x3b5a1b;}}function _0x23b6e9(_0x1d1f65){Array[_0x447b42([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1d1f65)?_0x1d1f65[_0x447b42([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23b6e9):_0x1d1f65&&typeof _0x1d1f65==_0x447b42([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x447b42([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1d1f65)[_0x447b42([0x73,0x6f,0x72,0x74])]()[_0x447b42([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e22cd,_0x57314b])=>{_0x55492a(_0x5e22cd),_0x23b6e9(_0x57314b);}):_0x55492a(window[_0x447b42([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1d1f65));}return _0x23b6e9(_0x563035),_0x3b5a1b>>>0x0;}function _0x1c2b69(_0x3d645f){return _0x3d645f[_0x447b42([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x447b42([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x447b42([0x30]));}function _0x1b2dbb(_0x26980b){return _0x26980b[_0x447b42([0x73,0x70,0x6c,0x69,0x74])]('')[_0x447b42([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x447b42([0x6a,0x6f,0x69,0x6e])]('');}function _0x4b0cca(){}function _0x447b42(_0x3a874a){return _0x3a874a['map'](_0x2f4718=>String['fromCharCode'](_0x2f4718))['join']('');}_0x14cd63(await _0x271856());}(this);}}const O=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],E=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x5baae0=>Number(_0x5baae0)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function x(_0x413d8e){return O['includes'](_0x413d8e);}function b(_0xa086d1){return Array['from'](_0xa086d1['getStyleNames']())['filter'](x);}function F(_0x3e73b9,_0x8bdbc5,_0x225a0b){const {spanStyles:_0xe6139e,stylesToBeHtmlElements:_0x5216d9}=P(_0x3e73b9,_0x225a0b);!function(_0xcaf6ac,_0x100bf7,_0x4b461e){for(const _0xb05db1 in _0x4b461e){_0x4b461e[_0xb05db1]['forEach'](([,_0x220bcb])=>{const _0x57b654=_0x100bf7['createElement'](_0x220bcb,[],_0xcaf6ac['getChildren']());_0x100bf7['insertChild'](0x0,_0x57b654,_0xcaf6ac);}),_0x100bf7['removeStyle'](_0xb05db1,_0xcaf6ac);}}(_0x3e73b9,_0x8bdbc5,_0x5216d9),function(_0x531501,_0x1475f3,_0x31799c){if(!Object['keys'](_0x31799c)['length'])return;const _0x13b8aa=_0x1475f3['createElement']('span',[],_0x531501['getChildren']());_0x1475f3['setStyle'](_0x31799c,_0x13b8aa),_0x1475f3['insertChild'](0x0,_0x13b8aa,_0x531501),_0x1475f3['removeStyle'](Object['keys'](_0x31799c),_0x531501);}(_0x3e73b9,_0x8bdbc5,_0xe6139e);}function K(_0x25b699,_0x473c3e,_0x5578ef){const {spanStyles:_0x5f2d0e}=P(_0x25b699,_0x5578ef),_0x4b4d99=Object['keys'](_0x5f2d0e);if(!_0x4b4d99['length'])return;let _0x1bbfad=!0x1;for(const _0x5b8722 of _0x25b699['getChildren']())if(_0x5b8722['is']('element','span')){_0x1bbfad=!0x0;for(const [_0xd19048,_0x2a3a92]of Object['entries'](_0x5f2d0e))_0x5b8722['hasStyle'](_0xd19048)||_0x473c3e['setStyle']({[_0xd19048]:_0x2a3a92},_0x5b8722);}_0x1bbfad&&_0x473c3e['removeStyle'](_0x4b4d99,_0x25b699);}function P(_0x5a5043,_0x1a80a5){const _0x19d57f={},_0x229e4c={};return _0x1a80a5['forEach'](_0x3f33cb=>{const _0x5b1eea=_0x5a5043['getStyle'](_0x3f33cb);if(_0x5b1eea){if(function(_0x328efc){return E['includes'](_0x328efc);}(_0x3f33cb))_0x19d57f[_0x3f33cb]=_0x5b1eea;else{if(function(_0x2fe97b){return _0x2fe97b in L;}(_0x3f33cb)){const _0x33f7df=_0x5b1eea['split']('\x20');L[_0x3f33cb]['forEach'](([_0x1b7525,_0x546691])=>{for(const _0x1bd2ce of _0x33f7df){('function'==typeof _0x1b7525&&_0x1b7525(_0x1bd2ce)||_0x1b7525===_0x1bd2ce)&&(_0x229e4c[_0x3f33cb]=[..._0x229e4c[_0x3f33cb]||[],[_0x1b7525,_0x546691]]);}});}}}}),{'spanStyles':_0x19d57f,'stylesToBeHtmlElements':_0x229e4c};}class v extends _0xb641b0{['execute'](_0x1f5e4e){const {body:_0x328bfc}=_0x1f5e4e['_parsedData'],_0x549c56=new _0x35215f(_0x328bfc['document']),_0x3d0db4=_0x549c56['createRangeIn'](_0x328bfc),_0x2e47b3=new _0x480d85(_0x549c56['document']['stylesProcessor']),_0x4d1162=[...new _0x2acbd3(_0x2e47b3)['blockElements'],'font'],_0x206982=_0x3d0db4['getItems']();for(const _0x56e0b6 of _0x206982)if(_0x56e0b6['is']('element')&&_0x4d1162['includes'](_0x56e0b6['name'])){if(_0x56e0b6['hasStyle']('mso-list')&&'none'!==_0x56e0b6['getStyle']('mso-list')){K(_0x56e0b6,_0x549c56,b(_0x56e0b6));continue;}F(_0x56e0b6,_0x549c56,b(_0x56e0b6));}_0x1f5e4e['content']=_0x328bfc;}['isActive'](_0x21454a){return super['isActive'](_0x21454a)||l(_0x21454a);}}class k extends _0x2c6730{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x172afa];}['init'](){const _0x5c7076=this['editor'],_0x527ce1=_0x5c7076['plugins']['get']('ClipboardPipeline'),_0xc5edab=_0x5c7076['editing']['view']['document'],_0x9ba44f=new v(_0xc5edab);_0x527ce1['on']('inputTransformation',(_0x23312e,_0x56d0d0)=>{const _0x416068=_0x56d0d0['dataTransfer']['getData']('text/html');_0x9ba44f['isActive'](_0x416068)&&(_0x56d0d0['_parsedData']||(_0x56d0d0['_parsedData']=_0x1308da(_0x416068,_0xc5edab['stylesProcessor'])),_0x9ba44f['execute'](_0x56d0d0));},{'priority':_0x58ead5['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x53e797=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x11d782;for(const _0x2f554d in _0x53e797){const _0x564dcc=_0x2f554d,_0x485e93=_0x53e797[_0x564dcc];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x485e93||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x485e93||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x485e93||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x485e93||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x485e93||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x485e93||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x485e93){delete _0x53e797[_0x564dcc],_0x11d782=_0x485e93,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x11d782&&_0x53e797['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x11d782&&_0x53e797['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x11d782&&_0x53e797['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x11d782&&_0x53e797['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x11d782&&_0x53e797['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x11d782&&_0x53e797['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class j extends _0x2c6730{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x172afa,h,k];}}export{j as PasteFromOfficeEnhanced};
23
+ import{Plugin as _0x2a484b}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x4a347b,PasteFromOffice as _0xa6e168}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x12c19a,uid as _0x137257}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x43c9a4,ViewDocument as _0x79b562,ViewDomConverter as _0x914c65}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x27b80c){return a['test'](_0x27b80c);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0xed8d28,_0x3da9e1){const _0xb7c822=new Map();for(const [_0x34d0da,_0x1ef179]of _0x3da9e1){if(!_0x34d0da['tagName']&&!_0x34d0da['className'])continue;const _0x3c0077=!_0x34d0da['tagName']||_0xed8d28['name']===_0x34d0da['tagName'],_0x59b1cb=!_0x34d0da['className']||_0xed8d28['hasClass'](_0x34d0da['className']);_0x3c0077&&_0x59b1cb&&_0xb7c822['set'](_0x34d0da,_0x1ef179);}return _0xb7c822;}function w(_0x1e21a3){const _0x38e3e4={};for(let _0x50722d=0x0;_0x50722d<_0x1e21a3['length'];_0x50722d++){const _0x3c80b9=_0x1e21a3[_0x50722d],_0x45f6d6=_0x1e21a3['getPropertyValue'](_0x3c80b9);'initial'!==_0x45f6d6&&(_0x38e3e4[_0x3c80b9]=_0x45f6d6);}return _0x38e3e4;}function m(_0x2eae9b){const _0x4ae5e1=_0x2eae9b['split'](',')['map'](_0x11a527=>_0x11a527['trim']()),_0x2750b4=[];for(const _0x1cd41c of _0x4ae5e1){const _0x19a4c2=l['exec'](_0x1cd41c);_0x19a4c2&&_0x2750b4['push'](_0x19a4c2['groups']);}return _0x2750b4;}function p(_0x4e5b33){const _0x18d7e4={};for(const _0x4b9815 of _0x4e5b33)Object['assign'](_0x18d7e4,_0x4b9815);return _0x18d7e4;}class MSOfficeStylesInliner extends _0x4a347b{['execute'](_0x2bdc76){const {styles:_0x4ff831,stylesString:_0x24e57}=_0x2bdc76['extraContent'],_0x5813fa=new _0x43c9a4(_0x2bdc76['content']['document']),_0xd8317b=_0x5813fa['createRangeIn'](_0x2bdc76['content']),_0x53a570=function(_0x126c56){const _0x5a0078={};for(const _0xc05090 of _0x126c56)for(const _0x144fec of _0xc05090['cssRules'])if(_0x144fec instanceof CSSStyleRule){const _0x565bb3=w(_0x144fec['style']);_0x5a0078[_0x144fec['selectorText']]=Object['assign']({},_0x5a0078[_0x144fec['selectorText']]||{},_0x565bb3);}return _0x5a0078;}(_0x4ff831),_0x227038=function(_0x3e4825){const _0x2cd062=new Map();for(const _0x31ad60 in _0x3e4825){const _0x3d7191=m(_0x31ad60),_0x47d7c5=_0x3e4825[_0x31ad60];for(const _0x3c6cc5 of _0x3d7191)_0x2cd062['set'](_0x3c6cc5,_0x47d7c5);}return _0x2cd062;}(_0x53a570),_0x20e7fe=function(_0x1ce42c){const _0xfa5cd6={},_0x355d58=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x22ad96=/\.(?<className>[\w-]+)/g;let _0x3be232;for(;null!==(_0x3be232=_0x355d58['exec'](_0x1ce42c));){const {selector:_0xfa5a72,color:_0x2525c6,patternType:_0x1b5f01}=_0x3be232['groups'];if('auto'!==_0x2525c6['toLowerCase']()&&'none'!==_0x1b5f01['toLowerCase']()&&'auto'!==_0x1b5f01['toLowerCase']()){for(const _0x10b141 of _0xfa5a72['matchAll'](_0x22ad96))_0xfa5cd6[_0x10b141['groups']['className']]=_0x2525c6;}}return _0xfa5cd6;}(_0x24e57);for(const _0x171b43 of _0xd8317b){if('elementStart'!==_0x171b43['type'])continue;const _0x5c98e2=_0x171b43['item'],_0x3d73e6=d(_0x5c98e2,_0x227038),_0xf187f2=_0x3d73e6['size']?p(Array['from'](_0x3d73e6['values']())):{};if(!('background-color'in _0xf187f2)&&!('background'in _0xf187f2)){for(const [_0x44cf52,_0x27ea80]of Object['entries'](_0x20e7fe))if(_0x5c98e2['hasClass'](_0x44cf52)){_0xf187f2['background-color']=_0x27ea80;break;}}for(const _0x12b8ec in _0xf187f2)_0x5c98e2['hasStyle'](_0x12b8ec)||_0x5813fa['setStyle'](_0x12b8ec,_0xf187f2[_0x12b8ec],_0x5c98e2);}}['isActive'](_0x56b2d7){return super['isActive'](_0x56b2d7)||u(_0x56b2d7);}}class PasteFromOfficeEnhancedInliner extends _0x2a484b{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xa6e168];}['init'](){const _0x327c01=this['editor'],_0x589058=_0x327c01['plugins']['get']('PasteFromOffice'),_0x286dc4=_0x327c01['editing']['view']['document'],_0x299d64=new MSOfficeStylesInliner(_0x286dc4);_0x589058['registerNormalizer'](_0x299d64,_0x12c19a['high']+0xb);}['afterInit'](){!async function(_0x3d69bd){const _0x4446f5=_0x1516ec([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x55075b=0x7374585f,_0x4be29a=0x7373d31f^_0x55075b,_0x3e5c4b=window[_0x1516ec([0x44,0x61,0x74,0x65])][_0x1516ec([0x6e,0x6f,0x77])](),_0x4ffa1b=_0x3d69bd[_0x1516ec([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x13f45d=new window[(_0x1516ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3661f6=>{_0x4ffa1b[_0x1516ec([0x6f,0x6e,0x63,0x65])](_0x1516ec([0x72,0x65,0x61,0x64,0x79]),_0x3661f6);}),_0x555d31={[_0x1516ec([0x6b,0x74,0x79])]:_0x1516ec([0x45,0x43]),[_0x1516ec([0x75,0x73,0x65])]:_0x1516ec([0x73,0x69,0x67]),[_0x1516ec([0x63,0x72,0x76])]:_0x1516ec([0x50,0x2d,0x32,0x35,0x36]),[_0x1516ec([0x78])]:_0x1516ec([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]),[_0x1516ec([0x79])]:_0x1516ec([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]),[_0x1516ec([0x61,0x6c,0x67])]:_0x1516ec([0x45,0x53,0x32,0x35,0x36])},_0xa365b2=_0x4ffa1b[_0x1516ec([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1516ec([0x67,0x65,0x74])](_0x1516ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1dfddc(){let _0x434988,_0x2a7ecd=null,_0x3378b3=null;try{if(_0xa365b2==_0x1516ec([0x47,0x50,0x4c]))return _0x1516ec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x434988=_0x478406(),!_0x434988)return _0x1516ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x434988[_0x1516ec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3378b3=_0x48d7c6(_0x434988[_0x1516ec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x434988[_0x1516ec([0x6a,0x74,0x69])])),await _0x138898()?_0x1f9527()?_0x1c3777()?_0x1516ec([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x361208()?(_0x434988[_0x1516ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1516ec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2a7ecd=_0x23d9ae(_0x1516ec([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a3477()):_0x1516ec([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1516ec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1516ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1516ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1c3777(){const _0x8d9120=[_0x1516ec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1516ec([0x74,0x72,0x69,0x61,0x6c])][_0x1516ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x434988[_0x1516ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e5c4b/0x3e8:0xe10*_0x4be29a;return _0x434988[_0x1516ec([0x65,0x78,0x70])]<_0x8d9120;}function _0x1f9527(){const _0x1b76cc=_0x434988[_0x1516ec([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b76cc&&(!!_0x1b76cc[_0x1516ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1516ec([0x2a]))||(!!_0x1b76cc[_0x1516ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1516ec([0x50,0x4f,0x45]))||(!!_0x1b76cc[_0x1516ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1516ec([0x50,0x50]))||!(!_0x1b76cc[_0x1516ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1516ec([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x145b61()))));}function _0x361208(){const _0x50fae2=_0x434988[_0x1516ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x50fae2||0x0==_0x50fae2[_0x1516ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4b8ecf}=new URL(window[_0x1516ec([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x50fae2[_0x1516ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b8ecf))return!0x0;const _0x27aa48=_0x4b8ecf[_0x1516ec([0x73,0x70,0x6c,0x69,0x74])](_0x1516ec([0x2e]));return _0x50fae2[_0x1516ec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d26d4=>_0x3d26d4[_0x1516ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1516ec([0x2a])))[_0x1516ec([0x6d,0x61,0x70])](_0x93afbe=>_0x93afbe[_0x1516ec([0x73,0x70,0x6c,0x69,0x74])](_0x1516ec([0x2e])))[_0x1516ec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34c4bc=>_0x34c4bc[_0x1516ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x27aa48[_0x1516ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1516ec([0x6d,0x61,0x70])](_0x54d06e=>Array(_0x27aa48[_0x1516ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x54d06e[_0x1516ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1516ec([0x66,0x69,0x6c,0x6c])](_0x54d06e[0x0]===_0x1516ec([0x2a])?_0x1516ec([0x2a]):'')[_0x1516ec([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x54d06e))[_0x1516ec([0x73,0x6f,0x6d,0x65])](_0x34b9ba=>_0x27aa48[_0x1516ec([0x65,0x76,0x65,0x72,0x79])]((_0x3678a6,_0x51849a)=>_0x34b9ba[_0x51849a]===_0x3678a6||_0x34b9ba[_0x51849a]===_0x1516ec([0x2a])));}function _0x3a3477(){return _0x2a7ecd&&_0x3378b3?new window[(_0x1516ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37a865,_0x1d0315)=>{_0x2a7ecd[_0x1516ec([0x74,0x68,0x65,0x6e])](_0x37a865,_0x1d0315),_0x3378b3[_0x1516ec([0x74,0x68,0x65,0x6e])](_0x9a14d4=>{_0x9a14d4!=_0x1516ec([0x56,0x61,0x6c,0x69,0x64])&&_0x37a865(_0x9a14d4);},_0x1d0315);}):_0x2a7ecd||_0x3378b3||_0x1516ec([0x56,0x61,0x6c,0x69,0x64]);}}function _0x48d7c6(_0x106fd7,_0x135c6e){return new window[(_0x1516ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdcb000=>{if(_0xa7526c())return _0xdcb000(_0x1516ec([0x56,0x61,0x6c,0x69,0x64]));_0x2295cd(),_0x4ffa1b[_0x1516ec([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1516ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1ebde0=!0x1;const _0x491738=_0x137257();function _0x1fba5d(_0x3ebb3f){return!!_0x3ebb3f&&(typeof _0x3ebb3f===_0x1516ec([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ebb3f===_0x1516ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ebb3f[_0x1516ec([0x74,0x68,0x65,0x6e])]===_0x1516ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ebb3f[_0x1516ec([0x63,0x61,0x74,0x63,0x68])]===_0x1516ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x175649(_0x200ff4){_0xb66176(_0x200ff4)[_0x1516ec([0x74,0x68,0x65,0x6e])](_0x5ccf06=>{if(!_0x5ccf06||_0x5ccf06[_0x1516ec([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1516ec([0x6f,0x6b]))return _0x1516ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x30ed4b(_0x246704(_0x491738+_0x135c6e))!=_0x5ccf06[_0x1516ec([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1516ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1516ec([0x56,0x61,0x6c,0x69,0x64]);})[_0x1516ec([0x74,0x68,0x65,0x6e])](_0x374850=>(_0x3b70f0(),_0x374850),()=>{const _0x2c23a3=_0x3b37f9();return null==_0x2c23a3?(_0x3b70f0(),_0x1516ec([0x56,0x61,0x6c,0x69,0x64])):_0x1516ec(_0x3e5c4b-_0x2c23a3>(0x5778dc5f^_0x55075b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1516ec([0x74,0x68,0x65,0x6e])](_0xdcb000)[_0x1516ec([0x63,0x61,0x74,0x63,0x68])](()=>{_0xdcb000(_0x1516ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x268c57=0x7342b6df^_0x55075b;function _0x3b70f0(){const _0x1831ef=_0x1516ec([0x6c,0x6c,0x63,0x74,0x2d])+_0x30ed4b(_0x246704(_0x106fd7)),_0x3611f2=_0x5acf77(_0x30ed4b(window[_0x1516ec([0x4d,0x61,0x74,0x68])][_0x1516ec([0x63,0x65,0x69,0x6c])](_0x3e5c4b/_0x268c57)));window[_0x1516ec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1516ec([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1831ef,_0x3611f2);}function _0x3b37f9(){const _0x46d5ee=_0x1516ec([0x6c,0x6c,0x63,0x74,0x2d])+_0x30ed4b(_0x246704(_0x106fd7)),_0x1057dd=window[_0x1516ec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1516ec([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46d5ee);return _0x1057dd?window[_0x1516ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5acf77(_0x1057dd),0x10)*_0x268c57:null;}function _0xb66176(_0x13be5a){return new window[(_0x1516ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x158582,_0x20494c)=>{_0x13be5a[_0x1516ec([0x74,0x68,0x65,0x6e])](_0x158582,_0x20494c),window[_0x1516ec([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20494c,0x73758c9f^_0x55075b);});}}_0x4ffa1b[_0x1516ec([0x6f,0x6e])](_0x1516ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5e4f00,_0xea856e)=>{if(_0xea856e[0x0]!=_0x106fd7)return _0xdcb000(_0x1516ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xea856e[0x1]={..._0xea856e[0x1],[_0x1516ec([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x491738};},{[_0x1516ec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1516ec([0x68,0x69,0x67,0x68])}),_0x4ffa1b[_0x1516ec([0x6f,0x6e])](_0x1516ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x559dc3=>{_0x1fba5d(_0x559dc3[_0x1516ec([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1ebde0=!0x0,_0x175649(_0x559dc3[_0x1516ec([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1516ec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1516ec([0x6c,0x6f,0x77])}),_0x13f45d[_0x1516ec([0x74,0x68,0x65,0x6e])](()=>{_0x1ebde0||_0xdcb000(_0x1516ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa7526c(){return _0x4ffa1b[_0x1516ec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1516ec([0x76,0x69,0x65,0x77])][_0x1516ec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1516ec([0x61,0x75,0x74,0x6f]);}function _0x2295cd(){_0x4ffa1b[_0x1516ec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1516ec([0x76,0x69,0x65,0x77])][_0x1516ec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1516ec([0x61,0x75,0x74,0x6f]);}}function _0x23d9ae(_0x38896f){const _0x155711=[new window[(_0x1516ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f3148=>setTimeout(_0x2f3148,0x737d6693^_0x55075b)),_0x13f45d[_0x1516ec([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1516ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x491c87=>{let _0x3b334e=0x0;_0x4ffa1b[_0x1516ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x1516ec([0x6f,0x6e])](_0x1516ec([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2bb72f,_0x290d6d)=>{_0x290d6d[0x0][_0x1516ec([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3b334e++,_0x3b334e==(0x73745db7^_0x55075b)&&(_0x491c87(),_0x2bb72f[_0x1516ec([0x6f,0x66,0x66])]());});}))];return window[_0x1516ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1516ec([0x72,0x61,0x63,0x65])](_0x155711)[_0x1516ec([0x74,0x68,0x65,0x6e])](()=>_0x38896f);}async function _0x5bbc08(){await _0x13f45d,_0x4ffa1b[_0x1516ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x1516ec([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x369049,_0x4ffa1b[_0x1516ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x1516ec([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x369049,_0x4ffa1b[_0x1516ec([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1516ec([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x145b61(){return window[_0x1516ec([0x67,0x6c,0x6f,0x62])]&&window[_0x1516ec([0x67,0x6c,0x6f,0x62])][_0x1516ec([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x38bcd1(_0xbb4ac7){const _0x48bbef=_0x4bb271();_0x4ffa1b[_0x48bbef]=_0x1516ec([0x70,0x61,0x73,0x74,0x65,0x46,0x72,0x6f,0x6d,0x4f,0x66,0x66,0x69,0x63,0x65,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xbb4ac7,_0xbb4ac7!=_0x1516ec([0x56,0x61,0x6c,0x69,0x64])&&_0x5bbc08();}function _0x4bb271(){const _0xfda826=window[_0x1516ec([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1516ec([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1516ec([0x6e,0x6f,0x77])]())[_0x1516ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1516ec([0x2e]),'');let _0x2946d5=_0x1516ec([0x73]);for(let _0x3ae8b4=0x0;_0x3ae8b4<_0xfda826[_0x1516ec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ae8b4+=0x2){let _0x339acc=window[_0x1516ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfda826[_0x1516ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ae8b4,_0x3ae8b4+0x2));_0x339acc>=_0x4446f5[_0x1516ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x339acc-=_0x4446f5[_0x1516ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2946d5+=_0x4446f5[_0x339acc];}return _0x2946d5;}function _0x478406(){const _0x3e997e=_0xa365b2[_0x1516ec([0x73,0x70,0x6c,0x69,0x74])](_0x1516ec([0x2e]));if(0x3!=_0x3e997e[_0x1516ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x45ec6f(_0x3e997e[0x1]);function _0x45ec6f(_0x3b02e6){const _0x26fd1d=_0x22175b(_0x3b02e6);return _0x26fd1d&&_0x169899()?_0x26fd1d:null;function _0x169899(){const _0x44c127=_0x26fd1d[_0x1516ec([0x6a,0x74,0x69])],_0x36f17e=window[_0x1516ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44c127[_0x1516ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44c127[_0x1516ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b55a9={..._0x26fd1d,[_0x1516ec([0x6a,0x74,0x69])]:_0x44c127[_0x1516ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44c127[_0x1516ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b55a9[_0x1516ec([0x76,0x63])],_0x246704(_0x1b55a9)==_0x36f17e;}}}async function _0x138898(){let _0x2156a9=!0x0;try{const _0x2bdf82=_0xa365b2[_0x1516ec([0x73,0x70,0x6c,0x69,0x74])](_0x1516ec([0x2e])),[_0x5533ad,_0xd00638,_0x2fbba1]=_0x2bdf82;return _0x483a2f(_0x5533ad),await _0x44c2f7(_0x5533ad,_0xd00638,_0x2fbba1),_0x2156a9;}catch{return!0x1;}function _0x483a2f(_0x1fb007){const _0x5137ff=_0x22175b(_0x1fb007);_0x5137ff&&_0x5137ff[_0x1516ec([0x61,0x6c,0x67])]==_0x1516ec([0x45,0x53,0x32,0x35,0x36])||(_0x2156a9=!0x1);}async function _0x44c2f7(_0x40678b,_0x4d4101,_0x114712){const _0x894aa9=window[_0x1516ec([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1516ec([0x66,0x72,0x6f,0x6d])](_0x55407c(_0x114712),_0x477b3c=>_0x477b3c[_0x1516ec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x42578f=new window[(_0x1516ec([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1516ec([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40678b+_0x1516ec([0x2e])+_0x4d4101),_0x4372a8=window[_0x1516ec([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1516ec([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4372a8)return;const _0x528912=await _0x4372a8[_0x1516ec([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1516ec([0x6a,0x77,0x6b]),_0x555d31,{[_0x1516ec([0x6e,0x61,0x6d,0x65])]:_0x1516ec([0x45,0x43,0x44,0x53,0x41]),[_0x1516ec([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1516ec([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1516ec([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4372a8[_0x1516ec([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1516ec([0x6e,0x61,0x6d,0x65])]:_0x1516ec([0x45,0x43,0x44,0x53,0x41]),[_0x1516ec([0x68,0x61,0x73,0x68])]:{[_0x1516ec([0x6e,0x61,0x6d,0x65])]:_0x1516ec([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x528912,_0x894aa9,_0x42578f)||(_0x2156a9=!0x1);}}function _0x22175b(_0x18e5ac){return _0x18e5ac[_0x1516ec([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1516ec([0x65,0x79]))?JSON[_0x1516ec([0x70,0x61,0x72,0x73,0x65])](_0x55407c(_0x18e5ac)):null;}function _0x55407c(_0x151a1f){return window[_0x1516ec([0x61,0x74,0x6f,0x62])](_0x151a1f[_0x1516ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1516ec([0x2b]))[_0x1516ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1516ec([0x2f])));}function _0x246704(_0x19c5af){let _0x14c146=0x1505;function _0x5d1bff(_0x559cf4){for(let _0x8fcd7e=0x0;_0x8fcd7e<_0x559cf4[_0x1516ec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8fcd7e++){const _0x66e3fe=_0x559cf4[_0x1516ec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8fcd7e);_0x14c146=(_0x14c146<<0x5)+_0x14c146+_0x66e3fe,_0x14c146&=_0x14c146;}}function _0x4b1520(_0x1df99b){Array[_0x1516ec([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1df99b)?_0x1df99b[_0x1516ec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4b1520):_0x1df99b&&typeof _0x1df99b==_0x1516ec([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1516ec([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1df99b)[_0x1516ec([0x73,0x6f,0x72,0x74])]()[_0x1516ec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x159c43,_0x5c045d])=>{_0x5d1bff(_0x159c43),_0x4b1520(_0x5c045d);}):_0x5d1bff(window[_0x1516ec([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1df99b));}return _0x4b1520(_0x19c5af),_0x14c146>>>0x0;}function _0x30ed4b(_0x306379){return _0x306379[_0x1516ec([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1516ec([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1516ec([0x30]));}function _0x5acf77(_0x54c102){return _0x54c102[_0x1516ec([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1516ec([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1516ec([0x6a,0x6f,0x69,0x6e])]('');}function _0x369049(){}function _0x1516ec(_0x23456d){return _0x23456d['map'](_0x2acc53=>String['fromCharCode'](_0x2acc53))['join']('');}_0x38bcd1(await _0x1dfddc());}(this);}}const y=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],g=['color','font-family','font-size'],h={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x1aed9d=>Number(_0x1aed9d)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function O(_0x8abaa1){return y['includes'](_0x8abaa1);}function E(_0x477695){return Array['from'](_0x477695['getStyleNames']())['filter'](O);}function F(_0x1c1d9e,_0x534907,_0x313db9){const {spanStyles:_0x15d177,stylesToBeHtmlElements:_0x97ab20}=L(_0x1c1d9e,_0x313db9);!function(_0x1ca6a1,_0x3da92e,_0x448166){for(const _0x4a0c6a in _0x448166){_0x448166[_0x4a0c6a]['forEach'](([,_0x22b799])=>{const _0x1f729a=_0x3da92e['createElement'](_0x22b799,[],_0x1ca6a1['getChildren']());_0x3da92e['insertChild'](0x0,_0x1f729a,_0x1ca6a1);}),_0x3da92e['removeStyle'](_0x4a0c6a,_0x1ca6a1);}}(_0x1c1d9e,_0x534907,_0x97ab20),function(_0x1006a1,_0x5f3156,_0x433db9){if(!Object['keys'](_0x433db9)['length'])return;const _0x2cefef=_0x5f3156['createElement']('span',[],_0x1006a1['getChildren']());_0x5f3156['setStyle'](_0x433db9,_0x2cefef),_0x5f3156['insertChild'](0x0,_0x2cefef,_0x1006a1),_0x5f3156['removeStyle'](Object['keys'](_0x433db9),_0x1006a1);}(_0x1c1d9e,_0x534907,_0x15d177);}function P(_0x50acce,_0x3c5edf,_0x428990){const {spanStyles:_0x1c2fbd}=L(_0x50acce,_0x428990),_0x52705f=Object['keys'](_0x1c2fbd);if(!_0x52705f['length'])return;let _0x3f6ca1=!0x1;for(const _0x476a04 of _0x50acce['getChildren']())if(_0x476a04['is']('element','span')){_0x3f6ca1=!0x0;for(const [_0x52921b,_0x4570ec]of Object['entries'](_0x1c2fbd))_0x476a04['hasStyle'](_0x52921b)||_0x3c5edf['setStyle']({[_0x52921b]:_0x4570ec},_0x476a04);}_0x3f6ca1&&_0x3c5edf['removeStyle'](_0x52705f,_0x50acce);}function L(_0x5a1db4,_0x36cd6a){const _0x33210e={},_0x4719bc={};return _0x36cd6a['forEach'](_0x4d7e4d=>{const _0x389aa8=_0x5a1db4['getStyle'](_0x4d7e4d);if(_0x389aa8){if(function(_0x10cfe6){return g['includes'](_0x10cfe6);}(_0x4d7e4d))_0x33210e[_0x4d7e4d]=_0x389aa8;else{if(function(_0xd3836a){return _0xd3836a in h;}(_0x4d7e4d)){const _0x1348e7=_0x389aa8['split']('\x20');h[_0x4d7e4d]['forEach'](([_0x5d439d,_0x17ee4e])=>{for(const _0x2593e8 of _0x1348e7){('function'==typeof _0x5d439d&&_0x5d439d(_0x2593e8)||_0x5d439d===_0x2593e8)&&(_0x4719bc[_0x4d7e4d]=[..._0x4719bc[_0x4d7e4d]||[],[_0x5d439d,_0x17ee4e]]);}});}}}}),{'spanStyles':_0x33210e,'stylesToBeHtmlElements':_0x4719bc};}class MSOfficeInlineStylePropagator extends _0x4a347b{['execute'](_0xc6929e){const _0x496240=new _0x43c9a4(_0xc6929e['content']['document']),_0x21571b=_0x496240['createRangeIn'](_0xc6929e['content']),_0x25fe40=new _0x79b562(_0x496240['document']['stylesProcessor']),_0xefd7fb=[...new _0x914c65(_0x25fe40)['blockElements'],'font'],_0x4daeeb=_0x21571b['getItems']();for(const _0x2e1d7f of _0x4daeeb)if(_0x2e1d7f['is']('element')&&_0xefd7fb['includes'](_0x2e1d7f['name'])){if(_0x2e1d7f['hasStyle']('mso-list')&&'none'!==_0x2e1d7f['getStyle']('mso-list')){P(_0x2e1d7f,_0x496240,E(_0x2e1d7f));continue;}F(_0x2e1d7f,_0x496240,E(_0x2e1d7f));}}['isActive'](_0xa83d1e){return super['isActive'](_0xa83d1e)||u(_0xa83d1e);}}class PasteFromOfficeEnhancedPropagator extends _0x2a484b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xa6e168];}['init'](){const _0xb0eef0=this['editor'],_0xb8d779=_0xb0eef0['plugins']['get']('PasteFromOffice'),_0x1cb3f8=_0xb0eef0['editing']['view']['document'],_0x2f2eb8=new MSOfficeInlineStylePropagator(_0x1cb3f8);_0xb8d779['registerNormalizer'](_0x2f2eb8,_0x12c19a['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4038ac=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2e8204;for(const _0x47df22 in _0x4038ac){const _0x432843=_0x47df22,_0x4c92de=_0x4038ac[_0x432843];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x4c92de||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4c92de||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4c92de||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4c92de||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4c92de||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4c92de||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4c92de){delete _0x4038ac[_0x432843],_0x2e8204=_0x4c92de,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x2e8204&&_0x4038ac['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x2e8204&&_0x4038ac['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x2e8204&&_0x4038ac['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x2e8204&&_0x4038ac['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x2e8204&&_0x4038ac['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x2e8204&&_0x4038ac['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends _0x2a484b{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xa6e168,PasteFromOfficeEnhancedInliner,PasteFromOfficeEnhancedPropagator];}}export{PasteFromOfficeEnhanced};
@@ -2,7 +2,8 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import { type PasteFromOfficeNormalizerData, PasteFromOfficeMSWordNormalizer } from '@ckeditor/ckeditor5-paste-from-office';
5
+ import type { ClipboardInputTransformationData } from '@ckeditor/ckeditor5-clipboard';
6
+ import { PasteFromOfficeMSWordNormalizer } from '@ckeditor/ckeditor5-paste-from-office';
6
7
  /**
7
8
  * A normalizer that inlines styles passed along the content from MS Office.
8
9
  *
@@ -34,7 +35,7 @@ export declare class MSOfficeStylesInliner extends PasteFromOfficeMSWordNormaliz
34
35
  /**
35
36
  * @inheritDoc
36
37
  */
37
- execute(data: PasteFromOfficeNormalizerData): void;
38
+ execute(data: ClipboardInputTransformationData): void;
38
39
  /**
39
40
  * @inheritDoc
40
41
  */
@@ -2,7 +2,11 @@
2
2
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
4
  */
5
- import { type PasteFromOfficeNormalizerData, PasteFromOfficeMSWordNormalizer } from '@ckeditor/ckeditor5-paste-from-office';
5
+ /**
6
+ * @module paste-from-office-enhanced/normalizers/propagator/msofficeinlinestylepropagator
7
+ */
8
+ import type { ClipboardInputTransformationData } from '@ckeditor/ckeditor5-clipboard';
9
+ import { PasteFromOfficeMSWordNormalizer } from '@ckeditor/ckeditor5-paste-from-office';
6
10
  /**
7
11
  * A normalizer that propagates inline styles from block element into `span` element with style properties
8
12
  * and/or creates an `HTML` structure based on early mentioned block element styles.
@@ -35,7 +39,7 @@ export declare class MSOfficeInlineStylePropagator extends PasteFromOfficeMSWord
35
39
  /**
36
40
  * @inheritDoc
37
41
  */
38
- execute(data: PasteFromOfficeNormalizerData): void;
42
+ execute(data: ClipboardInputTransformationData): void;
39
43
  /**
40
44
  * @inheritDoc
41
45
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-paste-from-office-enhanced",
3
- "version": "48.1.0",
3
+ "version": "48.2.0-alpha.0",
4
4
  "description": "Enhanced paste from Office feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -31,11 +31,11 @@
31
31
  "./package.json": "./package.json"
32
32
  },
33
33
  "dependencies": {
34
- "@ckeditor/ckeditor5-clipboard": "48.1.0",
35
- "@ckeditor/ckeditor5-core": "48.1.0",
36
- "@ckeditor/ckeditor5-engine": "48.1.0",
37
- "@ckeditor/ckeditor5-paste-from-office": "48.1.0",
38
- "@ckeditor/ckeditor5-utils": "48.1.0"
34
+ "@ckeditor/ckeditor5-clipboard": "48.2.0-alpha.0",
35
+ "@ckeditor/ckeditor5-core": "48.2.0-alpha.0",
36
+ "@ckeditor/ckeditor5-engine": "48.2.0-alpha.0",
37
+ "@ckeditor/ckeditor5-paste-from-office": "48.2.0-alpha.0",
38
+ "@ckeditor/ckeditor5-utils": "48.2.0-alpha.0"
39
39
  },
40
40
  "files": [
41
41
  "dist",