@ckeditor/ckeditor5-paste-from-office-enhanced 48.3.0-alpha.0 → 48.3.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x223902}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x382b04,PasteFromOfficeMSWordNormalizer as _0x535b2e}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x3d1437,uid as _0x154e62}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x20e32e,ViewDomConverter as _0x549d18,ViewUpcastWriter as _0x203b04}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0xab4cdf){return f['test'](_0xab4cdf);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x4467be,_0x4f1624){const _0x144096=new Map();for(const [_0x1eb9b8,_0x575570]of _0x4f1624){if(!_0x1eb9b8['tagName']&&!_0x1eb9b8['className'])continue;const _0x26bcef=!_0x1eb9b8['tagName']||_0x4467be['name']===_0x1eb9b8['tagName'],_0x4363f3=!_0x1eb9b8['className']||_0x4467be['hasClass'](_0x1eb9b8['className']);_0x26bcef&&_0x4363f3&&_0x144096['set'](_0x1eb9b8,_0x575570);}return _0x144096;}function m(_0x4af2fe){const _0x5b16e6={};for(let _0x23e824=0x0;_0x23e824<_0x4af2fe['length'];_0x23e824++){const _0x39b021=_0x4af2fe[_0x23e824],_0x97d316=_0x4af2fe['getPropertyValue'](_0x39b021);'initial'!==_0x97d316&&(_0x5b16e6[_0x39b021]=_0x97d316);}return _0x5b16e6;}function w(_0x4bd3e1){const _0x3cc646=_0x4bd3e1['split'](',')['map'](_0x506bce=>_0x506bce['trim']()),_0x2cd0dc=[];for(const _0x1a5d6b of _0x3cc646){const _0x322391=l['exec'](_0x1a5d6b);_0x322391&&_0x2cd0dc['push'](_0x322391['groups']);}return _0x2cd0dc;}function y(_0x12e9a4){const _0x1f1a8d={};for(const _0xf54a3a of _0x12e9a4)Object['assign'](_0x1f1a8d,_0xf54a3a);return _0x1f1a8d;}var g=class extends _0x535b2e{['execute'](_0x5bd142){const {styles:_0x5b38ef,stylesString:_0x4ec3c5}=_0x5bd142['extraContent'],_0x4d675e=new _0x203b04(_0x5bd142['content']['document']),_0x153c09=_0x4d675e['createRangeIn'](_0x5bd142['content']),_0x5de40e=function(_0x5a20d0){const _0x3674a2=new Map();for(const _0x3c2b9f in _0x5a20d0){const _0x53eb8f=w(_0x3c2b9f),_0x4011a5=_0x5a20d0[_0x3c2b9f];for(const _0xd1a54e of _0x53eb8f)_0x3674a2['set'](_0xd1a54e,_0x4011a5);}return _0x3674a2;}(function(_0x2da1d4){const _0x4224dd={};for(const _0x250b23 of _0x2da1d4)for(const _0x4663a8 of _0x250b23['cssRules'])if(_0x4663a8 instanceof CSSStyleRule){const _0x227218=m(_0x4663a8['style']);_0x4224dd[_0x4663a8['selectorText']]=Object['assign']({},_0x4224dd[_0x4663a8['selectorText']]||{},_0x227218);}return _0x4224dd;}(_0x5b38ef)),_0x70665d=function(_0x1a782a){const _0x250911={},_0x146e58=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x4476e7=/\.(?<className>[\w-]+)/g;let _0xa64955;for(;null!==(_0xa64955=_0x146e58['exec'](_0x1a782a));){const {selector:_0x55b8e6,color:_0x337600,patternType:_0x324de6}=_0xa64955['groups'];if('auto'!==_0x337600['toLowerCase']()&&'none'!==_0x324de6['toLowerCase']()&&'auto'!==_0x324de6['toLowerCase']()){for(const _0xeede82 of _0x55b8e6['matchAll'](_0x4476e7))_0x250911[_0xeede82['groups']['className']]=_0x337600;}}return _0x250911;}(_0x4ec3c5);for(const _0x514b75 of _0x153c09){if('elementStart'!==_0x514b75['type'])continue;const _0xb001d2=_0x514b75['item'],_0x50f3ab=d(_0xb001d2,_0x5de40e),_0x3fa29a=_0x50f3ab['size']?y(Array['from'](_0x50f3ab['values']())):{};if(!('background-color'in _0x3fa29a)&&!('background'in _0x3fa29a)){for(const [_0x2b87fe,_0x3a4bd0]of Object['entries'](_0x70665d))if(_0xb001d2['hasClass'](_0x2b87fe)){_0x3fa29a['background-color']=_0x3a4bd0;break;}}for(const _0x6a3a3d in _0x3fa29a)_0xb001d2['hasStyle'](_0x6a3a3d)||_0x4d675e['setStyle'](_0x6a3a3d,_0x3fa29a[_0x6a3a3d],_0xb001d2);}}['isActive'](_0x2725dd){return super['isActive'](_0x2725dd)||u(_0x2725dd);}},p=class extends _0x223902{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x382b04];}['init'](){const _0x36aae4=this['editor'],_0x58e410=_0x36aae4['plugins']['get']('PasteFromOffice'),_0xbcd92b=_0x36aae4['editing']['view']['document'],_0x1fc269=new g(_0xbcd92b);_0x58e410['registerNormalizer'](_0x1fc269,_0x3d1437['high']+0xb);}['afterInit'](){!async function(_0x1f81bc){const _0x15c778='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x5c6178=0x78de0,_0x322476=window['Date']['now'](),_0x2508dc=_0x1f81bc['editor'],_0x18dd71=new window['Promise'](_0x19c108=>{_0x2508dc['once']('ready',_0x19c108);}),_0x13407a={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x3c25e8=_0x2508dc['config']['get']('licenseKey');async function _0x5c8680(){let _0x39ac2a,_0x1306a0=null,_0x22d2c0=null;try{return'GPL'==_0x3c25e8?'NotAllowed':(_0x39ac2a=_0x25d18b(),_0x39ac2a?(_0x39ac2a['usageEndpoint']&&(_0x22d2c0=_0x536c7f(_0x39ac2a['usageEndpoint'],_0x39ac2a['jti'])),await _0x3041fa()?_0x5adc89()?_0x3cc935()?'Expired':_0x597810()?('evaluation'==_0x39ac2a['licenseType']&&(_0x1306a0=_0x5c2134('EvaluationLimit')),await _0x27250b()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x3cc935(){const _0x10bf87=['evaluation','trial']['includes'](_0x39ac2a['licenseType'])?_0x322476/0x3e8:0xe10*_0x5c6178;return _0x39ac2a['exp']<_0x10bf87;}function _0x5adc89(){const _0x1201ff=_0x39ac2a['features'];return!!_0x1201ff&&(!!_0x1201ff['includes']('*')||(!!_0x1201ff['includes']('POE')||(!!_0x1201ff['includes']('PP')||!(!_0x1201ff['includes']('TRILIUM')||!_0x305e5b()))));}function _0x597810(){const _0xab6345=_0x39ac2a['licensedHosts'];if(!_0xab6345||0x0==_0xab6345['length'])return!0x0;const {hostname:_0x38afda}=new URL(window['location']['href']);if(_0xab6345['includes'](_0x38afda))return!0x0;const _0x2138a3=_0x38afda['split']('.');return _0xab6345['filter'](_0x243e9d=>_0x243e9d['includes']('*'))['map'](_0x14d50d=>_0x14d50d['split']('.'))['filter'](_0x3d78b7=>_0x3d78b7['length']<=_0x2138a3['length'])['map'](_0x26d733=>Array(_0x2138a3['length']-_0x26d733['length'])['fill']('*'===_0x26d733[0x0]?'*':'')['concat'](_0x26d733))['some'](_0x1e2588=>_0x2138a3['every']((_0x424ddf,_0x5940f4)=>_0x1e2588[_0x5940f4]===_0x424ddf||'*'===_0x1e2588[_0x5940f4]));}function _0x27250b(){return _0x1306a0&&_0x22d2c0?new window['Promise']((_0x1c63db,_0x17f955)=>{_0x1306a0['then'](_0x1c63db,_0x17f955),_0x22d2c0['then'](_0x4b9507=>{'Valid'!=_0x4b9507&&_0x1c63db(_0x4b9507);},_0x17f955);}):_0x1306a0||_0x22d2c0||'Valid';}}function _0x536c7f(_0x4ae9d3,_0x2f54ed){return new window['Promise'](_0x636a95=>{if(_0x2540a2())return _0x636a95('Valid');_0x12722c(),_0x2508dc['decorate']('_sendUsageRequest');let _0x1f8a55=!0x1;const _0x39330a=_0x154e62();function _0x2b1aec(_0xb78b7f){return!!_0xb78b7f&&('object'==typeof _0xb78b7f||'function'==typeof _0xb78b7f)&&'function'==typeof _0xb78b7f['then']&&'function'==typeof _0xb78b7f['catch'];}function _0xd0e741(_0x406ae5){_0x22499b(_0x406ae5)['then'](_0x3885b0=>_0x3885b0&&'ok'==_0x3885b0['status']?_0x2cf2ca(_0x3e029e(_0x39330a+_0x2f54ed))!=_0x3885b0['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x59013f=>(_0x4102da(),_0x59013f),()=>{const _0x118709=_0x436224();return null==_0x118709?(_0x4102da(),'Valid'):_0x322476-_0x118709>0x240c8400?'UsageLimit':'Valid';})['then'](_0x636a95)['catch'](()=>{_0x636a95('UsageLimit');});const _0x178423=0x36ee80;function _0x4102da(){const _0x31f83f='llct-'+_0x2cf2ca(_0x3e029e(_0x4ae9d3)),_0xb364b4=_0x379833(_0x2cf2ca(window['Math']['ceil'](_0x322476/_0x178423)));window['localStorage']['setItem'](_0x31f83f,_0xb364b4);}function _0x436224(){const _0x443b97='llct-'+_0x2cf2ca(_0x3e029e(_0x4ae9d3)),_0x592f03=window['localStorage']['getItem'](_0x443b97);return _0x592f03?window['parseInt'](_0x379833(_0x592f03),0x10)*_0x178423:null;}function _0x22499b(_0x2da53d){return new window['Promise']((_0x404ba6,_0xcdde64)=>{_0x2da53d['then'](_0x404ba6,_0xcdde64),window['setTimeout'](_0xcdde64,0x1d4c0);});}}_0x2508dc['on']('_sendUsageRequest',(_0x5f3917,_0x38edbe)=>{if(_0x38edbe[0x0]!=_0x4ae9d3)return _0x636a95('UsageLimit');_0x38edbe[0x1]={..._0x38edbe[0x1],'requestId':_0x39330a};},{'priority':'high'}),_0x2508dc['on']('_sendUsageRequest',_0x2db1fd=>{_0x2b1aec(_0x2db1fd['return'])&&(_0x1f8a55=!0x0,_0xd0e741(_0x2db1fd['return']));},{'priority':'low'}),_0x18dd71['then'](()=>{_0x1f8a55||_0x636a95('UsageLimit');});});function _0x2540a2(){return'auto'==_0x2508dc['editing']['view']['_overlayModeHint'];}function _0x12722c(){_0x2508dc['editing']['view']['_overlayModeHint']='auto';}}function _0x5c2134(_0x5cdcee){const _0x173df1=[new window['Promise'](_0x113019=>setTimeout(_0x113019,0x93ecc)),_0x18dd71['then'](()=>new window['Promise'](_0x2d4c0f=>{let _0x4f6258=0x0;_0x2508dc['model']['on']('applyOperation',(_0x4b56b2,_0x39ca74)=>{_0x39ca74[0x0]['isDocumentOperation']&&_0x4f6258++,0x5e8==_0x4f6258&&(_0x2d4c0f(),_0x4b56b2['off']());});}))];return window['Promise']['race'](_0x173df1)['then'](()=>_0x5cdcee);}async function _0x1e3521(){await _0x18dd71,_0x2508dc['model']['change']=_0x4140f6,_0x2508dc['model']['enqueueChange']=_0x4140f6,_0x2508dc['enableReadOnlyMode']('model');}function _0x305e5b(){return window['glob']&&window['glob']['triliumVersion'];}function _0x11964b(_0x4bb0c3){const _0x2a08f4=_0x46bde1();_0x2508dc[_0x2a08f4]='pasteFromOfficeEnhancedLicenseKey'+_0x4bb0c3,'Valid'!=_0x4bb0c3&&_0x1e3521();}function _0x46bde1(){const _0x387bc7=window['String'](window['performance']['now']())['replace']('.','');let _0x554404='s';for(let _0x27d034=0x0;_0x27d034<_0x387bc7['length'];_0x27d034+=0x2){let _0x153507=window['parseInt'](_0x387bc7['substring'](_0x27d034,_0x27d034+0x2));_0x153507>=0x3e&&(_0x153507-=0x3e),_0x554404+=_0x15c778[_0x153507];}return _0x554404;}function _0x25d18b(){const _0x1ccc6a=_0x3c25e8['split']('.');if(0x3!=_0x1ccc6a['length'])return null;return _0x57be07(_0x1ccc6a[0x1]);function _0x57be07(_0xe00dce){const _0x966765=_0x530ed5(_0xe00dce);return _0x966765&&_0x375352()?_0x966765:null;function _0x375352(){const _0x3f6587=_0x966765['jti'],_0x375289=window['parseInt'](_0x3f6587['substring'](_0x3f6587['length']-0x8),0x10),_0x54b506={..._0x966765,'jti':_0x3f6587['substring'](0x0,_0x3f6587['length']-0x8)};return delete _0x54b506['vc'],_0x3e029e(_0x54b506)==_0x375289;}}}async function _0x3041fa(){let _0x2fd370=!0x0;try{const [_0x4ff157,_0x212cc0,_0x449f2e]=_0x3c25e8['split']('.');return _0x56dc5c(_0x4ff157),await _0x49558a(_0x4ff157,_0x212cc0,_0x449f2e),_0x2fd370;}catch{return!0x1;}function _0x56dc5c(_0x52c4d3){const _0x259e1b=_0x530ed5(_0x52c4d3);_0x259e1b&&'ES256'==_0x259e1b['alg']||(_0x2fd370=!0x1);}async function _0x49558a(_0x2aa969,_0x58f812,_0xd70e95){const _0x57e27b=window['Uint8Array']['from'](_0x4c2cfa(_0xd70e95),_0x4750b1=>_0x4750b1['charCodeAt'](0x0)),_0x484eec=new window['TextEncoder']()['encode'](_0x2aa969+'.'+_0x58f812),_0x8d7d1b=window['crypto']['subtle'];if(!_0x8d7d1b)return;const _0x17ae55=await _0x8d7d1b['importKey']('jwk',_0x13407a,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x8d7d1b['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x17ae55,_0x57e27b,_0x484eec)||(_0x2fd370=!0x1);}}function _0x530ed5(_0x5ba1d1){return _0x5ba1d1['startsWith']('ey')?JSON['parse'](_0x4c2cfa(_0x5ba1d1)):null;}function _0x4c2cfa(_0x1aeb20){return window['atob'](_0x1aeb20['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x3e029e(_0x4836cf){let _0x21d01a=0x1505;function _0x5b7eae(_0x4bdf25){for(let _0x14f82f=0x0;_0x14f82f<_0x4bdf25['length'];_0x14f82f++){const _0x2e899b=_0x4bdf25['charCodeAt'](_0x14f82f);_0x21d01a=(_0x21d01a<<0x5)+_0x21d01a+_0x2e899b,_0x21d01a&=_0x21d01a;}}function _0x202c6f(_0x29c2ac){Array['isArray'](_0x29c2ac)?_0x29c2ac['forEach'](_0x202c6f):_0x29c2ac&&'object'==typeof _0x29c2ac?Object['entries'](_0x29c2ac)['sort']()['forEach'](([_0x411929,_0xb9be6c])=>{_0x5b7eae(_0x411929),_0x202c6f(_0xb9be6c);}):_0x5b7eae(window['String'](_0x29c2ac));}return _0x202c6f(_0x4836cf),_0x21d01a>>>0x0;}function _0x2cf2ca(_0x316e7c){return _0x316e7c['toString'](0x10)['padStart'](0x8,'0');}function _0x379833(_0x7b216a){return _0x7b216a['split']('')['reverse']()['join']('');}function _0x4140f6(){}_0x11964b(await _0x5c8680());}(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'],[_0x23a156=>Number(_0x23a156)>=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(_0x35866c){return h['includes'](_0x35866c);}function v(_0x7d3fe3){return Array['from'](_0x7d3fe3['getStyleNames']())['filter'](E);}function F(_0x3db097,_0x1d9b6e,_0x1d563e){const {spanStyles:_0x2819fc,stylesToBeHtmlElements:_0x4e919e}=K(_0x3db097,_0x1d563e);!function(_0x5d2f6b,_0x42d665,_0x31650f){for(const _0x21c299 in _0x31650f)_0x31650f[_0x21c299]['forEach'](([,_0x2a62a3])=>{const _0x9bb78=_0x42d665['createElement'](_0x2a62a3,[],_0x5d2f6b['getChildren']());_0x42d665['insertChild'](0x0,_0x9bb78,_0x5d2f6b);}),_0x42d665['removeStyle'](_0x21c299,_0x5d2f6b);}(_0x3db097,_0x1d9b6e,_0x4e919e),function(_0x42f639,_0xbdb266,_0x1481e3){if(!Object['keys'](_0x1481e3)['length'])return;const _0x2f3921=_0xbdb266['createElement']('span',[],_0x42f639['getChildren']());_0xbdb266['setStyle'](_0x1481e3,_0x2f3921),_0xbdb266['insertChild'](0x0,_0x2f3921,_0x42f639),_0xbdb266['removeStyle'](Object['keys'](_0x1481e3),_0x42f639);}(_0x3db097,_0x1d9b6e,_0x2819fc);}function P(_0x3f8fb2,_0x2f0360,_0x227bb5){const {spanStyles:_0x19caca}=K(_0x3f8fb2,_0x227bb5),_0x1f7c01=Object['keys'](_0x19caca);if(!_0x1f7c01['length'])return;let _0x121a38=!0x1;for(const _0x1f29a2 of _0x3f8fb2['getChildren']())if(_0x1f29a2['is']('element','span')){_0x121a38=!0x0;for(const [_0x39fe5c,_0x591e96]of Object['entries'](_0x19caca))_0x1f29a2['hasStyle'](_0x39fe5c)||_0x2f0360['setStyle']({[_0x39fe5c]:_0x591e96},_0x1f29a2);}_0x121a38&&_0x2f0360['removeStyle'](_0x1f7c01,_0x3f8fb2);}function K(_0x5c8c30,_0x67f167){const _0x2a57d2={},_0x474fa2={};return _0x67f167['forEach'](_0xfa6cba=>{const _0x687230=_0x5c8c30['getStyle'](_0xfa6cba);if(_0x687230){if(function(_0x20ad71){return O['includes'](_0x20ad71);}(_0xfa6cba))_0x2a57d2[_0xfa6cba]=_0x687230;else{if(function(_0x1ccae8){return _0x1ccae8 in L;}(_0xfa6cba)){const _0x33a83b=_0x687230['split']('\x20');L[_0xfa6cba]['forEach'](([_0x4fbbc,_0x532281])=>{for(const _0xd0e885 of _0x33a83b)('function'==typeof _0x4fbbc&&_0x4fbbc(_0xd0e885)||_0x4fbbc===_0xd0e885)&&(_0x474fa2[_0xfa6cba]=[..._0x474fa2[_0xfa6cba]||[],[_0x4fbbc,_0x532281]]);});}}}}),{'spanStyles':_0x2a57d2,'stylesToBeHtmlElements':_0x474fa2};}var b=class extends _0x535b2e{['execute'](_0x502bfc){const _0x47b68a=new _0x203b04(_0x502bfc['content']['document']),_0x5ac3a7=_0x47b68a['createRangeIn'](_0x502bfc['content']),_0x3f8a6f=[...new _0x549d18(new _0x20e32e(_0x47b68a['document']['stylesProcessor']))['blockElements'],'font'],_0x5288d2=_0x5ac3a7['getItems']();for(const _0x2fbf7b of _0x5288d2)if(_0x2fbf7b['is']('element')&&_0x3f8a6f['includes'](_0x2fbf7b['name'])){if(_0x2fbf7b['hasStyle']('mso-list')&&'none'!==_0x2fbf7b['getStyle']('mso-list')){P(_0x2fbf7b,_0x47b68a,v(_0x2fbf7b));continue;}F(_0x2fbf7b,_0x47b68a,v(_0x2fbf7b));}}['isActive'](_0x5ccd78){return super['isActive'](_0x5ccd78)||u(_0x5ccd78);}},x=class extends _0x223902{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x382b04];}['init'](){const _0x2485e0=this['editor'],_0x1d042c=_0x2485e0['plugins']['get']('PasteFromOffice'),_0x17fb12=_0x2485e0['editing']['view']['document'],_0x47c878=new b(_0x17fb12);_0x1d042c['registerNormalizer'](_0x47c878,_0x3d1437['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x388bf1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x524b59;for(const _0x2033f3 in _0x388bf1){const _0x5e9244=_0x2033f3,_0x1cdd9e=_0x388bf1[_0x5e9244];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x1cdd9e||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x1cdd9e||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x1cdd9e||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x1cdd9e||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x1cdd9e||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x1cdd9e||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x1cdd9e){delete _0x388bf1[_0x5e9244],_0x524b59=_0x1cdd9e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x524b59&&_0x388bf1['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x524b59&&_0x388bf1['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x524b59&&_0x388bf1['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x524b59&&_0x388bf1['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x524b59&&_0x388bf1['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x524b59&&_0x388bf1['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x223902{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x382b04,p,x];}};export{k as PasteFromOfficeEnhanced};
23
+ import{Plugin as _0x34d34d}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x3037bc,PasteFromOfficeMSWordNormalizer as _0x3e1f02}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x597b6e,uid as _0x2eb799}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x27de1b,ViewDomConverter as _0x2072eb,ViewUpcastWriter as _0x3944a0}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x385d0e){return f['test'](_0x385d0e);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x2fa7e6,_0x4bcdcc){const _0x50bc43=new Map();for(const [_0x20191c,_0x9b04bd]of _0x4bcdcc){if(!_0x20191c['tagName']&&!_0x20191c['className'])continue;const _0xc886dd=!_0x20191c['tagName']||_0x2fa7e6['name']===_0x20191c['tagName'],_0x4bedb1=!_0x20191c['className']||_0x2fa7e6['hasClass'](_0x20191c['className']);_0xc886dd&&_0x4bedb1&&_0x50bc43['set'](_0x20191c,_0x9b04bd);}return _0x50bc43;}function m(_0x312473){const _0x303124={};for(let _0x4cc104=0x0;_0x4cc104<_0x312473['length'];_0x4cc104++){const _0x5dbf11=_0x312473[_0x4cc104],_0x24c057=_0x312473['getPropertyValue'](_0x5dbf11);'initial'!==_0x24c057&&(_0x303124[_0x5dbf11]=_0x24c057);}return _0x303124;}function w(_0x359763){const _0x709d1c=_0x359763['split'](',')['map'](_0x298057=>_0x298057['trim']()),_0x4c038d=[];for(const _0x41792a of _0x709d1c){const _0x5d3950=l['exec'](_0x41792a);_0x5d3950&&_0x4c038d['push'](_0x5d3950['groups']);}return _0x4c038d;}function y(_0x252d00){const _0x2d44e3={};for(const _0x5cafd4 of _0x252d00)Object['assign'](_0x2d44e3,_0x5cafd4);return _0x2d44e3;}var g=class extends _0x3e1f02{['execute'](_0x3ae6d9){const {styles:_0x20d5ac,stylesString:_0x43c318}=_0x3ae6d9['extraContent'],_0x1e0bcd=new _0x3944a0(_0x3ae6d9['content']['document']),_0x449d8e=_0x1e0bcd['createRangeIn'](_0x3ae6d9['content']),_0x47ea2b=function(_0x4cd9e2){const _0x23b9c3=new Map();for(const _0xf9cd7e in _0x4cd9e2){const _0x4e1207=w(_0xf9cd7e),_0x2135f1=_0x4cd9e2[_0xf9cd7e];for(const _0x3fe222 of _0x4e1207)_0x23b9c3['set'](_0x3fe222,_0x2135f1);}return _0x23b9c3;}(function(_0x2aee91){const _0x4834ab={};for(const _0x533538 of _0x2aee91)for(const _0x5dc6e8 of _0x533538['cssRules'])if(_0x5dc6e8 instanceof CSSStyleRule){const _0x2e4661=m(_0x5dc6e8['style']);_0x4834ab[_0x5dc6e8['selectorText']]=Object['assign']({},_0x4834ab[_0x5dc6e8['selectorText']]||{},_0x2e4661);}return _0x4834ab;}(_0x20d5ac)),_0x58f72a=function(_0x402dc9){const _0x5199b6={},_0x134934=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x113596=/\.(?<className>[\w-]+)/g;let _0x2c1e7e;for(;null!==(_0x2c1e7e=_0x134934['exec'](_0x402dc9));){const {selector:_0x47f51a,color:_0x382392,patternType:_0x2db886}=_0x2c1e7e['groups'];if('auto'!==_0x382392['toLowerCase']()&&'none'!==_0x2db886['toLowerCase']()&&'auto'!==_0x2db886['toLowerCase']()){for(const _0x3bde1c of _0x47f51a['matchAll'](_0x113596))_0x5199b6[_0x3bde1c['groups']['className']]=_0x382392;}}return _0x5199b6;}(_0x43c318);for(const _0x9d72f1 of _0x449d8e){if('elementStart'!==_0x9d72f1['type'])continue;const _0x288dd1=_0x9d72f1['item'],_0x48dc0c=d(_0x288dd1,_0x47ea2b),_0x402362=_0x48dc0c['size']?y(Array['from'](_0x48dc0c['values']())):{};if(!('background-color'in _0x402362)&&!('background'in _0x402362)){for(const [_0x1df3af,_0x55958f]of Object['entries'](_0x58f72a))if(_0x288dd1['hasClass'](_0x1df3af)){_0x402362['background-color']=_0x55958f;break;}}for(const _0x156fdf in _0x402362)_0x288dd1['hasStyle'](_0x156fdf)||_0x1e0bcd['setStyle'](_0x156fdf,_0x402362[_0x156fdf],_0x288dd1);}}['isActive'](_0x1f9e1c){return super['isActive'](_0x1f9e1c)||u(_0x1f9e1c);}},p=class extends _0x34d34d{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3037bc];}['init'](){const _0x17af90=this['editor'],_0x319dc0=_0x17af90['plugins']['get']('PasteFromOffice'),_0x27cb72=_0x17af90['editing']['view']['document'],_0x58fc4e=new g(_0x27cb72);_0x319dc0['registerNormalizer'](_0x58fc4e,_0x597b6e['high']+0xb);}['afterInit'](){!async function(_0x735840){const _0x4e037f='sG65Crk1cd2igLN7zIEAYju9J3hbPBtnFMxQf4HwZal0qTSVKyDmoRvUXepWO8',_0x52e562=0x78df8,_0x22c977=window['Date']['now'](),_0x5ed30a=_0x735840['editor'],_0x3142b1=new window['Promise'](_0x556433=>{_0x5ed30a['once']('ready',_0x556433);}),_0x50eefa={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x20dc83=_0x5ed30a['config']['get']('licenseKey');async function _0x112cf3(){let _0x59f20c,_0x1520d3=null,_0x2247c7=null;try{return'GPL'==_0x20dc83?'NotAllowed':(_0x59f20c=_0x170779(),_0x59f20c?(_0x59f20c['usageEndpoint']&&(_0x2247c7=_0x180455(_0x59f20c['usageEndpoint'],_0x59f20c['jti'])),await _0x2c3872()?_0x487d79()?_0x13b5ef()?'Expired':_0x3e2eb6()?('evaluation'==_0x59f20c['licenseType']&&(_0x1520d3=_0x33d357('EvaluationLimit')),await _0xcf0ba4()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x13b5ef(){const _0x2d59aa=['evaluation','trial']['includes'](_0x59f20c['licenseType'])?_0x22c977/0x3e8:0xe10*_0x52e562;return _0x59f20c['exp']<_0x2d59aa;}function _0x487d79(){const _0x21e1f4=_0x59f20c['features'];return!!_0x21e1f4&&(!!_0x21e1f4['includes']('*')||(!!_0x21e1f4['includes']('POE')||(!!_0x21e1f4['includes']('PP')||!(!_0x21e1f4['includes']('TRILIUM')||!_0x47dbe3()))));}function _0x3e2eb6(){const _0x1cd294=_0x59f20c['licensedHosts'];if(!_0x1cd294||0x0==_0x1cd294['length'])return!0x0;const {hostname:_0x1c10d1}=new URL(window['location']['href']);if(_0x1cd294['includes'](_0x1c10d1))return!0x0;const _0x438596=_0x1c10d1['split']('.');return _0x1cd294['filter'](_0xdc163c=>_0xdc163c['includes']('*'))['map'](_0x818953=>_0x818953['split']('.'))['filter'](_0x1cbbc9=>_0x1cbbc9['length']<=_0x438596['length'])['map'](_0x4c2d29=>Array(_0x438596['length']-_0x4c2d29['length'])['fill']('*'===_0x4c2d29[0x0]?'*':'')['concat'](_0x4c2d29))['some'](_0x4c8f57=>_0x438596['every']((_0x49012f,_0x5e5798)=>_0x4c8f57[_0x5e5798]===_0x49012f||'*'===_0x4c8f57[_0x5e5798]));}function _0xcf0ba4(){return _0x1520d3&&_0x2247c7?new window['Promise']((_0x4131ad,_0x498d3b)=>{_0x1520d3['then'](_0x4131ad,_0x498d3b),_0x2247c7['then'](_0x5ce054=>{'Valid'!=_0x5ce054&&_0x4131ad(_0x5ce054);},_0x498d3b);}):_0x1520d3||_0x2247c7||'Valid';}}function _0x180455(_0x4a3862,_0x42bfb9){return new window['Promise'](_0x1de86b=>{if(_0x3310f9())return _0x1de86b('Valid');_0x5a1546(),_0x5ed30a['decorate']('_sendUsageRequest');let _0x4efcca=!0x1;const _0xcb428f=_0x2eb799();function _0x4433a6(_0x2c9c8f){return!!_0x2c9c8f&&('object'==typeof _0x2c9c8f||'function'==typeof _0x2c9c8f)&&'function'==typeof _0x2c9c8f['then']&&'function'==typeof _0x2c9c8f['catch'];}function _0x3e8099(_0x224fa2){_0x19b432(_0x224fa2)['then'](_0x15ba49=>_0x15ba49&&'ok'==_0x15ba49['status']?_0xd1510a(_0x321598(_0xcb428f+_0x42bfb9))!=_0x15ba49['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1b0893=>(_0x350748(),_0x1b0893),()=>{const _0x52898f=_0x206f08();return null==_0x52898f?(_0x350748(),'Valid'):_0x22c977-_0x52898f>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1de86b)['catch'](()=>{_0x1de86b('UsageLimit');});const _0x1d88bf=0x36ee80;function _0x350748(){const _0x2730b1='llct-'+_0xd1510a(_0x321598(_0x4a3862)),_0x2c2db8=_0x584da2(_0xd1510a(window['Math']['ceil'](_0x22c977/_0x1d88bf)));window['localStorage']['setItem'](_0x2730b1,_0x2c2db8);}function _0x206f08(){const _0x5a443b='llct-'+_0xd1510a(_0x321598(_0x4a3862)),_0x46c3c5=window['localStorage']['getItem'](_0x5a443b);return _0x46c3c5?window['parseInt'](_0x584da2(_0x46c3c5),0x10)*_0x1d88bf:null;}function _0x19b432(_0x168a5c){return new window['Promise']((_0x5c28cb,_0xc3de9e)=>{_0x168a5c['then'](_0x5c28cb,_0xc3de9e),window['setTimeout'](_0xc3de9e,0x1d4c0);});}}_0x5ed30a['on']('_sendUsageRequest',(_0x3838b3,_0x7bf5d8)=>{if(_0x7bf5d8[0x0]!=_0x4a3862)return _0x1de86b('UsageLimit');_0x7bf5d8[0x1]={..._0x7bf5d8[0x1],'requestId':_0xcb428f};},{'priority':'high'}),_0x5ed30a['on']('_sendUsageRequest',_0x276451=>{_0x4433a6(_0x276451['return'])&&(_0x4efcca=!0x0,_0x3e8099(_0x276451['return']));},{'priority':'low'}),_0x3142b1['then'](()=>{_0x4efcca||_0x1de86b('UsageLimit');});});function _0x3310f9(){return'auto'==_0x5ed30a['editing']['view']['_overlayModeHint'];}function _0x5a1546(){_0x5ed30a['editing']['view']['_overlayModeHint']='auto';}}function _0x33d357(_0x46866f){const _0x512b97=[new window['Promise'](_0x49d678=>setTimeout(_0x49d678,0x93ecc)),_0x3142b1['then'](()=>new window['Promise'](_0x333e8d=>{let _0x1a7011=0x0;_0x5ed30a['model']['on']('applyOperation',(_0x43dfca,_0x10d97a)=>{_0x10d97a[0x0]['isDocumentOperation']&&_0x1a7011++,0x5e8==_0x1a7011&&(_0x333e8d(),_0x43dfca['off']());});}))];return window['Promise']['race'](_0x512b97)['then'](()=>_0x46866f);}async function _0x4b0b00(){await _0x3142b1,_0x5ed30a['model']['change']=_0x8a6241,_0x5ed30a['model']['enqueueChange']=_0x8a6241,_0x5ed30a['enableReadOnlyMode']('model');}function _0x47dbe3(){return window['glob']&&window['glob']['triliumVersion'];}function _0x5a0e20(_0x43bb92){const _0x15d0df=_0x56d630();_0x5ed30a[_0x15d0df]='pasteFromOfficeEnhancedLicenseKey'+_0x43bb92,'Valid'!=_0x43bb92&&_0x4b0b00();}function _0x56d630(){const _0x10c49a=window['String'](window['performance']['now']())['replace']('.','');let _0x5bbdc0='s';for(let _0x266b98=0x0;_0x266b98<_0x10c49a['length'];_0x266b98+=0x2){let _0x18fb4e=window['parseInt'](_0x10c49a['substring'](_0x266b98,_0x266b98+0x2));_0x18fb4e>=0x3e&&(_0x18fb4e-=0x3e),_0x5bbdc0+=_0x4e037f[_0x18fb4e];}return _0x5bbdc0;}function _0x170779(){const _0x2fdf2d=_0x20dc83['split']('.');if(0x3!=_0x2fdf2d['length'])return null;return _0x47f9cb(_0x2fdf2d[0x1]);function _0x47f9cb(_0x8c9b80){const _0x2ae5f5=_0x40656d(_0x8c9b80);return _0x2ae5f5&&_0x214593()?_0x2ae5f5:null;function _0x214593(){const _0x595d09=_0x2ae5f5['jti'],_0x22e67a=window['parseInt'](_0x595d09['substring'](_0x595d09['length']-0x8),0x10),_0xb1ddf={..._0x2ae5f5,'jti':_0x595d09['substring'](0x0,_0x595d09['length']-0x8)};return delete _0xb1ddf['vc'],_0x321598(_0xb1ddf)==_0x22e67a;}}}async function _0x2c3872(){let _0x49d7d1=!0x0;try{const [_0x1e7030,_0x1c6361,_0x38f23e]=_0x20dc83['split']('.');return _0x3eb066(_0x1e7030),await _0x37394d(_0x1e7030,_0x1c6361,_0x38f23e),_0x49d7d1;}catch{return!0x1;}function _0x3eb066(_0x751d37){const _0x58fef7=_0x40656d(_0x751d37);_0x58fef7&&'ES256'==_0x58fef7['alg']||(_0x49d7d1=!0x1);}async function _0x37394d(_0x1a9a77,_0x13b77f,_0xf7270f){const _0x33cb2a=window['Uint8Array']['from'](_0x52536a(_0xf7270f),_0x5697b3=>_0x5697b3['charCodeAt'](0x0)),_0x2121cf=new window['TextEncoder']()['encode'](_0x1a9a77+'.'+_0x13b77f),_0x2d4770=window['crypto']['subtle'];if(!_0x2d4770)return;const _0x140c76=await _0x2d4770['importKey']('jwk',_0x50eefa,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2d4770['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x140c76,_0x33cb2a,_0x2121cf)||(_0x49d7d1=!0x1);}}function _0x40656d(_0x17f115){return _0x17f115['startsWith']('ey')?JSON['parse'](_0x52536a(_0x17f115)):null;}function _0x52536a(_0x2845f7){return window['atob'](_0x2845f7['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x321598(_0x52e638){let _0x5e04e1=0x1505;function _0xe6274c(_0x5e6c20){for(let _0xfa777e=0x0;_0xfa777e<_0x5e6c20['length'];_0xfa777e++){const _0x32dd51=_0x5e6c20['charCodeAt'](_0xfa777e);_0x5e04e1=(_0x5e04e1<<0x5)+_0x5e04e1+_0x32dd51,_0x5e04e1&=_0x5e04e1;}}function _0x469c84(_0x47e2db){Array['isArray'](_0x47e2db)?_0x47e2db['forEach'](_0x469c84):_0x47e2db&&'object'==typeof _0x47e2db?Object['entries'](_0x47e2db)['sort']()['forEach'](([_0x224d72,_0x21d027])=>{_0xe6274c(_0x224d72),_0x469c84(_0x21d027);}):_0xe6274c(window['String'](_0x47e2db));}return _0x469c84(_0x52e638),_0x5e04e1>>>0x0;}function _0xd1510a(_0x1f6d7a){return _0x1f6d7a['toString'](0x10)['padStart'](0x8,'0');}function _0x584da2(_0x5a93b5){return _0x5a93b5['split']('')['reverse']()['join']('');}function _0x8a6241(){}_0x5a0e20(await _0x112cf3());}(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'],[_0x295773=>Number(_0x295773)>=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(_0x3c0810){return h['includes'](_0x3c0810);}function v(_0x219ffa){return Array['from'](_0x219ffa['getStyleNames']())['filter'](E);}function F(_0x4635b9,_0x156bfc,_0x337562){const {spanStyles:_0x347fc0,stylesToBeHtmlElements:_0x277bc4}=K(_0x4635b9,_0x337562);!function(_0x4d1517,_0x38a19b,_0x428b14){for(const _0x57fdc1 in _0x428b14)_0x428b14[_0x57fdc1]['forEach'](([,_0x4ec55e])=>{const _0x6cca25=_0x38a19b['createElement'](_0x4ec55e,[],_0x4d1517['getChildren']());_0x38a19b['insertChild'](0x0,_0x6cca25,_0x4d1517);}),_0x38a19b['removeStyle'](_0x57fdc1,_0x4d1517);}(_0x4635b9,_0x156bfc,_0x277bc4),function(_0x225d2b,_0x34f4c8,_0x1b1206){if(!Object['keys'](_0x1b1206)['length'])return;const _0x3ee3b3=_0x34f4c8['createElement']('span',[],_0x225d2b['getChildren']());_0x34f4c8['setStyle'](_0x1b1206,_0x3ee3b3),_0x34f4c8['insertChild'](0x0,_0x3ee3b3,_0x225d2b),_0x34f4c8['removeStyle'](Object['keys'](_0x1b1206),_0x225d2b);}(_0x4635b9,_0x156bfc,_0x347fc0);}function P(_0x565843,_0x130345,_0x2e051c){const {spanStyles:_0x531afb}=K(_0x565843,_0x2e051c),_0x4b43b5=Object['keys'](_0x531afb);if(!_0x4b43b5['length'])return;let _0x527f9a=!0x1;for(const _0x48695d of _0x565843['getChildren']())if(_0x48695d['is']('element','span')){_0x527f9a=!0x0;for(const [_0x17db36,_0x27a3ef]of Object['entries'](_0x531afb))_0x48695d['hasStyle'](_0x17db36)||_0x130345['setStyle']({[_0x17db36]:_0x27a3ef},_0x48695d);}_0x527f9a&&_0x130345['removeStyle'](_0x4b43b5,_0x565843);}function K(_0x32c3ec,_0x3bec52){const _0x54e143={},_0x3d43e3={};return _0x3bec52['forEach'](_0x1ce04b=>{const _0x2b1167=_0x32c3ec['getStyle'](_0x1ce04b);if(_0x2b1167){if(function(_0xce45c0){return O['includes'](_0xce45c0);}(_0x1ce04b))_0x54e143[_0x1ce04b]=_0x2b1167;else{if(function(_0x2fc344){return _0x2fc344 in L;}(_0x1ce04b)){const _0x1af571=_0x2b1167['split']('\x20');L[_0x1ce04b]['forEach'](([_0x2e0d64,_0x3f296a])=>{for(const _0x12d5a1 of _0x1af571)('function'==typeof _0x2e0d64&&_0x2e0d64(_0x12d5a1)||_0x2e0d64===_0x12d5a1)&&(_0x3d43e3[_0x1ce04b]=[..._0x3d43e3[_0x1ce04b]||[],[_0x2e0d64,_0x3f296a]]);});}}}}),{'spanStyles':_0x54e143,'stylesToBeHtmlElements':_0x3d43e3};}var b=class extends _0x3e1f02{['execute'](_0x138ddd){const _0x329558=new _0x3944a0(_0x138ddd['content']['document']),_0x322a9b=_0x329558['createRangeIn'](_0x138ddd['content']),_0x11ab81=[...new _0x2072eb(new _0x27de1b(_0x329558['document']['stylesProcessor']))['blockElements'],'font'],_0x4bf5b8=_0x322a9b['getItems']();for(const _0xeb3cca of _0x4bf5b8)if(_0xeb3cca['is']('element')&&_0x11ab81['includes'](_0xeb3cca['name'])){if(_0xeb3cca['hasStyle']('mso-list')&&'none'!==_0xeb3cca['getStyle']('mso-list')){P(_0xeb3cca,_0x329558,v(_0xeb3cca));continue;}F(_0xeb3cca,_0x329558,v(_0xeb3cca));}}['isActive'](_0x28f2c9){return super['isActive'](_0x28f2c9)||u(_0x28f2c9);}},x=class extends _0x34d34d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3037bc];}['init'](){const _0x239552=this['editor'],_0x95ae82=_0x239552['plugins']['get']('PasteFromOffice'),_0x32f52b=_0x239552['editing']['view']['document'],_0xffaa2b=new b(_0x32f52b);_0x95ae82['registerNormalizer'](_0xffaa2b,_0x597b6e['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x225be4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x53b120;for(const _0x2d745f in _0x225be4){const _0x34dd69=_0x2d745f,_0x104bb1=_0x225be4[_0x34dd69];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x104bb1||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x104bb1||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x104bb1||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x104bb1||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x104bb1||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x104bb1||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x104bb1){delete _0x225be4[_0x34dd69],_0x53b120=_0x104bb1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x53b120&&_0x225be4['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x53b120&&_0x225be4['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x53b120&&_0x225be4['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x53b120&&_0x225be4['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x53b120&&_0x225be4['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x53b120&&_0x225be4['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x34d34d{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3037bc,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.3.0-alpha.0",
3
+ "version": "48.3.0-alpha.1",
4
4
  "description": "Enhanced paste from Office feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -31,11 +31,11 @@
31
31
  "./package.json": "./package.json"
32
32
  },
33
33
  "dependencies": {
34
- "@ckeditor/ckeditor5-clipboard": "48.3.0-alpha.0",
35
- "@ckeditor/ckeditor5-core": "48.3.0-alpha.0",
36
- "@ckeditor/ckeditor5-engine": "48.3.0-alpha.0",
37
- "@ckeditor/ckeditor5-paste-from-office": "48.3.0-alpha.0",
38
- "@ckeditor/ckeditor5-utils": "48.3.0-alpha.0"
34
+ "@ckeditor/ckeditor5-clipboard": "48.3.0-alpha.1",
35
+ "@ckeditor/ckeditor5-core": "48.3.0-alpha.1",
36
+ "@ckeditor/ckeditor5-engine": "48.3.0-alpha.1",
37
+ "@ckeditor/ckeditor5-paste-from-office": "48.3.0-alpha.1",
38
+ "@ckeditor/ckeditor5-utils": "48.3.0-alpha.1"
39
39
  },
40
40
  "files": [
41
41
  "dist",