@ckeditor/ckeditor5-paste-from-office-enhanced 49.0.0-alpha.0 → 49.0.0-alpha.2

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 _0x12bd6a}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x921b8e,PasteFromOfficeMSWordNormalizer as _0x422cf5}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x15e6b5,uid as _0x42b827}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x54ce81,ViewDomConverter as _0x329782,ViewUpcastWriter as _0x197779}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x11179f){return f['test'](_0x11179f);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x217692,_0x12af3c){const _0xd553e7=new Map();for(const [_0xc8b7ca,_0x38838b]of _0x12af3c){if(!_0xc8b7ca['tagName']&&!_0xc8b7ca['className'])continue;const _0x27f4c8=!_0xc8b7ca['tagName']||_0x217692['name']===_0xc8b7ca['tagName'],_0x56e03d=!_0xc8b7ca['className']||_0x217692['hasClass'](_0xc8b7ca['className']);_0x27f4c8&&_0x56e03d&&_0xd553e7['set'](_0xc8b7ca,_0x38838b);}return _0xd553e7;}function m(_0x36a1b8){const _0x215fa4={};for(let _0x17ab04=0x0;_0x17ab04<_0x36a1b8['length'];_0x17ab04++){const _0x4d97d0=_0x36a1b8[_0x17ab04],_0x50f3aa=_0x36a1b8['getPropertyValue'](_0x4d97d0);'initial'!==_0x50f3aa&&(_0x215fa4[_0x4d97d0]=_0x50f3aa);}return _0x215fa4;}function w(_0x389c16){const _0x1b8183=_0x389c16['split'](',')['map'](_0x2ca906=>_0x2ca906['trim']()),_0x56826d=[];for(const _0x4773ad of _0x1b8183){const _0x2a226b=l['exec'](_0x4773ad);_0x2a226b&&_0x56826d['push'](_0x2a226b['groups']);}return _0x56826d;}function y(_0x3385cc){const _0x267fd8={};for(const _0x2edcdf of _0x3385cc)Object['assign'](_0x267fd8,_0x2edcdf);return _0x267fd8;}var g=class extends _0x422cf5{execute(_0x2aeab2){const {styles:_0x5ee934,stylesString:_0x3f3f53}=_0x2aeab2['extraContent'],_0x52b34a=new _0x197779(_0x2aeab2['content']['document']),_0x644838=_0x52b34a['createRangeIn'](_0x2aeab2['content']),_0x29dda0=function(_0x206d70){const _0x7d6670={};for(const _0x421d66 of _0x206d70)for(const _0x1fc625 of _0x421d66['cssRules'])if(_0x1fc625 instanceof CSSStyleRule){const _0x39894d=m(_0x1fc625['style']);_0x7d6670[_0x1fc625['selectorText']]=Object['assign']({},_0x7d6670[_0x1fc625['selectorText']]||{},_0x39894d);}return _0x7d6670;}(_0x5ee934),_0x13d5ea=function(_0x52a3ae){const _0x5a567c=new Map();for(const _0x102f7b in _0x52a3ae){const _0x2ff445=w(_0x102f7b),_0x3ac9ae=_0x52a3ae[_0x102f7b];for(const _0x207a4a of _0x2ff445)_0x5a567c['set'](_0x207a4a,_0x3ac9ae);}return _0x5a567c;}(_0x29dda0),_0x5e2e8f=function(_0x1c3c00){const _0x5674f5={},_0x5bf188=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x1a1f6e=/\.(?<className>[\w-]+)/g;let _0x5a693e;for(;null!==(_0x5a693e=_0x5bf188['exec'](_0x1c3c00));){const {selector:_0x268e81,color:_0x468511,patternType:_0x4b1317}=_0x5a693e['groups'];if('auto'!==_0x468511['toLowerCase']()&&'none'!==_0x4b1317['toLowerCase']()&&'auto'!==_0x4b1317['toLowerCase']()){for(const _0x51eb99 of _0x268e81['matchAll'](_0x1a1f6e))_0x5674f5[_0x51eb99['groups']['className']]=_0x468511;}}return _0x5674f5;}(_0x3f3f53);for(const _0x54aa84 of _0x644838){if('elementStart'!==_0x54aa84['type'])continue;const _0x4669e9=_0x54aa84['item'],_0x123741=d(_0x4669e9,_0x13d5ea),_0x56b315=_0x123741['size']?y(Array['from'](_0x123741['values']())):{};if(!('background-color'in _0x56b315)&&!('background'in _0x56b315)){for(const [_0x35a4b7,_0x4a2b23]of Object['entries'](_0x5e2e8f))if(_0x4669e9['hasClass'](_0x35a4b7)){_0x56b315['background-color']=_0x4a2b23;break;}}for(const _0x4a866a in _0x56b315)_0x4669e9['hasStyle'](_0x4a866a)||_0x52b34a['setStyle'](_0x4a866a,_0x56b315[_0x4a866a],_0x4669e9);}}isActive(_0x2765d1){return super['isActive'](_0x2765d1)||u(_0x2765d1);}},p=class extends _0x12bd6a{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x921b8e];}init(){const _0x40e656=this['editor'],_0x2a8398=_0x40e656['plugins']['get']('PasteFromOffice'),_0x56cf5d=_0x40e656['editing']['view']['document'],_0x5aa350=new g(_0x56cf5d);_0x2a8398['registerNormalizer'](_0x5aa350,_0x15e6b5['high']+0xb);}afterInit(){!async function(_0x291f88){const _0xb262b4='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x3e9bbf=0x79710,_0x7d4a29={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x1f4954(_0x344e27){const _0x2276c6=new window['Promise'](_0x5d825c=>{_0x344e27['once']('ready',_0x5d825c);}),_0x205608=window['Date']['now'](),_0x105a4d=_0x344e27['config']['get']('licenseKey');async function _0x106f9d(){let _0x369cd5,_0x9c3505=null,_0xec5fbe=null;try{return'GPL'==_0x105a4d?'NotAllowed':(_0x369cd5=_0x45dcd0(),_0x369cd5?(_0x369cd5['usageEndpoint']&&(_0xec5fbe=_0x3cd9b3(_0x369cd5['usageEndpoint'],_0x369cd5['jti'])),await _0x147d3d()?_0x8ebea()?_0x4c4b32()?'Expired':_0x24fde5()?('evaluation'==_0x369cd5['licenseType']&&(_0x9c3505=_0x1de80a('EvaluationLimit')),await _0x5bddee()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4c4b32(){const _0x29362c=['evaluation','trial']['includes'](_0x369cd5['licenseType'])?_0x205608/0x3e8:0xe10*_0x3e9bbf;return _0x369cd5['exp']<_0x29362c;}function _0x8ebea(){const _0x2c8359=_0x369cd5['features'];return!!_0x2c8359&&(!!_0x2c8359['includes']('*')||(!!_0x2c8359['includes']('POE')||(!!_0x2c8359['includes']('PP')||!(!_0x2c8359['includes']('TRILIUM')||!_0x84332e()))));}function _0x24fde5(){const _0x2aef45=_0x369cd5['licensedHosts'];if(!_0x2aef45||0x0==_0x2aef45['length'])return!0x0;const {hostname:_0x4fe3ac}=new URL(window['location']['href']);if(_0x2aef45['includes'](_0x4fe3ac))return!0x0;const _0x54c3f7=_0x4fe3ac['split']('.');return _0x2aef45['filter'](_0x53ccb4=>_0x53ccb4['includes']('*'))['map'](_0x3f0767=>_0x3f0767['split']('.'))['filter'](_0x3e83e9=>_0x3e83e9['length']<=_0x54c3f7['length'])['map'](_0x375c3f=>Array(_0x54c3f7['length']-_0x375c3f['length'])['fill']('*'===_0x375c3f[0x0]?'*':'')['concat'](_0x375c3f))['some'](_0x123bd5=>_0x54c3f7['every']((_0x44a93e,_0x21659d)=>_0x123bd5[_0x21659d]===_0x44a93e||'*'===_0x123bd5[_0x21659d]));}function _0x5bddee(){return _0x9c3505&&_0xec5fbe?new window['Promise']((_0x46bf47,_0x579f06)=>{_0x9c3505['then'](_0x46bf47,_0x579f06),_0xec5fbe['then'](_0x1289c3=>{'Valid'!=_0x1289c3&&_0x46bf47(_0x1289c3);},_0x579f06);}):_0x9c3505||_0xec5fbe||'Valid';}}function _0x3cd9b3(_0x5b0e40,_0x405cfb){return new window['Promise'](_0x51cfd6=>{if(_0x1f95cf())return _0x51cfd6('Valid');_0x12c4c8(),_0x344e27['decorate']('_sendUsageRequest');let _0x1c42f5=!0x1;const _0x35ddcd=_0x42b827();function _0x28a2cf(_0x2aa476){return!!_0x2aa476&&('object'==typeof _0x2aa476||'function'==typeof _0x2aa476)&&'function'==typeof _0x2aa476['then']&&'function'==typeof _0x2aa476['catch'];}function _0x5bbe65(_0x468128){_0x2bb456(_0x468128)['then'](_0x2376d4=>_0x2376d4&&'ok'==_0x2376d4['status']?_0x311452(_0x5c89ec(_0x35ddcd+_0x405cfb))!=_0x2376d4['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x140b07=>(_0x1ba237(),_0x140b07),()=>{const _0x3af58c=_0x5c387b();return null==_0x3af58c?(_0x1ba237(),'Valid'):_0x205608-_0x3af58c>0x240c8400?'UsageLimit':'Valid';})['then'](_0x51cfd6)['catch'](()=>{_0x51cfd6('UsageLimit');});const _0x33d574=0x36ee80;function _0x1ba237(){const _0x5e178d='llct-'+_0x311452(_0x5c89ec(_0x5b0e40)),_0x382b14=_0x52c096(_0x311452(window['Math']['ceil'](_0x205608/_0x33d574)));window['localStorage']['setItem'](_0x5e178d,_0x382b14);}function _0x5c387b(){const _0x51b02c='llct-'+_0x311452(_0x5c89ec(_0x5b0e40)),_0x49ff8e=window['localStorage']['getItem'](_0x51b02c);return _0x49ff8e?window['parseInt'](_0x52c096(_0x49ff8e),0x10)*_0x33d574:null;}function _0x2bb456(_0xafed60){return new window['Promise']((_0x1386a7,_0x525cbc)=>{_0xafed60['then'](_0x1386a7,_0x525cbc),window['setTimeout'](_0x525cbc,0x1d4c0);});}}_0x344e27['on']('_sendUsageRequest',(_0x18eb56,_0x250182)=>{if(_0x250182[0x0]!=_0x5b0e40)return _0x51cfd6('UsageLimit');_0x250182[0x1]={..._0x250182[0x1],'requestId':_0x35ddcd};},{'priority':'high'}),_0x344e27['on']('_sendUsageRequest',_0x15ef16=>{_0x28a2cf(_0x15ef16['return'])&&(_0x1c42f5=!0x0,_0x5bbe65(_0x15ef16['return']));},{'priority':'low'}),_0x2276c6['then'](()=>{_0x1c42f5||_0x51cfd6('UsageLimit');});});function _0x1f95cf(){return'auto'==_0x344e27['editing']['view']['_overlayModeHint'];}function _0x12c4c8(){_0x344e27['editing']['view']['_overlayModeHint']='auto';}}function _0x1de80a(_0x371d2e){const _0x4b02c0=[new window['Promise'](_0x63a0e9=>setTimeout(_0x63a0e9,0x93ecc)),_0x2276c6['then'](()=>new window['Promise'](_0x1e7859=>{let _0x1b47c1=0x0;_0x344e27['model']['on']('applyOperation',(_0x2830f3,_0x5f4a4d)=>{_0x5f4a4d[0x0]['isDocumentOperation']&&_0x1b47c1++,0x5e8==_0x1b47c1&&(_0x1e7859(),_0x2830f3['off']());});}))];return window['Promise']['race'](_0x4b02c0)['then'](()=>_0x371d2e);}async function _0x2b82b6(){await _0x2276c6,_0x344e27['model']['change']=_0xa470d0,_0x344e27['model']['enqueueChange']=_0xa470d0,_0x344e27['enableReadOnlyMode']('model');}function _0x84332e(){return window['glob']&&window['glob']['triliumVersion'];}function _0x4247c4(_0x59ae24){const _0x562505=_0x1d2d6f();_0x344e27[_0x562505]='pasteFromOfficeEnhancedLicenseKey'+_0x59ae24,'Valid'!=_0x59ae24&&_0x2b82b6();}function _0x1d2d6f(){const _0x7b759f=window['String'](window['performance']['now']())['replace']('.','');let _0x4c89eb='u';for(let _0xcf9ac9=0x0;_0xcf9ac9<_0x7b759f['length'];_0xcf9ac9+=0x2){let _0x1d873f=window['parseInt'](_0x7b759f['substring'](_0xcf9ac9,_0xcf9ac9+0x2));_0x1d873f>=0x3e&&(_0x1d873f-=0x3e),_0x4c89eb+=_0xb262b4[_0x1d873f];}return _0x4c89eb;}function _0x45dcd0(){const _0xfd7e9=_0x105a4d['split']('.');if(0x3!=_0xfd7e9['length'])return null;return _0x3c7d7c(_0xfd7e9[0x1]);function _0x3c7d7c(_0x598fff){const _0x35bfa1=_0x2f0f6b(_0x598fff);return _0x35bfa1&&_0x1416eb()?_0x35bfa1:null;function _0x1416eb(){const _0x848dd6=_0x35bfa1['jti'],_0xd236ee=window['parseInt'](_0x848dd6['substring'](_0x848dd6['length']-0x8),0x10),_0x48f1a9={..._0x35bfa1,'jti':_0x848dd6['substring'](0x0,_0x848dd6['length']-0x8)};return delete _0x48f1a9['vc'],_0x5c89ec(_0x48f1a9)==_0xd236ee;}}}async function _0x147d3d(){let _0x2a95b7=!0x0;try{const [_0x1c45bf,_0x5c1dee,_0x4cb3b5]=_0x105a4d['split']('.');return _0x3db9e7(_0x1c45bf),await _0x4f9417(_0x1c45bf,_0x5c1dee,_0x4cb3b5),_0x2a95b7;}catch{return!0x1;}function _0x3db9e7(_0x5c1d49){const _0x165678=_0x2f0f6b(_0x5c1d49);_0x165678&&'ES256'==_0x165678['alg']||(_0x2a95b7=!0x1);}async function _0x4f9417(_0x27e020,_0x4f28d4,_0x3d74b9){const _0x18116b=window['Uint8Array']['from'](_0x15e0c4(_0x3d74b9),_0x458da6=>_0x458da6['charCodeAt'](0x0)),_0x473053=new window['TextEncoder']()['encode'](_0x27e020+'.'+_0x4f28d4),_0xcd1f06=window['crypto']['subtle'];if(!_0xcd1f06)return;const _0x49fdfa=await _0xcd1f06['importKey']('jwk',_0x7d4a29,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xcd1f06['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x49fdfa,_0x18116b,_0x473053)||(_0x2a95b7=!0x1);}}function _0x2f0f6b(_0x5221d6){return _0x5221d6['startsWith']('ey')?JSON['parse'](_0x15e0c4(_0x5221d6)):null;}function _0x15e0c4(_0x4e1556){return window['atob'](_0x4e1556['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5c89ec(_0x3a8958){let _0x21cc3b=0x1505;function _0x450f5c(_0x59f9fb){for(let _0x2af424=0x0;_0x2af424<_0x59f9fb['length'];_0x2af424++){const _0x1d9dac=_0x59f9fb['charCodeAt'](_0x2af424);_0x21cc3b=(_0x21cc3b<<0x5)+_0x21cc3b+_0x1d9dac,_0x21cc3b&=_0x21cc3b;}}function _0x287198(_0x5ef2f0){Array['isArray'](_0x5ef2f0)?_0x5ef2f0['forEach'](_0x287198):_0x5ef2f0&&'object'==typeof _0x5ef2f0?Object['entries'](_0x5ef2f0)['sort']()['forEach'](([_0x3b5f2f,_0x4cbbfb])=>{_0x450f5c(_0x3b5f2f),_0x287198(_0x4cbbfb);}):_0x450f5c(window['String'](_0x5ef2f0));}return _0x287198(_0x3a8958),_0x21cc3b>>>0x0;}function _0x311452(_0x186916){return _0x186916['toString'](0x10)['padStart'](0x8,'0');}function _0x52c096(_0x1c58ec){return _0x1c58ec['split']('')['reverse']()['join']('');}function _0xa470d0(){}_0x4247c4(await _0x106f9d());}_0x1f4954(_0x291f88['editor']);}(this);}};const h=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],O=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x6aa7c1=>Number(_0x6aa7c1)>=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(_0x34118c){return h['includes'](_0x34118c);}function v(_0x23077f){return Array['from'](_0x23077f['getStyleNames']())['filter'](E);}function F(_0xba58ae,_0x14ab33,_0xa529fc){const {spanStyles:_0x355197,stylesToBeHtmlElements:_0x170bec}=K(_0xba58ae,_0xa529fc);!function(_0xc4705d,_0x5a6266,_0x360c9f){for(const _0x99e72b in _0x360c9f)_0x360c9f[_0x99e72b]['forEach'](([,_0x4630ca])=>{const _0x2495bf=_0x5a6266['createElement'](_0x4630ca,[],_0xc4705d['getChildren']());_0x5a6266['insertChild'](0x0,_0x2495bf,_0xc4705d);}),_0x5a6266['removeStyle'](_0x99e72b,_0xc4705d);}(_0xba58ae,_0x14ab33,_0x170bec),function(_0x2b4175,_0x2acf24,_0x30160d){if(!Object['keys'](_0x30160d)['length'])return;const _0x49b4ec=_0x2acf24['createElement']('span',[],_0x2b4175['getChildren']());_0x2acf24['setStyle'](_0x30160d,_0x49b4ec),_0x2acf24['insertChild'](0x0,_0x49b4ec,_0x2b4175),_0x2acf24['removeStyle'](Object['keys'](_0x30160d),_0x2b4175);}(_0xba58ae,_0x14ab33,_0x355197);}function P(_0x57c04f,_0x17af62,_0xddcc68){const {spanStyles:_0xc8ae0c}=K(_0x57c04f,_0xddcc68),_0x47a8ec=Object['keys'](_0xc8ae0c);if(!_0x47a8ec['length'])return;let _0x44d656=!0x1;for(const _0x29861d of _0x57c04f['getChildren']())if(_0x29861d['is']('element','span')){_0x44d656=!0x0;for(const [_0x5dd374,_0x47ae86]of Object['entries'](_0xc8ae0c))_0x29861d['hasStyle'](_0x5dd374)||_0x17af62['setStyle']({[_0x5dd374]:_0x47ae86},_0x29861d);}_0x44d656&&_0x17af62['removeStyle'](_0x47a8ec,_0x57c04f);}function K(_0x34d19f,_0x1377b2){const _0x54008b={},_0x2bec18={};return _0x1377b2['forEach'](_0x34b564=>{const _0x42f0b5=_0x34d19f['getStyle'](_0x34b564);if(_0x42f0b5){if(function(_0x5c7ec8){return O['includes'](_0x5c7ec8);}(_0x34b564))_0x54008b[_0x34b564]=_0x42f0b5;else{if(function(_0x2ca596){return _0x2ca596 in L;}(_0x34b564)){const _0xe50ff2=_0x42f0b5['split']('\x20');L[_0x34b564]['forEach'](([_0x5ddf3d,_0x463cef])=>{for(const _0x1e3e2b of _0xe50ff2)('function'==typeof _0x5ddf3d&&_0x5ddf3d(_0x1e3e2b)||_0x5ddf3d===_0x1e3e2b)&&(_0x2bec18[_0x34b564]=[..._0x2bec18[_0x34b564]||[],[_0x5ddf3d,_0x463cef]]);});}}}}),{'spanStyles':_0x54008b,'stylesToBeHtmlElements':_0x2bec18};}var b=class extends _0x422cf5{execute(_0x46be8e){const _0x574f33=new _0x197779(_0x46be8e['content']['document']),_0xb5aae8=_0x574f33['createRangeIn'](_0x46be8e['content']),_0x45562a=new _0x54ce81(_0x574f33['document']['stylesProcessor']),_0x3ce6f9=[...new _0x329782(_0x45562a)['blockElements'],'font'],_0x480c27=_0xb5aae8['getItems']();for(const _0x518593 of _0x480c27)if(_0x518593['is']('element')&&_0x3ce6f9['includes'](_0x518593['name'])){if(_0x518593['hasStyle']('mso-list')&&'none'!==_0x518593['getStyle']('mso-list')){P(_0x518593,_0x574f33,v(_0x518593));continue;}F(_0x518593,_0x574f33,v(_0x518593));}}isActive(_0x539a66){return super['isActive'](_0x539a66)||u(_0x539a66);}},x=class extends _0x12bd6a{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x921b8e];}init(){const _0x2e32c0=this['editor'],_0x476573=_0x2e32c0['plugins']['get']('PasteFromOffice'),_0x3a529c=_0x2e32c0['editing']['view']['document'],_0x2c2a91=new b(_0x3a529c);_0x476573['registerNormalizer'](_0x2c2a91,_0x15e6b5['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0xe05d47=[this['editor']];for(const _0x1df254 of _0xe05d47){let _0x25e0cb;for(const _0x3055c0 in _0x1df254){const _0x37d626=_0x3055c0,_0x3be6b4=_0x1df254[_0x37d626];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x3be6b4||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x3be6b4||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x3be6b4||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x3be6b4||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x3be6b4||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x3be6b4||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x3be6b4){delete _0x1df254[_0x37d626],_0x25e0cb=_0x3be6b4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x25e0cb&&_0x1df254['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x25e0cb&&_0x1df254['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x25e0cb&&_0x1df254['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x25e0cb&&_0x1df254['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x25e0cb&&_0x1df254['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x25e0cb&&_0x1df254['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x12bd6a{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x921b8e,p,x];}};export{k as PasteFromOfficeEnhanced};
23
+ import{Plugin as _0x1d3e79}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x5485f3,PasteFromOfficeMSWordNormalizer as _0x45e541}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0xa522d8,uid as _0x583241}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0xdbbaaf,ViewDomConverter as _0x5bf290,ViewUpcastWriter as _0x495e0d}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0xb4505f){return f['test'](_0xb4505f);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x5d8ae1,_0x407f98){const _0x3a325b=new Map();for(const [_0x2801f0,_0x5a3ff1]of _0x407f98){if(!_0x2801f0['tagName']&&!_0x2801f0['className'])continue;const _0x3ce2b5=!_0x2801f0['tagName']||_0x5d8ae1['name']===_0x2801f0['tagName'],_0x5187b2=!_0x2801f0['className']||_0x5d8ae1['hasClass'](_0x2801f0['className']);_0x3ce2b5&&_0x5187b2&&_0x3a325b['set'](_0x2801f0,_0x5a3ff1);}return _0x3a325b;}function m(_0x4e769c){const _0x42d7da={};for(let _0x43c6bc=0x0;_0x43c6bc<_0x4e769c['length'];_0x43c6bc++){const _0x2bbe2d=_0x4e769c[_0x43c6bc],_0x3176e7=_0x4e769c['getPropertyValue'](_0x2bbe2d);'initial'!==_0x3176e7&&(_0x42d7da[_0x2bbe2d]=_0x3176e7);}return _0x42d7da;}function w(_0x43fe85){const _0x454289=_0x43fe85['split'](',')['map'](_0x379f4e=>_0x379f4e['trim']()),_0x38aaad=[];for(const _0x49eab9 of _0x454289){const _0x4df221=l['exec'](_0x49eab9);_0x4df221&&_0x38aaad['push'](_0x4df221['groups']);}return _0x38aaad;}function y(_0x3ba590){const _0x5d1bd5={};for(const _0x3c10d7 of _0x3ba590)Object['assign'](_0x5d1bd5,_0x3c10d7);return _0x5d1bd5;}var g=class extends _0x45e541{execute(_0x3f8fc8){const {styles:_0x55e4fa,stylesString:_0x8f6fd9}=_0x3f8fc8['extraContent'],_0x1154ac=new _0x495e0d(_0x3f8fc8['content']['document']),_0x579ab4=_0x1154ac['createRangeIn'](_0x3f8fc8['content']),_0x515bc1=function(_0x30f870){const _0x79ffe3={};for(const _0x4dfebe of _0x30f870)for(const _0x2d55b5 of _0x4dfebe['cssRules'])if(_0x2d55b5 instanceof CSSStyleRule){const _0x55872a=m(_0x2d55b5['style']);_0x79ffe3[_0x2d55b5['selectorText']]=Object['assign']({},_0x79ffe3[_0x2d55b5['selectorText']]||{},_0x55872a);}return _0x79ffe3;}(_0x55e4fa),_0x25c7d3=function(_0x2231ab){const _0x12ddf5=new Map();for(const _0x14cd7f in _0x2231ab){const _0x5e25af=w(_0x14cd7f),_0x18cd39=_0x2231ab[_0x14cd7f];for(const _0x3d98a9 of _0x5e25af)_0x12ddf5['set'](_0x3d98a9,_0x18cd39);}return _0x12ddf5;}(_0x515bc1),_0x5487f3=function(_0x30a788){const _0x504a60={},_0x39a953=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x44f01c=/\.(?<className>[\w-]+)/g;let _0x4b2349;for(;null!==(_0x4b2349=_0x39a953['exec'](_0x30a788));){const {selector:_0x47cf21,color:_0x3a906b,patternType:_0xa1f258}=_0x4b2349['groups'];if('auto'!==_0x3a906b['toLowerCase']()&&'none'!==_0xa1f258['toLowerCase']()&&'auto'!==_0xa1f258['toLowerCase']()){for(const _0x295363 of _0x47cf21['matchAll'](_0x44f01c))_0x504a60[_0x295363['groups']['className']]=_0x3a906b;}}return _0x504a60;}(_0x8f6fd9);for(const _0x249939 of _0x579ab4){if('elementStart'!==_0x249939['type'])continue;const _0x2e539a=_0x249939['item'],_0x5034fe=d(_0x2e539a,_0x25c7d3),_0x42af7d=_0x5034fe['size']?y(Array['from'](_0x5034fe['values']())):{};if(!('background-color'in _0x42af7d)&&!('background'in _0x42af7d)){for(const [_0x3b90eb,_0x30e216]of Object['entries'](_0x5487f3))if(_0x2e539a['hasClass'](_0x3b90eb)){_0x42af7d['background-color']=_0x30e216;break;}}for(const _0x3e3371 in _0x42af7d)_0x2e539a['hasStyle'](_0x3e3371)||_0x1154ac['setStyle'](_0x3e3371,_0x42af7d[_0x3e3371],_0x2e539a);}}isActive(_0x2fd979){return super['isActive'](_0x2fd979)||u(_0x2fd979);}},p=class extends _0x1d3e79{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5485f3];}init(){const _0x441818=this['editor'],_0x3fa894=_0x441818['plugins']['get']('PasteFromOffice'),_0x5348b7=_0x441818['editing']['view']['document'],_0x35a88c=new g(_0x5348b7);_0x3fa894['registerNormalizer'](_0x35a88c,_0xa522d8['high']+0xb);}afterInit(){!async function(_0x3e8ff1){const _0x178ec7='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x59642f=0x79740,_0x2fa289={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x4baf01(_0x109c70){const _0x5e8283=new window['Promise'](_0x2fc41a=>{_0x109c70['once']('ready',_0x2fc41a);}),_0x23cde6=window['Date']['now'](),_0x1a405f=_0x109c70['config']['get']('licenseKey');async function _0x166816(){let _0x41f06f,_0x4bd18f=null,_0x2af1a9=null;try{return'GPL'==_0x1a405f?'NotAllowed':(_0x41f06f=_0x255c55(),_0x41f06f?(_0x41f06f['usageEndpoint']&&(_0x2af1a9=_0x4bdff4(_0x41f06f['usageEndpoint'],_0x41f06f['jti'])),await _0x3d8580()?_0x591ddd()?_0x4fc378()?'Expired':_0x10f0a1()?('evaluation'==_0x41f06f['licenseType']&&(_0x4bd18f=_0x5e137a('EvaluationLimit')),await _0x4f6eb2()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4fc378(){const _0x26bee2=['evaluation','trial']['includes'](_0x41f06f['licenseType'])?_0x23cde6/0x3e8:0xe10*_0x59642f;return _0x41f06f['exp']<_0x26bee2;}function _0x591ddd(){const _0x41c207=_0x41f06f['features'];return!!_0x41c207&&(!!_0x41c207['includes']('*')||(!!_0x41c207['includes']('POE')||(!!_0x41c207['includes']('PP')||!(!_0x41c207['includes']('TRILIUM')||!_0x15e2fe()))));}function _0x10f0a1(){const _0x9fca7c=_0x41f06f['licensedHosts'];if(!_0x9fca7c||0x0==_0x9fca7c['length'])return!0x0;const {hostname:_0x5d6348}=new URL(window['location']['href']);if(_0x9fca7c['includes'](_0x5d6348))return!0x0;const _0x583e2d=_0x5d6348['split']('.');return _0x9fca7c['filter'](_0x27b314=>_0x27b314['includes']('*'))['map'](_0x239e33=>_0x239e33['split']('.'))['filter'](_0x423048=>_0x423048['length']<=_0x583e2d['length'])['map'](_0x3a89c5=>Array(_0x583e2d['length']-_0x3a89c5['length'])['fill']('*'===_0x3a89c5[0x0]?'*':'')['concat'](_0x3a89c5))['some'](_0xfc9c1f=>_0x583e2d['every']((_0x8bc3a5,_0x4e07ae)=>_0xfc9c1f[_0x4e07ae]===_0x8bc3a5||'*'===_0xfc9c1f[_0x4e07ae]));}function _0x4f6eb2(){return _0x4bd18f&&_0x2af1a9?new window['Promise']((_0x205187,_0x16344c)=>{_0x4bd18f['then'](_0x205187,_0x16344c),_0x2af1a9['then'](_0x337a36=>{'Valid'!=_0x337a36&&_0x205187(_0x337a36);},_0x16344c);}):_0x4bd18f||_0x2af1a9||'Valid';}}function _0x4bdff4(_0x47cf03,_0x4b0569){return new window['Promise'](_0xed8686=>{if(_0x51b9fc())return _0xed8686('Valid');_0x239de7(),_0x109c70['decorate']('_sendUsageRequest');let _0x4f05dd=!0x1;const _0x1cd4aa=_0x583241();function _0x3d1a88(_0x3fbe40){return!!_0x3fbe40&&('object'==typeof _0x3fbe40||'function'==typeof _0x3fbe40)&&'function'==typeof _0x3fbe40['then']&&'function'==typeof _0x3fbe40['catch'];}function _0x558854(_0x25be9a){_0xeecb8(_0x25be9a)['then'](_0x2032d4=>_0x2032d4&&'ok'==_0x2032d4['status']?_0x16c7a1(_0x44cd35(_0x1cd4aa+_0x4b0569))!=_0x2032d4['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x166c61=>(_0x3d8f4a(),_0x166c61),()=>{const _0x182a93=_0x1f4595();return null==_0x182a93?(_0x3d8f4a(),'Valid'):_0x23cde6-_0x182a93>0x240c8400?'UsageLimit':'Valid';})['then'](_0xed8686)['catch'](()=>{_0xed8686('UsageLimit');});const _0x1d9b59=0x36ee80;function _0x3d8f4a(){const _0x3a76f1='llct-'+_0x16c7a1(_0x44cd35(_0x47cf03)),_0x58ccec=_0x402d48(_0x16c7a1(window['Math']['ceil'](_0x23cde6/_0x1d9b59)));window['localStorage']['setItem'](_0x3a76f1,_0x58ccec);}function _0x1f4595(){const _0x1e8cbb='llct-'+_0x16c7a1(_0x44cd35(_0x47cf03)),_0xd1f637=window['localStorage']['getItem'](_0x1e8cbb);return _0xd1f637?window['parseInt'](_0x402d48(_0xd1f637),0x10)*_0x1d9b59:null;}function _0xeecb8(_0x3079e9){return new window['Promise']((_0x480842,_0x1cb3d6)=>{_0x3079e9['then'](_0x480842,_0x1cb3d6),window['setTimeout'](_0x1cb3d6,0x1d4c0);});}}_0x109c70['on']('_sendUsageRequest',(_0x56bb3c,_0x48fecb)=>{if(_0x48fecb[0x0]!=_0x47cf03)return _0xed8686('UsageLimit');_0x48fecb[0x1]={..._0x48fecb[0x1],'requestId':_0x1cd4aa};},{'priority':'high'}),_0x109c70['on']('_sendUsageRequest',_0x5decbb=>{_0x3d1a88(_0x5decbb['return'])&&(_0x4f05dd=!0x0,_0x558854(_0x5decbb['return']));},{'priority':'low'}),_0x5e8283['then'](()=>{_0x4f05dd||_0xed8686('UsageLimit');});});function _0x51b9fc(){return'auto'==_0x109c70['editing']['view']['_overlayModeHint'];}function _0x239de7(){_0x109c70['editing']['view']['_overlayModeHint']='auto';}}function _0x5e137a(_0x166ec2){const _0x163171=[new window['Promise'](_0x670ba7=>setTimeout(_0x670ba7,0x93ecc)),_0x5e8283['then'](()=>new window['Promise'](_0x44f039=>{let _0x1e7fba=0x0;_0x109c70['model']['on']('applyOperation',(_0x2ceb21,_0x49f01b)=>{_0x49f01b[0x0]['isDocumentOperation']&&_0x1e7fba++,0x5e8==_0x1e7fba&&(_0x44f039(),_0x2ceb21['off']());});}))];return window['Promise']['race'](_0x163171)['then'](()=>_0x166ec2);}async function _0x1e2d7b(){await _0x5e8283,_0x109c70['model']['change']=_0x1ea830,_0x109c70['model']['enqueueChange']=_0x1ea830,_0x109c70['enableReadOnlyMode']('model');}function _0x15e2fe(){return window['glob']&&window['glob']['triliumVersion'];}function _0x22a002(_0x134976){const _0x3bb7d6=_0x3ed922();_0x109c70[_0x3bb7d6]='pasteFromOfficeEnhancedLicenseKey'+_0x134976,'Valid'!=_0x134976&&_0x1e2d7b();}function _0x3ed922(){const _0x1656e3=window['String'](window['performance']['now']())['replace']('.','');let _0x28dc84='u';for(let _0x239756=0x0;_0x239756<_0x1656e3['length'];_0x239756+=0x2){let _0x80dc14=window['parseInt'](_0x1656e3['substring'](_0x239756,_0x239756+0x2));_0x80dc14>=0x3e&&(_0x80dc14-=0x3e),_0x28dc84+=_0x178ec7[_0x80dc14];}return _0x28dc84;}function _0x255c55(){const _0x17a86d=_0x1a405f['split']('.');if(0x3!=_0x17a86d['length'])return null;return _0x21ca6e(_0x17a86d[0x1]);function _0x21ca6e(_0x5cd88b){const _0x3e4328=_0x4a1973(_0x5cd88b);return _0x3e4328&&_0x26dd96()?_0x3e4328:null;function _0x26dd96(){const _0x5035a1=_0x3e4328['jti'],_0x307b02=window['parseInt'](_0x5035a1['substring'](_0x5035a1['length']-0x8),0x10),_0x3c98eb={..._0x3e4328,'jti':_0x5035a1['substring'](0x0,_0x5035a1['length']-0x8)};return delete _0x3c98eb['vc'],_0x44cd35(_0x3c98eb)==_0x307b02;}}}async function _0x3d8580(){let _0x12cf5f=!0x0;try{const [_0x42a1d1,_0x1150dd,_0x5909ec]=_0x1a405f['split']('.');return _0x5e665f(_0x42a1d1),await _0x56ef7d(_0x42a1d1,_0x1150dd,_0x5909ec),_0x12cf5f;}catch{return!0x1;}function _0x5e665f(_0x463b93){const _0x56ab7f=_0x4a1973(_0x463b93);_0x56ab7f&&'ES256'==_0x56ab7f['alg']||(_0x12cf5f=!0x1);}async function _0x56ef7d(_0xa36b73,_0x13badc,_0x5df60b){const _0x13b552=window['Uint8Array']['from'](_0x28e72c(_0x5df60b),_0x4f47fa=>_0x4f47fa['charCodeAt'](0x0)),_0x52c6ab=new window['TextEncoder']()['encode'](_0xa36b73+'.'+_0x13badc),_0x3d048c=window['crypto']['subtle'];if(!_0x3d048c)return;const _0x3cf7ef=await _0x3d048c['importKey']('jwk',_0x2fa289,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3d048c['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x3cf7ef,_0x13b552,_0x52c6ab)||(_0x12cf5f=!0x1);}}function _0x4a1973(_0x288f95){return _0x288f95['startsWith']('ey')?JSON['parse'](_0x28e72c(_0x288f95)):null;}function _0x28e72c(_0x4c6e82){return window['atob'](_0x4c6e82['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x44cd35(_0x18da8d){let _0x2e6986=0x1505;function _0x2196f7(_0x3b322c){for(let _0x3f894f=0x0;_0x3f894f<_0x3b322c['length'];_0x3f894f++){const _0x3efc01=_0x3b322c['charCodeAt'](_0x3f894f);_0x2e6986=(_0x2e6986<<0x5)+_0x2e6986+_0x3efc01,_0x2e6986&=_0x2e6986;}}function _0xb808e7(_0x1a2153){Array['isArray'](_0x1a2153)?_0x1a2153['forEach'](_0xb808e7):_0x1a2153&&'object'==typeof _0x1a2153?Object['entries'](_0x1a2153)['sort']()['forEach'](([_0x5538fb,_0x599f1a])=>{_0x2196f7(_0x5538fb),_0xb808e7(_0x599f1a);}):_0x2196f7(window['String'](_0x1a2153));}return _0xb808e7(_0x18da8d),_0x2e6986>>>0x0;}function _0x16c7a1(_0x1b2a1f){return _0x1b2a1f['toString'](0x10)['padStart'](0x8,'0');}function _0x402d48(_0x27c29f){return _0x27c29f['split']('')['reverse']()['join']('');}function _0x1ea830(){}_0x22a002(await _0x166816());}_0x4baf01(_0x3e8ff1['editor']);}(this);}};const h=['color','font-family','font-size','text-decoration','text-decoration-line','font-weight','font-style','vertical-align'],O=['color','font-family','font-size'],L={'font-style':[['italic','i']],'font-weight':[['medium','strong'],['bold','strong'],['bolder','strong'],[_0x1bd2f0=>Number(_0x1bd2f0)>=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(_0x4f1619){return h['includes'](_0x4f1619);}function v(_0x587a20){return Array['from'](_0x587a20['getStyleNames']())['filter'](E);}function F(_0x19ae08,_0x1eaf15,_0x7649cd){const {spanStyles:_0x1b6de7,stylesToBeHtmlElements:_0x1d4dd6}=K(_0x19ae08,_0x7649cd);!function(_0x50288a,_0x3c5eec,_0x46c3bd){for(const _0x4f771c in _0x46c3bd)_0x46c3bd[_0x4f771c]['forEach'](([,_0x45e9e8])=>{const _0x31500d=_0x3c5eec['createElement'](_0x45e9e8,[],_0x50288a['getChildren']());_0x3c5eec['insertChild'](0x0,_0x31500d,_0x50288a);}),_0x3c5eec['removeStyle'](_0x4f771c,_0x50288a);}(_0x19ae08,_0x1eaf15,_0x1d4dd6),function(_0x46b9ec,_0x1cb8c9,_0x102696){if(!Object['keys'](_0x102696)['length'])return;const _0x154c0d=_0x1cb8c9['createElement']('span',[],_0x46b9ec['getChildren']());_0x1cb8c9['setStyle'](_0x102696,_0x154c0d),_0x1cb8c9['insertChild'](0x0,_0x154c0d,_0x46b9ec),_0x1cb8c9['removeStyle'](Object['keys'](_0x102696),_0x46b9ec);}(_0x19ae08,_0x1eaf15,_0x1b6de7);}function P(_0x4b4190,_0xd5523b,_0x4bb536){const {spanStyles:_0x3e5ca9}=K(_0x4b4190,_0x4bb536),_0x15e502=Object['keys'](_0x3e5ca9);if(!_0x15e502['length'])return;let _0x369738=!0x1;for(const _0x30e893 of _0x4b4190['getChildren']())if(_0x30e893['is']('element','span')){_0x369738=!0x0;for(const [_0x309c48,_0xa66c6]of Object['entries'](_0x3e5ca9))_0x30e893['hasStyle'](_0x309c48)||_0xd5523b['setStyle']({[_0x309c48]:_0xa66c6},_0x30e893);}_0x369738&&_0xd5523b['removeStyle'](_0x15e502,_0x4b4190);}function K(_0x165a43,_0x400551){const _0x52b737={},_0x4f1eaa={};return _0x400551['forEach'](_0xb6ff60=>{const _0x2cab93=_0x165a43['getStyle'](_0xb6ff60);if(_0x2cab93){if(function(_0x2d0df4){return O['includes'](_0x2d0df4);}(_0xb6ff60))_0x52b737[_0xb6ff60]=_0x2cab93;else{if(function(_0x22f53c){return _0x22f53c in L;}(_0xb6ff60)){const _0x3674af=_0x2cab93['split']('\x20');L[_0xb6ff60]['forEach'](([_0x4cc7bc,_0xc4d1e])=>{for(const _0x52707d of _0x3674af)('function'==typeof _0x4cc7bc&&_0x4cc7bc(_0x52707d)||_0x4cc7bc===_0x52707d)&&(_0x4f1eaa[_0xb6ff60]=[..._0x4f1eaa[_0xb6ff60]||[],[_0x4cc7bc,_0xc4d1e]]);});}}}}),{'spanStyles':_0x52b737,'stylesToBeHtmlElements':_0x4f1eaa};}var b=class extends _0x45e541{execute(_0x1719fd){const _0x48563a=new _0x495e0d(_0x1719fd['content']['document']),_0xe2a51e=_0x48563a['createRangeIn'](_0x1719fd['content']),_0x2ca00e=new _0xdbbaaf(_0x48563a['document']['stylesProcessor']),_0x47c1de=[...new _0x5bf290(_0x2ca00e)['blockElements'],'font'],_0xf1dce9=_0xe2a51e['getItems']();for(const _0x9edb5d of _0xf1dce9)if(_0x9edb5d['is']('element')&&_0x47c1de['includes'](_0x9edb5d['name'])){if(_0x9edb5d['hasStyle']('mso-list')&&'none'!==_0x9edb5d['getStyle']('mso-list')){P(_0x9edb5d,_0x48563a,v(_0x9edb5d));continue;}F(_0x9edb5d,_0x48563a,v(_0x9edb5d));}}isActive(_0x4a17e5){return super['isActive'](_0x4a17e5)||u(_0x4a17e5);}},x=class extends _0x1d3e79{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5485f3];}init(){const _0x2029a9=this['editor'],_0x30973e=_0x2029a9['plugins']['get']('PasteFromOffice'),_0x3b6a41=_0x2029a9['editing']['view']['document'],_0x2dd769=new b(_0x3b6a41);_0x30973e['registerNormalizer'](_0x2dd769,_0xa522d8['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x46289d=[this['editor']];for(const _0x268b97 of _0x46289d){let _0x54c5c5;for(const _0xeafe10 in _0x268b97){const _0x27eb4c=_0xeafe10,_0x40ba3b=_0x268b97[_0x27eb4c];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x40ba3b||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x40ba3b||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x40ba3b||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x40ba3b||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x40ba3b||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x40ba3b||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x40ba3b){delete _0x268b97[_0x27eb4c],_0x54c5c5=_0x40ba3b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x54c5c5&&_0x268b97['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x54c5c5&&_0x268b97['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x54c5c5&&_0x268b97['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x54c5c5&&_0x268b97['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x54c5c5&&_0x268b97['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x54c5c5&&_0x268b97['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x1d3e79{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x5485f3,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": "49.0.0-alpha.0",
3
+ "version": "49.0.0-alpha.2",
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": "49.0.0-alpha.0",
35
- "@ckeditor/ckeditor5-core": "49.0.0-alpha.0",
36
- "@ckeditor/ckeditor5-engine": "49.0.0-alpha.0",
37
- "@ckeditor/ckeditor5-paste-from-office": "49.0.0-alpha.0",
38
- "@ckeditor/ckeditor5-utils": "49.0.0-alpha.0"
34
+ "@ckeditor/ckeditor5-clipboard": "49.0.0-alpha.2",
35
+ "@ckeditor/ckeditor5-core": "49.0.0-alpha.2",
36
+ "@ckeditor/ckeditor5-engine": "49.0.0-alpha.2",
37
+ "@ckeditor/ckeditor5-paste-from-office": "49.0.0-alpha.2",
38
+ "@ckeditor/ckeditor5-utils": "49.0.0-alpha.2"
39
39
  },
40
40
  "files": [
41
41
  "dist",