@ckeditor/ckeditor5-paste-from-office-enhanced 48.4.0 → 48.5.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 _0x4e763f}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x79d5f4,PasteFromOfficeMSWordNormalizer as _0x49fe42}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x59ae1f,uid as _0x18fb56}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x1d95d9,ViewDomConverter as _0x366058,ViewUpcastWriter as _0x4a14f7}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x1a6290){return f['test'](_0x1a6290);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x47b8ef,_0x52fd4a){const _0x33a35f=new Map();for(const [_0x15b320,_0xe922d5]of _0x52fd4a){if(!_0x15b320['tagName']&&!_0x15b320['className'])continue;const _0x566318=!_0x15b320['tagName']||_0x47b8ef['name']===_0x15b320['tagName'],_0x1c94b9=!_0x15b320['className']||_0x47b8ef['hasClass'](_0x15b320['className']);_0x566318&&_0x1c94b9&&_0x33a35f['set'](_0x15b320,_0xe922d5);}return _0x33a35f;}function m(_0x595e04){const _0x479a18={};for(let _0x35214e=0x0;_0x35214e<_0x595e04['length'];_0x35214e++){const _0x45fcb5=_0x595e04[_0x35214e],_0x24a5d9=_0x595e04['getPropertyValue'](_0x45fcb5);'initial'!==_0x24a5d9&&(_0x479a18[_0x45fcb5]=_0x24a5d9);}return _0x479a18;}function w(_0x207019){const _0x22fe91=_0x207019['split'](',')['map'](_0x46ba28=>_0x46ba28['trim']()),_0x892c9f=[];for(const _0x5eddb2 of _0x22fe91){const _0x133a5d=l['exec'](_0x5eddb2);_0x133a5d&&_0x892c9f['push'](_0x133a5d['groups']);}return _0x892c9f;}function y(_0x47817b){const _0x576e7c={};for(const _0x56175d of _0x47817b)Object['assign'](_0x576e7c,_0x56175d);return _0x576e7c;}var g=class extends _0x49fe42{execute(_0x30c197){const {styles:_0x30ec2e,stylesString:_0x2e6969}=_0x30c197['extraContent'],_0x223378=new _0x4a14f7(_0x30c197['content']['document']),_0x3220cf=_0x223378['createRangeIn'](_0x30c197['content']),_0x3d8875=function(_0x1985d8){const _0x27c0c1=new Map();for(const _0xcbc22b in _0x1985d8){const _0x43039f=w(_0xcbc22b),_0x4d6d7c=_0x1985d8[_0xcbc22b];for(const _0x276049 of _0x43039f)_0x27c0c1['set'](_0x276049,_0x4d6d7c);}return _0x27c0c1;}(function(_0x3df130){const _0x548332={};for(const _0x52fb97 of _0x3df130)for(const _0x1eccde of _0x52fb97['cssRules'])if(_0x1eccde instanceof CSSStyleRule){const _0x34ffce=m(_0x1eccde['style']);_0x548332[_0x1eccde['selectorText']]=Object['assign']({},_0x548332[_0x1eccde['selectorText']]||{},_0x34ffce);}return _0x548332;}(_0x30ec2e)),_0x4f2763=function(_0x35960a){const _0x158340={},_0x5a1bfb=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x460494=/\.(?<className>[\w-]+)/g;let _0x48b08a;for(;null!==(_0x48b08a=_0x5a1bfb['exec'](_0x35960a));){const {selector:_0x3e2f69,color:_0x2224d0,patternType:_0x378722}=_0x48b08a['groups'];if('auto'!==_0x2224d0['toLowerCase']()&&'none'!==_0x378722['toLowerCase']()&&'auto'!==_0x378722['toLowerCase']()){for(const _0x53b56e of _0x3e2f69['matchAll'](_0x460494))_0x158340[_0x53b56e['groups']['className']]=_0x2224d0;}}return _0x158340;}(_0x2e6969);for(const _0x29966d of _0x3220cf){if('elementStart'!==_0x29966d['type'])continue;const _0x2915df=_0x29966d['item'],_0x5c0d22=d(_0x2915df,_0x3d8875),_0x41eaa0=_0x5c0d22['size']?y(Array['from'](_0x5c0d22['values']())):{};if(!('background-color'in _0x41eaa0)&&!('background'in _0x41eaa0)){for(const [_0x1ebc83,_0x285d63]of Object['entries'](_0x4f2763))if(_0x2915df['hasClass'](_0x1ebc83)){_0x41eaa0['background-color']=_0x285d63;break;}}for(const _0x15bca1 in _0x41eaa0)_0x2915df['hasStyle'](_0x15bca1)||_0x223378['setStyle'](_0x15bca1,_0x41eaa0[_0x15bca1],_0x2915df);}}isActive(_0x36cf2f){return super['isActive'](_0x36cf2f)||u(_0x36cf2f);}},p=class extends _0x4e763f{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x79d5f4];}init(){const _0x4b8ab7=this['editor'],_0x463408=_0x4b8ab7['plugins']['get']('PasteFromOffice'),_0x4cde9=_0x4b8ab7['editing']['view']['document'],_0x3aaf4f=new g(_0x4cde9);_0x463408['registerNormalizer'](_0x3aaf4f,_0x59ae1f['high']+0xb);}afterInit(){!async function(_0x38f4d8){const _0x10bac8='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x5aa232=0x791d0,_0x4d33e6=window['Date']['now'](),_0x597a23=_0x38f4d8['editor'],_0x12237b=new window['Promise'](_0x45b5a8=>{_0x597a23['once']('ready',_0x45b5a8);}),_0x3213c3={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x1d7261=_0x597a23['config']['get']('licenseKey');async function _0x3fbf52(){let _0xbfa973,_0x4782de=null,_0x4f1a25=null;try{return'GPL'==_0x1d7261?'NotAllowed':(_0xbfa973=_0x32a653(),_0xbfa973?(_0xbfa973['usageEndpoint']&&(_0x4f1a25=_0x154b44(_0xbfa973['usageEndpoint'],_0xbfa973['jti'])),await _0x2b4a64()?_0x219c11()?_0x2990f7()?'Expired':_0x201a60()?('evaluation'==_0xbfa973['licenseType']&&(_0x4782de=_0x1be836('EvaluationLimit')),await _0x2e6dd6()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x2990f7(){const _0x32aa82=['evaluation','trial']['includes'](_0xbfa973['licenseType'])?_0x4d33e6/0x3e8:0xe10*_0x5aa232;return _0xbfa973['exp']<_0x32aa82;}function _0x219c11(){const _0x4aec9b=_0xbfa973['features'];return!!_0x4aec9b&&(!!_0x4aec9b['includes']('*')||(!!_0x4aec9b['includes']('POE')||(!!_0x4aec9b['includes']('PP')||!(!_0x4aec9b['includes']('TRILIUM')||!_0x197e4f()))));}function _0x201a60(){const _0x60715c=_0xbfa973['licensedHosts'];if(!_0x60715c||0x0==_0x60715c['length'])return!0x0;const {hostname:_0x1044c8}=new URL(window['location']['href']);if(_0x60715c['includes'](_0x1044c8))return!0x0;const _0x2de259=_0x1044c8['split']('.');return _0x60715c['filter'](_0x482d95=>_0x482d95['includes']('*'))['map'](_0x45e4db=>_0x45e4db['split']('.'))['filter'](_0x2a0bf9=>_0x2a0bf9['length']<=_0x2de259['length'])['map'](_0x4e77d6=>Array(_0x2de259['length']-_0x4e77d6['length'])['fill']('*'===_0x4e77d6[0x0]?'*':'')['concat'](_0x4e77d6))['some'](_0x6ef047=>_0x2de259['every']((_0x165b1a,_0x5ee3bf)=>_0x6ef047[_0x5ee3bf]===_0x165b1a||'*'===_0x6ef047[_0x5ee3bf]));}function _0x2e6dd6(){return _0x4782de&&_0x4f1a25?new window['Promise']((_0x1fe278,_0x47daf6)=>{_0x4782de['then'](_0x1fe278,_0x47daf6),_0x4f1a25['then'](_0x463a0b=>{'Valid'!=_0x463a0b&&_0x1fe278(_0x463a0b);},_0x47daf6);}):_0x4782de||_0x4f1a25||'Valid';}}function _0x154b44(_0x1441b0,_0x471a24){return new window['Promise'](_0xae043f=>{if(_0x17b937())return _0xae043f('Valid');_0xdfc63a(),_0x597a23['decorate']('_sendUsageRequest');let _0x2983af=!0x1;const _0x203914=_0x18fb56();function _0x3a3176(_0x23bb8e){return!!_0x23bb8e&&('object'==typeof _0x23bb8e||'function'==typeof _0x23bb8e)&&'function'==typeof _0x23bb8e['then']&&'function'==typeof _0x23bb8e['catch'];}function _0x316b46(_0x29cc2d){_0x187929(_0x29cc2d)['then'](_0x3d5971=>_0x3d5971&&'ok'==_0x3d5971['status']?_0x10bd21(_0x3becf7(_0x203914+_0x471a24))!=_0x3d5971['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x4eb2cc=>(_0x516607(),_0x4eb2cc),()=>{const _0x5b8122=_0x12da1b();return null==_0x5b8122?(_0x516607(),'Valid'):_0x4d33e6-_0x5b8122>0x240c8400?'UsageLimit':'Valid';})['then'](_0xae043f)['catch'](()=>{_0xae043f('UsageLimit');});const _0x1830b9=0x36ee80;function _0x516607(){const _0x796fa1='llct-'+_0x10bd21(_0x3becf7(_0x1441b0)),_0x237cad=_0x57d894(_0x10bd21(window['Math']['ceil'](_0x4d33e6/_0x1830b9)));window['localStorage']['setItem'](_0x796fa1,_0x237cad);}function _0x12da1b(){const _0x188a50='llct-'+_0x10bd21(_0x3becf7(_0x1441b0)),_0x50b850=window['localStorage']['getItem'](_0x188a50);return _0x50b850?window['parseInt'](_0x57d894(_0x50b850),0x10)*_0x1830b9:null;}function _0x187929(_0xdac665){return new window['Promise']((_0x3ba3fa,_0x54b089)=>{_0xdac665['then'](_0x3ba3fa,_0x54b089),window['setTimeout'](_0x54b089,0x1d4c0);});}}_0x597a23['on']('_sendUsageRequest',(_0x268b93,_0x1f684e)=>{if(_0x1f684e[0x0]!=_0x1441b0)return _0xae043f('UsageLimit');_0x1f684e[0x1]={..._0x1f684e[0x1],'requestId':_0x203914};},{'priority':'high'}),_0x597a23['on']('_sendUsageRequest',_0x2e85d2=>{_0x3a3176(_0x2e85d2['return'])&&(_0x2983af=!0x0,_0x316b46(_0x2e85d2['return']));},{'priority':'low'}),_0x12237b['then'](()=>{_0x2983af||_0xae043f('UsageLimit');});});function _0x17b937(){return'auto'==_0x597a23['editing']['view']['_overlayModeHint'];}function _0xdfc63a(){_0x597a23['editing']['view']['_overlayModeHint']='auto';}}function _0x1be836(_0x52439b){const _0x1ab39c=[new window['Promise'](_0x53e555=>setTimeout(_0x53e555,0x93ecc)),_0x12237b['then'](()=>new window['Promise'](_0x3941ab=>{let _0x5974a7=0x0;_0x597a23['model']['on']('applyOperation',(_0x379148,_0x55318e)=>{_0x55318e[0x0]['isDocumentOperation']&&_0x5974a7++,0x5e8==_0x5974a7&&(_0x3941ab(),_0x379148['off']());});}))];return window['Promise']['race'](_0x1ab39c)['then'](()=>_0x52439b);}async function _0x49c48e(){await _0x12237b,_0x597a23['model']['change']=_0x514775,_0x597a23['model']['enqueueChange']=_0x514775,_0x597a23['enableReadOnlyMode']('model');}function _0x197e4f(){return window['glob']&&window['glob']['triliumVersion'];}function _0x21c072(_0x35d945){const _0x4b3167=_0x33e576();_0x597a23[_0x4b3167]='pasteFromOfficeEnhancedLicenseKey'+_0x35d945,'Valid'!=_0x35d945&&_0x49c48e();}function _0x33e576(){const _0xfc8a9c=window['String'](window['performance']['now']())['replace']('.','');let _0xe91950='s';for(let _0x55a678=0x0;_0x55a678<_0xfc8a9c['length'];_0x55a678+=0x2){let _0x271b70=window['parseInt'](_0xfc8a9c['substring'](_0x55a678,_0x55a678+0x2));_0x271b70>=0x3e&&(_0x271b70-=0x3e),_0xe91950+=_0x10bac8[_0x271b70];}return _0xe91950;}function _0x32a653(){const _0xd9e7dd=_0x1d7261['split']('.');if(0x3!=_0xd9e7dd['length'])return null;return _0x3966eb(_0xd9e7dd[0x1]);function _0x3966eb(_0x317b4c){const _0x2d0fe9=_0x434364(_0x317b4c);return _0x2d0fe9&&_0x1c6674()?_0x2d0fe9:null;function _0x1c6674(){const _0x5b3a8b=_0x2d0fe9['jti'],_0x55269b=window['parseInt'](_0x5b3a8b['substring'](_0x5b3a8b['length']-0x8),0x10),_0xf27c1={..._0x2d0fe9,'jti':_0x5b3a8b['substring'](0x0,_0x5b3a8b['length']-0x8)};return delete _0xf27c1['vc'],_0x3becf7(_0xf27c1)==_0x55269b;}}}async function _0x2b4a64(){let _0xdc471d=!0x0;try{const [_0x143fcc,_0x4e1d0e,_0x2b2008]=_0x1d7261['split']('.');return _0x1c54f4(_0x143fcc),await _0x4b0d05(_0x143fcc,_0x4e1d0e,_0x2b2008),_0xdc471d;}catch{return!0x1;}function _0x1c54f4(_0x55795c){const _0x4a4a86=_0x434364(_0x55795c);_0x4a4a86&&'ES256'==_0x4a4a86['alg']||(_0xdc471d=!0x1);}async function _0x4b0d05(_0x4018cb,_0x5aabcf,_0x15aaa3){const _0x24b186=window['Uint8Array']['from'](_0x4135b(_0x15aaa3),_0x560592=>_0x560592['charCodeAt'](0x0)),_0x10a93c=new window['TextEncoder']()['encode'](_0x4018cb+'.'+_0x5aabcf),_0x3aa015=window['crypto']['subtle'];if(!_0x3aa015)return;const _0x447787=await _0x3aa015['importKey']('jwk',_0x3213c3,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3aa015['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x447787,_0x24b186,_0x10a93c)||(_0xdc471d=!0x1);}}function _0x434364(_0x3ae0c5){return _0x3ae0c5['startsWith']('ey')?JSON['parse'](_0x4135b(_0x3ae0c5)):null;}function _0x4135b(_0x18f4ca){return window['atob'](_0x18f4ca['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3becf7(_0x4a8cd7){let _0x2b89df=0x1505;function _0x48b2a7(_0x31e44a){for(let _0x45b432=0x0;_0x45b432<_0x31e44a['length'];_0x45b432++){const _0x3fd617=_0x31e44a['charCodeAt'](_0x45b432);_0x2b89df=(_0x2b89df<<0x5)+_0x2b89df+_0x3fd617,_0x2b89df&=_0x2b89df;}}function _0x26a27f(_0x4cecb0){Array['isArray'](_0x4cecb0)?_0x4cecb0['forEach'](_0x26a27f):_0x4cecb0&&'object'==typeof _0x4cecb0?Object['entries'](_0x4cecb0)['sort']()['forEach'](([_0x27e5d2,_0xf3ddf1])=>{_0x48b2a7(_0x27e5d2),_0x26a27f(_0xf3ddf1);}):_0x48b2a7(window['String'](_0x4cecb0));}return _0x26a27f(_0x4a8cd7),_0x2b89df>>>0x0;}function _0x10bd21(_0x4a7659){return _0x4a7659['toString'](0x10)['padStart'](0x8,'0');}function _0x57d894(_0x31b760){return _0x31b760['split']('')['reverse']()['join']('');}function _0x514775(){}_0x21c072(await _0x3fbf52());}(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'],[_0x1fd4a3=>Number(_0x1fd4a3)>=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(_0x1427d7){return h['includes'](_0x1427d7);}function v(_0x49629a){return Array['from'](_0x49629a['getStyleNames']())['filter'](E);}function F(_0x53a03a,_0x566897,_0x3ec095){const {spanStyles:_0x3e02c2,stylesToBeHtmlElements:_0x2dcf50}=K(_0x53a03a,_0x3ec095);!function(_0xad2470,_0x1849ff,_0x4b0204){for(const _0x2a8026 in _0x4b0204)_0x4b0204[_0x2a8026]['forEach'](([,_0x18125a])=>{const _0x22f089=_0x1849ff['createElement'](_0x18125a,[],_0xad2470['getChildren']());_0x1849ff['insertChild'](0x0,_0x22f089,_0xad2470);}),_0x1849ff['removeStyle'](_0x2a8026,_0xad2470);}(_0x53a03a,_0x566897,_0x2dcf50),function(_0x4cab83,_0x139517,_0x3a54cb){if(!Object['keys'](_0x3a54cb)['length'])return;const _0x53e03f=_0x139517['createElement']('span',[],_0x4cab83['getChildren']());_0x139517['setStyle'](_0x3a54cb,_0x53e03f),_0x139517['insertChild'](0x0,_0x53e03f,_0x4cab83),_0x139517['removeStyle'](Object['keys'](_0x3a54cb),_0x4cab83);}(_0x53a03a,_0x566897,_0x3e02c2);}function P(_0x795d83,_0x5e751b,_0x5541ff){const {spanStyles:_0x58be0f}=K(_0x795d83,_0x5541ff),_0x152b07=Object['keys'](_0x58be0f);if(!_0x152b07['length'])return;let _0x448ff1=!0x1;for(const _0x325c16 of _0x795d83['getChildren']())if(_0x325c16['is']('element','span')){_0x448ff1=!0x0;for(const [_0x1b8259,_0x6a6746]of Object['entries'](_0x58be0f))_0x325c16['hasStyle'](_0x1b8259)||_0x5e751b['setStyle']({[_0x1b8259]:_0x6a6746},_0x325c16);}_0x448ff1&&_0x5e751b['removeStyle'](_0x152b07,_0x795d83);}function K(_0x1e8a52,_0x5c20c0){const _0xb7089e={},_0x4d8465={};return _0x5c20c0['forEach'](_0x5055ad=>{const _0x5f553f=_0x1e8a52['getStyle'](_0x5055ad);if(_0x5f553f){if(function(_0x9fd2c){return O['includes'](_0x9fd2c);}(_0x5055ad))_0xb7089e[_0x5055ad]=_0x5f553f;else{if(function(_0x51258a){return _0x51258a in L;}(_0x5055ad)){const _0x5a5786=_0x5f553f['split']('\x20');L[_0x5055ad]['forEach'](([_0x4ab6f1,_0x261442])=>{for(const _0x4e2aa3 of _0x5a5786)('function'==typeof _0x4ab6f1&&_0x4ab6f1(_0x4e2aa3)||_0x4ab6f1===_0x4e2aa3)&&(_0x4d8465[_0x5055ad]=[..._0x4d8465[_0x5055ad]||[],[_0x4ab6f1,_0x261442]]);});}}}}),{'spanStyles':_0xb7089e,'stylesToBeHtmlElements':_0x4d8465};}var b=class extends _0x49fe42{execute(_0x244f08){const _0x45f6e2=new _0x4a14f7(_0x244f08['content']['document']),_0x5e8cf5=_0x45f6e2['createRangeIn'](_0x244f08['content']),_0x34f3ba=[...new _0x366058(new _0x1d95d9(_0x45f6e2['document']['stylesProcessor']))['blockElements'],'font'],_0x30a2c4=_0x5e8cf5['getItems']();for(const _0x3b2b31 of _0x30a2c4)if(_0x3b2b31['is']('element')&&_0x34f3ba['includes'](_0x3b2b31['name'])){if(_0x3b2b31['hasStyle']('mso-list')&&'none'!==_0x3b2b31['getStyle']('mso-list')){P(_0x3b2b31,_0x45f6e2,v(_0x3b2b31));continue;}F(_0x3b2b31,_0x45f6e2,v(_0x3b2b31));}}isActive(_0x259058){return super['isActive'](_0x259058)||u(_0x259058);}},x=class extends _0x4e763f{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x79d5f4];}init(){const _0x3736cc=this['editor'],_0x2c0212=_0x3736cc['plugins']['get']('PasteFromOffice'),_0x4e1277=_0x3736cc['editing']['view']['document'],_0x423a32=new b(_0x4e1277);_0x2c0212['registerNormalizer'](_0x423a32,_0x59ae1f['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1f7973=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a0489;for(const _0x4ceb26 in _0x1f7973){const _0x212915=_0x4ceb26,_0x2dd5c4=_0x1f7973[_0x212915];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x2dd5c4||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x2dd5c4||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x2dd5c4||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x2dd5c4||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x2dd5c4||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x2dd5c4||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x2dd5c4){delete _0x1f7973[_0x212915],_0x5a0489=_0x2dd5c4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x5a0489&&_0x1f7973['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x5a0489&&_0x1f7973['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x5a0489&&_0x1f7973['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x5a0489&&_0x1f7973['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x5a0489&&_0x1f7973['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x5a0489&&_0x1f7973['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x4e763f{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x79d5f4,p,x];}};export{k as PasteFromOfficeEnhanced};
23
+ import{Plugin as _0x142f5e}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x28e5d3,PasteFromOfficeMSWordNormalizer as _0x56f659}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x55217a,uid as _0x44123a}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x537961,ViewDomConverter as _0x56ef79,ViewUpcastWriter as _0x42fb28}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x5bd1d9){return f['test'](_0x5bd1d9);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x50327b,_0x55c705){const _0x2af532=new Map();for(const [_0x5b4d7,_0x3aed16]of _0x55c705){if(!_0x5b4d7['tagName']&&!_0x5b4d7['className'])continue;const _0x135e02=!_0x5b4d7['tagName']||_0x50327b['name']===_0x5b4d7['tagName'],_0x4b4da4=!_0x5b4d7['className']||_0x50327b['hasClass'](_0x5b4d7['className']);_0x135e02&&_0x4b4da4&&_0x2af532['set'](_0x5b4d7,_0x3aed16);}return _0x2af532;}function m(_0x4f586d){const _0x3a9316={};for(let _0x1ce187=0x0;_0x1ce187<_0x4f586d['length'];_0x1ce187++){const _0x428c8f=_0x4f586d[_0x1ce187],_0x13b092=_0x4f586d['getPropertyValue'](_0x428c8f);'initial'!==_0x13b092&&(_0x3a9316[_0x428c8f]=_0x13b092);}return _0x3a9316;}function w(_0x4c64f5){const _0x793a1b=_0x4c64f5['split'](',')['map'](_0x1b218f=>_0x1b218f['trim']()),_0xcf4289=[];for(const _0x296ad3 of _0x793a1b){const _0x3cf02d=l['exec'](_0x296ad3);_0x3cf02d&&_0xcf4289['push'](_0x3cf02d['groups']);}return _0xcf4289;}function y(_0x48540a){const _0x58ec0b={};for(const _0x181ac0 of _0x48540a)Object['assign'](_0x58ec0b,_0x181ac0);return _0x58ec0b;}var g=class extends _0x56f659{execute(_0x1a799f){const {styles:_0x5411d4,stylesString:_0xf205a9}=_0x1a799f['extraContent'],_0x2bd4f9=new _0x42fb28(_0x1a799f['content']['document']),_0x2d60bb=_0x2bd4f9['createRangeIn'](_0x1a799f['content']),_0x506fdc=function(_0x454710){const _0x1cbe3d={};for(const _0x328531 of _0x454710)for(const _0x53618a of _0x328531['cssRules'])if(_0x53618a instanceof CSSStyleRule){const _0x1900d2=m(_0x53618a['style']);_0x1cbe3d[_0x53618a['selectorText']]=Object['assign']({},_0x1cbe3d[_0x53618a['selectorText']]||{},_0x1900d2);}return _0x1cbe3d;}(_0x5411d4),_0x1addc4=function(_0x40481d){const _0x2eb5bf=new Map();for(const _0x3c2549 in _0x40481d){const _0x5c8b54=w(_0x3c2549),_0x411935=_0x40481d[_0x3c2549];for(const _0x40ba47 of _0x5c8b54)_0x2eb5bf['set'](_0x40ba47,_0x411935);}return _0x2eb5bf;}(_0x506fdc),_0x1177f8=function(_0x520550){const _0x346a9b={},_0x2b5771=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x48cfe8=/\.(?<className>[\w-]+)/g;let _0x2ed45b;for(;null!==(_0x2ed45b=_0x2b5771['exec'](_0x520550));){const {selector:_0x33dc1e,color:_0x36cd76,patternType:_0x2cb79e}=_0x2ed45b['groups'];if('auto'!==_0x36cd76['toLowerCase']()&&'none'!==_0x2cb79e['toLowerCase']()&&'auto'!==_0x2cb79e['toLowerCase']()){for(const _0x16a410 of _0x33dc1e['matchAll'](_0x48cfe8))_0x346a9b[_0x16a410['groups']['className']]=_0x36cd76;}}return _0x346a9b;}(_0xf205a9);for(const _0x21c4d7 of _0x2d60bb){if('elementStart'!==_0x21c4d7['type'])continue;const _0x45c450=_0x21c4d7['item'],_0x2431fa=d(_0x45c450,_0x1addc4),_0x3793eb=_0x2431fa['size']?y(Array['from'](_0x2431fa['values']())):{};if(!('background-color'in _0x3793eb)&&!('background'in _0x3793eb)){for(const [_0x50a879,_0x3f6af8]of Object['entries'](_0x1177f8))if(_0x45c450['hasClass'](_0x50a879)){_0x3793eb['background-color']=_0x3f6af8;break;}}for(const _0x2ff53b in _0x3793eb)_0x45c450['hasStyle'](_0x2ff53b)||_0x2bd4f9['setStyle'](_0x2ff53b,_0x3793eb[_0x2ff53b],_0x45c450);}}isActive(_0x353b51){return super['isActive'](_0x353b51)||u(_0x353b51);}},p=class extends _0x142f5e{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x28e5d3];}init(){const _0x2816d7=this['editor'],_0x2f052b=_0x2816d7['plugins']['get']('PasteFromOffice'),_0x5207a0=_0x2816d7['editing']['view']['document'],_0x1311e0=new g(_0x5207a0);_0x2f052b['registerNormalizer'](_0x1311e0,_0x55217a['high']+0xb);}afterInit(){!async function(_0x13d6c3){const _0xdd2037='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x1cfa2d=0x793e0,_0x5e2fdd={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x3f928f(_0x160a51){const _0x5e92af=new window['Promise'](_0x2aea90=>{_0x160a51['once']('ready',_0x2aea90);}),_0x12fc4a=window['Date']['now'](),_0x1c7690=_0x160a51['config']['get']('licenseKey');async function _0x374409(){let _0x1400e5,_0x23ac5f=null,_0x1cca26=null;try{return'GPL'==_0x1c7690?'NotAllowed':(_0x1400e5=_0x9d63dd(),_0x1400e5?(_0x1400e5['usageEndpoint']&&(_0x1cca26=_0x47cf36(_0x1400e5['usageEndpoint'],_0x1400e5['jti'])),await _0x33e853()?_0x483b8e()?_0x4698ee()?'Expired':_0x5f577d()?('evaluation'==_0x1400e5['licenseType']&&(_0x23ac5f=_0x46a98c('EvaluationLimit')),await _0x1a8bde()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4698ee(){const _0x5e52af=['evaluation','trial']['includes'](_0x1400e5['licenseType'])?_0x12fc4a/0x3e8:0xe10*_0x1cfa2d;return _0x1400e5['exp']<_0x5e52af;}function _0x483b8e(){const _0x585c92=_0x1400e5['features'];return!!_0x585c92&&(!!_0x585c92['includes']('*')||(!!_0x585c92['includes']('POE')||(!!_0x585c92['includes']('PP')||!(!_0x585c92['includes']('TRILIUM')||!_0x5e658e()))));}function _0x5f577d(){const _0x1bf9b0=_0x1400e5['licensedHosts'];if(!_0x1bf9b0||0x0==_0x1bf9b0['length'])return!0x0;const {hostname:_0x32267e}=new URL(window['location']['href']);if(_0x1bf9b0['includes'](_0x32267e))return!0x0;const _0x54e203=_0x32267e['split']('.');return _0x1bf9b0['filter'](_0x3b5768=>_0x3b5768['includes']('*'))['map'](_0x37512b=>_0x37512b['split']('.'))['filter'](_0x312c0f=>_0x312c0f['length']<=_0x54e203['length'])['map'](_0x155200=>Array(_0x54e203['length']-_0x155200['length'])['fill']('*'===_0x155200[0x0]?'*':'')['concat'](_0x155200))['some'](_0x1093b7=>_0x54e203['every']((_0x19a051,_0x59910d)=>_0x1093b7[_0x59910d]===_0x19a051||'*'===_0x1093b7[_0x59910d]));}function _0x1a8bde(){return _0x23ac5f&&_0x1cca26?new window['Promise']((_0x1e0da5,_0x5414c1)=>{_0x23ac5f['then'](_0x1e0da5,_0x5414c1),_0x1cca26['then'](_0x224afa=>{'Valid'!=_0x224afa&&_0x1e0da5(_0x224afa);},_0x5414c1);}):_0x23ac5f||_0x1cca26||'Valid';}}function _0x47cf36(_0x2832cc,_0x597756){return new window['Promise'](_0x429222=>{if(_0x419f7a())return _0x429222('Valid');_0x20ed31(),_0x160a51['decorate']('_sendUsageRequest');let _0x5e65ba=!0x1;const _0x1cbf02=_0x44123a();function _0x3965bc(_0x35a7b5){return!!_0x35a7b5&&('object'==typeof _0x35a7b5||'function'==typeof _0x35a7b5)&&'function'==typeof _0x35a7b5['then']&&'function'==typeof _0x35a7b5['catch'];}function _0x5df13f(_0x4eeebd){_0x149a52(_0x4eeebd)['then'](_0x2db48e=>_0x2db48e&&'ok'==_0x2db48e['status']?_0x4607e4(_0x2ef4ef(_0x1cbf02+_0x597756))!=_0x2db48e['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x50c556=>(_0x4109e2(),_0x50c556),()=>{const _0x50adf5=_0x243294();return null==_0x50adf5?(_0x4109e2(),'Valid'):_0x12fc4a-_0x50adf5>0x240c8400?'UsageLimit':'Valid';})['then'](_0x429222)['catch'](()=>{_0x429222('UsageLimit');});const _0x22660e=0x36ee80;function _0x4109e2(){const _0x28ce32='llct-'+_0x4607e4(_0x2ef4ef(_0x2832cc)),_0x3c7100=_0x1dcfc1(_0x4607e4(window['Math']['ceil'](_0x12fc4a/_0x22660e)));window['localStorage']['setItem'](_0x28ce32,_0x3c7100);}function _0x243294(){const _0x5ac83e='llct-'+_0x4607e4(_0x2ef4ef(_0x2832cc)),_0x4f66e4=window['localStorage']['getItem'](_0x5ac83e);return _0x4f66e4?window['parseInt'](_0x1dcfc1(_0x4f66e4),0x10)*_0x22660e:null;}function _0x149a52(_0xff97b0){return new window['Promise']((_0x4e0bd1,_0x43b3ef)=>{_0xff97b0['then'](_0x4e0bd1,_0x43b3ef),window['setTimeout'](_0x43b3ef,0x1d4c0);});}}_0x160a51['on']('_sendUsageRequest',(_0x5a06a6,_0x30312d)=>{if(_0x30312d[0x0]!=_0x2832cc)return _0x429222('UsageLimit');_0x30312d[0x1]={..._0x30312d[0x1],'requestId':_0x1cbf02};},{'priority':'high'}),_0x160a51['on']('_sendUsageRequest',_0x5b37e9=>{_0x3965bc(_0x5b37e9['return'])&&(_0x5e65ba=!0x0,_0x5df13f(_0x5b37e9['return']));},{'priority':'low'}),_0x5e92af['then'](()=>{_0x5e65ba||_0x429222('UsageLimit');});});function _0x419f7a(){return'auto'==_0x160a51['editing']['view']['_overlayModeHint'];}function _0x20ed31(){_0x160a51['editing']['view']['_overlayModeHint']='auto';}}function _0x46a98c(_0xdab05b){const _0xfc08c2=[new window['Promise'](_0x9842e8=>setTimeout(_0x9842e8,0x93ecc)),_0x5e92af['then'](()=>new window['Promise'](_0x20854a=>{let _0x3810c7=0x0;_0x160a51['model']['on']('applyOperation',(_0x86338,_0x2d5deb)=>{_0x2d5deb[0x0]['isDocumentOperation']&&_0x3810c7++,0x5e8==_0x3810c7&&(_0x20854a(),_0x86338['off']());});}))];return window['Promise']['race'](_0xfc08c2)['then'](()=>_0xdab05b);}async function _0x330fc0(){await _0x5e92af,_0x160a51['model']['change']=_0xce0927,_0x160a51['model']['enqueueChange']=_0xce0927,_0x160a51['enableReadOnlyMode']('model');}function _0x5e658e(){return window['glob']&&window['glob']['triliumVersion'];}function _0x2e8b99(_0x540094){const _0x1e04d1=_0x1ea081();_0x160a51[_0x1e04d1]='pasteFromOfficeEnhancedLicenseKey'+_0x540094,'Valid'!=_0x540094&&_0x330fc0();}function _0x1ea081(){const _0x1ea31a=window['String'](window['performance']['now']())['replace']('.','');let _0x2f5925='u';for(let _0x585633=0x0;_0x585633<_0x1ea31a['length'];_0x585633+=0x2){let _0x4230d4=window['parseInt'](_0x1ea31a['substring'](_0x585633,_0x585633+0x2));_0x4230d4>=0x3e&&(_0x4230d4-=0x3e),_0x2f5925+=_0xdd2037[_0x4230d4];}return _0x2f5925;}function _0x9d63dd(){const _0x158129=_0x1c7690['split']('.');if(0x3!=_0x158129['length'])return null;return _0x57119a(_0x158129[0x1]);function _0x57119a(_0x2e793c){const _0x2a8d66=_0x27914e(_0x2e793c);return _0x2a8d66&&_0x781b26()?_0x2a8d66:null;function _0x781b26(){const _0x3991a3=_0x2a8d66['jti'],_0xe4f0fc=window['parseInt'](_0x3991a3['substring'](_0x3991a3['length']-0x8),0x10),_0x389ff2={..._0x2a8d66,'jti':_0x3991a3['substring'](0x0,_0x3991a3['length']-0x8)};return delete _0x389ff2['vc'],_0x2ef4ef(_0x389ff2)==_0xe4f0fc;}}}async function _0x33e853(){let _0x586b39=!0x0;try{const [_0x32e5bc,_0x287906,_0x1a3e48]=_0x1c7690['split']('.');return _0x374440(_0x32e5bc),await _0xed4cf7(_0x32e5bc,_0x287906,_0x1a3e48),_0x586b39;}catch{return!0x1;}function _0x374440(_0x188100){const _0x3366ed=_0x27914e(_0x188100);_0x3366ed&&'ES256'==_0x3366ed['alg']||(_0x586b39=!0x1);}async function _0xed4cf7(_0x31c4d3,_0x2bee75,_0x2c201e){const _0x1bc7a9=window['Uint8Array']['from'](_0x2ac4c3(_0x2c201e),_0x12b9b2=>_0x12b9b2['charCodeAt'](0x0)),_0x5580b5=new window['TextEncoder']()['encode'](_0x31c4d3+'.'+_0x2bee75),_0x525e5c=window['crypto']['subtle'];if(!_0x525e5c)return;const _0x636f4b=await _0x525e5c['importKey']('jwk',_0x5e2fdd,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x525e5c['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x636f4b,_0x1bc7a9,_0x5580b5)||(_0x586b39=!0x1);}}function _0x27914e(_0x4effff){return _0x4effff['startsWith']('ey')?JSON['parse'](_0x2ac4c3(_0x4effff)):null;}function _0x2ac4c3(_0x5a0782){return window['atob'](_0x5a0782['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x2ef4ef(_0x5d5cdb){let _0x5bca92=0x1505;function _0xad6fca(_0xdeb16c){for(let _0x4ce894=0x0;_0x4ce894<_0xdeb16c['length'];_0x4ce894++){const _0x401aca=_0xdeb16c['charCodeAt'](_0x4ce894);_0x5bca92=(_0x5bca92<<0x5)+_0x5bca92+_0x401aca,_0x5bca92&=_0x5bca92;}}function _0xad4368(_0x286314){Array['isArray'](_0x286314)?_0x286314['forEach'](_0xad4368):_0x286314&&'object'==typeof _0x286314?Object['entries'](_0x286314)['sort']()['forEach'](([_0xed9b44,_0x215f1f])=>{_0xad6fca(_0xed9b44),_0xad4368(_0x215f1f);}):_0xad6fca(window['String'](_0x286314));}return _0xad4368(_0x5d5cdb),_0x5bca92>>>0x0;}function _0x4607e4(_0x30c20d){return _0x30c20d['toString'](0x10)['padStart'](0x8,'0');}function _0x1dcfc1(_0x3db493){return _0x3db493['split']('')['reverse']()['join']('');}function _0xce0927(){}_0x2e8b99(await _0x374409());}_0x3f928f(_0x13d6c3['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'],[_0x40b1c9=>Number(_0x40b1c9)>=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(_0x4f9f8c){return h['includes'](_0x4f9f8c);}function v(_0x74ef46){return Array['from'](_0x74ef46['getStyleNames']())['filter'](E);}function F(_0x47a10,_0x344435,_0x2385a5){const {spanStyles:_0x40fbc0,stylesToBeHtmlElements:_0x3940c8}=K(_0x47a10,_0x2385a5);!function(_0x4b1743,_0x4aa16a,_0x5790f7){for(const _0x20db8d in _0x5790f7)_0x5790f7[_0x20db8d]['forEach'](([,_0x7e5072])=>{const _0x345b38=_0x4aa16a['createElement'](_0x7e5072,[],_0x4b1743['getChildren']());_0x4aa16a['insertChild'](0x0,_0x345b38,_0x4b1743);}),_0x4aa16a['removeStyle'](_0x20db8d,_0x4b1743);}(_0x47a10,_0x344435,_0x3940c8),function(_0x3c9b60,_0x354fef,_0x536aec){if(!Object['keys'](_0x536aec)['length'])return;const _0x2bc727=_0x354fef['createElement']('span',[],_0x3c9b60['getChildren']());_0x354fef['setStyle'](_0x536aec,_0x2bc727),_0x354fef['insertChild'](0x0,_0x2bc727,_0x3c9b60),_0x354fef['removeStyle'](Object['keys'](_0x536aec),_0x3c9b60);}(_0x47a10,_0x344435,_0x40fbc0);}function P(_0x1e7cb9,_0x3868ce,_0x58d88c){const {spanStyles:_0xc4530d}=K(_0x1e7cb9,_0x58d88c),_0x213b6d=Object['keys'](_0xc4530d);if(!_0x213b6d['length'])return;let _0x12ea09=!0x1;for(const _0x124556 of _0x1e7cb9['getChildren']())if(_0x124556['is']('element','span')){_0x12ea09=!0x0;for(const [_0x5db3e4,_0x3bf710]of Object['entries'](_0xc4530d))_0x124556['hasStyle'](_0x5db3e4)||_0x3868ce['setStyle']({[_0x5db3e4]:_0x3bf710},_0x124556);}_0x12ea09&&_0x3868ce['removeStyle'](_0x213b6d,_0x1e7cb9);}function K(_0x31932d,_0x3e1e51){const _0x218890={},_0x470cc4={};return _0x3e1e51['forEach'](_0x269375=>{const _0x679e7f=_0x31932d['getStyle'](_0x269375);if(_0x679e7f){if(function(_0x3e74cb){return O['includes'](_0x3e74cb);}(_0x269375))_0x218890[_0x269375]=_0x679e7f;else{if(function(_0x5b5989){return _0x5b5989 in L;}(_0x269375)){const _0x3b5d01=_0x679e7f['split']('\x20');L[_0x269375]['forEach'](([_0x3123a2,_0x27c1dc])=>{for(const _0x1eb764 of _0x3b5d01)('function'==typeof _0x3123a2&&_0x3123a2(_0x1eb764)||_0x3123a2===_0x1eb764)&&(_0x470cc4[_0x269375]=[..._0x470cc4[_0x269375]||[],[_0x3123a2,_0x27c1dc]]);});}}}}),{'spanStyles':_0x218890,'stylesToBeHtmlElements':_0x470cc4};}var b=class extends _0x56f659{execute(_0x172b1f){const _0x5c8693=new _0x42fb28(_0x172b1f['content']['document']),_0xee222d=_0x5c8693['createRangeIn'](_0x172b1f['content']),_0x4cb305=new _0x537961(_0x5c8693['document']['stylesProcessor']),_0x940f6f=[...new _0x56ef79(_0x4cb305)['blockElements'],'font'],_0x3d8ae7=_0xee222d['getItems']();for(const _0x12227a of _0x3d8ae7)if(_0x12227a['is']('element')&&_0x940f6f['includes'](_0x12227a['name'])){if(_0x12227a['hasStyle']('mso-list')&&'none'!==_0x12227a['getStyle']('mso-list')){P(_0x12227a,_0x5c8693,v(_0x12227a));continue;}F(_0x12227a,_0x5c8693,v(_0x12227a));}}isActive(_0x32c357){return super['isActive'](_0x32c357)||u(_0x32c357);}},x=class extends _0x142f5e{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x28e5d3];}init(){const _0x2e6f58=this['editor'],_0x5970cd=_0x2e6f58['plugins']['get']('PasteFromOffice'),_0x39b574=_0x2e6f58['editing']['view']['document'],_0x9bfd5b=new b(_0x39b574);_0x5970cd['registerNormalizer'](_0x9bfd5b,_0x55217a['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x330722=[this['editor']];for(const _0x436b41 of _0x330722){let _0xa0d049;for(const _0x42aed0 in _0x436b41){const _0x2d216c=_0x42aed0,_0x117d41=_0x436b41[_0x2d216c];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x117d41||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x117d41||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x117d41||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x117d41||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x117d41||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x117d41||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x117d41){delete _0x436b41[_0x2d216c],_0xa0d049=_0x117d41,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0xa0d049&&_0x436b41['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0xa0d049&&_0x436b41['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0xa0d049&&_0x436b41['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0xa0d049&&_0x436b41['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0xa0d049&&_0x436b41['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0xa0d049&&_0x436b41['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x142f5e{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x28e5d3,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.4.0",
3
+ "version": "48.5.0-alpha.1",
4
4
  "description": "Enhanced paste from Office feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -31,11 +31,11 @@
31
31
  "./package.json": "./package.json"
32
32
  },
33
33
  "dependencies": {
34
- "@ckeditor/ckeditor5-clipboard": "48.4.0",
35
- "@ckeditor/ckeditor5-core": "48.4.0",
36
- "@ckeditor/ckeditor5-engine": "48.4.0",
37
- "@ckeditor/ckeditor5-paste-from-office": "48.4.0",
38
- "@ckeditor/ckeditor5-utils": "48.4.0"
34
+ "@ckeditor/ckeditor5-clipboard": "48.5.0-alpha.1",
35
+ "@ckeditor/ckeditor5-core": "48.5.0-alpha.1",
36
+ "@ckeditor/ckeditor5-engine": "48.5.0-alpha.1",
37
+ "@ckeditor/ckeditor5-paste-from-office": "48.5.0-alpha.1",
38
+ "@ckeditor/ckeditor5-utils": "48.5.0-alpha.1"
39
39
  },
40
40
  "files": [
41
41
  "dist",