@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250601.0 → 0.0.0-nightly-20250602.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.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x4ad29f,Command as _0x2285e4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x599c0d,IconGooglePhotos as _0x2457a1,IconGoogleDrive as _0x3bfbc6,IconFacebook as _0x5e558d,IconDropbox as _0x5369ed,IconUploadcareLink as _0x434256,IconUploadcareImageUpload as _0x52b24b,IconError as et,IconUploadcareImageEdit as _0x2627e7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5116cb,MenuBarMenuListItemButtonView as _0xb910d7,View as _0xfd6e23,FocusCycler as _0x2782ab,Dialog as _0x574305,DialogViewPosition as _0x32531e,SpinnerView as _0x2c1b66,IconView as at,Notification as _0x92cdb3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2a8817,DomEmitterMixin as _0x27133f,global as _0x3b63c4,getAncestors as _0xde7661,ObservableMixin as _0x59c1bb,createElement as _0x2acd36,uid as _0x53a8bd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x622e41}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x19b39e,info as _0x5958fe}from'@uploadcare/upload-client';import*as _0x118224 from'@uploadcare/file-uploader';var o=function(_0x286c32){return _0x286c32['Local']='local',_0x286c32['URL']='url',_0x286c32['Dropbox']='dropbox',_0x286c32['GDrive']='gdrive',_0x286c32['Facebook']='facebook',_0x286c32['GPhotos']='gphotos',_0x286c32['OneDrive']='onedrive',_0x286c32;}({});function _(_0x199d23,_0x5427cc,_0x13969f){const t=_0x199d23['t'],_0x394dac=_0x199d23['t'];switch(_0x5427cc){case o['Local']:return{'text':_0x394dac('Insert'===_0x13969f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x394dac('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x13969f?_0x394dac('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x394dac('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x13969f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x13969f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x13969f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x13969f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x13969f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5427cc;}}class e extends _0x4ad29f{['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 _0x169ce0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xfc24a7;for(const _0x2283e1 in _0x169ce0){const _0x4fe5e2=_0x2283e1,_0x75a05c=_0x169ce0[_0x4fe5e2];if('uploadcareLicenseKeyValid'==_0x75a05c||'uploadcareLicenseKeyInvalid'==_0x75a05c||'uploadcareLicenseKeyExpired'==_0x75a05c||'uploadcareLicenseKeyDomainLimit'==_0x75a05c||'uploadcareLicenseKeyNotAllowed'==_0x75a05c||'uploadcareLicenseKeyEvaluationLimit'==_0x75a05c||'uploadcareLicenseKeyTrialLimit'==_0x75a05c||'uploadcareLicenseKeyUsageLimit'==_0x75a05c){delete _0x169ce0[_0x4fe5e2],_0xfc24a7=_0x75a05c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xfc24a7&&_0x169ce0['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xfc24a7&&_0x169ce0['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xfc24a7&&_0x169ce0['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xfc24a7&&_0x169ce0['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xfc24a7&&_0x169ce0['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xfc24a7&&_0x169ce0['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xfc24a7&&_0x169ce0['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x21e13a}=this,_0x525697=_0x21e13a['commands']['get']('uploadcare');if(!_0x525697)return;const _0x506444=this['_normalizeConfigSourceList'](_0x21e13a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x4e8050,_0x35a8ef)=>{const _0x12eea1=this['_getIntegrationKey'](_0x35a8ef['type']);return _0x4e8050[_0x12eea1]||(_0x4e8050[_0x12eea1]=[]),_0x4e8050[_0x12eea1]['push'](_0x35a8ef),_0x4e8050;},{});_0x21e13a['plugins']['has']('ImageInsertUI')&&_0x21e13a['commands']['get']('uploadcare')&&Object['entries'](_0x506444)['forEach'](([_0x5c202d,_0x1c9339])=>{_0x21e13a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5c202d,'observable':()=>_0x525697,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1c9339),'formViewCreator':()=>this['_createDropdownButtons'](_0x1c9339),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1c9339),'override':'assetManager'!==_0x5c202d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5c5700){const {locale:_0x2ab365}=this['editor'];return _0x5c5700['map'](_0x45dc4d=>{const _0x23ee16=_(_0x2ab365,_0x45dc4d,'Insert');switch(_0x45dc4d){case o['Local']:return{'icon':_0x52b24b,'type':o['Local'],..._0x23ee16};case o['URL']:return{'icon':_0x434256,'type':o['URL'],..._0x23ee16};case o['Dropbox']:return{'icon':_0x5369ed,'type':o['Dropbox'],..._0x23ee16};case o['Facebook']:return{'icon':_0x5e558d,'type':o['Facebook'],..._0x23ee16};case o['GDrive']:return{'icon':_0x3bfbc6,'type':o['GDrive'],..._0x23ee16};case o['GPhotos']:return{'icon':_0x2457a1,'type':o['GPhotos'],..._0x23ee16};case o['OneDrive']:return{'icon':_0x599c0d,'type':o['OneDrive'],..._0x23ee16};}});}['_getIntegrationKey'](_0x1e7336){switch(_0x1e7336){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x25bd5d,_0x5030c0){const _0x541283=this['editor'],_0x5e819a=new _0x25bd5d(_0x541283['locale']),_0x560e70=_0x541283['commands']['get']('uploadcare');return _0x5e819a['bind']('isEnabled')['to'](_0x560e70),_0x5e819a['on']('execute',()=>{_0x560e70['execute'](_0x5030c0);}),_0x5e819a;}['_createToolbarButton'](_0x12aa65){const {locale:_0x3107b0}=this['editor'],_0x2e5267=this['editor']['plugins']['get']('ImageInsertUI'),_0x238855=_0x12aa65[0x0],_0x45d0d1=this['_createButton'](_0x5116cb,_0x238855['type']);return _0x45d0d1['icon']=_0x238855['icon'],_0x45d0d1['bind']('label')['to'](_0x2e5267,'isImageSelected',_0x46d82d=>_(_0x3107b0,_0x238855['type'],_0x46d82d?'Replace':'Insert')['text']),_0x45d0d1['tooltip']=!0x0,_0x45d0d1;}['_createDropdownButtons'](_0x17aac4){const {locale:_0x5ccbcd}=this['editor'],_0x33856d=this['editor']['plugins']['get']('ImageInsertUI');return _0x17aac4['map'](_0x144ca4=>{const _0x2be8c2=this['_createButton'](_0x5116cb,_0x144ca4['type']);return _0x2be8c2['withText']=!0x0,_0x2be8c2['icon']=_0x144ca4['icon'],_0x2be8c2['bind']('label')['to'](_0x33856d,'isImageSelected',_0x25e61a=>_(_0x5ccbcd,_0x144ca4['type'],_0x25e61a?'Replace':'Insert')['text']),_0x2be8c2;});}['_createMenuBarButtons'](_0x1f28af){return _0x1f28af['map'](_0x35c314=>{const _0x50bedc=this['_createButton'](_0xb910d7,_0x35c314['type']);return _0x50bedc['icon']=_0x35c314['icon'],_0x50bedc['label']=_0x35c314['shortText'],_0x50bedc;});}}class q extends _0xfd6e23{['focusTracker'];['focusCycler'];constructor(_0x18300b){super(_0x18300b),this['focusTracker']=new _0x2a8817(),this['focusCycler']=new _0x2782ab({'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(_0x2e9488){super(_0x2e9488),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(_0x12c0c2,_0x556438){const _0x198409=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2e953c=>_0x2e953c<=_0x556438)['map'](_0x2c663b=>_0x12c0c2['replace'](/\/$/,'')+'/-/resize/'+_0x2c663b+'x/\x20'+_0x2c663b+'w');return{'imageFallbackUrl':_0x12c0c2,'imageSources':[{'srcset':_0x198409['join'](',\x20'),'sizes':'(max-width:\x20'+_0x556438+'px)\x20100vw,\x20'+_0x556438+'px','type':'image/webp'}]};}function A(_0x28ca49,_0x1cffce,_0x2b6642){const _0x283499=_0x28ca49['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x283499?parseInt(_0x283499[0x1],0xa):_0x1cffce,'height':_0x283499?parseInt(_0x283499[0x2],0xa):_0x2b6642};}function m(_0x55b469,_0x54afbc){const _0x2bf34c=Object['create'](_0x27133f),_0x4bf38b=_0x55b469['plugins']['get']('ImageUtils'),_0xbd6f7c=_0x55b469['editing']['mapper']['toViewElement'](_0x54afbc),_0x4c2e4f=_0x4bf38b['findViewImgElement'](_0xbd6f7c),_0x5488ec=_0x55b469['editing']['view']['domConverter']['viewToDom'](_0x4c2e4f),_0xabc530=_0x54afbc['getAttribute']('width'),_0x1d34e4=_0x54afbc['getAttribute']('height'),_0x36defa='image-processing';_0x55b469['editing']['view']['change'](_0x52be99=>{_0x52be99['addClass'](_0x36defa,_0xbd6f7c),_0x52be99['setStyle']('aspect-ratio',_0xabc530+'/'+_0x1d34e4,_0x4c2e4f);}),_0x2bf34c['listenTo'](_0x5488ec,'load',()=>{_0x2bf34c['stopListening'](_0x5488ec,'load'),_0x55b469['editing']['view']['change'](_0x843dbb=>{_0x843dbb['removeClass'](_0x36defa,_0xbd6f7c),_0x843dbb['removeStyle']('aspect-ratio',_0x4c2e4f);});});}function V(_0x204c81){if(Array['isArray'](_0x204c81)){const _0x2155b2=_0x204c81['map'](V);return _0x17886f=>_0x2155b2['some'](_0x5f037b=>_0x5f037b(_0x17886f));}if('origin'==_0x204c81){const _0x6fb98a=_0x3b63c4['window']['location']['origin'];return _0x2a858c=>new URL(_0x2a858c,_0x3b63c4['document']['baseURI'])['origin']==_0x6fb98a;}return'function'==typeof _0x204c81?_0x204c81:_0x204c81 instanceof RegExp?_0x4f6105=>!(!_0x4f6105['match'](_0x204c81)&&!_0x4f6105['replace'](/^https?:\/\//,'')['match'](_0x204c81)):()=>!0x1;}function F(_0x28dc8a,_0x50d114){return _0xde7661(_0x28dc8a['target'])['includes'](_0x50d114);}class l extends/* #__PURE__ -- @preserve */
24
- _0x59c1bb(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2b4566,_0x3cabc5,_0x86f519){super(),this['_editor']=_0x2b4566,this['_editing']=_0x3cabc5,this['_dialog']=_0x2b4566['plugins']['get'](_0x574305),this['_api']=_0x3cabc5['ctxElement']['getAPI'](),this['_type']=_0x86f519,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:_0x45a41d,model:_0xb29596}=this['_editor'],_0x530ac3=_0xb29596['document']['selection']['getSelectedElement'](),_0x3330cb=_0x530ac3&&(_0x530ac3['is']('element','imageBlock')||_0x530ac3['is']('element','imageInline'));this['_formView']=new S(_0x45a41d),this['_dialog']['show']({'id':'uploadCare','icon':_0x52b24b,'title':_(_0x45a41d,this['_type'],_0x3330cb?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x32531e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x45e4e7=>!F(_0x45e4e7,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x15dc88}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x553dc7=>{const _0x483307=_0x15dc88['length'];for(const _0x507f44 of _0x15dc88){const _0x5da845=_0x507f44===_0x15dc88[_0x483307-0x1],{cdnUrl:_0x16bf9d,fileInfo:_0x335737}=_0x507f44;if(!_0x16bf9d||!_0x335737)continue;const {width:_0x1f851c,height:_0x509fc4}=_0x335737['imageInfo'],_0x2e1788=A(_0x16bf9d,_0x1f851c,_0x509fc4),_0x24928b=E(_0x16bf9d,_0x2e1788['width']),_0x348938={'id':_0x335737['uuid'],'type':'image','attributes':{'imageDimension':_0x2e1788,..._0x24928b}};this['_insertAsset'](_0x348938,_0x5da845,_0x553dc7);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4dff59=>{'idle'===_0x4dff59['detail']['status']&&!_0x4dff59['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x58e08c,_0x27d4ab,_0x225897){const _0x56fe1e=this['_editor']['model']['document']['selection'],_0x2ee7e7=_0x56fe1e['getSelectedElement'](),_0x8cfb4d=!(!_0x2ee7e7||!_0x2ee7e7['is']('element','imageInline'));_0x225897['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x58e08c,_0x8cfb4d),_0x27d4ab||_0x225897['setSelection'](_0x56fe1e['getLastPosition']());}['_insertImage'](_0x3af82b,_0x355ae8){const _0x2c113e=this['_editor'],{imageDimension:_0x352eb5,imageFallbackUrl:_0x1f7010,imageSources:_0x3168be}=_0x3af82b['attributes'];_0x2c113e['execute']('insertImage',{'imageType':_0x355ae8?'imageInline':null,'source':{'uploadcareImageId':_0x3af82b['id'],'src':_0x1f7010,'sources':_0x3168be,..._0x352eb5}});}}class n extends _0x2285e4{['_editing'];['_controller']=null;static get['requires'](){return[_0x574305,i];}constructor(_0x314305){super(_0x314305),this['_editing']=_0x314305['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x37dc7f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x37dc7f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x2716ad,publicKey:_0x2aba03,signal:_0x1d03ac,onProgress:_0x44c960}){return _0x19b39e(_0x2716ad,{'publicKey':_0x2aba03,'store':'auto','signal':_0x1d03ac,'onProgress':_0x44c960});}static['getInfo'](_0x14df09,_0x2b74d9){return _0x5958fe(_0x14df09,_0x2b74d9);}}class p extends _0x4ad29f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x622e41,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3352e8=this['editor'];if(!!!_0x3352e8['config']['get']('uploadcare'))return;_0x3352e8['plugins']['get'](_0x622e41)['createUploadAdapter']=_0x4b36f7=>new x(_0x4b36f7,_0x3352e8),_0x3352e8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x31675e,{imageElement:_0x13b4fc,data:_0x55af71})=>{_0x3352e8['model']['change'](_0x4d096a=>{_0x4d096a['setAttribute']('uploadcareImageId',_0x55af71['uploadcareImageId'],_0x13b4fc);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x22f4d0,_0x1f4a67){this['loader']=_0x22f4d0,this['editor']=_0x1f4a67,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x47dbab=this['editor']['config']['get']('uploadcare.pubkey'),_0x19b068=await this['loader']['file'];return C['upload']({'file':_0x19b068,'publicKey':_0x47dbab,'signal':this['controller']['signal'],'onProgress':_0x3e9a6f=>{_0x3e9a6f&&_0x3e9a6f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3e9a6f['value']);}})['then'](async _0x1a1efe=>{const {imageFallbackUrl:_0x3c7d72,imageSources:_0x353d77}=E(_0x1a1efe['cdnUrl'],_0x1a1efe['imageInfo']['width']);return{'uploadcareImageId':_0x1a1efe['uuid'],'default':_0x3c7d72,'sources':_0x353d77};})['catch'](()=>{const _0x41c73c=t('Cannot\x20upload\x20file:')+('\x20'+_0x19b068['name']+'.');return Promise['reject'](_0x41c73c);});}['abort'](){this['controller']['abort']();}}class i extends _0x4ad29f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x574305];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x13e17a=this['editor'];_0x13e17a['commands']['add']('uploadcare',new n(_0x13e17a));}['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 _0x4a34f4=_0x3b63c4['document']['querySelector']('input[uploadcare-file-input]');_0x4a34f4&&_0x4a34f4['remove']();}),async function(_0x225363){const _0x1a201a=_0x1f54a7([0x64,0x31,0x4a,0x53,0x49,0x51,0x4e,0x33,0x66,0x6e,0x6d,0x4b,0x4d,0x48,0x30,0x63,0x78,0x5a,0x6a,0x74,0x36,0x79,0x65,0x67,0x32,0x34,0x42,0x68,0x7a,0x39,0x50,0x6f,0x54,0x73,0x69,0x46,0x43,0x41,0x47,0x71,0x72,0x58,0x4f,0x6b,0x77,0x35,0x55,0x45,0x56,0x62,0x75,0x59,0x52,0x70,0x37,0x6c,0x76,0x57,0x61,0x38,0x44,0x4c]),_0x33235c=0x701b58b9,_0x43541b=0x701c3139^_0x33235c,_0x1b591c=window[_0x1f54a7([0x44,0x61,0x74,0x65])][_0x1f54a7([0x6e,0x6f,0x77])](),_0x3a3e3d=_0x225363[_0x1f54a7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x327a52=new window[(_0x1f54a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a1fde=>{_0x3a3e3d[_0x1f54a7([0x6f,0x6e,0x63,0x65])](_0x1f54a7([0x72,0x65,0x61,0x64,0x79]),_0x1a1fde);}),_0x4e1b0a={[_0x1f54a7([0x6b,0x74,0x79])]:_0x1f54a7([0x45,0x43]),[_0x1f54a7([0x75,0x73,0x65])]:_0x1f54a7([0x73,0x69,0x67]),[_0x1f54a7([0x63,0x72,0x76])]:_0x1f54a7([0x50,0x2d,0x32,0x35,0x36]),[_0x1f54a7([0x78])]:_0x1f54a7([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]),[_0x1f54a7([0x79])]:_0x1f54a7([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]),[_0x1f54a7([0x61,0x6c,0x67])]:_0x1f54a7([0x45,0x53,0x32,0x35,0x36])},_0x6fbfda=_0x3a3e3d[_0x1f54a7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f54a7([0x67,0x65,0x74])](_0x1f54a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x48ee84(){let _0x402b88,_0x1710bf=null,_0x4f8ea0=null;try{if(_0x6fbfda==_0x1f54a7([0x47,0x50,0x4c]))return _0x1f54a7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x402b88=_0x1682c7(),!_0x402b88)return _0x1f54a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x402b88[_0x1f54a7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f8ea0=_0x53e3b2(_0x402b88[_0x1f54a7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x402b88[_0x1f54a7([0x6a,0x74,0x69])])),await _0x4586c8()?_0x4ef550()?_0x416f16()?_0x1f54a7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x41da9f()?(_0x402b88[_0x1f54a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f54a7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1710bf=_0xf5b496(_0x1f54a7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x402b88[_0x1f54a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f54a7([0x74,0x72,0x69,0x61,0x6c])&&(_0x1710bf=_0xf5b496(_0x1f54a7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x151c81()):_0x1f54a7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f54a7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f54a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f54a7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x416f16(){const _0x49e31b=[_0x1f54a7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f54a7([0x74,0x72,0x69,0x61,0x6c])][_0x1f54a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x402b88[_0x1f54a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1b591c/0x3e8:0xe10*_0x43541b;return _0x402b88[_0x1f54a7([0x65,0x78,0x70])]<_0x49e31b;}function _0x4ef550(){const _0x5da7d3=_0x402b88[_0x1f54a7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5da7d3&&(!!_0x5da7d3[_0x1f54a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f54a7([0x2a]))||!!_0x5da7d3[_0x1f54a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f54a7([0x55,0x50,0x4c,0x43])));}function _0x41da9f(){const _0x502931=_0x402b88[_0x1f54a7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x502931||0x0==_0x502931[_0x1f54a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a3443}=new URL(window[_0x1f54a7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x502931[_0x1f54a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a3443))return!0x0;const _0x308056=_0x3a3443[_0x1f54a7([0x73,0x70,0x6c,0x69,0x74])](_0x1f54a7([0x2e]));return _0x502931[_0x1f54a7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6ed72c=>_0x6ed72c[_0x1f54a7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f54a7([0x2a])))[_0x1f54a7([0x6d,0x61,0x70])](_0xb3d9e8=>_0xb3d9e8[_0x1f54a7([0x73,0x70,0x6c,0x69,0x74])](_0x1f54a7([0x2e])))[_0x1f54a7([0x73,0x6f,0x6d,0x65])](_0x573db1=>_0x308056[_0x1f54a7([0x65,0x76,0x65,0x72,0x79])]((_0xe82f56,_0x344d0c)=>_0x573db1[_0x344d0c]===_0xe82f56||_0x573db1[_0x344d0c]===_0x1f54a7([0x2a])));}function _0x151c81(){return _0x1710bf&&_0x4f8ea0?new window[(_0x1f54a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x143f52,_0x499b10)=>{_0x1710bf[_0x1f54a7([0x74,0x68,0x65,0x6e])](_0x143f52,_0x499b10),_0x4f8ea0[_0x1f54a7([0x74,0x68,0x65,0x6e])](_0x347e40=>{_0x347e40!=_0x1f54a7([0x56,0x61,0x6c,0x69,0x64])&&_0x143f52(_0x347e40);},_0x499b10);}):_0x1710bf||_0x4f8ea0||_0x1f54a7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x53e3b2(_0x39bdf9,_0x29fbfe){return new window[(_0x1f54a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x310fe9=>{if(_0x2a12c0())return _0x310fe9(_0x1f54a7([0x56,0x61,0x6c,0x69,0x64]));_0x21edeb(),_0x3a3e3d[_0x1f54a7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f54a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x606ed9=!0x1;const _0xfcbd7b=_0x53a8bd();function _0x5ec07e(_0x1f9afc){return!!_0x1f9afc&&(typeof _0x1f9afc===_0x1f54a7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1f9afc===_0x1f54a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1f9afc[_0x1f54a7([0x74,0x68,0x65,0x6e])]===_0x1f54a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1f9afc[_0x1f54a7([0x63,0x61,0x74,0x63,0x68])]===_0x1f54a7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3057cd(_0x1aec74){_0xc43596(_0x1aec74)[_0x1f54a7([0x74,0x68,0x65,0x6e])](_0x43e061=>{if(!_0x43e061||_0x43e061[_0x1f54a7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f54a7([0x6f,0x6b]))return _0x1f54a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4502ce(_0x1ccf07(_0xfcbd7b+_0x29fbfe))!=_0x43e061[_0x1f54a7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f54a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f54a7([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f54a7([0x74,0x68,0x65,0x6e])](_0x294463=>(_0x4c3ae7(),_0x294463),()=>{const _0x33f978=_0x348753();return null==_0x33f978?(_0x4c3ae7(),_0x1f54a7([0x56,0x61,0x6c,0x69,0x64])):_0x1f54a7(_0x1b591c-_0x33f978>(0x5417dcb9^_0x33235c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f54a7([0x74,0x68,0x65,0x6e])](_0x310fe9)[_0x1f54a7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x310fe9(_0x1f54a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x393169=0x702db639^_0x33235c;function _0x4c3ae7(){const _0x5a4b08=_0x1f54a7([0x6c,0x6c,0x63,0x74,0x2d])+_0x4502ce(_0x1ccf07(_0x39bdf9)),_0x5d5679=_0x7f789e(_0x4502ce(window[_0x1f54a7([0x4d,0x61,0x74,0x68])][_0x1f54a7([0x63,0x65,0x69,0x6c])](_0x1b591c/_0x393169)));window[_0x1f54a7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f54a7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a4b08,_0x5d5679);}function _0x348753(){const _0x5cfbec=_0x1f54a7([0x6c,0x6c,0x63,0x74,0x2d])+_0x4502ce(_0x1ccf07(_0x39bdf9)),_0x19e396=window[_0x1f54a7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f54a7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5cfbec);return _0x19e396?window[_0x1f54a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7f789e(_0x19e396),0x10)*_0x393169:null;}function _0xc43596(_0x14c058){return new window[(_0x1f54a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ed07b,_0x40a853)=>{_0x14c058[_0x1f54a7([0x74,0x68,0x65,0x6e])](_0x4ed07b,_0x40a853),window[_0x1f54a7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x40a853,0x701a8c79^_0x33235c);});}}_0x3a3e3d[_0x1f54a7([0x6f,0x6e])](_0x1f54a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46b5ff,_0x3ec3af)=>{if(_0x3ec3af[0x0]!=_0x39bdf9)return _0x310fe9(_0x1f54a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3ec3af[0x1]={..._0x3ec3af[0x1],[_0x1f54a7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfcbd7b};},{[_0x1f54a7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f54a7([0x68,0x69,0x67,0x68])}),_0x3a3e3d[_0x1f54a7([0x6f,0x6e])](_0x1f54a7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x42617a=>{_0x5ec07e(_0x42617a[_0x1f54a7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x606ed9=!0x0,_0x3057cd(_0x42617a[_0x1f54a7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f54a7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f54a7([0x6c,0x6f,0x77])}),_0x327a52[_0x1f54a7([0x74,0x68,0x65,0x6e])](()=>{_0x606ed9||_0x310fe9(_0x1f54a7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2a12c0(){return _0x3a3e3d[_0x1f54a7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f54a7([0x76,0x69,0x65,0x77])][_0x1f54a7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f54a7([0x61,0x75,0x74,0x6f]);}function _0x21edeb(){_0x3a3e3d[_0x1f54a7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f54a7([0x76,0x69,0x65,0x77])][_0x1f54a7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f54a7([0x61,0x75,0x74,0x6f]);}}function _0xf5b496(_0x411390){const _0x1e0539=[new window[(_0x1f54a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e9450=>setTimeout(_0x4e9450,0x70126675^_0x33235c)),_0x327a52[_0x1f54a7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f54a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1abcc0=>{let _0x2ac1f2=0x0;_0x3a3e3d[_0x1f54a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f54a7([0x6f,0x6e])](_0x1f54a7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2af8fc,_0x36570a)=>{_0x36570a[0x0][_0x1f54a7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ac1f2++,_0x2ac1f2==(0x701b5941^_0x33235c)&&(_0x1abcc0(),_0x2af8fc[_0x1f54a7([0x6f,0x66,0x66])]());});}))];return window[_0x1f54a7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f54a7([0x72,0x61,0x63,0x65])](_0x1e0539)[_0x1f54a7([0x74,0x68,0x65,0x6e])](()=>_0x411390);}async function _0x357438(){await _0x327a52,_0x3a3e3d[_0x1f54a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f54a7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x27983d,_0x3a3e3d[_0x1f54a7([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f54a7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x27983d,_0x3a3e3d[_0x1f54a7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f54a7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4d3b51(_0x5a6005){const _0x5ec810=_0x1e34e4();_0x3a3e3d[_0x5ec810]=_0x1f54a7([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5a6005,_0x5a6005!=_0x1f54a7([0x56,0x61,0x6c,0x69,0x64])&&_0x357438();}function _0x1e34e4(){const _0x54367f=window[_0x1f54a7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f54a7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f54a7([0x6e,0x6f,0x77])]())[_0x1f54a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f54a7([0x2e]),'');let _0x477583=_0x1f54a7([0x64]);for(let _0x343cc3=0x0;_0x343cc3<_0x54367f[_0x1f54a7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x343cc3+=0x2){let _0x44e457=window[_0x1f54a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54367f[_0x1f54a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x343cc3,_0x343cc3+0x2));_0x44e457>=_0x1a201a[_0x1f54a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x44e457-=_0x1a201a[_0x1f54a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x477583+=_0x1a201a[_0x44e457];}return _0x477583;}function _0x1682c7(){const _0x2af280=_0x6fbfda[_0x1f54a7([0x73,0x70,0x6c,0x69,0x74])](_0x1f54a7([0x2e]));if(0x3!=_0x2af280[_0x1f54a7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e79fe(_0x2af280[0x1]);function _0x2e79fe(_0xf46b1c){const _0x2109f2=_0x2b2975(_0xf46b1c);return _0x2109f2&&_0x25bc05()?_0x2109f2:null;function _0x25bc05(){const _0x1ddccd=_0x2109f2[_0x1f54a7([0x6a,0x74,0x69])],_0x43977e=window[_0x1f54a7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ddccd[_0x1f54a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ddccd[_0x1f54a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x214e50={..._0x2109f2,[_0x1f54a7([0x6a,0x74,0x69])]:_0x1ddccd[_0x1f54a7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ddccd[_0x1f54a7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x214e50[_0x1f54a7([0x76,0x63])],_0x1ccf07(_0x214e50)==_0x43977e;}}}async function _0x4586c8(){let _0xade7d6=!0x0;try{const _0x159b2d=_0x6fbfda[_0x1f54a7([0x73,0x70,0x6c,0x69,0x74])](_0x1f54a7([0x2e])),[_0x37d55e,_0x5b6f6e,_0x5b0b5b]=_0x159b2d;return _0x522ef3(_0x37d55e),await _0x21199b(_0x37d55e,_0x5b6f6e,_0x5b0b5b),_0xade7d6;}catch{return!0x1;}function _0x522ef3(_0x4d8ef5){const _0x2325c2=_0x2b2975(_0x4d8ef5);_0x2325c2&&_0x2325c2[_0x1f54a7([0x61,0x6c,0x67])]==_0x1f54a7([0x45,0x53,0x32,0x35,0x36])||(_0xade7d6=!0x1);}async function _0x21199b(_0x3c0315,_0x7d4901,_0x551299){const _0x21873c=window[_0x1f54a7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f54a7([0x66,0x72,0x6f,0x6d])](_0x45df00(_0x551299),_0x18d675=>_0x18d675[_0x1f54a7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x8bcaf2=new window[(_0x1f54a7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f54a7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3c0315+_0x1f54a7([0x2e])+_0x7d4901),_0x1b31db=window[_0x1f54a7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f54a7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b31db)return;const _0x377ebb=await _0x1b31db[_0x1f54a7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f54a7([0x6a,0x77,0x6b]),_0x4e1b0a,{[_0x1f54a7([0x6e,0x61,0x6d,0x65])]:_0x1f54a7([0x45,0x43,0x44,0x53,0x41]),[_0x1f54a7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f54a7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f54a7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b31db[_0x1f54a7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f54a7([0x6e,0x61,0x6d,0x65])]:_0x1f54a7([0x45,0x43,0x44,0x53,0x41]),[_0x1f54a7([0x68,0x61,0x73,0x68])]:{[_0x1f54a7([0x6e,0x61,0x6d,0x65])]:_0x1f54a7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x377ebb,_0x21873c,_0x8bcaf2)||(_0xade7d6=!0x1);}}function _0x2b2975(_0x4d5991){return _0x4d5991[_0x1f54a7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f54a7([0x65,0x79]))?JSON[_0x1f54a7([0x70,0x61,0x72,0x73,0x65])](_0x45df00(_0x4d5991)):null;}function _0x45df00(_0x373f9a){return window[_0x1f54a7([0x61,0x74,0x6f,0x62])](_0x373f9a[_0x1f54a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f54a7([0x2b]))[_0x1f54a7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f54a7([0x2f])));}function _0x1ccf07(_0x4e9e59){let _0x5e979b=0x1505;function _0x36755d(_0x504417){for(let _0x434478=0x0;_0x434478<_0x504417[_0x1f54a7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x434478++){const _0x4a1298=_0x504417[_0x1f54a7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x434478);_0x5e979b=(_0x5e979b<<0x5)+_0x5e979b+_0x4a1298,_0x5e979b&=_0x5e979b;}}function _0x1adc98(_0x19e6f4){Array[_0x1f54a7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19e6f4)?_0x19e6f4[_0x1f54a7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1adc98):_0x19e6f4&&typeof _0x19e6f4==_0x1f54a7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f54a7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19e6f4)[_0x1f54a7([0x73,0x6f,0x72,0x74])]()[_0x1f54a7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x207196,_0x33716c])=>{_0x36755d(_0x207196),_0x1adc98(_0x33716c);}):_0x36755d(window[_0x1f54a7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19e6f4));}return _0x1adc98(_0x4e9e59),_0x5e979b>>>0x0;}function _0x4502ce(_0x24817c){return _0x24817c[_0x1f54a7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f54a7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f54a7([0x30]));}function _0x7f789e(_0x41537){return _0x41537[_0x1f54a7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f54a7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f54a7([0x6a,0x6f,0x69,0x6e])]('');}function _0x27983d(){}function _0x1f54a7(_0x3ae9f0){return _0x3ae9f0['map'](_0x4e2215=>String['fromCharCode'](_0x4e2215))['join']('');}_0x4d3b51(await _0x48ee84());}(this);}['_initSchema'](){const _0x57a625=this['editor']['model']['schema'];_0x57a625['isRegistered']('imageBlock')&&_0x57a625['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x57a625['isRegistered']('imageInline')&&_0x57a625['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x513366=this['editor'];_0x513366['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x513366['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x567d1b=>_0x567d1b['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x39ec38=_0x513366['commands']['get']('replaceImageSource');_0x39ec38&&this['listenTo'](_0x39ec38,'cleanupImage',(_0xccfe29,[_0x45e4f8,_0x222add])=>{_0x45e4f8['removeAttribute']('uploadcareImageId',_0x222add);});}['_initConfig'](){const _0x2705f8=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2eed33=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2acd36(_0x3b63c4['document'],'uc-config',{..._0x2705f8,'pubkey':_0x2eed33,'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']=_0x42b766=>{if('closeMax'==_0x42b766)return'#uc-icon-arrow-down';},_0x3b63c4['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2acd36(_0x3b63c4['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x3b63c4['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x543864=this['editor']['commands']['get']('insertImage');_0x543864&&this['listenTo'](_0x543864,'execute',()=>{const _0x1033b4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1033b4&&_0x1033b4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1033b4);});});const _0x53a316=this['editor']['commands']['get']('uploadcareImageReplace');_0x53a316&&this['listenTo'](_0x53a316,'execute',()=>{const _0x2defe2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2defe2&&_0x2defe2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2defe2);});});}}class u extends _0x4ad29f{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x419894){super(_0x419894),_0x419894['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x118224['defineComponents'](_0x118224);}}class ta extends _0xfd6e23{constructor(_0x3f5f14){super(_0x3f5f14);const t=_0x3f5f14['t'],_0x2e5bc8=this['bindTemplate'],_0x224622=new _0x2c1b66();_0x224622['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':[_0x224622,{'text':_0x2e5bc8['to']('imageUploadProgress',_0x37d6dd=>t('Loading\x20image...')+'\x20('+(_0x37d6dd||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 _0xfd6e23{constructor(_0x135381){super(_0x135381);const t=_0x135381['t'];this['set']('errorType',null);const _0x580386=new _0x5116cb(_0x135381);_0x580386['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x580386['withText']=!0x0,_0x580386['class']='ck-button-action',_0x580386['on']('execute',()=>{this['fire']('retry');}),_0x580386['bind']('isVisible')['to'](this,'errorType',_0x292706=>'NotFound'!==_0x292706);const _0x51c269=new at();_0x51c269['content']=et,_0x51c269['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x51b7c3=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':[_0x51c269,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x51b7c3['to']('errorType',_0x27438c=>t('NotFound'!==_0x27438c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x580386]},{'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 _0xfd6e23{constructor(_0x25a43f,_0x323138){super(_0x25a43f);const _0x4ba9db=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x323138,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4ba9db['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1fa2a0,_0x3bc338,_0x5c9bad){super(_0x1fa2a0),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x1fa2a0),this['_errorView']=new rt(_0x1fa2a0),this['_editingView']=new tt(_0x1fa2a0,_0x5c9bad),this['_focusableView']=new _0xfd6e23(_0x1fa2a0),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3bc338),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'],_0x39e60b=>{this['_addUploadcareImageEditorListeners'](_0x39e60b);});}),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'](_0x13397b,_0x494404){const _0x304b13='uc-cloud-image-editor',_0x5550cc=_0x13397b['querySelector'](_0x304b13);if(_0x5550cc)return _0x494404(_0x5550cc);const _0x166faf=new MutationObserver(_0x1b9d9f=>{const _0xd1d5d1=_0x1b9d9f['filter'](_0x1a6c54=>_0x1a6c54['target']===_0x13397b&&_0x1a6c54['addedNodes']['length']>0x0&&_0x1a6c54['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x304b13);_0xd1d5d1['length']&&(_0x166faf['disconnect'](),_0x494404(_0xd1d5d1[0x0]['addedNodes'][0x0]));});_0x166faf['observe'](_0x13397b,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x297f45){_0x297f45['addEventListener']('apply',_0x2198e2=>{this['fire']('apply',{'imageSrc':_0x2198e2['detail']['cdnUrl']});}),_0x297f45['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x59c1bb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x28d4e2,_0x292a0d,_0x43f367){super(),this['_editor']=_0x28d4e2,this['_dialog']=_0x292a0d,this['_imageElement']=_0x43f367,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 _0x1eeb0c=this['_imageElement'],_0x72f8b=_0x1eeb0c['getAttribute']('uploadcareImageId'),_0x585a2d=_0x1eeb0c['getAttribute']('src');if(_0x72f8b)await this['_loadImageInfo'](_0x72f8b,_0x585a2d);else{if(this['_imageCache']['has'](_0x585a2d)){const _0x55d614=this['_imageCache']['get'](_0x585a2d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x55d614['url'],this['imageDimension']=_0x55d614['dimension'],this['imageId']=_0x55d614['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x176e7a}=this['_editor'],t=_0x176e7a['t'],_0x391212=new Z(_0x176e7a,this['imageStatus'],this['_attributes']);_0x391212['bind']('status')['to'](this,'imageStatus'),_0x391212['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x391212['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x391212['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x391212,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2627e7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x391212,'position':_0x32531e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x391212['focus']();},'onHide':()=>{_0x391212['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x48d98c=>!F(_0x48d98c,_0x391212['element'])}});}['_loadImageInfo'](_0x11ebef,_0x2d3960){return C['getInfo'](_0x11ebef,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x48af4f=>{const {width:_0x20e3d5,height:_0x4c24ff}=_0x48af4f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d3960,this['imageDimension']={'width':_0x20e3d5,'height':_0x4c24ff},this['imageId']=_0x11ebef;})['catch'](_0x33c3ca=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x33c3ca['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x343f7c,_0x438ead){return this['_getImageAsFile'](_0x343f7c)['then'](_0x4ec6e5=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x438ead['signal'],'file':_0x4ec6e5,'onProgress':_0x752208=>{_0x752208&&_0x752208['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x752208['value']));}}))['then'](_0x1c26d4=>{const {width:_0x38f75b,height:_0x58ab1f}=_0x1c26d4['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1c26d4['cdnUrl'],this['imageDimension']={'width':_0x38f75b,'height':_0x58ab1f},this['imageId']=_0x1c26d4['uuid'],this['imageUploadProgress']=null;const _0x73fbe8=_0x343f7c['getAttribute']('src');this['_imageCache']['set'](_0x73fbe8,{'id':_0x1c26d4['uuid'],'url':_0x1c26d4['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3c65e7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3c65e7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x218369,_0x4b55aa){_0x218369['on']('apply',(_0x1bcaf5,_0x8c8a5a)=>{this['_replaceImage'](_0x4b55aa,_0x8c8a5a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x218369['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x218369['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2f45c0,_0x54e0d1,_0x368a12){const _0x50c245=this['_editor'],{width:_0x2f1cab,height:_0xa59f2}=A(_0x54e0d1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1b8864,imageSources:_0x3c892e}=E(_0x54e0d1,_0x2f1cab);_0x50c245['model']['change'](_0x3f178c=>{if('$graveyard'===_0x2f45c0['root']['rootName']){_0x50c245['execute']('insertImage',{'imageType':_0x2f45c0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2f45c0['getAttributes']()),'uploadcareImageId':_0x368a12,'src':_0x1b8864,'sources':_0x3c892e,'width':_0x2f1cab,'height':_0xa59f2}});const _0xf01976=_0x2f45c0['getChildren']();_0x2f45c0=_0x50c245['model']['document']['selection']['getSelectedElement']();for(const _0x52ea9c of _0xf01976)_0x3f178c['append'](_0x3f178c['cloneElement'](_0x52ea9c),_0x2f45c0);}else _0x3f178c['setSelection'](_0x2f45c0,'on'),_0x50c245['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2f45c0['getAttributes']()),'uploadcareImageId':_0x368a12,'src':_0x1b8864,'sources':_0x3c892e,'width':_0x2f1cab,'height':_0xa59f2},_0x2f45c0);_0x3f178c['setSelection'](_0x2f45c0,'on');});}async['_getImageAsFile'](_0x286bba){const _0x546450=_0x3b63c4['window'],_0x474e10=_0x3b63c4['document']['location']['href'],_0x278c45=new _0x546450['URL'](_0x286bba['getAttribute']('src'),_0x474e10);if('data:'===_0x278c45['protocol']){const _0xd2f73=_0x278c45['href']['split'](','),_0x3c3d44=_0xd2f73[0x0]['match'](/:(.*?);/)[0x1],_0x14188d=_0x3c3d44['split']('/')[0x1],_0x2ade98=_0x546450['atob'](_0xd2f73[_0xd2f73['length']-0x1]);let _0x4d5f86=_0x2ade98['length'];const _0x4f5722=new _0x546450['Uint8Array'](_0x4d5f86);for(;_0x4d5f86--;)_0x4f5722[_0x4d5f86]=_0x2ade98['charCodeAt'](_0x4d5f86);return new _0x546450['File']([_0x4f5722],'image.'+_0x14188d,{'type':_0x3c3d44});}const _0x3eda08=_0x278c45['href']['split']('/'),_0x35e661=_0x3eda08[_0x3eda08['length']-0x1],_0x3d23e9=_0x35e661['split']('.')[0x1];return _0x546450['fetch'](_0x278c45['href'])['then'](_0x40810f=>_0x40810f['clone']()['blob']())['then'](_0x4f3ff9=>new _0x546450['File']([_0x4f3ff9],_0x35e661,{'type':'image/'+_0x3d23e9}));}}class J extends _0x2285e4{['imageEditController'];static get['requires'](){return[_0x574305];}['_isEditable'];constructor(_0x1fe4a1){super(_0x1fe4a1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2f8049){const _0x1f4810=V(_0x2f8049);return _0x52de07=>!(!_0x52de07||!_0x52de07['is']('element','imageBlock')&&!_0x52de07['is']('element','imageInline'))&&(!!_0x52de07['hasAttribute']('uploadcareImageId')||!!_0x52de07['hasAttribute']('src')&&_0x1f4810(_0x52de07['getAttribute']('src')));}(_0x1fe4a1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x595dcf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x595dcf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3ccd64=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3ccd64&&(_0x3ccd64['is']('element','imageBlock')||_0x3ccd64['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x574305),_0x3ccd64),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2285e4{['refresh'](){const _0x15b611=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x15b611&&(_0x15b611['is']('element','imageBlock')||_0x15b611['is']('element','imageInline')));}['execute'](_0x3c606b){const _0x3acb98=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1986c7=>{_0x1986c7['setAttributes'](_0x3c606b,_0x3acb98),_0x1986c7['removeAttribute']('srcset',_0x3acb98),_0x1986c7['removeAttribute']('sizes',_0x3acb98);});}}class g extends _0x4ad29f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x92cdb3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x59b6d2}=this;_0x59b6d2['commands']['add']('uploadcareImageEdit',new J(_0x59b6d2)),_0x59b6d2['commands']['add']('uploadcareImageReplace',new O(_0x59b6d2));}}class j extends _0x4ad29f{['_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 _0x1e8cb7=this['editor'];_0x1e8cb7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4c35cc=>{const _0x2a5710=_0x1e8cb7['commands']['get']('uploadcareImageEdit'),_0x57fe4d=new _0x5116cb(_0x4c35cc),t=_0x4c35cc['t'];return _0x57fe4d['set']({'icon':_0x2627e7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x57fe4d['bind']('isEnabled')['to'](_0x2a5710),_0x57fe4d['bind']('isOn')['to'](_0x2a5710,'isActive'),this['listenTo'](_0x57fe4d,'execute',()=>{_0x1e8cb7['execute']('uploadcareImageEdit'),_0x1e8cb7['editing']['view']['focus']();}),_0x57fe4d;}),this['_initConfig']();}['_initConfig'](){const _0x583da7=_0x2acd36(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x583da7),this['listenTo'](this['editor'],'destroy',()=>{_0x583da7['remove']();});}}class P extends _0x4ad29f{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 _0x335939,Command as _0x55b0d0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x16fbcf,IconGooglePhotos as _0x63a214,IconGoogleDrive as _0x3e686f,IconFacebook as _0x181af2,IconDropbox as _0x7576e,IconUploadcareLink as _0xdef5d8,IconUploadcareImageUpload as _0x1d388b,IconError as et,IconUploadcareImageEdit as _0xa3d37a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x54c86e,MenuBarMenuListItemButtonView as _0x1b153d,View as _0x256452,FocusCycler as _0x3defba,Dialog as _0x3510d1,DialogViewPosition as _0xb6ef76,SpinnerView as _0x3ab240,IconView as at,Notification as _0x5cb120}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3bb29e,DomEmitterMixin as _0x28d3a1,global as _0x520e1f,getAncestors as _0x4f71da,ObservableMixin as _0x5afe91,createElement as _0x1d1955,uid as _0x5c09c1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x34f023}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x345ced,info as _0x22f420}from'@uploadcare/upload-client';import*as _0x287e21 from'@uploadcare/file-uploader';var o=function(_0x3f817a){return _0x3f817a['Local']='local',_0x3f817a['URL']='url',_0x3f817a['Dropbox']='dropbox',_0x3f817a['GDrive']='gdrive',_0x3f817a['Facebook']='facebook',_0x3f817a['GPhotos']='gphotos',_0x3f817a['OneDrive']='onedrive',_0x3f817a;}({});function _(_0x5f56f4,_0x42fc38,_0x50e32d){const t=_0x5f56f4['t'],_0x435e84=_0x5f56f4['t'];switch(_0x42fc38){case o['Local']:return{'text':_0x435e84('Insert'===_0x50e32d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x435e84('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x50e32d?_0x435e84('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x435e84('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x50e32d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x50e32d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x50e32d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x50e32d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x50e32d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x42fc38;}}class e extends _0x335939{['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 _0x58d9a4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x11afab;for(const _0x452eee in _0x58d9a4){const _0xc6cb71=_0x452eee,_0x3b36a4=_0x58d9a4[_0xc6cb71];if('uploadcareLicenseKeyValid'==_0x3b36a4||'uploadcareLicenseKeyInvalid'==_0x3b36a4||'uploadcareLicenseKeyExpired'==_0x3b36a4||'uploadcareLicenseKeyDomainLimit'==_0x3b36a4||'uploadcareLicenseKeyNotAllowed'==_0x3b36a4||'uploadcareLicenseKeyEvaluationLimit'==_0x3b36a4||'uploadcareLicenseKeyTrialLimit'==_0x3b36a4||'uploadcareLicenseKeyUsageLimit'==_0x3b36a4){delete _0x58d9a4[_0xc6cb71],_0x11afab=_0x3b36a4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x11afab&&_0x58d9a4['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x11afab&&_0x58d9a4['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x11afab&&_0x58d9a4['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x11afab&&_0x58d9a4['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x11afab&&_0x58d9a4['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x11afab&&_0x58d9a4['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x11afab&&_0x58d9a4['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x66e822}=this,_0x458cb3=_0x66e822['commands']['get']('uploadcare');if(!_0x458cb3)return;const _0x3b065a=this['_normalizeConfigSourceList'](_0x66e822['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xf0d078,_0x1354e6)=>{const _0x243b98=this['_getIntegrationKey'](_0x1354e6['type']);return _0xf0d078[_0x243b98]||(_0xf0d078[_0x243b98]=[]),_0xf0d078[_0x243b98]['push'](_0x1354e6),_0xf0d078;},{});_0x66e822['plugins']['has']('ImageInsertUI')&&_0x66e822['commands']['get']('uploadcare')&&Object['entries'](_0x3b065a)['forEach'](([_0x567ad3,_0x414583])=>{_0x66e822['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x567ad3,'observable':()=>_0x458cb3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x414583),'formViewCreator':()=>this['_createDropdownButtons'](_0x414583),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x414583),'override':'assetManager'!==_0x567ad3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2ab4e9){const {locale:_0x23c19a}=this['editor'];return _0x2ab4e9['map'](_0x3b197a=>{const _0x24ea6b=_(_0x23c19a,_0x3b197a,'Insert');switch(_0x3b197a){case o['Local']:return{'icon':_0x1d388b,'type':o['Local'],..._0x24ea6b};case o['URL']:return{'icon':_0xdef5d8,'type':o['URL'],..._0x24ea6b};case o['Dropbox']:return{'icon':_0x7576e,'type':o['Dropbox'],..._0x24ea6b};case o['Facebook']:return{'icon':_0x181af2,'type':o['Facebook'],..._0x24ea6b};case o['GDrive']:return{'icon':_0x3e686f,'type':o['GDrive'],..._0x24ea6b};case o['GPhotos']:return{'icon':_0x63a214,'type':o['GPhotos'],..._0x24ea6b};case o['OneDrive']:return{'icon':_0x16fbcf,'type':o['OneDrive'],..._0x24ea6b};}});}['_getIntegrationKey'](_0x55d655){switch(_0x55d655){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x26bfc5,_0x1c7e06){const _0x1ab8db=this['editor'],_0x3ade39=new _0x26bfc5(_0x1ab8db['locale']),_0x3c6fb3=_0x1ab8db['commands']['get']('uploadcare');return _0x3ade39['bind']('isEnabled')['to'](_0x3c6fb3),_0x3ade39['on']('execute',()=>{_0x3c6fb3['execute'](_0x1c7e06);}),_0x3ade39;}['_createToolbarButton'](_0x4e4542){const {locale:_0x4cc7ba}=this['editor'],_0x1e757c=this['editor']['plugins']['get']('ImageInsertUI'),_0x5cf6d6=_0x4e4542[0x0],_0x3723f2=this['_createButton'](_0x54c86e,_0x5cf6d6['type']);return _0x3723f2['icon']=_0x5cf6d6['icon'],_0x3723f2['bind']('label')['to'](_0x1e757c,'isImageSelected',_0x21677d=>_(_0x4cc7ba,_0x5cf6d6['type'],_0x21677d?'Replace':'Insert')['text']),_0x3723f2['tooltip']=!0x0,_0x3723f2;}['_createDropdownButtons'](_0x153510){const {locale:_0x2e335d}=this['editor'],_0x43c76b=this['editor']['plugins']['get']('ImageInsertUI');return _0x153510['map'](_0x1cc1d5=>{const _0x535e5f=this['_createButton'](_0x54c86e,_0x1cc1d5['type']);return _0x535e5f['withText']=!0x0,_0x535e5f['icon']=_0x1cc1d5['icon'],_0x535e5f['bind']('label')['to'](_0x43c76b,'isImageSelected',_0x38863a=>_(_0x2e335d,_0x1cc1d5['type'],_0x38863a?'Replace':'Insert')['text']),_0x535e5f;});}['_createMenuBarButtons'](_0x16d948){return _0x16d948['map'](_0x4b0f7e=>{const _0x2100b2=this['_createButton'](_0x1b153d,_0x4b0f7e['type']);return _0x2100b2['icon']=_0x4b0f7e['icon'],_0x2100b2['label']=_0x4b0f7e['shortText'],_0x2100b2;});}}class q extends _0x256452{['focusTracker'];['focusCycler'];constructor(_0x5b31ca){super(_0x5b31ca),this['focusTracker']=new _0x3bb29e(),this['focusCycler']=new _0x3defba({'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(_0x182873){super(_0x182873),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(_0x575b52,_0x1c34f7){const _0x58e963=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5ecade=>_0x5ecade<=_0x1c34f7)['map'](_0x3c79db=>_0x575b52['replace'](/\/$/,'')+'/-/resize/'+_0x3c79db+'x/\x20'+_0x3c79db+'w');return{'imageFallbackUrl':_0x575b52,'imageSources':[{'srcset':_0x58e963['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1c34f7+'px)\x20100vw,\x20'+_0x1c34f7+'px','type':'image/webp'}]};}function A(_0x2132d4,_0x563cad,_0x3e575d){const _0x5a5253=_0x2132d4['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5a5253?parseInt(_0x5a5253[0x1],0xa):_0x563cad,'height':_0x5a5253?parseInt(_0x5a5253[0x2],0xa):_0x3e575d};}function m(_0x2ad706,_0x47dc9b){const _0x539060=Object['create'](_0x28d3a1),_0x3bb75d=_0x2ad706['plugins']['get']('ImageUtils'),_0x2eb69e=_0x2ad706['editing']['mapper']['toViewElement'](_0x47dc9b),_0x3de16a=_0x3bb75d['findViewImgElement'](_0x2eb69e),_0xbabb62=_0x2ad706['editing']['view']['domConverter']['viewToDom'](_0x3de16a),_0x1443ba=_0x47dc9b['getAttribute']('width'),_0x35116a=_0x47dc9b['getAttribute']('height'),_0x279a8a='image-processing';_0x2ad706['editing']['view']['change'](_0x2f7faa=>{_0x2f7faa['addClass'](_0x279a8a,_0x2eb69e),_0x2f7faa['setStyle']('aspect-ratio',_0x1443ba+'/'+_0x35116a,_0x3de16a);}),_0x539060['listenTo'](_0xbabb62,'load',()=>{_0x539060['stopListening'](_0xbabb62,'load'),_0x2ad706['editing']['view']['change'](_0x2a5f41=>{_0x2a5f41['removeClass'](_0x279a8a,_0x2eb69e),_0x2a5f41['removeStyle']('aspect-ratio',_0x3de16a);});});}function V(_0x45d055){if(Array['isArray'](_0x45d055)){const _0x2b0867=_0x45d055['map'](V);return _0x189e4b=>_0x2b0867['some'](_0x3a1ac7=>_0x3a1ac7(_0x189e4b));}if('origin'==_0x45d055){const _0x4137ff=_0x520e1f['window']['location']['origin'];return _0x389c5a=>new URL(_0x389c5a,_0x520e1f['document']['baseURI'])['origin']==_0x4137ff;}return'function'==typeof _0x45d055?_0x45d055:_0x45d055 instanceof RegExp?_0x29e636=>!(!_0x29e636['match'](_0x45d055)&&!_0x29e636['replace'](/^https?:\/\//,'')['match'](_0x45d055)):()=>!0x1;}function F(_0xecff84,_0x52bb6b){return _0x4f71da(_0xecff84['target'])['includes'](_0x52bb6b);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x5afe91(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2393d4,_0x1802ce,_0x47ba44){super(),this['_editor']=_0x2393d4,this['_editing']=_0x1802ce,this['_dialog']=_0x2393d4['plugins']['get'](_0x3510d1),this['_api']=_0x1802ce['ctxElement']['getAPI'](),this['_type']=_0x47ba44,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:_0x1eaab6,model:_0x525f47}=this['_editor'],_0x2c9bac=_0x525f47['document']['selection']['getSelectedElement'](),_0x12fc74=_0x2c9bac&&(_0x2c9bac['is']('element','imageBlock')||_0x2c9bac['is']('element','imageInline'));this['_formView']=new S(_0x1eaab6),this['_dialog']['show']({'id':'uploadCare','icon':_0x1d388b,'title':_(_0x1eaab6,this['_type'],_0x12fc74?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xb6ef76['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x16e7de=>!F(_0x16e7de,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x53c7c4}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3c6502=>{const _0x5799e8=_0x53c7c4['length'];for(const _0x3d0c6d of _0x53c7c4){const _0x2c8442=_0x3d0c6d===_0x53c7c4[_0x5799e8-0x1],{cdnUrl:_0x4f271a,fileInfo:_0x3b1e81}=_0x3d0c6d;if(!_0x4f271a||!_0x3b1e81)continue;const {width:_0x59ec73,height:_0xa596d5}=_0x3b1e81['imageInfo'],_0x232392=A(_0x4f271a,_0x59ec73,_0xa596d5),_0x8f0f09=E(_0x4f271a,_0x232392['width']),_0x1d85d2={'id':_0x3b1e81['uuid'],'type':'image','attributes':{'imageDimension':_0x232392,..._0x8f0f09}};this['_insertAsset'](_0x1d85d2,_0x2c8442,_0x3c6502);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3a3d9d=>{'idle'===_0x3a3d9d['detail']['status']&&!_0x3a3d9d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2b72a5,_0x1719bf,_0x1e059e){const _0x2b3fba=this['_editor']['model']['document']['selection'],_0x145736=_0x2b3fba['getSelectedElement'](),_0x5166b8=!(!_0x145736||!_0x145736['is']('element','imageInline'));_0x1e059e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2b72a5,_0x5166b8),_0x1719bf||_0x1e059e['setSelection'](_0x2b3fba['getLastPosition']());}['_insertImage'](_0x5a9bd8,_0x4fac2b){const _0x38b213=this['_editor'],{imageDimension:_0x98ce4a,imageFallbackUrl:_0x2a26de,imageSources:_0x2a11c1}=_0x5a9bd8['attributes'];_0x38b213['execute']('insertImage',{'imageType':_0x4fac2b?'imageInline':null,'source':{'uploadcareImageId':_0x5a9bd8['id'],'src':_0x2a26de,'sources':_0x2a11c1,..._0x98ce4a}});}}class n extends _0x55b0d0{['_editing'];['_controller']=null;static get['requires'](){return[_0x3510d1,i];}constructor(_0xe97d3d){super(_0xe97d3d),this['_editing']=_0xe97d3d['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1dddbf){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1dddbf);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0xaa8331,publicKey:_0x4251b5,signal:_0xc15923,onProgress:_0x1064cb}){return _0x345ced(_0xaa8331,{'publicKey':_0x4251b5,'store':'auto','signal':_0xc15923,'onProgress':_0x1064cb});}static['getInfo'](_0x47c454,_0x25353c){return _0x22f420(_0x47c454,_0x25353c);}}class p extends _0x335939{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x34f023,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2f67a8=this['editor'];if(!!!_0x2f67a8['config']['get']('uploadcare'))return;_0x2f67a8['plugins']['get'](_0x34f023)['createUploadAdapter']=_0x4472d1=>new x(_0x4472d1,_0x2f67a8),_0x2f67a8['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x274eef,{imageElement:_0x12595c,data:_0xd3f291})=>{_0x2f67a8['model']['change'](_0x7c591a=>{_0x7c591a['setAttribute']('uploadcareImageId',_0xd3f291['uploadcareImageId'],_0x12595c);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x532a6d,_0x1da2f8){this['loader']=_0x532a6d,this['editor']=_0x1da2f8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x287c3f=this['editor']['config']['get']('uploadcare.pubkey'),_0xa3b5ed=await this['loader']['file'];return C['upload']({'file':_0xa3b5ed,'publicKey':_0x287c3f,'signal':this['controller']['signal'],'onProgress':_0x20c4c1=>{_0x20c4c1&&_0x20c4c1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x20c4c1['value']);}})['then'](async _0xc12c6c=>{const {imageFallbackUrl:_0x58472f,imageSources:_0x301e9f}=E(_0xc12c6c['cdnUrl'],_0xc12c6c['imageInfo']['width']);return{'uploadcareImageId':_0xc12c6c['uuid'],'default':_0x58472f,'sources':_0x301e9f};})['catch'](()=>{const _0x3b3124=t('Cannot\x20upload\x20file:')+('\x20'+_0xa3b5ed['name']+'.');return Promise['reject'](_0x3b3124);});}['abort'](){this['controller']['abort']();}}class i extends _0x335939{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x3510d1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x19c0ac=this['editor'];_0x19c0ac['commands']['add']('uploadcare',new n(_0x19c0ac));}['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 _0x49444a=_0x520e1f['document']['querySelector']('input[uploadcare-file-input]');_0x49444a&&_0x49444a['remove']();}),async function(_0x4c62d2){const _0xd42ec6=_0x37ecbc([0x4b,0x48,0x30,0x69,0x57,0x6f,0x74,0x6d,0x37,0x32,0x31,0x4e,0x49,0x44,0x6e,0x77,0x65,0x39,0x43,0x41,0x4c,0x38,0x79,0x46,0x64,0x4d,0x67,0x61,0x76,0x36,0x6a,0x42,0x4a,0x71,0x78,0x47,0x56,0x4f,0x70,0x34,0x54,0x59,0x72,0x73,0x51,0x52,0x50,0x45,0x66,0x55,0x62,0x75,0x7a,0x6c,0x5a,0x33,0x6b,0x68,0x35,0x58,0x53,0x63]),_0x3cb38c=0x2ca21b76,_0x1674aa=0x2ca572ee^_0x3cb38c,_0x54fb08=window[_0x37ecbc([0x44,0x61,0x74,0x65])][_0x37ecbc([0x6e,0x6f,0x77])](),_0x3e892e=_0x4c62d2[_0x37ecbc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ab66b=new window[(_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x343eeb=>{_0x3e892e[_0x37ecbc([0x6f,0x6e,0x63,0x65])](_0x37ecbc([0x72,0x65,0x61,0x64,0x79]),_0x343eeb);}),_0x1254e2={[_0x37ecbc([0x6b,0x74,0x79])]:_0x37ecbc([0x45,0x43]),[_0x37ecbc([0x75,0x73,0x65])]:_0x37ecbc([0x73,0x69,0x67]),[_0x37ecbc([0x63,0x72,0x76])]:_0x37ecbc([0x50,0x2d,0x32,0x35,0x36]),[_0x37ecbc([0x78])]:_0x37ecbc([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]),[_0x37ecbc([0x79])]:_0x37ecbc([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]),[_0x37ecbc([0x61,0x6c,0x67])]:_0x37ecbc([0x45,0x53,0x32,0x35,0x36])},_0x217210=_0x3e892e[_0x37ecbc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x37ecbc([0x67,0x65,0x74])](_0x37ecbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x407b15(){let _0x503537,_0x1eef08=null,_0x3e8943=null;try{if(_0x217210==_0x37ecbc([0x47,0x50,0x4c]))return _0x37ecbc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x503537=_0x1cc829(),!_0x503537)return _0x37ecbc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x503537[_0x37ecbc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e8943=_0x4c1153(_0x503537[_0x37ecbc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x503537[_0x37ecbc([0x6a,0x74,0x69])])),await _0x2c2f5d()?_0xe0ef86()?_0x20a94c()?_0x37ecbc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x394b60()?(_0x503537[_0x37ecbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37ecbc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1eef08=_0x1e021a(_0x37ecbc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x503537[_0x37ecbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37ecbc([0x74,0x72,0x69,0x61,0x6c])&&(_0x1eef08=_0x1e021a(_0x37ecbc([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4eef35()):_0x37ecbc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x37ecbc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x37ecbc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x37ecbc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x20a94c(){const _0x27202f=[_0x37ecbc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x37ecbc([0x74,0x72,0x69,0x61,0x6c])][_0x37ecbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x503537[_0x37ecbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x54fb08/0x3e8:0xe10*_0x1674aa;return _0x503537[_0x37ecbc([0x65,0x78,0x70])]<_0x27202f;}function _0xe0ef86(){const _0x1779ee=_0x503537[_0x37ecbc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1779ee&&(!!_0x1779ee[_0x37ecbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37ecbc([0x2a]))||!!_0x1779ee[_0x37ecbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37ecbc([0x55,0x50,0x4c,0x43])));}function _0x394b60(){const _0x5c3c7c=_0x503537[_0x37ecbc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c3c7c||0x0==_0x5c3c7c[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5ea879}=new URL(window[_0x37ecbc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c3c7c[_0x37ecbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ea879))return!0x0;const _0x8be8=_0x5ea879[_0x37ecbc([0x73,0x70,0x6c,0x69,0x74])](_0x37ecbc([0x2e]));return _0x5c3c7c[_0x37ecbc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5341ec=>_0x5341ec[_0x37ecbc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37ecbc([0x2a])))[_0x37ecbc([0x6d,0x61,0x70])](_0x1e5a1b=>_0x1e5a1b[_0x37ecbc([0x73,0x70,0x6c,0x69,0x74])](_0x37ecbc([0x2e])))[_0x37ecbc([0x73,0x6f,0x6d,0x65])](_0x2cd839=>_0x8be8[_0x37ecbc([0x65,0x76,0x65,0x72,0x79])]((_0x4e5118,_0x4e7c2f)=>_0x2cd839[_0x4e7c2f]===_0x4e5118||_0x2cd839[_0x4e7c2f]===_0x37ecbc([0x2a])));}function _0x4eef35(){return _0x1eef08&&_0x3e8943?new window[(_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x406f93,_0x5d5f06)=>{_0x1eef08[_0x37ecbc([0x74,0x68,0x65,0x6e])](_0x406f93,_0x5d5f06),_0x3e8943[_0x37ecbc([0x74,0x68,0x65,0x6e])](_0x269ac4=>{_0x269ac4!=_0x37ecbc([0x56,0x61,0x6c,0x69,0x64])&&_0x406f93(_0x269ac4);},_0x5d5f06);}):_0x1eef08||_0x3e8943||_0x37ecbc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c1153(_0x4bf4d9,_0x5d98c5){return new window[(_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dd04d=>{if(_0x2883d8())return _0x3dd04d(_0x37ecbc([0x56,0x61,0x6c,0x69,0x64]));_0x115d15(),_0x3e892e[_0x37ecbc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x37ecbc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x133363=!0x1;const _0x2059c7=_0x5c09c1();function _0x338fed(_0x186795){return!!_0x186795&&(typeof _0x186795===_0x37ecbc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x186795===_0x37ecbc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x186795[_0x37ecbc([0x74,0x68,0x65,0x6e])]===_0x37ecbc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x186795[_0x37ecbc([0x63,0x61,0x74,0x63,0x68])]===_0x37ecbc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x587fa3(_0x12203c){_0x250c74(_0x12203c)[_0x37ecbc([0x74,0x68,0x65,0x6e])](_0x47e827=>{if(!_0x47e827||_0x47e827[_0x37ecbc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x37ecbc([0x6f,0x6b]))return _0x37ecbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x307b93(_0x178c07(_0x2059c7+_0x5d98c5))!=_0x47e827[_0x37ecbc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x37ecbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x37ecbc([0x56,0x61,0x6c,0x69,0x64]);})[_0x37ecbc([0x74,0x68,0x65,0x6e])](_0x4bd62a=>(_0x7b1a99(),_0x4bd62a),()=>{const _0x1e77cb=_0x5e58e5();return null==_0x1e77cb?(_0x7b1a99(),_0x37ecbc([0x56,0x61,0x6c,0x69,0x64])):_0x37ecbc(_0x54fb08-_0x1e77cb>(0x8ae9f76^_0x3cb38c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x37ecbc([0x74,0x68,0x65,0x6e])](_0x3dd04d)[_0x37ecbc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3dd04d(_0x37ecbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x524c84=0x2c94f5f6^_0x3cb38c;function _0x7b1a99(){const _0x40d085=_0x37ecbc([0x6c,0x6c,0x63,0x74,0x2d])+_0x307b93(_0x178c07(_0x4bf4d9)),_0x1fccc2=_0x19726e(_0x307b93(window[_0x37ecbc([0x4d,0x61,0x74,0x68])][_0x37ecbc([0x63,0x65,0x69,0x6c])](_0x54fb08/_0x524c84)));window[_0x37ecbc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37ecbc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40d085,_0x1fccc2);}function _0x5e58e5(){const _0x391cef=_0x37ecbc([0x6c,0x6c,0x63,0x74,0x2d])+_0x307b93(_0x178c07(_0x4bf4d9)),_0x164694=window[_0x37ecbc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37ecbc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x391cef);return _0x164694?window[_0x37ecbc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19726e(_0x164694),0x10)*_0x524c84:null;}function _0x250c74(_0xe45983){return new window[(_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ad95e,_0x244696)=>{_0xe45983[_0x37ecbc([0x74,0x68,0x65,0x6e])](_0x3ad95e,_0x244696),window[_0x37ecbc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x244696,0x2ca3cfb6^_0x3cb38c);});}}_0x3e892e[_0x37ecbc([0x6f,0x6e])](_0x37ecbc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c7d41,_0x50df53)=>{if(_0x50df53[0x0]!=_0x4bf4d9)return _0x3dd04d(_0x37ecbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x50df53[0x1]={..._0x50df53[0x1],[_0x37ecbc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2059c7};},{[_0x37ecbc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37ecbc([0x68,0x69,0x67,0x68])}),_0x3e892e[_0x37ecbc([0x6f,0x6e])](_0x37ecbc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43119a=>{_0x338fed(_0x43119a[_0x37ecbc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x133363=!0x0,_0x587fa3(_0x43119a[_0x37ecbc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x37ecbc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37ecbc([0x6c,0x6f,0x77])}),_0x4ab66b[_0x37ecbc([0x74,0x68,0x65,0x6e])](()=>{_0x133363||_0x3dd04d(_0x37ecbc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2883d8(){return _0x3e892e[_0x37ecbc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37ecbc([0x76,0x69,0x65,0x77])][_0x37ecbc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x37ecbc([0x61,0x75,0x74,0x6f]);}function _0x115d15(){_0x3e892e[_0x37ecbc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37ecbc([0x76,0x69,0x65,0x77])][_0x37ecbc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x37ecbc([0x61,0x75,0x74,0x6f]);}}function _0x1e021a(_0x136d08){const _0x54ec12=[new window[(_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c3e44=>setTimeout(_0x5c3e44,0x2cab25ba^_0x3cb38c)),_0x4ab66b[_0x37ecbc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9dd1de=>{let _0x4df0e5=0x0;_0x3e892e[_0x37ecbc([0x6d,0x6f,0x64,0x65,0x6c])][_0x37ecbc([0x6f,0x6e])](_0x37ecbc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x41d574,_0x9680d3)=>{_0x9680d3[0x0][_0x37ecbc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4df0e5++,_0x4df0e5==(0x2ca21a8e^_0x3cb38c)&&(_0x9dd1de(),_0x41d574[_0x37ecbc([0x6f,0x66,0x66])]());});}))];return window[_0x37ecbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x37ecbc([0x72,0x61,0x63,0x65])](_0x54ec12)[_0x37ecbc([0x74,0x68,0x65,0x6e])](()=>_0x136d08);}async function _0x215ce3(){await _0x4ab66b,_0x3e892e[_0x37ecbc([0x6d,0x6f,0x64,0x65,0x6c])][_0x37ecbc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x45eb84,_0x3e892e[_0x37ecbc([0x6d,0x6f,0x64,0x65,0x6c])][_0x37ecbc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x45eb84,_0x3e892e[_0x37ecbc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x37ecbc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c2af4(_0x4235ea){const _0x20577c=_0x4ac154();_0x3e892e[_0x20577c]=_0x37ecbc([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4235ea,_0x4235ea!=_0x37ecbc([0x56,0x61,0x6c,0x69,0x64])&&_0x215ce3();}function _0x4ac154(){const _0x1b8417=window[_0x37ecbc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x37ecbc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x37ecbc([0x6e,0x6f,0x77])]())[_0x37ecbc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x37ecbc([0x2e]),'');let _0x50fffc=_0x37ecbc([0x4b]);for(let _0x17238d=0x0;_0x17238d<_0x1b8417[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17238d+=0x2){let _0x2be7a3=window[_0x37ecbc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b8417[_0x37ecbc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17238d,_0x17238d+0x2));_0x2be7a3>=_0xd42ec6[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2be7a3-=_0xd42ec6[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x50fffc+=_0xd42ec6[_0x2be7a3];}return _0x50fffc;}function _0x1cc829(){const _0x11511d=_0x217210[_0x37ecbc([0x73,0x70,0x6c,0x69,0x74])](_0x37ecbc([0x2e]));if(0x3!=_0x11511d[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3978bf(_0x11511d[0x1]);function _0x3978bf(_0x39348b){const _0x4531a3=_0x5d412d(_0x39348b);return _0x4531a3&&_0x39373d()?_0x4531a3:null;function _0x39373d(){const _0x5e2054=_0x4531a3[_0x37ecbc([0x6a,0x74,0x69])],_0xddab98=window[_0x37ecbc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e2054[_0x37ecbc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e2054[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f842e={..._0x4531a3,[_0x37ecbc([0x6a,0x74,0x69])]:_0x5e2054[_0x37ecbc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e2054[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f842e[_0x37ecbc([0x76,0x63])],_0x178c07(_0x4f842e)==_0xddab98;}}}async function _0x2c2f5d(){let _0x3725de=!0x0;try{const _0x2fc035=_0x217210[_0x37ecbc([0x73,0x70,0x6c,0x69,0x74])](_0x37ecbc([0x2e])),[_0x2fa40b,_0x36394f,_0x42a6ad]=_0x2fc035;return _0x379ed6(_0x2fa40b),await _0x3e1e48(_0x2fa40b,_0x36394f,_0x42a6ad),_0x3725de;}catch{return!0x1;}function _0x379ed6(_0x2941d9){const _0xa697bd=_0x5d412d(_0x2941d9);_0xa697bd&&_0xa697bd[_0x37ecbc([0x61,0x6c,0x67])]==_0x37ecbc([0x45,0x53,0x32,0x35,0x36])||(_0x3725de=!0x1);}async function _0x3e1e48(_0xcbec43,_0x3fa14b,_0x384f2c){const _0x32bb0c=window[_0x37ecbc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x37ecbc([0x66,0x72,0x6f,0x6d])](_0x394458(_0x384f2c),_0x1e29ff=>_0x1e29ff[_0x37ecbc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3c1230=new window[(_0x37ecbc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x37ecbc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xcbec43+_0x37ecbc([0x2e])+_0x3fa14b),_0x4ea500=window[_0x37ecbc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x37ecbc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4ea500)return;const _0x131ec2=await _0x4ea500[_0x37ecbc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x37ecbc([0x6a,0x77,0x6b]),_0x1254e2,{[_0x37ecbc([0x6e,0x61,0x6d,0x65])]:_0x37ecbc([0x45,0x43,0x44,0x53,0x41]),[_0x37ecbc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x37ecbc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x37ecbc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4ea500[_0x37ecbc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x37ecbc([0x6e,0x61,0x6d,0x65])]:_0x37ecbc([0x45,0x43,0x44,0x53,0x41]),[_0x37ecbc([0x68,0x61,0x73,0x68])]:{[_0x37ecbc([0x6e,0x61,0x6d,0x65])]:_0x37ecbc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x131ec2,_0x32bb0c,_0x3c1230)||(_0x3725de=!0x1);}}function _0x5d412d(_0x164e9b){return _0x164e9b[_0x37ecbc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x37ecbc([0x65,0x79]))?JSON[_0x37ecbc([0x70,0x61,0x72,0x73,0x65])](_0x394458(_0x164e9b)):null;}function _0x394458(_0x30cd24){return window[_0x37ecbc([0x61,0x74,0x6f,0x62])](_0x30cd24[_0x37ecbc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x37ecbc([0x2b]))[_0x37ecbc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x37ecbc([0x2f])));}function _0x178c07(_0x481979){let _0x49db63=0x1505;function _0x323b35(_0x1aec45){for(let _0x34b49c=0x0;_0x34b49c<_0x1aec45[_0x37ecbc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34b49c++){const _0x3918c6=_0x1aec45[_0x37ecbc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34b49c);_0x49db63=(_0x49db63<<0x5)+_0x49db63+_0x3918c6,_0x49db63&=_0x49db63;}}function _0x2a8061(_0x4faa19){Array[_0x37ecbc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4faa19)?_0x4faa19[_0x37ecbc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a8061):_0x4faa19&&typeof _0x4faa19==_0x37ecbc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x37ecbc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4faa19)[_0x37ecbc([0x73,0x6f,0x72,0x74])]()[_0x37ecbc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x341d38,_0x297201])=>{_0x323b35(_0x341d38),_0x2a8061(_0x297201);}):_0x323b35(window[_0x37ecbc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4faa19));}return _0x2a8061(_0x481979),_0x49db63>>>0x0;}function _0x307b93(_0x28226e){return _0x28226e[_0x37ecbc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x37ecbc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x37ecbc([0x30]));}function _0x19726e(_0x2ab811){return _0x2ab811[_0x37ecbc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x37ecbc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x37ecbc([0x6a,0x6f,0x69,0x6e])]('');}function _0x45eb84(){}function _0x37ecbc(_0x33d9c2){return _0x33d9c2['map'](_0x2576db=>String['fromCharCode'](_0x2576db))['join']('');}_0x2c2af4(await _0x407b15());}(this);}['_initSchema'](){const _0x250b42=this['editor']['model']['schema'];_0x250b42['isRegistered']('imageBlock')&&_0x250b42['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x250b42['isRegistered']('imageInline')&&_0x250b42['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x160910=this['editor'];_0x160910['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x160910['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x453855=>_0x453855['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2c6622=_0x160910['commands']['get']('replaceImageSource');_0x2c6622&&this['listenTo'](_0x2c6622,'cleanupImage',(_0xceb0b3,[_0x2ef7cb,_0x14cbdd])=>{_0x2ef7cb['removeAttribute']('uploadcareImageId',_0x14cbdd);});}['_initConfig'](){const _0x325b72=this['editor']['config']['get']('uploadcare.uploader')||{},_0x55f469=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1d1955(_0x520e1f['document'],'uc-config',{..._0x325b72,'pubkey':_0x55f469,'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']=_0x526a46=>{if('closeMax'==_0x526a46)return'#uc-icon-arrow-down';},_0x520e1f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1d1955(_0x520e1f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x520e1f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x153424=this['editor']['commands']['get']('insertImage');_0x153424&&this['listenTo'](_0x153424,'execute',()=>{const _0x10c20a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x10c20a&&_0x10c20a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x10c20a);});});const _0x46ba6c=this['editor']['commands']['get']('uploadcareImageReplace');_0x46ba6c&&this['listenTo'](_0x46ba6c,'execute',()=>{const _0x184b63=this['editor']['model']['document']['selection']['getSelectedElement']();_0x184b63&&_0x184b63['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x184b63);});});}}class u extends _0x335939{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d2e32){super(_0x4d2e32),_0x4d2e32['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x287e21['defineComponents'](_0x287e21);}}class ta extends _0x256452{constructor(_0x30ab68){super(_0x30ab68);const t=_0x30ab68['t'],_0x5c8167=this['bindTemplate'],_0x41da56=new _0x3ab240();_0x41da56['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':[_0x41da56,{'text':_0x5c8167['to']('imageUploadProgress',_0x1af740=>t('Loading\x20image...')+'\x20('+(_0x1af740||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 _0x256452{constructor(_0x4164ee){super(_0x4164ee);const t=_0x4164ee['t'];this['set']('errorType',null);const _0x3a0969=new _0x54c86e(_0x4164ee);_0x3a0969['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3a0969['withText']=!0x0,_0x3a0969['class']='ck-button-action',_0x3a0969['on']('execute',()=>{this['fire']('retry');}),_0x3a0969['bind']('isVisible')['to'](this,'errorType',_0x1e62d6=>'NotFound'!==_0x1e62d6);const _0xf2ad57=new at();_0xf2ad57['content']=et,_0xf2ad57['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x293bd7=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':[_0xf2ad57,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x293bd7['to']('errorType',_0x2e028d=>t('NotFound'!==_0x2e028d?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3a0969]},{'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 _0x256452{constructor(_0x599b5c,_0x2e9dca){super(_0x599b5c);const _0x38ca74=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2e9dca,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x38ca74['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2288dc,_0x4c3207,_0x2c71c5){super(_0x2288dc),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2288dc),this['_errorView']=new rt(_0x2288dc),this['_editingView']=new tt(_0x2288dc,_0x2c71c5),this['_focusableView']=new _0x256452(_0x2288dc),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4c3207),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'],_0x4bac57=>{this['_addUploadcareImageEditorListeners'](_0x4bac57);});}),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'](_0x53436a,_0x43798f){const _0x2ccbea='uc-cloud-image-editor',_0x2612c8=_0x53436a['querySelector'](_0x2ccbea);if(_0x2612c8)return _0x43798f(_0x2612c8);const _0x314514=new MutationObserver(_0x3d4fd1=>{const _0x463ff1=_0x3d4fd1['filter'](_0x8df66e=>_0x8df66e['target']===_0x53436a&&_0x8df66e['addedNodes']['length']>0x0&&_0x8df66e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2ccbea);_0x463ff1['length']&&(_0x314514['disconnect'](),_0x43798f(_0x463ff1[0x0]['addedNodes'][0x0]));});_0x314514['observe'](_0x53436a,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x13cbd1){_0x13cbd1['addEventListener']('apply',_0x431ac3=>{this['fire']('apply',{'imageSrc':_0x431ac3['detail']['cdnUrl']});}),_0x13cbd1['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x5afe91(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x336589,_0x51f06c,_0x5712fc){super(),this['_editor']=_0x336589,this['_dialog']=_0x51f06c,this['_imageElement']=_0x5712fc,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 _0xca5656=this['_imageElement'],_0x1207df=_0xca5656['getAttribute']('uploadcareImageId'),_0x14719f=_0xca5656['getAttribute']('src');if(_0x1207df)await this['_loadImageInfo'](_0x1207df,_0x14719f);else{if(this['_imageCache']['has'](_0x14719f)){const _0x5400ba=this['_imageCache']['get'](_0x14719f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5400ba['url'],this['imageDimension']=_0x5400ba['dimension'],this['imageId']=_0x5400ba['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x51e60c}=this['_editor'],t=_0x51e60c['t'],_0x23bde7=new Z(_0x51e60c,this['imageStatus'],this['_attributes']);_0x23bde7['bind']('status')['to'](this,'imageStatus'),_0x23bde7['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x23bde7['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x23bde7['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x23bde7,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xa3d37a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x23bde7,'position':_0xb6ef76['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x23bde7['focus']();},'onHide':()=>{_0x23bde7['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x158327=>!F(_0x158327,_0x23bde7['element'])}});}['_loadImageInfo'](_0x386f45,_0x1cb751){return C['getInfo'](_0x386f45,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x11f2bb=>{const {width:_0x2be151,height:_0x33137c}=_0x11f2bb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1cb751,this['imageDimension']={'width':_0x2be151,'height':_0x33137c},this['imageId']=_0x386f45;})['catch'](_0x214664=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x214664['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x31f93e,_0x3cd788){return this['_getImageAsFile'](_0x31f93e)['then'](_0x233f13=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3cd788['signal'],'file':_0x233f13,'onProgress':_0x198c5b=>{_0x198c5b&&_0x198c5b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x198c5b['value']));}}))['then'](_0x5c6f7d=>{const {width:_0xa9ce55,height:_0x5128e9}=_0x5c6f7d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5c6f7d['cdnUrl'],this['imageDimension']={'width':_0xa9ce55,'height':_0x5128e9},this['imageId']=_0x5c6f7d['uuid'],this['imageUploadProgress']=null;const _0x18827a=_0x31f93e['getAttribute']('src');this['_imageCache']['set'](_0x18827a,{'id':_0x5c6f7d['uuid'],'url':_0x5c6f7d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x16ff45=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x16ff45['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4b6198,_0x4a775e){_0x4b6198['on']('apply',(_0x572629,_0x76794e)=>{this['_replaceImage'](_0x4a775e,_0x76794e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4b6198['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4b6198['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3d2d2a,_0x982304,_0x5d79f9){const _0x22d78f=this['_editor'],{width:_0x4edd0b,height:_0x31e9b4}=A(_0x982304,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x479d5e,imageSources:_0xfd481d}=E(_0x982304,_0x4edd0b);_0x22d78f['model']['change'](_0x2f9c05=>{if('$graveyard'===_0x3d2d2a['root']['rootName']){_0x22d78f['execute']('insertImage',{'imageType':_0x3d2d2a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3d2d2a['getAttributes']()),'uploadcareImageId':_0x5d79f9,'src':_0x479d5e,'sources':_0xfd481d,'width':_0x4edd0b,'height':_0x31e9b4}});const _0x354cfb=_0x3d2d2a['getChildren']();_0x3d2d2a=_0x22d78f['model']['document']['selection']['getSelectedElement']();for(const _0x5d41ac of _0x354cfb)_0x2f9c05['append'](_0x2f9c05['cloneElement'](_0x5d41ac),_0x3d2d2a);}else _0x2f9c05['setSelection'](_0x3d2d2a,'on'),_0x22d78f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3d2d2a['getAttributes']()),'uploadcareImageId':_0x5d79f9,'src':_0x479d5e,'sources':_0xfd481d,'width':_0x4edd0b,'height':_0x31e9b4},_0x3d2d2a);_0x2f9c05['setSelection'](_0x3d2d2a,'on');});}async['_getImageAsFile'](_0x502e9d){const _0x499fbb=_0x520e1f['window'],_0x56b1ad=_0x520e1f['document']['location']['href'],_0x2d4a58=new _0x499fbb['URL'](_0x502e9d['getAttribute']('src'),_0x56b1ad);if('data:'===_0x2d4a58['protocol']){const _0x175357=_0x2d4a58['href']['split'](','),_0x3dfec5=_0x175357[0x0]['match'](/:(.*?);/)[0x1],_0x59043a=_0x3dfec5['split']('/')[0x1],_0x52ee30=_0x499fbb['atob'](_0x175357[_0x175357['length']-0x1]);let _0x4fae6e=_0x52ee30['length'];const _0x3b8ce8=new _0x499fbb['Uint8Array'](_0x4fae6e);for(;_0x4fae6e--;)_0x3b8ce8[_0x4fae6e]=_0x52ee30['charCodeAt'](_0x4fae6e);return new _0x499fbb['File']([_0x3b8ce8],'image.'+_0x59043a,{'type':_0x3dfec5});}const _0x3ebce9=_0x2d4a58['href']['split']('/'),_0x211ecd=_0x3ebce9[_0x3ebce9['length']-0x1],_0x914095=_0x211ecd['split']('.')[0x1];return _0x499fbb['fetch'](_0x2d4a58['href'])['then'](_0x3173f3=>_0x3173f3['clone']()['blob']())['then'](_0x13ca98=>new _0x499fbb['File']([_0x13ca98],_0x211ecd,{'type':'image/'+_0x914095}));}}class J extends _0x55b0d0{['imageEditController'];static get['requires'](){return[_0x3510d1];}['_isEditable'];constructor(_0x305648){super(_0x305648),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x39c8e5){const _0xb690b=V(_0x39c8e5);return _0x147b0a=>!(!_0x147b0a||!_0x147b0a['is']('element','imageBlock')&&!_0x147b0a['is']('element','imageInline'))&&(!!_0x147b0a['hasAttribute']('uploadcareImageId')||!!_0x147b0a['hasAttribute']('src')&&_0xb690b(_0x147b0a['getAttribute']('src')));}(_0x305648['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3e4483=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3e4483);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x117a85=this['editor']['model']['document']['selection']['getSelectedElement']();_0x117a85&&(_0x117a85['is']('element','imageBlock')||_0x117a85['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x3510d1),_0x117a85),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x55b0d0{['refresh'](){const _0x216282=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x216282&&(_0x216282['is']('element','imageBlock')||_0x216282['is']('element','imageInline')));}['execute'](_0x2abc18){const _0x459223=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4d19e3=>{_0x4d19e3['setAttributes'](_0x2abc18,_0x459223),_0x4d19e3['removeAttribute']('srcset',_0x459223),_0x4d19e3['removeAttribute']('sizes',_0x459223);});}}class g extends _0x335939{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x5cb120,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2b45f3}=this;_0x2b45f3['commands']['add']('uploadcareImageEdit',new J(_0x2b45f3)),_0x2b45f3['commands']['add']('uploadcareImageReplace',new O(_0x2b45f3));}}class j extends _0x335939{['_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 _0x2bb260=this['editor'];_0x2bb260['ui']['componentFactory']['add']('uploadcareImageEdit',_0x24080f=>{const _0x2e5193=_0x2bb260['commands']['get']('uploadcareImageEdit'),_0x9f5574=new _0x54c86e(_0x24080f),t=_0x24080f['t'];return _0x9f5574['set']({'icon':_0xa3d37a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x9f5574['bind']('isEnabled')['to'](_0x2e5193),_0x9f5574['bind']('isOn')['to'](_0x2e5193,'isActive'),this['listenTo'](_0x9f5574,'execute',()=>{_0x2bb260['execute']('uploadcareImageEdit'),_0x2bb260['editing']['view']['focus']();}),_0x9f5574;}),this['_initConfig']();}['_initConfig'](){const _0x275f3a=_0x1d1955(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x275f3a),this['listenTo'](this['editor'],'destroy',()=>{_0x275f3a['remove']();});}}class P extends _0x335939{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": "0.0.0-nightly-20250601.0",
3
+ "version": "0.0.0-nightly-20250602.0",
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": "0.0.0-nightly-20250601.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250601.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250601.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250601.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250601.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250601.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250601.0",
33
- "ckeditor5": "0.0.0-nightly-20250601.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250602.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250602.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250602.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250602.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250602.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250602.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250602.0",
33
+ "ckeditor5": "0.0.0-nightly-20250602.0",
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 _0x1b8909=_0xb5d9;(function(_0x597aa6,_0x1c18a){const _0x5d1bc5=_0xb5d9,_0x393f02=_0x597aa6();while(!![]){try{const _0x207c5d=-parseInt(_0x5d1bc5(0xa1))/0x1*(-parseInt(_0x5d1bc5(0x94))/0x2)+-parseInt(_0x5d1bc5(0x8d))/0x3*(parseInt(_0x5d1bc5(0xaf))/0x4)+parseInt(_0x5d1bc5(0x79))/0x5+-parseInt(_0x5d1bc5(0x9d))/0x6+-parseInt(_0x5d1bc5(0xc0))/0x7+-parseInt(_0x5d1bc5(0x86))/0x8*(-parseInt(_0x5d1bc5(0x96))/0x9)+parseInt(_0x5d1bc5(0x7f))/0xa*(parseInt(_0x5d1bc5(0xba))/0xb);if(_0x207c5d===_0x1c18a)break;else _0x393f02['push'](_0x393f02['shift']());}catch(_0x46f337){_0x393f02['push'](_0x393f02['shift']());}}}(_0x4628,0xdbb12));import{Plugin as _0x189b64}from'ckeditor5/src/core.js';function _0xb5d9(_0x24d2b2,_0x4771e0){const _0x462812=_0x4628();return _0xb5d9=function(_0xb5d976,_0x9c5316){_0xb5d976=_0xb5d976-0x79;let _0x18ad3e=_0x462812[_0xb5d976];return _0x18ad3e;},_0xb5d9(_0x24d2b2,_0x4771e0);}import{Dialog as _0x4b4a79}from'ckeditor5/src/ui.js';import{createElement as _0x51f47d,global as _0x290919,uid as _0x346028}from'ckeditor5/src/utils.js';function _0x4628(){const _0x4ca23a=['isOfficialPlugin','document','join','uploadcareImageReplace','8773950kHeLcS','selection','href','execute','1065017BweeXR','render','locale','extend','view','map','\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','listenTo','isPremiumPlugin','_initConversion','downcast','_initConfig','fromCharCode','appendChild','148zhOeWa','upcast','_initCtx','input[uploadcare-file-input]','imageBlock','afterInit','cleanupImage','querySelector','removeAttribute','uploadcare.pubkey','editor','827365ELsgCh','destroy','UploadcareEditing','_initSchema','uc-config','body','6821024BsWMTM','data-uc-image-id','editing','replaceImageSource','true','configElement','remove','_configElement','ctxElement','uploadcare.uploader','uc-upload-ctx-provider','_initImageProcessingIndicator','pluginName','schema','2739155MmxKJT','once','for','insertImage','get','imageInline','170SIVpHf','attributeToAttribute','init','commands','#uc-icon-arrow-down','_ctxElement','PictureEditing','7525816tsilVB','getSelectedElement','contentLanguage','uploadcareImageId','uploadcare','closeMax','config','40185LedMxm','model','conversion','iconHrefResolver','uploader','elementToAttribute','add','2TbwuAq','isRegistered','9OoZTLk','requires','getAttribute'];_0x4628=function(){return _0x4ca23a;};return _0x4628();}import _0x2b1166 from'./uploadcarecommand.js';import _0x3e9041 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x1d6922}from'./utils/editingutils.js';export default class i extends _0x189b64{[_0x1b8909(0xc7)]=null;[_0x1b8909(0x84)]=null;static get[_0x1b8909(0xcc)](){const _0x5e890a=_0x1b8909;return _0x5e890a(0xbc);}static get[_0x1b8909(0x97)](){const _0x364c6f=_0x1b8909;return[_0x364c6f(0x85),_0x3e9041,_0x4b4a79];}static get[_0x1b8909(0x99)](){return!0x0;}static get[_0x1b8909(0xa9)](){return!0x0;}get[_0x1b8909(0xc5)](){const _0x2f1b6c=_0x1b8909;return this[_0x2f1b6c(0xc7)];}get[_0x1b8909(0xc8)](){const _0x2de3cf=_0x1b8909;return this[_0x2de3cf(0x84)];}[_0x1b8909(0x81)](){const _0x5cded9=_0x1b8909,_0xd9dc9=this[_0x5cded9(0xb9)];_0xd9dc9[_0x5cded9(0x82)][_0x5cded9(0x93)](_0x5cded9(0x8a),new _0x2b1166(_0xd9dc9));}[_0x1b8909(0xb4)](){const _0x1d3d22=_0x1b8909;this[_0x1d3d22(0xbd)](),this[_0x1d3d22(0xaa)](),this[_0x1d3d22(0xac)](),this[_0x1d3d22(0xb1)](),this[_0x1d3d22(0xcb)](),this[_0x1d3d22(0xa8)](this[_0x1d3d22(0xb9)],_0x1d3d22(0xbb),()=>{const _0x572a50=_0x1d3d22;this[_0x572a50(0xc7)]&&(this[_0x572a50(0xc7)][_0x572a50(0xc6)](),this[_0x572a50(0xc7)]=null),this[_0x572a50(0x84)]&&(this[_0x572a50(0x84)][_0x572a50(0xc6)](),this[_0x572a50(0x84)]=null);const _0x3e86db=_0x290919[_0x572a50(0x9a)][_0x572a50(0xb6)](_0x572a50(0xb2));_0x3e86db&&_0x3e86db[_0x572a50(0xc6)]();}),async function(_0x512d04){const _0x33f161=_0x2cef1f([0x64,0x31,0x4a,0x53,0x49,0x51,0x4e,0x33,0x66,0x6e,0x6d,0x4b,0x4d,0x48,0x30,0x63,0x78,0x5a,0x6a,0x74,0x36,0x79,0x65,0x67,0x32,0x34,0x42,0x68,0x7a,0x39,0x50,0x6f,0x54,0x73,0x69,0x46,0x43,0x41,0x47,0x71,0x72,0x58,0x4f,0x6b,0x77,0x35,0x55,0x45,0x56,0x62,0x75,0x59,0x52,0x70,0x37,0x6c,0x76,0x57,0x61,0x38,0x44,0x4c]),_0x5cf467=0x701b58b9,_0x5cf71a=0x701c3139^_0x5cf467,_0x327229=window[_0x2cef1f([0x44,0x61,0x74,0x65])][_0x2cef1f([0x6e,0x6f,0x77])](),_0x6c1ad3=_0x512d04[_0x2cef1f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc97c39=new window[(_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f91a1=>{_0x6c1ad3[_0x2cef1f([0x6f,0x6e,0x63,0x65])](_0x2cef1f([0x72,0x65,0x61,0x64,0x79]),_0x2f91a1);}),_0x2a20fd={[_0x2cef1f([0x6b,0x74,0x79])]:_0x2cef1f([0x45,0x43]),[_0x2cef1f([0x75,0x73,0x65])]:_0x2cef1f([0x73,0x69,0x67]),[_0x2cef1f([0x63,0x72,0x76])]:_0x2cef1f([0x50,0x2d,0x32,0x35,0x36]),[_0x2cef1f([0x78])]:_0x2cef1f([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]),[_0x2cef1f([0x79])]:_0x2cef1f([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]),[_0x2cef1f([0x61,0x6c,0x67])]:_0x2cef1f([0x45,0x53,0x32,0x35,0x36])},_0x2140e3=_0x6c1ad3[_0x2cef1f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2cef1f([0x67,0x65,0x74])](_0x2cef1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xec1b3e(){let _0x4ddc38,_0x239773=null,_0x344980=null;try{if(_0x2140e3==_0x2cef1f([0x47,0x50,0x4c]))return _0x2cef1f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4ddc38=_0x3f40fa(),!_0x4ddc38)return _0x2cef1f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4ddc38[_0x2cef1f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x344980=_0x5202d0(_0x4ddc38[_0x2cef1f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4ddc38[_0x2cef1f([0x6a,0x74,0x69])])),await _0x3c07cb()?_0x1ed0a9()?_0x30ab12()?_0x2cef1f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c53f4()?(_0x4ddc38[_0x2cef1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cef1f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x239773=_0x5a6220(_0x2cef1f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4ddc38[_0x2cef1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cef1f([0x74,0x72,0x69,0x61,0x6c])&&(_0x239773=_0x5a6220(_0x2cef1f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x526274()):_0x2cef1f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2cef1f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2cef1f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2cef1f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x30ab12(){const _0x2c2319=[_0x2cef1f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2cef1f([0x74,0x72,0x69,0x61,0x6c])][_0x2cef1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ddc38[_0x2cef1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x327229/0x3e8:0xe10*_0x5cf71a;return _0x4ddc38[_0x2cef1f([0x65,0x78,0x70])]<_0x2c2319;}function _0x1ed0a9(){const _0x350cf8=_0x4ddc38[_0x2cef1f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x350cf8&&(!!_0x350cf8[_0x2cef1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cef1f([0x2a]))||!!_0x350cf8[_0x2cef1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cef1f([0x55,0x50,0x4c,0x43])));}function _0x5c53f4(){const _0x37c7f2=_0xb5d9,_0x16c850=_0x4ddc38[_0x2cef1f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x16c850||0x0==_0x16c850[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1511d9}=new URL(window[_0x2cef1f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x37c7f2(0x9f)]);if(_0x16c850[_0x2cef1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1511d9))return!0x0;const _0x5756a5=_0x1511d9[_0x2cef1f([0x73,0x70,0x6c,0x69,0x74])](_0x2cef1f([0x2e]));return _0x16c850[_0x2cef1f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x272247=>_0x272247[_0x2cef1f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cef1f([0x2a])))[_0x2cef1f([0x6d,0x61,0x70])](_0x4ceb32=>_0x4ceb32[_0x2cef1f([0x73,0x70,0x6c,0x69,0x74])](_0x2cef1f([0x2e])))[_0x2cef1f([0x73,0x6f,0x6d,0x65])](_0x244170=>_0x5756a5[_0x2cef1f([0x65,0x76,0x65,0x72,0x79])]((_0x1f3093,_0x3819ae)=>_0x244170[_0x3819ae]===_0x1f3093||_0x244170[_0x3819ae]===_0x2cef1f([0x2a])));}function _0x526274(){return _0x239773&&_0x344980?new window[(_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbc7a52,_0x91e3e8)=>{_0x239773[_0x2cef1f([0x74,0x68,0x65,0x6e])](_0xbc7a52,_0x91e3e8),_0x344980[_0x2cef1f([0x74,0x68,0x65,0x6e])](_0x2d281e=>{_0x2d281e!=_0x2cef1f([0x56,0x61,0x6c,0x69,0x64])&&_0xbc7a52(_0x2d281e);},_0x91e3e8);}):_0x239773||_0x344980||_0x2cef1f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5202d0(_0x2e63f6,_0x14bb1d){return new window[(_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x246dd3=>{if(_0x1a337f())return _0x246dd3(_0x2cef1f([0x56,0x61,0x6c,0x69,0x64]));_0x72fd1a(),_0x6c1ad3[_0x2cef1f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2cef1f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x427d61=!0x1;const _0x5ec612=_0x346028();function _0x5301ac(_0x1d5c89){return!!_0x1d5c89&&(typeof _0x1d5c89===_0x2cef1f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1d5c89===_0x2cef1f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1d5c89[_0x2cef1f([0x74,0x68,0x65,0x6e])]===_0x2cef1f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1d5c89[_0x2cef1f([0x63,0x61,0x74,0x63,0x68])]===_0x2cef1f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c1d53(_0x5a9e5b){_0x52fa29(_0x5a9e5b)[_0x2cef1f([0x74,0x68,0x65,0x6e])](_0x277992=>{if(!_0x277992||_0x277992[_0x2cef1f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2cef1f([0x6f,0x6b]))return _0x2cef1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xefe5c5(_0x2cda7f(_0x5ec612+_0x14bb1d))!=_0x277992[_0x2cef1f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2cef1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2cef1f([0x56,0x61,0x6c,0x69,0x64]);})[_0x2cef1f([0x74,0x68,0x65,0x6e])](_0x2f9d3d=>(_0x337af3(),_0x2f9d3d),()=>{const _0x1dc5aa=_0x291cb1();return null==_0x1dc5aa?(_0x337af3(),_0x2cef1f([0x56,0x61,0x6c,0x69,0x64])):_0x2cef1f(_0x327229-_0x1dc5aa>(0x5417dcb9^_0x5cf467)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2cef1f([0x74,0x68,0x65,0x6e])](_0x246dd3)[_0x2cef1f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x246dd3(_0x2cef1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x527b1c=0x702db639^_0x5cf467;function _0x337af3(){const _0x4c945f=_0x2cef1f([0x6c,0x6c,0x63,0x74,0x2d])+_0xefe5c5(_0x2cda7f(_0x2e63f6)),_0x57b519=_0xbc20fc(_0xefe5c5(window[_0x2cef1f([0x4d,0x61,0x74,0x68])][_0x2cef1f([0x63,0x65,0x69,0x6c])](_0x327229/_0x527b1c)));window[_0x2cef1f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cef1f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c945f,_0x57b519);}function _0x291cb1(){const _0xc41943=_0x2cef1f([0x6c,0x6c,0x63,0x74,0x2d])+_0xefe5c5(_0x2cda7f(_0x2e63f6)),_0x344076=window[_0x2cef1f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cef1f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc41943);return _0x344076?window[_0x2cef1f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbc20fc(_0x344076),0x10)*_0x527b1c:null;}function _0x52fa29(_0x1bda1d){return new window[(_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4874ee,_0x229c20)=>{_0x1bda1d[_0x2cef1f([0x74,0x68,0x65,0x6e])](_0x4874ee,_0x229c20),window[_0x2cef1f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x229c20,0x701a8c79^_0x5cf467);});}}_0x6c1ad3[_0x2cef1f([0x6f,0x6e])](_0x2cef1f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4045f3,_0x3fc91b)=>{if(_0x3fc91b[0x0]!=_0x2e63f6)return _0x246dd3(_0x2cef1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3fc91b[0x1]={..._0x3fc91b[0x1],[_0x2cef1f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ec612};},{[_0x2cef1f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cef1f([0x68,0x69,0x67,0x68])}),_0x6c1ad3[_0x2cef1f([0x6f,0x6e])](_0x2cef1f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5edd3c=>{_0x5301ac(_0x5edd3c[_0x2cef1f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x427d61=!0x0,_0x5c1d53(_0x5edd3c[_0x2cef1f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2cef1f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cef1f([0x6c,0x6f,0x77])}),_0xc97c39[_0x2cef1f([0x74,0x68,0x65,0x6e])](()=>{_0x427d61||_0x246dd3(_0x2cef1f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a337f(){return _0x6c1ad3[_0x2cef1f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cef1f([0x76,0x69,0x65,0x77])][_0x2cef1f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2cef1f([0x61,0x75,0x74,0x6f]);}function _0x72fd1a(){_0x6c1ad3[_0x2cef1f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cef1f([0x76,0x69,0x65,0x77])][_0x2cef1f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2cef1f([0x61,0x75,0x74,0x6f]);}}function _0x5a6220(_0x46a183){const _0x490fba=[new window[(_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b72c4=>setTimeout(_0x1b72c4,0x70126675^_0x5cf467)),_0xc97c39[_0x2cef1f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11b49e=>{let _0x3372c9=0x0;_0x6c1ad3[_0x2cef1f([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cef1f([0x6f,0x6e])](_0x2cef1f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x579b71,_0x3a78a8)=>{_0x3a78a8[0x0][_0x2cef1f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3372c9++,_0x3372c9==(0x701b5941^_0x5cf467)&&(_0x11b49e(),_0x579b71[_0x2cef1f([0x6f,0x66,0x66])]());});}))];return window[_0x2cef1f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2cef1f([0x72,0x61,0x63,0x65])](_0x490fba)[_0x2cef1f([0x74,0x68,0x65,0x6e])](()=>_0x46a183);}async function _0x28709d(){await _0xc97c39,_0x6c1ad3[_0x2cef1f([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cef1f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x79c4a,_0x6c1ad3[_0x2cef1f([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cef1f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x79c4a,_0x6c1ad3[_0x2cef1f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2cef1f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x51306c(_0x33a1a9){const _0x35e97d=_0x533062();_0x6c1ad3[_0x35e97d]=_0x2cef1f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x33a1a9,_0x33a1a9!=_0x2cef1f([0x56,0x61,0x6c,0x69,0x64])&&_0x28709d();}function _0x533062(){const _0x39129e=window[_0x2cef1f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2cef1f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2cef1f([0x6e,0x6f,0x77])]())[_0x2cef1f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2cef1f([0x2e]),'');let _0x1e899a=_0x2cef1f([0x64]);for(let _0x50e339=0x0;_0x50e339<_0x39129e[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50e339+=0x2){let _0x22c471=window[_0x2cef1f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39129e[_0x2cef1f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50e339,_0x50e339+0x2));_0x22c471>=_0x33f161[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x22c471-=_0x33f161[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e899a+=_0x33f161[_0x22c471];}return _0x1e899a;}function _0x3f40fa(){const _0x5ca5f4=_0x2140e3[_0x2cef1f([0x73,0x70,0x6c,0x69,0x74])](_0x2cef1f([0x2e]));if(0x3!=_0x5ca5f4[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x232218(_0x5ca5f4[0x1]);function _0x232218(_0x36f100){const _0x35b03e=_0x3e7c9f(_0x36f100);return _0x35b03e&&_0x4c8d62()?_0x35b03e:null;function _0x4c8d62(){const _0x2b6897=_0x35b03e[_0x2cef1f([0x6a,0x74,0x69])],_0x4aacb9=window[_0x2cef1f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b6897[_0x2cef1f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b6897[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5e70e2={..._0x35b03e,[_0x2cef1f([0x6a,0x74,0x69])]:_0x2b6897[_0x2cef1f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b6897[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5e70e2[_0x2cef1f([0x76,0x63])],_0x2cda7f(_0x5e70e2)==_0x4aacb9;}}}async function _0x3c07cb(){let _0x17136f=!0x0;try{const _0x1ccc5b=_0x2140e3[_0x2cef1f([0x73,0x70,0x6c,0x69,0x74])](_0x2cef1f([0x2e])),[_0x7d48ad,_0x16ce77,_0x270857]=_0x1ccc5b;return _0x14a4d0(_0x7d48ad),await _0x223a12(_0x7d48ad,_0x16ce77,_0x270857),_0x17136f;}catch{return!0x1;}function _0x14a4d0(_0x541217){const _0xbe2d61=_0x3e7c9f(_0x541217);_0xbe2d61&&_0xbe2d61[_0x2cef1f([0x61,0x6c,0x67])]==_0x2cef1f([0x45,0x53,0x32,0x35,0x36])||(_0x17136f=!0x1);}async function _0x223a12(_0xf7bb8a,_0x3c3d97,_0x13a44c){const _0x583adf=window[_0x2cef1f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2cef1f([0x66,0x72,0x6f,0x6d])](_0x492c54(_0x13a44c),_0xeca654=>_0xeca654[_0x2cef1f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d6611=new window[(_0x2cef1f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2cef1f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf7bb8a+_0x2cef1f([0x2e])+_0x3c3d97),_0x7b6918=window[_0x2cef1f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2cef1f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7b6918)return;const _0x257827=await _0x7b6918[_0x2cef1f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2cef1f([0x6a,0x77,0x6b]),_0x2a20fd,{[_0x2cef1f([0x6e,0x61,0x6d,0x65])]:_0x2cef1f([0x45,0x43,0x44,0x53,0x41]),[_0x2cef1f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2cef1f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2cef1f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7b6918[_0x2cef1f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2cef1f([0x6e,0x61,0x6d,0x65])]:_0x2cef1f([0x45,0x43,0x44,0x53,0x41]),[_0x2cef1f([0x68,0x61,0x73,0x68])]:{[_0x2cef1f([0x6e,0x61,0x6d,0x65])]:_0x2cef1f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x257827,_0x583adf,_0x4d6611)||(_0x17136f=!0x1);}}function _0x3e7c9f(_0x135046){return _0x135046[_0x2cef1f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2cef1f([0x65,0x79]))?JSON[_0x2cef1f([0x70,0x61,0x72,0x73,0x65])](_0x492c54(_0x135046)):null;}function _0x492c54(_0x219791){return window[_0x2cef1f([0x61,0x74,0x6f,0x62])](_0x219791[_0x2cef1f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2cef1f([0x2b]))[_0x2cef1f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2cef1f([0x2f])));}function _0x2cda7f(_0x1f7c45){let _0x1f4dfe=0x1505;function _0x47edd2(_0x32a2b2){for(let _0x55bf90=0x0;_0x55bf90<_0x32a2b2[_0x2cef1f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x55bf90++){const _0x1d8dff=_0x32a2b2[_0x2cef1f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x55bf90);_0x1f4dfe=(_0x1f4dfe<<0x5)+_0x1f4dfe+_0x1d8dff,_0x1f4dfe&=_0x1f4dfe;}}function _0x24271a(_0xd84110){Array[_0x2cef1f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd84110)?_0xd84110[_0x2cef1f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x24271a):_0xd84110&&typeof _0xd84110==_0x2cef1f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2cef1f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd84110)[_0x2cef1f([0x73,0x6f,0x72,0x74])]()[_0x2cef1f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e6b28,_0x2fafa0])=>{_0x47edd2(_0x2e6b28),_0x24271a(_0x2fafa0);}):_0x47edd2(window[_0x2cef1f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd84110));}return _0x24271a(_0x1f7c45),_0x1f4dfe>>>0x0;}function _0xefe5c5(_0x568af9){return _0x568af9[_0x2cef1f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2cef1f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2cef1f([0x30]));}function _0xbc20fc(_0x313e94){return _0x313e94[_0x2cef1f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2cef1f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2cef1f([0x6a,0x6f,0x69,0x6e])]('');}function _0x79c4a(){}function _0x2cef1f(_0x57aec1){const _0x1497e8=_0xb5d9;return _0x57aec1[_0x1497e8(0xa6)](_0x3b8be2=>String[_0x1497e8(0xad)](_0x3b8be2))[_0x1497e8(0x9b)]('');}_0x51306c(await _0xec1b3e());}(this);}[_0x1b8909(0xbd)](){const _0x5aa318=_0x1b8909,_0x3e6b42=this[_0x5aa318(0xb9)][_0x5aa318(0x8e)][_0x5aa318(0xcd)];_0x3e6b42[_0x5aa318(0x95)](_0x5aa318(0xb3))&&_0x3e6b42[_0x5aa318(0xa4)](_0x5aa318(0xb3),{'allowAttributes':[_0x5aa318(0x89)]}),_0x3e6b42[_0x5aa318(0x95)](_0x5aa318(0x7e))&&_0x3e6b42[_0x5aa318(0xa4)](_0x5aa318(0x7e),{'allowAttributes':[_0x5aa318(0x89)]});}[_0x1b8909(0xaa)](){const _0x6472e8=_0x1b8909,_0x81ca9c=this[_0x6472e8(0xb9)];_0x81ca9c[_0x6472e8(0x8f)][_0x6472e8(0x7b)](_0x6472e8(0xab))[_0x6472e8(0x80)]({'model':_0x6472e8(0x89),'view':_0x6472e8(0xc1)}),_0x81ca9c[_0x6472e8(0x8f)][_0x6472e8(0x7b)](_0x6472e8(0xb0))[_0x6472e8(0x92)]({'model':{'key':_0x6472e8(0x89),'value':_0x4ca2e1=>_0x4ca2e1[_0x6472e8(0x98)](_0x6472e8(0xc1))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x28c6a6=_0x81ca9c[_0x6472e8(0x82)][_0x6472e8(0x7d)](_0x6472e8(0xc3));_0x28c6a6&&this[_0x6472e8(0xa8)](_0x28c6a6,_0x6472e8(0xb5),(_0x22f249,[_0x5d9b67,_0x57b147])=>{const _0x514143=_0x6472e8;_0x5d9b67[_0x514143(0xb7)](_0x514143(0x89),_0x57b147);});}[_0x1b8909(0xac)](){const _0x4d444c=_0x1b8909,_0x31c877=this[_0x4d444c(0xb9)][_0x4d444c(0x8c)][_0x4d444c(0x7d)](_0x4d444c(0xc9))||{},_0x28184e=this[_0x4d444c(0xb9)][_0x4d444c(0x8c)][_0x4d444c(0x7d)](_0x4d444c(0xb8))||'';this[_0x4d444c(0xc7)]=_0x51f47d(_0x290919[_0x4d444c(0x9a)],_0x4d444c(0xbe),{..._0x31c877,'pubkey':_0x28184e,'ctx-name':_0x4d444c(0x91),'sourceList':'','imgOnly':_0x4d444c(0xc4),'removeCopyright':_0x4d444c(0xc4),'localeName':this[_0x4d444c(0xb9)][_0x4d444c(0xa3)][_0x4d444c(0x88)],'externalSourcesEmbedCss':_0x4d444c(0xa7)}),this[_0x4d444c(0xc7)][_0x4d444c(0x90)]=_0x1a1012=>{const _0x2645c4=_0x4d444c;if(_0x2645c4(0x8b)==_0x1a1012)return _0x2645c4(0x83);},_0x290919[_0x4d444c(0x9a)][_0x4d444c(0xbf)][_0x4d444c(0xae)](this[_0x4d444c(0xc7)]);}[_0x1b8909(0xb1)](){const _0x38c9d8=_0x1b8909;this[_0x38c9d8(0x84)]=_0x51f47d(_0x290919[_0x38c9d8(0x9a)],_0x38c9d8(0xca),{'ctx-name':_0x38c9d8(0x91)}),_0x290919[_0x38c9d8(0x9a)][_0x38c9d8(0xbf)][_0x38c9d8(0xae)](this[_0x38c9d8(0x84)]);}[_0x1b8909(0xcb)](){const _0x5636ca=_0x1b8909,_0xaba889=this[_0x5636ca(0xb9)][_0x5636ca(0x82)][_0x5636ca(0x7d)](_0x5636ca(0x7c));_0xaba889&&this[_0x5636ca(0xa8)](_0xaba889,_0x5636ca(0xa0),()=>{const _0x154c8f=_0x5636ca,_0x586c30=this[_0x154c8f(0xb9)][_0x154c8f(0x8e)][_0x154c8f(0x9a)][_0x154c8f(0x9e)][_0x154c8f(0x87)]();_0x586c30&&_0x586c30[_0x154c8f(0x98)](_0x154c8f(0x89))&&this[_0x154c8f(0xb9)][_0x154c8f(0xc2)][_0x154c8f(0xa5)][_0x154c8f(0x7a)](_0x154c8f(0xa2),()=>{const _0x5dcaed=_0x154c8f;_0x1d6922(this[_0x5dcaed(0xb9)],_0x586c30);});});const _0x1986a2=this[_0x5636ca(0xb9)][_0x5636ca(0x82)][_0x5636ca(0x7d)](_0x5636ca(0x9c));_0x1986a2&&this[_0x5636ca(0xa8)](_0x1986a2,_0x5636ca(0xa0),()=>{const _0x510db7=_0x5636ca,_0x57aa27=this[_0x510db7(0xb9)][_0x510db7(0x8e)][_0x510db7(0x9a)][_0x510db7(0x9e)][_0x510db7(0x87)]();_0x57aa27&&_0x57aa27[_0x510db7(0x98)](_0x510db7(0x89))&&this[_0x510db7(0xb9)][_0x510db7(0xc2)][_0x510db7(0xa5)][_0x510db7(0x7a)](_0x510db7(0xa2),()=>{const _0x3976c4=_0x510db7;_0x1d6922(this[_0x3976c4(0xb9)],_0x57aa27);});});}}
23
+ const _0x9ab4a=_0x1ed5;function _0x1ed5(_0x3edb93,_0x5b19b2){const _0x376f38=_0x376f();return _0x1ed5=function(_0x1ed5e7,_0x34dfb8){_0x1ed5e7=_0x1ed5e7-0x1e9;let _0x2f58f3=_0x376f38[_0x1ed5e7];return _0x2f58f3;},_0x1ed5(_0x3edb93,_0x5b19b2);}(function(_0x8a9efe,_0x4025f9){const _0x2b0de0=_0x1ed5,_0x569e00=_0x8a9efe();while(!![]){try{const _0x1b4ab7=parseInt(_0x2b0de0(0x232))/0x1*(-parseInt(_0x2b0de0(0x221))/0x2)+parseInt(_0x2b0de0(0x212))/0x3*(parseInt(_0x2b0de0(0x1f2))/0x4)+-parseInt(_0x2b0de0(0x234))/0x5*(-parseInt(_0x2b0de0(0x20f))/0x6)+-parseInt(_0x2b0de0(0x1fd))/0x7*(-parseInt(_0x2b0de0(0x226))/0x8)+-parseInt(_0x2b0de0(0x1f8))/0x9+parseInt(_0x2b0de0(0x1f4))/0xa+-parseInt(_0x2b0de0(0x231))/0xb*(-parseInt(_0x2b0de0(0x1f0))/0xc);if(_0x1b4ab7===_0x4025f9)break;else _0x569e00['push'](_0x569e00['shift']());}catch(_0x1a0d2e){_0x569e00['push'](_0x569e00['shift']());}}}(_0x376f,0x2ef77));import{Plugin as _0x4d9c0b}from'ckeditor5/src/core.js';import{Dialog as _0x3787ca}from'ckeditor5/src/ui.js';import{createElement as _0xe08006,global as _0x45e45a,uid as _0x1a639f}from'ckeditor5/src/utils.js';import _0x1847aa from'./uploadcarecommand.js';import _0xc6cbe6 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x37d5d0}from'./utils/editingutils.js';function _0x376f(){const _0x342346=['href','remove','true','imageBlock','view','_configElement','editor','_initConfig','_initCtx','getSelectedElement','300NmVXOc','join','_ctxElement','3wXHCMb','init','upcast','extend','fromCharCode','for','editing','conversion','attributeToAttribute','ctxElement','isPremiumPlugin','isRegistered','execute','data-uc-image-id','body','8xDMrCi','insertImage','uploadcare','uploadcare.pubkey','appendChild','40904PBhlNV','requires','\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','get','schema','isOfficialPlugin','input[uploadcare-file-input]','uc-upload-ctx-provider','config','_initConversion','removeAttribute','256091SYYBiu','55618IqrjKS','add','1420mpeEgD','replaceImageSource','uploadcare.uploader','#uc-icon-arrow-down','map','commands','locale','closeMax','destroy','selection','downcast','document','_initSchema','uploadcareImageReplace','render','getAttribute','uc-config','configElement','144fnXcwO','once','274372hVuKIn','cleanupImage','1046330IARePy','pluginName','PictureEditing','uploader','1617984ZUHmda','_initImageProcessingIndicator','listenTo','imageInline','afterInit','175JnkJSE','querySelector','model','uploadcareImageId','UploadcareEditing','contentLanguage','iconHrefResolver','elementToAttribute'];_0x376f=function(){return _0x342346;};return _0x376f();}export default class i extends _0x4d9c0b{[_0x9ab4a(0x20a)]=null;[_0x9ab4a(0x211)]=null;static get[_0x9ab4a(0x1f5)](){const _0x21ed9e=_0x9ab4a;return _0x21ed9e(0x201);}static get[_0x9ab4a(0x227)](){const _0x5995cb=_0x9ab4a;return[_0x5995cb(0x1f6),_0xc6cbe6,_0x3787ca];}static get[_0x9ab4a(0x22b)](){return!0x0;}static get[_0x9ab4a(0x21c)](){return!0x0;}get[_0x9ab4a(0x1ef)](){const _0x226a56=_0x9ab4a;return this[_0x226a56(0x20a)];}get[_0x9ab4a(0x21b)](){const _0x5c9ba7=_0x9ab4a;return this[_0x5c9ba7(0x211)];}[_0x9ab4a(0x213)](){const _0x43e849=_0x9ab4a,_0x214948=this[_0x43e849(0x20b)];_0x214948[_0x43e849(0x239)][_0x43e849(0x233)](_0x43e849(0x223),new _0x1847aa(_0x214948));}[_0x9ab4a(0x1fc)](){const _0x2a0d67=_0x9ab4a;this[_0x2a0d67(0x1ea)](),this[_0x2a0d67(0x22f)](),this[_0x2a0d67(0x20c)](),this[_0x2a0d67(0x20d)](),this[_0x2a0d67(0x1f9)](),this[_0x2a0d67(0x1fa)](this[_0x2a0d67(0x20b)],_0x2a0d67(0x23c),()=>{const _0x2273c8=_0x2a0d67;this[_0x2273c8(0x20a)]&&(this[_0x2273c8(0x20a)][_0x2273c8(0x206)](),this[_0x2273c8(0x20a)]=null),this[_0x2273c8(0x211)]&&(this[_0x2273c8(0x211)][_0x2273c8(0x206)](),this[_0x2273c8(0x211)]=null);const _0x24229f=_0x45e45a[_0x2273c8(0x1e9)][_0x2273c8(0x1fe)](_0x2273c8(0x22c));_0x24229f&&_0x24229f[_0x2273c8(0x206)]();}),async function(_0x508403){const _0x15fd6e=_0xf05cf([0x4b,0x48,0x30,0x69,0x57,0x6f,0x74,0x6d,0x37,0x32,0x31,0x4e,0x49,0x44,0x6e,0x77,0x65,0x39,0x43,0x41,0x4c,0x38,0x79,0x46,0x64,0x4d,0x67,0x61,0x76,0x36,0x6a,0x42,0x4a,0x71,0x78,0x47,0x56,0x4f,0x70,0x34,0x54,0x59,0x72,0x73,0x51,0x52,0x50,0x45,0x66,0x55,0x62,0x75,0x7a,0x6c,0x5a,0x33,0x6b,0x68,0x35,0x58,0x53,0x63]),_0x13d0d9=0x2ca21b76,_0x34e3c8=0x2ca572ee^_0x13d0d9,_0x59360e=window[_0xf05cf([0x44,0x61,0x74,0x65])][_0xf05cf([0x6e,0x6f,0x77])](),_0x4fdd81=_0x508403[_0xf05cf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d781c=new window[(_0xf05cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23ed2e=>{_0x4fdd81[_0xf05cf([0x6f,0x6e,0x63,0x65])](_0xf05cf([0x72,0x65,0x61,0x64,0x79]),_0x23ed2e);}),_0x285f2b={[_0xf05cf([0x6b,0x74,0x79])]:_0xf05cf([0x45,0x43]),[_0xf05cf([0x75,0x73,0x65])]:_0xf05cf([0x73,0x69,0x67]),[_0xf05cf([0x63,0x72,0x76])]:_0xf05cf([0x50,0x2d,0x32,0x35,0x36]),[_0xf05cf([0x78])]:_0xf05cf([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]),[_0xf05cf([0x79])]:_0xf05cf([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]),[_0xf05cf([0x61,0x6c,0x67])]:_0xf05cf([0x45,0x53,0x32,0x35,0x36])},_0x2b1143=_0x4fdd81[_0xf05cf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf05cf([0x67,0x65,0x74])](_0xf05cf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e51ce(){let _0x5ed360,_0x4dd461=null,_0x12ad40=null;try{if(_0x2b1143==_0xf05cf([0x47,0x50,0x4c]))return _0xf05cf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ed360=_0xf6c264(),!_0x5ed360)return _0xf05cf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ed360[_0xf05cf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x12ad40=_0x1747f6(_0x5ed360[_0xf05cf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ed360[_0xf05cf([0x6a,0x74,0x69])])),await _0x2195d1()?_0x22cf73()?_0x1d7030()?_0xf05cf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45bd65()?(_0x5ed360[_0xf05cf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf05cf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4dd461=_0x19e392(_0xf05cf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ed360[_0xf05cf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf05cf([0x74,0x72,0x69,0x61,0x6c])&&(_0x4dd461=_0x19e392(_0xf05cf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e2584()):_0xf05cf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf05cf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf05cf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xf05cf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d7030(){const _0x109305=[_0xf05cf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf05cf([0x74,0x72,0x69,0x61,0x6c])][_0xf05cf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ed360[_0xf05cf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x59360e/0x3e8:0xe10*_0x34e3c8;return _0x5ed360[_0xf05cf([0x65,0x78,0x70])]<_0x109305;}function _0x22cf73(){const _0x3248e6=_0x5ed360[_0xf05cf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3248e6&&(!!_0x3248e6[_0xf05cf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf05cf([0x2a]))||!!_0x3248e6[_0xf05cf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf05cf([0x55,0x50,0x4c,0x43])));}function _0x45bd65(){const _0x577c52=_0x1ed5,_0x1b1f0d=_0x5ed360[_0xf05cf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b1f0d||0x0==_0x1b1f0d[_0xf05cf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x198474}=new URL(window[_0xf05cf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x577c52(0x205)]);if(_0x1b1f0d[_0xf05cf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x198474))return!0x0;const _0x4447bd=_0x198474[_0xf05cf([0x73,0x70,0x6c,0x69,0x74])](_0xf05cf([0x2e]));return _0x1b1f0d[_0xf05cf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40c412=>_0x40c412[_0xf05cf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf05cf([0x2a])))[_0xf05cf([0x6d,0x61,0x70])](_0x505fbf=>_0x505fbf[_0xf05cf([0x73,0x70,0x6c,0x69,0x74])](_0xf05cf([0x2e])))[_0xf05cf([0x73,0x6f,0x6d,0x65])](_0x4e1c62=>_0x4447bd[_0xf05cf([0x65,0x76,0x65,0x72,0x79])]((_0x122200,_0x3d98fa)=>_0x4e1c62[_0x3d98fa]===_0x122200||_0x4e1c62[_0x3d98fa]===_0xf05cf([0x2a])));}function _0x5e2584(){return _0x4dd461&&_0x12ad40?new window[(_0xf05cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55d31d,_0x406ad7)=>{_0x4dd461[_0xf05cf([0x74,0x68,0x65,0x6e])](_0x55d31d,_0x406ad7),_0x12ad40[_0xf05cf([0x74,0x68,0x65,0x6e])](_0x4fd059=>{_0x4fd059!=_0xf05cf([0x56,0x61,0x6c,0x69,0x64])&&_0x55d31d(_0x4fd059);},_0x406ad7);}):_0x4dd461||_0x12ad40||_0xf05cf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1747f6(_0xa724d6,_0xc0b9df){return new window[(_0xf05cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b93b1=>{if(_0x216531())return _0x1b93b1(_0xf05cf([0x56,0x61,0x6c,0x69,0x64]));_0x4828a9(),_0x4fdd81[_0xf05cf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf05cf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d496b=!0x1;const _0x57e5aa=_0x1a639f();function _0x3a022e(_0x5b4043){return!!_0x5b4043&&(typeof _0x5b4043===_0xf05cf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5b4043===_0xf05cf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5b4043[_0xf05cf([0x74,0x68,0x65,0x6e])]===_0xf05cf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5b4043[_0xf05cf([0x63,0x61,0x74,0x63,0x68])]===_0xf05cf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c44f6(_0x77d909){_0x526f8e(_0x77d909)[_0xf05cf([0x74,0x68,0x65,0x6e])](_0x4a2be3=>{if(!_0x4a2be3||_0x4a2be3[_0xf05cf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf05cf([0x6f,0x6b]))return _0xf05cf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a057b(_0x438f80(_0x57e5aa+_0xc0b9df))!=_0x4a2be3[_0xf05cf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf05cf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf05cf([0x56,0x61,0x6c,0x69,0x64]);})[_0xf05cf([0x74,0x68,0x65,0x6e])](_0x54e49c=>(_0x7507de(),_0x54e49c),()=>{const _0x454f4f=_0x1950ee();return null==_0x454f4f?(_0x7507de(),_0xf05cf([0x56,0x61,0x6c,0x69,0x64])):_0xf05cf(_0x59360e-_0x454f4f>(0x8ae9f76^_0x13d0d9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf05cf([0x74,0x68,0x65,0x6e])](_0x1b93b1)[_0xf05cf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1b93b1(_0xf05cf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x15ebc4=0x2c94f5f6^_0x13d0d9;function _0x7507de(){const _0xff6e88=_0xf05cf([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a057b(_0x438f80(_0xa724d6)),_0x5d8d4b=_0x3116a0(_0x1a057b(window[_0xf05cf([0x4d,0x61,0x74,0x68])][_0xf05cf([0x63,0x65,0x69,0x6c])](_0x59360e/_0x15ebc4)));window[_0xf05cf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf05cf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xff6e88,_0x5d8d4b);}function _0x1950ee(){const _0x10b238=_0xf05cf([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a057b(_0x438f80(_0xa724d6)),_0x2e8d37=window[_0xf05cf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf05cf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10b238);return _0x2e8d37?window[_0xf05cf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3116a0(_0x2e8d37),0x10)*_0x15ebc4:null;}function _0x526f8e(_0x466dc5){return new window[(_0xf05cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5d1a9d,_0x21d3ca)=>{_0x466dc5[_0xf05cf([0x74,0x68,0x65,0x6e])](_0x5d1a9d,_0x21d3ca),window[_0xf05cf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21d3ca,0x2ca3cfb6^_0x13d0d9);});}}_0x4fdd81[_0xf05cf([0x6f,0x6e])](_0xf05cf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c184b,_0x1678a7)=>{if(_0x1678a7[0x0]!=_0xa724d6)return _0x1b93b1(_0xf05cf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1678a7[0x1]={..._0x1678a7[0x1],[_0xf05cf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x57e5aa};},{[_0xf05cf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf05cf([0x68,0x69,0x67,0x68])}),_0x4fdd81[_0xf05cf([0x6f,0x6e])](_0xf05cf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2f70fa=>{_0x3a022e(_0x2f70fa[_0xf05cf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d496b=!0x0,_0x1c44f6(_0x2f70fa[_0xf05cf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf05cf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf05cf([0x6c,0x6f,0x77])}),_0x2d781c[_0xf05cf([0x74,0x68,0x65,0x6e])](()=>{_0x2d496b||_0x1b93b1(_0xf05cf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x216531(){return _0x4fdd81[_0xf05cf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf05cf([0x76,0x69,0x65,0x77])][_0xf05cf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf05cf([0x61,0x75,0x74,0x6f]);}function _0x4828a9(){_0x4fdd81[_0xf05cf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf05cf([0x76,0x69,0x65,0x77])][_0xf05cf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf05cf([0x61,0x75,0x74,0x6f]);}}function _0x19e392(_0x17f3e6){const _0x588b76=[new window[(_0xf05cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x318be8=>setTimeout(_0x318be8,0x2cab25ba^_0x13d0d9)),_0x2d781c[_0xf05cf([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf05cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d8ac3=>{let _0x4c1604=0x0;_0x4fdd81[_0xf05cf([0x6d,0x6f,0x64,0x65,0x6c])][_0xf05cf([0x6f,0x6e])](_0xf05cf([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38ac48,_0x19af57)=>{_0x19af57[0x0][_0xf05cf([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4c1604++,_0x4c1604==(0x2ca21a8e^_0x13d0d9)&&(_0x2d8ac3(),_0x38ac48[_0xf05cf([0x6f,0x66,0x66])]());});}))];return window[_0xf05cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf05cf([0x72,0x61,0x63,0x65])](_0x588b76)[_0xf05cf([0x74,0x68,0x65,0x6e])](()=>_0x17f3e6);}async function _0x2d4b4d(){await _0x2d781c,_0x4fdd81[_0xf05cf([0x6d,0x6f,0x64,0x65,0x6c])][_0xf05cf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c9443,_0x4fdd81[_0xf05cf([0x6d,0x6f,0x64,0x65,0x6c])][_0xf05cf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c9443,_0x4fdd81[_0xf05cf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf05cf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x459478(_0x2e3ee3){const _0x2d5beb=_0x39fdd5();_0x4fdd81[_0x2d5beb]=_0xf05cf([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2e3ee3,_0x2e3ee3!=_0xf05cf([0x56,0x61,0x6c,0x69,0x64])&&_0x2d4b4d();}function _0x39fdd5(){const _0x55dbbe=window[_0xf05cf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf05cf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf05cf([0x6e,0x6f,0x77])]())[_0xf05cf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf05cf([0x2e]),'');let _0x5cac6e=_0xf05cf([0x4b]);for(let _0xdd7b6e=0x0;_0xdd7b6e<_0x55dbbe[_0xf05cf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdd7b6e+=0x2){let _0x3f7afa=window[_0xf05cf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55dbbe[_0xf05cf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xdd7b6e,_0xdd7b6e+0x2));_0x3f7afa>=_0x15fd6e[_0xf05cf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f7afa-=_0x15fd6e[_0xf05cf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5cac6e+=_0x15fd6e[_0x3f7afa];}return _0x5cac6e;}function _0xf6c264(){const _0x5b5210=_0x2b1143[_0xf05cf([0x73,0x70,0x6c,0x69,0x74])](_0xf05cf([0x2e]));if(0x3!=_0x5b5210[_0xf05cf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1dca7a(_0x5b5210[0x1]);function _0x1dca7a(_0x4f5e91){const _0x1f656f=_0x4520c7(_0x4f5e91);return _0x1f656f&&_0x160f4d()?_0x1f656f:null;function _0x160f4d(){const _0x4ccea6=_0x1f656f[_0xf05cf([0x6a,0x74,0x69])],_0x8ee94f=window[_0xf05cf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ccea6[_0xf05cf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ccea6[_0xf05cf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2bab97={..._0x1f656f,[_0xf05cf([0x6a,0x74,0x69])]:_0x4ccea6[_0xf05cf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ccea6[_0xf05cf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2bab97[_0xf05cf([0x76,0x63])],_0x438f80(_0x2bab97)==_0x8ee94f;}}}async function _0x2195d1(){let _0x584327=!0x0;try{const _0x3419e9=_0x2b1143[_0xf05cf([0x73,0x70,0x6c,0x69,0x74])](_0xf05cf([0x2e])),[_0x2c31d0,_0x356db1,_0x23d64d]=_0x3419e9;return _0x1ca6dc(_0x2c31d0),await _0x1ce94c(_0x2c31d0,_0x356db1,_0x23d64d),_0x584327;}catch{return!0x1;}function _0x1ca6dc(_0x1e76ce){const _0xb3ff54=_0x4520c7(_0x1e76ce);_0xb3ff54&&_0xb3ff54[_0xf05cf([0x61,0x6c,0x67])]==_0xf05cf([0x45,0x53,0x32,0x35,0x36])||(_0x584327=!0x1);}async function _0x1ce94c(_0x2d19c9,_0x2d9139,_0xdbbaae){const _0xe55e91=window[_0xf05cf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf05cf([0x66,0x72,0x6f,0x6d])](_0x212f52(_0xdbbaae),_0x1f8262=>_0x1f8262[_0xf05cf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47fe30=new window[(_0xf05cf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf05cf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2d19c9+_0xf05cf([0x2e])+_0x2d9139),_0x647877=window[_0xf05cf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf05cf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x647877)return;const _0x39bf3a=await _0x647877[_0xf05cf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf05cf([0x6a,0x77,0x6b]),_0x285f2b,{[_0xf05cf([0x6e,0x61,0x6d,0x65])]:_0xf05cf([0x45,0x43,0x44,0x53,0x41]),[_0xf05cf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf05cf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf05cf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x647877[_0xf05cf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf05cf([0x6e,0x61,0x6d,0x65])]:_0xf05cf([0x45,0x43,0x44,0x53,0x41]),[_0xf05cf([0x68,0x61,0x73,0x68])]:{[_0xf05cf([0x6e,0x61,0x6d,0x65])]:_0xf05cf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x39bf3a,_0xe55e91,_0x47fe30)||(_0x584327=!0x1);}}function _0x4520c7(_0x5ca9ea){return _0x5ca9ea[_0xf05cf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf05cf([0x65,0x79]))?JSON[_0xf05cf([0x70,0x61,0x72,0x73,0x65])](_0x212f52(_0x5ca9ea)):null;}function _0x212f52(_0xc52e16){return window[_0xf05cf([0x61,0x74,0x6f,0x62])](_0xc52e16[_0xf05cf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf05cf([0x2b]))[_0xf05cf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf05cf([0x2f])));}function _0x438f80(_0x3b97e1){let _0x46fa26=0x1505;function _0x5bf505(_0x7b8f95){for(let _0x375e2=0x0;_0x375e2<_0x7b8f95[_0xf05cf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x375e2++){const _0x5c48bf=_0x7b8f95[_0xf05cf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x375e2);_0x46fa26=(_0x46fa26<<0x5)+_0x46fa26+_0x5c48bf,_0x46fa26&=_0x46fa26;}}function _0x396bc1(_0x100b93){Array[_0xf05cf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x100b93)?_0x100b93[_0xf05cf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x396bc1):_0x100b93&&typeof _0x100b93==_0xf05cf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf05cf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x100b93)[_0xf05cf([0x73,0x6f,0x72,0x74])]()[_0xf05cf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xf2fe4c,_0x2cfb01])=>{_0x5bf505(_0xf2fe4c),_0x396bc1(_0x2cfb01);}):_0x5bf505(window[_0xf05cf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x100b93));}return _0x396bc1(_0x3b97e1),_0x46fa26>>>0x0;}function _0x1a057b(_0x573304){return _0x573304[_0xf05cf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf05cf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf05cf([0x30]));}function _0x3116a0(_0x43e391){return _0x43e391[_0xf05cf([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf05cf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf05cf([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c9443(){}function _0xf05cf(_0x55262e){const _0x4cabaf=_0x1ed5;return _0x55262e[_0x4cabaf(0x238)](_0x11c1e1=>String[_0x4cabaf(0x216)](_0x11c1e1))[_0x4cabaf(0x210)]('');}_0x459478(await _0x5e51ce());}(this);}[_0x9ab4a(0x1ea)](){const _0x1f7079=_0x9ab4a,_0x19ef3f=this[_0x1f7079(0x20b)][_0x1f7079(0x1ff)][_0x1f7079(0x22a)];_0x19ef3f[_0x1f7079(0x21d)](_0x1f7079(0x208))&&_0x19ef3f[_0x1f7079(0x215)](_0x1f7079(0x208),{'allowAttributes':[_0x1f7079(0x200)]}),_0x19ef3f[_0x1f7079(0x21d)](_0x1f7079(0x1fb))&&_0x19ef3f[_0x1f7079(0x215)](_0x1f7079(0x1fb),{'allowAttributes':[_0x1f7079(0x200)]});}[_0x9ab4a(0x22f)](){const _0x41b02e=_0x9ab4a,_0x252f91=this[_0x41b02e(0x20b)];_0x252f91[_0x41b02e(0x219)][_0x41b02e(0x217)](_0x41b02e(0x23e))[_0x41b02e(0x21a)]({'model':_0x41b02e(0x200),'view':_0x41b02e(0x21f)}),_0x252f91[_0x41b02e(0x219)][_0x41b02e(0x217)](_0x41b02e(0x214))[_0x41b02e(0x204)]({'model':{'key':_0x41b02e(0x200),'value':_0x395fbe=>_0x395fbe[_0x41b02e(0x1ed)](_0x41b02e(0x21f))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1c196e=_0x252f91[_0x41b02e(0x239)][_0x41b02e(0x229)](_0x41b02e(0x235));_0x1c196e&&this[_0x41b02e(0x1fa)](_0x1c196e,_0x41b02e(0x1f3),(_0x4e2721,[_0x55758f,_0x2bd711])=>{const _0x25ece7=_0x41b02e;_0x55758f[_0x25ece7(0x230)](_0x25ece7(0x200),_0x2bd711);});}[_0x9ab4a(0x20c)](){const _0x145514=_0x9ab4a,_0x467a32=this[_0x145514(0x20b)][_0x145514(0x22e)][_0x145514(0x229)](_0x145514(0x236))||{},_0x20e72f=this[_0x145514(0x20b)][_0x145514(0x22e)][_0x145514(0x229)](_0x145514(0x224))||'';this[_0x145514(0x20a)]=_0xe08006(_0x45e45a[_0x145514(0x1e9)],_0x145514(0x1ee),{..._0x467a32,'pubkey':_0x20e72f,'ctx-name':_0x145514(0x1f7),'sourceList':'','imgOnly':_0x145514(0x207),'removeCopyright':_0x145514(0x207),'localeName':this[_0x145514(0x20b)][_0x145514(0x23a)][_0x145514(0x202)],'externalSourcesEmbedCss':_0x145514(0x228)}),this[_0x145514(0x20a)][_0x145514(0x203)]=_0x236431=>{const _0x18c4ae=_0x145514;if(_0x18c4ae(0x23b)==_0x236431)return _0x18c4ae(0x237);},_0x45e45a[_0x145514(0x1e9)][_0x145514(0x220)][_0x145514(0x225)](this[_0x145514(0x20a)]);}[_0x9ab4a(0x20d)](){const _0xe4b860=_0x9ab4a;this[_0xe4b860(0x211)]=_0xe08006(_0x45e45a[_0xe4b860(0x1e9)],_0xe4b860(0x22d),{'ctx-name':_0xe4b860(0x1f7)}),_0x45e45a[_0xe4b860(0x1e9)][_0xe4b860(0x220)][_0xe4b860(0x225)](this[_0xe4b860(0x211)]);}[_0x9ab4a(0x1f9)](){const _0x3bb08f=_0x9ab4a,_0x81fc77=this[_0x3bb08f(0x20b)][_0x3bb08f(0x239)][_0x3bb08f(0x229)](_0x3bb08f(0x222));_0x81fc77&&this[_0x3bb08f(0x1fa)](_0x81fc77,_0x3bb08f(0x21e),()=>{const _0x2a6599=_0x3bb08f,_0xc8782d=this[_0x2a6599(0x20b)][_0x2a6599(0x1ff)][_0x2a6599(0x1e9)][_0x2a6599(0x23d)][_0x2a6599(0x20e)]();_0xc8782d&&_0xc8782d[_0x2a6599(0x1ed)](_0x2a6599(0x200))&&this[_0x2a6599(0x20b)][_0x2a6599(0x218)][_0x2a6599(0x209)][_0x2a6599(0x1f1)](_0x2a6599(0x1ec),()=>{const _0x20b54c=_0x2a6599;_0x37d5d0(this[_0x20b54c(0x20b)],_0xc8782d);});});const _0x113954=this[_0x3bb08f(0x20b)][_0x3bb08f(0x239)][_0x3bb08f(0x229)](_0x3bb08f(0x1eb));_0x113954&&this[_0x3bb08f(0x1fa)](_0x113954,_0x3bb08f(0x21e),()=>{const _0x2cada2=_0x3bb08f,_0x3f75ed=this[_0x2cada2(0x20b)][_0x2cada2(0x1ff)][_0x2cada2(0x1e9)][_0x2cada2(0x23d)][_0x2cada2(0x20e)]();_0x3f75ed&&_0x3f75ed[_0x2cada2(0x1ed)](_0x2cada2(0x200))&&this[_0x2cada2(0x20b)][_0x2cada2(0x218)][_0x2cada2(0x209)][_0x2cada2(0x1f1)](_0x2cada2(0x1ec),()=>{const _0x29e9e2=_0x2cada2;_0x37d5d0(this[_0x29e9e2(0x20b)],_0x3f75ed);});});}}