@ckeditor/ckeditor5-paste-from-office-enhanced 48.5.0-alpha.4 → 48.5.0-alpha.6

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x501ec3}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x5b642a,PasteFromOfficeMSWordNormalizer as _0x4a49c1}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x2b3f9f,uid as _0x24368f}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x352193,ViewDomConverter as _0x30e43f,ViewUpcastWriter as _0x475189}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x3d12bf){return f['test'](_0x3d12bf);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x404c8c,_0x455ed0){const _0x56c15f=new Map();for(const [_0x5d4dbd,_0xaceedc]of _0x455ed0){if(!_0x5d4dbd['tagName']&&!_0x5d4dbd['className'])continue;const _0x2b18c4=!_0x5d4dbd['tagName']||_0x404c8c['name']===_0x5d4dbd['tagName'],_0x2d432b=!_0x5d4dbd['className']||_0x404c8c['hasClass'](_0x5d4dbd['className']);_0x2b18c4&&_0x2d432b&&_0x56c15f['set'](_0x5d4dbd,_0xaceedc);}return _0x56c15f;}function m(_0x470b05){const _0x516eb4={};for(let _0x5658c0=0x0;_0x5658c0<_0x470b05['length'];_0x5658c0++){const _0x8287cc=_0x470b05[_0x5658c0],_0x45e0a5=_0x470b05['getPropertyValue'](_0x8287cc);'initial'!==_0x45e0a5&&(_0x516eb4[_0x8287cc]=_0x45e0a5);}return _0x516eb4;}function w(_0x5c8b68){const _0x3f7eda=_0x5c8b68['split'](',')['map'](_0x4ac1c4=>_0x4ac1c4['trim']()),_0xc4fa73=[];for(const _0x2bfd5d of _0x3f7eda){const _0xd68e3d=l['exec'](_0x2bfd5d);_0xd68e3d&&_0xc4fa73['push'](_0xd68e3d['groups']);}return _0xc4fa73;}function y(_0x1ca09f){const _0x57e5e7={};for(const _0xa6e9df of _0x1ca09f)Object['assign'](_0x57e5e7,_0xa6e9df);return _0x57e5e7;}var g=class extends _0x4a49c1{execute(_0x59c88a){const {styles:_0x217abe,stylesString:_0x27b7f1}=_0x59c88a['extraContent'],_0x3ad337=new _0x475189(_0x59c88a['content']['document']),_0x304cf4=_0x3ad337['createRangeIn'](_0x59c88a['content']),_0x17bc34=function(_0x431647){const _0x27f32c={};for(const _0x5785bb of _0x431647)for(const _0x13366e of _0x5785bb['cssRules'])if(_0x13366e instanceof CSSStyleRule){const _0x2218b4=m(_0x13366e['style']);_0x27f32c[_0x13366e['selectorText']]=Object['assign']({},_0x27f32c[_0x13366e['selectorText']]||{},_0x2218b4);}return _0x27f32c;}(_0x217abe),_0x37b6e1=function(_0x5dcea1){const _0x59d9b5=new Map();for(const _0x124434 in _0x5dcea1){const _0x204422=w(_0x124434),_0x28f21c=_0x5dcea1[_0x124434];for(const _0x289110 of _0x204422)_0x59d9b5['set'](_0x289110,_0x28f21c);}return _0x59d9b5;}(_0x17bc34),_0x1f3f94=function(_0x488f1f){const _0x2f73b7={},_0x504152=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x1488d6=/\.(?<className>[\w-]+)/g;let _0x4f5069;for(;null!==(_0x4f5069=_0x504152['exec'](_0x488f1f));){const {selector:_0x14be7d,color:_0x23da82,patternType:_0x230b00}=_0x4f5069['groups'];if('auto'!==_0x23da82['toLowerCase']()&&'none'!==_0x230b00['toLowerCase']()&&'auto'!==_0x230b00['toLowerCase']()){for(const _0x27050a of _0x14be7d['matchAll'](_0x1488d6))_0x2f73b7[_0x27050a['groups']['className']]=_0x23da82;}}return _0x2f73b7;}(_0x27b7f1);for(const _0x4a7d0b of _0x304cf4){if('elementStart'!==_0x4a7d0b['type'])continue;const _0x2b15b8=_0x4a7d0b['item'],_0x268ea4=d(_0x2b15b8,_0x37b6e1),_0x37853b=_0x268ea4['size']?y(Array['from'](_0x268ea4['values']())):{};if(!('background-color'in _0x37853b)&&!('background'in _0x37853b)){for(const [_0x1280bc,_0x284f26]of Object['entries'](_0x1f3f94))if(_0x2b15b8['hasClass'](_0x1280bc)){_0x37853b['background-color']=_0x284f26;break;}}for(const _0x8a8a22 in _0x37853b)_0x2b15b8['hasStyle'](_0x8a8a22)||_0x3ad337['setStyle'](_0x8a8a22,_0x37853b[_0x8a8a22],_0x2b15b8);}}isActive(_0xc0797f){return super['isActive'](_0xc0797f)||u(_0xc0797f);}},p=class extends _0x501ec3{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5b642a];}init(){const _0x26cee5=this['editor'],_0xf746ed=_0x26cee5['plugins']['get']('PasteFromOffice'),_0x54dc4c=_0x26cee5['editing']['view']['document'],_0x53f866=new g(_0x54dc4c);_0xf746ed['registerNormalizer'](_0x53f866,_0x2b3f9f['high']+0xb);}afterInit(){!async function(_0x2f1a7d){const _0x22b993='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x1fe6db=0x79428,_0x2bcef6={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x165ff5(_0x15e78d){const _0x5382c6=new window['Promise'](_0x3251e8=>{_0x15e78d['once']('ready',_0x3251e8);}),_0x4843ff=window['Date']['now'](),_0x2e5319=_0x15e78d['config']['get']('licenseKey');async function _0x55dff1(){let _0x1d8c5e,_0x165334=null,_0x2c919c=null;try{return'GPL'==_0x2e5319?'NotAllowed':(_0x1d8c5e=_0x3cc531(),_0x1d8c5e?(_0x1d8c5e['usageEndpoint']&&(_0x2c919c=_0x3dafea(_0x1d8c5e['usageEndpoint'],_0x1d8c5e['jti'])),await _0x4ff420()?_0x15c1c1()?_0x53b2d8()?'Expired':_0x12f543()?('evaluation'==_0x1d8c5e['licenseType']&&(_0x165334=_0x35404c('EvaluationLimit')),await _0x1edf69()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x53b2d8(){const _0x1ce742=['evaluation','trial']['includes'](_0x1d8c5e['licenseType'])?_0x4843ff/0x3e8:0xe10*_0x1fe6db;return _0x1d8c5e['exp']<_0x1ce742;}function _0x15c1c1(){const _0x4b1f47=_0x1d8c5e['features'];return!!_0x4b1f47&&(!!_0x4b1f47['includes']('*')||(!!_0x4b1f47['includes']('POE')||(!!_0x4b1f47['includes']('PP')||!(!_0x4b1f47['includes']('TRILIUM')||!_0x27adc0()))));}function _0x12f543(){const _0x31df51=_0x1d8c5e['licensedHosts'];if(!_0x31df51||0x0==_0x31df51['length'])return!0x0;const {hostname:_0x2c6cf3}=new URL(window['location']['href']);if(_0x31df51['includes'](_0x2c6cf3))return!0x0;const _0x1202d1=_0x2c6cf3['split']('.');return _0x31df51['filter'](_0x3d9f49=>_0x3d9f49['includes']('*'))['map'](_0x5740a5=>_0x5740a5['split']('.'))['filter'](_0x246a28=>_0x246a28['length']<=_0x1202d1['length'])['map'](_0x20a6cc=>Array(_0x1202d1['length']-_0x20a6cc['length'])['fill']('*'===_0x20a6cc[0x0]?'*':'')['concat'](_0x20a6cc))['some'](_0x503dfb=>_0x1202d1['every']((_0x53cd67,_0x32260c)=>_0x503dfb[_0x32260c]===_0x53cd67||'*'===_0x503dfb[_0x32260c]));}function _0x1edf69(){return _0x165334&&_0x2c919c?new window['Promise']((_0x429fc1,_0x48dee5)=>{_0x165334['then'](_0x429fc1,_0x48dee5),_0x2c919c['then'](_0xf20b01=>{'Valid'!=_0xf20b01&&_0x429fc1(_0xf20b01);},_0x48dee5);}):_0x165334||_0x2c919c||'Valid';}}function _0x3dafea(_0x1396c4,_0x400ab7){return new window['Promise'](_0x53a10c=>{if(_0x243158())return _0x53a10c('Valid');_0x59fb91(),_0x15e78d['decorate']('_sendUsageRequest');let _0x5bf305=!0x1;const _0x229190=_0x24368f();function _0x390d52(_0x12f49e){return!!_0x12f49e&&('object'==typeof _0x12f49e||'function'==typeof _0x12f49e)&&'function'==typeof _0x12f49e['then']&&'function'==typeof _0x12f49e['catch'];}function _0x11ec17(_0x558c20){_0x572d08(_0x558c20)['then'](_0x1c66a2=>_0x1c66a2&&'ok'==_0x1c66a2['status']?_0x5ce96b(_0x5174b0(_0x229190+_0x400ab7))!=_0x1c66a2['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x27aeb4=>(_0x1c7c82(),_0x27aeb4),()=>{const _0x3c71ac=_0x12e58c();return null==_0x3c71ac?(_0x1c7c82(),'Valid'):_0x4843ff-_0x3c71ac>0x240c8400?'UsageLimit':'Valid';})['then'](_0x53a10c)['catch'](()=>{_0x53a10c('UsageLimit');});const _0x2cc587=0x36ee80;function _0x1c7c82(){const _0x526d45='llct-'+_0x5ce96b(_0x5174b0(_0x1396c4)),_0x3f9c37=_0x17e073(_0x5ce96b(window['Math']['ceil'](_0x4843ff/_0x2cc587)));window['localStorage']['setItem'](_0x526d45,_0x3f9c37);}function _0x12e58c(){const _0xb87fe7='llct-'+_0x5ce96b(_0x5174b0(_0x1396c4)),_0x3e23da=window['localStorage']['getItem'](_0xb87fe7);return _0x3e23da?window['parseInt'](_0x17e073(_0x3e23da),0x10)*_0x2cc587:null;}function _0x572d08(_0x3527dc){return new window['Promise']((_0x228f2e,_0x4c1b35)=>{_0x3527dc['then'](_0x228f2e,_0x4c1b35),window['setTimeout'](_0x4c1b35,0x1d4c0);});}}_0x15e78d['on']('_sendUsageRequest',(_0xdef40a,_0x330002)=>{if(_0x330002[0x0]!=_0x1396c4)return _0x53a10c('UsageLimit');_0x330002[0x1]={..._0x330002[0x1],'requestId':_0x229190};},{'priority':'high'}),_0x15e78d['on']('_sendUsageRequest',_0x4ea8b9=>{_0x390d52(_0x4ea8b9['return'])&&(_0x5bf305=!0x0,_0x11ec17(_0x4ea8b9['return']));},{'priority':'low'}),_0x5382c6['then'](()=>{_0x5bf305||_0x53a10c('UsageLimit');});});function _0x243158(){return'auto'==_0x15e78d['editing']['view']['_overlayModeHint'];}function _0x59fb91(){_0x15e78d['editing']['view']['_overlayModeHint']='auto';}}function _0x35404c(_0x5199db){const _0x1e1f63=[new window['Promise'](_0x1453af=>setTimeout(_0x1453af,0x93ecc)),_0x5382c6['then'](()=>new window['Promise'](_0x189724=>{let _0x447212=0x0;_0x15e78d['model']['on']('applyOperation',(_0x2e9de2,_0x4ca4a1)=>{_0x4ca4a1[0x0]['isDocumentOperation']&&_0x447212++,0x5e8==_0x447212&&(_0x189724(),_0x2e9de2['off']());});}))];return window['Promise']['race'](_0x1e1f63)['then'](()=>_0x5199db);}async function _0x2ed89f(){await _0x5382c6,_0x15e78d['model']['change']=_0x4a1264,_0x15e78d['model']['enqueueChange']=_0x4a1264,_0x15e78d['enableReadOnlyMode']('model');}function _0x27adc0(){return window['glob']&&window['glob']['triliumVersion'];}function _0x331e05(_0x1e2e9e){const _0x4691b6=_0x451155();_0x15e78d[_0x4691b6]='pasteFromOfficeEnhancedLicenseKey'+_0x1e2e9e,'Valid'!=_0x1e2e9e&&_0x2ed89f();}function _0x451155(){const _0x7b8985=window['String'](window['performance']['now']())['replace']('.','');let _0x1c9ed0='u';for(let _0x49fbd7=0x0;_0x49fbd7<_0x7b8985['length'];_0x49fbd7+=0x2){let _0x243e01=window['parseInt'](_0x7b8985['substring'](_0x49fbd7,_0x49fbd7+0x2));_0x243e01>=0x3e&&(_0x243e01-=0x3e),_0x1c9ed0+=_0x22b993[_0x243e01];}return _0x1c9ed0;}function _0x3cc531(){const _0x2a41ee=_0x2e5319['split']('.');if(0x3!=_0x2a41ee['length'])return null;return _0x3b7e80(_0x2a41ee[0x1]);function _0x3b7e80(_0x53df3c){const _0x9cba29=_0x530dc6(_0x53df3c);return _0x9cba29&&_0x1d7738()?_0x9cba29:null;function _0x1d7738(){const _0x306afd=_0x9cba29['jti'],_0xc88df1=window['parseInt'](_0x306afd['substring'](_0x306afd['length']-0x8),0x10),_0x35a854={..._0x9cba29,'jti':_0x306afd['substring'](0x0,_0x306afd['length']-0x8)};return delete _0x35a854['vc'],_0x5174b0(_0x35a854)==_0xc88df1;}}}async function _0x4ff420(){let _0x5d6cb8=!0x0;try{const [_0x6853fe,_0xa8caa0,_0x20ea47]=_0x2e5319['split']('.');return _0x14942e(_0x6853fe),await _0x33beb1(_0x6853fe,_0xa8caa0,_0x20ea47),_0x5d6cb8;}catch{return!0x1;}function _0x14942e(_0x4b72c3){const _0x57d9ea=_0x530dc6(_0x4b72c3);_0x57d9ea&&'ES256'==_0x57d9ea['alg']||(_0x5d6cb8=!0x1);}async function _0x33beb1(_0x34e9e6,_0x1aed79,_0x1ab063){const _0x25268b=window['Uint8Array']['from'](_0x389489(_0x1ab063),_0x4f9fc3=>_0x4f9fc3['charCodeAt'](0x0)),_0x470bd7=new window['TextEncoder']()['encode'](_0x34e9e6+'.'+_0x1aed79),_0x462d47=window['crypto']['subtle'];if(!_0x462d47)return;const _0x1ae132=await _0x462d47['importKey']('jwk',_0x2bcef6,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x462d47['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x1ae132,_0x25268b,_0x470bd7)||(_0x5d6cb8=!0x1);}}function _0x530dc6(_0x348242){return _0x348242['startsWith']('ey')?JSON['parse'](_0x389489(_0x348242)):null;}function _0x389489(_0x4acc59){return window['atob'](_0x4acc59['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5174b0(_0x4e3788){let _0x5d26be=0x1505;function _0x352063(_0x540e6e){for(let _0x5ca806=0x0;_0x5ca806<_0x540e6e['length'];_0x5ca806++){const _0x349d6b=_0x540e6e['charCodeAt'](_0x5ca806);_0x5d26be=(_0x5d26be<<0x5)+_0x5d26be+_0x349d6b,_0x5d26be&=_0x5d26be;}}function _0x1a7641(_0x2aac3a){Array['isArray'](_0x2aac3a)?_0x2aac3a['forEach'](_0x1a7641):_0x2aac3a&&'object'==typeof _0x2aac3a?Object['entries'](_0x2aac3a)['sort']()['forEach'](([_0x795a6c,_0x226161])=>{_0x352063(_0x795a6c),_0x1a7641(_0x226161);}):_0x352063(window['String'](_0x2aac3a));}return _0x1a7641(_0x4e3788),_0x5d26be>>>0x0;}function _0x5ce96b(_0x59a1c2){return _0x59a1c2['toString'](0x10)['padStart'](0x8,'0');}function _0x17e073(_0x32d169){return _0x32d169['split']('')['reverse']()['join']('');}function _0x4a1264(){}_0x331e05(await _0x55dff1());}_0x165ff5(_0x2f1a7d['editor']);}(this);}};const h=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],O=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x84920c=>Number(_0x84920c)>=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(_0x5da83b){return h['includes'](_0x5da83b);}function v(_0x82b3d9){return Array['from'](_0x82b3d9['getStyleNames']())['filter'](E);}function F(_0x9dbd0f,_0x40b985,_0x1f2bef){const {spanStyles:_0x477cfd,stylesToBeHtmlElements:_0x1dba25}=K(_0x9dbd0f,_0x1f2bef);!function(_0x5a5df9,_0x424966,_0x5be702){for(const _0x101f36 in _0x5be702)_0x5be702[_0x101f36]['forEach'](([,_0x5d9be5])=>{const _0x1d316e=_0x424966['createElement'](_0x5d9be5,[],_0x5a5df9['getChildren']());_0x424966['insertChild'](0x0,_0x1d316e,_0x5a5df9);}),_0x424966['removeStyle'](_0x101f36,_0x5a5df9);}(_0x9dbd0f,_0x40b985,_0x1dba25),function(_0x158288,_0xe7442a,_0x265569){if(!Object['keys'](_0x265569)['length'])return;const _0x17ad9c=_0xe7442a['createElement']('span',[],_0x158288['getChildren']());_0xe7442a['setStyle'](_0x265569,_0x17ad9c),_0xe7442a['insertChild'](0x0,_0x17ad9c,_0x158288),_0xe7442a['removeStyle'](Object['keys'](_0x265569),_0x158288);}(_0x9dbd0f,_0x40b985,_0x477cfd);}function P(_0x157e2f,_0x2920a6,_0x27f5a9){const {spanStyles:_0x148c20}=K(_0x157e2f,_0x27f5a9),_0x6dd2ec=Object['keys'](_0x148c20);if(!_0x6dd2ec['length'])return;let _0x59e397=!0x1;for(const _0x274886 of _0x157e2f['getChildren']())if(_0x274886['is']('element','span')){_0x59e397=!0x0;for(const [_0x3beaa7,_0x287d24]of Object['entries'](_0x148c20))_0x274886['hasStyle'](_0x3beaa7)||_0x2920a6['setStyle']({[_0x3beaa7]:_0x287d24},_0x274886);}_0x59e397&&_0x2920a6['removeStyle'](_0x6dd2ec,_0x157e2f);}function K(_0x4cdf30,_0x5c1a37){const _0x4ea5dd={},_0xdb188={};return _0x5c1a37['forEach'](_0x1608e0=>{const _0x3f479e=_0x4cdf30['getStyle'](_0x1608e0);if(_0x3f479e){if(function(_0x33b28b){return O['includes'](_0x33b28b);}(_0x1608e0))_0x4ea5dd[_0x1608e0]=_0x3f479e;else{if(function(_0x4277d2){return _0x4277d2 in L;}(_0x1608e0)){const _0x37f127=_0x3f479e['split']('\x20');L[_0x1608e0]['forEach'](([_0x3e49bd,_0xa85914])=>{for(const _0xf2a5a6 of _0x37f127)('function'==typeof _0x3e49bd&&_0x3e49bd(_0xf2a5a6)||_0x3e49bd===_0xf2a5a6)&&(_0xdb188[_0x1608e0]=[..._0xdb188[_0x1608e0]||[],[_0x3e49bd,_0xa85914]]);});}}}}),{'spanStyles':_0x4ea5dd,'stylesToBeHtmlElements':_0xdb188};}var b=class extends _0x4a49c1{execute(_0x2a4b6f){const _0x5c753d=new _0x475189(_0x2a4b6f['content']['document']),_0x464756=_0x5c753d['createRangeIn'](_0x2a4b6f['content']),_0x337c64=new _0x352193(_0x5c753d['document']['stylesProcessor']),_0x51da5a=[...new _0x30e43f(_0x337c64)['blockElements'],'font'],_0x825ed8=_0x464756['getItems']();for(const _0xeefb5 of _0x825ed8)if(_0xeefb5['is']('element')&&_0x51da5a['includes'](_0xeefb5['name'])){if(_0xeefb5['hasStyle']('mso-list')&&'none'!==_0xeefb5['getStyle']('mso-list')){P(_0xeefb5,_0x5c753d,v(_0xeefb5));continue;}F(_0xeefb5,_0x5c753d,v(_0xeefb5));}}isActive(_0x4a7d60){return super['isActive'](_0x4a7d60)||u(_0x4a7d60);}},x=class extends _0x501ec3{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5b642a];}init(){const _0x5e3cc6=this['editor'],_0x5dcefe=_0x5e3cc6['plugins']['get']('PasteFromOffice'),_0x2ab644=_0x5e3cc6['editing']['view']['document'],_0x23b71c=new b(_0x2ab644);_0x5dcefe['registerNormalizer'](_0x23b71c,_0x2b3f9f['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x1b735b=[this['editor']];for(const _0x12ccb8 of _0x1b735b){let _0x3b00e0;for(const _0x35bee3 in _0x12ccb8){const _0x398280=_0x35bee3,_0x5a8b16=_0x12ccb8[_0x398280];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x5a8b16||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x5a8b16||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x5a8b16||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x5a8b16||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x5a8b16||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x5a8b16||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x5a8b16){delete _0x12ccb8[_0x398280],_0x3b00e0=_0x5a8b16,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x3b00e0&&_0x12ccb8['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x3b00e0&&_0x12ccb8['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x3b00e0&&_0x12ccb8['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x3b00e0&&_0x12ccb8['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x3b00e0&&_0x12ccb8['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x3b00e0&&_0x12ccb8['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x501ec3{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5b642a,p,x];}};export{k as PasteFromOfficeEnhanced};
23
+ import{Plugin as _0x3ca00b}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x5d503f,PasteFromOfficeMSWordNormalizer as _0x343663}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0xb9280,uid as _0x358eb6}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x330319,ViewDomConverter as _0x2892ee,ViewUpcastWriter as _0x2fb99a}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x4bd1d2){return f['test'](_0x4bd1d2);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x65c110,_0xfd4996){const _0xf10289=new Map();for(const [_0x405b49,_0x488bf4]of _0xfd4996){if(!_0x405b49['tagName']&&!_0x405b49['className'])continue;const _0x55d6e9=!_0x405b49['tagName']||_0x65c110['name']===_0x405b49['tagName'],_0x406a28=!_0x405b49['className']||_0x65c110['hasClass'](_0x405b49['className']);_0x55d6e9&&_0x406a28&&_0xf10289['set'](_0x405b49,_0x488bf4);}return _0xf10289;}function m(_0x4ffcf1){const _0x3e15dd={};for(let _0xd158bb=0x0;_0xd158bb<_0x4ffcf1['length'];_0xd158bb++){const _0x2ec194=_0x4ffcf1[_0xd158bb],_0x1cb4d1=_0x4ffcf1['getPropertyValue'](_0x2ec194);'initial'!==_0x1cb4d1&&(_0x3e15dd[_0x2ec194]=_0x1cb4d1);}return _0x3e15dd;}function w(_0x3c84d6){const _0x2170a8=_0x3c84d6['split'](',')['map'](_0x2e85e4=>_0x2e85e4['trim']()),_0x5efabc=[];for(const _0x3d4671 of _0x2170a8){const _0x187ce3=l['exec'](_0x3d4671);_0x187ce3&&_0x5efabc['push'](_0x187ce3['groups']);}return _0x5efabc;}function y(_0xd4941b){const _0x258192={};for(const _0x4b7c7b of _0xd4941b)Object['assign'](_0x258192,_0x4b7c7b);return _0x258192;}var g=class extends _0x343663{execute(_0x4481f8){const {styles:_0x1b2fe7,stylesString:_0x318634}=_0x4481f8['extraContent'],_0x6f3a6d=new _0x2fb99a(_0x4481f8['content']['document']),_0x6d7fa9=_0x6f3a6d['createRangeIn'](_0x4481f8['content']),_0x2daf39=function(_0x911d6b){const _0x572ead={};for(const _0x40db66 of _0x911d6b)for(const _0x407940 of _0x40db66['cssRules'])if(_0x407940 instanceof CSSStyleRule){const _0x3c328d=m(_0x407940['style']);_0x572ead[_0x407940['selectorText']]=Object['assign']({},_0x572ead[_0x407940['selectorText']]||{},_0x3c328d);}return _0x572ead;}(_0x1b2fe7),_0x3bba52=function(_0x30084){const _0x5a8c01=new Map();for(const _0x183597 in _0x30084){const _0x426964=w(_0x183597),_0x362375=_0x30084[_0x183597];for(const _0x3a6c83 of _0x426964)_0x5a8c01['set'](_0x3a6c83,_0x362375);}return _0x5a8c01;}(_0x2daf39),_0x59352d=function(_0x35ba12){const _0x48d5e2={},_0x272be5=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x45a5d6=/\.(?<className>[\w-]+)/g;let _0x49825c;for(;null!==(_0x49825c=_0x272be5['exec'](_0x35ba12));){const {selector:_0x21a7e6,color:_0x502de2,patternType:_0x4e7a04}=_0x49825c['groups'];if('auto'!==_0x502de2['toLowerCase']()&&'none'!==_0x4e7a04['toLowerCase']()&&'auto'!==_0x4e7a04['toLowerCase']()){for(const _0x4a7bba of _0x21a7e6['matchAll'](_0x45a5d6))_0x48d5e2[_0x4a7bba['groups']['className']]=_0x502de2;}}return _0x48d5e2;}(_0x318634);for(const _0x8c9c03 of _0x6d7fa9){if('elementStart'!==_0x8c9c03['type'])continue;const _0x2ebf9f=_0x8c9c03['item'],_0x3a6f5f=d(_0x2ebf9f,_0x3bba52),_0x5615c4=_0x3a6f5f['size']?y(Array['from'](_0x3a6f5f['values']())):{};if(!('background-color'in _0x5615c4)&&!('background'in _0x5615c4)){for(const [_0x2e2e1c,_0x40e891]of Object['entries'](_0x59352d))if(_0x2ebf9f['hasClass'](_0x2e2e1c)){_0x5615c4['background-color']=_0x40e891;break;}}for(const _0x53d54d in _0x5615c4)_0x2ebf9f['hasStyle'](_0x53d54d)||_0x6f3a6d['setStyle'](_0x53d54d,_0x5615c4[_0x53d54d],_0x2ebf9f);}}isActive(_0x555c19){return super['isActive'](_0x555c19)||u(_0x555c19);}},p=class extends _0x3ca00b{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5d503f];}init(){const _0x4bae15=this['editor'],_0x51be10=_0x4bae15['plugins']['get']('PasteFromOffice'),_0x18b8b3=_0x4bae15['editing']['view']['document'],_0x51c31a=new g(_0x18b8b3);_0x51be10['registerNormalizer'](_0x51c31a,_0xb9280['high']+0xb);}afterInit(){!async function(_0x13ce98){const _0x422db5='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x304fad=0x79458,_0x1e5adf={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x1712d7(_0x226b4e){const _0x32d4a8=new window['Promise'](_0x4384ba=>{_0x226b4e['once']('ready',_0x4384ba);}),_0x1a999f=window['Date']['now'](),_0x3e7c47=_0x226b4e['config']['get']('licenseKey');async function _0x28ce08(){let _0x2f3034,_0x187a5c=null,_0x51adcb=null;try{return'GPL'==_0x3e7c47?'NotAllowed':(_0x2f3034=_0x4df411(),_0x2f3034?(_0x2f3034['usageEndpoint']&&(_0x51adcb=_0x1acbfc(_0x2f3034['usageEndpoint'],_0x2f3034['jti'])),await _0x169d7c()?_0x3607e6()?_0x4d1bf6()?'Expired':_0x4e0214()?('evaluation'==_0x2f3034['licenseType']&&(_0x187a5c=_0x260670('EvaluationLimit')),await _0x7db7be()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4d1bf6(){const _0x3d0ae5=['evaluation','trial']['includes'](_0x2f3034['licenseType'])?_0x1a999f/0x3e8:0xe10*_0x304fad;return _0x2f3034['exp']<_0x3d0ae5;}function _0x3607e6(){const _0x2fb42c=_0x2f3034['features'];return!!_0x2fb42c&&(!!_0x2fb42c['includes']('*')||(!!_0x2fb42c['includes']('POE')||(!!_0x2fb42c['includes']('PP')||!(!_0x2fb42c['includes']('TRILIUM')||!_0xd5540()))));}function _0x4e0214(){const _0x280d32=_0x2f3034['licensedHosts'];if(!_0x280d32||0x0==_0x280d32['length'])return!0x0;const {hostname:_0x2d99cc}=new URL(window['location']['href']);if(_0x280d32['includes'](_0x2d99cc))return!0x0;const _0x181e6b=_0x2d99cc['split']('.');return _0x280d32['filter'](_0x13e7ba=>_0x13e7ba['includes']('*'))['map'](_0x394f87=>_0x394f87['split']('.'))['filter'](_0xaf831e=>_0xaf831e['length']<=_0x181e6b['length'])['map'](_0xd701c0=>Array(_0x181e6b['length']-_0xd701c0['length'])['fill']('*'===_0xd701c0[0x0]?'*':'')['concat'](_0xd701c0))['some'](_0x12e312=>_0x181e6b['every']((_0x73fd7b,_0x2426f6)=>_0x12e312[_0x2426f6]===_0x73fd7b||'*'===_0x12e312[_0x2426f6]));}function _0x7db7be(){return _0x187a5c&&_0x51adcb?new window['Promise']((_0x472062,_0x46ff3a)=>{_0x187a5c['then'](_0x472062,_0x46ff3a),_0x51adcb['then'](_0x4a3543=>{'Valid'!=_0x4a3543&&_0x472062(_0x4a3543);},_0x46ff3a);}):_0x187a5c||_0x51adcb||'Valid';}}function _0x1acbfc(_0x3cc437,_0x112a70){return new window['Promise'](_0x1ad470=>{if(_0x4872c2())return _0x1ad470('Valid');_0x253644(),_0x226b4e['decorate']('_sendUsageRequest');let _0x3d56ab=!0x1;const _0x4ed564=_0x358eb6();function _0x831859(_0x46e03b){return!!_0x46e03b&&('object'==typeof _0x46e03b||'function'==typeof _0x46e03b)&&'function'==typeof _0x46e03b['then']&&'function'==typeof _0x46e03b['catch'];}function _0x2046a6(_0x2a8d11){_0x2c6f65(_0x2a8d11)['then'](_0xbd2b12=>_0xbd2b12&&'ok'==_0xbd2b12['status']?_0x58968d(_0x43b760(_0x4ed564+_0x112a70))!=_0xbd2b12['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0xbfac77=>(_0x53aab7(),_0xbfac77),()=>{const _0x1d558b=_0x1051d8();return null==_0x1d558b?(_0x53aab7(),'Valid'):_0x1a999f-_0x1d558b>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1ad470)['catch'](()=>{_0x1ad470('UsageLimit');});const _0x1f87ad=0x36ee80;function _0x53aab7(){const _0x4d47fb='llct-'+_0x58968d(_0x43b760(_0x3cc437)),_0x28321f=_0x5328c6(_0x58968d(window['Math']['ceil'](_0x1a999f/_0x1f87ad)));window['localStorage']['setItem'](_0x4d47fb,_0x28321f);}function _0x1051d8(){const _0x42432f='llct-'+_0x58968d(_0x43b760(_0x3cc437)),_0x3bef0c=window['localStorage']['getItem'](_0x42432f);return _0x3bef0c?window['parseInt'](_0x5328c6(_0x3bef0c),0x10)*_0x1f87ad:null;}function _0x2c6f65(_0x22e8f8){return new window['Promise']((_0x355e1f,_0x2ea467)=>{_0x22e8f8['then'](_0x355e1f,_0x2ea467),window['setTimeout'](_0x2ea467,0x1d4c0);});}}_0x226b4e['on']('_sendUsageRequest',(_0x860a6b,_0xed463f)=>{if(_0xed463f[0x0]!=_0x3cc437)return _0x1ad470('UsageLimit');_0xed463f[0x1]={..._0xed463f[0x1],'requestId':_0x4ed564};},{'priority':'high'}),_0x226b4e['on']('_sendUsageRequest',_0x3932f9=>{_0x831859(_0x3932f9['return'])&&(_0x3d56ab=!0x0,_0x2046a6(_0x3932f9['return']));},{'priority':'low'}),_0x32d4a8['then'](()=>{_0x3d56ab||_0x1ad470('UsageLimit');});});function _0x4872c2(){return'auto'==_0x226b4e['editing']['view']['_overlayModeHint'];}function _0x253644(){_0x226b4e['editing']['view']['_overlayModeHint']='auto';}}function _0x260670(_0x7bc46a){const _0x23c880=[new window['Promise'](_0x2e6eed=>setTimeout(_0x2e6eed,0x93ecc)),_0x32d4a8['then'](()=>new window['Promise'](_0xabbd71=>{let _0x270c01=0x0;_0x226b4e['model']['on']('applyOperation',(_0x370811,_0x4d1658)=>{_0x4d1658[0x0]['isDocumentOperation']&&_0x270c01++,0x5e8==_0x270c01&&(_0xabbd71(),_0x370811['off']());});}))];return window['Promise']['race'](_0x23c880)['then'](()=>_0x7bc46a);}async function _0xef2cf(){await _0x32d4a8,_0x226b4e['model']['change']=_0x30c5b1,_0x226b4e['model']['enqueueChange']=_0x30c5b1,_0x226b4e['enableReadOnlyMode']('model');}function _0xd5540(){return window['glob']&&window['glob']['triliumVersion'];}function _0x254cdd(_0x2cee63){const _0x1c0663=_0x40cd44();_0x226b4e[_0x1c0663]='pasteFromOfficeEnhancedLicenseKey'+_0x2cee63,'Valid'!=_0x2cee63&&_0xef2cf();}function _0x40cd44(){const _0xe2047d=window['String'](window['performance']['now']())['replace']('.','');let _0x35a310='u';for(let _0x143349=0x0;_0x143349<_0xe2047d['length'];_0x143349+=0x2){let _0x4a051a=window['parseInt'](_0xe2047d['substring'](_0x143349,_0x143349+0x2));_0x4a051a>=0x3e&&(_0x4a051a-=0x3e),_0x35a310+=_0x422db5[_0x4a051a];}return _0x35a310;}function _0x4df411(){const _0x2d2ae8=_0x3e7c47['split']('.');if(0x3!=_0x2d2ae8['length'])return null;return _0x3d1329(_0x2d2ae8[0x1]);function _0x3d1329(_0x275626){const _0x511bb2=_0x17851d(_0x275626);return _0x511bb2&&_0x33f12e()?_0x511bb2:null;function _0x33f12e(){const _0x49ee49=_0x511bb2['jti'],_0x4875cb=window['parseInt'](_0x49ee49['substring'](_0x49ee49['length']-0x8),0x10),_0x3b06b2={..._0x511bb2,'jti':_0x49ee49['substring'](0x0,_0x49ee49['length']-0x8)};return delete _0x3b06b2['vc'],_0x43b760(_0x3b06b2)==_0x4875cb;}}}async function _0x169d7c(){let _0x43ba7d=!0x0;try{const [_0x581d9a,_0x161674,_0x552b67]=_0x3e7c47['split']('.');return _0x42655d(_0x581d9a),await _0x3c2106(_0x581d9a,_0x161674,_0x552b67),_0x43ba7d;}catch{return!0x1;}function _0x42655d(_0x5a7f6e){const _0x23747b=_0x17851d(_0x5a7f6e);_0x23747b&&'ES256'==_0x23747b['alg']||(_0x43ba7d=!0x1);}async function _0x3c2106(_0x1e5f64,_0x3896c2,_0x9fd75a){const _0x2d48dc=window['Uint8Array']['from'](_0x4803ab(_0x9fd75a),_0x10a482=>_0x10a482['charCodeAt'](0x0)),_0xd91d4d=new window['TextEncoder']()['encode'](_0x1e5f64+'.'+_0x3896c2),_0x516a02=window['crypto']['subtle'];if(!_0x516a02)return;const _0x5a6a29=await _0x516a02['importKey']('jwk',_0x1e5adf,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x516a02['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5a6a29,_0x2d48dc,_0xd91d4d)||(_0x43ba7d=!0x1);}}function _0x17851d(_0x5214df){return _0x5214df['startsWith']('ey')?JSON['parse'](_0x4803ab(_0x5214df)):null;}function _0x4803ab(_0x1949e5){return window['atob'](_0x1949e5['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x43b760(_0x2a8375){let _0x294da1=0x1505;function _0x12b6f8(_0x3f89e3){for(let _0x334158=0x0;_0x334158<_0x3f89e3['length'];_0x334158++){const _0x4ffefc=_0x3f89e3['charCodeAt'](_0x334158);_0x294da1=(_0x294da1<<0x5)+_0x294da1+_0x4ffefc,_0x294da1&=_0x294da1;}}function _0x5068d6(_0x41b3da){Array['isArray'](_0x41b3da)?_0x41b3da['forEach'](_0x5068d6):_0x41b3da&&'object'==typeof _0x41b3da?Object['entries'](_0x41b3da)['sort']()['forEach'](([_0x29eecc,_0x4d9660])=>{_0x12b6f8(_0x29eecc),_0x5068d6(_0x4d9660);}):_0x12b6f8(window['String'](_0x41b3da));}return _0x5068d6(_0x2a8375),_0x294da1>>>0x0;}function _0x58968d(_0x36ddf9){return _0x36ddf9['toString'](0x10)['padStart'](0x8,'0');}function _0x5328c6(_0x22229b){return _0x22229b['split']('')['reverse']()['join']('');}function _0x30c5b1(){}_0x254cdd(await _0x28ce08());}_0x1712d7(_0x13ce98['editor']);}(this);}};const h=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],O=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x3b3e13=>Number(_0x3b3e13)>=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(_0x46639d){return h['includes'](_0x46639d);}function v(_0x158be7){return Array['from'](_0x158be7['getStyleNames']())['filter'](E);}function F(_0x55b230,_0x2de92a,_0x1ab17e){const {spanStyles:_0x175e64,stylesToBeHtmlElements:_0xf443b7}=K(_0x55b230,_0x1ab17e);!function(_0x31649a,_0x1ffa9b,_0x1ac4ad){for(const _0x8fb8d2 in _0x1ac4ad)_0x1ac4ad[_0x8fb8d2]['forEach'](([,_0x5e145a])=>{const _0x23a14c=_0x1ffa9b['createElement'](_0x5e145a,[],_0x31649a['getChildren']());_0x1ffa9b['insertChild'](0x0,_0x23a14c,_0x31649a);}),_0x1ffa9b['removeStyle'](_0x8fb8d2,_0x31649a);}(_0x55b230,_0x2de92a,_0xf443b7),function(_0x4d0e75,_0x2f7939,_0x559326){if(!Object['keys'](_0x559326)['length'])return;const _0x5c284b=_0x2f7939['createElement']('span',[],_0x4d0e75['getChildren']());_0x2f7939['setStyle'](_0x559326,_0x5c284b),_0x2f7939['insertChild'](0x0,_0x5c284b,_0x4d0e75),_0x2f7939['removeStyle'](Object['keys'](_0x559326),_0x4d0e75);}(_0x55b230,_0x2de92a,_0x175e64);}function P(_0x54d229,_0x3e46b9,_0x3a404c){const {spanStyles:_0x548408}=K(_0x54d229,_0x3a404c),_0x23884b=Object['keys'](_0x548408);if(!_0x23884b['length'])return;let _0x330405=!0x1;for(const _0x41505b of _0x54d229['getChildren']())if(_0x41505b['is']('element','span')){_0x330405=!0x0;for(const [_0x23d731,_0x5b6335]of Object['entries'](_0x548408))_0x41505b['hasStyle'](_0x23d731)||_0x3e46b9['setStyle']({[_0x23d731]:_0x5b6335},_0x41505b);}_0x330405&&_0x3e46b9['removeStyle'](_0x23884b,_0x54d229);}function K(_0x1cc6a9,_0x191ece){const _0x53486a={},_0x5e4f63={};return _0x191ece['forEach'](_0x15095e=>{const _0x23bf02=_0x1cc6a9['getStyle'](_0x15095e);if(_0x23bf02){if(function(_0x2082e3){return O['includes'](_0x2082e3);}(_0x15095e))_0x53486a[_0x15095e]=_0x23bf02;else{if(function(_0x183b40){return _0x183b40 in L;}(_0x15095e)){const _0x191ad9=_0x23bf02['split']('\x20');L[_0x15095e]['forEach'](([_0x309069,_0x4df592])=>{for(const _0x4f0d66 of _0x191ad9)('function'==typeof _0x309069&&_0x309069(_0x4f0d66)||_0x309069===_0x4f0d66)&&(_0x5e4f63[_0x15095e]=[..._0x5e4f63[_0x15095e]||[],[_0x309069,_0x4df592]]);});}}}}),{'spanStyles':_0x53486a,'stylesToBeHtmlElements':_0x5e4f63};}var b=class extends _0x343663{execute(_0x254a15){const _0x161591=new _0x2fb99a(_0x254a15['content']['document']),_0x57fd01=_0x161591['createRangeIn'](_0x254a15['content']),_0x4dcfc3=new _0x330319(_0x161591['document']['stylesProcessor']),_0x25cd25=[...new _0x2892ee(_0x4dcfc3)['blockElements'],'font'],_0x3af203=_0x57fd01['getItems']();for(const _0x48b02d of _0x3af203)if(_0x48b02d['is']('element')&&_0x25cd25['includes'](_0x48b02d['name'])){if(_0x48b02d['hasStyle']('mso-list')&&'none'!==_0x48b02d['getStyle']('mso-list')){P(_0x48b02d,_0x161591,v(_0x48b02d));continue;}F(_0x48b02d,_0x161591,v(_0x48b02d));}}isActive(_0x394660){return super['isActive'](_0x394660)||u(_0x394660);}},x=class extends _0x3ca00b{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5d503f];}init(){const _0x2bce25=this['editor'],_0x260ed0=_0x2bce25['plugins']['get']('PasteFromOffice'),_0xa346cd=_0x2bce25['editing']['view']['document'],_0x30cef0=new b(_0xa346cd);_0x260ed0['registerNormalizer'](_0x30cef0,_0xb9280['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x28511c=[this['editor']];for(const _0x1a9da9 of _0x28511c){let _0x5a52b8;for(const _0x1ecf83 in _0x1a9da9){const _0x344674=_0x1ecf83,_0x4e421f=_0x1a9da9[_0x344674];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x4e421f||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4e421f||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4e421f||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4e421f||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4e421f||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4e421f||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4e421f){delete _0x1a9da9[_0x344674],_0x5a52b8=_0x4e421f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x5a52b8&&_0x1a9da9['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x5a52b8&&_0x1a9da9['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x5a52b8&&_0x1a9da9['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x5a52b8&&_0x1a9da9['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x5a52b8&&_0x1a9da9['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x5a52b8&&_0x1a9da9['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x3ca00b{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5d503f,p,x];}};export{k as PasteFromOfficeEnhanced};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-paste-from-office-enhanced",
3
- "version": "48.5.0-alpha.4",
3
+ "version": "48.5.0-alpha.6",
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.5.0-alpha.4",
35
- "@ckeditor/ckeditor5-core": "48.5.0-alpha.4",
36
- "@ckeditor/ckeditor5-engine": "48.5.0-alpha.4",
37
- "@ckeditor/ckeditor5-paste-from-office": "48.5.0-alpha.4",
38
- "@ckeditor/ckeditor5-utils": "48.5.0-alpha.4"
34
+ "@ckeditor/ckeditor5-clipboard": "48.5.0-alpha.6",
35
+ "@ckeditor/ckeditor5-core": "48.5.0-alpha.6",
36
+ "@ckeditor/ckeditor5-engine": "48.5.0-alpha.6",
37
+ "@ckeditor/ckeditor5-paste-from-office": "48.5.0-alpha.6",
38
+ "@ckeditor/ckeditor5-utils": "48.5.0-alpha.6"
39
39
  },
40
40
  "files": [
41
41
  "dist",