@ckeditor/ckeditor5-uploadcare 45.1.0-alpha.2 → 45.1.0-alpha.3

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 _0x1216db,Command as _0x566b9a}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1966ec,IconGooglePhotos as _0x2ce281,IconGoogleDrive as _0x381efa,IconFacebook as _0x246508,IconDropbox as _0x5500ff,IconUploadcareLink as _0x3fe24f,IconUploadcareImageUpload as _0xaf9236,IconError as et,IconUploadcareImageEdit as _0x493b43}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x50e41f,MenuBarMenuListItemButtonView as _0x422e7c,View as _0xbcde45,FocusCycler as _0x59b821,Dialog as _0x2e6829,DialogViewPosition as _0x4e3fb1,SpinnerView as _0x1d2eec,IconView as at,Notification as _0x3c8fee}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3be67e,DomEmitterMixin as _0x2e263f,global as _0x39abb1,getAncestors as _0x4cb2bd,ObservableMixin as _0xee8d54,createElement as _0xe1a070,uid as _0x53be81}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x447259}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5beac7,info as _0x5ed298}from'@uploadcare/upload-client';import*as _0x5ea66a from'@uploadcare/file-uploader';var o=function(_0x3501f3){return _0x3501f3['Local']='local',_0x3501f3['URL']='url',_0x3501f3['Dropbox']='dropbox',_0x3501f3['GDrive']='gdrive',_0x3501f3['Facebook']='facebook',_0x3501f3['GPhotos']='gphotos',_0x3501f3['OneDrive']='onedrive',_0x3501f3;}({});function _(_0x18e28f,_0x350a2d,_0x57fdff){const t=_0x18e28f['t'],_0x437a4d=_0x18e28f['t'];switch(_0x350a2d){case o['Local']:return{'text':_0x437a4d('Insert'===_0x57fdff?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x437a4d('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x57fdff?_0x437a4d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x437a4d('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x57fdff?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x57fdff?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x57fdff?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x57fdff?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x57fdff?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x350a2d;}}class e extends _0x1216db{['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 _0x3978dc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f235b;for(const _0x32debc in _0x3978dc){const _0xbcc655=_0x32debc,_0xd7816c=_0x3978dc[_0xbcc655];if('uploadcareLicenseKeyValid'==_0xd7816c||'uploadcareLicenseKeyInvalid'==_0xd7816c||'uploadcareLicenseKeyExpired'==_0xd7816c||'uploadcareLicenseKeyDomainLimit'==_0xd7816c||'uploadcareLicenseKeyNotAllowed'==_0xd7816c||'uploadcareLicenseKeyEvaluationLimit'==_0xd7816c||'uploadcareLicenseKeyTrialLimit'==_0xd7816c||'uploadcareLicenseKeyUsageLimit'==_0xd7816c){delete _0x3978dc[_0xbcc655],_0x1f235b=_0xd7816c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1f235b&&_0x3978dc['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1f235b&&_0x3978dc['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1f235b&&_0x3978dc['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1f235b&&_0x3978dc['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1f235b&&_0x3978dc['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1f235b&&_0x3978dc['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1f235b&&_0x3978dc['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x35e915}=this,_0x3d8bf0=_0x35e915['commands']['get']('uploadcare');if(!_0x3d8bf0)return;const _0x28dfc0=this['_normalizeConfigSourceList'](_0x35e915['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x571290,_0x27c606)=>{const _0x211085=this['_getIntegrationKey'](_0x27c606['type']);return _0x571290[_0x211085]||(_0x571290[_0x211085]=[]),_0x571290[_0x211085]['push'](_0x27c606),_0x571290;},{});_0x35e915['plugins']['has']('ImageInsertUI')&&_0x35e915['commands']['get']('uploadcare')&&Object['entries'](_0x28dfc0)['forEach'](([_0xfc5e3,_0x46ec58])=>{_0x35e915['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xfc5e3,'observable':()=>_0x3d8bf0,'buttonViewCreator':()=>this['_createToolbarButton'](_0x46ec58),'formViewCreator':()=>this['_createDropdownButtons'](_0x46ec58),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x46ec58),'override':'assetManager'!==_0xfc5e3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x296b23){const {locale:_0xe09a5c}=this['editor'];return _0x296b23['map'](_0x2a1ecb=>{const _0x81c85e=_(_0xe09a5c,_0x2a1ecb,'Insert');switch(_0x2a1ecb){case o['Local']:return{'icon':_0xaf9236,'type':o['Local'],..._0x81c85e};case o['URL']:return{'icon':_0x3fe24f,'type':o['URL'],..._0x81c85e};case o['Dropbox']:return{'icon':_0x5500ff,'type':o['Dropbox'],..._0x81c85e};case o['Facebook']:return{'icon':_0x246508,'type':o['Facebook'],..._0x81c85e};case o['GDrive']:return{'icon':_0x381efa,'type':o['GDrive'],..._0x81c85e};case o['GPhotos']:return{'icon':_0x2ce281,'type':o['GPhotos'],..._0x81c85e};case o['OneDrive']:return{'icon':_0x1966ec,'type':o['OneDrive'],..._0x81c85e};}});}['_getIntegrationKey'](_0x14271b){switch(_0x14271b){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2ef723,_0xbf9b29){const _0x4629e2=this['editor'],_0x5dfe30=new _0x2ef723(_0x4629e2['locale']),_0x296fbe=_0x4629e2['commands']['get']('uploadcare');return _0x5dfe30['bind']('isEnabled')['to'](_0x296fbe),_0x5dfe30['on']('execute',()=>{_0x296fbe['execute'](_0xbf9b29);}),_0x5dfe30;}['_createToolbarButton'](_0x31b82e){const {locale:_0x1eed50}=this['editor'],_0x56661c=this['editor']['plugins']['get']('ImageInsertUI'),_0x28b318=_0x31b82e[0x0],_0x756277=this['_createButton'](_0x50e41f,_0x28b318['type']);return _0x756277['icon']=_0x28b318['icon'],_0x756277['bind']('label')['to'](_0x56661c,'isImageSelected',_0x552eb6=>_(_0x1eed50,_0x28b318['type'],_0x552eb6?'Replace':'Insert')['text']),_0x756277['tooltip']=!0x0,_0x756277;}['_createDropdownButtons'](_0x54badc){const {locale:_0x22fd12}=this['editor'],_0x2b3ecd=this['editor']['plugins']['get']('ImageInsertUI');return _0x54badc['map'](_0x539773=>{const _0x438ad1=this['_createButton'](_0x50e41f,_0x539773['type']);return _0x438ad1['withText']=!0x0,_0x438ad1['icon']=_0x539773['icon'],_0x438ad1['bind']('label')['to'](_0x2b3ecd,'isImageSelected',_0x1e4749=>_(_0x22fd12,_0x539773['type'],_0x1e4749?'Replace':'Insert')['text']),_0x438ad1;});}['_createMenuBarButtons'](_0x28da15){return _0x28da15['map'](_0xaea0c0=>{const _0x1c4032=this['_createButton'](_0x422e7c,_0xaea0c0['type']);return _0x1c4032['icon']=_0xaea0c0['icon'],_0x1c4032['label']=_0xaea0c0['shortText'],_0x1c4032;});}}class q extends _0xbcde45{['focusTracker'];['focusCycler'];constructor(_0xa90dc1){super(_0xa90dc1),this['focusTracker']=new _0x3be67e(),this['focusCycler']=new _0x59b821({'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(_0x9a1c8e){super(_0x9a1c8e),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(_0x52fc7f,_0xc16ef2){const _0x1c1258=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3a9320=>_0x3a9320<=_0xc16ef2)['map'](_0x2f203f=>_0x52fc7f['replace'](/\/$/,'')+'/-/resize/'+_0x2f203f+'x/\x20'+_0x2f203f+'w');return{'imageFallbackUrl':_0x52fc7f,'imageSources':[{'srcset':_0x1c1258['join'](',\x20'),'sizes':'(max-width:\x20'+_0xc16ef2+'px)\x20100vw,\x20'+_0xc16ef2+'px','type':'image/webp'}]};}function A(_0x13db47,_0x4b1e1c,_0x5a1553){const _0x3061a0=_0x13db47['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3061a0?parseInt(_0x3061a0[0x1],0xa):_0x4b1e1c,'height':_0x3061a0?parseInt(_0x3061a0[0x2],0xa):_0x5a1553};}function m(_0x320a21,_0x4a8032){const _0x36b61d=Object['create'](_0x2e263f),_0x5d98d9=_0x320a21['plugins']['get']('ImageUtils'),_0x13aee0=_0x320a21['editing']['mapper']['toViewElement'](_0x4a8032),_0x4f5a57=_0x5d98d9['findViewImgElement'](_0x13aee0),_0x5ef680=_0x320a21['editing']['view']['domConverter']['viewToDom'](_0x4f5a57),_0x23b2eb=_0x4a8032['getAttribute']('width'),_0x27ce57=_0x4a8032['getAttribute']('height'),_0x1c082c='image-processing';_0x320a21['editing']['view']['change'](_0xadc138=>{_0xadc138['addClass'](_0x1c082c,_0x13aee0),_0xadc138['setStyle']('aspect-ratio',_0x23b2eb+'/'+_0x27ce57,_0x4f5a57);}),_0x36b61d['listenTo'](_0x5ef680,'load',()=>{_0x36b61d['stopListening'](_0x5ef680,'load'),_0x320a21['editing']['view']['change'](_0x34efc6=>{_0x34efc6['removeClass'](_0x1c082c,_0x13aee0),_0x34efc6['removeStyle']('aspect-ratio',_0x4f5a57);});});}function V(_0x2e12ec){if(Array['isArray'](_0x2e12ec)){const _0x3900d1=_0x2e12ec['map'](V);return _0x240c7e=>_0x3900d1['some'](_0x4cfbc7=>_0x4cfbc7(_0x240c7e));}if('origin'==_0x2e12ec){const _0x46e2c9=_0x39abb1['window']['location']['origin'];return _0x3d4dc1=>new URL(_0x3d4dc1,_0x39abb1['document']['baseURI'])['origin']==_0x46e2c9;}return'function'==typeof _0x2e12ec?_0x2e12ec:_0x2e12ec instanceof RegExp?_0x4c56a4=>!(!_0x4c56a4['match'](_0x2e12ec)&&!_0x4c56a4['replace'](/^https?:\/\//,'')['match'](_0x2e12ec)):()=>!0x1;}function F(_0x54e3b6,_0x18a778){return _0x4cb2bd(_0x54e3b6['target'])['includes'](_0x18a778);}class l extends/* #__PURE__ -- @preserve */
24
- _0xee8d54(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x22fe2e,_0x59b169,_0x437ac8){super(),this['_editor']=_0x22fe2e,this['_editing']=_0x59b169,this['_dialog']=_0x22fe2e['plugins']['get'](_0x2e6829),this['_api']=_0x59b169['ctxElement']['getAPI'](),this['_type']=_0x437ac8,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:_0x45b10a,model:_0xba5aa5}=this['_editor'],_0xa3f160=_0xba5aa5['document']['selection']['getSelectedElement'](),_0x4023a3=_0xa3f160&&(_0xa3f160['is']('element','imageBlock')||_0xa3f160['is']('element','imageInline'));this['_formView']=new S(_0x45b10a),this['_dialog']['show']({'id':'uploadCare','icon':_0xaf9236,'title':_(_0x45b10a,this['_type'],_0x4023a3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4e3fb1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x396148=>!F(_0x396148,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x9c389e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3ccfd9=>{const _0x358de3=_0x9c389e['length'];for(const _0x224382 of _0x9c389e){const _0x54f454=_0x224382===_0x9c389e[_0x358de3-0x1],{cdnUrl:_0x2c3c3e,fileInfo:_0x5cb797}=_0x224382;if(!_0x2c3c3e||!_0x5cb797)continue;const {width:_0x17fa16,height:_0x28337c}=_0x5cb797['imageInfo'],_0xb24df4=A(_0x2c3c3e,_0x17fa16,_0x28337c),_0x4ca9d8=E(_0x2c3c3e,_0xb24df4['width']),_0x236228={'id':_0x5cb797['uuid'],'type':'image','attributes':{'imageDimension':_0xb24df4,..._0x4ca9d8}};this['_insertAsset'](_0x236228,_0x54f454,_0x3ccfd9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x12e5db=>{'idle'===_0x12e5db['detail']['status']&&!_0x12e5db['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x45c3a1,_0xbf8f2d,_0x34c862){const _0x2f7665=this['_editor']['model']['document']['selection'],_0x4c96d8=_0x2f7665['getSelectedElement'](),_0x10defd=!(!_0x4c96d8||!_0x4c96d8['is']('element','imageInline'));_0x34c862['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x45c3a1,_0x10defd),_0xbf8f2d||_0x34c862['setSelection'](_0x2f7665['getLastPosition']());}['_insertImage'](_0x23bd54,_0x366d64){const _0x3026f7=this['_editor'],{imageDimension:_0x21db11,imageFallbackUrl:_0x17a92a,imageSources:_0x3dc9e2}=_0x23bd54['attributes'];_0x3026f7['execute']('insertImage',{'imageType':_0x366d64?'imageInline':null,'source':{'uploadcareImageId':_0x23bd54['id'],'src':_0x17a92a,'sources':_0x3dc9e2,..._0x21db11}});}}class n extends _0x566b9a{['_editing'];['_controller']=null;static get['requires'](){return[_0x2e6829,i];}constructor(_0xd05ae7){super(_0xd05ae7),this['_editing']=_0xd05ae7['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xcb2b69){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0xcb2b69);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x49ad1e,publicKey:_0x25e08a,signal:_0x4cdd4c,onProgress:_0x14c24d}){return _0x5beac7(_0x49ad1e,{'publicKey':_0x25e08a,'store':'auto','signal':_0x4cdd4c,'onProgress':_0x14c24d});}static['getInfo'](_0x174e20,_0x5dd04f){return _0x5ed298(_0x174e20,_0x5dd04f);}}class p extends _0x1216db{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x447259,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x44a563=this['editor'];if(!!!_0x44a563['config']['get']('uploadcare'))return;_0x44a563['plugins']['get'](_0x447259)['createUploadAdapter']=_0x3f1812=>new x(_0x3f1812,_0x44a563),_0x44a563['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xea027c,{imageElement:_0x302c11,data:_0x8c65c2})=>{_0x44a563['model']['change'](_0x150348=>{_0x150348['setAttribute']('uploadcareImageId',_0x8c65c2['uploadcareImageId'],_0x302c11);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x3c7d9b,_0x11047c){this['loader']=_0x3c7d9b,this['editor']=_0x11047c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4a07d2=this['editor']['config']['get']('uploadcare.pubkey'),_0x154412=await this['loader']['file'];return C['upload']({'file':_0x154412,'publicKey':_0x4a07d2,'signal':this['controller']['signal'],'onProgress':_0x2f4dd3=>{_0x2f4dd3&&_0x2f4dd3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2f4dd3['value']);}})['then'](async _0x511dec=>{const {imageFallbackUrl:_0x33090d,imageSources:_0x5d613b}=E(_0x511dec['cdnUrl'],_0x511dec['imageInfo']['width']);return{'uploadcareImageId':_0x511dec['uuid'],'default':_0x33090d,'sources':_0x5d613b};})['catch'](()=>{const _0x4c9441=t('Cannot\x20upload\x20file:')+('\x20'+_0x154412['name']+'.');return Promise['reject'](_0x4c9441);});}['abort'](){this['controller']['abort']();}}class i extends _0x1216db{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x2e6829];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x442cef=this['editor'];_0x442cef['commands']['add']('uploadcare',new n(_0x442cef));}['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 _0x2a5ae5=_0x39abb1['document']['querySelector']('input[uploadcare-file-input]');_0x2a5ae5&&_0x2a5ae5['remove']();}),async function(_0x5721a5){const _0x51cfae=_0x2cae23([0x4e,0x46,0x77,0x5a,0x67,0x59,0x73,0x4d,0x37,0x75,0x4c,0x70,0x31,0x62,0x49,0x57,0x69,0x44,0x35,0x78,0x55,0x6e,0x41,0x6b,0x38,0x33,0x32,0x53,0x48,0x63,0x52,0x39,0x30,0x6a,0x58,0x54,0x71,0x4f,0x68,0x65,0x64,0x36,0x47,0x61,0x66,0x74,0x34,0x79,0x56,0x76,0x50,0x42,0x43,0x4b,0x4a,0x7a,0x51,0x72,0x6d,0x6f,0x6c,0x45]),_0x9efcf5=0x23c72efe,_0x54489b=0x23c049a6^_0x9efcf5,_0x3a015b=window[_0x2cae23([0x44,0x61,0x74,0x65])][_0x2cae23([0x6e,0x6f,0x77])](),_0x4ff2a5=_0x5721a5[_0x2cae23([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47e327=new window[(_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c5866=>{_0x4ff2a5[_0x2cae23([0x6f,0x6e,0x63,0x65])](_0x2cae23([0x72,0x65,0x61,0x64,0x79]),_0x5c5866);}),_0xebfbe0={[_0x2cae23([0x6b,0x74,0x79])]:_0x2cae23([0x45,0x43]),[_0x2cae23([0x75,0x73,0x65])]:_0x2cae23([0x73,0x69,0x67]),[_0x2cae23([0x63,0x72,0x76])]:_0x2cae23([0x50,0x2d,0x32,0x35,0x36]),[_0x2cae23([0x78])]:_0x2cae23([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]),[_0x2cae23([0x79])]:_0x2cae23([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]),[_0x2cae23([0x61,0x6c,0x67])]:_0x2cae23([0x45,0x53,0x32,0x35,0x36])},_0x23490a=_0x4ff2a5[_0x2cae23([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2cae23([0x67,0x65,0x74])](_0x2cae23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2c998e(){let _0x23df1b,_0x25ee3c=null,_0x1d986c=null;try{if(_0x23490a==_0x2cae23([0x47,0x50,0x4c]))return _0x2cae23([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x23df1b=_0x2fb725(),!_0x23df1b)return _0x2cae23([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x23df1b[_0x2cae23([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1d986c=_0x107ce7(_0x23df1b[_0x2cae23([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x23df1b[_0x2cae23([0x6a,0x74,0x69])])),await _0x47bf36()?_0x2a1a5f()?_0x237965()?_0x2cae23([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2c4e05()?(_0x23df1b[_0x2cae23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cae23([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x25ee3c=_0x556228(_0x2cae23([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x23df1b[_0x2cae23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cae23([0x74,0x72,0x69,0x61,0x6c])&&(_0x25ee3c=_0x556228(_0x2cae23([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5dd6d0()):_0x2cae23([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2cae23([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2cae23([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2f4eae){return _0x2cae23([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x237965(){const _0x53a51a=[_0x2cae23([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2cae23([0x74,0x72,0x69,0x61,0x6c])][_0x2cae23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23df1b[_0x2cae23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a015b/0x3e8:0xe10*_0x54489b;return _0x23df1b[_0x2cae23([0x65,0x78,0x70])]<_0x53a51a;}function _0x2a1a5f(){const _0x156d59=_0x23df1b[_0x2cae23([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x156d59&&(!!_0x156d59[_0x2cae23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cae23([0x2a]))||!!_0x156d59[_0x2cae23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cae23([0x55,0x50,0x4c,0x43])));}function _0x2c4e05(){const _0x24c61e=_0x23df1b[_0x2cae23([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24c61e||0x0==_0x24c61e[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f363a}=new URL(window[_0x2cae23([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x24c61e[_0x2cae23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f363a))return!0x0;const _0x3b1b88=_0x4f363a[_0x2cae23([0x73,0x70,0x6c,0x69,0x74])](_0x2cae23([0x2e]));return _0x24c61e[_0x2cae23([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40d152=>_0x40d152[_0x2cae23([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cae23([0x2a])))[_0x2cae23([0x6d,0x61,0x70])](_0x32b664=>_0x32b664[_0x2cae23([0x73,0x70,0x6c,0x69,0x74])](_0x2cae23([0x2e])))[_0x2cae23([0x73,0x6f,0x6d,0x65])](_0x5666f3=>_0x3b1b88[_0x2cae23([0x65,0x76,0x65,0x72,0x79])]((_0x244804,_0x2afde1)=>_0x5666f3[_0x2afde1]===_0x244804||_0x5666f3[_0x2afde1]===_0x2cae23([0x2a])));}function _0x5dd6d0(){return _0x25ee3c&&_0x1d986c?new window[(_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ff125,_0x29f74f)=>{_0x25ee3c[_0x2cae23([0x74,0x68,0x65,0x6e])](_0x2ff125,_0x29f74f),_0x1d986c[_0x2cae23([0x74,0x68,0x65,0x6e])](_0x4d7341=>{_0x4d7341!=_0x2cae23([0x56,0x61,0x6c,0x69,0x64])&&_0x2ff125(_0x4d7341);},_0x29f74f);}):_0x25ee3c||_0x1d986c||_0x2cae23([0x56,0x61,0x6c,0x69,0x64]);}}function _0x107ce7(_0x1bc13f,_0x5f3ff8){return new window[(_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e04a9=>{if(_0xd119fe())return _0x3e04a9(_0x2cae23([0x56,0x61,0x6c,0x69,0x64]));_0x3a2a31(),_0x4ff2a5[_0x2cae23([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2cae23([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1633e4=!0x1;const _0x33c1db=_0x53be81();function _0x2e3f1e(_0x321cee){return!!_0x321cee&&(typeof _0x321cee===_0x2cae23([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x321cee===_0x2cae23([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x321cee[_0x2cae23([0x74,0x68,0x65,0x6e])]===_0x2cae23([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x321cee[_0x2cae23([0x63,0x61,0x74,0x63,0x68])]===_0x2cae23([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x39b709(_0x2a70c1){_0x26590e(_0x2a70c1)[_0x2cae23([0x74,0x68,0x65,0x6e])](_0x4711d9=>{if(!_0x4711d9||_0x4711d9[_0x2cae23([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2cae23([0x6f,0x6b]))return _0x2cae23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4f555e(_0x3291ad(_0x33c1db+_0x5f3ff8))!=_0x4711d9[_0x2cae23([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2cae23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2cae23([0x56,0x61,0x6c,0x69,0x64]);})[_0x2cae23([0x74,0x68,0x65,0x6e])](_0x5b2105=>(_0x5dab0f(),_0x5b2105),()=>{const _0x27e615=_0x24550c();return null==_0x27e615?(_0x5dab0f(),_0x2cae23([0x56,0x61,0x6c,0x69,0x64])):_0x2cae23(_0x3a015b-_0x27e615>(0x7cbaafe^_0x9efcf5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2cae23([0x74,0x68,0x65,0x6e])](_0x3e04a9)[_0x2cae23([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3e04a9(_0x2cae23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x110771=0x23f1c07e^_0x9efcf5;function _0x5dab0f(){const _0x16220d=_0x2cae23([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f555e(_0x3291ad(_0x1bc13f)),_0x41a073=_0x139f63(_0x4f555e(window[_0x2cae23([0x4d,0x61,0x74,0x68])][_0x2cae23([0x63,0x65,0x69,0x6c])](_0x3a015b/_0x110771)));window[_0x2cae23([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cae23([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16220d,_0x41a073);}function _0x24550c(){const _0xcb96d4=_0x2cae23([0x6c,0x6c,0x63,0x74,0x2d])+_0x4f555e(_0x3291ad(_0x1bc13f)),_0x3b888d=window[_0x2cae23([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cae23([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcb96d4);return _0x3b888d?window[_0x2cae23([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x139f63(_0x3b888d),0x10)*_0x110771:null;}function _0x26590e(_0x2dd85a){return new window[(_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c123a,_0x1cbf3f)=>{_0x2dd85a[_0x2cae23([0x74,0x68,0x65,0x6e])](_0x4c123a,_0x1cbf3f),window[_0x2cae23([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1cbf3f,0x23c6fa3e^_0x9efcf5);});}}_0x4ff2a5[_0x2cae23([0x6f,0x6e])](_0x2cae23([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x259f94,_0x3eb122)=>{if(_0x3eb122[0x0]!=_0x1bc13f)return _0x3e04a9(_0x2cae23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3eb122[0x1]={..._0x3eb122[0x1],[_0x2cae23([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33c1db};},{[_0x2cae23([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cae23([0x68,0x69,0x67,0x68])}),_0x4ff2a5[_0x2cae23([0x6f,0x6e])](_0x2cae23([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b335c=>{_0x2e3f1e(_0x1b335c[_0x2cae23([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1633e4=!0x0,_0x39b709(_0x1b335c[_0x2cae23([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2cae23([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cae23([0x6c,0x6f,0x77])}),_0x47e327[_0x2cae23([0x74,0x68,0x65,0x6e])](()=>{_0x1633e4||_0x3e04a9(_0x2cae23([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xd119fe(){return _0x4ff2a5[_0x2cae23([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cae23([0x76,0x69,0x65,0x77])][_0x2cae23([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2cae23([0x61,0x75,0x74,0x6f]);}function _0x3a2a31(){_0x4ff2a5[_0x2cae23([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cae23([0x76,0x69,0x65,0x77])][_0x2cae23([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2cae23([0x61,0x75,0x74,0x6f]);}}function _0x556228(_0x2758c2){const _0x415d49=[new window[(_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33ecab=>setTimeout(_0x33ecab,0x23ce1032^_0x9efcf5)),_0x47e327[_0x2cae23([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f108=>{let _0x5cd548=0x0;_0x4ff2a5[_0x2cae23([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cae23([0x6f,0x6e])](_0x2cae23([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xc52f7e,_0x2a58cc)=>{_0x2a58cc[0x0][_0x2cae23([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5cd548++,_0x5cd548==(0x23c72f06^_0x9efcf5)&&(_0x3f108(),_0xc52f7e[_0x2cae23([0x6f,0x66,0x66])]());});}))];return window[_0x2cae23([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2cae23([0x72,0x61,0x63,0x65])](_0x415d49)[_0x2cae23([0x74,0x68,0x65,0x6e])](()=>_0x2758c2);}async function _0x6ebe45(){await _0x47e327,_0x4ff2a5[_0x2cae23([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cae23([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x533a32,_0x4ff2a5[_0x2cae23([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cae23([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x533a32,_0x4ff2a5[_0x2cae23([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2cae23([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4ceaba(_0x3a0088){const _0x26f01e=_0x2090aa();_0x4ff2a5[_0x26f01e]=_0x2cae23([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3a0088,_0x3a0088!=_0x2cae23([0x56,0x61,0x6c,0x69,0x64])&&_0x6ebe45();}function _0x2090aa(){const _0x37a6b6=window[_0x2cae23([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2cae23([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2cae23([0x6e,0x6f,0x77])]())[_0x2cae23([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2cae23([0x2e]),'');let _0x585b4f=_0x2cae23([0x4e]);for(let _0x3920ea=0x0;_0x3920ea<_0x37a6b6[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3920ea+=0x2){let _0x49ac7b=window[_0x2cae23([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37a6b6[_0x2cae23([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3920ea,_0x3920ea+0x2));_0x49ac7b>=_0x51cfae[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49ac7b-=_0x51cfae[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x585b4f+=_0x51cfae[_0x49ac7b];}return _0x585b4f;}function _0x2fb725(){const _0x53ee04=_0x23490a[_0x2cae23([0x73,0x70,0x6c,0x69,0x74])](_0x2cae23([0x2e]));if(0x3!=_0x53ee04[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x32d7dd(_0x53ee04[0x1]);function _0x32d7dd(_0x310b4a){const _0x4d501f=_0x4f0cae(_0x310b4a);return _0x4d501f&&_0x19feb6()?_0x4d501f:null;function _0x19feb6(){const _0x55b8f7=_0x4d501f[_0x2cae23([0x6a,0x74,0x69])],_0x47e5fc=window[_0x2cae23([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55b8f7[_0x2cae23([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x55b8f7[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3df740={..._0x4d501f,[_0x2cae23([0x6a,0x74,0x69])]:_0x55b8f7[_0x2cae23([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x55b8f7[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3df740[_0x2cae23([0x76,0x63])],_0x3291ad(_0x3df740)==_0x47e5fc;}}}async function _0x47bf36(){let _0x52036d=!0x0;try{const _0x5c8c1e=_0x23490a[_0x2cae23([0x73,0x70,0x6c,0x69,0x74])](_0x2cae23([0x2e])),[_0x4de685,_0x3b4f4c,_0x3cc7d0]=_0x5c8c1e;return _0x4daa37(_0x4de685),await _0x1ad19e(_0x4de685,_0x3b4f4c,_0x3cc7d0),_0x52036d;}catch(_0xbeed2){return!0x1;}function _0x4daa37(_0x4a87f3){const _0x49b9ee=_0x4f0cae(_0x4a87f3);_0x49b9ee&&_0x49b9ee[_0x2cae23([0x61,0x6c,0x67])]==_0x2cae23([0x45,0x53,0x32,0x35,0x36])||(_0x52036d=!0x1);}async function _0x1ad19e(_0x3daa8e,_0xc5cd99,_0x323526){const _0x3aecaf=window[_0x2cae23([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2cae23([0x66,0x72,0x6f,0x6d])](_0x4f2904(_0x323526),_0x33211c=>_0x33211c[_0x2cae23([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x53a329=new window[(_0x2cae23([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2cae23([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3daa8e+_0x2cae23([0x2e])+_0xc5cd99),_0x12e3b1=window[_0x2cae23([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2cae23([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12e3b1)return;const _0x2a1389=await _0x12e3b1[_0x2cae23([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2cae23([0x6a,0x77,0x6b]),_0xebfbe0,{[_0x2cae23([0x6e,0x61,0x6d,0x65])]:_0x2cae23([0x45,0x43,0x44,0x53,0x41]),[_0x2cae23([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2cae23([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2cae23([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12e3b1[_0x2cae23([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2cae23([0x6e,0x61,0x6d,0x65])]:_0x2cae23([0x45,0x43,0x44,0x53,0x41]),[_0x2cae23([0x68,0x61,0x73,0x68])]:{[_0x2cae23([0x6e,0x61,0x6d,0x65])]:_0x2cae23([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2a1389,_0x3aecaf,_0x53a329)||(_0x52036d=!0x1);}}function _0x4f0cae(_0xd7887a){return _0xd7887a[_0x2cae23([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2cae23([0x65,0x79]))?JSON[_0x2cae23([0x70,0x61,0x72,0x73,0x65])](_0x4f2904(_0xd7887a)):null;}function _0x4f2904(_0x3f35fe){return window[_0x2cae23([0x61,0x74,0x6f,0x62])](_0x3f35fe[_0x2cae23([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2cae23([0x2b]))[_0x2cae23([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2cae23([0x2f])));}function _0x3291ad(_0x3d64b8){let _0x3151f5=0x1505;function _0x12225f(_0x1a9b77){for(let _0x18dafb=0x0;_0x18dafb<_0x1a9b77[_0x2cae23([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18dafb++){const _0x11d765=_0x1a9b77[_0x2cae23([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18dafb);_0x3151f5=(_0x3151f5<<0x5)+_0x3151f5+_0x11d765,_0x3151f5&=_0x3151f5;}}function _0x116322(_0x44c865){Array[_0x2cae23([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x44c865)?_0x44c865[_0x2cae23([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x116322):_0x44c865&&typeof _0x44c865==_0x2cae23([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2cae23([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x44c865)[_0x2cae23([0x73,0x6f,0x72,0x74])]()[_0x2cae23([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52c666,_0xa7f447])=>{_0x12225f(_0x52c666),_0x116322(_0xa7f447);}):_0x12225f(window[_0x2cae23([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x44c865));}return _0x116322(_0x3d64b8),_0x3151f5>>>0x0;}function _0x4f555e(_0xe87c4b){return _0xe87c4b[_0x2cae23([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2cae23([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2cae23([0x30]));}function _0x139f63(_0x49db23){return _0x49db23[_0x2cae23([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2cae23([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2cae23([0x6a,0x6f,0x69,0x6e])]('');}function _0x533a32(){}function _0x2cae23(_0x5396e3){return _0x5396e3['map'](_0x56360c=>String['fromCharCode'](_0x56360c))['join']('');}_0x4ceaba(await _0x2c998e());}(this);}['_initSchema'](){const _0x56f121=this['editor']['model']['schema'];_0x56f121['isRegistered']('imageBlock')&&_0x56f121['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x56f121['isRegistered']('imageInline')&&_0x56f121['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3b9366=this['editor'];_0x3b9366['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3b9366['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2e9491=>_0x2e9491['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57443c=_0x3b9366['commands']['get']('replaceImageSource');_0x57443c&&this['listenTo'](_0x57443c,'cleanupImage',(_0x28b0ee,[_0x3412ab,_0x4f755b])=>{_0x3412ab['removeAttribute']('uploadcareImageId',_0x4f755b);});}['_initConfig'](){const _0x594cbd=this['editor']['config']['get']('uploadcare.uploader')||{},_0x362c62=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xe1a070(_0x39abb1['document'],'uc-config',{..._0x594cbd,'pubkey':_0x362c62,'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']=_0x3df0c2=>{if('closeMax'==_0x3df0c2)return'#uc-icon-arrow-down';},_0x39abb1['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xe1a070(_0x39abb1['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x39abb1['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xbda51e=this['editor']['commands']['get']('insertImage');_0xbda51e&&this['listenTo'](_0xbda51e,'execute',()=>{const _0x1e28eb=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1e28eb&&_0x1e28eb['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1e28eb);});});const _0x490410=this['editor']['commands']['get']('uploadcareImageReplace');_0x490410&&this['listenTo'](_0x490410,'execute',()=>{const _0x30e727=this['editor']['model']['document']['selection']['getSelectedElement']();_0x30e727&&_0x30e727['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x30e727);});});}}class u extends _0x1216db{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38d2d6){super(_0x38d2d6),_0x38d2d6['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x5ea66a['defineComponents'](_0x5ea66a);}}class ta extends _0xbcde45{constructor(_0x607fff){super(_0x607fff);const t=_0x607fff['t'],_0x429156=this['bindTemplate'],_0x1ab5da=new _0x1d2eec();_0x1ab5da['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':[_0x1ab5da,{'text':_0x429156['to']('imageUploadProgress',_0x229f3e=>t('Loading\x20image...')+'\x20('+(_0x229f3e||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 _0xbcde45{constructor(_0x21304a){super(_0x21304a);const t=_0x21304a['t'];this['set']('errorType',null);const _0x355c7e=new _0x50e41f(_0x21304a);_0x355c7e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x355c7e['withText']=!0x0,_0x355c7e['class']='ck-button-action',_0x355c7e['on']('execute',()=>{this['fire']('retry');}),_0x355c7e['bind']('isVisible')['to'](this,'errorType',_0x500441=>'NotFound'!==_0x500441);const _0x4637b3=new at();_0x4637b3['content']=et,_0x4637b3['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4607d1=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':[_0x4637b3,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4607d1['to']('errorType',_0x3f7bfa=>t('NotFound'!==_0x3f7bfa?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x355c7e]},{'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 _0xbcde45{constructor(_0x37ed03,_0x40386b){super(_0x37ed03);const _0x25dc44=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x40386b,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x25dc44['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4cd0c8,_0x53631e,_0x3556e3){super(_0x4cd0c8),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x4cd0c8),this['_errorView']=new rt(_0x4cd0c8),this['_editingView']=new tt(_0x4cd0c8,_0x3556e3),this['_focusableView']=new _0xbcde45(_0x4cd0c8),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x53631e),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'],_0x1f9c17=>{this['_addUploadcareImageEditorListeners'](_0x1f9c17);});}),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'](_0x26356b,_0x458074){const _0x390ee2='uc-cloud-image-editor',_0x380cd0=_0x26356b['querySelector'](_0x390ee2);if(_0x380cd0)return _0x458074(_0x380cd0);const _0x139ff0=new MutationObserver(_0x49d243=>{const _0x32548a=_0x49d243['filter'](_0x500afe=>_0x500afe['target']===_0x26356b&&_0x500afe['addedNodes']['length']>0x0&&_0x500afe['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x390ee2);_0x32548a['length']&&(_0x139ff0['disconnect'](),_0x458074(_0x32548a[0x0]['addedNodes'][0x0]));});_0x139ff0['observe'](_0x26356b,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x9d138e){_0x9d138e['addEventListener']('apply',_0x472509=>{this['fire']('apply',{'imageSrc':_0x472509['detail']['cdnUrl']});}),_0x9d138e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0xee8d54(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x11c4da,_0x56b791,_0x20b017){super(),this['_editor']=_0x11c4da,this['_dialog']=_0x56b791,this['_imageElement']=_0x20b017,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 _0x5023cc=this['_imageElement'],_0x4d466c=_0x5023cc['getAttribute']('uploadcareImageId'),_0x17048d=_0x5023cc['getAttribute']('src');if(_0x4d466c)await this['_loadImageInfo'](_0x4d466c,_0x17048d);else{if(this['_imageCache']['has'](_0x17048d)){const _0x3630c9=this['_imageCache']['get'](_0x17048d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3630c9['url'],this['imageDimension']=_0x3630c9['dimension'],this['imageId']=_0x3630c9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2ce55f}=this['_editor'],t=_0x2ce55f['t'],_0xb4c8b4=new Z(_0x2ce55f,this['imageStatus'],this['_attributes']);_0xb4c8b4['bind']('status')['to'](this,'imageStatus'),_0xb4c8b4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xb4c8b4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xb4c8b4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xb4c8b4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x493b43,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xb4c8b4,'position':_0x4e3fb1['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xb4c8b4['focus']();},'onHide':()=>{_0xb4c8b4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4be723=>!F(_0x4be723,_0xb4c8b4['element'])}});}['_loadImageInfo'](_0x4515ff,_0x3cbe2a){return C['getInfo'](_0x4515ff,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3d651b=>{const {width:_0x47defe,height:_0x24dac1}=_0x3d651b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3cbe2a,this['imageDimension']={'width':_0x47defe,'height':_0x24dac1},this['imageId']=_0x4515ff;})['catch'](_0x78638d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x78638d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x34df55,_0x1be216){return this['_getImageAsFile'](_0x34df55)['then'](_0x516288=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1be216['signal'],'file':_0x516288,'onProgress':_0x1eadc4=>{_0x1eadc4&&_0x1eadc4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1eadc4['value']));}}))['then'](_0x196fa3=>{const {width:_0x432bec,height:_0x565364}=_0x196fa3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x196fa3['cdnUrl'],this['imageDimension']={'width':_0x432bec,'height':_0x565364},this['imageId']=_0x196fa3['uuid'],this['imageUploadProgress']=null;const _0x4f65d2=_0x34df55['getAttribute']('src');this['_imageCache']['set'](_0x4f65d2,{'id':_0x196fa3['uuid'],'url':_0x196fa3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5115a9=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5115a9['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3debd1,_0x4a74fe){_0x3debd1['on']('apply',(_0x3cf565,_0x2cd854)=>{this['_replaceImage'](_0x4a74fe,_0x2cd854['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3debd1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3debd1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x191008,_0x25a0d0,_0x58b0db){const _0x4b59fd=this['_editor'],{width:_0x34f1ea,height:_0x48e15d}=A(_0x25a0d0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x43740a,imageSources:_0x4d7a2e}=E(_0x25a0d0,_0x34f1ea);_0x4b59fd['model']['change'](_0x104a62=>{if('$graveyard'===_0x191008['root']['rootName']){_0x4b59fd['execute']('insertImage',{'imageType':_0x191008['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x191008['getAttributes']()),'uploadcareImageId':_0x58b0db,'src':_0x43740a,'sources':_0x4d7a2e,'width':_0x34f1ea,'height':_0x48e15d}});const _0x46ad0a=_0x191008['getChildren']();_0x191008=_0x4b59fd['model']['document']['selection']['getSelectedElement']();for(const _0x1a5643 of _0x46ad0a)_0x104a62['append'](_0x104a62['cloneElement'](_0x1a5643),_0x191008);}else _0x104a62['setSelection'](_0x191008,'on'),_0x4b59fd['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x191008['getAttributes']()),'uploadcareImageId':_0x58b0db,'src':_0x43740a,'sources':_0x4d7a2e,'width':_0x34f1ea,'height':_0x48e15d},_0x191008);_0x104a62['setSelection'](_0x191008,'on');});}async['_getImageAsFile'](_0x24f126){const _0x3e76a3=_0x39abb1['window'],_0x3562c9=_0x39abb1['document']['location']['href'],_0x5d742a=new _0x3e76a3['URL'](_0x24f126['getAttribute']('src'),_0x3562c9);if('data:'===_0x5d742a['protocol']){const _0x1abff1=_0x5d742a['href']['split'](','),_0x451a3d=_0x1abff1[0x0]['match'](/:(.*?);/)[0x1],_0x40d0b6=_0x451a3d['split']('/')[0x1],_0x24b3d1=_0x3e76a3['atob'](_0x1abff1[_0x1abff1['length']-0x1]);let _0x317a46=_0x24b3d1['length'];const _0x392663=new _0x3e76a3['Uint8Array'](_0x317a46);for(;_0x317a46--;)_0x392663[_0x317a46]=_0x24b3d1['charCodeAt'](_0x317a46);return new _0x3e76a3['File']([_0x392663],'image.'+_0x40d0b6,{'type':_0x451a3d});}const _0x42aa66=_0x5d742a['href']['split']('/'),_0x3ceccb=_0x42aa66[_0x42aa66['length']-0x1],_0x413f1b=_0x3ceccb['split']('.')[0x1];return _0x3e76a3['fetch'](_0x5d742a['href'])['then'](_0x3a48f2=>_0x3a48f2['clone']()['blob']())['then'](_0x42dd98=>new _0x3e76a3['File']([_0x42dd98],_0x3ceccb,{'type':'image/'+_0x413f1b}));}}class J extends _0x566b9a{['imageEditController'];static get['requires'](){return[_0x2e6829];}['_isEditable'];constructor(_0x3c6e36){super(_0x3c6e36),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x42cd99){const _0x52e517=V(_0x42cd99);return _0x2b5f45=>!(!_0x2b5f45||!_0x2b5f45['is']('element','imageBlock')&&!_0x2b5f45['is']('element','imageInline'))&&(!!_0x2b5f45['hasAttribute']('uploadcareImageId')||!!_0x2b5f45['hasAttribute']('src')&&_0x52e517(_0x2b5f45['getAttribute']('src')));}(_0x3c6e36['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xaf250d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xaf250d);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4a9b60=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4a9b60&&(_0x4a9b60['is']('element','imageBlock')||_0x4a9b60['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x2e6829),_0x4a9b60),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x566b9a{['refresh'](){const _0x8ce952=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x8ce952&&(_0x8ce952['is']('element','imageBlock')||_0x8ce952['is']('element','imageInline')));}['execute'](_0x48e3d4){const _0x16d6ab=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x25ea11=>{_0x25ea11['setAttributes'](_0x48e3d4,_0x16d6ab),_0x25ea11['removeAttribute']('srcset',_0x16d6ab),_0x25ea11['removeAttribute']('sizes',_0x16d6ab);});}}class g extends _0x1216db{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3c8fee,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4c59e9}=this;_0x4c59e9['commands']['add']('uploadcareImageEdit',new J(_0x4c59e9)),_0x4c59e9['commands']['add']('uploadcareImageReplace',new O(_0x4c59e9));}}class j extends _0x1216db{['_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 _0x5c7222=this['editor'];_0x5c7222['ui']['componentFactory']['add']('uploadcareImageEdit',_0x248251=>{const _0x2b3b1b=_0x5c7222['commands']['get']('uploadcareImageEdit'),_0x14bebb=new _0x50e41f(_0x248251),t=_0x248251['t'];return _0x14bebb['set']({'icon':_0x493b43,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x14bebb['bind']('isEnabled')['to'](_0x2b3b1b),_0x14bebb['bind']('isOn')['to'](_0x2b3b1b,'isActive'),this['listenTo'](_0x14bebb,'execute',()=>{_0x5c7222['execute']('uploadcareImageEdit'),_0x5c7222['editing']['view']['focus']();}),_0x14bebb;}),this['_initConfig']();}['_initConfig'](){const _0x37413c=_0xe1a070(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x37413c),this['listenTo'](this['editor'],'destroy',()=>{_0x37413c['remove']();});}}class P extends _0x1216db{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 _0x46108d,Command as _0x1fb8a4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3fc145,IconGooglePhotos as _0x393224,IconGoogleDrive as _0x218a63,IconFacebook as _0x419e5b,IconDropbox as _0x5e153d,IconUploadcareLink as _0x325b84,IconUploadcareImageUpload as _0x1ca542,IconError as et,IconUploadcareImageEdit as _0x1747b9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x271c32,MenuBarMenuListItemButtonView as _0x1c9cf5,View as _0x1d3b0d,FocusCycler as _0x51b23f,Dialog as _0x35bec4,DialogViewPosition as _0x235f27,SpinnerView as _0x3a5a3f,IconView as at,Notification as _0x5b606b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x45fe6a,DomEmitterMixin as _0x2d0d95,global as _0x5e2af2,getAncestors as _0x563ba5,ObservableMixin as _0x279a61,createElement as _0x5d2e18,uid as _0x1d6996}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x8032f6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5c1b39,info as _0x5b6f00}from'@uploadcare/upload-client';import*as _0x3e0bc2 from'@uploadcare/file-uploader';var o=function(_0x1d5cb4){return _0x1d5cb4['Local']='local',_0x1d5cb4['URL']='url',_0x1d5cb4['Dropbox']='dropbox',_0x1d5cb4['GDrive']='gdrive',_0x1d5cb4['Facebook']='facebook',_0x1d5cb4['GPhotos']='gphotos',_0x1d5cb4['OneDrive']='onedrive',_0x1d5cb4;}({});function _(_0x66d09b,_0x20a7f8,_0x516622){const t=_0x66d09b['t'],_0x4f6e6a=_0x66d09b['t'];switch(_0x20a7f8){case o['Local']:return{'text':_0x4f6e6a('Insert'===_0x516622?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4f6e6a('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x516622?_0x4f6e6a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4f6e6a('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x516622?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x516622?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x516622?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x516622?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x516622?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x20a7f8;}}class e extends _0x46108d{['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 _0x2a7b1a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2de668;for(const _0x30c286 in _0x2a7b1a){const _0x37c0b8=_0x30c286,_0x4a2e4b=_0x2a7b1a[_0x37c0b8];if('uploadcareLicenseKeyValid'==_0x4a2e4b||'uploadcareLicenseKeyInvalid'==_0x4a2e4b||'uploadcareLicenseKeyExpired'==_0x4a2e4b||'uploadcareLicenseKeyDomainLimit'==_0x4a2e4b||'uploadcareLicenseKeyNotAllowed'==_0x4a2e4b||'uploadcareLicenseKeyEvaluationLimit'==_0x4a2e4b||'uploadcareLicenseKeyTrialLimit'==_0x4a2e4b||'uploadcareLicenseKeyUsageLimit'==_0x4a2e4b){delete _0x2a7b1a[_0x37c0b8],_0x2de668=_0x4a2e4b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2de668&&_0x2a7b1a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2de668&&_0x2a7b1a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2de668&&_0x2a7b1a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2de668&&_0x2a7b1a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2de668&&_0x2a7b1a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2de668&&_0x2a7b1a['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2de668&&_0x2a7b1a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x311417}=this,_0x1e486d=_0x311417['commands']['get']('uploadcare');if(!_0x1e486d)return;const _0x3b5640=this['_normalizeConfigSourceList'](_0x311417['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x53b4c6,_0x25c7e1)=>{const _0x34f5c1=this['_getIntegrationKey'](_0x25c7e1['type']);return _0x53b4c6[_0x34f5c1]||(_0x53b4c6[_0x34f5c1]=[]),_0x53b4c6[_0x34f5c1]['push'](_0x25c7e1),_0x53b4c6;},{});_0x311417['plugins']['has']('ImageInsertUI')&&_0x311417['commands']['get']('uploadcare')&&Object['entries'](_0x3b5640)['forEach'](([_0xa9dc9d,_0x400937])=>{_0x311417['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xa9dc9d,'observable':()=>_0x1e486d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x400937),'formViewCreator':()=>this['_createDropdownButtons'](_0x400937),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x400937),'override':'assetManager'!==_0xa9dc9d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x33651c){const {locale:_0x11b38b}=this['editor'];return _0x33651c['map'](_0xc5ba6d=>{const _0x294e43=_(_0x11b38b,_0xc5ba6d,'Insert');switch(_0xc5ba6d){case o['Local']:return{'icon':_0x1ca542,'type':o['Local'],..._0x294e43};case o['URL']:return{'icon':_0x325b84,'type':o['URL'],..._0x294e43};case o['Dropbox']:return{'icon':_0x5e153d,'type':o['Dropbox'],..._0x294e43};case o['Facebook']:return{'icon':_0x419e5b,'type':o['Facebook'],..._0x294e43};case o['GDrive']:return{'icon':_0x218a63,'type':o['GDrive'],..._0x294e43};case o['GPhotos']:return{'icon':_0x393224,'type':o['GPhotos'],..._0x294e43};case o['OneDrive']:return{'icon':_0x3fc145,'type':o['OneDrive'],..._0x294e43};}});}['_getIntegrationKey'](_0x1a3854){switch(_0x1a3854){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x52d573,_0xcd7d3a){const _0x2b0f12=this['editor'],_0x97d313=new _0x52d573(_0x2b0f12['locale']),_0x1feb27=_0x2b0f12['commands']['get']('uploadcare');return _0x97d313['bind']('isEnabled')['to'](_0x1feb27),_0x97d313['on']('execute',()=>{_0x1feb27['execute'](_0xcd7d3a);}),_0x97d313;}['_createToolbarButton'](_0x5533e3){const {locale:_0x1cfdea}=this['editor'],_0x4b241f=this['editor']['plugins']['get']('ImageInsertUI'),_0x72a7b3=_0x5533e3[0x0],_0x479208=this['_createButton'](_0x271c32,_0x72a7b3['type']);return _0x479208['icon']=_0x72a7b3['icon'],_0x479208['bind']('label')['to'](_0x4b241f,'isImageSelected',_0x29f01b=>_(_0x1cfdea,_0x72a7b3['type'],_0x29f01b?'Replace':'Insert')['text']),_0x479208['tooltip']=!0x0,_0x479208;}['_createDropdownButtons'](_0x3e4bf5){const {locale:_0x17aea8}=this['editor'],_0x19c55c=this['editor']['plugins']['get']('ImageInsertUI');return _0x3e4bf5['map'](_0x18a0bb=>{const _0x3c0bbc=this['_createButton'](_0x271c32,_0x18a0bb['type']);return _0x3c0bbc['withText']=!0x0,_0x3c0bbc['icon']=_0x18a0bb['icon'],_0x3c0bbc['bind']('label')['to'](_0x19c55c,'isImageSelected',_0xe520f=>_(_0x17aea8,_0x18a0bb['type'],_0xe520f?'Replace':'Insert')['text']),_0x3c0bbc;});}['_createMenuBarButtons'](_0x284ca6){return _0x284ca6['map'](_0x593dbd=>{const _0x15f647=this['_createButton'](_0x1c9cf5,_0x593dbd['type']);return _0x15f647['icon']=_0x593dbd['icon'],_0x15f647['label']=_0x593dbd['shortText'],_0x15f647;});}}class q extends _0x1d3b0d{['focusTracker'];['focusCycler'];constructor(_0x25547d){super(_0x25547d),this['focusTracker']=new _0x45fe6a(),this['focusCycler']=new _0x51b23f({'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(_0x34a1c0){super(_0x34a1c0),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(_0x2f79b5,_0x1c32d6){const _0x8fbdb6=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x370342=>_0x370342<=_0x1c32d6)['map'](_0x31a64e=>_0x2f79b5['replace'](/\/$/,'')+'/-/resize/'+_0x31a64e+'x/\x20'+_0x31a64e+'w');return{'imageFallbackUrl':_0x2f79b5,'imageSources':[{'srcset':_0x8fbdb6['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1c32d6+'px)\x20100vw,\x20'+_0x1c32d6+'px','type':'image/webp'}]};}function A(_0x6da59f,_0x349d24,_0x3237f5){const _0x303063=_0x6da59f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x303063?parseInt(_0x303063[0x1],0xa):_0x349d24,'height':_0x303063?parseInt(_0x303063[0x2],0xa):_0x3237f5};}function m(_0x545198,_0x15c7dc){const _0x29cdbd=Object['create'](_0x2d0d95),_0x23f3c7=_0x545198['plugins']['get']('ImageUtils'),_0x2d52a9=_0x545198['editing']['mapper']['toViewElement'](_0x15c7dc),_0x2619ff=_0x23f3c7['findViewImgElement'](_0x2d52a9),_0x2c7d16=_0x545198['editing']['view']['domConverter']['viewToDom'](_0x2619ff),_0x22056e=_0x15c7dc['getAttribute']('width'),_0x17866e=_0x15c7dc['getAttribute']('height'),_0x1b735c='image-processing';_0x545198['editing']['view']['change'](_0x23256d=>{_0x23256d['addClass'](_0x1b735c,_0x2d52a9),_0x23256d['setStyle']('aspect-ratio',_0x22056e+'/'+_0x17866e,_0x2619ff);}),_0x29cdbd['listenTo'](_0x2c7d16,'load',()=>{_0x29cdbd['stopListening'](_0x2c7d16,'load'),_0x545198['editing']['view']['change'](_0x1a09a0=>{_0x1a09a0['removeClass'](_0x1b735c,_0x2d52a9),_0x1a09a0['removeStyle']('aspect-ratio',_0x2619ff);});});}function V(_0x2138b8){if(Array['isArray'](_0x2138b8)){const _0x1a95f6=_0x2138b8['map'](V);return _0x344d6c=>_0x1a95f6['some'](_0x2f3e90=>_0x2f3e90(_0x344d6c));}if('origin'==_0x2138b8){const _0x5eb1a6=_0x5e2af2['window']['location']['origin'];return _0x41352f=>new URL(_0x41352f,_0x5e2af2['document']['baseURI'])['origin']==_0x5eb1a6;}return'function'==typeof _0x2138b8?_0x2138b8:_0x2138b8 instanceof RegExp?_0x2747fe=>!(!_0x2747fe['match'](_0x2138b8)&&!_0x2747fe['replace'](/^https?:\/\//,'')['match'](_0x2138b8)):()=>!0x1;}function F(_0x444e77,_0x3f0072){return _0x563ba5(_0x444e77['target'])['includes'](_0x3f0072);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x279a61(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x53faa2,_0x5316ca,_0x87c01){super(),this['_editor']=_0x53faa2,this['_editing']=_0x5316ca,this['_dialog']=_0x53faa2['plugins']['get'](_0x35bec4),this['_api']=_0x5316ca['ctxElement']['getAPI'](),this['_type']=_0x87c01,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:_0x45ff28,model:_0xdc78b8}=this['_editor'],_0x28e426=_0xdc78b8['document']['selection']['getSelectedElement'](),_0x3b89df=_0x28e426&&(_0x28e426['is']('element','imageBlock')||_0x28e426['is']('element','imageInline'));this['_formView']=new S(_0x45ff28),this['_dialog']['show']({'id':'uploadCare','icon':_0x1ca542,'title':_(_0x45ff28,this['_type'],_0x3b89df?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x235f27['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1b1c4c=>!F(_0x1b1c4c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x116a32}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x416483=>{const _0x302b96=_0x116a32['length'];for(const _0x52c862 of _0x116a32){const _0x161aef=_0x52c862===_0x116a32[_0x302b96-0x1],{cdnUrl:_0x57eae6,fileInfo:_0x539b28}=_0x52c862;if(!_0x57eae6||!_0x539b28)continue;const {width:_0x4f6aa2,height:_0x5ea6a6}=_0x539b28['imageInfo'],_0x2d8e6c=A(_0x57eae6,_0x4f6aa2,_0x5ea6a6),_0x19de84=E(_0x57eae6,_0x2d8e6c['width']),_0x1ee0ae={'id':_0x539b28['uuid'],'type':'image','attributes':{'imageDimension':_0x2d8e6c,..._0x19de84}};this['_insertAsset'](_0x1ee0ae,_0x161aef,_0x416483);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1293f3=>{'idle'===_0x1293f3['detail']['status']&&!_0x1293f3['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x137a24,_0x5c7519,_0x4dcc23){const _0x5121ba=this['_editor']['model']['document']['selection'],_0x27d706=_0x5121ba['getSelectedElement'](),_0x62bcc6=!(!_0x27d706||!_0x27d706['is']('element','imageInline'));_0x4dcc23['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x137a24,_0x62bcc6),_0x5c7519||_0x4dcc23['setSelection'](_0x5121ba['getLastPosition']());}['_insertImage'](_0x5306d1,_0x10fca9){const _0xded555=this['_editor'],{imageDimension:_0x4e859f,imageFallbackUrl:_0x27f9a7,imageSources:_0xc5ee97}=_0x5306d1['attributes'];_0xded555['execute']('insertImage',{'imageType':_0x10fca9?'imageInline':null,'source':{'uploadcareImageId':_0x5306d1['id'],'src':_0x27f9a7,'sources':_0xc5ee97,..._0x4e859f}});}}class n extends _0x1fb8a4{['_editing'];['_controller']=null;static get['requires'](){return[_0x35bec4,i];}constructor(_0x49842f){super(_0x49842f),this['_editing']=_0x49842f['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4f18ff){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x4f18ff);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x127072,publicKey:_0x374803,signal:_0x429ca0,onProgress:_0x1ea595}){return _0x5c1b39(_0x127072,{'publicKey':_0x374803,'store':'auto','signal':_0x429ca0,'onProgress':_0x1ea595});}static['getInfo'](_0xa7d37c,_0x2013db){return _0x5b6f00(_0xa7d37c,_0x2013db);}}class p extends _0x46108d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x8032f6,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1ea541=this['editor'];if(!!!_0x1ea541['config']['get']('uploadcare'))return;_0x1ea541['plugins']['get'](_0x8032f6)['createUploadAdapter']=_0x235c2=>new x(_0x235c2,_0x1ea541),_0x1ea541['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x344f9d,{imageElement:_0x114f4a,data:_0x3d3de4})=>{_0x1ea541['model']['change'](_0x434186=>{_0x434186['setAttribute']('uploadcareImageId',_0x3d3de4['uploadcareImageId'],_0x114f4a);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x5eeaa3,_0x7026f0){this['loader']=_0x5eeaa3,this['editor']=_0x7026f0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1c476d=this['editor']['config']['get']('uploadcare.pubkey'),_0x120311=await this['loader']['file'];return C['upload']({'file':_0x120311,'publicKey':_0x1c476d,'signal':this['controller']['signal'],'onProgress':_0x3a10da=>{_0x3a10da&&_0x3a10da['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3a10da['value']);}})['then'](async _0x2e0e92=>{const {imageFallbackUrl:_0x3d9812,imageSources:_0x3274d0}=E(_0x2e0e92['cdnUrl'],_0x2e0e92['imageInfo']['width']);return{'uploadcareImageId':_0x2e0e92['uuid'],'default':_0x3d9812,'sources':_0x3274d0};})['catch'](()=>{const _0x2d2da3=t('Cannot\x20upload\x20file:')+('\x20'+_0x120311['name']+'.');return Promise['reject'](_0x2d2da3);});}['abort'](){this['controller']['abort']();}}class i extends _0x46108d{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x35bec4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x56aab9=this['editor'];_0x56aab9['commands']['add']('uploadcare',new n(_0x56aab9));}['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 _0x178f19=_0x5e2af2['document']['querySelector']('input[uploadcare-file-input]');_0x178f19&&_0x178f19['remove']();}),async function(_0x3f36b8){const _0x543e3c=_0x53db9a([0x6b,0x47,0x7a,0x78,0x75,0x36,0x74,0x76,0x4b,0x79,0x66,0x52,0x63,0x64,0x4a,0x39,0x71,0x73,0x35,0x50,0x59,0x6c,0x38,0x58,0x43,0x62,0x53,0x37,0x69,0x56,0x46,0x45,0x70,0x77,0x31,0x72,0x4c,0x55,0x51,0x33,0x4d,0x57,0x44,0x5a,0x49,0x6f,0x41,0x32,0x48,0x34,0x68,0x4f,0x4e,0x6d,0x30,0x54,0x6a,0x65,0x67,0x6e,0x61,0x42]),_0x3c4f09=0x6dcfc38,_0x23c325=0x6db9b48^_0x3c4f09,_0x33688f=window[_0x53db9a([0x44,0x61,0x74,0x65])][_0x53db9a([0x6e,0x6f,0x77])](),_0x23cf51=_0x3f36b8[_0x53db9a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x585818=new window[(_0x53db9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45a0f4=>{_0x23cf51[_0x53db9a([0x6f,0x6e,0x63,0x65])](_0x53db9a([0x72,0x65,0x61,0x64,0x79]),_0x45a0f4);}),_0x3582e3={[_0x53db9a([0x6b,0x74,0x79])]:_0x53db9a([0x45,0x43]),[_0x53db9a([0x75,0x73,0x65])]:_0x53db9a([0x73,0x69,0x67]),[_0x53db9a([0x63,0x72,0x76])]:_0x53db9a([0x50,0x2d,0x32,0x35,0x36]),[_0x53db9a([0x78])]:_0x53db9a([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]),[_0x53db9a([0x79])]:_0x53db9a([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]),[_0x53db9a([0x61,0x6c,0x67])]:_0x53db9a([0x45,0x53,0x32,0x35,0x36])},_0x1df593=_0x23cf51[_0x53db9a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53db9a([0x67,0x65,0x74])](_0x53db9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x26446a(){let _0x324246,_0x590da5=null,_0x2bd70a=null;try{if(_0x1df593==_0x53db9a([0x47,0x50,0x4c]))return _0x53db9a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x324246=_0x19f0ad(),!_0x324246)return _0x53db9a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x324246[_0x53db9a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2bd70a=_0x491fd3(_0x324246[_0x53db9a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x324246[_0x53db9a([0x6a,0x74,0x69])])),await _0x34e35b()?_0x26ecd1()?_0x3c9173()?_0x53db9a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x317e8d()?(_0x324246[_0x53db9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53db9a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x590da5=_0x5701b3(_0x53db9a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x324246[_0x53db9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53db9a([0x74,0x72,0x69,0x61,0x6c])&&(_0x590da5=_0x5701b3(_0x53db9a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x12719c()):_0x53db9a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53db9a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53db9a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x95fce){return _0x53db9a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3c9173(){const _0x2806c7=[_0x53db9a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53db9a([0x74,0x72,0x69,0x61,0x6c])][_0x53db9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x324246[_0x53db9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33688f/0x3e8:0xe10*_0x23c325;return _0x324246[_0x53db9a([0x65,0x78,0x70])]<_0x2806c7;}function _0x26ecd1(){const _0x22a394=_0x324246[_0x53db9a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x22a394&&(!!_0x22a394[_0x53db9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53db9a([0x2a]))||!!_0x22a394[_0x53db9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53db9a([0x55,0x50,0x4c,0x43])));}function _0x317e8d(){const _0x3e3cee=_0x324246[_0x53db9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3e3cee||0x0==_0x3e3cee[_0x53db9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x24a449}=new URL(window[_0x53db9a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3e3cee[_0x53db9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24a449))return!0x0;const _0x544ce4=_0x24a449[_0x53db9a([0x73,0x70,0x6c,0x69,0x74])](_0x53db9a([0x2e]));return _0x3e3cee[_0x53db9a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x295f0d=>_0x295f0d[_0x53db9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53db9a([0x2a])))[_0x53db9a([0x6d,0x61,0x70])](_0x1f959a=>_0x1f959a[_0x53db9a([0x73,0x70,0x6c,0x69,0x74])](_0x53db9a([0x2e])))[_0x53db9a([0x73,0x6f,0x6d,0x65])](_0x85a25e=>_0x544ce4[_0x53db9a([0x65,0x76,0x65,0x72,0x79])]((_0x4ed6af,_0x2976a4)=>_0x85a25e[_0x2976a4]===_0x4ed6af||_0x85a25e[_0x2976a4]===_0x53db9a([0x2a])));}function _0x12719c(){return _0x590da5&&_0x2bd70a?new window[(_0x53db9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x231127,_0x26b061)=>{_0x590da5[_0x53db9a([0x74,0x68,0x65,0x6e])](_0x231127,_0x26b061),_0x2bd70a[_0x53db9a([0x74,0x68,0x65,0x6e])](_0x56734e=>{_0x56734e!=_0x53db9a([0x56,0x61,0x6c,0x69,0x64])&&_0x231127(_0x56734e);},_0x26b061);}):_0x590da5||_0x2bd70a||_0x53db9a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x491fd3(_0x9502dc,_0x147928){return new window[(_0x53db9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21fa04=>{if(_0x117502())return _0x21fa04(_0x53db9a([0x56,0x61,0x6c,0x69,0x64]));_0x264a55(),_0x23cf51[_0x53db9a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53db9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ecce0=!0x1;const _0x17db4d=_0x1d6996();function _0x281b40(_0x41ea57){return!!_0x41ea57&&(typeof _0x41ea57===_0x53db9a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41ea57===_0x53db9a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41ea57[_0x53db9a([0x74,0x68,0x65,0x6e])]===_0x53db9a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41ea57[_0x53db9a([0x63,0x61,0x74,0x63,0x68])]===_0x53db9a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x21bdb8(_0x3dcdc9){_0x24801c(_0x3dcdc9)[_0x53db9a([0x74,0x68,0x65,0x6e])](_0x314bb6=>{if(!_0x314bb6||_0x314bb6[_0x53db9a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53db9a([0x6f,0x6b]))return _0x53db9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x382ac9(_0x58123a(_0x17db4d+_0x147928))!=_0x314bb6[_0x53db9a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53db9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53db9a([0x56,0x61,0x6c,0x69,0x64]);})[_0x53db9a([0x74,0x68,0x65,0x6e])](_0x240667=>(_0x2a360b(),_0x240667),()=>{const _0x11c6e4=_0x2878b5();return null==_0x11c6e4?(_0x2a360b(),_0x53db9a([0x56,0x61,0x6c,0x69,0x64])):_0x53db9a(_0x33688f-_0x11c6e4>(0x22d07838^_0x3c4f09)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53db9a([0x74,0x68,0x65,0x6e])](_0x21fa04)[_0x53db9a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x21fa04(_0x53db9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c031a=0x6ea12b8^_0x3c4f09;function _0x2a360b(){const _0x3635ec=_0x53db9a([0x6c,0x6c,0x63,0x74,0x2d])+_0x382ac9(_0x58123a(_0x9502dc)),_0x528b26=_0x60bed1(_0x382ac9(window[_0x53db9a([0x4d,0x61,0x74,0x68])][_0x53db9a([0x63,0x65,0x69,0x6c])](_0x33688f/_0x1c031a)));window[_0x53db9a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53db9a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3635ec,_0x528b26);}function _0x2878b5(){const _0x16484b=_0x53db9a([0x6c,0x6c,0x63,0x74,0x2d])+_0x382ac9(_0x58123a(_0x9502dc)),_0x127400=window[_0x53db9a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53db9a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16484b);return _0x127400?window[_0x53db9a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x60bed1(_0x127400),0x10)*_0x1c031a:null;}function _0x24801c(_0xf8628d){return new window[(_0x53db9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x116e75,_0x4ec01f)=>{_0xf8628d[_0x53db9a([0x74,0x68,0x65,0x6e])](_0x116e75,_0x4ec01f),window[_0x53db9a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ec01f,0x6dd28f8^_0x3c4f09);});}}_0x23cf51[_0x53db9a([0x6f,0x6e])](_0x53db9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5d0a50,_0x59393a)=>{if(_0x59393a[0x0]!=_0x9502dc)return _0x21fa04(_0x53db9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x59393a[0x1]={..._0x59393a[0x1],[_0x53db9a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x17db4d};},{[_0x53db9a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53db9a([0x68,0x69,0x67,0x68])}),_0x23cf51[_0x53db9a([0x6f,0x6e])](_0x53db9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x131478=>{_0x281b40(_0x131478[_0x53db9a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ecce0=!0x0,_0x21bdb8(_0x131478[_0x53db9a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53db9a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53db9a([0x6c,0x6f,0x77])}),_0x585818[_0x53db9a([0x74,0x68,0x65,0x6e])](()=>{_0x4ecce0||_0x21fa04(_0x53db9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x117502(){return _0x23cf51[_0x53db9a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53db9a([0x76,0x69,0x65,0x77])][_0x53db9a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53db9a([0x61,0x75,0x74,0x6f]);}function _0x264a55(){_0x23cf51[_0x53db9a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53db9a([0x76,0x69,0x65,0x77])][_0x53db9a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53db9a([0x61,0x75,0x74,0x6f]);}}function _0x5701b3(_0x22c944){const _0x8f279d=[new window[(_0x53db9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aff16=>setTimeout(_0x3aff16,0x6d5c2f4^_0x3c4f09)),_0x585818[_0x53db9a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53db9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12ccae=>{let _0xe3afc5=0x0;_0x23cf51[_0x53db9a([0x6d,0x6f,0x64,0x65,0x6c])][_0x53db9a([0x6f,0x6e])](_0x53db9a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x59ede6,_0x9ef2cd)=>{_0x9ef2cd[0x0][_0x53db9a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe3afc5++,_0xe3afc5==(0x6dcfdc0^_0x3c4f09)&&(_0x12ccae(),_0x59ede6[_0x53db9a([0x6f,0x66,0x66])]());});}))];return window[_0x53db9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53db9a([0x72,0x61,0x63,0x65])](_0x8f279d)[_0x53db9a([0x74,0x68,0x65,0x6e])](()=>_0x22c944);}async function _0x153f78(){await _0x585818,_0x23cf51[_0x53db9a([0x6d,0x6f,0x64,0x65,0x6c])][_0x53db9a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x480e12,_0x23cf51[_0x53db9a([0x6d,0x6f,0x64,0x65,0x6c])][_0x53db9a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x480e12,_0x23cf51[_0x53db9a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53db9a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x33dd13(_0x441dca){const _0x439bd7=_0x7015b1();_0x23cf51[_0x439bd7]=_0x53db9a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x441dca,_0x441dca!=_0x53db9a([0x56,0x61,0x6c,0x69,0x64])&&_0x153f78();}function _0x7015b1(){const _0x22e373=window[_0x53db9a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53db9a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53db9a([0x6e,0x6f,0x77])]())[_0x53db9a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53db9a([0x2e]),'');let _0x53b971=_0x53db9a([0x6b]);for(let _0x4d4597=0x0;_0x4d4597<_0x22e373[_0x53db9a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d4597+=0x2){let _0x51cef5=window[_0x53db9a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22e373[_0x53db9a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d4597,_0x4d4597+0x2));_0x51cef5>=_0x543e3c[_0x53db9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x51cef5-=_0x543e3c[_0x53db9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x53b971+=_0x543e3c[_0x51cef5];}return _0x53b971;}function _0x19f0ad(){const _0x1d4933=_0x1df593[_0x53db9a([0x73,0x70,0x6c,0x69,0x74])](_0x53db9a([0x2e]));if(0x3!=_0x1d4933[_0x53db9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x41e941(_0x1d4933[0x1]);function _0x41e941(_0x4a5f76){const _0x37c3a1=_0x5dcbc5(_0x4a5f76);return _0x37c3a1&&_0x4f51bb()?_0x37c3a1:null;function _0x4f51bb(){const _0x48d2d9=_0x37c3a1[_0x53db9a([0x6a,0x74,0x69])],_0x5138cc=window[_0x53db9a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48d2d9[_0x53db9a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48d2d9[_0x53db9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5ad405={..._0x37c3a1,[_0x53db9a([0x6a,0x74,0x69])]:_0x48d2d9[_0x53db9a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x48d2d9[_0x53db9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5ad405[_0x53db9a([0x76,0x63])],_0x58123a(_0x5ad405)==_0x5138cc;}}}async function _0x34e35b(){let _0x19b57c=!0x0;try{const _0x33d3aa=_0x1df593[_0x53db9a([0x73,0x70,0x6c,0x69,0x74])](_0x53db9a([0x2e])),[_0x3bea6e,_0x58938c,_0x1a1b0a]=_0x33d3aa;return _0x320cbb(_0x3bea6e),await _0x3f58bc(_0x3bea6e,_0x58938c,_0x1a1b0a),_0x19b57c;}catch(_0x425bd8){return!0x1;}function _0x320cbb(_0x3c2bdd){const _0x2e4995=_0x5dcbc5(_0x3c2bdd);_0x2e4995&&_0x2e4995[_0x53db9a([0x61,0x6c,0x67])]==_0x53db9a([0x45,0x53,0x32,0x35,0x36])||(_0x19b57c=!0x1);}async function _0x3f58bc(_0x413293,_0x28acf3,_0x85add0){const _0x4e6333=window[_0x53db9a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53db9a([0x66,0x72,0x6f,0x6d])](_0x577c9c(_0x85add0),_0xe9d7c0=>_0xe9d7c0[_0x53db9a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1d4c5b=new window[(_0x53db9a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53db9a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x413293+_0x53db9a([0x2e])+_0x28acf3),_0x28128f=window[_0x53db9a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53db9a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x28128f)return;const _0x220a60=await _0x28128f[_0x53db9a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53db9a([0x6a,0x77,0x6b]),_0x3582e3,{[_0x53db9a([0x6e,0x61,0x6d,0x65])]:_0x53db9a([0x45,0x43,0x44,0x53,0x41]),[_0x53db9a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53db9a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53db9a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x28128f[_0x53db9a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53db9a([0x6e,0x61,0x6d,0x65])]:_0x53db9a([0x45,0x43,0x44,0x53,0x41]),[_0x53db9a([0x68,0x61,0x73,0x68])]:{[_0x53db9a([0x6e,0x61,0x6d,0x65])]:_0x53db9a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x220a60,_0x4e6333,_0x1d4c5b)||(_0x19b57c=!0x1);}}function _0x5dcbc5(_0x235658){return _0x235658[_0x53db9a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53db9a([0x65,0x79]))?JSON[_0x53db9a([0x70,0x61,0x72,0x73,0x65])](_0x577c9c(_0x235658)):null;}function _0x577c9c(_0x5db4cc){return window[_0x53db9a([0x61,0x74,0x6f,0x62])](_0x5db4cc[_0x53db9a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53db9a([0x2b]))[_0x53db9a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53db9a([0x2f])));}function _0x58123a(_0x42bc63){let _0x2014a9=0x1505;function _0x34406c(_0x133b05){for(let _0x3b0e1a=0x0;_0x3b0e1a<_0x133b05[_0x53db9a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b0e1a++){const _0x2cdc2a=_0x133b05[_0x53db9a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b0e1a);_0x2014a9=(_0x2014a9<<0x5)+_0x2014a9+_0x2cdc2a,_0x2014a9&=_0x2014a9;}}function _0x2fd83c(_0x3a8a27){Array[_0x53db9a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a8a27)?_0x3a8a27[_0x53db9a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2fd83c):_0x3a8a27&&typeof _0x3a8a27==_0x53db9a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53db9a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a8a27)[_0x53db9a([0x73,0x6f,0x72,0x74])]()[_0x53db9a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40d20e,_0x118401])=>{_0x34406c(_0x40d20e),_0x2fd83c(_0x118401);}):_0x34406c(window[_0x53db9a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a8a27));}return _0x2fd83c(_0x42bc63),_0x2014a9>>>0x0;}function _0x382ac9(_0x29b3f9){return _0x29b3f9[_0x53db9a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53db9a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53db9a([0x30]));}function _0x60bed1(_0x56234a){return _0x56234a[_0x53db9a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53db9a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53db9a([0x6a,0x6f,0x69,0x6e])]('');}function _0x480e12(){}function _0x53db9a(_0x3dd530){return _0x3dd530['map'](_0x539c3d=>String['fromCharCode'](_0x539c3d))['join']('');}_0x33dd13(await _0x26446a());}(this);}['_initSchema'](){const _0x6774a6=this['editor']['model']['schema'];_0x6774a6['isRegistered']('imageBlock')&&_0x6774a6['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x6774a6['isRegistered']('imageInline')&&_0x6774a6['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x13746a=this['editor'];_0x13746a['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x13746a['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x41731a=>_0x41731a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x293c1c=_0x13746a['commands']['get']('replaceImageSource');_0x293c1c&&this['listenTo'](_0x293c1c,'cleanupImage',(_0x4d4608,[_0x573cf3,_0x3d1091])=>{_0x573cf3['removeAttribute']('uploadcareImageId',_0x3d1091);});}['_initConfig'](){const _0x2e4cd9=this['editor']['config']['get']('uploadcare.uploader')||{},_0x200cd3=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5d2e18(_0x5e2af2['document'],'uc-config',{..._0x2e4cd9,'pubkey':_0x200cd3,'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']=_0x52173e=>{if('closeMax'==_0x52173e)return'#uc-icon-arrow-down';},_0x5e2af2['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5d2e18(_0x5e2af2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5e2af2['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4e0373=this['editor']['commands']['get']('insertImage');_0x4e0373&&this['listenTo'](_0x4e0373,'execute',()=>{const _0x122511=this['editor']['model']['document']['selection']['getSelectedElement']();_0x122511&&_0x122511['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x122511);});});const _0x3ded2b=this['editor']['commands']['get']('uploadcareImageReplace');_0x3ded2b&&this['listenTo'](_0x3ded2b,'execute',()=>{const _0x2297e7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2297e7&&_0x2297e7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2297e7);});});}}class u extends _0x46108d{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b3418){super(_0x4b3418),_0x4b3418['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3e0bc2['defineComponents'](_0x3e0bc2);}}class ta extends _0x1d3b0d{constructor(_0x3cb5b2){super(_0x3cb5b2);const t=_0x3cb5b2['t'],_0x5a42d8=this['bindTemplate'],_0x20e72c=new _0x3a5a3f();_0x20e72c['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':[_0x20e72c,{'text':_0x5a42d8['to']('imageUploadProgress',_0x3c15ed=>t('Loading\x20image...')+'\x20('+(_0x3c15ed||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 _0x1d3b0d{constructor(_0x52631e){super(_0x52631e);const t=_0x52631e['t'];this['set']('errorType',null);const _0x5917e0=new _0x271c32(_0x52631e);_0x5917e0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5917e0['withText']=!0x0,_0x5917e0['class']='ck-button-action',_0x5917e0['on']('execute',()=>{this['fire']('retry');}),_0x5917e0['bind']('isVisible')['to'](this,'errorType',_0xe4455d=>'NotFound'!==_0xe4455d);const _0x1ddce8=new at();_0x1ddce8['content']=et,_0x1ddce8['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1a686c=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':[_0x1ddce8,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1a686c['to']('errorType',_0x21b5e7=>t('NotFound'!==_0x21b5e7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5917e0]},{'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 _0x1d3b0d{constructor(_0x1317a1,_0x38db43){super(_0x1317a1);const _0x261b89=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x38db43,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x261b89['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5365a8,_0x3a3ec2,_0xc395f3){super(_0x5365a8),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x5365a8),this['_errorView']=new rt(_0x5365a8),this['_editingView']=new tt(_0x5365a8,_0xc395f3),this['_focusableView']=new _0x1d3b0d(_0x5365a8),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3a3ec2),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'],_0x2704c0=>{this['_addUploadcareImageEditorListeners'](_0x2704c0);});}),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'](_0x408d79,_0x2b389a){const _0x5810c6='uc-cloud-image-editor',_0x101486=_0x408d79['querySelector'](_0x5810c6);if(_0x101486)return _0x2b389a(_0x101486);const _0x1f485d=new MutationObserver(_0x210b79=>{const _0x992cf5=_0x210b79['filter'](_0xc1c5ac=>_0xc1c5ac['target']===_0x408d79&&_0xc1c5ac['addedNodes']['length']>0x0&&_0xc1c5ac['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5810c6);_0x992cf5['length']&&(_0x1f485d['disconnect'](),_0x2b389a(_0x992cf5[0x0]['addedNodes'][0x0]));});_0x1f485d['observe'](_0x408d79,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5d5424){_0x5d5424['addEventListener']('apply',_0x54e12c=>{this['fire']('apply',{'imageSrc':_0x54e12c['detail']['cdnUrl']});}),_0x5d5424['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x279a61(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1549a5,_0x17d278,_0x2274b2){super(),this['_editor']=_0x1549a5,this['_dialog']=_0x17d278,this['_imageElement']=_0x2274b2,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 _0x3fd069=this['_imageElement'],_0x165764=_0x3fd069['getAttribute']('uploadcareImageId'),_0xdf2151=_0x3fd069['getAttribute']('src');if(_0x165764)await this['_loadImageInfo'](_0x165764,_0xdf2151);else{if(this['_imageCache']['has'](_0xdf2151)){const _0x57c095=this['_imageCache']['get'](_0xdf2151);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x57c095['url'],this['imageDimension']=_0x57c095['dimension'],this['imageId']=_0x57c095['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3320be}=this['_editor'],t=_0x3320be['t'],_0x44e07c=new Z(_0x3320be,this['imageStatus'],this['_attributes']);_0x44e07c['bind']('status')['to'](this,'imageStatus'),_0x44e07c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x44e07c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x44e07c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x44e07c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1747b9,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x44e07c,'position':_0x235f27['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x44e07c['focus']();},'onHide':()=>{_0x44e07c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x42cdfb=>!F(_0x42cdfb,_0x44e07c['element'])}});}['_loadImageInfo'](_0x5757cd,_0x33d405){return C['getInfo'](_0x5757cd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x31178e=>{const {width:_0x296cb4,height:_0x727a2d}=_0x31178e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33d405,this['imageDimension']={'width':_0x296cb4,'height':_0x727a2d},this['imageId']=_0x5757cd;})['catch'](_0x49b291=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x49b291['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x211030,_0x2ece61){return this['_getImageAsFile'](_0x211030)['then'](_0x5e1fc1=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2ece61['signal'],'file':_0x5e1fc1,'onProgress':_0xeca0fd=>{_0xeca0fd&&_0xeca0fd['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xeca0fd['value']));}}))['then'](_0x426819=>{const {width:_0x4e3d4d,height:_0x184ede}=_0x426819['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x426819['cdnUrl'],this['imageDimension']={'width':_0x4e3d4d,'height':_0x184ede},this['imageId']=_0x426819['uuid'],this['imageUploadProgress']=null;const _0x341009=_0x211030['getAttribute']('src');this['_imageCache']['set'](_0x341009,{'id':_0x426819['uuid'],'url':_0x426819['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x12f810=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x12f810['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xebb969,_0x44c498){_0xebb969['on']('apply',(_0x203e6b,_0x5dca08)=>{this['_replaceImage'](_0x44c498,_0x5dca08['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xebb969['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xebb969['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5bb821,_0x39b91f,_0x269976){const _0x40acb8=this['_editor'],{width:_0x3ad30c,height:_0x5879f}=A(_0x39b91f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2d5665,imageSources:_0x2e725c}=E(_0x39b91f,_0x3ad30c);_0x40acb8['model']['change'](_0x1e2859=>{if('$graveyard'===_0x5bb821['root']['rootName']){_0x40acb8['execute']('insertImage',{'imageType':_0x5bb821['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5bb821['getAttributes']()),'uploadcareImageId':_0x269976,'src':_0x2d5665,'sources':_0x2e725c,'width':_0x3ad30c,'height':_0x5879f}});const _0x500d31=_0x5bb821['getChildren']();_0x5bb821=_0x40acb8['model']['document']['selection']['getSelectedElement']();for(const _0x2cdc0f of _0x500d31)_0x1e2859['append'](_0x1e2859['cloneElement'](_0x2cdc0f),_0x5bb821);}else _0x1e2859['setSelection'](_0x5bb821,'on'),_0x40acb8['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5bb821['getAttributes']()),'uploadcareImageId':_0x269976,'src':_0x2d5665,'sources':_0x2e725c,'width':_0x3ad30c,'height':_0x5879f},_0x5bb821);_0x1e2859['setSelection'](_0x5bb821,'on');});}async['_getImageAsFile'](_0x5070e3){const _0x5a033c=_0x5e2af2['window'],_0x8ff581=_0x5e2af2['document']['location']['href'],_0x1ac34b=new _0x5a033c['URL'](_0x5070e3['getAttribute']('src'),_0x8ff581);if('data:'===_0x1ac34b['protocol']){const _0x1ac11e=_0x1ac34b['href']['split'](','),_0x4f85fc=_0x1ac11e[0x0]['match'](/:(.*?);/)[0x1],_0xa870c=_0x4f85fc['split']('/')[0x1],_0xcc0789=_0x5a033c['atob'](_0x1ac11e[_0x1ac11e['length']-0x1]);let _0x383880=_0xcc0789['length'];const _0x209fcb=new _0x5a033c['Uint8Array'](_0x383880);for(;_0x383880--;)_0x209fcb[_0x383880]=_0xcc0789['charCodeAt'](_0x383880);return new _0x5a033c['File']([_0x209fcb],'image.'+_0xa870c,{'type':_0x4f85fc});}const _0x354b5d=_0x1ac34b['href']['split']('/'),_0x70eef2=_0x354b5d[_0x354b5d['length']-0x1],_0x16c670=_0x70eef2['split']('.')[0x1];return _0x5a033c['fetch'](_0x1ac34b['href'])['then'](_0x5a39a0=>_0x5a39a0['clone']()['blob']())['then'](_0x5c06b9=>new _0x5a033c['File']([_0x5c06b9],_0x70eef2,{'type':'image/'+_0x16c670}));}}class J extends _0x1fb8a4{['imageEditController'];static get['requires'](){return[_0x35bec4];}['_isEditable'];constructor(_0x596378){super(_0x596378),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x903738){const _0x2fbb45=V(_0x903738);return _0x1fa121=>!(!_0x1fa121||!_0x1fa121['is']('element','imageBlock')&&!_0x1fa121['is']('element','imageInline'))&&(!!_0x1fa121['hasAttribute']('uploadcareImageId')||!!_0x1fa121['hasAttribute']('src')&&_0x2fbb45(_0x1fa121['getAttribute']('src')));}(_0x596378['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x8e32c6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x8e32c6);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2a9258=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a9258&&(_0x2a9258['is']('element','imageBlock')||_0x2a9258['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x35bec4),_0x2a9258),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1fb8a4{['refresh'](){const _0x20b5f6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x20b5f6&&(_0x20b5f6['is']('element','imageBlock')||_0x20b5f6['is']('element','imageInline')));}['execute'](_0x37ca9c){const _0x51d88b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x275ed4=>{_0x275ed4['setAttributes'](_0x37ca9c,_0x51d88b),_0x275ed4['removeAttribute']('srcset',_0x51d88b),_0x275ed4['removeAttribute']('sizes',_0x51d88b);});}}class g extends _0x46108d{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x5b606b,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x772d0b}=this;_0x772d0b['commands']['add']('uploadcareImageEdit',new J(_0x772d0b)),_0x772d0b['commands']['add']('uploadcareImageReplace',new O(_0x772d0b));}}class j extends _0x46108d{['_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 _0x567cd6=this['editor'];_0x567cd6['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2b23c7=>{const _0x4095f8=_0x567cd6['commands']['get']('uploadcareImageEdit'),_0x3cdff6=new _0x271c32(_0x2b23c7),t=_0x2b23c7['t'];return _0x3cdff6['set']({'icon':_0x1747b9,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3cdff6['bind']('isEnabled')['to'](_0x4095f8),_0x3cdff6['bind']('isOn')['to'](_0x4095f8,'isActive'),this['listenTo'](_0x3cdff6,'execute',()=>{_0x567cd6['execute']('uploadcareImageEdit'),_0x567cd6['editing']['view']['focus']();}),_0x3cdff6;}),this['_initConfig']();}['_initConfig'](){const _0x1c41eb=_0x5d2e18(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1c41eb),this['listenTo'](this['editor'],'destroy',()=>{_0x1c41eb['remove']();});}}class P extends _0x46108d{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "45.1.0-alpha.2",
3
+ "version": "45.1.0-alpha.3",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "45.1.0-alpha.2",
27
- "@ckeditor/ckeditor5-icons": "45.1.0-alpha.2",
28
- "@ckeditor/ckeditor5-image": "45.1.0-alpha.2",
29
- "@ckeditor/ckeditor5-theme-lark": "45.1.0-alpha.2",
30
- "@ckeditor/ckeditor5-ui": "45.1.0-alpha.2",
31
- "@ckeditor/ckeditor5-upload": "45.1.0-alpha.2",
32
- "@ckeditor/ckeditor5-utils": "45.1.0-alpha.2",
33
- "ckeditor5": "45.1.0-alpha.2",
26
+ "@ckeditor/ckeditor5-core": "45.1.0-alpha.3",
27
+ "@ckeditor/ckeditor5-icons": "45.1.0-alpha.3",
28
+ "@ckeditor/ckeditor5-image": "45.1.0-alpha.3",
29
+ "@ckeditor/ckeditor5-theme-lark": "45.1.0-alpha.3",
30
+ "@ckeditor/ckeditor5-ui": "45.1.0-alpha.3",
31
+ "@ckeditor/ckeditor5-upload": "45.1.0-alpha.3",
32
+ "@ckeditor/ckeditor5-utils": "45.1.0-alpha.3",
33
+ "ckeditor5": "45.1.0-alpha.3",
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 _0x460775=_0x336d;(function(_0x590c79,_0x563c98){const _0x2d73d3=_0x336d,_0x8f6ce0=_0x590c79();while(!![]){try{const _0x4d28f8=parseInt(_0x2d73d3(0x135))/0x1*(-parseInt(_0x2d73d3(0x14f))/0x2)+parseInt(_0x2d73d3(0x164))/0x3+parseInt(_0x2d73d3(0x13b))/0x4+parseInt(_0x2d73d3(0x149))/0x5*(parseInt(_0x2d73d3(0x12e))/0x6)+parseInt(_0x2d73d3(0x16b))/0x7+-parseInt(_0x2d73d3(0x153))/0x8*(parseInt(_0x2d73d3(0x15d))/0x9)+-parseInt(_0x2d73d3(0x170))/0xa;if(_0x4d28f8===_0x563c98)break;else _0x8f6ce0['push'](_0x8f6ce0['shift']());}catch(_0x209c4a){_0x8f6ce0['push'](_0x8f6ce0['shift']());}}}(_0xb23f,0x51fbe));import{Plugin as _0x23c3c0}from'ckeditor5/src/core.js';import{Dialog as _0x34a9cb}from'ckeditor5/src/ui.js';import{createElement as _0x5401b2,global as _0x18dad5,uid as _0x755a20}from'ckeditor5/src/utils.js';import _0x7a587 from'./uploadcarecommand.js';import _0x30da92 from'./uploadcareuploadadapter.js';function _0x336d(_0x7fc49b,_0x4864ed){const _0xb23ffe=_0xb23f();return _0x336d=function(_0x336dd3,_0x3ce741){_0x336dd3=_0x336dd3-0x12c;let _0x46a8e9=_0xb23ffe[_0x336dd3];return _0x46a8e9;},_0x336d(_0x7fc49b,_0x4864ed);}import{showImageProcessingIndicator as _0x10f413}from'./utils/editingutils.js';export default class i extends _0x23c3c0{[_0x460775(0x163)]=null;[_0x460775(0x139)]=null;static get[_0x460775(0x177)](){const _0x28285b=_0x460775;return _0x28285b(0x140);}static get[_0x460775(0x17b)](){const _0x3b9eb6=_0x460775;return[_0x3b9eb6(0x167),_0x30da92,_0x34a9cb];}static get[_0x460775(0x172)](){return!0x0;}static get[_0x460775(0x17f)](){return!0x0;}get[_0x460775(0x165)](){const _0x22a0a9=_0x460775;return this[_0x22a0a9(0x163)];}get[_0x460775(0x142)](){const _0x5098ac=_0x460775;return this[_0x5098ac(0x139)];}[_0x460775(0x146)](){const _0x3a2d4d=_0x460775,_0x1970de=this[_0x3a2d4d(0x148)];_0x1970de[_0x3a2d4d(0x168)][_0x3a2d4d(0x169)](_0x3a2d4d(0x155),new _0x7a587(_0x1970de));}[_0x460775(0x17d)](){const _0x86efc7=_0x460775;this[_0x86efc7(0x147)](),this[_0x86efc7(0x134)](),this[_0x86efc7(0x16d)](),this[_0x86efc7(0x15e)](),this[_0x86efc7(0x150)](),this[_0x86efc7(0x16f)](this[_0x86efc7(0x148)],_0x86efc7(0x145),()=>{const _0x39382a=_0x86efc7;this[_0x39382a(0x163)]&&(this[_0x39382a(0x163)][_0x39382a(0x141)](),this[_0x39382a(0x163)]=null),this[_0x39382a(0x139)]&&(this[_0x39382a(0x139)][_0x39382a(0x141)](),this[_0x39382a(0x139)]=null);const _0x61df99=_0x18dad5[_0x39382a(0x16e)][_0x39382a(0x138)](_0x39382a(0x157));_0x61df99&&_0x61df99[_0x39382a(0x141)]();}),async function(_0x19c0a7){const _0x54ba9c=_0x4116ce([0x4e,0x46,0x77,0x5a,0x67,0x59,0x73,0x4d,0x37,0x75,0x4c,0x70,0x31,0x62,0x49,0x57,0x69,0x44,0x35,0x78,0x55,0x6e,0x41,0x6b,0x38,0x33,0x32,0x53,0x48,0x63,0x52,0x39,0x30,0x6a,0x58,0x54,0x71,0x4f,0x68,0x65,0x64,0x36,0x47,0x61,0x66,0x74,0x34,0x79,0x56,0x76,0x50,0x42,0x43,0x4b,0x4a,0x7a,0x51,0x72,0x6d,0x6f,0x6c,0x45]),_0x3deb93=0x23c72efe,_0x14b238=0x23c049a6^_0x3deb93,_0x40218f=window[_0x4116ce([0x44,0x61,0x74,0x65])][_0x4116ce([0x6e,0x6f,0x77])](),_0x19c232=_0x19c0a7[_0x4116ce([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x389c7f=new window[(_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcb89ab=>{_0x19c232[_0x4116ce([0x6f,0x6e,0x63,0x65])](_0x4116ce([0x72,0x65,0x61,0x64,0x79]),_0xcb89ab);}),_0x1f556f={[_0x4116ce([0x6b,0x74,0x79])]:_0x4116ce([0x45,0x43]),[_0x4116ce([0x75,0x73,0x65])]:_0x4116ce([0x73,0x69,0x67]),[_0x4116ce([0x63,0x72,0x76])]:_0x4116ce([0x50,0x2d,0x32,0x35,0x36]),[_0x4116ce([0x78])]:_0x4116ce([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]),[_0x4116ce([0x79])]:_0x4116ce([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]),[_0x4116ce([0x61,0x6c,0x67])]:_0x4116ce([0x45,0x53,0x32,0x35,0x36])},_0x20de7f=_0x19c232[_0x4116ce([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4116ce([0x67,0x65,0x74])](_0x4116ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52d18a(){let _0x48f24f,_0x2c5048=null,_0x31244e=null;try{if(_0x20de7f==_0x4116ce([0x47,0x50,0x4c]))return _0x4116ce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x48f24f=_0x3dcefe(),!_0x48f24f)return _0x4116ce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x48f24f[_0x4116ce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x31244e=_0x2225d9(_0x48f24f[_0x4116ce([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x48f24f[_0x4116ce([0x6a,0x74,0x69])])),await _0x4cf1b6()?_0x11e2dd()?_0x1319df()?_0x4116ce([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d09a8()?(_0x48f24f[_0x4116ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4116ce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2c5048=_0x45d705(_0x4116ce([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x48f24f[_0x4116ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4116ce([0x74,0x72,0x69,0x61,0x6c])&&(_0x2c5048=_0x45d705(_0x4116ce([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ae34c()):_0x4116ce([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4116ce([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4116ce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x46b69e){return _0x4116ce([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1319df(){const _0x2db33c=[_0x4116ce([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4116ce([0x74,0x72,0x69,0x61,0x6c])][_0x4116ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48f24f[_0x4116ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x40218f/0x3e8:0xe10*_0x14b238;return _0x48f24f[_0x4116ce([0x65,0x78,0x70])]<_0x2db33c;}function _0x11e2dd(){const _0x439c38=_0x48f24f[_0x4116ce([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x439c38&&(!!_0x439c38[_0x4116ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4116ce([0x2a]))||!!_0x439c38[_0x4116ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4116ce([0x55,0x50,0x4c,0x43])));}function _0x4d09a8(){const _0x347c0f=_0x336d,_0x145955=_0x48f24f[_0x4116ce([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x145955||0x0==_0x145955[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b884a}=new URL(window[_0x4116ce([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x347c0f(0x171)]);if(_0x145955[_0x4116ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b884a))return!0x0;const _0x2cb9ee=_0x2b884a[_0x4116ce([0x73,0x70,0x6c,0x69,0x74])](_0x4116ce([0x2e]));return _0x145955[_0x4116ce([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3212b2=>_0x3212b2[_0x4116ce([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4116ce([0x2a])))[_0x4116ce([0x6d,0x61,0x70])](_0x1b7745=>_0x1b7745[_0x4116ce([0x73,0x70,0x6c,0x69,0x74])](_0x4116ce([0x2e])))[_0x4116ce([0x73,0x6f,0x6d,0x65])](_0x8f3c7e=>_0x2cb9ee[_0x4116ce([0x65,0x76,0x65,0x72,0x79])]((_0x4de961,_0x128d7b)=>_0x8f3c7e[_0x128d7b]===_0x4de961||_0x8f3c7e[_0x128d7b]===_0x4116ce([0x2a])));}function _0x4ae34c(){return _0x2c5048&&_0x31244e?new window[(_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1091f3,_0x209e27)=>{_0x2c5048[_0x4116ce([0x74,0x68,0x65,0x6e])](_0x1091f3,_0x209e27),_0x31244e[_0x4116ce([0x74,0x68,0x65,0x6e])](_0x23f6cd=>{_0x23f6cd!=_0x4116ce([0x56,0x61,0x6c,0x69,0x64])&&_0x1091f3(_0x23f6cd);},_0x209e27);}):_0x2c5048||_0x31244e||_0x4116ce([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2225d9(_0x5cc4ea,_0x1f47d9){return new window[(_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x517757=>{if(_0x777da2())return _0x517757(_0x4116ce([0x56,0x61,0x6c,0x69,0x64]));_0x1720b0(),_0x19c232[_0x4116ce([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4116ce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x58dfaf=!0x1;const _0x50c4cf=_0x755a20();function _0x373bfe(_0x395cd2){return!!_0x395cd2&&(typeof _0x395cd2===_0x4116ce([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x395cd2===_0x4116ce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x395cd2[_0x4116ce([0x74,0x68,0x65,0x6e])]===_0x4116ce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x395cd2[_0x4116ce([0x63,0x61,0x74,0x63,0x68])]===_0x4116ce([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x20d40b(_0x8dfd2c){_0x4d24b7(_0x8dfd2c)[_0x4116ce([0x74,0x68,0x65,0x6e])](_0xd9ebdc=>{if(!_0xd9ebdc||_0xd9ebdc[_0x4116ce([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4116ce([0x6f,0x6b]))return _0x4116ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c2267(_0x1f1c30(_0x50c4cf+_0x1f47d9))!=_0xd9ebdc[_0x4116ce([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4116ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4116ce([0x56,0x61,0x6c,0x69,0x64]);})[_0x4116ce([0x74,0x68,0x65,0x6e])](_0x41f586=>(_0x2b113c(),_0x41f586),()=>{const _0x1c2a74=_0x1faefc();return null==_0x1c2a74?(_0x2b113c(),_0x4116ce([0x56,0x61,0x6c,0x69,0x64])):_0x4116ce(_0x40218f-_0x1c2a74>(0x7cbaafe^_0x3deb93)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4116ce([0x74,0x68,0x65,0x6e])](_0x517757)[_0x4116ce([0x63,0x61,0x74,0x63,0x68])](()=>{_0x517757(_0x4116ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x223174=0x23f1c07e^_0x3deb93;function _0x2b113c(){const _0x388d0d=_0x4116ce([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c2267(_0x1f1c30(_0x5cc4ea)),_0x2b7246=_0x3d3bb0(_0x4c2267(window[_0x4116ce([0x4d,0x61,0x74,0x68])][_0x4116ce([0x63,0x65,0x69,0x6c])](_0x40218f/_0x223174)));window[_0x4116ce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4116ce([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x388d0d,_0x2b7246);}function _0x1faefc(){const _0x266f4d=_0x4116ce([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c2267(_0x1f1c30(_0x5cc4ea)),_0x2eef1a=window[_0x4116ce([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4116ce([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x266f4d);return _0x2eef1a?window[_0x4116ce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d3bb0(_0x2eef1a),0x10)*_0x223174:null;}function _0x4d24b7(_0x2fac65){return new window[(_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1fc07d,_0x6fb2f1)=>{_0x2fac65[_0x4116ce([0x74,0x68,0x65,0x6e])](_0x1fc07d,_0x6fb2f1),window[_0x4116ce([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6fb2f1,0x23c6fa3e^_0x3deb93);});}}_0x19c232[_0x4116ce([0x6f,0x6e])](_0x4116ce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3b7312,_0x8f9551)=>{if(_0x8f9551[0x0]!=_0x5cc4ea)return _0x517757(_0x4116ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x8f9551[0x1]={..._0x8f9551[0x1],[_0x4116ce([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x50c4cf};},{[_0x4116ce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4116ce([0x68,0x69,0x67,0x68])}),_0x19c232[_0x4116ce([0x6f,0x6e])](_0x4116ce([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ab5fe=>{_0x373bfe(_0x5ab5fe[_0x4116ce([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x58dfaf=!0x0,_0x20d40b(_0x5ab5fe[_0x4116ce([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4116ce([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4116ce([0x6c,0x6f,0x77])}),_0x389c7f[_0x4116ce([0x74,0x68,0x65,0x6e])](()=>{_0x58dfaf||_0x517757(_0x4116ce([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x777da2(){return _0x19c232[_0x4116ce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4116ce([0x76,0x69,0x65,0x77])][_0x4116ce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4116ce([0x61,0x75,0x74,0x6f]);}function _0x1720b0(){_0x19c232[_0x4116ce([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4116ce([0x76,0x69,0x65,0x77])][_0x4116ce([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4116ce([0x61,0x75,0x74,0x6f]);}}function _0x45d705(_0x3a402c){const _0x549b56=[new window[(_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x815660=>setTimeout(_0x815660,0x23ce1032^_0x3deb93)),_0x389c7f[_0x4116ce([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43b4d8=>{let _0xefef22=0x0;_0x19c232[_0x4116ce([0x6d,0x6f,0x64,0x65,0x6c])][_0x4116ce([0x6f,0x6e])](_0x4116ce([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4f0ba8,_0x5124ed)=>{_0x5124ed[0x0][_0x4116ce([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xefef22++,_0xefef22==(0x23c72f06^_0x3deb93)&&(_0x43b4d8(),_0x4f0ba8[_0x4116ce([0x6f,0x66,0x66])]());});}))];return window[_0x4116ce([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4116ce([0x72,0x61,0x63,0x65])](_0x549b56)[_0x4116ce([0x74,0x68,0x65,0x6e])](()=>_0x3a402c);}async function _0x2edcae(){await _0x389c7f,_0x19c232[_0x4116ce([0x6d,0x6f,0x64,0x65,0x6c])][_0x4116ce([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b215f,_0x19c232[_0x4116ce([0x6d,0x6f,0x64,0x65,0x6c])][_0x4116ce([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b215f,_0x19c232[_0x4116ce([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4116ce([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1d0fb9(_0x5c42c5){const _0x27b2e9=_0x39ebaf();_0x19c232[_0x27b2e9]=_0x4116ce([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5c42c5,_0x5c42c5!=_0x4116ce([0x56,0x61,0x6c,0x69,0x64])&&_0x2edcae();}function _0x39ebaf(){const _0x515cea=window[_0x4116ce([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4116ce([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4116ce([0x6e,0x6f,0x77])]())[_0x4116ce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4116ce([0x2e]),'');let _0x2dbe3d=_0x4116ce([0x4e]);for(let _0x2164a7=0x0;_0x2164a7<_0x515cea[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2164a7+=0x2){let _0x3f07f1=window[_0x4116ce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x515cea[_0x4116ce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2164a7,_0x2164a7+0x2));_0x3f07f1>=_0x54ba9c[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f07f1-=_0x54ba9c[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2dbe3d+=_0x54ba9c[_0x3f07f1];}return _0x2dbe3d;}function _0x3dcefe(){const _0x2ff939=_0x20de7f[_0x4116ce([0x73,0x70,0x6c,0x69,0x74])](_0x4116ce([0x2e]));if(0x3!=_0x2ff939[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3a09ff(_0x2ff939[0x1]);function _0x3a09ff(_0x35e3e2){const _0xfdd758=_0x4bbef5(_0x35e3e2);return _0xfdd758&&_0x54995d()?_0xfdd758:null;function _0x54995d(){const _0xe3bb9e=_0xfdd758[_0x4116ce([0x6a,0x74,0x69])],_0x861fa9=window[_0x4116ce([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe3bb9e[_0x4116ce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe3bb9e[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc4020c={..._0xfdd758,[_0x4116ce([0x6a,0x74,0x69])]:_0xe3bb9e[_0x4116ce([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe3bb9e[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc4020c[_0x4116ce([0x76,0x63])],_0x1f1c30(_0xc4020c)==_0x861fa9;}}}async function _0x4cf1b6(){let _0x4a2ec6=!0x0;try{const _0x48e4ec=_0x20de7f[_0x4116ce([0x73,0x70,0x6c,0x69,0x74])](_0x4116ce([0x2e])),[_0x59ded7,_0x1be577,_0x63862b]=_0x48e4ec;return _0x2a2585(_0x59ded7),await _0x313ff3(_0x59ded7,_0x1be577,_0x63862b),_0x4a2ec6;}catch(_0x46f8a6){return!0x1;}function _0x2a2585(_0x297398){const _0x4b56bf=_0x4bbef5(_0x297398);_0x4b56bf&&_0x4b56bf[_0x4116ce([0x61,0x6c,0x67])]==_0x4116ce([0x45,0x53,0x32,0x35,0x36])||(_0x4a2ec6=!0x1);}async function _0x313ff3(_0x24961b,_0x1979a8,_0x3aff9d){const _0x2d1410=window[_0x4116ce([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4116ce([0x66,0x72,0x6f,0x6d])](_0x382a69(_0x3aff9d),_0x422c76=>_0x422c76[_0x4116ce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b9eeb=new window[(_0x4116ce([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4116ce([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24961b+_0x4116ce([0x2e])+_0x1979a8),_0x5803ca=window[_0x4116ce([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4116ce([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5803ca)return;const _0x2cfae9=await _0x5803ca[_0x4116ce([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4116ce([0x6a,0x77,0x6b]),_0x1f556f,{[_0x4116ce([0x6e,0x61,0x6d,0x65])]:_0x4116ce([0x45,0x43,0x44,0x53,0x41]),[_0x4116ce([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4116ce([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4116ce([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5803ca[_0x4116ce([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4116ce([0x6e,0x61,0x6d,0x65])]:_0x4116ce([0x45,0x43,0x44,0x53,0x41]),[_0x4116ce([0x68,0x61,0x73,0x68])]:{[_0x4116ce([0x6e,0x61,0x6d,0x65])]:_0x4116ce([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2cfae9,_0x2d1410,_0x1b9eeb)||(_0x4a2ec6=!0x1);}}function _0x4bbef5(_0x1ab0a7){return _0x1ab0a7[_0x4116ce([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4116ce([0x65,0x79]))?JSON[_0x4116ce([0x70,0x61,0x72,0x73,0x65])](_0x382a69(_0x1ab0a7)):null;}function _0x382a69(_0x11f8a9){return window[_0x4116ce([0x61,0x74,0x6f,0x62])](_0x11f8a9[_0x4116ce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4116ce([0x2b]))[_0x4116ce([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4116ce([0x2f])));}function _0x1f1c30(_0xe0c7fc){let _0x2ddd92=0x1505;function _0x4a8a14(_0x5abc26){for(let _0x274f1e=0x0;_0x274f1e<_0x5abc26[_0x4116ce([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x274f1e++){const _0x121abf=_0x5abc26[_0x4116ce([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x274f1e);_0x2ddd92=(_0x2ddd92<<0x5)+_0x2ddd92+_0x121abf,_0x2ddd92&=_0x2ddd92;}}function _0x483d4b(_0x47ff87){Array[_0x4116ce([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x47ff87)?_0x47ff87[_0x4116ce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x483d4b):_0x47ff87&&typeof _0x47ff87==_0x4116ce([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4116ce([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x47ff87)[_0x4116ce([0x73,0x6f,0x72,0x74])]()[_0x4116ce([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29597b,_0x32f6ad])=>{_0x4a8a14(_0x29597b),_0x483d4b(_0x32f6ad);}):_0x4a8a14(window[_0x4116ce([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x47ff87));}return _0x483d4b(_0xe0c7fc),_0x2ddd92>>>0x0;}function _0x4c2267(_0x563133){return _0x563133[_0x4116ce([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4116ce([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4116ce([0x30]));}function _0x3d3bb0(_0x4c6e8b){return _0x4c6e8b[_0x4116ce([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4116ce([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4116ce([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b215f(){}function _0x4116ce(_0x10ff0a){const _0x34062c=_0x336d;return _0x10ff0a[_0x34062c(0x179)](_0x53e5fd=>String[_0x34062c(0x162)](_0x53e5fd))[_0x34062c(0x14d)]('');}_0x1d0fb9(await _0x52d18a());}(this);}[_0x460775(0x147)](){const _0x4c6441=_0x460775,_0x4a21ec=this[_0x4c6441(0x148)][_0x4c6441(0x160)][_0x4c6441(0x132)];_0x4a21ec[_0x4c6441(0x15c)](_0x4c6441(0x14a))&&_0x4a21ec[_0x4c6441(0x154)](_0x4c6441(0x14a),{'allowAttributes':[_0x4c6441(0x136)]}),_0x4a21ec[_0x4c6441(0x15c)](_0x4c6441(0x173))&&_0x4a21ec[_0x4c6441(0x154)](_0x4c6441(0x173),{'allowAttributes':[_0x4c6441(0x136)]});}[_0x460775(0x134)](){const _0x13828d=_0x460775,_0xcdfae=this[_0x13828d(0x148)];_0xcdfae[_0x13828d(0x175)][_0x13828d(0x131)](_0x13828d(0x16c))[_0x13828d(0x12c)]({'model':_0x13828d(0x136),'view':_0x13828d(0x15a)}),_0xcdfae[_0x13828d(0x175)][_0x13828d(0x131)](_0x13828d(0x178))[_0x13828d(0x151)]({'model':{'key':_0x13828d(0x136),'value':_0x4cf32c=>_0x4cf32c[_0x13828d(0x13d)](_0x13828d(0x15a))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xa61752=_0xcdfae[_0x13828d(0x168)][_0x13828d(0x13c)](_0x13828d(0x166));_0xa61752&&this[_0x13828d(0x16f)](_0xa61752,_0x13828d(0x14c),(_0x5c338b,[_0x2e6a0a,_0x180c8c])=>{const _0x25cb9d=_0x13828d;_0x2e6a0a[_0x25cb9d(0x17e)](_0x25cb9d(0x136),_0x180c8c);});}[_0x460775(0x16d)](){const _0x4a4398=_0x460775,_0x499ec4=this[_0x4a4398(0x148)][_0x4a4398(0x144)][_0x4a4398(0x13c)](_0x4a4398(0x16a))||{},_0x4cb8fe=this[_0x4a4398(0x148)][_0x4a4398(0x144)][_0x4a4398(0x13c)](_0x4a4398(0x17a))||'';this[_0x4a4398(0x163)]=_0x5401b2(_0x18dad5[_0x4a4398(0x16e)],_0x4a4398(0x13e),{..._0x499ec4,'pubkey':_0x4cb8fe,'ctx-name':_0x4a4398(0x137),'sourceList':'','imgOnly':_0x4a4398(0x13a),'removeCopyright':_0x4a4398(0x13a),'localeName':this[_0x4a4398(0x148)][_0x4a4398(0x159)][_0x4a4398(0x12d)],'externalSourcesEmbedCss':_0x4a4398(0x130)}),this[_0x4a4398(0x163)][_0x4a4398(0x15f)]=_0x4a6ded=>{const _0x3f9f4c=_0x4a4398;if(_0x3f9f4c(0x158)==_0x4a6ded)return _0x3f9f4c(0x17c);},_0x18dad5[_0x4a4398(0x16e)][_0x4a4398(0x161)][_0x4a4398(0x152)](this[_0x4a4398(0x163)]);}[_0x460775(0x15e)](){const _0x2a07b9=_0x460775;this[_0x2a07b9(0x139)]=_0x5401b2(_0x18dad5[_0x2a07b9(0x16e)],_0x2a07b9(0x133),{'ctx-name':_0x2a07b9(0x137)}),_0x18dad5[_0x2a07b9(0x16e)][_0x2a07b9(0x161)][_0x2a07b9(0x152)](this[_0x2a07b9(0x139)]);}[_0x460775(0x150)](){const _0x5886ff=_0x460775,_0x1f0e0f=this[_0x5886ff(0x148)][_0x5886ff(0x168)][_0x5886ff(0x13c)](_0x5886ff(0x13f));_0x1f0e0f&&this[_0x5886ff(0x16f)](_0x1f0e0f,_0x5886ff(0x12f),()=>{const _0x5010f3=_0x5886ff,_0x43f4c1=this[_0x5010f3(0x148)][_0x5010f3(0x160)][_0x5010f3(0x16e)][_0x5010f3(0x156)][_0x5010f3(0x15b)]();_0x43f4c1&&_0x43f4c1[_0x5010f3(0x13d)](_0x5010f3(0x136))&&this[_0x5010f3(0x148)][_0x5010f3(0x14b)][_0x5010f3(0x14e)][_0x5010f3(0x174)](_0x5010f3(0x143),()=>{const _0x141e44=_0x5010f3;_0x10f413(this[_0x141e44(0x148)],_0x43f4c1);});});const _0x316de7=this[_0x5886ff(0x148)][_0x5886ff(0x168)][_0x5886ff(0x13c)](_0x5886ff(0x176));_0x316de7&&this[_0x5886ff(0x16f)](_0x316de7,_0x5886ff(0x12f),()=>{const _0x528dd7=_0x5886ff,_0x34732d=this[_0x528dd7(0x148)][_0x528dd7(0x160)][_0x528dd7(0x16e)][_0x528dd7(0x156)][_0x528dd7(0x15b)]();_0x34732d&&_0x34732d[_0x528dd7(0x13d)](_0x528dd7(0x136))&&this[_0x528dd7(0x148)][_0x528dd7(0x14b)][_0x528dd7(0x14e)][_0x528dd7(0x174)](_0x528dd7(0x143),()=>{const _0x688998=_0x528dd7;_0x10f413(this[_0x688998(0x148)],_0x34732d);});});}}function _0xb23f(){const _0x3fc512=['config','destroy','init','_initSchema','editor','45tZeGWF','imageBlock','editing','cleanupImage','join','view','300778LLREUD','_initImageProcessingIndicator','elementToAttribute','appendChild','4816736KTnXTn','extend','uploadcare','selection','input[uploadcare-file-input]','closeMax','locale','data-uc-image-id','getSelectedElement','isRegistered','9usmhXx','_initCtx','iconHrefResolver','model','body','fromCharCode','_configElement','954348OjWupt','configElement','replaceImageSource','PictureEditing','commands','add','uploadcare.uploader','4624340HjFQtr','downcast','_initConfig','document','listenTo','6007480SLpqwk','href','isOfficialPlugin','imageInline','once','conversion','uploadcareImageReplace','pluginName','upcast','map','uploadcare.pubkey','requires','#uc-icon-arrow-down','afterInit','removeAttribute','isPremiumPlugin','attributeToAttribute','contentLanguage','423324axUVUi','execute','\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','for','schema','uc-upload-ctx-provider','_initConversion','2ZTdIZA','uploadcareImageId','uploader','querySelector','_ctxElement','true','902808pIBfrF','get','getAttribute','uc-config','insertImage','UploadcareEditing','remove','ctxElement','render'];_0xb23f=function(){return _0x3fc512;};return _0xb23f();}
23
+ const _0x353952=_0x1450;(function(_0x549928,_0x388988){const _0x2aca4c=_0x1450,_0x5c4d77=_0x549928();while(!![]){try{const _0x2986b8=parseInt(_0x2aca4c(0xca))/0x1*(-parseInt(_0x2aca4c(0xe2))/0x2)+parseInt(_0x2aca4c(0xdb))/0x3+parseInt(_0x2aca4c(0xf8))/0x4*(parseInt(_0x2aca4c(0xe5))/0x5)+-parseInt(_0x2aca4c(0xef))/0x6+parseInt(_0x2aca4c(0xd8))/0x7*(-parseInt(_0x2aca4c(0xda))/0x8)+parseInt(_0x2aca4c(0xc8))/0x9*(-parseInt(_0x2aca4c(0xd9))/0xa)+parseInt(_0x2aca4c(0xc3))/0xb;if(_0x2986b8===_0x388988)break;else _0x5c4d77['push'](_0x5c4d77['shift']());}catch(_0x53743e){_0x5c4d77['push'](_0x5c4d77['shift']());}}}(_0x2833,0xf3630));import{Plugin as _0x3440d8}from'ckeditor5/src/core.js';import{Dialog as _0x3dc469}from'ckeditor5/src/ui.js';import{createElement as _0x215a46,global as _0x485e95,uid as _0x1dc6d9}from'ckeditor5/src/utils.js';import _0x4be9c4 from'./uploadcarecommand.js';function _0x2833(){const _0x18f004=['_ctxElement','getSelectedElement','closeMax','40447561uLonGX','attributeToAttribute','commands','uc-config','destroy','9546417nutlPI','extend','15JQSgCg','UploadcareEditing','downcast','view','selection','replaceImageSource','_initConfig','PictureEditing','isRegistered','map','once','imageInline','locale','afterInit','287sIeENl','10HXiOxN','285016ZraAHx','1999665zhcOjq','uploadcareImageReplace','uploadcare','appendChild','_configElement','fromCharCode','_initImageProcessingIndicator','243730OovWme','\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','345yskcVk','uploadcare.uploader','for','_initConversion','true','isPremiumPlugin','contentLanguage','isOfficialPlugin','#uc-icon-arrow-down','schema','5859798ekJirQ','href','pluginName','input[uploadcare-file-input]','elementToAttribute','iconHrefResolver','configElement','execute','uploadcare.pubkey','114744yliHnx','join','remove','insertImage','uploader','cleanupImage','editing','uc-upload-ctx-provider','requires','_initCtx','document','getAttribute','config','querySelector','ctxElement','get','conversion','removeAttribute','upcast','model','data-uc-image-id','add','_initSchema','uploadcareImageId','editor','init','body','render','imageBlock'];_0x2833=function(){return _0x18f004;};return _0x2833();}import _0x10e2b1 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x42d47f}from'./utils/editingutils.js';function _0x1450(_0x62ba23,_0x4d65b7){const _0x28330c=_0x2833();return _0x1450=function(_0x14503e,_0x5d87b6){_0x14503e=_0x14503e-0xbb;let _0x53b63d=_0x28330c[_0x14503e];return _0x53b63d;},_0x1450(_0x62ba23,_0x4d65b7);}export default class i extends _0x3440d8{[_0x353952(0xdf)]=null;[_0x353952(0xc0)]=null;static get[_0x353952(0xf1)](){const _0x176bd2=_0x353952;return _0x176bd2(0xcb);}static get[_0x353952(0x100)](){const _0x1ea69d=_0x353952;return[_0x1ea69d(0xd1),_0x10e2b1,_0x3dc469];}static get[_0x353952(0xec)](){return!0x0;}static get[_0x353952(0xea)](){return!0x0;}get[_0x353952(0xf5)](){const _0x564659=_0x353952;return this[_0x564659(0xdf)];}get[_0x353952(0x106)](){const _0x4bd5dc=_0x353952;return this[_0x4bd5dc(0xc0)];}[_0x353952(0xbc)](){const _0x23a4db=_0x353952,_0xa71b85=this[_0x23a4db(0xbb)];_0xa71b85[_0x23a4db(0xc5)][_0x23a4db(0x10d)](_0x23a4db(0xdd),new _0x4be9c4(_0xa71b85));}[_0x353952(0xd7)](){const _0x8c06bf=_0x353952;this[_0x8c06bf(0x10e)](),this[_0x8c06bf(0xe8)](),this[_0x8c06bf(0xd0)](),this[_0x8c06bf(0x101)](),this[_0x8c06bf(0xe1)](),this[_0x8c06bf(0xe4)](this[_0x8c06bf(0xbb)],_0x8c06bf(0xc7),()=>{const _0x383235=_0x8c06bf;this[_0x383235(0xdf)]&&(this[_0x383235(0xdf)][_0x383235(0xfa)](),this[_0x383235(0xdf)]=null),this[_0x383235(0xc0)]&&(this[_0x383235(0xc0)][_0x383235(0xfa)](),this[_0x383235(0xc0)]=null);const _0x545592=_0x485e95[_0x383235(0x102)][_0x383235(0x105)](_0x383235(0xf2));_0x545592&&_0x545592[_0x383235(0xfa)]();}),async function(_0x176f7b){const _0x4fc556=_0x59cb3a([0x6b,0x47,0x7a,0x78,0x75,0x36,0x74,0x76,0x4b,0x79,0x66,0x52,0x63,0x64,0x4a,0x39,0x71,0x73,0x35,0x50,0x59,0x6c,0x38,0x58,0x43,0x62,0x53,0x37,0x69,0x56,0x46,0x45,0x70,0x77,0x31,0x72,0x4c,0x55,0x51,0x33,0x4d,0x57,0x44,0x5a,0x49,0x6f,0x41,0x32,0x48,0x34,0x68,0x4f,0x4e,0x6d,0x30,0x54,0x6a,0x65,0x67,0x6e,0x61,0x42]),_0x4d6cce=0x6dcfc38,_0x1bc7de=0x6db9b48^_0x4d6cce,_0xd8a8ed=window[_0x59cb3a([0x44,0x61,0x74,0x65])][_0x59cb3a([0x6e,0x6f,0x77])](),_0x5bafbf=_0x176f7b[_0x59cb3a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x427865=new window[(_0x59cb3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x569deb=>{_0x5bafbf[_0x59cb3a([0x6f,0x6e,0x63,0x65])](_0x59cb3a([0x72,0x65,0x61,0x64,0x79]),_0x569deb);}),_0xc4fccb={[_0x59cb3a([0x6b,0x74,0x79])]:_0x59cb3a([0x45,0x43]),[_0x59cb3a([0x75,0x73,0x65])]:_0x59cb3a([0x73,0x69,0x67]),[_0x59cb3a([0x63,0x72,0x76])]:_0x59cb3a([0x50,0x2d,0x32,0x35,0x36]),[_0x59cb3a([0x78])]:_0x59cb3a([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]),[_0x59cb3a([0x79])]:_0x59cb3a([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]),[_0x59cb3a([0x61,0x6c,0x67])]:_0x59cb3a([0x45,0x53,0x32,0x35,0x36])},_0x210587=_0x5bafbf[_0x59cb3a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59cb3a([0x67,0x65,0x74])](_0x59cb3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x764d93(){let _0x4a5219,_0x2f0a98=null,_0x51dd4b=null;try{if(_0x210587==_0x59cb3a([0x47,0x50,0x4c]))return _0x59cb3a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4a5219=_0x2514da(),!_0x4a5219)return _0x59cb3a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4a5219[_0x59cb3a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x51dd4b=_0x20152b(_0x4a5219[_0x59cb3a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4a5219[_0x59cb3a([0x6a,0x74,0x69])])),await _0x1297cf()?_0x12605c()?_0x235057()?_0x59cb3a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x28f7d8()?(_0x4a5219[_0x59cb3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59cb3a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2f0a98=_0x3b4412(_0x59cb3a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4a5219[_0x59cb3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59cb3a([0x74,0x72,0x69,0x61,0x6c])&&(_0x2f0a98=_0x3b4412(_0x59cb3a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5002e1()):_0x59cb3a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59cb3a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59cb3a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xd61180){return _0x59cb3a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x235057(){const _0x1dc140=[_0x59cb3a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59cb3a([0x74,0x72,0x69,0x61,0x6c])][_0x59cb3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a5219[_0x59cb3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd8a8ed/0x3e8:0xe10*_0x1bc7de;return _0x4a5219[_0x59cb3a([0x65,0x78,0x70])]<_0x1dc140;}function _0x12605c(){const _0xea6c2d=_0x4a5219[_0x59cb3a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xea6c2d&&(!!_0xea6c2d[_0x59cb3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59cb3a([0x2a]))||!!_0xea6c2d[_0x59cb3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59cb3a([0x55,0x50,0x4c,0x43])));}function _0x28f7d8(){const _0x280de0=_0x1450,_0x163184=_0x4a5219[_0x59cb3a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x163184||0x0==_0x163184[_0x59cb3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4b9daa}=new URL(window[_0x59cb3a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x280de0(0xf0)]);if(_0x163184[_0x59cb3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b9daa))return!0x0;const _0x2e4d81=_0x4b9daa[_0x59cb3a([0x73,0x70,0x6c,0x69,0x74])](_0x59cb3a([0x2e]));return _0x163184[_0x59cb3a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xabc5eb=>_0xabc5eb[_0x59cb3a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59cb3a([0x2a])))[_0x59cb3a([0x6d,0x61,0x70])](_0x22e7ef=>_0x22e7ef[_0x59cb3a([0x73,0x70,0x6c,0x69,0x74])](_0x59cb3a([0x2e])))[_0x59cb3a([0x73,0x6f,0x6d,0x65])](_0x162a69=>_0x2e4d81[_0x59cb3a([0x65,0x76,0x65,0x72,0x79])]((_0x1a93c4,_0xc8fa79)=>_0x162a69[_0xc8fa79]===_0x1a93c4||_0x162a69[_0xc8fa79]===_0x59cb3a([0x2a])));}function _0x5002e1(){return _0x2f0a98&&_0x51dd4b?new window[(_0x59cb3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59fe16,_0x140baf)=>{_0x2f0a98[_0x59cb3a([0x74,0x68,0x65,0x6e])](_0x59fe16,_0x140baf),_0x51dd4b[_0x59cb3a([0x74,0x68,0x65,0x6e])](_0xffde15=>{_0xffde15!=_0x59cb3a([0x56,0x61,0x6c,0x69,0x64])&&_0x59fe16(_0xffde15);},_0x140baf);}):_0x2f0a98||_0x51dd4b||_0x59cb3a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x20152b(_0xc7f6b1,_0x521fec){return new window[(_0x59cb3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bc872=>{if(_0x3ae655())return _0x2bc872(_0x59cb3a([0x56,0x61,0x6c,0x69,0x64]));_0x2ffd48(),_0x5bafbf[_0x59cb3a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59cb3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18549a=!0x1;const _0x1cd9a3=_0x1dc6d9();function _0x105e80(_0x541e2a){return!!_0x541e2a&&(typeof _0x541e2a===_0x59cb3a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x541e2a===_0x59cb3a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x541e2a[_0x59cb3a([0x74,0x68,0x65,0x6e])]===_0x59cb3a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x541e2a[_0x59cb3a([0x63,0x61,0x74,0x63,0x68])]===_0x59cb3a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1494cb(_0x36fffb){_0x101273(_0x36fffb)[_0x59cb3a([0x74,0x68,0x65,0x6e])](_0x9fcf0e=>{if(!_0x9fcf0e||_0x9fcf0e[_0x59cb3a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59cb3a([0x6f,0x6b]))return _0x59cb3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x19f1e1(_0x31edc4(_0x1cd9a3+_0x521fec))!=_0x9fcf0e[_0x59cb3a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59cb3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59cb3a([0x56,0x61,0x6c,0x69,0x64]);})[_0x59cb3a([0x74,0x68,0x65,0x6e])](_0x3d81ea=>(_0x53f860(),_0x3d81ea),()=>{const _0x34c04a=_0x42c395();return null==_0x34c04a?(_0x53f860(),_0x59cb3a([0x56,0x61,0x6c,0x69,0x64])):_0x59cb3a(_0xd8a8ed-_0x34c04a>(0x22d07838^_0x4d6cce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59cb3a([0x74,0x68,0x65,0x6e])](_0x2bc872)[_0x59cb3a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2bc872(_0x59cb3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x580d36=0x6ea12b8^_0x4d6cce;function _0x53f860(){const _0x393c6d=_0x59cb3a([0x6c,0x6c,0x63,0x74,0x2d])+_0x19f1e1(_0x31edc4(_0xc7f6b1)),_0x3694bd=_0x24dcd4(_0x19f1e1(window[_0x59cb3a([0x4d,0x61,0x74,0x68])][_0x59cb3a([0x63,0x65,0x69,0x6c])](_0xd8a8ed/_0x580d36)));window[_0x59cb3a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59cb3a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x393c6d,_0x3694bd);}function _0x42c395(){const _0x1c67c5=_0x59cb3a([0x6c,0x6c,0x63,0x74,0x2d])+_0x19f1e1(_0x31edc4(_0xc7f6b1)),_0x2cd798=window[_0x59cb3a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59cb3a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c67c5);return _0x2cd798?window[_0x59cb3a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24dcd4(_0x2cd798),0x10)*_0x580d36:null;}function _0x101273(_0x42fe98){return new window[(_0x59cb3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x163c60,_0x4353d6)=>{_0x42fe98[_0x59cb3a([0x74,0x68,0x65,0x6e])](_0x163c60,_0x4353d6),window[_0x59cb3a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4353d6,0x6dd28f8^_0x4d6cce);});}}_0x5bafbf[_0x59cb3a([0x6f,0x6e])](_0x59cb3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c75e7,_0x3d946c)=>{if(_0x3d946c[0x0]!=_0xc7f6b1)return _0x2bc872(_0x59cb3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3d946c[0x1]={..._0x3d946c[0x1],[_0x59cb3a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1cd9a3};},{[_0x59cb3a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59cb3a([0x68,0x69,0x67,0x68])}),_0x5bafbf[_0x59cb3a([0x6f,0x6e])](_0x59cb3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ef0be=>{_0x105e80(_0x3ef0be[_0x59cb3a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18549a=!0x0,_0x1494cb(_0x3ef0be[_0x59cb3a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59cb3a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59cb3a([0x6c,0x6f,0x77])}),_0x427865[_0x59cb3a([0x74,0x68,0x65,0x6e])](()=>{_0x18549a||_0x2bc872(_0x59cb3a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ae655(){return _0x5bafbf[_0x59cb3a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59cb3a([0x76,0x69,0x65,0x77])][_0x59cb3a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59cb3a([0x61,0x75,0x74,0x6f]);}function _0x2ffd48(){_0x5bafbf[_0x59cb3a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59cb3a([0x76,0x69,0x65,0x77])][_0x59cb3a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59cb3a([0x61,0x75,0x74,0x6f]);}}function _0x3b4412(_0x270c6b){const _0x556254=[new window[(_0x59cb3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22ed2d=>setTimeout(_0x22ed2d,0x6d5c2f4^_0x4d6cce)),_0x427865[_0x59cb3a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59cb3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x416338=>{let _0x33766c=0x0;_0x5bafbf[_0x59cb3a([0x6d,0x6f,0x64,0x65,0x6c])][_0x59cb3a([0x6f,0x6e])](_0x59cb3a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x53688b,_0x2571cb)=>{_0x2571cb[0x0][_0x59cb3a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x33766c++,_0x33766c==(0x6dcfdc0^_0x4d6cce)&&(_0x416338(),_0x53688b[_0x59cb3a([0x6f,0x66,0x66])]());});}))];return window[_0x59cb3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59cb3a([0x72,0x61,0x63,0x65])](_0x556254)[_0x59cb3a([0x74,0x68,0x65,0x6e])](()=>_0x270c6b);}async function _0x54fc57(){await _0x427865,_0x5bafbf[_0x59cb3a([0x6d,0x6f,0x64,0x65,0x6c])][_0x59cb3a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4e21b3,_0x5bafbf[_0x59cb3a([0x6d,0x6f,0x64,0x65,0x6c])][_0x59cb3a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4e21b3,_0x5bafbf[_0x59cb3a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59cb3a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3cd27e(_0x432e87){const _0x438622=_0x1c92dc();_0x5bafbf[_0x438622]=_0x59cb3a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x432e87,_0x432e87!=_0x59cb3a([0x56,0x61,0x6c,0x69,0x64])&&_0x54fc57();}function _0x1c92dc(){const _0x40dbbf=window[_0x59cb3a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59cb3a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59cb3a([0x6e,0x6f,0x77])]())[_0x59cb3a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59cb3a([0x2e]),'');let _0x2903e3=_0x59cb3a([0x6b]);for(let _0x54c8c0=0x0;_0x54c8c0<_0x40dbbf[_0x59cb3a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54c8c0+=0x2){let _0x2e14a8=window[_0x59cb3a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40dbbf[_0x59cb3a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54c8c0,_0x54c8c0+0x2));_0x2e14a8>=_0x4fc556[_0x59cb3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2e14a8-=_0x4fc556[_0x59cb3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2903e3+=_0x4fc556[_0x2e14a8];}return _0x2903e3;}function _0x2514da(){const _0x4431d9=_0x210587[_0x59cb3a([0x73,0x70,0x6c,0x69,0x74])](_0x59cb3a([0x2e]));if(0x3!=_0x4431d9[_0x59cb3a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x182eaf(_0x4431d9[0x1]);function _0x182eaf(_0x543368){const _0x1ba153=_0x26cfd2(_0x543368);return _0x1ba153&&_0x5b3633()?_0x1ba153:null;function _0x5b3633(){const _0x4f8953=_0x1ba153[_0x59cb3a([0x6a,0x74,0x69])],_0x1b44c4=window[_0x59cb3a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f8953[_0x59cb3a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f8953[_0x59cb3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e704a={..._0x1ba153,[_0x59cb3a([0x6a,0x74,0x69])]:_0x4f8953[_0x59cb3a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f8953[_0x59cb3a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e704a[_0x59cb3a([0x76,0x63])],_0x31edc4(_0x4e704a)==_0x1b44c4;}}}async function _0x1297cf(){let _0x44bbd7=!0x0;try{const _0x1cf793=_0x210587[_0x59cb3a([0x73,0x70,0x6c,0x69,0x74])](_0x59cb3a([0x2e])),[_0x216383,_0x28d362,_0x330975]=_0x1cf793;return _0x46e03f(_0x216383),await _0x92c45(_0x216383,_0x28d362,_0x330975),_0x44bbd7;}catch(_0x2ae857){return!0x1;}function _0x46e03f(_0x2d094d){const _0x473304=_0x26cfd2(_0x2d094d);_0x473304&&_0x473304[_0x59cb3a([0x61,0x6c,0x67])]==_0x59cb3a([0x45,0x53,0x32,0x35,0x36])||(_0x44bbd7=!0x1);}async function _0x92c45(_0x35edd4,_0xf45efe,_0x36fb36){const _0x532339=window[_0x59cb3a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59cb3a([0x66,0x72,0x6f,0x6d])](_0x59ea9b(_0x36fb36),_0xaa9e8a=>_0xaa9e8a[_0x59cb3a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9ef4ee=new window[(_0x59cb3a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59cb3a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x35edd4+_0x59cb3a([0x2e])+_0xf45efe),_0x508b8b=window[_0x59cb3a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59cb3a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x508b8b)return;const _0x833777=await _0x508b8b[_0x59cb3a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59cb3a([0x6a,0x77,0x6b]),_0xc4fccb,{[_0x59cb3a([0x6e,0x61,0x6d,0x65])]:_0x59cb3a([0x45,0x43,0x44,0x53,0x41]),[_0x59cb3a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59cb3a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59cb3a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x508b8b[_0x59cb3a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59cb3a([0x6e,0x61,0x6d,0x65])]:_0x59cb3a([0x45,0x43,0x44,0x53,0x41]),[_0x59cb3a([0x68,0x61,0x73,0x68])]:{[_0x59cb3a([0x6e,0x61,0x6d,0x65])]:_0x59cb3a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x833777,_0x532339,_0x9ef4ee)||(_0x44bbd7=!0x1);}}function _0x26cfd2(_0x2b7623){return _0x2b7623[_0x59cb3a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59cb3a([0x65,0x79]))?JSON[_0x59cb3a([0x70,0x61,0x72,0x73,0x65])](_0x59ea9b(_0x2b7623)):null;}function _0x59ea9b(_0x11ffc2){return window[_0x59cb3a([0x61,0x74,0x6f,0x62])](_0x11ffc2[_0x59cb3a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59cb3a([0x2b]))[_0x59cb3a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59cb3a([0x2f])));}function _0x31edc4(_0x524ccd){let _0x5e64f2=0x1505;function _0x4dfb72(_0x1e73dc){for(let _0x20757b=0x0;_0x20757b<_0x1e73dc[_0x59cb3a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20757b++){const _0x5b97c6=_0x1e73dc[_0x59cb3a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x20757b);_0x5e64f2=(_0x5e64f2<<0x5)+_0x5e64f2+_0x5b97c6,_0x5e64f2&=_0x5e64f2;}}function _0x89a5b(_0x1ef43e){Array[_0x59cb3a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ef43e)?_0x1ef43e[_0x59cb3a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x89a5b):_0x1ef43e&&typeof _0x1ef43e==_0x59cb3a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59cb3a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ef43e)[_0x59cb3a([0x73,0x6f,0x72,0x74])]()[_0x59cb3a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x27cb90,_0x2e690e])=>{_0x4dfb72(_0x27cb90),_0x89a5b(_0x2e690e);}):_0x4dfb72(window[_0x59cb3a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ef43e));}return _0x89a5b(_0x524ccd),_0x5e64f2>>>0x0;}function _0x19f1e1(_0x55a178){return _0x55a178[_0x59cb3a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59cb3a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59cb3a([0x30]));}function _0x24dcd4(_0x4228ea){return _0x4228ea[_0x59cb3a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59cb3a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59cb3a([0x6a,0x6f,0x69,0x6e])]('');}function _0x4e21b3(){}function _0x59cb3a(_0x30cab2){const _0x285ed4=_0x1450;return _0x30cab2[_0x285ed4(0xd3)](_0x3928cc=>String[_0x285ed4(0xe0)](_0x3928cc))[_0x285ed4(0xf9)]('');}_0x3cd27e(await _0x764d93());}(this);}[_0x353952(0x10e)](){const _0x185f81=_0x353952,_0x3251c0=this[_0x185f81(0xbb)][_0x185f81(0x10b)][_0x185f81(0xee)];_0x3251c0[_0x185f81(0xd2)](_0x185f81(0xbf))&&_0x3251c0[_0x185f81(0xc9)](_0x185f81(0xbf),{'allowAttributes':[_0x185f81(0x10f)]}),_0x3251c0[_0x185f81(0xd2)](_0x185f81(0xd5))&&_0x3251c0[_0x185f81(0xc9)](_0x185f81(0xd5),{'allowAttributes':[_0x185f81(0x10f)]});}[_0x353952(0xe8)](){const _0x16d5f2=_0x353952,_0x15ff2b=this[_0x16d5f2(0xbb)];_0x15ff2b[_0x16d5f2(0x108)][_0x16d5f2(0xe7)](_0x16d5f2(0xcc))[_0x16d5f2(0xc4)]({'model':_0x16d5f2(0x10f),'view':_0x16d5f2(0x10c)}),_0x15ff2b[_0x16d5f2(0x108)][_0x16d5f2(0xe7)](_0x16d5f2(0x10a))[_0x16d5f2(0xf3)]({'model':{'key':_0x16d5f2(0x10f),'value':_0x3a4b1b=>_0x3a4b1b[_0x16d5f2(0x103)](_0x16d5f2(0x10c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5cc3a1=_0x15ff2b[_0x16d5f2(0xc5)][_0x16d5f2(0x107)](_0x16d5f2(0xcf));_0x5cc3a1&&this[_0x16d5f2(0xe4)](_0x5cc3a1,_0x16d5f2(0xfd),(_0x764b5,[_0x160fc4,_0x2c97ce])=>{const _0x2cf911=_0x16d5f2;_0x160fc4[_0x2cf911(0x109)](_0x2cf911(0x10f),_0x2c97ce);});}[_0x353952(0xd0)](){const _0xb2de5a=_0x353952,_0x587b3a=this[_0xb2de5a(0xbb)][_0xb2de5a(0x104)][_0xb2de5a(0x107)](_0xb2de5a(0xe6))||{},_0x42416b=this[_0xb2de5a(0xbb)][_0xb2de5a(0x104)][_0xb2de5a(0x107)](_0xb2de5a(0xf7))||'';this[_0xb2de5a(0xdf)]=_0x215a46(_0x485e95[_0xb2de5a(0x102)],_0xb2de5a(0xc6),{..._0x587b3a,'pubkey':_0x42416b,'ctx-name':_0xb2de5a(0xfc),'sourceList':'','imgOnly':_0xb2de5a(0xe9),'removeCopyright':_0xb2de5a(0xe9),'localeName':this[_0xb2de5a(0xbb)][_0xb2de5a(0xd6)][_0xb2de5a(0xeb)],'externalSourcesEmbedCss':_0xb2de5a(0xe3)}),this[_0xb2de5a(0xdf)][_0xb2de5a(0xf4)]=_0x1715ef=>{const _0x394e9d=_0xb2de5a;if(_0x394e9d(0xc2)==_0x1715ef)return _0x394e9d(0xed);},_0x485e95[_0xb2de5a(0x102)][_0xb2de5a(0xbd)][_0xb2de5a(0xde)](this[_0xb2de5a(0xdf)]);}[_0x353952(0x101)](){const _0x216b97=_0x353952;this[_0x216b97(0xc0)]=_0x215a46(_0x485e95[_0x216b97(0x102)],_0x216b97(0xff),{'ctx-name':_0x216b97(0xfc)}),_0x485e95[_0x216b97(0x102)][_0x216b97(0xbd)][_0x216b97(0xde)](this[_0x216b97(0xc0)]);}[_0x353952(0xe1)](){const _0xbf1596=_0x353952,_0x3ccf29=this[_0xbf1596(0xbb)][_0xbf1596(0xc5)][_0xbf1596(0x107)](_0xbf1596(0xfb));_0x3ccf29&&this[_0xbf1596(0xe4)](_0x3ccf29,_0xbf1596(0xf6),()=>{const _0x14c797=_0xbf1596,_0x8d9a38=this[_0x14c797(0xbb)][_0x14c797(0x10b)][_0x14c797(0x102)][_0x14c797(0xce)][_0x14c797(0xc1)]();_0x8d9a38&&_0x8d9a38[_0x14c797(0x103)](_0x14c797(0x10f))&&this[_0x14c797(0xbb)][_0x14c797(0xfe)][_0x14c797(0xcd)][_0x14c797(0xd4)](_0x14c797(0xbe),()=>{const _0x1ae32e=_0x14c797;_0x42d47f(this[_0x1ae32e(0xbb)],_0x8d9a38);});});const _0x2e407e=this[_0xbf1596(0xbb)][_0xbf1596(0xc5)][_0xbf1596(0x107)](_0xbf1596(0xdc));_0x2e407e&&this[_0xbf1596(0xe4)](_0x2e407e,_0xbf1596(0xf6),()=>{const _0x455d0f=_0xbf1596,_0x1670fb=this[_0x455d0f(0xbb)][_0x455d0f(0x10b)][_0x455d0f(0x102)][_0x455d0f(0xce)][_0x455d0f(0xc1)]();_0x1670fb&&_0x1670fb[_0x455d0f(0x103)](_0x455d0f(0x10f))&&this[_0x455d0f(0xbb)][_0x455d0f(0xfe)][_0x455d0f(0xcd)][_0x455d0f(0xd4)](_0x455d0f(0xbe),()=>{const _0x1d9642=_0x455d0f;_0x42d47f(this[_0x1d9642(0xbb)],_0x1670fb);});});}}