@ckeditor/ckeditor5-paste-from-office-enhanced 49.0.0-alpha.0 → 49.0.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 _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 _0x521308}from'@ckeditor/ckeditor5-core';import{PasteFromOffice as _0x42827c,PasteFromOfficeMSWordNormalizer as _0x22a5e9}from'@ckeditor/ckeditor5-paste-from-office';import{priorities as _0x2f9d86,uid as _0x1bec62}from'@ckeditor/ckeditor5-utils';import{ViewDocument as _0x3969c5,ViewDomConverter as _0x55c840,ViewUpcastWriter as _0x3dec71}from'@ckeditor/ckeditor5-engine';const f=/<meta\s*name="?generator"?\s*content="?microsoft\s*excel\s*\d+"?\/?>/i;function u(_0x4501ef){return f['test'](_0x4501ef);}const l=/^(?<tagName>(?!\.)[\w-]+)?(\.(?<className>[\w-]+))?$/i;function d(_0x34812f,_0x119d20){const _0x22f0bd=new Map();for(const [_0x5bb33b,_0x31aed9]of _0x119d20){if(!_0x5bb33b['tagName']&&!_0x5bb33b['className'])continue;const _0x1623f2=!_0x5bb33b['tagName']||_0x34812f['name']===_0x5bb33b['tagName'],_0x5493e8=!_0x5bb33b['className']||_0x34812f['hasClass'](_0x5bb33b['className']);_0x1623f2&&_0x5493e8&&_0x22f0bd['set'](_0x5bb33b,_0x31aed9);}return _0x22f0bd;}function m(_0x1f7c63){const _0x4c3fb4={};for(let _0x5dc384=0x0;_0x5dc384<_0x1f7c63['length'];_0x5dc384++){const _0x51f90d=_0x1f7c63[_0x5dc384],_0x2cd691=_0x1f7c63['getPropertyValue'](_0x51f90d);'initial'!==_0x2cd691&&(_0x4c3fb4[_0x51f90d]=_0x2cd691);}return _0x4c3fb4;}function w(_0x5ca1c0){const _0x100022=_0x5ca1c0['split'](',')['map'](_0x5d89fd=>_0x5d89fd['trim']()),_0x492a7f=[];for(const _0x40f811 of _0x100022){const _0x11e08e=l['exec'](_0x40f811);_0x11e08e&&_0x492a7f['push'](_0x11e08e['groups']);}return _0x492a7f;}function y(_0x588b69){const _0x5918b9={};for(const _0x60a46c of _0x588b69)Object['assign'](_0x5918b9,_0x60a46c);return _0x5918b9;}var g=class extends _0x22a5e9{execute(_0x335f35){const {styles:_0x420359,stylesString:_0x28543a}=_0x335f35['extraContent'],_0xfabc5d=new _0x3dec71(_0x335f35['content']['document']),_0x34d630=_0xfabc5d['createRangeIn'](_0x335f35['content']),_0x50dc4a=function(_0x323a35){const _0x162b29={};for(const _0x47a5d4 of _0x323a35)for(const _0xf75881 of _0x47a5d4['cssRules'])if(_0xf75881 instanceof CSSStyleRule){const _0x135f1d=m(_0xf75881['style']);_0x162b29[_0xf75881['selectorText']]=Object['assign']({},_0x162b29[_0xf75881['selectorText']]||{},_0x135f1d);}return _0x162b29;}(_0x420359),_0x3ec51b=function(_0x2ca714){const _0x2343a2=new Map();for(const _0x3deffb in _0x2ca714){const _0x57dc66=w(_0x3deffb),_0x11aaaa=_0x2ca714[_0x3deffb];for(const _0x1402a4 of _0x57dc66)_0x2343a2['set'](_0x1402a4,_0x11aaaa);}return _0x2343a2;}(_0x50dc4a),_0x700df4=function(_0xcc40d3){const _0x5c4fd9={},_0x55a778=/(?<selector>[^{}]+)\{[^}]*mso-pattern:\s*(?<color>#[0-9A-Fa-f]{3,6}|[a-z]+)\s+(?<patternType>[\w-]+)[^}]*\}/gi,_0x189ebe=/\.(?<className>[\w-]+)/g;let _0x130667;for(;null!==(_0x130667=_0x55a778['exec'](_0xcc40d3));){const {selector:_0x1e2955,color:_0x1b056e,patternType:_0x30f0cd}=_0x130667['groups'];if('auto'!==_0x1b056e['toLowerCase']()&&'none'!==_0x30f0cd['toLowerCase']()&&'auto'!==_0x30f0cd['toLowerCase']()){for(const _0x20b9a4 of _0x1e2955['matchAll'](_0x189ebe))_0x5c4fd9[_0x20b9a4['groups']['className']]=_0x1b056e;}}return _0x5c4fd9;}(_0x28543a);for(const _0x2a6df9 of _0x34d630){if('elementStart'!==_0x2a6df9['type'])continue;const _0x59e3e4=_0x2a6df9['item'],_0x5a5d58=d(_0x59e3e4,_0x3ec51b),_0x24e5f4=_0x5a5d58['size']?y(Array['from'](_0x5a5d58['values']())):{};if(!('background-color'in _0x24e5f4)&&!('background'in _0x24e5f4)){for(const [_0x138f14,_0x1f493f]of Object['entries'](_0x700df4))if(_0x59e3e4['hasClass'](_0x138f14)){_0x24e5f4['background-color']=_0x1f493f;break;}}for(const _0x2e68f7 in _0x24e5f4)_0x59e3e4['hasStyle'](_0x2e68f7)||_0xfabc5d['setStyle'](_0x2e68f7,_0x24e5f4[_0x2e68f7],_0x59e3e4);}}isActive(_0x4a23ea){return super['isActive'](_0x4a23ea)||u(_0x4a23ea);}},p=class extends _0x521308{static get['pluginName'](){return'PasteFromOfficeEnhancedInliner';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x42827c];}init(){const _0x4ddf99=this['editor'],_0xcf0549=_0x4ddf99['plugins']['get']('PasteFromOffice'),_0x6cabf7=_0x4ddf99['editing']['view']['document'],_0x1fafeb=new g(_0x6cabf7);_0xcf0549['registerNormalizer'](_0x1fafeb,_0x2f9d86['high']+0xb);}afterInit(){!async function(_0x554bc1){const _0x2a1982='umgl1F4YkAVEtv0TcN6nKiXCrhODd2PaGMSIJbspyz9QLBoWxUfj5HZew738Rq',_0x38b49f=0x79728,_0x403c5f={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x126ed3(_0x573358){const _0x1c05ea=new window['Promise'](_0x239211=>{_0x573358['once']('ready',_0x239211);}),_0x4eea72=window['Date']['now'](),_0x12cc5b=_0x573358['config']['get']('licenseKey');async function _0x59a98e(){let _0x45b4b7,_0x3cb345=null,_0x2ab845=null;try{return'GPL'==_0x12cc5b?'NotAllowed':(_0x45b4b7=_0x56fbde(),_0x45b4b7?(_0x45b4b7['usageEndpoint']&&(_0x2ab845=_0x4e2d8e(_0x45b4b7['usageEndpoint'],_0x45b4b7['jti'])),await _0x4324f9()?_0x2b2cfd()?_0x3f146d()?'Expired':_0x59703b()?('evaluation'==_0x45b4b7['licenseType']&&(_0x3cb345=_0x322621('EvaluationLimit')),await _0xad7afa()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x3f146d(){const _0x51d3f3=['evaluation','trial']['includes'](_0x45b4b7['licenseType'])?_0x4eea72/0x3e8:0xe10*_0x38b49f;return _0x45b4b7['exp']<_0x51d3f3;}function _0x2b2cfd(){const _0x53e6b0=_0x45b4b7['features'];return!!_0x53e6b0&&(!!_0x53e6b0['includes']('*')||(!!_0x53e6b0['includes']('POE')||(!!_0x53e6b0['includes']('PP')||!(!_0x53e6b0['includes']('TRILIUM')||!_0x32626b()))));}function _0x59703b(){const _0x16e862=_0x45b4b7['licensedHosts'];if(!_0x16e862||0x0==_0x16e862['length'])return!0x0;const {hostname:_0x455242}=new URL(window['location']['href']);if(_0x16e862['includes'](_0x455242))return!0x0;const _0x472f89=_0x455242['split']('.');return _0x16e862['filter'](_0x2f1eff=>_0x2f1eff['includes']('*'))['map'](_0xf86c8=>_0xf86c8['split']('.'))['filter'](_0x502bb9=>_0x502bb9['length']<=_0x472f89['length'])['map'](_0x364629=>Array(_0x472f89['length']-_0x364629['length'])['fill']('*'===_0x364629[0x0]?'*':'')['concat'](_0x364629))['some'](_0x2d275d=>_0x472f89['every']((_0x4ed1a8,_0x1898ce)=>_0x2d275d[_0x1898ce]===_0x4ed1a8||'*'===_0x2d275d[_0x1898ce]));}function _0xad7afa(){return _0x3cb345&&_0x2ab845?new window['Promise']((_0x2c9b40,_0x37c02e)=>{_0x3cb345['then'](_0x2c9b40,_0x37c02e),_0x2ab845['then'](_0x4314b3=>{'Valid'!=_0x4314b3&&_0x2c9b40(_0x4314b3);},_0x37c02e);}):_0x3cb345||_0x2ab845||'Valid';}}function _0x4e2d8e(_0x56d73d,_0x4e0e0f){return new window['Promise'](_0x5c3384=>{if(_0x41a948())return _0x5c3384('Valid');_0x20481e(),_0x573358['decorate']('_sendUsageRequest');let _0x518061=!0x1;const _0x598966=_0x1bec62();function _0x4367c9(_0x19bae7){return!!_0x19bae7&&('object'==typeof _0x19bae7||'function'==typeof _0x19bae7)&&'function'==typeof _0x19bae7['then']&&'function'==typeof _0x19bae7['catch'];}function _0x3b8ca8(_0x2bc7a1){_0x3d10b7(_0x2bc7a1)['then'](_0x358851=>_0x358851&&'ok'==_0x358851['status']?_0x105126(_0x387e2b(_0x598966+_0x4e0e0f))!=_0x358851['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x25a886=>(_0x264017(),_0x25a886),()=>{const _0x11ca26=_0x4c4143();return null==_0x11ca26?(_0x264017(),'Valid'):_0x4eea72-_0x11ca26>0x240c8400?'UsageLimit':'Valid';})['then'](_0x5c3384)['catch'](()=>{_0x5c3384('UsageLimit');});const _0x3107f3=0x36ee80;function _0x264017(){const _0x1e2b3d='llct-'+_0x105126(_0x387e2b(_0x56d73d)),_0x4c4b6f=_0x3c9f15(_0x105126(window['Math']['ceil'](_0x4eea72/_0x3107f3)));window['localStorage']['setItem'](_0x1e2b3d,_0x4c4b6f);}function _0x4c4143(){const _0x5a6d7d='llct-'+_0x105126(_0x387e2b(_0x56d73d)),_0x22adb8=window['localStorage']['getItem'](_0x5a6d7d);return _0x22adb8?window['parseInt'](_0x3c9f15(_0x22adb8),0x10)*_0x3107f3:null;}function _0x3d10b7(_0x4ea087){return new window['Promise']((_0x2966ee,_0x2c3ec3)=>{_0x4ea087['then'](_0x2966ee,_0x2c3ec3),window['setTimeout'](_0x2c3ec3,0x1d4c0);});}}_0x573358['on']('_sendUsageRequest',(_0x36b950,_0x3d8c7d)=>{if(_0x3d8c7d[0x0]!=_0x56d73d)return _0x5c3384('UsageLimit');_0x3d8c7d[0x1]={..._0x3d8c7d[0x1],'requestId':_0x598966};},{'priority':'high'}),_0x573358['on']('_sendUsageRequest',_0x117cf6=>{_0x4367c9(_0x117cf6['return'])&&(_0x518061=!0x0,_0x3b8ca8(_0x117cf6['return']));},{'priority':'low'}),_0x1c05ea['then'](()=>{_0x518061||_0x5c3384('UsageLimit');});});function _0x41a948(){return'auto'==_0x573358['editing']['view']['_overlayModeHint'];}function _0x20481e(){_0x573358['editing']['view']['_overlayModeHint']='auto';}}function _0x322621(_0x4305ae){const _0x526dc7=[new window['Promise'](_0x4cb474=>setTimeout(_0x4cb474,0x93ecc)),_0x1c05ea['then'](()=>new window['Promise'](_0x1ac33f=>{let _0xbe8360=0x0;_0x573358['model']['on']('applyOperation',(_0x3545ea,_0x1a58a8)=>{_0x1a58a8[0x0]['isDocumentOperation']&&_0xbe8360++,0x5e8==_0xbe8360&&(_0x1ac33f(),_0x3545ea['off']());});}))];return window['Promise']['race'](_0x526dc7)['then'](()=>_0x4305ae);}async function _0x173584(){await _0x1c05ea,_0x573358['model']['change']=_0x54d29f,_0x573358['model']['enqueueChange']=_0x54d29f,_0x573358['enableReadOnlyMode']('model');}function _0x32626b(){return window['glob']&&window['glob']['triliumVersion'];}function _0x471e94(_0x585907){const _0x3ace1b=_0x3c775d();_0x573358[_0x3ace1b]='pasteFromOfficeEnhancedLicenseKey'+_0x585907,'Valid'!=_0x585907&&_0x173584();}function _0x3c775d(){const _0x12d396=window['String'](window['performance']['now']())['replace']('.','');let _0x3fbb20='u';for(let _0x56868c=0x0;_0x56868c<_0x12d396['length'];_0x56868c+=0x2){let _0x409b10=window['parseInt'](_0x12d396['substring'](_0x56868c,_0x56868c+0x2));_0x409b10>=0x3e&&(_0x409b10-=0x3e),_0x3fbb20+=_0x2a1982[_0x409b10];}return _0x3fbb20;}function _0x56fbde(){const _0x5194b8=_0x12cc5b['split']('.');if(0x3!=_0x5194b8['length'])return null;return _0x23a8c6(_0x5194b8[0x1]);function _0x23a8c6(_0x36e3e1){const _0x3f1944=_0x46f0ff(_0x36e3e1);return _0x3f1944&&_0x53c9aa()?_0x3f1944:null;function _0x53c9aa(){const _0x549b32=_0x3f1944['jti'],_0x217188=window['parseInt'](_0x549b32['substring'](_0x549b32['length']-0x8),0x10),_0x5ba0f6={..._0x3f1944,'jti':_0x549b32['substring'](0x0,_0x549b32['length']-0x8)};return delete _0x5ba0f6['vc'],_0x387e2b(_0x5ba0f6)==_0x217188;}}}async function _0x4324f9(){let _0x4d431a=!0x0;try{const [_0x2746bd,_0x54c0d8,_0x18c012]=_0x12cc5b['split']('.');return _0x4d9354(_0x2746bd),await _0x4b1bcf(_0x2746bd,_0x54c0d8,_0x18c012),_0x4d431a;}catch{return!0x1;}function _0x4d9354(_0x26770d){const _0x480aed=_0x46f0ff(_0x26770d);_0x480aed&&'ES256'==_0x480aed['alg']||(_0x4d431a=!0x1);}async function _0x4b1bcf(_0x23a593,_0xfc3e3a,_0x5dbb48){const _0x59500a=window['Uint8Array']['from'](_0x5da037(_0x5dbb48),_0x2b93af=>_0x2b93af['charCodeAt'](0x0)),_0x4a3b78=new window['TextEncoder']()['encode'](_0x23a593+'.'+_0xfc3e3a),_0x2568bf=window['crypto']['subtle'];if(!_0x2568bf)return;const _0x1fbb0a=await _0x2568bf['importKey']('jwk',_0x403c5f,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2568bf['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x1fbb0a,_0x59500a,_0x4a3b78)||(_0x4d431a=!0x1);}}function _0x46f0ff(_0x3f22d3){return _0x3f22d3['startsWith']('ey')?JSON['parse'](_0x5da037(_0x3f22d3)):null;}function _0x5da037(_0x493be3){return window['atob'](_0x493be3['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x387e2b(_0x438852){let _0xab1bc7=0x1505;function _0x956940(_0x58bf27){for(let _0x5af87b=0x0;_0x5af87b<_0x58bf27['length'];_0x5af87b++){const _0x52ac3c=_0x58bf27['charCodeAt'](_0x5af87b);_0xab1bc7=(_0xab1bc7<<0x5)+_0xab1bc7+_0x52ac3c,_0xab1bc7&=_0xab1bc7;}}function _0x2f5772(_0x146436){Array['isArray'](_0x146436)?_0x146436['forEach'](_0x2f5772):_0x146436&&'object'==typeof _0x146436?Object['entries'](_0x146436)['sort']()['forEach'](([_0x448d21,_0x254bf1])=>{_0x956940(_0x448d21),_0x2f5772(_0x254bf1);}):_0x956940(window['String'](_0x146436));}return _0x2f5772(_0x438852),_0xab1bc7>>>0x0;}function _0x105126(_0x25ec51){return _0x25ec51['toString'](0x10)['padStart'](0x8,'0');}function _0x3c9f15(_0x33d84a){return _0x33d84a['split']('')['reverse']()['join']('');}function _0x54d29f(){}_0x471e94(await _0x59a98e());}_0x126ed3(_0x554bc1['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'],[_0x3907ba=>Number(_0x3907ba)>=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(_0xa8d341){return h['includes'](_0xa8d341);}function v(_0x2a43e2){return Array['from'](_0x2a43e2['getStyleNames']())['filter'](E);}function F(_0x2bc184,_0x7e36d7,_0x4bd9a2){const {spanStyles:_0x44d3ae,stylesToBeHtmlElements:_0x231041}=K(_0x2bc184,_0x4bd9a2);!function(_0x40d356,_0x5b0362,_0x325d3f){for(const _0x1b0ef3 in _0x325d3f)_0x325d3f[_0x1b0ef3]['forEach'](([,_0x396f4b])=>{const _0x49f690=_0x5b0362['createElement'](_0x396f4b,[],_0x40d356['getChildren']());_0x5b0362['insertChild'](0x0,_0x49f690,_0x40d356);}),_0x5b0362['removeStyle'](_0x1b0ef3,_0x40d356);}(_0x2bc184,_0x7e36d7,_0x231041),function(_0x575392,_0x3fa82d,_0x4be3d2){if(!Object['keys'](_0x4be3d2)['length'])return;const _0x220155=_0x3fa82d['createElement']('span',[],_0x575392['getChildren']());_0x3fa82d['setStyle'](_0x4be3d2,_0x220155),_0x3fa82d['insertChild'](0x0,_0x220155,_0x575392),_0x3fa82d['removeStyle'](Object['keys'](_0x4be3d2),_0x575392);}(_0x2bc184,_0x7e36d7,_0x44d3ae);}function P(_0x392c0d,_0x200ec6,_0x3e6723){const {spanStyles:_0x568ff2}=K(_0x392c0d,_0x3e6723),_0x43b3dc=Object['keys'](_0x568ff2);if(!_0x43b3dc['length'])return;let _0x27770b=!0x1;for(const _0x203d82 of _0x392c0d['getChildren']())if(_0x203d82['is']('element','span')){_0x27770b=!0x0;for(const [_0x2f9ab1,_0x4da509]of Object['entries'](_0x568ff2))_0x203d82['hasStyle'](_0x2f9ab1)||_0x200ec6['setStyle']({[_0x2f9ab1]:_0x4da509},_0x203d82);}_0x27770b&&_0x200ec6['removeStyle'](_0x43b3dc,_0x392c0d);}function K(_0x4e6084,_0x40d96b){const _0x2822bf={},_0x193c22={};return _0x40d96b['forEach'](_0x4f733a=>{const _0x495959=_0x4e6084['getStyle'](_0x4f733a);if(_0x495959){if(function(_0x2ce6e0){return O['includes'](_0x2ce6e0);}(_0x4f733a))_0x2822bf[_0x4f733a]=_0x495959;else{if(function(_0x295a3e){return _0x295a3e in L;}(_0x4f733a)){const _0x587c26=_0x495959['split']('\x20');L[_0x4f733a]['forEach'](([_0x4980f1,_0x34c158])=>{for(const _0x4de5b5 of _0x587c26)('function'==typeof _0x4980f1&&_0x4980f1(_0x4de5b5)||_0x4980f1===_0x4de5b5)&&(_0x193c22[_0x4f733a]=[..._0x193c22[_0x4f733a]||[],[_0x4980f1,_0x34c158]]);});}}}}),{'spanStyles':_0x2822bf,'stylesToBeHtmlElements':_0x193c22};}var b=class extends _0x22a5e9{execute(_0x4610fb){const _0x12c8e9=new _0x3dec71(_0x4610fb['content']['document']),_0x4da467=_0x12c8e9['createRangeIn'](_0x4610fb['content']),_0xedd3ff=new _0x3969c5(_0x12c8e9['document']['stylesProcessor']),_0x4d1a8f=[...new _0x55c840(_0xedd3ff)['blockElements'],'font'],_0x5eeeaa=_0x4da467['getItems']();for(const _0x39618c of _0x5eeeaa)if(_0x39618c['is']('element')&&_0x4d1a8f['includes'](_0x39618c['name'])){if(_0x39618c['hasStyle']('mso-list')&&'none'!==_0x39618c['getStyle']('mso-list')){P(_0x39618c,_0x12c8e9,v(_0x39618c));continue;}F(_0x39618c,_0x12c8e9,v(_0x39618c));}}isActive(_0x4f18ef){return super['isActive'](_0x4f18ef)||u(_0x4f18ef);}},x=class extends _0x521308{['licenseKey'];_licenseKeyCheckInterval;static get['pluginName'](){return'PasteFromOfficeEnhancedPropagator';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x42827c];}init(){const _0x61a7b8=this['editor'],_0x243c91=_0x61a7b8['plugins']['get']('PasteFromOffice'),_0xd80c94=_0x61a7b8['editing']['view']['document'],_0x3fce51=new b(_0xd80c94);_0x243c91['registerNormalizer'](_0x3fce51,_0x2f9d86['high']+0xa),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x483b39=[this['editor']];for(const _0x188d52 of _0x483b39){let _0x4a6b24;for(const _0x177c08 in _0x188d52){const _0x3b43f4=_0x177c08,_0x81bba6=_0x188d52[_0x3b43f4];if('pasteFromOfficeEnhancedLicenseKeyValid'==_0x81bba6||'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x81bba6||'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x81bba6||'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x81bba6||'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x81bba6||'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x81bba6||'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x81bba6){delete _0x188d52[_0x3b43f4],_0x4a6b24=_0x81bba6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'pasteFromOfficeEnhancedLicenseKeyInvalid'==_0x4a6b24&&_0x188d52['_showLicenseError']('invalid'),'pasteFromOfficeEnhancedLicenseKeyExpired'==_0x4a6b24&&_0x188d52['_showLicenseError']('expired'),'pasteFromOfficeEnhancedLicenseKeyDomainLimit'==_0x4a6b24&&_0x188d52['_showLicenseError']('domainLimit'),'pasteFromOfficeEnhancedLicenseKeyNotAllowed'==_0x4a6b24&&_0x188d52['_showLicenseError']('featureNotAllowed','PasteFromOfficeEnhanced'),'pasteFromOfficeEnhancedLicenseKeyEvaluationLimit'==_0x4a6b24&&_0x188d52['_showLicenseError']('evaluationLimit'),'pasteFromOfficeEnhancedLicenseKeyUsageLimit'==_0x4a6b24&&_0x188d52['_showLicenseError']('usageLimit');}},0x3e8);}destroy(){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}},k=class extends _0x521308{static get['pluginName'](){return'PasteFromOfficeEnhanced';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get requires(){return[_0x42827c,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.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": "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.1",
35
+ "@ckeditor/ckeditor5-core": "49.0.0-alpha.1",
36
+ "@ckeditor/ckeditor5-engine": "49.0.0-alpha.1",
37
+ "@ckeditor/ckeditor5-paste-from-office": "49.0.0-alpha.1",
38
+ "@ckeditor/ckeditor5-utils": "49.0.0-alpha.1"
39
39
  },
40
40
  "files": [
41
41
  "dist",