@ckeditor/ckeditor5-paste-from-office-enhanced 48.8.1-alpha.0 → 48.8.1-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 +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x37268f}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x2cf6d0,PasteFromOffice as _0x5bdedb,parsePasteOfficeHtml as _0x23b8f7}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x1835ab,uid as _0x55385e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x25ac03,ViewDocument as _0x28494d,ViewDomConverter as _0x2a231f}from'@ckeditor/ckeditor5-engine/dist/index.js';const u=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x354335){return u['test'](_0x354335);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0xa7835d,_0x1eee56){const _0x2d2800=new Map();for(const [_0xc8ccdf,_0x4e3a90]of _0x1eee56){if(!_0xc8ccdf['tagName']&&!_0xc8ccdf['className'])continue;const _0x52945d=!_0xc8ccdf['tagName']||_0xa7835d['name']===_0xc8ccdf['tagName'],_0x475204=!_0xc8ccdf['className']||_0xa7835d['hasClass'](_0xc8ccdf['className']);_0x52945d&&_0x475204&&_0x2d2800['set'](_0xc8ccdf,_0x4e3a90);}return _0x2d2800;}function m(_0x2c47b9){const _0x3b6e79={};for(let _0x378d3a=0x0;_0x378d3a<_0x2c47b9['length'];_0x378d3a++){const _0x5059b8=_0x2c47b9[_0x378d3a],_0x21a653=_0x2c47b9['getPropertyValue'](_0x5059b8);'initial'!==_0x21a653&&(_0x3b6e79[_0x5059b8]=_0x21a653);}return _0x3b6e79;}function p(_0x639712){const _0x4add21=_0x639712['split'](',')['map'](_0x9838c8=>_0x9838c8['trim']()),_0x58fe67=[];for(const _0x2be114 of _0x4add21){const _0x26c9f2=d['exec'](_0x2be114);_0x26c9f2&&_0x58fe67['push'](_0x26c9f2['groups']);}return _0x58fe67;}function y(_0x25474a){const _0x25bc18={};for(const _0x416751 of _0x25474a)Object['assign'](_0x25bc18,_0x416751);return _0x25bc18;}class MSOfficeStylesInliner extends _0x2cf6d0{['execute'](_0x254906){const {body:_0x2e2a26,styles:_0xcf03e,stylesString:_0x416247}=_0x254906['_parsedData'],_0x2fb2a9=new _0x25ac03(_0x2e2a26['document']),_0x225bc0=_0x2fb2a9['createRangeIn'](_0x2e2a26),_0x574fe7=function(_0x4c2b22){const _0x4e814f={};for(const _0x24fc1b of _0x4c2b22)for(const _0x4a39ae of _0x24fc1b['cssRules'])if(_0x4a39ae instanceof CSSStyleRule){const _0x11eb7a=m(_0x4a39ae['style']);_0x4e814f[_0x4a39ae['selectorText']]=Object['assign']({},_0x4e814f[_0x4a39ae['selectorText']]||{},_0x11eb7a);}return _0x4e814f;}(_0xcf03e),_0x293fb9=function(_0x3bb775){const _0x5925c3=new Map();for(const _0x4b6ce7 in _0x3bb775){const _0x1a92cb=p(_0x4b6ce7),_0x3fac98=_0x3bb775[_0x4b6ce7];for(const _0x420d07 of _0x1a92cb)_0x5925c3['set'](_0x420d07,_0x3fac98);}return _0x5925c3;}(_0x574fe7),_0x55b4d1=function(_0x4508be){const _0x4a65df={},_0x4a4238=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x254121=/\.(?<className>[\w-]+)/g;let _0x447330;for(;null!==(_0x447330=_0x4a4238['exec'](_0x4508be));){const {selector:_0x2c682c,color:_0x232b6e,patternType:_0x131688}=_0x447330['groups'];if('auto'!==_0x232b6e['toLowerCase']()&&'none'!==_0x131688['toLowerCase']()&&'auto'!==_0x131688['toLowerCase']()){for(const _0x8bb51e of _0x2c682c['matchAll'](_0x254121))_0x4a65df[_0x8bb51e['groups']['className']]=_0x232b6e;}}return _0x4a65df;}(_0x416247);for(const _0x2f740a of _0x225bc0){if('elementStart'!==_0x2f740a['type'])continue;const _0x492764=_0x2f740a['item'],_0x3beaa8=w(_0x492764,_0x293fb9),_0x3ad379=_0x3beaa8['size']?y(Array['from'](_0x3beaa8['values']())):{};if(!('background-color'in _0x3ad379)&&!('background'in _0x3ad379)){for(const [_0x3f684e,_0x3f51aa]of Object['entries'](_0x55b4d1))if(_0x492764['hasClass'](_0x3f684e)){_0x3ad379['background-color']=_0x3f51aa;break;}}for(const _0x2e6e50 in _0x3ad379)_0x492764['hasStyle'](_0x2e6e50)||_0x2fb2a9['setStyle'](_0x2e6e50,_0x3ad379[_0x2e6e50],_0x492764);}_0x254906['content']=_0x2e2a26;}['isActive'](_0x3dab2b){return super['isActive'](_0x3dab2b)||l(_0x3dab2b);}}class PasteFromOfficeEnhancedInliner extends _0x37268f{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5bdedb];}['init'](){const _0x3fb1cf=this['editor'],_0x35064d=_0x3fb1cf['plugins']['get']('ClipboardPipeline'),_0x284812=_0x3fb1cf['editing']['view']['document'],_0x27fe5b=new MSOfficeStylesInliner(_0x284812);_0x35064d['on']('inputTransformation',(_0x2ce0b7,_0x2580de)=>{const _0x39b8f2=_0x2580de['dataTransfer']['getData']('text/html');_0x27fe5b['isActive'](_0x39b8f2)&&(_0x2580de['_parsedData']||(_0x2580de['_parsedData']=_0x23b8f7(_0x39b8f2,_0x284812['stylesProcessor'])),_0x27fe5b['execute'](_0x2580de));},{'priority':_0x1835ab['get']('high')+0xb});}['afterInit'](){!async function(_0x533787){const _0x472ffb=_0x389405([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]),_0x39a43a=0x7374585f,_0x29d522=0x7373d27f^_0x39a43a,_0x2c316c=window[_0x389405([0x44,0x61,0x74,0x65])][_0x389405([0x6e,0x6f,0x77])](),_0x4e6251=_0x533787[_0x389405([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x557b61=new window[(_0x389405([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21bc29=>{_0x4e6251[_0x389405([0x6f,0x6e,0x63,0x65])](_0x389405([0x72,0x65,0x61,0x64,0x79]),_0x21bc29);}),_0x1eb918={[_0x389405([0x6b,0x74,0x79])]:_0x389405([0x45,0x43]),[_0x389405([0x75,0x73,0x65])]:_0x389405([0x73,0x69,0x67]),[_0x389405([0x63,0x72,0x76])]:_0x389405([0x50,0x2d,0x32,0x35,0x36]),[_0x389405([0x78])]:_0x389405([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]),[_0x389405([0x79])]:_0x389405([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]),[_0x389405([0x61,0x6c,0x67])]:_0x389405([0x45,0x53,0x32,0x35,0x36])},_0x17bf72=_0x4e6251[_0x389405([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x389405([0x67,0x65,0x74])](_0x389405([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2229c5(){let _0x5e642e,_0x59d329=null,_0x2d2dc9=null;try{if(_0x17bf72==_0x389405([0x47,0x50,0x4c]))return _0x389405([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5e642e=_0x43a04c(),!_0x5e642e)return _0x389405([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5e642e[_0x389405([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d2dc9=_0xf57ac4(_0x5e642e[_0x389405([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5e642e[_0x389405([0x6a,0x74,0x69])])),await _0x1d7193()?_0x2ce194()?_0x4e6b4d()?_0x389405([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12f946()?(_0x5e642e[_0x389405([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x389405([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59d329=_0x4887bc(_0x389405([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b8989()):_0x389405([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x389405([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x389405([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x389405([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e6b4d(){const _0x5daa19=[_0x389405([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x389405([0x74,0x72,0x69,0x61,0x6c])][_0x389405([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e642e[_0x389405([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2c316c/0x3e8:0xe10*_0x29d522;return _0x5e642e[_0x389405([0x65,0x78,0x70])]<_0x5daa19;}function _0x2ce194(){const _0x4f6018=_0x5e642e[_0x389405([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4f6018&&(!!_0x4f6018[_0x389405([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389405([0x2a]))||(!!_0x4f6018[_0x389405([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389405([0x50,0x4f,0x45]))||(!!_0x4f6018[_0x389405([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389405([0x50,0x50]))||!(!_0x4f6018[_0x389405([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389405([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x4bf3f8()))));}function _0x12f946(){const _0x53d48a=_0x5e642e[_0x389405([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53d48a||0x0==_0x53d48a[_0x389405([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e2a14}=new URL(window[_0x389405([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53d48a[_0x389405([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e2a14))return!0x0;const _0x1c2a3d=_0x2e2a14[_0x389405([0x73,0x70,0x6c,0x69,0x74])](_0x389405([0x2e]));return _0x53d48a[_0x389405([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2759d5=>_0x2759d5[_0x389405([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389405([0x2a])))[_0x389405([0x6d,0x61,0x70])](_0x50cd64=>_0x50cd64[_0x389405([0x73,0x70,0x6c,0x69,0x74])](_0x389405([0x2e])))[_0x389405([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54d993=>_0x54d993[_0x389405([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1c2a3d[_0x389405([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x389405([0x6d,0x61,0x70])](_0x3a6866=>Array(_0x1c2a3d[_0x389405([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a6866[_0x389405([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x389405([0x66,0x69,0x6c,0x6c])](_0x3a6866[0x0]===_0x389405([0x2a])?_0x389405([0x2a]):'')[_0x389405([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a6866))[_0x389405([0x73,0x6f,0x6d,0x65])](_0x5aff8e=>_0x1c2a3d[_0x389405([0x65,0x76,0x65,0x72,0x79])]((_0x21c15a,_0x290d61)=>_0x5aff8e[_0x290d61]===_0x21c15a||_0x5aff8e[_0x290d61]===_0x389405([0x2a])));}function _0x4b8989(){return _0x59d329&&_0x2d2dc9?new window[(_0x389405([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c3e6b,_0x4f6df5)=>{_0x59d329[_0x389405([0x74,0x68,0x65,0x6e])](_0x1c3e6b,_0x4f6df5),_0x2d2dc9[_0x389405([0x74,0x68,0x65,0x6e])](_0x4d5f5d=>{_0x4d5f5d!=_0x389405([0x56,0x61,0x6c,0x69,0x64])&&_0x1c3e6b(_0x4d5f5d);},_0x4f6df5);}):_0x59d329||_0x2d2dc9||_0x389405([0x56,0x61,0x6c,0x69,0x64]);}}function _0xf57ac4(_0x295c04,_0x3bd3a7){return new window[(_0x389405([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x87f0b1=>{if(_0x301137())return _0x87f0b1(_0x389405([0x56,0x61,0x6c,0x69,0x64]));_0x82fed7(),_0x4e6251[_0x389405([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x389405([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c88ba=!0x1;const _0x3d08aa=_0x55385e();function _0x522424(_0x2c467e){return!!_0x2c467e&&(typeof _0x2c467e===_0x389405([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2c467e===_0x389405([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2c467e[_0x389405([0x74,0x68,0x65,0x6e])]===_0x389405([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2c467e[_0x389405([0x63,0x61,0x74,0x63,0x68])]===_0x389405([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x42cf78(_0x553bcb){_0x7adc25(_0x553bcb)[_0x389405([0x74,0x68,0x65,0x6e])](_0x51d01a=>{if(!_0x51d01a||_0x51d01a[_0x389405([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x389405([0x6f,0x6b]))return _0x389405([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f1281(_0x3b015b(_0x3d08aa+_0x3bd3a7))!=_0x51d01a[_0x389405([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x389405([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x389405([0x56,0x61,0x6c,0x69,0x64]);})[_0x389405([0x74,0x68,0x65,0x6e])](_0x5991bc=>(_0x40ab2f(),_0x5991bc),()=>{const _0x191369=_0x58be3a();return null==_0x191369?(_0x40ab2f(),_0x389405([0x56,0x61,0x6c,0x69,0x64])):_0x389405(_0x2c316c-_0x191369>(0x5778dc5f^_0x39a43a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x389405([0x74,0x68,0x65,0x6e])](_0x87f0b1)[_0x389405([0x63,0x61,0x74,0x63,0x68])](()=>{_0x87f0b1(_0x389405([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d21b0=0x7342b6df^_0x39a43a;function _0x40ab2f(){const _0x525cee=_0x389405([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f1281(_0x3b015b(_0x295c04)),_0x34c464=_0x1e8cb9(_0x2f1281(window[_0x389405([0x4d,0x61,0x74,0x68])][_0x389405([0x63,0x65,0x69,0x6c])](_0x2c316c/_0x1d21b0)));window[_0x389405([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x389405([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x525cee,_0x34c464);}function _0x58be3a(){const _0x90fa21=_0x389405([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f1281(_0x3b015b(_0x295c04)),_0x40c18d=window[_0x389405([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x389405([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x90fa21);return _0x40c18d?window[_0x389405([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e8cb9(_0x40c18d),0x10)*_0x1d21b0:null;}function _0x7adc25(_0x39295c){return new window[(_0x389405([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16ac5a,_0x5df139)=>{_0x39295c[_0x389405([0x74,0x68,0x65,0x6e])](_0x16ac5a,_0x5df139),window[_0x389405([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5df139,0x73758c9f^_0x39a43a);});}}_0x4e6251[_0x389405([0x6f,0x6e])](_0x389405([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3671b9,_0x23388a)=>{if(_0x23388a[0x0]!=_0x295c04)return _0x87f0b1(_0x389405([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x23388a[0x1]={..._0x23388a[0x1],[_0x389405([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d08aa};},{[_0x389405([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x389405([0x68,0x69,0x67,0x68])}),_0x4e6251[_0x389405([0x6f,0x6e])](_0x389405([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bc5bf=>{_0x522424(_0x2bc5bf[_0x389405([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c88ba=!0x0,_0x42cf78(_0x2bc5bf[_0x389405([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x389405([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x389405([0x6c,0x6f,0x77])}),_0x557b61[_0x389405([0x74,0x68,0x65,0x6e])](()=>{_0x1c88ba||_0x87f0b1(_0x389405([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x301137(){return _0x4e6251[_0x389405([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x389405([0x76,0x69,0x65,0x77])][_0x389405([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x389405([0x61,0x75,0x74,0x6f]);}function _0x82fed7(){_0x4e6251[_0x389405([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x389405([0x76,0x69,0x65,0x77])][_0x389405([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x389405([0x61,0x75,0x74,0x6f]);}}function _0x4887bc(_0x549c11){const _0x726872=[new window[(_0x389405([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c9ea0=>setTimeout(_0x4c9ea0,0x737d6693^_0x39a43a)),_0x557b61[_0x389405([0x74,0x68,0x65,0x6e])](()=>new window[(_0x389405([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x271e3e=>{let _0x327973=0x0;_0x4e6251[_0x389405([0x6d,0x6f,0x64,0x65,0x6c])][_0x389405([0x6f,0x6e])](_0x389405([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11cf96,_0xe90a7e)=>{_0xe90a7e[0x0][_0x389405([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x327973++,_0x327973==(0x73745db7^_0x39a43a)&&(_0x271e3e(),_0x11cf96[_0x389405([0x6f,0x66,0x66])]());});}))];return window[_0x389405([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x389405([0x72,0x61,0x63,0x65])](_0x726872)[_0x389405([0x74,0x68,0x65,0x6e])](()=>_0x549c11);}async function _0x1a6eb7(){await _0x557b61,_0x4e6251[_0x389405([0x6d,0x6f,0x64,0x65,0x6c])][_0x389405([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x13bcab,_0x4e6251[_0x389405([0x6d,0x6f,0x64,0x65,0x6c])][_0x389405([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x13bcab,_0x4e6251[_0x389405([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x389405([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4bf3f8(){return window[_0x389405([0x67,0x6c,0x6f,0x62])]&&window[_0x389405([0x67,0x6c,0x6f,0x62])][_0x389405([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x2b3744(_0x43c16d){const _0x41f73e=_0x5be97f();_0x4e6251[_0x41f73e]=_0x389405([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])+_0x43c16d,_0x43c16d!=_0x389405([0x56,0x61,0x6c,0x69,0x64])&&_0x1a6eb7();}function _0x5be97f(){const _0x4c9414=window[_0x389405([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x389405([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x389405([0x6e,0x6f,0x77])]())[_0x389405([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x389405([0x2e]),'');let _0x497e38=_0x389405([0x73]);for(let _0x512096=0x0;_0x512096<_0x4c9414[_0x389405([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x512096+=0x2){let _0x2528c8=window[_0x389405([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c9414[_0x389405([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x512096,_0x512096+0x2));_0x2528c8>=_0x472ffb[_0x389405([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2528c8-=_0x472ffb[_0x389405([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x497e38+=_0x472ffb[_0x2528c8];}return _0x497e38;}function _0x43a04c(){const _0x332676=_0x17bf72[_0x389405([0x73,0x70,0x6c,0x69,0x74])](_0x389405([0x2e]));if(0x3!=_0x332676[_0x389405([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f92ee(_0x332676[0x1]);function _0x4f92ee(_0x146b69){const _0x4f8a7c=_0x315154(_0x146b69);return _0x4f8a7c&&_0xc2d106()?_0x4f8a7c:null;function _0xc2d106(){const _0x3e7497=_0x4f8a7c[_0x389405([0x6a,0x74,0x69])],_0x49b705=window[_0x389405([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e7497[_0x389405([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e7497[_0x389405([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4cb349={..._0x4f8a7c,[_0x389405([0x6a,0x74,0x69])]:_0x3e7497[_0x389405([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e7497[_0x389405([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4cb349[_0x389405([0x76,0x63])],_0x3b015b(_0x4cb349)==_0x49b705;}}}async function _0x1d7193(){let _0x46c3e3=!0x0;try{const _0x39c8fe=_0x17bf72[_0x389405([0x73,0x70,0x6c,0x69,0x74])](_0x389405([0x2e])),[_0x2602a4,_0x57f074,_0x406aca]=_0x39c8fe;return _0x354246(_0x2602a4),await _0x2150e4(_0x2602a4,_0x57f074,_0x406aca),_0x46c3e3;}catch{return!0x1;}function _0x354246(_0x3b9999){const _0x7b207=_0x315154(_0x3b9999);_0x7b207&&_0x7b207[_0x389405([0x61,0x6c,0x67])]==_0x389405([0x45,0x53,0x32,0x35,0x36])||(_0x46c3e3=!0x1);}async function _0x2150e4(_0x54ce44,_0x5dbfa0,_0x2fcf63){const _0x5974d7=window[_0x389405([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x389405([0x66,0x72,0x6f,0x6d])](_0x4d8445(_0x2fcf63),_0x4524d2=>_0x4524d2[_0x389405([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2dcdd4=new window[(_0x389405([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x389405([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54ce44+_0x389405([0x2e])+_0x5dbfa0),_0x5b8e12=window[_0x389405([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x389405([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5b8e12)return;const _0x380363=await _0x5b8e12[_0x389405([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x389405([0x6a,0x77,0x6b]),_0x1eb918,{[_0x389405([0x6e,0x61,0x6d,0x65])]:_0x389405([0x45,0x43,0x44,0x53,0x41]),[_0x389405([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x389405([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x389405([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5b8e12[_0x389405([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x389405([0x6e,0x61,0x6d,0x65])]:_0x389405([0x45,0x43,0x44,0x53,0x41]),[_0x389405([0x68,0x61,0x73,0x68])]:{[_0x389405([0x6e,0x61,0x6d,0x65])]:_0x389405([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x380363,_0x5974d7,_0x2dcdd4)||(_0x46c3e3=!0x1);}}function _0x315154(_0x42a310){return _0x42a310[_0x389405([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x389405([0x65,0x79]))?JSON[_0x389405([0x70,0x61,0x72,0x73,0x65])](_0x4d8445(_0x42a310)):null;}function _0x4d8445(_0x1375af){return window[_0x389405([0x61,0x74,0x6f,0x62])](_0x1375af[_0x389405([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x389405([0x2b]))[_0x389405([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x389405([0x2f])));}function _0x3b015b(_0x526a7b){let _0x36663e=0x1505;function _0xaa95ce(_0x5c1d4f){for(let _0x27ddad=0x0;_0x27ddad<_0x5c1d4f[_0x389405([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27ddad++){const _0x118ae1=_0x5c1d4f[_0x389405([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x27ddad);_0x36663e=(_0x36663e<<0x5)+_0x36663e+_0x118ae1,_0x36663e&=_0x36663e;}}function _0x2510bd(_0x94f728){Array[_0x389405([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x94f728)?_0x94f728[_0x389405([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2510bd):_0x94f728&&typeof _0x94f728==_0x389405([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x389405([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x94f728)[_0x389405([0x73,0x6f,0x72,0x74])]()[_0x389405([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e6edf,_0x1e04a0])=>{_0xaa95ce(_0x2e6edf),_0x2510bd(_0x1e04a0);}):_0xaa95ce(window[_0x389405([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x94f728));}return _0x2510bd(_0x526a7b),_0x36663e>>>0x0;}function _0x2f1281(_0xa84181){return _0xa84181[_0x389405([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x389405([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x389405([0x30]));}function _0x1e8cb9(_0x5e9f3b){return _0x5e9f3b[_0x389405([0x73,0x70,0x6c,0x69,0x74])]('')[_0x389405([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x389405([0x6a,0x6f,0x69,0x6e])]('');}function _0x13bcab(){}function _0x389405(_0xb1e998){return _0xb1e998['map'](_0x5dd09d=>String['fromCharCode'](_0x5dd09d))['join']('');}_0x2b3744(await _0x2229c5());}(this);}}const g=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],h=['color','font-family','font-size'],O={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x555fac=>Number(_0x555fac)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function E(_0x5b816b){return g['includes'](_0x5b816b);}function P(_0x3d82b8){return Array['from'](_0x3d82b8['getStyleNames']())['filter'](E);}function F(_0x4d5b7b,_0x10e778,_0x2f3d5e){const {spanStyles:_0x2b6fea,stylesToBeHtmlElements:_0x42a31c}=x(_0x4d5b7b,_0x2f3d5e);!function(_0x26b04b,_0x1eb015,_0x35ce3c){for(const _0xb6bd09 in _0x35ce3c){_0x35ce3c[_0xb6bd09]['forEach'](([,_0x171d31])=>{const _0x31ddc8=_0x1eb015['createElement'](_0x171d31,[],_0x26b04b['getChildren']());_0x1eb015['insertChild'](0x0,_0x31ddc8,_0x26b04b);}),_0x1eb015['removeStyle'](_0xb6bd09,_0x26b04b);}}(_0x4d5b7b,_0x10e778,_0x42a31c),function(_0x3434ec,_0x546dc1,_0x1d3113){if(!Object['keys'](_0x1d3113)['length'])return;const _0x498130=_0x546dc1['createElement']('span',[],_0x3434ec['getChildren']());_0x546dc1['setStyle'](_0x1d3113,_0x498130),_0x546dc1['insertChild'](0x0,_0x498130,_0x3434ec),_0x546dc1['removeStyle'](Object['keys'](_0x1d3113),_0x3434ec);}(_0x4d5b7b,_0x10e778,_0x2b6fea);}function L(_0x9f41b5,_0x216493,_0x28a38d){const {spanStyles:_0x326132}=x(_0x9f41b5,_0x28a38d),_0x453d85=Object['keys'](_0x326132);if(!_0x453d85['length'])return;let _0x93007b=!0x1;for(const _0x1e7fc2 of _0x9f41b5['getChildren']())if(_0x1e7fc2['is']('element','span')){_0x93007b=!0x0;for(const [_0x243e6a,_0x22d3e5]of Object['entries'](_0x326132))_0x1e7fc2['hasStyle'](_0x243e6a)||_0x216493['setStyle']({[_0x243e6a]:_0x22d3e5},_0x1e7fc2);}_0x93007b&&_0x216493['removeStyle'](_0x453d85,_0x9f41b5);}function x(_0xf29aff,_0x28bc64){const _0x5c3c91={},_0x15c665={};return _0x28bc64['forEach'](_0x10af15=>{const _0xf73ff8=_0xf29aff['getStyle'](_0x10af15);if(_0xf73ff8){if(function(_0x591308){return h['includes'](_0x591308);}(_0x10af15))_0x5c3c91[_0x10af15]=_0xf73ff8;else{if(function(_0x41d022){return _0x41d022 in O;}(_0x10af15)){const _0x5be1e9=_0xf73ff8['split']('\x20');O[_0x10af15]['forEach'](([_0x802e8b,_0x381ceb])=>{for(const _0x5e312a of _0x5be1e9){('function'==typeof _0x802e8b&&_0x802e8b(_0x5e312a)||_0x802e8b===_0x5e312a)&&(_0x15c665[_0x10af15]=[..._0x15c665[_0x10af15]||[],[_0x802e8b,_0x381ceb]]);}});}}}}),{'spanStyles':_0x5c3c91,'stylesToBeHtmlElements':_0x15c665};}class MSOfficeInlineStylePropagator extends _0x2cf6d0{['execute'](_0x7c6222){const {body:_0x4e81a0}=_0x7c6222['_parsedData'],_0x37ca6e=new _0x25ac03(_0x4e81a0['document']),_0x55205d=_0x37ca6e['createRangeIn'](_0x4e81a0),_0xda62e1=new _0x28494d(_0x37ca6e['document']['stylesProcessor']),_0x31aebb=[...new _0x2a231f(_0xda62e1)['blockElements'],'font'],_0x20e15d=_0x55205d['getItems']();for(const _0x4e879d of _0x20e15d)if(_0x4e879d['is']('element')&&_0x31aebb['includes'](_0x4e879d['name'])){if(_0x4e879d['hasStyle']('mso-list')&&'none'!==_0x4e879d['getStyle']('mso-list')){L(_0x4e879d,_0x37ca6e,P(_0x4e879d));continue;}F(_0x4e879d,_0x37ca6e,P(_0x4e879d));}_0x7c6222['content']=_0x4e81a0;}['isActive'](_0x16b7e3){return super['isActive'](_0x16b7e3)||l(_0x16b7e3);}}class PasteFromOfficeEnhancedPropagator extends _0x37268f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5bdedb];}['init'](){const _0x2f10e5=this['editor'],_0x5c1b79=_0x2f10e5['plugins']['get']('ClipboardPipeline'),_0x8a25db=_0x2f10e5['editing']['view']['document'],_0x170d30=new MSOfficeInlineStylePropagator(_0x8a25db);_0x5c1b79['on']('inputTransformation',(_0x102c11,_0x5df88d)=>{const _0x4c7645=_0x5df88d['dataTransfer']['getData']('text/html');_0x170d30['isActive'](_0x4c7645)&&(_0x5df88d['_parsedData']||(_0x5df88d['_parsedData']=_0x23b8f7(_0x4c7645,_0x8a25db['stylesProcessor'])),_0x170d30['execute'](_0x5df88d));},{'priority':_0x1835ab['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x50d5f6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2efb3f;for(const _0x42e83b in _0x50d5f6){const _0xa8bec7=_0x42e83b,_0x166cab=_0x50d5f6[_0xa8bec7];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x166cab||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x166cab||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x166cab||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x166cab||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x166cab||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x166cab||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x166cab){delete _0x50d5f6[_0xa8bec7],_0x2efb3f=_0x166cab,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x2efb3f&&_0x50d5f6['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x2efb3f&&_0x50d5f6['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x2efb3f&&_0x50d5f6['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x2efb3f&&_0x50d5f6['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x2efb3f&&_0x50d5f6['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x2efb3f&&_0x50d5f6['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends _0x37268f{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5bdedb,PasteFromOfficeEnhancedInliner,PasteFromOfficeEnhancedPropagator];}}export{PasteFromOfficeEnhanced};
|
|
23
|
+
import{Plugin as _0x5e9441}from'@ckeditor/ckeditor5-core/dist/index.js';import{PasteFromOfficeMSWordNormalizer as _0x5da7e1,PasteFromOffice as _0x343ad0,parsePasteOfficeHtml as _0x2958f2}from'@ckeditor/ckeditor5-paste-from-office/dist/index.js';import{priorities as _0x3631b2,uid as _0x146d6a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{ViewUpcastWriter as _0x431b4c,ViewDocument as _0x1b4823,ViewDomConverter as _0x991bd4}from'@ckeditor/ckeditor5-engine/dist/index.js';const u=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function l(_0x109624){return u['test'](_0x109624);}const d=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function w(_0x45f34b,_0xdd8578){const _0x32dd45=new Map();for(const [_0x106450,_0x1b3870]of _0xdd8578){if(!_0x106450['tagName']&&!_0x106450['className'])continue;const _0x369aa0=!_0x106450['tagName']||_0x45f34b['name']===_0x106450['tagName'],_0x12ae20=!_0x106450['className']||_0x45f34b['hasClass'](_0x106450['className']);_0x369aa0&&_0x12ae20&&_0x32dd45['set'](_0x106450,_0x1b3870);}return _0x32dd45;}function m(_0x119712){const _0x3283b8={};for(let _0x12cacf=0x0;_0x12cacf<_0x119712['length'];_0x12cacf++){const _0x3dbaa9=_0x119712[_0x12cacf],_0x5698c0=_0x119712['getPropertyValue'](_0x3dbaa9);'initial'!==_0x5698c0&&(_0x3283b8[_0x3dbaa9]=_0x5698c0);}return _0x3283b8;}function p(_0x5d2201){const _0xf4cec4=_0x5d2201['split'](',')['map'](_0x267adc=>_0x267adc['trim']()),_0x33b63=[];for(const _0x4cd3dc of _0xf4cec4){const _0x36e31c=d['exec'](_0x4cd3dc);_0x36e31c&&_0x33b63['push'](_0x36e31c['groups']);}return _0x33b63;}function y(_0x591931){const _0x1a15bf={};for(const _0x40d53c of _0x591931)Object['assign'](_0x1a15bf,_0x40d53c);return _0x1a15bf;}class MSOfficeStylesInliner extends _0x5da7e1{['execute'](_0x1d61c9){const {body:_0x1c713e,styles:_0x4dc15e,stylesString:_0x2601ad}=_0x1d61c9['_parsedData'],_0x22220b=new _0x431b4c(_0x1c713e['document']),_0x83e4ee=_0x22220b['createRangeIn'](_0x1c713e),_0x19ba8a=function(_0x4277f1){const _0x494923={};for(const _0x2c41bd of _0x4277f1)for(const _0x27ed1d of _0x2c41bd['cssRules'])if(_0x27ed1d instanceof CSSStyleRule){const _0x5674a4=m(_0x27ed1d['style']);_0x494923[_0x27ed1d['selectorText']]=Object['assign']({},_0x494923[_0x27ed1d['selectorText']]||{},_0x5674a4);}return _0x494923;}(_0x4dc15e),_0x3093e6=function(_0xd93b1a){const _0x1ad10c=new Map();for(const _0xb19c15 in _0xd93b1a){const _0x232f0b=p(_0xb19c15),_0x131694=_0xd93b1a[_0xb19c15];for(const _0x39cd96 of _0x232f0b)_0x1ad10c['set'](_0x39cd96,_0x131694);}return _0x1ad10c;}(_0x19ba8a),_0x4f763a=function(_0x472c8b){const _0x1e554d={},_0x5c33ae=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x1595b1=/\.(?<className>[\w-]+)/g;let _0x49e4b0;for(;null!==(_0x49e4b0=_0x5c33ae['exec'](_0x472c8b));){const {selector:_0x3311dd,color:_0x5e981e,patternType:_0x2c84be}=_0x49e4b0['groups'];if('auto'!==_0x5e981e['toLowerCase']()&&'none'!==_0x2c84be['toLowerCase']()&&'auto'!==_0x2c84be['toLowerCase']()){for(const _0x831ce1 of _0x3311dd['matchAll'](_0x1595b1))_0x1e554d[_0x831ce1['groups']['className']]=_0x5e981e;}}return _0x1e554d;}(_0x2601ad);for(const _0x46ae68 of _0x83e4ee){if('elementStart'!==_0x46ae68['type'])continue;const _0x2ac0f6=_0x46ae68['item'],_0x790b80=w(_0x2ac0f6,_0x3093e6),_0x4a4e4c=_0x790b80['size']?y(Array['from'](_0x790b80['values']())):{};if(!('background-color'in _0x4a4e4c)&&!('background'in _0x4a4e4c)){for(const [_0x36fa17,_0x43f070]of Object['entries'](_0x4f763a))if(_0x2ac0f6['hasClass'](_0x36fa17)){_0x4a4e4c['background-color']=_0x43f070;break;}}for(const _0x103247 in _0x4a4e4c)_0x2ac0f6['hasStyle'](_0x103247)||_0x22220b['setStyle'](_0x103247,_0x4a4e4c[_0x103247],_0x2ac0f6);}_0x1d61c9['content']=_0x1c713e;}['isActive'](_0x57d138){return super['isActive'](_0x57d138)||l(_0x57d138);}}class PasteFromOfficeEnhancedInliner extends _0x5e9441{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x343ad0];}['init'](){const _0xc73ce0=this['editor'],_0x14a1c2=_0xc73ce0['plugins']['get']('ClipboardPipeline'),_0x461f69=_0xc73ce0['editing']['view']['document'],_0x20cc91=new MSOfficeStylesInliner(_0x461f69);_0x14a1c2['on']('inputTransformation',(_0x331f10,_0x1ea9e4)=>{const _0x44d96a=_0x1ea9e4['dataTransfer']['getData']('text/html');_0x20cc91['isActive'](_0x44d96a)&&(_0x1ea9e4['_parsedData']||(_0x1ea9e4['_parsedData']=_0x2958f2(_0x44d96a,_0x461f69['stylesProcessor'])),_0x20cc91['execute'](_0x1ea9e4));},{'priority':_0x3631b2['get']('high')+0xb});}['afterInit'](){!async function(_0x27d673){const _0x470788=_0x386b97([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]),_0xa64819=0x7374585f,_0x2b39cb=0x7373d267^_0xa64819,_0x3fbac4=window[_0x386b97([0x44,0x61,0x74,0x65])][_0x386b97([0x6e,0x6f,0x77])](),_0x25e752=_0x27d673[_0x386b97([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c612d=new window[(_0x386b97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5848ae=>{_0x25e752[_0x386b97([0x6f,0x6e,0x63,0x65])](_0x386b97([0x72,0x65,0x61,0x64,0x79]),_0x5848ae);}),_0x1446df={[_0x386b97([0x6b,0x74,0x79])]:_0x386b97([0x45,0x43]),[_0x386b97([0x75,0x73,0x65])]:_0x386b97([0x73,0x69,0x67]),[_0x386b97([0x63,0x72,0x76])]:_0x386b97([0x50,0x2d,0x32,0x35,0x36]),[_0x386b97([0x78])]:_0x386b97([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]),[_0x386b97([0x79])]:_0x386b97([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]),[_0x386b97([0x61,0x6c,0x67])]:_0x386b97([0x45,0x53,0x32,0x35,0x36])},_0x306b79=_0x25e752[_0x386b97([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x386b97([0x67,0x65,0x74])](_0x386b97([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2bb27b(){let _0x2ba1ce,_0x46d582=null,_0x5a8308=null;try{if(_0x306b79==_0x386b97([0x47,0x50,0x4c]))return _0x386b97([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ba1ce=_0x361f45(),!_0x2ba1ce)return _0x386b97([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2ba1ce[_0x386b97([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a8308=_0x487545(_0x2ba1ce[_0x386b97([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ba1ce[_0x386b97([0x6a,0x74,0x69])])),await _0x6e325f()?_0x39d584()?_0x55b365()?_0x386b97([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x16b09c()?(_0x2ba1ce[_0x386b97([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x386b97([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x46d582=_0x4d8f8c(_0x386b97([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c493e()):_0x386b97([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x386b97([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x386b97([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x386b97([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55b365(){const _0x598c64=[_0x386b97([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x386b97([0x74,0x72,0x69,0x61,0x6c])][_0x386b97([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ba1ce[_0x386b97([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3fbac4/0x3e8:0xe10*_0x2b39cb;return _0x2ba1ce[_0x386b97([0x65,0x78,0x70])]<_0x598c64;}function _0x39d584(){const _0x3b5970=_0x2ba1ce[_0x386b97([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3b5970&&(!!_0x3b5970[_0x386b97([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x386b97([0x2a]))||(!!_0x3b5970[_0x386b97([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x386b97([0x50,0x4f,0x45]))||(!!_0x3b5970[_0x386b97([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x386b97([0x50,0x50]))||!(!_0x3b5970[_0x386b97([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x386b97([0x54,0x52,0x49,0x4c,0x49,0x55,0x4d]))||!_0x5e90ea()))));}function _0x16b09c(){const _0x2f0b1a=_0x2ba1ce[_0x386b97([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2f0b1a||0x0==_0x2f0b1a[_0x386b97([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xe83f49}=new URL(window[_0x386b97([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2f0b1a[_0x386b97([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe83f49))return!0x0;const _0x540aa5=_0xe83f49[_0x386b97([0x73,0x70,0x6c,0x69,0x74])](_0x386b97([0x2e]));return _0x2f0b1a[_0x386b97([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b019b=>_0x3b019b[_0x386b97([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x386b97([0x2a])))[_0x386b97([0x6d,0x61,0x70])](_0x135485=>_0x135485[_0x386b97([0x73,0x70,0x6c,0x69,0x74])](_0x386b97([0x2e])))[_0x386b97([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e5843=>_0x5e5843[_0x386b97([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x540aa5[_0x386b97([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x386b97([0x6d,0x61,0x70])](_0x3a9cc9=>Array(_0x540aa5[_0x386b97([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a9cc9[_0x386b97([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x386b97([0x66,0x69,0x6c,0x6c])](_0x3a9cc9[0x0]===_0x386b97([0x2a])?_0x386b97([0x2a]):'')[_0x386b97([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a9cc9))[_0x386b97([0x73,0x6f,0x6d,0x65])](_0xcf8ae=>_0x540aa5[_0x386b97([0x65,0x76,0x65,0x72,0x79])]((_0xfc48e4,_0x339c56)=>_0xcf8ae[_0x339c56]===_0xfc48e4||_0xcf8ae[_0x339c56]===_0x386b97([0x2a])));}function _0x4c493e(){return _0x46d582&&_0x5a8308?new window[(_0x386b97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52f38c,_0xcd1d5b)=>{_0x46d582[_0x386b97([0x74,0x68,0x65,0x6e])](_0x52f38c,_0xcd1d5b),_0x5a8308[_0x386b97([0x74,0x68,0x65,0x6e])](_0x5ef9e1=>{_0x5ef9e1!=_0x386b97([0x56,0x61,0x6c,0x69,0x64])&&_0x52f38c(_0x5ef9e1);},_0xcd1d5b);}):_0x46d582||_0x5a8308||_0x386b97([0x56,0x61,0x6c,0x69,0x64]);}}function _0x487545(_0x188a83,_0x401d99){return new window[(_0x386b97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x105494=>{if(_0x1eb85c())return _0x105494(_0x386b97([0x56,0x61,0x6c,0x69,0x64]));_0x46165d(),_0x25e752[_0x386b97([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x386b97([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x34e561=!0x1;const _0x4fad2c=_0x146d6a();function _0x3cd80a(_0x2b67a6){return!!_0x2b67a6&&(typeof _0x2b67a6===_0x386b97([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b67a6===_0x386b97([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b67a6[_0x386b97([0x74,0x68,0x65,0x6e])]===_0x386b97([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b67a6[_0x386b97([0x63,0x61,0x74,0x63,0x68])]===_0x386b97([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3979ce(_0x526542){_0x5b3bc7(_0x526542)[_0x386b97([0x74,0x68,0x65,0x6e])](_0x1cbf4b=>{if(!_0x1cbf4b||_0x1cbf4b[_0x386b97([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x386b97([0x6f,0x6b]))return _0x386b97([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2af9a6(_0x344b05(_0x4fad2c+_0x401d99))!=_0x1cbf4b[_0x386b97([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x386b97([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x386b97([0x56,0x61,0x6c,0x69,0x64]);})[_0x386b97([0x74,0x68,0x65,0x6e])](_0x428dce=>(_0x1c9020(),_0x428dce),()=>{const _0x42bbbb=_0x585123();return null==_0x42bbbb?(_0x1c9020(),_0x386b97([0x56,0x61,0x6c,0x69,0x64])):_0x386b97(_0x3fbac4-_0x42bbbb>(0x5778dc5f^_0xa64819)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x386b97([0x74,0x68,0x65,0x6e])](_0x105494)[_0x386b97([0x63,0x61,0x74,0x63,0x68])](()=>{_0x105494(_0x386b97([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5136e5=0x7342b6df^_0xa64819;function _0x1c9020(){const _0x2e2e26=_0x386b97([0x6c,0x6c,0x63,0x74,0x2d])+_0x2af9a6(_0x344b05(_0x188a83)),_0xc9eeee=_0x6982e4(_0x2af9a6(window[_0x386b97([0x4d,0x61,0x74,0x68])][_0x386b97([0x63,0x65,0x69,0x6c])](_0x3fbac4/_0x5136e5)));window[_0x386b97([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x386b97([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e2e26,_0xc9eeee);}function _0x585123(){const _0x2d281b=_0x386b97([0x6c,0x6c,0x63,0x74,0x2d])+_0x2af9a6(_0x344b05(_0x188a83)),_0x3836db=window[_0x386b97([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x386b97([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d281b);return _0x3836db?window[_0x386b97([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6982e4(_0x3836db),0x10)*_0x5136e5:null;}function _0x5b3bc7(_0x42f734){return new window[(_0x386b97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23a48e,_0x447fe6)=>{_0x42f734[_0x386b97([0x74,0x68,0x65,0x6e])](_0x23a48e,_0x447fe6),window[_0x386b97([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x447fe6,0x73758c9f^_0xa64819);});}}_0x25e752[_0x386b97([0x6f,0x6e])](_0x386b97([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xbd429,_0x1fda10)=>{if(_0x1fda10[0x0]!=_0x188a83)return _0x105494(_0x386b97([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1fda10[0x1]={..._0x1fda10[0x1],[_0x386b97([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4fad2c};},{[_0x386b97([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x386b97([0x68,0x69,0x67,0x68])}),_0x25e752[_0x386b97([0x6f,0x6e])](_0x386b97([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4df022=>{_0x3cd80a(_0x4df022[_0x386b97([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x34e561=!0x0,_0x3979ce(_0x4df022[_0x386b97([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x386b97([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x386b97([0x6c,0x6f,0x77])}),_0x4c612d[_0x386b97([0x74,0x68,0x65,0x6e])](()=>{_0x34e561||_0x105494(_0x386b97([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1eb85c(){return _0x25e752[_0x386b97([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x386b97([0x76,0x69,0x65,0x77])][_0x386b97([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x386b97([0x61,0x75,0x74,0x6f]);}function _0x46165d(){_0x25e752[_0x386b97([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x386b97([0x76,0x69,0x65,0x77])][_0x386b97([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x386b97([0x61,0x75,0x74,0x6f]);}}function _0x4d8f8c(_0x327278){const _0x1c1cf0=[new window[(_0x386b97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x196a54=>setTimeout(_0x196a54,0x737d6693^_0xa64819)),_0x4c612d[_0x386b97([0x74,0x68,0x65,0x6e])](()=>new window[(_0x386b97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x70113d=>{let _0x15e5db=0x0;_0x25e752[_0x386b97([0x6d,0x6f,0x64,0x65,0x6c])][_0x386b97([0x6f,0x6e])](_0x386b97([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd60824,_0x3d35d9)=>{_0x3d35d9[0x0][_0x386b97([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x15e5db++,_0x15e5db==(0x73745db7^_0xa64819)&&(_0x70113d(),_0xd60824[_0x386b97([0x6f,0x66,0x66])]());});}))];return window[_0x386b97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x386b97([0x72,0x61,0x63,0x65])](_0x1c1cf0)[_0x386b97([0x74,0x68,0x65,0x6e])](()=>_0x327278);}async function _0x43fe7a(){await _0x4c612d,_0x25e752[_0x386b97([0x6d,0x6f,0x64,0x65,0x6c])][_0x386b97([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x632210,_0x25e752[_0x386b97([0x6d,0x6f,0x64,0x65,0x6c])][_0x386b97([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x632210,_0x25e752[_0x386b97([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x386b97([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e90ea(){return window[_0x386b97([0x67,0x6c,0x6f,0x62])]&&window[_0x386b97([0x67,0x6c,0x6f,0x62])][_0x386b97([0x74,0x72,0x69,0x6c,0x69,0x75,0x6d,0x56,0x65,0x72,0x73,0x69,0x6f,0x6e])];}function _0x5afaa5(_0x2c0c5f){const _0x53e6b8=_0x206708();_0x25e752[_0x53e6b8]=_0x386b97([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])+_0x2c0c5f,_0x2c0c5f!=_0x386b97([0x56,0x61,0x6c,0x69,0x64])&&_0x43fe7a();}function _0x206708(){const _0x2332d8=window[_0x386b97([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x386b97([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x386b97([0x6e,0x6f,0x77])]())[_0x386b97([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x386b97([0x2e]),'');let _0x48e628=_0x386b97([0x73]);for(let _0x84522d=0x0;_0x84522d<_0x2332d8[_0x386b97([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x84522d+=0x2){let _0xf25b1a=window[_0x386b97([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2332d8[_0x386b97([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x84522d,_0x84522d+0x2));_0xf25b1a>=_0x470788[_0x386b97([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf25b1a-=_0x470788[_0x386b97([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x48e628+=_0x470788[_0xf25b1a];}return _0x48e628;}function _0x361f45(){const _0x5f3097=_0x306b79[_0x386b97([0x73,0x70,0x6c,0x69,0x74])](_0x386b97([0x2e]));if(0x3!=_0x5f3097[_0x386b97([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x122780(_0x5f3097[0x1]);function _0x122780(_0x278143){const _0x25c913=_0x3dee3b(_0x278143);return _0x25c913&&_0x12ccb1()?_0x25c913:null;function _0x12ccb1(){const _0x539f93=_0x25c913[_0x386b97([0x6a,0x74,0x69])],_0x549f11=window[_0x386b97([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x539f93[_0x386b97([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x539f93[_0x386b97([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d4e23={..._0x25c913,[_0x386b97([0x6a,0x74,0x69])]:_0x539f93[_0x386b97([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x539f93[_0x386b97([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d4e23[_0x386b97([0x76,0x63])],_0x344b05(_0x4d4e23)==_0x549f11;}}}async function _0x6e325f(){let _0xbad11=!0x0;try{const _0x20c746=_0x306b79[_0x386b97([0x73,0x70,0x6c,0x69,0x74])](_0x386b97([0x2e])),[_0xeb3384,_0x38c5e9,_0x4c3c08]=_0x20c746;return _0x1b8a28(_0xeb3384),await _0x150d88(_0xeb3384,_0x38c5e9,_0x4c3c08),_0xbad11;}catch{return!0x1;}function _0x1b8a28(_0x3d8f14){const _0x3e274f=_0x3dee3b(_0x3d8f14);_0x3e274f&&_0x3e274f[_0x386b97([0x61,0x6c,0x67])]==_0x386b97([0x45,0x53,0x32,0x35,0x36])||(_0xbad11=!0x1);}async function _0x150d88(_0x483c73,_0x384d8b,_0x365e1e){const _0x3b2ef5=window[_0x386b97([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x386b97([0x66,0x72,0x6f,0x6d])](_0x1116a3(_0x365e1e),_0x2c13ec=>_0x2c13ec[_0x386b97([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xd8acf2=new window[(_0x386b97([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x386b97([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x483c73+_0x386b97([0x2e])+_0x384d8b),_0x4b9d6d=window[_0x386b97([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x386b97([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b9d6d)return;const _0x1a38fc=await _0x4b9d6d[_0x386b97([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x386b97([0x6a,0x77,0x6b]),_0x1446df,{[_0x386b97([0x6e,0x61,0x6d,0x65])]:_0x386b97([0x45,0x43,0x44,0x53,0x41]),[_0x386b97([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x386b97([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x386b97([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b9d6d[_0x386b97([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x386b97([0x6e,0x61,0x6d,0x65])]:_0x386b97([0x45,0x43,0x44,0x53,0x41]),[_0x386b97([0x68,0x61,0x73,0x68])]:{[_0x386b97([0x6e,0x61,0x6d,0x65])]:_0x386b97([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a38fc,_0x3b2ef5,_0xd8acf2)||(_0xbad11=!0x1);}}function _0x3dee3b(_0x28a54a){return _0x28a54a[_0x386b97([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x386b97([0x65,0x79]))?JSON[_0x386b97([0x70,0x61,0x72,0x73,0x65])](_0x1116a3(_0x28a54a)):null;}function _0x1116a3(_0x5cb571){return window[_0x386b97([0x61,0x74,0x6f,0x62])](_0x5cb571[_0x386b97([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x386b97([0x2b]))[_0x386b97([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x386b97([0x2f])));}function _0x344b05(_0x46e49f){let _0x358872=0x1505;function _0x25aa3e(_0x3acc97){for(let _0x53cef3=0x0;_0x53cef3<_0x3acc97[_0x386b97([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53cef3++){const _0x299c50=_0x3acc97[_0x386b97([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53cef3);_0x358872=(_0x358872<<0x5)+_0x358872+_0x299c50,_0x358872&=_0x358872;}}function _0xa1c0d2(_0x16b8a2){Array[_0x386b97([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x16b8a2)?_0x16b8a2[_0x386b97([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa1c0d2):_0x16b8a2&&typeof _0x16b8a2==_0x386b97([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x386b97([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x16b8a2)[_0x386b97([0x73,0x6f,0x72,0x74])]()[_0x386b97([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x322ccc,_0x32f137])=>{_0x25aa3e(_0x322ccc),_0xa1c0d2(_0x32f137);}):_0x25aa3e(window[_0x386b97([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x16b8a2));}return _0xa1c0d2(_0x46e49f),_0x358872>>>0x0;}function _0x2af9a6(_0x3e328d){return _0x3e328d[_0x386b97([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x386b97([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x386b97([0x30]));}function _0x6982e4(_0x590862){return _0x590862[_0x386b97([0x73,0x70,0x6c,0x69,0x74])]('')[_0x386b97([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x386b97([0x6a,0x6f,0x69,0x6e])]('');}function _0x632210(){}function _0x386b97(_0x281d0d){return _0x281d0d['map'](_0x5d248c=>String['fromCharCode'](_0x5d248c))['join']('');}_0x5afaa5(await _0x2bb27b());}(this);}}const g=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],h=['color','font-family','font-size'],O={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x315f21=>Number(_0x315f21)>=0x258,'strong']],'text-decoration':[['underline','u'],['line-through','s']],'text-decoration-line':[['underline','u'],['line-through','s']],'vertical-align':[['sub','sub'],['super','sup']]};function E(_0x3a8f42){return g['includes'](_0x3a8f42);}function P(_0x3dee0a){return Array['from'](_0x3dee0a['getStyleNames']())['filter'](E);}function F(_0x425ced,_0x109f39,_0x6cf57a){const {spanStyles:_0x9eb2af,stylesToBeHtmlElements:_0x5e5b2a}=x(_0x425ced,_0x6cf57a);!function(_0x10318d,_0x343756,_0x401b09){for(const _0x5b6fe6 in _0x401b09){_0x401b09[_0x5b6fe6]['forEach'](([,_0x8cd9ef])=>{const _0x1111c0=_0x343756['createElement'](_0x8cd9ef,[],_0x10318d['getChildren']());_0x343756['insertChild'](0x0,_0x1111c0,_0x10318d);}),_0x343756['removeStyle'](_0x5b6fe6,_0x10318d);}}(_0x425ced,_0x109f39,_0x5e5b2a),function(_0x19672f,_0x465169,_0x18c3f7){if(!Object['keys'](_0x18c3f7)['length'])return;const _0x7e8c6e=_0x465169['createElement']('span',[],_0x19672f['getChildren']());_0x465169['setStyle'](_0x18c3f7,_0x7e8c6e),_0x465169['insertChild'](0x0,_0x7e8c6e,_0x19672f),_0x465169['removeStyle'](Object['keys'](_0x18c3f7),_0x19672f);}(_0x425ced,_0x109f39,_0x9eb2af);}function L(_0x422422,_0x50544d,_0x56dff6){const {spanStyles:_0x217232}=x(_0x422422,_0x56dff6),_0x44e64a=Object['keys'](_0x217232);if(!_0x44e64a['length'])return;let _0x574e51=!0x1;for(const _0xd3ed63 of _0x422422['getChildren']())if(_0xd3ed63['is']('element','span')){_0x574e51=!0x0;for(const [_0x5e7cc8,_0x1f4b2a]of Object['entries'](_0x217232))_0xd3ed63['hasStyle'](_0x5e7cc8)||_0x50544d['setStyle']({[_0x5e7cc8]:_0x1f4b2a},_0xd3ed63);}_0x574e51&&_0x50544d['removeStyle'](_0x44e64a,_0x422422);}function x(_0x1ce281,_0x377c65){const _0x31eba8={},_0x23abc9={};return _0x377c65['forEach'](_0x71d11=>{const _0x36561b=_0x1ce281['getStyle'](_0x71d11);if(_0x36561b){if(function(_0x4cc661){return h['includes'](_0x4cc661);}(_0x71d11))_0x31eba8[_0x71d11]=_0x36561b;else{if(function(_0x405bcf){return _0x405bcf in O;}(_0x71d11)){const _0x1dc0ff=_0x36561b['split']('\x20');O[_0x71d11]['forEach'](([_0x3b5d4e,_0x1ac4bf])=>{for(const _0x14c882 of _0x1dc0ff){('function'==typeof _0x3b5d4e&&_0x3b5d4e(_0x14c882)||_0x3b5d4e===_0x14c882)&&(_0x23abc9[_0x71d11]=[..._0x23abc9[_0x71d11]||[],[_0x3b5d4e,_0x1ac4bf]]);}});}}}}),{'spanStyles':_0x31eba8,'stylesToBeHtmlElements':_0x23abc9};}class MSOfficeInlineStylePropagator extends _0x5da7e1{['execute'](_0x41768f){const {body:_0x401f09}=_0x41768f['_parsedData'],_0x9984e8=new _0x431b4c(_0x401f09['document']),_0x1830f1=_0x9984e8['createRangeIn'](_0x401f09),_0x431d36=new _0x1b4823(_0x9984e8['document']['stylesProcessor']),_0x54d330=[...new _0x991bd4(_0x431d36)['blockElements'],'font'],_0x1e6e40=_0x1830f1['getItems']();for(const _0x4968f9 of _0x1e6e40)if(_0x4968f9['is']('element')&&_0x54d330['includes'](_0x4968f9['name'])){if(_0x4968f9['hasStyle']('mso-list')&&'none'!==_0x4968f9['getStyle']('mso-list')){L(_0x4968f9,_0x9984e8,P(_0x4968f9));continue;}F(_0x4968f9,_0x9984e8,P(_0x4968f9));}_0x41768f['content']=_0x401f09;}['isActive'](_0x10ac1e){return super['isActive'](_0x10ac1e)||l(_0x10ac1e);}}class PasteFromOfficeEnhancedPropagator extends _0x5e9441{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x343ad0];}['init'](){const _0x5c3ec8=this['editor'],_0x319711=_0x5c3ec8['plugins']['get']('ClipboardPipeline'),_0x52a621=_0x5c3ec8['editing']['view']['document'],_0x30a10b=new MSOfficeInlineStylePropagator(_0x52a621);_0x319711['on']('inputTransformation',(_0x5bc441,_0x3e9d11)=>{const _0x488e33=_0x3e9d11['dataTransfer']['getData']('text/html');_0x30a10b['isActive'](_0x488e33)&&(_0x3e9d11['_parsedData']||(_0x3e9d11['_parsedData']=_0x2958f2(_0x488e33,_0x52a621['stylesProcessor'])),_0x30a10b['execute'](_0x3e9d11));},{'priority':_0x3631b2['get']('high')+0xa}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3d5058=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x351531;for(const _0x204c98 in _0x3d5058){const _0x2834e5=_0x204c98,_0x42ca59=_0x3d5058[_0x2834e5];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x42ca59||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x42ca59||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x42ca59||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x42ca59||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x42ca59||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x42ca59||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x42ca59){delete _0x3d5058[_0x2834e5],_0x351531=_0x42ca59,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x351531&&_0x3d5058['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x351531&&_0x3d5058['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x351531&&_0x3d5058['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x351531&&_0x3d5058['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x351531&&_0x3d5058['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x351531&&_0x3d5058['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}class PasteFromOfficeEnhanced extends _0x5e9441{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x343ad0,PasteFromOfficeEnhancedInliner,PasteFromOfficeEnhancedPropagator];}}export{PasteFromOfficeEnhanced};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-paste-from-office-enhanced",
|
|
3
|
-
"version": "48.8.1-alpha.
|
|
3
|
+
"version": "48.8.1-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.8.1-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "48.8.1-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "48.8.1-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-paste-from-office": "48.8.1-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-utils": "48.8.1-alpha.
|
|
34
|
+
"@ckeditor/ckeditor5-clipboard": "48.8.1-alpha.1",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "48.8.1-alpha.1",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "48.8.1-alpha.1",
|
|
37
|
+
"@ckeditor/ckeditor5-paste-from-office": "48.8.1-alpha.1",
|
|
38
|
+
"@ckeditor/ckeditor5-utils": "48.8.1-alpha.1"
|
|
39
39
|
},
|
|
40
40
|
"files": [
|
|
41
41
|
"dist",
|