@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.6 → 46.0.1-alpha.7

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 _0x55a113,Command as _0x3f6046}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xc572a5,IconGooglePhotos as _0x1eb195,IconGoogleDrive as _0x1598c4,IconFacebook as _0xdacb46,IconDropbox as _0x4bdf52,IconUploadcareLink as _0x43d718,IconUploadcareImageUpload as _0xb99d8b,IconError as _0x215ab4,IconUploadcareImageEdit as _0x3b9c15}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5ea8d3,MenuBarMenuListItemButtonView as _0x3f9762,View as _0x3e4927,FocusCycler as _0x10f8ef,Dialog as _0x3fbc44,DialogViewPosition as _0x13c8d0,SpinnerView as _0x585c4d,IconView as _0x5382c5,Notification as _0x196691}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xd1694c,DomEmitterMixin as _0x45ba55,global as _0x524ab6,getAncestors as _0x542c52,ObservableMixin as _0x236f34,uid as _0x1592db,createElement as _0x3fc7fa}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x17eb35}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3bb220,info as _0x29df84}from'@uploadcare/upload-client';import*as _0x2a4f67 from'@uploadcare/file-uploader';var i=function(_0xae3537){return _0xae3537['Local']='local',_0xae3537['URL']='url',_0xae3537['Dropbox']='dropbox',_0xae3537['GDrive']='gdrive',_0xae3537['Facebook']='facebook',_0xae3537['GPhotos']='gphotos',_0xae3537['OneDrive']='onedrive',_0xae3537;}({});function _(_0xc50667,_0x40a458,_0x22d63d){const t=_0xc50667['t'],_0x30f778=_0xc50667['t'];switch(_0x40a458){case i['Local']:return{'text':_0x30f778('Insert'===_0x22d63d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x30f778('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x22d63d?_0x30f778('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x30f778('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x22d63d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x22d63d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x22d63d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x22d63d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x22d63d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x40a458;}}class e extends _0x55a113{['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 _0x54c8dc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x48ca3c;for(const _0x1d9ecf in _0x54c8dc){const _0x1898d0=_0x1d9ecf,_0x16e005=_0x54c8dc[_0x1898d0];if('uploadcareLicenseKeyValid'==_0x16e005||'uploadcareLicenseKeyInvalid'==_0x16e005||'uploadcareLicenseKeyExpired'==_0x16e005||'uploadcareLicenseKeyDomainLimit'==_0x16e005||'uploadcareLicenseKeyNotAllowed'==_0x16e005||'uploadcareLicenseKeyEvaluationLimit'==_0x16e005||'uploadcareLicenseKeyTrialLimit'==_0x16e005||'uploadcareLicenseKeyUsageLimit'==_0x16e005){delete _0x54c8dc[_0x1898d0],_0x48ca3c=_0x16e005,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x48ca3c&&_0x54c8dc['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x48ca3c&&_0x54c8dc['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x48ca3c&&_0x54c8dc['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x48ca3c&&_0x54c8dc['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x48ca3c&&_0x54c8dc['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x48ca3c&&_0x54c8dc['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x48ca3c&&_0x54c8dc['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4fde9e}=this,_0x5812f1=_0x4fde9e['commands']['get']('uploadcare');if(!_0x5812f1)return;const _0x41b311=this['_normalizeConfigSourceList'](_0x4fde9e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x517ecf,_0x5b8ac6)=>{const _0x3c9d3b=this['_getIntegrationKey'](_0x5b8ac6['type']);return _0x517ecf[_0x3c9d3b]||(_0x517ecf[_0x3c9d3b]=[]),_0x517ecf[_0x3c9d3b]['push'](_0x5b8ac6),_0x517ecf;},{});_0x4fde9e['plugins']['has']('ImageInsertUI')&&_0x4fde9e['commands']['get']('uploadcare')&&Object['entries'](_0x41b311)['forEach'](([_0x25a0e9,_0x5cb3a8])=>{_0x4fde9e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x25a0e9,'observable':()=>_0x5812f1,'buttonViewCreator':()=>this['_createToolbarButton'](_0x5cb3a8),'formViewCreator':()=>this['_createDropdownButtons'](_0x5cb3a8),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x5cb3a8),'override':'assetManager'!==_0x25a0e9});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x46e312){const {locale:_0x80d726}=this['editor'];return _0x46e312['map'](_0x11b44a=>{const _0x45ca8e=_(_0x80d726,_0x11b44a,'Insert');switch(_0x11b44a){case i['Local']:return{'icon':_0xb99d8b,'type':i['Local'],..._0x45ca8e};case i['URL']:return{'icon':_0x43d718,'type':i['URL'],..._0x45ca8e};case i['Dropbox']:return{'icon':_0x4bdf52,'type':i['Dropbox'],..._0x45ca8e};case i['Facebook']:return{'icon':_0xdacb46,'type':i['Facebook'],..._0x45ca8e};case i['GDrive']:return{'icon':_0x1598c4,'type':i['GDrive'],..._0x45ca8e};case i['GPhotos']:return{'icon':_0x1eb195,'type':i['GPhotos'],..._0x45ca8e};case i['OneDrive']:return{'icon':_0xc572a5,'type':i['OneDrive'],..._0x45ca8e};}});}['_getIntegrationKey'](_0x46d6d7){switch(_0x46d6d7){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4e6fee,_0x118b1c){const _0x4a5b4e=this['editor'],_0x402ae2=new _0x4e6fee(_0x4a5b4e['locale']),_0x18a4ed=_0x4a5b4e['commands']['get']('uploadcare');return _0x402ae2['bind']('isEnabled')['to'](_0x18a4ed),_0x402ae2['on']('execute',()=>{_0x18a4ed['execute'](_0x118b1c);}),_0x402ae2;}['_createToolbarButton'](_0x2e76cc){const {locale:_0x93e1a6}=this['editor'],_0x28ed2f=this['editor']['plugins']['get']('ImageInsertUI'),_0x37522a=_0x2e76cc[0x0],_0x3d1049=this['_createButton'](_0x5ea8d3,_0x37522a['type']);return _0x3d1049['icon']=_0x37522a['icon'],_0x3d1049['bind']('label')['to'](_0x28ed2f,'isImageSelected',_0x841949=>_(_0x93e1a6,_0x37522a['type'],_0x841949?'Replace':'Insert')['text']),_0x3d1049['tooltip']=!0x0,_0x3d1049;}['_createDropdownButtons'](_0x5d91f3){const {locale:_0x2b9918}=this['editor'],_0x47b5be=this['editor']['plugins']['get']('ImageInsertUI');return _0x5d91f3['map'](_0x4e3563=>{const _0x5916cc=this['_createButton'](_0x5ea8d3,_0x4e3563['type']);return _0x5916cc['withText']=!0x0,_0x5916cc['icon']=_0x4e3563['icon'],_0x5916cc['bind']('label')['to'](_0x47b5be,'isImageSelected',_0x1f1029=>_(_0x2b9918,_0x4e3563['type'],_0x1f1029?'Replace':'Insert')['text']),_0x5916cc;});}['_createMenuBarButtons'](_0x267fc4){return _0x267fc4['map'](_0x46ee25=>{const _0x3705a3=this['_createButton'](_0x3f9762,_0x46ee25['type']);return _0x3705a3['icon']=_0x46ee25['icon'],_0x3705a3['label']=_0x46ee25['shortText'],_0x3705a3;});}}class F extends _0x3e4927{['focusTracker'];['focusCycler'];constructor(_0xd0a5){super(_0xd0a5),this['focusTracker']=new _0xd1694c(),this['focusCycler']=new _0x10f8ef({'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(_0x46a917,_0x4136b1){super(_0x46a917),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-'+_0x4136b1}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x58a8c7,_0x5e2c46){const _0x2cbc76=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4c67f5=>_0x4c67f5<=_0x5e2c46)['map'](_0x188cf4=>_0x58a8c7['replace'](/\/$/,'')+'/-/resize/'+_0x188cf4+'x/\x20'+_0x188cf4+'w');return{'imageFallbackUrl':_0x58a8c7,'imageSources':[{'srcset':_0x2cbc76['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5e2c46+'px)\x20100vw,\x20'+_0x5e2c46+'px','type':'image/webp'}]};}function C(_0x2b1f6a,_0x5256ce,_0x1fe7af){const _0x184da7=_0x2b1f6a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x184da7?parseInt(_0x184da7[0x1],0xa):_0x5256ce,'height':_0x184da7?parseInt(_0x184da7[0x2],0xa):_0x1fe7af};}function p(_0x545d16,_0x3731a4){const _0x5f4f1e=new(_0x45ba55())(),_0x25264b=_0x545d16['plugins']['get']('ImageUtils'),_0x533f7e=_0x545d16['editing']['mapper']['toViewElement'](_0x3731a4),_0x430330=_0x25264b['findViewImgElement'](_0x533f7e),_0x963f22=_0x545d16['editing']['view']['domConverter']['viewToDom'](_0x430330),_0x2d1fdc=_0x3731a4['getAttribute']('width'),_0x51adc1=_0x3731a4['getAttribute']('height'),_0x358f2b='image-processing';_0x545d16['editing']['view']['change'](_0xde0f8f=>{_0xde0f8f['addClass'](_0x358f2b,_0x533f7e),_0xde0f8f['setStyle']('aspect-ratio',_0x2d1fdc+'/'+_0x51adc1,_0x430330);}),_0x5f4f1e['listenTo'](_0x963f22,'load',()=>{_0x5f4f1e['stopListening'](_0x963f22,'load'),_0x545d16['editing']['view']['change'](_0x49d6eb=>{_0x49d6eb['removeClass'](_0x358f2b,_0x533f7e),_0x49d6eb['removeStyle']('aspect-ratio',_0x430330);});});}function G(_0x1a4cc1){if(Array['isArray'](_0x1a4cc1)){const _0x1b21a3=_0x1a4cc1['map'](G);return _0xbfb1da=>_0x1b21a3['some'](_0x2b8d85=>_0x2b8d85(_0xbfb1da));}if('origin'==_0x1a4cc1){const _0x1ad198=_0x524ab6['window']['location']['origin'];return _0x54bacf=>new URL(_0x54bacf,_0x524ab6['document']['baseURI'])['origin']==_0x1ad198;}return'function'==typeof _0x1a4cc1?_0x1a4cc1:_0x1a4cc1 instanceof RegExp?_0x9a120=>!(!_0x9a120['match'](_0x1a4cc1)&&!_0x9a120['replace'](/^https?:\/\//,'')['match'](_0x1a4cc1)):()=>!0x1;}function S(_0x3c945,_0x59219b){return _0x542c52(_0x3c945['target'])['includes'](_0x59219b);}class n extends/* #__PURE__ -- @preserve */
24
- _0x236f34(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x38200d,_0x1a69c3,_0x8bd95c){super(),this['_editor']=_0x38200d,this['_editing']=_0x1a69c3,this['_dialog']=_0x38200d['plugins']['get'](_0x3fbc44),this['_api']=_0x1a69c3['ctxElement']['getAPI'](),this['_type']=_0x8bd95c,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:_0x3d0d43,model:_0x546cc8}=this['_editor'],_0x41eb30=_0x546cc8['document']['selection']['getSelectedElement'](),_0xc2624b=_0x41eb30&&(_0x41eb30['is']('element','imageBlock')||_0x41eb30['is']('element','imageInline'));this['_formView']=new x(_0x3d0d43,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xb99d8b,'title':_(_0x3d0d43,this['_type'],_0xc2624b?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x13c8d0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x108ed5=>!S(_0x108ed5,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x43d3af}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x14c6eb=>{const _0x1aa09c=_0x43d3af['length'];for(const _0x53686a of _0x43d3af){const _0xf9e395=_0x53686a===_0x43d3af[_0x1aa09c-0x1],{cdnUrl:_0x544f44,fileInfo:_0x3c8a06}=_0x53686a;if(!_0x544f44||!_0x3c8a06)continue;const {width:_0x743065,height:_0xd49a28}=_0x3c8a06['imageInfo'],_0x5a9007=C(_0x544f44,_0x743065,_0xd49a28),_0x358746=k(_0x544f44,_0x5a9007['width']),_0x4d5c29={'id':_0x3c8a06['uuid'],'type':'image','attributes':{'imageDimension':_0x5a9007,..._0x358746}};this['_insertAsset'](_0x4d5c29,_0xf9e395,_0x14c6eb);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x244c9f=>{'idle'===_0x244c9f['detail']['status']&&!_0x244c9f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4cee0c,_0x3536f3,_0x50feeb){const _0x1c7451=this['_editor']['model']['document']['selection'],_0x3a128f=_0x1c7451['getSelectedElement'](),_0x3d71a0=!(!_0x3a128f||!_0x3a128f['is']('element','imageInline'));_0x50feeb['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4cee0c,_0x3d71a0),_0x3536f3||_0x50feeb['setSelection'](_0x1c7451['getLastPosition']());}['_insertImage'](_0x5cf5b7,_0x3eed72){const _0x131869=this['_editor'],{imageDimension:_0x1e016e,imageFallbackUrl:_0x31c8c9,imageSources:_0x4a72cf}=_0x5cf5b7['attributes'];_0x131869['execute']('insertImage',{'imageType':_0x3eed72?'imageInline':null,'source':{'uploadcareImageId':_0x5cf5b7['id'],'src':_0x31c8c9,'sources':_0x4a72cf,..._0x1e016e}});}}class w extends _0x3f6046{['_editing'];['_controller']=null;static get['requires'](){return[_0x3fbc44,o];}constructor(_0x486e6e){super(_0x486e6e),this['_editing']=_0x486e6e['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xd4df3e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xd4df3e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x209ec2,publicKey:_0x29f98e,signal:_0x3491b2,onProgress:_0x14a6ec}){return _0x3bb220(_0x209ec2,{'publicKey':_0x29f98e,'store':'auto','signal':_0x3491b2,'onProgress':_0x14a6ec});}static['getInfo'](_0x37b1cb,_0x2e3d26){return _0x29df84(_0x37b1cb,_0x2e3d26);}}class f extends _0x55a113{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x17eb35,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2a3b13=this['editor'];if(!!!_0x2a3b13['config']['get']('uploadcare'))return;_0x2a3b13['plugins']['get'](_0x17eb35)['createUploadAdapter']=_0x1b8e5b=>new A(_0x1b8e5b,_0x2a3b13),_0x2a3b13['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x32bc5a,{imageElement:_0x3fdc28,data:_0x1f60af})=>{_0x2a3b13['model']['change'](_0x59114f=>{_0x59114f['setAttribute']('uploadcareImageId',_0x1f60af['uploadcareImageId'],_0x3fdc28);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x30d2d5,_0x27055d){this['loader']=_0x30d2d5,this['editor']=_0x27055d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5cc5de=this['editor']['config']['get']('uploadcare.pubkey'),_0x90907f=await this['loader']['file'];return j['upload']({'file':_0x90907f,'publicKey':_0x5cc5de,'signal':this['controller']['signal'],'onProgress':_0x560234=>{_0x560234&&_0x560234['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x560234['value']);}})['then'](async _0x2da4e1=>{const {imageFallbackUrl:_0x26bf66,imageSources:_0x26a0da}=k(_0x2da4e1['cdnUrl'],_0x2da4e1['imageInfo']['width']);return{'uploadcareImageId':_0x2da4e1['uuid'],'default':_0x26bf66,'sources':_0x26a0da};})['catch'](()=>{const _0x5adfdc=t('Cannot\x20upload\x20file:')+('\x20'+_0x90907f['name']+'.');return Promise['reject'](_0x5adfdc);});}['abort'](){this['controller']['abort']();}}class o extends _0x55a113{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3fbc44];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x12db86){super(_0x12db86),this['ucContextId']=_0x1592db();}['init'](){const _0x5d5333=this['editor'];_0x5d5333['commands']['add']('uploadcare',new w(_0x5d5333));}['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 _0x4a3532=_0x524ab6['document']['querySelector']('input[uploadcare-file-input]');_0x4a3532&&_0x4a3532['remove']();}),async function(_0x3a65cd){const _0x42ced8=_0x56a56b([0x72,0x32,0x6c,0x79,0x64,0x74,0x4a,0x4c,0x5a,0x58,0x30,0x56,0x69,0x70,0x66,0x45,0x38,0x48,0x65,0x34,0x43,0x6e,0x47,0x6d,0x7a,0x33,0x59,0x35,0x42,0x68,0x51,0x57,0x73,0x67,0x50,0x77,0x49,0x52,0x39,0x55,0x4e,0x78,0x6a,0x75,0x53,0x61,0x4b,0x41,0x44,0x54,0x76,0x31,0x37,0x6b,0x71,0x62,0x6f,0x36,0x46,0x63,0x4f,0x4d]),_0x3e12ae=0x59eb7e2a,_0x216ae0=0x59ec11b2^_0x3e12ae,_0x53acaf=window[_0x56a56b([0x44,0x61,0x74,0x65])][_0x56a56b([0x6e,0x6f,0x77])](),_0xc2dd3a=_0x3a65cd[_0x56a56b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e0434=new window[(_0x56a56b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fd8b9=>{_0xc2dd3a[_0x56a56b([0x6f,0x6e,0x63,0x65])](_0x56a56b([0x72,0x65,0x61,0x64,0x79]),_0x3fd8b9);}),_0x3ecbaf={[_0x56a56b([0x6b,0x74,0x79])]:_0x56a56b([0x45,0x43]),[_0x56a56b([0x75,0x73,0x65])]:_0x56a56b([0x73,0x69,0x67]),[_0x56a56b([0x63,0x72,0x76])]:_0x56a56b([0x50,0x2d,0x32,0x35,0x36]),[_0x56a56b([0x78])]:_0x56a56b([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]),[_0x56a56b([0x79])]:_0x56a56b([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]),[_0x56a56b([0x61,0x6c,0x67])]:_0x56a56b([0x45,0x53,0x32,0x35,0x36])},_0x283a4e=_0xc2dd3a[_0x56a56b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x56a56b([0x67,0x65,0x74])](_0x56a56b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31673b(){let _0x56cf21,_0x31ac6a=null,_0x5d7118=null;try{if(_0x283a4e==_0x56a56b([0x47,0x50,0x4c]))return _0x56a56b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x56cf21=_0x2152d4(),!_0x56cf21)return _0x56a56b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x56cf21[_0x56a56b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5d7118=_0x565675(_0x56cf21[_0x56a56b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x56cf21[_0x56a56b([0x6a,0x74,0x69])])),await _0x4c3329()?_0x519a6a()?_0x1e7337()?_0x56a56b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1f9b57()?(_0x56cf21[_0x56a56b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56a56b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x31ac6a=_0x23e8ea(_0x56a56b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x56cf21[_0x56a56b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56a56b([0x74,0x72,0x69,0x61,0x6c])&&(_0x31ac6a=_0x23e8ea(_0x56a56b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b1586()):_0x56a56b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x56a56b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x56a56b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x56a56b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e7337(){const _0x690195=[_0x56a56b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x56a56b([0x74,0x72,0x69,0x61,0x6c])][_0x56a56b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56cf21[_0x56a56b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53acaf/0x3e8:0xe10*_0x216ae0;return _0x56cf21[_0x56a56b([0x65,0x78,0x70])]<_0x690195;}function _0x519a6a(){const _0x2caa4c=_0x56cf21[_0x56a56b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2caa4c&&(!!_0x2caa4c[_0x56a56b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56a56b([0x2a]))||!!_0x2caa4c[_0x56a56b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56a56b([0x55,0x50,0x4c,0x43])));}function _0x1f9b57(){const _0x496a5c=_0x56cf21[_0x56a56b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x496a5c||0x0==_0x496a5c[_0x56a56b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x12f8b4}=new URL(window[_0x56a56b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x496a5c[_0x56a56b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12f8b4))return!0x0;const _0x4b1709=_0x12f8b4[_0x56a56b([0x73,0x70,0x6c,0x69,0x74])](_0x56a56b([0x2e]));return _0x496a5c[_0x56a56b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d7db0=>_0x4d7db0[_0x56a56b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56a56b([0x2a])))[_0x56a56b([0x6d,0x61,0x70])](_0x5f507a=>_0x5f507a[_0x56a56b([0x73,0x70,0x6c,0x69,0x74])](_0x56a56b([0x2e])))[_0x56a56b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34276d=>_0x34276d[_0x56a56b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4b1709[_0x56a56b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x56a56b([0x6d,0x61,0x70])](_0x1cfab2=>Array(_0x4b1709[_0x56a56b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1cfab2[_0x56a56b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x56a56b([0x66,0x69,0x6c,0x6c])](_0x1cfab2[0x0]===_0x56a56b([0x2a])?_0x56a56b([0x2a]):'')[_0x56a56b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1cfab2))[_0x56a56b([0x73,0x6f,0x6d,0x65])](_0x1cfeaa=>_0x4b1709[_0x56a56b([0x65,0x76,0x65,0x72,0x79])]((_0x15431a,_0x3d9484)=>_0x1cfeaa[_0x3d9484]===_0x15431a||_0x1cfeaa[_0x3d9484]===_0x56a56b([0x2a])));}function _0x4b1586(){return _0x31ac6a&&_0x5d7118?new window[(_0x56a56b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26f7e6,_0x3f66d2)=>{_0x31ac6a[_0x56a56b([0x74,0x68,0x65,0x6e])](_0x26f7e6,_0x3f66d2),_0x5d7118[_0x56a56b([0x74,0x68,0x65,0x6e])](_0x3fdf23=>{_0x3fdf23!=_0x56a56b([0x56,0x61,0x6c,0x69,0x64])&&_0x26f7e6(_0x3fdf23);},_0x3f66d2);}):_0x31ac6a||_0x5d7118||_0x56a56b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x565675(_0x656ab,_0x51113f){return new window[(_0x56a56b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x914137=>{if(_0x11f2b4())return _0x914137(_0x56a56b([0x56,0x61,0x6c,0x69,0x64]));_0x243dec(),_0xc2dd3a[_0x56a56b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x56a56b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x23c027=!0x1;const _0x160cad=_0x1592db();function _0x3a197c(_0x216e47){return!!_0x216e47&&(typeof _0x216e47===_0x56a56b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x216e47===_0x56a56b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x216e47[_0x56a56b([0x74,0x68,0x65,0x6e])]===_0x56a56b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x216e47[_0x56a56b([0x63,0x61,0x74,0x63,0x68])]===_0x56a56b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c692(_0x142e29){_0x50ea68(_0x142e29)[_0x56a56b([0x74,0x68,0x65,0x6e])](_0x4380e0=>{if(!_0x4380e0||_0x4380e0[_0x56a56b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x56a56b([0x6f,0x6b]))return _0x56a56b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d784b(_0x2b6265(_0x160cad+_0x51113f))!=_0x4380e0[_0x56a56b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x56a56b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x56a56b([0x56,0x61,0x6c,0x69,0x64]);})[_0x56a56b([0x74,0x68,0x65,0x6e])](_0x4e6ccd=>(_0x40e315(),_0x4e6ccd),()=>{const _0x2a013d=_0x512299();return null==_0x2a013d?(_0x40e315(),_0x56a56b([0x56,0x61,0x6c,0x69,0x64])):_0x56a56b(_0x53acaf-_0x2a013d>(0x7de7fa2a^_0x3e12ae)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x56a56b([0x74,0x68,0x65,0x6e])](_0x914137)[_0x56a56b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x914137(_0x56a56b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xab2fb4=0x59dd90aa^_0x3e12ae;function _0x40e315(){const _0x25a8f1=_0x56a56b([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d784b(_0x2b6265(_0x656ab)),_0x110a37=_0x16705a(_0x3d784b(window[_0x56a56b([0x4d,0x61,0x74,0x68])][_0x56a56b([0x63,0x65,0x69,0x6c])](_0x53acaf/_0xab2fb4)));window[_0x56a56b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56a56b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x25a8f1,_0x110a37);}function _0x512299(){const _0x19fe03=_0x56a56b([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d784b(_0x2b6265(_0x656ab)),_0x373bcc=window[_0x56a56b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56a56b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19fe03);return _0x373bcc?window[_0x56a56b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x16705a(_0x373bcc),0x10)*_0xab2fb4:null;}function _0x50ea68(_0xe4a2f5){return new window[(_0x56a56b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28bab3,_0x4f182a)=>{_0xe4a2f5[_0x56a56b([0x74,0x68,0x65,0x6e])](_0x28bab3,_0x4f182a),window[_0x56a56b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f182a,0x59eaaaea^_0x3e12ae);});}}_0xc2dd3a[_0x56a56b([0x6f,0x6e])](_0x56a56b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x392c44,_0x57421c)=>{if(_0x57421c[0x0]!=_0x656ab)return _0x914137(_0x56a56b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57421c[0x1]={..._0x57421c[0x1],[_0x56a56b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x160cad};},{[_0x56a56b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56a56b([0x68,0x69,0x67,0x68])}),_0xc2dd3a[_0x56a56b([0x6f,0x6e])](_0x56a56b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x30f04f=>{_0x3a197c(_0x30f04f[_0x56a56b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x23c027=!0x0,_0x4c692(_0x30f04f[_0x56a56b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x56a56b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56a56b([0x6c,0x6f,0x77])}),_0x5e0434[_0x56a56b([0x74,0x68,0x65,0x6e])](()=>{_0x23c027||_0x914137(_0x56a56b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x11f2b4(){return _0xc2dd3a[_0x56a56b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56a56b([0x76,0x69,0x65,0x77])][_0x56a56b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x56a56b([0x61,0x75,0x74,0x6f]);}function _0x243dec(){_0xc2dd3a[_0x56a56b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56a56b([0x76,0x69,0x65,0x77])][_0x56a56b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56a56b([0x61,0x75,0x74,0x6f]);}}function _0x23e8ea(_0x4fe064){const _0x5d4d30=[new window[(_0x56a56b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e6ec0=>setTimeout(_0x2e6ec0,0x59e240e6^_0x3e12ae)),_0x5e0434[_0x56a56b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x56a56b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f6006=>{let _0x33034a=0x0;_0xc2dd3a[_0x56a56b([0x6d,0x6f,0x64,0x65,0x6c])][_0x56a56b([0x6f,0x6e])](_0x56a56b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x460748,_0x5d2f69)=>{_0x5d2f69[0x0][_0x56a56b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x33034a++,_0x33034a==(0x59eb7fd2^_0x3e12ae)&&(_0x1f6006(),_0x460748[_0x56a56b([0x6f,0x66,0x66])]());});}))];return window[_0x56a56b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56a56b([0x72,0x61,0x63,0x65])](_0x5d4d30)[_0x56a56b([0x74,0x68,0x65,0x6e])](()=>_0x4fe064);}async function _0x38cbd6(){await _0x5e0434,_0xc2dd3a[_0x56a56b([0x6d,0x6f,0x64,0x65,0x6c])][_0x56a56b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x32773c,_0xc2dd3a[_0x56a56b([0x6d,0x6f,0x64,0x65,0x6c])][_0x56a56b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x32773c,_0xc2dd3a[_0x56a56b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x56a56b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x520c86(_0x24df29){const _0x15af2d=_0x453255();_0xc2dd3a[_0x15af2d]=_0x56a56b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x24df29,_0x24df29!=_0x56a56b([0x56,0x61,0x6c,0x69,0x64])&&_0x38cbd6();}function _0x453255(){const _0x1ae0ef=window[_0x56a56b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x56a56b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x56a56b([0x6e,0x6f,0x77])]())[_0x56a56b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x56a56b([0x2e]),'');let _0x3d222f=_0x56a56b([0x72]);for(let _0x545799=0x0;_0x545799<_0x1ae0ef[_0x56a56b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x545799+=0x2){let _0x5d4a68=window[_0x56a56b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ae0ef[_0x56a56b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x545799,_0x545799+0x2));_0x5d4a68>=_0x42ced8[_0x56a56b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d4a68-=_0x42ced8[_0x56a56b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d222f+=_0x42ced8[_0x5d4a68];}return _0x3d222f;}function _0x2152d4(){const _0x38a352=_0x283a4e[_0x56a56b([0x73,0x70,0x6c,0x69,0x74])](_0x56a56b([0x2e]));if(0x3!=_0x38a352[_0x56a56b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x588700(_0x38a352[0x1]);function _0x588700(_0x582640){const _0x1abe3f=_0x5d3c90(_0x582640);return _0x1abe3f&&_0x321513()?_0x1abe3f:null;function _0x321513(){const _0x82eeff=_0x1abe3f[_0x56a56b([0x6a,0x74,0x69])],_0x5130a1=window[_0x56a56b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x82eeff[_0x56a56b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x82eeff[_0x56a56b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e4745={..._0x1abe3f,[_0x56a56b([0x6a,0x74,0x69])]:_0x82eeff[_0x56a56b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x82eeff[_0x56a56b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e4745[_0x56a56b([0x76,0x63])],_0x2b6265(_0x4e4745)==_0x5130a1;}}}async function _0x4c3329(){let _0xd88721=!0x0;try{const _0x3c030a=_0x283a4e[_0x56a56b([0x73,0x70,0x6c,0x69,0x74])](_0x56a56b([0x2e])),[_0x3d151c,_0x24dc7e,_0x6310da]=_0x3c030a;return _0x525886(_0x3d151c),await _0x51efc1(_0x3d151c,_0x24dc7e,_0x6310da),_0xd88721;}catch{return!0x1;}function _0x525886(_0x515703){const _0x4ae68b=_0x5d3c90(_0x515703);_0x4ae68b&&_0x4ae68b[_0x56a56b([0x61,0x6c,0x67])]==_0x56a56b([0x45,0x53,0x32,0x35,0x36])||(_0xd88721=!0x1);}async function _0x51efc1(_0x177f11,_0x2f7db4,_0x24efe5){const _0x2e3c45=window[_0x56a56b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x56a56b([0x66,0x72,0x6f,0x6d])](_0x802d1f(_0x24efe5),_0x3fed31=>_0x3fed31[_0x56a56b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2dbd08=new window[(_0x56a56b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x56a56b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x177f11+_0x56a56b([0x2e])+_0x2f7db4),_0x4bc83f=window[_0x56a56b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x56a56b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4bc83f)return;const _0x4f3521=await _0x4bc83f[_0x56a56b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x56a56b([0x6a,0x77,0x6b]),_0x3ecbaf,{[_0x56a56b([0x6e,0x61,0x6d,0x65])]:_0x56a56b([0x45,0x43,0x44,0x53,0x41]),[_0x56a56b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x56a56b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x56a56b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4bc83f[_0x56a56b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x56a56b([0x6e,0x61,0x6d,0x65])]:_0x56a56b([0x45,0x43,0x44,0x53,0x41]),[_0x56a56b([0x68,0x61,0x73,0x68])]:{[_0x56a56b([0x6e,0x61,0x6d,0x65])]:_0x56a56b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4f3521,_0x2e3c45,_0x2dbd08)||(_0xd88721=!0x1);}}function _0x5d3c90(_0x302c09){return _0x302c09[_0x56a56b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x56a56b([0x65,0x79]))?JSON[_0x56a56b([0x70,0x61,0x72,0x73,0x65])](_0x802d1f(_0x302c09)):null;}function _0x802d1f(_0x5a97e3){return window[_0x56a56b([0x61,0x74,0x6f,0x62])](_0x5a97e3[_0x56a56b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x56a56b([0x2b]))[_0x56a56b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x56a56b([0x2f])));}function _0x2b6265(_0x58bf84){let _0x654672=0x1505;function _0x3057a8(_0x190050){for(let _0x17afe0=0x0;_0x17afe0<_0x190050[_0x56a56b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17afe0++){const _0x2da624=_0x190050[_0x56a56b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x17afe0);_0x654672=(_0x654672<<0x5)+_0x654672+_0x2da624,_0x654672&=_0x654672;}}function _0xbc6d02(_0x3a357e){Array[_0x56a56b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3a357e)?_0x3a357e[_0x56a56b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xbc6d02):_0x3a357e&&typeof _0x3a357e==_0x56a56b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x56a56b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3a357e)[_0x56a56b([0x73,0x6f,0x72,0x74])]()[_0x56a56b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x522200,_0x5591c0])=>{_0x3057a8(_0x522200),_0xbc6d02(_0x5591c0);}):_0x3057a8(window[_0x56a56b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3a357e));}return _0xbc6d02(_0x58bf84),_0x654672>>>0x0;}function _0x3d784b(_0x422d49){return _0x422d49[_0x56a56b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x56a56b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x56a56b([0x30]));}function _0x16705a(_0x33124d){return _0x33124d[_0x56a56b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x56a56b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x56a56b([0x6a,0x6f,0x69,0x6e])]('');}function _0x32773c(){}function _0x56a56b(_0x2604b7){return _0x2604b7['map'](_0xafc69b=>String['fromCharCode'](_0xafc69b))['join']('');}_0x520c86(await _0x31673b());}(this);}['_initSchema'](){const _0x48085e=this['editor']['model']['schema'];_0x48085e['isRegistered']('imageBlock')&&_0x48085e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x48085e['isRegistered']('imageInline')&&_0x48085e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x10fcff=this['editor'];_0x10fcff['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x10fcff['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x32cc17=>_0x32cc17['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x295db5=_0x10fcff['commands']['get']('replaceImageSource');_0x295db5&&this['listenTo'](_0x295db5,'cleanupImage',(_0x271d17,[_0x10935a,_0x1da8a5])=>{_0x10935a['removeAttribute']('uploadcareImageId',_0x1da8a5);});}['_initConfig'](){const _0x3bf166=this['editor']['config']['get']('uploadcare.uploader')||{},_0x319c3e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3fc7fa(_0x524ab6['document'],'uc-config',{..._0x3bf166,'pubkey':_0x319c3e,'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']=_0x591b81=>{if('closeMax'==_0x591b81)return'#uc-icon-arrow-down';},_0x524ab6['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3fc7fa(_0x524ab6['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x524ab6['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3999b6=this['editor']['commands']['get']('insertImage');_0x3999b6&&this['listenTo'](_0x3999b6,'execute',()=>{const _0x163447=this['editor']['model']['document']['selection']['getSelectedElement']();_0x163447&&_0x163447['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x163447);});});const _0x7de69b=this['editor']['commands']['get']('uploadcareImageReplace');_0x7de69b&&this['listenTo'](_0x7de69b,'execute',()=>{const _0x25a474=this['editor']['model']['document']['selection']['getSelectedElement']();_0x25a474&&_0x25a474['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x25a474);});});}}class tt extends _0x55a113{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe31f53){super(_0xe31f53),_0xe31f53['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2a4f67['defineComponents'](_0x2a4f67);}}class ii extends _0x3e4927{constructor(_0x423bfe){super(_0x423bfe);const t=_0x423bfe['t'],_0x2ff613=this['bindTemplate'],_0x146300=new _0x585c4d();_0x146300['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':[_0x146300,{'text':_0x2ff613['to']('imageUploadProgress',_0x213ba9=>t('Loading\x20image...')+'\x20('+(_0x213ba9||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 _0x3e4927{constructor(_0x804df3){super(_0x804df3);const t=_0x804df3['t'];this['set']('errorType',null);const _0x5c9c92=new _0x5ea8d3(_0x804df3);_0x5c9c92['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5c9c92['withText']=!0x0,_0x5c9c92['class']='ck-button-action',_0x5c9c92['on']('execute',()=>{this['fire']('retry');}),_0x5c9c92['bind']('isVisible')['to'](this,'errorType',_0x3520c4=>'NotFound'!==_0x3520c4);const _0x5f28a2=new _0x5382c5();_0x5f28a2['content']=_0x215ab4,_0x5f28a2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x50c48a=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':[_0x5f28a2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x50c48a['to']('errorType',_0xf16360=>t('NotFound'!==_0xf16360?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5c9c92]},{'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 _0x3e4927{constructor(_0x2548b6,_0x2be96e){super(_0x2548b6);const _0x6b5d72=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2be96e,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x6b5d72['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xdc2286,_0x4a500e,_0x30903e){super(_0xdc2286),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xdc2286),this['_errorView']=new ti(_0xdc2286),this['_editingView']=new ei(_0xdc2286,_0x30903e),this['_focusableView']=new _0x3e4927(_0xdc2286),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4a500e),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'],_0x21c2bd=>{this['_addUploadcareImageEditorListeners'](_0x21c2bd);});}),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'](_0x628557,_0x32054e){const _0x118706='uc-cloud-image-editor',_0x56abea=_0x628557['querySelector'](_0x118706);if(_0x56abea)return _0x32054e(_0x56abea);const _0x355b6b=new MutationObserver(_0x12e9f5=>{const _0x340abe=_0x12e9f5['filter'](_0xd6cd05=>_0xd6cd05['target']===_0x628557&&_0xd6cd05['addedNodes']['length']>0x0&&_0xd6cd05['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x118706);_0x340abe['length']&&(_0x355b6b['disconnect'](),_0x32054e(_0x340abe[0x0]['addedNodes'][0x0]));});_0x355b6b['observe'](_0x628557,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x36d389){_0x36d389['addEventListener']('apply',_0x581c6a=>{this['fire']('apply',{'imageSrc':_0x581c6a['detail']['cdnUrl']});}),_0x36d389['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x236f34(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x9267ef,_0x24a6de,_0x505c85){super(),this['_editor']=_0x9267ef,this['_dialog']=_0x24a6de,this['_imageElement']=_0x505c85,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 _0x53a272=this['_imageElement'],_0x342f18=_0x53a272['getAttribute']('uploadcareImageId'),_0x502ec1=_0x53a272['getAttribute']('src');if(_0x342f18)await this['_loadImageInfo'](_0x342f18,_0x502ec1);else{if(this['_imageCache']['has'](_0x502ec1)){const _0x3af973=this['_imageCache']['get'](_0x502ec1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3af973['url'],this['imageDimension']=_0x3af973['dimension'],this['imageId']=_0x3af973['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x37b686}=this['_editor'],t=_0x37b686['t'],_0x138d51=new X(_0x37b686,this['imageStatus'],this['_attributes']);_0x138d51['bind']('status')['to'](this,'imageStatus'),_0x138d51['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x138d51['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x138d51['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x138d51,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3b9c15,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x138d51,'position':_0x13c8d0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x138d51['focus']();},'onHide':()=>{_0x138d51['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2ab12e=>!S(_0x2ab12e,_0x138d51['element'])}});}['_loadImageInfo'](_0x2acd91,_0x1bc5a1){return j['getInfo'](_0x2acd91,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x29d0e6=>{const {width:_0x4296f6,height:_0x1a39cf}=_0x29d0e6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1bc5a1,this['imageDimension']={'width':_0x4296f6,'height':_0x1a39cf},this['imageId']=_0x2acd91;})['catch'](_0x445112=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x445112['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d30fb,_0x43d6f){return this['_getImageAsFile'](_0x1d30fb)['then'](_0x5a1654=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x43d6f['signal'],'file':_0x5a1654,'onProgress':_0x11794d=>{_0x11794d&&_0x11794d['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x11794d['value']));}}))['then'](_0x100405=>{const {width:_0xf1e39d,height:_0x47aae1}=_0x100405['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x100405['cdnUrl'],this['imageDimension']={'width':_0xf1e39d,'height':_0x47aae1},this['imageId']=_0x100405['uuid'],this['imageUploadProgress']=null;const _0x4b1ec1=_0x1d30fb['getAttribute']('src');this['_imageCache']['set'](_0x4b1ec1,{'id':_0x100405['uuid'],'url':_0x100405['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x192909=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x192909['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x9d578c,_0x8a2500){_0x9d578c['on']('apply',(_0x352abf,_0x144dd8)=>{this['_replaceImage'](_0x8a2500,_0x144dd8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x9d578c['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x9d578c['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4f1a4f,_0x5a2684,_0x2560be){const _0x44b14b=this['_editor'],{width:_0x2ec06b,height:_0x1b5830}=C(_0x5a2684,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x522f06,imageSources:_0x40e3ca}=k(_0x5a2684,_0x2ec06b);_0x44b14b['model']['change'](_0xe6034b=>{if('$graveyard'===_0x4f1a4f['root']['rootName']){_0x44b14b['execute']('insertImage',{'imageType':_0x4f1a4f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4f1a4f['getAttributes']()),'uploadcareImageId':_0x2560be,'src':_0x522f06,'sources':_0x40e3ca,'width':_0x2ec06b,'height':_0x1b5830}});const _0x208bc9=_0x4f1a4f['getChildren']();_0x4f1a4f=_0x44b14b['model']['document']['selection']['getSelectedElement']();for(const _0x103bb5 of _0x208bc9)_0xe6034b['append'](_0xe6034b['cloneElement'](_0x103bb5),_0x4f1a4f);}else _0xe6034b['setSelection'](_0x4f1a4f,'on'),_0x44b14b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4f1a4f['getAttributes']()),'uploadcareImageId':_0x2560be,'src':_0x522f06,'sources':_0x40e3ca,'width':_0x2ec06b,'height':_0x1b5830},_0x4f1a4f);_0xe6034b['setSelection'](_0x4f1a4f,'on');});}async['_getImageAsFile'](_0x1a8a3d){const _0x2ce50a=_0x524ab6['window'],_0x5514a5=_0x524ab6['document']['location']['href'],_0x57583a=new _0x2ce50a['URL'](_0x1a8a3d['getAttribute']('src'),_0x5514a5);if('data:'===_0x57583a['protocol']){const _0x95edae=_0x57583a['href']['split'](','),_0x1e07a8=_0x95edae[0x0]['match'](/:(.*?);/)[0x1],_0x9742cd=_0x1e07a8['split']('/')[0x1],_0x512385=_0x2ce50a['atob'](_0x95edae[_0x95edae['length']-0x1]);let _0x5794b5=_0x512385['length'];const _0x6ded7b=new _0x2ce50a['Uint8Array'](_0x5794b5);for(;_0x5794b5--;)_0x6ded7b[_0x5794b5]=_0x512385['charCodeAt'](_0x5794b5);return new _0x2ce50a['File']([_0x6ded7b],'image.'+_0x9742cd,{'type':_0x1e07a8});}const _0x1579d0=_0x57583a['href']['split']('/'),_0x1e9eaa=_0x1579d0[_0x1579d0['length']-0x1],_0x5d476d=_0x1e9eaa['split']('.')[0x1];return _0x2ce50a['fetch'](_0x57583a['href'])['then'](_0x41103f=>_0x41103f['clone']()['blob']())['then'](_0x59faeb=>new _0x2ce50a['File']([_0x59faeb],_0x1e9eaa,{'type':'image/'+_0x5d476d}));}}class O extends _0x3f6046{['imageEditController'];static get['requires'](){return[_0x3fbc44];}['_isEditable'];constructor(_0x6f73b){super(_0x6f73b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x5af3bf){const _0x1098fb=G(_0x5af3bf);return _0x270833=>!(!_0x270833||!_0x270833['is']('element','imageBlock')&&!_0x270833['is']('element','imageInline'))&&(!!_0x270833['hasAttribute']('uploadcareImageId')||!!_0x270833['hasAttribute']('src')&&_0x1098fb(_0x270833['getAttribute']('src')));}(_0x6f73b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5626c7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5626c7);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x54aa20=this['editor']['model']['document']['selection']['getSelectedElement']();_0x54aa20&&(_0x54aa20['is']('element','imageBlock')||_0x54aa20['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x3fbc44),_0x54aa20),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x3f6046{['refresh'](){const _0x260d11=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x260d11&&(_0x260d11['is']('element','imageBlock')||_0x260d11['is']('element','imageInline')));}['execute'](_0x252cf1){const _0xf2075=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3f5a06=>{_0x3f5a06['setAttributes'](_0x252cf1,_0xf2075),_0x3f5a06['removeAttribute']('srcset',_0xf2075),_0x3f5a06['removeAttribute']('sizes',_0xf2075);});}}class m extends _0x55a113{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x196691,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3cb656}=this;_0x3cb656['commands']['add']('uploadcareImageEdit',new O(_0x3cb656)),_0x3cb656['commands']['add']('uploadcareImageReplace',new R(_0x3cb656));}}class g extends _0x55a113{['_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 _0x688eeb=this['editor'];_0x688eeb['ui']['componentFactory']['add']('uploadcareImageEdit',_0x156cb8=>{const _0x40551e=_0x688eeb['commands']['get']('uploadcareImageEdit'),_0x51e97f=new _0x5ea8d3(_0x156cb8),t=_0x156cb8['t'];return _0x51e97f['set']({'icon':_0x3b9c15,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x51e97f['bind']('isEnabled')['to'](_0x40551e),_0x51e97f['bind']('isOn')['to'](_0x40551e,'isActive'),this['listenTo'](_0x51e97f,'execute',()=>{_0x688eeb['execute']('uploadcareImageEdit'),_0x688eeb['editing']['view']['focus']();}),_0x51e97f;}),this['_initConfig']();}['_initConfig'](){const _0x52cd88=_0x3fc7fa(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x52cd88),this['listenTo'](this['editor'],'destroy',()=>{_0x52cd88['remove']();});}}class et extends _0x55a113{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 _0x5933e8,Command as _0x450d17}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1d6bcf,IconGooglePhotos as _0x3ccb44,IconGoogleDrive as _0x53c432,IconFacebook as _0x1a8522,IconDropbox as _0x1f14d7,IconUploadcareLink as _0x4fc3a0,IconUploadcareImageUpload as _0x5ed800,IconError as _0x4445e7,IconUploadcareImageEdit as _0x1b2ca2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4be5bc,MenuBarMenuListItemButtonView as _0x5787a3,View as _0xca7813,FocusCycler as _0x985cb6,Dialog as _0x4ce859,DialogViewPosition as _0x1c5766,SpinnerView as _0x4055b6,IconView as _0x459cd1,Notification as _0x31ddf3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4a82d5,DomEmitterMixin as _0xb236a5,global as _0x516205,getAncestors as _0x436dab,ObservableMixin as _0x14f426,uid as _0x55252a,createElement as _0x14cb5a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x56c01b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5bfe38,info as _0xbabb46}from'@uploadcare/upload-client';import*as _0x3313f0 from'@uploadcare/file-uploader';var i=function(_0x52258b){return _0x52258b['Local']='local',_0x52258b['URL']='url',_0x52258b['Dropbox']='dropbox',_0x52258b['GDrive']='gdrive',_0x52258b['Facebook']='facebook',_0x52258b['GPhotos']='gphotos',_0x52258b['OneDrive']='onedrive',_0x52258b;}({});function _(_0x4d7c0e,_0x503609,_0x14a92c){const t=_0x4d7c0e['t'],_0x4afbdf=_0x4d7c0e['t'];switch(_0x503609){case i['Local']:return{'text':_0x4afbdf('Insert'===_0x14a92c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4afbdf('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x14a92c?_0x4afbdf('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4afbdf('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x14a92c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x14a92c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x14a92c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x14a92c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x14a92c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x503609;}}class e extends _0x5933e8{['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 _0x3c308d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5f1a91;for(const _0x5cb6b2 in _0x3c308d){const _0x165849=_0x5cb6b2,_0x50d5f3=_0x3c308d[_0x165849];if('uploadcareLicenseKeyValid'==_0x50d5f3||'uploadcareLicenseKeyInvalid'==_0x50d5f3||'uploadcareLicenseKeyExpired'==_0x50d5f3||'uploadcareLicenseKeyDomainLimit'==_0x50d5f3||'uploadcareLicenseKeyNotAllowed'==_0x50d5f3||'uploadcareLicenseKeyEvaluationLimit'==_0x50d5f3||'uploadcareLicenseKeyTrialLimit'==_0x50d5f3||'uploadcareLicenseKeyUsageLimit'==_0x50d5f3){delete _0x3c308d[_0x165849],_0x5f1a91=_0x50d5f3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5f1a91&&_0x3c308d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5f1a91&&_0x3c308d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5f1a91&&_0x3c308d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5f1a91&&_0x3c308d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5f1a91&&_0x3c308d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5f1a91&&_0x3c308d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5f1a91&&_0x3c308d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3eefaa}=this,_0x66aada=_0x3eefaa['commands']['get']('uploadcare');if(!_0x66aada)return;const _0x156bed=this['_normalizeConfigSourceList'](_0x3eefaa['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x35921b,_0x1ac504)=>{const _0x1fd4b5=this['_getIntegrationKey'](_0x1ac504['type']);return _0x35921b[_0x1fd4b5]||(_0x35921b[_0x1fd4b5]=[]),_0x35921b[_0x1fd4b5]['push'](_0x1ac504),_0x35921b;},{});_0x3eefaa['plugins']['has']('ImageInsertUI')&&_0x3eefaa['commands']['get']('uploadcare')&&Object['entries'](_0x156bed)['forEach'](([_0x13f37d,_0x23146b])=>{_0x3eefaa['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x13f37d,'observable':()=>_0x66aada,'buttonViewCreator':()=>this['_createToolbarButton'](_0x23146b),'formViewCreator':()=>this['_createDropdownButtons'](_0x23146b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x23146b),'override':'assetManager'!==_0x13f37d});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2b75ec){const {locale:_0x47675e}=this['editor'];return _0x2b75ec['map'](_0x2bf3a2=>{const _0x3b81aa=_(_0x47675e,_0x2bf3a2,'Insert');switch(_0x2bf3a2){case i['Local']:return{'icon':_0x5ed800,'type':i['Local'],..._0x3b81aa};case i['URL']:return{'icon':_0x4fc3a0,'type':i['URL'],..._0x3b81aa};case i['Dropbox']:return{'icon':_0x1f14d7,'type':i['Dropbox'],..._0x3b81aa};case i['Facebook']:return{'icon':_0x1a8522,'type':i['Facebook'],..._0x3b81aa};case i['GDrive']:return{'icon':_0x53c432,'type':i['GDrive'],..._0x3b81aa};case i['GPhotos']:return{'icon':_0x3ccb44,'type':i['GPhotos'],..._0x3b81aa};case i['OneDrive']:return{'icon':_0x1d6bcf,'type':i['OneDrive'],..._0x3b81aa};}});}['_getIntegrationKey'](_0x2f75a0){switch(_0x2f75a0){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1b52c5,_0x41ca94){const _0x5795b5=this['editor'],_0x361cc6=new _0x1b52c5(_0x5795b5['locale']),_0x58d09f=_0x5795b5['commands']['get']('uploadcare');return _0x361cc6['bind']('isEnabled')['to'](_0x58d09f),_0x361cc6['on']('execute',()=>{_0x58d09f['execute'](_0x41ca94);}),_0x361cc6;}['_createToolbarButton'](_0x59d4d3){const {locale:_0x15f704}=this['editor'],_0x31462c=this['editor']['plugins']['get']('ImageInsertUI'),_0x44915e=_0x59d4d3[0x0],_0x2d9325=this['_createButton'](_0x4be5bc,_0x44915e['type']);return _0x2d9325['icon']=_0x44915e['icon'],_0x2d9325['bind']('label')['to'](_0x31462c,'isImageSelected',_0xf0aeb5=>_(_0x15f704,_0x44915e['type'],_0xf0aeb5?'Replace':'Insert')['text']),_0x2d9325['tooltip']=!0x0,_0x2d9325;}['_createDropdownButtons'](_0x1b48d2){const {locale:_0x5c2f79}=this['editor'],_0x4464b3=this['editor']['plugins']['get']('ImageInsertUI');return _0x1b48d2['map'](_0x46a244=>{const _0x39c83a=this['_createButton'](_0x4be5bc,_0x46a244['type']);return _0x39c83a['withText']=!0x0,_0x39c83a['icon']=_0x46a244['icon'],_0x39c83a['bind']('label')['to'](_0x4464b3,'isImageSelected',_0x17fd57=>_(_0x5c2f79,_0x46a244['type'],_0x17fd57?'Replace':'Insert')['text']),_0x39c83a;});}['_createMenuBarButtons'](_0x30561f){return _0x30561f['map'](_0x2874ff=>{const _0x1f04f7=this['_createButton'](_0x5787a3,_0x2874ff['type']);return _0x1f04f7['icon']=_0x2874ff['icon'],_0x1f04f7['label']=_0x2874ff['shortText'],_0x1f04f7;});}}class F extends _0xca7813{['focusTracker'];['focusCycler'];constructor(_0x2a40ff){super(_0x2a40ff),this['focusTracker']=new _0x4a82d5(),this['focusCycler']=new _0x985cb6({'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(_0x1b082d,_0x6711cb){super(_0x1b082d),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-'+_0x6711cb}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x125c89,_0x1c550d){const _0x13898a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x12c229=>_0x12c229<=_0x1c550d)['map'](_0x45c23f=>_0x125c89['replace'](/\/$/,'')+'/-/resize/'+_0x45c23f+'x/\x20'+_0x45c23f+'w');return{'imageFallbackUrl':_0x125c89,'imageSources':[{'srcset':_0x13898a['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1c550d+'px)\x20100vw,\x20'+_0x1c550d+'px','type':'image/webp'}]};}function C(_0x94d61f,_0x52f624,_0x875bdd){const _0x58ce41=_0x94d61f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x58ce41?parseInt(_0x58ce41[0x1],0xa):_0x52f624,'height':_0x58ce41?parseInt(_0x58ce41[0x2],0xa):_0x875bdd};}function p(_0x402d10,_0x5933dc){const _0x3a6788=new(_0xb236a5())(),_0x1da029=_0x402d10['plugins']['get']('ImageUtils'),_0x418544=_0x402d10['editing']['mapper']['toViewElement'](_0x5933dc),_0xf8c9b1=_0x1da029['findViewImgElement'](_0x418544),_0x4f1a67=_0x402d10['editing']['view']['domConverter']['viewToDom'](_0xf8c9b1),_0x4cb583=_0x5933dc['getAttribute']('width'),_0x150ea0=_0x5933dc['getAttribute']('height'),_0x575404='image-processing';_0x402d10['editing']['view']['change'](_0x55c6f5=>{_0x55c6f5['addClass'](_0x575404,_0x418544),_0x55c6f5['setStyle']('aspect-ratio',_0x4cb583+'/'+_0x150ea0,_0xf8c9b1);}),_0x3a6788['listenTo'](_0x4f1a67,'load',()=>{_0x3a6788['stopListening'](_0x4f1a67,'load'),_0x402d10['editing']['view']['change'](_0x57e971=>{_0x57e971['removeClass'](_0x575404,_0x418544),_0x57e971['removeStyle']('aspect-ratio',_0xf8c9b1);});});}function G(_0xada97b){if(Array['isArray'](_0xada97b)){const _0xe89c94=_0xada97b['map'](G);return _0x2c2d01=>_0xe89c94['some'](_0x10c243=>_0x10c243(_0x2c2d01));}if('origin'==_0xada97b){const _0x13258d=_0x516205['window']['location']['origin'];return _0x176023=>new URL(_0x176023,_0x516205['document']['baseURI'])['origin']==_0x13258d;}return'function'==typeof _0xada97b?_0xada97b:_0xada97b instanceof RegExp?_0x5ef0d9=>!(!_0x5ef0d9['match'](_0xada97b)&&!_0x5ef0d9['replace'](/^https?:\/\//,'')['match'](_0xada97b)):()=>!0x1;}function S(_0x59f432,_0x431a29){return _0x436dab(_0x59f432['target'])['includes'](_0x431a29);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x14f426(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4e9583,_0x25afd9,_0x165e69){super(),this['_editor']=_0x4e9583,this['_editing']=_0x25afd9,this['_dialog']=_0x4e9583['plugins']['get'](_0x4ce859),this['_api']=_0x25afd9['ctxElement']['getAPI'](),this['_type']=_0x165e69,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:_0x43b579,model:_0x5b196a}=this['_editor'],_0x4b0883=_0x5b196a['document']['selection']['getSelectedElement'](),_0x3238d9=_0x4b0883&&(_0x4b0883['is']('element','imageBlock')||_0x4b0883['is']('element','imageInline'));this['_formView']=new x(_0x43b579,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5ed800,'title':_(_0x43b579,this['_type'],_0x3238d9?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1c5766['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x114e03=>!S(_0x114e03,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5200ca}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x6db82c=>{const _0x13e6af=_0x5200ca['length'];for(const _0x4bf91f of _0x5200ca){const _0x17cea9=_0x4bf91f===_0x5200ca[_0x13e6af-0x1],{cdnUrl:_0x184cb3,fileInfo:_0x1ff926}=_0x4bf91f;if(!_0x184cb3||!_0x1ff926)continue;const {width:_0x317c12,height:_0x4476c0}=_0x1ff926['imageInfo'],_0x2d8a63=C(_0x184cb3,_0x317c12,_0x4476c0),_0x3c4c24=k(_0x184cb3,_0x2d8a63['width']),_0x57e889={'id':_0x1ff926['uuid'],'type':'image','attributes':{'imageDimension':_0x2d8a63,..._0x3c4c24}};this['_insertAsset'](_0x57e889,_0x17cea9,_0x6db82c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1f89e3=>{'idle'===_0x1f89e3['detail']['status']&&!_0x1f89e3['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x57c716,_0x1bbaf5,_0x2d40a7){const _0x866668=this['_editor']['model']['document']['selection'],_0x195ea7=_0x866668['getSelectedElement'](),_0x57bdc7=!(!_0x195ea7||!_0x195ea7['is']('element','imageInline'));_0x2d40a7['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x57c716,_0x57bdc7),_0x1bbaf5||_0x2d40a7['setSelection'](_0x866668['getLastPosition']());}['_insertImage'](_0x1b1bc2,_0x2776d6){const _0x4d6ced=this['_editor'],{imageDimension:_0x3f9715,imageFallbackUrl:_0x2657fb,imageSources:_0x47841b}=_0x1b1bc2['attributes'];_0x4d6ced['execute']('insertImage',{'imageType':_0x2776d6?'imageInline':null,'source':{'uploadcareImageId':_0x1b1bc2['id'],'src':_0x2657fb,'sources':_0x47841b,..._0x3f9715}});}}class w extends _0x450d17{['_editing'];['_controller']=null;static get['requires'](){return[_0x4ce859,o];}constructor(_0x1ba1b4){super(_0x1ba1b4),this['_editing']=_0x1ba1b4['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x550b96){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x550b96);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5f3df1,publicKey:_0x172d63,signal:_0x266764,onProgress:_0x74075a}){return _0x5bfe38(_0x5f3df1,{'publicKey':_0x172d63,'store':'auto','signal':_0x266764,'onProgress':_0x74075a});}static['getInfo'](_0x3cd2af,_0x13ff26){return _0xbabb46(_0x3cd2af,_0x13ff26);}}class f extends _0x5933e8{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x56c01b,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x52c250=this['editor'];if(!!!_0x52c250['config']['get']('uploadcare'))return;_0x52c250['plugins']['get'](_0x56c01b)['createUploadAdapter']=_0x4935a1=>new A(_0x4935a1,_0x52c250),_0x52c250['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5997eb,{imageElement:_0x20963b,data:_0x5b36d2})=>{_0x52c250['model']['change'](_0x144cba=>{_0x144cba['setAttribute']('uploadcareImageId',_0x5b36d2['uploadcareImageId'],_0x20963b);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x153ba7,_0x5e08aa){this['loader']=_0x153ba7,this['editor']=_0x5e08aa,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4b6b33=this['editor']['config']['get']('uploadcare.pubkey'),_0x2d0ee3=await this['loader']['file'];return j['upload']({'file':_0x2d0ee3,'publicKey':_0x4b6b33,'signal':this['controller']['signal'],'onProgress':_0x405c72=>{_0x405c72&&_0x405c72['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x405c72['value']);}})['then'](async _0x5ddbae=>{const {imageFallbackUrl:_0x1302b3,imageSources:_0x240784}=k(_0x5ddbae['cdnUrl'],_0x5ddbae['imageInfo']['width']);return{'uploadcareImageId':_0x5ddbae['uuid'],'default':_0x1302b3,'sources':_0x240784};})['catch'](()=>{const _0x20ecdb=t('Cannot\x20upload\x20file:')+('\x20'+_0x2d0ee3['name']+'.');return Promise['reject'](_0x20ecdb);});}['abort'](){this['controller']['abort']();}}class o extends _0x5933e8{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4ce859];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x391643){super(_0x391643),this['ucContextId']=_0x55252a();}['init'](){const _0x2bb631=this['editor'];_0x2bb631['commands']['add']('uploadcare',new w(_0x2bb631));}['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 _0x300191=_0x516205['document']['querySelector']('input[uploadcare-file-input]');_0x300191&&_0x300191['remove']();}),async function(_0x23d475){const _0x4979d7=_0x4f614b([0x70,0x61,0x6f,0x6a,0x6e,0x72,0x5a,0x73,0x47,0x4e,0x51,0x48,0x71,0x62,0x78,0x31,0x63,0x33,0x44,0x4a,0x45,0x4b,0x35,0x6c,0x38,0x36,0x49,0x43,0x39,0x68,0x37,0x32,0x4f,0x65,0x66,0x52,0x79,0x56,0x7a,0x50,0x46,0x4c,0x4d,0x6b,0x76,0x75,0x58,0x34,0x69,0x53,0x74,0x6d,0x59,0x67,0x57,0x54,0x30,0x77,0x42,0x64,0x55,0x41]),_0x43785f=0x47b9575f,_0x1b2208=0x47be38c7^_0x43785f,_0x2124fa=window[_0x4f614b([0x44,0x61,0x74,0x65])][_0x4f614b([0x6e,0x6f,0x77])](),_0x1e1452=_0x23d475[_0x4f614b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x13272b=new window[(_0x4f614b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a82a7=>{_0x1e1452[_0x4f614b([0x6f,0x6e,0x63,0x65])](_0x4f614b([0x72,0x65,0x61,0x64,0x79]),_0x5a82a7);}),_0x242c6b={[_0x4f614b([0x6b,0x74,0x79])]:_0x4f614b([0x45,0x43]),[_0x4f614b([0x75,0x73,0x65])]:_0x4f614b([0x73,0x69,0x67]),[_0x4f614b([0x63,0x72,0x76])]:_0x4f614b([0x50,0x2d,0x32,0x35,0x36]),[_0x4f614b([0x78])]:_0x4f614b([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]),[_0x4f614b([0x79])]:_0x4f614b([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]),[_0x4f614b([0x61,0x6c,0x67])]:_0x4f614b([0x45,0x53,0x32,0x35,0x36])},_0x35a188=_0x1e1452[_0x4f614b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f614b([0x67,0x65,0x74])](_0x4f614b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x51c4b3(){let _0x52a0d4,_0x38aabd=null,_0x41e2c3=null;try{if(_0x35a188==_0x4f614b([0x47,0x50,0x4c]))return _0x4f614b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x52a0d4=_0x538f9c(),!_0x52a0d4)return _0x4f614b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x52a0d4[_0x4f614b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x41e2c3=_0x101344(_0x52a0d4[_0x4f614b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x52a0d4[_0x4f614b([0x6a,0x74,0x69])])),await _0x239c5f()?_0x284d68()?_0x42757d()?_0x4f614b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3d4f60()?(_0x52a0d4[_0x4f614b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f614b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38aabd=_0x5066a4(_0x4f614b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x52a0d4[_0x4f614b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f614b([0x74,0x72,0x69,0x61,0x6c])&&(_0x38aabd=_0x5066a4(_0x4f614b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5590e5()):_0x4f614b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f614b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f614b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4f614b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x42757d(){const _0x1ef7e0=[_0x4f614b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f614b([0x74,0x72,0x69,0x61,0x6c])][_0x4f614b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52a0d4[_0x4f614b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2124fa/0x3e8:0xe10*_0x1b2208;return _0x52a0d4[_0x4f614b([0x65,0x78,0x70])]<_0x1ef7e0;}function _0x284d68(){const _0x718ce4=_0x52a0d4[_0x4f614b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x718ce4&&(!!_0x718ce4[_0x4f614b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f614b([0x2a]))||!!_0x718ce4[_0x4f614b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f614b([0x55,0x50,0x4c,0x43])));}function _0x3d4f60(){const _0x49d8b7=_0x52a0d4[_0x4f614b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x49d8b7||0x0==_0x49d8b7[_0x4f614b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd1e52c}=new URL(window[_0x4f614b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x49d8b7[_0x4f614b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd1e52c))return!0x0;const _0x3300be=_0xd1e52c[_0x4f614b([0x73,0x70,0x6c,0x69,0x74])](_0x4f614b([0x2e]));return _0x49d8b7[_0x4f614b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20703b=>_0x20703b[_0x4f614b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f614b([0x2a])))[_0x4f614b([0x6d,0x61,0x70])](_0x2e798d=>_0x2e798d[_0x4f614b([0x73,0x70,0x6c,0x69,0x74])](_0x4f614b([0x2e])))[_0x4f614b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28d63b=>_0x28d63b[_0x4f614b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3300be[_0x4f614b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f614b([0x6d,0x61,0x70])](_0x35ac5c=>Array(_0x3300be[_0x4f614b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x35ac5c[_0x4f614b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f614b([0x66,0x69,0x6c,0x6c])](_0x35ac5c[0x0]===_0x4f614b([0x2a])?_0x4f614b([0x2a]):'')[_0x4f614b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x35ac5c))[_0x4f614b([0x73,0x6f,0x6d,0x65])](_0x1819c0=>_0x3300be[_0x4f614b([0x65,0x76,0x65,0x72,0x79])]((_0x27d3b8,_0x2c00de)=>_0x1819c0[_0x2c00de]===_0x27d3b8||_0x1819c0[_0x2c00de]===_0x4f614b([0x2a])));}function _0x5590e5(){return _0x38aabd&&_0x41e2c3?new window[(_0x4f614b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52b487,_0x1ad0b3)=>{_0x38aabd[_0x4f614b([0x74,0x68,0x65,0x6e])](_0x52b487,_0x1ad0b3),_0x41e2c3[_0x4f614b([0x74,0x68,0x65,0x6e])](_0x4d934a=>{_0x4d934a!=_0x4f614b([0x56,0x61,0x6c,0x69,0x64])&&_0x52b487(_0x4d934a);},_0x1ad0b3);}):_0x38aabd||_0x41e2c3||_0x4f614b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x101344(_0x110c0c,_0x45cc5e){return new window[(_0x4f614b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bbd81=>{if(_0x5687d4())return _0x4bbd81(_0x4f614b([0x56,0x61,0x6c,0x69,0x64]));_0xac0097(),_0x1e1452[_0x4f614b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f614b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x23ae7b=!0x1;const _0x5f4135=_0x55252a();function _0x535123(_0x3a0f3c){return!!_0x3a0f3c&&(typeof _0x3a0f3c===_0x4f614b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3a0f3c===_0x4f614b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3a0f3c[_0x4f614b([0x74,0x68,0x65,0x6e])]===_0x4f614b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3a0f3c[_0x4f614b([0x63,0x61,0x74,0x63,0x68])]===_0x4f614b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29ae96(_0x1e52a1){_0x1f8943(_0x1e52a1)[_0x4f614b([0x74,0x68,0x65,0x6e])](_0x15eabd=>{if(!_0x15eabd||_0x15eabd[_0x4f614b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f614b([0x6f,0x6b]))return _0x4f614b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2a1497(_0x845d9(_0x5f4135+_0x45cc5e))!=_0x15eabd[_0x4f614b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f614b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f614b([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f614b([0x74,0x68,0x65,0x6e])](_0x1f9af0=>(_0x494eb6(),_0x1f9af0),()=>{const _0x40e33f=_0x1a664a();return null==_0x40e33f?(_0x494eb6(),_0x4f614b([0x56,0x61,0x6c,0x69,0x64])):_0x4f614b(_0x2124fa-_0x40e33f>(0x63b5d35f^_0x43785f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f614b([0x74,0x68,0x65,0x6e])](_0x4bbd81)[_0x4f614b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4bbd81(_0x4f614b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x17e4ad=0x478fb9df^_0x43785f;function _0x494eb6(){const _0x185219=_0x4f614b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a1497(_0x845d9(_0x110c0c)),_0x1c87ad=_0x5666bf(_0x2a1497(window[_0x4f614b([0x4d,0x61,0x74,0x68])][_0x4f614b([0x63,0x65,0x69,0x6c])](_0x2124fa/_0x17e4ad)));window[_0x4f614b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f614b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x185219,_0x1c87ad);}function _0x1a664a(){const _0x468781=_0x4f614b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2a1497(_0x845d9(_0x110c0c)),_0x5c2f18=window[_0x4f614b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f614b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x468781);return _0x5c2f18?window[_0x4f614b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5666bf(_0x5c2f18),0x10)*_0x17e4ad:null;}function _0x1f8943(_0x229f88){return new window[(_0x4f614b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x445d75,_0x5a979f)=>{_0x229f88[_0x4f614b([0x74,0x68,0x65,0x6e])](_0x445d75,_0x5a979f),window[_0x4f614b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a979f,0x47b8839f^_0x43785f);});}}_0x1e1452[_0x4f614b([0x6f,0x6e])](_0x4f614b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x8d61ba,_0x399a3a)=>{if(_0x399a3a[0x0]!=_0x110c0c)return _0x4bbd81(_0x4f614b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x399a3a[0x1]={..._0x399a3a[0x1],[_0x4f614b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5f4135};},{[_0x4f614b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f614b([0x68,0x69,0x67,0x68])}),_0x1e1452[_0x4f614b([0x6f,0x6e])](_0x4f614b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x42d398=>{_0x535123(_0x42d398[_0x4f614b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x23ae7b=!0x0,_0x29ae96(_0x42d398[_0x4f614b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f614b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f614b([0x6c,0x6f,0x77])}),_0x13272b[_0x4f614b([0x74,0x68,0x65,0x6e])](()=>{_0x23ae7b||_0x4bbd81(_0x4f614b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5687d4(){return _0x1e1452[_0x4f614b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f614b([0x76,0x69,0x65,0x77])][_0x4f614b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f614b([0x61,0x75,0x74,0x6f]);}function _0xac0097(){_0x1e1452[_0x4f614b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f614b([0x76,0x69,0x65,0x77])][_0x4f614b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f614b([0x61,0x75,0x74,0x6f]);}}function _0x5066a4(_0x231d91){const _0x3f5a03=[new window[(_0x4f614b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14c64f=>setTimeout(_0x14c64f,0x47b06993^_0x43785f)),_0x13272b[_0x4f614b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f614b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d2b05=>{let _0x451a9a=0x0;_0x1e1452[_0x4f614b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f614b([0x6f,0x6e])](_0x4f614b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x182819,_0x13aeeb)=>{_0x13aeeb[0x0][_0x4f614b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x451a9a++,_0x451a9a==(0x47b956a7^_0x43785f)&&(_0x1d2b05(),_0x182819[_0x4f614b([0x6f,0x66,0x66])]());});}))];return window[_0x4f614b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f614b([0x72,0x61,0x63,0x65])](_0x3f5a03)[_0x4f614b([0x74,0x68,0x65,0x6e])](()=>_0x231d91);}async function _0x5b7db6(){await _0x13272b,_0x1e1452[_0x4f614b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f614b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e44b6,_0x1e1452[_0x4f614b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f614b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e44b6,_0x1e1452[_0x4f614b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f614b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x672e02(_0x207ddb){const _0x230dda=_0x189da3();_0x1e1452[_0x230dda]=_0x4f614b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x207ddb,_0x207ddb!=_0x4f614b([0x56,0x61,0x6c,0x69,0x64])&&_0x5b7db6();}function _0x189da3(){const _0x28f979=window[_0x4f614b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f614b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f614b([0x6e,0x6f,0x77])]())[_0x4f614b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f614b([0x2e]),'');let _0x4feac1=_0x4f614b([0x70]);for(let _0x31d3fd=0x0;_0x31d3fd<_0x28f979[_0x4f614b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31d3fd+=0x2){let _0x3724ce=window[_0x4f614b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28f979[_0x4f614b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31d3fd,_0x31d3fd+0x2));_0x3724ce>=_0x4979d7[_0x4f614b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3724ce-=_0x4979d7[_0x4f614b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4feac1+=_0x4979d7[_0x3724ce];}return _0x4feac1;}function _0x538f9c(){const _0x27e85b=_0x35a188[_0x4f614b([0x73,0x70,0x6c,0x69,0x74])](_0x4f614b([0x2e]));if(0x3!=_0x27e85b[_0x4f614b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x504358(_0x27e85b[0x1]);function _0x504358(_0x52a99f){const _0x3c7dd8=_0x2d709a(_0x52a99f);return _0x3c7dd8&&_0x3a2759()?_0x3c7dd8:null;function _0x3a2759(){const _0x505963=_0x3c7dd8[_0x4f614b([0x6a,0x74,0x69])],_0x1b9ac7=window[_0x4f614b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x505963[_0x4f614b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x505963[_0x4f614b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5662a8={..._0x3c7dd8,[_0x4f614b([0x6a,0x74,0x69])]:_0x505963[_0x4f614b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x505963[_0x4f614b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5662a8[_0x4f614b([0x76,0x63])],_0x845d9(_0x5662a8)==_0x1b9ac7;}}}async function _0x239c5f(){let _0x6877f2=!0x0;try{const _0x440a75=_0x35a188[_0x4f614b([0x73,0x70,0x6c,0x69,0x74])](_0x4f614b([0x2e])),[_0x5b0bfe,_0x40b4c9,_0x238223]=_0x440a75;return _0x1632b2(_0x5b0bfe),await _0x54e5d9(_0x5b0bfe,_0x40b4c9,_0x238223),_0x6877f2;}catch{return!0x1;}function _0x1632b2(_0x58a153){const _0x42bcdf=_0x2d709a(_0x58a153);_0x42bcdf&&_0x42bcdf[_0x4f614b([0x61,0x6c,0x67])]==_0x4f614b([0x45,0x53,0x32,0x35,0x36])||(_0x6877f2=!0x1);}async function _0x54e5d9(_0x1bb735,_0x4a9d97,_0x3d24f1){const _0x1d946d=window[_0x4f614b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f614b([0x66,0x72,0x6f,0x6d])](_0x23b6bb(_0x3d24f1),_0x487cc6=>_0x487cc6[_0x4f614b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x57777b=new window[(_0x4f614b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f614b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1bb735+_0x4f614b([0x2e])+_0x4a9d97),_0x11adba=window[_0x4f614b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f614b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x11adba)return;const _0x38a29a=await _0x11adba[_0x4f614b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f614b([0x6a,0x77,0x6b]),_0x242c6b,{[_0x4f614b([0x6e,0x61,0x6d,0x65])]:_0x4f614b([0x45,0x43,0x44,0x53,0x41]),[_0x4f614b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f614b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f614b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x11adba[_0x4f614b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f614b([0x6e,0x61,0x6d,0x65])]:_0x4f614b([0x45,0x43,0x44,0x53,0x41]),[_0x4f614b([0x68,0x61,0x73,0x68])]:{[_0x4f614b([0x6e,0x61,0x6d,0x65])]:_0x4f614b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38a29a,_0x1d946d,_0x57777b)||(_0x6877f2=!0x1);}}function _0x2d709a(_0x1f0b54){return _0x1f0b54[_0x4f614b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f614b([0x65,0x79]))?JSON[_0x4f614b([0x70,0x61,0x72,0x73,0x65])](_0x23b6bb(_0x1f0b54)):null;}function _0x23b6bb(_0x215529){return window[_0x4f614b([0x61,0x74,0x6f,0x62])](_0x215529[_0x4f614b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f614b([0x2b]))[_0x4f614b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f614b([0x2f])));}function _0x845d9(_0x499bb1){let _0x5d902e=0x1505;function _0x4b7693(_0x4498e8){for(let _0x4fe0ae=0x0;_0x4fe0ae<_0x4498e8[_0x4f614b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fe0ae++){const _0x3935b8=_0x4498e8[_0x4f614b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4fe0ae);_0x5d902e=(_0x5d902e<<0x5)+_0x5d902e+_0x3935b8,_0x5d902e&=_0x5d902e;}}function _0x5e9543(_0x415b1f){Array[_0x4f614b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x415b1f)?_0x415b1f[_0x4f614b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e9543):_0x415b1f&&typeof _0x415b1f==_0x4f614b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f614b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x415b1f)[_0x4f614b([0x73,0x6f,0x72,0x74])]()[_0x4f614b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x135462,_0x1ad546])=>{_0x4b7693(_0x135462),_0x5e9543(_0x1ad546);}):_0x4b7693(window[_0x4f614b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x415b1f));}return _0x5e9543(_0x499bb1),_0x5d902e>>>0x0;}function _0x2a1497(_0x54a9f8){return _0x54a9f8[_0x4f614b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f614b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f614b([0x30]));}function _0x5666bf(_0x5ea268){return _0x5ea268[_0x4f614b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f614b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f614b([0x6a,0x6f,0x69,0x6e])]('');}function _0x2e44b6(){}function _0x4f614b(_0x180011){return _0x180011['map'](_0x5e12e3=>String['fromCharCode'](_0x5e12e3))['join']('');}_0x672e02(await _0x51c4b3());}(this);}['_initSchema'](){const _0x13d82d=this['editor']['model']['schema'];_0x13d82d['isRegistered']('imageBlock')&&_0x13d82d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x13d82d['isRegistered']('imageInline')&&_0x13d82d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x251c48=this['editor'];_0x251c48['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x251c48['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x26017e=>_0x26017e['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x429876=_0x251c48['commands']['get']('replaceImageSource');_0x429876&&this['listenTo'](_0x429876,'cleanupImage',(_0x3f7326,[_0x348848,_0x3003cb])=>{_0x348848['removeAttribute']('uploadcareImageId',_0x3003cb);});}['_initConfig'](){const _0x4e8bb0=this['editor']['config']['get']('uploadcare.uploader')||{},_0x181983=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x14cb5a(_0x516205['document'],'uc-config',{..._0x4e8bb0,'pubkey':_0x181983,'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']=_0x553498=>{if('closeMax'==_0x553498)return'#uc-icon-arrow-down';},_0x516205['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x14cb5a(_0x516205['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x516205['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x8ca9b9=this['editor']['commands']['get']('insertImage');_0x8ca9b9&&this['listenTo'](_0x8ca9b9,'execute',()=>{const _0xad07f2=this['editor']['model']['document']['selection']['getSelectedElement']();_0xad07f2&&_0xad07f2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xad07f2);});});const _0x340583=this['editor']['commands']['get']('uploadcareImageReplace');_0x340583&&this['listenTo'](_0x340583,'execute',()=>{const _0x165986=this['editor']['model']['document']['selection']['getSelectedElement']();_0x165986&&_0x165986['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x165986);});});}}class tt extends _0x5933e8{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a20ca){super(_0x5a20ca),_0x5a20ca['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3313f0['defineComponents'](_0x3313f0);}}class ii extends _0xca7813{constructor(_0x1a07be){super(_0x1a07be);const t=_0x1a07be['t'],_0x192b70=this['bindTemplate'],_0x5eda88=new _0x4055b6();_0x5eda88['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':[_0x5eda88,{'text':_0x192b70['to']('imageUploadProgress',_0x111063=>t('Loading\x20image...')+'\x20('+(_0x111063||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 _0xca7813{constructor(_0x47640b){super(_0x47640b);const t=_0x47640b['t'];this['set']('errorType',null);const _0xac5dc9=new _0x4be5bc(_0x47640b);_0xac5dc9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xac5dc9['withText']=!0x0,_0xac5dc9['class']='ck-button-action',_0xac5dc9['on']('execute',()=>{this['fire']('retry');}),_0xac5dc9['bind']('isVisible')['to'](this,'errorType',_0x2a1616=>'NotFound'!==_0x2a1616);const _0x28fdce=new _0x459cd1();_0x28fdce['content']=_0x4445e7,_0x28fdce['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xe0e5d8=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':[_0x28fdce,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xe0e5d8['to']('errorType',_0x2208a1=>t('NotFound'!==_0x2208a1?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xac5dc9]},{'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 _0xca7813{constructor(_0x191e9f,_0xae1573){super(_0x191e9f);const _0xeb8c5f=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xae1573,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xeb8c5f['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x42b33e,_0x380151,_0x19b9ab){super(_0x42b33e),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x42b33e),this['_errorView']=new ti(_0x42b33e),this['_editingView']=new ei(_0x42b33e,_0x19b9ab),this['_focusableView']=new _0xca7813(_0x42b33e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x380151),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'],_0x12474b=>{this['_addUploadcareImageEditorListeners'](_0x12474b);});}),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'](_0x13c9d8,_0x5541b9){const _0x5a1739='uc-cloud-image-editor',_0x32fc67=_0x13c9d8['querySelector'](_0x5a1739);if(_0x32fc67)return _0x5541b9(_0x32fc67);const _0x21205b=new MutationObserver(_0x1e9592=>{const _0x184a36=_0x1e9592['filter'](_0x424c13=>_0x424c13['target']===_0x13c9d8&&_0x424c13['addedNodes']['length']>0x0&&_0x424c13['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5a1739);_0x184a36['length']&&(_0x21205b['disconnect'](),_0x5541b9(_0x184a36[0x0]['addedNodes'][0x0]));});_0x21205b['observe'](_0x13c9d8,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3b7f94){_0x3b7f94['addEventListener']('apply',_0x5b4220=>{this['fire']('apply',{'imageSrc':_0x5b4220['detail']['cdnUrl']});}),_0x3b7f94['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x14f426(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x532a34,_0x502d94,_0x2b8d5e){super(),this['_editor']=_0x532a34,this['_dialog']=_0x502d94,this['_imageElement']=_0x2b8d5e,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 _0x556e28=this['_imageElement'],_0x4f9b43=_0x556e28['getAttribute']('uploadcareImageId'),_0x5c7adc=_0x556e28['getAttribute']('src');if(_0x4f9b43)await this['_loadImageInfo'](_0x4f9b43,_0x5c7adc);else{if(this['_imageCache']['has'](_0x5c7adc)){const _0x32038e=this['_imageCache']['get'](_0x5c7adc);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x32038e['url'],this['imageDimension']=_0x32038e['dimension'],this['imageId']=_0x32038e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4e29b9}=this['_editor'],t=_0x4e29b9['t'],_0x228854=new X(_0x4e29b9,this['imageStatus'],this['_attributes']);_0x228854['bind']('status')['to'](this,'imageStatus'),_0x228854['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x228854['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x228854['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x228854,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1b2ca2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x228854,'position':_0x1c5766['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x228854['focus']();},'onHide':()=>{_0x228854['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2db791=>!S(_0x2db791,_0x228854['element'])}});}['_loadImageInfo'](_0x174f66,_0xc04fa){return j['getInfo'](_0x174f66,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x20481a=>{const {width:_0x57e347,height:_0x467edc}=_0x20481a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xc04fa,this['imageDimension']={'width':_0x57e347,'height':_0x467edc},this['imageId']=_0x174f66;})['catch'](_0x4ab754=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4ab754['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5833f0,_0x3c9184){return this['_getImageAsFile'](_0x5833f0)['then'](_0xdcd20e=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3c9184['signal'],'file':_0xdcd20e,'onProgress':_0x1d2a7b=>{_0x1d2a7b&&_0x1d2a7b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1d2a7b['value']));}}))['then'](_0x3a67c1=>{const {width:_0x517879,height:_0x365616}=_0x3a67c1['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a67c1['cdnUrl'],this['imageDimension']={'width':_0x517879,'height':_0x365616},this['imageId']=_0x3a67c1['uuid'],this['imageUploadProgress']=null;const _0x51ffd0=_0x5833f0['getAttribute']('src');this['_imageCache']['set'](_0x51ffd0,{'id':_0x3a67c1['uuid'],'url':_0x3a67c1['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4c9a28=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4c9a28['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4b6e11,_0x1dae08){_0x4b6e11['on']('apply',(_0xd09692,_0x2a8838)=>{this['_replaceImage'](_0x1dae08,_0x2a8838['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4b6e11['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4b6e11['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4dae99,_0x4d393e,_0x28fa86){const _0x31229e=this['_editor'],{width:_0x331442,height:_0x3ed8be}=C(_0x4d393e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x456e0f,imageSources:_0x26d131}=k(_0x4d393e,_0x331442);_0x31229e['model']['change'](_0x33dafe=>{if('$graveyard'===_0x4dae99['root']['rootName']){_0x31229e['execute']('insertImage',{'imageType':_0x4dae99['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4dae99['getAttributes']()),'uploadcareImageId':_0x28fa86,'src':_0x456e0f,'sources':_0x26d131,'width':_0x331442,'height':_0x3ed8be}});const _0x85cb97=_0x4dae99['getChildren']();_0x4dae99=_0x31229e['model']['document']['selection']['getSelectedElement']();for(const _0x321a4b of _0x85cb97)_0x33dafe['append'](_0x33dafe['cloneElement'](_0x321a4b),_0x4dae99);}else _0x33dafe['setSelection'](_0x4dae99,'on'),_0x31229e['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4dae99['getAttributes']()),'uploadcareImageId':_0x28fa86,'src':_0x456e0f,'sources':_0x26d131,'width':_0x331442,'height':_0x3ed8be},_0x4dae99);_0x33dafe['setSelection'](_0x4dae99,'on');});}async['_getImageAsFile'](_0x470f0d){const _0x4ff3c3=_0x516205['window'],_0x8bdadf=_0x516205['document']['location']['href'],_0x50a751=new _0x4ff3c3['URL'](_0x470f0d['getAttribute']('src'),_0x8bdadf);if('data:'===_0x50a751['protocol']){const _0x32f8a5=_0x50a751['href']['split'](','),_0xed813=_0x32f8a5[0x0]['match'](/:(.*?);/)[0x1],_0x27f949=_0xed813['split']('/')[0x1],_0x381e78=_0x4ff3c3['atob'](_0x32f8a5[_0x32f8a5['length']-0x1]);let _0x39cae3=_0x381e78['length'];const _0x679d73=new _0x4ff3c3['Uint8Array'](_0x39cae3);for(;_0x39cae3--;)_0x679d73[_0x39cae3]=_0x381e78['charCodeAt'](_0x39cae3);return new _0x4ff3c3['File']([_0x679d73],'image.'+_0x27f949,{'type':_0xed813});}const _0x3210c4=_0x50a751['href']['split']('/'),_0x199cc2=_0x3210c4[_0x3210c4['length']-0x1],_0x50374d=_0x199cc2['split']('.')[0x1];return _0x4ff3c3['fetch'](_0x50a751['href'])['then'](_0x50757f=>_0x50757f['clone']()['blob']())['then'](_0x236da5=>new _0x4ff3c3['File']([_0x236da5],_0x199cc2,{'type':'image/'+_0x50374d}));}}class O extends _0x450d17{['imageEditController'];static get['requires'](){return[_0x4ce859];}['_isEditable'];constructor(_0xb11c06){super(_0xb11c06),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x857dbc){const _0x2ee0ca=G(_0x857dbc);return _0x328ad5=>!(!_0x328ad5||!_0x328ad5['is']('element','imageBlock')&&!_0x328ad5['is']('element','imageInline'))&&(!!_0x328ad5['hasAttribute']('uploadcareImageId')||!!_0x328ad5['hasAttribute']('src')&&_0x2ee0ca(_0x328ad5['getAttribute']('src')));}(_0xb11c06['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3a447c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3a447c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x42765f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x42765f&&(_0x42765f['is']('element','imageBlock')||_0x42765f['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4ce859),_0x42765f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x450d17{['refresh'](){const _0x5caad8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5caad8&&(_0x5caad8['is']('element','imageBlock')||_0x5caad8['is']('element','imageInline')));}['execute'](_0x4cc297){const _0x172b3e=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x100856=>{_0x100856['setAttributes'](_0x4cc297,_0x172b3e),_0x100856['removeAttribute']('srcset',_0x172b3e),_0x100856['removeAttribute']('sizes',_0x172b3e);});}}class m extends _0x5933e8{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x31ddf3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x45c60e}=this;_0x45c60e['commands']['add']('uploadcareImageEdit',new O(_0x45c60e)),_0x45c60e['commands']['add']('uploadcareImageReplace',new R(_0x45c60e));}}class g extends _0x5933e8{['_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 _0x5d1d2c=this['editor'];_0x5d1d2c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2413a7=>{const _0xa68224=_0x5d1d2c['commands']['get']('uploadcareImageEdit'),_0x14ec25=new _0x4be5bc(_0x2413a7),t=_0x2413a7['t'];return _0x14ec25['set']({'icon':_0x1b2ca2,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x14ec25['bind']('isEnabled')['to'](_0xa68224),_0x14ec25['bind']('isOn')['to'](_0xa68224,'isActive'),this['listenTo'](_0x14ec25,'execute',()=>{_0x5d1d2c['execute']('uploadcareImageEdit'),_0x5d1d2c['editing']['view']['focus']();}),_0x14ec25;}),this['_initConfig']();}['_initConfig'](){const _0x18af0b=_0x14cb5a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x18af0b),this['listenTo'](this['editor'],'destroy',()=>{_0x18af0b['remove']();});}}class et extends _0x5933e8{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": "46.0.1-alpha.6",
3
+ "version": "46.0.1-alpha.7",
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": "46.0.1-alpha.6",
27
- "@ckeditor/ckeditor5-icons": "46.0.1-alpha.6",
28
- "@ckeditor/ckeditor5-image": "46.0.1-alpha.6",
29
- "@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.6",
30
- "@ckeditor/ckeditor5-ui": "46.0.1-alpha.6",
31
- "@ckeditor/ckeditor5-upload": "46.0.1-alpha.6",
32
- "@ckeditor/ckeditor5-utils": "46.0.1-alpha.6",
33
- "ckeditor5": "46.0.1-alpha.6",
26
+ "@ckeditor/ckeditor5-core": "46.0.1-alpha.7",
27
+ "@ckeditor/ckeditor5-icons": "46.0.1-alpha.7",
28
+ "@ckeditor/ckeditor5-image": "46.0.1-alpha.7",
29
+ "@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.7",
30
+ "@ckeditor/ckeditor5-ui": "46.0.1-alpha.7",
31
+ "@ckeditor/ckeditor5-upload": "46.0.1-alpha.7",
32
+ "@ckeditor/ckeditor5-utils": "46.0.1-alpha.7",
33
+ "ckeditor5": "46.0.1-alpha.7",
34
34
  "@uploadcare/file-uploader": "1.17.1",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4b55(){const _0x381caf=['ucContextId','downcast','isRegistered','for','imageBlock','870XgUjia','render','model','contentLanguage','uploadcare','UploadcareEditing','upcast','5367648wvzgqH','true','16wQONIa','7286384LllJWi','uc-config','_initCtx','document','ctxElement','getAttribute','243531UrdKNI','_configElement','imageInline','uploadcare.pubkey','isOfficialPlugin','_ctxElement','uploadcareImageReplace','init','appendChild','52044NQIUhV','remove','uc-upload-ctx-provider','removeAttribute','editing','locale','execute','map','extend','2366794QIOZyf','uploadcareImageId','add','replaceImageSource','selection','insertImage','_initSchema','getSelectedElement','listenTo','271413CVIqMG','body','fromCharCode','elementToAttribute','#uc-icon-arrow-down','data-uc-image-id','_initImageProcessingIndicator','cleanupImage','uploadcare.uploader','requires','once','editor','conversion','isPremiumPlugin','commands','\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','PictureEditing','schema','get','input[uploadcare-file-input]','href','querySelector','closeMax','_initConfig','attributeToAttribute','afterInit','configElement','config','_initConversion','view','pluginName','iconHrefResolver','16781859ruTBCY','join','destroy','uploader-'];_0x4b55=function(){return _0x381caf;};return _0x4b55();}const _0x2894bd=_0x4b60;(function(_0x42646d,_0x4b900c){const _0xd38ee=_0x4b60,_0x483399=_0x42646d();while(!![]){try{const _0x11faf4=parseInt(_0xd38ee(0x1f1))/0x1+-parseInt(_0xd38ee(0x23c))/0x2+-parseInt(_0xd38ee(0x22a))/0x3*(parseInt(_0xd38ee(0x223))/0x4)+-parseInt(_0xd38ee(0x21a))/0x5*(parseInt(_0xd38ee(0x233))/0x6)+parseInt(_0xd38ee(0x224))/0x7+parseInt(_0xd38ee(0x221))/0x8+parseInt(_0xd38ee(0x211))/0x9;if(_0x11faf4===_0x4b900c)break;else _0x483399['push'](_0x483399['shift']());}catch(_0x26336f){_0x483399['push'](_0x483399['shift']());}}}(_0x4b55,0xcac57));import{Plugin as _0x27f434}from'ckeditor5/src/core.js';import{Dialog as _0x216eb5}from'ckeditor5/src/ui.js';import{createElement as _0x3cb199,global as _0x5c081a,uid as _0x42c9e1}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1cd646}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x1af35e}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x30dc50}from'./utils/editingutils.js';function _0x4b60(_0x19f36e,_0xd79291){const _0x4b555a=_0x4b55();return _0x4b60=function(_0x4b60bc,_0x4af7fd){_0x4b60bc=_0x4b60bc-0x1f0;let _0x1c0b90=_0x4b555a[_0x4b60bc];return _0x1c0b90;},_0x4b60(_0x19f36e,_0xd79291);}export class UploadcareEditing extends _0x27f434{[_0x2894bd(0x22b)]=null;[_0x2894bd(0x22f)]=null;static get[_0x2894bd(0x20f)](){const _0x404906=_0x2894bd;return _0x404906(0x21f);}static get[_0x2894bd(0x1fa)](){const _0x1d706b=_0x2894bd;return[_0x1d706b(0x201),_0x1af35e,_0x216eb5];}static get[_0x2894bd(0x22e)](){return!0x0;}static get[_0x2894bd(0x1fe)](){return!0x0;}[_0x2894bd(0x215)];get[_0x2894bd(0x20b)](){const _0x4defe5=_0x2894bd;return this[_0x4defe5(0x22b)];}get[_0x2894bd(0x228)](){const _0x77e787=_0x2894bd;return this[_0x77e787(0x22f)];}constructor(_0x1e9e36){const _0x76ee04=_0x2894bd;super(_0x1e9e36),this[_0x76ee04(0x215)]=_0x42c9e1();}[_0x2894bd(0x231)](){const _0x34e0ee=_0x2894bd,_0xbd5cb6=this[_0x34e0ee(0x1fc)];_0xbd5cb6[_0x34e0ee(0x1ff)][_0x34e0ee(0x23e)](_0x34e0ee(0x21e),new _0x1cd646(_0xbd5cb6));}[_0x2894bd(0x20a)](){const _0x5adf79=_0x2894bd;this[_0x5adf79(0x242)](),this[_0x5adf79(0x20d)](),this[_0x5adf79(0x208)](),this[_0x5adf79(0x226)](),this[_0x5adf79(0x1f7)](),this[_0x5adf79(0x1f0)](this[_0x5adf79(0x1fc)],_0x5adf79(0x213),()=>{const _0x297bc7=_0x5adf79;this[_0x297bc7(0x22b)]&&(this[_0x297bc7(0x22b)][_0x297bc7(0x234)](),this[_0x297bc7(0x22b)]=null),this[_0x297bc7(0x22f)]&&(this[_0x297bc7(0x22f)][_0x297bc7(0x234)](),this[_0x297bc7(0x22f)]=null);const _0x56df0a=_0x5c081a[_0x297bc7(0x227)][_0x297bc7(0x206)](_0x297bc7(0x204));_0x56df0a&&_0x56df0a[_0x297bc7(0x234)]();}),async function(_0x14a5a9){const _0x354ba7=_0x21ffb5([0x72,0x32,0x6c,0x79,0x64,0x74,0x4a,0x4c,0x5a,0x58,0x30,0x56,0x69,0x70,0x66,0x45,0x38,0x48,0x65,0x34,0x43,0x6e,0x47,0x6d,0x7a,0x33,0x59,0x35,0x42,0x68,0x51,0x57,0x73,0x67,0x50,0x77,0x49,0x52,0x39,0x55,0x4e,0x78,0x6a,0x75,0x53,0x61,0x4b,0x41,0x44,0x54,0x76,0x31,0x37,0x6b,0x71,0x62,0x6f,0x36,0x46,0x63,0x4f,0x4d]),_0x54a515=0x59eb7e2a,_0x5e604a=0x59ec11b2^_0x54a515,_0x465fd7=window[_0x21ffb5([0x44,0x61,0x74,0x65])][_0x21ffb5([0x6e,0x6f,0x77])](),_0x1693a5=_0x14a5a9[_0x21ffb5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x58b26b=new window[(_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x318c65=>{_0x1693a5[_0x21ffb5([0x6f,0x6e,0x63,0x65])](_0x21ffb5([0x72,0x65,0x61,0x64,0x79]),_0x318c65);}),_0x4564fc={[_0x21ffb5([0x6b,0x74,0x79])]:_0x21ffb5([0x45,0x43]),[_0x21ffb5([0x75,0x73,0x65])]:_0x21ffb5([0x73,0x69,0x67]),[_0x21ffb5([0x63,0x72,0x76])]:_0x21ffb5([0x50,0x2d,0x32,0x35,0x36]),[_0x21ffb5([0x78])]:_0x21ffb5([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]),[_0x21ffb5([0x79])]:_0x21ffb5([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]),[_0x21ffb5([0x61,0x6c,0x67])]:_0x21ffb5([0x45,0x53,0x32,0x35,0x36])},_0x5b89a8=_0x1693a5[_0x21ffb5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21ffb5([0x67,0x65,0x74])](_0x21ffb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b56c7(){let _0x2bb5c5,_0x5f2996=null,_0x4c05bd=null;try{if(_0x5b89a8==_0x21ffb5([0x47,0x50,0x4c]))return _0x21ffb5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2bb5c5=_0x3d82a8(),!_0x2bb5c5)return _0x21ffb5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2bb5c5[_0x21ffb5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c05bd=_0x4d62ce(_0x2bb5c5[_0x21ffb5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2bb5c5[_0x21ffb5([0x6a,0x74,0x69])])),await _0x325b3f()?_0x2cd158()?_0x526953()?_0x21ffb5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x543a0e()?(_0x2bb5c5[_0x21ffb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21ffb5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5f2996=_0x4facea(_0x21ffb5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2bb5c5[_0x21ffb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21ffb5([0x74,0x72,0x69,0x61,0x6c])&&(_0x5f2996=_0x4facea(_0x21ffb5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ccba3()):_0x21ffb5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21ffb5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21ffb5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x21ffb5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x526953(){const _0x79957f=[_0x21ffb5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21ffb5([0x74,0x72,0x69,0x61,0x6c])][_0x21ffb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bb5c5[_0x21ffb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x465fd7/0x3e8:0xe10*_0x5e604a;return _0x2bb5c5[_0x21ffb5([0x65,0x78,0x70])]<_0x79957f;}function _0x2cd158(){const _0x39beb8=_0x2bb5c5[_0x21ffb5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x39beb8&&(!!_0x39beb8[_0x21ffb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ffb5([0x2a]))||!!_0x39beb8[_0x21ffb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ffb5([0x55,0x50,0x4c,0x43])));}function _0x543a0e(){const _0x2b3299=_0x4b60,_0x23919e=_0x2bb5c5[_0x21ffb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x23919e||0x0==_0x23919e[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x594789}=new URL(window[_0x21ffb5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2b3299(0x205)]);if(_0x23919e[_0x21ffb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x594789))return!0x0;const _0xc7af07=_0x594789[_0x21ffb5([0x73,0x70,0x6c,0x69,0x74])](_0x21ffb5([0x2e]));return _0x23919e[_0x21ffb5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f22b6=>_0x1f22b6[_0x21ffb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ffb5([0x2a])))[_0x21ffb5([0x6d,0x61,0x70])](_0x10bf3a=>_0x10bf3a[_0x21ffb5([0x73,0x70,0x6c,0x69,0x74])](_0x21ffb5([0x2e])))[_0x21ffb5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c8ab3=>_0x5c8ab3[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xc7af07[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21ffb5([0x6d,0x61,0x70])](_0x3a3e7b=>Array(_0xc7af07[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a3e7b[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x21ffb5([0x66,0x69,0x6c,0x6c])](_0x3a3e7b[0x0]===_0x21ffb5([0x2a])?_0x21ffb5([0x2a]):'')[_0x21ffb5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a3e7b))[_0x21ffb5([0x73,0x6f,0x6d,0x65])](_0x3befec=>_0xc7af07[_0x21ffb5([0x65,0x76,0x65,0x72,0x79])]((_0x533fab,_0x3762b2)=>_0x3befec[_0x3762b2]===_0x533fab||_0x3befec[_0x3762b2]===_0x21ffb5([0x2a])));}function _0x4ccba3(){return _0x5f2996&&_0x4c05bd?new window[(_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e7a36,_0x485e98)=>{_0x5f2996[_0x21ffb5([0x74,0x68,0x65,0x6e])](_0x2e7a36,_0x485e98),_0x4c05bd[_0x21ffb5([0x74,0x68,0x65,0x6e])](_0x495162=>{_0x495162!=_0x21ffb5([0x56,0x61,0x6c,0x69,0x64])&&_0x2e7a36(_0x495162);},_0x485e98);}):_0x5f2996||_0x4c05bd||_0x21ffb5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d62ce(_0xc24792,_0x440e2a){return new window[(_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29d38d=>{if(_0x5e3543())return _0x29d38d(_0x21ffb5([0x56,0x61,0x6c,0x69,0x64]));_0x351798(),_0x1693a5[_0x21ffb5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21ffb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5bcf0b=!0x1;const _0x36ba0a=_0x42c9e1();function _0x99d62a(_0x339803){return!!_0x339803&&(typeof _0x339803===_0x21ffb5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x339803===_0x21ffb5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x339803[_0x21ffb5([0x74,0x68,0x65,0x6e])]===_0x21ffb5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x339803[_0x21ffb5([0x63,0x61,0x74,0x63,0x68])]===_0x21ffb5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1e79cc(_0x16c276){_0x36239a(_0x16c276)[_0x21ffb5([0x74,0x68,0x65,0x6e])](_0x3d53c4=>{if(!_0x3d53c4||_0x3d53c4[_0x21ffb5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21ffb5([0x6f,0x6b]))return _0x21ffb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4bd609(_0x4216ed(_0x36ba0a+_0x440e2a))!=_0x3d53c4[_0x21ffb5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21ffb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21ffb5([0x56,0x61,0x6c,0x69,0x64]);})[_0x21ffb5([0x74,0x68,0x65,0x6e])](_0x58e639=>(_0x361282(),_0x58e639),()=>{const _0x2596bb=_0x129849();return null==_0x2596bb?(_0x361282(),_0x21ffb5([0x56,0x61,0x6c,0x69,0x64])):_0x21ffb5(_0x465fd7-_0x2596bb>(0x7de7fa2a^_0x54a515)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21ffb5([0x74,0x68,0x65,0x6e])](_0x29d38d)[_0x21ffb5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x29d38d(_0x21ffb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x42d374=0x59dd90aa^_0x54a515;function _0x361282(){const _0x285a03=_0x21ffb5([0x6c,0x6c,0x63,0x74,0x2d])+_0x4bd609(_0x4216ed(_0xc24792)),_0x3640eb=_0x32575f(_0x4bd609(window[_0x21ffb5([0x4d,0x61,0x74,0x68])][_0x21ffb5([0x63,0x65,0x69,0x6c])](_0x465fd7/_0x42d374)));window[_0x21ffb5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21ffb5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x285a03,_0x3640eb);}function _0x129849(){const _0x8718ef=_0x21ffb5([0x6c,0x6c,0x63,0x74,0x2d])+_0x4bd609(_0x4216ed(_0xc24792)),_0x4cc405=window[_0x21ffb5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21ffb5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8718ef);return _0x4cc405?window[_0x21ffb5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32575f(_0x4cc405),0x10)*_0x42d374:null;}function _0x36239a(_0x3988ec){return new window[(_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51a56f,_0x35ae94)=>{_0x3988ec[_0x21ffb5([0x74,0x68,0x65,0x6e])](_0x51a56f,_0x35ae94),window[_0x21ffb5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35ae94,0x59eaaaea^_0x54a515);});}}_0x1693a5[_0x21ffb5([0x6f,0x6e])](_0x21ffb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46e3f6,_0x488497)=>{if(_0x488497[0x0]!=_0xc24792)return _0x29d38d(_0x21ffb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x488497[0x1]={..._0x488497[0x1],[_0x21ffb5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36ba0a};},{[_0x21ffb5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21ffb5([0x68,0x69,0x67,0x68])}),_0x1693a5[_0x21ffb5([0x6f,0x6e])](_0x21ffb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1fbff2=>{_0x99d62a(_0x1fbff2[_0x21ffb5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5bcf0b=!0x0,_0x1e79cc(_0x1fbff2[_0x21ffb5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21ffb5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21ffb5([0x6c,0x6f,0x77])}),_0x58b26b[_0x21ffb5([0x74,0x68,0x65,0x6e])](()=>{_0x5bcf0b||_0x29d38d(_0x21ffb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e3543(){return _0x1693a5[_0x21ffb5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21ffb5([0x76,0x69,0x65,0x77])][_0x21ffb5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21ffb5([0x61,0x75,0x74,0x6f]);}function _0x351798(){_0x1693a5[_0x21ffb5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21ffb5([0x76,0x69,0x65,0x77])][_0x21ffb5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21ffb5([0x61,0x75,0x74,0x6f]);}}function _0x4facea(_0x48c952){const _0x4ec5a9=[new window[(_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x79faca=>setTimeout(_0x79faca,0x59e240e6^_0x54a515)),_0x58b26b[_0x21ffb5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8adbe0=>{let _0x3f2ac9=0x0;_0x1693a5[_0x21ffb5([0x6d,0x6f,0x64,0x65,0x6c])][_0x21ffb5([0x6f,0x6e])](_0x21ffb5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x31ac2c,_0x119203)=>{_0x119203[0x0][_0x21ffb5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f2ac9++,_0x3f2ac9==(0x59eb7fd2^_0x54a515)&&(_0x8adbe0(),_0x31ac2c[_0x21ffb5([0x6f,0x66,0x66])]());});}))];return window[_0x21ffb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21ffb5([0x72,0x61,0x63,0x65])](_0x4ec5a9)[_0x21ffb5([0x74,0x68,0x65,0x6e])](()=>_0x48c952);}async function _0x545d82(){await _0x58b26b,_0x1693a5[_0x21ffb5([0x6d,0x6f,0x64,0x65,0x6c])][_0x21ffb5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c6ec1,_0x1693a5[_0x21ffb5([0x6d,0x6f,0x64,0x65,0x6c])][_0x21ffb5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c6ec1,_0x1693a5[_0x21ffb5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21ffb5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x10d7b2(_0x89f7f){const _0x9616ce=_0x449bb3();_0x1693a5[_0x9616ce]=_0x21ffb5([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x89f7f,_0x89f7f!=_0x21ffb5([0x56,0x61,0x6c,0x69,0x64])&&_0x545d82();}function _0x449bb3(){const _0x59c341=window[_0x21ffb5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21ffb5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21ffb5([0x6e,0x6f,0x77])]())[_0x21ffb5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21ffb5([0x2e]),'');let _0x3d2ac5=_0x21ffb5([0x72]);for(let _0x2f17c3=0x0;_0x2f17c3<_0x59c341[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f17c3+=0x2){let _0x4c62f1=window[_0x21ffb5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59c341[_0x21ffb5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f17c3,_0x2f17c3+0x2));_0x4c62f1>=_0x354ba7[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c62f1-=_0x354ba7[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d2ac5+=_0x354ba7[_0x4c62f1];}return _0x3d2ac5;}function _0x3d82a8(){const _0x1298c5=_0x5b89a8[_0x21ffb5([0x73,0x70,0x6c,0x69,0x74])](_0x21ffb5([0x2e]));if(0x3!=_0x1298c5[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3a68b7(_0x1298c5[0x1]);function _0x3a68b7(_0x1be66d){const _0x44a412=_0x52cb62(_0x1be66d);return _0x44a412&&_0xa9bc1c()?_0x44a412:null;function _0xa9bc1c(){const _0x2e7377=_0x44a412[_0x21ffb5([0x6a,0x74,0x69])],_0x2a16bc=window[_0x21ffb5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e7377[_0x21ffb5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e7377[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x90da3={..._0x44a412,[_0x21ffb5([0x6a,0x74,0x69])]:_0x2e7377[_0x21ffb5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e7377[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x90da3[_0x21ffb5([0x76,0x63])],_0x4216ed(_0x90da3)==_0x2a16bc;}}}async function _0x325b3f(){let _0xa242d8=!0x0;try{const _0x2ad448=_0x5b89a8[_0x21ffb5([0x73,0x70,0x6c,0x69,0x74])](_0x21ffb5([0x2e])),[_0x251cec,_0x3283ad,_0x452e38]=_0x2ad448;return _0x1be59a(_0x251cec),await _0x5872d9(_0x251cec,_0x3283ad,_0x452e38),_0xa242d8;}catch{return!0x1;}function _0x1be59a(_0x3fd5a1){const _0x43c251=_0x52cb62(_0x3fd5a1);_0x43c251&&_0x43c251[_0x21ffb5([0x61,0x6c,0x67])]==_0x21ffb5([0x45,0x53,0x32,0x35,0x36])||(_0xa242d8=!0x1);}async function _0x5872d9(_0x5c5e35,_0x5d6816,_0x17e040){const _0x56fa4e=window[_0x21ffb5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21ffb5([0x66,0x72,0x6f,0x6d])](_0x37857b(_0x17e040),_0x53bd3c=>_0x53bd3c[_0x21ffb5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4affb0=new window[(_0x21ffb5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21ffb5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c5e35+_0x21ffb5([0x2e])+_0x5d6816),_0x111156=window[_0x21ffb5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21ffb5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x111156)return;const _0xebebc5=await _0x111156[_0x21ffb5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21ffb5([0x6a,0x77,0x6b]),_0x4564fc,{[_0x21ffb5([0x6e,0x61,0x6d,0x65])]:_0x21ffb5([0x45,0x43,0x44,0x53,0x41]),[_0x21ffb5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21ffb5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21ffb5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x111156[_0x21ffb5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21ffb5([0x6e,0x61,0x6d,0x65])]:_0x21ffb5([0x45,0x43,0x44,0x53,0x41]),[_0x21ffb5([0x68,0x61,0x73,0x68])]:{[_0x21ffb5([0x6e,0x61,0x6d,0x65])]:_0x21ffb5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xebebc5,_0x56fa4e,_0x4affb0)||(_0xa242d8=!0x1);}}function _0x52cb62(_0x46ea55){return _0x46ea55[_0x21ffb5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21ffb5([0x65,0x79]))?JSON[_0x21ffb5([0x70,0x61,0x72,0x73,0x65])](_0x37857b(_0x46ea55)):null;}function _0x37857b(_0x3a84d4){return window[_0x21ffb5([0x61,0x74,0x6f,0x62])](_0x3a84d4[_0x21ffb5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21ffb5([0x2b]))[_0x21ffb5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21ffb5([0x2f])));}function _0x4216ed(_0x24d87b){let _0x262463=0x1505;function _0x7afbd3(_0x5d7606){for(let _0x1e3867=0x0;_0x1e3867<_0x5d7606[_0x21ffb5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e3867++){const _0x5833e3=_0x5d7606[_0x21ffb5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1e3867);_0x262463=(_0x262463<<0x5)+_0x262463+_0x5833e3,_0x262463&=_0x262463;}}function _0x4f9fad(_0x4edb82){Array[_0x21ffb5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4edb82)?_0x4edb82[_0x21ffb5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f9fad):_0x4edb82&&typeof _0x4edb82==_0x21ffb5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21ffb5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4edb82)[_0x21ffb5([0x73,0x6f,0x72,0x74])]()[_0x21ffb5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1b52a2,_0x4e46ac])=>{_0x7afbd3(_0x1b52a2),_0x4f9fad(_0x4e46ac);}):_0x7afbd3(window[_0x21ffb5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4edb82));}return _0x4f9fad(_0x24d87b),_0x262463>>>0x0;}function _0x4bd609(_0x2c6e57){return _0x2c6e57[_0x21ffb5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21ffb5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21ffb5([0x30]));}function _0x32575f(_0x4c9721){return _0x4c9721[_0x21ffb5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21ffb5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21ffb5([0x6a,0x6f,0x69,0x6e])]('');}function _0x3c6ec1(){}function _0x21ffb5(_0xd6114e){const _0x5b9e9f=_0x4b60;return _0xd6114e[_0x5b9e9f(0x23a)](_0x5510b7=>String[_0x5b9e9f(0x1f3)](_0x5510b7))[_0x5b9e9f(0x212)]('');}_0x10d7b2(await _0x4b56c7());}(this);}[_0x2894bd(0x242)](){const _0x2f5b3f=_0x2894bd,_0x440b7f=this[_0x2f5b3f(0x1fc)][_0x2f5b3f(0x21c)][_0x2f5b3f(0x202)];_0x440b7f[_0x2f5b3f(0x217)](_0x2f5b3f(0x219))&&_0x440b7f[_0x2f5b3f(0x23b)](_0x2f5b3f(0x219),{'allowAttributes':[_0x2f5b3f(0x23d)]}),_0x440b7f[_0x2f5b3f(0x217)](_0x2f5b3f(0x22c))&&_0x440b7f[_0x2f5b3f(0x23b)](_0x2f5b3f(0x22c),{'allowAttributes':[_0x2f5b3f(0x23d)]});}[_0x2894bd(0x20d)](){const _0x4da586=_0x2894bd,_0xae38d8=this[_0x4da586(0x1fc)];_0xae38d8[_0x4da586(0x1fd)][_0x4da586(0x218)](_0x4da586(0x216))[_0x4da586(0x209)]({'model':_0x4da586(0x23d),'view':_0x4da586(0x1f6)}),_0xae38d8[_0x4da586(0x1fd)][_0x4da586(0x218)](_0x4da586(0x220))[_0x4da586(0x1f4)]({'model':{'key':_0x4da586(0x23d),'value':_0x34db99=>_0x34db99[_0x4da586(0x229)](_0x4da586(0x1f6))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3ad309=_0xae38d8[_0x4da586(0x1ff)][_0x4da586(0x203)](_0x4da586(0x23f));_0x3ad309&&this[_0x4da586(0x1f0)](_0x3ad309,_0x4da586(0x1f8),(_0x3d39c9,[_0x21c041,_0x14704c])=>{const _0x448ad3=_0x4da586;_0x21c041[_0x448ad3(0x236)](_0x448ad3(0x23d),_0x14704c);});}[_0x2894bd(0x208)](){const _0x48c9ad=_0x2894bd,_0x5460b6=this[_0x48c9ad(0x1fc)][_0x48c9ad(0x20c)][_0x48c9ad(0x203)](_0x48c9ad(0x1f9))||{},_0x28a117=this[_0x48c9ad(0x1fc)][_0x48c9ad(0x20c)][_0x48c9ad(0x203)](_0x48c9ad(0x22d))||'';this[_0x48c9ad(0x22b)]=_0x3cb199(_0x5c081a[_0x48c9ad(0x227)],_0x48c9ad(0x225),{..._0x5460b6,'pubkey':_0x28a117,'ctx-name':_0x48c9ad(0x214)+this[_0x48c9ad(0x215)],'sourceList':'','imgOnly':_0x48c9ad(0x222),'removeCopyright':_0x48c9ad(0x222),'localeName':this[_0x48c9ad(0x1fc)][_0x48c9ad(0x238)][_0x48c9ad(0x21d)],'externalSourcesEmbedCss':_0x48c9ad(0x200)}),this[_0x48c9ad(0x22b)][_0x48c9ad(0x210)]=_0x387bef=>{const _0x1c5de8=_0x48c9ad;if(_0x1c5de8(0x207)==_0x387bef)return _0x1c5de8(0x1f5);},_0x5c081a[_0x48c9ad(0x227)][_0x48c9ad(0x1f2)][_0x48c9ad(0x232)](this[_0x48c9ad(0x22b)]);}[_0x2894bd(0x226)](){const _0x46adb8=_0x2894bd;this[_0x46adb8(0x22f)]=_0x3cb199(_0x5c081a[_0x46adb8(0x227)],_0x46adb8(0x235),{'ctx-name':_0x46adb8(0x214)+this[_0x46adb8(0x215)]}),_0x5c081a[_0x46adb8(0x227)][_0x46adb8(0x1f2)][_0x46adb8(0x232)](this[_0x46adb8(0x22f)]);}[_0x2894bd(0x1f7)](){const _0x3739c9=_0x2894bd,_0x4ac9ee=this[_0x3739c9(0x1fc)][_0x3739c9(0x1ff)][_0x3739c9(0x203)](_0x3739c9(0x241));_0x4ac9ee&&this[_0x3739c9(0x1f0)](_0x4ac9ee,_0x3739c9(0x239),()=>{const _0x509653=_0x3739c9,_0x50fc4d=this[_0x509653(0x1fc)][_0x509653(0x21c)][_0x509653(0x227)][_0x509653(0x240)][_0x509653(0x243)]();_0x50fc4d&&_0x50fc4d[_0x509653(0x229)](_0x509653(0x23d))&&this[_0x509653(0x1fc)][_0x509653(0x237)][_0x509653(0x20e)][_0x509653(0x1fb)](_0x509653(0x21b),()=>{const _0x1f4f8a=_0x509653;_0x30dc50(this[_0x1f4f8a(0x1fc)],_0x50fc4d);});});const _0x226cf2=this[_0x3739c9(0x1fc)][_0x3739c9(0x1ff)][_0x3739c9(0x203)](_0x3739c9(0x230));_0x226cf2&&this[_0x3739c9(0x1f0)](_0x226cf2,_0x3739c9(0x239),()=>{const _0x1942d4=_0x3739c9,_0x353d6f=this[_0x1942d4(0x1fc)][_0x1942d4(0x21c)][_0x1942d4(0x227)][_0x1942d4(0x240)][_0x1942d4(0x243)]();_0x353d6f&&_0x353d6f[_0x1942d4(0x229)](_0x1942d4(0x23d))&&this[_0x1942d4(0x1fc)][_0x1942d4(0x237)][_0x1942d4(0x20e)][_0x1942d4(0x1fb)](_0x1942d4(0x21b),()=>{const _0x272b23=_0x1942d4;_0x30dc50(this[_0x272b23(0x1fc)],_0x353d6f);});});}}
23
+ const _0x375365=_0x21d9;(function(_0x554094,_0x4cdfae){const _0x26c6f6=_0x21d9,_0x2f20b0=_0x554094();while(!![]){try{const _0x4a07e5=-parseInt(_0x26c6f6(0x8c))/0x1*(parseInt(_0x26c6f6(0x82))/0x2)+parseInt(_0x26c6f6(0x8d))/0x3+-parseInt(_0x26c6f6(0xa1))/0x4+-parseInt(_0x26c6f6(0xb3))/0x5*(-parseInt(_0x26c6f6(0xb4))/0x6)+-parseInt(_0x26c6f6(0x6a))/0x7*(-parseInt(_0x26c6f6(0xb1))/0x8)+-parseInt(_0x26c6f6(0x6f))/0x9*(parseInt(_0x26c6f6(0x77))/0xa)+-parseInt(_0x26c6f6(0xa3))/0xb*(-parseInt(_0x26c6f6(0xbd))/0xc);if(_0x4a07e5===_0x4cdfae)break;else _0x2f20b0['push'](_0x2f20b0['shift']());}catch(_0xcd6ed7){_0x2f20b0['push'](_0x2f20b0['shift']());}}}(_0x46d7,0x97491));import{Plugin as _0x26ee01}from'ckeditor5/src/core.js';import{Dialog as _0x5a962a}from'ckeditor5/src/ui.js';import{createElement as _0x2efafc,global as _0x5a7946,uid as _0x390811}from'ckeditor5/src/utils.js';function _0x46d7(){const _0x3bf1cf=['map','2DioNlq','_configElement','closeMax','contentLanguage','true','isPremiumPlugin','uploadcareImageId','view','pluginName','isOfficialPlugin','1045336tJlAvu','892659nbkJSH','uploadcareImageReplace','selection','PictureEditing','listenTo','commands','configElement','elementToAttribute','_initConfig','getSelectedElement','removeAttribute','document','editor','init','#uc-icon-arrow-down','extend','ctxElement','attributeToAttribute','appendChild','config','739664xFfeOf','_initCtx','319UliOBc','upcast','execute','join','uc-config','ucContextId','isRegistered','data-uc-image-id','for','_ctxElement','afterInit','get','\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','conversion','3298000DAkBHI','destroy','5yjyNyk','1924698GThBog','querySelector','input[uploadcare-file-input]','render','once','href','locale','uploadcare.uploader','editing','61188aHDcoW','uploadcare','requires','UploadcareEditing','21PaQuGK','iconHrefResolver','imageBlock','_initConversion','_initSchema','344340xkZUBW','_initImageProcessingIndicator','uploader-','downcast','model','replaceImageSource','fromCharCode','remove','40llpetj','body','cleanupImage','imageInline','insertImage','uc-upload-ctx-provider','uploadcare.pubkey','add','schema','getAttribute'];_0x46d7=function(){return _0x3bf1cf;};return _0x46d7();}import{UploadcareCommand as _0x2e2576}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x627b03}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2f1c85}from'./utils/editingutils.js';function _0x21d9(_0x59d099,_0x1b4ec5){const _0x46d7f2=_0x46d7();return _0x21d9=function(_0x21d93a,_0x5c7f14){_0x21d93a=_0x21d93a-0x6a;let _0x5ed79f=_0x46d7f2[_0x21d93a];return _0x5ed79f;},_0x21d9(_0x59d099,_0x1b4ec5);}export class UploadcareEditing extends _0x26ee01{[_0x375365(0x83)]=null;[_0x375365(0xac)]=null;static get[_0x375365(0x8a)](){const _0x2d73f2=_0x375365;return _0x2d73f2(0xc0);}static get[_0x375365(0xbf)](){const _0x73e2b7=_0x375365;return[_0x73e2b7(0x90),_0x627b03,_0x5a962a];}static get[_0x375365(0x8b)](){return!0x0;}static get[_0x375365(0x87)](){return!0x0;}[_0x375365(0xa8)];get[_0x375365(0x93)](){const _0x118dd3=_0x375365;return this[_0x118dd3(0x83)];}get[_0x375365(0x9d)](){const _0x2b96f7=_0x375365;return this[_0x2b96f7(0xac)];}constructor(_0x5a33ec){const _0x28e34a=_0x375365;super(_0x5a33ec),this[_0x28e34a(0xa8)]=_0x390811();}[_0x375365(0x9a)](){const _0x4acb93=_0x375365,_0x5606be=this[_0x4acb93(0x99)];_0x5606be[_0x4acb93(0x92)][_0x4acb93(0x7e)](_0x4acb93(0xbe),new _0x2e2576(_0x5606be));}[_0x375365(0xad)](){const _0x2d3cdb=_0x375365;this[_0x2d3cdb(0x6e)](),this[_0x2d3cdb(0x6d)](),this[_0x2d3cdb(0x95)](),this[_0x2d3cdb(0xa2)](),this[_0x2d3cdb(0x70)](),this[_0x2d3cdb(0x91)](this[_0x2d3cdb(0x99)],_0x2d3cdb(0xb2),()=>{const _0x13f565=_0x2d3cdb;this[_0x13f565(0x83)]&&(this[_0x13f565(0x83)][_0x13f565(0x76)](),this[_0x13f565(0x83)]=null),this[_0x13f565(0xac)]&&(this[_0x13f565(0xac)][_0x13f565(0x76)](),this[_0x13f565(0xac)]=null);const _0x31cc61=_0x5a7946[_0x13f565(0x98)][_0x13f565(0xb5)](_0x13f565(0xb6));_0x31cc61&&_0x31cc61[_0x13f565(0x76)]();}),async function(_0x221f4d){const _0x322d8a=_0x1821ff([0x70,0x61,0x6f,0x6a,0x6e,0x72,0x5a,0x73,0x47,0x4e,0x51,0x48,0x71,0x62,0x78,0x31,0x63,0x33,0x44,0x4a,0x45,0x4b,0x35,0x6c,0x38,0x36,0x49,0x43,0x39,0x68,0x37,0x32,0x4f,0x65,0x66,0x52,0x79,0x56,0x7a,0x50,0x46,0x4c,0x4d,0x6b,0x76,0x75,0x58,0x34,0x69,0x53,0x74,0x6d,0x59,0x67,0x57,0x54,0x30,0x77,0x42,0x64,0x55,0x41]),_0x396cde=0x47b9575f,_0x15231c=0x47be38c7^_0x396cde,_0x3e02d3=window[_0x1821ff([0x44,0x61,0x74,0x65])][_0x1821ff([0x6e,0x6f,0x77])](),_0x3f7bcd=_0x221f4d[_0x1821ff([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2d5dec=new window[(_0x1821ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58c130=>{_0x3f7bcd[_0x1821ff([0x6f,0x6e,0x63,0x65])](_0x1821ff([0x72,0x65,0x61,0x64,0x79]),_0x58c130);}),_0x3f56a4={[_0x1821ff([0x6b,0x74,0x79])]:_0x1821ff([0x45,0x43]),[_0x1821ff([0x75,0x73,0x65])]:_0x1821ff([0x73,0x69,0x67]),[_0x1821ff([0x63,0x72,0x76])]:_0x1821ff([0x50,0x2d,0x32,0x35,0x36]),[_0x1821ff([0x78])]:_0x1821ff([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]),[_0x1821ff([0x79])]:_0x1821ff([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]),[_0x1821ff([0x61,0x6c,0x67])]:_0x1821ff([0x45,0x53,0x32,0x35,0x36])},_0x57bdad=_0x3f7bcd[_0x1821ff([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1821ff([0x67,0x65,0x74])](_0x1821ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x27300b(){let _0x28f6ba,_0x385d23=null,_0x4b500d=null;try{if(_0x57bdad==_0x1821ff([0x47,0x50,0x4c]))return _0x1821ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x28f6ba=_0x49ac71(),!_0x28f6ba)return _0x1821ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x28f6ba[_0x1821ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b500d=_0x3b5ea5(_0x28f6ba[_0x1821ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x28f6ba[_0x1821ff([0x6a,0x74,0x69])])),await _0x4cc6f8()?_0x3a9804()?_0x3b377f()?_0x1821ff([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1413af()?(_0x28f6ba[_0x1821ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1821ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x385d23=_0x52bc6f(_0x1821ff([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x28f6ba[_0x1821ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1821ff([0x74,0x72,0x69,0x61,0x6c])&&(_0x385d23=_0x52bc6f(_0x1821ff([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1a5775()):_0x1821ff([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1821ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1821ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1821ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b377f(){const _0xb2aa5f=[_0x1821ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1821ff([0x74,0x72,0x69,0x61,0x6c])][_0x1821ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28f6ba[_0x1821ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e02d3/0x3e8:0xe10*_0x15231c;return _0x28f6ba[_0x1821ff([0x65,0x78,0x70])]<_0xb2aa5f;}function _0x3a9804(){const _0x41182e=_0x28f6ba[_0x1821ff([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x41182e&&(!!_0x41182e[_0x1821ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1821ff([0x2a]))||!!_0x41182e[_0x1821ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1821ff([0x55,0x50,0x4c,0x43])));}function _0x1413af(){const _0x2d631f=_0x21d9,_0x211845=_0x28f6ba[_0x1821ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x211845||0x0==_0x211845[_0x1821ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xcdc675}=new URL(window[_0x1821ff([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2d631f(0xb9)]);if(_0x211845[_0x1821ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcdc675))return!0x0;const _0x38ab14=_0xcdc675[_0x1821ff([0x73,0x70,0x6c,0x69,0x74])](_0x1821ff([0x2e]));return _0x211845[_0x1821ff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x22445=>_0x22445[_0x1821ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1821ff([0x2a])))[_0x1821ff([0x6d,0x61,0x70])](_0x3c20e4=>_0x3c20e4[_0x1821ff([0x73,0x70,0x6c,0x69,0x74])](_0x1821ff([0x2e])))[_0x1821ff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f5c8e=>_0x3f5c8e[_0x1821ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x38ab14[_0x1821ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1821ff([0x6d,0x61,0x70])](_0xcb852a=>Array(_0x38ab14[_0x1821ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xcb852a[_0x1821ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1821ff([0x66,0x69,0x6c,0x6c])](_0xcb852a[0x0]===_0x1821ff([0x2a])?_0x1821ff([0x2a]):'')[_0x1821ff([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xcb852a))[_0x1821ff([0x73,0x6f,0x6d,0x65])](_0x35dcb7=>_0x38ab14[_0x1821ff([0x65,0x76,0x65,0x72,0x79])]((_0x1e23a3,_0x2b0c3e)=>_0x35dcb7[_0x2b0c3e]===_0x1e23a3||_0x35dcb7[_0x2b0c3e]===_0x1821ff([0x2a])));}function _0x1a5775(){return _0x385d23&&_0x4b500d?new window[(_0x1821ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ab40d,_0x32dd5b)=>{_0x385d23[_0x1821ff([0x74,0x68,0x65,0x6e])](_0x5ab40d,_0x32dd5b),_0x4b500d[_0x1821ff([0x74,0x68,0x65,0x6e])](_0x506211=>{_0x506211!=_0x1821ff([0x56,0x61,0x6c,0x69,0x64])&&_0x5ab40d(_0x506211);},_0x32dd5b);}):_0x385d23||_0x4b500d||_0x1821ff([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b5ea5(_0x49fed9,_0x50d4de){return new window[(_0x1821ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c71fa=>{if(_0x4d9aba())return _0x5c71fa(_0x1821ff([0x56,0x61,0x6c,0x69,0x64]));_0x326efb(),_0x3f7bcd[_0x1821ff([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1821ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x441705=!0x1;const _0x557464=_0x390811();function _0x2a05cb(_0x59fac6){return!!_0x59fac6&&(typeof _0x59fac6===_0x1821ff([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x59fac6===_0x1821ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x59fac6[_0x1821ff([0x74,0x68,0x65,0x6e])]===_0x1821ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x59fac6[_0x1821ff([0x63,0x61,0x74,0x63,0x68])]===_0x1821ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x47a255(_0xd48a8c){_0x73492(_0xd48a8c)[_0x1821ff([0x74,0x68,0x65,0x6e])](_0x37421a=>{if(!_0x37421a||_0x37421a[_0x1821ff([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1821ff([0x6f,0x6b]))return _0x1821ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x46aeeb(_0x452793(_0x557464+_0x50d4de))!=_0x37421a[_0x1821ff([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1821ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1821ff([0x56,0x61,0x6c,0x69,0x64]);})[_0x1821ff([0x74,0x68,0x65,0x6e])](_0x76c2c8=>(_0x3c8ab6(),_0x76c2c8),()=>{const _0x227cad=_0x475f41();return null==_0x227cad?(_0x3c8ab6(),_0x1821ff([0x56,0x61,0x6c,0x69,0x64])):_0x1821ff(_0x3e02d3-_0x227cad>(0x63b5d35f^_0x396cde)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1821ff([0x74,0x68,0x65,0x6e])](_0x5c71fa)[_0x1821ff([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c71fa(_0x1821ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37ddc4=0x478fb9df^_0x396cde;function _0x3c8ab6(){const _0x1e73cb=_0x1821ff([0x6c,0x6c,0x63,0x74,0x2d])+_0x46aeeb(_0x452793(_0x49fed9)),_0x530bc5=_0x56def5(_0x46aeeb(window[_0x1821ff([0x4d,0x61,0x74,0x68])][_0x1821ff([0x63,0x65,0x69,0x6c])](_0x3e02d3/_0x37ddc4)));window[_0x1821ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1821ff([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e73cb,_0x530bc5);}function _0x475f41(){const _0x467f37=_0x1821ff([0x6c,0x6c,0x63,0x74,0x2d])+_0x46aeeb(_0x452793(_0x49fed9)),_0x282819=window[_0x1821ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1821ff([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x467f37);return _0x282819?window[_0x1821ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56def5(_0x282819),0x10)*_0x37ddc4:null;}function _0x73492(_0x4bc5c0){return new window[(_0x1821ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x588d0d,_0x7c64a5)=>{_0x4bc5c0[_0x1821ff([0x74,0x68,0x65,0x6e])](_0x588d0d,_0x7c64a5),window[_0x1821ff([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x7c64a5,0x47b8839f^_0x396cde);});}}_0x3f7bcd[_0x1821ff([0x6f,0x6e])](_0x1821ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42c604,_0x39f9a3)=>{if(_0x39f9a3[0x0]!=_0x49fed9)return _0x5c71fa(_0x1821ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39f9a3[0x1]={..._0x39f9a3[0x1],[_0x1821ff([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x557464};},{[_0x1821ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1821ff([0x68,0x69,0x67,0x68])}),_0x3f7bcd[_0x1821ff([0x6f,0x6e])](_0x1821ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x555064=>{_0x2a05cb(_0x555064[_0x1821ff([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x441705=!0x0,_0x47a255(_0x555064[_0x1821ff([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1821ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1821ff([0x6c,0x6f,0x77])}),_0x2d5dec[_0x1821ff([0x74,0x68,0x65,0x6e])](()=>{_0x441705||_0x5c71fa(_0x1821ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4d9aba(){return _0x3f7bcd[_0x1821ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1821ff([0x76,0x69,0x65,0x77])][_0x1821ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1821ff([0x61,0x75,0x74,0x6f]);}function _0x326efb(){_0x3f7bcd[_0x1821ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1821ff([0x76,0x69,0x65,0x77])][_0x1821ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1821ff([0x61,0x75,0x74,0x6f]);}}function _0x52bc6f(_0x592e62){const _0x4ac5cd=[new window[(_0x1821ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f624a=>setTimeout(_0x3f624a,0x47b06993^_0x396cde)),_0x2d5dec[_0x1821ff([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1821ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11a434=>{let _0xa9400e=0x0;_0x3f7bcd[_0x1821ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x1821ff([0x6f,0x6e])](_0x1821ff([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4265d7,_0x5737e3)=>{_0x5737e3[0x0][_0x1821ff([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa9400e++,_0xa9400e==(0x47b956a7^_0x396cde)&&(_0x11a434(),_0x4265d7[_0x1821ff([0x6f,0x66,0x66])]());});}))];return window[_0x1821ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1821ff([0x72,0x61,0x63,0x65])](_0x4ac5cd)[_0x1821ff([0x74,0x68,0x65,0x6e])](()=>_0x592e62);}async function _0x1fee32(){await _0x2d5dec,_0x3f7bcd[_0x1821ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x1821ff([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4aca92,_0x3f7bcd[_0x1821ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x1821ff([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4aca92,_0x3f7bcd[_0x1821ff([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1821ff([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x12552d(_0x55d578){const _0x2b4202=_0x3e6961();_0x3f7bcd[_0x2b4202]=_0x1821ff([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x55d578,_0x55d578!=_0x1821ff([0x56,0x61,0x6c,0x69,0x64])&&_0x1fee32();}function _0x3e6961(){const _0x128f13=window[_0x1821ff([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1821ff([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1821ff([0x6e,0x6f,0x77])]())[_0x1821ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1821ff([0x2e]),'');let _0x5e8dad=_0x1821ff([0x70]);for(let _0x2e1e32=0x0;_0x2e1e32<_0x128f13[_0x1821ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e1e32+=0x2){let _0x39508f=window[_0x1821ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x128f13[_0x1821ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e1e32,_0x2e1e32+0x2));_0x39508f>=_0x322d8a[_0x1821ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x39508f-=_0x322d8a[_0x1821ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e8dad+=_0x322d8a[_0x39508f];}return _0x5e8dad;}function _0x49ac71(){const _0x5f3f1c=_0x57bdad[_0x1821ff([0x73,0x70,0x6c,0x69,0x74])](_0x1821ff([0x2e]));if(0x3!=_0x5f3f1c[_0x1821ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e47a6(_0x5f3f1c[0x1]);function _0x1e47a6(_0x4fcd57){const _0x25dd06=_0x494d23(_0x4fcd57);return _0x25dd06&&_0x10b13f()?_0x25dd06:null;function _0x10b13f(){const _0x811785=_0x25dd06[_0x1821ff([0x6a,0x74,0x69])],_0x424431=window[_0x1821ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x811785[_0x1821ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x811785[_0x1821ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4661a1={..._0x25dd06,[_0x1821ff([0x6a,0x74,0x69])]:_0x811785[_0x1821ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x811785[_0x1821ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4661a1[_0x1821ff([0x76,0x63])],_0x452793(_0x4661a1)==_0x424431;}}}async function _0x4cc6f8(){let _0x323fb7=!0x0;try{const _0x33e0b6=_0x57bdad[_0x1821ff([0x73,0x70,0x6c,0x69,0x74])](_0x1821ff([0x2e])),[_0x5ef445,_0x1419c9,_0x16014b]=_0x33e0b6;return _0x4a078d(_0x5ef445),await _0x2bb4b4(_0x5ef445,_0x1419c9,_0x16014b),_0x323fb7;}catch{return!0x1;}function _0x4a078d(_0x268613){const _0x35ebaa=_0x494d23(_0x268613);_0x35ebaa&&_0x35ebaa[_0x1821ff([0x61,0x6c,0x67])]==_0x1821ff([0x45,0x53,0x32,0x35,0x36])||(_0x323fb7=!0x1);}async function _0x2bb4b4(_0x365e14,_0x2fbcb1,_0x335c2d){const _0x3db497=window[_0x1821ff([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1821ff([0x66,0x72,0x6f,0x6d])](_0x2404d3(_0x335c2d),_0x28a2d4=>_0x28a2d4[_0x1821ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x515b16=new window[(_0x1821ff([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1821ff([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x365e14+_0x1821ff([0x2e])+_0x2fbcb1),_0x142068=window[_0x1821ff([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1821ff([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x142068)return;const _0xd4b231=await _0x142068[_0x1821ff([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1821ff([0x6a,0x77,0x6b]),_0x3f56a4,{[_0x1821ff([0x6e,0x61,0x6d,0x65])]:_0x1821ff([0x45,0x43,0x44,0x53,0x41]),[_0x1821ff([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1821ff([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1821ff([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x142068[_0x1821ff([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1821ff([0x6e,0x61,0x6d,0x65])]:_0x1821ff([0x45,0x43,0x44,0x53,0x41]),[_0x1821ff([0x68,0x61,0x73,0x68])]:{[_0x1821ff([0x6e,0x61,0x6d,0x65])]:_0x1821ff([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd4b231,_0x3db497,_0x515b16)||(_0x323fb7=!0x1);}}function _0x494d23(_0x47a458){return _0x47a458[_0x1821ff([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1821ff([0x65,0x79]))?JSON[_0x1821ff([0x70,0x61,0x72,0x73,0x65])](_0x2404d3(_0x47a458)):null;}function _0x2404d3(_0x262842){return window[_0x1821ff([0x61,0x74,0x6f,0x62])](_0x262842[_0x1821ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1821ff([0x2b]))[_0x1821ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1821ff([0x2f])));}function _0x452793(_0x397175){let _0x2e5255=0x1505;function _0x2737d4(_0x23f9d1){for(let _0x32cdbe=0x0;_0x32cdbe<_0x23f9d1[_0x1821ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32cdbe++){const _0x49245b=_0x23f9d1[_0x1821ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x32cdbe);_0x2e5255=(_0x2e5255<<0x5)+_0x2e5255+_0x49245b,_0x2e5255&=_0x2e5255;}}function _0x5e2071(_0x3ab856){Array[_0x1821ff([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ab856)?_0x3ab856[_0x1821ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e2071):_0x3ab856&&typeof _0x3ab856==_0x1821ff([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1821ff([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ab856)[_0x1821ff([0x73,0x6f,0x72,0x74])]()[_0x1821ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xb4685f,_0x199a57])=>{_0x2737d4(_0xb4685f),_0x5e2071(_0x199a57);}):_0x2737d4(window[_0x1821ff([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ab856));}return _0x5e2071(_0x397175),_0x2e5255>>>0x0;}function _0x46aeeb(_0x1aba6d){return _0x1aba6d[_0x1821ff([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1821ff([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1821ff([0x30]));}function _0x56def5(_0x7eb5df){return _0x7eb5df[_0x1821ff([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1821ff([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1821ff([0x6a,0x6f,0x69,0x6e])]('');}function _0x4aca92(){}function _0x1821ff(_0xc8c14c){const _0x1f263c=_0x21d9;return _0xc8c14c[_0x1f263c(0x81)](_0x41bf0e=>String[_0x1f263c(0x75)](_0x41bf0e))[_0x1f263c(0xa6)]('');}_0x12552d(await _0x27300b());}(this);}[_0x375365(0x6e)](){const _0x262a76=_0x375365,_0x4278db=this[_0x262a76(0x99)][_0x262a76(0x73)][_0x262a76(0x7f)];_0x4278db[_0x262a76(0xa9)](_0x262a76(0x6c))&&_0x4278db[_0x262a76(0x9c)](_0x262a76(0x6c),{'allowAttributes':[_0x262a76(0x88)]}),_0x4278db[_0x262a76(0xa9)](_0x262a76(0x7a))&&_0x4278db[_0x262a76(0x9c)](_0x262a76(0x7a),{'allowAttributes':[_0x262a76(0x88)]});}[_0x375365(0x6d)](){const _0x4cdbd7=_0x375365,_0x51079b=this[_0x4cdbd7(0x99)];_0x51079b[_0x4cdbd7(0xb0)][_0x4cdbd7(0xab)](_0x4cdbd7(0x72))[_0x4cdbd7(0x9e)]({'model':_0x4cdbd7(0x88),'view':_0x4cdbd7(0xaa)}),_0x51079b[_0x4cdbd7(0xb0)][_0x4cdbd7(0xab)](_0x4cdbd7(0xa4))[_0x4cdbd7(0x94)]({'model':{'key':_0x4cdbd7(0x88),'value':_0x5d69d7=>_0x5d69d7[_0x4cdbd7(0x80)](_0x4cdbd7(0xaa))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3c64f7=_0x51079b[_0x4cdbd7(0x92)][_0x4cdbd7(0xae)](_0x4cdbd7(0x74));_0x3c64f7&&this[_0x4cdbd7(0x91)](_0x3c64f7,_0x4cdbd7(0x79),(_0x347763,[_0x183f5c,_0x86658a])=>{const _0x40bd13=_0x4cdbd7;_0x183f5c[_0x40bd13(0x97)](_0x40bd13(0x88),_0x86658a);});}[_0x375365(0x95)](){const _0x52e936=_0x375365,_0x20086a=this[_0x52e936(0x99)][_0x52e936(0xa0)][_0x52e936(0xae)](_0x52e936(0xbb))||{},_0x3f0e49=this[_0x52e936(0x99)][_0x52e936(0xa0)][_0x52e936(0xae)](_0x52e936(0x7d))||'';this[_0x52e936(0x83)]=_0x2efafc(_0x5a7946[_0x52e936(0x98)],_0x52e936(0xa7),{..._0x20086a,'pubkey':_0x3f0e49,'ctx-name':_0x52e936(0x71)+this[_0x52e936(0xa8)],'sourceList':'','imgOnly':_0x52e936(0x86),'removeCopyright':_0x52e936(0x86),'localeName':this[_0x52e936(0x99)][_0x52e936(0xba)][_0x52e936(0x85)],'externalSourcesEmbedCss':_0x52e936(0xaf)}),this[_0x52e936(0x83)][_0x52e936(0x6b)]=_0x28fd15=>{const _0xe7435=_0x52e936;if(_0xe7435(0x84)==_0x28fd15)return _0xe7435(0x9b);},_0x5a7946[_0x52e936(0x98)][_0x52e936(0x78)][_0x52e936(0x9f)](this[_0x52e936(0x83)]);}[_0x375365(0xa2)](){const _0x3df59c=_0x375365;this[_0x3df59c(0xac)]=_0x2efafc(_0x5a7946[_0x3df59c(0x98)],_0x3df59c(0x7c),{'ctx-name':_0x3df59c(0x71)+this[_0x3df59c(0xa8)]}),_0x5a7946[_0x3df59c(0x98)][_0x3df59c(0x78)][_0x3df59c(0x9f)](this[_0x3df59c(0xac)]);}[_0x375365(0x70)](){const _0x520902=_0x375365,_0x3d94b5=this[_0x520902(0x99)][_0x520902(0x92)][_0x520902(0xae)](_0x520902(0x7b));_0x3d94b5&&this[_0x520902(0x91)](_0x3d94b5,_0x520902(0xa5),()=>{const _0xa50fd0=_0x520902,_0x6c6bbe=this[_0xa50fd0(0x99)][_0xa50fd0(0x73)][_0xa50fd0(0x98)][_0xa50fd0(0x8f)][_0xa50fd0(0x96)]();_0x6c6bbe&&_0x6c6bbe[_0xa50fd0(0x80)](_0xa50fd0(0x88))&&this[_0xa50fd0(0x99)][_0xa50fd0(0xbc)][_0xa50fd0(0x89)][_0xa50fd0(0xb8)](_0xa50fd0(0xb7),()=>{const _0x244c68=_0xa50fd0;_0x2f1c85(this[_0x244c68(0x99)],_0x6c6bbe);});});const _0x51daa5=this[_0x520902(0x99)][_0x520902(0x92)][_0x520902(0xae)](_0x520902(0x8e));_0x51daa5&&this[_0x520902(0x91)](_0x51daa5,_0x520902(0xa5),()=>{const _0x559231=_0x520902,_0x22de9b=this[_0x559231(0x99)][_0x559231(0x73)][_0x559231(0x98)][_0x559231(0x8f)][_0x559231(0x96)]();_0x22de9b&&_0x22de9b[_0x559231(0x80)](_0x559231(0x88))&&this[_0x559231(0x99)][_0x559231(0xbc)][_0x559231(0x89)][_0x559231(0xb8)](_0x559231(0xb7),()=>{const _0x4a35ee=_0x559231;_0x2f1c85(this[_0x4a35ee(0x99)],_0x22de9b);});});}}