@ckeditor/ckeditor5-paste-from-office-enhanced 48.1.1 → 48.2.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x3b3aba}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x10d157,PasteFromOffice as _0x567ac2,parsePasteOfficeHtml as _0x261b1e}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x5a3f34,uid as _0x1f027c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x2a4b12,ViewDocument as _0x46a780,ViewDomConverter as _0xfe35d2}from'@ckeditor/ckeditor5-engine/dist/index.js';const u=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x39137a){return u['test'](_0x39137a);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x30b249,_0x30b595){const _0xe2bf5=new Map();for(const [_0x2a2928,_0x2bfc1c]of _0x30b595){if(!_0x2a2928['tagName']&&!_0x2a2928['className'])continue;const _0x405158=!_0x2a2928['tagName']||_0x30b249['name']===_0x2a2928['tagName'],_0x42da00=!_0x2a2928['className']||_0x30b249['hasClass'](_0x2a2928['className']);_0x405158&&_0x42da00&&_0xe2bf5['set'](_0x2a2928,_0x2bfc1c);}return _0xe2bf5;}function m(_0x2f1aa9){const _0x3e7ca2={};for(let _0x493237=0x0;_0x493237<_0x2f1aa9['length'];_0x493237++){const _0x221f91=_0x2f1aa9[_0x493237],_0x187521=_0x2f1aa9['getPropertyValue'](_0x221f91);'initial'!==_0x187521&&(_0x3e7ca2[_0x221f91]=_0x187521);}return _0x3e7ca2;}function p(_0xef4990){const _0x236e7a=_0xef4990['split'](',')['map'](_0xff331b=>_0xff331b['trim']()),_0x933a6a=[];for(const _0x5a82b3 of _0x236e7a){const _0x2a7a19=d['exec'](_0x5a82b3);_0x2a7a19&&_0x933a6a['push'](_0x2a7a19['groups']);}return _0x933a6a;}function y(_0x5c2b2a){const _0x448c8d={};for(const _0x514f4b of _0x5c2b2a)Object['assign'](_0x448c8d,_0x514f4b);return _0x448c8d;}class MSOfficeStylesInliner extends _0x10d157{['execute'](_0x4ca1a0){const {body:_0x1c9fd9,styles:_0x566f9e,stylesString:_0x1cfde8}=_0x4ca1a0['_parsedData'],_0x4dfd4b=new _0x2a4b12(_0x1c9fd9['document']),_0xf1cf7c=_0x4dfd4b['createRangeIn'](_0x1c9fd9),_0x59bea6=function(_0x2f40dc){const _0x58b580={};for(const _0x43f8c1 of _0x2f40dc)for(const _0x1b0724 of _0x43f8c1['cssRules'])if(_0x1b0724 instanceof CSSStyleRule){const _0x446f75=m(_0x1b0724['style']);_0x58b580[_0x1b0724['selectorText']]=Object['assign']({},_0x58b580[_0x1b0724['selectorText']]||{},_0x446f75);}return _0x58b580;}(_0x566f9e),_0x119bac=function(_0x48aa35){const _0x1c30f7=new Map();for(const _0x3523d7 in _0x48aa35){const _0x83cc35=p(_0x3523d7),_0x52d72f=_0x48aa35[_0x3523d7];for(const _0x17f4a1 of _0x83cc35)_0x1c30f7['set'](_0x17f4a1,_0x52d72f);}return _0x1c30f7;}(_0x59bea6),_0x43e865=function(_0x190b40){const _0xe98263={},_0x1363d0=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x1463b0=/\.(?<className>[\w-]+)/g;let _0x2da1dd;for(;null!==(_0x2da1dd=_0x1363d0['exec'](_0x190b40));){const {selector:_0x2aa00a,color:_0x463941,patternType:_0x5a5e40}=_0x2da1dd['groups'];if('auto'!==_0x463941['toLowerCase']()&&'none'!==_0x5a5e40['toLowerCase']()&&'auto'!==_0x5a5e40['toLowerCase']()){for(const _0x28427a of _0x2aa00a['matchAll'](_0x1463b0))_0xe98263[_0x28427a['groups']['className']]=_0x463941;}}return _0xe98263;}(_0x1cfde8);for(const _0x5403e1 of _0xf1cf7c){if('elementStart'!==_0x5403e1['type'])continue;const _0x312c6b=_0x5403e1['item'],_0x189adb=w(_0x312c6b,_0x119bac),_0x4b35be=_0x189adb['size']?y(Array['from'](_0x189adb['values']())):{};if(!('background-color'in _0x4b35be)&&!('background'in _0x4b35be)){for(const [_0x4aba76,_0x36fe1e]of Object['entries'](_0x43e865))if(_0x312c6b['hasClass'](_0x4aba76)){_0x4b35be['background-color']=_0x36fe1e;break;}}for(const _0x5bd534 in _0x4b35be)_0x312c6b['hasStyle'](_0x5bd534)||_0x4dfd4b['setStyle'](_0x5bd534,_0x4b35be[_0x5bd534],_0x312c6b);}_0x4ca1a0['content']=_0x1c9fd9;}['isActive'](_0x3e3122){return super['isActive'](_0x3e3122)||l(_0x3e3122);}}class PasteFromOfficeEnhancedInliner extends _0x3b3aba{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x567ac2];}['init'](){const _0x2450ca=this['editor'],_0x37dce7=_0x2450ca['plugins']['get']('ClipboardPipeline'),_0x38e095=_0x2450ca['editing']['view']['document'],_0x21e906=new MSOfficeStylesInliner(_0x38e095);_0x37dce7['on']('inputTransformation',(_0x594f63,_0x28981d)=>{const _0x231599=_0x28981d['dataTransfer']['getData']('text/html');_0x21e906['isActive'](_0x231599)&&(_0x28981d['_parsedData']||(_0x28981d['_parsedData']=_0x261b1e(_0x231599,_0x38e095['stylesProcessor'])),_0x21e906['execute'](_0x28981d));},{'priority':_0x5a3f34['get']('high')+0xb});}['afterInit'](){!async function(_0xe12bda){const _0x529f1a=_0x3783a8([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]),_0x28c0ae=0x7374585f,_0x738784=0x7373d237^_0x28c0ae,_0x549e44=window[_0x3783a8([0x44,0x61,0x74,0x65])][_0x3783a8([0x6e,0x6f,0x77])](),_0x44fb8f=_0xe12bda[_0x3783a8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x164a6f=new window[(_0x3783a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e7afe=>{_0x44fb8f[_0x3783a8([0x6f,0x6e,0x63,0x65])](_0x3783a8([0x72,0x65,0x61,0x64,0x79]),_0x3e7afe);}),_0x318af2={[_0x3783a8([0x6b,0x74,0x79])]:_0x3783a8([0x45,0x43]),[_0x3783a8([0x75,0x73,0x65])]:_0x3783a8([0x73,0x69,0x67]),[_0x3783a8([0x63,0x72,0x76])]:_0x3783a8([0x50,0x2d,0x32,0x35,0x36]),[_0x3783a8([0x78])]:_0x3783a8([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]),[_0x3783a8([0x79])]:_0x3783a8([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]),[_0x3783a8([0x61,0x6c,0x67])]:_0x3783a8([0x45,0x53,0x32,0x35,0x36])},_0x195a11=_0x44fb8f[_0x3783a8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3783a8([0x67,0x65,0x74])](_0x3783a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x42017e(){let _0x41f490,_0x1c09a4=null,_0x1fde2f=null;try{if(_0x195a11==_0x3783a8([0x47,0x50,0x4c]))return _0x3783a8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x41f490=_0x24d55e(),!_0x41f490)return _0x3783a8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x41f490[_0x3783a8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1fde2f=_0x10f280(_0x41f490[_0x3783a8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x41f490[_0x3783a8([0x6a,0x74,0x69])])),await _0x1cd7cc()?_0x438b5a()?_0x415a11()?_0x3783a8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e42aa()?(_0x41f490[_0x3783a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3783a8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1c09a4=_0x17541f(_0x3783a8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb5311c()):_0x3783a8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3783a8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3783a8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3783a8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x415a11(){const _0x370a61=[_0x3783a8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3783a8([0x74,0x72,0x69,0x61,0x6c])][_0x3783a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41f490[_0x3783a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x549e44/0x3e8:0xe10*_0x738784;return _0x41f490[_0x3783a8([0x65,0x78,0x70])]<_0x370a61;}function _0x438b5a(){const _0x5cac62=_0x41f490[_0x3783a8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5cac62&&(!!_0x5cac62[_0x3783a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3783a8([0x2a]))||(!!_0x5cac62[_0x3783a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3783a8([0x50,0x4f,0x45]))||(!!_0x5cac62[_0x3783a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3783a8([0x50,0x50]))||!(!_0x5cac62[_0x3783a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3783a8([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x5650c6()))));}function _0x3e42aa(){const _0x12627b=_0x41f490[_0x3783a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x12627b||0x0==_0x12627b[_0x3783a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1039a3}=new URL(window[_0x3783a8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x12627b[_0x3783a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1039a3))return!0x0;const _0x4f294c=_0x1039a3[_0x3783a8([0x73,0x70,0x6c,0x69,0x74])](_0x3783a8([0x2e]));return _0x12627b[_0x3783a8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4093b4=>_0x4093b4[_0x3783a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3783a8([0x2a])))[_0x3783a8([0x6d,0x61,0x70])](_0x5d4784=>_0x5d4784[_0x3783a8([0x73,0x70,0x6c,0x69,0x74])](_0x3783a8([0x2e])))[_0x3783a8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x279444=>_0x279444[_0x3783a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4f294c[_0x3783a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3783a8([0x6d,0x61,0x70])](_0xf56ac6=>Array(_0x4f294c[_0x3783a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf56ac6[_0x3783a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3783a8([0x66,0x69,0x6c,0x6c])](_0xf56ac6[0x0]===_0x3783a8([0x2a])?_0x3783a8([0x2a]):'')[_0x3783a8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf56ac6))[_0x3783a8([0x73,0x6f,0x6d,0x65])](_0x1f2b71=>_0x4f294c[_0x3783a8([0x65,0x76,0x65,0x72,0x79])]((_0x390403,_0x190db7)=>_0x1f2b71[_0x190db7]===_0x390403||_0x1f2b71[_0x190db7]===_0x3783a8([0x2a])));}function _0xb5311c(){return _0x1c09a4&&_0x1fde2f?new window[(_0x3783a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d495d,_0x32e001)=>{_0x1c09a4[_0x3783a8([0x74,0x68,0x65,0x6e])](_0x1d495d,_0x32e001),_0x1fde2f[_0x3783a8([0x74,0x68,0x65,0x6e])](_0x43c09b=>{_0x43c09b!=_0x3783a8([0x56,0x61,0x6c,0x69,0x64])&&_0x1d495d(_0x43c09b);},_0x32e001);}):_0x1c09a4||_0x1fde2f||_0x3783a8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x10f280(_0x474424,_0x4dfe8e){return new window[(_0x3783a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17bcd6=>{if(_0x33db12())return _0x17bcd6(_0x3783a8([0x56,0x61,0x6c,0x69,0x64]));_0x5ba526(),_0x44fb8f[_0x3783a8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3783a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x310198=!0x1;const _0x1b8cc4=_0x1f027c();function _0x29378b(_0x4d42f4){return!!_0x4d42f4&&(typeof _0x4d42f4===_0x3783a8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4d42f4===_0x3783a8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4d42f4[_0x3783a8([0x74,0x68,0x65,0x6e])]===_0x3783a8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4d42f4[_0x3783a8([0x63,0x61,0x74,0x63,0x68])]===_0x3783a8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc698a0(_0x487648){_0x497d52(_0x487648)[_0x3783a8([0x74,0x68,0x65,0x6e])](_0x1fe99a=>{if(!_0x1fe99a||_0x1fe99a[_0x3783a8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3783a8([0x6f,0x6b]))return _0x3783a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d37d0(_0xe66ae(_0x1b8cc4+_0x4dfe8e))!=_0x1fe99a[_0x3783a8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3783a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3783a8([0x56,0x61,0x6c,0x69,0x64]);})[_0x3783a8([0x74,0x68,0x65,0x6e])](_0x435cfc=>(_0x3560d2(),_0x435cfc),()=>{const _0x200af0=_0x94c54f();return null==_0x200af0?(_0x3560d2(),_0x3783a8([0x56,0x61,0x6c,0x69,0x64])):_0x3783a8(_0x549e44-_0x200af0>(0x5778dc5f^_0x28c0ae)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3783a8([0x74,0x68,0x65,0x6e])](_0x17bcd6)[_0x3783a8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x17bcd6(_0x3783a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb65efa=0x7342b6df^_0x28c0ae;function _0x3560d2(){const _0x12a12c=_0x3783a8([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d37d0(_0xe66ae(_0x474424)),_0x47d357=_0x4431a8(_0x4d37d0(window[_0x3783a8([0x4d,0x61,0x74,0x68])][_0x3783a8([0x63,0x65,0x69,0x6c])](_0x549e44/_0xb65efa)));window[_0x3783a8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3783a8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12a12c,_0x47d357);}function _0x94c54f(){const _0x156f08=_0x3783a8([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d37d0(_0xe66ae(_0x474424)),_0x21606e=window[_0x3783a8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3783a8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x156f08);return _0x21606e?window[_0x3783a8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4431a8(_0x21606e),0x10)*_0xb65efa:null;}function _0x497d52(_0x3bb4b9){return new window[(_0x3783a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdea199,_0x6f670c)=>{_0x3bb4b9[_0x3783a8([0x74,0x68,0x65,0x6e])](_0xdea199,_0x6f670c),window[_0x3783a8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6f670c,0x73758c9f^_0x28c0ae);});}}_0x44fb8f[_0x3783a8([0x6f,0x6e])](_0x3783a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x16c416,_0x3e7452)=>{if(_0x3e7452[0x0]!=_0x474424)return _0x17bcd6(_0x3783a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e7452[0x1]={..._0x3e7452[0x1],[_0x3783a8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b8cc4};},{[_0x3783a8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3783a8([0x68,0x69,0x67,0x68])}),_0x44fb8f[_0x3783a8([0x6f,0x6e])](_0x3783a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xcf6b61=>{_0x29378b(_0xcf6b61[_0x3783a8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x310198=!0x0,_0xc698a0(_0xcf6b61[_0x3783a8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3783a8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3783a8([0x6c,0x6f,0x77])}),_0x164a6f[_0x3783a8([0x74,0x68,0x65,0x6e])](()=>{_0x310198||_0x17bcd6(_0x3783a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x33db12(){return _0x44fb8f[_0x3783a8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3783a8([0x76,0x69,0x65,0x77])][_0x3783a8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3783a8([0x61,0x75,0x74,0x6f]);}function _0x5ba526(){_0x44fb8f[_0x3783a8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3783a8([0x76,0x69,0x65,0x77])][_0x3783a8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3783a8([0x61,0x75,0x74,0x6f]);}}function _0x17541f(_0x4e851f){const _0x4f1b8a=[new window[(_0x3783a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b8c12=>setTimeout(_0x3b8c12,0x737d6693^_0x28c0ae)),_0x164a6f[_0x3783a8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3783a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f3b83=>{let _0x2b21e7=0x0;_0x44fb8f[_0x3783a8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3783a8([0x6f,0x6e])](_0x3783a8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5dc9c2,_0x16c99b)=>{_0x16c99b[0x0][_0x3783a8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2b21e7++,_0x2b21e7==(0x73745db7^_0x28c0ae)&&(_0x3f3b83(),_0x5dc9c2[_0x3783a8([0x6f,0x66,0x66])]());});}))];return window[_0x3783a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3783a8([0x72,0x61,0x63,0x65])](_0x4f1b8a)[_0x3783a8([0x74,0x68,0x65,0x6e])](()=>_0x4e851f);}async function _0xd270f8(){await _0x164a6f,_0x44fb8f[_0x3783a8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3783a8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xef691e,_0x44fb8f[_0x3783a8([0x6d,0x6f,0x64,0x65,0x6c])][_0x3783a8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xef691e,_0x44fb8f[_0x3783a8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3783a8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5650c6(){return window[_0x3783a8([0x67,0x6c,0x6f,0x62])]&&window[_0x3783a8([0x67,0x6c,0x6f,0x62])][_0x3783a8([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x4c72c6(_0x305669){const _0x254091=_0x215502();_0x44fb8f[_0x254091]=_0x3783a8([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])+_0x305669,_0x305669!=_0x3783a8([0x56,0x61,0x6c,0x69,0x64])&&_0xd270f8();}function _0x215502(){const _0x11c5b7=window[_0x3783a8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3783a8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3783a8([0x6e,0x6f,0x77])]())[_0x3783a8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3783a8([0x2e]),'');let _0x2bd05b=_0x3783a8([0x73]);for(let _0x2332ff=0x0;_0x2332ff<_0x11c5b7[_0x3783a8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2332ff+=0x2){let _0x56b0a6=window[_0x3783a8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11c5b7[_0x3783a8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2332ff,_0x2332ff+0x2));_0x56b0a6>=_0x529f1a[_0x3783a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56b0a6-=_0x529f1a[_0x3783a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2bd05b+=_0x529f1a[_0x56b0a6];}return _0x2bd05b;}function _0x24d55e(){const _0x5b575f=_0x195a11[_0x3783a8([0x73,0x70,0x6c,0x69,0x74])](_0x3783a8([0x2e]));if(0x3!=_0x5b575f[_0x3783a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x39340c(_0x5b575f[0x1]);function _0x39340c(_0x4aa967){const _0x56a1b9=_0x1314eb(_0x4aa967);return _0x56a1b9&&_0x37be4b()?_0x56a1b9:null;function _0x37be4b(){const _0x302158=_0x56a1b9[_0x3783a8([0x6a,0x74,0x69])],_0x4bda2b=window[_0x3783a8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x302158[_0x3783a8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x302158[_0x3783a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e89b2={..._0x56a1b9,[_0x3783a8([0x6a,0x74,0x69])]:_0x302158[_0x3783a8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x302158[_0x3783a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e89b2[_0x3783a8([0x76,0x63])],_0xe66ae(_0x3e89b2)==_0x4bda2b;}}}async function _0x1cd7cc(){let _0x33436f=!0x0;try{const _0x5d9e50=_0x195a11[_0x3783a8([0x73,0x70,0x6c,0x69,0x74])](_0x3783a8([0x2e])),[_0x2fe3cb,_0x1af032,_0x551803]=_0x5d9e50;return _0x31347d(_0x2fe3cb),await _0x10e0fc(_0x2fe3cb,_0x1af032,_0x551803),_0x33436f;}catch{return!0x1;}function _0x31347d(_0x208d30){const _0x349fec=_0x1314eb(_0x208d30);_0x349fec&&_0x349fec[_0x3783a8([0x61,0x6c,0x67])]==_0x3783a8([0x45,0x53,0x32,0x35,0x36])||(_0x33436f=!0x1);}async function _0x10e0fc(_0x5f068e,_0x260d9a,_0x60c696){const _0x305fa9=window[_0x3783a8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3783a8([0x66,0x72,0x6f,0x6d])](_0x18cfea(_0x60c696),_0x86104c=>_0x86104c[_0x3783a8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xdbf7b0=new window[(_0x3783a8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3783a8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5f068e+_0x3783a8([0x2e])+_0x260d9a),_0x4d5ec4=window[_0x3783a8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3783a8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d5ec4)return;const _0x13938e=await _0x4d5ec4[_0x3783a8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3783a8([0x6a,0x77,0x6b]),_0x318af2,{[_0x3783a8([0x6e,0x61,0x6d,0x65])]:_0x3783a8([0x45,0x43,0x44,0x53,0x41]),[_0x3783a8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3783a8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3783a8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d5ec4[_0x3783a8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3783a8([0x6e,0x61,0x6d,0x65])]:_0x3783a8([0x45,0x43,0x44,0x53,0x41]),[_0x3783a8([0x68,0x61,0x73,0x68])]:{[_0x3783a8([0x6e,0x61,0x6d,0x65])]:_0x3783a8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x13938e,_0x305fa9,_0xdbf7b0)||(_0x33436f=!0x1);}}function _0x1314eb(_0x14254f){return _0x14254f[_0x3783a8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3783a8([0x65,0x79]))?JSON[_0x3783a8([0x70,0x61,0x72,0x73,0x65])](_0x18cfea(_0x14254f)):null;}function _0x18cfea(_0x144413){return window[_0x3783a8([0x61,0x74,0x6f,0x62])](_0x144413[_0x3783a8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3783a8([0x2b]))[_0x3783a8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3783a8([0x2f])));}function _0xe66ae(_0x4a28c7){let _0x38144e=0x1505;function _0x4f8f88(_0x16e54c){for(let _0x31cb7a=0x0;_0x31cb7a<_0x16e54c[_0x3783a8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31cb7a++){const _0x43d1af=_0x16e54c[_0x3783a8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31cb7a);_0x38144e=(_0x38144e<<0x5)+_0x38144e+_0x43d1af,_0x38144e&=_0x38144e;}}function _0x4f4262(_0x5cfefc){Array[_0x3783a8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5cfefc)?_0x5cfefc[_0x3783a8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f4262):_0x5cfefc&&typeof _0x5cfefc==_0x3783a8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3783a8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5cfefc)[_0x3783a8([0x73,0x6f,0x72,0x74])]()[_0x3783a8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56c3ff,_0x342052])=>{_0x4f8f88(_0x56c3ff),_0x4f4262(_0x342052);}):_0x4f8f88(window[_0x3783a8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5cfefc));}return _0x4f4262(_0x4a28c7),_0x38144e>>>0x0;}function _0x4d37d0(_0x125a86){return _0x125a86[_0x3783a8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3783a8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3783a8([0x30]));}function _0x4431a8(_0x542644){return _0x542644[_0x3783a8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3783a8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3783a8([0x6a,0x6f,0x69,0x6e])]('');}function _0xef691e(){}function _0x3783a8(_0x40a482){return _0x40a482['map'](_0x44deba=>String['fromCharCode'](_0x44deba))['join']('');}_0x4c72c6(await _0x42017e());}(this);}}const g=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],h=['color','font-family','font-size'],O={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x702db6=>Number(_0x702db6)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function E(_0x4bd1a5){return g['includes'](_0x4bd1a5);}function P(_0x3ed3b3){return Array['from'](_0x3ed3b3['getStyleNames']())['filter'](E);}function F(_0x20e53e,_0x4a85c4,_0x1a20a2){const {spanStyles:_0x192c26,stylesToBeHtmlElements:_0x581206}=x(_0x20e53e,_0x1a20a2);!function(_0xa93d35,_0x39ba80,_0x2e6c68){for(const _0x33df91 in _0x2e6c68){_0x2e6c68[_0x33df91]['forEach'](([,_0x4e5251])=>{const _0x182bda=_0x39ba80['createElement'](_0x4e5251,[],_0xa93d35['getChildren']());_0x39ba80['insertChild'](0x0,_0x182bda,_0xa93d35);}),_0x39ba80['removeStyle'](_0x33df91,_0xa93d35);}}(_0x20e53e,_0x4a85c4,_0x581206),function(_0x2e58a0,_0x2d2756,_0x52b105){if(!Object['keys'](_0x52b105)['length'])return;const _0x3a9f96=_0x2d2756['createElement']('span',[],_0x2e58a0['getChildren']());_0x2d2756['setStyle'](_0x52b105,_0x3a9f96),_0x2d2756['insertChild'](0x0,_0x3a9f96,_0x2e58a0),_0x2d2756['removeStyle'](Object['keys'](_0x52b105),_0x2e58a0);}(_0x20e53e,_0x4a85c4,_0x192c26);}function L(_0x315976,_0x1e4edf,_0x4c7b5b){const {spanStyles:_0x1a9e28}=x(_0x315976,_0x4c7b5b),_0x504ebe=Object['keys'](_0x1a9e28);if(!_0x504ebe['length'])return;let _0x36955e=!0x1;for(const _0xb8a2b9 of _0x315976['getChildren']())if(_0xb8a2b9['is']('element','span')){_0x36955e=!0x0;for(const [_0x3bc4fc,_0x5bfc4f]of Object['entries'](_0x1a9e28))_0xb8a2b9['hasStyle'](_0x3bc4fc)||_0x1e4edf['setStyle']({[_0x3bc4fc]:_0x5bfc4f},_0xb8a2b9);}_0x36955e&&_0x1e4edf['removeStyle'](_0x504ebe,_0x315976);}function x(_0x4dc4ee,_0x25254c){const _0x53bda7={},_0x2ce51a={};return _0x25254c['forEach'](_0x4dd4fd=>{const _0x21e38b=_0x4dc4ee['getStyle'](_0x4dd4fd);if(_0x21e38b){if(function(_0x2919c7){return h['includes'](_0x2919c7);}(_0x4dd4fd))_0x53bda7[_0x4dd4fd]=_0x21e38b;else{if(function(_0x3f37c5){return _0x3f37c5 in O;}(_0x4dd4fd)){const _0x23fb38=_0x21e38b['split']('\x20');O[_0x4dd4fd]['forEach'](([_0x4d1fee,_0xc880d2])=>{for(const _0x192b28 of _0x23fb38){('function'==typeof _0x4d1fee&&_0x4d1fee(_0x192b28)||_0x4d1fee===_0x192b28)&&(_0x2ce51a[_0x4dd4fd]=[..._0x2ce51a[_0x4dd4fd]||[],[_0x4d1fee,_0xc880d2]]);}});}}}}),{'spanStyles':_0x53bda7,'stylesToBeHtmlElements':_0x2ce51a};}class MSOfficeInlineStylePropagator extends _0x10d157{['execute'](_0x20a3c0){const {body:_0x9448f3}=_0x20a3c0['_parsedData'],_0x5ca29d=new _0x2a4b12(_0x9448f3['document']),_0x55722f=_0x5ca29d['createRangeIn'](_0x9448f3),_0x49e013=new _0x46a780(_0x5ca29d['document']['stylesProcessor']),_0x2a130b=[...new _0xfe35d2(_0x49e013)['blockElements'],'font'],_0x1ece5f=_0x55722f['getItems']();for(const _0x53e5bf of _0x1ece5f)if(_0x53e5bf['is']('element')&&_0x2a130b['includes'](_0x53e5bf['name'])){if(_0x53e5bf['hasStyle']('mso-list')&&'none'!==_0x53e5bf['getStyle']('mso-list')){L(_0x53e5bf,_0x5ca29d,P(_0x53e5bf));continue;}F(_0x53e5bf,_0x5ca29d,P(_0x53e5bf));}_0x20a3c0['content']=_0x9448f3;}['isActive'](_0x2a129a){return super['isActive'](_0x2a129a)||l(_0x2a129a);}}class PasteFromOfficeEnhancedPropagator extends _0x3b3aba{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x567ac2];}['init'](){const _0x48ffda=this['editor'],_0x230c53=_0x48ffda['plugins']['get']('ClipboardPipeline'),_0x22b8cc=_0x48ffda['editing']['view']['document'],_0xd9a023=new MSOfficeInlineStylePropagator(_0x22b8cc);_0x230c53['on']('inputTransformation',(_0x468d9e,_0x3d2767)=>{const _0x4ea577=_0x3d2767['dataTransfer']['getData']('text/html');_0xd9a023['isActive'](_0x4ea577)&&(_0x3d2767['_parsedData']||(_0x3d2767['_parsedData']=_0x261b1e(_0x4ea577,_0x22b8cc['stylesProcessor'])),_0xd9a023['execute'](_0x3d2767));},{'priority':_0x5a3f34['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1f02a4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x14b909;for(const _0x561af8 in _0x1f02a4){const _0x151f69=_0x561af8,_0x4014d6=_0x1f02a4[_0x151f69];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x4014d6||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4014d6||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4014d6||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4014d6||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4014d6||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4014d6||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4014d6){delete _0x1f02a4[_0x151f69],_0x14b909=_0x4014d6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x14b909&&_0x1f02a4['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x14b909&&_0x1f02a4['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x14b909&&_0x1f02a4['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x14b909&&_0x1f02a4['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x14b909&&_0x1f02a4['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x14b909&&_0x1f02a4['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends _0x3b3aba{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x567ac2,PasteFromOfficeEnhancedInliner,PasteFromOfficeEnhancedPropagator];}}export{PasteFromOfficeEnhanced};
23
+ import{Plugin as _0x4d82cb}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x4d0a3a,PasteFromOffice as _0x287f9e}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x1e7432,uid as _0x3c3360}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x485030,ViewDocument as _0x5afb98,ViewDomConverter as _0x2fa712}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0xf94752){return a['test'](_0xf94752);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x2d754b,_0x552f4b){const _0x46552a=new Map();for(const [_0x4f5cef,_0x13e02c]of _0x552f4b){if(!_0x4f5cef['tagName']&&!_0x4f5cef['className'])continue;const _0x54122f=!_0x4f5cef['tagName']||_0x2d754b['name']===_0x4f5cef['tagName'],_0xac6998=!_0x4f5cef['className']||_0x2d754b['hasClass'](_0x4f5cef['className']);_0x54122f&&_0xac6998&&_0x46552a['set'](_0x4f5cef,_0x13e02c);}return _0x46552a;}function w(_0x539df7){const _0x4c746f={};for(let _0x299160=0x0;_0x299160<_0x539df7['length'];_0x299160++){const _0x2bc077=_0x539df7[_0x299160],_0x202b32=_0x539df7['getPropertyValue'](_0x2bc077);'initial'!==_0x202b32&&(_0x4c746f[_0x2bc077]=_0x202b32);}return _0x4c746f;}function m(_0x23a31f){const _0x4771ab=_0x23a31f['split'](',')['map'](_0x355c88=>_0x355c88['trim']()),_0x2cabf4=[];for(const _0x2584be of _0x4771ab){const _0x21e25b=l['exec'](_0x2584be);_0x21e25b&&_0x2cabf4['push'](_0x21e25b['groups']);}return _0x2cabf4;}function p(_0xfef6b3){const _0x3c6585={};for(const _0x54af45 of _0xfef6b3)Object['assign'](_0x3c6585,_0x54af45);return _0x3c6585;}class MSOfficeStylesInliner extends _0x4d0a3a{['execute'](_0x340a8b){const {styles:_0x28ae9a,stylesString:_0x2c1629}=_0x340a8b['extraContent'],_0xd34ecf=new _0x485030(_0x340a8b['content']['document']),_0x14687e=_0xd34ecf['createRangeIn'](_0x340a8b['content']),_0x20f9e7=function(_0xd2422d){const _0x106c88={};for(const _0x259a2e of _0xd2422d)for(const _0x32070a of _0x259a2e['cssRules'])if(_0x32070a instanceof CSSStyleRule){const _0x52a449=w(_0x32070a['style']);_0x106c88[_0x32070a['selectorText']]=Object['assign']({},_0x106c88[_0x32070a['selectorText']]||{},_0x52a449);}return _0x106c88;}(_0x28ae9a),_0x28c2cd=function(_0x240351){const _0xe0a026=new Map();for(const _0xd71325 in _0x240351){const _0x5e1501=m(_0xd71325),_0x39bbef=_0x240351[_0xd71325];for(const _0x1c9b05 of _0x5e1501)_0xe0a026['set'](_0x1c9b05,_0x39bbef);}return _0xe0a026;}(_0x20f9e7),_0x7051e4=function(_0x5c51cd){const _0x301ffb={},_0x1bc701=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x35ad5d=/\.(?<className>[\w-]+)/g;let _0x4dadf7;for(;null!==(_0x4dadf7=_0x1bc701['exec'](_0x5c51cd));){const {selector:_0x2b1534,color:_0x27f0df,patternType:_0x418718}=_0x4dadf7['groups'];if('auto'!==_0x27f0df['toLowerCase']()&&'none'!==_0x418718['toLowerCase']()&&'auto'!==_0x418718['toLowerCase']()){for(const _0x63bdcc of _0x2b1534['matchAll'](_0x35ad5d))_0x301ffb[_0x63bdcc['groups']['className']]=_0x27f0df;}}return _0x301ffb;}(_0x2c1629);for(const _0x36ebc0 of _0x14687e){if('elementStart'!==_0x36ebc0['type'])continue;const _0x29c47e=_0x36ebc0['item'],_0x322f48=d(_0x29c47e,_0x28c2cd),_0x29a350=_0x322f48['size']?p(Array['from'](_0x322f48['values']())):{};if(!('background-color'in _0x29a350)&&!('background'in _0x29a350)){for(const [_0x35c102,_0x1ba19b]of Object['entries'](_0x7051e4))if(_0x29c47e['hasClass'](_0x35c102)){_0x29a350['background-color']=_0x1ba19b;break;}}for(const _0x5cfc34 in _0x29a350)_0x29c47e['hasStyle'](_0x5cfc34)||_0xd34ecf['setStyle'](_0x5cfc34,_0x29a350[_0x5cfc34],_0x29c47e);}}['isActive'](_0xe7f4a9){return super['isActive'](_0xe7f4a9)||u(_0xe7f4a9);}}class PasteFromOfficeEnhancedInliner extends _0x4d82cb{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x287f9e];}['init'](){const _0x3f70e1=this['editor'],_0x3ab8f8=_0x3f70e1['plugins']['get']('PasteFromOffice'),_0x96cd40=_0x3f70e1['editing']['view']['document'],_0x540e2a=new MSOfficeStylesInliner(_0x96cd40);_0x3ab8f8['registerNormalizer'](_0x540e2a,_0x1e7432['high']+0xb);}['afterInit'](){!async function(_0x2745c9){const _0x146a45=_0x254df4([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]),_0x40a05b=0x7374585f,_0x5d917e=0x7373d307^_0x40a05b,_0xf9689a=window[_0x254df4([0x44,0x61,0x74,0x65])][_0x254df4([0x6e,0x6f,0x77])](),_0x549e8b=_0x2745c9[_0x254df4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b8216=new window[(_0x254df4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x483a1c=>{_0x549e8b[_0x254df4([0x6f,0x6e,0x63,0x65])](_0x254df4([0x72,0x65,0x61,0x64,0x79]),_0x483a1c);}),_0x58f900={[_0x254df4([0x6b,0x74,0x79])]:_0x254df4([0x45,0x43]),[_0x254df4([0x75,0x73,0x65])]:_0x254df4([0x73,0x69,0x67]),[_0x254df4([0x63,0x72,0x76])]:_0x254df4([0x50,0x2d,0x32,0x35,0x36]),[_0x254df4([0x78])]:_0x254df4([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]),[_0x254df4([0x79])]:_0x254df4([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]),[_0x254df4([0x61,0x6c,0x67])]:_0x254df4([0x45,0x53,0x32,0x35,0x36])},_0x2a138e=_0x549e8b[_0x254df4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x254df4([0x67,0x65,0x74])](_0x254df4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x167336(){let _0x119a00,_0x5556af=null,_0x4e8e02=null;try{if(_0x2a138e==_0x254df4([0x47,0x50,0x4c]))return _0x254df4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x119a00=_0x3e4291(),!_0x119a00)return _0x254df4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x119a00[_0x254df4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e8e02=_0x343f5c(_0x119a00[_0x254df4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x119a00[_0x254df4([0x6a,0x74,0x69])])),await _0x5da37d()?_0x4540d6()?_0x13a60e()?_0x254df4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47284a()?(_0x119a00[_0x254df4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x254df4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5556af=_0x13815b(_0x254df4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2cb464()):_0x254df4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x254df4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x254df4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x254df4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x13a60e(){const _0x26c4e0=[_0x254df4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x254df4([0x74,0x72,0x69,0x61,0x6c])][_0x254df4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x119a00[_0x254df4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf9689a/0x3e8:0xe10*_0x5d917e;return _0x119a00[_0x254df4([0x65,0x78,0x70])]<_0x26c4e0;}function _0x4540d6(){const _0x3d5ca0=_0x119a00[_0x254df4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3d5ca0&&(!!_0x3d5ca0[_0x254df4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x254df4([0x2a]))||(!!_0x3d5ca0[_0x254df4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x254df4([0x50,0x4f,0x45]))||(!!_0x3d5ca0[_0x254df4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x254df4([0x50,0x50]))||!(!_0x3d5ca0[_0x254df4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x254df4([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x33cfb1()))));}function _0x47284a(){const _0x40ff6a=_0x119a00[_0x254df4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x40ff6a||0x0==_0x40ff6a[_0x254df4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1cbf05}=new URL(window[_0x254df4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x40ff6a[_0x254df4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cbf05))return!0x0;const _0x5d7587=_0x1cbf05[_0x254df4([0x73,0x70,0x6c,0x69,0x74])](_0x254df4([0x2e]));return _0x40ff6a[_0x254df4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf43e9f=>_0xf43e9f[_0x254df4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x254df4([0x2a])))[_0x254df4([0x6d,0x61,0x70])](_0x447af5=>_0x447af5[_0x254df4([0x73,0x70,0x6c,0x69,0x74])](_0x254df4([0x2e])))[_0x254df4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52980c=>_0x52980c[_0x254df4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5d7587[_0x254df4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x254df4([0x6d,0x61,0x70])](_0x2428ef=>Array(_0x5d7587[_0x254df4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2428ef[_0x254df4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x254df4([0x66,0x69,0x6c,0x6c])](_0x2428ef[0x0]===_0x254df4([0x2a])?_0x254df4([0x2a]):'')[_0x254df4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2428ef))[_0x254df4([0x73,0x6f,0x6d,0x65])](_0x18142c=>_0x5d7587[_0x254df4([0x65,0x76,0x65,0x72,0x79])]((_0x2d1b1c,_0x2bf930)=>_0x18142c[_0x2bf930]===_0x2d1b1c||_0x18142c[_0x2bf930]===_0x254df4([0x2a])));}function _0x2cb464(){return _0x5556af&&_0x4e8e02?new window[(_0x254df4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x83bd1f,_0x41e1ec)=>{_0x5556af[_0x254df4([0x74,0x68,0x65,0x6e])](_0x83bd1f,_0x41e1ec),_0x4e8e02[_0x254df4([0x74,0x68,0x65,0x6e])](_0x11b401=>{_0x11b401!=_0x254df4([0x56,0x61,0x6c,0x69,0x64])&&_0x83bd1f(_0x11b401);},_0x41e1ec);}):_0x5556af||_0x4e8e02||_0x254df4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x343f5c(_0x391ddd,_0x387864){return new window[(_0x254df4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4245dd=>{if(_0x2fa7c0())return _0x4245dd(_0x254df4([0x56,0x61,0x6c,0x69,0x64]));_0x379d19(),_0x549e8b[_0x254df4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x254df4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x147413=!0x1;const _0xa0d3c7=_0x3c3360();function _0x27f3e1(_0x9ed293){return!!_0x9ed293&&(typeof _0x9ed293===_0x254df4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9ed293===_0x254df4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9ed293[_0x254df4([0x74,0x68,0x65,0x6e])]===_0x254df4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9ed293[_0x254df4([0x63,0x61,0x74,0x63,0x68])]===_0x254df4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53b287(_0x126b69){_0xa27c7b(_0x126b69)[_0x254df4([0x74,0x68,0x65,0x6e])](_0x1c51b8=>{if(!_0x1c51b8||_0x1c51b8[_0x254df4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x254df4([0x6f,0x6b]))return _0x254df4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a26ad(_0x1e9504(_0xa0d3c7+_0x387864))!=_0x1c51b8[_0x254df4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x254df4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x254df4([0x56,0x61,0x6c,0x69,0x64]);})[_0x254df4([0x74,0x68,0x65,0x6e])](_0x8d9b39=>(_0x5a1931(),_0x8d9b39),()=>{const _0x2e82eb=_0x5bc51b();return null==_0x2e82eb?(_0x5a1931(),_0x254df4([0x56,0x61,0x6c,0x69,0x64])):_0x254df4(_0xf9689a-_0x2e82eb>(0x5778dc5f^_0x40a05b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x254df4([0x74,0x68,0x65,0x6e])](_0x4245dd)[_0x254df4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4245dd(_0x254df4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4bab85=0x7342b6df^_0x40a05b;function _0x5a1931(){const _0x80ff97=_0x254df4([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a26ad(_0x1e9504(_0x391ddd)),_0x9aabad=_0x1e5b4a(_0x4a26ad(window[_0x254df4([0x4d,0x61,0x74,0x68])][_0x254df4([0x63,0x65,0x69,0x6c])](_0xf9689a/_0x4bab85)));window[_0x254df4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x254df4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x80ff97,_0x9aabad);}function _0x5bc51b(){const _0x59407a=_0x254df4([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a26ad(_0x1e9504(_0x391ddd)),_0x2d32b9=window[_0x254df4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x254df4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59407a);return _0x2d32b9?window[_0x254df4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e5b4a(_0x2d32b9),0x10)*_0x4bab85:null;}function _0xa27c7b(_0x18c247){return new window[(_0x254df4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7a1755,_0xf70a8d)=>{_0x18c247[_0x254df4([0x74,0x68,0x65,0x6e])](_0x7a1755,_0xf70a8d),window[_0x254df4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xf70a8d,0x73758c9f^_0x40a05b);});}}_0x549e8b[_0x254df4([0x6f,0x6e])](_0x254df4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x392c46,_0x59f8fa)=>{if(_0x59f8fa[0x0]!=_0x391ddd)return _0x4245dd(_0x254df4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x59f8fa[0x1]={..._0x59f8fa[0x1],[_0x254df4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa0d3c7};},{[_0x254df4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x254df4([0x68,0x69,0x67,0x68])}),_0x549e8b[_0x254df4([0x6f,0x6e])](_0x254df4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x401e81=>{_0x27f3e1(_0x401e81[_0x254df4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x147413=!0x0,_0x53b287(_0x401e81[_0x254df4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x254df4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x254df4([0x6c,0x6f,0x77])}),_0x4b8216[_0x254df4([0x74,0x68,0x65,0x6e])](()=>{_0x147413||_0x4245dd(_0x254df4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2fa7c0(){return _0x549e8b[_0x254df4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x254df4([0x76,0x69,0x65,0x77])][_0x254df4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x254df4([0x61,0x75,0x74,0x6f]);}function _0x379d19(){_0x549e8b[_0x254df4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x254df4([0x76,0x69,0x65,0x77])][_0x254df4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x254df4([0x61,0x75,0x74,0x6f]);}}function _0x13815b(_0x571423){const _0x4123ab=[new window[(_0x254df4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9173e9=>setTimeout(_0x9173e9,0x737d6693^_0x40a05b)),_0x4b8216[_0x254df4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x254df4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31457d=>{let _0x14e239=0x0;_0x549e8b[_0x254df4([0x6d,0x6f,0x64,0x65,0x6c])][_0x254df4([0x6f,0x6e])](_0x254df4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x144905,_0x13e7cc)=>{_0x13e7cc[0x0][_0x254df4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14e239++,_0x14e239==(0x73745db7^_0x40a05b)&&(_0x31457d(),_0x144905[_0x254df4([0x6f,0x66,0x66])]());});}))];return window[_0x254df4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x254df4([0x72,0x61,0x63,0x65])](_0x4123ab)[_0x254df4([0x74,0x68,0x65,0x6e])](()=>_0x571423);}async function _0x2799d7(){await _0x4b8216,_0x549e8b[_0x254df4([0x6d,0x6f,0x64,0x65,0x6c])][_0x254df4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2bf8da,_0x549e8b[_0x254df4([0x6d,0x6f,0x64,0x65,0x6c])][_0x254df4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2bf8da,_0x549e8b[_0x254df4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x254df4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x33cfb1(){return window[_0x254df4([0x67,0x6c,0x6f,0x62])]&&window[_0x254df4([0x67,0x6c,0x6f,0x62])][_0x254df4([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x506aab(_0x1d272d){const _0x58aae5=_0x56621c();_0x549e8b[_0x58aae5]=_0x254df4([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])+_0x1d272d,_0x1d272d!=_0x254df4([0x56,0x61,0x6c,0x69,0x64])&&_0x2799d7();}function _0x56621c(){const _0x3d84d1=window[_0x254df4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x254df4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x254df4([0x6e,0x6f,0x77])]())[_0x254df4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x254df4([0x2e]),'');let _0x207eeb=_0x254df4([0x73]);for(let _0x50c127=0x0;_0x50c127<_0x3d84d1[_0x254df4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50c127+=0x2){let _0x323c94=window[_0x254df4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d84d1[_0x254df4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50c127,_0x50c127+0x2));_0x323c94>=_0x146a45[_0x254df4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x323c94-=_0x146a45[_0x254df4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x207eeb+=_0x146a45[_0x323c94];}return _0x207eeb;}function _0x3e4291(){const _0x563c12=_0x2a138e[_0x254df4([0x73,0x70,0x6c,0x69,0x74])](_0x254df4([0x2e]));if(0x3!=_0x563c12[_0x254df4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf017eb(_0x563c12[0x1]);function _0xf017eb(_0x211ac9){const _0x578100=_0x59ab59(_0x211ac9);return _0x578100&&_0x462a4e()?_0x578100:null;function _0x462a4e(){const _0x2f0c1c=_0x578100[_0x254df4([0x6a,0x74,0x69])],_0x15f09a=window[_0x254df4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f0c1c[_0x254df4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f0c1c[_0x254df4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57f00c={..._0x578100,[_0x254df4([0x6a,0x74,0x69])]:_0x2f0c1c[_0x254df4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f0c1c[_0x254df4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57f00c[_0x254df4([0x76,0x63])],_0x1e9504(_0x57f00c)==_0x15f09a;}}}async function _0x5da37d(){let _0x208254=!0x0;try{const _0x834db7=_0x2a138e[_0x254df4([0x73,0x70,0x6c,0x69,0x74])](_0x254df4([0x2e])),[_0x142c33,_0x50e4c6,_0x26485c]=_0x834db7;return _0x52fd57(_0x142c33),await _0x43c582(_0x142c33,_0x50e4c6,_0x26485c),_0x208254;}catch{return!0x1;}function _0x52fd57(_0xfe9739){const _0x328b39=_0x59ab59(_0xfe9739);_0x328b39&&_0x328b39[_0x254df4([0x61,0x6c,0x67])]==_0x254df4([0x45,0x53,0x32,0x35,0x36])||(_0x208254=!0x1);}async function _0x43c582(_0x22b797,_0x47ce37,_0x3886e7){const _0x113601=window[_0x254df4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x254df4([0x66,0x72,0x6f,0x6d])](_0x1ba34e(_0x3886e7),_0x190cd3=>_0x190cd3[_0x254df4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16b7ef=new window[(_0x254df4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x254df4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x22b797+_0x254df4([0x2e])+_0x47ce37),_0x344bf9=window[_0x254df4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x254df4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x344bf9)return;const _0x1f32ee=await _0x344bf9[_0x254df4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x254df4([0x6a,0x77,0x6b]),_0x58f900,{[_0x254df4([0x6e,0x61,0x6d,0x65])]:_0x254df4([0x45,0x43,0x44,0x53,0x41]),[_0x254df4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x254df4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x254df4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x344bf9[_0x254df4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x254df4([0x6e,0x61,0x6d,0x65])]:_0x254df4([0x45,0x43,0x44,0x53,0x41]),[_0x254df4([0x68,0x61,0x73,0x68])]:{[_0x254df4([0x6e,0x61,0x6d,0x65])]:_0x254df4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f32ee,_0x113601,_0x16b7ef)||(_0x208254=!0x1);}}function _0x59ab59(_0x21873e){return _0x21873e[_0x254df4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x254df4([0x65,0x79]))?JSON[_0x254df4([0x70,0x61,0x72,0x73,0x65])](_0x1ba34e(_0x21873e)):null;}function _0x1ba34e(_0x49991f){return window[_0x254df4([0x61,0x74,0x6f,0x62])](_0x49991f[_0x254df4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x254df4([0x2b]))[_0x254df4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x254df4([0x2f])));}function _0x1e9504(_0x24361e){let _0x19e3bb=0x1505;function _0x14a9d4(_0x2203a9){for(let _0x2a148c=0x0;_0x2a148c<_0x2203a9[_0x254df4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a148c++){const _0x4bdea9=_0x2203a9[_0x254df4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2a148c);_0x19e3bb=(_0x19e3bb<<0x5)+_0x19e3bb+_0x4bdea9,_0x19e3bb&=_0x19e3bb;}}function _0x524103(_0x912824){Array[_0x254df4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x912824)?_0x912824[_0x254df4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x524103):_0x912824&&typeof _0x912824==_0x254df4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x254df4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x912824)[_0x254df4([0x73,0x6f,0x72,0x74])]()[_0x254df4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x290efe,_0x59555b])=>{_0x14a9d4(_0x290efe),_0x524103(_0x59555b);}):_0x14a9d4(window[_0x254df4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x912824));}return _0x524103(_0x24361e),_0x19e3bb>>>0x0;}function _0x4a26ad(_0xffb63e){return _0xffb63e[_0x254df4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x254df4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x254df4([0x30]));}function _0x1e5b4a(_0x59ef92){return _0x59ef92[_0x254df4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x254df4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x254df4([0x6a,0x6f,0x69,0x6e])]('');}function _0x2bf8da(){}function _0x254df4(_0x1245fd){return _0x1245fd['map'](_0x5846c6=>String['fromCharCode'](_0x5846c6))['join']('');}_0x506aab(await _0x167336());}(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'],[_0xbefab8=>Number(_0xbefab8)>=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(_0x3a2540){return y['includes'](_0x3a2540);}function E(_0x14b666){return Array['from'](_0x14b666['getStyleNames']())['filter'](O);}function F(_0x459860,_0x2fc8cd,_0x1086df){const {spanStyles:_0x179fc4,stylesToBeHtmlElements:_0x48068f}=L(_0x459860,_0x1086df);!function(_0x1beb12,_0x1866ea,_0x182990){for(const _0x3ed929 in _0x182990){_0x182990[_0x3ed929]['forEach'](([,_0x2c058b])=>{const _0x50ffcf=_0x1866ea['createElement'](_0x2c058b,[],_0x1beb12['getChildren']());_0x1866ea['insertChild'](0x0,_0x50ffcf,_0x1beb12);}),_0x1866ea['removeStyle'](_0x3ed929,_0x1beb12);}}(_0x459860,_0x2fc8cd,_0x48068f),function(_0x51db1c,_0x25b299,_0x2bc444){if(!Object['keys'](_0x2bc444)['length'])return;const _0x2cf889=_0x25b299['createElement']('span',[],_0x51db1c['getChildren']());_0x25b299['setStyle'](_0x2bc444,_0x2cf889),_0x25b299['insertChild'](0x0,_0x2cf889,_0x51db1c),_0x25b299['removeStyle'](Object['keys'](_0x2bc444),_0x51db1c);}(_0x459860,_0x2fc8cd,_0x179fc4);}function P(_0x4d974c,_0x303897,_0x15a04c){const {spanStyles:_0x610e}=L(_0x4d974c,_0x15a04c),_0x524127=Object['keys'](_0x610e);if(!_0x524127['length'])return;let _0x4dbe53=!0x1;for(const _0x3a68a0 of _0x4d974c['getChildren']())if(_0x3a68a0['is']('element','span')){_0x4dbe53=!0x0;for(const [_0x38c0c5,_0x54f50b]of Object['entries'](_0x610e))_0x3a68a0['hasStyle'](_0x38c0c5)||_0x303897['setStyle']({[_0x38c0c5]:_0x54f50b},_0x3a68a0);}_0x4dbe53&&_0x303897['removeStyle'](_0x524127,_0x4d974c);}function L(_0x188bb7,_0x451f00){const _0x1e4517={},_0x3f5551={};return _0x451f00['forEach'](_0x47b0df=>{const _0x427fa4=_0x188bb7['getStyle'](_0x47b0df);if(_0x427fa4){if(function(_0xe91c25){return g['includes'](_0xe91c25);}(_0x47b0df))_0x1e4517[_0x47b0df]=_0x427fa4;else{if(function(_0x4095de){return _0x4095de in h;}(_0x47b0df)){const _0x5affce=_0x427fa4['split']('\x20');h[_0x47b0df]['forEach'](([_0x265587,_0x261456])=>{for(const _0x52c7cf of _0x5affce){('function'==typeof _0x265587&&_0x265587(_0x52c7cf)||_0x265587===_0x52c7cf)&&(_0x3f5551[_0x47b0df]=[..._0x3f5551[_0x47b0df]||[],[_0x265587,_0x261456]]);}});}}}}),{'spanStyles':_0x1e4517,'stylesToBeHtmlElements':_0x3f5551};}class MSOfficeInlineStylePropagator extends _0x4d0a3a{['execute'](_0x493fd1){const _0x49fba2=new _0x485030(_0x493fd1['content']['document']),_0x4899ed=_0x49fba2['createRangeIn'](_0x493fd1['content']),_0x3575f0=new _0x5afb98(_0x49fba2['document']['stylesProcessor']),_0x12560b=[...new _0x2fa712(_0x3575f0)['blockElements'],'font'],_0x262ad2=_0x4899ed['getItems']();for(const _0x3ca1ae of _0x262ad2)if(_0x3ca1ae['is']('element')&&_0x12560b['includes'](_0x3ca1ae['name'])){if(_0x3ca1ae['hasStyle']('mso-list')&&'none'!==_0x3ca1ae['getStyle']('mso-list')){P(_0x3ca1ae,_0x49fba2,E(_0x3ca1ae));continue;}F(_0x3ca1ae,_0x49fba2,E(_0x3ca1ae));}}['isActive'](_0x5e0e87){return super['isActive'](_0x5e0e87)||u(_0x5e0e87);}}class PasteFromOfficeEnhancedPropagator extends _0x4d82cb{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x287f9e];}['init'](){const _0xbd7cbd=this['editor'],_0x3b0bc2=_0xbd7cbd['plugins']['get']('PasteFromOffice'),_0x1a7a6f=_0xbd7cbd['editing']['view']['document'],_0x591bd1=new MSOfficeInlineStylePropagator(_0x1a7a6f);_0x3b0bc2['registerNormalizer'](_0x591bd1,_0x1e7432['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x383897=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d6d82;for(const _0x48b311 in _0x383897){const _0x2846ae=_0x48b311,_0x1e078a=_0x383897[_0x2846ae];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x1e078a||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x1e078a||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x1e078a||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x1e078a||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x1e078a||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x1e078a||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x1e078a){delete _0x383897[_0x2846ae],_0x1d6d82=_0x1e078a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x1d6d82&&_0x383897['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x1d6d82&&_0x383897['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x1d6d82&&_0x383897['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x1d6d82&&_0x383897['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x1d6d82&&_0x383897['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x1d6d82&&_0x383897['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends _0x4d82cb{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x287f9e,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.1",
3
+ "version": "48.2.0-alpha.1",
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.1",
35
- "@ckeditor/ckeditor5-core": "48.1.1",
36
- "@ckeditor/ckeditor5-engine": "48.1.1",
37
- "@ckeditor/ckeditor5-paste-from-office": "48.1.1",
38
- "@ckeditor/ckeditor5-utils": "48.1.1"
34
+ "@ckeditor/ckeditor5-clipboard": "48.2.0-alpha.1",
35
+ "@ckeditor/ckeditor5-core": "48.2.0-alpha.1",
36
+ "@ckeditor/ckeditor5-engine": "48.2.0-alpha.1",
37
+ "@ckeditor/ckeditor5-paste-from-office": "48.2.0-alpha.1",
38
+ "@ckeditor/ckeditor5-utils": "48.2.0-alpha.1"
39
39
  },
40
40
  "files": [
41
41
  "dist",