@ckeditor/ckeditor5-export-inline-styles 48.1.0 → 48.8.1-alpha.0

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 _0x5c6d22,Plugin as _0x1faaa8}from'@ckeditor/ckeditor5-core/dist/index.js';import{collectStylesheets as _0x1d4f60,createElement as _0x2c2d4f,uid as _0x397a33}from'@ckeditor/ckeditor5-utils/dist/index.js';import{StylesMap as _0x1f5db2,addMarginStylesRules as _0x4e9ea3,addPaddingStylesRules as _0x11bcb2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{calculate as _0x24adaa,compare as _0x307679}from'specificity';function f(_0x562ff9){const _0x4d7f0e=[];let _0x5df77f='',_0x241061=0x0;for(;_0x241061<_0x562ff9['length'];){const _0x2f5997=_0x562ff9[_0x241061];if('('===_0x2f5997){const _0x446b2d=y(_0x562ff9,_0x241061+0x1);if(-0x1===_0x446b2d)return[];_0x5df77f+=_0x562ff9['slice'](_0x241061,_0x446b2d+0x1),_0x241061=_0x446b2d+0x1;}else','!==_0x2f5997||_0x5df77f['endsWith']('\x5c')?(_0x5df77f+=_0x2f5997,_0x241061++):(_0x4d7f0e['push'](_0x5df77f['trim']()),_0x5df77f='',_0x241061++);}return _0x5df77f['trim']()&&_0x4d7f0e['push'](_0x5df77f['trim']()),_0x4d7f0e['filter'](Boolean);}function y(_0x3e136,_0x11c26a){let _0x402d0f=0x1;for(let _0x3cd4ed=_0x11c26a;_0x3cd4ed<_0x3e136['length'];_0x3cd4ed++){const _0xb2576f=_0x3e136[_0x3cd4ed];if('('===_0xb2576f)_0x402d0f++;else{if(')'===_0xb2576f&&(_0x402d0f--,0x0===_0x402d0f))return _0x3cd4ed;}}return-0x1;}function w(_0x369312){return _0x369312['replace'](/!\s*important/i,'')['trim']();}function d(_0x1e67a7,_0x559de0){const _0x3a92b9=new Map(),_0x1753cc=_0x1de192=>_0x3a92b9['has'](_0x1de192)?_0x3a92b9['get'](_0x1de192):_0x1e67a7(_0x1de192);for(const [_0x27be36,_0x30f485]of _0x559de0['getStylesEntries']())if(_0x30f485&&_0x27be36['startsWith']('--')){const _0x2bc185=p(_0x1753cc,_0x30f485);_0x3a92b9['set'](_0x27be36,_0x2bc185),_0x559de0['remove'](_0x27be36);}for(const [_0x54d336,_0x142f71]of _0x559de0['getStylesEntries']())if(_0x142f71){const _0x4c777f=p(_0x1753cc,_0x142f71);_0x559de0['set'](_0x54d336,_0x4c777f);}return _0x3a92b9;}function p(_0x2cc19f,_0x3f1dc2){return function(_0x55da54,_0x24a963){let _0x321140='',_0x1e119f=0x0;for(;_0x1e119f<_0x55da54['length'];){const _0x34c7e2=_0x55da54['indexOf']('var(',_0x1e119f);if(-0x1===_0x34c7e2){_0x321140+=_0x55da54['slice'](_0x1e119f);break;}_0x321140+=_0x55da54['slice'](_0x1e119f,_0x34c7e2);const _0x4e14c4=_0x34c7e2+0x4,_0x61dd32=y(_0x55da54,_0x4e14c4);_0x321140+=_0x24a963(_0x55da54['substring'](_0x4e14c4,_0x61dd32)),_0x1e119f=_0x61dd32+0x1;}return _0x321140;}(_0x3f1dc2,_0x282462=>{const [_0x3bb270,_0x26b0ab]=f(_0x282462),_0x19f492=_0x2cc19f(_0x3bb270);return void 0x0!==_0x19f492?_0x19f492:_0x26b0ab?p(_0x2cc19f,_0x26b0ab):'var('+_0x3bb270+')';});}async function m(_0x14d9cf){const _0x1442d1=[await _0x1d4f60(_0x14d9cf['stylesheets']),_0x14d9cf['inlineCss']]['filter'](_0x22aec0=>_0x22aec0&&_0x22aec0['length'])['join']('\x0a'),_0x187ac4=await async function(_0x1ed286,_0x1e57e7){const _0x4a7345=new CSSStyleSheet();return await _0x4a7345['replace'](_0x1e57e7),h(Array['from'](_0x4a7345['cssRules'])['filter'](_0x36a61c=>_0x36a61c instanceof CSSStyleRule))['flatMap'](({selectorText:_0x3bba2c,contentCssText:_0x53662e})=>{const _0x484237=f(_0x3bba2c),_0xdfbfdb=new _0x1f5db2(_0x1ed286)['setTo'](_0x53662e);return _0x484237['map'](_0x4cd9ef=>{const _0x55ac79=function(_0x472b90){const _0x50c8db=':where(';let _0x10878d=_0x472b90,_0x4f785d=0x0;for(let _0x170cfb=0x0;_0x170cfb<0x64;_0x170cfb++){const _0x4dfbc9=_0x10878d['indexOf'](_0x50c8db,_0x4f785d);if(-0x1===_0x4dfbc9)break;let _0xd39ddb=0x0;for(let _0x51c2f5=0x0;_0x51c2f5<_0x4dfbc9;_0x51c2f5++)'('===_0x10878d[_0x51c2f5]?_0xd39ddb++:')'===_0x10878d[_0x51c2f5]&&_0xd39ddb--;if(_0xd39ddb>0x0){_0x4f785d=_0x4dfbc9+_0x50c8db['length'];continue;}let _0x404d86=-0x1;for(let _0x4ec807=_0x4dfbc9+_0x50c8db['length'],_0x4787a9=0x1;_0x4ec807<_0x10878d['length'];_0x4ec807++)if('('===_0x10878d[_0x4ec807]?_0x4787a9++:')'===_0x10878d[_0x4ec807]&&_0x4787a9--,!_0x4787a9){_0x404d86=_0x4ec807;break;}-0x1!==_0x404d86?(_0x10878d=_0x10878d['slice'](0x0,_0x4dfbc9)+_0x10878d['slice'](_0x404d86+0x1),_0x4f785d=_0x4dfbc9):_0x4f785d=_0x4dfbc9+_0x50c8db['length'];}return _0x10878d['replace'](/\s+/g,'\x20')['trim']();}(_0x4cd9ef),_0x3b75e3=_0x55ac79?_0x24adaa(_0x55ac79)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0xdfbfdb,'flatSelector':_0x4cd9ef,'specificity':_0x3b75e3};});})['sort']((_0x1f591d,_0xbb1fc1)=>_0x307679(_0x1f591d['specificity'],_0xbb1fc1['specificity']));}(_0x14d9cf['stylesProcessor'],_0x1442d1);return{'parsedCssRules':_0x187ac4,'rootCssVariables':function(_0x4c7140){const _0x367cab=new Map();for(const {stylesMap:_0x3ce34e,flatSelector:_0x5d5348}of _0x4c7140){if(':root'!==_0x5d5348)continue;const _0xceb4c9=d(_0x367cab['get']['bind'](_0x367cab),_0x3ce34e);for(const [_0x22e893,_0x507a67]of _0xceb4c9)_0x367cab['set'](_0x22e893,_0x507a67);}return _0x367cab;}(_0x187ac4)};}function h(_0xcdca75,_0x31b582=''){return _0xcdca75['flatMap'](_0x2f2aa8=>{const {selectorText:_0x400a64,cssText:_0x9ca8d6,cssRules:_0x50ec83}=_0x2f2aa8;if(!_0x400a64)return[];const _0x226e41=_0x400a64['replace'](/&/g,_0x31b582);let _0x12cd69=_0x9ca8d6['replace'](_0x400a64,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x50ec83||!_0x50ec83['length'])return[{'selectorText':_0x226e41,'contentCssText':_0x12cd69}];for(const _0x20b32e of _0x50ec83)_0x12cd69=_0x12cd69['replace'](_0x20b32e['cssText'],'')['trim']();return[{'selectorText':_0x226e41,'contentCssText':_0x12cd69},...h(Array['from'](_0x50ec83),_0x226e41)];});}function S(_0x208996,_0x2cf205){const _0x1383f1=new _0x1f5db2(_0x208996);for(const _0xb36884 of _0x2cf205){let _0x5baea0=null;if(_0x5baea0='string'==typeof _0xb36884?new _0x1f5db2(_0x208996)['setTo'](_0xb36884):_0xb36884,_0x5baea0){for(const [_0x591ec1,_0x324d58]of _0x5baea0['getStylesEntries']())_0x1383f1['set'](_0x591ec1,_0x324d58);}}return _0x1383f1;}class x extends _0x5c6d22{['_stylesProcessor'];constructor(_0x59d8e6){super(_0x59d8e6),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x4e9ea3(this['_stylesProcessor']),_0x11bcb2(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x22b869){const _0x3977f7=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x1085ad}=this['editor']['locale'],{rootName:_0x4af422='main',dataControllerDowncastOptions:_0x5f9f3e={},transformations:_0x58108b=_0x3977f7['transformations']||[]}=_0x22b869||{};this['isBusy']=!0x0,this['refresh']();const _0x334935=this['_getRootDataHTMLFragment'](_0x4af422,_0x5f9f3e),_0x5193cf=_0x2c2d4f(_0x334935['ownerDocument'],'div',{'dir':_0x1085ad,'class':'ck-content'},[_0x334935]);return this['_collectAndApplyStyles'](_0x58108b,_0x5193cf)['then'](()=>{const _0xf98ea8=function(_0x50cf0c){const _0x1645a7=_0x50cf0c['ownerDocument']['createDocumentFragment']();for(;_0x50cf0c['firstChild'];)_0x1645a7['appendChild'](_0x50cf0c['firstChild']);return _0x1645a7;}(_0x5193cf),_0x20e366=_0x5193cf['getAttribute']('style');if(_0x20e366)for(const _0x4a5350 of _0xf98ea8['children']){const _0x586410=_0x4a5350['getAttribute']('style'),_0x4b3a73=S(this['_stylesProcessor'],[_0x20e366,_0x586410]);_0x4a5350['setAttribute']('style',C(_0x4b3a73));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0xf98ea8);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x19ca4a,_0x573b62){const {data:_0x566f8d,model:_0x11aae1}=this['editor'],_0x1a3033=_0x11aae1['document']['getRoot'](_0x19ca4a),_0x161f8d=_0x566f8d['toView'](_0x1a3033,_0x573b62);return _0x566f8d['htmlProcessor']['domConverter']['viewToDom'](_0x161f8d);}async['_collectAndApplyStyles'](_0x5caab3,_0x47220f){const {stylesheets:_0x1fd4de,inlineCss:_0x3e379a,stripCssClasses:_0x45ee2e}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x3a014a,rootCssVariables:_0x1c691f}=await m({'stylesheets':_0x1fd4de||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x3e379a}),_0x161b57=[];this['_processElementTree']({'transformations':_0x5caab3,'parsedCssRules':_0x3a014a,'element':_0x47220f,'stripCssClasses':_0x45ee2e,'parentCSSVariablesLookup':_0x1c691f['get']['bind'](_0x1c691f),'runAfterDocumentTransformation':_0x5c51bd=>{_0x161b57['unshift'](_0x5c51bd);}});for(const _0x2482ed of _0x161b57)_0x2482ed();}['_processElementTree']({element:_0x1286f2,parsedCssRules:_0x492bda,parentCSSVariablesLookup:_0x3f3225,runAfterDocumentTransformation:_0x3a17d4,stripCssClasses:_0x34392c,transformations:_0x324b23}){const {stylesMap:_0x234756,localCSSVariables:_0x13f214}=function(_0x2ad28c){const _0x63b87b=_0x2ad28c['element']['getAttribute']('style')||'',_0x33f413=_0x2ad28c['parsedCssRules']['filter'](_0x4e1df8=>_0x2ad28c['element']['matches'](_0x4e1df8['flatSelector']))['map'](_0x4a9766=>_0x4a9766['stylesMap']),_0x13241c=S(_0x2ad28c['stylesProcessor'],[..._0x33f413,_0x63b87b]);return{'localCSSVariables':d(_0x2ad28c['fallbackCSSVariablesLookup'],_0x13241c),'stylesMap':_0x13241c};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x3f3225,'parsedCssRules':_0x492bda,'element':_0x1286f2}),_0x4ad4d9=[];for(const _0x33c02c of _0x324b23){const _0x26a47f=_0x33c02c(_0x1286f2,_0x234756,{'runAfterDocumentTransformation':_0x3a17d4,'runAfterChildrenTransformation':_0x8bf6cc=>{_0x4ad4d9['unshift'](_0x8bf6cc);}});_0x26a47f&&_0x26a47f instanceof HTMLElement&&(_0x1286f2=_0x26a47f);}_0x234756['size']?_0x1286f2['setAttribute']('style',C(_0x234756)):_0x1286f2['removeAttribute']('style');const _0x5a28e8=_0x12a136=>_0x13f214['has'](_0x12a136)?_0x13f214['get'](_0x12a136):_0x3f3225(_0x12a136);for(const _0x2727c3 of _0x1286f2['children'])_0x2727c3 instanceof HTMLElement&&this['_processElementTree']({'element':_0x2727c3,'parsedCssRules':_0x492bda,'stripCssClasses':_0x34392c,'transformations':_0x324b23,'parentCSSVariablesLookup':_0x5a28e8,'runAfterDocumentTransformation':_0x3a17d4});_0x34392c&&_0x1286f2['removeAttribute']('class');for(const _0x478a7d of _0x4ad4d9)_0x478a7d();}}function C(_0x444b0c){return _0x444b0c['getStylesEntries']()['map'](_0x1f570b=>_0x1f570b['join'](':'))['join'](';')+';';}class L extends _0x1faaa8{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 x(this['editor']));}['afterInit'](){!async function(_0x40382e){const _0x551f9a=_0x48ce7c([0x44,0x55,0x41,0x36,0x31,0x30,0x65,0x6d,0x4c,0x34,0x51,0x32,0x6b,0x6a,0x56,0x49,0x76,0x47,0x4d,0x48,0x67,0x57,0x54,0x33,0x75,0x79,0x53,0x6e,0x7a,0x50,0x45,0x77,0x37,0x39,0x6f,0x5a,0x4a,0x69,0x43,0x72,0x62,0x73,0x74,0x63,0x58,0x4b,0x71,0x38,0x35,0x4e,0x68,0x64,0x66,0x61,0x46,0x52,0x78,0x42,0x6c,0x70,0x4f,0x59]),_0x37700b=0x6f40c3fb,_0x2e36fc=0x6f474a0b^_0x37700b,_0xecd678=window[_0x48ce7c([0x44,0x61,0x74,0x65])][_0x48ce7c([0x6e,0x6f,0x77])](),_0x453ba2=_0x40382e[_0x48ce7c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1f1810=new window[(_0x48ce7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x425564=>{_0x453ba2[_0x48ce7c([0x6f,0x6e,0x63,0x65])](_0x48ce7c([0x72,0x65,0x61,0x64,0x79]),_0x425564);}),_0x243ca6={[_0x48ce7c([0x6b,0x74,0x79])]:_0x48ce7c([0x45,0x43]),[_0x48ce7c([0x75,0x73,0x65])]:_0x48ce7c([0x73,0x69,0x67]),[_0x48ce7c([0x63,0x72,0x76])]:_0x48ce7c([0x50,0x2d,0x32,0x35,0x36]),[_0x48ce7c([0x78])]:_0x48ce7c([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x48ce7c([0x79])]:_0x48ce7c([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x48ce7c([0x61,0x6c,0x67])]:_0x48ce7c([0x45,0x53,0x32,0x35,0x36])},_0x559507=_0x453ba2[_0x48ce7c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48ce7c([0x67,0x65,0x74])](_0x48ce7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xb8cf88(){let _0x23c269,_0x2e27f7=null,_0x3da7d6=null;try{if(_0x559507==_0x48ce7c([0x47,0x50,0x4c]))return _0x48ce7c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x23c269=_0x49e640(),!_0x23c269)return _0x48ce7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x23c269[_0x48ce7c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3da7d6=_0x388d53(_0x23c269[_0x48ce7c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x23c269[_0x48ce7c([0x6a,0x74,0x69])])),await _0x58be3c()?_0x4c1d89()?_0xc23714()?_0x48ce7c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x411f5e()?(_0x23c269[_0x48ce7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48ce7c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e27f7=_0x40f427(_0x48ce7c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x57cfeb()):_0x48ce7c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48ce7c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48ce7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x48ce7c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xc23714(){const _0x5e40ff=[_0x48ce7c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48ce7c([0x74,0x72,0x69,0x61,0x6c])][_0x48ce7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23c269[_0x48ce7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xecd678/0x3e8:0xe10*_0x2e36fc;return _0x23c269[_0x48ce7c([0x65,0x78,0x70])]<_0x5e40ff;}function _0x4c1d89(){const _0x620f41=_0x23c269[_0x48ce7c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x620f41&&(!!_0x620f41[_0x48ce7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48ce7c([0x2a]))||!!_0x620f41[_0x48ce7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48ce7c([0x45,0x49,0x53])));}function _0x411f5e(){const _0x1c276d=_0x23c269[_0x48ce7c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c276d||0x0==_0x1c276d[_0x48ce7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xfea7b4}=new URL(window[_0x48ce7c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c276d[_0x48ce7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfea7b4))return!0x0;const _0x4eb81b=_0xfea7b4[_0x48ce7c([0x73,0x70,0x6c,0x69,0x74])](_0x48ce7c([0x2e]));return _0x1c276d[_0x48ce7c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40b33f=>_0x40b33f[_0x48ce7c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48ce7c([0x2a])))[_0x48ce7c([0x6d,0x61,0x70])](_0x5b1434=>_0x5b1434[_0x48ce7c([0x73,0x70,0x6c,0x69,0x74])](_0x48ce7c([0x2e])))[_0x48ce7c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf63e34=>_0xf63e34[_0x48ce7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4eb81b[_0x48ce7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48ce7c([0x6d,0x61,0x70])](_0x236440=>Array(_0x4eb81b[_0x48ce7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x236440[_0x48ce7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48ce7c([0x66,0x69,0x6c,0x6c])](_0x236440[0x0]===_0x48ce7c([0x2a])?_0x48ce7c([0x2a]):'')[_0x48ce7c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x236440))[_0x48ce7c([0x73,0x6f,0x6d,0x65])](_0x18c538=>_0x4eb81b[_0x48ce7c([0x65,0x76,0x65,0x72,0x79])]((_0x5988e9,_0x192ebf)=>_0x18c538[_0x192ebf]===_0x5988e9||_0x18c538[_0x192ebf]===_0x48ce7c([0x2a])));}function _0x57cfeb(){return _0x2e27f7&&_0x3da7d6?new window[(_0x48ce7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x138f1e,_0x1164f1)=>{_0x2e27f7[_0x48ce7c([0x74,0x68,0x65,0x6e])](_0x138f1e,_0x1164f1),_0x3da7d6[_0x48ce7c([0x74,0x68,0x65,0x6e])](_0x431264=>{_0x431264!=_0x48ce7c([0x56,0x61,0x6c,0x69,0x64])&&_0x138f1e(_0x431264);},_0x1164f1);}):_0x2e27f7||_0x3da7d6||_0x48ce7c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x388d53(_0x19f9c0,_0x136e9d){return new window[(_0x48ce7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x552ae8=>{if(_0x815fe9())return _0x552ae8(_0x48ce7c([0x56,0x61,0x6c,0x69,0x64]));_0x4013cc(),_0x453ba2[_0x48ce7c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48ce7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2e3cbc=!0x1;const _0x14cbb9=_0x397a33();function _0x47d72b(_0x1e15db){return!!_0x1e15db&&(typeof _0x1e15db===_0x48ce7c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e15db===_0x48ce7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e15db[_0x48ce7c([0x74,0x68,0x65,0x6e])]===_0x48ce7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e15db[_0x48ce7c([0x63,0x61,0x74,0x63,0x68])]===_0x48ce7c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x323827(_0x2a59f0){_0x4130ba(_0x2a59f0)[_0x48ce7c([0x74,0x68,0x65,0x6e])](_0x1effce=>{if(!_0x1effce||_0x1effce[_0x48ce7c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48ce7c([0x6f,0x6b]))return _0x48ce7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x345c7f(_0xce3b10(_0x14cbb9+_0x136e9d))!=_0x1effce[_0x48ce7c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48ce7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48ce7c([0x56,0x61,0x6c,0x69,0x64]);})[_0x48ce7c([0x74,0x68,0x65,0x6e])](_0xbbb73=>(_0xd35db1(),_0xbbb73),()=>{const _0x15eea1=_0x41277c();return null==_0x15eea1?(_0xd35db1(),_0x48ce7c([0x56,0x61,0x6c,0x69,0x64])):_0x48ce7c(_0xecd678-_0x15eea1>(0x4b4c47fb^_0x37700b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48ce7c([0x74,0x68,0x65,0x6e])](_0x552ae8)[_0x48ce7c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x552ae8(_0x48ce7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2926f3=0x6f762d7b^_0x37700b;function _0xd35db1(){const _0x4770d3=_0x48ce7c([0x6c,0x6c,0x63,0x74,0x2d])+_0x345c7f(_0xce3b10(_0x19f9c0)),_0x1cf8e9=_0x2b8023(_0x345c7f(window[_0x48ce7c([0x4d,0x61,0x74,0x68])][_0x48ce7c([0x63,0x65,0x69,0x6c])](_0xecd678/_0x2926f3)));window[_0x48ce7c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48ce7c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4770d3,_0x1cf8e9);}function _0x41277c(){const _0x3e1ec2=_0x48ce7c([0x6c,0x6c,0x63,0x74,0x2d])+_0x345c7f(_0xce3b10(_0x19f9c0)),_0x3a1f91=window[_0x48ce7c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48ce7c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e1ec2);return _0x3a1f91?window[_0x48ce7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b8023(_0x3a1f91),0x10)*_0x2926f3:null;}function _0x4130ba(_0x1a9372){return new window[(_0x48ce7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34b1bf,_0x47a5ca)=>{_0x1a9372[_0x48ce7c([0x74,0x68,0x65,0x6e])](_0x34b1bf,_0x47a5ca),window[_0x48ce7c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x47a5ca,0x6f41173b^_0x37700b);});}}_0x453ba2[_0x48ce7c([0x6f,0x6e])](_0x48ce7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x9542ac,_0x11bd4d)=>{if(_0x11bd4d[0x0]!=_0x19f9c0)return _0x552ae8(_0x48ce7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11bd4d[0x1]={..._0x11bd4d[0x1],[_0x48ce7c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14cbb9};},{[_0x48ce7c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48ce7c([0x68,0x69,0x67,0x68])}),_0x453ba2[_0x48ce7c([0x6f,0x6e])](_0x48ce7c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x185da7=>{_0x47d72b(_0x185da7[_0x48ce7c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2e3cbc=!0x0,_0x323827(_0x185da7[_0x48ce7c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48ce7c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48ce7c([0x6c,0x6f,0x77])}),_0x1f1810[_0x48ce7c([0x74,0x68,0x65,0x6e])](()=>{_0x2e3cbc||_0x552ae8(_0x48ce7c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x815fe9(){return _0x453ba2[_0x48ce7c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48ce7c([0x76,0x69,0x65,0x77])][_0x48ce7c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48ce7c([0x61,0x75,0x74,0x6f]);}function _0x4013cc(){_0x453ba2[_0x48ce7c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48ce7c([0x76,0x69,0x65,0x77])][_0x48ce7c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48ce7c([0x61,0x75,0x74,0x6f]);}}function _0x40f427(_0x52886d){const _0x5eae88=[new window[(_0x48ce7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d1c43=>setTimeout(_0x1d1c43,0x6f49fd37^_0x37700b)),_0x1f1810[_0x48ce7c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48ce7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33f37d=>{let _0x29e976=0x0;_0x453ba2[_0x48ce7c([0x6d,0x6f,0x64,0x65,0x6c])][_0x48ce7c([0x6f,0x6e])](_0x48ce7c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x45915f,_0x19afb3)=>{_0x19afb3[0x0][_0x48ce7c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x29e976++,_0x29e976==(0x6f40c613^_0x37700b)&&(_0x33f37d(),_0x45915f[_0x48ce7c([0x6f,0x66,0x66])]());});}))];return window[_0x48ce7c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48ce7c([0x72,0x61,0x63,0x65])](_0x5eae88)[_0x48ce7c([0x74,0x68,0x65,0x6e])](()=>_0x52886d);}async function _0x2d37c2(){await _0x1f1810;const _0x2e55fe=_0x453ba2['commands'][_0x48ce7c([0x67,0x65,0x74])](_0x48ce7c([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x2e55fe&&_0x2e55fe[_0x48ce7c([0x6f,0x6e])](_0x48ce7c([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x3cc320=>{_0x3cc320['stop']();},{'priority':_0x48ce7c([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0x453ba2[_0x48ce7c([0x6d,0x6f,0x64,0x65,0x6c])][_0x48ce7c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a9ae3,_0x453ba2[_0x48ce7c([0x6d,0x6f,0x64,0x65,0x6c])][_0x48ce7c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a9ae3,_0x453ba2[_0x48ce7c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48ce7c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3992b8(_0xbdb83c){const _0x54a056=_0x337193();_0x453ba2[_0x54a056]=_0x48ce7c([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xbdb83c,_0xbdb83c!=_0x48ce7c([0x56,0x61,0x6c,0x69,0x64])&&_0x2d37c2();}function _0x337193(){const _0x43dfd7=window[_0x48ce7c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48ce7c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48ce7c([0x6e,0x6f,0x77])]())[_0x48ce7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48ce7c([0x2e]),'');let _0x43f0af=_0x48ce7c([0x44]);for(let _0x5288e8=0x0;_0x5288e8<_0x43dfd7[_0x48ce7c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5288e8+=0x2){let _0x2caff5=window[_0x48ce7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43dfd7[_0x48ce7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5288e8,_0x5288e8+0x2));_0x2caff5>=_0x551f9a[_0x48ce7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2caff5-=_0x551f9a[_0x48ce7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x43f0af+=_0x551f9a[_0x2caff5];}return _0x43f0af;}function _0x49e640(){const _0x482fc7=_0x559507[_0x48ce7c([0x73,0x70,0x6c,0x69,0x74])](_0x48ce7c([0x2e]));if(0x3!=_0x482fc7[_0x48ce7c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb786e2(_0x482fc7[0x1]);function _0xb786e2(_0x1cb5c1){const _0x8e7a7a=_0x273deb(_0x1cb5c1);return _0x8e7a7a&&_0x32634d()?_0x8e7a7a:null;function _0x32634d(){const _0x3685cb=_0x8e7a7a[_0x48ce7c([0x6a,0x74,0x69])],_0x39554b=window[_0x48ce7c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3685cb[_0x48ce7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3685cb[_0x48ce7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x250296={..._0x8e7a7a,[_0x48ce7c([0x6a,0x74,0x69])]:_0x3685cb[_0x48ce7c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3685cb[_0x48ce7c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x250296[_0x48ce7c([0x76,0x63])],_0xce3b10(_0x250296)==_0x39554b;}}}async function _0x58be3c(){let _0x51f53b=!0x0;try{const _0x745a66=_0x559507[_0x48ce7c([0x73,0x70,0x6c,0x69,0x74])](_0x48ce7c([0x2e])),[_0x18dc72,_0x3cf2c2,_0x5937f]=_0x745a66;return _0x1b179e(_0x18dc72),await _0x76aa1(_0x18dc72,_0x3cf2c2,_0x5937f),_0x51f53b;}catch{return!0x1;}function _0x1b179e(_0x37f3ef){const _0x2d5f13=_0x273deb(_0x37f3ef);_0x2d5f13&&_0x2d5f13[_0x48ce7c([0x61,0x6c,0x67])]==_0x48ce7c([0x45,0x53,0x32,0x35,0x36])||(_0x51f53b=!0x1);}async function _0x76aa1(_0x1f540b,_0x2ee234,_0x1dc31d){const _0x132004=window[_0x48ce7c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48ce7c([0x66,0x72,0x6f,0x6d])](_0x269ed1(_0x1dc31d),_0x1f8df9=>_0x1f8df9[_0x48ce7c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2c5322=new window[(_0x48ce7c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48ce7c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1f540b+_0x48ce7c([0x2e])+_0x2ee234),_0x5ac51f=window[_0x48ce7c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48ce7c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ac51f)return;const _0x4c314e=await _0x5ac51f[_0x48ce7c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48ce7c([0x6a,0x77,0x6b]),_0x243ca6,{[_0x48ce7c([0x6e,0x61,0x6d,0x65])]:_0x48ce7c([0x45,0x43,0x44,0x53,0x41]),[_0x48ce7c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48ce7c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48ce7c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ac51f[_0x48ce7c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48ce7c([0x6e,0x61,0x6d,0x65])]:_0x48ce7c([0x45,0x43,0x44,0x53,0x41]),[_0x48ce7c([0x68,0x61,0x73,0x68])]:{[_0x48ce7c([0x6e,0x61,0x6d,0x65])]:_0x48ce7c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4c314e,_0x132004,_0x2c5322)||(_0x51f53b=!0x1);}}function _0x273deb(_0x10492f){return _0x10492f[_0x48ce7c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48ce7c([0x65,0x79]))?JSON[_0x48ce7c([0x70,0x61,0x72,0x73,0x65])](_0x269ed1(_0x10492f)):null;}function _0x269ed1(_0x49dcbb){return window[_0x48ce7c([0x61,0x74,0x6f,0x62])](_0x49dcbb[_0x48ce7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48ce7c([0x2b]))[_0x48ce7c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48ce7c([0x2f])));}function _0xce3b10(_0x3971c5){let _0x4fb746=0x1505;function _0xd42898(_0x3c9738){for(let _0x18bc10=0x0;_0x18bc10<_0x3c9738[_0x48ce7c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18bc10++){const _0x725132=_0x3c9738[_0x48ce7c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18bc10);_0x4fb746=(_0x4fb746<<0x5)+_0x4fb746+_0x725132,_0x4fb746&=_0x4fb746;}}function _0x21f4df(_0x137481){Array[_0x48ce7c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x137481)?_0x137481[_0x48ce7c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x21f4df):_0x137481&&typeof _0x137481==_0x48ce7c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48ce7c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x137481)[_0x48ce7c([0x73,0x6f,0x72,0x74])]()[_0x48ce7c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x112696,_0xdecf85])=>{_0xd42898(_0x112696),_0x21f4df(_0xdecf85);}):_0xd42898(window[_0x48ce7c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x137481));}return _0x21f4df(_0x3971c5),_0x4fb746>>>0x0;}function _0x345c7f(_0xe5b6f7){return _0xe5b6f7[_0x48ce7c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48ce7c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48ce7c([0x30]));}function _0x2b8023(_0x295957){return _0x295957[_0x48ce7c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48ce7c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48ce7c([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a9ae3(){}function _0x48ce7c(_0x4d5622){return _0x4d5622['map'](_0x543a40=>String['fromCharCode'](_0x543a40))['join']('');}_0x3992b8(await _0xb8cf88());}(this);}}class g extends _0x1faaa8{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[L];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5c030d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x110726;for(const _0x5e3ee8 in _0x5c030d){const _0x3c4932=_0x5e3ee8,_0x30183a=_0x5c030d[_0x3c4932];if('exportInlineStylesLicenseKeyValid'==_0x30183a||'exportInlineStylesLicenseKeyInvalid'==_0x30183a||'exportInlineStylesLicenseKeyExpired'==_0x30183a||'exportInlineStylesLicenseKeyDomainLimit'==_0x30183a||'exportInlineStylesLicenseKeyNotAllowed'==_0x30183a||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x30183a||'exportInlineStylesLicenseKeyUsageLimit'==_0x30183a){delete _0x5c030d[_0x3c4932],_0x110726=_0x30183a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x110726&&_0x5c030d['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x110726&&_0x5c030d['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x110726&&_0x5c030d['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x110726&&_0x5c030d['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x110726&&_0x5c030d['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x110726&&_0x5c030d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}export{g as ExportInlineStyles,x as ExportInlineStylesCommand,L as ExportInlineStylesEditing,w as dropImportantStyleSuffix};
23
+ import{Command as _0x75950c,Plugin as _0x89494b}from'@ckeditor/ckeditor5-core/dist/index.js';import{collectStylesheets as _0x39fbe0,createElement as _0x56cb01,uid as _0x465d29}from'@ckeditor/ckeditor5-utils/dist/index.js';import{StylesMap as _0xcbfaf8,addMarginStylesRules as _0x581246,addPaddingStylesRules as _0x2b691f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{calculate as _0x567ee7,compare as _0x56b062}from'specificity';function f(_0x5cb1a0){const _0x1fbd20=[];let _0x34e9d4='',_0x32d8b3=0x0;for(;_0x32d8b3<_0x5cb1a0['length'];){const _0x3f1012=_0x5cb1a0[_0x32d8b3];if('('===_0x3f1012){const _0x2de530=y(_0x5cb1a0,_0x32d8b3+0x1);if(-0x1===_0x2de530)return[];_0x34e9d4+=_0x5cb1a0['slice'](_0x32d8b3,_0x2de530+0x1),_0x32d8b3=_0x2de530+0x1;}else','!==_0x3f1012||_0x34e9d4['endsWith']('\x5c')?(_0x34e9d4+=_0x3f1012,_0x32d8b3++):(_0x1fbd20['push'](_0x34e9d4['trim']()),_0x34e9d4='',_0x32d8b3++);}return _0x34e9d4['trim']()&&_0x1fbd20['push'](_0x34e9d4['trim']()),_0x1fbd20['filter'](Boolean);}function y(_0xe046c7,_0xdf7ff6){let _0x1d7af8=0x1;for(let _0x1f3aad=_0xdf7ff6;_0x1f3aad<_0xe046c7['length'];_0x1f3aad++){const _0x47998b=_0xe046c7[_0x1f3aad];if('('===_0x47998b)_0x1d7af8++;else{if(')'===_0x47998b&&(_0x1d7af8--,0x0===_0x1d7af8))return _0x1f3aad;}}return-0x1;}function p(_0xdbc07a){return _0xdbc07a['replace'](/!\s*important/i,'')['trim']();}function w(_0x3d0cc7,_0xd987d9){const _0x1d9e89=new Map(),_0x5176c4=_0x205280=>_0x1d9e89['has'](_0x205280)?_0x1d9e89['get'](_0x205280):_0x3d0cc7(_0x205280);for(const [_0x2e8f8f,_0x2103ae]of _0xd987d9['getStylesEntries']())if(_0x2103ae&&_0x2e8f8f['startsWith']('--')){const _0x236bac=d(_0x5176c4,_0x2103ae);_0x1d9e89['set'](_0x2e8f8f,_0x236bac),_0xd987d9['remove'](_0x2e8f8f);}for(const [_0x402fa8,_0x4d9c86]of _0xd987d9['getStylesEntries']())if(_0x4d9c86){const _0x3dd4a7=d(_0x5176c4,_0x4d9c86);_0xd987d9['set'](_0x402fa8,_0x3dd4a7);}return _0x1d9e89;}function d(_0x5a0eab,_0x35f570){return function(_0x5452d9,_0x500883){let _0x24f063='',_0x4ed016=0x0;for(;_0x4ed016<_0x5452d9['length'];){const _0x2f103c=_0x5452d9['indexOf']('var(',_0x4ed016);if(-0x1===_0x2f103c){_0x24f063+=_0x5452d9['slice'](_0x4ed016);break;}_0x24f063+=_0x5452d9['slice'](_0x4ed016,_0x2f103c);const _0x2686c5=_0x2f103c+0x4,_0x484803=y(_0x5452d9,_0x2686c5);_0x24f063+=_0x500883(_0x5452d9['substring'](_0x2686c5,_0x484803)),_0x4ed016=_0x484803+0x1;}return _0x24f063;}(_0x35f570,_0x731c05=>{const [_0x42d531,_0x26f692]=f(_0x731c05),_0x2cf4cc=_0x5a0eab(_0x42d531);return void 0x0!==_0x2cf4cc?_0x2cf4cc:_0x26f692?d(_0x5a0eab,_0x26f692):'var('+_0x42d531+')';});}async function m(_0x24e1a1){const _0x1c6188=[await _0x39fbe0(_0x24e1a1['stylesheets']),_0x24e1a1['inlineCss']]['filter'](_0x268c0d=>_0x268c0d&&_0x268c0d['length'])['join']('\x0a'),_0x5061a5=await async function(_0x8f970b,_0x5560c3){const _0x5719a8=new CSSStyleSheet();return await _0x5719a8['replace'](_0x5560c3),S(Array['from'](_0x5719a8['cssRules'])['filter'](_0x56ef7b=>_0x56ef7b instanceof CSSStyleRule))['flatMap'](({selectorText:_0x2591d4,contentCssText:_0x2f4146})=>{const _0x35c24f=f(_0x2591d4),_0x5086cc=new _0xcbfaf8(_0x8f970b)['setTo'](_0x2f4146);return _0x35c24f['map'](_0x4f0700=>{const _0x32d37b=function(_0x531c6a){const _0x5bf803=':where(';let _0x1aba1f=_0x531c6a,_0x3f10ba=0x0;for(let _0x309c0a=0x0;_0x309c0a<0x64;_0x309c0a++){const _0x968bcd=_0x1aba1f['indexOf'](_0x5bf803,_0x3f10ba);if(-0x1===_0x968bcd)break;let _0x5bf7d6=0x0;for(let _0x41966d=0x0;_0x41966d<_0x968bcd;_0x41966d++)'('===_0x1aba1f[_0x41966d]?_0x5bf7d6++:')'===_0x1aba1f[_0x41966d]&&_0x5bf7d6--;if(_0x5bf7d6>0x0){_0x3f10ba=_0x968bcd+_0x5bf803['length'];continue;}let _0x224f8f=-0x1;for(let _0x3a1c58=_0x968bcd+_0x5bf803['length'],_0x158e59=0x1;_0x3a1c58<_0x1aba1f['length'];_0x3a1c58++)if('('===_0x1aba1f[_0x3a1c58]?_0x158e59++:')'===_0x1aba1f[_0x3a1c58]&&_0x158e59--,!_0x158e59){_0x224f8f=_0x3a1c58;break;}-0x1!==_0x224f8f?(_0x1aba1f=_0x1aba1f['slice'](0x0,_0x968bcd)+_0x1aba1f['slice'](_0x224f8f+0x1),_0x3f10ba=_0x968bcd):_0x3f10ba=_0x968bcd+_0x5bf803['length'];}return _0x1aba1f['replace'](/\s+/g,'\x20')['trim']();}(_0x4f0700),_0xbb8267=_0x32d37b?_0x567ee7(_0x32d37b)[0x0]['specificityArray']:[0x0,0x0,0x0,0x0];return{'stylesMap':_0x5086cc,'flatSelector':_0x4f0700,'specificity':_0xbb8267};});})['sort']((_0x108d0c,_0x35d272)=>_0x56b062(_0x108d0c['specificity'],_0x35d272['specificity']));}(_0x24e1a1['stylesProcessor'],_0x1c6188);return{'parsedCssRules':_0x5061a5,'rootCssVariables':function(_0xe6271d){const _0x538082=new Map();for(const {stylesMap:_0x252be1,flatSelector:_0xf38ea1}of _0xe6271d){if(':root'!==_0xf38ea1)continue;const _0x370848=w(_0x538082['get']['bind'](_0x538082),_0x252be1);for(const [_0x30be00,_0x497903]of _0x370848)_0x538082['set'](_0x30be00,_0x497903);}return _0x538082;}(_0x5061a5)};}function S(_0x5b6eb9,_0x4f55c0=''){return _0x5b6eb9['flatMap'](_0x3f43f4=>{const {selectorText:_0x31e8da,cssText:_0x373e58,cssRules:_0x174c21}=_0x3f43f4;if(!_0x31e8da)return[];const _0x3fceae=_0x31e8da['replace'](/&/g,_0x4f55c0);let _0x2ca82c=_0x373e58['replace'](_0x31e8da,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x174c21||!_0x174c21['length'])return[{'selectorText':_0x3fceae,'contentCssText':_0x2ca82c}];for(const _0x5e930b of _0x174c21)_0x2ca82c=_0x2ca82c['replace'](_0x5e930b['cssText'],'')['trim']();return[{'selectorText':_0x3fceae,'contentCssText':_0x2ca82c},...S(Array['from'](_0x174c21),_0x3fceae)];});}function h(_0x4e6686,_0x12c457){const _0x50df9f=new _0xcbfaf8(_0x4e6686);for(const _0x410805 of _0x12c457){let _0x21a451=null;if(_0x21a451='string'==typeof _0x410805?new _0xcbfaf8(_0x4e6686)['setTo'](_0x410805):_0x410805,_0x21a451){for(const [_0x4841d4,_0x277700]of _0x21a451['getStylesEntries']())_0x50df9f['set'](_0x4841d4,_0x277700);}}return _0x50df9f;}class ExportInlineStylesCommand extends _0x75950c{['_stylesProcessor'];constructor(_0x46d8ad){super(_0x46d8ad),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x581246(this['_stylesProcessor']),_0x2b691f(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x3e541e){const _0x572919=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x5aaf6b}=this['editor']['locale'],{rootName:_0x3efe4e='main',dataControllerDowncastOptions:_0x442096={},transformations:_0x3b6173=_0x572919['transformations']||[]}=_0x3e541e||{};this['isBusy']=!0x0,this['refresh']();const _0x49d1dc=this['_getRootDataHTMLFragment'](_0x3efe4e,_0x442096),_0x1c63ae=_0x56cb01(_0x49d1dc['ownerDocument'],'div',{'dir':_0x5aaf6b,'class':'ck-content'},[_0x49d1dc]);return this['_collectAndApplyStyles'](_0x3b6173,_0x1c63ae)['then'](()=>{const _0x5da5e5=function(_0x35f313){const _0xd50046=_0x35f313['ownerDocument']['createDocumentFragment']();for(;_0x35f313['firstChild'];)_0xd50046['appendChild'](_0x35f313['firstChild']);return _0xd50046;}(_0x1c63ae),_0x393f0d=_0x1c63ae['getAttribute']('style');if(_0x393f0d)for(const _0x3f9c6f of _0x5da5e5['children']){const _0x4f2d0f=_0x3f9c6f['getAttribute']('style'),_0x235bb2=h(this['_stylesProcessor'],[_0x393f0d,_0x4f2d0f]);_0x3f9c6f['setAttribute']('style',x(_0x235bb2));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x5da5e5);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x132bce,_0x3fdc83){const {data:_0x368005,model:_0x20af3e}=this['editor'],_0x4e3fea=_0x20af3e['document']['getRoot'](_0x132bce),_0x154a83=_0x368005['toView'](_0x4e3fea,_0x3fdc83);return _0x368005['htmlProcessor']['domConverter']['viewToDom'](_0x154a83);}async['_collectAndApplyStyles'](_0x1120ad,_0x5870b7){const {stylesheets:_0x2eb469,inlineCss:_0x1f7a1e,stripCssClasses:_0x29c7d9}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x172dc7,rootCssVariables:_0x37b99d}=await m({'stylesheets':_0x2eb469||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x1f7a1e}),_0x1ff50f=[];this['_processElementTree']({'transformations':_0x1120ad,'parsedCssRules':_0x172dc7,'element':_0x5870b7,'stripCssClasses':_0x29c7d9,'parentCSSVariablesLookup':_0x37b99d['get']['bind'](_0x37b99d),'runAfterDocumentTransformation':_0x3f8224=>{_0x1ff50f['unshift'](_0x3f8224);}});for(const _0x29883c of _0x1ff50f)_0x29883c();}['_processElementTree']({element:_0xc01aee,parsedCssRules:_0x3e7a92,parentCSSVariablesLookup:_0x141e60,runAfterDocumentTransformation:_0x1dd13b,stripCssClasses:_0x4b06ef,transformations:_0xe00ef}){const {stylesMap:_0xdd6019,localCSSVariables:_0x2acf21}=function(_0x3a4471){const _0x40e8a3=_0x3a4471['element']['getAttribute']('style')||'',_0x4bcb33=_0x3a4471['parsedCssRules']['filter'](_0xddc6d4=>_0x3a4471['element']['matches'](_0xddc6d4['flatSelector']))['map'](_0x2a9e80=>_0x2a9e80['stylesMap']),_0x491b71=h(_0x3a4471['stylesProcessor'],[..._0x4bcb33,_0x40e8a3]);return{'localCSSVariables':w(_0x3a4471['fallbackCSSVariablesLookup'],_0x491b71),'stylesMap':_0x491b71};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x141e60,'parsedCssRules':_0x3e7a92,'element':_0xc01aee}),_0x35be5c=[];for(const _0x55916b of _0xe00ef){const _0x1fe222=_0x55916b(_0xc01aee,_0xdd6019,{'runAfterDocumentTransformation':_0x1dd13b,'runAfterChildrenTransformation':_0x23d6a2=>{_0x35be5c['unshift'](_0x23d6a2);}});_0x1fe222&&_0x1fe222 instanceof HTMLElement&&(_0xc01aee=_0x1fe222);}_0xdd6019['size']?_0xc01aee['setAttribute']('style',x(_0xdd6019)):_0xc01aee['removeAttribute']('style');const _0x4f5c22=_0x343a9b=>_0x2acf21['has'](_0x343a9b)?_0x2acf21['get'](_0x343a9b):_0x141e60(_0x343a9b);for(const _0x551fa0 of _0xc01aee['children'])_0x551fa0 instanceof HTMLElement&&this['_processElementTree']({'element':_0x551fa0,'parsedCssRules':_0x3e7a92,'stripCssClasses':_0x4b06ef,'transformations':_0xe00ef,'parentCSSVariablesLookup':_0x4f5c22,'runAfterDocumentTransformation':_0x1dd13b});_0x4b06ef&&_0xc01aee['removeAttribute']('class');for(const _0x104ad3 of _0x35be5c)_0x104ad3();}}function x(_0x54fe95){return _0x54fe95['getStylesEntries']()['map'](_0x186d99=>_0x186d99['join'](':'))['join'](';')+';';}class ExportInlineStylesEditing extends _0x89494b{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 ExportInlineStylesCommand(this['editor']));}['afterInit'](){!async function(_0x3d0f26){const _0x1e2958=_0x286995([0x44,0x55,0x41,0x36,0x31,0x30,0x65,0x6d,0x4c,0x34,0x51,0x32,0x6b,0x6a,0x56,0x49,0x76,0x47,0x4d,0x48,0x67,0x57,0x54,0x33,0x75,0x79,0x53,0x6e,0x7a,0x50,0x45,0x77,0x37,0x39,0x6f,0x5a,0x4a,0x69,0x43,0x72,0x62,0x73,0x74,0x63,0x58,0x4b,0x71,0x38,0x35,0x4e,0x68,0x64,0x66,0x61,0x46,0x52,0x78,0x42,0x6c,0x70,0x4f,0x59]),_0x2c8dca=0x6f40c3fb,_0x4697dc=0x6f4749db^_0x2c8dca,_0xd9b43d=window[_0x286995([0x44,0x61,0x74,0x65])][_0x286995([0x6e,0x6f,0x77])](),_0x5a5a62=_0x3d0f26[_0x286995([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x11167f=new window[(_0x286995([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ea623=>{_0x5a5a62[_0x286995([0x6f,0x6e,0x63,0x65])](_0x286995([0x72,0x65,0x61,0x64,0x79]),_0x5ea623);}),_0x814610={[_0x286995([0x6b,0x74,0x79])]:_0x286995([0x45,0x43]),[_0x286995([0x75,0x73,0x65])]:_0x286995([0x73,0x69,0x67]),[_0x286995([0x63,0x72,0x76])]:_0x286995([0x50,0x2d,0x32,0x35,0x36]),[_0x286995([0x78])]:_0x286995([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x286995([0x79])]:_0x286995([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x286995([0x61,0x6c,0x67])]:_0x286995([0x45,0x53,0x32,0x35,0x36])},_0x4b67e2=_0x5a5a62[_0x286995([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x286995([0x67,0x65,0x74])](_0x286995([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x314faf(){let _0xaad274,_0x43728a=null,_0x2a3148=null;try{if(_0x4b67e2==_0x286995([0x47,0x50,0x4c]))return _0x286995([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xaad274=_0x544a6d(),!_0xaad274)return _0x286995([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xaad274[_0x286995([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a3148=_0x1e60db(_0xaad274[_0x286995([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xaad274[_0x286995([0x6a,0x74,0x69])])),await _0x4b6dce()?_0x4ad505()?_0x4b8cd0()?_0x286995([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4fd6cd()?(_0xaad274[_0x286995([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x286995([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x43728a=_0x597750(_0x286995([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x53cb86()):_0x286995([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x286995([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x286995([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x286995([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b8cd0(){const _0x1a68e3=[_0x286995([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x286995([0x74,0x72,0x69,0x61,0x6c])][_0x286995([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaad274[_0x286995([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd9b43d/0x3e8:0xe10*_0x4697dc;return _0xaad274[_0x286995([0x65,0x78,0x70])]<_0x1a68e3;}function _0x4ad505(){const _0x15c5e1=_0xaad274[_0x286995([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x15c5e1&&(!!_0x15c5e1[_0x286995([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286995([0x2a]))||!!_0x15c5e1[_0x286995([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286995([0x45,0x49,0x53])));}function _0x4fd6cd(){const _0x29556a=_0xaad274[_0x286995([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x29556a||0x0==_0x29556a[_0x286995([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x103e08}=new URL(window[_0x286995([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x29556a[_0x286995([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x103e08))return!0x0;const _0x2ec97=_0x103e08[_0x286995([0x73,0x70,0x6c,0x69,0x74])](_0x286995([0x2e]));return _0x29556a[_0x286995([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57d32e=>_0x57d32e[_0x286995([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x286995([0x2a])))[_0x286995([0x6d,0x61,0x70])](_0x1cb630=>_0x1cb630[_0x286995([0x73,0x70,0x6c,0x69,0x74])](_0x286995([0x2e])))[_0x286995([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f12ec=>_0x4f12ec[_0x286995([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2ec97[_0x286995([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x286995([0x6d,0x61,0x70])](_0x347b9e=>Array(_0x2ec97[_0x286995([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x347b9e[_0x286995([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x286995([0x66,0x69,0x6c,0x6c])](_0x347b9e[0x0]===_0x286995([0x2a])?_0x286995([0x2a]):'')[_0x286995([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x347b9e))[_0x286995([0x73,0x6f,0x6d,0x65])](_0x5510fb=>_0x2ec97[_0x286995([0x65,0x76,0x65,0x72,0x79])]((_0x2f5e95,_0x30abdd)=>_0x5510fb[_0x30abdd]===_0x2f5e95||_0x5510fb[_0x30abdd]===_0x286995([0x2a])));}function _0x53cb86(){return _0x43728a&&_0x2a3148?new window[(_0x286995([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x377da2,_0x5c2178)=>{_0x43728a[_0x286995([0x74,0x68,0x65,0x6e])](_0x377da2,_0x5c2178),_0x2a3148[_0x286995([0x74,0x68,0x65,0x6e])](_0x56dfa8=>{_0x56dfa8!=_0x286995([0x56,0x61,0x6c,0x69,0x64])&&_0x377da2(_0x56dfa8);},_0x5c2178);}):_0x43728a||_0x2a3148||_0x286995([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e60db(_0x1969b0,_0x150af7){return new window[(_0x286995([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a6218=>{if(_0x37d4e8())return _0x2a6218(_0x286995([0x56,0x61,0x6c,0x69,0x64]));_0x45c92a(),_0x5a5a62[_0x286995([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x286995([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x21c2d7=!0x1;const _0x367eb2=_0x465d29();function _0x3b0de8(_0x5891e5){return!!_0x5891e5&&(typeof _0x5891e5===_0x286995([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5891e5===_0x286995([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5891e5[_0x286995([0x74,0x68,0x65,0x6e])]===_0x286995([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5891e5[_0x286995([0x63,0x61,0x74,0x63,0x68])]===_0x286995([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x219865(_0x49557b){_0x5bc862(_0x49557b)[_0x286995([0x74,0x68,0x65,0x6e])](_0x88fd4a=>{if(!_0x88fd4a||_0x88fd4a[_0x286995([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x286995([0x6f,0x6b]))return _0x286995([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3a0d56(_0x227a0c(_0x367eb2+_0x150af7))!=_0x88fd4a[_0x286995([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x286995([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x286995([0x56,0x61,0x6c,0x69,0x64]);})[_0x286995([0x74,0x68,0x65,0x6e])](_0x59d317=>(_0x18dcb0(),_0x59d317),()=>{const _0x44e059=_0xdf932();return null==_0x44e059?(_0x18dcb0(),_0x286995([0x56,0x61,0x6c,0x69,0x64])):_0x286995(_0xd9b43d-_0x44e059>(0x4b4c47fb^_0x2c8dca)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x286995([0x74,0x68,0x65,0x6e])](_0x2a6218)[_0x286995([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2a6218(_0x286995([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xf269cf=0x6f762d7b^_0x2c8dca;function _0x18dcb0(){const _0x1584c9=_0x286995([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a0d56(_0x227a0c(_0x1969b0)),_0x5b4342=_0x223ccd(_0x3a0d56(window[_0x286995([0x4d,0x61,0x74,0x68])][_0x286995([0x63,0x65,0x69,0x6c])](_0xd9b43d/_0xf269cf)));window[_0x286995([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x286995([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1584c9,_0x5b4342);}function _0xdf932(){const _0x3a1877=_0x286995([0x6c,0x6c,0x63,0x74,0x2d])+_0x3a0d56(_0x227a0c(_0x1969b0)),_0x5aa7a9=window[_0x286995([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x286995([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a1877);return _0x5aa7a9?window[_0x286995([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x223ccd(_0x5aa7a9),0x10)*_0xf269cf:null;}function _0x5bc862(_0x530fea){return new window[(_0x286995([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x692dd3,_0x4ca3fe)=>{_0x530fea[_0x286995([0x74,0x68,0x65,0x6e])](_0x692dd3,_0x4ca3fe),window[_0x286995([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ca3fe,0x6f41173b^_0x2c8dca);});}}_0x5a5a62[_0x286995([0x6f,0x6e])](_0x286995([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52defd,_0x304327)=>{if(_0x304327[0x0]!=_0x1969b0)return _0x2a6218(_0x286995([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x304327[0x1]={..._0x304327[0x1],[_0x286995([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x367eb2};},{[_0x286995([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x286995([0x68,0x69,0x67,0x68])}),_0x5a5a62[_0x286995([0x6f,0x6e])](_0x286995([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x56f0cb=>{_0x3b0de8(_0x56f0cb[_0x286995([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x21c2d7=!0x0,_0x219865(_0x56f0cb[_0x286995([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x286995([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x286995([0x6c,0x6f,0x77])}),_0x11167f[_0x286995([0x74,0x68,0x65,0x6e])](()=>{_0x21c2d7||_0x2a6218(_0x286995([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x37d4e8(){return _0x5a5a62[_0x286995([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x286995([0x76,0x69,0x65,0x77])][_0x286995([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x286995([0x61,0x75,0x74,0x6f]);}function _0x45c92a(){_0x5a5a62[_0x286995([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x286995([0x76,0x69,0x65,0x77])][_0x286995([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x286995([0x61,0x75,0x74,0x6f]);}}function _0x597750(_0xaeeca8){const _0x115031=[new window[(_0x286995([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20d7a0=>setTimeout(_0x20d7a0,0x6f49fd37^_0x2c8dca)),_0x11167f[_0x286995([0x74,0x68,0x65,0x6e])](()=>new window[(_0x286995([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x327309=>{let _0x484b31=0x0;_0x5a5a62[_0x286995([0x6d,0x6f,0x64,0x65,0x6c])][_0x286995([0x6f,0x6e])](_0x286995([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2338ca,_0x4a2bf5)=>{_0x4a2bf5[0x0][_0x286995([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x484b31++,_0x484b31==(0x6f40c613^_0x2c8dca)&&(_0x327309(),_0x2338ca[_0x286995([0x6f,0x66,0x66])]());});}))];return window[_0x286995([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x286995([0x72,0x61,0x63,0x65])](_0x115031)[_0x286995([0x74,0x68,0x65,0x6e])](()=>_0xaeeca8);}async function _0x112d81(){await _0x11167f;const _0x459783=_0x5a5a62['commands'][_0x286995([0x67,0x65,0x74])](_0x286995([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x459783&&_0x459783[_0x286995([0x6f,0x6e])](_0x286995([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x1a664e=>{_0x1a664e['stop']();},{'priority':_0x286995([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0x5a5a62[_0x286995([0x6d,0x6f,0x64,0x65,0x6c])][_0x286995([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ea4e3,_0x5a5a62[_0x286995([0x6d,0x6f,0x64,0x65,0x6c])][_0x286995([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ea4e3,_0x5a5a62[_0x286995([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x286995([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2b1f22(_0x14f430){const _0x53af6f=_0x5bc368();_0x5a5a62[_0x53af6f]=_0x286995([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x14f430,_0x14f430!=_0x286995([0x56,0x61,0x6c,0x69,0x64])&&_0x112d81();}function _0x5bc368(){const _0x4fad5d=window[_0x286995([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x286995([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x286995([0x6e,0x6f,0x77])]())[_0x286995([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x286995([0x2e]),'');let _0x396085=_0x286995([0x44]);for(let _0x1aa59c=0x0;_0x1aa59c<_0x4fad5d[_0x286995([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1aa59c+=0x2){let _0x4f9ada=window[_0x286995([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fad5d[_0x286995([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1aa59c,_0x1aa59c+0x2));_0x4f9ada>=_0x1e2958[_0x286995([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f9ada-=_0x1e2958[_0x286995([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x396085+=_0x1e2958[_0x4f9ada];}return _0x396085;}function _0x544a6d(){const _0x48b736=_0x4b67e2[_0x286995([0x73,0x70,0x6c,0x69,0x74])](_0x286995([0x2e]));if(0x3!=_0x48b736[_0x286995([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x43905e(_0x48b736[0x1]);function _0x43905e(_0x55360d){const _0x2cdf77=_0x1306a2(_0x55360d);return _0x2cdf77&&_0x5a740b()?_0x2cdf77:null;function _0x5a740b(){const _0xc9a274=_0x2cdf77[_0x286995([0x6a,0x74,0x69])],_0x12b033=window[_0x286995([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc9a274[_0x286995([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc9a274[_0x286995([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33d91c={..._0x2cdf77,[_0x286995([0x6a,0x74,0x69])]:_0xc9a274[_0x286995([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc9a274[_0x286995([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33d91c[_0x286995([0x76,0x63])],_0x227a0c(_0x33d91c)==_0x12b033;}}}async function _0x4b6dce(){let _0xac30da=!0x0;try{const _0x323c43=_0x4b67e2[_0x286995([0x73,0x70,0x6c,0x69,0x74])](_0x286995([0x2e])),[_0x52d460,_0x2195e8,_0x59683e]=_0x323c43;return _0x4d44f3(_0x52d460),await _0x330150(_0x52d460,_0x2195e8,_0x59683e),_0xac30da;}catch{return!0x1;}function _0x4d44f3(_0xcca63b){const _0x50c98a=_0x1306a2(_0xcca63b);_0x50c98a&&_0x50c98a[_0x286995([0x61,0x6c,0x67])]==_0x286995([0x45,0x53,0x32,0x35,0x36])||(_0xac30da=!0x1);}async function _0x330150(_0x5b9265,_0x4c9368,_0xb69f9e){const _0x47b732=window[_0x286995([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x286995([0x66,0x72,0x6f,0x6d])](_0x1b48d8(_0xb69f9e),_0x3e833f=>_0x3e833f[_0x286995([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34039d=new window[(_0x286995([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x286995([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b9265+_0x286995([0x2e])+_0x4c9368),_0x2aab22=window[_0x286995([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x286995([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2aab22)return;const _0x3322b6=await _0x2aab22[_0x286995([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x286995([0x6a,0x77,0x6b]),_0x814610,{[_0x286995([0x6e,0x61,0x6d,0x65])]:_0x286995([0x45,0x43,0x44,0x53,0x41]),[_0x286995([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x286995([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x286995([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2aab22[_0x286995([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x286995([0x6e,0x61,0x6d,0x65])]:_0x286995([0x45,0x43,0x44,0x53,0x41]),[_0x286995([0x68,0x61,0x73,0x68])]:{[_0x286995([0x6e,0x61,0x6d,0x65])]:_0x286995([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3322b6,_0x47b732,_0x34039d)||(_0xac30da=!0x1);}}function _0x1306a2(_0x44d41d){return _0x44d41d[_0x286995([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x286995([0x65,0x79]))?JSON[_0x286995([0x70,0x61,0x72,0x73,0x65])](_0x1b48d8(_0x44d41d)):null;}function _0x1b48d8(_0x3089df){return window[_0x286995([0x61,0x74,0x6f,0x62])](_0x3089df[_0x286995([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x286995([0x2b]))[_0x286995([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x286995([0x2f])));}function _0x227a0c(_0x37db01){let _0x28299f=0x1505;function _0x2145ef(_0xfce58d){for(let _0xc6556c=0x0;_0xc6556c<_0xfce58d[_0x286995([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc6556c++){const _0xf3f07=_0xfce58d[_0x286995([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc6556c);_0x28299f=(_0x28299f<<0x5)+_0x28299f+_0xf3f07,_0x28299f&=_0x28299f;}}function _0x13db8f(_0x3d5a28){Array[_0x286995([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d5a28)?_0x3d5a28[_0x286995([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x13db8f):_0x3d5a28&&typeof _0x3d5a28==_0x286995([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x286995([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d5a28)[_0x286995([0x73,0x6f,0x72,0x74])]()[_0x286995([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1bb92f,_0x5ee252])=>{_0x2145ef(_0x1bb92f),_0x13db8f(_0x5ee252);}):_0x2145ef(window[_0x286995([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d5a28));}return _0x13db8f(_0x37db01),_0x28299f>>>0x0;}function _0x3a0d56(_0x121b91){return _0x121b91[_0x286995([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x286995([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x286995([0x30]));}function _0x223ccd(_0x26d456){return _0x26d456[_0x286995([0x73,0x70,0x6c,0x69,0x74])]('')[_0x286995([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x286995([0x6a,0x6f,0x69,0x6e])]('');}function _0x3ea4e3(){}function _0x286995(_0x2240ce){return _0x2240ce['map'](_0x4ef331=>String['fromCharCode'](_0x4ef331))['join']('');}_0x2b1f22(await _0x314faf());}(this);}}class ExportInlineStyles extends _0x89494b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[ExportInlineStylesEditing];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x54ad78=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x387bd7;for(const _0x57f7fd in _0x54ad78){const _0x1768fe=_0x57f7fd,_0x1657a7=_0x54ad78[_0x1768fe];if('exportInlineStylesLicenseKeyValid'==_0x1657a7||'exportInlineStylesLicenseKeyInvalid'==_0x1657a7||'exportInlineStylesLicenseKeyExpired'==_0x1657a7||'exportInlineStylesLicenseKeyDomainLimit'==_0x1657a7||'exportInlineStylesLicenseKeyNotAllowed'==_0x1657a7||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x1657a7||'exportInlineStylesLicenseKeyUsageLimit'==_0x1657a7){delete _0x54ad78[_0x1768fe],_0x387bd7=_0x1657a7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x387bd7&&_0x54ad78['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x387bd7&&_0x54ad78['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x387bd7&&_0x54ad78['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x387bd7&&_0x54ad78['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x387bd7&&_0x54ad78['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x387bd7&&_0x54ad78['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}export{ExportInlineStyles,ExportInlineStylesCommand,ExportInlineStylesEditing,p as dropImportantStyleSuffix};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-inline-styles",
3
- "version": "48.1.0",
3
+ "version": "48.8.1-alpha.0",
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.1.0",
38
- "@ckeditor/ckeditor5-engine": "48.1.0",
39
- "@ckeditor/ckeditor5-utils": "48.1.0",
37
+ "@ckeditor/ckeditor5-core": "48.8.1-alpha.0",
38
+ "@ckeditor/ckeditor5-engine": "48.8.1-alpha.0",
39
+ "@ckeditor/ckeditor5-utils": "48.8.1-alpha.0",
40
40
  "specificity": "0.4.1"
41
41
  },
42
42
  "files": [