@ckeditor/ckeditor5-paste-from-office-enhanced 48.0.1 → 48.1.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 _0x25a1b9}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x35eab1,PasteFromOffice as _0x2cd59e,parsePasteOfficeHtml as _0x115b7c}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x4d62cb,uid as _0x1b0a26}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x2a7677,ViewDocument as _0x4f73fd,ViewDomConverter as _0x255e22}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x5cb60f){return a['test'](_0x5cb60f);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x337255,_0x25fc8a){const _0x2bc5cd=new Map();for(const [_0xc67eed,_0x4971a6]of _0x25fc8a){if(!_0xc67eed['tagName']&&!_0xc67eed['className'])continue;const _0x2b0970=!_0xc67eed['tagName']||_0x337255['name']===_0xc67eed['tagName'],_0x33c8bf=!_0xc67eed['className']||_0x337255['hasClass'](_0xc67eed['className']);_0x2b0970&&_0x33c8bf&&_0x2bc5cd['set'](_0xc67eed,_0x4971a6);}return _0x2bc5cd;}function m(_0xc45b0d){const _0x4e81ec={};for(let _0xb04e65=0x0;_0xb04e65<_0xc45b0d['length'];_0xb04e65++){const _0x3436bb=_0xc45b0d[_0xb04e65],_0x5b06bc=_0xc45b0d['getPropertyValue'](_0x3436bb);'initial'!==_0x5b06bc&&(_0x4e81ec[_0x3436bb]=_0x5b06bc);}return _0x4e81ec;}function p(_0x2c79ac){const _0x53138e=_0x2c79ac['split'](',')['map'](_0xaba7ab=>_0xaba7ab['trim']()),_0x3faf25=[];for(const _0x2d1263 of _0x53138e){const _0x443c99=d['exec'](_0x2d1263);_0x443c99&&_0x3faf25['push'](_0x443c99['groups']);}return _0x3faf25;}function y(_0x48b006){const _0x292592={};for(const _0xd879d3 of _0x48b006)Object['assign'](_0x292592,_0xd879d3);return _0x292592;}class h extends _0x35eab1{['execute'](_0x214dd6){const {body:_0x3eca3a,styles:_0x638ba7}=_0x214dd6['_parsedData'],_0x140271=new _0x2a7677(_0x3eca3a['document']),_0x40342d=_0x140271['createRangeIn'](_0x3eca3a),_0xce6f3e=function(_0x4b5d66){const _0x2084f8={};for(const _0x54c741 of _0x4b5d66)for(const _0x3d4b98 of _0x54c741['cssRules'])if(_0x3d4b98 instanceof CSSStyleRule){const _0x236aff=m(_0x3d4b98['style']);_0x2084f8[_0x3d4b98['selectorText']]=Object['assign']({},_0x2084f8[_0x3d4b98['selectorText']]||{},_0x236aff);}return _0x2084f8;}(_0x638ba7),_0x134a5c=function(_0x34b95b){const _0x2e4592=new Map();for(const _0x4cb99f in _0x34b95b){const _0x2222b8=p(_0x4cb99f),_0x1b8316=_0x34b95b[_0x4cb99f];for(const _0x1a4f72 of _0x2222b8)_0x2e4592['set'](_0x1a4f72,_0x1b8316);}return _0x2e4592;}(_0xce6f3e);for(const _0x3dade2 of _0x40342d){if('elementStart'!==_0x3dade2['type'])continue;const _0x38869d=w(_0x3dade2['item'],_0x134a5c);if(_0x38869d['size']){const _0xe99b78=y(Array['from'](_0x38869d['values']()));for(const _0x42de9f in _0xe99b78){const _0x9ed782=_0x3dade2['item'];_0x9ed782['hasStyle'](_0x42de9f)||_0x140271['setStyle'](_0x42de9f,_0xe99b78[_0x42de9f],_0x9ed782);}}}_0x214dd6['content']=_0x3eca3a;}['isActive'](_0x4d0c82){return super['isActive'](_0x4d0c82)||l(_0x4d0c82);}}class g extends _0x25a1b9{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2cd59e];}['init'](){const _0x5ada00=this['editor'],_0xa57176=_0x5ada00['plugins']['get']('ClipboardPipeline'),_0x3da134=_0x5ada00['editing']['view']['document'],_0x51eb8f=new h(_0x3da134);_0xa57176['on']('inputTransformation',(_0x56c1e8,_0x5eecef)=>{const _0x55d90a=_0x5eecef['dataTransfer']['getData']('text/html');_0x51eb8f['isActive'](_0x55d90a)&&(_0x5eecef['_parsedData']||(_0x5eecef['_parsedData']=_0x115b7c(_0x55d90a,_0x3da134['stylesProcessor'])),_0x51eb8f['execute'](_0x5eecef));},{'priority':_0x4d62cb['get']('high')+0xb});}['afterInit'](){!async function(_0x163af7){const _0x4f2684=_0x1046ba([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]),_0x48fa66=0x7374585f,_0x175f34=0x7373dfa7^_0x48fa66,_0x4b4153=window[_0x1046ba([0x44,0x61,0x74,0x65])][_0x1046ba([0x6e,0x6f,0x77])](),_0x453cc4=_0x163af7[_0x1046ba([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6dcd71=new window[(_0x1046ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x327a80=>{_0x453cc4[_0x1046ba([0x6f,0x6e,0x63,0x65])](_0x1046ba([0x72,0x65,0x61,0x64,0x79]),_0x327a80);}),_0x31f956={[_0x1046ba([0x6b,0x74,0x79])]:_0x1046ba([0x45,0x43]),[_0x1046ba([0x75,0x73,0x65])]:_0x1046ba([0x73,0x69,0x67]),[_0x1046ba([0x63,0x72,0x76])]:_0x1046ba([0x50,0x2d,0x32,0x35,0x36]),[_0x1046ba([0x78])]:_0x1046ba([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]),[_0x1046ba([0x79])]:_0x1046ba([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]),[_0x1046ba([0x61,0x6c,0x67])]:_0x1046ba([0x45,0x53,0x32,0x35,0x36])},_0x3254e9=_0x453cc4[_0x1046ba([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1046ba([0x67,0x65,0x74])](_0x1046ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2563d2(){let _0x49cca6,_0x11cac2=null,_0x17185c=null;try{if(_0x3254e9==_0x1046ba([0x47,0x50,0x4c]))return _0x1046ba([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x49cca6=_0x56a302(),!_0x49cca6)return _0x1046ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x49cca6[_0x1046ba([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x17185c=_0x4664b3(_0x49cca6[_0x1046ba([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x49cca6[_0x1046ba([0x6a,0x74,0x69])])),await _0x31c2b9()?_0xd6646b()?_0x1ac976()?_0x1046ba([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x17fd26()?(_0x49cca6[_0x1046ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1046ba([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11cac2=_0x247b0b(_0x1046ba([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4786e3()):_0x1046ba([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1046ba([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1046ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1046ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ac976(){const _0x13f9d2=[_0x1046ba([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1046ba([0x74,0x72,0x69,0x61,0x6c])][_0x1046ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49cca6[_0x1046ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b4153/0x3e8:0xe10*_0x175f34;return _0x49cca6[_0x1046ba([0x65,0x78,0x70])]<_0x13f9d2;}function _0xd6646b(){const _0x5cf333=_0x49cca6[_0x1046ba([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5cf333&&(!!_0x5cf333[_0x1046ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1046ba([0x2a]))||(!!_0x5cf333[_0x1046ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1046ba([0x50,0x4f,0x45]))||(!!_0x5cf333[_0x1046ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1046ba([0x50,0x50]))||!(!_0x5cf333[_0x1046ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1046ba([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x269436()))));}function _0x17fd26(){const _0xa2a9bf=_0x49cca6[_0x1046ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xa2a9bf||0x0==_0xa2a9bf[_0x1046ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xfc314b}=new URL(window[_0x1046ba([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xa2a9bf[_0x1046ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfc314b))return!0x0;const _0xc39d37=_0xfc314b[_0x1046ba([0x73,0x70,0x6c,0x69,0x74])](_0x1046ba([0x2e]));return _0xa2a9bf[_0x1046ba([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4bfd3d=>_0x4bfd3d[_0x1046ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1046ba([0x2a])))[_0x1046ba([0x6d,0x61,0x70])](_0x220854=>_0x220854[_0x1046ba([0x73,0x70,0x6c,0x69,0x74])](_0x1046ba([0x2e])))[_0x1046ba([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14aacb=>_0x14aacb[_0x1046ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xc39d37[_0x1046ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1046ba([0x6d,0x61,0x70])](_0x261a8d=>Array(_0xc39d37[_0x1046ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x261a8d[_0x1046ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1046ba([0x66,0x69,0x6c,0x6c])](_0x261a8d[0x0]===_0x1046ba([0x2a])?_0x1046ba([0x2a]):'')[_0x1046ba([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x261a8d))[_0x1046ba([0x73,0x6f,0x6d,0x65])](_0x58a36b=>_0xc39d37[_0x1046ba([0x65,0x76,0x65,0x72,0x79])]((_0x1ec67f,_0x4f0391)=>_0x58a36b[_0x4f0391]===_0x1ec67f||_0x58a36b[_0x4f0391]===_0x1046ba([0x2a])));}function _0x4786e3(){return _0x11cac2&&_0x17185c?new window[(_0x1046ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59e195,_0x45869f)=>{_0x11cac2[_0x1046ba([0x74,0x68,0x65,0x6e])](_0x59e195,_0x45869f),_0x17185c[_0x1046ba([0x74,0x68,0x65,0x6e])](_0x13a4eb=>{_0x13a4eb!=_0x1046ba([0x56,0x61,0x6c,0x69,0x64])&&_0x59e195(_0x13a4eb);},_0x45869f);}):_0x11cac2||_0x17185c||_0x1046ba([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4664b3(_0x463225,_0x320df3){return new window[(_0x1046ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4162e2=>{if(_0x562e7b())return _0x4162e2(_0x1046ba([0x56,0x61,0x6c,0x69,0x64]));_0x2e98d6(),_0x453cc4[_0x1046ba([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1046ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x30da01=!0x1;const _0x5473b0=_0x1b0a26();function _0xc4fd10(_0x3ea1d9){return!!_0x3ea1d9&&(typeof _0x3ea1d9===_0x1046ba([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ea1d9===_0x1046ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ea1d9[_0x1046ba([0x74,0x68,0x65,0x6e])]===_0x1046ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ea1d9[_0x1046ba([0x63,0x61,0x74,0x63,0x68])]===_0x1046ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x75e605(_0x48417b){_0xd2cc42(_0x48417b)[_0x1046ba([0x74,0x68,0x65,0x6e])](_0x13acf4=>{if(!_0x13acf4||_0x13acf4[_0x1046ba([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1046ba([0x6f,0x6b]))return _0x1046ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x475326(_0x2148ba(_0x5473b0+_0x320df3))!=_0x13acf4[_0x1046ba([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1046ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1046ba([0x56,0x61,0x6c,0x69,0x64]);})[_0x1046ba([0x74,0x68,0x65,0x6e])](_0x33acff=>(_0x1ffdc5(),_0x33acff),()=>{const _0x242c15=_0x46dabb();return null==_0x242c15?(_0x1ffdc5(),_0x1046ba([0x56,0x61,0x6c,0x69,0x64])):_0x1046ba(_0x4b4153-_0x242c15>(0x5778dc5f^_0x48fa66)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1046ba([0x74,0x68,0x65,0x6e])](_0x4162e2)[_0x1046ba([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4162e2(_0x1046ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5719b5=0x7342b6df^_0x48fa66;function _0x1ffdc5(){const _0x4c67c8=_0x1046ba([0x6c,0x6c,0x63,0x74,0x2d])+_0x475326(_0x2148ba(_0x463225)),_0x15a39b=_0x52911a(_0x475326(window[_0x1046ba([0x4d,0x61,0x74,0x68])][_0x1046ba([0x63,0x65,0x69,0x6c])](_0x4b4153/_0x5719b5)));window[_0x1046ba([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1046ba([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c67c8,_0x15a39b);}function _0x46dabb(){const _0x4485ea=_0x1046ba([0x6c,0x6c,0x63,0x74,0x2d])+_0x475326(_0x2148ba(_0x463225)),_0x262027=window[_0x1046ba([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1046ba([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4485ea);return _0x262027?window[_0x1046ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52911a(_0x262027),0x10)*_0x5719b5:null;}function _0xd2cc42(_0x3c8a17){return new window[(_0x1046ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16aa02,_0xdef52d)=>{_0x3c8a17[_0x1046ba([0x74,0x68,0x65,0x6e])](_0x16aa02,_0xdef52d),window[_0x1046ba([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xdef52d,0x73758c9f^_0x48fa66);});}}_0x453cc4[_0x1046ba([0x6f,0x6e])](_0x1046ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x17bd00,_0x1f6ef0)=>{if(_0x1f6ef0[0x0]!=_0x463225)return _0x4162e2(_0x1046ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1f6ef0[0x1]={..._0x1f6ef0[0x1],[_0x1046ba([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5473b0};},{[_0x1046ba([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1046ba([0x68,0x69,0x67,0x68])}),_0x453cc4[_0x1046ba([0x6f,0x6e])](_0x1046ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x227540=>{_0xc4fd10(_0x227540[_0x1046ba([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x30da01=!0x0,_0x75e605(_0x227540[_0x1046ba([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1046ba([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1046ba([0x6c,0x6f,0x77])}),_0x6dcd71[_0x1046ba([0x74,0x68,0x65,0x6e])](()=>{_0x30da01||_0x4162e2(_0x1046ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x562e7b(){return _0x453cc4[_0x1046ba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1046ba([0x76,0x69,0x65,0x77])][_0x1046ba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1046ba([0x61,0x75,0x74,0x6f]);}function _0x2e98d6(){_0x453cc4[_0x1046ba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1046ba([0x76,0x69,0x65,0x77])][_0x1046ba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1046ba([0x61,0x75,0x74,0x6f]);}}function _0x247b0b(_0x3834bd){const _0x4d1a34=[new window[(_0x1046ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e9e26=>setTimeout(_0x2e9e26,0x737d6693^_0x48fa66)),_0x6dcd71[_0x1046ba([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1046ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16b414=>{let _0x249d91=0x0;_0x453cc4[_0x1046ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x1046ba([0x6f,0x6e])](_0x1046ba([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x469c43,_0xd51a69)=>{_0xd51a69[0x0][_0x1046ba([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x249d91++,_0x249d91==(0x73745db7^_0x48fa66)&&(_0x16b414(),_0x469c43[_0x1046ba([0x6f,0x66,0x66])]());});}))];return window[_0x1046ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1046ba([0x72,0x61,0x63,0x65])](_0x4d1a34)[_0x1046ba([0x74,0x68,0x65,0x6e])](()=>_0x3834bd);}async function _0x5859a3(){await _0x6dcd71,_0x453cc4[_0x1046ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x1046ba([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x107632,_0x453cc4[_0x1046ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x1046ba([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x107632,_0x453cc4[_0x1046ba([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1046ba([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x269436(){return window[_0x1046ba([0x67,0x6c,0x6f,0x62])]&&window[_0x1046ba([0x67,0x6c,0x6f,0x62])][_0x1046ba([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x4df559(_0x47b070){const _0x235e1c=_0x280df2();_0x453cc4[_0x235e1c]=_0x1046ba([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])+_0x47b070,_0x47b070!=_0x1046ba([0x56,0x61,0x6c,0x69,0x64])&&_0x5859a3();}function _0x280df2(){const _0x1ab14e=window[_0x1046ba([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1046ba([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1046ba([0x6e,0x6f,0x77])]())[_0x1046ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1046ba([0x2e]),'');let _0x593dac=_0x1046ba([0x73]);for(let _0x32f0b3=0x0;_0x32f0b3<_0x1ab14e[_0x1046ba([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32f0b3+=0x2){let _0x472f69=window[_0x1046ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ab14e[_0x1046ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32f0b3,_0x32f0b3+0x2));_0x472f69>=_0x4f2684[_0x1046ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x472f69-=_0x4f2684[_0x1046ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x593dac+=_0x4f2684[_0x472f69];}return _0x593dac;}function _0x56a302(){const _0x40bec8=_0x3254e9[_0x1046ba([0x73,0x70,0x6c,0x69,0x74])](_0x1046ba([0x2e]));if(0x3!=_0x40bec8[_0x1046ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x148d4e(_0x40bec8[0x1]);function _0x148d4e(_0x3b6d60){const _0x3b7ce6=_0x57f4c0(_0x3b6d60);return _0x3b7ce6&&_0x1d3dac()?_0x3b7ce6:null;function _0x1d3dac(){const _0x381a2a=_0x3b7ce6[_0x1046ba([0x6a,0x74,0x69])],_0x257f7d=window[_0x1046ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x381a2a[_0x1046ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x381a2a[_0x1046ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a15ad={..._0x3b7ce6,[_0x1046ba([0x6a,0x74,0x69])]:_0x381a2a[_0x1046ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x381a2a[_0x1046ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a15ad[_0x1046ba([0x76,0x63])],_0x2148ba(_0x4a15ad)==_0x257f7d;}}}async function _0x31c2b9(){let _0x4c0bf1=!0x0;try{const _0x5930e8=_0x3254e9[_0x1046ba([0x73,0x70,0x6c,0x69,0x74])](_0x1046ba([0x2e])),[_0x362812,_0x546615,_0x3d0c5b]=_0x5930e8;return _0x4a73bb(_0x362812),await _0x5621ec(_0x362812,_0x546615,_0x3d0c5b),_0x4c0bf1;}catch{return!0x1;}function _0x4a73bb(_0x2d8e2c){const _0x5556d6=_0x57f4c0(_0x2d8e2c);_0x5556d6&&_0x5556d6[_0x1046ba([0x61,0x6c,0x67])]==_0x1046ba([0x45,0x53,0x32,0x35,0x36])||(_0x4c0bf1=!0x1);}async function _0x5621ec(_0x257e6e,_0x243b49,_0x2be29c){const _0x47119e=window[_0x1046ba([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1046ba([0x66,0x72,0x6f,0x6d])](_0x3441b1(_0x2be29c),_0x209e17=>_0x209e17[_0x1046ba([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20df40=new window[(_0x1046ba([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1046ba([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x257e6e+_0x1046ba([0x2e])+_0x243b49),_0x1fbaeb=window[_0x1046ba([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1046ba([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1fbaeb)return;const _0x8e59c9=await _0x1fbaeb[_0x1046ba([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1046ba([0x6a,0x77,0x6b]),_0x31f956,{[_0x1046ba([0x6e,0x61,0x6d,0x65])]:_0x1046ba([0x45,0x43,0x44,0x53,0x41]),[_0x1046ba([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1046ba([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1046ba([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1fbaeb[_0x1046ba([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1046ba([0x6e,0x61,0x6d,0x65])]:_0x1046ba([0x45,0x43,0x44,0x53,0x41]),[_0x1046ba([0x68,0x61,0x73,0x68])]:{[_0x1046ba([0x6e,0x61,0x6d,0x65])]:_0x1046ba([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x8e59c9,_0x47119e,_0x20df40)||(_0x4c0bf1=!0x1);}}function _0x57f4c0(_0x1dfec6){return _0x1dfec6[_0x1046ba([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1046ba([0x65,0x79]))?JSON[_0x1046ba([0x70,0x61,0x72,0x73,0x65])](_0x3441b1(_0x1dfec6)):null;}function _0x3441b1(_0x2d8c8f){return window[_0x1046ba([0x61,0x74,0x6f,0x62])](_0x2d8c8f[_0x1046ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1046ba([0x2b]))[_0x1046ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1046ba([0x2f])));}function _0x2148ba(_0x27d77b){let _0x56c34a=0x1505;function _0x4f9d42(_0x144a30){for(let _0x19eb96=0x0;_0x19eb96<_0x144a30[_0x1046ba([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19eb96++){const _0x178820=_0x144a30[_0x1046ba([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19eb96);_0x56c34a=(_0x56c34a<<0x5)+_0x56c34a+_0x178820,_0x56c34a&=_0x56c34a;}}function _0x1b851b(_0x3b0a1a){Array[_0x1046ba([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3b0a1a)?_0x3b0a1a[_0x1046ba([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1b851b):_0x3b0a1a&&typeof _0x3b0a1a==_0x1046ba([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1046ba([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3b0a1a)[_0x1046ba([0x73,0x6f,0x72,0x74])]()[_0x1046ba([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5bc327,_0xca5606])=>{_0x4f9d42(_0x5bc327),_0x1b851b(_0xca5606);}):_0x4f9d42(window[_0x1046ba([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3b0a1a));}return _0x1b851b(_0x27d77b),_0x56c34a>>>0x0;}function _0x475326(_0x13dbac){return _0x13dbac[_0x1046ba([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1046ba([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1046ba([0x30]));}function _0x52911a(_0x4a1fd1){return _0x4a1fd1[_0x1046ba([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1046ba([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1046ba([0x6a,0x6f,0x69,0x6e])]('');}function _0x107632(){}function _0x1046ba(_0xe328b1){return _0xe328b1['map'](_0x1ef1c3=>String['fromCharCode'](_0x1ef1c3))['join']('');}_0x4df559(await _0x2563d2());}(this);}}const O=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],E=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x258001=>Number(_0x258001)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function x(_0x41caf2){return O['includes'](_0x41caf2);}function F(_0x2444c2){return Array['from'](_0x2444c2['getStyleNames']())['filter'](x);}function K(_0x25927a,_0x5b4e27,_0x505925){const {spanStyles:_0x28dd0a,stylesToBeHtmlElements:_0x528287}=function(_0x4b78e6,_0x5028c5){const _0x550db8={},_0x5ebc5a={};return _0x5028c5['forEach'](_0x2663c5=>{const _0x39ca17=_0x4b78e6['getStyle'](_0x2663c5);if(_0x39ca17){if(function(_0x597f99){return E['includes'](_0x597f99);}(_0x2663c5))_0x550db8[_0x2663c5]=_0x39ca17;else{if(function(_0x5c58f8){return _0x5c58f8 in L;}(_0x2663c5)){const _0xdd8826=_0x39ca17['split']('\x20');L[_0x2663c5]['forEach'](([_0x41b091,_0x1ef25e])=>{for(const _0x1f9f3b of _0xdd8826){('function'==typeof _0x41b091&&_0x41b091(_0x1f9f3b)||_0x41b091===_0x1f9f3b)&&(_0x5ebc5a[_0x2663c5]=[..._0x5ebc5a[_0x2663c5]||[],[_0x41b091,_0x1ef25e]]);}});}}}}),{'spanStyles':_0x550db8,'stylesToBeHtmlElements':_0x5ebc5a};}(_0x25927a,_0x505925);!function(_0x110858,_0x5245d9,_0x514e9d){for(const _0x195405 in _0x514e9d){_0x514e9d[_0x195405]['forEach'](([,_0x2996b1])=>{const _0xfc64bd=_0x5245d9['createElement'](_0x2996b1,[],_0x110858['getChildren']());_0x5245d9['insertChild'](0x0,_0xfc64bd,_0x110858);}),_0x5245d9['removeStyle'](_0x195405,_0x110858);}}(_0x25927a,_0x5b4e27,_0x528287),function(_0x5a89d9,_0x57057a,_0x347df2){if(!Object['keys'](_0x347df2)['length'])return;const _0x5003ea=_0x57057a['createElement']('span',[],_0x5a89d9['getChildren']());_0x57057a['setStyle'](_0x347df2,_0x5003ea),_0x57057a['insertChild'](0x0,_0x5003ea,_0x5a89d9),_0x57057a['removeStyle'](Object['keys'](_0x347df2),_0x5a89d9);}(_0x25927a,_0x5b4e27,_0x28dd0a);}class P extends _0x35eab1{['execute'](_0x640972){const {body:_0x2f4ce6}=_0x640972['_parsedData'],_0x39bbd5=new _0x2a7677(_0x2f4ce6['document']),_0xf706af=_0x39bbd5['createRangeIn'](_0x2f4ce6),_0x1ca362=new _0x4f73fd(_0x39bbd5['document']['stylesProcessor']),_0x5592e3=[...new _0x255e22(_0x1ca362)['blockElements'],'font'],_0x22a280=_0xf706af['getItems']();for(const _0x442a17 of _0x22a280)_0x442a17['is']('element')&&_0x5592e3['includes'](_0x442a17['name'])&&K(_0x442a17,_0x39bbd5,F(_0x442a17));_0x640972['content']=_0x2f4ce6;}['isActive'](_0x4a8593){return super['isActive'](_0x4a8593)||l(_0x4a8593);}}class b extends _0x25a1b9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2cd59e];}['init'](){const _0xf6f2d4=this['editor'],_0x3f45f2=_0xf6f2d4['plugins']['get']('ClipboardPipeline'),_0x2ef994=_0xf6f2d4['editing']['view']['document'],_0x5d81d1=new P(_0x2ef994);_0x3f45f2['on']('inputTransformation',(_0x493c98,_0x1990ca)=>{const _0x3f1051=_0x1990ca['dataTransfer']['getData']('text/html');_0x5d81d1['isActive'](_0x3f1051)&&(_0x1990ca['_parsedData']||(_0x1990ca['_parsedData']=_0x115b7c(_0x3f1051,_0x2ef994['stylesProcessor'])),_0x5d81d1['execute'](_0x1990ca));},{'priority':_0x4d62cb['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x389ea7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a8597;for(const _0x394d8f in _0x389ea7){const _0x4c69a1=_0x394d8f,_0x412f33=_0x389ea7[_0x4c69a1];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x412f33||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x412f33||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x412f33||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x412f33||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x412f33||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x412f33||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x412f33){delete _0x389ea7[_0x4c69a1],_0x4a8597=_0x412f33,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4a8597&&_0x389ea7['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4a8597&&_0x389ea7['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4a8597&&_0x389ea7['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4a8597&&_0x389ea7['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4a8597&&_0x389ea7['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4a8597&&_0x389ea7['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class v extends _0x25a1b9{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x2cd59e,g,b];}}export{v as PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x8b5719}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x3952a6,PasteFromOffice as _0x472570,parsePasteOfficeHtml as _0xf5b303}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x211220,uid as _0x4b2006}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x5e71c4,ViewDocument as _0x4e2020,ViewDomConverter as _0x41c1fb}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x1fafae){return a['test'](_0x1fafae);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x1b51d4,_0x5bb27e){const _0x3c3dd8=new Map();for(const [_0x2826fb,_0x18c7f1]of _0x5bb27e){if(!_0x2826fb['tagName']&&!_0x2826fb['className'])continue;const _0x4881f5=!_0x2826fb['tagName']||_0x1b51d4['name']===_0x2826fb['tagName'],_0x1d6124=!_0x2826fb['className']||_0x1b51d4['hasClass'](_0x2826fb['className']);_0x4881f5&&_0x1d6124&&_0x3c3dd8['set'](_0x2826fb,_0x18c7f1);}return _0x3c3dd8;}function m(_0x42589a){const _0x1a3460={};for(let _0x2322a1=0x0;_0x2322a1<_0x42589a['length'];_0x2322a1++){const _0x55b758=_0x42589a[_0x2322a1],_0x536913=_0x42589a['getPropertyValue'](_0x55b758);'initial'!==_0x536913&&(_0x1a3460[_0x55b758]=_0x536913);}return _0x1a3460;}function p(_0x5b97c5){const _0x16f509=_0x5b97c5['split'](',')['map'](_0x11c2d5=>_0x11c2d5['trim']()),_0x13b4f2=[];for(const _0xf0f0dc of _0x16f509){const _0x46f3d8=d['exec'](_0xf0f0dc);_0x46f3d8&&_0x13b4f2['push'](_0x46f3d8['groups']);}return _0x13b4f2;}function y(_0x4bba6c){const _0x620923={};for(const _0x19ff41 of _0x4bba6c)Object['assign'](_0x620923,_0x19ff41);return _0x620923;}class g extends _0x3952a6{['execute'](_0x28261f){const {body:_0x5728aa,styles:_0x1d3687,stylesString:_0x1793d6}=_0x28261f['_parsedData'],_0x5a3fa6=new _0x5e71c4(_0x5728aa['document']),_0x16e255=_0x5a3fa6['createRangeIn'](_0x5728aa),_0x3f0791=function(_0x51eb0d){const _0x5868f1={};for(const _0x4a17db of _0x51eb0d)for(const _0x568a49 of _0x4a17db['cssRules'])if(_0x568a49 instanceof CSSStyleRule){const _0x116f63=m(_0x568a49['style']);_0x5868f1[_0x568a49['selectorText']]=Object['assign']({},_0x5868f1[_0x568a49['selectorText']]||{},_0x116f63);}return _0x5868f1;}(_0x1d3687),_0x5a56d2=function(_0x4a30e7){const _0x307094=new Map();for(const _0x583133 in _0x4a30e7){const _0x19de4c=p(_0x583133),_0x229330=_0x4a30e7[_0x583133];for(const _0xa61c07 of _0x19de4c)_0x307094['set'](_0xa61c07,_0x229330);}return _0x307094;}(_0x3f0791),_0x57ec96=function(_0x136d62){const _0x2e20d8={},_0x2175c7=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x1bbc6a=/\.(?<className>[\w-]+)/g;let _0x39ed96;for(;null!==(_0x39ed96=_0x2175c7['exec'](_0x136d62));){const {selector:_0x577231,color:_0x54b996,patternType:_0x33b01a}=_0x39ed96['groups'];if('auto'!==_0x54b996['toLowerCase']()&&'none'!==_0x33b01a['toLowerCase']()&&'auto'!==_0x33b01a['toLowerCase']()){for(const _0x2e72a3 of _0x577231['matchAll'](_0x1bbc6a))_0x2e20d8[_0x2e72a3['groups']['className']]=_0x54b996;}}return _0x2e20d8;}(_0x1793d6);for(const _0x2d80df of _0x16e255){if('elementStart'!==_0x2d80df['type'])continue;const _0xd27663=_0x2d80df['item'],_0x33bacd=w(_0xd27663,_0x5a56d2),_0x17008c=_0x33bacd['size']?y(Array['from'](_0x33bacd['values']())):{};if(!('background-color'in _0x17008c)&&!('background'in _0x17008c)){for(const [_0xf297f8,_0x3528e1]of Object['entries'](_0x57ec96))if(_0xd27663['hasClass'](_0xf297f8)){_0x17008c['background-color']=_0x3528e1;break;}}for(const _0x4fb3de in _0x17008c)_0xd27663['hasStyle'](_0x4fb3de)||_0x5a3fa6['setStyle'](_0x4fb3de,_0x17008c[_0x4fb3de],_0xd27663);}_0x28261f['content']=_0x5728aa;}['isActive'](_0x213c27){return super['isActive'](_0x213c27)||l(_0x213c27);}}class h extends _0x8b5719{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x472570];}['init'](){const _0x4329e0=this['editor'],_0x466d7b=_0x4329e0['plugins']['get']('ClipboardPipeline'),_0x5c5232=_0x4329e0['editing']['view']['document'],_0x3583d6=new g(_0x5c5232);_0x466d7b['on']('inputTransformation',(_0x4ecc55,_0x1e370f)=>{const _0x5b755b=_0x1e370f['dataTransfer']['getData']('text/html');_0x3583d6['isActive'](_0x5b755b)&&(_0x1e370f['_parsedData']||(_0x1e370f['_parsedData']=_0xf5b303(_0x5b755b,_0x5c5232['stylesProcessor'])),_0x3583d6['execute'](_0x1e370f));},{'priority':_0x211220['get']('high')+0xb});}['afterInit'](){!async function(_0x1b20c4){const _0x1318a9=_0x14d7d8([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]),_0x4b00cb=0x7374585f,_0x45fb80=0x7373d13f^_0x4b00cb,_0x25582c=window[_0x14d7d8([0x44,0x61,0x74,0x65])][_0x14d7d8([0x6e,0x6f,0x77])](),_0x5e56e9=_0x1b20c4[_0x14d7d8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4cdf78=new window[(_0x14d7d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47639b=>{_0x5e56e9[_0x14d7d8([0x6f,0x6e,0x63,0x65])](_0x14d7d8([0x72,0x65,0x61,0x64,0x79]),_0x47639b);}),_0x16c518={[_0x14d7d8([0x6b,0x74,0x79])]:_0x14d7d8([0x45,0x43]),[_0x14d7d8([0x75,0x73,0x65])]:_0x14d7d8([0x73,0x69,0x67]),[_0x14d7d8([0x63,0x72,0x76])]:_0x14d7d8([0x50,0x2d,0x32,0x35,0x36]),[_0x14d7d8([0x78])]:_0x14d7d8([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]),[_0x14d7d8([0x79])]:_0x14d7d8([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]),[_0x14d7d8([0x61,0x6c,0x67])]:_0x14d7d8([0x45,0x53,0x32,0x35,0x36])},_0x5d2501=_0x5e56e9[_0x14d7d8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14d7d8([0x67,0x65,0x74])](_0x14d7d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x368299(){let _0xe8f3da,_0x595eff=null,_0x9dd526=null;try{if(_0x5d2501==_0x14d7d8([0x47,0x50,0x4c]))return _0x14d7d8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xe8f3da=_0x1a2bc6(),!_0xe8f3da)return _0x14d7d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xe8f3da[_0x14d7d8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9dd526=_0x22fa23(_0xe8f3da[_0x14d7d8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xe8f3da[_0x14d7d8([0x6a,0x74,0x69])])),await _0x365ed5()?_0x4f79b9()?_0x294aa8()?_0x14d7d8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19f6d3()?(_0xe8f3da[_0x14d7d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14d7d8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x595eff=_0x30c4d4(_0x14d7d8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x109023()):_0x14d7d8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14d7d8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14d7d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x14d7d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x294aa8(){const _0x4e356c=[_0x14d7d8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14d7d8([0x74,0x72,0x69,0x61,0x6c])][_0x14d7d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe8f3da[_0x14d7d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x25582c/0x3e8:0xe10*_0x45fb80;return _0xe8f3da[_0x14d7d8([0x65,0x78,0x70])]<_0x4e356c;}function _0x4f79b9(){const _0x7036df=_0xe8f3da[_0x14d7d8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x7036df&&(!!_0x7036df[_0x14d7d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d7d8([0x2a]))||(!!_0x7036df[_0x14d7d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d7d8([0x50,0x4f,0x45]))||(!!_0x7036df[_0x14d7d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d7d8([0x50,0x50]))||!(!_0x7036df[_0x14d7d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d7d8([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x42ca81()))));}function _0x19f6d3(){const _0x30c82e=_0xe8f3da[_0x14d7d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x30c82e||0x0==_0x30c82e[_0x14d7d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2a44bb}=new URL(window[_0x14d7d8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x30c82e[_0x14d7d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a44bb))return!0x0;const _0x4754ec=_0x2a44bb[_0x14d7d8([0x73,0x70,0x6c,0x69,0x74])](_0x14d7d8([0x2e]));return _0x30c82e[_0x14d7d8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21d3a1=>_0x21d3a1[_0x14d7d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d7d8([0x2a])))[_0x14d7d8([0x6d,0x61,0x70])](_0x4cf933=>_0x4cf933[_0x14d7d8([0x73,0x70,0x6c,0x69,0x74])](_0x14d7d8([0x2e])))[_0x14d7d8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21d6d7=>_0x21d6d7[_0x14d7d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4754ec[_0x14d7d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14d7d8([0x6d,0x61,0x70])](_0x2d2d4d=>Array(_0x4754ec[_0x14d7d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2d2d4d[_0x14d7d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14d7d8([0x66,0x69,0x6c,0x6c])](_0x2d2d4d[0x0]===_0x14d7d8([0x2a])?_0x14d7d8([0x2a]):'')[_0x14d7d8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2d2d4d))[_0x14d7d8([0x73,0x6f,0x6d,0x65])](_0x2e1dae=>_0x4754ec[_0x14d7d8([0x65,0x76,0x65,0x72,0x79])]((_0x5bcbfa,_0x378a78)=>_0x2e1dae[_0x378a78]===_0x5bcbfa||_0x2e1dae[_0x378a78]===_0x14d7d8([0x2a])));}function _0x109023(){return _0x595eff&&_0x9dd526?new window[(_0x14d7d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfc0d5,_0x5a9998)=>{_0x595eff[_0x14d7d8([0x74,0x68,0x65,0x6e])](_0xfc0d5,_0x5a9998),_0x9dd526[_0x14d7d8([0x74,0x68,0x65,0x6e])](_0x362a2e=>{_0x362a2e!=_0x14d7d8([0x56,0x61,0x6c,0x69,0x64])&&_0xfc0d5(_0x362a2e);},_0x5a9998);}):_0x595eff||_0x9dd526||_0x14d7d8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x22fa23(_0x160c46,_0x24e11d){return new window[(_0x14d7d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26a930=>{if(_0x117ab5())return _0x26a930(_0x14d7d8([0x56,0x61,0x6c,0x69,0x64]));_0x4be3ab(),_0x5e56e9[_0x14d7d8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14d7d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x10744c=!0x1;const _0x9c7a9f=_0x4b2006();function _0x44d7e2(_0x10546a){return!!_0x10546a&&(typeof _0x10546a===_0x14d7d8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x10546a===_0x14d7d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x10546a[_0x14d7d8([0x74,0x68,0x65,0x6e])]===_0x14d7d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x10546a[_0x14d7d8([0x63,0x61,0x74,0x63,0x68])]===_0x14d7d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xfb9cbc(_0x4a79cd){_0x414049(_0x4a79cd)[_0x14d7d8([0x74,0x68,0x65,0x6e])](_0x22879b=>{if(!_0x22879b||_0x22879b[_0x14d7d8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14d7d8([0x6f,0x6b]))return _0x14d7d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d2f86(_0x2c57a8(_0x9c7a9f+_0x24e11d))!=_0x22879b[_0x14d7d8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14d7d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14d7d8([0x56,0x61,0x6c,0x69,0x64]);})[_0x14d7d8([0x74,0x68,0x65,0x6e])](_0x32dda8=>(_0x3d9f82(),_0x32dda8),()=>{const _0x4605e7=_0x346d1c();return null==_0x4605e7?(_0x3d9f82(),_0x14d7d8([0x56,0x61,0x6c,0x69,0x64])):_0x14d7d8(_0x25582c-_0x4605e7>(0x5778dc5f^_0x4b00cb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14d7d8([0x74,0x68,0x65,0x6e])](_0x26a930)[_0x14d7d8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x26a930(_0x14d7d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x114b89=0x7342b6df^_0x4b00cb;function _0x3d9f82(){const _0x58fd1f=_0x14d7d8([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d2f86(_0x2c57a8(_0x160c46)),_0x45caaf=_0x4910dc(_0x3d2f86(window[_0x14d7d8([0x4d,0x61,0x74,0x68])][_0x14d7d8([0x63,0x65,0x69,0x6c])](_0x25582c/_0x114b89)));window[_0x14d7d8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14d7d8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58fd1f,_0x45caaf);}function _0x346d1c(){const _0x569261=_0x14d7d8([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d2f86(_0x2c57a8(_0x160c46)),_0x110721=window[_0x14d7d8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14d7d8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x569261);return _0x110721?window[_0x14d7d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4910dc(_0x110721),0x10)*_0x114b89:null;}function _0x414049(_0x5015b9){return new window[(_0x14d7d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x197a83,_0x5f485c)=>{_0x5015b9[_0x14d7d8([0x74,0x68,0x65,0x6e])](_0x197a83,_0x5f485c),window[_0x14d7d8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f485c,0x73758c9f^_0x4b00cb);});}}_0x5e56e9[_0x14d7d8([0x6f,0x6e])](_0x14d7d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3105e9,_0x59eb46)=>{if(_0x59eb46[0x0]!=_0x160c46)return _0x26a930(_0x14d7d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x59eb46[0x1]={..._0x59eb46[0x1],[_0x14d7d8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x9c7a9f};},{[_0x14d7d8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14d7d8([0x68,0x69,0x67,0x68])}),_0x5e56e9[_0x14d7d8([0x6f,0x6e])](_0x14d7d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1f9043=>{_0x44d7e2(_0x1f9043[_0x14d7d8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x10744c=!0x0,_0xfb9cbc(_0x1f9043[_0x14d7d8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14d7d8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14d7d8([0x6c,0x6f,0x77])}),_0x4cdf78[_0x14d7d8([0x74,0x68,0x65,0x6e])](()=>{_0x10744c||_0x26a930(_0x14d7d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x117ab5(){return _0x5e56e9[_0x14d7d8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14d7d8([0x76,0x69,0x65,0x77])][_0x14d7d8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14d7d8([0x61,0x75,0x74,0x6f]);}function _0x4be3ab(){_0x5e56e9[_0x14d7d8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14d7d8([0x76,0x69,0x65,0x77])][_0x14d7d8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14d7d8([0x61,0x75,0x74,0x6f]);}}function _0x30c4d4(_0x5234d9){const _0x5173ed=[new window[(_0x14d7d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d8fbd=>setTimeout(_0x2d8fbd,0x737d6693^_0x4b00cb)),_0x4cdf78[_0x14d7d8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14d7d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26698e=>{let _0x2f3097=0x0;_0x5e56e9[_0x14d7d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x14d7d8([0x6f,0x6e])](_0x14d7d8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x58a0f2,_0x22b4a5)=>{_0x22b4a5[0x0][_0x14d7d8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f3097++,_0x2f3097==(0x73745db7^_0x4b00cb)&&(_0x26698e(),_0x58a0f2[_0x14d7d8([0x6f,0x66,0x66])]());});}))];return window[_0x14d7d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14d7d8([0x72,0x61,0x63,0x65])](_0x5173ed)[_0x14d7d8([0x74,0x68,0x65,0x6e])](()=>_0x5234d9);}async function _0x33672b(){await _0x4cdf78,_0x5e56e9[_0x14d7d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x14d7d8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b6e1e,_0x5e56e9[_0x14d7d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x14d7d8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b6e1e,_0x5e56e9[_0x14d7d8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14d7d8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x42ca81(){return window[_0x14d7d8([0x67,0x6c,0x6f,0x62])]&&window[_0x14d7d8([0x67,0x6c,0x6f,0x62])][_0x14d7d8([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x32f7c0(_0x1c41cc){const _0x6bd653=_0x399a82();_0x5e56e9[_0x6bd653]=_0x14d7d8([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])+_0x1c41cc,_0x1c41cc!=_0x14d7d8([0x56,0x61,0x6c,0x69,0x64])&&_0x33672b();}function _0x399a82(){const _0x2475d3=window[_0x14d7d8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14d7d8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14d7d8([0x6e,0x6f,0x77])]())[_0x14d7d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14d7d8([0x2e]),'');let _0x265dc0=_0x14d7d8([0x73]);for(let _0x1a21bf=0x0;_0x1a21bf<_0x2475d3[_0x14d7d8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a21bf+=0x2){let _0x4d8b18=window[_0x14d7d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2475d3[_0x14d7d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a21bf,_0x1a21bf+0x2));_0x4d8b18>=_0x1318a9[_0x14d7d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d8b18-=_0x1318a9[_0x14d7d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x265dc0+=_0x1318a9[_0x4d8b18];}return _0x265dc0;}function _0x1a2bc6(){const _0x588bdb=_0x5d2501[_0x14d7d8([0x73,0x70,0x6c,0x69,0x74])](_0x14d7d8([0x2e]));if(0x3!=_0x588bdb[_0x14d7d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x417266(_0x588bdb[0x1]);function _0x417266(_0x35fbd5){const _0x33564e=_0x31b67c(_0x35fbd5);return _0x33564e&&_0x19a1a8()?_0x33564e:null;function _0x19a1a8(){const _0x16df9c=_0x33564e[_0x14d7d8([0x6a,0x74,0x69])],_0x1d9053=window[_0x14d7d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16df9c[_0x14d7d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16df9c[_0x14d7d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5bb213={..._0x33564e,[_0x14d7d8([0x6a,0x74,0x69])]:_0x16df9c[_0x14d7d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x16df9c[_0x14d7d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5bb213[_0x14d7d8([0x76,0x63])],_0x2c57a8(_0x5bb213)==_0x1d9053;}}}async function _0x365ed5(){let _0x2142c5=!0x0;try{const _0x2c303d=_0x5d2501[_0x14d7d8([0x73,0x70,0x6c,0x69,0x74])](_0x14d7d8([0x2e])),[_0x20eb36,_0x78b18b,_0x413093]=_0x2c303d;return _0x1c2a8f(_0x20eb36),await _0x194b84(_0x20eb36,_0x78b18b,_0x413093),_0x2142c5;}catch{return!0x1;}function _0x1c2a8f(_0x1cf7d4){const _0x80a8ac=_0x31b67c(_0x1cf7d4);_0x80a8ac&&_0x80a8ac[_0x14d7d8([0x61,0x6c,0x67])]==_0x14d7d8([0x45,0x53,0x32,0x35,0x36])||(_0x2142c5=!0x1);}async function _0x194b84(_0x28726f,_0x19fb1f,_0x140b69){const _0x426ea5=window[_0x14d7d8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14d7d8([0x66,0x72,0x6f,0x6d])](_0x2c556a(_0x140b69),_0x166f6d=>_0x166f6d[_0x14d7d8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5321e3=new window[(_0x14d7d8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14d7d8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x28726f+_0x14d7d8([0x2e])+_0x19fb1f),_0x54e332=window[_0x14d7d8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14d7d8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x54e332)return;const _0x160a9d=await _0x54e332[_0x14d7d8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14d7d8([0x6a,0x77,0x6b]),_0x16c518,{[_0x14d7d8([0x6e,0x61,0x6d,0x65])]:_0x14d7d8([0x45,0x43,0x44,0x53,0x41]),[_0x14d7d8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14d7d8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14d7d8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x54e332[_0x14d7d8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14d7d8([0x6e,0x61,0x6d,0x65])]:_0x14d7d8([0x45,0x43,0x44,0x53,0x41]),[_0x14d7d8([0x68,0x61,0x73,0x68])]:{[_0x14d7d8([0x6e,0x61,0x6d,0x65])]:_0x14d7d8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x160a9d,_0x426ea5,_0x5321e3)||(_0x2142c5=!0x1);}}function _0x31b67c(_0x3dd5ce){return _0x3dd5ce[_0x14d7d8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14d7d8([0x65,0x79]))?JSON[_0x14d7d8([0x70,0x61,0x72,0x73,0x65])](_0x2c556a(_0x3dd5ce)):null;}function _0x2c556a(_0x23da33){return window[_0x14d7d8([0x61,0x74,0x6f,0x62])](_0x23da33[_0x14d7d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14d7d8([0x2b]))[_0x14d7d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14d7d8([0x2f])));}function _0x2c57a8(_0x8eb2e9){let _0x35edd1=0x1505;function _0x5b1f26(_0x46c68d){for(let _0x4b9599=0x0;_0x4b9599<_0x46c68d[_0x14d7d8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b9599++){const _0x286a40=_0x46c68d[_0x14d7d8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4b9599);_0x35edd1=(_0x35edd1<<0x5)+_0x35edd1+_0x286a40,_0x35edd1&=_0x35edd1;}}function _0x2f7f2b(_0x478bff){Array[_0x14d7d8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x478bff)?_0x478bff[_0x14d7d8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f7f2b):_0x478bff&&typeof _0x478bff==_0x14d7d8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14d7d8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x478bff)[_0x14d7d8([0x73,0x6f,0x72,0x74])]()[_0x14d7d8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x490496,_0x1c61f2])=>{_0x5b1f26(_0x490496),_0x2f7f2b(_0x1c61f2);}):_0x5b1f26(window[_0x14d7d8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x478bff));}return _0x2f7f2b(_0x8eb2e9),_0x35edd1>>>0x0;}function _0x3d2f86(_0x351d2e){return _0x351d2e[_0x14d7d8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14d7d8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14d7d8([0x30]));}function _0x4910dc(_0x4470cb){return _0x4470cb[_0x14d7d8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14d7d8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14d7d8([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b6e1e(){}function _0x14d7d8(_0x15ac94){return _0x15ac94['map'](_0x5ab735=>String['fromCharCode'](_0x5ab735))['join']('');}_0x32f7c0(await _0x368299());}(this);}}const O=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],E=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x2cf296=>Number(_0x2cf296)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function x(_0x192264){return O['includes'](_0x192264);}function b(_0x404689){return Array['from'](_0x404689['getStyleNames']())['filter'](x);}function F(_0x504b05,_0x496d5e,_0x4ba368){const {spanStyles:_0x30acd3,stylesToBeHtmlElements:_0x57abef}=P(_0x504b05,_0x4ba368);!function(_0x1a8543,_0x1f7886,_0x27fd9f){for(const _0x3d13e4 in _0x27fd9f){_0x27fd9f[_0x3d13e4]['forEach'](([,_0x10353f])=>{const _0xc72d06=_0x1f7886['createElement'](_0x10353f,[],_0x1a8543['getChildren']());_0x1f7886['insertChild'](0x0,_0xc72d06,_0x1a8543);}),_0x1f7886['removeStyle'](_0x3d13e4,_0x1a8543);}}(_0x504b05,_0x496d5e,_0x57abef),function(_0x1a4a72,_0xfc62cb,_0x4d7f93){if(!Object['keys'](_0x4d7f93)['length'])return;const _0x466fe3=_0xfc62cb['createElement']('span',[],_0x1a4a72['getChildren']());_0xfc62cb['setStyle'](_0x4d7f93,_0x466fe3),_0xfc62cb['insertChild'](0x0,_0x466fe3,_0x1a4a72),_0xfc62cb['removeStyle'](Object['keys'](_0x4d7f93),_0x1a4a72);}(_0x504b05,_0x496d5e,_0x30acd3);}function K(_0x2674ba,_0x4674ea,_0xe6a8d8){const {spanStyles:_0x154fae}=P(_0x2674ba,_0xe6a8d8),_0x39425a=Object['keys'](_0x154fae);if(!_0x39425a['length'])return;let _0x216b56=!0x1;for(const _0x48fa0c of _0x2674ba['getChildren']())if(_0x48fa0c['is']('element','span')){_0x216b56=!0x0;for(const [_0xe64c2b,_0x549630]of Object['entries'](_0x154fae))_0x48fa0c['hasStyle'](_0xe64c2b)||_0x4674ea['setStyle']({[_0xe64c2b]:_0x549630},_0x48fa0c);}_0x216b56&&_0x4674ea['removeStyle'](_0x39425a,_0x2674ba);}function P(_0x4eae21,_0x5be6b2){const _0x329ed6={},_0x429e80={};return _0x5be6b2['forEach'](_0x53a850=>{const _0x1764d4=_0x4eae21['getStyle'](_0x53a850);if(_0x1764d4){if(function(_0x41282c){return E['includes'](_0x41282c);}(_0x53a850))_0x329ed6[_0x53a850]=_0x1764d4;else{if(function(_0x331444){return _0x331444 in L;}(_0x53a850)){const _0x4eb5a7=_0x1764d4['split']('\x20');L[_0x53a850]['forEach'](([_0x446eab,_0x4d6745])=>{for(const _0x984d20 of _0x4eb5a7){('function'==typeof _0x446eab&&_0x446eab(_0x984d20)||_0x446eab===_0x984d20)&&(_0x429e80[_0x53a850]=[..._0x429e80[_0x53a850]||[],[_0x446eab,_0x4d6745]]);}});}}}}),{'spanStyles':_0x329ed6,'stylesToBeHtmlElements':_0x429e80};}class v extends _0x3952a6{['execute'](_0x4b3a42){const {body:_0x9f187b}=_0x4b3a42['_parsedData'],_0x34be76=new _0x5e71c4(_0x9f187b['document']),_0x24fdee=_0x34be76['createRangeIn'](_0x9f187b),_0x22d6a4=new _0x4e2020(_0x34be76['document']['stylesProcessor']),_0x52d233=[...new _0x41c1fb(_0x22d6a4)['blockElements'],'font'],_0x5f0923=_0x24fdee['getItems']();for(const _0x19aee5 of _0x5f0923)if(_0x19aee5['is']('element')&&_0x52d233['includes'](_0x19aee5['name'])){if(_0x19aee5['hasStyle']('mso-list')&&'none'!==_0x19aee5['getStyle']('mso-list')){K(_0x19aee5,_0x34be76,b(_0x19aee5));continue;}F(_0x19aee5,_0x34be76,b(_0x19aee5));}_0x4b3a42['content']=_0x9f187b;}['isActive'](_0x29eb6b){return super['isActive'](_0x29eb6b)||l(_0x29eb6b);}}class k extends _0x8b5719{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x472570];}['init'](){const _0xbc1730=this['editor'],_0xc6d480=_0xbc1730['plugins']['get']('ClipboardPipeline'),_0x21bc02=_0xbc1730['editing']['view']['document'],_0x4e6731=new v(_0x21bc02);_0xc6d480['on']('inputTransformation',(_0x1e497e,_0x28d3f2)=>{const _0x4fb224=_0x28d3f2['dataTransfer']['getData']('text/html');_0x4e6731['isActive'](_0x4fb224)&&(_0x28d3f2['_parsedData']||(_0x28d3f2['_parsedData']=_0xf5b303(_0x4fb224,_0x21bc02['stylesProcessor'])),_0x4e6731['execute'](_0x28d3f2));},{'priority':_0x211220['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4d1010=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa7648a;for(const _0x43be78 in _0x4d1010){const _0x3e7119=_0x43be78,_0x3d66fe=_0x4d1010[_0x3e7119];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x3d66fe||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x3d66fe||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x3d66fe||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x3d66fe||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x3d66fe||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x3d66fe||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x3d66fe){delete _0x4d1010[_0x3e7119],_0xa7648a=_0x3d66fe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0xa7648a&&_0x4d1010['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0xa7648a&&_0x4d1010['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0xa7648a&&_0x4d1010['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0xa7648a&&_0x4d1010['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0xa7648a&&_0x4d1010['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0xa7648a&&_0x4d1010['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class j extends _0x8b5719{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x472570,h,k];}}export{j as PasteFromOfficeEnhanced};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module paste-from-office-enhanced/normalizers/
|
|
6
|
+
* @module paste-from-office-enhanced/normalizers/inliner/utils
|
|
7
7
|
*/
|
|
8
8
|
import { type ViewElement } from '@ckeditor/ckeditor5-engine';
|
|
9
9
|
type StyleSelector = string;
|
|
@@ -106,6 +106,26 @@ export declare function parseCSSStyleDeclaration(declaration: CSSStyleDeclaratio
|
|
|
106
106
|
* @returns
|
|
107
107
|
*/
|
|
108
108
|
export declare function parseCSSSelector(selector: string): Array<ParsedCSSSelector>;
|
|
109
|
+
/**
|
|
110
|
+
* Extracts `mso-pattern` background colors from raw CSS text (`stylesString`).
|
|
111
|
+
*
|
|
112
|
+
* Browsers silently discard `mso-*` vendor properties during CSS parsing, so the browser-parsed
|
|
113
|
+
* `CSSStyleSheet` objects never contain `mso-pattern` values. This function parses the raw CSS text
|
|
114
|
+
* to extract pattern colors from class-scoped rules.
|
|
115
|
+
*
|
|
116
|
+
* Returns a mapping of class names to their pattern colors (e.g., `{ xl65: '#4EA72E' }`).
|
|
117
|
+
*
|
|
118
|
+
* Conditions for synthesizing a background-color:
|
|
119
|
+
* - `mso-pattern: auto` (no pattern set) — skipped (single value doesn't match the regex).
|
|
120
|
+
* - `mso-pattern: <color> none` — skipped (pattern explicitly off).
|
|
121
|
+
* - `mso-pattern: <color> auto` — skipped (no pattern).
|
|
122
|
+
* - `mso-pattern: auto none` — skipped (color is `auto`).
|
|
123
|
+
* - `mso-pattern: <color> <pattern-type>` where pattern type is not `none`/`auto` — extracted.
|
|
124
|
+
*
|
|
125
|
+
* @param stylesString Raw CSS text from `data._parsedData.stylesString`.
|
|
126
|
+
* @returns A record mapping class names to their `mso-pattern` color values.
|
|
127
|
+
*/
|
|
128
|
+
export declare function extractMsoPatternBackgroundColors(stylesString: string): Record<string, string>;
|
|
109
129
|
/**
|
|
110
130
|
* Flattens multiple style definitions considering their order to simulate a CSS cascade.
|
|
111
131
|
*
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* @module paste-from-office-enhanced/normalizers/
|
|
6
|
+
* @module paste-from-office-enhanced/normalizers/propagator/utils
|
|
7
7
|
*/
|
|
8
8
|
import type { ViewUpcastWriter, ViewElement } from '@ckeditor/ckeditor5-engine';
|
|
9
9
|
/**
|
|
@@ -76,6 +76,26 @@ export declare function propagateStyleProperties(element: ViewElement, writer: V
|
|
|
76
76
|
* @param stylesToBeHtmlElements List of styles properties to be propagated as a HTML elements.
|
|
77
77
|
*/
|
|
78
78
|
export declare function propagateStylesAsHTMLElements(element: ViewElement, writer: ViewUpcastWriter, stylesToBeHtmlElements: Partial<typeof CSS_PROPERTIES_TO_BE_HTML_ELEMENTS>): void;
|
|
79
|
+
/**
|
|
80
|
+
* Propagates span styles from a block element to its existing direct `<span>` children, instead of
|
|
81
|
+
* creating a new wrapper `<span>`. Use this for list-item paragraphs where adding a wrapper would
|
|
82
|
+
* shift the span depth and break `findListMarkerNode()` bullet detection. See #6129.
|
|
83
|
+
*
|
|
84
|
+
* HTML-element style properties (`font-weight`, `font-style`, and similar) are intentionally not
|
|
85
|
+
* propagated here — promoting them would require wrapping children in `<strong>`, `<em>`, etc.,
|
|
86
|
+
* which shifts span depth just as much as `propagateStylesAsSpan()` and defeats the purpose.
|
|
87
|
+
*
|
|
88
|
+
* In practice this is safe because Word does not emit `font-weight` / `font-style` / `text-decoration`
|
|
89
|
+
* directly on list-item `<p>` elements — those styles live on inner `<span>` character-style wrappers,
|
|
90
|
+
* which are preserved untouched. They could only land on the `<p>` via a class-based rule like
|
|
91
|
+
* `p.MsoListParagraph { font-weight: bold }` promoted by `MSOfficeStylesInliner`, which standard
|
|
92
|
+
* Word HTML does not produce.
|
|
93
|
+
*
|
|
94
|
+
* @param element The source `ViewElement`.
|
|
95
|
+
* @param writer `ViewUpcastWriter` instance.
|
|
96
|
+
* @param propertiesToPropagate List of valid CSS properties to propagate.
|
|
97
|
+
*/
|
|
98
|
+
export declare function propagateSpanStylesToExistingChildren(element: ViewElement, writer: ViewUpcastWriter, propertiesToPropagate: Array<string>): void;
|
|
79
99
|
/**
|
|
80
100
|
* Creates a `span` as a first child of the `element` with styles propagated from parent block element.
|
|
81
101
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-paste-from-office-enhanced",
|
|
3
|
-
"version": "48.0.1",
|
|
3
|
+
"version": "48.1.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.0.1",
|
|
35
|
-
"@ckeditor/ckeditor5-core": "48.0.1",
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "48.0.1",
|
|
37
|
-
"@ckeditor/ckeditor5-paste-from-office": "48.0.1",
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "48.0.1"
|
|
34
|
+
"@ckeditor/ckeditor5-clipboard": "48.1.0-alpha.1",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.1.0-alpha.1",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.1.0-alpha.1",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.1.0-alpha.1",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.1"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|