@ckeditor/ckeditor5-export-inline-styles
Version:
The export with inline styles feature for CKEditor 5.
23 lines • 28.8 kB
JavaScript
/*
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
*
*
*
*
* +---------------------------------------------------------------------------------+
* | |
* | Hello stranger! |
* | |
* | |
* | What you're currently looking at is the source code of a legally protected, |
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
* | are forbidden and will result in legal consequences. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
import{Command as _0x386936,Plugin as _0x5a4835}from'@ckeditor/ckeditor5-core/dist/index.js';import{collectStylesheets as _0x1259c2,createElement as _0x70b2bb,uid as _0xd51822}from'@ckeditor/ckeditor5-utils/dist/index.js';import{calculate as _0xa6c8c0,compare as _0x286078}from'specificity';import{StylesMap as _0x2a80cb,addMarginRules as _0x2f3346,addPaddingRules as _0x24063a}from'@ckeditor/ckeditor5-engine/dist/index.js';function C(_0x4899e2){const _0x351854=[];let _0xa7099='',_0x13589e=0x0;for(;_0x13589e<_0x4899e2['length'];){const _0xf67ad8=_0x4899e2[_0x13589e];if('('===_0xf67ad8){const _0xe9426c=M(_0x4899e2,_0x13589e+0x1);if(-0x1===_0xe9426c)return[];_0xa7099+=_0x4899e2['slice'](_0x13589e,_0xe9426c+0x1),_0x13589e=_0xe9426c+0x1;}else','!==_0xf67ad8||_0xa7099['endsWith']('\x5c')?(_0xa7099+=_0xf67ad8,_0x13589e++):(_0x351854['push'](_0xa7099['trim']()),_0xa7099='',_0x13589e++);}return _0xa7099['trim']()&&_0x351854['push'](_0xa7099['trim']()),_0x351854['filter'](Boolean);}function M(_0x2143ed,_0x372f7f){let _0x3a1838=0x1;for(let _0x226e9a=_0x372f7f;_0x226e9a<_0x2143ed['length'];_0x226e9a++){const _0x5bd831=_0x2143ed[_0x226e9a];if('('===_0x5bd831)_0x3a1838++;else{if(')'===_0x5bd831&&(_0x3a1838--,0x0===_0x3a1838))return _0x226e9a;}}return-0x1;}function g(_0x4889c3){return _0x4889c3['replace'](/!\s*important/i,'')['trim']();}function d(_0xa9a98,_0x56dc95){const _0xdb874d=new Map(),_0x2fe968=_0x356443=>_0xdb874d['has'](_0x356443)?_0xdb874d['get'](_0x356443):_0xa9a98(_0x356443);for(const [_0x3f7e63,_0x101434]of _0x56dc95['getStylesEntries']())if(_0x101434&&_0x3f7e63['startsWith']('--')){const _0x387c6c=b(_0x2fe968,_0x101434);_0xdb874d['set'](_0x3f7e63,_0x387c6c),_0x56dc95['remove'](_0x3f7e63);}for(const [_0x385bcf,_0x28001f]of _0x56dc95['getStylesEntries']())if(_0x28001f){const _0x5ee3d0=b(_0x2fe968,_0x28001f);_0x56dc95['set'](_0x385bcf,_0x5ee3d0);}return _0xdb874d;}function b(_0x144bdb,_0x150e52){return function(_0x128b14,_0x2a7cb5){let _0x59a277='',_0x14f021=0x0;for(;_0x14f021<_0x128b14['length'];){const _0x1aa12a=_0x128b14['indexOf']('var(',_0x14f021);if(-0x1===_0x1aa12a){_0x59a277+=_0x128b14['slice'](_0x14f021);break;}_0x59a277+=_0x128b14['slice'](_0x14f021,_0x1aa12a);const _0x116703=_0x1aa12a+0x4,_0x37de9c=M(_0x128b14,_0x116703);_0x59a277+=_0x2a7cb5(_0x128b14['substring'](_0x116703,_0x37de9c)),_0x14f021=_0x37de9c+0x1;}return _0x59a277;}(_0x150e52,_0x2e5a55=>{const [_0x21fee1,_0x822fd]=C(_0x2e5a55),_0x917b29=_0x144bdb(_0x21fee1);return void 0x0!==_0x917b29?_0x917b29:_0x822fd?b(_0x144bdb,_0x822fd):'var('+_0x21fee1+')';});}async function r(_0x53ad18){const _0x93ddf4=[await _0x1259c2(_0x53ad18['stylesheets']),_0x53ad18['inlineCss']]['filter'](_0x15b338=>_0x15b338&&_0x15b338['length'])['join']('\x0a'),_0x23635d=await async function(_0x34b034,_0x5284e7){const _0x28c426=new CSSStyleSheet();return await _0x28c426['replace'](_0x5284e7),w(Array['from'](_0x28c426['cssRules'])['filter'](_0x510c96=>_0x510c96 instanceof CSSStyleRule))['flatMap'](({selectorText:_0x28a502,contentCssText:_0x2de3c6})=>{const _0x40fb19=C(_0x28a502),_0x49650e=new _0x2a80cb(_0x34b034)['setTo'](_0x2de3c6);return _0x40fb19['map'](_0x26fd2f=>({'stylesMap':_0x49650e,'flatSelector':_0x26fd2f,'specificity':_0xa6c8c0(_0x26fd2f)[0x0]['specificityArray']}));})['sort']((_0x418302,_0x3e018e)=>_0x286078(_0x418302['specificity'],_0x3e018e['specificity']));}(_0x53ad18['stylesProcessor'],_0x93ddf4);return{'parsedCssRules':_0x23635d,'rootCssVariables':function(_0x49c5e8){const _0x3bf55c=new Map();for(const {stylesMap:_0x354187,flatSelector:_0x529115}of _0x49c5e8){if(':root'!==_0x529115)continue;const _0x108404=d(_0x3bf55c['get']['bind'](_0x3bf55c),_0x354187);for(const [_0x5efc7d,_0x3fe5fd]of _0x108404)_0x3bf55c['set'](_0x5efc7d,_0x3fe5fd);}return _0x3bf55c;}(_0x23635d)};}function w(_0x387542,_0x1509da=''){return _0x387542['flatMap'](_0x390635=>{const {selectorText:_0x576b61,cssText:_0x20ca72,cssRules:_0x55b712}=_0x390635;if(!_0x576b61)return[];const _0x108e43=_0x576b61['replace'](/&/g,_0x1509da);let _0xaa7920=_0x20ca72['replace'](_0x576b61,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x55b712||!_0x55b712['length'])return[{'selectorText':_0x108e43,'contentCssText':_0xaa7920}];for(const _0x2aac96 of _0x55b712)_0xaa7920=_0xaa7920['replace'](_0x2aac96['cssText'],'')['trim']();return[{'selectorText':_0x108e43,'contentCssText':_0xaa7920},...w(Array['from'](_0x55b712),_0x108e43)];});}function a(_0x4e8c0a,_0x2d27ce){const _0x4f76e7=new _0x2a80cb(_0x4e8c0a);for(const _0x38195c of _0x2d27ce){let _0x4f3399=null;if(_0x4f3399='string'==typeof _0x38195c?new _0x2a80cb(_0x4e8c0a)['setTo'](_0x38195c):_0x38195c,_0x4f3399){for(const [_0x16d2a9,_0x15b9e9]of _0x4f3399['getStylesEntries']())_0x4f76e7['set'](_0x16d2a9,_0x15b9e9);}}return _0x4f76e7;}class h extends _0x386936{['_stylesProcessor'];constructor(_0x490d3d){super(_0x490d3d),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x2f3346(this['_stylesProcessor']),_0x24063a(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x167a33){const _0x33c22f=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x2db4f8}=this['editor']['locale'],{rootName:_0x2ab477='main',dataControllerDowncastOptions:_0x2362cb={},transformations:_0x23c4da=_0x33c22f['transformations']||[]}=_0x167a33||{};this['isBusy']=!0x0,this['refresh']();const _0x2f042d=this['_getRootDataHTMLFragment'](_0x2ab477,_0x2362cb),_0x418465=_0x70b2bb(_0x2f042d['ownerDocument'],'div',{'dir':_0x2db4f8,'class':'ck-content'},[_0x2f042d]);return this['_collectAndApplyStyles'](_0x23c4da,_0x418465)['then'](()=>{const _0x1c6aca=function(_0x4abae6){const _0x1abeb0=_0x4abae6['ownerDocument']['createDocumentFragment']();for(;_0x4abae6['firstChild'];)_0x1abeb0['appendChild'](_0x4abae6['firstChild']);return _0x1abeb0;}(_0x418465),_0x5d4cbb=_0x418465['getAttribute']('style');if(_0x5d4cbb)for(const _0x3d147e of _0x1c6aca['children']){const _0x20a8e8=_0x3d147e['getAttribute']('style'),_0x5b162a=a(this['_stylesProcessor'],[_0x5d4cbb,_0x20a8e8]);_0x3d147e['setAttribute']('style',m(_0x5b162a));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x1c6aca);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0x419fa9,_0x3afc84){const {data:_0x2f4291,model:_0x17d7b9}=this['editor'],_0x554eaa=_0x17d7b9['document']['getRoot'](_0x419fa9),_0x47464f=_0x2f4291['toView'](_0x554eaa,_0x3afc84);return _0x2f4291['htmlProcessor']['domConverter']['viewToDom'](_0x47464f);}async['_collectAndApplyStyles'](_0x28461b,_0x4f8e07){const {stylesheets:_0xb3fd88,inlineCss:_0x498702,stripCssClasses:_0x2335c8}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x447d44,rootCssVariables:_0x461962}=await r({'stylesheets':_0xb3fd88||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x498702});this['_processElementTree']({'transformations':_0x28461b,'parsedCssRules':_0x447d44,'element':_0x4f8e07,'stripCssClasses':_0x2335c8,'parentCSSVariablesLookup':_0x461962['get']['bind'](_0x461962)});}['_processElementTree']({element:_0x1cd16e,parsedCssRules:_0x4c52fb,parentCSSVariablesLookup:_0x99bfd6,stripCssClasses:_0x594fdd,transformations:_0x32acb5}){const {stylesMap:_0xf5b846,localCSSVariables:_0x513a55}=function(_0x5642af){const _0x1aa899=_0x5642af['element']['getAttribute']('style')||'',_0x555ee6=_0x5642af['parsedCssRules']['filter'](_0x1e9362=>_0x5642af['element']['matches'](_0x1e9362['flatSelector']))['map'](_0x32e501=>_0x32e501['stylesMap']),_0x47d3f8=a(_0x5642af['stylesProcessor'],[..._0x555ee6,_0x1aa899]);return{'localCSSVariables':d(_0x5642af['fallbackCSSVariablesLookup'],_0x47d3f8),'stylesMap':_0x47d3f8};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x99bfd6,'parsedCssRules':_0x4c52fb,'element':_0x1cd16e});for(const _0x3dd1ee of _0x32acb5)_0x3dd1ee(_0x1cd16e,_0xf5b846);_0xf5b846['size']?_0x1cd16e['setAttribute']('style',m(_0xf5b846)):_0x1cd16e['removeAttribute']('style');const _0xb00bed=_0xf837a2=>_0x513a55['has'](_0xf837a2)?_0x513a55['get'](_0xf837a2):_0x99bfd6(_0xf837a2);for(const _0x44d4e7 of _0x1cd16e['children'])_0x44d4e7 instanceof HTMLElement&&this['_processElementTree']({'element':_0x44d4e7,'parentCSSVariablesLookup':_0xb00bed,'parsedCssRules':_0x4c52fb,'stripCssClasses':_0x594fdd,'transformations':_0x32acb5});_0x594fdd&&_0x1cd16e['removeAttribute']('class');}}function m(_0x38ed56){return _0x38ed56['getStylesEntries']()['map'](_0x11d411=>_0x11d411['join'](':'))['join'](';')+';';}class i extends _0x5a4835{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 h(this['editor']));}['afterInit'](){!async function(_0x1649c3){const _0x45de27=_0x123ffe([0x73,0x30,0x42,0x32,0x52,0x41,0x56,0x53,0x70,0x31,0x75,0x78,0x6c,0x57,0x62,0x71,0x46,0x76,0x4f,0x6b,0x4b,0x45,0x4a,0x54,0x38,0x49,0x51,0x50,0x47,0x4d,0x44,0x58,0x36,0x77,0x63,0x69,0x5a,0x4e,0x74,0x68,0x39,0x6a,0x6e,0x33,0x72,0x6f,0x59,0x66,0x6d,0x55,0x61,0x67,0x4c,0x79,0x7a,0x37,0x43,0x64,0x34,0x35,0x48,0x65]),_0x42deff=0x4ab3815e,_0x214ae2=0x4ab4e896^_0x42deff,_0x153fd4=window[_0x123ffe([0x44,0x61,0x74,0x65])][_0x123ffe([0x6e,0x6f,0x77])](),_0x3358a7=_0x1649c3[_0x123ffe([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d4203=new window[(_0x123ffe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ed832=>{_0x3358a7[_0x123ffe([0x6f,0x6e,0x63,0x65])](_0x123ffe([0x72,0x65,0x61,0x64,0x79]),_0x2ed832);}),_0x10c2f0={[_0x123ffe([0x6b,0x74,0x79])]:_0x123ffe([0x45,0x43]),[_0x123ffe([0x75,0x73,0x65])]:_0x123ffe([0x73,0x69,0x67]),[_0x123ffe([0x63,0x72,0x76])]:_0x123ffe([0x50,0x2d,0x32,0x35,0x36]),[_0x123ffe([0x78])]:_0x123ffe([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]),[_0x123ffe([0x79])]:_0x123ffe([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]),[_0x123ffe([0x61,0x6c,0x67])]:_0x123ffe([0x45,0x53,0x32,0x35,0x36])},_0x1859c5=_0x3358a7[_0x123ffe([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x123ffe([0x67,0x65,0x74])](_0x123ffe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x78629f(){let _0x1dc891,_0x278fff=null,_0x155e86=null;try{if(_0x1859c5==_0x123ffe([0x47,0x50,0x4c]))return _0x123ffe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1dc891=_0x519832(),!_0x1dc891)return _0x123ffe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1dc891[_0x123ffe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x155e86=_0x18440d(_0x1dc891[_0x123ffe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1dc891[_0x123ffe([0x6a,0x74,0x69])])),await _0x40c7cb()?_0xe974e7()?_0x2482c9()?_0x123ffe([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x35fcca()?(_0x1dc891[_0x123ffe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x123ffe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x278fff=_0x41388(_0x123ffe([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1dc891[_0x123ffe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x123ffe([0x74,0x72,0x69,0x61,0x6c])&&(_0x278fff=_0x41388(_0x123ffe([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3f8d7a()):_0x123ffe([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x123ffe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x123ffe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x123ffe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2482c9(){const _0x46cd1d=[_0x123ffe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x123ffe([0x74,0x72,0x69,0x61,0x6c])][_0x123ffe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dc891[_0x123ffe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x153fd4/0x3e8:0xe10*_0x214ae2;return _0x1dc891[_0x123ffe([0x65,0x78,0x70])]<_0x46cd1d;}function _0xe974e7(){const _0x2ea951=_0x1dc891[_0x123ffe([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2ea951&&(!!_0x2ea951[_0x123ffe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x123ffe([0x2a]))||!!_0x2ea951[_0x123ffe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x123ffe([0x45,0x49,0x53])));}function _0x35fcca(){const _0x301da0=_0x1dc891[_0x123ffe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x301da0||0x0==_0x301da0[_0x123ffe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x94d202}=new URL(window[_0x123ffe([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x301da0[_0x123ffe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x94d202))return!0x0;const _0x4d8fbd=_0x94d202[_0x123ffe([0x73,0x70,0x6c,0x69,0x74])](_0x123ffe([0x2e]));return _0x301da0[_0x123ffe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50faa9=>_0x50faa9[_0x123ffe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x123ffe([0x2a])))[_0x123ffe([0x6d,0x61,0x70])](_0x2d3faa=>_0x2d3faa[_0x123ffe([0x73,0x70,0x6c,0x69,0x74])](_0x123ffe([0x2e])))[_0x123ffe([0x73,0x6f,0x6d,0x65])](_0x34c627=>_0x4d8fbd[_0x123ffe([0x65,0x76,0x65,0x72,0x79])]((_0x4b3a9a,_0x38ba38)=>_0x34c627[_0x38ba38]===_0x4b3a9a||_0x34c627[_0x38ba38]===_0x123ffe([0x2a])));}function _0x3f8d7a(){return _0x278fff&&_0x155e86?new window[(_0x123ffe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4296fa,_0x1e5cef)=>{_0x278fff[_0x123ffe([0x74,0x68,0x65,0x6e])](_0x4296fa,_0x1e5cef),_0x155e86[_0x123ffe([0x74,0x68,0x65,0x6e])](_0xb55479=>{_0xb55479!=_0x123ffe([0x56,0x61,0x6c,0x69,0x64])&&_0x4296fa(_0xb55479);},_0x1e5cef);}):_0x278fff||_0x155e86||_0x123ffe([0x56,0x61,0x6c,0x69,0x64]);}}function _0x18440d(_0x1408f9,_0x172b03){return new window[(_0x123ffe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4090f=>{if(_0x51a0ca())return _0x4090f(_0x123ffe([0x56,0x61,0x6c,0x69,0x64]));_0x36599b(),_0x3358a7[_0x123ffe([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x123ffe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ef712=!0x1;const _0x31092c=_0xd51822();function _0x2d7f8f(_0x945308){return!!_0x945308&&(typeof _0x945308===_0x123ffe([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x945308===_0x123ffe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x945308[_0x123ffe([0x74,0x68,0x65,0x6e])]===_0x123ffe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x945308[_0x123ffe([0x63,0x61,0x74,0x63,0x68])]===_0x123ffe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5d914c(_0x1618af){_0x38fd59(_0x1618af)[_0x123ffe([0x74,0x68,0x65,0x6e])](_0xd20e9a=>{if(!_0xd20e9a||_0xd20e9a[_0x123ffe([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x123ffe([0x6f,0x6b]))return _0x123ffe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5877ab(_0x564701(_0x31092c+_0x172b03))!=_0xd20e9a[_0x123ffe([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x123ffe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x123ffe([0x56,0x61,0x6c,0x69,0x64]);})[_0x123ffe([0x74,0x68,0x65,0x6e])](_0x113a81=>(_0x232915(),_0x113a81),()=>{const _0x3bc268=_0x56ca0c();return null==_0x3bc268?(_0x232915(),_0x123ffe([0x56,0x61,0x6c,0x69,0x64])):_0x123ffe(_0x153fd4-_0x3bc268>(0x6ebf055e^_0x42deff)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x123ffe([0x74,0x68,0x65,0x6e])](_0x4090f)[_0x123ffe([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4090f(_0x123ffe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x436778=0x4a856fde^_0x42deff;function _0x232915(){const _0x1e8502=_0x123ffe([0x6c,0x6c,0x63,0x74,0x2d])+_0x5877ab(_0x564701(_0x1408f9)),_0x2ab0c0=_0x16d6d2(_0x5877ab(window[_0x123ffe([0x4d,0x61,0x74,0x68])][_0x123ffe([0x63,0x65,0x69,0x6c])](_0x153fd4/_0x436778)));window[_0x123ffe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x123ffe([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e8502,_0x2ab0c0);}function _0x56ca0c(){const _0x3a145e=_0x123ffe([0x6c,0x6c,0x63,0x74,0x2d])+_0x5877ab(_0x564701(_0x1408f9)),_0x876c1c=window[_0x123ffe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x123ffe([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a145e);return _0x876c1c?window[_0x123ffe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16d6d2(_0x876c1c),0x10)*_0x436778:null;}function _0x38fd59(_0x325aee){return new window[(_0x123ffe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42695c,_0x3e721d)=>{_0x325aee[_0x123ffe([0x74,0x68,0x65,0x6e])](_0x42695c,_0x3e721d),window[_0x123ffe([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e721d,0x4ab2559e^_0x42deff);});}}_0x3358a7[_0x123ffe([0x6f,0x6e])](_0x123ffe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x17ce77,_0x633e9c)=>{if(_0x633e9c[0x0]!=_0x1408f9)return _0x4090f(_0x123ffe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x633e9c[0x1]={..._0x633e9c[0x1],[_0x123ffe([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31092c};},{[_0x123ffe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x123ffe([0x68,0x69,0x67,0x68])}),_0x3358a7[_0x123ffe([0x6f,0x6e])](_0x123ffe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55fc7e=>{_0x2d7f8f(_0x55fc7e[_0x123ffe([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ef712=!0x0,_0x5d914c(_0x55fc7e[_0x123ffe([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x123ffe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x123ffe([0x6c,0x6f,0x77])}),_0x1d4203[_0x123ffe([0x74,0x68,0x65,0x6e])](()=>{_0x4ef712||_0x4090f(_0x123ffe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x51a0ca(){return _0x3358a7[_0x123ffe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x123ffe([0x76,0x69,0x65,0x77])][_0x123ffe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x123ffe([0x61,0x75,0x74,0x6f]);}function _0x36599b(){_0x3358a7[_0x123ffe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x123ffe([0x76,0x69,0x65,0x77])][_0x123ffe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x123ffe([0x61,0x75,0x74,0x6f]);}}function _0x41388(_0xc069fc){const _0x58aa69=[new window[(_0x123ffe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ff10f=>setTimeout(_0x4ff10f,0x4ababf92^_0x42deff)),_0x1d4203[_0x123ffe([0x74,0x68,0x65,0x6e])](()=>new window[(_0x123ffe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5855c5=>{let _0x396e81=0x0;_0x3358a7[_0x123ffe([0x6d,0x6f,0x64,0x65,0x6c])][_0x123ffe([0x6f,0x6e])](_0x123ffe([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xf6f267,_0x28e875)=>{_0x28e875[0x0][_0x123ffe([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x396e81++,_0x396e81==(0x4ab380a6^_0x42deff)&&(_0x5855c5(),_0xf6f267[_0x123ffe([0x6f,0x66,0x66])]());});}))];return window[_0x123ffe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x123ffe([0x72,0x61,0x63,0x65])](_0x58aa69)[_0x123ffe([0x74,0x68,0x65,0x6e])](()=>_0xc069fc);}async function _0x4f04a0(){await _0x1d4203;const _0x11976f=_0x3358a7['commands'][_0x123ffe([0x67,0x65,0x74])](_0x123ffe([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x11976f&&_0x11976f[_0x123ffe([0x6f,0x6e])](_0x123ffe([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x3f5adc=>{_0x3f5adc['stop']();},{'priority':_0x123ffe([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0x3358a7[_0x123ffe([0x6d,0x6f,0x64,0x65,0x6c])][_0x123ffe([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33bc44,_0x3358a7[_0x123ffe([0x6d,0x6f,0x64,0x65,0x6c])][_0x123ffe([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33bc44,_0x3358a7[_0x123ffe([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x123ffe([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x315400(_0x56aea2){const _0x5f1af9=_0x847a8c();_0x3358a7[_0x5f1af9]=_0x123ffe([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])+_0x56aea2,_0x56aea2!=_0x123ffe([0x56,0x61,0x6c,0x69,0x64])&&_0x4f04a0();}function _0x847a8c(){const _0xd6993b=window[_0x123ffe([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x123ffe([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x123ffe([0x6e,0x6f,0x77])]())[_0x123ffe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x123ffe([0x2e]),'');let _0x920d24=_0x123ffe([0x73]);for(let _0x3b63c5=0x0;_0x3b63c5<_0xd6993b[_0x123ffe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b63c5+=0x2){let _0x3043f0=window[_0x123ffe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd6993b[_0x123ffe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b63c5,_0x3b63c5+0x2));_0x3043f0>=_0x45de27[_0x123ffe([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3043f0-=_0x45de27[_0x123ffe([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x920d24+=_0x45de27[_0x3043f0];}return _0x920d24;}function _0x519832(){const _0x45f6c9=_0x1859c5[_0x123ffe([0x73,0x70,0x6c,0x69,0x74])](_0x123ffe([0x2e]));if(0x3!=_0x45f6c9[_0x123ffe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x111939(_0x45f6c9[0x1]);function _0x111939(_0x5e69f3){const _0x2d3bed=_0x50cf90(_0x5e69f3);return _0x2d3bed&&_0x5a2fc6()?_0x2d3bed:null;function _0x5a2fc6(){const _0x13c815=_0x2d3bed[_0x123ffe([0x6a,0x74,0x69])],_0x449188=window[_0x123ffe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13c815[_0x123ffe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13c815[_0x123ffe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3f79bd={..._0x2d3bed,[_0x123ffe([0x6a,0x74,0x69])]:_0x13c815[_0x123ffe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x13c815[_0x123ffe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3f79bd[_0x123ffe([0x76,0x63])],_0x564701(_0x3f79bd)==_0x449188;}}}async function _0x40c7cb(){let _0x4a340c=!0x0;try{const _0x5ba490=_0x1859c5[_0x123ffe([0x73,0x70,0x6c,0x69,0x74])](_0x123ffe([0x2e])),[_0x20f03f,_0x61c4e8,_0x557e22]=_0x5ba490;return _0x4e7359(_0x20f03f),await _0x369b81(_0x20f03f,_0x61c4e8,_0x557e22),_0x4a340c;}catch{return!0x1;}function _0x4e7359(_0x35950b){const _0x38ac7f=_0x50cf90(_0x35950b);_0x38ac7f&&_0x38ac7f[_0x123ffe([0x61,0x6c,0x67])]==_0x123ffe([0x45,0x53,0x32,0x35,0x36])||(_0x4a340c=!0x1);}async function _0x369b81(_0x286f02,_0x50f418,_0x410d7a){const _0xe1e7f2=window[_0x123ffe([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x123ffe([0x66,0x72,0x6f,0x6d])](_0x2ff86a(_0x410d7a),_0x3d82c6=>_0x3d82c6[_0x123ffe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45378f=new window[(_0x123ffe([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x123ffe([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x286f02+_0x123ffe([0x2e])+_0x50f418),_0x2655ea=window[_0x123ffe([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x123ffe([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2655ea)return;const _0x37c7c9=await _0x2655ea[_0x123ffe([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x123ffe([0x6a,0x77,0x6b]),_0x10c2f0,{[_0x123ffe([0x6e,0x61,0x6d,0x65])]:_0x123ffe([0x45,0x43,0x44,0x53,0x41]),[_0x123ffe([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x123ffe([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x123ffe([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2655ea[_0x123ffe([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x123ffe([0x6e,0x61,0x6d,0x65])]:_0x123ffe([0x45,0x43,0x44,0x53,0x41]),[_0x123ffe([0x68,0x61,0x73,0x68])]:{[_0x123ffe([0x6e,0x61,0x6d,0x65])]:_0x123ffe([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x37c7c9,_0xe1e7f2,_0x45378f)||(_0x4a340c=!0x1);}}function _0x50cf90(_0x1e2d62){return _0x1e2d62[_0x123ffe([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x123ffe([0x65,0x79]))?JSON[_0x123ffe([0x70,0x61,0x72,0x73,0x65])](_0x2ff86a(_0x1e2d62)):null;}function _0x2ff86a(_0x11a1bc){return window[_0x123ffe([0x61,0x74,0x6f,0x62])](_0x11a1bc[_0x123ffe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x123ffe([0x2b]))[_0x123ffe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x123ffe([0x2f])));}function _0x564701(_0x736564){let _0x4babd8=0x1505;function _0x27280d(_0x520ee9){for(let _0x393b30=0x0;_0x393b30<_0x520ee9[_0x123ffe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x393b30++){const _0x6b4421=_0x520ee9[_0x123ffe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x393b30);_0x4babd8=(_0x4babd8<<0x5)+_0x4babd8+_0x6b4421,_0x4babd8&=_0x4babd8;}}function _0x309a0a(_0x135189){Array[_0x123ffe([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x135189)?_0x135189[_0x123ffe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x309a0a):_0x135189&&typeof _0x135189==_0x123ffe([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x123ffe([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x135189)[_0x123ffe([0x73,0x6f,0x72,0x74])]()[_0x123ffe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e1f38,_0x12575b])=>{_0x27280d(_0x1e1f38),_0x309a0a(_0x12575b);}):_0x27280d(window[_0x123ffe([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x135189));}return _0x309a0a(_0x736564),_0x4babd8>>>0x0;}function _0x5877ab(_0x808648){return _0x808648[_0x123ffe([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x123ffe([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x123ffe([0x30]));}function _0x16d6d2(_0x40ded7){return _0x40ded7[_0x123ffe([0x73,0x70,0x6c,0x69,0x74])]('')[_0x123ffe([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x123ffe([0x6a,0x6f,0x69,0x6e])]('');}function _0x33bc44(){}function _0x123ffe(_0x464bcb){return _0x464bcb['map'](_0x16f4b4=>String['fromCharCode'](_0x16f4b4))['join']('');}_0x315400(await _0x78629f());}(this);}}class n extends _0x5a4835{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[i];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x186453=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5596c9;for(const _0x292552 in _0x186453){const _0x1ec1fa=_0x292552,_0x2e2ed9=_0x186453[_0x1ec1fa];if('exportInlineStylesLicenseKeyValid'==_0x2e2ed9||'exportInlineStylesLicenseKeyInvalid'==_0x2e2ed9||'exportInlineStylesLicenseKeyExpired'==_0x2e2ed9||'exportInlineStylesLicenseKeyDomainLimit'==_0x2e2ed9||'exportInlineStylesLicenseKeyNotAllowed'==_0x2e2ed9||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x2e2ed9||'exportInlineStylesLicenseKeyTrialLimit'==_0x2e2ed9||'exportInlineStylesLicenseKeyUsageLimit'==_0x2e2ed9){delete _0x186453[_0x1ec1fa],_0x5596c9=_0x2e2ed9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x5596c9&&_0x186453['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x5596c9&&_0x186453['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x5596c9&&_0x186453['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x5596c9&&_0x186453['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x5596c9&&_0x186453['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyTrialLimit'==_0x5596c9&&_0x186453['_showLicenseError']('trialLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x5596c9&&_0x186453['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}export{n as ExportInlineStyles,h as ExportInlineStylesCommand,i as ExportInlineStylesEditing,g as dropImportantStyleSuffix};