@ckeditor/ckeditor5-paste-from-office-enhanced 48.2.0-alpha.4 → 48.2.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x49e905}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x38374e,PasteFromOffice as _0x525205}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x1b6946,uid as _0x4a33c2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x5b0672,ViewDocument as _0x12636f,ViewDomConverter as _0x2da39b}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x35ed6e){return a['test'](_0x35ed6e);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x1c59ae,_0x23f008){const _0x3a364b=new Map();for(const [_0x43c135,_0x2698ad]of _0x23f008){if(!_0x43c135['tagName']&&!_0x43c135['className'])continue;const _0x36601c=!_0x43c135['tagName']||_0x1c59ae['name']===_0x43c135['tagName'],_0x18dac2=!_0x43c135['className']||_0x1c59ae['hasClass'](_0x43c135['className']);_0x36601c&&_0x18dac2&&_0x3a364b['set'](_0x43c135,_0x2698ad);}return _0x3a364b;}function w(_0x5ce43a){const _0x4e8d8c={};for(let _0x36c1bb=0x0;_0x36c1bb<_0x5ce43a['length'];_0x36c1bb++){const _0x46d3fa=_0x5ce43a[_0x36c1bb],_0x5138a0=_0x5ce43a['getPropertyValue'](_0x46d3fa);'initial'!==_0x5138a0&&(_0x4e8d8c[_0x46d3fa]=_0x5138a0);}return _0x4e8d8c;}function m(_0x2ee4c0){const _0x1661c5=_0x2ee4c0['split'](',')['map'](_0x4e8be4=>_0x4e8be4['trim']()),_0xffbe38=[];for(const _0x36ed9b of _0x1661c5){const _0x244d49=l['exec'](_0x36ed9b);_0x244d49&&_0xffbe38['push'](_0x244d49['groups']);}return _0xffbe38;}function p(_0x263c22){const _0x316f04={};for(const _0x214c6f of _0x263c22)Object['assign'](_0x316f04,_0x214c6f);return _0x316f04;}class MSOfficeStylesInliner extends _0x38374e{['execute'](_0x32bc26){const {styles:_0xaae7df,stylesString:_0x188033}=_0x32bc26['extraContent'],_0x1a587d=new _0x5b0672(_0x32bc26['content']['document']),_0x36eb30=_0x1a587d['createRangeIn'](_0x32bc26['content']),_0x174fea=function(_0x2c359a){const _0x364d7f={};for(const _0x40d8a0 of _0x2c359a)for(const _0x59f660 of _0x40d8a0['cssRules'])if(_0x59f660 instanceof CSSStyleRule){const _0x1582ea=w(_0x59f660['style']);_0x364d7f[_0x59f660['selectorText']]=Object['assign']({},_0x364d7f[_0x59f660['selectorText']]||{},_0x1582ea);}return _0x364d7f;}(_0xaae7df),_0x2ec752=function(_0x50e894){const _0x56da4e=new Map();for(const _0x2a4df8 in _0x50e894){const _0x4dde78=m(_0x2a4df8),_0x376e5e=_0x50e894[_0x2a4df8];for(const _0x268b9f of _0x4dde78)_0x56da4e['set'](_0x268b9f,_0x376e5e);}return _0x56da4e;}(_0x174fea),_0x5f41c7=function(_0x57107e){const _0x27360c={},_0x1238fc=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x3545d1=/\.(?<className>[\w-]+)/g;let _0x474dd8;for(;null!==(_0x474dd8=_0x1238fc['exec'](_0x57107e));){const {selector:_0x3829cb,color:_0x45eabb,patternType:_0x26cb84}=_0x474dd8['groups'];if('auto'!==_0x45eabb['toLowerCase']()&&'none'!==_0x26cb84['toLowerCase']()&&'auto'!==_0x26cb84['toLowerCase']()){for(const _0x35b5b6 of _0x3829cb['matchAll'](_0x3545d1))_0x27360c[_0x35b5b6['groups']['className']]=_0x45eabb;}}return _0x27360c;}(_0x188033);for(const _0x36afd3 of _0x36eb30){if('elementStart'!==_0x36afd3['type'])continue;const _0xa16036=_0x36afd3['item'],_0x149016=d(_0xa16036,_0x2ec752),_0x25914c=_0x149016['size']?p(Array['from'](_0x149016['values']())):{};if(!('background-color'in _0x25914c)&&!('background'in _0x25914c)){for(const [_0x25b33f,_0x235a77]of Object['entries'](_0x5f41c7))if(_0xa16036['hasClass'](_0x25b33f)){_0x25914c['background-color']=_0x235a77;break;}}for(const _0x30372e in _0x25914c)_0xa16036['hasStyle'](_0x30372e)||_0x1a587d['setStyle'](_0x30372e,_0x25914c[_0x30372e],_0xa16036);}}['isActive'](_0x5c81bb){return super['isActive'](_0x5c81bb)||u(_0x5c81bb);}}class PasteFromOfficeEnhancedInliner extends _0x49e905{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x525205];}['init'](){const _0x15bd7b=this['editor'],_0x55728d=_0x15bd7b['plugins']['get']('PasteFromOffice'),_0x1707fe=_0x15bd7b['editing']['view']['document'],_0x2406b8=new MSOfficeStylesInliner(_0x1707fe);_0x55728d['registerNormalizer'](_0x2406b8,_0x1b6946['high']+0xb);}['afterInit'](){!async function(_0x3d6257){const _0x58b527=_0x256bfb([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]),_0x290d69=0x7374585f,_0x1e9cda=0x7373d3ff^_0x290d69,_0x1411ae=window[_0x256bfb([0x44,0x61,0x74,0x65])][_0x256bfb([0x6e,0x6f,0x77])](),_0x3e53d4=_0x3d6257[_0x256bfb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x250486=new window[(_0x256bfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1704c8=>{_0x3e53d4[_0x256bfb([0x6f,0x6e,0x63,0x65])](_0x256bfb([0x72,0x65,0x61,0x64,0x79]),_0x1704c8);}),_0x5e49f8={[_0x256bfb([0x6b,0x74,0x79])]:_0x256bfb([0x45,0x43]),[_0x256bfb([0x75,0x73,0x65])]:_0x256bfb([0x73,0x69,0x67]),[_0x256bfb([0x63,0x72,0x76])]:_0x256bfb([0x50,0x2d,0x32,0x35,0x36]),[_0x256bfb([0x78])]:_0x256bfb([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]),[_0x256bfb([0x79])]:_0x256bfb([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]),[_0x256bfb([0x61,0x6c,0x67])]:_0x256bfb([0x45,0x53,0x32,0x35,0x36])},_0x1c0bff=_0x3e53d4[_0x256bfb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x256bfb([0x67,0x65,0x74])](_0x256bfb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5f3a2f(){let _0x14ff3d,_0x6d480=null,_0x37a4e4=null;try{if(_0x1c0bff==_0x256bfb([0x47,0x50,0x4c]))return _0x256bfb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14ff3d=_0x2cde74(),!_0x14ff3d)return _0x256bfb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14ff3d[_0x256bfb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37a4e4=_0x3e25b0(_0x14ff3d[_0x256bfb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14ff3d[_0x256bfb([0x6a,0x74,0x69])])),await _0x193aa9()?_0x52e94e()?_0x3ecf28()?_0x256bfb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x476fd0()?(_0x14ff3d[_0x256bfb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x256bfb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6d480=_0x24e57d(_0x256bfb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e5593()):_0x256bfb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x256bfb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x256bfb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x256bfb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ecf28(){const _0xfd965=[_0x256bfb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x256bfb([0x74,0x72,0x69,0x61,0x6c])][_0x256bfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14ff3d[_0x256bfb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1411ae/0x3e8:0xe10*_0x1e9cda;return _0x14ff3d[_0x256bfb([0x65,0x78,0x70])]<_0xfd965;}function _0x52e94e(){const _0x42e95b=_0x14ff3d[_0x256bfb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x42e95b&&(!!_0x42e95b[_0x256bfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256bfb([0x2a]))||(!!_0x42e95b[_0x256bfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256bfb([0x50,0x4f,0x45]))||(!!_0x42e95b[_0x256bfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256bfb([0x50,0x50]))||!(!_0x42e95b[_0x256bfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256bfb([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x1089ed()))));}function _0x476fd0(){const _0x53660d=_0x14ff3d[_0x256bfb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53660d||0x0==_0x53660d[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc01fdf}=new URL(window[_0x256bfb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53660d[_0x256bfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc01fdf))return!0x0;const _0x408519=_0xc01fdf[_0x256bfb([0x73,0x70,0x6c,0x69,0x74])](_0x256bfb([0x2e]));return _0x53660d[_0x256bfb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x223ecf=>_0x223ecf[_0x256bfb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256bfb([0x2a])))[_0x256bfb([0x6d,0x61,0x70])](_0x2890c3=>_0x2890c3[_0x256bfb([0x73,0x70,0x6c,0x69,0x74])](_0x256bfb([0x2e])))[_0x256bfb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48fcb1=>_0x48fcb1[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x408519[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x256bfb([0x6d,0x61,0x70])](_0x2faaa5=>Array(_0x408519[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2faaa5[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x256bfb([0x66,0x69,0x6c,0x6c])](_0x2faaa5[0x0]===_0x256bfb([0x2a])?_0x256bfb([0x2a]):'')[_0x256bfb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2faaa5))[_0x256bfb([0x73,0x6f,0x6d,0x65])](_0x2dc207=>_0x408519[_0x256bfb([0x65,0x76,0x65,0x72,0x79])]((_0x2f49cf,_0x53f9b4)=>_0x2dc207[_0x53f9b4]===_0x2f49cf||_0x2dc207[_0x53f9b4]===_0x256bfb([0x2a])));}function _0x4e5593(){return _0x6d480&&_0x37a4e4?new window[(_0x256bfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x122bc,_0x2ad5db)=>{_0x6d480[_0x256bfb([0x74,0x68,0x65,0x6e])](_0x122bc,_0x2ad5db),_0x37a4e4[_0x256bfb([0x74,0x68,0x65,0x6e])](_0x574aea=>{_0x574aea!=_0x256bfb([0x56,0x61,0x6c,0x69,0x64])&&_0x122bc(_0x574aea);},_0x2ad5db);}):_0x6d480||_0x37a4e4||_0x256bfb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3e25b0(_0x5131bc,_0x1fa095){return new window[(_0x256bfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a3061=>{if(_0x57bb6f())return _0x4a3061(_0x256bfb([0x56,0x61,0x6c,0x69,0x64]));_0x2ee9d5(),_0x3e53d4[_0x256bfb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x256bfb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x244bcd=!0x1;const _0x3c8c41=_0x4a33c2();function _0x338460(_0x1b5c7a){return!!_0x1b5c7a&&(typeof _0x1b5c7a===_0x256bfb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b5c7a===_0x256bfb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b5c7a[_0x256bfb([0x74,0x68,0x65,0x6e])]===_0x256bfb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b5c7a[_0x256bfb([0x63,0x61,0x74,0x63,0x68])]===_0x256bfb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4567a0(_0x39ffb4){_0x24c209(_0x39ffb4)[_0x256bfb([0x74,0x68,0x65,0x6e])](_0x4316f6=>{if(!_0x4316f6||_0x4316f6[_0x256bfb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x256bfb([0x6f,0x6b]))return _0x256bfb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3443b7(_0x1527fc(_0x3c8c41+_0x1fa095))!=_0x4316f6[_0x256bfb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x256bfb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x256bfb([0x56,0x61,0x6c,0x69,0x64]);})[_0x256bfb([0x74,0x68,0x65,0x6e])](_0x2bc30b=>(_0xed4ca2(),_0x2bc30b),()=>{const _0x22e710=_0x199b48();return null==_0x22e710?(_0xed4ca2(),_0x256bfb([0x56,0x61,0x6c,0x69,0x64])):_0x256bfb(_0x1411ae-_0x22e710>(0x5778dc5f^_0x290d69)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x256bfb([0x74,0x68,0x65,0x6e])](_0x4a3061)[_0x256bfb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a3061(_0x256bfb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x41cde6=0x7342b6df^_0x290d69;function _0xed4ca2(){const _0x420c1d=_0x256bfb([0x6c,0x6c,0x63,0x74,0x2d])+_0x3443b7(_0x1527fc(_0x5131bc)),_0x2fc889=_0x5f46fd(_0x3443b7(window[_0x256bfb([0x4d,0x61,0x74,0x68])][_0x256bfb([0x63,0x65,0x69,0x6c])](_0x1411ae/_0x41cde6)));window[_0x256bfb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x256bfb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x420c1d,_0x2fc889);}function _0x199b48(){const _0xb589a9=_0x256bfb([0x6c,0x6c,0x63,0x74,0x2d])+_0x3443b7(_0x1527fc(_0x5131bc)),_0x3b4d31=window[_0x256bfb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x256bfb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb589a9);return _0x3b4d31?window[_0x256bfb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f46fd(_0x3b4d31),0x10)*_0x41cde6:null;}function _0x24c209(_0x5ad887){return new window[(_0x256bfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ca3ab,_0x88bac9)=>{_0x5ad887[_0x256bfb([0x74,0x68,0x65,0x6e])](_0x1ca3ab,_0x88bac9),window[_0x256bfb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x88bac9,0x73758c9f^_0x290d69);});}}_0x3e53d4[_0x256bfb([0x6f,0x6e])](_0x256bfb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x27b803,_0x1eb430)=>{if(_0x1eb430[0x0]!=_0x5131bc)return _0x4a3061(_0x256bfb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1eb430[0x1]={..._0x1eb430[0x1],[_0x256bfb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3c8c41};},{[_0x256bfb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x256bfb([0x68,0x69,0x67,0x68])}),_0x3e53d4[_0x256bfb([0x6f,0x6e])](_0x256bfb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x333723=>{_0x338460(_0x333723[_0x256bfb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x244bcd=!0x0,_0x4567a0(_0x333723[_0x256bfb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x256bfb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x256bfb([0x6c,0x6f,0x77])}),_0x250486[_0x256bfb([0x74,0x68,0x65,0x6e])](()=>{_0x244bcd||_0x4a3061(_0x256bfb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x57bb6f(){return _0x3e53d4[_0x256bfb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x256bfb([0x76,0x69,0x65,0x77])][_0x256bfb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x256bfb([0x61,0x75,0x74,0x6f]);}function _0x2ee9d5(){_0x3e53d4[_0x256bfb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x256bfb([0x76,0x69,0x65,0x77])][_0x256bfb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x256bfb([0x61,0x75,0x74,0x6f]);}}function _0x24e57d(_0x3d3478){const _0x470fb0=[new window[(_0x256bfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x550f11=>setTimeout(_0x550f11,0x737d6693^_0x290d69)),_0x250486[_0x256bfb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x256bfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3276db=>{let _0x359a70=0x0;_0x3e53d4[_0x256bfb([0x6d,0x6f,0x64,0x65,0x6c])][_0x256bfb([0x6f,0x6e])](_0x256bfb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x31b578,_0x29c446)=>{_0x29c446[0x0][_0x256bfb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x359a70++,_0x359a70==(0x73745db7^_0x290d69)&&(_0x3276db(),_0x31b578[_0x256bfb([0x6f,0x66,0x66])]());});}))];return window[_0x256bfb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x256bfb([0x72,0x61,0x63,0x65])](_0x470fb0)[_0x256bfb([0x74,0x68,0x65,0x6e])](()=>_0x3d3478);}async function _0x27d708(){await _0x250486,_0x3e53d4[_0x256bfb([0x6d,0x6f,0x64,0x65,0x6c])][_0x256bfb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x510c2e,_0x3e53d4[_0x256bfb([0x6d,0x6f,0x64,0x65,0x6c])][_0x256bfb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x510c2e,_0x3e53d4[_0x256bfb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x256bfb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1089ed(){return window[_0x256bfb([0x67,0x6c,0x6f,0x62])]&&window[_0x256bfb([0x67,0x6c,0x6f,0x62])][_0x256bfb([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x77a24a(_0x511363){const _0xe2cd9d=_0x340244();_0x3e53d4[_0xe2cd9d]=_0x256bfb([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])+_0x511363,_0x511363!=_0x256bfb([0x56,0x61,0x6c,0x69,0x64])&&_0x27d708();}function _0x340244(){const _0x53a4b2=window[_0x256bfb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x256bfb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x256bfb([0x6e,0x6f,0x77])]())[_0x256bfb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x256bfb([0x2e]),'');let _0x18fc3b=_0x256bfb([0x73]);for(let _0xabf4e1=0x0;_0xabf4e1<_0x53a4b2[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xabf4e1+=0x2){let _0x5ef7f2=window[_0x256bfb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53a4b2[_0x256bfb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xabf4e1,_0xabf4e1+0x2));_0x5ef7f2>=_0x58b527[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ef7f2-=_0x58b527[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18fc3b+=_0x58b527[_0x5ef7f2];}return _0x18fc3b;}function _0x2cde74(){const _0x28c967=_0x1c0bff[_0x256bfb([0x73,0x70,0x6c,0x69,0x74])](_0x256bfb([0x2e]));if(0x3!=_0x28c967[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f295c(_0x28c967[0x1]);function _0x2f295c(_0x23d8ce){const _0x4f68aa=_0x2b1ad7(_0x23d8ce);return _0x4f68aa&&_0x1179b0()?_0x4f68aa:null;function _0x1179b0(){const _0x3ebd78=_0x4f68aa[_0x256bfb([0x6a,0x74,0x69])],_0xa93678=window[_0x256bfb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ebd78[_0x256bfb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ebd78[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc0ee73={..._0x4f68aa,[_0x256bfb([0x6a,0x74,0x69])]:_0x3ebd78[_0x256bfb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ebd78[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc0ee73[_0x256bfb([0x76,0x63])],_0x1527fc(_0xc0ee73)==_0xa93678;}}}async function _0x193aa9(){let _0x4bcbcd=!0x0;try{const _0x502064=_0x1c0bff[_0x256bfb([0x73,0x70,0x6c,0x69,0x74])](_0x256bfb([0x2e])),[_0x1c5bad,_0x383b28,_0x161df2]=_0x502064;return _0x35bc37(_0x1c5bad),await _0x892148(_0x1c5bad,_0x383b28,_0x161df2),_0x4bcbcd;}catch{return!0x1;}function _0x35bc37(_0x43e8ef){const _0x3d18b2=_0x2b1ad7(_0x43e8ef);_0x3d18b2&&_0x3d18b2[_0x256bfb([0x61,0x6c,0x67])]==_0x256bfb([0x45,0x53,0x32,0x35,0x36])||(_0x4bcbcd=!0x1);}async function _0x892148(_0x40a729,_0x2d78e0,_0x4e0729){const _0x575fa6=window[_0x256bfb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x256bfb([0x66,0x72,0x6f,0x6d])](_0x37d19e(_0x4e0729),_0x579c4c=>_0x579c4c[_0x256bfb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2102e7=new window[(_0x256bfb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x256bfb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40a729+_0x256bfb([0x2e])+_0x2d78e0),_0x76b484=window[_0x256bfb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x256bfb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x76b484)return;const _0x19969c=await _0x76b484[_0x256bfb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x256bfb([0x6a,0x77,0x6b]),_0x5e49f8,{[_0x256bfb([0x6e,0x61,0x6d,0x65])]:_0x256bfb([0x45,0x43,0x44,0x53,0x41]),[_0x256bfb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x256bfb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x256bfb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x76b484[_0x256bfb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x256bfb([0x6e,0x61,0x6d,0x65])]:_0x256bfb([0x45,0x43,0x44,0x53,0x41]),[_0x256bfb([0x68,0x61,0x73,0x68])]:{[_0x256bfb([0x6e,0x61,0x6d,0x65])]:_0x256bfb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x19969c,_0x575fa6,_0x2102e7)||(_0x4bcbcd=!0x1);}}function _0x2b1ad7(_0x4c592b){return _0x4c592b[_0x256bfb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x256bfb([0x65,0x79]))?JSON[_0x256bfb([0x70,0x61,0x72,0x73,0x65])](_0x37d19e(_0x4c592b)):null;}function _0x37d19e(_0x3e6244){return window[_0x256bfb([0x61,0x74,0x6f,0x62])](_0x3e6244[_0x256bfb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x256bfb([0x2b]))[_0x256bfb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x256bfb([0x2f])));}function _0x1527fc(_0x1d7217){let _0x368715=0x1505;function _0xde7ca(_0xdae2b2){for(let _0x4e1944=0x0;_0x4e1944<_0xdae2b2[_0x256bfb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e1944++){const _0x3aeb53=_0xdae2b2[_0x256bfb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e1944);_0x368715=(_0x368715<<0x5)+_0x368715+_0x3aeb53,_0x368715&=_0x368715;}}function _0x4e218f(_0x2b236e){Array[_0x256bfb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b236e)?_0x2b236e[_0x256bfb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e218f):_0x2b236e&&typeof _0x2b236e==_0x256bfb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x256bfb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b236e)[_0x256bfb([0x73,0x6f,0x72,0x74])]()[_0x256bfb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52bc9a,_0x1daad3])=>{_0xde7ca(_0x52bc9a),_0x4e218f(_0x1daad3);}):_0xde7ca(window[_0x256bfb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b236e));}return _0x4e218f(_0x1d7217),_0x368715>>>0x0;}function _0x3443b7(_0x4a2b64){return _0x4a2b64[_0x256bfb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x256bfb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x256bfb([0x30]));}function _0x5f46fd(_0x4cb21c){return _0x4cb21c[_0x256bfb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x256bfb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x256bfb([0x6a,0x6f,0x69,0x6e])]('');}function _0x510c2e(){}function _0x256bfb(_0x175346){return _0x175346['map'](_0x529810=>String['fromCharCode'](_0x529810))['join']('');}_0x77a24a(await _0x5f3a2f());}(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'],[_0x5f2034=>Number(_0x5f2034)>=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(_0x2f66e8){return y['includes'](_0x2f66e8);}function E(_0x357fe7){return Array['from'](_0x357fe7['getStyleNames']())['filter'](O);}function F(_0x43c908,_0x22b48a,_0x26a68d){const {spanStyles:_0x4a5214,stylesToBeHtmlElements:_0xfb4114}=L(_0x43c908,_0x26a68d);!function(_0x2a785f,_0x5f3cf2,_0x1bd6c1){for(const _0x37003a in _0x1bd6c1){_0x1bd6c1[_0x37003a]['forEach'](([,_0x1e704b])=>{const _0x35f5d6=_0x5f3cf2['createElement'](_0x1e704b,[],_0x2a785f['getChildren']());_0x5f3cf2['insertChild'](0x0,_0x35f5d6,_0x2a785f);}),_0x5f3cf2['removeStyle'](_0x37003a,_0x2a785f);}}(_0x43c908,_0x22b48a,_0xfb4114),function(_0x59d76a,_0x1a6d5c,_0x8f5b8b){if(!Object['keys'](_0x8f5b8b)['length'])return;const _0x163555=_0x1a6d5c['createElement']('span',[],_0x59d76a['getChildren']());_0x1a6d5c['setStyle'](_0x8f5b8b,_0x163555),_0x1a6d5c['insertChild'](0x0,_0x163555,_0x59d76a),_0x1a6d5c['removeStyle'](Object['keys'](_0x8f5b8b),_0x59d76a);}(_0x43c908,_0x22b48a,_0x4a5214);}function P(_0x330b0d,_0x6f7242,_0x2a3f05){const {spanStyles:_0x285be2}=L(_0x330b0d,_0x2a3f05),_0x2aef95=Object['keys'](_0x285be2);if(!_0x2aef95['length'])return;let _0x228d36=!0x1;for(const _0x274d13 of _0x330b0d['getChildren']())if(_0x274d13['is']('element','span')){_0x228d36=!0x0;for(const [_0x1275e7,_0x3b536d]of Object['entries'](_0x285be2))_0x274d13['hasStyle'](_0x1275e7)||_0x6f7242['setStyle']({[_0x1275e7]:_0x3b536d},_0x274d13);}_0x228d36&&_0x6f7242['removeStyle'](_0x2aef95,_0x330b0d);}function L(_0x59bd9c,_0xcfa68d){const _0x334023={},_0x20e66a={};return _0xcfa68d['forEach'](_0x49f6a1=>{const _0x3dfa7e=_0x59bd9c['getStyle'](_0x49f6a1);if(_0x3dfa7e){if(function(_0x5d399d){return g['includes'](_0x5d399d);}(_0x49f6a1))_0x334023[_0x49f6a1]=_0x3dfa7e;else{if(function(_0x2b7694){return _0x2b7694 in h;}(_0x49f6a1)){const _0x32077=_0x3dfa7e['split']('\x20');h[_0x49f6a1]['forEach'](([_0x56f4e8,_0x1abf02])=>{for(const _0x442e7d of _0x32077){('function'==typeof _0x56f4e8&&_0x56f4e8(_0x442e7d)||_0x56f4e8===_0x442e7d)&&(_0x20e66a[_0x49f6a1]=[..._0x20e66a[_0x49f6a1]||[],[_0x56f4e8,_0x1abf02]]);}});}}}}),{'spanStyles':_0x334023,'stylesToBeHtmlElements':_0x20e66a};}class MSOfficeInlineStylePropagator extends _0x38374e{['execute'](_0x55bb68){const _0x2c51b0=new _0x5b0672(_0x55bb68['content']['document']),_0x56f55a=_0x2c51b0['createRangeIn'](_0x55bb68['content']),_0x2516a2=new _0x12636f(_0x2c51b0['document']['stylesProcessor']),_0x523578=[...new _0x2da39b(_0x2516a2)['blockElements'],'font'],_0x3c22b5=_0x56f55a['getItems']();for(const _0x26d347 of _0x3c22b5)if(_0x26d347['is']('element')&&_0x523578['includes'](_0x26d347['name'])){if(_0x26d347['hasStyle']('mso-list')&&'none'!==_0x26d347['getStyle']('mso-list')){P(_0x26d347,_0x2c51b0,E(_0x26d347));continue;}F(_0x26d347,_0x2c51b0,E(_0x26d347));}}['isActive'](_0x4e1c37){return super['isActive'](_0x4e1c37)||u(_0x4e1c37);}}class PasteFromOfficeEnhancedPropagator extends _0x49e905{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x525205];}['init'](){const _0x1adb8c=this['editor'],_0x2a68bc=_0x1adb8c['plugins']['get']('PasteFromOffice'),_0x5a5a0a=_0x1adb8c['editing']['view']['document'],_0x565981=new MSOfficeInlineStylePropagator(_0x5a5a0a);_0x2a68bc['registerNormalizer'](_0x565981,_0x1b6946['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4eaefa=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x372582;for(const _0x441444 in _0x4eaefa){const _0x595121=_0x441444,_0x488fdf=_0x4eaefa[_0x595121];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x488fdf||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x488fdf||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x488fdf||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x488fdf||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x488fdf||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x488fdf||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x488fdf){delete _0x4eaefa[_0x595121],_0x372582=_0x488fdf,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x372582&&_0x4eaefa['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x372582&&_0x4eaefa['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x372582&&_0x4eaefa['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x372582&&_0x4eaefa['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x372582&&_0x4eaefa['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x372582&&_0x4eaefa['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends _0x49e905{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x525205,PasteFromOfficeEnhancedInliner,PasteFromOfficeEnhancedPropagator];}}export{PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x21c965}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0xdd7199,PasteFromOffice as _0x2de44a}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0xcf9abb,uid as _0x572d6c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x3b0055,ViewDocument as _0x1c1e13,ViewDomConverter as _0xc43e17}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x5bdc81){return a['test'](_0x5bdc81);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x1cf78e,_0x5bd87a){const _0x44f291=new Map();for(const [_0x126da1,_0x5867bd]of _0x5bd87a){if(!_0x126da1['tagName']&&!_0x126da1['className'])continue;const _0x4d1e5a=!_0x126da1['tagName']||_0x1cf78e['name']===_0x126da1['tagName'],_0xdf0592=!_0x126da1['className']||_0x1cf78e['hasClass'](_0x126da1['className']);_0x4d1e5a&&_0xdf0592&&_0x44f291['set'](_0x126da1,_0x5867bd);}return _0x44f291;}function w(_0x224241){const _0x5c821a={};for(let _0x431d0b=0x0;_0x431d0b<_0x224241['length'];_0x431d0b++){const _0x57a613=_0x224241[_0x431d0b],_0x269352=_0x224241['getPropertyValue'](_0x57a613);'initial'!==_0x269352&&(_0x5c821a[_0x57a613]=_0x269352);}return _0x5c821a;}function m(_0x595f08){const _0x56d1d5=_0x595f08['split'](',')['map'](_0x3a94e5=>_0x3a94e5['trim']()),_0x2008a0=[];for(const _0x474662 of _0x56d1d5){const _0x2c81b2=l['exec'](_0x474662);_0x2c81b2&&_0x2008a0['push'](_0x2c81b2['groups']);}return _0x2008a0;}function p(_0x5eb56e){const _0x345fba={};for(const _0x21a3f5 of _0x5eb56e)Object['assign'](_0x345fba,_0x21a3f5);return _0x345fba;}class MSOfficeStylesInliner extends _0xdd7199{['execute'](_0x556b8f){const {styles:_0x4142f0,stylesString:_0x1bf646}=_0x556b8f['extraContent'],_0x5a362d=new _0x3b0055(_0x556b8f['content']['document']),_0xb69483=_0x5a362d['createRangeIn'](_0x556b8f['content']),_0x331668=function(_0xe658eb){const _0x3ae0f3={};for(const _0x5ee656 of _0xe658eb)for(const _0x7760f0 of _0x5ee656['cssRules'])if(_0x7760f0 instanceof CSSStyleRule){const _0x2a7771=w(_0x7760f0['style']);_0x3ae0f3[_0x7760f0['selectorText']]=Object['assign']({},_0x3ae0f3[_0x7760f0['selectorText']]||{},_0x2a7771);}return _0x3ae0f3;}(_0x4142f0),_0x1fb793=function(_0x14023d){const _0x5e621e=new Map();for(const _0x8dea78 in _0x14023d){const _0x5b9149=m(_0x8dea78),_0x5b9a6b=_0x14023d[_0x8dea78];for(const _0x52f953 of _0x5b9149)_0x5e621e['set'](_0x52f953,_0x5b9a6b);}return _0x5e621e;}(_0x331668),_0x3c4ae0=function(_0x2ea139){const _0xa154b7={},_0x36a84e=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x492714=/\.(?<className>[\w-]+)/g;let _0x111659;for(;null!==(_0x111659=_0x36a84e['exec'](_0x2ea139));){const {selector:_0x531eeb,color:_0x508c4d,patternType:_0x25e144}=_0x111659['groups'];if('auto'!==_0x508c4d['toLowerCase']()&&'none'!==_0x25e144['toLowerCase']()&&'auto'!==_0x25e144['toLowerCase']()){for(const _0x36b24c of _0x531eeb['matchAll'](_0x492714))_0xa154b7[_0x36b24c['groups']['className']]=_0x508c4d;}}return _0xa154b7;}(_0x1bf646);for(const _0x3c0543 of _0xb69483){if('elementStart'!==_0x3c0543['type'])continue;const _0x4eaaad=_0x3c0543['item'],_0x4b6108=d(_0x4eaaad,_0x1fb793),_0x1ef6a4=_0x4b6108['size']?p(Array['from'](_0x4b6108['values']())):{};if(!('background-color'in _0x1ef6a4)&&!('background'in _0x1ef6a4)){for(const [_0x3963db,_0xd11142]of Object['entries'](_0x3c4ae0))if(_0x4eaaad['hasClass'](_0x3963db)){_0x1ef6a4['background-color']=_0xd11142;break;}}for(const _0x436308 in _0x1ef6a4)_0x4eaaad['hasStyle'](_0x436308)||_0x5a362d['setStyle'](_0x436308,_0x1ef6a4[_0x436308],_0x4eaaad);}}['isActive'](_0x2b81fa){return super['isActive'](_0x2b81fa)||u(_0x2b81fa);}}class PasteFromOfficeEnhancedInliner extends _0x21c965{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2de44a];}['init'](){const _0x56526f=this['editor'],_0x393c28=_0x56526f['plugins']['get']('PasteFromOffice'),_0xbcb5ef=_0x56526f['editing']['view']['document'],_0x47f829=new MSOfficeStylesInliner(_0xbcb5ef);_0x393c28['registerNormalizer'](_0x47f829,_0xcf9abb['high']+0xb);}['afterInit'](){!async function(_0x4c6379){const _0x2e4556=_0x1bc351([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]),_0x462db4=0x7374585f,_0x56a2b6=0x7373d3e7^_0x462db4,_0x3fde41=window[_0x1bc351([0x44,0x61,0x74,0x65])][_0x1bc351([0x6e,0x6f,0x77])](),_0x193952=_0x4c6379[_0x1bc351([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1eab3b=new window[(_0x1bc351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19c82a=>{_0x193952[_0x1bc351([0x6f,0x6e,0x63,0x65])](_0x1bc351([0x72,0x65,0x61,0x64,0x79]),_0x19c82a);}),_0x232670={[_0x1bc351([0x6b,0x74,0x79])]:_0x1bc351([0x45,0x43]),[_0x1bc351([0x75,0x73,0x65])]:_0x1bc351([0x73,0x69,0x67]),[_0x1bc351([0x63,0x72,0x76])]:_0x1bc351([0x50,0x2d,0x32,0x35,0x36]),[_0x1bc351([0x78])]:_0x1bc351([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]),[_0x1bc351([0x79])]:_0x1bc351([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]),[_0x1bc351([0x61,0x6c,0x67])]:_0x1bc351([0x45,0x53,0x32,0x35,0x36])},_0x56a829=_0x193952[_0x1bc351([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1bc351([0x67,0x65,0x74])](_0x1bc351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x42f4d2(){let _0x341901,_0x39432b=null,_0x319e59=null;try{if(_0x56a829==_0x1bc351([0x47,0x50,0x4c]))return _0x1bc351([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x341901=_0x12c783(),!_0x341901)return _0x1bc351([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x341901[_0x1bc351([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x319e59=_0x53fc66(_0x341901[_0x1bc351([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x341901[_0x1bc351([0x6a,0x74,0x69])])),await _0x114295()?_0x4c15fd()?_0x589fdc()?_0x1bc351([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53b209()?(_0x341901[_0x1bc351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1bc351([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39432b=_0x57a247(_0x1bc351([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b9e7c()):_0x1bc351([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1bc351([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1bc351([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1bc351([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x589fdc(){const _0x56ada9=[_0x1bc351([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1bc351([0x74,0x72,0x69,0x61,0x6c])][_0x1bc351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341901[_0x1bc351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fde41/0x3e8:0xe10*_0x56a2b6;return _0x341901[_0x1bc351([0x65,0x78,0x70])]<_0x56ada9;}function _0x4c15fd(){const _0x1715e8=_0x341901[_0x1bc351([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1715e8&&(!!_0x1715e8[_0x1bc351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bc351([0x2a]))||(!!_0x1715e8[_0x1bc351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bc351([0x50,0x4f,0x45]))||(!!_0x1715e8[_0x1bc351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bc351([0x50,0x50]))||!(!_0x1715e8[_0x1bc351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bc351([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x12f9fb()))));}function _0x53b209(){const _0x1b5fbf=_0x341901[_0x1bc351([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b5fbf||0x0==_0x1b5fbf[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x413e99}=new URL(window[_0x1bc351([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b5fbf[_0x1bc351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x413e99))return!0x0;const _0x317c49=_0x413e99[_0x1bc351([0x73,0x70,0x6c,0x69,0x74])](_0x1bc351([0x2e]));return _0x1b5fbf[_0x1bc351([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12f56e=>_0x12f56e[_0x1bc351([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1bc351([0x2a])))[_0x1bc351([0x6d,0x61,0x70])](_0x5d5e67=>_0x5d5e67[_0x1bc351([0x73,0x70,0x6c,0x69,0x74])](_0x1bc351([0x2e])))[_0x1bc351([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x240ca8=>_0x240ca8[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x317c49[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1bc351([0x6d,0x61,0x70])](_0x2c9b60=>Array(_0x317c49[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2c9b60[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1bc351([0x66,0x69,0x6c,0x6c])](_0x2c9b60[0x0]===_0x1bc351([0x2a])?_0x1bc351([0x2a]):'')[_0x1bc351([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2c9b60))[_0x1bc351([0x73,0x6f,0x6d,0x65])](_0x1a74ba=>_0x317c49[_0x1bc351([0x65,0x76,0x65,0x72,0x79])]((_0x43f778,_0x230bee)=>_0x1a74ba[_0x230bee]===_0x43f778||_0x1a74ba[_0x230bee]===_0x1bc351([0x2a])));}function _0x5b9e7c(){return _0x39432b&&_0x319e59?new window[(_0x1bc351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb6184a,_0x55567f)=>{_0x39432b[_0x1bc351([0x74,0x68,0x65,0x6e])](_0xb6184a,_0x55567f),_0x319e59[_0x1bc351([0x74,0x68,0x65,0x6e])](_0x5eb7a9=>{_0x5eb7a9!=_0x1bc351([0x56,0x61,0x6c,0x69,0x64])&&_0xb6184a(_0x5eb7a9);},_0x55567f);}):_0x39432b||_0x319e59||_0x1bc351([0x56,0x61,0x6c,0x69,0x64]);}}function _0x53fc66(_0x465ac4,_0x2c9163){return new window[(_0x1bc351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x582f8f=>{if(_0x5f39f0())return _0x582f8f(_0x1bc351([0x56,0x61,0x6c,0x69,0x64]));_0x3c05f8(),_0x193952[_0x1bc351([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1bc351([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1dbea1=!0x1;const _0x59d9d7=_0x572d6c();function _0x51b973(_0x161438){return!!_0x161438&&(typeof _0x161438===_0x1bc351([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x161438===_0x1bc351([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x161438[_0x1bc351([0x74,0x68,0x65,0x6e])]===_0x1bc351([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x161438[_0x1bc351([0x63,0x61,0x74,0x63,0x68])]===_0x1bc351([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1433d4(_0x45407b){_0x3c4964(_0x45407b)[_0x1bc351([0x74,0x68,0x65,0x6e])](_0x5adfbd=>{if(!_0x5adfbd||_0x5adfbd[_0x1bc351([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1bc351([0x6f,0x6b]))return _0x1bc351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x48c0cc(_0x45a713(_0x59d9d7+_0x2c9163))!=_0x5adfbd[_0x1bc351([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1bc351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1bc351([0x56,0x61,0x6c,0x69,0x64]);})[_0x1bc351([0x74,0x68,0x65,0x6e])](_0x242d24=>(_0x3a69f8(),_0x242d24),()=>{const _0x56b83b=_0x5e458c();return null==_0x56b83b?(_0x3a69f8(),_0x1bc351([0x56,0x61,0x6c,0x69,0x64])):_0x1bc351(_0x3fde41-_0x56b83b>(0x5778dc5f^_0x462db4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1bc351([0x74,0x68,0x65,0x6e])](_0x582f8f)[_0x1bc351([0x63,0x61,0x74,0x63,0x68])](()=>{_0x582f8f(_0x1bc351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13597c=0x7342b6df^_0x462db4;function _0x3a69f8(){const _0x4a2036=_0x1bc351([0x6c,0x6c,0x63,0x74,0x2d])+_0x48c0cc(_0x45a713(_0x465ac4)),_0x44eb2a=_0x446c17(_0x48c0cc(window[_0x1bc351([0x4d,0x61,0x74,0x68])][_0x1bc351([0x63,0x65,0x69,0x6c])](_0x3fde41/_0x13597c)));window[_0x1bc351([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1bc351([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a2036,_0x44eb2a);}function _0x5e458c(){const _0x5bfc51=_0x1bc351([0x6c,0x6c,0x63,0x74,0x2d])+_0x48c0cc(_0x45a713(_0x465ac4)),_0x50ddc4=window[_0x1bc351([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1bc351([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bfc51);return _0x50ddc4?window[_0x1bc351([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x446c17(_0x50ddc4),0x10)*_0x13597c:null;}function _0x3c4964(_0x19955f){return new window[(_0x1bc351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53d3b5,_0x385ca4)=>{_0x19955f[_0x1bc351([0x74,0x68,0x65,0x6e])](_0x53d3b5,_0x385ca4),window[_0x1bc351([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x385ca4,0x73758c9f^_0x462db4);});}}_0x193952[_0x1bc351([0x6f,0x6e])](_0x1bc351([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f998a,_0x5748ec)=>{if(_0x5748ec[0x0]!=_0x465ac4)return _0x582f8f(_0x1bc351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5748ec[0x1]={..._0x5748ec[0x1],[_0x1bc351([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59d9d7};},{[_0x1bc351([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1bc351([0x68,0x69,0x67,0x68])}),_0x193952[_0x1bc351([0x6f,0x6e])](_0x1bc351([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x155fcb=>{_0x51b973(_0x155fcb[_0x1bc351([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1dbea1=!0x0,_0x1433d4(_0x155fcb[_0x1bc351([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1bc351([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1bc351([0x6c,0x6f,0x77])}),_0x1eab3b[_0x1bc351([0x74,0x68,0x65,0x6e])](()=>{_0x1dbea1||_0x582f8f(_0x1bc351([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5f39f0(){return _0x193952[_0x1bc351([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1bc351([0x76,0x69,0x65,0x77])][_0x1bc351([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1bc351([0x61,0x75,0x74,0x6f]);}function _0x3c05f8(){_0x193952[_0x1bc351([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1bc351([0x76,0x69,0x65,0x77])][_0x1bc351([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1bc351([0x61,0x75,0x74,0x6f]);}}function _0x57a247(_0x11d724){const _0x306410=[new window[(_0x1bc351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cfed2=>setTimeout(_0x2cfed2,0x737d6693^_0x462db4)),_0x1eab3b[_0x1bc351([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1bc351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ead9a=>{let _0x2f9d20=0x0;_0x193952[_0x1bc351([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bc351([0x6f,0x6e])](_0x1bc351([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x177652,_0x28dfea)=>{_0x28dfea[0x0][_0x1bc351([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f9d20++,_0x2f9d20==(0x73745db7^_0x462db4)&&(_0x1ead9a(),_0x177652[_0x1bc351([0x6f,0x66,0x66])]());});}))];return window[_0x1bc351([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1bc351([0x72,0x61,0x63,0x65])](_0x306410)[_0x1bc351([0x74,0x68,0x65,0x6e])](()=>_0x11d724);}async function _0x2d14f3(){await _0x1eab3b,_0x193952[_0x1bc351([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bc351([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2787e6,_0x193952[_0x1bc351([0x6d,0x6f,0x64,0x65,0x6c])][_0x1bc351([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2787e6,_0x193952[_0x1bc351([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1bc351([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x12f9fb(){return window[_0x1bc351([0x67,0x6c,0x6f,0x62])]&&window[_0x1bc351([0x67,0x6c,0x6f,0x62])][_0x1bc351([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x4e06d7(_0x33174f){const _0x4f45fa=_0x416542();_0x193952[_0x4f45fa]=_0x1bc351([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])+_0x33174f,_0x33174f!=_0x1bc351([0x56,0x61,0x6c,0x69,0x64])&&_0x2d14f3();}function _0x416542(){const _0x486e7f=window[_0x1bc351([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1bc351([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1bc351([0x6e,0x6f,0x77])]())[_0x1bc351([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1bc351([0x2e]),'');let _0xa8ddb=_0x1bc351([0x73]);for(let _0x5be3ea=0x0;_0x5be3ea<_0x486e7f[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5be3ea+=0x2){let _0x4cb658=window[_0x1bc351([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x486e7f[_0x1bc351([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5be3ea,_0x5be3ea+0x2));_0x4cb658>=_0x2e4556[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4cb658-=_0x2e4556[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa8ddb+=_0x2e4556[_0x4cb658];}return _0xa8ddb;}function _0x12c783(){const _0x1fff24=_0x56a829[_0x1bc351([0x73,0x70,0x6c,0x69,0x74])](_0x1bc351([0x2e]));if(0x3!=_0x1fff24[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xfbc45(_0x1fff24[0x1]);function _0xfbc45(_0xd378a8){const _0x168763=_0x442d91(_0xd378a8);return _0x168763&&_0x3d9590()?_0x168763:null;function _0x3d9590(){const _0x4dbc71=_0x168763[_0x1bc351([0x6a,0x74,0x69])],_0x5755ab=window[_0x1bc351([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4dbc71[_0x1bc351([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4dbc71[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x25e137={..._0x168763,[_0x1bc351([0x6a,0x74,0x69])]:_0x4dbc71[_0x1bc351([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4dbc71[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x25e137[_0x1bc351([0x76,0x63])],_0x45a713(_0x25e137)==_0x5755ab;}}}async function _0x114295(){let _0x4ae992=!0x0;try{const _0x52bf89=_0x56a829[_0x1bc351([0x73,0x70,0x6c,0x69,0x74])](_0x1bc351([0x2e])),[_0xb3eea1,_0x3aa69d,_0x1d8b3d]=_0x52bf89;return _0x45b2e2(_0xb3eea1),await _0x2aca85(_0xb3eea1,_0x3aa69d,_0x1d8b3d),_0x4ae992;}catch{return!0x1;}function _0x45b2e2(_0x4b8bd6){const _0xba6ef3=_0x442d91(_0x4b8bd6);_0xba6ef3&&_0xba6ef3[_0x1bc351([0x61,0x6c,0x67])]==_0x1bc351([0x45,0x53,0x32,0x35,0x36])||(_0x4ae992=!0x1);}async function _0x2aca85(_0x5b856c,_0x2c3baf,_0x16141b){const _0x34acdc=window[_0x1bc351([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1bc351([0x66,0x72,0x6f,0x6d])](_0x2d7847(_0x16141b),_0x3c65ab=>_0x3c65ab[_0x1bc351([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x56bc4e=new window[(_0x1bc351([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1bc351([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b856c+_0x1bc351([0x2e])+_0x2c3baf),_0x28ecee=window[_0x1bc351([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1bc351([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x28ecee)return;const _0x89e6c5=await _0x28ecee[_0x1bc351([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1bc351([0x6a,0x77,0x6b]),_0x232670,{[_0x1bc351([0x6e,0x61,0x6d,0x65])]:_0x1bc351([0x45,0x43,0x44,0x53,0x41]),[_0x1bc351([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1bc351([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1bc351([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x28ecee[_0x1bc351([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1bc351([0x6e,0x61,0x6d,0x65])]:_0x1bc351([0x45,0x43,0x44,0x53,0x41]),[_0x1bc351([0x68,0x61,0x73,0x68])]:{[_0x1bc351([0x6e,0x61,0x6d,0x65])]:_0x1bc351([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x89e6c5,_0x34acdc,_0x56bc4e)||(_0x4ae992=!0x1);}}function _0x442d91(_0x471403){return _0x471403[_0x1bc351([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1bc351([0x65,0x79]))?JSON[_0x1bc351([0x70,0x61,0x72,0x73,0x65])](_0x2d7847(_0x471403)):null;}function _0x2d7847(_0x1540ac){return window[_0x1bc351([0x61,0x74,0x6f,0x62])](_0x1540ac[_0x1bc351([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1bc351([0x2b]))[_0x1bc351([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1bc351([0x2f])));}function _0x45a713(_0x1efbec){let _0x12ebba=0x1505;function _0x41c3b3(_0x3cd0fa){for(let _0x21ba56=0x0;_0x21ba56<_0x3cd0fa[_0x1bc351([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21ba56++){const _0x3c1166=_0x3cd0fa[_0x1bc351([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x21ba56);_0x12ebba=(_0x12ebba<<0x5)+_0x12ebba+_0x3c1166,_0x12ebba&=_0x12ebba;}}function _0x2808fe(_0x3824d6){Array[_0x1bc351([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3824d6)?_0x3824d6[_0x1bc351([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2808fe):_0x3824d6&&typeof _0x3824d6==_0x1bc351([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1bc351([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3824d6)[_0x1bc351([0x73,0x6f,0x72,0x74])]()[_0x1bc351([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2cda15,_0xf6a772])=>{_0x41c3b3(_0x2cda15),_0x2808fe(_0xf6a772);}):_0x41c3b3(window[_0x1bc351([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3824d6));}return _0x2808fe(_0x1efbec),_0x12ebba>>>0x0;}function _0x48c0cc(_0x45fb45){return _0x45fb45[_0x1bc351([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1bc351([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1bc351([0x30]));}function _0x446c17(_0x90a42d){return _0x90a42d[_0x1bc351([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1bc351([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1bc351([0x6a,0x6f,0x69,0x6e])]('');}function _0x2787e6(){}function _0x1bc351(_0x5e4710){return _0x5e4710['map'](_0x293005=>String['fromCharCode'](_0x293005))['join']('');}_0x4e06d7(await _0x42f4d2());}(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'],[_0x49dcaa=>Number(_0x49dcaa)>=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(_0x31da1c){return y['includes'](_0x31da1c);}function E(_0x4b0ff1){return Array['from'](_0x4b0ff1['getStyleNames']())['filter'](O);}function F(_0x247a92,_0x3108e4,_0x503956){const {spanStyles:_0x5bc0ee,stylesToBeHtmlElements:_0x410530}=L(_0x247a92,_0x503956);!function(_0x51c72b,_0x15bb5c,_0x5353e9){for(const _0x520612 in _0x5353e9){_0x5353e9[_0x520612]['forEach'](([,_0x4d8d25])=>{const _0x386248=_0x15bb5c['createElement'](_0x4d8d25,[],_0x51c72b['getChildren']());_0x15bb5c['insertChild'](0x0,_0x386248,_0x51c72b);}),_0x15bb5c['removeStyle'](_0x520612,_0x51c72b);}}(_0x247a92,_0x3108e4,_0x410530),function(_0x4ba59d,_0x12896e,_0x315956){if(!Object['keys'](_0x315956)['length'])return;const _0x4592b7=_0x12896e['createElement']('span',[],_0x4ba59d['getChildren']());_0x12896e['setStyle'](_0x315956,_0x4592b7),_0x12896e['insertChild'](0x0,_0x4592b7,_0x4ba59d),_0x12896e['removeStyle'](Object['keys'](_0x315956),_0x4ba59d);}(_0x247a92,_0x3108e4,_0x5bc0ee);}function P(_0x40a034,_0x5e939b,_0x55319d){const {spanStyles:_0x1b544e}=L(_0x40a034,_0x55319d),_0x4406d1=Object['keys'](_0x1b544e);if(!_0x4406d1['length'])return;let _0x11fbf0=!0x1;for(const _0x422760 of _0x40a034['getChildren']())if(_0x422760['is']('element','span')){_0x11fbf0=!0x0;for(const [_0x945cd1,_0x1bfc5c]of Object['entries'](_0x1b544e))_0x422760['hasStyle'](_0x945cd1)||_0x5e939b['setStyle']({[_0x945cd1]:_0x1bfc5c},_0x422760);}_0x11fbf0&&_0x5e939b['removeStyle'](_0x4406d1,_0x40a034);}function L(_0x5d0e36,_0x3254a7){const _0x56970f={},_0x54ccd8={};return _0x3254a7['forEach'](_0x5b6097=>{const _0x3c5f98=_0x5d0e36['getStyle'](_0x5b6097);if(_0x3c5f98){if(function(_0x471d54){return g['includes'](_0x471d54);}(_0x5b6097))_0x56970f[_0x5b6097]=_0x3c5f98;else{if(function(_0x192d36){return _0x192d36 in h;}(_0x5b6097)){const _0x57f1ed=_0x3c5f98['split']('\x20');h[_0x5b6097]['forEach'](([_0x5eb170,_0x2e82e9])=>{for(const _0x44990b of _0x57f1ed){('function'==typeof _0x5eb170&&_0x5eb170(_0x44990b)||_0x5eb170===_0x44990b)&&(_0x54ccd8[_0x5b6097]=[..._0x54ccd8[_0x5b6097]||[],[_0x5eb170,_0x2e82e9]]);}});}}}}),{'spanStyles':_0x56970f,'stylesToBeHtmlElements':_0x54ccd8};}class MSOfficeInlineStylePropagator extends _0xdd7199{['execute'](_0x282eef){const _0x2b73a4=new _0x3b0055(_0x282eef['content']['document']),_0xe101f7=_0x2b73a4['createRangeIn'](_0x282eef['content']),_0x511840=new _0x1c1e13(_0x2b73a4['document']['stylesProcessor']),_0x126561=[...new _0xc43e17(_0x511840)['blockElements'],'font'],_0x1f3c37=_0xe101f7['getItems']();for(const _0x3bcbee of _0x1f3c37)if(_0x3bcbee['is']('element')&&_0x126561['includes'](_0x3bcbee['name'])){if(_0x3bcbee['hasStyle']('mso-list')&&'none'!==_0x3bcbee['getStyle']('mso-list')){P(_0x3bcbee,_0x2b73a4,E(_0x3bcbee));continue;}F(_0x3bcbee,_0x2b73a4,E(_0x3bcbee));}}['isActive'](_0x42b0c1){return super['isActive'](_0x42b0c1)||u(_0x42b0c1);}}class PasteFromOfficeEnhancedPropagator extends _0x21c965{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2de44a];}['init'](){const _0x4ea7b0=this['editor'],_0xaa8e8e=_0x4ea7b0['plugins']['get']('PasteFromOffice'),_0x55df4c=_0x4ea7b0['editing']['view']['document'],_0x1132a3=new MSOfficeInlineStylePropagator(_0x55df4c);_0xaa8e8e['registerNormalizer'](_0x1132a3,_0xcf9abb['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x46fa85=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x53aba3;for(const _0x1318d3 in _0x46fa85){const _0xb42889=_0x1318d3,_0x3742ae=_0x46fa85[_0xb42889];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x3742ae||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x3742ae||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x3742ae||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x3742ae||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x3742ae||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x3742ae||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x3742ae){delete _0x46fa85[_0xb42889],_0x53aba3=_0x3742ae,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x53aba3&&_0x46fa85['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x53aba3&&_0x46fa85['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x53aba3&&_0x46fa85['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x53aba3&&_0x46fa85['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x53aba3&&_0x46fa85['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x53aba3&&_0x46fa85['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends _0x21c965{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2de44a,PasteFromOfficeEnhancedInliner,PasteFromOfficeEnhancedPropagator];}}export{PasteFromOfficeEnhanced};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-paste-from-office-enhanced",
|
|
3
|
-
"version": "48.2.0-alpha.
|
|
3
|
+
"version": "48.2.0-alpha.5",
|
|
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.2.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "48.2.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-paste-from-office": "48.2.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.
|
|
34
|
+
"@ckeditor/ckeditor5-clipboard": "48.2.0-alpha.5",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.2.0-alpha.5",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.2.0-alpha.5",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.2.0-alpha.5",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.2.0-alpha.5"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|