@ckeditor/ckeditor5-paste-from-office-enhanced 48.0.1 → 48.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _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 _0x3149bb}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x6cade5,PasteFromOffice as _0x386031,parsePasteOfficeHtml as _0x2c554c}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x3af9bc,uid as _0x111b74}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x59bc58,ViewDocument as _0x3eb9d7,ViewDomConverter as _0x547a7e}from'@ckeditor/ckeditor5-engine/dist/index.js';const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x5ed979){return a['test'](_0x5ed979);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x4e42ce,_0x2898f3){const _0x4b070c=new Map();for(const [_0xc808ca,_0x3a6cc0]of _0x2898f3){if(!_0xc808ca['tagName']&&!_0xc808ca['className'])continue;const _0x41f81b=!_0xc808ca['tagName']||_0x4e42ce['name']===_0xc808ca['tagName'],_0x131c15=!_0xc808ca['className']||_0x4e42ce['hasClass'](_0xc808ca['className']);_0x41f81b&&_0x131c15&&_0x4b070c['set'](_0xc808ca,_0x3a6cc0);}return _0x4b070c;}function m(_0x169be5){const _0x372c16={};for(let _0x23158b=0x0;_0x23158b<_0x169be5['length'];_0x23158b++){const _0x43c9d2=_0x169be5[_0x23158b],_0x28da91=_0x169be5['getPropertyValue'](_0x43c9d2);'initial'!==_0x28da91&&(_0x372c16[_0x43c9d2]=_0x28da91);}return _0x372c16;}function p(_0x1d7eab){const _0x3f2a3f=_0x1d7eab['split'](',')['map'](_0x182b02=>_0x182b02['trim']()),_0x4d0fca=[];for(const _0x22ed3b of _0x3f2a3f){const _0x2da4a7=d['exec'](_0x22ed3b);_0x2da4a7&&_0x4d0fca['push'](_0x2da4a7['groups']);}return _0x4d0fca;}function y(_0x1e5578){const _0x3b4c5a={};for(const _0x2a109d of _0x1e5578)Object['assign'](_0x3b4c5a,_0x2a109d);return _0x3b4c5a;}class g extends _0x6cade5{['execute'](_0x40d58e){const {body:_0x1de6f7,styles:_0x13dcf8,stylesString:_0xe21d28}=_0x40d58e['_parsedData'],_0xa5ad9f=new _0x59bc58(_0x1de6f7['document']),_0xfc67da=_0xa5ad9f['createRangeIn'](_0x1de6f7),_0x7bbaa6=function(_0x20428c){const _0x103769={};for(const _0x5d476d of _0x20428c)for(const _0x4f4031 of _0x5d476d['cssRules'])if(_0x4f4031 instanceof CSSStyleRule){const _0x2e786a=m(_0x4f4031['style']);_0x103769[_0x4f4031['selectorText']]=Object['assign']({},_0x103769[_0x4f4031['selectorText']]||{},_0x2e786a);}return _0x103769;}(_0x13dcf8),_0x4b6fcd=function(_0xdd630e){const _0x27e50e=new Map();for(const _0x59437f in _0xdd630e){const _0x4f50ba=p(_0x59437f),_0xf3cab2=_0xdd630e[_0x59437f];for(const _0x5309d6 of _0x4f50ba)_0x27e50e['set'](_0x5309d6,_0xf3cab2);}return _0x27e50e;}(_0x7bbaa6),_0x1db876=function(_0x254ee6){const _0x42f526={},_0x3ecccc=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x25e4c3=/\.(?<className>[\w-]+)/g;let _0x588b52;for(;null!==(_0x588b52=_0x3ecccc['exec'](_0x254ee6));){const {selector:_0x27b298,color:_0x380223,patternType:_0x4bf198}=_0x588b52['groups'];if('auto'!==_0x380223['toLowerCase']()&&'none'!==_0x4bf198['toLowerCase']()&&'auto'!==_0x4bf198['toLowerCase']()){for(const _0x18da62 of _0x27b298['matchAll'](_0x25e4c3))_0x42f526[_0x18da62['groups']['className']]=_0x380223;}}return _0x42f526;}(_0xe21d28);for(const _0x201ceb of _0xfc67da){if('elementStart'!==_0x201ceb['type'])continue;const _0x54ffd6=_0x201ceb['item'],_0x22f656=w(_0x54ffd6,_0x4b6fcd),_0x10f648=_0x22f656['size']?y(Array['from'](_0x22f656['values']())):{};if(!('background-color'in _0x10f648)&&!('background'in _0x10f648)){for(const [_0x347897,_0x486268]of Object['entries'](_0x1db876))if(_0x54ffd6['hasClass'](_0x347897)){_0x10f648['background-color']=_0x486268;break;}}for(const _0x291424 in _0x10f648)_0x54ffd6['hasStyle'](_0x291424)||_0xa5ad9f['setStyle'](_0x291424,_0x10f648[_0x291424],_0x54ffd6);}_0x40d58e['content']=_0x1de6f7;}['isActive'](_0x15cc9d){return super['isActive'](_0x15cc9d)||l(_0x15cc9d);}}class h extends _0x3149bb{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x386031];}['init'](){const _0xfc2069=this['editor'],_0x31dc40=_0xfc2069['plugins']['get']('ClipboardPipeline'),_0x8cdcdb=_0xfc2069['editing']['view']['document'],_0x5418f9=new g(_0x8cdcdb);_0x31dc40['on']('inputTransformation',(_0x4a8d7f,_0x47efc9)=>{const _0x174bb1=_0x47efc9['dataTransfer']['getData']('text/html');_0x5418f9['isActive'](_0x174bb1)&&(_0x47efc9['_parsedData']||(_0x47efc9['_parsedData']=_0x2c554c(_0x174bb1,_0x8cdcdb['stylesProcessor'])),_0x5418f9['execute'](_0x47efc9));},{'priority':_0x3af9bc['get']('high')+0xb});}['afterInit'](){!async function(_0x5e395c){const _0x529a79=_0x4244a9([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]),_0x5174f5=0x7374585f,_0x573185=0x7373d117^_0x5174f5,_0x5cd4a1=window[_0x4244a9([0x44,0x61,0x74,0x65])][_0x4244a9([0x6e,0x6f,0x77])](),_0x1cce59=_0x5e395c[_0x4244a9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d3e9f=new window[(_0x4244a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34ba4a=>{_0x1cce59[_0x4244a9([0x6f,0x6e,0x63,0x65])](_0x4244a9([0x72,0x65,0x61,0x64,0x79]),_0x34ba4a);}),_0x3f9f42={[_0x4244a9([0x6b,0x74,0x79])]:_0x4244a9([0x45,0x43]),[_0x4244a9([0x75,0x73,0x65])]:_0x4244a9([0x73,0x69,0x67]),[_0x4244a9([0x63,0x72,0x76])]:_0x4244a9([0x50,0x2d,0x32,0x35,0x36]),[_0x4244a9([0x78])]:_0x4244a9([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]),[_0x4244a9([0x79])]:_0x4244a9([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]),[_0x4244a9([0x61,0x6c,0x67])]:_0x4244a9([0x45,0x53,0x32,0x35,0x36])},_0x5348d2=_0x1cce59[_0x4244a9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4244a9([0x67,0x65,0x74])](_0x4244a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x12bd1b(){let _0x35dacc,_0x113629=null,_0x592f99=null;try{if(_0x5348d2==_0x4244a9([0x47,0x50,0x4c]))return _0x4244a9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35dacc=_0x1e1d5c(),!_0x35dacc)return _0x4244a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35dacc[_0x4244a9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x592f99=_0x515cc4(_0x35dacc[_0x4244a9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35dacc[_0x4244a9([0x6a,0x74,0x69])])),await _0x413a04()?_0x109875()?_0xa9fb2()?_0x4244a9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x19404e()?(_0x35dacc[_0x4244a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4244a9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x113629=_0x43aae6(_0x4244a9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x87a498()):_0x4244a9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4244a9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4244a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4244a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xa9fb2(){const _0x513186=[_0x4244a9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4244a9([0x74,0x72,0x69,0x61,0x6c])][_0x4244a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35dacc[_0x4244a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5cd4a1/0x3e8:0xe10*_0x573185;return _0x35dacc[_0x4244a9([0x65,0x78,0x70])]<_0x513186;}function _0x109875(){const _0x970766=_0x35dacc[_0x4244a9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x970766&&(!!_0x970766[_0x4244a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4244a9([0x2a]))||(!!_0x970766[_0x4244a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4244a9([0x50,0x4f,0x45]))||(!!_0x970766[_0x4244a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4244a9([0x50,0x50]))||!(!_0x970766[_0x4244a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4244a9([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x494256()))));}function _0x19404e(){const _0x5f144d=_0x35dacc[_0x4244a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5f144d||0x0==_0x5f144d[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2f3f62}=new URL(window[_0x4244a9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5f144d[_0x4244a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f3f62))return!0x0;const _0x42aec8=_0x2f3f62[_0x4244a9([0x73,0x70,0x6c,0x69,0x74])](_0x4244a9([0x2e]));return _0x5f144d[_0x4244a9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x219c7b=>_0x219c7b[_0x4244a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4244a9([0x2a])))[_0x4244a9([0x6d,0x61,0x70])](_0x441258=>_0x441258[_0x4244a9([0x73,0x70,0x6c,0x69,0x74])](_0x4244a9([0x2e])))[_0x4244a9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a4a1d=>_0x1a4a1d[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x42aec8[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4244a9([0x6d,0x61,0x70])](_0x27af7a=>Array(_0x42aec8[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x27af7a[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4244a9([0x66,0x69,0x6c,0x6c])](_0x27af7a[0x0]===_0x4244a9([0x2a])?_0x4244a9([0x2a]):'')[_0x4244a9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x27af7a))[_0x4244a9([0x73,0x6f,0x6d,0x65])](_0x20a66c=>_0x42aec8[_0x4244a9([0x65,0x76,0x65,0x72,0x79])]((_0x354610,_0x1b0b64)=>_0x20a66c[_0x1b0b64]===_0x354610||_0x20a66c[_0x1b0b64]===_0x4244a9([0x2a])));}function _0x87a498(){return _0x113629&&_0x592f99?new window[(_0x4244a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4afda2,_0x290dfc)=>{_0x113629[_0x4244a9([0x74,0x68,0x65,0x6e])](_0x4afda2,_0x290dfc),_0x592f99[_0x4244a9([0x74,0x68,0x65,0x6e])](_0x100815=>{_0x100815!=_0x4244a9([0x56,0x61,0x6c,0x69,0x64])&&_0x4afda2(_0x100815);},_0x290dfc);}):_0x113629||_0x592f99||_0x4244a9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x515cc4(_0xc9d09a,_0x56d269){return new window[(_0x4244a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1de86e=>{if(_0x46f4d4())return _0x1de86e(_0x4244a9([0x56,0x61,0x6c,0x69,0x64]));_0x3da3fb(),_0x1cce59[_0x4244a9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4244a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3151d=!0x1;const _0xd8373d=_0x111b74();function _0x23708e(_0x4f9568){return!!_0x4f9568&&(typeof _0x4f9568===_0x4244a9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f9568===_0x4244a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f9568[_0x4244a9([0x74,0x68,0x65,0x6e])]===_0x4244a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f9568[_0x4244a9([0x63,0x61,0x74,0x63,0x68])]===_0x4244a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ee1e8(_0x5d0ffc){_0x17b071(_0x5d0ffc)[_0x4244a9([0x74,0x68,0x65,0x6e])](_0x5f19a6=>{if(!_0x5f19a6||_0x5f19a6[_0x4244a9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4244a9([0x6f,0x6b]))return _0x4244a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x27bc1c(_0x572640(_0xd8373d+_0x56d269))!=_0x5f19a6[_0x4244a9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4244a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4244a9([0x56,0x61,0x6c,0x69,0x64]);})[_0x4244a9([0x74,0x68,0x65,0x6e])](_0x84dfa2=>(_0x4f233b(),_0x84dfa2),()=>{const _0x33fa89=_0x5ae235();return null==_0x33fa89?(_0x4f233b(),_0x4244a9([0x56,0x61,0x6c,0x69,0x64])):_0x4244a9(_0x5cd4a1-_0x33fa89>(0x5778dc5f^_0x5174f5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4244a9([0x74,0x68,0x65,0x6e])](_0x1de86e)[_0x4244a9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1de86e(_0x4244a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27d094=0x7342b6df^_0x5174f5;function _0x4f233b(){const _0x578d9d=_0x4244a9([0x6c,0x6c,0x63,0x74,0x2d])+_0x27bc1c(_0x572640(_0xc9d09a)),_0x19bd8d=_0x4ca842(_0x27bc1c(window[_0x4244a9([0x4d,0x61,0x74,0x68])][_0x4244a9([0x63,0x65,0x69,0x6c])](_0x5cd4a1/_0x27d094)));window[_0x4244a9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4244a9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x578d9d,_0x19bd8d);}function _0x5ae235(){const _0x29ff00=_0x4244a9([0x6c,0x6c,0x63,0x74,0x2d])+_0x27bc1c(_0x572640(_0xc9d09a)),_0x1952af=window[_0x4244a9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4244a9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29ff00);return _0x1952af?window[_0x4244a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ca842(_0x1952af),0x10)*_0x27d094:null;}function _0x17b071(_0xf5e293){return new window[(_0x4244a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4beee9,_0x2805d9)=>{_0xf5e293[_0x4244a9([0x74,0x68,0x65,0x6e])](_0x4beee9,_0x2805d9),window[_0x4244a9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2805d9,0x73758c9f^_0x5174f5);});}}_0x1cce59[_0x4244a9([0x6f,0x6e])](_0x4244a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2caab6,_0x2f5d73)=>{if(_0x2f5d73[0x0]!=_0xc9d09a)return _0x1de86e(_0x4244a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f5d73[0x1]={..._0x2f5d73[0x1],[_0x4244a9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd8373d};},{[_0x4244a9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4244a9([0x68,0x69,0x67,0x68])}),_0x1cce59[_0x4244a9([0x6f,0x6e])](_0x4244a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f2798=>{_0x23708e(_0x4f2798[_0x4244a9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3151d=!0x0,_0x4ee1e8(_0x4f2798[_0x4244a9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4244a9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4244a9([0x6c,0x6f,0x77])}),_0x2d3e9f[_0x4244a9([0x74,0x68,0x65,0x6e])](()=>{_0x3151d||_0x1de86e(_0x4244a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x46f4d4(){return _0x1cce59[_0x4244a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4244a9([0x76,0x69,0x65,0x77])][_0x4244a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4244a9([0x61,0x75,0x74,0x6f]);}function _0x3da3fb(){_0x1cce59[_0x4244a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4244a9([0x76,0x69,0x65,0x77])][_0x4244a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4244a9([0x61,0x75,0x74,0x6f]);}}function _0x43aae6(_0x32ff8b){const _0x10180a=[new window[(_0x4244a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6d2055=>setTimeout(_0x6d2055,0x737d6693^_0x5174f5)),_0x2d3e9f[_0x4244a9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4244a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x790e3d=>{let _0x186619=0x0;_0x1cce59[_0x4244a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4244a9([0x6f,0x6e])](_0x4244a9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1108d7,_0x5846cc)=>{_0x5846cc[0x0][_0x4244a9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x186619++,_0x186619==(0x73745db7^_0x5174f5)&&(_0x790e3d(),_0x1108d7[_0x4244a9([0x6f,0x66,0x66])]());});}))];return window[_0x4244a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4244a9([0x72,0x61,0x63,0x65])](_0x10180a)[_0x4244a9([0x74,0x68,0x65,0x6e])](()=>_0x32ff8b);}async function _0xc9bba9(){await _0x2d3e9f,_0x1cce59[_0x4244a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4244a9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x398ce7,_0x1cce59[_0x4244a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4244a9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x398ce7,_0x1cce59[_0x4244a9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4244a9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x494256(){return window[_0x4244a9([0x67,0x6c,0x6f,0x62])]&&window[_0x4244a9([0x67,0x6c,0x6f,0x62])][_0x4244a9([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x448a5d(_0x237b29){const _0x594b1b=_0xf3d65a();_0x1cce59[_0x594b1b]=_0x4244a9([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])+_0x237b29,_0x237b29!=_0x4244a9([0x56,0x61,0x6c,0x69,0x64])&&_0xc9bba9();}function _0xf3d65a(){const _0x595dca=window[_0x4244a9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4244a9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4244a9([0x6e,0x6f,0x77])]())[_0x4244a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4244a9([0x2e]),'');let _0x3f8c44=_0x4244a9([0x73]);for(let _0x145725=0x0;_0x145725<_0x595dca[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x145725+=0x2){let _0xd54484=window[_0x4244a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x595dca[_0x4244a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x145725,_0x145725+0x2));_0xd54484>=_0x529a79[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xd54484-=_0x529a79[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f8c44+=_0x529a79[_0xd54484];}return _0x3f8c44;}function _0x1e1d5c(){const _0x14293c=_0x5348d2[_0x4244a9([0x73,0x70,0x6c,0x69,0x74])](_0x4244a9([0x2e]));if(0x3!=_0x14293c[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1c352e(_0x14293c[0x1]);function _0x1c352e(_0x72081a){const _0x5bbbba=_0x347b25(_0x72081a);return _0x5bbbba&&_0x35ae29()?_0x5bbbba:null;function _0x35ae29(){const _0x1606d6=_0x5bbbba[_0x4244a9([0x6a,0x74,0x69])],_0x17b60e=window[_0x4244a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1606d6[_0x4244a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1606d6[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b65ce={..._0x5bbbba,[_0x4244a9([0x6a,0x74,0x69])]:_0x1606d6[_0x4244a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1606d6[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b65ce[_0x4244a9([0x76,0x63])],_0x572640(_0x2b65ce)==_0x17b60e;}}}async function _0x413a04(){let _0x349475=!0x0;try{const _0x1f5a2b=_0x5348d2[_0x4244a9([0x73,0x70,0x6c,0x69,0x74])](_0x4244a9([0x2e])),[_0x3a4fda,_0x245e4f,_0x367cf4]=_0x1f5a2b;return _0x11767a(_0x3a4fda),await _0x34251b(_0x3a4fda,_0x245e4f,_0x367cf4),_0x349475;}catch{return!0x1;}function _0x11767a(_0x468b9b){const _0x24a363=_0x347b25(_0x468b9b);_0x24a363&&_0x24a363[_0x4244a9([0x61,0x6c,0x67])]==_0x4244a9([0x45,0x53,0x32,0x35,0x36])||(_0x349475=!0x1);}async function _0x34251b(_0x30b74c,_0x420d02,_0x391b38){const _0x25198e=window[_0x4244a9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4244a9([0x66,0x72,0x6f,0x6d])](_0x4c18df(_0x391b38),_0x3b3bc0=>_0x3b3bc0[_0x4244a9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x25bc93=new window[(_0x4244a9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4244a9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x30b74c+_0x4244a9([0x2e])+_0x420d02),_0x70a575=window[_0x4244a9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4244a9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x70a575)return;const _0x480b99=await _0x70a575[_0x4244a9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4244a9([0x6a,0x77,0x6b]),_0x3f9f42,{[_0x4244a9([0x6e,0x61,0x6d,0x65])]:_0x4244a9([0x45,0x43,0x44,0x53,0x41]),[_0x4244a9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4244a9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4244a9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x70a575[_0x4244a9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4244a9([0x6e,0x61,0x6d,0x65])]:_0x4244a9([0x45,0x43,0x44,0x53,0x41]),[_0x4244a9([0x68,0x61,0x73,0x68])]:{[_0x4244a9([0x6e,0x61,0x6d,0x65])]:_0x4244a9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x480b99,_0x25198e,_0x25bc93)||(_0x349475=!0x1);}}function _0x347b25(_0xe6ad77){return _0xe6ad77[_0x4244a9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4244a9([0x65,0x79]))?JSON[_0x4244a9([0x70,0x61,0x72,0x73,0x65])](_0x4c18df(_0xe6ad77)):null;}function _0x4c18df(_0x1c3a0f){return window[_0x4244a9([0x61,0x74,0x6f,0x62])](_0x1c3a0f[_0x4244a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4244a9([0x2b]))[_0x4244a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4244a9([0x2f])));}function _0x572640(_0x46039c){let _0x15afc0=0x1505;function _0x557603(_0x1bd2f3){for(let _0xd8dda=0x0;_0xd8dda<_0x1bd2f3[_0x4244a9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd8dda++){const _0x549eaf=_0x1bd2f3[_0x4244a9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xd8dda);_0x15afc0=(_0x15afc0<<0x5)+_0x15afc0+_0x549eaf,_0x15afc0&=_0x15afc0;}}function _0x16b28f(_0x522a15){Array[_0x4244a9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x522a15)?_0x522a15[_0x4244a9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x16b28f):_0x522a15&&typeof _0x522a15==_0x4244a9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4244a9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x522a15)[_0x4244a9([0x73,0x6f,0x72,0x74])]()[_0x4244a9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e8ad2,_0x23eb7f])=>{_0x557603(_0x5e8ad2),_0x16b28f(_0x23eb7f);}):_0x557603(window[_0x4244a9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x522a15));}return _0x16b28f(_0x46039c),_0x15afc0>>>0x0;}function _0x27bc1c(_0x1c13c9){return _0x1c13c9[_0x4244a9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4244a9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4244a9([0x30]));}function _0x4ca842(_0x2a022c){return _0x2a022c[_0x4244a9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4244a9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4244a9([0x6a,0x6f,0x69,0x6e])]('');}function _0x398ce7(){}function _0x4244a9(_0x40b65f){return _0x40b65f['map'](_0x44be2d=>String['fromCharCode'](_0x44be2d))['join']('');}_0x448a5d(await _0x12bd1b());}(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'],[_0x4da184=>Number(_0x4da184)>=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(_0x50e0e6){return O['includes'](_0x50e0e6);}function b(_0x4babbe){return Array['from'](_0x4babbe['getStyleNames']())['filter'](x);}function F(_0xf594e6,_0x1d34d6,_0x40515a){const {spanStyles:_0x243e56,stylesToBeHtmlElements:_0x29239b}=P(_0xf594e6,_0x40515a);!function(_0x5f1831,_0x26943a,_0x2c7bd8){for(const _0x36e2fe in _0x2c7bd8){_0x2c7bd8[_0x36e2fe]['forEach'](([,_0x2c0609])=>{const _0x224282=_0x26943a['createElement'](_0x2c0609,[],_0x5f1831['getChildren']());_0x26943a['insertChild'](0x0,_0x224282,_0x5f1831);}),_0x26943a['removeStyle'](_0x36e2fe,_0x5f1831);}}(_0xf594e6,_0x1d34d6,_0x29239b),function(_0x543d20,_0x278dec,_0x5d5333){if(!Object['keys'](_0x5d5333)['length'])return;const _0x110467=_0x278dec['createElement']('span',[],_0x543d20['getChildren']());_0x278dec['setStyle'](_0x5d5333,_0x110467),_0x278dec['insertChild'](0x0,_0x110467,_0x543d20),_0x278dec['removeStyle'](Object['keys'](_0x5d5333),_0x543d20);}(_0xf594e6,_0x1d34d6,_0x243e56);}function K(_0x32bbf8,_0x3c1c21,_0xcdb6e5){const {spanStyles:_0x11afff}=P(_0x32bbf8,_0xcdb6e5),_0x47f6d5=Object['keys'](_0x11afff);if(!_0x47f6d5['length'])return;let _0x261823=!0x1;for(const _0xc120fa of _0x32bbf8['getChildren']())if(_0xc120fa['is']('element','span')){_0x261823=!0x0;for(const [_0x89fd64,_0x528a6c]of Object['entries'](_0x11afff))_0xc120fa['hasStyle'](_0x89fd64)||_0x3c1c21['setStyle']({[_0x89fd64]:_0x528a6c},_0xc120fa);}_0x261823&&_0x3c1c21['removeStyle'](_0x47f6d5,_0x32bbf8);}function P(_0x5c6030,_0x3dff10){const _0x974f30={},_0x19e767={};return _0x3dff10['forEach'](_0x4a4c69=>{const _0x20e6cf=_0x5c6030['getStyle'](_0x4a4c69);if(_0x20e6cf){if(function(_0x4f595f){return E['includes'](_0x4f595f);}(_0x4a4c69))_0x974f30[_0x4a4c69]=_0x20e6cf;else{if(function(_0x15538f){return _0x15538f in L;}(_0x4a4c69)){const _0x4fa39e=_0x20e6cf['split']('\x20');L[_0x4a4c69]['forEach'](([_0x5811e4,_0xfddf64])=>{for(const _0x4a9b93 of _0x4fa39e){('function'==typeof _0x5811e4&&_0x5811e4(_0x4a9b93)||_0x5811e4===_0x4a9b93)&&(_0x19e767[_0x4a4c69]=[..._0x19e767[_0x4a4c69]||[],[_0x5811e4,_0xfddf64]]);}});}}}}),{'spanStyles':_0x974f30,'stylesToBeHtmlElements':_0x19e767};}class v extends _0x6cade5{['execute'](_0x35c1ca){const {body:_0x131fbd}=_0x35c1ca['_parsedData'],_0x10ee0b=new _0x59bc58(_0x131fbd['document']),_0x303dc9=_0x10ee0b['createRangeIn'](_0x131fbd),_0x16bed7=new _0x3eb9d7(_0x10ee0b['document']['stylesProcessor']),_0x19651a=[...new _0x547a7e(_0x16bed7)['blockElements'],'font'],_0x2a5a16=_0x303dc9['getItems']();for(const _0x5aa242 of _0x2a5a16)if(_0x5aa242['is']('element')&&_0x19651a['includes'](_0x5aa242['name'])){if(_0x5aa242['hasStyle']('mso-list')&&'none'!==_0x5aa242['getStyle']('mso-list')){K(_0x5aa242,_0x10ee0b,b(_0x5aa242));continue;}F(_0x5aa242,_0x10ee0b,b(_0x5aa242));}_0x35c1ca['content']=_0x131fbd;}['isActive'](_0x4928a9){return super['isActive'](_0x4928a9)||l(_0x4928a9);}}class k extends _0x3149bb{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x386031];}['init'](){const _0x2469fa=this['editor'],_0x3180e1=_0x2469fa['plugins']['get']('ClipboardPipeline'),_0x51382c=_0x2469fa['editing']['view']['document'],_0x57e58a=new v(_0x51382c);_0x3180e1['on']('inputTransformation',(_0xc2b9e4,_0x34ce64)=>{const _0x427a39=_0x34ce64['dataTransfer']['getData']('text/html');_0x57e58a['isActive'](_0x427a39)&&(_0x34ce64['_parsedData']||(_0x34ce64['_parsedData']=_0x2c554c(_0x427a39,_0x51382c['stylesProcessor'])),_0x57e58a['execute'](_0x34ce64));},{'priority':_0x3af9bc['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1193e4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x43ec41;for(const _0x5eecb5 in _0x1193e4){const _0x153cd4=_0x5eecb5,_0x371ca5=_0x1193e4[_0x153cd4];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x371ca5||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x371ca5||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x371ca5||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x371ca5||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x371ca5||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x371ca5||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x371ca5){delete _0x1193e4[_0x153cd4],_0x43ec41=_0x371ca5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x43ec41&&_0x1193e4['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x43ec41&&_0x1193e4['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x43ec41&&_0x1193e4['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x43ec41&&_0x1193e4['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x43ec41&&_0x1193e4['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x43ec41&&_0x1193e4['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class j extends _0x3149bb{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x386031,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.
|
|
3
|
+
"version": "48.1.0-alpha.0",
|
|
4
4
|
"description": "Enhanced paste from Office feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"./package.json": "./package.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ckeditor/ckeditor5-clipboard": "48.0.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "48.0.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "48.0.
|
|
37
|
-
"@ckeditor/ckeditor5-paste-from-office": "48.0.
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "48.0.
|
|
34
|
+
"@ckeditor/ckeditor5-clipboard": "48.1.0-alpha.0",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.1.0-alpha.0",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.1.0-alpha.0",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.1.0-alpha.0",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.1.0-alpha.0"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|