@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250705.0 → 0.0.0-nightly-20250706.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 _0x786c52,Command as _0x4686f5}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xaa0972,IconGooglePhotos as _0x1e219e,IconGoogleDrive as _0x40b3b9,IconFacebook as _0x47cc7f,IconDropbox as _0x4035c4,IconUploadcareLink as _0x44f722,IconUploadcareImageUpload as _0x55954b,IconError as _0x41ab1c,IconUploadcareImageEdit as _0x548650}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x417608,MenuBarMenuListItemButtonView as _0x5cae9d,View as _0xe56ebd,FocusCycler as _0x3a0d4c,Dialog as _0x2540e7,DialogViewPosition as _0x2a92d0,SpinnerView as _0x385e59,IconView as _0x46276b,Notification as _0x1d1b2e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x47f2ab,DomEmitterMixin as _0x59c63c,global as _0x5e903c,getAncestors as _0x495eaa,ObservableMixin as _0xbe61bc,uid as _0x5e0022,createElement as _0x130522}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x45b7f6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x10f96c,info as _0x366aec}from'@uploadcare/upload-client';import*as _0x34c371 from'@uploadcare/file-uploader';var i=function(_0x171ec0){return _0x171ec0['Local']='local',_0x171ec0['URL']='url',_0x171ec0['Dropbox']='dropbox',_0x171ec0['GDrive']='gdrive',_0x171ec0['Facebook']='facebook',_0x171ec0['GPhotos']='gphotos',_0x171ec0['OneDrive']='onedrive',_0x171ec0;}({});function _(_0x513fa6,_0x433161,_0x15caa3){const t=_0x513fa6['t'],_0x2964f=_0x513fa6['t'];switch(_0x433161){case i['Local']:return{'text':_0x2964f('Insert'===_0x15caa3?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2964f('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x15caa3?_0x2964f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2964f('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x15caa3?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x15caa3?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x15caa3?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x15caa3?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x15caa3?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x433161;}}class e extends _0x786c52{['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 _0x4ac98f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x129c75;for(const _0x5acabb in _0x4ac98f){const _0x9c265d=_0x5acabb,_0x213227=_0x4ac98f[_0x9c265d];if('uploadcareLicenseKeyValid'==_0x213227||'uploadcareLicenseKeyInvalid'==_0x213227||'uploadcareLicenseKeyExpired'==_0x213227||'uploadcareLicenseKeyDomainLimit'==_0x213227||'uploadcareLicenseKeyNotAllowed'==_0x213227||'uploadcareLicenseKeyEvaluationLimit'==_0x213227||'uploadcareLicenseKeyTrialLimit'==_0x213227||'uploadcareLicenseKeyUsageLimit'==_0x213227){delete _0x4ac98f[_0x9c265d],_0x129c75=_0x213227,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x129c75&&_0x4ac98f['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x129c75&&_0x4ac98f['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x129c75&&_0x4ac98f['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x129c75&&_0x4ac98f['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x129c75&&_0x4ac98f['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x129c75&&_0x4ac98f['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x129c75&&_0x4ac98f['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x345d86}=this,_0x549d91=_0x345d86['commands']['get']('uploadcare');if(!_0x549d91)return;const _0x32f24e=this['_normalizeConfigSourceList'](_0x345d86['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1221f0,_0x19f850)=>{const _0x91e90=this['_getIntegrationKey'](_0x19f850['type']);return _0x1221f0[_0x91e90]||(_0x1221f0[_0x91e90]=[]),_0x1221f0[_0x91e90]['push'](_0x19f850),_0x1221f0;},{});_0x345d86['plugins']['has']('ImageInsertUI')&&_0x345d86['commands']['get']('uploadcare')&&Object['entries'](_0x32f24e)['forEach'](([_0xc376f0,_0x32f53f])=>{_0x345d86['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xc376f0,'observable':()=>_0x549d91,'buttonViewCreator':()=>this['_createToolbarButton'](_0x32f53f),'formViewCreator':()=>this['_createDropdownButtons'](_0x32f53f),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x32f53f),'override':'assetManager'!==_0xc376f0});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1818da){const {locale:_0x5ecb30}=this['editor'];return _0x1818da['map'](_0x42ad98=>{const _0x572b8c=_(_0x5ecb30,_0x42ad98,'Insert');switch(_0x42ad98){case i['Local']:return{'icon':_0x55954b,'type':i['Local'],..._0x572b8c};case i['URL']:return{'icon':_0x44f722,'type':i['URL'],..._0x572b8c};case i['Dropbox']:return{'icon':_0x4035c4,'type':i['Dropbox'],..._0x572b8c};case i['Facebook']:return{'icon':_0x47cc7f,'type':i['Facebook'],..._0x572b8c};case i['GDrive']:return{'icon':_0x40b3b9,'type':i['GDrive'],..._0x572b8c};case i['GPhotos']:return{'icon':_0x1e219e,'type':i['GPhotos'],..._0x572b8c};case i['OneDrive']:return{'icon':_0xaa0972,'type':i['OneDrive'],..._0x572b8c};}});}['_getIntegrationKey'](_0x5b378c){switch(_0x5b378c){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x585328,_0x14fcd4){const _0x593678=this['editor'],_0x42c0e9=new _0x585328(_0x593678['locale']),_0x5c4cce=_0x593678['commands']['get']('uploadcare');return _0x42c0e9['bind']('isEnabled')['to'](_0x5c4cce),_0x42c0e9['on']('execute',()=>{_0x5c4cce['execute'](_0x14fcd4);}),_0x42c0e9;}['_createToolbarButton'](_0x5a765c){const {locale:_0x3a4d9a}=this['editor'],_0x5ee131=this['editor']['plugins']['get']('ImageInsertUI'),_0x2e2b2c=_0x5a765c[0x0],_0x54f126=this['_createButton'](_0x417608,_0x2e2b2c['type']);return _0x54f126['icon']=_0x2e2b2c['icon'],_0x54f126['bind']('label')['to'](_0x5ee131,'isImageSelected',_0x15a4e1=>_(_0x3a4d9a,_0x2e2b2c['type'],_0x15a4e1?'Replace':'Insert')['text']),_0x54f126['tooltip']=!0x0,_0x54f126;}['_createDropdownButtons'](_0x357931){const {locale:_0xa24f84}=this['editor'],_0x5ec20f=this['editor']['plugins']['get']('ImageInsertUI');return _0x357931['map'](_0x35f652=>{const _0x36ac4c=this['_createButton'](_0x417608,_0x35f652['type']);return _0x36ac4c['withText']=!0x0,_0x36ac4c['icon']=_0x35f652['icon'],_0x36ac4c['bind']('label')['to'](_0x5ec20f,'isImageSelected',_0x17f019=>_(_0xa24f84,_0x35f652['type'],_0x17f019?'Replace':'Insert')['text']),_0x36ac4c;});}['_createMenuBarButtons'](_0x29a851){return _0x29a851['map'](_0x4b77d9=>{const _0x5edd03=this['_createButton'](_0x5cae9d,_0x4b77d9['type']);return _0x5edd03['icon']=_0x4b77d9['icon'],_0x5edd03['label']=_0x4b77d9['shortText'],_0x5edd03;});}}class F extends _0xe56ebd{['focusTracker'];['focusCycler'];constructor(_0x341358){super(_0x341358),this['focusTracker']=new _0x47f2ab(),this['focusCycler']=new _0x3a0d4c({'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(_0x5ed079,_0x5dca6d){super(_0x5ed079),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-'+_0x5dca6d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x1b8d0e,_0x3f0bcb){const _0x4df803=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1f54c8=>_0x1f54c8<=_0x3f0bcb)['map'](_0x186375=>_0x1b8d0e['replace'](/\/$/,'')+'/-/resize/'+_0x186375+'x/\x20'+_0x186375+'w');return{'imageFallbackUrl':_0x1b8d0e,'imageSources':[{'srcset':_0x4df803['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3f0bcb+'px)\x20100vw,\x20'+_0x3f0bcb+'px','type':'image/webp'}]};}function C(_0x982af9,_0x1fbd97,_0x566dd1){const _0x1cadd2=_0x982af9['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1cadd2?parseInt(_0x1cadd2[0x1],0xa):_0x1fbd97,'height':_0x1cadd2?parseInt(_0x1cadd2[0x2],0xa):_0x566dd1};}function p(_0x4453a4,_0x5efd91){const _0x430eef=new(_0x59c63c())(),_0x18f332=_0x4453a4['plugins']['get']('ImageUtils'),_0x3bdcd4=_0x4453a4['editing']['mapper']['toViewElement'](_0x5efd91),_0xba1bdd=_0x18f332['findViewImgElement'](_0x3bdcd4),_0x4324d5=_0x4453a4['editing']['view']['domConverter']['viewToDom'](_0xba1bdd),_0x2870b6=_0x5efd91['getAttribute']('width'),_0x2bb022=_0x5efd91['getAttribute']('height'),_0x2a905f='image-processing';_0x4453a4['editing']['view']['change'](_0x140513=>{_0x140513['addClass'](_0x2a905f,_0x3bdcd4),_0x140513['setStyle']('aspect-ratio',_0x2870b6+'/'+_0x2bb022,_0xba1bdd);}),_0x430eef['listenTo'](_0x4324d5,'load',()=>{_0x430eef['stopListening'](_0x4324d5,'load'),_0x4453a4['editing']['view']['change'](_0x37b8d2=>{_0x37b8d2['removeClass'](_0x2a905f,_0x3bdcd4),_0x37b8d2['removeStyle']('aspect-ratio',_0xba1bdd);});});}function G(_0x24c50c){if(Array['isArray'](_0x24c50c)){const _0x2c3921=_0x24c50c['map'](G);return _0x479801=>_0x2c3921['some'](_0x3ba2eb=>_0x3ba2eb(_0x479801));}if('origin'==_0x24c50c){const _0x14172=_0x5e903c['window']['location']['origin'];return _0x186e72=>new URL(_0x186e72,_0x5e903c['document']['baseURI'])['origin']==_0x14172;}return'function'==typeof _0x24c50c?_0x24c50c:_0x24c50c instanceof RegExp?_0x1d1627=>!(!_0x1d1627['match'](_0x24c50c)&&!_0x1d1627['replace'](/^https?:\/\//,'')['match'](_0x24c50c)):()=>!0x1;}function S(_0x37f07c,_0x3ad4d0){return _0x495eaa(_0x37f07c['target'])['includes'](_0x3ad4d0);}class n extends/* #__PURE__ -- @preserve */
24
- _0xbe61bc(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x28cb25,_0x57ea85,_0x5cb6d5){super(),this['_editor']=_0x28cb25,this['_editing']=_0x57ea85,this['_dialog']=_0x28cb25['plugins']['get'](_0x2540e7),this['_api']=_0x57ea85['ctxElement']['getAPI'](),this['_type']=_0x5cb6d5,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:_0x1aee3c,model:_0x31f631}=this['_editor'],_0x3e7bd1=_0x31f631['document']['selection']['getSelectedElement'](),_0x3669ce=_0x3e7bd1&&(_0x3e7bd1['is']('element','imageBlock')||_0x3e7bd1['is']('element','imageInline'));this['_formView']=new x(_0x1aee3c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x55954b,'title':_(_0x1aee3c,this['_type'],_0x3669ce?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2a92d0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5f4d3e=>!S(_0x5f4d3e,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5868c3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x39d3de=>{const _0x2a0bdb=_0x5868c3['length'];for(const _0x454604 of _0x5868c3){const _0x556188=_0x454604===_0x5868c3[_0x2a0bdb-0x1],{cdnUrl:_0x40fe8b,fileInfo:_0x27f08c}=_0x454604;if(!_0x40fe8b||!_0x27f08c)continue;const {width:_0x306fb0,height:_0x1de140}=_0x27f08c['imageInfo'],_0x3777e1=C(_0x40fe8b,_0x306fb0,_0x1de140),_0x50977a=k(_0x40fe8b,_0x3777e1['width']),_0x406afb={'id':_0x27f08c['uuid'],'type':'image','attributes':{'imageDimension':_0x3777e1,..._0x50977a}};this['_insertAsset'](_0x406afb,_0x556188,_0x39d3de);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xc9ae03=>{'idle'===_0xc9ae03['detail']['status']&&!_0xc9ae03['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1d46f7,_0x133b92,_0x14c71d){const _0x522dd3=this['_editor']['model']['document']['selection'],_0x135950=_0x522dd3['getSelectedElement'](),_0x5815d4=!(!_0x135950||!_0x135950['is']('element','imageInline'));_0x14c71d['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1d46f7,_0x5815d4),_0x133b92||_0x14c71d['setSelection'](_0x522dd3['getLastPosition']());}['_insertImage'](_0x2f0217,_0x4f1d47){const _0x18b8dc=this['_editor'],{imageDimension:_0x765c6e,imageFallbackUrl:_0xe51ab4,imageSources:_0x1c98b8}=_0x2f0217['attributes'];_0x18b8dc['execute']('insertImage',{'imageType':_0x4f1d47?'imageInline':null,'source':{'uploadcareImageId':_0x2f0217['id'],'src':_0xe51ab4,'sources':_0x1c98b8,..._0x765c6e}});}}class w extends _0x4686f5{['_editing'];['_controller']=null;static get['requires'](){return[_0x2540e7,o];}constructor(_0x587af2){super(_0x587af2),this['_editing']=_0x587af2['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4a8087){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4a8087);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xc59f87,publicKey:_0x5c3637,signal:_0x5d0d28,onProgress:_0x2bf38}){return _0x10f96c(_0xc59f87,{'publicKey':_0x5c3637,'store':'auto','signal':_0x5d0d28,'onProgress':_0x2bf38});}static['getInfo'](_0x5467ef,_0x46e2ea){return _0x366aec(_0x5467ef,_0x46e2ea);}}class f extends _0x786c52{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x45b7f6,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5a0526=this['editor'];if(!!!_0x5a0526['config']['get']('uploadcare'))return;_0x5a0526['plugins']['get'](_0x45b7f6)['createUploadAdapter']=_0x29f3da=>new A(_0x29f3da,_0x5a0526),_0x5a0526['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x556992,{imageElement:_0x192c3c,data:_0xf58448})=>{_0x5a0526['model']['change'](_0x97ef42=>{_0x97ef42['setAttribute']('uploadcareImageId',_0xf58448['uploadcareImageId'],_0x192c3c);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x3c7f18,_0x2446d3){this['loader']=_0x3c7f18,this['editor']=_0x2446d3,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5d736e=this['editor']['config']['get']('uploadcare.pubkey'),_0x10568e=await this['loader']['file'];return j['upload']({'file':_0x10568e,'publicKey':_0x5d736e,'signal':this['controller']['signal'],'onProgress':_0x1caae3=>{_0x1caae3&&_0x1caae3['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1caae3['value']);}})['then'](async _0x5dfacc=>{const {imageFallbackUrl:_0x42a082,imageSources:_0x17b1b9}=k(_0x5dfacc['cdnUrl'],_0x5dfacc['imageInfo']['width']);return{'uploadcareImageId':_0x5dfacc['uuid'],'default':_0x42a082,'sources':_0x17b1b9};})['catch'](()=>{const _0x1f2b8b=t('Cannot\x20upload\x20file:')+('\x20'+_0x10568e['name']+'.');return Promise['reject'](_0x1f2b8b);});}['abort'](){this['controller']['abort']();}}class o extends _0x786c52{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2540e7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x5327fa){super(_0x5327fa),this['ucContextId']=_0x5e0022();}['init'](){const _0x66d4e3=this['editor'];_0x66d4e3['commands']['add']('uploadcare',new w(_0x66d4e3));}['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 _0x3eb40b=_0x5e903c['document']['querySelector']('input[uploadcare-file-input]');_0x3eb40b&&_0x3eb40b['remove']();}),async function(_0x32c709){const _0x1b6f7b=_0x2afe11([0x74,0x67,0x65,0x35,0x53,0x38,0x50,0x4d,0x44,0x51,0x66,0x32,0x56,0x6c,0x62,0x78,0x57,0x79,0x52,0x30,0x6d,0x73,0x4a,0x4e,0x36,0x45,0x7a,0x54,0x69,0x41,0x4c,0x6e,0x64,0x37,0x6b,0x70,0x71,0x58,0x39,0x34,0x42,0x4f,0x43,0x48,0x77,0x61,0x33,0x31,0x63,0x6a,0x68,0x47,0x46,0x4b,0x5a,0x55,0x49,0x72,0x76,0x6f,0x59,0x75]),_0x5e60cc=0x62295c93,_0x5997bf=0x622e3023^_0x5e60cc,_0x5a1d98=window[_0x2afe11([0x44,0x61,0x74,0x65])][_0x2afe11([0x6e,0x6f,0x77])](),_0x31f501=_0x32c709[_0x2afe11([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x329cc9=new window[(_0x2afe11([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50f2d4=>{_0x31f501[_0x2afe11([0x6f,0x6e,0x63,0x65])](_0x2afe11([0x72,0x65,0x61,0x64,0x79]),_0x50f2d4);}),_0x324492={[_0x2afe11([0x6b,0x74,0x79])]:_0x2afe11([0x45,0x43]),[_0x2afe11([0x75,0x73,0x65])]:_0x2afe11([0x73,0x69,0x67]),[_0x2afe11([0x63,0x72,0x76])]:_0x2afe11([0x50,0x2d,0x32,0x35,0x36]),[_0x2afe11([0x78])]:_0x2afe11([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]),[_0x2afe11([0x79])]:_0x2afe11([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]),[_0x2afe11([0x61,0x6c,0x67])]:_0x2afe11([0x45,0x53,0x32,0x35,0x36])},_0x3b199a=_0x31f501[_0x2afe11([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2afe11([0x67,0x65,0x74])](_0x2afe11([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3229fe(){let _0x1daa63,_0x301e9f=null,_0x120c4f=null;try{if(_0x3b199a==_0x2afe11([0x47,0x50,0x4c]))return _0x2afe11([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1daa63=_0x11040c(),!_0x1daa63)return _0x2afe11([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1daa63[_0x2afe11([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x120c4f=_0x562fbf(_0x1daa63[_0x2afe11([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1daa63[_0x2afe11([0x6a,0x74,0x69])])),await _0x53202c()?_0x219a21()?_0x311ba1()?_0x2afe11([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c3d73()?(_0x1daa63[_0x2afe11([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2afe11([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x301e9f=_0x5b575d(_0x2afe11([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1daa63[_0x2afe11([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2afe11([0x74,0x72,0x69,0x61,0x6c])&&(_0x301e9f=_0x5b575d(_0x2afe11([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x460934()):_0x2afe11([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2afe11([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2afe11([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2afe11([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x311ba1(){const _0x1a2645=[_0x2afe11([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2afe11([0x74,0x72,0x69,0x61,0x6c])][_0x2afe11([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1daa63[_0x2afe11([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5a1d98/0x3e8:0xe10*_0x5997bf;return _0x1daa63[_0x2afe11([0x65,0x78,0x70])]<_0x1a2645;}function _0x219a21(){const _0x2d91a0=_0x1daa63[_0x2afe11([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2d91a0&&(!!_0x2d91a0[_0x2afe11([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2afe11([0x2a]))||!!_0x2d91a0[_0x2afe11([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2afe11([0x55,0x50,0x4c,0x43])));}function _0x5c3d73(){const _0x39c8ab=_0x1daa63[_0x2afe11([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x39c8ab||0x0==_0x39c8ab[_0x2afe11([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x431b48}=new URL(window[_0x2afe11([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x39c8ab[_0x2afe11([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x431b48))return!0x0;const _0x4a135d=_0x431b48[_0x2afe11([0x73,0x70,0x6c,0x69,0x74])](_0x2afe11([0x2e]));return _0x39c8ab[_0x2afe11([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2518fd=>_0x2518fd[_0x2afe11([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2afe11([0x2a])))[_0x2afe11([0x6d,0x61,0x70])](_0x55c99c=>_0x55c99c[_0x2afe11([0x73,0x70,0x6c,0x69,0x74])](_0x2afe11([0x2e])))[_0x2afe11([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa1a922=>_0xa1a922[_0x2afe11([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4a135d[_0x2afe11([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2afe11([0x6d,0x61,0x70])](_0x4a6171=>Array(_0x4a135d[_0x2afe11([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4a6171[_0x2afe11([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2afe11([0x66,0x69,0x6c,0x6c])](_0x4a6171[0x0]===_0x2afe11([0x2a])?_0x2afe11([0x2a]):'')[_0x2afe11([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4a6171))[_0x2afe11([0x73,0x6f,0x6d,0x65])](_0x448455=>_0x4a135d[_0x2afe11([0x65,0x76,0x65,0x72,0x79])]((_0x460b60,_0xced9ad)=>_0x448455[_0xced9ad]===_0x460b60||_0x448455[_0xced9ad]===_0x2afe11([0x2a])));}function _0x460934(){return _0x301e9f&&_0x120c4f?new window[(_0x2afe11([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27651f,_0x1d674c)=>{_0x301e9f[_0x2afe11([0x74,0x68,0x65,0x6e])](_0x27651f,_0x1d674c),_0x120c4f[_0x2afe11([0x74,0x68,0x65,0x6e])](_0x354563=>{_0x354563!=_0x2afe11([0x56,0x61,0x6c,0x69,0x64])&&_0x27651f(_0x354563);},_0x1d674c);}):_0x301e9f||_0x120c4f||_0x2afe11([0x56,0x61,0x6c,0x69,0x64]);}}function _0x562fbf(_0x1013a2,_0x510bb8){return new window[(_0x2afe11([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41f1bc=>{if(_0x19ef4d())return _0x41f1bc(_0x2afe11([0x56,0x61,0x6c,0x69,0x64]));_0x30c157(),_0x31f501[_0x2afe11([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2afe11([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e1f8c=!0x1;const _0x21ff08=_0x5e0022();function _0x1ed42f(_0x56d3aa){return!!_0x56d3aa&&(typeof _0x56d3aa===_0x2afe11([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x56d3aa===_0x2afe11([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x56d3aa[_0x2afe11([0x74,0x68,0x65,0x6e])]===_0x2afe11([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x56d3aa[_0x2afe11([0x63,0x61,0x74,0x63,0x68])]===_0x2afe11([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x483cf9(_0x283773){_0x1fd099(_0x283773)[_0x2afe11([0x74,0x68,0x65,0x6e])](_0x144cb2=>{if(!_0x144cb2||_0x144cb2[_0x2afe11([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2afe11([0x6f,0x6b]))return _0x2afe11([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x36f55c(_0x165275(_0x21ff08+_0x510bb8))!=_0x144cb2[_0x2afe11([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2afe11([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2afe11([0x56,0x61,0x6c,0x69,0x64]);})[_0x2afe11([0x74,0x68,0x65,0x6e])](_0x4fb86d=>(_0x2fe1cf(),_0x4fb86d),()=>{const _0x591a5d=_0x34e6bf();return null==_0x591a5d?(_0x2fe1cf(),_0x2afe11([0x56,0x61,0x6c,0x69,0x64])):_0x2afe11(_0x5a1d98-_0x591a5d>(0x4625d893^_0x5e60cc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2afe11([0x74,0x68,0x65,0x6e])](_0x41f1bc)[_0x2afe11([0x63,0x61,0x74,0x63,0x68])](()=>{_0x41f1bc(_0x2afe11([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd74b5f=0x621fb213^_0x5e60cc;function _0x2fe1cf(){const _0x2bd235=_0x2afe11([0x6c,0x6c,0x63,0x74,0x2d])+_0x36f55c(_0x165275(_0x1013a2)),_0xd7550f=_0x5eb96d(_0x36f55c(window[_0x2afe11([0x4d,0x61,0x74,0x68])][_0x2afe11([0x63,0x65,0x69,0x6c])](_0x5a1d98/_0xd74b5f)));window[_0x2afe11([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2afe11([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2bd235,_0xd7550f);}function _0x34e6bf(){const _0x257c0e=_0x2afe11([0x6c,0x6c,0x63,0x74,0x2d])+_0x36f55c(_0x165275(_0x1013a2)),_0x4119cb=window[_0x2afe11([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2afe11([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x257c0e);return _0x4119cb?window[_0x2afe11([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5eb96d(_0x4119cb),0x10)*_0xd74b5f:null;}function _0x1fd099(_0x20b94d){return new window[(_0x2afe11([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10012c,_0x995f18)=>{_0x20b94d[_0x2afe11([0x74,0x68,0x65,0x6e])](_0x10012c,_0x995f18),window[_0x2afe11([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x995f18,0x62288853^_0x5e60cc);});}}_0x31f501[_0x2afe11([0x6f,0x6e])](_0x2afe11([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x51ee17,_0x192aa9)=>{if(_0x192aa9[0x0]!=_0x1013a2)return _0x41f1bc(_0x2afe11([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x192aa9[0x1]={..._0x192aa9[0x1],[_0x2afe11([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x21ff08};},{[_0x2afe11([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2afe11([0x68,0x69,0x67,0x68])}),_0x31f501[_0x2afe11([0x6f,0x6e])](_0x2afe11([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3fd5c1=>{_0x1ed42f(_0x3fd5c1[_0x2afe11([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e1f8c=!0x0,_0x483cf9(_0x3fd5c1[_0x2afe11([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2afe11([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2afe11([0x6c,0x6f,0x77])}),_0x329cc9[_0x2afe11([0x74,0x68,0x65,0x6e])](()=>{_0x3e1f8c||_0x41f1bc(_0x2afe11([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x19ef4d(){return _0x31f501[_0x2afe11([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2afe11([0x76,0x69,0x65,0x77])][_0x2afe11([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2afe11([0x61,0x75,0x74,0x6f]);}function _0x30c157(){_0x31f501[_0x2afe11([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2afe11([0x76,0x69,0x65,0x77])][_0x2afe11([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2afe11([0x61,0x75,0x74,0x6f]);}}function _0x5b575d(_0x5aa482){const _0x1ea569=[new window[(_0x2afe11([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2194a5=>setTimeout(_0x2194a5,0x6220625f^_0x5e60cc)),_0x329cc9[_0x2afe11([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2afe11([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf2633a=>{let _0x1152c9=0x0;_0x31f501[_0x2afe11([0x6d,0x6f,0x64,0x65,0x6c])][_0x2afe11([0x6f,0x6e])](_0x2afe11([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x21b348,_0x57eb3a)=>{_0x57eb3a[0x0][_0x2afe11([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1152c9++,_0x1152c9==(0x62295d6b^_0x5e60cc)&&(_0xf2633a(),_0x21b348[_0x2afe11([0x6f,0x66,0x66])]());});}))];return window[_0x2afe11([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2afe11([0x72,0x61,0x63,0x65])](_0x1ea569)[_0x2afe11([0x74,0x68,0x65,0x6e])](()=>_0x5aa482);}async function _0x3b79a1(){await _0x329cc9,_0x31f501[_0x2afe11([0x6d,0x6f,0x64,0x65,0x6c])][_0x2afe11([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20c3e3,_0x31f501[_0x2afe11([0x6d,0x6f,0x64,0x65,0x6c])][_0x2afe11([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20c3e3,_0x31f501[_0x2afe11([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2afe11([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b85b6(_0x34a162){const _0x4d26d1=_0xb42846();_0x31f501[_0x4d26d1]=_0x2afe11([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x34a162,_0x34a162!=_0x2afe11([0x56,0x61,0x6c,0x69,0x64])&&_0x3b79a1();}function _0xb42846(){const _0x128c3e=window[_0x2afe11([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2afe11([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2afe11([0x6e,0x6f,0x77])]())[_0x2afe11([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2afe11([0x2e]),'');let _0x157d03=_0x2afe11([0x74]);for(let _0x5d22cf=0x0;_0x5d22cf<_0x128c3e[_0x2afe11([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5d22cf+=0x2){let _0x2e0a95=window[_0x2afe11([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x128c3e[_0x2afe11([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5d22cf,_0x5d22cf+0x2));_0x2e0a95>=_0x1b6f7b[_0x2afe11([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2e0a95-=_0x1b6f7b[_0x2afe11([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x157d03+=_0x1b6f7b[_0x2e0a95];}return _0x157d03;}function _0x11040c(){const _0x2cfbd6=_0x3b199a[_0x2afe11([0x73,0x70,0x6c,0x69,0x74])](_0x2afe11([0x2e]));if(0x3!=_0x2cfbd6[_0x2afe11([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x156b0d(_0x2cfbd6[0x1]);function _0x156b0d(_0xafd6d4){const _0x2f9b8f=_0x2b6392(_0xafd6d4);return _0x2f9b8f&&_0x48f47a()?_0x2f9b8f:null;function _0x48f47a(){const _0x1261c1=_0x2f9b8f[_0x2afe11([0x6a,0x74,0x69])],_0x16dcc6=window[_0x2afe11([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1261c1[_0x2afe11([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1261c1[_0x2afe11([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x545bc4={..._0x2f9b8f,[_0x2afe11([0x6a,0x74,0x69])]:_0x1261c1[_0x2afe11([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1261c1[_0x2afe11([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x545bc4[_0x2afe11([0x76,0x63])],_0x165275(_0x545bc4)==_0x16dcc6;}}}async function _0x53202c(){let _0x16de8e=!0x0;try{const _0xb58241=_0x3b199a[_0x2afe11([0x73,0x70,0x6c,0x69,0x74])](_0x2afe11([0x2e])),[_0x4548e7,_0x5aa389,_0x107607]=_0xb58241;return _0xf0d48d(_0x4548e7),await _0x5e2894(_0x4548e7,_0x5aa389,_0x107607),_0x16de8e;}catch{return!0x1;}function _0xf0d48d(_0x417b5c){const _0x2f81b6=_0x2b6392(_0x417b5c);_0x2f81b6&&_0x2f81b6[_0x2afe11([0x61,0x6c,0x67])]==_0x2afe11([0x45,0x53,0x32,0x35,0x36])||(_0x16de8e=!0x1);}async function _0x5e2894(_0x9355d5,_0x5b4f17,_0x492ee5){const _0x103b9f=window[_0x2afe11([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2afe11([0x66,0x72,0x6f,0x6d])](_0x11e310(_0x492ee5),_0x13695a=>_0x13695a[_0x2afe11([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20cf73=new window[(_0x2afe11([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2afe11([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x9355d5+_0x2afe11([0x2e])+_0x5b4f17),_0x1ba016=window[_0x2afe11([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2afe11([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ba016)return;const _0x47d183=await _0x1ba016[_0x2afe11([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2afe11([0x6a,0x77,0x6b]),_0x324492,{[_0x2afe11([0x6e,0x61,0x6d,0x65])]:_0x2afe11([0x45,0x43,0x44,0x53,0x41]),[_0x2afe11([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2afe11([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2afe11([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ba016[_0x2afe11([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2afe11([0x6e,0x61,0x6d,0x65])]:_0x2afe11([0x45,0x43,0x44,0x53,0x41]),[_0x2afe11([0x68,0x61,0x73,0x68])]:{[_0x2afe11([0x6e,0x61,0x6d,0x65])]:_0x2afe11([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x47d183,_0x103b9f,_0x20cf73)||(_0x16de8e=!0x1);}}function _0x2b6392(_0x52225c){return _0x52225c[_0x2afe11([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2afe11([0x65,0x79]))?JSON[_0x2afe11([0x70,0x61,0x72,0x73,0x65])](_0x11e310(_0x52225c)):null;}function _0x11e310(_0x1b6266){return window[_0x2afe11([0x61,0x74,0x6f,0x62])](_0x1b6266[_0x2afe11([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2afe11([0x2b]))[_0x2afe11([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2afe11([0x2f])));}function _0x165275(_0x4d3968){let _0x1ed9a6=0x1505;function _0x51f67e(_0x44a5b5){for(let _0x135b7c=0x0;_0x135b7c<_0x44a5b5[_0x2afe11([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x135b7c++){const _0x5e29eb=_0x44a5b5[_0x2afe11([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x135b7c);_0x1ed9a6=(_0x1ed9a6<<0x5)+_0x1ed9a6+_0x5e29eb,_0x1ed9a6&=_0x1ed9a6;}}function _0x79996e(_0x331fed){Array[_0x2afe11([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x331fed)?_0x331fed[_0x2afe11([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x79996e):_0x331fed&&typeof _0x331fed==_0x2afe11([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2afe11([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x331fed)[_0x2afe11([0x73,0x6f,0x72,0x74])]()[_0x2afe11([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x524bb4,_0x4d00f2])=>{_0x51f67e(_0x524bb4),_0x79996e(_0x4d00f2);}):_0x51f67e(window[_0x2afe11([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x331fed));}return _0x79996e(_0x4d3968),_0x1ed9a6>>>0x0;}function _0x36f55c(_0x308f1b){return _0x308f1b[_0x2afe11([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2afe11([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2afe11([0x30]));}function _0x5eb96d(_0x2a0620){return _0x2a0620[_0x2afe11([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2afe11([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2afe11([0x6a,0x6f,0x69,0x6e])]('');}function _0x20c3e3(){}function _0x2afe11(_0x1d4d36){return _0x1d4d36['map'](_0x1ba4cd=>String['fromCharCode'](_0x1ba4cd))['join']('');}_0x3b85b6(await _0x3229fe());}(this);}['_initSchema'](){const _0x3a219b=this['editor']['model']['schema'];_0x3a219b['isRegistered']('imageBlock')&&_0x3a219b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3a219b['isRegistered']('imageInline')&&_0x3a219b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5f3ff3=this['editor'];_0x5f3ff3['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5f3ff3['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x22b8d7=>_0x22b8d7['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4224f4=_0x5f3ff3['commands']['get']('replaceImageSource');_0x4224f4&&this['listenTo'](_0x4224f4,'cleanupImage',(_0x31a1ea,[_0x1231af,_0x7745e7])=>{_0x1231af['removeAttribute']('uploadcareImageId',_0x7745e7);});}['_initConfig'](){const _0x14e827=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5365c1=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x130522(_0x5e903c['document'],'uc-config',{..._0x14e827,'pubkey':_0x5365c1,'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']=_0x1a191d=>{if('closeMax'==_0x1a191d)return'#uc-icon-arrow-down';},_0x5e903c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x130522(_0x5e903c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x5e903c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5a4435=this['editor']['commands']['get']('insertImage');_0x5a4435&&this['listenTo'](_0x5a4435,'execute',()=>{const _0xaca656=this['editor']['model']['document']['selection']['getSelectedElement']();_0xaca656&&_0xaca656['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xaca656);});});const _0x179528=this['editor']['commands']['get']('uploadcareImageReplace');_0x179528&&this['listenTo'](_0x179528,'execute',()=>{const _0x5240a5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5240a5&&_0x5240a5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5240a5);});});}}class tt extends _0x786c52{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56b200){super(_0x56b200),_0x56b200['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x34c371['defineComponents'](_0x34c371);}}class ii extends _0xe56ebd{constructor(_0x4a8e3f){super(_0x4a8e3f);const t=_0x4a8e3f['t'],_0x553d03=this['bindTemplate'],_0x404c18=new _0x385e59();_0x404c18['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':[_0x404c18,{'text':_0x553d03['to']('imageUploadProgress',_0x3567d7=>t('Loading\x20image...')+'\x20('+(_0x3567d7||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 _0xe56ebd{constructor(_0x30993a){super(_0x30993a);const t=_0x30993a['t'];this['set']('errorType',null);const _0x5d4631=new _0x417608(_0x30993a);_0x5d4631['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5d4631['withText']=!0x0,_0x5d4631['class']='ck-button-action',_0x5d4631['on']('execute',()=>{this['fire']('retry');}),_0x5d4631['bind']('isVisible')['to'](this,'errorType',_0x241a9b=>'NotFound'!==_0x241a9b);const _0x4bdc2f=new _0x46276b();_0x4bdc2f['content']=_0x41ab1c,_0x4bdc2f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4ed148=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':[_0x4bdc2f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4ed148['to']('errorType',_0xc132e9=>t('NotFound'!==_0xc132e9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5d4631]},{'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 _0xe56ebd{constructor(_0x4c47f5,_0x5cc86a){super(_0x4c47f5);const _0x9cf24e=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5cc86a,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x9cf24e['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x599859,_0x9c9596,_0x4cff96){super(_0x599859),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x599859),this['_errorView']=new ti(_0x599859),this['_editingView']=new ei(_0x599859,_0x4cff96),this['_focusableView']=new _0xe56ebd(_0x599859),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x9c9596),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'],_0x490e08=>{this['_addUploadcareImageEditorListeners'](_0x490e08);});}),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'](_0x1300b2,_0x4543e8){const _0x3637ff='uc-cloud-image-editor',_0x2b2455=_0x1300b2['querySelector'](_0x3637ff);if(_0x2b2455)return _0x4543e8(_0x2b2455);const _0x2d1355=new MutationObserver(_0x47d5f0=>{const _0x194daa=_0x47d5f0['filter'](_0x440a1c=>_0x440a1c['target']===_0x1300b2&&_0x440a1c['addedNodes']['length']>0x0&&_0x440a1c['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3637ff);_0x194daa['length']&&(_0x2d1355['disconnect'](),_0x4543e8(_0x194daa[0x0]['addedNodes'][0x0]));});_0x2d1355['observe'](_0x1300b2,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x29815b){_0x29815b['addEventListener']('apply',_0x291164=>{this['fire']('apply',{'imageSrc':_0x291164['detail']['cdnUrl']});}),_0x29815b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0xbe61bc(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2baf22,_0xe117ab,_0x5b42ea){super(),this['_editor']=_0x2baf22,this['_dialog']=_0xe117ab,this['_imageElement']=_0x5b42ea,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 _0x58bfb7=this['_imageElement'],_0x49e896=_0x58bfb7['getAttribute']('uploadcareImageId'),_0x3ea09a=_0x58bfb7['getAttribute']('src');if(_0x49e896)await this['_loadImageInfo'](_0x49e896,_0x3ea09a);else{if(this['_imageCache']['has'](_0x3ea09a)){const _0x4b090b=this['_imageCache']['get'](_0x3ea09a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4b090b['url'],this['imageDimension']=_0x4b090b['dimension'],this['imageId']=_0x4b090b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x248888}=this['_editor'],t=_0x248888['t'],_0x2dc8a0=new X(_0x248888,this['imageStatus'],this['_attributes']);_0x2dc8a0['bind']('status')['to'](this,'imageStatus'),_0x2dc8a0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2dc8a0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2dc8a0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2dc8a0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x548650,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2dc8a0,'position':_0x2a92d0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2dc8a0['focus']();},'onHide':()=>{_0x2dc8a0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x11b03e=>!S(_0x11b03e,_0x2dc8a0['element'])}});}['_loadImageInfo'](_0x55aaf8,_0x546e1c){return j['getInfo'](_0x55aaf8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xf1861f=>{const {width:_0x4a06aa,height:_0x36d77c}=_0xf1861f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x546e1c,this['imageDimension']={'width':_0x4a06aa,'height':_0x36d77c},this['imageId']=_0x55aaf8;})['catch'](_0x2c6190=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c6190['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4464f5,_0x5b91ca){return this['_getImageAsFile'](_0x4464f5)['then'](_0x152b32=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5b91ca['signal'],'file':_0x152b32,'onProgress':_0x1490b5=>{_0x1490b5&&_0x1490b5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1490b5['value']));}}))['then'](_0x51b10f=>{const {width:_0x4f4b45,height:_0x305f44}=_0x51b10f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51b10f['cdnUrl'],this['imageDimension']={'width':_0x4f4b45,'height':_0x305f44},this['imageId']=_0x51b10f['uuid'],this['imageUploadProgress']=null;const _0x291293=_0x4464f5['getAttribute']('src');this['_imageCache']['set'](_0x291293,{'id':_0x51b10f['uuid'],'url':_0x51b10f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x50a931=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x50a931['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3769a6,_0x43af2f){_0x3769a6['on']('apply',(_0x3d28d9,_0x3b46a8)=>{this['_replaceImage'](_0x43af2f,_0x3b46a8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3769a6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3769a6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x23a3f2,_0x3ec07,_0x119b1c){const _0x55b658=this['_editor'],{width:_0x4a2d4d,height:_0x2cc192}=C(_0x3ec07,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xfe8a7b,imageSources:_0x2fa8c8}=k(_0x3ec07,_0x4a2d4d);_0x55b658['model']['change'](_0x3ea5e2=>{if('$graveyard'===_0x23a3f2['root']['rootName']){_0x55b658['execute']('insertImage',{'imageType':_0x23a3f2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x23a3f2['getAttributes']()),'uploadcareImageId':_0x119b1c,'src':_0xfe8a7b,'sources':_0x2fa8c8,'width':_0x4a2d4d,'height':_0x2cc192}});const _0x895373=_0x23a3f2['getChildren']();_0x23a3f2=_0x55b658['model']['document']['selection']['getSelectedElement']();for(const _0x23526a of _0x895373)_0x3ea5e2['append'](_0x3ea5e2['cloneElement'](_0x23526a),_0x23a3f2);}else _0x3ea5e2['setSelection'](_0x23a3f2,'on'),_0x55b658['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x23a3f2['getAttributes']()),'uploadcareImageId':_0x119b1c,'src':_0xfe8a7b,'sources':_0x2fa8c8,'width':_0x4a2d4d,'height':_0x2cc192},_0x23a3f2);_0x3ea5e2['setSelection'](_0x23a3f2,'on');});}async['_getImageAsFile'](_0x5b24a0){const _0x1527c4=_0x5e903c['window'],_0x4648df=_0x5e903c['document']['location']['href'],_0x2b56db=new _0x1527c4['URL'](_0x5b24a0['getAttribute']('src'),_0x4648df);if('data:'===_0x2b56db['protocol']){const _0x8dc3cd=_0x2b56db['href']['split'](','),_0x54551d=_0x8dc3cd[0x0]['match'](/:(.*?);/)[0x1],_0x103bcd=_0x54551d['split']('/')[0x1],_0x55ca95=_0x1527c4['atob'](_0x8dc3cd[_0x8dc3cd['length']-0x1]);let _0x2dd9cd=_0x55ca95['length'];const _0x154f62=new _0x1527c4['Uint8Array'](_0x2dd9cd);for(;_0x2dd9cd--;)_0x154f62[_0x2dd9cd]=_0x55ca95['charCodeAt'](_0x2dd9cd);return new _0x1527c4['File']([_0x154f62],'image.'+_0x103bcd,{'type':_0x54551d});}const _0x5089b7=_0x2b56db['href']['split']('/'),_0x518f1e=_0x5089b7[_0x5089b7['length']-0x1],_0x5bc278=_0x518f1e['split']('.')[0x1];return _0x1527c4['fetch'](_0x2b56db['href'])['then'](_0x5e5f31=>_0x5e5f31['clone']()['blob']())['then'](_0x325887=>new _0x1527c4['File']([_0x325887],_0x518f1e,{'type':'image/'+_0x5bc278}));}}class O extends _0x4686f5{['imageEditController'];static get['requires'](){return[_0x2540e7];}['_isEditable'];constructor(_0x2b0105){super(_0x2b0105),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1b2979){const _0x5a67da=G(_0x1b2979);return _0x484da5=>!(!_0x484da5||!_0x484da5['is']('element','imageBlock')&&!_0x484da5['is']('element','imageInline'))&&(!!_0x484da5['hasAttribute']('uploadcareImageId')||!!_0x484da5['hasAttribute']('src')&&_0x5a67da(_0x484da5['getAttribute']('src')));}(_0x2b0105['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xea2561=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xea2561);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3c5efc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3c5efc&&(_0x3c5efc['is']('element','imageBlock')||_0x3c5efc['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2540e7),_0x3c5efc),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4686f5{['refresh'](){const _0x29130a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x29130a&&(_0x29130a['is']('element','imageBlock')||_0x29130a['is']('element','imageInline')));}['execute'](_0x191acb){const _0x26f69c=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x526812=>{_0x526812['setAttributes'](_0x191acb,_0x26f69c),_0x526812['removeAttribute']('srcset',_0x26f69c),_0x526812['removeAttribute']('sizes',_0x26f69c);});}}class m extends _0x786c52{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1d1b2e,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3adadf}=this;_0x3adadf['commands']['add']('uploadcareImageEdit',new O(_0x3adadf)),_0x3adadf['commands']['add']('uploadcareImageReplace',new R(_0x3adadf));}}class g extends _0x786c52{['_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 _0x48c01e=this['editor'];_0x48c01e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3e674b=>{const _0x2ed3a6=_0x48c01e['commands']['get']('uploadcareImageEdit'),_0x1f0e52=new _0x417608(_0x3e674b),t=_0x3e674b['t'];return _0x1f0e52['set']({'icon':_0x548650,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1f0e52['bind']('isEnabled')['to'](_0x2ed3a6),_0x1f0e52['bind']('isOn')['to'](_0x2ed3a6,'isActive'),this['listenTo'](_0x1f0e52,'execute',()=>{_0x48c01e['execute']('uploadcareImageEdit'),_0x48c01e['editing']['view']['focus']();}),_0x1f0e52;}),this['_initConfig']();}['_initConfig'](){const _0x4fc26c=_0x130522(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4fc26c),this['listenTo'](this['editor'],'destroy',()=>{_0x4fc26c['remove']();});}}class et extends _0x786c52{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 _0x58583c,Command as _0x1b10a0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x32bad8,IconGooglePhotos as _0x250c66,IconGoogleDrive as _0x1dac75,IconFacebook as _0x43e14e,IconDropbox as _0x3aec10,IconUploadcareLink as _0x1bc5bc,IconUploadcareImageUpload as _0x2ff7a4,IconError as _0x3baf70,IconUploadcareImageEdit as _0x24bf91}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x483a74,MenuBarMenuListItemButtonView as _0x46362b,View as _0x5820df,FocusCycler as _0x8b054b,Dialog as _0x26566a,DialogViewPosition as _0xa923de,SpinnerView as _0x1f1e03,IconView as _0x37bb23,Notification as _0xc60d5f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x279d3e,DomEmitterMixin as _0x531c9b,global as _0xff7e6a,getAncestors as _0xdfaf31,ObservableMixin as _0x461ce9,uid as _0x5c6de3,createElement as _0xecd3bc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x54092b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1fcff1,info as _0x5916f2}from'@uploadcare/upload-client';import*as _0x405b7c from'@uploadcare/file-uploader';var i=function(_0x14256d){return _0x14256d['Local']='local',_0x14256d['URL']='url',_0x14256d['Dropbox']='dropbox',_0x14256d['GDrive']='gdrive',_0x14256d['Facebook']='facebook',_0x14256d['GPhotos']='gphotos',_0x14256d['OneDrive']='onedrive',_0x14256d;}({});function _(_0x4ec7b0,_0x24cfac,_0xb69b94){const t=_0x4ec7b0['t'],_0x4122ea=_0x4ec7b0['t'];switch(_0x24cfac){case i['Local']:return{'text':_0x4122ea('Insert'===_0xb69b94?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4122ea('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xb69b94?_0x4122ea('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4122ea('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xb69b94?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xb69b94?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xb69b94?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xb69b94?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xb69b94?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x24cfac;}}class e extends _0x58583c{['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 _0x272e7c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b6323;for(const _0x4686ac in _0x272e7c){const _0x4a01ae=_0x4686ac,_0x4bfc52=_0x272e7c[_0x4a01ae];if('uploadcareLicenseKeyValid'==_0x4bfc52||'uploadcareLicenseKeyInvalid'==_0x4bfc52||'uploadcareLicenseKeyExpired'==_0x4bfc52||'uploadcareLicenseKeyDomainLimit'==_0x4bfc52||'uploadcareLicenseKeyNotAllowed'==_0x4bfc52||'uploadcareLicenseKeyEvaluationLimit'==_0x4bfc52||'uploadcareLicenseKeyTrialLimit'==_0x4bfc52||'uploadcareLicenseKeyUsageLimit'==_0x4bfc52){delete _0x272e7c[_0x4a01ae],_0x3b6323=_0x4bfc52,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3b6323&&_0x272e7c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3b6323&&_0x272e7c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3b6323&&_0x272e7c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3b6323&&_0x272e7c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3b6323&&_0x272e7c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3b6323&&_0x272e7c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3b6323&&_0x272e7c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x50a32e}=this,_0x9ee7ea=_0x50a32e['commands']['get']('uploadcare');if(!_0x9ee7ea)return;const _0x5872ef=this['_normalizeConfigSourceList'](_0x50a32e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2f4563,_0xbd7963)=>{const _0x346d43=this['_getIntegrationKey'](_0xbd7963['type']);return _0x2f4563[_0x346d43]||(_0x2f4563[_0x346d43]=[]),_0x2f4563[_0x346d43]['push'](_0xbd7963),_0x2f4563;},{});_0x50a32e['plugins']['has']('ImageInsertUI')&&_0x50a32e['commands']['get']('uploadcare')&&Object['entries'](_0x5872ef)['forEach'](([_0x294957,_0x55f64c])=>{_0x50a32e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x294957,'observable':()=>_0x9ee7ea,'buttonViewCreator':()=>this['_createToolbarButton'](_0x55f64c),'formViewCreator':()=>this['_createDropdownButtons'](_0x55f64c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x55f64c),'override':'assetManager'!==_0x294957});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1327bf){const {locale:_0x113bbf}=this['editor'];return _0x1327bf['map'](_0x20a5ab=>{const _0x8501b0=_(_0x113bbf,_0x20a5ab,'Insert');switch(_0x20a5ab){case i['Local']:return{'icon':_0x2ff7a4,'type':i['Local'],..._0x8501b0};case i['URL']:return{'icon':_0x1bc5bc,'type':i['URL'],..._0x8501b0};case i['Dropbox']:return{'icon':_0x3aec10,'type':i['Dropbox'],..._0x8501b0};case i['Facebook']:return{'icon':_0x43e14e,'type':i['Facebook'],..._0x8501b0};case i['GDrive']:return{'icon':_0x1dac75,'type':i['GDrive'],..._0x8501b0};case i['GPhotos']:return{'icon':_0x250c66,'type':i['GPhotos'],..._0x8501b0};case i['OneDrive']:return{'icon':_0x32bad8,'type':i['OneDrive'],..._0x8501b0};}});}['_getIntegrationKey'](_0x2b0381){switch(_0x2b0381){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x44e811,_0x49a469){const _0x4cdcf3=this['editor'],_0x30c479=new _0x44e811(_0x4cdcf3['locale']),_0x14ef4c=_0x4cdcf3['commands']['get']('uploadcare');return _0x30c479['bind']('isEnabled')['to'](_0x14ef4c),_0x30c479['on']('execute',()=>{_0x14ef4c['execute'](_0x49a469);}),_0x30c479;}['_createToolbarButton'](_0x586b44){const {locale:_0x3b1231}=this['editor'],_0x1b2871=this['editor']['plugins']['get']('ImageInsertUI'),_0x17b956=_0x586b44[0x0],_0x8af542=this['_createButton'](_0x483a74,_0x17b956['type']);return _0x8af542['icon']=_0x17b956['icon'],_0x8af542['bind']('label')['to'](_0x1b2871,'isImageSelected',_0x2055bb=>_(_0x3b1231,_0x17b956['type'],_0x2055bb?'Replace':'Insert')['text']),_0x8af542['tooltip']=!0x0,_0x8af542;}['_createDropdownButtons'](_0x13673e){const {locale:_0x8a972e}=this['editor'],_0x161cbb=this['editor']['plugins']['get']('ImageInsertUI');return _0x13673e['map'](_0x362e58=>{const _0x7a1d25=this['_createButton'](_0x483a74,_0x362e58['type']);return _0x7a1d25['withText']=!0x0,_0x7a1d25['icon']=_0x362e58['icon'],_0x7a1d25['bind']('label')['to'](_0x161cbb,'isImageSelected',_0xfd77e8=>_(_0x8a972e,_0x362e58['type'],_0xfd77e8?'Replace':'Insert')['text']),_0x7a1d25;});}['_createMenuBarButtons'](_0x145528){return _0x145528['map'](_0x2d2f4a=>{const _0x180d32=this['_createButton'](_0x46362b,_0x2d2f4a['type']);return _0x180d32['icon']=_0x2d2f4a['icon'],_0x180d32['label']=_0x2d2f4a['shortText'],_0x180d32;});}}class F extends _0x5820df{['focusTracker'];['focusCycler'];constructor(_0x553f7e){super(_0x553f7e),this['focusTracker']=new _0x279d3e(),this['focusCycler']=new _0x8b054b({'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(_0x486c0d,_0x20bbae){super(_0x486c0d),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-'+_0x20bbae}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x4f0853,_0x4f3456){const _0x1ca133=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x29f4e5=>_0x29f4e5<=_0x4f3456)['map'](_0x1e25eb=>_0x4f0853['replace'](/\/$/,'')+'/-/resize/'+_0x1e25eb+'x/\x20'+_0x1e25eb+'w');return{'imageFallbackUrl':_0x4f0853,'imageSources':[{'srcset':_0x1ca133['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4f3456+'px)\x20100vw,\x20'+_0x4f3456+'px','type':'image/webp'}]};}function C(_0x47d2c3,_0x3e370a,_0x543328){const _0x4bc8ca=_0x47d2c3['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4bc8ca?parseInt(_0x4bc8ca[0x1],0xa):_0x3e370a,'height':_0x4bc8ca?parseInt(_0x4bc8ca[0x2],0xa):_0x543328};}function p(_0x3b6665,_0x4988ad){const _0x2542d7=new(_0x531c9b())(),_0x54c302=_0x3b6665['plugins']['get']('ImageUtils'),_0x49adc1=_0x3b6665['editing']['mapper']['toViewElement'](_0x4988ad),_0x1c7f90=_0x54c302['findViewImgElement'](_0x49adc1),_0x494911=_0x3b6665['editing']['view']['domConverter']['viewToDom'](_0x1c7f90),_0x349837=_0x4988ad['getAttribute']('width'),_0x326ac9=_0x4988ad['getAttribute']('height'),_0x5cdbfb='image-processing';_0x3b6665['editing']['view']['change'](_0x38ee94=>{_0x38ee94['addClass'](_0x5cdbfb,_0x49adc1),_0x38ee94['setStyle']('aspect-ratio',_0x349837+'/'+_0x326ac9,_0x1c7f90);}),_0x2542d7['listenTo'](_0x494911,'load',()=>{_0x2542d7['stopListening'](_0x494911,'load'),_0x3b6665['editing']['view']['change'](_0x17e2fc=>{_0x17e2fc['removeClass'](_0x5cdbfb,_0x49adc1),_0x17e2fc['removeStyle']('aspect-ratio',_0x1c7f90);});});}function G(_0x4abe7a){if(Array['isArray'](_0x4abe7a)){const _0x17a2b3=_0x4abe7a['map'](G);return _0x446354=>_0x17a2b3['some'](_0x2102a8=>_0x2102a8(_0x446354));}if('origin'==_0x4abe7a){const _0x4dd949=_0xff7e6a['window']['location']['origin'];return _0x1b2ff6=>new URL(_0x1b2ff6,_0xff7e6a['document']['baseURI'])['origin']==_0x4dd949;}return'function'==typeof _0x4abe7a?_0x4abe7a:_0x4abe7a instanceof RegExp?_0x1daea3=>!(!_0x1daea3['match'](_0x4abe7a)&&!_0x1daea3['replace'](/^https?:\/\//,'')['match'](_0x4abe7a)):()=>!0x1;}function S(_0x28660c,_0x45971c){return _0xdfaf31(_0x28660c['target'])['includes'](_0x45971c);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x461ce9(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x597102,_0x46953e,_0x18f193){super(),this['_editor']=_0x597102,this['_editing']=_0x46953e,this['_dialog']=_0x597102['plugins']['get'](_0x26566a),this['_api']=_0x46953e['ctxElement']['getAPI'](),this['_type']=_0x18f193,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:_0x340349,model:_0x2d7aa1}=this['_editor'],_0x402fd5=_0x2d7aa1['document']['selection']['getSelectedElement'](),_0x29ade3=_0x402fd5&&(_0x402fd5['is']('element','imageBlock')||_0x402fd5['is']('element','imageInline'));this['_formView']=new x(_0x340349,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2ff7a4,'title':_(_0x340349,this['_type'],_0x29ade3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xa923de['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3ff98e=>!S(_0x3ff98e,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x479d63}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2c6995=>{const _0x5934e8=_0x479d63['length'];for(const _0x3962af of _0x479d63){const _0x295832=_0x3962af===_0x479d63[_0x5934e8-0x1],{cdnUrl:_0x34d111,fileInfo:_0x23e870}=_0x3962af;if(!_0x34d111||!_0x23e870)continue;const {width:_0x18922b,height:_0x2fa80f}=_0x23e870['imageInfo'],_0x2145e6=C(_0x34d111,_0x18922b,_0x2fa80f),_0x46db36=k(_0x34d111,_0x2145e6['width']),_0x127f14={'id':_0x23e870['uuid'],'type':'image','attributes':{'imageDimension':_0x2145e6,..._0x46db36}};this['_insertAsset'](_0x127f14,_0x295832,_0x2c6995);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x6b2838=>{'idle'===_0x6b2838['detail']['status']&&!_0x6b2838['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5a1913,_0x3304f7,_0xcb5f7f){const _0xcc6c15=this['_editor']['model']['document']['selection'],_0x164a4a=_0xcc6c15['getSelectedElement'](),_0x2538bc=!(!_0x164a4a||!_0x164a4a['is']('element','imageInline'));_0xcb5f7f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5a1913,_0x2538bc),_0x3304f7||_0xcb5f7f['setSelection'](_0xcc6c15['getLastPosition']());}['_insertImage'](_0x3eea4c,_0x5d0e11){const _0x35b06a=this['_editor'],{imageDimension:_0x2bfe3c,imageFallbackUrl:_0x53bdcb,imageSources:_0x558599}=_0x3eea4c['attributes'];_0x35b06a['execute']('insertImage',{'imageType':_0x5d0e11?'imageInline':null,'source':{'uploadcareImageId':_0x3eea4c['id'],'src':_0x53bdcb,'sources':_0x558599,..._0x2bfe3c}});}}class w extends _0x1b10a0{['_editing'];['_controller']=null;static get['requires'](){return[_0x26566a,o];}constructor(_0x469d71){super(_0x469d71),this['_editing']=_0x469d71['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3b6e71){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3b6e71);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x46fc84,publicKey:_0x23482a,signal:_0x47c361,onProgress:_0x2d32a4}){return _0x1fcff1(_0x46fc84,{'publicKey':_0x23482a,'store':'auto','signal':_0x47c361,'onProgress':_0x2d32a4});}static['getInfo'](_0x5e953c,_0x3739a3){return _0x5916f2(_0x5e953c,_0x3739a3);}}class f extends _0x58583c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x54092b,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1eae98=this['editor'];if(!!!_0x1eae98['config']['get']('uploadcare'))return;_0x1eae98['plugins']['get'](_0x54092b)['createUploadAdapter']=_0xa00da6=>new A(_0xa00da6,_0x1eae98),_0x1eae98['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x57a51e,{imageElement:_0x46ea10,data:_0x63de6a})=>{_0x1eae98['model']['change'](_0x10e0f7=>{_0x10e0f7['setAttribute']('uploadcareImageId',_0x63de6a['uploadcareImageId'],_0x46ea10);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x1a40d8,_0x3c317b){this['loader']=_0x1a40d8,this['editor']=_0x3c317b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x317f9b=this['editor']['config']['get']('uploadcare.pubkey'),_0x54acaf=await this['loader']['file'];return j['upload']({'file':_0x54acaf,'publicKey':_0x317f9b,'signal':this['controller']['signal'],'onProgress':_0x796d05=>{_0x796d05&&_0x796d05['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x796d05['value']);}})['then'](async _0x117899=>{const {imageFallbackUrl:_0x20dd54,imageSources:_0x20f7f7}=k(_0x117899['cdnUrl'],_0x117899['imageInfo']['width']);return{'uploadcareImageId':_0x117899['uuid'],'default':_0x20dd54,'sources':_0x20f7f7};})['catch'](()=>{const _0x1ec146=t('Cannot\x20upload\x20file:')+('\x20'+_0x54acaf['name']+'.');return Promise['reject'](_0x1ec146);});}['abort'](){this['controller']['abort']();}}class o extends _0x58583c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x26566a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xc1862e){super(_0xc1862e),this['ucContextId']=_0x5c6de3();}['init'](){const _0x4e7041=this['editor'];_0x4e7041['commands']['add']('uploadcare',new w(_0x4e7041));}['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 _0x16e312=_0xff7e6a['document']['querySelector']('input[uploadcare-file-input]');_0x16e312&&_0x16e312['remove']();}),async function(_0x11c751){const _0x2f5f87=_0x1c19f6([0x32,0x6e,0x6b,0x68,0x76,0x65,0x35,0x53,0x79,0x51,0x36,0x5a,0x52,0x69,0x73,0x42,0x57,0x4c,0x61,0x50,0x4a,0x4f,0x49,0x59,0x33,0x6c,0x30,0x67,0x6d,0x54,0x63,0x39,0x47,0x7a,0x70,0x64,0x38,0x72,0x34,0x4b,0x77,0x31,0x46,0x58,0x48,0x43,0x66,0x37,0x6f,0x45,0x4d,0x56,0x78,0x74,0x62,0x44,0x71,0x75,0x4e,0x6a,0x41,0x55]),_0x2e1e87=0x1900003,_0x2715b7=0x1976ccb^_0x2e1e87,_0x5b0dd0=window[_0x1c19f6([0x44,0x61,0x74,0x65])][_0x1c19f6([0x6e,0x6f,0x77])](),_0x143d5e=_0x11c751[_0x1c19f6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x242667=new window[(_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x270577=>{_0x143d5e[_0x1c19f6([0x6f,0x6e,0x63,0x65])](_0x1c19f6([0x72,0x65,0x61,0x64,0x79]),_0x270577);}),_0x5ea513={[_0x1c19f6([0x6b,0x74,0x79])]:_0x1c19f6([0x45,0x43]),[_0x1c19f6([0x75,0x73,0x65])]:_0x1c19f6([0x73,0x69,0x67]),[_0x1c19f6([0x63,0x72,0x76])]:_0x1c19f6([0x50,0x2d,0x32,0x35,0x36]),[_0x1c19f6([0x78])]:_0x1c19f6([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]),[_0x1c19f6([0x79])]:_0x1c19f6([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]),[_0x1c19f6([0x61,0x6c,0x67])]:_0x1c19f6([0x45,0x53,0x32,0x35,0x36])},_0x3552b5=_0x143d5e[_0x1c19f6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c19f6([0x67,0x65,0x74])](_0x1c19f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x444f7d(){let _0x227d46,_0x4579f9=null,_0x1c4db3=null;try{if(_0x3552b5==_0x1c19f6([0x47,0x50,0x4c]))return _0x1c19f6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x227d46=_0x426488(),!_0x227d46)return _0x1c19f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x227d46[_0x1c19f6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c4db3=_0x5ce682(_0x227d46[_0x1c19f6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x227d46[_0x1c19f6([0x6a,0x74,0x69])])),await _0x470d9e()?_0x30f363()?_0x47a8e0()?_0x1c19f6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2094e9()?(_0x227d46[_0x1c19f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c19f6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4579f9=_0x1e066f(_0x1c19f6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x227d46[_0x1c19f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c19f6([0x74,0x72,0x69,0x61,0x6c])&&(_0x4579f9=_0x1e066f(_0x1c19f6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ae59b()):_0x1c19f6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c19f6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c19f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1c19f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47a8e0(){const _0x2bb192=[_0x1c19f6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c19f6([0x74,0x72,0x69,0x61,0x6c])][_0x1c19f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x227d46[_0x1c19f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5b0dd0/0x3e8:0xe10*_0x2715b7;return _0x227d46[_0x1c19f6([0x65,0x78,0x70])]<_0x2bb192;}function _0x30f363(){const _0x20d83e=_0x227d46[_0x1c19f6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x20d83e&&(!!_0x20d83e[_0x1c19f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c19f6([0x2a]))||!!_0x20d83e[_0x1c19f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c19f6([0x55,0x50,0x4c,0x43])));}function _0x2094e9(){const _0x38fa2a=_0x227d46[_0x1c19f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x38fa2a||0x0==_0x38fa2a[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x98184c}=new URL(window[_0x1c19f6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x38fa2a[_0x1c19f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x98184c))return!0x0;const _0x6d10d4=_0x98184c[_0x1c19f6([0x73,0x70,0x6c,0x69,0x74])](_0x1c19f6([0x2e]));return _0x38fa2a[_0x1c19f6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4bb877=>_0x4bb877[_0x1c19f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c19f6([0x2a])))[_0x1c19f6([0x6d,0x61,0x70])](_0x2361ea=>_0x2361ea[_0x1c19f6([0x73,0x70,0x6c,0x69,0x74])](_0x1c19f6([0x2e])))[_0x1c19f6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3dd575=>_0x3dd575[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x6d10d4[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c19f6([0x6d,0x61,0x70])](_0x1f1442=>Array(_0x6d10d4[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1f1442[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c19f6([0x66,0x69,0x6c,0x6c])](_0x1f1442[0x0]===_0x1c19f6([0x2a])?_0x1c19f6([0x2a]):'')[_0x1c19f6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1f1442))[_0x1c19f6([0x73,0x6f,0x6d,0x65])](_0x320e16=>_0x6d10d4[_0x1c19f6([0x65,0x76,0x65,0x72,0x79])]((_0x328bdc,_0x39a449)=>_0x320e16[_0x39a449]===_0x328bdc||_0x320e16[_0x39a449]===_0x1c19f6([0x2a])));}function _0x5ae59b(){return _0x4579f9&&_0x1c4db3?new window[(_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5420ea,_0x51da7b)=>{_0x4579f9[_0x1c19f6([0x74,0x68,0x65,0x6e])](_0x5420ea,_0x51da7b),_0x1c4db3[_0x1c19f6([0x74,0x68,0x65,0x6e])](_0x451a10=>{_0x451a10!=_0x1c19f6([0x56,0x61,0x6c,0x69,0x64])&&_0x5420ea(_0x451a10);},_0x51da7b);}):_0x4579f9||_0x1c4db3||_0x1c19f6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ce682(_0x249a4d,_0x410a79){return new window[(_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xead873=>{if(_0x3042b0())return _0xead873(_0x1c19f6([0x56,0x61,0x6c,0x69,0x64]));_0x1b78e8(),_0x143d5e[_0x1c19f6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c19f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ae552=!0x1;const _0x72bfa9=_0x5c6de3();function _0xe72cf2(_0x588dae){return!!_0x588dae&&(typeof _0x588dae===_0x1c19f6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x588dae===_0x1c19f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x588dae[_0x1c19f6([0x74,0x68,0x65,0x6e])]===_0x1c19f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x588dae[_0x1c19f6([0x63,0x61,0x74,0x63,0x68])]===_0x1c19f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5baff8(_0x249d97){_0x208651(_0x249d97)[_0x1c19f6([0x74,0x68,0x65,0x6e])](_0x4efc97=>{if(!_0x4efc97||_0x4efc97[_0x1c19f6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c19f6([0x6f,0x6b]))return _0x1c19f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5ad6fb(_0x36e100(_0x72bfa9+_0x410a79))!=_0x4efc97[_0x1c19f6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c19f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c19f6([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c19f6([0x74,0x68,0x65,0x6e])](_0x996d00=>(_0x2786b7(),_0x996d00),()=>{const _0x375434=_0x1ff18e();return null==_0x375434?(_0x2786b7(),_0x1c19f6([0x56,0x61,0x6c,0x69,0x64])):_0x1c19f6(_0x5b0dd0-_0x375434>(0x259c8403^_0x2e1e87)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c19f6([0x74,0x68,0x65,0x6e])](_0xead873)[_0x1c19f6([0x63,0x61,0x74,0x63,0x68])](()=>{_0xead873(_0x1c19f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x866ff5=0x1a6ee83^_0x2e1e87;function _0x2786b7(){const _0x3b8376=_0x1c19f6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ad6fb(_0x36e100(_0x249a4d)),_0x2a3eaf=_0x10e1d8(_0x5ad6fb(window[_0x1c19f6([0x4d,0x61,0x74,0x68])][_0x1c19f6([0x63,0x65,0x69,0x6c])](_0x5b0dd0/_0x866ff5)));window[_0x1c19f6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c19f6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b8376,_0x2a3eaf);}function _0x1ff18e(){const _0x3408fe=_0x1c19f6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ad6fb(_0x36e100(_0x249a4d)),_0x202ebc=window[_0x1c19f6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c19f6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3408fe);return _0x202ebc?window[_0x1c19f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10e1d8(_0x202ebc),0x10)*_0x866ff5:null;}function _0x208651(_0x2fbc1d){return new window[(_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ee6fd,_0x31a6ab)=>{_0x2fbc1d[_0x1c19f6([0x74,0x68,0x65,0x6e])](_0x2ee6fd,_0x31a6ab),window[_0x1c19f6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x31a6ab,0x191d4c3^_0x2e1e87);});}}_0x143d5e[_0x1c19f6([0x6f,0x6e])](_0x1c19f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2dfb3e,_0x36767e)=>{if(_0x36767e[0x0]!=_0x249a4d)return _0xead873(_0x1c19f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36767e[0x1]={..._0x36767e[0x1],[_0x1c19f6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x72bfa9};},{[_0x1c19f6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c19f6([0x68,0x69,0x67,0x68])}),_0x143d5e[_0x1c19f6([0x6f,0x6e])](_0x1c19f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x28d747=>{_0xe72cf2(_0x28d747[_0x1c19f6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ae552=!0x0,_0x5baff8(_0x28d747[_0x1c19f6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c19f6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c19f6([0x6c,0x6f,0x77])}),_0x242667[_0x1c19f6([0x74,0x68,0x65,0x6e])](()=>{_0x2ae552||_0xead873(_0x1c19f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3042b0(){return _0x143d5e[_0x1c19f6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c19f6([0x76,0x69,0x65,0x77])][_0x1c19f6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c19f6([0x61,0x75,0x74,0x6f]);}function _0x1b78e8(){_0x143d5e[_0x1c19f6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c19f6([0x76,0x69,0x65,0x77])][_0x1c19f6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c19f6([0x61,0x75,0x74,0x6f]);}}function _0x1e066f(_0xf9c347){const _0x5ec31d=[new window[(_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x598189=>setTimeout(_0x598189,0x1993ecf^_0x2e1e87)),_0x242667[_0x1c19f6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18f7ff=>{let _0x441e35=0x0;_0x143d5e[_0x1c19f6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c19f6([0x6f,0x6e])](_0x1c19f6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xbe73dc,_0x5d7107)=>{_0x5d7107[0x0][_0x1c19f6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x441e35++,_0x441e35==(0x19001fb^_0x2e1e87)&&(_0x18f7ff(),_0xbe73dc[_0x1c19f6([0x6f,0x66,0x66])]());});}))];return window[_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c19f6([0x72,0x61,0x63,0x65])](_0x5ec31d)[_0x1c19f6([0x74,0x68,0x65,0x6e])](()=>_0xf9c347);}async function _0x3799c0(){await _0x242667,_0x143d5e[_0x1c19f6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c19f6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42ea27,_0x143d5e[_0x1c19f6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c19f6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42ea27,_0x143d5e[_0x1c19f6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c19f6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x52ac4f(_0x242446){const _0x3719b1=_0x46bd06();_0x143d5e[_0x3719b1]=_0x1c19f6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x242446,_0x242446!=_0x1c19f6([0x56,0x61,0x6c,0x69,0x64])&&_0x3799c0();}function _0x46bd06(){const _0x9576b2=window[_0x1c19f6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c19f6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c19f6([0x6e,0x6f,0x77])]())[_0x1c19f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c19f6([0x2e]),'');let _0x3ce3ec=_0x1c19f6([0x6e]);for(let _0x39972d=0x0;_0x39972d<_0x9576b2[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39972d+=0x2){let _0x21b694=window[_0x1c19f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9576b2[_0x1c19f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39972d,_0x39972d+0x2));_0x21b694>=_0x2f5f87[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x21b694-=_0x2f5f87[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ce3ec+=_0x2f5f87[_0x21b694];}return _0x3ce3ec;}function _0x426488(){const _0x105e29=_0x3552b5[_0x1c19f6([0x73,0x70,0x6c,0x69,0x74])](_0x1c19f6([0x2e]));if(0x3!=_0x105e29[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d49ee(_0x105e29[0x1]);function _0x2d49ee(_0x546943){const _0x563d2a=_0x52c66f(_0x546943);return _0x563d2a&&_0x23de07()?_0x563d2a:null;function _0x23de07(){const _0x3f4390=_0x563d2a[_0x1c19f6([0x6a,0x74,0x69])],_0x3b2521=window[_0x1c19f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f4390[_0x1c19f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f4390[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x585e22={..._0x563d2a,[_0x1c19f6([0x6a,0x74,0x69])]:_0x3f4390[_0x1c19f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f4390[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x585e22[_0x1c19f6([0x76,0x63])],_0x36e100(_0x585e22)==_0x3b2521;}}}async function _0x470d9e(){let _0x5ea198=!0x0;try{const _0xb636dd=_0x3552b5[_0x1c19f6([0x73,0x70,0x6c,0x69,0x74])](_0x1c19f6([0x2e])),[_0x2029c6,_0x54d6d8,_0x38b686]=_0xb636dd;return _0x39b89e(_0x2029c6),await _0x482caf(_0x2029c6,_0x54d6d8,_0x38b686),_0x5ea198;}catch{return!0x1;}function _0x39b89e(_0x573edf){const _0x1433af=_0x52c66f(_0x573edf);_0x1433af&&_0x1433af[_0x1c19f6([0x61,0x6c,0x67])]==_0x1c19f6([0x45,0x53,0x32,0x35,0x36])||(_0x5ea198=!0x1);}async function _0x482caf(_0x349824,_0x1103a4,_0x4bda41){const _0x3dbaa3=window[_0x1c19f6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c19f6([0x66,0x72,0x6f,0x6d])](_0xe7b3bd(_0x4bda41),_0x5ebfd5=>_0x5ebfd5[_0x1c19f6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe8388b=new window[(_0x1c19f6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c19f6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x349824+_0x1c19f6([0x2e])+_0x1103a4),_0x4e1db7=window[_0x1c19f6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c19f6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e1db7)return;const _0x559f43=await _0x4e1db7[_0x1c19f6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c19f6([0x6a,0x77,0x6b]),_0x5ea513,{[_0x1c19f6([0x6e,0x61,0x6d,0x65])]:_0x1c19f6([0x45,0x43,0x44,0x53,0x41]),[_0x1c19f6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c19f6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c19f6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e1db7[_0x1c19f6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c19f6([0x6e,0x61,0x6d,0x65])]:_0x1c19f6([0x45,0x43,0x44,0x53,0x41]),[_0x1c19f6([0x68,0x61,0x73,0x68])]:{[_0x1c19f6([0x6e,0x61,0x6d,0x65])]:_0x1c19f6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x559f43,_0x3dbaa3,_0xe8388b)||(_0x5ea198=!0x1);}}function _0x52c66f(_0x5d1691){return _0x5d1691[_0x1c19f6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c19f6([0x65,0x79]))?JSON[_0x1c19f6([0x70,0x61,0x72,0x73,0x65])](_0xe7b3bd(_0x5d1691)):null;}function _0xe7b3bd(_0x5e4492){return window[_0x1c19f6([0x61,0x74,0x6f,0x62])](_0x5e4492[_0x1c19f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c19f6([0x2b]))[_0x1c19f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c19f6([0x2f])));}function _0x36e100(_0xd1b484){let _0x15f4aa=0x1505;function _0xe926a9(_0x58cd56){for(let _0x2763f0=0x0;_0x2763f0<_0x58cd56[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2763f0++){const _0x50ed13=_0x58cd56[_0x1c19f6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2763f0);_0x15f4aa=(_0x15f4aa<<0x5)+_0x15f4aa+_0x50ed13,_0x15f4aa&=_0x15f4aa;}}function _0x17f835(_0x2fb5b3){Array[_0x1c19f6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2fb5b3)?_0x2fb5b3[_0x1c19f6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17f835):_0x2fb5b3&&typeof _0x2fb5b3==_0x1c19f6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c19f6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2fb5b3)[_0x1c19f6([0x73,0x6f,0x72,0x74])]()[_0x1c19f6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3abb04,_0x2dbc22])=>{_0xe926a9(_0x3abb04),_0x17f835(_0x2dbc22);}):_0xe926a9(window[_0x1c19f6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2fb5b3));}return _0x17f835(_0xd1b484),_0x15f4aa>>>0x0;}function _0x5ad6fb(_0x22d19f){return _0x22d19f[_0x1c19f6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c19f6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c19f6([0x30]));}function _0x10e1d8(_0x1739d2){return _0x1739d2[_0x1c19f6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c19f6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c19f6([0x6a,0x6f,0x69,0x6e])]('');}function _0x42ea27(){}function _0x1c19f6(_0x1a3aef){return _0x1a3aef['map'](_0x142827=>String['fromCharCode'](_0x142827))['join']('');}_0x52ac4f(await _0x444f7d());}(this);}['_initSchema'](){const _0x1685a9=this['editor']['model']['schema'];_0x1685a9['isRegistered']('imageBlock')&&_0x1685a9['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1685a9['isRegistered']('imageInline')&&_0x1685a9['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3034af=this['editor'];_0x3034af['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3034af['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2ae715=>_0x2ae715['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5114f3=_0x3034af['commands']['get']('replaceImageSource');_0x5114f3&&this['listenTo'](_0x5114f3,'cleanupImage',(_0x3ebc93,[_0x1495c6,_0x5be9db])=>{_0x1495c6['removeAttribute']('uploadcareImageId',_0x5be9db);});}['_initConfig'](){const _0xa23d98=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1f8dd8=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xecd3bc(_0xff7e6a['document'],'uc-config',{..._0xa23d98,'pubkey':_0x1f8dd8,'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']=_0x247757=>{if('closeMax'==_0x247757)return'#uc-icon-arrow-down';},_0xff7e6a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xecd3bc(_0xff7e6a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xff7e6a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x14b31e=this['editor']['commands']['get']('insertImage');_0x14b31e&&this['listenTo'](_0x14b31e,'execute',()=>{const _0x210d7d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x210d7d&&_0x210d7d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x210d7d);});});const _0x26150d=this['editor']['commands']['get']('uploadcareImageReplace');_0x26150d&&this['listenTo'](_0x26150d,'execute',()=>{const _0x23dbe4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x23dbe4&&_0x23dbe4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x23dbe4);});});}}class tt extends _0x58583c{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x522ad2){super(_0x522ad2),_0x522ad2['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x405b7c['defineComponents'](_0x405b7c);}}class ii extends _0x5820df{constructor(_0x2cf2d1){super(_0x2cf2d1);const t=_0x2cf2d1['t'],_0x4cf10c=this['bindTemplate'],_0x1f07b8=new _0x1f1e03();_0x1f07b8['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':[_0x1f07b8,{'text':_0x4cf10c['to']('imageUploadProgress',_0x5bd87f=>t('Loading\x20image...')+'\x20('+(_0x5bd87f||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 _0x5820df{constructor(_0x2d1884){super(_0x2d1884);const t=_0x2d1884['t'];this['set']('errorType',null);const _0x4eb104=new _0x483a74(_0x2d1884);_0x4eb104['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4eb104['withText']=!0x0,_0x4eb104['class']='ck-button-action',_0x4eb104['on']('execute',()=>{this['fire']('retry');}),_0x4eb104['bind']('isVisible')['to'](this,'errorType',_0x172dc1=>'NotFound'!==_0x172dc1);const _0x1a5e1a=new _0x37bb23();_0x1a5e1a['content']=_0x3baf70,_0x1a5e1a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x18fce6=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':[_0x1a5e1a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x18fce6['to']('errorType',_0x597f96=>t('NotFound'!==_0x597f96?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4eb104]},{'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 _0x5820df{constructor(_0x49bb90,_0x5e1de4){super(_0x49bb90);const _0x4c5fb9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5e1de4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4c5fb9['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x48856c,_0x2c4da9,_0x4da13e){super(_0x48856c),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x48856c),this['_errorView']=new ti(_0x48856c),this['_editingView']=new ei(_0x48856c,_0x4da13e),this['_focusableView']=new _0x5820df(_0x48856c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2c4da9),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'],_0xc8445a=>{this['_addUploadcareImageEditorListeners'](_0xc8445a);});}),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'](_0x456279,_0x5f46fb){const _0x47d0aa='uc-cloud-image-editor',_0x308638=_0x456279['querySelector'](_0x47d0aa);if(_0x308638)return _0x5f46fb(_0x308638);const _0x23ea13=new MutationObserver(_0x45f4a3=>{const _0x50162a=_0x45f4a3['filter'](_0x3d3ed9=>_0x3d3ed9['target']===_0x456279&&_0x3d3ed9['addedNodes']['length']>0x0&&_0x3d3ed9['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x47d0aa);_0x50162a['length']&&(_0x23ea13['disconnect'](),_0x5f46fb(_0x50162a[0x0]['addedNodes'][0x0]));});_0x23ea13['observe'](_0x456279,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2aa1d9){_0x2aa1d9['addEventListener']('apply',_0x212e6b=>{this['fire']('apply',{'imageSrc':_0x212e6b['detail']['cdnUrl']});}),_0x2aa1d9['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x461ce9(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3f279a,_0x8f521,_0x4a3043){super(),this['_editor']=_0x3f279a,this['_dialog']=_0x8f521,this['_imageElement']=_0x4a3043,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 _0x24d53f=this['_imageElement'],_0x1b878e=_0x24d53f['getAttribute']('uploadcareImageId'),_0x418985=_0x24d53f['getAttribute']('src');if(_0x1b878e)await this['_loadImageInfo'](_0x1b878e,_0x418985);else{if(this['_imageCache']['has'](_0x418985)){const _0x4b9ef9=this['_imageCache']['get'](_0x418985);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4b9ef9['url'],this['imageDimension']=_0x4b9ef9['dimension'],this['imageId']=_0x4b9ef9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x33a982}=this['_editor'],t=_0x33a982['t'],_0xe105bf=new X(_0x33a982,this['imageStatus'],this['_attributes']);_0xe105bf['bind']('status')['to'](this,'imageStatus'),_0xe105bf['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xe105bf['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xe105bf['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xe105bf,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x24bf91,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xe105bf,'position':_0xa923de['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xe105bf['focus']();},'onHide':()=>{_0xe105bf['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4b451e=>!S(_0x4b451e,_0xe105bf['element'])}});}['_loadImageInfo'](_0x2160c6,_0x2eacb3){return j['getInfo'](_0x2160c6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5aa0e9=>{const {width:_0x16bfc8,height:_0x34bd12}=_0x5aa0e9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2eacb3,this['imageDimension']={'width':_0x16bfc8,'height':_0x34bd12},this['imageId']=_0x2160c6;})['catch'](_0xda3956=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xda3956['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x468ecd,_0x48b63c){return this['_getImageAsFile'](_0x468ecd)['then'](_0x177c49=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x48b63c['signal'],'file':_0x177c49,'onProgress':_0xc59f4a=>{_0xc59f4a&&_0xc59f4a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xc59f4a['value']));}}))['then'](_0x4e907f=>{const {width:_0x2fb1b1,height:_0x1426c1}=_0x4e907f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e907f['cdnUrl'],this['imageDimension']={'width':_0x2fb1b1,'height':_0x1426c1},this['imageId']=_0x4e907f['uuid'],this['imageUploadProgress']=null;const _0x4cec81=_0x468ecd['getAttribute']('src');this['_imageCache']['set'](_0x4cec81,{'id':_0x4e907f['uuid'],'url':_0x4e907f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2ad84e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2ad84e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xc7c658,_0x54048f){_0xc7c658['on']('apply',(_0xf78f36,_0x61136e)=>{this['_replaceImage'](_0x54048f,_0x61136e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xc7c658['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xc7c658['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1d4048,_0x13c367,_0x427eeb){const _0x9999d0=this['_editor'],{width:_0x3d7b78,height:_0x33e560}=C(_0x13c367,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xf7d5e2,imageSources:_0x4d91e3}=k(_0x13c367,_0x3d7b78);_0x9999d0['model']['change'](_0x47bb88=>{if('$graveyard'===_0x1d4048['root']['rootName']){_0x9999d0['execute']('insertImage',{'imageType':_0x1d4048['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1d4048['getAttributes']()),'uploadcareImageId':_0x427eeb,'src':_0xf7d5e2,'sources':_0x4d91e3,'width':_0x3d7b78,'height':_0x33e560}});const _0x179e3b=_0x1d4048['getChildren']();_0x1d4048=_0x9999d0['model']['document']['selection']['getSelectedElement']();for(const _0x5f1b89 of _0x179e3b)_0x47bb88['append'](_0x47bb88['cloneElement'](_0x5f1b89),_0x1d4048);}else _0x47bb88['setSelection'](_0x1d4048,'on'),_0x9999d0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1d4048['getAttributes']()),'uploadcareImageId':_0x427eeb,'src':_0xf7d5e2,'sources':_0x4d91e3,'width':_0x3d7b78,'height':_0x33e560},_0x1d4048);_0x47bb88['setSelection'](_0x1d4048,'on');});}async['_getImageAsFile'](_0x4af092){const _0x4afc38=_0xff7e6a['window'],_0x5e6f48=_0xff7e6a['document']['location']['href'],_0x58e223=new _0x4afc38['URL'](_0x4af092['getAttribute']('src'),_0x5e6f48);if('data:'===_0x58e223['protocol']){const _0x3e524f=_0x58e223['href']['split'](','),_0x3ab386=_0x3e524f[0x0]['match'](/:(.*?);/)[0x1],_0x47933a=_0x3ab386['split']('/')[0x1],_0x294c82=_0x4afc38['atob'](_0x3e524f[_0x3e524f['length']-0x1]);let _0x6e7072=_0x294c82['length'];const _0x507d47=new _0x4afc38['Uint8Array'](_0x6e7072);for(;_0x6e7072--;)_0x507d47[_0x6e7072]=_0x294c82['charCodeAt'](_0x6e7072);return new _0x4afc38['File']([_0x507d47],'image.'+_0x47933a,{'type':_0x3ab386});}const _0x2299bc=_0x58e223['href']['split']('/'),_0x4894be=_0x2299bc[_0x2299bc['length']-0x1],_0x320a29=_0x4894be['split']('.')[0x1];return _0x4afc38['fetch'](_0x58e223['href'])['then'](_0x651ec3=>_0x651ec3['clone']()['blob']())['then'](_0x27257c=>new _0x4afc38['File']([_0x27257c],_0x4894be,{'type':'image/'+_0x320a29}));}}class O extends _0x1b10a0{['imageEditController'];static get['requires'](){return[_0x26566a];}['_isEditable'];constructor(_0x21a5bc){super(_0x21a5bc),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x413b91){const _0x210e27=G(_0x413b91);return _0x5231b3=>!(!_0x5231b3||!_0x5231b3['is']('element','imageBlock')&&!_0x5231b3['is']('element','imageInline'))&&(!!_0x5231b3['hasAttribute']('uploadcareImageId')||!!_0x5231b3['hasAttribute']('src')&&_0x210e27(_0x5231b3['getAttribute']('src')));}(_0x21a5bc['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1fb2b0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1fb2b0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x23bde0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x23bde0&&(_0x23bde0['is']('element','imageBlock')||_0x23bde0['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x26566a),_0x23bde0),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x1b10a0{['refresh'](){const _0x3e37e9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3e37e9&&(_0x3e37e9['is']('element','imageBlock')||_0x3e37e9['is']('element','imageInline')));}['execute'](_0x46c215){const _0x2bd197=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x148703=>{_0x148703['setAttributes'](_0x46c215,_0x2bd197),_0x148703['removeAttribute']('srcset',_0x2bd197),_0x148703['removeAttribute']('sizes',_0x2bd197);});}}class m extends _0x58583c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xc60d5f,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3fcf11}=this;_0x3fcf11['commands']['add']('uploadcareImageEdit',new O(_0x3fcf11)),_0x3fcf11['commands']['add']('uploadcareImageReplace',new R(_0x3fcf11));}}class g extends _0x58583c{['_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 _0x1fbe56=this['editor'];_0x1fbe56['ui']['componentFactory']['add']('uploadcareImageEdit',_0x8b1091=>{const _0x545feb=_0x1fbe56['commands']['get']('uploadcareImageEdit'),_0x5b8198=new _0x483a74(_0x8b1091),t=_0x8b1091['t'];return _0x5b8198['set']({'icon':_0x24bf91,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5b8198['bind']('isEnabled')['to'](_0x545feb),_0x5b8198['bind']('isOn')['to'](_0x545feb,'isActive'),this['listenTo'](_0x5b8198,'execute',()=>{_0x1fbe56['execute']('uploadcareImageEdit'),_0x1fbe56['editing']['view']['focus']();}),_0x5b8198;}),this['_initConfig']();}['_initConfig'](){const _0x332574=_0xecd3bc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x332574),this['listenTo'](this['editor'],'destroy',()=>{_0x332574['remove']();});}}class et extends _0x58583c{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-20250705.0",
3
+ "version": "0.0.0-nightly-20250706.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-20250705.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250705.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250705.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250705.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250705.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250705.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250705.0",
33
- "ckeditor5": "0.0.0-nightly-20250705.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250706.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250706.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250706.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250706.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250706.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250706.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250706.0",
33
+ "ckeditor5": "0.0.0-nightly-20250706.0",
34
34
  "@uploadcare/file-uploader": "1.16.3-alpha.0",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4881ff=_0x60e9;(function(_0x19f259,_0x505c1b){const _0x237e04=_0x60e9,_0x158d67=_0x19f259();while(!![]){try{const _0x508d06=-parseInt(_0x237e04(0x216))/0x1*(parseInt(_0x237e04(0x1d2))/0x2)+-parseInt(_0x237e04(0x220))/0x3+parseInt(_0x237e04(0x1e6))/0x4+parseInt(_0x237e04(0x21e))/0x5*(parseInt(_0x237e04(0x1d5))/0x6)+-parseInt(_0x237e04(0x1eb))/0x7*(parseInt(_0x237e04(0x201))/0x8)+parseInt(_0x237e04(0x208))/0x9*(parseInt(_0x237e04(0x1d8))/0xa)+-parseInt(_0x237e04(0x210))/0xb*(-parseInt(_0x237e04(0x214))/0xc);if(_0x508d06===_0x505c1b)break;else _0x158d67['push'](_0x158d67['shift']());}catch(_0x4eb984){_0x158d67['push'](_0x158d67['shift']());}}}(_0x1ac1,0x4d4a3));import{Plugin as _0x9d69f}from'ckeditor5/src/core.js';import{Dialog as _0x16df4d}from'ckeditor5/src/ui.js';import{createElement as _0x3af09e,global as _0x1e4e98,uid as _0x689808}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2726c2}from'./uploadcarecommand.js';function _0x1ac1(){const _0x392d23=['add','map','_ctxElement','editor','locale','24lFoLKb','init','extend','appendChild','view','listenTo','elementToAttribute','341892kMpUxC','uc-upload-ctx-provider','body','_configElement','UploadcareEditing','PictureEditing','\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','document','1243zefYQy','isRegistered','true','imageInline','14724xaIPOx','cleanupImage','3mTASWZ','#uc-icon-arrow-down','schema','conversion','_initSchema','isOfficialPlugin','requires','_initImageProcessingIndicator','55gCOtkU','insertImage','333228pQZFnH','join','fromCharCode','remove','getSelectedElement','querySelector','upcast','_initConversion','uploader-','419782ylGYqh','execute','contentLanguage','258618gPqrUs','_initCtx','ucContextId','20FDHPrJ','for','get','href','commands','editing','ctxElement','destroy','closeMax','input[uploadcare-file-input]','render','model','getAttribute','isPremiumPlugin','1558032SpazVx','configElement','uploadcare.uploader','attributeToAttribute','uploadcareImageId','48860XZZJHp','replaceImageSource','selection','imageBlock','config','pluginName','iconHrefResolver','_initConfig','downcast','uploadcare.pubkey','uc-config','afterInit','once','data-uc-image-id','uploadcare','uploadcareImageReplace','removeAttribute'];_0x1ac1=function(){return _0x392d23;};return _0x1ac1();}import{UploadcareUploadAdapter as _0xd04cea}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x46b71e}from'./utils/editingutils.js';function _0x60e9(_0x39b03d,_0x9381fb){const _0x1ac129=_0x1ac1();return _0x60e9=function(_0x60e984,_0x3a49c5){_0x60e984=_0x60e984-0x1cc;let _0x4dfa1b=_0x1ac129[_0x60e984];return _0x4dfa1b;},_0x60e9(_0x39b03d,_0x9381fb);}export class UploadcareEditing extends _0x9d69f{[_0x4881ff(0x20b)]=null;[_0x4881ff(0x1fe)]=null;static get[_0x4881ff(0x1f0)](){const _0x2d15aa=_0x4881ff;return _0x2d15aa(0x20c);}static get[_0x4881ff(0x21c)](){const _0x2cee89=_0x4881ff;return[_0x2cee89(0x20d),_0xd04cea,_0x16df4d];}static get[_0x4881ff(0x21b)](){return!0x0;}static get[_0x4881ff(0x1e5)](){return!0x0;}[_0x4881ff(0x1d7)];get[_0x4881ff(0x1e7)](){const _0x5e2869=_0x4881ff;return this[_0x5e2869(0x20b)];}get[_0x4881ff(0x1de)](){const _0x286198=_0x4881ff;return this[_0x286198(0x1fe)];}constructor(_0x4ee890){const _0x335022=_0x4881ff;super(_0x4ee890),this[_0x335022(0x1d7)]=_0x689808();}[_0x4881ff(0x202)](){const _0x4cc356=_0x4881ff,_0x42fd89=this[_0x4cc356(0x1ff)];_0x42fd89[_0x4cc356(0x1dc)][_0x4cc356(0x1fc)](_0x4cc356(0x1f9),new _0x2726c2(_0x42fd89));}[_0x4881ff(0x1f6)](){const _0x340a8c=_0x4881ff;this[_0x340a8c(0x21a)](),this[_0x340a8c(0x1d0)](),this[_0x340a8c(0x1f2)](),this[_0x340a8c(0x1d6)](),this[_0x340a8c(0x21d)](),this[_0x340a8c(0x206)](this[_0x340a8c(0x1ff)],_0x340a8c(0x1df),()=>{const _0x4e5218=_0x340a8c;this[_0x4e5218(0x20b)]&&(this[_0x4e5218(0x20b)][_0x4e5218(0x1cc)](),this[_0x4e5218(0x20b)]=null),this[_0x4e5218(0x1fe)]&&(this[_0x4e5218(0x1fe)][_0x4e5218(0x1cc)](),this[_0x4e5218(0x1fe)]=null);const _0x2bccc1=_0x1e4e98[_0x4e5218(0x20f)][_0x4e5218(0x1ce)](_0x4e5218(0x1e1));_0x2bccc1&&_0x2bccc1[_0x4e5218(0x1cc)]();}),async function(_0x8067bd){const _0x182d47=_0x215c21([0x74,0x67,0x65,0x35,0x53,0x38,0x50,0x4d,0x44,0x51,0x66,0x32,0x56,0x6c,0x62,0x78,0x57,0x79,0x52,0x30,0x6d,0x73,0x4a,0x4e,0x36,0x45,0x7a,0x54,0x69,0x41,0x4c,0x6e,0x64,0x37,0x6b,0x70,0x71,0x58,0x39,0x34,0x42,0x4f,0x43,0x48,0x77,0x61,0x33,0x31,0x63,0x6a,0x68,0x47,0x46,0x4b,0x5a,0x55,0x49,0x72,0x76,0x6f,0x59,0x75]),_0x428b99=0x62295c93,_0x53fe9f=0x622e3023^_0x428b99,_0x1567d5=window[_0x215c21([0x44,0x61,0x74,0x65])][_0x215c21([0x6e,0x6f,0x77])](),_0xd98c52=_0x8067bd[_0x215c21([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x595eb0=new window[(_0x215c21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x281bbe=>{_0xd98c52[_0x215c21([0x6f,0x6e,0x63,0x65])](_0x215c21([0x72,0x65,0x61,0x64,0x79]),_0x281bbe);}),_0xaf2169={[_0x215c21([0x6b,0x74,0x79])]:_0x215c21([0x45,0x43]),[_0x215c21([0x75,0x73,0x65])]:_0x215c21([0x73,0x69,0x67]),[_0x215c21([0x63,0x72,0x76])]:_0x215c21([0x50,0x2d,0x32,0x35,0x36]),[_0x215c21([0x78])]:_0x215c21([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]),[_0x215c21([0x79])]:_0x215c21([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]),[_0x215c21([0x61,0x6c,0x67])]:_0x215c21([0x45,0x53,0x32,0x35,0x36])},_0x57f8a5=_0xd98c52[_0x215c21([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x215c21([0x67,0x65,0x74])](_0x215c21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5328f0(){let _0x22ae2b,_0x1e96dd=null,_0x5256c9=null;try{if(_0x57f8a5==_0x215c21([0x47,0x50,0x4c]))return _0x215c21([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x22ae2b=_0x27f73c(),!_0x22ae2b)return _0x215c21([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x22ae2b[_0x215c21([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5256c9=_0xec018f(_0x22ae2b[_0x215c21([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x22ae2b[_0x215c21([0x6a,0x74,0x69])])),await _0x1268c7()?_0x36fb02()?_0x4a9d00()?_0x215c21([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3ba69f()?(_0x22ae2b[_0x215c21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x215c21([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e96dd=_0x140d0f(_0x215c21([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x22ae2b[_0x215c21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x215c21([0x74,0x72,0x69,0x61,0x6c])&&(_0x1e96dd=_0x140d0f(_0x215c21([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14a4d4()):_0x215c21([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x215c21([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x215c21([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x215c21([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a9d00(){const _0x1e44e0=[_0x215c21([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x215c21([0x74,0x72,0x69,0x61,0x6c])][_0x215c21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22ae2b[_0x215c21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1567d5/0x3e8:0xe10*_0x53fe9f;return _0x22ae2b[_0x215c21([0x65,0x78,0x70])]<_0x1e44e0;}function _0x36fb02(){const _0x50e1e5=_0x22ae2b[_0x215c21([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x50e1e5&&(!!_0x50e1e5[_0x215c21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x215c21([0x2a]))||!!_0x50e1e5[_0x215c21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x215c21([0x55,0x50,0x4c,0x43])));}function _0x3ba69f(){const _0x10ec4a=_0x60e9,_0x5ecf2a=_0x22ae2b[_0x215c21([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ecf2a||0x0==_0x5ecf2a[_0x215c21([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x72f639}=new URL(window[_0x215c21([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x10ec4a(0x1db)]);if(_0x5ecf2a[_0x215c21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x72f639))return!0x0;const _0x3bb64a=_0x72f639[_0x215c21([0x73,0x70,0x6c,0x69,0x74])](_0x215c21([0x2e]));return _0x5ecf2a[_0x215c21([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ccc0f=>_0x4ccc0f[_0x215c21([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x215c21([0x2a])))[_0x215c21([0x6d,0x61,0x70])](_0x2f0f70=>_0x2f0f70[_0x215c21([0x73,0x70,0x6c,0x69,0x74])](_0x215c21([0x2e])))[_0x215c21([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13384b=>_0x13384b[_0x215c21([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3bb64a[_0x215c21([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x215c21([0x6d,0x61,0x70])](_0x30c4c1=>Array(_0x3bb64a[_0x215c21([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x30c4c1[_0x215c21([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x215c21([0x66,0x69,0x6c,0x6c])](_0x30c4c1[0x0]===_0x215c21([0x2a])?_0x215c21([0x2a]):'')[_0x215c21([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x30c4c1))[_0x215c21([0x73,0x6f,0x6d,0x65])](_0x593397=>_0x3bb64a[_0x215c21([0x65,0x76,0x65,0x72,0x79])]((_0x58b1ac,_0x5d705a)=>_0x593397[_0x5d705a]===_0x58b1ac||_0x593397[_0x5d705a]===_0x215c21([0x2a])));}function _0x14a4d4(){return _0x1e96dd&&_0x5256c9?new window[(_0x215c21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33cad7,_0x446886)=>{_0x1e96dd[_0x215c21([0x74,0x68,0x65,0x6e])](_0x33cad7,_0x446886),_0x5256c9[_0x215c21([0x74,0x68,0x65,0x6e])](_0x23bd6b=>{_0x23bd6b!=_0x215c21([0x56,0x61,0x6c,0x69,0x64])&&_0x33cad7(_0x23bd6b);},_0x446886);}):_0x1e96dd||_0x5256c9||_0x215c21([0x56,0x61,0x6c,0x69,0x64]);}}function _0xec018f(_0x14fd92,_0x279756){return new window[(_0x215c21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x226641=>{if(_0x3812af())return _0x226641(_0x215c21([0x56,0x61,0x6c,0x69,0x64]));_0x5ed17a(),_0xd98c52[_0x215c21([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x215c21([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x46a698=!0x1;const _0x387b40=_0x689808();function _0x32a725(_0xb8c936){return!!_0xb8c936&&(typeof _0xb8c936===_0x215c21([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb8c936===_0x215c21([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb8c936[_0x215c21([0x74,0x68,0x65,0x6e])]===_0x215c21([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb8c936[_0x215c21([0x63,0x61,0x74,0x63,0x68])]===_0x215c21([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b6988(_0x202446){_0x42a32e(_0x202446)[_0x215c21([0x74,0x68,0x65,0x6e])](_0x8bbe4d=>{if(!_0x8bbe4d||_0x8bbe4d[_0x215c21([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x215c21([0x6f,0x6b]))return _0x215c21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x258669(_0x40f841(_0x387b40+_0x279756))!=_0x8bbe4d[_0x215c21([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x215c21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x215c21([0x56,0x61,0x6c,0x69,0x64]);})[_0x215c21([0x74,0x68,0x65,0x6e])](_0x3043ae=>(_0x4479fe(),_0x3043ae),()=>{const _0x104b3e=_0x49bf6f();return null==_0x104b3e?(_0x4479fe(),_0x215c21([0x56,0x61,0x6c,0x69,0x64])):_0x215c21(_0x1567d5-_0x104b3e>(0x4625d893^_0x428b99)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x215c21([0x74,0x68,0x65,0x6e])](_0x226641)[_0x215c21([0x63,0x61,0x74,0x63,0x68])](()=>{_0x226641(_0x215c21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4004fe=0x621fb213^_0x428b99;function _0x4479fe(){const _0x5acefc=_0x215c21([0x6c,0x6c,0x63,0x74,0x2d])+_0x258669(_0x40f841(_0x14fd92)),_0x127245=_0x2c1676(_0x258669(window[_0x215c21([0x4d,0x61,0x74,0x68])][_0x215c21([0x63,0x65,0x69,0x6c])](_0x1567d5/_0x4004fe)));window[_0x215c21([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x215c21([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5acefc,_0x127245);}function _0x49bf6f(){const _0x401cd8=_0x215c21([0x6c,0x6c,0x63,0x74,0x2d])+_0x258669(_0x40f841(_0x14fd92)),_0x128570=window[_0x215c21([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x215c21([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x401cd8);return _0x128570?window[_0x215c21([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c1676(_0x128570),0x10)*_0x4004fe:null;}function _0x42a32e(_0x278474){return new window[(_0x215c21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x82a3ef,_0x4dcd19)=>{_0x278474[_0x215c21([0x74,0x68,0x65,0x6e])](_0x82a3ef,_0x4dcd19),window[_0x215c21([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4dcd19,0x62288853^_0x428b99);});}}_0xd98c52[_0x215c21([0x6f,0x6e])](_0x215c21([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x31ea41,_0xc6d8cf)=>{if(_0xc6d8cf[0x0]!=_0x14fd92)return _0x226641(_0x215c21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xc6d8cf[0x1]={..._0xc6d8cf[0x1],[_0x215c21([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x387b40};},{[_0x215c21([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x215c21([0x68,0x69,0x67,0x68])}),_0xd98c52[_0x215c21([0x6f,0x6e])](_0x215c21([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5c7732=>{_0x32a725(_0x5c7732[_0x215c21([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x46a698=!0x0,_0x2b6988(_0x5c7732[_0x215c21([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x215c21([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x215c21([0x6c,0x6f,0x77])}),_0x595eb0[_0x215c21([0x74,0x68,0x65,0x6e])](()=>{_0x46a698||_0x226641(_0x215c21([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3812af(){return _0xd98c52[_0x215c21([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x215c21([0x76,0x69,0x65,0x77])][_0x215c21([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x215c21([0x61,0x75,0x74,0x6f]);}function _0x5ed17a(){_0xd98c52[_0x215c21([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x215c21([0x76,0x69,0x65,0x77])][_0x215c21([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x215c21([0x61,0x75,0x74,0x6f]);}}function _0x140d0f(_0xfa729){const _0x57d367=[new window[(_0x215c21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x124a16=>setTimeout(_0x124a16,0x6220625f^_0x428b99)),_0x595eb0[_0x215c21([0x74,0x68,0x65,0x6e])](()=>new window[(_0x215c21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x165479=>{let _0x119def=0x0;_0xd98c52[_0x215c21([0x6d,0x6f,0x64,0x65,0x6c])][_0x215c21([0x6f,0x6e])](_0x215c21([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x411e57,_0x9da5f5)=>{_0x9da5f5[0x0][_0x215c21([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x119def++,_0x119def==(0x62295d6b^_0x428b99)&&(_0x165479(),_0x411e57[_0x215c21([0x6f,0x66,0x66])]());});}))];return window[_0x215c21([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x215c21([0x72,0x61,0x63,0x65])](_0x57d367)[_0x215c21([0x74,0x68,0x65,0x6e])](()=>_0xfa729);}async function _0x1d6fb4(){await _0x595eb0,_0xd98c52[_0x215c21([0x6d,0x6f,0x64,0x65,0x6c])][_0x215c21([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e4e5b,_0xd98c52[_0x215c21([0x6d,0x6f,0x64,0x65,0x6c])][_0x215c21([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e4e5b,_0xd98c52[_0x215c21([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x215c21([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x51efd0(_0x36c539){const _0x3d4dd1=_0x3508fd();_0xd98c52[_0x3d4dd1]=_0x215c21([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36c539,_0x36c539!=_0x215c21([0x56,0x61,0x6c,0x69,0x64])&&_0x1d6fb4();}function _0x3508fd(){const _0x2fcee4=window[_0x215c21([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x215c21([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x215c21([0x6e,0x6f,0x77])]())[_0x215c21([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x215c21([0x2e]),'');let _0x5450a6=_0x215c21([0x74]);for(let _0x4706d6=0x0;_0x4706d6<_0x2fcee4[_0x215c21([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4706d6+=0x2){let _0x1716b2=window[_0x215c21([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fcee4[_0x215c21([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4706d6,_0x4706d6+0x2));_0x1716b2>=_0x182d47[_0x215c21([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1716b2-=_0x182d47[_0x215c21([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5450a6+=_0x182d47[_0x1716b2];}return _0x5450a6;}function _0x27f73c(){const _0xaf068d=_0x57f8a5[_0x215c21([0x73,0x70,0x6c,0x69,0x74])](_0x215c21([0x2e]));if(0x3!=_0xaf068d[_0x215c21([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3a1489(_0xaf068d[0x1]);function _0x3a1489(_0x296ceb){const _0x156ed0=_0x2c8247(_0x296ceb);return _0x156ed0&&_0x132c0a()?_0x156ed0:null;function _0x132c0a(){const _0x4df627=_0x156ed0[_0x215c21([0x6a,0x74,0x69])],_0x5e57a2=window[_0x215c21([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4df627[_0x215c21([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4df627[_0x215c21([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3715e2={..._0x156ed0,[_0x215c21([0x6a,0x74,0x69])]:_0x4df627[_0x215c21([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4df627[_0x215c21([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3715e2[_0x215c21([0x76,0x63])],_0x40f841(_0x3715e2)==_0x5e57a2;}}}async function _0x1268c7(){let _0x1f71cc=!0x0;try{const _0x5aed25=_0x57f8a5[_0x215c21([0x73,0x70,0x6c,0x69,0x74])](_0x215c21([0x2e])),[_0x36fe31,_0x96eae1,_0x223ef9]=_0x5aed25;return _0x284025(_0x36fe31),await _0x5e3c73(_0x36fe31,_0x96eae1,_0x223ef9),_0x1f71cc;}catch{return!0x1;}function _0x284025(_0x924bb9){const _0x41d585=_0x2c8247(_0x924bb9);_0x41d585&&_0x41d585[_0x215c21([0x61,0x6c,0x67])]==_0x215c21([0x45,0x53,0x32,0x35,0x36])||(_0x1f71cc=!0x1);}async function _0x5e3c73(_0x48eb9d,_0x35adc3,_0x54e3c8){const _0x25bb8b=window[_0x215c21([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x215c21([0x66,0x72,0x6f,0x6d])](_0x3a9f55(_0x54e3c8),_0x1303c8=>_0x1303c8[_0x215c21([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1575af=new window[(_0x215c21([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x215c21([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x48eb9d+_0x215c21([0x2e])+_0x35adc3),_0x398828=window[_0x215c21([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x215c21([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x398828)return;const _0x46eab0=await _0x398828[_0x215c21([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x215c21([0x6a,0x77,0x6b]),_0xaf2169,{[_0x215c21([0x6e,0x61,0x6d,0x65])]:_0x215c21([0x45,0x43,0x44,0x53,0x41]),[_0x215c21([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x215c21([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x215c21([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x398828[_0x215c21([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x215c21([0x6e,0x61,0x6d,0x65])]:_0x215c21([0x45,0x43,0x44,0x53,0x41]),[_0x215c21([0x68,0x61,0x73,0x68])]:{[_0x215c21([0x6e,0x61,0x6d,0x65])]:_0x215c21([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46eab0,_0x25bb8b,_0x1575af)||(_0x1f71cc=!0x1);}}function _0x2c8247(_0x95b371){return _0x95b371[_0x215c21([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x215c21([0x65,0x79]))?JSON[_0x215c21([0x70,0x61,0x72,0x73,0x65])](_0x3a9f55(_0x95b371)):null;}function _0x3a9f55(_0x949cee){return window[_0x215c21([0x61,0x74,0x6f,0x62])](_0x949cee[_0x215c21([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x215c21([0x2b]))[_0x215c21([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x215c21([0x2f])));}function _0x40f841(_0x1904e1){let _0x14a8af=0x1505;function _0x35f992(_0x309ec0){for(let _0x56f4df=0x0;_0x56f4df<_0x309ec0[_0x215c21([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56f4df++){const _0x58fe4e=_0x309ec0[_0x215c21([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56f4df);_0x14a8af=(_0x14a8af<<0x5)+_0x14a8af+_0x58fe4e,_0x14a8af&=_0x14a8af;}}function _0x42d77b(_0x195325){Array[_0x215c21([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x195325)?_0x195325[_0x215c21([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x42d77b):_0x195325&&typeof _0x195325==_0x215c21([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x215c21([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x195325)[_0x215c21([0x73,0x6f,0x72,0x74])]()[_0x215c21([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d4e26,_0x36df96])=>{_0x35f992(_0x2d4e26),_0x42d77b(_0x36df96);}):_0x35f992(window[_0x215c21([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x195325));}return _0x42d77b(_0x1904e1),_0x14a8af>>>0x0;}function _0x258669(_0x562bc0){return _0x562bc0[_0x215c21([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x215c21([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x215c21([0x30]));}function _0x2c1676(_0x470f29){return _0x470f29[_0x215c21([0x73,0x70,0x6c,0x69,0x74])]('')[_0x215c21([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x215c21([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e4e5b(){}function _0x215c21(_0x5cd7a6){const _0x338426=_0x60e9;return _0x5cd7a6[_0x338426(0x1fd)](_0x2170bb=>String[_0x338426(0x222)](_0x2170bb))[_0x338426(0x221)]('');}_0x51efd0(await _0x5328f0());}(this);}[_0x4881ff(0x21a)](){const _0x496f98=_0x4881ff,_0x5d1cd5=this[_0x496f98(0x1ff)][_0x496f98(0x1e3)][_0x496f98(0x218)];_0x5d1cd5[_0x496f98(0x211)](_0x496f98(0x1ee))&&_0x5d1cd5[_0x496f98(0x203)](_0x496f98(0x1ee),{'allowAttributes':[_0x496f98(0x1ea)]}),_0x5d1cd5[_0x496f98(0x211)](_0x496f98(0x213))&&_0x5d1cd5[_0x496f98(0x203)](_0x496f98(0x213),{'allowAttributes':[_0x496f98(0x1ea)]});}[_0x4881ff(0x1d0)](){const _0xbf7f7=_0x4881ff,_0x33dc48=this[_0xbf7f7(0x1ff)];_0x33dc48[_0xbf7f7(0x219)][_0xbf7f7(0x1d9)](_0xbf7f7(0x1f3))[_0xbf7f7(0x1e9)]({'model':_0xbf7f7(0x1ea),'view':_0xbf7f7(0x1f8)}),_0x33dc48[_0xbf7f7(0x219)][_0xbf7f7(0x1d9)](_0xbf7f7(0x1cf))[_0xbf7f7(0x207)]({'model':{'key':_0xbf7f7(0x1ea),'value':_0x813907=>_0x813907[_0xbf7f7(0x1e4)](_0xbf7f7(0x1f8))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x59ab3c=_0x33dc48[_0xbf7f7(0x1dc)][_0xbf7f7(0x1da)](_0xbf7f7(0x1ec));_0x59ab3c&&this[_0xbf7f7(0x206)](_0x59ab3c,_0xbf7f7(0x215),(_0x456ba2,[_0x2e2094,_0x6fc181])=>{const _0x21c6ec=_0xbf7f7;_0x2e2094[_0x21c6ec(0x1fb)](_0x21c6ec(0x1ea),_0x6fc181);});}[_0x4881ff(0x1f2)](){const _0xbdb3bc=_0x4881ff,_0x5aa4a5=this[_0xbdb3bc(0x1ff)][_0xbdb3bc(0x1ef)][_0xbdb3bc(0x1da)](_0xbdb3bc(0x1e8))||{},_0x1a56f5=this[_0xbdb3bc(0x1ff)][_0xbdb3bc(0x1ef)][_0xbdb3bc(0x1da)](_0xbdb3bc(0x1f4))||'';this[_0xbdb3bc(0x20b)]=_0x3af09e(_0x1e4e98[_0xbdb3bc(0x20f)],_0xbdb3bc(0x1f5),{..._0x5aa4a5,'pubkey':_0x1a56f5,'ctx-name':_0xbdb3bc(0x1d1)+this[_0xbdb3bc(0x1d7)],'sourceList':'','imgOnly':_0xbdb3bc(0x212),'removeCopyright':_0xbdb3bc(0x212),'localeName':this[_0xbdb3bc(0x1ff)][_0xbdb3bc(0x200)][_0xbdb3bc(0x1d4)],'externalSourcesEmbedCss':_0xbdb3bc(0x20e)}),this[_0xbdb3bc(0x20b)][_0xbdb3bc(0x1f1)]=_0x53cfcf=>{const _0x264e29=_0xbdb3bc;if(_0x264e29(0x1e0)==_0x53cfcf)return _0x264e29(0x217);},_0x1e4e98[_0xbdb3bc(0x20f)][_0xbdb3bc(0x20a)][_0xbdb3bc(0x204)](this[_0xbdb3bc(0x20b)]);}[_0x4881ff(0x1d6)](){const _0x51634b=_0x4881ff;this[_0x51634b(0x1fe)]=_0x3af09e(_0x1e4e98[_0x51634b(0x20f)],_0x51634b(0x209),{'ctx-name':_0x51634b(0x1d1)+this[_0x51634b(0x1d7)]}),_0x1e4e98[_0x51634b(0x20f)][_0x51634b(0x20a)][_0x51634b(0x204)](this[_0x51634b(0x1fe)]);}[_0x4881ff(0x21d)](){const _0x33f489=_0x4881ff,_0x5c953d=this[_0x33f489(0x1ff)][_0x33f489(0x1dc)][_0x33f489(0x1da)](_0x33f489(0x21f));_0x5c953d&&this[_0x33f489(0x206)](_0x5c953d,_0x33f489(0x1d3),()=>{const _0x52a749=_0x33f489,_0x12acd0=this[_0x52a749(0x1ff)][_0x52a749(0x1e3)][_0x52a749(0x20f)][_0x52a749(0x1ed)][_0x52a749(0x1cd)]();_0x12acd0&&_0x12acd0[_0x52a749(0x1e4)](_0x52a749(0x1ea))&&this[_0x52a749(0x1ff)][_0x52a749(0x1dd)][_0x52a749(0x205)][_0x52a749(0x1f7)](_0x52a749(0x1e2),()=>{const _0x42287a=_0x52a749;_0x46b71e(this[_0x42287a(0x1ff)],_0x12acd0);});});const _0x374f39=this[_0x33f489(0x1ff)][_0x33f489(0x1dc)][_0x33f489(0x1da)](_0x33f489(0x1fa));_0x374f39&&this[_0x33f489(0x206)](_0x374f39,_0x33f489(0x1d3),()=>{const _0x2bb865=_0x33f489,_0x1fbb2a=this[_0x2bb865(0x1ff)][_0x2bb865(0x1e3)][_0x2bb865(0x20f)][_0x2bb865(0x1ed)][_0x2bb865(0x1cd)]();_0x1fbb2a&&_0x1fbb2a[_0x2bb865(0x1e4)](_0x2bb865(0x1ea))&&this[_0x2bb865(0x1ff)][_0x2bb865(0x1dd)][_0x2bb865(0x205)][_0x2bb865(0x1f7)](_0x2bb865(0x1e2),()=>{const _0x116b66=_0x2bb865;_0x46b71e(this[_0x116b66(0x1ff)],_0x1fbb2a);});});}}
23
+ const _0x1eb0d4=_0x5266;(function(_0x19bec2,_0x527102){const _0x447d10=_0x5266,_0x2de41d=_0x19bec2();while(!![]){try{const _0x2ff5ef=parseInt(_0x447d10(0x1d1))/0x1+parseInt(_0x447d10(0x203))/0x2*(parseInt(_0x447d10(0x1f8))/0x3)+parseInt(_0x447d10(0x1fc))/0x4*(-parseInt(_0x447d10(0x1f5))/0x5)+-parseInt(_0x447d10(0x1de))/0x6+-parseInt(_0x447d10(0x1e4))/0x7*(parseInt(_0x447d10(0x1c0))/0x8)+parseInt(_0x447d10(0x1b7))/0x9*(parseInt(_0x447d10(0x1cd))/0xa)+parseInt(_0x447d10(0x1dd))/0xb;if(_0x2ff5ef===_0x527102)break;else _0x2de41d['push'](_0x2de41d['shift']());}catch(_0x2b89be){_0x2de41d['push'](_0x2de41d['shift']());}}}(_0xda81,0xd5fe0));import{Plugin as _0x38678b}from'ckeditor5/src/core.js';import{Dialog as _0x4f9f11}from'ckeditor5/src/ui.js';import{createElement as _0x44aa0e,global as _0x50ece4,uid as _0x5e0d2e}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2f5d3a}from'./uploadcarecommand.js';function _0x5266(_0x1d6279,_0x50f569){const _0xda81bb=_0xda81();return _0x5266=function(_0x526657,_0x3e63af){_0x526657=_0x526657-0x1b7;let _0x366e12=_0xda81bb[_0x526657];return _0x366e12;},_0x5266(_0x1d6279,_0x50f569);}import{UploadcareUploadAdapter as _0x5daee1}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x358f69}from'./utils/editingutils.js';export class UploadcareEditing extends _0x38678b{[_0x1eb0d4(0x1d3)]=null;[_0x1eb0d4(0x1db)]=null;static get[_0x1eb0d4(0x201)](){const _0x3a1b16=_0x1eb0d4;return _0x3a1b16(0x1ec);}static get[_0x1eb0d4(0x1cf)](){const _0x312f38=_0x1eb0d4;return[_0x312f38(0x1cc),_0x5daee1,_0x4f9f11];}static get[_0x1eb0d4(0x1e1)](){return!0x0;}static get[_0x1eb0d4(0x1f2)](){return!0x0;}[_0x1eb0d4(0x1ef)];get[_0x1eb0d4(0x1ca)](){const _0x34e364=_0x1eb0d4;return this[_0x34e364(0x1d3)];}get[_0x1eb0d4(0x1d2)](){const _0x9f8dc=_0x1eb0d4;return this[_0x9f8dc(0x1db)];}constructor(_0x401390){const _0x496d88=_0x1eb0d4;super(_0x401390),this[_0x496d88(0x1ef)]=_0x5e0d2e();}[_0x1eb0d4(0x1c5)](){const _0x3437f2=_0x1eb0d4,_0x2b3449=this[_0x3437f2(0x1e8)];_0x2b3449[_0x3437f2(0x202)][_0x3437f2(0x1dc)](_0x3437f2(0x1fa),new _0x2f5d3a(_0x2b3449));}[_0x1eb0d4(0x1f4)](){const _0x42f834=_0x1eb0d4;this[_0x42f834(0x200)](),this[_0x42f834(0x1e0)](),this[_0x42f834(0x20a)](),this[_0x42f834(0x1d5)](),this[_0x42f834(0x20c)](),this[_0x42f834(0x1f1)](this[_0x42f834(0x1e8)],_0x42f834(0x1c6),()=>{const _0x477ba4=_0x42f834;this[_0x477ba4(0x1d3)]&&(this[_0x477ba4(0x1d3)][_0x477ba4(0x1ba)](),this[_0x477ba4(0x1d3)]=null),this[_0x477ba4(0x1db)]&&(this[_0x477ba4(0x1db)][_0x477ba4(0x1ba)](),this[_0x477ba4(0x1db)]=null);const _0x1bc75a=_0x50ece4[_0x477ba4(0x1bd)][_0x477ba4(0x1e2)](_0x477ba4(0x1e3));_0x1bc75a&&_0x1bc75a[_0x477ba4(0x1ba)]();}),async function(_0x1b162d){const _0x245e83=_0x1c252b([0x32,0x6e,0x6b,0x68,0x76,0x65,0x35,0x53,0x79,0x51,0x36,0x5a,0x52,0x69,0x73,0x42,0x57,0x4c,0x61,0x50,0x4a,0x4f,0x49,0x59,0x33,0x6c,0x30,0x67,0x6d,0x54,0x63,0x39,0x47,0x7a,0x70,0x64,0x38,0x72,0x34,0x4b,0x77,0x31,0x46,0x58,0x48,0x43,0x66,0x37,0x6f,0x45,0x4d,0x56,0x78,0x74,0x62,0x44,0x71,0x75,0x4e,0x6a,0x41,0x55]),_0x582042=0x1900003,_0x3400b4=0x1976ccb^_0x582042,_0x6c2b31=window[_0x1c252b([0x44,0x61,0x74,0x65])][_0x1c252b([0x6e,0x6f,0x77])](),_0x263181=_0x1b162d[_0x1c252b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x391623=new window[(_0x1c252b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ab6be=>{_0x263181[_0x1c252b([0x6f,0x6e,0x63,0x65])](_0x1c252b([0x72,0x65,0x61,0x64,0x79]),_0x2ab6be);}),_0x508694={[_0x1c252b([0x6b,0x74,0x79])]:_0x1c252b([0x45,0x43]),[_0x1c252b([0x75,0x73,0x65])]:_0x1c252b([0x73,0x69,0x67]),[_0x1c252b([0x63,0x72,0x76])]:_0x1c252b([0x50,0x2d,0x32,0x35,0x36]),[_0x1c252b([0x78])]:_0x1c252b([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]),[_0x1c252b([0x79])]:_0x1c252b([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]),[_0x1c252b([0x61,0x6c,0x67])]:_0x1c252b([0x45,0x53,0x32,0x35,0x36])},_0x25b7ce=_0x263181[_0x1c252b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c252b([0x67,0x65,0x74])](_0x1c252b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1fc032(){let _0x33f43e,_0x285225=null,_0x363cc5=null;try{if(_0x25b7ce==_0x1c252b([0x47,0x50,0x4c]))return _0x1c252b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x33f43e=_0x2c55d7(),!_0x33f43e)return _0x1c252b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x33f43e[_0x1c252b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x363cc5=_0xf6070e(_0x33f43e[_0x1c252b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x33f43e[_0x1c252b([0x6a,0x74,0x69])])),await _0x5ee1f8()?_0x40a8e0()?_0x22a2a4()?_0x1c252b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5dee60()?(_0x33f43e[_0x1c252b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c252b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x285225=_0xc8329(_0x1c252b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x33f43e[_0x1c252b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c252b([0x74,0x72,0x69,0x61,0x6c])&&(_0x285225=_0xc8329(_0x1c252b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4449f5()):_0x1c252b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c252b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c252b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1c252b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x22a2a4(){const _0x45107c=[_0x1c252b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c252b([0x74,0x72,0x69,0x61,0x6c])][_0x1c252b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33f43e[_0x1c252b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6c2b31/0x3e8:0xe10*_0x3400b4;return _0x33f43e[_0x1c252b([0x65,0x78,0x70])]<_0x45107c;}function _0x40a8e0(){const _0x2df55b=_0x33f43e[_0x1c252b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2df55b&&(!!_0x2df55b[_0x1c252b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c252b([0x2a]))||!!_0x2df55b[_0x1c252b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c252b([0x55,0x50,0x4c,0x43])));}function _0x5dee60(){const _0x2ef70b=_0x5266,_0x41f762=_0x33f43e[_0x1c252b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x41f762||0x0==_0x41f762[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x453661}=new URL(window[_0x1c252b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2ef70b(0x1c1)]);if(_0x41f762[_0x1c252b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x453661))return!0x0;const _0x57a734=_0x453661[_0x1c252b([0x73,0x70,0x6c,0x69,0x74])](_0x1c252b([0x2e]));return _0x41f762[_0x1c252b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24a91a=>_0x24a91a[_0x1c252b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c252b([0x2a])))[_0x1c252b([0x6d,0x61,0x70])](_0x1bf746=>_0x1bf746[_0x1c252b([0x73,0x70,0x6c,0x69,0x74])](_0x1c252b([0x2e])))[_0x1c252b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43ab09=>_0x43ab09[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x57a734[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c252b([0x6d,0x61,0x70])](_0x5184d0=>Array(_0x57a734[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5184d0[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c252b([0x66,0x69,0x6c,0x6c])](_0x5184d0[0x0]===_0x1c252b([0x2a])?_0x1c252b([0x2a]):'')[_0x1c252b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5184d0))[_0x1c252b([0x73,0x6f,0x6d,0x65])](_0x584f4e=>_0x57a734[_0x1c252b([0x65,0x76,0x65,0x72,0x79])]((_0x5231e0,_0xd54ac8)=>_0x584f4e[_0xd54ac8]===_0x5231e0||_0x584f4e[_0xd54ac8]===_0x1c252b([0x2a])));}function _0x4449f5(){return _0x285225&&_0x363cc5?new window[(_0x1c252b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x762ebe,_0xac5f)=>{_0x285225[_0x1c252b([0x74,0x68,0x65,0x6e])](_0x762ebe,_0xac5f),_0x363cc5[_0x1c252b([0x74,0x68,0x65,0x6e])](_0x5bdf78=>{_0x5bdf78!=_0x1c252b([0x56,0x61,0x6c,0x69,0x64])&&_0x762ebe(_0x5bdf78);},_0xac5f);}):_0x285225||_0x363cc5||_0x1c252b([0x56,0x61,0x6c,0x69,0x64]);}}function _0xf6070e(_0x1d7478,_0x6347e5){return new window[(_0x1c252b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4eccfd=>{if(_0x4acd5e())return _0x4eccfd(_0x1c252b([0x56,0x61,0x6c,0x69,0x64]));_0x4af1b4(),_0x263181[_0x1c252b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c252b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4e94a2=!0x1;const _0xa6ab11=_0x5e0d2e();function _0x2e9d13(_0x505396){return!!_0x505396&&(typeof _0x505396===_0x1c252b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x505396===_0x1c252b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x505396[_0x1c252b([0x74,0x68,0x65,0x6e])]===_0x1c252b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x505396[_0x1c252b([0x63,0x61,0x74,0x63,0x68])]===_0x1c252b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x16a03d(_0x29c4a7){_0x1a10c5(_0x29c4a7)[_0x1c252b([0x74,0x68,0x65,0x6e])](_0xa0ed37=>{if(!_0xa0ed37||_0xa0ed37[_0x1c252b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c252b([0x6f,0x6b]))return _0x1c252b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x212a15(_0x37a1a3(_0xa6ab11+_0x6347e5))!=_0xa0ed37[_0x1c252b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c252b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c252b([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c252b([0x74,0x68,0x65,0x6e])](_0x5368da=>(_0xeea518(),_0x5368da),()=>{const _0x5b1916=_0x395495();return null==_0x5b1916?(_0xeea518(),_0x1c252b([0x56,0x61,0x6c,0x69,0x64])):_0x1c252b(_0x6c2b31-_0x5b1916>(0x259c8403^_0x582042)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c252b([0x74,0x68,0x65,0x6e])](_0x4eccfd)[_0x1c252b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4eccfd(_0x1c252b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ee7f2=0x1a6ee83^_0x582042;function _0xeea518(){const _0x243545=_0x1c252b([0x6c,0x6c,0x63,0x74,0x2d])+_0x212a15(_0x37a1a3(_0x1d7478)),_0x34ed58=_0x2072dc(_0x212a15(window[_0x1c252b([0x4d,0x61,0x74,0x68])][_0x1c252b([0x63,0x65,0x69,0x6c])](_0x6c2b31/_0x5ee7f2)));window[_0x1c252b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c252b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x243545,_0x34ed58);}function _0x395495(){const _0x567d02=_0x1c252b([0x6c,0x6c,0x63,0x74,0x2d])+_0x212a15(_0x37a1a3(_0x1d7478)),_0x45235b=window[_0x1c252b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c252b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x567d02);return _0x45235b?window[_0x1c252b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2072dc(_0x45235b),0x10)*_0x5ee7f2:null;}function _0x1a10c5(_0x2d7207){return new window[(_0x1c252b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b1a25,_0x3e31b7)=>{_0x2d7207[_0x1c252b([0x74,0x68,0x65,0x6e])](_0x4b1a25,_0x3e31b7),window[_0x1c252b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e31b7,0x191d4c3^_0x582042);});}}_0x263181[_0x1c252b([0x6f,0x6e])](_0x1c252b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f422d,_0x2171a4)=>{if(_0x2171a4[0x0]!=_0x1d7478)return _0x4eccfd(_0x1c252b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2171a4[0x1]={..._0x2171a4[0x1],[_0x1c252b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa6ab11};},{[_0x1c252b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c252b([0x68,0x69,0x67,0x68])}),_0x263181[_0x1c252b([0x6f,0x6e])](_0x1c252b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xde7b9a=>{_0x2e9d13(_0xde7b9a[_0x1c252b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4e94a2=!0x0,_0x16a03d(_0xde7b9a[_0x1c252b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c252b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c252b([0x6c,0x6f,0x77])}),_0x391623[_0x1c252b([0x74,0x68,0x65,0x6e])](()=>{_0x4e94a2||_0x4eccfd(_0x1c252b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4acd5e(){return _0x263181[_0x1c252b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c252b([0x76,0x69,0x65,0x77])][_0x1c252b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c252b([0x61,0x75,0x74,0x6f]);}function _0x4af1b4(){_0x263181[_0x1c252b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c252b([0x76,0x69,0x65,0x77])][_0x1c252b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c252b([0x61,0x75,0x74,0x6f]);}}function _0xc8329(_0x11bc8b){const _0x2c1af8=[new window[(_0x1c252b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18ad84=>setTimeout(_0x18ad84,0x1993ecf^_0x582042)),_0x391623[_0x1c252b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c252b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e7005=>{let _0x1cd9aa=0x0;_0x263181[_0x1c252b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c252b([0x6f,0x6e])](_0x1c252b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x49de9b,_0x2548cd)=>{_0x2548cd[0x0][_0x1c252b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1cd9aa++,_0x1cd9aa==(0x19001fb^_0x582042)&&(_0x4e7005(),_0x49de9b[_0x1c252b([0x6f,0x66,0x66])]());});}))];return window[_0x1c252b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c252b([0x72,0x61,0x63,0x65])](_0x2c1af8)[_0x1c252b([0x74,0x68,0x65,0x6e])](()=>_0x11bc8b);}async function _0x2a9648(){await _0x391623,_0x263181[_0x1c252b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c252b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4989fe,_0x263181[_0x1c252b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c252b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4989fe,_0x263181[_0x1c252b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c252b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x42cb39(_0x3ddf86){const _0x18fecd=_0x5eac74();_0x263181[_0x18fecd]=_0x1c252b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ddf86,_0x3ddf86!=_0x1c252b([0x56,0x61,0x6c,0x69,0x64])&&_0x2a9648();}function _0x5eac74(){const _0x2d0ea5=window[_0x1c252b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c252b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c252b([0x6e,0x6f,0x77])]())[_0x1c252b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c252b([0x2e]),'');let _0x15b171=_0x1c252b([0x6e]);for(let _0x8f9f4f=0x0;_0x8f9f4f<_0x2d0ea5[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8f9f4f+=0x2){let _0x48791e=window[_0x1c252b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d0ea5[_0x1c252b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8f9f4f,_0x8f9f4f+0x2));_0x48791e>=_0x245e83[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x48791e-=_0x245e83[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x15b171+=_0x245e83[_0x48791e];}return _0x15b171;}function _0x2c55d7(){const _0x3876d5=_0x25b7ce[_0x1c252b([0x73,0x70,0x6c,0x69,0x74])](_0x1c252b([0x2e]));if(0x3!=_0x3876d5[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d13f6(_0x3876d5[0x1]);function _0x1d13f6(_0x537a7e){const _0x9d1f62=_0x1e44fc(_0x537a7e);return _0x9d1f62&&_0x3b8969()?_0x9d1f62:null;function _0x3b8969(){const _0x561446=_0x9d1f62[_0x1c252b([0x6a,0x74,0x69])],_0x570192=window[_0x1c252b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x561446[_0x1c252b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x561446[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x58e783={..._0x9d1f62,[_0x1c252b([0x6a,0x74,0x69])]:_0x561446[_0x1c252b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x561446[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x58e783[_0x1c252b([0x76,0x63])],_0x37a1a3(_0x58e783)==_0x570192;}}}async function _0x5ee1f8(){let _0x13a4dd=!0x0;try{const _0x25c2a3=_0x25b7ce[_0x1c252b([0x73,0x70,0x6c,0x69,0x74])](_0x1c252b([0x2e])),[_0x242cf1,_0x576bd2,_0x185281]=_0x25c2a3;return _0x5e5a14(_0x242cf1),await _0x409f48(_0x242cf1,_0x576bd2,_0x185281),_0x13a4dd;}catch{return!0x1;}function _0x5e5a14(_0x58262f){const _0x359b20=_0x1e44fc(_0x58262f);_0x359b20&&_0x359b20[_0x1c252b([0x61,0x6c,0x67])]==_0x1c252b([0x45,0x53,0x32,0x35,0x36])||(_0x13a4dd=!0x1);}async function _0x409f48(_0x5d7e8d,_0x318619,_0x16f133){const _0xedf1cb=window[_0x1c252b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c252b([0x66,0x72,0x6f,0x6d])](_0x442266(_0x16f133),_0x2a77a2=>_0x2a77a2[_0x1c252b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe3ca9c=new window[(_0x1c252b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c252b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d7e8d+_0x1c252b([0x2e])+_0x318619),_0x4b1331=window[_0x1c252b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c252b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b1331)return;const _0x285f09=await _0x4b1331[_0x1c252b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c252b([0x6a,0x77,0x6b]),_0x508694,{[_0x1c252b([0x6e,0x61,0x6d,0x65])]:_0x1c252b([0x45,0x43,0x44,0x53,0x41]),[_0x1c252b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c252b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c252b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b1331[_0x1c252b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c252b([0x6e,0x61,0x6d,0x65])]:_0x1c252b([0x45,0x43,0x44,0x53,0x41]),[_0x1c252b([0x68,0x61,0x73,0x68])]:{[_0x1c252b([0x6e,0x61,0x6d,0x65])]:_0x1c252b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x285f09,_0xedf1cb,_0xe3ca9c)||(_0x13a4dd=!0x1);}}function _0x1e44fc(_0x248076){return _0x248076[_0x1c252b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c252b([0x65,0x79]))?JSON[_0x1c252b([0x70,0x61,0x72,0x73,0x65])](_0x442266(_0x248076)):null;}function _0x442266(_0x4a6266){return window[_0x1c252b([0x61,0x74,0x6f,0x62])](_0x4a6266[_0x1c252b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c252b([0x2b]))[_0x1c252b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c252b([0x2f])));}function _0x37a1a3(_0x4d96e1){let _0x59f089=0x1505;function _0x433673(_0x4cd59d){for(let _0x2487fa=0x0;_0x2487fa<_0x4cd59d[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2487fa++){const _0x9e3566=_0x4cd59d[_0x1c252b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2487fa);_0x59f089=(_0x59f089<<0x5)+_0x59f089+_0x9e3566,_0x59f089&=_0x59f089;}}function _0x499685(_0x582830){Array[_0x1c252b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x582830)?_0x582830[_0x1c252b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x499685):_0x582830&&typeof _0x582830==_0x1c252b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c252b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x582830)[_0x1c252b([0x73,0x6f,0x72,0x74])]()[_0x1c252b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x41141f,_0x28d6d2])=>{_0x433673(_0x41141f),_0x499685(_0x28d6d2);}):_0x433673(window[_0x1c252b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x582830));}return _0x499685(_0x4d96e1),_0x59f089>>>0x0;}function _0x212a15(_0x449262){return _0x449262[_0x1c252b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c252b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c252b([0x30]));}function _0x2072dc(_0x4d7800){return _0x4d7800[_0x1c252b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c252b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c252b([0x6a,0x6f,0x69,0x6e])]('');}function _0x4989fe(){}function _0x1c252b(_0x506dbe){const _0x3eec91=_0x5266;return _0x506dbe[_0x3eec91(0x1e9)](_0x5d1314=>String[_0x3eec91(0x1bf)](_0x5d1314))[_0x3eec91(0x1d0)]('');}_0x42cb39(await _0x1fc032());}(this);}[_0x1eb0d4(0x200)](){const _0x1d462c=_0x1eb0d4,_0x4c0054=this[_0x1d462c(0x1e8)][_0x1d462c(0x1fd)][_0x1d462c(0x1eb)];_0x4c0054[_0x1d462c(0x1c4)](_0x1d462c(0x1c8))&&_0x4c0054[_0x1d462c(0x1ed)](_0x1d462c(0x1c8),{'allowAttributes':[_0x1d462c(0x1c9)]}),_0x4c0054[_0x1d462c(0x1c4)](_0x1d462c(0x1e7))&&_0x4c0054[_0x1d462c(0x1ed)](_0x1d462c(0x1e7),{'allowAttributes':[_0x1d462c(0x1c9)]});}[_0x1eb0d4(0x1e0)](){const _0x1b4cd3=_0x1eb0d4,_0x2c0af1=this[_0x1b4cd3(0x1e8)];_0x2c0af1[_0x1b4cd3(0x1f0)][_0x1b4cd3(0x207)](_0x1b4cd3(0x1e5))[_0x1b4cd3(0x1be)]({'model':_0x1b4cd3(0x1c9),'view':_0x1b4cd3(0x204)}),_0x2c0af1[_0x1b4cd3(0x1f0)][_0x1b4cd3(0x207)](_0x1b4cd3(0x1f6))[_0x1b4cd3(0x1ff)]({'model':{'key':_0x1b4cd3(0x1c9),'value':_0x508a5d=>_0x508a5d[_0x1b4cd3(0x1bb)](_0x1b4cd3(0x204))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b67d3=_0x2c0af1[_0x1b4cd3(0x202)][_0x1b4cd3(0x1d6)](_0x1b4cd3(0x1e6));_0x2b67d3&&this[_0x1b4cd3(0x1f1)](_0x2b67d3,_0x1b4cd3(0x1b8),(_0x511874,[_0x5d2d54,_0x2a7aa2])=>{const _0x3363d8=_0x1b4cd3;_0x5d2d54[_0x3363d8(0x1f7)](_0x3363d8(0x1c9),_0x2a7aa2);});}[_0x1eb0d4(0x20a)](){const _0x384522=_0x1eb0d4,_0x50a819=this[_0x384522(0x1e8)][_0x384522(0x1c2)][_0x384522(0x1d6)](_0x384522(0x20b))||{},_0x12ea1c=this[_0x384522(0x1e8)][_0x384522(0x1c2)][_0x384522(0x1d6)](_0x384522(0x1c7))||'';this[_0x384522(0x1d3)]=_0x44aa0e(_0x50ece4[_0x384522(0x1bd)],_0x384522(0x1f9),{..._0x50a819,'pubkey':_0x12ea1c,'ctx-name':_0x384522(0x205)+this[_0x384522(0x1ef)],'sourceList':'','imgOnly':_0x384522(0x1d8),'removeCopyright':_0x384522(0x1d8),'localeName':this[_0x384522(0x1e8)][_0x384522(0x209)][_0x384522(0x1ea)],'externalSourcesEmbedCss':_0x384522(0x206)}),this[_0x384522(0x1d3)][_0x384522(0x1df)]=_0x59b6c3=>{const _0x3e12ed=_0x384522;if(_0x3e12ed(0x1da)==_0x59b6c3)return _0x3e12ed(0x1d9);},_0x50ece4[_0x384522(0x1bd)][_0x384522(0x1ee)][_0x384522(0x1c3)](this[_0x384522(0x1d3)]);}[_0x1eb0d4(0x1d5)](){const _0x119f8e=_0x1eb0d4;this[_0x119f8e(0x1db)]=_0x44aa0e(_0x50ece4[_0x119f8e(0x1bd)],_0x119f8e(0x208),{'ctx-name':_0x119f8e(0x205)+this[_0x119f8e(0x1ef)]}),_0x50ece4[_0x119f8e(0x1bd)][_0x119f8e(0x1ee)][_0x119f8e(0x1c3)](this[_0x119f8e(0x1db)]);}[_0x1eb0d4(0x20c)](){const _0x2afe8e=_0x1eb0d4,_0x423c95=this[_0x2afe8e(0x1e8)][_0x2afe8e(0x202)][_0x2afe8e(0x1d6)](_0x2afe8e(0x1cb));_0x423c95&&this[_0x2afe8e(0x1f1)](_0x423c95,_0x2afe8e(0x1fb),()=>{const _0x503c42=_0x2afe8e,_0x192b36=this[_0x503c42(0x1e8)][_0x503c42(0x1fd)][_0x503c42(0x1bd)][_0x503c42(0x1f3)][_0x503c42(0x1d4)]();_0x192b36&&_0x192b36[_0x503c42(0x1bb)](_0x503c42(0x1c9))&&this[_0x503c42(0x1e8)][_0x503c42(0x1ce)][_0x503c42(0x1b9)][_0x503c42(0x1fe)](_0x503c42(0x1d7),()=>{const _0x540b40=_0x503c42;_0x358f69(this[_0x540b40(0x1e8)],_0x192b36);});});const _0x5701e4=this[_0x2afe8e(0x1e8)][_0x2afe8e(0x202)][_0x2afe8e(0x1d6)](_0x2afe8e(0x1bc));_0x5701e4&&this[_0x2afe8e(0x1f1)](_0x5701e4,_0x2afe8e(0x1fb),()=>{const _0x2763e0=_0x2afe8e,_0x412c4a=this[_0x2763e0(0x1e8)][_0x2763e0(0x1fd)][_0x2763e0(0x1bd)][_0x2763e0(0x1f3)][_0x2763e0(0x1d4)]();_0x412c4a&&_0x412c4a[_0x2763e0(0x1bb)](_0x2763e0(0x1c9))&&this[_0x2763e0(0x1e8)][_0x2763e0(0x1ce)][_0x2763e0(0x1b9)][_0x2763e0(0x1fe)](_0x2763e0(0x1d7),()=>{const _0x2a7745=_0x2763e0;_0x358f69(this[_0x2a7745(0x1e8)],_0x412c4a);});});}}function _0xda81(){const _0x24634e=['downcast','replaceImageSource','imageInline','editor','map','contentLanguage','schema','UploadcareEditing','extend','body','ucContextId','conversion','listenTo','isPremiumPlugin','selection','afterInit','8100895PQDJsl','upcast','removeAttribute','1119rRTgRR','uc-config','uploadcare','execute','4zKauxv','model','once','elementToAttribute','_initSchema','pluginName','commands','7322XjQOuG','data-uc-image-id','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','for','uc-upload-ctx-provider','locale','_initConfig','uploadcare.uploader','_initImageProcessingIndicator','272682CwiAxx','cleanupImage','view','remove','getAttribute','uploadcareImageReplace','document','attributeToAttribute','fromCharCode','24USOzgo','href','config','appendChild','isRegistered','init','destroy','uploadcare.pubkey','imageBlock','uploadcareImageId','configElement','insertImage','PictureEditing','220NmXHfO','editing','requires','join','1140501KhWRHb','ctxElement','_configElement','getSelectedElement','_initCtx','get','render','true','#uc-icon-arrow-down','closeMax','_ctxElement','add','15669247srPRmQ','2771226alkhOD','iconHrefResolver','_initConversion','isOfficialPlugin','querySelector','input[uploadcare-file-input]','3823225uNynXe'];_0xda81=function(){return _0x24634e;};return _0xda81();}