@ckeditor/ckeditor5-paste-from-office-enhanced 48.4.0-alpha.5 → 48.4.0-alpha.7

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 _0x1ccdcb}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x8ba53d,PasteFromOfficeMSWordNormalizer as _0x9319e1}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x2ee922,uid as _0x2d2dda}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x380b04,ViewDomConverter as _0x1efe36,ViewUpcastWriter as _0x5b0491}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x14ce8f){return f['test'](_0x14ce8f);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x54a2db,_0x5d3137){const _0x517974=new Map();for(const [_0x164de4,_0x3c59da]of _0x5d3137){if(!_0x164de4['tagName']&&!_0x164de4['className'])continue;const _0x31e744=!_0x164de4['tagName']||_0x54a2db['name']===_0x164de4['tagName'],_0x47f592=!_0x164de4['className']||_0x54a2db['hasClass'](_0x164de4['className']);_0x31e744&&_0x47f592&&_0x517974['set'](_0x164de4,_0x3c59da);}return _0x517974;}function m(_0x532b75){const _0x1600bb={};for(let _0x4c514f=0x0;_0x4c514f<_0x532b75['length'];_0x4c514f++){const _0x558eab=_0x532b75[_0x4c514f],_0x417ed4=_0x532b75['getPropertyValue'](_0x558eab);'initial'!==_0x417ed4&&(_0x1600bb[_0x558eab]=_0x417ed4);}return _0x1600bb;}function w(_0x4e42f0){const _0x25ac58=_0x4e42f0['split'](',')['map'](_0x5e2129=>_0x5e2129['trim']()),_0xc9c17d=[];for(const _0x3dc6ce of _0x25ac58){const _0x156e67=l['exec'](_0x3dc6ce);_0x156e67&&_0xc9c17d['push'](_0x156e67['groups']);}return _0xc9c17d;}function y(_0x182cc7){const _0x2ad3f6={};for(const _0x4730f2 of _0x182cc7)Object['assign'](_0x2ad3f6,_0x4730f2);return _0x2ad3f6;}var g=class extends _0x9319e1{execute(_0x2bed6a){const {styles:_0x5e4d21,stylesString:_0x8b9a8}=_0x2bed6a['extraContent'],_0x1e69f2=new _0x5b0491(_0x2bed6a['content']['document']),_0x2ce289=_0x1e69f2['createRangeIn'](_0x2bed6a['content']),_0x8f9d46=function(_0x3438b1){const _0xbf0cd=new Map();for(const _0x3a14e6 in _0x3438b1){const _0x1265bf=w(_0x3a14e6),_0x3becef=_0x3438b1[_0x3a14e6];for(const _0x38a303 of _0x1265bf)_0xbf0cd['set'](_0x38a303,_0x3becef);}return _0xbf0cd;}(function(_0x288e83){const _0x2bb00c={};for(const _0x180ec8 of _0x288e83)for(const _0x271366 of _0x180ec8['cssRules'])if(_0x271366 instanceof CSSStyleRule){const _0xbaa753=m(_0x271366['style']);_0x2bb00c[_0x271366['selectorText']]=Object['assign']({},_0x2bb00c[_0x271366['selectorText']]||{},_0xbaa753);}return _0x2bb00c;}(_0x5e4d21)),_0x1077e7=function(_0x25d6a5){const _0x553a77={},_0x3fc923=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0xfef652=/\.(?<className>[\w-]+)/g;let _0x1bb265;for(;null!==(_0x1bb265=_0x3fc923['exec'](_0x25d6a5));){const {selector:_0x3513b2,color:_0x2af460,patternType:_0x29c5ef}=_0x1bb265['groups'];if('auto'!==_0x2af460['toLowerCase']()&&'none'!==_0x29c5ef['toLowerCase']()&&'auto'!==_0x29c5ef['toLowerCase']()){for(const _0x379520 of _0x3513b2['matchAll'](_0xfef652))_0x553a77[_0x379520['groups']['className']]=_0x2af460;}}return _0x553a77;}(_0x8b9a8);for(const _0x3324a0 of _0x2ce289){if('elementStart'!==_0x3324a0['type'])continue;const _0x4a4468=_0x3324a0['item'],_0x5ec3f6=d(_0x4a4468,_0x8f9d46),_0x48f946=_0x5ec3f6['size']?y(Array['from'](_0x5ec3f6['values']())):{};if(!('background-color'in _0x48f946)&&!('background'in _0x48f946)){for(const [_0x10ba0c,_0x51a2a4]of Object['entries'](_0x1077e7))if(_0x4a4468['hasClass'](_0x10ba0c)){_0x48f946['background-color']=_0x51a2a4;break;}}for(const _0x2e747a in _0x48f946)_0x4a4468['hasStyle'](_0x2e747a)||_0x1e69f2['setStyle'](_0x2e747a,_0x48f946[_0x2e747a],_0x4a4468);}}isActive(_0x3dac40){return super['isActive'](_0x3dac40)||u(_0x3dac40);}},p=class extends _0x1ccdcb{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x8ba53d];}init(){const _0x353649=this['editor'],_0x35dd9f=_0x353649['plugins']['get']('PasteFromOffice'),_0x5030d8=_0x353649['editing']['view']['document'],_0x56bd19=new g(_0x5030d8);_0x35dd9f['registerNormalizer'](_0x56bd19,_0x2ee922['high']+0xb);}afterInit(){!async function(_0x5ecaca){const _0x26ce9d='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x33b465=0x791a0,_0x2f7c5a=window['Date']['now'](),_0x407277=_0x5ecaca['editor'],_0x3a2b59=new window['Promise'](_0x4f2b9f=>{_0x407277['once']('ready',_0x4f2b9f);}),_0x569aec={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x643b49=_0x407277['config']['get']('licenseKey');async function _0x117b57(){let _0x5e6698,_0x305f07=null,_0x272ce9=null;try{return'GPL'==_0x643b49?'NotAllowed':(_0x5e6698=_0x2692da(),_0x5e6698?(_0x5e6698['usageEndpoint']&&(_0x272ce9=_0x115408(_0x5e6698['usageEndpoint'],_0x5e6698['jti'])),await _0x3c4ff1()?_0x3d4e91()?_0x1532d6()?'Expired':_0x4ac7da()?('evaluation'==_0x5e6698['licenseType']&&(_0x305f07=_0x2c57ee('EvaluationLimit')),await _0x48da2e()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x1532d6(){const _0x3f6029=['evaluation','trial']['includes'](_0x5e6698['licenseType'])?_0x2f7c5a/0x3e8:0xe10*_0x33b465;return _0x5e6698['exp']<_0x3f6029;}function _0x3d4e91(){const _0x50606d=_0x5e6698['features'];return!!_0x50606d&&(!!_0x50606d['includes']('*')||(!!_0x50606d['includes']('POE')||(!!_0x50606d['includes']('PP')||!(!_0x50606d['includes']('TRILIUM')||!_0x42f2b9()))));}function _0x4ac7da(){const _0x2728eb=_0x5e6698['licensedHosts'];if(!_0x2728eb||0x0==_0x2728eb['length'])return!0x0;const {hostname:_0x320d5f}=new URL(window['location']['href']);if(_0x2728eb['includes'](_0x320d5f))return!0x0;const _0x63d9e7=_0x320d5f['split']('.');return _0x2728eb['filter'](_0x318142=>_0x318142['includes']('*'))['map'](_0x34cf59=>_0x34cf59['split']('.'))['filter'](_0x5ec26d=>_0x5ec26d['length']<=_0x63d9e7['length'])['map'](_0x42de95=>Array(_0x63d9e7['length']-_0x42de95['length'])['fill']('*'===_0x42de95[0x0]?'*':'')['concat'](_0x42de95))['some'](_0x399f34=>_0x63d9e7['every']((_0x5bf418,_0x4f6ec2)=>_0x399f34[_0x4f6ec2]===_0x5bf418||'*'===_0x399f34[_0x4f6ec2]));}function _0x48da2e(){return _0x305f07&&_0x272ce9?new window['Promise']((_0x2b4c4c,_0x36cbb7)=>{_0x305f07['then'](_0x2b4c4c,_0x36cbb7),_0x272ce9['then'](_0x218b4d=>{'Valid'!=_0x218b4d&&_0x2b4c4c(_0x218b4d);},_0x36cbb7);}):_0x305f07||_0x272ce9||'Valid';}}function _0x115408(_0x499824,_0x135ce7){return new window['Promise'](_0x18730f=>{if(_0x129af5())return _0x18730f('Valid');_0x20abee(),_0x407277['decorate']('_sendUsageRequest');let _0x445a17=!0x1;const _0xbbae31=_0x2d2dda();function _0x11836f(_0x163295){return!!_0x163295&&('object'==typeof _0x163295||'function'==typeof _0x163295)&&'function'==typeof _0x163295['then']&&'function'==typeof _0x163295['catch'];}function _0x201358(_0x27f21e){_0x2218dc(_0x27f21e)['then'](_0x4926e4=>_0x4926e4&&'ok'==_0x4926e4['status']?_0x4703ea(_0x1cf01e(_0xbbae31+_0x135ce7))!=_0x4926e4['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x39ea80=>(_0x2a4d41(),_0x39ea80),()=>{const _0x1745b4=_0x1a5d8b();return null==_0x1745b4?(_0x2a4d41(),'Valid'):_0x2f7c5a-_0x1745b4>0x240c8400?'UsageLimit':'Valid';})['then'](_0x18730f)['catch'](()=>{_0x18730f('UsageLimit');});const _0x43c814=0x36ee80;function _0x2a4d41(){const _0x2f8a46='llct-'+_0x4703ea(_0x1cf01e(_0x499824)),_0x2279d2=_0x3b4097(_0x4703ea(window['Math']['ceil'](_0x2f7c5a/_0x43c814)));window['localStorage']['setItem'](_0x2f8a46,_0x2279d2);}function _0x1a5d8b(){const _0x190210='llct-'+_0x4703ea(_0x1cf01e(_0x499824)),_0x2b6736=window['localStorage']['getItem'](_0x190210);return _0x2b6736?window['parseInt'](_0x3b4097(_0x2b6736),0x10)*_0x43c814:null;}function _0x2218dc(_0x1abed7){return new window['Promise']((_0x2d549b,_0x3eb0aa)=>{_0x1abed7['then'](_0x2d549b,_0x3eb0aa),window['setTimeout'](_0x3eb0aa,0x1d4c0);});}}_0x407277['on']('_sendUsageRequest',(_0x2573a6,_0x12fe93)=>{if(_0x12fe93[0x0]!=_0x499824)return _0x18730f('UsageLimit');_0x12fe93[0x1]={..._0x12fe93[0x1],'requestId':_0xbbae31};},{'priority':'high'}),_0x407277['on']('_sendUsageRequest',_0x5834ba=>{_0x11836f(_0x5834ba['return'])&&(_0x445a17=!0x0,_0x201358(_0x5834ba['return']));},{'priority':'low'}),_0x3a2b59['then'](()=>{_0x445a17||_0x18730f('UsageLimit');});});function _0x129af5(){return'auto'==_0x407277['editing']['view']['_overlayModeHint'];}function _0x20abee(){_0x407277['editing']['view']['_overlayModeHint']='auto';}}function _0x2c57ee(_0x9af080){const _0x483f7c=[new window['Promise'](_0x5145c4=>setTimeout(_0x5145c4,0x93ecc)),_0x3a2b59['then'](()=>new window['Promise'](_0x3d2364=>{let _0x590e3c=0x0;_0x407277['model']['on']('applyOperation',(_0x1074e8,_0x110f59)=>{_0x110f59[0x0]['isDocumentOperation']&&_0x590e3c++,0x5e8==_0x590e3c&&(_0x3d2364(),_0x1074e8['off']());});}))];return window['Promise']['race'](_0x483f7c)['then'](()=>_0x9af080);}async function _0x1cddc4(){await _0x3a2b59,_0x407277['model']['change']=_0x2bf9a3,_0x407277['model']['enqueueChange']=_0x2bf9a3,_0x407277['enableReadOnlyMode']('model');}function _0x42f2b9(){return window['glob']&&window['glob']['triliumVersion'];}function _0x503371(_0x4e90b5){const _0x23c860=_0x587def();_0x407277[_0x23c860]='pasteFromOfficeEnhancedLicenseKey'+_0x4e90b5,'Valid'!=_0x4e90b5&&_0x1cddc4();}function _0x587def(){const _0x13cfaa=window['String'](window['performance']['now']())['replace']('.','');let _0x1371b9='s';for(let _0x358fc8=0x0;_0x358fc8<_0x13cfaa['length'];_0x358fc8+=0x2){let _0x3bbf78=window['parseInt'](_0x13cfaa['substring'](_0x358fc8,_0x358fc8+0x2));_0x3bbf78>=0x3e&&(_0x3bbf78-=0x3e),_0x1371b9+=_0x26ce9d[_0x3bbf78];}return _0x1371b9;}function _0x2692da(){const _0x52247e=_0x643b49['split']('.');if(0x3!=_0x52247e['length'])return null;return _0x14b146(_0x52247e[0x1]);function _0x14b146(_0x43305f){const _0x122efc=_0xf4a9ec(_0x43305f);return _0x122efc&&_0x480e8e()?_0x122efc:null;function _0x480e8e(){const _0x2f7f09=_0x122efc['jti'],_0x54d2ae=window['parseInt'](_0x2f7f09['substring'](_0x2f7f09['length']-0x8),0x10),_0x26e029={..._0x122efc,'jti':_0x2f7f09['substring'](0x0,_0x2f7f09['length']-0x8)};return delete _0x26e029['vc'],_0x1cf01e(_0x26e029)==_0x54d2ae;}}}async function _0x3c4ff1(){let _0x1a2c8f=!0x0;try{const [_0x1192bc,_0x135630,_0x9aec9f]=_0x643b49['split']('.');return _0x5bf6d5(_0x1192bc),await _0x3d2282(_0x1192bc,_0x135630,_0x9aec9f),_0x1a2c8f;}catch{return!0x1;}function _0x5bf6d5(_0x51ab18){const _0x30067f=_0xf4a9ec(_0x51ab18);_0x30067f&&'ES256'==_0x30067f['alg']||(_0x1a2c8f=!0x1);}async function _0x3d2282(_0x4a6010,_0x537a6f,_0x4e6276){const _0x3c135a=window['Uint8Array']['from'](_0x2c1b99(_0x4e6276),_0xe30d90=>_0xe30d90['charCodeAt'](0x0)),_0x4630aa=new window['TextEncoder']()['encode'](_0x4a6010+'.'+_0x537a6f),_0x3eb674=window['crypto']['subtle'];if(!_0x3eb674)return;const _0x3f3559=await _0x3eb674['importKey']('jwk',_0x569aec,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3eb674['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3f3559,_0x3c135a,_0x4630aa)||(_0x1a2c8f=!0x1);}}function _0xf4a9ec(_0xeca844){return _0xeca844['startsWith']('ey')?JSON['parse'](_0x2c1b99(_0xeca844)):null;}function _0x2c1b99(_0x1e0119){return window['atob'](_0x1e0119['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1cf01e(_0x1791d4){let _0x347db4=0x1505;function _0x13ba08(_0x5a8db3){for(let _0x88ae12=0x0;_0x88ae12<_0x5a8db3['length'];_0x88ae12++){const _0x5e174b=_0x5a8db3['charCodeAt'](_0x88ae12);_0x347db4=(_0x347db4<<0x5)+_0x347db4+_0x5e174b,_0x347db4&=_0x347db4;}}function _0x4fc3f0(_0x5248e7){Array['isArray'](_0x5248e7)?_0x5248e7['forEach'](_0x4fc3f0):_0x5248e7&&'object'==typeof _0x5248e7?Object['entries'](_0x5248e7)['sort']()['forEach'](([_0x253337,_0x23b84d])=>{_0x13ba08(_0x253337),_0x4fc3f0(_0x23b84d);}):_0x13ba08(window['String'](_0x5248e7));}return _0x4fc3f0(_0x1791d4),_0x347db4>>>0x0;}function _0x4703ea(_0x10bf99){return _0x10bf99['toString'](0x10)['padStart'](0x8,'0');}function _0x3b4097(_0x1459be){return _0x1459be['split']('')['reverse']()['join']('');}function _0x2bf9a3(){}_0x503371(await _0x117b57());}(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'],[_0x228498=>Number(_0x228498)>=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(_0x581e5b){return h['includes'](_0x581e5b);}function v(_0x49a6dd){return Array['from'](_0x49a6dd['getStyleNames']())['filter'](E);}function F(_0x443914,_0x18d347,_0x39301a){const {spanStyles:_0x5c1686,stylesToBeHtmlElements:_0x5b78d2}=K(_0x443914,_0x39301a);!function(_0x35e96d,_0x23bb8a,_0x3101b4){for(const _0x412a4e in _0x3101b4)_0x3101b4[_0x412a4e]['forEach'](([,_0x111122])=>{const _0x38f0cd=_0x23bb8a['createElement'](_0x111122,[],_0x35e96d['getChildren']());_0x23bb8a['insertChild'](0x0,_0x38f0cd,_0x35e96d);}),_0x23bb8a['removeStyle'](_0x412a4e,_0x35e96d);}(_0x443914,_0x18d347,_0x5b78d2),function(_0x17e1a7,_0x4cb3cf,_0x1d341c){if(!Object['keys'](_0x1d341c)['length'])return;const _0x58c4c4=_0x4cb3cf['createElement']('span',[],_0x17e1a7['getChildren']());_0x4cb3cf['setStyle'](_0x1d341c,_0x58c4c4),_0x4cb3cf['insertChild'](0x0,_0x58c4c4,_0x17e1a7),_0x4cb3cf['removeStyle'](Object['keys'](_0x1d341c),_0x17e1a7);}(_0x443914,_0x18d347,_0x5c1686);}function P(_0xcc1a03,_0x1fa231,_0x4ed7eb){const {spanStyles:_0x5c027e}=K(_0xcc1a03,_0x4ed7eb),_0x4d644e=Object['keys'](_0x5c027e);if(!_0x4d644e['length'])return;let _0x2c31e4=!0x1;for(const _0x42aeb7 of _0xcc1a03['getChildren']())if(_0x42aeb7['is']('element','span')){_0x2c31e4=!0x0;for(const [_0x515275,_0xa8b1eb]of Object['entries'](_0x5c027e))_0x42aeb7['hasStyle'](_0x515275)||_0x1fa231['setStyle']({[_0x515275]:_0xa8b1eb},_0x42aeb7);}_0x2c31e4&&_0x1fa231['removeStyle'](_0x4d644e,_0xcc1a03);}function K(_0x3e8eaf,_0x157420){const _0x35a257={},_0x58cc77={};return _0x157420['forEach'](_0x40eedb=>{const _0xd71ad=_0x3e8eaf['getStyle'](_0x40eedb);if(_0xd71ad){if(function(_0x547222){return O['includes'](_0x547222);}(_0x40eedb))_0x35a257[_0x40eedb]=_0xd71ad;else{if(function(_0x1f1fc6){return _0x1f1fc6 in L;}(_0x40eedb)){const _0x250b12=_0xd71ad['split']('\x20');L[_0x40eedb]['forEach'](([_0x193a47,_0x31d70f])=>{for(const _0x32eca8 of _0x250b12)('function'==typeof _0x193a47&&_0x193a47(_0x32eca8)||_0x193a47===_0x32eca8)&&(_0x58cc77[_0x40eedb]=[..._0x58cc77[_0x40eedb]||[],[_0x193a47,_0x31d70f]]);});}}}}),{'spanStyles':_0x35a257,'stylesToBeHtmlElements':_0x58cc77};}var b=class extends _0x9319e1{execute(_0x499957){const _0x1bbe41=new _0x5b0491(_0x499957['content']['document']),_0x2d0c03=_0x1bbe41['createRangeIn'](_0x499957['content']),_0x533ad1=[...new _0x1efe36(new _0x380b04(_0x1bbe41['document']['stylesProcessor']))['blockElements'],'font'],_0x5630ba=_0x2d0c03['getItems']();for(const _0x3a4b62 of _0x5630ba)if(_0x3a4b62['is']('element')&&_0x533ad1['includes'](_0x3a4b62['name'])){if(_0x3a4b62['hasStyle']('mso-list')&&'none'!==_0x3a4b62['getStyle']('mso-list')){P(_0x3a4b62,_0x1bbe41,v(_0x3a4b62));continue;}F(_0x3a4b62,_0x1bbe41,v(_0x3a4b62));}}isActive(_0x3b9ede){return super['isActive'](_0x3b9ede)||u(_0x3b9ede);}},x=class extends _0x1ccdcb{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x8ba53d];}init(){const _0x2dbb84=this['editor'],_0xa9680c=_0x2dbb84['plugins']['get']('PasteFromOffice'),_0x5c9424=_0x2dbb84['editing']['view']['document'],_0x594ae2=new b(_0x5c9424);_0xa9680c['registerNormalizer'](_0x594ae2,_0x2ee922['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2ba8d7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x59b106;for(const _0xf1de60 in _0x2ba8d7){const _0x4d1ccc=_0xf1de60,_0x484a9a=_0x2ba8d7[_0x4d1ccc];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x484a9a||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x484a9a||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x484a9a||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x484a9a||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x484a9a||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x484a9a||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x484a9a){delete _0x2ba8d7[_0x4d1ccc],_0x59b106=_0x484a9a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x59b106&&_0x2ba8d7['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x59b106&&_0x2ba8d7['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x59b106&&_0x2ba8d7['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x59b106&&_0x2ba8d7['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x59b106&&_0x2ba8d7['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x59b106&&_0x2ba8d7['_showLicenseError']('usageLimit');},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x1ccdcb{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x8ba53d,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.5",
3
+ "version": "48.4.0-alpha.7",
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.5",
35
- "@ckeditor/ckeditor5-core": "48.4.0-alpha.5",
36
- "@ckeditor/ckeditor5-engine": "48.4.0-alpha.5",
37
- "@ckeditor/ckeditor5-paste-from-office": "48.4.0-alpha.5",
38
- "@ckeditor/ckeditor5-utils": "48.4.0-alpha.5"
34
+ "@ckeditor/ckeditor5-clipboard": "48.4.0-alpha.7",
35
+ "@ckeditor/ckeditor5-core": "48.4.0-alpha.7",
36
+ "@ckeditor/ckeditor5-engine": "48.4.0-alpha.7",
37
+ "@ckeditor/ckeditor5-paste-from-office": "48.4.0-alpha.7",
38
+ "@ckeditor/ckeditor5-utils": "48.4.0-alpha.7"
39
39
  },
40
40
  "files": [
41
41
  "dist",