@ckeditor/ckeditor5-export-inline-styles 48.3.0-alpha.6 → 48.3.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x385300,Plugin as _0x1a3099}from'@ckeditor/ckeditor5-core';import{collectStylesheets as _0x2ccb12,createElement as _0x311a2e,uid as _0x378dbe}from'@ckeditor/ckeditor5-utils';import{StylesMap as _0x75dd43,addMarginStylesRules as _0x59cc7c,addPaddingStylesRules as _0x1bc1a3}from'@ckeditor/ckeditor5-engine';import{calculate as _0x7c37f6,compare as _0xc78690}from'specificity';function f(_0x1e4310){const _0x2e3d2a=[];let _0x8ec016='',_0x235e19=0x0;for(;_0x235e19<_0x1e4310['length'];){const _0x51ac69=_0x1e4310[_0x235e19];if('('===_0x51ac69){const _0x483ea4=y(_0x1e4310,_0x235e19+0x1);if(-0x1===_0x483ea4)return[];_0x8ec016+=_0x1e4310['slice'](_0x235e19,_0x483ea4+0x1),_0x235e19=_0x483ea4+0x1;}else','!==_0x51ac69||_0x8ec016['endsWith']('\x5c')?(_0x8ec016+=_0x51ac69,_0x235e19++):(_0x2e3d2a['push'](_0x8ec016['trim']()),_0x8ec016='',_0x235e19++);}return _0x8ec016['trim']()&&_0x2e3d2a['push'](_0x8ec016['trim']()),_0x2e3d2a['filter'](Boolean);}function y(_0xb0eef9,_0x13d171){let _0x13a8c5=0x1;for(let _0x4f4fdd=_0x13d171;_0x4f4fdd<_0xb0eef9['length'];_0x4f4fdd++){const _0x408329=_0xb0eef9[_0x4f4fdd];if('('===_0x408329)_0x13a8c5++;else{if(')'===_0x408329&&(_0x13a8c5--,0x0===_0x13a8c5))return _0x4f4fdd;}}return-0x1;}function d(_0x4191ff){return _0x4191ff['replace'](/!\s*important/i,'')['trim']();}function w(_0x18fcb7){const _0x246ca7=new Map();for(const {stylesMap:_0x328622,flatSelector:_0x2890b7}of _0x18fcb7){if(':root'!==_0x2890b7)continue;const _0x155ac4=p(_0x246ca7['get']['bind'](_0x246ca7),_0x328622);for(const [_0x5f598e,_0x208304]of _0x155ac4)_0x246ca7['set'](_0x5f598e,_0x208304);}return _0x246ca7;}function p(_0x597070,_0x5c5bd4){const _0x15f2d5=new Map(),_0x583b19=_0x480fa5=>_0x15f2d5['has'](_0x480fa5)?_0x15f2d5['get'](_0x480fa5):_0x597070(_0x480fa5);for(const [_0x48b595,_0x3aa946]of _0x5c5bd4['getStylesEntries']())if(_0x3aa946&&_0x48b595['startsWith']('--')){const _0x1e401c=m(_0x583b19,_0x3aa946);_0x15f2d5['set'](_0x48b595,_0x1e401c),_0x5c5bd4['remove'](_0x48b595);}for(const [_0x367ce9,_0x299e85]of _0x5c5bd4['getStylesEntries']())if(_0x299e85){const _0x576fab=m(_0x583b19,_0x299e85);_0x5c5bd4['set'](_0x367ce9,_0x576fab);}return _0x15f2d5;}function m(_0x51eed4,_0x5206fa){return function(_0x5d3e0d,_0x275749){let _0xee29d0='',_0x30ae73=0x0;for(;_0x30ae73<_0x5d3e0d['length'];){const _0x370d61=_0x5d3e0d['indexOf']('var(',_0x30ae73);if(-0x1===_0x370d61){_0xee29d0+=_0x5d3e0d['slice'](_0x30ae73);break;}_0xee29d0+=_0x5d3e0d['slice'](_0x30ae73,_0x370d61);const _0x331fa1=_0x370d61+0x4,_0x20e042=y(_0x5d3e0d,_0x331fa1);_0xee29d0+=_0x275749(_0x5d3e0d['substring'](_0x331fa1,_0x20e042)),_0x30ae73=_0x20e042+0x1;}return _0xee29d0;}(_0x5206fa,_0x17ba5c=>{const [_0x4f9d7b,_0x1a6032]=f(_0x17ba5c),_0x22a8a3=_0x51eed4(_0x4f9d7b);return void 0x0!==_0x22a8a3?_0x22a8a3:_0x1a6032?m(_0x51eed4,_0x1a6032):'var('+_0x4f9d7b+')';});}async function h(_0x64a28f){const _0x4d72b5=[await _0x2ccb12(_0x64a28f['stylesheets']),_0x64a28f['inlineCss']]['filter'](_0x44a1e7=>_0x44a1e7&&_0x44a1e7['length'])['join']('\x0a'),_0x1ff8f9=await async function(_0xa2778a,_0x990161){const _0x2b3429=new CSSStyleSheet();return await _0x2b3429['replace'](_0x990161),S(Array['from'](_0x2b3429['cssRules'])['filter'](_0x400ae3=>_0x400ae3 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x2f5578,contentCssText:_0x4b0c15})=>{const _0x2bd669=f(_0x2f5578),_0x211ff0=new _0x75dd43(_0xa2778a)['setTo'](_0x4b0c15);return _0x2bd669['map'](_0x38da9c=>{const _0x4d5cbb=function(_0x20f5b6){const _0x1c5db7=':where(';let _0x1dbe87=_0x20f5b6,_0x467845=0x0;for(let _0x228bb4=0x0;_0x228bb4<0x64;_0x228bb4++){const _0x467f9e=_0x1dbe87['indexOf'](_0x1c5db7,_0x467845);if(-0x1===_0x467f9e)break;let _0x150bc8=0x0;for(let _0x80713b=0x0;_0x80713b<_0x467f9e;_0x80713b++)'('===_0x1dbe87[_0x80713b]?_0x150bc8++:')'===_0x1dbe87[_0x80713b]&&_0x150bc8--;if(_0x150bc8>0x0){_0x467845=_0x467f9e+0x7;continue;}let _0x1ad261=-0x1;for(let _0xaeb61c=_0x467f9e+0x7,_0x572902=0x1;_0xaeb61c<_0x1dbe87['length'];_0xaeb61c++)if('('===_0x1dbe87[_0xaeb61c]?_0x572902++:')'===_0x1dbe87[_0xaeb61c]&&_0x572902--,!_0x572902){_0x1ad261=_0xaeb61c;break;}-0x1!==_0x1ad261?(_0x1dbe87=_0x1dbe87['slice'](0x0,_0x467f9e)+_0x1dbe87['slice'](_0x1ad261+0x1),_0x467845=_0x467f9e):_0x467845=_0x467f9e+0x7;}return _0x1dbe87['replace'](/\s+/g,'\x20')['trim']();}(_0x38da9c);return{'stylesMap':_0x211ff0,'flatSelector':_0x38da9c,'specificity':_0x4d5cbb?_0x7c37f6(_0x4d5cbb)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0]};});})['sort']((_0x45d66d,_0x401314)=>_0xc78690(_0x45d66d['specificity'],_0x401314['specificity']));}(_0x64a28f['stylesProcessor'],_0x4d72b5);return{'parsedCssRules':_0x1ff8f9,'rootCssVariables':w(_0x1ff8f9)};}function S(_0x50f246,_0x48d462=''){return _0x50f246['flatMap'](_0x762f59=>{const {selectorText:_0x45692b,cssText:_0x30a809,cssRules:_0x2b1a0c}=_0x762f59;if(!_0x45692b)return[];const _0xc6e5c5=_0x45692b['replace'](/&/g,_0x48d462);let _0x13bf4a=_0x30a809['replace'](_0x45692b,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x2b1a0c||!_0x2b1a0c['length'])return[{'selectorText':_0xc6e5c5,'contentCssText':_0x13bf4a}];for(const _0x197930 of _0x2b1a0c)_0x13bf4a=_0x13bf4a['replace'](_0x197930['cssText'],'')['trim']();return[{'selectorText':_0xc6e5c5,'contentCssText':_0x13bf4a},...S(Array['from'](_0x2b1a0c),_0xc6e5c5)];});}function L(_0x278cad,_0x273d85){const _0x24bce3=new _0x75dd43(_0x278cad);for(const _0x4a9f09 of _0x273d85){let _0x11899f=null;if(_0x11899f='string'==typeof _0x4a9f09?new _0x75dd43(_0x278cad)['setTo'](_0x4a9f09):_0x4a9f09,_0x11899f){for(const [_0x1d3d05,_0x16cea]of _0x11899f['getStylesEntries']())_0x24bce3['set'](_0x1d3d05,_0x16cea);}}return _0x24bce3;}var g=class extends _0x385300{['_stylesProcessor'];constructor(_0x54af92){super(_0x54af92),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x59cc7c(this['_stylesProcessor']),_0x1bc1a3(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x28b67d){const _0x2e9114=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x261872}=this['editor']['locale'],{rootName:_0x1d9296='main',dataControllerDowncastOptions:_0x517908={},transformations:_0x560625=_0x2e9114['transformations']||[]}=_0x28b67d||{};this['isBusy']=!0x0,this['refresh']();const _0x5e2928=this['_getRootDataHTMLFragment'](_0x1d9296,_0x517908),_0x407bb3=_0x311a2e(_0x5e2928['ownerDocument'],'div',{'dir':_0x261872,'class':'ck-content'},[_0x5e2928]);return this['_collectAndApplyStyles'](_0x560625,_0x407bb3)['then'](()=>{const _0x4d5c07=function(_0x1657b1){const _0x1f5efc=_0x1657b1['ownerDocument']['createDocumentFragment']();for(;_0x1657b1['firstChild'];)_0x1f5efc['appendChild'](_0x1657b1['firstChild']);return _0x1f5efc;}(_0x407bb3),_0x2a659c=_0x407bb3['getAttribute']('style');if(_0x2a659c)for(const _0x4f20d7 of _0x4d5c07['children']){const _0x2889e4=_0x4f20d7['getAttribute']('style'),_0x3c5c4a=L(this['_stylesProcessor'],[_0x2a659c,_0x2889e4]);_0x4f20d7['setAttribute']('style',x(_0x3c5c4a));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x4d5c07);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x266273,_0x485c7d){const {data:_0x53f784,model:_0x18bc85}=this['editor'],_0x5d86e6=_0x18bc85['document']['getRoot'](_0x266273),_0x1fac49=_0x53f784['toView'](_0x5d86e6,_0x485c7d);return _0x53f784['htmlProcessor']['domConverter']['viewToDom'](_0x1fac49);}async['_collectAndApplyStyles'](_0x33c1fa,_0x59a9cf){const {stylesheets:_0x12043e,inlineCss:_0x430c25,stripCssClasses:_0x156ef9}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x34166d,rootCssVariables:_0x3f21ba}=await h({'stylesheets':_0x12043e||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x430c25}),_0x1b653f=[];this['_processElementTree']({'transformations':_0x33c1fa,'parsedCssRules':_0x34166d,'element':_0x59a9cf,'stripCssClasses':_0x156ef9,'parentCSSVariablesLookup':_0x3f21ba['get']['bind'](_0x3f21ba),'runAfterDocumentTransformation':_0x539ceb=>{_0x1b653f['unshift'](_0x539ceb);}});for(const _0x67b4d7 of _0x1b653f)_0x67b4d7();}['_processElementTree']({element:_0x1757ef,parsedCssRules:_0x313cb3,parentCSSVariablesLookup:_0x2f8e56,runAfterDocumentTransformation:_0x419cc2,stripCssClasses:_0x4d4da4,transformations:_0x50a008}){const {stylesMap:_0x93d1cd,localCSSVariables:_0x15dc48}=function(_0x3ad29d){const _0x41f031=_0x3ad29d['element']['getAttribute']('style')||'',_0x401ef8=_0x3ad29d['parsedCssRules']['filter'](_0x2e018b=>_0x3ad29d['element']['matches'](_0x2e018b['flatSelector']))['map'](_0x320f81=>_0x320f81['stylesMap']),_0x4b8cbc=L(_0x3ad29d['stylesProcessor'],[..._0x401ef8,_0x41f031]);return{'localCSSVariables':p(_0x3ad29d['fallbackCSSVariablesLookup'],_0x4b8cbc),'stylesMap':_0x4b8cbc};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x2f8e56,'parsedCssRules':_0x313cb3,'element':_0x1757ef}),_0x5a1083=[];for(const _0x5afb71 of _0x50a008){const _0xaf3a83=_0x5afb71(_0x1757ef,_0x93d1cd,{'runAfterDocumentTransformation':_0x419cc2,'runAfterChildrenTransformation':_0x29165a=>{_0x5a1083['unshift'](_0x29165a);}});_0xaf3a83&&_0xaf3a83 instanceof HTMLElement&&(_0x1757ef=_0xaf3a83);}_0x93d1cd['size']?_0x1757ef['setAttribute']('style',x(_0x93d1cd)):_0x1757ef['removeAttribute']('style');const _0x1e0fff=_0x579e2f=>_0x15dc48['has'](_0x579e2f)?_0x15dc48['get'](_0x579e2f):_0x2f8e56(_0x579e2f);for(const _0x44bdff of _0x1757ef['children'])_0x44bdff instanceof HTMLElement&&this['_processElementTree']({'element':_0x44bdff,'parsedCssRules':_0x313cb3,'stripCssClasses':_0x4d4da4,'transformations':_0x50a008,'parentCSSVariablesLookup':_0x1e0fff,'runAfterDocumentTransformation':_0x419cc2});_0x4d4da4&&_0x1757ef['removeAttribute']('class');for(const _0xbc98e3 of _0x5a1083)_0xbc98e3();}};function x(_0x3abad6){return _0x3abad6['getStylesEntries']()['map'](_0x299c1d=>_0x299c1d['join'](':'))['join'](';')+';';}var C=class extends _0x1a3099{static get['pluginName'](){return'ExportInlineStylesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['editor']['config']['define']('exportInlineStyles',{}),this['editor']['commands']['add']('exportInlineStyles',new g(this['editor']));}['afterInit'](){!async function(_0x3e4938){const _0x2567dc='DUA610emL4Q2kjVIvGMHgWT3uySnzPEw79oZJiCrbstcXKq85NhdfaFRxBlpOY',_0x12db50=0x78e58,_0x2f8461=window['Date']['now'](),_0x4e7c7a=_0x3e4938['editor'],_0x1d85cc=new window['Promise'](_0x15dd32=>{_0x4e7c7a['once']('ready',_0x15dd32);}),_0x3698bf={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x568fd7=_0x4e7c7a['config']['get']('licenseKey');async function _0x4835ac(){let _0x25e709,_0x1b900e=null,_0x27e700=null;try{return'GPL'==_0x568fd7?'NotAllowed':(_0x25e709=_0x26bbd2(),_0x25e709?(_0x25e709['usageEndpoint']&&(_0x27e700=_0x3f8d01(_0x25e709['usageEndpoint'],_0x25e709['jti'])),await _0x3794dd()?_0x445250()?_0x5d0525()?'Expired':_0x1bd9c3()?('evaluation'==_0x25e709['licenseType']&&(_0x1b900e=_0x518ea9('EvaluationLimit')),await _0xa44d30()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5d0525(){const _0x87dc15=['evaluation','trial']['includes'](_0x25e709['licenseType'])?_0x2f8461/0x3e8:0xe10*_0x12db50;return _0x25e709['exp']<_0x87dc15;}function _0x445250(){const _0x4119df=_0x25e709['features'];return!!_0x4119df&&(!!_0x4119df['includes']('*')||!!_0x4119df['includes']('EIS'));}function _0x1bd9c3(){const _0x368aba=_0x25e709['licensedHosts'];if(!_0x368aba||0x0==_0x368aba['length'])return!0x0;const {hostname:_0x5a8ae4}=new URL(window['location']['href']);if(_0x368aba['includes'](_0x5a8ae4))return!0x0;const _0x1e8bf4=_0x5a8ae4['split']('.');return _0x368aba['filter'](_0x2cb1d7=>_0x2cb1d7['includes']('*'))['map'](_0x35d59a=>_0x35d59a['split']('.'))['filter'](_0x31dc02=>_0x31dc02['length']<=_0x1e8bf4['length'])['map'](_0x52aae4=>Array(_0x1e8bf4['length']-_0x52aae4['length'])['fill']('*'===_0x52aae4[0x0]?'*':'')['concat'](_0x52aae4))['some'](_0x292781=>_0x1e8bf4['every']((_0x5d8387,_0x4ebaa3)=>_0x292781[_0x4ebaa3]===_0x5d8387||'*'===_0x292781[_0x4ebaa3]));}function _0xa44d30(){return _0x1b900e&&_0x27e700?new window['Promise']((_0x4ce673,_0x87ffef)=>{_0x1b900e['then'](_0x4ce673,_0x87ffef),_0x27e700['then'](_0x4d6e88=>{'Valid'!=_0x4d6e88&&_0x4ce673(_0x4d6e88);},_0x87ffef);}):_0x1b900e||_0x27e700||'Valid';}}function _0x3f8d01(_0x1a4fac,_0x36ba89){return new window['Promise'](_0x345bfe=>{if(_0x23df7f())return _0x345bfe('Valid');_0x4e54d2(),_0x4e7c7a['decorate']('_sendUsageRequest');let _0x252817=!0x1;const _0x2c32f9=_0x378dbe();function _0x5608f1(_0xf4e981){return!!_0xf4e981&&('object'==typeof _0xf4e981||'function'==typeof _0xf4e981)&&'function'==typeof _0xf4e981['then']&&'function'==typeof _0xf4e981['catch'];}function _0x5d0203(_0x2ec6df){_0x23983f(_0x2ec6df)['then'](_0x303f8c=>_0x303f8c&&'ok'==_0x303f8c['status']?_0x55f0ff(_0x334c7e(_0x2c32f9+_0x36ba89))!=_0x303f8c['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x38fe43=>(_0xa9aceb(),_0x38fe43),()=>{const _0x51b3c4=_0x473c69();return null==_0x51b3c4?(_0xa9aceb(),'Valid'):_0x2f8461-_0x51b3c4>0x240c8400?'UsageLimit':'Valid';})['then'](_0x345bfe)['catch'](()=>{_0x345bfe('UsageLimit');});const _0x17f327=0x36ee80;function _0xa9aceb(){const _0x5747cf='llct-'+_0x55f0ff(_0x334c7e(_0x1a4fac)),_0x1e1116=_0x95f9a(_0x55f0ff(window['Math']['ceil'](_0x2f8461/_0x17f327)));window['localStorage']['setItem'](_0x5747cf,_0x1e1116);}function _0x473c69(){const _0x3b4f58='llct-'+_0x55f0ff(_0x334c7e(_0x1a4fac)),_0x501adc=window['localStorage']['getItem'](_0x3b4f58);return _0x501adc?window['parseInt'](_0x95f9a(_0x501adc),0x10)*_0x17f327:null;}function _0x23983f(_0x633d99){return new window['Promise']((_0x244e39,_0xf96336)=>{_0x633d99['then'](_0x244e39,_0xf96336),window['setTimeout'](_0xf96336,0x1d4c0);});}}_0x4e7c7a['on']('_sendUsageRequest',(_0x9719c8,_0x4383cb)=>{if(_0x4383cb[0x0]!=_0x1a4fac)return _0x345bfe('UsageLimit');_0x4383cb[0x1]={..._0x4383cb[0x1],'requestId':_0x2c32f9};},{'priority':'high'}),_0x4e7c7a['on']('_sendUsageRequest',_0xa0eb25=>{_0x5608f1(_0xa0eb25['return'])&&(_0x252817=!0x0,_0x5d0203(_0xa0eb25['return']));},{'priority':'low'}),_0x1d85cc['then'](()=>{_0x252817||_0x345bfe('UsageLimit');});});function _0x23df7f(){return'auto'==_0x4e7c7a['editing']['view']['_overlayModeHint'];}function _0x4e54d2(){_0x4e7c7a['editing']['view']['_overlayModeHint']='auto';}}function _0x518ea9(_0x8fb47e){const _0x2615e4=[new window['Promise'](_0x3b6696=>setTimeout(_0x3b6696,0x93ecc)),_0x1d85cc['then'](()=>new window['Promise'](_0x30dac6=>{let _0x365cbb=0x0;_0x4e7c7a['model']['on']('applyOperation',(_0x530071,_0x33bcdc)=>{_0x33bcdc[0x0]['isDocumentOperation']&&_0x365cbb++,0x5e8==_0x365cbb&&(_0x30dac6(),_0x530071['off']());});}))];return window['Promise']['race'](_0x2615e4)['then'](()=>_0x8fb47e);}async function _0x2be8f4(){await _0x1d85cc;const _0x238686=_0x4e7c7a['commands']['get']('exportInlineStyles');_0x238686&&_0x238686['on']('execute',_0x41791a=>{_0x41791a['stop']();},{'priority':'highest'}),_0x4e7c7a['model']['change']=_0x36b832,_0x4e7c7a['model']['enqueueChange']=_0x36b832,_0x4e7c7a['enableReadOnlyMode']('model');}function _0x35fca8(_0x3eedee){const _0x12cb37=_0x42d63c();_0x4e7c7a[_0x12cb37]='exportInlineStylesLicenseKey'+_0x3eedee,'Valid'!=_0x3eedee&&_0x2be8f4();}function _0x42d63c(){const _0x482ae5=window['String'](window['performance']['now']())['replace']('.','');let _0x51ff0b='D';for(let _0x3b9eed=0x0;_0x3b9eed<_0x482ae5['length'];_0x3b9eed+=0x2){let _0x3bc593=window['parseInt'](_0x482ae5['substring'](_0x3b9eed,_0x3b9eed+0x2));_0x3bc593>=0x3e&&(_0x3bc593-=0x3e),_0x51ff0b+=_0x2567dc[_0x3bc593];}return _0x51ff0b;}function _0x26bbd2(){const _0x478345=_0x568fd7['split']('.');if(0x3!=_0x478345['length'])return null;return _0x2f41ad(_0x478345[0x1]);function _0x2f41ad(_0x8e82b0){const _0x49b08b=_0x3d04e2(_0x8e82b0);return _0x49b08b&&_0x5f5c4d()?_0x49b08b:null;function _0x5f5c4d(){const _0x5780ee=_0x49b08b['jti'],_0x21b3e8=window['parseInt'](_0x5780ee['substring'](_0x5780ee['length']-0x8),0x10),_0x3cfd76={..._0x49b08b,'jti':_0x5780ee['substring'](0x0,_0x5780ee['length']-0x8)};return delete _0x3cfd76['vc'],_0x334c7e(_0x3cfd76)==_0x21b3e8;}}}async function _0x3794dd(){let _0x17ed85=!0x0;try{const [_0x59e27e,_0x26ec89,_0x120d6c]=_0x568fd7['split']('.');return _0x1635ce(_0x59e27e),await _0x3aad89(_0x59e27e,_0x26ec89,_0x120d6c),_0x17ed85;}catch{return!0x1;}function _0x1635ce(_0x41c428){const _0x28fff2=_0x3d04e2(_0x41c428);_0x28fff2&&'ES256'==_0x28fff2['alg']||(_0x17ed85=!0x1);}async function _0x3aad89(_0x8a21d1,_0x392919,_0x5cade6){const _0x4fd4ee=window['Uint8Array']['from'](_0x471f5f(_0x5cade6),_0xba188f=>_0xba188f['charCodeAt'](0x0)),_0x2849f4=new window['TextEncoder']()['encode'](_0x8a21d1+'.'+_0x392919),_0x1b98fe=window['crypto']['subtle'];if(!_0x1b98fe)return;const _0x183997=await _0x1b98fe['importKey']('jwk',_0x3698bf,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1b98fe['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x183997,_0x4fd4ee,_0x2849f4)||(_0x17ed85=!0x1);}}function _0x3d04e2(_0x474e29){return _0x474e29['startsWith']('ey')?JSON['parse'](_0x471f5f(_0x474e29)):null;}function _0x471f5f(_0x5e7d43){return window['atob'](_0x5e7d43['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x334c7e(_0x4917e4){let _0x3d269e=0x1505;function _0x55c108(_0x4bafdf){for(let _0xb080b0=0x0;_0xb080b0<_0x4bafdf['length'];_0xb080b0++){const _0x2ed5a9=_0x4bafdf['charCodeAt'](_0xb080b0);_0x3d269e=(_0x3d269e<<0x5)+_0x3d269e+_0x2ed5a9,_0x3d269e&=_0x3d269e;}}function _0x6801c3(_0x59870b){Array['isArray'](_0x59870b)?_0x59870b['forEach'](_0x6801c3):_0x59870b&&'object'==typeof _0x59870b?Object['entries'](_0x59870b)['sort']()['forEach'](([_0x39a196,_0x192810])=>{_0x55c108(_0x39a196),_0x6801c3(_0x192810);}):_0x55c108(window['String'](_0x59870b));}return _0x6801c3(_0x4917e4),_0x3d269e>>>0x0;}function _0x55f0ff(_0x103a4a){return _0x103a4a['toString'](0x10)['padStart'](0x8,'0');}function _0x95f9a(_0x1f510a){return _0x1f510a['split']('')['reverse']()['join']('');}function _0x36b832(){}_0x35fca8(await _0x4835ac());}(this);}},I=class extends _0x1a3099{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3f3a61=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1ffbef;for(const _0x4b057f in _0x3f3a61){const _0x100094=_0x4b057f,_0x10c368=_0x3f3a61[_0x100094];if('exportInlineStylesLicenseKeyValid'==_0x10c368||'exportInlineStylesLicenseKeyInvalid'==_0x10c368||'exportInlineStylesLicenseKeyExpired'==_0x10c368||'exportInlineStylesLicenseKeyDomainLimit'==_0x10c368||'exportInlineStylesLicenseKeyNotAllowed'==_0x10c368||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x10c368||'exportInlineStylesLicenseKeyUsageLimit'==_0x10c368){delete _0x3f3a61[_0x100094],_0x1ffbef=_0x10c368,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x1ffbef&&_0x3f3a61['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x1ffbef&&_0x3f3a61['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x1ffbef&&_0x3f3a61['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x1ffbef&&_0x3f3a61['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x1ffbef&&_0x3f3a61['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x1ffbef&&_0x3f3a61['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};export{I as ExportInlineStyles,g as ExportInlineStylesCommand,C as ExportInlineStylesEditing,d as dropImportantStyleSuffix};
23
+ import{Command as _0x44afad,Plugin as _0x160515}from'@ckeditor/ckeditor5-core';import{collectStylesheets as _0x11948e,createElement as _0x71c87,uid as _0x282308}from'@ckeditor/ckeditor5-utils';import{StylesMap as _0x35db83,addMarginStylesRules as _0x321590,addPaddingStylesRules as _0x57f886}from'@ckeditor/ckeditor5-engine';import{calculate as _0x37d841,compare as _0x1ca4bd}from'specificity';function f(_0x393a93){const _0xa21031=[];let _0x359912='',_0x3c0020=0x0;for(;_0x3c0020<_0x393a93['length'];){const _0x290f80=_0x393a93[_0x3c0020];if('('===_0x290f80){const _0x53e47c=y(_0x393a93,_0x3c0020+0x1);if(-0x1===_0x53e47c)return[];_0x359912+=_0x393a93['slice'](_0x3c0020,_0x53e47c+0x1),_0x3c0020=_0x53e47c+0x1;}else','!==_0x290f80||_0x359912['endsWith']('\x5c')?(_0x359912+=_0x290f80,_0x3c0020++):(_0xa21031['push'](_0x359912['trim']()),_0x359912='',_0x3c0020++);}return _0x359912['trim']()&&_0xa21031['push'](_0x359912['trim']()),_0xa21031['filter'](Boolean);}function y(_0x33f3a4,_0x17e1fc){let _0x2de8e3=0x1;for(let _0x52dfa7=_0x17e1fc;_0x52dfa7<_0x33f3a4['length'];_0x52dfa7++){const _0x3e1425=_0x33f3a4[_0x52dfa7];if('('===_0x3e1425)_0x2de8e3++;else{if(')'===_0x3e1425&&(_0x2de8e3--,0x0===_0x2de8e3))return _0x52dfa7;}}return-0x1;}function d(_0x235d13){return _0x235d13['replace'](/!\s*important/i,'')['trim']();}function w(_0x476c02){const _0x43256b=new Map();for(const {stylesMap:_0x11fb69,flatSelector:_0x3070ae}of _0x476c02){if(':root'!==_0x3070ae)continue;const _0x1580f0=p(_0x43256b['get']['bind'](_0x43256b),_0x11fb69);for(const [_0x535b8a,_0xf5d3b8]of _0x1580f0)_0x43256b['set'](_0x535b8a,_0xf5d3b8);}return _0x43256b;}function p(_0xbd6300,_0x335bb0){const _0x532eca=new Map(),_0x58a3e9=_0x5cf9fe=>_0x532eca['has'](_0x5cf9fe)?_0x532eca['get'](_0x5cf9fe):_0xbd6300(_0x5cf9fe);for(const [_0x29094f,_0x2f15f5]of _0x335bb0['getStylesEntries']())if(_0x2f15f5&&_0x29094f['startsWith']('--')){const _0x14a96a=m(_0x58a3e9,_0x2f15f5);_0x532eca['set'](_0x29094f,_0x14a96a),_0x335bb0['remove'](_0x29094f);}for(const [_0x1fbc47,_0x4f8440]of _0x335bb0['getStylesEntries']())if(_0x4f8440){const _0x3559f6=m(_0x58a3e9,_0x4f8440);_0x335bb0['set'](_0x1fbc47,_0x3559f6);}return _0x532eca;}function m(_0x4d1597,_0x488a7b){return function(_0x3e3db2,_0x56817d){let _0x1c08c0='',_0x46316f=0x0;for(;_0x46316f<_0x3e3db2['length'];){const _0xd9d656=_0x3e3db2['indexOf']('var(',_0x46316f);if(-0x1===_0xd9d656){_0x1c08c0+=_0x3e3db2['slice'](_0x46316f);break;}_0x1c08c0+=_0x3e3db2['slice'](_0x46316f,_0xd9d656);const _0x327da8=_0xd9d656+0x4,_0x4710d2=y(_0x3e3db2,_0x327da8);_0x1c08c0+=_0x56817d(_0x3e3db2['substring'](_0x327da8,_0x4710d2)),_0x46316f=_0x4710d2+0x1;}return _0x1c08c0;}(_0x488a7b,_0x5efa03=>{const [_0x43eb14,_0x128a1c]=f(_0x5efa03),_0x1bd7b3=_0x4d1597(_0x43eb14);return void 0x0!==_0x1bd7b3?_0x1bd7b3:_0x128a1c?m(_0x4d1597,_0x128a1c):'var('+_0x43eb14+')';});}async function h(_0x22a157){const _0x3b997a=[await _0x11948e(_0x22a157['stylesheets']),_0x22a157['inlineCss']]['filter'](_0x48d3ea=>_0x48d3ea&&_0x48d3ea['length'])['join']('\x0a'),_0x27c046=await async function(_0x58e696,_0x55b830){const _0x138de4=new CSSStyleSheet();return await _0x138de4['replace'](_0x55b830),S(Array['from'](_0x138de4['cssRules'])['filter'](_0x59816d=>_0x59816d instanceof CSSStyleRule))['flatMap'](({selectorText:_0x8b36bb,contentCssText:_0x553800})=>{const _0xfdefa1=f(_0x8b36bb),_0xe2b9d5=new _0x35db83(_0x58e696)['setTo'](_0x553800);return _0xfdefa1['map'](_0x3113f9=>{const _0x3a279a=function(_0x2db671){const _0x2cd4e7=':where(';let _0x48949e=_0x2db671,_0x2d8f3f=0x0;for(let _0x5980fb=0x0;_0x5980fb<0x64;_0x5980fb++){const _0x48f910=_0x48949e['indexOf'](_0x2cd4e7,_0x2d8f3f);if(-0x1===_0x48f910)break;let _0x1ac409=0x0;for(let _0x19fca8=0x0;_0x19fca8<_0x48f910;_0x19fca8++)'('===_0x48949e[_0x19fca8]?_0x1ac409++:')'===_0x48949e[_0x19fca8]&&_0x1ac409--;if(_0x1ac409>0x0){_0x2d8f3f=_0x48f910+0x7;continue;}let _0x3f8a33=-0x1;for(let _0x3ef5bc=_0x48f910+0x7,_0x22cc8e=0x1;_0x3ef5bc<_0x48949e['length'];_0x3ef5bc++)if('('===_0x48949e[_0x3ef5bc]?_0x22cc8e++:')'===_0x48949e[_0x3ef5bc]&&_0x22cc8e--,!_0x22cc8e){_0x3f8a33=_0x3ef5bc;break;}-0x1!==_0x3f8a33?(_0x48949e=_0x48949e['slice'](0x0,_0x48f910)+_0x48949e['slice'](_0x3f8a33+0x1),_0x2d8f3f=_0x48f910):_0x2d8f3f=_0x48f910+0x7;}return _0x48949e['replace'](/\s+/g,'\x20')['trim']();}(_0x3113f9);return{'stylesMap':_0xe2b9d5,'flatSelector':_0x3113f9,'specificity':_0x3a279a?_0x37d841(_0x3a279a)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0]};});})['sort']((_0x9144b1,_0x18305f)=>_0x1ca4bd(_0x9144b1['specificity'],_0x18305f['specificity']));}(_0x22a157['stylesProcessor'],_0x3b997a);return{'parsedCssRules':_0x27c046,'rootCssVariables':w(_0x27c046)};}function S(_0x163a57,_0x5a750a=''){return _0x163a57['flatMap'](_0x841097=>{const {selectorText:_0x50ef87,cssText:_0x3c6ede,cssRules:_0x4d65e3}=_0x841097;if(!_0x50ef87)return[];const _0x4d487c=_0x50ef87['replace'](/&/g,_0x5a750a);let _0x1cca98=_0x3c6ede['replace'](_0x50ef87,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x4d65e3||!_0x4d65e3['length'])return[{'selectorText':_0x4d487c,'contentCssText':_0x1cca98}];for(const _0x3097d0 of _0x4d65e3)_0x1cca98=_0x1cca98['replace'](_0x3097d0['cssText'],'')['trim']();return[{'selectorText':_0x4d487c,'contentCssText':_0x1cca98},...S(Array['from'](_0x4d65e3),_0x4d487c)];});}function L(_0x2ab053,_0x2f845a){const _0x508f32=new _0x35db83(_0x2ab053);for(const _0x1fe68b of _0x2f845a){let _0x218c84=null;if(_0x218c84='string'==typeof _0x1fe68b?new _0x35db83(_0x2ab053)['setTo'](_0x1fe68b):_0x1fe68b,_0x218c84){for(const [_0x5ef23a,_0x44a344]of _0x218c84['getStylesEntries']())_0x508f32['set'](_0x5ef23a,_0x44a344);}}return _0x508f32;}var g=class extends _0x44afad{['_stylesProcessor'];constructor(_0x513dfd){super(_0x513dfd),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x321590(this['_stylesProcessor']),_0x57f886(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x118dd0){const _0x3eb688=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x3f2352}=this['editor']['locale'],{rootName:_0x3a4f78='main',dataControllerDowncastOptions:_0x442436={},transformations:_0xca4ca6=_0x3eb688['transformations']||[]}=_0x118dd0||{};this['isBusy']=!0x0,this['refresh']();const _0x35031b=this['_getRootDataHTMLFragment'](_0x3a4f78,_0x442436),_0x4fd5e5=_0x71c87(_0x35031b['ownerDocument'],'div',{'dir':_0x3f2352,'class':'ck-content'},[_0x35031b]);return this['_collectAndApplyStyles'](_0xca4ca6,_0x4fd5e5)['then'](()=>{const _0x3876d2=function(_0x17e93d){const _0x432395=_0x17e93d['ownerDocument']['createDocumentFragment']();for(;_0x17e93d['firstChild'];)_0x432395['appendChild'](_0x17e93d['firstChild']);return _0x432395;}(_0x4fd5e5),_0x3c68c6=_0x4fd5e5['getAttribute']('style');if(_0x3c68c6)for(const _0x132c9d of _0x3876d2['children']){const _0x25efc8=_0x132c9d['getAttribute']('style'),_0x3287f9=L(this['_stylesProcessor'],[_0x3c68c6,_0x25efc8]);_0x132c9d['setAttribute']('style',x(_0x3287f9));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x3876d2);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0xff9174,_0x29b0c5){const {data:_0x39b49c,model:_0xea0405}=this['editor'],_0x215f58=_0xea0405['document']['getRoot'](_0xff9174),_0x13455c=_0x39b49c['toView'](_0x215f58,_0x29b0c5);return _0x39b49c['htmlProcessor']['domConverter']['viewToDom'](_0x13455c);}async['_collectAndApplyStyles'](_0x9d18b3,_0x5e7070){const {stylesheets:_0x583a9f,inlineCss:_0x3b6b00,stripCssClasses:_0x8842dd}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x1a2c9b,rootCssVariables:_0x57123e}=await h({'stylesheets':_0x583a9f||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x3b6b00}),_0x155e70=[];this['_processElementTree']({'transformations':_0x9d18b3,'parsedCssRules':_0x1a2c9b,'element':_0x5e7070,'stripCssClasses':_0x8842dd,'parentCSSVariablesLookup':_0x57123e['get']['bind'](_0x57123e),'runAfterDocumentTransformation':_0x1b6d6c=>{_0x155e70['unshift'](_0x1b6d6c);}});for(const _0x2f0a93 of _0x155e70)_0x2f0a93();}['_processElementTree']({element:_0xd33d9f,parsedCssRules:_0x434d1d,parentCSSVariablesLookup:_0x1d6f67,runAfterDocumentTransformation:_0x5c30a6,stripCssClasses:_0x562295,transformations:_0x3deb2b}){const {stylesMap:_0x5d524f,localCSSVariables:_0x5502c0}=function(_0xa7cdea){const _0x29e815=_0xa7cdea['element']['getAttribute']('style')||'',_0x2d7e5a=_0xa7cdea['parsedCssRules']['filter'](_0x2c2a6a=>_0xa7cdea['element']['matches'](_0x2c2a6a['flatSelector']))['map'](_0x340bd5=>_0x340bd5['stylesMap']),_0x41e0bd=L(_0xa7cdea['stylesProcessor'],[..._0x2d7e5a,_0x29e815]);return{'localCSSVariables':p(_0xa7cdea['fallbackCSSVariablesLookup'],_0x41e0bd),'stylesMap':_0x41e0bd};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x1d6f67,'parsedCssRules':_0x434d1d,'element':_0xd33d9f}),_0x2cacb6=[];for(const _0x52511e of _0x3deb2b){const _0x285a76=_0x52511e(_0xd33d9f,_0x5d524f,{'runAfterDocumentTransformation':_0x5c30a6,'runAfterChildrenTransformation':_0x1ae2ed=>{_0x2cacb6['unshift'](_0x1ae2ed);}});_0x285a76&&_0x285a76 instanceof HTMLElement&&(_0xd33d9f=_0x285a76);}_0x5d524f['size']?_0xd33d9f['setAttribute']('style',x(_0x5d524f)):_0xd33d9f['removeAttribute']('style');const _0x3581ce=_0x1464d0=>_0x5502c0['has'](_0x1464d0)?_0x5502c0['get'](_0x1464d0):_0x1d6f67(_0x1464d0);for(const _0x159142 of _0xd33d9f['children'])_0x159142 instanceof HTMLElement&&this['_processElementTree']({'element':_0x159142,'parsedCssRules':_0x434d1d,'stripCssClasses':_0x562295,'transformations':_0x3deb2b,'parentCSSVariablesLookup':_0x3581ce,'runAfterDocumentTransformation':_0x5c30a6});_0x562295&&_0xd33d9f['removeAttribute']('class');for(const _0x599a30 of _0x2cacb6)_0x599a30();}};function x(_0x2986ff){return _0x2986ff['getStylesEntries']()['map'](_0x2f08d9=>_0x2f08d9['join'](':'))['join'](';')+';';}var C=class extends _0x160515{static get['pluginName'](){return'ExportInlineStylesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['editor']['config']['define']('exportInlineStyles',{}),this['editor']['commands']['add']('exportInlineStyles',new g(this['editor']));}['afterInit'](){!async function(_0x53f81a){const _0xd10b71='DUA610emL4Q2kjVIvGMHgWT3uySnzPEw79oZJiCrbstcXKq85NhdfaFRxBlpOY',_0x13c15a=0x78e70,_0xa4dde2=window['Date']['now'](),_0x2e9a26=_0x53f81a['editor'],_0x2cb6b7=new window['Promise'](_0x1862ae=>{_0x2e9a26['once']('ready',_0x1862ae);}),_0x12bdf0={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x13ca89=_0x2e9a26['config']['get']('licenseKey');async function _0x2a7cfc(){let _0x81a7e5,_0xe0385e=null,_0x213dfa=null;try{return'GPL'==_0x13ca89?'NotAllowed':(_0x81a7e5=_0x4634ae(),_0x81a7e5?(_0x81a7e5['usageEndpoint']&&(_0x213dfa=_0x488404(_0x81a7e5['usageEndpoint'],_0x81a7e5['jti'])),await _0x304de6()?_0xe7bc47()?_0x4becec()?'Expired':_0x427958()?('evaluation'==_0x81a7e5['licenseType']&&(_0xe0385e=_0xc92ffc('EvaluationLimit')),await _0x484c1a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4becec(){const _0x310f4b=['evaluation','trial']['includes'](_0x81a7e5['licenseType'])?_0xa4dde2/0x3e8:0xe10*_0x13c15a;return _0x81a7e5['exp']<_0x310f4b;}function _0xe7bc47(){const _0x6fd3ca=_0x81a7e5['features'];return!!_0x6fd3ca&&(!!_0x6fd3ca['includes']('*')||!!_0x6fd3ca['includes']('EIS'));}function _0x427958(){const _0x358760=_0x81a7e5['licensedHosts'];if(!_0x358760||0x0==_0x358760['length'])return!0x0;const {hostname:_0x256ab2}=new URL(window['location']['href']);if(_0x358760['includes'](_0x256ab2))return!0x0;const _0xa88276=_0x256ab2['split']('.');return _0x358760['filter'](_0x3619c0=>_0x3619c0['includes']('*'))['map'](_0x394644=>_0x394644['split']('.'))['filter'](_0x5b8ac1=>_0x5b8ac1['length']<=_0xa88276['length'])['map'](_0x115111=>Array(_0xa88276['length']-_0x115111['length'])['fill']('*'===_0x115111[0x0]?'*':'')['concat'](_0x115111))['some'](_0x1680a9=>_0xa88276['every']((_0x27f68c,_0x11bfb1)=>_0x1680a9[_0x11bfb1]===_0x27f68c||'*'===_0x1680a9[_0x11bfb1]));}function _0x484c1a(){return _0xe0385e&&_0x213dfa?new window['Promise']((_0x16c283,_0x2b1a9d)=>{_0xe0385e['then'](_0x16c283,_0x2b1a9d),_0x213dfa['then'](_0x4d5deb=>{'Valid'!=_0x4d5deb&&_0x16c283(_0x4d5deb);},_0x2b1a9d);}):_0xe0385e||_0x213dfa||'Valid';}}function _0x488404(_0x2334cf,_0x1cf182){return new window['Promise'](_0x5b518f=>{if(_0x24da97())return _0x5b518f('Valid');_0x48c873(),_0x2e9a26['decorate']('_sendUsageRequest');let _0x4324b=!0x1;const _0x5c90b5=_0x282308();function _0x424029(_0x1754a1){return!!_0x1754a1&&('object'==typeof _0x1754a1||'function'==typeof _0x1754a1)&&'function'==typeof _0x1754a1['then']&&'function'==typeof _0x1754a1['catch'];}function _0x297476(_0x3901a0){_0x145224(_0x3901a0)['then'](_0x39eb42=>_0x39eb42&&'ok'==_0x39eb42['status']?_0xc3531b(_0x5adb86(_0x5c90b5+_0x1cf182))!=_0x39eb42['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x371df1=>(_0x20c2ef(),_0x371df1),()=>{const _0x337d5d=_0x30a669();return null==_0x337d5d?(_0x20c2ef(),'Valid'):_0xa4dde2-_0x337d5d>0x240c8400?'UsageLimit':'Valid';})['then'](_0x5b518f)['catch'](()=>{_0x5b518f('UsageLimit');});const _0x1bbd9c=0x36ee80;function _0x20c2ef(){const _0x1a5daa='llct-'+_0xc3531b(_0x5adb86(_0x2334cf)),_0x3d984d=_0x4b7aea(_0xc3531b(window['Math']['ceil'](_0xa4dde2/_0x1bbd9c)));window['localStorage']['setItem'](_0x1a5daa,_0x3d984d);}function _0x30a669(){const _0x548d15='llct-'+_0xc3531b(_0x5adb86(_0x2334cf)),_0x48ea5d=window['localStorage']['getItem'](_0x548d15);return _0x48ea5d?window['parseInt'](_0x4b7aea(_0x48ea5d),0x10)*_0x1bbd9c:null;}function _0x145224(_0x5bd767){return new window['Promise']((_0x10dd07,_0x3af22d)=>{_0x5bd767['then'](_0x10dd07,_0x3af22d),window['setTimeout'](_0x3af22d,0x1d4c0);});}}_0x2e9a26['on']('_sendUsageRequest',(_0x1d3d4d,_0x5e6c4e)=>{if(_0x5e6c4e[0x0]!=_0x2334cf)return _0x5b518f('UsageLimit');_0x5e6c4e[0x1]={..._0x5e6c4e[0x1],'requestId':_0x5c90b5};},{'priority':'high'}),_0x2e9a26['on']('_sendUsageRequest',_0x457ac3=>{_0x424029(_0x457ac3['return'])&&(_0x4324b=!0x0,_0x297476(_0x457ac3['return']));},{'priority':'low'}),_0x2cb6b7['then'](()=>{_0x4324b||_0x5b518f('UsageLimit');});});function _0x24da97(){return'auto'==_0x2e9a26['editing']['view']['_overlayModeHint'];}function _0x48c873(){_0x2e9a26['editing']['view']['_overlayModeHint']='auto';}}function _0xc92ffc(_0x52e445){const _0x5dcb4c=[new window['Promise'](_0x126e04=>setTimeout(_0x126e04,0x93ecc)),_0x2cb6b7['then'](()=>new window['Promise'](_0x1156ea=>{let _0x12ca6d=0x0;_0x2e9a26['model']['on']('applyOperation',(_0x151996,_0x2cc581)=>{_0x2cc581[0x0]['isDocumentOperation']&&_0x12ca6d++,0x5e8==_0x12ca6d&&(_0x1156ea(),_0x151996['off']());});}))];return window['Promise']['race'](_0x5dcb4c)['then'](()=>_0x52e445);}async function _0x4a11d9(){await _0x2cb6b7;const _0x157072=_0x2e9a26['commands']['get']('exportInlineStyles');_0x157072&&_0x157072['on']('execute',_0x53226e=>{_0x53226e['stop']();},{'priority':'highest'}),_0x2e9a26['model']['change']=_0x36b90a,_0x2e9a26['model']['enqueueChange']=_0x36b90a,_0x2e9a26['enableReadOnlyMode']('model');}function _0xf94011(_0x20c721){const _0x33c201=_0xbf683a();_0x2e9a26[_0x33c201]='exportInlineStylesLicenseKey'+_0x20c721,'Valid'!=_0x20c721&&_0x4a11d9();}function _0xbf683a(){const _0x37258e=window['String'](window['performance']['now']())['replace']('.','');let _0x156850='D';for(let _0x49bf9b=0x0;_0x49bf9b<_0x37258e['length'];_0x49bf9b+=0x2){let _0x15b38e=window['parseInt'](_0x37258e['substring'](_0x49bf9b,_0x49bf9b+0x2));_0x15b38e>=0x3e&&(_0x15b38e-=0x3e),_0x156850+=_0xd10b71[_0x15b38e];}return _0x156850;}function _0x4634ae(){const _0x458489=_0x13ca89['split']('.');if(0x3!=_0x458489['length'])return null;return _0x7034bd(_0x458489[0x1]);function _0x7034bd(_0x24061a){const _0x1f22a0=_0x4883(_0x24061a);return _0x1f22a0&&_0xeead7e()?_0x1f22a0:null;function _0xeead7e(){const _0x1bbbfb=_0x1f22a0['jti'],_0x3fe5b9=window['parseInt'](_0x1bbbfb['substring'](_0x1bbbfb['length']-0x8),0x10),_0xbbb268={..._0x1f22a0,'jti':_0x1bbbfb['substring'](0x0,_0x1bbbfb['length']-0x8)};return delete _0xbbb268['vc'],_0x5adb86(_0xbbb268)==_0x3fe5b9;}}}async function _0x304de6(){let _0xc6851=!0x0;try{const [_0x3570a5,_0x395ddf,_0x297ff7]=_0x13ca89['split']('.');return _0x4cc0ae(_0x3570a5),await _0x2b9cd1(_0x3570a5,_0x395ddf,_0x297ff7),_0xc6851;}catch{return!0x1;}function _0x4cc0ae(_0x382a02){const _0x2c6394=_0x4883(_0x382a02);_0x2c6394&&'ES256'==_0x2c6394['alg']||(_0xc6851=!0x1);}async function _0x2b9cd1(_0x5e24be,_0x29e874,_0x4a0f70){const _0x925223=window['Uint8Array']['from'](_0x3a7d27(_0x4a0f70),_0x25a127=>_0x25a127['charCodeAt'](0x0)),_0x4cdec7=new window['TextEncoder']()['encode'](_0x5e24be+'.'+_0x29e874),_0x86edea=window['crypto']['subtle'];if(!_0x86edea)return;const _0x1b8a0e=await _0x86edea['importKey']('jwk',_0x12bdf0,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x86edea['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x1b8a0e,_0x925223,_0x4cdec7)||(_0xc6851=!0x1);}}function _0x4883(_0x221cc7){return _0x221cc7['startsWith']('ey')?JSON['parse'](_0x3a7d27(_0x221cc7)):null;}function _0x3a7d27(_0x42f9a9){return window['atob'](_0x42f9a9['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5adb86(_0x1503b1){let _0x21ee9b=0x1505;function _0x10233b(_0x1c2218){for(let _0x47951c=0x0;_0x47951c<_0x1c2218['length'];_0x47951c++){const _0x285aea=_0x1c2218['charCodeAt'](_0x47951c);_0x21ee9b=(_0x21ee9b<<0x5)+_0x21ee9b+_0x285aea,_0x21ee9b&=_0x21ee9b;}}function _0x344149(_0x345b62){Array['isArray'](_0x345b62)?_0x345b62['forEach'](_0x344149):_0x345b62&&'object'==typeof _0x345b62?Object['entries'](_0x345b62)['sort']()['forEach'](([_0x17f4e5,_0x70c876])=>{_0x10233b(_0x17f4e5),_0x344149(_0x70c876);}):_0x10233b(window['String'](_0x345b62));}return _0x344149(_0x1503b1),_0x21ee9b>>>0x0;}function _0xc3531b(_0x5af2ca){return _0x5af2ca['toString'](0x10)['padStart'](0x8,'0');}function _0x4b7aea(_0x2ea325){return _0x2ea325['split']('')['reverse']()['join']('');}function _0x36b90a(){}_0xf94011(await _0x2a7cfc());}(this);}},I=class extends _0x160515{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[C];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x541840=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3411c2;for(const _0x128766 in _0x541840){const _0x532c1e=_0x128766,_0x4570d9=_0x541840[_0x532c1e];if('exportInlineStylesLicenseKeyValid'==_0x4570d9||'exportInlineStylesLicenseKeyInvalid'==_0x4570d9||'exportInlineStylesLicenseKeyExpired'==_0x4570d9||'exportInlineStylesLicenseKeyDomainLimit'==_0x4570d9||'exportInlineStylesLicenseKeyNotAllowed'==_0x4570d9||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x4570d9||'exportInlineStylesLicenseKeyUsageLimit'==_0x4570d9){delete _0x541840[_0x532c1e],_0x3411c2=_0x4570d9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x3411c2&&_0x541840['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x3411c2&&_0x541840['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x3411c2&&_0x541840['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x3411c2&&_0x541840['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x3411c2&&_0x541840['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x3411c2&&_0x541840['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};export{I as ExportInlineStyles,g as ExportInlineStylesCommand,C as ExportInlineStylesEditing,d as dropImportantStyleSuffix};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-inline-styles",
3
- "version": "48.3.0-alpha.6",
3
+ "version": "48.3.0-alpha.7",
4
4
  "description": "The export with inline styles feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -34,9 +34,9 @@
34
34
  "./package.json": "./package.json"
35
35
  },
36
36
  "dependencies": {
37
- "@ckeditor/ckeditor5-core": "48.3.0-alpha.6",
38
- "@ckeditor/ckeditor5-engine": "48.3.0-alpha.6",
39
- "@ckeditor/ckeditor5-utils": "48.3.0-alpha.6",
37
+ "@ckeditor/ckeditor5-core": "48.3.0-alpha.7",
38
+ "@ckeditor/ckeditor5-engine": "48.3.0-alpha.7",
39
+ "@ckeditor/ckeditor5-utils": "48.3.0-alpha.7",
40
40
  "specificity": "0.4.1"
41
41
  },
42
42
  "files": [