@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251126.0 → 0.0.0-nightly-20251128.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x9edcba,Command as _0x29c7ff}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x234ec2,IconGooglePhotos as _0x197806,IconGoogleDrive as _0x361a87,IconFacebook as _0x9bdb1f,IconDropbox as _0x15e84f,IconUploadcareLink as _0xc4de25,IconUploadcareImageUpload as _0x3b887d,IconError as _0x559812,IconUploadcareImageEdit as _0x5ee898}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x570821,MenuBarMenuListItemButtonView as _0x13a2c9,View as _0x130440,FocusCycler as _0x12a9ca,Dialog as _0xadced8,DialogViewPosition as _0x333918,SpinnerView as _0xca99f9,IconView as _0x3a5aaf,Notification as _0x284348}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2183e0,DomEmitterMixin as _0x4c5504,global as _0x206eec,getAncestors as _0x2b9835,ObservableMixin as _0xc15507,uid as _0x4c6026,createElement as _0x3bf56a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2c0cb1}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x21c228,info as _0x6faec4}from'@uploadcare/upload-client';import*as _0x5b0283 from'@uploadcare/file-uploader';var i=function(_0x15e9e1){return _0x15e9e1['Local']='local',_0x15e9e1['URL']='url',_0x15e9e1['Dropbox']='dropbox',_0x15e9e1['GDrive']='gdrive',_0x15e9e1['Facebook']='facebook',_0x15e9e1['GPhotos']='gphotos',_0x15e9e1['OneDrive']='onedrive',_0x15e9e1;}({});function _(_0x11ce6d,_0x21face,_0xc1f1c1){const t=_0x11ce6d['t'],_0x4dda94=_0x11ce6d['t'];switch(_0x21face){case i['Local']:return{'text':_0x4dda94('Insert'===_0xc1f1c1?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4dda94('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xc1f1c1?_0x4dda94('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4dda94('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xc1f1c1?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xc1f1c1?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xc1f1c1?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xc1f1c1?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xc1f1c1?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x21face;}}class e extends _0x9edcba{['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 _0x77f7b2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3e0bed;for(const _0x1eb0b5 in _0x77f7b2){const _0x192a26=_0x1eb0b5,_0x17df52=_0x77f7b2[_0x192a26];if('uploadcareLicenseKeyValid'==_0x17df52||'uploadcareLicenseKeyInvalid'==_0x17df52||'uploadcareLicenseKeyExpired'==_0x17df52||'uploadcareLicenseKeyDomainLimit'==_0x17df52||'uploadcareLicenseKeyNotAllowed'==_0x17df52||'uploadcareLicenseKeyEvaluationLimit'==_0x17df52||'uploadcareLicenseKeyTrialLimit'==_0x17df52||'uploadcareLicenseKeyUsageLimit'==_0x17df52){delete _0x77f7b2[_0x192a26],_0x3e0bed=_0x17df52,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3e0bed&&_0x77f7b2['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3e0bed&&_0x77f7b2['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3e0bed&&_0x77f7b2['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3e0bed&&_0x77f7b2['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3e0bed&&_0x77f7b2['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3e0bed&&_0x77f7b2['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3e0bed&&_0x77f7b2['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5ec2d0}=this,_0x139aa8=_0x5ec2d0['commands']['get']('uploadcare');if(!_0x139aa8)return;const _0x3a9ff7=this['_normalizeConfigSourceList'](_0x5ec2d0['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2ba288,_0x4a4e4e)=>{const _0x56d218=this['_getIntegrationKey'](_0x4a4e4e['type']);return _0x2ba288[_0x56d218]||(_0x2ba288[_0x56d218]=[]),_0x2ba288[_0x56d218]['push'](_0x4a4e4e),_0x2ba288;},{});_0x5ec2d0['plugins']['has']('ImageInsertUI')&&_0x5ec2d0['commands']['get']('uploadcare')&&Object['entries'](_0x3a9ff7)['forEach'](([_0x184f1b,_0x161bdd])=>{_0x5ec2d0['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x184f1b,'observable':()=>_0x139aa8,'buttonViewCreator':()=>this['_createToolbarButton'](_0x161bdd),'formViewCreator':()=>this['_createDropdownButtons'](_0x161bdd),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x161bdd),'override':'assetManager'!==_0x184f1b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3cf272){const {locale:_0x47ca47}=this['editor'];return _0x3cf272['map'](_0x379ae9=>{const _0x235f99=_(_0x47ca47,_0x379ae9,'Insert');switch(_0x379ae9){case i['Local']:return{'icon':_0x3b887d,'type':i['Local'],..._0x235f99};case i['URL']:return{'icon':_0xc4de25,'type':i['URL'],..._0x235f99};case i['Dropbox']:return{'icon':_0x15e84f,'type':i['Dropbox'],..._0x235f99};case i['Facebook']:return{'icon':_0x9bdb1f,'type':i['Facebook'],..._0x235f99};case i['GDrive']:return{'icon':_0x361a87,'type':i['GDrive'],..._0x235f99};case i['GPhotos']:return{'icon':_0x197806,'type':i['GPhotos'],..._0x235f99};case i['OneDrive']:return{'icon':_0x234ec2,'type':i['OneDrive'],..._0x235f99};}});}['_getIntegrationKey'](_0x45fa4b){switch(_0x45fa4b){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5a77bf,_0x28d1ac){const _0x55c2a5=this['editor'],_0x611b86=new _0x5a77bf(_0x55c2a5['locale']),_0x3a8485=_0x55c2a5['commands']['get']('uploadcare');return _0x611b86['bind']('isEnabled')['to'](_0x3a8485),_0x611b86['on']('execute',()=>{_0x3a8485['execute'](_0x28d1ac);}),_0x611b86;}['_createToolbarButton'](_0x3c1e90){const {locale:_0x198e35}=this['editor'],_0x468bb4=this['editor']['plugins']['get']('ImageInsertUI'),_0x463267=_0x3c1e90[0x0],_0x5b5a8a=this['_createButton'](_0x570821,_0x463267['type']);return _0x5b5a8a['icon']=_0x463267['icon'],_0x5b5a8a['bind']('label')['to'](_0x468bb4,'isImageSelected',_0x2f8265=>_(_0x198e35,_0x463267['type'],_0x2f8265?'Replace':'Insert')['text']),_0x5b5a8a['tooltip']=!0x0,_0x5b5a8a;}['_createDropdownButtons'](_0xb2ab37){const {locale:_0x4d9933}=this['editor'],_0x1d0c22=this['editor']['plugins']['get']('ImageInsertUI');return _0xb2ab37['map'](_0x32c976=>{const _0x4a7131=this['_createButton'](_0x570821,_0x32c976['type']);return _0x4a7131['withText']=!0x0,_0x4a7131['icon']=_0x32c976['icon'],_0x4a7131['bind']('label')['to'](_0x1d0c22,'isImageSelected',_0x38a9c9=>_(_0x4d9933,_0x32c976['type'],_0x38a9c9?'Replace':'Insert')['text']),_0x4a7131;});}['_createMenuBarButtons'](_0x556a93){return _0x556a93['map'](_0xceacac=>{const _0x2c6af5=this['_createButton'](_0x13a2c9,_0xceacac['type']);return _0x2c6af5['icon']=_0xceacac['icon'],_0x2c6af5['label']=_0xceacac['shortText'],_0x2c6af5;});}}class F extends _0x130440{['focusTracker'];['focusCycler'];constructor(_0x54bf3e){super(_0x54bf3e),this['focusTracker']=new _0x2183e0(),this['focusCycler']=new _0x12a9ca({'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 x extends F{constructor(_0x34ba71,_0xbc084f){super(_0x34ba71),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-'+_0xbc084f}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x258035,_0x561e90){const _0x300999=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x35855f=>_0x35855f<=_0x561e90)['map'](_0x10f2fd=>_0x258035['replace'](/\/$/,'')+'/-/resize/'+_0x10f2fd+'x/\x20'+_0x10f2fd+'w');return{'imageFallbackUrl':_0x258035,'imageSources':[{'srcset':_0x300999['join'](',\x20'),'sizes':'(max-width:\x20'+_0x561e90+'px)\x20100vw,\x20'+_0x561e90+'px','type':'image/webp'}]};}function S(_0x4141b8,_0x582616,_0x4bd4cd){const _0xc8f95=_0x4141b8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xc8f95?parseInt(_0xc8f95[0x1],0xa):_0x582616,'height':_0xc8f95?parseInt(_0xc8f95[0x2],0xa):_0x4bd4cd};}function p(_0x3a323b,_0x3cd8f6){const _0x2baa9e=new(_0x4c5504())(),_0x74391c=_0x3a323b['plugins']['get']('ImageUtils'),_0x3efdfe=_0x3a323b['editing']['mapper']['toViewElement'](_0x3cd8f6),_0x857966=_0x74391c['findViewImgElement'](_0x3efdfe),_0x2c18d5=_0x3a323b['editing']['view']['domConverter']['viewToDom'](_0x857966),_0x4fff67=_0x3cd8f6['getAttribute']('width'),_0x176a8c=_0x3cd8f6['getAttribute']('height'),_0x1489ff='image-processing';_0x3a323b['editing']['view']['change'](_0x26d45f=>{_0x26d45f['addClass'](_0x1489ff,_0x3efdfe),_0x26d45f['setStyle']('aspect-ratio',_0x4fff67+'/'+_0x176a8c,_0x857966);}),_0x2baa9e['listenTo'](_0x2c18d5,'load',()=>{_0x2baa9e['stopListening'](_0x2c18d5,'load'),_0x3a323b['editing']['view']['change'](_0x1fd7d3=>{_0x1fd7d3['removeClass'](_0x1489ff,_0x3efdfe),_0x1fd7d3['removeStyle']('aspect-ratio',_0x857966);});});}function G(_0x44a076){if(Array['isArray'](_0x44a076)){const _0x237344=_0x44a076['map'](G);return _0x463667=>_0x237344['some'](_0x3e82ef=>_0x3e82ef(_0x463667));}if('origin'==_0x44a076){const _0x5200c6=_0x206eec['window']['location']['origin'];return _0x38306d=>new URL(_0x38306d,_0x206eec['document']['baseURI'])['origin']==_0x5200c6;}return'function'==typeof _0x44a076?_0x44a076:_0x44a076 instanceof RegExp?_0x142ac6=>!(!_0x142ac6['match'](_0x44a076)&&!_0x142ac6['replace'](/^https?:\/\//,'')['match'](_0x44a076)):()=>!0x1;}function A(_0x30a96d,_0x4f33a5){return _0x2b9835(_0x30a96d['target'])['includes'](_0x4f33a5);}class n extends/* #__PURE__ -- @preserve */
24
- _0xc15507(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2199dc,_0x215c08,_0x29c298){super(),this['_editor']=_0x2199dc,this['_editing']=_0x215c08,this['_dialog']=_0x2199dc['plugins']['get'](_0xadced8),this['_api']=_0x215c08['ctxElement']['getAPI'](),this['_type']=_0x29c298,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:_0x2eddec,model:_0x4fd0e0}=this['_editor'],_0x50b9fc=_0x4fd0e0['document']['selection']['getSelectedElement'](),_0x77d2bd=_0x50b9fc&&(_0x50b9fc['is']('element','imageBlock')||_0x50b9fc['is']('element','imageInline'));this['_formView']=new x(_0x2eddec,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3b887d,'title':_(_0x2eddec,this['_type'],_0x77d2bd?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x333918['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x28b382=>!A(_0x28b382,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5f4966}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x301778=>{const _0x378c89=_0x5f4966['length'];for(const _0x3fd3ba of _0x5f4966){const _0xece680=_0x3fd3ba===_0x5f4966[_0x378c89-0x1],{cdnUrl:_0x5e1cd4,fileInfo:_0x507ee2}=_0x3fd3ba;if(!_0x5e1cd4||!_0x507ee2)continue;const {width:_0x4d759f,height:_0x239397}=_0x507ee2['imageInfo'],_0x56ec8e=S(_0x5e1cd4,_0x4d759f,_0x239397),_0x38c0bb=C(_0x5e1cd4,_0x56ec8e['width']),_0x56a4ea={'id':_0x507ee2['uuid'],'type':'image','attributes':{'imageDimension':_0x56ec8e,..._0x38c0bb}};this['_insertAsset'](_0x56a4ea,_0xece680,_0x301778);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x59d5f2=>{'idle'===_0x59d5f2['detail']['status']&&!_0x59d5f2['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x35eeb8,_0x155478,_0x354255){const _0x153123=this['_editor']['model']['document']['selection'],_0x586796=_0x153123['getSelectedElement'](),_0xd45383=!(!_0x586796||!_0x586796['is']('element','imageInline'));_0x354255['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x35eeb8,_0xd45383),_0x155478||_0x354255['setSelection'](_0x153123['getLastPosition']());}['_insertImage'](_0x9cfc06,_0x568cf6){const _0x593537=this['_editor'],{imageDimension:_0x5ec548,imageFallbackUrl:_0x4fd20a,imageSources:_0x52aced}=_0x9cfc06['attributes'];_0x593537['execute']('insertImage',{'imageType':_0x568cf6?'imageInline':null,'source':{'uploadcareImageId':_0x9cfc06['id'],'src':_0x4fd20a,'sources':_0x52aced,..._0x5ec548}});}}class w extends _0x29c7ff{['_editing'];['_controller']=null;static get['requires'](){return[_0xadced8,o];}constructor(_0x4f08da){super(_0x4f08da),this['_editing']=_0x4f08da['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x547b48){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x547b48);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5dada4,..._0x1dd5c2}){return _0x21c228(_0x5dada4,_0x1dd5c2);}static['getInfo'](_0x5aa8b2,_0x387c3f){return _0x6faec4(_0x5aa8b2,_0x387c3f);}}class f extends _0x9edcba{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2c0cb1,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x7cf5fb=this['editor'];if(!!!_0x7cf5fb['config']['get']('uploadcare'))return;_0x7cf5fb['plugins']['get'](_0x2c0cb1)['createUploadAdapter']=_0x15ed57=>new k(_0x15ed57,_0x7cf5fb),_0x7cf5fb['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x78c94f,{imageElement:_0x20358e,data:_0x4335b7})=>{_0x7cf5fb['model']['change'](_0x67f6fa=>{_0x67f6fa['setAttribute']('uploadcareImageId',_0x4335b7['uploadcareImageId'],_0x20358e);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1effd6,_0x5b2208){this['loader']=_0x1effd6,this['editor']=_0x5b2208,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x550264=await this['loader']['file'];return j['upload']({'file':_0x550264,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x5d1865=>{_0x5d1865&&_0x5d1865['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5d1865['value']);}})['then'](async _0x3028e5=>{const {imageFallbackUrl:_0x37677e,imageSources:_0x16c395}=C(_0x3028e5['cdnUrl'],_0x3028e5['imageInfo']['width']);return{'uploadcareImageId':_0x3028e5['uuid'],'default':_0x37677e,'sources':_0x16c395};})['catch'](()=>{const _0x249e50=t('Cannot\x20upload\x20file:')+('\x20'+_0x550264['name']+'.');return Promise['reject'](_0x249e50);});}['abort'](){this['controller']['abort']();}}class o extends _0x9edcba{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0xadced8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1a1bdc){super(_0x1a1bdc),this['ucContextId']=_0x4c6026();}['init'](){const _0x33c1a9=this['editor'];_0x33c1a9['commands']['add']('uploadcare',new w(_0x33c1a9));}['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 _0x40aca8=_0x206eec['document']['querySelector']('input[uploadcare-file-input]');_0x40aca8&&_0x40aca8['remove']();}),async function(_0x3e3def){const _0x52213f=_0x31cfb9([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1612f3=0x535f8c3a,_0x20de88=0x5358f60a^_0x1612f3,_0x16e63b=window[_0x31cfb9([0x44,0x61,0x74,0x65])][_0x31cfb9([0x6e,0x6f,0x77])](),_0x556efe=_0x3e3def[_0x31cfb9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x235b50=new window[(_0x31cfb9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3db636=>{_0x556efe[_0x31cfb9([0x6f,0x6e,0x63,0x65])](_0x31cfb9([0x72,0x65,0x61,0x64,0x79]),_0x3db636);}),_0x2cb5ef={[_0x31cfb9([0x6b,0x74,0x79])]:_0x31cfb9([0x45,0x43]),[_0x31cfb9([0x75,0x73,0x65])]:_0x31cfb9([0x73,0x69,0x67]),[_0x31cfb9([0x63,0x72,0x76])]:_0x31cfb9([0x50,0x2d,0x32,0x35,0x36]),[_0x31cfb9([0x78])]:_0x31cfb9([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]),[_0x31cfb9([0x79])]:_0x31cfb9([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]),[_0x31cfb9([0x61,0x6c,0x67])]:_0x31cfb9([0x45,0x53,0x32,0x35,0x36])},_0x37dc6f=_0x556efe[_0x31cfb9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x31cfb9([0x67,0x65,0x74])](_0x31cfb9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3436b9(){let _0x27bebd,_0x3c2903=null,_0x1dfa46=null;try{if(_0x37dc6f==_0x31cfb9([0x47,0x50,0x4c]))return _0x31cfb9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x27bebd=_0x2fb6ce(),!_0x27bebd)return _0x31cfb9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x27bebd[_0x31cfb9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1dfa46=_0x12fd5b(_0x27bebd[_0x31cfb9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x27bebd[_0x31cfb9([0x6a,0x74,0x69])])),await _0x567b68()?_0x551b92()?_0x5e7ccf()?_0x31cfb9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1819fd()?(_0x27bebd[_0x31cfb9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31cfb9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3c2903=_0x4f46c3(_0x31cfb9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x27bebd[_0x31cfb9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31cfb9([0x74,0x72,0x69,0x61,0x6c])&&(_0x3c2903=_0x4f46c3(_0x31cfb9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x38363e()):_0x31cfb9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x31cfb9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x31cfb9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x31cfb9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5e7ccf(){const _0x1c3315=[_0x31cfb9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x31cfb9([0x74,0x72,0x69,0x61,0x6c])][_0x31cfb9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27bebd[_0x31cfb9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x16e63b/0x3e8:0xe10*_0x20de88;return _0x27bebd[_0x31cfb9([0x65,0x78,0x70])]<_0x1c3315;}function _0x551b92(){const _0x79bf3=_0x27bebd[_0x31cfb9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x79bf3&&(!!_0x79bf3[_0x31cfb9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31cfb9([0x2a]))||!!_0x79bf3[_0x31cfb9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31cfb9([0x55,0x50,0x4c,0x43])));}function _0x1819fd(){const _0x164a61=_0x27bebd[_0x31cfb9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x164a61||0x0==_0x164a61[_0x31cfb9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x8f3e93}=new URL(window[_0x31cfb9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x164a61[_0x31cfb9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8f3e93))return!0x0;const _0x37b93b=_0x8f3e93[_0x31cfb9([0x73,0x70,0x6c,0x69,0x74])](_0x31cfb9([0x2e]));return _0x164a61[_0x31cfb9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x8445a5=>_0x8445a5[_0x31cfb9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31cfb9([0x2a])))[_0x31cfb9([0x6d,0x61,0x70])](_0x1ba428=>_0x1ba428[_0x31cfb9([0x73,0x70,0x6c,0x69,0x74])](_0x31cfb9([0x2e])))[_0x31cfb9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13f2ff=>_0x13f2ff[_0x31cfb9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x37b93b[_0x31cfb9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31cfb9([0x6d,0x61,0x70])](_0x2193dd=>Array(_0x37b93b[_0x31cfb9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2193dd[_0x31cfb9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x31cfb9([0x66,0x69,0x6c,0x6c])](_0x2193dd[0x0]===_0x31cfb9([0x2a])?_0x31cfb9([0x2a]):'')[_0x31cfb9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2193dd))[_0x31cfb9([0x73,0x6f,0x6d,0x65])](_0x5e0fa4=>_0x37b93b[_0x31cfb9([0x65,0x76,0x65,0x72,0x79])]((_0x4f9a92,_0x43b4dc)=>_0x5e0fa4[_0x43b4dc]===_0x4f9a92||_0x5e0fa4[_0x43b4dc]===_0x31cfb9([0x2a])));}function _0x38363e(){return _0x3c2903&&_0x1dfa46?new window[(_0x31cfb9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdd389e,_0x1f6ef9)=>{_0x3c2903[_0x31cfb9([0x74,0x68,0x65,0x6e])](_0xdd389e,_0x1f6ef9),_0x1dfa46[_0x31cfb9([0x74,0x68,0x65,0x6e])](_0x219662=>{_0x219662!=_0x31cfb9([0x56,0x61,0x6c,0x69,0x64])&&_0xdd389e(_0x219662);},_0x1f6ef9);}):_0x3c2903||_0x1dfa46||_0x31cfb9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x12fd5b(_0x210fa0,_0xc49382){return new window[(_0x31cfb9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c7ac5=>{if(_0x55e129())return _0x4c7ac5(_0x31cfb9([0x56,0x61,0x6c,0x69,0x64]));_0x2844d8(),_0x556efe[_0x31cfb9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x31cfb9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x261d65=!0x1;const _0x5d2be6=_0x4c6026();function _0x1f31bd(_0x191672){return!!_0x191672&&(typeof _0x191672===_0x31cfb9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x191672===_0x31cfb9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x191672[_0x31cfb9([0x74,0x68,0x65,0x6e])]===_0x31cfb9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x191672[_0x31cfb9([0x63,0x61,0x74,0x63,0x68])]===_0x31cfb9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x469d61(_0x327e9b){_0xf8d9eb(_0x327e9b)[_0x31cfb9([0x74,0x68,0x65,0x6e])](_0x578007=>{if(!_0x578007||_0x578007[_0x31cfb9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x31cfb9([0x6f,0x6b]))return _0x31cfb9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x33a1ab(_0x44c779(_0x5d2be6+_0xc49382))!=_0x578007[_0x31cfb9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x31cfb9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x31cfb9([0x56,0x61,0x6c,0x69,0x64]);})[_0x31cfb9([0x74,0x68,0x65,0x6e])](_0x59ccd8=>(_0x8ab0f5(),_0x59ccd8),()=>{const _0x2cbfc8=_0x1e6baa();return null==_0x2cbfc8?(_0x8ab0f5(),_0x31cfb9([0x56,0x61,0x6c,0x69,0x64])):_0x31cfb9(_0x16e63b-_0x2cbfc8>(0x7753083a^_0x1612f3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x31cfb9([0x74,0x68,0x65,0x6e])](_0x4c7ac5)[_0x31cfb9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c7ac5(_0x31cfb9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2f6a1a=0x536962ba^_0x1612f3;function _0x8ab0f5(){const _0x462896=_0x31cfb9([0x6c,0x6c,0x63,0x74,0x2d])+_0x33a1ab(_0x44c779(_0x210fa0)),_0xa6426c=_0x3a9c26(_0x33a1ab(window[_0x31cfb9([0x4d,0x61,0x74,0x68])][_0x31cfb9([0x63,0x65,0x69,0x6c])](_0x16e63b/_0x2f6a1a)));window[_0x31cfb9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31cfb9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x462896,_0xa6426c);}function _0x1e6baa(){const _0x1c6004=_0x31cfb9([0x6c,0x6c,0x63,0x74,0x2d])+_0x33a1ab(_0x44c779(_0x210fa0)),_0x1be098=window[_0x31cfb9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31cfb9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c6004);return _0x1be098?window[_0x31cfb9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a9c26(_0x1be098),0x10)*_0x2f6a1a:null;}function _0xf8d9eb(_0x277539){return new window[(_0x31cfb9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x542f66,_0x5bffcd)=>{_0x277539[_0x31cfb9([0x74,0x68,0x65,0x6e])](_0x542f66,_0x5bffcd),window[_0x31cfb9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5bffcd,0x535e58fa^_0x1612f3);});}}_0x556efe[_0x31cfb9([0x6f,0x6e])](_0x31cfb9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e64d9,_0x34d3b8)=>{if(_0x34d3b8[0x0]!=_0x210fa0)return _0x4c7ac5(_0x31cfb9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x34d3b8[0x1]={..._0x34d3b8[0x1],[_0x31cfb9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d2be6};},{[_0x31cfb9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31cfb9([0x68,0x69,0x67,0x68])}),_0x556efe[_0x31cfb9([0x6f,0x6e])](_0x31cfb9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a0c39=>{_0x1f31bd(_0x2a0c39[_0x31cfb9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x261d65=!0x0,_0x469d61(_0x2a0c39[_0x31cfb9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x31cfb9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31cfb9([0x6c,0x6f,0x77])}),_0x235b50[_0x31cfb9([0x74,0x68,0x65,0x6e])](()=>{_0x261d65||_0x4c7ac5(_0x31cfb9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55e129(){return _0x556efe[_0x31cfb9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31cfb9([0x76,0x69,0x65,0x77])][_0x31cfb9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x31cfb9([0x61,0x75,0x74,0x6f]);}function _0x2844d8(){_0x556efe[_0x31cfb9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31cfb9([0x76,0x69,0x65,0x77])][_0x31cfb9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31cfb9([0x61,0x75,0x74,0x6f]);}}function _0x4f46c3(_0x1da464){const _0x1971c8=[new window[(_0x31cfb9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x400de2=>setTimeout(_0x400de2,0x5356b2f6^_0x1612f3)),_0x235b50[_0x31cfb9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x31cfb9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x210bec=>{let _0x3048ed=0x0;_0x556efe[_0x31cfb9([0x6d,0x6f,0x64,0x65,0x6c])][_0x31cfb9([0x6f,0x6e])](_0x31cfb9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x44a5d0,_0x333ec9)=>{_0x333ec9[0x0][_0x31cfb9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3048ed++,_0x3048ed==(0x535f8dc2^_0x1612f3)&&(_0x210bec(),_0x44a5d0[_0x31cfb9([0x6f,0x66,0x66])]());});}))];return window[_0x31cfb9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31cfb9([0x72,0x61,0x63,0x65])](_0x1971c8)[_0x31cfb9([0x74,0x68,0x65,0x6e])](()=>_0x1da464);}async function _0xc4712e(){await _0x235b50,_0x556efe[_0x31cfb9([0x6d,0x6f,0x64,0x65,0x6c])][_0x31cfb9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d0894,_0x556efe[_0x31cfb9([0x6d,0x6f,0x64,0x65,0x6c])][_0x31cfb9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d0894,_0x556efe[_0x31cfb9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x31cfb9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x29f4e8(_0x2701fa){const _0x56f25a=_0x4eb6e2();_0x556efe[_0x56f25a]=_0x31cfb9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2701fa,_0x2701fa!=_0x31cfb9([0x56,0x61,0x6c,0x69,0x64])&&_0xc4712e();}function _0x4eb6e2(){const _0x90a60e=window[_0x31cfb9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x31cfb9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x31cfb9([0x6e,0x6f,0x77])]())[_0x31cfb9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x31cfb9([0x2e]),'');let _0x540667=_0x31cfb9([0x68]);for(let _0x26c4d7=0x0;_0x26c4d7<_0x90a60e[_0x31cfb9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x26c4d7+=0x2){let _0x5e0b0a=window[_0x31cfb9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x90a60e[_0x31cfb9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26c4d7,_0x26c4d7+0x2));_0x5e0b0a>=_0x52213f[_0x31cfb9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e0b0a-=_0x52213f[_0x31cfb9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x540667+=_0x52213f[_0x5e0b0a];}return _0x540667;}function _0x2fb6ce(){const _0x49d63d=_0x37dc6f[_0x31cfb9([0x73,0x70,0x6c,0x69,0x74])](_0x31cfb9([0x2e]));if(0x3!=_0x49d63d[_0x31cfb9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x262e5e(_0x49d63d[0x1]);function _0x262e5e(_0xd0dc03){const _0xd2e8d4=_0xadaaf6(_0xd0dc03);return _0xd2e8d4&&_0x129a85()?_0xd2e8d4:null;function _0x129a85(){const _0xef8314=_0xd2e8d4[_0x31cfb9([0x6a,0x74,0x69])],_0x421ee4=window[_0x31cfb9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xef8314[_0x31cfb9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xef8314[_0x31cfb9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2bfb9f={..._0xd2e8d4,[_0x31cfb9([0x6a,0x74,0x69])]:_0xef8314[_0x31cfb9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xef8314[_0x31cfb9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2bfb9f[_0x31cfb9([0x76,0x63])],_0x44c779(_0x2bfb9f)==_0x421ee4;}}}async function _0x567b68(){let _0x17acb7=!0x0;try{const _0x2505fe=_0x37dc6f[_0x31cfb9([0x73,0x70,0x6c,0x69,0x74])](_0x31cfb9([0x2e])),[_0x200073,_0x2b3d85,_0x2da1e7]=_0x2505fe;return _0x4dece8(_0x200073),await _0x338981(_0x200073,_0x2b3d85,_0x2da1e7),_0x17acb7;}catch{return!0x1;}function _0x4dece8(_0x25e366){const _0x52e032=_0xadaaf6(_0x25e366);_0x52e032&&_0x52e032[_0x31cfb9([0x61,0x6c,0x67])]==_0x31cfb9([0x45,0x53,0x32,0x35,0x36])||(_0x17acb7=!0x1);}async function _0x338981(_0x51a0e7,_0x55ea06,_0x458237){const _0x2b461d=window[_0x31cfb9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x31cfb9([0x66,0x72,0x6f,0x6d])](_0x307dfd(_0x458237),_0x522098=>_0x522098[_0x31cfb9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5df8a2=new window[(_0x31cfb9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x31cfb9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51a0e7+_0x31cfb9([0x2e])+_0x55ea06),_0x1e2cf2=window[_0x31cfb9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x31cfb9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e2cf2)return;const _0x3ed9bf=await _0x1e2cf2[_0x31cfb9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x31cfb9([0x6a,0x77,0x6b]),_0x2cb5ef,{[_0x31cfb9([0x6e,0x61,0x6d,0x65])]:_0x31cfb9([0x45,0x43,0x44,0x53,0x41]),[_0x31cfb9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x31cfb9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x31cfb9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e2cf2[_0x31cfb9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x31cfb9([0x6e,0x61,0x6d,0x65])]:_0x31cfb9([0x45,0x43,0x44,0x53,0x41]),[_0x31cfb9([0x68,0x61,0x73,0x68])]:{[_0x31cfb9([0x6e,0x61,0x6d,0x65])]:_0x31cfb9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3ed9bf,_0x2b461d,_0x5df8a2)||(_0x17acb7=!0x1);}}function _0xadaaf6(_0x36ee82){return _0x36ee82[_0x31cfb9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x31cfb9([0x65,0x79]))?JSON[_0x31cfb9([0x70,0x61,0x72,0x73,0x65])](_0x307dfd(_0x36ee82)):null;}function _0x307dfd(_0x5c3208){return window[_0x31cfb9([0x61,0x74,0x6f,0x62])](_0x5c3208[_0x31cfb9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x31cfb9([0x2b]))[_0x31cfb9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x31cfb9([0x2f])));}function _0x44c779(_0x290bef){let _0x46d2a1=0x1505;function _0x5ddf92(_0x5cdc70){for(let _0x67afdf=0x0;_0x67afdf<_0x5cdc70[_0x31cfb9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x67afdf++){const _0x15ef5f=_0x5cdc70[_0x31cfb9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x67afdf);_0x46d2a1=(_0x46d2a1<<0x5)+_0x46d2a1+_0x15ef5f,_0x46d2a1&=_0x46d2a1;}}function _0x54b26f(_0x21c2c0){Array[_0x31cfb9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x21c2c0)?_0x21c2c0[_0x31cfb9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x54b26f):_0x21c2c0&&typeof _0x21c2c0==_0x31cfb9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x31cfb9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x21c2c0)[_0x31cfb9([0x73,0x6f,0x72,0x74])]()[_0x31cfb9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x999988,_0x2c16ad])=>{_0x5ddf92(_0x999988),_0x54b26f(_0x2c16ad);}):_0x5ddf92(window[_0x31cfb9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x21c2c0));}return _0x54b26f(_0x290bef),_0x46d2a1>>>0x0;}function _0x33a1ab(_0x32ac97){return _0x32ac97[_0x31cfb9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x31cfb9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x31cfb9([0x30]));}function _0x3a9c26(_0x386936){return _0x386936[_0x31cfb9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x31cfb9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x31cfb9([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d0894(){}function _0x31cfb9(_0x9360ed){return _0x9360ed['map'](_0x3aca29=>String['fromCharCode'](_0x3aca29))['join']('');}_0x29f4e8(await _0x3436b9());}(this);}['_initSchema'](){const _0x1f317e=this['editor']['model']['schema'];_0x1f317e['isRegistered']('imageBlock')&&_0x1f317e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1f317e['isRegistered']('imageInline')&&_0x1f317e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x55cb92=this['editor'];_0x55cb92['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x55cb92['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x25ee45=>_0x25ee45['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x32e76c=_0x55cb92['commands']['get']('replaceImageSource');_0x32e76c&&this['listenTo'](_0x32e76c,'cleanupImage',(_0x33cd58,[_0x35261f,_0x455204])=>{_0x35261f['removeAttribute']('uploadcareImageId',_0x455204);});}['_initConfig'](){const _0x413519=this['editor']['config']['get']('uploadcare.uploader')||{},_0x598d3f=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3bf56a(_0x206eec['document'],'uc-config',{..._0x413519,'pubkey':_0x598d3f,'ctx-name':'uploader-'+this['ucContextId'],'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']=_0x574445=>{if('closeMax'==_0x574445)return'#uc-icon-arrow-down';},_0x206eec['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3bf56a(_0x206eec['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x206eec['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3de974=this['editor']['commands']['get']('insertImage');_0x3de974&&this['listenTo'](_0x3de974,'execute',()=>{const _0xe2a946=this['editor']['model']['document']['selection']['getSelectedElement']();_0xe2a946&&_0xe2a946['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xe2a946);});});const _0x2c21f2=this['editor']['commands']['get']('uploadcareImageReplace');_0x2c21f2&&this['listenTo'](_0x2c21f2,'execute',()=>{const _0x58c252=this['editor']['model']['document']['selection']['getSelectedElement']();_0x58c252&&_0x58c252['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x58c252);});});}}class tt extends _0x9edcba{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30b2d7){super(_0x30b2d7),_0x30b2d7['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5b0283['defineComponents'](_0x5b0283),this['_defineLocale']();}['_defineLocale'](){const _0x1a78f0=this['editor']['config']['get']('uploadcare.locale'),_0x4d13d9=this['editor']['locale']['contentLanguage'];_0x1a78f0&&_0x5b0283['defineLocale'](_0x4d13d9,_0x1a78f0);}}class ii extends _0x130440{constructor(_0x2f18ce){super(_0x2f18ce);const t=_0x2f18ce['t'],_0x131466=this['bindTemplate'],_0x40fd42=new _0xca99f9();_0x40fd42['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':[_0x40fd42,{'text':_0x131466['to']('imageUploadProgress',_0x12b983=>t('Loading\x20image...')+'\x20('+(_0x12b983||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 ti extends _0x130440{constructor(_0x3c3950){super(_0x3c3950);const t=_0x3c3950['t'];this['set']('errorType',null);const _0x248aea=new _0x570821(_0x3c3950);_0x248aea['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x248aea['withText']=!0x0,_0x248aea['class']='ck-button-action',_0x248aea['on']('execute',()=>{this['fire']('retry');}),_0x248aea['bind']('isVisible')['to'](this,'errorType',_0xf182d8=>'NotFound'!==_0xf182d8);const _0x393607=new _0x3a5aaf();_0x393607['content']=_0x559812,_0x393607['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2f2d79=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':[_0x393607,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2f2d79['to']('errorType',_0x51efdf=>t('NotFound'!==_0x51efdf?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x248aea]},{'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 ei extends _0x130440{constructor(_0x40de58,_0x44d936){super(_0x40de58);const _0x18b19b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x44d936,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x18b19b['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2df95f,_0x15b31d,_0xe52137){super(_0x2df95f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2df95f),this['_errorView']=new ti(_0x2df95f),this['_editingView']=new ei(_0x2df95f,_0xe52137),this['_focusableView']=new _0x130440(_0x2df95f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x15b31d),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'],_0x5bd950=>{this['_addUploadcareImageEditorListeners'](_0x5bd950);});}),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'](_0x2452b3,_0x49875e){const _0x50cbe2='uc-cloud-image-editor',_0x25887a=_0x2452b3['querySelector'](_0x50cbe2);if(_0x25887a)return _0x49875e(_0x25887a);const _0x51b15f=new MutationObserver(_0x607542=>{const _0x4e9296=_0x607542['filter'](_0x3cbad5=>_0x3cbad5['target']===_0x2452b3&&_0x3cbad5['addedNodes']['length']>0x0&&_0x3cbad5['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x50cbe2);_0x4e9296['length']&&(_0x51b15f['disconnect'](),_0x49875e(_0x4e9296[0x0]['addedNodes'][0x0]));});_0x51b15f['observe'](_0x2452b3,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5fff9e){_0x5fff9e['addEventListener']('apply',_0x4b2f62=>{this['fire']('apply',{'imageSrc':_0x4b2f62['detail']['cdnUrl']});}),_0x5fff9e['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0xc15507(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5d4ee3,_0x200f73,_0x19a8b5){super(),this['_editor']=_0x5d4ee3,this['_dialog']=_0x200f73,this['_imageElement']=_0x19a8b5,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 _0x221716=this['_imageElement'],_0x4f47f5=_0x221716['getAttribute']('uploadcareImageId'),_0x1fcf7e=_0x221716['getAttribute']('src');if(_0x4f47f5)await this['_loadImageInfo'](_0x4f47f5,_0x1fcf7e);else{if(this['_imageCache']['has'](_0x1fcf7e)){const _0x133b19=this['_imageCache']['get'](_0x1fcf7e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x133b19['url'],this['imageDimension']=_0x133b19['dimension'],this['imageId']=_0x133b19['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x433fbb}=this['_editor'],t=_0x433fbb['t'],_0x324f44=new X(_0x433fbb,this['imageStatus'],this['_attributes']);_0x324f44['bind']('status')['to'](this,'imageStatus'),_0x324f44['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x324f44['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x324f44['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x324f44,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5ee898,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x324f44,'position':_0x333918['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x324f44['focus']();},'onHide':()=>{_0x324f44['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xa7c6be=>!A(_0xa7c6be,_0x324f44['element'])}});}['_loadImageInfo'](_0x366541,_0x5682fe){return j['getInfo'](_0x366541,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x573226=>{const {width:_0x4e3048,height:_0xae803b}=_0x573226['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5682fe,this['imageDimension']={'width':_0x4e3048,'height':_0xae803b},this['imageId']=_0x366541;})['catch'](_0x469bde=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x469bde['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x6509e2,_0x3163c0){return this['_getImageAsFile'](_0x6509e2)['then'](_0x174f21=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3163c0['signal'],'file':_0x174f21,'onProgress':_0x392df9=>{_0x392df9&&_0x392df9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x392df9['value']));}}))['then'](_0x317b15=>{const {width:_0x149473,height:_0x16775a}=_0x317b15['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x317b15['cdnUrl'],this['imageDimension']={'width':_0x149473,'height':_0x16775a},this['imageId']=_0x317b15['uuid'],this['imageUploadProgress']=null;const _0x2b4edd=_0x6509e2['getAttribute']('src');this['_imageCache']['set'](_0x2b4edd,{'id':_0x317b15['uuid'],'url':_0x317b15['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x16d397=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x16d397['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xe9270e,_0x111fd1){_0xe9270e['on']('apply',(_0x356cfc,_0x1b4571)=>{this['_replaceImage'](_0x111fd1,_0x1b4571['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xe9270e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xe9270e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x522a,_0x109dad,_0x15cf88){const _0x3c5f44=this['_editor'],{width:_0x12ba0d,height:_0x8f21c1}=S(_0x109dad,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5d985b,imageSources:_0x1e6782}=C(_0x109dad,_0x12ba0d);_0x3c5f44['model']['change'](_0x404dbd=>{if('$graveyard'===_0x522a['root']['rootName']){_0x3c5f44['execute']('insertImage',{'imageType':_0x522a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x522a['getAttributes']()),'uploadcareImageId':_0x15cf88,'src':_0x5d985b,'sources':_0x1e6782,'width':_0x12ba0d,'height':_0x8f21c1}});const _0x1a012f=_0x522a['getChildren']();_0x522a=_0x3c5f44['model']['document']['selection']['getSelectedElement']();for(const _0xfe1f09 of _0x1a012f)_0x404dbd['append'](_0x404dbd['cloneElement'](_0xfe1f09),_0x522a);}else _0x404dbd['setSelection'](_0x522a,'on'),_0x3c5f44['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x522a['getAttributes']()),'uploadcareImageId':_0x15cf88,'src':_0x5d985b,'sources':_0x1e6782,'width':_0x12ba0d,'height':_0x8f21c1},_0x522a);_0x404dbd['setSelection'](_0x522a,'on');});}async['_getImageAsFile'](_0x37cdf2){const _0x5fe9b9=_0x206eec['window'],_0x5ee3bd=_0x206eec['document']['location']['href'],_0x3322c1=new _0x5fe9b9['URL'](_0x37cdf2['getAttribute']('src'),_0x5ee3bd);if('data:'===_0x3322c1['protocol']){const _0x44318e=_0x3322c1['href']['split'](','),_0x3908fc=_0x44318e[0x0]['match'](/:(.*?);/)[0x1],_0xd2bac6=_0x3908fc['split']('/')[0x1],_0x34229b=_0x5fe9b9['atob'](_0x44318e[_0x44318e['length']-0x1]);let _0x5206f9=_0x34229b['length'];const _0x8cb423=new _0x5fe9b9['Uint8Array'](_0x5206f9);for(;_0x5206f9--;)_0x8cb423[_0x5206f9]=_0x34229b['charCodeAt'](_0x5206f9);return new _0x5fe9b9['File']([_0x8cb423],'image.'+_0xd2bac6,{'type':_0x3908fc});}const _0x1520f6=_0x3322c1['href']['split']('/'),_0x4160b0=_0x1520f6[_0x1520f6['length']-0x1],_0x576385=_0x4160b0['split']('.')[0x1];return _0x5fe9b9['fetch'](_0x3322c1['href'])['then'](_0x4ba7b0=>_0x4ba7b0['clone']()['blob']())['then'](_0x6c41a=>new _0x5fe9b9['File']([_0x6c41a],_0x4160b0,{'type':'image/'+_0x576385}));}}class O extends _0x29c7ff{['imageEditController'];static get['requires'](){return[_0xadced8];}['_isEditable'];constructor(_0x144a2f){super(_0x144a2f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x33e792){const _0x5c3fda=G(_0x33e792);return _0x57d8f9=>!(!_0x57d8f9||!_0x57d8f9['is']('element','imageBlock')&&!_0x57d8f9['is']('element','imageInline'))&&(!!_0x57d8f9['hasAttribute']('uploadcareImageId')||!!_0x57d8f9['hasAttribute']('src')&&_0x5c3fda(_0x57d8f9['getAttribute']('src')));}(_0x144a2f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x169cde=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x169cde);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x543258=this['editor']['model']['document']['selection']['getSelectedElement']();_0x543258&&(_0x543258['is']('element','imageBlock')||_0x543258['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0xadced8),_0x543258),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x29c7ff{['refresh'](){const _0x46f02=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x46f02&&(_0x46f02['is']('element','imageBlock')||_0x46f02['is']('element','imageInline')));}['execute'](_0xf5e54b){const _0x4df41b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x567164=>{_0x567164['setAttributes'](_0xf5e54b,_0x4df41b),_0x567164['removeAttribute']('srcset',_0x4df41b),_0x567164['removeAttribute']('sizes',_0x4df41b);});}}class m extends _0x9edcba{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x284348,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3a275d}=this;_0x3a275d['commands']['add']('uploadcareImageEdit',new O(_0x3a275d)),_0x3a275d['commands']['add']('uploadcareImageReplace',new R(_0x3a275d));}}class g extends _0x9edcba{['_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 _0x3428a1=this['editor'];_0x3428a1['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1e80e4=>{const _0x11507b=_0x3428a1['commands']['get']('uploadcareImageEdit'),_0x1bedfd=new _0x570821(_0x1e80e4),t=_0x1e80e4['t'];return _0x1bedfd['set']({'icon':_0x5ee898,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1bedfd['bind']('isEnabled')['to'](_0x11507b),_0x1bedfd['bind']('isOn')['to'](_0x11507b,'isActive'),this['listenTo'](_0x1bedfd,'execute',()=>{_0x3428a1['execute']('uploadcareImageEdit'),_0x3428a1['editing']['view']['focus']();}),_0x1bedfd;}),this['_initConfig']();}['_initConfig'](){const _0xc695d0=_0x3bf56a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xc695d0),this['listenTo'](this['editor'],'destroy',()=>{_0xc695d0['remove']();});}}class et extends _0x9edcba{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x35bcdb,Command as _0x45201e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4caf60,IconGooglePhotos as _0x10fdba,IconGoogleDrive as _0x5329b5,IconFacebook as _0x502ce8,IconDropbox as _0x4a783b,IconUploadcareLink as _0x53f76f,IconUploadcareImageUpload as _0x181c64,IconError as _0x4be8ac,IconUploadcareImageEdit as _0x24a86c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xca984,MenuBarMenuListItemButtonView as _0x345aac,View as _0x25a3d4,FocusCycler as _0x496d6c,Dialog as _0x18f095,DialogViewPosition as _0x5ea1b7,SpinnerView as _0x36630e,IconView as _0xedde6c,Notification as _0x2c0336}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x11e928,DomEmitterMixin as _0x156864,global as _0x3155b2,getAncestors as _0x283c5e,ObservableMixin as _0x768f9c,uid as _0x19f593,createElement as _0x3fc350}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x26f3c6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x55429f,info as _0xc3156f}from'@uploadcare/upload-client';import*as _0xc1a756 from'@uploadcare/file-uploader';var i=function(_0x190a3d){return _0x190a3d['Local']='local',_0x190a3d['URL']='url',_0x190a3d['Dropbox']='dropbox',_0x190a3d['GDrive']='gdrive',_0x190a3d['Facebook']='facebook',_0x190a3d['GPhotos']='gphotos',_0x190a3d['OneDrive']='onedrive',_0x190a3d;}({});function _(_0x463521,_0x32569a,_0x37f614){const t=_0x463521['t'],_0x8c92ef=_0x463521['t'];switch(_0x32569a){case i['Local']:return{'text':_0x8c92ef('Insert'===_0x37f614?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x8c92ef('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x37f614?_0x8c92ef('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x8c92ef('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x37f614?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x37f614?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x37f614?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x37f614?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x37f614?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x32569a;}}class e extends _0x35bcdb{['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 _0x1f0bfd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x13247c;for(const _0x4c98b1 in _0x1f0bfd){const _0x529145=_0x4c98b1,_0x156532=_0x1f0bfd[_0x529145];if('uploadcareLicenseKeyValid'==_0x156532||'uploadcareLicenseKeyInvalid'==_0x156532||'uploadcareLicenseKeyExpired'==_0x156532||'uploadcareLicenseKeyDomainLimit'==_0x156532||'uploadcareLicenseKeyNotAllowed'==_0x156532||'uploadcareLicenseKeyEvaluationLimit'==_0x156532||'uploadcareLicenseKeyTrialLimit'==_0x156532||'uploadcareLicenseKeyUsageLimit'==_0x156532){delete _0x1f0bfd[_0x529145],_0x13247c=_0x156532,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x13247c&&_0x1f0bfd['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x13247c&&_0x1f0bfd['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x13247c&&_0x1f0bfd['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x13247c&&_0x1f0bfd['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x13247c&&_0x1f0bfd['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x13247c&&_0x1f0bfd['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x13247c&&_0x1f0bfd['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x355c90}=this,_0x4ddefd=_0x355c90['commands']['get']('uploadcare');if(!_0x4ddefd)return;const _0x404252=this['_normalizeConfigSourceList'](_0x355c90['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x32310c,_0x294a64)=>{const _0x473928=this['_getIntegrationKey'](_0x294a64['type']);return _0x32310c[_0x473928]||(_0x32310c[_0x473928]=[]),_0x32310c[_0x473928]['push'](_0x294a64),_0x32310c;},{});_0x355c90['plugins']['has']('ImageInsertUI')&&_0x355c90['commands']['get']('uploadcare')&&Object['entries'](_0x404252)['forEach'](([_0x4984ed,_0x2e4116])=>{_0x355c90['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4984ed,'observable':()=>_0x4ddefd,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2e4116),'formViewCreator':()=>this['_createDropdownButtons'](_0x2e4116),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2e4116),'override':'assetManager'!==_0x4984ed});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5dc259){const {locale:_0x5ab8c4}=this['editor'];return _0x5dc259['map'](_0x357950=>{const _0x1b25f7=_(_0x5ab8c4,_0x357950,'Insert');switch(_0x357950){case i['Local']:return{'icon':_0x181c64,'type':i['Local'],..._0x1b25f7};case i['URL']:return{'icon':_0x53f76f,'type':i['URL'],..._0x1b25f7};case i['Dropbox']:return{'icon':_0x4a783b,'type':i['Dropbox'],..._0x1b25f7};case i['Facebook']:return{'icon':_0x502ce8,'type':i['Facebook'],..._0x1b25f7};case i['GDrive']:return{'icon':_0x5329b5,'type':i['GDrive'],..._0x1b25f7};case i['GPhotos']:return{'icon':_0x10fdba,'type':i['GPhotos'],..._0x1b25f7};case i['OneDrive']:return{'icon':_0x4caf60,'type':i['OneDrive'],..._0x1b25f7};}});}['_getIntegrationKey'](_0x1d5ddc){switch(_0x1d5ddc){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x51105b,_0x52d826){const _0x3eac16=this['editor'],_0x3d441b=new _0x51105b(_0x3eac16['locale']),_0x2de297=_0x3eac16['commands']['get']('uploadcare');return _0x3d441b['bind']('isEnabled')['to'](_0x2de297),_0x3d441b['on']('execute',()=>{_0x2de297['execute'](_0x52d826);}),_0x3d441b;}['_createToolbarButton'](_0x2c1437){const {locale:_0x2ff5ae}=this['editor'],_0x2179e0=this['editor']['plugins']['get']('ImageInsertUI'),_0x186a92=_0x2c1437[0x0],_0x46f572=this['_createButton'](_0xca984,_0x186a92['type']);return _0x46f572['icon']=_0x186a92['icon'],_0x46f572['bind']('label')['to'](_0x2179e0,'isImageSelected',_0x5c2106=>_(_0x2ff5ae,_0x186a92['type'],_0x5c2106?'Replace':'Insert')['text']),_0x46f572['tooltip']=!0x0,_0x46f572;}['_createDropdownButtons'](_0x335959){const {locale:_0x3f43e8}=this['editor'],_0x1290b1=this['editor']['plugins']['get']('ImageInsertUI');return _0x335959['map'](_0x44e867=>{const _0x4cfcb8=this['_createButton'](_0xca984,_0x44e867['type']);return _0x4cfcb8['withText']=!0x0,_0x4cfcb8['icon']=_0x44e867['icon'],_0x4cfcb8['bind']('label')['to'](_0x1290b1,'isImageSelected',_0x850b6=>_(_0x3f43e8,_0x44e867['type'],_0x850b6?'Replace':'Insert')['text']),_0x4cfcb8;});}['_createMenuBarButtons'](_0x3eca99){return _0x3eca99['map'](_0x14f714=>{const _0x56c096=this['_createButton'](_0x345aac,_0x14f714['type']);return _0x56c096['icon']=_0x14f714['icon'],_0x56c096['label']=_0x14f714['shortText'],_0x56c096;});}}class F extends _0x25a3d4{['focusTracker'];['focusCycler'];constructor(_0x3ba2dc){super(_0x3ba2dc),this['focusTracker']=new _0x11e928(),this['focusCycler']=new _0x496d6c({'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 x extends F{constructor(_0x4539ac,_0x56b66c){super(_0x4539ac),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-'+_0x56b66c}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xcc5fdb,_0x521001){const _0x4a36b6=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4e4762=>_0x4e4762<=_0x521001)['map'](_0x3b236e=>_0xcc5fdb['replace'](/\/$/,'')+'/-/resize/'+_0x3b236e+'x/\x20'+_0x3b236e+'w');return{'imageFallbackUrl':_0xcc5fdb,'imageSources':[{'srcset':_0x4a36b6['join'](',\x20'),'sizes':'(max-width:\x20'+_0x521001+'px)\x20100vw,\x20'+_0x521001+'px','type':'image/webp'}]};}function S(_0x41be23,_0x204a88,_0x4654b3){const _0x1bc902=_0x41be23['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1bc902?parseInt(_0x1bc902[0x1],0xa):_0x204a88,'height':_0x1bc902?parseInt(_0x1bc902[0x2],0xa):_0x4654b3};}function p(_0x4c836d,_0x45a089){const _0x2bbaf3=new(_0x156864())(),_0x432e31=_0x4c836d['plugins']['get']('ImageUtils'),_0xebd8ec=_0x4c836d['editing']['mapper']['toViewElement'](_0x45a089),_0x60eca2=_0x432e31['findViewImgElement'](_0xebd8ec),_0x11955e=_0x4c836d['editing']['view']['domConverter']['viewToDom'](_0x60eca2),_0x403214=_0x45a089['getAttribute']('width'),_0x2d9b4f=_0x45a089['getAttribute']('height'),_0x4068c4='image-processing';_0x4c836d['editing']['view']['change'](_0x41dfe1=>{_0x41dfe1['addClass'](_0x4068c4,_0xebd8ec),_0x41dfe1['setStyle']('aspect-ratio',_0x403214+'/'+_0x2d9b4f,_0x60eca2);}),_0x2bbaf3['listenTo'](_0x11955e,'load',()=>{_0x2bbaf3['stopListening'](_0x11955e,'load'),_0x4c836d['editing']['view']['change'](_0x417527=>{_0x417527['removeClass'](_0x4068c4,_0xebd8ec),_0x417527['removeStyle']('aspect-ratio',_0x60eca2);});});}function G(_0x51ee84){if(Array['isArray'](_0x51ee84)){const _0x2031c0=_0x51ee84['map'](G);return _0x4e2658=>_0x2031c0['some'](_0x2bb1cd=>_0x2bb1cd(_0x4e2658));}if('origin'==_0x51ee84){const _0x489e77=_0x3155b2['window']['location']['origin'];return _0x74733a=>new URL(_0x74733a,_0x3155b2['document']['baseURI'])['origin']==_0x489e77;}return'function'==typeof _0x51ee84?_0x51ee84:_0x51ee84 instanceof RegExp?_0xe40af3=>!(!_0xe40af3['match'](_0x51ee84)&&!_0xe40af3['replace'](/^https?:\/\//,'')['match'](_0x51ee84)):()=>!0x1;}function A(_0x40de4e,_0x2f5999){return _0x283c5e(_0x40de4e['target'])['includes'](_0x2f5999);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x768f9c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x42be52,_0x4f20e7,_0x5ba3b6){super(),this['_editor']=_0x42be52,this['_editing']=_0x4f20e7,this['_dialog']=_0x42be52['plugins']['get'](_0x18f095),this['_api']=_0x4f20e7['ctxElement']['getAPI'](),this['_type']=_0x5ba3b6,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:_0x5eee2c,model:_0x59404b}=this['_editor'],_0x180412=_0x59404b['document']['selection']['getSelectedElement'](),_0x498e64=_0x180412&&(_0x180412['is']('element','imageBlock')||_0x180412['is']('element','imageInline'));this['_formView']=new x(_0x5eee2c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x181c64,'title':_(_0x5eee2c,this['_type'],_0x498e64?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5ea1b7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3ad440=>!A(_0x3ad440,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x22b714}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x7a23c0=>{const _0x5a5370=_0x22b714['length'];for(const _0x421a3c of _0x22b714){const _0x2a4b7f=_0x421a3c===_0x22b714[_0x5a5370-0x1],{cdnUrl:_0x102bdf,fileInfo:_0x3f2658}=_0x421a3c;if(!_0x102bdf||!_0x3f2658)continue;const {width:_0x2f17b0,height:_0x56fbf9}=_0x3f2658['imageInfo'],_0x4f4832=S(_0x102bdf,_0x2f17b0,_0x56fbf9),_0x27cb22=C(_0x102bdf,_0x4f4832['width']),_0x4a5b89={'id':_0x3f2658['uuid'],'type':'image','attributes':{'imageDimension':_0x4f4832,..._0x27cb22}};this['_insertAsset'](_0x4a5b89,_0x2a4b7f,_0x7a23c0);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x413dd2=>{'idle'===_0x413dd2['detail']['status']&&!_0x413dd2['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4d17bc,_0x890300,_0x3a8080){const _0x25535f=this['_editor']['model']['document']['selection'],_0x30e46c=_0x25535f['getSelectedElement'](),_0x3c4955=!(!_0x30e46c||!_0x30e46c['is']('element','imageInline'));_0x3a8080['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4d17bc,_0x3c4955),_0x890300||_0x3a8080['setSelection'](_0x25535f['getLastPosition']());}['_insertImage'](_0x3f1df5,_0x422e91){const _0x36f3b6=this['_editor'],{imageDimension:_0x5c7f5f,imageFallbackUrl:_0x892555,imageSources:_0x4af9df}=_0x3f1df5['attributes'];_0x36f3b6['execute']('insertImage',{'imageType':_0x422e91?'imageInline':null,'source':{'uploadcareImageId':_0x3f1df5['id'],'src':_0x892555,'sources':_0x4af9df,..._0x5c7f5f}});}}class w extends _0x45201e{['_editing'];['_controller']=null;static get['requires'](){return[_0x18f095,o];}constructor(_0x47556b){super(_0x47556b),this['_editing']=_0x47556b['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3f5c60){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3f5c60);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3fecac,..._0x5ab1be}){return _0x55429f(_0x3fecac,_0x5ab1be);}static['getInfo'](_0x560a45,_0x5b260b){return _0xc3156f(_0x560a45,_0x5b260b);}}class f extends _0x35bcdb{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x26f3c6,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1367f2=this['editor'];if(!!!_0x1367f2['config']['get']('uploadcare'))return;_0x1367f2['plugins']['get'](_0x26f3c6)['createUploadAdapter']=_0xcec47b=>new k(_0xcec47b,_0x1367f2),_0x1367f2['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5a38bb,{imageElement:_0x59f02c,data:_0x33d2eb})=>{_0x1367f2['model']['change'](_0x286295=>{_0x286295['setAttribute']('uploadcareImageId',_0x33d2eb['uploadcareImageId'],_0x59f02c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0xc89da6,_0xad450e){this['loader']=_0xc89da6,this['editor']=_0xad450e,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1e31e5=await this['loader']['file'];return j['upload']({'file':_0x1e31e5,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x105bce=>{_0x105bce&&_0x105bce['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x105bce['value']);}})['then'](async _0x102875=>{const {imageFallbackUrl:_0x54db1e,imageSources:_0x727209}=C(_0x102875['cdnUrl'],_0x102875['imageInfo']['width']);return{'uploadcareImageId':_0x102875['uuid'],'default':_0x54db1e,'sources':_0x727209};})['catch'](()=>{const _0x2345c3=t('Cannot\x20upload\x20file:')+('\x20'+_0x1e31e5['name']+'.');return Promise['reject'](_0x2345c3);});}['abort'](){this['controller']['abort']();}}class o extends _0x35bcdb{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x18f095];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5d9d43){super(_0x5d9d43),this['ucContextId']=_0x19f593();}['init'](){const _0xf8b819=this['editor'];_0xf8b819['commands']['add']('uploadcare',new w(_0xf8b819));}['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 _0x3ae6bb=_0x3155b2['document']['querySelector']('input[uploadcare-file-input]');_0x3ae6bb&&_0x3ae6bb['remove']();}),async function(_0x112313){const _0xe773ca=_0x2838fa([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x360a9a=0x535f8c3a,_0xf98384=0x5358f65a^_0x360a9a,_0x18066f=window[_0x2838fa([0x44,0x61,0x74,0x65])][_0x2838fa([0x6e,0x6f,0x77])](),_0x24dd61=_0x112313[_0x2838fa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5aa255=new window[(_0x2838fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58b35f=>{_0x24dd61[_0x2838fa([0x6f,0x6e,0x63,0x65])](_0x2838fa([0x72,0x65,0x61,0x64,0x79]),_0x58b35f);}),_0x51c29d={[_0x2838fa([0x6b,0x74,0x79])]:_0x2838fa([0x45,0x43]),[_0x2838fa([0x75,0x73,0x65])]:_0x2838fa([0x73,0x69,0x67]),[_0x2838fa([0x63,0x72,0x76])]:_0x2838fa([0x50,0x2d,0x32,0x35,0x36]),[_0x2838fa([0x78])]:_0x2838fa([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]),[_0x2838fa([0x79])]:_0x2838fa([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]),[_0x2838fa([0x61,0x6c,0x67])]:_0x2838fa([0x45,0x53,0x32,0x35,0x36])},_0x55402f=_0x24dd61[_0x2838fa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2838fa([0x67,0x65,0x74])](_0x2838fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x87829e(){let _0x4eee3c,_0x5485bf=null,_0x14752e=null;try{if(_0x55402f==_0x2838fa([0x47,0x50,0x4c]))return _0x2838fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4eee3c=_0x3b0f57(),!_0x4eee3c)return _0x2838fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4eee3c[_0x2838fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x14752e=_0x2cd89d(_0x4eee3c[_0x2838fa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4eee3c[_0x2838fa([0x6a,0x74,0x69])])),await _0x3f5a92()?_0x29402f()?_0x14c578()?_0x2838fa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x193aca()?(_0x4eee3c[_0x2838fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2838fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5485bf=_0x3b8e1d(_0x2838fa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4eee3c[_0x2838fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2838fa([0x74,0x72,0x69,0x61,0x6c])&&(_0x5485bf=_0x3b8e1d(_0x2838fa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ef42e()):_0x2838fa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2838fa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2838fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2838fa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x14c578(){const _0x14a397=[_0x2838fa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2838fa([0x74,0x72,0x69,0x61,0x6c])][_0x2838fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4eee3c[_0x2838fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x18066f/0x3e8:0xe10*_0xf98384;return _0x4eee3c[_0x2838fa([0x65,0x78,0x70])]<_0x14a397;}function _0x29402f(){const _0x538117=_0x4eee3c[_0x2838fa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x538117&&(!!_0x538117[_0x2838fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2838fa([0x2a]))||!!_0x538117[_0x2838fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2838fa([0x55,0x50,0x4c,0x43])));}function _0x193aca(){const _0x2d78ec=_0x4eee3c[_0x2838fa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2d78ec||0x0==_0x2d78ec[_0x2838fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x19a2f7}=new URL(window[_0x2838fa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2d78ec[_0x2838fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19a2f7))return!0x0;const _0x28e090=_0x19a2f7[_0x2838fa([0x73,0x70,0x6c,0x69,0x74])](_0x2838fa([0x2e]));return _0x2d78ec[_0x2838fa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a3d2e=>_0x1a3d2e[_0x2838fa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2838fa([0x2a])))[_0x2838fa([0x6d,0x61,0x70])](_0x25d3a7=>_0x25d3a7[_0x2838fa([0x73,0x70,0x6c,0x69,0x74])](_0x2838fa([0x2e])))[_0x2838fa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34dacd=>_0x34dacd[_0x2838fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28e090[_0x2838fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2838fa([0x6d,0x61,0x70])](_0x4529a1=>Array(_0x28e090[_0x2838fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4529a1[_0x2838fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2838fa([0x66,0x69,0x6c,0x6c])](_0x4529a1[0x0]===_0x2838fa([0x2a])?_0x2838fa([0x2a]):'')[_0x2838fa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4529a1))[_0x2838fa([0x73,0x6f,0x6d,0x65])](_0x2a5679=>_0x28e090[_0x2838fa([0x65,0x76,0x65,0x72,0x79])]((_0x13a1cc,_0xe498a7)=>_0x2a5679[_0xe498a7]===_0x13a1cc||_0x2a5679[_0xe498a7]===_0x2838fa([0x2a])));}function _0x4ef42e(){return _0x5485bf&&_0x14752e?new window[(_0x2838fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4be6b1,_0x1c02ea)=>{_0x5485bf[_0x2838fa([0x74,0x68,0x65,0x6e])](_0x4be6b1,_0x1c02ea),_0x14752e[_0x2838fa([0x74,0x68,0x65,0x6e])](_0x5d33f0=>{_0x5d33f0!=_0x2838fa([0x56,0x61,0x6c,0x69,0x64])&&_0x4be6b1(_0x5d33f0);},_0x1c02ea);}):_0x5485bf||_0x14752e||_0x2838fa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2cd89d(_0x4bb19c,_0x2e2c6d){return new window[(_0x2838fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44c742=>{if(_0x252a03())return _0x44c742(_0x2838fa([0x56,0x61,0x6c,0x69,0x64]));_0x38b391(),_0x24dd61[_0x2838fa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2838fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xbaa147=!0x1;const _0x2441f3=_0x19f593();function _0x41243d(_0x539836){return!!_0x539836&&(typeof _0x539836===_0x2838fa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x539836===_0x2838fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x539836[_0x2838fa([0x74,0x68,0x65,0x6e])]===_0x2838fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x539836[_0x2838fa([0x63,0x61,0x74,0x63,0x68])]===_0x2838fa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d8691(_0x22f889){_0x555161(_0x22f889)[_0x2838fa([0x74,0x68,0x65,0x6e])](_0x3d790f=>{if(!_0x3d790f||_0x3d790f[_0x2838fa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2838fa([0x6f,0x6b]))return _0x2838fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x30fb55(_0x22e259(_0x2441f3+_0x2e2c6d))!=_0x3d790f[_0x2838fa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2838fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2838fa([0x56,0x61,0x6c,0x69,0x64]);})[_0x2838fa([0x74,0x68,0x65,0x6e])](_0x307f8d=>(_0x1bafc1(),_0x307f8d),()=>{const _0x5f5bd5=_0x2b4039();return null==_0x5f5bd5?(_0x1bafc1(),_0x2838fa([0x56,0x61,0x6c,0x69,0x64])):_0x2838fa(_0x18066f-_0x5f5bd5>(0x7753083a^_0x360a9a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2838fa([0x74,0x68,0x65,0x6e])](_0x44c742)[_0x2838fa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x44c742(_0x2838fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a4ef2=0x536962ba^_0x360a9a;function _0x1bafc1(){const _0x33f8a8=_0x2838fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x30fb55(_0x22e259(_0x4bb19c)),_0x53bf4f=_0x1679a0(_0x30fb55(window[_0x2838fa([0x4d,0x61,0x74,0x68])][_0x2838fa([0x63,0x65,0x69,0x6c])](_0x18066f/_0x1a4ef2)));window[_0x2838fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2838fa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33f8a8,_0x53bf4f);}function _0x2b4039(){const _0xffd089=_0x2838fa([0x6c,0x6c,0x63,0x74,0x2d])+_0x30fb55(_0x22e259(_0x4bb19c)),_0x24dfc1=window[_0x2838fa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2838fa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xffd089);return _0x24dfc1?window[_0x2838fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1679a0(_0x24dfc1),0x10)*_0x1a4ef2:null;}function _0x555161(_0x3cefb9){return new window[(_0x2838fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ca7ca,_0xc1e840)=>{_0x3cefb9[_0x2838fa([0x74,0x68,0x65,0x6e])](_0x4ca7ca,_0xc1e840),window[_0x2838fa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc1e840,0x535e58fa^_0x360a9a);});}}_0x24dd61[_0x2838fa([0x6f,0x6e])](_0x2838fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51803d,_0x5a2987)=>{if(_0x5a2987[0x0]!=_0x4bb19c)return _0x44c742(_0x2838fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a2987[0x1]={..._0x5a2987[0x1],[_0x2838fa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2441f3};},{[_0x2838fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2838fa([0x68,0x69,0x67,0x68])}),_0x24dd61[_0x2838fa([0x6f,0x6e])](_0x2838fa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5534d5=>{_0x41243d(_0x5534d5[_0x2838fa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xbaa147=!0x0,_0x1d8691(_0x5534d5[_0x2838fa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2838fa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2838fa([0x6c,0x6f,0x77])}),_0x5aa255[_0x2838fa([0x74,0x68,0x65,0x6e])](()=>{_0xbaa147||_0x44c742(_0x2838fa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x252a03(){return _0x24dd61[_0x2838fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2838fa([0x76,0x69,0x65,0x77])][_0x2838fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2838fa([0x61,0x75,0x74,0x6f]);}function _0x38b391(){_0x24dd61[_0x2838fa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2838fa([0x76,0x69,0x65,0x77])][_0x2838fa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2838fa([0x61,0x75,0x74,0x6f]);}}function _0x3b8e1d(_0x540e53){const _0x1859d6=[new window[(_0x2838fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b5191=>setTimeout(_0x3b5191,0x5356b2f6^_0x360a9a)),_0x5aa255[_0x2838fa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2838fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x598019=>{let _0x279366=0x0;_0x24dd61[_0x2838fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x2838fa([0x6f,0x6e])](_0x2838fa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x366f41,_0x576b1e)=>{_0x576b1e[0x0][_0x2838fa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x279366++,_0x279366==(0x535f8dc2^_0x360a9a)&&(_0x598019(),_0x366f41[_0x2838fa([0x6f,0x66,0x66])]());});}))];return window[_0x2838fa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2838fa([0x72,0x61,0x63,0x65])](_0x1859d6)[_0x2838fa([0x74,0x68,0x65,0x6e])](()=>_0x540e53);}async function _0x4e7b01(){await _0x5aa255,_0x24dd61[_0x2838fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x2838fa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5dcdb7,_0x24dd61[_0x2838fa([0x6d,0x6f,0x64,0x65,0x6c])][_0x2838fa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5dcdb7,_0x24dd61[_0x2838fa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2838fa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x12469e(_0x52f3a1){const _0x340aa6=_0x26ed26();_0x24dd61[_0x340aa6]=_0x2838fa([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52f3a1,_0x52f3a1!=_0x2838fa([0x56,0x61,0x6c,0x69,0x64])&&_0x4e7b01();}function _0x26ed26(){const _0x3fa54e=window[_0x2838fa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2838fa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2838fa([0x6e,0x6f,0x77])]())[_0x2838fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2838fa([0x2e]),'');let _0x30f563=_0x2838fa([0x68]);for(let _0x3ec965=0x0;_0x3ec965<_0x3fa54e[_0x2838fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ec965+=0x2){let _0x17c79f=window[_0x2838fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fa54e[_0x2838fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ec965,_0x3ec965+0x2));_0x17c79f>=_0xe773ca[_0x2838fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x17c79f-=_0xe773ca[_0x2838fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30f563+=_0xe773ca[_0x17c79f];}return _0x30f563;}function _0x3b0f57(){const _0x637513=_0x55402f[_0x2838fa([0x73,0x70,0x6c,0x69,0x74])](_0x2838fa([0x2e]));if(0x3!=_0x637513[_0x2838fa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x576779(_0x637513[0x1]);function _0x576779(_0x5529fe){const _0x15a335=_0x3d90ba(_0x5529fe);return _0x15a335&&_0x15e74b()?_0x15a335:null;function _0x15e74b(){const _0x27f104=_0x15a335[_0x2838fa([0x6a,0x74,0x69])],_0xdc0763=window[_0x2838fa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27f104[_0x2838fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27f104[_0x2838fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4c2b9a={..._0x15a335,[_0x2838fa([0x6a,0x74,0x69])]:_0x27f104[_0x2838fa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27f104[_0x2838fa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4c2b9a[_0x2838fa([0x76,0x63])],_0x22e259(_0x4c2b9a)==_0xdc0763;}}}async function _0x3f5a92(){let _0x5ab93e=!0x0;try{const _0x199a82=_0x55402f[_0x2838fa([0x73,0x70,0x6c,0x69,0x74])](_0x2838fa([0x2e])),[_0x24ac3e,_0x5a7ded,_0x28c291]=_0x199a82;return _0x42ef02(_0x24ac3e),await _0x3dfd3b(_0x24ac3e,_0x5a7ded,_0x28c291),_0x5ab93e;}catch{return!0x1;}function _0x42ef02(_0x524925){const _0x20342a=_0x3d90ba(_0x524925);_0x20342a&&_0x20342a[_0x2838fa([0x61,0x6c,0x67])]==_0x2838fa([0x45,0x53,0x32,0x35,0x36])||(_0x5ab93e=!0x1);}async function _0x3dfd3b(_0xc95f94,_0x5f0811,_0x48148c){const _0x5f1851=window[_0x2838fa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2838fa([0x66,0x72,0x6f,0x6d])](_0x25e4e0(_0x48148c),_0x4a518b=>_0x4a518b[_0x2838fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b70f1=new window[(_0x2838fa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2838fa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc95f94+_0x2838fa([0x2e])+_0x5f0811),_0x287ece=window[_0x2838fa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2838fa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x287ece)return;const _0x3fda88=await _0x287ece[_0x2838fa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2838fa([0x6a,0x77,0x6b]),_0x51c29d,{[_0x2838fa([0x6e,0x61,0x6d,0x65])]:_0x2838fa([0x45,0x43,0x44,0x53,0x41]),[_0x2838fa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2838fa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2838fa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x287ece[_0x2838fa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2838fa([0x6e,0x61,0x6d,0x65])]:_0x2838fa([0x45,0x43,0x44,0x53,0x41]),[_0x2838fa([0x68,0x61,0x73,0x68])]:{[_0x2838fa([0x6e,0x61,0x6d,0x65])]:_0x2838fa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3fda88,_0x5f1851,_0x1b70f1)||(_0x5ab93e=!0x1);}}function _0x3d90ba(_0x2bd1c6){return _0x2bd1c6[_0x2838fa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2838fa([0x65,0x79]))?JSON[_0x2838fa([0x70,0x61,0x72,0x73,0x65])](_0x25e4e0(_0x2bd1c6)):null;}function _0x25e4e0(_0x66e777){return window[_0x2838fa([0x61,0x74,0x6f,0x62])](_0x66e777[_0x2838fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2838fa([0x2b]))[_0x2838fa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2838fa([0x2f])));}function _0x22e259(_0xb6df72){let _0x58c32f=0x1505;function _0x2b820d(_0x4d0dd0){for(let _0x308229=0x0;_0x308229<_0x4d0dd0[_0x2838fa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x308229++){const _0x1b922e=_0x4d0dd0[_0x2838fa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x308229);_0x58c32f=(_0x58c32f<<0x5)+_0x58c32f+_0x1b922e,_0x58c32f&=_0x58c32f;}}function _0x55b7d1(_0x4366b1){Array[_0x2838fa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4366b1)?_0x4366b1[_0x2838fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x55b7d1):_0x4366b1&&typeof _0x4366b1==_0x2838fa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2838fa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4366b1)[_0x2838fa([0x73,0x6f,0x72,0x74])]()[_0x2838fa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x49b96e,_0x22628f])=>{_0x2b820d(_0x49b96e),_0x55b7d1(_0x22628f);}):_0x2b820d(window[_0x2838fa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4366b1));}return _0x55b7d1(_0xb6df72),_0x58c32f>>>0x0;}function _0x30fb55(_0x2f6b18){return _0x2f6b18[_0x2838fa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2838fa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2838fa([0x30]));}function _0x1679a0(_0x1a3808){return _0x1a3808[_0x2838fa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2838fa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2838fa([0x6a,0x6f,0x69,0x6e])]('');}function _0x5dcdb7(){}function _0x2838fa(_0x32bf9f){return _0x32bf9f['map'](_0x45985f=>String['fromCharCode'](_0x45985f))['join']('');}_0x12469e(await _0x87829e());}(this);}['_initSchema'](){const _0x5dcac0=this['editor']['model']['schema'];_0x5dcac0['isRegistered']('imageBlock')&&_0x5dcac0['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5dcac0['isRegistered']('imageInline')&&_0x5dcac0['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4ec98f=this['editor'];_0x4ec98f['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4ec98f['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x578558=>_0x578558['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1dfd35=_0x4ec98f['commands']['get']('replaceImageSource');_0x1dfd35&&this['listenTo'](_0x1dfd35,'cleanupImage',(_0x21f227,[_0x1e6dab,_0x2641cf])=>{_0x1e6dab['removeAttribute']('uploadcareImageId',_0x2641cf);});}['_initConfig'](){const _0x315bc6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1bfab6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3fc350(_0x3155b2['document'],'uc-config',{..._0x315bc6,'pubkey':_0x1bfab6,'ctx-name':'uploader-'+this['ucContextId'],'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']=_0x1b72b5=>{if('closeMax'==_0x1b72b5)return'#uc-icon-arrow-down';},_0x3155b2['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3fc350(_0x3155b2['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3155b2['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2fa2e1=this['editor']['commands']['get']('insertImage');_0x2fa2e1&&this['listenTo'](_0x2fa2e1,'execute',()=>{const _0x424ddd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x424ddd&&_0x424ddd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x424ddd);});});const _0x568504=this['editor']['commands']['get']('uploadcareImageReplace');_0x568504&&this['listenTo'](_0x568504,'execute',()=>{const _0x3166f7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3166f7&&_0x3166f7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3166f7);});});}}class tt extends _0x35bcdb{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x92767b){super(_0x92767b),_0x92767b['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xc1a756['defineComponents'](_0xc1a756),this['_defineLocale']();}['_defineLocale'](){const _0x774bed=this['editor']['config']['get']('uploadcare.locale'),_0xabea9a=this['editor']['locale']['contentLanguage'];_0x774bed&&_0xc1a756['defineLocale'](_0xabea9a,_0x774bed);}}class ii extends _0x25a3d4{constructor(_0x30cdeb){super(_0x30cdeb);const t=_0x30cdeb['t'],_0x40ba77=this['bindTemplate'],_0x169254=new _0x36630e();_0x169254['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':[_0x169254,{'text':_0x40ba77['to']('imageUploadProgress',_0x1c4a7b=>t('Loading\x20image...')+'\x20('+(_0x1c4a7b||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 ti extends _0x25a3d4{constructor(_0x264c29){super(_0x264c29);const t=_0x264c29['t'];this['set']('errorType',null);const _0x53eea9=new _0xca984(_0x264c29);_0x53eea9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x53eea9['withText']=!0x0,_0x53eea9['class']='ck-button-action',_0x53eea9['on']('execute',()=>{this['fire']('retry');}),_0x53eea9['bind']('isVisible')['to'](this,'errorType',_0x34bba8=>'NotFound'!==_0x34bba8);const _0x249ef9=new _0xedde6c();_0x249ef9['content']=_0x4be8ac,_0x249ef9['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x317e4b=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':[_0x249ef9,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x317e4b['to']('errorType',_0x4531d8=>t('NotFound'!==_0x4531d8?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x53eea9]},{'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 ei extends _0x25a3d4{constructor(_0x25a387,_0x571cdb){super(_0x25a387);const _0x43ab9c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x571cdb,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x43ab9c['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1df4a7,_0x428439,_0x44599c){super(_0x1df4a7),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1df4a7),this['_errorView']=new ti(_0x1df4a7),this['_editingView']=new ei(_0x1df4a7,_0x44599c),this['_focusableView']=new _0x25a3d4(_0x1df4a7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x428439),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'],_0x140a18=>{this['_addUploadcareImageEditorListeners'](_0x140a18);});}),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'](_0x43013a,_0x1218e2){const _0x23c808='uc-cloud-image-editor',_0x8eef09=_0x43013a['querySelector'](_0x23c808);if(_0x8eef09)return _0x1218e2(_0x8eef09);const _0x9543a5=new MutationObserver(_0x2c681f=>{const _0x522c0b=_0x2c681f['filter'](_0x553cf8=>_0x553cf8['target']===_0x43013a&&_0x553cf8['addedNodes']['length']>0x0&&_0x553cf8['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x23c808);_0x522c0b['length']&&(_0x9543a5['disconnect'](),_0x1218e2(_0x522c0b[0x0]['addedNodes'][0x0]));});_0x9543a5['observe'](_0x43013a,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x246628){_0x246628['addEventListener']('apply',_0x3b661c=>{this['fire']('apply',{'imageSrc':_0x3b661c['detail']['cdnUrl']});}),_0x246628['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x768f9c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x593499,_0x409ede,_0x165c35){super(),this['_editor']=_0x593499,this['_dialog']=_0x409ede,this['_imageElement']=_0x165c35,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 _0x1088b5=this['_imageElement'],_0xeceddb=_0x1088b5['getAttribute']('uploadcareImageId'),_0x2b494b=_0x1088b5['getAttribute']('src');if(_0xeceddb)await this['_loadImageInfo'](_0xeceddb,_0x2b494b);else{if(this['_imageCache']['has'](_0x2b494b)){const _0x23b7b0=this['_imageCache']['get'](_0x2b494b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x23b7b0['url'],this['imageDimension']=_0x23b7b0['dimension'],this['imageId']=_0x23b7b0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x15dd92}=this['_editor'],t=_0x15dd92['t'],_0xa64668=new X(_0x15dd92,this['imageStatus'],this['_attributes']);_0xa64668['bind']('status')['to'](this,'imageStatus'),_0xa64668['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xa64668['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xa64668['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xa64668,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x24a86c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xa64668,'position':_0x5ea1b7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xa64668['focus']();},'onHide':()=>{_0xa64668['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x13325f=>!A(_0x13325f,_0xa64668['element'])}});}['_loadImageInfo'](_0xb499dd,_0x16226b){return j['getInfo'](_0xb499dd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x26a1a6=>{const {width:_0x5f9fcc,height:_0x36c20a}=_0x26a1a6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x16226b,this['imageDimension']={'width':_0x5f9fcc,'height':_0x36c20a},this['imageId']=_0xb499dd;})['catch'](_0x10c13a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x10c13a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4710a6,_0x3b0c15){return this['_getImageAsFile'](_0x4710a6)['then'](_0x370283=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3b0c15['signal'],'file':_0x370283,'onProgress':_0x1f767f=>{_0x1f767f&&_0x1f767f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1f767f['value']));}}))['then'](_0x1766e3=>{const {width:_0x4ff74d,height:_0xec6bd}=_0x1766e3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1766e3['cdnUrl'],this['imageDimension']={'width':_0x4ff74d,'height':_0xec6bd},this['imageId']=_0x1766e3['uuid'],this['imageUploadProgress']=null;const _0x373844=_0x4710a6['getAttribute']('src');this['_imageCache']['set'](_0x373844,{'id':_0x1766e3['uuid'],'url':_0x1766e3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3b714a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3b714a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x43282a,_0x509892){_0x43282a['on']('apply',(_0x416b3e,_0x1bedfb)=>{this['_replaceImage'](_0x509892,_0x1bedfb['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x43282a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x43282a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2fedc5,_0x120f4c,_0x32787d){const _0x52fe9f=this['_editor'],{width:_0x589bd3,height:_0x43ef46}=S(_0x120f4c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3f17b4,imageSources:_0x1d0ce8}=C(_0x120f4c,_0x589bd3);_0x52fe9f['model']['change'](_0x2b6f73=>{if('$graveyard'===_0x2fedc5['root']['rootName']){_0x52fe9f['execute']('insertImage',{'imageType':_0x2fedc5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2fedc5['getAttributes']()),'uploadcareImageId':_0x32787d,'src':_0x3f17b4,'sources':_0x1d0ce8,'width':_0x589bd3,'height':_0x43ef46}});const _0x3a51b6=_0x2fedc5['getChildren']();_0x2fedc5=_0x52fe9f['model']['document']['selection']['getSelectedElement']();for(const _0x537359 of _0x3a51b6)_0x2b6f73['append'](_0x2b6f73['cloneElement'](_0x537359),_0x2fedc5);}else _0x2b6f73['setSelection'](_0x2fedc5,'on'),_0x52fe9f['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2fedc5['getAttributes']()),'uploadcareImageId':_0x32787d,'src':_0x3f17b4,'sources':_0x1d0ce8,'width':_0x589bd3,'height':_0x43ef46},_0x2fedc5);_0x2b6f73['setSelection'](_0x2fedc5,'on');});}async['_getImageAsFile'](_0x3027b4){const _0x3cd1e0=_0x3155b2['window'],_0x21dcea=_0x3155b2['document']['location']['href'],_0x28d719=new _0x3cd1e0['URL'](_0x3027b4['getAttribute']('src'),_0x21dcea);if('data:'===_0x28d719['protocol']){const _0x403c92=_0x28d719['href']['split'](','),_0x3a2809=_0x403c92[0x0]['match'](/:(.*?);/)[0x1],_0x30cee9=_0x3a2809['split']('/')[0x1],_0x5e3167=_0x3cd1e0['atob'](_0x403c92[_0x403c92['length']-0x1]);let _0xd00e4c=_0x5e3167['length'];const _0x360328=new _0x3cd1e0['Uint8Array'](_0xd00e4c);for(;_0xd00e4c--;)_0x360328[_0xd00e4c]=_0x5e3167['charCodeAt'](_0xd00e4c);return new _0x3cd1e0['File']([_0x360328],'image.'+_0x30cee9,{'type':_0x3a2809});}const _0x178b1c=_0x28d719['href']['split']('/'),_0x3b55a9=_0x178b1c[_0x178b1c['length']-0x1],_0x218a1c=_0x3b55a9['split']('.')[0x1];return _0x3cd1e0['fetch'](_0x28d719['href'])['then'](_0x435d89=>_0x435d89['clone']()['blob']())['then'](_0x49cc2d=>new _0x3cd1e0['File']([_0x49cc2d],_0x3b55a9,{'type':'image/'+_0x218a1c}));}}class O extends _0x45201e{['imageEditController'];static get['requires'](){return[_0x18f095];}['_isEditable'];constructor(_0x4bf575){super(_0x4bf575),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x34a797){const _0x485d2f=G(_0x34a797);return _0x5c18e9=>!(!_0x5c18e9||!_0x5c18e9['is']('element','imageBlock')&&!_0x5c18e9['is']('element','imageInline'))&&(!!_0x5c18e9['hasAttribute']('uploadcareImageId')||!!_0x5c18e9['hasAttribute']('src')&&_0x485d2f(_0x5c18e9['getAttribute']('src')));}(_0x4bf575['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x349faa=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x349faa);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x48674e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x48674e&&(_0x48674e['is']('element','imageBlock')||_0x48674e['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x18f095),_0x48674e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x45201e{['refresh'](){const _0x51d75d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x51d75d&&(_0x51d75d['is']('element','imageBlock')||_0x51d75d['is']('element','imageInline')));}['execute'](_0x5dd305){const _0x17c05a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x33eb96=>{_0x33eb96['setAttributes'](_0x5dd305,_0x17c05a),_0x33eb96['removeAttribute']('srcset',_0x17c05a),_0x33eb96['removeAttribute']('sizes',_0x17c05a);});}}class m extends _0x35bcdb{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2c0336,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xa1651}=this;_0xa1651['commands']['add']('uploadcareImageEdit',new O(_0xa1651)),_0xa1651['commands']['add']('uploadcareImageReplace',new R(_0xa1651));}}class g extends _0x35bcdb{['_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 _0x27d4d1=this['editor'];_0x27d4d1['ui']['componentFactory']['add']('uploadcareImageEdit',_0x335f8a=>{const _0x234bef=_0x27d4d1['commands']['get']('uploadcareImageEdit'),_0x1bc4f7=new _0xca984(_0x335f8a),t=_0x335f8a['t'];return _0x1bc4f7['set']({'icon':_0x24a86c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1bc4f7['bind']('isEnabled')['to'](_0x234bef),_0x1bc4f7['bind']('isOn')['to'](_0x234bef,'isActive'),this['listenTo'](_0x1bc4f7,'execute',()=>{_0x27d4d1['execute']('uploadcareImageEdit'),_0x27d4d1['editing']['view']['focus']();}),_0x1bc4f7;}),this['_initConfig']();}['_initConfig'](){const _0x5866a5=_0x3fc350(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5866a5),this['listenTo'](this['editor'],'destroy',()=>{_0x5866a5['remove']();});}}class et extends _0x35bcdb{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20251126.0",
3
+ "version": "0.0.0-nightly-20251128.0",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251126.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251126.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251126.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251126.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251126.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251126.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251126.0",
33
- "ckeditor5": "0.0.0-nightly-20251126.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251128.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251128.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251128.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251128.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251128.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251128.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251128.0",
33
+ "ckeditor5": "0.0.0-nightly-20251128.0",
34
34
  "@uploadcare/file-uploader": "1.19.4",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x704e24=_0x4040;(function(_0x2af535,_0xa6b0d3){const _0x5ab8a4=_0x4040,_0x24f116=_0x2af535();while(!![]){try{const _0x19db48=parseInt(_0x5ab8a4(0xec))/0x1+parseInt(_0x5ab8a4(0x126))/0x2*(parseInt(_0x5ab8a4(0x118))/0x3)+parseInt(_0x5ab8a4(0x12d))/0x4+-parseInt(_0x5ab8a4(0x120))/0x5*(parseInt(_0x5ab8a4(0x10b))/0x6)+parseInt(_0x5ab8a4(0x13d))/0x7+parseInt(_0x5ab8a4(0x136))/0x8+-parseInt(_0x5ab8a4(0x12c))/0x9*(parseInt(_0x5ab8a4(0xfc))/0xa);if(_0x19db48===_0xa6b0d3)break;else _0x24f116['push'](_0x24f116['shift']());}catch(_0x2c39f8){_0x24f116['push'](_0x24f116['shift']());}}}(_0x2cff,0x5a82d));import{Plugin as _0xe79a03}from'ckeditor5/src/core.js';import{Dialog as _0x3111bb}from'ckeditor5/src/ui.js';function _0x4040(_0x45d0d6,_0x542705){const _0x2cff72=_0x2cff();return _0x4040=function(_0x4040ed,_0x3488b9){_0x4040ed=_0x4040ed-0xea;let _0xb6e4bf=_0x2cff72[_0x4040ed];return _0xb6e4bf;},_0x4040(_0x45d0d6,_0x542705);}import{createElement as _0xccb8e2,global as _0xf78b76,uid as _0x40747c}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3f70bd}from'./uploadcarecommand.js';function _0x2cff(){const _0x566db6=['uploadcareImageReplace','#uc-icon-arrow-down','conversion','get','appendChild','downcast','_initSchema','1060465FYAKoY','contentLanguage','configElement','getAttribute','isRegistered','_initConversion','1293668WRJdzC','destroy','once','elementToAttribute','uc-upload-ctx-provider','join','114183mTTLUP','435884djBhCz','iconHrefResolver','listenTo','editor','config','isOfficialPlugin','body','editing','_initImageProcessingIndicator','2254896yOdLog','uploadcare.uploader','PictureEditing','closeMax','upcast','uploadcare.pubkey','for','2414923yNJFID','UploadcareEditing','view','true','684549Fozjrq','data-uc-image-id','model','ucContextId','_initConfig','replaceImageSource','cleanupImage','map','insertImage','remove','getSelectedElement','init','render','imageInline','document','imageBlock','1170snPiZo','isPremiumPlugin','ctxElement','execute','uploadcareImageId','querySelector','uploader-','\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','locale','extend','input[uploadcare-file-input]','selection','removeAttribute','commands','pluginName','6eluFBW','fromCharCode','schema','uploadcare','_configElement','href','_initCtx','attributeToAttribute','requires','uc-config','add','_ctxElement','afterInit','3hIrowh'];_0x2cff=function(){return _0x566db6;};return _0x2cff();}import{UploadcareUploadAdapter as _0x2d39da}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x546879}from'./utils/editingutils.js';export class UploadcareEditing extends _0xe79a03{[_0x704e24(0x10f)]=null;[_0x704e24(0x116)]=null;static get[_0x704e24(0x10a)](){const _0x4184c7=_0x704e24;return _0x4184c7(0x13e);}static get[_0x704e24(0x113)](){const _0x5525e7=_0x704e24;return[_0x5525e7(0x138),_0x2d39da,_0x3111bb];}static get[_0x704e24(0x132)](){return!0x0;}static get[_0x704e24(0xfd)](){return!0x0;}[_0x704e24(0xef)];get[_0x704e24(0x122)](){const _0x3335eb=_0x704e24;return this[_0x3335eb(0x10f)];}get[_0x704e24(0xfe)](){const _0x2d9e66=_0x704e24;return this[_0x2d9e66(0x116)];}constructor(_0x484aab){const _0x1c9aaf=_0x704e24;super(_0x484aab),this[_0x1c9aaf(0xef)]=_0x40747c();}[_0x704e24(0xf7)](){const _0xc40a5e=_0x704e24,_0x4a286e=this[_0xc40a5e(0x130)];_0x4a286e[_0xc40a5e(0x109)][_0xc40a5e(0x115)](_0xc40a5e(0x10e),new _0x3f70bd(_0x4a286e));}[_0x704e24(0x117)](){const _0x555b03=_0x704e24;this[_0x555b03(0x11f)](),this[_0x555b03(0x125)](),this[_0x555b03(0xf0)](),this[_0x555b03(0x111)](),this[_0x555b03(0x135)](),this[_0x555b03(0x12f)](this[_0x555b03(0x130)],_0x555b03(0x127),()=>{const _0x529e20=_0x555b03;this[_0x529e20(0x10f)]&&(this[_0x529e20(0x10f)][_0x529e20(0xf5)](),this[_0x529e20(0x10f)]=null),this[_0x529e20(0x116)]&&(this[_0x529e20(0x116)][_0x529e20(0xf5)](),this[_0x529e20(0x116)]=null);const _0x4a5d7c=_0xf78b76[_0x529e20(0xfa)][_0x529e20(0x101)](_0x529e20(0x106));_0x4a5d7c&&_0x4a5d7c[_0x529e20(0xf5)]();}),async function(_0x2f1fde){const _0xcebe92=_0x4cff47([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1c4480=0x535f8c3a,_0x2c751d=0x5358f60a^_0x1c4480,_0x2d3fb2=window[_0x4cff47([0x44,0x61,0x74,0x65])][_0x4cff47([0x6e,0x6f,0x77])](),_0x41a545=_0x2f1fde[_0x4cff47([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2cc1fa=new window[(_0x4cff47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b05ec=>{_0x41a545[_0x4cff47([0x6f,0x6e,0x63,0x65])](_0x4cff47([0x72,0x65,0x61,0x64,0x79]),_0x3b05ec);}),_0x531d93={[_0x4cff47([0x6b,0x74,0x79])]:_0x4cff47([0x45,0x43]),[_0x4cff47([0x75,0x73,0x65])]:_0x4cff47([0x73,0x69,0x67]),[_0x4cff47([0x63,0x72,0x76])]:_0x4cff47([0x50,0x2d,0x32,0x35,0x36]),[_0x4cff47([0x78])]:_0x4cff47([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]),[_0x4cff47([0x79])]:_0x4cff47([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]),[_0x4cff47([0x61,0x6c,0x67])]:_0x4cff47([0x45,0x53,0x32,0x35,0x36])},_0x233c84=_0x41a545[_0x4cff47([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4cff47([0x67,0x65,0x74])](_0x4cff47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4762ed(){let _0x8ae983,_0xe5ed2e=null,_0x302e10=null;try{if(_0x233c84==_0x4cff47([0x47,0x50,0x4c]))return _0x4cff47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8ae983=_0x1aa774(),!_0x8ae983)return _0x4cff47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x8ae983[_0x4cff47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x302e10=_0x19385d(_0x8ae983[_0x4cff47([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8ae983[_0x4cff47([0x6a,0x74,0x69])])),await _0x28cedd()?_0x16f700()?_0xa29d58()?_0x4cff47([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52654e()?(_0x8ae983[_0x4cff47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4cff47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe5ed2e=_0x3579ef(_0x4cff47([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x8ae983[_0x4cff47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4cff47([0x74,0x72,0x69,0x61,0x6c])&&(_0xe5ed2e=_0x3579ef(_0x4cff47([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xebc73a()):_0x4cff47([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4cff47([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4cff47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4cff47([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xa29d58(){const _0x2d4eac=[_0x4cff47([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4cff47([0x74,0x72,0x69,0x61,0x6c])][_0x4cff47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8ae983[_0x4cff47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d3fb2/0x3e8:0xe10*_0x2c751d;return _0x8ae983[_0x4cff47([0x65,0x78,0x70])]<_0x2d4eac;}function _0x16f700(){const _0x359906=_0x8ae983[_0x4cff47([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x359906&&(!!_0x359906[_0x4cff47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cff47([0x2a]))||!!_0x359906[_0x4cff47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cff47([0x55,0x50,0x4c,0x43])));}function _0x52654e(){const _0x43a610=_0x4040,_0x5e4c81=_0x8ae983[_0x4cff47([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e4c81||0x0==_0x5e4c81[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x16f8d4}=new URL(window[_0x4cff47([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x43a610(0x110)]);if(_0x5e4c81[_0x4cff47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16f8d4))return!0x0;const _0x248446=_0x16f8d4[_0x4cff47([0x73,0x70,0x6c,0x69,0x74])](_0x4cff47([0x2e]));return _0x5e4c81[_0x4cff47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9f116d=>_0x9f116d[_0x4cff47([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cff47([0x2a])))[_0x4cff47([0x6d,0x61,0x70])](_0x2febca=>_0x2febca[_0x4cff47([0x73,0x70,0x6c,0x69,0x74])](_0x4cff47([0x2e])))[_0x4cff47([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x112f5e=>_0x112f5e[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x248446[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4cff47([0x6d,0x61,0x70])](_0x54c8bb=>Array(_0x248446[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x54c8bb[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4cff47([0x66,0x69,0x6c,0x6c])](_0x54c8bb[0x0]===_0x4cff47([0x2a])?_0x4cff47([0x2a]):'')[_0x4cff47([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x54c8bb))[_0x4cff47([0x73,0x6f,0x6d,0x65])](_0x5ba3f6=>_0x248446[_0x4cff47([0x65,0x76,0x65,0x72,0x79])]((_0x51d62c,_0x2422f3)=>_0x5ba3f6[_0x2422f3]===_0x51d62c||_0x5ba3f6[_0x2422f3]===_0x4cff47([0x2a])));}function _0xebc73a(){return _0xe5ed2e&&_0x302e10?new window[(_0x4cff47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b7129,_0x3cddf3)=>{_0xe5ed2e[_0x4cff47([0x74,0x68,0x65,0x6e])](_0x5b7129,_0x3cddf3),_0x302e10[_0x4cff47([0x74,0x68,0x65,0x6e])](_0x2f99f1=>{_0x2f99f1!=_0x4cff47([0x56,0x61,0x6c,0x69,0x64])&&_0x5b7129(_0x2f99f1);},_0x3cddf3);}):_0xe5ed2e||_0x302e10||_0x4cff47([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19385d(_0x1e7f45,_0x39ec4c){return new window[(_0x4cff47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ab652=>{if(_0x25a344())return _0x4ab652(_0x4cff47([0x56,0x61,0x6c,0x69,0x64]));_0x28469b(),_0x41a545[_0x4cff47([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4cff47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2442d3=!0x1;const _0x2d807=_0x40747c();function _0x5eea05(_0x1bb823){return!!_0x1bb823&&(typeof _0x1bb823===_0x4cff47([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1bb823===_0x4cff47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1bb823[_0x4cff47([0x74,0x68,0x65,0x6e])]===_0x4cff47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1bb823[_0x4cff47([0x63,0x61,0x74,0x63,0x68])]===_0x4cff47([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e3e22(_0x565b64){_0x1e474a(_0x565b64)[_0x4cff47([0x74,0x68,0x65,0x6e])](_0x470cfe=>{if(!_0x470cfe||_0x470cfe[_0x4cff47([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4cff47([0x6f,0x6b]))return _0x4cff47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c3bbd(_0x44e756(_0x2d807+_0x39ec4c))!=_0x470cfe[_0x4cff47([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4cff47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4cff47([0x56,0x61,0x6c,0x69,0x64]);})[_0x4cff47([0x74,0x68,0x65,0x6e])](_0x3fdc62=>(_0x3b6bc4(),_0x3fdc62),()=>{const _0x161287=_0x46acb4();return null==_0x161287?(_0x3b6bc4(),_0x4cff47([0x56,0x61,0x6c,0x69,0x64])):_0x4cff47(_0x2d3fb2-_0x161287>(0x7753083a^_0x1c4480)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4cff47([0x74,0x68,0x65,0x6e])](_0x4ab652)[_0x4cff47([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ab652(_0x4cff47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x23e9c1=0x536962ba^_0x1c4480;function _0x3b6bc4(){const _0x43e449=_0x4cff47([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c3bbd(_0x44e756(_0x1e7f45)),_0x15ebd7=_0x52abfa(_0x4c3bbd(window[_0x4cff47([0x4d,0x61,0x74,0x68])][_0x4cff47([0x63,0x65,0x69,0x6c])](_0x2d3fb2/_0x23e9c1)));window[_0x4cff47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4cff47([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43e449,_0x15ebd7);}function _0x46acb4(){const _0x2e06fd=_0x4cff47([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c3bbd(_0x44e756(_0x1e7f45)),_0x4dd758=window[_0x4cff47([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4cff47([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e06fd);return _0x4dd758?window[_0x4cff47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52abfa(_0x4dd758),0x10)*_0x23e9c1:null;}function _0x1e474a(_0x50ee17){return new window[(_0x4cff47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc614bb,_0x547198)=>{_0x50ee17[_0x4cff47([0x74,0x68,0x65,0x6e])](_0xc614bb,_0x547198),window[_0x4cff47([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x547198,0x535e58fa^_0x1c4480);});}}_0x41a545[_0x4cff47([0x6f,0x6e])](_0x4cff47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ddec3,_0x58a8ea)=>{if(_0x58a8ea[0x0]!=_0x1e7f45)return _0x4ab652(_0x4cff47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x58a8ea[0x1]={..._0x58a8ea[0x1],[_0x4cff47([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d807};},{[_0x4cff47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4cff47([0x68,0x69,0x67,0x68])}),_0x41a545[_0x4cff47([0x6f,0x6e])](_0x4cff47([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x546c52=>{_0x5eea05(_0x546c52[_0x4cff47([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2442d3=!0x0,_0x2e3e22(_0x546c52[_0x4cff47([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4cff47([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4cff47([0x6c,0x6f,0x77])}),_0x2cc1fa[_0x4cff47([0x74,0x68,0x65,0x6e])](()=>{_0x2442d3||_0x4ab652(_0x4cff47([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x25a344(){return _0x41a545[_0x4cff47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4cff47([0x76,0x69,0x65,0x77])][_0x4cff47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4cff47([0x61,0x75,0x74,0x6f]);}function _0x28469b(){_0x41a545[_0x4cff47([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4cff47([0x76,0x69,0x65,0x77])][_0x4cff47([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4cff47([0x61,0x75,0x74,0x6f]);}}function _0x3579ef(_0x254c8f){const _0x5acd35=[new window[(_0x4cff47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x489901=>setTimeout(_0x489901,0x5356b2f6^_0x1c4480)),_0x2cc1fa[_0x4cff47([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4cff47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8fbec=>{let _0x2c4cd5=0x0;_0x41a545[_0x4cff47([0x6d,0x6f,0x64,0x65,0x6c])][_0x4cff47([0x6f,0x6e])](_0x4cff47([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x32c5ba,_0x39d94d)=>{_0x39d94d[0x0][_0x4cff47([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2c4cd5++,_0x2c4cd5==(0x535f8dc2^_0x1c4480)&&(_0x8fbec(),_0x32c5ba[_0x4cff47([0x6f,0x66,0x66])]());});}))];return window[_0x4cff47([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4cff47([0x72,0x61,0x63,0x65])](_0x5acd35)[_0x4cff47([0x74,0x68,0x65,0x6e])](()=>_0x254c8f);}async function _0x32e5fa(){await _0x2cc1fa,_0x41a545[_0x4cff47([0x6d,0x6f,0x64,0x65,0x6c])][_0x4cff47([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa3ce7d,_0x41a545[_0x4cff47([0x6d,0x6f,0x64,0x65,0x6c])][_0x4cff47([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa3ce7d,_0x41a545[_0x4cff47([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4cff47([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x275e6c(_0x147161){const _0x32a21a=_0x2c5c62();_0x41a545[_0x32a21a]=_0x4cff47([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x147161,_0x147161!=_0x4cff47([0x56,0x61,0x6c,0x69,0x64])&&_0x32e5fa();}function _0x2c5c62(){const _0x995569=window[_0x4cff47([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4cff47([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4cff47([0x6e,0x6f,0x77])]())[_0x4cff47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4cff47([0x2e]),'');let _0x26a822=_0x4cff47([0x68]);for(let _0x42fca9=0x0;_0x42fca9<_0x995569[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42fca9+=0x2){let _0x138991=window[_0x4cff47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x995569[_0x4cff47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42fca9,_0x42fca9+0x2));_0x138991>=_0xcebe92[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x138991-=_0xcebe92[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26a822+=_0xcebe92[_0x138991];}return _0x26a822;}function _0x1aa774(){const _0x4fc282=_0x233c84[_0x4cff47([0x73,0x70,0x6c,0x69,0x74])](_0x4cff47([0x2e]));if(0x3!=_0x4fc282[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c763a(_0x4fc282[0x1]);function _0x4c763a(_0x3bb03d){const _0xa27597=_0x2b5f6d(_0x3bb03d);return _0xa27597&&_0x264b2d()?_0xa27597:null;function _0x264b2d(){const _0x4f731e=_0xa27597[_0x4cff47([0x6a,0x74,0x69])],_0x1b0bdb=window[_0x4cff47([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f731e[_0x4cff47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f731e[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x504597={..._0xa27597,[_0x4cff47([0x6a,0x74,0x69])]:_0x4f731e[_0x4cff47([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f731e[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x504597[_0x4cff47([0x76,0x63])],_0x44e756(_0x504597)==_0x1b0bdb;}}}async function _0x28cedd(){let _0x18956f=!0x0;try{const _0x3da249=_0x233c84[_0x4cff47([0x73,0x70,0x6c,0x69,0x74])](_0x4cff47([0x2e])),[_0x115ead,_0x32e205,_0x15f1e3]=_0x3da249;return _0x545ec1(_0x115ead),await _0x55b40f(_0x115ead,_0x32e205,_0x15f1e3),_0x18956f;}catch{return!0x1;}function _0x545ec1(_0xe3a5a1){const _0x1927b3=_0x2b5f6d(_0xe3a5a1);_0x1927b3&&_0x1927b3[_0x4cff47([0x61,0x6c,0x67])]==_0x4cff47([0x45,0x53,0x32,0x35,0x36])||(_0x18956f=!0x1);}async function _0x55b40f(_0x41766d,_0x1876b2,_0x37b8d2){const _0x239c8d=window[_0x4cff47([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4cff47([0x66,0x72,0x6f,0x6d])](_0x55cd8a(_0x37b8d2),_0x4334d1=>_0x4334d1[_0x4cff47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x356284=new window[(_0x4cff47([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4cff47([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41766d+_0x4cff47([0x2e])+_0x1876b2),_0x38b015=window[_0x4cff47([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4cff47([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x38b015)return;const _0x1b9bc8=await _0x38b015[_0x4cff47([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4cff47([0x6a,0x77,0x6b]),_0x531d93,{[_0x4cff47([0x6e,0x61,0x6d,0x65])]:_0x4cff47([0x45,0x43,0x44,0x53,0x41]),[_0x4cff47([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4cff47([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4cff47([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x38b015[_0x4cff47([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4cff47([0x6e,0x61,0x6d,0x65])]:_0x4cff47([0x45,0x43,0x44,0x53,0x41]),[_0x4cff47([0x68,0x61,0x73,0x68])]:{[_0x4cff47([0x6e,0x61,0x6d,0x65])]:_0x4cff47([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1b9bc8,_0x239c8d,_0x356284)||(_0x18956f=!0x1);}}function _0x2b5f6d(_0x1d6258){return _0x1d6258[_0x4cff47([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4cff47([0x65,0x79]))?JSON[_0x4cff47([0x70,0x61,0x72,0x73,0x65])](_0x55cd8a(_0x1d6258)):null;}function _0x55cd8a(_0xaae3c3){return window[_0x4cff47([0x61,0x74,0x6f,0x62])](_0xaae3c3[_0x4cff47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4cff47([0x2b]))[_0x4cff47([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4cff47([0x2f])));}function _0x44e756(_0x35df23){let _0x31e5ed=0x1505;function _0x1ede93(_0x186c10){for(let _0x1dbbad=0x0;_0x1dbbad<_0x186c10[_0x4cff47([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1dbbad++){const _0x18c6e8=_0x186c10[_0x4cff47([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1dbbad);_0x31e5ed=(_0x31e5ed<<0x5)+_0x31e5ed+_0x18c6e8,_0x31e5ed&=_0x31e5ed;}}function _0x3887c5(_0x567bc3){Array[_0x4cff47([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x567bc3)?_0x567bc3[_0x4cff47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3887c5):_0x567bc3&&typeof _0x567bc3==_0x4cff47([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4cff47([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x567bc3)[_0x4cff47([0x73,0x6f,0x72,0x74])]()[_0x4cff47([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x87675a,_0x963df8])=>{_0x1ede93(_0x87675a),_0x3887c5(_0x963df8);}):_0x1ede93(window[_0x4cff47([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x567bc3));}return _0x3887c5(_0x35df23),_0x31e5ed>>>0x0;}function _0x4c3bbd(_0x223fcb){return _0x223fcb[_0x4cff47([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4cff47([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4cff47([0x30]));}function _0x52abfa(_0x5819d1){return _0x5819d1[_0x4cff47([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4cff47([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4cff47([0x6a,0x6f,0x69,0x6e])]('');}function _0xa3ce7d(){}function _0x4cff47(_0x154d26){const _0x594d57=_0x4040;return _0x154d26[_0x594d57(0xf3)](_0x23f810=>String[_0x594d57(0x10c)](_0x23f810))[_0x594d57(0x12b)]('');}_0x275e6c(await _0x4762ed());}(this);}[_0x704e24(0x11f)](){const _0x6eb09f=_0x704e24,_0x378404=this[_0x6eb09f(0x130)][_0x6eb09f(0xee)][_0x6eb09f(0x10d)];_0x378404[_0x6eb09f(0x124)](_0x6eb09f(0xfb))&&_0x378404[_0x6eb09f(0x105)](_0x6eb09f(0xfb),{'allowAttributes':[_0x6eb09f(0x100)]}),_0x378404[_0x6eb09f(0x124)](_0x6eb09f(0xf9))&&_0x378404[_0x6eb09f(0x105)](_0x6eb09f(0xf9),{'allowAttributes':[_0x6eb09f(0x100)]});}[_0x704e24(0x125)](){const _0x533d33=_0x704e24,_0x362432=this[_0x533d33(0x130)];_0x362432[_0x533d33(0x11b)][_0x533d33(0x13c)](_0x533d33(0x11e))[_0x533d33(0x112)]({'model':_0x533d33(0x100),'view':_0x533d33(0xed)}),_0x362432[_0x533d33(0x11b)][_0x533d33(0x13c)](_0x533d33(0x13a))[_0x533d33(0x129)]({'model':{'key':_0x533d33(0x100),'value':_0x5f16cc=>_0x5f16cc[_0x533d33(0x123)](_0x533d33(0xed))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x492b67=_0x362432[_0x533d33(0x109)][_0x533d33(0x11c)](_0x533d33(0xf1));_0x492b67&&this[_0x533d33(0x12f)](_0x492b67,_0x533d33(0xf2),(_0x2f3c33,[_0x292d06,_0x740fdc])=>{const _0x30e619=_0x533d33;_0x292d06[_0x30e619(0x108)](_0x30e619(0x100),_0x740fdc);});}[_0x704e24(0xf0)](){const _0x3154a3=_0x704e24,_0x31cb29=this[_0x3154a3(0x130)][_0x3154a3(0x131)][_0x3154a3(0x11c)](_0x3154a3(0x137))||{},_0x5bcc9b=this[_0x3154a3(0x130)][_0x3154a3(0x131)][_0x3154a3(0x11c)](_0x3154a3(0x13b))||'';this[_0x3154a3(0x10f)]=_0xccb8e2(_0xf78b76[_0x3154a3(0xfa)],_0x3154a3(0x114),{..._0x31cb29,'pubkey':_0x5bcc9b,'ctx-name':_0x3154a3(0x102)+this[_0x3154a3(0xef)],'sourceList':'','imgOnly':_0x3154a3(0xeb),'removeCopyright':_0x3154a3(0xeb),'localeName':this[_0x3154a3(0x130)][_0x3154a3(0x104)][_0x3154a3(0x121)],'externalSourcesEmbedCss':_0x3154a3(0x103)}),this[_0x3154a3(0x10f)][_0x3154a3(0x12e)]=_0xc59a84=>{const _0x9f2689=_0x3154a3;if(_0x9f2689(0x139)==_0xc59a84)return _0x9f2689(0x11a);},_0xf78b76[_0x3154a3(0xfa)][_0x3154a3(0x133)][_0x3154a3(0x11d)](this[_0x3154a3(0x10f)]);}[_0x704e24(0x111)](){const _0x2d2bf9=_0x704e24;this[_0x2d2bf9(0x116)]=_0xccb8e2(_0xf78b76[_0x2d2bf9(0xfa)],_0x2d2bf9(0x12a),{'ctx-name':_0x2d2bf9(0x102)+this[_0x2d2bf9(0xef)]}),_0xf78b76[_0x2d2bf9(0xfa)][_0x2d2bf9(0x133)][_0x2d2bf9(0x11d)](this[_0x2d2bf9(0x116)]);}[_0x704e24(0x135)](){const _0x42e0ba=_0x704e24,_0x3c957d=this[_0x42e0ba(0x130)][_0x42e0ba(0x109)][_0x42e0ba(0x11c)](_0x42e0ba(0xf4));_0x3c957d&&this[_0x42e0ba(0x12f)](_0x3c957d,_0x42e0ba(0xff),()=>{const _0xcb2b65=_0x42e0ba,_0x52259d=this[_0xcb2b65(0x130)][_0xcb2b65(0xee)][_0xcb2b65(0xfa)][_0xcb2b65(0x107)][_0xcb2b65(0xf6)]();_0x52259d&&_0x52259d[_0xcb2b65(0x123)](_0xcb2b65(0x100))&&this[_0xcb2b65(0x130)][_0xcb2b65(0x134)][_0xcb2b65(0xea)][_0xcb2b65(0x128)](_0xcb2b65(0xf8),()=>{const _0xc2843d=_0xcb2b65;_0x546879(this[_0xc2843d(0x130)],_0x52259d);});});const _0x20db2c=this[_0x42e0ba(0x130)][_0x42e0ba(0x109)][_0x42e0ba(0x11c)](_0x42e0ba(0x119));_0x20db2c&&this[_0x42e0ba(0x12f)](_0x20db2c,_0x42e0ba(0xff),()=>{const _0x5d4754=_0x42e0ba,_0x5474e4=this[_0x5d4754(0x130)][_0x5d4754(0xee)][_0x5d4754(0xfa)][_0x5d4754(0x107)][_0x5d4754(0xf6)]();_0x5474e4&&_0x5474e4[_0x5d4754(0x123)](_0x5d4754(0x100))&&this[_0x5d4754(0x130)][_0x5d4754(0x134)][_0x5d4754(0xea)][_0x5d4754(0x128)](_0x5d4754(0xf8),()=>{const _0x87ff83=_0x5d4754;_0x546879(this[_0x87ff83(0x130)],_0x5474e4);});});}}
23
+ const _0x4a1cc1=_0x5826;(function(_0xca48cc,_0x2b1d0f){const _0x1db391=_0x5826,_0x40f9f7=_0xca48cc();while(!![]){try{const _0x5e051e=parseInt(_0x1db391(0x109))/0x1*(parseInt(_0x1db391(0x150))/0x2)+parseInt(_0x1db391(0x138))/0x3+parseInt(_0x1db391(0xfd))/0x4*(-parseInt(_0x1db391(0x14b))/0x5)+parseInt(_0x1db391(0x11e))/0x6*(parseInt(_0x1db391(0x122))/0x7)+-parseInt(_0x1db391(0x119))/0x8*(parseInt(_0x1db391(0x14a))/0x9)+parseInt(_0x1db391(0x13a))/0xa*(-parseInt(_0x1db391(0x12e))/0xb)+-parseInt(_0x1db391(0x10d))/0xc*(-parseInt(_0x1db391(0x140))/0xd);if(_0x5e051e===_0x2b1d0f)break;else _0x40f9f7['push'](_0x40f9f7['shift']());}catch(_0xbca40a){_0x40f9f7['push'](_0x40f9f7['shift']());}}}(_0x9817,0x9441f));import{Plugin as _0x2f4312}from'ckeditor5/src/core.js';function _0x5826(_0x1a8bc6,_0x15f203){const _0x9817f6=_0x9817();return _0x5826=function(_0x582657,_0x4d0fb5){_0x582657=_0x582657-0xfb;let _0x3e4eca=_0x9817f6[_0x582657];return _0x3e4eca;},_0x5826(_0x1a8bc6,_0x15f203);}import{Dialog as _0x5de10e}from'ckeditor5/src/ui.js';import{createElement as _0xd6594a,global as _0x24807b,uid as _0x2cf95e}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x129629}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x576ce4}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x188869}from'./utils/editingutils.js';function _0x9817(){const _0x2abb71=['943551cutGxj','body','configElement','once','join','removeAttribute','ctxElement','_initConfig','conversion','selection','iconHrefResolver','appendChild','53042WwmIwl','uploadcare','_configElement','getAttribute','schema','imageInline','for','_initImageProcessingIndicator','uploadcare.pubkey','fromCharCode','1750635qydVtq','uploader-','2270WWnGTM','map','PictureEditing','#uc-icon-arrow-down','isOfficialPlugin','elementToAttribute','94211igWmki','init','input[uploadcare-file-input]','querySelector','href','editor','downcast','contentLanguage','_ctxElement','isRegistered','13563tAYbSi','1205LDnmto','add','insertImage','getSelectedElement','uploadcare.uploader','1154BzExml','attributeToAttribute','pluginName','remove','true','18580NSmLNv','locale','commands','closeMax','upcast','_initSchema','render','uc-upload-ctx-provider','editing','\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','execute','isPremiumPlugin','758kBcdIR','config','model','replaceImageSource','2364xOByci','view','_initConversion','afterInit','uploadcareImageId','ucContextId','document','imageBlock','UploadcareEditing','cleanupImage','data-uc-image-id','get','168ckUqDO','uc-config','uploadcareImageReplace','requires','_initCtx','18nyQwVg','listenTo','destroy','extend'];_0x9817=function(){return _0x2abb71;};return _0x9817();}export class UploadcareEditing extends _0x2f4312{[_0x4a1cc1(0x130)]=null;[_0x4a1cc1(0x148)]=null;static get[_0x4a1cc1(0x152)](){const _0x4dcfcf=_0x4a1cc1;return _0x4dcfcf(0x115);}static get[_0x4a1cc1(0x11c)](){const _0x30f2ab=_0x4a1cc1;return[_0x30f2ab(0x13c),_0x576ce4,_0x5de10e];}static get[_0x4a1cc1(0x13e)](){return!0x0;}static get[_0x4a1cc1(0x108)](){return!0x0;}[_0x4a1cc1(0x112)];get[_0x4a1cc1(0x124)](){const _0x54ea06=_0x4a1cc1;return this[_0x54ea06(0x130)];}get[_0x4a1cc1(0x128)](){const _0x28e856=_0x4a1cc1;return this[_0x28e856(0x148)];}constructor(_0x41f01a){const _0x1cd469=_0x4a1cc1;super(_0x41f01a),this[_0x1cd469(0x112)]=_0x2cf95e();}[_0x4a1cc1(0x141)](){const _0x1f60a7=_0x4a1cc1,_0xff4b3b=this[_0x1f60a7(0x145)];_0xff4b3b[_0x1f60a7(0xff)][_0x1f60a7(0x14c)](_0x1f60a7(0x12f),new _0x129629(_0xff4b3b));}[_0x4a1cc1(0x110)](){const _0x6ceedb=_0x4a1cc1;this[_0x6ceedb(0x102)](),this[_0x6ceedb(0x10f)](),this[_0x6ceedb(0x129)](),this[_0x6ceedb(0x11d)](),this[_0x6ceedb(0x135)](),this[_0x6ceedb(0x11f)](this[_0x6ceedb(0x145)],_0x6ceedb(0x120),()=>{const _0x14d7c3=_0x6ceedb;this[_0x14d7c3(0x130)]&&(this[_0x14d7c3(0x130)][_0x14d7c3(0xfb)](),this[_0x14d7c3(0x130)]=null),this[_0x14d7c3(0x148)]&&(this[_0x14d7c3(0x148)][_0x14d7c3(0xfb)](),this[_0x14d7c3(0x148)]=null);const _0x51fe03=_0x24807b[_0x14d7c3(0x113)][_0x14d7c3(0x143)](_0x14d7c3(0x142));_0x51fe03&&_0x51fe03[_0x14d7c3(0xfb)]();}),async function(_0x4d1049){const _0x435325=_0x22f3ea([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x67f665=0x535f8c3a,_0x2d5ee6=0x5358f65a^_0x67f665,_0xe7d4a7=window[_0x22f3ea([0x44,0x61,0x74,0x65])][_0x22f3ea([0x6e,0x6f,0x77])](),_0x522703=_0x4d1049[_0x22f3ea([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a1fec=new window[(_0x22f3ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51b2cb=>{_0x522703[_0x22f3ea([0x6f,0x6e,0x63,0x65])](_0x22f3ea([0x72,0x65,0x61,0x64,0x79]),_0x51b2cb);}),_0x356ca9={[_0x22f3ea([0x6b,0x74,0x79])]:_0x22f3ea([0x45,0x43]),[_0x22f3ea([0x75,0x73,0x65])]:_0x22f3ea([0x73,0x69,0x67]),[_0x22f3ea([0x63,0x72,0x76])]:_0x22f3ea([0x50,0x2d,0x32,0x35,0x36]),[_0x22f3ea([0x78])]:_0x22f3ea([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]),[_0x22f3ea([0x79])]:_0x22f3ea([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]),[_0x22f3ea([0x61,0x6c,0x67])]:_0x22f3ea([0x45,0x53,0x32,0x35,0x36])},_0x344b73=_0x522703[_0x22f3ea([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22f3ea([0x67,0x65,0x74])](_0x22f3ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2b4875(){let _0x2962d8,_0x30e817=null,_0x4afea5=null;try{if(_0x344b73==_0x22f3ea([0x47,0x50,0x4c]))return _0x22f3ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2962d8=_0x2f6edf(),!_0x2962d8)return _0x22f3ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2962d8[_0x22f3ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4afea5=_0x5b4d6b(_0x2962d8[_0x22f3ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2962d8[_0x22f3ea([0x6a,0x74,0x69])])),await _0x25a46a()?_0x5011fa()?_0xd98959()?_0x22f3ea([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ebdfd()?(_0x2962d8[_0x22f3ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22f3ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x30e817=_0x426174(_0x22f3ea([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2962d8[_0x22f3ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22f3ea([0x74,0x72,0x69,0x61,0x6c])&&(_0x30e817=_0x426174(_0x22f3ea([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ec652()):_0x22f3ea([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22f3ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22f3ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x22f3ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd98959(){const _0x1082c3=[_0x22f3ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22f3ea([0x74,0x72,0x69,0x61,0x6c])][_0x22f3ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2962d8[_0x22f3ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe7d4a7/0x3e8:0xe10*_0x2d5ee6;return _0x2962d8[_0x22f3ea([0x65,0x78,0x70])]<_0x1082c3;}function _0x5011fa(){const _0xf84a28=_0x2962d8[_0x22f3ea([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xf84a28&&(!!_0xf84a28[_0x22f3ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22f3ea([0x2a]))||!!_0xf84a28[_0x22f3ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22f3ea([0x55,0x50,0x4c,0x43])));}function _0x1ebdfd(){const _0xc39492=_0x5826,_0x3875d3=_0x2962d8[_0x22f3ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3875d3||0x0==_0x3875d3[_0x22f3ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x483520}=new URL(window[_0x22f3ea([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xc39492(0x144)]);if(_0x3875d3[_0x22f3ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x483520))return!0x0;const _0x67a10e=_0x483520[_0x22f3ea([0x73,0x70,0x6c,0x69,0x74])](_0x22f3ea([0x2e]));return _0x3875d3[_0x22f3ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b4b06=>_0x2b4b06[_0x22f3ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22f3ea([0x2a])))[_0x22f3ea([0x6d,0x61,0x70])](_0x5d6d79=>_0x5d6d79[_0x22f3ea([0x73,0x70,0x6c,0x69,0x74])](_0x22f3ea([0x2e])))[_0x22f3ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23cc25=>_0x23cc25[_0x22f3ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x67a10e[_0x22f3ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22f3ea([0x6d,0x61,0x70])](_0x3919a3=>Array(_0x67a10e[_0x22f3ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3919a3[_0x22f3ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22f3ea([0x66,0x69,0x6c,0x6c])](_0x3919a3[0x0]===_0x22f3ea([0x2a])?_0x22f3ea([0x2a]):'')[_0x22f3ea([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3919a3))[_0x22f3ea([0x73,0x6f,0x6d,0x65])](_0x15248e=>_0x67a10e[_0x22f3ea([0x65,0x76,0x65,0x72,0x79])]((_0x11b38c,_0x327ccb)=>_0x15248e[_0x327ccb]===_0x11b38c||_0x15248e[_0x327ccb]===_0x22f3ea([0x2a])));}function _0x5ec652(){return _0x30e817&&_0x4afea5?new window[(_0x22f3ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12b3ae,_0xab2933)=>{_0x30e817[_0x22f3ea([0x74,0x68,0x65,0x6e])](_0x12b3ae,_0xab2933),_0x4afea5[_0x22f3ea([0x74,0x68,0x65,0x6e])](_0x22880e=>{_0x22880e!=_0x22f3ea([0x56,0x61,0x6c,0x69,0x64])&&_0x12b3ae(_0x22880e);},_0xab2933);}):_0x30e817||_0x4afea5||_0x22f3ea([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5b4d6b(_0x49d80d,_0x22e6e6){return new window[(_0x22f3ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x428066=>{if(_0x319eb0())return _0x428066(_0x22f3ea([0x56,0x61,0x6c,0x69,0x64]));_0x1a40e5(),_0x522703[_0x22f3ea([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22f3ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a9bb5=!0x1;const _0x5a1b2a=_0x2cf95e();function _0x1c3595(_0x4a9fdd){return!!_0x4a9fdd&&(typeof _0x4a9fdd===_0x22f3ea([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a9fdd===_0x22f3ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a9fdd[_0x22f3ea([0x74,0x68,0x65,0x6e])]===_0x22f3ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a9fdd[_0x22f3ea([0x63,0x61,0x74,0x63,0x68])]===_0x22f3ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5bf200(_0x11b3f2){_0x3da6ed(_0x11b3f2)[_0x22f3ea([0x74,0x68,0x65,0x6e])](_0x3ee034=>{if(!_0x3ee034||_0x3ee034[_0x22f3ea([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22f3ea([0x6f,0x6b]))return _0x22f3ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4fe6d1(_0x2631ba(_0x5a1b2a+_0x22e6e6))!=_0x3ee034[_0x22f3ea([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22f3ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22f3ea([0x56,0x61,0x6c,0x69,0x64]);})[_0x22f3ea([0x74,0x68,0x65,0x6e])](_0x20d73e=>(_0x4f9ba4(),_0x20d73e),()=>{const _0x947091=_0x5f7aa8();return null==_0x947091?(_0x4f9ba4(),_0x22f3ea([0x56,0x61,0x6c,0x69,0x64])):_0x22f3ea(_0xe7d4a7-_0x947091>(0x7753083a^_0x67f665)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22f3ea([0x74,0x68,0x65,0x6e])](_0x428066)[_0x22f3ea([0x63,0x61,0x74,0x63,0x68])](()=>{_0x428066(_0x22f3ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xedbd2d=0x536962ba^_0x67f665;function _0x4f9ba4(){const _0x160146=_0x22f3ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x4fe6d1(_0x2631ba(_0x49d80d)),_0xfb2b00=_0x32c8b0(_0x4fe6d1(window[_0x22f3ea([0x4d,0x61,0x74,0x68])][_0x22f3ea([0x63,0x65,0x69,0x6c])](_0xe7d4a7/_0xedbd2d)));window[_0x22f3ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22f3ea([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x160146,_0xfb2b00);}function _0x5f7aa8(){const _0x11c6be=_0x22f3ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x4fe6d1(_0x2631ba(_0x49d80d)),_0x2def5b=window[_0x22f3ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22f3ea([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11c6be);return _0x2def5b?window[_0x22f3ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32c8b0(_0x2def5b),0x10)*_0xedbd2d:null;}function _0x3da6ed(_0x2c3128){return new window[(_0x22f3ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a9788,_0x12ee0f)=>{_0x2c3128[_0x22f3ea([0x74,0x68,0x65,0x6e])](_0x5a9788,_0x12ee0f),window[_0x22f3ea([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12ee0f,0x535e58fa^_0x67f665);});}}_0x522703[_0x22f3ea([0x6f,0x6e])](_0x22f3ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f941d,_0x375bee)=>{if(_0x375bee[0x0]!=_0x49d80d)return _0x428066(_0x22f3ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x375bee[0x1]={..._0x375bee[0x1],[_0x22f3ea([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a1b2a};},{[_0x22f3ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22f3ea([0x68,0x69,0x67,0x68])}),_0x522703[_0x22f3ea([0x6f,0x6e])](_0x22f3ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b7576=>{_0x1c3595(_0x1b7576[_0x22f3ea([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a9bb5=!0x0,_0x5bf200(_0x1b7576[_0x22f3ea([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22f3ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22f3ea([0x6c,0x6f,0x77])}),_0x5a1fec[_0x22f3ea([0x74,0x68,0x65,0x6e])](()=>{_0x1a9bb5||_0x428066(_0x22f3ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x319eb0(){return _0x522703[_0x22f3ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22f3ea([0x76,0x69,0x65,0x77])][_0x22f3ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22f3ea([0x61,0x75,0x74,0x6f]);}function _0x1a40e5(){_0x522703[_0x22f3ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22f3ea([0x76,0x69,0x65,0x77])][_0x22f3ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22f3ea([0x61,0x75,0x74,0x6f]);}}function _0x426174(_0x124e97){const _0x249f75=[new window[(_0x22f3ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53e095=>setTimeout(_0x53e095,0x5356b2f6^_0x67f665)),_0x5a1fec[_0x22f3ea([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22f3ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10128e=>{let _0x4bbb35=0x0;_0x522703[_0x22f3ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x22f3ea([0x6f,0x6e])](_0x22f3ea([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x8ffd2d,_0x4d6fe4)=>{_0x4d6fe4[0x0][_0x22f3ea([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4bbb35++,_0x4bbb35==(0x535f8dc2^_0x67f665)&&(_0x10128e(),_0x8ffd2d[_0x22f3ea([0x6f,0x66,0x66])]());});}))];return window[_0x22f3ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22f3ea([0x72,0x61,0x63,0x65])](_0x249f75)[_0x22f3ea([0x74,0x68,0x65,0x6e])](()=>_0x124e97);}async function _0x40f14f(){await _0x5a1fec,_0x522703[_0x22f3ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x22f3ea([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x103e31,_0x522703[_0x22f3ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x22f3ea([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x103e31,_0x522703[_0x22f3ea([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22f3ea([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x414ca8(_0x41987e){const _0x3d2884=_0xdecef0();_0x522703[_0x3d2884]=_0x22f3ea([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x41987e,_0x41987e!=_0x22f3ea([0x56,0x61,0x6c,0x69,0x64])&&_0x40f14f();}function _0xdecef0(){const _0x5c1225=window[_0x22f3ea([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22f3ea([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22f3ea([0x6e,0x6f,0x77])]())[_0x22f3ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22f3ea([0x2e]),'');let _0xce7cf5=_0x22f3ea([0x68]);for(let _0x1ddebd=0x0;_0x1ddebd<_0x5c1225[_0x22f3ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ddebd+=0x2){let _0x1288a9=window[_0x22f3ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c1225[_0x22f3ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ddebd,_0x1ddebd+0x2));_0x1288a9>=_0x435325[_0x22f3ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1288a9-=_0x435325[_0x22f3ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xce7cf5+=_0x435325[_0x1288a9];}return _0xce7cf5;}function _0x2f6edf(){const _0x2e625b=_0x344b73[_0x22f3ea([0x73,0x70,0x6c,0x69,0x74])](_0x22f3ea([0x2e]));if(0x3!=_0x2e625b[_0x22f3ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57531f(_0x2e625b[0x1]);function _0x57531f(_0x47eff6){const _0x15dbb1=_0x2826d9(_0x47eff6);return _0x15dbb1&&_0x2aece5()?_0x15dbb1:null;function _0x2aece5(){const _0x184e6b=_0x15dbb1[_0x22f3ea([0x6a,0x74,0x69])],_0x2f35bb=window[_0x22f3ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x184e6b[_0x22f3ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x184e6b[_0x22f3ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x432222={..._0x15dbb1,[_0x22f3ea([0x6a,0x74,0x69])]:_0x184e6b[_0x22f3ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x184e6b[_0x22f3ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x432222[_0x22f3ea([0x76,0x63])],_0x2631ba(_0x432222)==_0x2f35bb;}}}async function _0x25a46a(){let _0x234cb6=!0x0;try{const _0x4647cf=_0x344b73[_0x22f3ea([0x73,0x70,0x6c,0x69,0x74])](_0x22f3ea([0x2e])),[_0x55dff4,_0x2e5ff9,_0x231859]=_0x4647cf;return _0x1c9dc9(_0x55dff4),await _0x2d032b(_0x55dff4,_0x2e5ff9,_0x231859),_0x234cb6;}catch{return!0x1;}function _0x1c9dc9(_0x5b0ae6){const _0xcf00c7=_0x2826d9(_0x5b0ae6);_0xcf00c7&&_0xcf00c7[_0x22f3ea([0x61,0x6c,0x67])]==_0x22f3ea([0x45,0x53,0x32,0x35,0x36])||(_0x234cb6=!0x1);}async function _0x2d032b(_0x1dc24c,_0x562d2e,_0x5f4d2d){const _0x846bd8=window[_0x22f3ea([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22f3ea([0x66,0x72,0x6f,0x6d])](_0x2f98f7(_0x5f4d2d),_0x118f02=>_0x118f02[_0x22f3ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xcd7899=new window[(_0x22f3ea([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22f3ea([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1dc24c+_0x22f3ea([0x2e])+_0x562d2e),_0x16c863=window[_0x22f3ea([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22f3ea([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x16c863)return;const _0x3b577f=await _0x16c863[_0x22f3ea([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22f3ea([0x6a,0x77,0x6b]),_0x356ca9,{[_0x22f3ea([0x6e,0x61,0x6d,0x65])]:_0x22f3ea([0x45,0x43,0x44,0x53,0x41]),[_0x22f3ea([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22f3ea([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22f3ea([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x16c863[_0x22f3ea([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22f3ea([0x6e,0x61,0x6d,0x65])]:_0x22f3ea([0x45,0x43,0x44,0x53,0x41]),[_0x22f3ea([0x68,0x61,0x73,0x68])]:{[_0x22f3ea([0x6e,0x61,0x6d,0x65])]:_0x22f3ea([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b577f,_0x846bd8,_0xcd7899)||(_0x234cb6=!0x1);}}function _0x2826d9(_0x4f4200){return _0x4f4200[_0x22f3ea([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22f3ea([0x65,0x79]))?JSON[_0x22f3ea([0x70,0x61,0x72,0x73,0x65])](_0x2f98f7(_0x4f4200)):null;}function _0x2f98f7(_0x4e24d5){return window[_0x22f3ea([0x61,0x74,0x6f,0x62])](_0x4e24d5[_0x22f3ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22f3ea([0x2b]))[_0x22f3ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22f3ea([0x2f])));}function _0x2631ba(_0x28248b){let _0xad72af=0x1505;function _0x38cf4f(_0x563f23){for(let _0x194ca2=0x0;_0x194ca2<_0x563f23[_0x22f3ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x194ca2++){const _0xde2207=_0x563f23[_0x22f3ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x194ca2);_0xad72af=(_0xad72af<<0x5)+_0xad72af+_0xde2207,_0xad72af&=_0xad72af;}}function _0x335d6d(_0x5af6ef){Array[_0x22f3ea([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5af6ef)?_0x5af6ef[_0x22f3ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x335d6d):_0x5af6ef&&typeof _0x5af6ef==_0x22f3ea([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22f3ea([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5af6ef)[_0x22f3ea([0x73,0x6f,0x72,0x74])]()[_0x22f3ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc3bbf,_0x5f9f92])=>{_0x38cf4f(_0xc3bbf),_0x335d6d(_0x5f9f92);}):_0x38cf4f(window[_0x22f3ea([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5af6ef));}return _0x335d6d(_0x28248b),_0xad72af>>>0x0;}function _0x4fe6d1(_0x16aaf3){return _0x16aaf3[_0x22f3ea([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22f3ea([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22f3ea([0x30]));}function _0x32c8b0(_0x442b57){return _0x442b57[_0x22f3ea([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22f3ea([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22f3ea([0x6a,0x6f,0x69,0x6e])]('');}function _0x103e31(){}function _0x22f3ea(_0x1ab051){const _0x364bec=_0x5826;return _0x1ab051[_0x364bec(0x13b)](_0x16d47a=>String[_0x364bec(0x137)](_0x16d47a))[_0x364bec(0x126)]('');}_0x414ca8(await _0x2b4875());}(this);}[_0x4a1cc1(0x102)](){const _0x53fec0=_0x4a1cc1,_0x57b813=this[_0x53fec0(0x145)][_0x53fec0(0x10b)][_0x53fec0(0x132)];_0x57b813[_0x53fec0(0x149)](_0x53fec0(0x114))&&_0x57b813[_0x53fec0(0x121)](_0x53fec0(0x114),{'allowAttributes':[_0x53fec0(0x111)]}),_0x57b813[_0x53fec0(0x149)](_0x53fec0(0x133))&&_0x57b813[_0x53fec0(0x121)](_0x53fec0(0x133),{'allowAttributes':[_0x53fec0(0x111)]});}[_0x4a1cc1(0x10f)](){const _0x16f095=_0x4a1cc1,_0x13e105=this[_0x16f095(0x145)];_0x13e105[_0x16f095(0x12a)][_0x16f095(0x134)](_0x16f095(0x146))[_0x16f095(0x151)]({'model':_0x16f095(0x111),'view':_0x16f095(0x117)}),_0x13e105[_0x16f095(0x12a)][_0x16f095(0x134)](_0x16f095(0x101))[_0x16f095(0x13f)]({'model':{'key':_0x16f095(0x111),'value':_0x41c3b0=>_0x41c3b0[_0x16f095(0x131)](_0x16f095(0x117))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x90508c=_0x13e105[_0x16f095(0xff)][_0x16f095(0x118)](_0x16f095(0x10c));_0x90508c&&this[_0x16f095(0x11f)](_0x90508c,_0x16f095(0x116),(_0x1164fc,[_0x205e0b,_0x32f56e])=>{const _0x417819=_0x16f095;_0x205e0b[_0x417819(0x127)](_0x417819(0x111),_0x32f56e);});}[_0x4a1cc1(0x129)](){const _0x5721a2=_0x4a1cc1,_0x40f86a=this[_0x5721a2(0x145)][_0x5721a2(0x10a)][_0x5721a2(0x118)](_0x5721a2(0x14f))||{},_0x5c11ba=this[_0x5721a2(0x145)][_0x5721a2(0x10a)][_0x5721a2(0x118)](_0x5721a2(0x136))||'';this[_0x5721a2(0x130)]=_0xd6594a(_0x24807b[_0x5721a2(0x113)],_0x5721a2(0x11a),{..._0x40f86a,'pubkey':_0x5c11ba,'ctx-name':_0x5721a2(0x139)+this[_0x5721a2(0x112)],'sourceList':'','imgOnly':_0x5721a2(0xfc),'removeCopyright':_0x5721a2(0xfc),'localeName':this[_0x5721a2(0x145)][_0x5721a2(0xfe)][_0x5721a2(0x147)],'externalSourcesEmbedCss':_0x5721a2(0x106)}),this[_0x5721a2(0x130)][_0x5721a2(0x12c)]=_0x512452=>{const _0x3e7c18=_0x5721a2;if(_0x3e7c18(0x100)==_0x512452)return _0x3e7c18(0x13d);},_0x24807b[_0x5721a2(0x113)][_0x5721a2(0x123)][_0x5721a2(0x12d)](this[_0x5721a2(0x130)]);}[_0x4a1cc1(0x11d)](){const _0x590b34=_0x4a1cc1;this[_0x590b34(0x148)]=_0xd6594a(_0x24807b[_0x590b34(0x113)],_0x590b34(0x104),{'ctx-name':_0x590b34(0x139)+this[_0x590b34(0x112)]}),_0x24807b[_0x590b34(0x113)][_0x590b34(0x123)][_0x590b34(0x12d)](this[_0x590b34(0x148)]);}[_0x4a1cc1(0x135)](){const _0xc27ca0=_0x4a1cc1,_0x54c255=this[_0xc27ca0(0x145)][_0xc27ca0(0xff)][_0xc27ca0(0x118)](_0xc27ca0(0x14d));_0x54c255&&this[_0xc27ca0(0x11f)](_0x54c255,_0xc27ca0(0x107),()=>{const _0x1f2f4a=_0xc27ca0,_0x3af93d=this[_0x1f2f4a(0x145)][_0x1f2f4a(0x10b)][_0x1f2f4a(0x113)][_0x1f2f4a(0x12b)][_0x1f2f4a(0x14e)]();_0x3af93d&&_0x3af93d[_0x1f2f4a(0x131)](_0x1f2f4a(0x111))&&this[_0x1f2f4a(0x145)][_0x1f2f4a(0x105)][_0x1f2f4a(0x10e)][_0x1f2f4a(0x125)](_0x1f2f4a(0x103),()=>{const _0x53605b=_0x1f2f4a;_0x188869(this[_0x53605b(0x145)],_0x3af93d);});});const _0x3d328e=this[_0xc27ca0(0x145)][_0xc27ca0(0xff)][_0xc27ca0(0x118)](_0xc27ca0(0x11b));_0x3d328e&&this[_0xc27ca0(0x11f)](_0x3d328e,_0xc27ca0(0x107),()=>{const _0x16dc91=_0xc27ca0,_0x36ea7f=this[_0x16dc91(0x145)][_0x16dc91(0x10b)][_0x16dc91(0x113)][_0x16dc91(0x12b)][_0x16dc91(0x14e)]();_0x36ea7f&&_0x36ea7f[_0x16dc91(0x131)](_0x16dc91(0x111))&&this[_0x16dc91(0x145)][_0x16dc91(0x105)][_0x16dc91(0x10e)][_0x16dc91(0x125)](_0x16dc91(0x103),()=>{const _0x37a796=_0x16dc91;_0x188869(this[_0x37a796(0x145)],_0x36ea7f);});});}}