@ckeditor/ckeditor5-paste-from-office-enhanced 48.4.0-alpha.6 → 48.4.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 _0x494b68}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x1f537b,PasteFromOfficeMSWordNormalizer as _0x4fd03a}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x41b03f,uid as _0x160075}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x12ac1d,ViewDomConverter as _0x427fc1,ViewUpcastWriter as _0x141f89}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x42a3ee){return f['test'](_0x42a3ee);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x4e6ae5,_0x17556e){const _0x4b1cf7=new Map();for(const [_0x21629d,_0x5b5bd8]of _0x17556e){if(!_0x21629d['tagName']&&!_0x21629d['className'])continue;const _0x14ed72=!_0x21629d['tagName']||_0x4e6ae5['name']===_0x21629d['tagName'],_0x2b6827=!_0x21629d['className']||_0x4e6ae5['hasClass'](_0x21629d['className']);_0x14ed72&&_0x2b6827&&_0x4b1cf7['set'](_0x21629d,_0x5b5bd8);}return _0x4b1cf7;}function m(_0x1c2da7){const _0x5ba922={};for(let _0x3379d7=0x0;_0x3379d7<_0x1c2da7['length'];_0x3379d7++){const _0xf844cf=_0x1c2da7[_0x3379d7],_0x31f61e=_0x1c2da7['getPropertyValue'](_0xf844cf);'initial'!==_0x31f61e&&(_0x5ba922[_0xf844cf]=_0x31f61e);}return _0x5ba922;}function w(_0x1ad861){const _0x30888f=_0x1ad861['split'](',')['map'](_0x3ef91c=>_0x3ef91c['trim']()),_0x2e5a12=[];for(const _0x441846 of _0x30888f){const _0x7fe6b6=l['exec'](_0x441846);_0x7fe6b6&&_0x2e5a12['push'](_0x7fe6b6['groups']);}return _0x2e5a12;}function y(_0x4ff068){const _0x126dba={};for(const _0x3ede39 of _0x4ff068)Object['assign'](_0x126dba,_0x3ede39);return _0x126dba;}var g=class extends _0x4fd03a{execute(_0x19cdf6){const {styles:_0x21e927,stylesString:_0x57a00e}=_0x19cdf6['extraContent'],_0x53f14f=new _0x141f89(_0x19cdf6['content']['document']),_0x2cbcfa=_0x53f14f['createRangeIn'](_0x19cdf6['content']),_0x2a47c1=function(_0x898394){const _0xa3371f=new Map();for(const _0x5806ca in _0x898394){const _0x2c49a5=w(_0x5806ca),_0x31305e=_0x898394[_0x5806ca];for(const _0x430ba3 of _0x2c49a5)_0xa3371f['set'](_0x430ba3,_0x31305e);}return _0xa3371f;}(function(_0x1d47e9){const _0x2e34c4={};for(const _0x21d159 of _0x1d47e9)for(const _0x5613ae of _0x21d159['cssRules'])if(_0x5613ae instanceof CSSStyleRule){const _0x5a20f1=m(_0x5613ae['style']);_0x2e34c4[_0x5613ae['selectorText']]=Object['assign']({},_0x2e34c4[_0x5613ae['selectorText']]||{},_0x5a20f1);}return _0x2e34c4;}(_0x21e927)),_0x56c804=function(_0x51f71c){const _0x5846ce={},_0x59c0e0=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x285442=/\.(?<className>[\w-]+)/g;let _0x2cf2bf;for(;null!==(_0x2cf2bf=_0x59c0e0['exec'](_0x51f71c));){const {selector:_0x2ddc2d,color:_0x34d0d2,patternType:_0x452e79}=_0x2cf2bf['groups'];if('auto'!==_0x34d0d2['toLowerCase']()&&'none'!==_0x452e79['toLowerCase']()&&'auto'!==_0x452e79['toLowerCase']()){for(const _0x16405d of _0x2ddc2d['matchAll'](_0x285442))_0x5846ce[_0x16405d['groups']['className']]=_0x34d0d2;}}return _0x5846ce;}(_0x57a00e);for(const _0x254426 of _0x2cbcfa){if('elementStart'!==_0x254426['type'])continue;const _0x460df9=_0x254426['item'],_0xd7bc3f=d(_0x460df9,_0x2a47c1),_0x44d505=_0xd7bc3f['size']?y(Array['from'](_0xd7bc3f['values']())):{};if(!('background-color'in _0x44d505)&&!('background'in _0x44d505)){for(const [_0xcc4760,_0x435eb4]of Object['entries'](_0x56c804))if(_0x460df9['hasClass'](_0xcc4760)){_0x44d505['background-color']=_0x435eb4;break;}}for(const _0x437efb in _0x44d505)_0x460df9['hasStyle'](_0x437efb)||_0x53f14f['setStyle'](_0x437efb,_0x44d505[_0x437efb],_0x460df9);}}isActive(_0xd9ceb3){return super['isActive'](_0xd9ceb3)||u(_0xd9ceb3);}},p=class extends _0x494b68{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x1f537b];}init(){const _0x4e17bb=this['editor'],_0x907ddb=_0x4e17bb['plugins']['get']('PasteFromOffice'),_0x5c0243=_0x4e17bb['editing']['view']['document'],_0x10e0b1=new g(_0x5c0243);_0x907ddb['registerNormalizer'](_0x10e0b1,_0x41b03f['high']+0xb);}afterInit(){!async function(_0x46b5dc){const _0x39102a='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x4f3b98=0x791b8,_0x45533a=window['Date']['now'](),_0x38c685=_0x46b5dc['editor'],_0x40a12a=new window['Promise'](_0x4694ce=>{_0x38c685['once']('ready',_0x4694ce);}),_0x5d4706={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0xdd8272=_0x38c685['config']['get']('licenseKey');async function _0xbc9e71(){let _0x189652,_0x5407cd=null,_0x48a025=null;try{return'GPL'==_0xdd8272?'NotAllowed':(_0x189652=_0x18f39d(),_0x189652?(_0x189652['usageEndpoint']&&(_0x48a025=_0x1efd3b(_0x189652['usageEndpoint'],_0x189652['jti'])),await _0x582486()?_0x14d5a5()?_0x55e973()?'Expired':_0x57ddab()?('evaluation'==_0x189652['licenseType']&&(_0x5407cd=_0x41b636('EvaluationLimit')),await _0x423e1b()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x55e973(){const _0x431f72=['evaluation','trial']['includes'](_0x189652['licenseType'])?_0x45533a/0x3e8:0xe10*_0x4f3b98;return _0x189652['exp']<_0x431f72;}function _0x14d5a5(){const _0x11138c=_0x189652['features'];return!!_0x11138c&&(!!_0x11138c['includes']('*')||(!!_0x11138c['includes']('POE')||(!!_0x11138c['includes']('PP')||!(!_0x11138c['includes']('TRILIUM')||!_0x51c468()))));}function _0x57ddab(){const _0x4da2a8=_0x189652['licensedHosts'];if(!_0x4da2a8||0x0==_0x4da2a8['length'])return!0x0;const {hostname:_0x592b8c}=new URL(window['location']['href']);if(_0x4da2a8['includes'](_0x592b8c))return!0x0;const _0x2e43f0=_0x592b8c['split']('.');return _0x4da2a8['filter'](_0x395d0f=>_0x395d0f['includes']('*'))['map'](_0x331a49=>_0x331a49['split']('.'))['filter'](_0x47da37=>_0x47da37['length']<=_0x2e43f0['length'])['map'](_0x1fd7eb=>Array(_0x2e43f0['length']-_0x1fd7eb['length'])['fill']('*'===_0x1fd7eb[0x0]?'*':'')['concat'](_0x1fd7eb))['some'](_0x46c486=>_0x2e43f0['every']((_0x24fe8e,_0x275830)=>_0x46c486[_0x275830]===_0x24fe8e||'*'===_0x46c486[_0x275830]));}function _0x423e1b(){return _0x5407cd&&_0x48a025?new window['Promise']((_0x2abb60,_0x52fc40)=>{_0x5407cd['then'](_0x2abb60,_0x52fc40),_0x48a025['then'](_0x89e84b=>{'Valid'!=_0x89e84b&&_0x2abb60(_0x89e84b);},_0x52fc40);}):_0x5407cd||_0x48a025||'Valid';}}function _0x1efd3b(_0x51aba7,_0x43dc84){return new window['Promise'](_0x37291e=>{if(_0x129b11())return _0x37291e('Valid');_0x2da066(),_0x38c685['decorate']('_sendUsageRequest');let _0x503adb=!0x1;const _0x418fa2=_0x160075();function _0x14220b(_0x5ec034){return!!_0x5ec034&&('object'==typeof _0x5ec034||'function'==typeof _0x5ec034)&&'function'==typeof _0x5ec034['then']&&'function'==typeof _0x5ec034['catch'];}function _0x5ccd7e(_0x3ba790){_0xf1ab8c(_0x3ba790)['then'](_0x173169=>_0x173169&&'ok'==_0x173169['status']?_0x2498d3(_0x4e73a4(_0x418fa2+_0x43dc84))!=_0x173169['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3f6f50=>(_0x203095(),_0x3f6f50),()=>{const _0x52536c=_0x4b7511();return null==_0x52536c?(_0x203095(),'Valid'):_0x45533a-_0x52536c>0x240c8400?'UsageLimit':'Valid';})['then'](_0x37291e)['catch'](()=>{_0x37291e('UsageLimit');});const _0x246899=0x36ee80;function _0x203095(){const _0x24e0b1='llct-'+_0x2498d3(_0x4e73a4(_0x51aba7)),_0x57f0aa=_0xff4bdd(_0x2498d3(window['Math']['ceil'](_0x45533a/_0x246899)));window['localStorage']['setItem'](_0x24e0b1,_0x57f0aa);}function _0x4b7511(){const _0x2427cd='llct-'+_0x2498d3(_0x4e73a4(_0x51aba7)),_0x522963=window['localStorage']['getItem'](_0x2427cd);return _0x522963?window['parseInt'](_0xff4bdd(_0x522963),0x10)*_0x246899:null;}function _0xf1ab8c(_0x6604c3){return new window['Promise']((_0x191eac,_0x4e2a92)=>{_0x6604c3['then'](_0x191eac,_0x4e2a92),window['setTimeout'](_0x4e2a92,0x1d4c0);});}}_0x38c685['on']('_sendUsageRequest',(_0x747e48,_0x2ba85b)=>{if(_0x2ba85b[0x0]!=_0x51aba7)return _0x37291e('UsageLimit');_0x2ba85b[0x1]={..._0x2ba85b[0x1],'requestId':_0x418fa2};},{'priority':'high'}),_0x38c685['on']('_sendUsageRequest',_0x2527e2=>{_0x14220b(_0x2527e2['return'])&&(_0x503adb=!0x0,_0x5ccd7e(_0x2527e2['return']));},{'priority':'low'}),_0x40a12a['then'](()=>{_0x503adb||_0x37291e('UsageLimit');});});function _0x129b11(){return'auto'==_0x38c685['editing']['view']['_overlayModeHint'];}function _0x2da066(){_0x38c685['editing']['view']['_overlayModeHint']='auto';}}function _0x41b636(_0x588689){const _0xab22d9=[new window['Promise'](_0x1fd336=>setTimeout(_0x1fd336,0x93ecc)),_0x40a12a['then'](()=>new window['Promise'](_0x2eb89a=>{let _0x2e8548=0x0;_0x38c685['model']['on']('applyOperation',(_0x40dd65,_0x711137)=>{_0x711137[0x0]['isDocumentOperation']&&_0x2e8548++,0x5e8==_0x2e8548&&(_0x2eb89a(),_0x40dd65['off']());});}))];return window['Promise']['race'](_0xab22d9)['then'](()=>_0x588689);}async function _0x929f7(){await _0x40a12a,_0x38c685['model']['change']=_0x250532,_0x38c685['model']['enqueueChange']=_0x250532,_0x38c685['enableReadOnlyMode']('model');}function _0x51c468(){return window['glob']&&window['glob']['triliumVersion'];}function _0x283cad(_0x3bf594){const _0x1e64bc=_0x4a7c3b();_0x38c685[_0x1e64bc]='pasteFromOfficeEnhancedLicenseKey'+_0x3bf594,'Valid'!=_0x3bf594&&_0x929f7();}function _0x4a7c3b(){const _0x2e56cb=window['String'](window['performance']['now']())['replace']('.','');let _0x5ba298='s';for(let _0x324ec6=0x0;_0x324ec6<_0x2e56cb['length'];_0x324ec6+=0x2){let _0x3b6e9e=window['parseInt'](_0x2e56cb['substring'](_0x324ec6,_0x324ec6+0x2));_0x3b6e9e>=0x3e&&(_0x3b6e9e-=0x3e),_0x5ba298+=_0x39102a[_0x3b6e9e];}return _0x5ba298;}function _0x18f39d(){const _0x507591=_0xdd8272['split']('.');if(0x3!=_0x507591['length'])return null;return _0x29adfc(_0x507591[0x1]);function _0x29adfc(_0x1af7db){const _0x50dd1c=_0x587f33(_0x1af7db);return _0x50dd1c&&_0x2a67b4()?_0x50dd1c:null;function _0x2a67b4(){const _0x5d4337=_0x50dd1c['jti'],_0x30d1f8=window['parseInt'](_0x5d4337['substring'](_0x5d4337['length']-0x8),0x10),_0x4822c4={..._0x50dd1c,'jti':_0x5d4337['substring'](0x0,_0x5d4337['length']-0x8)};return delete _0x4822c4['vc'],_0x4e73a4(_0x4822c4)==_0x30d1f8;}}}async function _0x582486(){let _0x21cad6=!0x0;try{const [_0x56d682,_0x592597,_0x421bd5]=_0xdd8272['split']('.');return _0x12cef7(_0x56d682),await _0x3afaf8(_0x56d682,_0x592597,_0x421bd5),_0x21cad6;}catch{return!0x1;}function _0x12cef7(_0x5dea37){const _0x12610f=_0x587f33(_0x5dea37);_0x12610f&&'ES256'==_0x12610f['alg']||(_0x21cad6=!0x1);}async function _0x3afaf8(_0x264315,_0x2ed646,_0x301115){const _0x4b430d=window['Uint8Array']['from'](_0x141cdd(_0x301115),_0x40a8b1=>_0x40a8b1['charCodeAt'](0x0)),_0x526d68=new window['TextEncoder']()['encode'](_0x264315+'.'+_0x2ed646),_0x3ac260=window['crypto']['subtle'];if(!_0x3ac260)return;const _0x75f918=await _0x3ac260['importKey']('jwk',_0x5d4706,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3ac260['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x75f918,_0x4b430d,_0x526d68)||(_0x21cad6=!0x1);}}function _0x587f33(_0x36670f){return _0x36670f['startsWith']('ey')?JSON['parse'](_0x141cdd(_0x36670f)):null;}function _0x141cdd(_0x4eeff3){return window['atob'](_0x4eeff3['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x4e73a4(_0x42e714){let _0x1042ff=0x1505;function _0x34a5bf(_0x5d009c){for(let _0x1ff112=0x0;_0x1ff112<_0x5d009c['length'];_0x1ff112++){const _0x27088f=_0x5d009c['charCodeAt'](_0x1ff112);_0x1042ff=(_0x1042ff<<0x5)+_0x1042ff+_0x27088f,_0x1042ff&=_0x1042ff;}}function _0x73e910(_0x1bd2f4){Array['isArray'](_0x1bd2f4)?_0x1bd2f4['forEach'](_0x73e910):_0x1bd2f4&&'object'==typeof _0x1bd2f4?Object['entries'](_0x1bd2f4)['sort']()['forEach'](([_0x58e45b,_0x130afc])=>{_0x34a5bf(_0x58e45b),_0x73e910(_0x130afc);}):_0x34a5bf(window['String'](_0x1bd2f4));}return _0x73e910(_0x42e714),_0x1042ff>>>0x0;}function _0x2498d3(_0x8f3022){return _0x8f3022['toString'](0x10)['padStart'](0x8,'0');}function _0xff4bdd(_0x2c4ae9){return _0x2c4ae9['split']('')['reverse']()['join']('');}function _0x250532(){}_0x283cad(await _0xbc9e71());}(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'],[_0x339b1e=>Number(_0x339b1e)>=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(_0x1fb5ac){return h['includes'](_0x1fb5ac);}function v(_0x5ec5f0){return Array['from'](_0x5ec5f0['getStyleNames']())['filter'](E);}function F(_0x1901b4,_0x16951f,_0x3c9cb4){const {spanStyles:_0x32f09e,stylesToBeHtmlElements:_0x2bcd3f}=K(_0x1901b4,_0x3c9cb4);!function(_0x3a0645,_0x325f54,_0x1923f6){for(const _0x27bdf9 in _0x1923f6)_0x1923f6[_0x27bdf9]['forEach'](([,_0x206556])=>{const _0x530cd7=_0x325f54['createElement'](_0x206556,[],_0x3a0645['getChildren']());_0x325f54['insertChild'](0x0,_0x530cd7,_0x3a0645);}),_0x325f54['removeStyle'](_0x27bdf9,_0x3a0645);}(_0x1901b4,_0x16951f,_0x2bcd3f),function(_0x2319c1,_0x40889a,_0x31d001){if(!Object['keys'](_0x31d001)['length'])return;const _0xd5f488=_0x40889a['createElement']('span',[],_0x2319c1['getChildren']());_0x40889a['setStyle'](_0x31d001,_0xd5f488),_0x40889a['insertChild'](0x0,_0xd5f488,_0x2319c1),_0x40889a['removeStyle'](Object['keys'](_0x31d001),_0x2319c1);}(_0x1901b4,_0x16951f,_0x32f09e);}function P(_0x37a26a,_0x3d9a1a,_0xf748ab){const {spanStyles:_0x5c3b9f}=K(_0x37a26a,_0xf748ab),_0x12e0c4=Object['keys'](_0x5c3b9f);if(!_0x12e0c4['length'])return;let _0x57ccfb=!0x1;for(const _0x1cc899 of _0x37a26a['getChildren']())if(_0x1cc899['is']('element','span')){_0x57ccfb=!0x0;for(const [_0x35c4b8,_0x1367e5]of Object['entries'](_0x5c3b9f))_0x1cc899['hasStyle'](_0x35c4b8)||_0x3d9a1a['setStyle']({[_0x35c4b8]:_0x1367e5},_0x1cc899);}_0x57ccfb&&_0x3d9a1a['removeStyle'](_0x12e0c4,_0x37a26a);}function K(_0x107cf4,_0x46d138){const _0x45972d={},_0x183d9a={};return _0x46d138['forEach'](_0x3b9ee8=>{const _0x22e5d6=_0x107cf4['getStyle'](_0x3b9ee8);if(_0x22e5d6){if(function(_0x2cd8ac){return O['includes'](_0x2cd8ac);}(_0x3b9ee8))_0x45972d[_0x3b9ee8]=_0x22e5d6;else{if(function(_0x118f30){return _0x118f30 in L;}(_0x3b9ee8)){const _0x44be1d=_0x22e5d6['split']('\x20');L[_0x3b9ee8]['forEach'](([_0x323328,_0x540ebb])=>{for(const _0x4724c3 of _0x44be1d)('function'==typeof _0x323328&&_0x323328(_0x4724c3)||_0x323328===_0x4724c3)&&(_0x183d9a[_0x3b9ee8]=[..._0x183d9a[_0x3b9ee8]||[],[_0x323328,_0x540ebb]]);});}}}}),{'spanStyles':_0x45972d,'stylesToBeHtmlElements':_0x183d9a};}var b=class extends _0x4fd03a{execute(_0x45e183){const _0x1ab3f8=new _0x141f89(_0x45e183['content']['document']),_0x37a082=_0x1ab3f8['createRangeIn'](_0x45e183['content']),_0x284806=[...new _0x427fc1(new _0x12ac1d(_0x1ab3f8['document']['stylesProcessor']))['blockElements'],'font'],_0x55382d=_0x37a082['getItems']();for(const _0x39729f of _0x55382d)if(_0x39729f['is']('element')&&_0x284806['includes'](_0x39729f['name'])){if(_0x39729f['hasStyle']('mso-list')&&'none'!==_0x39729f['getStyle']('mso-list')){P(_0x39729f,_0x1ab3f8,v(_0x39729f));continue;}F(_0x39729f,_0x1ab3f8,v(_0x39729f));}}isActive(_0x1b22f7){return super['isActive'](_0x1b22f7)||u(_0x1b22f7);}},x=class extends _0x494b68{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x1f537b];}init(){const _0x232d0d=this['editor'],_0x322e69=_0x232d0d['plugins']['get']('PasteFromOffice'),_0x359d6d=_0x232d0d['editing']['view']['document'],_0x11ca33=new b(_0x359d6d);_0x322e69['registerNormalizer'](_0x11ca33,_0x41b03f['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x157989=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b5c71;for(const _0x19f5a7 in _0x157989){const _0x1a5996=_0x19f5a7,_0x137bf9=_0x157989[_0x1a5996];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x137bf9||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x137bf9||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x137bf9||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x137bf9||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x137bf9||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x137bf9||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x137bf9){delete _0x157989[_0x1a5996],_0x1b5c71=_0x137bf9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x1b5c71&&_0x157989['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x1b5c71&&_0x157989['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x1b5c71&&_0x157989['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x1b5c71&&_0x157989['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x1b5c71&&_0x157989['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x1b5c71&&_0x157989['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x494b68{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x1f537b,p,x];}};export{k as PasteFromOfficeEnhanced};
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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-paste-from-office-enhanced",
3
- "version": "48.4.0-alpha.6",
3
+ "version": "48.4.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-alpha.6",
35
- "@ckeditor/ckeditor5-core": "48.4.0-alpha.6",
36
- "@ckeditor/ckeditor5-engine": "48.4.0-alpha.6",
37
- "@ckeditor/ckeditor5-paste-from-office": "48.4.0-alpha.6",
38
- "@ckeditor/ckeditor5-utils": "48.4.0-alpha.6"
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"
39
39
  },
40
40
  "files": [
41
41
  "dist",