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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 _0x348e79}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x523d6c,PasteFromOfficeMSWordNormalizer as _0x3ab63d}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x182eed,uid as _0x596b2b}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x39a644,ViewDomConverter as _0x53c6d0,ViewUpcastWriter as _0x517c6e}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x2e9c87){return f['test'](_0x2e9c87);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x1381ef,_0x3aaa18){const _0xee96cc=new Map();for(const [_0x526c1f,_0x47ab08]of _0x3aaa18){if(!_0x526c1f['tagName']&&!_0x526c1f['className'])continue;const _0x1dc818=!_0x526c1f['tagName']||_0x1381ef['name']===_0x526c1f['tagName'],_0xcfb7cc=!_0x526c1f['className']||_0x1381ef['hasClass'](_0x526c1f['className']);_0x1dc818&&_0xcfb7cc&&_0xee96cc['set'](_0x526c1f,_0x47ab08);}return _0xee96cc;}function m(_0x1f4f62){const _0x4f3d58={};for(let _0x5d11a0=0x0;_0x5d11a0<_0x1f4f62['length'];_0x5d11a0++){const _0x4ee901=_0x1f4f62[_0x5d11a0],_0x1253f3=_0x1f4f62['getPropertyValue'](_0x4ee901);'initial'!==_0x1253f3&&(_0x4f3d58[_0x4ee901]=_0x1253f3);}return _0x4f3d58;}function w(_0x43435e){const _0x33472e=_0x43435e['split'](',')['map'](_0x546d01=>_0x546d01['trim']()),_0x559c4e=[];for(const _0xa561a of _0x33472e){const _0x25bd6a=l['exec'](_0xa561a);_0x25bd6a&&_0x559c4e['push'](_0x25bd6a['groups']);}return _0x559c4e;}function y(_0x135e66){const _0x4842ad={};for(const _0x24bde9 of _0x135e66)Object['assign'](_0x4842ad,_0x24bde9);return _0x4842ad;}var g=class extends _0x3ab63d{execute(_0x4ff813){const {styles:_0xcbf9c1,stylesString:_0xdfd89b}=_0x4ff813['extraContent'],_0x5bf009=new _0x517c6e(_0x4ff813['content']['document']),_0xda19bc=_0x5bf009['createRangeIn'](_0x4ff813['content']),_0x5369e0=function(_0x41d780){const _0x2f2c9c={};for(const _0x4eac53 of _0x41d780)for(const _0x9ebb7 of _0x4eac53['cssRules'])if(_0x9ebb7 instanceof CSSStyleRule){const _0x5ec0c3=m(_0x9ebb7['style']);_0x2f2c9c[_0x9ebb7['selectorText']]=Object['assign']({},_0x2f2c9c[_0x9ebb7['selectorText']]||{},_0x5ec0c3);}return _0x2f2c9c;}(_0xcbf9c1),_0x1e39c7=function(_0x5ac2e6){const _0x4fd48d=new Map();for(const _0x457f5c in _0x5ac2e6){const _0x3c90e0=w(_0x457f5c),_0x421963=_0x5ac2e6[_0x457f5c];for(const _0x425038 of _0x3c90e0)_0x4fd48d['set'](_0x425038,_0x421963);}return _0x4fd48d;}(_0x5369e0),_0x25eb6d=function(_0x3173b7){const _0x28729a={},_0x1dad65=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x3d7d9d=/\.(?<className>[\w-]+)/g;let _0x3a177e;for(;null!==(_0x3a177e=_0x1dad65['exec'](_0x3173b7));){const {selector:_0x54db50,color:_0x4241db,patternType:_0x4e96e6}=_0x3a177e['groups'];if('auto'!==_0x4241db['toLowerCase']()&&'none'!==_0x4e96e6['toLowerCase']()&&'auto'!==_0x4e96e6['toLowerCase']()){for(const _0x2200a9 of _0x54db50['matchAll'](_0x3d7d9d))_0x28729a[_0x2200a9['groups']['className']]=_0x4241db;}}return _0x28729a;}(_0xdfd89b);for(const _0x29433a of _0xda19bc){if('elementStart'!==_0x29433a['type'])continue;const _0x2c5449=_0x29433a['item'],_0x36ff40=d(_0x2c5449,_0x1e39c7),_0x463e60=_0x36ff40['size']?y(Array['from'](_0x36ff40['values']())):{};if(!('background-color'in _0x463e60)&&!('background'in _0x463e60)){for(const [_0x31e7fc,_0x1c252c]of Object['entries'](_0x25eb6d))if(_0x2c5449['hasClass'](_0x31e7fc)){_0x463e60['background-color']=_0x1c252c;break;}}for(const _0x5c9446 in _0x463e60)_0x2c5449['hasStyle'](_0x5c9446)||_0x5bf009['setStyle'](_0x5c9446,_0x463e60[_0x5c9446],_0x2c5449);}}isActive(_0x15b995){return super['isActive'](_0x15b995)||u(_0x15b995);}},p=class extends _0x348e79{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x523d6c];}init(){const _0x286825=this['editor'],_0x987f4a=_0x286825['plugins']['get']('PasteFromOffice'),_0x4d44b0=_0x286825['editing']['view']['document'],_0x1d9a11=new g(_0x4d44b0);_0x987f4a['registerNormalizer'](_0x1d9a11,_0x182eed['high']+0xb);}afterInit(){!async function(_0x54e8d1){const _0x3acaa8='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x313fdf=0x793c8,_0x59efdf={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x4df8e9(_0x169686){const _0x16d718=new window['Promise'](_0x5744df=>{_0x169686['once']('ready',_0x5744df);}),_0x295c09=window['Date']['now'](),_0x588cea=_0x169686['config']['get']('licenseKey');async function _0x5ee4b7(){let _0x150898,_0x253585=null,_0x310c25=null;try{return'GPL'==_0x588cea?'NotAllowed':(_0x150898=_0x512dc4(),_0x150898?(_0x150898['usageEndpoint']&&(_0x310c25=_0x2e63d9(_0x150898['usageEndpoint'],_0x150898['jti'])),await _0x1576e4()?_0x5d49b6()?_0x14cdd3()?'Expired':_0x1bd9c1()?('evaluation'==_0x150898['licenseType']&&(_0x253585=_0x3349fc('EvaluationLimit')),await _0x436e5b()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x14cdd3(){const _0x5cd1f7=['evaluation','trial']['includes'](_0x150898['licenseType'])?_0x295c09/0x3e8:0xe10*_0x313fdf;return _0x150898['exp']<_0x5cd1f7;}function _0x5d49b6(){const _0x125ad3=_0x150898['features'];return!!_0x125ad3&&(!!_0x125ad3['includes']('*')||(!!_0x125ad3['includes']('POE')||(!!_0x125ad3['includes']('PP')||!(!_0x125ad3['includes']('TRILIUM')||!_0x1e6766()))));}function _0x1bd9c1(){const _0x5755f8=_0x150898['licensedHosts'];if(!_0x5755f8||0x0==_0x5755f8['length'])return!0x0;const {hostname:_0x4bd342}=new URL(window['location']['href']);if(_0x5755f8['includes'](_0x4bd342))return!0x0;const _0x298e10=_0x4bd342['split']('.');return _0x5755f8['filter'](_0x3f3032=>_0x3f3032['includes']('*'))['map'](_0x403dd9=>_0x403dd9['split']('.'))['filter'](_0xbad63e=>_0xbad63e['length']<=_0x298e10['length'])['map'](_0x3b0078=>Array(_0x298e10['length']-_0x3b0078['length'])['fill']('*'===_0x3b0078[0x0]?'*':'')['concat'](_0x3b0078))['some'](_0x37f39f=>_0x298e10['every']((_0x59a547,_0x4c0929)=>_0x37f39f[_0x4c0929]===_0x59a547||'*'===_0x37f39f[_0x4c0929]));}function _0x436e5b(){return _0x253585&&_0x310c25?new window['Promise']((_0x24e775,_0x4aa566)=>{_0x253585['then'](_0x24e775,_0x4aa566),_0x310c25['then'](_0x28394c=>{'Valid'!=_0x28394c&&_0x24e775(_0x28394c);},_0x4aa566);}):_0x253585||_0x310c25||'Valid';}}function _0x2e63d9(_0x5317e3,_0x2077e7){return new window['Promise'](_0x182904=>{if(_0x42aed8())return _0x182904('Valid');_0x165971(),_0x169686['decorate']('_sendUsageRequest');let _0x31cf3c=!0x1;const _0x33405c=_0x596b2b();function _0x1f8d07(_0x5221c5){return!!_0x5221c5&&('object'==typeof _0x5221c5||'function'==typeof _0x5221c5)&&'function'==typeof _0x5221c5['then']&&'function'==typeof _0x5221c5['catch'];}function _0x5d0bdf(_0x50d68e){_0x293749(_0x50d68e)['then'](_0x51bb16=>_0x51bb16&&'ok'==_0x51bb16['status']?_0xd44d8f(_0x16dbdd(_0x33405c+_0x2077e7))!=_0x51bb16['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x4cc21b=>(_0x5410a8(),_0x4cc21b),()=>{const _0x3e60c0=_0xa1dffb();return null==_0x3e60c0?(_0x5410a8(),'Valid'):_0x295c09-_0x3e60c0>0x240c8400?'UsageLimit':'Valid';})['then'](_0x182904)['catch'](()=>{_0x182904('UsageLimit');});const _0x58f2a5=0x36ee80;function _0x5410a8(){const _0x50c161='llct-'+_0xd44d8f(_0x16dbdd(_0x5317e3)),_0x410989=_0x35b117(_0xd44d8f(window['Math']['ceil'](_0x295c09/_0x58f2a5)));window['localStorage']['setItem'](_0x50c161,_0x410989);}function _0xa1dffb(){const _0x4e234d='llct-'+_0xd44d8f(_0x16dbdd(_0x5317e3)),_0x5f51e8=window['localStorage']['getItem'](_0x4e234d);return _0x5f51e8?window['parseInt'](_0x35b117(_0x5f51e8),0x10)*_0x58f2a5:null;}function _0x293749(_0x4973f5){return new window['Promise']((_0x3b7074,_0x2e036f)=>{_0x4973f5['then'](_0x3b7074,_0x2e036f),window['setTimeout'](_0x2e036f,0x1d4c0);});}}_0x169686['on']('_sendUsageRequest',(_0x453cc9,_0x4e3b29)=>{if(_0x4e3b29[0x0]!=_0x5317e3)return _0x182904('UsageLimit');_0x4e3b29[0x1]={..._0x4e3b29[0x1],'requestId':_0x33405c};},{'priority':'high'}),_0x169686['on']('_sendUsageRequest',_0x5a4b1a=>{_0x1f8d07(_0x5a4b1a['return'])&&(_0x31cf3c=!0x0,_0x5d0bdf(_0x5a4b1a['return']));},{'priority':'low'}),_0x16d718['then'](()=>{_0x31cf3c||_0x182904('UsageLimit');});});function _0x42aed8(){return'auto'==_0x169686['editing']['view']['_overlayModeHint'];}function _0x165971(){_0x169686['editing']['view']['_overlayModeHint']='auto';}}function _0x3349fc(_0xbc48de){const _0x44ffa5=[new window['Promise'](_0x35ad61=>setTimeout(_0x35ad61,0x93ecc)),_0x16d718['then'](()=>new window['Promise'](_0x2065f7=>{let _0x25e19d=0x0;_0x169686['model']['on']('applyOperation',(_0x70f814,_0x40662b)=>{_0x40662b[0x0]['isDocumentOperation']&&_0x25e19d++,0x5e8==_0x25e19d&&(_0x2065f7(),_0x70f814['off']());});}))];return window['Promise']['race'](_0x44ffa5)['then'](()=>_0xbc48de);}async function _0x396be0(){await _0x16d718,_0x169686['model']['change']=_0x384b04,_0x169686['model']['enqueueChange']=_0x384b04,_0x169686['enableReadOnlyMode']('model');}function _0x1e6766(){return window['glob']&&window['glob']['triliumVersion'];}function _0x183ff1(_0x22842b){const _0x574dc0=_0x126153();_0x169686[_0x574dc0]='pasteFromOfficeEnhancedLicenseKey'+_0x22842b,'Valid'!=_0x22842b&&_0x396be0();}function _0x126153(){const _0x2771e9=window['String'](window['performance']['now']())['replace']('.','');let _0x24f7df='u';for(let _0x1653d9=0x0;_0x1653d9<_0x2771e9['length'];_0x1653d9+=0x2){let _0x44f86e=window['parseInt'](_0x2771e9['substring'](_0x1653d9,_0x1653d9+0x2));_0x44f86e>=0x3e&&(_0x44f86e-=0x3e),_0x24f7df+=_0x3acaa8[_0x44f86e];}return _0x24f7df;}function _0x512dc4(){const _0x283e57=_0x588cea['split']('.');if(0x3!=_0x283e57['length'])return null;return _0x398685(_0x283e57[0x1]);function _0x398685(_0x243d0a){const _0x1a4806=_0x1e6321(_0x243d0a);return _0x1a4806&&_0x2c1114()?_0x1a4806:null;function _0x2c1114(){const _0x1d7f11=_0x1a4806['jti'],_0x5c39a7=window['parseInt'](_0x1d7f11['substring'](_0x1d7f11['length']-0x8),0x10),_0x37b871={..._0x1a4806,'jti':_0x1d7f11['substring'](0x0,_0x1d7f11['length']-0x8)};return delete _0x37b871['vc'],_0x16dbdd(_0x37b871)==_0x5c39a7;}}}async function _0x1576e4(){let _0x3175a6=!0x0;try{const [_0x30efd9,_0x2a5493,_0x410c84]=_0x588cea['split']('.');return _0x46979b(_0x30efd9),await _0x7fbccc(_0x30efd9,_0x2a5493,_0x410c84),_0x3175a6;}catch{return!0x1;}function _0x46979b(_0x2cbedd){const _0x2eb941=_0x1e6321(_0x2cbedd);_0x2eb941&&'ES256'==_0x2eb941['alg']||(_0x3175a6=!0x1);}async function _0x7fbccc(_0x30e6f2,_0x395c50,_0x3415a7){const _0x51fb65=window['Uint8Array']['from'](_0x47cf59(_0x3415a7),_0x235a04=>_0x235a04['charCodeAt'](0x0)),_0x1b60de=new window['TextEncoder']()['encode'](_0x30e6f2+'.'+_0x395c50),_0x445d56=window['crypto']['subtle'];if(!_0x445d56)return;const _0xed1034=await _0x445d56['importKey']('jwk',_0x59efdf,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x445d56['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0xed1034,_0x51fb65,_0x1b60de)||(_0x3175a6=!0x1);}}function _0x1e6321(_0x2e81ac){return _0x2e81ac['startsWith']('ey')?JSON['parse'](_0x47cf59(_0x2e81ac)):null;}function _0x47cf59(_0x24e361){return window['atob'](_0x24e361['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x16dbdd(_0xae0488){let _0x4e358b=0x1505;function _0x3416d8(_0xa82066){for(let _0x29ad4d=0x0;_0x29ad4d<_0xa82066['length'];_0x29ad4d++){const _0x195ec8=_0xa82066['charCodeAt'](_0x29ad4d);_0x4e358b=(_0x4e358b<<0x5)+_0x4e358b+_0x195ec8,_0x4e358b&=_0x4e358b;}}function _0x485252(_0x345ebe){Array['isArray'](_0x345ebe)?_0x345ebe['forEach'](_0x485252):_0x345ebe&&'object'==typeof _0x345ebe?Object['entries'](_0x345ebe)['sort']()['forEach'](([_0x3abeb2,_0x584fdc])=>{_0x3416d8(_0x3abeb2),_0x485252(_0x584fdc);}):_0x3416d8(window['String'](_0x345ebe));}return _0x485252(_0xae0488),_0x4e358b>>>0x0;}function _0xd44d8f(_0x4198a0){return _0x4198a0['toString'](0x10)['padStart'](0x8,'0');}function _0x35b117(_0x1feb05){return _0x1feb05['split']('')['reverse']()['join']('');}function _0x384b04(){}_0x183ff1(await _0x5ee4b7());}_0x4df8e9(_0x54e8d1['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'],[_0x530cbc=>Number(_0x530cbc)>=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(_0x23ca3e){return h['includes'](_0x23ca3e);}function v(_0x36ee51){return Array['from'](_0x36ee51['getStyleNames']())['filter'](E);}function F(_0x4be2ca,_0x298250,_0x2acd75){const {spanStyles:_0x27323c,stylesToBeHtmlElements:_0x39a0d3}=K(_0x4be2ca,_0x2acd75);!function(_0x4752a6,_0x16748b,_0x5e5029){for(const _0x3dadd4 in _0x5e5029)_0x5e5029[_0x3dadd4]['forEach'](([,_0x906b0d])=>{const _0x1f791a=_0x16748b['createElement'](_0x906b0d,[],_0x4752a6['getChildren']());_0x16748b['insertChild'](0x0,_0x1f791a,_0x4752a6);}),_0x16748b['removeStyle'](_0x3dadd4,_0x4752a6);}(_0x4be2ca,_0x298250,_0x39a0d3),function(_0x2741fd,_0x1c2427,_0x407915){if(!Object['keys'](_0x407915)['length'])return;const _0xe29a0f=_0x1c2427['createElement']('span',[],_0x2741fd['getChildren']());_0x1c2427['setStyle'](_0x407915,_0xe29a0f),_0x1c2427['insertChild'](0x0,_0xe29a0f,_0x2741fd),_0x1c2427['removeStyle'](Object['keys'](_0x407915),_0x2741fd);}(_0x4be2ca,_0x298250,_0x27323c);}function P(_0x5c981d,_0x10c554,_0x30ad49){const {spanStyles:_0x3989a7}=K(_0x5c981d,_0x30ad49),_0x5a9cc1=Object['keys'](_0x3989a7);if(!_0x5a9cc1['length'])return;let _0x1fa5db=!0x1;for(const _0xb6a7fa of _0x5c981d['getChildren']())if(_0xb6a7fa['is']('element','span')){_0x1fa5db=!0x0;for(const [_0x33294f,_0x169ab4]of Object['entries'](_0x3989a7))_0xb6a7fa['hasStyle'](_0x33294f)||_0x10c554['setStyle']({[_0x33294f]:_0x169ab4},_0xb6a7fa);}_0x1fa5db&&_0x10c554['removeStyle'](_0x5a9cc1,_0x5c981d);}function K(_0x3c8259,_0x24e942){const _0x34a330={},_0x136caa={};return _0x24e942['forEach'](_0xd4aa3d=>{const _0x36e3b4=_0x3c8259['getStyle'](_0xd4aa3d);if(_0x36e3b4){if(function(_0x1eef1b){return O['includes'](_0x1eef1b);}(_0xd4aa3d))_0x34a330[_0xd4aa3d]=_0x36e3b4;else{if(function(_0x17d51a){return _0x17d51a in L;}(_0xd4aa3d)){const _0x4ed052=_0x36e3b4['split']('\x20');L[_0xd4aa3d]['forEach'](([_0x5cdfa1,_0x3f71d3])=>{for(const _0x3f123b of _0x4ed052)('function'==typeof _0x5cdfa1&&_0x5cdfa1(_0x3f123b)||_0x5cdfa1===_0x3f123b)&&(_0x136caa[_0xd4aa3d]=[..._0x136caa[_0xd4aa3d]||[],[_0x5cdfa1,_0x3f71d3]]);});}}}}),{'spanStyles':_0x34a330,'stylesToBeHtmlElements':_0x136caa};}var b=class extends _0x3ab63d{execute(_0x2edaf3){const _0x2f2109=new _0x517c6e(_0x2edaf3['content']['document']),_0xb9ae9c=_0x2f2109['createRangeIn'](_0x2edaf3['content']),_0x49404a=new _0x39a644(_0x2f2109['document']['stylesProcessor']),_0x50713b=[...new _0x53c6d0(_0x49404a)['blockElements'],'font'],_0x1625d6=_0xb9ae9c['getItems']();for(const _0x291116 of _0x1625d6)if(_0x291116['is']('element')&&_0x50713b['includes'](_0x291116['name'])){if(_0x291116['hasStyle']('mso-list')&&'none'!==_0x291116['getStyle']('mso-list')){P(_0x291116,_0x2f2109,v(_0x291116));continue;}F(_0x291116,_0x2f2109,v(_0x291116));}}isActive(_0x4a7020){return super['isActive'](_0x4a7020)||u(_0x4a7020);}},x=class extends _0x348e79{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x523d6c];}init(){const _0x583a8c=this['editor'],_0x45fc2c=_0x583a8c['plugins']['get']('PasteFromOffice'),_0x42587e=_0x583a8c['editing']['view']['document'],_0x59b3ab=new b(_0x42587e);_0x45fc2c['registerNormalizer'](_0x59b3ab,_0x182eed['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x187da9=[this['editor']];for(const _0x4d8d65 of _0x187da9){let _0x2683b2;for(const _0xf6982c in _0x4d8d65){const _0x54d071=_0xf6982c,_0x1124c1=_0x4d8d65[_0x54d071];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x1124c1||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x1124c1||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x1124c1||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x1124c1||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x1124c1||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x1124c1||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x1124c1){delete _0x4d8d65[_0x54d071],_0x2683b2=_0x1124c1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x2683b2&&_0x4d8d65['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x2683b2&&_0x4d8d65['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x2683b2&&_0x4d8d65['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x2683b2&&_0x4d8d65['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x2683b2&&_0x4d8d65['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x2683b2&&_0x4d8d65['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x348e79{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x523d6c,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.0",
4
4
  "description": "Enhanced paste from Office feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -31,11 +31,11 @@
31
31
  "./package.json": "./package.json"
32
32
  },
33
33
  "dependencies": {
34
- "@ckeditor/ckeditor5-clipboard": "48.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.0",
35
+ "@ckeditor/ckeditor5-core": "48.5.0-alpha.0",
36
+ "@ckeditor/ckeditor5-engine": "48.5.0-alpha.0",
37
+ "@ckeditor/ckeditor5-paste-from-office": "48.5.0-alpha.0",
38
+ "@ckeditor/ckeditor5-utils": "48.5.0-alpha.0"
39
39
  },
40
40
  "files": [
41
41
  "dist",