@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250920.0 → 0.0.0-nightly-20250921.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x56daba,ObservableMixin as _0x47b8a1}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x181fc3}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4e778d}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x394275}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x289dcc}from'../../utils/uploadutils.js';import{getImageUrls as _0x117fa3,getImageDimension as _0x26bdd8}from'../../utils/editingutils.js';import{isAncestor as _0x36c1d7}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x47b8a1(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x41670f,_0x450860,_0x4cebdb){super(),this['_editor']=_0x41670f,this['_dialog']=_0x450860,this['_imageElement']=_0x4cebdb,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 _0x5a2337=this['_imageElement'],_0x2ded00=_0x5a2337['getAttribute']('uploadcareImageId'),_0x2fa03d=_0x5a2337['getAttribute']('src');if(_0x2ded00)await this['_loadImageInfo'](_0x2ded00,_0x2fa03d);else{if(this['_imageCache']['has'](_0x2fa03d)){const _0x221eb7=this['_imageCache']['get'](_0x2fa03d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x221eb7['url'],this['imageDimension']=_0x221eb7['dimension'],this['imageId']=_0x221eb7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5009b8}=this['_editor'],t=_0x5009b8['t'],_0x110e4c=new _0x394275(_0x5009b8,this['imageStatus'],this['_attributes']);_0x110e4c['bind']('status')['to'](this,'imageStatus'),_0x110e4c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x110e4c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x110e4c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x110e4c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4e778d,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x110e4c,'position':_0x181fc3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x110e4c['focus']();},'onHide':()=>{_0x110e4c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2935ec=>!_0x36c1d7(_0x2935ec,_0x110e4c['element'])}});}['_loadImageInfo'](_0x5bd983,_0x10e2c2){return _0x289dcc['getInfo'](_0x5bd983,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x38231a=>{const {width:_0xeaa01f,height:_0x1ad433}=_0x38231a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x10e2c2,this['imageDimension']={'width':_0xeaa01f,'height':_0x1ad433},this['imageId']=_0x5bd983;})['catch'](_0x1ce3e6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1ce3e6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1038f7,_0x136d47){return this['_getImageAsFile'](_0x1038f7)['then'](_0x824238=>_0x289dcc['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x136d47['signal'],'file':_0x824238,'onProgress':_0x3dcfc2=>{_0x3dcfc2&&_0x3dcfc2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3dcfc2['value']));}}))['then'](_0x4bb4da=>{const {width:_0x1d5e47,height:_0x1ab232}=_0x4bb4da['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4bb4da['cdnUrl'],this['imageDimension']={'width':_0x1d5e47,'height':_0x1ab232},this['imageId']=_0x4bb4da['uuid'],this['imageUploadProgress']=null;const _0x5bbf95=_0x1038f7['getAttribute']('src');this['_imageCache']['set'](_0x5bbf95,{'id':_0x4bb4da['uuid'],'url':_0x4bb4da['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2a3ab7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2a3ab7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x71560e,_0x18fa6e){_0x71560e['on']('apply',(_0x33c4d5,_0x11f4cc)=>{this['_replaceImage'](_0x18fa6e,_0x11f4cc['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x71560e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x71560e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x8f0e4a,_0x53998d,_0xfb3898){const _0x5c1521=this['_editor'],{width:_0x4d338b,height:_0x543743}=_0x26bdd8(_0x53998d,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1ae720,imageSources:_0x20f447}=_0x117fa3(_0x53998d,_0x4d338b);_0x5c1521['model']['change'](_0x17ea5e=>{if('$graveyard'===_0x8f0e4a['root']['rootName']){_0x5c1521['execute']('insertImage',{'imageType':_0x8f0e4a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x8f0e4a['getAttributes']()),'uploadcareImageId':_0xfb3898,'src':_0x1ae720,'sources':_0x20f447,'width':_0x4d338b,'height':_0x543743}});const _0x4c8c65=_0x8f0e4a['getChildren']();_0x8f0e4a=_0x5c1521['model']['document']['selection']['getSelectedElement']();for(const _0x3dbf01 of _0x4c8c65)_0x17ea5e['append'](_0x17ea5e['cloneElement'](_0x3dbf01),_0x8f0e4a);}else _0x17ea5e['setSelection'](_0x8f0e4a,'on'),_0x5c1521['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x8f0e4a['getAttributes']()),'uploadcareImageId':_0xfb3898,'src':_0x1ae720,'sources':_0x20f447,'width':_0x4d338b,'height':_0x543743},_0x8f0e4a);_0x17ea5e['setSelection'](_0x8f0e4a,'on');});}async['_getImageAsFile'](_0x42525e){const _0x44a949=_0x56daba['window'],_0x157987=_0x56daba['document']['location']['href'],_0x1d01af=new _0x44a949['URL'](_0x42525e['getAttribute']('src'),_0x157987);if('data:'===_0x1d01af['protocol']){const _0x14d647=_0x1d01af['href']['split'](','),_0xc380b1=_0x14d647[0x0]['match'](/:(.*?);/)[0x1],_0x4f9dfd=_0xc380b1['split']('/')[0x1],_0x59d02f=_0x44a949['atob'](_0x14d647[_0x14d647['length']-0x1]);let _0x476c6f=_0x59d02f['length'];const _0xd2cfcc=new _0x44a949['Uint8Array'](_0x476c6f);for(;_0x476c6f--;)_0xd2cfcc[_0x476c6f]=_0x59d02f['charCodeAt'](_0x476c6f);return new _0x44a949['File']([_0xd2cfcc],'image.'+_0x4f9dfd,{'type':_0xc380b1});}const _0x3239ec=_0x1d01af['href']['split']('/'),_0x4c0c2f=_0x3239ec[_0x3239ec['length']-0x1],_0x573813=_0x4c0c2f['split']('.')[0x1];return _0x44a949['fetch'](_0x1d01af['href'])['then'](_0x39cb5a=>_0x39cb5a['clone']()['blob']())['then'](_0x50efbe=>new _0x44a949['File']([_0x50efbe],_0x4c0c2f,{'type':'image/'+_0x573813}));}}
23
+ import{global as _0x359376,ObservableMixin as _0x5e765f}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2e0fca}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4144b1}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x5ef867}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x18278f}from'../../utils/uploadutils.js';import{getImageUrls as _0xeab726,getImageDimension as _0x20834c}from'../../utils/editingutils.js';import{isAncestor as _0x140b6a}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x5e765f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x346fa7,_0x328e1d,_0x5c9a8a){super(),this['_editor']=_0x346fa7,this['_dialog']=_0x328e1d,this['_imageElement']=_0x5c9a8a,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 _0x27c026=this['_imageElement'],_0x1e0f97=_0x27c026['getAttribute']('uploadcareImageId'),_0x1e5d6e=_0x27c026['getAttribute']('src');if(_0x1e0f97)await this['_loadImageInfo'](_0x1e0f97,_0x1e5d6e);else{if(this['_imageCache']['has'](_0x1e5d6e)){const _0x419d7a=this['_imageCache']['get'](_0x1e5d6e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x419d7a['url'],this['imageDimension']=_0x419d7a['dimension'],this['imageId']=_0x419d7a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x161178}=this['_editor'],t=_0x161178['t'],_0x497a05=new _0x5ef867(_0x161178,this['imageStatus'],this['_attributes']);_0x497a05['bind']('status')['to'](this,'imageStatus'),_0x497a05['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x497a05['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x497a05['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x497a05,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x4144b1,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x497a05,'position':_0x2e0fca['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x497a05['focus']();},'onHide':()=>{_0x497a05['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5db52e=>!_0x140b6a(_0x5db52e,_0x497a05['element'])}});}['_loadImageInfo'](_0x43b66f,_0x111208){return _0x18278f['getInfo'](_0x43b66f,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3c7d12=>{const {width:_0xd6d5eb,height:_0x5d0ce1}=_0x3c7d12['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x111208,this['imageDimension']={'width':_0xd6d5eb,'height':_0x5d0ce1},this['imageId']=_0x43b66f;})['catch'](_0x471d84=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x471d84['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1a72ae,_0x34bbb5){return this['_getImageAsFile'](_0x1a72ae)['then'](_0x1a2e54=>_0x18278f['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x34bbb5['signal'],'file':_0x1a2e54,'onProgress':_0x5812ab=>{_0x5812ab&&_0x5812ab['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5812ab['value']));}}))['then'](_0x589866=>{const {width:_0xc667d,height:_0x38ed9d}=_0x589866['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x589866['cdnUrl'],this['imageDimension']={'width':_0xc667d,'height':_0x38ed9d},this['imageId']=_0x589866['uuid'],this['imageUploadProgress']=null;const _0x521919=_0x1a72ae['getAttribute']('src');this['_imageCache']['set'](_0x521919,{'id':_0x589866['uuid'],'url':_0x589866['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x158c5d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x158c5d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x5333af,_0x46b016){_0x5333af['on']('apply',(_0x160683,_0x582688)=>{this['_replaceImage'](_0x46b016,_0x582688['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x5333af['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x5333af['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4069df,_0x221eba,_0x5dcb5a){const _0x4a1e1a=this['_editor'],{width:_0xdd3394,height:_0x50b048}=_0x20834c(_0x221eba,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xe53579,imageSources:_0x205649}=_0xeab726(_0x221eba,_0xdd3394);_0x4a1e1a['model']['change'](_0x33fcc7=>{if('$graveyard'===_0x4069df['root']['rootName']){_0x4a1e1a['execute']('insertImage',{'imageType':_0x4069df['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4069df['getAttributes']()),'uploadcareImageId':_0x5dcb5a,'src':_0xe53579,'sources':_0x205649,'width':_0xdd3394,'height':_0x50b048}});const _0x3a92e0=_0x4069df['getChildren']();_0x4069df=_0x4a1e1a['model']['document']['selection']['getSelectedElement']();for(const _0x9f5e6e of _0x3a92e0)_0x33fcc7['append'](_0x33fcc7['cloneElement'](_0x9f5e6e),_0x4069df);}else _0x33fcc7['setSelection'](_0x4069df,'on'),_0x4a1e1a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4069df['getAttributes']()),'uploadcareImageId':_0x5dcb5a,'src':_0xe53579,'sources':_0x205649,'width':_0xdd3394,'height':_0x50b048},_0x4069df);_0x33fcc7['setSelection'](_0x4069df,'on');});}async['_getImageAsFile'](_0xe0a74c){const _0x480d7e=_0x359376['window'],_0x2d2e49=_0x359376['document']['location']['href'],_0x428e72=new _0x480d7e['URL'](_0xe0a74c['getAttribute']('src'),_0x2d2e49);if('data:'===_0x428e72['protocol']){const _0x5aaccd=_0x428e72['href']['split'](','),_0x3a383f=_0x5aaccd[0x0]['match'](/:(.*?);/)[0x1],_0x573046=_0x3a383f['split']('/')[0x1],_0x4a2463=_0x480d7e['atob'](_0x5aaccd[_0x5aaccd['length']-0x1]);let _0x4ff3a1=_0x4a2463['length'];const _0x5b3178=new _0x480d7e['Uint8Array'](_0x4ff3a1);for(;_0x4ff3a1--;)_0x5b3178[_0x4ff3a1]=_0x4a2463['charCodeAt'](_0x4ff3a1);return new _0x480d7e['File']([_0x5b3178],'image.'+_0x573046,{'type':_0x3a383f});}const _0x349652=_0x428e72['href']['split']('/'),_0x57911c=_0x349652[_0x349652['length']-0x1],_0x1646cc=_0x57911c['split']('.')[0x1];return _0x480d7e['fetch'](_0x428e72['href'])['then'](_0x13adb8=>_0x13adb8['clone']()['blob']())['then'](_0x1062ef=>new _0x480d7e['File']([_0x1062ef],_0x57911c,{'type':'image/'+_0x1646cc}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x20a959,_0x1121d3){const _0xa9bbbb=_0x3f43,_0x2e7ada=_0x20a959();while(!![]){try{const _0x3b5e0c=parseInt(_0xa9bbbb(0xf1))/0x1*(parseInt(_0xa9bbbb(0xeb))/0x2)+-parseInt(_0xa9bbbb(0xee))/0x3*(parseInt(_0xa9bbbb(0xea))/0x4)+parseInt(_0xa9bbbb(0xe7))/0x5+-parseInt(_0xa9bbbb(0xe5))/0x6+parseInt(_0xa9bbbb(0xf0))/0x7+-parseInt(_0xa9bbbb(0xe4))/0x8+parseInt(_0xa9bbbb(0xe9))/0x9;if(_0x3b5e0c===_0x1121d3)break;else _0x2e7ada['push'](_0x2e7ada['shift']());}catch(_0xf9f26c){_0x2e7ada['push'](_0x2e7ada['shift']());}}}(_0x1e4c,0xa61be));import{View as _0x44ec4f}from'ckeditor5/src/ui.js';function _0x3f43(_0x4b4870,_0x1e9095){const _0x1e4c4b=_0x1e4c();return _0x3f43=function(_0x3f4308,_0x5b80d8){_0x3f4308=_0x3f4308-0xe3;let _0x1edf75=_0x1e4c4b[_0x3f4308];return _0x1edf75;},_0x3f43(_0x4b4870,_0x1e9095);}function _0x1e4c(){const _0x21c757=['ck-uploadcare-theme','12319038vsoObP','72300QSwlvR','386OxOTGz','uc-light','uc-cloud-image-editor','63fbpQIG','imageSrc','276381DOnNUZ','4139jJdnRb','set','setTemplate','bindTemplate','4937608tWGYzB','3273084GQOkSJ','image-edit','77900sEpgRu'];_0x1e4c=function(){return _0x21c757;};return _0x1e4c();}export class UploadcareImageEditFormEditingView extends _0x44ec4f{constructor(_0x262d81,_0x43d61d){const _0x8fbfe9=_0x3f43;super(_0x262d81);const _0x59d556=this[_0x8fbfe9(0xe3)];this[_0x8fbfe9(0xf2)](_0x8fbfe9(0xef),''),this[_0x8fbfe9(0xf3)]({'tag':_0x8fbfe9(0xed),'attributes':{..._0x43d61d,'class':[_0x8fbfe9(0xec),_0x8fbfe9(0xe8)],'ctx-name':_0x8fbfe9(0xe6),'cdn-url':_0x59d556['to'](_0x8fbfe9(0xef))}});}}
23
+ (function(_0x8ff14f,_0x4e40f4){const _0x4d1595=_0x1442,_0x4656c2=_0x8ff14f();while(!![]){try{const _0x409c99=parseInt(_0x4d1595(0x1c4))/0x1+-parseInt(_0x4d1595(0x1bf))/0x2+parseInt(_0x4d1595(0x1bb))/0x3*(-parseInt(_0x4d1595(0x1c2))/0x4)+-parseInt(_0x4d1595(0x1c1))/0x5*(-parseInt(_0x4d1595(0x1c0))/0x6)+parseInt(_0x4d1595(0x1bd))/0x7+-parseInt(_0x4d1595(0x1b8))/0x8*(parseInt(_0x4d1595(0x1be))/0x9)+parseInt(_0x4d1595(0x1b7))/0xa;if(_0x409c99===_0x4e40f4)break;else _0x4656c2['push'](_0x4656c2['shift']());}catch(_0x4bb434){_0x4656c2['push'](_0x4656c2['shift']());}}}(_0xacbe,0x6edd4));function _0xacbe(){const _0x405747=['1778288bPethB','setTemplate','bindTemplate','141aKIHYe','image-edit','1284395yeBkBG','18lmsbfB','1376558ICGrDA','1026366OtNwel','20YdRSLb','23804hvjAQd','ck-uploadcare-theme','656184qjpSXb','uc-cloud-image-editor','imageSrc','uc-light','set','3427350hmNztc'];_0xacbe=function(){return _0x405747;};return _0xacbe();}import{View as _0x3b1877}from'ckeditor5/src/ui.js';function _0x1442(_0xe5ed6c,_0x3ef6c9){const _0xacbe1f=_0xacbe();return _0x1442=function(_0x144232,_0x34d5f0){_0x144232=_0x144232-0x1b7;let _0x1e5c6b=_0xacbe1f[_0x144232];return _0x1e5c6b;},_0x1442(_0xe5ed6c,_0x3ef6c9);}export class UploadcareImageEditFormEditingView extends _0x3b1877{constructor(_0x3beaae,_0x4a5c43){const _0x33bfe2=_0x1442;super(_0x3beaae);const _0x1f0e61=this[_0x33bfe2(0x1ba)];this[_0x33bfe2(0x1c8)](_0x33bfe2(0x1c6),''),this[_0x33bfe2(0x1b9)]({'tag':_0x33bfe2(0x1c5),'attributes':{..._0x4a5c43,'class':[_0x33bfe2(0x1c7),_0x33bfe2(0x1c3)],'ctx-name':_0x33bfe2(0x1bc),'cdn-url':_0x1f0e61['to'](_0x33bfe2(0x1c6))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x3b4c95}from'ckeditor5/src/icons.js';import{ButtonView as _0x23148f,IconView as _0x8d92a1,View as _0xa3332}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0xa3332{constructor(_0x246b96){super(_0x246b96);const t=_0x246b96['t'];this['set']('errorType',null);const _0x5c96dd=new _0x23148f(_0x246b96);_0x5c96dd['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5c96dd['withText']=!0x0,_0x5c96dd['class']='ck-button-action',_0x5c96dd['on']('execute',()=>{this['fire']('retry');}),_0x5c96dd['bind']('isVisible')['to'](this,'errorType',_0x149220=>'NotFound'!==_0x149220);const _0x510eac=new _0x8d92a1();_0x510eac['content']=_0x3b4c95,_0x510eac['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x27353e=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':[_0x510eac,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x27353e['to']('errorType',_0x4aff55=>t('NotFound'!==_0x4aff55?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5c96dd]},{'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 _0x270e24}from'ckeditor5/src/icons.js';import{ButtonView as _0x50218d,IconView as _0x1abe1a,View as _0x688bc7}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x688bc7{constructor(_0x4995ad){super(_0x4995ad);const t=_0x4995ad['t'];this['set']('errorType',null);const _0x4241d8=new _0x50218d(_0x4995ad);_0x4241d8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4241d8['withText']=!0x0,_0x4241d8['class']='ck-button-action',_0x4241d8['on']('execute',()=>{this['fire']('retry');}),_0x4241d8['bind']('isVisible')['to'](this,'errorType',_0xafa077=>'NotFound'!==_0xafa077);const _0xa3108b=new _0x1abe1a();_0xa3108b['content']=_0x270e24,_0xa3108b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1bca3e=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':[_0xa3108b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1bca3e['to']('errorType',_0x13a415=>t('NotFound'!==_0x13a415?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4241d8]},{'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 _0x16414b,View as _0x3b66c4}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x3b66c4{constructor(_0x1ba405){super(_0x1ba405);const t=_0x1ba405['t'],_0x3c0e0c=this['bindTemplate'],_0x3febdd=new _0x16414b();_0x3febdd['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':[_0x3febdd,{'text':_0x3c0e0c['to']('imageUploadProgress',_0x375a69=>t('Loading\x20image...')+'\x20('+(_0x375a69||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 _0x8c266f,View as _0x160639}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x160639{constructor(_0x11b0aa){super(_0x11b0aa);const t=_0x11b0aa['t'],_0x15d1b8=this['bindTemplate'],_0x5f21e1=new _0x8c266f();_0x5f21e1['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':[_0x5f21e1,{'text':_0x15d1b8['to']('imageUploadProgress',_0x1675f9=>t('Loading\x20image...')+'\x20('+(_0x1675f9||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'}]}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf1de93=_0x16dd;(function(_0x400354,_0x2ca23e){const _0x47f714=_0x16dd,_0x12a5a5=_0x400354();while(!![]){try{const _0x4bbf7c=-parseInt(_0x47f714(0x1eb))/0x1*(parseInt(_0x47f714(0x200))/0x2)+-parseInt(_0x47f714(0x1d5))/0x3*(parseInt(_0x47f714(0x1ff))/0x4)+parseInt(_0x47f714(0x203))/0x5*(parseInt(_0x47f714(0x1e7))/0x6)+-parseInt(_0x47f714(0x1d8))/0x7+parseInt(_0x47f714(0x1e3))/0x8*(-parseInt(_0x47f714(0x1cd))/0x9)+-parseInt(_0x47f714(0x1ed))/0xa*(-parseInt(_0x47f714(0x1e2))/0xb)+parseInt(_0x47f714(0x1fc))/0xc;if(_0x4bbf7c===_0x2ca23e)break;else _0x12a5a5['push'](_0x12a5a5['shift']());}catch(_0x304810){_0x12a5a5['push'](_0x12a5a5['shift']());}}}(_0x1331,0x19f4a));import{View as _0x11108e}from'ckeditor5/src/ui.js';function _0x16dd(_0x5ada5f,_0x2a5088){const _0x133167=_0x1331();return _0x16dd=function(_0x16dd2f,_0x281b02){_0x16dd2f=_0x16dd2f-0x1cc;let _0x5c08ad=_0x133167[_0x16dd2f];return _0x5c08ad;},_0x16dd(_0x5ada5f,_0x2a5088);}import{UploadcareImageEditFormLoadingView as _0x19a7af}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x312725}from'./uploadcareimageeditformerrorview.js';function _0x1331(){const _0x10ea98=['12gINTwI','setTemplate','focus','once','195639jeTqEH','target','3330RfPCRa','querySelector','_errorView','addEventListener','detail','set','length','fire','retry','_waitForImageEditorComponent','apply','render','status','element','ck-uploadcare-form','8396124wukNeD','_loadingView','_setView','4rBHkUS','2XmZPvS','addedNodes','_editingView','139280cGZDJP','cancel','filter','1845279xXvOjo','nodeName','clear','_addErrorViewListeners','ck-reset_all-excluded','cdnUrl','createCollection','change:status','536361mDzURS','add','addMany','648165rSevSL','uc-cloud-image-editor','error','div','_focusableView','disconnect','uploading','ready','observe','_items','759fykkEy','8zojpIq','getFocusableElement','toLowerCase','_addUploadcareImageEditorListeners'];_0x1331=function(){return _0x10ea98;};return _0x1331();}import{UploadcareImageEditFormEditingView as _0x224f66}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2a576f}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x2a576f{[_0xf1de93(0x1e1)];[_0xf1de93(0x1fd)];[_0xf1de93(0x1ef)];[_0xf1de93(0x202)];[_0xf1de93(0x1dc)];constructor(_0x30a162,_0x4593d2,_0x40fe06){const _0x7baaef=_0xf1de93;super(_0x30a162),this[_0x7baaef(0x1e1)]=this[_0x7baaef(0x1d3)](),this[_0x7baaef(0x1fd)]=new _0x19a7af(_0x30a162),this[_0x7baaef(0x1ef)]=new _0x312725(_0x30a162),this[_0x7baaef(0x202)]=new _0x224f66(_0x30a162,_0x40fe06),this[_0x7baaef(0x1dc)]=new _0x11108e(_0x30a162),this[_0x7baaef(0x1dc)][_0x7baaef(0x1e8)](this[_0x7baaef(0x1e4)]()),this[_0x7baaef(0x1f2)](_0x7baaef(0x1f9),_0x4593d2),this[_0x7baaef(0x1e8)]({'tag':_0x7baaef(0x1db),'attributes':{'class':['ck',_0x7baaef(0x1d1),_0x7baaef(0x1fb)],'tabindex':'-1'},'children':this[_0x7baaef(0x1e1)]}),this[_0x7baaef(0x1fe)](),this[_0x7baaef(0x1ea)](_0x7baaef(0x1f8),()=>{const _0x49d836=_0x7baaef;this[_0x49d836(0x1f6)](this[_0x49d836(0x1fa)],_0x5c2b25=>{const _0x1d22cc=_0x49d836;this[_0x1d22cc(0x1e6)](_0x5c2b25);});}),this['on'](_0x7baaef(0x1d4),()=>{const _0xfedc4=_0x7baaef;this[_0xfedc4(0x1fe)]();}),this[_0x7baaef(0x1d0)]();}[_0xf1de93(0x1e9)](){const _0x160f2f=_0xf1de93;this[_0x160f2f(0x1fa)][_0x160f2f(0x1e9)]();}[_0xf1de93(0x1fe)](){const _0x9fbcfc=_0xf1de93;switch(this[_0x9fbcfc(0x1e1)][_0x9fbcfc(0x1cf)](),this[_0x9fbcfc(0x1f9)]){case _0x9fbcfc(0x1de):this[_0x9fbcfc(0x1e1)][_0x9fbcfc(0x1d6)](this[_0x9fbcfc(0x1fd)]);break;case _0x9fbcfc(0x1da):this[_0x9fbcfc(0x1e1)][_0x9fbcfc(0x1d6)](this[_0x9fbcfc(0x1ef)]);break;case _0x9fbcfc(0x1df):this[_0x9fbcfc(0x1e1)][_0x9fbcfc(0x1d7)]([this[_0x9fbcfc(0x202)],this[_0x9fbcfc(0x1dc)]]);}}[_0xf1de93(0x1f6)](_0x1aad78,_0x41967f){const _0x4c7ecb=_0xf1de93,_0x307f20=_0x4c7ecb(0x1d9),_0x9863d0=_0x1aad78[_0x4c7ecb(0x1ee)](_0x307f20);if(_0x9863d0)return _0x41967f(_0x9863d0);const _0x4411c7=new MutationObserver(_0x5bb6a5=>{const _0x301233=_0x4c7ecb,_0x4df564=_0x5bb6a5[_0x301233(0x1cc)](_0x1ba9a8=>_0x1ba9a8[_0x301233(0x1ec)]===_0x1aad78&&_0x1ba9a8[_0x301233(0x201)][_0x301233(0x1f3)]>0x0&&_0x1ba9a8[_0x301233(0x201)][0x0][_0x301233(0x1ce)][_0x301233(0x1e5)]()===_0x307f20);_0x4df564[_0x301233(0x1f3)]&&(_0x4411c7[_0x301233(0x1dd)](),_0x41967f(_0x4df564[0x0][_0x301233(0x201)][0x0]));});_0x4411c7[_0x4c7ecb(0x1e0)](_0x1aad78,{'childList':!0x0,'subtree':!0x0});}[_0xf1de93(0x1e6)](_0x2db435){const _0x2a02a4=_0xf1de93;_0x2db435[_0x2a02a4(0x1f0)](_0x2a02a4(0x1f7),_0x5cf0d6=>{const _0x31a7aa=_0x2a02a4;this[_0x31a7aa(0x1f4)](_0x31a7aa(0x1f7),{'imageSrc':_0x5cf0d6[_0x31a7aa(0x1f1)][_0x31a7aa(0x1d2)]});}),_0x2db435[_0x2a02a4(0x1f0)](_0x2a02a4(0x204),()=>{const _0x4b9fef=_0x2a02a4;this[_0x4b9fef(0x1f4)](_0x4b9fef(0x204));});}[_0xf1de93(0x1d0)](){const _0x49fd14=_0xf1de93;this[_0x49fd14(0x1ef)]['on'](_0x49fd14(0x1f5),()=>{const _0xb76c01=_0x49fd14;this[_0xb76c01(0x1f4)](_0xb76c01(0x1f5));});}}
23
+ const _0x29fd75=_0x435d;(function(_0x272560,_0xf4b343){const _0x41decb=_0x435d,_0x346f5d=_0x272560();while(!![]){try{const _0x2a5614=parseInt(_0x41decb(0x1d5))/0x1+parseInt(_0x41decb(0x1d4))/0x2*(-parseInt(_0x41decb(0x1fd))/0x3)+-parseInt(_0x41decb(0x1ee))/0x4*(-parseInt(_0x41decb(0x1f7))/0x5)+-parseInt(_0x41decb(0x1ea))/0x6+-parseInt(_0x41decb(0x1eb))/0x7+parseInt(_0x41decb(0x1d2))/0x8*(-parseInt(_0x41decb(0x1e6))/0x9)+parseInt(_0x41decb(0x1df))/0xa;if(_0x2a5614===_0xf4b343)break;else _0x346f5d['push'](_0x346f5d['shift']());}catch(_0x56baad){_0x346f5d['push'](_0x346f5d['shift']());}}}(_0x35cf,0x998cb));import{View as _0x54a8b5}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x2e4ff2}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x47d6ce}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0xc91cbf}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x2a3f01}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x435d(_0x24692a,_0x23ccf1){const _0x35cf86=_0x35cf();return _0x435d=function(_0x435d5b,_0xf50ab2){_0x435d5b=_0x435d5b-0x1cd;let _0x5bb31d=_0x35cf86[_0x435d5b];return _0x5bb31d;},_0x435d(_0x24692a,_0x23ccf1);}export class UploadcareImageEditFormView extends _0x2a3f01{[_0x29fd75(0x203)];[_0x29fd75(0x1f9)];[_0x29fd75(0x1f2)];[_0x29fd75(0x1e7)];[_0x29fd75(0x1de)];constructor(_0xfbc6eb,_0x44fd56,_0x1eec6d){const _0x6730de=_0x29fd75;super(_0xfbc6eb),this[_0x6730de(0x203)]=this[_0x6730de(0x1e0)](),this[_0x6730de(0x1f9)]=new _0x2e4ff2(_0xfbc6eb),this[_0x6730de(0x1f2)]=new _0x47d6ce(_0xfbc6eb),this[_0x6730de(0x1e7)]=new _0xc91cbf(_0xfbc6eb,_0x1eec6d),this[_0x6730de(0x1de)]=new _0x54a8b5(_0xfbc6eb),this[_0x6730de(0x1de)][_0x6730de(0x1d9)](this[_0x6730de(0x1e4)]()),this[_0x6730de(0x1f0)](_0x6730de(0x1f4),_0x44fd56),this[_0x6730de(0x1d9)]({'tag':_0x6730de(0x1dc),'attributes':{'class':['ck',_0x6730de(0x1d1),_0x6730de(0x1fc)],'tabindex':'-1'},'children':this[_0x6730de(0x203)]}),this[_0x6730de(0x1e5)](),this[_0x6730de(0x1da)](_0x6730de(0x1f3),()=>{const _0x25c3f4=_0x6730de;this[_0x25c3f4(0x1d6)](this[_0x25c3f4(0x1ce)],_0x3b7431=>{const _0x20fef5=_0x25c3f4;this[_0x20fef5(0x1d7)](_0x3b7431);});}),this['on'](_0x6730de(0x1f8),()=>{const _0x1410a2=_0x6730de;this[_0x1410a2(0x1e5)]();}),this[_0x6730de(0x1ec)]();}[_0x29fd75(0x1d3)](){const _0x2405c7=_0x29fd75;this[_0x2405c7(0x1ce)][_0x2405c7(0x1d3)]();}[_0x29fd75(0x1e5)](){const _0x493c90=_0x29fd75;switch(this[_0x493c90(0x203)][_0x493c90(0x1cd)](),this[_0x493c90(0x1f4)]){case _0x493c90(0x1d0):this[_0x493c90(0x203)][_0x493c90(0x201)](this[_0x493c90(0x1f9)]);break;case _0x493c90(0x1e9):this[_0x493c90(0x203)][_0x493c90(0x201)](this[_0x493c90(0x1f2)]);break;case _0x493c90(0x1cf):this[_0x493c90(0x203)][_0x493c90(0x1e1)]([this[_0x493c90(0x1e7)],this[_0x493c90(0x1de)]]);}}[_0x29fd75(0x1d6)](_0x126100,_0x5208db){const _0x3f93fa=_0x29fd75,_0x2211de=_0x3f93fa(0x1ed),_0x33d9da=_0x126100[_0x3f93fa(0x1fa)](_0x2211de);if(_0x33d9da)return _0x5208db(_0x33d9da);const _0x334fe7=new MutationObserver(_0x4d3838=>{const _0x4032e8=_0x3f93fa,_0x540eb1=_0x4d3838[_0x4032e8(0x1db)](_0x8c1839=>_0x8c1839[_0x4032e8(0x1f6)]===_0x126100&&_0x8c1839[_0x4032e8(0x202)][_0x4032e8(0x1e3)]>0x0&&_0x8c1839[_0x4032e8(0x202)][0x0][_0x4032e8(0x1fe)][_0x4032e8(0x1ef)]()===_0x2211de);_0x540eb1[_0x4032e8(0x1e3)]&&(_0x334fe7[_0x4032e8(0x1d8)](),_0x5208db(_0x540eb1[0x0][_0x4032e8(0x202)][0x0]));});_0x334fe7[_0x3f93fa(0x1e2)](_0x126100,{'childList':!0x0,'subtree':!0x0});}[_0x29fd75(0x1d7)](_0x5ad9de){const _0x376cd3=_0x29fd75;_0x5ad9de[_0x376cd3(0x1ff)](_0x376cd3(0x1f5),_0x5a3393=>{const _0x5c282e=_0x376cd3;this[_0x5c282e(0x1f1)](_0x5c282e(0x1f5),{'imageSrc':_0x5a3393[_0x5c282e(0x200)][_0x5c282e(0x1e8)]});}),_0x5ad9de[_0x376cd3(0x1ff)](_0x376cd3(0x1dd),()=>{const _0x503489=_0x376cd3;this[_0x503489(0x1f1)](_0x503489(0x1dd));});}[_0x29fd75(0x1ec)](){const _0x14132d=_0x29fd75;this[_0x14132d(0x1f2)]['on'](_0x14132d(0x1fb),()=>{const _0x42fa5d=_0x14132d;this[_0x42fa5d(0x1f1)](_0x42fa5d(0x1fb));});}}function _0x35cf(){const _0x39e77c=['once','filter','div','cancel','_focusableView','22424980tIHNar','createCollection','addMany','observe','length','getFocusableElement','_setView','54OlVJLW','_editingView','cdnUrl','error','209304BfAqNP','6933633huaFOo','_addErrorViewListeners','uc-cloud-image-editor','4CqKDYv','toLowerCase','set','fire','_errorView','render','status','apply','target','456995SJdNuK','change:status','_loadingView','querySelector','retry','ck-uploadcare-form','3255849DaVysq','nodeName','addEventListener','detail','add','addedNodes','_items','clear','element','ready','uploading','ck-reset_all-excluded','763688nPcGAU','focus','2ouLDwI','978494ZttcNL','_waitForImageEditorComponent','_addUploadcareImageEditorListeners','disconnect','setTemplate'];_0x35cf=function(){return _0x39e77c;};return _0x35cf();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x40ce95=_0x4ef1;(function(_0x25db5e,_0x4a01f9){const _0x39beee=_0x4ef1,_0x5a4992=_0x25db5e();while(!![]){try{const _0x58b2db=parseInt(_0x39beee(0x115))/0x1*(parseInt(_0x39beee(0x12d))/0x2)+-parseInt(_0x39beee(0x125))/0x3+parseInt(_0x39beee(0x132))/0x4+parseInt(_0x39beee(0x116))/0x5*(-parseInt(_0x39beee(0x12a))/0x6)+parseInt(_0x39beee(0x12f))/0x7+-parseInt(_0x39beee(0x12b))/0x8+parseInt(_0x39beee(0x11c))/0x9;if(_0x58b2db===_0x4a01f9)break;else _0x5a4992['push'](_0x5a4992['shift']());}catch(_0x33a7a0){_0x5a4992['push'](_0x5a4992['shift']());}}}(_0x4190,0xc1e59));import{Command as _0x33b3fb}from'ckeditor5/src/core.js';import{Dialog as _0xfe30c5}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x44fcc7}from'./ui/uploadcareimageeditcontroller.js';function _0x4ef1(_0x307ae0,_0x44b9c6){const _0x419099=_0x4190();return _0x4ef1=function(_0x4ef1a7,_0x2ca461){_0x4ef1a7=_0x4ef1a7-0x114;let _0x384780=_0x419099[_0x4ef1a7];return _0x384780;},_0x4ef1(_0x307ae0,_0x44b9c6);}function _0x4190(){const _0x1d6b0b=['plugins','get','2783256ZopOKx','6032168tfyJBr','imageBlock','179534jQnFgM','imageEditController','4251989sziQlO','refresh','bind','3030516SSbPFP','model','7HSejfb','10yDWeFv','unbind','execute','element','editor','getSelectedElement','9447120ZuifYa','isActive','_isEditable','selection','requires','isEnabled','document','config','imageInline','1701393NrEZMa','set','uploadcare.allowExternalImagesEditing'];_0x4190=function(){return _0x1d6b0b;};return _0x4190();}import{createEditabilityChecker as _0x353bd4}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x33b3fb{[_0x40ce95(0x12e)];static get[_0x40ce95(0x120)](){return[_0xfe30c5];}[_0x40ce95(0x11e)];constructor(_0xcbfff4){const _0x39af45=_0x40ce95;super(_0xcbfff4),this[_0x39af45(0x12e)]=void 0x0,this[_0x39af45(0x11e)]=_0x353bd4(_0xcbfff4[_0x39af45(0x123)][_0x39af45(0x129)](_0x39af45(0x127))||[]),this[_0x39af45(0x126)]({'isActive':!0x1});}[_0x40ce95(0x130)](){const _0x5cbff8=_0x40ce95,_0x4b63ce=this[_0x5cbff8(0x11a)][_0x5cbff8(0x114)][_0x5cbff8(0x122)][_0x5cbff8(0x11f)][_0x5cbff8(0x11b)]();this[_0x5cbff8(0x121)]=this[_0x5cbff8(0x11e)](_0x4b63ce);}[_0x40ce95(0x118)](){const _0x55b1e=_0x40ce95;this[_0x55b1e(0x12e)]&&(this[_0x55b1e(0x117)](_0x55b1e(0x11d)),this[_0x55b1e(0x12e)]=void 0x0);const _0x2c0e02=this[_0x55b1e(0x11a)][_0x55b1e(0x114)][_0x55b1e(0x122)][_0x55b1e(0x11f)][_0x55b1e(0x11b)]();_0x2c0e02&&(_0x2c0e02['is'](_0x55b1e(0x119),_0x55b1e(0x12c))||_0x2c0e02['is'](_0x55b1e(0x119),_0x55b1e(0x124)))&&(this[_0x55b1e(0x12e)]=new _0x44fcc7(this[_0x55b1e(0x11a)],this[_0x55b1e(0x11a)][_0x55b1e(0x128)][_0x55b1e(0x129)](_0xfe30c5),_0x2c0e02),this[_0x55b1e(0x131)](_0x55b1e(0x11d))['to'](this[_0x55b1e(0x12e)],_0x55b1e(0x11d)));}}
23
+ const _0x175e80=_0x37e8;(function(_0x5312a6,_0x3bc96a){const _0xb6d2a1=_0x37e8,_0x4bbd5b=_0x5312a6();while(!![]){try{const _0x5bfaa0=-parseInt(_0xb6d2a1(0xea))/0x1+parseInt(_0xb6d2a1(0xee))/0x2+parseInt(_0xb6d2a1(0xe5))/0x3+parseInt(_0xb6d2a1(0xfb))/0x4+parseInt(_0xb6d2a1(0xf9))/0x5+-parseInt(_0xb6d2a1(0xec))/0x6*(parseInt(_0xb6d2a1(0xf8))/0x7)+parseInt(_0xb6d2a1(0xdf))/0x8;if(_0x5bfaa0===_0x3bc96a)break;else _0x4bbd5b['push'](_0x4bbd5b['shift']());}catch(_0x3c9e94){_0x4bbd5b['push'](_0x4bbd5b['shift']());}}}(_0xb2d3,0x82adf));import{Command as _0x19d6a5}from'ckeditor5/src/core.js';import{Dialog as _0x1a0b95}from'ckeditor5/src/ui.js';function _0x37e8(_0x419870,_0x2efe04){const _0xb2d3e6=_0xb2d3();return _0x37e8=function(_0x37e899,_0x2c1c20){_0x37e899=_0x37e899-0xde;let _0x467080=_0xb2d3e6[_0x37e899];return _0x467080;},_0x37e8(_0x419870,_0x2efe04);}import{UploadcareImageEditController as _0x449e70}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x40642c}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x19d6a5{[_0x175e80(0xf3)];static get[_0x175e80(0xfa)](){return[_0x1a0b95];}[_0x175e80(0xf5)];constructor(_0x2cc2ea){const _0x1d4953=_0x175e80;super(_0x2cc2ea),this[_0x1d4953(0xf3)]=void 0x0,this[_0x1d4953(0xf5)]=_0x40642c(_0x2cc2ea[_0x1d4953(0xf6)][_0x1d4953(0xe4)](_0x1d4953(0xe2))||[]),this[_0x1d4953(0xef)]({'isActive':!0x1});}[_0x175e80(0xed)](){const _0x5749f1=_0x175e80,_0x4560c9=this[_0x5749f1(0xf7)][_0x5749f1(0xeb)][_0x5749f1(0xe7)][_0x5749f1(0xe1)][_0x5749f1(0xf2)]();this[_0x5749f1(0xde)]=this[_0x5749f1(0xf5)](_0x4560c9);}[_0x175e80(0xe3)](){const _0x2c5c56=_0x175e80;this[_0x2c5c56(0xf3)]&&(this[_0x2c5c56(0xe9)](_0x2c5c56(0xf1)),this[_0x2c5c56(0xf3)]=void 0x0);const _0x4d8eed=this[_0x2c5c56(0xf7)][_0x2c5c56(0xeb)][_0x2c5c56(0xe7)][_0x2c5c56(0xe1)][_0x2c5c56(0xf2)]();_0x4d8eed&&(_0x4d8eed['is'](_0x2c5c56(0xf4),_0x2c5c56(0xe0))||_0x4d8eed['is'](_0x2c5c56(0xf4),_0x2c5c56(0xe8)))&&(this[_0x2c5c56(0xf3)]=new _0x449e70(this[_0x2c5c56(0xf7)],this[_0x2c5c56(0xf7)][_0x2c5c56(0xe6)][_0x2c5c56(0xe4)](_0x1a0b95),_0x4d8eed),this[_0x2c5c56(0xf0)](_0x2c5c56(0xf1))['to'](this[_0x2c5c56(0xf3)],_0x2c5c56(0xf1)));}}function _0xb2d3(){const _0xb3224e=['imageInline','unbind','110121qUKuHC','model','6bYglnu','refresh','43640bGQBhE','set','bind','isActive','getSelectedElement','imageEditController','element','_isEditable','config','editor','230587gMDACU','137230ApzNDJ','requires','536356OgAZZy','isEnabled','397912BkLAvi','imageBlock','selection','uploadcare.allowExternalImagesEditing','execute','get','1335693qdGSQm','plugins','document'];_0xb2d3=function(){return _0xb3224e;};return _0xb2d3();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1548e0=_0x6c9a;(function(_0x25c1bf,_0x198860){const _0x1d7326=_0x6c9a,_0xdb1d5d=_0x25c1bf();while(!![]){try{const _0x2ca8cd=parseInt(_0x1d7326(0xf1))/0x1+-parseInt(_0x1d7326(0xec))/0x2*(-parseInt(_0x1d7326(0xf0))/0x3)+-parseInt(_0x1d7326(0xeb))/0x4+-parseInt(_0x1d7326(0xe8))/0x5+-parseInt(_0x1d7326(0xe9))/0x6*(parseInt(_0x1d7326(0xe7))/0x7)+parseInt(_0x1d7326(0xf3))/0x8*(-parseInt(_0x1d7326(0xfa))/0x9)+parseInt(_0x1d7326(0xea))/0xa;if(_0x2ca8cd===_0x198860)break;else _0xdb1d5d['push'](_0xdb1d5d['shift']());}catch(_0x3e99b0){_0xdb1d5d['push'](_0xdb1d5d['shift']());}}}(_0x3960,0x94a9c));import{Plugin as _0x1d92e5}from'ckeditor5/src/core.js';function _0x3960(){const _0x4ddace=['ImageUtils','120jwANYm','uploadcareImageEdit','ImageEditing','isPremiumPlugin','uploadcareImageReplace','requires','add','423234vIrtbc','commands','isOfficialPlugin','1323aEhATj','5656250htLJIG','16866xBrJoG','31370210NFAqbR','4472612uPHAwk','494618peWNMd','init','pluginName','UploadcareImageEditEditing','6upogKq','463357Ivhhjl'];_0x3960=function(){return _0x4ddace;};return _0x3960();}import{Notification as _0x407dda}from'ckeditor5/src/ui.js';function _0x6c9a(_0x54e1ec,_0x2b335b){const _0x3960ba=_0x3960();return _0x6c9a=function(_0x6c9a0e,_0x5afc11){_0x6c9a0e=_0x6c9a0e-0xe5;let _0xff638b=_0x3960ba[_0x6c9a0e];return _0xff638b;},_0x6c9a(_0x54e1ec,_0x2b335b);}import{UploadcareImageEditCommand as _0x17505e}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2174c1}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x4ba001}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x1d92e5{static get[_0x1548e0(0xee)](){const _0x2132e6=_0x1548e0;return _0x2132e6(0xef);}static get[_0x1548e0(0xf8)](){const _0x1a9f33=_0x1548e0;return[_0x4ba001,_0x407dda,_0x1a9f33(0xf2),_0x1a9f33(0xf5)];}static get[_0x1548e0(0xe6)](){return!0x0;}static get[_0x1548e0(0xf6)](){return!0x0;}[_0x1548e0(0xed)](){const _0x337501=_0x1548e0,{editor:_0x1060f9}=this;_0x1060f9[_0x337501(0xe5)][_0x337501(0xf9)](_0x337501(0xf4),new _0x17505e(_0x1060f9)),_0x1060f9[_0x337501(0xe5)][_0x337501(0xf9)](_0x337501(0xf7),new _0x2174c1(_0x1060f9));}}
23
+ function _0x1991(_0x5872a4,_0x2f5f6e){const _0x11f866=_0x11f8();return _0x1991=function(_0x199197,_0x243a94){_0x199197=_0x199197-0x157;let _0x5b6a20=_0x11f866[_0x199197];return _0x5b6a20;},_0x1991(_0x5872a4,_0x2f5f6e);}const _0x2481f8=_0x1991;(function(_0x69870e,_0x3d01d3){const _0x1b31d0=_0x1991,_0x1c5d4f=_0x69870e();while(!![]){try{const _0x1a2c84=parseInt(_0x1b31d0(0x15c))/0x1+-parseInt(_0x1b31d0(0x16a))/0x2*(-parseInt(_0x1b31d0(0x157))/0x3)+-parseInt(_0x1b31d0(0x164))/0x4*(parseInt(_0x1b31d0(0x15b))/0x5)+parseInt(_0x1b31d0(0x167))/0x6*(-parseInt(_0x1b31d0(0x162))/0x7)+parseInt(_0x1b31d0(0x168))/0x8+parseInt(_0x1b31d0(0x169))/0x9+-parseInt(_0x1b31d0(0x16d))/0xa*(-parseInt(_0x1b31d0(0x16c))/0xb);if(_0x1a2c84===_0x3d01d3)break;else _0x1c5d4f['push'](_0x1c5d4f['shift']());}catch(_0x3b8e3a){_0x1c5d4f['push'](_0x1c5d4f['shift']());}}}(_0x11f8,0xd6122));function _0x11f8(){const _0x36d787=['add','10GZFPbJ','74031IbLaKX','ImageUtils','uploadcareImageEdit','uploadcareImageReplace','commands','requires','7BoeVnC','isPremiumPlugin','1826012mGYsGM','isOfficialPlugin','pluginName','10121046Emmpcm','1142312XWSkUH','7675038IuoyjI','189726blPNGb','ImageEditing','16346ZLunwW','15560ugSaiF','3wgiADr','UploadcareImageEditEditing','init'];_0x11f8=function(){return _0x36d787;};return _0x11f8();}import{Plugin as _0x2ac9d1}from'ckeditor5/src/core.js';import{Notification as _0x49f625}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0xaa57df}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x36ccc2}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x253941}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x2ac9d1{static get[_0x2481f8(0x166)](){const _0x124de1=_0x2481f8;return _0x124de1(0x158);}static get[_0x2481f8(0x161)](){const _0x3b2e6b=_0x2481f8;return[_0x253941,_0x49f625,_0x3b2e6b(0x15d),_0x3b2e6b(0x16b)];}static get[_0x2481f8(0x165)](){return!0x0;}static get[_0x2481f8(0x163)](){return!0x0;}[_0x2481f8(0x159)](){const _0x416afd=_0x2481f8,{editor:_0x9eda67}=this;_0x9eda67[_0x416afd(0x160)][_0x416afd(0x15a)](_0x416afd(0x15e),new _0xaa57df(_0x9eda67)),_0x9eda67[_0x416afd(0x160)][_0x416afd(0x15a)](_0x416afd(0x15f),new _0x36ccc2(_0x9eda67));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x208323}from'ckeditor5/src/core.js';import{ButtonView as _0x1663a4}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x389dbc}from'ckeditor5/src/icons.js';import{createElement as _0x4727be}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x208323{['_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 _0x580734=this['editor'];_0x580734['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5ac1fc=>{const _0x21ae7e=_0x580734['commands']['get']('uploadcareImageEdit'),_0x1a0726=new _0x1663a4(_0x5ac1fc),t=_0x5ac1fc['t'];return _0x1a0726['set']({'icon':_0x389dbc,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1a0726['bind']('isEnabled')['to'](_0x21ae7e),_0x1a0726['bind']('isOn')['to'](_0x21ae7e,'isActive'),this['listenTo'](_0x1a0726,'execute',()=>{_0x580734['execute']('uploadcareImageEdit'),_0x580734['editing']['view']['focus']();}),_0x1a0726;}),this['_initConfig']();}['_initConfig'](){const _0x37cace=_0x4727be(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x37cace),this['listenTo'](this['editor'],'destroy',()=>{_0x37cace['remove']();});}}
23
+ import{Plugin as _0x5a32ef}from'ckeditor5/src/core.js';import{ButtonView as _0x214b7c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x5af45f}from'ckeditor5/src/icons.js';import{createElement as _0x67fa8b}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x5a32ef{['_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 _0x201ab7=this['editor'];_0x201ab7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5a5484=>{const _0xef28c8=_0x201ab7['commands']['get']('uploadcareImageEdit'),_0x19cbe3=new _0x214b7c(_0x5a5484),t=_0x5a5484['t'];return _0x19cbe3['set']({'icon':_0x5af45f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x19cbe3['bind']('isEnabled')['to'](_0xef28c8),_0x19cbe3['bind']('isOn')['to'](_0xef28c8,'isActive'),this['listenTo'](_0x19cbe3,'execute',()=>{_0x201ab7['execute']('uploadcareImageEdit'),_0x201ab7['editing']['view']['focus']();}),_0x19cbe3;}),this['_initConfig']();}['_initConfig'](){const _0x4d1152=_0x67fa8b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4d1152),this['listenTo'](this['editor'],'destroy',()=>{_0x4d1152['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4d7fc0=_0x5edd;(function(_0xfa1634,_0x15aedb){var _0x592542=_0x5edd,_0x3362d4=_0xfa1634();while(!![]){try{var _0x889b70=-parseInt(_0x592542(0x197))/0x1*(parseInt(_0x592542(0x19e))/0x2)+-parseInt(_0x592542(0x1a0))/0x3*(-parseInt(_0x592542(0x196))/0x4)+-parseInt(_0x592542(0x194))/0x5+-parseInt(_0x592542(0x190))/0x6+parseInt(_0x592542(0x1a1))/0x7+parseInt(_0x592542(0x19d))/0x8+parseInt(_0x592542(0x199))/0x9;if(_0x889b70===_0x15aedb)break;else _0x3362d4['push'](_0x3362d4['shift']());}catch(_0x51c2c1){_0x3362d4['push'](_0x3362d4['shift']());}}}(_0x45a5,0xb9f9f));import{FocusTracker as _0x1e00f5}from'ckeditor5/src/utils.js';import{View as _0x15706b,FocusCycler as _0x2b5966}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x15706b{[_0x4d7fc0(0x198)];[_0x4d7fc0(0x193)];constructor(_0x16ce91){var _0x10d393=_0x4d7fc0;super(_0x16ce91),this[_0x10d393(0x198)]=new _0x1e00f5(),this[_0x10d393(0x193)]=new _0x2b5966({'focusables':this[_0x10d393(0x192)](),'focusTracker':this[_0x10d393(0x198)]});}[_0x4d7fc0(0x19f)](){var _0x1549ca=_0x4d7fc0;return{'tag':_0x1549ca(0x19a),'attributes':{'aria-hidden':_0x1549ca(0x19b),'tabindex':'0'},'on':{'focus':this[_0x1549ca(0x191)]['to'](()=>{var _0x53ea72=_0x1549ca;this[_0x53ea72(0x193)][_0x53ea72(0x195)](_0x53ea72(0x19c));})}};}}function _0x5edd(_0x5db993,_0x4a67b1){var _0x45a5a0=_0x45a5();return _0x5edd=function(_0x5edd51,_0xe55448){_0x5edd51=_0x5edd51-0x190;var _0x5e2333=_0x45a5a0[_0x5edd51];return _0x5e2333;},_0x5edd(_0x5db993,_0x4a67b1);}function _0x45a5(){var _0x565d1b=['getFocusableElement','15DKEUCn','6290585VeklnS','6221526FpwAaX','bindTemplate','createCollection','focusCycler','5838400xtkTHM','fire','236660fJcaWv','41722GVuQeI','focusTracker','27330363fdkjXE','div','true','forwardCycle','562216qVyBEa','64DRXUBR'];_0x45a5=function(){return _0x565d1b;};return _0x45a5();}
23
+ function _0x221e(_0x5b191e,_0xf537d9){var _0x5e0733=_0x5e07();return _0x221e=function(_0x221e7e,_0x46f81f){_0x221e7e=_0x221e7e-0x82;var _0x205756=_0x5e0733[_0x221e7e];return _0x205756;},_0x221e(_0x5b191e,_0xf537d9);}var _0xeb500c=_0x221e;(function(_0x68be30,_0x5759cb){var _0x573ab4=_0x221e,_0x37b5a3=_0x68be30();while(!![]){try{var _0x980bff=-parseInt(_0x573ab4(0x8f))/0x1*(parseInt(_0x573ab4(0x87))/0x2)+-parseInt(_0x573ab4(0x85))/0x3*(-parseInt(_0x573ab4(0x8b))/0x4)+parseInt(_0x573ab4(0x89))/0x5+parseInt(_0x573ab4(0x93))/0x6+-parseInt(_0x573ab4(0x90))/0x7+parseInt(_0x573ab4(0x8d))/0x8*(parseInt(_0x573ab4(0x84))/0x9)+-parseInt(_0x573ab4(0x92))/0xa;if(_0x980bff===_0x5759cb)break;else _0x37b5a3['push'](_0x37b5a3['shift']());}catch(_0x340f15){_0x37b5a3['push'](_0x37b5a3['shift']());}}}(_0x5e07,0xa66d1));import{FocusTracker as _0x31ae7f}from'ckeditor5/src/utils.js';import{View as _0x3d7fef,FocusCycler as _0x5bc955}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x3d7fef{[_0xeb500c(0x94)];[_0xeb500c(0x8a)];constructor(_0x23eb25){var _0x474497=_0xeb500c;super(_0x23eb25),this[_0x474497(0x94)]=new _0x31ae7f(),this[_0x474497(0x8a)]=new _0x5bc955({'focusables':this[_0x474497(0x88)](),'focusTracker':this[_0x474497(0x94)]});}[_0xeb500c(0x91)](){var _0x34cc2d=_0xeb500c;return{'tag':_0x34cc2d(0x8e),'attributes':{'aria-hidden':_0x34cc2d(0x82),'tabindex':'0'},'on':{'focus':this[_0x34cc2d(0x83)]['to'](()=>{var _0x2e3983=_0x34cc2d;this[_0x2e3983(0x8a)][_0x2e3983(0x8c)](_0x2e3983(0x86));})}};}}function _0x5e07(){var _0x51a4dd=['5223580CjcRlP','focusCycler','1292kIApfo','fire','18608ifvZCS','div','1vpXyAt','6467748tPGwMG','getFocusableElement','25916160tBZjYx','7026102rnSPZa','focusTracker','true','bindTemplate','4887ZnnOmU','8061vCRKCH','forwardCycle','298782KsoHKC','createCollection'];_0x5e07=function(){return _0x51a4dd;};return _0x5e07();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x371b(){const _0x309464=['3323468tKGSXI','imageInline','ImageUtils','removeClass','document','aspect-ratio','change','(max-width:\x20','7mDooqZ','toViewElement','viewToDom','stopListening','function','getAttribute','addClass','view','removeStyle','editing','load','px)\x20100vw,\x20','some','mapper','setStyle','1527044XIMBAW','image/webp','window','match','uploadcareImageId','isArray','src','image-processing','905860aWAYVt','element','map','hasAttribute','listenTo','imageBlock','get','findViewImgElement','join','x/\x20','replace','952788kRMEqp','baseURI','domConverter','plugins','2EQDPNz','filter','origin','4268408ibPodW','7870920sUiKVz','7886562kYKNQu','height','location','width','522edOMue','/-/resize/'];_0x371b=function(){return _0x309464;};return _0x371b();}(function(_0x4f1aad,_0x2ba211){const _0x3955a3=_0x5dc1,_0x148442=_0x4f1aad();while(!![]){try{const _0x4c6ac0=-parseInt(_0x3955a3(0x20a))/0x1+parseInt(_0x3955a3(0x1e8))/0x2*(-parseInt(_0x3955a3(0x1e4))/0x3)+parseInt(_0x3955a3(0x1f3))/0x4+-parseInt(_0x3955a3(0x1ec))/0x5+-parseInt(_0x3955a3(0x1ed))/0x6+parseInt(_0x3955a3(0x1fb))/0x7*(-parseInt(_0x3955a3(0x1eb))/0x8)+parseInt(_0x3955a3(0x1f1))/0x9*(parseInt(_0x3955a3(0x212))/0xa);if(_0x4c6ac0===_0x2ba211)break;else _0x148442['push'](_0x148442['shift']());}catch(_0x107e79){_0x148442['push'](_0x148442['shift']());}}}(_0x371b,0xc7b85));import{global as _0x2ac4ad,DomEmitterMixin as _0x3cdd1c}from'ckeditor5/src/utils.js';export function createEditabilityChecker(_0x2bf104){const _0x4da139=_0x5dc1,_0x230bc7=G(_0x2bf104);return _0x359933=>!(!_0x359933||!_0x359933['is'](_0x4da139(0x213),_0x4da139(0x217))&&!_0x359933['is'](_0x4da139(0x213),_0x4da139(0x1f4)))&&(!!_0x359933[_0x4da139(0x215)](_0x4da139(0x20e))||!!_0x359933[_0x4da139(0x215)](_0x4da139(0x210))&&_0x230bc7(_0x359933[_0x4da139(0x200)](_0x4da139(0x210))));}export function getImageUrls(_0x1213f1,_0x467b51){const _0xc0b9e1=_0x5dc1,_0x1c7786=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0xc0b9e1(0x1e9)](_0x14e311=>_0x14e311<=_0x467b51)[_0xc0b9e1(0x214)](_0x17a14b=>_0x1213f1[_0xc0b9e1(0x1e3)](/\/$/,'')+_0xc0b9e1(0x1f2)+_0x17a14b+_0xc0b9e1(0x1e2)+_0x17a14b+'w');return{'imageFallbackUrl':_0x1213f1,'imageSources':[{'srcset':_0x1c7786[_0xc0b9e1(0x21a)](',\x20'),'sizes':_0xc0b9e1(0x1fa)+_0x467b51+_0xc0b9e1(0x206)+_0x467b51+'px','type':_0xc0b9e1(0x20b)}]};}function _0x5dc1(_0x14cbb9,_0x17ee8a){const _0x371b3b=_0x371b();return _0x5dc1=function(_0x5dc188,_0x46e5b8){_0x5dc188=_0x5dc188-0x1e2;let _0x5052ec=_0x371b3b[_0x5dc188];return _0x5052ec;},_0x5dc1(_0x14cbb9,_0x17ee8a);}export function getImageDimension(_0x3bca01,_0x33cfa0,_0x3ee7cb){const _0x1f1f6c=_0x5dc1,_0x17885a=_0x3bca01[_0x1f1f6c(0x20d)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x17885a?parseInt(_0x17885a[0x1],0xa):_0x33cfa0,'height':_0x17885a?parseInt(_0x17885a[0x2],0xa):_0x3ee7cb};}export function showImageProcessingIndicator(_0xb7d701,_0x259ab5){const _0x9cc0cd=_0x5dc1,_0x544f25=new(_0x3cdd1c())(),_0x407d9b=_0xb7d701[_0x9cc0cd(0x1e7)][_0x9cc0cd(0x218)](_0x9cc0cd(0x1f5)),_0x377624=_0xb7d701[_0x9cc0cd(0x204)][_0x9cc0cd(0x208)][_0x9cc0cd(0x1fc)](_0x259ab5),_0x3e8c95=_0x407d9b[_0x9cc0cd(0x219)](_0x377624),_0x31af5f=_0xb7d701[_0x9cc0cd(0x204)][_0x9cc0cd(0x202)][_0x9cc0cd(0x1e6)][_0x9cc0cd(0x1fd)](_0x3e8c95),_0x1f012b=_0x259ab5[_0x9cc0cd(0x200)](_0x9cc0cd(0x1f0)),_0x254498=_0x259ab5[_0x9cc0cd(0x200)](_0x9cc0cd(0x1ee)),_0x51d269=_0x9cc0cd(0x211);_0xb7d701[_0x9cc0cd(0x204)][_0x9cc0cd(0x202)][_0x9cc0cd(0x1f9)](_0x5759fc=>{const _0x2908e6=_0x9cc0cd;_0x5759fc[_0x2908e6(0x201)](_0x51d269,_0x377624),_0x5759fc[_0x2908e6(0x209)](_0x2908e6(0x1f8),_0x1f012b+'/'+_0x254498,_0x3e8c95);}),_0x544f25[_0x9cc0cd(0x216)](_0x31af5f,_0x9cc0cd(0x205),()=>{const _0xba01d8=_0x9cc0cd;_0x544f25[_0xba01d8(0x1fe)](_0x31af5f,_0xba01d8(0x205)),_0xb7d701[_0xba01d8(0x204)][_0xba01d8(0x202)][_0xba01d8(0x1f9)](_0x287529=>{const _0x56d124=_0xba01d8;_0x287529[_0x56d124(0x1f6)](_0x51d269,_0x377624),_0x287529[_0x56d124(0x203)](_0x56d124(0x1f8),_0x3e8c95);});});}function G(_0x4f4529){const _0x3d1c8c=_0x5dc1;if(Array[_0x3d1c8c(0x20f)](_0x4f4529)){const _0x3eb00f=_0x4f4529[_0x3d1c8c(0x214)](G);return _0x3db9aa=>_0x3eb00f[_0x3d1c8c(0x207)](_0x11b9ed=>_0x11b9ed(_0x3db9aa));}if(_0x3d1c8c(0x1ea)==_0x4f4529){const _0x3d11eb=_0x2ac4ad[_0x3d1c8c(0x20c)][_0x3d1c8c(0x1ef)][_0x3d1c8c(0x1ea)];return _0x2e4a16=>new URL(_0x2e4a16,_0x2ac4ad[_0x3d1c8c(0x1f7)][_0x3d1c8c(0x1e5)])[_0x3d1c8c(0x1ea)]==_0x3d11eb;}return _0x3d1c8c(0x1ff)==typeof _0x4f4529?_0x4f4529:_0x4f4529 instanceof RegExp?_0x144fed=>!(!_0x144fed[_0x3d1c8c(0x20d)](_0x4f4529)&&!_0x144fed[_0x3d1c8c(0x1e3)](/^https?:\/\//,'')[_0x3d1c8c(0x20d)](_0x4f4529)):()=>!0x1;}
23
+ (function(_0x3817e7,_0x9ac3f6){const _0x1fbe4a=_0x5167,_0x8b2e4d=_0x3817e7();while(!![]){try{const _0x190c8f=parseInt(_0x1fbe4a(0xf9))/0x1*(-parseInt(_0x1fbe4a(0x102))/0x2)+parseInt(_0x1fbe4a(0xf0))/0x3*(parseInt(_0x1fbe4a(0xe4))/0x4)+-parseInt(_0x1fbe4a(0xff))/0x5+parseInt(_0x1fbe4a(0x100))/0x6*(-parseInt(_0x1fbe4a(0x103))/0x7)+parseInt(_0x1fbe4a(0xee))/0x8+parseInt(_0x1fbe4a(0xfe))/0x9+-parseInt(_0x1fbe4a(0xf1))/0xa*(-parseInt(_0x1fbe4a(0x10a))/0xb);if(_0x190c8f===_0x9ac3f6)break;else _0x8b2e4d['push'](_0x8b2e4d['shift']());}catch(_0x4fab0a){_0x8b2e4d['push'](_0x8b2e4d['shift']());}}}(_0x5831,0xc3c4d));import{global as _0x4874f6,DomEmitterMixin as _0x40dbb5}from'ckeditor5/src/utils.js';function _0x5167(_0x5b5e2f,_0x34d9ba){const _0x583122=_0x5831();return _0x5167=function(_0x516754,_0xd88d20){_0x516754=_0x516754-0xe4;let _0x35d3fb=_0x583122[_0x516754];return _0x35d3fb;},_0x5167(_0x5b5e2f,_0x34d9ba);}export function createEditabilityChecker(_0x5ce528){const _0x6d5556=_0x5167,_0x50281c=z(_0x5ce528);return _0x8967bf=>!(!_0x8967bf||!_0x8967bf['is'](_0x6d5556(0x116),_0x6d5556(0xe7))&&!_0x8967bf['is'](_0x6d5556(0x116),_0x6d5556(0x112)))&&(!!_0x8967bf[_0x6d5556(0x104)](_0x6d5556(0xf2))||!!_0x8967bf[_0x6d5556(0x104)](_0x6d5556(0xf7))&&_0x50281c(_0x8967bf[_0x6d5556(0x105)](_0x6d5556(0xf7))));}function _0x5831(){const _0x48b6af=['imageBlock','ImageUtils','editing','replace','findViewImgElement','filter','removeClass','4244976pnfGwB','image/webp','57GBOfsL','10wkImgz','uploadcareImageId','x/\x20','px)\x20100vw,\x20','addClass','get','src','origin','7NAxkxd','listenTo','width','view','location','6826113oBeBnw','1784255QAavaU','6enFuIB','change','426806ajcMxO','167153bMVNMd','hasAttribute','getAttribute','aspect-ratio','domConverter','/-/resize/','toViewElement','2347477cZsdUD','stopListening','some','load','map','setStyle','isArray','window','imageInline','mapper','match','baseURI','element','function','plugins','(max-width:\x20','image-processing','viewToDom','join','document','247144VbgbjZ','removeStyle','height'];_0x5831=function(){return _0x48b6af;};return _0x5831();}export function getImageUrls(_0x5a6087,_0x37f11e){const _0x4a3e3c=_0x5167,_0x248a0c=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960][_0x4a3e3c(0xec)](_0x23ae7a=>_0x23ae7a<=_0x37f11e)[_0x4a3e3c(0x10e)](_0x299822=>_0x5a6087[_0x4a3e3c(0xea)](/\/$/,'')+_0x4a3e3c(0x108)+_0x299822+_0x4a3e3c(0xf3)+_0x299822+'w');return{'imageFallbackUrl':_0x5a6087,'imageSources':[{'srcset':_0x248a0c[_0x4a3e3c(0x11c)](',\x20'),'sizes':_0x4a3e3c(0x119)+_0x37f11e+_0x4a3e3c(0xf4)+_0x37f11e+'px','type':_0x4a3e3c(0xef)}]};}export function getImageDimension(_0x2aef1a,_0x26a48d,_0x15037e){const _0x121dff=_0x5167,_0x32ca60=_0x2aef1a[_0x121dff(0x114)](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x32ca60?parseInt(_0x32ca60[0x1],0xa):_0x26a48d,'height':_0x32ca60?parseInt(_0x32ca60[0x2],0xa):_0x15037e};}export function showImageProcessingIndicator(_0x5690e6,_0x55ac0f){const _0x57789d=_0x5167,_0x421eaf=new(_0x40dbb5())(),_0x22dc77=_0x5690e6[_0x57789d(0x118)][_0x57789d(0xf6)](_0x57789d(0xe8)),_0x653023=_0x5690e6[_0x57789d(0xe9)][_0x57789d(0x113)][_0x57789d(0x109)](_0x55ac0f),_0x397c6e=_0x22dc77[_0x57789d(0xeb)](_0x653023),_0x27b159=_0x5690e6[_0x57789d(0xe9)][_0x57789d(0xfc)][_0x57789d(0x107)][_0x57789d(0x11b)](_0x397c6e),_0x4a1f44=_0x55ac0f[_0x57789d(0x105)](_0x57789d(0xfb)),_0xbd936b=_0x55ac0f[_0x57789d(0x105)](_0x57789d(0xe6)),_0x394b40=_0x57789d(0x11a);_0x5690e6[_0x57789d(0xe9)][_0x57789d(0xfc)][_0x57789d(0x101)](_0x3549e6=>{const _0x475ecc=_0x57789d;_0x3549e6[_0x475ecc(0xf5)](_0x394b40,_0x653023),_0x3549e6[_0x475ecc(0x10f)](_0x475ecc(0x106),_0x4a1f44+'/'+_0xbd936b,_0x397c6e);}),_0x421eaf[_0x57789d(0xfa)](_0x27b159,_0x57789d(0x10d),()=>{const _0x34a209=_0x57789d;_0x421eaf[_0x34a209(0x10b)](_0x27b159,_0x34a209(0x10d)),_0x5690e6[_0x34a209(0xe9)][_0x34a209(0xfc)][_0x34a209(0x101)](_0x2091cc=>{const _0x255c0e=_0x34a209;_0x2091cc[_0x255c0e(0xed)](_0x394b40,_0x653023),_0x2091cc[_0x255c0e(0xe5)](_0x255c0e(0x106),_0x397c6e);});});}function z(_0x3e76f4){const _0x3c0903=_0x5167;if(Array[_0x3c0903(0x110)](_0x3e76f4)){const _0xc81118=_0x3e76f4[_0x3c0903(0x10e)](z);return _0xf685fa=>_0xc81118[_0x3c0903(0x10c)](_0x4e971d=>_0x4e971d(_0xf685fa));}if(_0x3c0903(0xf8)==_0x3e76f4){const _0x221afa=_0x4874f6[_0x3c0903(0x111)][_0x3c0903(0xfd)][_0x3c0903(0xf8)];return _0x2ef36a=>new URL(_0x2ef36a,_0x4874f6[_0x3c0903(0x11d)][_0x3c0903(0x115)])[_0x3c0903(0xf8)]==_0x221afa;}return _0x3c0903(0x117)==typeof _0x3e76f4?_0x3e76f4:_0x3e76f4 instanceof RegExp?_0x50e055=>!(!_0x50e055[_0x3c0903(0x114)](_0x3e76f4)&&!_0x50e055[_0x3c0903(0xea)](/^https?:\/\//,'')[_0x3c0903(0x114)](_0x3e76f4)):()=>!0x1;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x52ed33,_0x314731){var _0x298059=_0x5b30,_0x59567c=_0x52ed33();while(!![]){try{var _0xcaf1b7=parseInt(_0x298059(0xc0))/0x1+parseInt(_0x298059(0xb6))/0x2*(parseInt(_0x298059(0xbe))/0x3)+parseInt(_0x298059(0xc1))/0x4*(-parseInt(_0x298059(0xba))/0x5)+parseInt(_0x298059(0xbb))/0x6+parseInt(_0x298059(0xbf))/0x7+-parseInt(_0x298059(0xb9))/0x8*(parseInt(_0x298059(0xb7))/0x9)+parseInt(_0x298059(0xbc))/0xa;if(_0xcaf1b7===_0x314731)break;else _0x59567c['push'](_0x59567c['shift']());}catch(_0x4ae529){_0x59567c['push'](_0x59567c['shift']());}}}(_0x55a3,0xb0452));function _0x5b30(_0x4f4690,_0x7d16dc){var _0x55a304=_0x55a3();return _0x5b30=function(_0x5b3003,_0x3bb282){_0x5b3003=_0x5b3003-0xb6;var _0x4c0af3=_0x55a304[_0x5b3003];return _0x4c0af3;},_0x5b30(_0x4f4690,_0x7d16dc);}function _0x55a3(){var _0x324368=['target','3QYiJdr','438130vbpanD','683552zHHFEI','2086156VYpryH','828622RphAhc','2358441wGhMUp','includes','32xZqOvF','5lMhSYt','3140454xkaOEp','6078750TZHCgf'];_0x55a3=function(){return _0x324368;};return _0x55a3();}import{getAncestors as _0x2e5760}from'ckeditor5/src/utils.js';export function isAncestor(_0x64aece,_0x1fbf88){var _0x52dc12=_0x5b30;return _0x2e5760(_0x64aece[_0x52dc12(0xbd)])[_0x52dc12(0xb8)](_0x1fbf88);}
23
+ (function(_0x39a847,_0x5329fe){var _0x68c331=_0x57dc,_0x383987=_0x39a847();while(!![]){try{var _0x4b4370=parseInt(_0x68c331(0x1a4))/0x1*(-parseInt(_0x68c331(0x1a2))/0x2)+parseInt(_0x68c331(0x1a6))/0x3+-parseInt(_0x68c331(0x19f))/0x4+parseInt(_0x68c331(0x1a5))/0x5+parseInt(_0x68c331(0x1a7))/0x6+parseInt(_0x68c331(0x1a3))/0x7+parseInt(_0x68c331(0x1a1))/0x8*(-parseInt(_0x68c331(0x19e))/0x9);if(_0x4b4370===_0x5329fe)break;else _0x383987['push'](_0x383987['shift']());}catch(_0x25cdcb){_0x383987['push'](_0x383987['shift']());}}}(_0x1438,0xf14d5));function _0x57dc(_0x5d5870,_0x1e0bd1){var _0x1438de=_0x1438();return _0x57dc=function(_0x57dcee,_0x3e3a20){_0x57dcee=_0x57dcee-0x19d;var _0xd3ec9=_0x1438de[_0x57dcee];return _0xd3ec9;},_0x57dc(_0x5d5870,_0x1e0bd1);}import{getAncestors as _0x461998}from'ckeditor5/src/utils.js';function _0x1438(){var _0x388097=['target','192168uIrJjD','484804JztcuJ','includes','280STiWBe','380882qMhIke','1463987YBkeEg','10LAiRmU','8658895vKGMtX','290169XEgLIO','10341966oTTfBg'];_0x1438=function(){return _0x388097;};return _0x1438();}export function isAncestor(_0x153190,_0x214ab8){var _0x1b90a5=_0x57dc;return _0x461998(_0x153190[_0x1b90a5(0x19d)])[_0x1b90a5(0x1a0)](_0x214ab8);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x105b72=_0x2430;(function(_0x2fc6d2,_0x427e00){var _0x41d360=_0x2430,_0xdb46dd=_0x2fc6d2();while(!![]){try{var _0x968f=parseInt(_0x41d360(0xb6))/0x1*(parseInt(_0x41d360(0xb7))/0x2)+-parseInt(_0x41d360(0xbd))/0x3+parseInt(_0x41d360(0xb8))/0x4*(parseInt(_0x41d360(0xbc))/0x5)+parseInt(_0x41d360(0xc1))/0x6+-parseInt(_0x41d360(0xc0))/0x7+parseInt(_0x41d360(0xba))/0x8+parseInt(_0x41d360(0xbb))/0x9*(parseInt(_0x41d360(0xbe))/0xa);if(_0x968f===_0x427e00)break;else _0xdb46dd['push'](_0xdb46dd['shift']());}catch(_0x2384a0){_0xdb46dd['push'](_0xdb46dd['shift']());}}}(_0x56fc,0x5ba90));import{uploadFile as _0x1ea65d,info as _0x22666a}from'@uploadcare/upload-client';function _0x56fc(){var _0x497917=['303190gcgAcd','getInfo','5120458tWKqKC','1551570RKeBQj','23061UPIdts','50VBZxKU','243112jZrXhp','upload','1013128lJebXC','18KrdAsh','20ovDkwC','475731MauhYZ'];_0x56fc=function(){return _0x497917;};return _0x56fc();}function _0x2430(_0xaaa0b1,_0x40e8c8){var _0x56fcb0=_0x56fc();return _0x2430=function(_0x24305f,_0x543311){_0x24305f=_0x24305f-0xb6;var _0x27844f=_0x56fcb0[_0x24305f];return _0x27844f;},_0x2430(_0xaaa0b1,_0x40e8c8);}export class UploadUtils{static[_0x105b72(0xb9)]({file:_0x4fa791,..._0x59f3d6}){return _0x1ea65d(_0x4fa791,_0x59f3d6);}static[_0x105b72(0xbf)](_0xcb86b7,_0x5b9120){return _0x22666a(_0xcb86b7,_0x5b9120);}}
23
+ var _0x429e51=_0x271c;(function(_0x3819f9,_0x3b8d30){var _0x2d261b=_0x271c,_0x4f760b=_0x3819f9();while(!![]){try{var _0x308f16=parseInt(_0x2d261b(0xdd))/0x1*(parseInt(_0x2d261b(0xdb))/0x2)+-parseInt(_0x2d261b(0xd2))/0x3*(-parseInt(_0x2d261b(0xd8))/0x4)+parseInt(_0x2d261b(0xdc))/0x5*(parseInt(_0x2d261b(0xd7))/0x6)+-parseInt(_0x2d261b(0xd5))/0x7*(-parseInt(_0x2d261b(0xdf))/0x8)+parseInt(_0x2d261b(0xd3))/0x9+parseInt(_0x2d261b(0xde))/0xa*(parseInt(_0x2d261b(0xda))/0xb)+-parseInt(_0x2d261b(0xd9))/0xc;if(_0x308f16===_0x3b8d30)break;else _0x4f760b['push'](_0x4f760b['shift']());}catch(_0x1cb5b3){_0x4f760b['push'](_0x4f760b['shift']());}}}(_0x1850,0x3c3a4));import{uploadFile as _0x3bdcda,info as _0x47f02f}from'@uploadcare/upload-client';export class UploadUtils{static[_0x429e51(0xd6)]({file:_0x265e18,..._0x35d9bc}){return _0x3bdcda(_0x265e18,_0x35d9bc);}static[_0x429e51(0xd4)](_0x30b288,_0x595521){return _0x47f02f(_0x30b288,_0x595521);}}function _0x271c(_0x326727,_0x514ce1){var _0x1850a0=_0x1850();return _0x271c=function(_0x271c68,_0xc9c29a){_0x271c68=_0x271c68-0xd2;var _0x42264e=_0x1850a0[_0x271c68];return _0x42264e;},_0x271c(_0x326727,_0x514ce1);}function _0x1850(){var _0x3af43f=['getInfo','7POVhBw','upload','730854ncOofL','1375984ntSYUB','14485536nmDSKY','209XUBRip','193330zYnLAx','10hQweUJ','3GWIjhA','47810fNjZJX','995816MeaNZG','3OqtwRH','3248055qKtdFQ'];_0x1850=function(){return _0x3af43f;};return _0x1850();}