@ckeditor/ckeditor5-uploadcare 45.2.0-alpha.5 → 45.2.0-alpha.6

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.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0xaee466,Command as _0x1ce9f7}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1ea4da,IconGooglePhotos as _0x271547,IconGoogleDrive as _0x1b1369,IconFacebook as _0x3f4fce,IconDropbox as _0x255bd0,IconUploadcareLink as _0x38bff4,IconUploadcareImageUpload as _0x331337,IconError as et,IconUploadcareImageEdit as _0x3dc6aa}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1a466a,MenuBarMenuListItemButtonView as _0x2a654b,View as _0x36f080,FocusCycler as _0x23eccb,Dialog as _0x323ccf,DialogViewPosition as _0xc240f6,SpinnerView as _0x235497,IconView as at,Notification as _0x540370}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5f2be3,DomEmitterMixin as _0x2bddcf,global as _0x2ccc18,getAncestors as _0x495a99,ObservableMixin as _0x1e3c8d,createElement as _0x216e8c,uid as _0x5b04ff}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3dbf47}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1d9fa1,info as _0x3c0947}from'@uploadcare/upload-client';import*as _0x39e4a3 from'@uploadcare/file-uploader';var o=function(_0x36e5ee){return _0x36e5ee['Local']='local',_0x36e5ee['URL']='url',_0x36e5ee['Dropbox']='dropbox',_0x36e5ee['GDrive']='gdrive',_0x36e5ee['Facebook']='facebook',_0x36e5ee['GPhotos']='gphotos',_0x36e5ee['OneDrive']='onedrive',_0x36e5ee;}({});function _(_0x341c54,_0x5b360d,_0x599e5){const t=_0x341c54['t'],_0x3a3204=_0x341c54['t'];switch(_0x5b360d){case o['Local']:return{'text':_0x3a3204('Insert'===_0x599e5?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3a3204('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x599e5?_0x3a3204('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3a3204('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x599e5?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x599e5?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x599e5?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x599e5?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x599e5?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5b360d;}}class e extends _0xaee466{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x29ed67=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x451896;for(const _0x5d9863 in _0x29ed67){const _0x2a68c0=_0x5d9863,_0xe824ad=_0x29ed67[_0x2a68c0];if('uploadcareLicenseKeyValid'==_0xe824ad||'uploadcareLicenseKeyInvalid'==_0xe824ad||'uploadcareLicenseKeyExpired'==_0xe824ad||'uploadcareLicenseKeyDomainLimit'==_0xe824ad||'uploadcareLicenseKeyNotAllowed'==_0xe824ad||'uploadcareLicenseKeyEvaluationLimit'==_0xe824ad||'uploadcareLicenseKeyTrialLimit'==_0xe824ad||'uploadcareLicenseKeyUsageLimit'==_0xe824ad){delete _0x29ed67[_0x2a68c0],_0x451896=_0xe824ad,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x451896&&_0x29ed67['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x451896&&_0x29ed67['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x451896&&_0x29ed67['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x451896&&_0x29ed67['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x451896&&_0x29ed67['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x451896&&_0x29ed67['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x451896&&_0x29ed67['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x581196}=this,_0x311935=_0x581196['commands']['get']('uploadcare');if(!_0x311935)return;const _0x1126af=this['_normalizeConfigSourceList'](_0x581196['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x45ef80,_0x3f8244)=>{const _0x5b16d6=this['_getIntegrationKey'](_0x3f8244['type']);return _0x45ef80[_0x5b16d6]||(_0x45ef80[_0x5b16d6]=[]),_0x45ef80[_0x5b16d6]['push'](_0x3f8244),_0x45ef80;},{});_0x581196['plugins']['has']('ImageInsertUI')&&_0x581196['commands']['get']('uploadcare')&&Object['entries'](_0x1126af)['forEach'](([_0x3730d2,_0x5d2497])=>{_0x581196['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3730d2,'observable':()=>_0x311935,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5d2497),'formViewCreator':()=>this['_createDropdownButtons'](_0x5d2497),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5d2497),'override':'assetManager'!==_0x3730d2});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x36c515){const {locale:_0x193d15}=this['editor'];return _0x36c515['map'](_0x15f08f=>{const _0x157501=_(_0x193d15,_0x15f08f,'Insert');switch(_0x15f08f){case o['Local']:return{'icon':_0x331337,'type':o['Local'],..._0x157501};case o['URL']:return{'icon':_0x38bff4,'type':o['URL'],..._0x157501};case o['Dropbox']:return{'icon':_0x255bd0,'type':o['Dropbox'],..._0x157501};case o['Facebook']:return{'icon':_0x3f4fce,'type':o['Facebook'],..._0x157501};case o['GDrive']:return{'icon':_0x1b1369,'type':o['GDrive'],..._0x157501};case o['GPhotos']:return{'icon':_0x271547,'type':o['GPhotos'],..._0x157501};case o['OneDrive']:return{'icon':_0x1ea4da,'type':o['OneDrive'],..._0x157501};}});}['_getIntegrationKey'](_0x509155){switch(_0x509155){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x882a07,_0x332f74){const _0x58fe81=this['editor'],_0x11e3b8=new _0x882a07(_0x58fe81['locale']),_0x5dbe3d=_0x58fe81['commands']['get']('uploadcare');return _0x11e3b8['bind']('isEnabled')['to'](_0x5dbe3d),_0x11e3b8['on']('execute',()=>{_0x5dbe3d['execute'](_0x332f74);}),_0x11e3b8;}['_createToolbarButton'](_0x31c24f){const {locale:_0x422e85}=this['editor'],_0x41b394=this['editor']['plugins']['get']('ImageInsertUI'),_0x513a53=_0x31c24f[0x0],_0xadf026=this['_createButton'](_0x1a466a,_0x513a53['type']);return _0xadf026['icon']=_0x513a53['icon'],_0xadf026['bind']('label')['to'](_0x41b394,'isImageSelected',_0x14f91d=>_(_0x422e85,_0x513a53['type'],_0x14f91d?'Replace':'Insert')['text']),_0xadf026['tooltip']=!0x0,_0xadf026;}['_createDropdownButtons'](_0x2c3c69){const {locale:_0x2ffe91}=this['editor'],_0x27541f=this['editor']['plugins']['get']('ImageInsertUI');return _0x2c3c69['map'](_0x57cbcd=>{const _0x18b963=this['_createButton'](_0x1a466a,_0x57cbcd['type']);return _0x18b963['withText']=!0x0,_0x18b963['icon']=_0x57cbcd['icon'],_0x18b963['bind']('label')['to'](_0x27541f,'isImageSelected',_0x3bd5e4=>_(_0x2ffe91,_0x57cbcd['type'],_0x3bd5e4?'Replace':'Insert')['text']),_0x18b963;});}['_createMenuBarButtons'](_0x584531){return _0x584531['map'](_0x50e4fb=>{const _0x3094ba=this['_createButton'](_0x2a654b,_0x50e4fb['type']);return _0x3094ba['icon']=_0x50e4fb['icon'],_0x3094ba['label']=_0x50e4fb['shortText'],_0x3094ba;});}}class q extends _0x36f080{['focusTracker'];['focusCycler'];constructor(_0x1038fb){super(_0x1038fb),this['focusTracker']=new _0x5f2be3(),this['focusCycler']=new _0x23eccb({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x2232d0){super(_0x2232d0),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x121951,_0xaf0caa){const _0x5d7145=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xcac567=>_0xcac567<=_0xaf0caa)['map'](_0x4ca38b=>_0x121951['replace'](/\/$/,'')+'/-/resize/'+_0x4ca38b+'x/\x20'+_0x4ca38b+'w');return{'imageFallbackUrl':_0x121951,'imageSources':[{'srcset':_0x5d7145['join'](',\x20'),'sizes':'(max-width:\x20'+_0xaf0caa+'px)\x20100vw,\x20'+_0xaf0caa+'px','type':'image/webp'}]};}function A(_0x175194,_0x24de19,_0xbcf7b3){const _0x197bf5=_0x175194['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x197bf5?parseInt(_0x197bf5[0x1],0xa):_0x24de19,'height':_0x197bf5?parseInt(_0x197bf5[0x2],0xa):_0xbcf7b3};}function m(_0x179007,_0x2deaa3){const _0x5723ff=Object['create'](_0x2bddcf),_0x10fdbe=_0x179007['plugins']['get']('ImageUtils'),_0x496adf=_0x179007['editing']['mapper']['toViewElement'](_0x2deaa3),_0x5aeb50=_0x10fdbe['findViewImgElement'](_0x496adf),_0x68d7b1=_0x179007['editing']['view']['domConverter']['viewToDom'](_0x5aeb50),_0x190485=_0x2deaa3['getAttribute']('width'),_0x525f88=_0x2deaa3['getAttribute']('height'),_0x1ec766='image-processing';_0x179007['editing']['view']['change'](_0x700e03=>{_0x700e03['addClass'](_0x1ec766,_0x496adf),_0x700e03['setStyle']('aspect-ratio',_0x190485+'/'+_0x525f88,_0x5aeb50);}),_0x5723ff['listenTo'](_0x68d7b1,'load',()=>{_0x5723ff['stopListening'](_0x68d7b1,'load'),_0x179007['editing']['view']['change'](_0x21096b=>{_0x21096b['removeClass'](_0x1ec766,_0x496adf),_0x21096b['removeStyle']('aspect-ratio',_0x5aeb50);});});}function V(_0x349122){if(Array['isArray'](_0x349122)){const _0x419f54=_0x349122['map'](V);return _0x5d2633=>_0x419f54['some'](_0x4d05c1=>_0x4d05c1(_0x5d2633));}if('origin'==_0x349122){const _0x5175eb=_0x2ccc18['window']['location']['origin'];return _0x39938d=>new URL(_0x39938d,_0x2ccc18['document']['baseURI'])['origin']==_0x5175eb;}return'function'==typeof _0x349122?_0x349122:_0x349122 instanceof RegExp?_0x4f4eca=>!(!_0x4f4eca['match'](_0x349122)&&!_0x4f4eca['replace'](/^https?:\/\//,'')['match'](_0x349122)):()=>!0x1;}function F(_0x320bf8,_0x43d7fa){return _0x495a99(_0x320bf8['target'])['includes'](_0x43d7fa);}class l extends/* #__PURE__ -- @preserve */
24
- _0x1e3c8d(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x17f74a,_0x524027,_0x537173){super(),this['_editor']=_0x17f74a,this['_editing']=_0x524027,this['_dialog']=_0x17f74a['plugins']['get'](_0x323ccf),this['_api']=_0x524027['ctxElement']['getAPI'](),this['_type']=_0x537173,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x7296af,model:_0x50a9c2}=this['_editor'],_0x5523d0=_0x50a9c2['document']['selection']['getSelectedElement'](),_0x41c3a7=_0x5523d0&&(_0x5523d0['is']('element','imageBlock')||_0x5523d0['is']('element','imageInline'));this['_formView']=new S(_0x7296af),this['_dialog']['show']({'id':'uploadCare','icon':_0x331337,'title':_(_0x7296af,this['_type'],_0x41c3a7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xc240f6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x172e16=>!F(_0x172e16,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x438a19}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x11ca62=>{const _0x29dcbc=_0x438a19['length'];for(const _0x49ee1d of _0x438a19){const _0x23cbd1=_0x49ee1d===_0x438a19[_0x29dcbc-0x1],{cdnUrl:_0x2f2a32,fileInfo:_0x2108a3}=_0x49ee1d;if(!_0x2f2a32||!_0x2108a3)continue;const {width:_0x5dfbaf,height:_0xf4bb9c}=_0x2108a3['imageInfo'],_0x258565=A(_0x2f2a32,_0x5dfbaf,_0xf4bb9c),_0xdbb9b1=E(_0x2f2a32,_0x258565['width']),_0x489514={'id':_0x2108a3['uuid'],'type':'image','attributes':{'imageDimension':_0x258565,..._0xdbb9b1}};this['_insertAsset'](_0x489514,_0x23cbd1,_0x11ca62);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3e2838=>{'idle'===_0x3e2838['detail']['status']&&!_0x3e2838['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4dc2f2,_0x56d879,_0x2306d5){const _0x377e48=this['_editor']['model']['document']['selection'],_0x122696=_0x377e48['getSelectedElement'](),_0x479a71=!(!_0x122696||!_0x122696['is']('element','imageInline'));_0x2306d5['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4dc2f2,_0x479a71),_0x56d879||_0x2306d5['setSelection'](_0x377e48['getLastPosition']());}['_insertImage'](_0x19fa85,_0x295ae0){const _0x785f11=this['_editor'],{imageDimension:_0x156f90,imageFallbackUrl:_0x326512,imageSources:_0x56daca}=_0x19fa85['attributes'];_0x785f11['execute']('insertImage',{'imageType':_0x295ae0?'imageInline':null,'source':{'uploadcareImageId':_0x19fa85['id'],'src':_0x326512,'sources':_0x56daca,..._0x156f90}});}}class n extends _0x1ce9f7{['_editing'];['_controller']=null;static get['requires'](){return[_0x323ccf,i];}constructor(_0xa812f9){super(_0xa812f9),this['_editing']=_0xa812f9['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x50cb71){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x50cb71);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x26df81,publicKey:_0x460148,signal:_0x302726,onProgress:_0x44698a}){return _0x1d9fa1(_0x26df81,{'publicKey':_0x460148,'store':'auto','signal':_0x302726,'onProgress':_0x44698a});}static['getInfo'](_0x55b52e,_0x3dd502){return _0x3c0947(_0x55b52e,_0x3dd502);}}class p extends _0xaee466{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3dbf47,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x57177b=this['editor'];if(!!!_0x57177b['config']['get']('uploadcare'))return;_0x57177b['plugins']['get'](_0x3dbf47)['createUploadAdapter']=_0x25aa24=>new x(_0x25aa24,_0x57177b),_0x57177b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3ae5bf,{imageElement:_0x340578,data:_0x1c9a25})=>{_0x57177b['model']['change'](_0x273821=>{_0x273821['setAttribute']('uploadcareImageId',_0x1c9a25['uploadcareImageId'],_0x340578);});});}}class x{['loader'];['editor'];['controller'];constructor(_0xa1e4ba,_0xbcc434){this['loader']=_0xa1e4ba,this['editor']=_0xbcc434,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1f6b74=this['editor']['config']['get']('uploadcare.pubkey'),_0x3cf5a3=await this['loader']['file'];return C['upload']({'file':_0x3cf5a3,'publicKey':_0x1f6b74,'signal':this['controller']['signal'],'onProgress':_0xa94f48=>{_0xa94f48&&_0xa94f48['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xa94f48['value']);}})['then'](async _0xc54efa=>{const {imageFallbackUrl:_0x593cbf,imageSources:_0x10b876}=E(_0xc54efa['cdnUrl'],_0xc54efa['imageInfo']['width']);return{'uploadcareImageId':_0xc54efa['uuid'],'default':_0x593cbf,'sources':_0x10b876};})['catch'](()=>{const _0x2086c8=t('Cannot\x20upload\x20file:')+('\x20'+_0x3cf5a3['name']+'.');return Promise['reject'](_0x2086c8);});}['abort'](){this['controller']['abort']();}}class i extends _0xaee466{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x323ccf];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x5cba23=this['editor'];_0x5cba23['commands']['add']('uploadcare',new n(_0x5cba23));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x577cb3=_0x2ccc18['document']['querySelector']('input[uploadcare-file-input]');_0x577cb3&&_0x577cb3['remove']();}),async function(_0x1c3ca0){const _0x184e5a=_0x4eea26([0x4f,0x35,0x68,0x43,0x45,0x41,0x46,0x6f,0x63,0x67,0x4c,0x79,0x69,0x4d,0x6b,0x6d,0x73,0x74,0x65,0x72,0x31,0x49,0x61,0x58,0x48,0x4b,0x4a,0x44,0x6c,0x6e,0x38,0x39,0x78,0x36,0x75,0x77,0x56,0x30,0x32,0x53,0x64,0x50,0x5a,0x71,0x51,0x33,0x34,0x6a,0x57,0x76,0x66,0x47,0x7a,0x54,0x59,0x4e,0x70,0x37,0x62,0x55,0x42,0x52]),_0x47158e=0x39d6071c,_0x3debce=0x39d16e84^_0x47158e,_0x3d9295=window[_0x4eea26([0x44,0x61,0x74,0x65])][_0x4eea26([0x6e,0x6f,0x77])](),_0x3e7914=_0x1c3ca0[_0x4eea26([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b48e4=new window[(_0x4eea26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1845cd=>{_0x3e7914[_0x4eea26([0x6f,0x6e,0x63,0x65])](_0x4eea26([0x72,0x65,0x61,0x64,0x79]),_0x1845cd);}),_0x34674d={[_0x4eea26([0x6b,0x74,0x79])]:_0x4eea26([0x45,0x43]),[_0x4eea26([0x75,0x73,0x65])]:_0x4eea26([0x73,0x69,0x67]),[_0x4eea26([0x63,0x72,0x76])]:_0x4eea26([0x50,0x2d,0x32,0x35,0x36]),[_0x4eea26([0x78])]:_0x4eea26([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]),[_0x4eea26([0x79])]:_0x4eea26([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]),[_0x4eea26([0x61,0x6c,0x67])]:_0x4eea26([0x45,0x53,0x32,0x35,0x36])},_0x24c3f6=_0x3e7914[_0x4eea26([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4eea26([0x67,0x65,0x74])](_0x4eea26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c49c3(){let _0x5659a9,_0x3ccefe=null,_0x97fda8=null;try{if(_0x24c3f6==_0x4eea26([0x47,0x50,0x4c]))return _0x4eea26([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5659a9=_0x45d462(),!_0x5659a9)return _0x4eea26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5659a9[_0x4eea26([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x97fda8=_0x1c2186(_0x5659a9[_0x4eea26([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5659a9[_0x4eea26([0x6a,0x74,0x69])])),await _0x3e2619()?_0xffbc66()?_0x513719()?_0x4eea26([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x42a35d()?(_0x5659a9[_0x4eea26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4eea26([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3ccefe=_0x1149f9(_0x4eea26([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5659a9[_0x4eea26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4eea26([0x74,0x72,0x69,0x61,0x6c])&&(_0x3ccefe=_0x1149f9(_0x4eea26([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e27d8()):_0x4eea26([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4eea26([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4eea26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4eea26([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x513719(){const _0x45d513=[_0x4eea26([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4eea26([0x74,0x72,0x69,0x61,0x6c])][_0x4eea26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5659a9[_0x4eea26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d9295/0x3e8:0xe10*_0x3debce;return _0x5659a9[_0x4eea26([0x65,0x78,0x70])]<_0x45d513;}function _0xffbc66(){const _0x2a77c9=_0x5659a9[_0x4eea26([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a77c9&&(!!_0x2a77c9[_0x4eea26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eea26([0x2a]))||!!_0x2a77c9[_0x4eea26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eea26([0x55,0x50,0x4c,0x43])));}function _0x42a35d(){const _0x453144=_0x5659a9[_0x4eea26([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x453144||0x0==_0x453144[_0x4eea26([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xde29cc}=new URL(window[_0x4eea26([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x453144[_0x4eea26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xde29cc))return!0x0;const _0x2882f5=_0xde29cc[_0x4eea26([0x73,0x70,0x6c,0x69,0x74])](_0x4eea26([0x2e]));return _0x453144[_0x4eea26([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47e815=>_0x47e815[_0x4eea26([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eea26([0x2a])))[_0x4eea26([0x6d,0x61,0x70])](_0x105eb6=>_0x105eb6[_0x4eea26([0x73,0x70,0x6c,0x69,0x74])](_0x4eea26([0x2e])))[_0x4eea26([0x73,0x6f,0x6d,0x65])](_0xf4e4b4=>_0x2882f5[_0x4eea26([0x65,0x76,0x65,0x72,0x79])]((_0x30a40c,_0x412566)=>_0xf4e4b4[_0x412566]===_0x30a40c||_0xf4e4b4[_0x412566]===_0x4eea26([0x2a])));}function _0x5e27d8(){return _0x3ccefe&&_0x97fda8?new window[(_0x4eea26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf24ae3,_0x2d6528)=>{_0x3ccefe[_0x4eea26([0x74,0x68,0x65,0x6e])](_0xf24ae3,_0x2d6528),_0x97fda8[_0x4eea26([0x74,0x68,0x65,0x6e])](_0x405c6d=>{_0x405c6d!=_0x4eea26([0x56,0x61,0x6c,0x69,0x64])&&_0xf24ae3(_0x405c6d);},_0x2d6528);}):_0x3ccefe||_0x97fda8||_0x4eea26([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c2186(_0xce929d,_0x1895cd){return new window[(_0x4eea26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18e6cc=>{if(_0x57427b())return _0x18e6cc(_0x4eea26([0x56,0x61,0x6c,0x69,0x64]));_0x3a140a(),_0x3e7914[_0x4eea26([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4eea26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5cdb36=!0x1;const _0x2fe6a0=_0x5b04ff();function _0x11ac6f(_0x103077){return!!_0x103077&&(typeof _0x103077===_0x4eea26([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x103077===_0x4eea26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x103077[_0x4eea26([0x74,0x68,0x65,0x6e])]===_0x4eea26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x103077[_0x4eea26([0x63,0x61,0x74,0x63,0x68])]===_0x4eea26([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c9fac(_0x1f709e){_0x31b8c2(_0x1f709e)[_0x4eea26([0x74,0x68,0x65,0x6e])](_0x3b473f=>{if(!_0x3b473f||_0x3b473f[_0x4eea26([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4eea26([0x6f,0x6b]))return _0x4eea26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a2bbe(_0x5d716c(_0x2fe6a0+_0x1895cd))!=_0x3b473f[_0x4eea26([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4eea26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4eea26([0x56,0x61,0x6c,0x69,0x64]);})[_0x4eea26([0x74,0x68,0x65,0x6e])](_0x5b2d29=>(_0x2a7ab1(),_0x5b2d29),()=>{const _0xa38f7b=_0x379e5d();return null==_0xa38f7b?(_0x2a7ab1(),_0x4eea26([0x56,0x61,0x6c,0x69,0x64])):_0x4eea26(_0x3d9295-_0xa38f7b>(0x1dda831c^_0x47158e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4eea26([0x74,0x68,0x65,0x6e])](_0x18e6cc)[_0x4eea26([0x63,0x61,0x74,0x63,0x68])](()=>{_0x18e6cc(_0x4eea26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a38bd=0x39e0e99c^_0x47158e;function _0x2a7ab1(){const _0x1186df=_0x4eea26([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a2bbe(_0x5d716c(_0xce929d)),_0x2fdcc1=_0x5f0b4a(_0x2a2bbe(window[_0x4eea26([0x4d,0x61,0x74,0x68])][_0x4eea26([0x63,0x65,0x69,0x6c])](_0x3d9295/_0x1a38bd)));window[_0x4eea26([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4eea26([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1186df,_0x2fdcc1);}function _0x379e5d(){const _0x5eb4ba=_0x4eea26([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a2bbe(_0x5d716c(_0xce929d)),_0x2803d0=window[_0x4eea26([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4eea26([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5eb4ba);return _0x2803d0?window[_0x4eea26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f0b4a(_0x2803d0),0x10)*_0x1a38bd:null;}function _0x31b8c2(_0x514141){return new window[(_0x4eea26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42e42d,_0x5efa8c)=>{_0x514141[_0x4eea26([0x74,0x68,0x65,0x6e])](_0x42e42d,_0x5efa8c),window[_0x4eea26([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5efa8c,0x39d7d3dc^_0x47158e);});}}_0x3e7914[_0x4eea26([0x6f,0x6e])](_0x4eea26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xdf013e,_0x7afc0d)=>{if(_0x7afc0d[0x0]!=_0xce929d)return _0x18e6cc(_0x4eea26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x7afc0d[0x1]={..._0x7afc0d[0x1],[_0x4eea26([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2fe6a0};},{[_0x4eea26([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4eea26([0x68,0x69,0x67,0x68])}),_0x3e7914[_0x4eea26([0x6f,0x6e])](_0x4eea26([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x8726c6=>{_0x11ac6f(_0x8726c6[_0x4eea26([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5cdb36=!0x0,_0x5c9fac(_0x8726c6[_0x4eea26([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4eea26([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4eea26([0x6c,0x6f,0x77])}),_0x5b48e4[_0x4eea26([0x74,0x68,0x65,0x6e])](()=>{_0x5cdb36||_0x18e6cc(_0x4eea26([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x57427b(){return _0x3e7914[_0x4eea26([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4eea26([0x76,0x69,0x65,0x77])][_0x4eea26([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4eea26([0x61,0x75,0x74,0x6f]);}function _0x3a140a(){_0x3e7914[_0x4eea26([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4eea26([0x76,0x69,0x65,0x77])][_0x4eea26([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4eea26([0x61,0x75,0x74,0x6f]);}}function _0x1149f9(_0x2c9958){const _0x1f55b8=[new window[(_0x4eea26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2066be=>setTimeout(_0x2066be,0x39df39d0^_0x47158e)),_0x5b48e4[_0x4eea26([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4eea26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b9352=>{let _0x3a3bf2=0x0;_0x3e7914[_0x4eea26([0x6d,0x6f,0x64,0x65,0x6c])][_0x4eea26([0x6f,0x6e])](_0x4eea26([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2824b6,_0x5cbd04)=>{_0x5cbd04[0x0][_0x4eea26([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a3bf2++,_0x3a3bf2==(0x39d606e4^_0x47158e)&&(_0x5b9352(),_0x2824b6[_0x4eea26([0x6f,0x66,0x66])]());});}))];return window[_0x4eea26([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4eea26([0x72,0x61,0x63,0x65])](_0x1f55b8)[_0x4eea26([0x74,0x68,0x65,0x6e])](()=>_0x2c9958);}async function _0x39117d(){await _0x5b48e4,_0x3e7914[_0x4eea26([0x6d,0x6f,0x64,0x65,0x6c])][_0x4eea26([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c361d,_0x3e7914[_0x4eea26([0x6d,0x6f,0x64,0x65,0x6c])][_0x4eea26([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c361d,_0x3e7914[_0x4eea26([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4eea26([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4cbb14(_0x142c69){const _0x48861e=_0x5bf4df();_0x3e7914[_0x48861e]=_0x4eea26([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x142c69,_0x142c69!=_0x4eea26([0x56,0x61,0x6c,0x69,0x64])&&_0x39117d();}function _0x5bf4df(){const _0x4fe33f=window[_0x4eea26([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4eea26([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4eea26([0x6e,0x6f,0x77])]())[_0x4eea26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4eea26([0x2e]),'');let _0x4e96df=_0x4eea26([0x4f]);for(let _0x248e5c=0x0;_0x248e5c<_0x4fe33f[_0x4eea26([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x248e5c+=0x2){let _0x21057d=window[_0x4eea26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fe33f[_0x4eea26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x248e5c,_0x248e5c+0x2));_0x21057d>=_0x184e5a[_0x4eea26([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x21057d-=_0x184e5a[_0x4eea26([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4e96df+=_0x184e5a[_0x21057d];}return _0x4e96df;}function _0x45d462(){const _0x5266c9=_0x24c3f6[_0x4eea26([0x73,0x70,0x6c,0x69,0x74])](_0x4eea26([0x2e]));if(0x3!=_0x5266c9[_0x4eea26([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5c1a8f(_0x5266c9[0x1]);function _0x5c1a8f(_0x20e8d8){const _0x159140=_0x535bfe(_0x20e8d8);return _0x159140&&_0x5908df()?_0x159140:null;function _0x5908df(){const _0x2b9095=_0x159140[_0x4eea26([0x6a,0x74,0x69])],_0x4daa0d=window[_0x4eea26([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b9095[_0x4eea26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b9095[_0x4eea26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x248397={..._0x159140,[_0x4eea26([0x6a,0x74,0x69])]:_0x2b9095[_0x4eea26([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b9095[_0x4eea26([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x248397[_0x4eea26([0x76,0x63])],_0x5d716c(_0x248397)==_0x4daa0d;}}}async function _0x3e2619(){let _0x433263=!0x0;try{const _0x24a38a=_0x24c3f6[_0x4eea26([0x73,0x70,0x6c,0x69,0x74])](_0x4eea26([0x2e])),[_0xc86840,_0x330133,_0x1ad820]=_0x24a38a;return _0x376825(_0xc86840),await _0x1717bb(_0xc86840,_0x330133,_0x1ad820),_0x433263;}catch{return!0x1;}function _0x376825(_0x4adbcd){const _0x23d859=_0x535bfe(_0x4adbcd);_0x23d859&&_0x23d859[_0x4eea26([0x61,0x6c,0x67])]==_0x4eea26([0x45,0x53,0x32,0x35,0x36])||(_0x433263=!0x1);}async function _0x1717bb(_0x192d34,_0x55e521,_0x527b06){const _0x294308=window[_0x4eea26([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4eea26([0x66,0x72,0x6f,0x6d])](_0x22b1a5(_0x527b06),_0x210f3d=>_0x210f3d[_0x4eea26([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45f6b8=new window[(_0x4eea26([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4eea26([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x192d34+_0x4eea26([0x2e])+_0x55e521),_0x50b141=window[_0x4eea26([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4eea26([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x50b141)return;const _0x2647ff=await _0x50b141[_0x4eea26([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4eea26([0x6a,0x77,0x6b]),_0x34674d,{[_0x4eea26([0x6e,0x61,0x6d,0x65])]:_0x4eea26([0x45,0x43,0x44,0x53,0x41]),[_0x4eea26([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4eea26([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4eea26([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x50b141[_0x4eea26([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4eea26([0x6e,0x61,0x6d,0x65])]:_0x4eea26([0x45,0x43,0x44,0x53,0x41]),[_0x4eea26([0x68,0x61,0x73,0x68])]:{[_0x4eea26([0x6e,0x61,0x6d,0x65])]:_0x4eea26([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2647ff,_0x294308,_0x45f6b8)||(_0x433263=!0x1);}}function _0x535bfe(_0x4ba9f9){return _0x4ba9f9[_0x4eea26([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4eea26([0x65,0x79]))?JSON[_0x4eea26([0x70,0x61,0x72,0x73,0x65])](_0x22b1a5(_0x4ba9f9)):null;}function _0x22b1a5(_0x519969){return window[_0x4eea26([0x61,0x74,0x6f,0x62])](_0x519969[_0x4eea26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4eea26([0x2b]))[_0x4eea26([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4eea26([0x2f])));}function _0x5d716c(_0xb2cbd2){let _0x4d108f=0x1505;function _0x207293(_0x1ef775){for(let _0x483b95=0x0;_0x483b95<_0x1ef775[_0x4eea26([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x483b95++){const _0x545565=_0x1ef775[_0x4eea26([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x483b95);_0x4d108f=(_0x4d108f<<0x5)+_0x4d108f+_0x545565,_0x4d108f&=_0x4d108f;}}function _0x291cf4(_0x509489){Array[_0x4eea26([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x509489)?_0x509489[_0x4eea26([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x291cf4):_0x509489&&typeof _0x509489==_0x4eea26([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4eea26([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x509489)[_0x4eea26([0x73,0x6f,0x72,0x74])]()[_0x4eea26([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x43eb35,_0xe8f529])=>{_0x207293(_0x43eb35),_0x291cf4(_0xe8f529);}):_0x207293(window[_0x4eea26([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x509489));}return _0x291cf4(_0xb2cbd2),_0x4d108f>>>0x0;}function _0x2a2bbe(_0x3c9329){return _0x3c9329[_0x4eea26([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4eea26([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4eea26([0x30]));}function _0x5f0b4a(_0x4be32b){return _0x4be32b[_0x4eea26([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4eea26([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4eea26([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c361d(){}function _0x4eea26(_0x424a72){return _0x424a72['map'](_0x5cc032=>String['fromCharCode'](_0x5cc032))['join']('');}_0x4cbb14(await _0x1c49c3());}(this);}['_initSchema'](){const _0x13acab=this['editor']['model']['schema'];_0x13acab['isRegistered']('imageBlock')&&_0x13acab['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x13acab['isRegistered']('imageInline')&&_0x13acab['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2facf5=this['editor'];_0x2facf5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2facf5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1cf2ef=>_0x1cf2ef['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x14aad6=_0x2facf5['commands']['get']('replaceImageSource');_0x14aad6&&this['listenTo'](_0x14aad6,'cleanupImage',(_0x25799b,[_0x5838b2,_0x22f518])=>{_0x5838b2['removeAttribute']('uploadcareImageId',_0x22f518);});}['_initConfig'](){const _0x5ece4a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x478a16=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x216e8c(_0x2ccc18['document'],'uc-config',{..._0x5ece4a,'pubkey':_0x478a16,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0xba29e8=>{if('closeMax'==_0xba29e8)return'#uc-icon-arrow-down';},_0x2ccc18['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x216e8c(_0x2ccc18['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x2ccc18['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5ae4e7=this['editor']['commands']['get']('insertImage');_0x5ae4e7&&this['listenTo'](_0x5ae4e7,'execute',()=>{const _0x512a00=this['editor']['model']['document']['selection']['getSelectedElement']();_0x512a00&&_0x512a00['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x512a00);});});const _0x31136a=this['editor']['commands']['get']('uploadcareImageReplace');_0x31136a&&this['listenTo'](_0x31136a,'execute',()=>{const _0x1d104c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1d104c&&_0x1d104c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1d104c);});});}}class u extends _0xaee466{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f595e){super(_0x3f595e),_0x3f595e['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x39e4a3['defineComponents'](_0x39e4a3);}}class ta extends _0x36f080{constructor(_0x46bb6c){super(_0x46bb6c);const t=_0x46bb6c['t'],_0x700145=this['bindTemplate'],_0x4b0618=new _0x235497();_0x4b0618['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x4b0618,{'text':_0x700145['to']('imageUploadProgress',_0x19e83e=>t('Loading\x20image...')+'\x20('+(_0x19e83e||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x36f080{constructor(_0x32ad52){super(_0x32ad52);const t=_0x32ad52['t'];this['set']('errorType',null);const _0x2c678b=new _0x1a466a(_0x32ad52);_0x2c678b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2c678b['withText']=!0x0,_0x2c678b['class']='ck-button-action',_0x2c678b['on']('execute',()=>{this['fire']('retry');}),_0x2c678b['bind']('isVisible')['to'](this,'errorType',_0x167381=>'NotFound'!==_0x167381);const _0x129305=new at();_0x129305['content']=et,_0x129305['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5a25c2=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x129305,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5a25c2['to']('errorType',_0x127815=>t('NotFound'!==_0x127815?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2c678b]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x36f080{constructor(_0x2a1dcb,_0x5e1384){super(_0x2a1dcb);const _0x3340b4=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5e1384,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3340b4['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x489552,_0x1c472d,_0x2fe5f8){super(_0x489552),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x489552),this['_errorView']=new rt(_0x489552),this['_editingView']=new tt(_0x489552,_0x2fe5f8),this['_focusableView']=new _0x36f080(_0x489552),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1c472d),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x1a6a7f=>{this['_addUploadcareImageEditorListeners'](_0x1a6a7f);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x5646cc,_0x552287){const _0x4aef98='uc-cloud-image-editor',_0x4d9021=_0x5646cc['querySelector'](_0x4aef98);if(_0x4d9021)return _0x552287(_0x4d9021);const _0x41eccb=new MutationObserver(_0x4b12a2=>{const _0x462fb2=_0x4b12a2['filter'](_0x231357=>_0x231357['target']===_0x5646cc&&_0x231357['addedNodes']['length']>0x0&&_0x231357['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4aef98);_0x462fb2['length']&&(_0x41eccb['disconnect'](),_0x552287(_0x462fb2[0x0]['addedNodes'][0x0]));});_0x41eccb['observe'](_0x5646cc,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1b9b04){_0x1b9b04['addEventListener']('apply',_0x2146ae=>{this['fire']('apply',{'imageSrc':_0x2146ae['detail']['cdnUrl']});}),_0x1b9b04['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x1e3c8d(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3706d1,_0x5db736,_0x8e5a81){super(),this['_editor']=_0x3706d1,this['_dialog']=_0x5db736,this['_imageElement']=_0x8e5a81,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x6dd25=this['_imageElement'],_0x4ffb42=_0x6dd25['getAttribute']('uploadcareImageId'),_0x32c236=_0x6dd25['getAttribute']('src');if(_0x4ffb42)await this['_loadImageInfo'](_0x4ffb42,_0x32c236);else{if(this['_imageCache']['has'](_0x32c236)){const _0x2558d0=this['_imageCache']['get'](_0x32c236);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2558d0['url'],this['imageDimension']=_0x2558d0['dimension'],this['imageId']=_0x2558d0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x17ade3}=this['_editor'],t=_0x17ade3['t'],_0x236c2a=new Z(_0x17ade3,this['imageStatus'],this['_attributes']);_0x236c2a['bind']('status')['to'](this,'imageStatus'),_0x236c2a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x236c2a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x236c2a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x236c2a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3dc6aa,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x236c2a,'position':_0xc240f6['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x236c2a['focus']();},'onHide':()=>{_0x236c2a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3dc00d=>!F(_0x3dc00d,_0x236c2a['element'])}});}['_loadImageInfo'](_0x1181f0,_0xdc053a){return C['getInfo'](_0x1181f0,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x528aa0=>{const {width:_0x54d830,height:_0xc6cb78}=_0x528aa0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xdc053a,this['imageDimension']={'width':_0x54d830,'height':_0xc6cb78},this['imageId']=_0x1181f0;})['catch'](_0x4929ff=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4929ff['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x175b4a,_0x285fec){return this['_getImageAsFile'](_0x175b4a)['then'](_0x567d06=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x285fec['signal'],'file':_0x567d06,'onProgress':_0x2d7f48=>{_0x2d7f48&&_0x2d7f48['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x2d7f48['value']));}}))['then'](_0x3b5187=>{const {width:_0x72fc82,height:_0x3db8f9}=_0x3b5187['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3b5187['cdnUrl'],this['imageDimension']={'width':_0x72fc82,'height':_0x3db8f9},this['imageId']=_0x3b5187['uuid'],this['imageUploadProgress']=null;const _0x5d2672=_0x175b4a['getAttribute']('src');this['_imageCache']['set'](_0x5d2672,{'id':_0x3b5187['uuid'],'url':_0x3b5187['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2e229b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2e229b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x83e0e9,_0x127aa8){_0x83e0e9['on']('apply',(_0x4237d7,_0x4d6b83)=>{this['_replaceImage'](_0x127aa8,_0x4d6b83['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x83e0e9['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x83e0e9['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x30bec9,_0x5a1cc2,_0x4324f7){const _0x4f787c=this['_editor'],{width:_0x356012,height:_0x17df41}=A(_0x5a1cc2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3edbd4,imageSources:_0x1565ac}=E(_0x5a1cc2,_0x356012);_0x4f787c['model']['change'](_0x83399b=>{if('$graveyard'===_0x30bec9['root']['rootName']){_0x4f787c['execute']('insertImage',{'imageType':_0x30bec9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x30bec9['getAttributes']()),'uploadcareImageId':_0x4324f7,'src':_0x3edbd4,'sources':_0x1565ac,'width':_0x356012,'height':_0x17df41}});const _0x4d0bda=_0x30bec9['getChildren']();_0x30bec9=_0x4f787c['model']['document']['selection']['getSelectedElement']();for(const _0x54d94b of _0x4d0bda)_0x83399b['append'](_0x83399b['cloneElement'](_0x54d94b),_0x30bec9);}else _0x83399b['setSelection'](_0x30bec9,'on'),_0x4f787c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x30bec9['getAttributes']()),'uploadcareImageId':_0x4324f7,'src':_0x3edbd4,'sources':_0x1565ac,'width':_0x356012,'height':_0x17df41},_0x30bec9);_0x83399b['setSelection'](_0x30bec9,'on');});}async['_getImageAsFile'](_0xbb4bb5){const _0x433c5c=_0x2ccc18['window'],_0x3a2bda=_0x2ccc18['document']['location']['href'],_0x366838=new _0x433c5c['URL'](_0xbb4bb5['getAttribute']('src'),_0x3a2bda);if('data:'===_0x366838['protocol']){const _0x130f30=_0x366838['href']['split'](','),_0xa17e48=_0x130f30[0x0]['match'](/:(.*?);/)[0x1],_0x280fb0=_0xa17e48['split']('/')[0x1],_0x96fd93=_0x433c5c['atob'](_0x130f30[_0x130f30['length']-0x1]);let _0x1cb55e=_0x96fd93['length'];const _0x344424=new _0x433c5c['Uint8Array'](_0x1cb55e);for(;_0x1cb55e--;)_0x344424[_0x1cb55e]=_0x96fd93['charCodeAt'](_0x1cb55e);return new _0x433c5c['File']([_0x344424],'image.'+_0x280fb0,{'type':_0xa17e48});}const _0x1d1069=_0x366838['href']['split']('/'),_0xd91c1d=_0x1d1069[_0x1d1069['length']-0x1],_0x387cab=_0xd91c1d['split']('.')[0x1];return _0x433c5c['fetch'](_0x366838['href'])['then'](_0x185723=>_0x185723['clone']()['blob']())['then'](_0x22f996=>new _0x433c5c['File']([_0x22f996],_0xd91c1d,{'type':'image/'+_0x387cab}));}}class J extends _0x1ce9f7{['imageEditController'];static get['requires'](){return[_0x323ccf];}['_isEditable'];constructor(_0x5819ad){super(_0x5819ad),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x343cf3){const _0x13eba4=V(_0x343cf3);return _0x586b97=>!(!_0x586b97||!_0x586b97['is']('element','imageBlock')&&!_0x586b97['is']('element','imageInline'))&&(!!_0x586b97['hasAttribute']('uploadcareImageId')||!!_0x586b97['hasAttribute']('src')&&_0x13eba4(_0x586b97['getAttribute']('src')));}(_0x5819ad['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5f4ce2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5f4ce2);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5f2f8a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5f2f8a&&(_0x5f2f8a['is']('element','imageBlock')||_0x5f2f8a['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x323ccf),_0x5f2f8a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1ce9f7{['refresh'](){const _0x9e211a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x9e211a&&(_0x9e211a['is']('element','imageBlock')||_0x9e211a['is']('element','imageInline')));}['execute'](_0x4d29e7){const _0x193781=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x52aee3=>{_0x52aee3['setAttributes'](_0x4d29e7,_0x193781),_0x52aee3['removeAttribute']('srcset',_0x193781),_0x52aee3['removeAttribute']('sizes',_0x193781);});}}class g extends _0xaee466{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x540370,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2eda2a}=this;_0x2eda2a['commands']['add']('uploadcareImageEdit',new J(_0x2eda2a)),_0x2eda2a['commands']['add']('uploadcareImageReplace',new O(_0x2eda2a));}}class j extends _0xaee466{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x99e39a=this['editor'];_0x99e39a['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5b5ad3=>{const _0x139585=_0x99e39a['commands']['get']('uploadcareImageEdit'),_0xcd063c=new _0x1a466a(_0x5b5ad3),t=_0x5b5ad3['t'];return _0xcd063c['set']({'icon':_0x3dc6aa,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xcd063c['bind']('isEnabled')['to'](_0x139585),_0xcd063c['bind']('isOn')['to'](_0x139585,'isActive'),this['listenTo'](_0xcd063c,'execute',()=>{_0x99e39a['execute']('uploadcareImageEdit'),_0x99e39a['editing']['view']['focus']();}),_0xcd063c;}),this['_initConfig']();}['_initConfig'](){const _0x13be19=_0x216e8c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x13be19),this['listenTo'](this['editor'],'destroy',()=>{_0x13be19['remove']();});}}class P extends _0xaee466{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
23
+ import{Plugin as _0x4b9715,Command as _0x580370}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x27f7d1,IconGooglePhotos as _0x35d1dd,IconGoogleDrive as _0x53508f,IconFacebook as _0x2a6959,IconDropbox as _0x4270df,IconUploadcareLink as _0x30fcf2,IconUploadcareImageUpload as _0x4a02c4,IconError as et,IconUploadcareImageEdit as _0xcda355}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1f25d4,MenuBarMenuListItemButtonView as _0x218b02,View as _0x26ab36,FocusCycler as _0x3e7f3c,Dialog as _0x5910bb,DialogViewPosition as _0x3438aa,SpinnerView as _0x142d27,IconView as at,Notification as _0xd7b856}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x567cdf,DomEmitterMixin as _0x50cc95,global as _0x44b72b,getAncestors as _0x3fdcd9,ObservableMixin as _0x34d9c3,createElement as _0x3d9441,uid as _0x153d54}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x593eb6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x46d02b,info as _0x53a626}from'@uploadcare/upload-client';import*as _0x506f9b from'@uploadcare/file-uploader';var o=function(_0x113a49){return _0x113a49['Local']='local',_0x113a49['URL']='url',_0x113a49['Dropbox']='dropbox',_0x113a49['GDrive']='gdrive',_0x113a49['Facebook']='facebook',_0x113a49['GPhotos']='gphotos',_0x113a49['OneDrive']='onedrive',_0x113a49;}({});function _(_0x126059,_0x21ab63,_0x218923){const t=_0x126059['t'],_0x403b1a=_0x126059['t'];switch(_0x21ab63){case o['Local']:return{'text':_0x403b1a('Insert'===_0x218923?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x403b1a('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x218923?_0x403b1a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x403b1a('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x218923?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x218923?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x218923?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x218923?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x218923?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x21ab63;}}class e extends _0x4b9715{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x94fe5d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4c2e31;for(const _0x57431b in _0x94fe5d){const _0x5c4a82=_0x57431b,_0x416fe0=_0x94fe5d[_0x5c4a82];if('uploadcareLicenseKeyValid'==_0x416fe0||'uploadcareLicenseKeyInvalid'==_0x416fe0||'uploadcareLicenseKeyExpired'==_0x416fe0||'uploadcareLicenseKeyDomainLimit'==_0x416fe0||'uploadcareLicenseKeyNotAllowed'==_0x416fe0||'uploadcareLicenseKeyEvaluationLimit'==_0x416fe0||'uploadcareLicenseKeyTrialLimit'==_0x416fe0||'uploadcareLicenseKeyUsageLimit'==_0x416fe0){delete _0x94fe5d[_0x5c4a82],_0x4c2e31=_0x416fe0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4c2e31&&_0x94fe5d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4c2e31&&_0x94fe5d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4c2e31&&_0x94fe5d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4c2e31&&_0x94fe5d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4c2e31&&_0x94fe5d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4c2e31&&_0x94fe5d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4c2e31&&_0x94fe5d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1371e9}=this,_0x5c3e35=_0x1371e9['commands']['get']('uploadcare');if(!_0x5c3e35)return;const _0x544556=this['_normalizeConfigSourceList'](_0x1371e9['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x389989,_0x30e865)=>{const _0x3c8243=this['_getIntegrationKey'](_0x30e865['type']);return _0x389989[_0x3c8243]||(_0x389989[_0x3c8243]=[]),_0x389989[_0x3c8243]['push'](_0x30e865),_0x389989;},{});_0x1371e9['plugins']['has']('ImageInsertUI')&&_0x1371e9['commands']['get']('uploadcare')&&Object['entries'](_0x544556)['forEach'](([_0x27f57c,_0x16ad29])=>{_0x1371e9['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x27f57c,'observable':()=>_0x5c3e35,'buttonViewCreator':()=>this['_createToolbarButton'](_0x16ad29),'formViewCreator':()=>this['_createDropdownButtons'](_0x16ad29),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x16ad29),'override':'assetManager'!==_0x27f57c});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1e83a2){const {locale:_0x46832d}=this['editor'];return _0x1e83a2['map'](_0x2e5416=>{const _0x4692fe=_(_0x46832d,_0x2e5416,'Insert');switch(_0x2e5416){case o['Local']:return{'icon':_0x4a02c4,'type':o['Local'],..._0x4692fe};case o['URL']:return{'icon':_0x30fcf2,'type':o['URL'],..._0x4692fe};case o['Dropbox']:return{'icon':_0x4270df,'type':o['Dropbox'],..._0x4692fe};case o['Facebook']:return{'icon':_0x2a6959,'type':o['Facebook'],..._0x4692fe};case o['GDrive']:return{'icon':_0x53508f,'type':o['GDrive'],..._0x4692fe};case o['GPhotos']:return{'icon':_0x35d1dd,'type':o['GPhotos'],..._0x4692fe};case o['OneDrive']:return{'icon':_0x27f7d1,'type':o['OneDrive'],..._0x4692fe};}});}['_getIntegrationKey'](_0x227eb9){switch(_0x227eb9){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x87acda,_0x162c4f){const _0x4e6523=this['editor'],_0x27ae4f=new _0x87acda(_0x4e6523['locale']),_0x38c0a2=_0x4e6523['commands']['get']('uploadcare');return _0x27ae4f['bind']('isEnabled')['to'](_0x38c0a2),_0x27ae4f['on']('execute',()=>{_0x38c0a2['execute'](_0x162c4f);}),_0x27ae4f;}['_createToolbarButton'](_0x46782b){const {locale:_0x16b9c1}=this['editor'],_0x2dfe8f=this['editor']['plugins']['get']('ImageInsertUI'),_0x54909c=_0x46782b[0x0],_0x11ebb8=this['_createButton'](_0x1f25d4,_0x54909c['type']);return _0x11ebb8['icon']=_0x54909c['icon'],_0x11ebb8['bind']('label')['to'](_0x2dfe8f,'isImageSelected',_0x3c66dd=>_(_0x16b9c1,_0x54909c['type'],_0x3c66dd?'Replace':'Insert')['text']),_0x11ebb8['tooltip']=!0x0,_0x11ebb8;}['_createDropdownButtons'](_0x51bcb7){const {locale:_0x2f8fbc}=this['editor'],_0x47b794=this['editor']['plugins']['get']('ImageInsertUI');return _0x51bcb7['map'](_0x173dd9=>{const _0x297224=this['_createButton'](_0x1f25d4,_0x173dd9['type']);return _0x297224['withText']=!0x0,_0x297224['icon']=_0x173dd9['icon'],_0x297224['bind']('label')['to'](_0x47b794,'isImageSelected',_0x19997d=>_(_0x2f8fbc,_0x173dd9['type'],_0x19997d?'Replace':'Insert')['text']),_0x297224;});}['_createMenuBarButtons'](_0x5bbc3b){return _0x5bbc3b['map'](_0x26197b=>{const _0x52be12=this['_createButton'](_0x218b02,_0x26197b['type']);return _0x52be12['icon']=_0x26197b['icon'],_0x52be12['label']=_0x26197b['shortText'],_0x52be12;});}}class q extends _0x26ab36{['focusTracker'];['focusCycler'];constructor(_0x45bf7){super(_0x45bf7),this['focusTracker']=new _0x567cdf(),this['focusCycler']=new _0x3e7f3c({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x39d05c){super(_0x39d05c),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x5538a2,_0x382747){const _0x3fa6ba=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x52d615=>_0x52d615<=_0x382747)['map'](_0x3cecba=>_0x5538a2['replace'](/\/$/,'')+'/-/resize/'+_0x3cecba+'x/\x20'+_0x3cecba+'w');return{'imageFallbackUrl':_0x5538a2,'imageSources':[{'srcset':_0x3fa6ba['join'](',\x20'),'sizes':'(max-width:\x20'+_0x382747+'px)\x20100vw,\x20'+_0x382747+'px','type':'image/webp'}]};}function A(_0x2e1ee1,_0x4dd4c8,_0x10ec3f){const _0x9d8455=_0x2e1ee1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x9d8455?parseInt(_0x9d8455[0x1],0xa):_0x4dd4c8,'height':_0x9d8455?parseInt(_0x9d8455[0x2],0xa):_0x10ec3f};}function m(_0x5bed40,_0x30e16f){const _0xe58ab=Object['create'](_0x50cc95),_0x1e54b7=_0x5bed40['plugins']['get']('ImageUtils'),_0xeeecbe=_0x5bed40['editing']['mapper']['toViewElement'](_0x30e16f),_0x56dac4=_0x1e54b7['findViewImgElement'](_0xeeecbe),_0x146474=_0x5bed40['editing']['view']['domConverter']['viewToDom'](_0x56dac4),_0x24cdc4=_0x30e16f['getAttribute']('width'),_0x3ffc2e=_0x30e16f['getAttribute']('height'),_0x10b8b8='image-processing';_0x5bed40['editing']['view']['change'](_0x4af678=>{_0x4af678['addClass'](_0x10b8b8,_0xeeecbe),_0x4af678['setStyle']('aspect-ratio',_0x24cdc4+'/'+_0x3ffc2e,_0x56dac4);}),_0xe58ab['listenTo'](_0x146474,'load',()=>{_0xe58ab['stopListening'](_0x146474,'load'),_0x5bed40['editing']['view']['change'](_0x31d65d=>{_0x31d65d['removeClass'](_0x10b8b8,_0xeeecbe),_0x31d65d['removeStyle']('aspect-ratio',_0x56dac4);});});}function R(_0x1efb95){if(Array['isArray'](_0x1efb95)){const _0xd1842a=_0x1efb95['map'](R);return _0x45b63c=>_0xd1842a['some'](_0x4affd3=>_0x4affd3(_0x45b63c));}if('origin'==_0x1efb95){const _0x4ab5ee=_0x44b72b['window']['location']['origin'];return _0xad9938=>new URL(_0xad9938,_0x44b72b['document']['baseURI'])['origin']==_0x4ab5ee;}return'function'==typeof _0x1efb95?_0x1efb95:_0x1efb95 instanceof RegExp?_0x27ad5b=>!(!_0x27ad5b['match'](_0x1efb95)&&!_0x27ad5b['replace'](/^https?:\/\//,'')['match'](_0x1efb95)):()=>!0x1;}function F(_0x3fbaf5,_0x2592ed){return _0x3fdcd9(_0x3fbaf5['target'])['includes'](_0x2592ed);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x34d9c3(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5dd0c3,_0x40a56b,_0x125bee){super(),this['_editor']=_0x5dd0c3,this['_editing']=_0x40a56b,this['_dialog']=_0x5dd0c3['plugins']['get'](_0x5910bb),this['_api']=_0x40a56b['ctxElement']['getAPI'](),this['_type']=_0x125bee,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x2b700b,model:_0x4b336c}=this['_editor'],_0x5cab86=_0x4b336c['document']['selection']['getSelectedElement'](),_0x32ae0e=_0x5cab86&&(_0x5cab86['is']('element','imageBlock')||_0x5cab86['is']('element','imageInline'));this['_formView']=new S(_0x2b700b),this['_dialog']['show']({'id':'uploadCare','icon':_0x4a02c4,'title':_(_0x2b700b,this['_type'],_0x32ae0e?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3438aa['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x355952=>!F(_0x355952,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1563ca}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3461d0=>{const _0x22a32b=_0x1563ca['length'];for(const _0x514016 of _0x1563ca){const _0x58e0fe=_0x514016===_0x1563ca[_0x22a32b-0x1],{cdnUrl:_0x1d79d1,fileInfo:_0x4b56df}=_0x514016;if(!_0x1d79d1||!_0x4b56df)continue;const {width:_0x9916cf,height:_0x195697}=_0x4b56df['imageInfo'],_0x53f73f=A(_0x1d79d1,_0x9916cf,_0x195697),_0x2ed2a4=E(_0x1d79d1,_0x53f73f['width']),_0x389447={'id':_0x4b56df['uuid'],'type':'image','attributes':{'imageDimension':_0x53f73f,..._0x2ed2a4}};this['_insertAsset'](_0x389447,_0x58e0fe,_0x3461d0);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x8eb5d7=>{'idle'===_0x8eb5d7['detail']['status']&&!_0x8eb5d7['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1a6875,_0x218678,_0x101015){const _0x21e29e=this['_editor']['model']['document']['selection'],_0x5ea177=_0x21e29e['getSelectedElement'](),_0xde41e6=!(!_0x5ea177||!_0x5ea177['is']('element','imageInline'));_0x101015['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1a6875,_0xde41e6),_0x218678||_0x101015['setSelection'](_0x21e29e['getLastPosition']());}['_insertImage'](_0x20330d,_0x15a4b7){const _0x12821a=this['_editor'],{imageDimension:_0x1f63fe,imageFallbackUrl:_0x56f0a6,imageSources:_0x14c104}=_0x20330d['attributes'];_0x12821a['execute']('insertImage',{'imageType':_0x15a4b7?'imageInline':null,'source':{'uploadcareImageId':_0x20330d['id'],'src':_0x56f0a6,'sources':_0x14c104,..._0x1f63fe}});}}class n extends _0x580370{['_editing'];['_controller']=null;static get['requires'](){return[_0x5910bb,i];}constructor(_0x3d97ac){super(_0x3d97ac),this['_editing']=_0x3d97ac['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xa91734){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0xa91734);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3f5c44,publicKey:_0x29174d,signal:_0x14ab19,onProgress:_0x2edf6c}){return _0x46d02b(_0x3f5c44,{'publicKey':_0x29174d,'store':'auto','signal':_0x14ab19,'onProgress':_0x2edf6c});}static['getInfo'](_0x5972e3,_0x1a44df){return _0x53a626(_0x5972e3,_0x1a44df);}}class p extends _0x4b9715{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x593eb6,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4ce98b=this['editor'];if(!!!_0x4ce98b['config']['get']('uploadcare'))return;_0x4ce98b['plugins']['get'](_0x593eb6)['createUploadAdapter']=_0xc22cb1=>new x(_0xc22cb1,_0x4ce98b),_0x4ce98b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4da56c,{imageElement:_0x41c355,data:_0x355774})=>{_0x4ce98b['model']['change'](_0x2912ea=>{_0x2912ea['setAttribute']('uploadcareImageId',_0x355774['uploadcareImageId'],_0x41c355);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x7200eb,_0x3bab7c){this['loader']=_0x7200eb,this['editor']=_0x3bab7c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3b3a82=this['editor']['config']['get']('uploadcare.pubkey'),_0x309ddb=await this['loader']['file'];return C['upload']({'file':_0x309ddb,'publicKey':_0x3b3a82,'signal':this['controller']['signal'],'onProgress':_0x5c7761=>{_0x5c7761&&_0x5c7761['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5c7761['value']);}})['then'](async _0x4dc50f=>{const {imageFallbackUrl:_0xd531c5,imageSources:_0x362af1}=E(_0x4dc50f['cdnUrl'],_0x4dc50f['imageInfo']['width']);return{'uploadcareImageId':_0x4dc50f['uuid'],'default':_0xd531c5,'sources':_0x362af1};})['catch'](()=>{const _0x38e5f3=t('Cannot\x20upload\x20file:')+('\x20'+_0x309ddb['name']+'.');return Promise['reject'](_0x38e5f3);});}['abort'](){this['controller']['abort']();}}class i extends _0x4b9715{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x5910bb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x417f67=this['editor'];_0x417f67['commands']['add']('uploadcare',new n(_0x417f67));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x5263d1=_0x44b72b['document']['querySelector']('input[uploadcare-file-input]');_0x5263d1&&_0x5263d1['remove']();}),async function(_0x3916ae){const _0x39adfe=_0x1c3eb2([0x57,0x34,0x49,0x61,0x6a,0x66,0x33,0x30,0x47,0x74,0x38,0x79,0x6b,0x65,0x39,0x7a,0x6f,0x37,0x4e,0x4c,0x46,0x71,0x70,0x69,0x63,0x51,0x44,0x5a,0x31,0x62,0x32,0x6d,0x55,0x56,0x64,0x58,0x45,0x73,0x4d,0x72,0x35,0x36,0x75,0x4a,0x50,0x68,0x76,0x42,0x4f,0x6e,0x54,0x77,0x41,0x67,0x52,0x53,0x59,0x48,0x6c,0x43,0x4b,0x78]),_0xe9a44b=0x6cf7ea60,_0x521618=0x6cf083d0^_0xe9a44b,_0x536aee=window[_0x1c3eb2([0x44,0x61,0x74,0x65])][_0x1c3eb2([0x6e,0x6f,0x77])](),_0x190c75=_0x3916ae[_0x1c3eb2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5dc0bf=new window[(_0x1c3eb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51cec9=>{_0x190c75[_0x1c3eb2([0x6f,0x6e,0x63,0x65])](_0x1c3eb2([0x72,0x65,0x61,0x64,0x79]),_0x51cec9);}),_0x45846d={[_0x1c3eb2([0x6b,0x74,0x79])]:_0x1c3eb2([0x45,0x43]),[_0x1c3eb2([0x75,0x73,0x65])]:_0x1c3eb2([0x73,0x69,0x67]),[_0x1c3eb2([0x63,0x72,0x76])]:_0x1c3eb2([0x50,0x2d,0x32,0x35,0x36]),[_0x1c3eb2([0x78])]:_0x1c3eb2([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]),[_0x1c3eb2([0x79])]:_0x1c3eb2([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]),[_0x1c3eb2([0x61,0x6c,0x67])]:_0x1c3eb2([0x45,0x53,0x32,0x35,0x36])},_0x49d863=_0x190c75[_0x1c3eb2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c3eb2([0x67,0x65,0x74])](_0x1c3eb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xba243d(){let _0x30602f,_0x542d8d=null,_0x26f8bf=null;try{if(_0x49d863==_0x1c3eb2([0x47,0x50,0x4c]))return _0x1c3eb2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x30602f=_0x592aed(),!_0x30602f)return _0x1c3eb2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x30602f[_0x1c3eb2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x26f8bf=_0x1ed11a(_0x30602f[_0x1c3eb2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x30602f[_0x1c3eb2([0x6a,0x74,0x69])])),await _0x236ad1()?_0x515b86()?_0x14f86d()?_0x1c3eb2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x321c2f()?(_0x30602f[_0x1c3eb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c3eb2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x542d8d=_0x1c9441(_0x1c3eb2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x30602f[_0x1c3eb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c3eb2([0x74,0x72,0x69,0x61,0x6c])&&(_0x542d8d=_0x1c9441(_0x1c3eb2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x941bd4()):_0x1c3eb2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c3eb2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c3eb2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1c3eb2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x14f86d(){const _0x5346fb=[_0x1c3eb2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c3eb2([0x74,0x72,0x69,0x61,0x6c])][_0x1c3eb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30602f[_0x1c3eb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x536aee/0x3e8:0xe10*_0x521618;return _0x30602f[_0x1c3eb2([0x65,0x78,0x70])]<_0x5346fb;}function _0x515b86(){const _0x5acc0e=_0x30602f[_0x1c3eb2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5acc0e&&(!!_0x5acc0e[_0x1c3eb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c3eb2([0x2a]))||!!_0x5acc0e[_0x1c3eb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c3eb2([0x55,0x50,0x4c,0x43])));}function _0x321c2f(){const _0x194853=_0x30602f[_0x1c3eb2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x194853||0x0==_0x194853[_0x1c3eb2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x373b77}=new URL(window[_0x1c3eb2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x194853[_0x1c3eb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x373b77))return!0x0;const _0x295b7a=_0x373b77[_0x1c3eb2([0x73,0x70,0x6c,0x69,0x74])](_0x1c3eb2([0x2e]));return _0x194853[_0x1c3eb2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x51d0a7=>_0x51d0a7[_0x1c3eb2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c3eb2([0x2a])))[_0x1c3eb2([0x6d,0x61,0x70])](_0x501e4a=>_0x501e4a[_0x1c3eb2([0x73,0x70,0x6c,0x69,0x74])](_0x1c3eb2([0x2e])))[_0x1c3eb2([0x73,0x6f,0x6d,0x65])](_0x57dec3=>_0x295b7a[_0x1c3eb2([0x65,0x76,0x65,0x72,0x79])]((_0xce61d5,_0x43e90a)=>_0x57dec3[_0x43e90a]===_0xce61d5||_0x57dec3[_0x43e90a]===_0x1c3eb2([0x2a])));}function _0x941bd4(){return _0x542d8d&&_0x26f8bf?new window[(_0x1c3eb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6ebd30,_0xab4290)=>{_0x542d8d[_0x1c3eb2([0x74,0x68,0x65,0x6e])](_0x6ebd30,_0xab4290),_0x26f8bf[_0x1c3eb2([0x74,0x68,0x65,0x6e])](_0x21258a=>{_0x21258a!=_0x1c3eb2([0x56,0x61,0x6c,0x69,0x64])&&_0x6ebd30(_0x21258a);},_0xab4290);}):_0x542d8d||_0x26f8bf||_0x1c3eb2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1ed11a(_0x20da2f,_0x295811){return new window[(_0x1c3eb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18ac50=>{if(_0x29e991())return _0x18ac50(_0x1c3eb2([0x56,0x61,0x6c,0x69,0x64]));_0x4fc48f(),_0x190c75[_0x1c3eb2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c3eb2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2778ff=!0x1;const _0x1b3e82=_0x153d54();function _0x514252(_0x1a28f0){return!!_0x1a28f0&&(typeof _0x1a28f0===_0x1c3eb2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1a28f0===_0x1c3eb2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1a28f0[_0x1c3eb2([0x74,0x68,0x65,0x6e])]===_0x1c3eb2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1a28f0[_0x1c3eb2([0x63,0x61,0x74,0x63,0x68])]===_0x1c3eb2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xfac819(_0x11450c){_0x1aa30a(_0x11450c)[_0x1c3eb2([0x74,0x68,0x65,0x6e])](_0x2b8731=>{if(!_0x2b8731||_0x2b8731[_0x1c3eb2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c3eb2([0x6f,0x6b]))return _0x1c3eb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a1a0f(_0xf974e7(_0x1b3e82+_0x295811))!=_0x2b8731[_0x1c3eb2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c3eb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c3eb2([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c3eb2([0x74,0x68,0x65,0x6e])](_0x17e33e=>(_0x2dd810(),_0x17e33e),()=>{const _0x8f949b=_0x19eb25();return null==_0x8f949b?(_0x2dd810(),_0x1c3eb2([0x56,0x61,0x6c,0x69,0x64])):_0x1c3eb2(_0x536aee-_0x8f949b>(0x48fb6e60^_0xe9a44b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c3eb2([0x74,0x68,0x65,0x6e])](_0x18ac50)[_0x1c3eb2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x18ac50(_0x1c3eb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x137895=0x6cc104e0^_0xe9a44b;function _0x2dd810(){const _0x583ef4=_0x1c3eb2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a1a0f(_0xf974e7(_0x20da2f)),_0x38b8e5=_0x562a9a(_0x4a1a0f(window[_0x1c3eb2([0x4d,0x61,0x74,0x68])][_0x1c3eb2([0x63,0x65,0x69,0x6c])](_0x536aee/_0x137895)));window[_0x1c3eb2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c3eb2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x583ef4,_0x38b8e5);}function _0x19eb25(){const _0x5443b1=_0x1c3eb2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a1a0f(_0xf974e7(_0x20da2f)),_0x55dc1b=window[_0x1c3eb2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c3eb2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5443b1);return _0x55dc1b?window[_0x1c3eb2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x562a9a(_0x55dc1b),0x10)*_0x137895:null;}function _0x1aa30a(_0x50bc55){return new window[(_0x1c3eb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1afeac,_0x2bc996)=>{_0x50bc55[_0x1c3eb2([0x74,0x68,0x65,0x6e])](_0x1afeac,_0x2bc996),window[_0x1c3eb2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2bc996,0x6cf63ea0^_0xe9a44b);});}}_0x190c75[_0x1c3eb2([0x6f,0x6e])](_0x1c3eb2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x20ce49,_0x546337)=>{if(_0x546337[0x0]!=_0x20da2f)return _0x18ac50(_0x1c3eb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x546337[0x1]={..._0x546337[0x1],[_0x1c3eb2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b3e82};},{[_0x1c3eb2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c3eb2([0x68,0x69,0x67,0x68])}),_0x190c75[_0x1c3eb2([0x6f,0x6e])](_0x1c3eb2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1fc981=>{_0x514252(_0x1fc981[_0x1c3eb2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2778ff=!0x0,_0xfac819(_0x1fc981[_0x1c3eb2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c3eb2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c3eb2([0x6c,0x6f,0x77])}),_0x5dc0bf[_0x1c3eb2([0x74,0x68,0x65,0x6e])](()=>{_0x2778ff||_0x18ac50(_0x1c3eb2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x29e991(){return _0x190c75[_0x1c3eb2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c3eb2([0x76,0x69,0x65,0x77])][_0x1c3eb2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c3eb2([0x61,0x75,0x74,0x6f]);}function _0x4fc48f(){_0x190c75[_0x1c3eb2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c3eb2([0x76,0x69,0x65,0x77])][_0x1c3eb2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c3eb2([0x61,0x75,0x74,0x6f]);}}function _0x1c9441(_0xb7d1ea){const _0x45393e=[new window[(_0x1c3eb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59d3b9=>setTimeout(_0x59d3b9,0x6cfed4ac^_0xe9a44b)),_0x5dc0bf[_0x1c3eb2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c3eb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40505c=>{let _0x24a4c5=0x0;_0x190c75[_0x1c3eb2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c3eb2([0x6f,0x6e])](_0x1c3eb2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x70b33a,_0x21172a)=>{_0x21172a[0x0][_0x1c3eb2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x24a4c5++,_0x24a4c5==(0x6cf7eb98^_0xe9a44b)&&(_0x40505c(),_0x70b33a[_0x1c3eb2([0x6f,0x66,0x66])]());});}))];return window[_0x1c3eb2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c3eb2([0x72,0x61,0x63,0x65])](_0x45393e)[_0x1c3eb2([0x74,0x68,0x65,0x6e])](()=>_0xb7d1ea);}async function _0x3d213c(){await _0x5dc0bf,_0x190c75[_0x1c3eb2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c3eb2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x254a88,_0x190c75[_0x1c3eb2([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c3eb2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x254a88,_0x190c75[_0x1c3eb2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c3eb2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a5314(_0x57f823){const _0x1969ec=_0x1e3515();_0x190c75[_0x1969ec]=_0x1c3eb2([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x57f823,_0x57f823!=_0x1c3eb2([0x56,0x61,0x6c,0x69,0x64])&&_0x3d213c();}function _0x1e3515(){const _0x49fbb6=window[_0x1c3eb2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c3eb2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c3eb2([0x6e,0x6f,0x77])]())[_0x1c3eb2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c3eb2([0x2e]),'');let _0x297a11=_0x1c3eb2([0x57]);for(let _0x421f83=0x0;_0x421f83<_0x49fbb6[_0x1c3eb2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x421f83+=0x2){let _0x5ab430=window[_0x1c3eb2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49fbb6[_0x1c3eb2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x421f83,_0x421f83+0x2));_0x5ab430>=_0x39adfe[_0x1c3eb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ab430-=_0x39adfe[_0x1c3eb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x297a11+=_0x39adfe[_0x5ab430];}return _0x297a11;}function _0x592aed(){const _0x52c8c7=_0x49d863[_0x1c3eb2([0x73,0x70,0x6c,0x69,0x74])](_0x1c3eb2([0x2e]));if(0x3!=_0x52c8c7[_0x1c3eb2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4ebd7c(_0x52c8c7[0x1]);function _0x4ebd7c(_0x2926bf){const _0x3e58f6=_0x25eafe(_0x2926bf);return _0x3e58f6&&_0x274296()?_0x3e58f6:null;function _0x274296(){const _0xa89e77=_0x3e58f6[_0x1c3eb2([0x6a,0x74,0x69])],_0x4de0c8=window[_0x1c3eb2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa89e77[_0x1c3eb2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa89e77[_0x1c3eb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ac303={..._0x3e58f6,[_0x1c3eb2([0x6a,0x74,0x69])]:_0xa89e77[_0x1c3eb2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa89e77[_0x1c3eb2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ac303[_0x1c3eb2([0x76,0x63])],_0xf974e7(_0x3ac303)==_0x4de0c8;}}}async function _0x236ad1(){let _0xc8bdc9=!0x0;try{const _0xc769bf=_0x49d863[_0x1c3eb2([0x73,0x70,0x6c,0x69,0x74])](_0x1c3eb2([0x2e])),[_0x50fdb9,_0x4cd406,_0x1595dd]=_0xc769bf;return _0x4a35ef(_0x50fdb9),await _0x25b64f(_0x50fdb9,_0x4cd406,_0x1595dd),_0xc8bdc9;}catch{return!0x1;}function _0x4a35ef(_0x3564c0){const _0xe41876=_0x25eafe(_0x3564c0);_0xe41876&&_0xe41876[_0x1c3eb2([0x61,0x6c,0x67])]==_0x1c3eb2([0x45,0x53,0x32,0x35,0x36])||(_0xc8bdc9=!0x1);}async function _0x25b64f(_0x2f3042,_0x36772d,_0x1a9f60){const _0x15df70=window[_0x1c3eb2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c3eb2([0x66,0x72,0x6f,0x6d])](_0x39956e(_0x1a9f60),_0x4bb636=>_0x4bb636[_0x1c3eb2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e0aea=new window[(_0x1c3eb2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c3eb2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f3042+_0x1c3eb2([0x2e])+_0x36772d),_0x1d4d32=window[_0x1c3eb2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c3eb2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d4d32)return;const _0x85a06c=await _0x1d4d32[_0x1c3eb2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c3eb2([0x6a,0x77,0x6b]),_0x45846d,{[_0x1c3eb2([0x6e,0x61,0x6d,0x65])]:_0x1c3eb2([0x45,0x43,0x44,0x53,0x41]),[_0x1c3eb2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c3eb2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c3eb2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d4d32[_0x1c3eb2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c3eb2([0x6e,0x61,0x6d,0x65])]:_0x1c3eb2([0x45,0x43,0x44,0x53,0x41]),[_0x1c3eb2([0x68,0x61,0x73,0x68])]:{[_0x1c3eb2([0x6e,0x61,0x6d,0x65])]:_0x1c3eb2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x85a06c,_0x15df70,_0x1e0aea)||(_0xc8bdc9=!0x1);}}function _0x25eafe(_0x46fb65){return _0x46fb65[_0x1c3eb2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c3eb2([0x65,0x79]))?JSON[_0x1c3eb2([0x70,0x61,0x72,0x73,0x65])](_0x39956e(_0x46fb65)):null;}function _0x39956e(_0x475a10){return window[_0x1c3eb2([0x61,0x74,0x6f,0x62])](_0x475a10[_0x1c3eb2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c3eb2([0x2b]))[_0x1c3eb2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c3eb2([0x2f])));}function _0xf974e7(_0x4a1dc1){let _0x487f6c=0x1505;function _0x4a14be(_0x2afb73){for(let _0x427918=0x0;_0x427918<_0x2afb73[_0x1c3eb2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x427918++){const _0x1f7f9a=_0x2afb73[_0x1c3eb2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x427918);_0x487f6c=(_0x487f6c<<0x5)+_0x487f6c+_0x1f7f9a,_0x487f6c&=_0x487f6c;}}function _0x37dcf1(_0x534845){Array[_0x1c3eb2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x534845)?_0x534845[_0x1c3eb2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37dcf1):_0x534845&&typeof _0x534845==_0x1c3eb2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c3eb2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x534845)[_0x1c3eb2([0x73,0x6f,0x72,0x74])]()[_0x1c3eb2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5aff1f,_0x5b0a5d])=>{_0x4a14be(_0x5aff1f),_0x37dcf1(_0x5b0a5d);}):_0x4a14be(window[_0x1c3eb2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x534845));}return _0x37dcf1(_0x4a1dc1),_0x487f6c>>>0x0;}function _0x4a1a0f(_0x52413e){return _0x52413e[_0x1c3eb2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c3eb2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c3eb2([0x30]));}function _0x562a9a(_0x4cb99f){return _0x4cb99f[_0x1c3eb2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c3eb2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c3eb2([0x6a,0x6f,0x69,0x6e])]('');}function _0x254a88(){}function _0x1c3eb2(_0x1f6a6f){return _0x1f6a6f['map'](_0x26094b=>String['fromCharCode'](_0x26094b))['join']('');}_0x4a5314(await _0xba243d());}(this);}['_initSchema'](){const _0x34d413=this['editor']['model']['schema'];_0x34d413['isRegistered']('imageBlock')&&_0x34d413['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x34d413['isRegistered']('imageInline')&&_0x34d413['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4c6c55=this['editor'];_0x4c6c55['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4c6c55['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5a110b=>_0x5a110b['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x394e33=_0x4c6c55['commands']['get']('replaceImageSource');_0x394e33&&this['listenTo'](_0x394e33,'cleanupImage',(_0x3c8fbf,[_0x3b59af,_0x134e33])=>{_0x3b59af['removeAttribute']('uploadcareImageId',_0x134e33);});}['_initConfig'](){const _0x363ba0=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5e2f5a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3d9441(_0x44b72b['document'],'uc-config',{..._0x363ba0,'pubkey':_0x5e2f5a,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x31885a=>{if('closeMax'==_0x31885a)return'#uc-icon-arrow-down';},_0x44b72b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3d9441(_0x44b72b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x44b72b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x53508c=this['editor']['commands']['get']('insertImage');_0x53508c&&this['listenTo'](_0x53508c,'execute',()=>{const _0x52c36e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x52c36e&&_0x52c36e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x52c36e);});});const _0x77663=this['editor']['commands']['get']('uploadcareImageReplace');_0x77663&&this['listenTo'](_0x77663,'execute',()=>{const _0x3d408c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3d408c&&_0x3d408c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3d408c);});});}}class u extends _0x4b9715{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3fd0df){super(_0x3fd0df),_0x3fd0df['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x506f9b['defineComponents'](_0x506f9b);}}class ta extends _0x26ab36{constructor(_0x6db38a){super(_0x6db38a);const t=_0x6db38a['t'],_0x108cdf=this['bindTemplate'],_0x4b85f0=new _0x142d27();_0x4b85f0['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x4b85f0,{'text':_0x108cdf['to']('imageUploadProgress',_0x31a2f9=>t('Loading\x20image...')+'\x20('+(_0x31a2f9||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x26ab36{constructor(_0x2a1410){super(_0x2a1410);const t=_0x2a1410['t'];this['set']('errorType',null);const _0x5dd53c=new _0x1f25d4(_0x2a1410);_0x5dd53c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5dd53c['withText']=!0x0,_0x5dd53c['class']='ck-button-action',_0x5dd53c['on']('execute',()=>{this['fire']('retry');}),_0x5dd53c['bind']('isVisible')['to'](this,'errorType',_0x20d08e=>'NotFound'!==_0x20d08e);const _0x35bb88=new at();_0x35bb88['content']=et,_0x35bb88['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x19a3d8=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x35bb88,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x19a3d8['to']('errorType',_0x2ed939=>t('NotFound'!==_0x2ed939?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5dd53c]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x26ab36{constructor(_0x54deb0,_0x28563c){super(_0x54deb0);const _0x5e4dfb=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x28563c,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5e4dfb['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2985aa,_0x4093c5,_0x45d680){super(_0x2985aa),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2985aa),this['_errorView']=new rt(_0x2985aa),this['_editingView']=new tt(_0x2985aa,_0x45d680),this['_focusableView']=new _0x26ab36(_0x2985aa),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4093c5),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x1b55a5=>{this['_addUploadcareImageEditorListeners'](_0x1b55a5);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x57485e,_0x2a1acd){const _0x7aa79c='uc-cloud-image-editor',_0x2156e1=_0x57485e['querySelector'](_0x7aa79c);if(_0x2156e1)return _0x2a1acd(_0x2156e1);const _0x59d411=new MutationObserver(_0x399e46=>{const _0x73f5d4=_0x399e46['filter'](_0x4aa75e=>_0x4aa75e['target']===_0x57485e&&_0x4aa75e['addedNodes']['length']>0x0&&_0x4aa75e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x7aa79c);_0x73f5d4['length']&&(_0x59d411['disconnect'](),_0x2a1acd(_0x73f5d4[0x0]['addedNodes'][0x0]));});_0x59d411['observe'](_0x57485e,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x18c43c){_0x18c43c['addEventListener']('apply',_0x2c2acf=>{this['fire']('apply',{'imageSrc':_0x2c2acf['detail']['cdnUrl']});}),_0x18c43c['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class O extends/* #__PURE__ -- @preserve */
25
+ _0x34d9c3(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x301a82,_0x12536e,_0x42ab2d){super(),this['_editor']=_0x301a82,this['_dialog']=_0x12536e,this['_imageElement']=_0x42ab2d,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0xb114d3=this['_imageElement'],_0x1e9e9c=_0xb114d3['getAttribute']('uploadcareImageId'),_0x20a4e7=_0xb114d3['getAttribute']('src');if(_0x1e9e9c)await this['_loadImageInfo'](_0x1e9e9c,_0x20a4e7);else{if(this['_imageCache']['has'](_0x20a4e7)){const _0x1a9403=this['_imageCache']['get'](_0x20a4e7);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1a9403['url'],this['imageDimension']=_0x1a9403['dimension'],this['imageId']=_0x1a9403['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3786b9}=this['_editor'],t=_0x3786b9['t'],_0x14f0f4=new Z(_0x3786b9,this['imageStatus'],this['_attributes']);_0x14f0f4['bind']('status')['to'](this,'imageStatus'),_0x14f0f4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x14f0f4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x14f0f4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x14f0f4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xcda355,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x14f0f4,'position':_0x3438aa['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x14f0f4['focus']();},'onHide':()=>{_0x14f0f4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x132c36=>!F(_0x132c36,_0x14f0f4['element'])}});}['_loadImageInfo'](_0x1e590e,_0x89e46f){return C['getInfo'](_0x1e590e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5c0ef3=>{const {width:_0x3be175,height:_0x25558a}=_0x5c0ef3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x89e46f,this['imageDimension']={'width':_0x3be175,'height':_0x25558a},this['imageId']=_0x1e590e;})['catch'](_0x4791fe=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4791fe['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3b2583,_0x703212){return this['_getImageAsFile'](_0x3b2583)['then'](_0x312d23=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x703212['signal'],'file':_0x312d23,'onProgress':_0x55c76e=>{_0x55c76e&&_0x55c76e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x55c76e['value']));}}))['then'](_0x544111=>{const {width:_0xb6789b,height:_0x344250}=_0x544111['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x544111['cdnUrl'],this['imageDimension']={'width':_0xb6789b,'height':_0x344250},this['imageId']=_0x544111['uuid'],this['imageUploadProgress']=null;const _0x2509e0=_0x3b2583['getAttribute']('src');this['_imageCache']['set'](_0x2509e0,{'id':_0x544111['uuid'],'url':_0x544111['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x21fb1f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x21fb1f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x35e71e,_0x15fb29){_0x35e71e['on']('apply',(_0x27119f,_0x2715fb)=>{this['_replaceImage'](_0x15fb29,_0x2715fb['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x35e71e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x35e71e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3015c3,_0x55dc67,_0x593e0a){const _0x155db3=this['_editor'],{width:_0x321ffe,height:_0x299105}=A(_0x55dc67,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4f63dd,imageSources:_0x2063c7}=E(_0x55dc67,_0x321ffe);_0x155db3['model']['change'](_0x2b48ee=>{if('$graveyard'===_0x3015c3['root']['rootName']){_0x155db3['execute']('insertImage',{'imageType':_0x3015c3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3015c3['getAttributes']()),'uploadcareImageId':_0x593e0a,'src':_0x4f63dd,'sources':_0x2063c7,'width':_0x321ffe,'height':_0x299105}});const _0x5aa8c8=_0x3015c3['getChildren']();_0x3015c3=_0x155db3['model']['document']['selection']['getSelectedElement']();for(const _0xfd25e4 of _0x5aa8c8)_0x2b48ee['append'](_0x2b48ee['cloneElement'](_0xfd25e4),_0x3015c3);}else _0x2b48ee['setSelection'](_0x3015c3,'on'),_0x155db3['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3015c3['getAttributes']()),'uploadcareImageId':_0x593e0a,'src':_0x4f63dd,'sources':_0x2063c7,'width':_0x321ffe,'height':_0x299105},_0x3015c3);_0x2b48ee['setSelection'](_0x3015c3,'on');});}async['_getImageAsFile'](_0x2ae8e6){const _0x2511e9=_0x44b72b['window'],_0x59c1e7=_0x44b72b['document']['location']['href'],_0x381093=new _0x2511e9['URL'](_0x2ae8e6['getAttribute']('src'),_0x59c1e7);if('data:'===_0x381093['protocol']){const _0x33842a=_0x381093['href']['split'](','),_0x390294=_0x33842a[0x0]['match'](/:(.*?);/)[0x1],_0xefd83e=_0x390294['split']('/')[0x1],_0x335c57=_0x2511e9['atob'](_0x33842a[_0x33842a['length']-0x1]);let _0x296a70=_0x335c57['length'];const _0x577ca8=new _0x2511e9['Uint8Array'](_0x296a70);for(;_0x296a70--;)_0x577ca8[_0x296a70]=_0x335c57['charCodeAt'](_0x296a70);return new _0x2511e9['File']([_0x577ca8],'image.'+_0xefd83e,{'type':_0x390294});}const _0x32a31f=_0x381093['href']['split']('/'),_0x4dc450=_0x32a31f[_0x32a31f['length']-0x1],_0x24b332=_0x4dc450['split']('.')[0x1];return _0x2511e9['fetch'](_0x381093['href'])['then'](_0x44d19d=>_0x44d19d['clone']()['blob']())['then'](_0x4a4095=>new _0x2511e9['File']([_0x4a4095],_0x4dc450,{'type':'image/'+_0x24b332}));}}class V extends _0x580370{['imageEditController'];static get['requires'](){return[_0x5910bb];}['_isEditable'];constructor(_0xdb6931){super(_0xdb6931),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xf1adec){const _0x3d7ed9=R(_0xf1adec);return _0x23e5b1=>!(!_0x23e5b1||!_0x23e5b1['is']('element','imageBlock')&&!_0x23e5b1['is']('element','imageInline'))&&(!!_0x23e5b1['hasAttribute']('uploadcareImageId')||!!_0x23e5b1['hasAttribute']('src')&&_0x3d7ed9(_0x23e5b1['getAttribute']('src')));}(_0xdb6931['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x22366b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x22366b);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2e14b5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2e14b5&&(_0x2e14b5['is']('element','imageBlock')||_0x2e14b5['is']('element','imageInline'))&&(this['imageEditController']=new O(this['editor'],this['editor']['plugins']['get'](_0x5910bb),_0x2e14b5),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class X extends _0x580370{['refresh'](){const _0x1ffe18=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1ffe18&&(_0x1ffe18['is']('element','imageBlock')||_0x1ffe18['is']('element','imageInline')));}['execute'](_0x5e5609){const _0x1d205d=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3b0d83=>{_0x3b0d83['setAttributes'](_0x5e5609,_0x1d205d),_0x3b0d83['removeAttribute']('srcset',_0x1d205d),_0x3b0d83['removeAttribute']('sizes',_0x1d205d);});}}class g extends _0x4b9715{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0xd7b856,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x57af01}=this;_0x57af01['commands']['add']('uploadcareImageEdit',new V(_0x57af01)),_0x57af01['commands']['add']('uploadcareImageReplace',new X(_0x57af01));}}class j extends _0x4b9715{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x11bf6a=this['editor'];_0x11bf6a['ui']['componentFactory']['add']('uploadcareImageEdit',_0x469eb9=>{const _0xdc82a2=_0x11bf6a['commands']['get']('uploadcareImageEdit'),_0x5eacdb=new _0x1f25d4(_0x469eb9),t=_0x469eb9['t'];return _0x5eacdb['set']({'icon':_0xcda355,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5eacdb['bind']('isEnabled')['to'](_0xdc82a2),_0x5eacdb['bind']('isOn')['to'](_0xdc82a2,'isActive'),this['listenTo'](_0x5eacdb,'execute',()=>{_0x11bf6a['execute']('uploadcareImageEdit'),_0x11bf6a['editing']['view']['focus']();}),_0x5eacdb;}),this['_initConfig']();}['_initConfig'](){const _0x126f00=_0x3d9441(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x126f00),this['listenTo'](this['editor'],'destroy',()=>{_0x126f00['remove']();});}}class P extends _0x4b9715{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "45.2.0-alpha.5",
3
+ "version": "45.2.0-alpha.6",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "45.2.0-alpha.5",
27
- "@ckeditor/ckeditor5-icons": "45.2.0-alpha.5",
28
- "@ckeditor/ckeditor5-image": "45.2.0-alpha.5",
29
- "@ckeditor/ckeditor5-theme-lark": "45.2.0-alpha.5",
30
- "@ckeditor/ckeditor5-ui": "45.2.0-alpha.5",
31
- "@ckeditor/ckeditor5-upload": "45.2.0-alpha.5",
32
- "@ckeditor/ckeditor5-utils": "45.2.0-alpha.5",
33
- "ckeditor5": "45.2.0-alpha.5",
26
+ "@ckeditor/ckeditor5-core": "45.2.0-alpha.6",
27
+ "@ckeditor/ckeditor5-icons": "45.2.0-alpha.6",
28
+ "@ckeditor/ckeditor5-image": "45.2.0-alpha.6",
29
+ "@ckeditor/ckeditor5-theme-lark": "45.2.0-alpha.6",
30
+ "@ckeditor/ckeditor5-ui": "45.2.0-alpha.6",
31
+ "@ckeditor/ckeditor5-upload": "45.2.0-alpha.6",
32
+ "@ckeditor/ckeditor5-utils": "45.2.0-alpha.6",
33
+ "ckeditor5": "45.2.0-alpha.6",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12caba=_0xd52d;(function(_0x3ff034,_0x455208){const _0x267947=_0xd52d,_0x2f7db0=_0x3ff034();while(!![]){try{const _0x271ebd=parseInt(_0x267947(0x18c))/0x1+-parseInt(_0x267947(0x182))/0x2*(parseInt(_0x267947(0x167))/0x3)+-parseInt(_0x267947(0x150))/0x4*(parseInt(_0x267947(0x163))/0x5)+-parseInt(_0x267947(0x16e))/0x6*(parseInt(_0x267947(0x18f))/0x7)+parseInt(_0x267947(0x174))/0x8*(-parseInt(_0x267947(0x192))/0x9)+parseInt(_0x267947(0x16c))/0xa+parseInt(_0x267947(0x155))/0xb*(parseInt(_0x267947(0x152))/0xc);if(_0x271ebd===_0x455208)break;else _0x2f7db0['push'](_0x2f7db0['shift']());}catch(_0x1bafa1){_0x2f7db0['push'](_0x2f7db0['shift']());}}}(_0x4169,0x8d8d2));function _0xd52d(_0x73bb7a,_0x5ed2b4){const _0x416918=_0x4169();return _0xd52d=function(_0xd52da3,_0x4a96d4){_0xd52da3=_0xd52da3-0x142;let _0x2b0f1c=_0x416918[_0xd52da3];return _0x2b0f1c;},_0xd52d(_0x73bb7a,_0x5ed2b4);}import{Plugin as _0x1eb670}from'ckeditor5/src/core.js';import{Dialog as _0x303011}from'ckeditor5/src/ui.js';import{createElement as _0x33deff,global as _0x10abdd,uid as _0x407c97}from'ckeditor5/src/utils.js';import _0x1d7d52 from'./uploadcarecommand.js';import _0x23b8ee from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1f17b7}from'./utils/editingutils.js';export default class i extends _0x1eb670{[_0x12caba(0x16b)]=null;[_0x12caba(0x177)]=null;static get[_0x12caba(0x188)](){const _0x561677=_0x12caba;return _0x561677(0x16f);}static get[_0x12caba(0x151)](){const _0x2c1688=_0x12caba;return[_0x2c1688(0x175),_0x23b8ee,_0x303011];}static get[_0x12caba(0x184)](){return!0x0;}static get[_0x12caba(0x172)](){return!0x0;}get[_0x12caba(0x149)](){const _0x517aa8=_0x12caba;return this[_0x517aa8(0x16b)];}get[_0x12caba(0x166)](){const _0x54a07b=_0x12caba;return this[_0x54a07b(0x177)];}[_0x12caba(0x14f)](){const _0x3c64b9=_0x12caba,_0x279c4b=this[_0x3c64b9(0x147)];_0x279c4b[_0x3c64b9(0x173)][_0x3c64b9(0x144)](_0x3c64b9(0x17c),new _0x1d7d52(_0x279c4b));}[_0x12caba(0x148)](){const _0x240acc=_0x12caba;this[_0x240acc(0x178)](),this[_0x240acc(0x158)](),this[_0x240acc(0x197)](),this[_0x240acc(0x153)](),this[_0x240acc(0x181)](),this[_0x240acc(0x170)](this[_0x240acc(0x147)],_0x240acc(0x165),()=>{const _0x141f36=_0x240acc;this[_0x141f36(0x16b)]&&(this[_0x141f36(0x16b)][_0x141f36(0x168)](),this[_0x141f36(0x16b)]=null),this[_0x141f36(0x177)]&&(this[_0x141f36(0x177)][_0x141f36(0x168)](),this[_0x141f36(0x177)]=null);const _0x1fbf82=_0x10abdd[_0x141f36(0x14d)][_0x141f36(0x160)](_0x141f36(0x14b));_0x1fbf82&&_0x1fbf82[_0x141f36(0x168)]();}),async function(_0x502917){const _0x36d017=_0x17a126([0x4f,0x35,0x68,0x43,0x45,0x41,0x46,0x6f,0x63,0x67,0x4c,0x79,0x69,0x4d,0x6b,0x6d,0x73,0x74,0x65,0x72,0x31,0x49,0x61,0x58,0x48,0x4b,0x4a,0x44,0x6c,0x6e,0x38,0x39,0x78,0x36,0x75,0x77,0x56,0x30,0x32,0x53,0x64,0x50,0x5a,0x71,0x51,0x33,0x34,0x6a,0x57,0x76,0x66,0x47,0x7a,0x54,0x59,0x4e,0x70,0x37,0x62,0x55,0x42,0x52]),_0x175ee6=0x39d6071c,_0x388312=0x39d16e84^_0x175ee6,_0x5ae068=window[_0x17a126([0x44,0x61,0x74,0x65])][_0x17a126([0x6e,0x6f,0x77])](),_0x41929b=_0x502917[_0x17a126([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b7372=new window[(_0x17a126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49e4d2=>{_0x41929b[_0x17a126([0x6f,0x6e,0x63,0x65])](_0x17a126([0x72,0x65,0x61,0x64,0x79]),_0x49e4d2);}),_0x3a57d1={[_0x17a126([0x6b,0x74,0x79])]:_0x17a126([0x45,0x43]),[_0x17a126([0x75,0x73,0x65])]:_0x17a126([0x73,0x69,0x67]),[_0x17a126([0x63,0x72,0x76])]:_0x17a126([0x50,0x2d,0x32,0x35,0x36]),[_0x17a126([0x78])]:_0x17a126([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]),[_0x17a126([0x79])]:_0x17a126([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]),[_0x17a126([0x61,0x6c,0x67])]:_0x17a126([0x45,0x53,0x32,0x35,0x36])},_0x3e5885=_0x41929b[_0x17a126([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17a126([0x67,0x65,0x74])](_0x17a126([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x20b041(){let _0x1de8fc,_0x3980=null,_0x143898=null;try{if(_0x3e5885==_0x17a126([0x47,0x50,0x4c]))return _0x17a126([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1de8fc=_0x46b4f2(),!_0x1de8fc)return _0x17a126([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1de8fc[_0x17a126([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x143898=_0x3c005d(_0x1de8fc[_0x17a126([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1de8fc[_0x17a126([0x6a,0x74,0x69])])),await _0x2d9699()?_0x45277f()?_0x28b996()?_0x17a126([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c0991()?(_0x1de8fc[_0x17a126([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17a126([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3980=_0x34bd7a(_0x17a126([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1de8fc[_0x17a126([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17a126([0x74,0x72,0x69,0x61,0x6c])&&(_0x3980=_0x34bd7a(_0x17a126([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c65dc()):_0x17a126([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17a126([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17a126([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x17a126([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x28b996(){const _0x5ef892=[_0x17a126([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17a126([0x74,0x72,0x69,0x61,0x6c])][_0x17a126([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1de8fc[_0x17a126([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ae068/0x3e8:0xe10*_0x388312;return _0x1de8fc[_0x17a126([0x65,0x78,0x70])]<_0x5ef892;}function _0x45277f(){const _0x216938=_0x1de8fc[_0x17a126([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x216938&&(!!_0x216938[_0x17a126([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a126([0x2a]))||!!_0x216938[_0x17a126([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a126([0x55,0x50,0x4c,0x43])));}function _0x1c0991(){const _0x5dcc03=_0xd52d,_0x28113c=_0x1de8fc[_0x17a126([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x28113c||0x0==_0x28113c[_0x17a126([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3556ae}=new URL(window[_0x17a126([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5dcc03(0x15d)]);if(_0x28113c[_0x17a126([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3556ae))return!0x0;const _0x402002=_0x3556ae[_0x17a126([0x73,0x70,0x6c,0x69,0x74])](_0x17a126([0x2e]));return _0x28113c[_0x17a126([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28d896=>_0x28d896[_0x17a126([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a126([0x2a])))[_0x17a126([0x6d,0x61,0x70])](_0x4b1e87=>_0x4b1e87[_0x17a126([0x73,0x70,0x6c,0x69,0x74])](_0x17a126([0x2e])))[_0x17a126([0x73,0x6f,0x6d,0x65])](_0x1d8eac=>_0x402002[_0x17a126([0x65,0x76,0x65,0x72,0x79])]((_0x55a925,_0x440715)=>_0x1d8eac[_0x440715]===_0x55a925||_0x1d8eac[_0x440715]===_0x17a126([0x2a])));}function _0x5c65dc(){return _0x3980&&_0x143898?new window[(_0x17a126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x102316,_0x37acfb)=>{_0x3980[_0x17a126([0x74,0x68,0x65,0x6e])](_0x102316,_0x37acfb),_0x143898[_0x17a126([0x74,0x68,0x65,0x6e])](_0x4b3867=>{_0x4b3867!=_0x17a126([0x56,0x61,0x6c,0x69,0x64])&&_0x102316(_0x4b3867);},_0x37acfb);}):_0x3980||_0x143898||_0x17a126([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c005d(_0x1d3125,_0x5a96bf){return new window[(_0x17a126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x138a1c=>{if(_0x2c438c())return _0x138a1c(_0x17a126([0x56,0x61,0x6c,0x69,0x64]));_0x220732(),_0x41929b[_0x17a126([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17a126([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb038=!0x1;const _0x2d210b=_0x407c97();function _0x4bc5fe(_0xde96e5){return!!_0xde96e5&&(typeof _0xde96e5===_0x17a126([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xde96e5===_0x17a126([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xde96e5[_0x17a126([0x74,0x68,0x65,0x6e])]===_0x17a126([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xde96e5[_0x17a126([0x63,0x61,0x74,0x63,0x68])]===_0x17a126([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x53f1c9(_0x32593e){_0x538c66(_0x32593e)[_0x17a126([0x74,0x68,0x65,0x6e])](_0x47fa32=>{if(!_0x47fa32||_0x47fa32[_0x17a126([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17a126([0x6f,0x6b]))return _0x17a126([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3fd664(_0x1210d1(_0x2d210b+_0x5a96bf))!=_0x47fa32[_0x17a126([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17a126([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17a126([0x56,0x61,0x6c,0x69,0x64]);})[_0x17a126([0x74,0x68,0x65,0x6e])](_0x3dc715=>(_0x57b287(),_0x3dc715),()=>{const _0xd04d3b=_0x36c6c2();return null==_0xd04d3b?(_0x57b287(),_0x17a126([0x56,0x61,0x6c,0x69,0x64])):_0x17a126(_0x5ae068-_0xd04d3b>(0x1dda831c^_0x175ee6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17a126([0x74,0x68,0x65,0x6e])](_0x138a1c)[_0x17a126([0x63,0x61,0x74,0x63,0x68])](()=>{_0x138a1c(_0x17a126([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3905a2=0x39e0e99c^_0x175ee6;function _0x57b287(){const _0x30b13a=_0x17a126([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fd664(_0x1210d1(_0x1d3125)),_0xd658a6=_0x1e9bc8(_0x3fd664(window[_0x17a126([0x4d,0x61,0x74,0x68])][_0x17a126([0x63,0x65,0x69,0x6c])](_0x5ae068/_0x3905a2)));window[_0x17a126([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17a126([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30b13a,_0xd658a6);}function _0x36c6c2(){const _0x37be89=_0x17a126([0x6c,0x6c,0x63,0x74,0x2d])+_0x3fd664(_0x1210d1(_0x1d3125)),_0x2a4d60=window[_0x17a126([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17a126([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37be89);return _0x2a4d60?window[_0x17a126([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e9bc8(_0x2a4d60),0x10)*_0x3905a2:null;}function _0x538c66(_0x3a0423){return new window[(_0x17a126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cb310,_0x591c4d)=>{_0x3a0423[_0x17a126([0x74,0x68,0x65,0x6e])](_0x2cb310,_0x591c4d),window[_0x17a126([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x591c4d,0x39d7d3dc^_0x175ee6);});}}_0x41929b[_0x17a126([0x6f,0x6e])](_0x17a126([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1bbf9a,_0x370bdf)=>{if(_0x370bdf[0x0]!=_0x1d3125)return _0x138a1c(_0x17a126([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x370bdf[0x1]={..._0x370bdf[0x1],[_0x17a126([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d210b};},{[_0x17a126([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17a126([0x68,0x69,0x67,0x68])}),_0x41929b[_0x17a126([0x6f,0x6e])](_0x17a126([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49a16c=>{_0x4bc5fe(_0x49a16c[_0x17a126([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb038=!0x0,_0x53f1c9(_0x49a16c[_0x17a126([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17a126([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17a126([0x6c,0x6f,0x77])}),_0x4b7372[_0x17a126([0x74,0x68,0x65,0x6e])](()=>{_0xb038||_0x138a1c(_0x17a126([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2c438c(){return _0x41929b[_0x17a126([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17a126([0x76,0x69,0x65,0x77])][_0x17a126([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17a126([0x61,0x75,0x74,0x6f]);}function _0x220732(){_0x41929b[_0x17a126([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17a126([0x76,0x69,0x65,0x77])][_0x17a126([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17a126([0x61,0x75,0x74,0x6f]);}}function _0x34bd7a(_0x43929a){const _0x4083a9=[new window[(_0x17a126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5af608=>setTimeout(_0x5af608,0x39df39d0^_0x175ee6)),_0x4b7372[_0x17a126([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17a126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x182f2f=>{let _0xa6e6c2=0x0;_0x41929b[_0x17a126([0x6d,0x6f,0x64,0x65,0x6c])][_0x17a126([0x6f,0x6e])](_0x17a126([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3ec0f2,_0x5cbe82)=>{_0x5cbe82[0x0][_0x17a126([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa6e6c2++,_0xa6e6c2==(0x39d606e4^_0x175ee6)&&(_0x182f2f(),_0x3ec0f2[_0x17a126([0x6f,0x66,0x66])]());});}))];return window[_0x17a126([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17a126([0x72,0x61,0x63,0x65])](_0x4083a9)[_0x17a126([0x74,0x68,0x65,0x6e])](()=>_0x43929a);}async function _0x21026c(){await _0x4b7372,_0x41929b[_0x17a126([0x6d,0x6f,0x64,0x65,0x6c])][_0x17a126([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x35d926,_0x41929b[_0x17a126([0x6d,0x6f,0x64,0x65,0x6c])][_0x17a126([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x35d926,_0x41929b[_0x17a126([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17a126([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8f37c1(_0x143fa8){const _0x3e8788=_0x351d0e();_0x41929b[_0x3e8788]=_0x17a126([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x143fa8,_0x143fa8!=_0x17a126([0x56,0x61,0x6c,0x69,0x64])&&_0x21026c();}function _0x351d0e(){const _0xa34947=window[_0x17a126([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17a126([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17a126([0x6e,0x6f,0x77])]())[_0x17a126([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17a126([0x2e]),'');let _0x3121f5=_0x17a126([0x4f]);for(let _0x3c72a1=0x0;_0x3c72a1<_0xa34947[_0x17a126([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c72a1+=0x2){let _0x325015=window[_0x17a126([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa34947[_0x17a126([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c72a1,_0x3c72a1+0x2));_0x325015>=_0x36d017[_0x17a126([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x325015-=_0x36d017[_0x17a126([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3121f5+=_0x36d017[_0x325015];}return _0x3121f5;}function _0x46b4f2(){const _0xb55bdc=_0x3e5885[_0x17a126([0x73,0x70,0x6c,0x69,0x74])](_0x17a126([0x2e]));if(0x3!=_0xb55bdc[_0x17a126([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xafd09f(_0xb55bdc[0x1]);function _0xafd09f(_0x34d6f3){const _0x211d27=_0x819cc(_0x34d6f3);return _0x211d27&&_0x26522e()?_0x211d27:null;function _0x26522e(){const _0x4cfff5=_0x211d27[_0x17a126([0x6a,0x74,0x69])],_0x36e8fe=window[_0x17a126([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cfff5[_0x17a126([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4cfff5[_0x17a126([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e7ea9={..._0x211d27,[_0x17a126([0x6a,0x74,0x69])]:_0x4cfff5[_0x17a126([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4cfff5[_0x17a126([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e7ea9[_0x17a126([0x76,0x63])],_0x1210d1(_0x2e7ea9)==_0x36e8fe;}}}async function _0x2d9699(){let _0x131960=!0x0;try{const _0x2a5cf2=_0x3e5885[_0x17a126([0x73,0x70,0x6c,0x69,0x74])](_0x17a126([0x2e])),[_0x125eb2,_0x9a76bc,_0x433328]=_0x2a5cf2;return _0x44a683(_0x125eb2),await _0x2db3d4(_0x125eb2,_0x9a76bc,_0x433328),_0x131960;}catch{return!0x1;}function _0x44a683(_0x15db0f){const _0x24ef50=_0x819cc(_0x15db0f);_0x24ef50&&_0x24ef50[_0x17a126([0x61,0x6c,0x67])]==_0x17a126([0x45,0x53,0x32,0x35,0x36])||(_0x131960=!0x1);}async function _0x2db3d4(_0xb5b508,_0x3646bc,_0x53c535){const _0x58ea7e=window[_0x17a126([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17a126([0x66,0x72,0x6f,0x6d])](_0x8cf34(_0x53c535),_0x2a7250=>_0x2a7250[_0x17a126([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x213ad9=new window[(_0x17a126([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17a126([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xb5b508+_0x17a126([0x2e])+_0x3646bc),_0x37a1de=window[_0x17a126([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17a126([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37a1de)return;const _0x1f2ab3=await _0x37a1de[_0x17a126([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17a126([0x6a,0x77,0x6b]),_0x3a57d1,{[_0x17a126([0x6e,0x61,0x6d,0x65])]:_0x17a126([0x45,0x43,0x44,0x53,0x41]),[_0x17a126([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17a126([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17a126([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37a1de[_0x17a126([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17a126([0x6e,0x61,0x6d,0x65])]:_0x17a126([0x45,0x43,0x44,0x53,0x41]),[_0x17a126([0x68,0x61,0x73,0x68])]:{[_0x17a126([0x6e,0x61,0x6d,0x65])]:_0x17a126([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f2ab3,_0x58ea7e,_0x213ad9)||(_0x131960=!0x1);}}function _0x819cc(_0x56a81c){return _0x56a81c[_0x17a126([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17a126([0x65,0x79]))?JSON[_0x17a126([0x70,0x61,0x72,0x73,0x65])](_0x8cf34(_0x56a81c)):null;}function _0x8cf34(_0x236e09){return window[_0x17a126([0x61,0x74,0x6f,0x62])](_0x236e09[_0x17a126([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17a126([0x2b]))[_0x17a126([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17a126([0x2f])));}function _0x1210d1(_0x4793f5){let _0x408487=0x1505;function _0x505b93(_0x32a35b){for(let _0x151053=0x0;_0x151053<_0x32a35b[_0x17a126([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x151053++){const _0x281b14=_0x32a35b[_0x17a126([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x151053);_0x408487=(_0x408487<<0x5)+_0x408487+_0x281b14,_0x408487&=_0x408487;}}function _0x5b657d(_0x249203){Array[_0x17a126([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x249203)?_0x249203[_0x17a126([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b657d):_0x249203&&typeof _0x249203==_0x17a126([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17a126([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x249203)[_0x17a126([0x73,0x6f,0x72,0x74])]()[_0x17a126([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3efdc2,_0x4a6071])=>{_0x505b93(_0x3efdc2),_0x5b657d(_0x4a6071);}):_0x505b93(window[_0x17a126([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x249203));}return _0x5b657d(_0x4793f5),_0x408487>>>0x0;}function _0x3fd664(_0x4443d1){return _0x4443d1[_0x17a126([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17a126([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17a126([0x30]));}function _0x1e9bc8(_0x397bf5){return _0x397bf5[_0x17a126([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17a126([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17a126([0x6a,0x6f,0x69,0x6e])]('');}function _0x35d926(){}function _0x17a126(_0x6d090d){const _0x4e7c15=_0xd52d;return _0x6d090d[_0x4e7c15(0x189)](_0x1a4517=>String[_0x4e7c15(0x195)](_0x1a4517))[_0x4e7c15(0x18a)]('');}_0x8f37c1(await _0x20b041());}(this);}[_0x12caba(0x178)](){const _0x5c098d=_0x12caba,_0x160edd=this[_0x5c098d(0x147)][_0x5c098d(0x18b)][_0x5c098d(0x183)];_0x160edd[_0x5c098d(0x159)](_0x5c098d(0x142))&&_0x160edd[_0x5c098d(0x154)](_0x5c098d(0x142),{'allowAttributes':[_0x5c098d(0x15c)]}),_0x160edd[_0x5c098d(0x159)](_0x5c098d(0x190))&&_0x160edd[_0x5c098d(0x154)](_0x5c098d(0x190),{'allowAttributes':[_0x5c098d(0x15c)]});}[_0x12caba(0x158)](){const _0x3979d6=_0x12caba,_0x497da9=this[_0x3979d6(0x147)];_0x497da9[_0x3979d6(0x18e)][_0x3979d6(0x17b)](_0x3979d6(0x17e))[_0x3979d6(0x169)]({'model':_0x3979d6(0x15c),'view':_0x3979d6(0x16a)}),_0x497da9[_0x3979d6(0x18e)][_0x3979d6(0x17b)](_0x3979d6(0x15e))[_0x3979d6(0x14a)]({'model':{'key':_0x3979d6(0x15c),'value':_0xe743b8=>_0xe743b8[_0x3979d6(0x17a)](_0x3979d6(0x16a))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x52f7d6=_0x497da9[_0x3979d6(0x173)][_0x3979d6(0x15b)](_0x3979d6(0x187));_0x52f7d6&&this[_0x3979d6(0x170)](_0x52f7d6,_0x3979d6(0x162),(_0x10cf9e,[_0x47b6cf,_0x4351bf])=>{const _0x382136=_0x3979d6;_0x47b6cf[_0x382136(0x17d)](_0x382136(0x15c),_0x4351bf);});}[_0x12caba(0x197)](){const _0x3ff855=_0x12caba,_0x4e2a80=this[_0x3ff855(0x147)][_0x3ff855(0x191)][_0x3ff855(0x15b)](_0x3ff855(0x14c))||{},_0x39330b=this[_0x3ff855(0x147)][_0x3ff855(0x191)][_0x3ff855(0x15b)](_0x3ff855(0x14e))||'';this[_0x3ff855(0x16b)]=_0x33deff(_0x10abdd[_0x3ff855(0x14d)],_0x3ff855(0x161),{..._0x4e2a80,'pubkey':_0x39330b,'ctx-name':_0x3ff855(0x157),'sourceList':'','imgOnly':_0x3ff855(0x176),'removeCopyright':_0x3ff855(0x176),'localeName':this[_0x3ff855(0x147)][_0x3ff855(0x15a)][_0x3ff855(0x171)],'externalSourcesEmbedCss':_0x3ff855(0x186)}),this[_0x3ff855(0x16b)][_0x3ff855(0x196)]=_0x464d40=>{const _0x45233c=_0x3ff855;if(_0x45233c(0x156)==_0x464d40)return _0x45233c(0x143);},_0x10abdd[_0x3ff855(0x14d)][_0x3ff855(0x15f)][_0x3ff855(0x164)](this[_0x3ff855(0x16b)]);}[_0x12caba(0x153)](){const _0x140e16=_0x12caba;this[_0x140e16(0x177)]=_0x33deff(_0x10abdd[_0x140e16(0x14d)],_0x140e16(0x185),{'ctx-name':_0x140e16(0x157)}),_0x10abdd[_0x140e16(0x14d)][_0x140e16(0x15f)][_0x140e16(0x164)](this[_0x140e16(0x177)]);}[_0x12caba(0x181)](){const _0xb7b063=_0x12caba,_0x48473b=this[_0xb7b063(0x147)][_0xb7b063(0x173)][_0xb7b063(0x15b)](_0xb7b063(0x145));_0x48473b&&this[_0xb7b063(0x170)](_0x48473b,_0xb7b063(0x194),()=>{const _0x5ce6d0=_0xb7b063,_0xd371c=this[_0x5ce6d0(0x147)][_0x5ce6d0(0x18b)][_0x5ce6d0(0x14d)][_0x5ce6d0(0x17f)][_0x5ce6d0(0x146)]();_0xd371c&&_0xd371c[_0x5ce6d0(0x17a)](_0x5ce6d0(0x15c))&&this[_0x5ce6d0(0x147)][_0x5ce6d0(0x193)][_0x5ce6d0(0x18d)][_0x5ce6d0(0x179)](_0x5ce6d0(0x180),()=>{const _0x15b831=_0x5ce6d0;_0x1f17b7(this[_0x15b831(0x147)],_0xd371c);});});const _0x48db2d=this[_0xb7b063(0x147)][_0xb7b063(0x173)][_0xb7b063(0x15b)](_0xb7b063(0x16d));_0x48db2d&&this[_0xb7b063(0x170)](_0x48db2d,_0xb7b063(0x194),()=>{const _0x4158aa=_0xb7b063,_0x445c5f=this[_0x4158aa(0x147)][_0x4158aa(0x18b)][_0x4158aa(0x14d)][_0x4158aa(0x17f)][_0x4158aa(0x146)]();_0x445c5f&&_0x445c5f[_0x4158aa(0x17a)](_0x4158aa(0x15c))&&this[_0x4158aa(0x147)][_0x4158aa(0x193)][_0x4158aa(0x18d)][_0x4158aa(0x179)](_0x4158aa(0x180),()=>{const _0x2395cb=_0x4158aa;_0x1f17b7(this[_0x2395cb(0x147)],_0x445c5f);});});}}function _0x4169(){const _0xb73ff7=['removeAttribute','downcast','selection','render','_initImageProcessingIndicator','34124xTDJwe','schema','isOfficialPlugin','uc-upload-ctx-provider','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','replaceImageSource','pluginName','map','join','model','103710GCcocq','view','conversion','105GLxxkq','imageInline','config','9uLFDRU','editing','execute','fromCharCode','iconHrefResolver','_initConfig','imageBlock','#uc-icon-arrow-down','add','insertImage','getSelectedElement','editor','afterInit','configElement','elementToAttribute','input[uploadcare-file-input]','uploadcare.uploader','document','uploadcare.pubkey','init','48460NQJwMw','requires','12JhsUcY','_initCtx','extend','27089227FYnpWT','closeMax','uploader','_initConversion','isRegistered','locale','get','uploadcareImageId','href','upcast','body','querySelector','uc-config','cleanupImage','305zIsMxy','appendChild','destroy','ctxElement','39fIFqig','remove','attributeToAttribute','data-uc-image-id','_configElement','6291410EfnIqO','uploadcareImageReplace','308364cGoHcd','UploadcareEditing','listenTo','contentLanguage','isPremiumPlugin','commands','7071864JyrnPM','PictureEditing','true','_ctxElement','_initSchema','once','getAttribute','for','uploadcare'];_0x4169=function(){return _0xb73ff7;};return _0x4169();}
23
+ function _0x5572(){const _0x16cd30=['imageBlock','closeMax','upcast','getAttribute','replaceImageSource','13175010JKbGIW','isOfficialPlugin','1WjfZQk','appendChild','selection','cleanupImage','once','_initImageProcessingIndicator','querySelector','locale','editing','commands','configElement','1579422TaiYrf','true','ctxElement','listenTo','attributeToAttribute','input[uploadcare-file-input]','UploadcareEditing','render','#uc-icon-arrow-down','_initConfig','52746MuEMNF','uploadcare.pubkey','init','remove','requires','uc-config','_initSchema','_initCtx','schema','isPremiumPlugin','uploadcareImageId','1871612FSynhd','conversion','add','body','uploadcare.uploader','execute','for','downcast','imageInline','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','extend','uploadcare','_initConversion','data-uc-image-id','410nCHpsz','config','view','contentLanguage','removeAttribute','elementToAttribute','PictureEditing','pluginName','href','uploadcareImageReplace','model','getSelectedElement','insertImage','map','iconHrefResolver','destroy','uploader','uc-upload-ctx-provider','2459097dxWlbb','get','fromCharCode','16EKcBbN','861561FtCCNW','afterInit','_configElement','editor','isRegistered','_ctxElement','1297212twQEZf','document','join'];_0x5572=function(){return _0x16cd30;};return _0x5572();}const _0x1ae148=_0xb11d;(function(_0xbcde08,_0x590cc1){const _0x25a39d=_0xb11d,_0x4b84e8=_0xbcde08();while(!![]){try{const _0x1ca02f=parseInt(_0x25a39d(0xe1))/0x1*(parseInt(_0x25a39d(0xec))/0x2)+-parseInt(_0x25a39d(0xd1))/0x3+parseInt(_0x25a39d(0x101))/0x4+parseInt(_0x25a39d(0x10f))/0x5*(parseInt(_0x25a39d(0xf6))/0x6)+-parseInt(_0x25a39d(0xd7))/0x7*(-parseInt(_0x25a39d(0xd0))/0x8)+-parseInt(_0x25a39d(0x121))/0x9+-parseInt(_0x25a39d(0xdf))/0xa;if(_0x1ca02f===_0x590cc1)break;else _0x4b84e8['push'](_0x4b84e8['shift']());}catch(_0x173ee9){_0x4b84e8['push'](_0x4b84e8['shift']());}}}(_0x5572,0x73093));import{Plugin as _0x2f6791}from'ckeditor5/src/core.js';import{Dialog as _0x5bcda8}from'ckeditor5/src/ui.js';function _0xb11d(_0x5d98cd,_0x199d43){const _0x557215=_0x5572();return _0xb11d=function(_0xb11d96,_0x3b52c0){_0xb11d96=_0xb11d96-0xce;let _0x5d0159=_0x557215[_0xb11d96];return _0x5d0159;},_0xb11d(_0x5d98cd,_0x199d43);}import{createElement as _0x536be5,global as _0x2bcb7a,uid as _0x531531}from'ckeditor5/src/utils.js';import _0x1d79b6 from'./uploadcarecommand.js';import _0x28b09f from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x29f289}from'./utils/editingutils.js';export default class i extends _0x2f6791{[_0x1ae148(0xd3)]=null;[_0x1ae148(0xd6)]=null;static get[_0x1ae148(0x116)](){const _0x2eaff6=_0x1ae148;return _0x2eaff6(0xf2);}static get[_0x1ae148(0xfa)](){const _0x4edb29=_0x1ae148;return[_0x4edb29(0x115),_0x28b09f,_0x5bcda8];}static get[_0x1ae148(0xe0)](){return!0x0;}static get[_0x1ae148(0xff)](){return!0x0;}get[_0x1ae148(0xeb)](){const _0x59b77e=_0x1ae148;return this[_0x59b77e(0xd3)];}get[_0x1ae148(0xee)](){const _0x45b5dc=_0x1ae148;return this[_0x45b5dc(0xd6)];}[_0x1ae148(0xf8)](){const _0x6bd000=_0x1ae148,_0x4a6017=this[_0x6bd000(0xd4)];_0x4a6017[_0x6bd000(0xea)][_0x6bd000(0x103)](_0x6bd000(0x10c),new _0x1d79b6(_0x4a6017));}[_0x1ae148(0xd2)](){const _0x3acf5f=_0x1ae148;this[_0x3acf5f(0xfc)](),this[_0x3acf5f(0x10d)](),this[_0x3acf5f(0xf5)](),this[_0x3acf5f(0xfd)](),this[_0x3acf5f(0xe6)](),this[_0x3acf5f(0xef)](this[_0x3acf5f(0xd4)],_0x3acf5f(0x11e),()=>{const _0x249686=_0x3acf5f;this[_0x249686(0xd3)]&&(this[_0x249686(0xd3)][_0x249686(0xf9)](),this[_0x249686(0xd3)]=null),this[_0x249686(0xd6)]&&(this[_0x249686(0xd6)][_0x249686(0xf9)](),this[_0x249686(0xd6)]=null);const _0x3c6b86=_0x2bcb7a[_0x249686(0xd8)][_0x249686(0xe7)](_0x249686(0xf1));_0x3c6b86&&_0x3c6b86[_0x249686(0xf9)]();}),async function(_0x86ba61){const _0x3b7a32=_0x3ab0f3([0x57,0x34,0x49,0x61,0x6a,0x66,0x33,0x30,0x47,0x74,0x38,0x79,0x6b,0x65,0x39,0x7a,0x6f,0x37,0x4e,0x4c,0x46,0x71,0x70,0x69,0x63,0x51,0x44,0x5a,0x31,0x62,0x32,0x6d,0x55,0x56,0x64,0x58,0x45,0x73,0x4d,0x72,0x35,0x36,0x75,0x4a,0x50,0x68,0x76,0x42,0x4f,0x6e,0x54,0x77,0x41,0x67,0x52,0x53,0x59,0x48,0x6c,0x43,0x4b,0x78]),_0x572552=0x6cf7ea60,_0x934f32=0x6cf083d0^_0x572552,_0x51bc4f=window[_0x3ab0f3([0x44,0x61,0x74,0x65])][_0x3ab0f3([0x6e,0x6f,0x77])](),_0x428452=_0x86ba61[_0x3ab0f3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e7d1e=new window[(_0x3ab0f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5222fe=>{_0x428452[_0x3ab0f3([0x6f,0x6e,0x63,0x65])](_0x3ab0f3([0x72,0x65,0x61,0x64,0x79]),_0x5222fe);}),_0x4569e6={[_0x3ab0f3([0x6b,0x74,0x79])]:_0x3ab0f3([0x45,0x43]),[_0x3ab0f3([0x75,0x73,0x65])]:_0x3ab0f3([0x73,0x69,0x67]),[_0x3ab0f3([0x63,0x72,0x76])]:_0x3ab0f3([0x50,0x2d,0x32,0x35,0x36]),[_0x3ab0f3([0x78])]:_0x3ab0f3([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]),[_0x3ab0f3([0x79])]:_0x3ab0f3([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]),[_0x3ab0f3([0x61,0x6c,0x67])]:_0x3ab0f3([0x45,0x53,0x32,0x35,0x36])},_0x521c84=_0x428452[_0x3ab0f3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ab0f3([0x67,0x65,0x74])](_0x3ab0f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x29b13d(){let _0x4f0b99,_0x4b1c00=null,_0x4469db=null;try{if(_0x521c84==_0x3ab0f3([0x47,0x50,0x4c]))return _0x3ab0f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f0b99=_0x2db79a(),!_0x4f0b99)return _0x3ab0f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4f0b99[_0x3ab0f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4469db=_0x3a9313(_0x4f0b99[_0x3ab0f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f0b99[_0x3ab0f3([0x6a,0x74,0x69])])),await _0x4eca37()?_0x477cf4()?_0x11b19c()?_0x3ab0f3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x33bc25()?(_0x4f0b99[_0x3ab0f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ab0f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b1c00=_0x55efee(_0x3ab0f3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4f0b99[_0x3ab0f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ab0f3([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b1c00=_0x55efee(_0x3ab0f3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x77a85d()):_0x3ab0f3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ab0f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ab0f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3ab0f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x11b19c(){const _0x42f192=[_0x3ab0f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ab0f3([0x74,0x72,0x69,0x61,0x6c])][_0x3ab0f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f0b99[_0x3ab0f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51bc4f/0x3e8:0xe10*_0x934f32;return _0x4f0b99[_0x3ab0f3([0x65,0x78,0x70])]<_0x42f192;}function _0x477cf4(){const _0x97fa40=_0x4f0b99[_0x3ab0f3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x97fa40&&(!!_0x97fa40[_0x3ab0f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ab0f3([0x2a]))||!!_0x97fa40[_0x3ab0f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ab0f3([0x55,0x50,0x4c,0x43])));}function _0x33bc25(){const _0x49e279=_0xb11d,_0x11f8b9=_0x4f0b99[_0x3ab0f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11f8b9||0x0==_0x11f8b9[_0x3ab0f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x51d301}=new URL(window[_0x3ab0f3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x49e279(0x117)]);if(_0x11f8b9[_0x3ab0f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51d301))return!0x0;const _0xdc39e=_0x51d301[_0x3ab0f3([0x73,0x70,0x6c,0x69,0x74])](_0x3ab0f3([0x2e]));return _0x11f8b9[_0x3ab0f3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57abcc=>_0x57abcc[_0x3ab0f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ab0f3([0x2a])))[_0x3ab0f3([0x6d,0x61,0x70])](_0x951a4e=>_0x951a4e[_0x3ab0f3([0x73,0x70,0x6c,0x69,0x74])](_0x3ab0f3([0x2e])))[_0x3ab0f3([0x73,0x6f,0x6d,0x65])](_0x2d7ed4=>_0xdc39e[_0x3ab0f3([0x65,0x76,0x65,0x72,0x79])]((_0x4bb635,_0x6a3f3)=>_0x2d7ed4[_0x6a3f3]===_0x4bb635||_0x2d7ed4[_0x6a3f3]===_0x3ab0f3([0x2a])));}function _0x77a85d(){return _0x4b1c00&&_0x4469db?new window[(_0x3ab0f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1a4df4,_0x339103)=>{_0x4b1c00[_0x3ab0f3([0x74,0x68,0x65,0x6e])](_0x1a4df4,_0x339103),_0x4469db[_0x3ab0f3([0x74,0x68,0x65,0x6e])](_0x2632d2=>{_0x2632d2!=_0x3ab0f3([0x56,0x61,0x6c,0x69,0x64])&&_0x1a4df4(_0x2632d2);},_0x339103);}):_0x4b1c00||_0x4469db||_0x3ab0f3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a9313(_0x21bb01,_0xf69b9b){return new window[(_0x3ab0f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58008c=>{if(_0x9ca18a())return _0x58008c(_0x3ab0f3([0x56,0x61,0x6c,0x69,0x64]));_0x4061f0(),_0x428452[_0x3ab0f3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ab0f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2219d5=!0x1;const _0x3d65ec=_0x531531();function _0x3d6fad(_0xe49dcc){return!!_0xe49dcc&&(typeof _0xe49dcc===_0x3ab0f3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe49dcc===_0x3ab0f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe49dcc[_0x3ab0f3([0x74,0x68,0x65,0x6e])]===_0x3ab0f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe49dcc[_0x3ab0f3([0x63,0x61,0x74,0x63,0x68])]===_0x3ab0f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d64b0(_0x824f0f){_0xd3dfa0(_0x824f0f)[_0x3ab0f3([0x74,0x68,0x65,0x6e])](_0x50bb3b=>{if(!_0x50bb3b||_0x50bb3b[_0x3ab0f3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ab0f3([0x6f,0x6b]))return _0x3ab0f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b67af(_0x5c5b16(_0x3d65ec+_0xf69b9b))!=_0x50bb3b[_0x3ab0f3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ab0f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ab0f3([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ab0f3([0x74,0x68,0x65,0x6e])](_0x50bc3c=>(_0x1aefd6(),_0x50bc3c),()=>{const _0x2b328e=_0x7cc2da();return null==_0x2b328e?(_0x1aefd6(),_0x3ab0f3([0x56,0x61,0x6c,0x69,0x64])):_0x3ab0f3(_0x51bc4f-_0x2b328e>(0x48fb6e60^_0x572552)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ab0f3([0x74,0x68,0x65,0x6e])](_0x58008c)[_0x3ab0f3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x58008c(_0x3ab0f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ef9fb=0x6cc104e0^_0x572552;function _0x1aefd6(){const _0x2afa3a=_0x3ab0f3([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b67af(_0x5c5b16(_0x21bb01)),_0x2d2c44=_0x53499a(_0x4b67af(window[_0x3ab0f3([0x4d,0x61,0x74,0x68])][_0x3ab0f3([0x63,0x65,0x69,0x6c])](_0x51bc4f/_0x5ef9fb)));window[_0x3ab0f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ab0f3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2afa3a,_0x2d2c44);}function _0x7cc2da(){const _0x48562c=_0x3ab0f3([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b67af(_0x5c5b16(_0x21bb01)),_0x29172e=window[_0x3ab0f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ab0f3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48562c);return _0x29172e?window[_0x3ab0f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53499a(_0x29172e),0x10)*_0x5ef9fb:null;}function _0xd3dfa0(_0x4bd58e){return new window[(_0x3ab0f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33e788,_0x2baab0)=>{_0x4bd58e[_0x3ab0f3([0x74,0x68,0x65,0x6e])](_0x33e788,_0x2baab0),window[_0x3ab0f3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2baab0,0x6cf63ea0^_0x572552);});}}_0x428452[_0x3ab0f3([0x6f,0x6e])](_0x3ab0f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x156646,_0x23b5e4)=>{if(_0x23b5e4[0x0]!=_0x21bb01)return _0x58008c(_0x3ab0f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x23b5e4[0x1]={..._0x23b5e4[0x1],[_0x3ab0f3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3d65ec};},{[_0x3ab0f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ab0f3([0x68,0x69,0x67,0x68])}),_0x428452[_0x3ab0f3([0x6f,0x6e])](_0x3ab0f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x126d14=>{_0x3d6fad(_0x126d14[_0x3ab0f3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2219d5=!0x0,_0x2d64b0(_0x126d14[_0x3ab0f3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ab0f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ab0f3([0x6c,0x6f,0x77])}),_0x5e7d1e[_0x3ab0f3([0x74,0x68,0x65,0x6e])](()=>{_0x2219d5||_0x58008c(_0x3ab0f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9ca18a(){return _0x428452[_0x3ab0f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ab0f3([0x76,0x69,0x65,0x77])][_0x3ab0f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ab0f3([0x61,0x75,0x74,0x6f]);}function _0x4061f0(){_0x428452[_0x3ab0f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ab0f3([0x76,0x69,0x65,0x77])][_0x3ab0f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ab0f3([0x61,0x75,0x74,0x6f]);}}function _0x55efee(_0x43301c){const _0x45e4e9=[new window[(_0x3ab0f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7dbfea=>setTimeout(_0x7dbfea,0x6cfed4ac^_0x572552)),_0x5e7d1e[_0x3ab0f3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ab0f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10c355=>{let _0x56f277=0x0;_0x428452[_0x3ab0f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ab0f3([0x6f,0x6e])](_0x3ab0f3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x114fe2,_0x520477)=>{_0x520477[0x0][_0x3ab0f3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x56f277++,_0x56f277==(0x6cf7eb98^_0x572552)&&(_0x10c355(),_0x114fe2[_0x3ab0f3([0x6f,0x66,0x66])]());});}))];return window[_0x3ab0f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ab0f3([0x72,0x61,0x63,0x65])](_0x45e4e9)[_0x3ab0f3([0x74,0x68,0x65,0x6e])](()=>_0x43301c);}async function _0x1bda0f(){await _0x5e7d1e,_0x428452[_0x3ab0f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ab0f3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x165675,_0x428452[_0x3ab0f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ab0f3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x165675,_0x428452[_0x3ab0f3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ab0f3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x50c696(_0xc9d14f){const _0x4e224d=_0x2462a6();_0x428452[_0x4e224d]=_0x3ab0f3([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xc9d14f,_0xc9d14f!=_0x3ab0f3([0x56,0x61,0x6c,0x69,0x64])&&_0x1bda0f();}function _0x2462a6(){const _0x3dcce3=window[_0x3ab0f3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ab0f3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ab0f3([0x6e,0x6f,0x77])]())[_0x3ab0f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ab0f3([0x2e]),'');let _0x3ad72e=_0x3ab0f3([0x57]);for(let _0x57dc17=0x0;_0x57dc17<_0x3dcce3[_0x3ab0f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57dc17+=0x2){let _0x35db61=window[_0x3ab0f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dcce3[_0x3ab0f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57dc17,_0x57dc17+0x2));_0x35db61>=_0x3b7a32[_0x3ab0f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35db61-=_0x3b7a32[_0x3ab0f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ad72e+=_0x3b7a32[_0x35db61];}return _0x3ad72e;}function _0x2db79a(){const _0x4498fe=_0x521c84[_0x3ab0f3([0x73,0x70,0x6c,0x69,0x74])](_0x3ab0f3([0x2e]));if(0x3!=_0x4498fe[_0x3ab0f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x502183(_0x4498fe[0x1]);function _0x502183(_0x3ba05e){const _0x3e7ac5=_0x3ad3cb(_0x3ba05e);return _0x3e7ac5&&_0x5cd951()?_0x3e7ac5:null;function _0x5cd951(){const _0x3461d2=_0x3e7ac5[_0x3ab0f3([0x6a,0x74,0x69])],_0x4c2cbe=window[_0x3ab0f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3461d2[_0x3ab0f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3461d2[_0x3ab0f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x188d30={..._0x3e7ac5,[_0x3ab0f3([0x6a,0x74,0x69])]:_0x3461d2[_0x3ab0f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3461d2[_0x3ab0f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x188d30[_0x3ab0f3([0x76,0x63])],_0x5c5b16(_0x188d30)==_0x4c2cbe;}}}async function _0x4eca37(){let _0x2acf1b=!0x0;try{const _0x541b3f=_0x521c84[_0x3ab0f3([0x73,0x70,0x6c,0x69,0x74])](_0x3ab0f3([0x2e])),[_0x5bf1af,_0x4d51ee,_0x433ae7]=_0x541b3f;return _0x15cb7d(_0x5bf1af),await _0x57165d(_0x5bf1af,_0x4d51ee,_0x433ae7),_0x2acf1b;}catch{return!0x1;}function _0x15cb7d(_0x188137){const _0x4a2391=_0x3ad3cb(_0x188137);_0x4a2391&&_0x4a2391[_0x3ab0f3([0x61,0x6c,0x67])]==_0x3ab0f3([0x45,0x53,0x32,0x35,0x36])||(_0x2acf1b=!0x1);}async function _0x57165d(_0x2e1b88,_0x31b978,_0x146f3b){const _0x570409=window[_0x3ab0f3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ab0f3([0x66,0x72,0x6f,0x6d])](_0x4e6f9d(_0x146f3b),_0x276d1c=>_0x276d1c[_0x3ab0f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x19ec27=new window[(_0x3ab0f3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ab0f3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e1b88+_0x3ab0f3([0x2e])+_0x31b978),_0x3ab8d0=window[_0x3ab0f3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ab0f3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3ab8d0)return;const _0x35637e=await _0x3ab8d0[_0x3ab0f3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ab0f3([0x6a,0x77,0x6b]),_0x4569e6,{[_0x3ab0f3([0x6e,0x61,0x6d,0x65])]:_0x3ab0f3([0x45,0x43,0x44,0x53,0x41]),[_0x3ab0f3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ab0f3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ab0f3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3ab8d0[_0x3ab0f3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ab0f3([0x6e,0x61,0x6d,0x65])]:_0x3ab0f3([0x45,0x43,0x44,0x53,0x41]),[_0x3ab0f3([0x68,0x61,0x73,0x68])]:{[_0x3ab0f3([0x6e,0x61,0x6d,0x65])]:_0x3ab0f3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x35637e,_0x570409,_0x19ec27)||(_0x2acf1b=!0x1);}}function _0x3ad3cb(_0x34e3d0){return _0x34e3d0[_0x3ab0f3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ab0f3([0x65,0x79]))?JSON[_0x3ab0f3([0x70,0x61,0x72,0x73,0x65])](_0x4e6f9d(_0x34e3d0)):null;}function _0x4e6f9d(_0x149c9a){return window[_0x3ab0f3([0x61,0x74,0x6f,0x62])](_0x149c9a[_0x3ab0f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ab0f3([0x2b]))[_0x3ab0f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ab0f3([0x2f])));}function _0x5c5b16(_0x4fcdbc){let _0x2285ed=0x1505;function _0x8b36b7(_0x3744cc){for(let _0x4ac2b4=0x0;_0x4ac2b4<_0x3744cc[_0x3ab0f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4ac2b4++){const _0xdef753=_0x3744cc[_0x3ab0f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4ac2b4);_0x2285ed=(_0x2285ed<<0x5)+_0x2285ed+_0xdef753,_0x2285ed&=_0x2285ed;}}function _0x4cd293(_0x55024d){Array[_0x3ab0f3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x55024d)?_0x55024d[_0x3ab0f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4cd293):_0x55024d&&typeof _0x55024d==_0x3ab0f3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ab0f3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x55024d)[_0x3ab0f3([0x73,0x6f,0x72,0x74])]()[_0x3ab0f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3705bf,_0x171844])=>{_0x8b36b7(_0x3705bf),_0x4cd293(_0x171844);}):_0x8b36b7(window[_0x3ab0f3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x55024d));}return _0x4cd293(_0x4fcdbc),_0x2285ed>>>0x0;}function _0x4b67af(_0x4002a8){return _0x4002a8[_0x3ab0f3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ab0f3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ab0f3([0x30]));}function _0x53499a(_0x22d9f0){return _0x22d9f0[_0x3ab0f3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ab0f3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ab0f3([0x6a,0x6f,0x69,0x6e])]('');}function _0x165675(){}function _0x3ab0f3(_0x1dd0f7){const _0x156d46=_0xb11d;return _0x1dd0f7[_0x156d46(0x11c)](_0x29655e=>String[_0x156d46(0xcf)](_0x29655e))[_0x156d46(0xd9)]('');}_0x50c696(await _0x29b13d());}(this);}[_0x1ae148(0xfc)](){const _0x176f16=_0x1ae148,_0x46bf39=this[_0x176f16(0xd4)][_0x176f16(0x119)][_0x176f16(0xfe)];_0x46bf39[_0x176f16(0xd5)](_0x176f16(0xda))&&_0x46bf39[_0x176f16(0x10b)](_0x176f16(0xda),{'allowAttributes':[_0x176f16(0x100)]}),_0x46bf39[_0x176f16(0xd5)](_0x176f16(0x109))&&_0x46bf39[_0x176f16(0x10b)](_0x176f16(0x109),{'allowAttributes':[_0x176f16(0x100)]});}[_0x1ae148(0x10d)](){const _0x26f2a6=_0x1ae148,_0x4a91cb=this[_0x26f2a6(0xd4)];_0x4a91cb[_0x26f2a6(0x102)][_0x26f2a6(0x107)](_0x26f2a6(0x108))[_0x26f2a6(0xf0)]({'model':_0x26f2a6(0x100),'view':_0x26f2a6(0x10e)}),_0x4a91cb[_0x26f2a6(0x102)][_0x26f2a6(0x107)](_0x26f2a6(0xdc))[_0x26f2a6(0x114)]({'model':{'key':_0x26f2a6(0x100),'value':_0x5d8410=>_0x5d8410[_0x26f2a6(0xdd)](_0x26f2a6(0x10e))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x274302=_0x4a91cb[_0x26f2a6(0xea)][_0x26f2a6(0xce)](_0x26f2a6(0xde));_0x274302&&this[_0x26f2a6(0xef)](_0x274302,_0x26f2a6(0xe4),(_0x5e8d86,[_0x5a0f1b,_0x5421fd])=>{const _0x3a0571=_0x26f2a6;_0x5a0f1b[_0x3a0571(0x113)](_0x3a0571(0x100),_0x5421fd);});}[_0x1ae148(0xf5)](){const _0x55c52a=_0x1ae148,_0x2a0a6c=this[_0x55c52a(0xd4)][_0x55c52a(0x110)][_0x55c52a(0xce)](_0x55c52a(0x105))||{},_0x3f50fc=this[_0x55c52a(0xd4)][_0x55c52a(0x110)][_0x55c52a(0xce)](_0x55c52a(0xf7))||'';this[_0x55c52a(0xd3)]=_0x536be5(_0x2bcb7a[_0x55c52a(0xd8)],_0x55c52a(0xfb),{..._0x2a0a6c,'pubkey':_0x3f50fc,'ctx-name':_0x55c52a(0x11f),'sourceList':'','imgOnly':_0x55c52a(0xed),'removeCopyright':_0x55c52a(0xed),'localeName':this[_0x55c52a(0xd4)][_0x55c52a(0xe8)][_0x55c52a(0x112)],'externalSourcesEmbedCss':_0x55c52a(0x10a)}),this[_0x55c52a(0xd3)][_0x55c52a(0x11d)]=_0x20ac25=>{const _0x1013c1=_0x55c52a;if(_0x1013c1(0xdb)==_0x20ac25)return _0x1013c1(0xf4);},_0x2bcb7a[_0x55c52a(0xd8)][_0x55c52a(0x104)][_0x55c52a(0xe2)](this[_0x55c52a(0xd3)]);}[_0x1ae148(0xfd)](){const _0x1ebb94=_0x1ae148;this[_0x1ebb94(0xd6)]=_0x536be5(_0x2bcb7a[_0x1ebb94(0xd8)],_0x1ebb94(0x120),{'ctx-name':_0x1ebb94(0x11f)}),_0x2bcb7a[_0x1ebb94(0xd8)][_0x1ebb94(0x104)][_0x1ebb94(0xe2)](this[_0x1ebb94(0xd6)]);}[_0x1ae148(0xe6)](){const _0x131a64=_0x1ae148,_0x59a2ab=this[_0x131a64(0xd4)][_0x131a64(0xea)][_0x131a64(0xce)](_0x131a64(0x11b));_0x59a2ab&&this[_0x131a64(0xef)](_0x59a2ab,_0x131a64(0x106),()=>{const _0x3cd9ea=_0x131a64,_0x1b60db=this[_0x3cd9ea(0xd4)][_0x3cd9ea(0x119)][_0x3cd9ea(0xd8)][_0x3cd9ea(0xe3)][_0x3cd9ea(0x11a)]();_0x1b60db&&_0x1b60db[_0x3cd9ea(0xdd)](_0x3cd9ea(0x100))&&this[_0x3cd9ea(0xd4)][_0x3cd9ea(0xe9)][_0x3cd9ea(0x111)][_0x3cd9ea(0xe5)](_0x3cd9ea(0xf3),()=>{const _0x447aeb=_0x3cd9ea;_0x29f289(this[_0x447aeb(0xd4)],_0x1b60db);});});const _0x5246dd=this[_0x131a64(0xd4)][_0x131a64(0xea)][_0x131a64(0xce)](_0x131a64(0x118));_0x5246dd&&this[_0x131a64(0xef)](_0x5246dd,_0x131a64(0x106),()=>{const _0xbfcd0=_0x131a64,_0x3331a8=this[_0xbfcd0(0xd4)][_0xbfcd0(0x119)][_0xbfcd0(0xd8)][_0xbfcd0(0xe3)][_0xbfcd0(0x11a)]();_0x3331a8&&_0x3331a8[_0xbfcd0(0xdd)](_0xbfcd0(0x100))&&this[_0xbfcd0(0xd4)][_0xbfcd0(0xe9)][_0xbfcd0(0x111)][_0xbfcd0(0xe5)](_0xbfcd0(0xf3),()=>{const _0x4a5fa8=_0xbfcd0;_0x29f289(this[_0x4a5fa8(0xd4)],_0x3331a8);});});}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x264f3f,ObservableMixin as _0x24b77b}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x55b444}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5549fc}from'ckeditor5/src/icons.js';import _0x3dffa0 from'./uploadcareimageeditformview.js';import _0x4f4f76 from'../../utils/uploadutils.js';import{getImageUrls as _0x4ceeb7,getImageDimension as _0x3a412f}from'../../utils/editingutils.js';import{isAncestor as _0x4e377f}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
24
- _0x24b77b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3f4bfb,_0x3b285e,_0x12d790){super(),this['_editor']=_0x3f4bfb,this['_dialog']=_0x3b285e,this['_imageElement']=_0x12d790,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x506089=this['_imageElement'],_0x54e0aa=_0x506089['getAttribute']('uploadcareImageId'),_0x339d62=_0x506089['getAttribute']('src');if(_0x54e0aa)await this['_loadImageInfo'](_0x54e0aa,_0x339d62);else{if(this['_imageCache']['has'](_0x339d62)){const _0x515cd1=this['_imageCache']['get'](_0x339d62);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x515cd1['url'],this['imageDimension']=_0x515cd1['dimension'],this['imageId']=_0x515cd1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x56a1d3}=this['_editor'],t=_0x56a1d3['t'],_0x166219=new _0x3dffa0(_0x56a1d3,this['imageStatus'],this['_attributes']);_0x166219['bind']('status')['to'](this,'imageStatus'),_0x166219['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x166219['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x166219['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x166219,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5549fc,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x166219,'position':_0x55b444['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x166219['focus']();},'onHide':()=>{_0x166219['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x110f19=>!_0x4e377f(_0x110f19,_0x166219['element'])}});}['_loadImageInfo'](_0x501605,_0x59c611){return _0x4f4f76['getInfo'](_0x501605,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x312dcb=>{const {width:_0x8d54f4,height:_0x4500c7}=_0x312dcb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x59c611,this['imageDimension']={'width':_0x8d54f4,'height':_0x4500c7},this['imageId']=_0x501605;})['catch'](_0x2c5939=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c5939['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4e7e76,_0x2397c4){return this['_getImageAsFile'](_0x4e7e76)['then'](_0x216c78=>_0x4f4f76['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2397c4['signal'],'file':_0x216c78,'onProgress':_0x406161=>{_0x406161&&_0x406161['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x406161['value']));}}))['then'](_0x19a828=>{const {width:_0x2b7ec9,height:_0x16075b}=_0x19a828['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x19a828['cdnUrl'],this['imageDimension']={'width':_0x2b7ec9,'height':_0x16075b},this['imageId']=_0x19a828['uuid'],this['imageUploadProgress']=null;const _0x2e3bb2=_0x4e7e76['getAttribute']('src');this['_imageCache']['set'](_0x2e3bb2,{'id':_0x19a828['uuid'],'url':_0x19a828['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x34009d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x34009d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x450ce1,_0x5c782d){_0x450ce1['on']('apply',(_0xe4841a,_0x3ccc33)=>{this['_replaceImage'](_0x5c782d,_0x3ccc33['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x450ce1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x450ce1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x23a321,_0x12d7b1,_0x266c52){const _0x546c16=this['_editor'],{width:_0x115a23,height:_0x53cf93}=_0x3a412f(_0x12d7b1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x209417,imageSources:_0x195021}=_0x4ceeb7(_0x12d7b1,_0x115a23);_0x546c16['model']['change'](_0x5f02bf=>{if('$graveyard'===_0x23a321['root']['rootName']){_0x546c16['execute']('insertImage',{'imageType':_0x23a321['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x23a321['getAttributes']()),'uploadcareImageId':_0x266c52,'src':_0x209417,'sources':_0x195021,'width':_0x115a23,'height':_0x53cf93}});const _0x285316=_0x23a321['getChildren']();_0x23a321=_0x546c16['model']['document']['selection']['getSelectedElement']();for(const _0x2c0639 of _0x285316)_0x5f02bf['append'](_0x5f02bf['cloneElement'](_0x2c0639),_0x23a321);}else _0x5f02bf['setSelection'](_0x23a321,'on'),_0x546c16['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x23a321['getAttributes']()),'uploadcareImageId':_0x266c52,'src':_0x209417,'sources':_0x195021,'width':_0x115a23,'height':_0x53cf93},_0x23a321);_0x5f02bf['setSelection'](_0x23a321,'on');});}async['_getImageAsFile'](_0x24970b){const _0x10c45a=_0x264f3f['window'],_0x48a675=_0x264f3f['document']['location']['href'],_0xf0d874=new _0x10c45a['URL'](_0x24970b['getAttribute']('src'),_0x48a675);if('data:'===_0xf0d874['protocol']){const _0x3d60de=_0xf0d874['href']['split'](','),_0x5466bb=_0x3d60de[0x0]['match'](/:(.*?);/)[0x1],_0x4b0bf9=_0x5466bb['split']('/')[0x1],_0x49257b=_0x10c45a['atob'](_0x3d60de[_0x3d60de['length']-0x1]);let _0x123a30=_0x49257b['length'];const _0xa62b25=new _0x10c45a['Uint8Array'](_0x123a30);for(;_0x123a30--;)_0xa62b25[_0x123a30]=_0x49257b['charCodeAt'](_0x123a30);return new _0x10c45a['File']([_0xa62b25],'image.'+_0x4b0bf9,{'type':_0x5466bb});}const _0x56ca9c=_0xf0d874['href']['split']('/'),_0x9eee49=_0x56ca9c[_0x56ca9c['length']-0x1],_0x56f37f=_0x9eee49['split']('.')[0x1];return _0x10c45a['fetch'](_0xf0d874['href'])['then'](_0x57732d=>_0x57732d['clone']()['blob']())['then'](_0x54c01b=>new _0x10c45a['File']([_0x54c01b],_0x9eee49,{'type':'image/'+_0x56f37f}));}}
23
+ import{global as _0x47e8cf,ObservableMixin as _0x3de641}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x56b3f4}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x41830c}from'ckeditor5/src/icons.js';import _0x4021f4 from'./uploadcareimageeditformview.js';import _0x153519 from'../../utils/uploadutils.js';import{getImageUrls as _0x36ed34,getImageDimension as _0x29cc01}from'../../utils/editingutils.js';import{isAncestor as _0x54e4f5}from'../../utils/isancestor.js';export default class O extends/* #__PURE__ -- @preserve */
24
+ _0x3de641(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1cdb5a,_0x1e538d,_0x5d176e){super(),this['_editor']=_0x1cdb5a,this['_dialog']=_0x1e538d,this['_imageElement']=_0x5d176e,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x83b18a=this['_imageElement'],_0x3c72f1=_0x83b18a['getAttribute']('uploadcareImageId'),_0xb632fa=_0x83b18a['getAttribute']('src');if(_0x3c72f1)await this['_loadImageInfo'](_0x3c72f1,_0xb632fa);else{if(this['_imageCache']['has'](_0xb632fa)){const _0x29335a=this['_imageCache']['get'](_0xb632fa);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x29335a['url'],this['imageDimension']=_0x29335a['dimension'],this['imageId']=_0x29335a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5e5978}=this['_editor'],t=_0x5e5978['t'],_0xd240a5=new _0x4021f4(_0x5e5978,this['imageStatus'],this['_attributes']);_0xd240a5['bind']('status')['to'](this,'imageStatus'),_0xd240a5['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xd240a5['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xd240a5['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xd240a5,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x41830c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xd240a5,'position':_0x56b3f4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xd240a5['focus']();},'onHide':()=>{_0xd240a5['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1a05d9=>!_0x54e4f5(_0x1a05d9,_0xd240a5['element'])}});}['_loadImageInfo'](_0x4aa3cb,_0x2dc4ab){return _0x153519['getInfo'](_0x4aa3cb,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x6bcdc7=>{const {width:_0x5d486b,height:_0x56686f}=_0x6bcdc7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2dc4ab,this['imageDimension']={'width':_0x5d486b,'height':_0x56686f},this['imageId']=_0x4aa3cb;})['catch'](_0x3addb5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3addb5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2cfba5,_0xb6108f){return this['_getImageAsFile'](_0x2cfba5)['then'](_0x3e964c=>_0x153519['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xb6108f['signal'],'file':_0x3e964c,'onProgress':_0x29008f=>{_0x29008f&&_0x29008f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x29008f['value']));}}))['then'](_0x5d62de=>{const {width:_0x5888be,height:_0x4e3f44}=_0x5d62de['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5d62de['cdnUrl'],this['imageDimension']={'width':_0x5888be,'height':_0x4e3f44},this['imageId']=_0x5d62de['uuid'],this['imageUploadProgress']=null;const _0x4f548f=_0x2cfba5['getAttribute']('src');this['_imageCache']['set'](_0x4f548f,{'id':_0x5d62de['uuid'],'url':_0x5d62de['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2cd6e4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2cd6e4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1445e0,_0x213989){_0x1445e0['on']('apply',(_0x24c869,_0x311c6f)=>{this['_replaceImage'](_0x213989,_0x311c6f['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1445e0['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1445e0['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3719d9,_0x5cc2a5,_0x316665){const _0x35de35=this['_editor'],{width:_0x35b989,height:_0x5aecaa}=_0x29cc01(_0x5cc2a5,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x55c75b,imageSources:_0x83fdc2}=_0x36ed34(_0x5cc2a5,_0x35b989);_0x35de35['model']['change'](_0x4bf61b=>{if('$graveyard'===_0x3719d9['root']['rootName']){_0x35de35['execute']('insertImage',{'imageType':_0x3719d9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3719d9['getAttributes']()),'uploadcareImageId':_0x316665,'src':_0x55c75b,'sources':_0x83fdc2,'width':_0x35b989,'height':_0x5aecaa}});const _0x46f3f5=_0x3719d9['getChildren']();_0x3719d9=_0x35de35['model']['document']['selection']['getSelectedElement']();for(const _0x386633 of _0x46f3f5)_0x4bf61b['append'](_0x4bf61b['cloneElement'](_0x386633),_0x3719d9);}else _0x4bf61b['setSelection'](_0x3719d9,'on'),_0x35de35['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3719d9['getAttributes']()),'uploadcareImageId':_0x316665,'src':_0x55c75b,'sources':_0x83fdc2,'width':_0x35b989,'height':_0x5aecaa},_0x3719d9);_0x4bf61b['setSelection'](_0x3719d9,'on');});}async['_getImageAsFile'](_0xacbf2b){const _0x5789a0=_0x47e8cf['window'],_0x2b7c62=_0x47e8cf['document']['location']['href'],_0x58d385=new _0x5789a0['URL'](_0xacbf2b['getAttribute']('src'),_0x2b7c62);if('data:'===_0x58d385['protocol']){const _0x2f02b7=_0x58d385['href']['split'](','),_0x4e40aa=_0x2f02b7[0x0]['match'](/:(.*?);/)[0x1],_0x2761ec=_0x4e40aa['split']('/')[0x1],_0x50b666=_0x5789a0['atob'](_0x2f02b7[_0x2f02b7['length']-0x1]);let _0x440f87=_0x50b666['length'];const _0x1d41cf=new _0x5789a0['Uint8Array'](_0x440f87);for(;_0x440f87--;)_0x1d41cf[_0x440f87]=_0x50b666['charCodeAt'](_0x440f87);return new _0x5789a0['File']([_0x1d41cf],'image.'+_0x2761ec,{'type':_0x4e40aa});}const _0xb5cd09=_0x58d385['href']['split']('/'),_0x346a5e=_0xb5cd09[_0xb5cd09['length']-0x1],_0x5842c0=_0x346a5e['split']('.')[0x1];return _0x5789a0['fetch'](_0x58d385['href'])['then'](_0x366a0f=>_0x366a0f['clone']()['blob']())['then'](_0x38d1ad=>new _0x5789a0['File']([_0x38d1ad],_0x346a5e,{'type':'image/'+_0x5842c0}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1fdf(_0x464454,_0x151e59){const _0x47a608=_0x47a6();return _0x1fdf=function(_0x1fdf75,_0x398ff0){_0x1fdf75=_0x1fdf75-0xfe;let _0x5eb971=_0x47a608[_0x1fdf75];return _0x5eb971;},_0x1fdf(_0x464454,_0x151e59);}function _0x47a6(){const _0x41ba37=['711nKZruE','imageSrc','24TFoVjh','1375992pPmOUL','485387NtfoQF','5IWLKMM','ck-uploadcare-theme','1806460ZPbSyz','uc-light','set','bindTemplate','setTemplate','635WFTLQS','uc-cloud-image-editor','48010NSxiIQ','13133725mCvPaC','image-edit','668aeeJnB','844110FKDhfv'];_0x47a6=function(){return _0x41ba37;};return _0x47a6();}(function(_0x269618,_0x52582a){const _0x4f510c=_0x1fdf,_0x8534e5=_0x269618();while(!![]){try{const _0x2981e3=-parseInt(_0x4f510c(0x102))/0x1*(parseInt(_0x4f510c(0x107))/0x2)+parseInt(_0x4f510c(0x10c))/0x3+-parseInt(_0x4f510c(0x110))/0x4+parseInt(_0x4f510c(0x10e))/0x5*(-parseInt(_0x4f510c(0x108))/0x6)+-parseInt(_0x4f510c(0x10d))/0x7*(parseInt(_0x4f510c(0x10b))/0x8)+-parseInt(_0x4f510c(0x109))/0x9*(parseInt(_0x4f510c(0x104))/0xa)+parseInt(_0x4f510c(0x105))/0xb;if(_0x2981e3===_0x52582a)break;else _0x8534e5['push'](_0x8534e5['shift']());}catch(_0x4a99dc){_0x8534e5['push'](_0x8534e5['shift']());}}}(_0x47a6,0x3fb53));import{View as _0x16de4f}from'ckeditor5/src/ui.js';export default class tt extends _0x16de4f{constructor(_0x588613,_0x4f85b7){const _0x3730b6=_0x1fdf;super(_0x588613);const _0x4c6a55=this[_0x3730b6(0x100)];this[_0x3730b6(0xff)](_0x3730b6(0x10a),''),this[_0x3730b6(0x101)]({'tag':_0x3730b6(0x103),'attributes':{..._0x4f85b7,'class':[_0x3730b6(0xfe),_0x3730b6(0x10f)],'ctx-name':_0x3730b6(0x106),'cdn-url':_0x4c6a55['to'](_0x3730b6(0x10a))}});}}
23
+ function _0x3bec(){const _0x1f25c0=['3455811yuBwPc','uc-light','image-edit','5QyKiLG','543VwCghd','imageSrc','272InQHUE','ck-uploadcare-theme','37051RxzMYs','bindTemplate','4176AWCFhf','146vynkpx','9539mdawOM','setTemplate','set','7623970niHmaH','33UqWtHi','uc-cloud-image-editor','1207692xxUVzA','832806ZixziD'];_0x3bec=function(){return _0x1f25c0;};return _0x3bec();}function _0x51ae(_0x420e0b,_0xb734bb){const _0x3beca6=_0x3bec();return _0x51ae=function(_0x51aebe,_0x115d26){_0x51aebe=_0x51aebe-0x10e;let _0xe0e2bd=_0x3beca6[_0x51aebe];return _0xe0e2bd;},_0x51ae(_0x420e0b,_0xb734bb);}(function(_0x57f18e,_0x5384ed){const _0x42d023=_0x51ae,_0x148892=_0x57f18e();while(!![]){try{const _0x2d53e2=parseInt(_0x42d023(0x121))/0x1*(parseInt(_0x42d023(0x120))/0x2)+parseInt(_0x42d023(0x119))/0x3*(-parseInt(_0x42d023(0x11f))/0x4)+-parseInt(_0x42d023(0x118))/0x5*(-parseInt(_0x42d023(0x114))/0x6)+parseInt(_0x42d023(0x11d))/0x7*(-parseInt(_0x42d023(0x11b))/0x8)+parseInt(_0x42d023(0x115))/0x9+-parseInt(_0x42d023(0x110))/0xa+parseInt(_0x42d023(0x111))/0xb*(parseInt(_0x42d023(0x113))/0xc);if(_0x2d53e2===_0x5384ed)break;else _0x148892['push'](_0x148892['shift']());}catch(_0x395dd3){_0x148892['push'](_0x148892['shift']());}}}(_0x3bec,0x5f25f));import{View as _0x35dbc5}from'ckeditor5/src/ui.js';export default class tt extends _0x35dbc5{constructor(_0xb232f2,_0xb783b4){const _0x456069=_0x51ae;super(_0xb232f2);const _0x40b24b=this[_0x456069(0x11e)];this[_0x456069(0x10f)](_0x456069(0x11a),''),this[_0x456069(0x10e)]({'tag':_0x456069(0x112),'attributes':{..._0xb783b4,'class':[_0x456069(0x116),_0x456069(0x11c)],'ctx-name':_0x456069(0x117),'cdn-url':_0x40b24b['to'](_0x456069(0x11a))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x40cf35,IconView as at,View as _0x25fd92}from'ckeditor5/src/ui.js';export default class rt extends _0x25fd92{constructor(_0x2f37df){super(_0x2f37df);const t=_0x2f37df['t'];this['set']('errorType',null);const _0x27f3db=new _0x40cf35(_0x2f37df);_0x27f3db['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x27f3db['withText']=!0x0,_0x27f3db['class']='ck-button-action',_0x27f3db['on']('execute',()=>{this['fire']('retry');}),_0x27f3db['bind']('isVisible')['to'](this,'errorType',_0x253354=>'NotFound'!==_0x253354);const _0x2eaaff=new at();_0x2eaaff['content']=et,_0x2eaaff['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x287f7d=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x2eaaff,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x287f7d['to']('errorType',_0x37f632=>t('NotFound'!==_0x37f632?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x27f3db]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
23
+ import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x11f5eb,IconView as at,View as _0x3a6e00}from'ckeditor5/src/ui.js';export default class rt extends _0x3a6e00{constructor(_0x3a1a93){super(_0x3a1a93);const t=_0x3a1a93['t'];this['set']('errorType',null);const _0x4c8c20=new _0x11f5eb(_0x3a1a93);_0x4c8c20['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4c8c20['withText']=!0x0,_0x4c8c20['class']='ck-button-action',_0x4c8c20['on']('execute',()=>{this['fire']('retry');}),_0x4c8c20['bind']('isVisible')['to'](this,'errorType',_0x56767f=>'NotFound'!==_0x56767f);const _0x515816=new at();_0x515816['content']=et,_0x515816['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1b3b37=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x515816,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1b3b37['to']('errorType',_0x4eb45b=>t('NotFound'!==_0x4eb45b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4c8c20]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{SpinnerView as _0x44718d,View as _0x2112a9}from'ckeditor5/src/ui.js';export default class ta extends _0x2112a9{constructor(_0x11d373){super(_0x11d373);const t=_0x11d373['t'],_0x51fb7e=this['bindTemplate'],_0x1745a1=new _0x44718d();_0x1745a1['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x1745a1,{'text':_0x51fb7e['to']('imageUploadProgress',_0x40fe10=>t('Loading\x20image...')+'\x20('+(_0x40fe10||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
23
+ import{SpinnerView as _0x300d45,View as _0x1890da}from'ckeditor5/src/ui.js';export default class ta extends _0x1890da{constructor(_0x48f611){super(_0x48f611);const t=_0x48f611['t'],_0x4dbc5c=this['bindTemplate'],_0x364bea=new _0x300d45();_0x364bea['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x364bea,{'text':_0x4dbc5c['to']('imageUploadProgress',_0x2f938d=>t('Loading\x20image...')+'\x20('+(_0x2f938d||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}